@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
@@ -2212,6 +2212,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
2212
2212
  created_at: string;
2213
2213
  currency: string;
2214
2214
  distribute_over: string | null;
2215
+ external_id: string | null;
2216
+ external_synced_at: string | null;
2215
2217
  group_type: string;
2216
2218
  handling_fee: number | null;
2217
2219
  id: string;
@@ -2224,6 +2226,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
2224
2226
  rounding: string;
2225
2227
  rounding_step: number;
2226
2228
  sort_order: number;
2229
+ source: string;
2227
2230
  unit: string;
2228
2231
  updated_at: string;
2229
2232
  };
@@ -2234,6 +2237,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
2234
2237
  created_at?: string;
2235
2238
  currency?: string;
2236
2239
  distribute_over?: string | null;
2240
+ external_id?: string | null;
2241
+ external_synced_at?: string | null;
2237
2242
  group_type?: string;
2238
2243
  handling_fee?: number | null;
2239
2244
  id?: string;
@@ -2246,6 +2251,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
2246
2251
  rounding?: string;
2247
2252
  rounding_step?: number;
2248
2253
  sort_order?: number;
2254
+ source?: string;
2249
2255
  unit?: string;
2250
2256
  updated_at?: string;
2251
2257
  };
@@ -2256,6 +2262,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
2256
2262
  created_at?: string;
2257
2263
  currency?: string;
2258
2264
  distribute_over?: string | null;
2265
+ external_id?: string | null;
2266
+ external_synced_at?: string | null;
2259
2267
  group_type?: string;
2260
2268
  handling_fee?: number | null;
2261
2269
  id?: string;
@@ -2268,6 +2276,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
2268
2276
  rounding?: string;
2269
2277
  rounding_step?: number;
2270
2278
  sort_order?: number;
2279
+ source?: string;
2271
2280
  unit?: string;
2272
2281
  updated_at?: string;
2273
2282
  };
@@ -9131,6 +9140,30 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
9131
9140
  referencedColumns: ["id"];
9132
9141
  }];
9133
9142
  };
9143
+ job_locks: {
9144
+ Row: {
9145
+ created_at: string;
9146
+ lock_key: string;
9147
+ locked_until: string;
9148
+ owner: string | null;
9149
+ updated_at: string;
9150
+ };
9151
+ Insert: {
9152
+ created_at?: string;
9153
+ lock_key: string;
9154
+ locked_until: string;
9155
+ owner?: string | null;
9156
+ updated_at?: string;
9157
+ };
9158
+ Update: {
9159
+ created_at?: string;
9160
+ lock_key?: string;
9161
+ locked_until?: string;
9162
+ owner?: string | null;
9163
+ updated_at?: string;
9164
+ };
9165
+ Relationships: [];
9166
+ };
9134
9167
  layout_logos: {
9135
9168
  Row: {
9136
9169
  bestand_url: string;
@@ -10293,6 +10326,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
10293
10326
  next_attempt_at: string;
10294
10327
  order_id: string;
10295
10328
  reason: string;
10329
+ reason_code: string | null;
10296
10330
  status: string;
10297
10331
  updated_at: string;
10298
10332
  };
@@ -10305,6 +10339,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
10305
10339
  next_attempt_at?: string;
10306
10340
  order_id: string;
10307
10341
  reason?: string;
10342
+ reason_code?: string | null;
10308
10343
  status?: string;
10309
10344
  updated_at?: string;
10310
10345
  };
@@ -10317,6 +10352,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
10317
10352
  next_attempt_at?: string;
10318
10353
  order_id?: string;
10319
10354
  reason?: string;
10355
+ reason_code?: string | null;
10320
10356
  status?: string;
10321
10357
  updated_at?: string;
10322
10358
  };
@@ -11021,6 +11057,21 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
11021
11057
  referencedColumns: ["id"];
11022
11058
  }];
11023
11059
  };
11060
+ logistics_tick_heartbeat: {
11061
+ Row: {
11062
+ id: boolean;
11063
+ last_tick_at: string;
11064
+ };
11065
+ Insert: {
11066
+ id?: boolean;
11067
+ last_tick_at?: string;
11068
+ };
11069
+ Update: {
11070
+ id?: boolean;
11071
+ last_tick_at?: string;
11072
+ };
11073
+ Relationships: [];
11074
+ };
11024
11075
  logistics_variables: {
11025
11076
  Row: {
11026
11077
  created_at: string;
@@ -22903,6 +22954,30 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
22903
22954
  };
22904
22955
  Returns: import("../integrations/supabase/types").Json;
22905
22956
  };
22957
+ logistics_block_reason_code: {
22958
+ Args: {
22959
+ p_details?: import("../integrations/supabase/types").Json;
22960
+ p_reason: string;
22961
+ };
22962
+ Returns: string;
22963
+ };
22964
+ logistics_blocked_orders: {
22965
+ Args: never;
22966
+ Returns: {
22967
+ attempts: number;
22968
+ blocked_since: string;
22969
+ delivery_date: string;
22970
+ order_id: string;
22971
+ order_ref: string;
22972
+ queue_id: string;
22973
+ reason: string;
22974
+ reason_code: string;
22975
+ }[];
22976
+ };
22977
+ logistics_blocked_overview: {
22978
+ Args: never;
22979
+ Returns: import("../integrations/supabase/types").Json;
22980
+ };
22906
22981
  logistics_buffer_criteria: {
22907
22982
  Args: {
22908
22983
  p_settings: import("../integrations/supabase/types").Json;
@@ -22917,6 +22992,39 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
22917
22992
  };
22918
22993
  Returns: import("../integrations/supabase/types").Json;
22919
22994
  };
