@flowselections/logistiek-engine 1.0.29 → 1.0.31

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 (46) hide show
  1. package/README.md +24 -24
  2. package/dist-lib/components/LogistiekEnginePage.d.ts.map +1 -1
  3. package/dist-lib/components/LogistiekEnginePage.js +2 -1
  4. package/dist-lib/components/WerkwijzeHerindelingCard.d.ts +2 -0
  5. package/dist-lib/components/WerkwijzeHerindelingCard.d.ts.map +1 -0
  6. package/dist-lib/components/WerkwijzeHerindelingCard.js +36 -0
  7. package/dist-lib/hooks/useRuleEngine.d.ts.map +1 -1
  8. package/dist-lib/hooks/useRuleEngine.js +7 -4
  9. package/dist-lib/hooks/useWerkwijzeStatus.d.ts +17 -0
  10. package/dist-lib/hooks/useWerkwijzeStatus.d.ts.map +1 -0
  11. package/dist-lib/hooks/useWerkwijzeStatus.js +58 -0
  12. package/dist-lib/index.d.ts +2 -0
  13. package/dist-lib/index.d.ts.map +1 -1
  14. package/dist-lib/index.js +2 -0
  15. package/dist-lib/integrations/supabase/auth-middleware.d.ts +154 -0
  16. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  17. package/dist-lib/integrations/supabase/client.d.ts +1516 -159
  18. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  19. package/dist-lib/integrations/supabase/client.server.d.ts +154 -0
  20. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  21. package/dist-lib/integrations/supabase/moduleClient.d.ts +154 -0
  22. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  23. package/dist-lib/integrations/supabase/types.d.ts +154 -0
  24. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  25. package/dist-lib/lib/floridayDocuments.functions.d.ts +462 -0
  26. package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
  27. package/dist-lib/lib/floridayDocuments.server.d.ts +7 -1
  28. package/dist-lib/lib/floridayDocuments.server.d.ts.map +1 -1
  29. package/dist-lib/lib/floridayDocuments.server.js +25 -1
  30. package/dist-lib/lib/floridayPush.functions.d.ts +154 -0
  31. package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -1
  32. package/dist-lib/lib/floridayPush.server.d.ts.map +1 -1
  33. package/dist-lib/lib/floridayPush.server.js +28 -0
  34. package/dist-lib/lib/handlers/logistics-tick.server.d.ts.map +1 -1
  35. package/dist-lib/lib/handlers/logistics-tick.server.js +14 -0
  36. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +770 -0
  37. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
  38. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +308 -0
  39. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
  40. package/dist-lib/lib/logisticsRecalculate.functions.d.ts +154 -0
  41. package/dist-lib/lib/logisticsRecalculate.functions.d.ts.map +1 -1
  42. package/dist-lib/lib/modulePrompts.d.ts.map +1 -1
  43. package/dist-lib/lib/modulePrompts.js +2613 -2406
  44. package/dist-lib/lib/ruleEngineSchema.d.ts.map +1 -1
  45. package/dist-lib/lib/ruleEngineSchema.js +7 -0
  46. package/package.json +1 -1
@@ -2154,6 +2154,8 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
2154
2154
  created_at: string;
2155
2155
  currency: string;
2156
2156
  distribute_over: string | null;
2157
+ external_id: string | null;
2158
+ external_synced_at: string | null;
2157
2159
  group_type: string;
2158
2160
  handling_fee: number | null;
2159
2161
  id: string;
@@ -2166,6 +2168,7 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
2166
2168
  rounding: string;
2167
2169
  rounding_step: number;
2168
2170
  sort_order: number;
2171
+ source: string;
2169
2172
  unit: string;
2170
2173
  updated_at: string;
2171
2174
  };
@@ -2176,6 +2179,8 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
2176
2179
  created_at?: string;
2177
2180
  currency?: string;
2178
2181
  distribute_over?: string | null;
2182
+ external_id?: string | null;
2183
+ external_synced_at?: string | null;
2179
2184
  group_type?: string;
2180
2185
  handling_fee?: number | null;
2181
2186
  id?: string;
@@ -2188,6 +2193,7 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
2188
2193
  rounding?: string;
2189
2194
  rounding_step?: number;
2190
2195
  sort_order?: number;
2196
+ source?: string;
2191
2197
  unit?: string;
2192
2198
  updated_at?: string;
2193
2199
  };
@@ -2198,6 +2204,8 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
2198
2204
  created_at?: string;
2199
2205
  currency?: string;
2200
2206
  distribute_over?: string | null;
2207
+ external_id?: string | null;
2208
+ external_synced_at?: string | null;
2201
2209
  group_type?: string;
2202
2210
  handling_fee?: number | null;
2203
2211
  id?: string;
@@ -2210,6 +2218,7 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
2210
2218
  rounding?: string;
2211
2219
  rounding_step?: number;
2212
2220
  sort_order?: number;
2221
+ source?: string;
2213
2222
  unit?: string;
2214
2223
  updated_at?: string;
2215
2224
  };
@@ -9073,6 +9082,30 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
9073
9082
  referencedColumns: ["id"];
9074
9083
  }];
9075
9084
  };
9085
+ job_locks: {
9086
+ Row: {
9087
+ created_at: string;
9088
+ lock_key: string;
9089
+ locked_until: string;
9090
+ owner: string | null;
9091
+ updated_at: string;
9092
+ };
9093
+ Insert: {
9094
+ created_at?: string;
9095
+ lock_key: string;
9096
+ locked_until: string;
9097
+ owner?: string | null;
9098
+ updated_at?: string;
9099
+ };
9100
+ Update: {
9101
+ created_at?: string;
9102
+ lock_key?: string;
9103
+ locked_until?: string;
9104
+ owner?: string | null;
9105
+ updated_at?: string;
9106
+ };
9107
+ Relationships: [];
9108
+ };
9076
9109
  layout_logos: {
9077
9110
  Row: {
9078
9111
  bestand_url: string;
@@ -13618,6 +13651,27 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
13618
13651
  };
13619
13652
  Relationships: [];
13620
13653
  };
