@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
@@ -5748,12 +5748,17 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
5748
5748
  attempts: number;
5749
5749
  connection_id: string;
5750
5750
  created_at: string;
5751
+ desired_available: boolean | null;
5751
5752
  gateway_attempt_id: string | null;
5752
5753
  id: string;
5753
5754
  last_error: string | null;
5755
+ locked_at: string | null;
5756
+ locked_by: string | null;
5757
+ next_attempt_at: string;
5754
5758
  number_of_pieces: number;
5755
5759
  sent_at: string | null;
5756
5760
  status: string;
5761
+ superseded_by: string | null;
5757
5762
  trade_item_id: string;
5758
5763
  updated_at: string;
5759
5764
  user_id: string;
@@ -5762,12 +5767,17 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
5762
5767
  attempts?: number;
5763
5768
  connection_id: string;
5764
5769
  created_at?: string;
5770
+ desired_available?: boolean | null;
5765
5771
  gateway_attempt_id?: string | null;
5766
5772
  id?: string;
5767
5773
  last_error?: string | null;
5774
+ locked_at?: string | null;
5775
+ locked_by?: string | null;
5776
+ next_attempt_at?: string;
5768
5777
  number_of_pieces?: number;
5769
5778
  sent_at?: string | null;
5770
5779
  status?: string;
5780
+ superseded_by?: string | null;
5771
5781
  trade_item_id: string;
5772
5782
  updated_at?: string;
5773
5783
  user_id: string;
@@ -5776,12 +5786,17 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
5776
5786
  attempts?: number;
5777
5787
  connection_id?: string;
5778
5788
  created_at?: string;
5789
+ desired_available?: boolean | null;
5779
5790
  gateway_attempt_id?: string | null;
5780
5791
  id?: string;
5781
5792
  last_error?: string | null;
5793
+ locked_at?: string | null;
5794
+ locked_by?: string | null;
5795
+ next_attempt_at?: string;
5782
5796
  number_of_pieces?: number;
5783
5797
  sent_at?: string | null;
5784
5798
  status?: string;
5799
+ superseded_by?: string | null;
5785
5800
  trade_item_id?: string;
5786
5801
  updated_at?: string;
5787
5802
  user_id?: string;
@@ -8530,6 +8545,69 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
8530
8545
  };
8531
8546
  Relationships: [];
8532
8547
  };