22995
+ logistics_buffer_detach_late_orders: {
22996
+ Args: {
22997
+ p_buffer?: string;
22998
+ };
22999
+ Returns: import("../integrations/supabase/types").Json;
23000
+ };
23001
+ logistics_buffer_frozen_order: {
23002
+ Args: {
23003
+ p_order_id: string;
23004
+ };
23005
+ Returns: boolean;
23006
+ };
23007
+ logistics_buffer_handled: {
23008
+ Args: {
23009
+ p_buffer: string;
23010
+ };
23011
+ Returns: boolean;
23012
+ };
23013
+ logistics_buffer_notify: {
23014
+ Args: {
23015
+ p_event_type: string;
23016
+ p_idempotency_key: string;
23017
+ p_order_ref: string;
23018
+ p_payload: import("../integrations/supabase/types").Json;
23019
+ };
23020
+ Returns: string;
23021
+ };
23022
+ logistics_buffer_open_key: {
23023
+ Args: {
23024
+ p_base_key: string;
23025
+ };
23026
+ Returns: string;
23027
+ };
22920
23028
  logistics_buffer_simulate: {
22921
23029
  Args: {
22922
23030
  p_orders?: import("../integrations/supabase/types").Json;
@@ -23006,6 +23114,25 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
23006
23114
  Args: never;
23007
23115
  Returns: import("../integrations/supabase/types").Json;
23008
23116
  };
23117
+ logistics_cart_plan_overview: {
23118
+ Args: {
23119
+ p_days?: number;
23120
+ };
23121
+ Returns: {
23122
+ cart_total: number;
23123
+ delivery_date: string;
23124
+ order_ref: string;
23125
+ plan_ready: boolean;
23126
+ reason: string;
23127
+ released: boolean;
23128
+ }[];
23129
+ };
23130
+ logistics_cart_plan_status: {
23131
+ Args: {
23132
+ p_ref: string;
23133
+ };
23134
+ Returns: import("../integrations/supabase/types").Json;
23135
+ };
23009
23136
  logistics_cart_seq: {
23010
23137
  Args: {
23011
23138
  p_order_uuid?: string;
@@ -23539,6 +23666,12 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
23539
23666
  };
23540
23667
  Returns: boolean;
23541
23668
  };
23669
+ logistics_link_order_items: {
23670
+ Args: {
23671
+ p_order?: string;
23672
+ };
23673
+ Returns: import("../integrations/supabase/types").Json;
23674
+ };
23542
23675
  logistics_live_carriers: {
23543
23676
  Args: {
23544
23677
  p_order_ref: string;
@@ -23565,6 +23698,12 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
23565
23698
  };
23566
23699
  Returns: string;
23567
23700
  };
23701
+ logistics_normalize_product_label: {
23702
+ Args: {
23703
+ p_label: string;
23704
+ };
23705
+ Returns: string;
23706
+ };
23568
23707
  logistics_not_past: {
23569
23708
  Args: {
23570
23709
  p_ts: string;
@@ -23753,6 +23892,12 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
23753
23892
  Args: never;
23754
23893
  Returns: number;
23755
23894
  };
23895
+ logistics_plan_retry: {
23896
+ Args: {
23897
+ p_order_ids: string[];
23898
+ };
23899
+ Returns: number;
23900
+ };
23756
23901
  logistics_plan_setting: {
23757
23902
  Args: {
23758
23903
  p_default: number;
@@ -23859,6 +24004,12 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
23859
24004
  };
23860
24005
  Returns: import("../integrations/supabase/types").Json;
23861
24006
  };
24007
+ logistics_resolve_product_id: {
24008
+ Args: {
24009
+ p_label: string;
24010
+ };
24011
+ Returns: string;
24012
+ };
23862
24013
  logistics_resolve_settings: {
23863
24014
  Args: {
23864
24015
  p_config_id: string;
@@ -23988,6 +24139,10 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
23988
24139
  };
23989
24140
  Returns: number;
23990
24141
  };
24142
+ logistics_tick_ping: {
24143
+ Args: never;
24144
+ Returns: string;
24145
+ };
23991
24146
  logistics_upsert_task: {
23992
24147
  Args: {
23993
24148
  p_buffer_ref: string;
@@ -24555,6 +24710,10 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
24555
24710
  };
24556
24711
  Returns: undefined;
24557
24712
  };
24713
+ pick_report_missing_cart_plan: {
24714
+ Args: never;
24715
+ Returns: import("../integrations/supabase/types").Json;
24716
+ };
24558
24717
  pick_reprint_cart: {
24559
24718
  Args: {
24560
24719
  _cart_id: string;
@@ -25095,6 +25254,12 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
25095
25254
  };
25096
25255
  Returns: boolean;
25097
25256
  };
25257
+ release_job_lock: {
25258
+ Args: {
25259
+ _key: string;
25260
+ };
25261
+ Returns: undefined;
25262
+ };
25098
25263
  release_local_pdf_job: {
25099
25264
  Args: {
25100
25265
  _job_id: string;
@@ -25783,6 +25948,14 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
25783
25948
  row_count: number;
25784
25949
  }[];
25785
25950
  };
25951
+ try_acquire_job_lock: {
25952
+ Args: {
25953
+ _key: string;
25954
+ _owner?: string;
25955
+ _seconds?: number;
25956
+ };
25957
+ Returns: boolean;
25958
+ };
25786
25959
  try_debtor_lock: {
25787
25960
  Args: {
25788
25961
  _group_key: string;
@@ -28089,6 +28262,8 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
28089
28262
  created_at: string;
28090
28263
  currency: string;
28091
28264
  distribute_over: string | null;
28265
+ external_id: string | null;
28266
+ external_synced_at: string | null;
28092
28267
  group_type: string;
28093
28268
  handling_fee: number | null;
28094
28269
  id: string;
@@ -28101,6 +28276,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
28101
28276
  rounding: string;
28102
28277
  rounding_step: number;
28103
28278
  sort_order: number;
28279
+ source: string;
28104
28280
  unit: string;
28105
28281
  updated_at: string;
28106
28282
  };
@@ -28111,6 +28287,8 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
28111
28287
  created_at?: string;
28112
28288
  currency?: string;
28113
28289
  distribute_over?: string | null;
28290
+ external_id?: string | null;
28291
+ external_synced_at?: string | null;
28114
28292
  group_type?: string;
28115
28293
  handling_fee?: number | null;
28116
28294
  id?: string;
@@ -28123,6 +28301,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
28123
28301
  rounding?: string;
28124
28302
  rounding_step?: number;
28125
28303
  sort_order?: number;
28304
+ source?: string;
28126
28305
  unit?: string;
28127
28306
  updated_at?: string;
28128
28307
  };
@@ -28133,6 +28312,8 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
28133
28312
  created_at?: string;
28134
28313
  currency?: string;
28135
28314
  distribute_over?: string | null;
28315
+ external_id?: string | null;
28316
+ external_synced_at?: string | null;
28136
28317
  group_type?: string;
28137
28318
  handling_fee?: number | null;
28138
28319
  id?: string;
@@ -28145,6 +28326,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
28145
28326
  rounding?: string;
28146
28327
  rounding_step?: number;
28147
28328
  sort_order?: number;
28329
+ source?: string;
28148
28330
  unit?: string;
28149
28331
  updated_at?: string;
28150
28332
  };
@@ -35008,6 +35190,30 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
35008
35190
  referencedColumns: ["id"];
35009
35191
  }];
35010
35192
  };
35193
+ job_locks: {
35194
+ Row: {
35195
+ created_at: string;
35196
+ lock_key: string;
35197
+ locked_until: string;
35198
+ owner: string | null;
35199
+ updated_at: string;
35200
+ };
35201
+ Insert: {
35202
+ created_at?: string;
35203
+ lock_key: string;
35204
+ locked_until: string;
35205
+ owner?: string | null;
35206
+ updated_at?: string;
35207
+ };
35208
+ Update: {
35209
+ created_at?: string;
35210
+ lock_key?: string;
35211
+ locked_until?: string;
35212
+ owner?: string | null;
35213
+ updated_at?: string;
35214
+ };
35215
+ Relationships: [];
35216
+ };
35011
35217
  layout_logos: {
35012
35218
  Row: {
35013
35219
  bestand_url: string;
@@ -36170,6 +36376,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
36170
36376
  next_attempt_at: string;
36171
36377
  order_id: string;
36172
36378
  reason: string;
36379
+ reason_code: string | null;
36173
36380
  status: string;
36174
36381
  updated_at: string;
36175
36382
  };
@@ -36182,6 +36389,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
36182
36389
  next_attempt_at?: string;
36183
36390
  order_id: string;
36184
36391
  reason?: string;
36392
+ reason_code?: string | null;
36185
36393
  status?: string;
36186
36394
  updated_at?: string;
36187
36395
  };
