@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
@@ -2167,6 +2167,8 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
2167
2167
  created_at: string;
2168
2168
  currency: string;
2169
2169
  distribute_over: string | null;
2170
+ external_id: string | null;
2171
+ external_synced_at: string | null;
2170
2172
  group_type: string;
2171
2173
  handling_fee: number | null;
2172
2174
  id: string;
@@ -2179,6 +2181,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
2179
2181
  rounding: string;
2180
2182
  rounding_step: number;
2181
2183
  sort_order: number;
2184
+ source: string;
2182
2185
  unit: string;
2183
2186
  updated_at: string;
2184
2187
  };
@@ -2189,6 +2192,8 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
2189
2192
  created_at?: string;
2190
2193
  currency?: string;
2191
2194
  distribute_over?: string | null;
2195
+ external_id?: string | null;
2196
+ external_synced_at?: string | null;
2192
2197
  group_type?: string;
2193
2198
  handling_fee?: number | null;
2194
2199
  id?: string;
@@ -2201,6 +2206,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
2201
2206
  rounding?: string;
2202
2207
  rounding_step?: number;
2203
2208
  sort_order?: number;
2209
+ source?: string;
2204
2210
  unit?: string;
2205
2211
  updated_at?: string;
2206
2212
  };
@@ -2211,6 +2217,8 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
2211
2217
  created_at?: string;
2212
2218
  currency?: string;
2213
2219
  distribute_over?: string | null;
2220
+ external_id?: string | null;
2221
+ external_synced_at?: string | null;
2214
2222
  group_type?: string;
2215
2223
  handling_fee?: number | null;
2216
2224
  id?: string;
@@ -2223,6 +2231,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
2223
2231
  rounding?: string;
2224
2232
  rounding_step?: number;
2225
2233
  sort_order?: number;
2234
+ source?: string;
2226
2235
  unit?: string;
2227
2236
  updated_at?: string;
2228
2237
  };
@@ -9086,6 +9095,30 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
9086
9095
  referencedColumns: ["id"];
9087
9096
  }];
9088
9097
  };
9098
+ job_locks: {
9099
+ Row: {
9100
+ created_at: string;
9101
+ lock_key: string;
9102
+ locked_until: string;
9103
+ owner: string | null;
9104
+ updated_at: string;
9105
+ };
9106
+ Insert: {
9107
+ created_at?: string;
9108
+ lock_key: string;
9109
+ locked_until: string;
9110
+ owner?: string | null;
9111
+ updated_at?: string;
9112
+ };
9113
+ Update: {
9114
+ created_at?: string;
9115
+ lock_key?: string;
9116
+ locked_until?: string;
9117
+ owner?: string | null;
9118
+ updated_at?: string;
9119
+ };
9120
+ Relationships: [];
9121
+ };
9089
9122
  layout_logos: {
9090
9123
  Row: {
9091
9124
  bestand_url: string;
@@ -10248,6 +10281,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
10248
10281
  next_attempt_at: string;
10249
10282
  order_id: string;
10250
10283
  reason: string;
10284
+ reason_code: string | null;
10251
10285
  status: string;
10252
10286
  updated_at: string;
10253
10287
  };
@@ -10260,6 +10294,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
10260
10294
  next_attempt_at?: string;
10261
10295
  order_id: string;
10262
10296
  reason?: string;
10297
+ reason_code?: string | null;
10263
10298
  status?: string;
10264
10299
  updated_at?: string;
10265
10300
  };
@@ -10272,6 +10307,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
10272
10307
  next_attempt_at?: string;
10273
10308
  order_id?: string;
10274
10309
  reason?: string;
10310
+ reason_code?: string | null;
10275
10311
  status?: string;
10276
10312
  updated_at?: string;
10277
10313
  };
@@ -10976,6 +11012,21 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
10976
11012
  referencedColumns: ["id"];
10977
11013
  }];
10978
11014
  };
11015
+ logistics_tick_heartbeat: {
11016
+ Row: {
11017
+ id: boolean;
11018
+ last_tick_at: string;
11019
+ };
11020
+ Insert: {
11021
+ id?: boolean;
11022
+ last_tick_at?: string;
11023
+ };
11024
+ Update: {
11025
+ id?: boolean;
11026
+ last_tick_at?: string;
11027
+ };
11028
+ Relationships: [];
11029
+ };
10979
11030
  logistics_variables: {
10980
11031
  Row: {
10981
11032
  created_at: string;
@@ -22858,6 +22909,30 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
22858
22909
  };
22859
22910
  Returns: import("../integrations/supabase/types").Json;
22860
22911
  };
22912
+ logistics_block_reason_code: {
22913
+ Args: {
22914
+ p_details?: import("../integrations/supabase/types").Json;
22915
+ p_reason: string;
22916
+ };
22917
+ Returns: string;
22918
+ };
22919
+ logistics_blocked_orders: {
22920
+ Args: never;
22921
+ Returns: {
22922
+ attempts: number;
22923
+ blocked_since: string;
22924
+ delivery_date: string;
22925
+ order_id: string;
22926
+ order_ref: string;
22927
+ queue_id: string;
22928
+ reason: string;
22929
+ reason_code: string;
22930
+ }[];
22931
+ };
22932
+ logistics_blocked_overview: {
22933
+ Args: never;
22934
+ Returns: import("../integrations/supabase/types").Json;
22935
+ };
22861
22936
  logistics_buffer_criteria: {
22862
22937
  Args: {
22863
22938
  p_settings: import("../integrations/supabase/types").Json;
@@ -22872,6 +22947,39 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
22872
22947
  };
22873
22948
  Returns: import("../integrations/supabase/types").Json;
22874
22949
  };
