@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
@@ -2154,6 +2154,8 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
2154
2154
  created_at: string;
2155
2155
  currency: string;
2156
2156
  distribute_over: string | null;
2157
+ external_id: string | null;
2158
+ external_synced_at: string | null;
2157
2159
  group_type: string;
2158
2160
  handling_fee: number | null;
2159
2161
  id: string;
@@ -2166,6 +2168,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
2166
2168
  rounding: string;
2167
2169
  rounding_step: number;
2168
2170
  sort_order: number;
2171
+ source: string;
2169
2172
  unit: string;
2170
2173
  updated_at: string;
2171
2174
  };
@@ -2176,6 +2179,8 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
2176
2179
  created_at?: string;
2177
2180
  currency?: string;
2178
2181
  distribute_over?: string | null;
2182
+ external_id?: string | null;
2183
+ external_synced_at?: string | null;
2179
2184
  group_type?: string;
2180
2185
  handling_fee?: number | null;
2181
2186
  id?: string;
@@ -2188,6 +2193,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
2188
2193
  rounding?: string;
2189
2194
  rounding_step?: number;
2190
2195
  sort_order?: number;
2196
+ source?: string;
2191
2197
  unit?: string;
2192
2198
  updated_at?: string;
2193
2199
  };
@@ -2198,6 +2204,8 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
2198
2204
  created_at?: string;
2199
2205
  currency?: string;
2200
2206
  distribute_over?: string | null;
2207
+ external_id?: string | null;
2208
+ external_synced_at?: string | null;
2201
2209
  group_type?: string;
2202
2210
  handling_fee?: number | null;
2203
2211
  id?: string;
@@ -2210,6 +2218,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
2210
2218
  rounding?: string;
2211
2219
  rounding_step?: number;
2212
2220
  sort_order?: number;
2221
+ source?: string;
2213
2222
  unit?: string;
2214
2223
  updated_at?: string;
2215
2224
  };
@@ -9073,6 +9082,30 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
9073
9082
  referencedColumns: ["id"];
9074
9083
  }];
9075
9084
  };
9085
+ job_locks: {
9086
+ Row: {
9087
+ created_at: string;
9088
+ lock_key: string;
9089
+ locked_until: string;
9090
+ owner: string | null;
9091
+ updated_at: string;
9092
+ };
9093
+ Insert: {
9094
+ created_at?: string;
9095
+ lock_key: string;
9096
+ locked_until: string;
9097
+ owner?: string | null;
9098
+ updated_at?: string;
9099
+ };
9100
+ Update: {
9101
+ created_at?: string;
9102
+ lock_key?: string;
9103
+ locked_until?: string;
9104
+ owner?: string | null;
9105
+ updated_at?: string;
9106
+ };
9107
+ Relationships: [];
9108
+ };
9076
9109
  layout_logos: {
9077
9110
  Row: {
9078
9111
  bestand_url: string;
@@ -10235,6 +10268,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
10235
10268
  next_attempt_at: string;
10236
10269
  order_id: string;
10237
10270
  reason: string;
10271
+ reason_code: string | null;
10238
10272
  status: string;
10239
10273
  updated_at: string;
10240
10274
  };
@@ -10247,6 +10281,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
10247
10281
  next_attempt_at?: string;
10248
10282
  order_id: string;
10249
10283
  reason?: string;
10284
+ reason_code?: string | null;
10250
10285
  status?: string;
10251
10286
  updated_at?: string;
10252
10287
  };
@@ -10259,6 +10294,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
10259
10294
  next_attempt_at?: string;
10260
10295
  order_id?: string;
10261
10296
  reason?: string;
10297
+ reason_code?: string | null;
10262
10298
  status?: string;
10263
10299
  updated_at?: string;
10264
10300
  };
@@ -10963,6 +10999,21 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
10963
10999
  referencedColumns: ["id"];
10964
11000
  }];
10965
11001
  };
11002
+ logistics_tick_heartbeat: {
11003
+ Row: {
11004
+ id: boolean;
11005
+ last_tick_at: string;
11006
+ };
11007
+ Insert: {
11008
+ id?: boolean;
11009
+ last_tick_at?: string;
11010
+ };
11011
+ Update: {
11012
+ id?: boolean;
11013
+ last_tick_at?: string;
11014
+ };
11015
+ Relationships: [];
11016
+ };
10966
11017
  logistics_variables: {
10967
11018
  Row: {
10968
11019
  created_at: string;
@@ -13600,6 +13651,27 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
13600
13651
  };
13601
13652
  Relationships: [];
13602
13653
  };
