@flowselections/floriday-afhandeling-module 1.0.43 → 1.0.44

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 (39) hide show
  1. package/dist-lib/components/afhandeling/WeekAgendaView.d.ts.map +1 -1
  2. package/dist-lib/components/afhandeling/WeekAgendaView.js +24 -1
  3. package/dist-lib/hooks/useEngineBufferEvents.d.ts +7 -0
  4. package/dist-lib/hooks/useEngineBufferEvents.d.ts.map +1 -0
  5. package/dist-lib/hooks/useEngineBufferEvents.js +47 -0
  6. package/dist-lib/hooks/useKnownOrders.d.ts +1 -0
  7. package/dist-lib/hooks/useKnownOrders.d.ts.map +1 -1
  8. package/dist-lib/hooks/useKnownOrders.js +26 -1
  9. package/dist-lib/hooks/usePickAgenda.d.ts +4 -0
  10. package/dist-lib/hooks/usePickAgenda.d.ts.map +1 -1
  11. package/dist-lib/hooks/usePickAgenda.js +6 -3
  12. package/dist-lib/integrations/supabase/auth-middleware.d.ts +173 -0
  13. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  14. package/dist-lib/integrations/supabase/client.server.d.ts +173 -0
  15. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  16. package/dist-lib/integrations/supabase/moduleClient.d.ts +173 -0
  17. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  18. package/dist-lib/integrations/supabase/types.d.ts +173 -0
  19. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  20. package/dist-lib/lib/afhandelingSettings.functions.d.ts +346 -0
  21. package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
  22. package/dist-lib/lib/carriers.functions.d.ts +865 -0
  23. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  24. package/dist-lib/lib/cartAssignments.functions.d.ts +865 -0
  25. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  26. package/dist-lib/lib/cartControl.functions.d.ts +1903 -0
  27. package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
  28. package/dist-lib/lib/deliveryNote.functions.d.ts +173 -0
  29. package/dist-lib/lib/deliveryNote.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/engineLayouts.functions.d.ts +173 -0
  31. package/dist-lib/lib/engineLayouts.functions.d.ts.map +1 -1
  32. package/dist-lib/lib/floriday.functions.d.ts +348 -0
  33. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  34. package/dist-lib/lib/floriday.functions.js +1 -0
  35. package/dist-lib/lib/orderFulfilment.functions.d.ts +173 -0
  36. package/dist-lib/lib/orderFulfilment.functions.d.ts.map +1 -1
  37. package/dist-lib/lib/pickDates.functions.d.ts +173 -0
  38. package/dist-lib/lib/pickDates.functions.d.ts.map +1 -1
  39. package/package.json +1 -1
@@ -2231,6 +2231,8 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
2231
2231
  created_at: string;
2232
2232
  currency: string;
2233
2233
  distribute_over: string | null;
2234
+ external_id: string | null;
2235
+ external_synced_at: string | null;
2234
2236
  group_type: string;
2235
2237
  handling_fee: number | null;
2236
2238
  id: string;
@@ -2243,6 +2245,7 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
2243
2245
  rounding: string;
2244
2246
  rounding_step: number;
2245
2247
  sort_order: number;
2248
+ source: string;
2246
2249
  unit: string;
2247
2250
  updated_at: string;
2248
2251
  };
@@ -2253,6 +2256,8 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
2253
2256
  created_at?: string;
2254
2257
  currency?: string;
2255
2258
  distribute_over?: string | null;
2259
+ external_id?: string | null;
2260
+ external_synced_at?: string | null;
2256
2261
  group_type?: string;
2257
2262
  handling_fee?: number | null;
2258
2263
  id?: string;
@@ -2265,6 +2270,7 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
2265
2270
  rounding?: string;
2266
2271
  rounding_step?: number;
2267
2272
  sort_order?: number;
2273
+ source?: string;
2268
2274
  unit?: string;
2269
2275
  updated_at?: string;
2270
2276
  };
@@ -2275,6 +2281,8 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
2275
2281
  created_at?: string;
2276
2282
  currency?: string;
2277
2283
  distribute_over?: string | null;
2284
+ external_id?: string | null;
2285
+ external_synced_at?: string | null;
2278
2286
  group_type?: string;
2279
2287
  handling_fee?: number | null;
2280
2288
  id?: string;
@@ -2287,6 +2295,7 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
2287
2295
  rounding?: string;
2288
2296
  rounding_step?: number;
2289
2297
  sort_order?: number;
2298
+ source?: string;
2290
2299
  unit?: string;
2291
2300
  updated_at?: string;
2292
2301
  };
@@ -9150,6 +9159,30 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
9150
9159
  referencedColumns: ["id"];
9151
9160
  }];
9152
9161
  };
9162
+ job_locks: {
9163
+ Row: {
9164
+ created_at: string;
9165
+ lock_key: string;
9166
+ locked_until: string;
9167
+ owner: string | null;
9168
+ updated_at: string;
9169
+ };
9170
+ Insert: {
9171
+ created_at?: string;
9172
+ lock_key: string;
9173
+ locked_until: string;
9174
+ owner?: string | null;
9175
+ updated_at?: string;
9176
+ };
9177
+ Update: {
9178
+ created_at?: string;
9179
+ lock_key?: string;
9180
+ locked_until?: string;
9181
+ owner?: string | null;
9182
+ updated_at?: string;
9183
+ };
9184
+ Relationships: [];
9185
+ };
9153
9186
  layout_logos: {
9154
9187
  Row: {
9155
9188
  bestand_url: string;
@@ -10312,6 +10345,7 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
10312
10345
  next_attempt_at: string;
10313
10346
  order_id: string;
10314
10347
  reason: string;
10348
+ reason_code: string | null;
10315
10349
  status: string;
10316
10350
  updated_at: string;
10317
10351
  };
@@ -10324,6 +10358,7 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
10324
10358
  next_attempt_at?: string;
10325
10359
  order_id: string;
10326
10360
  reason?: string;
10361
+ reason_code?: string | null;
10327
10362
  status?: string;
10328
10363
  updated_at?: string;
10329
10364
  };
@@ -10336,6 +10371,7 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
10336
10371
  next_attempt_at?: string;
10337
10372
  order_id?: string;
10338
10373
  reason?: string;
10374
+ reason_code?: string | null;
10339
10375
  status?: string;
10340
10376
  updated_at?: string;
10341
10377
  };
@@ -11040,6 +11076,21 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
11040
11076
  referencedColumns: ["id"];
11041
11077
  }];
11042
11078
  };
11079
+ logistics_tick_heartbeat: {
11080
+ Row: {
11081
+ id: boolean;
11082
+ last_tick_at: string;
11083
+ };
11084
+ Insert: {
11085
+ id?: boolean;
11086
+ last_tick_at?: string;
11087
+ };
11088
+ Update: {
11089
+ id?: boolean;
11090
+ last_tick_at?: string;
11091
+ };
11092
+ Relationships: [];
11093
+ };
11043
11094
  logistics_variables: {
11044
11095
  Row: {
11045
11096
  created_at: string;
@@ -22922,6 +22973,30 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
22922
22973
  };
22923
22974
  Returns: import("../integrations/supabase/types").Json;
22924
22975
  };
22976
+ logistics_block_reason_code: {
22977
+ Args: {
22978
+ p_details?: import("../integrations/supabase/types").Json;
22979
+ p_reason: string;
22980
+ };
22981
+ Returns: string;
22982
+ };
22983
+ logistics_blocked_orders: {
22984
+ Args: never;
22985
+ Returns: {
22986
+ attempts: number;
22987
+ blocked_since: string;
22988
+ delivery_date: string;
22989
+ order_id: string;
22990
+ order_ref: string;
22991
+ queue_id: string;
22992
+ reason: string;
22993
+ reason_code: string;
22994
+ }[];
22995
+ };
22996
+ logistics_blocked_overview: {
22997
+ Args: never;
22998
+ Returns: import("../integrations/supabase/types").Json;
22999
+ };
22925
23000
  logistics_buffer_criteria: {
22926
23001
  Args: {
22927
23002
  p_settings: import("../integrations/supabase/types").Json;
@@ -22936,6 +23011,39 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
22936
23011
  };
22937
23012
  Returns: import("../integrations/supabase/types").Json;
22938
23013
  };
23014
+ logistics_buffer_detach_late_orders: {
23015
+ Args: {
23016
+ p_buffer?: string;
23017
+ };
23018
+ Returns: import("../integrations/supabase/types").Json;
23019
+ };
23020
+ logistics_buffer_frozen_order: {
23021
+ Args: {
23022
+ p_order_id: string;
23023
+ };
23024
+ Returns: boolean;
23025
+ };
23026
+ logistics_buffer_handled: {
23027
+ Args: {
23028
+ p_buffer: string;
23029
+ };
23030
+ Returns: boolean;
23031
+ };
23032
+ logistics_buffer_notify: {
23033
+ Args: {
23034
+ p_event_type: string;
23035
+ p_idempotency_key: string;
23036
+ p_order_ref: string;
23037
+ p_payload: import("../integrations/supabase/types").Json;
23038
+ };
23039
+ Returns: string;
23040
+ };
23041
+ logistics_buffer_open_key: {
23042
+ Args: {
23043
+ p_base_key: string;
23044
+ };
23045
+ Returns: string;
23046
+ };
22939
23047
  logistics_buffer_simulate: {
22940
23048
  Args: {
22941
23049
  p_orders?: import("../integrations/supabase/types").Json;
@@ -23025,6 +23133,25 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
23025
23133
  Args: never;
23026
23134
  Returns: import("../integrations/supabase/types").Json;
23027
23135
  };
23136
+ logistics_cart_plan_overview: {
23137
+ Args: {
23138
+ p_days?: number;
23139
+ };
23140
+ Returns: {
23141
+ cart_total: number;
23142
+ delivery_date: string;
23143
+ order_ref: string;
23144
+ plan_ready: boolean;
23145
+ reason: string;
23146
+ released: boolean;
23147
+ }[];
23148
+ };
23149
+ logistics_cart_plan_status: {
23150
+ Args: {
23151
+ p_ref: string;
23152
+ };
23153
+ Returns: import("../integrations/supabase/types").Json;
23154
+ };
23028
23155
  logistics_cart_seq: {
23029
23156
  Args: {
23030
23157
  p_order_uuid?: string;
@@ -23558,6 +23685,12 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
23558
23685
  };
23559
23686
  Returns: boolean;
23560
23687
  };
23688
+ logistics_link_order_items: {
23689
+ Args: {
23690
+ p_order?: string;
23691
+ };
23692
+ Returns: import("../integrations/supabase/types").Json;
23693
+ };
23561
23694
  logistics_live_carriers: {
23562
23695
  Args: {
23563
23696
  p_order_ref: string;
@@ -23584,6 +23717,12 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
23584
23717
  };
23585
23718
  Returns: string;
23586
23719
  };
23720
+ logistics_normalize_product_label: {
23721
+ Args: {
23722
+ p_label: string;
23723
+ };
23724
+ Returns: string;
23725
+ };
23587
23726
  logistics_not_past: {
23588
23727
  Args: {
23589
23728
  p_ts: string;
@@ -23772,6 +23911,12 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
23772
23911
  Args: never;
23773
23912
  Returns: number;
23774
23913
  };
23914
+ logistics_plan_retry: {
23915
+ Args: {
23916
+ p_order_ids: string[];
23917
+ };
23918
+ Returns: number;
23919
+ };
23775
23920
  logistics_plan_setting: {
23776
23921
  Args: {
23777
23922
  p_default: number;
@@ -23878,6 +24023,12 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
23878
24023
  };
23879
24024
  Returns: import("../integrations/supabase/types").Json;
23880
24025
  };
24026
+ logistics_resolve_product_id: {
24027
+ Args: {
24028
+ p_label: string;
24029
+ };
24030
+ Returns: string;
24031
+ };
23881
24032
  logistics_resolve_settings: {
23882
24033
  Args: {
23883
24034
  p_config_id: string;
@@ -24007,6 +24158,10 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
24007
24158
  };
24008
24159
  Returns: number;
24009
24160
  };
24161
+ logistics_tick_ping: {
24162
+ Args: never;
24163
+ Returns: string;
24164
+ };
24010
24165
  logistics_upsert_task: {
24011
24166
  Args: {
24012
24167
  p_buffer_ref: string;
@@ -24574,6 +24729,10 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
24574
24729
  };
24575
24730
  Returns: undefined;
24576
24731
  };
24732
+ pick_report_missing_cart_plan: {
24733
+ Args: never;
24734
+ Returns: import("../integrations/supabase/types").Json;
24735
+ };
24577
24736
  pick_reprint_cart: {
24578
24737
  Args: {
24579
24738
  _cart_id: string;
@@ -25114,6 +25273,12 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
25114
25273
  };
25115
25274
  Returns: boolean;
25116
25275
  };
25276
+ release_job_lock: {
25277
+ Args: {
25278
+ _key: string;
25279
+ };
25280
+ Returns: undefined;
25281
+ };
25117
25282
  release_local_pdf_job: {
25118
25283
  Args: {
25119
25284
  _job_id: string;
@@ -25802,6 +25967,14 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
25802
25967
  row_count: number;
25803
25968
  }[];
25804
25969
  };
25970
+ try_acquire_job_lock: {
25971
+ Args: {
25972
+ _key: string;
25973
+ _owner?: string;
25974
+ _seconds?: number;
25975
+ };
25976
+ Returns: boolean;
25977
+ };
25805
25978
  try_debtor_lock: {
25806
25979
  Args: {
25807
25980
  _group_key: string;
@@ -28114,6 +28287,8 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
28114
28287
  created_at: string;
28115
28288
  currency: string;
28116
28289
  distribute_over: string | null;
28290
+ external_id: string | null;
28291
+ external_synced_at: string | null;
28117
28292
  group_type: string;
28118
28293
  handling_fee: number | null;
28119
28294
  id: string;
@@ -28126,6 +28301,7 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
28126
28301
  rounding: string;
28127
28302
  rounding_step: number;
28128
28303
  sort_order: number;
28304
+ source: string;
28129
28305
  unit: string;
28130
28306
  updated_at: string;
28131
28307
  };
@@ -28136,6 +28312,8 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
28136
28312
  created_at?: string;
28137
28313
  currency?: string;
28138
28314
  distribute_over?: string | null;
28315
+ external_id?: string | null;
28316
+ external_synced_at?: string | null;
28139
28317
  group_type?: string;
28140
28318
  handling_fee?: number | null;
28141
28319
  id?: string;
@@ -28148,6 +28326,7 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
28148
28326
  rounding?: string;
28149
28327
  rounding_step?: number;
28150
28328
  sort_order?: number;
28329
+ source?: string;
28151
28330
  unit?: string;
28152
28331
  updated_at?: string;
28153
28332
  };
@@ -28158,6 +28337,8 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
28158
28337
  created_at?: string;
28159
28338
  currency?: string;
28160
28339
  distribute_over?: string | null;
28340
+ external_id?: string | null;
28341
+ external_synced_at?: string | null;
28161
28342
  group_type?: string;
28162
28343
  handling_fee?: number | null;
28163
28344
  id?: string;
@@ -28170,6 +28351,7 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
28170
28351
  rounding?: string;
28171
28352
  rounding_step?: number;
28172
28353
  sort_order?: number;
28354
+ source?: string;
28173
28355
  unit?: string;
28174
28356
  updated_at?: string;
28175
28357
  };
@@ -35033,6 +35215,30 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
35033
35215
  referencedColumns: ["id"];
35034
35216
  }];
35035
35217
  };