22950
+ logistics_buffer_detach_late_orders: {
22951
+ Args: {
22952
+ p_buffer?: string;
22953
+ };
22954
+ Returns: import("../integrations/supabase/types").Json;
22955
+ };
22956
+ logistics_buffer_frozen_order: {
22957
+ Args: {
22958
+ p_order_id: string;
22959
+ };
22960
+ Returns: boolean;
22961
+ };
22962
+ logistics_buffer_handled: {
22963
+ Args: {
22964
+ p_buffer: string;
22965
+ };
22966
+ Returns: boolean;
22967
+ };
22968
+ logistics_buffer_notify: {
22969
+ Args: {
22970
+ p_event_type: string;
22971
+ p_idempotency_key: string;
22972
+ p_order_ref: string;
22973
+ p_payload: import("../integrations/supabase/types").Json;
22974
+ };
22975
+ Returns: string;
22976
+ };
22977
+ logistics_buffer_open_key: {
22978
+ Args: {
22979
+ p_base_key: string;
22980
+ };
22981
+ Returns: string;
22982
+ };
22875
22983
  logistics_buffer_simulate: {
22876
22984
  Args: {
22877
22985
  p_orders?: import("../integrations/supabase/types").Json;
@@ -22961,6 +23069,25 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
22961
23069
  Args: never;
22962
23070
  Returns: import("../integrations/supabase/types").Json;
22963
23071
  };
23072
+ logistics_cart_plan_overview: {
23073
+ Args: {
23074
+ p_days?: number;
23075
+ };
23076
+ Returns: {
23077
+ cart_total: number;
23078
+ delivery_date: string;
23079
+ order_ref: string;
23080
+ plan_ready: boolean;
23081
+ reason: string;
23082
+ released: boolean;
23083
+ }[];
23084
+ };
23085
+ logistics_cart_plan_status: {
23086
+ Args: {
23087
+ p_ref: string;
23088
+ };
23089
+ Returns: import("../integrations/supabase/types").Json;
23090
+ };
22964
23091
  logistics_cart_seq: {
22965
23092
  Args: {
22966
23093
  p_order_uuid?: string;
@@ -23494,6 +23621,12 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
23494
23621
  };
23495
23622
  Returns: boolean;
23496
23623
  };
23624
+ logistics_link_order_items: {
23625
+ Args: {
23626
+ p_order?: string;
23627
+ };
23628
+ Returns: import("../integrations/supabase/types").Json;
23629
+ };
23497
23630
  logistics_live_carriers: {
23498
23631
  Args: {
23499
23632
  p_order_ref: string;
@@ -23520,6 +23653,12 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
23520
23653
  };
23521
23654
  Returns: string;
23522
23655
  };
23656
+ logistics_normalize_product_label: {
23657
+ Args: {
23658
+ p_label: string;
23659
+ };
23660
+ Returns: string;
23661
+ };
23523
23662
  logistics_not_past: {
23524
23663
  Args: {
23525
23664
  p_ts: string;
@@ -23708,6 +23847,12 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
23708
23847
  Args: never;
23709
23848
  Returns: number;
23710
23849
  };
23850
+ logistics_plan_retry: {
23851
+ Args: {
23852
+ p_order_ids: string[];
23853
+ };
23854
+ Returns: number;
23855
+ };
23711
23856
  logistics_plan_setting: {
23712
23857
  Args: {
23713
23858
  p_default: number;
@@ -23814,6 +23959,12 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
23814
23959
  };
23815
23960
  Returns: import("../integrations/supabase/types").Json;
23816
23961
  };
23962
+ logistics_resolve_product_id: {
23963
+ Args: {
23964
+ p_label: string;
23965
+ };
23966
+ Returns: string;
23967
+ };
23817
23968
  logistics_resolve_settings: {
23818
23969
  Args: {
23819
23970
  p_config_id: string;
@@ -23943,6 +24094,10 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
23943
24094
  };
23944
24095
  Returns: number;
23945
24096
  };
24097
+ logistics_tick_ping: {
24098
+ Args: never;
24099
+ Returns: string;
24100
+ };
23946
24101
  logistics_upsert_task: {
23947
24102
  Args: {
23948
24103
  p_buffer_ref: string;
@@ -24510,6 +24665,10 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
24510
24665
  };
24511
24666
  Returns: undefined;
24512
24667
  };
24668
+ pick_report_missing_cart_plan: {
24669
+ Args: never;
24670
+ Returns: import("../integrations/supabase/types").Json;
24671
+ };
24513
24672
  pick_reprint_cart: {
24514
24673
  Args: {
24515
24674
  _cart_id: string;
@@ -25050,6 +25209,12 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
25050
25209
  };
25051
25210
  Returns: boolean;
25052
25211
  };
25212
+ release_job_lock: {
25213
+ Args: {
25214
+ _key: string;
25215
+ };
25216
+ Returns: undefined;
25217
+ };
25053
25218
  release_local_pdf_job: {
25054
25219
  Args: {
25055
25220
  _job_id: string;
@@ -25738,6 +25903,14 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
25738
25903
  row_count: number;
25739
25904
  }[];
25740
25905
  };
25906
+ try_acquire_job_lock: {
25907
+ Args: {
25908
+ _key: string;
25909
+ _owner?: string;
25910
+ _seconds?: number;
25911
+ };
25912
+ Returns: boolean;
25913
+ };
25741
25914
  try_debtor_lock: {
25742
25915
  Args: {
25743
25916
  _group_key: string;
@@ -28051,6 +28224,8 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
28051
28224
  created_at: string;
28052
28225
  currency: string;
28053
28226
  distribute_over: string | null;
28227
+ external_id: string | null;
28228
+ external_synced_at: string | null;
28054
28229
  group_type: string;
28055
28230
  handling_fee: number | null;
28056
28231
  id: string;
@@ -28063,6 +28238,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
28063
28238
  rounding: string;
28064
28239
  rounding_step: number;
28065
28240
  sort_order: number;
28241
+ source: string;
28066
28242
  unit: string;
28067
28243
  updated_at: string;
28068
28244
  };
@@ -28073,6 +28249,8 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
28073
28249
  created_at?: string;
28074
28250
  currency?: string;
28075
28251
  distribute_over?: string | null;
28252
+ external_id?: string | null;
28253
+ external_synced_at?: string | null;
28076
28254
  group_type?: string;
28077
28255
  handling_fee?: number | null;
28078
28256
  id?: string;
@@ -28085,6 +28263,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
28085
28263
  rounding?: string;
28086
28264
  rounding_step?: number;
28087
28265
  sort_order?: number;
28266
+ source?: string;
28088
28267
  unit?: string;
28089
28268
  updated_at?: string;
28090
28269
  };
@@ -28095,6 +28274,8 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
28095
28274
  created_at?: string;
28096
28275
  currency?: string;
28097
28276
  distribute_over?: string | null;
28277
+ external_id?: string | null;
28278
+ external_synced_at?: string | null;
28098
28279
  group_type?: string;
28099
28280
  handling_fee?: number | null;
28100
28281
  id?: string;
@@ -28107,6 +28288,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
28107
28288
  rounding?: string;
28108
28289
  rounding_step?: number;
28109
28290
  sort_order?: number;
28291
+ source?: string;
28110
28292
  unit?: string;
28111
28293
  updated_at?: string;
28112
28294
  };
@@ -34970,6 +35152,30 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
34970
35152
  referencedColumns: ["id"];
34971
35153
  }];
34972
35154
  };
35155
+ job_locks: {
35156
+ Row: {
35157
+ created_at: string;
35158
+ lock_key: string;
35159
+ locked_until: string;
35160
+ owner: string | null;
35161
+ updated_at: string;
35162
+ };
35163
+ Insert: {
35164
+ created_at?: string;
35165
+ lock_key: string;
35166
+ locked_until: string;
35167
+ owner?: string | null;
35168
+ updated_at?: string;
35169
+ };
35170
+ Update: {
35171
+ created_at?: string;
35172
+ lock_key?: string;
35173
+ locked_until?: string;
35174
+ owner?: string | null;
35175
+ updated_at?: string;
35176
+ };
35177
+ Relationships: [];
35178
+ };
34973
35179
  layout_logos: {
34974
35180
  Row: {
34975
35181
  bestand_url: string;
@@ -36132,6 +36338,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
36132
36338
  next_attempt_at: string;
36133
36339
  order_id: string;
36134
36340
  reason: string;
36341
+ reason_code: string | null;
36135
36342
  status: string;
36136
36343
  updated_at: string;
36137
36344
  };
@@ -36144,6 +36351,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
36144
36351
  next_attempt_at?: string;
36145
36352
  order_id: string;
36146
36353
  reason?: string;
36354
+ reason_code?: string | null;
36147
36355
  status?: string;
36148
36356
  updated_at?: string;
36149
36357
  };