@@ -36194,6 +36402,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
36194
36402
  next_attempt_at?: string;
36195
36403
  order_id?: string;
36196
36404
  reason?: string;
36405
+ reason_code?: string | null;
36197
36406
  status?: string;
36198
36407
  updated_at?: string;
36199
36408
  };
@@ -36898,6 +37107,21 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
36898
37107
  referencedColumns: ["id"];
36899
37108
  }];
36900
37109
  };
37110
+ logistics_tick_heartbeat: {
37111
+ Row: {
37112
+ id: boolean;
37113
+ last_tick_at: string;
37114
+ };
37115
+ Insert: {
37116
+ id?: boolean;
37117
+ last_tick_at?: string;
37118
+ };
37119
+ Update: {
37120
+ id?: boolean;
37121
+ last_tick_at?: string;
37122
+ };
37123
+ Relationships: [];
37124
+ };
36901
37125
  logistics_variables: {
36902
37126
  Row: {
36903
37127
  created_at: string;
@@ -48780,6 +49004,30 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
48780
49004
  };
48781
49005
  Returns: import("../integrations/supabase/types").Json;
48782
49006
  };
49007
+ logistics_block_reason_code: {
49008
+ Args: {
49009
+ p_details?: import("../integrations/supabase/types").Json;
49010
+ p_reason: string;
49011
+ };
49012
+ Returns: string;
49013
+ };
49014
+ logistics_blocked_orders: {
49015
+ Args: never;
49016
+ Returns: {
49017
+ attempts: number;
49018
+ blocked_since: string;
49019
+ delivery_date: string;
49020
+ order_id: string;
49021
+ order_ref: string;
49022
+ queue_id: string;
49023
+ reason: string;
49024
+ reason_code: string;
49025
+ }[];
49026
+ };
49027
+ logistics_blocked_overview: {
49028
+ Args: never;
49029
+ Returns: import("../integrations/supabase/types").Json;
49030
+ };
48783
49031
  logistics_buffer_criteria: {
48784
49032
  Args: {
48785
49033
  p_settings: import("../integrations/supabase/types").Json;
@@ -48794,6 +49042,39 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
48794
49042
  };
48795
49043
  Returns: import("../integrations/supabase/types").Json;
48796
49044
  };
49045
+ logistics_buffer_detach_late_orders: {
49046
+ Args: {
49047
+ p_buffer?: string;
49048
+ };
49049
+ Returns: import("../integrations/supabase/types").Json;
49050
+ };
49051
+ logistics_buffer_frozen_order: {
49052
+ Args: {
49053
+ p_order_id: string;
49054
+ };
49055
+ Returns: boolean;
49056
+ };
49057
+ logistics_buffer_handled: {
49058
+ Args: {
49059
+ p_buffer: string;
49060
+ };
49061
+ Returns: boolean;
49062
+ };
49063
+ logistics_buffer_notify: {
49064
+ Args: {
49065
+ p_event_type: string;
49066
+ p_idempotency_key: string;
49067
+ p_order_ref: string;
49068
+ p_payload: import("../integrations/supabase/types").Json;
49069
+ };
49070
+ Returns: string;
49071
+ };
49072
+ logistics_buffer_open_key: {
49073
+ Args: {
49074
+ p_base_key: string;
49075
+ };
49076
+ Returns: string;
49077
+ };
48797
49078
  logistics_buffer_simulate: {
48798
49079
  Args: {
48799
49080
  p_orders?: import("../integrations/supabase/types").Json;
@@ -48883,6 +49164,25 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
48883
49164
  Args: never;
48884
49165
  Returns: import("../integrations/supabase/types").Json;
48885
49166
  };
49167
+ logistics_cart_plan_overview: {
49168
+ Args: {
49169
+ p_days?: number;
49170
+ };
49171
+ Returns: {
49172
+ cart_total: number;
49173
+ delivery_date: string;
49174
+ order_ref: string;
49175
+ plan_ready: boolean;
49176
+ reason: string;
49177
+ released: boolean;
49178
+ }[];
49179
+ };
49180
+ logistics_cart_plan_status: {
49181
+ Args: {
49182
+ p_ref: string;
49183
+ };
49184
+ Returns: import("../integrations/supabase/types").Json;
49185
+ };
48886
49186
  logistics_cart_seq: {
48887
49187
  Args: {
48888
49188
  p_order_uuid?: string;
@@ -49416,6 +49716,12 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
49416
49716
  };
49417
49717
  Returns: boolean;
49418
49718
  };
49719
+ logistics_link_order_items: {
49720
+ Args: {
49721
+ p_order?: string;
49722
+ };
49723
+ Returns: import("../integrations/supabase/types").Json;
49724
+ };
49419
49725
  logistics_live_carriers: {
49420
49726
  Args: {
49421
49727
  p_order_ref: string;
@@ -49442,6 +49748,12 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
49442
49748
  };
49443
49749
  Returns: string;
49444
49750
  };
49751
+ logistics_normalize_product_label: {
49752
+ Args: {
49753
+ p_label: string;
49754
+ };
49755
+ Returns: string;
49756
+ };
49445
49757
  logistics_not_past: {
49446
49758
  Args: {
49447
49759
  p_ts: string;
@@ -49630,6 +49942,12 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
49630
49942
  Args: never;
49631
49943
  Returns: number;
49632
49944
  };
49945
+ logistics_plan_retry: {
49946
+ Args: {
49947
+ p_order_ids: string[];
49948
+ };
49949
+ Returns: number;
49950
+ };
49633
49951
  logistics_plan_setting: {
49634
49952
  Args: {
49635
49953
  p_default: number;
@@ -49736,6 +50054,12 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
49736
50054
  };
49737
50055
  Returns: import("../integrations/supabase/types").Json;
49738
50056
  };
50057
+ logistics_resolve_product_id: {
50058
+ Args: {
50059
+ p_label: string;
50060
+ };
50061
+ Returns: string;
50062
+ };
49739
50063
  logistics_resolve_settings: {
49740
50064
  Args: {
49741
50065
  p_config_id: string;
@@ -49865,6 +50189,10 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
49865
50189
  };
49866
50190
  Returns: number;
49867
50191
  };
50192
+ logistics_tick_ping: {
50193
+ Args: never;
50194
+ Returns: string;
50195
+ };
49868
50196
  logistics_upsert_task: {
49869
50197
  Args: {
49870
50198
  p_buffer_ref: string;
@@ -50432,6 +50760,10 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
50432
50760
  };
50433
50761
  Returns: undefined;
50434
50762
  };
50763
+ pick_report_missing_cart_plan: {
50764
+ Args: never;
50765
+ Returns: import("../integrations/supabase/types").Json;
50766
+ };
50435
50767
  pick_reprint_cart: {
50436
50768
  Args: {
50437
50769
  _cart_id: string;
@@ -50972,6 +51304,12 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
50972
51304
  };
50973
51305
  Returns: boolean;
50974
51306
  };
51307
+ release_job_lock: {
51308
+ Args: {
51309
+ _key: string;
51310
+ };
51311
+ Returns: undefined;
51312
+ };
50975
51313
  release_local_pdf_job: {
50976
51314
  Args: {
50977
51315
  _job_id: string;
@@ -51660,6 +51998,14 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
51660
51998
  row_count: number;
51661
51999
  }[];
51662
52000
  };
52001
+ try_acquire_job_lock: {
52002
+ Args: {
52003
+ _key: string;
52004
+ _owner?: string;
52005
+ _seconds?: number;
52006
+ };
52007
+ Returns: boolean;
52008
+ };
51663
52009
  try_debtor_lock: {
51664
52010
  Args: {
51665
52011
  _group_key: string;
@@ -53970,6 +54316,8 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
53970
54316
  created_at: string;
53971
54317
  currency: string;
53972
54318
  distribute_over: string | null;
54319
+ external_id: string | null;
54320
+ external_synced_at: string | null;
53973
54321
  group_type: string;
53974
54322
  handling_fee: number | null;
53975
54323
  id: string;
@@ -53982,6 +54330,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
53982
54330
  rounding: string;
53983
54331
  rounding_step: number;
53984
54332
  sort_order: number;
54333
+ source: string;
53985
54334
  unit: string;
53986
54335
  updated_at: string;
53987
54336
  };
@@ -53992,6 +54341,8 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
53992
54341
  created_at?: string;
53993
54342
  currency?: string;
53994
54343
  distribute_over?: string | null;
54344
+ external_id?: string | null;
54345
+ external_synced_at?: string | null;
53995
54346
  group_type?: string;
53996
54347
  handling_fee?: number | null;
53997
54348
  id?: string;
@@ -54004,6 +54355,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
54004
54355
  rounding?: string;
54005
54356
  rounding_step?: number;
54006
54357
  sort_order?: number;
54358
+ source?: string;
54007
54359
  unit?: string;
54008
54360
  updated_at?: string;
54009
54361
  };
@@ -54014,6 +54366,8 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
54014
54366
  created_at?: string;
54015
54367
  currency?: string;
54016
54368
  distribute_over?: string | null;
54369
+ external_id?: string | null;
54370
+ external_synced_at?: string | null;
54017
54371
  group_type?: string;
54018
54372
  handling_fee?: number | null;
54019
54373
  id?: string;
@@ -54026,6 +54380,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
54026
54380
  rounding?: string;
54027
54381
  rounding_step?: number;
54028
54382
  sort_order?: number;
54383
+ source?: string;
54029
54384
  unit?: string;
54030
54385
  updated_at?: string;
54031
54386
  };
@@ -60889,6 +61244,30 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
60889
61244
  referencedColumns: ["id"];
60890
61245
  }];