13654
+ pick_buffer_event_cursor: {
13655
+ Row: {
13656
+ created_at: string;
13657
+ id: boolean;
13658
+ last_event_at: string;
13659
+ updated_at: string;
13660
+ };
13661
+ Insert: {
13662
+ created_at?: string;
13663
+ id?: boolean;
13664
+ last_event_at?: string;
13665
+ updated_at?: string;
13666
+ };
13667
+ Update: {
13668
+ created_at?: string;
13669
+ id?: boolean;
13670
+ last_event_at?: string;
13671
+ updated_at?: string;
13672
+ };
13673
+ Relationships: [];
13674
+ };
13621
13675
  pick_countries: {
13622
13676
  Row: {
13623
13677
  active: boolean;
@@ -22134,6 +22188,17 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
22134
22188
  };
22135
22189
  Returns: boolean;
22136
22190
  };
22191
+ floriday_adopt_connection: {
22192
+ Args: {
22193
+ p_new: string;
22194
+ p_old: string;
22195
+ };
22196
+ Returns: import("../integrations/supabase/types").Json;
22197
+ };
22198
+ floriday_autoheal_connections: {
22199
+ Args: never;
22200
+ Returns: import("../integrations/supabase/types").Json;
22201
+ };
22137
22202
  floriday_capture_stock_snapshot: {
22138
22203
  Args: never;
22139
22204
  Returns: number;
@@ -22191,6 +22256,12 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
22191
22256
  };
22192
22257
  Returns: undefined;
22193
22258
  };
22259
+ floriday_relink_products: {
22260
+ Args: {
22261
+ p_connection_id?: string;
22262
+ };
22263
+ Returns: import("../integrations/supabase/types").Json;
22264
+ };
22194
22265
  floriday_requeue_dead_letters: {
22195
22266
  Args: {
22196
22267
  p_connection_id?: string;
@@ -22812,6 +22883,10 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
22812
22883
  };
22813
22884
  Returns: string;
22814
22885
  };
22886
+ logistics_active_layout_method: {
22887
+ Args: never;
22888
+ Returns: string;
22889
+ };
22815
22890
  logistics_active_pick_workdays: {
22816
22891
  Args: never;
22817
22892
  Returns: string[];
@@ -22901,6 +22976,39 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
22901
22976
  };
22902
22977
  Returns: import("../integrations/supabase/types").Json;
22903
22978
  };
22979
+ logistics_buffer_detach_late_orders: {
22980
+ Args: {
22981
+ p_buffer?: string;
22982
+ };
22983
+ Returns: import("../integrations/supabase/types").Json;
22984
+ };
22985
+ logistics_buffer_frozen_order: {
22986
+ Args: {
22987
+ p_order_id: string;
22988
+ };
22989
+ Returns: boolean;
22990
+ };
22991
+ logistics_buffer_handled: {
22992
+ Args: {
22993
+ p_buffer: string;
22994
+ };
22995
+ Returns: boolean;
22996
+ };
22997
+ logistics_buffer_notify: {
22998
+ Args: {
22999
+ p_event_type: string;
23000
+ p_idempotency_key: string;
23001
+ p_order_ref: string;
23002
+ p_payload: import("../integrations/supabase/types").Json;
23003
+ };
23004
+ Returns: string;
23005
+ };
23006
+ logistics_buffer_open_key: {
23007
+ Args: {
23008
+ p_base_key: string;
23009
+ };
23010
+ Returns: string;
23011
+ };
22904
23012
  logistics_buffer_simulate: {
22905
23013
  Args: {
22906
23014
  p_orders?: import("../integrations/supabase/types").Json;
@@ -23542,6 +23650,16 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
23542
23650
  };
23543
23651
  Returns: boolean;
23544
23652
  };
23653
+ logistics_layout_method_status: {
23654
+ Args: never;
23655
+ Returns: import("../integrations/supabase/types").Json;
23656
+ };
23657
+ logistics_link_order_items: {
23658
+ Args: {
23659
+ p_order?: string;
23660
+ };
23661
+ Returns: import("../integrations/supabase/types").Json;
23662
+ };
23545
23663
  logistics_live_carriers: {
23546
23664
  Args: {
23547
23665
  p_order_ref: string;
@@ -23568,6 +23686,12 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
23568
23686
  };
23569
23687
  Returns: string;
23570
23688
  };
23689
+ logistics_normalize_product_label: {
23690
+ Args: {
23691
+ p_label: string;
23692
+ };
23693
+ Returns: string;
23694
+ };
23571
23695
  logistics_not_past: {
23572
23696
  Args: {
23573
23697
  p_ts: string;
@@ -23815,6 +23939,12 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
23815
23939
  };
23816
23940
  Returns: import("../integrations/supabase/types").Json;
23817
23941
  };
23942
+ logistics_replan_all: {
23943
+ Args: {
23944
+ p_reason?: string;
23945
+ };
23946
+ Returns: import("../integrations/supabase/types").Json;
23947
+ };
23818
23948
  logistics_report_delay: {
23819
23949
  Args: {
23820
23950
  p_expected_date?: string;
@@ -23868,6 +23998,12 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
23868
23998
  };
23869
23999
  Returns: import("../integrations/supabase/types").Json;
23870
24000
  };
24001
+ logistics_resolve_product_id: {
24002
+ Args: {
24003
+ p_label: string;
24004
+ };
24005
+ Returns: string;
24006
+ };
23871
24007
  logistics_resolve_settings: {
23872
24008
  Args: {
23873
24009
  p_config_id: string;
@@ -24185,6 +24321,10 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
24185
24321
  online: boolean;
24186
24322
  }[];
24187
24323
  };
24324
+ pick_apply_buffer_events: {
24325
+ Args: never;
24326
+ Returns: import("../integrations/supabase/types").Json;
24327
+ };
24188
24328
  pick_available_pick_days: {
24189
24329
  Args: {
24190
24330
  _max_days?: number;
@@ -25112,6 +25252,12 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
25112
25252
  };
25113
25253
  Returns: boolean;
25114
25254
  };
25255
+ release_job_lock: {
25256
+ Args: {
25257
+ _key: string;
25258
+ };
25259
+ Returns: undefined;
25260
+ };
25115
25261
  release_local_pdf_job: {
25116
25262
  Args: {
25117
25263
  _job_id: string;
@@ -25800,6 +25946,14 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
25800
25946
  row_count: number;
25801
25947
  }[];
25802
25948
  };
