@flowselections/floriday-verkoop-module 1.0.49 → 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 (60) hide show
  1. package/dist-lib/integrations/supabase/auth-middleware.d.ts +55 -1
  2. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  3. package/dist-lib/integrations/supabase/client.d.ts +55 -1
  4. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  5. package/dist-lib/integrations/supabase/client.server.d.ts +55 -1
  6. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  7. package/dist-lib/integrations/supabase/types.d.ts +58 -1
  8. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  9. package/dist-lib/lib/cart-lock.functions.d.ts +55 -1
  10. package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
  11. package/dist-lib/lib/cart-planner.d.ts +15 -4
  12. package/dist-lib/lib/cart-planner.d.ts.map +1 -1
  13. package/dist-lib/lib/cart-planner.js +44 -12
  14. package/dist-lib/lib/cart-planning-settings.functions.d.ts +605 -11
  15. package/dist-lib/lib/cart-planning-settings.functions.d.ts.map +1 -1
  16. package/dist-lib/lib/cart-replan.functions.d.ts +177 -3
  17. package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
  18. package/dist-lib/lib/cart-replan.functions.js +49 -3
  19. package/dist-lib/lib/create-order.functions.d.ts +940 -17
  20. package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
  21. package/dist-lib/lib/create-order.functions.js +48 -4
  22. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +165 -3
  23. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
  24. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +55 -1
  25. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
  26. package/dist-lib/lib/floriday-mirror.functions.d.ts +55 -1
  27. package/dist-lib/lib/floriday-mirror.functions.d.ts.map +1 -1
  28. package/dist-lib/lib/floriday-public.functions.d.ts +385 -7
  29. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/floriday-writes.functions.d.ts +275 -5
  31. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  32. package/dist-lib/lib/invoice-timing.functions.d.ts +220 -4
  33. package/dist-lib/lib/invoice-timing.functions.d.ts.map +1 -1
  34. package/dist-lib/lib/load-carriers.functions.d.ts +55 -1
  35. package/dist-lib/lib/load-carriers.functions.d.ts.map +1 -1
  36. package/dist-lib/lib/logistics-engine.functions.d.ts +275 -5
  37. package/dist-lib/lib/logistics-engine.functions.d.ts.map +1 -1
  38. package/dist-lib/lib/logistics-stock.functions.d.ts +110 -2
  39. package/dist-lib/lib/logistics-stock.functions.d.ts.map +1 -1
  40. package/dist-lib/lib/order-addresses.functions.d.ts +55 -1
  41. package/dist-lib/lib/order-addresses.functions.d.ts.map +1 -1
  42. package/dist-lib/lib/order-buffers.functions.d.ts +165 -3
  43. package/dist-lib/lib/order-buffers.functions.d.ts.map +1 -1
  44. package/dist-lib/lib/order-carrier.functions.d.ts +110 -2
  45. package/dist-lib/lib/order-carrier.functions.d.ts.map +1 -1
  46. package/dist-lib/lib/order-pickup.functions.d.ts +110 -2
  47. package/dist-lib/lib/order-pickup.functions.d.ts.map +1 -1
  48. package/dist-lib/lib/order-shipments.functions.d.ts +220 -4
  49. package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -1
  50. package/dist-lib/lib/salesorders-list.functions.d.ts +55 -1
  51. package/dist-lib/lib/salesorders-list.functions.d.ts.map +1 -1
  52. package/dist-lib/lib/salesorders-list.server.d.ts.map +1 -1
  53. package/dist-lib/lib/salesorders-list.server.js +61 -3
  54. package/dist-lib/lib/salesorders.functions.d.ts +275 -5
  55. package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
  56. package/dist-lib/lib/stock-consumption-alerts.functions.d.ts +110 -2
  57. package/dist-lib/lib/stock-consumption-alerts.functions.d.ts.map +1 -1
  58. package/dist-lib/lib/tradeitems.functions.d.ts +55 -1
  59. package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
  60. package/package.json +1 -1
