@flowselections/logistiek-engine 1.0.29 → 1.0.30

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 (46) hide show
  1. package/README.md +24 -24
  2. package/dist-lib/components/LogistiekEnginePage.d.ts.map +1 -1
  3. package/dist-lib/components/LogistiekEnginePage.js +2 -1
  4. package/dist-lib/components/WerkwijzeHerindelingCard.d.ts +2 -0
  5. package/dist-lib/components/WerkwijzeHerindelingCard.d.ts.map +1 -0
  6. package/dist-lib/components/WerkwijzeHerindelingCard.js +36 -0
  7. package/dist-lib/hooks/useRuleEngine.d.ts.map +1 -1
  8. package/dist-lib/hooks/useRuleEngine.js +7 -4
  9. package/dist-lib/hooks/useWerkwijzeStatus.d.ts +17 -0
  10. package/dist-lib/hooks/useWerkwijzeStatus.d.ts.map +1 -0
  11. package/dist-lib/hooks/useWerkwijzeStatus.js +58 -0
  12. package/dist-lib/index.d.ts +2 -0
  13. package/dist-lib/index.d.ts.map +1 -1
  14. package/dist-lib/index.js +2 -0
  15. package/dist-lib/integrations/supabase/auth-middleware.d.ts +154 -0
  16. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  17. package/dist-lib/integrations/supabase/client.d.ts +1516 -159
  18. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  19. package/dist-lib/integrations/supabase/client.server.d.ts +154 -0
  20. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  21. package/dist-lib/integrations/supabase/moduleClient.d.ts +154 -0
  22. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  23. package/dist-lib/integrations/supabase/types.d.ts +154 -0
  24. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  25. package/dist-lib/lib/floridayDocuments.functions.d.ts +462 -0
  26. package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
  27. package/dist-lib/lib/floridayDocuments.server.d.ts +7 -1
  28. package/dist-lib/lib/floridayDocuments.server.d.ts.map +1 -1
  29. package/dist-lib/lib/floridayDocuments.server.js +25 -1
  30. package/dist-lib/lib/floridayPush.functions.d.ts +154 -0
  31. package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -1
  32. package/dist-lib/lib/floridayPush.server.d.ts.map +1 -1
  33. package/dist-lib/lib/floridayPush.server.js +28 -0
  34. package/dist-lib/lib/handlers/logistics-tick.server.d.ts.map +1 -1
  35. package/dist-lib/lib/handlers/logistics-tick.server.js +14 -0
  36. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +770 -0
  37. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
  38. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +308 -0
  39. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
  40. package/dist-lib/lib/logisticsRecalculate.functions.d.ts +154 -0
  41. package/dist-lib/lib/logisticsRecalculate.functions.d.ts.map +1 -1
  42. package/dist-lib/lib/modulePrompts.d.ts.map +1 -1
  43. package/dist-lib/lib/modulePrompts.js +2613 -2406
  44. package/dist-lib/lib/ruleEngineSchema.d.ts.map +1 -1
  45. package/dist-lib/lib/ruleEngineSchema.js +7 -0
  46. package/package.json +1 -1
@@ -2159,6 +2159,8 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
2159
2159
  created_at: string;
2160
2160
  currency: string;
2161
2161
  distribute_over: string | null;
2162
+ external_id: string | null;
2163
+ external_synced_at: string | null;
2162
2164
  group_type: string;
2163
2165
  handling_fee: number | null;
2164
2166
  id: string;
@@ -2171,6 +2173,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
2171
2173
  rounding: string;
2172
2174
  rounding_step: number;
2173
2175
  sort_order: number;
2176
+ source: string;
2174
2177
  unit: string;
2175
2178
  updated_at: string;
2176
2179
  };
@@ -2181,6 +2184,8 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
2181
2184
  created_at?: string;
2182
2185
  currency?: string;
2183
2186
  distribute_over?: string | null;
2187
+ external_id?: string | null;
2188
+ external_synced_at?: string | null;
2184
2189
  group_type?: string;
2185
2190
  handling_fee?: number | null;
2186
2191
  id?: string;
@@ -2193,6 +2198,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
2193
2198
  rounding?: string;
2194
2199
  rounding_step?: number;
2195
2200
  sort_order?: number;
2201
+ source?: string;
2196
2202
  unit?: string;
