@flowselections/logistiek-engine 1.0.110 → 1.0.112

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 (34) hide show
  1. package/dist-lib/components/MinuutrondeCard.d.ts.map +1 -1
  2. package/dist-lib/components/MinuutrondeCard.js +9 -1
  3. package/dist-lib/hooks/useShellAdres.d.ts +20 -0
  4. package/dist-lib/hooks/useShellAdres.d.ts.map +1 -0
  5. package/dist-lib/hooks/useShellAdres.js +60 -0
  6. package/dist-lib/index.d.ts +2 -0
  7. package/dist-lib/index.d.ts.map +1 -1
  8. package/dist-lib/index.js +2 -0
  9. package/dist-lib/integrations/supabase/client.server.d.ts +2 -32181
  10. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  11. package/dist-lib/integrations/supabase/moduleClient.d.ts +1 -32181
  12. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  13. package/dist-lib/integrations/supabase/types.d.ts +1317 -4
  14. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  15. package/dist-lib/lib/handlers/index.d.ts +1 -0
  16. package/dist-lib/lib/handlers/index.d.ts.map +1 -1
  17. package/dist-lib/lib/handlers/index.js +1 -0
  18. package/dist-lib/lib/handlers/logistics-ping.server.d.ts +4 -0
  19. package/dist-lib/lib/handlers/logistics-ping.server.d.ts.map +1 -0
  20. package/dist-lib/lib/handlers/logistics-ping.server.js +28 -0
  21. package/dist-lib/lib/handlers/logistics-tick.server.d.ts.map +1 -1
  22. package/dist-lib/lib/handlers/logistics-tick.server.js +2 -1
  23. package/dist-lib/lib/modulePrompts.d.ts +2 -0
  24. package/dist-lib/lib/modulePrompts.d.ts.map +1 -1
  25. package/dist-lib/lib/modulePrompts.js +72 -1
  26. package/dist-lib/lib/moduleVersion.d.ts +1 -1
  27. package/dist-lib/lib/moduleVersion.js +1 -1
  28. package/dist-lib/lib/shellAdres.d.ts +15 -0
  29. package/dist-lib/lib/shellAdres.d.ts.map +1 -0
  30. package/dist-lib/lib/shellAdres.functions.d.ts +15 -0
  31. package/dist-lib/lib/shellAdres.functions.d.ts.map +1 -0
  32. package/dist-lib/lib/shellAdres.functions.js +41 -0
  33. package/dist-lib/lib/shellAdres.js +50 -0
  34. 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,7 +7242,9 @@ export type Database = {
7191
7242
  };
