@flowselections/floriday-klanten-module 1.0.30 → 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 (47) hide show
  1. package/dist-lib/integrations/supabase/auth-middleware.d.ts +255 -0
  2. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  3. package/dist-lib/integrations/supabase/client.d.ts +255 -0
  4. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  5. package/dist-lib/integrations/supabase/client.server.d.ts +255 -0
  6. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  7. package/dist-lib/integrations/supabase/types.d.ts +255 -0
  8. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  9. package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts +765 -0
  10. package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts.map +1 -1
  11. package/dist-lib/lib/accounting.functions.d.ts +765 -0
  12. package/dist-lib/lib/accounting.functions.d.ts.map +1 -1
  13. package/dist-lib/lib/customer-analytics.functions.d.ts +255 -0
  14. package/dist-lib/lib/customer-analytics.functions.d.ts.map +1 -1
  15. package/dist-lib/lib/customer-notes.functions.d.ts +510 -0
  16. package/dist-lib/lib/customer-notes.functions.d.ts.map +1 -1
  17. package/dist-lib/lib/customer-revenue.functions.d.ts +255 -0
  18. package/dist-lib/lib/customer-revenue.functions.d.ts.map +1 -1
  19. package/dist-lib/lib/customers.functions.d.ts +2370 -75
  20. package/dist-lib/lib/customers.functions.d.ts.map +1 -1
  21. package/dist-lib/lib/delivery-locations.functions.d.ts +1095 -75
  22. package/dist-lib/lib/delivery-locations.functions.d.ts.map +1 -1
  23. package/dist-lib/lib/external-customers.functions.d.ts +1095 -75
  24. package/dist-lib/lib/external-customers.functions.d.ts.map +1 -1
  25. package/dist-lib/lib/floriday-assortment.functions.d.ts +255 -0
  26. package/dist-lib/lib/floriday-assortment.functions.d.ts.map +1 -1
  27. package/dist-lib/lib/floriday-discounts.functions.d.ts +510 -0
  28. package/dist-lib/lib/floriday-discounts.functions.d.ts.map +1 -1
  29. package/dist-lib/lib/floriday-trade-items.functions.d.ts +255 -0
  30. package/dist-lib/lib/floriday-trade-items.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/local-discounts.functions.d.ts +1860 -75
  32. package/dist-lib/lib/local-discounts.functions.d.ts.map +1 -1
  33. package/dist-lib/lib/logistics-events.functions.d.ts +255 -0
  34. package/dist-lib/lib/logistics-events.functions.d.ts.map +1 -1
  35. package/dist-lib/lib/logistics-strategy.functions.d.ts +1095 -75
  36. package/dist-lib/lib/logistics-strategy.functions.d.ts.map +1 -1
  37. package/dist-lib/lib/overdue-invoices.functions.d.ts +255 -0
  38. package/dist-lib/lib/overdue-invoices.functions.d.ts.map +1 -1
  39. package/dist-lib/lib/price-groups-local.functions.d.ts +1860 -75
  40. package/dist-lib/lib/price-groups-local.functions.d.ts.map +1 -1
  41. package/dist-lib/lib/price-groups.functions.d.ts +255 -0
  42. package/dist-lib/lib/price-groups.functions.d.ts.map +1 -1
  43. package/dist-lib/lib/twinfield-adopt.functions.d.ts +510 -0
  44. package/dist-lib/lib/twinfield-adopt.functions.d.ts.map +1 -1
  45. package/dist-lib/lib/twinfield-ledger.functions.d.ts +255 -0
  46. package/dist-lib/lib/twinfield-ledger.functions.d.ts.map +1 -1
  47. package/package.json +1 -1