2197
2203
  updated_at?: string;
2198
2204
  };
@@ -2203,6 +2209,8 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
2203
2209
  created_at?: string;
2204
2210
  currency?: string;
2205
2211
  distribute_over?: string | null;
2212
+ external_id?: string | null;
2213
+ external_synced_at?: string | null;
2206
2214
  group_type?: string;
2207
2215
  handling_fee?: number | null;
2208
2216
  id?: string;
@@ -2215,6 +2223,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
2215
2223
  rounding?: string;
2216
2224
  rounding_step?: number;
2217
2225
  sort_order?: number;
2226
+ source?: string;
2218
2227
  unit?: string;
2219
2228
  updated_at?: string;
2220
2229
  };
@@ -9078,6 +9087,30 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
9078
9087
  referencedColumns: ["id"];
9079
9088
  }];
9080
9089
  };
9090
+ job_locks: {
9091
+ Row: {
9092
+ created_at: string;
9093
+ lock_key: string;
9094
+ locked_until: string;
9095
+ owner: string | null;
9096
+ updated_at: string;
9097
+ };
9098
+ Insert: {
9099
+ created_at?: string;
9100
+ lock_key: string;
9101
+ locked_until: string;
9102
+ owner?: string | null;
9103
+ updated_at?: string;
9104
+ };
9105
+ Update: {
9106
+ created_at?: string;
9107
+ lock_key?: string;
9108
+ locked_until?: string;
9109
+ owner?: string | null;
9110
+ updated_at?: string;
9111
+ };
9112
+ Relationships: [];
9113
+ };
9081
9114
  layout_logos: {
9082
9115
  Row: {
9083
9116
  bestand_url: string;
@@ -13623,6 +13656,27 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
13623
13656
  };
13624
13657
  Relationships: [];
13625
13658
  };
13659
+ pick_buffer_event_cursor: {
13660
+ Row: {
13661
+ created_at: string;
13662
+ id: boolean;
13663
+ last_event_at: string;
13664
+ updated_at: string;
13665
+ };
13666
+ Insert: {
13667
+ created_at?: string;
13668
+ id?: boolean;
13669
+ last_event_at?: string;
13670
+ updated_at?: string;
13671
+ };
13672
+ Update: {
13673
+ created_at?: string;
13674
+ id?: boolean;
13675
+ last_event_at?: string;
13676
+ updated_at?: string;
13677
+ };
13678
+ Relationships: [];
13679
+ };
13626
13680
  pick_countries: {
13627
13681
  Row: {
13628
13682
  active: boolean;
@@ -22139,6 +22193,17 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22139
22193
  };
22140
22194
  Returns: boolean;
22141
22195
  };
22196
+ floriday_adopt_connection: {
22197
+ Args: {
22198
+ p_new: string;
22199
+ p_old: string;
22200
+ };
22201
+ Returns: import("../integrations/supabase/types").Json;
22202
+ };
22203
+ floriday_autoheal_connections: {
22204
+ Args: never;
22205
+ Returns: import("../integrations/supabase/types").Json;
22206
+ };
22142
22207
  floriday_capture_stock_snapshot: {
22143
22208
  Args: never;
22144
22209
  Returns: number;
@@ -22196,6 +22261,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22196
22261
  };
22197
22262
  Returns: undefined;
22198
22263
  };
22264
+ floriday_relink_products: {
22265
+ Args: {
22266
+ p_connection_id?: string;
22267
+ };
22268
+ Returns: import("../integrations/supabase/types").Json;
22269
+ };
22199
22270
  floriday_requeue_dead_letters: {
22200
22271
  Args: {
22201
22272
  p_connection_id?: string;
@@ -22817,6 +22888,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22817
22888
  };
22818
22889
  Returns: string;
22819
22890
  };
22891
+ logistics_active_layout_method: {
22892
+ Args: never;
22893
+ Returns: string;
22894
+ };
22820
22895
  logistics_active_pick_workdays: {
22821
22896
  Args: never;
22822
22897
  Returns: string[];
@@ -22906,6 +22981,39 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22906
22981
  };
22907
22982
  Returns: import("../integrations/supabase/types").Json;
22908
22983
  };
