@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
@@ -5720,12 +5720,17 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
5720
5720
  attempts: number;
5721
5721
  connection_id: string;
5722
5722
  created_at: string;
5723
+ desired_available: boolean | null;
5723
5724
  gateway_attempt_id: string | null;
5724
5725
  id: string;
5725
5726
  last_error: string | null;
5727
+ locked_at: string | null;
5728
+ locked_by: string | null;
5729
+ next_attempt_at: string;
5726
5730
  number_of_pieces: number;
5727
5731
  sent_at: string | null;
5728
5732
  status: string;
5733
+ superseded_by: string | null;
5729
5734
  trade_item_id: string;
5730
5735
  updated_at: string;
5731
5736
  user_id: string;
@@ -5734,12 +5739,17 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
5734
5739
  attempts?: number;
5735
5740
  connection_id: string;
5736
5741
  created_at?: string;
5742
+ desired_available?: boolean | null;
5737
5743
  gateway_attempt_id?: string | null;
5738
5744
  id?: string;
5739
5745
  last_error?: string | null;
5746
+ locked_at?: string | null;
5747
+ locked_by?: string | null;
5748
+ next_attempt_at?: string;
5740
5749
  number_of_pieces?: number;
5741
5750
  sent_at?: string | null;
5742
5751
  status?: string;
5752
+ superseded_by?: string | null;
5743
5753
  trade_item_id: string;
5744
5754
  updated_at?: string;
5745
5755
  user_id: string;
@@ -5748,12 +5758,17 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
5748
5758
  attempts?: number;
5749
5759
  connection_id?: string;
5750
5760
  created_at?: string;
5761
+ desired_available?: boolean | null;
5751
5762
  gateway_attempt_id?: string | null;
5752
5763
  id?: string;
5753
5764
  last_error?: string | null;
5765
+ locked_at?: string | null;
5766
+ locked_by?: string | null;
5767
+ next_attempt_at?: string;
5754
5768
  number_of_pieces?: number;
5755
5769
  sent_at?: string | null;
5756
5770
  status?: string;
5771
+ superseded_by?: string | null;
5757
5772
  trade_item_id?: string;
5758
5773
  updated_at?: string;
5759
5774
  user_id?: string;
@@ -8502,6 +8517,69 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
8502
8517
  };
8503
8518
  Relationships: [];
8504
8519
  };
