@flowselections/logistiek-engine 1.0.28 → 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 (56) hide show
  1. package/README.md +24 -24
  2. package/dist-lib/components/GeblokkeerdeOrdersCard.d.ts +2 -0
  3. package/dist-lib/components/GeblokkeerdeOrdersCard.d.ts.map +1 -0
  4. package/dist-lib/components/GeblokkeerdeOrdersCard.js +44 -0
  5. package/dist-lib/components/LogistiekEnginePage.d.ts.map +1 -1
  6. package/dist-lib/components/LogistiekEnginePage.js +2 -1
  7. package/dist-lib/components/RegiePage.d.ts.map +1 -1
  8. package/dist-lib/components/RegiePage.js +2 -1
  9. package/dist-lib/components/WerkwijzeHerindelingCard.d.ts +2 -0
  10. package/dist-lib/components/WerkwijzeHerindelingCard.d.ts.map +1 -0
  11. package/dist-lib/components/WerkwijzeHerindelingCard.js +36 -0
  12. package/dist-lib/hooks/useGeblokkeerdeOrders.d.ts +28 -0
  13. package/dist-lib/hooks/useGeblokkeerdeOrders.d.ts.map +1 -0
  14. package/dist-lib/hooks/useGeblokkeerdeOrders.js +94 -0
  15. package/dist-lib/hooks/useRuleEngine.d.ts.map +1 -1
  16. package/dist-lib/hooks/useRuleEngine.js +7 -4
  17. package/dist-lib/hooks/useWerkwijzeStatus.d.ts +17 -0
  18. package/dist-lib/hooks/useWerkwijzeStatus.d.ts.map +1 -0
  19. package/dist-lib/hooks/useWerkwijzeStatus.js +58 -0
  20. package/dist-lib/index.d.ts +3 -0
  21. package/dist-lib/index.d.ts.map +1 -1
  22. package/dist-lib/index.js +3 -0
  23. package/dist-lib/integrations/supabase/auth-middleware.d.ts +206 -0
  24. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  25. package/dist-lib/integrations/supabase/client.d.ts +1516 -159
  26. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  27. package/dist-lib/integrations/supabase/client.server.d.ts +206 -0
  28. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  29. package/dist-lib/integrations/supabase/moduleClient.d.ts +206 -0
  30. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  31. package/dist-lib/integrations/supabase/types.d.ts +206 -0
  32. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  33. package/dist-lib/lib/floridayDocuments.functions.d.ts +618 -0
  34. package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
  35. package/dist-lib/lib/floridayDocuments.server.d.ts +7 -1
  36. package/dist-lib/lib/floridayDocuments.server.d.ts.map +1 -1
  37. package/dist-lib/lib/floridayDocuments.server.js +25 -1
  38. package/dist-lib/lib/floridayPush.functions.d.ts +206 -0
  39. package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -1
  40. package/dist-lib/lib/floridayPush.server.d.ts.map +1 -1
  41. package/dist-lib/lib/floridayPush.server.js +28 -0
  42. package/dist-lib/lib/handlers/logistics-tick.server.d.ts.map +1 -1
  43. package/dist-lib/lib/handlers/logistics-tick.server.js +21 -0
  44. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +1030 -0
  45. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
  46. package/dist-lib/lib/loadCarrierPlanning.server.d.ts.map +1 -1
  47. package/dist-lib/lib/loadCarrierPlanning.server.js +23 -3
  48. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +412 -0
  49. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
  50. package/dist-lib/lib/logisticsRecalculate.functions.d.ts +206 -0
  51. package/dist-lib/lib/logisticsRecalculate.functions.d.ts.map +1 -1
  52. package/dist-lib/lib/modulePrompts.d.ts.map +1 -1
  53. package/dist-lib/lib/modulePrompts.js +2613 -2406
  54. package/dist-lib/lib/ruleEngineSchema.d.ts.map +1 -1
  55. package/dist-lib/lib/ruleEngineSchema.js +7 -0
  56. 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;