@@ -5705,12 +5705,17 @@ export declare const precheckTwinfieldPush: import("@tanstack/start-client-core"
5705
5705
  attempts: number;
5706
5706
  connection_id: string;
5707
5707
  created_at: string;
5708
+ desired_available: boolean | null;
5708
5709
  gateway_attempt_id: string | null;
5709
5710
  id: string;
5710
5711
  last_error: string | null;
5712
+ locked_at: string | null;
5713
+ locked_by: string | null;
5714
+ next_attempt_at: string;
5711
5715
  number_of_pieces: number;
5712
5716
  sent_at: string | null;
5713
5717
  status: string;
5718
+ superseded_by: string | null;
5714
5719
  trade_item_id: string;
5715
5720
  updated_at: string;
5716
5721
  user_id: string;
@@ -5719,12 +5724,17 @@ export declare const precheckTwinfieldPush: import("@tanstack/start-client-core"
5719
5724
  attempts?: number;
5720
5725
  connection_id: string;
5721
5726
  created_at?: string;
5727
+ desired_available?: boolean | null;
5722
5728
  gateway_attempt_id?: string | null;
5723
5729
  id?: string;
5724
5730
  last_error?: string | null;
5731
+ locked_at?: string | null;
5732
+ locked_by?: string | null;
5733
+ next_attempt_at?: string;
5725
5734
  number_of_pieces?: number;
5726
5735
  sent_at?: string | null;
5727
5736
  status?: string;
5737
+ superseded_by?: string | null;
5728
5738
  trade_item_id: string;
5729
5739
  updated_at?: string;
5730
5740
  user_id: string;
@@ -5733,12 +5743,17 @@ export declare const precheckTwinfieldPush: import("@tanstack/start-client-core"
5733
5743
  attempts?: number;
5734
5744
  connection_id?: string;
5735
5745
  created_at?: string;
5746
+ desired_available?: boolean | null;
5736
5747
  gateway_attempt_id?: string | null;
5737
5748
  id?: string;
5738
5749
  last_error?: string | null;
5750
+ locked_at?: string | null;
5751
+ locked_by?: string | null;
5752
+ next_attempt_at?: string;
5739
5753
  number_of_pieces?: number;
5740
5754
  sent_at?: string | null;
5741
5755
  status?: string;
5756
+ superseded_by?: string | null;
5742
5757
  trade_item_id?: string;
5743
5758
  updated_at?: string;
5744
5759
  user_id?: string;
@@ -8487,6 +8502,69 @@ export declare const precheckTwinfieldPush: import("@tanstack/start-client-core"
8487
8502
  };
8488
8503
  Relationships: [];
8489
8504
  };
8505
+ logistics_floriday_pushes: {
8506
+ Row: {
8507
+ attempts: number;
8508
+ created_at: string;
8509
+ first_queued_at: string;
8510
+ fulfillment_order_id: string | null;
8511
+ id: string;
8512
+ last_error: string | null;
8513
+ last_error_at: string | null;
8514
+ last_sent_hash: string | null;
8515
+ locked_by: string | null;
8516
+ locked_until: string | null;
8517
+ next_attempt_at: string;
8518
+ order_ref: string;
8519
+ payload: import("../integrations/supabase/types").Json;
8520
+ payload_hash: string | null;
8521
+ revision: number;
8522
+ sent_at: string | null;
8523
+ status: string;
8524
+ updated_at: string;
8525
+ };
8526
+ Insert: {
8527
+ attempts?: number;
8528
+ created_at?: string;
8529
+ first_queued_at?: string;
8530
+ fulfillment_order_id?: string | null;
8531
+ id?: string;
8532
+ last_error?: string | null;
8533
+ last_error_at?: string | null;
8534
+ last_sent_hash?: string | null;
8535
+ locked_by?: string | null;
8536
+ locked_until?: string | null;
8537
+ next_attempt_at?: string;
8538
+ order_ref: string;
8539
+ payload?: import("../integrations/supabase/types").Json;
8540
+ payload_hash?: string | null;
8541
+ revision?: number;
8542
+ sent_at?: string | null;
8543
+ status?: string;
8544
+ updated_at?: string;
8545
+ };
8546
+ Update: {
8547
+ attempts?: number;
8548
+ created_at?: string;
8549
+ first_queued_at?: string;
8550
+ fulfillment_order_id?: string | null;
8551
+ id?: string;
8552
+ last_error?: string | null;
8553
+ last_error_at?: string | null;
8554
+ last_sent_hash?: string | null;
8555
+ locked_by?: string | null;
8556
+ locked_until?: string | null;
8557
+ next_attempt_at?: string;
8558
+ order_ref?: string;
8559
+ payload?: import("../integrations/supabase/types").Json;
8560
+ payload_hash?: string | null;
8561
+ revision?: number;
8562
+ sent_at?: string | null;
8563
+ status?: string;
8564
+ updated_at?: string;
8565
+ };
8566
+ Relationships: [];
8567
+ };
8490
8568
  logistics_formulas: {
8491
8569
  Row: {
8492
8570
  created_at: string;
@@ -9098,6 +9176,8 @@ export declare const precheckTwinfieldPush: import("@tanstack/start-client-core"
9098
9176
  };
9099
9177
  logistics_tasks: {
9100
9178
  Row: {
9179
+ attempt_log: import("../integrations/supabase/types").Json;
9180
+ attempts: number;
9101
9181
  buffer_ref: string | null;
9102
9182
  claimed_at: string | null;
9103
9183
  claimed_by: string | null;
@@ -9107,6 +9187,8 @@ export declare const precheckTwinfieldPush: import("@tanstack/start-client-core"
9107
9187
  due_at: string | null;
9108
9188
  error: string | null;
9109
9189
  id: string;
9190
+ last_error: string | null;
9191
+ next_attempt_at: string | null;
9110
9192
  order_ref: string;
9111
9193
  owner_module: string;
9112
9194
  payload: import("../integrations/supabase/types").Json;
@@ -9127,6 +9209,8 @@ export declare const precheckTwinfieldPush: import("@tanstack/start-client-core"
9127
9209
  user_id: string;
9128
9210
  };
9129
9211
  Insert: {
9212
+ attempt_log?: import("../integrations/supabase/types").Json;
9213
+ attempts?: number;
9130
9214
  buffer_ref?: string | null;
9131
9215
  claimed_at?: string | null;
9132
9216
  claimed_by?: string | null;
@@ -9136,6 +9220,8 @@ export declare const precheckTwinfieldPush: import("@tanstack/start-client-core"
9136
9220
  due_at?: string | null;
9137
9221
  error?: string | null;
9138
9222
  id?: string;
9223
+ last_error?: string | null;
9224
+ next_attempt_at?: string | null;
9139
9225
  order_ref: string;
9140
9226
  owner_module: string;
9141
9227
  payload?: import("../integrations/supabase/types").Json;
@@ -9156,6 +9242,8 @@ export declare const precheckTwinfieldPush: import("@tanstack/start-client-core"
9156
9242
  user_id?: string;
9157
9243
  };
9158
9244
  Update: {
9245
+ attempt_log?: import("../integrations/supabase/types").Json;
9246
+ attempts?: number;
9159
9247
  buffer_ref?: string | null;
9160
9248
  claimed_at?: string | null;
9161
9249
  claimed_by?: string | null;
@@ -9165,6 +9253,8 @@ export declare const precheckTwinfieldPush: import("@tanstack/start-client-core"
9165
9253
  due_at?: string | null;
9166
9254
  error?: string | null;
9167
9255
  id?: string;
9256
+ last_error?: string | null;
9257
+ next_attempt_at?: string | null;
9168
9258
  order_ref?: string;
9169
9259
  owner_module?: string;
9170
9260
  payload?: import("../integrations/supabase/types").Json;
@@ -18169,6 +18259,85 @@ export declare const precheckTwinfieldPush: import("@tanstack/start-client-core"
18169
18259
  };
18170
18260
  Returns: import("../integrations/supabase/types").Json;
18171
18261
  };
18262
+ claim_floriday_stock_queue: {
18263
+ Args: {
18264
+ p_limit?: number;
18265
+ p_worker?: string;
18266
+ };
18267
+ Returns: {
18268
+ attempts: number;
18269
+ connection_id: string;
18270
+ created_at: string;
18271
+ desired_available: boolean | null;
18272
+ gateway_attempt_id: string | null;
18273
+ id: string;
18274
+ last_error: string | null;
18275
+ locked_at: string | null;
18276
+ locked_by: string | null;
18277
+ next_attempt_at: string;
18278
+ number_of_pieces: number;
18279
+ sent_at: string | null;
18280
+ status: string;
18281
+ superseded_by: string | null;
18282
+ trade_item_id: string;
18283
+ updated_at: string;
18284
+ user_id: string;
18285
+ }[];
18286
+ SetofOptions: {
18287
+ from: "*";
18288
+ to: "floriday_continuous_stock_queue";
18289
+ isOneToOne: false;
18290
+ isSetofReturn: true;
18291
+ };
18292
+ };
18293
+ claim_logistics_tasks: {
18294
+ Args: {
18295
+ _limit?: number;
18296
+ _owner_module: string;
18297
+ _stale_minutes?: number;
18298
+ _task_type: string;
18299
+ _worker: string;
18300
+ };
18301
+ Returns: {
18302
+ attempt_log: import("../integrations/supabase/types").Json;
18303
+ attempts: number;
18304
+ buffer_ref: string | null;
18305
+ claimed_at: string | null;
18306
+ claimed_by: string | null;
18307
+ completed_at: string | null;
18308
+ created_at: string;
18309
+ depends_on: string[];
18310
+ due_at: string | null;
18311
+ error: string | null;
18312
+ id: string;
18313
+ last_error: string | null;
18314
+ next_attempt_at: string | null;
18315
+ order_ref: string;
18316
+ owner_module: string;
18317
+ payload: import("../integrations/supabase/types").Json;
18318
+ plan_run_id: string | null;
18319
+ planned_end: string | null;
18320
+ planned_start: string | null;
18321
+ priority: number;
18322
+ result: import("../integrations/supabase/types").Json | null;
18323
+ rule_config_id: string | null;
18324
+ rule_version: number | null;
18325
+ sequence: number;
18326
+ shadow: boolean;
18327
+ started_at: string | null;
18328
+ status: string;
18329
+ strategy_id: string | null;
18330
+ task_type: string;
18331
+ updated_at: string;
18332
+ user_id: string;
18333
+ }[];
18334
+ SetofOptions: {
18335
+ from: "*";
18336
+ to: "logistics_tasks";
18337
+ isOneToOne: false;
18338
+ isSetofReturn: true;
18339
+ };
18340
+ };
18172
18341
  claim_print_jobs: {
18173
18342
  Args: {
18174
18343
  _agent_id: string;
@@ -18233,10 +18402,24 @@ export declare const precheckTwinfieldPush: import("@tanstack/start-client-core"
18233
18402
  isSetofReturn: true;
18234
18403
  };
18235
18404
  };
18405
+ cleanup_floriday_stock_queue: {
18406
+ Args: never;
18407
+ Returns: undefined;
18408
+ };
18236
18409
  cleanup_old_bookings: {
18237
18410
  Args: never;
18238
18411
  Returns: undefined;
18239
18412
  };
18413
+ complete_floriday_stock_queue: {
18414
+ Args: {
18415
+ p_attempt_id?: string;
18416
+ p_error?: string;
18417
+ p_id: string;
18418
+ p_ok: boolean;
18419
+ p_permanent?: boolean;
18420
+ };
18421
+ Returns: undefined;
18422
+ };
18240
18423
  consume_bom_for_production: {
18241
18424
  Args: {
18242
18425
  p_connection_id: string;
@@ -18928,6 +19111,8 @@ export declare const precheckTwinfieldPush: import("@tanstack/start-client-core"
18928
19111
  p_worker?: string;
18929
19112
  };
18930
19113
  Returns: {
19114
+ attempt_log: import("../integrations/supabase/types").Json;
19115
+ attempts: number;
18931
19116
  buffer_ref: string | null;
18932
19117
  claimed_at: string | null;
18933
19118
  claimed_by: string | null;
@@ -18937,6 +19122,8 @@ export declare const precheckTwinfieldPush: import("@tanstack/start-client-core"
18937
19122
  due_at: string | null;
18938
19123
  error: string | null;
18939
19124
  id: string;
19125
+ last_error: string | null;
19126
+ next_attempt_at: string | null;
18940
19127
  order_ref: string;
18941
19128
  owner_module: string;
18942
19129
  payload: import("../integrations/supabase/types").Json;
@@ -18969,6 +19156,8 @@ export declare const precheckTwinfieldPush: import("@tanstack/start-client-core"
18969
19156
  p_worker?: string;
18970
19157
  };
18971
19158
  Returns: {
19159
+ attempt_log: import("../integrations/supabase/types").Json;
19160
+ attempts: number;
18972
19161
  buffer_ref: string | null;
18973
19162
  claimed_at: string | null;
18974
19163
  claimed_by: string | null;
@@ -18978,6 +19167,8 @@ export declare const precheckTwinfieldPush: import("@tanstack/start-client-core"
18978
19167
  due_at: string | null;
18979
19168
  error: string | null;
18980
19169
  id: string;
19170
+ last_error: string | null;
19171
+ next_attempt_at: string | null;
18981
19172
  order_ref: string;
18982
19173
  owner_module: string;
18983
19174
  payload: import("../integrations/supabase/types").Json;
@@ -19010,6 +19201,8 @@ export declare const precheckTwinfieldPush: import("@tanstack/start-client-core"
19010
19201
  p_task_id: string;
19011
19202
  };
19012
19203
  Returns: {
19204
+ attempt_log: import("../integrations/supabase/types").Json;
19205
+ attempts: number;
19013
19206
  buffer_ref: string | null;
19014
19207
  claimed_at: string | null;
19015
19208
  claimed_by: string | null;
@@ -19019,6 +19212,8 @@ export declare const precheckTwinfieldPush: import("@tanstack/start-client-core"
19019
19212
  due_at: string | null;
19020
19213
  error: string | null;
19021
19214
  id: string;
19215
+ last_error: string | null;
19216
+ next_attempt_at: string | null;
19022
19217
  order_ref: string;
19023
19218
  owner_module: string;
19024
19219
  payload: import("../integrations/supabase/types").Json;
@@ -19100,6 +19295,8 @@ export declare const precheckTwinfieldPush: import("@tanstack/start-client-core"
19100
19295
  p_task_id: string;
19101
19296
  };
19102
19297
  Returns: {
19298
+ attempt_log: import("../integrations/supabase/types").Json;
19299
+ attempts: number;
19103
19300
  buffer_ref: string | null;
19104
19301
  claimed_at: string | null;
19105
19302
  claimed_by: string | null;
@@ -19109,6 +19306,8 @@ export declare const precheckTwinfieldPush: import("@tanstack/start-client-core"
19109
19306
  due_at: string | null;
19110
19307
  error: string | null;
19111
19308
  id: string;
19309
+ last_error: string | null;
19310
+ next_attempt_at: string | null;
19112
19311
  order_ref: string;
19113
19312
  owner_module: string;
19114
19313
  payload: import("../integrations/supabase/types").Json;
@@ -19135,6 +19334,51 @@ export declare const precheckTwinfieldPush: import("@tanstack/start-client-core"
19135
19334
  isSetofReturn: false;
19136
19335
  };
19137
19336
  };
19337
+ logistics_floriday_claim_pushes: {
19338
+ Args: {
19339
+ _lease_seconds?: number;
19340
+ _limit?: number;
19341
+ _worker?: string;
19342
+ };
19343
+ Returns: {
19344
+ attempts: number;
19345
+ fulfillment_order_id: string;
19346
+ id: string;
19347
+ last_sent_hash: string;
19348
+ order_ref: string;
19349
+ payload: import("../integrations/supabase/types").Json;
19350
+ payload_hash: string;
19351
+ revision: number;
19352
+ }[];
19353
+ };
19354
+ logistics_floriday_finish_push: {
19355
+ Args: {
19356
+ _error?: string;
19357
+ _fulfillment_order_id?: string;
19358
+ _id: string;
19359
+ _max_age_hours?: number;
19360
+ _max_attempts?: number;
19361
+ _ok: boolean;
19362
+ _permanent?: boolean;
19363
+ _revision: number;
19364
+ _sent_hash?: string;
19365
+ };
19366
+ Returns: string;
19367
+ };
19368
+ logistics_floriday_prune_pushes: {
19369
+ Args: {
19370
+ _days?: number;
19371
+ };
19372
+ Returns: number;
19373
+ };
19374
+ logistics_floriday_queue_push: {
19375
+ Args: {
19376
+ _order_ref: string;
19377
+ _payload?: import("../integrations/supabase/types").Json;
19378
+ _payload_hash?: string;
19379
+ };
19380
+ Returns: string;
19381
+ };
19138
19382
  logistics_live_carriers: {
19139
19383
  Args: {
19140
19384
  p_order_ref: string;
@@ -19862,6 +20106,10 @@ export declare const precheckTwinfieldPush: import("@tanstack/start-client-core"
19862
20106
  Args: never;
19863
20107
  Returns: undefined;
19864
20108
  };
20109
+ run_logistics_tasks_dispatch: {
20110
+ Args: never;
20111
+ Returns: undefined;
20112
+ };
19865
20113
  run_twinfield_queue_tick: {
19866
20114
  Args: never;
19867
20115
  Returns: undefined;
@@ -20102,6 +20350,13 @@ export declare const precheckTwinfieldPush: import("@tanstack/start-client-core"
20102
20350
  };
20103
20351
  Returns: number;
20104
20352
  };
20353
+ schedule_floriday_stock_queue_process: {
20354
+ Args: {
20355
+ p_apikey: string;
20356
+ p_url: string;
20357
+ };
20358
+ Returns: number;
20359
+ };
20105
20360
  schedule_floriday_token_refresh: {
20106
20361
  Args: {
20107
20362
  p_apikey: string;
@@ -26017,12 +26272,17 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
26017
26272
  attempts: number;
26018
26273
  connection_id: string;
26019
26274
  created_at: string;
26275
+ desired_available: boolean | null;
26020
26276
  gateway_attempt_id: string | null;
26021
26277
  id: string;
26022
26278
  last_error: string | null;
26279
+ locked_at: string | null;
26280
+ locked_by: string | null;
26281
+ next_attempt_at: string;
26023
26282
  number_of_pieces: number;
26024
26283
  sent_at: string | null;
26025
26284
  status: string;
26285
+ superseded_by: string | null;
26026
26286
  trade_item_id: string;
26027
26287
  updated_at: string;
26028
26288
  user_id: string;
@@ -26031,12 +26291,17 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
26031
26291
  attempts?: number;
26032
26292
  connection_id: string;
26033
26293
  created_at?: string;
26294
+ desired_available?: boolean | null;
26034
26295
  gateway_attempt_id?: string | null;
26035
26296
  id?: string;
26036
26297
  last_error?: string | null;
26298
+ locked_at?: string | null;
26299
+ locked_by?: string | null;
26300
+ next_attempt_at?: string;
26037
26301
  number_of_pieces?: number;
26038
26302
  sent_at?: string | null;
26039
26303
  status?: string;
26304
+ superseded_by?: string | null;
26040
26305
  trade_item_id: string;
26041
26306
  updated_at?: string;
26042
26307
  user_id: string;
@@ -26045,12 +26310,17 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
26045
26310
  attempts?: number;
26046
26311
  connection_id?: string;
26047
26312
  created_at?: string;
26313
+ desired_available?: boolean | null;
26048
26314
  gateway_attempt_id?: string | null;
26049
26315
  id?: string;
26050
26316
  last_error?: string | null;
26317
+ locked_at?: string | null;
26318
+ locked_by?: string | null;
26319
+ next_attempt_at?: string;
26051
26320
  number_of_pieces?: number;
26052
26321
  sent_at?: string | null;
26053
26322
  status?: string;
26323
+ superseded_by?: string | null;
26054
26324
  trade_item_id?: string;
26055
26325
  updated_at?: string;
26056
26326
  user_id?: string;
@@ -28799,6 +29069,69 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
28799
29069
  };
28800
29070
  Relationships: [];
28801
29071
  };
29072
+ logistics_floriday_pushes: {
29073
+ Row: {
29074
+ attempts: number;
29075
+ created_at: string;
29076
+ first_queued_at: string;
29077
+ fulfillment_order_id: string | null;
29078
+ id: string;
29079
+ last_error: string | null;
29080
+ last_error_at: string | null;
29081
+ last_sent_hash: string | null;
29082
+ locked_by: string | null;
29083
+ locked_until: string | null;
29084
+ next_attempt_at: string;
29085
+ order_ref: string;
29086
+ payload: import("../integrations/supabase/types").Json;
29087
+ payload_hash: string | null;
29088
+ revision: number;
29089
+ sent_at: string | null;
29090
+ status: string;
29091
+ updated_at: string;
29092
+ };
29093
+ Insert: {
29094
+ attempts?: number;
29095
+ created_at?: string;
29096
+ first_queued_at?: string;
29097
+ fulfillment_order_id?: string | null;
29098
+ id?: string;
29099
+ last_error?: string | null;
29100
+ last_error_at?: string | null;
29101
+ last_sent_hash?: string | null;
29102
+ locked_by?: string | null;
29103
+ locked_until?: string | null;
29104
+ next_attempt_at?: string;
29105
+ order_ref: string;
29106
+ payload?: import("../integrations/supabase/types").Json;
29107
+ payload_hash?: string | null;
29108
+ revision?: number;
29109
+ sent_at?: string | null;
29110
+ status?: string;
29111
+ updated_at?: string;
29112
+ };
29113
+ Update: {
29114
+ attempts?: number;
29115
+ created_at?: string;
29116
+ first_queued_at?: string;
29117
+ fulfillment_order_id?: string | null;
29118
+ id?: string;
29119
+ last_error?: string | null;
29120
+ last_error_at?: string | null;
29121
+ last_sent_hash?: string | null;
29122
+ locked_by?: string | null;
29123
+ locked_until?: string | null;
29124
+ next_attempt_at?: string;
29125
+ order_ref?: string;
29126
+ payload?: import("../integrations/supabase/types").Json;
29127
+ payload_hash?: string | null;
29128
+ revision?: number;
29129
+ sent_at?: string | null;
29130
+ status?: string;
29131
+ updated_at?: string;
29132
+ };
29133
+ Relationships: [];
29134
+ };
28802
29135
  logistics_formulas: {
28803
29136
  Row: {
28804
29137
  created_at: string;
@@ -29410,6 +29743,8 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
29410
29743
  };
29411
29744
  logistics_tasks: {
29412
29745
  Row: {
29746
+ attempt_log: import("../integrations/supabase/types").Json;
29747
+ attempts: number;
29413
29748
  buffer_ref: string | null;
29414
29749
  claimed_at: string | null;
29415
29750
  claimed_by: string | null;
@@ -29419,6 +29754,8 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
29419
29754
  due_at: string | null;
29420
29755
  error: string | null;
29421
29756
  id: string;
29757
+ last_error: string | null;
29758
+ next_attempt_at: string | null;
29422
29759
  order_ref: string;
29423
29760
  owner_module: string;
29424
29761
  payload: import("../integrations/supabase/types").Json;
@@ -29439,6 +29776,8 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
29439
29776
  user_id: string;
29440
29777
  };
29441
29778
  Insert: {
29779
+ attempt_log?: import("../integrations/supabase/types").Json;
29780
+ attempts?: number;
29442
29781
  buffer_ref?: string | null;
29443
29782
  claimed_at?: string | null;
29444
29783
  claimed_by?: string | null;
@@ -29448,6 +29787,8 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
29448
29787
  due_at?: string | null;
29449
29788
  error?: string | null;
29450
29789
  id?: string;
29790
+ last_error?: string | null;
29791
+ next_attempt_at?: string | null;
29451
29792
  order_ref: string;
29452
29793
  owner_module: string;
29453
29794
  payload?: import("../integrations/supabase/types").Json;
@@ -29468,6 +29809,8 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
29468
29809
  user_id?: string;
29469
29810
  };
29470
29811
  Update: {
29812
+ attempt_log?: import("../integrations/supabase/types").Json;
29813
+ attempts?: number;
29471
29814
  buffer_ref?: string | null;
29472
29815
  claimed_at?: string | null;
29473
29816
  claimed_by?: string | null;
@@ -29477,6 +29820,8 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
29477
29820
  due_at?: string | null;
29478
29821
  error?: string | null;
29479
29822
  id?: string;
29823
+ last_error?: string | null;
29824
+ next_attempt_at?: string | null;
29480
29825
  order_ref?: string;
29481
29826
  owner_module?: string;
29482
29827
  payload?: import("../integrations/supabase/types").Json;
@@ -38481,6 +38826,85 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
38481
38826
  };
38482
38827
  Returns: import("../integrations/supabase/types").Json;
38483
38828
  };
38829
+ claim_floriday_stock_queue: {
38830
+ Args: {
38831
+ p_limit?: number;
38832
+ p_worker?: string;
38833
+ };
38834
+ Returns: {
38835
+ attempts: number;
38836
+ connection_id: string;
38837
+ created_at: string;
38838
+ desired_available: boolean | null;
38839
+ gateway_attempt_id: string | null;
38840
+ id: string;
38841
+ last_error: string | null;
38842
+ locked_at: string | null;
38843
+ locked_by: string | null;
38844
+ next_attempt_at: string;
38845
+ number_of_pieces: number;
38846
+ sent_at: string | null;
38847
+ status: string;
38848
+ superseded_by: string | null;
38849
+ trade_item_id: string;
38850
+ updated_at: string;
38851
+ user_id: string;
38852
+ }[];
38853
+ SetofOptions: {
38854
+ from: "*";
38855
+ to: "floriday_continuous_stock_queue";
38856
+ isOneToOne: false;
38857
+ isSetofReturn: true;
38858
+ };
38859
+ };
38860
+ claim_logistics_tasks: {
38861
+ Args: {
38862
+ _limit?: number;
38863
+ _owner_module: string;
38864
+ _stale_minutes?: number;
38865
+ _task_type: string;
38866
+ _worker: string;
38867
+ };
38868
+ Returns: {
38869
+ attempt_log: import("../integrations/supabase/types").Json;
38870
+ attempts: number;
38871
+ buffer_ref: string | null;
38872
+ claimed_at: string | null;
38873
+ claimed_by: string | null;
38874
+ completed_at: string | null;
38875
+ created_at: string;
38876
+ depends_on: string[];
38877
+ due_at: string | null;
38878
+ error: string | null;
38879
+ id: string;
38880
+ last_error: string | null;
38881
+ next_attempt_at: string | null;
38882
+ order_ref: string;
38883
+ owner_module: string;
38884
+ payload: import("../integrations/supabase/types").Json;
38885
+ plan_run_id: string | null;
38886
+ planned_end: string | null;
38887
+ planned_start: string | null;
38888
+ priority: number;
38889
+ result: import("../integrations/supabase/types").Json | null;
38890
+ rule_config_id: string | null;
38891
+ rule_version: number | null;
38892
+ sequence: number;
38893
+ shadow: boolean;
38894
+ started_at: string | null;
38895
+ status: string;
38896
+ strategy_id: string | null;
38897
+ task_type: string;
38898
+ updated_at: string;
38899
+ user_id: string;
38900
+ }[];
38901
+ SetofOptions: {
38902
+ from: "*";
38903
+ to: "logistics_tasks";
38904
+ isOneToOne: false;
38905
+ isSetofReturn: true;
38906
+ };
38907
+ };
38484
38908
  claim_print_jobs: {
38485
38909
  Args: {
38486
38910
  _agent_id: string;
@@ -38545,10 +38969,24 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
38545
38969
  isSetofReturn: true;
38546
38970
  };
38547
38971
  };
38972
+ cleanup_floriday_stock_queue: {
38973
+ Args: never;
38974
+ Returns: undefined;
38975
+ };
38548
38976
  cleanup_old_bookings: {
38549
38977
  Args: never;
38550
38978
  Returns: undefined;
38551
38979
  };
38980
+ complete_floriday_stock_queue: {
38981
+ Args: {
38982
+ p_attempt_id?: string;
38983
+ p_error?: string;
38984
+ p_id: string;
38985
+ p_ok: boolean;
38986
+ p_permanent?: boolean;
38987
+ };
38988
+ Returns: undefined;
38989
+ };
38552
38990
  consume_bom_for_production: {
38553
38991
  Args: {
38554
38992
  p_connection_id: string;
@@ -39240,6 +39678,8 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
39240
39678
  p_worker?: string;
39241
39679
  };
39242
39680
  Returns: {
39681
+ attempt_log: import("../integrations/supabase/types").Json;
39682
+ attempts: number;
39243
39683
  buffer_ref: string | null;
39244
39684
  claimed_at: string | null;
39245
39685
  claimed_by: string | null;
@@ -39249,6 +39689,8 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
39249
39689
  due_at: string | null;
39250
39690
  error: string | null;
39251
39691
  id: string;
39692
+ last_error: string | null;
39693
+ next_attempt_at: string | null;
39252
39694
  order_ref: string;
39253
39695
  owner_module: string;
39254
39696
  payload: import("../integrations/supabase/types").Json;
@@ -39281,6 +39723,8 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
39281
39723
  p_worker?: string;
39282
39724
  };
39283
39725
  Returns: {
39726
+ attempt_log: import("../integrations/supabase/types").Json;
39727
+ attempts: number;
39284
39728
  buffer_ref: string | null;
39285
39729
  claimed_at: string | null;
39286
39730
  claimed_by: string | null;
@@ -39290,6 +39734,8 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
39290
39734
  due_at: string | null;
39291
39735
  error: string | null;
39292
39736
  id: string;
39737
+ last_error: string | null;
39738
+ next_attempt_at: string | null;
39293
39739
  order_ref: string;
39294
39740
  owner_module: string;
39295
39741
  payload: import("../integrations/supabase/types").Json;
@@ -39322,6 +39768,8 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
39322
39768
  p_task_id: string;
39323
39769
  };
39324
39770
  Returns: {
39771
+ attempt_log: import("../integrations/supabase/types").Json;
39772
+ attempts: number;
39325
39773
  buffer_ref: string | null;
39326
39774
  claimed_at: string | null;
39327
39775
  claimed_by: string | null;
@@ -39331,6 +39779,8 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
39331
39779
  due_at: string | null;
39332
39780
  error: string | null;
39333
39781
  id: string;
39782
+ last_error: string | null;
39783
+ next_attempt_at: string | null;
39334
39784
  order_ref: string;
39335
39785
  owner_module: string;
39336
39786
  payload: import("../integrations/supabase/types").Json;
@@ -39412,6 +39862,8 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
39412
39862
  p_task_id: string;
39413
39863
  };
39414
39864
  Returns: {
39865
+ attempt_log: import("../integrations/supabase/types").Json;
39866
+ attempts: number;
39415
39867
  buffer_ref: string | null;
39416
39868
  claimed_at: string | null;
39417
39869
  claimed_by: string | null;
@@ -39421,6 +39873,8 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
39421
39873
  due_at: string | null;
39422
39874
  error: string | null;
39423
39875
  id: string;
39876
+ last_error: string | null;
39877
+ next_attempt_at: string | null;
39424
39878
  order_ref: string;
39425
39879
  owner_module: string;
39426
39880
  payload: import("../integrations/supabase/types").Json;
@@ -39447,6 +39901,51 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
39447
39901
  isSetofReturn: false;
39448
39902
  };
39449
39903
  };
39904
+ logistics_floriday_claim_pushes: {
39905
+ Args: {
39906
+ _lease_seconds?: number;
39907
+ _limit?: number;
39908
+ _worker?: string;
39909
+ };
39910
+ Returns: {
39911
+ attempts: number;
39912
+ fulfillment_order_id: string;
39913
+ id: string;
39914
+ last_sent_hash: string;
39915
+ order_ref: string;
39916
+ payload: import("../integrations/supabase/types").Json;
39917
+ payload_hash: string;
39918
+ revision: number;
39919
+ }[];
39920
+ };
39921
+ logistics_floriday_finish_push: {
39922
+ Args: {
39923
+ _error?: string;
39924
+ _fulfillment_order_id?: string;
39925
+ _id: string;
39926
+ _max_age_hours?: number;
39927
+ _max_attempts?: number;
39928
+ _ok: boolean;
39929
+ _permanent?: boolean;
39930
+ _revision: number;
39931
+ _sent_hash?: string;
39932
+ };
39933
+ Returns: string;
39934
+ };
39935
+ logistics_floriday_prune_pushes: {
39936
+ Args: {
39937
+ _days?: number;
39938
+ };
39939
+ Returns: number;
39940
+ };
39941
+ logistics_floriday_queue_push: {
39942
+ Args: {
39943
+ _order_ref: string;
39944
+ _payload?: import("../integrations/supabase/types").Json;
39945
+ _payload_hash?: string;
39946
+ };
39947
+ Returns: string;
39948
+ };
39450
39949
  logistics_live_carriers: {
39451
39950
  Args: {
39452
39951
  p_order_ref: string;
@@ -40174,6 +40673,10 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
40174
40673
  Args: never;
40175
40674
  Returns: undefined;
40176
40675
  };
40676
+ run_logistics_tasks_dispatch: {
40677
+ Args: never;
40678
+ Returns: undefined;
40679
+ };
40177
40680
  run_twinfield_queue_tick: {
40178
40681
  Args: never;
40179
40682
  Returns: undefined;
@@ -40414,6 +40917,13 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
40414
40917
  };
40415
40918
  Returns: number;
40416
40919
  };
40920
+ schedule_floriday_stock_queue_process: {
40921
+ Args: {
40922
+ p_apikey: string;
40923
+ p_url: string;
40924
+ };
40925
+ Returns: number;
40926
+ };
40417
40927
  schedule_floriday_token_refresh: {
40418
40928
  Args: {
40419
40929
  p_apikey: string;
@@ -46327,12 +46837,17 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
46327
46837
  attempts: number;
46328
46838
  connection_id: string;
46329
46839
  created_at: string;
46840
+ desired_available: boolean | null;
46330
46841
  gateway_attempt_id: string | null;
46331
46842
  id: string;
46332
46843
  last_error: string | null;
46844
+ locked_at: string | null;
46845
+ locked_by: string | null;
46846
+ next_attempt_at: string;
46333
46847
  number_of_pieces: number;
46334
46848
  sent_at: string | null;
46335
46849
  status: string;
46850
+ superseded_by: string | null;
46336
46851
  trade_item_id: string;
46337
46852
  updated_at: string;
46338
46853
  user_id: string;
@@ -46341,12 +46856,17 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
46341
46856
  attempts?: number;
46342
46857
  connection_id: string;
46343
46858
  created_at?: string;
46859
+ desired_available?: boolean | null;
46344
46860
  gateway_attempt_id?: string | null;
46345
46861
  id?: string;
46346
46862
  last_error?: string | null;
46863
+ locked_at?: string | null;
46864
+ locked_by?: string | null;
46865
+ next_attempt_at?: string;
46347
46866
  number_of_pieces?: number;
46348
46867
  sent_at?: string | null;
46349
46868
  status?: string;
46869
+ superseded_by?: string | null;
46350
46870
  trade_item_id: string;
46351
46871
  updated_at?: string;
46352
46872
  user_id: string;
@@ -46355,12 +46875,17 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
46355
46875
  attempts?: number;
46356
46876
  connection_id?: string;
46357
46877
  created_at?: string;
46878
+ desired_available?: boolean | null;
46358
46879
  gateway_attempt_id?: string | null;
46359
46880
  id?: string;
46360
46881
  last_error?: string | null;
46882
+ locked_at?: string | null;
46883
+ locked_by?: string | null;
46884
+ next_attempt_at?: string;
46361
46885
  number_of_pieces?: number;
46362
46886
  sent_at?: string | null;
46363
46887
  status?: string;
46888
+ superseded_by?: string | null;
46364
46889
  trade_item_id?: string;
46365
46890
  updated_at?: string;
46366
46891
  user_id?: string;
@@ -49109,6 +49634,69 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
49109
49634
  };
49110
49635
  Relationships: [];
49111
49636
  };
49637
+ logistics_floriday_pushes: {
49638
+ Row: {
49639
+ attempts: number;
49640
+ created_at: string;
49641
+ first_queued_at: string;
49642
+ fulfillment_order_id: string | null;
49643
+ id: string;
49644
+ last_error: string | null;
49645
+ last_error_at: string | null;
49646
+ last_sent_hash: string | null;
49647
+ locked_by: string | null;
49648
+ locked_until: string | null;
49649
+ next_attempt_at: string;
49650
+ order_ref: string;
49651
+ payload: import("../integrations/supabase/types").Json;
49652
+ payload_hash: string | null;
49653
+ revision: number;
49654
+ sent_at: string | null;
49655
+ status: string;
49656
+ updated_at: string;
49657
+ };
49658
+ Insert: {
49659
+ attempts?: number;
49660
+ created_at?: string;
49661
+ first_queued_at?: string;
49662
+ fulfillment_order_id?: string | null;
49663
+ id?: string;
49664
+ last_error?: string | null;
49665
+ last_error_at?: string | null;
49666
+ last_sent_hash?: string | null;
49667
+ locked_by?: string | null;
49668
+ locked_until?: string | null;
49669
+ next_attempt_at?: string;
49670
+ order_ref: string;
49671
+ payload?: import("../integrations/supabase/types").Json;
49672
+ payload_hash?: string | null;
49673
+ revision?: number;
49674
+ sent_at?: string | null;
49675
+ status?: string;
49676
+ updated_at?: string;
49677
+ };
49678
+ Update: {
49679
+ attempts?: number;
49680
+ created_at?: string;
49681
+ first_queued_at?: string;
49682
+ fulfillment_order_id?: string | null;
49683
+ id?: string;
49684
+ last_error?: string | null;
49685
+ last_error_at?: string | null;
49686
+ last_sent_hash?: string | null;
49687
+ locked_by?: string | null;
49688
+ locked_until?: string | null;
49689
+ next_attempt_at?: string;
49690
+ order_ref?: string;
49691
+ payload?: import("../integrations/supabase/types").Json;
49692
+ payload_hash?: string | null;
49693
+ revision?: number;
49694
+ sent_at?: string | null;
49695
+ status?: string;
49696
+ updated_at?: string;
49697
+ };
49698
+ Relationships: [];
49699
+ };
49112
49700
  logistics_formulas: {
49113
49701
  Row: {
49114
49702
  created_at: string;
@@ -49720,6 +50308,8 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
49720
50308
  };
49721
50309
  logistics_tasks: {
49722
50310
  Row: {
50311
+ attempt_log: import("../integrations/supabase/types").Json;
50312
+ attempts: number;
49723
50313
  buffer_ref: string | null;
49724
50314
  claimed_at: string | null;
49725
50315
  claimed_by: string | null;
@@ -49729,6 +50319,8 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
49729
50319
  due_at: string | null;
49730
50320
  error: string | null;
49731
50321
  id: string;
50322
+ last_error: string | null;
50323
+ next_attempt_at: string | null;
49732
50324
  order_ref: string;
49733
50325
  owner_module: string;
49734
50326
  payload: import("../integrations/supabase/types").Json;
@@ -49749,6 +50341,8 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
49749
50341
  user_id: string;
49750
50342
  };
49751
50343
  Insert: {
50344
+ attempt_log?: import("../integrations/supabase/types").Json;
50345
+ attempts?: number;
49752
50346
  buffer_ref?: string | null;
49753
50347
  claimed_at?: string | null;
49754
50348
  claimed_by?: string | null;
@@ -49758,6 +50352,8 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
49758
50352
  due_at?: string | null;
49759
50353
  error?: string | null;
49760
50354
  id?: string;
50355
+ last_error?: string | null;
50356
+ next_attempt_at?: string | null;
49761
50357
  order_ref: string;
49762
50358
  owner_module: string;
49763
50359
  payload?: import("../integrations/supabase/types").Json;
@@ -49778,6 +50374,8 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
49778
50374
  user_id?: string;
49779
50375
  };
49780
50376
  Update: {
50377
+ attempt_log?: import("../integrations/supabase/types").Json;
50378
+ attempts?: number;
49781
50379
  buffer_ref?: string | null;
49782
50380
  claimed_at?: string | null;
49783
50381
  claimed_by?: string | null;
@@ -49787,6 +50385,8 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
49787
50385
  due_at?: string | null;
49788
50386
  error?: string | null;
49789
50387
  id?: string;
50388
+ last_error?: string | null;
50389
+ next_attempt_at?: string | null;
49790
50390
  order_ref?: string;
49791
50391
  owner_module?: string;
49792
50392
  payload?: import("../integrations/supabase/types").Json;
@@ -58791,6 +59391,85 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
58791
59391
  };
58792
59392
  Returns: import("../integrations/supabase/types").Json;
58793
59393
  };
59394
+ claim_floriday_stock_queue: {
59395
+ Args: {
59396
+ p_limit?: number;
59397
+ p_worker?: string;
59398
+ };
59399
+ Returns: {
59400
+ attempts: number;
59401
+ connection_id: string;
59402
+ created_at: string;
59403
+ desired_available: boolean | null;
59404
+ gateway_attempt_id: string | null;
59405
+ id: string;
59406
+ last_error: string | null;
59407
+ locked_at: string | null;
59408
+ locked_by: string | null;
59409
+ next_attempt_at: string;
59410
+ number_of_pieces: number;
59411
+ sent_at: string | null;
59412
+ status: string;
59413
+ superseded_by: string | null;
59414
+ trade_item_id: string;
59415
+ updated_at: string;
59416
+ user_id: string;
59417
+ }[];
59418
+ SetofOptions: {
59419
+ from: "*";
59420
+ to: "floriday_continuous_stock_queue";
59421
+ isOneToOne: false;
59422
+ isSetofReturn: true;
59423
+ };
59424
+ };
59425
+ claim_logistics_tasks: {
59426
+ Args: {
59427
+ _limit?: number;
59428
+ _owner_module: string;
59429
+ _stale_minutes?: number;
59430
+ _task_type: string;
59431
+ _worker: string;
59432
+ };
59433
+ Returns: {
59434
+ attempt_log: import("../integrations/supabase/types").Json;
59435
+ attempts: number;
59436
+ buffer_ref: string | null;
59437
+ claimed_at: string | null;
59438
+ claimed_by: string | null;
59439
+ completed_at: string | null;
59440
+ created_at: string;
59441
+ depends_on: string[];
59442
+ due_at: string | null;
59443
+ error: string | null;
59444
+ id: string;
59445
+ last_error: string | null;
59446
+ next_attempt_at: string | null;
59447
+ order_ref: string;
59448
+ owner_module: string;
59449
+ payload: import("../integrations/supabase/types").Json;
59450
+ plan_run_id: string | null;
59451
+ planned_end: string | null;
59452
+ planned_start: string | null;
59453
+ priority: number;
59454
+ result: import("../integrations/supabase/types").Json | null;
59455
+ rule_config_id: string | null;
59456
+ rule_version: number | null;
59457
+ sequence: number;
59458
+ shadow: boolean;
59459
+ started_at: string | null;
59460
+ status: string;
59461
+ strategy_id: string | null;
59462
+ task_type: string;
59463
+ updated_at: string;
59464
+ user_id: string;
59465
+ }[];
59466
+ SetofOptions: {
59467
+ from: "*";
59468
+ to: "logistics_tasks";
59469
+ isOneToOne: false;
59470
+ isSetofReturn: true;
59471
+ };
59472
+ };
58794
59473
  claim_print_jobs: {
58795
59474
  Args: {
58796
59475
  _agent_id: string;
@@ -58855,10 +59534,24 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
58855
59534
  isSetofReturn: true;
58856
59535
  };
58857
59536
  };
59537
+ cleanup_floriday_stock_queue: {
59538
+ Args: never;
59539
+ Returns: undefined;
59540
+ };
58858
59541
  cleanup_old_bookings: {
58859
59542
  Args: never;
58860
59543
  Returns: undefined;
58861
59544
  };
59545
+ complete_floriday_stock_queue: {
59546
+ Args: {
59547
+ p_attempt_id?: string;
59548
+ p_error?: string;
59549
+ p_id: string;
59550
+ p_ok: boolean;
59551
+ p_permanent?: boolean;
59552
+ };
59553
+ Returns: undefined;
59554
+ };
58862
59555
  consume_bom_for_production: {
58863
59556
  Args: {
58864
59557
  p_connection_id: string;
@@ -59550,6 +60243,8 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
59550
60243
  p_worker?: string;
59551
60244
  };
59552
60245
  Returns: {
60246
+ attempt_log: import("../integrations/supabase/types").Json;
60247
+ attempts: number;
59553
60248
  buffer_ref: string | null;
59554
60249
  claimed_at: string | null;
59555
60250
  claimed_by: string | null;
@@ -59559,6 +60254,8 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
59559
60254
  due_at: string | null;
59560
60255
  error: string | null;
59561
60256
  id: string;
60257
+ last_error: string | null;
60258
+ next_attempt_at: string | null;
59562
60259
  order_ref: string;
59563
60260
  owner_module: string;
59564
60261
  payload: import("../integrations/supabase/types").Json;
@@ -59591,6 +60288,8 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
59591
60288
  p_worker?: string;
59592
60289
  };
59593
60290
  Returns: {
60291
+ attempt_log: import("../integrations/supabase/types").Json;
60292
+ attempts: number;
59594
60293
  buffer_ref: string | null;
59595
60294
  claimed_at: string | null;
59596
60295
  claimed_by: string | null;
@@ -59600,6 +60299,8 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
59600
60299
  due_at: string | null;
59601
60300
  error: string | null;
59602
60301
  id: string;
60302
+ last_error: string | null;
60303
+ next_attempt_at: string | null;
59603
60304
  order_ref: string;
59604
60305
  owner_module: string;
59605
60306
  payload: import("../integrations/supabase/types").Json;
@@ -59632,6 +60333,8 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
59632
60333
  p_task_id: string;
59633
60334
  };
59634
60335
  Returns: {
60336
+ attempt_log: import("../integrations/supabase/types").Json;
60337
+ attempts: number;
59635
60338
  buffer_ref: string | null;
59636
60339
  claimed_at: string | null;
59637
60340
  claimed_by: string | null;
@@ -59641,6 +60344,8 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
59641
60344
  due_at: string | null;
59642
60345
  error: string | null;
59643
60346
  id: string;
60347
+ last_error: string | null;
60348
+ next_attempt_at: string | null;
59644
60349
  order_ref: string;
59645
60350
  owner_module: string;
59646
60351
  payload: import("../integrations/supabase/types").Json;
@@ -59722,6 +60427,8 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
59722
60427
  p_task_id: string;
59723
60428
  };
59724
60429
  Returns: {
60430
+ attempt_log: import("../integrations/supabase/types").Json;
60431
+ attempts: number;
59725
60432
  buffer_ref: string | null;
59726
60433
  claimed_at: string | null;
59727
60434
  claimed_by: string | null;
@@ -59731,6 +60438,8 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
59731
60438
  due_at: string | null;
59732
60439
  error: string | null;
59733
60440
  id: string;
60441
+ last_error: string | null;
60442
+ next_attempt_at: string | null;
59734
60443
  order_ref: string;
59735
60444
  owner_module: string;
59736
60445
  payload: import("../integrations/supabase/types").Json;
@@ -59757,6 +60466,51 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
59757
60466
  isSetofReturn: false;
59758
60467
  };
59759
60468
  };
60469
+ logistics_floriday_claim_pushes: {
60470
+ Args: {
60471
+ _lease_seconds?: number;
60472
+ _limit?: number;
60473
+ _worker?: string;
60474
+ };
60475
+ Returns: {
60476
+ attempts: number;
60477
+ fulfillment_order_id: string;
60478
+ id: string;
60479
+ last_sent_hash: string;
60480
+ order_ref: string;
60481
+ payload: import("../integrations/supabase/types").Json;
60482
+ payload_hash: string;
60483
+ revision: number;
60484
+ }[];
60485
+ };
60486
+ logistics_floriday_finish_push: {
60487
+ Args: {
60488
+ _error?: string;
60489
+ _fulfillment_order_id?: string;
60490
+ _id: string;
60491
+ _max_age_hours?: number;
60492
+ _max_attempts?: number;
60493
+ _ok: boolean;
60494
+ _permanent?: boolean;
60495
+ _revision: number;
60496
+ _sent_hash?: string;
60497
+ };
60498
+ Returns: string;
60499
+ };
60500
+ logistics_floriday_prune_pushes: {
60501
+ Args: {
60502
+ _days?: number;
60503
+ };
60504
+ Returns: number;
60505
+ };
60506
+ logistics_floriday_queue_push: {
60507
+ Args: {
60508
+ _order_ref: string;
60509
+ _payload?: import("../integrations/supabase/types").Json;
60510
+ _payload_hash?: string;
60511
+ };
60512
+ Returns: string;
60513
+ };
59760
60514
  logistics_live_carriers: {
59761
60515
  Args: {
59762
60516
  p_order_ref: string;
@@ -60484,6 +61238,10 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
60484
61238
  Args: never;
60485
61239
  Returns: undefined;
60486
61240
  };
61241
+ run_logistics_tasks_dispatch: {
61242
+ Args: never;
61243
+ Returns: undefined;
61244
+ };
60487
61245
  run_twinfield_queue_tick: {
60488
61246
  Args: never;
60489
61247
  Returns: undefined;
@@ -60724,6 +61482,13 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
60724
61482
  };
60725
61483
  Returns: number;
60726
61484
  };
61485
+ schedule_floriday_stock_queue_process: {
61486
+ Args: {
61487
+ p_apikey: string;
61488
+ p_url: string;
61489
+ };
61490
+ Returns: number;
61491
+ };
60727
61492
  schedule_floriday_token_refresh: {
60728
61493
  Args: {
60729
61494
  p_apikey: string;
@@ -66792,12 +67557,17 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
66792
67557
  attempts: number;
66793
67558
  connection_id: string;
66794
67559
  created_at: string;
67560
+ desired_available: boolean | null;
66795
67561
  gateway_attempt_id: string | null;
66796
67562
  id: string;
66797
67563
  last_error: string | null;
67564
+ locked_at: string | null;
67565
+ locked_by: string | null;
67566
+ next_attempt_at: string;
66798
67567
  number_of_pieces: number;
66799
67568
  sent_at: string | null;
66800
67569
  status: string;
67570
+ superseded_by: string | null;
66801
67571
  trade_item_id: string;
66802
67572
  updated_at: string;
66803
67573
  user_id: string;
@@ -66806,12 +67576,17 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
66806
67576
  attempts?: number;
66807
67577
  connection_id: string;
66808
67578
  created_at?: string;
67579
+ desired_available?: boolean | null;
66809
67580
  gateway_attempt_id?: string | null;
66810
67581
  id?: string;
66811
67582
  last_error?: string | null;
67583
+ locked_at?: string | null;
67584
+ locked_by?: string | null;
67585
+ next_attempt_at?: string;
66812
67586
  number_of_pieces?: number;
66813
67587
  sent_at?: string | null;
66814
67588
  status?: string;
67589
+ superseded_by?: string | null;
66815
67590
  trade_item_id: string;
66816
67591
  updated_at?: string;
66817
67592
  user_id: string;
@@ -66820,12 +67595,17 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
66820
67595
  attempts?: number;
66821
67596
  connection_id?: string;
66822
67597
  created_at?: string;
67598
+ desired_available?: boolean | null;
66823
67599
  gateway_attempt_id?: string | null;
66824
67600
  id?: string;
66825
67601
  last_error?: string | null;
67602
+ locked_at?: string | null;
67603
+ locked_by?: string | null;
67604
+ next_attempt_at?: string;
66826
67605
  number_of_pieces?: number;
66827
67606
  sent_at?: string | null;
66828
67607
  status?: string;
67608
+ superseded_by?: string | null;
66829
67609
  trade_item_id?: string;
66830
67610
  updated_at?: string;
66831
67611
  user_id?: string;
@@ -69574,6 +70354,69 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
69574
70354
  };
69575
70355
  Relationships: [];
69576
70356
  };
70357
+ logistics_floriday_pushes: {
70358
+ Row: {
70359
+ attempts: number;
70360
+ created_at: string;
70361
+ first_queued_at: string;
70362
+ fulfillment_order_id: string | null;
70363
+ id: string;
70364
+ last_error: string | null;
70365
+ last_error_at: string | null;
70366
+ last_sent_hash: string | null;
70367
+ locked_by: string | null;
70368
+ locked_until: string | null;
70369
+ next_attempt_at: string;
70370
+ order_ref: string;
70371
+ payload: import("../integrations/supabase/types").Json;
70372
+ payload_hash: string | null;
70373
+ revision: number;
70374
+ sent_at: string | null;
70375
+ status: string;
70376
+ updated_at: string;
70377
+ };
70378
+ Insert: {
70379
+ attempts?: number;
70380
+ created_at?: string;
70381
+ first_queued_at?: string;
70382
+ fulfillment_order_id?: string | null;
70383
+ id?: string;
70384
+ last_error?: string | null;
70385
+ last_error_at?: string | null;
70386
+ last_sent_hash?: string | null;
70387
+ locked_by?: string | null;
70388
+ locked_until?: string | null;
70389
+ next_attempt_at?: string;
70390
+ order_ref: string;
70391
+ payload?: import("../integrations/supabase/types").Json;
70392
+ payload_hash?: string | null;
70393
+ revision?: number;
70394
+ sent_at?: string | null;
70395
+ status?: string;
70396
+ updated_at?: string;
70397
+ };
70398
+ Update: {
70399
+ attempts?: number;
70400
+ created_at?: string;
70401
+ first_queued_at?: string;
70402
+ fulfillment_order_id?: string | null;
70403
+ id?: string;
70404
+ last_error?: string | null;
70405
+ last_error_at?: string | null;
70406
+ last_sent_hash?: string | null;
70407
+ locked_by?: string | null;
70408
+ locked_until?: string | null;
70409
+ next_attempt_at?: string;
70410
+ order_ref?: string;
70411
+ payload?: import("../integrations/supabase/types").Json;
70412
+ payload_hash?: string | null;
70413
+ revision?: number;
70414
+ sent_at?: string | null;
70415
+ status?: string;
70416
+ updated_at?: string;
70417
+ };
70418
+ Relationships: [];
70419
+ };
69577
70420
  logistics_formulas: {
69578
70421
  Row: {
69579
70422
  created_at: string;
@@ -70185,6 +71028,8 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
70185
71028
  };
70186
71029
  logistics_tasks: {
70187
71030
  Row: {
71031
+ attempt_log: import("../integrations/supabase/types").Json;
71032
+ attempts: number;
70188
71033
  buffer_ref: string | null;
70189
71034
  claimed_at: string | null;
70190
71035
  claimed_by: string | null;
@@ -70194,6 +71039,8 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
70194
71039
  due_at: string | null;
70195
71040
  error: string | null;
70196
71041
  id: string;
71042
+ last_error: string | null;
71043
+ next_attempt_at: string | null;
70197
71044
  order_ref: string;
70198
71045
  owner_module: string;
70199
71046
  payload: import("../integrations/supabase/types").Json;
@@ -70214,6 +71061,8 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
70214
71061
  user_id: string;
70215
71062
  };
70216
71063
  Insert: {
71064
+ attempt_log?: import("../integrations/supabase/types").Json;
71065
+ attempts?: number;
70217
71066
  buffer_ref?: string | null;
70218
71067
  claimed_at?: string | null;
70219
71068
  claimed_by?: string | null;
@@ -70223,6 +71072,8 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
70223
71072
  due_at?: string | null;
70224
71073
  error?: string | null;
70225
71074
  id?: string;
71075
+ last_error?: string | null;
71076
+ next_attempt_at?: string | null;
70226
71077
  order_ref: string;
70227
71078
  owner_module: string;
70228
71079
  payload?: import("../integrations/supabase/types").Json;
@@ -70243,6 +71094,8 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
70243
71094
  user_id?: string;
70244
71095
  };
70245
71096
  Update: {
71097
+ attempt_log?: import("../integrations/supabase/types").Json;
71098
+ attempts?: number;
70246
71099
  buffer_ref?: string | null;
70247
71100
  claimed_at?: string | null;
70248
71101
  claimed_by?: string | null;
@@ -70252,6 +71105,8 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
70252
71105
  due_at?: string | null;
70253
71106
  error?: string | null;
70254
71107
  id?: string;
71108
+ last_error?: string | null;
71109
+ next_attempt_at?: string | null;
70255
71110
  order_ref?: string;
70256
71111
  owner_module?: string;
70257
71112
  payload?: import("../integrations/supabase/types").Json;
@@ -79256,6 +80111,85 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
79256
80111
  };
79257
80112
  Returns: import("../integrations/supabase/types").Json;
79258
80113
  };
80114
+ claim_floriday_stock_queue: {
80115
+ Args: {
80116
+ p_limit?: number;
80117
+ p_worker?: string;
80118
+ };
80119
+ Returns: {
80120
+ attempts: number;
80121
+ connection_id: string;
80122
+ created_at: string;
80123
+ desired_available: boolean | null;
80124
+ gateway_attempt_id: string | null;
80125
+ id: string;
80126
+ last_error: string | null;
80127
+ locked_at: string | null;
80128
+ locked_by: string | null;
80129
+ next_attempt_at: string;
80130
+ number_of_pieces: number;
80131
+ sent_at: string | null;
80132
+ status: string;
80133
+ superseded_by: string | null;
80134
+ trade_item_id: string;
80135
+ updated_at: string;
80136
+ user_id: string;
80137
+ }[];
80138
+ SetofOptions: {
80139
+ from: "*";
80140
+ to: "floriday_continuous_stock_queue";
80141
+ isOneToOne: false;
80142
+ isSetofReturn: true;
80143
+ };
80144
+ };
80145
+ claim_logistics_tasks: {
80146
+ Args: {
80147
+ _limit?: number;
80148
+ _owner_module: string;
80149
+ _stale_minutes?: number;
80150
+ _task_type: string;
80151
+ _worker: string;
80152
+ };
80153
+ Returns: {
80154
+ attempt_log: import("../integrations/supabase/types").Json;
80155
+ attempts: number;
80156
+ buffer_ref: string | null;
80157
+ claimed_at: string | null;
80158
+ claimed_by: string | null;
80159
+ completed_at: string | null;
80160
+ created_at: string;
80161
+ depends_on: string[];
80162
+ due_at: string | null;
80163
+ error: string | null;
80164
+ id: string;
80165
+ last_error: string | null;
80166
+ next_attempt_at: string | null;
80167
+ order_ref: string;
80168
+ owner_module: string;
80169
+ payload: import("../integrations/supabase/types").Json;
80170
+ plan_run_id: string | null;
80171
+ planned_end: string | null;
80172
+ planned_start: string | null;
80173
+ priority: number;
80174
+ result: import("../integrations/supabase/types").Json | null;
80175
+ rule_config_id: string | null;
80176
+ rule_version: number | null;
80177
+ sequence: number;
80178
+ shadow: boolean;
80179
+ started_at: string | null;
80180
+ status: string;
80181
+ strategy_id: string | null;
80182
+ task_type: string;
80183
+ updated_at: string;
80184
+ user_id: string;
80185
+ }[];
80186
+ SetofOptions: {
80187
+ from: "*";
80188
+ to: "logistics_tasks";
80189
+ isOneToOne: false;
80190
+ isSetofReturn: true;
80191
+ };
80192
+ };
79259
80193
  claim_print_jobs: {
79260
80194
  Args: {
79261
80195
  _agent_id: string;
@@ -79320,10 +80254,24 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
79320
80254
  isSetofReturn: true;
79321
80255
  };
79322
80256
  };
80257
+ cleanup_floriday_stock_queue: {
80258
+ Args: never;
80259
+ Returns: undefined;
80260
+ };
79323
80261
  cleanup_old_bookings: {
79324
80262
  Args: never;
79325
80263
  Returns: undefined;
79326
80264
  };
80265
+ complete_floriday_stock_queue: {
80266
+ Args: {
80267
+ p_attempt_id?: string;
80268
+ p_error?: string;
80269
+ p_id: string;
80270
+ p_ok: boolean;
80271
+ p_permanent?: boolean;
80272
+ };
80273
+ Returns: undefined;
80274
+ };
79327
80275
  consume_bom_for_production: {
79328
80276
  Args: {
79329
80277
  p_connection_id: string;
@@ -80015,6 +80963,8 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
80015
80963
  p_worker?: string;
80016
80964
  };
80017
80965
  Returns: {
80966
+ attempt_log: import("../integrations/supabase/types").Json;
80967
+ attempts: number;
80018
80968
  buffer_ref: string | null;
80019
80969
  claimed_at: string | null;
80020
80970
  claimed_by: string | null;
@@ -80024,6 +80974,8 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
80024
80974
  due_at: string | null;
80025
80975
  error: string | null;
80026
80976
  id: string;
80977
+ last_error: string | null;
80978
+ next_attempt_at: string | null;
80027
80979
  order_ref: string;
80028
80980
  owner_module: string;
80029
80981
  payload: import("../integrations/supabase/types").Json;
@@ -80056,6 +81008,8 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
80056
81008
  p_worker?: string;
80057
81009
  };
80058
81010
  Returns: {
81011
+ attempt_log: import("../integrations/supabase/types").Json;
81012
+ attempts: number;
80059
81013
  buffer_ref: string | null;
80060
81014
  claimed_at: string | null;
80061
81015
  claimed_by: string | null;
@@ -80065,6 +81019,8 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
80065
81019
  due_at: string | null;
80066
81020
  error: string | null;
80067
81021
  id: string;
81022
+ last_error: string | null;
81023
+ next_attempt_at: string | null;
80068
81024
  order_ref: string;
80069
81025
  owner_module: string;
80070
81026
  payload: import("../integrations/supabase/types").Json;
@@ -80097,6 +81053,8 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
80097
81053
  p_task_id: string;
80098
81054
  };
80099
81055
  Returns: {
81056
+ attempt_log: import("../integrations/supabase/types").Json;
81057
+ attempts: number;
80100
81058
  buffer_ref: string | null;
80101
81059
  claimed_at: string | null;
80102
81060
  claimed_by: string | null;
@@ -80106,6 +81064,8 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
80106
81064
  due_at: string | null;
80107
81065
  error: string | null;
80108
81066
  id: string;
81067
+ last_error: string | null;
81068
+ next_attempt_at: string | null;
80109
81069
  order_ref: string;
80110
81070
  owner_module: string;
80111
81071
  payload: import("../integrations/supabase/types").Json;
@@ -80187,6 +81147,8 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
80187
81147
  p_task_id: string;
80188
81148
  };
80189
81149
  Returns: {
81150
+ attempt_log: import("../integrations/supabase/types").Json;
81151
+ attempts: number;
80190
81152
  buffer_ref: string | null;
80191
81153
  claimed_at: string | null;
80192
81154
  claimed_by: string | null;
@@ -80196,6 +81158,8 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
80196
81158
  due_at: string | null;
80197
81159
  error: string | null;
80198
81160
  id: string;
81161
+ last_error: string | null;
81162
+ next_attempt_at: string | null;
80199
81163
  order_ref: string;
80200
81164
  owner_module: string;
80201
81165
  payload: import("../integrations/supabase/types").Json;
@@ -80222,6 +81186,51 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
80222
81186
  isSetofReturn: false;
80223
81187
  };
80224
81188
  };
81189
+ logistics_floriday_claim_pushes: {
81190
+ Args: {
81191
+ _lease_seconds?: number;
81192
+ _limit?: number;
81193
+ _worker?: string;
81194
+ };
81195
+ Returns: {
81196
+ attempts: number;
81197
+ fulfillment_order_id: string;
81198
+ id: string;
81199
+ last_sent_hash: string;
81200
+ order_ref: string;
81201
+ payload: import("../integrations/supabase/types").Json;
81202
+ payload_hash: string;
81203
+ revision: number;
81204
+ }[];
81205
+ };
81206
+ logistics_floriday_finish_push: {
81207
+ Args: {
81208
+ _error?: string;
81209
+ _fulfillment_order_id?: string;
81210
+ _id: string;
81211
+ _max_age_hours?: number;
81212
+ _max_attempts?: number;
81213
+ _ok: boolean;
81214
+ _permanent?: boolean;
81215
+ _revision: number;
81216
+ _sent_hash?: string;
81217
+ };
81218
+ Returns: string;
81219
+ };
81220
+ logistics_floriday_prune_pushes: {
81221
+ Args: {
81222
+ _days?: number;
81223
+ };
81224
+ Returns: number;
81225
+ };
81226
+ logistics_floriday_queue_push: {
81227
+ Args: {
81228
+ _order_ref: string;
81229
+ _payload?: import("../integrations/supabase/types").Json;
81230
+ _payload_hash?: string;
81231
+ };
81232
+ Returns: string;
81233
+ };
80225
81234
  logistics_live_carriers: {
80226
81235
  Args: {
80227
81236
  p_order_ref: string;
@@ -80949,6 +81958,10 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
80949
81958
  Args: never;
80950
81959
  Returns: undefined;
80951
81960
  };
81961
+ run_logistics_tasks_dispatch: {
81962
+ Args: never;
81963
+ Returns: undefined;
81964
+ };
80952
81965
  run_twinfield_queue_tick: {
80953
81966
  Args: never;
80954
81967
  Returns: undefined;
@@ -81189,6 +82202,13 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
81189
82202
  };
81190
82203
  Returns: number;
81191
82204
  };
82205
+ schedule_floriday_stock_queue_process: {
82206
+ Args: {
82207
+ p_apikey: string;
82208
+ p_url: string;
82209
+ };
82210
+ Returns: number;
82211
+ };
81192
82212
  schedule_floriday_token_refresh: {
81193
82213
  Args: {
81194
82214
  p_apikey: string;
@@ -87235,12 +88255,17 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
87235
88255
  attempts: number;
87236
88256
  connection_id: string;
87237
88257
  created_at: string;
88258
+ desired_available: boolean | null;
87238
88259
  gateway_attempt_id: string | null;
87239
88260
  id: string;
87240
88261
  last_error: string | null;
88262
+ locked_at: string | null;
88263
+ locked_by: string | null;
88264
+ next_attempt_at: string;
87241
88265
  number_of_pieces: number;
87242
88266
  sent_at: string | null;
87243
88267
  status: string;
88268
+ superseded_by: string | null;
87244
88269
  trade_item_id: string;
87245
88270
  updated_at: string;
87246
88271
  user_id: string;
@@ -87249,12 +88274,17 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
87249
88274
  attempts?: number;
87250
88275
  connection_id: string;
87251
88276
  created_at?: string;
88277
+ desired_available?: boolean | null;
87252
88278
  gateway_attempt_id?: string | null;
87253
88279
  id?: string;
87254
88280
  last_error?: string | null;
88281
+ locked_at?: string | null;
88282
+ locked_by?: string | null;
88283
+ next_attempt_at?: string;
87255
88284
  number_of_pieces?: number;
87256
88285
  sent_at?: string | null;
87257
88286
  status?: string;
88287
+ superseded_by?: string | null;
87258
88288
  trade_item_id: string;
87259
88289
  updated_at?: string;
87260
88290
  user_id: string;
@@ -87263,12 +88293,17 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
87263
88293
  attempts?: number;
87264
88294
  connection_id?: string;
87265
88295
  created_at?: string;
88296
+ desired_available?: boolean | null;
87266
88297
  gateway_attempt_id?: string | null;
87267
88298
  id?: string;
87268
88299
  last_error?: string | null;
88300
+ locked_at?: string | null;
88301
+ locked_by?: string | null;
88302
+ next_attempt_at?: string;
87269
88303
  number_of_pieces?: number;
87270
88304
  sent_at?: string | null;
87271
88305
  status?: string;
88306
+ superseded_by?: string | null;
87272
88307
  trade_item_id?: string;
87273
88308
  updated_at?: string;
87274
88309
  user_id?: string;
@@ -90017,6 +91052,69 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
90017
91052
  };
90018
91053
  Relationships: [];
90019
91054
  };
91055
+ logistics_floriday_pushes: {
91056
+ Row: {
91057
+ attempts: number;
91058
+ created_at: string;
91059
+ first_queued_at: string;
91060
+ fulfillment_order_id: string | null;
91061
+ id: string;
91062
+ last_error: string | null;
91063
+ last_error_at: string | null;
91064
+ last_sent_hash: string | null;
91065
+ locked_by: string | null;
91066
+ locked_until: string | null;
91067
+ next_attempt_at: string;
91068
+ order_ref: string;
91069
+ payload: import("../integrations/supabase/types").Json;
91070
+ payload_hash: string | null;
91071
+ revision: number;
91072
+ sent_at: string | null;
91073
+ status: string;
91074
+ updated_at: string;
91075
+ };
91076
+ Insert: {
91077
+ attempts?: number;
91078
+ created_at?: string;
91079
+ first_queued_at?: string;
91080
+ fulfillment_order_id?: string | null;
91081
+ id?: string;
91082
+ last_error?: string | null;
91083
+ last_error_at?: string | null;
91084
+ last_sent_hash?: string | null;
91085
+ locked_by?: string | null;
91086
+ locked_until?: string | null;
91087
+ next_attempt_at?: string;
91088
+ order_ref: string;
91089
+ payload?: import("../integrations/supabase/types").Json;
91090
+ payload_hash?: string | null;
91091
+ revision?: number;
91092
+ sent_at?: string | null;
91093
+ status?: string;
91094
+ updated_at?: string;
91095
+ };
91096
+ Update: {
91097
+ attempts?: number;
91098
+ created_at?: string;
91099
+ first_queued_at?: string;
91100
+ fulfillment_order_id?: string | null;
91101
+ id?: string;
91102
+ last_error?: string | null;
91103
+ last_error_at?: string | null;
91104
+ last_sent_hash?: string | null;
91105
+ locked_by?: string | null;
91106
+ locked_until?: string | null;
91107
+ next_attempt_at?: string;
91108
+ order_ref?: string;
91109
+ payload?: import("../integrations/supabase/types").Json;
91110
+ payload_hash?: string | null;
91111
+ revision?: number;
91112
+ sent_at?: string | null;
91113
+ status?: string;
91114
+ updated_at?: string;
91115
+ };
91116
+ Relationships: [];
91117
+ };
90020
91118
  logistics_formulas: {
90021
91119
  Row: {
90022
91120
  created_at: string;
@@ -90628,6 +91726,8 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
90628
91726
  };
90629
91727
  logistics_tasks: {
90630
91728
  Row: {
91729
+ attempt_log: import("../integrations/supabase/types").Json;
91730
+ attempts: number;
90631
91731
  buffer_ref: string | null;
90632
91732
  claimed_at: string | null;
90633
91733
  claimed_by: string | null;
@@ -90637,6 +91737,8 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
90637
91737
  due_at: string | null;
90638
91738
  error: string | null;
90639
91739
  id: string;
91740
+ last_error: string | null;
91741
+ next_attempt_at: string | null;
90640
91742
  order_ref: string;
90641
91743
  owner_module: string;
90642
91744
  payload: import("../integrations/supabase/types").Json;
@@ -90657,6 +91759,8 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
90657
91759
  user_id: string;
90658
91760
  };
90659
91761
  Insert: {
91762
+ attempt_log?: import("../integrations/supabase/types").Json;
91763
+ attempts?: number;
90660
91764
  buffer_ref?: string | null;
90661
91765
  claimed_at?: string | null;
90662
91766
  claimed_by?: string | null;
@@ -90666,6 +91770,8 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
90666
91770
  due_at?: string | null;
90667
91771
  error?: string | null;
90668
91772
  id?: string;
91773
+ last_error?: string | null;
91774
+ next_attempt_at?: string | null;
90669
91775
  order_ref: string;
90670
91776
  owner_module: string;
90671
91777
  payload?: import("../integrations/supabase/types").Json;
@@ -90686,6 +91792,8 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
90686
91792
  user_id?: string;
90687
91793
  };
90688
91794
  Update: {
91795
+ attempt_log?: import("../integrations/supabase/types").Json;
91796
+ attempts?: number;
90689
91797
  buffer_ref?: string | null;
90690
91798
  claimed_at?: string | null;
90691
91799
  claimed_by?: string | null;
@@ -90695,6 +91803,8 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
90695
91803
  due_at?: string | null;
90696
91804
  error?: string | null;
90697
91805
  id?: string;
91806
+ last_error?: string | null;
91807
+ next_attempt_at?: string | null;
90698
91808
  order_ref?: string;
90699
91809
  owner_module?: string;
90700
91810
  payload?: import("../integrations/supabase/types").Json;
@@ -99699,6 +100809,85 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
99699
100809
  };
99700
100810
  Returns: import("../integrations/supabase/types").Json;
99701
100811
  };
100812
+ claim_floriday_stock_queue: {
100813
+ Args: {
100814
+ p_limit?: number;
100815
+ p_worker?: string;
100816
+ };
100817
+ Returns: {
100818
+ attempts: number;
100819
+ connection_id: string;
100820
+ created_at: string;
100821
+ desired_available: boolean | null;
100822
+ gateway_attempt_id: string | null;
100823
+ id: string;
100824
+ last_error: string | null;
100825
+ locked_at: string | null;
100826
+ locked_by: string | null;
100827
+ next_attempt_at: string;
100828
+ number_of_pieces: number;
100829
+ sent_at: string | null;
100830
+ status: string;
100831
+ superseded_by: string | null;
100832
+ trade_item_id: string;
100833
+ updated_at: string;
100834
+ user_id: string;
100835
+ }[];
100836
+ SetofOptions: {
100837
+ from: "*";
100838
+ to: "floriday_continuous_stock_queue";
100839
+ isOneToOne: false;
100840
+ isSetofReturn: true;
100841
+ };
100842
+ };
100843
+ claim_logistics_tasks: {
100844
+ Args: {
100845
+ _limit?: number;
100846
+ _owner_module: string;
100847
+ _stale_minutes?: number;
100848
+ _task_type: string;
100849
+ _worker: string;
100850
+ };
100851
+ Returns: {
100852
+ attempt_log: import("../integrations/supabase/types").Json;
100853
+ attempts: number;
100854
+ buffer_ref: string | null;
100855
+ claimed_at: string | null;
100856
+ claimed_by: string | null;
100857
+ completed_at: string | null;
100858
+ created_at: string;
100859
+ depends_on: string[];
100860
+ due_at: string | null;
100861
+ error: string | null;
100862
+ id: string;
100863
+ last_error: string | null;
100864
+ next_attempt_at: string | null;
100865
+ order_ref: string;
100866
+ owner_module: string;
100867
+ payload: import("../integrations/supabase/types").Json;
100868
+ plan_run_id: string | null;
100869
+ planned_end: string | null;
100870
+ planned_start: string | null;
100871
+ priority: number;
100872
+ result: import("../integrations/supabase/types").Json | null;
100873
+ rule_config_id: string | null;
100874
+ rule_version: number | null;
100875
+ sequence: number;
100876
+ shadow: boolean;
100877
+ started_at: string | null;
100878
+ status: string;
100879
+ strategy_id: string | null;
100880
+ task_type: string;
100881
+ updated_at: string;
100882
+ user_id: string;
100883
+ }[];
100884
+ SetofOptions: {
100885
+ from: "*";
100886
+ to: "logistics_tasks";
100887
+ isOneToOne: false;
100888
+ isSetofReturn: true;
100889
+ };
100890
+ };
99702
100891
  claim_print_jobs: {
99703
100892
  Args: {
99704
100893
  _agent_id: string;
@@ -99763,10 +100952,24 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
99763
100952
  isSetofReturn: true;
99764
100953
  };
99765
100954
  };
100955
+ cleanup_floriday_stock_queue: {
100956
+ Args: never;
100957
+ Returns: undefined;
100958
+ };
99766
100959
  cleanup_old_bookings: {
99767
100960
  Args: never;
99768
100961
  Returns: undefined;
99769
100962
  };
100963
+ complete_floriday_stock_queue: {
100964
+ Args: {
100965
+ p_attempt_id?: string;
100966
+ p_error?: string;
100967
+ p_id: string;
100968
+ p_ok: boolean;
100969
+ p_permanent?: boolean;
100970
+ };
100971
+ Returns: undefined;
100972
+ };
99770
100973
  consume_bom_for_production: {
99771
100974
  Args: {
99772
100975
  p_connection_id: string;
@@ -100458,6 +101661,8 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
100458
101661
  p_worker?: string;
100459
101662
  };
100460
101663
  Returns: {
101664
+ attempt_log: import("../integrations/supabase/types").Json;
101665
+ attempts: number;
100461
101666
  buffer_ref: string | null;
100462
101667
  claimed_at: string | null;
100463
101668
  claimed_by: string | null;
@@ -100467,6 +101672,8 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
100467
101672
  due_at: string | null;
100468
101673
  error: string | null;
100469
101674
  id: string;
101675
+ last_error: string | null;
101676
+ next_attempt_at: string | null;
100470
101677
  order_ref: string;
100471
101678
  owner_module: string;
100472
101679
  payload: import("../integrations/supabase/types").Json;
@@ -100499,6 +101706,8 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
100499
101706
  p_worker?: string;
100500
101707
  };
100501
101708
  Returns: {
101709
+ attempt_log: import("../integrations/supabase/types").Json;
101710
+ attempts: number;
100502
101711
  buffer_ref: string | null;
100503
101712
  claimed_at: string | null;
100504
101713
  claimed_by: string | null;
@@ -100508,6 +101717,8 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
100508
101717
  due_at: string | null;
100509
101718
  error: string | null;
100510
101719
  id: string;
101720
+ last_error: string | null;
101721
+ next_attempt_at: string | null;
100511
101722
  order_ref: string;
100512
101723
  owner_module: string;
100513
101724
  payload: import("../integrations/supabase/types").Json;
@@ -100540,6 +101751,8 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
100540
101751
  p_task_id: string;
100541
101752
  };
100542
101753
  Returns: {
101754
+ attempt_log: import("../integrations/supabase/types").Json;
101755
+ attempts: number;
100543
101756
  buffer_ref: string | null;
100544
101757
  claimed_at: string | null;
100545
101758
  claimed_by: string | null;
@@ -100549,6 +101762,8 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
100549
101762
  due_at: string | null;
100550
101763
  error: string | null;
100551
101764
  id: string;
101765
+ last_error: string | null;
101766
+ next_attempt_at: string | null;
100552
101767
  order_ref: string;
100553
101768
  owner_module: string;
100554
101769
  payload: import("../integrations/supabase/types").Json;
@@ -100630,6 +101845,8 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
100630
101845
  p_task_id: string;
100631
101846
  };
100632
101847
  Returns: {
101848
+ attempt_log: import("../integrations/supabase/types").Json;
101849
+ attempts: number;
100633
101850
  buffer_ref: string | null;
100634
101851
  claimed_at: string | null;
100635
101852
  claimed_by: string | null;
@@ -100639,6 +101856,8 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
100639
101856
  due_at: string | null;
100640
101857
  error: string | null;
100641
101858
  id: string;
101859
+ last_error: string | null;
101860
+ next_attempt_at: string | null;
100642
101861
  order_ref: string;
100643
101862
  owner_module: string;
100644
101863
  payload: import("../integrations/supabase/types").Json;
@@ -100665,6 +101884,51 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
100665
101884
  isSetofReturn: false;
100666
101885
  };
100667
101886
  };
101887
+ logistics_floriday_claim_pushes: {
101888
+ Args: {
101889
+ _lease_seconds?: number;
101890
+ _limit?: number;
101891
+ _worker?: string;
101892
+ };
101893
+ Returns: {
101894
+ attempts: number;
101895
+ fulfillment_order_id: string;
101896
+ id: string;
101897
+ last_sent_hash: string;
101898
+ order_ref: string;
101899
+ payload: import("../integrations/supabase/types").Json;
101900
+ payload_hash: string;
101901
+ revision: number;
101902
+ }[];
101903
+ };
101904
+ logistics_floriday_finish_push: {
101905
+ Args: {
101906
+ _error?: string;
101907
+ _fulfillment_order_id?: string;
101908
+ _id: string;
101909
+ _max_age_hours?: number;
101910
+ _max_attempts?: number;
101911
+ _ok: boolean;
101912
+ _permanent?: boolean;
101913
+ _revision: number;
101914
+ _sent_hash?: string;
101915
+ };
101916
+ Returns: string;
101917
+ };
101918
+ logistics_floriday_prune_pushes: {
101919
+ Args: {
101920
+ _days?: number;
101921
+ };
101922
+ Returns: number;
101923
+ };
101924
+ logistics_floriday_queue_push: {
101925
+ Args: {
101926
+ _order_ref: string;
101927
+ _payload?: import("../integrations/supabase/types").Json;
101928
+ _payload_hash?: string;
101929
+ };
101930
+ Returns: string;
101931
+ };
100668
101932
  logistics_live_carriers: {
100669
101933
  Args: {
100670
101934
  p_order_ref: string;
@@ -101392,6 +102656,10 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
101392
102656
  Args: never;
101393
102657
  Returns: undefined;
101394
102658
  };
102659
+ run_logistics_tasks_dispatch: {
102660
+ Args: never;
102661
+ Returns: undefined;
102662
+ };
101395
102663
  run_twinfield_queue_tick: {
101396
102664
  Args: never;
101397
102665
  Returns: undefined;
@@ -101632,6 +102900,13 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
101632
102900
  };
101633
102901
  Returns: number;
101634
102902
  };
102903
+ schedule_floriday_stock_queue_process: {
102904
+ Args: {
102905
+ p_apikey: string;
102906
+ p_url: string;
102907
+ };
102908
+ Returns: number;
102909
+ };
101635
102910
  schedule_floriday_token_refresh: {
101636
102911
  Args: {
101637
102912
  p_apikey: string;
@@ -107670,12 +108945,17 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
107670
108945
  attempts: number;
107671
108946
  connection_id: string;
107672
108947
  created_at: string;
108948
+ desired_available: boolean | null;
107673
108949
  gateway_attempt_id: string | null;
107674
108950
  id: string;
107675
108951
  last_error: string | null;
108952
+ locked_at: string | null;
108953
+ locked_by: string | null;
108954
+ next_attempt_at: string;
107676
108955
  number_of_pieces: number;
107677
108956
  sent_at: string | null;
107678
108957
  status: string;
108958
+ superseded_by: string | null;
107679
108959
  trade_item_id: string;
107680
108960
  updated_at: string;
107681
108961
  user_id: string;
@@ -107684,12 +108964,17 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
107684
108964
  attempts?: number;
107685
108965
  connection_id: string;
107686
108966
  created_at?: string;
108967
+ desired_available?: boolean | null;
107687
108968
  gateway_attempt_id?: string | null;
107688
108969
  id?: string;
107689
108970
  last_error?: string | null;
108971
+ locked_at?: string | null;
108972
+ locked_by?: string | null;
108973
+ next_attempt_at?: string;
107690
108974
  number_of_pieces?: number;
107691
108975
  sent_at?: string | null;
107692
108976
  status?: string;
108977
+ superseded_by?: string | null;
107693
108978
  trade_item_id: string;
107694
108979
  updated_at?: string;
107695
108980
  user_id: string;
@@ -107698,12 +108983,17 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
107698
108983
  attempts?: number;
107699
108984
  connection_id?: string;
107700
108985
  created_at?: string;
108986
+ desired_available?: boolean | null;
107701
108987
  gateway_attempt_id?: string | null;
107702
108988
  id?: string;
107703
108989
  last_error?: string | null;
108990
+ locked_at?: string | null;
108991
+ locked_by?: string | null;
108992
+ next_attempt_at?: string;
107704
108993
  number_of_pieces?: number;
107705
108994
  sent_at?: string | null;
107706
108995
  status?: string;
108996
+ superseded_by?: string | null;
107707
108997
  trade_item_id?: string;
107708
108998
  updated_at?: string;
107709
108999
  user_id?: string;
@@ -110452,6 +111742,69 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
110452
111742
  };
110453
111743
  Relationships: [];
110454
111744
  };
111745
+ logistics_floriday_pushes: {
111746
+ Row: {
111747
+ attempts: number;
111748
+ created_at: string;
111749
+ first_queued_at: string;
111750
+ fulfillment_order_id: string | null;
111751
+ id: string;
111752
+ last_error: string | null;
111753
+ last_error_at: string | null;
111754
+ last_sent_hash: string | null;
111755
+ locked_by: string | null;
111756
+ locked_until: string | null;
111757
+ next_attempt_at: string;
111758
+ order_ref: string;
111759
+ payload: import("../integrations/supabase/types").Json;
111760
+ payload_hash: string | null;
111761
+ revision: number;
111762
+ sent_at: string | null;
111763
+ status: string;
111764
+ updated_at: string;
111765
+ };
111766
+ Insert: {
111767
+ attempts?: number;
111768
+ created_at?: string;
111769
+ first_queued_at?: string;
111770
+ fulfillment_order_id?: string | null;
111771
+ id?: string;
111772
+ last_error?: string | null;
111773
+ last_error_at?: string | null;
111774
+ last_sent_hash?: string | null;
111775
+ locked_by?: string | null;
111776
+ locked_until?: string | null;
111777
+ next_attempt_at?: string;
111778
+ order_ref: string;
111779
+ payload?: import("../integrations/supabase/types").Json;
111780
+ payload_hash?: string | null;
111781
+ revision?: number;
111782
+ sent_at?: string | null;
111783
+ status?: string;
111784
+ updated_at?: string;
111785
+ };
111786
+ Update: {
111787
+ attempts?: number;
111788
+ created_at?: string;
111789
+ first_queued_at?: string;
111790
+ fulfillment_order_id?: string | null;
111791
+ id?: string;
111792
+ last_error?: string | null;
111793
+ last_error_at?: string | null;
111794
+ last_sent_hash?: string | null;
111795
+ locked_by?: string | null;
111796
+ locked_until?: string | null;
111797
+ next_attempt_at?: string;
111798
+ order_ref?: string;
111799
+ payload?: import("../integrations/supabase/types").Json;
111800
+ payload_hash?: string | null;
111801
+ revision?: number;
111802
+ sent_at?: string | null;
111803
+ status?: string;
111804
+ updated_at?: string;
111805
+ };
111806
+ Relationships: [];
111807
+ };
110455
111808
  logistics_formulas: {
110456
111809
  Row: {
110457
111810
  created_at: string;
@@ -111063,6 +112416,8 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
111063
112416
  };
111064
112417
  logistics_tasks: {
111065
112418
  Row: {
112419
+ attempt_log: import("../integrations/supabase/types").Json;
112420
+ attempts: number;
111066
112421
  buffer_ref: string | null;
111067
112422
  claimed_at: string | null;
111068
112423
  claimed_by: string | null;
@@ -111072,6 +112427,8 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
111072
112427
  due_at: string | null;
111073
112428
  error: string | null;
111074
112429
  id: string;
112430
+ last_error: string | null;
112431
+ next_attempt_at: string | null;
111075
112432
  order_ref: string;
111076
112433
  owner_module: string;
111077
112434
  payload: import("../integrations/supabase/types").Json;
@@ -111092,6 +112449,8 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
111092
112449
  user_id: string;
111093
112450
  };
111094
112451
  Insert: {
112452
+ attempt_log?: import("../integrations/supabase/types").Json;
112453
+ attempts?: number;
111095
112454
  buffer_ref?: string | null;
111096
112455
  claimed_at?: string | null;
111097
112456
  claimed_by?: string | null;
@@ -111101,6 +112460,8 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
111101
112460
  due_at?: string | null;
111102
112461
  error?: string | null;
111103
112462
  id?: string;
112463
+ last_error?: string | null;
112464
+ next_attempt_at?: string | null;
111104
112465
  order_ref: string;
111105
112466
  owner_module: string;
111106
112467
  payload?: import("../integrations/supabase/types").Json;
@@ -111121,6 +112482,8 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
111121
112482
  user_id?: string;
111122
112483
  };
111123
112484
  Update: {
112485
+ attempt_log?: import("../integrations/supabase/types").Json;
112486
+ attempts?: number;
111124
112487
  buffer_ref?: string | null;
111125
112488
  claimed_at?: string | null;
111126
112489
  claimed_by?: string | null;
@@ -111130,6 +112493,8 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
111130
112493
  due_at?: string | null;
111131
112494
  error?: string | null;
111132
112495
  id?: string;
112496
+ last_error?: string | null;
112497
+ next_attempt_at?: string | null;
111133
112498
  order_ref?: string;
111134
112499
  owner_module?: string;
111135
112500
  payload?: import("../integrations/supabase/types").Json;
@@ -120134,6 +121499,85 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
120134
121499
  };
120135
121500
  Returns: import("../integrations/supabase/types").Json;
120136
121501
  };
121502
+ claim_floriday_stock_queue: {
121503
+ Args: {
121504
+ p_limit?: number;
121505
+ p_worker?: string;
121506
+ };
121507
+ Returns: {
121508
+ attempts: number;
121509
+ connection_id: string;
121510
+ created_at: string;
121511
+ desired_available: boolean | null;
121512
+ gateway_attempt_id: string | null;
121513
+ id: string;
121514
+ last_error: string | null;
121515
+ locked_at: string | null;
121516
+ locked_by: string | null;
121517
+ next_attempt_at: string;
121518
+ number_of_pieces: number;
121519
+ sent_at: string | null;
121520
+ status: string;
121521
+ superseded_by: string | null;
121522
+ trade_item_id: string;
121523
+ updated_at: string;
121524
+ user_id: string;
121525
+ }[];
121526
+ SetofOptions: {
121527
+ from: "*";
121528
+ to: "floriday_continuous_stock_queue";
121529
+ isOneToOne: false;
121530
+ isSetofReturn: true;
121531
+ };
121532
+ };
121533
+ claim_logistics_tasks: {
121534
+ Args: {
121535
+ _limit?: number;
121536
+ _owner_module: string;
121537
+ _stale_minutes?: number;
121538
+ _task_type: string;
121539
+ _worker: string;
121540
+ };
121541
+ Returns: {
121542
+ attempt_log: import("../integrations/supabase/types").Json;
121543
+ attempts: number;
121544
+ buffer_ref: string | null;
121545
+ claimed_at: string | null;
121546
+ claimed_by: string | null;
121547
+ completed_at: string | null;
121548
+ created_at: string;
121549
+ depends_on: string[];
121550
+ due_at: string | null;
121551
+ error: string | null;
121552
+ id: string;
121553
+ last_error: string | null;
121554
+ next_attempt_at: string | null;
121555
+ order_ref: string;
121556
+ owner_module: string;
121557
+ payload: import("../integrations/supabase/types").Json;
121558
+ plan_run_id: string | null;
121559
+ planned_end: string | null;
121560
+ planned_start: string | null;
121561
+ priority: number;
121562
+ result: import("../integrations/supabase/types").Json | null;
121563
+ rule_config_id: string | null;
121564
+ rule_version: number | null;
121565
+ sequence: number;
121566
+ shadow: boolean;
121567
+ started_at: string | null;
121568
+ status: string;
121569
+ strategy_id: string | null;
121570
+ task_type: string;
121571
+ updated_at: string;
121572
+ user_id: string;
121573
+ }[];
121574
+ SetofOptions: {
121575
+ from: "*";
121576
+ to: "logistics_tasks";
121577
+ isOneToOne: false;
121578
+ isSetofReturn: true;
121579
+ };
121580
+ };
120137
121581
  claim_print_jobs: {
120138
121582
  Args: {
120139
121583
  _agent_id: string;
@@ -120198,10 +121642,24 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
120198
121642
  isSetofReturn: true;
120199
121643
  };
120200
121644
  };
121645
+ cleanup_floriday_stock_queue: {
121646
+ Args: never;
121647
+ Returns: undefined;
121648
+ };
120201
121649
  cleanup_old_bookings: {
120202
121650
  Args: never;
120203
121651
  Returns: undefined;
120204
121652
  };
121653
+ complete_floriday_stock_queue: {
121654
+ Args: {
121655
+ p_attempt_id?: string;
121656
+ p_error?: string;
121657
+ p_id: string;
121658
+ p_ok: boolean;
121659
+ p_permanent?: boolean;
121660
+ };
121661
+ Returns: undefined;
121662
+ };
120205
121663
  consume_bom_for_production: {
120206
121664
  Args: {
120207
121665
  p_connection_id: string;
@@ -120893,6 +122351,8 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
120893
122351
  p_worker?: string;
120894
122352
  };
120895
122353
  Returns: {
122354
+ attempt_log: import("../integrations/supabase/types").Json;
122355
+ attempts: number;
120896
122356
  buffer_ref: string | null;
120897
122357
  claimed_at: string | null;
120898
122358
  claimed_by: string | null;
@@ -120902,6 +122362,8 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
120902
122362
  due_at: string | null;
120903
122363
  error: string | null;
120904
122364
  id: string;
122365
+ last_error: string | null;
122366
+ next_attempt_at: string | null;
120905
122367
  order_ref: string;
120906
122368
  owner_module: string;
120907
122369
  payload: import("../integrations/supabase/types").Json;
@@ -120934,6 +122396,8 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
120934
122396
  p_worker?: string;
120935
122397
  };
120936
122398
  Returns: {
122399
+ attempt_log: import("../integrations/supabase/types").Json;
122400
+ attempts: number;
120937
122401
  buffer_ref: string | null;
120938
122402
  claimed_at: string | null;
120939
122403
  claimed_by: string | null;
@@ -120943,6 +122407,8 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
120943
122407
  due_at: string | null;
120944
122408
  error: string | null;
120945
122409
  id: string;
122410
+ last_error: string | null;
122411
+ next_attempt_at: string | null;
120946
122412
  order_ref: string;
120947
122413
  owner_module: string;
120948
122414
  payload: import("../integrations/supabase/types").Json;
@@ -120975,6 +122441,8 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
120975
122441
  p_task_id: string;
120976
122442
  };
120977
122443
  Returns: {
122444
+ attempt_log: import("../integrations/supabase/types").Json;
122445
+ attempts: number;
120978
122446
  buffer_ref: string | null;
120979
122447
  claimed_at: string | null;
120980
122448
  claimed_by: string | null;
@@ -120984,6 +122452,8 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
120984
122452
  due_at: string | null;
120985
122453
  error: string | null;
120986
122454
  id: string;
122455
+ last_error: string | null;
122456
+ next_attempt_at: string | null;
120987
122457
  order_ref: string;
120988
122458
  owner_module: string;
120989
122459
  payload: import("../integrations/supabase/types").Json;
@@ -121065,6 +122535,8 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
121065
122535
  p_task_id: string;
121066
122536
  };
121067
122537
  Returns: {
122538
+ attempt_log: import("../integrations/supabase/types").Json;
122539
+ attempts: number;
121068
122540
  buffer_ref: string | null;
121069
122541
  claimed_at: string | null;
121070
122542
  claimed_by: string | null;
@@ -121074,6 +122546,8 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
121074
122546
  due_at: string | null;
121075
122547
  error: string | null;
121076
122548
  id: string;
122549
+ last_error: string | null;
122550
+ next_attempt_at: string | null;
121077
122551
  order_ref: string;
121078
122552
  owner_module: string;
121079
122553
  payload: import("../integrations/supabase/types").Json;
@@ -121100,6 +122574,51 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
121100
122574
  isSetofReturn: false;
121101
122575
  };
121102
122576
  };
122577
+ logistics_floriday_claim_pushes: {
122578
+ Args: {
122579
+ _lease_seconds?: number;
122580
+ _limit?: number;
122581
+ _worker?: string;
122582
+ };
122583
+ Returns: {
122584
+ attempts: number;
122585
+ fulfillment_order_id: string;
122586
+ id: string;
122587
+ last_sent_hash: string;
122588
+ order_ref: string;
122589
+ payload: import("../integrations/supabase/types").Json;
122590
+ payload_hash: string;
122591
+ revision: number;
122592
+ }[];
122593
+ };
122594
+ logistics_floriday_finish_push: {
122595
+ Args: {
122596
+ _error?: string;
122597
+ _fulfillment_order_id?: string;
122598
+ _id: string;
122599
+ _max_age_hours?: number;
122600
+ _max_attempts?: number;
122601
+ _ok: boolean;
122602
+ _permanent?: boolean;
122603
+ _revision: number;
122604
+ _sent_hash?: string;
122605
+ };
122606
+ Returns: string;
122607
+ };
122608
+ logistics_floriday_prune_pushes: {
122609
+ Args: {
122610
+ _days?: number;
122611
+ };
122612
+ Returns: number;
122613
+ };
122614
+ logistics_floriday_queue_push: {
122615
+ Args: {
122616
+ _order_ref: string;
122617
+ _payload?: import("../integrations/supabase/types").Json;
122618
+ _payload_hash?: string;
122619
+ };
122620
+ Returns: string;
122621
+ };
121103
122622
  logistics_live_carriers: {
121104
122623
  Args: {
121105
122624
  p_order_ref: string;
@@ -121827,6 +123346,10 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
121827
123346
  Args: never;
121828
123347
  Returns: undefined;
121829
123348
  };
123349
+ run_logistics_tasks_dispatch: {
123350
+ Args: never;
123351
+ Returns: undefined;
123352
+ };
121830
123353
  run_twinfield_queue_tick: {
121831
123354
  Args: never;
121832
123355
  Returns: undefined;
@@ -122067,6 +123590,13 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
122067
123590
  };
122068
123591
  Returns: number;
122069
123592
  };
123593
+ schedule_floriday_stock_queue_process: {
123594
+ Args: {
123595
+ p_apikey: string;
123596
+ p_url: string;
123597
+ };
123598
+ Returns: number;
123599
+ };
122070
123600
  schedule_floriday_token_refresh: {
122071
123601
  Args: {
122072
123602
  p_apikey: string;
@@ -127978,12 +129508,17 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
127978
129508
  attempts: number;
127979
129509
  connection_id: string;
127980
129510
  created_at: string;
129511
+ desired_available: boolean | null;
127981
129512
  gateway_attempt_id: string | null;
127982
129513
  id: string;
127983
129514
  last_error: string | null;
129515
+ locked_at: string | null;
129516
+ locked_by: string | null;
129517
+ next_attempt_at: string;
127984
129518
  number_of_pieces: number;
127985
129519
  sent_at: string | null;
127986
129520
  status: string;
129521
+ superseded_by: string | null;
127987
129522
  trade_item_id: string;
127988
129523
  updated_at: string;
127989
129524
  user_id: string;
@@ -127992,12 +129527,17 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
127992
129527
  attempts?: number;
127993
129528
  connection_id: string;
127994
129529
  created_at?: string;
129530
+ desired_available?: boolean | null;
127995
129531
  gateway_attempt_id?: string | null;
127996
129532
  id?: string;
127997
129533
  last_error?: string | null;
129534
+ locked_at?: string | null;
129535
+ locked_by?: string | null;
129536
+ next_attempt_at?: string;
127998
129537
  number_of_pieces?: number;
127999
129538
  sent_at?: string | null;
128000
129539
  status?: string;
129540
+ superseded_by?: string | null;
128001
129541
  trade_item_id: string;
128002
129542
  updated_at?: string;
128003
129543
  user_id: string;
@@ -128006,12 +129546,17 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
128006
129546
  attempts?: number;
128007
129547
  connection_id?: string;
128008
129548
  created_at?: string;
129549
+ desired_available?: boolean | null;
128009
129550
  gateway_attempt_id?: string | null;
128010
129551
  id?: string;
128011
129552
  last_error?: string | null;
129553
+ locked_at?: string | null;
129554
+ locked_by?: string | null;
129555
+ next_attempt_at?: string;
128012
129556
  number_of_pieces?: number;
128013
129557
  sent_at?: string | null;
128014
129558
  status?: string;
129559
+ superseded_by?: string | null;
128015
129560
  trade_item_id?: string;
128016
129561
  updated_at?: string;
128017
129562
  user_id?: string;
@@ -130760,6 +132305,69 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
130760
132305
  };
130761
132306
  Relationships: [];
130762
132307
  };
132308
+ logistics_floriday_pushes: {
132309
+ Row: {
132310
+ attempts: number;
132311
+ created_at: string;
132312
+ first_queued_at: string;
132313
+ fulfillment_order_id: string | null;
132314
+ id: string;
132315
+ last_error: string | null;
132316
+ last_error_at: string | null;
132317
+ last_sent_hash: string | null;
132318
+ locked_by: string | null;
132319
+ locked_until: string | null;
132320
+ next_attempt_at: string;
132321
+ order_ref: string;
132322
+ payload: import("../integrations/supabase/types").Json;
132323
+ payload_hash: string | null;
132324
+ revision: number;
132325
+ sent_at: string | null;
132326
+ status: string;
132327
+ updated_at: string;
132328
+ };
132329
+ Insert: {
132330
+ attempts?: number;
132331
+ created_at?: string;
132332
+ first_queued_at?: string;
132333
+ fulfillment_order_id?: string | null;
132334
+ id?: string;
132335
+ last_error?: string | null;
132336
+ last_error_at?: string | null;
132337
+ last_sent_hash?: string | null;
132338
+ locked_by?: string | null;
132339
+ locked_until?: string | null;
132340
+ next_attempt_at?: string;
132341
+ order_ref: string;
132342
+ payload?: import("../integrations/supabase/types").Json;
132343
+ payload_hash?: string | null;
132344
+ revision?: number;
132345
+ sent_at?: string | null;
132346
+ status?: string;
132347
+ updated_at?: string;
132348
+ };
132349
+ Update: {
132350
+ attempts?: number;
132351
+ created_at?: string;
132352
+ first_queued_at?: string;
132353
+ fulfillment_order_id?: string | null;
132354
+ id?: string;
132355
+ last_error?: string | null;
132356
+ last_error_at?: string | null;
132357
+ last_sent_hash?: string | null;
132358
+ locked_by?: string | null;
132359
+ locked_until?: string | null;
132360
+ next_attempt_at?: string;
132361
+ order_ref?: string;
132362
+ payload?: import("../integrations/supabase/types").Json;
132363
+ payload_hash?: string | null;
132364
+ revision?: number;
132365
+ sent_at?: string | null;
132366
+ status?: string;
132367
+ updated_at?: string;
132368
+ };
132369
+ Relationships: [];
132370
+ };
130763
132371
  logistics_formulas: {
130764
132372
  Row: {
130765
132373
  created_at: string;
@@ -131371,6 +132979,8 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
131371
132979
  };
131372
132980
  logistics_tasks: {
131373
132981
  Row: {
132982
+ attempt_log: import("../integrations/supabase/types").Json;
132983
+ attempts: number;
131374
132984
  buffer_ref: string | null;
131375
132985
  claimed_at: string | null;
131376
132986
  claimed_by: string | null;
@@ -131380,6 +132990,8 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
131380
132990
  due_at: string | null;
131381
132991
  error: string | null;
131382
132992
  id: string;
132993
+ last_error: string | null;
132994
+ next_attempt_at: string | null;
131383
132995
  order_ref: string;
131384
132996
  owner_module: string;
131385
132997
  payload: import("../integrations/supabase/types").Json;
@@ -131400,6 +133012,8 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
131400
133012
  user_id: string;
131401
133013
  };
131402
133014
  Insert: {
133015
+ attempt_log?: import("../integrations/supabase/types").Json;
133016
+ attempts?: number;
131403
133017
  buffer_ref?: string | null;
131404
133018
  claimed_at?: string | null;
131405
133019
  claimed_by?: string | null;
@@ -131409,6 +133023,8 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
131409
133023
  due_at?: string | null;
131410
133024
  error?: string | null;
131411
133025
  id?: string;
133026
+ last_error?: string | null;
133027
+ next_attempt_at?: string | null;
131412
133028
  order_ref: string;
131413
133029
  owner_module: string;
131414
133030
  payload?: import("../integrations/supabase/types").Json;
@@ -131429,6 +133045,8 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
131429
133045
  user_id?: string;
131430
133046
  };
131431
133047
  Update: {
133048
+ attempt_log?: import("../integrations/supabase/types").Json;
133049
+ attempts?: number;
131432
133050
  buffer_ref?: string | null;
131433
133051
  claimed_at?: string | null;
131434
133052
  claimed_by?: string | null;
@@ -131438,6 +133056,8 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
131438
133056
  due_at?: string | null;
131439
133057
  error?: string | null;
131440
133058
  id?: string;
133059
+ last_error?: string | null;
133060
+ next_attempt_at?: string | null;
131441
133061
  order_ref?: string;
131442
133062
  owner_module?: string;
131443
133063
  payload?: import("../integrations/supabase/types").Json;
@@ -140442,6 +142062,85 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
140442
142062
  };
140443
142063
  Returns: import("../integrations/supabase/types").Json;
140444
142064
  };
142065
+ claim_floriday_stock_queue: {
142066
+ Args: {
142067
+ p_limit?: number;
142068
+ p_worker?: string;
142069
+ };
142070
+ Returns: {
142071
+ attempts: number;
142072
+ connection_id: string;
142073
+ created_at: string;
142074
+ desired_available: boolean | null;
142075
+ gateway_attempt_id: string | null;
142076
+ id: string;
142077
+ last_error: string | null;
142078
+ locked_at: string | null;
142079
+ locked_by: string | null;
142080
+ next_attempt_at: string;
142081
+ number_of_pieces: number;
142082
+ sent_at: string | null;
142083
+ status: string;
142084
+ superseded_by: string | null;
142085
+ trade_item_id: string;
142086
+ updated_at: string;
142087
+ user_id: string;
142088
+ }[];
142089
+ SetofOptions: {
142090
+ from: "*";
142091
+ to: "floriday_continuous_stock_queue";
142092
+ isOneToOne: false;
142093
+ isSetofReturn: true;
142094
+ };
142095
+ };
142096
+ claim_logistics_tasks: {
142097
+ Args: {
142098
+ _limit?: number;
142099
+ _owner_module: string;
142100
+ _stale_minutes?: number;
142101
+ _task_type: string;
142102
+ _worker: string;
142103
+ };
142104
+ Returns: {
142105
+ attempt_log: import("../integrations/supabase/types").Json;
142106
+ attempts: number;
142107
+ buffer_ref: string | null;
142108
+ claimed_at: string | null;
142109
+ claimed_by: string | null;
142110
+ completed_at: string | null;
142111
+ created_at: string;
142112
+ depends_on: string[];
142113
+ due_at: string | null;
142114
+ error: string | null;
142115
+ id: string;
142116
+ last_error: string | null;
142117
+ next_attempt_at: string | null;
142118
+ order_ref: string;
142119
+ owner_module: string;
142120
+ payload: import("../integrations/supabase/types").Json;
142121
+ plan_run_id: string | null;
142122
+ planned_end: string | null;
142123
+ planned_start: string | null;
142124
+ priority: number;
142125
+ result: import("../integrations/supabase/types").Json | null;
142126
+ rule_config_id: string | null;
142127
+ rule_version: number | null;
142128
+ sequence: number;
142129
+ shadow: boolean;
142130
+ started_at: string | null;
142131
+ status: string;
142132
+ strategy_id: string | null;
142133
+ task_type: string;
142134
+ updated_at: string;
142135
+ user_id: string;
142136
+ }[];
142137
+ SetofOptions: {
142138
+ from: "*";
142139
+ to: "logistics_tasks";
142140
+ isOneToOne: false;
142141
+ isSetofReturn: true;
142142
+ };
142143
+ };
140445
142144
  claim_print_jobs: {
140446
142145
  Args: {
140447
142146
  _agent_id: string;
@@ -140506,10 +142205,24 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
140506
142205
  isSetofReturn: true;
140507
142206
  };
140508
142207
  };
142208
+ cleanup_floriday_stock_queue: {
142209
+ Args: never;
142210
+ Returns: undefined;
142211
+ };
140509
142212
  cleanup_old_bookings: {
140510
142213
  Args: never;
140511
142214
  Returns: undefined;
140512
142215
  };
142216
+ complete_floriday_stock_queue: {
142217
+ Args: {
142218
+ p_attempt_id?: string;
142219
+ p_error?: string;
142220
+ p_id: string;
142221
+ p_ok: boolean;
142222
+ p_permanent?: boolean;
142223
+ };
142224
+ Returns: undefined;
142225
+ };
140513
142226
  consume_bom_for_production: {
140514
142227
  Args: {
140515
142228
  p_connection_id: string;
@@ -141201,6 +142914,8 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
141201
142914
  p_worker?: string;
141202
142915
  };
141203
142916
  Returns: {
142917
+ attempt_log: import("../integrations/supabase/types").Json;
142918
+ attempts: number;
141204
142919
  buffer_ref: string | null;
141205
142920
  claimed_at: string | null;
141206
142921
  claimed_by: string | null;
@@ -141210,6 +142925,8 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
141210
142925
  due_at: string | null;
141211
142926
  error: string | null;
141212
142927
  id: string;
142928
+ last_error: string | null;
142929
+ next_attempt_at: string | null;
141213
142930
  order_ref: string;
141214
142931
  owner_module: string;
141215
142932
  payload: import("../integrations/supabase/types").Json;
@@ -141242,6 +142959,8 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
141242
142959
  p_worker?: string;
141243
142960
  };
141244
142961
  Returns: {
142962
+ attempt_log: import("../integrations/supabase/types").Json;
142963
+ attempts: number;
141245
142964
  buffer_ref: string | null;
141246
142965
  claimed_at: string | null;
141247
142966
  claimed_by: string | null;
@@ -141251,6 +142970,8 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
141251
142970
  due_at: string | null;
141252
142971
  error: string | null;
141253
142972
  id: string;
142973
+ last_error: string | null;
142974
+ next_attempt_at: string | null;
141254
142975
  order_ref: string;
141255
142976
  owner_module: string;
141256
142977
  payload: import("../integrations/supabase/types").Json;
@@ -141283,6 +143004,8 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
141283
143004
  p_task_id: string;
141284
143005
  };
141285
143006
  Returns: {
143007
+ attempt_log: import("../integrations/supabase/types").Json;
143008
+ attempts: number;
141286
143009
  buffer_ref: string | null;
141287
143010
  claimed_at: string | null;
141288
143011
  claimed_by: string | null;
@@ -141292,6 +143015,8 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
141292
143015
  due_at: string | null;
141293
143016
  error: string | null;
141294
143017
  id: string;
143018
+ last_error: string | null;
143019
+ next_attempt_at: string | null;
141295
143020
  order_ref: string;
141296
143021
  owner_module: string;
141297
143022
  payload: import("../integrations/supabase/types").Json;
@@ -141373,6 +143098,8 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
141373
143098
  p_task_id: string;
141374
143099
  };
141375
143100
  Returns: {
143101
+ attempt_log: import("../integrations/supabase/types").Json;
143102
+ attempts: number;
141376
143103
  buffer_ref: string | null;
141377
143104
  claimed_at: string | null;
141378
143105
  claimed_by: string | null;
@@ -141382,6 +143109,8 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
141382
143109
  due_at: string | null;
141383
143110
  error: string | null;
141384
143111
  id: string;
143112
+ last_error: string | null;
143113
+ next_attempt_at: string | null;
141385
143114
  order_ref: string;
141386
143115
  owner_module: string;
141387
143116
  payload: import("../integrations/supabase/types").Json;
@@ -141408,6 +143137,51 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
141408
143137
  isSetofReturn: false;
141409
143138
  };
141410
143139
  };
143140
+ logistics_floriday_claim_pushes: {
143141
+ Args: {
143142
+ _lease_seconds?: number;
143143
+ _limit?: number;
143144
+ _worker?: string;
143145
+ };
143146
+ Returns: {
143147
+ attempts: number;
143148
+ fulfillment_order_id: string;
143149
+ id: string;
143150
+ last_sent_hash: string;
143151
+ order_ref: string;
143152
+ payload: import("../integrations/supabase/types").Json;
143153
+ payload_hash: string;
143154
+ revision: number;
143155
+ }[];
143156
+ };
143157
+ logistics_floriday_finish_push: {
143158
+ Args: {
143159
+ _error?: string;
143160
+ _fulfillment_order_id?: string;
143161
+ _id: string;
143162
+ _max_age_hours?: number;
143163
+ _max_attempts?: number;
143164
+ _ok: boolean;
143165
+ _permanent?: boolean;
143166
+ _revision: number;
143167
+ _sent_hash?: string;
143168
+ };
143169
+ Returns: string;
143170
+ };
143171
+ logistics_floriday_prune_pushes: {
143172
+ Args: {
143173
+ _days?: number;
143174
+ };
143175
+ Returns: number;
143176
+ };
143177
+ logistics_floriday_queue_push: {
143178
+ Args: {
143179
+ _order_ref: string;
143180
+ _payload?: import("../integrations/supabase/types").Json;
143181
+ _payload_hash?: string;
143182
+ };
143183
+ Returns: string;
143184
+ };
141411
143185
  logistics_live_carriers: {
141412
143186
  Args: {
141413
143187
  p_order_ref: string;
@@ -142135,6 +143909,10 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
142135
143909
  Args: never;
142136
143910
  Returns: undefined;
142137
143911
  };
143912
+ run_logistics_tasks_dispatch: {
143913
+ Args: never;
143914
+ Returns: undefined;
143915
+ };
142138
143916
  run_twinfield_queue_tick: {
142139
143917
  Args: never;
142140
143918
  Returns: undefined;
@@ -142375,6 +144153,13 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
142375
144153
  };
142376
144154
  Returns: number;
142377
144155
  };
144156
+ schedule_floriday_stock_queue_process: {
144157
+ Args: {
144158
+ p_apikey: string;
144159
+ p_url: string;
144160
+ };
144161
+ Returns: number;
144162
+ };
142378
144163
  schedule_floriday_token_refresh: {
142379
144164
  Args: {
142380
144165
  p_apikey: string;
@@ -148312,12 +150097,17 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
148312
150097
  attempts: number;
148313
150098
  connection_id: string;
148314
150099
  created_at: string;
150100
+ desired_available: boolean | null;
148315
150101
  gateway_attempt_id: string | null;
148316
150102
  id: string;
148317
150103
  last_error: string | null;
150104
+ locked_at: string | null;
150105
+ locked_by: string | null;
150106
+ next_attempt_at: string;
148318
150107
  number_of_pieces: number;
148319
150108
  sent_at: string | null;
148320
150109
  status: string;
150110
+ superseded_by: string | null;
148321
150111
  trade_item_id: string;
148322
150112
  updated_at: string;
148323
150113
  user_id: string;
@@ -148326,12 +150116,17 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
148326
150116
  attempts?: number;
148327
150117
  connection_id: string;
148328
150118
  created_at?: string;
150119
+ desired_available?: boolean | null;
148329
150120
  gateway_attempt_id?: string | null;
148330
150121
  id?: string;
148331
150122
  last_error?: string | null;
150123
+ locked_at?: string | null;
150124
+ locked_by?: string | null;
150125
+ next_attempt_at?: string;
148332
150126
  number_of_pieces?: number;
148333
150127
  sent_at?: string | null;
148334
150128
  status?: string;
150129
+ superseded_by?: string | null;
148335
150130
  trade_item_id: string;
148336
150131
  updated_at?: string;
148337
150132
  user_id: string;
@@ -148340,12 +150135,17 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
148340
150135
  attempts?: number;
148341
150136
  connection_id?: string;
148342
150137
  created_at?: string;
150138
+ desired_available?: boolean | null;
148343
150139
  gateway_attempt_id?: string | null;
148344
150140
  id?: string;
148345
150141
  last_error?: string | null;
150142
+ locked_at?: string | null;
150143
+ locked_by?: string | null;
150144
+ next_attempt_at?: string;
148346
150145
  number_of_pieces?: number;
148347
150146
  sent_at?: string | null;
148348
150147
  status?: string;
150148
+ superseded_by?: string | null;
148349
150149
  trade_item_id?: string;
148350
150150
  updated_at?: string;
148351
150151
  user_id?: string;
@@ -151094,6 +152894,69 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
151094
152894
  };
151095
152895
  Relationships: [];
151096
152896
  };
152897
+ logistics_floriday_pushes: {
152898
+ Row: {
152899
+ attempts: number;
152900
+ created_at: string;
152901
+ first_queued_at: string;
152902
+ fulfillment_order_id: string | null;
152903
+ id: string;
152904
+ last_error: string | null;
152905
+ last_error_at: string | null;
152906
+ last_sent_hash: string | null;
152907
+ locked_by: string | null;
152908
+ locked_until: string | null;
152909
+ next_attempt_at: string;
152910
+ order_ref: string;
152911
+ payload: import("../integrations/supabase/types").Json;
152912
+ payload_hash: string | null;
152913
+ revision: number;
152914
+ sent_at: string | null;
152915
+ status: string;
152916
+ updated_at: string;
152917
+ };
152918
+ Insert: {
152919
+ attempts?: number;
152920
+ created_at?: string;
152921
+ first_queued_at?: string;
152922
+ fulfillment_order_id?: string | null;
152923
+ id?: string;
152924
+ last_error?: string | null;
152925
+ last_error_at?: string | null;
152926
+ last_sent_hash?: string | null;
152927
+ locked_by?: string | null;
152928
+ locked_until?: string | null;
152929
+ next_attempt_at?: string;
152930
+ order_ref: string;
152931
+ payload?: import("../integrations/supabase/types").Json;
152932
+ payload_hash?: string | null;
152933
+ revision?: number;
152934
+ sent_at?: string | null;
152935
+ status?: string;
152936
+ updated_at?: string;
152937
+ };
152938
+ Update: {
152939
+ attempts?: number;
152940
+ created_at?: string;
152941
+ first_queued_at?: string;
152942
+ fulfillment_order_id?: string | null;
152943
+ id?: string;
152944
+ last_error?: string | null;
152945
+ last_error_at?: string | null;
152946
+ last_sent_hash?: string | null;
152947
+ locked_by?: string | null;
152948
+ locked_until?: string | null;
152949
+ next_attempt_at?: string;
152950
+ order_ref?: string;
152951
+ payload?: import("../integrations/supabase/types").Json;
152952
+ payload_hash?: string | null;
152953
+ revision?: number;
152954
+ sent_at?: string | null;
152955
+ status?: string;
152956
+ updated_at?: string;
152957
+ };
152958
+ Relationships: [];
152959
+ };
151097
152960
  logistics_formulas: {
151098
152961
  Row: {
151099
152962
  created_at: string;
@@ -151705,6 +153568,8 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
151705
153568
  };
151706
153569
  logistics_tasks: {
151707
153570
  Row: {
153571
+ attempt_log: import("../integrations/supabase/types").Json;
153572
+ attempts: number;
151708
153573
  buffer_ref: string | null;
151709
153574
  claimed_at: string | null;
151710
153575
  claimed_by: string | null;
@@ -151714,6 +153579,8 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
151714
153579
  due_at: string | null;
151715
153580
  error: string | null;
151716
153581
  id: string;
153582
+ last_error: string | null;
153583
+ next_attempt_at: string | null;
151717
153584
  order_ref: string;
151718
153585
  owner_module: string;
151719
153586
  payload: import("../integrations/supabase/types").Json;
@@ -151734,6 +153601,8 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
151734
153601
  user_id: string;
151735
153602
  };
151736
153603
  Insert: {
153604
+ attempt_log?: import("../integrations/supabase/types").Json;
153605
+ attempts?: number;
151737
153606
  buffer_ref?: string | null;
151738
153607
  claimed_at?: string | null;
151739
153608
  claimed_by?: string | null;
@@ -151743,6 +153612,8 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
151743
153612
  due_at?: string | null;
151744
153613
  error?: string | null;
151745
153614
  id?: string;
153615
+ last_error?: string | null;
153616
+ next_attempt_at?: string | null;
151746
153617
  order_ref: string;
151747
153618
  owner_module: string;
151748
153619
  payload?: import("../integrations/supabase/types").Json;
@@ -151763,6 +153634,8 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
151763
153634
  user_id?: string;
151764
153635
  };
151765
153636
  Update: {
153637
+ attempt_log?: import("../integrations/supabase/types").Json;
153638
+ attempts?: number;
151766
153639
  buffer_ref?: string | null;
151767
153640
  claimed_at?: string | null;
151768
153641
  claimed_by?: string | null;
@@ -151772,6 +153645,8 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
151772
153645
  due_at?: string | null;
151773
153646
  error?: string | null;
151774
153647
  id?: string;
153648
+ last_error?: string | null;
153649
+ next_attempt_at?: string | null;
151775
153650
  order_ref?: string;
151776
153651
  owner_module?: string;
151777
153652
  payload?: import("../integrations/supabase/types").Json;
@@ -160776,6 +162651,85 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
160776
162651
  };
160777
162652
  Returns: import("../integrations/supabase/types").Json;
160778
162653
  };
162654
+ claim_floriday_stock_queue: {
162655
+ Args: {
162656
+ p_limit?: number;
162657
+ p_worker?: string;
162658
+ };
162659
+ Returns: {
162660
+ attempts: number;
162661
+ connection_id: string;
162662
+ created_at: string;
162663
+ desired_available: boolean | null;
162664
+ gateway_attempt_id: string | null;
162665
+ id: string;
162666
+ last_error: string | null;
162667
+ locked_at: string | null;
162668
+ locked_by: string | null;
162669
+ next_attempt_at: string;
162670
+ number_of_pieces: number;
162671
+ sent_at: string | null;
162672
+ status: string;
162673
+ superseded_by: string | null;
162674
+ trade_item_id: string;
162675
+ updated_at: string;
162676
+ user_id: string;
162677
+ }[];
162678
+ SetofOptions: {
162679
+ from: "*";
162680
+ to: "floriday_continuous_stock_queue";
162681
+ isOneToOne: false;
162682
+ isSetofReturn: true;
162683
+ };
162684
+ };
162685
+ claim_logistics_tasks: {
162686
+ Args: {
162687
+ _limit?: number;
162688
+ _owner_module: string;
162689
+ _stale_minutes?: number;
162690
+ _task_type: string;
162691
+ _worker: string;
162692
+ };
162693
+ Returns: {
162694
+ attempt_log: import("../integrations/supabase/types").Json;
162695
+ attempts: number;
162696
+ buffer_ref: string | null;
162697
+ claimed_at: string | null;
162698
+ claimed_by: string | null;
162699
+ completed_at: string | null;
162700
+ created_at: string;
162701
+ depends_on: string[];
162702
+ due_at: string | null;
162703
+ error: string | null;
162704
+ id: string;
162705
+ last_error: string | null;
162706
+ next_attempt_at: string | null;
162707
+ order_ref: string;
162708
+ owner_module: string;
162709
+ payload: import("../integrations/supabase/types").Json;
162710
+ plan_run_id: string | null;
162711
+ planned_end: string | null;
162712
+ planned_start: string | null;
162713
+ priority: number;
162714
+ result: import("../integrations/supabase/types").Json | null;
162715
+ rule_config_id: string | null;
162716
+ rule_version: number | null;
162717
+ sequence: number;
162718
+ shadow: boolean;
162719
+ started_at: string | null;
162720
+ status: string;
162721
+ strategy_id: string | null;
162722
+ task_type: string;
162723
+ updated_at: string;
162724
+ user_id: string;
162725
+ }[];
162726
+ SetofOptions: {
162727
+ from: "*";
162728
+ to: "logistics_tasks";
162729
+ isOneToOne: false;
162730
+ isSetofReturn: true;
162731
+ };
162732
+ };
160779
162733
  claim_print_jobs: {
160780
162734
  Args: {
160781
162735
  _agent_id: string;
@@ -160840,10 +162794,24 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
160840
162794
  isSetofReturn: true;
160841
162795
  };
160842
162796
  };
162797
+ cleanup_floriday_stock_queue: {
162798
+ Args: never;
162799
+ Returns: undefined;
162800
+ };
160843
162801
  cleanup_old_bookings: {
160844
162802
  Args: never;
160845
162803
  Returns: undefined;
160846
162804
  };
162805
+ complete_floriday_stock_queue: {
162806
+ Args: {
162807
+ p_attempt_id?: string;
162808
+ p_error?: string;
162809
+ p_id: string;
162810
+ p_ok: boolean;
162811
+ p_permanent?: boolean;
162812
+ };
162813
+ Returns: undefined;
162814
+ };
160847
162815
  consume_bom_for_production: {
160848
162816
  Args: {
160849
162817
  p_connection_id: string;
@@ -161535,6 +163503,8 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
161535
163503
  p_worker?: string;
161536
163504
  };
161537
163505
  Returns: {
163506
+ attempt_log: import("../integrations/supabase/types").Json;
163507
+ attempts: number;
161538
163508
  buffer_ref: string | null;
161539
163509
  claimed_at: string | null;
161540
163510
  claimed_by: string | null;
@@ -161544,6 +163514,8 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
161544
163514
  due_at: string | null;
161545
163515
  error: string | null;
161546
163516
  id: string;
163517
+ last_error: string | null;
163518
+ next_attempt_at: string | null;
161547
163519
  order_ref: string;
161548
163520
  owner_module: string;
161549
163521
  payload: import("../integrations/supabase/types").Json;
@@ -161576,6 +163548,8 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
161576
163548
  p_worker?: string;
161577
163549
  };
161578
163550
  Returns: {
163551
+ attempt_log: import("../integrations/supabase/types").Json;
163552
+ attempts: number;
161579
163553
  buffer_ref: string | null;
161580
163554
  claimed_at: string | null;
161581
163555
  claimed_by: string | null;
@@ -161585,6 +163559,8 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
161585
163559
  due_at: string | null;
161586
163560
  error: string | null;
161587
163561
  id: string;
163562
+ last_error: string | null;
163563
+ next_attempt_at: string | null;
161588
163564
  order_ref: string;
161589
163565
  owner_module: string;
161590
163566
  payload: import("../integrations/supabase/types").Json;
@@ -161617,6 +163593,8 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
161617
163593
  p_task_id: string;
161618
163594
  };
161619
163595
  Returns: {
163596
+ attempt_log: import("../integrations/supabase/types").Json;
163597
+ attempts: number;
161620
163598
  buffer_ref: string | null;
161621
163599
  claimed_at: string | null;
161622
163600
  claimed_by: string | null;
@@ -161626,6 +163604,102 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
161626
163604
  due_at: string | null;
161627
163605
  error: string | null;
161628
163606
  id: string;
163607
+ last_error: string | null;
163608
+ next_attempt_at: string | null;
163609
+ order_ref: string;
163610
+ owner_module: string;
163611
+ payload: import("../integrations/supabase/types").Json;
163612
+ plan_run_id: string | null;
163613
+ planned_end: string | null;
163614
+ planned_start: string | null;
163615
+ priority: number;
163616
+ result: import("../integrations/supabase/types").Json | null;
163617
+ rule_config_id: string | null;
163618
+ rule_version: number | null;
163619
+ sequence: number;
163620
+ shadow: boolean;
163621
+ started_at: string | null;
163622
+ status: string;
163623
+ strategy_id: string | null;
163624
+ task_type: string;
163625
+ updated_at: string;
163626
+ user_id: string;
163627
+ };
163628
+ SetofOptions: {
163629
+ from: "*";
163630
+ to: "logistics_tasks";
163631
+ isOneToOne: true;
163632
+ isSetofReturn: false;
163633
+ };
163634
+ };
163635
+ logistics_delay_customer_email: {
163636
+ Args: {
163637
+ p_customer: string;
163638
+ p_lang: string;
163639
+ p_new_date: string;
163640
+ p_order: string;
163641
+ p_partial?: boolean;
163642
+ };
163643
+ Returns: {
163644
+ body: string;
163645
+ subject: string;
163646
+ }[];
163647
+ };
163648
+ logistics_document_layout: {
163649
+ Args: {
163650
+ _document_code: string;
163651
+ };
163652
+ Returns: import("../integrations/supabase/types").Json;
163653
+ };
163654
+ logistics_document_station: {
163655
+ Args: {
163656
+ _document_code: string;
163657
+ };
163658
+ Returns: string;
163659
+ };
163660
+ logistics_emit_event: {
163661
+ Args: {
163662
+ p_event_type: string;
163663
+ p_idempotency_key?: string;
163664
+ p_order_ref: string;
163665
+ p_payload?: import("../integrations/supabase/types").Json;
163666
+ p_shadow?: boolean;
163667
+ p_source_module: string;
163668
+ p_strategy_id?: string;
163669
+ };
163670
+ Returns: import("../integrations/supabase/types").Json;
163671
+ } | {
163672
+ Args: {
163673
+ p_event_type: string;
163674
+ p_idempotency_key?: string;
163675
+ p_order_ref: string;
163676
+ p_payload?: import("../integrations/supabase/types").Json;
163677
+ p_priority?: number;
163678
+ p_shadow?: boolean;
163679
+ p_source_module: string;
163680
+ p_strategy_id?: string;
163681
+ };
163682
+ Returns: import("../integrations/supabase/types").Json;
163683
+ };
163684
+ logistics_fail_task: {
163685
+ Args: {
163686
+ p_error: string;
163687
+ p_task_id: string;
163688
+ };
163689
+ Returns: {
163690
+ attempt_log: import("../integrations/supabase/types").Json;
163691
+ attempts: number;
163692
+ buffer_ref: string | null;
163693
+ claimed_at: string | null;
163694
+ claimed_by: string | null;
163695
+ completed_at: string | null;
163696
+ created_at: string;
163697
+ depends_on: string[];
163698
+ due_at: string | null;
163699
+ error: string | null;
163700
+ id: string;
163701
+ last_error: string | null;
163702
+ next_attempt_at: string | null;
161629
163703
  order_ref: string;
161630
163704
  owner_module: string;
161631
163705
  payload: import("../integrations/supabase/types").Json;
@@ -161652,95 +163726,50 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
161652
163726
  isSetofReturn: false;
161653
163727
  };
161654
163728
  };
161655
- logistics_delay_customer_email: {
163729
+ logistics_floriday_claim_pushes: {
161656
163730
  Args: {
161657
- p_customer: string;
161658
- p_lang: string;
161659
- p_new_date: string;
161660
- p_order: string;
161661
- p_partial?: boolean;
163731
+ _lease_seconds?: number;
163732
+ _limit?: number;
163733
+ _worker?: string;
161662
163734
  };
161663
163735
  Returns: {
161664
- body: string;
161665
- subject: string;
163736
+ attempts: number;
163737
+ fulfillment_order_id: string;
163738
+ id: string;
163739
+ last_sent_hash: string;
163740
+ order_ref: string;
163741
+ payload: import("../integrations/supabase/types").Json;
163742
+ payload_hash: string;
163743
+ revision: number;
161666
163744
  }[];
161667
163745
  };
161668
- logistics_document_layout: {
161669
- Args: {
161670
- _document_code: string;
161671
- };
161672
- Returns: import("../integrations/supabase/types").Json;
161673
- };
161674
- logistics_document_station: {
163746
+ logistics_floriday_finish_push: {
161675
163747
  Args: {
161676
- _document_code: string;
163748
+ _error?: string;
163749
+ _fulfillment_order_id?: string;
163750
+ _id: string;
163751
+ _max_age_hours?: number;
163752
+ _max_attempts?: number;
163753
+ _ok: boolean;
163754
+ _permanent?: boolean;
163755
+ _revision: number;
163756
+ _sent_hash?: string;
161677
163757
  };
161678
163758
  Returns: string;
161679
163759
  };
161680
- logistics_emit_event: {
161681
- Args: {
161682
- p_event_type: string;
161683
- p_idempotency_key?: string;
161684
- p_order_ref: string;
161685
- p_payload?: import("../integrations/supabase/types").Json;
161686
- p_shadow?: boolean;
161687
- p_source_module: string;
161688
- p_strategy_id?: string;
161689
- };
161690
- Returns: import("../integrations/supabase/types").Json;
161691
- } | {
163760
+ logistics_floriday_prune_pushes: {
161692
163761
  Args: {
161693
- p_event_type: string;
161694
- p_idempotency_key?: string;
161695
- p_order_ref: string;
161696
- p_payload?: import("../integrations/supabase/types").Json;
161697
- p_priority?: number;
161698
- p_shadow?: boolean;
161699
- p_source_module: string;
161700
- p_strategy_id?: string;
163762
+ _days?: number;
161701
163763
  };
161702
- Returns: import("../integrations/supabase/types").Json;
163764
+ Returns: number;
161703
163765
  };
161704
- logistics_fail_task: {
163766
+ logistics_floriday_queue_push: {
161705
163767
  Args: {
161706
- p_error: string;
161707
- p_task_id: string;
161708
- };
161709
- Returns: {
161710
- buffer_ref: string | null;
161711
- claimed_at: string | null;
161712
- claimed_by: string | null;
161713
- completed_at: string | null;
161714
- created_at: string;
161715
- depends_on: string[];
161716
- due_at: string | null;
161717
- error: string | null;
161718
- id: string;
161719
- order_ref: string;
161720
- owner_module: string;
161721
- payload: import("../integrations/supabase/types").Json;
161722
- plan_run_id: string | null;
161723
- planned_end: string | null;
161724
- planned_start: string | null;
161725
- priority: number;
161726
- result: import("../integrations/supabase/types").Json | null;
161727
- rule_config_id: string | null;
161728
- rule_version: number | null;
161729
- sequence: number;
161730
- shadow: boolean;
161731
- started_at: string | null;
161732
- status: string;
161733
- strategy_id: string | null;
161734
- task_type: string;
161735
- updated_at: string;
161736
- user_id: string;
161737
- };
161738
- SetofOptions: {
161739
- from: "*";
161740
- to: "logistics_tasks";
161741
- isOneToOne: true;
161742
- isSetofReturn: false;
163768
+ _order_ref: string;
163769
+ _payload?: import("../integrations/supabase/types").Json;
163770
+ _payload_hash?: string;
161743
163771
  };
163772
+ Returns: string;
161744
163773
  };
161745
163774
  logistics_live_carriers: {
161746
163775
  Args: {
@@ -162469,6 +164498,10 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
162469
164498
  Args: never;
162470
164499
  Returns: undefined;
162471
164500
  };
164501
+ run_logistics_tasks_dispatch: {
164502
+ Args: never;
164503
+ Returns: undefined;
164504
+ };
162472
164505
  run_twinfield_queue_tick: {
162473
164506
  Args: never;
162474
164507
  Returns: undefined;
@@ -162709,6 +164742,13 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
162709
164742
  };
162710
164743
  Returns: number;
162711
164744
  };
164745
+ schedule_floriday_stock_queue_process: {
164746
+ Args: {
164747
+ p_apikey: string;
164748
+ p_url: string;
164749
+ };
164750
+ Returns: number;
164751
+ };
162712
164752
  schedule_floriday_token_refresh: {
162713
164753
  Args: {
162714
164754
  p_apikey: string;
@@ -168616,12 +170656,17 @@ export declare const bulkImportCustomers: import("@tanstack/start-client-core").
168616
170656
  attempts: number;
168617
170657
  connection_id: string;
168618
170658
  created_at: string;
170659
+ desired_available: boolean | null;
168619
170660
  gateway_attempt_id: string | null;
168620
170661
  id: string;
168621
170662
  last_error: string | null;
170663
+ locked_at: string | null;
170664
+ locked_by: string | null;
170665
+ next_attempt_at: string;
168622
170666
  number_of_pieces: number;
168623
170667
  sent_at: string | null;
168624
170668
  status: string;
170669
+ superseded_by: string | null;
168625
170670
  trade_item_id: string;
168626
170671
  updated_at: string;
168627
170672
  user_id: string;
@@ -168630,12 +170675,17 @@ export declare const bulkImportCustomers: import("@tanstack/start-client-core").
168630
170675
  attempts?: number;
168631
170676
  connection_id: string;
168632
170677
  created_at?: string;
170678
+ desired_available?: boolean | null;
168633
170679
  gateway_attempt_id?: string | null;
168634
170680
  id?: string;
168635
170681
  last_error?: string | null;
170682
+ locked_at?: string | null;
170683
+ locked_by?: string | null;
170684
+ next_attempt_at?: string;
168636
170685
  number_of_pieces?: number;
168637
170686
  sent_at?: string | null;
168638
170687
  status?: string;
170688
+ superseded_by?: string | null;
168639
170689
  trade_item_id: string;
168640
170690
  updated_at?: string;
168641
170691
  user_id: string;
@@ -168644,12 +170694,17 @@ export declare const bulkImportCustomers: import("@tanstack/start-client-core").
168644
170694
  attempts?: number;
168645
170695
  connection_id?: string;
168646
170696
  created_at?: string;
170697
+ desired_available?: boolean | null;
168647
170698
  gateway_attempt_id?: string | null;
168648
170699
  id?: string;
168649
170700
  last_error?: string | null;
170701
+ locked_at?: string | null;
170702
+ locked_by?: string | null;
170703
+ next_attempt_at?: string;
168650
170704
  number_of_pieces?: number;
168651
170705
  sent_at?: string | null;
168652
170706
  status?: string;
170707
+ superseded_by?: string | null;
168653
170708
  trade_item_id?: string;
168654
170709
  updated_at?: string;
168655
170710
  user_id?: string;
@@ -171398,6 +173453,69 @@ export declare const bulkImportCustomers: import("@tanstack/start-client-core").
171398
173453
  };
171399
173454
  Relationships: [];
171400
173455
  };
173456
+ logistics_floriday_pushes: {
173457
+ Row: {
173458
+ attempts: number;
173459
+ created_at: string;
173460
+ first_queued_at: string;
173461
+ fulfillment_order_id: string | null;
173462
+ id: string;
173463
+ last_error: string | null;
173464
+ last_error_at: string | null;
173465
+ last_sent_hash: string | null;
173466
+ locked_by: string | null;
173467
+ locked_until: string | null;
173468
+ next_attempt_at: string;
173469
+ order_ref: string;
173470
+ payload: import("../integrations/supabase/types").Json;
173471
+ payload_hash: string | null;
173472
+ revision: number;
173473
+ sent_at: string | null;
173474
+ status: string;
173475
+ updated_at: string;
173476
+ };
173477
+ Insert: {
173478
+ attempts?: number;
173479
+ created_at?: string;
173480
+ first_queued_at?: string;
173481
+ fulfillment_order_id?: string | null;
173482
+ id?: string;
173483
+ last_error?: string | null;
173484
+ last_error_at?: string | null;
173485
+ last_sent_hash?: string | null;
173486
+ locked_by?: string | null;
173487
+ locked_until?: string | null;
173488
+ next_attempt_at?: string;
173489
+ order_ref: string;
173490
+ payload?: import("../integrations/supabase/types").Json;
173491
+ payload_hash?: string | null;
173492
+ revision?: number;
173493
+ sent_at?: string | null;
173494
+ status?: string;
173495
+ updated_at?: string;
173496
+ };
173497
+ Update: {
173498
+ attempts?: number;
173499
+ created_at?: string;
173500
+ first_queued_at?: string;
173501
+ fulfillment_order_id?: string | null;
173502
+ id?: string;
173503
+ last_error?: string | null;
173504
+ last_error_at?: string | null;
173505
+ last_sent_hash?: string | null;
173506
+ locked_by?: string | null;
173507
+ locked_until?: string | null;
173508
+ next_attempt_at?: string;
173509
+ order_ref?: string;
173510
+ payload?: import("../integrations/supabase/types").Json;
173511
+ payload_hash?: string | null;
173512
+ revision?: number;
173513
+ sent_at?: string | null;
173514
+ status?: string;
173515
+ updated_at?: string;
173516
+ };
173517
+ Relationships: [];
173518
+ };
171401
173519
  logistics_formulas: {
171402
173520
  Row: {
171403
173521
  created_at: string;
@@ -172009,6 +174127,8 @@ export declare const bulkImportCustomers: import("@tanstack/start-client-core").
172009
174127
  };
172010
174128
  logistics_tasks: {
172011
174129
  Row: {
174130
+ attempt_log: import("../integrations/supabase/types").Json;
174131
+ attempts: number;
172012
174132
  buffer_ref: string | null;
172013
174133
  claimed_at: string | null;
172014
174134
  claimed_by: string | null;
@@ -172018,6 +174138,8 @@ export declare const bulkImportCustomers: import("@tanstack/start-client-core").
172018
174138
  due_at: string | null;
172019
174139
  error: string | null;
172020
174140
  id: string;
174141
+ last_error: string | null;
174142
+ next_attempt_at: string | null;
172021
174143
  order_ref: string;
172022
174144
  owner_module: string;
172023
174145
  payload: import("../integrations/supabase/types").Json;
@@ -172038,6 +174160,8 @@ export declare const bulkImportCustomers: import("@tanstack/start-client-core").
172038
174160
  user_id: string;
172039
174161
  };
172040
174162
  Insert: {
174163
+ attempt_log?: import("../integrations/supabase/types").Json;
174164
+ attempts?: number;
172041
174165
  buffer_ref?: string | null;
172042
174166
  claimed_at?: string | null;
172043
174167
  claimed_by?: string | null;
@@ -172047,6 +174171,8 @@ export declare const bulkImportCustomers: import("@tanstack/start-client-core").
172047
174171
  due_at?: string | null;
172048
174172
  error?: string | null;
172049
174173
  id?: string;
174174
+ last_error?: string | null;
174175
+ next_attempt_at?: string | null;
172050
174176
  order_ref: string;
172051
174177
  owner_module: string;
172052
174178
  payload?: import("../integrations/supabase/types").Json;
@@ -172067,6 +174193,8 @@ export declare const bulkImportCustomers: import("@tanstack/start-client-core").
172067
174193
  user_id?: string;
172068
174194
  };
172069
174195
  Update: {
174196
+ attempt_log?: import("../integrations/supabase/types").Json;
174197
+ attempts?: number;
172070
174198
  buffer_ref?: string | null;
172071
174199
  claimed_at?: string | null;
172072
174200
  claimed_by?: string | null;
@@ -172076,6 +174204,8 @@ export declare const bulkImportCustomers: import("@tanstack/start-client-core").
172076
174204
  due_at?: string | null;
172077
174205
  error?: string | null;
172078
174206
  id?: string;
174207
+ last_error?: string | null;
174208
+ next_attempt_at?: string | null;
172079
174209
  order_ref?: string;
172080
174210
  owner_module?: string;
172081
174211
  payload?: import("../integrations/supabase/types").Json;
@@ -181080,6 +183210,85 @@ export declare const bulkImportCustomers: import("@tanstack/start-client-core").
181080
183210
  };
181081
183211
  Returns: import("../integrations/supabase/types").Json;
181082
183212
  };
183213
+ claim_floriday_stock_queue: {
183214
+ Args: {
183215
+ p_limit?: number;
183216
+ p_worker?: string;
183217
+ };
183218
+ Returns: {
183219
+ attempts: number;
183220
+ connection_id: string;
183221
+ created_at: string;
183222
+ desired_available: boolean | null;
183223
+ gateway_attempt_id: string | null;
183224
+ id: string;
183225
+ last_error: string | null;
183226
+ locked_at: string | null;
183227
+ locked_by: string | null;
183228
+ next_attempt_at: string;
183229
+ number_of_pieces: number;
183230
+ sent_at: string | null;
183231
+ status: string;
183232
+ superseded_by: string | null;
183233
+ trade_item_id: string;
183234
+ updated_at: string;
183235
+ user_id: string;
183236
+ }[];
183237
+ SetofOptions: {
183238
+ from: "*";
183239
+ to: "floriday_continuous_stock_queue";
183240
+ isOneToOne: false;
183241
+ isSetofReturn: true;
183242
+ };
183243
+ };
183244
+ claim_logistics_tasks: {
183245
+ Args: {
183246
+ _limit?: number;
183247
+ _owner_module: string;
183248
+ _stale_minutes?: number;
183249
+ _task_type: string;
183250
+ _worker: string;
183251
+ };
183252
+ Returns: {
183253
+ attempt_log: import("../integrations/supabase/types").Json;
183254
+ attempts: number;
183255
+ buffer_ref: string | null;
183256
+ claimed_at: string | null;
183257
+ claimed_by: string | null;
183258
+ completed_at: string | null;
183259
+ created_at: string;
183260
+ depends_on: string[];
183261
+ due_at: string | null;
183262
+ error: string | null;
183263
+ id: string;
183264
+ last_error: string | null;
183265
+ next_attempt_at: string | null;
183266
+ order_ref: string;
183267
+ owner_module: string;
183268
+ payload: import("../integrations/supabase/types").Json;
183269
+ plan_run_id: string | null;
183270
+ planned_end: string | null;
183271
+ planned_start: string | null;
183272
+ priority: number;
183273
+ result: import("../integrations/supabase/types").Json | null;
183274
+ rule_config_id: string | null;
183275
+ rule_version: number | null;
183276
+ sequence: number;
183277
+ shadow: boolean;
183278
+ started_at: string | null;
183279
+ status: string;
183280
+ strategy_id: string | null;
183281
+ task_type: string;
183282
+ updated_at: string;
183283
+ user_id: string;
183284
+ }[];
183285
+ SetofOptions: {
183286
+ from: "*";
183287
+ to: "logistics_tasks";
183288
+ isOneToOne: false;
183289
+ isSetofReturn: true;
183290
+ };
183291
+ };
181083
183292
  claim_print_jobs: {
181084
183293
  Args: {
181085
183294
  _agent_id: string;
@@ -181144,10 +183353,24 @@ export declare const bulkImportCustomers: import("@tanstack/start-client-core").
181144
183353
  isSetofReturn: true;
181145
183354
  };
181146
183355
  };
183356
+ cleanup_floriday_stock_queue: {
183357
+ Args: never;
183358
+ Returns: undefined;
183359
+ };
181147
183360
  cleanup_old_bookings: {
181148
183361
  Args: never;
181149
183362
  Returns: undefined;
181150
183363
  };
183364
+ complete_floriday_stock_queue: {
183365
+ Args: {
183366
+ p_attempt_id?: string;
183367
+ p_error?: string;
183368
+ p_id: string;
183369
+ p_ok: boolean;
183370
+ p_permanent?: boolean;
183371
+ };
183372
+ Returns: undefined;
183373
+ };
181151
183374
  consume_bom_for_production: {
181152
183375
  Args: {
181153
183376
  p_connection_id: string;
@@ -181839,6 +184062,8 @@ export declare const bulkImportCustomers: import("@tanstack/start-client-core").
181839
184062
  p_worker?: string;
181840
184063
  };
181841
184064
  Returns: {
184065
+ attempt_log: import("../integrations/supabase/types").Json;
184066
+ attempts: number;
181842
184067
  buffer_ref: string | null;
181843
184068
  claimed_at: string | null;
181844
184069
  claimed_by: string | null;
@@ -181848,6 +184073,8 @@ export declare const bulkImportCustomers: import("@tanstack/start-client-core").
181848
184073
  due_at: string | null;
181849
184074
  error: string | null;
181850
184075
  id: string;
184076
+ last_error: string | null;
184077
+ next_attempt_at: string | null;
181851
184078
  order_ref: string;
181852
184079
  owner_module: string;
181853
184080
  payload: import("../integrations/supabase/types").Json;
@@ -181880,6 +184107,8 @@ export declare const bulkImportCustomers: import("@tanstack/start-client-core").
181880
184107
  p_worker?: string;
181881
184108
  };
181882
184109
  Returns: {
184110
+ attempt_log: import("../integrations/supabase/types").Json;
184111
+ attempts: number;
181883
184112
  buffer_ref: string | null;
181884
184113
  claimed_at: string | null;
181885
184114
  claimed_by: string | null;
@@ -181889,6 +184118,8 @@ export declare const bulkImportCustomers: import("@tanstack/start-client-core").
181889
184118
  due_at: string | null;
181890
184119
  error: string | null;
181891
184120
  id: string;
184121
+ last_error: string | null;
184122
+ next_attempt_at: string | null;
181892
184123
  order_ref: string;
181893
184124
  owner_module: string;
181894
184125
  payload: import("../integrations/supabase/types").Json;
@@ -181921,6 +184152,8 @@ export declare const bulkImportCustomers: import("@tanstack/start-client-core").
181921
184152
  p_task_id: string;
181922
184153
  };
181923
184154
  Returns: {
184155
+ attempt_log: import("../integrations/supabase/types").Json;
184156
+ attempts: number;
181924
184157
  buffer_ref: string | null;
181925
184158
  claimed_at: string | null;
181926
184159
  claimed_by: string | null;
@@ -181930,6 +184163,8 @@ export declare const bulkImportCustomers: import("@tanstack/start-client-core").
181930
184163
  due_at: string | null;
181931
184164
  error: string | null;
181932
184165
  id: string;
184166
+ last_error: string | null;
184167
+ next_attempt_at: string | null;
181933
184168
  order_ref: string;
181934
184169
  owner_module: string;
181935
184170
  payload: import("../integrations/supabase/types").Json;
@@ -182011,6 +184246,8 @@ export declare const bulkImportCustomers: import("@tanstack/start-client-core").
182011
184246
  p_task_id: string;
182012
184247
  };
182013
184248
  Returns: {
184249
+ attempt_log: import("../integrations/supabase/types").Json;
184250
+ attempts: number;
182014
184251
  buffer_ref: string | null;
182015
184252
  claimed_at: string | null;
182016
184253
  claimed_by: string | null;
@@ -182020,6 +184257,8 @@ export declare const bulkImportCustomers: import("@tanstack/start-client-core").
182020
184257
  due_at: string | null;
182021
184258
  error: string | null;
182022
184259
  id: string;
184260
+ last_error: string | null;
184261
+ next_attempt_at: string | null;
182023
184262
  order_ref: string;
182024
184263
  owner_module: string;
182025
184264
  payload: import("../integrations/supabase/types").Json;
@@ -182046,6 +184285,51 @@ export declare const bulkImportCustomers: import("@tanstack/start-client-core").
182046
184285
  isSetofReturn: false;
182047
184286
  };
182048
184287
  };
184288
+ logistics_floriday_claim_pushes: {
184289
+ Args: {
184290
+ _lease_seconds?: number;
184291
+ _limit?: number;
184292
+ _worker?: string;
184293
+ };
184294
+ Returns: {
184295
+ attempts: number;
184296
+ fulfillment_order_id: string;
184297
+ id: string;
184298
+ last_sent_hash: string;
184299
+ order_ref: string;
184300
+ payload: import("../integrations/supabase/types").Json;
184301
+ payload_hash: string;
184302
+ revision: number;
184303
+ }[];
184304
+ };
184305
+ logistics_floriday_finish_push: {
184306
+ Args: {
184307
+ _error?: string;
184308
+ _fulfillment_order_id?: string;
184309
+ _id: string;
184310
+ _max_age_hours?: number;
184311
+ _max_attempts?: number;
184312
+ _ok: boolean;
184313
+ _permanent?: boolean;
184314
+ _revision: number;
184315
+ _sent_hash?: string;
184316
+ };
184317
+ Returns: string;
184318
+ };
184319
+ logistics_floriday_prune_pushes: {
184320
+ Args: {
184321
+ _days?: number;
184322
+ };
184323
+ Returns: number;
184324
+ };
184325
+ logistics_floriday_queue_push: {
184326
+ Args: {
184327
+ _order_ref: string;
184328
+ _payload?: import("../integrations/supabase/types").Json;
184329
+ _payload_hash?: string;
184330
+ };
184331
+ Returns: string;
184332
+ };
182049
184333
  logistics_live_carriers: {
182050
184334
  Args: {
182051
184335
  p_order_ref: string;
@@ -182773,6 +185057,10 @@ export declare const bulkImportCustomers: import("@tanstack/start-client-core").
182773
185057
  Args: never;
182774
185058
  Returns: undefined;
182775
185059
  };
185060
+ run_logistics_tasks_dispatch: {
185061
+ Args: never;
185062
+ Returns: undefined;
185063
+ };
182776
185064
  run_twinfield_queue_tick: {
182777
185065
  Args: never;
182778
185066
  Returns: undefined;
@@ -183013,6 +185301,13 @@ export declare const bulkImportCustomers: import("@tanstack/start-client-core").
183013
185301
  };
183014
185302
  Returns: number;
183015
185303
  };
185304
+ schedule_floriday_stock_queue_process: {
185305
+ Args: {
185306
+ p_apikey: string;
185307
+ p_url: string;
185308
+ };
185309
+ Returns: number;
185310
+ };
183016
185311
  schedule_floriday_token_refresh: {
183017
185312
  Args: {
183018
185313
  p_apikey: string;