@@ -36156,6 +36364,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
36156
36364
  next_attempt_at?: string;
36157
36365
  order_id?: string;
36158
36366
  reason?: string;
36367
+ reason_code?: string | null;
36159
36368
  status?: string;
36160
36369
  updated_at?: string;
36161
36370
  };
@@ -36860,6 +37069,21 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
36860
37069
  referencedColumns: ["id"];
36861
37070
  }];
36862
37071
  };
37072
+ logistics_tick_heartbeat: {
37073
+ Row: {
37074
+ id: boolean;
37075
+ last_tick_at: string;
37076
+ };
37077
+ Insert: {
37078
+ id?: boolean;
37079
+ last_tick_at?: string;
37080
+ };
37081
+ Update: {
37082
+ id?: boolean;
37083
+ last_tick_at?: string;
37084
+ };
37085
+ Relationships: [];
37086
+ };
36863
37087
  logistics_variables: {
36864
37088
  Row: {
36865
37089
  created_at: string;
@@ -48742,6 +48966,30 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
48742
48966
  };
48743
48967
  Returns: import("../integrations/supabase/types").Json;
48744
48968
  };
48969
+ logistics_block_reason_code: {
48970
+ Args: {
48971
+ p_details?: import("../integrations/supabase/types").Json;
48972
+ p_reason: string;
48973
+ };
48974
+ Returns: string;
48975
+ };
48976
+ logistics_blocked_orders: {
48977
+ Args: never;
48978
+ Returns: {
48979
+ attempts: number;
48980
+ blocked_since: string;
48981
+ delivery_date: string;
48982
+ order_id: string;
48983
+ order_ref: string;
48984
+ queue_id: string;
48985
+ reason: string;
48986
+ reason_code: string;
48987
+ }[];
48988
+ };
48989
+ logistics_blocked_overview: {
48990
+ Args: never;
48991
+ Returns: import("../integrations/supabase/types").Json;
48992
+ };
48745
48993
  logistics_buffer_criteria: {
48746
48994
  Args: {
48747
48995
  p_settings: import("../integrations/supabase/types").Json;
@@ -48756,6 +49004,39 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
48756
49004
  };
48757
49005
  Returns: import("../integrations/supabase/types").Json;
48758
49006
  };
49007
+ logistics_buffer_detach_late_orders: {
49008
+ Args: {
49009
+ p_buffer?: string;
49010
+ };
49011
+ Returns: import("../integrations/supabase/types").Json;
49012
+ };
49013
+ logistics_buffer_frozen_order: {
49014
+ Args: {
49015
+ p_order_id: string;
49016
+ };
49017
+ Returns: boolean;
49018
+ };
49019
+ logistics_buffer_handled: {
49020
+ Args: {
49021
+ p_buffer: string;
49022
+ };
49023
+ Returns: boolean;
49024
+ };
49025
+ logistics_buffer_notify: {
49026
+ Args: {
49027
+ p_event_type: string;
49028
+ p_idempotency_key: string;
49029
+ p_order_ref: string;
49030
+ p_payload: import("../integrations/supabase/types").Json;
49031
+ };
49032
+ Returns: string;
49033
+ };
49034
+ logistics_buffer_open_key: {
49035
+ Args: {
49036
+ p_base_key: string;
49037
+ };
49038
+ Returns: string;
49039
+ };
48759
49040
  logistics_buffer_simulate: {
48760
49041
  Args: {
48761
49042
  p_orders?: import("../integrations/supabase/types").Json;
@@ -48845,6 +49126,25 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
48845
49126
  Args: never;
48846
49127
  Returns: import("../integrations/supabase/types").Json;
48847
49128
  };
49129
+ logistics_cart_plan_overview: {
49130
+ Args: {
49131
+ p_days?: number;
49132
+ };
49133
+ Returns: {
49134
+ cart_total: number;
49135
+ delivery_date: string;
49136
+ order_ref: string;
49137
+ plan_ready: boolean;
49138
+ reason: string;
49139
+ released: boolean;
49140
+ }[];
49141
+ };
49142
+ logistics_cart_plan_status: {
49143
+ Args: {
49144
+ p_ref: string;
49145
+ };
49146
+ Returns: import("../integrations/supabase/types").Json;
49147
+ };
48848
49148
  logistics_cart_seq: {
48849
49149
  Args: {
48850
49150
  p_order_uuid?: string;
@@ -49378,6 +49678,12 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
49378
49678
  };
49379
49679
  Returns: boolean;
49380
49680
  };
49681
+ logistics_link_order_items: {
49682
+ Args: {
49683
+ p_order?: string;
49684
+ };
49685
+ Returns: import("../integrations/supabase/types").Json;
49686
+ };
49381
49687
  logistics_live_carriers: {
49382
49688
  Args: {
49383
49689
  p_order_ref: string;
@@ -49404,6 +49710,12 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
49404
49710
  };
49405
49711
  Returns: string;
49406
49712
  };
49713
+ logistics_normalize_product_label: {
49714
+ Args: {
49715
+ p_label: string;
49716
+ };
49717
+ Returns: string;
49718
+ };
49407
49719
  logistics_not_past: {
49408
49720
  Args: {
49409
49721
  p_ts: string;
@@ -49592,6 +49904,12 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
49592
49904
  Args: never;
49593
49905
  Returns: number;
49594
49906
  };
49907
+ logistics_plan_retry: {
49908
+ Args: {
49909
+ p_order_ids: string[];
49910
+ };
49911
+ Returns: number;
49912
+ };
49595
49913
  logistics_plan_setting: {
49596
49914
  Args: {
49597
49915
  p_default: number;
@@ -49698,6 +50016,12 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
49698
50016
  };
49699
50017
  Returns: import("../integrations/supabase/types").Json;
49700
50018
  };
50019
+ logistics_resolve_product_id: {
50020
+ Args: {
50021
+ p_label: string;
50022
+ };
50023
+ Returns: string;
50024
+ };
49701
50025
  logistics_resolve_settings: {
49702
50026
  Args: {
49703
50027
  p_config_id: string;
@@ -49827,6 +50151,10 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
49827
50151
  };
49828
50152
  Returns: number;
49829
50153
  };
50154
+ logistics_tick_ping: {
50155
+ Args: never;
50156
+ Returns: string;
50157
+ };
49830
50158
  logistics_upsert_task: {
49831
50159
  Args: {
49832
50160
  p_buffer_ref: string;
@@ -50394,6 +50722,10 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
50394
50722
  };
50395
50723
  Returns: undefined;
50396
50724
  };
50725
+ pick_report_missing_cart_plan: {
50726
+ Args: never;
50727
+ Returns: import("../integrations/supabase/types").Json;
50728
+ };
50397
50729
  pick_reprint_cart: {
50398
50730
  Args: {
50399
50731
  _cart_id: string;
@@ -50934,6 +51266,12 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
50934
51266
  };
50935
51267
  Returns: boolean;
50936
51268
  };
51269
+ release_job_lock: {
51270
+ Args: {
51271
+ _key: string;
51272
+ };
51273
+ Returns: undefined;
51274
+ };
50937
51275
  release_local_pdf_job: {
50938
51276
  Args: {
50939
51277
  _job_id: string;
@@ -51622,6 +51960,14 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
51622
51960
  row_count: number;
51623
51961
  }[];
51624
51962
  };
51963
+ try_acquire_job_lock: {
51964
+ Args: {
51965
+ _key: string;
51966
+ _owner?: string;
51967
+ _seconds?: number;
51968
+ };
51969
+ Returns: boolean;
51970
+ };
51625
51971
  try_debtor_lock: {
51626
51972
  Args: {
51627
51973
  _group_key: string;
@@ -53929,6 +54275,8 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
53929
54275
  created_at: string;
53930
54276
  currency: string;
53931
54277
  distribute_over: string | null;
54278
+ external_id: string | null;
54279
+ external_synced_at: string | null;
53932
54280
  group_type: string;
53933
54281
  handling_fee: number | null;
53934
54282
  id: string;
@@ -53941,6 +54289,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
53941
54289
  rounding: string;
53942
54290
  rounding_step: number;
53943
54291
  sort_order: number;
54292
+ source: string;
53944
54293
  unit: string;
53945
54294
  updated_at: string;
53946
54295
  };
@@ -53951,6 +54300,8 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
53951
54300
  created_at?: string;
53952
54301
  currency?: string;
53953
54302
  distribute_over?: string | null;
54303
+ external_id?: string | null;
54304
+ external_synced_at?: string | null;
53954
54305
  group_type?: string;
53955
54306
  handling_fee?: number | null;
53956
54307
  id?: string;
@@ -53963,6 +54314,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
53963
54314
  rounding?: string;
53964
54315
  rounding_step?: number;
53965
54316
  sort_order?: number;
54317
+ source?: string;
53966
54318
  unit?: string;
53967
54319
  updated_at?: string;
53968
54320
  };
@@ -53973,6 +54325,8 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
53973
54325
  created_at?: string;
53974
54326
  currency?: string;
53975
54327
  distribute_over?: string | null;
54328
+ external_id?: string | null;
54329
+ external_synced_at?: string | null;
53976
54330
  group_type?: string;
53977
54331
  handling_fee?: number | null;
53978
54332
  id?: string;
@@ -53985,6 +54339,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
53985
54339
  rounding?: string;
53986
54340
  rounding_step?: number;
53987
54341
  sort_order?: number;
54342
+ source?: string;
53988
54343
  unit?: string;
53989
54344
  updated_at?: string;
53990
54345
  };
@@ -60848,6 +61203,30 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
60848
61203
  referencedColumns: ["id"];
60849
61204
  }];