25949
+ try_acquire_job_lock: {
25950
+ Args: {
25951
+ _key: string;
25952
+ _owner?: string;
25953
+ _seconds?: number;
25954
+ };
25955
+ Returns: boolean;
25956
+ };
25803
25957
  try_debtor_lock: {
25804
25958
  Args: {
25805
25959
  _group_key: string;
@@ -28112,6 +28266,8 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
28112
28266
  created_at: string;
28113
28267
  currency: string;
28114
28268
  distribute_over: string | null;
28269
+ external_id: string | null;
28270
+ external_synced_at: string | null;
28115
28271
  group_type: string;
28116
28272
  handling_fee: number | null;
28117
28273
  id: string;
@@ -28124,6 +28280,7 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
28124
28280
  rounding: string;
28125
28281
  rounding_step: number;
28126
28282
  sort_order: number;
28283
+ source: string;
28127
28284
  unit: string;
28128
28285
  updated_at: string;
28129
28286
  };
@@ -28134,6 +28291,8 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
28134
28291
  created_at?: string;
28135
28292
  currency?: string;
28136
28293
  distribute_over?: string | null;
28294
+ external_id?: string | null;
28295
+ external_synced_at?: string | null;
28137
28296
  group_type?: string;
28138
28297
  handling_fee?: number | null;
28139
28298
  id?: string;
@@ -28146,6 +28305,7 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
28146
28305
  rounding?: string;
28147
28306
  rounding_step?: number;
28148
28307
  sort_order?: number;
28308
+ source?: string;
28149
28309
  unit?: string;
28150
28310
  updated_at?: string;
28151
28311
  };
@@ -28156,6 +28316,8 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
28156
28316
  created_at?: string;
28157
28317
  currency?: string;
28158
28318
  distribute_over?: string | null;
28319
+ external_id?: string | null;
28320
+ external_synced_at?: string | null;
28159
28321
  group_type?: string;
28160
28322
  handling_fee?: number | null;
28161
28323
  id?: string;
@@ -28168,6 +28330,7 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
28168
28330
  rounding?: string;
28169
28331
  rounding_step?: number;
28170
28332
  sort_order?: number;
28333
+ source?: string;
28171
28334
  unit?: string;
28172
28335
  updated_at?: string;
28173
28336
  };
@@ -35031,6 +35194,30 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
35031
35194
  referencedColumns: ["id"];
35032
35195
  }];
35033
35196
  };
35197
+ job_locks: {
35198
+ Row: {
35199
+ created_at: string;
35200
+ lock_key: string;
35201
+ locked_until: string;
35202
+ owner: string | null;
35203
+ updated_at: string;
35204
+ };
35205
+ Insert: {
35206
+ created_at?: string;
35207
+ lock_key: string;
35208
+ locked_until: string;
35209
+ owner?: string | null;
35210
+ updated_at?: string;
35211
+ };
35212
+ Update: {
35213
+ created_at?: string;
35214
+ lock_key?: string;
35215
+ locked_until?: string;
35216
+ owner?: string | null;
35217
+ updated_at?: string;
35218
+ };
35219
+ Relationships: [];
35220
+ };
35034
35221
  layout_logos: {
35035
35222
  Row: {
35036
35223
  bestand_url: string;
@@ -39576,6 +39763,27 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
39576
39763
  };
39577
39764
  Relationships: [];
39578
39765
  };
39766
+ pick_buffer_event_cursor: {
39767
+ Row: {
39768
+ created_at: string;
39769
+ id: boolean;
39770
+ last_event_at: string;
39771
+ updated_at: string;
39772
+ };
39773
+ Insert: {
39774
+ created_at?: string;
39775
+ id?: boolean;
39776
+ last_event_at?: string;
39777
+ updated_at?: string;
39778
+ };
39779
+ Update: {
39780
+ created_at?: string;
39781
+ id?: boolean;
39782
+ last_event_at?: string;
39783
+ updated_at?: string;
39784
+ };
39785
+ Relationships: [];
39786
+ };
39579
39787
  pick_countries: {
39580
39788
  Row: {
39581
39789
  active: boolean;
@@ -48092,6 +48300,17 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
48092
48300
  };
48093
48301
  Returns: boolean;
48094
48302
  };
48303
+ floriday_adopt_connection: {
48304
+ Args: {
48305
+ p_new: string;
48306
+ p_old: string;
48307
+ };
48308
+ Returns: import("../integrations/supabase/types").Json;
48309
+ };
48310
+ floriday_autoheal_connections: {
48311
+ Args: never;
48312
+ Returns: import("../integrations/supabase/types").Json;
48313
+ };
48095
48314
  floriday_capture_stock_snapshot: {
48096
48315
  Args: never;
48097
48316
  Returns: number;
@@ -48149,6 +48368,12 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
48149
48368
  };
48150
48369
  Returns: undefined;
48151
48370
  };
48371
+ floriday_relink_products: {
48372
+ Args: {
48373
+ p_connection_id?: string;
48374
+ };
48375
+ Returns: import("../integrations/supabase/types").Json;
48376
+ };
48152
48377
  floriday_requeue_dead_letters: {
48153
48378
  Args: {
48154
48379
  p_connection_id?: string;
@@ -48770,6 +48995,10 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
48770
48995
  };
48771
48996
  Returns: string;
48772
48997
  };
48998
+ logistics_active_layout_method: {
48999
+ Args: never;
49000
+ Returns: string;
49001
+ };
48773
49002
  logistics_active_pick_workdays: {
48774
49003
  Args: never;
48775
49004
  Returns: string[];
@@ -48859,6 +49088,39 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
48859
49088
  };
48860
49089
  Returns: import("../integrations/supabase/types").Json;
48861
49090
  };
49091
+ logistics_buffer_detach_late_orders: {
49092
+ Args: {
49093
+ p_buffer?: string;
49094
+ };
49095
+ Returns: import("../integrations/supabase/types").Json;
49096
+ };
49097
+ logistics_buffer_frozen_order: {
49098
+ Args: {
49099
+ p_order_id: string;
49100
+ };
49101
+ Returns: boolean;
49102
+ };
49103
+ logistics_buffer_handled: {
49104
+ Args: {
49105
+ p_buffer: string;
49106
+ };
49107
+ Returns: boolean;
49108
+ };
49109
+ logistics_buffer_notify: {
49110
+ Args: {
49111
+ p_event_type: string;
49112
+ p_idempotency_key: string;
49113
+ p_order_ref: string;
49114
+ p_payload: import("../integrations/supabase/types").Json;
49115
+ };
49116
+ Returns: string;
49117
+ };
49118
+ logistics_buffer_open_key: {
49119
+ Args: {
49120
+ p_base_key: string;
49121
+ };
49122
+ Returns: string;
49123
+ };
48862
49124
  logistics_buffer_simulate: {
48863
49125
  Args: {
48864
49126
  p_orders?: import("../integrations/supabase/types").Json;
@@ -49500,6 +49762,16 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
49500
49762
  };
49501
49763
  Returns: boolean;
49502
49764
  };