60891
61246
  };
61247
+ job_locks: {
61248
+ Row: {
61249
+ created_at: string;
61250
+ lock_key: string;
61251
+ locked_until: string;
61252
+ owner: string | null;
61253
+ updated_at: string;
61254
+ };
61255
+ Insert: {
61256
+ created_at?: string;
61257
+ lock_key: string;
61258
+ locked_until: string;
61259
+ owner?: string | null;
61260
+ updated_at?: string;
61261
+ };
61262
+ Update: {
61263
+ created_at?: string;
61264
+ lock_key?: string;
61265
+ locked_until?: string;
61266
+ owner?: string | null;
61267
+ updated_at?: string;
61268
+ };
61269
+ Relationships: [];
61270
+ };
60892
61271
  layout_logos: {
60893
61272
  Row: {
60894
61273
  bestand_url: string;
@@ -62051,6 +62430,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
62051
62430
  next_attempt_at: string;
62052
62431
  order_id: string;
62053
62432
  reason: string;
62433
+ reason_code: string | null;
62054
62434
  status: string;
62055
62435
  updated_at: string;
62056
62436
  };
@@ -62063,6 +62443,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
62063
62443
  next_attempt_at?: string;
62064
62444
  order_id: string;
62065
62445
  reason?: string;
62446
+ reason_code?: string | null;
62066
62447
  status?: string;
62067
62448
  updated_at?: string;
62068
62449
  };
@@ -62075,6 +62456,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
62075
62456
  next_attempt_at?: string;
62076
62457
  order_id?: string;
62077
62458
  reason?: string;
62459
+ reason_code?: string | null;
62078
62460
  status?: string;
62079
62461
  updated_at?: string;
62080
62462
  };
@@ -62779,6 +63161,21 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
62779
63161
  referencedColumns: ["id"];
62780
63162
  }];
62781
63163
  };
63164
+ logistics_tick_heartbeat: {
63165
+ Row: {
63166
+ id: boolean;
63167
+ last_tick_at: string;
63168
+ };
63169
+ Insert: {
63170
+ id?: boolean;
63171
+ last_tick_at?: string;
63172
+ };
63173
+ Update: {
63174
+ id?: boolean;
63175
+ last_tick_at?: string;
63176
+ };
63177
+ Relationships: [];
63178
+ };
62782
63179
  logistics_variables: {
62783
63180
  Row: {
62784
63181
  created_at: string;
@@ -74661,6 +75058,30 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
74661
75058
  };
74662
75059
  Returns: import("../integrations/supabase/types").Json;
74663
75060
  };
75061
+ logistics_block_reason_code: {
75062
+ Args: {
75063
+ p_details?: import("../integrations/supabase/types").Json;
75064
+ p_reason: string;
75065
+ };
75066
+ Returns: string;
75067
+ };
75068
+ logistics_blocked_orders: {
75069
+ Args: never;
75070
+ Returns: {
75071
+ attempts: number;
75072
+ blocked_since: string;
75073
+ delivery_date: string;
75074
+ order_id: string;
75075
+ order_ref: string;
75076
+ queue_id: string;
75077
+ reason: string;
75078
+ reason_code: string;
75079
+ }[];
75080
+ };
75081
+ logistics_blocked_overview: {
75082
+ Args: never;
75083
+ Returns: import("../integrations/supabase/types").Json;
75084
+ };
74664
75085
  logistics_buffer_criteria: {
74665
75086
  Args: {
74666
75087
  p_settings: import("../integrations/supabase/types").Json;
@@ -74675,6 +75096,39 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
74675
75096
  };
74676
75097
  Returns: import("../integrations/supabase/types").Json;
74677
75098
  };
