@flowselections/floriday-voorraad 1.0.108 → 1.0.113

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist-lib/components/voorraad/FustenPage.d.ts.map +1 -1
  2. package/dist-lib/components/voorraad/FustenPage.js +10 -6
  3. package/dist-lib/components/voorraad/PriceStatusBadge.d.ts.map +1 -1
  4. package/dist-lib/components/voorraad/PriceStatusBadge.js +6 -1
  5. package/dist-lib/components/voorraad/VoorraadPage.d.ts.map +1 -1
  6. package/dist-lib/components/voorraad/VoorraadPage.js +8 -37
  7. package/dist-lib/hooks/useNoPriceProducts.d.ts +10 -0
  8. package/dist-lib/hooks/useNoPriceProducts.d.ts.map +1 -0
  9. package/dist-lib/hooks/useNoPriceProducts.js +56 -0
  10. package/dist-lib/hooks/useStockPushJobs.d.ts.map +1 -1
  11. package/dist-lib/hooks/useStockPushJobs.js +6 -1
  12. package/dist-lib/hooks/useStockSyncHealth.d.ts.map +1 -1
  13. package/dist-lib/hooks/useStockSyncHealth.js +2 -9
  14. package/dist-lib/hooks/useVoorraadData.d.ts.map +1 -1
  15. package/dist-lib/hooks/useVoorraadData.js +45 -24
  16. package/dist-lib/integrations/supabase/types.d.ts +1049 -122
  17. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  18. package/dist-lib/integrations/supabase/types.js +1 -0
  19. package/dist-lib/lib/__tests__/fust-dimensions.test.d.ts +2 -0
  20. package/dist-lib/lib/__tests__/fust-dimensions.test.d.ts.map +1 -0
  21. package/dist-lib/lib/__tests__/fust-dimensions.test.js +27 -0
  22. package/dist-lib/lib/__tests__/request-guard.test.d.ts +2 -0
  23. package/dist-lib/lib/__tests__/request-guard.test.d.ts.map +1 -0
  24. package/dist-lib/lib/__tests__/request-guard.test.js +50 -0
  25. package/dist-lib/lib/fusten.d.ts +14 -3
  26. package/dist-lib/lib/fusten.d.ts.map +1 -1
  27. package/dist-lib/lib/fusten.js +38 -7
  28. package/dist-lib/lib/request-guard.d.ts +46 -0
  29. package/dist-lib/lib/request-guard.d.ts.map +1 -0
  30. package/dist-lib/lib/request-guard.js +100 -0
  31. package/package.json +1 -1
  32. package/sql/floriday-voorraad-schema.sql +343 -28
@@ -1728,13 +1728,6 @@ export type Database = {
1728
1728
  updated_at?: string;
1729
1729
  };