49765
+ logistics_layout_method_status: {
49766
+ Args: never;
49767
+ Returns: import("../integrations/supabase/types").Json;
49768
+ };
49769
+ logistics_link_order_items: {
49770
+ Args: {
49771
+ p_order?: string;
49772
+ };
49773
+ Returns: import("../integrations/supabase/types").Json;
49774
+ };
49503
49775
  logistics_live_carriers: {
49504
49776
  Args: {
49505
49777
  p_order_ref: string;
@@ -49526,6 +49798,12 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
49526
49798
  };
49527
49799
  Returns: string;
49528
49800
  };
49801
+ logistics_normalize_product_label: {
49802
+ Args: {
49803
+ p_label: string;
49804
+ };
49805
+ Returns: string;
49806
+ };
49529
49807
  logistics_not_past: {
49530
49808
  Args: {
49531
49809
  p_ts: string;
@@ -49773,6 +50051,12 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
49773
50051
  };
49774
50052
  Returns: import("../integrations/supabase/types").Json;
49775
50053
  };
50054
+ logistics_replan_all: {
50055
+ Args: {
50056
+ p_reason?: string;
50057
+ };
50058
+ Returns: import("../integrations/supabase/types").Json;
50059
+ };
49776
50060
  logistics_report_delay: {
49777
50061
  Args: {
49778
50062
  p_expected_date?: string;
@@ -49826,6 +50110,12 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
49826
50110
  };
49827
50111
  Returns: import("../integrations/supabase/types").Json;
49828
50112
  };
50113
+ logistics_resolve_product_id: {
50114
+ Args: {
50115
+ p_label: string;
50116
+ };
50117
+ Returns: string;
50118
+ };
49829
50119
  logistics_resolve_settings: {
49830
50120
  Args: {
49831
50121
  p_config_id: string;
@@ -50143,6 +50433,10 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
50143
50433
  online: boolean;
50144
50434
  }[];
50145
50435
  };
50436
+ pick_apply_buffer_events: {
50437
+ Args: never;
50438
+ Returns: import("../integrations/supabase/types").Json;
50439
+ };
50146
50440
  pick_available_pick_days: {
50147
50441
  Args: {
50148
50442
  _max_days?: number;
@@ -51070,6 +51364,12 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
51070
51364
  };
51071
51365
  Returns: boolean;
51072
51366
  };
51367
+ release_job_lock: {
51368
+ Args: {
51369
+ _key: string;
51370
+ };
51371
+ Returns: undefined;
51372
+ };
51073
51373
  release_local_pdf_job: {
51074
51374
  Args: {
51075
51375
  _job_id: string;
@@ -51758,6 +52058,14 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
51758
52058
  row_count: number;
51759
52059
  }[];
51760
52060
  };
52061
+ try_acquire_job_lock: {
52062
+ Args: {
52063
+ _key: string;
52064
+ _owner?: string;
52065
+ _seconds?: number;
52066
+ };
52067
+ Returns: boolean;
52068
+ };
51761
52069
  try_debtor_lock: {
51762
52070
  Args: {
51763
52071
  _group_key: string;
@@ -54074,6 +54382,8 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
54074
54382
  created_at: string;
54075
54383
  currency: string;
54076
54384
  distribute_over: string | null;
54385
+ external_id: string | null;
54386
+ external_synced_at: string | null;
54077
54387
  group_type: string;
54078
54388
  handling_fee: number | null;
54079
54389
  id: string;
@@ -54086,6 +54396,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
54086
54396
  rounding: string;
54087
54397
  rounding_step: number;
54088
54398
  sort_order: number;
54399
+ source: string;
54089
54400
  unit: string;
54090
54401
  updated_at: string;
54091
54402
  };
@@ -54096,6 +54407,8 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
54096
54407
  created_at?: string;
54097
54408
  currency?: string;
54098
54409
  distribute_over?: string | null;
54410
+ external_id?: string | null;
54411
+ external_synced_at?: string | null;
54099
54412
  group_type?: string;
54100
54413
  handling_fee?: number | null;
54101
54414
  id?: string;
@@ -54108,6 +54421,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
54108
54421
  rounding?: string;
54109
54422
  rounding_step?: number;
54110
54423
  sort_order?: number;
54424
+ source?: string;
54111
54425
  unit?: string;
54112
54426
  updated_at?: string;
54113
54427
  };
@@ -54118,6 +54432,8 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
54118
54432
  created_at?: string;
54119
54433
  currency?: string;
54120
54434
  distribute_over?: string | null;
54435
+ external_id?: string | null;
54436
+ external_synced_at?: string | null;
54121
54437
  group_type?: string;
54122
54438
  handling_fee?: number | null;
54123
54439
  id?: string;
@@ -54130,6 +54446,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
54130
54446
  rounding?: string;
54131
54447
  rounding_step?: number;
54132
54448
  sort_order?: number;
54449
+ source?: string;
54133
54450
  unit?: string;
54134
54451
  updated_at?: string;
54135
54452
  };
@@ -60993,6 +61310,30 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
60993
61310
  referencedColumns: ["id"];
60994
61311
  }];
60995
61312
  };
61313
+ job_locks: {
61314
+ Row: {
61315
+ created_at: string;
61316
+ lock_key: string;
61317
+ locked_until: string;
61318
+ owner: string | null;
61319
+ updated_at: string;
61320
+ };
61321
+ Insert: {
61322
+ created_at?: string;
61323
+ lock_key: string;
61324
+ locked_until: string;
61325
+ owner?: string | null;
61326
+ updated_at?: string;
61327
+ };
61328
+ Update: {
61329
+ created_at?: string;
61330
+ lock_key?: string;
61331
+ locked_until?: string;
61332
+ owner?: string | null;
61333
+ updated_at?: string;
61334
+ };
61335
+ Relationships: [];
61336
+ };
60996
61337
  layout_logos: {
60997
61338
  Row: {
60998
61339
  bestand_url: string;
@@ -65538,6 +65879,27 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
65538
65879
  };
65539
65880
  Relationships: [];
65540
65881
  };