22984
+ logistics_buffer_detach_late_orders: {
22985
+ Args: {
22986
+ p_buffer?: string;
22987
+ };
22988
+ Returns: import("../integrations/supabase/types").Json;
22989
+ };
22990
+ logistics_buffer_frozen_order: {
22991
+ Args: {
22992
+ p_order_id: string;
22993
+ };
22994
+ Returns: boolean;
22995
+ };
22996
+ logistics_buffer_handled: {
22997
+ Args: {
22998
+ p_buffer: string;
22999
+ };
23000
+ Returns: boolean;
23001
+ };
23002
+ logistics_buffer_notify: {
23003
+ Args: {
23004
+ p_event_type: string;
23005
+ p_idempotency_key: string;
23006
+ p_order_ref: string;
23007
+ p_payload: import("../integrations/supabase/types").Json;
23008
+ };
23009
+ Returns: string;
23010
+ };
23011
+ logistics_buffer_open_key: {
23012
+ Args: {
23013
+ p_base_key: string;
23014
+ };
23015
+ Returns: string;
23016
+ };
22909
23017
  logistics_buffer_simulate: {
22910
23018
  Args: {
22911
23019
  p_orders?: import("../integrations/supabase/types").Json;
@@ -23547,6 +23655,16 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23547
23655
  };
23548
23656
  Returns: boolean;
23549
23657
  };
23658
+ logistics_layout_method_status: {
23659
+ Args: never;
23660
+ Returns: import("../integrations/supabase/types").Json;
23661
+ };
23662
+ logistics_link_order_items: {
23663
+ Args: {
23664
+ p_order?: string;
23665
+ };
23666
+ Returns: import("../integrations/supabase/types").Json;
23667
+ };
23550
23668
  logistics_live_carriers: {
23551
23669
  Args: {
23552
23670
  p_order_ref: string;
@@ -23573,6 +23691,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23573
23691
  };
23574
23692
  Returns: string;
23575
23693
  };
23694
+ logistics_normalize_product_label: {
23695
+ Args: {
23696
+ p_label: string;
23697
+ };
23698
+ Returns: string;
23699
+ };
23576
23700
  logistics_not_past: {
23577
23701
  Args: {
23578
23702
  p_ts: string;
@@ -23820,6 +23944,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23820
23944
  };
23821
23945
  Returns: import("../integrations/supabase/types").Json;
23822
23946
  };
23947
+ logistics_replan_all: {
23948
+ Args: {
23949
+ p_reason?: string;
23950
+ };
23951
+ Returns: import("../integrations/supabase/types").Json;
23952
+ };
23823
23953
  logistics_report_delay: {
23824
23954
  Args: {
23825
23955
  p_expected_date?: string;
@@ -23873,6 +24003,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23873
24003
  };
23874
24004
  Returns: import("../integrations/supabase/types").Json;
23875
24005
  };
24006
+ logistics_resolve_product_id: {
24007
+ Args: {
24008
+ p_label: string;
24009
+ };
24010
+ Returns: string;
24011
+ };
23876
24012
  logistics_resolve_settings: {
23877
24013
  Args: {
23878
24014
  p_config_id: string;
@@ -24190,6 +24326,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
24190
24326
  online: boolean;
24191
24327
  }[];
24192
24328
  };
24329
+ pick_apply_buffer_events: {
24330
+ Args: never;
24331
+ Returns: import("../integrations/supabase/types").Json;
24332
+ };
24193
24333
  pick_available_pick_days: {
24194
24334
  Args: {
24195
24335
  _max_days?: number;
@@ -25117,6 +25257,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
25117
25257
  };
25118
25258
  Returns: boolean;
25119
25259
  };
25260
+ release_job_lock: {
25261
+ Args: {
25262
+ _key: string;
25263
+ };
25264
+ Returns: undefined;
25265
+ };
25120
25266
  release_local_pdf_job: {
25121
25267
  Args: {
25122
25268
  _job_id: string;
@@ -25805,6 +25951,14 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
25805
25951
  row_count: number;
25806
25952
  }[];
25807
25953
  };
25954
+ try_acquire_job_lock: {
25955
+ Args: {
25956
+ _key: string;
25957
+ _owner?: string;
25958
+ _seconds?: number;
25959
+ };
25960
+ Returns: boolean;
25961
+ };
25808
25962
  try_debtor_lock: {
25809
25963
  Args: {
25810
25964
  _group_key: string;