1730
1730
  Relationships: [
1731
- {
1732
- foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
1733
- columns: ["product_id"];
1734
- isOneToOne: true;
1735
- referencedRelation: "logistics_product_dimensions";
1736
- referencedColumns: ["product_id"];
1737
- },
1738
1731
  {
1739
1732
  foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
1740
1733
  columns: ["product_id"];
@@ -7984,13 +7977,6 @@ export type Database = {
7984
7977
  user_id?: string;
7985
7978
  };
7986
7979
  Relationships: [
7987
- {
7988
- foreignKeyName: "floriday_inventory_settings_product_id_fkey";
7989
- columns: ["product_id"];
7990
- isOneToOne: false;
7991
- referencedRelation: "logistics_product_dimensions";
7992
- referencedColumns: ["product_id"];
7993
- },
7994
7980
  {
7995
7981
  foreignKeyName: "floriday_inventory_settings_product_id_fkey";
7996
7982
  columns: ["product_id"];
@@ -9682,6 +9668,7 @@ export type Database = {
9682
9668
  id: string;
9683
9669
  in_use: boolean;
9684
9670
  length_mm: number | null;
9671
+ merged_into: string | null;
9685
9672
  minimum_stock: number;
9686
9673
  name: string;
9687
9674
  notes: string | null;
@@ -9703,6 +9690,7 @@ export type Database = {
9703
9690
  id?: string;
9704
9691
  in_use?: boolean;
9705
9692
  length_mm?: number | null;
9693
+ merged_into?: string | null;
9706
9694
  minimum_stock?: number;
9707
9695
  name: string;
9708
9696
  notes?: string | null;
@@ -9724,6 +9712,7 @@ export type Database = {
9724
9712
  id?: string;
9725
9713
  in_use?: boolean;
9726
9714
  length_mm?: number | null;
9715
+ merged_into?: string | null;
9727
9716
  minimum_stock?: number;
9728
9717
  name?: string;
9729
9718
  notes?: string | null;
@@ -9735,7 +9724,15 @@ export type Database = {
9735
9724
  vbn_code?: number | null;
9736
9725
  width_mm?: number | null;
9737
9726
  };
9738
- Relationships: [];
9727
+ Relationships: [
9728
+ {
9729
+ foreignKeyName: "fust_types_merged_into_fkey";
9730
+ columns: ["merged_into"];
9731
+ isOneToOne: false;
9732
+ referencedRelation: "fust_types";
9733
+ referencedColumns: ["id"];
9734
+ }
9735
+ ];
9739
9736
  };
9740
9737
  imap_accounts: {
9741
9738
  Row: {
@@ -12103,13 +12100,6 @@ export type Database = {
12103
12100
  referencedRelation: "product_categories";
12104
12101
  referencedColumns: ["id"];
12105
12102
  },
12106
- {
12107
- foreignKeyName: "local_customer_agreements_product_id_fkey";
12108
- columns: ["product_id"];
12109
- isOneToOne: false;
12110
- referencedRelation: "logistics_product_dimensions";
12111
- referencedColumns: ["product_id"];
12112
- },
12113
12103
  {
12114
12104
  foreignKeyName: "local_customer_agreements_product_id_fkey";
12115
12105
  columns: ["product_id"];
@@ -12180,13 +12170,6 @@ export type Database = {
12180
12170
  referencedRelation: "product_categories";
12181
12171
  referencedColumns: ["id"];
12182
12172
  },
12183
- {
12184
- foreignKeyName: "local_customer_price_groups_product_id_fkey";
12185
- columns: ["product_id"];
12186
- isOneToOne: false;
12187
- referencedRelation: "logistics_product_dimensions";
12188
- referencedColumns: ["product_id"];
12189
- },
12190
12173
  {
12191
12174
  foreignKeyName: "local_customer_price_groups_product_id_fkey";
12192
12175
  columns: ["product_id"];
@@ -12257,13 +12240,6 @@ export type Database = {
12257
12240
  referencedRelation: "product_categories";
12258
12241
  referencedColumns: ["id"];
12259
12242
  },
12260
- {
12261
- foreignKeyName: "local_customer_sales_strategies_product_id_fkey";
12262
- columns: ["product_id"];
12263
- isOneToOne: false;
12264
- referencedRelation: "logistics_product_dimensions";
12265
- referencedColumns: ["product_id"];
12266
- },
12267
12243
  {
12268
12244
  foreignKeyName: "local_customer_sales_strategies_product_id_fkey";
12269
12245
  columns: ["product_id"];
@@ -12501,6 +12477,33 @@ export type Database = {
12501
12477
  };
12502
12478
  Relationships: [];
12503
12479
  };
12480
+ logistics_belading_waarschuwingen: {
12481
+ Row: {
12482
+ created_at: string;
12483
+ id: string;
12484
+ order_id: string;
12485
+ sleutel: string;
12486
+ tekst: string;
12487
+ updated_at: string;
12488
+ };
12489
+ Insert: {
12490
+ created_at?: string;
12491
+ id?: string;
12492
+ order_id: string;
12493
+ sleutel: string;
12494
+ tekst: string;
12495
+ updated_at?: string;
12496
+ };
12497
+ Update: {
12498
+ created_at?: string;
12499
+ id?: string;
12500
+ order_id?: string;
12501
+ sleutel?: string;
12502
+ tekst?: string;
12503
+ updated_at?: string;
12504
+ };
12505
+ Relationships: [];
12506
+ };
12504
12507
  logistics_capacity_alerts: {
12505
12508
  Row: {
12506
12509
  available_minutes: number;
@@ -12875,6 +12878,36 @@ export type Database = {
12875
12878
  };
12876
12879
  Relationships: [];
12877
12880
  };
12881
+ logistics_correctie_log: {
12882
+ Row: {
12883
+ correctie: string;
12884
+ created_at: string;
12885
+ id: string;
12886
+ nieuw: Json | null;
12887
+ object_id: string | null;
12888
+ omschrijving: string | null;
12889
+ oud: Json | null;
12890
+ };
12891
+ Insert: {
12892
+ correctie: string;
12893
+ created_at?: string;
12894
+ id?: string;
12895
+ nieuw?: Json | null;
12896
+ object_id?: string | null;
12897
+ omschrijving?: string | null;
12898
+ oud?: Json | null;
12899
+ };
12900
+ Update: {
12901
+ correctie?: string;
12902
+ created_at?: string;
12903
+ id?: string;
12904
+ nieuw?: Json | null;
12905
+ object_id?: string | null;
12906
+ omschrijving?: string | null;
12907
+ oud?: Json | null;
12908
+ };
12909
+ Relationships: [];
12910
+ };
12878
12911
  logistics_decisions: {
12879
12912
  Row: {
12880
12913
  created_at: string;
@@ -13429,6 +13462,90 @@ export type Database = {
13429
13462
  }
13430
13463
  ];
13431
13464
  };
13465
+ logistics_gegevens_bron: {
13466
+ Row: {
13467
+ bron: string;
13468
+ id: string;
13469
+ onderwerp: string;
13470
+ sleutel: string;
13471
+ toelichting: string | null;
13472
+ vastgelegd_door: string | null;
13473
+ vastgelegd_op: string;
13474
+ veld: string;
13475
+ waarde: string | null;
13476
+ };
13477
+ Insert: {
13478
+ bron: string;
13479
+ id?: string;
13480
+ onderwerp: string;
13481
+ sleutel: string;
13482
+ toelichting?: string | null;
13483
+ vastgelegd_door?: string | null;
13484
+ vastgelegd_op?: string;
13485
+ veld: string;
13486
+ waarde?: string | null;
13487
+ };
13488
+ Update: {
13489
+ bron?: string;
13490
+ id?: string;
13491
+ onderwerp?: string;
13492
+ sleutel?: string;
13493
+ toelichting?: string | null;
13494
+ vastgelegd_door?: string | null;
13495
+ vastgelegd_op?: string;
13496
+ veld?: string;
13497
+ waarde?: string | null;
13498
+ };
13499
+ Relationships: [];
13500
+ };
13501
+ logistics_index_log: {
13502
+ Row: {
13503
+ aangemaakt_at: string;
13504
+ duur_ms: number | null;
13505
+ index_naam: string;
13506
+ rijen: number | null;
13507
+ tabel: string;
13508
+ };
13509
+ Insert: {
13510
+ aangemaakt_at?: string;
13511
+ duur_ms?: number | null;
13512
+ index_naam: string;
13513
+ rijen?: number | null;
13514
+ tabel: string;
13515
+ };
13516
+ Update: {
13517
+ aangemaakt_at?: string;
13518
+ duur_ms?: number | null;
13519
+ index_naam?: string;
13520
+ rijen?: number | null;
13521
+ tabel?: string;
13522
+ };
13523
+ Relationships: [];
13524
+ };
13525
+ logistics_kick_log: {
13526
+ Row: {
13527
+ id: number;
13528
+ kicked_at: string;
13529
+ request_id: number | null;
13530
+ round_started_at: string | null;
13531
+ skipped_reason: string | null;
13532
+ };
13533
+ Insert: {
13534
+ id?: number;
13535
+ kicked_at?: string;
13536
+ request_id?: number | null;
13537
+ round_started_at?: string | null;
13538
+ skipped_reason?: string | null;
13539
+ };
13540
+ Update: {
13541
+ id?: number;
13542
+ kicked_at?: string;
13543
+ request_id?: number | null;
13544
+ round_started_at?: string | null;
13545
+ skipped_reason?: string | null;
13546
+ };
13547
+ Relationships: [];
13548
+ };
13432
13549
  logistics_layer_override_log: {
13433
13550
  Row: {
13434
13551
  cart_id: string;
@@ -14473,6 +14590,90 @@ export type Database = {
14473
14590
  }
14474
14591
  ];
14475
14592
  };
14593
+ logistics_schedule_fp: {
14594
+ Row: {
14595
+ fp: string;
14596
+ ingepland_at: string;
14597
+ order_ref: string;
14598
+ };
14599
+ Insert: {
14600
+ fp: string;
14601
+ ingepland_at?: string;
14602
+ order_ref: string;
14603
+ };
14604
+ Update: {
14605
+ fp?: string;
14606
+ ingepland_at?: string;
14607
+ order_ref?: string;
14608
+ };
14609
+ Relationships: [];
14610
+ };
14611
+ logistics_schedule_voortgang: {
14612
+ Row: {
14613
+ bijgewerkt_at: string | null;
14614
+ duur_ms: number | null;
14615
+ fouten: number;
14616
+ gestart_at: string | null;
14617
+ id: boolean;
14618
+ ingepland: number;
14619
+ klaar: boolean;
14620
+ laatste_fout: string | null;
14621
+ overgeslagen: number;
14622
+ run_id: string | null;
14623
+ totaal: number;
14624
+ verwerkt: number;
14625
+ };
14626
+ Insert: {
14627
+ bijgewerkt_at?: string | null;
14628
+ duur_ms?: number | null;
14629
+ fouten?: number;
14630
+ gestart_at?: string | null;
14631
+ id?: boolean;
14632
+ ingepland?: number;
14633
+ klaar?: boolean;
14634
+ laatste_fout?: string | null;
14635
+ overgeslagen?: number;
14636
+ run_id?: string | null;
14637
+ totaal?: number;
14638
+ verwerkt?: number;
14639
+ };
14640
+ Update: {
14641
+ bijgewerkt_at?: string | null;
14642
+ duur_ms?: number | null;
14643
+ fouten?: number;
14644
+ gestart_at?: string | null;
14645
+ id?: boolean;
14646
+ ingepland?: number;
14647
+ klaar?: boolean;
14648
+ laatste_fout?: string | null;
14649
+ overgeslagen?: number;
14650
+ run_id?: string | null;
14651
+ totaal?: number;
14652
+ verwerkt?: number;
14653
+ };
14654
+ Relationships: [];
14655
+ };
14656
+ logistics_schedule_werklijst: {
14657
+ Row: {
14658
+ order_ref: string;
14659
+ run_id: string;
14660
+ uitkomst: string | null;
14661
+ verwerkt_at: string | null;
14662
+ };
14663
+ Insert: {
14664
+ order_ref: string;
14665
+ run_id: string;
14666
+ uitkomst?: string | null;
14667
+ verwerkt_at?: string | null;
14668
+ };
14669
+ Update: {
14670
+ order_ref?: string;
14671
+ run_id?: string;
14672
+ uitkomst?: string | null;
14673
+ verwerkt_at?: string | null;
14674
+ };
14675
+ Relationships: [];
14676
+ };
14476
14677
  logistics_shipping_note_scan: {
14477
14678
  Row: {
14478
14679
  barcode: string;
@@ -15067,6 +15268,24 @@ export type Database = {
15067
15268
  };
15068
15269
  Relationships: [];
15069
15270
  };
15271
+ logistics_tick_state: {
15272
+ Row: {
15273
+ key: string;
15274
+ updated_at: string;
15275
+ value: Json;
15276
+ };
15277
+ Insert: {
15278
+ key: string;
15279
+ updated_at?: string;
15280
+ value?: Json;
15281
+ };
15282
+ Update: {
15283
+ key?: string;
15284
+ updated_at?: string;
15285
+ value?: Json;
15286
+ };
15287
+ Relationships: [];
15288
+ };
15070
15289
  logistics_time_settings: {
15071
15290
  Row: {
15072
15291
  departure_rule_since: string | null;
@@ -15370,6 +15589,39 @@ export type Database = {
15370
15589
  };
15371
15590
  Relationships: [];
15372
15591
  };
15592
+ logistics_zonder_kar_pogingen: {
15593
+ Row: {
15594
+ created_at: string;
15595
+ gemeld_at: string | null;
15596
+ laatste_poging_at: string | null;
15597
+ opgelost_at: string | null;
15598
+ order_id: string;
15599
+ order_number: string | null;
15600
+ pogingen: number;
15601
+ updated_at: string;
15602
+ };
15603
+ Insert: {
15604
+ created_at?: string;
15605
+ gemeld_at?: string | null;
15606
+ laatste_poging_at?: string | null;
15607
+ opgelost_at?: string | null;
15608
+ order_id: string;
15609
+ order_number?: string | null;
15610
+ pogingen?: number;
15611
+ updated_at?: string;
15612
+ };
15613
+ Update: {
15614
+ created_at?: string;
15615
+ gemeld_at?: string | null;
15616
+ laatste_poging_at?: string | null;
15617
+ opgelost_at?: string | null;
15618
+ order_id?: string;
15619
+ order_number?: string | null;
15620
+ pogingen?: number;
15621
+ updated_at?: string;
15622
+ };
15623
+ Relationships: [];
15624
+ };
15373
15625
  mailbox_ai_goal_prompts: {
15374
15626
  Row: {
15375
15627
  created_at: string;
@@ -15952,13 +16204,6 @@ export type Database = {
15952
16204
  warnings?: string[] | null;
15953
16205
  };
15954
16206
  Relationships: [
15955
- {
15956
- foreignKeyName: "mailbox_proposal_lines_product_id_fkey";
15957
- columns: ["product_id"];
15958
- isOneToOne: false;
15959
- referencedRelation: "logistics_product_dimensions";
15960
- referencedColumns: ["product_id"];
15961
- },
15962
16207
  {
15963
16208
  foreignKeyName: "mailbox_proposal_lines_product_id_fkey";
15964
16209
  columns: ["product_id"];
@@ -17501,6 +17746,7 @@ export type Database = {
17501
17746
  crates_per_layer: number;
17502
17747
  created_at: string;
17503
17748
  id: string;
17749
+ lagen: number | null;
17504
17750
  layer_fraction: number;
17505
17751
  layer_index: number | null;
17506
17752
  layer_share_pct: number;
@@ -17520,6 +17766,7 @@ export type Database = {
17520
17766
  crates_per_layer?: number;
17521
17767
  created_at?: string;
17522
17768
  id?: string;
17769
+ lagen?: number | null;
17523
17770
  layer_fraction?: number;
17524
17771
  layer_index?: number | null;
17525
17772
  layer_share_pct?: number;
@@ -17539,6 +17786,7 @@ export type Database = {
17539
17786
  crates_per_layer?: number;
17540
17787
  created_at?: string;
17541
17788
  id?: string;
17789
+ lagen?: number | null;
17542
17790
  layer_fraction?: number;
17543
17791
  layer_index?: number | null;
17544
17792
  layer_share_pct?: number;
@@ -17564,13 +17812,6 @@ export type Database = {
17564
17812
  referencedRelation: "order_items";
17565
17813
  referencedColumns: ["id"];
17566
17814
  },
17567
- {
17568
- foreignKeyName: "order_cart_items_product_id_fkey";
17569
- columns: ["product_id"];
17570
- isOneToOne: false;
17571
- referencedRelation: "logistics_product_dimensions";
17572
- referencedColumns: ["product_id"];
17573
- },
17574
17815
  {
17575
17816
  foreignKeyName: "order_cart_items_product_id_fkey";
17576
17817
  columns: ["product_id"];
@@ -18045,13 +18286,6 @@ export type Database = {
18045
18286
  referencedRelation: "orders";
18046
18287
  referencedColumns: ["id"];
18047
18288
  },
18048
- {
18049
- foreignKeyName: "order_items_product_id_fkey";
18050
- columns: ["product_id"];
18051
- isOneToOne: false;
18052
- referencedRelation: "logistics_product_dimensions";
18053
- referencedColumns: ["product_id"];
18054
- },
18055
18289
  {
18056
18290
  foreignKeyName: "order_items_product_id_fkey";
18057
18291
  columns: ["product_id"];
@@ -20630,6 +20864,7 @@ export type Database = {
20630
20864
  pdf_url: string | null;
20631
20865
  pogingen: number;
20632
20866
  printer_id: string | null;
20867
+ printer_keuze: Json | null;
20633
20868
  printnode_bericht: string | null;
20634
20869
  printnode_status: string | null;
20635
20870
  printnode_status_op: string | null;
@@ -20687,6 +20922,7 @@ export type Database = {
20687
20922
  pdf_url?: string | null;
20688
20923
  pogingen?: number;
20689
20924
  printer_id?: string | null;
20925
+ printer_keuze?: Json | null;
20690
20926
  printnode_bericht?: string | null;
20691
20927
  printnode_status?: string | null;
20692
20928
  printnode_status_op?: string | null;
@@ -20744,6 +20980,7 @@ export type Database = {
20744
20980
  pdf_url?: string | null;
20745
20981
  pogingen?: number;
20746
20982
  printer_id?: string | null;
20983
+ printer_keuze?: Json | null;
20747
20984
  printnode_bericht?: string | null;
20748
20985
  printnode_status?: string | null;
20749
20986
  printnode_status_op?: string | null;
@@ -21080,7 +21317,9 @@ export type Database = {
21080
21317
  created_at: string;
21081
21318
  dubbel_venster_minuten: number;
21082
21319
  id: string;
21320
+ tick_timeout_ms: number | null;
21083
21321
  updated_at: string;
21322
+ vervallen_fase_seconden: number | null;
21084
21323
  };
21085
21324
  Insert: {
21086
21325
  bewaar_bestanden_dagen?: number;
@@ -21088,7 +21327,9 @@ export type Database = {
21088
21327
  created_at?: string;
21089
21328
  dubbel_venster_minuten?: number;
21090
21329
  id?: string;
21330
+ tick_timeout_ms?: number | null;
21091
21331
  updated_at?: string;
21332
+ vervallen_fase_seconden?: number | null;
21092
21333
  };
21093
21334
  Update: {
21094
21335
  bewaar_bestanden_dagen?: number;
@@ -21096,7 +21337,9 @@ export type Database = {
21096
21337
  created_at?: string;
21097
21338
  dubbel_venster_minuten?: number;
21098
21339
  id?: string;
21340
+ tick_timeout_ms?: number | null;
21099
21341
  updated_at?: string;
21342
+ vervallen_fase_seconden?: number | null;
21100
21343
  };
21101
21344
  Relationships: [];
21102
21345
  };
@@ -21679,13 +21922,6 @@ export type Database = {
21679
21922
  updated_at?: string;
21680
21923
  };
21681
21924
  Relationships: [
21682
- {
21683
- foreignKeyName: "product_bom_external_items_parent_product_id_fkey";
21684
- columns: ["parent_product_id"];
21685
- isOneToOne: false;
21686
- referencedRelation: "logistics_product_dimensions";
21687
- referencedColumns: ["product_id"];
21688
- },
21689
21925
  {
21690
21926
  foreignKeyName: "product_bom_external_items_parent_product_id_fkey";
21691
21927
  columns: ["parent_product_id"];
@@ -21742,13 +21978,6 @@ export type Database = {
21742
21978
  updated_at?: string;
21743
21979
  };
21744
21980
  Relationships: [
21745
- {
21746
- foreignKeyName: "product_bom_items_component_product_id_fkey";
21747
- columns: ["component_product_id"];
21748
- isOneToOne: false;
21749
- referencedRelation: "logistics_product_dimensions";
21750
- referencedColumns: ["product_id"];
21751
- },
21752
21981
  {
21753
21982
  foreignKeyName: "product_bom_items_component_product_id_fkey";
21754
21983
  columns: ["component_product_id"];
@@ -21756,13 +21985,6 @@ export type Database = {
21756
21985
  referencedRelation: "products";
21757
21986
  referencedColumns: ["id"];
21758
21987
  },
21759
- {
21760
- foreignKeyName: "product_bom_items_parent_product_id_fkey";
21761
- columns: ["parent_product_id"];
21762
- isOneToOne: false;
21763
- referencedRelation: "logistics_product_dimensions";
21764
- referencedColumns: ["product_id"];
21765
- },
21766
21988
  {
21767
21989
  foreignKeyName: "product_bom_items_parent_product_id_fkey";
21768
21990
  columns: ["parent_product_id"];
@@ -21943,13 +22165,6 @@ export type Database = {
21943
22165
  updated_at?: string;
21944
22166
  };
21945
22167
  Relationships: [
21946
- {
21947
- foreignKeyName: "product_groups_head_product_id_fkey";
21948
- columns: ["head_product_id"];
21949
- isOneToOne: false;
21950
- referencedRelation: "logistics_product_dimensions";
21951
- referencedColumns: ["product_id"];
21952
- },
21953
22168
  {
21954
22169
  foreignKeyName: "product_groups_head_product_id_fkey";
21955
22170
  columns: ["head_product_id"];
@@ -22025,13 +22240,6 @@ export type Database = {
22025
22240
  referencedRelation: "packages";
22026
22241
  referencedColumns: ["id"];
22027
22242
  },
22028
- {
22029
- foreignKeyName: "product_load_settings_product_id_fkey";
22030
- columns: ["product_id"];
22031
- isOneToOne: false;
22032
- referencedRelation: "logistics_product_dimensions";
22033
- referencedColumns: ["product_id"];
22034
- },
22035
22243
  {
22036
22244
  foreignKeyName: "product_load_settings_product_id_fkey";
22037
22245
  columns: ["product_id"];
@@ -22137,13 +22345,6 @@ export type Database = {
22137
22345
  referencedRelation: "fust_types";
22138
22346
  referencedColumns: ["id"];
22139
22347
  },
22140
- {
22141
- foreignKeyName: "product_packings_product_id_fkey";
22142
- columns: ["product_id"];
22143
- isOneToOne: false;
22144
- referencedRelation: "logistics_product_dimensions";
22145
- referencedColumns: ["product_id"];
22146
- },
22147
22348
  {
22148
22349
  foreignKeyName: "product_packings_product_id_fkey";
22149
22350
  columns: ["product_id"];
@@ -22203,13 +22404,6 @@ export type Database = {
22203
22404
  updated_at?: string;
22204
22405
  };
22205
22406
  Relationships: [
22206
- {
22207
- foreignKeyName: "product_suppliers_product_id_fkey";
22208
- columns: ["product_id"];
22209
- isOneToOne: false;
22210
- referencedRelation: "logistics_product_dimensions";
22211
- referencedColumns: ["product_id"];
22212
- },
22213
22407
  {
22214
22408
  foreignKeyName: "product_suppliers_product_id_fkey";
22215
22409
  columns: ["product_id"];
@@ -22255,13 +22449,6 @@ export type Database = {
22255
22449
  updated_at?: string;
22256
22450
  };
22257
22451
  Relationships: [
22258
- {
22259
- foreignKeyName: "product_tray_stickers_product_id_fkey";
22260
- columns: ["product_id"];
22261
- isOneToOne: true;
22262
- referencedRelation: "logistics_product_dimensions";
22263
- referencedColumns: ["product_id"];
22264
- },
22265
22452
  {
22266
22453
  foreignKeyName: "product_tray_stickers_product_id_fkey";
22267
22454
  columns: ["product_id"];
@@ -22884,13 +23071,6 @@ export type Database = {
22884
23071
  updated_at?: string;
22885
23072
  };
22886
23073
  Relationships: [
22887
- {
22888
- foreignKeyName: "purchase_order_items_product_id_fkey";
22889
- columns: ["product_id"];
22890
- isOneToOne: false;
22891
- referencedRelation: "logistics_product_dimensions";
22892
- referencedColumns: ["product_id"];
22893
- },
22894
23074
  {
22895
23075
  foreignKeyName: "purchase_order_items_product_id_fkey";
22896
23076
  columns: ["product_id"];
@@ -25993,6 +26173,8 @@ export type Database = {
25993
26173
  twinfield_invoice_settings: {
25994
26174
  Row: {
25995
26175
  administration_code: string | null;
26176
+ auto_invoice_config_error: string | null;
26177
+ auto_invoice_config_error_at: string | null;
25996
26178
  auto_invoice_enabled: boolean;
25997
26179
  auto_invoice_start_date: string | null;
25998
26180
  auto_invoice_trigger_statuses: string[];
@@ -26022,6 +26204,8 @@ export type Database = {
26022
26204
  };
26023
26205
  Insert: {
26024
26206
  administration_code?: string | null;
26207
+ auto_invoice_config_error?: string | null;
26208
+ auto_invoice_config_error_at?: string | null;
26025
26209
  auto_invoice_enabled?: boolean;
26026
26210
  auto_invoice_start_date?: string | null;
26027
26211
  auto_invoice_trigger_statuses?: string[];
@@ -26051,6 +26235,8 @@ export type Database = {
26051
26235
  };
26052
26236
  Update: {
26053
26237
  administration_code?: string | null;
26238
+ auto_invoice_config_error?: string | null;
26239
+ auto_invoice_config_error_at?: string | null;
26054
26240
  auto_invoice_enabled?: boolean;
26055
26241
  auto_invoice_start_date?: string | null;
26056
26242
  auto_invoice_trigger_statuses?: string[];
@@ -26644,6 +26830,7 @@ export type Database = {
26644
26830
  default_language: string | null;
26645
26831
  default_language_at: string | null;
26646
26832
  default_language_source: string | null;
26833
+ hourly_call_threshold: number;
26647
26834
  nightly_full_scan_cron: string;
26648
26835
  payment_term_min_invoices: number;
26649
26836
  payment_term_min_share: number;
@@ -26684,6 +26871,7 @@ export type Database = {
26684
26871
  default_language?: string | null;
26685
26872
  default_language_at?: string | null;
26686
26873
  default_language_source?: string | null;
26874
+ hourly_call_threshold?: number;
26687
26875
  nightly_full_scan_cron?: string;
26688
26876
  payment_term_min_invoices?: number;
26689
26877
  payment_term_min_share?: number;
@@ -26724,6 +26912,7 @@ export type Database = {
26724
26912
  default_language?: string | null;
26725
26913
  default_language_at?: string | null;
26726
26914
  default_language_source?: string | null;
26915
+ hourly_call_threshold?: number;
26727
26916
  nightly_full_scan_cron?: string;
26728
26917
  payment_term_min_invoices?: number;
26729
26918
  payment_term_min_share?: number;
@@ -27767,6 +27956,99 @@ export type Database = {
27767
27956
  };
27768
27957
  Relationships: [];
27769
27958
  };
27959
+ verkoop_engine_event_log: {
27960
+ Row: {
27961
+ created_at: string;
27962
+ event_type: string | null;
27963
+ id: string;
27964
+ ok: boolean;
27965
+ order_id: string | null;
27966
+ reason: string | null;
27967
+ user_id: string | null;
27968
+ };
27969
+ Insert: {
27970
+ created_at?: string;
27971
+ event_type?: string | null;
27972
+ id?: string;
27973
+ ok: boolean;
27974
+ order_id?: string | null;
27975
+ reason?: string | null;
27976
+ user_id?: string | null;
27977
+ };
27978
+ Update: {
27979
+ created_at?: string;
27980
+ event_type?: string | null;
27981
+ id?: string;
27982
+ ok?: boolean;
27983
+ order_id?: string | null;
27984
+ reason?: string | null;
27985
+ user_id?: string | null;
27986
+ };
27987
+ Relationships: [];
27988
+ };
27989
+ verkoop_fulfillment_index: {
27990
+ Row: {
27991
+ changed_at: string;
27992
+ delivery_note_codes: string[];
27993
+ fulfillment_id: string;
27994
+ is_deleted: boolean;
27995
+ packages: number;
27996
+ received: boolean;
27997
+ received_at: string | null;
27998
+ sales_order_id: string;
27999
+ status: string | null;
28000
+ };
28001
+ Insert: {
28002
+ changed_at?: string;
28003
+ delivery_note_codes?: string[];
28004
+ fulfillment_id: string;
28005
+ is_deleted?: boolean;
28006
+ packages?: number;
28007
+ received?: boolean;
28008
+ received_at?: string | null;
28009
+ sales_order_id: string;
28010
+ status?: string | null;
28011
+ };
28012
+ Update: {
28013
+ changed_at?: string;
28014
+ delivery_note_codes?: string[];
28015
+ fulfillment_id?: string;
28016
+ is_deleted?: boolean;
28017
+ packages?: number;
28018
+ received?: boolean;
28019
+ received_at?: string | null;
28020
+ sales_order_id?: string;
28021
+ status?: string | null;
28022
+ };
28023
+ Relationships: [];
28024
+ };
28025
+ verkoop_sync_state: {
28026
+ Row: {
28027
+ ensure_cron_at: string | null;
28028
+ full_run_at: string | null;
28029
+ key: string;
28030
+ last_seen_at: string | null;
28031
+ rebuilt_at: string | null;
28032
+ updated_at: string;
28033
+ };
28034
+ Insert: {
28035
+ ensure_cron_at?: string | null;
28036
+ full_run_at?: string | null;
28037
+ key: string;
28038
+ last_seen_at?: string | null;
28039
+ rebuilt_at?: string | null;
28040
+ updated_at?: string;
28041
+ };
28042
+ Update: {
28043
+ ensure_cron_at?: string | null;
28044
+ full_run_at?: string | null;
28045
+ key?: string;
28046
+ last_seen_at?: string | null;
28047
+ rebuilt_at?: string | null;
28048
+ updated_at?: string;
28049
+ };
28050
+ Relationships: [];
28051
+ };
27770
28052
  voorraad_buffer_state: {
27771
28053
  Row: {
27772
28054
  buffer_id: string;
@@ -30545,6 +30827,34 @@ export type Database = {
30545
30827
  Args: never;
30546
30828
  Returns: boolean;
30547
30829
  };
30830
+ _layouts_toegang_besluit: {
30831
+ Args: {
30832
+ p_alleen_beheer: boolean;
30833
+ p_beheerder: boolean;
30834
+ p_ingelogd: boolean;
30835
+ p_request_path: string;
30836
+ p_server: boolean;
30837
+ };
30838
+ Returns: string;
30839
+ };
30840
+ _layouts_toegang_functie: {
30841
+ Args: {
30842
+ p_functie: string;
30843
+ p_niveau: string;
30844
+ };
30845
+ Returns: undefined;
30846
+ };
30847
+ _layouts_toegang_functie_besluit: {
30848
+ Args: {
30849
+ p_beheerder: boolean;
30850
+ p_functie: string;
30851
+ p_ingelogd: boolean;
30852
+ p_niveau: string;
30853
+ p_request_path: string;
30854
+ p_server: boolean;
30855
+ };
30856
+ Returns: string;
30857
+ };
30548
30858
  _layouts_toegang_server_of_ingelogd: {
30549
30859
  Args: {
30550
30860
  p_alleen_beheer: boolean;
@@ -30565,6 +30875,10 @@ export type Database = {
30565
30875
  };
30566
30876
  Returns: boolean;
30567
30877
  };
30878
+ _pick_printstatus_via_engine: {
30879
+ Args: never;
30880
+ Returns: boolean;
30881
+ };
30568
30882
  _pick_station_for_cart: {
30569
30883
  Args: {
30570
30884
  p_cart_id: string;
@@ -31298,6 +31612,7 @@ export type Database = {
31298
31612
  pdf_url: string | null;
31299
31613
  pogingen: number;
31300
31614
  printer_id: string | null;
31615
+ printer_keuze: Json | null;
31301
31616
  printnode_bericht: string | null;
31302
31617
  printnode_status: string | null;
31303
31618
  printnode_status_op: string | null;
@@ -31497,6 +31812,7 @@ export type Database = {
31497
31812
  pdf_url: string | null;
31498
31813
  pogingen: number;
31499
31814
  printer_id: string | null;
31815
+ printer_keuze: Json | null;
31500
31816
  printnode_bericht: string | null;
31501
31817
  printnode_status: string | null;
31502
31818
  printnode_status_op: string | null;
@@ -31566,6 +31882,7 @@ export type Database = {
31566
31882
  pdf_url: string | null;
31567
31883
  pogingen: number;
31568
31884
  printer_id: string | null;
31885
+ printer_keuze: Json | null;
31569
31886
  printnode_bericht: string | null;
31570
31887
  printnode_status: string | null;
31571
31888
  printnode_status_op: string | null;
@@ -32129,6 +32446,28 @@ export type Database = {
32129
32446
  };
32130
32447
  Returns: boolean;
32131
32448
  };
32449
+ facturatie_auto_invoice_checks: {
32450
+ Args: never;
32451
+ Returns: Json;
32452
+ };
32453
+ facturatie_auto_invoice_route_seen: {
32454
+ Args: never;
32455
+ Returns: undefined;
32456
+ };
32457
+ facturatie_auto_invoice_set_config_error: {
32458
+ Args: {
32459
+ _msg: string;
32460
+ };
32461
+ Returns: undefined;
32462
+ };
32463
+ facturatie_ensure_cron: {
32464
+ Args: never;
32465
+ Returns: string;
32466
+ };
32467
+ facturatie_ensure_runtime: {
32468
+ Args: never;
32469
+ Returns: string;
32470
+ };
32132
32471
  find_trade_item_key: {
32133
32472
  Args: {
32134
32473
  p_barcode: string;
@@ -33379,6 +33718,15 @@ export type Database = {
33379
33718
  };
33380
33719
  Returns: Json;
33381
33720
  };
33721
+ klanten_ensure_cron: {
33722
+ Args: never;
33723
+ Returns: Json;
33724
+ } | {
33725
+ Args: {
33726
+ p_alleen_bijwerken: boolean;
33727
+ };
33728
+ Returns: Json;
33729
+ };
33382
33730
  klanten_install_check: {
33383
33731
  Args: never;
33384
33732
  Returns: Json;
@@ -33491,6 +33839,39 @@ export type Database = {
33491
33839
  rijen: number;
33492
33840
  }[];
33493
33841
  };
33842
+ layouts_install_check: {
33843
+ Args: never;
33844
+ Returns: Json;
33845
+ };
33846
+ layouts_kies_sticker_route: {
33847
+ Args: {
33848
+ p_a4_printer: string;
33849
+ p_a4_vel: Json;
33850
+ p_etiketten: Json;
33851
+ p_heeft_barcode: boolean;
33852
+ p_instelling: Json;
33853
+ p_sticker_breedte_mm: number;
33854
+ p_sticker_hoogte_mm: number;
33855
+ };
33856
+ Returns: Json;
33857
+ };
33858
+ layouts_origineel_bron: {
33859
+ Args: {
33860
+ p_documenttype: string;
33861
+ p_payload: Json;
33862
+ };
33863
+ Returns: string;
33864
+ };
33865
+ layouts_sticker_verkleinen: {
33866
+ Args: never;
33867
+ Returns: Json;
33868
+ };
33869
+ layouts_vrijgeven_vastgelopen: {
33870
+ Args: {
33871
+ p_houder: string;
33872
+ };
33873
+ Returns: number;
33874
+ };
33494
33875
  layouts_vroege_sticker_waarschuwing: {
33495
33876
  Args: {
33496
33877
  p_tot: string;
@@ -33502,6 +33883,14 @@ export type Database = {
33502
33883
  Args: never;
33503
33884
  Returns: Json;
33504
33885
  };
33886
+ layouts_zorg_voor_sticker_verkleinen: {
33887
+ Args: never;
33888
+ Returns: Json;
33889
+ };
33890
+ layouts_zorg_voor_wachtrij_instellingen: {
33891
+ Args: never;
33892
+ Returns: Json;
33893
+ };
33505
33894
  list_medewerkers: {
33506
33895
  Args: never;
33507
33896
  Returns: {
@@ -33601,6 +33990,17 @@ export type Database = {
33601
33990
  };
33602
33991
  Returns: boolean;
33603
33992
  };
33993
+ logistics_aanmeldmoment: {
33994
+ Args: {
33995
+ p_order_ids: string[];
33996
+ };
33997
+ Returns: {
33998
+ aanmeld_at: string;
33999
+ bron: string;
34000
+ order_id: string;
34001
+ tekst: string;
34002
+ }[];
34003
+ };
33604
34004
  logistics_acc_direct: {
33605
34005
  Args: {
33606
34006
  p_fn: string;
@@ -33731,6 +34131,18 @@ export type Database = {
33731
34131
  reason_code: string;
33732
34132
  }[];
33733
34133
  };
34134
+ logistics_artikel_vbn: {
34135
+ Args: {
34136
+ p_product_id: string;
34137
+ };
34138
+ Returns: Json;
34139
+ };
34140
+ logistics_artikel_vbn_terugval: {
34141
+ Args: {
34142
+ p_product_id: string;
34143
+ };
34144
+ Returns: Json;
34145
+ };
33734
34146
  logistics_auto_send_claim: {
33735
34147
  Args: {
33736
34148
  p_limit?: number;
@@ -33832,6 +34244,13 @@ export type Database = {
33832
34244
  Args: never;
33833
34245
  Returns: string;
33834
34246
  };
34247
+ logistics_belading_waarschuwingen_zet: {
34248
+ Args: {
34249
+ p_items: Json;
34250
+ p_order_ids: string[];
34251
+ };
34252
+ Returns: number;
34253
+ };
33835
34254
  logistics_belading_wacht: {
33836
34255
  Args: {
33837
34256
  p_order_id?: string;
@@ -33845,6 +34264,10 @@ export type Database = {
33845
34264
  sleutel: string;
33846
34265
  }[];
33847
34266
  };
34267
+ logistics_bewaak_zonder_kar: {
34268
+ Args: never;
34269
+ Returns: Json;
34270
+ };
33848
34271
  logistics_block_reason_code: {
33849
34272
  Args: {
33850
34273
  p_details?: Json;
@@ -34703,10 +35126,70 @@ export type Database = {
34703
35126
  Args: never;
34704
35127
  Returns: Json;
34705
35128
  };
35129
+ logistics_correctie_buffers_geannuleerd: {
35130
+ Args: {
35131
+ p_uitvoeren?: boolean;
35132
+ };
35133
+ Returns: {
35134
+ actieve_karren: number;
35135
+ andere_open_orders: string;
35136
+ buffer_id: string;
35137
+ order_id: string;
35138
+ order_number: string;
35139
+ reden: string;
35140
+ uitgevoerd: boolean;
35141
+ }[];
35142
+ };
35143
+ logistics_correctie_laagaandeel: {
35144
+ Args: {
35145
+ p_uitvoeren?: boolean;
35146
+ };
35147
+ Returns: {
35148
+ cart_id: string;
35149
+ fusten: number;
35150
+ fusten_per_laag: number;
35151
+ huidig: number;
35152
+ item_id: string;
35153
+ nieuw_lagen: number;
35154
+ nieuw_layer_fraction: number;
35155
+ orders: string;
35156
+ uitgevoerd: boolean;
35157
+ }[];
35158
+ };
34706
35159
  logistics_cron_health: {
34707
35160
  Args: never;
34708
35161
  Returns: Json;
34709
35162
  };
35163
+ logistics_data_gereedheid: {
35164
+ Args: {
35165
+ p_product_ids?: string[];
35166
+ };
35167
+ Returns: {
35168
+ in_open_order: boolean;
35169
+ ladingdrager: string;
35170
+ methode: string;
35171
+ ontbrekend: string[];
35172
+ product: string;
35173
+ product_id: string;
35174
+ uitleg: string;
35175
+ velden: Json;
35176
+ voorstel: Json;
35177
+ }[];
35178
+ };
35179
+ logistics_data_overnemen: {
35180
+ Args: {
35181
+ p_uitvoeren: boolean;
35182
+ };
35183
+ Returns: Json;
35184
+ };
35185
+ logistics_data_vul_in: {
35186
+ Args: {
35187
+ p_product_id: string;
35188
+ p_veld: string;
35189
+ p_waarde: number;
35190
+ };
35191
+ Returns: Json;
35192
+ };
34710
35193
  logistics_day_windows: {
34711
35194
  Args: {
34712
35195
  p_day: string;
@@ -34809,6 +35292,14 @@ export type Database = {
34809
35292
  order_item_id: string;
34810
35293
  }[];
34811
35294
  };
35295
+ logistics_dubbele_pakbonnamen: {
35296
+ Args: never;
35297
+ Returns: {
35298
+ aantal: number;
35299
+ document_number: string;
35300
+ karren: string[];
35301
+ }[];
35302
+ };
34812
35303
  logistics_emit_event: {
34813
35304
  Args: {
34814
35305
  p_event_type: string;
@@ -34850,6 +35341,10 @@ export type Database = {
34850
35341
  };
34851
35342
  Returns: string;
34852
35343
  };
35344
+ logistics_ensure_periodiek: {
35345
+ Args: never;
35346
+ Returns: Json;
35347
+ };
34853
35348
  logistics_ensure_pick_data: {
34854
35349
  Args: {
34855
35350
  p_event_id?: string;
@@ -34858,6 +35353,10 @@ export type Database = {
34858
35353
  };
34859
35354
  Returns: Json;
34860
35355
  };
35356
+ logistics_ensure_rebuffer_setting: {
35357
+ Args: never;
35358
+ Returns: number;
35359
+ };
34861
35360
  logistics_ensure_runtime_defaults: {
34862
35361
  Args: never;
34863
35362
  Returns: undefined;
@@ -34868,6 +35367,10 @@ export type Database = {
34868
35367
  };
34869
35368
  Returns: Json;
34870
35369
  };
35370
+ logistics_ensure_tick_settings: {
35371
+ Args: never;
35372
+ Returns: Json;
35373
+ };
34871
35374
  logistics_expand_line: {
34872
35375
  Args: {
34873
35376
  p_depth?: number;
@@ -35139,6 +35642,37 @@ export type Database = {
35139
35642
  Args: never;
35140
35643
  Returns: number;
35141
35644
  };
35645
+ logistics_fust_maten: {
35646
+ Args: never;
35647
+ Returns: {
35648
+ breedte_bron: string;
35649
+ fust_key: string;
35650
+ fust_type_id: string;
35651
+ height_mm: number;
35652
+ hoogte_bron: string;
35653
+ lengte_bron: string;
35654
+ length_mm: number;
35655
+ name: string;
35656
+ pad: string;
35657
+ vbn_code: number;
35658
+ width_mm: number;
35659
+ }[];
35660
+ };
35661
+ logistics_fust_maten_terugval: {
35662
+ Args: never;
35663
+ Returns: {
35664
+ breedte_bron: string;
35665
+ fust_key: string;
35666
+ fust_type_id: string;
35667
+ height_mm: number;
35668
+ hoogte_bron: string;
35669
+ lengte_bron: string;
35670
+ length_mm: number;
35671
+ name: string;
35672
+ vbn_code: number;
35673
+ width_mm: number;
35674
+ }[];
35675
+ };
35142
35676
  logistics_install_check: {
35143
35677
  Args: never;
35144
35678
  Returns: {
@@ -35147,6 +35681,38 @@ export type Database = {
35147
35681
  toelichting: string;
35148
35682
  }[];
35149
35683
  };
35684
+ logistics_install_check_194: {
35685
+ Args: never;
35686
+ Returns: {
35687
+ ok: boolean;
35688
+ onderdeel: string;
35689
+ toelichting: string;
35690
+ }[];
35691
+ };
35692
+ logistics_install_check_196: {
35693
+ Args: never;
35694
+ Returns: {
35695
+ controle: string;
35696
+ ok: boolean;
35697
+ toelichting: string;
35698
+ }[];
35699
+ };
35700
+ logistics_install_check_197: {
35701
+ Args: never;
35702
+ Returns: {
35703
+ controle: string;
35704
+ ok: boolean;
35705
+ toelichting: string;
35706
+ }[];
35707
+ };
35708
+ logistics_install_check_198: {
35709
+ Args: never;
35710
+ Returns: {
35711
+ controle: string;
35712
+ ok: boolean;
35713
+ toelichting: string;
35714
+ }[];
35715
+ };
35150
35716
  logistics_is_beheer: {
35151
35717
  Args: never;
35152
35718
  Returns: boolean;
@@ -35183,6 +35749,61 @@ export type Database = {
35183
35749
  };
35184
35750
  Returns: string;
35185
35751
  };
35752
+ logistics_kick_metingen: {
35753
+ Args: {
35754
+ p_limit: number;
35755
+ };
35756
+ Returns: {
35757
+ antwoord_at: string;
35758
+ fout: string;
35759
+ kicked_at: string;
35760
+ request_id: number;
35761
+ round_started_at: string;
35762
+ skipped_reason: string;
35763
+ status_code: number;
35764
+ time_out: boolean;
35765
+ wacht_tot_antwoord_ms: number;
35766
+ wacht_tot_ronde_ms: number;
35767
+ }[];
35768
+ };
35769
+ logistics_kick_pending_take: {
35770
+ Args: {
35771
+ p_since: string;
35772
+ };
35773
+ Returns: boolean;
35774
+ };
35775
+ logistics_kick_round_start: {
35776
+ Args: never;
35777
+ Returns: number;
35778
+ };
35779
+ logistics_ladingdrager_referentie: {
35780
+ Args: never;
35781
+ Returns: {
35782
+ breedte_cm: number;
35783
+ bron: string;
35784
+ floriday_code: string;
35785
+ lengte_cm: number;
35786
+ }[];
35787
+ };
35788
+ logistics_ladingdrager_voorstel_bevestigen: {
35789
+ Args: {
35790
+ p_code: string;
35791
+ };
35792
+ Returns: Json;
35793
+ };
35794
+ logistics_ladingdrager_voorstellen: {
35795
+ Args: never;
35796
+ Returns: {
35797
+ actie: string;
35798
+ bron: string;
35799
+ code: string;
35800
+ floriday_code: string;
35801
+ huidig: number;
35802
+ naam: string;
35803
+ veld: string;
35804
+ voorstel: number;
35805
+ }[];
35806
+ };
35186
35807
  logistics_layout_method_status: {
35187
35808
  Args: never;
35188
35809
  Returns: Json;
@@ -35283,6 +35904,15 @@ export type Database = {
35283
35904
  };
35284
35905
  Returns: string;
35285
35906
  };
35907
+ logistics_open_orders_zonder_kar: {
35908
+ Args: never;
35909
+ Returns: {
35910
+ delivery_date: string;
35911
+ laatste_reden: string;
35912
+ order_id: string;
35913
+ order_number: string;
35914
+ }[];
35915
+ };
35286
35916
  logistics_opening_timezone: {
35287
35917
  Args: never;
35288
35918
  Returns: string;
@@ -35305,6 +35935,18 @@ export type Database = {
35305
35935
  };
35306
35936
  Returns: Json;
35307
35937
  };
35938
+ logistics_order_backlog_info_many: {
35939
+ Args: {
35940
+ p_order_ids: string[];
35941
+ };
35942
+ Returns: {
35943
+ achterstand: boolean;
35944
+ dagen: number;
35945
+ info: Json;
35946
+ leverdatum: string;
35947
+ order_id: string;
35948
+ }[];
35949
+ };
35308
35950
  logistics_order_buffer_excluded: {
35309
35951
  Args: {
35310
35952
  p_order_id: string;
@@ -35363,6 +36005,21 @@ export type Database = {
35363
36005
  };
35364
36006
  Returns: string[];
35365
36007
  };
36008
+ logistics_order_date: {
36009
+ Args: {
36010
+ p: string;
36011
+ };
36012
+ Returns: {
36013
+ error: true;
36014
+ } & "Could not choose the best candidate function between: public.logistics_order_date(p => text), public.logistics_order_date(p => date). Try renaming the parameters or the function itself in the database so function overloading can be resolved";
36015
+ } | {
36016
+ Args: {
36017
+ p: string;
36018
+ };
36019
+ Returns: {
36020
+ error: true;
36021
+ } & "Could not choose the best candidate function between: public.logistics_order_date(p => text), public.logistics_order_date(p => date). Try renaming the parameters or the function itself in the database so function overloading can be resolved";
36022
+ };
35366
36023
  logistics_order_definitively_blocked: {
35367
36024
  Args: {
35368
36025
  p_order_id: string;
@@ -35464,6 +36121,12 @@ export type Database = {
35464
36121
  };
35465
36122
  Returns: boolean;
35466
36123
  };
36124
+ logistics_order_geannuleerd: {
36125
+ Args: {
36126
+ p_order_id: string;
36127
+ };
36128
+ Returns: boolean;
36129
+ };
35467
36130
  logistics_order_handled: {
35468
36131
  Args: {
35469
36132
  p_order_uuid: string;
@@ -35612,6 +36275,12 @@ export type Database = {
35612
36275
  };
35613
36276
  Returns: Json;
35614
36277
  };
36278
+ logistics_order_print_actief: {
36279
+ Args: {
36280
+ p_order_number: string;
36281
+ };
36282
+ Returns: boolean;
36283
+ };
35615
36284
  logistics_order_released: {
35616
36285
  Args: {
35617
36286
  p_order_ref: string;
@@ -35624,6 +36293,32 @@ export type Database = {
35624
36293
  };
35625
36294
  Returns: Json;
35626
36295
  };
36296
+ logistics_order_unit_carts: {
36297
+ Args: {
36298
+ p_order_ids: string[];
36299
+ };
36300
+ Returns: {
36301
+ buffer_id: string;
36302
+ cart_id: string;
36303
+ cart_number: number;
36304
+ display_seq: number;
36305
+ display_total: number;
36306
+ order_id: string;
36307
+ }[];
36308
+ };
36309
+ logistics_order_unit_carts_core: {
36310
+ Args: {
36311
+ p_order_ids: string[];
36312
+ };
36313
+ Returns: {
36314
+ buffer_id: string;
36315
+ cart_id: string;
36316
+ cart_number: number;
36317
+ display_seq: number;
36318
+ display_total: number;
36319
+ order_id: string;
36320
+ }[];
36321
+ };
35627
36322
  logistics_orphan_carts_list: {
35628
36323
  Args: never;
35629
36324
  Returns: Json;
@@ -35820,6 +36515,21 @@ export type Database = {
35820
36515
  unit_ref: string;
35821
36516
  }[];
35822
36517
  };
36518
+ logistics_pick_voorbeeld_layout: {
36519
+ Args: {
36520
+ p_queue_ids: string[];
36521
+ };
36522
+ Returns: {
36523
+ breedte_mm: number;
36524
+ documentsoort: string;
36525
+ hoogte_mm: number;
36526
+ layout_id: string;
36527
+ layout_naam: string;
36528
+ ok: boolean;
36529
+ queue_id: string;
36530
+ reden: string;
36531
+ }[];
36532
+ };
35823
36533
  logistics_pickup_moments_today: {
35824
36534
  Args: never;
35825
36535
  Returns: Json;
@@ -35959,6 +36669,12 @@ export type Database = {
35959
36669
  };
35960
36670
  Returns: undefined;
35961
36671
  };
36672
+ logistics_plan_now_gate: {
36673
+ Args: {
36674
+ p_order_ids: string[];
36675
+ };
36676
+ Returns: Json;
36677
+ };
35962
36678
  logistics_plan_progress: {
35963
36679
  Args: {
35964
36680
  p_refs: string[];
@@ -36110,6 +36826,12 @@ export type Database = {
36110
36826
  unit_kind: string;
36111
36827
  }[];
36112
36828
  };
36829
+ logistics_pos_num: {
36830
+ Args: {
36831
+ p: string;
36832
+ };
36833
+ Returns: number;
36834
+ };
36113
36835
  logistics_prepare_pick_documents: {
36114
36836
  Args: {
36115
36837
  p_limit?: number;
@@ -36122,6 +36844,19 @@ export type Database = {
36122
36844
  };
36123
36845
  Returns: string;
36124
36846
  };
36847
+ logistics_print_status: {
36848
+ Args: {
36849
+ p_queue_item_ids: string[];
36850
+ };
36851
+ Returns: {
36852
+ fase: string;
36853
+ fase_gestart_op: string;
36854
+ melding: string;
36855
+ printnode_status: string;
36856
+ queue_item_id: string;
36857
+ status: string;
36858
+ }[];
36859
+ };
36125
36860
  logistics_print_via_layout: {
36126
36861
  Args: {
36127
36862
  _documentnaam: string;
@@ -36137,6 +36872,31 @@ export type Database = {
36137
36872
  };
36138
36873
  Returns: Json;
36139
36874
  };
36875
+ logistics_product_maten: {
36876
+ Args: {
36877
+ p_product_ids: string[];
36878
+ };
36879
+ Returns: {
36880
+ breedte_bron: string;
36881
+ fust_bron: string;
36882
+ fust_height_mm: number;
36883
+ fust_length_mm: number;
36884
+ fust_name: string;
36885
+ fust_type_id: string;
36886
+ fust_width_mm: number;
36887
+ height_source: string;
36888
+ hoogte_bron: string;
36889
+ lengte_bron: string;
36890
+ missing_reason: string;
36891
+ pad_artikel: string;
36892
+ pad_fust: string;
36893
+ plant_height_cm: number;
36894
+ plants_per_crate: number;
36895
+ product_id: string;
36896
+ product_name: string;
36897
+ weight_kg: number;
36898
+ }[];
36899
+ };
36140
36900
  logistics_prune_buffer_member_queue: {
36141
36901
  Args: never;
36142
36902
  Returns: number;
@@ -36173,6 +36933,10 @@ export type Database = {
36173
36933
  Args: never;
36174
36934
  Returns: number;
36175
36935
  };
36936
+ logistics_rebuffer_aan: {
36937
+ Args: never;
36938
+ Returns: boolean;
36939
+ };
36176
36940
  logistics_rebuffer_candidates: {
36177
36941
  Args: never;
36178
36942
  Returns: {
@@ -36212,6 +36976,12 @@ export type Database = {
36212
36976
  reason: string;
36213
36977
  }[];
36214
36978
  };
36979
+ logistics_rebuffer_vastgezet: {
36980
+ Args: {
36981
+ p_order_id: string;
36982
+ };
36983
+ Returns: boolean;
36984
+ };
36215
36985
  logistics_recalc_tick_kick: {
36216
36986
  Args: never;
36217
36987
  Returns: number;
@@ -36244,6 +37014,10 @@ export type Database = {
36244
37014
  };
36245
37015
  Returns: Json;
36246
37016
  };
37017
+ logistics_refresh_plan_state_als_nodig: {
37018
+ Args: never;
37019
+ Returns: Json;
37020
+ };
36247
37021
  logistics_register_tick_apikey: {
36248
37022
  Args: {
36249
37023
  p_key: string;
@@ -36532,6 +37306,17 @@ export type Database = {
36532
37306
  };
36533
37307
  Returns: Json;
36534
37308
  };
37309
+ logistics_schedule_global_fp: {
37310
+ Args: never;
37311
+ Returns: string;
37312
+ };
37313
+ logistics_schedule_order_fp: {
37314
+ Args: {
37315
+ p_global: string;
37316
+ p_order_ref: string;
37317
+ };
37318
+ Returns: string;
37319
+ };
36535
37320
  logistics_schedule_tasks: {
36536
37321
  Args: never;
36537
37322
  Returns: number;
@@ -36541,6 +37326,12 @@ export type Database = {
36541
37326
  };
36542
37327
  Returns: number;
36543
37328
  };
37329
+ logistics_schedule_tasks_batch: {
37330
+ Args: {
37331
+ p_opties: Json;
37332
+ };
37333
+ Returns: Json;
37334
+ };
36544
37335
  logistics_set_components_scaled: {
36545
37336
  Args: {
36546
37337
  p_order_item_id: string;
@@ -36780,6 +37571,10 @@ export type Database = {
36780
37571
  };
36781
37572
  Returns: undefined;
36782
37573
  };
37574
+ logistics_startlijst: {
37575
+ Args: never;
37576
+ Returns: Json;
37577
+ };
36783
37578
  logistics_status_after_shipping: {
36784
37579
  Args: {
36785
37580
  p_status: string;
@@ -36870,6 +37665,12 @@ export type Database = {
36870
37665
  };
36871
37666
  Returns: number[];
36872
37667
  };
37668
+ logistics_sticker_retry: {
37669
+ Args: {
37670
+ p_id: string;
37671
+ };
37672
+ Returns: Json;
37673
+ };
36873
37674
  logistics_sticker_sync: {
36874
37675
  Args: {
36875
37676
  p_limit?: number;
@@ -36992,6 +37793,12 @@ export type Database = {
36992
37793
  Args: never;
36993
37794
  Returns: Json;
36994
37795
  };
37796
+ logistics_tick_http_log: {
37797
+ Args: {
37798
+ p_steps: Json;
37799
+ };
37800
+ Returns: undefined;
37801
+ };
36995
37802
  logistics_tick_ping: {
36996
37803
  Args: never;
36997
37804
  Returns: string;
@@ -37000,6 +37807,10 @@ export type Database = {
37000
37807
  Args: never;
37001
37808
  Returns: number;
37002
37809
  };
37810
+ logistics_tick_timeout_ms: {
37811
+ Args: never;
37812
+ Returns: number;
37813
+ };
37003
37814
  logistics_timezone_options: {
37004
37815
  Args: never;
37005
37816
  Returns: {
@@ -37231,6 +38042,13 @@ export type Database = {
37231
38042
  };
37232
38043
  Returns: boolean;
37233
38044
  };
38045
+ logistics_vbn_cm: {
38046
+ Args: {
38047
+ p_code: string;
38048
+ p_feature: string;
38049
+ };
38050
+ Returns: number;
38051
+ };
37234
38052
  logistics_verkoop_order_link: {
37235
38053
  Args: {
37236
38054
  p_order_id: string;
@@ -39140,6 +39958,10 @@ export type Database = {
39140
39958
  Args: never;
39141
39959
  Returns: Json;
39142
39960
  };
39961
+ pickschermen_missing_objects: {
39962
+ Args: never;
39963
+ Returns: string[];
39964
+ };
39143
39965
  pickstation_auto_send_status: {
39144
39966
  Args: {
39145
39967
  p_device_key: string;
@@ -39168,6 +39990,20 @@ export type Database = {
39168
39990
  };
39169
39991
  Returns: Json;
39170
39992
  };
39993
+ pickstation_cart_sticker_states: {
39994
+ Args: {
39995
+ p_cart_ids: string[];
39996
+ p_device_key: string;
39997
+ p_slug: string;
39998
+ };
39999
+ Returns: Json;
40000
+ } | {
40001
+ Args: {
40002
+ p_cart_ids: string[];
40003
+ p_slug: string;
40004
+ };
40005
+ Returns: Json;
40006
+ };
39171
40007
  pickstation_device_status: {
39172
40008
  Args: {
39173
40009
  p_device_key: string;
@@ -39360,6 +40196,20 @@ export type Database = {
39360
40196
  };
39361
40197
  Returns: Json;
39362
40198
  };
40199
+ pickstation_print_status: {
40200
+ Args: {
40201
+ p_device_key: string;
40202
+ p_queue_item_ids: string[];
40203
+ p_slug: string;
40204
+ };
40205
+ Returns: Json;
40206
+ } | {
40207
+ Args: {
40208
+ p_queue_item_ids: string[];
40209
+ p_slug: string;
40210
+ };
40211
+ Returns: Json;
40212
+ };
39363
40213
  pickstation_resolve_delivery_orders: {
39364
40214
  Args: {
39365
40215
  p_device_key: string;
@@ -41289,6 +42139,20 @@ export type Database = {
41289
42139
  };
41290
42140
  Returns: boolean;
41291
42141
  };
42142
+ twinfield_add_request_metrics: {
42143
+ Args: {
42144
+ p_bucket_hour: string;
42145
+ p_clientid_limit?: number;
42146
+ p_clientid_remaining?: number;
42147
+ p_connection_id: string;
42148
+ p_errors: number;
42149
+ p_rate_limit_limit?: number;
42150
+ p_rate_limit_remaining?: number;
42151
+ p_rate_limited: number;
42152
+ p_requests: number;
42153
+ };
42154
+ Returns: undefined;
42155
+ };
41292
42156
  twinfield_assert_caller: {
41293
42157
  Args: {
41294
42158
  p_level: string;
@@ -41344,6 +42208,14 @@ export type Database = {
41344
42208
  user_id: string;
41345
42209
  }[];
41346
42210
  };
42211
+ twinfield_cron_jobs_spec: {
42212
+ Args: never;
42213
+ Returns: {
42214
+ command: string;
42215
+ jobname: string;
42216
+ schedule: string;
42217
+ }[];
42218
+ };
41347
42219
  twinfield_cron_lock_acquire: {
41348
42220
  Args: {
41349
42221
  _job_name: string;
@@ -41365,6 +42237,10 @@ export type Database = {
41365
42237
  };
41366
42238
  Returns: Json;
41367
42239
  };
42240
+ twinfield_ensure_cron: {
42241
+ Args: never;
42242
+ Returns: Json;
42243
+ };
41368
42244
  twinfield_facturatie_assert_server: {
41369
42245
  Args: {
41370
42246
  _functie: string;
@@ -42036,6 +42912,23 @@ export type Database = {
42036
42912
  };
42037
42913
  Returns: Json;
42038
42914
  };
42915
+ verkoop_ensure_cron: {
42916
+ Args: never;
42917
+ Returns: Json;
42918
+ };
42919
+ verkoop_fulfillment_index_apply: {
42920
+ Args: {
42921
+ p_data: Json;
42922
+ p_fulfillment_id: string;
42923
+ p_is_deleted: boolean;
42924
+ p_status: string;
42925
+ };
42926
+ Returns: number;
42927
+ };
42928
+ verkoop_fulfillment_index_rebuild: {
42929
+ Args: never;
42930
+ Returns: Json;
42931
+ };
42039
42932
  verkoop_guarded_functions: {
42040
42933
  Args: never;
42041
42934
  Returns: {
@@ -42045,6 +42938,14 @@ export type Database = {
42045
42938
  sig: string;
42046
42939
  }[];
42047
42940
  };
42941
+ verkoop_health_checks: {
42942
+ Args: never;
42943
+ Returns: {
42944
+ naam: string;
42945
+ ok: boolean;
42946
+ opm: string;
42947
+ }[];
42948
+ };
42048
42949
  verkoop_insert_manual_order: {
42049
42950
  Args: {
42050
42951
  p_idempotency_key: string;
@@ -42127,6 +43028,12 @@ export type Database = {
42127
43028
  };
42128
43029
  Returns: undefined;
42129
43030
  };
43031
+ voorraad_article_vbn: {
43032
+ Args: {
43033
+ p_product_id: string;
43034
+ };
43035
+ Returns: Json;
43036
+ };
42130
43037
  voorraad_can_write: {
42131
43038
  Args: never;
42132
43039
  Returns: boolean;
@@ -42149,6 +43056,12 @@ export type Database = {
42149
43056
  };
42150
43057
  Returns: Json;
42151
43058
  };
43059
+ voorraad_correctie_1112: {
43060
+ Args: {
43061
+ p_uitvoeren?: boolean;
43062
+ };
43063
+ Returns: Json;
43064
+ };
42152
43065
  voorraad_correctie_status: {
42153
43066
  Args: {
42154
43067
  p_correctie?: string;
@@ -42216,6 +43129,13 @@ export type Database = {
42216
43129
  Args: never;
42217
43130
  Returns: boolean;
42218
43131
  };
43132
+ voorraad_reverse_order_mutations: {
43133
+ Args: {
43134
+ p_order_id: string;
43135
+ p_reason: string;
43136
+ };
43137
+ Returns: Json;
43138
+ };
42219
43139
  voorraad_schema_ddl: {
42220
43140
  Args: {
42221
43141
  p_functions: string[];
@@ -42241,6 +43161,13 @@ export type Database = {
42241
43161
  };
42242
43162
  Returns: boolean;
42243
43163
  };
43164
+ voorraad_withdraw_stock_row: {
43165
+ Args: {
43166
+ p_key: string;
43167
+ p_reason: string;
43168
+ };
43169
+ Returns: Json;
43170
+ };
42244
43171
  wake_print_queue: {
42245
43172
  Args: {
42246
43173
  _min_interval_ms?: number;
@@ -42438,7 +43365,7 @@ export type Database = {
42438
43365
  Enums: {
42439
43366
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
42440
43367
  app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "superadmin";
42441
- doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief" | "traysticker";
43368
+ doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief" | "traysticker" | "eigen_sticker";
42442
43369
  doc_orientation: "portrait" | "landscape";
42443
43370
  exact_env: "staging" | "live";
42444
43371
  exact_push_status: "pending" | "sent" | "error";
@@ -42509,7 +43436,7 @@ export declare const Constants: {
42509
43436
  readonly Enums: {
42510
43437
  readonly ai_import_status: readonly ["nieuw", "verwerken", "bevestigen", "klaar", "mislukt"];
42511
43438
  readonly app_role: readonly ["admin", "planner", "monteur", "administratie", "ai_admin", "manager", "warehouse", "sales", "developer", "receptie", "superadmin"];
42512
- readonly doc_layout_type: readonly ["pakbon", "factuur", "offerte", "orderbevestiging", "etiket", "verzendlabel", "productlabel", "barcode_label", "magazijnlijst", "controlelijst", "transportdocument", "vrij", "sticker", "productiebon", "veilingbon", "afleverbrief", "veilingbrief", "traysticker"];
43439
+ readonly doc_layout_type: readonly ["pakbon", "factuur", "offerte", "orderbevestiging", "etiket", "verzendlabel", "productlabel", "barcode_label", "magazijnlijst", "controlelijst", "transportdocument", "vrij", "sticker", "productiebon", "veilingbon", "afleverbrief", "veilingbrief", "traysticker", "eigen_sticker"];
42513
43440
  readonly doc_orientation: readonly ["portrait", "landscape"];
42514
43441
  readonly exact_env: readonly ["staging", "live"];
42515
43442
  readonly exact_push_status: readonly ["pending", "sent", "error"];