@flowselections/logistiek-engine 1.0.13 → 1.0.15

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 (50) hide show
  1. package/README.md +24 -24
  2. package/dist-lib/components/FloridayPushCard.d.ts.map +1 -1
  3. package/dist-lib/components/FloridayPushCard.js +7 -2
  4. package/dist-lib/components/PrintjobsCard.d.ts.map +1 -1
  5. package/dist-lib/components/PrintjobsCard.js +3 -1
  6. package/dist-lib/hooks/useFloridayPushes.d.ts +7 -0
  7. package/dist-lib/hooks/useFloridayPushes.d.ts.map +1 -1
  8. package/dist-lib/hooks/useFloridayPushes.js +11 -0
  9. package/dist-lib/hooks/usePrintjobs.d.ts +1 -0
  10. package/dist-lib/hooks/usePrintjobs.d.ts.map +1 -1
  11. package/dist-lib/hooks/usePrintjobs.js +17 -1
  12. package/dist-lib/integrations/supabase/auth-middleware.d.ts +336 -0
  13. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  14. package/dist-lib/integrations/supabase/client.d.ts +1516 -159
  15. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  16. package/dist-lib/integrations/supabase/client.server.d.ts +336 -0
  17. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  18. package/dist-lib/integrations/supabase/moduleClient.d.ts +336 -0
  19. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  20. package/dist-lib/integrations/supabase/previewAuthStorage.d.ts +6 -0
  21. package/dist-lib/integrations/supabase/previewAuthStorage.d.ts.map +1 -0
  22. package/dist-lib/integrations/supabase/previewAuthStorage.js +92 -0
  23. package/dist-lib/integrations/supabase/types.d.ts +343 -0
  24. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  25. package/dist-lib/lib/bulkLoadCarrierPlanning.server.d.ts +2 -0
  26. package/dist-lib/lib/bulkLoadCarrierPlanning.server.d.ts.map +1 -1
  27. package/dist-lib/lib/bulkLoadCarrierPlanning.server.js +11 -0
  28. package/dist-lib/lib/floridayDocuments.functions.d.ts +1008 -0
  29. package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/floridayPush.functions.d.ts +336 -0
  31. package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -1
  32. package/dist-lib/lib/floridayPush.server.d.ts +12 -0
  33. package/dist-lib/lib/floridayPush.server.d.ts.map +1 -1
  34. package/dist-lib/lib/floridayPush.server.js +41 -9
  35. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +1685 -30
  36. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
  37. package/dist-lib/lib/loadCarrierPlanning.server.d.ts +27 -2
  38. package/dist-lib/lib/loadCarrierPlanning.server.d.ts.map +1 -1
  39. package/dist-lib/lib/loadCarrierPlanning.server.js +162 -30
  40. package/dist-lib/lib/loadCarrierTaskSync.server.js +1 -1
  41. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +672 -0
  42. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
  43. package/dist-lib/lib/logisticsRecalculate.functions.d.ts +336 -0
  44. package/dist-lib/lib/logisticsRecalculate.functions.d.ts.map +1 -1
  45. package/dist-lib/lib/modulePrompts.d.ts.map +1 -1
  46. package/dist-lib/lib/modulePrompts.js +1009 -970
  47. package/dist-lib/lib/planQueue.server.d.ts +2 -0
  48. package/dist-lib/lib/planQueue.server.d.ts.map +1 -1
  49. package/dist-lib/lib/planQueue.server.js +22 -4
  50. package/package.json +1 -1
@@ -51,12 +51,7 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
51
51
  signup_mail_purpose?: string;
52
52
  transport_register_days_before?: number;
53
53
  updated_at?: string;
54
- user_id
55
- /**
56
- * Deelt alle orders in, in batches. De client roept dit net zo lang aan tot
57
- * `done` waar is en schakelt dan door naar de volgende fase.
58
- */
59
- ?: string;
54
+ user_id?: string;
60
55
  };
61
56
  Relationships: [];
62
57
  };
@@ -678,6 +673,99 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
678
673
  };
679
674
  Relationships: [];
680
675
  };
676
+ artikelen_cache: {
677
+ Row: {
678
+ artikelcode: string;
679
+ bron: string;
680
+ bruto_prijs_cent: number | null;
681
+ created_at: string;
682
+ eenheid: string;
683
+ fabrikant: string | null;
684
+ fetched_at: string;
685
+ gtin: string | null;
686
+ id: string;
687
+ naam: string;
688
+ netto_prijs_cent: number | null;
689
+ omschrijving: string | null;
690
+ raw: import("../integrations/supabase/types").Json;
691
+ updated_at: string;
692
+ valuta: string;
693
+ };
694
+ Insert: {
695
+ artikelcode: string;
696
+ bron?: string;
697
+ bruto_prijs_cent?: number | null;
698
+ created_at?: string;
699
+ eenheid?: string;
700
+ fabrikant?: string | null;
701
+ fetched_at?: string;
702
+ gtin?: string | null;
703
+ id?: string;
704
+ naam: string;
705
+ netto_prijs_cent?: number | null;
706
+ omschrijving?: string | null;
707
+ raw?: import("../integrations/supabase/types").Json;
708
+ updated_at?: string;
709
+ valuta?: string;
710
+ };
711
+ Update: {
712
+ artikelcode?: string;
713
+ bron?: string;
714
+ bruto_prijs_cent?: number | null;
715
+ created_at?: string;
716
+ eenheid?: string;
717
+ fabrikant?: string | null;
718
+ fetched_at?: string;
719
+ gtin?: string | null;
720
+ id?: string;
721
+ naam?: string;
722
+ netto_prijs_cent?: number | null;
723
+ omschrijving?: string | null;
724
+ raw?: import("../integrations/supabase/types").Json;
725
+ updated_at?: string;
726
+ valuta?: string;
727
+ };
728
+ Relationships: [];
729
+ };
730
+ artikelen_veldconfig: {
731
+ Row: {
732
+ bron_pad: string;
733
+ created_at: string;
734
+ id: string;
735
+ label: string;
736
+ sort_order: number;
737
+ type: string;
738
+ updated_at: string;
739
+ veld_key: string;
740
+ zichtbaar_in_detail: boolean;
741
+ zichtbaar_in_lijst: boolean;
742
+ };
743
+ Insert: {
744
+ bron_pad: string;
745
+ created_at?: string;
746
+ id?: string;
747
+ label: string;
748
+ sort_order?: number;
749
+ type?: string;
750
+ updated_at?: string;
751
+ veld_key: string;
752
+ zichtbaar_in_detail?: boolean;
753
+ zichtbaar_in_lijst?: boolean;
754
+ };
755
+ Update: {
756
+ bron_pad?: string;
757
+ created_at?: string;
758
+ id?: string;
759
+ label?: string;
760
+ sort_order?: number;
761
+ type?: string;
762
+ updated_at?: string;
763
+ veld_key?: string;
764
+ zichtbaar_in_detail?: boolean;
765
+ zichtbaar_in_lijst?: boolean;
766
+ };
767
+ Relationships: [];
768
+ };
681
769
  booking_items: {
682
770
  Row: {
683
771
  booking_id: string;
@@ -3150,6 +3238,48 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
3150
3238
  };
3151
3239
  Relationships: [];
3152
3240
  };
3241
+ document_printplek_printers: {
3242
+ Row: {
3243
+ created_at: string;
3244
+ documenttype: string;
3245
+ id: string;
3246
+ papierformaat: string | null;
3247
+ print_plek_id: string;
3248
+ printer_id: string | null;
3249
+ updated_at: string;
3250
+ };
3251
+ Insert: {
3252
+ created_at?: string;
3253
+ documenttype: string;
3254
+ id?: string;
3255
+ papierformaat?: string | null;
3256
+ print_plek_id: string;
3257
+ printer_id?: string | null;
3258
+ updated_at?: string;
3259
+ };
3260
+ Update: {
3261
+ created_at?: string;
3262
+ documenttype?: string;
3263
+ id?: string;
3264
+ papierformaat?: string | null;
3265
+ print_plek_id?: string;
3266
+ printer_id?: string | null;
3267
+ updated_at?: string;
3268
+ };
3269
+ Relationships: [{
3270
+ foreignKeyName: "document_printplek_printers_print_plek_id_fkey";
3271
+ columns: ["print_plek_id"];
3272
+ isOneToOne: false;
3273
+ referencedRelation: "print_plekken";
3274
+ referencedColumns: ["id"];
3275
+ }, {
3276
+ foreignKeyName: "document_printplek_printers_printer_id_fkey";
3277
+ columns: ["printer_id"];
3278
+ isOneToOne: false;
3279
+ referencedRelation: "printers";
3280
+ referencedColumns: ["id"];
3281
+ }];
3282
+ };
3153
3283
  document_werkplek_printers: {
3154
3284
  Row: {
3155
3285
  created_at: string;
@@ -9131,6 +9261,7 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
9131
9261
  last_error_at: string | null;
9132
9262
  last_error_code: string | null;
9133
9263
  last_gateway_status: number | null;
9264
+ last_queued_at: string | null;
9134
9265
  last_response: import("../integrations/supabase/types").Json | null;
9135
9266
  last_sent_hash: string | null;
9136
9267
  locked_by: string | null;
@@ -9154,6 +9285,7 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
9154
9285
  last_error_at?: string | null;
9155
9286
  last_error_code?: string | null;
9156
9287
  last_gateway_status?: number | null;
9288
+ last_queued_at?: string | null;
9157
9289
  last_response?: import("../integrations/supabase/types").Json | null;
9158
9290
  last_sent_hash?: string | null;
9159
9291
  locked_by?: string | null;
@@ -9177,6 +9309,7 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
9177
9309
  last_error_at?: string | null;
9178
9310
  last_error_code?: string | null;
9179
9311
  last_gateway_status?: number | null;
9312
+ last_queued_at?: string | null;
9180
9313
  last_response?: import("../integrations/supabase/types").Json | null;
9181
9314
  last_sent_hash?: string | null;
9182
9315
  locked_by?: string | null;
@@ -13347,6 +13480,99 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
13347
13480
  referencedColumns: ["id"];
13348
13481
  }];