75099
+ logistics_buffer_detach_late_orders: {
75100
+ Args: {
75101
+ p_buffer?: string;
75102
+ };
75103
+ Returns: import("../integrations/supabase/types").Json;
75104
+ };
75105
+ logistics_buffer_frozen_order: {
75106
+ Args: {
75107
+ p_order_id: string;
75108
+ };
75109
+ Returns: boolean;
75110
+ };
75111
+ logistics_buffer_handled: {
75112
+ Args: {
75113
+ p_buffer: string;
75114
+ };
75115
+ Returns: boolean;
75116
+ };
75117
+ logistics_buffer_notify: {
75118
+ Args: {
75119
+ p_event_type: string;
75120
+ p_idempotency_key: string;
75121
+ p_order_ref: string;
75122
+ p_payload: import("../integrations/supabase/types").Json;
75123
+ };
75124
+ Returns: string;
75125
+ };
75126
+ logistics_buffer_open_key: {
75127
+ Args: {
75128
+ p_base_key: string;
75129
+ };
75130
+ Returns: string;
75131
+ };
74678
75132
  logistics_buffer_simulate: {
74679
75133
  Args: {
74680
75134
  p_orders?: import("../integrations/supabase/types").Json;
@@ -74764,6 +75218,25 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
74764
75218
  Args: never;
74765
75219
  Returns: import("../integrations/supabase/types").Json;
74766
75220
  };
75221
+ logistics_cart_plan_overview: {
75222
+ Args: {
75223
+ p_days?: number;
75224
+ };
75225
+ Returns: {
75226
+ cart_total: number;
75227
+ delivery_date: string;
75228
+ order_ref: string;
75229
+ plan_ready: boolean;
75230
+ reason: string;
75231
+ released: boolean;
75232
+ }[];
75233
+ };
75234
+ logistics_cart_plan_status: {
75235
+ Args: {
75236
+ p_ref: string;
75237
+ };
75238
+ Returns: import("../integrations/supabase/types").Json;
75239
+ };
74767
75240
  logistics_cart_seq: {
74768
75241
  Args: {
74769
75242
  p_order_uuid?: string;
@@ -75297,6 +75770,12 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
75297
75770
  };
75298
75771
  Returns: boolean;
75299
75772
  };
75773
+ logistics_link_order_items: {
75774
+ Args: {
75775
+ p_order?: string;
75776
+ };
75777
+ Returns: import("../integrations/supabase/types").Json;
75778
+ };
75300
75779
  logistics_live_carriers: {
75301
75780
  Args: {
75302
75781
  p_order_ref: string;
@@ -75323,6 +75802,12 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
75323
75802
  };
75324
75803
  Returns: string;
75325
75804
  };
75805
+ logistics_normalize_product_label: {
75806
+ Args: {
75807
+ p_label: string;
75808
+ };
75809
+ Returns: string;
75810
+ };
75326
75811
  logistics_not_past: {
75327
75812
  Args: {
75328
75813
  p_ts: string;
@@ -75511,6 +75996,12 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
75511
75996
  Args: never;
75512
75997
  Returns: number;
75513
75998
  };
75999
+ logistics_plan_retry: {
76000
+ Args: {
76001
+ p_order_ids: string[];
76002
+ };
76003
+ Returns: number;
76004
+ };
75514
76005
  logistics_plan_setting: {
75515
76006
  Args: {
75516
76007
  p_default: number;
@@ -75617,6 +76108,12 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
75617
76108
  };
75618
76109
  Returns: import("../integrations/supabase/types").Json;
75619
76110
  };
76111
+ logistics_resolve_product_id: {
76112
+ Args: {
76113
+ p_label: string;
76114
+ };
76115
+ Returns: string;
76116
+ };
75620
76117
  logistics_resolve_settings: {
75621
76118
  Args: {
75622
76119
  p_config_id: string;
@@ -75746,6 +76243,10 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
75746
76243
  };
75747
76244
  Returns: number;
75748
76245
  };
76246
+ logistics_tick_ping: {
76247
+ Args: never;
76248
+ Returns: string;
76249
+ };
75749
76250
  logistics_upsert_task: {
75750
76251
  Args: {
75751
76252
  p_buffer_ref: string;
@@ -76313,6 +76814,10 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
76313
76814
  };
76314
76815
  Returns: undefined;
76315
76816
  };
76817
+ pick_report_missing_cart_plan: {
76818
+ Args: never;
76819
+ Returns: import("../integrations/supabase/types").Json;
76820
+ };
76316
76821
  pick_reprint_cart: {
76317
76822
  Args: {
76318
76823
  _cart_id: string;
@@ -76853,6 +77358,12 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
76853
77358
  };
76854
77359
  Returns: boolean;
76855
77360
  };
77361
+ release_job_lock: {
77362
+ Args: {
77363
+ _key: string;
77364
+ };
77365
+ Returns: undefined;
77366
+ };
76856
77367
  release_local_pdf_job: {
76857
77368
  Args: {
76858
77369
  _job_id: string;
@@ -77541,6 +78052,14 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
77541
78052
  row_count: number;
77542
78053
  }[];
77543
78054
  };
78055
+ try_acquire_job_lock: {
78056
+ Args: {
78057
+ _key: string;
78058
+ _owner?: string;
78059
+ _seconds?: number;
78060
+ };
78061
+ Returns: boolean;
78062
+ };
77544
78063
  try_debtor_lock: {
77545
78064
  Args: {
77546
78065
  _group_key: string;
@@ -79853,6 +80372,8 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
79853
80372
  created_at: string;
79854
80373
  currency: string;
79855
80374
  distribute_over: string | null;
80375
+ external_id: string | null;
80376
+ external_synced_at: string | null;
79856
80377
  group_type: string;
79857
80378
  handling_fee: number | null;
79858
80379
  id: string;
@@ -79865,6 +80386,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
79865
80386
  rounding: string;
79866
80387
  rounding_step: number;
79867
80388
  sort_order: number;
80389
+ source: string;
79868
80390
  unit: string;
79869
80391
  updated_at: string;
79870
80392
  };
@@ -79875,6 +80397,8 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
79875
80397
  created_at?: string;
79876
80398
  currency?: string;
79877
80399
  distribute_over?: string | null;
80400
+ external_id?: string | null;
80401
+ external_synced_at?: string | null;
79878
80402
  group_type?: string;
79879
80403
  handling_fee?: number | null;
79880
80404
  id?: string;
@@ -79887,6 +80411,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
79887
80411
  rounding?: string;
79888
80412
  rounding_step?: number;
79889
80413
  sort_order?: number;
80414
+ source?: string;
79890
80415
  unit?: string;
79891
80416
  updated_at?: string;
79892
80417
  };
@@ -79897,6 +80422,8 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
79897
80422
  created_at?: string;
79898
80423
  currency?: string;
79899
80424
  distribute_over?: string | null;
80425
+ external_id?: string | null;
80426
+ external_synced_at?: string | null;
79900
80427
  group_type?: string;
79901
80428
  handling_fee?: number | null;
79902
80429
  id?: string;
@@ -79909,6 +80436,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
79909
80436
  rounding?: string;
79910
80437
  rounding_step?: number;
79911
80438
  sort_order?: number;
80439
+ source?: string;
79912
80440
  unit?: string;
79913
80441
  updated_at?: string;
79914
80442
  };
@@ -86772,6 +87300,30 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
86772
87300
  referencedColumns: ["id"];
86773
87301
  }];
