@flowselections/logistiek-engine 1.0.109 → 1.0.111

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/FlowOrders.js +1 -1
  2. package/dist-lib/components/MinuutrondeCard.d.ts.map +1 -1
  3. package/dist-lib/components/MinuutrondeCard.js +9 -1
  4. package/dist-lib/components/MisluktVerzendbrievenCard.js +1 -1
  5. package/dist-lib/hooks/useAfrondWachtrij.js +1 -1
  6. package/dist-lib/hooks/useBeladingsafwijkingen.js +1 -1
  7. package/dist-lib/hooks/useGeblokkeerdeOrders.js +1 -1
  8. package/dist-lib/hooks/useLogisticsTrace.js +1 -1
  9. package/dist-lib/hooks/useMinuutronde.js +1 -1
  10. package/dist-lib/hooks/useOrderTrace.js +1 -1
  11. package/dist-lib/hooks/useOrderVersies.js +1 -1
  12. package/dist-lib/hooks/usePlanWachtrij.js +1 -1
  13. package/dist-lib/hooks/useRecalcJob.js +1 -1
  14. package/dist-lib/hooks/useShellAdres.d.ts +20 -0
  15. package/dist-lib/hooks/useShellAdres.d.ts.map +1 -0
  16. package/dist-lib/hooks/useShellAdres.js +60 -0
  17. package/dist-lib/hooks/useTaakGezondheid.js +1 -1
  18. package/dist-lib/hooks/useWerktijden.js +1 -1
  19. package/dist-lib/hooks/useWerkwijzeStatus.js +1 -1
  20. package/dist-lib/index.d.ts +2 -0
  21. package/dist-lib/index.d.ts.map +1 -1
  22. package/dist-lib/index.js +2 -0
  23. package/dist-lib/integrations/supabase/client.server.d.ts +2 -32181
  24. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  25. package/dist-lib/integrations/supabase/client.server.js +1 -1
  26. package/dist-lib/integrations/supabase/moduleClient.d.ts +1 -32181
  27. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  28. package/dist-lib/integrations/supabase/types.d.ts +941 -0
  29. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  30. package/dist-lib/lib/attachAuthToken.js +1 -1
  31. package/dist-lib/lib/cartCoverage.functions.d.ts +1 -1
  32. package/dist-lib/lib/cartCoverage.functions.js +3 -3
  33. package/dist-lib/lib/floridayDocuments.functions.d.ts +3 -3
  34. package/dist-lib/lib/floridayDocuments.functions.js +5 -5
  35. package/dist-lib/lib/floridayPush.functions.d.ts +1 -1
  36. package/dist-lib/lib/floridayPush.functions.js +3 -3
  37. package/dist-lib/lib/handlers/index.d.ts +1 -0
  38. package/dist-lib/lib/handlers/index.d.ts.map +1 -1
  39. package/dist-lib/lib/handlers/index.js +1 -0
  40. package/dist-lib/lib/handlers/logistics-ping.server.d.ts +4 -0
  41. package/dist-lib/lib/handlers/logistics-ping.server.d.ts.map +1 -0
  42. package/dist-lib/lib/handlers/logistics-ping.server.js +28 -0
  43. package/dist-lib/lib/handlers/logistics-tick.server.d.ts.map +1 -1
  44. package/dist-lib/lib/handlers/logistics-tick.server.js +2 -1
  45. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +5 -5
  46. package/dist-lib/lib/loadCarrierPlanning.functions.js +7 -7
  47. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +2 -2
  48. package/dist-lib/lib/logisticsRecalcJob.functions.js +4 -4
  49. package/dist-lib/lib/logisticsRecalculate.functions.d.ts +1 -1
  50. package/dist-lib/lib/logisticsRecalculate.functions.js +2 -2
  51. package/dist-lib/lib/modulePrompts.d.ts.map +1 -1
  52. package/dist-lib/lib/modulePrompts.js +29 -0
  53. package/dist-lib/lib/moduleVersion.d.ts +1 -1
  54. package/dist-lib/lib/moduleVersion.js +1 -1
  55. package/dist-lib/lib/plannerDiff.functions.d.ts +1 -1
  56. package/dist-lib/lib/plannerDiff.functions.js +3 -3
  57. package/dist-lib/lib/shellAdres.d.ts +15 -0
  58. package/dist-lib/lib/shellAdres.d.ts.map +1 -0
  59. package/dist-lib/lib/shellAdres.functions.d.ts +15 -0
  60. package/dist-lib/lib/shellAdres.functions.d.ts.map +1 -0
  61. package/dist-lib/lib/shellAdres.functions.js +41 -0
  62. package/dist-lib/lib/shellAdres.js +50 -0
  63. package/package.json +13 -3
