@flowselections/floriday-verkoop-module 1.0.48 → 1.0.50

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 (72) hide show
  1. package/dist-lib/components/verkoop/OrderKarindelingCard.d.ts.map +1 -1
  2. package/dist-lib/components/verkoop/OrderKarindelingCard.js +5 -1
  3. package/dist-lib/components/verkoop/SalesOrderDetailView.d.ts.map +1 -1
  4. package/dist-lib/components/verkoop/SalesOrderDetailView.js +6 -4
  5. package/dist-lib/integrations/supabase/auth-middleware.d.ts +63 -1
  6. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  7. package/dist-lib/integrations/supabase/client.d.ts +63 -1
  8. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  9. package/dist-lib/integrations/supabase/client.server.d.ts +63 -1
  10. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  11. package/dist-lib/integrations/supabase/types.d.ts +66 -1
  12. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  13. package/dist-lib/lib/cart-lock.functions.d.ts +63 -1
  14. package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
  15. package/dist-lib/lib/cart-planner.d.ts +15 -4
  16. package/dist-lib/lib/cart-planner.d.ts.map +1 -1
  17. package/dist-lib/lib/cart-planner.js +44 -12
  18. package/dist-lib/lib/cart-planning-settings.functions.d.ts +693 -11
  19. package/dist-lib/lib/cart-planning-settings.functions.d.ts.map +1 -1
  20. package/dist-lib/lib/cart-replan.functions.d.ts +201 -3
  21. package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
  22. package/dist-lib/lib/cart-replan.functions.js +49 -3
  23. package/dist-lib/lib/create-order.functions.d.ts +1076 -17
  24. package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
  25. package/dist-lib/lib/create-order.functions.js +48 -4
  26. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +189 -3
  27. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
  28. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +63 -1
  29. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/floriday-mirror.functions.d.ts +63 -1
  31. package/dist-lib/lib/floriday-mirror.functions.d.ts.map +1 -1
  32. package/dist-lib/lib/floriday-mirror.functions.js +11 -0
  33. package/dist-lib/lib/floriday-public.functions.d.ts +441 -7
  34. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  35. package/dist-lib/lib/floriday-writes.functions.d.ts +315 -5
  36. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  37. package/dist-lib/lib/invoice-timing.functions.d.ts +252 -4
  38. package/dist-lib/lib/invoice-timing.functions.d.ts.map +1 -1
  39. package/dist-lib/lib/load-carrier-labels.d.ts +13 -0
  40. package/dist-lib/lib/load-carrier-labels.d.ts.map +1 -1
  41. package/dist-lib/lib/load-carrier-labels.js +20 -0
  42. package/dist-lib/lib/load-carriers.functions.d.ts +63 -1
  43. package/dist-lib/lib/load-carriers.functions.d.ts.map +1 -1
  44. package/dist-lib/lib/logistics-engine.functions.d.ts +315 -5
  45. package/dist-lib/lib/logistics-engine.functions.d.ts.map +1 -1
  46. package/dist-lib/lib/logistics-stock.functions.d.ts +126 -2
  47. package/dist-lib/lib/logistics-stock.functions.d.ts.map +1 -1
  48. package/dist-lib/lib/order-addresses.functions.d.ts +63 -1
  49. package/dist-lib/lib/order-addresses.functions.d.ts.map +1 -1
  50. package/dist-lib/lib/order-buffers.functions.d.ts +189 -3
  51. package/dist-lib/lib/order-buffers.functions.d.ts.map +1 -1
  52. package/dist-lib/lib/order-carrier.functions.d.ts +126 -2
  53. package/dist-lib/lib/order-carrier.functions.d.ts.map +1 -1
  54. package/dist-lib/lib/order-pickup.functions.d.ts +126 -2
  55. package/dist-lib/lib/order-pickup.functions.d.ts.map +1 -1
  56. package/dist-lib/lib/order-shipments.functions.d.ts +252 -4
  57. package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -1
  58. package/dist-lib/lib/salesorders-list.functions.d.ts +63 -1
  59. package/dist-lib/lib/salesorders-list.functions.d.ts.map +1 -1
  60. package/dist-lib/lib/salesorders-list.server.d.ts.map +1 -1
  61. package/dist-lib/lib/salesorders-list.server.js +70 -4
  62. package/dist-lib/lib/salesorders-mapping.d.ts +17 -0
  63. package/dist-lib/lib/salesorders-mapping.d.ts.map +1 -1
  64. package/dist-lib/lib/salesorders-mapping.js +64 -13
  65. package/dist-lib/lib/salesorders.functions.d.ts +315 -5
  66. package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
  67. package/dist-lib/lib/salesorders.functions.js +19 -3
  68. package/dist-lib/lib/stock-consumption-alerts.functions.d.ts +126 -2
  69. package/dist-lib/lib/stock-consumption-alerts.functions.d.ts.map +1 -1
  70. package/dist-lib/lib/tradeitems.functions.d.ts +63 -1
  71. package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
  72. package/package.json +1 -1