86774
87302
  };
87303
+ job_locks: {
87304
+ Row: {
87305
+ created_at: string;
87306
+ lock_key: string;
87307
+ locked_until: string;
87308
+ owner: string | null;
87309
+ updated_at: string;
87310
+ };
87311
+ Insert: {
87312
+ created_at?: string;
87313
+ lock_key: string;
87314
+ locked_until: string;
87315
+ owner?: string | null;
87316
+ updated_at?: string;
87317
+ };
87318
+ Update: {
87319
+ created_at?: string;
87320
+ lock_key?: string;
87321
+ locked_until?: string;
87322
+ owner?: string | null;
87323
+ updated_at?: string;
87324
+ };
87325
+ Relationships: [];
87326
+ };
86775
87327
  layout_logos: {
86776
87328
  Row: {
86777
87329
  bestand_url: string;
@@ -87934,6 +88486,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
87934
88486
  next_attempt_at: string;
87935
88487
  order_id: string;
87936
88488
  reason: string;
88489
+ reason_code: string | null;
87937
88490
  status: string;
87938
88491
  updated_at: string;
87939
88492
  };
@@ -87946,6 +88499,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
87946
88499
  next_attempt_at?: string;
87947
88500
  order_id: string;
87948
88501
  reason?: string;
88502
+ reason_code?: string | null;
87949
88503
  status?: string;
87950
88504
  updated_at?: string;
87951
88505
  };
@@ -87958,6 +88512,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
87958
88512
  next_attempt_at?: string;
87959
88513
  order_id?: string;
87960
88514
  reason?: string;
88515
+ reason_code?: string | null;
87961
88516
  status?: string;
87962
88517
  updated_at?: string;
87963
88518
  };
@@ -88662,6 +89217,21 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
88662
89217
  referencedColumns: ["id"];
88663
89218
  }];
88664
89219
  };
89220
+ logistics_tick_heartbeat: {
89221
+ Row: {
89222
+ id: boolean;
89223
+ last_tick_at: string;
89224
+ };
89225
+ Insert: {
89226
+ id?: boolean;
89227
+ last_tick_at?: string;
89228
+ };
89229
+ Update: {
89230
+ id?: boolean;
89231
+ last_tick_at?: string;
89232
+ };
89233
+ Relationships: [];
89234
+ };
88665
89235
  logistics_variables: {
88666
89236
  Row: {
88667
89237
  created_at: string;
@@ -100544,6 +101114,30 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
100544
101114
  };
100545
101115
  Returns: import("../integrations/supabase/types").Json;
100546
101116
  };
101117
+ logistics_block_reason_code: {
101118
+ Args: {
101119
+ p_details?: import("../integrations/supabase/types").Json;
101120
+ p_reason: string;
101121
+ };
101122
+ Returns: string;
101123
+ };
101124
+ logistics_blocked_orders: {
101125
+ Args: never;
101126
+ Returns: {
101127
+ attempts: number;
101128
+ blocked_since: string;
101129
+ delivery_date: string;
101130
+ order_id: string;
101131
+ order_ref: string;
101132
+ queue_id: string;
101133
+ reason: string;
101134
+ reason_code: string;
101135
+ }[];
101136
+ };
101137
+ logistics_blocked_overview: {
101138
+ Args: never;
101139
+ Returns: import("../integrations/supabase/types").Json;
101140
+ };
100547
101141
  logistics_buffer_criteria: {
100548
101142
  Args: {
100549
101143
  p_settings: import("../integrations/supabase/types").Json;
@@ -100558,6 +101152,39 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
100558
101152
  };
100559
101153
  Returns: import("../integrations/supabase/types").Json;
100560
101154
  };