35218
+ job_locks: {
35219
+ Row: {
35220
+ created_at: string;
35221
+ lock_key: string;
35222
+ locked_until: string;
35223
+ owner: string | null;
35224
+ updated_at: string;
35225
+ };
35226
+ Insert: {
35227
+ created_at?: string;
35228
+ lock_key: string;
35229
+ locked_until: string;
35230
+ owner?: string | null;
35231
+ updated_at?: string;
35232
+ };
35233
+ Update: {
35234
+ created_at?: string;
35235
+ lock_key?: string;
35236
+ locked_until?: string;
35237
+ owner?: string | null;
35238
+ updated_at?: string;
35239
+ };
35240
+ Relationships: [];
35241
+ };
35036
35242
  layout_logos: {
35037
35243
  Row: {
35038
35244
  bestand_url: string;
@@ -36195,6 +36401,7 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
36195
36401
  next_attempt_at: string;
36196
36402
  order_id: string;
36197
36403
  reason: string;
36404
+ reason_code: string | null;
36198
36405
  status: string;
36199
36406
  updated_at: string;
36200
36407
  };
@@ -36207,6 +36414,7 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
36207
36414
  next_attempt_at?: string;
36208
36415
  order_id: string;
36209
36416
  reason?: string;
36417
+ reason_code?: string | null;
36210
36418
  status?: string;
36211
36419
  updated_at?: string;
36212
36420
  };
@@ -36219,6 +36427,7 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
36219
36427
  next_attempt_at?: string;
36220
36428
  order_id?: string;
36221
36429
  reason?: string;
36430
+ reason_code?: string | null;
36222
36431
  status?: string;
36223
36432
  updated_at?: string;
36224
36433
  };
@@ -36923,6 +37132,21 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
36923
37132
  referencedColumns: ["id"];
36924
37133
  }];
36925
37134
  };
37135
+ logistics_tick_heartbeat: {
37136
+ Row: {
37137
+ id: boolean;
37138
+ last_tick_at: string;
37139
+ };
37140
+ Insert: {
37141
+ id?: boolean;
37142
+ last_tick_at?: string;
37143
+ };
37144
+ Update: {
37145
+ id?: boolean;
37146
+ last_tick_at?: string;
37147
+ };
37148
+ Relationships: [];
37149
+ };
36926
37150
  logistics_variables: {
36927
37151
  Row: {
36928
37152
  created_at: string;
@@ -48805,6 +49029,30 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
48805
49029
  };
48806
49030
  Returns: import("../integrations/supabase/types").Json;
48807
49031
  };
49032
+ logistics_block_reason_code: {
49033
+ Args: {
49034
+ p_details?: import("../integrations/supabase/types").Json;
49035
+ p_reason: string;
49036
+ };
49037
+ Returns: string;
49038
+ };
49039
+ logistics_blocked_orders: {
49040
+ Args: never;
49041
+ Returns: {
49042
+ attempts: number;
49043
+ blocked_since: string;
49044
+ delivery_date: string;
49045
+ order_id: string;
49046
+ order_ref: string;
49047
+ queue_id: string;
49048
+ reason: string;
49049
+ reason_code: string;
49050
+ }[];
49051
+ };
49052
+ logistics_blocked_overview: {
49053
+ Args: never;
49054
+ Returns: import("../integrations/supabase/types").Json;
49055
+ };
48808
49056
  logistics_buffer_criteria: {
48809
49057
  Args: {
48810
49058
  p_settings: import("../integrations/supabase/types").Json;
@@ -48819,6 +49067,39 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
48819
49067
  };
48820
49068
  Returns: import("../integrations/supabase/types").Json;
48821
49069
  };
49070
+ logistics_buffer_detach_late_orders: {
49071
+ Args: {
49072
+ p_buffer?: string;
49073
+ };
49074
+ Returns: import("../integrations/supabase/types").Json;
49075
+ };
49076
+ logistics_buffer_frozen_order: {
49077
+ Args: {
49078
+ p_order_id: string;
49079
+ };
49080
+ Returns: boolean;
49081
+ };
49082
+ logistics_buffer_handled: {
49083
+ Args: {
49084
+ p_buffer: string;
49085
+ };
49086
+ Returns: boolean;
49087
+ };
49088
+ logistics_buffer_notify: {
49089
+ Args: {
49090
+ p_event_type: string;
49091
+ p_idempotency_key: string;
49092
+ p_order_ref: string;
49093
+ p_payload: import("../integrations/supabase/types").Json;
49094
+ };
49095
+ Returns: string;
49096
+ };
49097
+ logistics_buffer_open_key: {
49098
+ Args: {
49099
+ p_base_key: string;
49100
+ };
49101
+ Returns: string;
49102
+ };
48822
49103
  logistics_buffer_simulate: {
48823
49104
  Args: {
48824
49105
  p_orders?: import("../integrations/supabase/types").Json;
@@ -48908,6 +49189,25 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
48908
49189
  Args: never;
48909
49190
  Returns: import("../integrations/supabase/types").Json;
48910
49191
  };
49192
+ logistics_cart_plan_overview: {
49193
+ Args: {
49194
+ p_days?: number;
49195
+ };
49196
+ Returns: {
49197
+ cart_total: number;
49198
+ delivery_date: string;
49199
+ order_ref: string;
49200
+ plan_ready: boolean;
49201
+ reason: string;
49202
+ released: boolean;
49203
+ }[];
49204
+ };
49205
+ logistics_cart_plan_status: {
49206
+ Args: {
49207
+ p_ref: string;
49208
+ };
49209
+ Returns: import("../integrations/supabase/types").Json;
49210
+ };
48911
49211
  logistics_cart_seq: {
48912
49212
  Args: {
48913
49213
  p_order_uuid?: string;
@@ -49441,6 +49741,12 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
49441
49741
  };
49442
49742
  Returns: boolean;
49443
49743
  };
49744
+ logistics_link_order_items: {
49745
+ Args: {
49746
+ p_order?: string;
49747
+ };
49748
+ Returns: import("../integrations/supabase/types").Json;
49749
+ };
49444
49750
  logistics_live_carriers: {
49445
49751
  Args: {
49446
49752
  p_order_ref: string;
@@ -49467,6 +49773,12 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
49467
49773
  };
49468
49774
  Returns: string;
49469
49775
  };
49776
+ logistics_normalize_product_label: {
49777
+ Args: {
49778
+ p_label: string;
49779
+ };
49780
+ Returns: string;
49781
+ };
49470
49782
  logistics_not_past: {
49471
49783
  Args: {
49472
49784
  p_ts: string;
@@ -49655,6 +49967,12 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
49655
49967
  Args: never;
49656
49968
  Returns: number;
49657
49969
  };
49970
+ logistics_plan_retry: {
49971
+ Args: {
49972
+ p_order_ids: string[];
49973
+ };
49974
+ Returns: number;
49975
+ };
49658
49976
  logistics_plan_setting: {
49659
49977
  Args: {
49660
49978
  p_default: number;
@@ -49761,6 +50079,12 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
49761
50079
  };
49762
50080
  Returns: import("../integrations/supabase/types").Json;
49763
50081
  };
50082
+ logistics_resolve_product_id: {
50083
+ Args: {
50084
+ p_label: string;
50085
+ };
50086
+ Returns: string;
50087
+ };
49764
50088
  logistics_resolve_settings: {
49765
50089
  Args: {
49766
50090
  p_config_id: string;
@@ -49890,6 +50214,10 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
49890
50214
  };
49891
50215
  Returns: number;
49892
50216
  };
50217
+ logistics_tick_ping: {
50218
+ Args: never;
50219
+ Returns: string;
50220
+ };
49893
50221
  logistics_upsert_task: {
49894
50222
  Args: {
49895
50223
  p_buffer_ref: string;
@@ -50457,6 +50785,10 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
50457
50785
  };
50458
50786
  Returns: undefined;
50459
50787
  };
50788
+ pick_report_missing_cart_plan: {
50789
+ Args: never;
50790
+ Returns: import("../integrations/supabase/types").Json;
50791
+ };
50460
50792
  pick_reprint_cart: {
50461
50793
  Args: {
50462
50794
  _cart_id: string;
@@ -50997,6 +51329,12 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
50997
51329
  };
50998
51330
  Returns: boolean;
50999
51331
  };
51332
+ release_job_lock: {
51333
+ Args: {
51334
+ _key: string;
51335
+ };
51336
+ Returns: undefined;
51337
+ };
51000
51338
  release_local_pdf_job: {
51001
51339
  Args: {
51002
51340
  _job_id: string;
@@ -51685,6 +52023,14 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
51685
52023
  row_count: number;
51686
52024
  }[];
51687
52025
  };
52026
+ try_acquire_job_lock: {
52027
+ Args: {
52028
+ _key: string;
52029
+ _owner?: string;
52030
+ _seconds?: number;
52031
+ };
52032
+ Returns: boolean;
52033
+ };
51688
52034
  try_debtor_lock: {
51689
52035
  Args: {
51690
52036
  _group_key: string;
@@ -53996,6 +54342,8 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
53996
54342
  created_at: string;
53997
54343
  currency: string;
53998
54344
  distribute_over: string | null;
54345
+ external_id: string | null;
54346
+ external_synced_at: string | null;
53999
54347
  group_type: string;
54000
54348
  handling_fee: number | null;
54001
54349
  id: string;
@@ -54008,6 +54356,7 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
54008
54356
  rounding: string;
54009
54357
  rounding_step: number;
54010
54358
  sort_order: number;
54359
+ source: string;
54011
54360
  unit: string;
54012
54361
  updated_at: string;
54013
54362
  };
@@ -54018,6 +54367,8 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
54018
54367
  created_at?: string;
54019
54368
  currency?: string;
54020
54369
  distribute_over?: string | null;
54370
+ external_id?: string | null;
54371
+ external_synced_at?: string | null;
54021
54372
  group_type?: string;
54022
54373
  handling_fee?: number | null;
54023
54374
  id?: string;
@@ -54030,6 +54381,7 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
54030
54381
  rounding?: string;
54031
54382
  rounding_step?: number;
54032
54383
  sort_order?: number;
54384
+ source?: string;
54033
54385
  unit?: string;
54034
54386
  updated_at?: string;
54035
54387
  };
@@ -54040,6 +54392,8 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
54040
54392
  created_at?: string;
54041
54393
  currency?: string;
54042
54394
  distribute_over?: string | null;
54395
+ external_id?: string | null;
54396
+ external_synced_at?: string | null;
54043
54397
  group_type?: string;
54044
54398
  handling_fee?: number | null;
54045
54399
  id?: string;
@@ -54052,6 +54406,7 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
54052
54406
  rounding?: string;
54053
54407
  rounding_step?: number;
54054
54408
  sort_order?: number;
54409
+ source?: string;
54055
54410
  unit?: string;
54056
54411
  updated_at?: string;
54057
54412
  };
@@ -60915,6 +61270,30 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
60915
61270
  referencedColumns: ["id"];
60916
61271
  }];
60917
61272
  };
61273
+ job_locks: {
61274
+ Row: {
61275
+ created_at: string;
61276
+ lock_key: string;
61277
+ locked_until: string;
61278
+ owner: string | null;
61279
+ updated_at: string;
61280
+ };
61281
+ Insert: {
61282
+ created_at?: string;
61283
+ lock_key: string;
61284
+ locked_until: string;
61285
+ owner?: string | null;
61286
+ updated_at?: string;
61287
+ };
61288
+ Update: {
61289
+ created_at?: string;
61290
+ lock_key?: string;
61291
+ locked_until?: string;
61292
+ owner?: string | null;
61293
+ updated_at?: string;
61294
+ };
61295
+ Relationships: [];
61296
+ };
60918
61297
  layout_logos: {
60919
61298
  Row: {
60920
61299
  bestand_url: string;
@@ -62077,6 +62456,7 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
62077
62456
  next_attempt_at: string;
62078
62457
  order_id: string;
62079
62458
  reason: string;
62459
+ reason_code: string | null;
62080
62460
  status: string;
62081
62461
  updated_at: string;
62082
62462
  };
@@ -62089,6 +62469,7 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
62089
62469
  next_attempt_at?: string;
62090
62470
  order_id: string;
62091
62471
  reason?: string;
62472
+ reason_code?: string | null;
62092
62473
  status?: string;
62093
62474
  updated_at?: string;
62094
62475
  };
@@ -62101,6 +62482,7 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
62101
62482
  next_attempt_at?: string;
62102
62483
  order_id?: string;
62103
62484
  reason?: string;
62485
+ reason_code?: string | null;
62104
62486
  status?: string;
62105
62487
  updated_at?: string;
62106
62488
  };
@@ -62805,6 +63187,21 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
62805
63187
  referencedColumns: ["id"];
62806
63188
  }];
62807
63189
  };
63190
+ logistics_tick_heartbeat: {
63191
+ Row: {
63192
+ id: boolean;
63193
+ last_tick_at: string;
63194
+ };
63195
+ Insert: {
63196
+ id?: boolean;
63197
+ last_tick_at?: string;
63198
+ };
63199
+ Update: {
63200
+ id?: boolean;
63201
+ last_tick_at?: string;
63202
+ };
63203
+ Relationships: [];
63204
+ };
62808
63205
  logistics_variables: {
62809
63206
  Row: {
62810
63207
  created_at: string;
@@ -74687,6 +75084,30 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
74687
75084
  };
74688
75085
  Returns: import("../integrations/supabase/types").Json;
74689
75086
  };
75087
+ logistics_block_reason_code: {
75088
+ Args: {
75089
+ p_details?: import("../integrations/supabase/types").Json;
75090
+ p_reason: string;
75091
+ };
75092
+ Returns: string;
75093
+ };
75094
+ logistics_blocked_orders: {
75095
+ Args: never;
75096
+ Returns: {
75097
+ attempts: number;
75098
+ blocked_since: string;
75099
+ delivery_date: string;
75100
+ order_id: string;
75101
+ order_ref: string;
75102
+ queue_id: string;
75103
+ reason: string;
75104
+ reason_code: string;
75105
+ }[];
75106
+ };
75107
+ logistics_blocked_overview: {
75108
+ Args: never;
75109
+ Returns: import("../integrations/supabase/types").Json;
75110
+ };
74690
75111
  logistics_buffer_criteria: {
74691
75112
  Args: {
74692
75113
  p_settings: import("../integrations/supabase/types").Json;
@@ -74701,6 +75122,39 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
74701
75122
  };
74702
75123
  Returns: import("../integrations/supabase/types").Json;
74703
75124
  };
