@flowselections/floriday-afhandeling-module 1.0.44 → 1.0.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/dist-lib/components/afhandeling/ControlePage.d.ts.map +1 -1
  2. package/dist-lib/components/afhandeling/ControlePage.js +92 -54
  3. package/dist-lib/hooks/useCartIndex.d.ts.map +1 -1
  4. package/dist-lib/hooks/useCartIndex.js +16 -7
  5. package/dist-lib/hooks/useEngineBufferEvents.d.ts +5 -0
  6. package/dist-lib/hooks/useEngineBufferEvents.d.ts.map +1 -1
  7. package/dist-lib/hooks/useEngineBufferEvents.js +18 -13
  8. package/dist-lib/hooks/useEngineTasks.d.ts.map +1 -1
  9. package/dist-lib/hooks/useEngineTasks.js +8 -18
  10. package/dist-lib/hooks/useKnownOrders.d.ts.map +1 -1
  11. package/dist-lib/hooks/useKnownOrders.js +2 -1
  12. package/dist-lib/hooks/useOrderPickDates.d.ts +1 -1
  13. package/dist-lib/hooks/useOrderPickDates.d.ts.map +1 -1
  14. package/dist-lib/hooks/useOrderPickDates.js +5 -3
  15. package/dist-lib/hooks/usePickAgenda.d.ts.map +1 -1
  16. package/dist-lib/hooks/usePickAgenda.js +17 -13
  17. package/dist-lib/hooks/usePickMode.d.ts +8 -2
  18. package/dist-lib/hooks/usePickMode.d.ts.map +1 -1
  19. package/dist-lib/hooks/usePickMode.js +17 -9
  20. package/dist-lib/index.d.ts +1 -2
  21. package/dist-lib/index.d.ts.map +1 -1
  22. package/dist-lib/index.js +1 -33
  23. package/dist-lib/integrations/supabase/auth-middleware.d.ts +3053 -161
  24. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  25. package/dist-lib/integrations/supabase/client.server.d.ts +3053 -161
  26. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  27. package/dist-lib/integrations/supabase/moduleClient.d.ts +2982 -88
  28. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  29. package/dist-lib/integrations/supabase/types.d.ts +3063 -143
  30. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  31. package/dist-lib/lib/afhandelingSettings.functions.d.ts +5798 -14
  32. package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
  33. package/dist-lib/lib/carriers.functions.d.ts +14510 -40
  34. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  35. package/dist-lib/lib/cartAssignments.functions.d.ts +14495 -35
  36. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  37. package/dist-lib/lib/cartControl.functions.d.ts +31999 -104
  38. package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
  39. package/dist-lib/lib/cartControl.functions.js +389 -259
  40. package/dist-lib/lib/deliveryNote.functions.d.ts +3053 -161
  41. package/dist-lib/lib/deliveryNote.functions.d.ts.map +1 -1
  42. package/dist-lib/lib/engineLayouts.functions.d.ts +3053 -161
  43. package/dist-lib/lib/engineLayouts.functions.d.ts.map +1 -1
  44. package/dist-lib/lib/floriday.functions.d.ts +5798 -14
  45. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  46. package/dist-lib/lib/orderFulfilment.functions.d.ts +3053 -161
  47. package/dist-lib/lib/orderFulfilment.functions.d.ts.map +1 -1
  48. package/dist-lib/lib/pickDates.functions.d.ts +2985 -88
  49. package/dist-lib/lib/pickDates.functions.d.ts.map +1 -1
  50. package/dist-lib/lib/pickDates.functions.js +30 -3
  51. package/dist-lib/lib/pickMode.d.ts +20 -2
  52. package/dist-lib/lib/pickMode.d.ts.map +1 -1
  53. package/dist-lib/lib/pickMode.js +65 -16
  54. package/dist-lib/lib/realtimeBus.d.ts +20 -0
  55. package/dist-lib/lib/realtimeBus.d.ts.map +1 -0
  56. package/dist-lib/lib/realtimeBus.js +56 -0
  57. package/dist-lib/lib/serverFnError.d.ts +12 -0
  58. package/dist-lib/lib/serverFnError.d.ts.map +1 -1
  59. package/dist-lib/lib/serverFnError.js +48 -1
  60. package/dist-lib/moduleDefinition.d.ts +3 -0
  61. package/dist-lib/moduleDefinition.d.ts.map +1 -0
  62. package/dist-lib/moduleDefinition.js +36 -0
  63. package/package.json +2 -2
