@flowselections/floriday-klanten-module 1.0.42 → 1.0.44

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.
@@ -1052,6 +1052,7 @@ export type Database = {
1052
1052
  auto_break_unpaid: boolean;
1053
1053
  auto_stop_after_hours: number;
1054
1054
  callout_fee: number;
1055
+ company_number: string | null;
1055
1056
  created_at: string;
1056
1057
  daily_regular_hours: number;
1057
1058
  default_hourly_rate: number;
@@ -1083,6 +1084,7 @@ export type Database = {
1083
1084
  auto_break_unpaid?: boolean;
1084
1085
  auto_stop_after_hours?: number;
1085
1086
  callout_fee?: number;
1087
+ company_number?: string | null;
1086
1088
  created_at?: string;
1087
1089
  daily_regular_hours?: number;
1088
1090
  default_hourly_rate?: number;
@@ -1114,6 +1116,7 @@ export type Database = {
1114
1116
  auto_break_unpaid?: boolean;
1115
1117
  auto_stop_after_hours?: number;
1116
1118
  callout_fee?: number;
1119
+ company_number?: string | null;
1117
1120
  created_at?: string;
1118
1121
  daily_regular_hours?: number;
1119
1122
  default_hourly_rate?: number;
@@ -3122,6 +3125,30 @@ export type Database = {
3122
3125
  };
3123
3126
  Relationships: [];
3124
3127
  };
3128
+ dashboard_werkbon_tellers: {
3129
+ Row: {
3130
+ aantal: number;
3131
+ jaar: number;
3132
+ maand: number;
3133
+ soort: string;
3134
+ updated_at: string;
3135
+ };
3136
+ Insert: {
3137
+ aantal?: number;
3138
+ jaar: number;
3139
+ maand: number;
3140
+ soort: string;
3141
+ updated_at?: string;
3142
+ };
3143
+ Update: {
3144
+ aantal?: number;
3145
+ jaar?: number;
3146
+ maand?: number;
3147
+ soort?: string;
3148
+ updated_at?: string;
3149
+ };
3150
+ Relationships: [];
3151
+ };
3125
3152
  delivery_notes: {
3126
3153
  Row: {
3127
3154
  byte_size: number | null;
@@ -6644,19 +6671,28 @@ export type Database = {
6644
6671
  floriday_continuous_stock_queue: {
6645
6672
  Row: {
6646
6673
  attempts: number;
6674
+ availability_sent_at: string | null;
6675
+ base_supply_outcome: string | null;
6647
6676
  connection_id: string;
6648
6677
  created_at: string;
6649
6678
  dead_lettered_at: string | null;
6650
6679
  desired_available: boolean | null;
6651
6680
  gateway_attempt_id: string | null;
6681
+ gateway_unreachable_since: string | null;
6652
6682
  id: string;
6653
6683
  last_error: string | null;
6654
6684
  locked_at: string | null;
6655
6685
  locked_by: string | null;
6656
6686
  next_attempt_at: string;
6657
6687
  number_of_pieces: number;
6688
+ price_note: string | null;
6689
+ price_sent: number | null;
6690
+ price_status: string | null;
6658
6691
  product_id: string | null;
6692
+ quantity_sent_at: string | null;
6693
+ result_label: string | null;
6659
6694
  sent_at: string | null;
6695
+ skip_reason: string | null;
6660
6696
  status: string;
6661
6697
  stock_mode: string | null;
6662
6698
  superseded_by: string | null;
@@ -6668,19 +6704,28 @@ export type Database = {
6668
6704
  };
6669
6705
  Insert: {
6670
6706
  attempts?: number;
6707
+ availability_sent_at?: string | null;
6708
+ base_supply_outcome?: string | null;
6671
6709
  connection_id: string;
6672
6710
  created_at?: string;
6673
6711
  dead_lettered_at?: string | null;
6674
6712
  desired_available?: boolean | null;
6675
6713
  gateway_attempt_id?: string | null;
6714
+ gateway_unreachable_since?: string | null;
6676
6715
  id?: string;
6677
6716
  last_error?: string | null;
6678
6717
  locked_at?: string | null;
6679
6718
  locked_by?: string | null;
6680
6719
  next_attempt_at?: string;
6681
6720
  number_of_pieces?: number;
6721
+ price_note?: string | null;
6722
+ price_sent?: number | null;
6723
+ price_status?: string | null;
6682
6724
  product_id?: string | null;
6725
+ quantity_sent_at?: string | null;
6726
+ result_label?: string | null;
6683
6727
  sent_at?: string | null;
6728
+ skip_reason?: string | null;
6684
6729
  status?: string;
6685
6730
  stock_mode?: string | null;
6686
6731
  superseded_by?: string | null;
@@ -6692,19 +6737,28 @@ export type Database = {
6692
6737
  };
6693
6738
  Update: {
6694
6739
  attempts?: number;
6740
+ availability_sent_at?: string | null;
6741
+ base_supply_outcome?: string | null;
6695
6742
  connection_id?: string;
6696
6743
  created_at?: string;
6697
6744
  dead_lettered_at?: string | null;
6698
6745
  desired_available?: boolean | null;
6699
6746
  gateway_attempt_id?: string | null;
6747
+ gateway_unreachable_since?: string | null;
6700
6748
  id?: string;
6701
6749
  last_error?: string | null;
6702
6750
  locked_at?: string | null;
6703
6751
  locked_by?: string | null;
6704
6752
  next_attempt_at?: string;
6705
6753
  number_of_pieces?: number;
6754
+ price_note?: string | null;
6755
+ price_sent?: number | null;
6756
+ price_status?: string | null;
6706
6757
  product_id?: string | null;
6758
+ quantity_sent_at?: string | null;
6759
+ result_label?: string | null;
6707
6760
  sent_at?: string | null;
6761
+ skip_reason?: string | null;
6708
6762
  status?: string;
6709
6763
  stock_mode?: string | null;
6710
6764
  superseded_by?: string | null;
@@ -7230,7 +7284,9 @@ export type Database = {
7230
7284
  };
7231
7285
  floriday_inventory_settings: {
7232
7286
  Row: {
7287
+ action_reason: string | null;
7233
7288
  buffer_quantity: number;
7289
+ computed_available: number | null;
7234
7290
  connection_id: string;
7235
7291
  created_at: string;
7236
7292
  desired_availability: boolean;
@@ -7242,21 +7298,27 @@ export type Database = {
7242
7298
  last_enqueued_at: string | null;
7243
7299
  last_published_at: string | null;
7244
7300
  last_sync_error: string | null;
7301
+ limiting_product_id: string | null;
7245
7302
  manual_quantity: number | null;
7246
7303
  maximum_quantity: number | null;
7304
+ packing_size: number | null;
7247
7305
  product_id: string;
7306
+ product_type: string | null;
7248
7307
  quantity_control: string;
7249
7308
  remote_available: boolean | null;
7250
7309
  remote_checked_at: string | null;
7251
7310
  remote_quantity: number | null;
7252
7311
  stock_mode: string;
7312
+ structure_detail: Json | null;
7253
7313
  sync_status: string;
7254
7314
  updated_at: string;
7255
7315
  updated_by: string | null;
7256
7316
  user_id: string;
7257
7317
  };
7258
7318
  Insert: {
7319
+ action_reason?: string | null;
7259
7320
  buffer_quantity?: number;
7321
+ computed_available?: number | null;
7260
7322
  connection_id: string;
7261
7323
  created_at?: string;
7262
7324
  desired_availability?: boolean;
@@ -7268,21 +7330,27 @@ export type Database = {
7268
7330
  last_enqueued_at?: string | null;
7269
7331
  last_published_at?: string | null;
7270
7332
  last_sync_error?: string | null;
7333
+ limiting_product_id?: string | null;
7271
7334
  manual_quantity?: number | null;
7272
7335
  maximum_quantity?: number | null;
7336
+ packing_size?: number | null;
7273
7337
  product_id: string;
7338
+ product_type?: string | null;
7274
7339
  quantity_control?: string;
7275
7340
  remote_available?: boolean | null;
7276
7341
  remote_checked_at?: string | null;
7277
7342
  remote_quantity?: number | null;
7278
7343
  stock_mode?: string;
7344
+ structure_detail?: Json | null;
7279
7345
  sync_status?: string;
7280
7346
  updated_at?: string;
7281
7347
  updated_by?: string | null;
7282
7348
  user_id: string;
7283
7349
  };
7284
7350
  Update: {
7351
+ action_reason?: string | null;
7285
7352
  buffer_quantity?: number;
7353
+ computed_available?: number | null;
7286
7354
  connection_id?: string;
7287
7355
  created_at?: string;
7288
7356
  desired_availability?: boolean;
@@ -7294,20 +7362,39 @@ export type Database = {
7294
7362
  last_enqueued_at?: string | null;
7295
7363
  last_published_at?: string | null;
7296
7364
  last_sync_error?: string | null;
7365
+ limiting_product_id?: string | null;
7297
7366
  manual_quantity?: number | null;
7298
7367
  maximum_quantity?: number | null;
7368
+ packing_size?: number | null;
7299
7369
  product_id?: string;
7370
+ product_type?: string | null;
7300
7371
  quantity_control?: string;
7301
7372
  remote_available?: boolean | null;
7302
7373
  remote_checked_at?: string | null;
7303
7374
  remote_quantity?: number | null;
7304
7375
  stock_mode?: string;
7376
+ structure_detail?: Json | null;
7305
7377
  sync_status?: string;
7306
7378
  updated_at?: string;
7307
7379
  updated_by?: string | null;
7308
7380
  user_id?: string;
7309
7381
  };
7310
- Relationships: [];
7382
+ Relationships: [
7383
+ {
7384
+ foreignKeyName: "floriday_inventory_settings_product_id_fkey";
7385
+ columns: ["product_id"];
7386
+ isOneToOne: false;
7387
+ referencedRelation: "logistics_product_dimensions";
7388
+ referencedColumns: ["product_id"];
7389
+ },
7390
+ {
7391
+ foreignKeyName: "floriday_inventory_settings_product_id_fkey";
7392
+ columns: ["product_id"];
7393
+ isOneToOne: false;
7394
+ referencedRelation: "products";
7395
+ referencedColumns: ["id"];
7396
+ }
7397
+ ];
7311
7398
  };
7312
7399
  floriday_invoices_cache: {
7313
7400
  Row: {
@@ -7656,6 +7743,39 @@ export type Database = {
7656
7743
  }
7657
7744
  ];
7658
7745
  };
7746
+ floriday_queue_cleanup_runs: {
7747
+ Row: {
7748
+ created_at: string;
7749
+ deleted: Json;
7750
+ error: string | null;
7751
+ finished_at: string | null;
7752
+ id: string;
7753
+ more_remaining: boolean;
7754
+ orphan_settings: number | null;
7755
+ started_at: string;
7756
+ };
7757
+ Insert: {
7758
+ created_at?: string;
7759
+ deleted?: Json;
7760
+ error?: string | null;
7761
+ finished_at?: string | null;
7762
+ id?: string;
7763
+ more_remaining?: boolean;
7764
+ orphan_settings?: number | null;
7765
+ started_at?: string;
7766
+ };
7767
+ Update: {
7768
+ created_at?: string;
7769
+ deleted?: Json;
7770
+ error?: string | null;
7771
+ finished_at?: string | null;
7772
+ id?: string;
7773
+ more_remaining?: boolean;
7774
+ orphan_settings?: number | null;
7775
+ started_at?: string;
7776
+ };
7777
+ Relationships: [];
7778
+ };
7659
7779
  floriday_rate_limit_state: {
7660
7780
  Row: {
7661
7781
  bucket: string;
@@ -7674,6 +7794,60 @@ export type Database = {
7674
7794
  };
7675
7795
  Relationships: [];
7676
7796
  };
7797
+ floriday_reconcile_runs: {
7798
+ Row: {
7799
+ connection_id: string | null;
7800
+ created_at: string;
7801
+ finished_at: string | null;
7802
+ first_error: string | null;
7803
+ id: string;
7804
+ items_checked: number;
7805
+ items_drift: number;
7806
+ items_no_supply: number;
7807
+ last_http_status: number | null;
7808
+ rate_limited: number;
7809
+ read_errors: number;
7810
+ reads: number;
7811
+ response: Json | null;
7812
+ started_at: string;
7813
+ status: string;
7814
+ };
7815
+ Insert: {
7816
+ connection_id?: string | null;
7817
+ created_at?: string;
7818
+ finished_at?: string | null;
7819
+ first_error?: string | null;
7820
+ id?: string;
7821
+ items_checked?: number;
7822
+ items_drift?: number;
7823
+ items_no_supply?: number;
7824
+ last_http_status?: number | null;
7825
+ rate_limited?: number;
7826
+ read_errors?: number;
7827
+ reads?: number;
7828
+ response?: Json | null;
7829
+ started_at?: string;
7830
+ status?: string;
7831
+ };
7832
+ Update: {
7833
+ connection_id?: string | null;
7834
+ created_at?: string;
7835
+ finished_at?: string | null;
7836
+ first_error?: string | null;
7837
+ id?: string;
7838
+ items_checked?: number;
7839
+ items_drift?: number;
7840
+ items_no_supply?: number;
7841
+ last_http_status?: number | null;
7842
+ rate_limited?: number;
7843
+ read_errors?: number;
7844
+ reads?: number;
7845
+ response?: Json | null;
7846
+ started_at?: string;
7847
+ status?: string;
7848
+ };
7849
+ Relationships: [];
7850
+ };
7677
7851
  floriday_resource_schemas: {
7678
7852
  Row: {
7679
7853
  enums: Json;
@@ -8513,7 +8687,7 @@ export type Database = {
8513
8687
  note?: string | null;
8514
8688
  reason?: string;
8515
8689
  trade_item_key?: string | null;
8516
- user_id: string;
8690
+ user_id?: string;
8517
8691
  };
8518
8692
  Update: {
8519
8693
  created_at?: string;
@@ -8574,7 +8748,7 @@ export type Database = {
8574
8748
  stock?: number;
8575
8749
  updated_at?: string;
8576
8750
  used_by_count?: number;
8577
- user_id: string;
8751
+ user_id?: string;
8578
8752
  vbn_code?: number | null;
8579
8753
  width_mm?: number | null;
8580
8754
  };
@@ -8756,6 +8930,108 @@ export type Database = {
8756
8930
  }
8757
8931
  ];
8758
8932
  };
8933
+ inventory_recompute_limits: {
8934
+ Row: {
8935
+ base_supply_batch: number;
8936
+ base_supply_uses_catalog_availability: boolean;
8937
+ drain_batch: number;
8938
+ id: boolean;
8939
+ import_chunk_size: number;
8940
+ import_max_bytes: number;
8941
+ import_max_rows: number;
8942
+ import_new_chunk_size: number;
8943
+ import_retention_days: number;
8944
+ max_ms_inline: number;
8945
+ max_parents_inline: number;
8946
+ queue_base_supply_timeout_minutes: number;
8947
+ queue_cleanup_batch: number;
8948
+ queue_cleanup_max_batches: number;
8949
+ queue_failed_days: number;
8950
+ queue_gateway_backoff_minutes: number[];
8951
+ queue_gateway_give_up_hours: number;
8952
+ queue_sent_days: number;
8953
+ queue_skipped_days: number;
8954
+ queue_superseded_days: number;
8955
+ updated_at: string;
8956
+ };
8957
+ Insert: {
8958
+ base_supply_batch?: number;
8959
+ base_supply_uses_catalog_availability?: boolean;
8960
+ drain_batch?: number;
8961
+ id?: boolean;
8962
+ import_chunk_size?: number;
8963
+ import_max_bytes?: number;
8964
+ import_max_rows?: number;
8965
+ import_new_chunk_size?: number;
8966
+ import_retention_days?: number;
8967
+ max_ms_inline?: number;
8968
+ max_parents_inline?: number;
8969
+ queue_base_supply_timeout_minutes?: number;
8970
+ queue_cleanup_batch?: number;
8971
+ queue_cleanup_max_batches?: number;
8972
+ queue_failed_days?: number;
8973
+ queue_gateway_backoff_minutes?: number[];
8974
+ queue_gateway_give_up_hours?: number;
8975
+ queue_sent_days?: number;
8976
+ queue_skipped_days?: number;
8977
+ queue_superseded_days?: number;
8978
+ updated_at?: string;
8979
+ };
8980
+ Update: {
8981
+ base_supply_batch?: number;
8982
+ base_supply_uses_catalog_availability?: boolean;
8983
+ drain_batch?: number;
8984
+ id?: boolean;
8985
+ import_chunk_size?: number;
8986
+ import_max_bytes?: number;
8987
+ import_max_rows?: number;
8988
+ import_new_chunk_size?: number;
8989
+ import_retention_days?: number;
8990
+ max_ms_inline?: number;
8991
+ max_parents_inline?: number;
8992
+ queue_base_supply_timeout_minutes?: number;
8993
+ queue_cleanup_batch?: number;
8994
+ queue_cleanup_max_batches?: number;
8995
+ queue_failed_days?: number;
8996
+ queue_gateway_backoff_minutes?: number[];
8997
+ queue_gateway_give_up_hours?: number;
8998
+ queue_sent_days?: number;
8999
+ queue_skipped_days?: number;
9000
+ queue_superseded_days?: number;
9001
+ updated_at?: string;
9002
+ };
9003
+ Relationships: [];
9004
+ };
9005
+ inventory_recompute_queue: {
9006
+ Row: {
9007
+ attempts: number;
9008
+ created_at: string;
9009
+ enqueued_at: string;
9010
+ last_error: string | null;
9011
+ product_id: string;
9012
+ reason: string | null;
9013
+ updated_at: string;
9014
+ };
9015
+ Insert: {
9016
+ attempts?: number;
9017
+ created_at?: string;
9018
+ enqueued_at?: string;
9019
+ last_error?: string | null;
9020
+ product_id: string;
9021
+ reason?: string | null;
9022
+ updated_at?: string;
9023
+ };
9024
+ Update: {
9025
+ attempts?: number;
9026
+ created_at?: string;
9027
+ enqueued_at?: string;
9028
+ last_error?: string | null;
9029
+ product_id?: string;
9030
+ reason?: string | null;
9031
+ updated_at?: string;
9032
+ };
9033
+ Relationships: [];
9034
+ };
8759
9035
  inventory_settings: {
8760
9036
  Row: {
8761
9037
  created_at: string;
@@ -8948,8 +9224,16 @@ export type Database = {
8948
9224
  client_request_id: string;
8949
9225
  completed_at: string | null;
8950
9226
  created_at: string;
9227
+ customer_code: string | null;
8951
9228
  error_message: string | null;
8952
9229
  invoice_number: string | null;
9230
+ invoice_type: string | null;
9231
+ last_known_number: number | null;
9232
+ last_search_at: string | null;
9233
+ phase: string | null;
9234
+ reference: string | null;
9235
+ search_attempts: number;
9236
+ sending_at: string | null;
8953
9237
  status: string;
8954
9238
  user_id: string;
8955
9239
  };
@@ -8958,8 +9242,16 @@ export type Database = {
8958
9242
  client_request_id: string;
8959
9243
  completed_at?: string | null;
8960
9244
  created_at?: string;
9245
+ customer_code?: string | null;
8961
9246
  error_message?: string | null;
8962
9247
  invoice_number?: string | null;
9248
+ invoice_type?: string | null;
9249
+ last_known_number?: number | null;
9250
+ last_search_at?: string | null;
9251
+ phase?: string | null;
9252
+ reference?: string | null;
9253
+ search_attempts?: number;
9254
+ sending_at?: string | null;
8963
9255
  status?: string;
8964
9256
  user_id: string;
8965
9257
  };
@@ -8968,8 +9260,16 @@ export type Database = {
8968
9260
  client_request_id?: string;
8969
9261
  completed_at?: string | null;
8970
9262
  created_at?: string;
9263
+ customer_code?: string | null;
8971
9264
  error_message?: string | null;
8972
9265
  invoice_number?: string | null;
9266
+ invoice_type?: string | null;
9267
+ last_known_number?: number | null;
9268
+ last_search_at?: string | null;
9269
+ phase?: string | null;
9270
+ reference?: string | null;
9271
+ search_attempts?: number;
9272
+ sending_at?: string | null;
8973
9273
  status?: string;
8974
9274
  user_id?: string;
8975
9275
  };
@@ -10930,6 +11230,120 @@ export type Database = {
10930
11230
  };
10931
11231
  Relationships: [];
10932
11232
  };
11233
+ logistics_allocation_fingerprint: {
11234
+ Row: {
11235
+ created_at: string;
11236
+ fingerprint: string;
11237
+ last_replan_at: string | null;
11238
+ order_id: string;
11239
+ pending_since: string | null;
11240
+ updated_at: string;
11241
+ };
11242
+ Insert: {
11243
+ created_at?: string;
11244
+ fingerprint: string;
11245
+ last_replan_at?: string | null;
11246
+ order_id: string;
11247
+ pending_since?: string | null;
11248
+ updated_at?: string;
11249
+ };
11250
+ Update: {
11251
+ created_at?: string;
11252
+ fingerprint?: string;
11253
+ last_replan_at?: string | null;
11254
+ order_id?: string;
11255
+ pending_since?: string | null;
11256
+ updated_at?: string;
11257
+ };
11258
+ Relationships: [];
11259
+ };
11260
+ logistics_autolink_audit: {
11261
+ Row: {
11262
+ created_at: string;
11263
+ id: string;
11264
+ match_type: string;
11265
+ order_id: string | null;
11266
+ order_item_id: string | null;
11267
+ order_source: string | null;
11268
+ product_floriday_id: string | null;
11269
+ product_id: string | null;
11270
+ product_name: string | null;
11271
+ };
11272
+ Insert: {
11273
+ created_at?: string;
11274
+ id?: string;
11275
+ match_type: string;
11276
+ order_id?: string | null;
11277
+ order_item_id?: string | null;
11278
+ order_source?: string | null;
11279
+ product_floriday_id?: string | null;
11280
+ product_id?: string | null;
11281
+ product_name?: string | null;
11282
+ };
11283
+ Update: {
11284
+ created_at?: string;
11285
+ id?: string;
11286
+ match_type?: string;
11287
+ order_id?: string | null;
11288
+ order_item_id?: string | null;
11289
+ order_source?: string | null;
11290
+ product_floriday_id?: string | null;
11291
+ product_id?: string | null;
11292
+ product_name?: string | null;
11293
+ };
11294
+ Relationships: [];
11295
+ };
11296
+ logistics_base_url_checks: {
11297
+ Row: {
11298
+ candidate_host: string | null;
11299
+ candidate_url: string | null;
11300
+ detail: string | null;
11301
+ id: number;
11302
+ ping_ok: boolean | null;
11303
+ ping_request_id: number | null;
11304
+ ping_status: number | null;
11305
+ previous_url: string | null;
11306
+ resolved_at: string | null;
11307
+ route_ok: boolean | null;
11308
+ route_request_id: number | null;
11309
+ route_status: number | null;
11310
+ started_at: string;
11311
+ status: string;
11312
+ };
11313
+ Insert: {
11314
+ candidate_host?: string | null;
11315
+ candidate_url?: string | null;
11316
+ detail?: string | null;
11317
+ id?: never;
11318
+ ping_ok?: boolean | null;
11319
+ ping_request_id?: number | null;
11320
+ ping_status?: number | null;
11321
+ previous_url?: string | null;
11322
+ resolved_at?: string | null;
11323
+ route_ok?: boolean | null;
11324
+ route_request_id?: number | null;
11325
+ route_status?: number | null;
11326
+ started_at?: string;
11327
+ status: string;
11328
+ };
11329
+ Update: {
11330
+ candidate_host?: string | null;
11331
+ candidate_url?: string | null;
11332
+ detail?: string | null;
11333
+ id?: never;
11334
+ ping_ok?: boolean | null;
11335
+ ping_request_id?: number | null;
11336
+ ping_status?: number | null;
11337
+ previous_url?: string | null;
11338
+ resolved_at?: string | null;
11339
+ route_ok?: boolean | null;
11340
+ route_request_id?: number | null;
11341
+ route_status?: number | null;
11342
+ started_at?: string;
11343
+ status?: string;
11344
+ };
11345
+ Relationships: [];
11346
+ };
10933
11347
  logistics_capacity_alerts: {
10934
11348
  Row: {
10935
11349
  available_minutes: number;
@@ -12062,6 +12476,33 @@ export type Database = {
12062
12476
  };
12063
12477
  Relationships: [];
12064
12478
  };
12479
+ logistics_plan_coverage_retries: {
12480
+ Row: {
12481
+ attempts: number;
12482
+ gave_up_at: string | null;
12483
+ last_at: string;
12484
+ last_pct: number | null;
12485
+ next_at: string;
12486
+ order_id: string;
12487
+ };
12488
+ Insert: {
12489
+ attempts?: number;
12490
+ gave_up_at?: string | null;
12491
+ last_at?: string;
12492
+ last_pct?: number | null;
12493
+ next_at?: string;
12494
+ order_id: string;
12495
+ };
12496
+ Update: {
12497
+ attempts?: number;
12498
+ gave_up_at?: string | null;
12499
+ last_at?: string;
12500
+ last_pct?: number | null;
12501
+ next_at?: string;
12502
+ order_id?: string;
12503
+ };
12504
+ Relationships: [];
12505
+ };
12065
12506
  logistics_plan_locks: {
12066
12507
  Row: {
12067
12508
  created_at: string;
@@ -12452,6 +12893,45 @@ export type Database = {
12452
12893
  };
12453
12894
  Relationships: [];
12454
12895
  };
12896
+ logistics_reservation_allocations: {
12897
+ Row: {
12898
+ computed_at: string;
12899
+ created_at: string;
12900
+ group_id: string | null;
12901
+ id: string;
12902
+ line_qty: number | null;
12903
+ order_item_id: string;
12904
+ qty: number;
12905
+ source: string;
12906
+ trade_item_key: string;
12907
+ updated_at: string;
12908
+ };
12909
+ Insert: {
12910
+ computed_at?: string;
12911
+ created_at?: string;
12912
+ group_id?: string | null;
12913
+ id?: string;
12914
+ line_qty?: number | null;
12915
+ order_item_id: string;
12916
+ qty: number;
12917
+ source: string;
12918
+ trade_item_key: string;
12919
+ updated_at?: string;
12920
+ };
12921
+ Update: {
12922
+ computed_at?: string;
12923
+ created_at?: string;
12924
+ group_id?: string | null;
12925
+ id?: string;
12926
+ line_qty?: number | null;
12927
+ order_item_id?: string;
12928
+ qty?: number;
12929
+ source?: string;
12930
+ trade_item_key?: string;
12931
+ updated_at?: string;
12932
+ };
12933
+ Relationships: [];
12934
+ };
12455
12935
  logistics_rule_configs: {
12456
12936
  Row: {
12457
12937
  created_at: string;
@@ -12596,6 +13076,7 @@ export type Database = {
12596
13076
  slip_job_id: string;
12597
13077
  status: string;
12598
13078
  updated_at: string;
13079
+ voor_herstel: boolean;
12599
13080
  };
12600
13081
  Insert: {
12601
13082
  attempts?: number;
@@ -12616,6 +13097,7 @@ export type Database = {
12616
13097
  slip_job_id: string;
12617
13098
  status?: string;
12618
13099
  updated_at?: string;
13100
+ voor_herstel?: boolean;
12619
13101
  };
12620
13102
  Update: {
12621
13103
  attempts?: number;
@@ -12636,6 +13118,7 @@ export type Database = {
12636
13118
  slip_job_id?: string;
12637
13119
  status?: string;
12638
13120
  updated_at?: string;
13121
+ voor_herstel?: boolean;
12639
13122
  };
12640
13123
  Relationships: [];
12641
13124
  };
@@ -15196,6 +15679,7 @@ export type Database = {
15196
15679
  Row: {
15197
15680
  boxes: number | null;
15198
15681
  cart_id: string;
15682
+ components: Json | null;
15199
15683
  crates: number;
15200
15684
  crates_in_layer: number | null;
15201
15685
  crates_per_layer: number;
@@ -15214,6 +15698,7 @@ export type Database = {
15214
15698
  Insert: {
15215
15699
  boxes?: number | null;
15216
15700
  cart_id: string;
15701
+ components?: Json | null;
15217
15702
  crates: number;
15218
15703
  crates_in_layer?: number | null;
15219
15704
  crates_per_layer?: number;
@@ -15232,6 +15717,7 @@ export type Database = {
15232
15717
  Update: {
15233
15718
  boxes?: number | null;
15234
15719
  cart_id?: string;
15720
+ components?: Json | null;
15235
15721
  crates?: number;
15236
15722
  crates_in_layer?: number | null;
15237
15723
  crates_per_layer?: number;
@@ -17387,6 +17873,12 @@ export type Database = {
17387
17873
  email_purpose: string | null;
17388
17874
  enabled: boolean;
17389
17875
  id: boolean;
17876
+ overrun_auto_mail: boolean;
17877
+ overrun_body_template: string;
17878
+ overrun_enabled: boolean;
17879
+ overrun_mail_minutes: number;
17880
+ overrun_notice_minutes: number;
17881
+ overrun_subject_template: string;
17390
17882
  reply_to: string | null;
17391
17883
  reschedule_body_template: string;
17392
17884
  reschedule_subject_template: string;
@@ -17403,6 +17895,12 @@ export type Database = {
17403
17895
  email_purpose?: string | null;
17404
17896
  enabled?: boolean;
17405
17897
  id?: boolean;
17898
+ overrun_auto_mail?: boolean;
17899
+ overrun_body_template?: string;
17900
+ overrun_enabled?: boolean;
17901
+ overrun_mail_minutes?: number;
17902
+ overrun_notice_minutes?: number;
17903
+ overrun_subject_template?: string;
17406
17904
  reply_to?: string | null;
17407
17905
  reschedule_body_template?: string;
17408
17906
  reschedule_subject_template?: string;
@@ -17419,6 +17917,12 @@ export type Database = {
17419
17917
  email_purpose?: string | null;
17420
17918
  enabled?: boolean;
17421
17919
  id?: boolean;
17920
+ overrun_auto_mail?: boolean;
17921
+ overrun_body_template?: string;
17922
+ overrun_enabled?: boolean;
17923
+ overrun_mail_minutes?: number;
17924
+ overrun_notice_minutes?: number;
17925
+ overrun_subject_template?: string;
17422
17926
  reply_to?: string | null;
17423
17927
  reschedule_body_template?: string;
17424
17928
  reschedule_subject_template?: string;
@@ -17510,6 +18014,66 @@ export type Database = {
17510
18014
  };
17511
18015
  Relationships: [];
17512
18016
  };
18017
+ planning_overrun_events: {
18018
+ Row: {
18019
+ created_at: string;
18020
+ id: string;
18021
+ mail_level: number;
18022
+ mailed_at: string | null;
18023
+ mailed_item_id: string | null;
18024
+ mailed_items: Json;
18025
+ monteur_id: string | null;
18026
+ original_end_at: string;
18027
+ overrun_minutes: number;
18028
+ planning_item_id: string;
18029
+ shifted: Json;
18030
+ updated_at: string;
18031
+ };
18032
+ Insert: {
18033
+ created_at?: string;
18034
+ id?: string;
18035
+ mail_level?: number;
18036
+ mailed_at?: string | null;
18037
+ mailed_item_id?: string | null;
18038
+ mailed_items?: Json;
18039
+ monteur_id?: string | null;
18040
+ original_end_at: string;
18041
+ overrun_minutes?: number;
18042
+ planning_item_id: string;
18043
+ shifted?: Json;
18044
+ updated_at?: string;
18045
+ };
18046
+ Update: {
18047
+ created_at?: string;
18048
+ id?: string;
18049
+ mail_level?: number;
18050
+ mailed_at?: string | null;
18051
+ mailed_item_id?: string | null;
18052
+ mailed_items?: Json;
18053
+ monteur_id?: string | null;
18054
+ original_end_at?: string;
18055
+ overrun_minutes?: number;
18056
+ planning_item_id?: string;
18057
+ shifted?: Json;
18058
+ updated_at?: string;
18059
+ };
18060
+ Relationships: [
18061
+ {
18062
+ foreignKeyName: "planning_overrun_events_planning_item_id_fkey";
18063
+ columns: ["planning_item_id"];
18064
+ isOneToOne: true;
18065
+ referencedRelation: "planning_items";
18066
+ referencedColumns: ["id"];
18067
+ },
18068
+ {
18069
+ foreignKeyName: "planning_overrun_events_planning_item_id_fkey";
18070
+ columns: ["planning_item_id"];
18071
+ isOneToOne: true;
18072
+ referencedRelation: "planning_overview";
18073
+ referencedColumns: ["id"];
18074
+ }
18075
+ ];
18076
+ };
17513
18077
  planning_settings: {
17514
18078
  Row: {
17515
18079
  company_address: string | null;
@@ -18839,7 +19403,7 @@ export type Database = {
18839
19403
  id?: string;
18840
19404
  product_group_id: string;
18841
19405
  quantity?: number;
18842
- sort_order?: number;
19406
+ sort_order: number;
18843
19407
  trade_item_id: string;
18844
19408
  };
18845
19409
  Update: {
@@ -20070,6 +20634,7 @@ export type Database = {
20070
20634
  is_protected: boolean;
20071
20635
  key: string;
20072
20636
  name: string;
20637
+ permissions_initialized: boolean;
20073
20638
  updated_at: string;
20074
20639
  };
20075
20640
  Insert: {
@@ -20078,6 +20643,7 @@ export type Database = {
20078
20643
  is_protected?: boolean;
20079
20644
  key: string;
20080
20645
  name: string;
20646
+ permissions_initialized?: boolean;
20081
20647
  updated_at?: string;
20082
20648
  };
20083
20649
  Update: {
@@ -20086,6 +20652,7 @@ export type Database = {
20086
20652
  is_protected?: boolean;
20087
20653
  key?: string;
20088
20654
  name?: string;
20655
+ permissions_initialized?: boolean;
20089
20656
  updated_at?: string;
20090
20657
  };
20091
20658
  Relationships: [];
@@ -20708,6 +21275,50 @@ export type Database = {
20708
21275
  };
20709
21276
  Relationships: [];
20710
21277
  };
21278
+ standby_planning: {
21279
+ Row: {
21280
+ created_at: string;
21281
+ created_by: string | null;
21282
+ employee_id: string;
21283
+ end_date: string;
21284
+ id: string;
21285
+ notes: string | null;
21286
+ soort: string;
21287
+ start_date: string;
21288
+ updated_at: string;
21289
+ };
21290
+ Insert: {
21291
+ created_at?: string;
21292
+ created_by?: string | null;
21293
+ employee_id: string;
21294
+ end_date: string;
21295
+ id?: string;
21296
+ notes?: string | null;
21297
+ soort: string;
21298
+ start_date: string;
21299
+ updated_at?: string;
21300
+ };
21301
+ Update: {
21302
+ created_at?: string;
21303
+ created_by?: string | null;
21304
+ employee_id?: string;
21305
+ end_date?: string;
21306
+ id?: string;
21307
+ notes?: string | null;
21308
+ soort?: string;
21309
+ start_date?: string;
21310
+ updated_at?: string;
21311
+ };
21312
+ Relationships: [
21313
+ {
21314
+ foreignKeyName: "standby_planning_employee_id_fkey";
21315
+ columns: ["employee_id"];
21316
+ isOneToOne: false;
21317
+ referencedRelation: "profiles";
21318
+ referencedColumns: ["id"];
21319
+ }
21320
+ ];
21321
+ };
20711
21322
  stock_consumption_alerts: {
20712
21323
  Row: {
20713
21324
  alert_type: string;
@@ -20747,48 +21358,253 @@ export type Database = {
20747
21358
  };
20748
21359
  Relationships: [];
20749
21360
  };
21361
+ stock_import_chunks: {
21362
+ Row: {
21363
+ chunk_no: number;
21364
+ created_at: string;
21365
+ duration_ms: number | null;
21366
+ processed_at: string | null;
21367
+ run_id: string;
21368
+ status: string;
21369
+ undone_at: string | null;
21370
+ updated_at: string;
21371
+ };
21372
+ Insert: {
21373
+ chunk_no: number;
21374
+ created_at?: string;
21375
+ duration_ms?: number | null;
21376
+ processed_at?: string | null;
21377
+ run_id: string;
21378
+ status?: string;
21379
+ undone_at?: string | null;
21380
+ updated_at?: string;
21381
+ };
21382
+ Update: {
21383
+ chunk_no?: number;
21384
+ created_at?: string;
21385
+ duration_ms?: number | null;
21386
+ processed_at?: string | null;
21387
+ run_id?: string;
21388
+ status?: string;
21389
+ undone_at?: string | null;
21390
+ updated_at?: string;
21391
+ };
21392
+ Relationships: [
21393
+ {
21394
+ foreignKeyName: "stock_import_chunks_run_id_fkey";
21395
+ columns: ["run_id"];
21396
+ isOneToOne: false;
21397
+ referencedRelation: "stock_import_runs";
21398
+ referencedColumns: ["id"];
21399
+ }
21400
+ ];
21401
+ };
21402
+ stock_import_rows: {
21403
+ Row: {
21404
+ article_code: string | null;
21405
+ article_name: string | null;
21406
+ chunk_no: number;
21407
+ connection_id: string | null;
21408
+ created_at: string;
21409
+ custom_values: Json | null;
21410
+ error: string | null;
21411
+ id: string;
21412
+ incoming_after: number | null;
21413
+ incoming_before: number | null;
21414
+ incoming_in: number | null;
21415
+ is_new: boolean;
21416
+ minimum_after: number | null;
21417
+ minimum_before: number | null;
21418
+ minimum_in: number | null;
21419
+ new_payload: Json | null;
21420
+ note: string | null;
21421
+ physical_after: number | null;
21422
+ physical_before: number | null;
21423
+ physical_in: number | null;
21424
+ processed_at: string | null;
21425
+ product_id: string | null;
21426
+ row_no: number;
21427
+ run_id: string;
21428
+ status: string;
21429
+ trade_item_key: string | null;
21430
+ updated_at: string;
21431
+ };
21432
+ Insert: {
21433
+ article_code?: string | null;
21434
+ article_name?: string | null;
21435
+ chunk_no: number;
21436
+ connection_id?: string | null;
21437
+ created_at?: string;
21438
+ custom_values?: Json | null;
21439
+ error?: string | null;
21440
+ id?: string;
21441
+ incoming_after?: number | null;
21442
+ incoming_before?: number | null;
21443
+ incoming_in?: number | null;
21444
+ is_new?: boolean;
21445
+ minimum_after?: number | null;
21446
+ minimum_before?: number | null;
21447
+ minimum_in?: number | null;
21448
+ new_payload?: Json | null;
21449
+ note?: string | null;
21450
+ physical_after?: number | null;
21451
+ physical_before?: number | null;
21452
+ physical_in?: number | null;
21453
+ processed_at?: string | null;
21454
+ product_id?: string | null;
21455
+ row_no: number;
21456
+ run_id: string;
21457
+ status?: string;
21458
+ trade_item_key?: string | null;
21459
+ updated_at?: string;
21460
+ };
21461
+ Update: {
21462
+ article_code?: string | null;
21463
+ article_name?: string | null;
21464
+ chunk_no?: number;
21465
+ connection_id?: string | null;
21466
+ created_at?: string;
21467
+ custom_values?: Json | null;
21468
+ error?: string | null;
21469
+ id?: string;
21470
+ incoming_after?: number | null;
21471
+ incoming_before?: number | null;
21472
+ incoming_in?: number | null;
21473
+ is_new?: boolean;
21474
+ minimum_after?: number | null;
21475
+ minimum_before?: number | null;
21476
+ minimum_in?: number | null;
21477
+ new_payload?: Json | null;
21478
+ note?: string | null;
21479
+ physical_after?: number | null;
21480
+ physical_before?: number | null;
21481
+ physical_in?: number | null;
21482
+ processed_at?: string | null;
21483
+ product_id?: string | null;
21484
+ row_no?: number;
21485
+ run_id?: string;
21486
+ status?: string;
21487
+ trade_item_key?: string | null;
21488
+ updated_at?: string;
21489
+ };
21490
+ Relationships: [
21491
+ {
21492
+ foreignKeyName: "stock_import_rows_run_id_fkey";
21493
+ columns: ["run_id"];
21494
+ isOneToOne: false;
21495
+ referencedRelation: "stock_import_runs";
21496
+ referencedColumns: ["id"];
21497
+ }
21498
+ ];
21499
+ };
20750
21500
  stock_import_runs: {
20751
21501
  Row: {
21502
+ chunk_size: number | null;
20752
21503
  connection_id: string | null;
20753
21504
  created_at: string;
20754
21505
  created_rows: number;
21506
+ done_chunks: number;
20755
21507
  errors: Json;
21508
+ file_hash: string | null;
20756
21509
  filename: string | null;
21510
+ finished_at: string | null;
20757
21511
  id: string;
20758
21512
  mutations: Json;
21513
+ rows_purged_at: string | null;
20759
21514
  skipped_rows: number;
21515
+ status: string;
21516
+ total_chunks: number;
20760
21517
  total_rows: number;
21518
+ undo_skipped_rows: number;
21519
+ undone_rows: number;
21520
+ updated_at: string;
20761
21521
  updated_rows: number;
20762
21522
  user_id: string;
20763
21523
  };
20764
21524
  Insert: {
21525
+ chunk_size?: number | null;
20765
21526
  connection_id?: string | null;
20766
21527
  created_at?: string;
20767
21528
  created_rows?: number;
21529
+ done_chunks?: number;
20768
21530
  errors?: Json;
21531
+ file_hash?: string | null;
20769
21532
  filename?: string | null;
21533
+ finished_at?: string | null;
20770
21534
  id?: string;
20771
21535
  mutations?: Json;
21536
+ rows_purged_at?: string | null;
20772
21537
  skipped_rows?: number;
21538
+ status?: string;
21539
+ total_chunks?: number;
20773
21540
  total_rows?: number;
21541
+ undo_skipped_rows?: number;
21542
+ undone_rows?: number;
21543
+ updated_at?: string;
20774
21544
  updated_rows?: number;
20775
21545
  user_id: string;
20776
21546
  };
20777
21547
  Update: {
21548
+ chunk_size?: number | null;
20778
21549
  connection_id?: string | null;
20779
21550
  created_at?: string;
20780
21551
  created_rows?: number;
21552
+ done_chunks?: number;
20781
21553
  errors?: Json;
21554
+ file_hash?: string | null;
20782
21555
  filename?: string | null;
21556
+ finished_at?: string | null;
20783
21557
  id?: string;
20784
21558
  mutations?: Json;
21559
+ rows_purged_at?: string | null;
20785
21560
  skipped_rows?: number;
21561
+ status?: string;
21562
+ total_chunks?: number;
20786
21563
  total_rows?: number;
21564
+ undo_skipped_rows?: number;
21565
+ undone_rows?: number;
21566
+ updated_at?: string;
20787
21567
  updated_rows?: number;
20788
21568
  user_id?: string;
20789
21569
  };
20790
21570
  Relationships: [];
20791
21571
  };
21572
+ stock_integrity_alerts: {
21573
+ Row: {
21574
+ acknowledged_at: string | null;
21575
+ acknowledged_by: string | null;
21576
+ alert_kind: string;
21577
+ created_at: string;
21578
+ id: string;
21579
+ item_count: number;
21580
+ items: Json;
21581
+ tx_id: number;
21582
+ updated_at: string;
21583
+ };
21584
+ Insert: {
21585
+ acknowledged_at?: string | null;
21586
+ acknowledged_by?: string | null;
21587
+ alert_kind?: string;
21588
+ created_at?: string;
21589
+ id?: string;
21590
+ item_count?: number;
21591
+ items?: Json;
21592
+ tx_id: number;
21593
+ updated_at?: string;
21594
+ };
21595
+ Update: {
21596
+ acknowledged_at?: string | null;
21597
+ acknowledged_by?: string | null;
21598
+ alert_kind?: string;
21599
+ created_at?: string;
21600
+ id?: string;
21601
+ item_count?: number;
21602
+ items?: Json;
21603
+ tx_id?: number;
21604
+ updated_at?: string;
21605
+ };
21606
+ Relationships: [];
21607
+ };
20792
21608
  stock_mutation_log: {
20793
21609
  Row: {
20794
21610
  connection_id: string | null;
@@ -20846,6 +21662,45 @@ export type Database = {
20846
21662
  };
20847
21663
  Relationships: [];
20848
21664
  };
21665
+ structure_cleanup_log: {
21666
+ Row: {
21667
+ action: string;
21668
+ batch: string;
21669
+ created_at: string;
21670
+ id: string;
21671
+ new_row: Json | null;
21672
+ old_row: Json;
21673
+ reason: string;
21674
+ row_id: string;
21675
+ step: number;
21676
+ table_name: string;
21677
+ };
21678
+ Insert: {
21679
+ action: string;
21680
+ batch: string;
21681
+ created_at?: string;
21682
+ id?: string;
21683
+ new_row?: Json | null;
21684
+ old_row: Json;
21685
+ reason: string;
21686
+ row_id: string;
21687
+ step: number;
21688
+ table_name: string;
21689
+ };
21690
+ Update: {
21691
+ action?: string;
21692
+ batch?: string;
21693
+ created_at?: string;
21694
+ id?: string;
21695
+ new_row?: Json | null;
21696
+ old_row?: Json;
21697
+ reason?: string;
21698
+ row_id?: string;
21699
+ step?: number;
21700
+ table_name?: string;
21701
+ };
21702
+ Relationships: [];
21703
+ };
20849
21704
  supplier_contacts: {
20850
21705
  Row: {
20851
21706
  created_at: string;
@@ -21719,7 +22574,7 @@ export type Database = {
21719
22574
  reserved_stock?: number;
21720
22575
  trade_item_key: string;
21721
22576
  updated_at?: string;
21722
- user_id: string;
22577
+ user_id?: string;
21723
22578
  };
21724
22579
  Update: {
21725
22580
  change_source?: string;
@@ -23320,6 +24175,36 @@ export type Database = {
23320
24175
  };
23321
24176
  Relationships: [];
23322
24177
  };
24178
+ uren_indirecte_uren: {
24179
+ Row: {
24180
+ created_at: string;
24181
+ datum: string;
24182
+ id: string;
24183
+ minuten: number;
24184
+ monteur_id: string;
24185
+ toelichting: string;
24186
+ updated_at: string;
24187
+ };
24188
+ Insert: {
24189
+ created_at?: string;
24190
+ datum: string;
24191
+ id?: string;
24192
+ minuten: number;
24193
+ monteur_id: string;
24194
+ toelichting: string;
24195
+ updated_at?: string;
24196
+ };
24197
+ Update: {
24198
+ created_at?: string;
24199
+ datum?: string;
24200
+ id?: string;
24201
+ minuten?: number;
24202
+ monteur_id?: string;
24203
+ toelichting?: string;
24204
+ updated_at?: string;
24205
+ };
24206
+ Relationships: [];
24207
+ };
23323
24208
  uren_maandafsluitingen: {
23324
24209
  Row: {
23325
24210
  afgesloten_at: string | null;
@@ -25321,6 +26206,7 @@ export type Database = {
25321
26206
  created_at: string;
25322
26207
  created_by: string | null;
25323
26208
  customer_id: string | null;
26209
+ customer_name: string | null;
25324
26210
  deadline_date: string | null;
25325
26211
  estimated_days: number | null;
25326
26212
  estimated_duration_minutes: number | null;
@@ -25364,6 +26250,7 @@ export type Database = {
25364
26250
  created_at?: string;
25365
26251
  created_by?: string | null;
25366
26252
  customer_id?: string | null;
26253
+ customer_name?: string | null;
25367
26254
  deadline_date?: string | null;
25368
26255
  estimated_days?: number | null;
25369
26256
  estimated_duration_minutes?: number | null;
@@ -25407,6 +26294,7 @@ export type Database = {
25407
26294
  created_at?: string;
25408
26295
  created_by?: string | null;
25409
26296
  customer_id?: string | null;
26297
+ customer_name?: string | null;
25410
26298
  deadline_date?: string | null;
25411
26299
  estimated_days?: number | null;
25412
26300
  estimated_duration_minutes?: number | null;
@@ -26583,6 +27471,15 @@ export type Database = {
26583
27471
  };
26584
27472
  };
26585
27473
  Functions: {
27474
+ _floriday_queue_cleanup_batch: {
27475
+ Args: {
27476
+ p_days: number;
27477
+ p_keep_latest: boolean;
27478
+ p_limit: number;
27479
+ p_statuses: string[];
27480
+ };
27481
+ Returns: number;
27482
+ };
26586
27483
  _floriday_schedule_job: {
26587
27484
  Args: {
26588
27485
  p_apikey: string;
@@ -26606,6 +27503,12 @@ export type Database = {
26606
27503
  };
26607
27504
  Returns: Json;
26608
27505
  };
27506
+ _stock_import_caller: {
27507
+ Args: {
27508
+ p_owner: string;
27509
+ };
27510
+ Returns: boolean;
27511
+ };
26609
27512
  _wo_is_planner: {
26610
27513
  Args: never;
26611
27514
  Returns: boolean;
@@ -26738,6 +27641,8 @@ export type Database = {
26738
27641
  desired_availability: boolean;
26739
27642
  desired_quantity: number;
26740
27643
  erp_available: number;
27644
+ packing_size: number;
27645
+ reason: string;
26741
27646
  stock_mode: string;
26742
27647
  }[];
26743
27648
  };
@@ -26747,6 +27652,15 @@ export type Database = {
26747
27652
  };
26748
27653
  Returns: number;
26749
27654
  };
27655
+ calculate_structure_available: {
27656
+ Args: {
27657
+ p_connection_id: string;
27658
+ p_level?: number;
27659
+ p_path?: string[];
27660
+ p_product_id: string;
27661
+ };
27662
+ Returns: Json;
27663
+ };
26750
27664
  call_exact_route: {
26751
27665
  Args: {
26752
27666
  path: string;
@@ -26775,6 +27689,19 @@ export type Database = {
26775
27689
  };
26776
27690
  Returns: Json;
26777
27691
  };
27692
+ check_product_structure: {
27693
+ Args: {
27694
+ p_child: string;
27695
+ p_kind: string;
27696
+ p_name?: string;
27697
+ p_parent: string;
27698
+ };
27699
+ Returns: {
27700
+ code: string;
27701
+ message: string;
27702
+ ok: boolean;
27703
+ }[];
27704
+ };
26778
27705
  check_trade_item_available_stock: {
26779
27706
  Args: {
26780
27707
  p_connection_id?: string;
@@ -26848,6 +27775,24 @@ export type Database = {
26848
27775
  isSetofReturn: true;
26849
27776
  };
26850
27777
  };
27778
+ claim_floriday_base_supply: {
27779
+ Args: {
27780
+ p_worker?: string;
27781
+ };
27782
+ Returns: {
27783
+ attempts: number;
27784
+ id: string;
27785
+ number_of_pieces: number;
27786
+ product_id: string;
27787
+ sale_price: number;
27788
+ stock_mode: string;
27789
+ target_week: number;
27790
+ target_year: number;
27791
+ trade_item_id: string;
27792
+ unit: string;
27793
+ uses_catalog_availability: boolean;
27794
+ }[];
27795
+ };
26851
27796
  claim_floriday_stock_queue: {
26852
27797
  Args: {
26853
27798
  p_limit?: number;
@@ -26855,19 +27800,28 @@ export type Database = {
26855
27800
  };
26856
27801
  Returns: {
26857
27802
  attempts: number;
27803
+ availability_sent_at: string | null;
27804
+ base_supply_outcome: string | null;
26858
27805
  connection_id: string;
26859
27806
  created_at: string;
26860
27807
  dead_lettered_at: string | null;
26861
27808
  desired_available: boolean | null;
26862
27809
  gateway_attempt_id: string | null;
27810
+ gateway_unreachable_since: string | null;
26863
27811
  id: string;
26864
27812
  last_error: string | null;
26865
27813
  locked_at: string | null;
26866
27814
  locked_by: string | null;
26867
27815
  next_attempt_at: string;
26868
27816
  number_of_pieces: number;
27817
+ price_note: string | null;
27818
+ price_sent: number | null;
27819
+ price_status: string | null;
26869
27820
  product_id: string | null;
27821
+ quantity_sent_at: string | null;
27822
+ result_label: string | null;
26870
27823
  sent_at: string | null;
27824
+ skip_reason: string | null;
26871
27825
  status: string;
26872
27826
  stock_mode: string | null;
26873
27827
  superseded_by: string | null;
@@ -27117,10 +28071,31 @@ export type Database = {
27117
28071
  Args: never;
27118
28072
  Returns: undefined;
27119
28073
  };
28074
+ cleanup_standby_planning: {
28075
+ Args: never;
28076
+ Returns: number;
28077
+ };
28078
+ cleanup_time_compensation_log: {
28079
+ Args: never;
28080
+ Returns: number;
28081
+ };
27120
28082
  cleanup_voorraad_module_history: {
27121
28083
  Args: never;
27122
28084
  Returns: undefined;
27123
28085
  };
28086
+ complete_floriday_base_supply: {
28087
+ Args: {
28088
+ p_attempt_id?: string;
28089
+ p_error?: string;
28090
+ p_id: string;
28091
+ p_kind: string;
28092
+ p_label?: string;
28093
+ p_outcome?: string;
28094
+ p_price?: number;
28095
+ p_price_status?: string;
28096
+ };
28097
+ Returns: string;
28098
+ };
27124
28099
  complete_floriday_stock_queue: {
27125
28100
  Args: {
27126
28101
  p_attempt_id?: string;
@@ -27131,6 +28106,18 @@ export type Database = {
27131
28106
  };
27132
28107
  Returns: undefined;
27133
28108
  };
28109
+ complete_floriday_stock_queue_outcome: {
28110
+ Args: {
28111
+ p_attempt_id?: string;
28112
+ p_availability_sent?: boolean;
28113
+ p_error?: string;
28114
+ p_id: string;
28115
+ p_outcome: string;
28116
+ p_permanent?: boolean;
28117
+ p_quantity_sent?: boolean;
28118
+ };
28119
+ Returns: undefined;
28120
+ };
27134
28121
  consume_bom_for_production: {
27135
28122
  Args: {
27136
28123
  p_connection_id: string;
@@ -27165,6 +28152,15 @@ export type Database = {
27165
28152
  wait_ms: number;
27166
28153
  }[];
27167
28154
  };
28155
+ consume_order_item: {
28156
+ Args: {
28157
+ p_order_id: string;
28158
+ p_order_item_id: string;
28159
+ p_reason: string;
28160
+ p_source: string;
28161
+ };
28162
+ Returns: number;
28163
+ };
27168
28164
  consume_print_agent_pairing: {
27169
28165
  Args: {
27170
28166
  _pairing_hash: string;
@@ -27284,6 +28280,19 @@ export type Database = {
27284
28280
  table_name: string;
27285
28281
  }[];
27286
28282
  };
28283
+ dashboard_werkbon_soort: {
28284
+ Args: {
28285
+ _source: string;
28286
+ };
28287
+ Returns: string;
28288
+ };
28289
+ dashboard_werkbon_teller_plus: {
28290
+ Args: {
28291
+ _soort: string;
28292
+ _ts: string;
28293
+ };
28294
+ Returns: undefined;
28295
+ };
27287
28296
  delete_samenstelling: {
27288
28297
  Args: {
27289
28298
  p_parent_id: string;
@@ -27297,6 +28306,10 @@ export type Database = {
27297
28306
  };
27298
28307
  Returns: Json;
27299
28308
  };
28309
+ drain_inventory_recompute_queue: {
28310
+ Args: never;
28311
+ Returns: number;
28312
+ };
27300
28313
  effective_module_permission: {
27301
28314
  Args: {
27302
28315
  _module_id: string;
@@ -27369,6 +28382,18 @@ export type Database = {
27369
28382
  };
27370
28383
  Returns: undefined;
27371
28384
  };
28385
+ enqueue_structure_recompute: {
28386
+ Args: {
28387
+ p_include_self?: boolean;
28388
+ p_product_ids: string[];
28389
+ p_reason: string;
28390
+ };
28391
+ Returns: number;
28392
+ };
28393
+ ensure_inventory_recompute_drain: {
28394
+ Args: never;
28395
+ Returns: undefined;
28396
+ };
27372
28397
  ensure_system_roles: {
27373
28398
  Args: never;
27374
28399
  Returns: {
@@ -27382,6 +28407,12 @@ export type Database = {
27382
28407
  };
27383
28408
  Returns: undefined;
27384
28409
  };
28410
+ ensure_trade_item_stock_row_key: {
28411
+ Args: {
28412
+ p_key: string;
28413
+ };
28414
+ Returns: string;
28415
+ };
27385
28416
  ensure_user_tenant: {
27386
28417
  Args: never;
27387
28418
  Returns: string;
@@ -27468,7 +28499,7 @@ export type Database = {
27468
28499
  };
27469
28500
  floriday_cleanup_stock_queue_v2: {
27470
28501
  Args: never;
27471
- Returns: undefined;
28502
+ Returns: Json;
27472
28503
  };
27473
28504
  floriday_compact_stock_snapshots: {
27474
28505
  Args: never;
@@ -27480,6 +28511,19 @@ export type Database = {
27480
28511
  };
27481
28512
  Returns: string;
27482
28513
  };
28514
+ floriday_desired_stock_regression_check: {
28515
+ Args: never;
28516
+ Returns: {
28517
+ actual: number;
28518
+ available: number;
28519
+ equal: boolean;
28520
+ expected: number;
28521
+ packing: number;
28522
+ product_id: string;
28523
+ product_name: string;
28524
+ stock_mode: string;
28525
+ }[];
28526
+ };
27483
28527
  floriday_effective_price: {
27484
28528
  Args: {
27485
28529
  _buyer_id: string;
@@ -27507,6 +28551,10 @@ export type Database = {
27507
28551
  };
27508
28552
  Returns: number;
27509
28553
  };
28554
+ floriday_orphan_settings_count: {
28555
+ Args: never;
28556
+ Returns: number;
28557
+ };
27510
28558
  floriday_publish_horizon_weeks: {
27511
28559
  Args: never;
27512
28560
  Returns: number;
@@ -27538,6 +28586,17 @@ export type Database = {
27538
28586
  };
27539
28587
  Returns: string;
27540
28588
  };
28589
+ fust_negative_stock_report: {
28590
+ Args: never;
28591
+ Returns: {
28592
+ duplicate_names: number;
28593
+ fust_key: string;
28594
+ fust_type_id: string;
28595
+ name: string;
28596
+ shortage: number;
28597
+ stock: number;
28598
+ }[];
28599
+ };
27541
28600
  get_active_floriday_connection_public: {
27542
28601
  Args: never;
27543
28602
  Returns: {
@@ -27738,6 +28797,18 @@ export type Database = {
27738
28797
  updated_at: string;
27739
28798
  }[];
27740
28799
  };
28800
+ get_product_structure_totals: {
28801
+ Args: {
28802
+ p_product_id: string;
28803
+ };
28804
+ Returns: Json;
28805
+ };
28806
+ get_product_structure_totals_batch: {
28807
+ Args: {
28808
+ p_product_ids: string[];
28809
+ };
28810
+ Returns: Json[];
28811
+ };
27741
28812
  get_room_busy_windows: {
27742
28813
  Args: {
27743
28814
  p_from: string;
@@ -28161,6 +29232,10 @@ export type Database = {
28161
29232
  };
28162
29233
  Returns: number;
28163
29234
  };
29235
+ inventory_inline_budget_ok: {
29236
+ Args: never;
29237
+ Returns: boolean;
29238
+ };
28164
29239
  invoice_auto_concept_for_work_order: {
28165
29240
  Args: {
28166
29241
  _wo_id: string;
@@ -28434,6 +29509,24 @@ export type Database = {
28434
29509
  };
28435
29510
  Returns: string;
28436
29511
  };
29512
+ logistics_allocation_check_changes: {
29513
+ Args: {
29514
+ p_order_item_ids?: string[];
29515
+ };
29516
+ Returns: Json;
29517
+ };
29518
+ logistics_allocation_fp: {
29519
+ Args: {
29520
+ p_order_id: string;
29521
+ };
29522
+ Returns: string;
29523
+ };
29524
+ logistics_allocation_frozen: {
29525
+ Args: {
29526
+ p_order_id: string;
29527
+ };
29528
+ Returns: boolean;
29529
+ };
28437
29530
  logistics_allowed_load_carriers: {
28438
29531
  Args: {
28439
29532
  p_strategy_id?: string;
@@ -28447,6 +29540,13 @@ export type Database = {
28447
29540
  };
28448
29541
  Returns: string;
28449
29542
  };
29543
+ logistics_apply_cart_swap: {
29544
+ Args: {
29545
+ p_delete_ids: string[];
29546
+ p_new_carts: Json;
29547
+ };
29548
+ Returns: Json;
29549
+ };
28450
29550
  logistics_apply_document_layouts: {
28451
29551
  Args: never;
28452
29552
  Returns: undefined;
@@ -28475,6 +29575,14 @@ export type Database = {
28475
29575
  };
28476
29576
  Returns: Json;
28477
29577
  };
29578
+ logistics_base_url_check_status: {
29579
+ Args: never;
29580
+ Returns: Json;
29581
+ };
29582
+ logistics_base_url_checks_resolve: {
29583
+ Args: never;
29584
+ Returns: number;
29585
+ };
28478
29586
  logistics_block_reason_code: {
28479
29587
  Args: {
28480
29588
  p_details?: Json;
@@ -29115,6 +30223,15 @@ export type Database = {
29115
30223
  };
29116
30224
  Returns: Database["public"]["Enums"]["doc_layout_type"][];
29117
30225
  };
30226
+ logistics_double_group_lines: {
30227
+ Args: {
30228
+ p_order_id?: string;
30229
+ };
30230
+ Returns: {
30231
+ group_id: string;
30232
+ order_item_id: string;
30233
+ }[];
30234
+ };
29118
30235
  logistics_emit_event: {
29119
30236
  Args: {
29120
30237
  p_event_type: string;
@@ -29170,6 +30287,20 @@ export type Database = {
29170
30287
  };
29171
30288
  Returns: Json;
29172
30289
  };
30290
+ logistics_expand_line: {
30291
+ Args: {
30292
+ p_depth?: number;
30293
+ p_path?: string[];
30294
+ p_product_id: string;
30295
+ p_qty: number;
30296
+ };
30297
+ Returns: {
30298
+ kind: string;
30299
+ note: string;
30300
+ qty: number;
30301
+ ref: string;
30302
+ }[];
30303
+ };
29173
30304
  logistics_fail_task: {
29174
30305
  Args: {
29175
30306
  p_error: string;
@@ -29359,6 +30490,18 @@ export type Database = {
29359
30490
  };
29360
30491
  Returns: boolean;
29361
30492
  };
30493
+ logistics_frozen_allocation_scaled: {
30494
+ Args: {
30495
+ p_new_qty: number;
30496
+ p_order_item_id: string;
30497
+ };
30498
+ Returns: {
30499
+ group_id: string;
30500
+ qty: number;
30501
+ source: string;
30502
+ trade_item_key: string;
30503
+ }[];
30504
+ };
29362
30505
  logistics_fulfill_barcode_requests: {
29363
30506
  Args: {
29364
30507
  p_limit?: number;
@@ -29373,12 +30516,35 @@ export type Database = {
29373
30516
  Args: never;
29374
30517
  Returns: number;
29375
30518
  };
30519
+ logistics_is_beheer: {
30520
+ Args: never;
30521
+ Returns: boolean;
30522
+ };
30523
+ logistics_is_engine_response: {
30524
+ Args: {
30525
+ p_content: string;
30526
+ p_status: number;
30527
+ };
30528
+ Returns: boolean;
30529
+ };
30530
+ logistics_is_group_label: {
30531
+ Args: {
30532
+ p_label: string;
30533
+ };
30534
+ Returns: boolean;
30535
+ };
29376
30536
  logistics_is_pick_workday: {
29377
30537
  Args: {
29378
30538
  p_date: string;
29379
30539
  };
29380
30540
  Returns: boolean;
29381
30541
  };
30542
+ logistics_key_product: {
30543
+ Args: {
30544
+ p_key: string;
30545
+ };
30546
+ Returns: string;
30547
+ };
29382
30548
  logistics_layout_method_status: {
29383
30549
  Args: never;
29384
30550
  Returns: Json;
@@ -29481,6 +30647,12 @@ export type Database = {
29481
30647
  };
29482
30648
  Returns: undefined;
29483
30649
  };
30650
+ logistics_order_current_warnings: {
30651
+ Args: {
30652
+ p_order_id: string;
30653
+ };
30654
+ Returns: string[];
30655
+ };
29484
30656
  logistics_order_documents_ready: {
29485
30657
  Args: {
29486
30658
  p_order_ref: string;
@@ -29555,6 +30727,12 @@ export type Database = {
29555
30727
  };
29556
30728
  Returns: boolean;
29557
30729
  };
30730
+ logistics_order_is_frozen: {
30731
+ Args: {
30732
+ p_order_id: string;
30733
+ };
30734
+ Returns: boolean;
30735
+ };
29558
30736
  logistics_order_is_topick: {
29559
30737
  Args: {
29560
30738
  p_order_id: string;
@@ -29562,6 +30740,18 @@ export type Database = {
29562
30740
  };
29563
30741
  Returns: boolean;
29564
30742
  };
30743
+ logistics_order_line_allocation: {
30744
+ Args: {
30745
+ p_order_item_id: string;
30746
+ };
30747
+ Returns: {
30748
+ group_id: string;
30749
+ note: string;
30750
+ qty: number;
30751
+ source: string;
30752
+ trade_item_key: string;
30753
+ }[];
30754
+ };
29565
30755
  logistics_order_line_duplicates: {
29566
30756
  Args: {
29567
30757
  p_order_id: string;
@@ -29605,6 +30795,30 @@ export type Database = {
29605
30795
  };
29606
30796
  Returns: string;
29607
30797
  };
30798
+ logistics_order_plan_coverage: {
30799
+ Args: {
30800
+ p_order_id: string;
30801
+ };
30802
+ Returns: Json;
30803
+ };
30804
+ logistics_order_plan_coverage_list: {
30805
+ Args: {
30806
+ p_order_ids: string[];
30807
+ };
30808
+ Returns: {
30809
+ buffer_id: string;
30810
+ cart_count: number;
30811
+ label: string;
30812
+ order_id: string;
30813
+ order_number: string;
30814
+ pick_row_count: number;
30815
+ pick_status: string;
30816
+ picked_at: string;
30817
+ progress_pct: number;
30818
+ reason: string;
30819
+ state: string;
30820
+ }[];
30821
+ };
29608
30822
  logistics_order_released: {
29609
30823
  Args: {
29610
30824
  p_order_ref: string;
@@ -29765,12 +30979,22 @@ export type Database = {
29765
30979
  order_id: string;
29766
30980
  }[];
29767
30981
  };
30982
+ logistics_plan_coverage_check: {
30983
+ Args: {
30984
+ p_limit?: number;
30985
+ };
30986
+ Returns: Json;
30987
+ };
29768
30988
  logistics_plan_defer: {
29769
30989
  Args: {
29770
30990
  p_id: string;
29771
30991
  };
29772
30992
  Returns: undefined;
29773
30993
  };
30994
+ logistics_plan_due_count: {
30995
+ Args: never;
30996
+ Returns: number;
30997
+ };
29774
30998
  logistics_plan_enqueue: {
29775
30999
  Args: {
29776
31000
  p_order_id: string;
@@ -29921,6 +31145,21 @@ export type Database = {
29921
31145
  Args: never;
29922
31146
  Returns: number;
29923
31147
  };
31148
+ logistics_plan_wachttijd: {
31149
+ Args: {
31150
+ p_order_id: string;
31151
+ p_reason: string;
31152
+ };
31153
+ Returns: Json;
31154
+ };
31155
+ logistics_plan_wachttijd_melden: {
31156
+ Args: {
31157
+ p_order_id: string;
31158
+ p_reason: string;
31159
+ p_wacht: Json;
31160
+ };
31161
+ Returns: undefined;
31162
+ };
29924
31163
  logistics_planner_cart_snapshot: {
29925
31164
  Args: {
29926
31165
  p_buffer_id: string;
@@ -29936,6 +31175,23 @@ export type Database = {
29936
31175
  Args: never;
29937
31176
  Returns: number;
29938
31177
  };
31178
+ logistics_planner_lines: {
31179
+ Args: {
31180
+ p_order_id: string;
31181
+ };
31182
+ Returns: {
31183
+ components: Json;
31184
+ frozen: boolean;
31185
+ group_id: string;
31186
+ note: string;
31187
+ order_item_id: string;
31188
+ product_id: string;
31189
+ product_name: string;
31190
+ qty: number;
31191
+ trade_item_key: string;
31192
+ unit_kind: string;
31193
+ }[];
31194
+ };
29939
31195
  logistics_prepare_pick_documents: {
29940
31196
  Args: {
29941
31197
  p_limit?: number;
@@ -30007,6 +31263,12 @@ export type Database = {
30007
31263
  Args: never;
30008
31264
  Returns: number;
30009
31265
  };
31266
+ logistics_recompute_reserved_targeted: {
31267
+ Args: {
31268
+ p_product_id: string;
31269
+ };
31270
+ Returns: Json;
31271
+ };
30010
31272
  logistics_reconcile_missing_plan_queue: {
30011
31273
  Args: never;
30012
31274
  Returns: number;
@@ -30041,6 +31303,16 @@ export type Database = {
30041
31303
  };
30042
31304
  Returns: Json;
30043
31305
  };
31306
+ logistics_replan_candidates: {
31307
+ Args: {
31308
+ p_delivery_date?: string;
31309
+ p_include_frozen?: boolean;
31310
+ };
31311
+ Returns: {
31312
+ frozen: boolean;
31313
+ order_id: string;
31314
+ }[];
31315
+ };
30044
31316
  logistics_replan_clear_foreign_cart_items: {
30045
31317
  Args: {
30046
31318
  p_order_id: string;
@@ -30060,6 +31332,28 @@ export type Database = {
30060
31332
  };
30061
31333
  Returns: Json;
30062
31334
  };
31335
+ logistics_replan_preview: {
31336
+ Args: {
31337
+ p_delivery_date?: string;
31338
+ p_include_frozen?: boolean;
31339
+ };
31340
+ Returns: Json;
31341
+ };
31342
+ logistics_replan_selected: {
31343
+ Args: {
31344
+ p_confirm_count: number;
31345
+ p_delivery_date?: string;
31346
+ p_include_frozen?: boolean;
31347
+ };
31348
+ Returns: Json;
31349
+ };
31350
+ logistics_replan_selected_orders: {
31351
+ Args: {
31352
+ p_order_ids: string[];
31353
+ p_reason?: string;
31354
+ };
31355
+ Returns: Json;
31356
+ };
30063
31357
  logistics_report_delay: {
30064
31358
  Args: {
30065
31359
  p_expected_date?: string;
@@ -30076,6 +31370,12 @@ export type Database = {
30076
31370
  };
30077
31371
  Returns: string;
30078
31372
  };
31373
+ logistics_report_frozen_shortage: {
31374
+ Args: {
31375
+ p_order_item_ids: string[];
31376
+ };
31377
+ Returns: undefined;
31378
+ };
30079
31379
  logistics_rescan_orders: {
30080
31380
  Args: {
30081
31381
  p_days?: number;
@@ -30104,6 +31404,19 @@ export type Database = {
30104
31404
  };
30105
31405
  Returns: Json;
30106
31406
  };
31407
+ logistics_reserved_fast_skip: {
31408
+ Args: {
31409
+ p_key: string;
31410
+ p_raw: string;
31411
+ };
31412
+ Returns: boolean;
31413
+ };
31414
+ logistics_reserved_key: {
31415
+ Args: {
31416
+ p_key: string;
31417
+ };
31418
+ Returns: string;
31419
+ };
30107
31420
  logistics_reserved_stock_nightly: {
30108
31421
  Args: never;
30109
31422
  Returns: undefined;
@@ -30123,6 +31436,12 @@ export type Database = {
30123
31436
  };
30124
31437
  Returns: string;
30125
31438
  };
31439
+ logistics_resolve_product_match: {
31440
+ Args: {
31441
+ p_label: string;
31442
+ };
31443
+ Returns: Record<string, unknown>;
31444
+ };
30126
31445
  logistics_resolve_settings: {
30127
31446
  Args: {
30128
31447
  p_config_id: string;
@@ -30197,6 +31516,13 @@ export type Database = {
30197
31516
  };
30198
31517
  Returns: number;
30199
31518
  };
31519
+ logistics_set_components_scaled: {
31520
+ Args: {
31521
+ p_order_item_id: string;
31522
+ p_plants: number;
31523
+ };
31524
+ Returns: Json;
31525
+ };
30200
31526
  logistics_set_order_priority: {
30201
31527
  Args: {
30202
31528
  p_order_ref: string;
@@ -30243,6 +31569,16 @@ export type Database = {
30243
31569
  };
30244
31570
  Returns: string;
30245
31571
  };
31572
+ logistics_shipping_note_max_attempts: {
31573
+ Args: never;
31574
+ Returns: number;
31575
+ };
31576
+ logistics_shipping_note_release: {
31577
+ Args: {
31578
+ _order_number?: string;
31579
+ };
31580
+ Returns: number;
31581
+ };
30246
31582
  logistics_shipping_note_status: {
30247
31583
  Args: {
30248
31584
  p_cart_id?: string;
@@ -30250,6 +31586,12 @@ export type Database = {
30250
31586
  };
30251
31587
  Returns: Json;
30252
31588
  };
31589
+ logistics_shipping_note_wake: {
31590
+ Args: {
31591
+ _slip_job_id: string;
31592
+ };
31593
+ Returns: number;
31594
+ };
30253
31595
  logistics_shipping_notes_wake_all: {
30254
31596
  Args: never;
30255
31597
  Returns: Json;
@@ -30284,6 +31626,7 @@ export type Database = {
30284
31626
  slip_job_id: string;
30285
31627
  status: string;
30286
31628
  updated_at: string;
31629
+ voor_herstel: boolean;
30287
31630
  }[];
30288
31631
  SetofOptions: {
30289
31632
  from: "*";
@@ -30304,6 +31647,13 @@ export type Database = {
30304
31647
  };
30305
31648
  Returns: undefined;
30306
31649
  };
31650
+ logistics_slip_note_hold: {
31651
+ Args: {
31652
+ _id: string;
31653
+ _reason: string;
31654
+ };
31655
+ Returns: undefined;
31656
+ };
30307
31657
  logistics_slip_note_keep_waiting: {
30308
31658
  Args: {
30309
31659
  _class?: string;
@@ -30391,6 +31741,10 @@ export type Database = {
30391
31741
  Args: never;
30392
31742
  Returns: Json;
30393
31743
  };
31744
+ logistics_tick_base_url_check: {
31745
+ Args: never;
31746
+ Returns: Json;
31747
+ };
30394
31748
  logistics_tick_calls_resolve: {
30395
31749
  Args: never;
30396
31750
  Returns: number;
@@ -31543,6 +32897,31 @@ export type Database = {
31543
32897
  };
31544
32898
  Returns: undefined;
31545
32899
  };
32900
+ plan_standby_batch: {
32901
+ Args: {
32902
+ _items: Json;
32903
+ _notes: string;
32904
+ _remove_ids?: string[];
32905
+ _soort: string;
32906
+ };
32907
+ Returns: {
32908
+ created_at: string;
32909
+ created_by: string | null;
32910
+ employee_id: string;
32911
+ end_date: string;
32912
+ id: string;
32913
+ notes: string | null;
32914
+ soort: string;
32915
+ start_date: string;
32916
+ updated_at: string;
32917
+ }[];
32918
+ SetofOptions: {
32919
+ from: "*";
32920
+ to: "standby_planning";
32921
+ isOneToOne: false;
32922
+ isSetofReturn: true;
32923
+ };
32924
+ };
31546
32925
  planning_apply_schedule_updates: {
31547
32926
  Args: {
31548
32927
  _updates: Json;
@@ -31678,6 +33057,12 @@ export type Database = {
31678
33057
  };
31679
33058
  Returns: Json;
31680
33059
  };
33060
+ process_inventory_recompute_queue: {
33061
+ Args: {
33062
+ p_limit?: number;
33063
+ };
33064
+ Returns: number;
33065
+ };
31681
33066
  process_logistics_event: {
31682
33067
  Args: {
31683
33068
  p_event_id: string;
@@ -31692,6 +33077,80 @@ export type Database = {
31692
33077
  };
31693
33078
  Returns: Json;
31694
33079
  };
33080
+ product_active_group_id: {
33081
+ Args: {
33082
+ p_product_id: string;
33083
+ };
33084
+ Returns: string;
33085
+ };
33086
+ product_id_from_ref: {
33087
+ Args: {
33088
+ p_ref: string;
33089
+ };
33090
+ Returns: string;
33091
+ };
33092
+ product_is_set: {
33093
+ Args: {
33094
+ p_product_id: string;
33095
+ };
33096
+ Returns: boolean;
33097
+ };
33098
+ product_label: {
33099
+ Args: {
33100
+ p_id: string;
33101
+ };
33102
+ Returns: string;
33103
+ };
33104
+ product_member_group_ids: {
33105
+ Args: {
33106
+ p_product_id: string;
33107
+ };
33108
+ Returns: string[];
33109
+ };
33110
+ product_own_available: {
33111
+ Args: {
33112
+ p_connection_id: string;
33113
+ p_product_id: string;
33114
+ };
33115
+ Returns: Record<string, unknown>;
33116
+ };
33117
+ product_set_depth_above: {
33118
+ Args: {
33119
+ p_path?: string[];
33120
+ p_product_id: string;
33121
+ };
33122
+ Returns: number;
33123
+ };
33124
+ product_set_depth_below: {
33125
+ Args: {
33126
+ p_path?: string[];
33127
+ p_product_id: string;
33128
+ };
33129
+ Returns: number;
33130
+ };
33131
+ product_structure_ancestors: {
33132
+ Args: {
33133
+ p_product_ids: string[];
33134
+ };
33135
+ Returns: string[];
33136
+ };
33137
+ product_structure_max_depth: {
33138
+ Args: never;
33139
+ Returns: number;
33140
+ };
33141
+ product_structure_path: {
33142
+ Args: {
33143
+ p_from: string;
33144
+ p_target: string;
33145
+ };
33146
+ Returns: string[];
33147
+ };
33148
+ product_type: {
33149
+ Args: {
33150
+ p_product_id: string;
33151
+ };
33152
+ Returns: string;
33153
+ };
31695
33154
  promote_floriday_customer: {
31696
33155
  Args: {
31697
33156
  _org_id: string;
@@ -31932,6 +33391,14 @@ export type Database = {
31932
33391
  };
31933
33392
  Returns: Json;
31934
33393
  };
33394
+ requeue_skipped_stock_rows: {
33395
+ Args: {
33396
+ p_connection_id: string;
33397
+ p_status: string;
33398
+ p_trade_item_id?: string;
33399
+ };
33400
+ Returns: number;
33401
+ };
31935
33402
  reset_cart_layer_positions: {
31936
33403
  Args: {
31937
33404
  p_cart_id: string;
@@ -32016,6 +33483,10 @@ export type Database = {
32016
33483
  };
32017
33484
  Returns: number;
32018
33485
  };
33486
+ run_floriday_base_supply_process: {
33487
+ Args: never;
33488
+ Returns: undefined;
33489
+ };
32019
33490
  run_floriday_continuous_stock_sync: {
32020
33491
  Args: never;
32021
33492
  Returns: undefined;
@@ -32044,6 +33515,41 @@ export type Database = {
32044
33515
  Args: never;
32045
33516
  Returns: undefined;
32046
33517
  };
33518
+ save_belading: {
33519
+ Args: {
33520
+ p_expected_updated_at: string;
33521
+ p_packing_configuration_id: string;
33522
+ p_product_id: string;
33523
+ p_tenant_id: string;
33524
+ p_trade_item_floriday_id: string;
33525
+ p_values: Json;
33526
+ };
33527
+ Returns: Json;
33528
+ };
33529
+ save_product_group: {
33530
+ Args: {
33531
+ p_description: string;
33532
+ p_expected_updated_at: string;
33533
+ p_head_product_id: string;
33534
+ p_id: string;
33535
+ p_is_active: boolean;
33536
+ p_members: Json;
33537
+ p_name: string;
33538
+ };
33539
+ Returns: Json;
33540
+ };
33541
+ save_samenstelling: {
33542
+ Args: {
33543
+ p_components: Json;
33544
+ p_expected_updated_at: string;
33545
+ p_external: Json;
33546
+ p_packing_configuration_id: string;
33547
+ p_parent_id: string;
33548
+ p_parent_kind: string;
33549
+ p_tenant_id: string;
33550
+ };
33551
+ Returns: Json;
33552
+ };
32047
33553
  scan_cancel_kar: {
32048
33554
  Args: {
32049
33555
  p_kar_id: string;
@@ -32577,6 +34083,40 @@ export type Database = {
32577
34083
  };
32578
34084
  Returns: Json;
32579
34085
  };
34086
+ stock_import_cleanup: {
34087
+ Args: never;
34088
+ Returns: number;
34089
+ };
34090
+ stock_import_create: {
34091
+ Args: {
34092
+ p_connection_id: string;
34093
+ p_file_hash: string;
34094
+ p_filename: string;
34095
+ p_force?: boolean;
34096
+ p_rows: Json;
34097
+ };
34098
+ Returns: Json;
34099
+ };
34100
+ stock_import_process_chunk: {
34101
+ Args: {
34102
+ p_chunk_no: number;
34103
+ p_run_id: string;
34104
+ };
34105
+ Returns: Json;
34106
+ };
34107
+ stock_import_stop: {
34108
+ Args: {
34109
+ p_run_id: string;
34110
+ };
34111
+ Returns: Json;
34112
+ };
34113
+ stock_import_undo_chunk: {
34114
+ Args: {
34115
+ p_chunk_no: number;
34116
+ p_run_id: string;
34117
+ };
34118
+ Returns: Json;
34119
+ };
32580
34120
  stop_time_log: {
32581
34121
  Args: {
32582
34122
  p_employee_id: string;
@@ -32812,6 +34352,25 @@ export type Database = {
32812
34352
  };
32813
34353
  Returns: undefined;
32814
34354
  };
34355
+ uren_collega_agenda: {
34356
+ Args: {
34357
+ _monteur: string;
34358
+ _tot: string;
34359
+ _van: string;
34360
+ };
34361
+ Returns: {
34362
+ afwezig: string;
34363
+ datum: string;
34364
+ gepland: number;
34365
+ kort_vrij: Json;
34366
+ overuren: number;
34367
+ standby_avond: boolean;
34368
+ standby_ingepland: string;
34369
+ standby_weekend: boolean;
34370
+ werk_eind: string;
34371
+ werk_start: string;
34372
+ }[];
34373
+ };
32815
34374
  uren_dag_controle: {
32816
34375
  Args: {
32817
34376
  _datum: string;
@@ -32853,6 +34412,20 @@ export type Database = {
32853
34412
  Args: never;
32854
34413
  Returns: boolean;
32855
34414
  };
34415
+ uren_indirect_opslaan: {
34416
+ Args: {
34417
+ _datum: string;
34418
+ _minuten: number;
34419
+ _toelichting: string;
34420
+ };
34421
+ Returns: string;
34422
+ };
34423
+ uren_indirect_verwijderen: {
34424
+ Args: {
34425
+ _id: string;
34426
+ };
34427
+ Returns: undefined;
34428
+ };
32856
34429
  uren_is_beheerder: {
32857
34430
  Args: never;
32858
34431
  Returns: boolean;
@@ -32893,6 +34466,13 @@ export type Database = {
32893
34466
  roles: string[];
32894
34467
  }[];
32895
34468
  };
34469
+ uren_list_monteurs: {
34470
+ Args: never;
34471
+ Returns: {
34472
+ id: string;
34473
+ naam: string;
34474
+ }[];
34475
+ };
32896
34476
  uren_list_planner_contacten: {
32897
34477
  Args: never;
32898
34478
  Returns: {
@@ -33013,6 +34593,36 @@ export type Database = {
33013
34593
  };
33014
34594
  Returns: undefined;
33015
34595
  };
34596
+ uren_standby_opslaan: {
34597
+ Args: {
34598
+ _datums: string[];
34599
+ _soort: string;
34600
+ _tot: string;
34601
+ _van: string;
34602
+ };
34603
+ Returns: undefined;
34604
+ };
34605
+ uren_standby_overdragen: {
34606
+ Args: {
34607
+ _datum: string;
34608
+ _naar: string;
34609
+ };
34610
+ Returns: undefined;
34611
+ };
34612
+ uren_standby_ruil: {
34613
+ Args: {
34614
+ _aan: boolean;
34615
+ _datum: string;
34616
+ };
34617
+ Returns: undefined;
34618
+ };
34619
+ uren_standby_sync: {
34620
+ Args: {
34621
+ _tot: string;
34622
+ _van: string;
34623
+ };
34624
+ Returns: undefined;
34625
+ };
33016
34626
  uren_stop_time_log: {
33017
34627
  Args: {
33018
34628
  p_employee_id: string;
@@ -33236,16 +34846,40 @@ export type Database = {
33236
34846
  };
33237
34847
  Returns: Json;
33238
34848
  };
34849
+ voorraad_can_write: {
34850
+ Args: never;
34851
+ Returns: boolean;
34852
+ };
33239
34853
  voorraad_cleanup_old_rows: {
33240
34854
  Args: never;
33241
34855
  Returns: Json;
33242
34856
  };
34857
+ voorraad_production_enabled: {
34858
+ Args: never;
34859
+ Returns: boolean;
34860
+ };
34861
+ voorraad_week_is_past: {
34862
+ Args: {
34863
+ p_week: number;
34864
+ p_year: number;
34865
+ };
34866
+ Returns: boolean;
34867
+ };
33243
34868
  wake_print_queue: {
33244
34869
  Args: {
33245
34870
  _min_interval_ms?: number;
33246
34871
  };
33247
34872
  Returns: number;
33248
34873
  };
34874
+ werkbon_format_project_number: {
34875
+ Args: {
34876
+ _parent_project_number?: string;
34877
+ _sequence_number: number;
34878
+ _source_type: string;
34879
+ _version: number;
34880
+ };
34881
+ Returns: string;
34882
+ };
33249
34883
  werkbon_pakket_tijden: {
33250
34884
  Args: {
33251
34885
  _werkbon_id: string;
@@ -33268,6 +34902,14 @@ export type Database = {
33268
34902
  total_minutes: number;
33269
34903
  }[];
33270
34904
  };
34905
+ wo_boek_standby_uren: {
34906
+ Args: {
34907
+ _datum: string;
34908
+ _minuten: number;
34909
+ _werkbon_id: string;
34910
+ };
34911
+ Returns: Json;
34912
+ };
33271
34913
  wo_create_from_source: {
33272
34914
  Args: {
33273
34915
  _payload?: Json;
@@ -33321,6 +34963,12 @@ export type Database = {
33321
34963
  };
33322
34964
  Returns: Json;
33323
34965
  };
34966
+ wo_open_standby: {
34967
+ Args: {
34968
+ _standby_id: string;
34969
+ };
34970
+ Returns: string;
34971
+ };
33324
34972
  wo_process_offerte_request: {
33325
34973
  Args: {
33326
34974
  _queue_id: string;