75125
+ logistics_buffer_detach_late_orders: {
75126
+ Args: {
75127
+ p_buffer?: string;
75128
+ };
75129
+ Returns: import("../integrations/supabase/types").Json;
75130
+ };
75131
+ logistics_buffer_frozen_order: {
75132
+ Args: {
75133
+ p_order_id: string;
75134
+ };
75135
+ Returns: boolean;
75136
+ };
75137
+ logistics_buffer_handled: {
75138
+ Args: {
75139
+ p_buffer: string;
75140
+ };
75141
+ Returns: boolean;
75142
+ };
75143
+ logistics_buffer_notify: {
75144
+ Args: {
75145
+ p_event_type: string;
75146
+ p_idempotency_key: string;
75147
+ p_order_ref: string;
75148
+ p_payload: import("../integrations/supabase/types").Json;
75149
+ };
75150
+ Returns: string;
75151
+ };
75152
+ logistics_buffer_open_key: {
75153
+ Args: {
75154
+ p_base_key: string;
75155
+ };
75156
+ Returns: string;
75157
+ };
74704
75158
  logistics_buffer_simulate: {
74705
75159
  Args: {
74706
75160
  p_orders?: import("../integrations/supabase/types").Json;
@@ -74790,6 +75244,25 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
74790
75244
  Args: never;
74791
75245
  Returns: import("../integrations/supabase/types").Json;
74792
75246
  };
75247
+ logistics_cart_plan_overview: {
75248
+ Args: {
75249
+ p_days?: number;
75250
+ };
75251
+ Returns: {
75252
+ cart_total: number;
75253
+ delivery_date: string;
75254
+ order_ref: string;
75255
+ plan_ready: boolean;
75256
+ reason: string;
75257
+ released: boolean;
75258
+ }[];
75259
+ };
75260
+ logistics_cart_plan_status: {
75261
+ Args: {
75262
+ p_ref: string;
75263
+ };
75264
+ Returns: import("../integrations/supabase/types").Json;
75265
+ };
74793
75266
  logistics_cart_seq: {
74794
75267
  Args: {
74795
75268
  p_order_uuid?: string;
@@ -75323,6 +75796,12 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
75323
75796
  };
75324
75797
  Returns: boolean;
75325
75798
  };
75799
+ logistics_link_order_items: {
75800
+ Args: {
75801
+ p_order?: string;
75802
+ };
75803
+ Returns: import("../integrations/supabase/types").Json;
75804
+ };
75326
75805
  logistics_live_carriers: {
75327
75806
  Args: {
75328
75807
  p_order_ref: string;
@@ -75349,6 +75828,12 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
75349
75828
  };
75350
75829
  Returns: string;
75351
75830
  };
75831
+ logistics_normalize_product_label: {
75832
+ Args: {
75833
+ p_label: string;
75834
+ };
75835
+ Returns: string;
75836
+ };
75352
75837
  logistics_not_past: {
75353
75838
  Args: {
75354
75839
  p_ts: string;
@@ -75537,6 +76022,12 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
75537
76022
  Args: never;
75538
76023
  Returns: number;
75539
76024
  };
76025
+ logistics_plan_retry: {
76026
+ Args: {
76027
+ p_order_ids: string[];
76028
+ };
76029
+ Returns: number;
76030
+ };
75540
76031
  logistics_plan_setting: {
75541
76032
  Args: {
75542
76033
  p_default: number;
@@ -75643,6 +76134,12 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
75643
76134
  };
75644
76135
  Returns: import("../integrations/supabase/types").Json;
75645
76136
  };
76137
+ logistics_resolve_product_id: {
76138
+ Args: {
76139
+ p_label: string;
76140
+ };
76141
+ Returns: string;
76142
+ };
75646
76143
  logistics_resolve_settings: {
75647
76144
  Args: {
75648
76145
  p_config_id: string;
@@ -75772,6 +76269,10 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
75772
76269
  };
75773
76270
  Returns: number;
75774
76271
  };
76272
+ logistics_tick_ping: {
76273
+ Args: never;
76274
+ Returns: string;
76275
+ };
75775
76276
  logistics_upsert_task: {
75776
76277
  Args: {
75777
76278
  p_buffer_ref: string;
@@ -76339,6 +76840,10 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
76339
76840
  };
76340
76841
  Returns: undefined;
76341
76842
  };
76843
+ pick_report_missing_cart_plan: {
76844
+ Args: never;
76845
+ Returns: import("../integrations/supabase/types").Json;
76846
+ };
76342
76847
  pick_reprint_cart: {
76343
76848
  Args: {
76344
76849
  _cart_id: string;
@@ -76879,6 +77384,12 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
76879
77384
  };
76880
77385
  Returns: boolean;
76881
77386
  };
77387
+ release_job_lock: {
77388
+ Args: {
77389
+ _key: string;
77390
+ };
77391
+ Returns: undefined;
77392
+ };
76882
77393
  release_local_pdf_job: {
76883
77394
  Args: {
76884
77395
  _job_id: string;
@@ -77567,6 +78078,14 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
77567
78078
  row_count: number;
77568
78079
  }[];
77569
78080
  };
78081
+ try_acquire_job_lock: {
78082
+ Args: {
78083
+ _key: string;
78084
+ _owner?: string;
78085
+ _seconds?: number;
78086
+ };
78087
+ Returns: boolean;
78088
+ };
77570
78089
  try_debtor_lock: {
77571
78090
  Args: {
77572
78091
  _group_key: string;
@@ -79881,6 +80400,8 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
79881
80400
  created_at: string;
79882
80401
  currency: string;
79883
80402
  distribute_over: string | null;
80403
+ external_id: string | null;
80404
+ external_synced_at: string | null;
79884
80405
  group_type: string;
79885
80406
  handling_fee: number | null;
79886
80407
  id: string;
@@ -79893,6 +80414,7 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
79893
80414
  rounding: string;
79894
80415
  rounding_step: number;
79895
80416
  sort_order: number;
80417
+ source: string;
79896
80418
  unit: string;
79897
80419
  updated_at: string;
79898
80420
  };
@@ -79903,6 +80425,8 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
79903
80425
  created_at?: string;
79904
80426
  currency?: string;
79905
80427
  distribute_over?: string | null;
80428
+ external_id?: string | null;
80429
+ external_synced_at?: string | null;
79906
80430
  group_type?: string;
79907
80431
  handling_fee?: number | null;
79908
80432
  id?: string;
@@ -79915,6 +80439,7 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
79915
80439
  rounding?: string;
79916
80440
  rounding_step?: number;
79917
80441
  sort_order?: number;
80442
+ source?: string;
79918
80443
  unit?: string;
79919
80444
  updated_at?: string;
79920
80445
  };
@@ -79925,6 +80450,8 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
79925
80450
  created_at?: string;
79926
80451
  currency?: string;
79927
80452
  distribute_over?: string | null;
80453
+ external_id?: string | null;
80454
+ external_synced_at?: string | null;
79928
80455
  group_type?: string;
79929
80456
  handling_fee?: number | null;
79930
80457
  id?: string;
@@ -79937,6 +80464,7 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
79937
80464
  rounding?: string;
79938
80465
  rounding_step?: number;
79939
80466
  sort_order?: number;
80467
+ source?: string;
79940
80468
  unit?: string;
79941
80469
  updated_at?: string;
79942
80470
  };
@@ -86800,6 +87328,30 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
86800
87328
  referencedColumns: ["id"];
86801
87329
  }];
86802
87330
  };
87331
+ job_locks: {
87332
+ Row: {
87333
+ created_at: string;
87334
+ lock_key: string;
87335
+ locked_until: string;
87336
+ owner: string | null;
87337
+ updated_at: string;
87338
+ };
87339
+ Insert: {
87340
+ created_at?: string;
87341
+ lock_key: string;
87342
+ locked_until: string;
87343
+ owner?: string | null;
87344
+ updated_at?: string;
87345
+ };
87346
+ Update: {
87347
+ created_at?: string;
87348
+ lock_key?: string;
87349
+ locked_until?: string;
87350
+ owner?: string | null;
87351
+ updated_at?: string;
87352
+ };
87353
+ Relationships: [];
87354
+ };
86803
87355
  layout_logos: {
86804
87356
  Row: {
86805
87357
  bestand_url: string;
@@ -87962,6 +88514,7 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
87962
88514
  next_attempt_at: string;
87963
88515
  order_id: string;
87964
88516
  reason: string;
88517
+ reason_code: string | null;
87965
88518
  status: string;
87966
88519
  updated_at: string;
87967
88520
  };
@@ -87974,6 +88527,7 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
87974
88527
  next_attempt_at?: string;
87975
88528
  order_id: string;
87976
88529
  reason?: string;
88530
+ reason_code?: string | null;
87977
88531
  status?: string;
87978
88532
  updated_at?: string;
87979
88533
  };
@@ -87986,6 +88540,7 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
87986
88540
  next_attempt_at?: string;
87987
88541
  order_id?: string;
87988
88542
  reason?: string;
88543
+ reason_code?: string | null;
87989
88544
  status?: string;
87990
88545
  updated_at?: string;
87991
88546
  };
@@ -88690,6 +89245,21 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
88690
89245
  referencedColumns: ["id"];
88691
89246
  }];
88692
89247
  };
89248
+ logistics_tick_heartbeat: {
89249
+ Row: {
89250
+ id: boolean;
89251
+ last_tick_at: string;
89252
+ };
89253
+ Insert: {
89254
+ id?: boolean;
89255
+ last_tick_at?: string;
89256
+ };
89257
+ Update: {
89258
+ id?: boolean;
89259
+ last_tick_at?: string;
89260
+ };
89261
+ Relationships: [];
89262
+ };
88693
89263
  logistics_variables: {
88694
89264
  Row: {
88695
89265
  created_at: string;
@@ -100572,6 +101142,30 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
100572
101142
  };
100573
101143
  Returns: import("../integrations/supabase/types").Json;
100574
101144
  };
101145
+ logistics_block_reason_code: {
101146
+ Args: {
101147
+ p_details?: import("../integrations/supabase/types").Json;
101148
+ p_reason: string;
101149
+ };
101150
+ Returns: string;
101151
+ };
101152
+ logistics_blocked_orders: {
101153
+ Args: never;
101154
+ Returns: {
101155
+ attempts: number;
101156
+ blocked_since: string;
101157
+ delivery_date: string;
101158
+ order_id: string;
101159
+ order_ref: string;
101160
+ queue_id: string;
101161
+ reason: string;
101162
+ reason_code: string;
101163
+ }[];
101164
+ };
101165
+ logistics_blocked_overview: {
101166
+ Args: never;
101167
+ Returns: import("../integrations/supabase/types").Json;
101168
+ };
100575
101169
  logistics_buffer_criteria: {
100576
101170
  Args: {
100577
101171
  p_settings: import("../integrations/supabase/types").Json;
@@ -100586,6 +101180,39 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
100586
101180
  };
100587
101181
  Returns: import("../integrations/supabase/types").Json;
100588
101182
  };
101183
+ logistics_buffer_detach_late_orders: {
101184
+ Args: {
101185
+ p_buffer?: string;
101186
+ };
101187
+ Returns: import("../integrations/supabase/types").Json;
101188
+ };
101189
+ logistics_buffer_frozen_order: {
101190
+ Args: {
101191
+ p_order_id: string;
101192
+ };
101193
+ Returns: boolean;
101194
+ };
101195
+ logistics_buffer_handled: {
101196
+ Args: {
101197
+ p_buffer: string;
101198
+ };
101199
+ Returns: boolean;
101200
+ };
101201
+ logistics_buffer_notify: {
101202
+ Args: {
101203
+ p_event_type: string;
101204
+ p_idempotency_key: string;
101205
+ p_order_ref: string;
101206
+ p_payload: import("../integrations/supabase/types").Json;
101207
+ };
101208
+ Returns: string;
101209
+ };
101210
+ logistics_buffer_open_key: {
101211
+ Args: {
101212
+ p_base_key: string;
101213
+ };
101214
+ Returns: string;
101215
+ };
100589
101216
  logistics_buffer_simulate: {
100590
101217
  Args: {
100591
101218
  p_orders?: import("../integrations/supabase/types").Json;
@@ -100675,6 +101302,25 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
100675
101302
  Args: never;
100676
101303
  Returns: import("../integrations/supabase/types").Json;
100677
101304
  };
101305
+ logistics_cart_plan_overview: {
101306
+ Args: {
101307
+ p_days?: number;
101308
+ };
101309
+ Returns: {
101310
+ cart_total: number;
101311
+ delivery_date: string;
101312
+ order_ref: string;
101313
+ plan_ready: boolean;
101314
+ reason: string;
101315
+ released: boolean;
101316
+ }[];
101317
+ };
101318
+ logistics_cart_plan_status: {
101319
+ Args: {
101320
+ p_ref: string;
101321
+ };
101322
+ Returns: import("../integrations/supabase/types").Json;
101323
+ };
100678
101324
  logistics_cart_seq: {
100679
101325
  Args: {
100680
101326
  p_order_uuid?: string;
@@ -101208,6 +101854,12 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
101208
101854
  };
101209
101855
  Returns: boolean;
101210
101856
  };
101857
+ logistics_link_order_items: {
101858
+ Args: {
101859
+ p_order?: string;
101860
+ };
101861
+ Returns: import("../integrations/supabase/types").Json;
101862
+ };
101211
101863
  logistics_live_carriers: {
101212
101864
  Args: {
101213
101865
  p_order_ref: string;
@@ -101234,6 +101886,12 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
101234
101886
  };
101235
101887
  Returns: string;
101236
101888
  };
101889
+ logistics_normalize_product_label: {
101890
+ Args: {
101891
+ p_label: string;
101892
+ };
101893
+ Returns: string;
101894
+ };
101237
101895
  logistics_not_past: {
101238
101896
  Args: {
101239
101897
  p_ts: string;
@@ -101422,6 +102080,12 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
101422
102080
  Args: never;
101423
102081
  Returns: number;
101424
102082
  };
102083
+ logistics_plan_retry: {
102084
+ Args: {
102085
+ p_order_ids: string[];
102086
+ };
102087
+ Returns: number;
102088
+ };
101425
102089
  logistics_plan_setting: {
101426
102090
  Args: {
101427
102091
  p_default: number;
@@ -101528,6 +102192,12 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
101528
102192
  };
101529
102193
  Returns: import("../integrations/supabase/types").Json;
101530
102194
  };
102195
+ logistics_resolve_product_id: {
102196
+ Args: {
102197
+ p_label: string;
102198
+ };
102199
+ Returns: string;
102200
+ };
101531
102201
  logistics_resolve_settings: {
101532
102202
  Args: {
101533
102203
  p_config_id: string;
@@ -101657,6 +102327,10 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
101657
102327
  };
101658
102328
  Returns: number;
101659
102329
  };
102330
+ logistics_tick_ping: {
102331
+ Args: never;
102332
+ Returns: string;
102333
+ };
101660
102334
  logistics_upsert_task: {
101661
102335
  Args: {
101662
102336
  p_buffer_ref: string;
@@ -102224,6 +102898,10 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
102224
102898
  };
102225
102899
  Returns: undefined;
102226
102900
  };
102901
+ pick_report_missing_cart_plan: {
102902
+ Args: never;
102903
+ Returns: import("../integrations/supabase/types").Json;
102904
+ };
102227
102905
  pick_reprint_cart: {
102228
102906
  Args: {
102229
102907
  _cart_id: string;
@@ -102764,6 +103442,12 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
102764
103442
  };
102765
103443
  Returns: boolean;
102766
103444
  };
103445
+ release_job_lock: {
103446
+ Args: {
103447
+ _key: string;
103448
+ };
103449
+ Returns: undefined;
103450
+ };
102767
103451
  release_local_pdf_job: {
102768
103452
  Args: {
102769
103453
  _job_id: string;
@@ -103452,6 +104136,14 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
103452
104136
  row_count: number;
103453
104137
  }[];
103454
104138
  };
104139
+ try_acquire_job_lock: {
104140
+ Args: {
104141
+ _key: string;
104142
+ _owner?: string;
104143
+ _seconds?: number;
104144
+ };
104145
+ Returns: boolean;
104146
+ };
103455
104147
  try_debtor_lock: {
103456
104148
  Args: {
103457
104149
  _group_key: string;
@@ -105769,6 +106461,8 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
105769
106461
  created_at: string;
105770
106462
  currency: string;
105771
106463
  distribute_over: string | null;
106464
+ external_id: string | null;
106465
+ external_synced_at: string | null;
105772
106466
  group_type: string;
105773
106467
  handling_fee: number | null;
105774
106468
  id: string;
@@ -105781,6 +106475,7 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
105781
106475
  rounding: string;
105782
106476
  rounding_step: number;
105783
106477
  sort_order: number;
106478
+ source: string;
105784
106479
  unit: string;
105785
106480
  updated_at: string;
105786
106481
  };
@@ -105791,6 +106486,8 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
105791
106486
  created_at?: string;
105792
106487
  currency?: string;
105793
106488
  distribute_over?: string | null;
106489
+ external_id?: string | null;
106490
+ external_synced_at?: string | null;
105794
106491
  group_type?: string;
105795
106492
  handling_fee?: number | null;
105796
106493
  id?: string;
@@ -105803,6 +106500,7 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
105803
106500
  rounding?: string;
105804
106501
  rounding_step?: number;
105805
106502
  sort_order?: number;
106503
+ source?: string;
105806
106504
  unit?: string;
105807
106505
  updated_at?: string;
105808
106506
  };
@@ -105813,6 +106511,8 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
105813
106511
  created_at?: string;
105814
106512
  currency?: string;
105815
106513
  distribute_over?: string | null;
106514
+ external_id?: string | null;
106515
+ external_synced_at?: string | null;
105816
106516
  group_type?: string;
105817
106517
  handling_fee?: number | null;
105818
106518
  id?: string;
@@ -105825,6 +106525,7 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
105825
106525
  rounding?: string;
105826
106526
  rounding_step?: number;
105827
106527
  sort_order?: number;
106528
+ source?: string;
105828
106529
  unit?: string;
105829
106530
  updated_at?: string;
105830
106531
  };
@@ -112688,6 +113389,30 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
112688
113389
  referencedColumns: ["id"];
112689
113390
  }];