13349
13482
  };
13483
+ print_plek_computers: {
13484
+ Row: {
13485
+ computer_naam: string;
13486
+ created_at: string;
13487
+ id: string;
13488
+ print_plek_id: string;
13489
+ updated_at: string;
13490
+ };
13491
+ Insert: {
13492
+ computer_naam: string;
13493
+ created_at?: string;
13494
+ id?: string;
13495
+ print_plek_id: string;
13496
+ updated_at?: string;
13497
+ };
13498
+ Update: {
13499
+ computer_naam?: string;
13500
+ created_at?: string;
13501
+ id?: string;
13502
+ print_plek_id?: string;
13503
+ updated_at?: string;
13504
+ };
13505
+ Relationships: [{
13506
+ foreignKeyName: "print_plek_computers_print_plek_id_fkey";
13507
+ columns: ["print_plek_id"];
13508
+ isOneToOne: false;
13509
+ referencedRelation: "print_plekken";
13510
+ referencedColumns: ["id"];
13511
+ }];
13512
+ };
13513
+ print_plek_koppelingen: {
13514
+ Row: {
13515
+ bron: string;
13516
+ bron_id: string;
13517
+ created_at: string;
13518
+ id: string;
13519
+ label: string | null;
13520
+ print_plek_id: string;
13521
+ updated_at: string;
13522
+ };
13523
+ Insert: {
13524
+ bron: string;
13525
+ bron_id: string;
13526
+ created_at?: string;
13527
+ id?: string;
13528
+ label?: string | null;
13529
+ print_plek_id: string;
13530
+ updated_at?: string;
13531
+ };
13532
+ Update: {
13533
+ bron?: string;
13534
+ bron_id?: string;
13535
+ created_at?: string;
13536
+ id?: string;
13537
+ label?: string | null;
13538
+ print_plek_id?: string;
13539
+ updated_at?: string;
13540
+ };
13541
+ Relationships: [{
13542
+ foreignKeyName: "print_plek_koppelingen_print_plek_id_fkey";
13543
+ columns: ["print_plek_id"];
13544
+ isOneToOne: false;
13545
+ referencedRelation: "print_plekken";
13546
+ referencedColumns: ["id"];
13547
+ }];
13548
+ };
13549
+ print_plekken: {
13550
+ Row: {
13551
+ actief: boolean;
13552
+ created_at: string;
13553
+ id: string;
13554
+ naam: string;
13555
+ omschrijving: string | null;
13556
+ updated_at: string;
13557
+ };
13558
+ Insert: {
13559
+ actief?: boolean;
13560
+ created_at?: string;
13561
+ id?: string;
13562
+ naam: string;
13563
+ omschrijving?: string | null;
13564
+ updated_at?: string;
13565
+ };
13566
+ Update: {
13567
+ actief?: boolean;
13568
+ created_at?: string;
13569
+ id?: string;
13570
+ naam?: string;
13571
+ omschrijving?: string | null;
13572
+ updated_at?: string;
13573
+ };
13574
+ Relationships: [];
13575
+ };
13350
13576
  print_queue_runners: {
13351
13577
  Row: {
13352
13578
  actief: boolean;
@@ -15501,6 +15727,45 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
15501
15727
  };
15502
15728
  Relationships: [];
15503
15729
  };
15730
+ stock_consumption_alerts: {
15731
+ Row: {
15732
+ alert_type: string;
15733
+ created_at: string;
15734
+ id: string;
15735
+ mutation_log_id: string | null;
15736
+ order_id: string | null;
15737
+ order_item_id: string | null;
15738
+ qty: number;
15739
+ reason: string | null;
15740
+ resolved_at: string | null;
15741
+ updated_at: string;
15742
+ };
15743
+ Insert: {
15744
+ alert_type: string;
15745
+ created_at?: string;
15746
+ id?: string;
15747
+ mutation_log_id?: string | null;
15748
+ order_id?: string | null;
15749
+ order_item_id?: string | null;
15750
+ qty?: number;
15751
+ reason?: string | null;
15752
+ resolved_at?: string | null;
15753
+ updated_at?: string;
15754
+ };
15755
+ Update: {
15756
+ alert_type?: string;
15757
+ created_at?: string;
15758
+ id?: string;
15759
+ mutation_log_id?: string | null;
15760
+ order_id?: string | null;
15761
+ order_item_id?: string | null;
15762
+ qty?: number;
15763
+ reason?: string | null;
15764
+ resolved_at?: string | null;
15765
+ updated_at?: string;
15766
+ };
15767
+ Relationships: [];
15768
+ };
15504
15769
  stock_import_runs: {
15505
15770
  Row: {
15506
15771
  connection_id: string | null;
@@ -21095,6 +21360,24 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
21095
21360
  };
21096
21361
  Returns: string;
21097
21362
  };
21363
+ logistics_floriday_finish_push_v3: {
21364
+ Args: {
21365
+ _error?: string;
21366
+ _error_code?: string;
21367
+ _fulfillment_order_id?: string;
21368
+ _gateway_status?: number;
21369
+ _id: string;
21370
+ _max_age_hours?: number;
21371
+ _max_attempts?: number;
21372
+ _outcome: string;
21373
+ _permanent?: boolean;
21374
+ _response?: import("../integrations/supabase/types").Json;
21375
+ _revision: number;
21376
+ _sent_hash?: string;
21377
+ _wait_max_age_hours?: number;
21378
+ };
21379
+ Returns: string;
21380
+ };
21098
21381
  logistics_floriday_prune_pushes: {
21099
21382
  Args: {
21100
21383
  _days?: number;
@@ -21155,6 +21438,14 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
21155
21438
  };
21156
21439
  Returns: import("../integrations/supabase/types").Json;
21157
21440
  };
21441
+ logistics_plan_block: {
21442
+ Args: {
21443
+ p_details?: import("../integrations/supabase/types").Json;
21444
+ p_order_ids: string[];
21445
+ p_reason: string;
21446
+ };
21447
+ Returns: number;
21448
+ };
21158
21449
  logistics_plan_buffer_sql: {
21159
21450
  Args: {
21160
21451
  p_buffer_id: string;
@@ -21523,6 +21814,12 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
21523
21814
  verwijderd: number;
21524
21815
  }[];
21525
21816
  };
21817
+ order_departure_proof: {
21818
+ Args: {
21819
+ p_order_id: string;
21820
+ };
21821
+ Returns: import("../integrations/supabase/types").Json;
21822
+ };
21526
21823
  order_number_prefix: {
21527
21824
  Args: {
21528
21825
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -21730,6 +22027,14 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
21730
22027
  };
21731
22028
  Returns: import("../integrations/supabase/types").Json;
21732
22029
  };
22030
+ pick_print_plekken: {
22031
+ Args: never;
22032
+ Returns: {
22033
+ id: string;
22034
+ naam: string;
22035
+ omschrijving: string;
22036
+ }[];
22037
+ };
21733
22038
  pick_release_expired_locks: {
21734
22039
  Args: never;
21735
22040
  Returns: number;
@@ -21794,6 +22099,13 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
21794
22099
  isSetofReturn: false;
21795
22100
  };
21796
22101
  };
22102
+ pick_set_station_print_plek: {
22103
+ Args: {
22104
+ _print_plek_id: string;
22105
+ _station_id: string;
22106
+ };
22107
+ Returns: string;
22108
+ };
21797
22109
  pick_station_dashboard: {
21798
22110
  Args: never;
21799
22111
  Returns: {
@@ -21806,6 +22118,25 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
21806
22118
  waiting: number;
21807
22119
  }[];
21808
22120
  };
22121
+ pick_station_print_plek: {
22122
+ Args: {
22123
+ _station_id: string;
22124
+ };
22125
+ Returns: {
22126
+ naam: string;
22127
+ omschrijving: string;
22128
+ print_plek_id: string;
22129
+ }[];
22130
+ };
22131
+ pick_station_print_plekken: {
22132
+ Args: never;
22133
+ Returns: {
22134
+ naam: string;
22135
+ omschrijving: string;
22136
+ print_plek_id: string;
22137
+ station_id: string;
22138
+ }[];
22139
+ };
21809
22140
  pick_station_slugify: {
21810
22141
  Args: {
21811
22142
  _id: string;
@@ -22650,12 +22981,7 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
22650
22981
  signup_mail_purpose?: string;
22651
22982
  transport_register_days_before?: number;
22652
22983
  updated_at?: string;
22653
- user_id
22654
- /**
22655
- * Deelt alle orders in, in batches. De client roept dit net zo lang aan tot
22656
- * `done` waar is en schakelt dan door naar de volgende fase.
22657
- */
22658
- ?: string;
22984
+ user_id?: string;
22659
22985
  };
22660
22986
  Relationships: [];
22661
22987
  };
@@ -23277,6 +23603,99 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
23277
23603
  };
23278
23604
  Relationships: [];
23279
23605
  };