101155
+ logistics_buffer_detach_late_orders: {
101156
+ Args: {
101157
+ p_buffer?: string;
101158
+ };
101159
+ Returns: import("../integrations/supabase/types").Json;
101160
+ };
101161
+ logistics_buffer_frozen_order: {
101162
+ Args: {
101163
+ p_order_id: string;
101164
+ };
101165
+ Returns: boolean;
101166
+ };
101167
+ logistics_buffer_handled: {
101168
+ Args: {
101169
+ p_buffer: string;
101170
+ };
101171
+ Returns: boolean;
101172
+ };
101173
+ logistics_buffer_notify: {
101174
+ Args: {
101175
+ p_event_type: string;
101176
+ p_idempotency_key: string;
101177
+ p_order_ref: string;
101178
+ p_payload: import("../integrations/supabase/types").Json;
101179
+ };
101180
+ Returns: string;
101181
+ };
101182
+ logistics_buffer_open_key: {
101183
+ Args: {
101184
+ p_base_key: string;
101185
+ };
101186
+ Returns: string;
101187
+ };
100561
101188
  logistics_buffer_simulate: {
100562
101189
  Args: {
100563
101190
  p_orders?: import("../integrations/supabase/types").Json;
@@ -100647,6 +101274,25 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
100647
101274
  Args: never;
100648
101275
  Returns: import("../integrations/supabase/types").Json;
100649
101276
  };
101277
+ logistics_cart_plan_overview: {
101278
+ Args: {
101279
+ p_days?: number;
101280
+ };
101281
+ Returns: {
101282
+ cart_total: number;
101283
+ delivery_date: string;
101284
+ order_ref: string;
101285
+ plan_ready: boolean;
101286
+ reason: string;
101287
+ released: boolean;
101288
+ }[];
101289
+ };
101290
+ logistics_cart_plan_status: {
101291
+ Args: {
101292
+ p_ref: string;
101293
+ };
101294
+ Returns: import("../integrations/supabase/types").Json;
101295
+ };
100650
101296
  logistics_cart_seq: {
100651
101297
  Args: {
100652
101298
  p_order_uuid?: string;
@@ -101180,6 +101826,12 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
101180
101826
  };
101181
101827
  Returns: boolean;
101182
101828
  };
101829
+ logistics_link_order_items: {
101830
+ Args: {
101831
+ p_order?: string;
101832
+ };
101833
+ Returns: import("../integrations/supabase/types").Json;
101834
+ };
101183
101835
  logistics_live_carriers: {
101184
101836
  Args: {
101185
101837
  p_order_ref: string;
@@ -101206,6 +101858,12 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
101206
101858
  };
101207
101859
  Returns: string;
101208
101860
  };
101861
+ logistics_normalize_product_label: {
101862
+ Args: {
101863
+ p_label: string;
101864
+ };
101865
+ Returns: string;
101866
+ };
101209
101867
  logistics_not_past: {
101210
101868
  Args: {
101211
101869
  p_ts: string;
@@ -101394,6 +102052,12 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
101394
102052
  Args: never;
101395
102053
  Returns: number;
101396
102054
  };
102055
+ logistics_plan_retry: {
102056
+ Args: {
102057
+ p_order_ids: string[];
102058
+ };
102059
+ Returns: number;
102060
+ };
101397
102061
  logistics_plan_setting: {
101398
102062
  Args: {
101399
102063
  p_default: number;
@@ -101500,6 +102164,12 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
101500
102164
  };
101501
102165
  Returns: import("../integrations/supabase/types").Json;
101502
102166
  };
102167
+ logistics_resolve_product_id: {
102168
+ Args: {
102169
+ p_label: string;
102170
+ };
102171
+ Returns: string;
102172
+ };
101503
102173
  logistics_resolve_settings: {
101504
102174
  Args: {
101505
102175
  p_config_id: string;
@@ -101629,6 +102299,10 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
101629
102299
  };
101630
102300
  Returns: number;
101631
102301
  };
102302
+ logistics_tick_ping: {
102303
+ Args: never;
102304
+ Returns: string;
102305
+ };
101632
102306
  logistics_upsert_task: {
101633
102307
  Args: {
101634
102308
  p_buffer_ref: string;
@@ -102196,6 +102870,10 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
102196
102870
  };
102197
102871
  Returns: undefined;
102198
102872
  };
102873
+ pick_report_missing_cart_plan: {
102874
+ Args: never;
102875
+ Returns: import("../integrations/supabase/types").Json;
102876
+ };
102199
102877
  pick_reprint_cart: {
102200
102878
  Args: {
102201
102879
  _cart_id: string;
@@ -102736,6 +103414,12 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
102736
103414
  };
102737
103415
  Returns: boolean;
102738
103416
  };
103417
+ release_job_lock: {
103418
+ Args: {
103419
+ _key: string;
103420
+ };
103421
+ Returns: undefined;
103422
+ };
102739
103423
  release_local_pdf_job: {
102740
103424
  Args: {
102741
103425
  _job_id: string;
@@ -103424,6 +104108,14 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
103424
104108
  row_count: number;
103425
104109
  }[];
103426
104110
  };
104111
+ try_acquire_job_lock: {
104112
+ Args: {
104113
+ _key: string;
104114
+ _owner?: string;
104115
+ _seconds?: number;
104116
+ };
104117
+ Returns: boolean;
104118
+ };
103427
104119
  try_debtor_lock: {
103428
104120
  Args: {
103429
104121
  _group_key: string;
@@ -105734,6 +106426,8 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
105734
106426
  created_at: string;
105735
106427
  currency: string;
105736
106428
  distribute_over: string | null;
106429
+ external_id: string | null;
106430
+ external_synced_at: string | null;
105737
106431
  group_type: string;
105738
106432
  handling_fee: number | null;
105739
106433
  id: string;
@@ -105746,6 +106440,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
105746
106440
  rounding: string;
105747
106441
  rounding_step: number;
105748
106442
  sort_order: number;
106443
+ source: string;
105749
106444
  unit: string;
105750
106445
  updated_at: string;
105751
106446
  };
@@ -105756,6 +106451,8 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
105756
106451
  created_at?: string;
105757
106452
  currency?: string;
105758
106453
  distribute_over?: string | null;
106454
+ external_id?: string | null;
106455
+ external_synced_at?: string | null;
105759
106456
  group_type?: string;
105760
106457
  handling_fee?: number | null;
105761
106458
  id?: string;
@@ -105768,6 +106465,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
105768
106465
  rounding?: string;
105769
106466
  rounding_step?: number;
105770
106467
  sort_order?: number;
106468
+ source?: string;
105771
106469
  unit?: string;
105772
106470
  updated_at?: string;
105773
106471
  };
@@ -105778,6 +106476,8 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
105778
106476
  created_at?: string;
105779
106477
  currency?: string;
105780
106478
  distribute_over?: string | null;
106479
+ external_id?: string | null;
106480
+ external_synced_at?: string | null;
105781
106481
  group_type?: string;
105782
106482
  handling_fee?: number | null;
105783
106483
  id?: string;
@@ -105790,6 +106490,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
105790
106490
  rounding?: string;
105791
106491
  rounding_step?: number;
105792
106492
  sort_order?: number;
106493
+ source?: string;
105793
106494
  unit?: string;
105794
106495
  updated_at?: string;
105795
106496
  };
@@ -112653,6 +113354,30 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
112653
113354
  referencedColumns: ["id"];
112654
113355
  }];
112655
113356
  };
113357
+ job_locks: {
113358
+ Row: {
113359
+ created_at: string;
113360
+ lock_key: string;
113361
+ locked_until: string;
113362
+ owner: string | null;
113363
+ updated_at: string;
113364
+ };
113365
+ Insert: {
113366
+ created_at?: string;
113367
+ lock_key: string;
113368
+ locked_until: string;
113369
+ owner?: string | null;
113370
+ updated_at?: string;
113371
+ };
113372
+ Update: {
113373
+ created_at?: string;
113374
+ lock_key?: string;
113375
+ locked_until?: string;
113376
+ owner?: string | null;
113377
+ updated_at?: string;
113378
+ };
113379
+ Relationships: [];
113380
+ };
112656
113381
  layout_logos: {
112657
113382
  Row: {
112658
113383
  bestand_url: string;
@@ -113815,6 +114540,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
113815
114540
  next_attempt_at: string;
113816
114541
  order_id: string;
113817
114542
  reason: string;
114543
+ reason_code: string | null;
113818
114544
  status: string;
113819
114545
  updated_at: string;
113820
114546
  };
@@ -113827,6 +114553,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
113827
114553
  next_attempt_at?: string;
113828
114554
  order_id: string;
113829
114555
  reason?: string;
114556
+ reason_code?: string | null;
113830
114557
  status?: string;
113831
114558
  updated_at?: string;
113832
114559
  };
@@ -113839,6 +114566,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
113839
114566
  next_attempt_at?: string;
113840
114567
  order_id?: string;
113841
114568
  reason?: string;
114569
+ reason_code?: string | null;
113842
114570
  status?: string;
113843
114571
  updated_at?: string;
113844
114572
  };
@@ -114543,6 +115271,21 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
114543
115271
  referencedColumns: ["id"];
114544
115272
  }];
114545
115273
  };
