@flowselections/logistiek-engine 1.0.4 → 1.0.5

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 (48) hide show
  1. package/README.md +24 -24
  2. package/dist-lib/components/FloridayPushCard.d.ts +2 -0
  3. package/dist-lib/components/FloridayPushCard.d.ts.map +1 -0
  4. package/dist-lib/components/FloridayPushCard.js +32 -0
  5. package/dist-lib/components/PrintjobsCard.d.ts +2 -0
  6. package/dist-lib/components/PrintjobsCard.d.ts.map +1 -0
  7. package/dist-lib/components/PrintjobsCard.js +35 -0
  8. package/dist-lib/components/RegiePage.d.ts.map +1 -1
  9. package/dist-lib/components/RegiePage.js +3 -1
  10. package/dist-lib/hooks/useFloridayPushes.d.ts +20 -0
  11. package/dist-lib/hooks/useFloridayPushes.d.ts.map +1 -0
  12. package/dist-lib/hooks/useFloridayPushes.js +55 -0
  13. package/dist-lib/hooks/usePrintjobs.d.ts +19 -0
  14. package/dist-lib/hooks/usePrintjobs.d.ts.map +1 -0
  15. package/dist-lib/hooks/usePrintjobs.js +60 -0
  16. package/dist-lib/index.d.ts +3 -0
  17. package/dist-lib/index.d.ts.map +1 -1
  18. package/dist-lib/index.js +3 -0
  19. package/dist-lib/integrations/supabase/auth-middleware.d.ts +387 -1
  20. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  21. package/dist-lib/integrations/supabase/client.d.ts +387 -1
  22. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  23. package/dist-lib/integrations/supabase/client.server.d.ts +387 -1
  24. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  25. package/dist-lib/integrations/supabase/types.d.ts +388 -2
  26. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  27. package/dist-lib/integrations/supabase/types.js +12 -1
  28. package/dist-lib/lib/floridayDocuments.functions.d.ts +1161 -3
  29. package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/floridayPush.functions.d.ts +20689 -0
  31. package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -0
  32. package/dist-lib/lib/floridayPush.functions.js +20 -0
  33. package/dist-lib/lib/floridayPush.server.d.ts +45 -0
  34. package/dist-lib/lib/floridayPush.server.d.ts.map +1 -0
  35. package/dist-lib/lib/floridayPush.server.js +219 -0
  36. package/dist-lib/lib/handlers/logistics-tick.server.d.ts.map +1 -1
  37. package/dist-lib/lib/handlers/logistics-tick.server.js +11 -0
  38. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +1940 -35
  39. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
  40. package/dist-lib/lib/loadCarrierTaskSync.server.d.ts.map +1 -1
  41. package/dist-lib/lib/loadCarrierTaskSync.server.js +9 -0
  42. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +774 -2
  43. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
  44. package/dist-lib/lib/logisticsRecalculate.functions.d.ts +387 -1
  45. package/dist-lib/lib/logisticsRecalculate.functions.d.ts.map +1 -1
  46. package/dist-lib/lib/modulePrompts.d.ts.map +1 -1
  47. package/dist-lib/lib/modulePrompts.js +949 -911
  48. package/package.json +2 -2