23606
+ artikelen_cache: {
23607
+ Row: {
23608
+ artikelcode: string;
23609
+ bron: string;
23610
+ bruto_prijs_cent: number | null;
23611
+ created_at: string;
23612
+ eenheid: string;
23613
+ fabrikant: string | null;
23614
+ fetched_at: string;
23615
+ gtin: string | null;
23616
+ id: string;
23617
+ naam: string;
23618
+ netto_prijs_cent: number | null;
23619
+ omschrijving: string | null;
23620
+ raw: import("../integrations/supabase/types").Json;
23621
+ updated_at: string;
23622
+ valuta: string;
23623
+ };
23624
+ Insert: {
23625
+ artikelcode: string;
23626
+ bron?: string;
23627
+ bruto_prijs_cent?: number | null;
23628
+ created_at?: string;
23629
+ eenheid?: string;
23630
+ fabrikant?: string | null;
23631
+ fetched_at?: string;
23632
+ gtin?: string | null;
23633
+ id?: string;
23634
+ naam: string;
23635
+ netto_prijs_cent?: number | null;
23636
+ omschrijving?: string | null;
23637
+ raw?: import("../integrations/supabase/types").Json;
23638
+ updated_at?: string;
23639
+ valuta?: string;
23640
+ };
23641
+ Update: {
23642
+ artikelcode?: string;
23643
+ bron?: string;
23644
+ bruto_prijs_cent?: number | null;
23645
+ created_at?: string;
23646
+ eenheid?: string;
23647
+ fabrikant?: string | null;
23648
+ fetched_at?: string;
23649
+ gtin?: string | null;
23650
+ id?: string;
23651
+ naam?: string;
23652
+ netto_prijs_cent?: number | null;
23653
+ omschrijving?: string | null;
23654
+ raw?: import("../integrations/supabase/types").Json;
23655
+ updated_at?: string;
23656
+ valuta?: string;
23657
+ };
23658
+ Relationships: [];
23659
+ };
23660
+ artikelen_veldconfig: {
23661
+ Row: {
23662
+ bron_pad: string;
23663
+ created_at: string;
23664
+ id: string;
23665
+ label: string;
23666
+ sort_order: number;
23667
+ type: string;
23668
+ updated_at: string;
23669
+ veld_key: string;
23670
+ zichtbaar_in_detail: boolean;
23671
+ zichtbaar_in_lijst: boolean;
23672
+ };
23673
+ Insert: {
23674
+ bron_pad: string;
23675
+ created_at?: string;
23676
+ id?: string;
23677
+ label: string;
23678
+ sort_order?: number;
23679
+ type?: string;
23680
+ updated_at?: string;
23681
+ veld_key: string;
23682
+ zichtbaar_in_detail?: boolean;
23683
+ zichtbaar_in_lijst?: boolean;
23684
+ };
23685
+ Update: {
23686
+ bron_pad?: string;
23687
+ created_at?: string;
23688
+ id?: string;
23689
+ label?: string;
23690
+ sort_order?: number;
23691
+ type?: string;
23692
+ updated_at?: string;
23693
+ veld_key?: string;
23694
+ zichtbaar_in_detail?: boolean;
23695
+ zichtbaar_in_lijst?: boolean;
23696
+ };
23697
+ Relationships: [];
23698
+ };
23280
23699
  booking_items: {
23281
23700
  Row: {
23282
23701
  booking_id: string;
@@ -25749,6 +26168,48 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
25749
26168
  };
25750
26169
  Relationships: [];
25751
26170
  };
26171
+ document_printplek_printers: {
26172
+ Row: {
26173
+ created_at: string;
26174
+ documenttype: string;
26175
+ id: string;
26176
+ papierformaat: string | null;
26177
+ print_plek_id: string;
26178
+ printer_id: string | null;
26179
+ updated_at: string;
26180
+ };
26181
+ Insert: {
26182
+ created_at?: string;
26183
+ documenttype: string;
26184
+ id?: string;
26185
+ papierformaat?: string | null;
26186
+ print_plek_id: string;
26187
+ printer_id?: string | null;
26188
+ updated_at?: string;
26189
+ };
26190
+ Update: {
26191
+ created_at?: string;
26192
+ documenttype?: string;
26193
+ id?: string;
26194
+ papierformaat?: string | null;
26195
+ print_plek_id?: string;
26196
+ printer_id?: string | null;
26197
+ updated_at?: string;
26198
+ };
26199
+ Relationships: [{
26200
+ foreignKeyName: "document_printplek_printers_print_plek_id_fkey";
26201
+ columns: ["print_plek_id"];
26202
+ isOneToOne: false;
26203
+ referencedRelation: "print_plekken";
26204
+ referencedColumns: ["id"];
26205
+ }, {
26206
+ foreignKeyName: "document_printplek_printers_printer_id_fkey";
26207
+ columns: ["printer_id"];
26208
+ isOneToOne: false;
26209
+ referencedRelation: "printers";
26210
+ referencedColumns: ["id"];
26211
+ }];
26212
+ };
25752
26213
  document_werkplek_printers: {
25753
26214
  Row: {
25754
26215
  created_at: string;
@@ -31730,6 +32191,7 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
31730
32191
  last_error_at: string | null;
31731
32192
  last_error_code: string | null;
31732
32193
  last_gateway_status: number | null;
32194
+ last_queued_at: string | null;
31733
32195
  last_response: import("../integrations/supabase/types").Json | null;
31734
32196
  last_sent_hash: string | null;
31735
32197
  locked_by: string | null;
@@ -31753,6 +32215,7 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
31753
32215
  last_error_at?: string | null;
31754
32216
  last_error_code?: string | null;
31755
32217
  last_gateway_status?: number | null;
32218
+ last_queued_at?: string | null;
31756
32219
  last_response?: import("../integrations/supabase/types").Json | null;
31757
32220
  last_sent_hash?: string | null;
31758
32221
  locked_by?: string | null;
@@ -31776,6 +32239,7 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
31776
32239
  last_error_at?: string | null;
31777
32240
  last_error_code?: string | null;
31778
32241
  last_gateway_status?: number | null;
32242
+ last_queued_at?: string | null;
31779
32243
  last_response?: import("../integrations/supabase/types").Json | null;
31780
32244
  last_sent_hash?: string | null;
31781
32245
  locked_by?: string | null;
@@ -35946,6 +36410,99 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
35946
36410
  referencedColumns: ["id"];
35947
36411
  }];
35948
36412
  };
36413
+ print_plek_computers: {
36414
+ Row: {
36415
+ computer_naam: string;
36416
+ created_at: string;
36417
+ id: string;
36418
+ print_plek_id: string;
36419
+ updated_at: string;
36420
+ };
36421
+ Insert: {
36422
+ computer_naam: string;
36423
+ created_at?: string;
36424
+ id?: string;
36425
+ print_plek_id: string;
36426
+ updated_at?: string;
36427
+ };
36428
+ Update: {
36429
+ computer_naam?: string;
36430
+ created_at?: string;
36431
+ id?: string;
36432
+ print_plek_id?: string;
36433
+ updated_at?: string;
36434
+ };
36435
+ Relationships: [{
36436
+ foreignKeyName: "print_plek_computers_print_plek_id_fkey";
36437
+ columns: ["print_plek_id"];
36438
+ isOneToOne: false;
36439
+ referencedRelation: "print_plekken";
36440
+ referencedColumns: ["id"];
36441
+ }];
36442
+ };
36443
+ print_plek_koppelingen: {
36444
+ Row: {
36445
+ bron: string;
36446
+ bron_id: string;
36447
+ created_at: string;
36448
+ id: string;
36449
+ label: string | null;
36450
+ print_plek_id: string;
36451
+ updated_at: string;
36452
+ };
36453
+ Insert: {
36454
+ bron: string;
36455
+ bron_id: string;
36456
+ created_at?: string;
36457
+ id?: string;
36458
+ label?: string | null;
36459
+ print_plek_id: string;
36460
+ updated_at?: string;
36461
+ };
36462
+ Update: {
36463
+ bron?: string;
36464
+ bron_id?: string;
36465
+ created_at?: string;
36466
+ id?: string;
36467
+ label?: string | null;
36468
+ print_plek_id?: string;
36469
+ updated_at?: string;
36470
+ };
36471
+ Relationships: [{
36472
+ foreignKeyName: "print_plek_koppelingen_print_plek_id_fkey";
36473
+ columns: ["print_plek_id"];
36474
+ isOneToOne: false;
36475
+ referencedRelation: "print_plekken";
36476
+ referencedColumns: ["id"];
36477
+ }];
36478
+ };
36479
+ print_plekken: {
36480
+ Row: {
36481
+ actief: boolean;
36482
+ created_at: string;
36483
+ id: string;
36484
+ naam: string;
36485
+ omschrijving: string | null;
36486
+ updated_at: string;
36487
+ };
36488
+ Insert: {
36489
+ actief?: boolean;
36490
+ created_at?: string;
36491
+ id?: string;
36492
+ naam: string;
36493
+ omschrijving?: string | null;
36494
+ updated_at?: string;
36495
+ };
36496
+ Update: {
36497
+ actief?: boolean;
36498
+ created_at?: string;
36499
+ id?: string;
36500
+ naam?: string;
36501
+ omschrijving?: string | null;
36502
+ updated_at?: string;
36503
+ };
36504
+ Relationships: [];
36505
+ };
35949
36506
  print_queue_runners: {
35950
36507
  Row: {
35951
36508
  actief: boolean;
@@ -38100,6 +38657,45 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
38100
38657
  };
38101
38658
  Relationships: [];
38102
38659
  };
38660
+ stock_consumption_alerts: {
38661
+ Row: {
38662
+ alert_type: string;
38663
+ created_at: string;
38664
+ id: string;
38665
+ mutation_log_id: string | null;
38666
+ order_id: string | null;
38667
+ order_item_id: string | null;
38668
+ qty: number;
38669
+ reason: string | null;
38670
+ resolved_at: string | null;
38671
+ updated_at: string;
38672
+ };
38673
+ Insert: {
38674
+ alert_type: string;
38675
+ created_at?: string;
38676
+ id?: string;
38677
+ mutation_log_id?: string | null;
38678
+ order_id?: string | null;
38679
+ order_item_id?: string | null;
38680
+ qty?: number;
38681
+ reason?: string | null;
38682
+ resolved_at?: string | null;
38683
+ updated_at?: string;
38684
+ };
38685
+ Update: {
38686
+ alert_type?: string;
38687
+ created_at?: string;
38688
+ id?: string;
38689
+ mutation_log_id?: string | null;
38690
+ order_id?: string | null;
38691
+ order_item_id?: string | null;
38692
+ qty?: number;
38693
+ reason?: string | null;
38694
+ resolved_at?: string | null;
38695
+ updated_at?: string;
38696
+ };
38697
+ Relationships: [];
38698
+ };
38103
38699
  stock_import_runs: {
38104
38700
  Row: {
38105
38701
  connection_id: string | null;
@@ -43694,6 +44290,24 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
43694
44290
  };
43695
44291
  Returns: string;
43696
44292
  };