60850
61205
  };
61206
+ job_locks: {
61207
+ Row: {
61208
+ created_at: string;
61209
+ lock_key: string;
61210
+ locked_until: string;
61211
+ owner: string | null;
61212
+ updated_at: string;
61213
+ };
61214
+ Insert: {
61215
+ created_at?: string;
61216
+ lock_key: string;
61217
+ locked_until: string;
61218
+ owner?: string | null;
61219
+ updated_at?: string;
61220
+ };
61221
+ Update: {
61222
+ created_at?: string;
61223
+ lock_key?: string;
61224
+ locked_until?: string;
61225
+ owner?: string | null;
61226
+ updated_at?: string;
61227
+ };
61228
+ Relationships: [];
61229
+ };
60851
61230
  layout_logos: {
60852
61231
  Row: {
60853
61232
  bestand_url: string;
@@ -62010,6 +62389,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
62010
62389
  next_attempt_at: string;
62011
62390
  order_id: string;
62012
62391
  reason: string;
62392
+ reason_code: string | null;
62013
62393
  status: string;
62014
62394
  updated_at: string;
62015
62395
  };
@@ -62022,6 +62402,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
62022
62402
  next_attempt_at?: string;
62023
62403
  order_id: string;
62024
62404
  reason?: string;
62405
+ reason_code?: string | null;
62025
62406
  status?: string;
62026
62407
  updated_at?: string;
62027
62408
  };
@@ -62034,6 +62415,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
62034
62415
  next_attempt_at?: string;
62035
62416
  order_id?: string;
62036
62417
  reason?: string;
62418
+ reason_code?: string | null;
62037
62419
  status?: string;
62038
62420
  updated_at?: string;
62039
62421
  };
@@ -62738,6 +63120,21 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
62738
63120
  referencedColumns: ["id"];
62739
63121
  }];
62740
63122
  };
63123
+ logistics_tick_heartbeat: {
63124
+ Row: {
63125
+ id: boolean;
63126
+ last_tick_at: string;
63127
+ };
63128
+ Insert: {
63129
+ id?: boolean;
63130
+ last_tick_at?: string;
63131
+ };
63132
+ Update: {
63133
+ id?: boolean;
63134
+ last_tick_at?: string;
63135
+ };
63136
+ Relationships: [];
63137
+ };
62741
63138
  logistics_variables: {
62742
63139
  Row: {
62743
63140
  created_at: string;
@@ -74620,6 +75017,30 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
74620
75017
  };
74621
75018
  Returns: import("../integrations/supabase/types").Json;
74622
75019
  };
75020
+ logistics_block_reason_code: {
75021
+ Args: {
75022
+ p_details?: import("../integrations/supabase/types").Json;
75023
+ p_reason: string;
75024
+ };
75025
+ Returns: string;
75026
+ };
75027
+ logistics_blocked_orders: {
75028
+ Args: never;
75029
+ Returns: {
75030
+ attempts: number;
75031
+ blocked_since: string;
75032
+ delivery_date: string;
75033
+ order_id: string;
75034
+ order_ref: string;
75035
+ queue_id: string;
75036
+ reason: string;
75037
+ reason_code: string;
75038
+ }[];
75039
+ };
75040
+ logistics_blocked_overview: {
75041
+ Args: never;
75042
+ Returns: import("../integrations/supabase/types").Json;
75043
+ };
74623
75044
  logistics_buffer_criteria: {
74624
75045
  Args: {
74625
75046
  p_settings: import("../integrations/supabase/types").Json;
@@ -74634,6 +75055,39 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
74634
75055
  };
74635
75056
  Returns: import("../integrations/supabase/types").Json;
74636
75057
  };
