@flowselections/floriday-klanten-module 1.0.30 → 1.0.32

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 (47) hide show
  1. package/dist-lib/integrations/supabase/auth-middleware.d.ts +255 -0
  2. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  3. package/dist-lib/integrations/supabase/client.d.ts +255 -0
  4. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  5. package/dist-lib/integrations/supabase/client.server.d.ts +255 -0
  6. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  7. package/dist-lib/integrations/supabase/types.d.ts +255 -0
  8. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  9. package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts +765 -0
  10. package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts.map +1 -1
  11. package/dist-lib/lib/accounting.functions.d.ts +765 -0
  12. package/dist-lib/lib/accounting.functions.d.ts.map +1 -1
  13. package/dist-lib/lib/customer-analytics.functions.d.ts +255 -0
  14. package/dist-lib/lib/customer-analytics.functions.d.ts.map +1 -1
  15. package/dist-lib/lib/customer-notes.functions.d.ts +510 -0
  16. package/dist-lib/lib/customer-notes.functions.d.ts.map +1 -1
  17. package/dist-lib/lib/customer-revenue.functions.d.ts +255 -0
  18. package/dist-lib/lib/customer-revenue.functions.d.ts.map +1 -1
  19. package/dist-lib/lib/customers.functions.d.ts +2370 -75
  20. package/dist-lib/lib/customers.functions.d.ts.map +1 -1
  21. package/dist-lib/lib/delivery-locations.functions.d.ts +1095 -75
  22. package/dist-lib/lib/delivery-locations.functions.d.ts.map +1 -1
  23. package/dist-lib/lib/external-customers.functions.d.ts +1095 -75
  24. package/dist-lib/lib/external-customers.functions.d.ts.map +1 -1
  25. package/dist-lib/lib/floriday-assortment.functions.d.ts +255 -0
  26. package/dist-lib/lib/floriday-assortment.functions.d.ts.map +1 -1
  27. package/dist-lib/lib/floriday-discounts.functions.d.ts +510 -0
  28. package/dist-lib/lib/floriday-discounts.functions.d.ts.map +1 -1
  29. package/dist-lib/lib/floriday-trade-items.functions.d.ts +255 -0
  30. package/dist-lib/lib/floriday-trade-items.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/local-discounts.functions.d.ts +1860 -75
  32. package/dist-lib/lib/local-discounts.functions.d.ts.map +1 -1
  33. package/dist-lib/lib/logistics-events.functions.d.ts +255 -0
  34. package/dist-lib/lib/logistics-events.functions.d.ts.map +1 -1
  35. package/dist-lib/lib/logistics-strategy.functions.d.ts +1095 -75
  36. package/dist-lib/lib/logistics-strategy.functions.d.ts.map +1 -1
  37. package/dist-lib/lib/overdue-invoices.functions.d.ts +255 -0
  38. package/dist-lib/lib/overdue-invoices.functions.d.ts.map +1 -1
  39. package/dist-lib/lib/price-groups-local.functions.d.ts +1860 -75
  40. package/dist-lib/lib/price-groups-local.functions.d.ts.map +1 -1
  41. package/dist-lib/lib/price-groups.functions.d.ts +255 -0
  42. package/dist-lib/lib/price-groups.functions.d.ts.map +1 -1
  43. package/dist-lib/lib/twinfield-adopt.functions.d.ts +510 -0
  44. package/dist-lib/lib/twinfield-adopt.functions.d.ts.map +1 -1
  45. package/dist-lib/lib/twinfield-ledger.functions.d.ts +255 -0
  46. package/dist-lib/lib/twinfield-ledger.functions.d.ts.map +1 -1
  47. package/package.json +1 -1
@@ -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;
@@ -18668,6 +18758,85 @@ export type Database = {
18668
18758
  };
18669
18759
  Returns: Json;
18670
18760
  };