44293
+ logistics_floriday_finish_push_v3: {
44294
+ Args: {
44295
+ _error?: string;
44296
+ _error_code?: string;
44297
+ _fulfillment_order_id?: string;
44298
+ _gateway_status?: number;
44299
+ _id: string;
44300
+ _max_age_hours?: number;
44301
+ _max_attempts?: number;
44302
+ _outcome: string;
44303
+ _permanent?: boolean;
44304
+ _response?: import("../integrations/supabase/types").Json;
44305
+ _revision: number;
44306
+ _sent_hash?: string;
44307
+ _wait_max_age_hours?: number;
44308
+ };
44309
+ Returns: string;
44310
+ };
43697
44311
  logistics_floriday_prune_pushes: {
43698
44312
  Args: {
43699
44313
  _days?: number;
@@ -43754,6 +44368,14 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
43754
44368
  };
43755
44369
  Returns: import("../integrations/supabase/types").Json;
43756
44370
  };
44371
+ logistics_plan_block: {
44372
+ Args: {
44373
+ p_details?: import("../integrations/supabase/types").Json;
44374
+ p_order_ids: string[];
44375
+ p_reason: string;
44376
+ };
44377
+ Returns: number;
44378
+ };
43757
44379
  logistics_plan_buffer_sql: {
43758
44380
  Args: {
43759
44381
  p_buffer_id: string;
@@ -44122,6 +44744,12 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
44122
44744
  verwijderd: number;
44123
44745
  }[];
44124
44746
  };
44747
+ order_departure_proof: {
44748
+ Args: {
44749
+ p_order_id: string;
44750
+ };
44751
+ Returns: import("../integrations/supabase/types").Json;
44752
+ };
44125
44753
  order_number_prefix: {
44126
44754
  Args: {
44127
44755
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -44329,6 +44957,14 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
44329
44957
  };
44330
44958
  Returns: import("../integrations/supabase/types").Json;
44331
44959
  };
44960
+ pick_print_plekken: {
44961
+ Args: never;
44962
+ Returns: {
44963
+ id: string;
44964
+ naam: string;
44965
+ omschrijving: string;
44966
+ }[];
44967
+ };
44332
44968
  pick_release_expired_locks: {
44333
44969
  Args: never;
44334
44970
  Returns: number;
@@ -44393,6 +45029,13 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
44393
45029
  isSetofReturn: false;
44394
45030
  };
44395
45031
  };
45032
+ pick_set_station_print_plek: {
45033
+ Args: {
45034
+ _print_plek_id: string;
45035
+ _station_id: string;
45036
+ };
45037
+ Returns: string;
45038
+ };
44396
45039
  pick_station_dashboard: {
44397
45040
  Args: never;
44398
45041
  Returns: {
@@ -44405,6 +45048,25 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
44405
45048
  waiting: number;
44406
45049
  }[];
44407
45050
  };
45051
+ pick_station_print_plek: {
45052
+ Args: {
45053
+ _station_id: string;
45054
+ };
45055
+ Returns: {
45056
+ naam: string;
45057
+ omschrijving: string;
45058
+ print_plek_id: string;
45059
+ }[];
45060
+ };
45061
+ pick_station_print_plekken: {
45062
+ Args: never;
45063
+ Returns: {
45064
+ naam: string;
45065
+ omschrijving: string;
45066
+ print_plek_id: string;
45067
+ station_id: string;
45068
+ }[];
45069
+ };
44408
45070
  pick_station_slugify: {
44409
45071
  Args: {
44410
45072
  _id: string;
@@ -45253,12 +45915,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
45253
45915
  signup_mail_purpose?: string;
45254
45916
  transport_register_days_before?: number;
45255
45917
  updated_at?: string;
45256
- user_id
45257
- /**
45258
- * Deelt alle orders in, in batches. De client roept dit net zo lang aan tot
45259
- * `done` waar is en schakelt dan door naar de volgende fase.
45260
- */
45261
- ?: string;
45918
+ user_id?: string;
45262
45919
  };
45263
45920
  Relationships: [];
45264
45921
  };
@@ -45880,6 +46537,99 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
45880
46537
  };
45881
46538
  Relationships: [];
45882
46539
  };
46540
+ artikelen_cache: {
46541
+ Row: {
46542
+ artikelcode: string;
46543
+ bron: string;
46544
+ bruto_prijs_cent: number | null;
46545
+ created_at: string;
46546
+ eenheid: string;
46547
+ fabrikant: string | null;
46548
+ fetched_at: string;
46549
+ gtin: string | null;
46550
+ id: string;
46551
+ naam: string;
46552
+ netto_prijs_cent: number | null;
46553
+ omschrijving: string | null;
46554
+ raw: import("../integrations/supabase/types").Json;
46555
+ updated_at: string;
46556
+ valuta: string;
46557
+ };
46558
+ Insert: {
46559
+ artikelcode: string;
46560
+ bron?: string;
46561
+ bruto_prijs_cent?: number | null;
46562
+ created_at?: string;
46563
+ eenheid?: string;
46564
+ fabrikant?: string | null;
46565
+ fetched_at?: string;
46566
+ gtin?: string | null;
46567
+ id?: string;
46568
+ naam: string;
46569
+ netto_prijs_cent?: number | null;
46570
+ omschrijving?: string | null;
46571
+ raw?: import("../integrations/supabase/types").Json;
46572
+ updated_at?: string;
46573
+ valuta?: string;
46574
+ };
46575
+ Update: {
46576
+ artikelcode?: string;
46577
+ bron?: string;
46578
+ bruto_prijs_cent?: number | null;
46579
+ created_at?: string;
46580
+ eenheid?: string;
46581
+ fabrikant?: string | null;
46582
+ fetched_at?: string;
46583
+ gtin?: string | null;
46584
+ id?: string;
46585
+ naam?: string;
46586
+ netto_prijs_cent?: number | null;
46587
+ omschrijving?: string | null;
46588
+ raw?: import("../integrations/supabase/types").Json;
46589
+ updated_at?: string;
46590
+ valuta?: string;
46591
+ };
46592
+ Relationships: [];
46593
+ };
46594
+ artikelen_veldconfig: {
46595
+ Row: {
46596
+ bron_pad: string;
46597
+ created_at: string;
46598
+ id: string;
46599
+ label: string;
46600
+ sort_order: number;
46601
+ type: string;
46602
+ updated_at: string;
46603
+ veld_key: string;
46604
+ zichtbaar_in_detail: boolean;
46605
+ zichtbaar_in_lijst: boolean;
46606
+ };
46607
+ Insert: {
46608
+ bron_pad: string;
46609
+ created_at?: string;
46610
+ id?: string;
46611
+ label: string;
46612
+ sort_order?: number;
46613
+ type?: string;
46614
+ updated_at?: string;
46615
+ veld_key: string;
46616
+ zichtbaar_in_detail?: boolean;
46617
+ zichtbaar_in_lijst?: boolean;
46618
+ };
46619
+ Update: {
46620
+ bron_pad?: string;
46621
+ created_at?: string;
46622
+ id?: string;
46623
+ label?: string;
46624
+ sort_order?: number;
46625
+ type?: string;
46626
+ updated_at?: string;
46627
+ veld_key?: string;
46628
+ zichtbaar_in_detail?: boolean;
46629
+ zichtbaar_in_lijst?: boolean;
46630
+ };
46631
+ Relationships: [];
46632
+ };
45883
46633
  booking_items: {
45884
46634
  Row: {
45885
46635
  booking_id: string;
@@ -48352,6 +49102,48 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
48352
49102
  };
48353
49103
  Relationships: [];
48354
49104
  };
49105
+ document_printplek_printers: {
49106
+ Row: {
49107
+ created_at: string;
49108
+ documenttype: string;
49109
+ id: string;
49110
+ papierformaat: string | null;
49111
+ print_plek_id: string;
49112
+ printer_id: string | null;
49113
+ updated_at: string;
49114
+ };
49115
+ Insert: {
49116
+ created_at?: string;
49117
+ documenttype: string;
49118
+ id?: string;
49119
+ papierformaat?: string | null;
49120
+ print_plek_id: string;
49121
+ printer_id?: string | null;
49122
+ updated_at?: string;
49123
+ };
49124
+ Update: {
49125
+ created_at?: string;
49126
+ documenttype?: string;
49127
+ id?: string;
49128
+ papierformaat?: string | null;
49129
+ print_plek_id?: string;
49130
+ printer_id?: string | null;
49131
+ updated_at?: string;
49132
+ };
49133
+ Relationships: [{
49134
+ foreignKeyName: "document_printplek_printers_print_plek_id_fkey";
49135
+ columns: ["print_plek_id"];
49136
+ isOneToOne: false;
49137
+ referencedRelation: "print_plekken";
49138
+ referencedColumns: ["id"];
49139
+ }, {
49140
+ foreignKeyName: "document_printplek_printers_printer_id_fkey";
49141
+ columns: ["printer_id"];
49142
+ isOneToOne: false;
49143
+ referencedRelation: "printers";
49144
+ referencedColumns: ["id"];
49145
+ }];
49146
+ };
48355
49147
  document_werkplek_printers: {
48356
49148
  Row: {
48357
49149
  created_at: string;
@@ -54333,6 +55125,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
54333
55125
  last_error_at: string | null;
54334
55126
  last_error_code: string | null;
54335
55127
  last_gateway_status: number | null;
55128
+ last_queued_at: string | null;
54336
55129
  last_response: import("../integrations/supabase/types").Json | null;
54337
55130
  last_sent_hash: string | null;
54338
55131
  locked_by: string | null;
@@ -54356,6 +55149,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
54356
55149
  last_error_at?: string | null;
54357
55150
  last_error_code?: string | null;
54358
55151
  last_gateway_status?: number | null;
55152
+ last_queued_at?: string | null;
54359
55153
  last_response?: import("../integrations/supabase/types").Json | null;
54360
55154
  last_sent_hash?: string | null;
54361
55155
  locked_by?: string | null;
@@ -54379,6 +55173,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
54379
55173
  last_error_at?: string | null;
54380
55174
  last_error_code?: string | null;
54381
55175
  last_gateway_status?: number | null;
55176
+ last_queued_at?: string | null;
54382
55177
  last_response?: import("../integrations/supabase/types").Json | null;
54383
55178
  last_sent_hash?: string | null;
54384
55179
  locked_by?: string | null;
@@ -58549,6 +59344,99 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
58549
59344
  referencedColumns: ["id"];
58550
59345
  }];