8520
+ logistics_floriday_pushes: {
8521
+ Row: {
8522
+ attempts: number;
8523
+ created_at: string;
8524
+ first_queued_at: string;
8525
+ fulfillment_order_id: string | null;
8526
+ id: string;
8527
+ last_error: string | null;
8528
+ last_error_at: string | null;
8529
+ last_sent_hash: string | null;
8530
+ locked_by: string | null;
8531
+ locked_until: string | null;
8532
+ next_attempt_at: string;
8533
+ order_ref: string;
8534
+ payload: import("../integrations/supabase/types").Json;
8535
+ payload_hash: string | null;
8536
+ revision: number;
8537
+ sent_at: string | null;
8538
+ status: string;
8539
+ updated_at: string;
8540
+ };
8541
+ Insert: {
8542
+ attempts?: number;
8543
+ created_at?: string;
8544
+ first_queued_at?: string;
8545
+ fulfillment_order_id?: string | null;
8546
+ id?: string;
8547
+ last_error?: string | null;
8548
+ last_error_at?: string | null;
8549
+ last_sent_hash?: string | null;
8550
+ locked_by?: string | null;
8551
+ locked_until?: string | null;
8552
+ next_attempt_at?: string;
8553
+ order_ref: string;
8554
+ payload?: import("../integrations/supabase/types").Json;
8555
+ payload_hash?: string | null;
8556
+ revision?: number;
8557
+ sent_at?: string | null;
8558
+ status?: string;
8559
+ updated_at?: string;
8560
+ };
8561
+ Update: {
8562
+ attempts?: number;
8563
+ created_at?: string;
8564
+ first_queued_at?: string;
8565
+ fulfillment_order_id?: string | null;
8566
+ id?: string;
8567
+ last_error?: string | null;
8568
+ last_error_at?: string | null;
8569
+ last_sent_hash?: string | null;
8570
+ locked_by?: string | null;
8571
+ locked_until?: string | null;
8572
+ next_attempt_at?: string;
8573
+ order_ref?: string;
8574
+ payload?: import("../integrations/supabase/types").Json;
8575
+ payload_hash?: string | null;
8576
+ revision?: number;
8577
+ sent_at?: string | null;
8578
+ status?: string;
8579
+ updated_at?: string;
8580
+ };
8581
+ Relationships: [];
8582
+ };
8505
8583
  logistics_formulas: {
8506
8584
  Row: {
8507
8585
  created_at: string;
@@ -9113,6 +9191,8 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
9113
9191
  };
9114
9192
  logistics_tasks: {
9115
9193
  Row: {
9194
+ attempt_log: import("../integrations/supabase/types").Json;
9195
+ attempts: number;
9116
9196
  buffer_ref: string | null;
9117
9197
  claimed_at: string | null;
9118
9198
  claimed_by: string | null;
@@ -9122,6 +9202,8 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
9122
9202
  due_at: string | null;
9123
9203
  error: string | null;
9124
9204
  id: string;
9205
+ last_error: string | null;
9206
+ next_attempt_at: string | null;
9125
9207
  order_ref: string;
9126
9208
  owner_module: string;
9127
9209
  payload: import("../integrations/supabase/types").Json;
@@ -9142,6 +9224,8 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
9142
9224
  user_id: string;
9143
9225
  };
9144
9226
  Insert: {
9227
+ attempt_log?: import("../integrations/supabase/types").Json;
9228
+ attempts?: number;
9145
9229
  buffer_ref?: string | null;
9146
9230
  claimed_at?: string | null;
9147
9231
  claimed_by?: string | null;
@@ -9151,6 +9235,8 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
9151
9235
  due_at?: string | null;
9152
9236
  error?: string | null;
9153
9237
  id?: string;
9238
+ last_error?: string | null;
9239
+ next_attempt_at?: string | null;
9154
9240
  order_ref: string;
9155
9241
  owner_module: string;
9156
9242
  payload?: import("../integrations/supabase/types").Json;
@@ -9171,6 +9257,8 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
9171
9257
  user_id?: string;
9172
9258
  };
9173
9259
  Update: {
9260
+ attempt_log?: import("../integrations/supabase/types").Json;
9261
+ attempts?: number;
9174
9262
  buffer_ref?: string | null;
9175
9263
  claimed_at?: string | null;
9176
9264
  claimed_by?: string | null;
@@ -9180,6 +9268,8 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
9180
9268
  due_at?: string | null;
9181
9269
  error?: string | null;
9182
9270
  id?: string;
9271
+ last_error?: string | null;
9272
+ next_attempt_at?: string | null;
9183
9273
  order_ref?: string;
9184
9274
  owner_module?: string;
9185
9275
  payload?: import("../integrations/supabase/types").Json;
@@ -18184,6 +18274,85 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
18184
18274
  };
18185
18275
  Returns: import("../integrations/supabase/types").Json;
18186
18276
  };
18277
+ claim_floriday_stock_queue: {
18278
+ Args: {
18279
+ p_limit?: number;
18280
+ p_worker?: string;
18281
+ };
18282
+ Returns: {
18283
+ attempts: number;
18284
+ connection_id: string;
18285
+ created_at: string;
18286
+ desired_available: boolean | null;
18287
+ gateway_attempt_id: string | null;
18288
+ id: string;
18289
+ last_error: string | null;
18290
+ locked_at: string | null;
18291
+ locked_by: string | null;
18292
+ next_attempt_at: string;
18293
+ number_of_pieces: number;
18294
+ sent_at: string | null;
18295
+ status: string;
18296
+ superseded_by: string | null;
18297
+ trade_item_id: string;
18298
+ updated_at: string;
18299
+ user_id: string;
18300
+ }[];
18301
+ SetofOptions: {
18302
+ from: "*";
18303
+ to: "floriday_continuous_stock_queue";
18304
+ isOneToOne: false;
18305
+ isSetofReturn: true;
18306
+ };
18307
+ };
18308
+ claim_logistics_tasks: {
18309
+ Args: {
18310
+ _limit?: number;
18311
+ _owner_module: string;
18312
+ _stale_minutes?: number;
18313
+ _task_type: string;
18314
+ _worker: string;
18315
+ };
18316
+ Returns: {
18317
+ attempt_log: import("../integrations/supabase/types").Json;
18318
+ attempts: number;
18319
+ buffer_ref: string | null;
18320
+ claimed_at: string | null;
18321
+ claimed_by: string | null;
18322
+ completed_at: string | null;
18323
+ created_at: string;
18324
+ depends_on: string[];
18325
+ due_at: string | null;
18326
+ error: string | null;
18327
+ id: string;
18328
+ last_error: string | null;
18329
+ next_attempt_at: string | null;
18330
+ order_ref: string;
18331
+ owner_module: string;
18332
+ payload: import("../integrations/supabase/types").Json;
18333
+ plan_run_id: string | null;
18334
+ planned_end: string | null;
18335
+ planned_start: string | null;
18336
+ priority: number;
18337
+ result: import("../integrations/supabase/types").Json | null;
18338
+ rule_config_id: string | null;
18339
+ rule_version: number | null;
18340
+ sequence: number;
18341
+ shadow: boolean;
18342
+ started_at: string | null;
18343
+ status: string;
18344
+ strategy_id: string | null;
18345
+ task_type: string;
18346
+ updated_at: string;
18347
+ user_id: string;
18348
+ }[];
18349
+ SetofOptions: {
18350
+ from: "*";
18351
+ to: "logistics_tasks";
18352
+ isOneToOne: false;
18353
+ isSetofReturn: true;
18354
+ };
18355
+ };
18187
18356
  claim_print_jobs: {
18188
18357
  Args: {
18189
18358
  _agent_id: string;
@@ -18248,10 +18417,24 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
18248
18417
  isSetofReturn: true;
18249
18418
  };
18250
18419
  };
18420
+ cleanup_floriday_stock_queue: {
18421
+ Args: never;
18422
+ Returns: undefined;
18423
+ };
18251
18424
  cleanup_old_bookings: {
18252
18425
  Args: never;
18253
18426
  Returns: undefined;
18254
18427
  };
18428
+ complete_floriday_stock_queue: {
18429
+ Args: {
18430
+ p_attempt_id?: string;
18431
+ p_error?: string;
18432
+ p_id: string;
18433
+ p_ok: boolean;
18434
+ p_permanent?: boolean;
18435
+ };
18436
+ Returns: undefined;
18437
+ };
18255
18438
  consume_bom_for_production: {
18256
18439
  Args: {
18257
18440
  p_connection_id: string;
@@ -18943,6 +19126,8 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
18943
19126
  p_worker?: string;
18944
19127
  };
18945
19128
  Returns: {
19129
+ attempt_log: import("../integrations/supabase/types").Json;
19130
+ attempts: number;
18946
19131
  buffer_ref: string | null;
18947
19132
  claimed_at: string | null;
18948
19133
  claimed_by: string | null;
@@ -18952,6 +19137,8 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
18952
19137
  due_at: string | null;
18953
19138
  error: string | null;
18954
19139
  id: string;
19140
+ last_error: string | null;
19141
+ next_attempt_at: string | null;
18955
19142
  order_ref: string;
18956
19143
  owner_module: string;
18957
19144
  payload: import("../integrations/supabase/types").Json;
@@ -18984,6 +19171,8 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
18984
19171
  p_worker?: string;
18985
19172
  };
18986
19173
  Returns: {
19174
+ attempt_log: import("../integrations/supabase/types").Json;
19175
+ attempts: number;
18987
19176
  buffer_ref: string | null;
18988
19177
  claimed_at: string | null;
18989
19178
  claimed_by: string | null;
@@ -18993,6 +19182,8 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
18993
19182
  due_at: string | null;
18994
19183
  error: string | null;
18995
19184
  id: string;
19185
+ last_error: string | null;
19186
+ next_attempt_at: string | null;
18996
19187
  order_ref: string;
18997
19188
  owner_module: string;
18998
19189
  payload: import("../integrations/supabase/types").Json;
@@ -19025,6 +19216,8 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
19025
19216
  p_task_id: string;
19026
19217
  };
19027
19218
  Returns: {
19219
+ attempt_log: import("../integrations/supabase/types").Json;
19220
+ attempts: number;
19028
19221
  buffer_ref: string | null;
19029
19222
  claimed_at: string | null;
19030
19223
  claimed_by: string | null;
@@ -19034,6 +19227,8 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
19034
19227
  due_at: string | null;
19035
19228
  error: string | null;
19036
19229
  id: string;
19230
+ last_error: string | null;
19231
+ next_attempt_at: string | null;
19037
19232
  order_ref: string;
19038
19233
  owner_module: string;
19039
19234
  payload: import("../integrations/supabase/types").Json;
@@ -19115,6 +19310,8 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
19115
19310
  p_task_id: string;
19116
19311
  };
19117
19312
  Returns: {
19313
+ attempt_log: import("../integrations/supabase/types").Json;
19314
+ attempts: number;
19118
19315
  buffer_ref: string | null;
19119
19316
  claimed_at: string | null;
19120
19317
  claimed_by: string | null;
@@ -19124,6 +19321,8 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
19124
19321
  due_at: string | null;
19125
19322
  error: string | null;
19126
19323
  id: string;
19324
+ last_error: string | null;
19325
+ next_attempt_at: string | null;
19127
19326
  order_ref: string;
19128
19327
  owner_module: string;
19129
19328
  payload: import("../integrations/supabase/types").Json;
@@ -19150,6 +19349,51 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
19150
19349
  isSetofReturn: false;
19151
19350
  };
19152
19351
  };
19352
+ logistics_floriday_claim_pushes: {
19353
+ Args: {
19354
+ _lease_seconds?: number;
19355
+ _limit?: number;
19356
+ _worker?: string;
19357
+ };
19358
+ Returns: {
19359
+ attempts: number;
19360
+ fulfillment_order_id: string;
19361
+ id: string;
19362
+ last_sent_hash: string;
19363
+ order_ref: string;
19364
+ payload: import("../integrations/supabase/types").Json;
19365
+ payload_hash: string;
19366
+ revision: number;
19367
+ }[];
19368
+ };
19369
+ logistics_floriday_finish_push: {
19370
+ Args: {
19371
+ _error?: string;
19372
+ _fulfillment_order_id?: string;
19373
+ _id: string;
19374
+ _max_age_hours?: number;
19375
+ _max_attempts?: number;
19376
+ _ok: boolean;
19377
+ _permanent?: boolean;
19378
+ _revision: number;
19379
+ _sent_hash?: string;
19380
+ };
19381
+ Returns: string;
19382
+ };
19383
+ logistics_floriday_prune_pushes: {
19384
+ Args: {
19385
+ _days?: number;
19386
+ };
19387
+ Returns: number;
19388
+ };
19389
+ logistics_floriday_queue_push: {
19390
+ Args: {
19391
+ _order_ref: string;
19392
+ _payload?: import("../integrations/supabase/types").Json;
19393
+ _payload_hash?: string;
19394
+ };
19395
+ Returns: string;
19396
+ };
19153
19397
  logistics_live_carriers: {
19154
19398
  Args: {
19155
19399
  p_order_ref: string;
@@ -19877,6 +20121,10 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
19877
20121
  Args: never;
19878
20122
  Returns: undefined;
19879
20123
  };
20124
+ run_logistics_tasks_dispatch: {
20125
+ Args: never;
20126
+ Returns: undefined;
20127
+ };
19880
20128
  run_twinfield_queue_tick: {
19881
20129
  Args: never;
19882
20130
  Returns: undefined;
@@ -20117,6 +20365,13 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
20117
20365
  };
20118
20366
  Returns: number;
20119
20367
  };
20368
+ schedule_floriday_stock_queue_process: {
20369
+ Args: {
20370
+ p_apikey: string;
20371
+ p_url: string;
20372
+ };
20373
+ Returns: number;
20374
+ };
20120
20375
  schedule_floriday_token_refresh: {
20121
20376
  Args: {
20122
20377
  p_apikey: string;
@@ -26024,12 +26279,17 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
26024
26279
  attempts: number;
26025
26280
  connection_id: string;
26026
26281
  created_at: string;
26282
+ desired_available: boolean | null;
26027
26283
  gateway_attempt_id: string | null;
26028
26284
  id: string;
26029
26285
  last_error: string | null;
26286
+ locked_at: string | null;
26287
+ locked_by: string | null;
26288
+ next_attempt_at: string;
26030
26289
  number_of_pieces: number;
26031
26290
  sent_at: string | null;
26032
26291
  status: string;
26292
+ superseded_by: string | null;
26033
26293
  trade_item_id: string;
26034
26294
  updated_at: string;
26035
26295
  user_id: string;
@@ -26038,12 +26298,17 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
26038
26298
  attempts?: number;
26039
26299
  connection_id: string;
26040
26300
  created_at?: string;
26301
+ desired_available?: boolean | null;
26041
26302
  gateway_attempt_id?: string | null;
26042
26303
  id?: string;
26043
26304
  last_error?: string | null;
26305
+ locked_at?: string | null;
26306
+ locked_by?: string | null;
26307
+ next_attempt_at?: string;
26044
26308
  number_of_pieces?: number;
26045
26309
  sent_at?: string | null;
26046
26310
  status?: string;
26311
+ superseded_by?: string | null;
26047
26312
  trade_item_id: string;
26048
26313
  updated_at?: string;
26049
26314
  user_id: string;
@@ -26052,12 +26317,17 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
26052
26317
  attempts?: number;
26053
26318
  connection_id?: string;
26054
26319
  created_at?: string;
26320
+ desired_available?: boolean | null;
26055
26321
  gateway_attempt_id?: string | null;
26056
26322
  id?: string;
26057
26323
  last_error?: string | null;
26324
+ locked_at?: string | null;
26325
+ locked_by?: string | null;
26326
+ next_attempt_at?: string;
26058
26327
  number_of_pieces?: number;
26059
26328
  sent_at?: string | null;
26060
26329
  status?: string;
26330
+ superseded_by?: string | null;
26061
26331
  trade_item_id?: string;
26062
26332
  updated_at?: string;
26063
26333
  user_id?: string;
@@ -28806,6 +29076,69 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
28806
29076
  };
28807
29077
  Relationships: [];
28808
29078
  };
29079
+ logistics_floriday_pushes: {
29080
+ Row: {
29081
+ attempts: number;
29082
+ created_at: string;
29083
+ first_queued_at: string;
29084
+ fulfillment_order_id: string | null;
29085
+ id: string;
29086
+ last_error: string | null;
29087
+ last_error_at: string | null;
29088
+ last_sent_hash: string | null;
29089
+ locked_by: string | null;
29090
+ locked_until: string | null;
29091
+ next_attempt_at: string;
29092
+ order_ref: string;
29093
+ payload: import("../integrations/supabase/types").Json;
29094
+ payload_hash: string | null;
29095
+ revision: number;
29096
+ sent_at: string | null;
29097
+ status: string;
29098
+ updated_at: string;
29099
+ };
29100
+ Insert: {
29101
+ attempts?: number;
29102
+ created_at?: string;
29103
+ first_queued_at?: string;
29104
+ fulfillment_order_id?: string | null;
29105
+ id?: string;
29106
+ last_error?: string | null;
29107
+ last_error_at?: string | null;
29108
+ last_sent_hash?: string | null;
29109
+ locked_by?: string | null;
29110
+ locked_until?: string | null;
29111
+ next_attempt_at?: string;
29112
+ order_ref: string;
29113
+ payload?: import("../integrations/supabase/types").Json;
29114
+ payload_hash?: string | null;
29115
+ revision?: number;
29116
+ sent_at?: string | null;
29117
+ status?: string;
29118
+ updated_at?: string;
29119
+ };
29120
+ Update: {
29121
+ attempts?: number;
29122
+ created_at?: string;
29123
+ first_queued_at?: string;
29124
+ fulfillment_order_id?: string | null;
29125
+ id?: string;
29126
+ last_error?: string | null;
29127
+ last_error_at?: string | null;
29128
+ last_sent_hash?: string | null;
29129
+ locked_by?: string | null;
29130
+ locked_until?: string | null;
29131
+ next_attempt_at?: string;
29132
+ order_ref?: string;
29133
+ payload?: import("../integrations/supabase/types").Json;
29134
+ payload_hash?: string | null;
29135
+ revision?: number;
29136
+ sent_at?: string | null;
29137
+ status?: string;
29138
+ updated_at?: string;
29139
+ };
29140
+ Relationships: [];
29141
+ };
28809
29142
  logistics_formulas: {
28810
29143
  Row: {
28811
29144
  created_at: string;
@@ -29417,6 +29750,8 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
29417
29750
  };
29418
29751
  logistics_tasks: {
29419
29752
  Row: {
29753
+ attempt_log: import("../integrations/supabase/types").Json;
29754
+ attempts: number;
29420
29755
  buffer_ref: string | null;
29421
29756
  claimed_at: string | null;
29422
29757
  claimed_by: string | null;
@@ -29426,6 +29761,8 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
29426
29761
  due_at: string | null;
29427
29762
  error: string | null;
29428
29763
  id: string;
29764
+ last_error: string | null;
29765
+ next_attempt_at: string | null;
29429
29766
  order_ref: string;
29430
29767
  owner_module: string;
29431
29768
  payload: import("../integrations/supabase/types").Json;
@@ -29446,6 +29783,8 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
29446
29783
  user_id: string;
29447
29784
  };
29448
29785
  Insert: {
29786
+ attempt_log?: import("../integrations/supabase/types").Json;
29787
+ attempts?: number;
29449
29788
  buffer_ref?: string | null;
29450
29789
  claimed_at?: string | null;
29451
29790
  claimed_by?: string | null;
@@ -29455,6 +29794,8 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
29455
29794
  due_at?: string | null;
29456
29795
  error?: string | null;
29457
29796
  id?: string;
29797
+ last_error?: string | null;
29798
+ next_attempt_at?: string | null;
29458
29799
  order_ref: string;
29459
29800
  owner_module: string;
29460
29801
  payload?: import("../integrations/supabase/types").Json;
@@ -29475,6 +29816,8 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
29475
29816
  user_id?: string;
29476
29817
  };
29477
29818
  Update: {
29819
+ attempt_log?: import("../integrations/supabase/types").Json;
29820
+ attempts?: number;
29478
29821
  buffer_ref?: string | null;
29479
29822
  claimed_at?: string | null;
29480
29823
  claimed_by?: string | null;
@@ -29484,6 +29827,8 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
29484
29827
  due_at?: string | null;
29485
29828
  error?: string | null;
29486
29829
  id?: string;
29830
+ last_error?: string | null;
29831
+ next_attempt_at?: string | null;
29487
29832
  order_ref?: string;
29488
29833
  owner_module?: string;
29489
29834
  payload?: import("../integrations/supabase/types").Json;
@@ -38488,6 +38833,85 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
38488
38833
  };
38489
38834
  Returns: import("../integrations/supabase/types").Json;
38490
38835
  };
38836
+ claim_floriday_stock_queue: {
38837
+ Args: {
38838
+ p_limit?: number;
38839
+ p_worker?: string;
38840
+ };
38841
+ Returns: {
38842
+ attempts: number;
38843
+ connection_id: string;
38844
+ created_at: string;
38845
+ desired_available: boolean | null;
38846
+ gateway_attempt_id: string | null;
38847
+ id: string;
38848
+ last_error: string | null;
38849
+ locked_at: string | null;
38850
+ locked_by: string | null;
38851
+ next_attempt_at: string;
38852
+ number_of_pieces: number;
38853
+ sent_at: string | null;
38854
+ status: string;
38855
+ superseded_by: string | null;
38856
+ trade_item_id: string;
38857
+ updated_at: string;
38858
+ user_id: string;
38859
+ }[];
38860
+ SetofOptions: {
38861
+ from: "*";
38862
+ to: "floriday_continuous_stock_queue";
38863
+ isOneToOne: false;
38864
+ isSetofReturn: true;
38865
+ };
38866
+ };
38867
+ claim_logistics_tasks: {
38868
+ Args: {
38869
+ _limit?: number;
38870
+ _owner_module: string;
38871
+ _stale_minutes?: number;
38872
+ _task_type: string;
38873
+ _worker: string;
38874
+ };
38875
+ Returns: {
38876
+ attempt_log: import("../integrations/supabase/types").Json;
38877
+ attempts: number;
38878
+ buffer_ref: string | null;
38879
+ claimed_at: string | null;
38880
+ claimed_by: string | null;
38881
+ completed_at: string | null;
38882
+ created_at: string;
38883
+ depends_on: string[];
38884
+ due_at: string | null;
38885
+ error: string | null;
38886
+ id: string;
38887
+ last_error: string | null;
38888
+ next_attempt_at: string | null;
38889
+ order_ref: string;
38890
+ owner_module: string;
38891
+ payload: import("../integrations/supabase/types").Json;
38892
+ plan_run_id: string | null;
38893
+ planned_end: string | null;
38894
+ planned_start: string | null;
38895
+ priority: number;
38896
+ result: import("../integrations/supabase/types").Json | null;
38897
+ rule_config_id: string | null;
38898
+ rule_version: number | null;
38899
+ sequence: number;
38900
+ shadow: boolean;
38901
+ started_at: string | null;
38902
+ status: string;
38903
+ strategy_id: string | null;
38904
+ task_type: string;
38905
+ updated_at: string;
38906
+ user_id: string;
38907
+ }[];
38908
+ SetofOptions: {
38909
+ from: "*";
38910
+ to: "logistics_tasks";
38911
+ isOneToOne: false;
38912
+ isSetofReturn: true;
38913
+ };
38914
+ };
38491
38915
  claim_print_jobs: {
38492
38916
  Args: {
38493
38917
  _agent_id: string;
@@ -38552,10 +38976,24 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
38552
38976
  isSetofReturn: true;
38553
38977
  };
38554
38978
  };
38979
+ cleanup_floriday_stock_queue: {
38980
+ Args: never;
38981
+ Returns: undefined;
38982
+ };
38555
38983
  cleanup_old_bookings: {
38556
38984
  Args: never;
38557
38985
  Returns: undefined;
38558
38986
  };
38987
+ complete_floriday_stock_queue: {
38988
+ Args: {
38989
+ p_attempt_id?: string;
38990
+ p_error?: string;
38991
+ p_id: string;
38992
+ p_ok: boolean;
38993
+ p_permanent?: boolean;
38994
+ };
38995
+ Returns: undefined;
38996
+ };
38559
38997
  consume_bom_for_production: {
38560
38998
  Args: {
38561
38999
  p_connection_id: string;
@@ -39247,6 +39685,8 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
39247
39685
  p_worker?: string;
39248
39686
  };
39249
39687
  Returns: {
39688
+ attempt_log: import("../integrations/supabase/types").Json;
39689
+ attempts: number;
39250
39690
  buffer_ref: string | null;
39251
39691
  claimed_at: string | null;
39252
39692
  claimed_by: string | null;
@@ -39256,6 +39696,8 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
39256
39696
  due_at: string | null;
39257
39697
  error: string | null;
39258
39698
  id: string;
39699
+ last_error: string | null;
39700
+ next_attempt_at: string | null;
39259
39701
  order_ref: string;
39260
39702
  owner_module: string;
39261
39703
  payload: import("../integrations/supabase/types").Json;
@@ -39288,6 +39730,8 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
39288
39730
  p_worker?: string;
39289
39731
  };
39290
39732
  Returns: {
39733
+ attempt_log: import("../integrations/supabase/types").Json;
39734
+ attempts: number;
39291
39735
  buffer_ref: string | null;
39292
39736
  claimed_at: string | null;
39293
39737
  claimed_by: string | null;
@@ -39297,6 +39741,8 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
39297
39741
  due_at: string | null;
39298
39742
  error: string | null;
39299
39743
  id: string;
39744
+ last_error: string | null;
39745
+ next_attempt_at: string | null;
39300
39746
  order_ref: string;
39301
39747
  owner_module: string;
39302
39748
  payload: import("../integrations/supabase/types").Json;
@@ -39329,6 +39775,8 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
39329
39775
  p_task_id: string;
39330
39776
  };
39331
39777
  Returns: {
39778
+ attempt_log: import("../integrations/supabase/types").Json;
39779
+ attempts: number;
39332
39780
  buffer_ref: string | null;
39333
39781
  claimed_at: string | null;
39334
39782
  claimed_by: string | null;
@@ -39338,6 +39786,8 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
39338
39786
  due_at: string | null;
39339
39787
  error: string | null;
39340
39788
  id: string;
39789
+ last_error: string | null;
39790
+ next_attempt_at: string | null;
39341
39791
  order_ref: string;
39342
39792
  owner_module: string;
39343
39793
  payload: import("../integrations/supabase/types").Json;
@@ -39419,6 +39869,8 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
39419
39869
  p_task_id: string;
39420
39870
  };
39421
39871
  Returns: {
39872
+ attempt_log: import("../integrations/supabase/types").Json;
39873
+ attempts: number;
39422
39874
  buffer_ref: string | null;
39423
39875
  claimed_at: string | null;
39424
39876
  claimed_by: string | null;
@@ -39428,6 +39880,8 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
39428
39880
  due_at: string | null;
39429
39881
  error: string | null;
39430
39882
  id: string;
39883
+ last_error: string | null;
39884
+ next_attempt_at: string | null;
39431
39885
  order_ref: string;
39432
39886
  owner_module: string;
39433
39887
  payload: import("../integrations/supabase/types").Json;
@@ -39454,6 +39908,51 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
39454
39908
  isSetofReturn: false;
39455
39909
  };
39456
39910
  };
39911
+ logistics_floriday_claim_pushes: {
39912
+ Args: {
39913
+ _lease_seconds?: number;
39914
+ _limit?: number;
39915
+ _worker?: string;
39916
+ };
39917
+ Returns: {
39918
+ attempts: number;
39919
+ fulfillment_order_id: string;
39920
+ id: string;
39921
+ last_sent_hash: string;
39922
+ order_ref: string;
39923
+ payload: import("../integrations/supabase/types").Json;
39924
+ payload_hash: string;
39925
+ revision: number;
39926
+ }[];
39927
+ };
39928
+ logistics_floriday_finish_push: {
39929
+ Args: {
39930
+ _error?: string;
39931
+ _fulfillment_order_id?: string;
39932
+ _id: string;
39933
+ _max_age_hours?: number;
39934
+ _max_attempts?: number;
39935
+ _ok: boolean;
39936
+ _permanent?: boolean;
39937
+ _revision: number;
39938
+ _sent_hash?: string;
39939
+ };
39940
+ Returns: string;
39941
+ };
39942
+ logistics_floriday_prune_pushes: {
39943
+ Args: {
39944
+ _days?: number;
39945
+ };
39946
+ Returns: number;
39947
+ };
39948
+ logistics_floriday_queue_push: {
39949
+ Args: {
39950
+ _order_ref: string;
39951
+ _payload?: import("../integrations/supabase/types").Json;
39952
+ _payload_hash?: string;
39953
+ };
39954
+ Returns: string;
39955
+ };
39457
39956
  logistics_live_carriers: {
39458
39957
  Args: {
39459
39958
  p_order_ref: string;
@@ -40181,6 +40680,10 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
40181
40680
  Args: never;
40182
40681
  Returns: undefined;
40183
40682
  };
40683
+ run_logistics_tasks_dispatch: {
40684
+ Args: never;
40685
+ Returns: undefined;
40686
+ };
40184
40687
  run_twinfield_queue_tick: {
40185
40688
  Args: never;
40186
40689
  Returns: undefined;
@@ -40421,6 +40924,13 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
40421
40924
  };
40422
40925
  Returns: number;
40423
40926
  };
40927
+ schedule_floriday_stock_queue_process: {
40928
+ Args: {
40929
+ p_apikey: string;
40930
+ p_url: string;
40931
+ };
40932
+ Returns: number;
40933
+ };
40424
40934
  schedule_floriday_token_refresh: {
40425
40935
  Args: {
40426
40936
  p_apikey: string;