@@ -18634,6 +18634,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
18634
18634
  werkbon_package_items: {
18635
18635
  Row: {
18636
18636
  article_number: string | null;
18637
+ artikel_id: string | null;
18637
18638
  created_at: string;
18638
18639
  gtin: string | null;
18639
18640
  id: string;
@@ -18651,6 +18652,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
18651
18652
  };
18652
18653
  Insert: {
18653
18654
  article_number?: string | null;
18655
+ artikel_id?: string | null;
18654
18656
  created_at?: string;
18655
18657
  gtin?: string | null;
18656
18658
  id?: string;
@@ -18668,6 +18670,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
18668
18670
  };
18669
18671
  Update: {
18670
18672
  article_number?: string | null;
18673
+ artikel_id?: string | null;
18671
18674
  created_at?: string;
18672
18675
  gtin?: string | null;
18673
18676
  id?: string;
@@ -18684,6 +18687,12 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
18684
18687
  updated_at?: string;
18685
18688
  };
18686
18689
  Relationships: [{
18690
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
18691
+ columns: ["artikel_id"];
18692
+ isOneToOne: false;
18693
+ referencedRelation: "artikelen_cache";
18694
+ referencedColumns: ["id"];
18695
+ }, {
18687
18696
  foreignKeyName: "werkbon_package_items_package_id_fkey";
18688
18697
  columns: ["package_id"];
18689
18698
  isOneToOne: false;
@@ -19906,6 +19915,20 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
19906
19915
  referencedColumns: ["id"];
19907
19916
  }];
19908
19917
  };
19918
+ v_werkbon_totalen: {
19919
+ Row: {
19920
+ packages_cents: number | null;
19921
+ packages_minutes: number | null;
19922
+ werkbon_id: string | null;
19923
+ };
19924
+ Relationships: [{
19925
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
19926
+ columns: ["werkbon_id"];
19927
+ isOneToOne: false;
19928
+ referencedRelation: "werkbonnen";
19929
+ referencedColumns: ["id"];
19930
+ }];
19931
+ };
19909
19932
  };
19910
19933
  Functions: {
19911
19934
  _floriday_schedule_job: {
@@ -21453,6 +21476,14 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
21453
21476
  };
21454
21477
  Returns: import("../integrations/supabase/types").Json;
21455
21478
  };
21479
+ logistics_plan_block: {
21480
+ Args: {
21481
+ p_details?: import("../integrations/supabase/types").Json;
21482
+ p_order_ids: string[];
21483
+ p_reason: string;
21484
+ };
21485
+ Returns: number;
21486
+ };
21456
21487
  logistics_plan_buffer_sql: {
21457
21488
  Args: {
21458
21489
  p_buffer_id: string;
@@ -21834,6 +21865,25 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
21834
21865
  };
21835
21866
  Returns: string;
21836
21867
  };