112690
113391
  };
113392
+ job_locks: {
113393
+ Row: {
113394
+ created_at: string;
113395
+ lock_key: string;
113396
+ locked_until: string;
113397
+ owner: string | null;
113398
+ updated_at: string;
113399
+ };
113400
+ Insert: {
113401
+ created_at?: string;
113402
+ lock_key: string;
113403
+ locked_until: string;
113404
+ owner?: string | null;
113405
+ updated_at?: string;
113406
+ };
113407
+ Update: {
113408
+ created_at?: string;
113409
+ lock_key?: string;
113410
+ locked_until?: string;
113411
+ owner?: string | null;
113412
+ updated_at?: string;
113413
+ };
113414
+ Relationships: [];
113415
+ };
112691
113416
  layout_logos: {
112692
113417
  Row: {
112693
113418
  bestand_url: string;
@@ -113850,6 +114575,7 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
113850
114575
  next_attempt_at: string;
113851
114576
  order_id: string;
113852
114577
  reason: string;
114578
+ reason_code: string | null;
113853
114579
  status: string;
113854
114580
  updated_at: string;
113855
114581
  };
@@ -113862,6 +114588,7 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
113862
114588
  next_attempt_at?: string;
113863
114589
  order_id: string;
113864
114590
  reason?: string;
114591
+ reason_code?: string | null;
113865
114592
  status?: string;
113866
114593
  updated_at?: string;
113867
114594
  };
@@ -113874,6 +114601,7 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
113874
114601
  next_attempt_at?: string;
113875
114602
  order_id?: string;
113876
114603
  reason?: string;
114604
+ reason_code?: string | null;
113877
114605
  status?: string;
113878
114606
  updated_at?: string;
113879
114607
  };
@@ -114578,6 +115306,21 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
114578
115306
  referencedColumns: ["id"];
114579
115307
  }];
114580
115308
  };
115309
+ logistics_tick_heartbeat: {
115310
+ Row: {
115311
+ id: boolean;
115312
+ last_tick_at: string;
115313
+ };
115314
+ Insert: {
115315
+ id?: boolean;
115316
+ last_tick_at?: string;
115317
+ };
115318
+ Update: {
115319
+ id?: boolean;
115320
+ last_tick_at?: string;
115321
+ };
115322
+ Relationships: [];
115323
+ };
114581
115324
  logistics_variables: {
114582
115325
  Row: {
114583
115326
  created_at: string;
@@ -126460,6 +127203,30 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
126460
127203
  };
126461
127204
  Returns: import("../integrations/supabase/types").Json;
126462
127205
  };
127206
+ logistics_block_reason_code: {
127207
+ Args: {
127208
+ p_details?: import("../integrations/supabase/types").Json;
127209
+ p_reason: string;
127210
+ };
127211
+ Returns: string;
127212
+ };
127213
+ logistics_blocked_orders: {
127214
+ Args: never;
127215
+ Returns: {
127216
+ attempts: number;
127217
+ blocked_since: string;
127218
+ delivery_date: string;
127219
+ order_id: string;
127220
+ order_ref: string;
127221
+ queue_id: string;
127222
+ reason: string;
127223
+ reason_code: string;
127224
+ }[];
127225
+ };
127226
+ logistics_blocked_overview: {
127227
+ Args: never;
127228
+ Returns: import("../integrations/supabase/types").Json;
127229
+ };
126463
127230
  logistics_buffer_criteria: {
126464
127231
  Args: {
126465
127232
  p_settings: import("../integrations/supabase/types").Json;
@@ -126474,6 +127241,39 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
126474
127241
  };
126475
127242
  Returns: import("../integrations/supabase/types").Json;
126476
127243
  };
127244
+ logistics_buffer_detach_late_orders: {
127245
+ Args: {
127246
+ p_buffer?: string;
127247
+ };
127248
+ Returns: import("../integrations/supabase/types").Json;
127249
+ };
127250
+ logistics_buffer_frozen_order: {
127251
+ Args: {
127252
+ p_order_id: string;
127253
+ };
127254
+ Returns: boolean;
127255
+ };
127256
+ logistics_buffer_handled: {
127257
+ Args: {
127258
+ p_buffer: string;
127259
+ };
127260
+ Returns: boolean;
127261
+ };
127262
+ logistics_buffer_notify: {
127263
+ Args: {
127264
+ p_event_type: string;
127265
+ p_idempotency_key: string;
127266
+ p_order_ref: string;
127267
+ p_payload: import("../integrations/supabase/types").Json;
127268
+ };
127269
+ Returns: string;
127270
+ };
127271
+ logistics_buffer_open_key: {
127272
+ Args: {
127273
+ p_base_key: string;
127274
+ };
127275
+ Returns: string;
127276
+ };
126477
127277
  logistics_buffer_simulate: {
126478
127278
  Args: {
126479
127279
  p_orders?: import("../integrations/supabase/types").Json;
@@ -126563,6 +127363,25 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
126563
127363
  Args: never;
126564
127364
  Returns: import("../integrations/supabase/types").Json;
126565
127365
  };
127366
+ logistics_cart_plan_overview: {
127367
+ Args: {
127368
+ p_days?: number;
127369
+ };
127370
+ Returns: {
127371
+ cart_total: number;
127372
+ delivery_date: string;
127373
+ order_ref: string;
127374
+ plan_ready: boolean;
127375
+ reason: string;
127376
+ released: boolean;
127377
+ }[];
127378
+ };
127379
+ logistics_cart_plan_status: {
127380
+ Args: {
127381
+ p_ref: string;
127382
+ };
127383
+ Returns: import("../integrations/supabase/types").Json;
127384
+ };
126566
127385
  logistics_cart_seq: {
126567
127386
  Args: {
126568
127387
  p_order_uuid?: string;
@@ -127096,6 +127915,12 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
127096
127915
  };
127097
127916
  Returns: boolean;
127098
127917
  };
127918
+ logistics_link_order_items: {
127919
+ Args: {
127920
+ p_order?: string;
127921
+ };
127922
+ Returns: import("../integrations/supabase/types").Json;
127923
+ };
127099
127924
  logistics_live_carriers: {
127100
127925
  Args: {
127101
127926
  p_order_ref: string;
@@ -127122,6 +127947,12 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
127122
127947
  };
127123
127948
  Returns: string;
127124
127949
  };
127950
+ logistics_normalize_product_label: {
127951
+ Args: {
127952
+ p_label: string;
127953
+ };
127954
+ Returns: string;
127955
+ };
127125
127956
  logistics_not_past: {
127126
127957
  Args: {
127127
127958
  p_ts: string;
@@ -127310,6 +128141,12 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
127310
128141
  Args: never;
127311
128142
  Returns: number;
127312
128143
  };
128144
+ logistics_plan_retry: {
128145
+ Args: {
128146
+ p_order_ids: string[];
128147
+ };
128148
+ Returns: number;
128149
+ };
127313
128150
  logistics_plan_setting: {
127314
128151
  Args: {
127315
128152
  p_default: number;
@@ -127416,6 +128253,12 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
127416
128253
  };
127417
128254
  Returns: import("../integrations/supabase/types").Json;
127418
128255
  };
128256
+ logistics_resolve_product_id: {
128257
+ Args: {
128258
+ p_label: string;
128259
+ };
128260
+ Returns: string;
128261
+ };
127419
128262
  logistics_resolve_settings: {
127420
128263
  Args: {
127421
128264
  p_config_id: string;
@@ -127545,6 +128388,10 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
127545
128388
  };
127546
128389
  Returns: number;
127547
128390
  };
128391
+ logistics_tick_ping: {
128392
+ Args: never;
128393
+ Returns: string;
128394
+ };
127548
128395
  logistics_upsert_task: {
127549
128396
  Args: {
127550
128397
  p_buffer_ref: string;
@@ -128112,6 +128959,10 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
128112
128959
  };
128113
128960
  Returns: undefined;
128114
128961
  };
128962
+ pick_report_missing_cart_plan: {
128963
+ Args: never;
128964
+ Returns: import("../integrations/supabase/types").Json;
128965
+ };
128115
128966
  pick_reprint_cart: {
128116
128967
  Args: {
128117
128968
  _cart_id: string;
@@ -128652,6 +129503,12 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
128652
129503
  };
128653
129504
  Returns: boolean;
128654
129505
  };
129506
+ release_job_lock: {
129507
+ Args: {
129508
+ _key: string;
129509
+ };
129510
+ Returns: undefined;
129511
+ };
128655
129512
  release_local_pdf_job: {
128656
129513
  Args: {
128657
129514
  _job_id: string;
@@ -129340,6 +130197,14 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
129340
130197
  row_count: number;
129341
130198
  }[];
129342
130199
  };
130200
+ try_acquire_job_lock: {
130201
+ Args: {
130202
+ _key: string;
130203
+ _owner?: string;
130204
+ _seconds?: number;
130205
+ };
130206
+ Returns: boolean;
130207
+ };
129343
130208
  try_debtor_lock: {
129344
130209
  Args: {
129345
130210
  _group_key: string;
@@ -131660,6 +132525,8 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
131660
132525
  created_at: string;
131661
132526
  currency: string;
131662
132527
  distribute_over: string | null;
132528
+ external_id: string | null;
132529
+ external_synced_at: string | null;
131663
132530
  group_type: string;
131664
132531
  handling_fee: number | null;
131665
132532
  id: string;
@@ -131672,6 +132539,7 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
131672
132539
  rounding: string;
131673
132540
  rounding_step: number;
131674
132541
  sort_order: number;
132542
+ source: string;
131675
132543
  unit: string;
131676
132544
  updated_at: string;
131677
132545
  };
@@ -131682,6 +132550,8 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
131682
132550
  created_at?: string;
131683
132551
  currency?: string;
131684
132552
  distribute_over?: string | null;
132553
+ external_id?: string | null;
132554
+ external_synced_at?: string | null;
131685
132555
  group_type?: string;
131686
132556
  handling_fee?: number | null;
131687
132557
  id?: string;
@@ -131694,6 +132564,7 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
131694
132564
  rounding?: string;
131695
132565
  rounding_step?: number;
131696
132566
  sort_order?: number;
132567
+ source?: string;
131697
132568
  unit?: string;
131698
132569
  updated_at?: string;
131699
132570
  };
@@ -131704,6 +132575,8 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
131704
132575
  created_at?: string;
131705
132576
  currency?: string;
131706
132577
  distribute_over?: string | null;
132578
+ external_id?: string | null;
132579
+ external_synced_at?: string | null;
131707
132580
  group_type?: string;
131708
132581
  handling_fee?: number | null;
131709
132582
  id?: string;
@@ -131716,6 +132589,7 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
131716
132589
  rounding?: string;
131717
132590
  rounding_step?: number;
131718
132591
  sort_order?: number;
132592
+ source?: string;
131719
132593
  unit?: string;
131720
132594
  updated_at?: string;
131721
132595
  };
@@ -138579,6 +139453,30 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
138579
139453
  referencedColumns: ["id"];
138580
139454
  }];
138581
139455
  };
139456
+ job_locks: {
139457
+ Row: {
139458
+ created_at: string;
139459
+ lock_key: string;
139460
+ locked_until: string;
139461
+ owner: string | null;
139462
+ updated_at: string;
139463
+ };
139464
+ Insert: {
139465
+ created_at?: string;
139466
+ lock_key: string;
139467
+ locked_until: string;
139468
+ owner?: string | null;
139469
+ updated_at?: string;
139470
+ };
139471
+ Update: {
139472
+ created_at?: string;
139473
+ lock_key?: string;
139474
+ locked_until?: string;
139475
+ owner?: string | null;
139476
+ updated_at?: string;
139477
+ };
139478
+ Relationships: [];
139479
+ };
138582
139480
  layout_logos: {
138583
139481
  Row: {
138584
139482
  bestand_url: string;
@@ -139741,6 +140639,7 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
139741
140639
  next_attempt_at: string;
139742
140640
  order_id: string;
139743
140641
  reason: string;
140642
+ reason_code: string | null;
139744
140643
  status: string;
139745
140644
  updated_at: string;
139746
140645
  };
@@ -139753,6 +140652,7 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
139753
140652
  next_attempt_at?: string;
139754
140653
  order_id: string;
139755
140654
  reason?: string;
140655
+ reason_code?: string | null;
139756
140656
  status?: string;
139757
140657
  updated_at?: string;
139758
140658
  };
@@ -139765,6 +140665,7 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
139765
140665
  next_attempt_at?: string;
139766
140666
  order_id?: string;
139767
140667
  reason?: string;
140668
+ reason_code?: string | null;
139768
140669
  status?: string;
139769
140670
  updated_at?: string;
139770
140671
  };
@@ -140469,6 +141370,21 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
140469
141370
  referencedColumns: ["id"];
140470
141371
  }];
140471
141372
  };
141373
+ logistics_tick_heartbeat: {
141374
+ Row: {
141375
+ id: boolean;
141376
+ last_tick_at: string;
141377
+ };
141378
+ Insert: {
141379
+ id?: boolean;
141380
+ last_tick_at?: string;
141381
+ };
141382
+ Update: {
141383
+ id?: boolean;
141384
+ last_tick_at?: string;
141385
+ };
141386
+ Relationships: [];
141387
+ };
140472
141388
  logistics_variables: {
140473
141389
  Row: {
140474
141390
  created_at: string;
@@ -152351,6 +153267,30 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
152351
153267
  };
152352
153268
  Returns: import("../integrations/supabase/types").Json;
152353
153269
  };