13654
+ pick_buffer_event_cursor: {
13655
+ Row: {
13656
+ created_at: string;
13657
+ id: boolean;
13658
+ last_event_at: string;
13659
+ updated_at: string;
13660
+ };
13661
+ Insert: {
13662
+ created_at?: string;
13663
+ id?: boolean;
13664
+ last_event_at?: string;
13665
+ updated_at?: string;
13666
+ };
13667
+ Update: {
13668
+ created_at?: string;
13669
+ id?: boolean;
13670
+ last_event_at?: string;
13671
+ updated_at?: string;
13672
+ };
13673
+ Relationships: [];
13674
+ };
13603
13675
  pick_countries: {
13604
13676
  Row: {
13605
13677
  active: boolean;
@@ -22116,6 +22188,17 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
22116
22188
  };
22117
22189
  Returns: boolean;
22118
22190
  };
22191
+ floriday_adopt_connection: {
22192
+ Args: {
22193
+ p_new: string;
22194
+ p_old: string;
22195
+ };
22196
+ Returns: import("../integrations/supabase/types").Json;
22197
+ };
22198
+ floriday_autoheal_connections: {
22199
+ Args: never;
22200
+ Returns: import("../integrations/supabase/types").Json;
22201
+ };
22119
22202
  floriday_capture_stock_snapshot: {
22120
22203
  Args: never;
22121
22204
  Returns: number;
@@ -22173,6 +22256,12 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
22173
22256
  };
22174
22257
  Returns: undefined;
22175
22258
  };
22259
+ floriday_relink_products: {
22260
+ Args: {
22261
+ p_connection_id?: string;
22262
+ };
22263
+ Returns: import("../integrations/supabase/types").Json;
22264
+ };
22176
22265
  floriday_requeue_dead_letters: {
22177
22266
  Args: {
22178
22267
  p_connection_id?: string;
@@ -22794,6 +22883,10 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
22794
22883
  };
22795
22884
  Returns: string;
22796
22885
  };
22886
+ logistics_active_layout_method: {
22887
+ Args: never;
22888
+ Returns: string;
22889
+ };
22797
22890
  logistics_active_pick_workdays: {
22798
22891
  Args: never;
22799
22892
  Returns: string[];
@@ -22845,6 +22938,30 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
22845
22938
  };
22846
22939
  Returns: import("../integrations/supabase/types").Json;
22847
22940
  };
22941
+ logistics_block_reason_code: {
22942
+ Args: {
22943
+ p_details?: import("../integrations/supabase/types").Json;
22944
+ p_reason: string;
22945
+ };
22946
+ Returns: string;
22947
+ };
22948
+ logistics_blocked_orders: {
22949
+ Args: never;
22950
+ Returns: {
22951
+ attempts: number;
22952
+ blocked_since: string;
22953
+ delivery_date: string;
22954
+ order_id: string;
22955
+ order_ref: string;
22956
+ queue_id: string;
22957
+ reason: string;
22958
+ reason_code: string;
22959
+ }[];
22960
+ };
22961
+ logistics_blocked_overview: {
22962
+ Args: never;
22963
+ Returns: import("../integrations/supabase/types").Json;
22964
+ };
22848
22965
  logistics_buffer_criteria: {
22849
22966
  Args: {
22850
22967
  p_settings: import("../integrations/supabase/types").Json;
@@ -22859,6 +22976,39 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
22859
22976
  };
22860
22977
  Returns: import("../integrations/supabase/types").Json;
22861
22978
  };
22979
+ logistics_buffer_detach_late_orders: {
22980
+ Args: {
22981
+ p_buffer?: string;
22982
+ };
22983
+ Returns: import("../integrations/supabase/types").Json;
22984
+ };
22985
+ logistics_buffer_frozen_order: {
22986
+ Args: {
22987
+ p_order_id: string;
22988
+ };
22989
+ Returns: boolean;
22990
+ };
22991
+ logistics_buffer_handled: {
22992
+ Args: {
22993
+ p_buffer: string;
22994
+ };
22995
+ Returns: boolean;
22996
+ };
22997
+ logistics_buffer_notify: {
22998
+ Args: {
22999
+ p_event_type: string;
23000
+ p_idempotency_key: string;
23001
+ p_order_ref: string;
23002
+ p_payload: import("../integrations/supabase/types").Json;
23003
+ };
23004
+ Returns: string;
23005
+ };
23006
+ logistics_buffer_open_key: {
23007
+ Args: {
23008
+ p_base_key: string;
23009
+ };
23010
+ Returns: string;
23011
+ };
22862
23012
  logistics_buffer_simulate: {
22863
23013
  Args: {
22864
23014
  p_orders?: import("../integrations/supabase/types").Json;
@@ -23500,6 +23650,16 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
23500
23650
  };
23501
23651
  Returns: boolean;
23502
23652
  };