18761
+ claim_floriday_stock_queue: {
18762
+ Args: {
18763
+ p_limit?: number;
18764
+ p_worker?: string;
18765
+ };
18766
+ Returns: {
18767
+ attempts: number;
18768
+ connection_id: string;
18769
+ created_at: string;
18770
+ desired_available: boolean | null;
18771
+ gateway_attempt_id: string | null;
18772
+ id: string;
18773
+ last_error: string | null;
18774
+ locked_at: string | null;
18775
+ locked_by: string | null;
18776
+ next_attempt_at: string;
18777
+ number_of_pieces: number;
18778
+ sent_at: string | null;
18779
+ status: string;
18780
+ superseded_by: string | null;
18781
+ trade_item_id: string;
18782
+ updated_at: string;
18783
+ user_id: string;
18784
+ }[];
18785
+ SetofOptions: {
18786
+ from: "*";
18787
+ to: "floriday_continuous_stock_queue";
18788
+ isOneToOne: false;
18789
+ isSetofReturn: true;
18790
+ };
18791
+ };
18792
+ claim_logistics_tasks: {
18793
+ Args: {
18794
+ _limit?: number;
18795
+ _owner_module: string;
18796
+ _stale_minutes?: number;
18797
+ _task_type: string;
18798
+ _worker: string;
18799
+ };
18800
+ Returns: {
18801
+ attempt_log: Json;
18802
+ attempts: number;
18803
+ buffer_ref: string | null;
18804
+ claimed_at: string | null;
18805
+ claimed_by: string | null;
18806
+ completed_at: string | null;
18807
+ created_at: string;
18808
+ depends_on: string[];
18809
+ due_at: string | null;
18810
+ error: string | null;
18811
+ id: string;
18812
+ last_error: string | null;
18813
+ next_attempt_at: string | null;
18814
+ order_ref: string;
18815
+ owner_module: string;
18816
+ payload: Json;
18817
+ plan_run_id: string | null;
18818
+ planned_end: string | null;
18819
+ planned_start: string | null;
18820
+ priority: number;
18821
+ result: Json | null;
18822
+ rule_config_id: string | null;
18823
+ rule_version: number | null;
18824
+ sequence: number;
18825
+ shadow: boolean;
18826
+ started_at: string | null;
18827
+ status: string;
18828
+ strategy_id: string | null;
18829
+ task_type: string;
18830
+ updated_at: string;
18831
+ user_id: string;
18832
+ }[];
18833
+ SetofOptions: {
18834
+ from: "*";
18835
+ to: "logistics_tasks";
18836
+ isOneToOne: false;
18837
+ isSetofReturn: true;
18838
+ };
18839
+ };
18671
18840
  claim_print_jobs: {
18672
18841
  Args: {
18673
18842
  _agent_id: string;
@@ -18732,10 +18901,24 @@ export type Database = {
18732
18901
  isSetofReturn: true;
18733
18902
  };
18734
18903
  };
18904
+ cleanup_floriday_stock_queue: {
18905
+ Args: never;
18906
+ Returns: undefined;
18907
+ };
18735
18908
  cleanup_old_bookings: {
18736
18909
  Args: never;
18737
18910
  Returns: undefined;
18738
18911
  };
18912
+ complete_floriday_stock_queue: {
18913
+ Args: {
18914
+ p_attempt_id?: string;
18915
+ p_error?: string;
18916
+ p_id: string;
18917
+ p_ok: boolean;
18918
+ p_permanent?: boolean;
18919
+ };
18920
+ Returns: undefined;
18921
+ };
18739
18922
  consume_bom_for_production: {
18740
18923
  Args: {
18741
18924
  p_connection_id: string;
@@ -19427,6 +19610,8 @@ export type Database = {
19427
19610
  p_worker?: string;
19428
19611
  };
19429
19612
  Returns: {
19613
+ attempt_log: Json;
19614
+ attempts: number;
19430
19615
  buffer_ref: string | null;
19431
19616
  claimed_at: string | null;
19432
19617
  claimed_by: string | null;
@@ -19436,6 +19621,8 @@ export type Database = {
19436
19621
  due_at: string | null;
19437
19622
  error: string | null;
19438
19623
  id: string;
19624
+ last_error: string | null;
19625
+ next_attempt_at: string | null;
19439
19626
  order_ref: string;
19440
19627
  owner_module: string;
19441
19628
  payload: Json;
@@ -19468,6 +19655,8 @@ export type Database = {
19468
19655
  p_worker?: string;
19469
19656
  };
19470
19657
  Returns: {
19658
+ attempt_log: Json;
19659
+ attempts: number;
19471
19660
  buffer_ref: string | null;
19472
19661
  claimed_at: string | null;
19473
19662
  claimed_by: string | null;
@@ -19477,6 +19666,8 @@ export type Database = {
19477
19666
  due_at: string | null;
19478
19667
  error: string | null;
19479
19668
  id: string;
19669
+ last_error: string | null;
19670
+ next_attempt_at: string | null;
19480
19671
  order_ref: string;
19481
19672
  owner_module: string;
19482
19673
  payload: Json;
@@ -19509,6 +19700,8 @@ export type Database = {
19509
19700
  p_task_id: string;
19510
19701
  };
19511
19702
  Returns: {
19703
+ attempt_log: Json;
19704
+ attempts: number;
19512
19705
  buffer_ref: string | null;
19513
19706
  claimed_at: string | null;
19514
19707
  claimed_by: string | null;
@@ -19518,6 +19711,8 @@ export type Database = {
19518
19711
  due_at: string | null;
19519
19712
  error: string | null;
19520
19713
  id: string;
19714
+ last_error: string | null;
19715
+ next_attempt_at: string | null;
19521
19716
  order_ref: string;
19522
19717
  owner_module: string;
19523
19718
  payload: Json;
@@ -19599,6 +19794,8 @@ export type Database = {
19599
19794
  p_task_id: string;
19600
19795
  };
19601
19796
  Returns: {
19797
+ attempt_log: Json;
19798
+ attempts: number;
19602
19799
  buffer_ref: string | null;
19603
19800
  claimed_at: string | null;
19604
19801
  claimed_by: string | null;
@@ -19608,6 +19805,8 @@ export type Database = {
19608
19805
  due_at: string | null;
19609
19806
  error: string | null;
19610
19807
  id: string;
19808
+ last_error: string | null;
19809
+ next_attempt_at: string | null;
19611
19810
  order_ref: string;
19612
19811
  owner_module: string;
19613
19812
  payload: Json;
@@ -19634,6 +19833,51 @@ export type Database = {
19634
19833
  isSetofReturn: false;
19635
19834
  };
19636
19835
  };
19836
+ logistics_floriday_claim_pushes: {
19837
+ Args: {
19838
+ _lease_seconds?: number;
19839
+ _limit?: number;
19840
+ _worker?: string;
19841
+ };
19842
+ Returns: {
19843
+ attempts: number;
19844
+ fulfillment_order_id: string;
19845
+ id: string;
19846
+ last_sent_hash: string;
19847
+ order_ref: string;
19848
+ payload: Json;
19849
+ payload_hash: string;
19850
+ revision: number;
19851
+ }[];
19852
+ };
19853
+ logistics_floriday_finish_push: {
19854
+ Args: {
19855
+ _error?: string;
19856
+ _fulfillment_order_id?: string;
19857
+ _id: string;
19858
+ _max_age_hours?: number;
19859
+ _max_attempts?: number;
19860
+ _ok: boolean;
19861
+ _permanent?: boolean;
19862
+ _revision: number;
19863
+ _sent_hash?: string;
19864
+ };
19865
+ Returns: string;
19866
+ };
19867
+ logistics_floriday_prune_pushes: {
19868
+ Args: {
19869
+ _days?: number;
19870
+ };
19871
+ Returns: number;
19872
+ };
19873
+ logistics_floriday_queue_push: {
19874
+ Args: {
19875
+ _order_ref: string;
19876
+ _payload?: Json;
19877
+ _payload_hash?: string;
19878
+ };
19879
+ Returns: string;
19880
+ };
19637
19881
  logistics_live_carriers: {
19638
19882
  Args: {
19639
19883
  p_order_ref: string;
@@ -20361,6 +20605,10 @@ export type Database = {
20361
20605
  Args: never;
20362
20606
  Returns: undefined;
20363
20607
  };
20608
+ run_logistics_tasks_dispatch: {
20609
+ Args: never;
20610
+ Returns: undefined;
20611
+ };
20364
20612
  run_twinfield_queue_tick: {
20365
20613
  Args: never;
20366
20614
  Returns: undefined;
@@ -20601,6 +20849,13 @@ export type Database = {
20601
20849
  };
20602
20850
  Returns: number;
20603
20851
  };
20852
+ schedule_floriday_stock_queue_process: {
20853
+ Args: {
20854
+ p_apikey: string;
20855
+ p_url: string;
20856
+ };
20857
+ Returns: number;
20858
+ };
20604
20859
  schedule_floriday_token_refresh: {
20605
20860
  Args: {
20606
20861
  p_apikey: string;