75058
+ logistics_buffer_detach_late_orders: {
75059
+ Args: {
75060
+ p_buffer?: string;
75061
+ };
75062
+ Returns: import("../integrations/supabase/types").Json;
75063
+ };
75064
+ logistics_buffer_frozen_order: {
75065
+ Args: {
75066
+ p_order_id: string;
75067
+ };
75068
+ Returns: boolean;
75069
+ };
75070
+ logistics_buffer_handled: {
75071
+ Args: {
75072
+ p_buffer: string;
75073
+ };
75074
+ Returns: boolean;
75075
+ };
75076
+ logistics_buffer_notify: {
75077
+ Args: {
75078
+ p_event_type: string;
75079
+ p_idempotency_key: string;
75080
+ p_order_ref: string;
75081
+ p_payload: import("../integrations/supabase/types").Json;
75082
+ };
75083
+ Returns: string;
75084
+ };
75085
+ logistics_buffer_open_key: {
75086
+ Args: {
75087
+ p_base_key: string;
75088
+ };
75089
+ Returns: string;
75090
+ };
74637
75091
  logistics_buffer_simulate: {
74638
75092
  Args: {
74639
75093
  p_orders?: import("../integrations/supabase/types").Json;
@@ -74723,6 +75177,25 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
74723
75177
  Args: never;
74724
75178
  Returns: import("../integrations/supabase/types").Json;
74725
75179
  };
75180
+ logistics_cart_plan_overview: {
75181
+ Args: {
75182
+ p_days?: number;
75183
+ };
75184
+ Returns: {
75185
+ cart_total: number;
75186
+ delivery_date: string;
75187
+ order_ref: string;
75188
+ plan_ready: boolean;
75189
+ reason: string;
75190
+ released: boolean;
75191
+ }[];
75192
+ };
75193
+ logistics_cart_plan_status: {
75194
+ Args: {
75195
+ p_ref: string;
75196
+ };
75197
+ Returns: import("../integrations/supabase/types").Json;
75198
+ };
74726
75199
  logistics_cart_seq: {
74727
75200
  Args: {
74728
75201
  p_order_uuid?: string;
@@ -75256,6 +75729,12 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
75256
75729
  };
75257
75730
  Returns: boolean;
75258
75731
  };
75732
+ logistics_link_order_items: {
75733
+ Args: {
75734
+ p_order?: string;
75735
+ };
75736
+ Returns: import("../integrations/supabase/types").Json;
75737
+ };
75259
75738
  logistics_live_carriers: {
75260
75739
  Args: {
75261
75740
  p_order_ref: string;
@@ -75282,6 +75761,12 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
75282
75761
  };
75283
75762
  Returns: string;
75284
75763
  };
75764
+ logistics_normalize_product_label: {
75765
+ Args: {
75766
+ p_label: string;
75767
+ };
75768
+ Returns: string;
75769
+ };
75285
75770
  logistics_not_past: {
75286
75771
  Args: {
75287
75772
  p_ts: string;
@@ -75470,6 +75955,12 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
75470
75955
  Args: never;
75471
75956
  Returns: number;
75472
75957
  };
75958
+ logistics_plan_retry: {
75959
+ Args: {
75960
+ p_order_ids: string[];
75961
+ };
75962
+ Returns: number;
75963
+ };
75473
75964
  logistics_plan_setting: {
75474
75965
  Args: {
75475
75966
  p_default: number;
@@ -75576,6 +76067,12 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
75576
76067
  };
75577
76068
  Returns: import("../integrations/supabase/types").Json;
75578
76069
  };
76070
+ logistics_resolve_product_id: {
76071
+ Args: {
76072
+ p_label: string;
76073
+ };
76074
+ Returns: string;
76075
+ };
75579
76076
  logistics_resolve_settings: {
75580
76077
  Args: {
75581
76078
  p_config_id: string;
@@ -75705,6 +76202,10 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
75705
76202
  };
75706
76203
  Returns: number;
75707
76204
  };
76205
+ logistics_tick_ping: {
76206
+ Args: never;
76207
+ Returns: string;
76208
+ };
75708
76209
  logistics_upsert_task: {
75709
76210
  Args: {
75710
76211
  p_buffer_ref: string;
@@ -76272,6 +76773,10 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
76272
76773
  };
76273
76774
  Returns: undefined;
76274
76775
  };
76776
+ pick_report_missing_cart_plan: {
76777
+ Args: never;
76778
+ Returns: import("../integrations/supabase/types").Json;
76779
+ };
76275
76780
  pick_reprint_cart: {
76276
76781
  Args: {
76277
76782
  _cart_id: string;
@@ -76812,6 +77317,12 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
76812
77317
  };
76813
77318
  Returns: boolean;
76814
77319
  };
77320
+ release_job_lock: {
77321
+ Args: {
77322
+ _key: string;
77323
+ };
77324
+ Returns: undefined;
77325
+ };
76815
77326
  release_local_pdf_job: {
76816
77327
  Args: {
76817
77328
  _job_id: string;
@@ -77500,6 +78011,14 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
77500
78011
  row_count: number;
77501
78012
  }[];
77502
78013
  };
78014
+ try_acquire_job_lock: {
78015
+ Args: {
78016
+ _key: string;
78017
+ _owner?: string;
78018
+ _seconds?: number;
78019
+ };
78020
+ Returns: boolean;
78021
+ };
77503
78022
  try_debtor_lock: {
77504
78023
  Args: {
77505
78024
  _group_key: string;
@@ -79814,6 +80333,8 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
79814
80333
  created_at: string;
79815
80334
  currency: string;
79816
80335
  distribute_over: string | null;
80336
+ external_id: string | null;
80337
+ external_synced_at: string | null;
79817
80338
  group_type: string;
79818
80339
  handling_fee: number | null;
79819
80340
  id: string;
@@ -79826,6 +80347,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
79826
80347
  rounding: string;
79827
80348
  rounding_step: number;
79828
80349
  sort_order: number;
80350
+ source: string;
79829
80351
  unit: string;
79830
80352
  updated_at: string;
79831
80353
  };
@@ -79836,6 +80358,8 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
79836
80358
  created_at?: string;
79837
80359
  currency?: string;
79838
80360
  distribute_over?: string | null;
80361
+ external_id?: string | null;
80362
+ external_synced_at?: string | null;
79839
80363
  group_type?: string;
79840
80364
  handling_fee?: number | null;
79841
80365
  id?: string;
@@ -79848,6 +80372,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
79848
80372
  rounding?: string;
79849
80373
  rounding_step?: number;
79850
80374
  sort_order?: number;
80375
+ source?: string;
79851
80376
  unit?: string;
79852
80377
  updated_at?: string;
79853
80378
  };
@@ -79858,6 +80383,8 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
79858
80383
  created_at?: string;
79859
80384
  currency?: string;
79860
80385
  distribute_over?: string | null;
80386
+ external_id?: string | null;
80387
+ external_synced_at?: string | null;
79861
80388
  group_type?: string;
79862
80389
  handling_fee?: number | null;
79863
80390
  id?: string;
@@ -79870,6 +80397,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
79870
80397
  rounding?: string;
79871
80398
  rounding_step?: number;
79872
80399
  sort_order?: number;
80400
+ source?: string;
79873
80401
  unit?: string;
79874
80402
  updated_at?: string;
79875
80403
  };
@@ -86733,6 +87261,30 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
86733
87261
  referencedColumns: ["id"];
86734
87262
  }];