23653
+ logistics_layout_method_status: {
23654
+ Args: never;
23655
+ Returns: import("../integrations/supabase/types").Json;
23656
+ };
23657
+ logistics_link_order_items: {
23658
+ Args: {
23659
+ p_order?: string;
23660
+ };
23661
+ Returns: import("../integrations/supabase/types").Json;
23662
+ };
23503
23663
  logistics_live_carriers: {
23504
23664
  Args: {
23505
23665
  p_order_ref: string;
@@ -23526,6 +23686,12 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
23526
23686
  };
23527
23687
  Returns: string;
23528
23688
  };
23689
+ logistics_normalize_product_label: {
23690
+ Args: {
23691
+ p_label: string;
23692
+ };
23693
+ Returns: string;
23694
+ };
23529
23695
  logistics_not_past: {
23530
23696
  Args: {
23531
23697
  p_ts: string;
@@ -23714,6 +23880,12 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
23714
23880
  Args: never;
23715
23881
  Returns: number;
23716
23882
  };
23883
+ logistics_plan_retry: {
23884
+ Args: {
23885
+ p_order_ids: string[];
23886
+ };
23887
+ Returns: number;
23888
+ };
23717
23889
  logistics_plan_setting: {
23718
23890
  Args: {
23719
23891
  p_default: number;
@@ -23767,6 +23939,12 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
23767
23939
  };
23768
23940
  Returns: import("../integrations/supabase/types").Json;
23769
23941
  };
23942
+ logistics_replan_all: {
23943
+ Args: {
23944
+ p_reason?: string;
23945
+ };
23946
+ Returns: import("../integrations/supabase/types").Json;
23947
+ };
23770
23948
  logistics_report_delay: {
23771
23949
  Args: {
23772
23950
  p_expected_date?: string;
@@ -23820,6 +23998,12 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
23820
23998
  };
23821
23999
  Returns: import("../integrations/supabase/types").Json;
23822
24000
  };
24001
+ logistics_resolve_product_id: {
24002
+ Args: {
24003
+ p_label: string;
24004
+ };
24005
+ Returns: string;
24006
+ };
23823
24007
  logistics_resolve_settings: {
23824
24008
  Args: {
23825
24009
  p_config_id: string;
@@ -23949,6 +24133,10 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
23949
24133
  };
23950
24134
  Returns: number;
23951
24135
  };
24136
+ logistics_tick_ping: {
24137
+ Args: never;
24138
+ Returns: string;
24139
+ };
23952
24140
  logistics_upsert_task: {
23953
24141
  Args: {
23954
24142
  p_buffer_ref: string;
@@ -24133,6 +24321,10 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
24133
24321
  online: boolean;
24134
24322
  }[];
24135
24323
  };
24324
+ pick_apply_buffer_events: {
24325
+ Args: never;
24326
+ Returns: import("../integrations/supabase/types").Json;
24327
+ };
24136
24328
  pick_available_pick_days: {
24137
24329
  Args: {
24138
24330
  _max_days?: number;
@@ -25060,6 +25252,12 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
25060
25252
  };
25061
25253
  Returns: boolean;
25062
25254
  };
25255
+ release_job_lock: {
25256
+ Args: {
25257
+ _key: string;
25258
+ };
25259
+ Returns: undefined;
25260
+ };
25063
25261
  release_local_pdf_job: {
25064
25262
  Args: {
25065
25263
  _job_id: string;
@@ -25748,6 +25946,14 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
25748
25946
  row_count: number;
25749
25947
  }[];
25750
25948
  };
25949
+ try_acquire_job_lock: {
25950
+ Args: {
25951
+ _key: string;
25952
+ _owner?: string;
25953
+ _seconds?: number;
25954
+ };
25955
+ Returns: boolean;
25956
+ };
25751
25957
  try_debtor_lock: {
25752
25958
  Args: {
25753
25959
  _group_key: string;
@@ -28060,6 +28266,8 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
28060
28266
  created_at: string;
28061
28267
  currency: string;
28062
28268
  distribute_over: string | null;
28269
+ external_id: string | null;
28270
+ external_synced_at: string | null;
28063
28271
  group_type: string;
28064
28272
  handling_fee: number | null;
28065
28273
  id: string;
@@ -28072,6 +28280,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
28072
28280
  rounding: string;
28073
28281
  rounding_step: number;
28074
28282
  sort_order: number;
28283
+ source: string;
28075
28284
  unit: string;
28076
28285
  updated_at: string;
28077
28286
  };
@@ -28082,6 +28291,8 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
28082
28291
  created_at?: string;
28083
28292
  currency?: string;
28084
28293
  distribute_over?: string | null;
28294
+ external_id?: string | null;
28295
+ external_synced_at?: string | null;
28085
28296
  group_type?: string;
28086
28297
  handling_fee?: number | null;
28087
28298
  id?: string;
@@ -28094,6 +28305,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
28094
28305
  rounding?: string;
28095
28306
  rounding_step?: number;
28096
28307
  sort_order?: number;
28308
+ source?: string;
28097
28309
  unit?: string;
28098
28310
  updated_at?: string;
28099
28311
  };
@@ -28104,6 +28316,8 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
28104
28316
  created_at?: string;
28105
28317
  currency?: string;
28106
28318
  distribute_over?: string | null;
28319
+ external_id?: string | null;
28320
+ external_synced_at?: string | null;
28107
28321
  group_type?: string;
28108
28322
  handling_fee?: number | null;
28109
28323
  id?: string;
@@ -28116,6 +28330,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
28116
28330
  rounding?: string;
28117
28331
  rounding_step?: number;
28118
28332
  sort_order?: number;
28333
+ source?: string;
28119
28334
  unit?: string;
28120
28335
  updated_at?: string;
28121
28336
  };
