@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
@@ -5745,12 +5745,17 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
5745
5745
  attempts: number;
5746
5746
  connection_id: string;
5747
5747
  created_at: string;
5748
+ desired_available: boolean | null;
5748
5749
  gateway_attempt_id: string | null;
5749
5750
  id: string;
5750
5751
  last_error: string | null;
5752
+ locked_at: string | null;
5753
+ locked_by: string | null;
5754
+ next_attempt_at: string;
5751
5755
  number_of_pieces: number;
5752
5756
  sent_at: string | null;
5753
5757
  status: string;
5758
+ superseded_by: string | null;
5754
5759
  trade_item_id: string;
5755
5760
  updated_at: string;
5756
5761
  user_id: string;
@@ -5759,12 +5764,17 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
5759
5764
  attempts?: number;
5760
5765
  connection_id: string;
5761
5766
  created_at?: string;
5767
+ desired_available?: boolean | null;
5762
5768
  gateway_attempt_id?: string | null;
5763
5769
  id?: string;
5764
5770
  last_error?: string | null;
5771
+ locked_at?: string | null;
5772
+ locked_by?: string | null;
5773
+ next_attempt_at?: string;
5765
5774
  number_of_pieces?: number;
5766
5775
  sent_at?: string | null;
5767
5776
  status?: string;
5777
+ superseded_by?: string | null;
5768
5778
  trade_item_id: string;
5769
5779
  updated_at?: string;
5770
5780
  user_id: string;
@@ -5773,12 +5783,17 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
5773
5783
  attempts?: number;
5774
5784
  connection_id?: string;
5775
5785
  created_at?: string;
5786
+ desired_available?: boolean | null;
5776
5787
  gateway_attempt_id?: string | null;
5777
5788
  id?: string;
5778
5789
  last_error?: string | null;
5790
+ locked_at?: string | null;
5791
+ locked_by?: string | null;
5792
+ next_attempt_at?: string;
5779
5793
  number_of_pieces?: number;
5780
5794
  sent_at?: string | null;
5781
5795
  status?: string;
5796
+ superseded_by?: string | null;
5782
5797
  trade_item_id?: string;
5783
5798
  updated_at?: string;
5784
5799
  user_id?: string;
@@ -8527,6 +8542,69 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
8527
8542
  };
8528
8543
  Relationships: [];
8529
8544
  };