153270
+ logistics_block_reason_code: {
153271
+ Args: {
153272
+ p_details?: import("../integrations/supabase/types").Json;
153273
+ p_reason: string;
153274
+ };
153275
+ Returns: string;
153276
+ };
153277
+ logistics_blocked_orders: {
153278
+ Args: never;
153279
+ Returns: {
153280
+ attempts: number;
153281
+ blocked_since: string;
153282
+ delivery_date: string;
153283
+ order_id: string;
153284
+ order_ref: string;
153285
+ queue_id: string;
153286
+ reason: string;
153287
+ reason_code: string;
153288
+ }[];
153289
+ };
153290
+ logistics_blocked_overview: {
153291
+ Args: never;
153292
+ Returns: import("../integrations/supabase/types").Json;
153293
+ };
152354
153294
  logistics_buffer_criteria: {
152355
153295
  Args: {
152356
153296
  p_settings: import("../integrations/supabase/types").Json;
@@ -152365,6 +153305,39 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
152365
153305
  };
152366
153306
  Returns: import("../integrations/supabase/types").Json;
152367
153307
  };
153308
+ logistics_buffer_detach_late_orders: {
153309
+ Args: {
153310
+ p_buffer?: string;
153311
+ };
153312
+ Returns: import("../integrations/supabase/types").Json;
153313
+ };
153314
+ logistics_buffer_frozen_order: {
153315
+ Args: {
153316
+ p_order_id: string;
153317
+ };
153318
+ Returns: boolean;
153319
+ };
153320
+ logistics_buffer_handled: {
153321
+ Args: {
153322
+ p_buffer: string;
153323
+ };
153324
+ Returns: boolean;
153325
+ };
153326
+ logistics_buffer_notify: {
153327
+ Args: {
153328
+ p_event_type: string;
153329
+ p_idempotency_key: string;
153330
+ p_order_ref: string;
153331
+ p_payload: import("../integrations/supabase/types").Json;
153332
+ };
153333
+ Returns: string;
153334
+ };
153335
+ logistics_buffer_open_key: {
153336
+ Args: {
153337
+ p_base_key: string;
153338
+ };
153339
+ Returns: string;
153340
+ };
152368
153341
  logistics_buffer_simulate: {
152369
153342
  Args: {
152370
153343
  p_orders?: import("../integrations/supabase/types").Json;
@@ -152454,6 +153427,25 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
152454
153427
  Args: never;
152455
153428
  Returns: import("../integrations/supabase/types").Json;
152456
153429
  };
153430
+ logistics_cart_plan_overview: {
153431
+ Args: {
153432
+ p_days?: number;
153433
+ };
153434
+ Returns: {
153435
+ cart_total: number;
153436
+ delivery_date: string;
153437
+ order_ref: string;
153438
+ plan_ready: boolean;
153439
+ reason: string;
153440
+ released: boolean;
153441
+ }[];
153442
+ };
153443
+ logistics_cart_plan_status: {
153444
+ Args: {
153445
+ p_ref: string;
153446
+ };
153447
+ Returns: import("../integrations/supabase/types").Json;
153448
+ };
152457
153449
  logistics_cart_seq: {
152458
153450
  Args: {
152459
153451
  p_order_uuid?: string;
@@ -152987,6 +153979,12 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
152987
153979
  };
152988
153980
  Returns: boolean;
152989
153981
  };
153982
+ logistics_link_order_items: {
153983
+ Args: {
153984
+ p_order?: string;
153985
+ };
153986
+ Returns: import("../integrations/supabase/types").Json;
153987
+ };
152990
153988
  logistics_live_carriers: {
152991
153989
  Args: {
152992
153990
  p_order_ref: string;
@@ -153013,6 +154011,12 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
153013
154011
  };
153014
154012
  Returns: string;
153015
154013
  };
154014
+ logistics_normalize_product_label: {
154015
+ Args: {
154016
+ p_label: string;
154017
+ };
154018
+ Returns: string;
154019
+ };
153016
154020
  logistics_not_past: {
153017
154021
  Args: {
153018
154022
  p_ts: string;
@@ -153201,6 +154205,12 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
153201
154205
  Args: never;
153202
154206
  Returns: number;
153203
154207
  };
154208
+ logistics_plan_retry: {
154209
+ Args: {
154210
+ p_order_ids: string[];
154211
+ };
154212
+ Returns: number;
154213
+ };
153204
154214
  logistics_plan_setting: {
153205
154215
  Args: {
153206
154216
  p_default: number;
@@ -153307,6 +154317,12 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
153307
154317
  };
153308
154318
  Returns: import("../integrations/supabase/types").Json;
153309
154319
  };
154320
+ logistics_resolve_product_id: {
154321
+ Args: {
154322
+ p_label: string;
154323
+ };
154324
+ Returns: string;
154325
+ };
153310
154326
  logistics_resolve_settings: {
153311
154327
  Args: {
153312
154328
  p_config_id: string;
@@ -153436,6 +154452,10 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
153436
154452
  };
153437
154453
  Returns: number;
153438
154454
  };
154455
+ logistics_tick_ping: {
154456
+ Args: never;
154457
+ Returns: string;
154458
+ };
153439
154459
  logistics_upsert_task: {
153440
154460
  Args: {
153441
154461
  p_buffer_ref: string;
@@ -154003,6 +155023,10 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
154003
155023
  };
154004
155024
  Returns: undefined;
154005
155025
  };
155026
+ pick_report_missing_cart_plan: {
155027
+ Args: never;
155028
+ Returns: import("../integrations/supabase/types").Json;
155029
+ };
154006
155030
  pick_reprint_cart: {
154007
155031
  Args: {
154008
155032
  _cart_id: string;
@@ -154543,6 +155567,12 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
154543
155567
  };
154544
155568
  Returns: boolean;
154545
155569
  };
155570
+ release_job_lock: {
155571
+ Args: {
155572
+ _key: string;
155573
+ };
155574
+ Returns: undefined;
155575
+ };
154546
155576
  release_local_pdf_job: {
154547
155577
  Args: {
154548
155578
  _job_id: string;
@@ -155231,6 +156261,14 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
155231
156261
  row_count: number;
155232
156262
  }[];
155233
156263
  };
156264
+ try_acquire_job_lock: {
156265
+ Args: {
156266
+ _key: string;
156267
+ _owner?: string;
156268
+ _seconds?: number;
156269
+ };
156270
+ Returns: boolean;
156271
+ };
155234
156272
  try_debtor_lock: {
155235
156273
  Args: {
155236
156274
  _group_key: string;
@@ -157537,6 +158575,8 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
157537
158575
  created_at: string;
157538
158576
  currency: string;
157539
158577
  distribute_over: string | null;
158578
+ external_id: string | null;
158579
+ external_synced_at: string | null;
157540
158580
  group_type: string;
157541
158581
  handling_fee: number | null;
157542
158582
  id: string;
@@ -157549,6 +158589,7 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
157549
158589
  rounding: string;
157550
158590
  rounding_step: number;
157551
158591
  sort_order: number;
158592
+ source: string;
157552
158593
  unit: string;
157553
158594
  updated_at: string;
157554
158595
  };
@@ -157559,6 +158600,8 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
157559
158600
  created_at?: string;
157560
158601
  currency?: string;
157561
158602
  distribute_over?: string | null;
158603
+ external_id?: string | null;
158604
+ external_synced_at?: string | null;
157562
158605
  group_type?: string;
157563
158606
  handling_fee?: number | null;
157564
158607
  id?: string;
@@ -157571,6 +158614,7 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
157571
158614
  rounding?: string;
157572
158615
  rounding_step?: number;
157573
158616
  sort_order?: number;
158617
+ source?: string;
157574
158618
  unit?: string;
157575
158619
  updated_at?: string;
157576
158620
  };
@@ -157581,6 +158625,8 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
157581
158625
  created_at?: string;
157582
158626
  currency?: string;
157583
158627
  distribute_over?: string | null;
158628
+ external_id?: string | null;
158629
+ external_synced_at?: string | null;
157584
158630
  group_type?: string;
157585
158631
  handling_fee?: number | null;
157586
158632
  id?: string;
@@ -157593,6 +158639,7 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
157593
158639
  rounding?: string;
157594
158640
  rounding_step?: number;
157595
158641
  sort_order?: number;
158642
+ source?: string;
157596
158643
  unit?: string;
157597
158644
  updated_at?: string;
157598
158645
  };
@@ -164456,6 +165503,30 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
164456
165503
  referencedColumns: ["id"];
164457
165504
  }];
164458
165505
  };
165506
+ job_locks: {
165507
+ Row: {
165508
+ created_at: string;
165509
+ lock_key: string;
165510
+ locked_until: string;
165511
+ owner: string | null;
165512
+ updated_at: string;
165513
+ };
165514
+ Insert: {
165515
+ created_at?: string;
165516
+ lock_key: string;
165517
+ locked_until: string;
165518
+ owner?: string | null;
165519
+ updated_at?: string;
165520
+ };
165521
+ Update: {
165522
+ created_at?: string;
165523
+ lock_key?: string;
165524
+ locked_until?: string;
165525
+ owner?: string | null;
165526
+ updated_at?: string;
165527
+ };
165528
+ Relationships: [];
165529
+ };
164459
165530
  layout_logos: {
164460
165531
  Row: {
164461
165532
  bestand_url: string;
@@ -165618,6 +166689,7 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
165618
166689
  next_attempt_at: string;
165619
166690
  order_id: string;
165620
166691
  reason: string;
166692
+ reason_code: string | null;
165621
166693
  status: string;
165622
166694
  updated_at: string;
165623
166695
  };
@@ -165630,6 +166702,7 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
165630
166702
  next_attempt_at?: string;
165631
166703
  order_id: string;
165632
166704
  reason?: string;
166705
+ reason_code?: string | null;
165633
166706
  status?: string;
165634
166707
  updated_at?: string;
165635
166708
  };
@@ -165642,6 +166715,7 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
165642
166715
  next_attempt_at?: string;
165643
166716
  order_id?: string;
165644
166717
  reason?: string;
166718
+ reason_code?: string | null;
165645
166719
  status?: string;
165646
166720
  updated_at?: string;
165647
166721
  };
@@ -166346,6 +167420,21 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
166346
167420
  referencedColumns: ["id"];
166347
167421
  }];
166348
167422
  };
167423
+ logistics_tick_heartbeat: {
167424
+ Row: {
167425
+ id: boolean;
167426
+ last_tick_at: string;
167427
+ };
167428
+ Insert: {
167429
+ id?: boolean;
167430
+ last_tick_at?: string;
167431
+ };
167432
+ Update: {
167433
+ id?: boolean;
167434
+ last_tick_at?: string;
167435
+ };
167436
+ Relationships: [];
167437
+ };
166349
167438
  logistics_variables: {
166350
167439
  Row: {
166351
167440
  created_at: string;
@@ -178228,6 +179317,30 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
178228
179317
  };
178229
179318
  Returns: import("../integrations/supabase/types").Json;
178230
179319
  };
179320
+ logistics_block_reason_code: {
179321
+ Args: {
179322
+ p_details?: import("../integrations/supabase/types").Json;
179323
+ p_reason: string;
179324
+ };
179325
+ Returns: string;
179326
+ };
179327
+ logistics_blocked_orders: {
179328
+ Args: never;
179329
+ Returns: {
179330
+ attempts: number;
179331
+ blocked_since: string;
179332
+ delivery_date: string;
179333
+ order_id: string;
179334
+ order_ref: string;
179335
+ queue_id: string;
179336
+ reason: string;
179337
+ reason_code: string;
179338
+ }[];
179339
+ };
179340
+ logistics_blocked_overview: {
179341
+ Args: never;
179342
+ Returns: import("../integrations/supabase/types").Json;
179343
+ };
178231
179344
  logistics_buffer_criteria: {
178232
179345
  Args: {
178233
179346
  p_settings: import("../integrations/supabase/types").Json;
@@ -178242,6 +179355,39 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
178242
179355
  };
178243
179356
  Returns: import("../integrations/supabase/types").Json;
178244
179357
  };
179358
+ logistics_buffer_detach_late_orders: {
179359
+ Args: {
179360
+ p_buffer?: string;
179361
+ };
179362
+ Returns: import("../integrations/supabase/types").Json;
179363
+ };
179364
+ logistics_buffer_frozen_order: {
179365
+ Args: {
179366
+ p_order_id: string;
179367
+ };
179368
+ Returns: boolean;
179369
+ };
179370
+ logistics_buffer_handled: {
179371
+ Args: {
179372
+ p_buffer: string;
179373
+ };
179374
+ Returns: boolean;
179375
+ };
179376
+ logistics_buffer_notify: {
179377
+ Args: {
179378
+ p_event_type: string;
179379
+ p_idempotency_key: string;
179380
+ p_order_ref: string;
179381
+ p_payload: import("../integrations/supabase/types").Json;
179382
+ };
179383
+ Returns: string;
179384
+ };
179385
+ logistics_buffer_open_key: {
179386
+ Args: {
179387
+ p_base_key: string;
179388
+ };
179389
+ Returns: string;
179390
+ };
178245
179391
  logistics_buffer_simulate: {
178246
179392
  Args: {
178247
179393
  p_orders?: import("../integrations/supabase/types").Json;
@@ -178331,6 +179477,25 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
178331
179477
  Args: never;
178332
179478
  Returns: import("../integrations/supabase/types").Json;
178333
179479
  };
179480
+ logistics_cart_plan_overview: {
179481
+ Args: {
179482
+ p_days?: number;
179483
+ };
179484
+ Returns: {
179485
+ cart_total: number;
179486
+ delivery_date: string;
179487
+ order_ref: string;
179488
+ plan_ready: boolean;
179489
+ reason: string;
179490
+ released: boolean;
179491
+ }[];
179492
+ };
179493
+ logistics_cart_plan_status: {
179494
+ Args: {
179495
+ p_ref: string;
179496
+ };
179497
+ Returns: import("../integrations/supabase/types").Json;
179498
+ };
178334
179499
  logistics_cart_seq: {
178335
179500
  Args: {
178336
179501
  p_order_uuid?: string;
@@ -178864,6 +180029,12 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
178864
180029
  };
178865
180030
  Returns: boolean;
178866
180031
  };
180032
+ logistics_link_order_items: {
180033
+ Args: {
180034
+ p_order?: string;
180035
+ };
180036
+ Returns: import("../integrations/supabase/types").Json;
180037
+ };
178867
180038
  logistics_live_carriers: {
178868
180039
  Args: {
178869
180040
  p_order_ref: string;
@@ -178890,6 +180061,12 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
178890
180061
  };
178891
180062
  Returns: string;
178892
180063
  };
180064
+ logistics_normalize_product_label: {
180065
+ Args: {
180066
+ p_label: string;
180067
+ };
180068
+ Returns: string;
180069
+ };
178893
180070
  logistics_not_past: {
178894
180071
  Args: {
178895
180072
  p_ts: string;
@@ -179078,6 +180255,12 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
179078
180255
  Args: never;
179079
180256
  Returns: number;
179080
180257
  };
180258
+ logistics_plan_retry: {
180259
+ Args: {
180260
+ p_order_ids: string[];
180261
+ };
180262
+ Returns: number;
180263
+ };
179081
180264
  logistics_plan_setting: {
179082
180265
  Args: {
179083
180266
  p_default: number;
@@ -179184,6 +180367,12 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
179184
180367
  };
179185
180368
  Returns: import("../integrations/supabase/types").Json;
179186
180369
  };
180370
+ logistics_resolve_product_id: {
180371
+ Args: {
180372
+ p_label: string;
180373
+ };
180374
+ Returns: string;
180375
+ };
179187
180376
  logistics_resolve_settings: {
179188
180377
  Args: {
179189
180378
  p_config_id: string;
@@ -179313,6 +180502,10 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
179313
180502
  };
179314
180503
  Returns: number;
179315
180504
  };
180505
+ logistics_tick_ping: {
180506
+ Args: never;
180507
+ Returns: string;
180508
+ };
179316
180509
  logistics_upsert_task: {
179317
180510
  Args: {
179318
180511
  p_buffer_ref: string;
@@ -179880,6 +181073,10 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
179880
181073
  };
179881
181074
  Returns: undefined;
179882
181075
  };
181076
+ pick_report_missing_cart_plan: {
181077
+ Args: never;
181078
+ Returns: import("../integrations/supabase/types").Json;
181079
+ };
179883
181080
  pick_reprint_cart: {
179884
181081
  Args: {
179885
181082
  _cart_id: string;
@@ -180420,6 +181617,12 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
180420
181617
  };
180421
181618
  Returns: boolean;
180422
181619
  };
181620
+ release_job_lock: {
181621
+ Args: {
181622
+ _key: string;
181623
+ };
181624
+ Returns: undefined;
181625
+ };
180423
181626
  release_local_pdf_job: {
180424
181627
  Args: {
180425
181628
  _job_id: string;
@@ -181108,6 +182311,14 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
181108
182311
  row_count: number;
181109
182312
  }[];
181110
182313
  };
182314
+ try_acquire_job_lock: {
182315
+ Args: {
182316
+ _key: string;
182317
+ _owner?: string;
182318
+ _seconds?: number;
182319
+ };
182320
+ Returns: boolean;
182321
+ };
181111
182322
  try_debtor_lock: {
181112
182323
  Args: {
181113
182324
  _group_key: string;
@@ -183439,6 +184650,8 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
183439
184650
  created_at: string;
183440
184651
  currency: string;
183441
184652
  distribute_over: string | null;
184653
+ external_id: string | null;
184654
+ external_synced_at: string | null;
183442
184655
  group_type: string;
183443
184656
  handling_fee: number | null;
183444
184657
  id: string;
@@ -183451,6 +184664,7 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
183451
184664
  rounding: string;
183452
184665
  rounding_step: number;
183453
184666
  sort_order: number;
184667
+ source: string;
183454
184668
  unit: string;
183455
184669
  updated_at: string;
183456
184670
  };
@@ -183461,6 +184675,8 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
183461
184675
  created_at?: string;
183462
184676
  currency?: string;
183463
184677
  distribute_over?: string | null;
184678
+ external_id?: string | null;
184679
+ external_synced_at?: string | null;
183464
184680
  group_type?: string;
183465
184681
  handling_fee?: number | null;
183466
184682
  id?: string;
@@ -183473,6 +184689,7 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
183473
184689
  rounding?: string;
183474
184690
  rounding_step?: number;
183475
184691
  sort_order?: number;
184692
+ source?: string;
183476
184693
  unit?: string;
183477
184694
  updated_at?: string;
183478
184695
  };
@@ -183483,6 +184700,8 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
183483
184700
  created_at?: string;
183484
184701
  currency?: string;
183485
184702
  distribute_over?: string | null;
184703
+ external_id?: string | null;
184704
+ external_synced_at?: string | null;
183486
184705
  group_type?: string;
183487
184706
  handling_fee?: number | null;
183488
184707
  id?: string;
@@ -183495,6 +184714,7 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
183495
184714
  rounding?: string;
183496
184715
  rounding_step?: number;
183497
184716
  sort_order?: number;
184717
+ source?: string;
183498
184718
  unit?: string;
183499
184719
  updated_at?: string;
183500
184720
  };
@@ -190358,6 +191578,30 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
190358
191578
  referencedColumns: ["id"];
190359
191579
  }];