@@ -34979,6 +35194,30 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
34979
35194
  referencedColumns: ["id"];
34980
35195
  }];
34981
35196
  };
35197
+ job_locks: {
35198
+ Row: {
35199
+ created_at: string;
35200
+ lock_key: string;
35201
+ locked_until: string;
35202
+ owner: string | null;
35203
+ updated_at: string;
35204
+ };
35205
+ Insert: {
35206
+ created_at?: string;
35207
+ lock_key: string;
35208
+ locked_until: string;
35209
+ owner?: string | null;
35210
+ updated_at?: string;
35211
+ };
35212
+ Update: {
35213
+ created_at?: string;
35214
+ lock_key?: string;
35215
+ locked_until?: string;
35216
+ owner?: string | null;
35217
+ updated_at?: string;
35218
+ };
35219
+ Relationships: [];
35220
+ };
34982
35221
  layout_logos: {
34983
35222
  Row: {
34984
35223
  bestand_url: string;
@@ -36141,6 +36380,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
36141
36380
  next_attempt_at: string;
36142
36381
  order_id: string;
36143
36382
  reason: string;
36383
+ reason_code: string | null;
36144
36384
  status: string;
36145
36385
  updated_at: string;
36146
36386
  };
@@ -36153,6 +36393,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
36153
36393
  next_attempt_at?: string;
36154
36394
  order_id: string;
36155
36395
  reason?: string;
36396
+ reason_code?: string | null;
36156
36397
  status?: string;
36157
36398
  updated_at?: string;
36158
36399
  };
@@ -36165,6 +36406,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
36165
36406
  next_attempt_at?: string;
36166
36407
  order_id?: string;
36167
36408
  reason?: string;
36409
+ reason_code?: string | null;
36168
36410
  status?: string;
36169
36411
  updated_at?: string;
36170
36412
  };
@@ -36869,6 +37111,21 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
36869
37111
  referencedColumns: ["id"];
36870
37112
  }];
36871
37113
  };
37114
+ logistics_tick_heartbeat: {
37115
+ Row: {
37116
+ id: boolean;
37117
+ last_tick_at: string;
37118
+ };
37119
+ Insert: {
37120
+ id?: boolean;
37121
+ last_tick_at?: string;
37122
+ };
37123
+ Update: {
37124
+ id?: boolean;
37125
+ last_tick_at?: string;
37126
+ };
37127
+ Relationships: [];
37128
+ };
36872
37129
  logistics_variables: {
36873
37130
  Row: {
36874
37131
  created_at: string;
@@ -39506,6 +39763,27 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
39506
39763
  };
39507
39764
  Relationships: [];
39508
39765
  };