86735
87263
  };
87264
+ job_locks: {
87265
+ Row: {
87266
+ created_at: string;
87267
+ lock_key: string;
87268
+ locked_until: string;
87269
+ owner: string | null;
87270
+ updated_at: string;
87271
+ };
87272
+ Insert: {
87273
+ created_at?: string;
87274
+ lock_key: string;
87275
+ locked_until: string;
87276
+ owner?: string | null;
87277
+ updated_at?: string;
87278
+ };
87279
+ Update: {
87280
+ created_at?: string;
87281
+ lock_key?: string;
87282
+ locked_until?: string;
87283
+ owner?: string | null;
87284
+ updated_at?: string;
87285
+ };
87286
+ Relationships: [];
87287
+ };
86736
87288
  layout_logos: {
86737
87289
  Row: {
86738
87290
  bestand_url: string;
@@ -87895,6 +88447,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
87895
88447
  next_attempt_at: string;
87896
88448
  order_id: string;
87897
88449
  reason: string;
88450
+ reason_code: string | null;
87898
88451
  status: string;
87899
88452
  updated_at: string;
87900
88453
  };
@@ -87907,6 +88460,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
87907
88460
  next_attempt_at?: string;
87908
88461
  order_id: string;
87909
88462
  reason?: string;
88463
+ reason_code?: string | null;
87910
88464
  status?: string;
87911
88465
  updated_at?: string;
87912
88466
  };
@@ -87919,6 +88473,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
87919
88473
  next_attempt_at?: string;
87920
88474
  order_id?: string;
87921
88475
  reason?: string;
88476
+ reason_code?: string | null;
87922
88477
  status?: string;
87923
88478
  updated_at?: string;
87924
88479
  };
@@ -88623,6 +89178,21 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
88623
89178
  referencedColumns: ["id"];
88624
89179
  }];
88625
89180
  };
89181
+ logistics_tick_heartbeat: {
89182
+ Row: {
89183
+ id: boolean;
89184
+ last_tick_at: string;
89185
+ };
89186
+ Insert: {
89187
+ id?: boolean;
89188
+ last_tick_at?: string;
89189
+ };
89190
+ Update: {
89191
+ id?: boolean;
89192
+ last_tick_at?: string;
89193
+ };
89194
+ Relationships: [];
89195
+ };
88626
89196
  logistics_variables: {
88627
89197
  Row: {
88628
89198
  created_at: string;
@@ -100505,6 +101075,30 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
100505
101075
  };
100506
101076
  Returns: import("../integrations/supabase/types").Json;
100507
101077
  };
101078
+ logistics_block_reason_code: {
101079
+ Args: {
101080
+ p_details?: import("../integrations/supabase/types").Json;
101081
+ p_reason: string;
101082
+ };
101083
+ Returns: string;
101084
+ };
101085
+ logistics_blocked_orders: {
101086
+ Args: never;
101087
+ Returns: {
101088
+ attempts: number;
101089
+ blocked_since: string;
101090
+ delivery_date: string;
101091
+ order_id: string;
101092
+ order_ref: string;
101093
+ queue_id: string;
101094
+ reason: string;
101095
+ reason_code: string;
101096
+ }[];
101097
+ };
101098
+ logistics_blocked_overview: {
101099
+ Args: never;
101100
+ Returns: import("../integrations/supabase/types").Json;
101101
+ };
100508
101102
  logistics_buffer_criteria: {
100509
101103
  Args: {
100510
101104
  p_settings: import("../integrations/supabase/types").Json;
@@ -100519,6 +101113,39 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
100519
101113
  };
100520
101114
  Returns: import("../integrations/supabase/types").Json;
100521
101115
  };