21868
+ pakket_suggesties_voor_tekst: {
21869
+ Args: {
21870
+ _tekst: string;
21871
+ };
21872
+ Returns: {
21873
+ hit_type: string;
21874
+ package_id: string;
21875
+ priority: number;
21876
+ }[];
21877
+ };
21878
+ pakket_voor_reistijd: {
21879
+ Args: {
21880
+ _minuten: number;
21881
+ };
21882
+ Returns: {
21883
+ package_id: string;
21884
+ priority: number;
21885
+ }[];
21886
+ };
21837
21887
  pick_active_printers: {
21838
21888
  Args: never;
21839
21889
  Returns: {
@@ -22884,6 +22934,18 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
22884
22934
  Args: never;
22885
22935
  Returns: string;
22886
22936
  };
22937
+ werkbon_totalen: {
22938
+ Args: {
22939
+ _werkbon_id: string;
22940
+ };
22941
+ Returns: {
22942
+ materials_cents: number;
22943
+ packages_cents: number;
22944
+ packages_minutes: number;
22945
+ total_cents: number;
22946
+ total_minutes: number;
22947
+ }[];
22948
+ };
22887
22949
  wo_create_from_source: {
22888
22950
  Args: {
22889
22951
  _payload?: import("../integrations/supabase/types").Json;
@@ -22922,7 +22984,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
22922
22984
  };
22923
22985
  CompositeTypes: { [_ in never]: never; };
22924
22986
  }, {
22925
- PostgrestVersion: "14.5";
22987
+ PostgrestVersion: "14.17";
22926
22988
  }>;
22927
22989
  userId: string;
22928
22990
  claims: import("@supabase/auth-js").User;
@@ -41552,6 +41614,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
41552
41614
  werkbon_package_items: {
41553
41615
  Row: {
41554
41616
  article_number: string | null;
41617
+ artikel_id: string | null;
41555
41618
  created_at: string;
41556
41619
  gtin: string | null;
41557
41620
  id: string;
@@ -41569,6 +41632,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
41569
41632
  };
41570
41633
  Insert: {
41571
41634
  article_number?: string | null;
41635
+ artikel_id?: string | null;
41572
41636
  created_at?: string;
41573
41637
  gtin?: string | null;
41574
41638
  id?: string;
@@ -41586,6 +41650,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
41586
41650
  };
41587
41651
  Update: {
41588
41652
  article_number?: string | null;
41653
+ artikel_id?: string | null;
41589
41654
  created_at?: string;
41590
41655
  gtin?: string | null;
41591
41656
  id?: string;
@@ -41602,6 +41667,12 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
41602
41667
  updated_at?: string;
41603
41668
  };
41604
41669
  Relationships: [{
41670
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
41671
+ columns: ["artikel_id"];
41672
+ isOneToOne: false;
41673
+ referencedRelation: "artikelen_cache";
41674
+ referencedColumns: ["id"];
41675
+ }, {
41605
41676
  foreignKeyName: "werkbon_package_items_package_id_fkey";
41606
41677
  columns: ["package_id"];
41607
41678
  isOneToOne: false;
@@ -42824,6 +42895,20 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
42824
42895
  referencedColumns: ["id"];
42825
42896
  }];
42826
42897
  };
42898
+ v_werkbon_totalen: {
42899
+ Row: {
42900
+ packages_cents: number | null;
42901
+ packages_minutes: number | null;
42902
+ werkbon_id: string | null;
42903
+ };
42904
+ Relationships: [{
42905
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
42906
+ columns: ["werkbon_id"];
42907
+ isOneToOne: false;
42908
+ referencedRelation: "werkbonnen";
42909
+ referencedColumns: ["id"];
42910
+ }];
42911
+ };
42827
42912
  };
42828
42913
  Functions: {
42829
42914
  _floriday_schedule_job: {
@@ -44371,6 +44456,14 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
44371
44456
  };
44372
44457
  Returns: import("../integrations/supabase/types").Json;
44373
44458
  };
44459
+ logistics_plan_block: {
44460
+ Args: {
44461
+ p_details?: import("../integrations/supabase/types").Json;
44462
+ p_order_ids: string[];
44463
+ p_reason: string;
44464
+ };
44465
+ Returns: number;
44466
+ };
44374
44467
  logistics_plan_buffer_sql: {
44375
44468
  Args: {
44376
44469
  p_buffer_id: string;
@@ -44752,6 +44845,25 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
44752
44845
  };
44753
44846
  Returns: string;
44754
44847
  };