39766
+ pick_buffer_event_cursor: {
39767
+ Row: {
39768
+ created_at: string;
39769
+ id: boolean;
39770
+ last_event_at: string;
39771
+ updated_at: string;
39772
+ };
39773
+ Insert: {
39774
+ created_at?: string;
39775
+ id?: boolean;
39776
+ last_event_at?: string;
39777
+ updated_at?: string;
39778
+ };
39779
+ Update: {
39780
+ created_at?: string;
39781
+ id?: boolean;
39782
+ last_event_at?: string;
39783
+ updated_at?: string;
39784
+ };
39785
+ Relationships: [];
39786
+ };
39509
39787
  pick_countries: {
39510
39788
  Row: {
39511
39789
  active: boolean;
@@ -48022,6 +48300,17 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
48022
48300
  };
48023
48301
  Returns: boolean;
48024
48302
  };
48303
+ floriday_adopt_connection: {
48304
+ Args: {
48305
+ p_new: string;
48306
+ p_old: string;
48307
+ };
48308
+ Returns: import("../integrations/supabase/types").Json;
48309
+ };
48310
+ floriday_autoheal_connections: {
48311
+ Args: never;
48312
+ Returns: import("../integrations/supabase/types").Json;
48313
+ };
48025
48314
  floriday_capture_stock_snapshot: {
48026
48315
  Args: never;
48027
48316
  Returns: number;
@@ -48079,6 +48368,12 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
48079
48368
  };
48080
48369
  Returns: undefined;
48081
48370
  };
48371
+ floriday_relink_products: {
48372
+ Args: {
48373
+ p_connection_id?: string;
48374
+ };
48375
+ Returns: import("../integrations/supabase/types").Json;
48376
+ };
48082
48377
  floriday_requeue_dead_letters: {
48083
48378
  Args: {
48084
48379
  p_connection_id?: string;
@@ -48700,6 +48995,10 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
48700
48995
  };
48701
48996
  Returns: string;
48702
48997
  };
48998
+ logistics_active_layout_method: {
48999
+ Args: never;
49000
+ Returns: string;
49001
+ };
48703
49002
  logistics_active_pick_workdays: {
48704
49003
  Args: never;
48705
49004
  Returns: string[];
@@ -48751,6 +49050,30 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
48751
49050
  };
48752
49051
  Returns: import("../integrations/supabase/types").Json;
48753
49052
  };
49053
+ logistics_block_reason_code: {
49054
+ Args: {
49055
+ p_details?: import("../integrations/supabase/types").Json;
49056
+ p_reason: string;
49057
+ };
49058
+ Returns: string;
49059
+ };
49060
+ logistics_blocked_orders: {
49061
+ Args: never;
49062
+ Returns: {
49063
+ attempts: number;
49064
+ blocked_since: string;
49065
+ delivery_date: string;
49066
+ order_id: string;
49067
+ order_ref: string;
49068
+ queue_id: string;
49069
+ reason: string;
49070
+ reason_code: string;
49071
+ }[];
49072
+ };
49073
+ logistics_blocked_overview: {
49074
+ Args: never;
49075
+ Returns: import("../integrations/supabase/types").Json;
49076
+ };
48754
49077
  logistics_buffer_criteria: {
48755
49078
  Args: {
48756
49079
  p_settings: import("../integrations/supabase/types").Json;
@@ -48765,6 +49088,39 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
48765
49088
  };
48766
49089
  Returns: import("../integrations/supabase/types").Json;
48767
49090
  };
49091
+ logistics_buffer_detach_late_orders: {
49092
+ Args: {
49093
+ p_buffer?: string;
49094
+ };
49095
+ Returns: import("../integrations/supabase/types").Json;
49096
+ };
49097
+ logistics_buffer_frozen_order: {
49098
+ Args: {
49099
+ p_order_id: string;
49100
+ };
49101
+ Returns: boolean;
49102
+ };
49103
+ logistics_buffer_handled: {
49104
+ Args: {
49105
+ p_buffer: string;
49106
+ };
49107
+ Returns: boolean;
49108
+ };
49109
+ logistics_buffer_notify: {
49110
+ Args: {
49111
+ p_event_type: string;
49112
+ p_idempotency_key: string;
49113
+ p_order_ref: string;
49114
+ p_payload: import("../integrations/supabase/types").Json;
49115
+ };
49116
+ Returns: string;
49117
+ };
49118
+ logistics_buffer_open_key: {
49119
+ Args: {
49120
+ p_base_key: string;
49121
+ };
49122
+ Returns: string;
49123
+ };
48768
49124
  logistics_buffer_simulate: {
48769
49125
  Args: {
48770
49126
  p_orders?: import("../integrations/supabase/types").Json;
@@ -49406,6 +49762,16 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
49406
49762
  };
49407
49763
  Returns: boolean;
49408
49764
  };