101116
+ logistics_buffer_detach_late_orders: {
101117
+ Args: {
101118
+ p_buffer?: string;
101119
+ };
101120
+ Returns: import("../integrations/supabase/types").Json;
101121
+ };
101122
+ logistics_buffer_frozen_order: {
101123
+ Args: {
101124
+ p_order_id: string;
101125
+ };
101126
+ Returns: boolean;
101127
+ };
101128
+ logistics_buffer_handled: {
101129
+ Args: {
101130
+ p_buffer: string;
101131
+ };
101132
+ Returns: boolean;
101133
+ };
101134
+ logistics_buffer_notify: {
101135
+ Args: {
101136
+ p_event_type: string;
101137
+ p_idempotency_key: string;
101138
+ p_order_ref: string;
101139
+ p_payload: import("../integrations/supabase/types").Json;
101140
+ };
101141
+ Returns: string;
101142
+ };
101143
+ logistics_buffer_open_key: {
101144
+ Args: {
101145
+ p_base_key: string;
101146
+ };
101147
+ Returns: string;
101148
+ };
100522
101149
  logistics_buffer_simulate: {
100523
101150
  Args: {
100524
101151
  p_orders?: import("../integrations/supabase/types").Json;
@@ -100608,6 +101235,25 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
100608
101235
  Args: never;
100609
101236
  Returns: import("../integrations/supabase/types").Json;
100610
101237
  };
101238
+ logistics_cart_plan_overview: {
101239
+ Args: {
101240
+ p_days?: number;
101241
+ };
101242
+ Returns: {
101243
+ cart_total: number;
101244
+ delivery_date: string;
101245
+ order_ref: string;
101246
+ plan_ready: boolean;
101247
+ reason: string;
101248
+ released: boolean;
101249
+ }[];
101250
+ };
101251
+ logistics_cart_plan_status: {
101252
+ Args: {
101253
+ p_ref: string;
101254
+ };
101255
+ Returns: import("../integrations/supabase/types").Json;
101256
+ };
100611
101257
  logistics_cart_seq: {
100612
101258
  Args: {
100613
101259
  p_order_uuid?: string;
@@ -101141,6 +101787,12 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
101141
101787
  };
101142
101788
  Returns: boolean;
101143
101789
  };
101790
+ logistics_link_order_items: {
101791
+ Args: {
101792
+ p_order?: string;
101793
+ };
101794
+ Returns: import("../integrations/supabase/types").Json;
101795
+ };
101144
101796
  logistics_live_carriers: {
101145
101797
  Args: {
101146
101798
  p_order_ref: string;
@@ -101167,6 +101819,12 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
101167
101819
  };
101168
101820
  Returns: string;
101169
101821
  };
101822
+ logistics_normalize_product_label: {
101823
+ Args: {
101824
+ p_label: string;
101825
+ };
101826
+ Returns: string;
101827
+ };
101170
101828
  logistics_not_past: {
101171
101829
  Args: {
101172
101830
  p_ts: string;
@@ -101355,6 +102013,12 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
101355
102013
  Args: never;
101356
102014
  Returns: number;
101357
102015
  };
102016
+ logistics_plan_retry: {
102017
+ Args: {
102018
+ p_order_ids: string[];
102019
+ };
102020
+ Returns: number;
102021
+ };
101358
102022
  logistics_plan_setting: {
101359
102023
  Args: {
101360
102024
  p_default: number;
@@ -101461,6 +102125,12 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
101461
102125
  };
101462
102126
  Returns: import("../integrations/supabase/types").Json;
101463
102127
  };
102128
+ logistics_resolve_product_id: {
102129
+ Args: {
102130
+ p_label: string;
102131
+ };
102132
+ Returns: string;
102133
+ };
101464
102134
  logistics_resolve_settings: {
101465
102135
  Args: {
101466
102136
  p_config_id: string;
@@ -101590,6 +102260,10 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
101590
102260
  };
101591
102261
  Returns: number;
101592
102262
  };
102263
+ logistics_tick_ping: {
102264
+ Args: never;
102265
+ Returns: string;
102266
+ };
101593
102267
  logistics_upsert_task: {
101594
102268
  Args: {
101595
102269
  p_buffer_ref: string;
@@ -102157,6 +102831,10 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
102157
102831
  };
102158
102832
  Returns: undefined;
102159
102833
  };
102834
+ pick_report_missing_cart_plan: {
102835
+ Args: never;
102836
+ Returns: import("../integrations/supabase/types").Json;
102837
+ };
102160
102838
  pick_reprint_cart: {
102161
102839
  Args: {
102162
102840
  _cart_id: string;
@@ -102697,6 +103375,12 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
102697
103375
  };
102698
103376
  Returns: boolean;
102699
103377
  };
103378
+ release_job_lock: {
103379
+ Args: {
103380
+ _key: string;
103381
+ };
103382
+ Returns: undefined;
103383
+ };
102700
103384
  release_local_pdf_job: {
102701
103385
  Args: {
102702
103386
  _job_id: string;
@@ -103385,6 +104069,14 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
103385
104069
  row_count: number;
103386
104070
  }[];
103387
104071
  };
104072
+ try_acquire_job_lock: {
104073
+ Args: {
104074
+ _key: string;
104075
+ _owner?: string;
104076
+ _seconds?: number;
104077
+ };
104078
+ Returns: boolean;
104079
+ };
103388
104080
  try_debtor_lock: {
103389
104081
  Args: {
103390
104082
  _group_key: string;
@@ -105699,6 +106391,8 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
105699
106391
  created_at: string;
105700
106392
  currency: string;
105701
106393
  distribute_over: string | null;
106394
+ external_id: string | null;
106395
+ external_synced_at: string | null;
105702
106396
  group_type: string;
105703
106397
  handling_fee: number | null;
105704
106398
  id: string;
@@ -105711,6 +106405,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
105711
106405
  rounding: string;
105712
106406
  rounding_step: number;
105713
106407
  sort_order: number;
106408
+ source: string;
105714
106409
  unit: string;
105715
106410
  updated_at: string;
105716
106411
  };
@@ -105721,6 +106416,8 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
105721
106416
  created_at?: string;
105722
106417
  currency?: string;
105723
106418
  distribute_over?: string | null;
106419
+ external_id?: string | null;
106420
+ external_synced_at?: string | null;
105724
106421
  group_type?: string;
105725
106422
  handling_fee?: number | null;
105726
106423
  id?: string;
@@ -105733,6 +106430,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
105733
106430
  rounding?: string;
105734
106431
  rounding_step?: number;
105735
106432
  sort_order?: number;
106433
+ source?: string;
105736
106434
  unit?: string;
105737
106435
  updated_at?: string;
105738
106436
  };
@@ -105743,6 +106441,8 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
105743
106441
  created_at?: string;
105744
106442
  currency?: string;
105745
106443
  distribute_over?: string | null;
106444
+ external_id?: string | null;
106445
+ external_synced_at?: string | null;
105746
106446
  group_type?: string;
105747
106447
  handling_fee?: number | null;
105748
106448
  id?: string;
@@ -105755,6 +106455,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
105755
106455
  rounding?: string;
105756
106456
  rounding_step?: number;
105757
106457
  sort_order?: number;
106458
+ source?: string;
105758
106459
  unit?: string;
105759
106460
  updated_at?: string;
105760
106461
  };
@@ -112618,6 +113319,30 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
112618
113319
  referencedColumns: ["id"];
112619
113320
  }];
112620
113321
  };
113322
+ job_locks: {
113323
+ Row: {
113324
+ created_at: string;
113325
+ lock_key: string;
113326
+ locked_until: string;
113327
+ owner: string | null;
113328
+ updated_at: string;
113329
+ };
113330
+ Insert: {
113331
+ created_at?: string;
113332
+ lock_key: string;
113333
+ locked_until: string;
113334
+ owner?: string | null;
113335
+ updated_at?: string;
113336
+ };
113337
+ Update: {
113338
+ created_at?: string;
113339
+ lock_key?: string;
113340
+ locked_until?: string;
113341
+ owner?: string | null;
113342
+ updated_at?: string;
113343
+ };
113344
+ Relationships: [];
113345
+ };
112621
113346
  layout_logos: {
112622
113347
  Row: {
112623
113348
  bestand_url: string;
@@ -113780,6 +114505,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
113780
114505
  next_attempt_at: string;
113781
114506
  order_id: string;
113782
114507
  reason: string;
114508
+ reason_code: string | null;
113783
114509
  status: string;
113784
114510
  updated_at: string;
113785
114511
  };
@@ -113792,6 +114518,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
113792
114518
  next_attempt_at?: string;
113793
114519
  order_id: string;
113794
114520
  reason?: string;
114521
+ reason_code?: string | null;
113795
114522
  status?: string;
113796
114523
  updated_at?: string;
113797
114524
  };
@@ -113804,6 +114531,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
113804
114531
  next_attempt_at?: string;
113805
114532
  order_id?: string;
113806
114533
  reason?: string;
114534
+ reason_code?: string | null;
113807
114535
  status?: string;
113808
114536
  updated_at?: string;
113809
114537
  };
@@ -114508,6 +115236,21 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
114508
115236
  referencedColumns: ["id"];
114509
115237
  }];
114510
115238
  };