@@ -5833,12 +5833,17 @@ export type Database = {
5833
5833
  attempts: number;
5834
5834
  connection_id: string;
5835
5835
  created_at: string;
5836
+ desired_available: boolean | null;
5836
5837
  gateway_attempt_id: string | null;
5837
5838
  id: string;
5838
5839
  last_error: string | null;
5840
+ locked_at: string | null;
5841
+ locked_by: string | null;
5842
+ next_attempt_at: string;
5839
5843
  number_of_pieces: number;
5840
5844
  sent_at: string | null;
5841
5845
  status: string;
5846
+ superseded_by: string | null;
5842
5847
  trade_item_id: string;
5843
5848
  updated_at: string;
5844
5849
  user_id: string;
@@ -5847,12 +5852,17 @@ export type Database = {
5847
5852
  attempts?: number;
5848
5853
  connection_id: string;
5849
5854
  created_at?: string;
5855
+ desired_available?: boolean | null;
5850
5856
  gateway_attempt_id?: string | null;
5851
5857
  id?: string;
5852
5858
  last_error?: string | null;
5859
+ locked_at?: string | null;
5860
+ locked_by?: string | null;
5861
+ next_attempt_at?: string;
5853
5862
  number_of_pieces?: number;
5854
5863
  sent_at?: string | null;
5855
5864
  status?: string;
5865
+ superseded_by?: string | null;
5856
5866
  trade_item_id: string;
5857
5867
  updated_at?: string;
5858
5868
  user_id: string;
@@ -5861,12 +5871,17 @@ export type Database = {
5861
5871
  attempts?: number;
5862
5872
  connection_id?: string;
5863
5873
  created_at?: string;
5874
+ desired_available?: boolean | null;
5864
5875
  gateway_attempt_id?: string | null;
5865
5876
  id?: string;
5866
5877
  last_error?: string | null;
5878
+ locked_at?: string | null;
5879
+ locked_by?: string | null;
5880
+ next_attempt_at?: string;
5867
5881
  number_of_pieces?: number;
5868
5882
  sent_at?: string | null;
5869
5883
  status?: string;
5884
+ superseded_by?: string | null;
5870
5885
  trade_item_id?: string;
5871
5886
  updated_at?: string;
5872
5887
  user_id?: string;
@@ -8709,6 +8724,69 @@ export type Database = {
8709
8724
  };
8710
8725
  Relationships: [];
8711
8726
  };
8727
+ logistics_floriday_pushes: {
8728
+ Row: {
8729
+ attempts: number;
8730
+ created_at: string;
8731
+ first_queued_at: string;
8732
+ fulfillment_order_id: string | null;
8733
+ id: string;
8734
+ last_error: string | null;
8735
+ last_error_at: string | null;
8736
+ last_sent_hash: string | null;
8737
+ locked_by: string | null;
8738
+ locked_until: string | null;
8739
+ next_attempt_at: string;
8740
+ order_ref: string;
8741
+ payload: Json;
8742
+ payload_hash: string | null;
8743
+ revision: number;
8744
+ sent_at: string | null;
8745
+ status: string;
8746
+ updated_at: string;
8747
+ };
8748
+ Insert: {
8749
+ attempts?: number;
8750
+ created_at?: string;
8751
+ first_queued_at?: string;
8752
+ fulfillment_order_id?: string | null;
8753
+ id?: string;
8754
+ last_error?: string | null;
8755
+ last_error_at?: string | null;
8756
+ last_sent_hash?: string | null;
8757
+ locked_by?: string | null;
8758
+ locked_until?: string | null;
8759
+ next_attempt_at?: string;
8760
+ order_ref: string;
8761
+ payload?: Json;
8762
+ payload_hash?: string | null;
8763
+ revision?: number;
8764
+ sent_at?: string | null;
8765
+ status?: string;
8766
+ updated_at?: string;
8767
+ };
8768
+ Update: {
8769
+ attempts?: number;
8770
+ created_at?: string;
8771
+ first_queued_at?: string;
8772
+ fulfillment_order_id?: string | null;
8773
+ id?: string;
8774
+ last_error?: string | null;
8775
+ last_error_at?: string | null;
8776
+ last_sent_hash?: string | null;
8777
+ locked_by?: string | null;
8778
+ locked_until?: string | null;
8779
+ next_attempt_at?: string;
8780
+ order_ref?: string;
8781
+ payload?: Json;
8782
+ payload_hash?: string | null;
8783
+ revision?: number;
8784
+ sent_at?: string | null;
8785
+ status?: string;
8786
+ updated_at?: string;
8787
+ };
8788
+ Relationships: [];
8789
+ };
8712
8790
  logistics_formulas: {
8713
8791
  Row: {
8714
8792
  created_at: string;
@@ -9331,6 +9409,8 @@ export type Database = {
9331
9409
  };
9332
9410
  logistics_tasks: {
9333
9411
  Row: {
9412
+ attempt_log: Json;
9413
+ attempts: number;
9334
9414
  buffer_ref: string | null;
9335
9415
  claimed_at: string | null;
9336
9416
  claimed_by: string | null;
@@ -9340,6 +9420,8 @@ export type Database = {
9340
9420
  due_at: string | null;
9341
9421
  error: string | null;
9342
9422
  id: string;
9423
+ last_error: string | null;
9424
+ next_attempt_at: string | null;
9343
9425
  order_ref: string;
9344
9426
  owner_module: string;
9345
9427
  payload: Json;
@@ -9360,6 +9442,8 @@ export type Database = {
9360
9442
  user_id: string;
9361
9443
  };
9362
9444
  Insert: {
9445
+ attempt_log?: Json;
9446
+ attempts?: number;
9363
9447
  buffer_ref?: string | null;
9364
9448
  claimed_at?: string | null;
9365
9449
  claimed_by?: string | null;
@@ -9369,6 +9453,8 @@ export type Database = {
9369
9453
  due_at?: string | null;
9370
9454
  error?: string | null;
9371
9455
  id?: string;
9456
+ last_error?: string | null;
9457
+ next_attempt_at?: string | null;
9372
9458
  order_ref: string;
9373
9459
  owner_module: string;
9374
9460
  payload?: Json;
@@ -9389,6 +9475,8 @@ export type Database = {
9389
9475
  user_id?: string;
9390
9476
  };
9391
9477
  Update: {
9478
+ attempt_log?: Json;
9479
+ attempts?: number;
9392
9480
  buffer_ref?: string | null;
9393
9481
  claimed_at?: string | null;
9394
9482
  claimed_by?: string | null;
@@ -9398,6 +9486,8 @@ export type Database = {
9398
9486
  due_at?: string | null;
9399
9487
  error?: string | null;
9400
9488
  id?: string;
9489
+ last_error?: string | null;
9490
+ next_attempt_at?: string | null;
9401
9491
  order_ref?: string;
9402
9492
  owner_module?: string;
9403
9493
  payload?: Json;
@@ -10793,6 +10883,7 @@ export type Database = {
10793
10883
  };
10794
10884
  offer_settings: {
10795
10885
  Row: {
10886
+ brand_name: string | null;
10796
10887
  button_color: string;
10797
10888
  created_at: string;
10798
10889
  default_countries: string[];
@@ -10814,6 +10905,7 @@ export type Database = {
10814
10905
  updated_at: string;
10815
10906
  };
10816
10907
  Insert: {
10908
+ brand_name?: string | null;
10817
10909
  button_color?: string;
10818
10910
  created_at?: string;
10819
10911
  default_countries?: string[];
@@ -10835,6 +10927,7 @@ export type Database = {
10835
10927
  updated_at?: string;
10836
10928
  };
10837
10929
  Update: {
10930
+ brand_name?: string | null;
10838
10931
  button_color?: string;
10839
10932
  created_at?: string;
10840
10933
  default_countries?: string[];
@@ -12618,22 +12711,27 @@ export type Database = {
12618
12711
  created_at: string;
12619
12712
  documentnaam: string;
12620
12713
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
12714
+ extern_job_id: string | null;
12621
12715
  foutmelding: string | null;
12622
12716
  gebruiker_id: string | null;
12623
12717
  gebruiker_naam: string;
12624
12718
  gestart_op: string | null;
12625
12719
  id: string;
12720
+ idempotentie_sleutel: string | null;
12626
12721
  is_herprint: boolean;
12627
12722
  kopieen: number;
12628
12723
  layout_id: string | null;
12629
12724
  opgepakt_op: string | null;
12630
12725
  paginas: number;
12631
12726
  payload: Json;
12727
+ pdf_base64: string | null;
12728
+ pdf_url: string | null;
12632
12729
  pogingen: number;
12633
12730
  printer_id: string | null;
12634
12731
  render_html: string | null;
12635
12732
  status: Database["public"]["Enums"]["print_job_status"];
12636
12733
  updated_at: string;
12734
+ volgende_poging: string | null;
12637
12735
  voltooid_op: string | null;
12638
12736
  };
12639
12737
  Insert: {
@@ -12642,22 +12740,27 @@ export type Database = {
12642
12740
  created_at?: string;
12643
12741
  documentnaam?: string;
12644
12742
  documenttype?: Database["public"]["Enums"]["doc_layout_type"];
12743
+ extern_job_id?: string | null;
12645
12744
  foutmelding?: string | null;
12646
12745
  gebruiker_id?: string | null;
12647
12746
  gebruiker_naam?: string;
12648
12747
  gestart_op?: string | null;
12649
12748
  id?: string;
12749
+ idempotentie_sleutel?: string | null;
12650
12750
  is_herprint?: boolean;
12651
12751
  kopieen?: number;
12652
12752
  layout_id?: string | null;
12653
12753
  opgepakt_op?: string | null;
12654
12754
  paginas?: number;
12655
12755
  payload?: Json;
12756
+ pdf_base64?: string | null;
12757
+ pdf_url?: string | null;
12656
12758
  pogingen?: number;
12657
12759
  printer_id?: string | null;
12658
12760
  render_html?: string | null;
12659
12761
  status?: Database["public"]["Enums"]["print_job_status"];
12660
12762
  updated_at?: string;
12763
+ volgende_poging?: string | null;
12661
12764
  voltooid_op?: string | null;
12662
12765
  };
12663
12766
  Update: {
@@ -12666,22 +12769,27 @@ export type Database = {
12666
12769
  created_at?: string;
12667
12770
  documentnaam?: string;
12668
12771
  documenttype?: Database["public"]["Enums"]["doc_layout_type"];
12772
+ extern_job_id?: string | null;
12669
12773
  foutmelding?: string | null;
12670
12774
  gebruiker_id?: string | null;
12671
12775
  gebruiker_naam?: string;
12672
12776
  gestart_op?: string | null;
12673
12777
  id?: string;
12778
+ idempotentie_sleutel?: string | null;
12674
12779
  is_herprint?: boolean;
12675
12780
  kopieen?: number;
12676
12781
  layout_id?: string | null;
12677
12782
  opgepakt_op?: string | null;
12678
12783
  paginas?: number;
12679
12784
  payload?: Json;
12785
+ pdf_base64?: string | null;
12786
+ pdf_url?: string | null;
12680
12787
  pogingen?: number;
12681
12788
  printer_id?: string | null;
12682
12789
  render_html?: string | null;
12683
12790
  status?: Database["public"]["Enums"]["print_job_status"];
12684
12791
  updated_at?: string;
12792
+ volgende_poging?: string | null;
12685
12793
  voltooid_op?: string | null;
12686
12794
  };
12687
12795
  Relationships: [
@@ -12876,6 +12984,7 @@ export type Database = {
12876
12984
  agent_id: string | null;
12877
12985
  created_at: string;
12878
12986
  driver: string;
12987
+ extern_printer_id: string | null;
12879
12988
  id: string;
12880
12989
  ip_adres: string | null;
12881
12990
  laatst_gezien: string | null;
@@ -12897,6 +13006,7 @@ export type Database = {
12897
13006
  agent_id?: string | null;
12898
13007
  created_at?: string;
12899
13008
  driver?: string;
13009
+ extern_printer_id?: string | null;
12900
13010
  id?: string;
12901
13011
  ip_adres?: string | null;
12902
13012
  laatst_gezien?: string | null;
@@ -12918,6 +13028,7 @@ export type Database = {
12918
13028
  agent_id?: string | null;
12919
13029
  created_at?: string;
12920
13030
  driver?: string;
13031
+ extern_printer_id?: string | null;
12921
13032
  id?: string;
12922
13033
  ip_adres?: string | null;
12923
13034
  laatst_gezien?: string | null;
@@ -18665,6 +18776,125 @@ export type Database = {
18665
18776
  };
18666
18777
  Returns: Json;
18667
18778
  };
18779
+ claim_cloud_print_jobs: {
18780
+ Args: {
18781
+ _max?: number;
18782
+ };
18783
+ Returns: {
18784
+ agent_id: string | null;
18785
+ bron_job_id: string | null;
18786
+ created_at: string;
18787
+ documentnaam: string;
18788
+ documenttype: Database["public"]["Enums"]["doc_layout_type"];
18789
+ extern_job_id: string | null;
18790
+ foutmelding: string | null;
18791
+ gebruiker_id: string | null;
18792
+ gebruiker_naam: string;
18793
+ gestart_op: string | null;
18794
+ id: string;
18795
+ idempotentie_sleutel: string | null;
18796
+ is_herprint: boolean;
18797
+ kopieen: number;
18798
+ layout_id: string | null;
18799
+ opgepakt_op: string | null;
18800
+ paginas: number;
18801
+ payload: Json;
18802
+ pdf_base64: string | null;
18803
+ pdf_url: string | null;
18804
+ pogingen: number;
18805
+ printer_id: string | null;
18806
+ render_html: string | null;
18807
+ status: Database["public"]["Enums"]["print_job_status"];
18808
+ updated_at: string;
18809
+ volgende_poging: string | null;
18810
+ voltooid_op: string | null;
18811
+ }[];
18812
+ SetofOptions: {
18813
+ from: "*";
18814
+ to: "print_jobs";
18815
+ isOneToOne: false;
18816
+ isSetofReturn: true;
18817
+ };
18818
+ };
18819
+ claim_floriday_stock_queue: {
18820
+ Args: {
18821
+ p_limit?: number;
18822
+ p_worker?: string;
18823
+ };
18824
+ Returns: {
18825
+ attempts: number;
18826
+ connection_id: string;
18827
+ created_at: string;
18828
+ desired_available: boolean | null;
18829
+ gateway_attempt_id: string | null;
18830
+ id: string;
18831
+ last_error: string | null;
18832
+ locked_at: string | null;
18833
+ locked_by: string | null;
18834
+ next_attempt_at: string;
18835
+ number_of_pieces: number;
18836
+ sent_at: string | null;
18837
+ status: string;
18838
+ superseded_by: string | null;
18839
+ trade_item_id: string;
18840
+ updated_at: string;
18841
+ user_id: string;
18842
+ }[];
18843
+ SetofOptions: {
18844
+ from: "*";
18845
+ to: "floriday_continuous_stock_queue";
18846
+ isOneToOne: false;
18847
+ isSetofReturn: true;
18848
+ };
18849
+ };
18850
+ claim_logistics_tasks: {
18851
+ Args: {
18852
+ _limit?: number;
18853
+ _owner_module: string;
18854
+ _stale_minutes?: number;
18855
+ _task_type: string;
18856
+ _worker: string;
18857
+ };
18858
+ Returns: {
18859
+ attempt_log: Json;
18860
+ attempts: number;
18861
+ buffer_ref: string | null;
18862
+ claimed_at: string | null;
18863
+ claimed_by: string | null;
18864
+ completed_at: string | null;
18865
+ created_at: string;
18866
+ depends_on: string[];
18867
+ due_at: string | null;
18868
+ error: string | null;
18869
+ id: string;
18870
+ last_error: string | null;
18871
+ next_attempt_at: string | null;
18872
+ order_ref: string;
18873
+ owner_module: string;
18874
+ payload: Json;
18875
+ plan_run_id: string | null;
18876
+ planned_end: string | null;
18877
+ planned_start: string | null;
18878
+ priority: number;
18879
+ result: Json | null;
18880
+ rule_config_id: string | null;
18881
+ rule_version: number | null;
18882
+ sequence: number;
18883
+ shadow: boolean;
18884
+ started_at: string | null;
18885
+ status: string;
18886
+ strategy_id: string | null;
18887
+ task_type: string;
18888
+ updated_at: string;
18889
+ user_id: string;
18890
+ }[];
18891
+ SetofOptions: {
18892
+ from: "*";
18893
+ to: "logistics_tasks";
18894
+ isOneToOne: false;
18895
+ isSetofReturn: true;
18896
+ };
18897
+ };
18668
18898
  claim_print_jobs: {
18669
18899
  Args: {
18670
18900
  _agent_id: string;
@@ -18676,22 +18906,27 @@ export type Database = {
18676
18906
  created_at: string;
18677
18907
  documentnaam: string;
18678
18908
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
18909
+ extern_job_id: string | null;
18679
18910
  foutmelding: string | null;
18680
18911
  gebruiker_id: string | null;
18681
18912
  gebruiker_naam: string;
18682
18913
  gestart_op: string | null;
18683
18914
  id: string;
18915
+ idempotentie_sleutel: string | null;
18684
18916
  is_herprint: boolean;
18685
18917
  kopieen: number;
18686
18918
  layout_id: string | null;
18687
18919
  opgepakt_op: string | null;
18688
18920
  paginas: number;
18689
18921
  payload: Json;
18922
+ pdf_base64: string | null;
18923
+ pdf_url: string | null;
18690
18924
  pogingen: number;
18691
18925
  printer_id: string | null;
18692
18926
  render_html: string | null;
18693
18927
  status: Database["public"]["Enums"]["print_job_status"];
18694
18928
  updated_at: string;
18929
+ volgende_poging: string | null;
18695
18930
  voltooid_op: string | null;
18696
18931
  }[];
18697
18932
  SetofOptions: {
@@ -18729,10 +18964,24 @@ export type Database = {
18729
18964
  isSetofReturn: true;
18730
18965
  };
18731
18966
  };
18967
+ cleanup_floriday_stock_queue: {
18968
+ Args: never;
18969
+ Returns: undefined;
18970
+ };
18732
18971
  cleanup_old_bookings: {
18733
18972
  Args: never;
18734
18973
  Returns: undefined;
18735
18974
  };
18975
+ complete_floriday_stock_queue: {
18976
+ Args: {
18977
+ p_attempt_id?: string;
18978
+ p_error?: string;
18979
+ p_id: string;
18980
+ p_ok: boolean;
18981
+ p_permanent?: boolean;
18982
+ };
18983
+ Returns: undefined;
18984
+ };
18736
18985
  consume_bom_for_production: {
18737
18986
  Args: {
18738
18987
  p_connection_id: string;
@@ -19129,6 +19378,10 @@ export type Database = {
19129
19378
  };
19130
19379
  Returns: number;
19131
19380
  };
19381
+ get_offer_branding: {
19382
+ Args: never;
19383
+ Returns: Json;
19384
+ };
19132
19385
  get_offer_by_link_code: {
19133
19386
  Args: {
19134
19387
  p_code: string;
@@ -19420,6 +19673,8 @@ export type Database = {
19420
19673
  p_worker?: string;
19421
19674
  };
19422
19675
  Returns: {
19676
+ attempt_log: Json;
19677
+ attempts: number;
19423
19678
  buffer_ref: string | null;
19424
19679
  claimed_at: string | null;
19425
19680
  claimed_by: string | null;
@@ -19429,6 +19684,8 @@ export type Database = {
19429
19684
  due_at: string | null;
19430
19685
  error: string | null;
19431
19686
  id: string;
19687
+ last_error: string | null;
19688
+ next_attempt_at: string | null;
19432
19689
  order_ref: string;
19433
19690
  owner_module: string;
19434
19691
  payload: Json;
@@ -19461,6 +19718,8 @@ export type Database = {
19461
19718
  p_worker?: string;
19462
19719
  };
19463
19720
  Returns: {
19721
+ attempt_log: Json;
19722
+ attempts: number;
19464
19723
  buffer_ref: string | null;
19465
19724
  claimed_at: string | null;
19466
19725
  claimed_by: string | null;
@@ -19470,6 +19729,8 @@ export type Database = {
19470
19729
  due_at: string | null;
19471
19730
  error: string | null;
19472
19731
  id: string;
19732
+ last_error: string | null;
19733
+ next_attempt_at: string | null;
19473
19734
  order_ref: string;
19474
19735
  owner_module: string;
19475
19736
  payload: Json;
@@ -19502,6 +19763,8 @@ export type Database = {
19502
19763
  p_task_id: string;
19503
19764
  };
19504
19765
  Returns: {
19766
+ attempt_log: Json;
19767
+ attempts: number;
19505
19768
  buffer_ref: string | null;
19506
19769
  claimed_at: string | null;
19507
19770
  claimed_by: string | null;
@@ -19511,6 +19774,8 @@ export type Database = {
19511
19774
  due_at: string | null;
19512
19775
  error: string | null;
19513
19776
  id: string;
19777
+ last_error: string | null;
19778
+ next_attempt_at: string | null;
19514
19779
  order_ref: string;
19515
19780
  owner_module: string;
19516
19781
  payload: Json;
@@ -19592,6 +19857,8 @@ export type Database = {
19592
19857
  p_task_id: string;
19593
19858
  };
19594
19859
  Returns: {
19860
+ attempt_log: Json;
19861
+ attempts: number;
19595
19862
  buffer_ref: string | null;
19596
19863
  claimed_at: string | null;
19597
19864
  claimed_by: string | null;
@@ -19601,6 +19868,8 @@ export type Database = {
19601
19868
  due_at: string | null;
19602
19869
  error: string | null;
19603
19870
  id: string;
19871
+ last_error: string | null;
19872
+ next_attempt_at: string | null;
19604
19873
  order_ref: string;
19605
19874
  owner_module: string;
19606
19875
  payload: Json;
@@ -19627,6 +19896,51 @@ export type Database = {
19627
19896
  isSetofReturn: false;
19628
19897
  };
19629
19898
  };
19899
+ logistics_floriday_claim_pushes: {
19900
+ Args: {
19901
+ _lease_seconds?: number;
19902
+ _limit?: number;
19903
+ _worker?: string;
19904
+ };
19905
+ Returns: {
19906
+ attempts: number;
19907
+ fulfillment_order_id: string;
19908
+ id: string;
19909
+ last_sent_hash: string;
19910
+ order_ref: string;
19911
+ payload: Json;
19912
+ payload_hash: string;
19913
+ revision: number;
19914
+ }[];
19915
+ };
19916
+ logistics_floriday_finish_push: {
19917
+ Args: {
19918
+ _error?: string;
19919
+ _fulfillment_order_id?: string;
19920
+ _id: string;
19921
+ _max_age_hours?: number;
19922
+ _max_attempts?: number;
19923
+ _ok: boolean;
19924
+ _permanent?: boolean;
19925
+ _revision: number;
19926
+ _sent_hash?: string;
19927
+ };
19928
+ Returns: string;
19929
+ };
19930
+ logistics_floriday_prune_pushes: {
19931
+ Args: {
19932
+ _days?: number;
19933
+ };
19934
+ Returns: number;
19935
+ };
19936
+ logistics_floriday_queue_push: {
19937
+ Args: {
19938
+ _order_ref: string;
19939
+ _payload?: Json;
19940
+ _payload_hash?: string;
19941
+ };
19942
+ Returns: string;
19943
+ };
19630
19944
  logistics_live_carriers: {
19631
19945
  Args: {
19632
19946
  p_order_ref: string;
@@ -19974,6 +20288,15 @@ export type Database = {
19974
20288
  };
19975
20289
  Returns: string;
19976
20290
  };
20291
+ pick_active_printers: {
20292
+ Args: never;
20293
+ Returns: {
20294
+ id: string;
20295
+ locatie: string;
20296
+ naam: string;
20297
+ online: boolean;
20298
+ }[];
20299
+ };
19977
20300
  pick_claim_document: {
19978
20301
  Args: {
19979
20302
  _queue_item_id: string;
@@ -20160,6 +20483,52 @@ export type Database = {
20160
20483
  };
20161
20484
  Returns: undefined;
20162
20485
  };
20486
+ pick_reset_print: {
20487
+ Args: {
20488
+ _queue_item_id: string;
20489
+ _session_id: string;
20490
+ };
20491
+ Returns: {
20492
+ announced_at: string;
20493
+ assigned_user_id: string | null;
20494
+ barcode: string | null;
20495
+ cancelled_at: string | null;
20496
+ cart_count: number;
20497
+ completed_at: string | null;
20498
+ country_code: string | null;
20499
+ created_at: string;
20500
+ customer_name: string | null;
20501
+ delivery_address: string | null;
20502
+ document_number: string | null;
20503
+ document_type_id: string | null;
20504
+ due_at: string | null;
20505
+ id: string;
20506
+ is_urgent: boolean;
20507
+ line_count: number;
20508
+ order_number: string | null;
20509
+ order_type: string | null;
20510
+ payload: Json;
20511
+ print_count: number;
20512
+ print_job_id: string | null;
20513
+ printed_at: string | null;
20514
+ printed_by: string | null;
20515
+ printer_id: string | null;
20516
+ priority: number;
20517
+ reference: string | null;
20518
+ route: string | null;
20519
+ screen_id: string | null;
20520
+ station_id: string | null;
20521
+ status_id: string | null;
20522
+ updated_at: string;
20523
+ warnings: Json;
20524
+ };
20525
+ SetofOptions: {
20526
+ from: "*";
20527
+ to: "pick_queue";
20528
+ isOneToOne: true;
20529
+ isSetofReturn: false;
20530
+ };
20531
+ };
20163
20532
  pick_station_dashboard: {
20164
20533
  Args: never;
20165
20534
  Returns: {
@@ -20350,10 +20719,20 @@ export type Database = {
20350
20719
  };
20351
20720
  Returns: Json;
20352
20721
  };
20722
+ ruim_print_jobs_op: {
20723
+ Args: {
20724
+ _bewaar_dagen?: number;
20725
+ };
20726
+ Returns: number;
20727
+ };
20353
20728
  run_floriday_continuous_stock_sync: {
20354
20729
  Args: never;
20355
20730
  Returns: undefined;
20356
20731
  };
20732
+ run_logistics_tasks_dispatch: {
20733
+ Args: never;
20734
+ Returns: undefined;
20735
+ };
20357
20736
  run_twinfield_queue_tick: {
20358
20737
  Args: never;
20359
20738
  Returns: undefined;
@@ -20594,6 +20973,13 @@ export type Database = {
20594
20973
  };
20595
20974
  Returns: number;
20596
20975
  };
20976
+ schedule_floriday_stock_queue_process: {
20977
+ Args: {
20978
+ p_apikey: string;
20979
+ p_url: string;
20980
+ };
20981
+ Returns: number;
20982
+ };
20597
20983
  schedule_floriday_token_refresh: {
20598
20984
  Args: {
20599
20985
  p_apikey: string;
@@ -20783,7 +21169,7 @@ export type Database = {
20783
21169
  };
20784
21170
  Enums: {
20785
21171
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
20786
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
21172
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
20787
21173
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
20788
21174
  doc_orientation: "portrait" | "landscape";
20789
21175
  exact_env: "staging" | "live";
@@ -20854,7 +21240,7 @@ export declare const Constants: {
20854
21240
  readonly public: {
20855
21241
  readonly Enums: {
20856
21242
  readonly ai_import_status: readonly ["nieuw", "verwerken", "bevestigen", "klaar", "mislukt"];
20857
- readonly app_role: readonly ["admin", "planner", "monteur", "administratie", "ai_admin"];
21243
+ readonly app_role: readonly ["admin", "planner", "monteur", "administratie", "ai_admin", "manager", "warehouse", "sales", "developer", "receptie"];
20858
21244
  readonly doc_layout_type: readonly ["pakbon", "factuur", "offerte", "orderbevestiging", "etiket", "verzendlabel", "productlabel", "barcode_label", "magazijnlijst", "controlelijst", "transportdocument", "vrij", "sticker", "productiebon"];
20859
21245
  readonly doc_orientation: readonly ["portrait", "landscape"];
20860
21246
  readonly exact_env: readonly ["staging", "live"];