@@ -10240,6 +10273,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
10240
10273
  next_attempt_at: string;
10241
10274
  order_id: string;
10242
10275
  reason: string;
10276
+ reason_code: string | null;
10243
10277
  status: string;
10244
10278
  updated_at: string;
10245
10279
  };
@@ -10252,6 +10286,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
10252
10286
  next_attempt_at?: string;
10253
10287
  order_id: string;
10254
10288
  reason?: string;
10289
+ reason_code?: string | null;
10255
10290
  status?: string;
10256
10291
  updated_at?: string;
10257
10292
  };
@@ -10264,6 +10299,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
10264
10299
  next_attempt_at?: string;
10265
10300
  order_id?: string;
10266
10301
  reason?: string;
10302
+ reason_code?: string | null;
10267
10303
  status?: string;
10268
10304
  updated_at?: string;
10269
10305
  };
@@ -10968,6 +11004,21 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
10968
11004
  referencedColumns: ["id"];
10969
11005
  }];
10970
11006
  };
11007
+ logistics_tick_heartbeat: {
11008
+ Row: {
11009
+ id: boolean;
11010
+ last_tick_at: string;
11011
+ };
11012
+ Insert: {
11013
+ id?: boolean;
11014
+ last_tick_at?: string;
11015
+ };
11016
+ Update: {
11017
+ id?: boolean;
11018
+ last_tick_at?: string;
11019
+ };
11020
+ Relationships: [];
11021
+ };
10971
11022
  logistics_variables: {
10972
11023
  Row: {
10973
11024
  created_at: string;
@@ -13605,6 +13656,27 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
13605
13656
  };
13606
13657
  Relationships: [];
13607
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
+ };
13608
13680
  pick_countries: {
13609
13681
  Row: {
13610
13682
  active: boolean;
@@ -22121,6 +22193,17 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22121
22193
  };
22122
22194
  Returns: boolean;
22123
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
+ };
22124
22207
  floriday_capture_stock_snapshot: {
22125
22208
  Args: never;
22126
22209
  Returns: number;
@@ -22178,6 +22261,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22178
22261
  };
22179
22262
  Returns: undefined;
22180
22263
  };
22264
+ floriday_relink_products: {
22265
+ Args: {
22266
+ p_connection_id?: string;
22267
+ };
22268
+ Returns: import("../integrations/supabase/types").Json;
22269
+ };
22181
22270
  floriday_requeue_dead_letters: {
22182
22271
  Args: {
22183
22272
  p_connection_id?: string;
@@ -22799,6 +22888,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22799
22888
  };
22800
22889
  Returns: string;
22801
22890
  };
22891
+ logistics_active_layout_method: {
22892
+ Args: never;
22893
+ Returns: string;
22894
+ };
22802
22895
  logistics_active_pick_workdays: {
22803
22896
  Args: never;
22804
22897
  Returns: string[];
@@ -22850,6 +22943,30 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22850
22943
  };
22851
22944
  Returns: import("../integrations/supabase/types").Json;
22852
22945
  };
22946
+ logistics_block_reason_code: {
22947
+ Args: {
22948
+ p_details?: import("../integrations/supabase/types").Json;
22949
+ p_reason: string;
22950
+ };
22951
+ Returns: string;
22952
+ };
22953
+ logistics_blocked_orders: {
22954
+ Args: never;
22955
+ Returns: {
22956
+ attempts: number;
22957
+ blocked_since: string;
22958
+ delivery_date: string;
22959
+ order_id: string;
22960
+ order_ref: string;
22961
+ queue_id: string;
22962
+ reason: string;
22963
+ reason_code: string;
22964
+ }[];
22965
+ };
22966
+ logistics_blocked_overview: {
22967
+ Args: never;
22968
+ Returns: import("../integrations/supabase/types").Json;
22969
+ };
22853
22970
  logistics_buffer_criteria: {
22854
22971
  Args: {
22855
22972
  p_settings: import("../integrations/supabase/types").Json;
@@ -22864,6 +22981,39 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22864
22981
  };
22865
22982
  Returns: import("../integrations/supabase/types").Json;
22866
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
+ };
22867
23017
  logistics_buffer_simulate: {
22868
23018
  Args: {
22869
23019
  p_orders?: import("../integrations/supabase/types").Json;
@@ -23505,6 +23655,16 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23505
23655
  };
23506
23656
  Returns: boolean;
23507
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
+ };
23508
23668
  logistics_live_carriers: {
23509
23669
  Args: {
23510
23670
  p_order_ref: string;
@@ -23531,6 +23691,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23531
23691
  };
23532
23692
  Returns: string;
23533
23693
  };