65882
+ pick_buffer_event_cursor: {
65883
+ Row: {
65884
+ created_at: string;
65885
+ id: boolean;
65886
+ last_event_at: string;
65887
+ updated_at: string;
65888
+ };
65889
+ Insert: {
65890
+ created_at?: string;
65891
+ id?: boolean;
65892
+ last_event_at?: string;
65893
+ updated_at?: string;
65894
+ };
65895
+ Update: {
65896
+ created_at?: string;
65897
+ id?: boolean;
65898
+ last_event_at?: string;
65899
+ updated_at?: string;
65900
+ };
65901
+ Relationships: [];
65902
+ };
65541
65903
  pick_countries: {
65542
65904
  Row: {
65543
65905
  active: boolean;
@@ -74054,6 +74416,17 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
74054
74416
  };
74055
74417
  Returns: boolean;
74056
74418
  };
74419
+ floriday_adopt_connection: {
74420
+ Args: {
74421
+ p_new: string;
74422
+ p_old: string;
74423
+ };
74424
+ Returns: import("../integrations/supabase/types").Json;
74425
+ };
74426
+ floriday_autoheal_connections: {
74427
+ Args: never;
74428
+ Returns: import("../integrations/supabase/types").Json;
74429
+ };
74057
74430
  floriday_capture_stock_snapshot: {
74058
74431
  Args: never;
74059
74432
  Returns: number;
@@ -74111,6 +74484,12 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
74111
74484
  };
74112
74485
  Returns: undefined;
74113
74486
  };
74487
+ floriday_relink_products: {
74488
+ Args: {
74489
+ p_connection_id?: string;
74490
+ };
74491
+ Returns: import("../integrations/supabase/types").Json;
74492
+ };
74114
74493
  floriday_requeue_dead_letters: {
74115
74494
  Args: {
74116
74495
  p_connection_id?: string;
@@ -74732,6 +75111,10 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
74732
75111
  };
74733
75112
  Returns: string;
74734
75113
  };
75114
+ logistics_active_layout_method: {
75115
+ Args: never;
75116
+ Returns: string;
75117
+ };
74735
75118
  logistics_active_pick_workdays: {
74736
75119
  Args: never;
74737
75120
  Returns: string[];
@@ -74821,6 +75204,39 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
74821
75204
  };
74822
75205
  Returns: import("../integrations/supabase/types").Json;
74823
75206
  };
75207
+ logistics_buffer_detach_late_orders: {
75208
+ Args: {
75209
+ p_buffer?: string;
75210
+ };
75211
+ Returns: import("../integrations/supabase/types").Json;
75212
+ };
75213
+ logistics_buffer_frozen_order: {
75214
+ Args: {
75215
+ p_order_id: string;
75216
+ };
75217
+ Returns: boolean;
75218
+ };
75219
+ logistics_buffer_handled: {
75220
+ Args: {
75221
+ p_buffer: string;
75222
+ };
75223
+ Returns: boolean;
75224
+ };
75225
+ logistics_buffer_notify: {
75226
+ Args: {
75227
+ p_event_type: string;
75228
+ p_idempotency_key: string;
75229
+ p_order_ref: string;
75230
+ p_payload: import("../integrations/supabase/types").Json;
75231
+ };
75232
+ Returns: string;
75233
+ };
75234
+ logistics_buffer_open_key: {
75235
+ Args: {
75236
+ p_base_key: string;
75237
+ };
75238
+ Returns: string;
75239
+ };
74824
75240
  logistics_buffer_simulate: {
74825
75241
  Args: {
74826
75242
  p_orders?: import("../integrations/supabase/types").Json;
@@ -75462,6 +75878,16 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
75462
75878
  };
75463
75879
  Returns: boolean;
75464
75880
  };
75881
+ logistics_layout_method_status: {
75882
+ Args: never;
75883
+ Returns: import("../integrations/supabase/types").Json;
75884
+ };
75885
+ logistics_link_order_items: {
75886
+ Args: {
75887
+ p_order?: string;
75888
+ };
75889
+ Returns: import("../integrations/supabase/types").Json;
75890
+ };
75465
75891
  logistics_live_carriers: {
75466
75892
  Args: {
75467
75893
  p_order_ref: string;
@@ -75488,6 +75914,12 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
75488
75914
  };
75489
75915
  Returns: string;
75490
75916
  };
75917
+ logistics_normalize_product_label: {
75918
+ Args: {
75919
+ p_label: string;
75920
+ };
75921
+ Returns: string;
75922
+ };
75491
75923
  logistics_not_past: {
75492
75924
  Args: {
75493
75925
  p_ts: string;
@@ -75735,6 +76167,12 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
75735
76167
  };
75736
76168
  Returns: import("../integrations/supabase/types").Json;
75737
76169
  };
76170
+ logistics_replan_all: {
76171
+ Args: {
76172
+ p_reason?: string;
76173
+ };
76174
+ Returns: import("../integrations/supabase/types").Json;
76175
+ };
75738
76176
  logistics_report_delay: {
75739
76177
  Args: {
75740
76178
  p_expected_date?: string;
@@ -75788,6 +76226,12 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
75788
76226
  };
75789
76227
  Returns: import("../integrations/supabase/types").Json;
75790
76228
  };
76229
+ logistics_resolve_product_id: {
76230
+ Args: {
76231
+ p_label: string;
76232
+ };
76233
+ Returns: string;
76234
+ };
75791
76235
  logistics_resolve_settings: {
75792
76236
  Args: {
75793
76237
  p_config_id: string;
@@ -76105,6 +76549,10 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
76105
76549
  online: boolean;
76106
76550
  }[];
76107
76551
  };
76552
+ pick_apply_buffer_events: {
76553
+ Args: never;
76554
+ Returns: import("../integrations/supabase/types").Json;
76555
+ };
76108
76556
  pick_available_pick_days: {
76109
76557
  Args: {
76110
76558
  _max_days?: number;
@@ -77032,6 +77480,12 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
77032
77480
  };
77033
77481
  Returns: boolean;
77034
77482
  };
77483
+ release_job_lock: {
77484
+ Args: {
77485
+ _key: string;
77486
+ };
77487
+ Returns: undefined;
77488
+ };
77035
77489
  release_local_pdf_job: {
77036
77490
  Args: {
77037
77491
  _job_id: string;
@@ -77720,6 +78174,14 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
77720
78174
  row_count: number;
77721
78175
  }[];
77722
78176
  };