58551
59346
  };
59347
+ print_plek_computers: {
59348
+ Row: {
59349
+ computer_naam: string;
59350
+ created_at: string;
59351
+ id: string;
59352
+ print_plek_id: string;
59353
+ updated_at: string;
59354
+ };
59355
+ Insert: {
59356
+ computer_naam: string;
59357
+ created_at?: string;
59358
+ id?: string;
59359
+ print_plek_id: string;
59360
+ updated_at?: string;
59361
+ };
59362
+ Update: {
59363
+ computer_naam?: string;
59364
+ created_at?: string;
59365
+ id?: string;
59366
+ print_plek_id?: string;
59367
+ updated_at?: string;
59368
+ };
59369
+ Relationships: [{
59370
+ foreignKeyName: "print_plek_computers_print_plek_id_fkey";
59371
+ columns: ["print_plek_id"];
59372
+ isOneToOne: false;
59373
+ referencedRelation: "print_plekken";
59374
+ referencedColumns: ["id"];
59375
+ }];
59376
+ };
59377
+ print_plek_koppelingen: {
59378
+ Row: {
59379
+ bron: string;
59380
+ bron_id: string;
59381
+ created_at: string;
59382
+ id: string;
59383
+ label: string | null;
59384
+ print_plek_id: string;
59385
+ updated_at: string;
59386
+ };
59387
+ Insert: {
59388
+ bron: string;
59389
+ bron_id: string;
59390
+ created_at?: string;
59391
+ id?: string;
59392
+ label?: string | null;
59393
+ print_plek_id: string;
59394
+ updated_at?: string;
59395
+ };
59396
+ Update: {
59397
+ bron?: string;
59398
+ bron_id?: string;
59399
+ created_at?: string;
59400
+ id?: string;
59401
+ label?: string | null;
59402
+ print_plek_id?: string;
59403
+ updated_at?: string;
59404
+ };
59405
+ Relationships: [{
59406
+ foreignKeyName: "print_plek_koppelingen_print_plek_id_fkey";
59407
+ columns: ["print_plek_id"];
59408
+ isOneToOne: false;
59409
+ referencedRelation: "print_plekken";
59410
+ referencedColumns: ["id"];
59411
+ }];
59412
+ };
59413
+ print_plekken: {
59414
+ Row: {
59415
+ actief: boolean;
59416
+ created_at: string;
59417
+ id: string;
59418
+ naam: string;
59419
+ omschrijving: string | null;
59420
+ updated_at: string;
59421
+ };
59422
+ Insert: {
59423
+ actief?: boolean;
59424
+ created_at?: string;
59425
+ id?: string;
59426
+ naam: string;
59427
+ omschrijving?: string | null;
59428
+ updated_at?: string;
59429
+ };
59430
+ Update: {
59431
+ actief?: boolean;
59432
+ created_at?: string;
59433
+ id?: string;
59434
+ naam?: string;
59435
+ omschrijving?: string | null;
59436
+ updated_at?: string;
59437
+ };
59438
+ Relationships: [];
59439
+ };
58552
59440
  print_queue_runners: {
58553
59441
  Row: {
58554
59442
  actief: boolean;
@@ -60703,6 +61591,45 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
60703
61591
  };
60704
61592
  Relationships: [];
60705
61593
  };
61594
+ stock_consumption_alerts: {
61595
+ Row: {
61596
+ alert_type: string;
61597
+ created_at: string;
61598
+ id: string;
61599
+ mutation_log_id: string | null;
61600
+ order_id: string | null;
61601
+ order_item_id: string | null;
61602
+ qty: number;
61603
+ reason: string | null;
61604
+ resolved_at: string | null;
61605
+ updated_at: string;
61606
+ };
61607
+ Insert: {
61608
+ alert_type: string;
61609
+ created_at?: string;
61610
+ id?: string;
61611
+ mutation_log_id?: string | null;
61612
+ order_id?: string | null;
61613
+ order_item_id?: string | null;
61614
+ qty?: number;
61615
+ reason?: string | null;
61616
+ resolved_at?: string | null;
61617
+ updated_at?: string;
61618
+ };
61619
+ Update: {
61620
+ alert_type?: string;
61621
+ created_at?: string;
61622
+ id?: string;
61623
+ mutation_log_id?: string | null;
61624
+ order_id?: string | null;
61625
+ order_item_id?: string | null;
61626
+ qty?: number;
61627
+ reason?: string | null;
61628
+ resolved_at?: string | null;
61629
+ updated_at?: string;
61630
+ };
61631
+ Relationships: [];
61632
+ };
60706
61633
  stock_import_runs: {
60707
61634
  Row: {
60708
61635
  connection_id: string | null;
@@ -66297,6 +67224,24 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
66297
67224
  };
66298
67225
  Returns: string;
66299
67226
  };
67227
+ logistics_floriday_finish_push_v3: {
67228
+ Args: {
67229
+ _error?: string;
67230
+ _error_code?: string;
67231
+ _fulfillment_order_id?: string;
67232
+ _gateway_status?: number;
67233
+ _id: string;
67234
+ _max_age_hours?: number;
67235
+ _max_attempts?: number;
67236
+ _outcome: string;
67237
+ _permanent?: boolean;
67238
+ _response?: import("../integrations/supabase/types").Json;
67239
+ _revision: number;
67240
+ _sent_hash?: string;
67241
+ _wait_max_age_hours?: number;
67242
+ };
67243
+ Returns: string;
67244
+ };
66300
67245
  logistics_floriday_prune_pushes: {
66301
67246
  Args: {
66302
67247
  _days?: number;
@@ -66357,6 +67302,14 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
66357
67302
  };
66358
67303
  Returns: import("../integrations/supabase/types").Json;
66359
67304
  };
67305
+ logistics_plan_block: {
67306
+ Args: {
67307
+ p_details?: import("../integrations/supabase/types").Json;
67308
+ p_order_ids: string[];
67309
+ p_reason: string;
67310
+ };
67311
+ Returns: number;
67312
+ };
66360
67313
  logistics_plan_buffer_sql: {
66361
67314
  Args: {
66362
67315
  p_buffer_id: string;
@@ -66725,6 +67678,12 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
66725
67678
  verwijderd: number;
66726
67679
  }[];
66727
67680
  };
67681
+ order_departure_proof: {
67682
+ Args: {
67683
+ p_order_id: string;
67684
+ };
67685
+ Returns: import("../integrations/supabase/types").Json;
67686
+ };
66728
67687
  order_number_prefix: {
66729
67688
  Args: {
66730
67689
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -66932,6 +67891,14 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
66932
67891
  };
66933
67892
  Returns: import("../integrations/supabase/types").Json;
66934
67893
  };
67894
+ pick_print_plekken: {
67895
+ Args: never;
67896
+ Returns: {
67897
+ id: string;
67898
+ naam: string;
67899
+ omschrijving: string;
67900
+ }[];
67901
+ };
66935
67902
  pick_release_expired_locks: {
66936
67903
  Args: never;
66937
67904
  Returns: number;
@@ -66996,6 +67963,13 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
66996
67963
  isSetofReturn: false;
66997
67964
  };
66998
67965
  };
67966
+ pick_set_station_print_plek: {
67967
+ Args: {
67968
+ _print_plek_id: string;
67969
+ _station_id: string;
67970
+ };
67971
+ Returns: string;
67972
+ };
66999
67973
  pick_station_dashboard: {
67000
67974
  Args: never;
67001
67975
  Returns: {
@@ -67008,6 +67982,25 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
67008
67982
  waiting: number;
67009
67983
  }[];
67010
67984
  };
67985
+ pick_station_print_plek: {
67986
+ Args: {
67987
+ _station_id: string;
67988
+ };
67989
+ Returns: {
67990
+ naam: string;
67991
+ omschrijving: string;
67992
+ print_plek_id: string;
67993
+ }[];
67994
+ };
67995
+ pick_station_print_plekken: {
67996
+ Args: never;
67997
+ Returns: {
67998
+ naam: string;
67999
+ omschrijving: string;
68000
+ print_plek_id: string;
68001
+ station_id: string;
68002
+ }[];
68003
+ };
67011
68004
  pick_station_slugify: {
67012
68005
  Args: {
67013
68006
  _id: string;
@@ -67856,12 +68849,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
67856
68849
  signup_mail_purpose?: string;
67857
68850
  transport_register_days_before?: number;
67858
68851
  updated_at?: string;
67859
- user_id
67860
- /**
67861
- * Deelt alle orders in, in batches. De client roept dit net zo lang aan tot
67862
- * `done` waar is en schakelt dan door naar de volgende fase.
67863
- */
67864
- ?: string;
68852
+ user_id?: string;
67865
68853
  };
67866
68854
  Relationships: [];
67867
68855
  };
@@ -68483,6 +69471,99 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
68483
69471
  };
68484
69472
  Relationships: [];
68485
69473
  };