@@ -11,6 +11,7 @@ export type Database = {
11
11
  Row: {
12
12
  auto_print_delivery_note: boolean;
13
13
  auto_process_paused: boolean;
14
+ control_bulk_max_carts: number;
14
15
  created_at: string;
15
16
  extra_pick_days_with_stickers: number;
16
17
  id: string;
@@ -28,6 +29,7 @@ export type Database = {
28
29
  Insert: {
29
30
  auto_print_delivery_note?: boolean;
30
31
  auto_process_paused?: boolean;
32
+ control_bulk_max_carts?: number;
31
33
  created_at?: string;
32
34
  extra_pick_days_with_stickers?: number;
33
35
  id?: string;
@@ -45,6 +47,7 @@ export type Database = {
45
47
  Update: {
46
48
  auto_print_delivery_note?: boolean;
47
49
  auto_process_paused?: boolean;
50
+ control_bulk_max_carts?: number;
48
51
  created_at?: string;
49
52
  extra_pick_days_with_stickers?: number;
50
53
  id?: string;
@@ -1411,6 +1414,7 @@ export type Database = {
1411
1414
  id: string;
1412
1415
  notes: string | null;
1413
1416
  performed_at: string;
1417
+ request_key: string | null;
1414
1418
  rescheduled_count: number;
1415
1419
  stock_consumed_at: string | null;
1416
1420
  total_carts: number;
@@ -1425,6 +1429,7 @@ export type Database = {
1425
1429
  id?: string;
1426
1430
  notes?: string | null;
1427
1431
  performed_at?: string;
1432
+ request_key?: string | null;
1428
1433
  rescheduled_count?: number;
1429
1434
  stock_consumed_at?: string | null;
1430
1435
  total_carts?: number;
@@ -1439,6 +1444,7 @@ export type Database = {
1439
1444
  id?: string;
1440
1445
  notes?: string | null;
1441
1446
  performed_at?: string;
1447
+ request_key?: string | null;
1442
1448
  rescheduled_count?: number;
1443
1449
  stock_consumed_at?: string | null;
1444
1450
  total_carts?: number;
@@ -1451,9 +1457,10 @@ export type Database = {
1451
1457
  Row: {
1452
1458
  assigned_at: string;
1453
1459
  cart_index: number;
1454
- cart_number: string | null;
1460
+ cart_number: string;
1455
1461
  day_seq: number | null;
1456
1462
  delivered_at: string | null;
1463
+ engine_cart_label: string | null;
1457
1464
  id: string;
1458
1465
  order_id: string;
1459
1466
  order_source: string;
@@ -1463,9 +1470,10 @@ export type Database = {
1463
1470
  Insert: {
1464
1471
  assigned_at?: string;
1465
1472
  cart_index: number;
1466
- cart_number?: string | null;
1473
+ cart_number: string;
1467
1474
  day_seq?: number | null;
1468
1475
  delivered_at?: string | null;
1476
+ engine_cart_label?: string | null;
1469
1477
  id?: string;
1470
1478
  order_id: string;
1471
1479
  order_source: string;
@@ -1475,9 +1483,10 @@ export type Database = {
1475
1483
  Update: {
1476
1484
  assigned_at?: string;
1477
1485
  cart_index?: number;
1478
- cart_number?: string | null;
1486
+ cart_number?: string;
1479
1487
  day_seq?: number | null;
1480
1488
  delivered_at?: string | null;
1489
+ engine_cart_label?: string | null;
1481
1490
  id?: string;
1482
1491
  order_id?: string;
1483
1492
  order_source?: string;
@@ -1857,6 +1866,42 @@ export type Database = {
1857
1866
  };
1858
1867
  Relationships: [];
1859
1868
  };
1869
+ customer_assortment_items: {
1870
+ Row: {
1871
+ created_at: string;
1872
+ customer_key: string;
1873
+ id: string;
1874
+ in_assortment: boolean;
1875
+ manual_override: boolean;
1876
+ source: string;
1877
+ synced_at: string | null;
1878
+ trade_item_key: string;
1879
+ updated_at: string;
1880
+ };
1881
+ Insert: {
1882
+ created_at?: string;
1883
+ customer_key: string;
1884
+ id?: string;
1885
+ in_assortment?: boolean;
1886
+ manual_override?: boolean;
1887
+ source?: string;
1888
+ synced_at?: string | null;
1889
+ trade_item_key: string;
1890
+ updated_at?: string;
1891
+ };
1892
+ Update: {
1893
+ created_at?: string;
1894
+ customer_key?: string;
1895
+ id?: string;
1896
+ in_assortment?: boolean;
1897
+ manual_override?: boolean;
1898
+ source?: string;
1899
+ synced_at?: string | null;
1900
+ trade_item_key?: string;
1901
+ updated_at?: string;
1902
+ };
1903
+ Relationships: [];
1904
+ };
1860
1905
  customer_audit_log: {
1861
1906
  Row: {
1862
1907
  action: string;
@@ -2272,6 +2317,63 @@ export type Database = {
2272
2317
  };
2273
2318
  Relationships: [];
2274
2319
  };
2320
+ customer_product_stickers: {
2321
+ Row: {
2322
+ content_hash: string | null;
2323
+ created_at: string;
2324
+ customer_key: string;
2325
+ file_name: string;
2326
+ file_path: string;
2327
+ file_size: number | null;
2328
+ floriday_sticker_id: string | null;
2329
+ floriday_synced_at: string | null;
2330
+ height_mm: number | null;
2331
+ id: string;
2332
+ mime_type: string | null;
2333
+ source: string;
2334
+ trade_item_key: string;
2335
+ updated_at: string;
2336
+ uploaded_by: string | null;
2337
+ width_mm: number | null;
2338
+ };
2339
+ Insert: {
2340
+ content_hash?: string | null;
2341
+ created_at?: string;
2342
+ customer_key: string;
2343
+ file_name: string;
2344
+ file_path: string;
2345
+ file_size?: number | null;
2346
+ floriday_sticker_id?: string | null;
2347
+ floriday_synced_at?: string | null;
2348
+ height_mm?: number | null;
2349
+ id?: string;
2350
+ mime_type?: string | null;
2351
+ source?: string;
2352
+ trade_item_key: string;
2353
+ updated_at?: string;
2354
+ uploaded_by?: string | null;
2355
+ width_mm?: number | null;
2356
+ };
2357
+ Update: {
2358
+ content_hash?: string | null;
2359
+ created_at?: string;
2360
+ customer_key?: string;
2361
+ file_name?: string;
2362
+ file_path?: string;
2363
+ file_size?: number | null;
2364
+ floriday_sticker_id?: string | null;
2365
+ floriday_synced_at?: string | null;
2366
+ height_mm?: number | null;
2367
+ id?: string;
2368
+ mime_type?: string | null;
2369
+ source?: string;
2370
+ trade_item_key?: string;
2371
+ updated_at?: string;
2372
+ uploaded_by?: string | null;
2373
+ width_mm?: number | null;
2374
+ };
2375
+ Relationships: [];
2376
+ };
2275
2377
  customer_selected_assortment: {
2276
2378
  Row: {
2277
2379
  article_number: string | null;
@@ -2322,6 +2424,30 @@ export type Database = {
2322
2424
  }
2323
2425
  ];
2324
2426
  };
2427
+ customer_sticker_settings: {
2428
+ Row: {
2429
+ created_at: string;
2430
+ customer_key: string;
2431
+ height_mm: number;
2432
+ updated_at: string;
2433
+ width_mm: number;
2434
+ };
2435
+ Insert: {
2436
+ created_at?: string;
2437
+ customer_key: string;
2438
+ height_mm?: number;
2439
+ updated_at?: string;
2440
+ width_mm?: number;
2441
+ };
2442
+ Update: {
2443
+ created_at?: string;
2444
+ customer_key?: string;
2445
+ height_mm?: number;
2446
+ updated_at?: string;
2447
+ width_mm?: number;
2448
+ };
2449
+ Relationships: [];
2450
+ };
2325
2451
  customer_trade_settings: {
2326
2452
  Row: {
2327
2453
  category: string;
@@ -3683,6 +3809,7 @@ export type Database = {
3683
3809
  };
3684
3810
  email_auth_outbox: {
3685
3811
  Row: {
3812
+ attachments: Json;
3686
3813
  attempts: number;
3687
3814
  bcc_addresses: string[];
3688
3815
  cc_addresses: string[];
@@ -3705,6 +3832,7 @@ export type Database = {
3705
3832
  updated_at: string;
3706
3833
  };
3707
3834
  Insert: {
3835
+ attachments?: Json;
3708
3836
  attempts?: number;
3709
3837
  bcc_addresses?: string[];
3710
3838
  cc_addresses?: string[];
@@ -3727,6 +3855,7 @@ export type Database = {
3727
3855
  updated_at?: string;
3728
3856
  };
3729
3857
  Update: {
3858
+ attachments?: Json;
3730
3859
  attempts?: number;
3731
3860
  bcc_addresses?: string[];
3732
3861
  cc_addresses?: string[];
@@ -5731,6 +5860,105 @@ export type Database = {
5731
5860
  }
5732
5861
  ];
5733
5862
  };
5863
+ floriday_api_log: {
5864
+ Row: {
5865
+ action: string | null;
5866
+ caller: string | null;
5867
+ connection_id: string | null;
5868
+ created_at: string;
5869
+ cursor_from: number | null;
5870
+ direction: string;
5871
+ duration_ms: number | null;
5872
+ environment: string | null;
5873
+ error: string | null;
5874
+ floriday_id: string | null;
5875
+ floriday_reference: string | null;
5876
+ http_status: number;
5877
+ id: string;
5878
+ item_count: number | null;
5879
+ kind: string | null;
5880
+ local_id: string | null;
5881
+ local_reference: string | null;
5882
+ method: string;
5883
+ module: string | null;
5884
+ ok: boolean;
5885
+ path: string;
5886
+ request: Json | null;
5887
+ resource_type: string | null;
5888
+ response: Json | null;
5889
+ write_log_id: string | null;
5890
+ };
5891
+ Insert: {
5892
+ action?: string | null;
5893
+ caller?: string | null;
5894
+ connection_id?: string | null;
5895
+ created_at?: string;
5896
+ cursor_from?: number | null;
5897
+ direction: string;
5898
+ duration_ms?: number | null;
5899
+ environment?: string | null;
5900
+ error?: string | null;
5901
+ floriday_id?: string | null;
5902
+ floriday_reference?: string | null;
5903
+ http_status?: number;
5904
+ id?: string;
5905
+ item_count?: number | null;
5906
+ kind?: string | null;
5907
+ local_id?: string | null;
5908
+ local_reference?: string | null;
5909
+ method: string;
5910
+ module?: string | null;
5911
+ ok?: boolean;
5912
+ path: string;
5913
+ request?: Json | null;
5914
+ resource_type?: string | null;
5915
+ response?: Json | null;
5916
+ write_log_id?: string | null;
5917
+ };
5918
+ Update: {
5919
+ action?: string | null;
5920
+ caller?: string | null;
5921
+ connection_id?: string | null;
5922
+ created_at?: string;
5923
+ cursor_from?: number | null;
5924
+ direction?: string;
5925
+ duration_ms?: number | null;
5926
+ environment?: string | null;
5927
+ error?: string | null;
5928
+ floriday_id?: string | null;
5929
+ floriday_reference?: string | null;
5930
+ http_status?: number;
5931
+ id?: string;
5932
+ item_count?: number | null;
5933
+ kind?: string | null;
5934
+ local_id?: string | null;
5935
+ local_reference?: string | null;
5936
+ method?: string;
5937
+ module?: string | null;
5938
+ ok?: boolean;
5939
+ path?: string;
5940
+ request?: Json | null;
5941
+ resource_type?: string | null;
5942
+ response?: Json | null;
5943
+ write_log_id?: string | null;
5944
+ };
5945
+ Relationships: [
5946
+ {
5947
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
5948
+ columns: ["connection_id"];
5949
+ isOneToOne: false;
5950
+ referencedRelation: "floriday_connections";
5951
+ referencedColumns: ["id"];
5952
+ },
5953
+ {
5954
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
5955
+ columns: ["write_log_id"];
5956
+ isOneToOne: false;
5957
+ referencedRelation: "floriday_write_log";
5958
+ referencedColumns: ["id"];
5959
+ }
5960
+ ];
5961
+ };
5734
5962
  floriday_auction_letters_cache: {
5735
5963
  Row: {
5736
5964
  auction_letter_code: string;
@@ -5948,6 +6176,86 @@ export type Database = {
5948
6176
  }
5949
6177
  ];
5950
6178
  };
6179
+ floriday_catalog_prices_cache: {
6180
+ Row: {
6181
+ connection_id: string;
6182
+ created_at: string;
6183
+ currency: string;
6184
+ id: string;
6185
+ is_deleted: boolean;
6186
+ price: number | null;
6187
+ price_group_id: string | null;
6188
+ price_group_name: string | null;
6189
+ price_type: string;
6190
+ raw: Json | null;
6191
+ sales_unit: string | null;
6192
+ sequence_number: number;
6193
+ supplier_article_code: string | null;
6194
+ supply_line_id: string;
6195
+ synced_at: string;
6196
+ trade_item_id: string | null;
6197
+ updated_at: string;
6198
+ valid_from: string | null;
6199
+ valid_to: string | null;
6200
+ week: number | null;
6201
+ year: number | null;
6202
+ };
6203
+ Insert: {
6204
+ connection_id: string;
6205
+ created_at?: string;
6206
+ currency?: string;
6207
+ id?: string;
6208
+ is_deleted?: boolean;
6209
+ price?: number | null;
6210
+ price_group_id?: string | null;
6211
+ price_group_name?: string | null;
6212
+ price_type?: string;
6213
+ raw?: Json | null;
6214
+ sales_unit?: string | null;
6215
+ sequence_number?: number;
6216
+ supplier_article_code?: string | null;
6217
+ supply_line_id: string;
6218
+ synced_at?: string;
6219
+ trade_item_id?: string | null;
6220
+ updated_at?: string;
6221
+ valid_from?: string | null;
6222
+ valid_to?: string | null;
6223
+ week?: number | null;
6224
+ year?: number | null;
6225
+ };
6226
+ Update: {
6227
+ connection_id?: string;
6228
+ created_at?: string;
6229
+ currency?: string;
6230
+ id?: string;
6231
+ is_deleted?: boolean;
6232
+ price?: number | null;
6233
+ price_group_id?: string | null;
6234
+ price_group_name?: string | null;
6235
+ price_type?: string;
6236
+ raw?: Json | null;
6237
+ sales_unit?: string | null;
6238
+ sequence_number?: number;
6239
+ supplier_article_code?: string | null;
6240
+ supply_line_id?: string;
6241
+ synced_at?: string;
6242
+ trade_item_id?: string | null;
6243
+ updated_at?: string;
6244
+ valid_from?: string | null;
6245
+ valid_to?: string | null;
6246
+ week?: number | null;
6247
+ year?: number | null;
6248
+ };
6249
+ Relationships: [
6250
+ {
6251
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
6252
+ columns: ["connection_id"];
6253
+ isOneToOne: false;
6254
+ referencedRelation: "floriday_connections";
6255
+ referencedColumns: ["id"];
6256
+ }
6257
+ ];
6258
+ };
5951
6259
  floriday_clock_presales_cache: {
5952
6260
  Row: {
5953
6261
  buyer_organization_id: string | null;
@@ -6893,6 +7201,69 @@ export type Database = {
6893
7201
  }
6894
7202
  ];
6895
7203
  };
7204
+ floriday_link_templates: {
7205
+ Row: {
7206
+ created_at: string;
7207
+ floriday_url_template: string | null;
7208
+ is_active: boolean;
7209
+ label: string;
7210
+ local_url_template: string | null;
7211
+ resource_type: string;
7212
+ updated_at: string;
7213
+ };
7214
+ Insert: {
7215
+ created_at?: string;
7216
+ floriday_url_template?: string | null;
7217
+ is_active?: boolean;
7218
+ label: string;
7219
+ local_url_template?: string | null;
7220
+ resource_type: string;
7221
+ updated_at?: string;
7222
+ };
7223
+ Update: {
7224
+ created_at?: string;
7225
+ floriday_url_template?: string | null;
7226
+ is_active?: boolean;
7227
+ label?: string;
7228
+ local_url_template?: string | null;
7229
+ resource_type?: string;
7230
+ updated_at?: string;
7231
+ };
7232
+ Relationships: [];
7233
+ };
7234
+ floriday_log_retention: {
7235
+ Row: {
7236
+ created_at: string;
7237
+ direction: string | null;
7238
+ id: string;
7239
+ keep_failed_days: number | null;
7240
+ keep_ok_days: number | null;
7241
+ note: string | null;
7242
+ resource_type: string | null;
7243
+ updated_at: string;
7244
+ };
7245
+ Insert: {
7246
+ created_at?: string;
7247
+ direction?: string | null;
7248
+ id?: string;
7249
+ keep_failed_days?: number | null;
7250
+ keep_ok_days?: number | null;
7251
+ note?: string | null;
7252
+ resource_type?: string | null;
7253
+ updated_at?: string;
7254
+ };
7255
+ Update: {
7256
+ created_at?: string;
7257
+ direction?: string | null;
7258
+ id?: string;
7259
+ keep_failed_days?: number | null;
7260
+ keep_ok_days?: number | null;
7261
+ note?: string | null;
7262
+ resource_type?: string | null;
7263
+ updated_at?: string;
7264
+ };
7265
+ Relationships: [];
7266
+ };
6896
7267
  floriday_logistic_labels_cache: {
6897
7268
  Row: {
6898
7269
  byte_size: number | null;
@@ -8663,15 +9034,56 @@ export type Database = {
8663
9034
  };
8664
9035
  Relationships: [];
8665
9036
  };
8666
- itk_handover_github_scan: {
9037
+ itk_handover_afspraken: {
8667
9038
  Row: {
8668
- gescand_op: string;
9039
+ afgesproken_door: string | null;
9040
+ afgesproken_op: string;
9041
+ besluit: string;
9042
+ created_at: string;
9043
+ item: string;
9044
+ modules: string[];
9045
+ sleutel: string;
9046
+ soort: string;
9047
+ updated_at: string;
9048
+ versie_vingerafdruk: string;
9049
+ };
9050
+ Insert: {
9051
+ afgesproken_door?: string | null;
9052
+ afgesproken_op?: string;
9053
+ besluit?: string;
9054
+ created_at?: string;
9055
+ item?: string;
9056
+ modules?: string[];
9057
+ sleutel: string;
9058
+ soort?: string;
9059
+ updated_at?: string;
9060
+ versie_vingerafdruk?: string;
9061
+ };
9062
+ Update: {
9063
+ afgesproken_door?: string | null;
9064
+ afgesproken_op?: string;
9065
+ besluit?: string;
9066
+ created_at?: string;
9067
+ item?: string;
9068
+ modules?: string[];
9069
+ sleutel?: string;
9070
+ soort?: string;
9071
+ updated_at?: string;
9072
+ versie_vingerafdruk?: string;
9073
+ };
9074
+ Relationships: [];
9075
+ };
9076
+ itk_handover_github_scan: {
9077
+ Row: {
9078
+ genegeerd_op: string | null;
9079
+ gescand_op: string;
8669
9080
  gevonden: boolean;
8670
9081
  melding: string | null;
8671
9082
  module_id: string | null;
8672
9083
  repo: string;
8673
9084
  };
8674
9085
  Insert: {
9086
+ genegeerd_op?: string | null;
8675
9087
  gescand_op?: string;
8676
9088
  gevonden?: boolean;
8677
9089
  melding?: string | null;
@@ -8679,6 +9091,7 @@ export type Database = {
8679
9091
  repo: string;
8680
9092
  };
8681
9093
  Update: {
9094
+ genegeerd_op?: string | null;
8682
9095
  gescand_op?: string;
8683
9096
  gevonden?: boolean;
8684
9097
  melding?: string | null;
@@ -8687,13 +9100,45 @@ export type Database = {
8687
9100
  };
8688
9101
  Relationships: [];
8689
9102
  };
9103
+ itk_handover_github_voortgang: {
9104
+ Row: {
9105
+ bijgewerkt_op: string;
9106
+ huidige_repo: string | null;
9107
+ id: boolean;
9108
+ klaar: number;
9109
+ loopt: boolean;
9110
+ totaal: number;
9111
+ };
9112
+ Insert: {
9113
+ bijgewerkt_op?: string;
9114
+ huidige_repo?: string | null;
9115
+ id?: boolean;
9116
+ klaar?: number;
9117
+ loopt?: boolean;
9118
+ totaal?: number;
9119
+ };
9120
+ Update: {
9121
+ bijgewerkt_op?: string;
9122
+ huidige_repo?: string | null;
9123
+ id?: boolean;
9124
+ klaar?: number;
9125
+ loopt?: boolean;
9126
+ totaal?: number;
9127
+ };
9128
+ Relationships: [];
9129
+ };
8690
9130
  itk_handover_module_meta: {
8691
9131
  Row: {
8692
9132
  check_aangevraagd_op: string | null;
8693
9133
  check_nodig: boolean;
8694
9134
  check_reden: string | null;
8695
9135
  created_at: string;
9136
+ md_bron: boolean;
9137
+ md_bron_op: string | null;
9138
+ md_bron_pad: string | null;
8696
9139
  module_id: string;
9140
+ nieuw_gezien: boolean;
9141
+ nieuw_gezien_op: string | null;
8697
9142
  project_url: string | null;
8698
9143
  publicatie_url: string | null;
8699
9144
  updated_at: string;
@@ -8703,7 +9148,12 @@ export type Database = {
8703
9148
  check_nodig?: boolean;
8704
9149
  check_reden?: string | null;
8705
9150
  created_at?: string;
9151
+ md_bron?: boolean;
9152
+ md_bron_op?: string | null;
9153
+ md_bron_pad?: string | null;
8706
9154
  module_id: string;
9155
+ nieuw_gezien?: boolean;
9156
+ nieuw_gezien_op?: string | null;
8707
9157
  project_url?: string | null;
8708
9158
  publicatie_url?: string | null;
8709
9159
  updated_at?: string;
@@ -8713,13 +9163,45 @@ export type Database = {
8713
9163
  check_nodig?: boolean;
8714
9164
  check_reden?: string | null;
8715
9165
  created_at?: string;
9166
+ md_bron?: boolean;
9167
+ md_bron_op?: string | null;
9168
+ md_bron_pad?: string | null;
8716
9169
  module_id?: string;
9170
+ nieuw_gezien?: boolean;
9171
+ nieuw_gezien_op?: string | null;
8717
9172
  project_url?: string | null;
8718
9173
  publicatie_url?: string | null;
8719
9174
  updated_at?: string;
8720
9175
  };
8721
9176
  Relationships: [];
8722
9177
  };
9178
+ itk_handover_module_naam: {
9179
+ Row: {
9180
+ bron_repo: string;
9181
+ created_at: string;
9182
+ module_id: string;
9183
+ standaardnaam: string | null;
9184
+ updated_at: string;
9185
+ weergavenaam: string;
9186
+ };
9187
+ Insert: {
9188
+ bron_repo?: string;
9189
+ created_at?: string;
9190
+ module_id: string;
9191
+ standaardnaam?: string | null;
9192
+ updated_at?: string;
9193
+ weergavenaam: string;
9194
+ };
9195
+ Update: {
9196
+ bron_repo?: string;
9197
+ created_at?: string;
9198
+ module_id?: string;
9199
+ standaardnaam?: string | null;
9200
+ updated_at?: string;
9201
+ weergavenaam?: string;
9202
+ };
9203
+ Relationships: [];
9204
+ };
8723
9205
  itk_handover_project_modules: {
8724
9206
  Row: {
8725
9207
  created_at: string;
@@ -8835,6 +9317,7 @@ export type Database = {
8835
9317
  };
8836
9318
  itk_module_handovers: {
8837
9319
  Row: {
9320
+ bekende_risicos: string[];
8838
9321
  bevindingen: string | null;
8839
9322
  bezit_tabellen: string[];
8840
9323
  bron_commit: string | null;
@@ -8853,6 +9336,7 @@ export type Database = {
8853
9336
  inhoud_md: string;
8854
9337
  is_actueel: boolean;
8855
9338
  is_gearchiveerd: boolean;
9339
+ laatst_bevestigd_op: string | null;
8856
9340
  laatst_gecontroleerd_op: string | null;
8857
9341
  module_id: string;
8858
9342
  module_titel: string;
@@ -8862,6 +9346,7 @@ export type Database = {
8862
9346
  versie: number;
8863
9347
  };
8864
9348
  Insert: {
9349
+ bekende_risicos?: string[];
8865
9350
  bevindingen?: string | null;
8866
9351
  bezit_tabellen?: string[];
8867
9352
  bron_commit?: string | null;
@@ -8880,6 +9365,7 @@ export type Database = {
8880
9365
  inhoud_md: string;
8881
9366
  is_actueel?: boolean;
8882
9367
  is_gearchiveerd?: boolean;
9368
+ laatst_bevestigd_op?: string | null;
8883
9369
  laatst_gecontroleerd_op?: string | null;
8884
9370
  module_id: string;
8885
9371
  module_titel: string;
@@ -8889,6 +9375,7 @@ export type Database = {
8889
9375
  versie?: number;
8890
9376
  };
8891
9377
  Update: {
9378
+ bekende_risicos?: string[];
8892
9379
  bevindingen?: string | null;
8893
9380
  bezit_tabellen?: string[];
8894
9381
  bron_commit?: string | null;
@@ -8907,6 +9394,7 @@ export type Database = {
8907
9394
  inhoud_md?: string;
8908
9395
  is_actueel?: boolean;
8909
9396
  is_gearchiveerd?: boolean;
9397
+ laatst_bevestigd_op?: string | null;
8910
9398
  laatst_gecontroleerd_op?: string | null;
8911
9399
  module_id?: string;
8912
9400
  module_titel?: string;
@@ -9120,6 +9608,56 @@ export type Database = {
9120
9608
  };
9121
9609
  Relationships: [];
9122
9610
  };
9611
+ itk_offerte_werkbon_queue: {
9612
+ Row: {
9613
+ bron_werkbon_id: string | null;
9614
+ created_at: string;
9615
+ foutmelding: string | null;
9616
+ id: string;
9617
+ offerte_id: string;
9618
+ payload: Json;
9619
+ status: string;
9620
+ updated_at: string;
9621
+ verwerkt_op: string | null;
9622
+ werkbon_id: string | null;
9623
+ werkbon_nummer: string | null;
9624
+ };
9625
+ Insert: {
9626
+ bron_werkbon_id?: string | null;
9627
+ created_at?: string;
9628
+ foutmelding?: string | null;
9629
+ id?: string;
9630
+ offerte_id: string;
9631
+ payload?: Json;
9632
+ status?: string;
9633
+ updated_at?: string;
9634
+ verwerkt_op?: string | null;
9635
+ werkbon_id?: string | null;
9636
+ werkbon_nummer?: string | null;
9637
+ };
9638
+ Update: {
9639
+ bron_werkbon_id?: string | null;
9640
+ created_at?: string;
9641
+ foutmelding?: string | null;
9642
+ id?: string;
9643
+ offerte_id?: string;
9644
+ payload?: Json;
9645
+ status?: string;
9646
+ updated_at?: string;
9647
+ verwerkt_op?: string | null;
9648
+ werkbon_id?: string | null;
9649
+ werkbon_nummer?: string | null;
9650
+ };
9651
+ Relationships: [
9652
+ {
9653
+ foreignKeyName: "itk_offerte_werkbon_queue_offerte_id_fkey";
9654
+ columns: ["offerte_id"];
9655
+ isOneToOne: false;
9656
+ referencedRelation: "itk_offertes";
9657
+ referencedColumns: ["id"];
9658
+ }
9659
+ ];
9660
+ };
9123
9661
  itk_offertes: {
9124
9662
  Row: {
9125
9663
  ai_generated: boolean;
@@ -10341,6 +10879,36 @@ export type Database = {
10341
10879
  };
10342
10880
  Relationships: [];
10343
10881
  };
10882
+ logistics_floriday_push_refusals: {
10883
+ Row: {
10884
+ action: string | null;
10885
+ created_at: string;
10886
+ id: string;
10887
+ order_ref: string;
10888
+ reason: string;
10889
+ source_module: string | null;
10890
+ source_shell: string | null;
10891
+ };
10892
+ Insert: {
10893
+ action?: string | null;
10894
+ created_at?: string;
10895
+ id?: string;
10896
+ order_ref: string;
10897
+ reason: string;
10898
+ source_module?: string | null;
10899
+ source_shell?: string | null;
10900
+ };
10901
+ Update: {
10902
+ action?: string | null;
10903
+ created_at?: string;
10904
+ id?: string;
10905
+ order_ref?: string;
10906
+ reason?: string;
10907
+ source_module?: string | null;
10908
+ source_shell?: string | null;
10909
+ };
10910
+ Relationships: [];
10911
+ };
10344
10912
  logistics_floriday_pushes: {
10345
10913
  Row: {
10346
10914
  attempts: number;
@@ -10416,6 +10984,42 @@ export type Database = {
10416
10984
  };
10417
10985
  Relationships: [];
10418
10986
  };
10987
+ logistics_floriday_status_sends: {
10988
+ Row: {
10989
+ action: string;
10990
+ created_at: string;
10991
+ detail: string | null;
10992
+ http_status: number | null;
10993
+ id: string;
10994
+ ok: boolean;
10995
+ order_ref: string;
10996
+ source_module: string | null;
10997
+ source_shell: string | null;
10998
+ };
10999
+ Insert: {
11000
+ action: string;
11001
+ created_at?: string;
11002
+ detail?: string | null;
11003
+ http_status?: number | null;
11004
+ id?: string;
11005
+ ok?: boolean;
11006
+ order_ref: string;
11007
+ source_module?: string | null;
11008
+ source_shell?: string | null;
11009
+ };
11010
+ Update: {
11011
+ action?: string;
11012
+ created_at?: string;
11013
+ detail?: string | null;
11014
+ http_status?: number | null;
11015
+ id?: string;
11016
+ ok?: boolean;
11017
+ order_ref?: string;
11018
+ source_module?: string | null;
11019
+ source_shell?: string | null;
11020
+ };
11021
+ Relationships: [];
11022
+ };
10419
11023
  logistics_formulas: {
10420
11024
  Row: {
10421
11025
  created_at: string;
@@ -10490,6 +11094,144 @@ export type Database = {
10490
11094
  };
10491
11095
  Relationships: [];
10492
11096
  };
11097
+ logistics_opening_exceptions: {
11098
+ Row: {
11099
+ closes: string | null;
11100
+ created_at: string;
11101
+ day: string;
11102
+ id: string;
11103
+ is_closed: boolean;
11104
+ note: string | null;
11105
+ opens: string | null;
11106
+ };
11107
+ Insert: {
11108
+ closes?: string | null;
11109
+ created_at?: string;
11110
+ day: string;
11111
+ id?: string;
11112
+ is_closed?: boolean;
11113
+ note?: string | null;
11114
+ opens?: string | null;
11115
+ };
11116
+ Update: {
11117
+ closes?: string | null;
11118
+ created_at?: string;
11119
+ day?: string;
11120
+ id?: string;
11121
+ is_closed?: boolean;
11122
+ note?: string | null;
11123
+ opens?: string | null;
11124
+ };
11125
+ Relationships: [];
11126
+ };
11127
+ logistics_opening_hours: {
11128
+ Row: {
11129
+ closes: string;
11130
+ created_at: string;
11131
+ id: string;
11132
+ is_active: boolean;
11133
+ note: string | null;
11134
+ opens: string;
11135
+ weekday: number;
11136
+ };
11137
+ Insert: {
11138
+ closes: string;
11139
+ created_at?: string;
11140
+ id?: string;
11141
+ is_active?: boolean;
11142
+ note?: string | null;
11143
+ opens: string;
11144
+ weekday: number;
11145
+ };
11146
+ Update: {
11147
+ closes?: string;
11148
+ created_at?: string;
11149
+ id?: string;
11150
+ is_active?: boolean;
11151
+ note?: string | null;
11152
+ opens?: string;
11153
+ weekday?: number;
11154
+ };
11155
+ Relationships: [];
11156
+ };
11157
+ logistics_order_merges: {
11158
+ Row: {
11159
+ group_key: string;
11160
+ id: string;
11161
+ items_moved: number;
11162
+ kept_order_id: string;
11163
+ kept_order_number: string | null;
11164
+ merged_at: string;
11165
+ merged_order_id: string;
11166
+ merged_order_number: string | null;
11167
+ sales_order_id: string | null;
11168
+ };
11169
+ Insert: {
11170
+ group_key: string;
11171
+ id?: string;
11172
+ items_moved?: number;
11173
+ kept_order_id: string;
11174
+ kept_order_number?: string | null;
11175
+ merged_at?: string;
11176
+ merged_order_id: string;
11177
+ merged_order_number?: string | null;
11178
+ sales_order_id?: string | null;
11179
+ };
11180
+ Update: {
11181
+ group_key?: string;
11182
+ id?: string;
11183
+ items_moved?: number;
11184
+ kept_order_id?: string;
11185
+ kept_order_number?: string | null;
11186
+ merged_at?: string;
11187
+ merged_order_id?: string;
11188
+ merged_order_number?: string | null;
11189
+ sales_order_id?: string | null;
11190
+ };
11191
+ Relationships: [];
11192
+ };
11193
+ logistics_pick_data_requests: {
11194
+ Row: {
11195
+ actions: Json;
11196
+ created_at: string;
11197
+ event_id: string | null;
11198
+ finished_at: string | null;
11199
+ id: string;
11200
+ missing: Json;
11201
+ order_ref: string;
11202
+ reason: string | null;
11203
+ result: Json | null;
11204
+ status: string;
11205
+ unit_ref: string | null;
11206
+ };
11207
+ Insert: {
11208
+ actions?: Json;
11209
+ created_at?: string;
11210
+ event_id?: string | null;
11211
+ finished_at?: string | null;
11212
+ id?: string;
11213
+ missing?: Json;
11214
+ order_ref: string;
11215
+ reason?: string | null;
11216
+ result?: Json | null;
11217
+ status?: string;
11218
+ unit_ref?: string | null;
11219
+ };
11220
+ Update: {
11221
+ actions?: Json;
11222
+ created_at?: string;
11223
+ event_id?: string | null;
11224
+ finished_at?: string | null;
11225
+ id?: string;
11226
+ missing?: Json;
11227
+ order_ref?: string;
11228
+ reason?: string | null;
11229
+ result?: Json | null;
11230
+ status?: string;
11231
+ unit_ref?: string | null;
11232
+ };
11233
+ Relationships: [];
11234
+ };
10493
11235
  logistics_pickup_moments: {
10494
11236
  Row: {
10495
11237
  carrier_ref: string | null;
@@ -10526,6 +11268,30 @@ export type Database = {
10526
11268
  };
10527
11269
  Relationships: [];
10528
11270
  };
11271
+ logistics_plan_locks: {
11272
+ Row: {
11273
+ created_at: string;
11274
+ lock_key: string;
11275
+ locked_until: string;
11276
+ owner: string | null;
11277
+ updated_at: string;
11278
+ };
11279
+ Insert: {
11280
+ created_at?: string;
11281
+ lock_key: string;
11282
+ locked_until: string;
11283
+ owner?: string | null;
11284
+ updated_at?: string;
11285
+ };
11286
+ Update: {
11287
+ created_at?: string;
11288
+ lock_key?: string;
11289
+ locked_until?: string;
11290
+ owner?: string | null;
11291
+ updated_at?: string;
11292
+ };
11293
+ Relationships: [];
11294
+ };
10529
11295
  logistics_plan_queue: {
10530
11296
  Row: {
10531
11297
  attempts: number;
@@ -10956,7 +11722,70 @@ export type Database = {
10956
11722
  };
10957
11723
  Relationships: [];
10958
11724
  };
10959
- logistics_staff_planning: {
11725
+ logistics_slip_shipping_note: {
11726
+ Row: {
11727
+ attempts: number;
11728
+ batch_key: string | null;
11729
+ cart_id: string | null;
11730
+ created_at: string;
11731
+ error: string | null;
11732
+ error_code: string | null;
11733
+ fulfillment_order_id: string | null;
11734
+ id: string;
11735
+ locked_until: string | null;
11736
+ next_attempt_at: string | null;
11737
+ order_id: string | null;
11738
+ order_number: string | null;
11739
+ print_job_id: string | null;
11740
+ printer_id: string | null;
11741
+ retry_class: string | null;
11742
+ slip_job_id: string;
11743
+ status: string;
11744
+ updated_at: string;
11745
+ };
11746
+ Insert: {
11747
+ attempts?: number;
11748
+ batch_key?: string | null;
11749
+ cart_id?: string | null;
11750
+ created_at?: string;
11751
+ error?: string | null;
11752
+ error_code?: string | null;
11753
+ fulfillment_order_id?: string | null;
11754
+ id?: string;
11755
+ locked_until?: string | null;
11756
+ next_attempt_at?: string | null;
11757
+ order_id?: string | null;
11758
+ order_number?: string | null;
11759
+ print_job_id?: string | null;
11760
+ printer_id?: string | null;
11761
+ retry_class?: string | null;
11762
+ slip_job_id: string;
11763
+ status?: string;
11764
+ updated_at?: string;
11765
+ };
11766
+ Update: {
11767
+ attempts?: number;
11768
+ batch_key?: string | null;
11769
+ cart_id?: string | null;
11770
+ created_at?: string;
11771
+ error?: string | null;
11772
+ error_code?: string | null;
11773
+ fulfillment_order_id?: string | null;
11774
+ id?: string;
11775
+ locked_until?: string | null;
11776
+ next_attempt_at?: string | null;
11777
+ order_id?: string | null;
11778
+ order_number?: string | null;
11779
+ print_job_id?: string | null;
11780
+ printer_id?: string | null;
11781
+ retry_class?: string | null;
11782
+ slip_job_id?: string;
11783
+ status?: string;
11784
+ updated_at?: string;
11785
+ };
11786
+ Relationships: [];
11787
+ };
11788
+ logistics_staff_planning: {
10960
11789
  Row: {
10961
11790
  created_at: string;
10962
11791
  end_time: string;
@@ -11295,6 +12124,264 @@ export type Database = {
11295
12124
  };
11296
12125
  Relationships: [];
11297
12126
  };
12127
+ logistics_time_settings: {
12128
+ Row: {
12129
+ id: boolean;
12130
+ timezone: string;
12131
+ updated_at: string;
12132
+ };
12133
+ Insert: {
12134
+ id?: boolean;
12135
+ timezone: string;
12136
+ updated_at?: string;
12137
+ };
12138
+ Update: {
12139
+ id?: boolean;
12140
+ timezone?: string;
12141
+ updated_at?: string;
12142
+ };
12143
+ Relationships: [];
12144
+ };
12145
+ logistics_trace_events: {
12146
+ Row: {
12147
+ actor: string | null;
12148
+ attempts: number;
12149
+ calc: Json | null;
12150
+ cart_ref: string | null;
12151
+ created_at: string;
12152
+ db_action: string | null;
12153
+ db_new: Json | null;
12154
+ db_old: Json | null;
12155
+ db_record: string | null;
12156
+ db_table: string | null;
12157
+ decision: string | null;
12158
+ duration_ms: number | null;
12159
+ error: string | null;
12160
+ error_class: string | null;
12161
+ external_action: string | null;
12162
+ external_ref: string | null;
12163
+ external_response: Json | null;
12164
+ external_status: string | null;
12165
+ external_system: string | null;
12166
+ id: string;
12167
+ input: Json | null;
12168
+ next_attempt_at: string | null;
12169
+ next_step: string | null;
12170
+ node_id: string | null;
12171
+ order_ref: string | null;
12172
+ order_source: string | null;
12173
+ output: Json | null;
12174
+ phase: string;
12175
+ reads: Json | null;
12176
+ reason: string | null;
12177
+ rule: string | null;
12178
+ slip_ref: string | null;
12179
+ status: string;
12180
+ step: string;
12181
+ trace_id: string;
12182
+ values_used: Json | null;
12183
+ };
12184
+ Insert: {
12185
+ actor?: string | null;
12186
+ attempts?: number;
12187
+ calc?: Json | null;
12188
+ cart_ref?: string | null;
12189
+ created_at?: string;
12190
+ db_action?: string | null;
12191
+ db_new?: Json | null;
12192
+ db_old?: Json | null;
12193
+ db_record?: string | null;
12194
+ db_table?: string | null;
12195
+ decision?: string | null;
12196
+ duration_ms?: number | null;
12197
+ error?: string | null;
12198
+ error_class?: string | null;
12199
+ external_action?: string | null;
12200
+ external_ref?: string | null;
12201
+ external_response?: Json | null;
12202
+ external_status?: string | null;
12203
+ external_system?: string | null;
12204
+ id?: string;
12205
+ input?: Json | null;
12206
+ next_attempt_at?: string | null;
12207
+ next_step?: string | null;
12208
+ node_id?: string | null;
12209
+ order_ref?: string | null;
12210
+ order_source?: string | null;
12211
+ output?: Json | null;
12212
+ phase: string;
12213
+ reads?: Json | null;
12214
+ reason?: string | null;
12215
+ rule?: string | null;
12216
+ slip_ref?: string | null;
12217
+ status: string;
12218
+ step: string;
12219
+ trace_id?: string;
12220
+ values_used?: Json | null;
12221
+ };
12222
+ Update: {
12223
+ actor?: string | null;
12224
+ attempts?: number;
12225
+ calc?: Json | null;
12226
+ cart_ref?: string | null;
12227
+ created_at?: string;
12228
+ db_action?: string | null;
12229
+ db_new?: Json | null;
12230
+ db_old?: Json | null;
12231
+ db_record?: string | null;
12232
+ db_table?: string | null;
12233
+ decision?: string | null;
12234
+ duration_ms?: number | null;
12235
+ error?: string | null;
12236
+ error_class?: string | null;
12237
+ external_action?: string | null;
12238
+ external_ref?: string | null;
12239
+ external_response?: Json | null;
12240
+ external_status?: string | null;
12241
+ external_system?: string | null;
12242
+ id?: string;
12243
+ input?: Json | null;
12244
+ next_attempt_at?: string | null;
12245
+ next_step?: string | null;
12246
+ node_id?: string | null;
12247
+ order_ref?: string | null;
12248
+ order_source?: string | null;
12249
+ output?: Json | null;
12250
+ phase?: string;
12251
+ reads?: Json | null;
12252
+ reason?: string | null;
12253
+ rule?: string | null;
12254
+ slip_ref?: string | null;
12255
+ status?: string;
12256
+ step?: string;
12257
+ trace_id?: string;
12258
+ values_used?: Json | null;
12259
+ };
12260
+ Relationships: [];
12261
+ };
12262
+ logistics_trace_events_archive: {
12263
+ Row: {
12264
+ actor: string | null;
12265
+ attempts: number;
12266
+ calc: Json | null;
12267
+ cart_ref: string | null;
12268
+ created_at: string;
12269
+ db_action: string | null;
12270
+ db_new: Json | null;
12271
+ db_old: Json | null;
12272
+ db_record: string | null;
12273
+ db_table: string | null;
12274
+ decision: string | null;
12275
+ duration_ms: number | null;
12276
+ error: string | null;
12277
+ error_class: string | null;
12278
+ external_action: string | null;
12279
+ external_ref: string | null;
12280
+ external_response: Json | null;
12281
+ external_status: string | null;
12282
+ external_system: string | null;
12283
+ id: string;
12284
+ input: Json | null;
12285
+ next_attempt_at: string | null;
12286
+ next_step: string | null;
12287
+ node_id: string | null;
12288
+ order_ref: string | null;
12289
+ order_source: string | null;
12290
+ output: Json | null;
12291
+ phase: string;
12292
+ reads: Json | null;
12293
+ reason: string | null;
12294
+ rule: string | null;
12295
+ slip_ref: string | null;
12296
+ status: string;
12297
+ step: string;
12298
+ superseded_at: string;
12299
+ superseded_reason: string | null;
12300
+ trace_id: string;
12301
+ values_used: Json | null;
12302
+ };
12303
+ Insert: {
12304
+ actor?: string | null;
12305
+ attempts?: number;
12306
+ calc?: Json | null;
12307
+ cart_ref?: string | null;
12308
+ created_at?: string;
12309
+ db_action?: string | null;
12310
+ db_new?: Json | null;
12311
+ db_old?: Json | null;
12312
+ db_record?: string | null;
12313
+ db_table?: string | null;
12314
+ decision?: string | null;
12315
+ duration_ms?: number | null;
12316
+ error?: string | null;
12317
+ error_class?: string | null;
12318
+ external_action?: string | null;
12319
+ external_ref?: string | null;
12320
+ external_response?: Json | null;
12321
+ external_status?: string | null;
12322
+ external_system?: string | null;
12323
+ id?: string;
12324
+ input?: Json | null;
12325
+ next_attempt_at?: string | null;
12326
+ next_step?: string | null;
12327
+ node_id?: string | null;
12328
+ order_ref?: string | null;
12329
+ order_source?: string | null;
12330
+ output?: Json | null;
12331
+ phase: string;
12332
+ reads?: Json | null;
12333
+ reason?: string | null;
12334
+ rule?: string | null;
12335
+ slip_ref?: string | null;
12336
+ status: string;
12337
+ step: string;
12338
+ superseded_at?: string;
12339
+ superseded_reason?: string | null;
12340
+ trace_id?: string;
12341
+ values_used?: Json | null;
12342
+ };
12343
+ Update: {
12344
+ actor?: string | null;
12345
+ attempts?: number;
12346
+ calc?: Json | null;
12347
+ cart_ref?: string | null;
12348
+ created_at?: string;
12349
+ db_action?: string | null;
12350
+ db_new?: Json | null;
12351
+ db_old?: Json | null;
12352
+ db_record?: string | null;
12353
+ db_table?: string | null;
12354
+ decision?: string | null;
12355
+ duration_ms?: number | null;
12356
+ error?: string | null;
12357
+ error_class?: string | null;
12358
+ external_action?: string | null;
12359
+ external_ref?: string | null;
12360
+ external_response?: Json | null;
12361
+ external_status?: string | null;
12362
+ external_system?: string | null;
12363
+ id?: string;
12364
+ input?: Json | null;
12365
+ next_attempt_at?: string | null;
12366
+ next_step?: string | null;
12367
+ node_id?: string | null;
12368
+ order_ref?: string | null;
12369
+ order_source?: string | null;
12370
+ output?: Json | null;
12371
+ phase?: string;
12372
+ reads?: Json | null;
12373
+ reason?: string | null;
12374
+ rule?: string | null;
12375
+ slip_ref?: string | null;
12376
+ status?: string;
12377
+ step?: string;
12378
+ superseded_at?: string;
12379
+ superseded_reason?: string | null;
12380
+ trace_id?: string;
12381
+ values_used?: Json | null;
12382
+ };
12383
+ Relationships: [];
12384
+ };
11298
12385
  logistics_variables: {
11299
12386
  Row: {
11300
12387
  created_at: string;
@@ -11442,6 +12529,7 @@ export type Database = {
11442
12529
  has_attachments: boolean;
11443
12530
  id: string;
11444
12531
  message_id: string | null;
12532
+ preview: string | null;
11445
12533
  profile_id: string | null;
11446
12534
  raw_size: number | null;
11447
12535
  received_at: string | null;
@@ -11465,6 +12553,7 @@ export type Database = {
11465
12553
  has_attachments?: boolean;
11466
12554
  id?: string;
11467
12555
  message_id?: string | null;
12556
+ preview?: string | null;
11468
12557
  profile_id?: string | null;
11469
12558
  raw_size?: number | null;
11470
12559
  received_at?: string | null;
@@ -11488,6 +12577,7 @@ export type Database = {
11488
12577
  has_attachments?: boolean;
11489
12578
  id?: string;
11490
12579
  message_id?: string | null;
12580
+ preview?: string | null;
11491
12581
  profile_id?: string | null;
11492
12582
  raw_size?: number | null;
11493
12583
  received_at?: string | null;
@@ -11523,6 +12613,7 @@ export type Database = {
11523
12613
  };
11524
12614
  mailbox_order_proposals: {
11525
12615
  Row: {
12616
+ ai_ok: boolean | null;
11526
12617
  ai_validation: Json | null;
11527
12618
  confidence: number | null;
11528
12619
  created_at: string;
@@ -11540,6 +12631,7 @@ export type Database = {
11540
12631
  updated_at: string;
11541
12632
  };
11542
12633
  Insert: {
12634
+ ai_ok?: boolean | null;
11543
12635
  ai_validation?: Json | null;
11544
12636
  confidence?: number | null;
11545
12637
  created_at?: string;
@@ -11557,6 +12649,7 @@ export type Database = {
11557
12649
  updated_at?: string;
11558
12650
  };
11559
12651
  Update: {
12652
+ ai_ok?: boolean | null;
11560
12653
  ai_validation?: Json | null;
11561
12654
  confidence?: number | null;
11562
12655
  created_at?: string;
@@ -13759,6 +14852,7 @@ export type Database = {
13759
14852
  customer_name: string;
13760
14853
  deleted_at: string | null;
13761
14854
  delivery_date: string | null;
14855
+ floriday_order_group_key: string | null;
13762
14856
  floriday_sales_order_id: string | null;
13763
14857
  id: string;
13764
14858
  invoice_due_at: string | null;
@@ -13786,6 +14880,7 @@ export type Database = {
13786
14880
  customer_name?: string;
13787
14881
  deleted_at?: string | null;
13788
14882
  delivery_date?: string | null;
14883
+ floriday_order_group_key?: string | null;
13789
14884
  floriday_sales_order_id?: string | null;
13790
14885
  id?: string;
13791
14886
  invoice_due_at?: string | null;
@@ -13813,6 +14908,7 @@ export type Database = {
13813
14908
  customer_name?: string;
13814
14909
  deleted_at?: string | null;
13815
14910
  delivery_date?: string | null;
14911
+ floriday_order_group_key?: string | null;
13816
14912
  floriday_sales_order_id?: string | null;
13817
14913
  id?: string;
13818
14914
  invoice_due_at?: string | null;
@@ -14009,6 +15105,27 @@ export type Database = {
14009
15105
  };
14010
15106
  Relationships: [];
14011
15107
  };
15108
+ pick_buffer_event_cursor: {
15109
+ Row: {
15110
+ created_at: string;
15111
+ id: boolean;
15112
+ last_event_at: string;
15113
+ updated_at: string;
15114
+ };
15115
+ Insert: {
15116
+ created_at?: string;
15117
+ id?: boolean;
15118
+ last_event_at?: string;
15119
+ updated_at?: string;
15120
+ };
15121
+ Update: {
15122
+ created_at?: string;
15123
+ id?: boolean;
15124
+ last_event_at?: string;
15125
+ updated_at?: string;
15126
+ };
15127
+ Relationships: [];
15128
+ };
14012
15129
  pick_countries: {
14013
15130
  Row: {
14014
15131
  active: boolean;
@@ -15136,6 +16253,128 @@ export type Database = {
15136
16253
  }
15137
16254
  ];
15138
16255
  };
16256
+ price_list_rows: {
16257
+ Row: {
16258
+ action: string;
16259
+ created_at: string;
16260
+ id: string;
16261
+ message: string | null;
16262
+ parsed: Json;
16263
+ price_list_id: string;
16264
+ raw: Json;
16265
+ row_number: number;
16266
+ supplier_product_id: string | null;
16267
+ };
16268
+ Insert: {
16269
+ action?: string;
16270
+ created_at?: string;
16271
+ id?: string;
16272
+ message?: string | null;
16273
+ parsed?: Json;
16274
+ price_list_id: string;
16275
+ raw?: Json;
16276
+ row_number: number;
16277
+ supplier_product_id?: string | null;
16278
+ };
16279
+ Update: {
16280
+ action?: string;
16281
+ created_at?: string;
16282
+ id?: string;
16283
+ message?: string | null;
16284
+ parsed?: Json;
16285
+ price_list_id?: string;
16286
+ raw?: Json;
16287
+ row_number?: number;
16288
+ supplier_product_id?: string | null;
16289
+ };
16290
+ Relationships: [
16291
+ {
16292
+ foreignKeyName: "price_list_rows_price_list_id_fkey";
16293
+ columns: ["price_list_id"];
16294
+ isOneToOne: false;
16295
+ referencedRelation: "price_lists";
16296
+ referencedColumns: ["id"];
16297
+ },
16298
+ {
16299
+ foreignKeyName: "price_list_rows_supplier_product_id_fkey";
16300
+ columns: ["supplier_product_id"];
16301
+ isOneToOne: false;
16302
+ referencedRelation: "supplier_products";
16303
+ referencedColumns: ["id"];
16304
+ }
16305
+ ];
16306
+ };
16307
+ price_lists: {
16308
+ Row: {
16309
+ created_at: string;
16310
+ created_by: string | null;
16311
+ file_hash: string | null;
16312
+ file_name: string;
16313
+ file_path: string | null;
16314
+ headers: string[];
16315
+ id: string;
16316
+ preview: Json;
16317
+ processed_at: string | null;
16318
+ reason: string | null;
16319
+ row_count: number;
16320
+ sheet_name: string | null;
16321
+ source: string;
16322
+ stats: Json;
16323
+ status: string;
16324
+ supplier_guess: string | null;
16325
+ supplier_id: string | null;
16326
+ updated_at: string;
16327
+ };
16328
+ Insert: {
16329
+ created_at?: string;
16330
+ created_by?: string | null;
16331
+ file_hash?: string | null;
16332
+ file_name: string;
16333
+ file_path?: string | null;
16334
+ headers?: string[];
16335
+ id?: string;
16336
+ preview?: Json;
16337
+ processed_at?: string | null;
16338
+ reason?: string | null;
16339
+ row_count?: number;
16340
+ sheet_name?: string | null;
16341
+ source?: string;
16342
+ stats?: Json;
16343
+ status?: string;
16344
+ supplier_guess?: string | null;
16345
+ supplier_id?: string | null;
16346
+ updated_at?: string;
16347
+ };
16348
+ Update: {
16349
+ created_at?: string;
16350
+ created_by?: string | null;
16351
+ file_hash?: string | null;
16352
+ file_name?: string;
16353
+ file_path?: string | null;
16354
+ headers?: string[];
16355
+ id?: string;
16356
+ preview?: Json;
16357
+ processed_at?: string | null;
16358
+ reason?: string | null;
16359
+ row_count?: number;
16360
+ sheet_name?: string | null;
16361
+ source?: string;
16362
+ stats?: Json;
16363
+ status?: string;
16364
+ supplier_guess?: string | null;
16365
+ supplier_id?: string | null;
16366
+ updated_at?: string;
16367
+ };
16368
+ Relationships: [
16369
+ {
16370
+ foreignKeyName: "price_lists_supplier_id_fkey";
16371
+ columns: ["supplier_id"];
16372
+ isOneToOne: false;
16373
+ referencedRelation: "suppliers";
16374
+ referencedColumns: ["id"];
16375
+ }
16376
+ ];
16377
+ };
15139
16378
  print_agents: {
15140
16379
  Row: {
15141
16380
  actief: boolean;
@@ -16750,32 +17989,113 @@ export type Database = {
16750
17989
  }
16751
17990
  ];
16752
17991
  };
16753
- purchase_order_items: {
17992
+ purchase_order_dispatches: {
16754
17993
  Row: {
16755
17994
  created_at: string;
16756
17995
  id: string;
16757
- product_id: string | null;
16758
- product_type: string;
17996
+ last_error: string | null;
17997
+ outbox_id: string | null;
16759
17998
  purchase_order_id: string;
16760
- quantity: number;
17999
+ status: string;
18000
+ supplier_id: string | null;
18001
+ supplier_name: string;
18002
+ to_address: string;
18003
+ updated_at: string;
16761
18004
  };
16762
18005
  Insert: {
16763
18006
  created_at?: string;
16764
18007
  id?: string;
16765
- product_id?: string | null;
16766
- product_type?: string;
18008
+ last_error?: string | null;
18009
+ outbox_id?: string | null;
16767
18010
  purchase_order_id: string;
16768
- quantity?: number;
18011
+ status?: string;
18012
+ supplier_id?: string | null;
18013
+ supplier_name?: string;
18014
+ to_address: string;
18015
+ updated_at?: string;
16769
18016
  };
16770
18017
  Update: {
16771
18018
  created_at?: string;
16772
18019
  id?: string;
16773
- product_id?: string | null;
16774
- product_type?: string;
18020
+ last_error?: string | null;
18021
+ outbox_id?: string | null;
16775
18022
  purchase_order_id?: string;
16776
- quantity?: number;
16777
- };
16778
- Relationships: [
18023
+ status?: string;
18024
+ supplier_id?: string | null;
18025
+ supplier_name?: string;
18026
+ to_address?: string;
18027
+ updated_at?: string;
18028
+ };
18029
+ Relationships: [
18030
+ {
18031
+ foreignKeyName: "purchase_order_dispatches_purchase_order_id_fkey";
18032
+ columns: ["purchase_order_id"];
18033
+ isOneToOne: false;
18034
+ referencedRelation: "purchase_orders";
18035
+ referencedColumns: ["id"];
18036
+ },
18037
+ {
18038
+ foreignKeyName: "purchase_order_dispatches_supplier_id_fkey";
18039
+ columns: ["supplier_id"];
18040
+ isOneToOne: false;
18041
+ referencedRelation: "suppliers";
18042
+ referencedColumns: ["id"];
18043
+ }
18044
+ ];
18045
+ };
18046
+ purchase_order_items: {
18047
+ Row: {
18048
+ article_number: string | null;
18049
+ created_at: string;
18050
+ delivery_date: string | null;
18051
+ id: string;
18052
+ name: string;
18053
+ note: string | null;
18054
+ pot_size: string | null;
18055
+ product_id: string | null;
18056
+ product_type: string;
18057
+ purchase_order_id: string;
18058
+ quantity: number;
18059
+ supplier_id: string | null;
18060
+ supplier_product_id: string | null;
18061
+ unit_price_cents: number;
18062
+ updated_at: string;
18063
+ };
18064
+ Insert: {
18065
+ article_number?: string | null;
18066
+ created_at?: string;
18067
+ delivery_date?: string | null;
18068
+ id?: string;
18069
+ name?: string;
18070
+ note?: string | null;
18071
+ pot_size?: string | null;
18072
+ product_id?: string | null;
18073
+ product_type?: string;
18074
+ purchase_order_id: string;
18075
+ quantity?: number;
18076
+ supplier_id?: string | null;
18077
+ supplier_product_id?: string | null;
18078
+ unit_price_cents?: number;
18079
+ updated_at?: string;
18080
+ };
18081
+ Update: {
18082
+ article_number?: string | null;
18083
+ created_at?: string;
18084
+ delivery_date?: string | null;
18085
+ id?: string;
18086
+ name?: string;
18087
+ note?: string | null;
18088
+ pot_size?: string | null;
18089
+ product_id?: string | null;
18090
+ product_type?: string;
18091
+ purchase_order_id?: string;
18092
+ quantity?: number;
18093
+ supplier_id?: string | null;
18094
+ supplier_product_id?: string | null;
18095
+ unit_price_cents?: number;
18096
+ updated_at?: string;
18097
+ };
18098
+ Relationships: [
16779
18099
  {
16780
18100
  foreignKeyName: "purchase_order_items_product_id_fkey";
16781
18101
  columns: ["product_id"];
@@ -16796,44 +18116,73 @@ export type Database = {
16796
18116
  isOneToOne: false;
16797
18117
  referencedRelation: "purchase_orders";
16798
18118
  referencedColumns: ["id"];
18119
+ },
18120
+ {
18121
+ foreignKeyName: "purchase_order_items_supplier_id_fkey";
18122
+ columns: ["supplier_id"];
18123
+ isOneToOne: false;
18124
+ referencedRelation: "suppliers";
18125
+ referencedColumns: ["id"];
18126
+ },
18127
+ {
18128
+ foreignKeyName: "purchase_order_items_supplier_product_id_fkey";
18129
+ columns: ["supplier_product_id"];
18130
+ isOneToOne: false;
18131
+ referencedRelation: "supplier_products";
18132
+ referencedColumns: ["id"];
16799
18133
  }
16800
18134
  ];
16801
18135
  };
16802
18136
  purchase_orders: {
16803
18137
  Row: {
18138
+ contact_person: string | null;
16804
18139
  created_at: string;
18140
+ created_by: string | null;
16805
18141
  expected_delivery_date: string;
16806
18142
  id: string;
16807
18143
  location_id: string | null;
16808
18144
  notes: string | null;
16809
18145
  order_number: string;
18146
+ reference: string | null;
18147
+ sent_at: string | null;
16810
18148
  status: string;
16811
18149
  supplier_id: string | null;
16812
18150
  supplier_name: string;
18151
+ total_cents: number;
16813
18152
  updated_at: string;
16814
18153
  };
16815
18154
  Insert: {
18155
+ contact_person?: string | null;
16816
18156
  created_at?: string;
16817
- expected_delivery_date: string;
18157
+ created_by?: string | null;
18158
+ expected_delivery_date?: string;
16818
18159
  id?: string;
16819
18160
  location_id?: string | null;
16820
18161
  notes?: string | null;
16821
- order_number: string;
18162
+ order_number?: string;
18163
+ reference?: string | null;
18164
+ sent_at?: string | null;
16822
18165
  status?: string;
16823
18166
  supplier_id?: string | null;
16824
18167
  supplier_name?: string;
18168
+ total_cents?: number;
16825
18169
  updated_at?: string;
16826
18170
  };
16827
18171
  Update: {
18172
+ contact_person?: string | null;
16828
18173
  created_at?: string;
18174
+ created_by?: string | null;
16829
18175
  expected_delivery_date?: string;
16830
18176
  id?: string;
16831
18177
  location_id?: string | null;
16832
18178
  notes?: string | null;
16833
18179
  order_number?: string;
18180
+ reference?: string | null;
18181
+ sent_at?: string | null;
16834
18182
  status?: string;
16835
18183
  supplier_id?: string | null;
16836
18184
  supplier_name?: string;
18185
+ total_cents?: number;
16837
18186
  updated_at?: string;
16838
18187
  };
16839
18188
  Relationships: [
@@ -17744,15 +19093,167 @@ export type Database = {
17744
19093
  };
17745
19094
  Relationships: [];
17746
19095
  };
19096
+ supplier_contacts: {
19097
+ Row: {
19098
+ created_at: string;
19099
+ email: string | null;
19100
+ id: string;
19101
+ is_primary: boolean;
19102
+ name: string;
19103
+ phone: string | null;
19104
+ role: string | null;
19105
+ supplier_id: string;
19106
+ updated_at: string;
19107
+ };
19108
+ Insert: {
19109
+ created_at?: string;
19110
+ email?: string | null;
19111
+ id?: string;
19112
+ is_primary?: boolean;
19113
+ name: string;
19114
+ phone?: string | null;
19115
+ role?: string | null;
19116
+ supplier_id: string;
19117
+ updated_at?: string;
19118
+ };
19119
+ Update: {
19120
+ created_at?: string;
19121
+ email?: string | null;
19122
+ id?: string;
19123
+ is_primary?: boolean;
19124
+ name?: string;
19125
+ phone?: string | null;
19126
+ role?: string | null;
19127
+ supplier_id?: string;
19128
+ updated_at?: string;
19129
+ };
19130
+ Relationships: [
19131
+ {
19132
+ foreignKeyName: "supplier_contacts_supplier_id_fkey";
19133
+ columns: ["supplier_id"];
19134
+ isOneToOne: false;
19135
+ referencedRelation: "suppliers";
19136
+ referencedColumns: ["id"];
19137
+ }
19138
+ ];
19139
+ };
19140
+ supplier_price_history: {
19141
+ Row: {
19142
+ created_at: string;
19143
+ id: string;
19144
+ new_price_cents: number;
19145
+ old_price_cents: number | null;
19146
+ price_list_id: string | null;
19147
+ supplier_id: string | null;
19148
+ supplier_product_id: string;
19149
+ };
19150
+ Insert: {
19151
+ created_at?: string;
19152
+ id?: string;
19153
+ new_price_cents: number;
19154
+ old_price_cents?: number | null;
19155
+ price_list_id?: string | null;
19156
+ supplier_id?: string | null;
19157
+ supplier_product_id: string;
19158
+ };
19159
+ Update: {
19160
+ created_at?: string;
19161
+ id?: string;
19162
+ new_price_cents?: number;
19163
+ old_price_cents?: number | null;
19164
+ price_list_id?: string | null;
19165
+ supplier_id?: string | null;
19166
+ supplier_product_id?: string;
19167
+ };
19168
+ Relationships: [
19169
+ {
19170
+ foreignKeyName: "supplier_price_history_price_list_id_fkey";
19171
+ columns: ["price_list_id"];
19172
+ isOneToOne: false;
19173
+ referencedRelation: "price_lists";
19174
+ referencedColumns: ["id"];
19175
+ },
19176
+ {
19177
+ foreignKeyName: "supplier_price_history_supplier_product_id_fkey";
19178
+ columns: ["supplier_product_id"];
19179
+ isOneToOne: false;
19180
+ referencedRelation: "supplier_products";
19181
+ referencedColumns: ["id"];
19182
+ }
19183
+ ];
19184
+ };
19185
+ supplier_price_list_mappings: {
19186
+ Row: {
19187
+ column_map: Json;
19188
+ created_at: string;
19189
+ deactivate_missing: boolean;
19190
+ decimal_separator: string;
19191
+ expected_headers: string[];
19192
+ extract_pot_from_name: boolean;
19193
+ header_row: number;
19194
+ id: string;
19195
+ max_error_ratio: number;
19196
+ price_is_cents: boolean;
19197
+ sheet_name: string | null;
19198
+ supplier_id: string;
19199
+ updated_at: string;
19200
+ };
19201
+ Insert: {
19202
+ column_map?: Json;
19203
+ created_at?: string;
19204
+ deactivate_missing?: boolean;
19205
+ decimal_separator?: string;
19206
+ expected_headers?: string[];
19207
+ extract_pot_from_name?: boolean;
19208
+ header_row?: number;
19209
+ id?: string;
19210
+ max_error_ratio?: number;
19211
+ price_is_cents?: boolean;
19212
+ sheet_name?: string | null;
19213
+ supplier_id: string;
19214
+ updated_at?: string;
19215
+ };
19216
+ Update: {
19217
+ column_map?: Json;
19218
+ created_at?: string;
19219
+ deactivate_missing?: boolean;
19220
+ decimal_separator?: string;
19221
+ expected_headers?: string[];
19222
+ extract_pot_from_name?: boolean;
19223
+ header_row?: number;
19224
+ id?: string;
19225
+ max_error_ratio?: number;
19226
+ price_is_cents?: boolean;
19227
+ sheet_name?: string | null;
19228
+ supplier_id?: string;
19229
+ updated_at?: string;
19230
+ };
19231
+ Relationships: [
19232
+ {
19233
+ foreignKeyName: "supplier_price_list_mappings_supplier_id_fkey";
19234
+ columns: ["supplier_id"];
19235
+ isOneToOne: true;
19236
+ referencedRelation: "suppliers";
19237
+ referencedColumns: ["id"];
19238
+ }
19239
+ ];
19240
+ };
17747
19241
  supplier_products: {
17748
19242
  Row: {
17749
19243
  article_number: string | null;
19244
+ available_quantity: number;
17750
19245
  created_at: string;
19246
+ height: string | null;
17751
19247
  id: string;
19248
+ is_active: boolean;
19249
+ min_order: number;
17752
19250
  name: string;
17753
19251
  notes: string | null;
19252
+ order_unit: number;
17754
19253
  pot_size: string | null;
17755
19254
  price: number | null;
19255
+ price_cents: number;
19256
+ quality: string | null;
17756
19257
  quantity: number | null;
17757
19258
  supplier_id: string;
17758
19259
  unit: string;
@@ -17760,12 +19261,19 @@ export type Database = {
17760
19261
  };
17761
19262
  Insert: {
17762
19263
  article_number?: string | null;
19264
+ available_quantity?: number;
17763
19265
  created_at?: string;
19266
+ height?: string | null;
17764
19267
  id?: string;
19268
+ is_active?: boolean;
19269
+ min_order?: number;
17765
19270
  name: string;
17766
19271
  notes?: string | null;
19272
+ order_unit?: number;
17767
19273
  pot_size?: string | null;
17768
19274
  price?: number | null;
19275
+ price_cents?: number;
19276
+ quality?: string | null;
17769
19277
  quantity?: number | null;
17770
19278
  supplier_id: string;
17771
19279
  unit?: string;
@@ -17773,12 +19281,19 @@ export type Database = {
17773
19281
  };
17774
19282
  Update: {
17775
19283
  article_number?: string | null;
19284
+ available_quantity?: number;
17776
19285
  created_at?: string;
19286
+ height?: string | null;
17777
19287
  id?: string;
19288
+ is_active?: boolean;
19289
+ min_order?: number;
17778
19290
  name?: string;
17779
19291
  notes?: string | null;
19292
+ order_unit?: number;
17780
19293
  pot_size?: string | null;
17781
19294
  price?: number | null;
19295
+ price_cents?: number;
19296
+ quality?: string | null;
17782
19297
  quantity?: number | null;
17783
19298
  supplier_id?: string;
17784
19299
  unit?: string;
@@ -17797,6 +19312,7 @@ export type Database = {
17797
19312
  suppliers: {
17798
19313
  Row: {
17799
19314
  address: string | null;
19315
+ category: string | null;
17800
19316
  column_mappings: Json | null;
17801
19317
  contact_person: string | null;
17802
19318
  created_at: string;
@@ -17804,13 +19320,24 @@ export type Database = {
17804
19320
  email: string | null;
17805
19321
  id: string;
17806
19322
  imported_file_name: string | null;
19323
+ is_preferred: boolean;
19324
+ kvk_number: string | null;
19325
+ lead_time_days: number | null;
19326
+ min_order_amount_cents: number;
17807
19327
  name: string;
17808
19328
  notes: string | null;
19329
+ order_days: string[];
19330
+ order_email: string | null;
19331
+ payment_terms_days: number | null;
17809
19332
  phone: string | null;
19333
+ status: string;
17810
19334
  updated_at: string;
19335
+ vat_number: string | null;
19336
+ website: string | null;
17811
19337
  };
17812
19338
  Insert: {
17813
19339
  address?: string | null;
19340
+ category?: string | null;
17814
19341
  column_mappings?: Json | null;
17815
19342
  contact_person?: string | null;
17816
19343
  created_at?: string;
@@ -17818,13 +19345,24 @@ export type Database = {
17818
19345
  email?: string | null;
17819
19346
  id?: string;
17820
19347
  imported_file_name?: string | null;
19348
+ is_preferred?: boolean;
19349
+ kvk_number?: string | null;
19350
+ lead_time_days?: number | null;
19351
+ min_order_amount_cents?: number;
17821
19352
  name: string;
17822
19353
  notes?: string | null;
19354
+ order_days?: string[];
19355
+ order_email?: string | null;
19356
+ payment_terms_days?: number | null;
17823
19357
  phone?: string | null;
19358
+ status?: string;
17824
19359
  updated_at?: string;
19360
+ vat_number?: string | null;
19361
+ website?: string | null;
17825
19362
  };
17826
19363
  Update: {
17827
19364
  address?: string | null;
19365
+ category?: string | null;
17828
19366
  column_mappings?: Json | null;
17829
19367
  contact_person?: string | null;
17830
19368
  created_at?: string;
@@ -17832,10 +19370,20 @@ export type Database = {
17832
19370
  email?: string | null;
17833
19371
  id?: string;
17834
19372
  imported_file_name?: string | null;
19373
+ is_preferred?: boolean;
19374
+ kvk_number?: string | null;
19375
+ lead_time_days?: number | null;
19376
+ min_order_amount_cents?: number;
17835
19377
  name?: string;
17836
19378
  notes?: string | null;
19379
+ order_days?: string[];
19380
+ order_email?: string | null;
19381
+ payment_terms_days?: number | null;
17837
19382
  phone?: string | null;
19383
+ status?: string;
17838
19384
  updated_at?: string;
19385
+ vat_number?: string | null;
19386
+ website?: string | null;
17839
19387
  };
17840
19388
  Relationships: [];
17841
19389
  };
@@ -18857,11 +20405,13 @@ export type Database = {
18857
20405
  auto_invoice_trigger_statuses: string[];
18858
20406
  created_at: string;
18859
20407
  debtor_gl_account: string;
20408
+ default_article_code: string | null;
18860
20409
  default_credit_invoice_type: string | null;
18861
20410
  default_gl_account: string;
18862
20411
  default_invoice_type: string;
18863
20412
  default_payment_term_days: number;
18864
20413
  default_vat_code: string;
20414
+ email_purpose: string | null;
18865
20415
  home_country_code: string;
18866
20416
  invoice_enabled_ao: boolean;
18867
20417
  invoice_enabled_fo: boolean;
@@ -18883,11 +20433,13 @@ export type Database = {
18883
20433
  auto_invoice_trigger_statuses?: string[];
18884
20434
  created_at?: string;
18885
20435
  debtor_gl_account?: string;
20436
+ default_article_code?: string | null;
18886
20437
  default_credit_invoice_type?: string | null;
18887
20438
  default_gl_account?: string;
18888
20439
  default_invoice_type?: string;
18889
20440
  default_payment_term_days?: number;
18890
20441
  default_vat_code?: string;
20442
+ email_purpose?: string | null;
18891
20443
  home_country_code?: string;
18892
20444
  invoice_enabled_ao?: boolean;
18893
20445
  invoice_enabled_fo?: boolean;
@@ -18909,11 +20461,13 @@ export type Database = {
18909
20461
  auto_invoice_trigger_statuses?: string[];
18910
20462
  created_at?: string;
18911
20463
  debtor_gl_account?: string;
20464
+ default_article_code?: string | null;
18912
20465
  default_credit_invoice_type?: string | null;
18913
20466
  default_gl_account?: string;
18914
20467
  default_invoice_type?: string;
18915
20468
  default_payment_term_days?: number;
18916
20469
  default_vat_code?: string;
20470
+ email_purpose?: string | null;
18917
20471
  home_country_code?: string;
18918
20472
  invoice_enabled_ao?: boolean;
18919
20473
  invoice_enabled_fo?: boolean;
@@ -19822,6 +21376,36 @@ export type Database = {
19822
21376
  }
19823
21377
  ];
19824
21378
  };
21379
+ voorraad_buffer_state: {
21380
+ Row: {
21381
+ buffer_id: string;
21382
+ buffer_key: string | null;
21383
+ closed_at: string | null;
21384
+ created_at: string;
21385
+ detached_orders: Json;
21386
+ reason: string | null;
21387
+ updated_at: string;
21388
+ };
21389
+ Insert: {
21390
+ buffer_id: string;
21391
+ buffer_key?: string | null;
21392
+ closed_at?: string | null;
21393
+ created_at?: string;
21394
+ detached_orders?: Json;
21395
+ reason?: string | null;
21396
+ updated_at?: string;
21397
+ };
21398
+ Update: {
21399
+ buffer_id?: string;
21400
+ buffer_key?: string | null;
21401
+ closed_at?: string | null;
21402
+ created_at?: string;
21403
+ detached_orders?: Json;
21404
+ reason?: string | null;
21405
+ updated_at?: string;
21406
+ };
21407
+ Relationships: [];
21408
+ };
19825
21409
  voorraad_custom_fields: {
19826
21410
  Row: {
19827
21411
  created_at: string;
@@ -19864,24 +21448,54 @@ export type Database = {
19864
21448
  };
19865
21449
  Relationships: [];
19866
21450
  };
19867
- voorraad_media_upload_failures: {
21451
+ voorraad_logistics_event_log: {
19868
21452
  Row: {
19869
- action: string;
19870
- attempt_number: number;
19871
- caller: string;
19872
- client_user_id: string | null;
19873
- content_type: string | null;
19874
21453
  created_at: string;
19875
- environment: string;
19876
- error_message: string | null;
19877
- filename: string | null;
19878
- id: string;
19879
- idempotency_key: string | null;
19880
- module: string;
19881
- path: string;
19882
- reference_id: string | null;
19883
- request_body_hash: string | null;
19884
- request_timestamp: number | null;
21454
+ event_id: string;
21455
+ event_type: string;
21456
+ order_ref: string | null;
21457
+ processed_at: string;
21458
+ result: Json;
21459
+ updated_at: string;
21460
+ };
21461
+ Insert: {
21462
+ created_at?: string;
21463
+ event_id: string;
21464
+ event_type: string;
21465
+ order_ref?: string | null;
21466
+ processed_at?: string;
21467
+ result?: Json;
21468
+ updated_at?: string;
21469
+ };
21470
+ Update: {
21471
+ created_at?: string;
21472
+ event_id?: string;
21473
+ event_type?: string;
21474
+ order_ref?: string | null;
21475
+ processed_at?: string;
21476
+ result?: Json;
21477
+ updated_at?: string;
21478
+ };
21479
+ Relationships: [];
21480
+ };
21481
+ voorraad_media_upload_failures: {
21482
+ Row: {
21483
+ action: string;
21484
+ attempt_number: number;
21485
+ caller: string;
21486
+ client_user_id: string | null;
21487
+ content_type: string | null;
21488
+ created_at: string;
21489
+ environment: string;
21490
+ error_message: string | null;
21491
+ filename: string | null;
21492
+ id: string;
21493
+ idempotency_key: string | null;
21494
+ module: string;
21495
+ path: string;
21496
+ reference_id: string | null;
21497
+ request_body_hash: string | null;
21498
+ request_timestamp: number | null;
19885
21499
  response_content_type: string | null;
19886
21500
  response_status: number | null;
19887
21501
  size_bytes: number | null;
@@ -20133,6 +21747,44 @@ export type Database = {
20133
21747
  }
20134
21748
  ];
20135
21749
  };
21750
+ werkbon_email_state: {
21751
+ Row: {
21752
+ created_at: string;
21753
+ event_id: string;
21754
+ id: string;
21755
+ is_archived: boolean;
21756
+ is_read: boolean;
21757
+ updated_at: string;
21758
+ werkbon_id: string | null;
21759
+ };
21760
+ Insert: {
21761
+ created_at?: string;
21762
+ event_id: string;
21763
+ id?: string;
21764
+ is_archived?: boolean;
21765
+ is_read?: boolean;
21766
+ updated_at?: string;
21767
+ werkbon_id?: string | null;
21768
+ };
21769
+ Update: {
21770
+ created_at?: string;
21771
+ event_id?: string;
21772
+ id?: string;
21773
+ is_archived?: boolean;
21774
+ is_read?: boolean;
21775
+ updated_at?: string;
21776
+ werkbon_id?: string | null;
21777
+ };
21778
+ Relationships: [
21779
+ {
21780
+ foreignKeyName: "werkbon_email_state_event_id_fkey";
21781
+ columns: ["event_id"];
21782
+ isOneToOne: true;
21783
+ referencedRelation: "email_auth_events";
21784
+ referencedColumns: ["id"];
21785
+ }
21786
+ ];
21787
+ };
20136
21788
  werkbon_export_runs: {
20137
21789
  Row: {
20138
21790
  created_at: string;
@@ -20289,6 +21941,147 @@ export type Database = {
20289
21941
  };
20290
21942
  Relationships: [];
20291
21943
  };
21944
+ werkbon_mail_ai_settings: {
21945
+ Row: {
21946
+ created_at: string;
21947
+ id: boolean;
21948
+ required_fields: string[];
21949
+ system_prompt: string;
21950
+ updated_at: string;
21951
+ updated_by: string | null;
21952
+ };
21953
+ Insert: {
21954
+ created_at?: string;
21955
+ id?: boolean;
21956
+ required_fields?: string[];
21957
+ system_prompt?: string;
21958
+ updated_at?: string;
21959
+ updated_by?: string | null;
21960
+ };
21961
+ Update: {
21962
+ created_at?: string;
21963
+ id?: boolean;
21964
+ required_fields?: string[];
21965
+ system_prompt?: string;
21966
+ updated_at?: string;
21967
+ updated_by?: string | null;
21968
+ };
21969
+ Relationships: [];
21970
+ };
21971
+ werkbon_mail_bodies: {
21972
+ Row: {
21973
+ created_at: string;
21974
+ event_id: string;
21975
+ fetch_error: string | null;
21976
+ fetched_at: string | null;
21977
+ html: string | null;
21978
+ updated_at: string;
21979
+ };
21980
+ Insert: {
21981
+ created_at?: string;
21982
+ event_id: string;
21983
+ fetch_error?: string | null;
21984
+ fetched_at?: string | null;
21985
+ html?: string | null;
21986
+ updated_at?: string;
21987
+ };
21988
+ Update: {
21989
+ created_at?: string;
21990
+ event_id?: string;
21991
+ fetch_error?: string | null;
21992
+ fetched_at?: string | null;
21993
+ html?: string | null;
21994
+ updated_at?: string;
21995
+ };
21996
+ Relationships: [];
21997
+ };
21998
+ werkbon_mail_inline_assets: {
21999
+ Row: {
22000
+ content_id: string | null;
22001
+ created_at: string;
22002
+ event_id: string;
22003
+ filename: string | null;
22004
+ id: string;
22005
+ is_inline: boolean;
22006
+ mime_type: string | null;
22007
+ size_bytes: number | null;
22008
+ storage_path: string;
22009
+ };
22010
+ Insert: {
22011
+ content_id?: string | null;
22012
+ created_at?: string;
22013
+ event_id: string;
22014
+ filename?: string | null;
22015
+ id?: string;
22016
+ is_inline?: boolean;
22017
+ mime_type?: string | null;
22018
+ size_bytes?: number | null;
22019
+ storage_path: string;
22020
+ };
22021
+ Update: {
22022
+ content_id?: string | null;
22023
+ created_at?: string;
22024
+ event_id?: string;
22025
+ filename?: string | null;
22026
+ id?: string;
22027
+ is_inline?: boolean;
22028
+ mime_type?: string | null;
22029
+ size_bytes?: number | null;
22030
+ storage_path?: string;
22031
+ };
22032
+ Relationships: [];
22033
+ };
22034
+ werkbon_mail_settings: {
22035
+ Row: {
22036
+ connection_id: string | null;
22037
+ connection_ids: string[];
22038
+ created_at: string;
22039
+ id: boolean;
22040
+ purposes: string[];
22041
+ source: string;
22042
+ updated_at: string;
22043
+ };
22044
+ Insert: {
22045
+ connection_id?: string | null;
22046
+ connection_ids?: string[];
22047
+ created_at?: string;
22048
+ id?: boolean;
22049
+ purposes?: string[];
22050
+ source?: string;
22051
+ updated_at?: string;
22052
+ };
22053
+ Update: {
22054
+ connection_id?: string | null;
22055
+ connection_ids?: string[];
22056
+ created_at?: string;
22057
+ id?: boolean;
22058
+ purposes?: string[];
22059
+ source?: string;
22060
+ updated_at?: string;
22061
+ };
22062
+ Relationships: [];
22063
+ };
22064
+ werkbon_mail_user_settings: {
22065
+ Row: {
22066
+ created_at: string;
22067
+ email_purpose: string | null;
22068
+ updated_at: string;
22069
+ user_id: string;
22070
+ };
22071
+ Insert: {
22072
+ created_at?: string;
22073
+ email_purpose?: string | null;
22074
+ updated_at?: string;
22075
+ user_id: string;
22076
+ };
22077
+ Update: {
22078
+ created_at?: string;
22079
+ email_purpose?: string | null;
22080
+ updated_at?: string;
22081
+ user_id?: string;
22082
+ };
22083
+ Relationships: [];
22084
+ };
20292
22085
  werkbon_materials: {
20293
22086
  Row: {
20294
22087
  article_number: string | null;
@@ -20645,92 +22438,248 @@ export type Database = {
20645
22438
  }
20646
22439
  ];
20647
22440
  };
20648
- werkbon_time_logs: {
22441
+ werkbon_proposal_lines: {
20649
22442
  Row: {
20650
- activity: string;
22443
+ article_number: string | null;
20651
22444
  created_at: string;
20652
- ended_at: string | null;
22445
+ description: string | null;
20653
22446
  id: string;
22447
+ line_type: string;
20654
22448
  note: string | null;
20655
- started_at: string;
20656
- user_id: string;
20657
- werkbon_id: string;
22449
+ package_id: string | null;
22450
+ proposal_id: string;
22451
+ quantity: number | null;
22452
+ sort_order: number;
22453
+ unit: string | null;
22454
+ updated_at: string;
20658
22455
  };
20659
22456
  Insert: {
20660
- activity: string;
22457
+ article_number?: string | null;
20661
22458
  created_at?: string;
20662
- ended_at?: string | null;
22459
+ description?: string | null;
20663
22460
  id?: string;
22461
+ line_type?: string;
20664
22462
  note?: string | null;
20665
- started_at?: string;
20666
- user_id: string;
20667
- werkbon_id: string;
22463
+ package_id?: string | null;
22464
+ proposal_id: string;
22465
+ quantity?: number | null;
22466
+ sort_order?: number;
22467
+ unit?: string | null;
22468
+ updated_at?: string;
20668
22469
  };
20669
22470
  Update: {
20670
- activity?: string;
22471
+ article_number?: string | null;
20671
22472
  created_at?: string;
20672
- ended_at?: string | null;
22473
+ description?: string | null;
20673
22474
  id?: string;
22475
+ line_type?: string;
20674
22476
  note?: string | null;
20675
- started_at?: string;
20676
- user_id?: string;
20677
- werkbon_id?: string;
22477
+ package_id?: string | null;
22478
+ proposal_id?: string;
22479
+ quantity?: number | null;
22480
+ sort_order?: number;
22481
+ unit?: string | null;
22482
+ updated_at?: string;
20678
22483
  };
20679
22484
  Relationships: [
20680
22485
  {
20681
- foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
20682
- columns: ["werkbon_id"];
20683
- isOneToOne: false;
20684
- referencedRelation: "werkbonnen";
20685
- referencedColumns: ["id"];
20686
- },
20687
- {
20688
- foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
20689
- columns: ["werkbon_id"];
22486
+ foreignKeyName: "werkbon_proposal_lines_proposal_id_fkey";
22487
+ columns: ["proposal_id"];
20690
22488
  isOneToOne: false;
20691
- referencedRelation: "wo_overview";
22489
+ referencedRelation: "werkbon_proposals";
20692
22490
  referencedColumns: ["id"];
20693
22491
  }
20694
22492
  ];
20695
22493
  };
20696
- werkbonnen: {
22494
+ werkbon_proposals: {
20697
22495
  Row: {
20698
- assigned_user_id: string | null;
22496
+ analysed: boolean;
20699
22497
  budget_mandate_cents: number;
20700
22498
  complaint_description: string | null;
22499
+ contact_id: string | null;
20701
22500
  created_at: string;
20702
- created_by: string | null;
22501
+ created_werkbon_id: string | null;
20703
22502
  customer_id: string | null;
22503
+ deadline_date: string | null;
22504
+ estimated_days: number | null;
22505
+ estimated_duration_minutes: number | null;
22506
+ event_id: string;
22507
+ external_id: string | null;
20704
22508
  externe_referentie: string | null;
20705
- extra_costs_cents: number;
20706
- first_time_fix: boolean | null;
22509
+ from_email: string | null;
22510
+ from_name: string | null;
20707
22511
  id: string;
20708
22512
  internal_notes: string | null;
20709
- needs_detail_review: boolean;
20710
- parent_werkbon_id: string | null;
20711
- parsed_payload: Json | null;
20712
- planning_status: string;
20713
- project_number: string | null;
20714
- review_reasons: string[];
22513
+ parsed_payload: Json;
22514
+ received_at: string | null;
22515
+ reviewed_at: string | null;
22516
+ reviewed_by: string | null;
20715
22517
  room_number: string | null;
20716
22518
  scheduled_end_time: string | null;
20717
22519
  scheduled_start_time: string | null;
20718
- sequence_number: number;
20719
- signature_accepted_at: string | null;
20720
- signature_by_user_id: string | null;
20721
- signature_name: string | null;
20722
- source_email_meta: Json | null;
20723
- source_mailbox_message_id: string | null;
20724
- source_pdf_path: string | null;
20725
- source_type: string;
20726
22520
  status: string;
22521
+ subject: string | null;
20727
22522
  technician_id: string | null;
20728
- technician_notes: string | null;
20729
- technician_notes_raw: string | null;
22523
+ technician_task_description: string | null;
22524
+ updated_at: string;
22525
+ work_address: string | null;
22526
+ };
22527
+ Insert: {
22528
+ analysed?: boolean;
22529
+ budget_mandate_cents?: number;
22530
+ complaint_description?: string | null;
22531
+ contact_id?: string | null;
22532
+ created_at?: string;
22533
+ created_werkbon_id?: string | null;
22534
+ customer_id?: string | null;
22535
+ deadline_date?: string | null;
22536
+ estimated_days?: number | null;
22537
+ estimated_duration_minutes?: number | null;
22538
+ event_id: string;
22539
+ external_id?: string | null;
22540
+ externe_referentie?: string | null;
22541
+ from_email?: string | null;
22542
+ from_name?: string | null;
22543
+ id?: string;
22544
+ internal_notes?: string | null;
22545
+ parsed_payload?: Json;
22546
+ received_at?: string | null;
22547
+ reviewed_at?: string | null;
22548
+ reviewed_by?: string | null;
22549
+ room_number?: string | null;
22550
+ scheduled_end_time?: string | null;
22551
+ scheduled_start_time?: string | null;
22552
+ status?: string;
22553
+ subject?: string | null;
22554
+ technician_id?: string | null;
22555
+ technician_task_description?: string | null;
22556
+ updated_at?: string;
22557
+ work_address?: string | null;
22558
+ };
22559
+ Update: {
22560
+ analysed?: boolean;
22561
+ budget_mandate_cents?: number;
22562
+ complaint_description?: string | null;
22563
+ contact_id?: string | null;
22564
+ created_at?: string;
22565
+ created_werkbon_id?: string | null;
22566
+ customer_id?: string | null;
22567
+ deadline_date?: string | null;
22568
+ estimated_days?: number | null;
22569
+ estimated_duration_minutes?: number | null;
22570
+ event_id?: string;
22571
+ external_id?: string | null;
22572
+ externe_referentie?: string | null;
22573
+ from_email?: string | null;
22574
+ from_name?: string | null;
22575
+ id?: string;
22576
+ internal_notes?: string | null;
22577
+ parsed_payload?: Json;
22578
+ received_at?: string | null;
22579
+ reviewed_at?: string | null;
22580
+ reviewed_by?: string | null;
22581
+ room_number?: string | null;
22582
+ scheduled_end_time?: string | null;
22583
+ scheduled_start_time?: string | null;
22584
+ status?: string;
22585
+ subject?: string | null;
22586
+ technician_id?: string | null;
22587
+ technician_task_description?: string | null;
22588
+ updated_at?: string;
22589
+ work_address?: string | null;
22590
+ };
22591
+ Relationships: [];
22592
+ };
22593
+ werkbon_time_logs: {
22594
+ Row: {
22595
+ activity: string;
22596
+ created_at: string;
22597
+ ended_at: string | null;
22598
+ id: string;
22599
+ note: string | null;
22600
+ started_at: string;
22601
+ user_id: string;
22602
+ werkbon_id: string;
22603
+ };
22604
+ Insert: {
22605
+ activity: string;
22606
+ created_at?: string;
22607
+ ended_at?: string | null;
22608
+ id?: string;
22609
+ note?: string | null;
22610
+ started_at?: string;
22611
+ user_id: string;
22612
+ werkbon_id: string;
22613
+ };
22614
+ Update: {
22615
+ activity?: string;
22616
+ created_at?: string;
22617
+ ended_at?: string | null;
22618
+ id?: string;
22619
+ note?: string | null;
22620
+ started_at?: string;
22621
+ user_id?: string;
22622
+ werkbon_id?: string;
22623
+ };
22624
+ Relationships: [
22625
+ {
22626
+ foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
22627
+ columns: ["werkbon_id"];
22628
+ isOneToOne: false;
22629
+ referencedRelation: "werkbonnen";
22630
+ referencedColumns: ["id"];
22631
+ },
22632
+ {
22633
+ foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
22634
+ columns: ["werkbon_id"];
22635
+ isOneToOne: false;
22636
+ referencedRelation: "wo_overview";
22637
+ referencedColumns: ["id"];
22638
+ }
22639
+ ];
22640
+ };
22641
+ werkbonnen: {
22642
+ Row: {
22643
+ assigned_user_id: string | null;
22644
+ budget_mandate_cents: number;
22645
+ complaint_description: string | null;
22646
+ created_at: string;
22647
+ created_by: string | null;
22648
+ customer_id: string | null;
22649
+ deadline_date: string | null;
22650
+ estimated_days: number | null;
22651
+ estimated_duration_minutes: number | null;
22652
+ externe_referentie: string | null;
22653
+ extra_costs_cents: number;
22654
+ first_time_fix: boolean | null;
22655
+ id: string;
22656
+ internal_notes: string | null;
22657
+ needs_detail_review: boolean;
22658
+ parent_werkbon_id: string | null;
22659
+ parsed_payload: Json | null;
22660
+ planning_status: string;
22661
+ project_number: string | null;
22662
+ review_reasons: string[];
22663
+ room_number: string | null;
22664
+ scheduled_end_time: string | null;
22665
+ scheduled_start_time: string | null;
22666
+ sequence_number: number;
22667
+ signature_accepted_at: string | null;
22668
+ signature_by_user_id: string | null;
22669
+ signature_name: string | null;
22670
+ source_email_meta: Json | null;
22671
+ source_mailbox_message_id: string | null;
22672
+ source_pdf_path: string | null;
22673
+ source_type: string;
22674
+ status: string;
22675
+ technician_id: string | null;
22676
+ technician_notes: string | null;
22677
+ technician_notes_raw: string | null;
20730
22678
  technician_task_description: string | null;
20731
22679
  updated_at: string;
20732
22680
  version: number;
20733
22681
  work_address: string | null;
22682
+ workday_hours: number | null;
20734
22683
  };
20735
22684
  Insert: {
20736
22685
  assigned_user_id?: string | null;
@@ -20739,6 +22688,9 @@ export type Database = {
20739
22688
  created_at?: string;
20740
22689
  created_by?: string | null;
20741
22690
  customer_id?: string | null;
22691
+ deadline_date?: string | null;
22692
+ estimated_days?: number | null;
22693
+ estimated_duration_minutes?: number | null;
20742
22694
  externe_referentie?: string | null;
20743
22695
  extra_costs_cents?: number;
20744
22696
  first_time_fix?: boolean | null;
@@ -20769,6 +22721,7 @@ export type Database = {
20769
22721
  updated_at?: string;
20770
22722
  version?: number;
20771
22723
  work_address?: string | null;
22724
+ workday_hours?: number | null;
20772
22725
  };
20773
22726
  Update: {
20774
22727
  assigned_user_id?: string | null;
@@ -20777,6 +22730,9 @@ export type Database = {
20777
22730
  created_at?: string;
20778
22731
  created_by?: string | null;
20779
22732
  customer_id?: string | null;
22733
+ deadline_date?: string | null;
22734
+ estimated_days?: number | null;
22735
+ estimated_duration_minutes?: number | null;
20780
22736
  externe_referentie?: string | null;
20781
22737
  extra_costs_cents?: number;
20782
22738
  first_time_fix?: boolean | null;
@@ -20807,6 +22763,7 @@ export type Database = {
20807
22763
  updated_at?: string;
20808
22764
  version?: number;
20809
22765
  work_address?: string | null;
22766
+ workday_hours?: number | null;
20810
22767
  };
20811
22768
  Relationships: [
20812
22769
  {
@@ -22049,6 +24006,10 @@ export type Database = {
22049
24006
  };
22050
24007
  Returns: string;
22051
24008
  };
24009
+ backfill_cart_numbers_day_seq: {
24010
+ Args: never;
24011
+ Returns: number;
24012
+ };
22052
24013
  backfill_open_order_reservations: {
22053
24014
  Args: never;
22054
24015
  Returns: {
@@ -22087,6 +24048,15 @@ export type Database = {
22087
24048
  Args: never;
22088
24049
  Returns: boolean;
22089
24050
  };
24051
+ cancel_open_print_jobs: {
24052
+ Args: {
24053
+ _cutoff: string;
24054
+ };
24055
+ Returns: {
24056
+ extern_job_id: string;
24057
+ id: string;
24058
+ }[];
24059
+ };
22090
24060
  check_offer_product_available_stock: {
22091
24061
  Args: {
22092
24062
  p_campaign_product_id: string;
@@ -22526,8 +24496,6 @@ export type Database = {
22526
24496
  cart_index: number;
22527
24497
  cart_number: string;
22528
24498
  cart_number_id: string;
22529
- cart_seq: number;
22530
- cart_total: number;
22531
24499
  order_id: string;
22532
24500
  order_number: string;
22533
24501
  order_source: string;
@@ -22752,6 +24720,17 @@ export type Database = {
22752
24720
  };
22753
24721
  Returns: boolean;
22754
24722
  };
24723
+ floriday_adopt_connection: {
24724
+ Args: {
24725
+ p_new: string;
24726
+ p_old: string;
24727
+ };
24728
+ Returns: Json;
24729
+ };
24730
+ floriday_autoheal_connections: {
24731
+ Args: never;
24732
+ Returns: Json;
24733
+ };
22755
24734
  floriday_capture_stock_snapshot: {
22756
24735
  Args: never;
22757
24736
  Returns: number;
@@ -22809,6 +24788,12 @@ export type Database = {
22809
24788
  };
22810
24789
  Returns: undefined;
22811
24790
  };
24791
+ floriday_relink_products: {
24792
+ Args: {
24793
+ p_connection_id?: string;
24794
+ };
24795
+ Returns: Json;
24796
+ };
22812
24797
  floriday_requeue_dead_letters: {
22813
24798
  Args: {
22814
24799
  p_connection_id?: string;
@@ -23031,6 +25016,27 @@ export type Database = {
23031
25016
  Args: never;
23032
25017
  Returns: string;
23033
25018
  };
25019
+ handover_afspraak_intrekken: {
25020
+ Args: {
25021
+ _sleutel: string;
25022
+ };
25023
+ Returns: boolean;
25024
+ };
25025
+ handover_afspraak_zetten: {
25026
+ Args: {
25027
+ _besluit: string;
25028
+ _item: string;
25029
+ _modules: string[];
25030
+ _sleutel: string;
25031
+ _soort: string;
25032
+ _versie_vingerafdruk: string;
25033
+ };
25034
+ Returns: boolean;
25035
+ };
25036
+ handover_afspraken: {
25037
+ Args: never;
25038
+ Returns: Json;
25039
+ };
23034
25040
  handover_archief_lijst: {
23035
25041
  Args: never;
23036
25042
  Returns: Json;
@@ -23048,6 +25054,12 @@ export type Database = {
23048
25054
  };
23049
25055
  Returns: boolean;
23050
25056
  };
25057
+ handover_check_afronden_na_scan: {
25058
+ Args: {
25059
+ _module_ids: string[];
25060
+ };
25061
+ Returns: number;
25062
+ };
23051
25063
  handover_check_markeren: {
23052
25064
  Args: {
23053
25065
  _module_ids: string[];
@@ -23091,6 +25103,14 @@ export type Database = {
23091
25103
  };
23092
25104
  Returns: boolean;
23093
25105
  };
25106
+ handover_md_bron_zetten: {
25107
+ Args: {
25108
+ _md: boolean;
25109
+ _module_id: string;
25110
+ _pad?: string;
25111
+ };
25112
+ Returns: boolean;
25113
+ };
23094
25114
  handover_module_meta_zetten: {
23095
25115
  Args: {
23096
25116
  _module_id: string;
@@ -23099,6 +25119,24 @@ export type Database = {
23099
25119
  };
23100
25120
  Returns: boolean;
23101
25121
  };
25122
+ handover_naam_zetten: {
25123
+ Args: {
25124
+ _bron_repo?: string;
25125
+ _module_id: string;
25126
+ _weergavenaam?: string;
25127
+ };
25128
+ Returns: boolean;
25129
+ };
25130
+ handover_namen: {
25131
+ Args: never;
25132
+ Returns: Json;
25133
+ };
25134
+ handover_nieuw_gezien: {
25135
+ Args: {
25136
+ _module_id: string;
25137
+ };
25138
+ Returns: boolean;
25139
+ };
23102
25140
  handover_norm_naam: {
23103
25141
  Args: {
23104
25142
  _naam: string;
@@ -23135,6 +25173,24 @@ export type Database = {
23135
25173
  _versie_label?: string;
23136
25174
  };
23137
25175
  Returns: Json;
25176
+ } | {
25177
+ Args: {
25178
+ _bekende_risicos?: string[];
25179
+ _bezit_tabellen?: string[];
25180
+ _bron_soort?: string;
25181
+ _commit?: string;
25182
+ _contractfuncties?: string[];
25183
+ _inhoud_md: string;
25184
+ _laatst_bevestigd_op?: string;
25185
+ _module_id: string;
25186
+ _module_titel: string;
25187
+ _ontbrekende_contracten?: string[];
25188
+ _pad?: string;
25189
+ _repo?: string;
25190
+ _samenvatting?: string;
25191
+ _versie_label?: string;
25192
+ };
25193
+ Returns: Json;
23138
25194
  };
23139
25195
  handover_publish_via_token: {
23140
25196
  Args: {
@@ -23232,6 +25288,27 @@ export type Database = {
23232
25288
  Args: never;
23233
25289
  Returns: boolean;
23234
25290
  };
25291
+ inkoop_apply_price_list: {
25292
+ Args: {
25293
+ _price_list_id: string;
25294
+ _rows: Json;
25295
+ };
25296
+ Returns: Json;
25297
+ };
25298
+ inkoop_next_order_number: {
25299
+ Args: never;
25300
+ Returns: string;
25301
+ };
25302
+ inkoop_send_order: {
25303
+ Args: {
25304
+ _order_id: string;
25305
+ };
25306
+ Returns: {
25307
+ outbox_id: string;
25308
+ supplier_name: string;
25309
+ to_address: string;
25310
+ }[];
25311
+ };
23235
25312
  instructie_get: {
23236
25313
  Args: {
23237
25314
  _sleutel: string;
@@ -23291,6 +25368,13 @@ export type Database = {
23291
25368
  };
23292
25369
  Returns: Json;
23293
25370
  };
25371
+ invoice_source_lines: {
25372
+ Args: {
25373
+ _source_id: string;
25374
+ _source_type: string;
25375
+ };
25376
+ Returns: Json;
25377
+ };
23294
25378
  is_authenticated: {
23295
25379
  Args: never;
23296
25380
  Returns: boolean;
@@ -23430,6 +25514,10 @@ export type Database = {
23430
25514
  };
23431
25515
  Returns: string;
23432
25516
  };
25517
+ logistics_active_layout_method: {
25518
+ Args: never;
25519
+ Returns: string;
25520
+ };
23433
25521
  logistics_active_pick_workdays: {
23434
25522
  Args: never;
23435
25523
  Returns: string[];
@@ -23604,6 +25692,12 @@ export type Database = {
23604
25692
  };
23605
25693
  Returns: string;
23606
25694
  };
25695
+ logistics_cart_checkin_at: {
25696
+ Args: {
25697
+ p_cart_id: string;
25698
+ };
25699
+ Returns: string;
25700
+ };
23607
25701
  logistics_cart_handled: {
23608
25702
  Args: {
23609
25703
  p_cart_index: number;
@@ -23637,10 +25731,22 @@ export type Database = {
23637
25731
  task_status: string;
23638
25732
  }[];
23639
25733
  };
25734
+ logistics_cart_is_full: {
25735
+ Args: {
25736
+ p_cart_id: string;
25737
+ };
25738
+ Returns: boolean;
25739
+ };
23640
25740
  logistics_cart_layout_method: {
23641
25741
  Args: never;
23642
25742
  Returns: Json;
23643
25743
  };
25744
+ logistics_cart_order_refs: {
25745
+ Args: {
25746
+ p_cart_id: string;
25747
+ };
25748
+ Returns: string[];
25749
+ };
23644
25750
  logistics_cart_plan_overview: {
23645
25751
  Args: {
23646
25752
  p_days?: number;
@@ -23660,9 +25766,27 @@ export type Database = {
23660
25766
  };
23661
25767
  Returns: Json;
23662
25768
  };
23663
- logistics_cart_seq: {
25769
+ logistics_cart_plan_status_core: {
23664
25770
  Args: {
23665
- p_order_uuid?: string;
25771
+ p_ref: string;
25772
+ };
25773
+ Returns: Json;
25774
+ };
25775
+ logistics_cart_release_reason: {
25776
+ Args: {
25777
+ p_cart_id: string;
25778
+ };
25779
+ Returns: string;
25780
+ };
25781
+ logistics_cart_released: {
25782
+ Args: {
25783
+ p_cart_id: string;
25784
+ };
25785
+ Returns: boolean;
25786
+ };
25787
+ logistics_cart_seq: {
25788
+ Args: {
25789
+ p_order_uuid?: string;
23666
25790
  };
23667
25791
  Returns: {
23668
25792
  cart_id: string;
@@ -23710,6 +25834,10 @@ export type Database = {
23710
25834
  unit_ref: string;
23711
25835
  }[];
23712
25836
  };
25837
+ logistics_carts_per_print: {
25838
+ Args: never;
25839
+ Returns: number;
25840
+ };
23713
25841
  logistics_check_order_allowed: {
23714
25842
  Args: {
23715
25843
  p_lines: Json;
@@ -23813,6 +25941,16 @@ export type Database = {
23813
25941
  isSetofReturn: false;
23814
25942
  };
23815
25943
  };
25944
+ logistics_cleanup_orphan_print_jobs: {
25945
+ Args: never;
25946
+ Returns: Json;
25947
+ };
25948
+ logistics_cleanup_tasks: {
25949
+ Args: {
25950
+ p_limit?: number;
25951
+ };
25952
+ Returns: Json;
25953
+ };
23816
25954
  logistics_complete_task: {
23817
25955
  Args: {
23818
25956
  p_result?: Json;
@@ -23875,6 +26013,12 @@ export type Database = {
23875
26013
  station_carts: number;
23876
26014
  }[];
23877
26015
  };
26016
+ logistics_control_complete_cart: {
26017
+ Args: {
26018
+ p_cart_id: string;
26019
+ };
26020
+ Returns: number;
26021
+ };
23878
26022
  logistics_control_scan_approve: {
23879
26023
  Args: {
23880
26024
  p_allow_reprint?: boolean;
@@ -23954,6 +26098,15 @@ export type Database = {
23954
26098
  Args: never;
23955
26099
  Returns: Json;
23956
26100
  };
26101
+ logistics_day_windows: {
26102
+ Args: {
26103
+ p_day: string;
26104
+ };
26105
+ Returns: {
26106
+ win_end: string;
26107
+ win_start: string;
26108
+ }[];
26109
+ };
23957
26110
  logistics_delay_customer_email: {
23958
26111
  Args: {
23959
26112
  p_customer: string;
@@ -24021,6 +26174,17 @@ export type Database = {
24021
26174
  };
24022
26175
  Returns: Json;
24023
26176
  };
26177
+ logistics_enqueue_shipping_note_with_slip: {
26178
+ Args: {
26179
+ _cart_id: string;
26180
+ _is_herprint: boolean;
26181
+ _printer_id: string;
26182
+ _queue_item_id: string;
26183
+ _session_id: string;
26184
+ _slip_job_id: string;
26185
+ };
26186
+ Returns: string;
26187
+ };
24024
26188
  logistics_enqueue_sticker_with_slip: {
24025
26189
  Args: {
24026
26190
  _cart_id: string;
@@ -24038,6 +26202,20 @@ export type Database = {
24038
26202
  };
24039
26203
  Returns: string;
24040
26204
  };
26205
+ logistics_ensure_pick_data: {
26206
+ Args: {
26207
+ p_event_id?: string;
26208
+ p_missing?: Json;
26209
+ p_ref: string;
26210
+ };
26211
+ Returns: Json;
26212
+ };
26213
+ logistics_ensure_shipping_notes: {
26214
+ Args: {
26215
+ p_limit?: number;
26216
+ };
26217
+ Returns: Json;
26218
+ };
24041
26219
  logistics_fail_task: {
24042
26220
  Args: {
24043
26221
  p_error: string;
@@ -24083,6 +26261,10 @@ export type Database = {
24083
26261
  isSetofReturn: false;
24084
26262
  };
24085
26263
  };
26264
+ logistics_fix_wrong_shipping_notes: {
26265
+ Args: never;
26266
+ Returns: Json;
26267
+ };
24086
26268
  logistics_floriday_cart_plan: {
24087
26269
  Args: {
24088
26270
  p_order_id: string;
@@ -24110,6 +26292,10 @@ export type Database = {
24110
26292
  revision: number;
24111
26293
  }[];
24112
26294
  };
26295
+ logistics_floriday_delivery_note_create_enabled: {
26296
+ Args: never;
26297
+ Returns: boolean;
26298
+ };
24113
26299
  logistics_floriday_finish_push: {
24114
26300
  Args: {
24115
26301
  _error?: string;
@@ -24159,6 +26345,38 @@ export type Database = {
24159
26345
  };
24160
26346
  Returns: string;
24161
26347
  };
26348
+ logistics_floriday_gate_status: {
26349
+ Args: never;
26350
+ Returns: Json;
26351
+ };
26352
+ logistics_floriday_log_refusal: {
26353
+ Args: {
26354
+ _action?: string;
26355
+ _module?: string;
26356
+ _order_ref: string;
26357
+ _reason: string;
26358
+ _shell?: string;
26359
+ };
26360
+ Returns: undefined;
26361
+ };
26362
+ logistics_floriday_log_send: {
26363
+ Args: {
26364
+ _action: string;
26365
+ _detail?: string;
26366
+ _http_status?: number;
26367
+ _module?: string;
26368
+ _ok: boolean;
26369
+ _order_ref: string;
26370
+ _shell?: string;
26371
+ };
26372
+ Returns: undefined;
26373
+ };
26374
+ logistics_floriday_order_approved: {
26375
+ Args: {
26376
+ _order_ref: string;
26377
+ };
26378
+ Returns: boolean;
26379
+ };
24162
26380
  logistics_floriday_prune_pushes: {
24163
26381
  Args: {
24164
26382
  _days?: number;
@@ -24173,6 +26391,20 @@ export type Database = {
24173
26391
  };
24174
26392
  Returns: string;
24175
26393
  };
26394
+ logistics_floriday_status_updates_enabled: {
26395
+ Args: never;
26396
+ Returns: boolean;
26397
+ };
26398
+ logistics_floriday_stock_updates_enabled: {
26399
+ Args: never;
26400
+ Returns: boolean;
26401
+ };
26402
+ logistics_floriday_write_allowed: {
26403
+ Args: {
26404
+ _action: string;
26405
+ };
26406
+ Returns: boolean;
26407
+ };
24176
26408
  logistics_fulfill_barcode_requests: {
24177
26409
  Args: {
24178
26410
  p_limit?: number;
@@ -24193,6 +26425,10 @@ export type Database = {
24193
26425
  };
24194
26426
  Returns: boolean;
24195
26427
  };
26428
+ logistics_layout_method_status: {
26429
+ Args: never;
26430
+ Returns: Json;
26431
+ };
24196
26432
  logistics_link_order_items: {
24197
26433
  Args: {
24198
26434
  p_order?: string;
@@ -24211,6 +26447,22 @@ export type Database = {
24211
26447
  };
24212
26448
  Returns: number;
24213
26449
  };
26450
+ logistics_merge_floriday_lines: {
26451
+ Args: {
26452
+ p_order_id: string;
26453
+ };
26454
+ Returns: string;
26455
+ };
26456
+ logistics_merge_lines_enabled: {
26457
+ Args: never;
26458
+ Returns: boolean;
26459
+ };
26460
+ logistics_merge_partial_carts: {
26461
+ Args: {
26462
+ p_limit?: number;
26463
+ };
26464
+ Returns: Json;
26465
+ };
24214
26466
  logistics_next_workday_date: {
24215
26467
  Args: {
24216
26468
  p_date: string;
@@ -24237,12 +26489,50 @@ export type Database = {
24237
26489
  };
24238
26490
  Returns: string;
24239
26491
  };
26492
+ logistics_opening_timezone: {
26493
+ Args: never;
26494
+ Returns: string;
26495
+ };
26496
+ logistics_order_cart_approval: {
26497
+ Args: {
26498
+ _order_ref: string;
26499
+ };
26500
+ Returns: {
26501
+ approved: number;
26502
+ total: number;
26503
+ }[];
26504
+ };
24240
26505
  logistics_order_cart_count: {
24241
26506
  Args: {
24242
26507
  p_order_ref: string;
24243
26508
  };
24244
26509
  Returns: number;
24245
26510
  };
26511
+ logistics_order_changed: {
26512
+ Args: {
26513
+ p_order_id: string;
26514
+ p_reason?: string;
26515
+ };
26516
+ Returns: undefined;
26517
+ };
26518
+ logistics_order_documents_ready: {
26519
+ Args: {
26520
+ p_order_ref: string;
26521
+ };
26522
+ Returns: Json;
26523
+ };
26524
+ logistics_order_documents_ready_bool: {
26525
+ Args: {
26526
+ p_order_ref: string;
26527
+ };
26528
+ Returns: boolean;
26529
+ };
26530
+ logistics_order_frozen: {
26531
+ Args: {
26532
+ p_order_id: string;
26533
+ };
26534
+ Returns: boolean;
26535
+ };
24246
26536
  logistics_order_handled: {
24247
26537
  Args: {
24248
26538
  p_order_uuid: string;
@@ -24256,6 +26546,18 @@ export type Database = {
24256
26546
  };
24257
26547
  Returns: boolean;
24258
26548
  };
26549
+ logistics_order_merge_key: {
26550
+ Args: {
26551
+ p_group_key: string;
26552
+ };
26553
+ Returns: string;
26554
+ };
26555
+ logistics_order_mergeable: {
26556
+ Args: {
26557
+ p_order_id: string;
26558
+ };
26559
+ Returns: boolean;
26560
+ };
24259
26561
  logistics_order_overview: {
24260
26562
  Args: {
24261
26563
  p_from?: string;
@@ -24293,6 +26595,12 @@ export type Database = {
24293
26595
  };
24294
26596
  Returns: string;
24295
26597
  };
26598
+ logistics_payload_is_floriday: {
26599
+ Args: {
26600
+ _payload: Json;
26601
+ };
26602
+ Returns: boolean;
26603
+ };
24296
26604
  logistics_pick_agenda: {
24297
26605
  Args: {
24298
26606
  p_from?: string;
@@ -24321,6 +26629,10 @@ export type Database = {
24321
26629
  Args: never;
24322
26630
  Returns: Json;
24323
26631
  };
26632
+ logistics_pick_partial_mode: {
26633
+ Args: never;
26634
+ Returns: string;
26635
+ };
24324
26636
  logistics_pick_start_estimate: {
24325
26637
  Args: {
24326
26638
  p_order: Json;
@@ -24370,6 +26682,12 @@ export type Database = {
24370
26682
  order_id: string;
24371
26683
  }[];
24372
26684
  };
26685
+ logistics_plan_defer: {
26686
+ Args: {
26687
+ p_id: string;
26688
+ };
26689
+ Returns: undefined;
26690
+ };
24373
26691
  logistics_plan_enqueue: {
24374
26692
  Args: {
24375
26693
  p_order_id: string;
@@ -24383,6 +26701,18 @@ export type Database = {
24383
26701
  };
24384
26702
  Returns: boolean;
24385
26703
  };
26704
+ logistics_plan_error_class: {
26705
+ Args: {
26706
+ p_error: string;
26707
+ };
26708
+ Returns: string;
26709
+ };
26710
+ logistics_plan_error_text: {
26711
+ Args: {
26712
+ p_error: string;
26713
+ };
26714
+ Returns: string;
26715
+ };
24386
26716
  logistics_plan_finish: {
24387
26717
  Args: {
24388
26718
  p_error?: string;
@@ -24411,14 +26741,80 @@ export type Database = {
24411
26741
  Args: never;
24412
26742
  Returns: undefined;
24413
26743
  };
26744
+ logistics_plan_lock_acquire: {
26745
+ Args: {
26746
+ _key: string;
26747
+ _owner?: string;
26748
+ _ttl_seconds?: number;
26749
+ };
26750
+ Returns: boolean;
26751
+ };
26752
+ logistics_plan_lock_release: {
26753
+ Args: {
26754
+ _key: string;
26755
+ _owner?: string;
26756
+ };
26757
+ Returns: undefined;
26758
+ };
26759
+ logistics_plan_progress: {
26760
+ Args: {
26761
+ p_refs: string[];
26762
+ };
26763
+ Returns: {
26764
+ cart_plan_ready: boolean;
26765
+ cart_plan_reason: string;
26766
+ cart_plan_released: boolean;
26767
+ plan_progress: number;
26768
+ plan_state: string;
26769
+ plan_state_since: string;
26770
+ unit_ref: string;
26771
+ }[];
26772
+ };
26773
+ logistics_plan_progress_pct: {
26774
+ Args: {
26775
+ p_order_id: string;
26776
+ };
26777
+ Returns: number;
26778
+ };
24414
26779
  logistics_plan_prune: {
24415
26780
  Args: never;
24416
26781
  Returns: number;
24417
26782
  };
26783
+ logistics_plan_queue_list: {
26784
+ Args: {
26785
+ p_limit?: number;
26786
+ };
26787
+ Returns: {
26788
+ attempts: number;
26789
+ claimed_at: string;
26790
+ customer_name: string;
26791
+ enqueued_at: string;
26792
+ error_class: string;
26793
+ error_raw: string;
26794
+ error_text: string;
26795
+ id: string;
26796
+ max_attempts: number;
26797
+ next_attempt_at: string;
26798
+ order_created_at: string;
26799
+ order_id: string;
26800
+ order_number: string;
26801
+ progress_pct: number;
26802
+ reason: string;
26803
+ stand: string;
26804
+ status: string;
26805
+ updated_at: string;
26806
+ }[];
26807
+ };
24418
26808
  logistics_plan_release_stale: {
24419
26809
  Args: never;
24420
26810
  Returns: number;
24421
26811
  };
26812
+ logistics_plan_reset_queue: {
26813
+ Args: {
26814
+ p_scope?: string;
26815
+ };
26816
+ Returns: number;
26817
+ };
24422
26818
  logistics_plan_retry: {
24423
26819
  Args: {
24424
26820
  p_order_ids: string[];
@@ -24432,6 +26828,22 @@ export type Database = {
24432
26828
  };
24433
26829
  Returns: number;
24434
26830
  };
26831
+ logistics_plan_state_for: {
26832
+ Args: {
26833
+ p_ref: string;
26834
+ };
26835
+ Returns: Json;
26836
+ };
26837
+ logistics_plan_timeout_running: {
26838
+ Args: never;
26839
+ Returns: number;
26840
+ };
26841
+ logistics_prepare_pick_documents: {
26842
+ Args: {
26843
+ p_limit?: number;
26844
+ };
26845
+ Returns: Json;
26846
+ };
24435
26847
  logistics_prune_buffer_member_queue: {
24436
26848
  Args: never;
24437
26849
  Returns: number;
@@ -24472,12 +26884,42 @@ export type Database = {
24472
26884
  Args: never;
24473
26885
  Returns: Json;
24474
26886
  };
26887
+ logistics_refresh_pick_queue_status: {
26888
+ Args: {
26889
+ p_ref: string;
26890
+ };
26891
+ Returns: number;
26892
+ };
24475
26893
  logistics_refresh_pickup_moments: {
24476
26894
  Args: {
24477
26895
  p_weeks?: number;
24478
26896
  };
24479
26897
  Returns: Json;
24480
26898
  };
26899
+ logistics_refresh_plan_state: {
26900
+ Args: {
26901
+ p_limit?: number;
26902
+ };
26903
+ Returns: Json;
26904
+ };
26905
+ logistics_replan_all: {
26906
+ Args: {
26907
+ p_reason?: string;
26908
+ };
26909
+ Returns: Json;
26910
+ };
26911
+ logistics_replan_all_force: {
26912
+ Args: {
26913
+ p_reason?: string;
26914
+ };
26915
+ Returns: Json;
26916
+ };
26917
+ logistics_replan_order_journey: {
26918
+ Args: {
26919
+ p_order_ref: string;
26920
+ };
26921
+ Returns: Json;
26922
+ };
24481
26923
  logistics_report_delay: {
24482
26924
  Args: {
24483
26925
  p_expected_date?: string;
@@ -24580,95 +27022,361 @@ export type Database = {
24580
27022
  };
24581
27023
  Returns: Json;
24582
27024
  };
24583
- logistics_scan_delays: {
24584
- Args: never;
24585
- Returns: number;
24586
- };
24587
- logistics_scan_order_stock: {
27025
+ logistics_scan_delays: {
27026
+ Args: never;
27027
+ Returns: number;
27028
+ };
27029
+ logistics_scan_order_stock: {
27030
+ Args: {
27031
+ p_order_id: string;
27032
+ };
27033
+ Returns: string;
27034
+ };
27035
+ logistics_scan_resolve: {
27036
+ Args: {
27037
+ p_code: string;
27038
+ };
27039
+ Returns: Json;
27040
+ };
27041
+ logistics_schedule_tasks: {
27042
+ Args: never;
27043
+ Returns: number;
27044
+ } | {
27045
+ Args: {
27046
+ p_order_ref?: string;
27047
+ };
27048
+ Returns: number;
27049
+ };
27050
+ logistics_set_order_priority: {
27051
+ Args: {
27052
+ p_order_ref: string;
27053
+ p_priority: number;
27054
+ p_user_id?: string;
27055
+ };
27056
+ Returns: number;
27057
+ };
27058
+ logistics_set_pick_day: {
27059
+ Args: {
27060
+ p_order_ref: string;
27061
+ p_pick_day: string;
27062
+ };
27063
+ Returns: Json;
27064
+ };
27065
+ logistics_shift_to_workday: {
27066
+ Args: {
27067
+ p_days: string[];
27068
+ p_ts: string;
27069
+ };
27070
+ Returns: string;
27071
+ };
27072
+ logistics_shipping_note_diagnose: {
27073
+ Args: {
27074
+ p_order_number: string;
27075
+ };
27076
+ Returns: Json;
27077
+ };
27078
+ logistics_shipping_note_follows_slip: {
27079
+ Args: never;
27080
+ Returns: boolean;
27081
+ };
27082
+ logistics_shipping_note_from_barcode: {
27083
+ Args: {
27084
+ p_allow_reprint?: boolean;
27085
+ p_barcode: string;
27086
+ p_station_id?: string;
27087
+ };
27088
+ Returns: Json;
27089
+ };
27090
+ logistics_shipping_note_job_for_slip: {
27091
+ Args: {
27092
+ _slip_job_id: string;
27093
+ };
27094
+ Returns: string;
27095
+ };
27096
+ logistics_shipping_notes_wake_all: {
27097
+ Args: never;
27098
+ Returns: Json;
27099
+ };
27100
+ logistics_slip_is_floriday: {
27101
+ Args: {
27102
+ _slip_job_id: string;
27103
+ };
27104
+ Returns: boolean;
27105
+ };
27106
+ logistics_slip_note_claim: {
27107
+ Args: {
27108
+ _lease_seconds?: number;
27109
+ _limit?: number;
27110
+ };
27111
+ Returns: {
27112
+ attempts: number;
27113
+ batch_key: string | null;
27114
+ cart_id: string | null;
27115
+ created_at: string;
27116
+ error: string | null;
27117
+ error_code: string | null;
27118
+ fulfillment_order_id: string | null;
27119
+ id: string;
27120
+ locked_until: string | null;
27121
+ next_attempt_at: string | null;
27122
+ order_id: string | null;
27123
+ order_number: string | null;
27124
+ print_job_id: string | null;
27125
+ printer_id: string | null;
27126
+ retry_class: string | null;
27127
+ slip_job_id: string;
27128
+ status: string;
27129
+ updated_at: string;
27130
+ }[];
27131
+ SetofOptions: {
27132
+ from: "*";
27133
+ to: "logistics_slip_shipping_note";
27134
+ isOneToOne: false;
27135
+ isSetofReturn: true;
27136
+ };
27137
+ };
27138
+ logistics_slip_note_finish: {
27139
+ Args: {
27140
+ _error?: string;
27141
+ _error_code?: string;
27142
+ _fulfillment_order_id?: string;
27143
+ _id: string;
27144
+ _ok: boolean;
27145
+ _print_job_id?: string;
27146
+ _status?: string;
27147
+ };
27148
+ Returns: undefined;
27149
+ };
27150
+ logistics_slip_note_keep_waiting: {
27151
+ Args: {
27152
+ _class?: string;
27153
+ _id: string;
27154
+ _reason: string;
27155
+ };
27156
+ Returns: undefined;
27157
+ };
27158
+ logistics_sticker_follows_slip: {
27159
+ Args: never;
27160
+ Returns: boolean;
27161
+ };
27162
+ logistics_subtract_working_minutes: {
27163
+ Args: {
27164
+ p_deadline: string;
27165
+ p_max_workdays?: number;
27166
+ p_minutes: number;
27167
+ };
27168
+ Returns: Json;
27169
+ };
27170
+ logistics_supersede_stale_tasks: {
27171
+ Args: {
27172
+ p_keep: string[];
27173
+ p_order_ref: string;
27174
+ p_run_id: string;
27175
+ p_user_id: string;
27176
+ };
27177
+ Returns: number;
27178
+ };
27179
+ logistics_sync_pick_queue: {
27180
+ Args: never;
27181
+ Returns: Json;
27182
+ };
27183
+ logistics_sync_task_carriers: {
27184
+ Args: {
27185
+ p_order_ref?: string;
27186
+ };
27187
+ Returns: number;
27188
+ };
27189
+ logistics_task_owner: {
27190
+ Args: {
27191
+ p_task_type: string;
27192
+ };
27193
+ Returns: string;
27194
+ };
27195
+ logistics_task_pick_minutes: {
27196
+ Args: {
27197
+ p_payload: Json;
27198
+ p_settings: Json;
27199
+ };
27200
+ Returns: number;
27201
+ };
27202
+ logistics_task_retention_days: {
27203
+ Args: never;
27204
+ Returns: number;
27205
+ };
27206
+ logistics_tick_ping: {
27207
+ Args: never;
27208
+ Returns: string;
27209
+ };
27210
+ logistics_timezone_options: {
27211
+ Args: never;
27212
+ Returns: {
27213
+ name: string;
27214
+ }[];
27215
+ };
27216
+ logistics_trace: {
27217
+ Args: {
27218
+ p: Json;
27219
+ };
27220
+ Returns: string;
27221
+ };
27222
+ logistics_trace_all_orders: {
27223
+ Args: {
27224
+ p_limit?: number;
27225
+ p_search?: string;
27226
+ };
27227
+ Returns: Json;
27228
+ };
27229
+ logistics_trace_archive_order: {
27230
+ Args: {
27231
+ p_order_ref: string;
27232
+ p_reason: string;
27233
+ };
27234
+ Returns: number;
27235
+ };
27236
+ logistics_trace_batch: {
27237
+ Args: {
27238
+ p: Json;
27239
+ };
27240
+ Returns: number;
27241
+ };
27242
+ logistics_trace_derive: {
27243
+ Args: {
27244
+ p: Json;
27245
+ };
27246
+ Returns: number;
27247
+ };
27248
+ logistics_trace_node: {
27249
+ Args: {
27250
+ p_op?: string;
27251
+ p_status?: string;
27252
+ p_table: string;
27253
+ };
27254
+ Returns: string;
27255
+ };
27256
+ logistics_trace_order_journey_start: {
27257
+ Args: {
27258
+ p_order_id: string;
27259
+ p_reason?: string;
27260
+ };
27261
+ Returns: string;
27262
+ };
27263
+ logistics_trace_order_origin: {
27264
+ Args: {
27265
+ p_order_id: string;
27266
+ };
27267
+ Returns: undefined;
27268
+ };
27269
+ logistics_trace_order_overview: {
27270
+ Args: {
27271
+ p_error_class?: string;
27272
+ p_limit?: number;
27273
+ p_search?: string;
27274
+ p_since?: string;
27275
+ p_source?: string;
27276
+ p_state?: string;
27277
+ p_step?: string;
27278
+ };
27279
+ Returns: Json;
27280
+ };
27281
+ logistics_trace_order_state: {
27282
+ Args: {
27283
+ p_order_ref: string;
27284
+ };
27285
+ Returns: Json;
27286
+ };
27287
+ logistics_trace_order_step: {
27288
+ Args: {
27289
+ p_class?: string;
27290
+ p_decision?: string;
27291
+ p_error?: string;
27292
+ p_next_step?: string;
27293
+ p_node: string;
27294
+ p_order_id: string;
27295
+ p_reason?: string;
27296
+ p_status: string;
27297
+ p_step: string;
27298
+ };
27299
+ Returns: undefined;
27300
+ };
27301
+ logistics_trace_orders: {
27302
+ Args: {
27303
+ p_limit?: number;
27304
+ p_search?: string;
27305
+ p_since?: string;
27306
+ p_status?: string;
27307
+ };
27308
+ Returns: Json;
27309
+ };
27310
+ logistics_trace_pick_state: {
24588
27311
  Args: {
24589
- p_order_id: string;
27312
+ p_order_number: string;
24590
27313
  };
24591
- Returns: string;
27314
+ Returns: undefined;
24592
27315
  };
24593
- logistics_scan_resolve: {
27316
+ logistics_trace_progress: {
24594
27317
  Args: {
24595
- p_code: string;
27318
+ p_limit?: number;
24596
27319
  };
24597
27320
  Returns: Json;
24598
27321
  };
24599
- logistics_schedule_tasks: {
24600
- Args: never;
24601
- Returns: number;
24602
- };
24603
- logistics_set_order_priority: {
27322
+ logistics_trace_progress_order: {
24604
27323
  Args: {
24605
27324
  p_order_ref: string;
24606
- p_priority: number;
24607
- p_user_id?: string;
24608
27325
  };
24609
- Returns: number;
27326
+ Returns: Json;
24610
27327
  };
24611
- logistics_set_pick_day: {
27328
+ logistics_trace_redact: {
24612
27329
  Args: {
24613
- p_order_ref: string;
24614
- p_pick_day: string;
27330
+ p: Json;
24615
27331
  };
24616
27332
  Returns: Json;
24617
27333
  };
24618
- logistics_shift_to_workday: {
27334
+ logistics_trace_source_node: {
24619
27335
  Args: {
24620
- p_days: string[];
24621
- p_ts: string;
27336
+ p_source: string;
24622
27337
  };
24623
27338
  Returns: string;
24624
27339
  };
24625
- logistics_shipping_note_from_barcode: {
27340
+ logistics_trace_step_once: {
24626
27341
  Args: {
24627
- p_allow_reprint?: boolean;
24628
- p_barcode: string;
24629
- p_station_id?: string;
27342
+ p_decision: string;
27343
+ p_next_step?: string;
27344
+ p_node: string;
27345
+ p_order_id: string;
27346
+ p_reason: string;
27347
+ p_status: string;
27348
+ p_step: string;
24630
27349
  };
24631
- Returns: Json;
24632
- };
24633
- logistics_sticker_follows_slip: {
24634
- Args: never;
24635
- Returns: boolean;
27350
+ Returns: undefined;
24636
27351
  };
24637
- logistics_supersede_stale_tasks: {
27352
+ logistics_trace_stock_check: {
24638
27353
  Args: {
24639
- p_keep: string[];
24640
- p_order_ref: string;
24641
- p_run_id: string;
24642
- p_user_id: string;
27354
+ p_order_id: string;
24643
27355
  };
24644
- Returns: number;
24645
- };
24646
- logistics_sync_pick_queue: {
24647
- Args: never;
24648
- Returns: Json;
27356
+ Returns: undefined;
24649
27357
  };
24650
- logistics_sync_task_carriers: {
27358
+ logistics_trace_timeline: {
24651
27359
  Args: {
24652
- p_order_ref?: string;
27360
+ p_limit?: number;
27361
+ p_order_ref: string;
24653
27362
  };
24654
- Returns: number;
27363
+ Returns: Json;
24655
27364
  };
24656
- logistics_task_owner: {
27365
+ logistics_trace_version_events: {
24657
27366
  Args: {
24658
- p_task_type: string;
27367
+ p_from?: string;
27368
+ p_limit?: number;
27369
+ p_order_ref: string;
27370
+ p_to?: string;
27371
+ p_version_id: string;
24659
27372
  };
24660
- Returns: string;
27373
+ Returns: Json;
24661
27374
  };
24662
- logistics_task_pick_minutes: {
27375
+ logistics_trace_versions: {
24663
27376
  Args: {
24664
- p_payload: Json;
24665
- p_settings: Json;
27377
+ p_order_ref: string;
24666
27378
  };
24667
- Returns: number;
24668
- };
24669
- logistics_tick_ping: {
24670
- Args: never;
24671
- Returns: string;
27379
+ Returns: Json;
24672
27380
  };
24673
27381
  logistics_upsert_task: {
24674
27382
  Args: {
@@ -24689,6 +27397,16 @@ export type Database = {
24689
27397
  };
24690
27398
  Returns: string;
24691
27399
  };
27400
+ logistics_valid_timezone: {
27401
+ Args: {
27402
+ _tz: string;
27403
+ };
27404
+ Returns: boolean;
27405
+ };
27406
+ logistics_working_hours_status: {
27407
+ Args: never;
27408
+ Returns: Json;
27409
+ };
24692
27410
  logistics_write_buffer_layer_positions: {
24693
27411
  Args: {
24694
27412
  p_buffer_id: string;
@@ -24750,6 +27468,12 @@ export type Database = {
24750
27468
  permission: string;
24751
27469
  }[];
24752
27470
  };
27471
+ next_cart_day_seq: {
27472
+ Args: {
27473
+ p_date: string;
27474
+ };
27475
+ Returns: number;
27476
+ };
24753
27477
  next_manufacture_partij: {
24754
27478
  Args: {
24755
27479
  _tenant_id: string;
@@ -24854,6 +27578,10 @@ export type Database = {
24854
27578
  online: boolean;
24855
27579
  }[];
24856
27580
  };
27581
+ pick_apply_buffer_events: {
27582
+ Args: never;
27583
+ Returns: Json;
27584
+ };
24857
27585
  pick_available_pick_days: {
24858
27586
  Args: {
24859
27587
  _max_days?: number;
@@ -25697,6 +28425,18 @@ export type Database = {
25697
28425
  };
25698
28426
  Returns: undefined;
25699
28427
  };
28428
+ prune_floriday_api_log: {
28429
+ Args: never;
28430
+ Returns: number;
28431
+ };
28432
+ quote_ack_work_order: {
28433
+ Args: {
28434
+ _queue_id: string;
28435
+ _werkbon_id: string;
28436
+ _werkbon_nummer?: string;
28437
+ };
28438
+ Returns: boolean;
28439
+ };
25700
28440
  quote_create_from_source: {
25701
28441
  Args: {
25702
28442
  _payload?: Json;
@@ -25705,6 +28445,13 @@ export type Database = {
25705
28445
  };
25706
28446
  Returns: string;
25707
28447
  };
28448
+ quote_fail_work_order: {
28449
+ Args: {
28450
+ _foutmelding: string;
28451
+ _queue_id: string;
28452
+ };
28453
+ Returns: boolean;
28454
+ };
25708
28455
  quote_get_billable_lines: {
25709
28456
  Args: {
25710
28457
  _quotation_id: string;
@@ -25721,6 +28468,12 @@ export type Database = {
25721
28468
  Args: never;
25722
28469
  Returns: Json;
25723
28470
  };
28471
+ quote_list_pending_work_orders: {
28472
+ Args: {
28473
+ _limit?: number;
28474
+ };
28475
+ Returns: Json;
28476
+ };
25724
28477
  quote_list_sources: {
25725
28478
  Args: {
25726
28479
  _limit?: number;
@@ -25728,6 +28481,12 @@ export type Database = {
25728
28481
  };
25729
28482
  Returns: Json;
25730
28483
  };
28484
+ quote_queue_follow_up: {
28485
+ Args: {
28486
+ _offerte_id: string;
28487
+ };
28488
+ Returns: string;
28489
+ };
25731
28490
  recompute_all_reserved_stock: {
25732
28491
  Args: never;
25733
28492
  Returns: undefined;
@@ -26130,6 +28889,13 @@ export type Database = {
26130
28889
  };
26131
28890
  Returns: number;
26132
28891
  };
28892
+ schedule_floriday_catalog_prices_sync: {
28893
+ Args: {
28894
+ p_apikey: string;
28895
+ p_url: string;
28896
+ };
28897
+ Returns: number;
28898
+ };
26133
28899
  schedule_floriday_clock_presales_sync: {
26134
28900
  Args: {
26135
28901
  p_apikey: string;
@@ -26402,6 +29168,52 @@ export type Database = {
26402
29168
  p_end_time: string;
26403
29169
  };
26404
29170
  Returns: Json;
29171
+ } | {
29172
+ Args: {
29173
+ p_end_lat?: number;
29174
+ p_end_lng?: number;
29175
+ p_log_id: string;
29176
+ };
29177
+ Returns: {
29178
+ auto_stop_reason: string | null;
29179
+ auto_stopped: boolean;
29180
+ created_at: string;
29181
+ current_latitude: number | null;
29182
+ current_longitude: number | null;
29183
+ current_position_updated_at: string | null;
29184
+ employee_id: string;
29185
+ end_latitude: number | null;
29186
+ end_longitude: number | null;
29187
+ end_time: string | null;
29188
+ eta_distance_km: number | null;
29189
+ eta_minutes: number | null;
29190
+ eta_updated_at: string | null;
29191
+ hour_category: string | null;
29192
+ id: string;
29193
+ last_reminder_at: string | null;
29194
+ notes: string | null;
29195
+ overtime_hours: number;
29196
+ overtime_type: string | null;
29197
+ regular_hours: number;
29198
+ reminder_count: number;
29199
+ requires_review: boolean;
29200
+ start_latitude: number | null;
29201
+ start_longitude: number | null;
29202
+ start_time: string;
29203
+ travel_cost: number | null;
29204
+ travel_distance_km: number | null;
29205
+ travel_duration_min: number | null;
29206
+ travel_time_minutes: number | null;
29207
+ type: string;
29208
+ updated_at: string;
29209
+ work_order_id: string | null;
29210
+ };
29211
+ SetofOptions: {
29212
+ from: "*";
29213
+ to: "time_logs";
29214
+ isOneToOne: true;
29215
+ isSetofReturn: false;
29216
+ };
26405
29217
  };
26406
29218
  swap_cart_layer_positions: {
26407
29219
  Args: {
@@ -26430,6 +29242,10 @@ export type Database = {
26430
29242
  };
26431
29243
  Returns: undefined;
26432
29244
  };
29245
+ sync_floriday_prices_into_price_groups: {
29246
+ Args: never;
29247
+ Returns: number;
29248
+ };
26433
29249
  sync_layer_stock: {
26434
29250
  Args: {
26435
29251
  p_product_id: string;
@@ -26554,14 +29370,99 @@ export type Database = {
26554
29370
  };
26555
29371
  Returns: undefined;
26556
29372
  };
29373
+ uren_employee_day_hours: {
29374
+ Args: {
29375
+ _day: string;
29376
+ _employee_id: string;
29377
+ };
29378
+ Returns: number;
29379
+ };
26557
29380
  uren_is_beheerder: {
26558
29381
  Args: never;
26559
29382
  Returns: boolean;
26560
29383
  };
29384
+ uren_list_medewerkers: {
29385
+ Args: never;
29386
+ Returns: {
29387
+ avatar_url: string;
29388
+ color: string;
29389
+ display_name: string;
29390
+ email: string;
29391
+ hours_fri: number;
29392
+ hours_mon: number;
29393
+ hours_thu: number;
29394
+ hours_tue: number;
29395
+ hours_wed: number;
29396
+ id: string;
29397
+ is_active: boolean;
29398
+ leave_balance_hours: number;
29399
+ persnr: string;
29400
+ phone: string;
29401
+ roles: string[];
29402
+ }[];
29403
+ };
26561
29404
  uren_my_monteur_id: {
26562
29405
  Args: never;
26563
29406
  Returns: string;
26564
29407
  };
29408
+ uren_planning_dagagenda: {
29409
+ Args: {
29410
+ _tot: string;
29411
+ _van: string;
29412
+ };
29413
+ Returns: {
29414
+ end_at: string;
29415
+ id: string;
29416
+ is_tweede_man: boolean;
29417
+ notes: string;
29418
+ start_at: string;
29419
+ status: Database["public"]["Enums"]["planning_item_status"];
29420
+ werkbon_id: string;
29421
+ }[];
29422
+ };
29423
+ uren_set_planning_item_status: {
29424
+ Args: {
29425
+ _id: string;
29426
+ _status: Database["public"]["Enums"]["planning_item_status"];
29427
+ };
29428
+ Returns: undefined;
29429
+ };
29430
+ uren_set_planning_status: {
29431
+ Args: {
29432
+ p_status: Database["public"]["Enums"]["planning_item_status"];
29433
+ p_werkbon_id: string;
29434
+ };
29435
+ Returns: number;
29436
+ };
29437
+ uren_stop_time_log: {
29438
+ Args: {
29439
+ p_employee_id: string;
29440
+ p_end_lat?: number;
29441
+ p_end_lng?: number;
29442
+ p_end_time: string;
29443
+ };
29444
+ Returns: Json;
29445
+ };
29446
+ uren_switch_time_log: {
29447
+ Args: {
29448
+ p_employee_id: string;
29449
+ p_start_lat?: number;
29450
+ p_start_lng?: number;
29451
+ p_type: string;
29452
+ p_work_order_id?: string;
29453
+ };
29454
+ Returns: Json;
29455
+ };
29456
+ uren_sync_sick_time_off: {
29457
+ Args: {
29458
+ _period_id: string;
29459
+ };
29460
+ Returns: number;
29461
+ };
29462
+ voorraad_cleanup_old_rows: {
29463
+ Args: never;
29464
+ Returns: Json;
29465
+ };
26565
29466
  wake_print_queue: {
26566
29467
  Args: {
26567
29468
  _min_interval_ms?: number;
@@ -26600,6 +29501,25 @@ export type Database = {
26600
29501
  };
26601
29502
  Returns: Json;
26602
29503
  };
29504
+ wo_list_offerte_requests: {
29505
+ Args: {
29506
+ _status?: string;
29507
+ };
29508
+ Returns: Json;
29509
+ };
29510
+ wo_process_offerte_request: {
29511
+ Args: {
29512
+ _queue_id: string;
29513
+ };
29514
+ Returns: Json;
29515
+ };
29516
+ wo_reject_offerte_request: {
29517
+ Args: {
29518
+ _queue_id: string;
29519
+ _reden?: string;
29520
+ };
29521
+ Returns: Json;
29522
+ };
26603
29523
  wo_set_status: {
26604
29524
  Args: {
26605
29525
  _reason?: string;