78177
+ try_acquire_job_lock: {
78178
+ Args: {
78179
+ _key: string;
78180
+ _owner?: string;
78181
+ _seconds?: number;
78182
+ };
78183
+ Returns: boolean;
78184
+ };
77723
78185
  try_debtor_lock: {
77724
78186
  Args: {
77725
78187
  _group_key: string;
@@ -80036,6 +80498,8 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
80036
80498
  created_at: string;
80037
80499
  currency: string;
80038
80500
  distribute_over: string | null;
80501
+ external_id: string | null;
80502
+ external_synced_at: string | null;
80039
80503
  group_type: string;
80040
80504
  handling_fee: number | null;
80041
80505
  id: string;
@@ -80048,6 +80512,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
80048
80512
  rounding: string;
80049
80513
  rounding_step: number;
80050
80514
  sort_order: number;
80515
+ source: string;
80051
80516
  unit: string;
80052
80517
  updated_at: string;
80053
80518
  };
@@ -80058,6 +80523,8 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
80058
80523
  created_at?: string;
80059
80524
  currency?: string;
80060
80525
  distribute_over?: string | null;
80526
+ external_id?: string | null;
80527
+ external_synced_at?: string | null;
80061
80528
  group_type?: string;
80062
80529
  handling_fee?: number | null;
80063
80530
  id?: string;
@@ -80070,6 +80537,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
80070
80537
  rounding?: string;
80071
80538
  rounding_step?: number;
80072
80539
  sort_order?: number;
80540
+ source?: string;
80073
80541
  unit?: string;
80074
80542
  updated_at?: string;
80075
80543
  };
@@ -80080,6 +80548,8 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
80080
80548
  created_at?: string;
80081
80549
  currency?: string;
80082
80550
  distribute_over?: string | null;
80551
+ external_id?: string | null;
80552
+ external_synced_at?: string | null;
80083
80553
  group_type?: string;
80084
80554
  handling_fee?: number | null;
80085
80555
  id?: string;
@@ -80092,6 +80562,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
80092
80562
  rounding?: string;
80093
80563
  rounding_step?: number;
80094
80564
  sort_order?: number;
80565
+ source?: string;
80095
80566
  unit?: string;
80096
80567
  updated_at?: string;
80097
80568
  };
@@ -86955,6 +87426,30 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
86955
87426
  referencedColumns: ["id"];
86956
87427
  }];
86957
87428
  };
87429
+ job_locks: {
87430
+ Row: {
87431
+ created_at: string;
87432
+ lock_key: string;
87433
+ locked_until: string;
87434
+ owner: string | null;
87435
+ updated_at: string;
87436
+ };
87437
+ Insert: {
87438
+ created_at?: string;
87439
+ lock_key: string;
87440
+ locked_until: string;
87441
+ owner?: string | null;
87442
+ updated_at?: string;
87443
+ };
87444
+ Update: {
87445
+ created_at?: string;
87446
+ lock_key?: string;
87447
+ locked_until?: string;
87448
+ owner?: string | null;
87449
+ updated_at?: string;
87450
+ };
87451
+ Relationships: [];
87452
+ };
86958
87453
  layout_logos: {
86959
87454
  Row: {
86960
87455
  bestand_url: string;
@@ -91500,6 +91995,27 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
91500
91995
  };
91501
91996
  Relationships: [];
91502
91997
  };
91998
+ pick_buffer_event_cursor: {
91999
+ Row: {
92000
+ created_at: string;
92001
+ id: boolean;
92002
+ last_event_at: string;
92003
+ updated_at: string;
92004
+ };
92005
+ Insert: {
92006
+ created_at?: string;
92007
+ id?: boolean;
92008
+ last_event_at?: string;
92009
+ updated_at?: string;
92010
+ };
92011
+ Update: {
92012
+ created_at?: string;
92013
+ id?: boolean;
92014
+ last_event_at?: string;
92015
+ updated_at?: string;
92016
+ };
92017
+ Relationships: [];
92018
+ };
91503
92019
  pick_countries: {
91504
92020
  Row: {
91505
92021
  active: boolean;
@@ -100016,6 +100532,17 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
100016
100532
  };
100017
100533
  Returns: boolean;
100018
100534
  };
100535
+ floriday_adopt_connection: {
100536
+ Args: {
100537
+ p_new: string;
100538
+ p_old: string;
100539
+ };
100540
+ Returns: import("../integrations/supabase/types").Json;
100541
+ };
100542
+ floriday_autoheal_connections: {
100543
+ Args: never;
100544
+ Returns: import("../integrations/supabase/types").Json;
100545
+ };
100019
100546
  floriday_capture_stock_snapshot: {
100020
100547
  Args: never;
100021
100548
  Returns: number;
@@ -100073,6 +100600,12 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
100073
100600
  };
100074
100601
  Returns: undefined;
100075
100602
  };
100603
+ floriday_relink_products: {
100604
+ Args: {
100605
+ p_connection_id?: string;
100606
+ };
100607
+ Returns: import("../integrations/supabase/types").Json;
100608
+ };
100076
100609
  floriday_requeue_dead_letters: {
100077
100610
  Args: {
100078
100611
  p_connection_id?: string;
@@ -100694,6 +101227,10 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
100694
101227
  };
100695
101228
  Returns: string;
100696
101229
  };
101230
+ logistics_active_layout_method: {
101231
+ Args: never;
101232
+ Returns: string;
101233
+ };
100697
101234
  logistics_active_pick_workdays: {
100698
101235
  Args: never;
100699
101236
  Returns: string[];
@@ -100783,6 +101320,39 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
100783
101320
  };
100784
101321
  Returns: import("../integrations/supabase/types").Json;
100785
101322
  };
101323
+ logistics_buffer_detach_late_orders: {
101324
+ Args: {
101325
+ p_buffer?: string;
101326
+ };
101327
+ Returns: import("../integrations/supabase/types").Json;
101328
+ };
101329
+ logistics_buffer_frozen_order: {
101330
+ Args: {
101331
+ p_order_id: string;
101332
+ };
101333
+ Returns: boolean;
101334
+ };
101335
+ logistics_buffer_handled: {
101336
+ Args: {
101337
+ p_buffer: string;
101338
+ };
101339
+ Returns: boolean;
101340
+ };
101341
+ logistics_buffer_notify: {
101342
+ Args: {
101343
+ p_event_type: string;
101344
+ p_idempotency_key: string;
101345
+ p_order_ref: string;
101346
+ p_payload: import("../integrations/supabase/types").Json;
101347
+ };
101348
+ Returns: string;
101349
+ };
101350
+ logistics_buffer_open_key: {
101351
+ Args: {
101352
+ p_base_key: string;
101353
+ };
101354
+ Returns: string;
101355
+ };
100786
101356
  logistics_buffer_simulate: {
100787
101357
  Args: {
100788
101358
  p_orders?: import("../integrations/supabase/types").Json;
@@ -101424,6 +101994,16 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
101424
101994
  };
101425
101995
  Returns: boolean;
101426
101996
  };
