@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
@@ -5694,12 +5694,17 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
5694
5694
  attempts: number;
5695
5695
  connection_id: string;
5696
5696
  created_at: string;
5697
+ desired_available: boolean | null;
5697
5698
  gateway_attempt_id: string | null;
5698
5699
  id: string;
5699
5700
  last_error: string | null;
5701
+ locked_at: string | null;
5702
+ locked_by: string | null;
5703
+ next_attempt_at: string;
5700
5704
  number_of_pieces: number;
5701
5705
  sent_at: string | null;
5702
5706
  status: string;
5707
+ superseded_by: string | null;
5703
5708
  trade_item_id: string;
5704
5709
  updated_at: string;
5705
5710
  user_id: string;
@@ -5708,12 +5713,17 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
5708
5713
  attempts?: number;
5709
5714
  connection_id: string;
5710
5715
  created_at?: string;
5716
+ desired_available?: boolean | null;
5711
5717
  gateway_attempt_id?: string | null;
5712
5718
  id?: string;
5713
5719
  last_error?: string | null;
5720
+ locked_at?: string | null;
5721
+ locked_by?: string | null;
5722
+ next_attempt_at?: string;
5714
5723
  number_of_pieces?: number;
5715
5724
  sent_at?: string | null;
5716
5725
  status?: string;
5726
+ superseded_by?: string | null;
5717
5727
  trade_item_id: string;
5718
5728
  updated_at?: string;
5719
5729
  user_id: string;
@@ -5722,12 +5732,17 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
5722
5732
  attempts?: number;
5723
5733
  connection_id?: string;
5724
5734
  created_at?: string;
5735
+ desired_available?: boolean | null;
5725
5736
  gateway_attempt_id?: string | null;
5726
5737
  id?: string;
5727
5738
  last_error?: string | null;
5739
+ locked_at?: string | null;
5740
+ locked_by?: string | null;
5741
+ next_attempt_at?: string;
5728
5742
  number_of_pieces?: number;
5729
5743
  sent_at?: string | null;
5730
5744
  status?: string;
5745
+ superseded_by?: string | null;
5731
5746
  trade_item_id?: string;
5732
5747
  updated_at?: string;
5733
5748
  user_id?: string;
@@ -8476,6 +8491,69 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
8476
8491
  };
8477
8492
  Relationships: [];
8478
8493
  };