69474
+ artikelen_cache: {
69475
+ Row: {
69476
+ artikelcode: string;
69477
+ bron: string;
69478
+ bruto_prijs_cent: number | null;
69479
+ created_at: string;
69480
+ eenheid: string;
69481
+ fabrikant: string | null;
69482
+ fetched_at: string;
69483
+ gtin: string | null;
69484
+ id: string;
69485
+ naam: string;
69486
+ netto_prijs_cent: number | null;
69487
+ omschrijving: string | null;
69488
+ raw: import("../integrations/supabase/types").Json;
69489
+ updated_at: string;
69490
+ valuta: string;
69491
+ };
69492
+ Insert: {
69493
+ artikelcode: string;
69494
+ bron?: string;
69495
+ bruto_prijs_cent?: number | null;
69496
+ created_at?: string;
69497
+ eenheid?: string;
69498
+ fabrikant?: string | null;
69499
+ fetched_at?: string;
69500
+ gtin?: string | null;
69501
+ id?: string;
69502
+ naam: string;
69503
+ netto_prijs_cent?: number | null;
69504
+ omschrijving?: string | null;
69505
+ raw?: import("../integrations/supabase/types").Json;
69506
+ updated_at?: string;
69507
+ valuta?: string;
69508
+ };
69509
+ Update: {
69510
+ artikelcode?: string;
69511
+ bron?: string;
69512
+ bruto_prijs_cent?: number | null;
69513
+ created_at?: string;
69514
+ eenheid?: string;
69515
+ fabrikant?: string | null;
69516
+ fetched_at?: string;
69517
+ gtin?: string | null;
69518
+ id?: string;
69519
+ naam?: string;
69520
+ netto_prijs_cent?: number | null;
69521
+ omschrijving?: string | null;
69522
+ raw?: import("../integrations/supabase/types").Json;
69523
+ updated_at?: string;
69524
+ valuta?: string;
69525
+ };
69526
+ Relationships: [];
69527
+ };
69528
+ artikelen_veldconfig: {
69529
+ Row: {
69530
+ bron_pad: string;
69531
+ created_at: string;
69532
+ id: string;
69533
+ label: string;
69534
+ sort_order: number;
69535
+ type: string;
69536
+ updated_at: string;
69537
+ veld_key: string;
69538
+ zichtbaar_in_detail: boolean;
69539
+ zichtbaar_in_lijst: boolean;
69540
+ };
69541
+ Insert: {
69542
+ bron_pad: string;
69543
+ created_at?: string;
69544
+ id?: string;
69545
+ label: string;
69546
+ sort_order?: number;
69547
+ type?: string;
69548
+ updated_at?: string;
69549
+ veld_key: string;
69550
+ zichtbaar_in_detail?: boolean;
69551
+ zichtbaar_in_lijst?: boolean;
69552
+ };
69553
+ Update: {
69554
+ bron_pad?: string;
69555
+ created_at?: string;
69556
+ id?: string;
69557
+ label?: string;
69558
+ sort_order?: number;
69559
+ type?: string;
69560
+ updated_at?: string;
69561
+ veld_key?: string;
69562
+ zichtbaar_in_detail?: boolean;
69563
+ zichtbaar_in_lijst?: boolean;
69564
+ };
69565
+ Relationships: [];
69566
+ };
68486
69567
  booking_items: {
68487
69568
  Row: {
68488
69569
  booking_id: string;
@@ -70955,6 +72036,48 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
70955
72036
  };
70956
72037
  Relationships: [];
70957
72038
  };
72039
+ document_printplek_printers: {
72040
+ Row: {
72041
+ created_at: string;
72042
+ documenttype: string;
72043
+ id: string;
72044
+ papierformaat: string | null;
72045
+ print_plek_id: string;
72046
+ printer_id: string | null;
72047
+ updated_at: string;
72048
+ };
72049
+ Insert: {
72050
+ created_at?: string;
72051
+ documenttype: string;
72052
+ id?: string;
72053
+ papierformaat?: string | null;
72054
+ print_plek_id: string;
72055
+ printer_id?: string | null;
72056
+ updated_at?: string;
72057
+ };
72058
+ Update: {
72059
+ created_at?: string;
72060
+ documenttype?: string;
72061
+ id?: string;
72062
+ papierformaat?: string | null;
72063
+ print_plek_id?: string;
72064
+ printer_id?: string | null;
72065
+ updated_at?: string;
72066
+ };
72067
+ Relationships: [{
72068
+ foreignKeyName: "document_printplek_printers_print_plek_id_fkey";
72069
+ columns: ["print_plek_id"];
72070
+ isOneToOne: false;
72071
+ referencedRelation: "print_plekken";
72072
+ referencedColumns: ["id"];
72073
+ }, {
72074
+ foreignKeyName: "document_printplek_printers_printer_id_fkey";
72075
+ columns: ["printer_id"];
72076
+ isOneToOne: false;
72077
+ referencedRelation: "printers";
72078
+ referencedColumns: ["id"];
72079
+ }];
72080
+ };
70958
72081
  document_werkplek_printers: {
70959
72082
  Row: {
70960
72083
  created_at: string;
@@ -76936,6 +78059,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
76936
78059
  last_error_at: string | null;
76937
78060
  last_error_code: string | null;
76938
78061
  last_gateway_status: number | null;
78062
+ last_queued_at: string | null;
76939
78063
  last_response: import("../integrations/supabase/types").Json | null;
76940
78064
  last_sent_hash: string | null;
76941
78065
  locked_by: string | null;
@@ -76959,6 +78083,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
76959
78083
  last_error_at?: string | null;
76960
78084
  last_error_code?: string | null;
76961
78085
  last_gateway_status?: number | null;
78086
+ last_queued_at?: string | null;
76962
78087
  last_response?: import("../integrations/supabase/types").Json | null;
76963
78088
  last_sent_hash?: string | null;
76964
78089
  locked_by?: string | null;
@@ -76982,6 +78107,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
76982
78107
  last_error_at?: string | null;
76983
78108
  last_error_code?: string | null;
76984
78109
  last_gateway_status?: number | null;
78110
+ last_queued_at?: string | null;
76985
78111
  last_response?: import("../integrations/supabase/types").Json | null;
76986
78112
  last_sent_hash?: string | null;
76987
78113
  locked_by?: string | null;
@@ -81152,6 +82278,99 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
81152
82278
  referencedColumns: ["id"];
81153
82279
  }];
81154
82280
  };
82281
+ print_plek_computers: {
82282
+ Row: {
82283
+ computer_naam: string;
82284
+ created_at: string;
82285
+ id: string;
82286
+ print_plek_id: string;
82287
+ updated_at: string;
82288
+ };
82289
+ Insert: {
82290
+ computer_naam: string;
82291
+ created_at?: string;
82292
+ id?: string;
82293
+ print_plek_id: string;
82294
+ updated_at?: string;
82295
+ };
82296
+ Update: {
82297
+ computer_naam?: string;
82298
+ created_at?: string;
82299
+ id?: string;
82300
+ print_plek_id?: string;
82301
+ updated_at?: string;
82302
+ };
82303
+ Relationships: [{
82304
+ foreignKeyName: "print_plek_computers_print_plek_id_fkey";
82305
+ columns: ["print_plek_id"];
82306
+ isOneToOne: false;
82307
+ referencedRelation: "print_plekken";
82308
+ referencedColumns: ["id"];
82309
+ }];
82310
+ };
82311
+ print_plek_koppelingen: {
82312
+ Row: {
82313
+ bron: string;
82314
+ bron_id: string;
82315
+ created_at: string;
82316
+ id: string;
82317
+ label: string | null;
82318
+ print_plek_id: string;
82319
+ updated_at: string;
82320
+ };
82321
+ Insert: {
82322
+ bron: string;
82323
+ bron_id: string;
82324
+ created_at?: string;
82325
+ id?: string;
82326
+ label?: string | null;
82327
+ print_plek_id: string;
82328
+ updated_at?: string;
82329
+ };
82330
+ Update: {
82331
+ bron?: string;
82332
+ bron_id?: string;
82333
+ created_at?: string;
82334
+ id?: string;
82335
+ label?: string | null;
82336
+ print_plek_id?: string;
82337
+ updated_at?: string;
82338
+ };
82339
+ Relationships: [{
82340
+ foreignKeyName: "print_plek_koppelingen_print_plek_id_fkey";
82341
+ columns: ["print_plek_id"];
82342
+ isOneToOne: false;
82343
+ referencedRelation: "print_plekken";
82344
+ referencedColumns: ["id"];
82345
+ }];
82346
+ };
82347
+ print_plekken: {
82348
+ Row: {
82349
+ actief: boolean;
82350
+ created_at: string;
82351
+ id: string;
82352
+ naam: string;
82353
+ omschrijving: string | null;
82354
+ updated_at: string;
82355
+ };
82356
+ Insert: {
82357
+ actief?: boolean;
82358
+ created_at?: string;
82359
+ id?: string;
82360
+ naam: string;
82361
+ omschrijving?: string | null;
82362
+ updated_at?: string;
82363
+ };
82364
+ Update: {
82365
+ actief?: boolean;
82366
+ created_at?: string;
82367
+ id?: string;
82368
+ naam?: string;
82369
+ omschrijving?: string | null;
82370
+ updated_at?: string;
82371
+ };
82372
+ Relationships: [];
82373
+ };
81155
82374
  print_queue_runners: {
81156
82375
  Row: {
81157
82376
  actief: boolean;
@@ -83306,6 +84525,45 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
83306
84525
  };
83307
84526
  Relationships: [];
83308
84527
  };
