@flowselections/floriday-verkoop-module 1.0.70 → 1.0.74

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.
@@ -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;
@@ -6602,11 +6647,13 @@ export type Database = {
6602
6647
  floriday_continuous_stock_queue: {
6603
6648
  Row: {
6604
6649
  attempts: number;
6650
+ availability_sent_at: string | null;
6605
6651
  connection_id: string;
6606
6652
  created_at: string;
6607
6653
  dead_lettered_at: string | null;
6608
6654
  desired_available: boolean | null;
6609
6655
  gateway_attempt_id: string | null;
6656
+ gateway_unreachable_since: string | null;
6610
6657
  id: string;
6611
6658
  last_error: string | null;
6612
6659
  locked_at: string | null;
@@ -6614,7 +6661,9 @@ export type Database = {
6614
6661
  next_attempt_at: string;
6615
6662
  number_of_pieces: number;
6616
6663
  product_id: string | null;
6664
+ quantity_sent_at: string | null;
6617
6665
  sent_at: string | null;
6666
+ skip_reason: string | null;
6618
6667
  status: string;
6619
6668
  stock_mode: string | null;
6620
6669
  superseded_by: string | null;
@@ -6626,11 +6675,13 @@ export type Database = {
6626
6675
  };
6627
6676
  Insert: {
6628
6677
  attempts?: number;
6678
+ availability_sent_at?: string | null;
6629
6679
  connection_id: string;
6630
6680
  created_at?: string;
6631
6681
  dead_lettered_at?: string | null;
6632
6682
  desired_available?: boolean | null;
6633
6683
  gateway_attempt_id?: string | null;
6684
+ gateway_unreachable_since?: string | null;
6634
6685
  id?: string;
6635
6686
  last_error?: string | null;
6636
6687
  locked_at?: string | null;
@@ -6638,7 +6689,9 @@ export type Database = {
6638
6689
  next_attempt_at?: string;
6639
6690
  number_of_pieces?: number;
6640
6691
  product_id?: string | null;
6692
+ quantity_sent_at?: string | null;
6641
6693
  sent_at?: string | null;
6694
+ skip_reason?: string | null;
6642
6695
  status?: string;
6643
6696
  stock_mode?: string | null;
6644
6697
  superseded_by?: string | null;
@@ -6650,11 +6703,13 @@ export type Database = {
6650
6703
  };
6651
6704
  Update: {
6652
6705
  attempts?: number;
6706
+ availability_sent_at?: string | null;
6653
6707
  connection_id?: string;
6654
6708
  created_at?: string;
6655
6709
  dead_lettered_at?: string | null;
6656
6710
  desired_available?: boolean | null;
6657
6711
  gateway_attempt_id?: string | null;
6712
+ gateway_unreachable_since?: string | null;
6658
6713
  id?: string;
6659
6714
  last_error?: string | null;
6660
6715
  locked_at?: string | null;
@@ -6662,7 +6717,9 @@ export type Database = {
6662
6717
  next_attempt_at?: string;
6663
6718
  number_of_pieces?: number;
6664
6719
  product_id?: string | null;
6720
+ quantity_sent_at?: string | null;
6665
6721
  sent_at?: string | null;
6722
+ skip_reason?: string | null;
6666
6723
  status?: string;
6667
6724
  stock_mode?: string | null;
6668
6725
  superseded_by?: string | null;
@@ -6868,6 +6925,7 @@ export type Database = {
6868
6925
  rfh_company_account_id: string | null;
6869
6926
  rfh_relation_id: string | null;
6870
6927
  sequence_number: number | null;
6928
+ updated_at: string | null;
6871
6929
  };
6872
6930
  Insert: {
6873
6931
  connection_id?: string | null;
@@ -6883,6 +6941,7 @@ export type Database = {
6883
6941
  rfh_company_account_id?: string | null;
6884
6942
  rfh_relation_id?: string | null;
6885
6943
  sequence_number?: number | null;
6944
+ updated_at?: string | null;
6886
6945
  };
6887
6946
  Update: {
6888
6947
  connection_id?: string | null;
@@ -6898,6 +6957,7 @@ export type Database = {
6898
6957
  rfh_company_account_id?: string | null;
6899
6958
  rfh_relation_id?: string | null;
6900
6959
  sequence_number?: number | null;
6960
+ updated_at?: string | null;
6901
6961
  };
6902
6962
  Relationships: [
6903
6963
  {
@@ -7185,7 +7245,9 @@ export type Database = {
7185
7245
  };
7186
7246
  floriday_inventory_settings: {
7187
7247
  Row: {
7248
+ action_reason: string | null;
7188
7249
  buffer_quantity: number;
7250
+ computed_available: number | null;
7189
7251
  connection_id: string;
7190
7252
  created_at: string;
7191
7253
  desired_availability: boolean;
@@ -7197,21 +7259,27 @@ export type Database = {
7197
7259
  last_enqueued_at: string | null;
7198
7260
  last_published_at: string | null;
7199
7261
  last_sync_error: string | null;
7262
+ limiting_product_id: string | null;
7200
7263
  manual_quantity: number | null;
7201
7264
  maximum_quantity: number | null;
7265
+ packing_size: number | null;
7202
7266
  product_id: string;
7267
+ product_type: string | null;
7203
7268
  quantity_control: string;
7204
7269
  remote_available: boolean | null;
7205
7270
  remote_checked_at: string | null;
7206
7271
  remote_quantity: number | null;
7207
7272
  stock_mode: string;
7273
+ structure_detail: Json | null;
7208
7274
  sync_status: string;
7209
7275
  updated_at: string;
7210
7276
  updated_by: string | null;
7211
7277
  user_id: string;
7212
7278
  };
7213
7279
  Insert: {
7280
+ action_reason?: string | null;
7214
7281
  buffer_quantity?: number;
7282
+ computed_available?: number | null;
7215
7283
  connection_id: string;
7216
7284
  created_at?: string;
7217
7285
  desired_availability?: boolean;
@@ -7223,21 +7291,27 @@ export type Database = {
7223
7291
  last_enqueued_at?: string | null;
7224
7292
  last_published_at?: string | null;
7225
7293
  last_sync_error?: string | null;
7294
+ limiting_product_id?: string | null;
7226
7295
  manual_quantity?: number | null;
7227
7296
  maximum_quantity?: number | null;
7297
+ packing_size?: number | null;
7228
7298
  product_id: string;
7299
+ product_type?: string | null;
7229
7300
  quantity_control?: string;
7230
7301
  remote_available?: boolean | null;
7231
7302
  remote_checked_at?: string | null;
7232
7303
  remote_quantity?: number | null;
7233
7304
  stock_mode?: string;
7305
+ structure_detail?: Json | null;
7234
7306
  sync_status?: string;
7235
7307
  updated_at?: string;
7236
7308
  updated_by?: string | null;
7237
7309
  user_id: string;
7238
7310
  };
7239
7311
  Update: {
7312
+ action_reason?: string | null;
7240
7313
  buffer_quantity?: number;
7314
+ computed_available?: number | null;
7241
7315
  connection_id?: string;
7242
7316
  created_at?: string;
7243
7317
  desired_availability?: boolean;
@@ -7249,20 +7323,39 @@ export type Database = {
7249
7323
  last_enqueued_at?: string | null;
7250
7324
  last_published_at?: string | null;
7251
7325
  last_sync_error?: string | null;
7326
+ limiting_product_id?: string | null;
7252
7327
  manual_quantity?: number | null;
7253
7328
  maximum_quantity?: number | null;
7329
+ packing_size?: number | null;
7254
7330
  product_id?: string;
7331
+ product_type?: string | null;
7255
7332
  quantity_control?: string;
7256
7333
  remote_available?: boolean | null;
7257
7334
  remote_checked_at?: string | null;
7258
7335
  remote_quantity?: number | null;
7259
7336
  stock_mode?: string;
7337
+ structure_detail?: Json | null;
7260
7338
  sync_status?: string;
7261
7339
  updated_at?: string;
7262
7340
  updated_by?: string | null;
7263
7341
  user_id?: string;
7264
7342
  };
7265
- Relationships: [];
7343
+ Relationships: [
7344
+ {
7345
+ foreignKeyName: "floriday_inventory_settings_product_id_fkey";
7346
+ columns: ["product_id"];
7347
+ isOneToOne: false;
7348
+ referencedRelation: "logistics_product_dimensions";
7349
+ referencedColumns: ["product_id"];
7350
+ },
7351
+ {
7352
+ foreignKeyName: "floriday_inventory_settings_product_id_fkey";
7353
+ columns: ["product_id"];
7354
+ isOneToOne: false;
7355
+ referencedRelation: "products";
7356
+ referencedColumns: ["id"];
7357
+ }
7358
+ ];
7266
7359
  };
7267
7360
  floriday_invoices_cache: {
7268
7361
  Row: {
@@ -7611,6 +7704,39 @@ export type Database = {
7611
7704
  }
7612
7705
  ];
7613
7706
  };
7707
+ floriday_queue_cleanup_runs: {
7708
+ Row: {
7709
+ created_at: string;
7710
+ deleted: Json;
7711
+ error: string | null;
7712
+ finished_at: string | null;
7713
+ id: string;
7714
+ more_remaining: boolean;
7715
+ orphan_settings: number | null;
7716
+ started_at: string;
7717
+ };
7718
+ Insert: {
7719
+ created_at?: string;
7720
+ deleted?: Json;
7721
+ error?: string | null;
7722
+ finished_at?: string | null;
7723
+ id?: string;
7724
+ more_remaining?: boolean;
7725
+ orphan_settings?: number | null;
7726
+ started_at?: string;
7727
+ };
7728
+ Update: {
7729
+ created_at?: string;
7730
+ deleted?: Json;
7731
+ error?: string | null;
7732
+ finished_at?: string | null;
7733
+ id?: string;
7734
+ more_remaining?: boolean;
7735
+ orphan_settings?: number | null;
7736
+ started_at?: string;
7737
+ };
7738
+ Relationships: [];
7739
+ };
7614
7740
  floriday_rate_limit_state: {
7615
7741
  Row: {
7616
7742
  bucket: string;
@@ -7629,6 +7755,60 @@ export type Database = {
7629
7755
  };
7630
7756
  Relationships: [];
7631
7757
  };
7758
+ floriday_reconcile_runs: {
7759
+ Row: {
7760
+ connection_id: string | null;
7761
+ created_at: string;
7762
+ finished_at: string | null;
7763
+ first_error: string | null;
7764
+ id: string;
7765
+ items_checked: number;
7766
+ items_drift: number;
7767
+ items_no_supply: number;
7768
+ last_http_status: number | null;
7769
+ rate_limited: number;
7770
+ read_errors: number;
7771
+ reads: number;
7772
+ response: Json | null;
7773
+ started_at: string;
7774
+ status: string;
7775
+ };
7776
+ Insert: {
7777
+ connection_id?: string | null;
7778
+ created_at?: string;
7779
+ finished_at?: string | null;
7780
+ first_error?: string | null;
7781
+ id?: string;
7782
+ items_checked?: number;
7783
+ items_drift?: number;
7784
+ items_no_supply?: number;
7785
+ last_http_status?: number | null;
7786
+ rate_limited?: number;
7787
+ read_errors?: number;
7788
+ reads?: number;
7789
+ response?: Json | null;
7790
+ started_at?: string;
7791
+ status?: string;
7792
+ };
7793
+ Update: {
7794
+ connection_id?: string | null;
7795
+ created_at?: string;
7796
+ finished_at?: string | null;
7797
+ first_error?: string | null;
7798
+ id?: string;
7799
+ items_checked?: number;
7800
+ items_drift?: number;
7801
+ items_no_supply?: number;
7802
+ last_http_status?: number | null;
7803
+ rate_limited?: number;
7804
+ read_errors?: number;
7805
+ reads?: number;
7806
+ response?: Json | null;
7807
+ started_at?: string;
7808
+ status?: string;
7809
+ };
7810
+ Relationships: [];
7811
+ };
7632
7812
  floriday_resource_schemas: {
7633
7813
  Row: {
7634
7814
  enums: Json;
@@ -8711,6 +8891,99 @@ export type Database = {
8711
8891
  }
8712
8892
  ];
8713
8893
  };
8894
+ inventory_recompute_limits: {
8895
+ Row: {
8896
+ drain_batch: number;
8897
+ id: boolean;
8898
+ import_chunk_size: number;
8899
+ import_max_bytes: number;
8900
+ import_max_rows: number;
8901
+ import_new_chunk_size: number;
8902
+ import_retention_days: number;
8903
+ max_ms_inline: number;
8904
+ max_parents_inline: number;
8905
+ queue_cleanup_batch: number;
8906
+ queue_cleanup_max_batches: number;
8907
+ queue_failed_days: number;
8908
+ queue_gateway_backoff_minutes: number[];
8909
+ queue_gateway_give_up_hours: number;
8910
+ queue_sent_days: number;
8911
+ queue_skipped_days: number;
8912
+ queue_superseded_days: number;
8913
+ updated_at: string;
8914
+ };
8915
+ Insert: {
8916
+ drain_batch?: number;
8917
+ id?: boolean;
8918
+ import_chunk_size?: number;
8919
+ import_max_bytes?: number;
8920
+ import_max_rows?: number;
8921
+ import_new_chunk_size?: number;
8922
+ import_retention_days?: number;
8923
+ max_ms_inline?: number;
8924
+ max_parents_inline?: number;
8925
+ queue_cleanup_batch?: number;
8926
+ queue_cleanup_max_batches?: number;
8927
+ queue_failed_days?: number;
8928
+ queue_gateway_backoff_minutes?: number[];
8929
+ queue_gateway_give_up_hours?: number;
8930
+ queue_sent_days?: number;
8931
+ queue_skipped_days?: number;
8932
+ queue_superseded_days?: number;
8933
+ updated_at?: string;
8934
+ };
8935
+ Update: {
8936
+ drain_batch?: number;
8937
+ id?: boolean;
8938
+ import_chunk_size?: number;
8939
+ import_max_bytes?: number;
8940
+ import_max_rows?: number;
8941
+ import_new_chunk_size?: number;
8942
+ import_retention_days?: number;
8943
+ max_ms_inline?: number;
8944
+ max_parents_inline?: number;
8945
+ queue_cleanup_batch?: number;
8946
+ queue_cleanup_max_batches?: number;
8947
+ queue_failed_days?: number;
8948
+ queue_gateway_backoff_minutes?: number[];
8949
+ queue_gateway_give_up_hours?: number;
8950
+ queue_sent_days?: number;
8951
+ queue_skipped_days?: number;
8952
+ queue_superseded_days?: number;
8953
+ updated_at?: string;
8954
+ };
8955
+ Relationships: [];
8956
+ };
8957
+ inventory_recompute_queue: {
8958
+ Row: {
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
+ Insert: {
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
+ Update: {
8977
+ attempts?: number;
8978
+ created_at?: string;
8979
+ enqueued_at?: string;
8980
+ last_error?: string | null;
8981
+ product_id?: string;
8982
+ reason?: string | null;
8983
+ updated_at?: string;
8984
+ };
8985
+ Relationships: [];
8986
+ };
8714
8987
  inventory_settings: {
8715
8988
  Row: {
8716
8989
  created_at: string;
@@ -8903,8 +9176,16 @@ export type Database = {
8903
9176
  client_request_id: string;
8904
9177
  completed_at: string | null;
8905
9178
  created_at: string;
9179
+ customer_code: string | null;
8906
9180
  error_message: string | null;
8907
9181
  invoice_number: string | null;
9182
+ invoice_type: string | null;
9183
+ last_known_number: number | null;
9184
+ last_search_at: string | null;
9185
+ phase: string | null;
9186
+ reference: string | null;
9187
+ search_attempts: number;
9188
+ sending_at: string | null;
8908
9189
  status: string;
8909
9190
  user_id: string;
8910
9191
  };
@@ -8913,8 +9194,16 @@ export type Database = {
8913
9194
  client_request_id: string;
8914
9195
  completed_at?: string | null;
8915
9196
  created_at?: string;
9197
+ customer_code?: string | null;
8916
9198
  error_message?: string | null;
8917
9199
  invoice_number?: string | null;
9200
+ invoice_type?: string | null;
9201
+ last_known_number?: number | null;
9202
+ last_search_at?: string | null;
9203
+ phase?: string | null;
9204
+ reference?: string | null;
9205
+ search_attempts?: number;
9206
+ sending_at?: string | null;
8918
9207
  status?: string;
8919
9208
  user_id: string;
8920
9209
  };
@@ -8923,8 +9212,16 @@ export type Database = {
8923
9212
  client_request_id?: string;
8924
9213
  completed_at?: string | null;
8925
9214
  created_at?: string;
9215
+ customer_code?: string | null;
8926
9216
  error_message?: string | null;
8927
9217
  invoice_number?: string | null;
9218
+ invoice_type?: string | null;
9219
+ last_known_number?: number | null;
9220
+ last_search_at?: string | null;
9221
+ phase?: string | null;
9222
+ reference?: string | null;
9223
+ search_attempts?: number;
9224
+ sending_at?: string | null;
8928
9225
  status?: string;
8929
9226
  user_id?: string;
8930
9227
  };
@@ -10052,6 +10349,7 @@ export type Database = {
10052
10349
  id: string;
10053
10350
  singleton: boolean;
10054
10351
  updated_at: string;
10352
+ voorwaarden: string | null;
10055
10353
  };
10056
10354
  Insert: {
10057
10355
  auto_convert_binnen_mandaat?: boolean;
@@ -10062,6 +10360,7 @@ export type Database = {
10062
10360
  id?: string;
10063
10361
  singleton?: boolean;
10064
10362
  updated_at?: string;
10363
+ voorwaarden?: string | null;
10065
10364
  };
10066
10365
  Update: {
10067
10366
  auto_convert_binnen_mandaat?: boolean;
@@ -10072,6 +10371,7 @@ export type Database = {
10072
10371
  id?: string;
10073
10372
  singleton?: boolean;
10074
10373
  updated_at?: string;
10374
+ voorwaarden?: string | null;
10075
10375
  };
10076
10376
  Relationships: [];
10077
10377
  };
@@ -10882,6 +11182,120 @@ export type Database = {
10882
11182
  };
10883
11183
  Relationships: [];
10884
11184
  };
11185
+ logistics_allocation_fingerprint: {
11186
+ Row: {
11187
+ created_at: string;
11188
+ fingerprint: string;
11189
+ last_replan_at: string | null;
11190
+ order_id: string;
11191
+ pending_since: string | null;
11192
+ updated_at: string;
11193
+ };
11194
+ Insert: {
11195
+ created_at?: string;
11196
+ fingerprint: string;
11197
+ last_replan_at?: string | null;
11198
+ order_id: string;
11199
+ pending_since?: string | null;
11200
+ updated_at?: string;
11201
+ };
11202
+ Update: {
11203
+ created_at?: string;
11204
+ fingerprint?: string;
11205
+ last_replan_at?: string | null;
11206
+ order_id?: string;
11207
+ pending_since?: string | null;
11208
+ updated_at?: string;
11209
+ };
11210
+ Relationships: [];
11211
+ };
11212
+ logistics_autolink_audit: {
11213
+ Row: {
11214
+ created_at: string;
11215
+ id: string;
11216
+ match_type: string;
11217
+ order_id: string | null;
11218
+ order_item_id: string | null;
11219
+ order_source: string | null;
11220
+ product_floriday_id: string | null;
11221
+ product_id: string | null;
11222
+ product_name: string | null;
11223
+ };
11224
+ Insert: {
11225
+ created_at?: string;
11226
+ id?: string;
11227
+ match_type: string;
11228
+ order_id?: string | null;
11229
+ order_item_id?: string | null;
11230
+ order_source?: string | null;
11231
+ product_floriday_id?: string | null;
11232
+ product_id?: string | null;
11233
+ product_name?: string | null;
11234
+ };
11235
+ Update: {
11236
+ created_at?: string;
11237
+ id?: string;
11238
+ match_type?: string;
11239
+ order_id?: string | null;
11240
+ order_item_id?: string | null;
11241
+ order_source?: string | null;
11242
+ product_floriday_id?: string | null;
11243
+ product_id?: string | null;
11244
+ product_name?: string | null;
11245
+ };
11246
+ Relationships: [];
11247
+ };
11248
+ logistics_base_url_checks: {
11249
+ Row: {
11250
+ candidate_host: string | null;
11251
+ candidate_url: string | null;
11252
+ detail: string | null;
11253
+ id: number;
11254
+ ping_ok: boolean | null;
11255
+ ping_request_id: number | null;
11256
+ ping_status: number | null;
11257
+ previous_url: string | null;
11258
+ resolved_at: string | null;
11259
+ route_ok: boolean | null;
11260
+ route_request_id: number | null;
11261
+ route_status: number | null;
11262
+ started_at: string;
11263
+ status: string;
11264
+ };
11265
+ Insert: {
11266
+ candidate_host?: string | null;
11267
+ candidate_url?: string | null;
11268
+ detail?: string | null;
11269
+ id?: never;
11270
+ ping_ok?: boolean | null;
11271
+ ping_request_id?: number | null;
11272
+ ping_status?: number | null;
11273
+ previous_url?: string | null;
11274
+ resolved_at?: string | null;
11275
+ route_ok?: boolean | null;
11276
+ route_request_id?: number | null;
11277
+ route_status?: number | null;
11278
+ started_at?: string;
11279
+ status: string;
11280
+ };
11281
+ Update: {
11282
+ candidate_host?: string | null;
11283
+ candidate_url?: string | null;
11284
+ detail?: string | null;
11285
+ id?: never;
11286
+ ping_ok?: boolean | null;
11287
+ ping_request_id?: number | null;
11288
+ ping_status?: number | null;
11289
+ previous_url?: string | null;
11290
+ resolved_at?: string | null;
11291
+ route_ok?: boolean | null;
11292
+ route_request_id?: number | null;
11293
+ route_status?: number | null;
11294
+ started_at?: string;
11295
+ status?: string;
11296
+ };
11297
+ Relationships: [];
11298
+ };
10885
11299
  logistics_capacity_alerts: {
10886
11300
  Row: {
10887
11301
  available_minutes: number;
@@ -12404,6 +12818,45 @@ export type Database = {
12404
12818
  };
12405
12819
  Relationships: [];
12406
12820
  };
12821
+ logistics_reservation_allocations: {
12822
+ Row: {
12823
+ computed_at: string;
12824
+ created_at: string;
12825
+ group_id: string | null;
12826
+ id: string;
12827
+ line_qty: number | null;
12828
+ order_item_id: string;
12829
+ qty: number;
12830
+ source: string;
12831
+ trade_item_key: string;
12832
+ updated_at: string;
12833
+ };
12834
+ Insert: {
12835
+ computed_at?: string;
12836
+ created_at?: string;
12837
+ group_id?: string | null;
12838
+ id?: string;
12839
+ line_qty?: number | null;
12840
+ order_item_id: string;
12841
+ qty: number;
12842
+ source: string;
12843
+ trade_item_key: string;
12844
+ updated_at?: string;
12845
+ };
12846
+ Update: {
12847
+ computed_at?: string;
12848
+ created_at?: string;
12849
+ group_id?: string | null;
12850
+ id?: string;
12851
+ line_qty?: number | null;
12852
+ order_item_id?: string;
12853
+ qty?: number;
12854
+ source?: string;
12855
+ trade_item_key?: string;
12856
+ updated_at?: string;
12857
+ };
12858
+ Relationships: [];
12859
+ };
12407
12860
  logistics_rule_configs: {
12408
12861
  Row: {
12409
12862
  created_at: string;
@@ -12548,6 +13001,7 @@ export type Database = {
12548
13001
  slip_job_id: string;
12549
13002
  status: string;
12550
13003
  updated_at: string;
13004
+ voor_herstel: boolean;
12551
13005
  };
12552
13006
  Insert: {
12553
13007
  attempts?: number;
@@ -12568,6 +13022,7 @@ export type Database = {
12568
13022
  slip_job_id: string;
12569
13023
  status?: string;
12570
13024
  updated_at?: string;
13025
+ voor_herstel?: boolean;
12571
13026
  };
12572
13027
  Update: {
12573
13028
  attempts?: number;
@@ -12588,6 +13043,7 @@ export type Database = {
12588
13043
  slip_job_id?: string;
12589
13044
  status?: string;
12590
13045
  updated_at?: string;
13046
+ voor_herstel?: boolean;
12591
13047
  };
12592
13048
  Relationships: [];
12593
13049
  };
@@ -15148,6 +15604,7 @@ export type Database = {
15148
15604
  Row: {
15149
15605
  boxes: number | null;
15150
15606
  cart_id: string;
15607
+ components: Json | null;
15151
15608
  crates: number;
15152
15609
  crates_in_layer: number | null;
15153
15610
  crates_per_layer: number;
@@ -15166,6 +15623,7 @@ export type Database = {
15166
15623
  Insert: {
15167
15624
  boxes?: number | null;
15168
15625
  cart_id: string;
15626
+ components?: Json | null;
15169
15627
  crates: number;
15170
15628
  crates_in_layer?: number | null;
15171
15629
  crates_per_layer?: number;
@@ -15184,6 +15642,7 @@ export type Database = {
15184
15642
  Update: {
15185
15643
  boxes?: number | null;
15186
15644
  cart_id?: string;
15645
+ components?: Json | null;
15187
15646
  crates?: number;
15188
15647
  crates_in_layer?: number | null;
15189
15648
  crates_per_layer?: number;
@@ -16994,6 +17453,39 @@ export type Database = {
16994
17453
  };
16995
17454
  Relationships: [];
16996
17455
  };
17456
+ pick_taken: {
17457
+ Row: {
17458
+ bron_module: string | null;
17459
+ created_at: string;
17460
+ id: string;
17461
+ klantnaam: string | null;
17462
+ opmerking: string | null;
17463
+ order_ref: string | null;
17464
+ status: string;
17465
+ updated_at: string;
17466
+ };
17467
+ Insert: {
17468
+ bron_module?: string | null;
17469
+ created_at?: string;
17470
+ id?: string;
17471
+ klantnaam?: string | null;
17472
+ opmerking?: string | null;
17473
+ order_ref?: string | null;
17474
+ status?: string;
17475
+ updated_at?: string;
17476
+ };
17477
+ Update: {
17478
+ bron_module?: string | null;
17479
+ created_at?: string;
17480
+ id?: string;
17481
+ klantnaam?: string | null;
17482
+ opmerking?: string | null;
17483
+ order_ref?: string | null;
17484
+ status?: string;
17485
+ updated_at?: string;
17486
+ };
17487
+ Relationships: [];
17488
+ };
16997
17489
  pick_task_document_types: {
16998
17490
  Row: {
16999
17491
  created_at: string;
@@ -17117,22 +17609,58 @@ export type Database = {
17117
17609
  };
17118
17610
  Relationships: [];
17119
17611
  };
17120
- planning_confirmation_log: {
17612
+ planning_absence_notices: {
17121
17613
  Row: {
17122
17614
  created_at: string;
17123
- end_at: string;
17615
+ day: string;
17616
+ handled_at: string | null;
17617
+ handled_by: string | null;
17124
17618
  id: string;
17619
+ items: Json;
17125
17620
  kind: string;
17126
- outbox_id: string | null;
17127
- planning_item_id: string;
17128
- reason: string | null;
17129
- recipient: string | null;
17130
- start_at: string;
17131
- status: string;
17621
+ monteur_id: string;
17622
+ updated_at: string;
17132
17623
  };
17133
17624
  Insert: {
17134
17625
  created_at?: string;
17135
- end_at: string;
17626
+ day: string;
17627
+ handled_at?: string | null;
17628
+ handled_by?: string | null;
17629
+ id?: string;
17630
+ items?: Json;
17631
+ kind?: string;
17632
+ monteur_id: string;
17633
+ updated_at?: string;
17634
+ };
17635
+ Update: {
17636
+ created_at?: string;
17637
+ day?: string;
17638
+ handled_at?: string | null;
17639
+ handled_by?: string | null;
17640
+ id?: string;
17641
+ items?: Json;
17642
+ kind?: string;
17643
+ monteur_id?: string;
17644
+ updated_at?: string;
17645
+ };
17646
+ Relationships: [];
17647
+ };
17648
+ planning_confirmation_log: {
17649
+ Row: {
17650
+ created_at: string;
17651
+ end_at: string;
17652
+ id: string;
17653
+ kind: string;
17654
+ outbox_id: string | null;
17655
+ planning_item_id: string;
17656
+ reason: string | null;
17657
+ recipient: string | null;
17658
+ start_at: string;
17659
+ status: string;
17660
+ };
17661
+ Insert: {
17662
+ created_at?: string;
17663
+ end_at: string;
17136
17664
  id?: string;
17137
17665
  kind?: string;
17138
17666
  outbox_id?: string | null;
@@ -18722,7 +19250,7 @@ export type Database = {
18722
19250
  id?: string;
18723
19251
  product_group_id: string;
18724
19252
  quantity?: number;
18725
- sort_order?: number;
19253
+ sort_order: number;
18726
19254
  trade_item_id: string;
18727
19255
  };
18728
19256
  Update: {
@@ -19953,6 +20481,7 @@ export type Database = {
19953
20481
  is_protected: boolean;
19954
20482
  key: string;
19955
20483
  name: string;
20484
+ permissions_initialized: boolean;
19956
20485
  updated_at: string;
19957
20486
  };
19958
20487
  Insert: {
@@ -19961,6 +20490,7 @@ export type Database = {
19961
20490
  is_protected?: boolean;
19962
20491
  key: string;
19963
20492
  name: string;
20493
+ permissions_initialized?: boolean;
19964
20494
  updated_at?: string;
19965
20495
  };
19966
20496
  Update: {
@@ -19969,6 +20499,7 @@ export type Database = {
19969
20499
  is_protected?: boolean;
19970
20500
  key?: string;
19971
20501
  name?: string;
20502
+ permissions_initialized?: boolean;
19972
20503
  updated_at?: string;
19973
20504
  };
19974
20505
  Relationships: [];
@@ -20591,6 +21122,50 @@ export type Database = {
20591
21122
  };
20592
21123
  Relationships: [];
20593
21124
  };
21125
+ standby_planning: {
21126
+ Row: {
21127
+ created_at: string;
21128
+ created_by: string | null;
21129
+ employee_id: string;
21130
+ end_date: string;
21131
+ id: string;
21132
+ notes: string | null;
21133
+ soort: string;
21134
+ start_date: string;
21135
+ updated_at: string;
21136
+ };
21137
+ Insert: {
21138
+ created_at?: string;
21139
+ created_by?: string | null;
21140
+ employee_id: string;
21141
+ end_date: string;
21142
+ id?: string;
21143
+ notes?: string | null;
21144
+ soort: string;
21145
+ start_date: string;
21146
+ updated_at?: string;
21147
+ };
21148
+ Update: {
21149
+ created_at?: string;
21150
+ created_by?: string | null;
21151
+ employee_id?: string;
21152
+ end_date?: string;
21153
+ id?: string;
21154
+ notes?: string | null;
21155
+ soort?: string;
21156
+ start_date?: string;
21157
+ updated_at?: string;
21158
+ };
21159
+ Relationships: [
21160
+ {
21161
+ foreignKeyName: "standby_planning_employee_id_fkey";
21162
+ columns: ["employee_id"];
21163
+ isOneToOne: false;
21164
+ referencedRelation: "profiles";
21165
+ referencedColumns: ["id"];
21166
+ }
21167
+ ];
21168
+ };
20594
21169
  stock_consumption_alerts: {
20595
21170
  Row: {
20596
21171
  alert_type: string;
@@ -20630,48 +21205,253 @@ export type Database = {
20630
21205
  };
20631
21206
  Relationships: [];
20632
21207
  };
21208
+ stock_import_chunks: {
21209
+ Row: {
21210
+ chunk_no: number;
21211
+ created_at: string;
21212
+ duration_ms: number | null;
21213
+ processed_at: string | null;
21214
+ run_id: string;
21215
+ status: string;
21216
+ undone_at: string | null;
21217
+ updated_at: string;
21218
+ };
21219
+ Insert: {
21220
+ chunk_no: number;
21221
+ created_at?: string;
21222
+ duration_ms?: number | null;
21223
+ processed_at?: string | null;
21224
+ run_id: string;
21225
+ status?: string;
21226
+ undone_at?: string | null;
21227
+ updated_at?: string;
21228
+ };
21229
+ Update: {
21230
+ chunk_no?: number;
21231
+ created_at?: string;
21232
+ duration_ms?: number | null;
21233
+ processed_at?: string | null;
21234
+ run_id?: string;
21235
+ status?: string;
21236
+ undone_at?: string | null;
21237
+ updated_at?: string;
21238
+ };
21239
+ Relationships: [
21240
+ {
21241
+ foreignKeyName: "stock_import_chunks_run_id_fkey";
21242
+ columns: ["run_id"];
21243
+ isOneToOne: false;
21244
+ referencedRelation: "stock_import_runs";
21245
+ referencedColumns: ["id"];
21246
+ }
21247
+ ];
21248
+ };
21249
+ stock_import_rows: {
21250
+ Row: {
21251
+ article_code: string | null;
21252
+ article_name: string | null;
21253
+ chunk_no: number;
21254
+ connection_id: string | null;
21255
+ created_at: string;
21256
+ custom_values: Json | null;
21257
+ error: string | null;
21258
+ id: string;
21259
+ incoming_after: number | null;
21260
+ incoming_before: number | null;
21261
+ incoming_in: number | null;
21262
+ is_new: boolean;
21263
+ minimum_after: number | null;
21264
+ minimum_before: number | null;
21265
+ minimum_in: number | null;
21266
+ new_payload: Json | null;
21267
+ note: string | null;
21268
+ physical_after: number | null;
21269
+ physical_before: number | null;
21270
+ physical_in: number | null;
21271
+ processed_at: string | null;
21272
+ product_id: string | null;
21273
+ row_no: number;
21274
+ run_id: string;
21275
+ status: string;
21276
+ trade_item_key: string | null;
21277
+ updated_at: string;
21278
+ };
21279
+ Insert: {
21280
+ article_code?: string | null;
21281
+ article_name?: string | null;
21282
+ chunk_no: number;
21283
+ connection_id?: string | null;
21284
+ created_at?: string;
21285
+ custom_values?: Json | null;
21286
+ error?: string | null;
21287
+ id?: string;
21288
+ incoming_after?: number | null;
21289
+ incoming_before?: number | null;
21290
+ incoming_in?: number | null;
21291
+ is_new?: boolean;
21292
+ minimum_after?: number | null;
21293
+ minimum_before?: number | null;
21294
+ minimum_in?: number | null;
21295
+ new_payload?: Json | null;
21296
+ note?: string | null;
21297
+ physical_after?: number | null;
21298
+ physical_before?: number | null;
21299
+ physical_in?: number | null;
21300
+ processed_at?: string | null;
21301
+ product_id?: string | null;
21302
+ row_no: number;
21303
+ run_id: string;
21304
+ status?: string;
21305
+ trade_item_key?: string | null;
21306
+ updated_at?: string;
21307
+ };
21308
+ Update: {
21309
+ article_code?: string | null;
21310
+ article_name?: string | null;
21311
+ chunk_no?: number;
21312
+ connection_id?: string | null;
21313
+ created_at?: string;
21314
+ custom_values?: Json | null;
21315
+ error?: string | null;
21316
+ id?: string;
21317
+ incoming_after?: number | null;
21318
+ incoming_before?: number | null;
21319
+ incoming_in?: number | null;
21320
+ is_new?: boolean;
21321
+ minimum_after?: number | null;
21322
+ minimum_before?: number | null;
21323
+ minimum_in?: number | null;
21324
+ new_payload?: Json | null;
21325
+ note?: string | null;
21326
+ physical_after?: number | null;
21327
+ physical_before?: number | null;
21328
+ physical_in?: number | null;
21329
+ processed_at?: string | null;
21330
+ product_id?: string | null;
21331
+ row_no?: number;
21332
+ run_id?: string;
21333
+ status?: string;
21334
+ trade_item_key?: string | null;
21335
+ updated_at?: string;
21336
+ };
21337
+ Relationships: [
21338
+ {
21339
+ foreignKeyName: "stock_import_rows_run_id_fkey";
21340
+ columns: ["run_id"];
21341
+ isOneToOne: false;
21342
+ referencedRelation: "stock_import_runs";
21343
+ referencedColumns: ["id"];
21344
+ }
21345
+ ];
21346
+ };
20633
21347
  stock_import_runs: {
20634
21348
  Row: {
21349
+ chunk_size: number | null;
20635
21350
  connection_id: string | null;
20636
21351
  created_at: string;
20637
21352
  created_rows: number;
21353
+ done_chunks: number;
20638
21354
  errors: Json;
21355
+ file_hash: string | null;
20639
21356
  filename: string | null;
21357
+ finished_at: string | null;
20640
21358
  id: string;
20641
21359
  mutations: Json;
21360
+ rows_purged_at: string | null;
20642
21361
  skipped_rows: number;
21362
+ status: string;
21363
+ total_chunks: number;
20643
21364
  total_rows: number;
21365
+ undo_skipped_rows: number;
21366
+ undone_rows: number;
21367
+ updated_at: string;
20644
21368
  updated_rows: number;
20645
21369
  user_id: string;
20646
21370
  };
20647
21371
  Insert: {
21372
+ chunk_size?: number | null;
20648
21373
  connection_id?: string | null;
20649
21374
  created_at?: string;
20650
21375
  created_rows?: number;
21376
+ done_chunks?: number;
20651
21377
  errors?: Json;
21378
+ file_hash?: string | null;
20652
21379
  filename?: string | null;
21380
+ finished_at?: string | null;
20653
21381
  id?: string;
20654
21382
  mutations?: Json;
21383
+ rows_purged_at?: string | null;
20655
21384
  skipped_rows?: number;
21385
+ status?: string;
21386
+ total_chunks?: number;
20656
21387
  total_rows?: number;
21388
+ undo_skipped_rows?: number;
21389
+ undone_rows?: number;
21390
+ updated_at?: string;
20657
21391
  updated_rows?: number;
20658
21392
  user_id: string;
20659
21393
  };
20660
21394
  Update: {
21395
+ chunk_size?: number | null;
20661
21396
  connection_id?: string | null;
20662
21397
  created_at?: string;
20663
21398
  created_rows?: number;
21399
+ done_chunks?: number;
20664
21400
  errors?: Json;
21401
+ file_hash?: string | null;
20665
21402
  filename?: string | null;
21403
+ finished_at?: string | null;
20666
21404
  id?: string;
20667
21405
  mutations?: Json;
21406
+ rows_purged_at?: string | null;
20668
21407
  skipped_rows?: number;
21408
+ status?: string;
21409
+ total_chunks?: number;
20669
21410
  total_rows?: number;
21411
+ undo_skipped_rows?: number;
21412
+ undone_rows?: number;
21413
+ updated_at?: string;
20670
21414
  updated_rows?: number;
20671
21415
  user_id?: string;
20672
21416
  };
20673
21417
  Relationships: [];
20674
21418
  };
21419
+ stock_integrity_alerts: {
21420
+ Row: {
21421
+ acknowledged_at: string | null;
21422
+ acknowledged_by: string | null;
21423
+ alert_kind: string;
21424
+ created_at: string;
21425
+ id: string;
21426
+ item_count: number;
21427
+ items: Json;
21428
+ tx_id: number;
21429
+ updated_at: string;
21430
+ };
21431
+ Insert: {
21432
+ acknowledged_at?: string | null;
21433
+ acknowledged_by?: string | null;
21434
+ alert_kind?: string;
21435
+ created_at?: string;
21436
+ id?: string;
21437
+ item_count?: number;
21438
+ items?: Json;
21439
+ tx_id: number;
21440
+ updated_at?: string;
21441
+ };
21442
+ Update: {
21443
+ acknowledged_at?: string | null;
21444
+ acknowledged_by?: string | null;
21445
+ alert_kind?: string;
21446
+ created_at?: string;
21447
+ id?: string;
21448
+ item_count?: number;
21449
+ items?: Json;
21450
+ tx_id?: number;
21451
+ updated_at?: string;
21452
+ };
21453
+ Relationships: [];
21454
+ };
20675
21455
  stock_mutation_log: {
20676
21456
  Row: {
20677
21457
  connection_id: string | null;
@@ -20729,6 +21509,45 @@ export type Database = {
20729
21509
  };
20730
21510
  Relationships: [];
20731
21511
  };
21512
+ structure_cleanup_log: {
21513
+ Row: {
21514
+ action: string;
21515
+ batch: string;
21516
+ created_at: string;
21517
+ id: string;
21518
+ new_row: Json | null;
21519
+ old_row: Json;
21520
+ reason: string;
21521
+ row_id: string;
21522
+ step: number;
21523
+ table_name: string;
21524
+ };
21525
+ Insert: {
21526
+ action: string;
21527
+ batch: string;
21528
+ created_at?: string;
21529
+ id?: string;
21530
+ new_row?: Json | null;
21531
+ old_row: Json;
21532
+ reason: string;
21533
+ row_id: string;
21534
+ step: number;
21535
+ table_name: string;
21536
+ };
21537
+ Update: {
21538
+ action?: string;
21539
+ batch?: string;
21540
+ created_at?: string;
21541
+ id?: string;
21542
+ new_row?: Json | null;
21543
+ old_row?: Json;
21544
+ reason?: string;
21545
+ row_id?: string;
21546
+ step?: number;
21547
+ table_name?: string;
21548
+ };
21549
+ Relationships: [];
21550
+ };
20732
21551
  supplier_contacts: {
20733
21552
  Row: {
20734
21553
  created_at: string;
@@ -21160,48 +21979,101 @@ export type Database = {
21160
21979
  }
21161
21980
  ];
21162
21981
  };
21163
- time_entries: {
21982
+ time_compensation_log: {
21164
21983
  Row: {
21984
+ actie: string;
21165
21985
  created_at: string;
21166
21986
  employee_id: string;
21167
21987
  entry_date: string;
21168
- hours: number;
21169
21988
  id: string;
21170
- notes: string | null;
21171
- overtime: number;
21172
- undertime: number;
21173
- updated_at: string;
21989
+ km: number;
21990
+ maaltijd: number;
21991
+ notities: string | null;
21992
+ performed_by: string | null;
21993
+ standby_avond: number;
21994
+ standby_weekend: number;
21995
+ tvt: number;
21174
21996
  };
21175
21997
  Insert: {
21998
+ actie: string;
21176
21999
  created_at?: string;
21177
22000
  employee_id: string;
21178
22001
  entry_date: string;
21179
- hours?: number;
21180
22002
  id?: string;
21181
- notes?: string | null;
21182
- overtime?: number;
21183
- undertime?: number;
21184
- updated_at?: string;
22003
+ km?: number;
22004
+ maaltijd?: number;
22005
+ notities?: string | null;
22006
+ performed_by?: string | null;
22007
+ standby_avond?: number;
22008
+ standby_weekend?: number;
22009
+ tvt?: number;
21185
22010
  };
21186
22011
  Update: {
22012
+ actie?: string;
21187
22013
  created_at?: string;
21188
22014
  employee_id?: string;
21189
22015
  entry_date?: string;
21190
- hours?: number;
21191
22016
  id?: string;
21192
- notes?: string | null;
21193
- overtime?: number;
21194
- undertime?: number;
21195
- updated_at?: string;
22017
+ km?: number;
22018
+ maaltijd?: number;
22019
+ notities?: string | null;
22020
+ performed_by?: string | null;
22021
+ standby_avond?: number;
22022
+ standby_weekend?: number;
22023
+ tvt?: number;
21196
22024
  };
21197
- Relationships: [];
21198
- };
21199
- time_log_week_approvals: {
21200
- Row: {
21201
- approved_at: string | null;
21202
- approved_by: string | null;
21203
- contract_hours: number;
21204
- created_at: string;
22025
+ Relationships: [
22026
+ {
22027
+ foreignKeyName: "time_compensation_log_employee_id_fkey";
22028
+ columns: ["employee_id"];
22029
+ isOneToOne: false;
22030
+ referencedRelation: "profiles";
22031
+ referencedColumns: ["id"];
22032
+ }
22033
+ ];
22034
+ };
22035
+ time_entries: {
22036
+ Row: {
22037
+ created_at: string;
22038
+ employee_id: string;
22039
+ entry_date: string;
22040
+ hours: number;
22041
+ id: string;
22042
+ notes: string | null;
22043
+ overtime: number;
22044
+ undertime: number;
22045
+ updated_at: string;
22046
+ };
22047
+ Insert: {
22048
+ created_at?: string;
22049
+ employee_id: string;
22050
+ entry_date: string;
22051
+ hours?: number;
22052
+ id?: string;
22053
+ notes?: string | null;
22054
+ overtime?: number;
22055
+ undertime?: number;
22056
+ updated_at?: string;
22057
+ };
22058
+ Update: {
22059
+ created_at?: string;
22060
+ employee_id?: string;
22061
+ entry_date?: string;
22062
+ hours?: number;
22063
+ id?: string;
22064
+ notes?: string | null;
22065
+ overtime?: number;
22066
+ undertime?: number;
22067
+ updated_at?: string;
22068
+ };
22069
+ Relationships: [];
22070
+ };
22071
+ time_log_week_approvals: {
22072
+ Row: {
22073
+ approved_at: string | null;
22074
+ approved_by: string | null;
22075
+ contract_hours: number;
22076
+ created_at: string;
21205
22077
  employee_id: string;
21206
22078
  id: string;
21207
22079
  locked: boolean;
@@ -21687,13 +22559,19 @@ export type Database = {
21687
22559
  created_at: string;
21688
22560
  disconnected_at: string | null;
21689
22561
  environment: string;
22562
+ granted_scopes: string[] | null;
21690
22563
  id: string;
21691
22564
  initial_sync_completed_at: string | null;
22565
+ initial_sync_last_error: string | null;
22566
+ initial_sync_plan: Json | null;
21692
22567
  initial_sync_started_at: string | null;
21693
22568
  is_active: boolean;
21694
22569
  label: string | null;
22570
+ missing_scopes: string[] | null;
21695
22571
  office_code: string | null;
21696
22572
  redirect_uri: string | null;
22573
+ scope_checked_at: string | null;
22574
+ scope_state: string | null;
21697
22575
  superseded_at: string | null;
21698
22576
  updated_at: string;
21699
22577
  user_id: string;
@@ -21707,13 +22585,19 @@ export type Database = {
21707
22585
  created_at?: string;
21708
22586
  disconnected_at?: string | null;
21709
22587
  environment: string;
22588
+ granted_scopes?: string[] | null;
21710
22589
  id?: string;
21711
22590
  initial_sync_completed_at?: string | null;
22591
+ initial_sync_last_error?: string | null;
22592
+ initial_sync_plan?: Json | null;
21712
22593
  initial_sync_started_at?: string | null;
21713
22594
  is_active?: boolean;
21714
22595
  label?: string | null;
22596
+ missing_scopes?: string[] | null;
21715
22597
  office_code?: string | null;
21716
22598
  redirect_uri?: string | null;
22599
+ scope_checked_at?: string | null;
22600
+ scope_state?: string | null;
21717
22601
  superseded_at?: string | null;
21718
22602
  updated_at?: string;
21719
22603
  user_id: string;
@@ -21727,13 +22611,19 @@ export type Database = {
21727
22611
  created_at?: string;
21728
22612
  disconnected_at?: string | null;
21729
22613
  environment?: string;
22614
+ granted_scopes?: string[] | null;
21730
22615
  id?: string;
21731
22616
  initial_sync_completed_at?: string | null;
22617
+ initial_sync_last_error?: string | null;
22618
+ initial_sync_plan?: Json | null;
21732
22619
  initial_sync_started_at?: string | null;
21733
22620
  is_active?: boolean;
21734
22621
  label?: string | null;
22622
+ missing_scopes?: string[] | null;
21735
22623
  office_code?: string | null;
21736
22624
  redirect_uri?: string | null;
22625
+ scope_checked_at?: string | null;
22626
+ scope_state?: string | null;
21737
22627
  superseded_at?: string | null;
21738
22628
  updated_at?: string;
21739
22629
  user_id?: string;
@@ -21859,33 +22749,51 @@ export type Database = {
21859
22749
  connection_id: string;
21860
22750
  country: string | null;
21861
22751
  data: Json;
22752
+ deactivated_at: string | null;
21862
22753
  email: string | null;
21863
22754
  fetched_at: string;
22755
+ is_active: boolean;
21864
22756
  modified_at: string | null;
21865
22757
  name: string | null;
22758
+ seen_at: string | null;
21866
22759
  twinfield_code: string;
22760
+ twinfield_status: string | null;
22761
+ twinfield_uid: string | null;
22762
+ twinfield_version: number | null;
21867
22763
  vat_number: string | null;
21868
22764
  };
21869
22765
  Insert: {
21870
22766
  connection_id: string;
21871
22767
  country?: string | null;
21872
22768
  data?: Json;
22769
+ deactivated_at?: string | null;
21873
22770
  email?: string | null;
21874
22771
  fetched_at?: string;
22772
+ is_active?: boolean;
21875
22773
  modified_at?: string | null;
21876
22774
  name?: string | null;
22775
+ seen_at?: string | null;
21877
22776
  twinfield_code: string;
22777
+ twinfield_status?: string | null;
22778
+ twinfield_uid?: string | null;
22779
+ twinfield_version?: number | null;
21878
22780
  vat_number?: string | null;
21879
22781
  };
21880
22782
  Update: {
21881
22783
  connection_id?: string;
21882
22784
  country?: string | null;
21883
22785
  data?: Json;
22786
+ deactivated_at?: string | null;
21884
22787
  email?: string | null;
21885
22788
  fetched_at?: string;
22789
+ is_active?: boolean;
21886
22790
  modified_at?: string | null;
21887
22791
  name?: string | null;
22792
+ seen_at?: string | null;
21888
22793
  twinfield_code?: string;
22794
+ twinfield_status?: string | null;
22795
+ twinfield_uid?: string | null;
22796
+ twinfield_version?: number | null;
21889
22797
  vat_number?: string | null;
21890
22798
  };
21891
22799
  Relationships: [
@@ -21898,6 +22806,59 @@ export type Database = {
21898
22806
  }
21899
22807
  ];
21900
22808
  };
22809
+ twinfield_dimension_types_cache: {
22810
+ Row: {
22811
+ connection_id: string | null;
22812
+ dim_type: string;
22813
+ fetched_at: string;
22814
+ label1: string | null;
22815
+ label2: string | null;
22816
+ label3: string | null;
22817
+ label4: string | null;
22818
+ label5: string | null;
22819
+ label6: string | null;
22820
+ mask: string | null;
22821
+ name: string | null;
22822
+ office_code: string;
22823
+ };
22824
+ Insert: {
22825
+ connection_id?: string | null;
22826
+ dim_type: string;
22827
+ fetched_at?: string;
22828
+ label1?: string | null;
22829
+ label2?: string | null;
22830
+ label3?: string | null;
22831
+ label4?: string | null;
22832
+ label5?: string | null;
22833
+ label6?: string | null;
22834
+ mask?: string | null;
22835
+ name?: string | null;
22836
+ office_code: string;
22837
+ };
22838
+ Update: {
22839
+ connection_id?: string | null;
22840
+ dim_type?: string;
22841
+ fetched_at?: string;
22842
+ label1?: string | null;
22843
+ label2?: string | null;
22844
+ label3?: string | null;
22845
+ label4?: string | null;
22846
+ label5?: string | null;
22847
+ label6?: string | null;
22848
+ mask?: string | null;
22849
+ name?: string | null;
22850
+ office_code?: string;
22851
+ };
22852
+ Relationships: [
22853
+ {
22854
+ foreignKeyName: "twinfield_dimension_types_cache_connection_id_fkey";
22855
+ columns: ["connection_id"];
22856
+ isOneToOne: false;
22857
+ referencedRelation: "twinfield_connections";
22858
+ referencedColumns: ["id"];
22859
+ }
22860
+ ];
22861
+ };
21901
22862
  twinfield_invoice_lines: {
21902
22863
  Row: {
21903
22864
  article_code: string | null;
@@ -22494,24 +23455,39 @@ export type Database = {
22494
23455
  twinfield_request_metrics: {
22495
23456
  Row: {
22496
23457
  bucket_hour: string;
23458
+ clientid_limit: number | null;
23459
+ clientid_remaining: number | null;
22497
23460
  connection_id: string;
22498
23461
  error_count: number;
23462
+ rate_limit_limit: number | null;
23463
+ rate_limit_remaining: number | null;
23464
+ rate_limit_seen_at: string | null;
22499
23465
  rate_limited_count: number;
22500
23466
  request_count: number;
22501
23467
  updated_at: string;
22502
23468
  };
22503
23469
  Insert: {
22504
23470
  bucket_hour: string;
23471
+ clientid_limit?: number | null;
23472
+ clientid_remaining?: number | null;
22505
23473
  connection_id: string;
22506
23474
  error_count?: number;
23475
+ rate_limit_limit?: number | null;
23476
+ rate_limit_remaining?: number | null;
23477
+ rate_limit_seen_at?: string | null;
22507
23478
  rate_limited_count?: number;
22508
23479
  request_count?: number;
22509
23480
  updated_at?: string;
22510
23481
  };
22511
23482
  Update: {
22512
23483
  bucket_hour?: string;
23484
+ clientid_limit?: number | null;
23485
+ clientid_remaining?: number | null;
22513
23486
  connection_id?: string;
22514
23487
  error_count?: number;
23488
+ rate_limit_limit?: number | null;
23489
+ rate_limit_remaining?: number | null;
23490
+ rate_limit_seen_at?: string | null;
22515
23491
  rate_limited_count?: number;
22516
23492
  request_count?: number;
22517
23493
  updated_at?: string;
@@ -22566,24 +23542,226 @@ export type Database = {
22566
23542
  twinfield_settings: {
22567
23543
  Row: {
22568
23544
  active_environment: string;
23545
+ cron_registered_at: string | null;
23546
+ cron_registration_error: string | null;
23547
+ cron_schedules: Json;
23548
+ cron_timeouts: Json;
22569
23549
  id: number;
22570
23550
  public_base_url: string | null;
22571
23551
  updated_at: string;
22572
23552
  };
22573
23553
  Insert: {
22574
23554
  active_environment?: string;
23555
+ cron_registered_at?: string | null;
23556
+ cron_registration_error?: string | null;
23557
+ cron_schedules?: Json;
23558
+ cron_timeouts?: Json;
22575
23559
  id?: number;
22576
23560
  public_base_url?: string | null;
22577
23561
  updated_at?: string;
22578
23562
  };
22579
23563
  Update: {
22580
23564
  active_environment?: string;
23565
+ cron_registered_at?: string | null;
23566
+ cron_registration_error?: string | null;
23567
+ cron_schedules?: Json;
23568
+ cron_timeouts?: Json;
22581
23569
  id?: number;
22582
23570
  public_base_url?: string | null;
22583
23571
  updated_at?: string;
22584
23572
  };
22585
23573
  Relationships: [];
22586
23574
  };
23575
+ twinfield_sync_runs: {
23576
+ Row: {
23577
+ calls: number;
23578
+ changed: number;
23579
+ connection_id: string | null;
23580
+ deactivated: number;
23581
+ details: Json;
23582
+ error: string | null;
23583
+ fetched: number;
23584
+ finished_at: string | null;
23585
+ id: string;
23586
+ item_errors: number;
23587
+ kind: string;
23588
+ rate_limited: number;
23589
+ started_at: string;
23590
+ status: string;
23591
+ };
23592
+ Insert: {
23593
+ calls?: number;
23594
+ changed?: number;
23595
+ connection_id?: string | null;
23596
+ deactivated?: number;
23597
+ details?: Json;
23598
+ error?: string | null;
23599
+ fetched?: number;
23600
+ finished_at?: string | null;
23601
+ id?: string;
23602
+ item_errors?: number;
23603
+ kind: string;
23604
+ rate_limited?: number;
23605
+ started_at?: string;
23606
+ status?: string;
23607
+ };
23608
+ Update: {
23609
+ calls?: number;
23610
+ changed?: number;
23611
+ connection_id?: string | null;
23612
+ deactivated?: number;
23613
+ details?: Json;
23614
+ error?: string | null;
23615
+ fetched?: number;
23616
+ finished_at?: string | null;
23617
+ id?: string;
23618
+ item_errors?: number;
23619
+ kind?: string;
23620
+ rate_limited?: number;
23621
+ started_at?: string;
23622
+ status?: string;
23623
+ };
23624
+ Relationships: [
23625
+ {
23626
+ foreignKeyName: "twinfield_sync_runs_connection_id_fkey";
23627
+ columns: ["connection_id"];
23628
+ isOneToOne: false;
23629
+ referencedRelation: "twinfield_connections";
23630
+ referencedColumns: ["id"];
23631
+ }
23632
+ ];
23633
+ };
23634
+ twinfield_sync_settings: {
23635
+ Row: {
23636
+ batch_size: number;
23637
+ change_overlap_seconds: number;
23638
+ change_poll_interval_seconds: number;
23639
+ connection_id: string;
23640
+ created_at: string;
23641
+ currency: string | null;
23642
+ currency_at: string | null;
23643
+ currency_source: string | null;
23644
+ customer_gl_account: string | null;
23645
+ customer_gl_account_at: string | null;
23646
+ customer_gl_account_source: string | null;
23647
+ customers_written_by_module: boolean;
23648
+ default_country: string | null;
23649
+ default_country_at: string | null;
23650
+ default_country_source: string | null;
23651
+ default_language: string | null;
23652
+ default_language_at: string | null;
23653
+ default_language_source: string | null;
23654
+ nightly_full_scan_cron: string;
23655
+ payment_term_min_invoices: number;
23656
+ payment_term_min_share: number;
23657
+ rate_limit_floor: number;
23658
+ requires_manual_approval: boolean;
23659
+ run_budget_ms: number;
23660
+ sales_daybook: string | null;
23661
+ sales_daybook_confirmed_at: string | null;
23662
+ sales_daybook_confirmed_by: string | null;
23663
+ sales_gl_account: string | null;
23664
+ sales_gl_account_at: string | null;
23665
+ sales_gl_account_source: string | null;
23666
+ sales_invoice_type: string | null;
23667
+ sales_invoice_type_confirmed_at: string | null;
23668
+ sales_invoice_type_confirmed_by: string | null;
23669
+ sales_payment_term_at: string | null;
23670
+ sales_payment_term_days: number | null;
23671
+ sales_payment_term_source: string | null;
23672
+ suggestion_warnings: Json;
23673
+ updated_at: string;
23674
+ };
23675
+ Insert: {
23676
+ batch_size?: number;
23677
+ change_overlap_seconds?: number;
23678
+ change_poll_interval_seconds?: number;
23679
+ connection_id: string;
23680
+ created_at?: string;
23681
+ currency?: string | null;
23682
+ currency_at?: string | null;
23683
+ currency_source?: string | null;
23684
+ customer_gl_account?: string | null;
23685
+ customer_gl_account_at?: string | null;
23686
+ customer_gl_account_source?: string | null;
23687
+ customers_written_by_module?: boolean;
23688
+ default_country?: string | null;
23689
+ default_country_at?: string | null;
23690
+ default_country_source?: string | null;
23691
+ default_language?: string | null;
23692
+ default_language_at?: string | null;
23693
+ default_language_source?: string | null;
23694
+ nightly_full_scan_cron?: string;
23695
+ payment_term_min_invoices?: number;
23696
+ payment_term_min_share?: number;
23697
+ rate_limit_floor?: number;
23698
+ requires_manual_approval?: boolean;
23699
+ run_budget_ms?: number;
23700
+ sales_daybook?: string | null;
23701
+ sales_daybook_confirmed_at?: string | null;
23702
+ sales_daybook_confirmed_by?: string | null;
23703
+ sales_gl_account?: string | null;
23704
+ sales_gl_account_at?: string | null;
23705
+ sales_gl_account_source?: string | null;
23706
+ sales_invoice_type?: string | null;
23707
+ sales_invoice_type_confirmed_at?: string | null;
23708
+ sales_invoice_type_confirmed_by?: string | null;
23709
+ sales_payment_term_at?: string | null;
23710
+ sales_payment_term_days?: number | null;
23711
+ sales_payment_term_source?: string | null;
23712
+ suggestion_warnings?: Json;
23713
+ updated_at?: string;
23714
+ };
23715
+ Update: {
23716
+ batch_size?: number;
23717
+ change_overlap_seconds?: number;
23718
+ change_poll_interval_seconds?: number;
23719
+ connection_id?: string;
23720
+ created_at?: string;
23721
+ currency?: string | null;
23722
+ currency_at?: string | null;
23723
+ currency_source?: string | null;
23724
+ customer_gl_account?: string | null;
23725
+ customer_gl_account_at?: string | null;
23726
+ customer_gl_account_source?: string | null;
23727
+ customers_written_by_module?: boolean;
23728
+ default_country?: string | null;
23729
+ default_country_at?: string | null;
23730
+ default_country_source?: string | null;
23731
+ default_language?: string | null;
23732
+ default_language_at?: string | null;
23733
+ default_language_source?: string | null;
23734
+ nightly_full_scan_cron?: string;
23735
+ payment_term_min_invoices?: number;
23736
+ payment_term_min_share?: number;
23737
+ rate_limit_floor?: number;
23738
+ requires_manual_approval?: boolean;
23739
+ run_budget_ms?: number;
23740
+ sales_daybook?: string | null;
23741
+ sales_daybook_confirmed_at?: string | null;
23742
+ sales_daybook_confirmed_by?: string | null;
23743
+ sales_gl_account?: string | null;
23744
+ sales_gl_account_at?: string | null;
23745
+ sales_gl_account_source?: string | null;
23746
+ sales_invoice_type?: string | null;
23747
+ sales_invoice_type_confirmed_at?: string | null;
23748
+ sales_invoice_type_confirmed_by?: string | null;
23749
+ sales_payment_term_at?: string | null;
23750
+ sales_payment_term_days?: number | null;
23751
+ sales_payment_term_source?: string | null;
23752
+ suggestion_warnings?: Json;
23753
+ updated_at?: string;
23754
+ };
23755
+ Relationships: [
23756
+ {
23757
+ foreignKeyName: "twinfield_sync_settings_connection_id_fkey";
23758
+ columns: ["connection_id"];
23759
+ isOneToOne: true;
23760
+ referencedRelation: "twinfield_connections";
23761
+ referencedColumns: ["id"];
23762
+ }
23763
+ ];
23764
+ };
22587
23765
  twinfield_sync_state: {
22588
23766
  Row: {
22589
23767
  connection_id: string;
@@ -22619,6 +23797,51 @@ export type Database = {
22619
23797
  }
22620
23798
  ];
22621
23799
  };
23800
+ twinfield_vat_code_map: {
23801
+ Row: {
23802
+ confirmed_at: string | null;
23803
+ confirmed_by: string | null;
23804
+ fetched_at: string;
23805
+ id: string;
23806
+ is_default: boolean;
23807
+ name: string | null;
23808
+ office_code: string;
23809
+ percentage: number | null;
23810
+ source: string;
23811
+ vat_category: string | null;
23812
+ vat_code: string;
23813
+ vat_type: string | null;
23814
+ };
23815
+ Insert: {
23816
+ confirmed_at?: string | null;
23817
+ confirmed_by?: string | null;
23818
+ fetched_at?: string;
23819
+ id?: string;
23820
+ is_default?: boolean;
23821
+ name?: string | null;
23822
+ office_code: string;
23823
+ percentage?: number | null;
23824
+ source?: string;
23825
+ vat_category?: string | null;
23826
+ vat_code: string;
23827
+ vat_type?: string | null;
23828
+ };
23829
+ Update: {
23830
+ confirmed_at?: string | null;
23831
+ confirmed_by?: string | null;
23832
+ fetched_at?: string;
23833
+ id?: string;
23834
+ is_default?: boolean;
23835
+ name?: string | null;
23836
+ office_code?: string;
23837
+ percentage?: number | null;
23838
+ source?: string;
23839
+ vat_category?: string | null;
23840
+ vat_code?: string;
23841
+ vat_type?: string | null;
23842
+ };
23843
+ Relationships: [];
23844
+ };
22622
23845
  uren_beschikbare_dagen: {
22623
23846
  Row: {
22624
23847
  bron: string;
@@ -22799,6 +24022,36 @@ export type Database = {
22799
24022
  };
22800
24023
  Relationships: [];
22801
24024
  };
24025
+ uren_indirecte_uren: {
24026
+ Row: {
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
+ Insert: {
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
+ Update: {
24045
+ created_at?: string;
24046
+ datum?: string;
24047
+ id?: string;
24048
+ minuten?: number;
24049
+ monteur_id?: string;
24050
+ toelichting?: string;
24051
+ updated_at?: string;
24052
+ };
24053
+ Relationships: [];
24054
+ };
22802
24055
  uren_maandafsluitingen: {
22803
24056
  Row: {
22804
24057
  afgesloten_at: string | null;
@@ -24793,12 +26046,14 @@ export type Database = {
24793
26046
  };
24794
26047
  werkbonnen: {
24795
26048
  Row: {
26049
+ afgerond_op: string | null;
24796
26050
  assigned_user_id: string | null;
24797
26051
  budget_mandate_cents: number;
24798
26052
  complaint_description: string | null;
24799
26053
  created_at: string;
24800
26054
  created_by: string | null;
24801
26055
  customer_id: string | null;
26056
+ customer_name: string | null;
24802
26057
  deadline_date: string | null;
24803
26058
  estimated_days: number | null;
24804
26059
  estimated_duration_minutes: number | null;
@@ -24835,12 +26090,14 @@ export type Database = {
24835
26090
  workday_hours: number | null;
24836
26091
  };
24837
26092
  Insert: {
26093
+ afgerond_op?: string | null;
24838
26094
  assigned_user_id?: string | null;
24839
26095
  budget_mandate_cents?: number;
24840
26096
  complaint_description?: string | null;
24841
26097
  created_at?: string;
24842
26098
  created_by?: string | null;
24843
26099
  customer_id?: string | null;
26100
+ customer_name?: string | null;
24844
26101
  deadline_date?: string | null;
24845
26102
  estimated_days?: number | null;
24846
26103
  estimated_duration_minutes?: number | null;
@@ -24877,12 +26134,14 @@ export type Database = {
24877
26134
  workday_hours?: number | null;
24878
26135
  };
24879
26136
  Update: {
26137
+ afgerond_op?: string | null;
24880
26138
  assigned_user_id?: string | null;
24881
26139
  budget_mandate_cents?: number;
24882
26140
  complaint_description?: string | null;
24883
26141
  created_at?: string;
24884
26142
  created_by?: string | null;
24885
26143
  customer_id?: string | null;
26144
+ customer_name?: string | null;
24886
26145
  deadline_date?: string | null;
24887
26146
  estimated_days?: number | null;
24888
26147
  estimated_duration_minutes?: number | null;
@@ -25286,6 +26545,7 @@ export type Database = {
25286
26545
  group_key: string | null;
25287
26546
  is_active: boolean | null;
25288
26547
  is_merged: boolean | null;
26548
+ last_changed_at: string | null;
25289
26549
  logo_url: string | null;
25290
26550
  match_key: string | null;
25291
26551
  phone: string | null;
@@ -25299,6 +26559,7 @@ export type Database = {
25299
26559
  };
25300
26560
  external_customers_unified: {
25301
26561
  Row: {
26562
+ changed_at: string | null;
25302
26563
  city: string | null;
25303
26564
  commercial_name: string | null;
25304
26565
  company_name: string | null;
@@ -25709,6 +26970,7 @@ export type Database = {
25709
26970
  };
25710
26971
  v_external_customers_floriday: {
25711
26972
  Row: {
26973
+ changed_at: string | null;
25712
26974
  city: string | null;
25713
26975
  commercial_name: string | null;
25714
26976
  company_name: string | null;
@@ -25744,6 +27006,7 @@ export type Database = {
25744
27006
  };
25745
27007
  v_external_customers_local: {
25746
27008
  Row: {
27009
+ changed_at: string | null;
25747
27010
  city: string | null;
25748
27011
  commercial_name: string | null;
25749
27012
  company_name: string | null;
@@ -25768,6 +27031,7 @@ export type Database = {
25768
27031
  website: string | null;
25769
27032
  };
25770
27033
  Insert: {
27034
+ changed_at?: never;
25771
27035
  city?: string | null;
25772
27036
  commercial_name?: string | null;
25773
27037
  company_name?: string | null;
@@ -25792,6 +27056,7 @@ export type Database = {
25792
27056
  website?: string | null;
25793
27057
  };
25794
27058
  Update: {
27059
+ changed_at?: never;
25795
27060
  city?: string | null;
25796
27061
  commercial_name?: string | null;
25797
27062
  company_name?: string | null;
@@ -25819,6 +27084,7 @@ export type Database = {
25819
27084
  };
25820
27085
  v_external_customers_twinfield: {
25821
27086
  Row: {
27087
+ changed_at: string | null;
25822
27088
  city: string | null;
25823
27089
  commercial_name: string | null;
25824
27090
  company_name: string | null;
@@ -26052,6 +27318,15 @@ export type Database = {
26052
27318
  };
26053
27319
  };
26054
27320
  Functions: {
27321
+ _floriday_queue_cleanup_batch: {
27322
+ Args: {
27323
+ p_days: number;
27324
+ p_keep_latest: boolean;
27325
+ p_limit: number;
27326
+ p_statuses: string[];
27327
+ };
27328
+ Returns: number;
27329
+ };
26055
27330
  _floriday_schedule_job: {
26056
27331
  Args: {
26057
27332
  p_apikey: string;
@@ -26075,6 +27350,12 @@ export type Database = {
26075
27350
  };
26076
27351
  Returns: Json;
26077
27352
  };
27353
+ _stock_import_caller: {
27354
+ Args: {
27355
+ p_owner: string;
27356
+ };
27357
+ Returns: boolean;
27358
+ };
26078
27359
  _wo_is_planner: {
26079
27360
  Args: never;
26080
27361
  Returns: boolean;
@@ -26207,6 +27488,8 @@ export type Database = {
26207
27488
  desired_availability: boolean;
26208
27489
  desired_quantity: number;
26209
27490
  erp_available: number;
27491
+ packing_size: number;
27492
+ reason: string;
26210
27493
  stock_mode: string;
26211
27494
  }[];
26212
27495
  };
@@ -26216,6 +27499,15 @@ export type Database = {
26216
27499
  };
26217
27500
  Returns: number;
26218
27501
  };
27502
+ calculate_structure_available: {
27503
+ Args: {
27504
+ p_connection_id: string;
27505
+ p_level?: number;
27506
+ p_path?: string[];
27507
+ p_product_id: string;
27508
+ };
27509
+ Returns: Json;
27510
+ };
26219
27511
  call_exact_route: {
26220
27512
  Args: {
26221
27513
  path: string;
@@ -26244,6 +27536,19 @@ export type Database = {
26244
27536
  };
26245
27537
  Returns: Json;
26246
27538
  };
27539
+ check_product_structure: {
27540
+ Args: {
27541
+ p_child: string;
27542
+ p_kind: string;
27543
+ p_name?: string;
27544
+ p_parent: string;
27545
+ };
27546
+ Returns: {
27547
+ code: string;
27548
+ message: string;
27549
+ ok: boolean;
27550
+ }[];
27551
+ };
26247
27552
  check_trade_item_available_stock: {
26248
27553
  Args: {
26249
27554
  p_connection_id?: string;
@@ -26324,11 +27629,13 @@ export type Database = {
26324
27629
  };
26325
27630
  Returns: {
26326
27631
  attempts: number;
27632
+ availability_sent_at: string | null;
26327
27633
  connection_id: string;
26328
27634
  created_at: string;
26329
27635
  dead_lettered_at: string | null;
26330
27636
  desired_available: boolean | null;
26331
27637
  gateway_attempt_id: string | null;
27638
+ gateway_unreachable_since: string | null;
26332
27639
  id: string;
26333
27640
  last_error: string | null;
26334
27641
  locked_at: string | null;
@@ -26336,7 +27643,9 @@ export type Database = {
26336
27643
  next_attempt_at: string;
26337
27644
  number_of_pieces: number;
26338
27645
  product_id: string | null;
27646
+ quantity_sent_at: string | null;
26339
27647
  sent_at: string | null;
27648
+ skip_reason: string | null;
26340
27649
  status: string;
26341
27650
  stock_mode: string | null;
26342
27651
  superseded_by: string | null;
@@ -26586,6 +27895,14 @@ export type Database = {
26586
27895
  Args: never;
26587
27896
  Returns: undefined;
26588
27897
  };
27898
+ cleanup_standby_planning: {
27899
+ Args: never;
27900
+ Returns: number;
27901
+ };
27902
+ cleanup_time_compensation_log: {
27903
+ Args: never;
27904
+ Returns: number;
27905
+ };
26589
27906
  cleanup_voorraad_module_history: {
26590
27907
  Args: never;
26591
27908
  Returns: undefined;
@@ -26600,6 +27917,18 @@ export type Database = {
26600
27917
  };
26601
27918
  Returns: undefined;
26602
27919
  };
27920
+ complete_floriday_stock_queue_outcome: {
27921
+ Args: {
27922
+ p_attempt_id?: string;
27923
+ p_availability_sent?: boolean;
27924
+ p_error?: string;
27925
+ p_id: string;
27926
+ p_outcome: string;
27927
+ p_permanent?: boolean;
27928
+ p_quantity_sent?: boolean;
27929
+ };
27930
+ Returns: undefined;
27931
+ };
26603
27932
  consume_bom_for_production: {
26604
27933
  Args: {
26605
27934
  p_connection_id: string;
@@ -26634,6 +27963,15 @@ export type Database = {
26634
27963
  wait_ms: number;
26635
27964
  }[];
26636
27965
  };
27966
+ consume_order_item: {
27967
+ Args: {
27968
+ p_order_id: string;
27969
+ p_order_item_id: string;
27970
+ p_reason: string;
27971
+ p_source: string;
27972
+ };
27973
+ Returns: number;
27974
+ };
26637
27975
  consume_print_agent_pairing: {
26638
27976
  Args: {
26639
27977
  _pairing_hash: string;
@@ -26766,6 +28104,10 @@ export type Database = {
26766
28104
  };
26767
28105
  Returns: Json;
26768
28106
  };
28107
+ drain_inventory_recompute_queue: {
28108
+ Args: never;
28109
+ Returns: number;
28110
+ };
26769
28111
  effective_module_permission: {
26770
28112
  Args: {
26771
28113
  _module_id: string;
@@ -26838,8 +28180,20 @@ export type Database = {
26838
28180
  };
26839
28181
  Returns: undefined;
26840
28182
  };
26841
- ensure_system_roles: {
26842
- Args: never;
28183
+ enqueue_structure_recompute: {
28184
+ Args: {
28185
+ p_include_self?: boolean;
28186
+ p_product_ids: string[];
28187
+ p_reason: string;
28188
+ };
28189
+ Returns: number;
28190
+ };
28191
+ ensure_inventory_recompute_drain: {
28192
+ Args: never;
28193
+ Returns: undefined;
28194
+ };
28195
+ ensure_system_roles: {
28196
+ Args: never;
26843
28197
  Returns: {
26844
28198
  action: string;
26845
28199
  role_key: string;
@@ -26851,6 +28205,12 @@ export type Database = {
26851
28205
  };
26852
28206
  Returns: undefined;
26853
28207
  };
28208
+ ensure_trade_item_stock_row_key: {
28209
+ Args: {
28210
+ p_key: string;
28211
+ };
28212
+ Returns: string;
28213
+ };
26854
28214
  ensure_user_tenant: {
26855
28215
  Args: never;
26856
28216
  Returns: string;
@@ -26937,7 +28297,7 @@ export type Database = {
26937
28297
  };
26938
28298
  floriday_cleanup_stock_queue_v2: {
26939
28299
  Args: never;
26940
- Returns: undefined;
28300
+ Returns: Json;
26941
28301
  };
26942
28302
  floriday_compact_stock_snapshots: {
26943
28303
  Args: never;
@@ -26949,6 +28309,19 @@ export type Database = {
26949
28309
  };
26950
28310
  Returns: string;
26951
28311
  };
28312
+ floriday_desired_stock_regression_check: {
28313
+ Args: never;
28314
+ Returns: {
28315
+ actual: number;
28316
+ available: number;
28317
+ equal: boolean;
28318
+ expected: number;
28319
+ packing: number;
28320
+ product_id: string;
28321
+ product_name: string;
28322
+ stock_mode: string;
28323
+ }[];
28324
+ };
26952
28325
  floriday_effective_price: {
26953
28326
  Args: {
26954
28327
  _buyer_id: string;
@@ -26976,6 +28349,10 @@ export type Database = {
26976
28349
  };
26977
28350
  Returns: number;
26978
28351
  };
28352
+ floriday_orphan_settings_count: {
28353
+ Args: never;
28354
+ Returns: number;
28355
+ };
26979
28356
  floriday_publish_horizon_weeks: {
26980
28357
  Args: never;
26981
28358
  Returns: number;
@@ -27207,6 +28584,18 @@ export type Database = {
27207
28584
  updated_at: string;
27208
28585
  }[];
27209
28586
  };
28587
+ get_product_structure_totals: {
28588
+ Args: {
28589
+ p_product_id: string;
28590
+ };
28591
+ Returns: Json;
28592
+ };
28593
+ get_product_structure_totals_batch: {
28594
+ Args: {
28595
+ p_product_ids: string[];
28596
+ };
28597
+ Returns: Json[];
28598
+ };
27210
28599
  get_room_busy_windows: {
27211
28600
  Args: {
27212
28601
  p_from: string;
@@ -27630,6 +29019,16 @@ export type Database = {
27630
29019
  };
27631
29020
  Returns: number;
27632
29021
  };
29022
+ inventory_inline_budget_ok: {
29023
+ Args: never;
29024
+ Returns: boolean;
29025
+ };
29026
+ invoice_auto_concept_for_work_order: {
29027
+ Args: {
29028
+ _wo_id: string;
29029
+ };
29030
+ Returns: undefined;
29031
+ };
27633
29032
  invoice_branding_snapshot: {
27634
29033
  Args: never;
27635
29034
  Returns: Json;
@@ -27897,6 +29296,24 @@ export type Database = {
27897
29296
  };
27898
29297
  Returns: string;
27899
29298
  };
29299
+ logistics_allocation_check_changes: {
29300
+ Args: {
29301
+ p_order_item_ids?: string[];
29302
+ };
29303
+ Returns: Json;
29304
+ };
29305
+ logistics_allocation_fp: {
29306
+ Args: {
29307
+ p_order_id: string;
29308
+ };
29309
+ Returns: string;
29310
+ };
29311
+ logistics_allocation_frozen: {
29312
+ Args: {
29313
+ p_order_id: string;
29314
+ };
29315
+ Returns: boolean;
29316
+ };
27900
29317
  logistics_allowed_load_carriers: {
27901
29318
  Args: {
27902
29319
  p_strategy_id?: string;
@@ -27910,6 +29327,13 @@ export type Database = {
27910
29327
  };
27911
29328
  Returns: string;
27912
29329
  };
29330
+ logistics_apply_cart_swap: {
29331
+ Args: {
29332
+ p_delete_ids: string[];
29333
+ p_new_carts: Json;
29334
+ };
29335
+ Returns: Json;
29336
+ };
27913
29337
  logistics_apply_document_layouts: {
27914
29338
  Args: never;
27915
29339
  Returns: undefined;
@@ -27938,6 +29362,14 @@ export type Database = {
27938
29362
  };
27939
29363
  Returns: Json;
27940
29364
  };
29365
+ logistics_base_url_check_status: {
29366
+ Args: never;
29367
+ Returns: Json;
29368
+ };
29369
+ logistics_base_url_checks_resolve: {
29370
+ Args: never;
29371
+ Returns: number;
29372
+ };
27941
29373
  logistics_block_reason_code: {
27942
29374
  Args: {
27943
29375
  p_details?: Json;
@@ -28578,6 +30010,15 @@ export type Database = {
28578
30010
  };
28579
30011
  Returns: Database["public"]["Enums"]["doc_layout_type"][];
28580
30012
  };
30013
+ logistics_double_group_lines: {
30014
+ Args: {
30015
+ p_order_id?: string;
30016
+ };
30017
+ Returns: {
30018
+ group_id: string;
30019
+ order_item_id: string;
30020
+ }[];
30021
+ };
28581
30022
  logistics_emit_event: {
28582
30023
  Args: {
28583
30024
  p_event_type: string;
@@ -28633,6 +30074,20 @@ export type Database = {
28633
30074
  };
28634
30075
  Returns: Json;
28635
30076
  };
30077
+ logistics_expand_line: {
30078
+ Args: {
30079
+ p_depth?: number;
30080
+ p_path?: string[];
30081
+ p_product_id: string;
30082
+ p_qty: number;
30083
+ };
30084
+ Returns: {
30085
+ kind: string;
30086
+ note: string;
30087
+ qty: number;
30088
+ ref: string;
30089
+ }[];
30090
+ };
28636
30091
  logistics_fail_task: {
28637
30092
  Args: {
28638
30093
  p_error: string;
@@ -28822,6 +30277,18 @@ export type Database = {
28822
30277
  };
28823
30278
  Returns: boolean;
28824
30279
  };
30280
+ logistics_frozen_allocation_scaled: {
30281
+ Args: {
30282
+ p_new_qty: number;
30283
+ p_order_item_id: string;
30284
+ };
30285
+ Returns: {
30286
+ group_id: string;
30287
+ qty: number;
30288
+ source: string;
30289
+ trade_item_key: string;
30290
+ }[];
30291
+ };
28825
30292
  logistics_fulfill_barcode_requests: {
28826
30293
  Args: {
28827
30294
  p_limit?: number;
@@ -28836,12 +30303,31 @@ export type Database = {
28836
30303
  Args: never;
28837
30304
  Returns: number;
28838
30305
  };
30306
+ logistics_is_engine_response: {
30307
+ Args: {
30308
+ p_content: string;
30309
+ p_status: number;
30310
+ };
30311
+ Returns: boolean;
30312
+ };
30313
+ logistics_is_group_label: {
30314
+ Args: {
30315
+ p_label: string;
30316
+ };
30317
+ Returns: boolean;
30318
+ };
28839
30319
  logistics_is_pick_workday: {
28840
30320
  Args: {
28841
30321
  p_date: string;
28842
30322
  };
28843
30323
  Returns: boolean;
28844
30324
  };
30325
+ logistics_key_product: {
30326
+ Args: {
30327
+ p_key: string;
30328
+ };
30329
+ Returns: string;
30330
+ };
28845
30331
  logistics_layout_method_status: {
28846
30332
  Args: never;
28847
30333
  Returns: Json;
@@ -28944,6 +30430,12 @@ export type Database = {
28944
30430
  };
28945
30431
  Returns: undefined;
28946
30432
  };
30433
+ logistics_order_current_warnings: {
30434
+ Args: {
30435
+ p_order_id: string;
30436
+ };
30437
+ Returns: string[];
30438
+ };
28947
30439
  logistics_order_documents_ready: {
28948
30440
  Args: {
28949
30441
  p_order_ref: string;
@@ -29025,6 +30517,18 @@ export type Database = {
29025
30517
  };
29026
30518
  Returns: boolean;
29027
30519
  };
30520
+ logistics_order_line_allocation: {
30521
+ Args: {
30522
+ p_order_item_id: string;
30523
+ };
30524
+ Returns: {
30525
+ group_id: string;
30526
+ note: string;
30527
+ qty: number;
30528
+ source: string;
30529
+ trade_item_key: string;
30530
+ }[];
30531
+ };
29028
30532
  logistics_order_line_duplicates: {
29029
30533
  Args: {
29030
30534
  p_order_id: string;
@@ -29384,6 +30888,21 @@ export type Database = {
29384
30888
  Args: never;
29385
30889
  Returns: number;
29386
30890
  };
30891
+ logistics_plan_wachttijd: {
30892
+ Args: {
30893
+ p_order_id: string;
30894
+ p_reason: string;
30895
+ };
30896
+ Returns: Json;
30897
+ };
30898
+ logistics_plan_wachttijd_melden: {
30899
+ Args: {
30900
+ p_order_id: string;
30901
+ p_reason: string;
30902
+ p_wacht: Json;
30903
+ };
30904
+ Returns: undefined;
30905
+ };
29387
30906
  logistics_planner_cart_snapshot: {
29388
30907
  Args: {
29389
30908
  p_buffer_id: string;
@@ -29399,6 +30918,23 @@ export type Database = {
29399
30918
  Args: never;
29400
30919
  Returns: number;
29401
30920
  };
30921
+ logistics_planner_lines: {
30922
+ Args: {
30923
+ p_order_id: string;
30924
+ };
30925
+ Returns: {
30926
+ components: Json;
30927
+ frozen: boolean;
30928
+ group_id: string;
30929
+ note: string;
30930
+ order_item_id: string;
30931
+ product_id: string;
30932
+ product_name: string;
30933
+ qty: number;
30934
+ trade_item_key: string;
30935
+ unit_kind: string;
30936
+ }[];
30937
+ };
29402
30938
  logistics_prepare_pick_documents: {
29403
30939
  Args: {
29404
30940
  p_limit?: number;
@@ -29470,6 +31006,12 @@ export type Database = {
29470
31006
  Args: never;
29471
31007
  Returns: number;
29472
31008
  };
31009
+ logistics_recompute_reserved_targeted: {
31010
+ Args: {
31011
+ p_product_id: string;
31012
+ };
31013
+ Returns: Json;
31014
+ };
29473
31015
  logistics_reconcile_missing_plan_queue: {
29474
31016
  Args: never;
29475
31017
  Returns: number;
@@ -29523,6 +31065,13 @@ export type Database = {
29523
31065
  };
29524
31066
  Returns: Json;
29525
31067
  };
31068
+ logistics_replan_selected_orders: {
31069
+ Args: {
31070
+ p_order_ids: string[];
31071
+ p_reason?: string;
31072
+ };
31073
+ Returns: Json;
31074
+ };
29526
31075
  logistics_report_delay: {
29527
31076
  Args: {
29528
31077
  p_expected_date?: string;
@@ -29539,6 +31088,12 @@ export type Database = {
29539
31088
  };
29540
31089
  Returns: string;
29541
31090
  };
31091
+ logistics_report_frozen_shortage: {
31092
+ Args: {
31093
+ p_order_item_ids: string[];
31094
+ };
31095
+ Returns: undefined;
31096
+ };
29542
31097
  logistics_rescan_orders: {
29543
31098
  Args: {
29544
31099
  p_days?: number;
@@ -29567,6 +31122,19 @@ export type Database = {
29567
31122
  };
29568
31123
  Returns: Json;
29569
31124
  };
31125
+ logistics_reserved_fast_skip: {
31126
+ Args: {
31127
+ p_key: string;
31128
+ p_raw: string;
31129
+ };
31130
+ Returns: boolean;
31131
+ };
31132
+ logistics_reserved_key: {
31133
+ Args: {
31134
+ p_key: string;
31135
+ };
31136
+ Returns: string;
31137
+ };
29570
31138
  logistics_reserved_stock_nightly: {
29571
31139
  Args: never;
29572
31140
  Returns: undefined;
@@ -29586,6 +31154,12 @@ export type Database = {
29586
31154
  };
29587
31155
  Returns: string;
29588
31156
  };
31157
+ logistics_resolve_product_match: {
31158
+ Args: {
31159
+ p_label: string;
31160
+ };
31161
+ Returns: Record<string, unknown>;
31162
+ };
29589
31163
  logistics_resolve_settings: {
29590
31164
  Args: {
29591
31165
  p_config_id: string;
@@ -29706,6 +31280,16 @@ export type Database = {
29706
31280
  };
29707
31281
  Returns: string;
29708
31282
  };
31283
+ logistics_shipping_note_max_attempts: {
31284
+ Args: never;
31285
+ Returns: number;
31286
+ };
31287
+ logistics_shipping_note_release: {
31288
+ Args: {
31289
+ _order_number?: string;
31290
+ };
31291
+ Returns: number;
31292
+ };
29709
31293
  logistics_shipping_note_status: {
29710
31294
  Args: {
29711
31295
  p_cart_id?: string;
@@ -29713,6 +31297,12 @@ export type Database = {
29713
31297
  };
29714
31298
  Returns: Json;
29715
31299
  };
31300
+ logistics_shipping_note_wake: {
31301
+ Args: {
31302
+ _slip_job_id: string;
31303
+ };
31304
+ Returns: number;
31305
+ };
29716
31306
  logistics_shipping_notes_wake_all: {
29717
31307
  Args: never;
29718
31308
  Returns: Json;
@@ -29747,6 +31337,7 @@ export type Database = {
29747
31337
  slip_job_id: string;
29748
31338
  status: string;
29749
31339
  updated_at: string;
31340
+ voor_herstel: boolean;
29750
31341
  }[];
29751
31342
  SetofOptions: {
29752
31343
  from: "*";
@@ -29767,6 +31358,13 @@ export type Database = {
29767
31358
  };
29768
31359
  Returns: undefined;
29769
31360
  };
31361
+ logistics_slip_note_hold: {
31362
+ Args: {
31363
+ _id: string;
31364
+ _reason: string;
31365
+ };
31366
+ Returns: undefined;
31367
+ };
29770
31368
  logistics_slip_note_keep_waiting: {
29771
31369
  Args: {
29772
31370
  _class?: string;
@@ -29854,6 +31452,10 @@ export type Database = {
29854
31452
  Args: never;
29855
31453
  Returns: Json;
29856
31454
  };
31455
+ logistics_tick_base_url_check: {
31456
+ Args: never;
31457
+ Returns: Json;
31458
+ };
29857
31459
  logistics_tick_calls_resolve: {
29858
31460
  Args: never;
29859
31461
  Returns: number;
@@ -31006,6 +32608,31 @@ export type Database = {
31006
32608
  };
31007
32609
  Returns: undefined;
31008
32610
  };
32611
+ plan_standby_batch: {
32612
+ Args: {
32613
+ _items: Json;
32614
+ _notes: string;
32615
+ _remove_ids?: string[];
32616
+ _soort: string;
32617
+ };
32618
+ Returns: {
32619
+ created_at: string;
32620
+ created_by: string | null;
32621
+ employee_id: string;
32622
+ end_date: string;
32623
+ id: string;
32624
+ notes: string | null;
32625
+ soort: string;
32626
+ start_date: string;
32627
+ updated_at: string;
32628
+ }[];
32629
+ SetofOptions: {
32630
+ from: "*";
32631
+ to: "standby_planning";
32632
+ isOneToOne: false;
32633
+ isSetofReturn: true;
32634
+ };
32635
+ };
31009
32636
  planning_apply_schedule_updates: {
31010
32637
  Args: {
31011
32638
  _updates: Json;
@@ -31141,6 +32768,12 @@ export type Database = {
31141
32768
  };
31142
32769
  Returns: Json;
31143
32770
  };
32771
+ process_inventory_recompute_queue: {
32772
+ Args: {
32773
+ p_limit?: number;
32774
+ };
32775
+ Returns: number;
32776
+ };
31144
32777
  process_logistics_event: {
31145
32778
  Args: {
31146
32779
  p_event_id: string;
@@ -31155,6 +32788,80 @@ export type Database = {
31155
32788
  };
31156
32789
  Returns: Json;
31157
32790
  };
32791
+ product_active_group_id: {
32792
+ Args: {
32793
+ p_product_id: string;
32794
+ };
32795
+ Returns: string;
32796
+ };
32797
+ product_id_from_ref: {
32798
+ Args: {
32799
+ p_ref: string;
32800
+ };
32801
+ Returns: string;
32802
+ };
32803
+ product_is_set: {
32804
+ Args: {
32805
+ p_product_id: string;
32806
+ };
32807
+ Returns: boolean;
32808
+ };
32809
+ product_label: {
32810
+ Args: {
32811
+ p_id: string;
32812
+ };
32813
+ Returns: string;
32814
+ };
32815
+ product_member_group_ids: {
32816
+ Args: {
32817
+ p_product_id: string;
32818
+ };
32819
+ Returns: string[];
32820
+ };
32821
+ product_own_available: {
32822
+ Args: {
32823
+ p_connection_id: string;
32824
+ p_product_id: string;
32825
+ };
32826
+ Returns: Record<string, unknown>;
32827
+ };
32828
+ product_set_depth_above: {
32829
+ Args: {
32830
+ p_path?: string[];
32831
+ p_product_id: string;
32832
+ };
32833
+ Returns: number;
32834
+ };
32835
+ product_set_depth_below: {
32836
+ Args: {
32837
+ p_path?: string[];
32838
+ p_product_id: string;
32839
+ };
32840
+ Returns: number;
32841
+ };
32842
+ product_structure_ancestors: {
32843
+ Args: {
32844
+ p_product_ids: string[];
32845
+ };
32846
+ Returns: string[];
32847
+ };
32848
+ product_structure_max_depth: {
32849
+ Args: never;
32850
+ Returns: number;
32851
+ };
32852
+ product_structure_path: {
32853
+ Args: {
32854
+ p_from: string;
32855
+ p_target: string;
32856
+ };
32857
+ Returns: string[];
32858
+ };
32859
+ product_type: {
32860
+ Args: {
32861
+ p_product_id: string;
32862
+ };
32863
+ Returns: string;
32864
+ };
31158
32865
  promote_floriday_customer: {
31159
32866
  Args: {
31160
32867
  _org_id: string;
@@ -31395,6 +33102,14 @@ export type Database = {
31395
33102
  };
31396
33103
  Returns: Json;
31397
33104
  };
33105
+ requeue_skipped_stock_rows: {
33106
+ Args: {
33107
+ p_connection_id: string;
33108
+ p_status: string;
33109
+ p_trade_item_id?: string;
33110
+ };
33111
+ Returns: number;
33112
+ };
31398
33113
  reset_cart_layer_positions: {
31399
33114
  Args: {
31400
33115
  p_cart_id: string;
@@ -31507,6 +33222,41 @@ export type Database = {
31507
33222
  Args: never;
31508
33223
  Returns: undefined;
31509
33224
  };
33225
+ save_belading: {
33226
+ Args: {
33227
+ p_expected_updated_at: string;
33228
+ p_packing_configuration_id: string;
33229
+ p_product_id: string;
33230
+ p_tenant_id: string;
33231
+ p_trade_item_floriday_id: string;
33232
+ p_values: Json;
33233
+ };
33234
+ Returns: Json;
33235
+ };
33236
+ save_product_group: {
33237
+ Args: {
33238
+ p_description: string;
33239
+ p_expected_updated_at: string;
33240
+ p_head_product_id: string;
33241
+ p_id: string;
33242
+ p_is_active: boolean;
33243
+ p_members: Json;
33244
+ p_name: string;
33245
+ };
33246
+ Returns: Json;
33247
+ };
33248
+ save_samenstelling: {
33249
+ Args: {
33250
+ p_components: Json;
33251
+ p_expected_updated_at: string;
33252
+ p_external: Json;
33253
+ p_packing_configuration_id: string;
33254
+ p_parent_id: string;
33255
+ p_parent_kind: string;
33256
+ p_tenant_id: string;
33257
+ };
33258
+ Returns: Json;
33259
+ };
31510
33260
  scan_cancel_kar: {
31511
33261
  Args: {
31512
33262
  p_kar_id: string;
@@ -31988,6 +33738,10 @@ export type Database = {
31988
33738
  Args: never;
31989
33739
  Returns: number;
31990
33740
  };
33741
+ server_now: {
33742
+ Args: never;
33743
+ Returns: string;
33744
+ };
31991
33745
  set_planning_status: {
31992
33746
  Args: {
31993
33747
  _id: string;
@@ -32036,6 +33790,40 @@ export type Database = {
32036
33790
  };
32037
33791
  Returns: Json;
32038
33792
  };
33793
+ stock_import_cleanup: {
33794
+ Args: never;
33795
+ Returns: number;
33796
+ };
33797
+ stock_import_create: {
33798
+ Args: {
33799
+ p_connection_id: string;
33800
+ p_file_hash: string;
33801
+ p_filename: string;
33802
+ p_force?: boolean;
33803
+ p_rows: Json;
33804
+ };
33805
+ Returns: Json;
33806
+ };
33807
+ stock_import_process_chunk: {
33808
+ Args: {
33809
+ p_chunk_no: number;
33810
+ p_run_id: string;
33811
+ };
33812
+ Returns: Json;
33813
+ };
33814
+ stock_import_stop: {
33815
+ Args: {
33816
+ p_run_id: string;
33817
+ };
33818
+ Returns: Json;
33819
+ };
33820
+ stock_import_undo_chunk: {
33821
+ Args: {
33822
+ p_chunk_no: number;
33823
+ p_run_id: string;
33824
+ };
33825
+ Returns: Json;
33826
+ };
32039
33827
  stop_time_log: {
32040
33828
  Args: {
32041
33829
  p_employee_id: string;
@@ -32224,6 +34012,28 @@ export type Database = {
32224
34012
  };
32225
34013
  Returns: Json;
32226
34014
  };
34015
+ twinfield_sync_apply: {
34016
+ Args: {
34017
+ _base: Json;
34018
+ _customer_id: string;
34019
+ _patch: Json;
34020
+ _uid: string;
34021
+ _version: number;
34022
+ };
34023
+ Returns: undefined;
34024
+ };
34025
+ twinfield_sync_insert: {
34026
+ Args: {
34027
+ _row: Json;
34028
+ };
34029
+ Returns: string;
34030
+ };
34031
+ twinfield_sync_mark_missing: {
34032
+ Args: {
34033
+ _ids: string[];
34034
+ };
34035
+ Returns: undefined;
34036
+ };
32227
34037
  twinfield_upsert_connection_by_account_key: {
32228
34038
  Args: {
32229
34039
  p_account_key: string;
@@ -32249,6 +34059,25 @@ export type Database = {
32249
34059
  };
32250
34060
  Returns: undefined;
32251
34061
  };
34062
+ uren_collega_agenda: {
34063
+ Args: {
34064
+ _monteur: string;
34065
+ _tot: string;
34066
+ _van: string;
34067
+ };
34068
+ Returns: {
34069
+ afwezig: string;
34070
+ datum: string;
34071
+ gepland: number;
34072
+ kort_vrij: Json;
34073
+ overuren: number;
34074
+ standby_avond: boolean;
34075
+ standby_ingepland: string;
34076
+ standby_weekend: boolean;
34077
+ werk_eind: string;
34078
+ werk_start: string;
34079
+ }[];
34080
+ };
32252
34081
  uren_dag_controle: {
32253
34082
  Args: {
32254
34083
  _datum: string;
@@ -32290,6 +34119,20 @@ export type Database = {
32290
34119
  Args: never;
32291
34120
  Returns: boolean;
32292
34121
  };
34122
+ uren_indirect_opslaan: {
34123
+ Args: {
34124
+ _datum: string;
34125
+ _minuten: number;
34126
+ _toelichting: string;
34127
+ };
34128
+ Returns: string;
34129
+ };
34130
+ uren_indirect_verwijderen: {
34131
+ Args: {
34132
+ _id: string;
34133
+ };
34134
+ Returns: undefined;
34135
+ };
32293
34136
  uren_is_beheerder: {
32294
34137
  Args: never;
32295
34138
  Returns: boolean;
@@ -32330,6 +34173,13 @@ export type Database = {
32330
34173
  roles: string[];
32331
34174
  }[];
32332
34175
  };
34176
+ uren_list_monteurs: {
34177
+ Args: never;
34178
+ Returns: {
34179
+ id: string;
34180
+ naam: string;
34181
+ }[];
34182
+ };
32333
34183
  uren_list_planner_contacten: {
32334
34184
  Args: never;
32335
34185
  Returns: {
@@ -32450,6 +34300,36 @@ export type Database = {
32450
34300
  };
32451
34301
  Returns: undefined;
32452
34302
  };
34303
+ uren_standby_opslaan: {
34304
+ Args: {
34305
+ _datums: string[];
34306
+ _soort: string;
34307
+ _tot: string;
34308
+ _van: string;
34309
+ };
34310
+ Returns: undefined;
34311
+ };
34312
+ uren_standby_overdragen: {
34313
+ Args: {
34314
+ _datum: string;
34315
+ _naar: string;
34316
+ };
34317
+ Returns: undefined;
34318
+ };
34319
+ uren_standby_ruil: {
34320
+ Args: {
34321
+ _aan: boolean;
34322
+ _datum: string;
34323
+ };
34324
+ Returns: undefined;
34325
+ };
34326
+ uren_standby_sync: {
34327
+ Args: {
34328
+ _tot: string;
34329
+ _van: string;
34330
+ };
34331
+ Returns: undefined;
34332
+ };
32453
34333
  uren_stop_time_log: {
32454
34334
  Args: {
32455
34335
  p_employee_id: string;
@@ -32725,6 +34605,12 @@ export type Database = {
32725
34605
  };
32726
34606
  Returns: Json;
32727
34607
  };
34608
+ wo_is_planned_monteur: {
34609
+ Args: {
34610
+ _werkbon_id: string;
34611
+ };
34612
+ Returns: boolean;
34613
+ };
32728
34614
  wo_list_colleague_planning: {
32729
34615
  Args: {
32730
34616
  _from: string;
@@ -32752,6 +34638,12 @@ export type Database = {
32752
34638
  };
32753
34639
  Returns: Json;
32754
34640
  };
34641
+ wo_open_standby: {
34642
+ Args: {
34643
+ _standby_id: string;
34644
+ };
34645
+ Returns: string;
34646
+ };
32755
34647
  wo_process_offerte_request: {
32756
34648
  Args: {
32757
34649
  _queue_id: string;