115274
+ logistics_tick_heartbeat: {
115275
+ Row: {
115276
+ id: boolean;
115277
+ last_tick_at: string;
115278
+ };
115279
+ Insert: {
115280
+ id?: boolean;
115281
+ last_tick_at?: string;
115282
+ };
115283
+ Update: {
115284
+ id?: boolean;
115285
+ last_tick_at?: string;
115286
+ };
115287
+ Relationships: [];
115288
+ };
114546
115289
  logistics_variables: {
114547
115290
  Row: {
114548
115291
  created_at: string;
@@ -126425,6 +127168,30 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
126425
127168
  };
126426
127169
  Returns: import("../integrations/supabase/types").Json;
126427
127170
  };
127171
+ logistics_block_reason_code: {
127172
+ Args: {
127173
+ p_details?: import("../integrations/supabase/types").Json;
127174
+ p_reason: string;
127175
+ };
127176
+ Returns: string;
127177
+ };
127178
+ logistics_blocked_orders: {
127179
+ Args: never;
127180
+ Returns: {
127181
+ attempts: number;
127182
+ blocked_since: string;
127183
+ delivery_date: string;
127184
+ order_id: string;
127185
+ order_ref: string;
127186
+ queue_id: string;
127187
+ reason: string;
127188
+ reason_code: string;
127189
+ }[];
127190
+ };
127191
+ logistics_blocked_overview: {
127192
+ Args: never;
127193
+ Returns: import("../integrations/supabase/types").Json;
127194
+ };
126428
127195
  logistics_buffer_criteria: {
126429
127196
  Args: {
126430
127197
  p_settings: import("../integrations/supabase/types").Json;
@@ -126439,6 +127206,39 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
126439
127206
  };
126440
127207
  Returns: import("../integrations/supabase/types").Json;
126441
127208
  };
127209
+ logistics_buffer_detach_late_orders: {
127210
+ Args: {
127211
+ p_buffer?: string;
127212
+ };
127213
+ Returns: import("../integrations/supabase/types").Json;
127214
+ };
127215
+ logistics_buffer_frozen_order: {
127216
+ Args: {
127217
+ p_order_id: string;
127218
+ };
127219
+ Returns: boolean;
127220
+ };
127221
+ logistics_buffer_handled: {
127222
+ Args: {
127223
+ p_buffer: string;
127224
+ };
127225
+ Returns: boolean;
127226
+ };
127227
+ logistics_buffer_notify: {
127228
+ Args: {
127229
+ p_event_type: string;
127230
+ p_idempotency_key: string;
127231
+ p_order_ref: string;
127232
+ p_payload: import("../integrations/supabase/types").Json;
127233
+ };
127234
+ Returns: string;
127235
+ };
127236
+ logistics_buffer_open_key: {
127237
+ Args: {
127238
+ p_base_key: string;
127239
+ };
127240
+ Returns: string;
127241
+ };
126442
127242
  logistics_buffer_simulate: {
126443
127243
  Args: {
126444
127244
  p_orders?: import("../integrations/supabase/types").Json;
@@ -126528,6 +127328,25 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
126528
127328
  Args: never;
126529
127329
  Returns: import("../integrations/supabase/types").Json;
126530
127330
  };
127331
+ logistics_cart_plan_overview: {
127332
+ Args: {
127333
+ p_days?: number;
127334
+ };
127335
+ Returns: {
127336
+ cart_total: number;
127337
+ delivery_date: string;
127338
+ order_ref: string;
127339
+ plan_ready: boolean;
127340
+ reason: string;
127341
+ released: boolean;
127342
+ }[];
127343
+ };
127344
+ logistics_cart_plan_status: {
127345
+ Args: {
127346
+ p_ref: string;
127347
+ };
127348
+ Returns: import("../integrations/supabase/types").Json;
127349
+ };
126531
127350
  logistics_cart_seq: {
126532
127351
  Args: {
126533
127352
  p_order_uuid?: string;
@@ -127061,6 +127880,12 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
127061
127880
  };
127062
127881
  Returns: boolean;
127063
127882
  };
127883
+ logistics_link_order_items: {
127884
+ Args: {
127885
+ p_order?: string;
127886
+ };
127887
+ Returns: import("../integrations/supabase/types").Json;
127888
+ };
127064
127889
  logistics_live_carriers: {
127065
127890
  Args: {
127066
127891
  p_order_ref: string;
@@ -127087,6 +127912,12 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
127087
127912
  };
127088
127913
  Returns: string;
127089
127914
  };
127915
+ logistics_normalize_product_label: {
127916
+ Args: {
127917
+ p_label: string;
127918
+ };
127919
+ Returns: string;
127920
+ };
127090
127921
  logistics_not_past: {
127091
127922
  Args: {
127092
127923
  p_ts: string;
@@ -127275,6 +128106,12 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
127275
128106
  Args: never;
127276
128107
  Returns: number;
127277
128108
  };
128109
+ logistics_plan_retry: {
128110
+ Args: {
128111
+ p_order_ids: string[];
128112
+ };
128113
+ Returns: number;
128114
+ };
127278
128115
  logistics_plan_setting: {
127279
128116
  Args: {
127280
128117
  p_default: number;
@@ -127381,6 +128218,12 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
127381
128218
  };
127382
128219
  Returns: import("../integrations/supabase/types").Json;
127383
128220
  };
128221
+ logistics_resolve_product_id: {
128222
+ Args: {
128223
+ p_label: string;
128224
+ };
128225
+ Returns: string;
128226
+ };
127384
128227
  logistics_resolve_settings: {
127385
128228
  Args: {
127386
128229
  p_config_id: string;
@@ -127510,6 +128353,10 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
127510
128353
  };
127511
128354
  Returns: number;
127512
128355
  };
128356
+ logistics_tick_ping: {
128357
+ Args: never;
128358
+ Returns: string;
128359
+ };
127513
128360
  logistics_upsert_task: {
127514
128361
  Args: {
127515
128362
  p_buffer_ref: string;
@@ -128077,6 +128924,10 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
128077
128924
  };
128078
128925
  Returns: undefined;
128079
128926
  };
128927
+ pick_report_missing_cart_plan: {
128928
+ Args: never;
128929
+ Returns: import("../integrations/supabase/types").Json;
128930
+ };
128080
128931
  pick_reprint_cart: {
128081
128932
  Args: {
128082
128933
  _cart_id: string;
@@ -128617,6 +129468,12 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
128617
129468
  };
128618
129469
  Returns: boolean;
128619
129470
  };
129471
+ release_job_lock: {
129472
+ Args: {
129473
+ _key: string;
129474
+ };
129475
+ Returns: undefined;
129476
+ };
128620
129477
  release_local_pdf_job: {
128621
129478
  Args: {
128622
129479
  _job_id: string;
@@ -129305,6 +130162,14 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
129305
130162
  row_count: number;
129306
130163
  }[];
129307
130164
  };
130165
+ try_acquire_job_lock: {
130166
+ Args: {
130167
+ _key: string;
130168
+ _owner?: string;
130169
+ _seconds?: number;
130170
+ };
130171
+ Returns: boolean;
130172
+ };
129308
130173
  try_debtor_lock: {
129309
130174
  Args: {
129310
130175
  _group_key: string;