84528
+ stock_consumption_alerts: {
84529
+ Row: {
84530
+ alert_type: string;
84531
+ created_at: string;
84532
+ id: string;
84533
+ mutation_log_id: string | null;
84534
+ order_id: string | null;
84535
+ order_item_id: string | null;
84536
+ qty: number;
84537
+ reason: string | null;
84538
+ resolved_at: string | null;
84539
+ updated_at: string;
84540
+ };
84541
+ Insert: {
84542
+ alert_type: string;
84543
+ created_at?: string;
84544
+ id?: string;
84545
+ mutation_log_id?: string | null;
84546
+ order_id?: string | null;
84547
+ order_item_id?: string | null;
84548
+ qty?: number;
84549
+ reason?: string | null;
84550
+ resolved_at?: string | null;
84551
+ updated_at?: string;
84552
+ };
84553
+ Update: {
84554
+ alert_type?: string;
84555
+ created_at?: string;
84556
+ id?: string;
84557
+ mutation_log_id?: string | null;
84558
+ order_id?: string | null;
84559
+ order_item_id?: string | null;
84560
+ qty?: number;
84561
+ reason?: string | null;
84562
+ resolved_at?: string | null;
84563
+ updated_at?: string;
84564
+ };
84565
+ Relationships: [];
84566
+ };
83309
84567
  stock_import_runs: {
83310
84568
  Row: {
83311
84569
  connection_id: string | null;
@@ -88900,6 +90158,24 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
88900
90158
  };
88901
90159
  Returns: string;
88902
90160
  };
90161
+ logistics_floriday_finish_push_v3: {
90162
+ Args: {
90163
+ _error?: string;
90164
+ _error_code?: string;
90165
+ _fulfillment_order_id?: string;
90166
+ _gateway_status?: number;
90167
+ _id: string;
90168
+ _max_age_hours?: number;
90169
+ _max_attempts?: number;
90170
+ _outcome: string;
90171
+ _permanent?: boolean;
90172
+ _response?: import("../integrations/supabase/types").Json;
90173
+ _revision: number;
90174
+ _sent_hash?: string;
90175
+ _wait_max_age_hours?: number;
90176
+ };
90177
+ Returns: string;
90178
+ };
88903
90179
  logistics_floriday_prune_pushes: {
88904
90180
  Args: {
88905
90181
  _days?: number;
@@ -88960,6 +90236,14 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
88960
90236
  };
88961
90237
  Returns: import("../integrations/supabase/types").Json;
88962
90238
  };
90239
+ logistics_plan_block: {
90240
+ Args: {
90241
+ p_details?: import("../integrations/supabase/types").Json;
90242
+ p_order_ids: string[];
90243
+ p_reason: string;
90244
+ };
90245
+ Returns: number;
90246
+ };
88963
90247
  logistics_plan_buffer_sql: {
88964
90248
  Args: {
88965
90249
  p_buffer_id: string;
@@ -89328,6 +90612,12 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
89328
90612
  verwijderd: number;
89329
90613
  }[];
89330
90614
  };
90615
+ order_departure_proof: {
90616
+ Args: {
90617
+ p_order_id: string;
90618
+ };
90619
+ Returns: import("../integrations/supabase/types").Json;
90620
+ };
89331
90621
  order_number_prefix: {
89332
90622
  Args: {
89333
90623
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -89535,6 +90825,14 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
89535
90825
  };
89536
90826
  Returns: import("../integrations/supabase/types").Json;
89537
90827
  };
90828
+ pick_print_plekken: {
90829
+ Args: never;
90830
+ Returns: {
90831
+ id: string;
90832
+ naam: string;
90833
+ omschrijving: string;
90834
+ }[];
90835
+ };
89538
90836
  pick_release_expired_locks: {
89539
90837
  Args: never;
89540
90838
  Returns: number;
@@ -89599,6 +90897,13 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
89599
90897
  isSetofReturn: false;
89600
90898
  };
89601
90899
  };
90900
+ pick_set_station_print_plek: {
90901
+ Args: {
90902
+ _print_plek_id: string;
90903
+ _station_id: string;
90904
+ };
90905
+ Returns: string;
90906
+ };
89602
90907
  pick_station_dashboard: {
89603
90908
  Args: never;
89604
90909
  Returns: {
@@ -89611,6 +90916,25 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
89611
90916
  waiting: number;
89612
90917
  }[];
89613
90918
  };
90919
+ pick_station_print_plek: {
90920
+ Args: {
90921
+ _station_id: string;
90922
+ };
90923
+ Returns: {
90924
+ naam: string;
90925
+ omschrijving: string;
90926
+ print_plek_id: string;
90927
+ }[];
90928
+ };
90929
+ pick_station_print_plekken: {
90930
+ Args: never;
90931
+ Returns: {
90932
+ naam: string;
90933
+ omschrijving: string;
90934
+ print_plek_id: string;
90935
+ station_id: string;
90936
+ }[];
90937
+ };
89614
90938
  pick_station_slugify: {
89615
90939
  Args: {
89616
90940
  _id: string;
@@ -90457,12 +91781,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
90457
91781
  signup_mail_purpose?: string;
90458
91782
  transport_register_days_before?: number;
90459
91783
  updated_at?: string;
90460
- user_id
90461
- /**
90462
- * Deelt alle orders in, in batches. De client roept dit net zo lang aan tot
90463
- * `done` waar is en schakelt dan door naar de volgende fase.
90464
- */
90465
- ?: string;
91784
+ user_id?: string;
90466
91785
  };
90467
91786
  Relationships: [];
90468
91787
  };
@@ -91084,6 +92403,99 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
91084
92403
  };
91085
92404
  Relationships: [];
91086
92405
  };
92406
+ artikelen_cache: {
92407
+ Row: {
92408
+ artikelcode: string;
92409
+ bron: string;
92410
+ bruto_prijs_cent: number | null;
92411
+ created_at: string;
92412
+ eenheid: string;
92413
+ fabrikant: string | null;
92414
+ fetched_at: string;
92415
+ gtin: string | null;
92416
+ id: string;
92417
+ naam: string;
92418
+ netto_prijs_cent: number | null;
92419
+ omschrijving: string | null;
92420
+ raw: import("../integrations/supabase/types").Json;
92421
+ updated_at: string;
92422
+ valuta: string;
92423
+ };
92424
+ Insert: {
92425
+ artikelcode: string;
92426
+ bron?: string;
92427
+ bruto_prijs_cent?: number | null;
92428
+ created_at?: string;
92429
+ eenheid?: string;
92430
+ fabrikant?: string | null;
92431
+ fetched_at?: string;
92432
+ gtin?: string | null;
92433
+ id?: string;
92434
+ naam: string;
92435
+ netto_prijs_cent?: number | null;
92436
+ omschrijving?: string | null;
92437
+ raw?: import("../integrations/supabase/types").Json;
92438
+ updated_at?: string;
92439
+ valuta?: string;
92440
+ };
92441
+ Update: {
92442
+ artikelcode?: string;
92443
+ bron?: string;
92444
+ bruto_prijs_cent?: number | null;
92445
+ created_at?: string;
92446
+ eenheid?: string;
92447
+ fabrikant?: string | null;
92448
+ fetched_at?: string;
92449
+ gtin?: string | null;
92450
+ id?: string;
92451
+ naam?: string;
92452
+ netto_prijs_cent?: number | null;
92453
+ omschrijving?: string | null;
92454
+ raw?: import("../integrations/supabase/types").Json;
92455
+ updated_at?: string;
92456
+ valuta?: string;
92457
+ };
92458
+ Relationships: [];
92459
+ };
92460
+ artikelen_veldconfig: {
92461
+ Row: {
92462
+ bron_pad: string;
92463
+ created_at: string;
92464
+ id: string;
92465
+ label: string;
92466
+ sort_order: number;
92467
+ type: string;
92468
+ updated_at: string;
92469
+ veld_key: string;
92470
+ zichtbaar_in_detail: boolean;
92471
+ zichtbaar_in_lijst: boolean;
92472
+ };
92473
+ Insert: {
92474
+ bron_pad: string;
92475
+ created_at?: string;
92476
+ id?: string;
92477
+ label: string;
92478
+ sort_order?: number;
92479
+ type?: string;
92480
+ updated_at?: string;
92481
+ veld_key: string;
92482
+ zichtbaar_in_detail?: boolean;
92483
+ zichtbaar_in_lijst?: boolean;
92484
+ };
92485
+ Update: {
92486
+ bron_pad?: string;
92487
+ created_at?: string;
92488
+ id?: string;
92489
+ label?: string;
92490
+ sort_order?: number;
92491
+ type?: string;
92492
+ updated_at?: string;
92493
+ veld_key?: string;
92494
+ zichtbaar_in_detail?: boolean;
92495
+ zichtbaar_in_lijst?: boolean;
92496
+ };
92497
+ Relationships: [];
92498
+ };
91087
92499
  booking_items: {
91088
92500
  Row: {
91089
92501
  booking_id: string;
@@ -93556,6 +94968,48 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
93556
94968
  };
93557
94969
  Relationships: [];
93558
94970
  };