23694
+ logistics_normalize_product_label: {
23695
+ Args: {
23696
+ p_label: string;
23697
+ };
23698
+ Returns: string;
23699
+ };
23534
23700
  logistics_not_past: {
23535
23701
  Args: {
23536
23702
  p_ts: string;
@@ -23719,6 +23885,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23719
23885
  Args: never;
23720
23886
  Returns: number;
23721
23887
  };
23888
+ logistics_plan_retry: {
23889
+ Args: {
23890
+ p_order_ids: string[];
23891
+ };
23892
+ Returns: number;
23893
+ };
23722
23894
  logistics_plan_setting: {
23723
23895
  Args: {
23724
23896
  p_default: number;
@@ -23772,6 +23944,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23772
23944
  };
23773
23945
  Returns: import("../integrations/supabase/types").Json;
23774
23946
  };
23947
+ logistics_replan_all: {
23948
+ Args: {
23949
+ p_reason?: string;
23950
+ };
23951
+ Returns: import("../integrations/supabase/types").Json;
23952
+ };
23775
23953
  logistics_report_delay: {
23776
23954
  Args: {
23777
23955
  p_expected_date?: string;
@@ -23825,6 +24003,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23825
24003
  };
23826
24004
  Returns: import("../integrations/supabase/types").Json;
23827
24005
  };
24006
+ logistics_resolve_product_id: {
24007
+ Args: {
24008
+ p_label: string;
24009
+ };
24010
+ Returns: string;
24011
+ };
23828
24012
  logistics_resolve_settings: {
23829
24013
  Args: {
23830
24014
  p_config_id: string;
@@ -23954,6 +24138,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23954
24138
  };
23955
24139
  Returns: number;
23956
24140
  };
24141
+ logistics_tick_ping: {
24142
+ Args: never;
24143
+ Returns: string;
24144
+ };
23957
24145
  logistics_upsert_task: {
23958
24146
  Args: {
23959
24147
  p_buffer_ref: string;
@@ -24138,6 +24326,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
24138
24326
  online: boolean;
24139
24327
  }[];
24140
24328
  };
24329
+ pick_apply_buffer_events: {
24330
+ Args: never;
24331
+ Returns: import("../integrations/supabase/types").Json;
24332
+ };
24141
24333
  pick_available_pick_days: {
24142
24334
  Args: {
24143
24335
  _max_days?: number;
@@ -25065,6 +25257,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
25065
25257
  };
25066
25258
  Returns: boolean;
25067
25259
  };
25260
+ release_job_lock: {
25261
+ Args: {
25262
+ _key: string;
25263
+ };
25264
+ Returns: undefined;
25265
+ };
25068
25266
  release_local_pdf_job: {
25069
25267
  Args: {
25070
25268
  _job_id: string;
@@ -25753,6 +25951,14 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
25753
25951
  row_count: number;
25754
25952
  }[];
25755
25953
  };
25954
+ try_acquire_job_lock: {
25955
+ Args: {
25956
+ _key: string;
25957
+ _owner?: string;
25958
+ _seconds?: number;
25959
+ };
25960
+ Returns: boolean;
25961
+ };
25756
25962
  try_debtor_lock: {
25757
25963
  Args: {
25758
25964
  _group_key: string;