@flowselections/floriday-klanten-module 1.0.30 → 1.0.32

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
@@ -5695,12 +5695,17 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
5695
5695
  attempts: number;
5696
5696
  connection_id: string;
5697
5697
  created_at: string;
5698
+ desired_available: boolean | null;
5698
5699
  gateway_attempt_id: string | null;
5699
5700
  id: string;
5700
5701
  last_error: string | null;
5702
+ locked_at: string | null;
5703
+ locked_by: string | null;
5704
+ next_attempt_at: string;
5701
5705
  number_of_pieces: number;
5702
5706
  sent_at: string | null;
5703
5707
  status: string;
5708
+ superseded_by: string | null;
5704
5709
  trade_item_id: string;
5705
5710
  updated_at: string;
5706
5711
  user_id: string;
@@ -5709,12 +5714,17 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
5709
5714
  attempts?: number;
5710
5715
  connection_id: string;
5711
5716
  created_at?: string;
5717
+ desired_available?: boolean | null;
5712
5718
  gateway_attempt_id?: string | null;
5713
5719
  id?: string;
5714
5720
  last_error?: string | null;
5721
+ locked_at?: string | null;
5722
+ locked_by?: string | null;
5723
+ next_attempt_at?: string;
5715
5724
  number_of_pieces?: number;
5716
5725
  sent_at?: string | null;
5717
5726
  status?: string;
5727
+ superseded_by?: string | null;
5718
5728
  trade_item_id: string;
5719
5729
  updated_at?: string;
5720
5730
  user_id: string;
@@ -5723,12 +5733,17 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
5723
5733
  attempts?: number;
5724
5734
  connection_id?: string;
5725
5735
  created_at?: string;
5736
+ desired_available?: boolean | null;
5726
5737
  gateway_attempt_id?: string | null;
5727
5738
  id?: string;
5728
5739
  last_error?: string | null;
5740
+ locked_at?: string | null;
5741
+ locked_by?: string | null;
5742
+ next_attempt_at?: string;
5729
5743
  number_of_pieces?: number;
5730
5744
  sent_at?: string | null;
5731
5745
  status?: string;
5746
+ superseded_by?: string | null;
5732
5747
  trade_item_id?: string;
5733
5748
  updated_at?: string;
5734
5749
  user_id?: string;
@@ -8477,6 +8492,69 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
8477
8492
  };
8478
8493
  Relationships: [];
8479
8494
  };