94971
+ document_printplek_printers: {
94972
+ Row: {
94973
+ created_at: string;
94974
+ documenttype: string;
94975
+ id: string;
94976
+ papierformaat: string | null;
94977
+ print_plek_id: string;
94978
+ printer_id: string | null;
94979
+ updated_at: string;
94980
+ };
94981
+ Insert: {
94982
+ created_at?: string;
94983
+ documenttype: string;
94984
+ id?: string;
94985
+ papierformaat?: string | null;
94986
+ print_plek_id: string;
94987
+ printer_id?: string | null;
94988
+ updated_at?: string;
94989
+ };
94990
+ Update: {
94991
+ created_at?: string;
94992
+ documenttype?: string;
94993
+ id?: string;
94994
+ papierformaat?: string | null;
94995
+ print_plek_id?: string;
94996
+ printer_id?: string | null;
94997
+ updated_at?: string;
94998
+ };
94999
+ Relationships: [{
95000
+ foreignKeyName: "document_printplek_printers_print_plek_id_fkey";
95001
+ columns: ["print_plek_id"];
95002
+ isOneToOne: false;
95003
+ referencedRelation: "print_plekken";
95004
+ referencedColumns: ["id"];
95005
+ }, {
95006
+ foreignKeyName: "document_printplek_printers_printer_id_fkey";
95007
+ columns: ["printer_id"];
95008
+ isOneToOne: false;
95009
+ referencedRelation: "printers";
95010
+ referencedColumns: ["id"];
95011
+ }];
95012
+ };
93559
95013
  document_werkplek_printers: {
93560
95014
  Row: {
93561
95015
  created_at: string;
@@ -99537,6 +100991,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
99537
100991
  last_error_at: string | null;
99538
100992
  last_error_code: string | null;
99539
100993
  last_gateway_status: number | null;
100994
+ last_queued_at: string | null;
99540
100995
  last_response: import("../integrations/supabase/types").Json | null;
99541
100996
  last_sent_hash: string | null;
99542
100997
  locked_by: string | null;
@@ -99560,6 +101015,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
99560
101015
  last_error_at?: string | null;
99561
101016
  last_error_code?: string | null;
99562
101017
  last_gateway_status?: number | null;
101018
+ last_queued_at?: string | null;
99563
101019
  last_response?: import("../integrations/supabase/types").Json | null;
99564
101020
  last_sent_hash?: string | null;
99565
101021
  locked_by?: string | null;
@@ -99583,6 +101039,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
99583
101039
  last_error_at?: string | null;
99584
101040
  last_error_code?: string | null;
99585
101041
  last_gateway_status?: number | null;
101042
+ last_queued_at?: string | null;
99586
101043
  last_response?: import("../integrations/supabase/types").Json | null;
99587
101044
  last_sent_hash?: string | null;
99588
101045
  locked_by?: string | null;
@@ -103753,6 +105210,99 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
103753
105210
  referencedColumns: ["id"];
103754
105211
  }];
103755
105212
  };
105213
+ print_plek_computers: {
105214
+ Row: {
105215
+ computer_naam: string;
105216
+ created_at: string;
105217
+ id: string;
105218
+ print_plek_id: string;
105219
+ updated_at: string;
105220
+ };
105221
+ Insert: {
105222
+ computer_naam: string;
105223
+ created_at?: string;
105224
+ id?: string;
105225
+ print_plek_id: string;
105226
+ updated_at?: string;
105227
+ };
105228
+ Update: {
105229
+ computer_naam?: string;
105230
+ created_at?: string;
105231
+ id?: string;
105232
+ print_plek_id?: string;
105233
+ updated_at?: string;
105234
+ };
105235
+ Relationships: [{
105236
+ foreignKeyName: "print_plek_computers_print_plek_id_fkey";
105237
+ columns: ["print_plek_id"];
105238
+ isOneToOne: false;
105239
+ referencedRelation: "print_plekken";
105240
+ referencedColumns: ["id"];
105241
+ }];
105242
+ };
105243
+ print_plek_koppelingen: {
105244
+ Row: {
105245
+ bron: string;
105246
+ bron_id: string;
105247
+ created_at: string;
105248
+ id: string;
105249
+ label: string | null;
105250
+ print_plek_id: string;
105251
+ updated_at: string;
105252
+ };
105253
+ Insert: {
105254
+ bron: string;
105255
+ bron_id: string;
105256
+ created_at?: string;
105257
+ id?: string;
105258
+ label?: string | null;
105259
+ print_plek_id: string;
105260
+ updated_at?: string;
105261
+ };
105262
+ Update: {
105263
+ bron?: string;
105264
+ bron_id?: string;
105265
+ created_at?: string;
105266
+ id?: string;
105267
+ label?: string | null;
105268
+ print_plek_id?: string;
105269
+ updated_at?: string;
105270
+ };
105271
+ Relationships: [{
105272
+ foreignKeyName: "print_plek_koppelingen_print_plek_id_fkey";
105273
+ columns: ["print_plek_id"];
105274
+ isOneToOne: false;
105275
+ referencedRelation: "print_plekken";
105276
+ referencedColumns: ["id"];
105277
+ }];
105278
+ };
105279
+ print_plekken: {
105280
+ Row: {
105281
+ actief: boolean;
105282
+ created_at: string;
105283
+ id: string;
105284
+ naam: string;
105285
+ omschrijving: string | null;
105286
+ updated_at: string;
105287
+ };
105288
+ Insert: {
105289
+ actief?: boolean;
105290
+ created_at?: string;
105291
+ id?: string;
105292
+ naam: string;
105293
+ omschrijving?: string | null;
105294
+ updated_at?: string;
105295
+ };
105296
+ Update: {
105297
+ actief?: boolean;
105298
+ created_at?: string;
105299
+ id?: string;
105300
+ naam?: string;
105301
+ omschrijving?: string | null;
105302
+ updated_at?: string;
105303
+ };
105304
+ Relationships: [];
105305
+ };
103756
105306
  print_queue_runners: {
103757
105307
  Row: {
103758
105308
  actief: boolean;
@@ -105907,6 +107457,45 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
105907
107457
  };
105908
107458
  Relationships: [];
105909
107459
  };
107460
+ stock_consumption_alerts: {
107461
+ Row: {
107462
+ alert_type: string;
107463
+ created_at: string;
107464
+ id: string;
107465
+ mutation_log_id: string | null;
107466
+ order_id: string | null;
107467
+ order_item_id: string | null;
107468
+ qty: number;
107469
+ reason: string | null;
107470
+ resolved_at: string | null;
107471
+ updated_at: string;
107472
+ };
107473
+ Insert: {
107474
+ alert_type: string;
107475
+ created_at?: string;
107476
+ id?: string;
107477
+ mutation_log_id?: string | null;
107478
+ order_id?: string | null;
107479
+ order_item_id?: string | null;
107480
+ qty?: number;
107481
+ reason?: string | null;
107482
+ resolved_at?: string | null;
107483
+ updated_at?: string;
107484
+ };
107485
+ Update: {
107486
+ alert_type?: string;
107487
+ created_at?: string;
107488
+ id?: string;
107489
+ mutation_log_id?: string | null;
107490
+ order_id?: string | null;
107491
+ order_item_id?: string | null;
107492
+ qty?: number;
107493
+ reason?: string | null;
107494
+ resolved_at?: string | null;
107495
+ updated_at?: string;
107496
+ };
107497
+ Relationships: [];
107498
+ };
105910
107499
  stock_import_runs: {
105911
107500
  Row: {
105912
107501
  connection_id: string | null;
@@ -111501,6 +113090,24 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
111501
113090
  };
111502
113091
  Returns: string;
111503
113092
  };
113093
+ logistics_floriday_finish_push_v3: {
113094
+ Args: {
113095
+ _error?: string;
113096
+ _error_code?: string;
113097
+ _fulfillment_order_id?: string;
113098
+ _gateway_status?: number;
113099
+ _id: string;
113100
+ _max_age_hours?: number;
113101
+ _max_attempts?: number;
113102
+ _outcome: string;
113103
+ _permanent?: boolean;
113104
+ _response?: import("../integrations/supabase/types").Json;
113105
+ _revision: number;
113106
+ _sent_hash?: string;
113107
+ _wait_max_age_hours?: number;
113108
+ };
113109
+ Returns: string;
113110
+ };
111504
113111
  logistics_floriday_prune_pushes: {
111505
113112
  Args: {
111506
113113
  _days?: number;
@@ -111561,6 +113168,14 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
111561
113168
  };
111562
113169
  Returns: import("../integrations/supabase/types").Json;
111563
113170
  };
113171
+ logistics_plan_block: {
113172
+ Args: {
113173
+ p_details?: import("../integrations/supabase/types").Json;
113174
+ p_order_ids: string[];
113175
+ p_reason: string;
113176
+ };
113177
+ Returns: number;
113178
+ };
111564
113179
  logistics_plan_buffer_sql: {
111565
113180
  Args: {
111566
113181
  p_buffer_id: string;
@@ -111929,6 +113544,12 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
111929
113544
  verwijderd: number;
111930
113545
  }[];
111931
113546
  };
113547
+ order_departure_proof: {
113548
+ Args: {
113549
+ p_order_id: string;
113550
+ };
113551
+ Returns: import("../integrations/supabase/types").Json;
113552
+ };
111932
113553
  order_number_prefix: {
111933
113554
  Args: {
111934
113555
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -112136,6 +113757,14 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
112136
113757
  };
112137
113758
  Returns: import("../integrations/supabase/types").Json;
112138
113759
  };
113760
+ pick_print_plekken: {
113761
+ Args: never;
113762
+ Returns: {
113763
+ id: string;
113764
+ naam: string;
113765
+ omschrijving: string;
113766
+ }[];
113767
+ };
112139
113768
  pick_release_expired_locks: {
112140
113769
  Args: never;
112141
113770
  Returns: number;
@@ -112200,6 +113829,13 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
112200
113829
  isSetofReturn: false;
112201
113830
  };
112202
113831
  };
113832
+ pick_set_station_print_plek: {
113833
+ Args: {
113834
+ _print_plek_id: string;
113835
+ _station_id: string;
113836
+ };
113837
+ Returns: string;
113838
+ };
112203
113839
  pick_station_dashboard: {
112204
113840
  Args: never;
112205
113841
  Returns: {
@@ -112212,6 +113848,25 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
112212
113848
  waiting: number;
112213
113849
  }[];
112214
113850
  };
113851
+ pick_station_print_plek: {
113852
+ Args: {
113853
+ _station_id: string;
113854
+ };
113855
+ Returns: {
113856
+ naam: string;
113857
+ omschrijving: string;
113858
+ print_plek_id: string;
113859
+ }[];
113860
+ };
113861
+ pick_station_print_plekken: {
113862
+ Args: never;
113863
+ Returns: {
113864
+ naam: string;
113865
+ omschrijving: string;
113866
+ print_plek_id: string;
113867
+ station_id: string;
113868
+ }[];
113869
+ };
112215
113870
  pick_station_slugify: {
112216
113871
  Args: {
112217
113872
  _id: string;