8494
+ logistics_floriday_pushes: {
8495
+ Row: {
8496
+ attempts: number;
8497
+ created_at: string;
8498
+ first_queued_at: string;
8499
+ fulfillment_order_id: string | null;
8500
+ id: string;
8501
+ last_error: string | null;
8502
+ last_error_at: string | null;
8503
+ last_sent_hash: string | null;
8504
+ locked_by: string | null;
8505
+ locked_until: string | null;
8506
+ next_attempt_at: string;
8507
+ order_ref: string;
8508
+ payload: import("../../../integrations/supabase/types").Json;
8509
+ payload_hash: string | null;
8510
+ revision: number;
8511
+ sent_at: string | null;
8512
+ status: string;
8513
+ updated_at: string;
8514
+ };
8515
+ Insert: {
8516
+ attempts?: number;
8517
+ created_at?: string;
8518
+ first_queued_at?: string;
8519
+ fulfillment_order_id?: string | null;
8520
+ id?: string;
8521
+ last_error?: string | null;
8522
+ last_error_at?: string | null;
8523
+ last_sent_hash?: string | null;
8524
+ locked_by?: string | null;
8525
+ locked_until?: string | null;
8526
+ next_attempt_at?: string;
8527
+ order_ref: string;
8528
+ payload?: import("../../../integrations/supabase/types").Json;
8529
+ payload_hash?: string | null;
8530
+ revision?: number;
8531
+ sent_at?: string | null;
8532
+ status?: string;
8533
+ updated_at?: string;
8534
+ };
8535
+ Update: {
8536
+ attempts?: number;
8537
+ created_at?: string;
8538
+ first_queued_at?: string;
8539
+ fulfillment_order_id?: string | null;
8540
+ id?: string;
8541
+ last_error?: string | null;
8542
+ last_error_at?: string | null;
8543
+ last_sent_hash?: string | null;
8544
+ locked_by?: string | null;
8545
+ locked_until?: string | null;
8546
+ next_attempt_at?: string;
8547
+ order_ref?: string;
8548
+ payload?: import("../../../integrations/supabase/types").Json;
8549
+ payload_hash?: string | null;
8550
+ revision?: number;
8551
+ sent_at?: string | null;
8552
+ status?: string;
8553
+ updated_at?: string;
8554
+ };
8555
+ Relationships: [];
8556
+ };
8479
8557
  logistics_formulas: {
8480
8558
  Row: {
8481
8559
  created_at: string;
@@ -9087,6 +9165,8 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
9087
9165
  };
9088
9166
  logistics_tasks: {
9089
9167
  Row: {
9168
+ attempt_log: import("../../../integrations/supabase/types").Json;
9169
+ attempts: number;
9090
9170
  buffer_ref: string | null;
9091
9171
  claimed_at: string | null;
9092
9172
  claimed_by: string | null;
@@ -9096,6 +9176,8 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
9096
9176
  due_at: string | null;
9097
9177
  error: string | null;
9098
9178
  id: string;
9179
+ last_error: string | null;
9180
+ next_attempt_at: string | null;
9099
9181
  order_ref: string;
9100
9182
  owner_module: string;
9101
9183
  payload: import("../../../integrations/supabase/types").Json;
@@ -9116,6 +9198,8 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
9116
9198
  user_id: string;
9117
9199
  };
9118
9200
  Insert: {
9201
+ attempt_log?: import("../../../integrations/supabase/types").Json;
9202
+ attempts?: number;
9119
9203
  buffer_ref?: string | null;
9120
9204
  claimed_at?: string | null;
9121
9205
  claimed_by?: string | null;
@@ -9125,6 +9209,8 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
9125
9209
  due_at?: string | null;
9126
9210
  error?: string | null;
9127
9211
  id?: string;
9212
+ last_error?: string | null;
9213
+ next_attempt_at?: string | null;
9128
9214
  order_ref: string;
9129
9215
  owner_module: string;
9130
9216
  payload?: import("../../../integrations/supabase/types").Json;
@@ -9145,6 +9231,8 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
9145
9231
  user_id?: string;
9146
9232
  };
9147
9233
  Update: {
9234
+ attempt_log?: import("../../../integrations/supabase/types").Json;
9235
+ attempts?: number;
9148
9236
  buffer_ref?: string | null;
9149
9237
  claimed_at?: string | null;
9150
9238
  claimed_by?: string | null;
@@ -9154,6 +9242,8 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
9154
9242
  due_at?: string | null;
9155
9243
  error?: string | null;
9156
9244
  id?: string;
9245
+ last_error?: string | null;
9246
+ next_attempt_at?: string | null;
9157
9247
  order_ref?: string;
9158
9248
  owner_module?: string;
9159
9249
  payload?: import("../../../integrations/supabase/types").Json;
@@ -18158,6 +18248,85 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
18158
18248
  };
18159
18249
  Returns: import("../../../integrations/supabase/types").Json;
18160
18250
  };
18251
+ claim_floriday_stock_queue: {
18252
+ Args: {
18253
+ p_limit?: number;
18254
+ p_worker?: string;
18255
+ };
18256
+ Returns: {
18257
+ attempts: number;
18258
+ connection_id: string;
18259
+ created_at: string;
18260
+ desired_available: boolean | null;
18261
+ gateway_attempt_id: string | null;
18262
+ id: string;
18263
+ last_error: string | null;
18264
+ locked_at: string | null;
18265
+ locked_by: string | null;
18266
+ next_attempt_at: string;
18267
+ number_of_pieces: number;
18268
+ sent_at: string | null;
18269
+ status: string;
18270
+ superseded_by: string | null;
18271
+ trade_item_id: string;
18272
+ updated_at: string;
18273
+ user_id: string;
18274
+ }[];
18275
+ SetofOptions: {
18276
+ from: "*";
18277
+ to: "floriday_continuous_stock_queue";
18278
+ isOneToOne: false;
18279
+ isSetofReturn: true;
18280
+ };
18281
+ };
18282
+ claim_logistics_tasks: {
18283
+ Args: {
18284
+ _limit?: number;
18285
+ _owner_module: string;
18286
+ _stale_minutes?: number;
18287
+ _task_type: string;
18288
+ _worker: string;
18289
+ };
18290
+ Returns: {
18291
+ attempt_log: import("../../../integrations/supabase/types").Json;
18292
+ attempts: number;
18293
+ buffer_ref: string | null;
18294
+ claimed_at: string | null;
18295
+ claimed_by: string | null;
18296
+ completed_at: string | null;
18297
+ created_at: string;
18298
+ depends_on: string[];
18299
+ due_at: string | null;
18300
+ error: string | null;
18301
+ id: string;
18302
+ last_error: string | null;
18303
+ next_attempt_at: string | null;
18304
+ order_ref: string;
18305
+ owner_module: string;
18306
+ payload: import("../../../integrations/supabase/types").Json;
18307
+ plan_run_id: string | null;
18308
+ planned_end: string | null;
18309
+ planned_start: string | null;
18310
+ priority: number;
18311
+ result: import("../../../integrations/supabase/types").Json | null;
18312
+ rule_config_id: string | null;
18313
+ rule_version: number | null;
18314
+ sequence: number;
18315
+ shadow: boolean;
18316
+ started_at: string | null;
18317
+ status: string;
18318
+ strategy_id: string | null;
18319
+ task_type: string;
18320
+ updated_at: string;
18321
+ user_id: string;
18322
+ }[];
18323
+ SetofOptions: {
18324
+ from: "*";
18325
+ to: "logistics_tasks";
18326
+ isOneToOne: false;
18327
+ isSetofReturn: true;
18328
+ };
18329
+ };
18161
18330
  claim_print_jobs: {
18162
18331
  Args: {
18163
18332
  _agent_id: string;
@@ -18222,10 +18391,24 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
18222
18391
  isSetofReturn: true;
18223
18392
  };
18224
18393
  };
18394
+ cleanup_floriday_stock_queue: {
18395
+ Args: never;
18396
+ Returns: undefined;
18397
+ };
18225
18398
  cleanup_old_bookings: {
18226
18399
  Args: never;
18227
18400
  Returns: undefined;
18228
18401
  };
18402
+ complete_floriday_stock_queue: {
18403
+ Args: {
18404
+ p_attempt_id?: string;
18405
+ p_error?: string;
18406
+ p_id: string;
18407
+ p_ok: boolean;
18408
+ p_permanent?: boolean;
18409
+ };
18410
+ Returns: undefined;
18411
+ };
18229
18412
  consume_bom_for_production: {
18230
18413
  Args: {
18231
18414
  p_connection_id: string;
@@ -18917,6 +19100,8 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
18917
19100
  p_worker?: string;
18918
19101
  };
18919
19102
  Returns: {
19103
+ attempt_log: import("../../../integrations/supabase/types").Json;
19104
+ attempts: number;
18920
19105
  buffer_ref: string | null;
18921
19106
  claimed_at: string | null;
18922
19107
  claimed_by: string | null;
@@ -18926,6 +19111,8 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
18926
19111
  due_at: string | null;
18927
19112
  error: string | null;
18928
19113
  id: string;
19114
+ last_error: string | null;
19115
+ next_attempt_at: string | null;
18929
19116
  order_ref: string;
18930
19117
  owner_module: string;
18931
19118
  payload: import("../../../integrations/supabase/types").Json;
@@ -18958,6 +19145,8 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
18958
19145
  p_worker?: string;
18959
19146
  };
18960
19147
  Returns: {
19148
+ attempt_log: import("../../../integrations/supabase/types").Json;
19149
+ attempts: number;
18961
19150
  buffer_ref: string | null;
18962
19151
  claimed_at: string | null;
18963
19152
  claimed_by: string | null;
@@ -18967,6 +19156,8 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
18967
19156
  due_at: string | null;
18968
19157
  error: string | null;
18969
19158
  id: string;
19159
+ last_error: string | null;
19160
+ next_attempt_at: string | null;
18970
19161
  order_ref: string;
18971
19162
  owner_module: string;
18972
19163
  payload: import("../../../integrations/supabase/types").Json;
@@ -18999,6 +19190,8 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
18999
19190
  p_task_id: string;
19000
19191
  };
19001
19192
  Returns: {
19193
+ attempt_log: import("../../../integrations/supabase/types").Json;
19194
+ attempts: number;
19002
19195
  buffer_ref: string | null;
19003
19196
  claimed_at: string | null;
19004
19197
  claimed_by: string | null;
@@ -19008,6 +19201,8 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
19008
19201
  due_at: string | null;
19009
19202
  error: string | null;
19010
19203
  id: string;
19204
+ last_error: string | null;
19205
+ next_attempt_at: string | null;
19011
19206
  order_ref: string;
19012
19207
  owner_module: string;
19013
19208
  payload: import("../../../integrations/supabase/types").Json;
@@ -19089,6 +19284,8 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
19089
19284
  p_task_id: string;
19090
19285
  };
19091
19286
  Returns: {
19287
+ attempt_log: import("../../../integrations/supabase/types").Json;
19288
+ attempts: number;
19092
19289
  buffer_ref: string | null;
19093
19290
  claimed_at: string | null;
19094
19291
  claimed_by: string | null;
@@ -19098,6 +19295,8 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
19098
19295
  due_at: string | null;
19099
19296
  error: string | null;
19100
19297
  id: string;
19298
+ last_error: string | null;
19299
+ next_attempt_at: string | null;
19101
19300
  order_ref: string;
19102
19301
  owner_module: string;
19103
19302
  payload: import("../../../integrations/supabase/types").Json;
@@ -19124,6 +19323,51 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
19124
19323
  isSetofReturn: false;
19125
19324
  };
19126
19325
  };
19326
+ logistics_floriday_claim_pushes: {
19327
+ Args: {
19328
+ _lease_seconds?: number;
19329
+ _limit?: number;
19330
+ _worker?: string;
19331
+ };
19332
+ Returns: {
19333
+ attempts: number;
19334
+ fulfillment_order_id: string;
19335
+ id: string;
19336
+ last_sent_hash: string;
19337
+ order_ref: string;
19338
+ payload: import("../../../integrations/supabase/types").Json;
19339
+ payload_hash: string;
19340
+ revision: number;
19341
+ }[];
19342
+ };
19343
+ logistics_floriday_finish_push: {
19344
+ Args: {
19345
+ _error?: string;
19346
+ _fulfillment_order_id?: string;
19347
+ _id: string;
19348
+ _max_age_hours?: number;
19349
+ _max_attempts?: number;
19350
+ _ok: boolean;
19351
+ _permanent?: boolean;
19352
+ _revision: number;
19353
+ _sent_hash?: string;
19354
+ };
19355
+ Returns: string;
19356
+ };
19357
+ logistics_floriday_prune_pushes: {
19358
+ Args: {
19359
+ _days?: number;
19360
+ };
19361
+ Returns: number;
19362
+ };
19363
+ logistics_floriday_queue_push: {
19364
+ Args: {
19365
+ _order_ref: string;
19366
+ _payload?: import("../../../integrations/supabase/types").Json;
19367
+ _payload_hash?: string;
19368
+ };
19369
+ Returns: string;
19370
+ };
19127
19371
  logistics_live_carriers: {
19128
19372
  Args: {
19129
19373
  p_order_ref: string;
@@ -19851,6 +20095,10 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
19851
20095
  Args: never;
19852
20096
  Returns: undefined;
19853
20097
  };
20098
+ run_logistics_tasks_dispatch: {
20099
+ Args: never;
20100
+ Returns: undefined;
20101
+ };
19854
20102
  run_twinfield_queue_tick: {
19855
20103
  Args: never;
19856
20104
  Returns: undefined;
@@ -20091,6 +20339,13 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
20091
20339
  };
20092
20340
  Returns: number;
20093
20341
  };
20342
+ schedule_floriday_stock_queue_process: {
20343
+ Args: {
20344
+ p_apikey: string;
20345
+ p_url: string;
20346
+ };
20347
+ Returns: number;
20348
+ };
20094
20349
  schedule_floriday_token_refresh: {
20095
20350
  Args: {
20096
20351
  p_apikey: string;
@@ -26000,12 +26255,17 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
26000
26255
  attempts: number;
26001
26256
  connection_id: string;
26002
26257
  created_at: string;
26258
+ desired_available: boolean | null;
26003
26259
  gateway_attempt_id: string | null;
26004
26260
  id: string;
26005
26261
  last_error: string | null;
26262
+ locked_at: string | null;
26263
+ locked_by: string | null;
26264
+ next_attempt_at: string;
26006
26265
  number_of_pieces: number;
26007
26266
  sent_at: string | null;
26008
26267
  status: string;
26268
+ superseded_by: string | null;
26009
26269
  trade_item_id: string;
26010
26270
  updated_at: string;
26011
26271
  user_id: string;
@@ -26014,12 +26274,17 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
26014
26274
  attempts?: number;
26015
26275
  connection_id: string;
26016
26276
  created_at?: string;
26277
+ desired_available?: boolean | null;
26017
26278
  gateway_attempt_id?: string | null;
26018
26279
  id?: string;
26019
26280
  last_error?: string | null;
26281
+ locked_at?: string | null;
26282
+ locked_by?: string | null;
26283
+ next_attempt_at?: string;
26020
26284
  number_of_pieces?: number;
26021
26285
  sent_at?: string | null;
26022
26286
  status?: string;
26287
+ superseded_by?: string | null;
26023
26288
  trade_item_id: string;
26024
26289
  updated_at?: string;
26025
26290
  user_id: string;
@@ -26028,12 +26293,17 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
26028
26293
  attempts?: number;
26029
26294
  connection_id?: string;
26030
26295
  created_at?: string;
26296
+ desired_available?: boolean | null;
26031
26297
  gateway_attempt_id?: string | null;
26032
26298
  id?: string;
26033
26299
  last_error?: string | null;
26300
+ locked_at?: string | null;
26301
+ locked_by?: string | null;
26302
+ next_attempt_at?: string;
26034
26303
  number_of_pieces?: number;
26035
26304
  sent_at?: string | null;
26036
26305
  status?: string;
26306
+ superseded_by?: string | null;
26037
26307
  trade_item_id?: string;
26038
26308
  updated_at?: string;
26039
26309
  user_id?: string;
@@ -28782,6 +29052,69 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
28782
29052
  };
28783
29053
  Relationships: [];
28784
29054
  };
29055
+ logistics_floriday_pushes: {
29056
+ Row: {
29057
+ attempts: number;
29058
+ created_at: string;
29059
+ first_queued_at: string;
29060
+ fulfillment_order_id: string | null;
29061
+ id: string;
29062
+ last_error: string | null;
29063
+ last_error_at: string | null;
29064
+ last_sent_hash: string | null;
29065
+ locked_by: string | null;
29066
+ locked_until: string | null;
29067
+ next_attempt_at: string;
29068
+ order_ref: string;
29069
+ payload: import("../../../integrations/supabase/types").Json;
29070
+ payload_hash: string | null;
29071
+ revision: number;
29072
+ sent_at: string | null;
29073
+ status: string;
29074
+ updated_at: string;
29075
+ };
29076
+ Insert: {
29077
+ attempts?: number;
29078
+ created_at?: string;
29079
+ first_queued_at?: string;
29080
+ fulfillment_order_id?: string | null;
29081
+ id?: string;
29082
+ last_error?: string | null;
29083
+ last_error_at?: string | null;
29084
+ last_sent_hash?: string | null;
29085
+ locked_by?: string | null;
29086
+ locked_until?: string | null;
29087
+ next_attempt_at?: string;
29088
+ order_ref: string;
29089
+ payload?: import("../../../integrations/supabase/types").Json;
29090
+ payload_hash?: string | null;
29091
+ revision?: number;
29092
+ sent_at?: string | null;
29093
+ status?: string;
29094
+ updated_at?: string;
29095
+ };
29096
+ Update: {
29097
+ attempts?: number;
29098
+ created_at?: string;
29099
+ first_queued_at?: string;
29100
+ fulfillment_order_id?: string | null;
29101
+ id?: string;
29102
+ last_error?: string | null;
29103
+ last_error_at?: string | null;
29104
+ last_sent_hash?: string | null;
29105
+ locked_by?: string | null;
29106
+ locked_until?: string | null;
29107
+ next_attempt_at?: string;
29108
+ order_ref?: string;
29109
+ payload?: import("../../../integrations/supabase/types").Json;
29110
+ payload_hash?: string | null;
29111
+ revision?: number;
29112
+ sent_at?: string | null;
29113
+ status?: string;
29114
+ updated_at?: string;
29115
+ };
29116
+ Relationships: [];
29117
+ };
28785
29118
  logistics_formulas: {
28786
29119
  Row: {
28787
29120
  created_at: string;
@@ -29393,6 +29726,8 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
29393
29726
  };
29394
29727
  logistics_tasks: {
29395
29728
  Row: {
29729
+ attempt_log: import("../../../integrations/supabase/types").Json;
29730
+ attempts: number;
29396
29731
  buffer_ref: string | null;
29397
29732
  claimed_at: string | null;
29398
29733
  claimed_by: string | null;
@@ -29402,6 +29737,8 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
29402
29737
  due_at: string | null;
29403
29738
  error: string | null;
29404
29739
  id: string;
29740
+ last_error: string | null;
29741
+ next_attempt_at: string | null;
29405
29742
  order_ref: string;
29406
29743
  owner_module: string;
29407
29744
  payload: import("../../../integrations/supabase/types").Json;
@@ -29422,6 +29759,8 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
29422
29759
  user_id: string;
29423
29760
  };
29424
29761
  Insert: {
29762
+ attempt_log?: import("../../../integrations/supabase/types").Json;
29763
+ attempts?: number;
29425
29764
  buffer_ref?: string | null;
29426
29765
  claimed_at?: string | null;
29427
29766
  claimed_by?: string | null;
@@ -29431,6 +29770,8 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
29431
29770
  due_at?: string | null;
29432
29771
  error?: string | null;
29433
29772
  id?: string;
29773
+ last_error?: string | null;
29774
+ next_attempt_at?: string | null;
29434
29775
  order_ref: string;
29435
29776
  owner_module: string;
29436
29777
  payload?: import("../../../integrations/supabase/types").Json;
@@ -29451,6 +29792,8 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
29451
29792
  user_id?: string;
29452
29793
  };
29453
29794
  Update: {
29795
+ attempt_log?: import("../../../integrations/supabase/types").Json;
29796
+ attempts?: number;
29454
29797
  buffer_ref?: string | null;
29455
29798
  claimed_at?: string | null;
29456
29799
  claimed_by?: string | null;
@@ -29460,6 +29803,8 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
29460
29803
  due_at?: string | null;
29461
29804
  error?: string | null;
29462
29805
  id?: string;
29806
+ last_error?: string | null;
29807
+ next_attempt_at?: string | null;
29463
29808
  order_ref?: string;
29464
29809
  owner_module?: string;
29465
29810
  payload?: import("../../../integrations/supabase/types").Json;
@@ -38464,6 +38809,85 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
38464
38809
  };
38465
38810
  Returns: import("../../../integrations/supabase/types").Json;
38466
38811
  };
38812
+ claim_floriday_stock_queue: {
38813
+ Args: {
38814
+ p_limit?: number;
38815
+ p_worker?: string;
38816
+ };
38817
+ Returns: {
38818
+ attempts: number;
38819
+ connection_id: string;
38820
+ created_at: string;
38821
+ desired_available: boolean | null;
38822
+ gateway_attempt_id: string | null;
38823
+ id: string;
38824
+ last_error: string | null;
38825
+ locked_at: string | null;
38826
+ locked_by: string | null;
38827
+ next_attempt_at: string;
38828
+ number_of_pieces: number;
38829
+ sent_at: string | null;
38830
+ status: string;
38831
+ superseded_by: string | null;
38832
+ trade_item_id: string;
38833
+ updated_at: string;
38834
+ user_id: string;
38835
+ }[];
38836
+ SetofOptions: {
38837
+ from: "*";
38838
+ to: "floriday_continuous_stock_queue";
38839
+ isOneToOne: false;
38840
+ isSetofReturn: true;
38841
+ };
38842
+ };
38843
+ claim_logistics_tasks: {
38844
+ Args: {
38845
+ _limit?: number;
38846
+ _owner_module: string;
38847
+ _stale_minutes?: number;
38848
+ _task_type: string;
38849
+ _worker: string;
38850
+ };
38851
+ Returns: {
38852
+ attempt_log: import("../../../integrations/supabase/types").Json;
38853
+ attempts: number;
38854
+ buffer_ref: string | null;
38855
+ claimed_at: string | null;
38856
+ claimed_by: string | null;
38857
+ completed_at: string | null;
38858
+ created_at: string;
38859
+ depends_on: string[];
38860
+ due_at: string | null;
38861
+ error: string | null;
38862
+ id: string;
38863
+ last_error: string | null;
38864
+ next_attempt_at: string | null;
38865
+ order_ref: string;
38866
+ owner_module: string;
38867
+ payload: import("../../../integrations/supabase/types").Json;
38868
+ plan_run_id: string | null;
38869
+ planned_end: string | null;
38870
+ planned_start: string | null;
38871
+ priority: number;
38872
+ result: import("../../../integrations/supabase/types").Json | null;
38873
+ rule_config_id: string | null;
38874
+ rule_version: number | null;
38875
+ sequence: number;
38876
+ shadow: boolean;
38877
+ started_at: string | null;
38878
+ status: string;
38879
+ strategy_id: string | null;
38880
+ task_type: string;
38881
+ updated_at: string;
38882
+ user_id: string;
38883
+ }[];
38884
+ SetofOptions: {
38885
+ from: "*";
38886
+ to: "logistics_tasks";
38887
+ isOneToOne: false;
38888
+ isSetofReturn: true;
38889
+ };
38890
+ };
38467
38891
  claim_print_jobs: {
38468
38892
  Args: {
38469
38893
  _agent_id: string;
@@ -38528,10 +38952,24 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
38528
38952
  isSetofReturn: true;
38529
38953
  };
38530
38954
  };
38955
+ cleanup_floriday_stock_queue: {
38956
+ Args: never;
38957
+ Returns: undefined;
38958
+ };
38531
38959
  cleanup_old_bookings: {
38532
38960
  Args: never;
38533
38961
  Returns: undefined;
38534
38962
  };
38963
+ complete_floriday_stock_queue: {
38964
+ Args: {
38965
+ p_attempt_id?: string;
38966
+ p_error?: string;
38967
+ p_id: string;
38968
+ p_ok: boolean;
38969
+ p_permanent?: boolean;
38970
+ };
38971
+ Returns: undefined;
38972
+ };
38535
38973
  consume_bom_for_production: {
38536
38974
  Args: {
38537
38975
  p_connection_id: string;
@@ -39223,6 +39661,8 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
39223
39661
  p_worker?: string;
39224
39662
  };
39225
39663
  Returns: {
39664
+ attempt_log: import("../../../integrations/supabase/types").Json;
39665
+ attempts: number;
39226
39666
  buffer_ref: string | null;
39227
39667
  claimed_at: string | null;
39228
39668
  claimed_by: string | null;
@@ -39232,6 +39672,8 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
39232
39672
  due_at: string | null;
39233
39673
  error: string | null;
39234
39674
  id: string;
39675
+ last_error: string | null;
39676
+ next_attempt_at: string | null;
39235
39677
  order_ref: string;
39236
39678
  owner_module: string;
39237
39679
  payload: import("../../../integrations/supabase/types").Json;
@@ -39264,6 +39706,8 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
39264
39706
  p_worker?: string;
39265
39707
  };
39266
39708
  Returns: {
39709
+ attempt_log: import("../../../integrations/supabase/types").Json;
39710
+ attempts: number;
39267
39711
  buffer_ref: string | null;
39268
39712
  claimed_at: string | null;
39269
39713
  claimed_by: string | null;
@@ -39273,6 +39717,8 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
39273
39717
  due_at: string | null;
39274
39718
  error: string | null;
39275
39719
  id: string;
39720
+ last_error: string | null;
39721
+ next_attempt_at: string | null;
39276
39722
  order_ref: string;
39277
39723
  owner_module: string;
39278
39724
  payload: import("../../../integrations/supabase/types").Json;
@@ -39305,6 +39751,8 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
39305
39751
  p_task_id: string;
39306
39752
  };
39307
39753
  Returns: {
39754
+ attempt_log: import("../../../integrations/supabase/types").Json;
39755
+ attempts: number;
39308
39756
  buffer_ref: string | null;
39309
39757
  claimed_at: string | null;
39310
39758
  claimed_by: string | null;
@@ -39314,6 +39762,8 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
39314
39762
  due_at: string | null;
39315
39763
  error: string | null;
39316
39764
  id: string;
39765
+ last_error: string | null;
39766
+ next_attempt_at: string | null;
39317
39767
  order_ref: string;
39318
39768
  owner_module: string;
39319
39769
  payload: import("../../../integrations/supabase/types").Json;
@@ -39395,6 +39845,8 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
39395
39845
  p_task_id: string;
39396
39846
  };
39397
39847
  Returns: {
39848
+ attempt_log: import("../../../integrations/supabase/types").Json;
39849
+ attempts: number;
39398
39850
  buffer_ref: string | null;
39399
39851
  claimed_at: string | null;
39400
39852
  claimed_by: string | null;
@@ -39404,6 +39856,8 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
39404
39856
  due_at: string | null;
39405
39857
  error: string | null;
39406
39858
  id: string;
39859
+ last_error: string | null;
39860
+ next_attempt_at: string | null;
39407
39861
  order_ref: string;
39408
39862
  owner_module: string;
39409
39863
  payload: import("../../../integrations/supabase/types").Json;
@@ -39430,6 +39884,51 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
39430
39884
  isSetofReturn: false;
39431
39885
  };
39432
39886
  };
39887
+ logistics_floriday_claim_pushes: {
39888
+ Args: {
39889
+ _lease_seconds?: number;
39890
+ _limit?: number;
39891
+ _worker?: string;
39892
+ };
39893
+ Returns: {
39894
+ attempts: number;
39895
+ fulfillment_order_id: string;
39896
+ id: string;
39897
+ last_sent_hash: string;
39898
+ order_ref: string;
39899
+ payload: import("../../../integrations/supabase/types").Json;
39900
+ payload_hash: string;
39901
+ revision: number;
39902
+ }[];
39903
+ };
39904
+ logistics_floriday_finish_push: {
39905
+ Args: {
39906
+ _error?: string;
39907
+ _fulfillment_order_id?: string;
39908
+ _id: string;
39909
+ _max_age_hours?: number;
39910
+ _max_attempts?: number;
39911
+ _ok: boolean;
39912
+ _permanent?: boolean;
39913
+ _revision: number;
39914
+ _sent_hash?: string;
39915
+ };
39916
+ Returns: string;
39917
+ };
39918
+ logistics_floriday_prune_pushes: {
39919
+ Args: {
39920
+ _days?: number;
39921
+ };
39922
+ Returns: number;
39923
+ };
39924
+ logistics_floriday_queue_push: {
39925
+ Args: {
39926
+ _order_ref: string;
39927
+ _payload?: import("../../../integrations/supabase/types").Json;
39928
+ _payload_hash?: string;
39929
+ };
39930
+ Returns: string;
39931
+ };
39433
39932
  logistics_live_carriers: {
39434
39933
  Args: {
39435
39934
  p_order_ref: string;
@@ -40157,6 +40656,10 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
40157
40656
  Args: never;
40158
40657
  Returns: undefined;
40159
40658
  };
40659
+ run_logistics_tasks_dispatch: {
40660
+ Args: never;
40661
+ Returns: undefined;
40662
+ };
40160
40663
  run_twinfield_queue_tick: {
40161
40664
  Args: never;
40162
40665
  Returns: undefined;
@@ -40397,6 +40900,13 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
40397
40900
  };
40398
40901
  Returns: number;
40399
40902
  };
40903
+ schedule_floriday_stock_queue_process: {
40904
+ Args: {
40905
+ p_apikey: string;
40906
+ p_url: string;
40907
+ };
40908
+ Returns: number;
40909
+ };
40400
40910
  schedule_floriday_token_refresh: {
40401
40911
  Args: {
40402
40912
  p_apikey: string;
@@ -46308,12 +46818,17 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
46308
46818
  attempts: number;
46309
46819
  connection_id: string;
46310
46820
  created_at: string;
46821
+ desired_available: boolean | null;
46311
46822
  gateway_attempt_id: string | null;
46312
46823
  id: string;
46313
46824
  last_error: string | null;
46825
+ locked_at: string | null;
46826
+ locked_by: string | null;
46827
+ next_attempt_at: string;
46314
46828
  number_of_pieces: number;
46315
46829
  sent_at: string | null;
46316
46830
  status: string;
46831
+ superseded_by: string | null;
46317
46832
  trade_item_id: string;
46318
46833
  updated_at: string;
46319
46834
  user_id: string;
@@ -46322,12 +46837,17 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
46322
46837
  attempts?: number;
46323
46838
  connection_id: string;
46324
46839
  created_at?: string;
46840
+ desired_available?: boolean | null;
46325
46841
  gateway_attempt_id?: string | null;
46326
46842
  id?: string;
46327
46843
  last_error?: string | null;
46844
+ locked_at?: string | null;
46845
+ locked_by?: string | null;
46846
+ next_attempt_at?: string;
46328
46847
  number_of_pieces?: number;
46329
46848
  sent_at?: string | null;
46330
46849
  status?: string;
46850
+ superseded_by?: string | null;
46331
46851
  trade_item_id: string;
46332
46852
  updated_at?: string;
46333
46853
  user_id: string;
@@ -46336,12 +46856,17 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
46336
46856
  attempts?: number;
46337
46857
  connection_id?: string;
46338
46858
  created_at?: string;
46859
+ desired_available?: boolean | null;
46339
46860
  gateway_attempt_id?: string | null;
46340
46861
  id?: string;
46341
46862
  last_error?: string | null;
46863
+ locked_at?: string | null;
46864
+ locked_by?: string | null;
46865
+ next_attempt_at?: string;
46342
46866
  number_of_pieces?: number;
46343
46867
  sent_at?: string | null;
46344
46868
  status?: string;
46869
+ superseded_by?: string | null;
46345
46870
  trade_item_id?: string;
46346
46871
  updated_at?: string;
46347
46872
  user_id?: string;
@@ -49090,6 +49615,69 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
49090
49615
  };
49091
49616
  Relationships: [];
49092
49617
  };
49618
+ logistics_floriday_pushes: {
49619
+ Row: {
49620
+ attempts: number;
49621
+ created_at: string;
49622
+ first_queued_at: string;
49623
+ fulfillment_order_id: string | null;
49624
+ id: string;
49625
+ last_error: string | null;
49626
+ last_error_at: string | null;
49627
+ last_sent_hash: string | null;
49628
+ locked_by: string | null;
49629
+ locked_until: string | null;
49630
+ next_attempt_at: string;
49631
+ order_ref: string;
49632
+ payload: import("../../../integrations/supabase/types").Json;
49633
+ payload_hash: string | null;
49634
+ revision: number;
49635
+ sent_at: string | null;
49636
+ status: string;
49637
+ updated_at: string;
49638
+ };
49639
+ Insert: {
49640
+ attempts?: number;
49641
+ created_at?: string;
49642
+ first_queued_at?: string;
49643
+ fulfillment_order_id?: string | null;
49644
+ id?: string;
49645
+ last_error?: string | null;
49646
+ last_error_at?: string | null;
49647
+ last_sent_hash?: string | null;
49648
+ locked_by?: string | null;
49649
+ locked_until?: string | null;
49650
+ next_attempt_at?: string;
49651
+ order_ref: string;
49652
+ payload?: import("../../../integrations/supabase/types").Json;
49653
+ payload_hash?: string | null;
49654
+ revision?: number;
49655
+ sent_at?: string | null;
49656
+ status?: string;
49657
+ updated_at?: string;
49658
+ };
49659
+ Update: {
49660
+ attempts?: number;
49661
+ created_at?: string;
49662
+ first_queued_at?: string;
49663
+ fulfillment_order_id?: string | null;
49664
+ id?: string;
49665
+ last_error?: string | null;
49666
+ last_error_at?: string | null;
49667
+ last_sent_hash?: string | null;
49668
+ locked_by?: string | null;
49669
+ locked_until?: string | null;
49670
+ next_attempt_at?: string;
49671
+ order_ref?: string;
49672
+ payload?: import("../../../integrations/supabase/types").Json;
49673
+ payload_hash?: string | null;
49674
+ revision?: number;
49675
+ sent_at?: string | null;
49676
+ status?: string;
49677
+ updated_at?: string;
49678
+ };
49679
+ Relationships: [];
49680
+ };
49093
49681
  logistics_formulas: {
49094
49682
  Row: {
49095
49683
  created_at: string;
@@ -49701,6 +50289,8 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
49701
50289
  };
49702
50290
  logistics_tasks: {
49703
50291
  Row: {
50292
+ attempt_log: import("../../../integrations/supabase/types").Json;
50293
+ attempts: number;
49704
50294
  buffer_ref: string | null;
49705
50295
  claimed_at: string | null;
49706
50296
  claimed_by: string | null;
@@ -49710,6 +50300,8 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
49710
50300
  due_at: string | null;
49711
50301
  error: string | null;
49712
50302
  id: string;
50303
+ last_error: string | null;
50304
+ next_attempt_at: string | null;
49713
50305
  order_ref: string;
49714
50306
  owner_module: string;
49715
50307
  payload: import("../../../integrations/supabase/types").Json;
@@ -49730,6 +50322,8 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
49730
50322
  user_id: string;
49731
50323
  };
49732
50324
  Insert: {
50325
+ attempt_log?: import("../../../integrations/supabase/types").Json;
50326
+ attempts?: number;
49733
50327
  buffer_ref?: string | null;
49734
50328
  claimed_at?: string | null;
49735
50329
  claimed_by?: string | null;
@@ -49739,6 +50333,8 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
49739
50333
  due_at?: string | null;
49740
50334
  error?: string | null;
49741
50335
  id?: string;
50336
+ last_error?: string | null;
50337
+ next_attempt_at?: string | null;
49742
50338
  order_ref: string;
49743
50339
  owner_module: string;
49744
50340
  payload?: import("../../../integrations/supabase/types").Json;
@@ -49759,6 +50355,8 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
49759
50355
  user_id?: string;
49760
50356
  };
49761
50357
  Update: {
50358
+ attempt_log?: import("../../../integrations/supabase/types").Json;
50359
+ attempts?: number;
49762
50360
  buffer_ref?: string | null;
49763
50361
  claimed_at?: string | null;
49764
50362
  claimed_by?: string | null;
@@ -49768,6 +50366,8 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
49768
50366
  due_at?: string | null;
49769
50367
  error?: string | null;
49770
50368
  id?: string;
50369
+ last_error?: string | null;
50370
+ next_attempt_at?: string | null;
49771
50371
  order_ref?: string;
49772
50372
  owner_module?: string;
49773
50373
  payload?: import("../../../integrations/supabase/types").Json;
@@ -58772,6 +59372,85 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
58772
59372
  };
58773
59373
  Returns: import("../../../integrations/supabase/types").Json;
58774
59374
  };
59375
+ claim_floriday_stock_queue: {
59376
+ Args: {
59377
+ p_limit?: number;
59378
+ p_worker?: string;
59379
+ };
59380
+ Returns: {
59381
+ attempts: number;
59382
+ connection_id: string;
59383
+ created_at: string;
59384
+ desired_available: boolean | null;
59385
+ gateway_attempt_id: string | null;
59386
+ id: string;
59387
+ last_error: string | null;
59388
+ locked_at: string | null;
59389
+ locked_by: string | null;
59390
+ next_attempt_at: string;
59391
+ number_of_pieces: number;
59392
+ sent_at: string | null;
59393
+ status: string;
59394
+ superseded_by: string | null;
59395
+ trade_item_id: string;
59396
+ updated_at: string;
59397
+ user_id: string;
59398
+ }[];
59399
+ SetofOptions: {
59400
+ from: "*";
59401
+ to: "floriday_continuous_stock_queue";
59402
+ isOneToOne: false;
59403
+ isSetofReturn: true;
59404
+ };
59405
+ };
59406
+ claim_logistics_tasks: {
59407
+ Args: {
59408
+ _limit?: number;
59409
+ _owner_module: string;
59410
+ _stale_minutes?: number;
59411
+ _task_type: string;
59412
+ _worker: string;
59413
+ };
59414
+ Returns: {
59415
+ attempt_log: import("../../../integrations/supabase/types").Json;
59416
+ attempts: number;
59417
+ buffer_ref: string | null;
59418
+ claimed_at: string | null;
59419
+ claimed_by: string | null;
59420
+ completed_at: string | null;
59421
+ created_at: string;
59422
+ depends_on: string[];
59423
+ due_at: string | null;
59424
+ error: string | null;
59425
+ id: string;
59426
+ last_error: string | null;
59427
+ next_attempt_at: string | null;
59428
+ order_ref: string;
59429
+ owner_module: string;
59430
+ payload: import("../../../integrations/supabase/types").Json;
59431
+ plan_run_id: string | null;
59432
+ planned_end: string | null;
59433
+ planned_start: string | null;
59434
+ priority: number;
59435
+ result: import("../../../integrations/supabase/types").Json | null;
59436
+ rule_config_id: string | null;
59437
+ rule_version: number | null;
59438
+ sequence: number;
59439
+ shadow: boolean;
59440
+ started_at: string | null;
59441
+ status: string;
59442
+ strategy_id: string | null;
59443
+ task_type: string;
59444
+ updated_at: string;
59445
+ user_id: string;
59446
+ }[];
59447
+ SetofOptions: {
59448
+ from: "*";
59449
+ to: "logistics_tasks";
59450
+ isOneToOne: false;
59451
+ isSetofReturn: true;
59452
+ };
59453
+ };
58775
59454
  claim_print_jobs: {
58776
59455
  Args: {
58777
59456
  _agent_id: string;
@@ -58836,10 +59515,24 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
58836
59515
  isSetofReturn: true;
58837
59516
  };
58838
59517
  };
59518
+ cleanup_floriday_stock_queue: {
59519
+ Args: never;
59520
+ Returns: undefined;
59521
+ };
58839
59522
  cleanup_old_bookings: {
58840
59523
  Args: never;
58841
59524
  Returns: undefined;
58842
59525
  };
59526
+ complete_floriday_stock_queue: {
59527
+ Args: {
59528
+ p_attempt_id?: string;
59529
+ p_error?: string;
59530
+ p_id: string;
59531
+ p_ok: boolean;
59532
+ p_permanent?: boolean;
59533
+ };
59534
+ Returns: undefined;
59535
+ };
58843
59536
  consume_bom_for_production: {
58844
59537
  Args: {
58845
59538
  p_connection_id: string;
@@ -59531,6 +60224,8 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
59531
60224
  p_worker?: string;
59532
60225
  };
59533
60226
  Returns: {
60227
+ attempt_log: import("../../../integrations/supabase/types").Json;
60228
+ attempts: number;
59534
60229
  buffer_ref: string | null;
59535
60230
  claimed_at: string | null;
59536
60231
  claimed_by: string | null;
@@ -59540,6 +60235,8 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
59540
60235
  due_at: string | null;
59541
60236
  error: string | null;
59542
60237
  id: string;
60238
+ last_error: string | null;
60239
+ next_attempt_at: string | null;
59543
60240
  order_ref: string;
59544
60241
  owner_module: string;
59545
60242
  payload: import("../../../integrations/supabase/types").Json;
@@ -59572,6 +60269,8 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
59572
60269
  p_worker?: string;
59573
60270
  };
59574
60271
  Returns: {
60272
+ attempt_log: import("../../../integrations/supabase/types").Json;
60273
+ attempts: number;
59575
60274
  buffer_ref: string | null;
59576
60275
  claimed_at: string | null;
59577
60276
  claimed_by: string | null;
@@ -59581,6 +60280,8 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
59581
60280
  due_at: string | null;
59582
60281
  error: string | null;
59583
60282
  id: string;
60283
+ last_error: string | null;
60284
+ next_attempt_at: string | null;
59584
60285
  order_ref: string;
59585
60286
  owner_module: string;
59586
60287
  payload: import("../../../integrations/supabase/types").Json;
@@ -59613,6 +60314,8 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
59613
60314
  p_task_id: string;
59614
60315
  };
59615
60316
  Returns: {
60317
+ attempt_log: import("../../../integrations/supabase/types").Json;
60318
+ attempts: number;
59616
60319
  buffer_ref: string | null;
59617
60320
  claimed_at: string | null;
59618
60321
  claimed_by: string | null;
@@ -59622,6 +60325,8 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
59622
60325
  due_at: string | null;
59623
60326
  error: string | null;
59624
60327
  id: string;
60328
+ last_error: string | null;
60329
+ next_attempt_at: string | null;
59625
60330
  order_ref: string;
59626
60331
  owner_module: string;
59627
60332
  payload: import("../../../integrations/supabase/types").Json;
@@ -59703,6 +60408,8 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
59703
60408
  p_task_id: string;
59704
60409
  };
59705
60410
  Returns: {
60411
+ attempt_log: import("../../../integrations/supabase/types").Json;
60412
+ attempts: number;
59706
60413
  buffer_ref: string | null;
59707
60414
  claimed_at: string | null;
59708
60415
  claimed_by: string | null;
@@ -59712,6 +60419,8 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
59712
60419
  due_at: string | null;
59713
60420
  error: string | null;
59714
60421
  id: string;
60422
+ last_error: string | null;
60423
+ next_attempt_at: string | null;
59715
60424
  order_ref: string;
59716
60425
  owner_module: string;
59717
60426
  payload: import("../../../integrations/supabase/types").Json;
@@ -59738,6 +60447,51 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
59738
60447
  isSetofReturn: false;
59739
60448
  };
59740
60449
  };
60450
+ logistics_floriday_claim_pushes: {
60451
+ Args: {
60452
+ _lease_seconds?: number;
60453
+ _limit?: number;
60454
+ _worker?: string;
60455
+ };
60456
+ Returns: {
60457
+ attempts: number;
60458
+ fulfillment_order_id: string;
60459
+ id: string;
60460
+ last_sent_hash: string;
60461
+ order_ref: string;
60462
+ payload: import("../../../integrations/supabase/types").Json;
60463
+ payload_hash: string;
60464
+ revision: number;
60465
+ }[];
60466
+ };
60467
+ logistics_floriday_finish_push: {
60468
+ Args: {
60469
+ _error?: string;
60470
+ _fulfillment_order_id?: string;
60471
+ _id: string;
60472
+ _max_age_hours?: number;
60473
+ _max_attempts?: number;
60474
+ _ok: boolean;
60475
+ _permanent?: boolean;
60476
+ _revision: number;
60477
+ _sent_hash?: string;
60478
+ };
60479
+ Returns: string;
60480
+ };
60481
+ logistics_floriday_prune_pushes: {
60482
+ Args: {
60483
+ _days?: number;
60484
+ };
60485
+ Returns: number;
60486
+ };
60487
+ logistics_floriday_queue_push: {
60488
+ Args: {
60489
+ _order_ref: string;
60490
+ _payload?: import("../../../integrations/supabase/types").Json;
60491
+ _payload_hash?: string;
60492
+ };
60493
+ Returns: string;
60494
+ };
59741
60495
  logistics_live_carriers: {
59742
60496
  Args: {
59743
60497
  p_order_ref: string;
@@ -60465,6 +61219,10 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
60465
61219
  Args: never;
60466
61220
  Returns: undefined;
60467
61221
  };
61222
+ run_logistics_tasks_dispatch: {
61223
+ Args: never;
61224
+ Returns: undefined;
61225
+ };
60468
61226
  run_twinfield_queue_tick: {
60469
61227
  Args: never;
60470
61228
  Returns: undefined;
@@ -60705,6 +61463,13 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
60705
61463
  };
60706
61464
  Returns: number;
60707
61465
  };
61466
+ schedule_floriday_stock_queue_process: {
61467
+ Args: {
61468
+ p_apikey: string;
61469
+ p_url: string;
61470
+ };
61471
+ Returns: number;
61472
+ };
60708
61473
  schedule_floriday_token_refresh: {
60709
61474
  Args: {
60710
61475
  p_apikey: string;