@@ -704,8 +704,10 @@ export type Database = {
704
704
  eenheid: string;
705
705
  fabrikant: string | null;
706
706
  fetched_at: string;
707
+ foto_pad: string | null;
707
708
  gtin: string | null;
708
709
  id: string;
710
+ marge_procent: number | null;
709
711
  naam: string;
710
712
  netto_prijs_cent: number | null;
711
713
  omschrijving: string | null;
@@ -722,8 +724,10 @@ export type Database = {
722
724
  eenheid?: string;
723
725
  fabrikant?: string | null;
724
726
  fetched_at?: string;
727
+ foto_pad?: string | null;
725
728
  gtin?: string | null;
726
729
  id?: string;
730
+ marge_procent?: number | null;
727
731
  naam: string;
728
732
  netto_prijs_cent?: number | null;
729
733
  omschrijving?: string | null;
@@ -740,8 +744,10 @@ export type Database = {
740
744
  eenheid?: string;
741
745
  fabrikant?: string | null;
742
746
  fetched_at?: string;
747
+ foto_pad?: string | null;
743
748
  gtin?: string | null;
744
749
  id?: string;
750
+ marge_procent?: number | null;
745
751
  naam?: string;
746
752
  netto_prijs_cent?: number | null;
747
753
  omschrijving?: string | null;
@@ -1046,6 +1052,7 @@ export type Database = {
1046
1052
  auto_break_unpaid: boolean;
1047
1053
  auto_stop_after_hours: number;
1048
1054
  callout_fee: number;
1055
+ company_number: string | null;
1049
1056
  created_at: string;
1050
1057
  daily_regular_hours: number;
1051
1058
  default_hourly_rate: number;
@@ -1077,6 +1084,7 @@ export type Database = {
1077
1084
  auto_break_unpaid?: boolean;
1078
1085
  auto_stop_after_hours?: number;
1079
1086
  callout_fee?: number;
1087
+ company_number?: string | null;
1080
1088
  created_at?: string;
1081
1089
  daily_regular_hours?: number;
1082
1090
  default_hourly_rate?: number;
@@ -1108,6 +1116,7 @@ export type Database = {
1108
1116
  auto_break_unpaid?: boolean;
1109
1117
  auto_stop_after_hours?: number;
1110
1118
  callout_fee?: number;
1119
+ company_number?: string | null;
1111
1120
  created_at?: string;
1112
1121
  daily_regular_hours?: number;
1113
1122
  default_hourly_rate?: number;
@@ -2536,6 +2545,8 @@ export type Database = {
2536
2545
  billing_email: string | null;
2537
2546
  bio: string | null;
2538
2547
  blocked: boolean;
2548
+ blocked_locked: boolean | null;
2549
+ blocked_modified: string | null;
2539
2550
  city: string | null;
2540
2551
  coc_number: string | null;
2541
2552
  commercial_name: string | null;
@@ -2545,6 +2556,9 @@ export type Database = {
2545
2556
  country: string | null;
2546
2557
  created_at: string;
2547
2558
  credit_limit: number;
2559
+ credit_manager: string | null;
2560
+ credit_manager_name: string | null;
2561
+ credit_manager_shortname: string | null;
2548
2562
  custom_fields: Json;
2549
2563
  customer_class: string | null;
2550
2564
  customer_number: string | null;
@@ -2577,6 +2591,7 @@ export type Database = {
2577
2591
  phone: string | null;
2578
2592
  postal_code: string | null;
2579
2593
  product_groups: string[];
2594
+ reminder_email: string | null;
2580
2595
  segments: string[];
2581
2596
  send_reminder: string;
2582
2597
  source: string;
@@ -2584,8 +2599,12 @@ export type Database = {
2584
2599
  sync_error: string | null;
2585
2600
  sync_status: string;
2586
2601
  trade_forms: string[];
2602
+ twinfield_base_snapshot: Json | null;
2603
+ twinfield_base_version: number | null;
2587
2604
  twinfield_code: string | null;
2588
2605
  twinfield_last_hash: string | null;
2606
+ twinfield_missing_since: string | null;
2607
+ twinfield_present: boolean;
2589
2608
  twinfield_sync_error: string | null;
2590
2609
  twinfield_synced_at: string | null;
2591
2610
  twinfield_uid: string | null;
@@ -2617,6 +2636,8 @@ export type Database = {
2617
2636
  billing_email?: string | null;
2618
2637
  bio?: string | null;
2619
2638
  blocked?: boolean;
2639
+ blocked_locked?: boolean | null;
2640
+ blocked_modified?: string | null;
2620
2641
  city?: string | null;
2621
2642
  coc_number?: string | null;
2622
2643
  commercial_name?: string | null;
@@ -2626,6 +2647,9 @@ export type Database = {
2626
2647
  country?: string | null;
2627
2648
  created_at?: string;
2628
2649
  credit_limit?: number;
2650
+ credit_manager?: string | null;
2651
+ credit_manager_name?: string | null;
2652
+ credit_manager_shortname?: string | null;
2629
2653
  custom_fields?: Json;
2630
2654
  customer_class?: string | null;
2631
2655
  customer_number?: string | null;
@@ -2658,6 +2682,7 @@ export type Database = {
2658
2682
  phone?: string | null;
2659
2683
  postal_code?: string | null;
2660
2684
  product_groups?: string[];
2685
+ reminder_email?: string | null;
2661
2686
  segments?: string[];
2662
2687
  send_reminder?: string;
2663
2688
  source?: string;
@@ -2665,8 +2690,12 @@ export type Database = {
2665
2690
  sync_error?: string | null;
2666
2691
  sync_status?: string;
2667
2692
  trade_forms?: string[];
2693
+ twinfield_base_snapshot?: Json | null;
2694
+ twinfield_base_version?: number | null;
2668
2695
  twinfield_code?: string | null;
2669
2696
  twinfield_last_hash?: string | null;
2697
+ twinfield_missing_since?: string | null;
2698
+ twinfield_present?: boolean;
2670
2699
  twinfield_sync_error?: string | null;
2671
2700
  twinfield_synced_at?: string | null;
2672
2701
  twinfield_uid?: string | null;
@@ -2698,6 +2727,8 @@ export type Database = {
2698
2727
  billing_email?: string | null;
2699
2728
  bio?: string | null;
2700
2729
  blocked?: boolean;
2730
+ blocked_locked?: boolean | null;
2731
+ blocked_modified?: string | null;
2701
2732
  city?: string | null;
2702
2733
  coc_number?: string | null;
2703
2734
  commercial_name?: string | null;
@@ -2707,6 +2738,9 @@ export type Database = {
2707
2738
  country?: string | null;
2708
2739
  created_at?: string;
2709
2740
  credit_limit?: number;
2741
+ credit_manager?: string | null;
2742
+ credit_manager_name?: string | null;
2743
+ credit_manager_shortname?: string | null;
2710
2744
  custom_fields?: Json;
2711
2745
  customer_class?: string | null;
2712
2746
  customer_number?: string | null;
@@ -2739,6 +2773,7 @@ export type Database = {
2739
2773
  phone?: string | null;
2740
2774
  postal_code?: string | null;
2741
2775
  product_groups?: string[];
2776
+ reminder_email?: string | null;
2742
2777
  segments?: string[];
2743
2778
  send_reminder?: string;
2744
2779
  source?: string;
@@ -2746,8 +2781,12 @@ export type Database = {
2746
2781
  sync_error?: string | null;
2747
2782
  sync_status?: string;
2748
2783
  trade_forms?: string[];
2784
+ twinfield_base_snapshot?: Json | null;
2785
+ twinfield_base_version?: number | null;
2749
2786
  twinfield_code?: string | null;
2750
2787
  twinfield_last_hash?: string | null;
2788
+ twinfield_missing_since?: string | null;
2789
+ twinfield_present?: boolean;
2751
2790
  twinfield_sync_error?: string | null;
2752
2791
  twinfield_synced_at?: string | null;
2753
2792
  twinfield_uid?: string | null;
@@ -6608,6 +6647,7 @@ export type Database = {
6608
6647
  floriday_continuous_stock_queue: {
6609
6648
  Row: {
6610
6649
  attempts: number;
6650
+ availability_sent_at: string | null;
6611
6651
  connection_id: string;
6612
6652
  created_at: string;
6613
6653
  dead_lettered_at: string | null;
@@ -6620,7 +6660,9 @@ export type Database = {
6620
6660
  next_attempt_at: string;
6621
6661
  number_of_pieces: number;
6622
6662
  product_id: string | null;
6663
+ quantity_sent_at: string | null;
6623
6664
  sent_at: string | null;
6665
+ skip_reason: string | null;
6624
6666
  status: string;
6625
6667
  stock_mode: string | null;
6626
6668
  superseded_by: string | null;
@@ -6632,6 +6674,7 @@ export type Database = {
6632
6674
  };
6633
6675
  Insert: {
6634
6676
  attempts?: number;
6677
+ availability_sent_at?: string | null;
6635
6678
  connection_id: string;
6636
6679
  created_at?: string;
6637
6680
  dead_lettered_at?: string | null;
@@ -6644,7 +6687,9 @@ export type Database = {
6644
6687
  next_attempt_at?: string;
6645
6688
  number_of_pieces?: number;
6646
6689
  product_id?: string | null;
6690
+ quantity_sent_at?: string | null;
6647
6691
  sent_at?: string | null;
6692
+ skip_reason?: string | null;
6648
6693
  status?: string;
6649
6694
  stock_mode?: string | null;
6650
6695
  superseded_by?: string | null;
@@ -6656,6 +6701,7 @@ export type Database = {
6656
6701
  };
6657
6702
  Update: {
6658
6703
  attempts?: number;
6704
+ availability_sent_at?: string | null;
6659
6705
  connection_id?: string;
6660
6706
  created_at?: string;
6661
6707
  dead_lettered_at?: string | null;
@@ -6668,7 +6714,9 @@ export type Database = {
6668
6714
  next_attempt_at?: string;
6669
6715
  number_of_pieces?: number;
6670
6716
  product_id?: string | null;
6717
+ quantity_sent_at?: string | null;
6671
6718
  sent_at?: string | null;
6719
+ skip_reason?: string | null;
6672
6720
  status?: string;
6673
6721
  stock_mode?: string | null;
6674
6722
  superseded_by?: string | null;
@@ -6874,6 +6922,7 @@ export type Database = {
6874
6922
  rfh_company_account_id: string | null;
6875
6923
  rfh_relation_id: string | null;
6876
6924
  sequence_number: number | null;
6925
+ updated_at: string | null;
6877
6926
  };
6878
6927
  Insert: {
6879
6928
  connection_id?: string | null;
@@ -6889,6 +6938,7 @@ export type Database = {
6889
6938
  rfh_company_account_id?: string | null;
6890
6939
  rfh_relation_id?: string | null;
6891
6940
  sequence_number?: number | null;
6941
+ updated_at?: string | null;
6892
6942
  };
6893
6943
  Update: {
6894
6944
  connection_id?: string | null;
@@ -6904,6 +6954,7 @@ export type Database = {
6904
6954
  rfh_company_account_id?: string | null;
6905
6955
  rfh_relation_id?: string | null;
6906
6956
  sequence_number?: number | null;
6957
+ updated_at?: string | null;
6907
6958
  };
6908
6959
  Relationships: [
6909
6960
  {
@@ -7191,6 +7242,7 @@ export type Database = {
7191
7242
  };
7192
7243
  floriday_inventory_settings: {
7193
7244
  Row: {
7245
+ action_reason: string | null;
7194
7246
  buffer_quantity: number;
7195
7247
  connection_id: string;
7196
7248
  created_at: string;
@@ -7205,6 +7257,7 @@ export type Database = {
7205
7257
  last_sync_error: string | null;
7206
7258
  manual_quantity: number | null;
7207
7259
  maximum_quantity: number | null;
7260
+ packing_size: number | null;
7208
7261
  product_id: string;
7209
7262
  quantity_control: string;
7210
7263
  remote_available: boolean | null;
@@ -7217,6 +7270,7 @@ export type Database = {
7217
7270
  user_id: string;
7218
7271
  };
7219
7272
  Insert: {
7273
+ action_reason?: string | null;
7220
7274
  buffer_quantity?: number;
7221
7275
  connection_id: string;
7222
7276
  created_at?: string;
@@ -7231,6 +7285,7 @@ export type Database = {
7231
7285
  last_sync_error?: string | null;
7232
7286
  manual_quantity?: number | null;
7233
7287
  maximum_quantity?: number | null;
7288
+ packing_size?: number | null;
7234
7289
  product_id: string;
7235
7290
  quantity_control?: string;
7236
7291
  remote_available?: boolean | null;
@@ -7243,6 +7298,7 @@ export type Database = {
7243
7298
  user_id: string;
7244
7299
  };
7245
7300
  Update: {
7301
+ action_reason?: string | null;
7246
7302
  buffer_quantity?: number;
7247
7303
  connection_id?: string;
7248
7304
  created_at?: string;
@@ -7257,6 +7313,7 @@ export type Database = {
7257
7313
  last_sync_error?: string | null;
7258
7314
  manual_quantity?: number | null;
7259
7315
  maximum_quantity?: number | null;
7316
+ packing_size?: number | null;
7260
7317
  product_id?: string;
7261
7318
  quantity_control?: string;
7262
7319
  remote_available?: boolean | null;
@@ -7635,6 +7692,60 @@ export type Database = {
7635
7692
  };
7636
7693
  Relationships: [];
7637
7694
  };
7695
+ floriday_reconcile_runs: {
7696
+ Row: {
7697
+ connection_id: string | null;
7698
+ created_at: string;
7699
+ finished_at: string | null;
7700
+ first_error: string | null;
7701
+ id: string;
7702
+ items_checked: number;
7703
+ items_drift: number;
7704
+ items_no_supply: number;
7705
+ last_http_status: number | null;
7706
+ rate_limited: number;
7707
+ read_errors: number;
7708
+ reads: number;
7709
+ response: Json | null;
7710
+ started_at: string;
7711
+ status: string;
7712
+ };
7713
+ Insert: {
7714
+ connection_id?: string | null;
7715
+ created_at?: string;
7716
+ finished_at?: string | null;
7717
+ first_error?: string | null;
7718
+ id?: string;
7719
+ items_checked?: number;
7720
+ items_drift?: number;
7721
+ items_no_supply?: number;
7722
+ last_http_status?: number | null;
7723
+ rate_limited?: number;
7724
+ read_errors?: number;
7725
+ reads?: number;
7726
+ response?: Json | null;
7727
+ started_at?: string;
7728
+ status?: string;
7729
+ };
7730
+ Update: {
7731
+ connection_id?: string | null;
7732
+ created_at?: string;
7733
+ finished_at?: string | null;
7734
+ first_error?: string | null;
7735
+ id?: string;
7736
+ items_checked?: number;
7737
+ items_drift?: number;
7738
+ items_no_supply?: number;
7739
+ last_http_status?: number | null;
7740
+ rate_limited?: number;
7741
+ read_errors?: number;
7742
+ reads?: number;
7743
+ response?: Json | null;
7744
+ started_at?: string;
7745
+ status?: string;
7746
+ };
7747
+ Relationships: [];
7748
+ };
7638
7749
  floriday_resource_schemas: {
7639
7750
  Row: {
7640
7751
  enums: Json;
@@ -8909,8 +9020,16 @@ export type Database = {
8909
9020
  client_request_id: string;
8910
9021
  completed_at: string | null;
8911
9022
  created_at: string;
9023
+ customer_code: string | null;
8912
9024
  error_message: string | null;
8913
9025
  invoice_number: string | null;
9026
+ invoice_type: string | null;
9027
+ last_known_number: number | null;
9028
+ last_search_at: string | null;
9029
+ phase: string | null;
9030
+ reference: string | null;
9031
+ search_attempts: number;
9032
+ sending_at: string | null;
8914
9033
  status: string;
8915
9034
  user_id: string;
8916
9035
  };
@@ -8919,8 +9038,16 @@ export type Database = {
8919
9038
  client_request_id: string;
8920
9039
  completed_at?: string | null;
8921
9040
  created_at?: string;
9041
+ customer_code?: string | null;
8922
9042
  error_message?: string | null;
8923
9043
  invoice_number?: string | null;
9044
+ invoice_type?: string | null;
9045
+ last_known_number?: number | null;
9046
+ last_search_at?: string | null;
9047
+ phase?: string | null;
9048
+ reference?: string | null;
9049
+ search_attempts?: number;
9050
+ sending_at?: string | null;
8924
9051
  status?: string;
8925
9052
  user_id: string;
8926
9053
  };
@@ -8929,8 +9056,16 @@ export type Database = {
8929
9056
  client_request_id?: string;
8930
9057
  completed_at?: string | null;
8931
9058
  created_at?: string;
9059
+ customer_code?: string | null;
8932
9060
  error_message?: string | null;
8933
9061
  invoice_number?: string | null;
9062
+ invoice_type?: string | null;
9063
+ last_known_number?: number | null;
9064
+ last_search_at?: string | null;
9065
+ phase?: string | null;
9066
+ reference?: string | null;
9067
+ search_attempts?: number;
9068
+ sending_at?: string | null;
8934
9069
  status?: string;
8935
9070
  user_id?: string;
8936
9071
  };
@@ -10058,6 +10193,7 @@ export type Database = {
10058
10193
  id: string;
10059
10194
  singleton: boolean;
10060
10195
  updated_at: string;
10196
+ voorwaarden: string | null;
10061
10197
  };
10062
10198
  Insert: {
10063
10199
  auto_convert_binnen_mandaat?: boolean;
@@ -10068,6 +10204,7 @@ export type Database = {
10068
10204
  id?: string;
10069
10205
  singleton?: boolean;
10070
10206
  updated_at?: string;
10207
+ voorwaarden?: string | null;
10071
10208
  };
10072
10209
  Update: {
10073
10210
  auto_convert_binnen_mandaat?: boolean;
@@ -10078,6 +10215,7 @@ export type Database = {
10078
10215
  id?: string;
10079
10216
  singleton?: boolean;
10080
10217
  updated_at?: string;
10218
+ voorwaarden?: string | null;
10081
10219
  };
10082
10220
  Relationships: [];
10083
10221
  };
@@ -10888,6 +11026,57 @@ export type Database = {
10888
11026
  };
10889
11027
  Relationships: [];
10890
11028
  };
11029
+ logistics_base_url_checks: {
11030
+ Row: {
11031
+ candidate_host: string | null;
11032
+ candidate_url: string | null;
11033
+ detail: string | null;
11034
+ id: number;
11035
+ ping_ok: boolean | null;
11036
+ ping_request_id: number | null;
11037
+ ping_status: number | null;
11038
+ previous_url: string | null;
11039
+ resolved_at: string | null;
11040
+ route_ok: boolean | null;
11041
+ route_request_id: number | null;
11042
+ route_status: number | null;
11043
+ started_at: string;
11044
+ status: string;
11045
+ };
11046
+ Insert: {
11047
+ candidate_host?: string | null;
11048
+ candidate_url?: string | null;
11049
+ detail?: string | null;
11050
+ id?: never;
11051
+ ping_ok?: boolean | null;
11052
+ ping_request_id?: number | null;
11053
+ ping_status?: number | null;
11054
+ previous_url?: string | null;
11055
+ resolved_at?: string | null;
11056
+ route_ok?: boolean | null;
11057
+ route_request_id?: number | null;
11058
+ route_status?: number | null;
11059
+ started_at?: string;
11060
+ status: string;
11061
+ };
11062
+ Update: {
11063
+ candidate_host?: string | null;
11064
+ candidate_url?: string | null;
11065
+ detail?: string | null;
11066
+ id?: never;
11067
+ ping_ok?: boolean | null;
11068
+ ping_request_id?: number | null;
11069
+ ping_status?: number | null;
11070
+ previous_url?: string | null;
11071
+ resolved_at?: string | null;
11072
+ route_ok?: boolean | null;
11073
+ route_request_id?: number | null;
11074
+ route_status?: number | null;
11075
+ started_at?: string;
11076
+ status?: string;
11077
+ };
11078
+ Relationships: [];
11079
+ };
10891
11080
  logistics_capacity_alerts: {
10892
11081
  Row: {
10893
11082
  available_minutes: number;
@@ -17000,6 +17189,39 @@ export type Database = {
17000
17189
  };
17001
17190
  Relationships: [];
17002
17191
  };
17192
+ pick_taken: {
17193
+ Row: {
17194
+ bron_module: string | null;
17195
+ created_at: string;
17196
+ id: string;
17197
+ klantnaam: string | null;
17198
+ opmerking: string | null;
17199
+ order_ref: string | null;
17200
+ status: string;
17201
+ updated_at: string;
17202
+ };
17203
+ Insert: {
17204
+ bron_module?: string | null;
17205
+ created_at?: string;
17206
+ id?: string;
17207
+ klantnaam?: string | null;
17208
+ opmerking?: string | null;
17209
+ order_ref?: string | null;
17210
+ status?: string;
17211
+ updated_at?: string;
17212
+ };
17213
+ Update: {
17214
+ bron_module?: string | null;
17215
+ created_at?: string;
17216
+ id?: string;
17217
+ klantnaam?: string | null;
17218
+ opmerking?: string | null;
17219
+ order_ref?: string | null;
17220
+ status?: string;
17221
+ updated_at?: string;
17222
+ };
17223
+ Relationships: [];
17224
+ };
17003
17225
  pick_task_document_types: {
17004
17226
  Row: {
17005
17227
  created_at: string;
@@ -20633,6 +20855,50 @@ export type Database = {
20633
20855
  };
20634
20856
  Relationships: [];
20635
20857
  };
20858
+ standby_planning: {
20859
+ Row: {
20860
+ created_at: string;
20861
+ created_by: string | null;
20862
+ employee_id: string;
20863
+ end_date: string;
20864
+ id: string;
20865
+ notes: string | null;
20866
+ soort: string;
20867
+ start_date: string;
20868
+ updated_at: string;
20869
+ };
20870
+ Insert: {
20871
+ created_at?: string;
20872
+ created_by?: string | null;
20873
+ employee_id: string;
20874
+ end_date: string;
20875
+ id?: string;
20876
+ notes?: string | null;
20877
+ soort: string;
20878
+ start_date: string;
20879
+ updated_at?: string;
20880
+ };
20881
+ Update: {
20882
+ created_at?: string;
20883
+ created_by?: string | null;
20884
+ employee_id?: string;
20885
+ end_date?: string;
20886
+ id?: string;
20887
+ notes?: string | null;
20888
+ soort?: string;
20889
+ start_date?: string;
20890
+ updated_at?: string;
20891
+ };
20892
+ Relationships: [
20893
+ {
20894
+ foreignKeyName: "standby_planning_employee_id_fkey";
20895
+ columns: ["employee_id"];
20896
+ isOneToOne: false;
20897
+ referencedRelation: "profiles";
20898
+ referencedColumns: ["id"];
20899
+ }
20900
+ ];
20901
+ };
20636
20902
  stock_consumption_alerts: {
20637
20903
  Row: {
20638
20904
  alert_type: string;
@@ -20714,6 +20980,39 @@ export type Database = {
20714
20980
  };
20715
20981
  Relationships: [];
20716
20982
  };
20983
+ stock_integrity_alerts: {
20984
+ Row: {
20985
+ acknowledged_at: string | null;
20986
+ acknowledged_by: string | null;
20987
+ created_at: string;
20988
+ id: string;
20989
+ item_count: number;
20990
+ items: Json;
20991
+ tx_id: number;
20992
+ updated_at: string;
20993
+ };
20994
+ Insert: {
20995
+ acknowledged_at?: string | null;
20996
+ acknowledged_by?: string | null;
20997
+ created_at?: string;
20998
+ id?: string;
20999
+ item_count?: number;
21000
+ items?: Json;
21001
+ tx_id: number;
21002
+ updated_at?: string;
21003
+ };
21004
+ Update: {
21005
+ acknowledged_at?: string | null;
21006
+ acknowledged_by?: string | null;
21007
+ created_at?: string;
21008
+ id?: string;
21009
+ item_count?: number;
21010
+ items?: Json;
21011
+ tx_id?: number;
21012
+ updated_at?: string;
21013
+ };
21014
+ Relationships: [];
21015
+ };
20717
21016
  stock_mutation_log: {
20718
21017
  Row: {
20719
21018
  connection_id: string | null;
@@ -21202,6 +21501,59 @@ export type Database = {
21202
21501
  }
21203
21502
  ];
21204
21503
  };
21504
+ time_compensation_log: {
21505
+ Row: {
21506
+ actie: string;
21507
+ created_at: string;
21508
+ employee_id: string;
21509
+ entry_date: string;
21510
+ id: string;
21511
+ km: number;
21512
+ maaltijd: number;
21513
+ notities: string | null;
21514
+ performed_by: string | null;
21515
+ standby_avond: number;
21516
+ standby_weekend: number;
21517
+ tvt: number;
21518
+ };
21519
+ Insert: {
21520
+ actie: string;
21521
+ created_at?: string;
21522
+ employee_id: string;
21523
+ entry_date: string;
21524
+ id?: string;
21525
+ km?: number;
21526
+ maaltijd?: number;
21527
+ notities?: string | null;
21528
+ performed_by?: string | null;
21529
+ standby_avond?: number;
21530
+ standby_weekend?: number;
21531
+ tvt?: number;
21532
+ };
21533
+ Update: {
21534
+ actie?: string;
21535
+ created_at?: string;
21536
+ employee_id?: string;
21537
+ entry_date?: string;
21538
+ id?: string;
21539
+ km?: number;
21540
+ maaltijd?: number;
21541
+ notities?: string | null;
21542
+ performed_by?: string | null;
21543
+ standby_avond?: number;
21544
+ standby_weekend?: number;
21545
+ tvt?: number;
21546
+ };
21547
+ Relationships: [
21548
+ {
21549
+ foreignKeyName: "time_compensation_log_employee_id_fkey";
21550
+ columns: ["employee_id"];
21551
+ isOneToOne: false;
21552
+ referencedRelation: "profiles";
21553
+ referencedColumns: ["id"];
21554
+ }
21555
+ ];
21556
+ };
21205
21557
  time_entries: {
21206
21558
  Row: {
21207
21559
  created_at: string;
@@ -21729,13 +22081,19 @@ export type Database = {
21729
22081
  created_at: string;
21730
22082
  disconnected_at: string | null;
21731
22083
  environment: string;
22084
+ granted_scopes: string[] | null;
21732
22085
  id: string;
21733
22086
  initial_sync_completed_at: string | null;
22087
+ initial_sync_last_error: string | null;
22088
+ initial_sync_plan: Json | null;
21734
22089
  initial_sync_started_at: string | null;
21735
22090
  is_active: boolean;
21736
22091
  label: string | null;
22092
+ missing_scopes: string[] | null;
21737
22093
  office_code: string | null;
21738
22094
  redirect_uri: string | null;
22095
+ scope_checked_at: string | null;
22096
+ scope_state: string | null;
21739
22097
  superseded_at: string | null;
21740
22098
  updated_at: string;
21741
22099
  user_id: string;
@@ -21749,13 +22107,19 @@ export type Database = {
21749
22107
  created_at?: string;
21750
22108
  disconnected_at?: string | null;
21751
22109
  environment: string;
22110
+ granted_scopes?: string[] | null;
21752
22111
  id?: string;
21753
22112
  initial_sync_completed_at?: string | null;
22113
+ initial_sync_last_error?: string | null;
22114
+ initial_sync_plan?: Json | null;
21754
22115
  initial_sync_started_at?: string | null;
21755
22116
  is_active?: boolean;
21756
22117
  label?: string | null;
22118
+ missing_scopes?: string[] | null;
21757
22119
  office_code?: string | null;
21758
22120
  redirect_uri?: string | null;
22121
+ scope_checked_at?: string | null;
22122
+ scope_state?: string | null;
21759
22123
  superseded_at?: string | null;
21760
22124
  updated_at?: string;
21761
22125
  user_id: string;
@@ -21769,13 +22133,19 @@ export type Database = {
21769
22133
  created_at?: string;
21770
22134
  disconnected_at?: string | null;
21771
22135
  environment?: string;
22136
+ granted_scopes?: string[] | null;
21772
22137
  id?: string;
21773
22138
  initial_sync_completed_at?: string | null;
22139
+ initial_sync_last_error?: string | null;
22140
+ initial_sync_plan?: Json | null;
21774
22141
  initial_sync_started_at?: string | null;
21775
22142
  is_active?: boolean;
21776
22143
  label?: string | null;
22144
+ missing_scopes?: string[] | null;
21777
22145
  office_code?: string | null;
21778
22146
  redirect_uri?: string | null;
22147
+ scope_checked_at?: string | null;
22148
+ scope_state?: string | null;
21779
22149
  superseded_at?: string | null;
21780
22150
  updated_at?: string;
21781
22151
  user_id?: string;
@@ -21901,33 +22271,51 @@ export type Database = {
21901
22271
  connection_id: string;
21902
22272
  country: string | null;
21903
22273
  data: Json;
22274
+ deactivated_at: string | null;
21904
22275
  email: string | null;
21905
22276
  fetched_at: string;
22277
+ is_active: boolean;
21906
22278
  modified_at: string | null;
21907
22279
  name: string | null;
22280
+ seen_at: string | null;
21908
22281
  twinfield_code: string;
22282
+ twinfield_status: string | null;
22283
+ twinfield_uid: string | null;
22284
+ twinfield_version: number | null;
21909
22285
  vat_number: string | null;
21910
22286
  };
21911
22287
  Insert: {
21912
22288
  connection_id: string;
21913
22289
  country?: string | null;
21914
22290
  data?: Json;
22291
+ deactivated_at?: string | null;
21915
22292
  email?: string | null;
21916
22293
  fetched_at?: string;
22294
+ is_active?: boolean;
21917
22295
  modified_at?: string | null;
21918
22296
  name?: string | null;
22297
+ seen_at?: string | null;
21919
22298
  twinfield_code: string;
22299
+ twinfield_status?: string | null;
22300
+ twinfield_uid?: string | null;
22301
+ twinfield_version?: number | null;
21920
22302
  vat_number?: string | null;
21921
22303
  };
21922
22304
  Update: {
21923
22305
  connection_id?: string;
21924
22306
  country?: string | null;
21925
22307
  data?: Json;
22308
+ deactivated_at?: string | null;
21926
22309
  email?: string | null;
21927
22310
  fetched_at?: string;
22311
+ is_active?: boolean;
21928
22312
  modified_at?: string | null;
21929
22313
  name?: string | null;
22314
+ seen_at?: string | null;
21930
22315
  twinfield_code?: string;
22316
+ twinfield_status?: string | null;
22317
+ twinfield_uid?: string | null;
22318
+ twinfield_version?: number | null;
21931
22319
  vat_number?: string | null;
21932
22320
  };
21933
22321
  Relationships: [
@@ -21940,6 +22328,59 @@ export type Database = {
21940
22328
  }
21941
22329
  ];
21942
22330
  };
22331
+ twinfield_dimension_types_cache: {
22332
+ Row: {
22333
+ connection_id: string | null;
22334
+ dim_type: string;
22335
+ fetched_at: string;
22336
+ label1: string | null;
22337
+ label2: string | null;
22338
+ label3: string | null;
22339
+ label4: string | null;
22340
+ label5: string | null;
22341
+ label6: string | null;
22342
+ mask: string | null;
22343
+ name: string | null;
22344
+ office_code: string;
22345
+ };
22346
+ Insert: {
22347
+ connection_id?: string | null;
22348
+ dim_type: string;
22349
+ fetched_at?: string;
22350
+ label1?: string | null;
22351
+ label2?: string | null;
22352
+ label3?: string | null;
22353
+ label4?: string | null;
22354
+ label5?: string | null;
22355
+ label6?: string | null;
22356
+ mask?: string | null;
22357
+ name?: string | null;
22358
+ office_code: string;
22359
+ };
22360
+ Update: {
22361
+ connection_id?: string | null;
22362
+ dim_type?: string;
22363
+ fetched_at?: string;
22364
+ label1?: string | null;
22365
+ label2?: string | null;
22366
+ label3?: string | null;
22367
+ label4?: string | null;
22368
+ label5?: string | null;
22369
+ label6?: string | null;
22370
+ mask?: string | null;
22371
+ name?: string | null;
22372
+ office_code?: string;
22373
+ };
22374
+ Relationships: [
22375
+ {
22376
+ foreignKeyName: "twinfield_dimension_types_cache_connection_id_fkey";
22377
+ columns: ["connection_id"];
22378
+ isOneToOne: false;
22379
+ referencedRelation: "twinfield_connections";
22380
+ referencedColumns: ["id"];
22381
+ }
22382
+ ];
22383
+ };
21943
22384
  twinfield_invoice_lines: {
21944
22385
  Row: {
21945
22386
  article_code: string | null;
@@ -22536,24 +22977,39 @@ export type Database = {
22536
22977
  twinfield_request_metrics: {
22537
22978
  Row: {
22538
22979
  bucket_hour: string;
22980
+ clientid_limit: number | null;
22981
+ clientid_remaining: number | null;
22539
22982
  connection_id: string;
22540
22983
  error_count: number;
22984
+ rate_limit_limit: number | null;
22985
+ rate_limit_remaining: number | null;
22986
+ rate_limit_seen_at: string | null;
22541
22987
  rate_limited_count: number;
22542
22988
  request_count: number;
22543
22989
  updated_at: string;
22544
22990
  };
22545
22991
  Insert: {
22546
22992
  bucket_hour: string;
22993
+ clientid_limit?: number | null;
22994
+ clientid_remaining?: number | null;
22547
22995
  connection_id: string;
22548
22996
  error_count?: number;
22997
+ rate_limit_limit?: number | null;
22998
+ rate_limit_remaining?: number | null;
22999
+ rate_limit_seen_at?: string | null;
22549
23000
  rate_limited_count?: number;
22550
23001
  request_count?: number;
22551
23002
  updated_at?: string;
22552
23003
  };
22553
23004
  Update: {
22554
23005
  bucket_hour?: string;
23006
+ clientid_limit?: number | null;
23007
+ clientid_remaining?: number | null;
22555
23008
  connection_id?: string;
22556
23009
  error_count?: number;
23010
+ rate_limit_limit?: number | null;
23011
+ rate_limit_remaining?: number | null;
23012
+ rate_limit_seen_at?: string | null;
22557
23013
  rate_limited_count?: number;
22558
23014
  request_count?: number;
22559
23015
  updated_at?: string;
@@ -22608,24 +23064,226 @@ export type Database = {
22608
23064
  twinfield_settings: {
22609
23065
  Row: {
22610
23066
  active_environment: string;
23067
+ cron_registered_at: string | null;
23068
+ cron_registration_error: string | null;
23069
+ cron_schedules: Json;
23070
+ cron_timeouts: Json;
22611
23071
  id: number;
22612
23072
  public_base_url: string | null;
22613
23073
  updated_at: string;
22614
23074
  };
22615
23075
  Insert: {
22616
23076
  active_environment?: string;
23077
+ cron_registered_at?: string | null;
23078
+ cron_registration_error?: string | null;
23079
+ cron_schedules?: Json;
23080
+ cron_timeouts?: Json;
22617
23081
  id?: number;
22618
23082
  public_base_url?: string | null;
22619
23083
  updated_at?: string;
22620
23084
  };
22621
23085
  Update: {
22622
23086
  active_environment?: string;
23087
+ cron_registered_at?: string | null;
23088
+ cron_registration_error?: string | null;
23089
+ cron_schedules?: Json;
23090
+ cron_timeouts?: Json;
22623
23091
  id?: number;
22624
23092
  public_base_url?: string | null;
22625
23093
  updated_at?: string;
22626
23094
  };
22627
23095
  Relationships: [];
22628
23096
  };
23097
+ twinfield_sync_runs: {
23098
+ Row: {
23099
+ calls: number;
23100
+ changed: number;
23101
+ connection_id: string | null;
23102
+ deactivated: number;
23103
+ details: Json;
23104
+ error: string | null;
23105
+ fetched: number;
23106
+ finished_at: string | null;
23107
+ id: string;
23108
+ item_errors: number;
23109
+ kind: string;
23110
+ rate_limited: number;
23111
+ started_at: string;
23112
+ status: string;
23113
+ };
23114
+ Insert: {
23115
+ calls?: number;
23116
+ changed?: number;
23117
+ connection_id?: string | null;
23118
+ deactivated?: number;
23119
+ details?: Json;
23120
+ error?: string | null;
23121
+ fetched?: number;
23122
+ finished_at?: string | null;
23123
+ id?: string;
23124
+ item_errors?: number;
23125
+ kind: string;
23126
+ rate_limited?: number;
23127
+ started_at?: string;
23128
+ status?: string;
23129
+ };
23130
+ Update: {
23131
+ calls?: number;
23132
+ changed?: number;
23133
+ connection_id?: string | null;
23134
+ deactivated?: number;
23135
+ details?: Json;
23136
+ error?: string | null;
23137
+ fetched?: number;
23138
+ finished_at?: string | null;
23139
+ id?: string;
23140
+ item_errors?: number;
23141
+ kind?: string;
23142
+ rate_limited?: number;
23143
+ started_at?: string;
23144
+ status?: string;
23145
+ };
23146
+ Relationships: [
23147
+ {
23148
+ foreignKeyName: "twinfield_sync_runs_connection_id_fkey";
23149
+ columns: ["connection_id"];
23150
+ isOneToOne: false;
23151
+ referencedRelation: "twinfield_connections";
23152
+ referencedColumns: ["id"];
23153
+ }
23154
+ ];
23155
+ };
23156
+ twinfield_sync_settings: {
23157
+ Row: {
23158
+ batch_size: number;
23159
+ change_overlap_seconds: number;
23160
+ change_poll_interval_seconds: number;
23161
+ connection_id: string;
23162
+ created_at: string;
23163
+ currency: string | null;
23164
+ currency_at: string | null;
23165
+ currency_source: string | null;
23166
+ customer_gl_account: string | null;
23167
+ customer_gl_account_at: string | null;
23168
+ customer_gl_account_source: string | null;
23169
+ customers_written_by_module: boolean;
23170
+ default_country: string | null;
23171
+ default_country_at: string | null;
23172
+ default_country_source: string | null;
23173
+ default_language: string | null;
23174
+ default_language_at: string | null;
23175
+ default_language_source: string | null;
23176
+ nightly_full_scan_cron: string;
23177
+ payment_term_min_invoices: number;
23178
+ payment_term_min_share: number;
23179
+ rate_limit_floor: number;
23180
+ requires_manual_approval: boolean;
23181
+ run_budget_ms: number;
23182
+ sales_daybook: string | null;
23183
+ sales_daybook_confirmed_at: string | null;
23184
+ sales_daybook_confirmed_by: string | null;
23185
+ sales_gl_account: string | null;
23186
+ sales_gl_account_at: string | null;
23187
+ sales_gl_account_source: string | null;
23188
+ sales_invoice_type: string | null;
23189
+ sales_invoice_type_confirmed_at: string | null;
23190
+ sales_invoice_type_confirmed_by: string | null;
23191
+ sales_payment_term_at: string | null;
23192
+ sales_payment_term_days: number | null;
23193
+ sales_payment_term_source: string | null;
23194
+ suggestion_warnings: Json;
23195
+ updated_at: string;
23196
+ };
23197
+ Insert: {
23198
+ batch_size?: number;
23199
+ change_overlap_seconds?: number;
23200
+ change_poll_interval_seconds?: number;
23201
+ connection_id: string;
23202
+ created_at?: string;
23203
+ currency?: string | null;
23204
+ currency_at?: string | null;
23205
+ currency_source?: string | null;
23206
+ customer_gl_account?: string | null;
23207
+ customer_gl_account_at?: string | null;
23208
+ customer_gl_account_source?: string | null;
23209
+ customers_written_by_module?: boolean;
23210
+ default_country?: string | null;
23211
+ default_country_at?: string | null;
23212
+ default_country_source?: string | null;
23213
+ default_language?: string | null;
23214
+ default_language_at?: string | null;
23215
+ default_language_source?: string | null;
23216
+ nightly_full_scan_cron?: string;
23217
+ payment_term_min_invoices?: number;
23218
+ payment_term_min_share?: number;
23219
+ rate_limit_floor?: number;
23220
+ requires_manual_approval?: boolean;
23221
+ run_budget_ms?: number;
23222
+ sales_daybook?: string | null;
23223
+ sales_daybook_confirmed_at?: string | null;
23224
+ sales_daybook_confirmed_by?: string | null;
23225
+ sales_gl_account?: string | null;
23226
+ sales_gl_account_at?: string | null;
23227
+ sales_gl_account_source?: string | null;
23228
+ sales_invoice_type?: string | null;
23229
+ sales_invoice_type_confirmed_at?: string | null;
23230
+ sales_invoice_type_confirmed_by?: string | null;
23231
+ sales_payment_term_at?: string | null;
23232
+ sales_payment_term_days?: number | null;
23233
+ sales_payment_term_source?: string | null;
23234
+ suggestion_warnings?: Json;
23235
+ updated_at?: string;
23236
+ };
23237
+ Update: {
23238
+ batch_size?: number;
23239
+ change_overlap_seconds?: number;
23240
+ change_poll_interval_seconds?: number;
23241
+ connection_id?: string;
23242
+ created_at?: string;
23243
+ currency?: string | null;
23244
+ currency_at?: string | null;
23245
+ currency_source?: string | null;
23246
+ customer_gl_account?: string | null;
23247
+ customer_gl_account_at?: string | null;
23248
+ customer_gl_account_source?: string | null;
23249
+ customers_written_by_module?: boolean;
23250
+ default_country?: string | null;
23251
+ default_country_at?: string | null;
23252
+ default_country_source?: string | null;
23253
+ default_language?: string | null;
23254
+ default_language_at?: string | null;
23255
+ default_language_source?: string | null;
23256
+ nightly_full_scan_cron?: string;
23257
+ payment_term_min_invoices?: number;
23258
+ payment_term_min_share?: number;
23259
+ rate_limit_floor?: number;
23260
+ requires_manual_approval?: boolean;
23261
+ run_budget_ms?: number;
23262
+ sales_daybook?: string | null;
23263
+ sales_daybook_confirmed_at?: string | null;
23264
+ sales_daybook_confirmed_by?: string | null;
23265
+ sales_gl_account?: string | null;
23266
+ sales_gl_account_at?: string | null;
23267
+ sales_gl_account_source?: string | null;
23268
+ sales_invoice_type?: string | null;
23269
+ sales_invoice_type_confirmed_at?: string | null;
23270
+ sales_invoice_type_confirmed_by?: string | null;
23271
+ sales_payment_term_at?: string | null;
23272
+ sales_payment_term_days?: number | null;
23273
+ sales_payment_term_source?: string | null;
23274
+ suggestion_warnings?: Json;
23275
+ updated_at?: string;
23276
+ };
23277
+ Relationships: [
23278
+ {
23279
+ foreignKeyName: "twinfield_sync_settings_connection_id_fkey";
23280
+ columns: ["connection_id"];
23281
+ isOneToOne: true;
23282
+ referencedRelation: "twinfield_connections";
23283
+ referencedColumns: ["id"];
23284
+ }
23285
+ ];
23286
+ };
22629
23287
  twinfield_sync_state: {
22630
23288
  Row: {
22631
23289
  connection_id: string;
@@ -22661,6 +23319,51 @@ export type Database = {
22661
23319
  }
22662
23320
  ];
22663
23321
  };
23322
+ twinfield_vat_code_map: {
23323
+ Row: {
23324
+ confirmed_at: string | null;
23325
+ confirmed_by: string | null;
23326
+ fetched_at: string;
23327
+ id: string;
23328
+ is_default: boolean;
23329
+ name: string | null;
23330
+ office_code: string;
23331
+ percentage: number | null;
23332
+ source: string;
23333
+ vat_category: string | null;
23334
+ vat_code: string;
23335
+ vat_type: string | null;
23336
+ };
23337
+ Insert: {
23338
+ confirmed_at?: string | null;
23339
+ confirmed_by?: string | null;
23340
+ fetched_at?: string;
23341
+ id?: string;
23342
+ is_default?: boolean;
23343
+ name?: string | null;
23344
+ office_code: string;
23345
+ percentage?: number | null;
23346
+ source?: string;
23347
+ vat_category?: string | null;
23348
+ vat_code: string;
23349
+ vat_type?: string | null;
23350
+ };
23351
+ Update: {
23352
+ confirmed_at?: string | null;
23353
+ confirmed_by?: string | null;
23354
+ fetched_at?: string;
23355
+ id?: string;
23356
+ is_default?: boolean;
23357
+ name?: string | null;
23358
+ office_code?: string;
23359
+ percentage?: number | null;
23360
+ source?: string;
23361
+ vat_category?: string | null;
23362
+ vat_code?: string;
23363
+ vat_type?: string | null;
23364
+ };
23365
+ Relationships: [];
23366
+ };
22664
23367
  uren_beschikbare_dagen: {
22665
23368
  Row: {
22666
23369
  bron: string;
@@ -22841,6 +23544,36 @@ export type Database = {
22841
23544
  };
22842
23545
  Relationships: [];
22843
23546
  };
23547
+ uren_indirecte_uren: {
23548
+ Row: {
23549
+ created_at: string;
23550
+ datum: string;
23551
+ id: string;
23552
+ minuten: number;
23553
+ monteur_id: string;
23554
+ toelichting: string;
23555
+ updated_at: string;
23556
+ };
23557
+ Insert: {
23558
+ created_at?: string;
23559
+ datum: string;
23560
+ id?: string;
23561
+ minuten: number;
23562
+ monteur_id: string;
23563
+ toelichting: string;
23564
+ updated_at?: string;
23565
+ };
23566
+ Update: {
23567
+ created_at?: string;
23568
+ datum?: string;
23569
+ id?: string;
23570
+ minuten?: number;
23571
+ monteur_id?: string;
23572
+ toelichting?: string;
23573
+ updated_at?: string;
23574
+ };
23575
+ Relationships: [];
23576
+ };
22844
23577
  uren_maandafsluitingen: {
22845
23578
  Row: {
22846
23579
  afgesloten_at: string | null;
@@ -24835,12 +25568,14 @@ export type Database = {
24835
25568
  };
24836
25569
  werkbonnen: {
24837
25570
  Row: {
25571
+ afgerond_op: string | null;
24838
25572
  assigned_user_id: string | null;
24839
25573
  budget_mandate_cents: number;
24840
25574
  complaint_description: string | null;
24841
25575
  created_at: string;
24842
25576
  created_by: string | null;
24843
25577
  customer_id: string | null;
25578
+ customer_name: string | null;
24844
25579
  deadline_date: string | null;
24845
25580
  estimated_days: number | null;
24846
25581
  estimated_duration_minutes: number | null;
@@ -24877,12 +25612,14 @@ export type Database = {
24877
25612
  workday_hours: number | null;
24878
25613
  };
24879
25614
  Insert: {
25615
+ afgerond_op?: string | null;
24880
25616
  assigned_user_id?: string | null;
24881
25617
  budget_mandate_cents?: number;
24882
25618
  complaint_description?: string | null;
24883
25619
  created_at?: string;
24884
25620
  created_by?: string | null;
24885
25621
  customer_id?: string | null;
25622
+ customer_name?: string | null;
24886
25623
  deadline_date?: string | null;
24887
25624
  estimated_days?: number | null;
24888
25625
  estimated_duration_minutes?: number | null;
@@ -24919,12 +25656,14 @@ export type Database = {
24919
25656
  workday_hours?: number | null;
24920
25657
  };
24921
25658
  Update: {
25659
+ afgerond_op?: string | null;
24922
25660
  assigned_user_id?: string | null;
24923
25661
  budget_mandate_cents?: number;
24924
25662
  complaint_description?: string | null;
24925
25663
  created_at?: string;
24926
25664
  created_by?: string | null;
24927
25665
  customer_id?: string | null;
25666
+ customer_name?: string | null;
24928
25667
  deadline_date?: string | null;
24929
25668
  estimated_days?: number | null;
24930
25669
  estimated_duration_minutes?: number | null;
@@ -25328,6 +26067,7 @@ export type Database = {
25328
26067
  group_key: string | null;
25329
26068
  is_active: boolean | null;
25330
26069
  is_merged: boolean | null;
26070
+ last_changed_at: string | null;
25331
26071
  logo_url: string | null;
25332
26072
  match_key: string | null;
25333
26073
  phone: string | null;
@@ -25341,6 +26081,7 @@ export type Database = {
25341
26081
  };
25342
26082
  external_customers_unified: {
25343
26083
  Row: {
26084
+ changed_at: string | null;
25344
26085
  city: string | null;
25345
26086
  commercial_name: string | null;
25346
26087
  company_name: string | null;
@@ -25751,6 +26492,7 @@ export type Database = {
25751
26492
  };
25752
26493
  v_external_customers_floriday: {
25753
26494
  Row: {
26495
+ changed_at: string | null;
25754
26496
  city: string | null;
25755
26497
  commercial_name: string | null;
25756
26498
  company_name: string | null;
@@ -25786,6 +26528,7 @@ export type Database = {
25786
26528
  };
25787
26529
  v_external_customers_local: {
25788
26530
  Row: {
26531
+ changed_at: string | null;
25789
26532
  city: string | null;
25790
26533
  commercial_name: string | null;
25791
26534
  company_name: string | null;
@@ -25810,6 +26553,7 @@ export type Database = {
25810
26553
  website: string | null;
25811
26554
  };
25812
26555
  Insert: {
26556
+ changed_at?: never;
25813
26557
  city?: string | null;
25814
26558
  commercial_name?: string | null;
25815
26559
  company_name?: string | null;
@@ -25834,6 +26578,7 @@ export type Database = {
25834
26578
  website?: string | null;
25835
26579
  };
25836
26580
  Update: {
26581
+ changed_at?: never;
25837
26582
  city?: string | null;
25838
26583
  commercial_name?: string | null;
25839
26584
  company_name?: string | null;
@@ -25861,6 +26606,7 @@ export type Database = {
25861
26606
  };
25862
26607
  v_external_customers_twinfield: {
25863
26608
  Row: {
26609
+ changed_at: string | null;
25864
26610
  city: string | null;
25865
26611
  commercial_name: string | null;
25866
26612
  company_name: string | null;
@@ -26249,6 +26995,8 @@ export type Database = {
26249
26995
  desired_availability: boolean;
26250
26996
  desired_quantity: number;
26251
26997
  erp_available: number;
26998
+ packing_size: number;
26999
+ reason: string;
26252
27000
  stock_mode: string;
26253
27001
  }[];
26254
27002
  };
@@ -26366,6 +27114,7 @@ export type Database = {
26366
27114
  };
26367
27115
  Returns: {
26368
27116
  attempts: number;
27117
+ availability_sent_at: string | null;
26369
27118
  connection_id: string;
26370
27119
  created_at: string;
26371
27120
  dead_lettered_at: string | null;
@@ -26378,7 +27127,9 @@ export type Database = {
26378
27127
  next_attempt_at: string;
26379
27128
  number_of_pieces: number;
26380
27129
  product_id: string | null;
27130
+ quantity_sent_at: string | null;
26381
27131
  sent_at: string | null;
27132
+ skip_reason: string | null;
26382
27133
  status: string;
26383
27134
  stock_mode: string | null;
26384
27135
  superseded_by: string | null;
@@ -26628,6 +27379,14 @@ export type Database = {
26628
27379
  Args: never;
26629
27380
  Returns: undefined;
26630
27381
  };
27382
+ cleanup_standby_planning: {
27383
+ Args: never;
27384
+ Returns: number;
27385
+ };
27386
+ cleanup_time_compensation_log: {
27387
+ Args: never;
27388
+ Returns: number;
27389
+ };
26631
27390
  cleanup_voorraad_module_history: {
26632
27391
  Args: never;
26633
27392
  Returns: undefined;
@@ -26642,6 +27401,18 @@ export type Database = {
26642
27401
  };
26643
27402
  Returns: undefined;
26644
27403
  };
27404
+ complete_floriday_stock_queue_outcome: {
27405
+ Args: {
27406
+ p_attempt_id?: string;
27407
+ p_availability_sent?: boolean;
27408
+ p_error?: string;
27409
+ p_id: string;
27410
+ p_outcome: string;
27411
+ p_permanent?: boolean;
27412
+ p_quantity_sent?: boolean;
27413
+ };
27414
+ Returns: undefined;
27415
+ };
26645
27416
  consume_bom_for_production: {
26646
27417
  Args: {
26647
27418
  p_connection_id: string;
@@ -26893,6 +27664,12 @@ export type Database = {
26893
27664
  };
26894
27665
  Returns: undefined;
26895
27666
  };
27667
+ ensure_trade_item_stock_row_key: {
27668
+ Args: {
27669
+ p_key: string;
27670
+ };
27671
+ Returns: string;
27672
+ };
26896
27673
  ensure_user_tenant: {
26897
27674
  Args: never;
26898
27675
  Returns: string;
@@ -27672,6 +28449,12 @@ export type Database = {
27672
28449
  };
27673
28450
  Returns: number;
27674
28451
  };
28452
+ invoice_auto_concept_for_work_order: {
28453
+ Args: {
28454
+ _wo_id: string;
28455
+ };
28456
+ Returns: undefined;
28457
+ };
27675
28458
  invoice_branding_snapshot: {
27676
28459
  Args: never;
27677
28460
  Returns: Json;
@@ -27980,6 +28763,14 @@ export type Database = {
27980
28763
  };
27981
28764
  Returns: Json;
27982
28765
  };
28766
+ logistics_base_url_check_status: {
28767
+ Args: never;
28768
+ Returns: Json;
28769
+ };
28770
+ logistics_base_url_checks_resolve: {
28771
+ Args: never;
28772
+ Returns: number;
28773
+ };
27983
28774
  logistics_block_reason_code: {
27984
28775
  Args: {
27985
28776
  p_details?: Json;
@@ -28878,6 +29669,13 @@ export type Database = {
28878
29669
  Args: never;
28879
29670
  Returns: number;
28880
29671
  };
29672
+ logistics_is_engine_response: {
29673
+ Args: {
29674
+ p_content: string;
29675
+ p_status: number;
29676
+ };
29677
+ Returns: boolean;
29678
+ };
28881
29679
  logistics_is_pick_workday: {
28882
29680
  Args: {
28883
29681
  p_date: string;
@@ -29609,6 +30407,12 @@ export type Database = {
29609
30407
  };
29610
30408
  Returns: Json;
29611
30409
  };
30410
+ logistics_reserved_key: {
30411
+ Args: {
30412
+ p_key: string;
30413
+ };
30414
+ Returns: string;
30415
+ };
29612
30416
  logistics_reserved_stock_nightly: {
29613
30417
  Args: never;
29614
30418
  Returns: undefined;
@@ -29896,6 +30700,10 @@ export type Database = {
29896
30700
  Args: never;
29897
30701
  Returns: Json;
29898
30702
  };
30703
+ logistics_tick_base_url_check: {
30704
+ Args: never;
30705
+ Returns: Json;
30706
+ };
29899
30707
  logistics_tick_calls_resolve: {
29900
30708
  Args: never;
29901
30709
  Returns: number;
@@ -31048,6 +31856,31 @@ export type Database = {
31048
31856
  };
31049
31857
  Returns: undefined;
31050
31858
  };
31859
+ plan_standby_batch: {
31860
+ Args: {
31861
+ _items: Json;
31862
+ _notes: string;
31863
+ _remove_ids?: string[];
31864
+ _soort: string;
31865
+ };
31866
+ Returns: {
31867
+ created_at: string;
31868
+ created_by: string | null;
31869
+ employee_id: string;
31870
+ end_date: string;
31871
+ id: string;
31872
+ notes: string | null;
31873
+ soort: string;
31874
+ start_date: string;
31875
+ updated_at: string;
31876
+ }[];
31877
+ SetofOptions: {
31878
+ from: "*";
31879
+ to: "standby_planning";
31880
+ isOneToOne: false;
31881
+ isSetofReturn: true;
31882
+ };
31883
+ };
31051
31884
  planning_apply_schedule_updates: {
31052
31885
  Args: {
31053
31886
  _updates: Json;
@@ -32030,6 +32863,10 @@ export type Database = {
32030
32863
  Args: never;
32031
32864
  Returns: number;
32032
32865
  };
32866
+ server_now: {
32867
+ Args: never;
32868
+ Returns: string;
32869
+ };
32033
32870
  set_planning_status: {
32034
32871
  Args: {
32035
32872
  _id: string;
@@ -32266,6 +33103,28 @@ export type Database = {
32266
33103
  };
32267
33104
  Returns: Json;
32268
33105
  };
33106
+ twinfield_sync_apply: {
33107
+ Args: {
33108
+ _base: Json;
33109
+ _customer_id: string;
33110
+ _patch: Json;
33111
+ _uid: string;
33112
+ _version: number;
33113
+ };
33114
+ Returns: undefined;
33115
+ };
33116
+ twinfield_sync_insert: {
33117
+ Args: {
33118
+ _row: Json;
33119
+ };
33120
+ Returns: string;
33121
+ };
33122
+ twinfield_sync_mark_missing: {
33123
+ Args: {
33124
+ _ids: string[];
33125
+ };
33126
+ Returns: undefined;
33127
+ };
32269
33128
  twinfield_upsert_connection_by_account_key: {
32270
33129
  Args: {
32271
33130
  p_account_key: string;
@@ -32291,6 +33150,25 @@ export type Database = {
32291
33150
  };
32292
33151
  Returns: undefined;
32293
33152
  };
33153
+ uren_collega_agenda: {
33154
+ Args: {
33155
+ _monteur: string;
33156
+ _tot: string;
33157
+ _van: string;
33158
+ };
33159
+ Returns: {
33160
+ afwezig: string;
33161
+ datum: string;
33162
+ gepland: number;
33163
+ kort_vrij: Json;
33164
+ overuren: number;
33165
+ standby_avond: boolean;
33166
+ standby_ingepland: string;
33167
+ standby_weekend: boolean;
33168
+ werk_eind: string;
33169
+ werk_start: string;
33170
+ }[];
33171
+ };
32294
33172
  uren_dag_controle: {
32295
33173
  Args: {
32296
33174
  _datum: string;
@@ -32332,6 +33210,20 @@ export type Database = {
32332
33210
  Args: never;
32333
33211
  Returns: boolean;
32334
33212
  };
33213
+ uren_indirect_opslaan: {
33214
+ Args: {
33215
+ _datum: string;
33216
+ _minuten: number;
33217
+ _toelichting: string;
33218
+ };
33219
+ Returns: string;
33220
+ };
33221
+ uren_indirect_verwijderen: {
33222
+ Args: {
33223
+ _id: string;
33224
+ };
33225
+ Returns: undefined;
33226
+ };
32335
33227
  uren_is_beheerder: {
32336
33228
  Args: never;
32337
33229
  Returns: boolean;
@@ -32372,6 +33264,13 @@ export type Database = {
32372
33264
  roles: string[];
32373
33265
  }[];
32374
33266
  };
33267
+ uren_list_monteurs: {
33268
+ Args: never;
33269
+ Returns: {
33270
+ id: string;
33271
+ naam: string;
33272
+ }[];
33273
+ };
32375
33274
  uren_list_planner_contacten: {
32376
33275
  Args: never;
32377
33276
  Returns: {
@@ -32492,6 +33391,36 @@ export type Database = {
32492
33391
  };
32493
33392
  Returns: undefined;
32494
33393
  };
33394
+ uren_standby_opslaan: {
33395
+ Args: {
33396
+ _datums: string[];
33397
+ _soort: string;
33398
+ _tot: string;
33399
+ _van: string;
33400
+ };
33401
+ Returns: undefined;
33402
+ };
33403
+ uren_standby_overdragen: {
33404
+ Args: {
33405
+ _datum: string;
33406
+ _naar: string;
33407
+ };
33408
+ Returns: undefined;
33409
+ };
33410
+ uren_standby_ruil: {
33411
+ Args: {
33412
+ _aan: boolean;
33413
+ _datum: string;
33414
+ };
33415
+ Returns: undefined;
33416
+ };
33417
+ uren_standby_sync: {
33418
+ Args: {
33419
+ _tot: string;
33420
+ _van: string;
33421
+ };
33422
+ Returns: undefined;
33423
+ };
32495
33424
  uren_stop_time_log: {
32496
33425
  Args: {
32497
33426
  p_employee_id: string;
@@ -32767,6 +33696,12 @@ export type Database = {
32767
33696
  };
32768
33697
  Returns: Json;
32769
33698
  };
33699
+ wo_is_planned_monteur: {
33700
+ Args: {
33701
+ _werkbon_id: string;
33702
+ };
33703
+ Returns: boolean;
33704
+ };
32770
33705
  wo_list_colleague_planning: {
32771
33706
  Args: {
32772
33707
  _from: string;
@@ -32794,6 +33729,12 @@ export type Database = {
32794
33729
  };
32795
33730
  Returns: Json;
32796
33731
  };
33732
+ wo_open_standby: {
33733
+ Args: {
33734
+ _standby_id: string;
33735
+ };
33736
+ Returns: string;
33737
+ };
32797
33738
  wo_process_offerte_request: {
32798
33739
  Args: {
32799
33740
  _queue_id: string;