101997
+ logistics_layout_method_status: {
101998
+ Args: never;
101999
+ Returns: import("../integrations/supabase/types").Json;
102000
+ };
102001
+ logistics_link_order_items: {
102002
+ Args: {
102003
+ p_order?: string;
102004
+ };
102005
+ Returns: import("../integrations/supabase/types").Json;
102006
+ };
101427
102007
  logistics_live_carriers: {
101428
102008
  Args: {
101429
102009
  p_order_ref: string;
@@ -101450,6 +102030,12 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
101450
102030
  };
101451
102031
  Returns: string;
101452
102032
  };
102033
+ logistics_normalize_product_label: {
102034
+ Args: {
102035
+ p_label: string;
102036
+ };
102037
+ Returns: string;
102038
+ };
101453
102039
  logistics_not_past: {
101454
102040
  Args: {
101455
102041
  p_ts: string;
@@ -101697,6 +102283,12 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
101697
102283
  };
101698
102284
  Returns: import("../integrations/supabase/types").Json;
101699
102285
  };
102286
+ logistics_replan_all: {
102287
+ Args: {
102288
+ p_reason?: string;
102289
+ };
102290
+ Returns: import("../integrations/supabase/types").Json;
102291
+ };
101700
102292
  logistics_report_delay: {
101701
102293
  Args: {
101702
102294
  p_expected_date?: string;
@@ -101750,6 +102342,12 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
101750
102342
  };
101751
102343
  Returns: import("../integrations/supabase/types").Json;
101752
102344
  };
102345
+ logistics_resolve_product_id: {
102346
+ Args: {
102347
+ p_label: string;
102348
+ };
102349
+ Returns: string;
102350
+ };
101753
102351
  logistics_resolve_settings: {
101754
102352
  Args: {
101755
102353
  p_config_id: string;
@@ -102067,6 +102665,10 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
102067
102665
  online: boolean;
102068
102666
  }[];
102069
102667
  };
102668
+ pick_apply_buffer_events: {
102669
+ Args: never;
102670
+ Returns: import("../integrations/supabase/types").Json;
102671
+ };
102070
102672
  pick_available_pick_days: {
102071
102673
  Args: {
102072
102674
  _max_days?: number;
@@ -102994,6 +103596,12 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
102994
103596
  };
102995
103597
  Returns: boolean;
102996
103598
  };
103599
+ release_job_lock: {
103600
+ Args: {
103601
+ _key: string;
103602
+ };
103603
+ Returns: undefined;
103604
+ };
102997
103605
  release_local_pdf_job: {
102998
103606
  Args: {
102999
103607
  _job_id: string;
@@ -103682,6 +104290,14 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
103682
104290
  row_count: number;
103683
104291
  }[];
103684
104292
  };
104293
+ try_acquire_job_lock: {
104294
+ Args: {
104295
+ _key: string;
104296
+ _owner?: string;
104297
+ _seconds?: number;
104298
+ };
104299
+ Returns: boolean;
104300
+ };
103685
104301
  try_debtor_lock: {
103686
104302
  Args: {
103687
104303
  _group_key: string;
@@ -105996,6 +106612,8 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
105996
106612
  created_at: string;
105997
106613
  currency: string;
105998
106614
  distribute_over: string | null;
106615
+ external_id: string | null;
106616
+ external_synced_at: string | null;
105999
106617
  group_type: string;
106000
106618
  handling_fee: number | null;
106001
106619
  id: string;
@@ -106008,6 +106626,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
106008
106626
  rounding: string;
106009
106627
  rounding_step: number;
106010
106628
  sort_order: number;
106629
+ source: string;
106011
106630
  unit: string;
106012
106631
  updated_at: string;
106013
106632
  };
@@ -106018,6 +106637,8 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
106018
106637
  created_at?: string;
106019
106638
  currency?: string;
106020
106639
  distribute_over?: string | null;
106640
+ external_id?: string | null;
106641
+ external_synced_at?: string | null;
106021
106642
  group_type?: string;
106022
106643
  handling_fee?: number | null;
106023
106644
  id?: string;
@@ -106030,6 +106651,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
106030
106651
  rounding?: string;
106031
106652
  rounding_step?: number;
106032
106653
  sort_order?: number;
106654
+ source?: string;
106033
106655
  unit?: string;
106034
106656
  updated_at?: string;
106035
106657
  };
@@ -106040,6 +106662,8 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
106040
106662
  created_at?: string;
106041
106663
  currency?: string;
106042
106664
  distribute_over?: string | null;
106665
+ external_id?: string | null;
106666
+ external_synced_at?: string | null;
106043
106667
  group_type?: string;
106044
106668
  handling_fee?: number | null;
106045
106669
  id?: string;
@@ -106052,6 +106676,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
106052
106676
  rounding?: string;
106053
106677
  rounding_step?: number;
106054
106678
  sort_order?: number;
106679
+ source?: string;
106055
106680
  unit?: string;
106056
106681
  updated_at?: string;
106057
106682
  };
@@ -112915,6 +113540,30 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
112915
113540
  referencedColumns: ["id"];
112916
113541
  }];
112917
113542
  };
113543
+ job_locks: {
113544
+ Row: {
113545
+ created_at: string;
113546
+ lock_key: string;
113547
+ locked_until: string;
113548
+ owner: string | null;
113549
+ updated_at: string;
113550
+ };
113551
+ Insert: {
113552
+ created_at?: string;
113553
+ lock_key: string;
113554
+ locked_until: string;
113555
+ owner?: string | null;
113556
+ updated_at?: string;
113557
+ };
113558
+ Update: {
113559
+ created_at?: string;
113560
+ lock_key?: string;
113561
+ locked_until?: string;
113562
+ owner?: string | null;
113563
+ updated_at?: string;
113564
+ };
113565
+ Relationships: [];
113566
+ };
112918
113567
  layout_logos: {
112919
113568
  Row: {
112920
113569
  bestand_url: string;
@@ -117460,6 +118109,27 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
117460
118109
  };
117461
118110
  Relationships: [];
117462
118111
  };
