@flowselections/pick-schermen-kwekers 1.0.23 → 1.0.28

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 (33) hide show
  1. package/dist-lib/components/pick/CartItemRows.d.ts +14 -0
  2. package/dist-lib/components/pick/CartItemRows.d.ts.map +1 -0
  3. package/dist-lib/components/pick/CartItemRows.js +23 -0
  4. package/dist-lib/components/pick/PickScherm.d.ts.map +1 -1
  5. package/dist-lib/components/pick/PickScherm.js +196 -99
  6. package/dist-lib/integrations/supabase/auth-middleware.d.ts +4 -31332
  7. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  8. package/dist-lib/integrations/supabase/auth-middleware.js +1 -1
  9. package/dist-lib/integrations/supabase/client.d.ts +2 -31332
  10. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  11. package/dist-lib/integrations/supabase/client.server.d.ts +2 -31332
  12. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  13. package/dist-lib/integrations/supabase/types.d.ts +2742 -39
  14. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  15. package/dist-lib/lib/__tests__/pickAlreadyPrinted.test.d.ts +2 -0
  16. package/dist-lib/lib/__tests__/pickAlreadyPrinted.test.d.ts.map +1 -0
  17. package/dist-lib/lib/__tests__/pickAlreadyPrinted.test.js +31 -0
  18. package/dist-lib/lib/__tests__/pickCartResults.test.d.ts +2 -0
  19. package/dist-lib/lib/__tests__/pickCartResults.test.d.ts.map +1 -0
  20. package/dist-lib/lib/__tests__/pickCartResults.test.js +68 -0
  21. package/dist-lib/lib/__tests__/pickSetComponents.test.d.ts +2 -0
  22. package/dist-lib/lib/__tests__/pickSetComponents.test.d.ts.map +1 -0
  23. package/dist-lib/lib/__tests__/pickSetComponents.test.js +73 -0
  24. package/dist-lib/lib/pickApi.d.ts +13 -0
  25. package/dist-lib/lib/pickApi.d.ts.map +1 -1
  26. package/dist-lib/lib/pickApi.js +8 -7
  27. package/dist-lib/lib/pickCartResults.d.ts +59 -0
  28. package/dist-lib/lib/pickCartResults.d.ts.map +1 -0
  29. package/dist-lib/lib/pickCartResults.js +150 -0
  30. package/dist-lib/lib/pickTypes.d.ts +19 -0
  31. package/dist-lib/lib/pickTypes.d.ts.map +1 -1
  32. package/dist-lib/lib/pickTypes.js +30 -1
  33. package/package.json +3 -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,10 +2599,16 @@ 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;
2610
+ twinfield_uid: string | null;
2611
+ twinfield_vat_code: string | null;
2591
2612
  updated_at: string;
2592
2613
  vat_display: string | null;
2593
2614
  vat_number: string | null;