8548
+ logistics_floriday_pushes: {
8549
+ Row: {
8550
+ attempts: number;
8551
+ created_at: string;
8552
+ first_queued_at: string;
8553
+ fulfillment_order_id: string | null;
8554
+ id: string;
8555
+ last_error: string | null;
8556
+ last_error_at: string | null;
8557
+ last_sent_hash: string | null;
8558
+ locked_by: string | null;
8559
+ locked_until: string | null;
8560
+ next_attempt_at: string;
8561
+ order_ref: string;
8562
+ payload: import("../integrations/supabase/types").Json;
8563
+ payload_hash: string | null;
8564
+ revision: number;
8565
+ sent_at: string | null;
8566
+ status: string;
8567
+ updated_at: string;
8568
+ };
8569
+ Insert: {
8570
+ attempts?: number;
8571
+ created_at?: string;
8572
+ first_queued_at?: string;
8573
+ fulfillment_order_id?: string | null;
8574
+ id?: string;
8575
+ last_error?: string | null;
8576
+ last_error_at?: string | null;
8577
+ last_sent_hash?: string | null;
8578
+ locked_by?: string | null;
8579
+ locked_until?: string | null;
8580
+ next_attempt_at?: string;
8581
+ order_ref: string;
8582
+ payload?: import("../integrations/supabase/types").Json;
8583
+ payload_hash?: string | null;
8584
+ revision?: number;
8585
+ sent_at?: string | null;
8586
+ status?: string;
8587
+ updated_at?: string;
8588
+ };
8589
+ Update: {
8590
+ attempts?: number;
8591
+ created_at?: string;
8592
+ first_queued_at?: string;
8593
+ fulfillment_order_id?: string | null;
8594
+ id?: string;
8595
+ last_error?: string | null;
8596
+ last_error_at?: string | null;
8597
+ last_sent_hash?: string | null;
8598
+ locked_by?: string | null;
8599
+ locked_until?: string | null;
8600
+ next_attempt_at?: string;
8601
+ order_ref?: string;
8602
+ payload?: import("../integrations/supabase/types").Json;
8603
+ payload_hash?: string | null;
8604
+ revision?: number;
8605
+ sent_at?: string | null;
8606
+ status?: string;
8607
+ updated_at?: string;
8608
+ };
8609
+ Relationships: [];
8610
+ };
8533
8611
  logistics_formulas: {
8534
8612
  Row: {
8535
8613
  created_at: string;
@@ -9141,6 +9219,8 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
9141
9219
  };
9142
9220
  logistics_tasks: {
9143
9221
  Row: {
9222
+ attempt_log: import("../integrations/supabase/types").Json;
9223
+ attempts: number;
9144
9224
  buffer_ref: string | null;
9145
9225
  claimed_at: string | null;
9146
9226
  claimed_by: string | null;
@@ -9150,6 +9230,8 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
9150
9230
  due_at: string | null;
9151
9231
  error: string | null;
9152
9232
  id: string;
9233
+ last_error: string | null;
9234
+ next_attempt_at: string | null;
9153
9235
  order_ref: string;
9154
9236
  owner_module: string;
9155
9237
  payload: import("../integrations/supabase/types").Json;
@@ -9170,6 +9252,8 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
9170
9252
  user_id: string;
9171
9253
  };
9172
9254
  Insert: {
9255
+ attempt_log?: import("../integrations/supabase/types").Json;
9256
+ attempts?: number;
9173
9257
  buffer_ref?: string | null;
9174
9258
  claimed_at?: string | null;
9175
9259
  claimed_by?: string | null;
@@ -9179,6 +9263,8 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
9179
9263
  due_at?: string | null;
9180
9264
  error?: string | null;
9181
9265
  id?: string;
9266
+ last_error?: string | null;
9267
+ next_attempt_at?: string | null;
9182
9268
  order_ref: string;
9183
9269
  owner_module: string;
9184
9270
  payload?: import("../integrations/supabase/types").Json;
@@ -9199,6 +9285,8 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
9199
9285
  user_id?: string;
9200
9286
  };
9201
9287
  Update: {
9288
+ attempt_log?: import("../integrations/supabase/types").Json;
9289
+ attempts?: number;
9202
9290
  buffer_ref?: string | null;
9203
9291
  claimed_at?: string | null;
9204
9292
  claimed_by?: string | null;
@@ -9208,6 +9296,8 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
9208
9296
  due_at?: string | null;
9209
9297
  error?: string | null;
9210
9298
  id?: string;
9299
+ last_error?: string | null;
9300
+ next_attempt_at?: string | null;
9211
9301
  order_ref?: string;
9212
9302
  owner_module?: string;
9213
9303
  payload?: import("../integrations/supabase/types").Json;
@@ -18212,6 +18302,85 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
18212
18302
  };
18213
18303
  Returns: import("../integrations/supabase/types").Json;
18214
18304
  };
18305
+ claim_floriday_stock_queue: {
18306
+ Args: {
18307
+ p_limit?: number;
18308
+ p_worker?: string;
18309
+ };
18310
+ Returns: {
18311
+ attempts: number;
18312
+ connection_id: string;
18313
+ created_at: string;
18314
+ desired_available: boolean | null;
18315
+ gateway_attempt_id: string | null;
18316
+ id: string;
18317
+ last_error: string | null;
18318
+ locked_at: string | null;
18319
+ locked_by: string | null;
18320
+ next_attempt_at: string;
18321
+ number_of_pieces: number;
18322
+ sent_at: string | null;
18323
+ status: string;
18324
+ superseded_by: string | null;
18325
+ trade_item_id: string;
18326
+ updated_at: string;
18327
+ user_id: string;
18328
+ }[];
18329
+ SetofOptions: {
18330
+ from: "*";
18331
+ to: "floriday_continuous_stock_queue";
18332
+ isOneToOne: false;
18333
+ isSetofReturn: true;
18334
+ };
18335
+ };
18336
+ claim_logistics_tasks: {
18337
+ Args: {
18338
+ _limit?: number;
18339
+ _owner_module: string;
18340
+ _stale_minutes?: number;
18341
+ _task_type: string;
18342
+ _worker: string;
18343
+ };
18344
+ Returns: {
18345
+ attempt_log: import("../integrations/supabase/types").Json;
18346
+ attempts: number;
18347
+ buffer_ref: string | null;
18348
+ claimed_at: string | null;
18349
+ claimed_by: string | null;
18350
+ completed_at: string | null;
18351
+ created_at: string;
18352
+ depends_on: string[];
18353
+ due_at: string | null;
18354
+ error: string | null;
18355
+ id: string;
18356
+ last_error: string | null;
18357
+ next_attempt_at: string | null;
18358
+ order_ref: string;
18359
+ owner_module: string;
18360
+ payload: import("../integrations/supabase/types").Json;
18361
+ plan_run_id: string | null;
18362
+ planned_end: string | null;
18363
+ planned_start: string | null;
18364
+ priority: number;
18365
+ result: import("../integrations/supabase/types").Json | null;
18366
+ rule_config_id: string | null;
18367
+ rule_version: number | null;
18368
+ sequence: number;
18369
+ shadow: boolean;
18370
+ started_at: string | null;
18371
+ status: string;
18372
+ strategy_id: string | null;
18373
+ task_type: string;
18374
+ updated_at: string;
18375
+ user_id: string;
18376
+ }[];
18377
+ SetofOptions: {
18378
+ from: "*";
18379
+ to: "logistics_tasks";
18380
+ isOneToOne: false;
18381
+ isSetofReturn: true;
18382
+ };
18383
+ };
18215
18384
  claim_print_jobs: {
18216
18385
  Args: {
18217
18386
  _agent_id: string;
@@ -18276,10 +18445,24 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
18276
18445
  isSetofReturn: true;
18277
18446
  };
18278
18447
  };
18448
+ cleanup_floriday_stock_queue: {
18449
+ Args: never;
18450
+ Returns: undefined;
18451
+ };
18279
18452
  cleanup_old_bookings: {
18280
18453
  Args: never;
18281
18454
  Returns: undefined;
18282
18455
  };
18456
+ complete_floriday_stock_queue: {
18457
+ Args: {
18458
+ p_attempt_id?: string;
18459
+ p_error?: string;
18460
+ p_id: string;
18461
+ p_ok: boolean;
18462
+ p_permanent?: boolean;
18463
+ };
18464
+ Returns: undefined;
18465
+ };
18283
18466
  consume_bom_for_production: {
18284
18467
  Args: {
18285
18468
  p_connection_id: string;
@@ -18971,6 +19154,8 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
18971
19154
  p_worker?: string;
18972
19155
  };
18973
19156
  Returns: {
19157
+ attempt_log: import("../integrations/supabase/types").Json;
19158
+ attempts: number;
18974
19159
  buffer_ref: string | null;
18975
19160
  claimed_at: string | null;
18976
19161
  claimed_by: string | null;
@@ -18980,6 +19165,8 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
18980
19165
  due_at: string | null;
18981
19166
  error: string | null;
18982
19167
  id: string;
19168
+ last_error: string | null;
19169
+ next_attempt_at: string | null;
18983
19170
  order_ref: string;
18984
19171
  owner_module: string;
18985
19172
  payload: import("../integrations/supabase/types").Json;
@@ -19012,6 +19199,8 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
19012
19199
  p_worker?: string;
19013
19200
  };
19014
19201
  Returns: {
19202
+ attempt_log: import("../integrations/supabase/types").Json;
19203
+ attempts: number;
19015
19204
  buffer_ref: string | null;
19016
19205
  claimed_at: string | null;
19017
19206
  claimed_by: string | null;
@@ -19021,6 +19210,8 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
19021
19210
  due_at: string | null;
19022
19211
  error: string | null;
19023
19212
  id: string;
19213
+ last_error: string | null;
19214
+ next_attempt_at: string | null;
19024
19215
  order_ref: string;
19025
19216
  owner_module: string;
19026
19217
  payload: import("../integrations/supabase/types").Json;
@@ -19053,6 +19244,8 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
19053
19244
  p_task_id: string;
19054
19245
  };
19055
19246
  Returns: {
19247
+ attempt_log: import("../integrations/supabase/types").Json;
19248
+ attempts: number;
19056
19249
  buffer_ref: string | null;
19057
19250
  claimed_at: string | null;
19058
19251
  claimed_by: string | null;
@@ -19062,6 +19255,8 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
19062
19255
  due_at: string | null;
19063
19256
  error: string | null;
19064
19257
  id: string;
19258
+ last_error: string | null;
19259
+ next_attempt_at: string | null;
19065
19260
  order_ref: string;
19066
19261
  owner_module: string;
19067
19262
  payload: import("../integrations/supabase/types").Json;
@@ -19143,6 +19338,8 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
19143
19338
  p_task_id: string;
19144
19339
  };
19145
19340
  Returns: {
19341
+ attempt_log: import("../integrations/supabase/types").Json;
19342
+ attempts: number;
19146
19343
  buffer_ref: string | null;
19147
19344
  claimed_at: string | null;
19148
19345
  claimed_by: string | null;
@@ -19152,6 +19349,8 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
19152
19349
  due_at: string | null;
19153
19350
  error: string | null;
19154
19351
  id: string;
19352
+ last_error: string | null;
19353
+ next_attempt_at: string | null;
19155
19354
  order_ref: string;
19156
19355
  owner_module: string;
19157
19356
  payload: import("../integrations/supabase/types").Json;
@@ -19178,6 +19377,51 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
19178
19377
  isSetofReturn: false;
19179
19378
  };
19180
19379
  };
19380
+ logistics_floriday_claim_pushes: {
19381
+ Args: {
19382
+ _lease_seconds?: number;
19383
+ _limit?: number;
19384
+ _worker?: string;
19385
+ };
19386
+ Returns: {
19387
+ attempts: number;
19388
+ fulfillment_order_id: string;
19389
+ id: string;
19390
+ last_sent_hash: string;
19391
+ order_ref: string;
19392
+ payload: import("../integrations/supabase/types").Json;
19393
+ payload_hash: string;
19394
+ revision: number;
19395
+ }[];
19396
+ };
19397
+ logistics_floriday_finish_push: {
19398
+ Args: {
19399
+ _error?: string;
19400
+ _fulfillment_order_id?: string;
19401
+ _id: string;
19402
+ _max_age_hours?: number;
19403
+ _max_attempts?: number;
19404
+ _ok: boolean;
19405
+ _permanent?: boolean;
19406
+ _revision: number;
19407
+ _sent_hash?: string;
19408
+ };
19409
+ Returns: string;
19410
+ };
19411
+ logistics_floriday_prune_pushes: {
19412
+ Args: {
19413
+ _days?: number;
19414
+ };
19415
+ Returns: number;
19416
+ };
19417
+ logistics_floriday_queue_push: {
19418
+ Args: {
19419
+ _order_ref: string;
19420
+ _payload?: import("../integrations/supabase/types").Json;
19421
+ _payload_hash?: string;
19422
+ };
19423
+ Returns: string;
19424
+ };
19181
19425
  logistics_live_carriers: {
19182
19426
  Args: {
19183
19427
  p_order_ref: string;
@@ -19905,6 +20149,10 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
19905
20149
  Args: never;
19906
20150
  Returns: undefined;
19907
20151
  };
20152
+ run_logistics_tasks_dispatch: {
20153
+ Args: never;
20154
+ Returns: undefined;
20155
+ };
19908
20156
  run_twinfield_queue_tick: {
19909
20157
  Args: never;
19910
20158
  Returns: undefined;
@@ -20145,6 +20393,13 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
20145
20393
  };
20146
20394
  Returns: number;
20147
20395
  };
20396
+ schedule_floriday_stock_queue_process: {
20397
+ Args: {
20398
+ p_apikey: string;
20399
+ p_url: string;
20400
+ };
20401
+ Returns: number;
20402
+ };
20148
20403
  schedule_floriday_token_refresh: {
20149
20404
  Args: {
20150
20405
  p_apikey: string;
@@ -26052,12 +26307,17 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
26052
26307
  attempts: number;
26053
26308
  connection_id: string;
26054
26309
  created_at: string;
26310
+ desired_available: boolean | null;
26055
26311
  gateway_attempt_id: string | null;
26056
26312
  id: string;
26057
26313
  last_error: string | null;
26314
+ locked_at: string | null;
26315
+ locked_by: string | null;
26316
+ next_attempt_at: string;
26058
26317
  number_of_pieces: number;
26059
26318
  sent_at: string | null;
26060
26319
  status: string;
26320
+ superseded_by: string | null;
26061
26321
  trade_item_id: string;
26062
26322
  updated_at: string;
26063
26323
  user_id: string;
@@ -26066,12 +26326,17 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
26066
26326
  attempts?: number;
26067
26327
  connection_id: string;
26068
26328
  created_at?: string;
26329
+ desired_available?: boolean | null;
26069
26330
  gateway_attempt_id?: string | null;
26070
26331
  id?: string;
26071
26332
  last_error?: string | null;
26333
+ locked_at?: string | null;
26334
+ locked_by?: string | null;
26335
+ next_attempt_at?: string;
26072
26336
  number_of_pieces?: number;
26073
26337
  sent_at?: string | null;
26074
26338
  status?: string;
26339
+ superseded_by?: string | null;
26075
26340
  trade_item_id: string;
26076
26341
  updated_at?: string;
26077
26342
  user_id: string;
@@ -26080,12 +26345,17 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
26080
26345
  attempts?: number;
26081
26346
  connection_id?: string;
26082
26347
  created_at?: string;
26348
+ desired_available?: boolean | null;
26083
26349
  gateway_attempt_id?: string | null;
26084
26350
  id?: string;
26085
26351
  last_error?: string | null;
26352
+ locked_at?: string | null;
26353
+ locked_by?: string | null;
26354
+ next_attempt_at?: string;
26086
26355
  number_of_pieces?: number;
26087
26356
  sent_at?: string | null;
26088
26357
  status?: string;
26358
+ superseded_by?: string | null;
26089
26359
  trade_item_id?: string;
26090
26360
  updated_at?: string;
26091
26361
  user_id?: string;
@@ -28834,6 +29104,69 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
28834
29104
  };
28835
29105
  Relationships: [];
28836
29106
  };
29107
+ logistics_floriday_pushes: {
29108
+ Row: {
29109
+ attempts: number;
29110
+ created_at: string;
29111
+ first_queued_at: string;
29112
+ fulfillment_order_id: string | null;
29113
+ id: string;
29114
+ last_error: string | null;
29115
+ last_error_at: string | null;
29116
+ last_sent_hash: string | null;
29117
+ locked_by: string | null;
29118
+ locked_until: string | null;
29119
+ next_attempt_at: string;
29120
+ order_ref: string;
29121
+ payload: import("../integrations/supabase/types").Json;
29122
+ payload_hash: string | null;
29123
+ revision: number;
29124
+ sent_at: string | null;
29125
+ status: string;
29126
+ updated_at: string;
29127
+ };
29128
+ Insert: {
29129
+ attempts?: number;
29130
+ created_at?: string;
29131
+ first_queued_at?: string;
29132
+ fulfillment_order_id?: string | null;
29133
+ id?: string;
29134
+ last_error?: string | null;
29135
+ last_error_at?: string | null;
29136
+ last_sent_hash?: string | null;
29137
+ locked_by?: string | null;
29138
+ locked_until?: string | null;
29139
+ next_attempt_at?: string;
29140
+ order_ref: string;
29141
+ payload?: import("../integrations/supabase/types").Json;
29142
+ payload_hash?: string | null;
29143
+ revision?: number;
29144
+ sent_at?: string | null;
29145
+ status?: string;
29146
+ updated_at?: string;
29147
+ };
29148
+ Update: {
29149
+ attempts?: number;
29150
+ created_at?: string;
29151
+ first_queued_at?: string;
29152
+ fulfillment_order_id?: string | null;
29153
+ id?: string;
29154
+ last_error?: string | null;
29155
+ last_error_at?: string | null;
29156
+ last_sent_hash?: string | null;
29157
+ locked_by?: string | null;
29158
+ locked_until?: string | null;
29159
+ next_attempt_at?: string;
29160
+ order_ref?: string;
29161
+ payload?: import("../integrations/supabase/types").Json;
29162
+ payload_hash?: string | null;
29163
+ revision?: number;
29164
+ sent_at?: string | null;
29165
+ status?: string;
29166
+ updated_at?: string;
29167
+ };
29168
+ Relationships: [];
29169
+ };
28837
29170
  logistics_formulas: {
28838
29171
  Row: {
28839
29172
  created_at: string;
@@ -29445,6 +29778,8 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
29445
29778
  };
29446
29779
  logistics_tasks: {
29447
29780
  Row: {
29781
+ attempt_log: import("../integrations/supabase/types").Json;
29782
+ attempts: number;
29448
29783
  buffer_ref: string | null;
29449
29784
  claimed_at: string | null;
29450
29785
  claimed_by: string | null;
@@ -29454,6 +29789,8 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
29454
29789
  due_at: string | null;
29455
29790
  error: string | null;
29456
29791
  id: string;
29792
+ last_error: string | null;
29793
+ next_attempt_at: string | null;
29457
29794
  order_ref: string;
29458
29795
  owner_module: string;
29459
29796
  payload: import("../integrations/supabase/types").Json;
@@ -29474,6 +29811,8 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
29474
29811
  user_id: string;
29475
29812
  };
29476
29813
  Insert: {
29814
+ attempt_log?: import("../integrations/supabase/types").Json;
29815
+ attempts?: number;
29477
29816
  buffer_ref?: string | null;
29478
29817
  claimed_at?: string | null;
29479
29818
  claimed_by?: string | null;
@@ -29483,6 +29822,8 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
29483
29822
  due_at?: string | null;
29484
29823
  error?: string | null;
29485
29824
  id?: string;
29825
+ last_error?: string | null;
29826
+ next_attempt_at?: string | null;
29486
29827
  order_ref: string;
29487
29828
  owner_module: string;
29488
29829
  payload?: import("../integrations/supabase/types").Json;
@@ -29503,6 +29844,8 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
29503
29844
  user_id?: string;
29504
29845
  };
29505
29846
  Update: {
29847
+ attempt_log?: import("../integrations/supabase/types").Json;
29848
+ attempts?: number;
29506
29849
  buffer_ref?: string | null;
29507
29850
  claimed_at?: string | null;
29508
29851
  claimed_by?: string | null;
@@ -29512,6 +29855,8 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
29512
29855
  due_at?: string | null;
29513
29856
  error?: string | null;
29514
29857
  id?: string;
29858
+ last_error?: string | null;
29859
+ next_attempt_at?: string | null;
29515
29860
  order_ref?: string;
29516
29861
  owner_module?: string;
29517
29862
  payload?: import("../integrations/supabase/types").Json;
@@ -38516,6 +38861,85 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
38516
38861
  };
38517
38862
  Returns: import("../integrations/supabase/types").Json;
38518
38863
  };
38864
+ claim_floriday_stock_queue: {
38865
+ Args: {
38866
+ p_limit?: number;
38867
+ p_worker?: string;
38868
+ };
38869
+ Returns: {
38870
+ attempts: number;
38871
+ connection_id: string;
38872
+ created_at: string;
38873
+ desired_available: boolean | null;
38874
+ gateway_attempt_id: string | null;
38875
+ id: string;
38876
+ last_error: string | null;
38877
+ locked_at: string | null;
38878
+ locked_by: string | null;
38879
+ next_attempt_at: string;
38880
+ number_of_pieces: number;
38881
+ sent_at: string | null;
38882
+ status: string;
38883
+ superseded_by: string | null;
38884
+ trade_item_id: string;
38885
+ updated_at: string;
38886
+ user_id: string;
38887
+ }[];
38888
+ SetofOptions: {
38889
+ from: "*";
38890
+ to: "floriday_continuous_stock_queue";
38891
+ isOneToOne: false;
38892
+ isSetofReturn: true;
38893
+ };
38894
+ };
38895
+ claim_logistics_tasks: {
38896
+ Args: {
38897
+ _limit?: number;
38898
+ _owner_module: string;
38899
+ _stale_minutes?: number;
38900
+ _task_type: string;
38901
+ _worker: string;
38902
+ };
38903
+ Returns: {
38904
+ attempt_log: import("../integrations/supabase/types").Json;
38905
+ attempts: number;
38906
+ buffer_ref: string | null;
38907
+ claimed_at: string | null;
38908
+ claimed_by: string | null;
38909
+ completed_at: string | null;
38910
+ created_at: string;
38911
+ depends_on: string[];
38912
+ due_at: string | null;
38913
+ error: string | null;
38914
+ id: string;
38915
+ last_error: string | null;
38916
+ next_attempt_at: string | null;
38917
+ order_ref: string;
38918
+ owner_module: string;
38919
+ payload: import("../integrations/supabase/types").Json;
38920
+ plan_run_id: string | null;
38921
+ planned_end: string | null;
38922
+ planned_start: string | null;
38923
+ priority: number;
38924
+ result: import("../integrations/supabase/types").Json | null;
38925
+ rule_config_id: string | null;
38926
+ rule_version: number | null;
38927
+ sequence: number;
38928
+ shadow: boolean;
38929
+ started_at: string | null;
38930
+ status: string;
38931
+ strategy_id: string | null;
38932
+ task_type: string;
38933
+ updated_at: string;
38934
+ user_id: string;
38935
+ }[];
38936
+ SetofOptions: {
38937
+ from: "*";
38938
+ to: "logistics_tasks";
38939
+ isOneToOne: false;
38940
+ isSetofReturn: true;
38941
+ };
38942
+ };
38519
38943
  claim_print_jobs: {
38520
38944
  Args: {
38521
38945
  _agent_id: string;
@@ -38580,10 +39004,24 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
38580
39004
  isSetofReturn: true;
38581
39005
  };
38582
39006
  };
39007
+ cleanup_floriday_stock_queue: {
39008
+ Args: never;
39009
+ Returns: undefined;
39010
+ };
38583
39011
  cleanup_old_bookings: {
38584
39012
  Args: never;
38585
39013
  Returns: undefined;
38586
39014
  };
39015
+ complete_floriday_stock_queue: {
39016
+ Args: {
39017
+ p_attempt_id?: string;
39018
+ p_error?: string;
39019
+ p_id: string;
39020
+ p_ok: boolean;
39021
+ p_permanent?: boolean;
39022
+ };
39023
+ Returns: undefined;
39024
+ };
38587
39025
  consume_bom_for_production: {
38588
39026
  Args: {
38589
39027
  p_connection_id: string;
@@ -39275,6 +39713,8 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
39275
39713
  p_worker?: string;
39276
39714
  };
39277
39715
  Returns: {
39716
+ attempt_log: import("../integrations/supabase/types").Json;
39717
+ attempts: number;
39278
39718
  buffer_ref: string | null;
39279
39719
  claimed_at: string | null;
39280
39720
  claimed_by: string | null;
@@ -39284,6 +39724,8 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
39284
39724
  due_at: string | null;
39285
39725
  error: string | null;
39286
39726
  id: string;
39727
+ last_error: string | null;
39728
+ next_attempt_at: string | null;
39287
39729
  order_ref: string;
39288
39730
  owner_module: string;
39289
39731
  payload: import("../integrations/supabase/types").Json;
@@ -39316,6 +39758,8 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
39316
39758
  p_worker?: string;
39317
39759
  };
39318
39760
  Returns: {
39761
+ attempt_log: import("../integrations/supabase/types").Json;
39762
+ attempts: number;
39319
39763
  buffer_ref: string | null;
39320
39764
  claimed_at: string | null;
39321
39765
  claimed_by: string | null;
@@ -39325,6 +39769,8 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
39325
39769
  due_at: string | null;
39326
39770
  error: string | null;
39327
39771
  id: string;
39772
+ last_error: string | null;
39773
+ next_attempt_at: string | null;
39328
39774
  order_ref: string;
39329
39775
  owner_module: string;
39330
39776
  payload: import("../integrations/supabase/types").Json;
@@ -39357,6 +39803,8 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
39357
39803
  p_task_id: string;
39358
39804
  };
39359
39805
  Returns: {
39806
+ attempt_log: import("../integrations/supabase/types").Json;
39807
+ attempts: number;
39360
39808
  buffer_ref: string | null;
39361
39809
  claimed_at: string | null;
39362
39810
  claimed_by: string | null;
@@ -39366,6 +39814,8 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
39366
39814
  due_at: string | null;
39367
39815
  error: string | null;
39368
39816
  id: string;
39817
+ last_error: string | null;
39818
+ next_attempt_at: string | null;
39369
39819
  order_ref: string;
39370
39820
  owner_module: string;
39371
39821
  payload: import("../integrations/supabase/types").Json;
@@ -39447,6 +39897,8 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
39447
39897
  p_task_id: string;
39448
39898
  };
39449
39899
  Returns: {
39900
+ attempt_log: import("../integrations/supabase/types").Json;
39901
+ attempts: number;
39450
39902
  buffer_ref: string | null;
39451
39903
  claimed_at: string | null;
39452
39904
  claimed_by: string | null;
@@ -39456,6 +39908,8 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
39456
39908
  due_at: string | null;
39457
39909
  error: string | null;
39458
39910
  id: string;
39911
+ last_error: string | null;
39912
+ next_attempt_at: string | null;
39459
39913
  order_ref: string;
39460
39914
  owner_module: string;
39461
39915
  payload: import("../integrations/supabase/types").Json;
@@ -39482,6 +39936,51 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
39482
39936
  isSetofReturn: false;
39483
39937
  };
39484
39938
  };
39939
+ logistics_floriday_claim_pushes: {
39940
+ Args: {
39941
+ _lease_seconds?: number;
39942
+ _limit?: number;
39943
+ _worker?: string;
39944
+ };
39945
+ Returns: {
39946
+ attempts: number;
39947
+ fulfillment_order_id: string;
39948
+ id: string;
39949
+ last_sent_hash: string;
39950
+ order_ref: string;
39951
+ payload: import("../integrations/supabase/types").Json;
39952
+ payload_hash: string;
39953
+ revision: number;
39954
+ }[];
39955
+ };
39956
+ logistics_floriday_finish_push: {
39957
+ Args: {
39958
+ _error?: string;
39959
+ _fulfillment_order_id?: string;
39960
+ _id: string;
39961
+ _max_age_hours?: number;
39962
+ _max_attempts?: number;
39963
+ _ok: boolean;
39964
+ _permanent?: boolean;
39965
+ _revision: number;
39966
+ _sent_hash?: string;
39967
+ };
39968
+ Returns: string;
39969
+ };
39970
+ logistics_floriday_prune_pushes: {
39971
+ Args: {
39972
+ _days?: number;
39973
+ };
39974
+ Returns: number;
39975
+ };
39976
+ logistics_floriday_queue_push: {
39977
+ Args: {
39978
+ _order_ref: string;
39979
+ _payload?: import("../integrations/supabase/types").Json;
39980
+ _payload_hash?: string;
39981
+ };
39982
+ Returns: string;
39983
+ };
39485
39984
  logistics_live_carriers: {
39486
39985
  Args: {
39487
39986
  p_order_ref: string;
@@ -40209,6 +40708,10 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
40209
40708
  Args: never;
40210
40709
  Returns: undefined;
40211
40710
  };
40711
+ run_logistics_tasks_dispatch: {
40712
+ Args: never;
40713
+ Returns: undefined;
40714
+ };
40212
40715
  run_twinfield_queue_tick: {
40213
40716
  Args: never;
40214
40717
  Returns: undefined;
@@ -40449,6 +40952,13 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
40449
40952
  };
40450
40953
  Returns: number;
40451
40954
  };
40955
+ schedule_floriday_stock_queue_process: {
40956
+ Args: {
40957
+ p_apikey: string;
40958
+ p_url: string;
40959
+ };
40960
+ Returns: number;
40961
+ };
40452
40962
  schedule_floriday_token_refresh: {
40453
40963
  Args: {
40454
40964
  p_apikey: string;
@@ -46363,12 +46873,17 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
46363
46873
  attempts: number;
46364
46874
  connection_id: string;
46365
46875
  created_at: string;
46876
+ desired_available: boolean | null;
46366
46877
  gateway_attempt_id: string | null;
46367
46878
  id: string;
46368
46879
  last_error: string | null;
46880
+ locked_at: string | null;
46881
+ locked_by: string | null;
46882
+ next_attempt_at: string;
46369
46883
  number_of_pieces: number;
46370
46884
  sent_at: string | null;
46371
46885
  status: string;
46886
+ superseded_by: string | null;
46372
46887
  trade_item_id: string;
46373
46888
  updated_at: string;
46374
46889
  user_id: string;
@@ -46377,12 +46892,17 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
46377
46892
  attempts?: number;
46378
46893
  connection_id: string;
46379
46894
  created_at?: string;
46895
+ desired_available?: boolean | null;
46380
46896
  gateway_attempt_id?: string | null;
46381
46897
  id?: string;
46382
46898
  last_error?: string | null;
46899
+ locked_at?: string | null;
46900
+ locked_by?: string | null;
46901
+ next_attempt_at?: string;
46383
46902
  number_of_pieces?: number;
46384
46903
  sent_at?: string | null;
46385
46904
  status?: string;
46905
+ superseded_by?: string | null;
46386
46906
  trade_item_id: string;
46387
46907
  updated_at?: string;
46388
46908
  user_id: string;
@@ -46391,12 +46911,17 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
46391
46911
  attempts?: number;
46392
46912
  connection_id?: string;
46393
46913
  created_at?: string;
46914
+ desired_available?: boolean | null;
46394
46915
  gateway_attempt_id?: string | null;
46395
46916
  id?: string;
46396
46917
  last_error?: string | null;
46918
+ locked_at?: string | null;
46919
+ locked_by?: string | null;
46920
+ next_attempt_at?: string;
46397
46921
  number_of_pieces?: number;
46398
46922
  sent_at?: string | null;
46399
46923
  status?: string;
46924
+ superseded_by?: string | null;
46400
46925
  trade_item_id?: string;
46401
46926
  updated_at?: string;
46402
46927
  user_id?: string;
@@ -49145,6 +49670,69 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
49145
49670
  };
49146
49671
  Relationships: [];
49147
49672
  };
49673
+ logistics_floriday_pushes: {
49674
+ Row: {
49675
+ attempts: number;
49676
+ created_at: string;
49677
+ first_queued_at: string;
49678
+ fulfillment_order_id: string | null;
49679
+ id: string;
49680
+ last_error: string | null;
49681
+ last_error_at: string | null;
49682
+ last_sent_hash: string | null;
49683
+ locked_by: string | null;
49684
+ locked_until: string | null;
49685
+ next_attempt_at: string;
49686
+ order_ref: string;
49687
+ payload: import("../integrations/supabase/types").Json;
49688
+ payload_hash: string | null;
49689
+ revision: number;
49690
+ sent_at: string | null;
49691
+ status: string;
49692
+ updated_at: string;
49693
+ };
49694
+ Insert: {
49695
+ attempts?: number;
49696
+ created_at?: string;
49697
+ first_queued_at?: string;
49698
+ fulfillment_order_id?: string | null;
49699
+ id?: string;
49700
+ last_error?: string | null;
49701
+ last_error_at?: string | null;
49702
+ last_sent_hash?: string | null;
49703
+ locked_by?: string | null;
49704
+ locked_until?: string | null;
49705
+ next_attempt_at?: string;
49706
+ order_ref: string;
49707
+ payload?: import("../integrations/supabase/types").Json;
49708
+ payload_hash?: string | null;
49709
+ revision?: number;
49710
+ sent_at?: string | null;
49711
+ status?: string;
49712
+ updated_at?: string;
49713
+ };
49714
+ Update: {
49715
+ attempts?: number;
49716
+ created_at?: string;
49717
+ first_queued_at?: string;
49718
+ fulfillment_order_id?: string | null;
49719
+ id?: string;
49720
+ last_error?: string | null;
49721
+ last_error_at?: string | null;
49722
+ last_sent_hash?: string | null;
49723
+ locked_by?: string | null;
49724
+ locked_until?: string | null;
49725
+ next_attempt_at?: string;
49726
+ order_ref?: string;
49727
+ payload?: import("../integrations/supabase/types").Json;
49728
+ payload_hash?: string | null;
49729
+ revision?: number;
49730
+ sent_at?: string | null;
49731
+ status?: string;
49732
+ updated_at?: string;
49733
+ };
49734
+ Relationships: [];
49735
+ };
49148
49736
  logistics_formulas: {
49149
49737
  Row: {
49150
49738
  created_at: string;
@@ -49756,6 +50344,8 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
49756
50344
  };
49757
50345
  logistics_tasks: {
49758
50346
  Row: {
50347
+ attempt_log: import("../integrations/supabase/types").Json;
50348
+ attempts: number;
49759
50349
  buffer_ref: string | null;
49760
50350
  claimed_at: string | null;
49761
50351
  claimed_by: string | null;
@@ -49765,6 +50355,8 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
49765
50355
  due_at: string | null;
49766
50356
  error: string | null;
49767
50357
  id: string;
50358
+ last_error: string | null;
50359
+ next_attempt_at: string | null;
49768
50360
  order_ref: string;
49769
50361
  owner_module: string;
49770
50362
  payload: import("../integrations/supabase/types").Json;
@@ -49785,6 +50377,8 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
49785
50377
  user_id: string;
49786
50378
  };
49787
50379
  Insert: {
50380
+ attempt_log?: import("../integrations/supabase/types").Json;
50381
+ attempts?: number;
49788
50382
  buffer_ref?: string | null;
49789
50383
  claimed_at?: string | null;
49790
50384
  claimed_by?: string | null;
@@ -49794,6 +50388,8 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
49794
50388
  due_at?: string | null;
49795
50389
  error?: string | null;
49796
50390
  id?: string;
50391
+ last_error?: string | null;
50392
+ next_attempt_at?: string | null;
49797
50393
  order_ref: string;
49798
50394
  owner_module: string;
49799
50395
  payload?: import("../integrations/supabase/types").Json;
@@ -49814,6 +50410,8 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
49814
50410
  user_id?: string;
49815
50411
  };
49816
50412
  Update: {
50413
+ attempt_log?: import("../integrations/supabase/types").Json;
50414
+ attempts?: number;
49817
50415
  buffer_ref?: string | null;
49818
50416
  claimed_at?: string | null;
49819
50417
  claimed_by?: string | null;
@@ -49823,6 +50421,8 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
49823
50421
  due_at?: string | null;
49824
50422
  error?: string | null;
49825
50423
  id?: string;
50424
+ last_error?: string | null;
50425
+ next_attempt_at?: string | null;
49826
50426
  order_ref?: string;
49827
50427
  owner_module?: string;
49828
50428
  payload?: import("../integrations/supabase/types").Json;
@@ -58827,6 +59427,85 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
58827
59427
  };
58828
59428
  Returns: import("../integrations/supabase/types").Json;
58829
59429
  };
59430
+ claim_floriday_stock_queue: {
59431
+ Args: {
59432
+ p_limit?: number;
59433
+ p_worker?: string;
59434
+ };
59435
+ Returns: {
59436
+ attempts: number;
59437
+ connection_id: string;
59438
+ created_at: string;
59439
+ desired_available: boolean | null;
59440
+ gateway_attempt_id: string | null;
59441
+ id: string;
59442
+ last_error: string | null;
59443
+ locked_at: string | null;
59444
+ locked_by: string | null;
59445
+ next_attempt_at: string;
59446
+ number_of_pieces: number;
59447
+ sent_at: string | null;
59448
+ status: string;
59449
+ superseded_by: string | null;
59450
+ trade_item_id: string;
59451
+ updated_at: string;
59452
+ user_id: string;
59453
+ }[];
59454
+ SetofOptions: {
59455
+ from: "*";
59456
+ to: "floriday_continuous_stock_queue";
59457
+ isOneToOne: false;
59458
+ isSetofReturn: true;
59459
+ };
59460
+ };
59461
+ claim_logistics_tasks: {
59462
+ Args: {
59463
+ _limit?: number;
59464
+ _owner_module: string;
59465
+ _stale_minutes?: number;
59466
+ _task_type: string;
59467
+ _worker: string;
59468
+ };
59469
+ Returns: {
59470
+ attempt_log: import("../integrations/supabase/types").Json;
59471
+ attempts: number;
59472
+ buffer_ref: string | null;
59473
+ claimed_at: string | null;
59474
+ claimed_by: string | null;
59475
+ completed_at: string | null;
59476
+ created_at: string;
59477
+ depends_on: string[];
59478
+ due_at: string | null;
59479
+ error: string | null;
59480
+ id: string;
59481
+ last_error: string | null;
59482
+ next_attempt_at: string | null;
59483
+ order_ref: string;
59484
+ owner_module: string;
59485
+ payload: import("../integrations/supabase/types").Json;
59486
+ plan_run_id: string | null;
59487
+ planned_end: string | null;
59488
+ planned_start: string | null;
59489
+ priority: number;
59490
+ result: import("../integrations/supabase/types").Json | null;
59491
+ rule_config_id: string | null;
59492
+ rule_version: number | null;
59493
+ sequence: number;
59494
+ shadow: boolean;
59495
+ started_at: string | null;
59496
+ status: string;
59497
+ strategy_id: string | null;
59498
+ task_type: string;
59499
+ updated_at: string;
59500
+ user_id: string;
59501
+ }[];
59502
+ SetofOptions: {
59503
+ from: "*";
59504
+ to: "logistics_tasks";
59505
+ isOneToOne: false;
59506
+ isSetofReturn: true;
59507
+ };
59508
+ };
58830
59509
  claim_print_jobs: {
58831
59510
  Args: {
58832
59511
  _agent_id: string;
@@ -58891,10 +59570,24 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
58891
59570
  isSetofReturn: true;
58892
59571
  };
58893
59572
  };
59573
+ cleanup_floriday_stock_queue: {
59574
+ Args: never;
59575
+ Returns: undefined;
59576
+ };
58894
59577
  cleanup_old_bookings: {
58895
59578
  Args: never;
58896
59579
  Returns: undefined;
58897
59580
  };
59581
+ complete_floriday_stock_queue: {
59582
+ Args: {
59583
+ p_attempt_id?: string;
59584
+ p_error?: string;
59585
+ p_id: string;
59586
+ p_ok: boolean;
59587
+ p_permanent?: boolean;
59588
+ };
59589
+ Returns: undefined;
59590
+ };
58898
59591
  consume_bom_for_production: {
58899
59592
  Args: {
58900
59593
  p_connection_id: string;
@@ -59586,6 +60279,8 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
59586
60279
  p_worker?: string;
59587
60280
  };
59588
60281
  Returns: {
60282
+ attempt_log: import("../integrations/supabase/types").Json;
60283
+ attempts: number;
59589
60284
  buffer_ref: string | null;
59590
60285
  claimed_at: string | null;
59591
60286
  claimed_by: string | null;
@@ -59595,6 +60290,8 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
59595
60290
  due_at: string | null;
59596
60291
  error: string | null;
59597
60292
  id: string;
60293
+ last_error: string | null;
60294
+ next_attempt_at: string | null;
59598
60295
  order_ref: string;
59599
60296
  owner_module: string;
59600
60297
  payload: import("../integrations/supabase/types").Json;
@@ -59627,6 +60324,8 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
59627
60324
  p_worker?: string;
59628
60325
  };
59629
60326
  Returns: {
60327
+ attempt_log: import("../integrations/supabase/types").Json;
60328
+ attempts: number;
59630
60329
  buffer_ref: string | null;
59631
60330
  claimed_at: string | null;
59632
60331
  claimed_by: string | null;
@@ -59636,6 +60335,8 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
59636
60335
  due_at: string | null;
59637
60336
  error: string | null;
59638
60337
  id: string;
60338
+ last_error: string | null;
60339
+ next_attempt_at: string | null;
59639
60340
  order_ref: string;
59640
60341
  owner_module: string;
59641
60342
  payload: import("../integrations/supabase/types").Json;
@@ -59668,6 +60369,8 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
59668
60369
  p_task_id: string;
59669
60370
  };
59670
60371
  Returns: {
60372
+ attempt_log: import("../integrations/supabase/types").Json;
60373
+ attempts: number;
59671
60374
  buffer_ref: string | null;
59672
60375
  claimed_at: string | null;
59673
60376
  claimed_by: string | null;
@@ -59677,6 +60380,102 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
59677
60380
  due_at: string | null;
59678
60381
  error: string | null;
59679
60382
  id: string;
60383
+ last_error: string | null;
60384
+ next_attempt_at: string | null;
60385
+ order_ref: string;
60386
+ owner_module: string;
60387
+ payload: import("../integrations/supabase/types").Json;
60388
+ plan_run_id: string | null;
60389
+ planned_end: string | null;
60390
+ planned_start: string | null;
60391
+ priority: number;
60392
+ result: import("../integrations/supabase/types").Json | null;
60393
+ rule_config_id: string | null;
60394
+ rule_version: number | null;
60395
+ sequence: number;
60396
+ shadow: boolean;
60397
+ started_at: string | null;
60398
+ status: string;
60399
+ strategy_id: string | null;
60400
+ task_type: string;
60401
+ updated_at: string;
60402
+ user_id: string;
60403
+ };
60404
+ SetofOptions: {
60405
+ from: "*";
60406
+ to: "logistics_tasks";
60407
+ isOneToOne: true;
60408
+ isSetofReturn: false;
60409
+ };
60410
+ };
60411
+ logistics_delay_customer_email: {
60412
+ Args: {
60413
+ p_customer: string;
60414
+ p_lang: string;
60415
+ p_new_date: string;
60416
+ p_order: string;
60417
+ p_partial?: boolean;
60418
+ };
60419
+ Returns: {
60420
+ body: string;
60421
+ subject: string;
60422
+ }[];
60423
+ };
60424
+ logistics_document_layout: {
60425
+ Args: {
60426
+ _document_code: string;
60427
+ };
60428
+ Returns: import("../integrations/supabase/types").Json;
60429
+ };
60430
+ logistics_document_station: {
60431
+ Args: {
60432
+ _document_code: string;
60433
+ };
60434
+ Returns: string;
60435
+ };
60436
+ logistics_emit_event: {
60437
+ Args: {
60438
+ p_event_type: string;
60439
+ p_idempotency_key?: string;
60440
+ p_order_ref: string;
60441
+ p_payload?: import("../integrations/supabase/types").Json;
60442
+ p_shadow?: boolean;
60443
+ p_source_module: string;
60444
+ p_strategy_id?: string;
60445
+ };
60446
+ Returns: import("../integrations/supabase/types").Json;
60447
+ } | {
60448
+ Args: {
60449
+ p_event_type: string;
60450
+ p_idempotency_key?: string;
60451
+ p_order_ref: string;
60452
+ p_payload?: import("../integrations/supabase/types").Json;
60453
+ p_priority?: number;
60454
+ p_shadow?: boolean;
60455
+ p_source_module: string;
60456
+ p_strategy_id?: string;
60457
+ };
60458
+ Returns: import("../integrations/supabase/types").Json;
60459
+ };
60460
+ logistics_fail_task: {
60461
+ Args: {
60462
+ p_error: string;
60463
+ p_task_id: string;
60464
+ };
60465
+ Returns: {
60466
+ attempt_log: import("../integrations/supabase/types").Json;
60467
+ attempts: number;
60468
+ buffer_ref: string | null;
60469
+ claimed_at: string | null;
60470
+ claimed_by: string | null;
60471
+ completed_at: string | null;
60472
+ created_at: string;
60473
+ depends_on: string[];
60474
+ due_at: string | null;
60475
+ error: string | null;
60476
+ id: string;
60477
+ last_error: string | null;
60478
+ next_attempt_at: string | null;
59680
60479
  order_ref: string;
59681
60480
  owner_module: string;
59682
60481
  payload: import("../integrations/supabase/types").Json;
@@ -59703,95 +60502,50 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
59703
60502
  isSetofReturn: false;
59704
60503
  };
59705
60504
  };
59706
- logistics_delay_customer_email: {
60505
+ logistics_floriday_claim_pushes: {
59707
60506
  Args: {
59708
- p_customer: string;
59709
- p_lang: string;
59710
- p_new_date: string;
59711
- p_order: string;
59712
- p_partial?: boolean;
60507
+ _lease_seconds?: number;
60508
+ _limit?: number;
60509
+ _worker?: string;
59713
60510
  };
59714
60511
  Returns: {
59715
- body: string;
59716
- subject: string;
60512
+ attempts: number;
60513
+ fulfillment_order_id: string;
60514
+ id: string;
60515
+ last_sent_hash: string;
60516
+ order_ref: string;
60517
+ payload: import("../integrations/supabase/types").Json;
60518
+ payload_hash: string;
60519
+ revision: number;
59717
60520
  }[];
59718
60521
  };
59719
- logistics_document_layout: {
59720
- Args: {
59721
- _document_code: string;
59722
- };
59723
- Returns: import("../integrations/supabase/types").Json;
59724
- };
59725
- logistics_document_station: {
60522
+ logistics_floriday_finish_push: {
59726
60523
  Args: {
59727
- _document_code: string;
60524
+ _error?: string;
60525
+ _fulfillment_order_id?: string;
60526
+ _id: string;
60527
+ _max_age_hours?: number;
60528
+ _max_attempts?: number;
60529
+ _ok: boolean;
60530
+ _permanent?: boolean;
60531
+ _revision: number;
60532
+ _sent_hash?: string;
59728
60533
  };
59729
60534
  Returns: string;
59730
60535
  };
59731
- logistics_emit_event: {
59732
- Args: {
59733
- p_event_type: string;
59734
- p_idempotency_key?: string;
59735
- p_order_ref: string;
59736
- p_payload?: import("../integrations/supabase/types").Json;
59737
- p_shadow?: boolean;
59738
- p_source_module: string;
59739
- p_strategy_id?: string;
59740
- };
59741
- Returns: import("../integrations/supabase/types").Json;
59742
- } | {
60536
+ logistics_floriday_prune_pushes: {
59743
60537
  Args: {
59744
- p_event_type: string;
59745
- p_idempotency_key?: string;
59746
- p_order_ref: string;
59747
- p_payload?: import("../integrations/supabase/types").Json;
59748
- p_priority?: number;
59749
- p_shadow?: boolean;
59750
- p_source_module: string;
59751
- p_strategy_id?: string;
60538
+ _days?: number;
59752
60539
  };
59753
- Returns: import("../integrations/supabase/types").Json;
60540
+ Returns: number;
59754
60541
  };
59755
- logistics_fail_task: {
60542
+ logistics_floriday_queue_push: {
59756
60543
  Args: {
59757
- p_error: string;
59758
- p_task_id: string;
59759
- };
59760
- Returns: {
59761
- buffer_ref: string | null;
59762
- claimed_at: string | null;
59763
- claimed_by: string | null;
59764
- completed_at: string | null;
59765
- created_at: string;
59766
- depends_on: string[];
59767
- due_at: string | null;
59768
- error: string | null;
59769
- id: string;
59770
- order_ref: string;
59771
- owner_module: string;
59772
- payload: import("../integrations/supabase/types").Json;
59773
- plan_run_id: string | null;
59774
- planned_end: string | null;
59775
- planned_start: string | null;
59776
- priority: number;
59777
- result: import("../integrations/supabase/types").Json | null;
59778
- rule_config_id: string | null;
59779
- rule_version: number | null;
59780
- sequence: number;
59781
- shadow: boolean;
59782
- started_at: string | null;
59783
- status: string;
59784
- strategy_id: string | null;
59785
- task_type: string;
59786
- updated_at: string;
59787
- user_id: string;
59788
- };
59789
- SetofOptions: {
59790
- from: "*";
59791
- to: "logistics_tasks";
59792
- isOneToOne: true;
59793
- isSetofReturn: false;
60544
+ _order_ref: string;
60545
+ _payload?: import("../integrations/supabase/types").Json;
60546
+ _payload_hash?: string;
59794
60547
  };
60548
+ Returns: string;
59795
60549
  };
59796
60550
  logistics_live_carriers: {
59797
60551
  Args: {
@@ -60520,6 +61274,10 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
60520
61274
  Args: never;
60521
61275
  Returns: undefined;
60522
61276
  };
61277
+ run_logistics_tasks_dispatch: {
61278
+ Args: never;
61279
+ Returns: undefined;
61280
+ };
60523
61281
  run_twinfield_queue_tick: {
60524
61282
  Args: never;
60525
61283
  Returns: undefined;
@@ -60760,6 +61518,13 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
60760
61518
  };
60761
61519
  Returns: number;
60762
61520
  };
61521
+ schedule_floriday_stock_queue_process: {
61522
+ Args: {
61523
+ p_apikey: string;
61524
+ p_url: string;
61525
+ };
61526
+ Returns: number;
61527
+ };
60763
61528
  schedule_floriday_token_refresh: {
60764
61529
  Args: {
60765
61530
  p_apikey: string;
@@ -66672,12 +67437,17 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
66672
67437
  attempts: number;
66673
67438
  connection_id: string;
66674
67439
  created_at: string;
67440
+ desired_available: boolean | null;
66675
67441
  gateway_attempt_id: string | null;
66676
67442
  id: string;
66677
67443
  last_error: string | null;
67444
+ locked_at: string | null;
67445
+ locked_by: string | null;
67446
+ next_attempt_at: string;
66678
67447
  number_of_pieces: number;
66679
67448
  sent_at: string | null;
66680
67449
  status: string;
67450
+ superseded_by: string | null;
66681
67451
  trade_item_id: string;
66682
67452
  updated_at: string;
66683
67453
  user_id: string;
@@ -66686,12 +67456,17 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
66686
67456
  attempts?: number;
66687
67457
  connection_id: string;
66688
67458
  created_at?: string;
67459
+ desired_available?: boolean | null;
66689
67460
  gateway_attempt_id?: string | null;
66690
67461
  id?: string;
66691
67462
  last_error?: string | null;
67463
+ locked_at?: string | null;
67464
+ locked_by?: string | null;
67465
+ next_attempt_at?: string;
66692
67466
  number_of_pieces?: number;
66693
67467
  sent_at?: string | null;
66694
67468
  status?: string;
67469
+ superseded_by?: string | null;
66695
67470
  trade_item_id: string;
66696
67471
  updated_at?: string;
66697
67472
  user_id: string;
@@ -66700,12 +67475,17 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
66700
67475
  attempts?: number;
66701
67476
  connection_id?: string;
66702
67477
  created_at?: string;
67478
+ desired_available?: boolean | null;
66703
67479
  gateway_attempt_id?: string | null;
66704
67480
  id?: string;
66705
67481
  last_error?: string | null;
67482
+ locked_at?: string | null;
67483
+ locked_by?: string | null;
67484
+ next_attempt_at?: string;
66706
67485
  number_of_pieces?: number;
66707
67486
  sent_at?: string | null;
66708
67487
  status?: string;
67488
+ superseded_by?: string | null;
66709
67489
  trade_item_id?: string;
66710
67490
  updated_at?: string;
66711
67491
  user_id?: string;
@@ -69454,6 +70234,69 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
69454
70234
  };
69455
70235
  Relationships: [];
69456
70236
  };
70237
+ logistics_floriday_pushes: {
70238
+ Row: {
70239
+ attempts: number;
70240
+ created_at: string;
70241
+ first_queued_at: string;
70242
+ fulfillment_order_id: string | null;
70243
+ id: string;
70244
+ last_error: string | null;
70245
+ last_error_at: string | null;
70246
+ last_sent_hash: string | null;
70247
+ locked_by: string | null;
70248
+ locked_until: string | null;
70249
+ next_attempt_at: string;
70250
+ order_ref: string;
70251
+ payload: import("../integrations/supabase/types").Json;
70252
+ payload_hash: string | null;
70253
+ revision: number;
70254
+ sent_at: string | null;
70255
+ status: string;
70256
+ updated_at: string;
70257
+ };
70258
+ Insert: {
70259
+ attempts?: number;
70260
+ created_at?: string;
70261
+ first_queued_at?: string;
70262
+ fulfillment_order_id?: string | null;
70263
+ id?: string;
70264
+ last_error?: string | null;
70265
+ last_error_at?: string | null;
70266
+ last_sent_hash?: string | null;
70267
+ locked_by?: string | null;
70268
+ locked_until?: string | null;
70269
+ next_attempt_at?: string;
70270
+ order_ref: string;
70271
+ payload?: import("../integrations/supabase/types").Json;
70272
+ payload_hash?: string | null;
70273
+ revision?: number;
70274
+ sent_at?: string | null;
70275
+ status?: string;
70276
+ updated_at?: string;
70277
+ };
70278
+ Update: {
70279
+ attempts?: number;
70280
+ created_at?: string;
70281
+ first_queued_at?: string;
70282
+ fulfillment_order_id?: string | null;
70283
+ id?: string;
70284
+ last_error?: string | null;
70285
+ last_error_at?: string | null;
70286
+ last_sent_hash?: string | null;
70287
+ locked_by?: string | null;
70288
+ locked_until?: string | null;
70289
+ next_attempt_at?: string;
70290
+ order_ref?: string;
70291
+ payload?: import("../integrations/supabase/types").Json;
70292
+ payload_hash?: string | null;
70293
+ revision?: number;
70294
+ sent_at?: string | null;
70295
+ status?: string;
70296
+ updated_at?: string;
70297
+ };
70298
+ Relationships: [];
70299
+ };
69457
70300
  logistics_formulas: {
69458
70301
  Row: {
69459
70302
  created_at: string;
@@ -70065,6 +70908,8 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
70065
70908
  };
70066
70909
  logistics_tasks: {
70067
70910
  Row: {
70911
+ attempt_log: import("../integrations/supabase/types").Json;
70912
+ attempts: number;
70068
70913
  buffer_ref: string | null;
70069
70914
  claimed_at: string | null;
70070
70915
  claimed_by: string | null;
@@ -70074,6 +70919,8 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
70074
70919
  due_at: string | null;
70075
70920
  error: string | null;
70076
70921
  id: string;
70922
+ last_error: string | null;
70923
+ next_attempt_at: string | null;
70077
70924
  order_ref: string;
70078
70925
  owner_module: string;
70079
70926
  payload: import("../integrations/supabase/types").Json;
@@ -70094,6 +70941,8 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
70094
70941
  user_id: string;
70095
70942
  };
70096
70943
  Insert: {
70944
+ attempt_log?: import("../integrations/supabase/types").Json;
70945
+ attempts?: number;
70097
70946
  buffer_ref?: string | null;
70098
70947
  claimed_at?: string | null;
70099
70948
  claimed_by?: string | null;
@@ -70103,6 +70952,8 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
70103
70952
  due_at?: string | null;
70104
70953
  error?: string | null;
70105
70954
  id?: string;
70955
+ last_error?: string | null;
70956
+ next_attempt_at?: string | null;
70106
70957
  order_ref: string;
70107
70958
  owner_module: string;
70108
70959
  payload?: import("../integrations/supabase/types").Json;
@@ -70123,6 +70974,8 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
70123
70974
  user_id?: string;
70124
70975
  };
70125
70976
  Update: {
70977
+ attempt_log?: import("../integrations/supabase/types").Json;
70978
+ attempts?: number;
70126
70979
  buffer_ref?: string | null;
70127
70980
  claimed_at?: string | null;
70128
70981
  claimed_by?: string | null;
@@ -70132,6 +70985,8 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
70132
70985
  due_at?: string | null;
70133
70986
  error?: string | null;
70134
70987
  id?: string;
70988
+ last_error?: string | null;
70989
+ next_attempt_at?: string | null;
70135
70990
  order_ref?: string;
70136
70991
  owner_module?: string;
70137
70992
  payload?: import("../integrations/supabase/types").Json;
@@ -79136,6 +79991,85 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
79136
79991
  };
79137
79992
  Returns: import("../integrations/supabase/types").Json;
79138
79993
  };
79994
+ claim_floriday_stock_queue: {
79995
+ Args: {
79996
+ p_limit?: number;
79997
+ p_worker?: string;
79998
+ };
79999
+ Returns: {
80000
+ attempts: number;
80001
+ connection_id: string;
80002
+ created_at: string;
80003
+ desired_available: boolean | null;
80004
+ gateway_attempt_id: string | null;
80005
+ id: string;
80006
+ last_error: string | null;
80007
+ locked_at: string | null;
80008
+ locked_by: string | null;
80009
+ next_attempt_at: string;
80010
+ number_of_pieces: number;
80011
+ sent_at: string | null;
80012
+ status: string;
80013
+ superseded_by: string | null;
80014
+ trade_item_id: string;
80015
+ updated_at: string;
80016
+ user_id: string;
80017
+ }[];
80018
+ SetofOptions: {
80019
+ from: "*";
80020
+ to: "floriday_continuous_stock_queue";
80021
+ isOneToOne: false;
80022
+ isSetofReturn: true;
80023
+ };
80024
+ };
80025
+ claim_logistics_tasks: {
80026
+ Args: {
80027
+ _limit?: number;
80028
+ _owner_module: string;
80029
+ _stale_minutes?: number;
80030
+ _task_type: string;
80031
+ _worker: string;
80032
+ };
80033
+ Returns: {
80034
+ attempt_log: import("../integrations/supabase/types").Json;
80035
+ attempts: number;
80036
+ buffer_ref: string | null;
80037
+ claimed_at: string | null;
80038
+ claimed_by: string | null;
80039
+ completed_at: string | null;
80040
+ created_at: string;
80041
+ depends_on: string[];
80042
+ due_at: string | null;
80043
+ error: string | null;
80044
+ id: string;
80045
+ last_error: string | null;
80046
+ next_attempt_at: string | null;
80047
+ order_ref: string;
80048
+ owner_module: string;
80049
+ payload: import("../integrations/supabase/types").Json;
80050
+ plan_run_id: string | null;
80051
+ planned_end: string | null;
80052
+ planned_start: string | null;
80053
+ priority: number;
80054
+ result: import("../integrations/supabase/types").Json | null;
80055
+ rule_config_id: string | null;
80056
+ rule_version: number | null;
80057
+ sequence: number;
80058
+ shadow: boolean;
80059
+ started_at: string | null;
80060
+ status: string;
80061
+ strategy_id: string | null;
80062
+ task_type: string;
80063
+ updated_at: string;
80064
+ user_id: string;
80065
+ }[];
80066
+ SetofOptions: {
80067
+ from: "*";
80068
+ to: "logistics_tasks";
80069
+ isOneToOne: false;
80070
+ isSetofReturn: true;
80071
+ };
80072
+ };
79139
80073
  claim_print_jobs: {
79140
80074
  Args: {
79141
80075
  _agent_id: string;
@@ -79200,10 +80134,24 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
79200
80134
  isSetofReturn: true;
79201
80135
  };
79202
80136
  };
80137
+ cleanup_floriday_stock_queue: {
80138
+ Args: never;
80139
+ Returns: undefined;
80140
+ };
79203
80141
  cleanup_old_bookings: {
79204
80142
  Args: never;
79205
80143
  Returns: undefined;
79206
80144
  };
80145
+ complete_floriday_stock_queue: {
80146
+ Args: {
80147
+ p_attempt_id?: string;
80148
+ p_error?: string;
80149
+ p_id: string;
80150
+ p_ok: boolean;
80151
+ p_permanent?: boolean;
80152
+ };
80153
+ Returns: undefined;
80154
+ };
79207
80155
  consume_bom_for_production: {
79208
80156
  Args: {
79209
80157
  p_connection_id: string;
@@ -79895,6 +80843,8 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
79895
80843
  p_worker?: string;
79896
80844
  };
79897
80845
  Returns: {
80846
+ attempt_log: import("../integrations/supabase/types").Json;
80847
+ attempts: number;
79898
80848
  buffer_ref: string | null;
79899
80849
  claimed_at: string | null;
79900
80850
  claimed_by: string | null;
@@ -79904,6 +80854,8 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
79904
80854
  due_at: string | null;
79905
80855
  error: string | null;
79906
80856
  id: string;
80857
+ last_error: string | null;
80858
+ next_attempt_at: string | null;
79907
80859
  order_ref: string;
79908
80860
  owner_module: string;
79909
80861
  payload: import("../integrations/supabase/types").Json;
@@ -79936,6 +80888,8 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
79936
80888
  p_worker?: string;
79937
80889
  };
79938
80890
  Returns: {
80891
+ attempt_log: import("../integrations/supabase/types").Json;
80892
+ attempts: number;
79939
80893
  buffer_ref: string | null;
79940
80894
  claimed_at: string | null;
79941
80895
  claimed_by: string | null;
@@ -79945,6 +80899,8 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
79945
80899
  due_at: string | null;
79946
80900
  error: string | null;
79947
80901
  id: string;
80902
+ last_error: string | null;
80903
+ next_attempt_at: string | null;
79948
80904
  order_ref: string;
79949
80905
  owner_module: string;
79950
80906
  payload: import("../integrations/supabase/types").Json;
@@ -79977,6 +80933,8 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
79977
80933
  p_task_id: string;
79978
80934
  };
79979
80935
  Returns: {
80936
+ attempt_log: import("../integrations/supabase/types").Json;
80937
+ attempts: number;
79980
80938
  buffer_ref: string | null;
79981
80939
  claimed_at: string | null;
79982
80940
  claimed_by: string | null;
@@ -79986,6 +80944,8 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
79986
80944
  due_at: string | null;
79987
80945
  error: string | null;
79988
80946
  id: string;
80947
+ last_error: string | null;
80948
+ next_attempt_at: string | null;
79989
80949
  order_ref: string;
79990
80950
  owner_module: string;
79991
80951
  payload: import("../integrations/supabase/types").Json;
@@ -80067,6 +81027,8 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
80067
81027
  p_task_id: string;
80068
81028
  };
80069
81029
  Returns: {
81030
+ attempt_log: import("../integrations/supabase/types").Json;
81031
+ attempts: number;
80070
81032
  buffer_ref: string | null;
80071
81033
  claimed_at: string | null;
80072
81034
  claimed_by: string | null;
@@ -80076,6 +81038,8 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
80076
81038
  due_at: string | null;
80077
81039
  error: string | null;
80078
81040
  id: string;
81041
+ last_error: string | null;
81042
+ next_attempt_at: string | null;
80079
81043
  order_ref: string;
80080
81044
  owner_module: string;
80081
81045
  payload: import("../integrations/supabase/types").Json;
@@ -80102,6 +81066,51 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
80102
81066
  isSetofReturn: false;
80103
81067
  };
80104
81068
  };
81069
+ logistics_floriday_claim_pushes: {
81070
+ Args: {
81071
+ _lease_seconds?: number;
81072
+ _limit?: number;
81073
+ _worker?: string;
81074
+ };
81075
+ Returns: {
81076
+ attempts: number;
81077
+ fulfillment_order_id: string;
81078
+ id: string;
81079
+ last_sent_hash: string;
81080
+ order_ref: string;
81081
+ payload: import("../integrations/supabase/types").Json;
81082
+ payload_hash: string;
81083
+ revision: number;
81084
+ }[];
81085
+ };
81086
+ logistics_floriday_finish_push: {
81087
+ Args: {
81088
+ _error?: string;
81089
+ _fulfillment_order_id?: string;
81090
+ _id: string;
81091
+ _max_age_hours?: number;
81092
+ _max_attempts?: number;
81093
+ _ok: boolean;
81094
+ _permanent?: boolean;
81095
+ _revision: number;
81096
+ _sent_hash?: string;
81097
+ };
81098
+ Returns: string;
81099
+ };
81100
+ logistics_floriday_prune_pushes: {
81101
+ Args: {
81102
+ _days?: number;
81103
+ };
81104
+ Returns: number;
81105
+ };
81106
+ logistics_floriday_queue_push: {
81107
+ Args: {
81108
+ _order_ref: string;
81109
+ _payload?: import("../integrations/supabase/types").Json;
81110
+ _payload_hash?: string;
81111
+ };
81112
+ Returns: string;
81113
+ };
80105
81114
  logistics_live_carriers: {
80106
81115
  Args: {
80107
81116
  p_order_ref: string;
@@ -80829,6 +81838,10 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
80829
81838
  Args: never;
80830
81839
  Returns: undefined;
80831
81840
  };
81841
+ run_logistics_tasks_dispatch: {
81842
+ Args: never;
81843
+ Returns: undefined;
81844
+ };
80832
81845
  run_twinfield_queue_tick: {
80833
81846
  Args: never;
80834
81847
  Returns: undefined;
@@ -81069,6 +82082,13 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
81069
82082
  };
81070
82083
  Returns: number;
81071
82084
  };
82085
+ schedule_floriday_stock_queue_process: {
82086
+ Args: {
82087
+ p_apikey: string;
82088
+ p_url: string;
82089
+ };
82090
+ Returns: number;
82091
+ };
81072
82092
  schedule_floriday_token_refresh: {
81073
82093
  Args: {
81074
82094
  p_apikey: string;