190360
191580
  };
191581
+ job_locks: {
191582
+ Row: {
191583
+ created_at: string;
191584
+ lock_key: string;
191585
+ locked_until: string;
191586
+ owner: string | null;
191587
+ updated_at: string;
191588
+ };
191589
+ Insert: {
191590
+ created_at?: string;
191591
+ lock_key: string;
191592
+ locked_until: string;
191593
+ owner?: string | null;
191594
+ updated_at?: string;
191595
+ };
191596
+ Update: {
191597
+ created_at?: string;
191598
+ lock_key?: string;
191599
+ locked_until?: string;
191600
+ owner?: string | null;
191601
+ updated_at?: string;
191602
+ };
191603
+ Relationships: [];
191604
+ };
190361
191605
  layout_logos: {
190362
191606
  Row: {
190363
191607
  bestand_url: string;
@@ -191520,6 +192764,7 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
191520
192764
  next_attempt_at: string;
191521
192765
  order_id: string;
191522
192766
  reason: string;
192767
+ reason_code: string | null;
191523
192768
  status: string;
191524
192769
  updated_at: string;
191525
192770
  };
@@ -191532,6 +192777,7 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
191532
192777
  next_attempt_at?: string;
191533
192778
  order_id: string;
191534
192779
  reason?: string;
192780
+ reason_code?: string | null;
191535
192781
  status?: string;
191536
192782
  updated_at?: string;
191537
192783
  };
@@ -191544,6 +192790,7 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
191544
192790
  next_attempt_at?: string;
191545
192791
  order_id?: string;
191546
192792
  reason?: string;
192793
+ reason_code?: string | null;
191547
192794
  status?: string;
191548
192795
  updated_at?: string;
191549
192796
  };
@@ -192248,6 +193495,21 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
192248
193495
  referencedColumns: ["id"];
192249
193496
  }];
192250
193497
  };
193498
+ logistics_tick_heartbeat: {
193499
+ Row: {
193500
+ id: boolean;
193501
+ last_tick_at: string;
193502
+ };
193503
+ Insert: {
193504
+ id?: boolean;
193505
+ last_tick_at?: string;
193506
+ };
193507
+ Update: {
193508
+ id?: boolean;
193509
+ last_tick_at?: string;
193510
+ };
193511
+ Relationships: [];
193512
+ };
192251
193513
  logistics_variables: {
192252
193514
  Row: {
192253
193515
  created_at: string;
@@ -204130,6 +205392,30 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
204130
205392
  };
204131
205393
  Returns: import("../integrations/supabase/types").Json;
204132
205394
  };
205395
+ logistics_block_reason_code: {
205396
+ Args: {
205397
+ p_details?: import("../integrations/supabase/types").Json;
205398
+ p_reason: string;
205399
+ };
205400
+ Returns: string;
205401
+ };
205402
+ logistics_blocked_orders: {
205403
+ Args: never;
205404
+ Returns: {
205405
+ attempts: number;
205406
+ blocked_since: string;
205407
+ delivery_date: string;
205408
+ order_id: string;
205409
+ order_ref: string;
205410
+ queue_id: string;
205411
+ reason: string;
205412
+ reason_code: string;
205413
+ }[];
205414
+ };
205415
+ logistics_blocked_overview: {
205416
+ Args: never;
205417
+ Returns: import("../integrations/supabase/types").Json;
205418
+ };
204133
205419
  logistics_buffer_criteria: {
204134
205420
  Args: {
204135
205421
  p_settings: import("../integrations/supabase/types").Json;
@@ -204144,6 +205430,39 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
204144
205430
  };
204145
205431
  Returns: import("../integrations/supabase/types").Json;
204146
205432
  };
205433
+ logistics_buffer_detach_late_orders: {
205434
+ Args: {
205435
+ p_buffer?: string;
205436
+ };
205437
+ Returns: import("../integrations/supabase/types").Json;
205438
+ };
205439
+ logistics_buffer_frozen_order: {
205440
+ Args: {
205441
+ p_order_id: string;
205442
+ };
205443
+ Returns: boolean;
205444
+ };
205445
+ logistics_buffer_handled: {
205446
+ Args: {
205447
+ p_buffer: string;
205448
+ };
205449
+ Returns: boolean;
205450
+ };
205451
+ logistics_buffer_notify: {
205452
+ Args: {
205453
+ p_event_type: string;
205454
+ p_idempotency_key: string;
205455
+ p_order_ref: string;
205456
+ p_payload: import("../integrations/supabase/types").Json;
205457
+ };
205458
+ Returns: string;
205459
+ };
205460
+ logistics_buffer_open_key: {
205461
+ Args: {
205462
+ p_base_key: string;
205463
+ };
205464
+ Returns: string;
205465
+ };
204147
205466
  logistics_buffer_simulate: {
204148
205467
  Args: {
204149
205468
  p_orders?: import("../integrations/supabase/types").Json;
@@ -204233,6 +205552,25 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
204233
205552
  Args: never;
204234
205553
  Returns: import("../integrations/supabase/types").Json;
204235
205554
  };
205555
+ logistics_cart_plan_overview: {
205556
+ Args: {
205557
+ p_days?: number;
205558
+ };
205559
+ Returns: {
205560
+ cart_total: number;
205561
+ delivery_date: string;
205562
+ order_ref: string;
205563
+ plan_ready: boolean;
205564
+ reason: string;
205565
+ released: boolean;
205566
+ }[];
205567
+ };
205568
+ logistics_cart_plan_status: {
205569
+ Args: {
205570
+ p_ref: string;
205571
+ };
205572
+ Returns: import("../integrations/supabase/types").Json;
205573
+ };
204236
205574
  logistics_cart_seq: {
204237
205575
  Args: {
204238
205576
  p_order_uuid?: string;
@@ -204766,6 +206104,12 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
204766
206104
  };
204767
206105
  Returns: boolean;
204768
206106
  };
206107
+ logistics_link_order_items: {
206108
+ Args: {
206109
+ p_order?: string;
206110
+ };
206111
+ Returns: import("../integrations/supabase/types").Json;
206112
+ };
204769
206113
  logistics_live_carriers: {
204770
206114
  Args: {
204771
206115
  p_order_ref: string;
@@ -204792,6 +206136,12 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
204792
206136
  };
204793
206137
  Returns: string;
204794
206138
  };
206139
+ logistics_normalize_product_label: {
206140
+ Args: {
206141
+ p_label: string;
206142
+ };
206143
+ Returns: string;
206144
+ };
204795
206145
  logistics_not_past: {
204796
206146
  Args: {
204797
206147
  p_ts: string;
@@ -204980,6 +206330,12 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
204980
206330
  Args: never;
204981
206331
  Returns: number;
204982
206332
  };
206333
+ logistics_plan_retry: {
206334
+ Args: {
206335
+ p_order_ids: string[];
206336
+ };
206337
+ Returns: number;
206338
+ };
204983
206339
  logistics_plan_setting: {
204984
206340
  Args: {
204985
206341
  p_default: number;
@@ -205086,6 +206442,12 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
205086
206442
  };
205087
206443
  Returns: import("../integrations/supabase/types").Json;
205088
206444
  };
206445
+ logistics_resolve_product_id: {
206446
+ Args: {
206447
+ p_label: string;
206448
+ };
206449
+ Returns: string;
206450
+ };
205089
206451
  logistics_resolve_settings: {
205090
206452
  Args: {
205091
206453
  p_config_id: string;
@@ -205215,6 +206577,10 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
205215
206577
  };
205216
206578
  Returns: number;
205217
206579
  };
206580
+ logistics_tick_ping: {
206581
+ Args: never;
206582
+ Returns: string;
206583
+ };
205218
206584
  logistics_upsert_task: {
205219
206585
  Args: {
205220
206586
  p_buffer_ref: string;
@@ -205782,6 +207148,10 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
205782
207148
  };
205783
207149
  Returns: undefined;
205784
207150
  };
207151
+ pick_report_missing_cart_plan: {
207152
+ Args: never;
207153
+ Returns: import("../integrations/supabase/types").Json;
207154
+ };
205785
207155
  pick_reprint_cart: {
205786
207156
  Args: {
205787
207157
  _cart_id: string;
@@ -206322,6 +207692,12 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
206322
207692
  };
206323
207693
  Returns: boolean;
206324
207694
  };
207695
+ release_job_lock: {
207696
+ Args: {
207697
+ _key: string;
207698
+ };
207699
+ Returns: undefined;
207700
+ };
206325
207701
  release_local_pdf_job: {
206326
207702
  Args: {
206327
207703
  _job_id: string;
@@ -207010,6 +208386,14 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
207010
208386
  row_count: number;
207011
208387
  }[];
207012
208388
  };
208389
+ try_acquire_job_lock: {
208390
+ Args: {
208391
+ _key: string;
208392
+ _owner?: string;
208393
+ _seconds?: number;
208394
+ };
208395
+ Returns: boolean;
208396
+ };
207013
208397
  try_debtor_lock: {
207014
208398
  Args: {
207015
208399
  _group_key: string;
@@ -209314,6 +210698,8 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
209314
210698
  created_at: string;
209315
210699
  currency: string;
209316
210700
  distribute_over: string | null;
210701
+ external_id: string | null;
210702
+ external_synced_at: string | null;
209317
210703
  group_type: string;
209318
210704
  handling_fee: number | null;
209319
210705
  id: string;
@@ -209326,6 +210712,7 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
209326
210712
  rounding: string;
209327
210713
  rounding_step: number;
209328
210714
  sort_order: number;
210715
+ source: string;
209329
210716
  unit: string;
209330
210717
  updated_at: string;
209331
210718
  };
@@ -209336,6 +210723,8 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
209336
210723
  created_at?: string;
209337
210724
  currency?: string;
209338
210725
  distribute_over?: string | null;
210726
+ external_id?: string | null;
210727
+ external_synced_at?: string | null;
209339
210728
  group_type?: string;
209340
210729
  handling_fee?: number | null;
209341
210730
  id?: string;
@@ -209348,6 +210737,7 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
209348
210737
  rounding?: string;
209349
210738
  rounding_step?: number;
209350
210739
  sort_order?: number;
210740
+ source?: string;
209351
210741
  unit?: string;
209352
210742
  updated_at?: string;
209353
210743
  };
@@ -209358,6 +210748,8 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
209358
210748
  created_at?: string;
209359
210749
  currency?: string;
209360
210750
  distribute_over?: string | null;
210751
+ external_id?: string | null;
210752
+ external_synced_at?: string | null;
209361
210753
  group_type?: string;
209362
210754
  handling_fee?: number | null;
209363
210755
  id?: string;
@@ -209370,6 +210762,7 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
209370
210762
  rounding?: string;
209371
210763
  rounding_step?: number;
209372
210764
  sort_order?: number;
210765
+ source?: string;
209373
210766
  unit?: string;
209374
210767
  updated_at?: string;
209375
210768
  };
@@ -216233,6 +217626,30 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
216233
217626
  referencedColumns: ["id"];
216234
217627
  }];
216235
217628
  };
217629
+ job_locks: {
217630
+ Row: {
217631
+ created_at: string;
217632
+ lock_key: string;
217633
+ locked_until: string;
217634
+ owner: string | null;
217635
+ updated_at: string;
217636
+ };
217637
+ Insert: {
217638
+ created_at?: string;
217639
+ lock_key: string;
217640
+ locked_until: string;
217641
+ owner?: string | null;
217642
+ updated_at?: string;
217643
+ };
217644
+ Update: {
217645
+ created_at?: string;
217646
+ lock_key?: string;
217647
+ locked_until?: string;
217648
+ owner?: string | null;
217649
+ updated_at?: string;
217650
+ };
217651
+ Relationships: [];
217652
+ };
216236
217653
  layout_logos: {
216237
217654
  Row: {
216238
217655
  bestand_url: string;
@@ -217395,6 +218812,7 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
217395
218812
  next_attempt_at: string;
217396
218813
  order_id: string;
217397
218814
  reason: string;
218815
+ reason_code: string | null;
217398
218816
  status: string;
217399
218817
  updated_at: string;
217400
218818
  };
@@ -217407,6 +218825,7 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
217407
218825
  next_attempt_at?: string;
217408
218826
  order_id: string;
217409
218827
  reason?: string;
218828
+ reason_code?: string | null;
217410
218829
  status?: string;
217411
218830
  updated_at?: string;
217412
218831
  };
