@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 replanOrderLoadCarriers: import("@tanstack/start-client-cor
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 replanOrderLoadCarriers: import("@tanstack/start-client-cor
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 replanOrderLoadCarriers: import("@tanstack/start-client-cor
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 replanOrderLoadCarriers: import("@tanstack/start-client-cor
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 replanOrderLoadCarriers: import("@tanstack/start-client-cor
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 replanOrderLoadCarriers: import("@tanstack/start-client-cor
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 replanOrderLoadCarriers: import("@tanstack/start-client-cor
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 replanOrderLoadCarriers: import("@tanstack/start-client-cor
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 replanOrderLoadCarriers: import("@tanstack/start-client-cor
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 replanOrderLoadCarriers: import("@tanstack/start-client-cor
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 replanOrderLoadCarriers: import("@tanstack/start-client-cor
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 replanOrderLoadCarriers: import("@tanstack/start-client-cor
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 replanOrderLoadCarriers: import("@tanstack/start-client-cor
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 replanOrderLoadCarriers: import("@tanstack/start-client-cor
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 replanOrderLoadCarriers: import("@tanstack/start-client-cor
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 replanOrderLoadCarriers: import("@tanstack/start-client-cor
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 replanOrderLoadCarriers: import("@tanstack/start-client-cor
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 replanOrderLoadCarriers: import("@tanstack/start-client-cor
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 replanOrderLoadCarriers: import("@tanstack/start-client-cor
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 replanOrderLoadCarriers: import("@tanstack/start-client-cor
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 replanOrderLoadCarriers: import("@tanstack/start-client-cor
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 replanOrderLoadCarriers: import("@tanstack/start-client-cor
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 replanOrderLoadCarriers: import("@tanstack/start-client-cor
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 replanOrderLoadCarriers: import("@tanstack/start-client-cor
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 replanOrderLoadCarriers: import("@tanstack/start-client-cor
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 replanOrderLoadCarriers: import("@tanstack/start-client-cor
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 replanBufferLoadCarriers: import("@tanstack/start-client-co
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 replanBufferLoadCarriers: import("@tanstack/start-client-co
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 replanBufferLoadCarriers: import("@tanstack/start-client-co
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 replanBufferLoadCarriers: import("@tanstack/start-client-co
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 replanBufferLoadCarriers: import("@tanstack/start-client-co
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 replanBufferLoadCarriers: import("@tanstack/start-client-co
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 replanBufferLoadCarriers: import("@tanstack/start-client-co
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 replanBufferLoadCarriers: import("@tanstack/start-client-co
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 replanBufferLoadCarriers: import("@tanstack/start-client-co
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 replanBufferLoadCarriers: import("@tanstack/start-client-co
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 replanBufferLoadCarriers: import("@tanstack/start-client-co
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 replanBufferLoadCarriers: import("@tanstack/start-client-co
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 replanBufferLoadCarriers: import("@tanstack/start-client-co
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 replanBufferLoadCarriers: import("@tanstack/start-client-co
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 replanBufferLoadCarriers: import("@tanstack/start-client-co
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 replanBufferLoadCarriers: import("@tanstack/start-client-co
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 replanBufferLoadCarriers: import("@tanstack/start-client-co
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 replanBufferLoadCarriers: import("@tanstack/start-client-co
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 replanBufferLoadCarriers: import("@tanstack/start-client-co
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 replanBufferLoadCarriers: import("@tanstack/start-client-co
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 replanBufferLoadCarriers: import("@tanstack/start-client-co
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 replanBufferLoadCarriers: import("@tanstack/start-client-co
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 replanBufferLoadCarriers: import("@tanstack/start-client-co
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 replanBufferLoadCarriers: import("@tanstack/start-client-co
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 replanBufferLoadCarriers: import("@tanstack/start-client-co
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 replanBufferLoadCarriers: import("@tanstack/start-client-co
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;
@@ -53970,6 +54382,8 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
53970
54382
  created_at: string;
53971
54383
  currency: string;
53972
54384
  distribute_over: string | null;
54385
+ external_id: string | null;
54386
+ external_synced_at: string | null;
53973
54387
  group_type: string;
53974
54388
  handling_fee: number | null;
53975
54389
  id: string;
@@ -53982,6 +54396,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
53982
54396
  rounding: string;
53983
54397
  rounding_step: number;
53984
54398
  sort_order: number;
54399
+ source: string;
53985
54400
  unit: string;
53986
54401
  updated_at: string;
53987
54402
  };
@@ -53992,6 +54407,8 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
53992
54407
  created_at?: string;
53993
54408
  currency?: string;
53994
54409
  distribute_over?: string | null;
54410
+ external_id?: string | null;
54411
+ external_synced_at?: string | null;
53995
54412
  group_type?: string;
53996
54413
  handling_fee?: number | null;
53997
54414
  id?: string;
@@ -54004,6 +54421,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
54004
54421
  rounding?: string;
54005
54422
  rounding_step?: number;
54006
54423
  sort_order?: number;
54424
+ source?: string;
54007
54425
  unit?: string;
54008
54426
  updated_at?: string;
54009
54427
  };
@@ -54014,6 +54432,8 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
54014
54432
  created_at?: string;
54015
54433
  currency?: string;
54016
54434
  distribute_over?: string | null;
54435
+ external_id?: string | null;
54436
+ external_synced_at?: string | null;
54017
54437
  group_type?: string;
54018
54438
  handling_fee?: number | null;
54019
54439
  id?: string;
@@ -54026,6 +54446,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
54026
54446
  rounding?: string;
54027
54447
  rounding_step?: number;
54028
54448
  sort_order?: number;
54449
+ source?: string;
54029
54450
  unit?: string;
54030
54451
  updated_at?: string;
54031
54452
  };
@@ -60889,6 +61310,30 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
60889
61310
  referencedColumns: ["id"];
60890
61311
  }];
60891
61312
  };
61313
+ job_locks: {
61314
+ Row: {
61315
+ created_at: string;
61316
+ lock_key: string;
61317
+ locked_until: string;
61318
+ owner: string | null;
61319
+ updated_at: string;
61320
+ };
61321
+ Insert: {
61322
+ created_at?: string;
61323
+ lock_key: string;
61324
+ locked_until: string;
61325
+ owner?: string | null;
61326
+ updated_at?: string;
61327
+ };
61328
+ Update: {
61329
+ created_at?: string;
61330
+ lock_key?: string;
61331
+ locked_until?: string;
61332
+ owner?: string | null;
61333
+ updated_at?: string;
61334
+ };
61335
+ Relationships: [];
61336
+ };
60892
61337
  layout_logos: {
60893
61338
  Row: {
60894
61339
  bestand_url: string;
@@ -62051,6 +62496,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
62051
62496
  next_attempt_at: string;
62052
62497
  order_id: string;
62053
62498
  reason: string;
62499
+ reason_code: string | null;
62054
62500
  status: string;
62055
62501
  updated_at: string;
62056
62502
  };
@@ -62063,6 +62509,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
62063
62509
  next_attempt_at?: string;
62064
62510
  order_id: string;
62065
62511
  reason?: string;
62512
+ reason_code?: string | null;
62066
62513
  status?: string;
62067
62514
  updated_at?: string;
62068
62515
  };
@@ -62075,6 +62522,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
62075
62522
  next_attempt_at?: string;
62076
62523
  order_id?: string;
62077
62524
  reason?: string;
62525
+ reason_code?: string | null;
62078
62526
  status?: string;
62079
62527
  updated_at?: string;
62080
62528
  };
@@ -62779,6 +63227,21 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
62779
63227
  referencedColumns: ["id"];
62780
63228
  }];
62781
63229
  };
63230
+ logistics_tick_heartbeat: {
63231
+ Row: {
63232
+ id: boolean;
63233
+ last_tick_at: string;
63234
+ };
63235
+ Insert: {
63236
+ id?: boolean;
63237
+ last_tick_at?: string;
63238
+ };
63239
+ Update: {
63240
+ id?: boolean;
63241
+ last_tick_at?: string;
63242
+ };
63243
+ Relationships: [];
63244
+ };
62782
63245
  logistics_variables: {
62783
63246
  Row: {
62784
63247
  created_at: string;
@@ -65416,6 +65879,27 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
65416
65879
  };
65417
65880
  Relationships: [];
65418
65881
  };
65882
+ pick_buffer_event_cursor: {
65883
+ Row: {
65884
+ created_at: string;
65885
+ id: boolean;
65886
+ last_event_at: string;
65887
+ updated_at: string;
65888
+ };
65889
+ Insert: {
65890
+ created_at?: string;
65891
+ id?: boolean;
65892
+ last_event_at?: string;
65893
+ updated_at?: string;
65894
+ };
65895
+ Update: {
65896
+ created_at?: string;
65897
+ id?: boolean;
65898
+ last_event_at?: string;
65899
+ updated_at?: string;
65900
+ };
65901
+ Relationships: [];
65902
+ };
65419
65903
  pick_countries: {
65420
65904
  Row: {
65421
65905
  active: boolean;
@@ -73932,6 +74416,17 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
73932
74416
  };
73933
74417
  Returns: boolean;
73934
74418
  };
74419
+ floriday_adopt_connection: {
74420
+ Args: {
74421
+ p_new: string;
74422
+ p_old: string;
74423
+ };
74424
+ Returns: import("../integrations/supabase/types").Json;
74425
+ };
74426
+ floriday_autoheal_connections: {
74427
+ Args: never;
74428
+ Returns: import("../integrations/supabase/types").Json;
74429
+ };
73935
74430
  floriday_capture_stock_snapshot: {
73936
74431
  Args: never;
73937
74432
  Returns: number;
@@ -73989,6 +74484,12 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
73989
74484
  };
73990
74485
  Returns: undefined;
73991
74486
  };
74487
+ floriday_relink_products: {
74488
+ Args: {
74489
+ p_connection_id?: string;
74490
+ };
74491
+ Returns: import("../integrations/supabase/types").Json;
74492
+ };
73992
74493
  floriday_requeue_dead_letters: {
73993
74494
  Args: {
73994
74495
  p_connection_id?: string;
@@ -74610,6 +75111,10 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
74610
75111
  };
74611
75112
  Returns: string;
74612
75113
  };
75114
+ logistics_active_layout_method: {
75115
+ Args: never;
75116
+ Returns: string;
75117
+ };
74613
75118
  logistics_active_pick_workdays: {
74614
75119
  Args: never;
74615
75120
  Returns: string[];
@@ -74661,6 +75166,30 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
74661
75166
  };
74662
75167
  Returns: import("../integrations/supabase/types").Json;
74663
75168
  };
75169
+ logistics_block_reason_code: {
75170
+ Args: {
75171
+ p_details?: import("../integrations/supabase/types").Json;
75172
+ p_reason: string;
75173
+ };
75174
+ Returns: string;
75175
+ };
75176
+ logistics_blocked_orders: {
75177
+ Args: never;
75178
+ Returns: {
75179
+ attempts: number;
75180
+ blocked_since: string;
75181
+ delivery_date: string;
75182
+ order_id: string;
75183
+ order_ref: string;
75184
+ queue_id: string;
75185
+ reason: string;
75186
+ reason_code: string;
75187
+ }[];
75188
+ };
75189
+ logistics_blocked_overview: {
75190
+ Args: never;
75191
+ Returns: import("../integrations/supabase/types").Json;
75192
+ };
74664
75193
  logistics_buffer_criteria: {
74665
75194
  Args: {
74666
75195
  p_settings: import("../integrations/supabase/types").Json;
@@ -74675,6 +75204,39 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
74675
75204
  };
74676
75205
  Returns: import("../integrations/supabase/types").Json;
74677
75206
  };
75207
+ logistics_buffer_detach_late_orders: {
75208
+ Args: {
75209
+ p_buffer?: string;
75210
+ };
75211
+ Returns: import("../integrations/supabase/types").Json;
75212
+ };
75213
+ logistics_buffer_frozen_order: {
75214
+ Args: {
75215
+ p_order_id: string;
75216
+ };
75217
+ Returns: boolean;
75218
+ };
75219
+ logistics_buffer_handled: {
75220
+ Args: {
75221
+ p_buffer: string;
75222
+ };
75223
+ Returns: boolean;
75224
+ };
75225
+ logistics_buffer_notify: {
75226
+ Args: {
75227
+ p_event_type: string;
75228
+ p_idempotency_key: string;
75229
+ p_order_ref: string;
75230
+ p_payload: import("../integrations/supabase/types").Json;
75231
+ };
75232
+ Returns: string;
75233
+ };
75234
+ logistics_buffer_open_key: {
75235
+ Args: {
75236
+ p_base_key: string;
75237
+ };
75238
+ Returns: string;
75239
+ };
74678
75240
  logistics_buffer_simulate: {
74679
75241
  Args: {
74680
75242
  p_orders?: import("../integrations/supabase/types").Json;
@@ -75316,6 +75878,16 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
75316
75878
  };
75317
75879
  Returns: boolean;
75318
75880
  };
75881
+ logistics_layout_method_status: {
75882
+ Args: never;
75883
+ Returns: import("../integrations/supabase/types").Json;
75884
+ };
75885
+ logistics_link_order_items: {
75886
+ Args: {
75887
+ p_order?: string;
75888
+ };
75889
+ Returns: import("../integrations/supabase/types").Json;
75890
+ };
75319
75891
  logistics_live_carriers: {
75320
75892
  Args: {
75321
75893
  p_order_ref: string;
@@ -75342,6 +75914,12 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
75342
75914
  };
75343
75915
  Returns: string;
75344
75916
  };
75917
+ logistics_normalize_product_label: {
75918
+ Args: {
75919
+ p_label: string;
75920
+ };
75921
+ Returns: string;
75922
+ };
75345
75923
  logistics_not_past: {
75346
75924
  Args: {
75347
75925
  p_ts: string;
@@ -75530,6 +76108,12 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
75530
76108
  Args: never;
75531
76109
  Returns: number;
75532
76110
  };
76111
+ logistics_plan_retry: {
76112
+ Args: {
76113
+ p_order_ids: string[];
76114
+ };
76115
+ Returns: number;
76116
+ };
75533
76117
  logistics_plan_setting: {
75534
76118
  Args: {
75535
76119
  p_default: number;
@@ -75583,6 +76167,12 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
75583
76167
  };
75584
76168
  Returns: import("../integrations/supabase/types").Json;
75585
76169
  };
76170
+ logistics_replan_all: {
76171
+ Args: {
76172
+ p_reason?: string;
76173
+ };
76174
+ Returns: import("../integrations/supabase/types").Json;
76175
+ };
75586
76176
  logistics_report_delay: {
75587
76177
  Args: {
75588
76178
  p_expected_date?: string;
@@ -75636,6 +76226,12 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
75636
76226
  };
75637
76227
  Returns: import("../integrations/supabase/types").Json;
75638
76228
  };
76229
+ logistics_resolve_product_id: {
76230
+ Args: {
76231
+ p_label: string;
76232
+ };
76233
+ Returns: string;
76234
+ };
75639
76235
  logistics_resolve_settings: {
75640
76236
  Args: {
75641
76237
  p_config_id: string;
@@ -75765,6 +76361,10 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
75765
76361
  };
75766
76362
  Returns: number;
75767
76363
  };
76364
+ logistics_tick_ping: {
76365
+ Args: never;
76366
+ Returns: string;
76367
+ };
75768
76368
  logistics_upsert_task: {
75769
76369
  Args: {
75770
76370
  p_buffer_ref: string;
@@ -75949,6 +76549,10 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
75949
76549
  online: boolean;
75950
76550
  }[];
75951
76551
  };
76552
+ pick_apply_buffer_events: {
76553
+ Args: never;
76554
+ Returns: import("../integrations/supabase/types").Json;
76555
+ };
75952
76556
  pick_available_pick_days: {
75953
76557
  Args: {
75954
76558
  _max_days?: number;
@@ -76876,6 +77480,12 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
76876
77480
  };
76877
77481
  Returns: boolean;
76878
77482
  };
77483
+ release_job_lock: {
77484
+ Args: {
77485
+ _key: string;
77486
+ };
77487
+ Returns: undefined;
77488
+ };
76879
77489
  release_local_pdf_job: {
76880
77490
  Args: {
76881
77491
  _job_id: string;
@@ -77564,6 +78174,14 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
77564
78174
  row_count: number;
77565
78175
  }[];
77566
78176
  };
78177
+ try_acquire_job_lock: {
78178
+ Args: {
78179
+ _key: string;
78180
+ _owner?: string;
78181
+ _seconds?: number;
78182
+ };
78183
+ Returns: boolean;
78184
+ };
77567
78185
  try_debtor_lock: {
77568
78186
  Args: {
77569
78187
  _group_key: string;
@@ -79880,6 +80498,8 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
79880
80498
  created_at: string;
79881
80499
  currency: string;
79882
80500
  distribute_over: string | null;
80501
+ external_id: string | null;
80502
+ external_synced_at: string | null;
79883
80503
  group_type: string;
79884
80504
  handling_fee: number | null;
79885
80505
  id: string;
@@ -79892,6 +80512,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
79892
80512
  rounding: string;
79893
80513
  rounding_step: number;
79894
80514
  sort_order: number;
80515
+ source: string;
79895
80516
  unit: string;
79896
80517
  updated_at: string;
79897
80518
  };
@@ -79902,6 +80523,8 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
79902
80523
  created_at?: string;
79903
80524
  currency?: string;
79904
80525
  distribute_over?: string | null;
80526
+ external_id?: string | null;
80527
+ external_synced_at?: string | null;
79905
80528
  group_type?: string;
79906
80529
  handling_fee?: number | null;
79907
80530
  id?: string;
@@ -79914,6 +80537,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
79914
80537
  rounding?: string;
79915
80538
  rounding_step?: number;
79916
80539
  sort_order?: number;
80540
+ source?: string;
79917
80541
  unit?: string;
79918
80542
  updated_at?: string;
79919
80543
  };
@@ -79924,6 +80548,8 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
79924
80548
  created_at?: string;
79925
80549
  currency?: string;
79926
80550
  distribute_over?: string | null;
80551
+ external_id?: string | null;
80552
+ external_synced_at?: string | null;
79927
80553
  group_type?: string;
79928
80554
  handling_fee?: number | null;
79929
80555
  id?: string;
@@ -79936,6 +80562,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
79936
80562
  rounding?: string;
79937
80563
  rounding_step?: number;
79938
80564
  sort_order?: number;
80565
+ source?: string;
79939
80566
  unit?: string;
79940
80567
  updated_at?: string;
79941
80568
  };
@@ -86799,6 +87426,30 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
86799
87426
  referencedColumns: ["id"];
86800
87427
  }];
86801
87428
  };
87429
+ job_locks: {
87430
+ Row: {
87431
+ created_at: string;
87432
+ lock_key: string;
87433
+ locked_until: string;
87434
+ owner: string | null;
87435
+ updated_at: string;
87436
+ };
87437
+ Insert: {
87438
+ created_at?: string;
87439
+ lock_key: string;
87440
+ locked_until: string;
87441
+ owner?: string | null;
87442
+ updated_at?: string;
87443
+ };
87444
+ Update: {
87445
+ created_at?: string;
87446
+ lock_key?: string;
87447
+ locked_until?: string;
87448
+ owner?: string | null;
87449
+ updated_at?: string;
87450
+ };
87451
+ Relationships: [];
87452
+ };
86802
87453
  layout_logos: {
86803
87454
  Row: {
86804
87455
  bestand_url: string;
@@ -87961,6 +88612,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
87961
88612
  next_attempt_at: string;
87962
88613
  order_id: string;
87963
88614
  reason: string;
88615
+ reason_code: string | null;
87964
88616
  status: string;
87965
88617
  updated_at: string;
87966
88618
  };
@@ -87973,6 +88625,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
87973
88625
  next_attempt_at?: string;
87974
88626
  order_id: string;
87975
88627
  reason?: string;
88628
+ reason_code?: string | null;
87976
88629
  status?: string;
87977
88630
  updated_at?: string;
87978
88631
  };
@@ -87985,6 +88638,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
87985
88638
  next_attempt_at?: string;
87986
88639
  order_id?: string;
87987
88640
  reason?: string;
88641
+ reason_code?: string | null;
87988
88642
  status?: string;
87989
88643
  updated_at?: string;
87990
88644
  };
@@ -88689,6 +89343,21 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
88689
89343
  referencedColumns: ["id"];
88690
89344
  }];
88691
89345
  };
89346
+ logistics_tick_heartbeat: {
89347
+ Row: {
89348
+ id: boolean;
89349
+ last_tick_at: string;
89350
+ };
89351
+ Insert: {
89352
+ id?: boolean;
89353
+ last_tick_at?: string;
89354
+ };
89355
+ Update: {
89356
+ id?: boolean;
89357
+ last_tick_at?: string;
89358
+ };
89359
+ Relationships: [];
89360
+ };
88692
89361
  logistics_variables: {
88693
89362
  Row: {
88694
89363
  created_at: string;
@@ -91326,6 +91995,27 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
91326
91995
  };
91327
91996
  Relationships: [];
91328
91997
  };
91998
+ pick_buffer_event_cursor: {
91999
+ Row: {
92000
+ created_at: string;
92001
+ id: boolean;
92002
+ last_event_at: string;
92003
+ updated_at: string;
92004
+ };
92005
+ Insert: {
92006
+ created_at?: string;
92007
+ id?: boolean;
92008
+ last_event_at?: string;
92009
+ updated_at?: string;
92010
+ };
92011
+ Update: {
92012
+ created_at?: string;
92013
+ id?: boolean;
92014
+ last_event_at?: string;
92015
+ updated_at?: string;
92016
+ };
92017
+ Relationships: [];
92018
+ };
91329
92019
  pick_countries: {
91330
92020
  Row: {
91331
92021
  active: boolean;
@@ -99842,6 +100532,17 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
99842
100532
  };
99843
100533
  Returns: boolean;
99844
100534
  };
100535
+ floriday_adopt_connection: {
100536
+ Args: {
100537
+ p_new: string;
100538
+ p_old: string;
100539
+ };
100540
+ Returns: import("../integrations/supabase/types").Json;
100541
+ };
100542
+ floriday_autoheal_connections: {
100543
+ Args: never;
100544
+ Returns: import("../integrations/supabase/types").Json;
100545
+ };
99845
100546
  floriday_capture_stock_snapshot: {
99846
100547
  Args: never;
99847
100548
  Returns: number;
@@ -99899,6 +100600,12 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
99899
100600
  };
99900
100601
  Returns: undefined;
99901
100602
  };
100603
+ floriday_relink_products: {
100604
+ Args: {
100605
+ p_connection_id?: string;
100606
+ };
100607
+ Returns: import("../integrations/supabase/types").Json;
100608
+ };
99902
100609
  floriday_requeue_dead_letters: {
99903
100610
  Args: {
99904
100611
  p_connection_id?: string;
@@ -100520,6 +101227,10 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
100520
101227
  };
100521
101228
  Returns: string;
100522
101229
  };
101230
+ logistics_active_layout_method: {
101231
+ Args: never;
101232
+ Returns: string;
101233
+ };
100523
101234
  logistics_active_pick_workdays: {
100524
101235
  Args: never;
100525
101236
  Returns: string[];
@@ -100571,6 +101282,30 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
100571
101282
  };
100572
101283
  Returns: import("../integrations/supabase/types").Json;
100573
101284
  };
101285
+ logistics_block_reason_code: {
101286
+ Args: {
101287
+ p_details?: import("../integrations/supabase/types").Json;
101288
+ p_reason: string;
101289
+ };
101290
+ Returns: string;
101291
+ };
101292
+ logistics_blocked_orders: {
101293
+ Args: never;
101294
+ Returns: {
101295
+ attempts: number;
101296
+ blocked_since: string;
101297
+ delivery_date: string;
101298
+ order_id: string;
101299
+ order_ref: string;
101300
+ queue_id: string;
101301
+ reason: string;
101302
+ reason_code: string;
101303
+ }[];
101304
+ };
101305
+ logistics_blocked_overview: {
101306
+ Args: never;
101307
+ Returns: import("../integrations/supabase/types").Json;
101308
+ };
100574
101309
  logistics_buffer_criteria: {
100575
101310
  Args: {
100576
101311
  p_settings: import("../integrations/supabase/types").Json;
@@ -100585,6 +101320,39 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
100585
101320
  };
100586
101321
  Returns: import("../integrations/supabase/types").Json;
100587
101322
  };
101323
+ logistics_buffer_detach_late_orders: {
101324
+ Args: {
101325
+ p_buffer?: string;
101326
+ };
101327
+ Returns: import("../integrations/supabase/types").Json;
101328
+ };
101329
+ logistics_buffer_frozen_order: {
101330
+ Args: {
101331
+ p_order_id: string;
101332
+ };
101333
+ Returns: boolean;
101334
+ };
101335
+ logistics_buffer_handled: {
101336
+ Args: {
101337
+ p_buffer: string;
101338
+ };
101339
+ Returns: boolean;
101340
+ };
101341
+ logistics_buffer_notify: {
101342
+ Args: {
101343
+ p_event_type: string;
101344
+ p_idempotency_key: string;
101345
+ p_order_ref: string;
101346
+ p_payload: import("../integrations/supabase/types").Json;
101347
+ };
101348
+ Returns: string;
101349
+ };
101350
+ logistics_buffer_open_key: {
101351
+ Args: {
101352
+ p_base_key: string;
101353
+ };
101354
+ Returns: string;
101355
+ };
100588
101356
  logistics_buffer_simulate: {
100589
101357
  Args: {
100590
101358
  p_orders?: import("../integrations/supabase/types").Json;
@@ -101226,6 +101994,16 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
101226
101994
  };
101227
101995
  Returns: boolean;
101228
101996
  };
101997
+ logistics_layout_method_status: {
101998
+ Args: never;
101999
+ Returns: import("../integrations/supabase/types").Json;
102000
+ };
102001
+ logistics_link_order_items: {
102002
+ Args: {
102003
+ p_order?: string;
102004
+ };
102005
+ Returns: import("../integrations/supabase/types").Json;
102006
+ };
101229
102007
  logistics_live_carriers: {
101230
102008
  Args: {
101231
102009
  p_order_ref: string;
@@ -101252,6 +102030,12 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
101252
102030
  };
101253
102031
  Returns: string;
101254
102032
  };
102033
+ logistics_normalize_product_label: {
102034
+ Args: {
102035
+ p_label: string;
102036
+ };
102037
+ Returns: string;
102038
+ };
101255
102039
  logistics_not_past: {
101256
102040
  Args: {
101257
102041
  p_ts: string;
@@ -101440,6 +102224,12 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
101440
102224
  Args: never;
101441
102225
  Returns: number;
101442
102226
  };
102227
+ logistics_plan_retry: {
102228
+ Args: {
102229
+ p_order_ids: string[];
102230
+ };
102231
+ Returns: number;
102232
+ };
101443
102233
  logistics_plan_setting: {
101444
102234
  Args: {
101445
102235
  p_default: number;
@@ -101493,6 +102283,12 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
101493
102283
  };
101494
102284
  Returns: import("../integrations/supabase/types").Json;
101495
102285
  };
102286
+ logistics_replan_all: {
102287
+ Args: {
102288
+ p_reason?: string;
102289
+ };
102290
+ Returns: import("../integrations/supabase/types").Json;
102291
+ };
101496
102292
  logistics_report_delay: {
101497
102293
  Args: {
101498
102294
  p_expected_date?: string;
@@ -101546,6 +102342,12 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
101546
102342
  };
101547
102343
  Returns: import("../integrations/supabase/types").Json;
101548
102344
  };
102345
+ logistics_resolve_product_id: {
102346
+ Args: {
102347
+ p_label: string;
102348
+ };
102349
+ Returns: string;
102350
+ };
101549
102351
  logistics_resolve_settings: {
101550
102352
  Args: {
101551
102353
  p_config_id: string;
@@ -101675,6 +102477,10 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
101675
102477
  };
101676
102478
  Returns: number;
101677
102479
  };
102480
+ logistics_tick_ping: {
102481
+ Args: never;
102482
+ Returns: string;
102483
+ };
101678
102484
  logistics_upsert_task: {
101679
102485
  Args: {
101680
102486
  p_buffer_ref: string;
@@ -101859,6 +102665,10 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
101859
102665
  online: boolean;
101860
102666
  }[];
101861
102667
  };
102668
+ pick_apply_buffer_events: {
102669
+ Args: never;
102670
+ Returns: import("../integrations/supabase/types").Json;
102671
+ };
101862
102672
  pick_available_pick_days: {
101863
102673
  Args: {
101864
102674
  _max_days?: number;
@@ -102786,6 +103596,12 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
102786
103596
  };
102787
103597
  Returns: boolean;
102788
103598
  };
103599
+ release_job_lock: {
103600
+ Args: {
103601
+ _key: string;
103602
+ };
103603
+ Returns: undefined;
103604
+ };
102789
103605
  release_local_pdf_job: {
102790
103606
  Args: {
102791
103607
  _job_id: string;
@@ -103474,6 +104290,14 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
103474
104290
  row_count: number;
103475
104291
  }[];
103476
104292
  };
104293
+ try_acquire_job_lock: {
104294
+ Args: {
104295
+ _key: string;
104296
+ _owner?: string;
104297
+ _seconds?: number;
104298
+ };
104299
+ Returns: boolean;
104300
+ };
103477
104301
  try_debtor_lock: {
103478
104302
  Args: {
103479
104303
  _group_key: string;
@@ -105788,6 +106612,8 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
105788
106612
  created_at: string;
105789
106613
  currency: string;
105790
106614
  distribute_over: string | null;
106615
+ external_id: string | null;
106616
+ external_synced_at: string | null;
105791
106617
  group_type: string;
105792
106618
  handling_fee: number | null;
105793
106619
  id: string;
@@ -105800,6 +106626,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
105800
106626
  rounding: string;
105801
106627
  rounding_step: number;
105802
106628
  sort_order: number;
106629
+ source: string;
105803
106630
  unit: string;
105804
106631
  updated_at: string;
105805
106632
  };
@@ -105810,6 +106637,8 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
105810
106637
  created_at?: string;
105811
106638
  currency?: string;
105812
106639
  distribute_over?: string | null;
106640
+ external_id?: string | null;
106641
+ external_synced_at?: string | null;
105813
106642
  group_type?: string;
105814
106643
  handling_fee?: number | null;
105815
106644
  id?: string;
@@ -105822,6 +106651,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
105822
106651
  rounding?: string;
105823
106652
  rounding_step?: number;
105824
106653
  sort_order?: number;
106654
+ source?: string;
105825
106655
  unit?: string;
105826
106656
  updated_at?: string;
105827
106657
  };
@@ -105832,6 +106662,8 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
105832
106662
  created_at?: string;
105833
106663
  currency?: string;
105834
106664
  distribute_over?: string | null;
106665
+ external_id?: string | null;
106666
+ external_synced_at?: string | null;
105835
106667
  group_type?: string;
105836
106668
  handling_fee?: number | null;
105837
106669
  id?: string;
@@ -105844,6 +106676,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
105844
106676
  rounding?: string;
105845
106677
  rounding_step?: number;
105846
106678
  sort_order?: number;
106679
+ source?: string;
105847
106680
  unit?: string;
105848
106681
  updated_at?: string;
105849
106682
  };
@@ -112707,6 +113540,30 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
112707
113540
  referencedColumns: ["id"];
112708
113541
  }];
112709
113542
  };
113543
+ job_locks: {
113544
+ Row: {
113545
+ created_at: string;
113546
+ lock_key: string;
113547
+ locked_until: string;
113548
+ owner: string | null;
113549
+ updated_at: string;
113550
+ };
113551
+ Insert: {
113552
+ created_at?: string;
113553
+ lock_key: string;
113554
+ locked_until: string;
113555
+ owner?: string | null;
113556
+ updated_at?: string;
113557
+ };
113558
+ Update: {
113559
+ created_at?: string;
113560
+ lock_key?: string;
113561
+ locked_until?: string;
113562
+ owner?: string | null;
113563
+ updated_at?: string;
113564
+ };
113565
+ Relationships: [];
113566
+ };
112710
113567
  layout_logos: {
112711
113568
  Row: {
112712
113569
  bestand_url: string;
@@ -113869,6 +114726,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
113869
114726
  next_attempt_at: string;
113870
114727
  order_id: string;
113871
114728
  reason: string;
114729
+ reason_code: string | null;
113872
114730
  status: string;
113873
114731
  updated_at: string;
113874
114732
  };
@@ -113881,6 +114739,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
113881
114739
  next_attempt_at?: string;
113882
114740
  order_id: string;
113883
114741
  reason?: string;
114742
+ reason_code?: string | null;
113884
114743
  status?: string;
113885
114744
  updated_at?: string;
113886
114745
  };
@@ -113893,6 +114752,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
113893
114752
  next_attempt_at?: string;
113894
114753
  order_id?: string;
113895
114754
  reason?: string;
114755
+ reason_code?: string | null;
113896
114756
  status?: string;
113897
114757
  updated_at?: string;
113898
114758
  };
@@ -114597,6 +115457,21 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
114597
115457
  referencedColumns: ["id"];
114598
115458
  }];
114599
115459
  };
115460
+ logistics_tick_heartbeat: {
115461
+ Row: {
115462
+ id: boolean;
115463
+ last_tick_at: string;
115464
+ };
115465
+ Insert: {
115466
+ id?: boolean;
115467
+ last_tick_at?: string;
115468
+ };
115469
+ Update: {
115470
+ id?: boolean;
115471
+ last_tick_at?: string;
115472
+ };
115473
+ Relationships: [];
115474
+ };
114600
115475
  logistics_variables: {
114601
115476
  Row: {
114602
115477
  created_at: string;
@@ -117234,6 +118109,27 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
117234
118109
  };
117235
118110
  Relationships: [];
117236
118111
  };
118112
+ pick_buffer_event_cursor: {
118113
+ Row: {
118114
+ created_at: string;
118115
+ id: boolean;
118116
+ last_event_at: string;
118117
+ updated_at: string;
118118
+ };
118119
+ Insert: {
118120
+ created_at?: string;
118121
+ id?: boolean;
118122
+ last_event_at?: string;
118123
+ updated_at?: string;
118124
+ };
118125
+ Update: {
118126
+ created_at?: string;
118127
+ id?: boolean;
118128
+ last_event_at?: string;
118129
+ updated_at?: string;
118130
+ };
118131
+ Relationships: [];
118132
+ };
117237
118133
  pick_countries: {
117238
118134
  Row: {
117239
118135
  active: boolean;
@@ -125750,6 +126646,17 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
125750
126646
  };
125751
126647
  Returns: boolean;
125752
126648
  };
126649
+ floriday_adopt_connection: {
126650
+ Args: {
126651
+ p_new: string;
126652
+ p_old: string;
126653
+ };
126654
+ Returns: import("../integrations/supabase/types").Json;
126655
+ };
126656
+ floriday_autoheal_connections: {
126657
+ Args: never;
126658
+ Returns: import("../integrations/supabase/types").Json;
126659
+ };
125753
126660
  floriday_capture_stock_snapshot: {
125754
126661
  Args: never;
125755
126662
  Returns: number;
@@ -125807,6 +126714,12 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
125807
126714
  };
125808
126715
  Returns: undefined;
125809
126716
  };
126717
+ floriday_relink_products: {
126718
+ Args: {
126719
+ p_connection_id?: string;
126720
+ };
126721
+ Returns: import("../integrations/supabase/types").Json;
126722
+ };
125810
126723
  floriday_requeue_dead_letters: {
125811
126724
  Args: {
125812
126725
  p_connection_id?: string;
@@ -126428,6 +127341,10 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
126428
127341
  };
126429
127342
  Returns: string;
126430
127343
  };
127344
+ logistics_active_layout_method: {
127345
+ Args: never;
127346
+ Returns: string;
127347
+ };
126431
127348
  logistics_active_pick_workdays: {
126432
127349
  Args: never;
126433
127350
  Returns: string[];
@@ -126479,6 +127396,30 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
126479
127396
  };
126480
127397
  Returns: import("../integrations/supabase/types").Json;
126481
127398
  };
127399
+ logistics_block_reason_code: {
127400
+ Args: {
127401
+ p_details?: import("../integrations/supabase/types").Json;
127402
+ p_reason: string;
127403
+ };
127404
+ Returns: string;
127405
+ };
127406
+ logistics_blocked_orders: {
127407
+ Args: never;
127408
+ Returns: {
127409
+ attempts: number;
127410
+ blocked_since: string;
127411
+ delivery_date: string;
127412
+ order_id: string;
127413
+ order_ref: string;
127414
+ queue_id: string;
127415
+ reason: string;
127416
+ reason_code: string;
127417
+ }[];
127418
+ };
127419
+ logistics_blocked_overview: {
127420
+ Args: never;
127421
+ Returns: import("../integrations/supabase/types").Json;
127422
+ };
126482
127423
  logistics_buffer_criteria: {
126483
127424
  Args: {
126484
127425
  p_settings: import("../integrations/supabase/types").Json;
@@ -126493,6 +127434,39 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
126493
127434
  };
126494
127435
  Returns: import("../integrations/supabase/types").Json;
126495
127436
  };
127437
+ logistics_buffer_detach_late_orders: {
127438
+ Args: {
127439
+ p_buffer?: string;
127440
+ };
127441
+ Returns: import("../integrations/supabase/types").Json;
127442
+ };
127443
+ logistics_buffer_frozen_order: {
127444
+ Args: {
127445
+ p_order_id: string;
127446
+ };
127447
+ Returns: boolean;
127448
+ };
127449
+ logistics_buffer_handled: {
127450
+ Args: {
127451
+ p_buffer: string;
127452
+ };
127453
+ Returns: boolean;
127454
+ };
127455
+ logistics_buffer_notify: {
127456
+ Args: {
127457
+ p_event_type: string;
127458
+ p_idempotency_key: string;
127459
+ p_order_ref: string;
127460
+ p_payload: import("../integrations/supabase/types").Json;
127461
+ };
127462
+ Returns: string;
127463
+ };
127464
+ logistics_buffer_open_key: {
127465
+ Args: {
127466
+ p_base_key: string;
127467
+ };
127468
+ Returns: string;
127469
+ };
126496
127470
  logistics_buffer_simulate: {
126497
127471
  Args: {
126498
127472
  p_orders?: import("../integrations/supabase/types").Json;
@@ -127134,6 +128108,16 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
127134
128108
  };
127135
128109
  Returns: boolean;
127136
128110
  };
128111
+ logistics_layout_method_status: {
128112
+ Args: never;
128113
+ Returns: import("../integrations/supabase/types").Json;
128114
+ };
128115
+ logistics_link_order_items: {
128116
+ Args: {
128117
+ p_order?: string;
128118
+ };
128119
+ Returns: import("../integrations/supabase/types").Json;
128120
+ };
127137
128121
  logistics_live_carriers: {
127138
128122
  Args: {
127139
128123
  p_order_ref: string;
@@ -127160,6 +128144,12 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
127160
128144
  };
127161
128145
  Returns: string;
127162
128146
  };
128147
+ logistics_normalize_product_label: {
128148
+ Args: {
128149
+ p_label: string;
128150
+ };
128151
+ Returns: string;
128152
+ };
127163
128153
  logistics_not_past: {
127164
128154
  Args: {
127165
128155
  p_ts: string;
@@ -127348,6 +128338,12 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
127348
128338
  Args: never;
127349
128339
  Returns: number;
127350
128340
  };
128341
+ logistics_plan_retry: {
128342
+ Args: {
128343
+ p_order_ids: string[];
128344
+ };
128345
+ Returns: number;
128346
+ };
127351
128347
  logistics_plan_setting: {
127352
128348
  Args: {
127353
128349
  p_default: number;
@@ -127401,6 +128397,12 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
127401
128397
  };
127402
128398
  Returns: import("../integrations/supabase/types").Json;
127403
128399
  };
128400
+ logistics_replan_all: {
128401
+ Args: {
128402
+ p_reason?: string;
128403
+ };
128404
+ Returns: import("../integrations/supabase/types").Json;
128405
+ };
127404
128406
  logistics_report_delay: {
127405
128407
  Args: {
127406
128408
  p_expected_date?: string;
@@ -127454,6 +128456,12 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
127454
128456
  };
127455
128457
  Returns: import("../integrations/supabase/types").Json;
127456
128458
  };
128459
+ logistics_resolve_product_id: {
128460
+ Args: {
128461
+ p_label: string;
128462
+ };
128463
+ Returns: string;
128464
+ };
127457
128465
  logistics_resolve_settings: {
127458
128466
  Args: {
127459
128467
  p_config_id: string;
@@ -127583,6 +128591,10 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
127583
128591
  };
127584
128592
  Returns: number;
127585
128593
  };
128594
+ logistics_tick_ping: {
128595
+ Args: never;
128596
+ Returns: string;
128597
+ };
127586
128598
  logistics_upsert_task: {
127587
128599
  Args: {
127588
128600
  p_buffer_ref: string;
@@ -127767,6 +128779,10 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
127767
128779
  online: boolean;
127768
128780
  }[];
127769
128781
  };
128782
+ pick_apply_buffer_events: {
128783
+ Args: never;
128784
+ Returns: import("../integrations/supabase/types").Json;
128785
+ };
127770
128786
  pick_available_pick_days: {
127771
128787
  Args: {
127772
128788
  _max_days?: number;
@@ -128694,6 +129710,12 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
128694
129710
  };
128695
129711
  Returns: boolean;
128696
129712
  };
129713
+ release_job_lock: {
129714
+ Args: {
129715
+ _key: string;
129716
+ };
129717
+ Returns: undefined;
129718
+ };
128697
129719
  release_local_pdf_job: {
128698
129720
  Args: {
128699
129721
  _job_id: string;
@@ -129382,6 +130404,14 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
129382
130404
  row_count: number;
129383
130405
  }[];
129384
130406
  };
130407
+ try_acquire_job_lock: {
130408
+ Args: {
130409
+ _key: string;
130410
+ _owner?: string;
130411
+ _seconds?: number;
130412
+ };
130413
+ Returns: boolean;
130414
+ };
129385
130415
  try_debtor_lock: {
129386
130416
  Args: {
129387
130417
  _group_key: string;