49765
+ logistics_layout_method_status: {
49766
+ Args: never;
49767
+ Returns: import("../integrations/supabase/types").Json;
49768
+ };
49769
+ logistics_link_order_items: {
49770
+ Args: {
49771
+ p_order?: string;
49772
+ };
49773
+ Returns: import("../integrations/supabase/types").Json;
49774
+ };
49409
49775
  logistics_live_carriers: {
49410
49776
  Args: {
49411
49777
  p_order_ref: string;
@@ -49432,6 +49798,12 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
49432
49798
  };
49433
49799
  Returns: string;
49434
49800
  };
49801
+ logistics_normalize_product_label: {
49802
+ Args: {
49803
+ p_label: string;
49804
+ };
49805
+ Returns: string;
49806
+ };
49435
49807
  logistics_not_past: {
49436
49808
  Args: {
49437
49809
  p_ts: string;
@@ -49620,6 +49992,12 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
49620
49992
  Args: never;
49621
49993
  Returns: number;
49622
49994
  };
49995
+ logistics_plan_retry: {
49996
+ Args: {
49997
+ p_order_ids: string[];
49998
+ };
49999
+ Returns: number;
50000
+ };
49623
50001
  logistics_plan_setting: {
49624
50002
  Args: {
49625
50003
  p_default: number;
@@ -49673,6 +50051,12 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
49673
50051
  };
49674
50052
  Returns: import("../integrations/supabase/types").Json;
49675
50053
  };
50054
+ logistics_replan_all: {
50055
+ Args: {
50056
+ p_reason?: string;
50057
+ };
50058
+ Returns: import("../integrations/supabase/types").Json;
50059
+ };
49676
50060
  logistics_report_delay: {
49677
50061
  Args: {
49678
50062
  p_expected_date?: string;
@@ -49726,6 +50110,12 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
49726
50110
  };
49727
50111
  Returns: import("../integrations/supabase/types").Json;
49728
50112
  };
50113
+ logistics_resolve_product_id: {
50114
+ Args: {
50115
+ p_label: string;
50116
+ };
50117
+ Returns: string;
50118
+ };
49729
50119
  logistics_resolve_settings: {
49730
50120
  Args: {
49731
50121
  p_config_id: string;
@@ -49855,6 +50245,10 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
49855
50245
  };
49856
50246
  Returns: number;
49857
50247
  };
50248
+ logistics_tick_ping: {
50249
+ Args: never;
50250
+ Returns: string;
50251
+ };
49858
50252
  logistics_upsert_task: {
49859
50253
  Args: {
49860
50254
  p_buffer_ref: string;
@@ -50039,6 +50433,10 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
50039
50433
  online: boolean;
50040
50434
  }[];
50041
50435
  };
50436
+ pick_apply_buffer_events: {
50437
+ Args: never;
50438
+ Returns: import("../integrations/supabase/types").Json;
50439
+ };
50042
50440
  pick_available_pick_days: {
50043
50441
  Args: {
50044
50442
  _max_days?: number;
@@ -50966,6 +51364,12 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
50966
51364
  };
50967
51365
  Returns: boolean;
50968
51366
  };
51367
+ release_job_lock: {
51368
+ Args: {
51369
+ _key: string;
51370
+ };
51371
+ Returns: undefined;
51372
+ };
50969
51373
  release_local_pdf_job: {
50970
51374
  Args: {
50971
51375
  _job_id: string;
@@ -51654,6 +52058,14 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
51654
52058
  row_count: number;
51655
52059
  }[];
51656
52060
  };
52061
+ try_acquire_job_lock: {
52062
+ Args: {
52063
+ _key: string;
52064
+ _owner?: string;
52065
+ _seconds?: number;
52066
+ };
52067
+ Returns: boolean;
52068
+ };
51657
52069
  try_debtor_lock: {
51658
52070
  Args: {
51659
52071
  _group_key: string;