@@ -217419,6 +218838,7 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
217419
218838
  next_attempt_at?: string;
217420
218839
  order_id?: string;
217421
218840
  reason?: string;
218841
+ reason_code?: string | null;
217422
218842
  status?: string;
217423
218843
  updated_at?: string;
217424
218844
  };
@@ -218123,6 +219543,21 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
218123
219543
  referencedColumns: ["id"];
218124
219544
  }];
218125
219545
  };
219546
+ logistics_tick_heartbeat: {
219547
+ Row: {
219548
+ id: boolean;
219549
+ last_tick_at: string;
219550
+ };
219551
+ Insert: {
219552
+ id?: boolean;
219553
+ last_tick_at?: string;
219554
+ };
219555
+ Update: {
219556
+ id?: boolean;
219557
+ last_tick_at?: string;
219558
+ };
219559
+ Relationships: [];
219560
+ };
218126
219561
  logistics_variables: {
218127
219562
  Row: {
218128
219563
  created_at: string;
@@ -230005,6 +231440,30 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
230005
231440
  };
230006
231441
  Returns: import("../integrations/supabase/types").Json;
230007
231442
  };
231443
+ logistics_block_reason_code: {
231444
+ Args: {
231445
+ p_details?: import("../integrations/supabase/types").Json;
231446
+ p_reason: string;
231447
+ };
231448
+ Returns: string;
231449
+ };
231450
+ logistics_blocked_orders: {
231451
+ Args: never;
231452
+ Returns: {
231453
+ attempts: number;
231454
+ blocked_since: string;
231455
+ delivery_date: string;
231456
+ order_id: string;
231457
+ order_ref: string;
231458
+ queue_id: string;
231459
+ reason: string;
231460
+ reason_code: string;
231461
+ }[];
231462
+ };
231463
+ logistics_blocked_overview: {
231464
+ Args: never;
231465
+ Returns: import("../integrations/supabase/types").Json;
231466
+ };
230008
231467
  logistics_buffer_criteria: {
230009
231468
  Args: {
230010
231469
  p_settings: import("../integrations/supabase/types").Json;
@@ -230019,6 +231478,39 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
230019
231478
  };
230020
231479
  Returns: import("../integrations/supabase/types").Json;
230021
231480
  };
231481
+ logistics_buffer_detach_late_orders: {
231482
+ Args: {
231483
+ p_buffer?: string;
231484
+ };
231485
+ Returns: import("../integrations/supabase/types").Json;
231486
+ };
231487
+ logistics_buffer_frozen_order: {
231488
+ Args: {
231489
+ p_order_id: string;
231490
+ };
231491
+ Returns: boolean;
231492
+ };
231493
+ logistics_buffer_handled: {
231494
+ Args: {
231495
+ p_buffer: string;
231496
+ };
231497
+ Returns: boolean;
231498
+ };
231499
+ logistics_buffer_notify: {
231500
+ Args: {
231501
+ p_event_type: string;
231502
+ p_idempotency_key: string;
231503
+ p_order_ref: string;
231504
+ p_payload: import("../integrations/supabase/types").Json;
231505
+ };
231506
+ Returns: string;
231507
+ };
231508
+ logistics_buffer_open_key: {
231509
+ Args: {
231510
+ p_base_key: string;
231511
+ };
231512
+ Returns: string;
231513
+ };
230022
231514
  logistics_buffer_simulate: {
230023
231515
  Args: {
230024
231516
  p_orders?: import("../integrations/supabase/types").Json;
@@ -230108,6 +231600,25 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
230108
231600
  Args: never;
230109
231601
  Returns: import("../integrations/supabase/types").Json;
230110
231602
  };
231603
+ logistics_cart_plan_overview: {
231604
+ Args: {
231605
+ p_days?: number;
231606
+ };
231607
+ Returns: {
231608
+ cart_total: number;
231609
+ delivery_date: string;
231610
+ order_ref: string;
231611
+ plan_ready: boolean;
231612
+ reason: string;
231613
+ released: boolean;
231614
+ }[];
231615
+ };
231616
+ logistics_cart_plan_status: {
231617
+ Args: {
231618
+ p_ref: string;
231619
+ };
231620
+ Returns: import("../integrations/supabase/types").Json;
231621
+ };
230111
231622
  logistics_cart_seq: {
230112
231623
  Args: {
230113
231624
  p_order_uuid?: string;
@@ -230641,6 +232152,12 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
230641
232152
  };
230642
232153
  Returns: boolean;
230643
232154
  };
232155
+ logistics_link_order_items: {
232156
+ Args: {
232157
+ p_order?: string;
232158
+ };
232159
+ Returns: import("../integrations/supabase/types").Json;
232160
+ };
230644
232161
  logistics_live_carriers: {
230645
232162
  Args: {
230646
232163
  p_order_ref: string;
@@ -230667,6 +232184,12 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
230667
232184
  };
230668
232185
  Returns: string;
230669
232186
  };
232187
+ logistics_normalize_product_label: {
232188
+ Args: {
232189
+ p_label: string;
232190
+ };
232191
+ Returns: string;
232192
+ };
230670
232193
  logistics_not_past: {
230671
232194
  Args: {
230672
232195
  p_ts: string;
@@ -230855,6 +232378,12 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
230855
232378
  Args: never;
230856
232379
  Returns: number;
230857
232380
  };
232381
+ logistics_plan_retry: {
232382
+ Args: {
232383
+ p_order_ids: string[];
232384
+ };
232385
+ Returns: number;
232386
+ };
230858
232387
  logistics_plan_setting: {
230859
232388
  Args: {
230860
232389
  p_default: number;
@@ -230961,6 +232490,12 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
230961
232490
  };
230962
232491
  Returns: import("../integrations/supabase/types").Json;
230963
232492
  };
232493
+ logistics_resolve_product_id: {
232494
+ Args: {
232495
+ p_label: string;
232496
+ };
232497
+ Returns: string;
232498
+ };
230964
232499
  logistics_resolve_settings: {
230965
232500
  Args: {
230966
232501
  p_config_id: string;
@@ -231090,6 +232625,10 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
231090
232625
  };
231091
232626
  Returns: number;
231092
232627
  };
232628
+ logistics_tick_ping: {
232629
+ Args: never;
232630
+ Returns: string;
232631
+ };
231093
232632
  logistics_upsert_task: {
231094
232633
  Args: {
231095
232634
  p_buffer_ref: string;
@@ -231657,6 +233196,10 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
231657
233196
  };
231658
233197
  Returns: undefined;
231659
233198
  };
233199
+ pick_report_missing_cart_plan: {
233200
+ Args: never;
233201
+ Returns: import("../integrations/supabase/types").Json;
233202
+ };
231660
233203
  pick_reprint_cart: {
231661
233204
  Args: {
231662
233205
  _cart_id: string;
@@ -232197,6 +233740,12 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
232197
233740
  };
232198
233741
  Returns: boolean;
232199
233742
  };
233743
+ release_job_lock: {
233744
+ Args: {
233745
+ _key: string;
233746
+ };
233747
+ Returns: undefined;
233748
+ };
232200
233749
  release_local_pdf_job: {
232201
233750
  Args: {
232202
233751
  _job_id: string;
@@ -232885,6 +234434,14 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
232885
234434
  row_count: number;
232886
234435
  }[];
232887
234436
  };
234437
+ try_acquire_job_lock: {
234438
+ Args: {
234439
+ _key: string;
234440
+ _owner?: string;
234441
+ _seconds?: number;
234442
+ };
234443
+ Returns: boolean;
234444
+ };
232888
234445
  try_debtor_lock: {
232889
234446
  Args: {
232890
234447
  _group_key: string;
@@ -235192,6 +236749,8 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
235192
236749
  created_at: string;
235193
236750
  currency: string;
235194
236751
  distribute_over: string | null;
236752
+ external_id: string | null;
236753
+ external_synced_at: string | null;
235195
236754
  group_type: string;
235196
236755
  handling_fee: number | null;
235197
236756
  id: string;
@@ -235204,6 +236763,7 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
235204
236763
  rounding: string;
235205
236764
  rounding_step: number;
235206
236765
  sort_order: number;
236766
+ source: string;
235207
236767
  unit: string;
235208
236768
  updated_at: string;
235209
236769
  };
@@ -235214,6 +236774,8 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
235214
236774
  created_at?: string;
235215
236775
  currency?: string;
235216
236776
  distribute_over?: string | null;
236777
+ external_id?: string | null;
236778
+ external_synced_at?: string | null;
235217
236779
  group_type?: string;
235218
236780
  handling_fee?: number | null;
235219
236781
  id?: string;
@@ -235226,6 +236788,7 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
235226
236788
  rounding?: string;
235227
236789
  rounding_step?: number;
235228
236790
  sort_order?: number;
236791
+ source?: string;
235229
236792
  unit?: string;
235230
236793
  updated_at?: string;
235231
236794
  };
@@ -235236,6 +236799,8 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
235236
236799
  created_at?: string;
235237
236800
  currency?: string;
235238
236801
  distribute_over?: string | null;
236802
+ external_id?: string | null;
236803
+ external_synced_at?: string | null;
235239
236804
  group_type?: string;
235240
236805
  handling_fee?: number | null;
235241
236806
  id?: string;
@@ -235248,6 +236813,7 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
235248
236813
  rounding?: string;
235249
236814
  rounding_step?: number;
235250
236815
  sort_order?: number;
236816
+ source?: string;
235251
236817
  unit?: string;
235252
236818
  updated_at?: string;
235253
236819
  };
@@ -242111,6 +243677,30 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
242111
243677
  referencedColumns: ["id"];
242112
243678
  }];
242113
243679
  };
243680
+ job_locks: {
243681
+ Row: {
243682
+ created_at: string;
243683
+ lock_key: string;
243684
+ locked_until: string;
243685
+ owner: string | null;
243686
+ updated_at: string;
243687
+ };
243688
+ Insert: {
243689
+ created_at?: string;
243690
+ lock_key: string;
243691
+ locked_until: string;
243692
+ owner?: string | null;
243693
+ updated_at?: string;
243694
+ };
243695
+ Update: {
243696
+ created_at?: string;
243697
+ lock_key?: string;
243698
+ locked_until?: string;
243699
+ owner?: string | null;
243700
+ updated_at?: string;
243701
+ };
243702
+ Relationships: [];
243703
+ };
242114
243704
  layout_logos: {
242115
243705
  Row: {
242116
243706
  bestand_url: string;
@@ -243273,6 +244863,7 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
243273
244863
  next_attempt_at: string;
243274
244864
  order_id: string;
243275
244865
  reason: string;
244866
+ reason_code: string | null;
243276
244867
  status: string;
243277
244868
  updated_at: string;
243278
244869
  };
@@ -243285,6 +244876,7 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
243285
244876
  next_attempt_at?: string;
243286
244877
  order_id: string;
243287
244878
  reason?: string;
244879
+ reason_code?: string | null;
243288
244880
  status?: string;
243289
244881
  updated_at?: string;
243290
244882
  };
@@ -243297,6 +244889,7 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
243297
244889
  next_attempt_at?: string;
243298
244890
  order_id?: string;
243299
244891
  reason?: string;
244892
+ reason_code?: string | null;
243300
244893
  status?: string;
243301
244894
  updated_at?: string;
243302
244895
  };
@@ -244001,6 +245594,21 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
244001
245594
  referencedColumns: ["id"];
244002
245595
  }];
244003
245596
  };
245597
+ logistics_tick_heartbeat: {
245598
+ Row: {
245599
+ id: boolean;
245600
+ last_tick_at: string;
245601
+ };
245602
+ Insert: {
245603
+ id?: boolean;
245604
+ last_tick_at?: string;
245605
+ };
245606
+ Update: {
245607
+ id?: boolean;
245608
+ last_tick_at?: string;
245609
+ };
245610
+ Relationships: [];
245611
+ };
244004
245612
  logistics_variables: {
244005
245613
  Row: {
244006
245614
  created_at: string;
@@ -255883,6 +257491,30 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
255883
257491
  };
255884
257492
  Returns: import("../integrations/supabase/types").Json;
255885
257493
  };
257494
+ logistics_block_reason_code: {
257495
+ Args: {
257496
+ p_details?: import("../integrations/supabase/types").Json;
257497
+ p_reason: string;
257498
+ };
257499
+ Returns: string;
257500
+ };
257501
+ logistics_blocked_orders: {
257502
+ Args: never;
257503
+ Returns: {
257504
+ attempts: number;
257505
+ blocked_since: string;
257506
+ delivery_date: string;
257507
+ order_id: string;
257508
+ order_ref: string;
257509
+ queue_id: string;
257510
+ reason: string;
257511
+ reason_code: string;
257512
+ }[];
257513
+ };
257514
+ logistics_blocked_overview: {
257515
+ Args: never;
257516
+ Returns: import("../integrations/supabase/types").Json;
257517
+ };
255886
257518
  logistics_buffer_criteria: {
255887
257519
  Args: {
255888
257520
  p_settings: import("../integrations/supabase/types").Json;
@@ -255897,6 +257529,39 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
255897
257529
  };
255898
257530
  Returns: import("../integrations/supabase/types").Json;
255899
257531
  };