@@ -2615,6 +2636,8 @@ export type Database = {
2615
2636
  billing_email?: string | null;
2616
2637
  bio?: string | null;
2617
2638
  blocked?: boolean;
2639
+ blocked_locked?: boolean | null;
2640
+ blocked_modified?: string | null;
2618
2641
  city?: string | null;
2619
2642
  coc_number?: string | null;
2620
2643
  commercial_name?: string | null;
@@ -2624,6 +2647,9 @@ export type Database = {
2624
2647
  country?: string | null;
2625
2648
  created_at?: string;
2626
2649
  credit_limit?: number;
2650
+ credit_manager?: string | null;
2651
+ credit_manager_name?: string | null;
2652
+ credit_manager_shortname?: string | null;
2627
2653
  custom_fields?: Json;
2628
2654
  customer_class?: string | null;
2629
2655
  customer_number?: string | null;
@@ -2656,6 +2682,7 @@ export type Database = {
2656
2682
  phone?: string | null;
2657
2683
  postal_code?: string | null;
2658
2684
  product_groups?: string[];
2685
+ reminder_email?: string | null;
2659
2686
  segments?: string[];
2660
2687
  send_reminder?: string;
2661
2688
  source?: string;
@@ -2663,10 +2690,16 @@ export type Database = {
2663
2690
  sync_error?: string | null;
2664
2691
  sync_status?: string;
2665
2692
  trade_forms?: string[];
2693
+ twinfield_base_snapshot?: Json | null;
2694
+ twinfield_base_version?: number | null;
2666
2695
  twinfield_code?: string | null;
2667
2696
  twinfield_last_hash?: string | null;
2697
+ twinfield_missing_since?: string | null;
2698
+ twinfield_present?: boolean;
2668
2699
  twinfield_sync_error?: string | null;
2669
2700
  twinfield_synced_at?: string | null;
2701
+ twinfield_uid?: string | null;
2702
+ twinfield_vat_code?: string | null;
2670
2703
  updated_at?: string;
2671
2704
  vat_display?: string | null;
2672
2705
  vat_number?: string | null;
@@ -2694,6 +2727,8 @@ export type Database = {
2694
2727
  billing_email?: string | null;
2695
2728
  bio?: string | null;
2696
2729
  blocked?: boolean;
2730
+ blocked_locked?: boolean | null;
2731
+ blocked_modified?: string | null;
2697
2732
  city?: string | null;
2698
2733
  coc_number?: string | null;
2699
2734
  commercial_name?: string | null;
@@ -2703,6 +2738,9 @@ export type Database = {
2703
2738
  country?: string | null;
2704
2739
  created_at?: string;
2705
2740
  credit_limit?: number;
2741
+ credit_manager?: string | null;
2742
+ credit_manager_name?: string | null;
2743
+ credit_manager_shortname?: string | null;
2706
2744
  custom_fields?: Json;
2707
2745
  customer_class?: string | null;
2708
2746
  customer_number?: string | null;
@@ -2735,6 +2773,7 @@ export type Database = {
2735
2773
  phone?: string | null;
2736
2774
  postal_code?: string | null;
2737
2775
  product_groups?: string[];
2776
+ reminder_email?: string | null;
2738
2777
  segments?: string[];
2739
2778
  send_reminder?: string;
2740
2779
  source?: string;
@@ -2742,10 +2781,16 @@ export type Database = {
2742
2781
  sync_error?: string | null;
2743
2782
  sync_status?: string;
2744
2783
  trade_forms?: string[];
2784
+ twinfield_base_snapshot?: Json | null;
2785
+ twinfield_base_version?: number | null;
2745
2786
  twinfield_code?: string | null;
2746
2787
  twinfield_last_hash?: string | null;
2788
+ twinfield_missing_since?: string | null;
2789
+ twinfield_present?: boolean;
2747
2790
  twinfield_sync_error?: string | null;
2748
2791
  twinfield_synced_at?: string | null;
2792
+ twinfield_uid?: string | null;
2793
+ twinfield_vat_code?: string | null;
2749
2794
  updated_at?: string;
2750
2795
  vat_display?: string | null;
2751
2796
  vat_number?: string | null;
@@ -3205,6 +3250,7 @@ export type Database = {
3205
3250
  formaat_code: string;
3206
3251
  id: string;
3207
3252
  printer_id: string | null;
3253
+ printer_ontbreekt_sinds: string | null;
3208
3254
  updated_at: string;
3209
3255
  };
3210
3256
  Insert: {
@@ -3213,6 +3259,7 @@ export type Database = {
3213
3259
  formaat_code: string;
3214
3260
  id?: string;
3215
3261
  printer_id?: string | null;
3262
+ printer_ontbreekt_sinds?: string | null;
3216
3263
  updated_at?: string;
3217
3264
  };
3218
3265
  Update: {
@@ -3221,6 +3268,7 @@ export type Database = {
3221
3268
  formaat_code?: string;
3222
3269
  id?: string;
3223
3270
  printer_id?: string | null;
3271
+ printer_ontbreekt_sinds?: string | null;
3224
3272
  updated_at?: string;
3225
3273
  };
3226
3274
  Relationships: [
@@ -3570,6 +3618,7 @@ export type Database = {
3570
3618
  papierformaat: string | null;
3571
3619
  print_plek_id: string;
3572
3620
  printer_id: string | null;
3621
+ printer_ontbreekt_sinds: string | null;
3573
3622
  updated_at: string;
3574
3623
  };
3575
3624
  Insert: {
@@ -3579,6 +3628,7 @@ export type Database = {
3579
3628
  papierformaat?: string | null;
3580
3629
  print_plek_id: string;
3581
3630
  printer_id?: string | null;
3631
+ printer_ontbreekt_sinds?: string | null;
3582
3632
  updated_at?: string;
3583
3633
  };
3584
3634
  Update: {
@@ -3588,6 +3638,7 @@ export type Database = {
3588
3638
  papierformaat?: string | null;
3589
3639
  print_plek_id?: string;
3590
3640
  printer_id?: string | null;
3641
+ printer_ontbreekt_sinds?: string | null;
3591
3642
  updated_at?: string;
3592
3643
  };
3593
3644
  Relationships: [
@@ -3614,6 +3665,7 @@ export type Database = {
3614
3665
  id: string;
3615
3666
  papierformaat: string | null;
3616
3667
  printer_id: string | null;
3668
+ printer_ontbreekt_sinds: string | null;
3617
3669
  updated_at: string;
3618
3670
  werkplek: string;
3619
3671
  };
@@ -3623,6 +3675,7 @@ export type Database = {
3623
3675
  id?: string;
3624
3676
  papierformaat?: string | null;
3625
3677
  printer_id?: string | null;
3678
+ printer_ontbreekt_sinds?: string | null;
3626
3679
  updated_at?: string;
3627
3680
  werkplek: string;
3628
3681
  };
@@ -3632,6 +3685,7 @@ export type Database = {
3632
3685
  id?: string;
3633
3686
  papierformaat?: string | null;
3634
3687
  printer_id?: string | null;
3688
+ printer_ontbreekt_sinds?: string | null;
3635
3689
  updated_at?: string;
3636
3690
  werkplek?: string;
3637
3691
  };
@@ -6593,6 +6647,7 @@ export type Database = {
6593
6647
  floriday_continuous_stock_queue: {
6594
6648
  Row: {
6595
6649
  attempts: number;
6650
+ availability_sent_at: string | null;
6596
6651
  connection_id: string;
6597
6652
  created_at: string;
6598
6653
  dead_lettered_at: string | null;
@@ -6605,7 +6660,9 @@ export type Database = {
6605
6660
  next_attempt_at: string;
6606
6661
  number_of_pieces: number;
6607
6662
  product_id: string | null;
6663
+ quantity_sent_at: string | null;
6608
6664
  sent_at: string | null;
6665
+ skip_reason: string | null;
6609
6666
  status: string;
6610
6667
  stock_mode: string | null;
6611
6668
  superseded_by: string | null;
@@ -6617,6 +6674,7 @@ export type Database = {
6617
6674
  };
6618
6675
  Insert: {
6619
6676
  attempts?: number;
6677
+ availability_sent_at?: string | null;
6620
6678
  connection_id: string;
6621
6679
  created_at?: string;
6622
6680
  dead_lettered_at?: string | null;
@@ -6629,7 +6687,9 @@ export type Database = {
6629
6687
  next_attempt_at?: string;
6630
6688
  number_of_pieces?: number;
6631
6689
  product_id?: string | null;
6690
+ quantity_sent_at?: string | null;
6632
6691
  sent_at?: string | null;
6692
+ skip_reason?: string | null;
6633
6693
  status?: string;
6634
6694
  stock_mode?: string | null;
6635
6695
  superseded_by?: string | null;
@@ -6641,6 +6701,7 @@ export type Database = {
6641
6701
  };
6642
6702
  Update: {
6643
6703
  attempts?: number;
6704
+ availability_sent_at?: string | null;
6644
6705
  connection_id?: string;
6645
6706
  created_at?: string;
6646
6707
  dead_lettered_at?: string | null;
@@ -6653,7 +6714,9 @@ export type Database = {
6653
6714
  next_attempt_at?: string;
6654
6715
  number_of_pieces?: number;
6655
6716
  product_id?: string | null;
6717
+ quantity_sent_at?: string | null;
6656
6718
  sent_at?: string | null;
6719
+ skip_reason?: string | null;
6657
6720
  status?: string;
6658
6721
  stock_mode?: string | null;
6659
6722
  superseded_by?: string | null;
@@ -6851,9 +6914,15 @@ export type Database = {
6851
6914
  fetched_at: string;
6852
6915
  gln_code: string | null;
6853
6916
  is_deleted: boolean;
6917
+ mailing_address: Json | null;
6854
6918
  name: string | null;
6855
6919
  organization_id: string;
6920
+ payment_providers: Json | null;
6921
+ physical_address: Json | null;
6922
+ rfh_company_account_id: string | null;
6923
+ rfh_relation_id: string | null;
6856
6924
  sequence_number: number | null;
6925
+ updated_at: string | null;
6857
6926
  };
6858
6927
  Insert: {
6859
6928
  connection_id?: string | null;
@@ -6861,9 +6930,15 @@ export type Database = {
6861
6930
  fetched_at?: string;
6862
6931
  gln_code?: string | null;
6863
6932
  is_deleted?: boolean;
6933
+ mailing_address?: Json | null;
6864
6934
  name?: string | null;
6865
6935
  organization_id: string;
6936
+ payment_providers?: Json | null;
6937
+ physical_address?: Json | null;
6938
+ rfh_company_account_id?: string | null;
6939
+ rfh_relation_id?: string | null;
6866
6940
  sequence_number?: number | null;
6941
+ updated_at?: string | null;
6867
6942
  };
6868
6943
  Update: {
6869
6944
  connection_id?: string | null;
@@ -6871,9 +6946,15 @@ export type Database = {
6871
6946
  fetched_at?: string;
6872
6947
  gln_code?: string | null;
6873
6948
  is_deleted?: boolean;
6949
+ mailing_address?: Json | null;
6874
6950
  name?: string | null;
6875
6951
  organization_id?: string;
6952
+ payment_providers?: Json | null;
6953
+ physical_address?: Json | null;
6954
+ rfh_company_account_id?: string | null;
6955
+ rfh_relation_id?: string | null;
6876
6956
  sequence_number?: number | null;
6957
+ updated_at?: string | null;
6877
6958
  };
6878
6959
  Relationships: [
6879
6960
  {
@@ -7023,6 +7104,80 @@ export type Database = {
7023
7104
  }
7024
7105
  ];
7025
7106
  };
7107
+ floriday_document_fetch_queue: {
7108
+ Row: {
7109
+ attempts: number;
7110
+ cancelled_reason: string | null;
7111
+ completed_at: string | null;
7112
+ connection_id: string;
7113
+ created_at: string;
7114
+ document_key: string;
7115
+ environment: string;
7116
+ id: string;
7117
+ kind: string;
7118
+ last_error: string | null;
7119
+ last_http_status: number | null;
7120
+ locked_at: string | null;
7121
+ locked_by: string | null;
7122
+ max_attempts: number;
7123
+ next_attempt_at: string;
7124
+ order_ref: string | null;
7125
+ params: Json;
7126
+ status: string;
7127
+ updated_at: string;
7128
+ };
7129
+ Insert: {
7130
+ attempts?: number;
7131
+ cancelled_reason?: string | null;
7132
+ completed_at?: string | null;
7133
+ connection_id: string;
7134
+ created_at?: string;
7135
+ document_key: string;
7136
+ environment: string;
7137
+ id?: string;
7138
+ kind: string;
7139
+ last_error?: string | null;
7140
+ last_http_status?: number | null;
7141
+ locked_at?: string | null;
7142
+ locked_by?: string | null;
7143
+ max_attempts?: number;
7144
+ next_attempt_at?: string;
7145
+ order_ref?: string | null;
7146
+ params?: Json;
7147
+ status?: string;
7148
+ updated_at?: string;
7149
+ };
7150
+ Update: {
7151
+ attempts?: number;
7152
+ cancelled_reason?: string | null;
7153
+ completed_at?: string | null;
7154
+ connection_id?: string;
7155
+ created_at?: string;
7156
+ document_key?: string;
7157
+ environment?: string;
7158
+ id?: string;
7159
+ kind?: string;
7160
+ last_error?: string | null;
7161
+ last_http_status?: number | null;
7162
+ locked_at?: string | null;
7163
+ locked_by?: string | null;
7164
+ max_attempts?: number;
7165
+ next_attempt_at?: string;
7166
+ order_ref?: string | null;
7167
+ params?: Json;
7168
+ status?: string;
7169
+ updated_at?: string;
7170
+ };
7171
+ Relationships: [
7172
+ {
7173
+ foreignKeyName: "floriday_document_fetch_queue_connection_id_fkey";
7174
+ columns: ["connection_id"];
7175
+ isOneToOne: false;
7176
+ referencedRelation: "floriday_connections";
7177
+ referencedColumns: ["id"];
7178
+ }
7179
+ ];
7180
+ };
7026
7181
  floriday_fulfillment_orders_cache: {
7027
7182
  Row: {
7028
7183
  auction_date: string | null;
@@ -7087,7 +7242,9 @@ export type Database = {
7087
7242
  };
7088
7243
  floriday_inventory_settings: {
7089
7244
  Row: {
7245
+ action_reason: string | null;
7090
7246
  buffer_quantity: number;
7247
+ computed_available: number | null;
7091
7248
  connection_id: string;
7092
7249
  created_at: string;
7093
7250
  desired_availability: boolean;
@@ -7099,21 +7256,27 @@ export type Database = {
7099
7256
  last_enqueued_at: string | null;
7100
7257
  last_published_at: string | null;
7101
7258
  last_sync_error: string | null;
7259
+ limiting_product_id: string | null;
7102
7260
  manual_quantity: number | null;
7103
7261
  maximum_quantity: number | null;
7262
+ packing_size: number | null;
7104
7263
  product_id: string;
7264
+ product_type: string | null;
7105
7265
  quantity_control: string;
7106
7266
  remote_available: boolean | null;
7107
7267
  remote_checked_at: string | null;
7108
7268
  remote_quantity: number | null;
7109
7269
  stock_mode: string;
7270
+ structure_detail: Json | null;
7110
7271
  sync_status: string;
7111
7272
  updated_at: string;
7112
7273
  updated_by: string | null;
7113
7274
  user_id: string;
7114
7275
  };
7115
7276
  Insert: {
7277
+ action_reason?: string | null;
7116
7278
  buffer_quantity?: number;
7279
+ computed_available?: number | null;
7117
7280
  connection_id: string;
7118
7281
  created_at?: string;
7119
7282
  desired_availability?: boolean;
@@ -7125,21 +7288,27 @@ export type Database = {
7125
7288
  last_enqueued_at?: string | null;
7126
7289
  last_published_at?: string | null;
7127
7290
  last_sync_error?: string | null;
7291
+ limiting_product_id?: string | null;
7128
7292
  manual_quantity?: number | null;
7129
7293
  maximum_quantity?: number | null;
7294
+ packing_size?: number | null;
7130
7295
  product_id: string;
7296
+ product_type?: string | null;
7131
7297
  quantity_control?: string;
7132
7298
  remote_available?: boolean | null;
7133
7299
  remote_checked_at?: string | null;
7134
7300
  remote_quantity?: number | null;
7135
7301
  stock_mode?: string;
7302
+ structure_detail?: Json | null;
7136
7303
  sync_status?: string;
7137
7304
  updated_at?: string;
7138
7305
  updated_by?: string | null;
7139
7306
  user_id: string;
7140
7307
  };
7141
7308
  Update: {
7309
+ action_reason?: string | null;
7142
7310
  buffer_quantity?: number;
7311
+ computed_available?: number | null;
7143
7312
  connection_id?: string;
7144
7313
  created_at?: string;
7145
7314
  desired_availability?: boolean;
@@ -7151,20 +7320,39 @@ export type Database = {
7151
7320
  last_enqueued_at?: string | null;
7152
7321
  last_published_at?: string | null;
7153
7322
  last_sync_error?: string | null;
7323
+ limiting_product_id?: string | null;
7154
7324
  manual_quantity?: number | null;
7155
7325
  maximum_quantity?: number | null;
7326
+ packing_size?: number | null;
7156
7327
  product_id?: string;
7328
+ product_type?: string | null;
7157
7329
  quantity_control?: string;
7158
7330
  remote_available?: boolean | null;
7159
7331
  remote_checked_at?: string | null;
7160
7332
  remote_quantity?: number | null;
7161
7333
  stock_mode?: string;
7334
+ structure_detail?: Json | null;
7162
7335
  sync_status?: string;
7163
7336
  updated_at?: string;
7164
7337
  updated_by?: string | null;
7165
7338
  user_id?: string;
7166
7339
  };
7167
- Relationships: [];
7340
+ Relationships: [
7341
+ {
7342
+ foreignKeyName: "floriday_inventory_settings_product_id_fkey";
7343
+ columns: ["product_id"];
7344
+ isOneToOne: false;
7345
+ referencedRelation: "logistics_product_dimensions";
7346
+ referencedColumns: ["product_id"];
7347
+ },
7348
+ {
7349
+ foreignKeyName: "floriday_inventory_settings_product_id_fkey";
7350
+ columns: ["product_id"];
7351
+ isOneToOne: false;
7352
+ referencedRelation: "products";
7353
+ referencedColumns: ["id"];
7354
+ }
7355
+ ];
7168
7356
  };
7169
7357
  floriday_invoices_cache: {
7170
7358
  Row: {
@@ -7326,6 +7514,39 @@ export type Database = {
7326
7514
  }
7327
7515
  ];
7328
7516
  };
7517
+ floriday_merge_log: {
7518
+ Row: {
7519
+ action: string;
7520
+ created_at: string;
7521
+ floriday_sales_order_ids: Json;
7522
+ id: string;
7523
+ kept_order_id: string | null;
7524
+ lines: Json;
7525
+ reason: string | null;
7526
+ removed_order_id: string | null;
7527
+ };
7528
+ Insert: {
7529
+ action: string;
7530
+ created_at?: string;
7531
+ floriday_sales_order_ids?: Json;
7532
+ id?: string;
7533
+ kept_order_id?: string | null;
7534
+ lines?: Json;
7535
+ reason?: string | null;
7536
+ removed_order_id?: string | null;
7537
+ };
7538
+ Update: {
7539
+ action?: string;
7540
+ created_at?: string;
7541
+ floriday_sales_order_ids?: Json;
7542
+ id?: string;
7543
+ kept_order_id?: string | null;
7544
+ lines?: Json;
7545
+ reason?: string | null;
7546
+ removed_order_id?: string | null;
7547
+ };
7548
+ Relationships: [];
7549
+ };
7329
7550
  floriday_network_cache: {
7330
7551
  Row: {
7331
7552
  city: string | null;
@@ -7480,6 +7701,39 @@ export type Database = {
7480
7701
  }
7481
7702
  ];
7482
7703
  };
7704
+ floriday_queue_cleanup_runs: {
7705
+ Row: {
7706
+ created_at: string;
7707
+ deleted: Json;
7708
+ error: string | null;
7709
+ finished_at: string | null;
7710
+ id: string;
7711
+ more_remaining: boolean;
7712
+ orphan_settings: number | null;
7713
+ started_at: string;
7714
+ };
7715
+ Insert: {
7716
+ created_at?: string;
7717
+ deleted?: Json;
7718
+ error?: string | null;
7719
+ finished_at?: string | null;
7720
+ id?: string;
7721
+ more_remaining?: boolean;
7722
+ orphan_settings?: number | null;
7723
+ started_at?: string;
7724
+ };
7725
+ Update: {
7726
+ created_at?: string;
7727
+ deleted?: Json;
7728
+ error?: string | null;
7729
+ finished_at?: string | null;
7730
+ id?: string;
7731
+ more_remaining?: boolean;
7732
+ orphan_settings?: number | null;
7733
+ started_at?: string;
7734
+ };
7735
+ Relationships: [];
7736
+ };
7483
7737
  floriday_rate_limit_state: {
7484
7738
  Row: {
7485
7739
  bucket: string;
@@ -7498,6 +7752,60 @@ export type Database = {
7498
7752
  };
7499
7753
  Relationships: [];
7500
7754
  };
7755
+ floriday_reconcile_runs: {
7756
+ Row: {
7757
+ connection_id: string | null;
7758
+ created_at: string;
7759
+ finished_at: string | null;
7760
+ first_error: string | null;
7761
+ id: string;
7762
+ items_checked: number;
7763
+ items_drift: number;
7764
+ items_no_supply: number;
7765
+ last_http_status: number | null;
7766
+ rate_limited: number;
7767
+ read_errors: number;
7768
+ reads: number;
7769
+ response: Json | null;
7770
+ started_at: string;
7771
+ status: string;
7772
+ };
7773
+ Insert: {
7774
+ connection_id?: string | null;
7775
+ created_at?: string;
7776
+ finished_at?: string | null;
7777
+ first_error?: string | null;
7778
+ id?: string;
7779
+ items_checked?: number;
7780
+ items_drift?: number;
7781
+ items_no_supply?: number;
7782
+ last_http_status?: number | null;
7783
+ rate_limited?: number;
7784
+ read_errors?: number;
7785
+ reads?: number;
7786
+ response?: Json | null;
7787
+ started_at?: string;
7788
+ status?: string;
7789
+ };
7790
+ Update: {
7791
+ connection_id?: string | null;
7792
+ created_at?: string;
7793
+ finished_at?: string | null;
7794
+ first_error?: string | null;
7795
+ id?: string;
7796
+ items_checked?: number;
7797
+ items_drift?: number;
7798
+ items_no_supply?: number;
7799
+ last_http_status?: number | null;
7800
+ rate_limited?: number;
7801
+ read_errors?: number;
7802
+ reads?: number;
7803
+ response?: Json | null;
7804
+ started_at?: string;
7805
+ status?: string;
7806
+ };
7807
+ Relationships: [];
7808
+ };
7501
7809
  floriday_resource_schemas: {
7502
7810
  Row: {
7503
7811
  enums: Json;
@@ -7899,6 +8207,7 @@ export type Database = {
7899
8207
  floriday_trade_settings_customers_cache: {
7900
8208
  Row: {
7901
8209
  connection_id: string;
8210
+ customer_organization_id: string | null;
7902
8211
  data: Json;
7903
8212
  fetched_at: string;
7904
8213
  floriday_id: string;
@@ -7909,6 +8218,7 @@ export type Database = {
7909
8218
  };
7910
8219
  Insert: {
7911
8220
  connection_id: string;
8221
+ customer_organization_id?: string | null;
7912
8222
  data: Json;
7913
8223
  fetched_at?: string;
7914
8224
  floriday_id: string;
@@ -7919,6 +8229,7 @@ export type Database = {
7919
8229
  };
7920
8230
  Update: {
7921
8231
  connection_id?: string;
8232
+ customer_organization_id?: string | null;
7922
8233
  data?: Json;
7923
8234
  fetched_at?: string;
7924
8235
  floriday_id?: string;
@@ -8055,6 +8366,148 @@ export type Database = {
8055
8366
  }
8056
8367
  ];
8057
8368
  };
8369
+ floriday_webhook_events: {
8370
+ Row: {
8371
+ aggregate_id: string | null;
8372
+ aggregate_type: string | null;
8373
+ attempts: number;
8374
+ connection_id: string | null;
8375
+ dedupe_key: string;
8376
+ duplicate_count: number;
8377
+ event_type: string | null;
8378
+ id: string;
8379
+ last_error: string | null;
8380
+ max_attempts: number;
8381
+ message_type: string | null;
8382
+ next_attempt_at: string | null;
8383
+ payload: Json | null;
8384
+ processed_at: string | null;
8385
+ received_at: string;
8386
+ status: string;
8387
+ updated_at: string;
8388
+ };
8389
+ Insert: {
8390
+ aggregate_id?: string | null;
8391
+ aggregate_type?: string | null;
8392
+ attempts?: number;
8393
+ connection_id?: string | null;
8394
+ dedupe_key: string;
8395
+ duplicate_count?: number;
8396
+ event_type?: string | null;
8397
+ id?: string;
8398
+ last_error?: string | null;
8399
+ max_attempts?: number;
8400
+ message_type?: string | null;
8401
+ next_attempt_at?: string | null;
8402
+ payload?: Json | null;
8403
+ processed_at?: string | null;
8404
+ received_at?: string;
8405
+ status?: string;
8406
+ updated_at?: string;
8407
+ };
8408
+ Update: {
8409
+ aggregate_id?: string | null;
8410
+ aggregate_type?: string | null;
8411
+ attempts?: number;
8412
+ connection_id?: string | null;
8413
+ dedupe_key?: string;
8414
+ duplicate_count?: number;
8415
+ event_type?: string | null;
8416
+ id?: string;
8417
+ last_error?: string | null;
8418
+ max_attempts?: number;
8419
+ message_type?: string | null;
8420
+ next_attempt_at?: string | null;
8421
+ payload?: Json | null;
8422
+ processed_at?: string | null;
8423
+ received_at?: string;
8424
+ status?: string;
8425
+ updated_at?: string;
8426
+ };
8427
+ Relationships: [
8428
+ {
8429
+ foreignKeyName: "floriday_webhook_events_connection_id_fkey";
8430
+ columns: ["connection_id"];
8431
+ isOneToOne: false;
8432
+ referencedRelation: "floriday_connections";
8433
+ referencedColumns: ["id"];
8434
+ }
8435
+ ];
8436
+ };
8437
+ floriday_webhook_subscriptions: {
8438
+ Row: {
8439
+ attempts: number;
8440
+ callback_token_hash: string;
8441
+ callback_url: string;
8442
+ confirmed_at: string | null;
8443
+ connection_id: string;
8444
+ created_at: string;
8445
+ environment: string;
8446
+ id: string;
8447
+ last_attempt_at: string | null;
8448
+ last_error: string | null;
8449
+ last_error_kind: string | null;
8450
+ last_event_at: string | null;
8451
+ locked_until: string | null;
8452
+ managed_by: string;
8453
+ next_attempt_at: string | null;
8454
+ status: string;
8455
+ subscribe_url: string | null;
8456
+ subscribed_at: string;
8457
+ updated_at: string;
8458
+ };
8459
+ Insert: {
8460
+ attempts?: number;
8461
+ callback_token_hash: string;
8462
+ callback_url: string;
8463
+ confirmed_at?: string | null;
8464
+ connection_id: string;
8465
+ created_at?: string;
8466
+ environment: string;
8467
+ id?: string;
8468
+ last_attempt_at?: string | null;
8469
+ last_error?: string | null;
8470
+ last_error_kind?: string | null;
8471
+ last_event_at?: string | null;
8472
+ locked_until?: string | null;
8473
+ managed_by?: string;
8474
+ next_attempt_at?: string | null;
8475
+ status?: string;
8476
+ subscribe_url?: string | null;
8477
+ subscribed_at?: string;
8478
+ updated_at?: string;
8479
+ };
8480
+ Update: {
8481
+ attempts?: number;
8482
+ callback_token_hash?: string;
8483
+ callback_url?: string;
8484
+ confirmed_at?: string | null;
8485
+ connection_id?: string;
8486
+ created_at?: string;
8487
+ environment?: string;
8488
+ id?: string;
8489
+ last_attempt_at?: string | null;
8490
+ last_error?: string | null;
8491
+ last_error_kind?: string | null;
8492
+ last_event_at?: string | null;
8493
+ locked_until?: string | null;
8494
+ managed_by?: string;
8495
+ next_attempt_at?: string | null;
8496
+ status?: string;
8497
+ subscribe_url?: string | null;
8498
+ subscribed_at?: string;
8499
+ updated_at?: string;
8500
+ };
8501
+ Relationships: [
8502
+ {
8503
+ foreignKeyName: "floriday_webhook_subscriptions_connection_id_fkey";
8504
+ columns: ["connection_id"];
8505
+ isOneToOne: true;
8506
+ referencedRelation: "floriday_connections";
8507
+ referencedColumns: ["id"];
8508
+ }
8509
+ ];
8510
+ };
8058
8511
  floriday_write_log: {
8059
8512
  Row: {
8060
8513
  action: string;
@@ -8435,13 +8888,100 @@ export type Database = {
8435
8888
  }
8436
8889
  ];
8437
8890
  };
8438
- inventory_settings: {
8891
+ inventory_recompute_limits: {
8439
8892
  Row: {
8440
- created_at: string;
8441
- hierarchy_levels: string[];
8442
- id: string;
8443
- updated_at: string;
8444
- visible_columns: string[];
8893
+ drain_batch: number;
8894
+ id: boolean;
8895
+ import_chunk_size: number;
8896
+ import_max_bytes: number;
8897
+ import_max_rows: number;
8898
+ import_new_chunk_size: number;
8899
+ import_retention_days: number;
8900
+ max_ms_inline: number;
8901
+ max_parents_inline: number;
8902
+ queue_cleanup_batch: number;
8903
+ queue_cleanup_max_batches: number;
8904
+ queue_failed_days: number;
8905
+ queue_sent_days: number;
8906
+ queue_skipped_days: number;
8907
+ queue_superseded_days: number;
8908
+ updated_at: string;
8909
+ };
8910
+ Insert: {
8911
+ drain_batch?: number;
8912
+ id?: boolean;
8913
+ import_chunk_size?: number;
8914
+ import_max_bytes?: number;
8915
+ import_max_rows?: number;
8916
+ import_new_chunk_size?: number;
8917
+ import_retention_days?: number;
8918
+ max_ms_inline?: number;
8919
+ max_parents_inline?: number;
8920
+ queue_cleanup_batch?: number;
8921
+ queue_cleanup_max_batches?: number;
8922
+ queue_failed_days?: number;
8923
+ queue_sent_days?: number;
8924
+ queue_skipped_days?: number;
8925
+ queue_superseded_days?: number;
8926
+ updated_at?: string;
8927
+ };
8928
+ Update: {
8929
+ drain_batch?: number;
8930
+ id?: boolean;
8931
+ import_chunk_size?: number;
8932
+ import_max_bytes?: number;
8933
+ import_max_rows?: number;
8934
+ import_new_chunk_size?: number;
8935
+ import_retention_days?: number;
8936
+ max_ms_inline?: number;
8937
+ max_parents_inline?: number;
8938
+ queue_cleanup_batch?: number;
8939
+ queue_cleanup_max_batches?: number;
8940
+ queue_failed_days?: number;
8941
+ queue_sent_days?: number;
8942
+ queue_skipped_days?: number;
8943
+ queue_superseded_days?: number;
8944
+ updated_at?: string;
8945
+ };
8946
+ Relationships: [];
8947
+ };
8948
+ inventory_recompute_queue: {
8949
+ Row: {
8950
+ attempts: number;
8951
+ created_at: string;
8952
+ enqueued_at: string;
8953
+ last_error: string | null;
8954
+ product_id: string;
8955
+ reason: string | null;
8956
+ updated_at: string;
8957
+ };
8958
+ Insert: {
8959
+ attempts?: number;
8960
+ created_at?: string;
8961
+ enqueued_at?: string;
8962
+ last_error?: string | null;
8963
+ product_id: string;
8964
+ reason?: string | null;
8965
+ updated_at?: string;
8966
+ };
8967
+ Update: {
8968
+ attempts?: number;
8969
+ created_at?: string;
8970
+ enqueued_at?: string;
8971
+ last_error?: string | null;
8972
+ product_id?: string;
8973
+ reason?: string | null;
8974
+ updated_at?: string;
8975
+ };
8976
+ Relationships: [];
8977
+ };
8978
+ inventory_settings: {
8979
+ Row: {
8980
+ created_at: string;
8981
+ hierarchy_levels: string[];
8982
+ id: string;
8983
+ updated_at: string;
8984
+ visible_columns: string[];
8445
8985
  };
8446
8986
  Insert: {
8447
8987
  created_at?: string;
@@ -8627,8 +9167,16 @@ export type Database = {
8627
9167
  client_request_id: string;
8628
9168
  completed_at: string | null;
8629
9169
  created_at: string;
9170
+ customer_code: string | null;
8630
9171
  error_message: string | null;
8631
9172
  invoice_number: string | null;
9173
+ invoice_type: string | null;
9174
+ last_known_number: number | null;
9175
+ last_search_at: string | null;
9176
+ phase: string | null;
9177
+ reference: string | null;
9178
+ search_attempts: number;
9179
+ sending_at: string | null;
8632
9180
  status: string;
8633
9181
  user_id: string;
8634
9182
  };
@@ -8637,8 +9185,16 @@ export type Database = {
8637
9185
  client_request_id: string;
8638
9186
  completed_at?: string | null;
8639
9187
  created_at?: string;
9188
+ customer_code?: string | null;
8640
9189
  error_message?: string | null;
8641
9190
  invoice_number?: string | null;
9191
+ invoice_type?: string | null;
9192
+ last_known_number?: number | null;
9193
+ last_search_at?: string | null;
9194
+ phase?: string | null;
9195
+ reference?: string | null;
9196
+ search_attempts?: number;
9197
+ sending_at?: string | null;
8642
9198
  status?: string;
8643
9199
  user_id: string;
8644
9200
  };
@@ -8647,8 +9203,16 @@ export type Database = {
8647
9203
  client_request_id?: string;
8648
9204
  completed_at?: string | null;
8649
9205
  created_at?: string;
9206
+ customer_code?: string | null;
8650
9207
  error_message?: string | null;
8651
9208
  invoice_number?: string | null;
9209
+ invoice_type?: string | null;
9210
+ last_known_number?: number | null;
9211
+ last_search_at?: string | null;
9212
+ phase?: string | null;
9213
+ reference?: string | null;
9214
+ search_attempts?: number;
9215
+ sending_at?: string | null;
8652
9216
  status?: string;
8653
9217
  user_id?: string;
8654
9218
  };
@@ -9615,6 +10179,59 @@ export type Database = {
9615
10179
  };
9616
10180
  Relationships: [];
9617
10181
  };
10182
+ itk_offerte_acceptaties: {
10183
+ Row: {
10184
+ accepted_at: string;
10185
+ akkoordgever_email: string;
10186
+ akkoordgever_naam: string;
10187
+ akkoordverklaring: string;
10188
+ id: string;
10189
+ inhoud_hash: string;
10190
+ ip_address: unknown;
10191
+ offerte_id: string;
10192
+ offerte_number: string;
10193
+ offerte_snapshot: Json;
10194
+ user_agent: string | null;
10195
+ versie: string;
10196
+ };
10197
+ Insert: {
10198
+ accepted_at?: string;
10199
+ akkoordgever_email: string;
10200
+ akkoordgever_naam: string;
10201
+ akkoordverklaring: string;
10202
+ id?: string;
10203
+ inhoud_hash: string;
10204
+ ip_address?: unknown;
10205
+ offerte_id: string;
10206
+ offerte_number: string;
10207
+ offerte_snapshot: Json;
10208
+ user_agent?: string | null;
10209
+ versie: string;
10210
+ };
10211
+ Update: {
10212
+ accepted_at?: string;
10213
+ akkoordgever_email?: string;
10214
+ akkoordgever_naam?: string;
10215
+ akkoordverklaring?: string;
10216
+ id?: string;
10217
+ inhoud_hash?: string;
10218
+ ip_address?: unknown;
10219
+ offerte_id?: string;
10220
+ offerte_number?: string;
10221
+ offerte_snapshot?: Json;
10222
+ user_agent?: string | null;
10223
+ versie?: string;
10224
+ };
10225
+ Relationships: [
10226
+ {
10227
+ foreignKeyName: "itk_offerte_acceptaties_offerte_id_fkey";
10228
+ columns: ["offerte_id"];
10229
+ isOneToOne: true;
10230
+ referencedRelation: "itk_offertes";
10231
+ referencedColumns: ["id"];
10232
+ }
10233
+ ];
10234
+ };
9618
10235
  itk_offerte_events: {
9619
10236
  Row: {
9620
10237
  created_at: string;
@@ -9723,6 +10340,7 @@ export type Database = {
9723
10340
  id: string;
9724
10341
  singleton: boolean;
9725
10342
  updated_at: string;
10343
+ voorwaarden: string | null;
9726
10344
  };
9727
10345
  Insert: {
9728
10346
  auto_convert_binnen_mandaat?: boolean;
@@ -9733,6 +10351,7 @@ export type Database = {
9733
10351
  id?: string;
9734
10352
  singleton?: boolean;
9735
10353
  updated_at?: string;
10354
+ voorwaarden?: string | null;
9736
10355
  };
9737
10356
  Update: {
9738
10357
  auto_convert_binnen_mandaat?: boolean;
@@ -9743,6 +10362,7 @@ export type Database = {
9743
10362
  id?: string;
9744
10363
  singleton?: boolean;
9745
10364
  updated_at?: string;
10365
+ voorwaarden?: string | null;
9746
10366
  };
9747
10367
  Relationships: [];
9748
10368
  };
@@ -9837,6 +10457,7 @@ export type Database = {
9837
10457
  itk_offertes: {
9838
10458
  Row: {
9839
10459
  aandachtspunten: string | null;
10460
+ acceptance_id: string | null;
9840
10461
  ai_generated: boolean;
9841
10462
  approved_at: string | null;
9842
10463
  binnen_mandaat: boolean;
@@ -9855,6 +10476,11 @@ export type Database = {
9855
10476
  onderwerp: string | null;
9856
10477
  rejected_at: string | null;
9857
10478
  sent_at: string | null;
10479
+ sign_token: string;
10480
+ signature_data: string | null;
10481
+ signed_at: string | null;
10482
+ signer_email: string | null;
10483
+ signer_name: string | null;
9858
10484
  source_number: string | null;
9859
10485
  source_ref: string | null;
9860
10486
  source_type: string;
@@ -9869,11 +10495,13 @@ export type Database = {
9869
10495
  viewed_at: string | null;
9870
10496
  volgnummer: number | null;
9871
10497
  voorwaarden: string | null;
10498
+ werkbon_concept: Json | null;
9872
10499
  werkbon_id: string | null;
9873
10500
  work_location_id: string | null;
9874
10501
  };
9875
10502
  Insert: {
9876
10503
  aandachtspunten?: string | null;
10504
+ acceptance_id?: string | null;
9877
10505
  ai_generated?: boolean;
9878
10506
  approved_at?: string | null;
9879
10507
  binnen_mandaat?: boolean;
@@ -9892,6 +10520,11 @@ export type Database = {
9892
10520
  onderwerp?: string | null;
9893
10521
  rejected_at?: string | null;
9894
10522
  sent_at?: string | null;
10523
+ sign_token?: string;
10524
+ signature_data?: string | null;
10525
+ signed_at?: string | null;
10526
+ signer_email?: string | null;
10527
+ signer_name?: string | null;
9895
10528
  source_number?: string | null;
9896
10529
  source_ref?: string | null;
9897
10530
  source_type?: string;
@@ -9906,11 +10539,13 @@ export type Database = {
9906
10539
  viewed_at?: string | null;
9907
10540
  volgnummer?: number | null;
9908
10541
  voorwaarden?: string | null;
10542
+ werkbon_concept?: Json | null;
9909
10543
  werkbon_id?: string | null;
9910
10544
  work_location_id?: string | null;
9911
10545
  };
9912
10546
  Update: {
9913
10547
  aandachtspunten?: string | null;
10548
+ acceptance_id?: string | null;
9914
10549
  ai_generated?: boolean;
9915
10550
  approved_at?: string | null;
9916
10551
  binnen_mandaat?: boolean;
@@ -9929,6 +10564,11 @@ export type Database = {
9929
10564
  onderwerp?: string | null;
9930
10565
  rejected_at?: string | null;
9931
10566
  sent_at?: string | null;
10567
+ sign_token?: string;
10568
+ signature_data?: string | null;
10569
+ signed_at?: string | null;
10570
+ signer_email?: string | null;
10571
+ signer_name?: string | null;
9932
10572
  source_number?: string | null;
9933
10573
  source_ref?: string | null;
9934
10574
  source_type?: string;
@@ -9943,10 +10583,18 @@ export type Database = {
9943
10583
  viewed_at?: string | null;
9944
10584
  volgnummer?: number | null;
9945
10585
  voorwaarden?: string | null;
10586
+ werkbon_concept?: Json | null;
9946
10587
  werkbon_id?: string | null;
9947
10588
  work_location_id?: string | null;
9948
10589
  };
9949
10590
  Relationships: [
10591
+ {
10592
+ foreignKeyName: "itk_offertes_acceptance_id_fkey";
10593
+ columns: ["acceptance_id"];
10594
+ isOneToOne: false;
10595
+ referencedRelation: "itk_offerte_acceptaties";
10596
+ referencedColumns: ["id"];
10597
+ },
9950
10598
  {
9951
10599
  foreignKeyName: "itk_offertes_contact_id_fkey";
9952
10600
  columns: ["contact_id"];
@@ -10525,6 +11173,120 @@ export type Database = {
10525
11173
  };
10526
11174
  Relationships: [];
10527
11175
  };
11176
+ logistics_allocation_fingerprint: {
11177
+ Row: {
11178
+ created_at: string;
11179
+ fingerprint: string;
11180
+ last_replan_at: string | null;
11181
+ order_id: string;
11182
+ pending_since: string | null;
11183
+ updated_at: string;
11184
+ };
11185
+ Insert: {
11186
+ created_at?: string;
11187
+ fingerprint: string;
11188
+ last_replan_at?: string | null;
11189
+ order_id: string;
11190
+ pending_since?: string | null;
11191
+ updated_at?: string;
11192
+ };
11193
+ Update: {
11194
+ created_at?: string;
11195
+ fingerprint?: string;
11196
+ last_replan_at?: string | null;
11197
+ order_id?: string;
11198
+ pending_since?: string | null;
11199
+ updated_at?: string;
11200
+ };
11201
+ Relationships: [];
11202
+ };
11203
+ logistics_autolink_audit: {
11204
+ Row: {
11205
+ created_at: string;
11206
+ id: string;
11207
+ match_type: string;
11208
+ order_id: string | null;
11209
+ order_item_id: string | null;
11210
+ order_source: string | null;
11211
+ product_floriday_id: string | null;
11212
+ product_id: string | null;
11213
+ product_name: string | null;
11214
+ };
11215
+ Insert: {
11216
+ created_at?: string;
11217
+ id?: string;
11218
+ match_type: string;
11219
+ order_id?: string | null;
11220
+ order_item_id?: string | null;
11221
+ order_source?: string | null;
11222
+ product_floriday_id?: string | null;
11223
+ product_id?: string | null;
11224
+ product_name?: string | null;
11225
+ };
11226
+ Update: {
11227
+ created_at?: string;
11228
+ id?: string;
11229
+ match_type?: string;
11230
+ order_id?: string | null;
11231
+ order_item_id?: string | null;
11232
+ order_source?: string | null;
11233
+ product_floriday_id?: string | null;
11234
+ product_id?: string | null;
11235
+ product_name?: string | null;
11236
+ };
11237
+ Relationships: [];
11238
+ };
11239
+ logistics_base_url_checks: {
11240
+ Row: {
11241
+ candidate_host: string | null;
11242
+ candidate_url: string | null;
11243
+ detail: string | null;
11244
+ id: number;
11245
+ ping_ok: boolean | null;
11246
+ ping_request_id: number | null;
11247
+ ping_status: number | null;
11248
+ previous_url: string | null;
11249
+ resolved_at: string | null;
11250
+ route_ok: boolean | null;
11251
+ route_request_id: number | null;
11252
+ route_status: number | null;
11253
+ started_at: string;
11254
+ status: string;
11255
+ };
11256
+ Insert: {
11257
+ candidate_host?: string | null;
11258
+ candidate_url?: string | null;
11259
+ detail?: string | null;
11260
+ id?: never;
11261
+ ping_ok?: boolean | null;
11262
+ ping_request_id?: number | null;
11263
+ ping_status?: number | null;
11264
+ previous_url?: string | null;
11265
+ resolved_at?: string | null;
11266
+ route_ok?: boolean | null;
11267
+ route_request_id?: number | null;
11268
+ route_status?: number | null;
11269
+ started_at?: string;
11270
+ status: string;
11271
+ };
11272
+ Update: {
11273
+ candidate_host?: string | null;
11274
+ candidate_url?: string | null;
11275
+ detail?: string | null;
11276
+ id?: never;
11277
+ ping_ok?: boolean | null;
11278
+ ping_request_id?: number | null;
11279
+ ping_status?: number | null;
11280
+ previous_url?: string | null;
11281
+ resolved_at?: string | null;
11282
+ route_ok?: boolean | null;
11283
+ route_request_id?: number | null;
11284
+ route_status?: number | null;
11285
+ started_at?: string;
11286
+ status?: string;
11287
+ };
11288
+ Relationships: [];
11289
+ };
10528
11290
  logistics_capacity_alerts: {
10529
11291
  Row: {
10530
11292
  available_minutes: number;
@@ -11423,6 +12185,60 @@ export type Database = {
11423
12185
  };
11424
12186
  Relationships: [];
11425
12187
  };
12188
+ logistics_order_merge_lines: {
12189
+ Row: {
12190
+ from_order_id: string;
12191
+ from_order_number: string | null;
12192
+ group_key: string;
12193
+ id: string;
12194
+ merged_at: string;
12195
+ order_item_id: string;
12196
+ ordered_at: string | null;
12197
+ product_id: string | null;
12198
+ product_name: string | null;
12199
+ quantity: number | null;
12200
+ reason: string;
12201
+ sales_order_id: string | null;
12202
+ source_line_key: string | null;
12203
+ to_order_id: string;
12204
+ to_order_number: string | null;
12205
+ };
12206
+ Insert: {
12207
+ from_order_id: string;
12208
+ from_order_number?: string | null;
12209
+ group_key: string;
12210
+ id?: string;
12211
+ merged_at?: string;
12212
+ order_item_id: string;
12213
+ ordered_at?: string | null;
12214
+ product_id?: string | null;
12215
+ product_name?: string | null;
12216
+ quantity?: number | null;
12217
+ reason: string;
12218
+ sales_order_id?: string | null;
12219
+ source_line_key?: string | null;
12220
+ to_order_id: string;
12221
+ to_order_number?: string | null;
12222
+ };
12223
+ Update: {
12224
+ from_order_id?: string;
12225
+ from_order_number?: string | null;
12226
+ group_key?: string;
12227
+ id?: string;
12228
+ merged_at?: string;
12229
+ order_item_id?: string;
12230
+ ordered_at?: string | null;
12231
+ product_id?: string | null;
12232
+ product_name?: string | null;
12233
+ quantity?: number | null;
12234
+ reason?: string;
12235
+ sales_order_id?: string | null;
12236
+ source_line_key?: string | null;
12237
+ to_order_id?: string;
12238
+ to_order_number?: string | null;
12239
+ };
12240
+ Relationships: [];
12241
+ };
11426
12242
  logistics_order_merges: {
11427
12243
  Row: {
11428
12244
  group_key: string;
@@ -11993,6 +12809,45 @@ export type Database = {
11993
12809
  };
11994
12810
  Relationships: [];
11995
12811
  };
12812
+ logistics_reservation_allocations: {
12813
+ Row: {
12814
+ computed_at: string;
12815
+ created_at: string;
12816
+ group_id: string | null;
12817
+ id: string;
12818
+ line_qty: number | null;
12819
+ order_item_id: string;
12820
+ qty: number;
12821
+ source: string;
12822
+ trade_item_key: string;
12823
+ updated_at: string;
12824
+ };
12825
+ Insert: {
12826
+ computed_at?: string;
12827
+ created_at?: string;
12828
+ group_id?: string | null;
12829
+ id?: string;
12830
+ line_qty?: number | null;
12831
+ order_item_id: string;
12832
+ qty: number;
12833
+ source: string;
12834
+ trade_item_key: string;
12835
+ updated_at?: string;
12836
+ };
12837
+ Update: {
12838
+ computed_at?: string;
12839
+ created_at?: string;
12840
+ group_id?: string | null;
12841
+ id?: string;
12842
+ line_qty?: number | null;
12843
+ order_item_id?: string;
12844
+ qty?: number;
12845
+ source?: string;
12846
+ trade_item_key?: string;
12847
+ updated_at?: string;
12848
+ };
12849
+ Relationships: [];
12850
+ };
11996
12851
  logistics_rule_configs: {
11997
12852
  Row: {
11998
12853
  created_at: string;
@@ -12137,6 +12992,7 @@ export type Database = {
12137
12992
  slip_job_id: string;
12138
12993
  status: string;
12139
12994
  updated_at: string;
12995
+ voor_herstel: boolean;
12140
12996
  };
12141
12997
  Insert: {
12142
12998
  attempts?: number;
@@ -12157,6 +13013,7 @@ export type Database = {
12157
13013
  slip_job_id: string;
12158
13014
  status?: string;
12159
13015
  updated_at?: string;
13016
+ voor_herstel?: boolean;
12160
13017
  };
12161
13018
  Update: {
12162
13019
  attempts?: number;
@@ -12177,6 +13034,7 @@ export type Database = {
12177
13034
  slip_job_id?: string;
12178
13035
  status?: string;
12179
13036
  updated_at?: string;
13037
+ voor_herstel?: boolean;
12180
13038
  };
12181
13039
  Relationships: [];
12182
13040
  };
@@ -12504,6 +13362,48 @@ export type Database = {
12504
13362
  }
12505
13363
  ];
12506
13364
  };
13365
+ logistics_tick_calls: {
13366
+ Row: {
13367
+ called_at: string;
13368
+ engine_ok: boolean | null;
13369
+ error: string | null;
13370
+ id: number;
13371
+ module_project: boolean | null;
13372
+ module_version: string | null;
13373
+ request_id: number | null;
13374
+ resolved_at: string | null;
13375
+ skipped_reason: string | null;
13376
+ status_code: number | null;
13377
+ target_host: string | null;
13378
+ };
13379
+ Insert: {
13380
+ called_at?: string;
13381
+ engine_ok?: boolean | null;
13382
+ error?: string | null;
13383
+ id?: never;
13384
+ module_project?: boolean | null;
13385
+ module_version?: string | null;
13386
+ request_id?: number | null;
13387
+ resolved_at?: string | null;
13388
+ skipped_reason?: string | null;
13389
+ status_code?: number | null;
13390
+ target_host?: string | null;
13391
+ };
13392
+ Update: {
13393
+ called_at?: string;
13394
+ engine_ok?: boolean | null;
13395
+ error?: string | null;
13396
+ id?: never;
13397
+ module_project?: boolean | null;
13398
+ module_version?: string | null;
13399
+ request_id?: number | null;
13400
+ resolved_at?: string | null;
13401
+ skipped_reason?: string | null;
13402
+ status_code?: number | null;
13403
+ target_host?: string | null;
13404
+ };
13405
+ Relationships: [];
13406
+ };
12507
13407
  logistics_tick_heartbeat: {
12508
13408
  Row: {
12509
13409
  id: boolean;
@@ -13688,6 +14588,7 @@ export type Database = {
13688
14588
  Row: {
13689
14589
  color: string | null;
13690
14590
  created_at: string;
14591
+ functie: string | null;
13691
14592
  hours_fri: number | null;
13692
14593
  hours_mon: number | null;
13693
14594
  hours_thu: number | null;
@@ -13704,6 +14605,7 @@ export type Database = {
13704
14605
  Insert: {
13705
14606
  color?: string | null;
13706
14607
  created_at?: string;
14608
+ functie?: string | null;
13707
14609
  hours_fri?: number | null;
13708
14610
  hours_mon?: number | null;
13709
14611
  hours_thu?: number | null;
@@ -13720,6 +14622,7 @@ export type Database = {
13720
14622
  Update: {
13721
14623
  color?: string | null;
13722
14624
  created_at?: string;
14625
+ functie?: string | null;
13723
14626
  hours_fri?: number | null;
13724
14627
  hours_mon?: number | null;
13725
14628
  hours_thu?: number | null;
@@ -14692,6 +15595,7 @@ export type Database = {
14692
15595
  Row: {
14693
15596
  boxes: number | null;
14694
15597
  cart_id: string;
15598
+ components: Json | null;
14695
15599
  crates: number;
14696
15600
  crates_in_layer: number | null;
14697
15601
  crates_per_layer: number;
@@ -14710,6 +15614,7 @@ export type Database = {
14710
15614
  Insert: {
14711
15615
  boxes?: number | null;
14712
15616
  cart_id: string;
15617
+ components?: Json | null;
14713
15618
  crates: number;
14714
15619
  crates_in_layer?: number | null;
14715
15620
  crates_per_layer?: number;
@@ -14728,6 +15633,7 @@ export type Database = {
14728
15633
  Update: {
14729
15634
  boxes?: number | null;
14730
15635
  cart_id?: string;
15636
+ components?: Json | null;
14731
15637
  crates?: number;
14732
15638
  crates_in_layer?: number | null;
14733
15639
  crates_per_layer?: number;
@@ -15141,6 +16047,9 @@ export type Database = {
15141
16047
  product_id: string | null;
15142
16048
  product_name: string;
15143
16049
  quantity: number;
16050
+ quarantine_reason: string | null;
16051
+ quarantined_at: string | null;
16052
+ quarantined_into_order_id: string | null;
15144
16053
  source_line_key: string | null;
15145
16054
  unit: string;
15146
16055
  unit_price: number | null;
@@ -15157,6 +16066,9 @@ export type Database = {
15157
16066
  product_id?: string | null;
15158
16067
  product_name: string;
15159
16068
  quantity?: number;
16069
+ quarantine_reason?: string | null;
16070
+ quarantined_at?: string | null;
16071
+ quarantined_into_order_id?: string | null;
15160
16072
  source_line_key?: string | null;
15161
16073
  unit?: string;
15162
16074
  unit_price?: number | null;
@@ -15173,6 +16085,9 @@ export type Database = {
15173
16085
  product_id?: string | null;
15174
16086
  product_name?: string;
15175
16087
  quantity?: number;
16088
+ quarantine_reason?: string | null;
16089
+ quarantined_at?: string | null;
16090
+ quarantined_into_order_id?: string | null;
15176
16091
  source_line_key?: string | null;
15177
16092
  unit?: string;
15178
16093
  unit_price?: number | null;
@@ -16529,31 +17444,64 @@ export type Database = {
16529
17444
  };
16530
17445
  Relationships: [];
16531
17446
  };
16532
- pick_task_document_types: {
17447
+ pick_taken: {
16533
17448
  Row: {
17449
+ bron_module: string | null;
16534
17450
  created_at: string;
16535
- document_type_id: string;
16536
17451
  id: string;
16537
- task_id: string;
17452
+ klantnaam: string | null;
17453
+ opmerking: string | null;
17454
+ order_ref: string | null;
17455
+ status: string;
17456
+ updated_at: string;
16538
17457
  };
16539
17458
  Insert: {
17459
+ bron_module?: string | null;
16540
17460
  created_at?: string;
16541
- document_type_id: string;
16542
17461
  id?: string;
16543
- task_id: string;
17462
+ klantnaam?: string | null;
17463
+ opmerking?: string | null;
17464
+ order_ref?: string | null;
17465
+ status?: string;
17466
+ updated_at?: string;
16544
17467
  };
16545
17468
  Update: {
17469
+ bron_module?: string | null;
16546
17470
  created_at?: string;
16547
- document_type_id?: string;
16548
17471
  id?: string;
16549
- task_id?: string;
17472
+ klantnaam?: string | null;
17473
+ opmerking?: string | null;
17474
+ order_ref?: string | null;
17475
+ status?: string;
17476
+ updated_at?: string;
16550
17477
  };
16551
- Relationships: [
16552
- {
16553
- foreignKeyName: "pick_task_document_types_document_type_id_fkey";
16554
- columns: ["document_type_id"];
16555
- isOneToOne: false;
16556
- referencedRelation: "pick_document_types";
17478
+ Relationships: [];
17479
+ };
17480
+ pick_task_document_types: {
17481
+ Row: {
17482
+ created_at: string;
17483
+ document_type_id: string;
17484
+ id: string;
17485
+ task_id: string;
17486
+ };
17487
+ Insert: {
17488
+ created_at?: string;
17489
+ document_type_id: string;
17490
+ id?: string;
17491
+ task_id: string;
17492
+ };
17493
+ Update: {
17494
+ created_at?: string;
17495
+ document_type_id?: string;
17496
+ id?: string;
17497
+ task_id?: string;
17498
+ };
17499
+ Relationships: [
17500
+ {
17501
+ foreignKeyName: "pick_task_document_types_document_type_id_fkey";
17502
+ columns: ["document_type_id"];
17503
+ isOneToOne: false;
17504
+ referencedRelation: "pick_document_types";
16557
17505
  referencedColumns: ["id"];
16558
17506
  },
16559
17507
  {
@@ -16652,11 +17600,48 @@ export type Database = {
16652
17600
  };
16653
17601
  Relationships: [];
16654
17602
  };
17603
+ planning_absence_notices: {
17604
+ Row: {
17605
+ created_at: string;
17606
+ day: string;
17607
+ handled_at: string | null;
17608
+ handled_by: string | null;
17609
+ id: string;
17610
+ items: Json;
17611
+ kind: string;
17612
+ monteur_id: string;
17613
+ updated_at: string;
17614
+ };
17615
+ Insert: {
17616
+ created_at?: string;
17617
+ day: string;
17618
+ handled_at?: string | null;
17619
+ handled_by?: string | null;
17620
+ id?: string;
17621
+ items?: Json;
17622
+ kind?: string;
17623
+ monteur_id: string;
17624
+ updated_at?: string;
17625
+ };
17626
+ Update: {
17627
+ created_at?: string;
17628
+ day?: string;
17629
+ handled_at?: string | null;
17630
+ handled_by?: string | null;
17631
+ id?: string;
17632
+ items?: Json;
17633
+ kind?: string;
17634
+ monteur_id?: string;
17635
+ updated_at?: string;
17636
+ };
17637
+ Relationships: [];
17638
+ };
16655
17639
  planning_confirmation_log: {
16656
17640
  Row: {
16657
17641
  created_at: string;
16658
17642
  end_at: string;
16659
17643
  id: string;
17644
+ kind: string;
16660
17645
  outbox_id: string | null;
16661
17646
  planning_item_id: string;
16662
17647
  reason: string | null;
@@ -16668,6 +17653,7 @@ export type Database = {
16668
17653
  created_at?: string;
16669
17654
  end_at: string;
16670
17655
  id?: string;
17656
+ kind?: string;
16671
17657
  outbox_id?: string | null;
16672
17658
  planning_item_id: string;
16673
17659
  reason?: string | null;
@@ -16679,6 +17665,7 @@ export type Database = {
16679
17665
  created_at?: string;
16680
17666
  end_at?: string;
16681
17667
  id?: string;
17668
+ kind?: string;
16682
17669
  outbox_id?: string | null;
16683
17670
  planning_item_id?: string;
16684
17671
  reason?: string | null;
@@ -16799,9 +17786,12 @@ export type Database = {
16799
17786
  cc: string[];
16800
17787
  connection_id: string | null;
16801
17788
  created_at: string;
17789
+ email_purpose: string | null;
16802
17790
  enabled: boolean;
16803
17791
  id: boolean;
16804
17792
  reply_to: string | null;
17793
+ reschedule_body_template: string;
17794
+ reschedule_subject_template: string;
16805
17795
  subject_template: string;
16806
17796
  timezone: string;
16807
17797
  updated_at: string;
@@ -16812,9 +17802,12 @@ export type Database = {
16812
17802
  cc?: string[];
16813
17803
  connection_id?: string | null;
16814
17804
  created_at?: string;
17805
+ email_purpose?: string | null;
16815
17806
  enabled?: boolean;
16816
17807
  id?: boolean;
16817
17808
  reply_to?: string | null;
17809
+ reschedule_body_template?: string;
17810
+ reschedule_subject_template?: string;
16818
17811
  subject_template?: string;
16819
17812
  timezone?: string;
16820
17813
  updated_at?: string;
@@ -16825,9 +17818,12 @@ export type Database = {
16825
17818
  cc?: string[];
16826
17819
  connection_id?: string | null;
16827
17820
  created_at?: string;
17821
+ email_purpose?: string | null;
16828
17822
  enabled?: boolean;
16829
17823
  id?: boolean;
16830
17824
  reply_to?: string | null;
17825
+ reschedule_body_template?: string;
17826
+ reschedule_subject_template?: string;
16831
17827
  subject_template?: string;
16832
17828
  timezone?: string;
16833
17829
  updated_at?: string;
@@ -17249,6 +18245,27 @@ export type Database = {
17249
18245
  };
17250
18246
  Relationships: [];
17251
18247
  };
18248
+ print_genegeerde_computers: {
18249
+ Row: {
18250
+ computer_naam: string;
18251
+ genegeerd_door: string | null;
18252
+ genegeerd_op: string;
18253
+ id: string;
18254
+ };
18255
+ Insert: {
18256
+ computer_naam: string;
18257
+ genegeerd_door?: string | null;
18258
+ genegeerd_op?: string;
18259
+ id?: string;
18260
+ };
18261
+ Update: {
18262
+ computer_naam?: string;
18263
+ genegeerd_door?: string | null;
18264
+ genegeerd_op?: string;
18265
+ id?: string;
18266
+ };
18267
+ Relationships: [];
18268
+ };
17252
18269
  print_job_logs: {
17253
18270
  Row: {
17254
18271
  created_at: string;
@@ -17530,6 +18547,42 @@ export type Database = {
17530
18547
  }
17531
18548
  ];
17532
18549
  };
18550
+ print_plek_printers: {
18551
+ Row: {
18552
+ id: string;
18553
+ print_plek_id: string;
18554
+ printer_id: string;
18555
+ toegevoegd_op: string;
18556
+ };
18557
+ Insert: {
18558
+ id?: string;
18559
+ print_plek_id: string;
18560
+ printer_id: string;
18561
+ toegevoegd_op?: string;
18562
+ };
18563
+ Update: {
18564
+ id?: string;
18565
+ print_plek_id?: string;
18566
+ printer_id?: string;
18567
+ toegevoegd_op?: string;
18568
+ };
18569
+ Relationships: [
18570
+ {
18571
+ foreignKeyName: "print_plek_printers_print_plek_id_fkey";
18572
+ columns: ["print_plek_id"];
18573
+ isOneToOne: false;
18574
+ referencedRelation: "print_plekken";
18575
+ referencedColumns: ["id"];
18576
+ },
18577
+ {
18578
+ foreignKeyName: "print_plek_printers_printer_id_fkey";
18579
+ columns: ["printer_id"];
18580
+ isOneToOne: false;
18581
+ referencedRelation: "printers";
18582
+ referencedColumns: ["id"];
18583
+ }
18584
+ ];
18585
+ };
17533
18586
  print_plekken: {
17534
18587
  Row: {
17535
18588
  actief: boolean;
@@ -17748,7 +18801,8 @@ export type Database = {
17748
18801
  created_at: string;
17749
18802
  id: string;
17750
18803
  layout_id: string;
17751
- printer_id: string;
18804
+ printer_id: string | null;
18805
+ printer_ontbreekt_sinds: string | null;
17752
18806
  prioriteit: number;
17753
18807
  updated_at: string;
17754
18808
  };
@@ -17756,7 +18810,8 @@ export type Database = {
17756
18810
  created_at?: string;
17757
18811
  id?: string;
17758
18812
  layout_id: string;
17759
- printer_id: string;
18813
+ printer_id?: string | null;
18814
+ printer_ontbreekt_sinds?: string | null;
17760
18815
  prioriteit?: number;
17761
18816
  updated_at?: string;
17762
18817
  };
@@ -17764,7 +18819,8 @@ export type Database = {
17764
18819
  created_at?: string;
17765
18820
  id?: string;
17766
18821
  layout_id?: string;
17767
- printer_id?: string;
18822
+ printer_id?: string | null;
18823
+ printer_ontbreekt_sinds?: string | null;
17768
18824
  prioriteit?: number;
17769
18825
  updated_at?: string;
17770
18826
  };
@@ -18185,7 +19241,7 @@ export type Database = {
18185
19241
  id?: string;
18186
19242
  product_group_id: string;
18187
19243
  quantity?: number;
18188
- sort_order?: number;
19244
+ sort_order: number;
18189
19245
  trade_item_id: string;
18190
19246
  };
18191
19247
  Update: {
@@ -19416,6 +20472,7 @@ export type Database = {
19416
20472
  is_protected: boolean;
19417
20473
  key: string;
19418
20474
  name: string;
20475
+ permissions_initialized: boolean;
19419
20476
  updated_at: string;
19420
20477
  };
19421
20478
  Insert: {
@@ -19424,6 +20481,7 @@ export type Database = {
19424
20481
  is_protected?: boolean;
19425
20482
  key: string;
19426
20483
  name: string;
20484
+ permissions_initialized?: boolean;
19427
20485
  updated_at?: string;
19428
20486
  };
19429
20487
  Update: {
@@ -19432,6 +20490,7 @@ export type Database = {
19432
20490
  is_protected?: boolean;
19433
20491
  key?: string;
19434
20492
  name?: string;
20493
+ permissions_initialized?: boolean;
19435
20494
  updated_at?: string;
19436
20495
  };
19437
20496
  Relationships: [];
@@ -20054,6 +21113,50 @@ export type Database = {
20054
21113
  };
20055
21114
  Relationships: [];
20056
21115
  };
21116
+ standby_planning: {
21117
+ Row: {
21118
+ created_at: string;
21119
+ created_by: string | null;
21120
+ employee_id: string;
21121
+ end_date: string;
21122
+ id: string;
21123
+ notes: string | null;
21124
+ soort: string;
21125
+ start_date: string;
21126
+ updated_at: string;
21127
+ };
21128
+ Insert: {
21129
+ created_at?: string;
21130
+ created_by?: string | null;
21131
+ employee_id: string;
21132
+ end_date: string;
21133
+ id?: string;
21134
+ notes?: string | null;
21135
+ soort: string;
21136
+ start_date: string;
21137
+ updated_at?: string;
21138
+ };
21139
+ Update: {
21140
+ created_at?: string;
21141
+ created_by?: string | null;
21142
+ employee_id?: string;
21143
+ end_date?: string;
21144
+ id?: string;
21145
+ notes?: string | null;
21146
+ soort?: string;
21147
+ start_date?: string;
21148
+ updated_at?: string;
21149
+ };
21150
+ Relationships: [
21151
+ {
21152
+ foreignKeyName: "standby_planning_employee_id_fkey";
21153
+ columns: ["employee_id"];
21154
+ isOneToOne: false;
21155
+ referencedRelation: "profiles";
21156
+ referencedColumns: ["id"];
21157
+ }
21158
+ ];
21159
+ };
20057
21160
  stock_consumption_alerts: {
20058
21161
  Row: {
20059
21162
  alert_type: string;
@@ -20093,48 +21196,253 @@ export type Database = {
20093
21196
  };
20094
21197
  Relationships: [];
20095
21198
  };
21199
+ stock_import_chunks: {
21200
+ Row: {
21201
+ chunk_no: number;
21202
+ created_at: string;
21203
+ duration_ms: number | null;
21204
+ processed_at: string | null;
21205
+ run_id: string;
21206
+ status: string;
21207
+ undone_at: string | null;
21208
+ updated_at: string;
21209
+ };
21210
+ Insert: {
21211
+ chunk_no: number;
21212
+ created_at?: string;
21213
+ duration_ms?: number | null;
21214
+ processed_at?: string | null;
21215
+ run_id: string;
21216
+ status?: string;
21217
+ undone_at?: string | null;
21218
+ updated_at?: string;
21219
+ };
21220
+ Update: {
21221
+ chunk_no?: number;
21222
+ created_at?: string;
21223
+ duration_ms?: number | null;
21224
+ processed_at?: string | null;
21225
+ run_id?: string;
21226
+ status?: string;
21227
+ undone_at?: string | null;
21228
+ updated_at?: string;
21229
+ };
21230
+ Relationships: [
21231
+ {
21232
+ foreignKeyName: "stock_import_chunks_run_id_fkey";
21233
+ columns: ["run_id"];
21234
+ isOneToOne: false;
21235
+ referencedRelation: "stock_import_runs";
21236
+ referencedColumns: ["id"];
21237
+ }
21238
+ ];
21239
+ };
21240
+ stock_import_rows: {
21241
+ Row: {
21242
+ article_code: string | null;
21243
+ article_name: string | null;
21244
+ chunk_no: number;
21245
+ connection_id: string | null;
21246
+ created_at: string;
21247
+ custom_values: Json | null;
21248
+ error: string | null;
21249
+ id: string;
21250
+ incoming_after: number | null;
21251
+ incoming_before: number | null;
21252
+ incoming_in: number | null;
21253
+ is_new: boolean;
21254
+ minimum_after: number | null;
21255
+ minimum_before: number | null;
21256
+ minimum_in: number | null;
21257
+ new_payload: Json | null;
21258
+ note: string | null;
21259
+ physical_after: number | null;
21260
+ physical_before: number | null;
21261
+ physical_in: number | null;
21262
+ processed_at: string | null;
21263
+ product_id: string | null;
21264
+ row_no: number;
21265
+ run_id: string;
21266
+ status: string;
21267
+ trade_item_key: string | null;
21268
+ updated_at: string;
21269
+ };
21270
+ Insert: {
21271
+ article_code?: string | null;
21272
+ article_name?: string | null;
21273
+ chunk_no: number;
21274
+ connection_id?: string | null;
21275
+ created_at?: string;
21276
+ custom_values?: Json | null;
21277
+ error?: string | null;
21278
+ id?: string;
21279
+ incoming_after?: number | null;
21280
+ incoming_before?: number | null;
21281
+ incoming_in?: number | null;
21282
+ is_new?: boolean;
21283
+ minimum_after?: number | null;
21284
+ minimum_before?: number | null;
21285
+ minimum_in?: number | null;
21286
+ new_payload?: Json | null;
21287
+ note?: string | null;
21288
+ physical_after?: number | null;
21289
+ physical_before?: number | null;
21290
+ physical_in?: number | null;
21291
+ processed_at?: string | null;
21292
+ product_id?: string | null;
21293
+ row_no: number;
21294
+ run_id: string;
21295
+ status?: string;
21296
+ trade_item_key?: string | null;
21297
+ updated_at?: string;
21298
+ };
21299
+ Update: {
21300
+ article_code?: string | null;
21301
+ article_name?: string | null;
21302
+ chunk_no?: number;
21303
+ connection_id?: string | null;
21304
+ created_at?: string;
21305
+ custom_values?: Json | null;
21306
+ error?: string | null;
21307
+ id?: string;
21308
+ incoming_after?: number | null;
21309
+ incoming_before?: number | null;
21310
+ incoming_in?: number | null;
21311
+ is_new?: boolean;
21312
+ minimum_after?: number | null;
21313
+ minimum_before?: number | null;
21314
+ minimum_in?: number | null;
21315
+ new_payload?: Json | null;
21316
+ note?: string | null;
21317
+ physical_after?: number | null;
21318
+ physical_before?: number | null;
21319
+ physical_in?: number | null;
21320
+ processed_at?: string | null;
21321
+ product_id?: string | null;
21322
+ row_no?: number;
21323
+ run_id?: string;
21324
+ status?: string;
21325
+ trade_item_key?: string | null;
21326
+ updated_at?: string;
21327
+ };
21328
+ Relationships: [
21329
+ {
21330
+ foreignKeyName: "stock_import_rows_run_id_fkey";
21331
+ columns: ["run_id"];
21332
+ isOneToOne: false;
21333
+ referencedRelation: "stock_import_runs";
21334
+ referencedColumns: ["id"];
21335
+ }
21336
+ ];
21337
+ };
20096
21338
  stock_import_runs: {
20097
21339
  Row: {
21340
+ chunk_size: number | null;
20098
21341
  connection_id: string | null;
20099
21342
  created_at: string;
20100
21343
  created_rows: number;
21344
+ done_chunks: number;
20101
21345
  errors: Json;
21346
+ file_hash: string | null;
20102
21347
  filename: string | null;
21348
+ finished_at: string | null;
20103
21349
  id: string;
20104
21350
  mutations: Json;
21351
+ rows_purged_at: string | null;
20105
21352
  skipped_rows: number;
21353
+ status: string;
21354
+ total_chunks: number;
20106
21355
  total_rows: number;
21356
+ undo_skipped_rows: number;
21357
+ undone_rows: number;
21358
+ updated_at: string;
20107
21359
  updated_rows: number;
20108
21360
  user_id: string;
20109
21361
  };
20110
21362
  Insert: {
21363
+ chunk_size?: number | null;
20111
21364
  connection_id?: string | null;
20112
21365
  created_at?: string;
20113
21366
  created_rows?: number;
21367
+ done_chunks?: number;
20114
21368
  errors?: Json;
21369
+ file_hash?: string | null;
20115
21370
  filename?: string | null;
21371
+ finished_at?: string | null;
20116
21372
  id?: string;
20117
21373
  mutations?: Json;
21374
+ rows_purged_at?: string | null;
20118
21375
  skipped_rows?: number;
21376
+ status?: string;
21377
+ total_chunks?: number;
20119
21378
  total_rows?: number;
21379
+ undo_skipped_rows?: number;
21380
+ undone_rows?: number;
21381
+ updated_at?: string;
20120
21382
  updated_rows?: number;
20121
21383
  user_id: string;
20122
21384
  };
20123
21385
  Update: {
21386
+ chunk_size?: number | null;
20124
21387
  connection_id?: string | null;
20125
21388
  created_at?: string;
20126
21389
  created_rows?: number;
21390
+ done_chunks?: number;
20127
21391
  errors?: Json;
21392
+ file_hash?: string | null;
20128
21393
  filename?: string | null;
21394
+ finished_at?: string | null;
20129
21395
  id?: string;
20130
21396
  mutations?: Json;
21397
+ rows_purged_at?: string | null;
20131
21398
  skipped_rows?: number;
21399
+ status?: string;
21400
+ total_chunks?: number;
20132
21401
  total_rows?: number;
21402
+ undo_skipped_rows?: number;
21403
+ undone_rows?: number;
21404
+ updated_at?: string;
20133
21405
  updated_rows?: number;
20134
21406
  user_id?: string;
20135
21407
  };
20136
21408
  Relationships: [];
20137
21409
  };
21410
+ stock_integrity_alerts: {
21411
+ Row: {
21412
+ acknowledged_at: string | null;
21413
+ acknowledged_by: string | null;
21414
+ alert_kind: string;
21415
+ created_at: string;
21416
+ id: string;
21417
+ item_count: number;
21418
+ items: Json;
21419
+ tx_id: number;
21420
+ updated_at: string;
21421
+ };
21422
+ Insert: {
21423
+ acknowledged_at?: string | null;
21424
+ acknowledged_by?: string | null;
21425
+ alert_kind?: string;
21426
+ created_at?: string;
21427
+ id?: string;
21428
+ item_count?: number;
21429
+ items?: Json;
21430
+ tx_id: number;
21431
+ updated_at?: string;
21432
+ };
21433
+ Update: {
21434
+ acknowledged_at?: string | null;
21435
+ acknowledged_by?: string | null;
21436
+ alert_kind?: string;
21437
+ created_at?: string;
21438
+ id?: string;
21439
+ item_count?: number;
21440
+ items?: Json;
21441
+ tx_id?: number;
21442
+ updated_at?: string;
21443
+ };
21444
+ Relationships: [];
21445
+ };
20138
21446
  stock_mutation_log: {
20139
21447
  Row: {
20140
21448
  connection_id: string | null;
@@ -20192,6 +21500,45 @@ export type Database = {
20192
21500
  };
20193
21501
  Relationships: [];
20194
21502
  };
21503
+ structure_cleanup_log: {
21504
+ Row: {
21505
+ action: string;
21506
+ batch: string;
21507
+ created_at: string;
21508
+ id: string;
21509
+ new_row: Json | null;
21510
+ old_row: Json;
21511
+ reason: string;
21512
+ row_id: string;
21513
+ step: number;
21514
+ table_name: string;
21515
+ };
21516
+ Insert: {
21517
+ action: string;
21518
+ batch: string;
21519
+ created_at?: string;
21520
+ id?: string;
21521
+ new_row?: Json | null;
21522
+ old_row: Json;
21523
+ reason: string;
21524
+ row_id: string;
21525
+ step: number;
21526
+ table_name: string;
21527
+ };
21528
+ Update: {
21529
+ action?: string;
21530
+ batch?: string;
21531
+ created_at?: string;
21532
+ id?: string;
21533
+ new_row?: Json | null;
21534
+ old_row?: Json;
21535
+ reason?: string;
21536
+ row_id?: string;
21537
+ step?: number;
21538
+ table_name?: string;
21539
+ };
21540
+ Relationships: [];
21541
+ };
20195
21542
  supplier_contacts: {
20196
21543
  Row: {
20197
21544
  created_at: string;
@@ -20623,6 +21970,59 @@ export type Database = {
20623
21970
  }
20624
21971
  ];
20625
21972
  };
21973
+ time_compensation_log: {
21974
+ Row: {
21975
+ actie: string;
21976
+ created_at: string;
21977
+ employee_id: string;
21978
+ entry_date: string;
21979
+ id: string;
21980
+ km: number;
21981
+ maaltijd: number;
21982
+ notities: string | null;
21983
+ performed_by: string | null;
21984
+ standby_avond: number;
21985
+ standby_weekend: number;
21986
+ tvt: number;
21987
+ };
21988
+ Insert: {
21989
+ actie: string;
21990
+ created_at?: string;
21991
+ employee_id: string;
21992
+ entry_date: string;
21993
+ id?: string;
21994
+ km?: number;
21995
+ maaltijd?: number;
21996
+ notities?: string | null;
21997
+ performed_by?: string | null;
21998
+ standby_avond?: number;
21999
+ standby_weekend?: number;
22000
+ tvt?: number;
22001
+ };
22002
+ Update: {
22003
+ actie?: string;
22004
+ created_at?: string;
22005
+ employee_id?: string;
22006
+ entry_date?: string;
22007
+ id?: string;
22008
+ km?: number;
22009
+ maaltijd?: number;
22010
+ notities?: string | null;
22011
+ performed_by?: string | null;
22012
+ standby_avond?: number;
22013
+ standby_weekend?: number;
22014
+ tvt?: number;
22015
+ };
22016
+ Relationships: [
22017
+ {
22018
+ foreignKeyName: "time_compensation_log_employee_id_fkey";
22019
+ columns: ["employee_id"];
22020
+ isOneToOne: false;
22021
+ referencedRelation: "profiles";
22022
+ referencedColumns: ["id"];
22023
+ }
22024
+ ];
22025
+ };
20626
22026
  time_entries: {
20627
22027
  Row: {
20628
22028
  created_at: string;
@@ -20723,6 +22123,9 @@ export type Database = {
20723
22123
  };
20724
22124
  time_logs: {
20725
22125
  Row: {
22126
+ aangepast_door_monteur: boolean;
22127
+ aangepast_op: string | null;
22128
+ aanpassing_reden: string | null;
20726
22129
  auto_stop_reason: string | null;
20727
22130
  auto_stopped: boolean;
20728
22131
  created_at: string;
@@ -20757,6 +22160,9 @@ export type Database = {
20757
22160
  work_order_id: string | null;
20758
22161
  };
20759
22162
  Insert: {
22163
+ aangepast_door_monteur?: boolean;
22164
+ aangepast_op?: string | null;
22165
+ aanpassing_reden?: string | null;
20760
22166
  auto_stop_reason?: string | null;
20761
22167
  auto_stopped?: boolean;
20762
22168
  created_at?: string;
@@ -20791,6 +22197,9 @@ export type Database = {
20791
22197
  work_order_id?: string | null;
20792
22198
  };
20793
22199
  Update: {
22200
+ aangepast_door_monteur?: boolean;
22201
+ aangepast_op?: string | null;
22202
+ aanpassing_reden?: string | null;
20794
22203
  auto_stop_reason?: string | null;
20795
22204
  auto_stopped?: boolean;
20796
22205
  created_at?: string;
@@ -21141,13 +22550,19 @@ export type Database = {
21141
22550
  created_at: string;
21142
22551
  disconnected_at: string | null;
21143
22552
  environment: string;
22553
+ granted_scopes: string[] | null;
21144
22554
  id: string;
21145
22555
  initial_sync_completed_at: string | null;
22556
+ initial_sync_last_error: string | null;
22557
+ initial_sync_plan: Json | null;
21146
22558
  initial_sync_started_at: string | null;
21147
22559
  is_active: boolean;
21148
22560
  label: string | null;
22561
+ missing_scopes: string[] | null;
21149
22562
  office_code: string | null;
21150
22563
  redirect_uri: string | null;
22564
+ scope_checked_at: string | null;
22565
+ scope_state: string | null;
21151
22566
  superseded_at: string | null;
21152
22567
  updated_at: string;
21153
22568
  user_id: string;
@@ -21161,13 +22576,19 @@ export type Database = {
21161
22576
  created_at?: string;
21162
22577
  disconnected_at?: string | null;
21163
22578
  environment: string;
22579
+ granted_scopes?: string[] | null;
21164
22580
  id?: string;
21165
22581
  initial_sync_completed_at?: string | null;
22582
+ initial_sync_last_error?: string | null;
22583
+ initial_sync_plan?: Json | null;
21166
22584
  initial_sync_started_at?: string | null;
21167
22585
  is_active?: boolean;
21168
22586
  label?: string | null;
22587
+ missing_scopes?: string[] | null;
21169
22588
  office_code?: string | null;
21170
22589
  redirect_uri?: string | null;
22590
+ scope_checked_at?: string | null;
22591
+ scope_state?: string | null;
21171
22592
  superseded_at?: string | null;
21172
22593
  updated_at?: string;
21173
22594
  user_id: string;
@@ -21181,13 +22602,19 @@ export type Database = {
21181
22602
  created_at?: string;
21182
22603
  disconnected_at?: string | null;
21183
22604
  environment?: string;
22605
+ granted_scopes?: string[] | null;
21184
22606
  id?: string;
21185
22607
  initial_sync_completed_at?: string | null;
22608
+ initial_sync_last_error?: string | null;
22609
+ initial_sync_plan?: Json | null;
21186
22610
  initial_sync_started_at?: string | null;
21187
22611
  is_active?: boolean;
21188
22612
  label?: string | null;
22613
+ missing_scopes?: string[] | null;
21189
22614
  office_code?: string | null;
21190
22615
  redirect_uri?: string | null;
22616
+ scope_checked_at?: string | null;
22617
+ scope_state?: string | null;
21191
22618
  superseded_at?: string | null;
21192
22619
  updated_at?: string;
21193
22620
  user_id?: string;
@@ -21313,33 +22740,51 @@ export type Database = {
21313
22740
  connection_id: string;
21314
22741
  country: string | null;
21315
22742
  data: Json;
22743
+ deactivated_at: string | null;
21316
22744
  email: string | null;
21317
22745
  fetched_at: string;
22746
+ is_active: boolean;
21318
22747
  modified_at: string | null;
21319
22748
  name: string | null;
22749
+ seen_at: string | null;
21320
22750
  twinfield_code: string;
22751
+ twinfield_status: string | null;
22752
+ twinfield_uid: string | null;
22753
+ twinfield_version: number | null;
21321
22754
  vat_number: string | null;
21322
22755
  };
21323
22756
  Insert: {
21324
22757
  connection_id: string;
21325
22758
  country?: string | null;
21326
22759
  data?: Json;
22760
+ deactivated_at?: string | null;
21327
22761
  email?: string | null;
21328
22762
  fetched_at?: string;
22763
+ is_active?: boolean;
21329
22764
  modified_at?: string | null;
21330
22765
  name?: string | null;
22766
+ seen_at?: string | null;
21331
22767
  twinfield_code: string;
22768
+ twinfield_status?: string | null;
22769
+ twinfield_uid?: string | null;
22770
+ twinfield_version?: number | null;
21332
22771
  vat_number?: string | null;
21333
22772
  };
21334
22773
  Update: {
21335
22774
  connection_id?: string;
21336
22775
  country?: string | null;
21337
22776
  data?: Json;
22777
+ deactivated_at?: string | null;
21338
22778
  email?: string | null;
21339
22779
  fetched_at?: string;
22780
+ is_active?: boolean;
21340
22781
  modified_at?: string | null;
21341
22782
  name?: string | null;
22783
+ seen_at?: string | null;
21342
22784
  twinfield_code?: string;
22785
+ twinfield_status?: string | null;
22786
+ twinfield_uid?: string | null;
22787
+ twinfield_version?: number | null;
21343
22788
  vat_number?: string | null;
21344
22789
  };
21345
22790
  Relationships: [
@@ -21352,6 +22797,59 @@ export type Database = {
21352
22797
  }
21353
22798
  ];
21354
22799
  };
22800
+ twinfield_dimension_types_cache: {
22801
+ Row: {
22802
+ connection_id: string | null;
22803
+ dim_type: string;
22804
+ fetched_at: string;
22805
+ label1: string | null;
22806
+ label2: string | null;
22807
+ label3: string | null;
22808
+ label4: string | null;
22809
+ label5: string | null;
22810
+ label6: string | null;
22811
+ mask: string | null;
22812
+ name: string | null;
22813
+ office_code: string;
22814
+ };
22815
+ Insert: {
22816
+ connection_id?: string | null;
22817
+ dim_type: string;
22818
+ fetched_at?: string;
22819
+ label1?: string | null;
22820
+ label2?: string | null;
22821
+ label3?: string | null;
22822
+ label4?: string | null;
22823
+ label5?: string | null;
22824
+ label6?: string | null;
22825
+ mask?: string | null;
22826
+ name?: string | null;
22827
+ office_code: string;
22828
+ };
22829
+ Update: {
22830
+ connection_id?: string | null;
22831
+ dim_type?: string;
22832
+ fetched_at?: string;
22833
+ label1?: string | null;
22834
+ label2?: string | null;
22835
+ label3?: string | null;
22836
+ label4?: string | null;
22837
+ label5?: string | null;
22838
+ label6?: string | null;
22839
+ mask?: string | null;
22840
+ name?: string | null;
22841
+ office_code?: string;
22842
+ };
22843
+ Relationships: [
22844
+ {
22845
+ foreignKeyName: "twinfield_dimension_types_cache_connection_id_fkey";
22846
+ columns: ["connection_id"];
22847
+ isOneToOne: false;
22848
+ referencedRelation: "twinfield_connections";
22849
+ referencedColumns: ["id"];
22850
+ }
22851
+ ];
22852
+ };
21355
22853
  twinfield_invoice_lines: {
21356
22854
  Row: {
21357
22855
  article_code: string | null;
@@ -21948,24 +23446,39 @@ export type Database = {
21948
23446
  twinfield_request_metrics: {
21949
23447
  Row: {
21950
23448
  bucket_hour: string;
23449
+ clientid_limit: number | null;
23450
+ clientid_remaining: number | null;
21951
23451
  connection_id: string;
21952
23452
  error_count: number;
23453
+ rate_limit_limit: number | null;
23454
+ rate_limit_remaining: number | null;
23455
+ rate_limit_seen_at: string | null;
21953
23456
  rate_limited_count: number;
21954
23457
  request_count: number;
21955
23458
  updated_at: string;
21956
23459
  };
21957
23460
  Insert: {
21958
23461
  bucket_hour: string;
23462
+ clientid_limit?: number | null;
23463
+ clientid_remaining?: number | null;
21959
23464
  connection_id: string;
21960
23465
  error_count?: number;
23466
+ rate_limit_limit?: number | null;
23467
+ rate_limit_remaining?: number | null;
23468
+ rate_limit_seen_at?: string | null;
21961
23469
  rate_limited_count?: number;
21962
23470
  request_count?: number;
21963
23471
  updated_at?: string;
21964
23472
  };
21965
23473
  Update: {
21966
23474
  bucket_hour?: string;
23475
+ clientid_limit?: number | null;
23476
+ clientid_remaining?: number | null;
21967
23477
  connection_id?: string;
21968
23478
  error_count?: number;
23479
+ rate_limit_limit?: number | null;
23480
+ rate_limit_remaining?: number | null;
23481
+ rate_limit_seen_at?: string | null;
21969
23482
  rate_limited_count?: number;
21970
23483
  request_count?: number;
21971
23484
  updated_at?: string;
@@ -22020,24 +23533,226 @@ export type Database = {
22020
23533
  twinfield_settings: {
22021
23534
  Row: {
22022
23535
  active_environment: string;
23536
+ cron_registered_at: string | null;
23537
+ cron_registration_error: string | null;
23538
+ cron_schedules: Json;
23539
+ cron_timeouts: Json;
22023
23540
  id: number;
22024
23541
  public_base_url: string | null;
22025
23542
  updated_at: string;
22026
23543
  };
22027
23544
  Insert: {
22028
23545
  active_environment?: string;
23546
+ cron_registered_at?: string | null;
23547
+ cron_registration_error?: string | null;
23548
+ cron_schedules?: Json;
23549
+ cron_timeouts?: Json;
22029
23550
  id?: number;
22030
23551
  public_base_url?: string | null;
22031
23552
  updated_at?: string;
22032
23553
  };
22033
23554
  Update: {
22034
23555
  active_environment?: string;
23556
+ cron_registered_at?: string | null;
23557
+ cron_registration_error?: string | null;
23558
+ cron_schedules?: Json;
23559
+ cron_timeouts?: Json;
22035
23560
  id?: number;
22036
23561
  public_base_url?: string | null;
22037
23562
  updated_at?: string;
22038
23563
  };
22039
23564
  Relationships: [];
22040
23565
  };
23566
+ twinfield_sync_runs: {
23567
+ Row: {
23568
+ calls: number;
23569
+ changed: number;
23570
+ connection_id: string | null;
23571
+ deactivated: number;
23572
+ details: Json;
23573
+ error: string | null;
23574
+ fetched: number;
23575
+ finished_at: string | null;
23576
+ id: string;
23577
+ item_errors: number;
23578
+ kind: string;
23579
+ rate_limited: number;
23580
+ started_at: string;
23581
+ status: string;
23582
+ };
23583
+ Insert: {
23584
+ calls?: number;
23585
+ changed?: number;
23586
+ connection_id?: string | null;
23587
+ deactivated?: number;
23588
+ details?: Json;
23589
+ error?: string | null;
23590
+ fetched?: number;
23591
+ finished_at?: string | null;
23592
+ id?: string;
23593
+ item_errors?: number;
23594
+ kind: string;
23595
+ rate_limited?: number;
23596
+ started_at?: string;
23597
+ status?: string;
23598
+ };
23599
+ Update: {
23600
+ calls?: number;
23601
+ changed?: number;
23602
+ connection_id?: string | null;
23603
+ deactivated?: number;
23604
+ details?: Json;
23605
+ error?: string | null;
23606
+ fetched?: number;
23607
+ finished_at?: string | null;
23608
+ id?: string;
23609
+ item_errors?: number;
23610
+ kind?: string;
23611
+ rate_limited?: number;
23612
+ started_at?: string;
23613
+ status?: string;
23614
+ };
23615
+ Relationships: [
23616
+ {
23617
+ foreignKeyName: "twinfield_sync_runs_connection_id_fkey";
23618
+ columns: ["connection_id"];
23619
+ isOneToOne: false;
23620
+ referencedRelation: "twinfield_connections";
23621
+ referencedColumns: ["id"];
23622
+ }
23623
+ ];
23624
+ };
23625
+ twinfield_sync_settings: {
23626
+ Row: {
23627
+ batch_size: number;
23628
+ change_overlap_seconds: number;
23629
+ change_poll_interval_seconds: number;
23630
+ connection_id: string;
23631
+ created_at: string;
23632
+ currency: string | null;
23633
+ currency_at: string | null;
23634
+ currency_source: string | null;
23635
+ customer_gl_account: string | null;
23636
+ customer_gl_account_at: string | null;
23637
+ customer_gl_account_source: string | null;
23638
+ customers_written_by_module: boolean;
23639
+ default_country: string | null;
23640
+ default_country_at: string | null;
23641
+ default_country_source: string | null;
23642
+ default_language: string | null;
23643
+ default_language_at: string | null;
23644
+ default_language_source: string | null;
23645
+ nightly_full_scan_cron: string;
23646
+ payment_term_min_invoices: number;
23647
+ payment_term_min_share: number;
23648
+ rate_limit_floor: number;
23649
+ requires_manual_approval: boolean;
23650
+ run_budget_ms: number;
23651
+ sales_daybook: string | null;
23652
+ sales_daybook_confirmed_at: string | null;
23653
+ sales_daybook_confirmed_by: string | null;
23654
+ sales_gl_account: string | null;
23655
+ sales_gl_account_at: string | null;
23656
+ sales_gl_account_source: string | null;
23657
+ sales_invoice_type: string | null;
23658
+ sales_invoice_type_confirmed_at: string | null;
23659
+ sales_invoice_type_confirmed_by: string | null;
23660
+ sales_payment_term_at: string | null;
23661
+ sales_payment_term_days: number | null;
23662
+ sales_payment_term_source: string | null;
23663
+ suggestion_warnings: Json;
23664
+ updated_at: string;
23665
+ };
23666
+ Insert: {
23667
+ batch_size?: number;
23668
+ change_overlap_seconds?: number;
23669
+ change_poll_interval_seconds?: number;
23670
+ connection_id: string;
23671
+ created_at?: string;
23672
+ currency?: string | null;
23673
+ currency_at?: string | null;
23674
+ currency_source?: string | null;
23675
+ customer_gl_account?: string | null;
23676
+ customer_gl_account_at?: string | null;
23677
+ customer_gl_account_source?: string | null;
23678
+ customers_written_by_module?: boolean;
23679
+ default_country?: string | null;
23680
+ default_country_at?: string | null;
23681
+ default_country_source?: string | null;
23682
+ default_language?: string | null;
23683
+ default_language_at?: string | null;
23684
+ default_language_source?: string | null;
23685
+ nightly_full_scan_cron?: string;
23686
+ payment_term_min_invoices?: number;
23687
+ payment_term_min_share?: number;
23688
+ rate_limit_floor?: number;
23689
+ requires_manual_approval?: boolean;
23690
+ run_budget_ms?: number;
23691
+ sales_daybook?: string | null;
23692
+ sales_daybook_confirmed_at?: string | null;
23693
+ sales_daybook_confirmed_by?: string | null;
23694
+ sales_gl_account?: string | null;
23695
+ sales_gl_account_at?: string | null;
23696
+ sales_gl_account_source?: string | null;
23697
+ sales_invoice_type?: string | null;
23698
+ sales_invoice_type_confirmed_at?: string | null;
23699
+ sales_invoice_type_confirmed_by?: string | null;
23700
+ sales_payment_term_at?: string | null;
23701
+ sales_payment_term_days?: number | null;
23702
+ sales_payment_term_source?: string | null;
23703
+ suggestion_warnings?: Json;
23704
+ updated_at?: string;
23705
+ };
23706
+ Update: {
23707
+ batch_size?: number;
23708
+ change_overlap_seconds?: number;
23709
+ change_poll_interval_seconds?: number;
23710
+ connection_id?: string;
23711
+ created_at?: string;
23712
+ currency?: string | null;
23713
+ currency_at?: string | null;
23714
+ currency_source?: string | null;
23715
+ customer_gl_account?: string | null;
23716
+ customer_gl_account_at?: string | null;
23717
+ customer_gl_account_source?: string | null;
23718
+ customers_written_by_module?: boolean;
23719
+ default_country?: string | null;
23720
+ default_country_at?: string | null;
23721
+ default_country_source?: string | null;
23722
+ default_language?: string | null;
23723
+ default_language_at?: string | null;
23724
+ default_language_source?: string | null;
23725
+ nightly_full_scan_cron?: string;
23726
+ payment_term_min_invoices?: number;
23727
+ payment_term_min_share?: number;
23728
+ rate_limit_floor?: number;
23729
+ requires_manual_approval?: boolean;
23730
+ run_budget_ms?: number;
23731
+ sales_daybook?: string | null;
23732
+ sales_daybook_confirmed_at?: string | null;
23733
+ sales_daybook_confirmed_by?: string | null;
23734
+ sales_gl_account?: string | null;
23735
+ sales_gl_account_at?: string | null;
23736
+ sales_gl_account_source?: string | null;
23737
+ sales_invoice_type?: string | null;
23738
+ sales_invoice_type_confirmed_at?: string | null;
23739
+ sales_invoice_type_confirmed_by?: string | null;
23740
+ sales_payment_term_at?: string | null;
23741
+ sales_payment_term_days?: number | null;
23742
+ sales_payment_term_source?: string | null;
23743
+ suggestion_warnings?: Json;
23744
+ updated_at?: string;
23745
+ };
23746
+ Relationships: [
23747
+ {
23748
+ foreignKeyName: "twinfield_sync_settings_connection_id_fkey";
23749
+ columns: ["connection_id"];
23750
+ isOneToOne: true;
23751
+ referencedRelation: "twinfield_connections";
23752
+ referencedColumns: ["id"];
23753
+ }
23754
+ ];
23755
+ };
22041
23756
  twinfield_sync_state: {
22042
23757
  Row: {
22043
23758
  connection_id: string;
@@ -22073,6 +23788,51 @@ export type Database = {
22073
23788
  }
22074
23789
  ];
22075
23790
  };
23791
+ twinfield_vat_code_map: {
23792
+ Row: {
23793
+ confirmed_at: string | null;
23794
+ confirmed_by: string | null;
23795
+ fetched_at: string;
23796
+ id: string;
23797
+ is_default: boolean;
23798
+ name: string | null;
23799
+ office_code: string;
23800
+ percentage: number | null;
23801
+ source: string;
23802
+ vat_category: string | null;
23803
+ vat_code: string;
23804
+ vat_type: string | null;
23805
+ };
23806
+ Insert: {
23807
+ confirmed_at?: string | null;
23808
+ confirmed_by?: string | null;
23809
+ fetched_at?: string;
23810
+ id?: string;
23811
+ is_default?: boolean;
23812
+ name?: string | null;
23813
+ office_code: string;
23814
+ percentage?: number | null;
23815
+ source?: string;
23816
+ vat_category?: string | null;
23817
+ vat_code: string;
23818
+ vat_type?: string | null;
23819
+ };
23820
+ Update: {
23821
+ confirmed_at?: string | null;
23822
+ confirmed_by?: string | null;
23823
+ fetched_at?: string;
23824
+ id?: string;
23825
+ is_default?: boolean;
23826
+ name?: string | null;
23827
+ office_code?: string;
23828
+ percentage?: number | null;
23829
+ source?: string;
23830
+ vat_category?: string | null;
23831
+ vat_code?: string;
23832
+ vat_type?: string | null;
23833
+ };
23834
+ Relationships: [];
23835
+ };
22076
23836
  uren_beschikbare_dagen: {
22077
23837
  Row: {
22078
23838
  bron: string;
@@ -22253,6 +24013,36 @@ export type Database = {
22253
24013
  };
22254
24014
  Relationships: [];
22255
24015
  };
24016
+ uren_indirecte_uren: {
24017
+ Row: {
24018
+ created_at: string;
24019
+ datum: string;
24020
+ id: string;
24021
+ minuten: number;
24022
+ monteur_id: string;
24023
+ toelichting: string;
24024
+ updated_at: string;
24025
+ };
24026
+ Insert: {
24027
+ created_at?: string;
24028
+ datum: string;
24029
+ id?: string;
24030
+ minuten: number;
24031
+ monteur_id: string;
24032
+ toelichting: string;
24033
+ updated_at?: string;
24034
+ };
24035
+ Update: {
24036
+ created_at?: string;
24037
+ datum?: string;
24038
+ id?: string;
24039
+ minuten?: number;
24040
+ monteur_id?: string;
24041
+ toelichting?: string;
24042
+ updated_at?: string;
24043
+ };
24044
+ Relationships: [];
24045
+ };
22256
24046
  uren_maandafsluitingen: {
22257
24047
  Row: {
22258
24048
  afgesloten_at: string | null;
@@ -22335,66 +24125,119 @@ export type Database = {
22335
24125
  Row: {
22336
24126
  beoordeeld_door: string | null;
22337
24127
  beoordeeld_op: string | null;
24128
+ blokken: Json;
24129
+ cancellation_requested_at: string | null;
24130
+ cancellation_status: string | null;
22338
24131
  created_at: string;
22339
24132
  datum: string;
22340
24133
  eind_tijd: string | null;
22341
24134
  id: string;
22342
24135
  ingediend_at: string;
22343
24136
  monteur_id: string;
24137
+ ov178_uren: number;
24138
+ ov189_uren: number;
22344
24139
  overuren: number;
22345
24140
  reden_afkeur: string | null;
22346
24141
  start_tijd: string | null;
22347
24142
  status: string;
22348
- toelichting: string;
24143
+ toelichting: string | null;
24144
+ tvt_uren: number;
22349
24145
  updated_at: string;
24146
+ uren_na: number;
24147
+ uren_voor: number;
24148
+ verwerking: string;
22350
24149
  };
22351
24150
  Insert: {
22352
24151
  beoordeeld_door?: string | null;
22353
24152
  beoordeeld_op?: string | null;
24153
+ blokken?: Json;
24154
+ cancellation_requested_at?: string | null;
24155
+ cancellation_status?: string | null;
22354
24156
  created_at?: string;
22355
24157
  datum: string;
22356
24158
  eind_tijd?: string | null;
22357
24159
  id?: string;
22358
24160
  ingediend_at?: string;
22359
24161
  monteur_id: string;
24162
+ ov178_uren?: number;
24163
+ ov189_uren?: number;
22360
24164
  overuren: number;
22361
24165
  reden_afkeur?: string | null;
22362
24166
  start_tijd?: string | null;
22363
24167
  status?: string;
22364
- toelichting: string;
24168
+ toelichting?: string | null;
24169
+ tvt_uren?: number;
22365
24170
  updated_at?: string;
24171
+ uren_na?: number;
24172
+ uren_voor?: number;
24173
+ verwerking?: string;
22366
24174
  };
22367
24175
  Update: {
22368
24176
  beoordeeld_door?: string | null;
22369
24177
  beoordeeld_op?: string | null;
24178
+ blokken?: Json;
24179
+ cancellation_requested_at?: string | null;
24180
+ cancellation_status?: string | null;
22370
24181
  created_at?: string;
22371
24182
  datum?: string;
22372
24183
  eind_tijd?: string | null;
22373
24184
  id?: string;
22374
24185
  ingediend_at?: string;
22375
24186
  monteur_id?: string;
24187
+ ov178_uren?: number;
24188
+ ov189_uren?: number;
22376
24189
  overuren?: number;
22377
24190
  reden_afkeur?: string | null;
22378
24191
  start_tijd?: string | null;
22379
24192
  status?: string;
22380
- toelichting?: string;
24193
+ toelichting?: string | null;
24194
+ tvt_uren?: number;
22381
24195
  updated_at?: string;
24196
+ uren_na?: number;
24197
+ uren_voor?: number;
24198
+ verwerking?: string;
22382
24199
  };
22383
24200
  Relationships: [];
22384
24201
  };
22385
- uren_settings: {
24202
+ uren_pagina_toegang: {
22386
24203
  Row: {
22387
- break_minutes: number;
22388
24204
  created_at: string;
22389
- daily_threshold_hours: number;
22390
- id: boolean;
22391
- include_travel: boolean;
22392
- min_occupancy_monteurs: number;
22393
- ov02_percentage: number;
22394
- ov03_percentage: number;
22395
- updated_at: string;
22396
- weekly_threshold_hours: number;
22397
- workday_end: string;
24205
+ id: string;
24206
+ user_id: string;
24207
+ };
24208
+ Insert: {
24209
+ created_at?: string;
24210
+ id?: string;
24211
+ user_id: string;
24212
+ };
24213
+ Update: {
24214
+ created_at?: string;
24215
+ id?: string;
24216
+ user_id?: string;
24217
+ };
24218
+ Relationships: [
24219
+ {
24220
+ foreignKeyName: "uren_pagina_toegang_user_id_fkey";
24221
+ columns: ["user_id"];
24222
+ isOneToOne: true;
24223
+ referencedRelation: "profiles";
24224
+ referencedColumns: ["id"];
24225
+ }
24226
+ ];
24227
+ };
24228
+ uren_settings: {
24229
+ Row: {
24230
+ break_minutes: number;
24231
+ created_at: string;
24232
+ daily_threshold_hours: number;
24233
+ id: boolean;
24234
+ include_travel: boolean;
24235
+ min_occupancy_monteurs: number;
24236
+ ov02_percentage: number;
24237
+ ov03_percentage: number;
24238
+ updated_at: string;
24239
+ weekly_threshold_hours: number;
24240
+ workday_end: string;
22398
24241
  workday_start: string;
22399
24242
  };
22400
24243
  Insert: {
@@ -23819,10 +25662,12 @@ export type Database = {
23819
25662
  description: string | null;
23820
25663
  duration_minutes: number;
23821
25664
  id: string;
25665
+ labor_minutes: number;
23822
25666
  mandaat_type: string | null;
23823
25667
  name: string;
23824
25668
  price_mode: string;
23825
25669
  sort_order: number;
25670
+ travel_minutes: number;
23826
25671
  unit_price_cents: number;
23827
25672
  updated_at: string;
23828
25673
  };
@@ -23836,10 +25681,12 @@ export type Database = {
23836
25681
  description?: string | null;
23837
25682
  duration_minutes?: number;
23838
25683
  id?: string;
25684
+ labor_minutes?: number;
23839
25685
  mandaat_type?: string | null;
23840
25686
  name: string;
23841
25687
  price_mode?: string;
23842
25688
  sort_order?: number;
25689
+ travel_minutes?: number;
23843
25690
  unit_price_cents?: number;
23844
25691
  updated_at?: string;
23845
25692
  };
@@ -23853,10 +25700,12 @@ export type Database = {
23853
25700
  description?: string | null;
23854
25701
  duration_minutes?: number;
23855
25702
  id?: string;
25703
+ labor_minutes?: number;
23856
25704
  mandaat_type?: string | null;
23857
25705
  name?: string;
23858
25706
  price_mode?: string;
23859
25707
  sort_order?: number;
25708
+ travel_minutes?: number;
23860
25709
  unit_price_cents?: number;
23861
25710
  updated_at?: string;
23862
25711
  };
@@ -24188,12 +26037,14 @@ export type Database = {
24188
26037
  };
24189
26038
  werkbonnen: {
24190
26039
  Row: {
26040
+ afgerond_op: string | null;
24191
26041
  assigned_user_id: string | null;
24192
26042
  budget_mandate_cents: number;
24193
26043
  complaint_description: string | null;
24194
26044
  created_at: string;
24195
26045
  created_by: string | null;
24196
26046
  customer_id: string | null;
26047
+ customer_name: string | null;
24197
26048
  deadline_date: string | null;
24198
26049
  estimated_days: number | null;
24199
26050
  estimated_duration_minutes: number | null;
@@ -24230,12 +26081,14 @@ export type Database = {
24230
26081
  workday_hours: number | null;
24231
26082
  };
24232
26083
  Insert: {
26084
+ afgerond_op?: string | null;
24233
26085
  assigned_user_id?: string | null;
24234
26086
  budget_mandate_cents?: number;
24235
26087
  complaint_description?: string | null;
24236
26088
  created_at?: string;
24237
26089
  created_by?: string | null;
24238
26090
  customer_id?: string | null;
26091
+ customer_name?: string | null;
24239
26092
  deadline_date?: string | null;
24240
26093
  estimated_days?: number | null;
24241
26094
  estimated_duration_minutes?: number | null;
@@ -24272,12 +26125,14 @@ export type Database = {
24272
26125
  workday_hours?: number | null;
24273
26126
  };
24274
26127
  Update: {
26128
+ afgerond_op?: string | null;
24275
26129
  assigned_user_id?: string | null;
24276
26130
  budget_mandate_cents?: number;
24277
26131
  complaint_description?: string | null;
24278
26132
  created_at?: string;
24279
26133
  created_by?: string | null;
24280
26134
  customer_id?: string | null;
26135
+ customer_name?: string | null;
24281
26136
  deadline_date?: string | null;
24282
26137
  estimated_days?: number | null;
24283
26138
  estimated_duration_minutes?: number | null;
@@ -24681,6 +26536,7 @@ export type Database = {
24681
26536
  group_key: string | null;
24682
26537
  is_active: boolean | null;
24683
26538
  is_merged: boolean | null;
26539
+ last_changed_at: string | null;
24684
26540
  logo_url: string | null;
24685
26541
  match_key: string | null;
24686
26542
  phone: string | null;
@@ -24694,6 +26550,7 @@ export type Database = {
24694
26550
  };
24695
26551
  external_customers_unified: {
24696
26552
  Row: {
26553
+ changed_at: string | null;
24697
26554
  city: string | null;
24698
26555
  commercial_name: string | null;
24699
26556
  company_name: string | null;
@@ -25104,6 +26961,7 @@ export type Database = {
25104
26961
  };
25105
26962
  v_external_customers_floriday: {
25106
26963
  Row: {
26964
+ changed_at: string | null;
25107
26965
  city: string | null;
25108
26966
  commercial_name: string | null;
25109
26967
  company_name: string | null;
@@ -25139,6 +26997,7 @@ export type Database = {
25139
26997
  };
25140
26998
  v_external_customers_local: {
25141
26999
  Row: {
27000
+ changed_at: string | null;
25142
27001
  city: string | null;
25143
27002
  commercial_name: string | null;
25144
27003
  company_name: string | null;
@@ -25163,6 +27022,7 @@ export type Database = {
25163
27022
  website: string | null;
25164
27023
  };
25165
27024
  Insert: {
27025
+ changed_at?: never;
25166
27026
  city?: string | null;
25167
27027
  commercial_name?: string | null;
25168
27028
  company_name?: string | null;
@@ -25187,6 +27047,7 @@ export type Database = {
25187
27047
  website?: string | null;
25188
27048
  };
25189
27049
  Update: {
27050
+ changed_at?: never;
25190
27051
  city?: string | null;
25191
27052
  commercial_name?: string | null;
25192
27053
  company_name?: string | null;
@@ -25214,6 +27075,7 @@ export type Database = {
25214
27075
  };
25215
27076
  v_external_customers_twinfield: {
25216
27077
  Row: {
27078
+ changed_at: string | null;
25217
27079
  city: string | null;
25218
27080
  commercial_name: string | null;
25219
27081
  company_name: string | null;
@@ -25447,6 +27309,15 @@ export type Database = {
25447
27309
  };
25448
27310
  };
25449
27311
  Functions: {
27312
+ _floriday_queue_cleanup_batch: {
27313
+ Args: {
27314
+ p_days: number;
27315
+ p_keep_latest: boolean;
27316
+ p_limit: number;
27317
+ p_statuses: string[];
27318
+ };
27319
+ Returns: number;
27320
+ };
25450
27321
  _floriday_schedule_job: {
25451
27322
  Args: {
25452
27323
  p_apikey: string;
@@ -25464,6 +27335,18 @@ export type Database = {
25464
27335
  };
25465
27336
  Returns: undefined;
25466
27337
  };
27338
+ _quote_release_work_order_intern: {
27339
+ Args: {
27340
+ _offerte_id: string;
27341
+ };
27342
+ Returns: Json;
27343
+ };
27344
+ _stock_import_caller: {
27345
+ Args: {
27346
+ p_owner: string;
27347
+ };
27348
+ Returns: boolean;
27349
+ };
25467
27350
  _wo_is_planner: {
25468
27351
  Args: never;
25469
27352
  Returns: boolean;
@@ -25596,6 +27479,8 @@ export type Database = {
25596
27479
  desired_availability: boolean;
25597
27480
  desired_quantity: number;
25598
27481
  erp_available: number;
27482
+ packing_size: number;
27483
+ reason: string;
25599
27484
  stock_mode: string;
25600
27485
  }[];
25601
27486
  };
@@ -25605,6 +27490,15 @@ export type Database = {
25605
27490
  };
25606
27491
  Returns: number;
25607
27492
  };
27493
+ calculate_structure_available: {
27494
+ Args: {
27495
+ p_connection_id: string;
27496
+ p_level?: number;
27497
+ p_path?: string[];
27498
+ p_product_id: string;
27499
+ };
27500
+ Returns: Json;
27501
+ };
25608
27502
  call_exact_route: {
25609
27503
  Args: {
25610
27504
  path: string;
@@ -25633,6 +27527,19 @@ export type Database = {
25633
27527
  };
25634
27528
  Returns: Json;
25635
27529
  };
27530
+ check_product_structure: {
27531
+ Args: {
27532
+ p_child: string;
27533
+ p_kind: string;
27534
+ p_name?: string;
27535
+ p_parent: string;
27536
+ };
27537
+ Returns: {
27538
+ code: string;
27539
+ message: string;
27540
+ ok: boolean;
27541
+ }[];
27542
+ };
25636
27543
  check_trade_item_available_stock: {
25637
27544
  Args: {
25638
27545
  p_connection_id?: string;
@@ -25713,6 +27620,7 @@ export type Database = {
25713
27620
  };
25714
27621
  Returns: {
25715
27622
  attempts: number;
27623
+ availability_sent_at: string | null;
25716
27624
  connection_id: string;
25717
27625
  created_at: string;
25718
27626
  dead_lettered_at: string | null;
@@ -25725,7 +27633,9 @@ export type Database = {
25725
27633
  next_attempt_at: string;
25726
27634
  number_of_pieces: number;
25727
27635
  product_id: string | null;
27636
+ quantity_sent_at: string | null;
25728
27637
  sent_at: string | null;
27638
+ skip_reason: string | null;
25729
27639
  status: string;
25730
27640
  stock_mode: string | null;
25731
27641
  superseded_by: string | null;
@@ -25975,6 +27885,14 @@ export type Database = {
25975
27885
  Args: never;
25976
27886
  Returns: undefined;
25977
27887
  };
27888
+ cleanup_standby_planning: {
27889
+ Args: never;
27890
+ Returns: number;
27891
+ };
27892
+ cleanup_time_compensation_log: {
27893
+ Args: never;
27894
+ Returns: number;
27895
+ };
25978
27896
  cleanup_voorraad_module_history: {
25979
27897
  Args: never;
25980
27898
  Returns: undefined;
@@ -25989,6 +27907,18 @@ export type Database = {
25989
27907
  };
25990
27908
  Returns: undefined;
25991
27909
  };
27910
+ complete_floriday_stock_queue_outcome: {
27911
+ Args: {
27912
+ p_attempt_id?: string;
27913
+ p_availability_sent?: boolean;
27914
+ p_error?: string;
27915
+ p_id: string;
27916
+ p_outcome: string;
27917
+ p_permanent?: boolean;
27918
+ p_quantity_sent?: boolean;
27919
+ };
27920
+ Returns: undefined;
27921
+ };
25992
27922
  consume_bom_for_production: {
25993
27923
  Args: {
25994
27924
  p_connection_id: string;
@@ -26023,6 +27953,15 @@ export type Database = {
26023
27953
  wait_ms: number;
26024
27954
  }[];
26025
27955
  };
27956
+ consume_order_item: {
27957
+ Args: {
27958
+ p_order_id: string;
27959
+ p_order_item_id: string;
27960
+ p_reason: string;
27961
+ p_source: string;
27962
+ };
27963
+ Returns: number;
27964
+ };
26026
27965
  consume_print_agent_pairing: {
26027
27966
  Args: {
26028
27967
  _pairing_hash: string;
@@ -26155,6 +28094,10 @@ export type Database = {
26155
28094
  };
26156
28095
  Returns: Json;
26157
28096
  };
28097
+ drain_inventory_recompute_queue: {
28098
+ Args: never;
28099
+ Returns: number;
28100
+ };
26158
28101
  effective_module_permission: {
26159
28102
  Args: {
26160
28103
  _module_id: string;
@@ -26227,6 +28170,18 @@ export type Database = {
26227
28170
  };
26228
28171
  Returns: undefined;
26229
28172
  };
28173
+ enqueue_structure_recompute: {
28174
+ Args: {
28175
+ p_include_self?: boolean;
28176
+ p_product_ids: string[];
28177
+ p_reason: string;
28178
+ };
28179
+ Returns: number;
28180
+ };
28181
+ ensure_inventory_recompute_drain: {
28182
+ Args: never;
28183
+ Returns: undefined;
28184
+ };
26230
28185
  ensure_system_roles: {
26231
28186
  Args: never;
26232
28187
  Returns: {
@@ -26240,6 +28195,12 @@ export type Database = {
26240
28195
  };
26241
28196
  Returns: undefined;
26242
28197
  };
28198
+ ensure_trade_item_stock_row_key: {
28199
+ Args: {
28200
+ p_key: string;
28201
+ };
28202
+ Returns: string;
28203
+ };
26243
28204
  ensure_user_tenant: {
26244
28205
  Args: never;
26245
28206
  Returns: string;
@@ -26326,7 +28287,7 @@ export type Database = {
26326
28287
  };
26327
28288
  floriday_cleanup_stock_queue_v2: {
26328
28289
  Args: never;
26329
- Returns: undefined;
28290
+ Returns: Json;
26330
28291
  };
26331
28292
  floriday_compact_stock_snapshots: {
26332
28293
  Args: never;
@@ -26338,6 +28299,19 @@ export type Database = {
26338
28299
  };
26339
28300
  Returns: string;
26340
28301
  };
28302
+ floriday_desired_stock_regression_check: {
28303
+ Args: never;
28304
+ Returns: {
28305
+ actual: number;
28306
+ available: number;
28307
+ equal: boolean;
28308
+ expected: number;
28309
+ packing: number;
28310
+ product_id: string;
28311
+ product_name: string;
28312
+ stock_mode: string;
28313
+ }[];
28314
+ };
26341
28315
  floriday_effective_price: {
26342
28316
  Args: {
26343
28317
  _buyer_id: string;
@@ -26365,6 +28339,10 @@ export type Database = {
26365
28339
  };
26366
28340
  Returns: number;
26367
28341
  };
28342
+ floriday_orphan_settings_count: {
28343
+ Args: never;
28344
+ Returns: number;
28345
+ };
26368
28346
  floriday_publish_horizon_weeks: {
26369
28347
  Args: never;
26370
28348
  Returns: number;
@@ -26596,6 +28574,18 @@ export type Database = {
26596
28574
  updated_at: string;
26597
28575
  }[];
26598
28576
  };
28577
+ get_product_structure_totals: {
28578
+ Args: {
28579
+ p_product_id: string;
28580
+ };
28581
+ Returns: Json;
28582
+ };
28583
+ get_product_structure_totals_batch: {
28584
+ Args: {
28585
+ p_product_ids: string[];
28586
+ };
28587
+ Returns: Json[];
28588
+ };
26599
28589
  get_room_busy_windows: {
26600
28590
  Args: {
26601
28591
  p_from: string;
@@ -26893,6 +28883,12 @@ export type Database = {
26893
28883
  Args: never;
26894
28884
  Returns: boolean;
26895
28885
  };
28886
+ import_floriday_delivery_locations: {
28887
+ Args: {
28888
+ _org_id: string;
28889
+ };
28890
+ Returns: number;
28891
+ };
26896
28892
  inkoop_apply_price_list: {
26897
28893
  Args: {
26898
28894
  _price_list_id: string;
@@ -27013,6 +29009,16 @@ export type Database = {
27013
29009
  };
27014
29010
  Returns: number;
27015
29011
  };
29012
+ inventory_inline_budget_ok: {
29013
+ Args: never;
29014
+ Returns: boolean;
29015
+ };
29016
+ invoice_auto_concept_for_work_order: {
29017
+ Args: {
29018
+ _wo_id: string;
29019
+ };
29020
+ Returns: undefined;
29021
+ };
27016
29022
  invoice_branding_snapshot: {
27017
29023
  Args: never;
27018
29024
  Returns: Json;
@@ -27280,6 +29286,24 @@ export type Database = {
27280
29286
  };
27281
29287
  Returns: string;
27282
29288
  };
29289
+ logistics_allocation_check_changes: {
29290
+ Args: {
29291
+ p_order_item_ids?: string[];
29292
+ };
29293
+ Returns: Json;
29294
+ };
29295
+ logistics_allocation_fp: {
29296
+ Args: {
29297
+ p_order_id: string;
29298
+ };
29299
+ Returns: string;
29300
+ };
29301
+ logistics_allocation_frozen: {
29302
+ Args: {
29303
+ p_order_id: string;
29304
+ };
29305
+ Returns: boolean;
29306
+ };
27283
29307
  logistics_allowed_load_carriers: {
27284
29308
  Args: {
27285
29309
  p_strategy_id?: string;
@@ -27293,6 +29317,13 @@ export type Database = {
27293
29317
  };
27294
29318
  Returns: string;
27295
29319
  };
29320
+ logistics_apply_cart_swap: {
29321
+ Args: {
29322
+ p_delete_ids: string[];
29323
+ p_new_carts: Json;
29324
+ };
29325
+ Returns: Json;
29326
+ };
27296
29327
  logistics_apply_document_layouts: {
27297
29328
  Args: never;
27298
29329
  Returns: undefined;
@@ -27321,6 +29352,14 @@ export type Database = {
27321
29352
  };
27322
29353
  Returns: Json;
27323
29354
  };
29355
+ logistics_base_url_check_status: {
29356
+ Args: never;
29357
+ Returns: Json;
29358
+ };
29359
+ logistics_base_url_checks_resolve: {
29360
+ Args: never;
29361
+ Returns: number;
29362
+ };
27324
29363
  logistics_block_reason_code: {
27325
29364
  Args: {
27326
29365
  p_details?: Json;
@@ -27961,6 +30000,15 @@ export type Database = {
27961
30000
  };
27962
30001
  Returns: Database["public"]["Enums"]["doc_layout_type"][];
27963
30002
  };
30003
+ logistics_double_group_lines: {
30004
+ Args: {
30005
+ p_order_id?: string;
30006
+ };
30007
+ Returns: {
30008
+ group_id: string;
30009
+ order_item_id: string;
30010
+ }[];
30011
+ };
27964
30012
  logistics_emit_event: {
27965
30013
  Args: {
27966
30014
  p_event_type: string;
@@ -28016,6 +30064,20 @@ export type Database = {
28016
30064
  };
28017
30065
  Returns: Json;
28018
30066
  };
30067
+ logistics_expand_line: {
30068
+ Args: {
30069
+ p_depth?: number;
30070
+ p_path?: string[];
30071
+ p_product_id: string;
30072
+ p_qty: number;
30073
+ };
30074
+ Returns: {
30075
+ kind: string;
30076
+ note: string;
30077
+ qty: number;
30078
+ ref: string;
30079
+ }[];
30080
+ };
28019
30081
  logistics_fail_task: {
28020
30082
  Args: {
28021
30083
  p_error: string;
@@ -28205,6 +30267,18 @@ export type Database = {
28205
30267
  };
28206
30268
  Returns: boolean;
28207
30269
  };
30270
+ logistics_frozen_allocation_scaled: {
30271
+ Args: {
30272
+ p_new_qty: number;
30273
+ p_order_item_id: string;
30274
+ };
30275
+ Returns: {
30276
+ group_id: string;
30277
+ qty: number;
30278
+ source: string;
30279
+ trade_item_key: string;
30280
+ }[];
30281
+ };
28208
30282
  logistics_fulfill_barcode_requests: {
28209
30283
  Args: {
28210
30284
  p_limit?: number;
@@ -28219,12 +30293,31 @@ export type Database = {
28219
30293
  Args: never;
28220
30294
  Returns: number;
28221
30295
  };
30296
+ logistics_is_engine_response: {
30297
+ Args: {
30298
+ p_content: string;
30299
+ p_status: number;
30300
+ };
30301
+ Returns: boolean;
30302
+ };
30303
+ logistics_is_group_label: {
30304
+ Args: {
30305
+ p_label: string;
30306
+ };
30307
+ Returns: boolean;
30308
+ };
28222
30309
  logistics_is_pick_workday: {
28223
30310
  Args: {
28224
30311
  p_date: string;
28225
30312
  };
28226
30313
  Returns: boolean;
28227
30314
  };
30315
+ logistics_key_product: {
30316
+ Args: {
30317
+ p_key: string;
30318
+ };
30319
+ Returns: string;
30320
+ };
28228
30321
  logistics_layout_method_status: {
28229
30322
  Args: never;
28230
30323
  Returns: Json;
@@ -28327,6 +30420,12 @@ export type Database = {
28327
30420
  };
28328
30421
  Returns: undefined;
28329
30422
  };
30423
+ logistics_order_current_warnings: {
30424
+ Args: {
30425
+ p_order_id: string;
30426
+ };
30427
+ Returns: string[];
30428
+ };
28330
30429
  logistics_order_documents_ready: {
28331
30430
  Args: {
28332
30431
  p_order_ref: string;
@@ -28408,6 +30507,18 @@ export type Database = {
28408
30507
  };
28409
30508
  Returns: boolean;
28410
30509
  };
30510
+ logistics_order_line_allocation: {
30511
+ Args: {
30512
+ p_order_item_id: string;
30513
+ };
30514
+ Returns: {
30515
+ group_id: string;
30516
+ note: string;
30517
+ qty: number;
30518
+ source: string;
30519
+ trade_item_key: string;
30520
+ }[];
30521
+ };
28411
30522
  logistics_order_line_duplicates: {
28412
30523
  Args: {
28413
30524
  p_order_id: string;
@@ -28767,6 +30878,21 @@ export type Database = {
28767
30878
  Args: never;
28768
30879
  Returns: number;
28769
30880
  };
30881
+ logistics_plan_wachttijd: {
30882
+ Args: {
30883
+ p_order_id: string;
30884
+ p_reason: string;
30885
+ };
30886
+ Returns: Json;
30887
+ };
30888
+ logistics_plan_wachttijd_melden: {
30889
+ Args: {
30890
+ p_order_id: string;
30891
+ p_reason: string;
30892
+ p_wacht: Json;
30893
+ };
30894
+ Returns: undefined;
30895
+ };
28770
30896
  logistics_planner_cart_snapshot: {
28771
30897
  Args: {
28772
30898
  p_buffer_id: string;
@@ -28782,6 +30908,23 @@ export type Database = {
28782
30908
  Args: never;
28783
30909
  Returns: number;
28784
30910
  };
30911
+ logistics_planner_lines: {
30912
+ Args: {
30913
+ p_order_id: string;
30914
+ };
30915
+ Returns: {
30916
+ components: Json;
30917
+ frozen: boolean;
30918
+ group_id: string;
30919
+ note: string;
30920
+ order_item_id: string;
30921
+ product_id: string;
30922
+ product_name: string;
30923
+ qty: number;
30924
+ trade_item_key: string;
30925
+ unit_kind: string;
30926
+ }[];
30927
+ };
28785
30928
  logistics_prepare_pick_documents: {
28786
30929
  Args: {
28787
30930
  p_limit?: number;
@@ -28853,6 +30996,12 @@ export type Database = {
28853
30996
  Args: never;
28854
30997
  Returns: number;
28855
30998
  };
30999
+ logistics_recompute_reserved_targeted: {
31000
+ Args: {
31001
+ p_product_id: string;
31002
+ };
31003
+ Returns: Json;
31004
+ };
28856
31005
  logistics_reconcile_missing_plan_queue: {
28857
31006
  Args: never;
28858
31007
  Returns: number;
@@ -28906,6 +31055,13 @@ export type Database = {
28906
31055
  };
28907
31056
  Returns: Json;
28908
31057
  };
31058
+ logistics_replan_selected_orders: {
31059
+ Args: {
31060
+ p_order_ids: string[];
31061
+ p_reason?: string;
31062
+ };
31063
+ Returns: Json;
31064
+ };
28909
31065
  logistics_report_delay: {
28910
31066
  Args: {
28911
31067
  p_expected_date?: string;
@@ -28922,6 +31078,12 @@ export type Database = {
28922
31078
  };
28923
31079
  Returns: string;
28924
31080
  };
31081
+ logistics_report_frozen_shortage: {
31082
+ Args: {
31083
+ p_order_item_ids: string[];
31084
+ };
31085
+ Returns: undefined;
31086
+ };
28925
31087
  logistics_rescan_orders: {
28926
31088
  Args: {
28927
31089
  p_days?: number;
@@ -28950,6 +31112,19 @@ export type Database = {
28950
31112
  };
28951
31113
  Returns: Json;
28952
31114
  };
31115
+ logistics_reserved_fast_skip: {
31116
+ Args: {
31117
+ p_key: string;
31118
+ p_raw: string;
31119
+ };
31120
+ Returns: boolean;
31121
+ };
31122
+ logistics_reserved_key: {
31123
+ Args: {
31124
+ p_key: string;
31125
+ };
31126
+ Returns: string;
31127
+ };
28953
31128
  logistics_reserved_stock_nightly: {
28954
31129
  Args: never;
28955
31130
  Returns: undefined;
@@ -28969,6 +31144,12 @@ export type Database = {
28969
31144
  };
28970
31145
  Returns: string;
28971
31146
  };
31147
+ logistics_resolve_product_match: {
31148
+ Args: {
31149
+ p_label: string;
31150
+ };
31151
+ Returns: Record<string, unknown>;
31152
+ };
28972
31153
  logistics_resolve_settings: {
28973
31154
  Args: {
28974
31155
  p_config_id: string;
@@ -29089,6 +31270,16 @@ export type Database = {
29089
31270
  };
29090
31271
  Returns: string;
29091
31272
  };
31273
+ logistics_shipping_note_max_attempts: {
31274
+ Args: never;
31275
+ Returns: number;
31276
+ };
31277
+ logistics_shipping_note_release: {
31278
+ Args: {
31279
+ _order_number?: string;
31280
+ };
31281
+ Returns: number;
31282
+ };
29092
31283
  logistics_shipping_note_status: {
29093
31284
  Args: {
29094
31285
  p_cart_id?: string;
@@ -29096,6 +31287,12 @@ export type Database = {
29096
31287
  };
29097
31288
  Returns: Json;
29098
31289
  };
31290
+ logistics_shipping_note_wake: {
31291
+ Args: {
31292
+ _slip_job_id: string;
31293
+ };
31294
+ Returns: number;
31295
+ };
29099
31296
  logistics_shipping_notes_wake_all: {
29100
31297
  Args: never;
29101
31298
  Returns: Json;
@@ -29130,6 +31327,7 @@ export type Database = {
29130
31327
  slip_job_id: string;
29131
31328
  status: string;
29132
31329
  updated_at: string;
31330
+ voor_herstel: boolean;
29133
31331
  }[];
29134
31332
  SetofOptions: {
29135
31333
  from: "*";
@@ -29150,6 +31348,13 @@ export type Database = {
29150
31348
  };
29151
31349
  Returns: undefined;
29152
31350
  };
31351
+ logistics_slip_note_hold: {
31352
+ Args: {
31353
+ _id: string;
31354
+ _reason: string;
31355
+ };
31356
+ Returns: undefined;
31357
+ };
29153
31358
  logistics_slip_note_keep_waiting: {
29154
31359
  Args: {
29155
31360
  _class?: string;
@@ -29237,6 +31442,18 @@ export type Database = {
29237
31442
  Args: never;
29238
31443
  Returns: Json;
29239
31444
  };
31445
+ logistics_tick_base_url_check: {
31446
+ Args: never;
31447
+ Returns: Json;
31448
+ };
31449
+ logistics_tick_calls_resolve: {
31450
+ Args: never;
31451
+ Returns: number;
31452
+ };
31453
+ logistics_tick_health: {
31454
+ Args: never;
31455
+ Returns: Json;
31456
+ };
29240
31457
  logistics_tick_ping: {
29241
31458
  Args: never;
29242
31459
  Returns: string;
@@ -30381,6 +32598,31 @@ export type Database = {
30381
32598
  };
30382
32599
  Returns: undefined;
30383
32600
  };
32601
+ plan_standby_batch: {
32602
+ Args: {
32603
+ _items: Json;
32604
+ _notes: string;
32605
+ _remove_ids?: string[];
32606
+ _soort: string;
32607
+ };
32608
+ Returns: {
32609
+ created_at: string;
32610
+ created_by: string | null;
32611
+ employee_id: string;
32612
+ end_date: string;
32613
+ id: string;
32614
+ notes: string | null;
32615
+ soort: string;
32616
+ start_date: string;
32617
+ updated_at: string;
32618
+ }[];
32619
+ SetofOptions: {
32620
+ from: "*";
32621
+ to: "standby_planning";
32622
+ isOneToOne: false;
32623
+ isSetofReturn: true;
32624
+ };
32625
+ };
30384
32626
  planning_apply_schedule_updates: {
30385
32627
  Args: {
30386
32628
  _updates: Json;
@@ -30403,6 +32645,12 @@ export type Database = {
30403
32645
  };
30404
32646
  Returns: undefined;
30405
32647
  };
32648
+ planning_html_escape: {
32649
+ Args: {
32650
+ t: string;
32651
+ };
32652
+ Returns: string;
32653
+ };
30406
32654
  planning_list: {
30407
32655
  Args: {
30408
32656
  _from: string;
@@ -30457,6 +32705,12 @@ export type Database = {
30457
32705
  id: string;
30458
32706
  }[];
30459
32707
  };
32708
+ planning_urlencode: {
32709
+ Args: {
32710
+ t: string;
32711
+ };
32712
+ Returns: string;
32713
+ };
30460
32714
  print_preview_toestaan: {
30461
32715
  Args: {
30462
32716
  _max?: number;
@@ -30475,6 +32729,41 @@ export type Database = {
30475
32729
  };
30476
32730
  Returns: undefined;
30477
32731
  };
32732
+ printer_gebruik: {
32733
+ Args: {
32734
+ _printer: string;
32735
+ };
32736
+ Returns: Json;
32737
+ };
32738
+ printer_routering: {
32739
+ Args: {
32740
+ _documenttype: string;
32741
+ _layout_id?: string;
32742
+ _papierformaat?: string;
32743
+ _print_plek_id?: string;
32744
+ _werkplek?: string;
32745
+ };
32746
+ Returns: Json;
32747
+ };
32748
+ printplek_printer: {
32749
+ Args: {
32750
+ _documenttype: string;
32751
+ _plek: string;
32752
+ };
32753
+ Returns: string;
32754
+ };
32755
+ printplek_verwijder_impact: {
32756
+ Args: {
32757
+ _id: string;
32758
+ };
32759
+ Returns: Json;
32760
+ };
32761
+ process_inventory_recompute_queue: {
32762
+ Args: {
32763
+ p_limit?: number;
32764
+ };
32765
+ Returns: number;
32766
+ };
30478
32767
  process_logistics_event: {
30479
32768
  Args: {
30480
32769
  p_event_id: string;
@@ -30489,6 +32778,90 @@ export type Database = {
30489
32778
  };
30490
32779
  Returns: Json;
30491
32780
  };
32781
+ product_active_group_id: {
32782
+ Args: {
32783
+ p_product_id: string;
32784
+ };
32785
+ Returns: string;
32786
+ };
32787
+ product_id_from_ref: {
32788
+ Args: {
32789
+ p_ref: string;
32790
+ };
32791
+ Returns: string;
32792
+ };
32793
+ product_is_set: {
32794
+ Args: {
32795
+ p_product_id: string;
32796
+ };
32797
+ Returns: boolean;
32798
+ };
32799
+ product_label: {
32800
+ Args: {
32801
+ p_id: string;
32802
+ };
32803
+ Returns: string;
32804
+ };
32805
+ product_member_group_ids: {
32806
+ Args: {
32807
+ p_product_id: string;
32808
+ };
32809
+ Returns: string[];
32810
+ };
32811
+ product_own_available: {
32812
+ Args: {
32813
+ p_connection_id: string;
32814
+ p_product_id: string;
32815
+ };
32816
+ Returns: Record<string, unknown>;
32817
+ };
32818
+ product_set_depth_above: {
32819
+ Args: {
32820
+ p_path?: string[];
32821
+ p_product_id: string;
32822
+ };
32823
+ Returns: number;
32824
+ };
32825
+ product_set_depth_below: {
32826
+ Args: {
32827
+ p_path?: string[];
32828
+ p_product_id: string;
32829
+ };
32830
+ Returns: number;
32831
+ };
32832
+ product_structure_ancestors: {
32833
+ Args: {
32834
+ p_product_ids: string[];
32835
+ };
32836
+ Returns: string[];
32837
+ };
32838
+ product_structure_max_depth: {
32839
+ Args: never;
32840
+ Returns: number;
32841
+ };
32842
+ product_structure_path: {
32843
+ Args: {
32844
+ p_from: string;
32845
+ p_target: string;
32846
+ };
32847
+ Returns: string[];
32848
+ };
32849
+ product_type: {
32850
+ Args: {
32851
+ p_product_id: string;
32852
+ };
32853
+ Returns: string;
32854
+ };
32855
+ promote_floriday_customer: {
32856
+ Args: {
32857
+ _org_id: string;
32858
+ };
32859
+ Returns: string;
32860
+ };
32861
+ promote_floriday_order_customers: {
32862
+ Args: never;
32863
+ Returns: number;
32864
+ };
30492
32865
  promote_trade_item_key: {
30493
32866
  Args: {
30494
32867
  p_new: string;
@@ -30542,6 +32915,13 @@ export type Database = {
30542
32915
  };
30543
32916
  Returns: boolean;
30544
32917
  };
32918
+ quote_fill_from_form: {
32919
+ Args: {
32920
+ _offerte_id: string;
32921
+ _payload: Json;
32922
+ };
32923
+ Returns: Json;
32924
+ };
30545
32925
  quote_get_billable_lines: {
30546
32926
  Args: {
30547
32927
  _quotation_id: string;
@@ -30571,12 +32951,43 @@ export type Database = {
30571
32951
  };
30572
32952
  Returns: Json;
30573
32953
  };
32954
+ quote_public_accept: {
32955
+ Args: {
32956
+ _akkoord: boolean;
32957
+ _email: string;
32958
+ _ip_address?: string;
32959
+ _naam: string;
32960
+ _token: string;
32961
+ _user_agent?: string;
32962
+ };
32963
+ Returns: Json;
32964
+ };
32965
+ quote_public_get: {
32966
+ Args: {
32967
+ _token: string;
32968
+ };
32969
+ Returns: Json;
32970
+ };
32971
+ quote_public_sign: {
32972
+ Args: {
32973
+ _handtekening: string;
32974
+ _naam: string;
32975
+ _token: string;
32976
+ };
32977
+ Returns: Json;
32978
+ };
30574
32979
  quote_queue_follow_up: {
30575
32980
  Args: {
30576
32981
  _offerte_id: string;
30577
32982
  };
30578
32983
  Returns: string;
30579
32984
  };
32985
+ quote_release_work_order: {
32986
+ Args: {
32987
+ _offerte_id: string;
32988
+ };
32989
+ Returns: Json;
32990
+ };
30580
32991
  quote_sync_work_order: {
30581
32992
  Args: {
30582
32993
  _monteur_instructies?: string;
@@ -30630,6 +33041,10 @@ export type Database = {
30630
33041
  };
30631
33042
  Returns: number;
30632
33043
  };
33044
+ refresh_floriday_delivery_locations: {
33045
+ Args: never;
33046
+ Returns: number;
33047
+ };
30633
33048
  release_debtor_lock: {
30634
33049
  Args: {
30635
33050
  _group_key: string;
@@ -30677,6 +33092,14 @@ export type Database = {
30677
33092
  };
30678
33093
  Returns: Json;
30679
33094
  };
33095
+ requeue_skipped_stock_rows: {
33096
+ Args: {
33097
+ p_connection_id: string;
33098
+ p_status: string;
33099
+ p_trade_item_id?: string;
33100
+ };
33101
+ Returns: number;
33102
+ };
30680
33103
  reset_cart_layer_positions: {
30681
33104
  Args: {
30682
33105
  p_cart_id: string;
@@ -30789,6 +33212,41 @@ export type Database = {
30789
33212
  Args: never;
30790
33213
  Returns: undefined;
30791
33214
  };
33215
+ save_belading: {
33216
+ Args: {
33217
+ p_expected_updated_at: string;
33218
+ p_packing_configuration_id: string;
33219
+ p_product_id: string;
33220
+ p_tenant_id: string;
33221
+ p_trade_item_floriday_id: string;
33222
+ p_values: Json;
33223
+ };
33224
+ Returns: Json;
33225
+ };
33226
+ save_product_group: {
33227
+ Args: {
33228
+ p_description: string;
33229
+ p_expected_updated_at: string;
33230
+ p_head_product_id: string;
33231
+ p_id: string;
33232
+ p_is_active: boolean;
33233
+ p_members: Json;
33234
+ p_name: string;
33235
+ };
33236
+ Returns: Json;
33237
+ };
33238
+ save_samenstelling: {
33239
+ Args: {
33240
+ p_components: Json;
33241
+ p_expected_updated_at: string;
33242
+ p_external: Json;
33243
+ p_packing_configuration_id: string;
33244
+ p_parent_id: string;
33245
+ p_parent_kind: string;
33246
+ p_tenant_id: string;
33247
+ };
33248
+ Returns: Json;
33249
+ };
30792
33250
  scan_cancel_kar: {
30793
33251
  Args: {
30794
33252
  p_kar_id: string;
@@ -31270,6 +33728,10 @@ export type Database = {
31270
33728
  Args: never;
31271
33729
  Returns: number;
31272
33730
  };
33731
+ server_now: {
33732
+ Args: never;
33733
+ Returns: string;
33734
+ };
31273
33735
  set_planning_status: {
31274
33736
  Args: {
31275
33737
  _id: string;
@@ -31318,6 +33780,40 @@ export type Database = {
31318
33780
  };
31319
33781
  Returns: Json;
31320
33782
  };
33783
+ stock_import_cleanup: {
33784
+ Args: never;
33785
+ Returns: number;
33786
+ };
33787
+ stock_import_create: {
33788
+ Args: {
33789
+ p_connection_id: string;
33790
+ p_file_hash: string;
33791
+ p_filename: string;
33792
+ p_force?: boolean;
33793
+ p_rows: Json;
33794
+ };
33795
+ Returns: Json;
33796
+ };
33797
+ stock_import_process_chunk: {
33798
+ Args: {
33799
+ p_chunk_no: number;
33800
+ p_run_id: string;
33801
+ };
33802
+ Returns: Json;
33803
+ };
33804
+ stock_import_stop: {
33805
+ Args: {
33806
+ p_run_id: string;
33807
+ };
33808
+ Returns: Json;
33809
+ };
33810
+ stock_import_undo_chunk: {
33811
+ Args: {
33812
+ p_chunk_no: number;
33813
+ p_run_id: string;
33814
+ };
33815
+ Returns: Json;
33816
+ };
31321
33817
  stop_time_log: {
31322
33818
  Args: {
31323
33819
  p_employee_id: string;
@@ -31333,6 +33829,9 @@ export type Database = {
31333
33829
  p_log_id: string;
31334
33830
  };
31335
33831
  Returns: {
33832
+ aangepast_door_monteur: boolean;
33833
+ aangepast_op: string | null;
33834
+ aanpassing_reden: string | null;
31336
33835
  auto_stop_reason: string | null;
31337
33836
  auto_stopped: boolean;
31338
33837
  created_at: string;
@@ -31503,6 +34002,28 @@ export type Database = {
31503
34002
  };
31504
34003
  Returns: Json;
31505
34004
  };
34005
+ twinfield_sync_apply: {
34006
+ Args: {
34007
+ _base: Json;
34008
+ _customer_id: string;
34009
+ _patch: Json;
34010
+ _uid: string;
34011
+ _version: number;
34012
+ };
34013
+ Returns: undefined;
34014
+ };
34015
+ twinfield_sync_insert: {
34016
+ Args: {
34017
+ _row: Json;
34018
+ };
34019
+ Returns: string;
34020
+ };
34021
+ twinfield_sync_mark_missing: {
34022
+ Args: {
34023
+ _ids: string[];
34024
+ };
34025
+ Returns: undefined;
34026
+ };
31506
34027
  twinfield_upsert_connection_by_account_key: {
31507
34028
  Args: {
31508
34029
  p_account_key: string;
@@ -31528,6 +34049,55 @@ export type Database = {
31528
34049
  };
31529
34050
  Returns: undefined;
31530
34051
  };
34052
+ uren_collega_agenda: {
34053
+ Args: {
34054
+ _monteur: string;
34055
+ _tot: string;
34056
+ _van: string;
34057
+ };
34058
+ Returns: {
34059
+ afwezig: string;
34060
+ datum: string;
34061
+ gepland: number;
34062
+ kort_vrij: Json;
34063
+ overuren: number;
34064
+ standby_avond: boolean;
34065
+ standby_ingepland: string;
34066
+ standby_weekend: boolean;
34067
+ werk_eind: string;
34068
+ werk_start: string;
34069
+ }[];
34070
+ };
34071
+ uren_dag_controle: {
34072
+ Args: {
34073
+ _datum: string;
34074
+ _monteur: string;
34075
+ _toekomst_toegestaan: boolean;
34076
+ };
34077
+ Returns: undefined;
34078
+ };
34079
+ uren_dag_controle_vrij: {
34080
+ Args: {
34081
+ _datum: string;
34082
+ _monteur: string;
34083
+ };
34084
+ Returns: undefined;
34085
+ };
34086
+ uren_dag_km_opslaan: {
34087
+ Args: {
34088
+ _datum: string;
34089
+ _km: number;
34090
+ };
34091
+ Returns: undefined;
34092
+ };
34093
+ uren_dag_registraties_aanpassen: {
34094
+ Args: {
34095
+ _datum: string;
34096
+ _reden: string;
34097
+ _regels: Json;
34098
+ };
34099
+ Returns: number;
34100
+ };
31531
34101
  uren_employee_day_hours: {
31532
34102
  Args: {
31533
34103
  _day: string;
@@ -31535,6 +34105,24 @@ export type Database = {
31535
34105
  };
31536
34106
  Returns: number;
31537
34107
  };
34108
+ uren_heeft_pagina_toegang: {
34109
+ Args: never;
34110
+ Returns: boolean;
34111
+ };
34112
+ uren_indirect_opslaan: {
34113
+ Args: {
34114
+ _datum: string;
34115
+ _minuten: number;
34116
+ _toelichting: string;
34117
+ };
34118
+ Returns: string;
34119
+ };
34120
+ uren_indirect_verwijderen: {
34121
+ Args: {
34122
+ _id: string;
34123
+ };
34124
+ Returns: undefined;
34125
+ };
31538
34126
  uren_is_beheerder: {
31539
34127
  Args: never;
31540
34128
  Returns: boolean;
@@ -31575,6 +34163,13 @@ export type Database = {
31575
34163
  roles: string[];
31576
34164
  }[];
31577
34165
  };
34166
+ uren_list_monteurs: {
34167
+ Args: never;
34168
+ Returns: {
34169
+ id: string;
34170
+ naam: string;
34171
+ }[];
34172
+ };
31578
34173
  uren_list_planner_contacten: {
31579
34174
  Args: never;
31580
34175
  Returns: {
@@ -31618,6 +34213,23 @@ export type Database = {
31618
34213
  Args: never;
31619
34214
  Returns: string;
31620
34215
  };
34216
+ uren_overuren_indienen: {
34217
+ Args: {
34218
+ _datum: string;
34219
+ _toelichting?: string;
34220
+ _uren_na: number;
34221
+ _uren_voor: number;
34222
+ _verwerking: string;
34223
+ };
34224
+ Returns: undefined;
34225
+ };
34226
+ uren_pagina_toegang_instellen: {
34227
+ Args: {
34228
+ _toegang: boolean;
34229
+ _user_id: string;
34230
+ };
34231
+ Returns: undefined;
34232
+ };
31621
34233
  uren_planning_dagagenda: {
31622
34234
  Args: {
31623
34235
  _tot: string;
@@ -31678,6 +34290,36 @@ export type Database = {
31678
34290
  };
31679
34291
  Returns: undefined;
31680
34292
  };
34293
+ uren_standby_opslaan: {
34294
+ Args: {
34295
+ _datums: string[];
34296
+ _soort: string;
34297
+ _tot: string;
34298
+ _van: string;
34299
+ };
34300
+ Returns: undefined;
34301
+ };
34302
+ uren_standby_overdragen: {
34303
+ Args: {
34304
+ _datum: string;
34305
+ _naar: string;
34306
+ };
34307
+ Returns: undefined;
34308
+ };
34309
+ uren_standby_ruil: {
34310
+ Args: {
34311
+ _aan: boolean;
34312
+ _datum: string;
34313
+ };
34314
+ Returns: undefined;
34315
+ };
34316
+ uren_standby_sync: {
34317
+ Args: {
34318
+ _tot: string;
34319
+ _van: string;
34320
+ };
34321
+ Returns: undefined;
34322
+ };
31681
34323
  uren_stop_time_log: {
31682
34324
  Args: {
31683
34325
  p_employee_id: string;
@@ -31711,6 +34353,13 @@ export type Database = {
31711
34353
  };
31712
34354
  Returns: string;
31713
34355
  };
34356
+ uren_vakantiedag_verwijderen: {
34357
+ Args: {
34358
+ _datum: string;
34359
+ _leave_id: string;
34360
+ };
34361
+ Returns: undefined;
34362
+ };
31714
34363
  uren_vakantiedag_wijzigen: {
31715
34364
  Args: {
31716
34365
  _date: string;
@@ -31862,6 +34511,38 @@ export type Database = {
31862
34511
  user_id: string;
31863
34512
  }[];
31864
34513
  };
34514
+ vakantie_tvt_overzicht: {
34515
+ Args: {
34516
+ _year?: number;
34517
+ };
34518
+ Returns: {
34519
+ earned_from_tvt_days: number;
34520
+ hours_to_next_tvt_day: number;
34521
+ tvt_hours: number;
34522
+ tvt_remainder_hours: number;
34523
+ user_id: string;
34524
+ }[];
34525
+ };
34526
+ vakantie_tvt_uren: {
34527
+ Args: {
34528
+ _user_id: string;
34529
+ _year: number;
34530
+ };
34531
+ Returns: number;
34532
+ };
34533
+ vervang_printer: {
34534
+ Args: {
34535
+ _nieuw: string;
34536
+ _oud: string;
34537
+ };
34538
+ Returns: Json;
34539
+ };
34540
+ verwijder_printplek: {
34541
+ Args: {
34542
+ _id: string;
34543
+ };
34544
+ Returns: Json;
34545
+ };
31865
34546
  voorraad_cleanup_old_rows: {
31866
34547
  Args: never;
31867
34548
  Returns: Json;
@@ -31872,6 +34553,16 @@ export type Database = {
31872
34553
  };
31873
34554
  Returns: number;
31874
34555
  };
34556
+ werkbon_pakket_tijden: {
34557
+ Args: {
34558
+ _werkbon_id: string;
34559
+ };
34560
+ Returns: {
34561
+ labor_minutes: number;
34562
+ total_minutes: number;
34563
+ travel_minutes: number;
34564
+ }[];
34565
+ };
31875
34566
  werkbon_totalen: {
31876
34567
  Args: {
31877
34568
  _werkbon_id: string;
@@ -31904,6 +34595,12 @@ export type Database = {
31904
34595
  };
31905
34596
  Returns: Json;
31906
34597
  };
34598
+ wo_is_planned_monteur: {
34599
+ Args: {
34600
+ _werkbon_id: string;
34601
+ };
34602
+ Returns: boolean;
34603
+ };
31907
34604
  wo_list_colleague_planning: {
31908
34605
  Args: {
31909
34606
  _from: string;
@@ -31931,6 +34628,12 @@ export type Database = {
31931
34628
  };
31932
34629
  Returns: Json;
31933
34630
  };
34631
+ wo_open_standby: {
34632
+ Args: {
34633
+ _standby_id: string;
34634
+ };
34635
+ Returns: string;
34636
+ };
31934
34637
  wo_process_offerte_request: {
31935
34638
  Args: {
31936
34639
  _queue_id: string;