118112
+ pick_buffer_event_cursor: {
118113
+ Row: {
118114
+ created_at: string;
118115
+ id: boolean;
118116
+ last_event_at: string;
118117
+ updated_at: string;
118118
+ };
118119
+ Insert: {
118120
+ created_at?: string;
118121
+ id?: boolean;
118122
+ last_event_at?: string;
118123
+ updated_at?: string;
118124
+ };
118125
+ Update: {
118126
+ created_at?: string;
118127
+ id?: boolean;
118128
+ last_event_at?: string;
118129
+ updated_at?: string;
118130
+ };
118131
+ Relationships: [];
118132
+ };
117463
118133
  pick_countries: {
117464
118134
  Row: {
117465
118135
  active: boolean;
@@ -125976,6 +126646,17 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
125976
126646
  };
125977
126647
  Returns: boolean;
125978
126648
  };
126649
+ floriday_adopt_connection: {
126650
+ Args: {
126651
+ p_new: string;
126652
+ p_old: string;
126653
+ };
126654
+ Returns: import("../integrations/supabase/types").Json;
126655
+ };
126656
+ floriday_autoheal_connections: {
126657
+ Args: never;
126658
+ Returns: import("../integrations/supabase/types").Json;
126659
+ };
125979
126660
  floriday_capture_stock_snapshot: {
125980
126661
  Args: never;
125981
126662
  Returns: number;
@@ -126033,6 +126714,12 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
126033
126714
  };
126034
126715
  Returns: undefined;
126035
126716
  };
126717
+ floriday_relink_products: {
126718
+ Args: {
126719
+ p_connection_id?: string;
126720
+ };
126721
+ Returns: import("../integrations/supabase/types").Json;
126722
+ };
126036
126723
  floriday_requeue_dead_letters: {
126037
126724
  Args: {
126038
126725
  p_connection_id?: string;
@@ -126654,6 +127341,10 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
126654
127341
  };
126655
127342
  Returns: string;
126656
127343
  };
127344
+ logistics_active_layout_method: {
127345
+ Args: never;
127346
+ Returns: string;
127347
+ };
126657
127348
  logistics_active_pick_workdays: {
126658
127349
  Args: never;
126659
127350
  Returns: string[];
@@ -126743,6 +127434,39 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
126743
127434
  };
126744
127435
  Returns: import("../integrations/supabase/types").Json;
126745
127436
  };
127437
+ logistics_buffer_detach_late_orders: {
127438
+ Args: {
127439
+ p_buffer?: string;
127440
+ };
127441
+ Returns: import("../integrations/supabase/types").Json;
127442
+ };
127443
+ logistics_buffer_frozen_order: {
127444
+ Args: {
127445
+ p_order_id: string;
127446
+ };
127447
+ Returns: boolean;
127448
+ };
127449
+ logistics_buffer_handled: {
127450
+ Args: {
127451
+ p_buffer: string;
127452
+ };
127453
+ Returns: boolean;
127454
+ };
127455
+ logistics_buffer_notify: {
127456
+ Args: {
127457
+ p_event_type: string;
127458
+ p_idempotency_key: string;
127459
+ p_order_ref: string;
127460
+ p_payload: import("../integrations/supabase/types").Json;
127461
+ };
127462
+ Returns: string;
127463
+ };
127464
+ logistics_buffer_open_key: {
127465
+ Args: {
127466
+ p_base_key: string;
127467
+ };
127468
+ Returns: string;
127469
+ };
126746
127470
  logistics_buffer_simulate: {
126747
127471
  Args: {
126748
127472
  p_orders?: import("../integrations/supabase/types").Json;
@@ -127384,6 +128108,16 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
127384
128108
  };
127385
128109
  Returns: boolean;
127386
128110
  };
128111
+ logistics_layout_method_status: {
128112
+ Args: never;
128113
+ Returns: import("../integrations/supabase/types").Json;
128114
+ };
128115
+ logistics_link_order_items: {
128116
+ Args: {
128117
+ p_order?: string;
128118
+ };
128119
+ Returns: import("../integrations/supabase/types").Json;
128120
+ };
127387
128121
  logistics_live_carriers: {
127388
128122
  Args: {
127389
128123
  p_order_ref: string;
@@ -127410,6 +128144,12 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
127410
128144
  };
127411
128145
  Returns: string;
127412
128146
  };
128147
+ logistics_normalize_product_label: {
128148
+ Args: {
128149
+ p_label: string;
128150
+ };
128151
+ Returns: string;
128152
+ };
127413
128153
  logistics_not_past: {
127414
128154
  Args: {
127415
128155
  p_ts: string;
@@ -127657,6 +128397,12 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
127657
128397
  };
127658
128398
  Returns: import("../integrations/supabase/types").Json;
127659
128399
  };
128400
+ logistics_replan_all: {
128401
+ Args: {
128402
+ p_reason?: string;
128403
+ };
128404
+ Returns: import("../integrations/supabase/types").Json;
128405
+ };
127660
128406
  logistics_report_delay: {
127661
128407
  Args: {
127662
128408
  p_expected_date?: string;
@@ -127710,6 +128456,12 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
127710
128456
  };
127711
128457
  Returns: import("../integrations/supabase/types").Json;
127712
128458
  };
128459
+ logistics_resolve_product_id: {
128460
+ Args: {
128461
+ p_label: string;
128462
+ };
128463
+ Returns: string;
128464
+ };
127713
128465
  logistics_resolve_settings: {
127714
128466
  Args: {
127715
128467
  p_config_id: string;
@@ -128027,6 +128779,10 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
128027
128779
  online: boolean;
128028
128780
  }[];
128029
128781
  };
128782
+ pick_apply_buffer_events: {
128783
+ Args: never;
128784
+ Returns: import("../integrations/supabase/types").Json;
128785
+ };
128030
128786
  pick_available_pick_days: {
128031
128787
  Args: {
128032
128788
  _max_days?: number;
@@ -128954,6 +129710,12 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
128954
129710
  };
128955
129711
  Returns: boolean;
128956
129712
  };
129713
+ release_job_lock: {
129714
+ Args: {
129715
+ _key: string;
129716
+ };
129717
+ Returns: undefined;
129718
+ };
128957
129719
  release_local_pdf_job: {
128958
129720
  Args: {
128959
129721
  _job_id: string;
@@ -129642,6 +130404,14 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
129642
130404
  row_count: number;
129643
130405
  }[];
129644
130406
  };
130407
+ try_acquire_job_lock: {
130408
+ Args: {
130409
+ _key: string;
130410
+ _owner?: string;
130411
+ _seconds?: number;
130412
+ };
130413
+ Returns: boolean;
130414
+ };
129645
130415
  try_debtor_lock: {
129646
130416
  Args: {
129647
130417
  _group_key: string;