257532
+ logistics_buffer_detach_late_orders: {
257533
+ Args: {
257534
+ p_buffer?: string;
257535
+ };
257536
+ Returns: import("../integrations/supabase/types").Json;
257537
+ };
257538
+ logistics_buffer_frozen_order: {
257539
+ Args: {
257540
+ p_order_id: string;
257541
+ };
257542
+ Returns: boolean;
257543
+ };
257544
+ logistics_buffer_handled: {
257545
+ Args: {
257546
+ p_buffer: string;
257547
+ };
257548
+ Returns: boolean;
257549
+ };
257550
+ logistics_buffer_notify: {
257551
+ Args: {
257552
+ p_event_type: string;
257553
+ p_idempotency_key: string;
257554
+ p_order_ref: string;
257555
+ p_payload: import("../integrations/supabase/types").Json;
257556
+ };
257557
+ Returns: string;
257558
+ };
257559
+ logistics_buffer_open_key: {
257560
+ Args: {
257561
+ p_base_key: string;
257562
+ };
257563
+ Returns: string;
257564
+ };
255900
257565
  logistics_buffer_simulate: {
255901
257566
  Args: {
255902
257567
  p_orders?: import("../integrations/supabase/types").Json;
@@ -255986,6 +257651,25 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
255986
257651
  Args: never;
255987
257652
  Returns: import("../integrations/supabase/types").Json;
255988
257653
  };
257654
+ logistics_cart_plan_overview: {
257655
+ Args: {
257656
+ p_days?: number;
257657
+ };
257658
+ Returns: {
257659
+ cart_total: number;
257660
+ delivery_date: string;
257661
+ order_ref: string;
257662
+ plan_ready: boolean;
257663
+ reason: string;
257664
+ released: boolean;
257665
+ }[];
257666
+ };
257667
+ logistics_cart_plan_status: {
257668
+ Args: {
257669
+ p_ref: string;
257670
+ };
257671
+ Returns: import("../integrations/supabase/types").Json;
257672
+ };
255989
257673
  logistics_cart_seq: {
255990
257674
  Args: {
255991
257675
  p_order_uuid?: string;
@@ -256519,6 +258203,12 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
256519
258203
  };
256520
258204
  Returns: boolean;
256521
258205
  };
258206
+ logistics_link_order_items: {
258207
+ Args: {
258208
+ p_order?: string;
258209
+ };
258210
+ Returns: import("../integrations/supabase/types").Json;
258211
+ };
256522
258212
  logistics_live_carriers: {
256523
258213
  Args: {
256524
258214
  p_order_ref: string;
@@ -256545,6 +258235,12 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
256545
258235
  };
256546
258236
  Returns: string;
256547
258237
  };
258238
+ logistics_normalize_product_label: {
258239
+ Args: {
258240
+ p_label: string;
258241
+ };
258242
+ Returns: string;
258243
+ };
256548
258244
  logistics_not_past: {
256549
258245
  Args: {
256550
258246
  p_ts: string;
@@ -256733,6 +258429,12 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
256733
258429
  Args: never;
256734
258430
  Returns: number;
256735
258431
  };
258432
+ logistics_plan_retry: {
258433
+ Args: {
258434
+ p_order_ids: string[];
258435
+ };
258436
+ Returns: number;
258437
+ };
256736
258438
  logistics_plan_setting: {
256737
258439
  Args: {
256738
258440
  p_default: number;
@@ -256839,6 +258541,12 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
256839
258541
  };
256840
258542
  Returns: import("../integrations/supabase/types").Json;
256841
258543
  };
258544
+ logistics_resolve_product_id: {
258545
+ Args: {
258546
+ p_label: string;
258547
+ };
258548
+ Returns: string;
258549
+ };
256842
258550
  logistics_resolve_settings: {
256843
258551
  Args: {
256844
258552
  p_config_id: string;
@@ -256968,6 +258676,10 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
256968
258676
  };
256969
258677
  Returns: number;
256970
258678
  };
258679
+ logistics_tick_ping: {
258680
+ Args: never;
258681
+ Returns: string;
258682
+ };
256971
258683
  logistics_upsert_task: {
256972
258684
  Args: {
256973
258685
  p_buffer_ref: string;
@@ -257535,6 +259247,10 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
257535
259247
  };
257536
259248
  Returns: undefined;
257537
259249
  };
259250
+ pick_report_missing_cart_plan: {
259251
+ Args: never;
259252
+ Returns: import("../integrations/supabase/types").Json;
259253
+ };
257538
259254
  pick_reprint_cart: {
257539
259255
  Args: {
257540
259256
  _cart_id: string;
@@ -258075,6 +259791,12 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
258075
259791
  };
258076
259792
  Returns: boolean;
258077
259793
  };
259794
+ release_job_lock: {
259795
+ Args: {
259796
+ _key: string;
259797
+ };
259798
+ Returns: undefined;
259799
+ };
258078
259800
  release_local_pdf_job: {
258079
259801
  Args: {
258080
259802
  _job_id: string;
@@ -258763,6 +260485,14 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
258763
260485
  row_count: number;
258764
260486
  }[];
258765
260487
  };
260488
+ try_acquire_job_lock: {
260489
+ Args: {
260490
+ _key: string;
260491
+ _owner?: string;
260492
+ _seconds?: number;
260493
+ };
260494
+ Returns: boolean;
260495
+ };
258766
260496
  try_debtor_lock: {
258767
260497
  Args: {
258768
260498
  _group_key: string;
@@ -261078,6 +262808,8 @@ export declare const listDeliveredToday: import("@tanstack/start-client-core").O
261078
262808
  created_at: string;
261079
262809
  currency: string;
261080
262810
  distribute_over: string | null;
262811
+ external_id: string | null;
262812
+ external_synced_at: string | null;
261081
262813
  group_type: string;
261082
262814
  handling_fee: number | null;
261083
262815
  id: string;
@@ -261090,6 +262822,7 @@ export declare const listDeliveredToday: import("@tanstack/start-client-core").O
261090
262822
  rounding: string;
261091
262823
  rounding_step: number;
261092
262824
  sort_order: number;
262825
+ source: string;
261093
262826
  unit: string;
261094
262827
  updated_at: string;
261095
262828
  };
@@ -261100,6 +262833,8 @@ export declare const listDeliveredToday: import("@tanstack/start-client-core").O
261100
262833
  created_at?: string;
261101
262834
  currency?: string;
261102
262835
  distribute_over?: string | null;
262836
+ external_id?: string | null;
262837
+ external_synced_at?: string | null;
261103
262838
  group_type?: string;
261104
262839
  handling_fee?: number | null;
261105
262840
  id?: string;
@@ -261112,6 +262847,7 @@ export declare const listDeliveredToday: import("@tanstack/start-client-core").O
261112
262847
  rounding?: string;
261113
262848
  rounding_step?: number;
261114
262849
  sort_order?: number;
262850
+ source?: string;
261115
262851
  unit?: string;
261116
262852
  updated_at?: string;
261117
262853
  };
@@ -261122,6 +262858,8 @@ export declare const listDeliveredToday: import("@tanstack/start-client-core").O
261122
262858
  created_at?: string;
261123
262859
  currency?: string;
261124
262860
  distribute_over?: string | null;
262861
+ external_id?: string | null;
262862
+ external_synced_at?: string | null;
261125
262863
  group_type?: string;
261126
262864
  handling_fee?: number | null;
261127
262865
  id?: string;
@@ -261134,6 +262872,7 @@ export declare const listDeliveredToday: import("@tanstack/start-client-core").O
261134
262872
  rounding?: string;
261135
262873
  rounding_step?: number;
261136
262874
  sort_order?: number;
262875
+ source?: string;
261137
262876
  unit?: string;
261138
262877
  updated_at?: string;
261139
262878
  };
@@ -267997,6 +269736,30 @@ export declare const listDeliveredToday: import("@tanstack/start-client-core").O
267997
269736
  referencedColumns: ["id"];
267998
269737
  }];
267999
269738
  };
269739
+ job_locks: {
269740
+ Row: {
269741
+ created_at: string;
269742
+ lock_key: string;
269743
+ locked_until: string;
269744
+ owner: string | null;
269745
+ updated_at: string;
269746
+ };
269747
+ Insert: {
269748
+ created_at?: string;
269749
+ lock_key: string;
269750
+ locked_until: string;
269751
+ owner?: string | null;
269752
+ updated_at?: string;
269753
+ };
269754
+ Update: {
269755
+ created_at?: string;
269756
+ lock_key?: string;
269757
+ locked_until?: string;
269758
+ owner?: string | null;
269759
+ updated_at?: string;
269760
+ };
269761
+ Relationships: [];
269762
+ };
268000
269763
  layout_logos: {
268001
269764
  Row: {
268002
269765
  bestand_url: string;
@@ -269159,6 +270922,7 @@ export declare const listDeliveredToday: import("@tanstack/start-client-core").O
269159
270922
  next_attempt_at: string;
269160
270923
  order_id: string;
269161
270924
  reason: string;
270925
+ reason_code: string | null;
269162
270926
  status: string;
269163
270927
  updated_at: string;
269164
270928
  };
@@ -269171,6 +270935,7 @@ export declare const listDeliveredToday: import("@tanstack/start-client-core").O
269171
270935
  next_attempt_at?: string;
269172
270936
  order_id: string;
269173
270937
  reason?: string;
270938
+ reason_code?: string | null;
269174
270939
  status?: string;
269175
270940
  updated_at?: string;
269176
270941
  };
@@ -269183,6 +270948,7 @@ export declare const listDeliveredToday: import("@tanstack/start-client-core").O
269183
270948
  next_attempt_at?: string;
269184
270949
  order_id?: string;
269185
270950
  reason?: string;
270951
+ reason_code?: string | null;
269186
270952
  status?: string;
269187
270953
  updated_at?: string;
269188
270954
  };
@@ -269887,6 +271653,21 @@ export declare const listDeliveredToday: import("@tanstack/start-client-core").O
269887
271653
  referencedColumns: ["id"];
269888
271654
  }];
269889
271655
  };
271656
+ logistics_tick_heartbeat: {
271657
+ Row: {
271658
+ id: boolean;
271659
+ last_tick_at: string;
271660
+ };
271661
+ Insert: {
271662
+ id?: boolean;
271663
+ last_tick_at?: string;
271664
+ };
271665
+ Update: {
271666
+ id?: boolean;
271667
+ last_tick_at?: string;
271668
+ };
271669
+ Relationships: [];
271670
+ };
269890
271671
  logistics_variables: {
269891
271672
  Row: {
269892
271673
  created_at: string;
@@ -281769,6 +283550,30 @@ export declare const listDeliveredToday: import("@tanstack/start-client-core").O
281769
283550
  };
281770
283551
  Returns: import("../integrations/supabase/types").Json;
281771
283552
  };
283553
+ logistics_block_reason_code: {
283554
+ Args: {
283555
+ p_details?: import("../integrations/supabase/types").Json;
283556
+ p_reason: string;
283557
+ };
283558
+ Returns: string;
283559
+ };
283560
+ logistics_blocked_orders: {
283561
+ Args: never;
283562
+ Returns: {
283563
+ attempts: number;
283564
+ blocked_since: string;
283565
+ delivery_date: string;
283566
+ order_id: string;
283567
+ order_ref: string;
283568
+ queue_id: string;
283569
+ reason: string;
283570
+ reason_code: string;
283571
+ }[];
283572
+ };
283573
+ logistics_blocked_overview: {
283574
+ Args: never;
283575
+ Returns: import("../integrations/supabase/types").Json;
283576
+ };
281772
283577
  logistics_buffer_criteria: {
281773
283578
  Args: {
281774
283579
  p_settings: import("../integrations/supabase/types").Json;
@@ -281783,6 +283588,39 @@ export declare const listDeliveredToday: import("@tanstack/start-client-core").O
281783
283588
  };
281784
283589
  Returns: import("../integrations/supabase/types").Json;
281785
283590
  };
283591
+ logistics_buffer_detach_late_orders: {
283592
+ Args: {
283593
+ p_buffer?: string;
283594
+ };
283595
+ Returns: import("../integrations/supabase/types").Json;
283596
+ };
283597
+ logistics_buffer_frozen_order: {
283598
+ Args: {
283599
+ p_order_id: string;
283600
+ };
283601
+ Returns: boolean;
283602
+ };
283603
+ logistics_buffer_handled: {
283604
+ Args: {
283605
+ p_buffer: string;
283606
+ };
283607
+ Returns: boolean;
283608
+ };
283609
+ logistics_buffer_notify: {
283610
+ Args: {
283611
+ p_event_type: string;
283612
+ p_idempotency_key: string;
283613
+ p_order_ref: string;
283614
+ p_payload: import("../integrations/supabase/types").Json;
283615
+ };
283616
+ Returns: string;
283617
+ };
283618
+ logistics_buffer_open_key: {
283619
+ Args: {
283620
+ p_base_key: string;
283621
+ };
283622
+ Returns: string;
283623
+ };
281786
283624
  logistics_buffer_simulate: {
281787
283625
  Args: {
281788
283626
  p_orders?: import("../integrations/supabase/types").Json;
@@ -281872,6 +283710,25 @@ export declare const listDeliveredToday: import("@tanstack/start-client-core").O
281872
283710
  Args: never;
281873
283711
  Returns: import("../integrations/supabase/types").Json;
281874
283712
  };
283713
+ logistics_cart_plan_overview: {
283714
+ Args: {
283715
+ p_days?: number;
283716
+ };
283717
+ Returns: {
283718
+ cart_total: number;
283719
+ delivery_date: string;
283720
+ order_ref: string;
283721
+ plan_ready: boolean;
283722
+ reason: string;
283723
+ released: boolean;
283724
+ }[];
283725
+ };
283726
+ logistics_cart_plan_status: {
283727
+ Args: {
283728
+ p_ref: string;
283729
+ };
283730
+ Returns: import("../integrations/supabase/types").Json;
283731
+ };
281875
283732
  logistics_cart_seq: {
281876
283733
  Args: {
281877
283734
  p_order_uuid?: string;
@@ -282405,6 +284262,12 @@ export declare const listDeliveredToday: import("@tanstack/start-client-core").O
282405
284262
  };
282406
284263
  Returns: boolean;
282407
284264
  };
284265
+ logistics_link_order_items: {
284266
+ Args: {
284267
+ p_order?: string;
284268
+ };
284269
+ Returns: import("../integrations/supabase/types").Json;
284270
+ };
282408
284271
  logistics_live_carriers: {
282409
284272
  Args: {
282410
284273
  p_order_ref: string;
@@ -282431,6 +284294,12 @@ export declare const listDeliveredToday: import("@tanstack/start-client-core").O
282431
284294
  };
282432
284295
  Returns: string;
282433
284296
  };
284297
+ logistics_normalize_product_label: {
284298
+ Args: {
284299
+ p_label: string;
284300
+ };
284301
+ Returns: string;
284302
+ };
282434
284303
  logistics_not_past: {
282435
284304
  Args: {
282436
284305
  p_ts: string;
@@ -282619,6 +284488,12 @@ export declare const listDeliveredToday: import("@tanstack/start-client-core").O
282619
284488
  Args: never;
282620
284489
  Returns: number;
282621
284490
  };
284491
+ logistics_plan_retry: {
284492
+ Args: {
284493
+ p_order_ids: string[];
284494
+ };
284495
+ Returns: number;
284496
+ };
282622
284497
  logistics_plan_setting: {
282623
284498
  Args: {
282624
284499
  p_default: number;
@@ -282725,6 +284600,12 @@ export declare const listDeliveredToday: import("@tanstack/start-client-core").O
282725
284600
  };
282726
284601
  Returns: import("../integrations/supabase/types").Json;
282727
284602
  };
284603
+ logistics_resolve_product_id: {
284604
+ Args: {
284605
+ p_label: string;
284606
+ };
284607
+ Returns: string;
284608
+ };
282728
284609
  logistics_resolve_settings: {
282729
284610
  Args: {
282730
284611
  p_config_id: string;
@@ -282854,6 +284735,10 @@ export declare const listDeliveredToday: import("@tanstack/start-client-core").O
282854
284735
  };
282855
284736
  Returns: number;
282856
284737
  };
284738
+ logistics_tick_ping: {
284739
+ Args: never;
284740
+ Returns: string;
284741
+ };
282857
284742
  logistics_upsert_task: {
282858
284743
  Args: {
282859
284744
  p_buffer_ref: string;
@@ -283421,6 +285306,10 @@ export declare const listDeliveredToday: import("@tanstack/start-client-core").O
283421
285306
  };
283422
285307
  Returns: undefined;
283423
285308
  };
285309
+ pick_report_missing_cart_plan: {
285310
+ Args: never;
285311
+ Returns: import("../integrations/supabase/types").Json;
285312
+ };
283424
285313
  pick_reprint_cart: {
283425
285314
  Args: {
283426
285315
  _cart_id: string;
@@ -283961,6 +285850,12 @@ export declare const listDeliveredToday: import("@tanstack/start-client-core").O
283961
285850
  };
283962
285851
  Returns: boolean;
283963
285852
  };
285853
+ release_job_lock: {
285854
+ Args: {
285855
+ _key: string;
285856
+ };
285857
+ Returns: undefined;
285858
+ };
283964
285859
  release_local_pdf_job: {
283965
285860
  Args: {
283966
285861
  _job_id: string;
@@ -284649,6 +286544,14 @@ export declare const listDeliveredToday: import("@tanstack/start-client-core").O
284649
286544
  row_count: number;
284650
286545
  }[];
284651
286546
  };
286547
+ try_acquire_job_lock: {
286548
+ Args: {
286549
+ _key: string;
286550
+ _owner?: string;
286551
+ _seconds?: number;
286552
+ };
286553
+ Returns: boolean;
286554
+ };
284652
286555
  try_debtor_lock: {
284653
286556
  Args: {
284654
286557
  _group_key: string;