44848
+ pakket_suggesties_voor_tekst: {
44849
+ Args: {
44850
+ _tekst: string;
44851
+ };
44852
+ Returns: {
44853
+ hit_type: string;
44854
+ package_id: string;
44855
+ priority: number;
44856
+ }[];
44857
+ };
44858
+ pakket_voor_reistijd: {
44859
+ Args: {
44860
+ _minuten: number;
44861
+ };
44862
+ Returns: {
44863
+ package_id: string;
44864
+ priority: number;
44865
+ }[];
44866
+ };
44755
44867
  pick_active_printers: {
44756
44868
  Args: never;
44757
44869
  Returns: {
@@ -45802,6 +45914,18 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
45802
45914
  Args: never;
45803
45915
  Returns: string;
45804
45916
  };
45917
+ werkbon_totalen: {
45918
+ Args: {
45919
+ _werkbon_id: string;
45920
+ };
45921
+ Returns: {
45922
+ materials_cents: number;
45923
+ packages_cents: number;
45924
+ packages_minutes: number;
45925
+ total_cents: number;
45926
+ total_minutes: number;
45927
+ }[];
45928
+ };
45805
45929
  wo_create_from_source: {
45806
45930
  Args: {
45807
45931
  _payload?: import("../integrations/supabase/types").Json;
@@ -45840,7 +45964,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
45840
45964
  };
45841
45965
  CompositeTypes: { [_ in never]: never; };
45842
45966
  }, {
45843
- PostgrestVersion: "14.5";
45967
+ PostgrestVersion: "14.17";
45844
45968
  }>;
45845
45969
  userId: string;
45846
45970
  claims: import("@supabase/auth-js").User;
@@ -64471,6 +64595,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
64471
64595
  werkbon_package_items: {
64472
64596
  Row: {
64473
64597
  article_number: string | null;
64598
+ artikel_id: string | null;
64474
64599
  created_at: string;
64475
64600
  gtin: string | null;
64476
64601
  id: string;
@@ -64488,6 +64613,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
64488
64613
  };
64489
64614
  Insert: {
64490
64615
  article_number?: string | null;
64616
+ artikel_id?: string | null;
64491
64617
  created_at?: string;
64492
64618
  gtin?: string | null;
64493
64619
  id?: string;
@@ -64505,6 +64631,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
64505
64631
  };
64506
64632
  Update: {
64507
64633
  article_number?: string | null;
64634
+ artikel_id?: string | null;
64508
64635
  created_at?: string;
64509
64636
  gtin?: string | null;
64510
64637
  id?: string;
@@ -64521,6 +64648,12 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
64521
64648
  updated_at?: string;
64522
64649
  };
64523
64650
  Relationships: [{
64651
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
64652
+ columns: ["artikel_id"];
64653
+ isOneToOne: false;
64654
+ referencedRelation: "artikelen_cache";
64655
+ referencedColumns: ["id"];
64656
+ }, {
64524
64657
  foreignKeyName: "werkbon_package_items_package_id_fkey";
64525
64658
  columns: ["package_id"];
64526
64659
  isOneToOne: false;
@@ -65743,6 +65876,20 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
65743
65876
  referencedColumns: ["id"];
65744
65877
  }];
65745
65878
  };
65879
+ v_werkbon_totalen: {
65880
+ Row: {
65881
+ packages_cents: number | null;
65882
+ packages_minutes: number | null;
65883
+ werkbon_id: string | null;
65884
+ };
65885
+ Relationships: [{
65886
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
65887
+ columns: ["werkbon_id"];
65888
+ isOneToOne: false;
65889
+ referencedRelation: "werkbonnen";
65890
+ referencedColumns: ["id"];
65891
+ }];
65892
+ };
65746
65893
  };
65747
65894
  Functions: {
65748
65895
  _floriday_schedule_job: {
@@ -67290,6 +67437,14 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
67290
67437
  };
67291
67438
  Returns: import("../integrations/supabase/types").Json;
67292
67439
  };
67440
+ logistics_plan_block: {
67441
+ Args: {
67442
+ p_details?: import("../integrations/supabase/types").Json;
67443
+ p_order_ids: string[];
67444
+ p_reason: string;
67445
+ };
67446
+ Returns: number;
67447
+ };
67293
67448
  logistics_plan_buffer_sql: {
67294
67449
  Args: {
67295
67450
  p_buffer_id: string;
@@ -67671,6 +67826,25 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
67671
67826
  };
67672
67827
  Returns: string;
67673
67828
  };
67829
+ pakket_suggesties_voor_tekst: {
67830
+ Args: {
67831
+ _tekst: string;
67832
+ };
67833
+ Returns: {
67834
+ hit_type: string;
67835
+ package_id: string;
67836
+ priority: number;
67837
+ }[];
67838
+ };
67839
+ pakket_voor_reistijd: {
67840
+ Args: {
67841
+ _minuten: number;
67842
+ };
67843
+ Returns: {
67844
+ package_id: string;
67845
+ priority: number;
67846
+ }[];
67847
+ };
67674
67848
  pick_active_printers: {
67675
67849
  Args: never;
67676
67850
  Returns: {
@@ -68721,6 +68895,18 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
68721
68895
  Args: never;
68722
68896
  Returns: string;
68723
68897
  };
68898
+ werkbon_totalen: {
68899
+ Args: {
68900
+ _werkbon_id: string;
68901
+ };
68902
+ Returns: {
68903
+ materials_cents: number;
68904
+ packages_cents: number;
68905
+ packages_minutes: number;
68906
+ total_cents: number;
68907
+ total_minutes: number;
68908
+ }[];
68909
+ };
68724
68910
  wo_create_from_source: {
68725
68911
  Args: {
68726
68912
  _payload?: import("../integrations/supabase/types").Json;
@@ -68759,7 +68945,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
68759
68945
  };
68760
68946
  CompositeTypes: { [_ in never]: never; };
68761
68947
  }, {
68762
- PostgrestVersion: "14.5";
68948
+ PostgrestVersion: "14.17";
68763
68949
  }>;
68764
68950
  userId: string;
68765
68951
  claims: import("@supabase/auth-js").User;