8495
+ logistics_floriday_pushes: {
8496
+ Row: {
8497
+ attempts: number;
8498
+ created_at: string;
8499
+ first_queued_at: string;
8500
+ fulfillment_order_id: string | null;
8501
+ id: string;
8502
+ last_error: string | null;
8503
+ last_error_at: string | null;
8504
+ last_sent_hash: string | null;
8505
+ locked_by: string | null;
8506
+ locked_until: string | null;
8507
+ next_attempt_at: string;
8508
+ order_ref: string;
8509
+ payload: import("../integrations/supabase/types").Json;
8510
+ payload_hash: string | null;
8511
+ revision: number;
8512
+ sent_at: string | null;
8513
+ status: string;
8514
+ updated_at: string;
8515
+ };
8516
+ Insert: {
8517
+ attempts?: number;
8518
+ created_at?: string;
8519
+ first_queued_at?: string;
8520
+ fulfillment_order_id?: string | null;
8521
+ id?: string;
8522
+ last_error?: string | null;
8523
+ last_error_at?: string | null;
8524
+ last_sent_hash?: string | null;
8525
+ locked_by?: string | null;
8526
+ locked_until?: string | null;
8527
+ next_attempt_at?: string;
8528
+ order_ref: string;
8529
+ payload?: import("../integrations/supabase/types").Json;
8530
+ payload_hash?: string | null;
8531
+ revision?: number;
8532
+ sent_at?: string | null;
8533
+ status?: string;
8534
+ updated_at?: string;
8535
+ };
8536
+ Update: {
8537
+ attempts?: number;
8538
+ created_at?: string;
8539
+ first_queued_at?: string;
8540
+ fulfillment_order_id?: string | null;
8541
+ id?: string;
8542
+ last_error?: string | null;
8543
+ last_error_at?: string | null;
8544
+ last_sent_hash?: string | null;
8545
+ locked_by?: string | null;
8546
+ locked_until?: string | null;
8547
+ next_attempt_at?: string;
8548
+ order_ref?: string;
8549
+ payload?: import("../integrations/supabase/types").Json;
8550
+ payload_hash?: string | null;
8551
+ revision?: number;
8552
+ sent_at?: string | null;
8553
+ status?: string;
8554
+ updated_at?: string;
8555
+ };
8556
+ Relationships: [];
8557
+ };
8480
8558
  logistics_formulas: {
8481
8559
  Row: {
8482
8560
  created_at: string;
@@ -9088,6 +9166,8 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
9088
9166
  };
9089
9167
  logistics_tasks: {
9090
9168
  Row: {
9169
+ attempt_log: import("../integrations/supabase/types").Json;
9170
+ attempts: number;
9091
9171
  buffer_ref: string | null;
9092
9172
  claimed_at: string | null;
9093
9173
  claimed_by: string | null;
@@ -9097,6 +9177,8 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
9097
9177
  due_at: string | null;
9098
9178
  error: string | null;
9099
9179
  id: string;
9180
+ last_error: string | null;
9181
+ next_attempt_at: string | null;
9100
9182
  order_ref: string;
9101
9183
  owner_module: string;
9102
9184
  payload: import("../integrations/supabase/types").Json;
@@ -9117,6 +9199,8 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
9117
9199
  user_id: string;
9118
9200
  };
9119
9201
  Insert: {
9202
+ attempt_log?: import("../integrations/supabase/types").Json;
9203
+ attempts?: number;
9120
9204
  buffer_ref?: string | null;
9121
9205
  claimed_at?: string | null;
9122
9206
  claimed_by?: string | null;
@@ -9126,6 +9210,8 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
9126
9210
  due_at?: string | null;
9127
9211
  error?: string | null;
9128
9212
  id?: string;
9213
+ last_error?: string | null;
9214
+ next_attempt_at?: string | null;
9129
9215
  order_ref: string;
9130
9216
  owner_module: string;
9131
9217
  payload?: import("../integrations/supabase/types").Json;
@@ -9146,6 +9232,8 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
9146
9232
  user_id?: string;
9147
9233
  };
9148
9234
  Update: {
9235
+ attempt_log?: import("../integrations/supabase/types").Json;
9236
+ attempts?: number;
9149
9237
  buffer_ref?: string | null;
9150
9238
  claimed_at?: string | null;
9151
9239
  claimed_by?: string | null;
@@ -9155,6 +9243,8 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
9155
9243
  due_at?: string | null;
9156
9244
  error?: string | null;
9157
9245
  id?: string;
9246
+ last_error?: string | null;
9247
+ next_attempt_at?: string | null;
9158
9248
  order_ref?: string;
9159
9249
  owner_module?: string;
9160
9250
  payload?: import("../integrations/supabase/types").Json;
@@ -18159,6 +18249,85 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
18159
18249
  };
18160
18250
  Returns: import("../integrations/supabase/types").Json;
18161
18251
  };
18252
+ claim_floriday_stock_queue: {
18253
+ Args: {
18254
+ p_limit?: number;
18255
+ p_worker?: string;
18256
+ };
18257
+ Returns: {
18258
+ attempts: number;
18259
+ connection_id: string;
18260
+ created_at: string;
18261
+ desired_available: boolean | null;
18262
+ gateway_attempt_id: string | null;
18263
+ id: string;
18264
+ last_error: string | null;
18265
+ locked_at: string | null;
18266
+ locked_by: string | null;
18267
+ next_attempt_at: string;
18268
+ number_of_pieces: number;
18269
+ sent_at: string | null;
18270
+ status: string;
18271
+ superseded_by: string | null;
18272
+ trade_item_id: string;
18273
+ updated_at: string;
18274
+ user_id: string;
18275
+ }[];
18276
+ SetofOptions: {
18277
+ from: "*";
18278
+ to: "floriday_continuous_stock_queue";
18279
+ isOneToOne: false;
18280
+ isSetofReturn: true;
18281
+ };
18282
+ };
18283
+ claim_logistics_tasks: {
18284
+ Args: {
18285
+ _limit?: number;
18286
+ _owner_module: string;
18287
+ _stale_minutes?: number;
18288
+ _task_type: string;
18289
+ _worker: string;
18290
+ };
18291
+ Returns: {
18292
+ attempt_log: import("../integrations/supabase/types").Json;
18293
+ attempts: number;
18294
+ buffer_ref: string | null;
18295
+ claimed_at: string | null;
18296
+ claimed_by: string | null;
18297
+ completed_at: string | null;
18298
+ created_at: string;
18299
+ depends_on: string[];
18300
+ due_at: string | null;
18301
+ error: string | null;
18302
+ id: string;
18303
+ last_error: string | null;
18304
+ next_attempt_at: string | null;
18305
+ order_ref: string;
18306
+ owner_module: string;
18307
+ payload: import("../integrations/supabase/types").Json;
18308
+ plan_run_id: string | null;
18309
+ planned_end: string | null;
18310
+ planned_start: string | null;
18311
+ priority: number;
18312
+ result: import("../integrations/supabase/types").Json | null;
18313
+ rule_config_id: string | null;
18314
+ rule_version: number | null;
18315
+ sequence: number;
18316
+ shadow: boolean;
18317
+ started_at: string | null;
18318
+ status: string;
18319
+ strategy_id: string | null;
18320
+ task_type: string;
18321
+ updated_at: string;
18322
+ user_id: string;
18323
+ }[];
18324
+ SetofOptions: {
18325
+ from: "*";
18326
+ to: "logistics_tasks";
18327
+ isOneToOne: false;
18328
+ isSetofReturn: true;
18329
+ };
18330
+ };
18162
18331
  claim_print_jobs: {
18163
18332
  Args: {
18164
18333
  _agent_id: string;
@@ -18223,10 +18392,24 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
18223
18392
  isSetofReturn: true;
18224
18393
  };
18225
18394
  };
18395
+ cleanup_floriday_stock_queue: {
18396
+ Args: never;
18397
+ Returns: undefined;
18398
+ };
18226
18399
  cleanup_old_bookings: {
18227
18400
  Args: never;
18228
18401
  Returns: undefined;
18229
18402
  };
18403
+ complete_floriday_stock_queue: {
18404
+ Args: {
18405
+ p_attempt_id?: string;
18406
+ p_error?: string;
18407
+ p_id: string;
18408
+ p_ok: boolean;
18409
+ p_permanent?: boolean;
18410
+ };
18411
+ Returns: undefined;
18412
+ };
18230
18413
  consume_bom_for_production: {
18231
18414
  Args: {
18232
18415
  p_connection_id: string;
@@ -18918,6 +19101,8 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
18918
19101
  p_worker?: string;
18919
19102
  };
18920
19103
  Returns: {
19104
+ attempt_log: import("../integrations/supabase/types").Json;
19105
+ attempts: number;
18921
19106
  buffer_ref: string | null;
18922
19107
  claimed_at: string | null;
18923
19108
  claimed_by: string | null;
@@ -18927,6 +19112,8 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
18927
19112
  due_at: string | null;
18928
19113
  error: string | null;
18929
19114
  id: string;
19115
+ last_error: string | null;
19116
+ next_attempt_at: string | null;
18930
19117
  order_ref: string;
18931
19118
  owner_module: string;
18932
19119
  payload: import("../integrations/supabase/types").Json;
@@ -18959,6 +19146,8 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
18959
19146
  p_worker?: string;
18960
19147
  };
18961
19148
  Returns: {
19149
+ attempt_log: import("../integrations/supabase/types").Json;
19150
+ attempts: number;
18962
19151
  buffer_ref: string | null;
18963
19152
  claimed_at: string | null;
18964
19153
  claimed_by: string | null;
@@ -18968,6 +19157,8 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
18968
19157
  due_at: string | null;
18969
19158
  error: string | null;
18970
19159
  id: string;
19160
+ last_error: string | null;
19161
+ next_attempt_at: string | null;
18971
19162
  order_ref: string;
18972
19163
  owner_module: string;
18973
19164
  payload: import("../integrations/supabase/types").Json;
@@ -19000,6 +19191,8 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
19000
19191
  p_task_id: string;
19001
19192
  };
19002
19193
  Returns: {
19194
+ attempt_log: import("../integrations/supabase/types").Json;
19195
+ attempts: number;
19003
19196
  buffer_ref: string | null;
19004
19197
  claimed_at: string | null;
19005
19198
  claimed_by: string | null;
@@ -19009,6 +19202,8 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
19009
19202
  due_at: string | null;
19010
19203
  error: string | null;
19011
19204
  id: string;
19205
+ last_error: string | null;
19206
+ next_attempt_at: string | null;
19012
19207
  order_ref: string;
19013
19208
  owner_module: string;
19014
19209
  payload: import("../integrations/supabase/types").Json;
@@ -19090,6 +19285,8 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
19090
19285
  p_task_id: string;
19091
19286
  };
19092
19287
  Returns: {
19288
+ attempt_log: import("../integrations/supabase/types").Json;
19289
+ attempts: number;
19093
19290
  buffer_ref: string | null;
19094
19291
  claimed_at: string | null;
19095
19292
  claimed_by: string | null;
@@ -19099,6 +19296,8 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
19099
19296
  due_at: string | null;
19100
19297
  error: string | null;
19101
19298
  id: string;
19299
+ last_error: string | null;
19300
+ next_attempt_at: string | null;
19102
19301
  order_ref: string;
19103
19302
  owner_module: string;
19104
19303
  payload: import("../integrations/supabase/types").Json;
@@ -19125,6 +19324,51 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
19125
19324
  isSetofReturn: false;
19126
19325
  };
19127
19326
  };
19327
+ logistics_floriday_claim_pushes: {
19328
+ Args: {
19329
+ _lease_seconds?: number;
19330
+ _limit?: number;
19331
+ _worker?: string;
19332
+ };
19333
+ Returns: {
19334
+ attempts: number;
19335
+ fulfillment_order_id: string;
19336
+ id: string;
19337
+ last_sent_hash: string;
19338
+ order_ref: string;
19339
+ payload: import("../integrations/supabase/types").Json;
19340
+ payload_hash: string;
19341
+ revision: number;
19342
+ }[];
19343
+ };
19344
+ logistics_floriday_finish_push: {
19345
+ Args: {
19346
+ _error?: string;
19347
+ _fulfillment_order_id?: string;
19348
+ _id: string;
19349
+ _max_age_hours?: number;
19350
+ _max_attempts?: number;
19351
+ _ok: boolean;
19352
+ _permanent?: boolean;
19353
+ _revision: number;
19354
+ _sent_hash?: string;
19355
+ };
19356
+ Returns: string;
19357
+ };
19358
+ logistics_floriday_prune_pushes: {
19359
+ Args: {
19360
+ _days?: number;
19361
+ };
19362
+ Returns: number;
19363
+ };
19364
+ logistics_floriday_queue_push: {
19365
+ Args: {
19366
+ _order_ref: string;
19367
+ _payload?: import("../integrations/supabase/types").Json;
19368
+ _payload_hash?: string;
19369
+ };
19370
+ Returns: string;
19371
+ };
19128
19372
  logistics_live_carriers: {
19129
19373
  Args: {
19130
19374
  p_order_ref: string;
@@ -19852,6 +20096,10 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
19852
20096
  Args: never;
19853
20097
  Returns: undefined;
19854
20098
  };
20099
+ run_logistics_tasks_dispatch: {
20100
+ Args: never;
20101
+ Returns: undefined;
20102
+ };
19855
20103
  run_twinfield_queue_tick: {
19856
20104
  Args: never;
19857
20105
  Returns: undefined;
@@ -20092,6 +20340,13 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
20092
20340
  };
20093
20341
  Returns: number;
20094
20342
  };
20343
+ schedule_floriday_stock_queue_process: {
20344
+ Args: {
20345
+ p_apikey: string;
20346
+ p_url: string;
20347
+ };
20348
+ Returns: number;
20349
+ };
20095
20350
  schedule_floriday_token_refresh: {
20096
20351
  Args: {
20097
20352
  p_apikey: string;
@@ -25999,12 +26254,17 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
25999
26254
  attempts: number;
26000
26255
  connection_id: string;
26001
26256
  created_at: string;
26257
+ desired_available: boolean | null;
26002
26258
  gateway_attempt_id: string | null;
26003
26259
  id: string;
26004
26260
  last_error: string | null;
26261
+ locked_at: string | null;
26262
+ locked_by: string | null;
26263
+ next_attempt_at: string;
26005
26264
  number_of_pieces: number;
26006
26265
  sent_at: string | null;
26007
26266
  status: string;
26267
+ superseded_by: string | null;
26008
26268
  trade_item_id: string;
26009
26269
  updated_at: string;
26010
26270
  user_id: string;
@@ -26013,12 +26273,17 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
26013
26273
  attempts?: number;
26014
26274
  connection_id: string;
26015
26275
  created_at?: string;
26276
+ desired_available?: boolean | null;
26016
26277
  gateway_attempt_id?: string | null;
26017
26278
  id?: string;
26018
26279
  last_error?: string | null;
26280
+ locked_at?: string | null;
26281
+ locked_by?: string | null;
26282
+ next_attempt_at?: string;
26019
26283
  number_of_pieces?: number;
26020
26284
  sent_at?: string | null;
26021
26285
  status?: string;
26286
+ superseded_by?: string | null;
26022
26287
  trade_item_id: string;
26023
26288
  updated_at?: string;
26024
26289
  user_id: string;
@@ -26027,12 +26292,17 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
26027
26292
  attempts?: number;
26028
26293
  connection_id?: string;
26029
26294
  created_at?: string;
26295
+ desired_available?: boolean | null;
26030
26296
  gateway_attempt_id?: string | null;
26031
26297
  id?: string;
26032
26298
  last_error?: string | null;
26299
+ locked_at?: string | null;
26300
+ locked_by?: string | null;
26301
+ next_attempt_at?: string;
26033
26302
  number_of_pieces?: number;
26034
26303
  sent_at?: string | null;
26035
26304
  status?: string;
26305
+ superseded_by?: string | null;
26036
26306
  trade_item_id?: string;
26037
26307
  updated_at?: string;
26038
26308
  user_id?: string;
@@ -28781,6 +29051,69 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
28781
29051
  };
28782
29052
  Relationships: [];
28783
29053
  };
29054
+ logistics_floriday_pushes: {
29055
+ Row: {
29056
+ attempts: number;
29057
+ created_at: string;
29058
+ first_queued_at: string;
29059
+ fulfillment_order_id: string | null;
29060
+ id: string;
29061
+ last_error: string | null;
29062
+ last_error_at: string | null;
29063
+ last_sent_hash: string | null;
29064
+ locked_by: string | null;
29065
+ locked_until: string | null;
29066
+ next_attempt_at: string;
29067
+ order_ref: string;
29068
+ payload: import("../integrations/supabase/types").Json;
29069
+ payload_hash: string | null;
29070
+ revision: number;
29071
+ sent_at: string | null;
29072
+ status: string;
29073
+ updated_at: string;
29074
+ };
29075
+ Insert: {
29076
+ attempts?: number;
29077
+ created_at?: string;
29078
+ first_queued_at?: string;
29079
+ fulfillment_order_id?: string | null;
29080
+ id?: string;
29081
+ last_error?: string | null;
29082
+ last_error_at?: string | null;
29083
+ last_sent_hash?: string | null;
29084
+ locked_by?: string | null;
29085
+ locked_until?: string | null;
29086
+ next_attempt_at?: string;
29087
+ order_ref: string;
29088
+ payload?: import("../integrations/supabase/types").Json;
29089
+ payload_hash?: string | null;
29090
+ revision?: number;
29091
+ sent_at?: string | null;
29092
+ status?: string;
29093
+ updated_at?: string;
29094
+ };
29095
+ Update: {
29096
+ attempts?: number;
29097
+ created_at?: string;
29098
+ first_queued_at?: string;
29099
+ fulfillment_order_id?: string | null;
29100
+ id?: string;
29101
+ last_error?: string | null;
29102
+ last_error_at?: string | null;
29103
+ last_sent_hash?: string | null;
29104
+ locked_by?: string | null;
29105
+ locked_until?: string | null;
29106
+ next_attempt_at?: string;
29107
+ order_ref?: string;
29108
+ payload?: import("../integrations/supabase/types").Json;
29109
+ payload_hash?: string | null;
29110
+ revision?: number;
29111
+ sent_at?: string | null;
29112
+ status?: string;
29113
+ updated_at?: string;
29114
+ };
29115
+ Relationships: [];
29116
+ };
28784
29117
  logistics_formulas: {
28785
29118
  Row: {
28786
29119
  created_at: string;
@@ -29392,6 +29725,8 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
29392
29725
  };
29393
29726
  logistics_tasks: {
29394
29727
  Row: {
29728
+ attempt_log: import("../integrations/supabase/types").Json;
29729
+ attempts: number;
29395
29730
  buffer_ref: string | null;
29396
29731
  claimed_at: string | null;
29397
29732
  claimed_by: string | null;
@@ -29401,6 +29736,8 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
29401
29736
  due_at: string | null;
29402
29737
  error: string | null;
29403
29738
  id: string;
29739
+ last_error: string | null;
29740
+ next_attempt_at: string | null;
29404
29741
  order_ref: string;
29405
29742
  owner_module: string;
29406
29743
  payload: import("../integrations/supabase/types").Json;
@@ -29421,6 +29758,8 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
29421
29758
  user_id: string;
29422
29759
  };
29423
29760
  Insert: {
29761
+ attempt_log?: import("../integrations/supabase/types").Json;
29762
+ attempts?: number;
29424
29763
  buffer_ref?: string | null;
29425
29764
  claimed_at?: string | null;
29426
29765
  claimed_by?: string | null;
@@ -29430,6 +29769,8 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
29430
29769
  due_at?: string | null;
29431
29770
  error?: string | null;
29432
29771
  id?: string;
29772
+ last_error?: string | null;
29773
+ next_attempt_at?: string | null;
29433
29774
  order_ref: string;
29434
29775
  owner_module: string;
29435
29776
  payload?: import("../integrations/supabase/types").Json;
@@ -29450,6 +29791,8 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
29450
29791
  user_id?: string;
29451
29792
  };
29452
29793
  Update: {
29794
+ attempt_log?: import("../integrations/supabase/types").Json;
29795
+ attempts?: number;
29453
29796
  buffer_ref?: string | null;
29454
29797
  claimed_at?: string | null;
29455
29798
  claimed_by?: string | null;
@@ -29459,6 +29802,8 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
29459
29802
  due_at?: string | null;
29460
29803
  error?: string | null;
29461
29804
  id?: string;
29805
+ last_error?: string | null;
29806
+ next_attempt_at?: string | null;
29462
29807
  order_ref?: string;
29463
29808
  owner_module?: string;
29464
29809
  payload?: import("../integrations/supabase/types").Json;
@@ -38463,6 +38808,85 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
38463
38808
  };
38464
38809
  Returns: import("../integrations/supabase/types").Json;
38465
38810
  };
38811
+ claim_floriday_stock_queue: {
38812
+ Args: {
38813
+ p_limit?: number;
38814
+ p_worker?: string;
38815
+ };
38816
+ Returns: {
38817
+ attempts: number;
38818
+ connection_id: string;
38819
+ created_at: string;
38820
+ desired_available: boolean | null;
38821
+ gateway_attempt_id: string | null;
38822
+ id: string;
38823
+ last_error: string | null;
38824
+ locked_at: string | null;
38825
+ locked_by: string | null;
38826
+ next_attempt_at: string;
38827
+ number_of_pieces: number;
38828
+ sent_at: string | null;
38829
+ status: string;
38830
+ superseded_by: string | null;
38831
+ trade_item_id: string;
38832
+ updated_at: string;
38833
+ user_id: string;
38834
+ }[];
38835
+ SetofOptions: {
38836
+ from: "*";
38837
+ to: "floriday_continuous_stock_queue";
38838
+ isOneToOne: false;
38839
+ isSetofReturn: true;
38840
+ };
38841
+ };
38842
+ claim_logistics_tasks: {
38843
+ Args: {
38844
+ _limit?: number;
38845
+ _owner_module: string;
38846
+ _stale_minutes?: number;
38847
+ _task_type: string;
38848
+ _worker: string;
38849
+ };
38850
+ Returns: {
38851
+ attempt_log: import("../integrations/supabase/types").Json;
38852
+ attempts: number;
38853
+ buffer_ref: string | null;
38854
+ claimed_at: string | null;
38855
+ claimed_by: string | null;
38856
+ completed_at: string | null;
38857
+ created_at: string;
38858
+ depends_on: string[];
38859
+ due_at: string | null;
38860
+ error: string | null;
38861
+ id: string;
38862
+ last_error: string | null;
38863
+ next_attempt_at: string | null;
38864
+ order_ref: string;
38865
+ owner_module: string;
38866
+ payload: import("../integrations/supabase/types").Json;
38867
+ plan_run_id: string | null;
38868
+ planned_end: string | null;
38869
+ planned_start: string | null;
38870
+ priority: number;
38871
+ result: import("../integrations/supabase/types").Json | null;
38872
+ rule_config_id: string | null;
38873
+ rule_version: number | null;
38874
+ sequence: number;
38875
+ shadow: boolean;
38876
+ started_at: string | null;
38877
+ status: string;
38878
+ strategy_id: string | null;
38879
+ task_type: string;
38880
+ updated_at: string;
38881
+ user_id: string;
38882
+ }[];
38883
+ SetofOptions: {
38884
+ from: "*";
38885
+ to: "logistics_tasks";
38886
+ isOneToOne: false;
38887
+ isSetofReturn: true;
38888
+ };
38889
+ };
38466
38890
  claim_print_jobs: {
38467
38891
  Args: {
38468
38892
  _agent_id: string;
@@ -38527,10 +38951,24 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
38527
38951
  isSetofReturn: true;
38528
38952
  };
38529
38953
  };
38954
+ cleanup_floriday_stock_queue: {
38955
+ Args: never;
38956
+ Returns: undefined;
38957
+ };
38530
38958
  cleanup_old_bookings: {
38531
38959
  Args: never;
38532
38960
  Returns: undefined;
38533
38961
  };
38962
+ complete_floriday_stock_queue: {
38963
+ Args: {
38964
+ p_attempt_id?: string;
38965
+ p_error?: string;
38966
+ p_id: string;
38967
+ p_ok: boolean;
38968
+ p_permanent?: boolean;
38969
+ };
38970
+ Returns: undefined;
38971
+ };
38534
38972
  consume_bom_for_production: {
38535
38973
  Args: {
38536
38974
  p_connection_id: string;
@@ -39222,6 +39660,8 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
39222
39660
  p_worker?: string;
39223
39661
  };
39224
39662
  Returns: {
39663
+ attempt_log: import("../integrations/supabase/types").Json;
39664
+ attempts: number;
39225
39665
  buffer_ref: string | null;
39226
39666
  claimed_at: string | null;
39227
39667
  claimed_by: string | null;
@@ -39231,6 +39671,8 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
39231
39671
  due_at: string | null;
39232
39672
  error: string | null;
39233
39673
  id: string;
39674
+ last_error: string | null;
39675
+ next_attempt_at: string | null;
39234
39676
  order_ref: string;
39235
39677
  owner_module: string;
39236
39678
  payload: import("../integrations/supabase/types").Json;
@@ -39263,6 +39705,8 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
39263
39705
  p_worker?: string;
39264
39706
  };
39265
39707
  Returns: {
39708
+ attempt_log: import("../integrations/supabase/types").Json;
39709
+ attempts: number;
39266
39710
  buffer_ref: string | null;
39267
39711
  claimed_at: string | null;
39268
39712
  claimed_by: string | null;
@@ -39272,6 +39716,8 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
39272
39716
  due_at: string | null;
39273
39717
  error: string | null;
39274
39718
  id: string;
39719
+ last_error: string | null;
39720
+ next_attempt_at: string | null;
39275
39721
  order_ref: string;
39276
39722
  owner_module: string;
39277
39723
  payload: import("../integrations/supabase/types").Json;
@@ -39304,6 +39750,8 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
39304
39750
  p_task_id: string;
39305
39751
  };
39306
39752
  Returns: {
39753
+ attempt_log: import("../integrations/supabase/types").Json;
39754
+ attempts: number;
39307
39755
  buffer_ref: string | null;
39308
39756
  claimed_at: string | null;
39309
39757
  claimed_by: string | null;
@@ -39313,6 +39761,8 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
39313
39761
  due_at: string | null;
39314
39762
  error: string | null;
39315
39763
  id: string;
39764
+ last_error: string | null;
39765
+ next_attempt_at: string | null;
39316
39766
  order_ref: string;
39317
39767
  owner_module: string;
39318
39768
  payload: import("../integrations/supabase/types").Json;
@@ -39394,6 +39844,8 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
39394
39844
  p_task_id: string;
39395
39845
  };
39396
39846
  Returns: {
39847
+ attempt_log: import("../integrations/supabase/types").Json;
39848
+ attempts: number;
39397
39849
  buffer_ref: string | null;
39398
39850
  claimed_at: string | null;
39399
39851
  claimed_by: string | null;
@@ -39403,6 +39855,8 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
39403
39855
  due_at: string | null;
39404
39856
  error: string | null;
39405
39857
  id: string;
39858
+ last_error: string | null;
39859
+ next_attempt_at: string | null;
39406
39860
  order_ref: string;
39407
39861
  owner_module: string;
39408
39862
  payload: import("../integrations/supabase/types").Json;
@@ -39429,6 +39883,51 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
39429
39883
  isSetofReturn: false;
39430
39884
  };
39431
39885
  };
39886
+ logistics_floriday_claim_pushes: {
39887
+ Args: {
39888
+ _lease_seconds?: number;
39889
+ _limit?: number;
39890
+ _worker?: string;
39891
+ };
39892
+ Returns: {
39893
+ attempts: number;
39894
+ fulfillment_order_id: string;
39895
+ id: string;
39896
+ last_sent_hash: string;
39897
+ order_ref: string;
39898
+ payload: import("../integrations/supabase/types").Json;
39899
+ payload_hash: string;
39900
+ revision: number;
39901
+ }[];
39902
+ };
39903
+ logistics_floriday_finish_push: {
39904
+ Args: {
39905
+ _error?: string;
39906
+ _fulfillment_order_id?: string;
39907
+ _id: string;
39908
+ _max_age_hours?: number;
39909
+ _max_attempts?: number;
39910
+ _ok: boolean;
39911
+ _permanent?: boolean;
39912
+ _revision: number;
39913
+ _sent_hash?: string;
39914
+ };
39915
+ Returns: string;
39916
+ };
39917
+ logistics_floriday_prune_pushes: {
39918
+ Args: {
39919
+ _days?: number;
39920
+ };
39921
+ Returns: number;
39922
+ };
39923
+ logistics_floriday_queue_push: {
39924
+ Args: {
39925
+ _order_ref: string;
39926
+ _payload?: import("../integrations/supabase/types").Json;
39927
+ _payload_hash?: string;
39928
+ };
39929
+ Returns: string;
39930
+ };
39432
39931
  logistics_live_carriers: {
39433
39932
  Args: {
39434
39933
  p_order_ref: string;
@@ -40156,6 +40655,10 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
40156
40655
  Args: never;
40157
40656
  Returns: undefined;
40158
40657
  };
40658
+ run_logistics_tasks_dispatch: {
40659
+ Args: never;
40660
+ Returns: undefined;
40661
+ };
40159
40662
  run_twinfield_queue_tick: {
40160
40663
  Args: never;
40161
40664
  Returns: undefined;
@@ -40396,6 +40899,13 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
40396
40899
  };
40397
40900
  Returns: number;
40398
40901
  };
40902
+ schedule_floriday_stock_queue_process: {
40903
+ Args: {
40904
+ p_apikey: string;
40905
+ p_url: string;
40906
+ };
40907
+ Returns: number;
40908
+ };
40399
40909
  schedule_floriday_token_refresh: {
40400
40910
  Args: {
40401
40911
  p_apikey: string;
@@ -46303,12 +46813,17 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
46303
46813
  attempts: number;
46304
46814
  connection_id: string;
46305
46815
  created_at: string;
46816
+ desired_available: boolean | null;
46306
46817
  gateway_attempt_id: string | null;
46307
46818
  id: string;
46308
46819
  last_error: string | null;
46820
+ locked_at: string | null;
46821
+ locked_by: string | null;
46822
+ next_attempt_at: string;
46309
46823
  number_of_pieces: number;
46310
46824
  sent_at: string | null;
46311
46825
  status: string;
46826
+ superseded_by: string | null;
46312
46827
  trade_item_id: string;
46313
46828
  updated_at: string;
46314
46829
  user_id: string;
@@ -46317,12 +46832,17 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
46317
46832
  attempts?: number;
46318
46833
  connection_id: string;
46319
46834
  created_at?: string;
46835
+ desired_available?: boolean | null;
46320
46836
  gateway_attempt_id?: string | null;
46321
46837
  id?: string;
46322
46838
  last_error?: string | null;
46839
+ locked_at?: string | null;
46840
+ locked_by?: string | null;
46841
+ next_attempt_at?: string;
46323
46842
  number_of_pieces?: number;
46324
46843
  sent_at?: string | null;
46325
46844
  status?: string;
46845
+ superseded_by?: string | null;
46326
46846
  trade_item_id: string;
46327
46847
  updated_at?: string;
46328
46848
  user_id: string;
@@ -46331,12 +46851,17 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
46331
46851
  attempts?: number;
46332
46852
  connection_id?: string;
46333
46853
  created_at?: string;
46854
+ desired_available?: boolean | null;
46334
46855
  gateway_attempt_id?: string | null;
46335
46856
  id?: string;
46336
46857
  last_error?: string | null;
46858
+ locked_at?: string | null;
46859
+ locked_by?: string | null;
46860
+ next_attempt_at?: string;
46337
46861
  number_of_pieces?: number;
46338
46862
  sent_at?: string | null;
46339
46863
  status?: string;
46864
+ superseded_by?: string | null;
46340
46865
  trade_item_id?: string;
46341
46866
  updated_at?: string;
46342
46867
  user_id?: string;
@@ -49085,6 +49610,69 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
49085
49610
  };
49086
49611
  Relationships: [];
49087
49612
  };
49613
+ logistics_floriday_pushes: {
49614
+ Row: {
49615
+ attempts: number;
49616
+ created_at: string;
49617
+ first_queued_at: string;
49618
+ fulfillment_order_id: string | null;
49619
+ id: string;
49620
+ last_error: string | null;
49621
+ last_error_at: string | null;
49622
+ last_sent_hash: string | null;
49623
+ locked_by: string | null;
49624
+ locked_until: string | null;
49625
+ next_attempt_at: string;
49626
+ order_ref: string;
49627
+ payload: import("../integrations/supabase/types").Json;
49628
+ payload_hash: string | null;
49629
+ revision: number;
49630
+ sent_at: string | null;
49631
+ status: string;
49632
+ updated_at: string;
49633
+ };
49634
+ Insert: {
49635
+ attempts?: number;
49636
+ created_at?: string;
49637
+ first_queued_at?: string;
49638
+ fulfillment_order_id?: string | null;
49639
+ id?: string;
49640
+ last_error?: string | null;
49641
+ last_error_at?: string | null;
49642
+ last_sent_hash?: string | null;
49643
+ locked_by?: string | null;
49644
+ locked_until?: string | null;
49645
+ next_attempt_at?: string;
49646
+ order_ref: string;
49647
+ payload?: import("../integrations/supabase/types").Json;
49648
+ payload_hash?: string | null;
49649
+ revision?: number;
49650
+ sent_at?: string | null;
49651
+ status?: string;
49652
+ updated_at?: string;
49653
+ };
49654
+ Update: {
49655
+ attempts?: number;
49656
+ created_at?: string;
49657
+ first_queued_at?: string;
49658
+ fulfillment_order_id?: string | null;
49659
+ id?: string;
49660
+ last_error?: string | null;
49661
+ last_error_at?: string | null;
49662
+ last_sent_hash?: string | null;
49663
+ locked_by?: string | null;
49664
+ locked_until?: string | null;
49665
+ next_attempt_at?: string;
49666
+ order_ref?: string;
49667
+ payload?: import("../integrations/supabase/types").Json;
49668
+ payload_hash?: string | null;
49669
+ revision?: number;
49670
+ sent_at?: string | null;
49671
+ status?: string;
49672
+ updated_at?: string;
49673
+ };
49674
+ Relationships: [];
49675
+ };
49088
49676
  logistics_formulas: {
49089
49677
  Row: {
49090
49678
  created_at: string;
@@ -49696,6 +50284,8 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
49696
50284
  };
49697
50285
  logistics_tasks: {
49698
50286
  Row: {
50287
+ attempt_log: import("../integrations/supabase/types").Json;
50288
+ attempts: number;
49699
50289
  buffer_ref: string | null;
49700
50290
  claimed_at: string | null;
49701
50291
  claimed_by: string | null;
@@ -49705,6 +50295,8 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
49705
50295
  due_at: string | null;
49706
50296
  error: string | null;
49707
50297
  id: string;
50298
+ last_error: string | null;
50299
+ next_attempt_at: string | null;
49708
50300
  order_ref: string;
49709
50301
  owner_module: string;
49710
50302
  payload: import("../integrations/supabase/types").Json;
@@ -49725,6 +50317,8 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
49725
50317
  user_id: string;
49726
50318
  };
49727
50319
  Insert: {
50320
+ attempt_log?: import("../integrations/supabase/types").Json;
50321
+ attempts?: number;
49728
50322
  buffer_ref?: string | null;
49729
50323
  claimed_at?: string | null;
49730
50324
  claimed_by?: string | null;
@@ -49734,6 +50328,8 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
49734
50328
  due_at?: string | null;
49735
50329
  error?: string | null;
49736
50330
  id?: string;
50331
+ last_error?: string | null;
50332
+ next_attempt_at?: string | null;
49737
50333
  order_ref: string;
49738
50334
  owner_module: string;
49739
50335
  payload?: import("../integrations/supabase/types").Json;
@@ -49754,6 +50350,8 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
49754
50350
  user_id?: string;
49755
50351
  };
49756
50352
  Update: {
50353
+ attempt_log?: import("../integrations/supabase/types").Json;
50354
+ attempts?: number;
49757
50355
  buffer_ref?: string | null;
49758
50356
  claimed_at?: string | null;
49759
50357
  claimed_by?: string | null;
@@ -49763,6 +50361,8 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
49763
50361
  due_at?: string | null;
49764
50362
  error?: string | null;
49765
50363
  id?: string;
50364
+ last_error?: string | null;
50365
+ next_attempt_at?: string | null;
49766
50366
  order_ref?: string;
49767
50367
  owner_module?: string;
49768
50368
  payload?: import("../integrations/supabase/types").Json;
@@ -58767,6 +59367,85 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
58767
59367
  };
58768
59368
  Returns: import("../integrations/supabase/types").Json;
58769
59369
  };
59370
+ claim_floriday_stock_queue: {
59371
+ Args: {
59372
+ p_limit?: number;
59373
+ p_worker?: string;
59374
+ };
59375
+ Returns: {
59376
+ attempts: number;
59377
+ connection_id: string;
59378
+ created_at: string;
59379
+ desired_available: boolean | null;
59380
+ gateway_attempt_id: string | null;
59381
+ id: string;
59382
+ last_error: string | null;
59383
+ locked_at: string | null;
59384
+ locked_by: string | null;
59385
+ next_attempt_at: string;
59386
+ number_of_pieces: number;
59387
+ sent_at: string | null;
59388
+ status: string;
59389
+ superseded_by: string | null;
59390
+ trade_item_id: string;
59391
+ updated_at: string;
59392
+ user_id: string;
59393
+ }[];
59394
+ SetofOptions: {
59395
+ from: "*";
59396
+ to: "floriday_continuous_stock_queue";
59397
+ isOneToOne: false;
59398
+ isSetofReturn: true;
59399
+ };
59400
+ };
59401
+ claim_logistics_tasks: {
59402
+ Args: {
59403
+ _limit?: number;
59404
+ _owner_module: string;
59405
+ _stale_minutes?: number;
59406
+ _task_type: string;
59407
+ _worker: string;
59408
+ };
59409
+ Returns: {
59410
+ attempt_log: import("../integrations/supabase/types").Json;
59411
+ attempts: number;
59412
+ buffer_ref: string | null;
59413
+ claimed_at: string | null;
59414
+ claimed_by: string | null;
59415
+ completed_at: string | null;
59416
+ created_at: string;
59417
+ depends_on: string[];
59418
+ due_at: string | null;
59419
+ error: string | null;
59420
+ id: string;
59421
+ last_error: string | null;
59422
+ next_attempt_at: string | null;
59423
+ order_ref: string;
59424
+ owner_module: string;
59425
+ payload: import("../integrations/supabase/types").Json;
59426
+ plan_run_id: string | null;
59427
+ planned_end: string | null;
59428
+ planned_start: string | null;
59429
+ priority: number;
59430
+ result: import("../integrations/supabase/types").Json | null;
59431
+ rule_config_id: string | null;
59432
+ rule_version: number | null;
59433
+ sequence: number;
59434
+ shadow: boolean;
59435
+ started_at: string | null;
59436
+ status: string;
59437
+ strategy_id: string | null;
59438
+ task_type: string;
59439
+ updated_at: string;
59440
+ user_id: string;
59441
+ }[];
59442
+ SetofOptions: {
59443
+ from: "*";
59444
+ to: "logistics_tasks";
59445
+ isOneToOne: false;
59446
+ isSetofReturn: true;
59447
+ };
59448
+ };
58770
59449
  claim_print_jobs: {
58771
59450
  Args: {
58772
59451
  _agent_id: string;
@@ -58831,10 +59510,24 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
58831
59510
  isSetofReturn: true;
58832
59511
  };
58833
59512
  };
59513
+ cleanup_floriday_stock_queue: {
59514
+ Args: never;
59515
+ Returns: undefined;
59516
+ };
58834
59517
  cleanup_old_bookings: {
58835
59518
  Args: never;
58836
59519
  Returns: undefined;
58837
59520
  };
59521
+ complete_floriday_stock_queue: {
59522
+ Args: {
59523
+ p_attempt_id?: string;
59524
+ p_error?: string;
59525
+ p_id: string;
59526
+ p_ok: boolean;
59527
+ p_permanent?: boolean;
59528
+ };
59529
+ Returns: undefined;
59530
+ };
58838
59531
  consume_bom_for_production: {
58839
59532
  Args: {
58840
59533
  p_connection_id: string;
@@ -59526,6 +60219,8 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
59526
60219
  p_worker?: string;
59527
60220
  };
59528
60221
  Returns: {
60222
+ attempt_log: import("../integrations/supabase/types").Json;
60223
+ attempts: number;
59529
60224
  buffer_ref: string | null;
59530
60225
  claimed_at: string | null;
59531
60226
  claimed_by: string | null;
@@ -59535,6 +60230,8 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
59535
60230
  due_at: string | null;
59536
60231
  error: string | null;
59537
60232
  id: string;
60233
+ last_error: string | null;
60234
+ next_attempt_at: string | null;
59538
60235
  order_ref: string;
59539
60236
  owner_module: string;
59540
60237
  payload: import("../integrations/supabase/types").Json;
@@ -59567,6 +60264,8 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
59567
60264
  p_worker?: string;
59568
60265
  };
59569
60266
  Returns: {
60267
+ attempt_log: import("../integrations/supabase/types").Json;
60268
+ attempts: number;
59570
60269
  buffer_ref: string | null;
59571
60270
  claimed_at: string | null;
59572
60271
  claimed_by: string | null;
@@ -59576,6 +60275,8 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
59576
60275
  due_at: string | null;
59577
60276
  error: string | null;
59578
60277
  id: string;
60278
+ last_error: string | null;
60279
+ next_attempt_at: string | null;
59579
60280
  order_ref: string;
59580
60281
  owner_module: string;
59581
60282
  payload: import("../integrations/supabase/types").Json;
@@ -59608,6 +60309,8 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
59608
60309
  p_task_id: string;
59609
60310
  };
59610
60311
  Returns: {
60312
+ attempt_log: import("../integrations/supabase/types").Json;
60313
+ attempts: number;
59611
60314
  buffer_ref: string | null;
59612
60315
  claimed_at: string | null;
59613
60316
  claimed_by: string | null;
@@ -59617,6 +60320,8 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
59617
60320
  due_at: string | null;
59618
60321
  error: string | null;
59619
60322
  id: string;
60323
+ last_error: string | null;
60324
+ next_attempt_at: string | null;
59620
60325
  order_ref: string;
59621
60326
  owner_module: string;
59622
60327
  payload: import("../integrations/supabase/types").Json;
@@ -59698,6 +60403,8 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
59698
60403
  p_task_id: string;
59699
60404
  };
59700
60405
  Returns: {
60406
+ attempt_log: import("../integrations/supabase/types").Json;
60407
+ attempts: number;
59701
60408
  buffer_ref: string | null;
59702
60409
  claimed_at: string | null;
59703
60410
  claimed_by: string | null;
@@ -59707,6 +60414,8 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
59707
60414
  due_at: string | null;
59708
60415
  error: string | null;
59709
60416
  id: string;
60417
+ last_error: string | null;
60418
+ next_attempt_at: string | null;
59710
60419
  order_ref: string;
59711
60420
  owner_module: string;
59712
60421
  payload: import("../integrations/supabase/types").Json;
@@ -59733,6 +60442,51 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
59733
60442
  isSetofReturn: false;
59734
60443
  };
59735
60444
  };
60445
+ logistics_floriday_claim_pushes: {
60446
+ Args: {
60447
+ _lease_seconds?: number;
60448
+ _limit?: number;
60449
+ _worker?: string;
60450
+ };
60451
+ Returns: {
60452
+ attempts: number;
60453
+ fulfillment_order_id: string;
60454
+ id: string;
60455
+ last_sent_hash: string;
60456
+ order_ref: string;
60457
+ payload: import("../integrations/supabase/types").Json;
60458
+ payload_hash: string;
60459
+ revision: number;
60460
+ }[];
60461
+ };
60462
+ logistics_floriday_finish_push: {
60463
+ Args: {
60464
+ _error?: string;
60465
+ _fulfillment_order_id?: string;
60466
+ _id: string;
60467
+ _max_age_hours?: number;
60468
+ _max_attempts?: number;
60469
+ _ok: boolean;
60470
+ _permanent?: boolean;
60471
+ _revision: number;
60472
+ _sent_hash?: string;
60473
+ };
60474
+ Returns: string;
60475
+ };
60476
+ logistics_floriday_prune_pushes: {
60477
+ Args: {
60478
+ _days?: number;
60479
+ };
60480
+ Returns: number;
60481
+ };
60482
+ logistics_floriday_queue_push: {
60483
+ Args: {
60484
+ _order_ref: string;
60485
+ _payload?: import("../integrations/supabase/types").Json;
60486
+ _payload_hash?: string;
60487
+ };
60488
+ Returns: string;
60489
+ };
59736
60490
  logistics_live_carriers: {
59737
60491
  Args: {
59738
60492
  p_order_ref: string;
@@ -60460,6 +61214,10 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
60460
61214
  Args: never;
60461
61215
  Returns: undefined;
60462
61216
  };
61217
+ run_logistics_tasks_dispatch: {
61218
+ Args: never;
61219
+ Returns: undefined;
61220
+ };
60463
61221
  run_twinfield_queue_tick: {
60464
61222
  Args: never;
60465
61223
  Returns: undefined;
@@ -60700,6 +61458,13 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
60700
61458
  };
60701
61459
  Returns: number;
60702
61460
  };
61461
+ schedule_floriday_stock_queue_process: {
61462
+ Args: {
61463
+ p_apikey: string;
61464
+ p_url: string;
61465
+ };
61466
+ Returns: number;
61467
+ };
60703
61468
  schedule_floriday_token_refresh: {
60704
61469
  Args: {
60705
61470
  p_apikey: string;