7192
7243
  floriday_inventory_settings: {
7193
7244
  Row: {
7245
+ action_reason: string | null;
7194
7246
  buffer_quantity: number;
7247
+ computed_available: number | null;
7195
7248
  connection_id: string;
7196
7249
  created_at: string;
7197
7250
  desired_availability: boolean;
@@ -7203,21 +7256,27 @@ export type Database = {
7203
7256
  last_enqueued_at: string | null;
7204
7257
  last_published_at: string | null;
7205
7258
  last_sync_error: string | null;
7259
+ limiting_product_id: string | null;
7206
7260
  manual_quantity: number | null;
7207
7261
  maximum_quantity: number | null;
7262
+ packing_size: number | null;
7208
7263
  product_id: string;
7264
+ product_type: string | null;
7209
7265
  quantity_control: string;
7210
7266
  remote_available: boolean | null;
7211
7267
  remote_checked_at: string | null;
7212
7268
  remote_quantity: number | null;
7213
7269
  stock_mode: string;
7270
+ structure_detail: Json | null;
7214
7271
  sync_status: string;
7215
7272
  updated_at: string;
7216
7273
  updated_by: string | null;
7217
7274
  user_id: string;
7218
7275
  };
7219
7276
  Insert: {
7277
+ action_reason?: string | null;
7220
7278
  buffer_quantity?: number;
7279
+ computed_available?: number | null;
7221
7280
  connection_id: string;
7222
7281
  created_at?: string;
7223
7282
  desired_availability?: boolean;
@@ -7229,21 +7288,27 @@ export type Database = {
7229
7288
  last_enqueued_at?: string | null;
7230
7289
  last_published_at?: string | null;
7231
7290
  last_sync_error?: string | null;
7291
+ limiting_product_id?: string | null;
7232
7292
  manual_quantity?: number | null;
7233
7293
  maximum_quantity?: number | null;
7294
+ packing_size?: number | null;
7234
7295
  product_id: string;
7296
+ product_type?: string | null;
7235
7297
  quantity_control?: string;
7236
7298
  remote_available?: boolean | null;
7237
7299
  remote_checked_at?: string | null;
7238
7300
  remote_quantity?: number | null;
7239
7301
  stock_mode?: string;
7302
+ structure_detail?: Json | null;
7240
7303
  sync_status?: string;
7241
7304
  updated_at?: string;
7242
7305
  updated_by?: string | null;
7243
7306
  user_id: string;
7244
7307
  };
7245
7308
  Update: {
7309
+ action_reason?: string | null;
7246
7310
  buffer_quantity?: number;
7311
+ computed_available?: number | null;
7247
7312
  connection_id?: string;
7248
7313
  created_at?: string;
7249
7314
  desired_availability?: boolean;
@@ -7255,14 +7320,18 @@ export type Database = {
7255
7320
  last_enqueued_at?: string | null;
7256
7321
  last_published_at?: string | null;
7257
7322
  last_sync_error?: string | null;
7323
+ limiting_product_id?: string | null;
7258
7324
  manual_quantity?: number | null;
7259
7325
  maximum_quantity?: number | null;
7326
+ packing_size?: number | null;
7260
7327
  product_id?: string;
7328
+ product_type?: string | null;
7261
7329
  quantity_control?: string;
7262
7330
  remote_available?: boolean | null;
7263
7331
  remote_checked_at?: string | null;
7264
7332
  remote_quantity?: number | null;
7265
7333
  stock_mode?: string;
7334
+ structure_detail?: Json | null;
7266
7335
  sync_status?: string;
7267
7336
  updated_at?: string;
7268
7337
  updated_by?: string | null;
@@ -7635,6 +7704,60 @@ export type Database = {
7635
7704
  };
7636
7705
  Relationships: [];
7637
7706
  };
7707
+ floriday_reconcile_runs: {
7708
+ Row: {
7709
+ connection_id: string | null;
7710
+ created_at: string;
7711
+ finished_at: string | null;
7712
+ first_error: string | null;
7713
+ id: string;
7714
+ items_checked: number;
7715
+ items_drift: number;
7716
+ items_no_supply: number;
7717
+ last_http_status: number | null;
7718
+ rate_limited: number;
7719
+ read_errors: number;
7720
+ reads: number;
7721
+ response: Json | null;
7722
+ started_at: string;
7723
+ status: string;
7724
+ };
7725
+ Insert: {
7726
+ connection_id?: string | null;
7727
+ created_at?: string;
7728
+ finished_at?: string | null;
7729
+ first_error?: string | null;
7730
+ id?: string;
7731
+ items_checked?: number;
7732
+ items_drift?: number;
7733
+ items_no_supply?: number;
7734
+ last_http_status?: number | null;
7735
+ rate_limited?: number;
7736
+ read_errors?: number;
7737
+ reads?: number;
7738
+ response?: Json | null;
7739
+ started_at?: string;
7740
+ status?: string;
7741
+ };
7742
+ Update: {
7743
+ connection_id?: string | null;
7744
+ created_at?: string;
7745
+ finished_at?: string | null;
7746
+ first_error?: string | null;
7747
+ id?: string;
7748
+ items_checked?: number;
7749
+ items_drift?: number;
7750
+ items_no_supply?: number;
7751
+ last_http_status?: number | null;
7752
+ rate_limited?: number;
7753
+ read_errors?: number;
7754
+ reads?: number;
7755
+ response?: Json | null;
7756
+ started_at?: string;
7757
+ status?: string;
7758
+ };
7759
+ Relationships: [];
7760
+ };
7638
7761
  floriday_resource_schemas: {
7639
7762
  Row: {
7640
7763
  enums: Json;
@@ -8717,6 +8840,60 @@ export type Database = {
8717
8840
  }
8718
8841
  ];
8719
8842
  };
8843
+ inventory_recompute_limits: {
8844
+ Row: {
8845
+ drain_batch: number;
8846
+ id: boolean;
8847
+ max_ms_inline: number;
8848
+ max_parents_inline: number;
8849
+ updated_at: string;
8850
+ };
8851
+ Insert: {
8852
+ drain_batch?: number;
8853
+ id?: boolean;
8854
+ max_ms_inline?: number;
8855
+ max_parents_inline?: number;
8856
+ updated_at?: string;
8857
+ };
8858
+ Update: {
8859
+ drain_batch?: number;
8860
+ id?: boolean;
8861
+ max_ms_inline?: number;
8862
+ max_parents_inline?: number;
8863
+ updated_at?: string;
8864
+ };
8865
+ Relationships: [];
8866
+ };
8867
+ inventory_recompute_queue: {
8868
+ Row: {
8869
+ attempts: number;
8870
+ created_at: string;
8871
+ enqueued_at: string;
8872
+ last_error: string | null;
8873
+ product_id: string;
8874
+ reason: string | null;
8875
+ updated_at: string;
8876
+ };
8877
+ Insert: {
8878
+ attempts?: number;
8879
+ created_at?: string;
8880
+ enqueued_at?: string;
8881
+ last_error?: string | null;
8882
+ product_id: string;
8883
+ reason?: string | null;
8884
+ updated_at?: string;
8885
+ };
8886
+ Update: {
8887
+ attempts?: number;
8888
+ created_at?: string;
8889
+ enqueued_at?: string;
8890
+ last_error?: string | null;
8891
+ product_id?: string;
8892
+ reason?: string | null;
8893
+ updated_at?: string;
8894
+ };
8895
+ Relationships: [];
8896
+ };
8720
8897
  inventory_settings: {
8721
8898
  Row: {
8722
8899
  created_at: string;
@@ -8909,8 +9086,16 @@ export type Database = {
8909
9086
  client_request_id: string;
8910
9087
  completed_at: string | null;
8911
9088
  created_at: string;
9089
+ customer_code: string | null;
8912
9090
  error_message: string | null;
8913
9091
  invoice_number: string | null;
9092
+ invoice_type: string | null;
9093
+ last_known_number: number | null;
9094
+ last_search_at: string | null;
9095
+ phase: string | null;
9096
+ reference: string | null;
9097
+ search_attempts: number;
9098
+ sending_at: string | null;
8914
9099
  status: string;
8915
9100
  user_id: string;
8916
9101
  };
@@ -8919,8 +9104,16 @@ export type Database = {
8919
9104
  client_request_id: string;
8920
9105
  completed_at?: string | null;
8921
9106
  created_at?: string;
9107
+ customer_code?: string | null;
8922
9108
  error_message?: string | null;
8923
9109
  invoice_number?: string | null;
9110
+ invoice_type?: string | null;
9111
+ last_known_number?: number | null;
9112
+ last_search_at?: string | null;
9113
+ phase?: string | null;
9114
+ reference?: string | null;
9115
+ search_attempts?: number;
9116
+ sending_at?: string | null;
8924
9117
  status?: string;
8925
9118
  user_id: string;
8926
9119
  };
@@ -8929,8 +9122,16 @@ export type Database = {
8929
9122
  client_request_id?: string;
8930
9123
  completed_at?: string | null;
8931
9124
  created_at?: string;
9125
+ customer_code?: string | null;
8932
9126
  error_message?: string | null;
8933
9127
  invoice_number?: string | null;
9128
+ invoice_type?: string | null;
9129
+ last_known_number?: number | null;
9130
+ last_search_at?: string | null;
9131
+ phase?: string | null;
9132
+ reference?: string | null;
9133
+ search_attempts?: number;
9134
+ sending_at?: string | null;
8934
9135
  status?: string;
8935
9136
  user_id?: string;
8936
9137
  };
@@ -10058,6 +10259,7 @@ export type Database = {
10058
10259
  id: string;
10059
10260
  singleton: boolean;
10060
10261
  updated_at: string;
10262
+ voorwaarden: string | null;
10061
10263
  };
10062
10264
  Insert: {
10063
10265
  auto_convert_binnen_mandaat?: boolean;
@@ -10068,6 +10270,7 @@ export type Database = {
10068
10270
  id?: string;
10069
10271
  singleton?: boolean;
10070
10272
  updated_at?: string;
10273
+ voorwaarden?: string | null;
10071
10274
  };
10072
10275
  Update: {
10073
10276
  auto_convert_binnen_mandaat?: boolean;
@@ -10078,6 +10281,7 @@ export type Database = {
10078
10281
  id?: string;
10079
10282
  singleton?: boolean;
10080
10283
  updated_at?: string;
10284
+ voorwaarden?: string | null;
10081
10285
  };
10082
10286
  Relationships: [];
10083
10287
  };
@@ -10888,6 +11092,57 @@ export type Database = {
10888
11092
  };
10889
11093
  Relationships: [];
10890
11094
  };
11095
+ logistics_base_url_checks: {
11096
+ Row: {
11097
+ candidate_host: string | null;
11098
+ candidate_url: string | null;
11099
+ detail: string | null;
11100
+ id: number;
11101
+ ping_ok: boolean | null;
11102
+ ping_request_id: number | null;
11103
+ ping_status: number | null;
11104
+ previous_url: string | null;
11105
+ resolved_at: string | null;
11106
+ route_ok: boolean | null;
11107
+ route_request_id: number | null;
11108
+ route_status: number | null;
11109
+ started_at: string;
11110
+ status: string;
11111
+ };
11112
+ Insert: {
11113
+ candidate_host?: string | null;
11114
+ candidate_url?: string | null;
11115
+ detail?: string | null;
11116
+ id?: never;
11117
+ ping_ok?: boolean | null;
11118
+ ping_request_id?: number | null;
11119
+ ping_status?: number | null;
11120
+ previous_url?: string | null;
11121
+ resolved_at?: string | null;
11122
+ route_ok?: boolean | null;
11123
+ route_request_id?: number | null;
11124
+ route_status?: number | null;
11125
+ started_at?: string;
11126
+ status: string;
11127
+ };
11128
+ Update: {
11129
+ candidate_host?: string | null;
11130
+ candidate_url?: string | null;
11131
+ detail?: string | null;
11132
+ id?: never;
11133
+ ping_ok?: boolean | null;
11134
+ ping_request_id?: number | null;
11135
+ ping_status?: number | null;
11136
+ previous_url?: string | null;
11137
+ resolved_at?: string | null;
11138
+ route_ok?: boolean | null;
11139
+ route_request_id?: number | null;
11140
+ route_status?: number | null;
11141
+ started_at?: string;
11142
+ status?: string;
11143
+ };
11144
+ Relationships: [];
11145
+ };
10891
11146
  logistics_capacity_alerts: {
10892
11147
  Row: {
10893
11148
  available_minutes: number;
@@ -12410,6 +12665,42 @@ export type Database = {
12410
12665
  };
12411
12666
  Relationships: [];
12412
12667
  };
12668
+ logistics_reservation_allocations: {
12669
+ Row: {
12670
+ computed_at: string;
12671
+ created_at: string;
12672
+ group_id: string | null;
12673
+ id: string;
12674
+ order_item_id: string;
12675
+ qty: number;
12676
+ source: string;
12677
+ trade_item_key: string;
12678
+ updated_at: string;
12679
+ };
12680
+ Insert: {
12681
+ computed_at?: string;
12682
+ created_at?: string;
12683
+ group_id?: string | null;
12684
+ id?: string;
12685
+ order_item_id: string;
12686
+ qty: number;
12687
+ source: string;
12688
+ trade_item_key: string;
12689
+ updated_at?: string;
12690
+ };
12691
+ Update: {
12692
+ computed_at?: string;
12693
+ created_at?: string;
12694
+ group_id?: string | null;
12695
+ id?: string;
12696
+ order_item_id?: string;
12697
+ qty?: number;
12698
+ source?: string;
12699
+ trade_item_key?: string;
12700
+ updated_at?: string;
12701
+ };
12702
+ Relationships: [];
12703
+ };
12413
12704
  logistics_rule_configs: {
12414
12705
  Row: {
12415
12706
  created_at: string;
@@ -17000,6 +17291,39 @@ export type Database = {
17000
17291
  };
17001
17292
  Relationships: [];
17002
17293
  };
17294
+ pick_taken: {
17295
+ Row: {
17296
+ bron_module: string | null;
17297
+ created_at: string;
17298
+ id: string;
17299
+ klantnaam: string | null;
17300
+ opmerking: string | null;
17301
+ order_ref: string | null;
17302
+ status: string;
17303
+ updated_at: string;
17304
+ };
17305
+ Insert: {
17306
+ bron_module?: string | null;
17307
+ created_at?: string;
17308
+ id?: string;
17309
+ klantnaam?: string | null;
17310
+ opmerking?: string | null;
17311
+ order_ref?: string | null;
17312
+ status?: string;
17313
+ updated_at?: string;
17314
+ };
17315
+ Update: {
17316
+ bron_module?: string | null;
17317
+ created_at?: string;
17318
+ id?: string;
17319
+ klantnaam?: string | null;
17320
+ opmerking?: string | null;
17321
+ order_ref?: string | null;
17322
+ status?: string;
17323
+ updated_at?: string;
17324
+ };
17325
+ Relationships: [];
17326
+ };
17003
17327
  pick_task_document_types: {
17004
17328
  Row: {
17005
17329
  created_at: string;
@@ -19995,6 +20319,7 @@ export type Database = {
19995
20319
  is_protected: boolean;
19996
20320
  key: string;
19997
20321
  name: string;
20322
+ permissions_initialized: boolean;
19998
20323
  updated_at: string;
19999
20324
  };
20000
20325
  Insert: {
@@ -20003,6 +20328,7 @@ export type Database = {
20003
20328
  is_protected?: boolean;
20004
20329
  key: string;
20005
20330
  name: string;
20331
+ permissions_initialized?: boolean;
20006
20332
  updated_at?: string;
20007
20333
  };
20008
20334
  Update: {
@@ -20011,6 +20337,7 @@ export type Database = {
20011
20337
  is_protected?: boolean;
20012
20338
  key?: string;
20013
20339
  name?: string;
20340
+ permissions_initialized?: boolean;
20014
20341
  updated_at?: string;
20015
20342
  };
20016
20343
  Relationships: [];
@@ -20633,6 +20960,50 @@ export type Database = {
20633
20960
  };
20634
20961
  Relationships: [];
20635
20962
  };
20963
+ standby_planning: {
20964
+ Row: {
20965
+ created_at: string;
20966
+ created_by: string | null;
20967
+ employee_id: string;
20968
+ end_date: string;
20969
+ id: string;
20970
+ notes: string | null;
20971
+ soort: string;
20972
+ start_date: string;
20973
+ updated_at: string;
20974
+ };
20975
+ Insert: {
20976
+ created_at?: string;
20977
+ created_by?: string | null;
20978
+ employee_id: string;
20979
+ end_date: string;
20980
+ id?: string;
20981
+ notes?: string | null;
20982
+ soort: string;
20983
+ start_date: string;
20984
+ updated_at?: string;
20985
+ };
20986
+ Update: {
20987
+ created_at?: string;
20988
+ created_by?: string | null;
20989
+ employee_id?: string;
20990
+ end_date?: string;
20991
+ id?: string;
20992
+ notes?: string | null;
20993
+ soort?: string;
20994
+ start_date?: string;
20995
+ updated_at?: string;
20996
+ };
20997
+ Relationships: [
20998
+ {
20999
+ foreignKeyName: "standby_planning_employee_id_fkey";
21000
+ columns: ["employee_id"];
21001
+ isOneToOne: false;
21002
+ referencedRelation: "profiles";
21003
+ referencedColumns: ["id"];
21004
+ }
21005
+ ];
21006
+ };
20636
21007
  stock_consumption_alerts: {
20637
21008
  Row: {
20638
21009
  alert_type: string;
@@ -20714,6 +21085,42 @@ export type Database = {
20714
21085
  };
20715
21086
  Relationships: [];
20716
21087
  };
21088
+ stock_integrity_alerts: {
21089
+ Row: {
21090
+ acknowledged_at: string | null;
21091
+ acknowledged_by: string | null;
21092
+ alert_kind: string;
21093
+ created_at: string;
21094
+ id: string;
21095
+ item_count: number;
21096
+ items: Json;
21097
+ tx_id: number;
21098
+ updated_at: string;
21099
+ };
21100
+ Insert: {
21101
+ acknowledged_at?: string | null;
21102
+ acknowledged_by?: string | null;
21103
+ alert_kind?: string;
21104
+ created_at?: string;
21105
+ id?: string;
21106
+ item_count?: number;
21107
+ items?: Json;
21108
+ tx_id: number;
21109
+ updated_at?: string;
21110
+ };
21111
+ Update: {
21112
+ acknowledged_at?: string | null;
21113
+ acknowledged_by?: string | null;
21114
+ alert_kind?: string;
21115
+ created_at?: string;
21116
+ id?: string;
21117
+ item_count?: number;
21118
+ items?: Json;
21119
+ tx_id?: number;
21120
+ updated_at?: string;
21121
+ };
21122
+ Relationships: [];
21123
+ };
20717
21124
  stock_mutation_log: {
20718
21125
  Row: {
20719
21126
  connection_id: string | null;
@@ -20771,6 +21178,45 @@ export type Database = {
20771
21178
  };
20772
21179
  Relationships: [];
20773
21180
  };
21181
+ structure_cleanup_log: {
21182
+ Row: {
21183
+ action: string;
21184
+ batch: string;
21185
+ created_at: string;
21186
+ id: string;
21187
+ new_row: Json | null;
21188
+ old_row: Json;
21189
+ reason: string;
21190
+ row_id: string;
21191
+ step: number;
21192
+ table_name: string;
21193
+ };
21194
+ Insert: {
21195
+ action: string;
21196
+ batch: string;
21197
+ created_at?: string;
21198
+ id?: string;
21199
+ new_row?: Json | null;
21200
+ old_row: Json;
21201
+ reason: string;
21202
+ row_id: string;
21203
+ step: number;
21204
+ table_name: string;
21205
+ };
21206
+ Update: {
21207
+ action?: string;
21208
+ batch?: string;
21209
+ created_at?: string;
21210
+ id?: string;
21211
+ new_row?: Json | null;
21212
+ old_row?: Json;
21213
+ reason?: string;
21214
+ row_id?: string;
21215
+ step?: number;
21216
+ table_name?: string;
21217
+ };
21218
+ Relationships: [];
21219
+ };
20774
21220
  supplier_contacts: {
20775
21221
  Row: {
20776
21222
  created_at: string;
@@ -21202,15 +21648,68 @@ export type Database = {
21202
21648
  }
21203
21649
  ];
21204
21650
  };
21205
- time_entries: {
21651
+ time_compensation_log: {
21206
21652
  Row: {
21653
+ actie: string;
21207
21654
  created_at: string;
21208
21655
  employee_id: string;
21209
21656
  entry_date: string;
21210
- hours: number;
21211
21657
  id: string;
21212
- notes: string | null;
21213
- overtime: number;
21658
+ km: number;
21659
+ maaltijd: number;
21660
+ notities: string | null;
21661
+ performed_by: string | null;
21662
+ standby_avond: number;
21663
+ standby_weekend: number;
21664
+ tvt: number;
21665
+ };
21666
+ Insert: {
21667
+ actie: string;
21668
+ created_at?: string;
21669
+ employee_id: string;
21670
+ entry_date: string;
21671
+ id?: string;
21672
+ km?: number;
21673
+ maaltijd?: number;
21674
+ notities?: string | null;
21675
+ performed_by?: string | null;
21676
+ standby_avond?: number;
21677
+ standby_weekend?: number;
21678
+ tvt?: number;
21679
+ };
21680
+ Update: {
21681
+ actie?: string;
21682
+ created_at?: string;
21683
+ employee_id?: string;
21684
+ entry_date?: string;
21685
+ id?: string;
21686
+ km?: number;
21687
+ maaltijd?: number;
21688
+ notities?: string | null;
21689
+ performed_by?: string | null;
21690
+ standby_avond?: number;
21691
+ standby_weekend?: number;
21692
+ tvt?: number;
21693
+ };
21694
+ Relationships: [
21695
+ {
21696
+ foreignKeyName: "time_compensation_log_employee_id_fkey";
21697
+ columns: ["employee_id"];
21698
+ isOneToOne: false;
21699
+ referencedRelation: "profiles";
21700
+ referencedColumns: ["id"];
21701
+ }
21702
+ ];
21703
+ };
21704
+ time_entries: {
21705
+ Row: {
21706
+ created_at: string;
21707
+ employee_id: string;
21708
+ entry_date: string;
21709
+ hours: number;
21710
+ id: string;
21711
+ notes: string | null;
21712
+ overtime: number;
21214
21713
  undertime: number;
21215
21714
  updated_at: string;
21216
21715
  };
@@ -21729,13 +22228,19 @@ export type Database = {
21729
22228
  created_at: string;
21730
22229
  disconnected_at: string | null;
21731
22230
  environment: string;
22231
+ granted_scopes: string[] | null;
21732
22232
  id: string;
21733
22233
  initial_sync_completed_at: string | null;
22234
+ initial_sync_last_error: string | null;
22235
+ initial_sync_plan: Json | null;
21734
22236
  initial_sync_started_at: string | null;
21735
22237
  is_active: boolean;
21736
22238
  label: string | null;
22239
+ missing_scopes: string[] | null;
21737
22240
  office_code: string | null;
21738
22241
  redirect_uri: string | null;
22242
+ scope_checked_at: string | null;
22243
+ scope_state: string | null;
21739
22244
  superseded_at: string | null;
21740
22245
  updated_at: string;
21741
22246
  user_id: string;
@@ -21749,13 +22254,19 @@ export type Database = {
21749
22254
  created_at?: string;
21750
22255
  disconnected_at?: string | null;
21751
22256
  environment: string;
22257
+ granted_scopes?: string[] | null;
21752
22258
  id?: string;
21753
22259
  initial_sync_completed_at?: string | null;
22260
+ initial_sync_last_error?: string | null;
22261
+ initial_sync_plan?: Json | null;
21754
22262
  initial_sync_started_at?: string | null;
21755
22263
  is_active?: boolean;
21756
22264
  label?: string | null;
22265
+ missing_scopes?: string[] | null;
21757
22266
  office_code?: string | null;
21758
22267
  redirect_uri?: string | null;
22268
+ scope_checked_at?: string | null;
22269
+ scope_state?: string | null;
21759
22270
  superseded_at?: string | null;
21760
22271
  updated_at?: string;
21761
22272
  user_id: string;
@@ -21769,13 +22280,19 @@ export type Database = {
21769
22280
  created_at?: string;
21770
22281
  disconnected_at?: string | null;
21771
22282
  environment?: string;
22283
+ granted_scopes?: string[] | null;
21772
22284
  id?: string;
21773
22285
  initial_sync_completed_at?: string | null;
22286
+ initial_sync_last_error?: string | null;
22287
+ initial_sync_plan?: Json | null;
21774
22288
  initial_sync_started_at?: string | null;
21775
22289
  is_active?: boolean;
21776
22290
  label?: string | null;
22291
+ missing_scopes?: string[] | null;
21777
22292
  office_code?: string | null;
21778
22293
  redirect_uri?: string | null;
22294
+ scope_checked_at?: string | null;
22295
+ scope_state?: string | null;
21779
22296
  superseded_at?: string | null;
21780
22297
  updated_at?: string;
21781
22298
  user_id?: string;
@@ -21901,33 +22418,51 @@ export type Database = {
21901
22418
  connection_id: string;
21902
22419
  country: string | null;
21903
22420
  data: Json;
22421
+ deactivated_at: string | null;
21904
22422
  email: string | null;
21905
22423
  fetched_at: string;
22424
+ is_active: boolean;
21906
22425
  modified_at: string | null;
21907
22426
  name: string | null;
22427
+ seen_at: string | null;
21908
22428
  twinfield_code: string;
22429
+ twinfield_status: string | null;
22430
+ twinfield_uid: string | null;
22431
+ twinfield_version: number | null;
21909
22432
  vat_number: string | null;
21910
22433
  };
21911
22434
  Insert: {
21912
22435
  connection_id: string;
21913
22436
  country?: string | null;
21914
22437
  data?: Json;
22438
+ deactivated_at?: string | null;
21915
22439
  email?: string | null;
21916
22440
  fetched_at?: string;
22441
+ is_active?: boolean;
21917
22442
  modified_at?: string | null;
21918
22443
  name?: string | null;
22444
+ seen_at?: string | null;
21919
22445
  twinfield_code: string;
22446
+ twinfield_status?: string | null;
22447
+ twinfield_uid?: string | null;
22448
+ twinfield_version?: number | null;
21920
22449
  vat_number?: string | null;
21921
22450
  };
21922
22451
  Update: {
21923
22452
  connection_id?: string;
21924
22453
  country?: string | null;
21925
22454
  data?: Json;
22455
+ deactivated_at?: string | null;
21926
22456
  email?: string | null;
21927
22457
  fetched_at?: string;
22458
+ is_active?: boolean;
21928
22459
  modified_at?: string | null;
21929
22460
  name?: string | null;
22461
+ seen_at?: string | null;
21930
22462
  twinfield_code?: string;
22463
+ twinfield_status?: string | null;
22464
+ twinfield_uid?: string | null;
22465
+ twinfield_version?: number | null;
21931
22466
  vat_number?: string | null;
21932
22467
  };
21933
22468
  Relationships: [
@@ -21940,6 +22475,59 @@ export type Database = {
21940
22475
  }
21941
22476
  ];
21942
22477
  };
22478
+ twinfield_dimension_types_cache: {
22479
+ Row: {
22480
+ connection_id: string | null;
22481
+ dim_type: string;
22482
+ fetched_at: string;
22483
+ label1: string | null;
22484
+ label2: string | null;
22485
+ label3: string | null;
22486
+ label4: string | null;
22487
+ label5: string | null;
22488
+ label6: string | null;
22489
+ mask: string | null;
22490
+ name: string | null;
22491
+ office_code: string;
22492
+ };
22493
+ Insert: {
22494
+ connection_id?: string | null;
22495
+ dim_type: string;
22496
+ fetched_at?: string;
22497
+ label1?: string | null;
22498
+ label2?: string | null;
22499
+ label3?: string | null;
22500
+ label4?: string | null;
22501
+ label5?: string | null;
22502
+ label6?: string | null;
22503
+ mask?: string | null;
22504
+ name?: string | null;
22505
+ office_code: string;
22506
+ };
22507
+ Update: {
22508
+ connection_id?: string | null;
22509
+ dim_type?: string;
22510
+ fetched_at?: string;
22511
+ label1?: string | null;
22512
+ label2?: string | null;
22513
+ label3?: string | null;
22514
+ label4?: string | null;
22515
+ label5?: string | null;
22516
+ label6?: string | null;
22517
+ mask?: string | null;
22518
+ name?: string | null;
22519
+ office_code?: string;
22520
+ };
22521
+ Relationships: [
22522
+ {
22523
+ foreignKeyName: "twinfield_dimension_types_cache_connection_id_fkey";
22524
+ columns: ["connection_id"];
22525
+ isOneToOne: false;
22526
+ referencedRelation: "twinfield_connections";
22527
+ referencedColumns: ["id"];
22528
+ }
22529
+ ];
22530
+ };
21943
22531
  twinfield_invoice_lines: {
21944
22532
  Row: {
21945
22533
  article_code: string | null;
@@ -22536,24 +23124,39 @@ export type Database = {
22536
23124
  twinfield_request_metrics: {
22537
23125
  Row: {
22538
23126
  bucket_hour: string;
23127
+ clientid_limit: number | null;
23128
+ clientid_remaining: number | null;
22539
23129
  connection_id: string;
22540
23130
  error_count: number;
23131
+ rate_limit_limit: number | null;
23132
+ rate_limit_remaining: number | null;
23133
+ rate_limit_seen_at: string | null;
22541
23134
  rate_limited_count: number;
22542
23135
  request_count: number;
22543
23136
  updated_at: string;
22544
23137
  };
22545
23138
  Insert: {
22546
23139
  bucket_hour: string;
23140
+ clientid_limit?: number | null;
23141
+ clientid_remaining?: number | null;
22547
23142
  connection_id: string;
22548
23143
  error_count?: number;
23144
+ rate_limit_limit?: number | null;
23145
+ rate_limit_remaining?: number | null;
23146
+ rate_limit_seen_at?: string | null;
22549
23147
  rate_limited_count?: number;
22550
23148
  request_count?: number;
22551
23149
  updated_at?: string;
22552
23150
  };
22553
23151
  Update: {
22554
23152
  bucket_hour?: string;
23153
+ clientid_limit?: number | null;
23154
+ clientid_remaining?: number | null;
22555
23155
  connection_id?: string;
22556
23156
  error_count?: number;
23157
+ rate_limit_limit?: number | null;
23158
+ rate_limit_remaining?: number | null;
23159
+ rate_limit_seen_at?: string | null;
22557
23160
  rate_limited_count?: number;
22558
23161
  request_count?: number;
22559
23162
  updated_at?: string;
@@ -22608,24 +23211,226 @@ export type Database = {
22608
23211
  twinfield_settings: {
22609
23212
  Row: {
22610
23213
  active_environment: string;
23214
+ cron_registered_at: string | null;
23215
+ cron_registration_error: string | null;
23216
+ cron_schedules: Json;
23217
+ cron_timeouts: Json;
22611
23218
  id: number;
22612
23219
  public_base_url: string | null;
22613
23220
  updated_at: string;
22614
23221
  };
22615
23222
  Insert: {
22616
23223
  active_environment?: string;
23224
+ cron_registered_at?: string | null;
23225
+ cron_registration_error?: string | null;
23226
+ cron_schedules?: Json;
23227
+ cron_timeouts?: Json;
22617
23228
  id?: number;
22618
23229
  public_base_url?: string | null;
22619
23230
  updated_at?: string;
22620
23231
  };
22621
23232
  Update: {
22622
23233
  active_environment?: string;
23234
+ cron_registered_at?: string | null;
23235
+ cron_registration_error?: string | null;
23236
+ cron_schedules?: Json;
23237
+ cron_timeouts?: Json;
22623
23238
  id?: number;
22624
23239
  public_base_url?: string | null;
22625
23240
  updated_at?: string;
22626
23241
  };
22627
23242
  Relationships: [];
22628
23243
  };
23244
+ twinfield_sync_runs: {
23245
+ Row: {
23246
+ calls: number;
23247
+ changed: number;
23248
+ connection_id: string | null;
23249
+ deactivated: number;
23250
+ details: Json;
23251
+ error: string | null;
23252
+ fetched: number;
23253
+ finished_at: string | null;
23254
+ id: string;
23255
+ item_errors: number;
23256
+ kind: string;
23257
+ rate_limited: number;
23258
+ started_at: string;
23259
+ status: string;
23260
+ };
23261
+ Insert: {
23262
+ calls?: number;
23263
+ changed?: number;
23264
+ connection_id?: string | null;
23265
+ deactivated?: number;
23266
+ details?: Json;
23267
+ error?: string | null;
23268
+ fetched?: number;
23269
+ finished_at?: string | null;
23270
+ id?: string;
23271
+ item_errors?: number;
23272
+ kind: string;
23273
+ rate_limited?: number;
23274
+ started_at?: string;
23275
+ status?: string;
23276
+ };
23277
+ Update: {
23278
+ calls?: number;
23279
+ changed?: number;
23280
+ connection_id?: string | null;
23281
+ deactivated?: number;
23282
+ details?: Json;
23283
+ error?: string | null;
23284
+ fetched?: number;
23285
+ finished_at?: string | null;
23286
+ id?: string;
23287
+ item_errors?: number;
23288
+ kind?: string;
23289
+ rate_limited?: number;
23290
+ started_at?: string;
23291
+ status?: string;
23292
+ };
23293
+ Relationships: [
23294
+ {
23295
+ foreignKeyName: "twinfield_sync_runs_connection_id_fkey";
23296
+ columns: ["connection_id"];
23297
+ isOneToOne: false;
23298
+ referencedRelation: "twinfield_connections";
23299
+ referencedColumns: ["id"];
23300
+ }
23301
+ ];
23302
+ };
23303
+ twinfield_sync_settings: {
23304
+ Row: {
23305
+ batch_size: number;
23306
+ change_overlap_seconds: number;
23307
+ change_poll_interval_seconds: number;
23308
+ connection_id: string;
23309
+ created_at: string;
23310
+ currency: string | null;
23311
+ currency_at: string | null;
23312
+ currency_source: string | null;
23313
+ customer_gl_account: string | null;
23314
+ customer_gl_account_at: string | null;
23315
+ customer_gl_account_source: string | null;
23316
+ customers_written_by_module: boolean;
23317
+ default_country: string | null;
23318
+ default_country_at: string | null;
23319
+ default_country_source: string | null;
23320
+ default_language: string | null;
23321
+ default_language_at: string | null;
23322
+ default_language_source: string | null;
23323
+ nightly_full_scan_cron: string;
23324
+ payment_term_min_invoices: number;
23325
+ payment_term_min_share: number;
23326
+ rate_limit_floor: number;
23327
+ requires_manual_approval: boolean;
23328
+ run_budget_ms: number;
23329
+ sales_daybook: string | null;
23330
+ sales_daybook_confirmed_at: string | null;
23331
+ sales_daybook_confirmed_by: string | null;
23332
+ sales_gl_account: string | null;
23333
+ sales_gl_account_at: string | null;
23334
+ sales_gl_account_source: string | null;
23335
+ sales_invoice_type: string | null;
23336
+ sales_invoice_type_confirmed_at: string | null;
23337
+ sales_invoice_type_confirmed_by: string | null;
23338
+ sales_payment_term_at: string | null;
23339
+ sales_payment_term_days: number | null;
23340
+ sales_payment_term_source: string | null;
23341
+ suggestion_warnings: Json;
23342
+ updated_at: string;
23343
+ };
23344
+ Insert: {
23345
+ batch_size?: number;
23346
+ change_overlap_seconds?: number;
23347
+ change_poll_interval_seconds?: number;
23348
+ connection_id: string;
23349
+ created_at?: string;
23350
+ currency?: string | null;
23351
+ currency_at?: string | null;
23352
+ currency_source?: string | null;
23353
+ customer_gl_account?: string | null;
23354
+ customer_gl_account_at?: string | null;
23355
+ customer_gl_account_source?: string | null;
23356
+ customers_written_by_module?: boolean;
23357
+ default_country?: string | null;
23358
+ default_country_at?: string | null;
23359
+ default_country_source?: string | null;
23360
+ default_language?: string | null;
23361
+ default_language_at?: string | null;
23362
+ default_language_source?: string | null;
23363
+ nightly_full_scan_cron?: string;
23364
+ payment_term_min_invoices?: number;
23365
+ payment_term_min_share?: number;
23366
+ rate_limit_floor?: number;
23367
+ requires_manual_approval?: boolean;
23368
+ run_budget_ms?: number;
23369
+ sales_daybook?: string | null;
23370
+ sales_daybook_confirmed_at?: string | null;
23371
+ sales_daybook_confirmed_by?: string | null;
23372
+ sales_gl_account?: string | null;
23373
+ sales_gl_account_at?: string | null;
23374
+ sales_gl_account_source?: string | null;
23375
+ sales_invoice_type?: string | null;
23376
+ sales_invoice_type_confirmed_at?: string | null;
23377
+ sales_invoice_type_confirmed_by?: string | null;
23378
+ sales_payment_term_at?: string | null;
23379
+ sales_payment_term_days?: number | null;
23380
+ sales_payment_term_source?: string | null;
23381
+ suggestion_warnings?: Json;
23382
+ updated_at?: string;
23383
+ };
23384
+ Update: {
23385
+ batch_size?: number;
23386
+ change_overlap_seconds?: number;
23387
+ change_poll_interval_seconds?: number;
23388
+ connection_id?: string;
23389
+ created_at?: string;
23390
+ currency?: string | null;
23391
+ currency_at?: string | null;
23392
+ currency_source?: string | null;
23393
+ customer_gl_account?: string | null;
23394
+ customer_gl_account_at?: string | null;
23395
+ customer_gl_account_source?: string | null;
23396
+ customers_written_by_module?: boolean;
23397
+ default_country?: string | null;
23398
+ default_country_at?: string | null;
23399
+ default_country_source?: string | null;
23400
+ default_language?: string | null;
23401
+ default_language_at?: string | null;
23402
+ default_language_source?: string | null;
23403
+ nightly_full_scan_cron?: string;
23404
+ payment_term_min_invoices?: number;
23405
+ payment_term_min_share?: number;
23406
+ rate_limit_floor?: number;
23407
+ requires_manual_approval?: boolean;
23408
+ run_budget_ms?: number;
23409
+ sales_daybook?: string | null;
23410
+ sales_daybook_confirmed_at?: string | null;
23411
+ sales_daybook_confirmed_by?: string | null;
23412
+ sales_gl_account?: string | null;
23413
+ sales_gl_account_at?: string | null;
23414
+ sales_gl_account_source?: string | null;
23415
+ sales_invoice_type?: string | null;
23416
+ sales_invoice_type_confirmed_at?: string | null;
23417
+ sales_invoice_type_confirmed_by?: string | null;
23418
+ sales_payment_term_at?: string | null;
23419
+ sales_payment_term_days?: number | null;
23420
+ sales_payment_term_source?: string | null;
23421
+ suggestion_warnings?: Json;
23422
+ updated_at?: string;
23423
+ };
23424
+ Relationships: [
23425
+ {
23426
+ foreignKeyName: "twinfield_sync_settings_connection_id_fkey";
23427
+ columns: ["connection_id"];
23428
+ isOneToOne: true;
23429
+ referencedRelation: "twinfield_connections";
23430
+ referencedColumns: ["id"];
23431
+ }
23432
+ ];
23433
+ };
22629
23434
  twinfield_sync_state: {
22630
23435
  Row: {
22631
23436
  connection_id: string;
@@ -22661,6 +23466,51 @@ export type Database = {
22661
23466
  }
22662
23467
  ];
22663
23468
  };
23469
+ twinfield_vat_code_map: {
23470
+ Row: {
23471
+ confirmed_at: string | null;
23472
+ confirmed_by: string | null;
23473
+ fetched_at: string;
23474
+ id: string;
23475
+ is_default: boolean;
23476
+ name: string | null;
23477
+ office_code: string;
23478
+ percentage: number | null;
23479
+ source: string;
23480
+ vat_category: string | null;
23481
+ vat_code: string;
23482
+ vat_type: string | null;
23483
+ };
23484
+ Insert: {
23485
+ confirmed_at?: string | null;
23486
+ confirmed_by?: string | null;
23487
+ fetched_at?: string;
23488
+ id?: string;
23489
+ is_default?: boolean;
23490
+ name?: string | null;
23491
+ office_code: string;
23492
+ percentage?: number | null;
23493
+ source?: string;
23494
+ vat_category?: string | null;
23495
+ vat_code: string;
23496
+ vat_type?: string | null;
23497
+ };
23498
+ Update: {
23499
+ confirmed_at?: string | null;
23500
+ confirmed_by?: string | null;
23501
+ fetched_at?: string;
23502
+ id?: string;
23503
+ is_default?: boolean;
23504
+ name?: string | null;
23505
+ office_code?: string;
23506
+ percentage?: number | null;
23507
+ source?: string;
23508
+ vat_category?: string | null;
23509
+ vat_code?: string;
23510
+ vat_type?: string | null;
23511
+ };
23512
+ Relationships: [];
23513
+ };
22664
23514
  uren_beschikbare_dagen: {
22665
23515
  Row: {
22666
23516
  bron: string;
@@ -22841,6 +23691,36 @@ export type Database = {
22841
23691
  };
22842
23692
  Relationships: [];
22843
23693
  };
23694
+ uren_indirecte_uren: {
23695
+ Row: {
23696
+ created_at: string;
23697
+ datum: string;
23698
+ id: string;
23699
+ minuten: number;
23700
+ monteur_id: string;
23701
+ toelichting: string;
23702
+ updated_at: string;
23703
+ };
23704
+ Insert: {
23705
+ created_at?: string;
23706
+ datum: string;
23707
+ id?: string;
23708
+ minuten: number;
23709
+ monteur_id: string;
23710
+ toelichting: string;
23711
+ updated_at?: string;
23712
+ };
23713
+ Update: {
23714
+ created_at?: string;
23715
+ datum?: string;
23716
+ id?: string;
23717
+ minuten?: number;
23718
+ monteur_id?: string;
23719
+ toelichting?: string;
23720
+ updated_at?: string;
23721
+ };
23722
+ Relationships: [];
23723
+ };
22844
23724
  uren_maandafsluitingen: {
22845
23725
  Row: {
22846
23726
  afgesloten_at: string | null;
@@ -24835,12 +25715,14 @@ export type Database = {
24835
25715
  };
24836
25716
  werkbonnen: {
24837
25717
  Row: {
25718
+ afgerond_op: string | null;
24838
25719
  assigned_user_id: string | null;
24839
25720
  budget_mandate_cents: number;
24840
25721
  complaint_description: string | null;
24841
25722
  created_at: string;
24842
25723
  created_by: string | null;
24843
25724
  customer_id: string | null;
25725
+ customer_name: string | null;
24844
25726
  deadline_date: string | null;
24845
25727
  estimated_days: number | null;
24846
25728
  estimated_duration_minutes: number | null;
@@ -24877,12 +25759,14 @@ export type Database = {
24877
25759
  workday_hours: number | null;
24878
25760
  };
24879
25761
  Insert: {
25762
+ afgerond_op?: string | null;
24880
25763
  assigned_user_id?: string | null;
24881
25764
  budget_mandate_cents?: number;
24882
25765
  complaint_description?: string | null;
24883
25766
  created_at?: string;
24884
25767
  created_by?: string | null;
24885
25768
  customer_id?: string | null;
25769
+ customer_name?: string | null;
24886
25770
  deadline_date?: string | null;
24887
25771
  estimated_days?: number | null;
24888
25772
  estimated_duration_minutes?: number | null;
@@ -24919,12 +25803,14 @@ export type Database = {
24919
25803
  workday_hours?: number | null;
24920
25804
  };
24921
25805
  Update: {
25806
+ afgerond_op?: string | null;
24922
25807
  assigned_user_id?: string | null;
24923
25808
  budget_mandate_cents?: number;
24924
25809
  complaint_description?: string | null;
24925
25810
  created_at?: string;
24926
25811
  created_by?: string | null;
24927
25812
  customer_id?: string | null;
25813
+ customer_name?: string | null;
24928
25814
  deadline_date?: string | null;
24929
25815
  estimated_days?: number | null;
24930
25816
  estimated_duration_minutes?: number | null;
@@ -25328,6 +26214,7 @@ export type Database = {
25328
26214
  group_key: string | null;
25329
26215
  is_active: boolean | null;
25330
26216
  is_merged: boolean | null;
26217
+ last_changed_at: string | null;
25331
26218
  logo_url: string | null;
25332
26219
  match_key: string | null;
25333
26220
  phone: string | null;
@@ -25341,6 +26228,7 @@ export type Database = {
25341
26228
  };
25342
26229
  external_customers_unified: {
25343
26230
  Row: {
26231
+ changed_at: string | null;
25344
26232
  city: string | null;
25345
26233
  commercial_name: string | null;
25346
26234
  company_name: string | null;
@@ -25751,6 +26639,7 @@ export type Database = {
25751
26639
  };
25752
26640
  v_external_customers_floriday: {
25753
26641
  Row: {
26642
+ changed_at: string | null;
25754
26643
  city: string | null;
25755
26644
  commercial_name: string | null;
25756
26645
  company_name: string | null;
@@ -25786,6 +26675,7 @@ export type Database = {
25786
26675
  };
25787
26676
  v_external_customers_local: {
25788
26677
  Row: {
26678
+ changed_at: string | null;
25789
26679
  city: string | null;
25790
26680
  commercial_name: string | null;
25791
26681
  company_name: string | null;
@@ -25810,6 +26700,7 @@ export type Database = {
25810
26700
  website: string | null;
25811
26701
  };
25812
26702
  Insert: {
26703
+ changed_at?: never;
25813
26704
  city?: string | null;
25814
26705
  commercial_name?: string | null;
25815
26706
  company_name?: string | null;
@@ -25834,6 +26725,7 @@ export type Database = {
25834
26725
  website?: string | null;
25835
26726
  };
25836
26727
  Update: {
26728
+ changed_at?: never;
25837
26729
  city?: string | null;
25838
26730
  commercial_name?: string | null;
25839
26731
  company_name?: string | null;
@@ -25861,6 +26753,7 @@ export type Database = {
25861
26753
  };
25862
26754
  v_external_customers_twinfield: {
25863
26755
  Row: {
26756
+ changed_at: string | null;
25864
26757
  city: string | null;
25865
26758
  commercial_name: string | null;
25866
26759
  company_name: string | null;
@@ -26249,6 +27142,8 @@ export type Database = {
26249
27142
  desired_availability: boolean;
26250
27143
  desired_quantity: number;
26251
27144
  erp_available: number;
27145
+ packing_size: number;
27146
+ reason: string;
26252
27147
  stock_mode: string;
26253
27148
  }[];
26254
27149
  };
@@ -26258,6 +27153,15 @@ export type Database = {
26258
27153
  };
26259
27154
  Returns: number;
26260
27155
  };
27156
+ calculate_structure_available: {
27157
+ Args: {
27158
+ p_connection_id: string;
27159
+ p_level?: number;
27160
+ p_path?: string[];
27161
+ p_product_id: string;
27162
+ };
27163
+ Returns: Json;
27164
+ };
26261
27165
  call_exact_route: {
26262
27166
  Args: {
26263
27167
  path: string;
@@ -26286,6 +27190,19 @@ export type Database = {
26286
27190
  };
26287
27191
  Returns: Json;
26288
27192
  };
27193
+ check_product_structure: {
27194
+ Args: {
27195
+ p_child: string;
27196
+ p_kind: string;
27197
+ p_name?: string;
27198
+ p_parent: string;
27199
+ };
27200
+ Returns: {
27201
+ code: string;
27202
+ message: string;
27203
+ ok: boolean;
27204
+ }[];
27205
+ };
26289
27206
  check_trade_item_available_stock: {
26290
27207
  Args: {
26291
27208
  p_connection_id?: string;
@@ -26366,6 +27283,7 @@ export type Database = {
26366
27283
  };
26367
27284
  Returns: {
26368
27285
  attempts: number;
27286
+ availability_sent_at: string | null;
26369
27287
  connection_id: string;
26370
27288
  created_at: string;
26371
27289
  dead_lettered_at: string | null;
@@ -26378,7 +27296,9 @@ export type Database = {
26378
27296
  next_attempt_at: string;
26379
27297
  number_of_pieces: number;
26380
27298
  product_id: string | null;
27299
+ quantity_sent_at: string | null;
26381
27300
  sent_at: string | null;
27301
+ skip_reason: string | null;
26382
27302
  status: string;
26383
27303
  stock_mode: string | null;
26384
27304
  superseded_by: string | null;
@@ -26628,6 +27548,14 @@ export type Database = {
26628
27548
  Args: never;
26629
27549
  Returns: undefined;
26630
27550
  };
27551
+ cleanup_standby_planning: {
27552
+ Args: never;
27553
+ Returns: number;
27554
+ };
27555
+ cleanup_time_compensation_log: {
27556
+ Args: never;
27557
+ Returns: number;
27558
+ };
26631
27559
  cleanup_voorraad_module_history: {
26632
27560
  Args: never;
26633
27561
  Returns: undefined;
@@ -26642,6 +27570,18 @@ export type Database = {
26642
27570
  };
26643
27571
  Returns: undefined;
26644
27572
  };
27573
+ complete_floriday_stock_queue_outcome: {
27574
+ Args: {
27575
+ p_attempt_id?: string;
27576
+ p_availability_sent?: boolean;
27577
+ p_error?: string;
27578
+ p_id: string;
27579
+ p_outcome: string;
27580
+ p_permanent?: boolean;
27581
+ p_quantity_sent?: boolean;
27582
+ };
27583
+ Returns: undefined;
27584
+ };
26645
27585
  consume_bom_for_production: {
26646
27586
  Args: {
26647
27587
  p_connection_id: string;
@@ -26676,6 +27616,15 @@ export type Database = {
26676
27616
  wait_ms: number;
26677
27617
  }[];
26678
27618
  };
27619
+ consume_order_item: {
27620
+ Args: {
27621
+ p_order_id: string;
27622
+ p_order_item_id: string;
27623
+ p_reason: string;
27624
+ p_source: string;
27625
+ };
27626
+ Returns: number;
27627
+ };
26679
27628
  consume_print_agent_pairing: {
26680
27629
  Args: {
26681
27630
  _pairing_hash: string;
@@ -26808,6 +27757,10 @@ export type Database = {
26808
27757
  };
26809
27758
  Returns: Json;
26810
27759
  };
27760
+ drain_inventory_recompute_queue: {
27761
+ Args: never;
27762
+ Returns: number;
27763
+ };
26811
27764
  effective_module_permission: {
26812
27765
  Args: {
26813
27766
  _module_id: string;
@@ -26880,6 +27833,18 @@ export type Database = {
26880
27833
  };
26881
27834
  Returns: undefined;
26882
27835
  };
27836
+ enqueue_structure_recompute: {
27837
+ Args: {
27838
+ p_include_self?: boolean;
27839
+ p_product_ids: string[];
27840
+ p_reason: string;
27841
+ };
27842
+ Returns: number;
27843
+ };
27844
+ ensure_inventory_recompute_drain: {
27845
+ Args: never;
27846
+ Returns: undefined;
27847
+ };
26883
27848
  ensure_system_roles: {
26884
27849
  Args: never;
26885
27850
  Returns: {
@@ -26893,6 +27858,12 @@ export type Database = {
26893
27858
  };
26894
27859
  Returns: undefined;
26895
27860
  };
27861
+ ensure_trade_item_stock_row_key: {
27862
+ Args: {
27863
+ p_key: string;
27864
+ };
27865
+ Returns: string;
27866
+ };
26896
27867
  ensure_user_tenant: {
26897
27868
  Args: never;
26898
27869
  Returns: string;
@@ -26991,6 +27962,19 @@ export type Database = {
26991
27962
  };
26992
27963
  Returns: string;
26993
27964
  };
27965
+ floriday_desired_stock_regression_check: {
27966
+ Args: never;
27967
+ Returns: {
27968
+ actual: number;
27969
+ available: number;
27970
+ equal: boolean;
27971
+ expected: number;
27972
+ packing: number;
27973
+ product_id: string;
27974
+ product_name: string;
27975
+ stock_mode: string;
27976
+ }[];
27977
+ };
26994
27978
  floriday_effective_price: {
26995
27979
  Args: {
26996
27980
  _buyer_id: string;
@@ -27249,6 +28233,18 @@ export type Database = {
27249
28233
  updated_at: string;
27250
28234
  }[];
27251
28235
  };
28236
+ get_product_structure_totals: {
28237
+ Args: {
28238
+ p_product_id: string;
28239
+ };
28240
+ Returns: Json;
28241
+ };
28242
+ get_product_structure_totals_batch: {
28243
+ Args: {
28244
+ p_product_ids: string[];
28245
+ };
28246
+ Returns: Json[];
28247
+ };
27252
28248
  get_room_busy_windows: {
27253
28249
  Args: {
27254
28250
  p_from: string;
@@ -27672,6 +28668,16 @@ export type Database = {
27672
28668
  };
27673
28669
  Returns: number;
27674
28670
  };
28671
+ inventory_inline_budget_ok: {
28672
+ Args: never;
28673
+ Returns: boolean;
28674
+ };
28675
+ invoice_auto_concept_for_work_order: {
28676
+ Args: {
28677
+ _wo_id: string;
28678
+ };
28679
+ Returns: undefined;
28680
+ };
27675
28681
  invoice_branding_snapshot: {
27676
28682
  Args: never;
27677
28683
  Returns: Json;
@@ -27980,6 +28986,14 @@ export type Database = {
27980
28986
  };
27981
28987
  Returns: Json;
27982
28988
  };
28989
+ logistics_base_url_check_status: {
28990
+ Args: never;
28991
+ Returns: Json;
28992
+ };
28993
+ logistics_base_url_checks_resolve: {
28994
+ Args: never;
28995
+ Returns: number;
28996
+ };
27983
28997
  logistics_block_reason_code: {
27984
28998
  Args: {
27985
28999
  p_details?: Json;
@@ -28675,6 +29689,20 @@ export type Database = {
28675
29689
  };
28676
29690
  Returns: Json;
28677
29691
  };
29692
+ logistics_expand_line: {
29693
+ Args: {
29694
+ p_depth?: number;
29695
+ p_path?: string[];
29696
+ p_product_id: string;
29697
+ p_qty: number;
29698
+ };
29699
+ Returns: {
29700
+ kind: string;
29701
+ note: string;
29702
+ qty: number;
29703
+ ref: string;
29704
+ }[];
29705
+ };
28678
29706
  logistics_fail_task: {
28679
29707
  Args: {
28680
29708
  p_error: string;
@@ -28878,6 +29906,13 @@ export type Database = {
28878
29906
  Args: never;
28879
29907
  Returns: number;
28880
29908
  };
29909
+ logistics_is_engine_response: {
29910
+ Args: {
29911
+ p_content: string;
29912
+ p_status: number;
29913
+ };
29914
+ Returns: boolean;
29915
+ };
28881
29916
  logistics_is_pick_workday: {
28882
29917
  Args: {
28883
29918
  p_date: string;
@@ -29067,6 +30102,18 @@ export type Database = {
29067
30102
  };
29068
30103
  Returns: boolean;
29069
30104
  };
30105
+ logistics_order_line_allocation: {
30106
+ Args: {
30107
+ p_order_item_id: string;
30108
+ };
30109
+ Returns: {
30110
+ group_id: string;
30111
+ note: string;
30112
+ qty: number;
30113
+ source: string;
30114
+ trade_item_key: string;
30115
+ }[];
30116
+ };
29070
30117
  logistics_order_line_duplicates: {
29071
30118
  Args: {
29072
30119
  p_order_id: string;
@@ -29609,6 +30656,12 @@ export type Database = {
29609
30656
  };
29610
30657
  Returns: Json;
29611
30658
  };
30659
+ logistics_reserved_key: {
30660
+ Args: {
30661
+ p_key: string;
30662
+ };
30663
+ Returns: string;
30664
+ };
29612
30665
  logistics_reserved_stock_nightly: {
29613
30666
  Args: never;
29614
30667
  Returns: undefined;
@@ -29896,6 +30949,10 @@ export type Database = {
29896
30949
  Args: never;
29897
30950
  Returns: Json;
29898
30951
  };
30952
+ logistics_tick_base_url_check: {
30953
+ Args: never;
30954
+ Returns: Json;
30955
+ };
29899
30956
  logistics_tick_calls_resolve: {
29900
30957
  Args: never;
29901
30958
  Returns: number;
@@ -31048,6 +32105,31 @@ export type Database = {
31048
32105
  };
31049
32106
  Returns: undefined;
31050
32107
  };
32108
+ plan_standby_batch: {
32109
+ Args: {
32110
+ _items: Json;
32111
+ _notes: string;
32112
+ _remove_ids?: string[];
32113
+ _soort: string;
32114
+ };
32115
+ Returns: {
32116
+ created_at: string;
32117
+ created_by: string | null;
32118
+ employee_id: string;
32119
+ end_date: string;
32120
+ id: string;
32121
+ notes: string | null;
32122
+ soort: string;
32123
+ start_date: string;
32124
+ updated_at: string;
32125
+ }[];
32126
+ SetofOptions: {
32127
+ from: "*";
32128
+ to: "standby_planning";
32129
+ isOneToOne: false;
32130
+ isSetofReturn: true;
32131
+ };
32132
+ };
31051
32133
  planning_apply_schedule_updates: {
31052
32134
  Args: {
31053
32135
  _updates: Json;
@@ -31183,6 +32265,12 @@ export type Database = {
31183
32265
  };
31184
32266
  Returns: Json;
31185
32267
  };
32268
+ process_inventory_recompute_queue: {
32269
+ Args: {
32270
+ p_limit?: number;
32271
+ };
32272
+ Returns: number;
32273
+ };
31186
32274
  process_logistics_event: {
31187
32275
  Args: {
31188
32276
  p_event_id: string;
@@ -31197,6 +32285,80 @@ export type Database = {
31197
32285
  };
31198
32286
  Returns: Json;
31199
32287
  };
32288
+ product_active_group_id: {
32289
+ Args: {
32290
+ p_product_id: string;
32291
+ };
32292
+ Returns: string;
32293
+ };
32294
+ product_id_from_ref: {
32295
+ Args: {
32296
+ p_ref: string;
32297
+ };
32298
+ Returns: string;
32299
+ };
32300
+ product_is_set: {
32301
+ Args: {
32302
+ p_product_id: string;
32303
+ };
32304
+ Returns: boolean;
32305
+ };
32306
+ product_label: {
32307
+ Args: {
32308
+ p_id: string;
32309
+ };
32310
+ Returns: string;
32311
+ };
32312
+ product_member_group_ids: {
32313
+ Args: {
32314
+ p_product_id: string;
32315
+ };
32316
+ Returns: string[];
32317
+ };
32318
+ product_own_available: {
32319
+ Args: {
32320
+ p_connection_id: string;
32321
+ p_product_id: string;
32322
+ };
32323
+ Returns: Record<string, unknown>;
32324
+ };
32325
+ product_set_depth_above: {
32326
+ Args: {
32327
+ p_path?: string[];
32328
+ p_product_id: string;
32329
+ };
32330
+ Returns: number;
32331
+ };
32332
+ product_set_depth_below: {
32333
+ Args: {
32334
+ p_path?: string[];
32335
+ p_product_id: string;
32336
+ };
32337
+ Returns: number;
32338
+ };
32339
+ product_structure_ancestors: {
32340
+ Args: {
32341
+ p_product_ids: string[];
32342
+ };
32343
+ Returns: string[];
32344
+ };
32345
+ product_structure_max_depth: {
32346
+ Args: never;
32347
+ Returns: number;
32348
+ };
32349
+ product_structure_path: {
32350
+ Args: {
32351
+ p_from: string;
32352
+ p_target: string;
32353
+ };
32354
+ Returns: string[];
32355
+ };
32356
+ product_type: {
32357
+ Args: {
32358
+ p_product_id: string;
32359
+ };
32360
+ Returns: string;
32361
+ };
31200
32362
  promote_floriday_customer: {
31201
32363
  Args: {
31202
32364
  _org_id: string;
@@ -31437,6 +32599,14 @@ export type Database = {
31437
32599
  };
31438
32600
  Returns: Json;
31439
32601
  };
32602
+ requeue_skipped_stock_rows: {
32603
+ Args: {
32604
+ p_connection_id: string;
32605
+ p_status: string;
32606
+ p_trade_item_id?: string;
32607
+ };
32608
+ Returns: number;
32609
+ };
31440
32610
  reset_cart_layer_positions: {
31441
32611
  Args: {
31442
32612
  p_cart_id: string;
@@ -31549,6 +32719,41 @@ export type Database = {
31549
32719
  Args: never;
31550
32720
  Returns: undefined;
31551
32721
  };
32722
+ save_belading: {
32723
+ Args: {
32724
+ p_expected_updated_at: string;
32725
+ p_packing_configuration_id: string;
32726
+ p_product_id: string;
32727
+ p_tenant_id: string;
32728
+ p_trade_item_floriday_id: string;
32729
+ p_values: Json;
32730
+ };
32731
+ Returns: Json;
32732
+ };
32733
+ save_product_group: {
32734
+ Args: {
32735
+ p_description: string;
32736
+ p_expected_updated_at: string;
32737
+ p_head_product_id: string;
32738
+ p_id: string;
32739
+ p_is_active: boolean;
32740
+ p_members: Json;
32741
+ p_name: string;
32742
+ };
32743
+ Returns: Json;
32744
+ };
32745
+ save_samenstelling: {
32746
+ Args: {
32747
+ p_components: Json;
32748
+ p_expected_updated_at: string;
32749
+ p_external: Json;
32750
+ p_packing_configuration_id: string;
32751
+ p_parent_id: string;
32752
+ p_parent_kind: string;
32753
+ p_tenant_id: string;
32754
+ };
32755
+ Returns: Json;
32756
+ };
31552
32757
  scan_cancel_kar: {
31553
32758
  Args: {
31554
32759
  p_kar_id: string;
@@ -32030,6 +33235,10 @@ export type Database = {
32030
33235
  Args: never;
32031
33236
  Returns: number;
32032
33237
  };
33238
+ server_now: {
33239
+ Args: never;
33240
+ Returns: string;
33241
+ };
32033
33242
  set_planning_status: {
32034
33243
  Args: {
32035
33244
  _id: string;
@@ -32266,6 +33475,28 @@ export type Database = {
32266
33475
  };
32267
33476
  Returns: Json;
32268
33477
  };
33478
+ twinfield_sync_apply: {
33479
+ Args: {
33480
+ _base: Json;
33481
+ _customer_id: string;
33482
+ _patch: Json;
33483
+ _uid: string;
33484
+ _version: number;
33485
+ };
33486
+ Returns: undefined;
33487
+ };
33488
+ twinfield_sync_insert: {
33489
+ Args: {
33490
+ _row: Json;
33491
+ };
33492
+ Returns: string;
33493
+ };
33494
+ twinfield_sync_mark_missing: {
33495
+ Args: {
33496
+ _ids: string[];
33497
+ };
33498
+ Returns: undefined;
33499
+ };
32269
33500
  twinfield_upsert_connection_by_account_key: {
32270
33501
  Args: {
32271
33502
  p_account_key: string;
@@ -32291,6 +33522,25 @@ export type Database = {
32291
33522
  };
32292
33523
  Returns: undefined;
32293
33524
  };
33525
+ uren_collega_agenda: {
33526
+ Args: {
33527
+ _monteur: string;
33528
+ _tot: string;
33529
+ _van: string;
33530
+ };
33531
+ Returns: {
33532
+ afwezig: string;
33533
+ datum: string;
33534
+ gepland: number;
33535
+ kort_vrij: Json;
33536
+ overuren: number;
33537
+ standby_avond: boolean;
33538
+ standby_ingepland: string;
33539
+ standby_weekend: boolean;
33540
+ werk_eind: string;
33541
+ werk_start: string;
33542
+ }[];
33543
+ };
32294
33544
  uren_dag_controle: {
32295
33545
  Args: {
32296
33546
  _datum: string;
@@ -32332,6 +33582,20 @@ export type Database = {
32332
33582
  Args: never;
32333
33583
  Returns: boolean;
32334
33584
  };
33585
+ uren_indirect_opslaan: {
33586
+ Args: {
33587
+ _datum: string;
33588
+ _minuten: number;
33589
+ _toelichting: string;
33590
+ };
33591
+ Returns: string;
33592
+ };
33593
+ uren_indirect_verwijderen: {
33594
+ Args: {
33595
+ _id: string;
33596
+ };
33597
+ Returns: undefined;
33598
+ };
32335
33599
  uren_is_beheerder: {
32336
33600
  Args: never;
32337
33601
  Returns: boolean;
@@ -32372,6 +33636,13 @@ export type Database = {
32372
33636
  roles: string[];
32373
33637
  }[];
32374
33638
  };
33639
+ uren_list_monteurs: {
33640
+ Args: never;
33641
+ Returns: {
33642
+ id: string;
33643
+ naam: string;
33644
+ }[];
33645
+ };
32375
33646
  uren_list_planner_contacten: {
32376
33647
  Args: never;
32377
33648
  Returns: {
@@ -32492,6 +33763,36 @@ export type Database = {
32492
33763
  };
32493
33764
  Returns: undefined;
32494
33765
  };
33766
+ uren_standby_opslaan: {
33767
+ Args: {
33768
+ _datums: string[];
33769
+ _soort: string;
33770
+ _tot: string;
33771
+ _van: string;
33772
+ };
33773
+ Returns: undefined;
33774
+ };
33775
+ uren_standby_overdragen: {
33776
+ Args: {
33777
+ _datum: string;
33778
+ _naar: string;
33779
+ };
33780
+ Returns: undefined;
33781
+ };
33782
+ uren_standby_ruil: {
33783
+ Args: {
33784
+ _aan: boolean;
33785
+ _datum: string;
33786
+ };
33787
+ Returns: undefined;
33788
+ };
33789
+ uren_standby_sync: {
33790
+ Args: {
33791
+ _tot: string;
33792
+ _van: string;
33793
+ };
33794
+ Returns: undefined;
33795
+ };
32495
33796
  uren_stop_time_log: {
32496
33797
  Args: {
32497
33798
  p_employee_id: string;
@@ -32767,6 +34068,12 @@ export type Database = {
32767
34068
  };
32768
34069
  Returns: Json;
32769
34070
  };
34071
+ wo_is_planned_monteur: {
34072
+ Args: {
34073
+ _werkbon_id: string;
34074
+ };
34075
+ Returns: boolean;
34076
+ };
32770
34077
  wo_list_colleague_planning: {
32771
34078
  Args: {
32772
34079
  _from: string;
@@ -32794,6 +34101,12 @@ export type Database = {
32794
34101
  };
32795
34102
  Returns: Json;
32796
34103
  };
34104
+ wo_open_standby: {
34105
+ Args: {
34106
+ _standby_id: string;
34107
+ };
34108
+ Returns: string;
34109
+ };
32797
34110
  wo_process_offerte_request: {
32798
34111
  Args: {
32799
34112
  _queue_id: string;