@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
@@ -673,6 +673,99 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
673
673
  };
674
674
  Relationships: [];
675
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("./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("./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("./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
+ };
676
769
  booking_items: {
677
770
  Row: {
678
771
  booking_id: string;
@@ -3145,6 +3238,48 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
3145
3238
  };
3146
3239
  Relationships: [];
3147
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
+ };
3148
3283
  document_werkplek_printers: {
3149
3284
  Row: {
3150
3285
  created_at: string;
@@ -9126,6 +9261,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9126
9261
  last_error_at: string | null;
9127
9262
  last_error_code: string | null;
9128
9263
  last_gateway_status: number | null;
9264
+ last_queued_at: string | null;
9129
9265
  last_response: import("./types").Json | null;
9130
9266
  last_sent_hash: string | null;
9131
9267
  locked_by: string | null;
@@ -9149,6 +9285,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9149
9285
  last_error_at?: string | null;
9150
9286
  last_error_code?: string | null;
9151
9287
  last_gateway_status?: number | null;
9288
+ last_queued_at?: string | null;
9152
9289
  last_response?: import("./types").Json | null;
9153
9290
  last_sent_hash?: string | null;
9154
9291
  locked_by?: string | null;
@@ -9172,6 +9309,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9172
9309
  last_error_at?: string | null;
9173
9310
  last_error_code?: string | null;
9174
9311
  last_gateway_status?: number | null;
9312
+ last_queued_at?: string | null;
9175
9313
  last_response?: import("./types").Json | null;
9176
9314
  last_sent_hash?: string | null;
9177
9315
  locked_by?: string | null;
@@ -13342,6 +13480,99 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
13342
13480
  referencedColumns: ["id"];
13343
13481
  }];
13344
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
+ };
13345
13576
  print_queue_runners: {
13346
13577
  Row: {
13347
13578
  actief: boolean;
@@ -15496,6 +15727,45 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
15496
15727
  };
15497
15728
  Relationships: [];
15498
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
+ };
15499
15769
  stock_import_runs: {
15500
15770
  Row: {
15501
15771
  connection_id: string | null;
@@ -21090,6 +21360,24 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21090
21360
  };
21091
21361
  Returns: string;
21092
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("./types").Json;
21375
+ _revision: number;
21376
+ _sent_hash?: string;
21377
+ _wait_max_age_hours?: number;
21378
+ };
21379
+ Returns: string;
21380
+ };
21093
21381
  logistics_floriday_prune_pushes: {
21094
21382
  Args: {
21095
21383
  _days?: number;
@@ -21150,6 +21438,14 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21150
21438
  };
21151
21439
  Returns: import("./types").Json;
21152
21440
  };
21441
+ logistics_plan_block: {
21442
+ Args: {
21443
+ p_details?: import("./types").Json;
21444
+ p_order_ids: string[];
21445
+ p_reason: string;
21446
+ };
21447
+ Returns: number;
21448
+ };
21153
21449
  logistics_plan_buffer_sql: {
21154
21450
  Args: {
21155
21451
  p_buffer_id: string;
@@ -21518,6 +21814,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21518
21814
  verwijderd: number;
21519
21815
  }[];
21520
21816
  };
21817
+ order_departure_proof: {
21818
+ Args: {
21819
+ p_order_id: string;
21820
+ };
21821
+ Returns: import("./types").Json;
21822
+ };
21521
21823
  order_number_prefix: {
21522
21824
  Args: {
21523
21825
  p_custom_fields?: import("./types").Json;
@@ -21725,6 +22027,14 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21725
22027
  };
21726
22028
  Returns: import("./types").Json;
21727
22029
  };
22030
+ pick_print_plekken: {
22031
+ Args: never;
22032
+ Returns: {
22033
+ id: string;
22034
+ naam: string;
22035
+ omschrijving: string;
22036
+ }[];
22037
+ };
21728
22038
  pick_release_expired_locks: {
21729
22039
  Args: never;
21730
22040
  Returns: number;
@@ -21789,6 +22099,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21789
22099
  isSetofReturn: false;
21790
22100
  };
21791
22101
  };
22102
+ pick_set_station_print_plek: {
22103
+ Args: {
22104
+ _print_plek_id: string;
22105
+ _station_id: string;
22106
+ };
22107
+ Returns: string;
22108
+ };
21792
22109
  pick_station_dashboard: {
21793
22110
  Args: never;
21794
22111
  Returns: {
@@ -21801,6 +22118,25 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21801
22118
  waiting: number;
21802
22119
  }[];
21803
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
+ };
21804
22140
  pick_station_slugify: {
21805
22141
  Args: {
21806
22142
  _id: string;