115239
+ logistics_tick_heartbeat: {
115240
+ Row: {
115241
+ id: boolean;
115242
+ last_tick_at: string;
115243
+ };
115244
+ Insert: {
115245
+ id?: boolean;
115246
+ last_tick_at?: string;
115247
+ };
115248
+ Update: {
115249
+ id?: boolean;
115250
+ last_tick_at?: string;
115251
+ };
115252
+ Relationships: [];
115253
+ };
114511
115254
  logistics_variables: {
114512
115255
  Row: {
114513
115256
  created_at: string;
@@ -126390,6 +127133,30 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
126390
127133
  };
126391
127134
  Returns: import("../integrations/supabase/types").Json;
126392
127135
  };
127136
+ logistics_block_reason_code: {
127137
+ Args: {
127138
+ p_details?: import("../integrations/supabase/types").Json;
127139
+ p_reason: string;
127140
+ };
127141
+ Returns: string;
127142
+ };
127143
+ logistics_blocked_orders: {
127144
+ Args: never;
127145
+ Returns: {
127146
+ attempts: number;
127147
+ blocked_since: string;
127148
+ delivery_date: string;
127149
+ order_id: string;
127150
+ order_ref: string;
127151
+ queue_id: string;
127152
+ reason: string;
127153
+ reason_code: string;
127154
+ }[];
127155
+ };
127156
+ logistics_blocked_overview: {
127157
+ Args: never;
127158
+ Returns: import("../integrations/supabase/types").Json;
127159
+ };
126393
127160
  logistics_buffer_criteria: {
126394
127161
  Args: {
126395
127162
  p_settings: import("../integrations/supabase/types").Json;
@@ -126404,6 +127171,39 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
126404
127171
  };
126405
127172
  Returns: import("../integrations/supabase/types").Json;
126406
127173
  };
127174
+ logistics_buffer_detach_late_orders: {
127175
+ Args: {
127176
+ p_buffer?: string;
127177
+ };
127178
+ Returns: import("../integrations/supabase/types").Json;
127179
+ };
127180
+ logistics_buffer_frozen_order: {
127181
+ Args: {
127182
+ p_order_id: string;
127183
+ };
127184
+ Returns: boolean;
127185
+ };
127186
+ logistics_buffer_handled: {
127187
+ Args: {
127188
+ p_buffer: string;
127189
+ };
127190
+ Returns: boolean;
127191
+ };
127192
+ logistics_buffer_notify: {
127193
+ Args: {
127194
+ p_event_type: string;
127195
+ p_idempotency_key: string;
127196
+ p_order_ref: string;
127197
+ p_payload: import("../integrations/supabase/types").Json;
127198
+ };
127199
+ Returns: string;
127200
+ };
127201
+ logistics_buffer_open_key: {
127202
+ Args: {
127203
+ p_base_key: string;
127204
+ };
127205
+ Returns: string;
127206
+ };
126407
127207
  logistics_buffer_simulate: {
126408
127208
  Args: {
126409
127209
  p_orders?: import("../integrations/supabase/types").Json;
@@ -126493,6 +127293,25 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
126493
127293
  Args: never;
126494
127294
  Returns: import("../integrations/supabase/types").Json;
126495
127295
  };
127296
+ logistics_cart_plan_overview: {
127297
+ Args: {
127298
+ p_days?: number;
127299
+ };
127300
+ Returns: {
127301
+ cart_total: number;
127302
+ delivery_date: string;
127303
+ order_ref: string;
127304
+ plan_ready: boolean;
127305
+ reason: string;
127306
+ released: boolean;
127307
+ }[];
127308
+ };
127309
+ logistics_cart_plan_status: {
127310
+ Args: {
127311
+ p_ref: string;
127312
+ };
127313
+ Returns: import("../integrations/supabase/types").Json;
127314
+ };
126496
127315
  logistics_cart_seq: {
126497
127316
  Args: {
126498
127317
  p_order_uuid?: string;
@@ -127026,6 +127845,12 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
127026
127845
  };
127027
127846
  Returns: boolean;
127028
127847
  };
127848
+ logistics_link_order_items: {
127849
+ Args: {
127850
+ p_order?: string;
127851
+ };
127852
+ Returns: import("../integrations/supabase/types").Json;
127853
+ };
127029
127854
  logistics_live_carriers: {
127030
127855
  Args: {
127031
127856
  p_order_ref: string;
@@ -127052,6 +127877,12 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
127052
127877
  };
127053
127878
  Returns: string;
127054
127879
  };
127880
+ logistics_normalize_product_label: {
127881
+ Args: {
127882
+ p_label: string;
127883
+ };
127884
+ Returns: string;
127885
+ };
127055
127886
  logistics_not_past: {
127056
127887
  Args: {
127057
127888
  p_ts: string;
@@ -127240,6 +128071,12 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
127240
128071
  Args: never;
127241
128072
  Returns: number;
127242
128073
  };
128074
+ logistics_plan_retry: {
128075
+ Args: {
128076
+ p_order_ids: string[];
128077
+ };
128078
+ Returns: number;
128079
+ };
127243
128080
  logistics_plan_setting: {
127244
128081
  Args: {
127245
128082
  p_default: number;
@@ -127346,6 +128183,12 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
127346
128183
  };
127347
128184
  Returns: import("../integrations/supabase/types").Json;
127348
128185
  };
128186
+ logistics_resolve_product_id: {
128187
+ Args: {
128188
+ p_label: string;
128189
+ };
128190
+ Returns: string;
128191
+ };
127349
128192
  logistics_resolve_settings: {
127350
128193
  Args: {
127351
128194
  p_config_id: string;
@@ -127475,6 +128318,10 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
127475
128318
  };
127476
128319
  Returns: number;
127477
128320
  };
128321
+ logistics_tick_ping: {
128322
+ Args: never;
128323
+ Returns: string;
128324
+ };
127478
128325
  logistics_upsert_task: {
127479
128326
  Args: {
127480
128327
  p_buffer_ref: string;
@@ -128042,6 +128889,10 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
128042
128889
  };
128043
128890
  Returns: undefined;
128044
128891
  };
128892
+ pick_report_missing_cart_plan: {
128893
+ Args: never;
128894
+ Returns: import("../integrations/supabase/types").Json;
128895
+ };
128045
128896
  pick_reprint_cart: {
128046
128897
  Args: {
128047
128898
  _cart_id: string;
@@ -128582,6 +129433,12 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
128582
129433
  };
128583
129434
  Returns: boolean;
128584
129435
  };
129436
+ release_job_lock: {
129437
+ Args: {
129438
+ _key: string;
129439
+ };
129440
+ Returns: undefined;
129441
+ };
128585
129442
  release_local_pdf_job: {
128586
129443
  Args: {
128587
129444
  _job_id: string;
@@ -129270,6 +130127,14 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
129270
130127
  row_count: number;
129271
130128
  }[];
129272
130129
  };
130130
+ try_acquire_job_lock: {
130131
+ Args: {
130132
+ _key: string;
130133
+ _owner?: string;
130134
+ _seconds?: number;
130135
+ };
130136
+ Returns: boolean;
130137
+ };
129273
130138
  try_debtor_lock: {
129274
130139
  Args: {
129275
130140
  _group_key: string;