@@ -1,3 +1,10 @@
1
+ export interface BlockedItem {
2
+ order_item_id: string;
3
+ order_id: string | null;
4
+ product_name: string;
5
+ reason: "geen_belading" | "onvolledige_belading";
6
+ missing: string[];
7
+ }
1
8
  export declare function replanBufferInternal(bufferId: string): Promise<{
2
9
  ok: boolean;
3
10
  bufferId: string | null;
@@ -6,6 +13,7 @@ export declare function replanBufferInternal(bufferId: string): Promise<{
6
13
  replacedManualCount: number;
7
14
  usedFloridayPacking: boolean;
8
15
  warnings: string[];
16
+ blockedItems: BlockedItem[];
9
17
  skipped?: "locked";
10
18
  }>;
11
19
  /**
@@ -23,6 +31,7 @@ export declare function replanScopeInternal(scope: {
23
31
  replacedManualCount: number;
24
32
  usedFloridayPacking: boolean;
25
33
  warnings: string[];
34
+ blockedItems: BlockedItem[];
26
35
  skipped?: "locked";
27
36
  }>;
28
37
  export declare function replanOrderCartsFromCron(orderId: string): Promise<{
@@ -32,6 +41,7 @@ export declare function replanOrderCartsFromCron(orderId: string): Promise<{
32
41
  replacedManualCount: number;
33
42
  usedFloridayPacking: boolean;
34
43
  warnings: string[];
44
+ blockedItems: BlockedItem[];
35
45
  skipped?: "locked";
36
46
  }>;
37
47
  export declare const replanOrderCarts: import("@tanstack/start-client-core").OptionalFetcher<readonly [import("@tanstack/start-client-core").FunctionMiddlewareAfterServer<{}, unknown, undefined, {
@@ -18655,6 +18665,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
18655
18665
  werkbon_package_items: {
18656
18666
  Row: {
18657
18667
  article_number: string | null;
18668
+ artikel_id: string | null;
18658
18669
  created_at: string;
18659
18670
  gtin: string | null;
18660
18671
  id: string;
@@ -18672,6 +18683,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
18672
18683
  };
18673
18684
  Insert: {
18674
18685
  article_number?: string | null;
18686
+ artikel_id?: string | null;
18675
18687
  created_at?: string;
18676
18688
  gtin?: string | null;
18677
18689
  id?: string;
@@ -18689,6 +18701,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
18689
18701
  };
18690
18702
  Update: {
18691
18703
  article_number?: string | null;
18704
+ artikel_id?: string | null;
18692
18705
  created_at?: string;
18693
18706
  gtin?: string | null;
18694
18707
  id?: string;
@@ -18705,6 +18718,12 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
18705
18718
  updated_at?: string;
18706
18719
  };
18707
18720
  Relationships: [{
18721
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
18722
+ columns: ["artikel_id"];
18723
+ isOneToOne: false;
18724
+ referencedRelation: "artikelen_cache";
18725
+ referencedColumns: ["id"];
18726
+ }, {
18708
18727
  foreignKeyName: "werkbon_package_items_package_id_fkey";
18709
18728
  columns: ["package_id"];
18710
18729
  isOneToOne: false;
@@ -19927,6 +19946,20 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
19927
19946
  referencedColumns: ["id"];
19928
19947
  }];
19929
19948
  };
19949
+ v_werkbon_totalen: {
19950
+ Row: {
19951
+ packages_cents: number | null;
19952
+ packages_minutes: number | null;
19953
+ werkbon_id: string | null;
19954
+ };
19955
+ Relationships: [{
19956
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
19957
+ columns: ["werkbon_id"];
19958
+ isOneToOne: false;
19959
+ referencedRelation: "werkbonnen";
19960
+ referencedColumns: ["id"];
19961
+ }];
19962
+ };
19930
19963
  };
19931
19964
  Functions: {
19932
19965
  _floriday_schedule_job: {
@@ -21863,6 +21896,25 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
21863
21896
  };
21864
21897
  Returns: string;
21865
21898
  };
21899
+ pakket_suggesties_voor_tekst: {
21900
+ Args: {
21901
+ _tekst: string;
21902
+ };
21903
+ Returns: {
21904
+ hit_type: string;
21905
+ package_id: string;
21906
+ priority: number;
21907
+ }[];
21908
+ };
21909
+ pakket_voor_reistijd: {
21910
+ Args: {
21911
+ _minuten: number;
21912
+ };
21913
+ Returns: {
21914
+ package_id: string;
21915
+ priority: number;
21916
+ }[];
21917
+ };
21866
21918
  pick_active_printers: {
21867
21919
  Args: never;
21868
21920
  Returns: {
@@ -22913,6 +22965,18 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
22913
22965
  Args: never;
22914
22966
  Returns: string;
22915
22967
  };
22968
+ werkbon_totalen: {
22969
+ Args: {
22970
+ _werkbon_id: string;
22971
+ };
22972
+ Returns: {
22973
+ materials_cents: number;
22974
+ packages_cents: number;
22975
+ packages_minutes: number;
22976
+ total_cents: number;
22977
+ total_minutes: number;
22978
+ }[];
22979
+ };
22916
22980
  wo_create_from_source: {
22917
22981
  Args: {
22918
22982
  _payload?: import("../integrations/supabase/types").Json;
@@ -22951,7 +23015,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
22951
23015
  };
22952
23016
  CompositeTypes: { [_ in never]: never; };
22953
23017
  }, {
22954
- PostgrestVersion: "14.5";
23018
+ PostgrestVersion: "14.17";
22955
23019
  }>;
22956
23020
  userId: string;
22957
23021
  claims: import("@supabase/auth-js").User;
@@ -22964,6 +23028,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
22964
23028
  replacedManualCount: number;
22965
23029
  usedFloridayPacking: boolean;
22966
23030
  warnings: string[];
23031
+ blockedItems: BlockedItem[];
22967
23032
  skipped?: "locked";
22968
23033
  }>>;
22969
23034
  export declare function drainCartReplanQueue(limit?: number): Promise<{
@@ -41597,6 +41662,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
41597
41662
  werkbon_package_items: {
41598
41663
  Row: {
41599
41664
  article_number: string | null;
41665
+ artikel_id: string | null;
41600
41666
  created_at: string;
41601
41667
  gtin: string | null;
41602
41668
  id: string;
@@ -41614,6 +41680,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
41614
41680
  };
41615
41681
  Insert: {
41616
41682
  article_number?: string | null;
41683
+ artikel_id?: string | null;
41617
41684
  created_at?: string;
41618
41685
  gtin?: string | null;
41619
41686
  id?: string;
@@ -41631,6 +41698,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
41631
41698
  };
41632
41699
  Update: {
41633
41700
  article_number?: string | null;
41701
+ artikel_id?: string | null;
41634
41702
  created_at?: string;
41635
41703
  gtin?: string | null;
41636
41704
  id?: string;
@@ -41647,6 +41715,12 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
41647
41715
  updated_at?: string;
41648
41716
  };
41649
41717
  Relationships: [{
41718
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
41719
+ columns: ["artikel_id"];
41720
+ isOneToOne: false;
41721
+ referencedRelation: "artikelen_cache";
41722
+ referencedColumns: ["id"];
41723
+ }, {
41650
41724
  foreignKeyName: "werkbon_package_items_package_id_fkey";
41651
41725
  columns: ["package_id"];
41652
41726
  isOneToOne: false;
@@ -42869,6 +42943,20 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
42869
42943
  referencedColumns: ["id"];
42870
42944
  }];
42871
42945
  };
42946
+ v_werkbon_totalen: {
42947
+ Row: {
42948
+ packages_cents: number | null;
42949
+ packages_minutes: number | null;
42950
+ werkbon_id: string | null;
42951
+ };
42952
+ Relationships: [{
42953
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
42954
+ columns: ["werkbon_id"];
42955
+ isOneToOne: false;
42956
+ referencedRelation: "werkbonnen";
42957
+ referencedColumns: ["id"];
42958
+ }];
42959
+ };
42872
42960
  };
42873
42961
  Functions: {
42874
42962
  _floriday_schedule_job: {
@@ -44805,6 +44893,25 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
44805
44893
  };
44806
44894
  Returns: string;
44807
44895
  };
44896
+ pakket_suggesties_voor_tekst: {
44897
+ Args: {
44898
+ _tekst: string;
44899
+ };
44900
+ Returns: {
44901
+ hit_type: string;
44902
+ package_id: string;
44903
+ priority: number;
44904
+ }[];
44905
+ };
44906
+ pakket_voor_reistijd: {
44907
+ Args: {
44908
+ _minuten: number;
44909
+ };
44910
+ Returns: {
44911
+ package_id: string;
44912
+ priority: number;
44913
+ }[];
44914
+ };
44808
44915
  pick_active_printers: {
44809
44916
  Args: never;
44810
44917
  Returns: {
@@ -45855,6 +45962,18 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
45855
45962
  Args: never;
45856
45963
  Returns: string;
45857
45964
  };
45965
+ werkbon_totalen: {
45966
+ Args: {
45967
+ _werkbon_id: string;
45968
+ };
45969
+ Returns: {
45970
+ materials_cents: number;
45971
+ packages_cents: number;
45972
+ packages_minutes: number;
45973
+ total_cents: number;
45974
+ total_minutes: number;
45975
+ }[];
45976
+ };
45858
45977
  wo_create_from_source: {
45859
45978
  Args: {
45860
45979
  _payload?: import("../integrations/supabase/types").Json;
@@ -45893,7 +46012,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
45893
46012
  };
45894
46013
  CompositeTypes: { [_ in never]: never; };
45895
46014
  }, {
45896
- PostgrestVersion: "14.5";
46015
+ PostgrestVersion: "14.17";
45897
46016
  }>;
45898
46017
  userId: string;
45899
46018
  claims: import("@supabase/auth-js").User;
@@ -64547,6 +64666,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
64547
64666
  werkbon_package_items: {
64548
64667
  Row: {
64549
64668
  article_number: string | null;
64669
+ artikel_id: string | null;
64550
64670
  created_at: string;
64551
64671
  gtin: string | null;
64552
64672
  id: string;
@@ -64564,6 +64684,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
64564
64684
  };
64565
64685
  Insert: {
64566
64686
  article_number?: string | null;
64687
+ artikel_id?: string | null;
64567
64688
  created_at?: string;
64568
64689
  gtin?: string | null;
64569
64690
  id?: string;
@@ -64581,6 +64702,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
64581
64702
  };
64582
64703
  Update: {
64583
64704
  article_number?: string | null;
64705
+ artikel_id?: string | null;
64584
64706
  created_at?: string;
64585
64707
  gtin?: string | null;
64586
64708
  id?: string;
@@ -64597,6 +64719,12 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
64597
64719
  updated_at?: string;
64598
64720
  };
64599
64721
  Relationships: [{
64722
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
64723
+ columns: ["artikel_id"];
64724
+ isOneToOne: false;
64725
+ referencedRelation: "artikelen_cache";
64726
+ referencedColumns: ["id"];
64727
+ }, {
64600
64728
  foreignKeyName: "werkbon_package_items_package_id_fkey";
64601
64729
  columns: ["package_id"];
64602
64730
  isOneToOne: false;
@@ -65819,6 +65947,20 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
65819
65947
  referencedColumns: ["id"];
65820
65948
  }];
65821
65949
  };
65950
+ v_werkbon_totalen: {
65951
+ Row: {
65952
+ packages_cents: number | null;
65953
+ packages_minutes: number | null;
65954
+ werkbon_id: string | null;
65955
+ };
65956
+ Relationships: [{
65957
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
65958
+ columns: ["werkbon_id"];
65959
+ isOneToOne: false;
65960
+ referencedRelation: "werkbonnen";
65961
+ referencedColumns: ["id"];
65962
+ }];
65963
+ };
65822
65964
  };
65823
65965
  Functions: {
65824
65966
  _floriday_schedule_job: {
@@ -67755,6 +67897,25 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
67755
67897
  };
67756
67898
  Returns: string;
67757
67899
  };
67900
+ pakket_suggesties_voor_tekst: {
67901
+ Args: {
67902
+ _tekst: string;
67903
+ };
67904
+ Returns: {
67905
+ hit_type: string;
67906
+ package_id: string;
67907
+ priority: number;
67908
+ }[];
67909
+ };
67910
+ pakket_voor_reistijd: {
67911
+ Args: {
67912
+ _minuten: number;
67913
+ };
67914
+ Returns: {
67915
+ package_id: string;
67916
+ priority: number;
67917
+ }[];
67918
+ };
67758
67919
  pick_active_printers: {
67759
67920
  Args: never;
67760
67921
  Returns: {
@@ -68805,6 +68966,18 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
68805
68966
  Args: never;
68806
68967
  Returns: string;
68807
68968
  };
68969
+ werkbon_totalen: {
68970
+ Args: {
68971
+ _werkbon_id: string;
68972
+ };
68973
+ Returns: {
68974
+ materials_cents: number;
68975
+ packages_cents: number;
68976
+ packages_minutes: number;
68977
+ total_cents: number;
68978
+ total_minutes: number;
68979
+ }[];
68980
+ };
68808
68981
  wo_create_from_source: {
68809
68982
  Args: {
68810
68983
  _payload?: import("../integrations/supabase/types").Json;
@@ -68843,7 +69016,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
68843
69016
  };
68844
69017
  CompositeTypes: { [_ in never]: never; };
68845
69018
  }, {
68846
- PostgrestVersion: "14.5";
69019
+ PostgrestVersion: "14.17";
68847
69020
  }>;
68848
69021
  userId: string;
68849
69022
  claims: import("@supabase/auth-js").User;
@@ -68857,6 +69030,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
68857
69030
  replacedManualCount: number;
68858
69031
  usedFloridayPacking: boolean;
68859
69032
  warnings: string[];
69033
+ blockedItems: BlockedItem[];
68860
69034
  skipped?: "locked";
68861
69035
  }>>;
68862
69036
  //# sourceMappingURL=cart-replan.functions.d.ts.map