8545
+ logistics_floriday_pushes: {
8546
+ Row: {
8547
+ attempts: number;
8548
+ created_at: string;
8549
+ first_queued_at: string;
8550
+ fulfillment_order_id: string | null;
8551
+ id: string;
8552
+ last_error: string | null;
8553
+ last_error_at: string | null;
8554
+ last_sent_hash: string | null;
8555
+ locked_by: string | null;
8556
+ locked_until: string | null;
8557
+ next_attempt_at: string;
8558
+ order_ref: string;
8559
+ payload: import("../integrations/supabase/types").Json;
8560
+ payload_hash: string | null;
8561
+ revision: number;
8562
+ sent_at: string | null;
8563
+ status: string;
8564
+ updated_at: string;
8565
+ };
8566
+ Insert: {
8567
+ attempts?: number;
8568
+ created_at?: string;
8569
+ first_queued_at?: string;
8570
+ fulfillment_order_id?: string | null;
8571
+ id?: string;
8572
+ last_error?: string | null;
8573
+ last_error_at?: string | null;
8574
+ last_sent_hash?: string | null;
8575
+ locked_by?: string | null;
8576
+ locked_until?: string | null;
8577
+ next_attempt_at?: string;
8578
+ order_ref: string;
8579
+ payload?: import("../integrations/supabase/types").Json;
8580
+ payload_hash?: string | null;
8581
+ revision?: number;
8582
+ sent_at?: string | null;
8583
+ status?: string;
8584
+ updated_at?: string;
8585
+ };
8586
+ Update: {
8587
+ attempts?: number;
8588
+ created_at?: string;
8589
+ first_queued_at?: string;
8590
+ fulfillment_order_id?: string | null;
8591
+ id?: string;
8592
+ last_error?: string | null;
8593
+ last_error_at?: string | null;
8594
+ last_sent_hash?: string | null;
8595
+ locked_by?: string | null;
8596
+ locked_until?: string | null;
8597
+ next_attempt_at?: string;
8598
+ order_ref?: string;
8599
+ payload?: import("../integrations/supabase/types").Json;
8600
+ payload_hash?: string | null;
8601
+ revision?: number;
8602
+ sent_at?: string | null;
8603
+ status?: string;
8604
+ updated_at?: string;
8605
+ };
8606
+ Relationships: [];
8607
+ };
8530
8608
  logistics_formulas: {
8531
8609
  Row: {
8532
8610
  created_at: string;
@@ -9138,6 +9216,8 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
9138
9216
  };
9139
9217
  logistics_tasks: {
9140
9218
  Row: {
9219
+ attempt_log: import("../integrations/supabase/types").Json;
9220
+ attempts: number;
9141
9221
  buffer_ref: string | null;
9142
9222
  claimed_at: string | null;
9143
9223
  claimed_by: string | null;
@@ -9147,6 +9227,8 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
9147
9227
  due_at: string | null;
9148
9228
  error: string | null;
9149
9229
  id: string;
9230
+ last_error: string | null;
9231
+ next_attempt_at: string | null;
9150
9232
  order_ref: string;
9151
9233
  owner_module: string;
9152
9234
  payload: import("../integrations/supabase/types").Json;
@@ -9167,6 +9249,8 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
9167
9249
  user_id: string;
9168
9250
  };
9169
9251
  Insert: {
9252
+ attempt_log?: import("../integrations/supabase/types").Json;
9253
+ attempts?: number;
9170
9254
  buffer_ref?: string | null;
9171
9255
  claimed_at?: string | null;
9172
9256
  claimed_by?: string | null;
@@ -9176,6 +9260,8 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
9176
9260
  due_at?: string | null;
9177
9261
  error?: string | null;
9178
9262
  id?: string;
9263
+ last_error?: string | null;
9264
+ next_attempt_at?: string | null;
9179
9265
  order_ref: string;
9180
9266
  owner_module: string;
9181
9267
  payload?: import("../integrations/supabase/types").Json;
@@ -9196,6 +9282,8 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
9196
9282
  user_id?: string;
9197
9283
  };
9198
9284
  Update: {
9285
+ attempt_log?: import("../integrations/supabase/types").Json;
9286
+ attempts?: number;
9199
9287
  buffer_ref?: string | null;
9200
9288
  claimed_at?: string | null;
9201
9289
  claimed_by?: string | null;
@@ -9205,6 +9293,8 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
9205
9293
  due_at?: string | null;
9206
9294
  error?: string | null;
9207
9295
  id?: string;
9296
+ last_error?: string | null;
9297
+ next_attempt_at?: string | null;
9208
9298
  order_ref?: string;
9209
9299
  owner_module?: string;
9210
9300
  payload?: import("../integrations/supabase/types").Json;
@@ -18209,6 +18299,85 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
18209
18299
  };
18210
18300
  Returns: import("../integrations/supabase/types").Json;
18211
18301
  };
18302
+ claim_floriday_stock_queue: {
18303
+ Args: {
18304
+ p_limit?: number;
18305
+ p_worker?: string;
18306
+ };
18307
+ Returns: {
18308
+ attempts: number;
18309
+ connection_id: string;
18310
+ created_at: string;
18311
+ desired_available: boolean | null;
18312
+ gateway_attempt_id: string | null;
18313
+ id: string;
18314
+ last_error: string | null;
18315
+ locked_at: string | null;
18316
+ locked_by: string | null;
18317
+ next_attempt_at: string;
18318
+ number_of_pieces: number;
18319
+ sent_at: string | null;
18320
+ status: string;
18321
+ superseded_by: string | null;
18322
+ trade_item_id: string;
18323
+ updated_at: string;
18324
+ user_id: string;
18325
+ }[];
18326
+ SetofOptions: {
18327
+ from: "*";
18328
+ to: "floriday_continuous_stock_queue";
18329
+ isOneToOne: false;
18330
+ isSetofReturn: true;
18331
+ };
18332
+ };
18333
+ claim_logistics_tasks: {
18334
+ Args: {
18335
+ _limit?: number;
18336
+ _owner_module: string;
18337
+ _stale_minutes?: number;
18338
+ _task_type: string;
18339
+ _worker: string;
18340
+ };
18341
+ Returns: {
18342
+ attempt_log: import("../integrations/supabase/types").Json;
18343
+ attempts: number;
18344
+ buffer_ref: string | null;
18345
+ claimed_at: string | null;
18346
+ claimed_by: string | null;
18347
+ completed_at: string | null;
18348
+ created_at: string;
18349
+ depends_on: string[];
18350
+ due_at: string | null;
18351
+ error: string | null;
18352
+ id: string;
18353
+ last_error: string | null;
18354
+ next_attempt_at: string | null;
18355
+ order_ref: string;
18356
+ owner_module: string;
18357
+ payload: import("../integrations/supabase/types").Json;
18358
+ plan_run_id: string | null;
18359
+ planned_end: string | null;
18360
+ planned_start: string | null;
18361
+ priority: number;
18362
+ result: import("../integrations/supabase/types").Json | null;
18363
+ rule_config_id: string | null;
18364
+ rule_version: number | null;
18365
+ sequence: number;
18366
+ shadow: boolean;
18367
+ started_at: string | null;
18368
+ status: string;
18369
+ strategy_id: string | null;
18370
+ task_type: string;
18371
+ updated_at: string;
18372
+ user_id: string;
18373
+ }[];
18374
+ SetofOptions: {
18375
+ from: "*";
18376
+ to: "logistics_tasks";
18377
+ isOneToOne: false;
18378
+ isSetofReturn: true;
18379
+ };
18380
+ };
18212
18381
  claim_print_jobs: {
18213
18382
  Args: {
18214
18383
  _agent_id: string;
@@ -18273,10 +18442,24 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
18273
18442
  isSetofReturn: true;
18274
18443
  };
18275
18444
  };
18445
+ cleanup_floriday_stock_queue: {
18446
+ Args: never;
18447
+ Returns: undefined;
18448
+ };
18276
18449
  cleanup_old_bookings: {
18277
18450
  Args: never;
18278
18451
  Returns: undefined;
18279
18452
  };
18453
+ complete_floriday_stock_queue: {
18454
+ Args: {
18455
+ p_attempt_id?: string;
18456
+ p_error?: string;
18457
+ p_id: string;
18458
+ p_ok: boolean;
18459
+ p_permanent?: boolean;
18460
+ };
18461
+ Returns: undefined;
18462
+ };
18280
18463
  consume_bom_for_production: {
18281
18464
  Args: {
18282
18465
  p_connection_id: string;
@@ -18968,6 +19151,8 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
18968
19151
  p_worker?: string;
18969
19152
  };
18970
19153
  Returns: {
19154
+ attempt_log: import("../integrations/supabase/types").Json;
19155
+ attempts: number;
18971
19156
  buffer_ref: string | null;
18972
19157
  claimed_at: string | null;
18973
19158
  claimed_by: string | null;
@@ -18977,6 +19162,8 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
18977
19162
  due_at: string | null;
18978
19163
  error: string | null;
18979
19164
  id: string;
19165
+ last_error: string | null;
19166
+ next_attempt_at: string | null;
18980
19167
  order_ref: string;
18981
19168
  owner_module: string;
18982
19169
  payload: import("../integrations/supabase/types").Json;
@@ -19009,6 +19196,8 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
19009
19196
  p_worker?: string;
19010
19197
  };
19011
19198
  Returns: {
19199
+ attempt_log: import("../integrations/supabase/types").Json;
19200
+ attempts: number;
19012
19201
  buffer_ref: string | null;
19013
19202
  claimed_at: string | null;
19014
19203
  claimed_by: string | null;
@@ -19018,6 +19207,8 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
19018
19207
  due_at: string | null;
19019
19208
  error: string | null;
19020
19209
  id: string;
19210
+ last_error: string | null;
19211
+ next_attempt_at: string | null;
19021
19212
  order_ref: string;
19022
19213
  owner_module: string;
19023
19214
  payload: import("../integrations/supabase/types").Json;
@@ -19050,6 +19241,8 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
19050
19241
  p_task_id: string;
19051
19242
  };
19052
19243
  Returns: {
19244
+ attempt_log: import("../integrations/supabase/types").Json;
19245
+ attempts: number;
19053
19246
  buffer_ref: string | null;
19054
19247
  claimed_at: string | null;
19055
19248
  claimed_by: string | null;
@@ -19059,6 +19252,8 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
19059
19252
  due_at: string | null;
19060
19253
  error: string | null;
19061
19254
  id: string;
19255
+ last_error: string | null;
19256
+ next_attempt_at: string | null;
19062
19257
  order_ref: string;
19063
19258
  owner_module: string;
19064
19259
  payload: import("../integrations/supabase/types").Json;
@@ -19140,6 +19335,8 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
19140
19335
  p_task_id: string;
19141
19336
  };
19142
19337
  Returns: {
19338
+ attempt_log: import("../integrations/supabase/types").Json;
19339
+ attempts: number;
19143
19340
  buffer_ref: string | null;
19144
19341
  claimed_at: string | null;
19145
19342
  claimed_by: string | null;
@@ -19149,6 +19346,8 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
19149
19346
  due_at: string | null;
19150
19347
  error: string | null;
19151
19348
  id: string;
19349
+ last_error: string | null;
19350
+ next_attempt_at: string | null;
19152
19351
  order_ref: string;
19153
19352
  owner_module: string;
19154
19353
  payload: import("../integrations/supabase/types").Json;
@@ -19175,6 +19374,51 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
19175
19374
  isSetofReturn: false;
19176
19375
  };
19177
19376
  };
19377
+ logistics_floriday_claim_pushes: {
19378
+ Args: {
19379
+ _lease_seconds?: number;
19380
+ _limit?: number;
19381
+ _worker?: string;
19382
+ };
19383
+ Returns: {
19384
+ attempts: number;
19385
+ fulfillment_order_id: string;
19386
+ id: string;
19387
+ last_sent_hash: string;
19388
+ order_ref: string;
19389
+ payload: import("../integrations/supabase/types").Json;
19390
+ payload_hash: string;
19391
+ revision: number;
19392
+ }[];
19393
+ };
19394
+ logistics_floriday_finish_push: {
19395
+ Args: {
19396
+ _error?: string;
19397
+ _fulfillment_order_id?: string;
19398
+ _id: string;
19399
+ _max_age_hours?: number;
19400
+ _max_attempts?: number;
19401
+ _ok: boolean;
19402
+ _permanent?: boolean;
19403
+ _revision: number;
19404
+ _sent_hash?: string;
19405
+ };
19406
+ Returns: string;
19407
+ };
19408
+ logistics_floriday_prune_pushes: {
19409
+ Args: {
19410
+ _days?: number;
19411
+ };
19412
+ Returns: number;
19413
+ };
19414
+ logistics_floriday_queue_push: {
19415
+ Args: {
19416
+ _order_ref: string;
19417
+ _payload?: import("../integrations/supabase/types").Json;
19418
+ _payload_hash?: string;
19419
+ };
19420
+ Returns: string;
19421
+ };
19178
19422
  logistics_live_carriers: {
19179
19423
  Args: {
19180
19424
  p_order_ref: string;
@@ -19902,6 +20146,10 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
19902
20146
  Args: never;
19903
20147
  Returns: undefined;
19904
20148
  };
20149
+ run_logistics_tasks_dispatch: {
20150
+ Args: never;
20151
+ Returns: undefined;
20152
+ };
19905
20153
  run_twinfield_queue_tick: {
19906
20154
  Args: never;
19907
20155
  Returns: undefined;
@@ -20142,6 +20390,13 @@ export declare const prepareTwinfieldAdoption: import("@tanstack/start-client-co
20142
20390
  };
20143
20391
  Returns: number;
20144
20392
  };
20393
+ schedule_floriday_stock_queue_process: {
20394
+ Args: {
20395
+ p_apikey: string;
20396
+ p_url: string;
20397
+ };
20398
+ Returns: number;
20399
+ };
20145
20400
  schedule_floriday_token_refresh: {
20146
20401
  Args: {
20147
20402
  p_apikey: string;
@@ -26063,12 +26318,17 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
26063
26318
  attempts: number;
26064
26319
  connection_id: string;
26065
26320
  created_at: string;
26321
+ desired_available: boolean | null;
26066
26322
  gateway_attempt_id: string | null;
26067
26323
  id: string;
26068
26324
  last_error: string | null;
26325
+ locked_at: string | null;
26326
+ locked_by: string | null;
26327
+ next_attempt_at: string;
26069
26328
  number_of_pieces: number;
26070
26329
  sent_at: string | null;
26071
26330
  status: string;
26331
+ superseded_by: string | null;
26072
26332
  trade_item_id: string;
26073
26333
  updated_at: string;
26074
26334
  user_id: string;
@@ -26077,12 +26337,17 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
26077
26337
  attempts?: number;
26078
26338
  connection_id: string;
26079
26339
  created_at?: string;
26340
+ desired_available?: boolean | null;
26080
26341
  gateway_attempt_id?: string | null;
26081
26342
  id?: string;
26082
26343
  last_error?: string | null;
26344
+ locked_at?: string | null;
26345
+ locked_by?: string | null;
26346
+ next_attempt_at?: string;
26083
26347
  number_of_pieces?: number;
26084
26348
  sent_at?: string | null;
26085
26349
  status?: string;
26350
+ superseded_by?: string | null;
26086
26351
  trade_item_id: string;
26087
26352
  updated_at?: string;
26088
26353
  user_id: string;
@@ -26091,12 +26356,17 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
26091
26356
  attempts?: number;
26092
26357
  connection_id?: string;
26093
26358
  created_at?: string;
26359
+ desired_available?: boolean | null;
26094
26360
  gateway_attempt_id?: string | null;
26095
26361
  id?: string;
26096
26362
  last_error?: string | null;
26363
+ locked_at?: string | null;
26364
+ locked_by?: string | null;
26365
+ next_attempt_at?: string;
26097
26366
  number_of_pieces?: number;
26098
26367
  sent_at?: string | null;
26099
26368
  status?: string;
26369
+ superseded_by?: string | null;
26100
26370
  trade_item_id?: string;
26101
26371
  updated_at?: string;
26102
26372
  user_id?: string;
@@ -28845,6 +29115,69 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
28845
29115
  };
28846
29116
  Relationships: [];
28847
29117
  };
29118
+ logistics_floriday_pushes: {
29119
+ Row: {
29120
+ attempts: number;
29121
+ created_at: string;
29122
+ first_queued_at: string;
29123
+ fulfillment_order_id: string | null;
29124
+ id: string;
29125
+ last_error: string | null;
29126
+ last_error_at: string | null;
29127
+ last_sent_hash: string | null;
29128
+ locked_by: string | null;
29129
+ locked_until: string | null;
29130
+ next_attempt_at: string;
29131
+ order_ref: string;
29132
+ payload: import("../integrations/supabase/types").Json;
29133
+ payload_hash: string | null;
29134
+ revision: number;
29135
+ sent_at: string | null;
29136
+ status: string;
29137
+ updated_at: string;
29138
+ };
29139
+ Insert: {
29140
+ attempts?: number;
29141
+ created_at?: string;
29142
+ first_queued_at?: string;
29143
+ fulfillment_order_id?: string | null;
29144
+ id?: string;
29145
+ last_error?: string | null;
29146
+ last_error_at?: string | null;
29147
+ last_sent_hash?: string | null;
29148
+ locked_by?: string | null;
29149
+ locked_until?: string | null;
29150
+ next_attempt_at?: string;
29151
+ order_ref: string;
29152
+ payload?: import("../integrations/supabase/types").Json;
29153
+ payload_hash?: string | null;
29154
+ revision?: number;
29155
+ sent_at?: string | null;
29156
+ status?: string;
29157
+ updated_at?: string;
29158
+ };
29159
+ Update: {
29160
+ attempts?: number;
29161
+ created_at?: string;
29162
+ first_queued_at?: string;
29163
+ fulfillment_order_id?: string | null;
29164
+ id?: string;
29165
+ last_error?: string | null;
29166
+ last_error_at?: string | null;
29167
+ last_sent_hash?: string | null;
29168
+ locked_by?: string | null;
29169
+ locked_until?: string | null;
29170
+ next_attempt_at?: string;
29171
+ order_ref?: string;
29172
+ payload?: import("../integrations/supabase/types").Json;
29173
+ payload_hash?: string | null;
29174
+ revision?: number;
29175
+ sent_at?: string | null;
29176
+ status?: string;
29177
+ updated_at?: string;
29178
+ };
29179
+ Relationships: [];
29180
+ };
28848
29181
  logistics_formulas: {
28849
29182
  Row: {
28850
29183
  created_at: string;
@@ -29456,6 +29789,8 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
29456
29789
  };
29457
29790
  logistics_tasks: {
29458
29791
  Row: {
29792
+ attempt_log: import("../integrations/supabase/types").Json;
29793
+ attempts: number;
29459
29794
  buffer_ref: string | null;
29460
29795
  claimed_at: string | null;
29461
29796
  claimed_by: string | null;
@@ -29465,6 +29800,8 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
29465
29800
  due_at: string | null;
29466
29801
  error: string | null;
29467
29802
  id: string;
29803
+ last_error: string | null;
29804
+ next_attempt_at: string | null;
29468
29805
  order_ref: string;
29469
29806
  owner_module: string;
29470
29807
  payload: import("../integrations/supabase/types").Json;
@@ -29485,6 +29822,8 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
29485
29822
  user_id: string;
29486
29823
  };
29487
29824
  Insert: {
29825
+ attempt_log?: import("../integrations/supabase/types").Json;
29826
+ attempts?: number;
29488
29827
  buffer_ref?: string | null;
29489
29828
  claimed_at?: string | null;
29490
29829
  claimed_by?: string | null;
@@ -29494,6 +29833,8 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
29494
29833
  due_at?: string | null;
29495
29834
  error?: string | null;
29496
29835
  id?: string;
29836
+ last_error?: string | null;
29837
+ next_attempt_at?: string | null;
29497
29838
  order_ref: string;
29498
29839
  owner_module: string;
29499
29840
  payload?: import("../integrations/supabase/types").Json;
@@ -29514,6 +29855,8 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
29514
29855
  user_id?: string;
29515
29856
  };
29516
29857
  Update: {
29858
+ attempt_log?: import("../integrations/supabase/types").Json;
29859
+ attempts?: number;
29517
29860
  buffer_ref?: string | null;
29518
29861
  claimed_at?: string | null;
29519
29862
  claimed_by?: string | null;
@@ -29523,6 +29866,8 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
29523
29866
  due_at?: string | null;
29524
29867
  error?: string | null;
29525
29868
  id?: string;
29869
+ last_error?: string | null;
29870
+ next_attempt_at?: string | null;
29526
29871
  order_ref?: string;
29527
29872
  owner_module?: string;
29528
29873
  payload?: import("../integrations/supabase/types").Json;
@@ -38527,6 +38872,85 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
38527
38872
  };
38528
38873
  Returns: import("../integrations/supabase/types").Json;
38529
38874
  };
38875
+ claim_floriday_stock_queue: {
38876
+ Args: {
38877
+ p_limit?: number;
38878
+ p_worker?: string;
38879
+ };
38880
+ Returns: {
38881
+ attempts: number;
38882
+ connection_id: string;
38883
+ created_at: string;
38884
+ desired_available: boolean | null;
38885
+ gateway_attempt_id: string | null;
38886
+ id: string;
38887
+ last_error: string | null;
38888
+ locked_at: string | null;
38889
+ locked_by: string | null;
38890
+ next_attempt_at: string;
38891
+ number_of_pieces: number;
38892
+ sent_at: string | null;
38893
+ status: string;
38894
+ superseded_by: string | null;
38895
+ trade_item_id: string;
38896
+ updated_at: string;
38897
+ user_id: string;
38898
+ }[];
38899
+ SetofOptions: {
38900
+ from: "*";
38901
+ to: "floriday_continuous_stock_queue";
38902
+ isOneToOne: false;
38903
+ isSetofReturn: true;
38904
+ };
38905
+ };
38906
+ claim_logistics_tasks: {
38907
+ Args: {
38908
+ _limit?: number;
38909
+ _owner_module: string;
38910
+ _stale_minutes?: number;
38911
+ _task_type: string;
38912
+ _worker: string;
38913
+ };
38914
+ Returns: {
38915
+ attempt_log: import("../integrations/supabase/types").Json;
38916
+ attempts: number;
38917
+ buffer_ref: string | null;
38918
+ claimed_at: string | null;
38919
+ claimed_by: string | null;
38920
+ completed_at: string | null;
38921
+ created_at: string;
38922
+ depends_on: string[];
38923
+ due_at: string | null;
38924
+ error: string | null;
38925
+ id: string;
38926
+ last_error: string | null;
38927
+ next_attempt_at: string | null;
38928
+ order_ref: string;
38929
+ owner_module: string;
38930
+ payload: import("../integrations/supabase/types").Json;
38931
+ plan_run_id: string | null;
38932
+ planned_end: string | null;
38933
+ planned_start: string | null;
38934
+ priority: number;
38935
+ result: import("../integrations/supabase/types").Json | null;
38936
+ rule_config_id: string | null;
38937
+ rule_version: number | null;
38938
+ sequence: number;
38939
+ shadow: boolean;
38940
+ started_at: string | null;
38941
+ status: string;
38942
+ strategy_id: string | null;
38943
+ task_type: string;
38944
+ updated_at: string;
38945
+ user_id: string;
38946
+ }[];
38947
+ SetofOptions: {
38948
+ from: "*";
38949
+ to: "logistics_tasks";
38950
+ isOneToOne: false;
38951
+ isSetofReturn: true;
38952
+ };
38953
+ };
38530
38954
  claim_print_jobs: {
38531
38955
  Args: {
38532
38956
  _agent_id: string;
@@ -38591,10 +39015,24 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
38591
39015
  isSetofReturn: true;
38592
39016
  };
38593
39017
  };
39018
+ cleanup_floriday_stock_queue: {
39019
+ Args: never;
39020
+ Returns: undefined;
39021
+ };
38594
39022
  cleanup_old_bookings: {
38595
39023
  Args: never;
38596
39024
  Returns: undefined;
38597
39025
  };
39026
+ complete_floriday_stock_queue: {
39027
+ Args: {
39028
+ p_attempt_id?: string;
39029
+ p_error?: string;
39030
+ p_id: string;
39031
+ p_ok: boolean;
39032
+ p_permanent?: boolean;
39033
+ };
39034
+ Returns: undefined;
39035
+ };
38598
39036
  consume_bom_for_production: {
38599
39037
  Args: {
38600
39038
  p_connection_id: string;
@@ -39286,6 +39724,8 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
39286
39724
  p_worker?: string;
39287
39725
  };
39288
39726
  Returns: {
39727
+ attempt_log: import("../integrations/supabase/types").Json;
39728
+ attempts: number;
39289
39729
  buffer_ref: string | null;
39290
39730
  claimed_at: string | null;
39291
39731
  claimed_by: string | null;
@@ -39295,6 +39735,8 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
39295
39735
  due_at: string | null;
39296
39736
  error: string | null;
39297
39737
  id: string;
39738
+ last_error: string | null;
39739
+ next_attempt_at: string | null;
39298
39740
  order_ref: string;
39299
39741
  owner_module: string;
39300
39742
  payload: import("../integrations/supabase/types").Json;
@@ -39327,6 +39769,8 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
39327
39769
  p_worker?: string;
39328
39770
  };
39329
39771
  Returns: {
39772
+ attempt_log: import("../integrations/supabase/types").Json;
39773
+ attempts: number;
39330
39774
  buffer_ref: string | null;
39331
39775
  claimed_at: string | null;
39332
39776
  claimed_by: string | null;
@@ -39336,6 +39780,8 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
39336
39780
  due_at: string | null;
39337
39781
  error: string | null;
39338
39782
  id: string;
39783
+ last_error: string | null;
39784
+ next_attempt_at: string | null;
39339
39785
  order_ref: string;
39340
39786
  owner_module: string;
39341
39787
  payload: import("../integrations/supabase/types").Json;
@@ -39368,6 +39814,8 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
39368
39814
  p_task_id: string;
39369
39815
  };
39370
39816
  Returns: {
39817
+ attempt_log: import("../integrations/supabase/types").Json;
39818
+ attempts: number;
39371
39819
  buffer_ref: string | null;
39372
39820
  claimed_at: string | null;
39373
39821
  claimed_by: string | null;
@@ -39377,6 +39825,8 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
39377
39825
  due_at: string | null;
39378
39826
  error: string | null;
39379
39827
  id: string;
39828
+ last_error: string | null;
39829
+ next_attempt_at: string | null;
39380
39830
  order_ref: string;
39381
39831
  owner_module: string;
39382
39832
  payload: import("../integrations/supabase/types").Json;
@@ -39458,6 +39908,8 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
39458
39908
  p_task_id: string;
39459
39909
  };
39460
39910
  Returns: {
39911
+ attempt_log: import("../integrations/supabase/types").Json;
39912
+ attempts: number;
39461
39913
  buffer_ref: string | null;
39462
39914
  claimed_at: string | null;
39463
39915
  claimed_by: string | null;
@@ -39467,6 +39919,8 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
39467
39919
  due_at: string | null;
39468
39920
  error: string | null;
39469
39921
  id: string;
39922
+ last_error: string | null;
39923
+ next_attempt_at: string | null;
39470
39924
  order_ref: string;
39471
39925
  owner_module: string;
39472
39926
  payload: import("../integrations/supabase/types").Json;
@@ -39493,6 +39947,51 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
39493
39947
  isSetofReturn: false;
39494
39948
  };
39495
39949
  };
39950
+ logistics_floriday_claim_pushes: {
39951
+ Args: {
39952
+ _lease_seconds?: number;
39953
+ _limit?: number;
39954
+ _worker?: string;
39955
+ };
39956
+ Returns: {
39957
+ attempts: number;
39958
+ fulfillment_order_id: string;
39959
+ id: string;
39960
+ last_sent_hash: string;
39961
+ order_ref: string;
39962
+ payload: import("../integrations/supabase/types").Json;
39963
+ payload_hash: string;
39964
+ revision: number;
39965
+ }[];
39966
+ };
39967
+ logistics_floriday_finish_push: {
39968
+ Args: {
39969
+ _error?: string;
39970
+ _fulfillment_order_id?: string;
39971
+ _id: string;
39972
+ _max_age_hours?: number;
39973
+ _max_attempts?: number;
39974
+ _ok: boolean;
39975
+ _permanent?: boolean;
39976
+ _revision: number;
39977
+ _sent_hash?: string;
39978
+ };
39979
+ Returns: string;
39980
+ };
39981
+ logistics_floriday_prune_pushes: {
39982
+ Args: {
39983
+ _days?: number;
39984
+ };
39985
+ Returns: number;
39986
+ };
39987
+ logistics_floriday_queue_push: {
39988
+ Args: {
39989
+ _order_ref: string;
39990
+ _payload?: import("../integrations/supabase/types").Json;
39991
+ _payload_hash?: string;
39992
+ };
39993
+ Returns: string;
39994
+ };
39496
39995
  logistics_live_carriers: {
39497
39996
  Args: {
39498
39997
  p_order_ref: string;
@@ -40220,6 +40719,10 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
40220
40719
  Args: never;
40221
40720
  Returns: undefined;
40222
40721
  };
40722
+ run_logistics_tasks_dispatch: {
40723
+ Args: never;
40724
+ Returns: undefined;
40725
+ };
40223
40726
  run_twinfield_queue_tick: {
40224
40727
  Args: never;
40225
40728
  Returns: undefined;
@@ -40460,6 +40963,13 @@ export declare const adoptTwinfieldCustomer: import("@tanstack/start-client-core
40460
40963
  };
40461
40964
  Returns: number;
40462
40965
  };
40966
+ schedule_floriday_stock_queue_process: {
40967
+ Args: {
40968
+ p_apikey: string;
40969
+ p_url: string;
40970
+ };
40971
+ Returns: number;
40972
+ };
40463
40973
  schedule_floriday_token_refresh: {
40464
40974
  Args: {
40465
40975
  p_apikey: string;