@flowselections/logistiek-engine 1.0.4 → 1.0.6

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 (48) hide show
  1. package/README.md +24 -24
  2. package/dist-lib/components/FloridayPushCard.d.ts +2 -0
  3. package/dist-lib/components/FloridayPushCard.d.ts.map +1 -0
  4. package/dist-lib/components/FloridayPushCard.js +32 -0
  5. package/dist-lib/components/PrintjobsCard.d.ts +2 -0
  6. package/dist-lib/components/PrintjobsCard.d.ts.map +1 -0
  7. package/dist-lib/components/PrintjobsCard.js +35 -0
  8. package/dist-lib/components/RegiePage.d.ts.map +1 -1
  9. package/dist-lib/components/RegiePage.js +3 -1
  10. package/dist-lib/hooks/useFloridayPushes.d.ts +20 -0
  11. package/dist-lib/hooks/useFloridayPushes.d.ts.map +1 -0
  12. package/dist-lib/hooks/useFloridayPushes.js +55 -0
  13. package/dist-lib/hooks/usePrintjobs.d.ts +19 -0
  14. package/dist-lib/hooks/usePrintjobs.d.ts.map +1 -0
  15. package/dist-lib/hooks/usePrintjobs.js +60 -0
  16. package/dist-lib/index.d.ts +3 -0
  17. package/dist-lib/index.d.ts.map +1 -1
  18. package/dist-lib/index.js +3 -0
  19. package/dist-lib/integrations/supabase/auth-middleware.d.ts +387 -1
  20. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  21. package/dist-lib/integrations/supabase/client.d.ts +387 -1
  22. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  23. package/dist-lib/integrations/supabase/client.server.d.ts +387 -1
  24. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  25. package/dist-lib/integrations/supabase/types.d.ts +388 -2
  26. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  27. package/dist-lib/integrations/supabase/types.js +12 -1
  28. package/dist-lib/lib/floridayDocuments.functions.d.ts +1161 -3
  29. package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/floridayPush.functions.d.ts +20689 -0
  31. package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -0
  32. package/dist-lib/lib/floridayPush.functions.js +20 -0
  33. package/dist-lib/lib/floridayPush.server.d.ts +45 -0
  34. package/dist-lib/lib/floridayPush.server.d.ts.map +1 -0
  35. package/dist-lib/lib/floridayPush.server.js +219 -0
  36. package/dist-lib/lib/handlers/logistics-tick.server.d.ts.map +1 -1
  37. package/dist-lib/lib/handlers/logistics-tick.server.js +11 -0
  38. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +1940 -35
  39. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
  40. package/dist-lib/lib/loadCarrierTaskSync.server.d.ts.map +1 -1
  41. package/dist-lib/lib/loadCarrierTaskSync.server.js +9 -0
  42. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +774 -2
  43. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
  44. package/dist-lib/lib/logisticsRecalculate.functions.d.ts +387 -1
  45. package/dist-lib/lib/logisticsRecalculate.functions.d.ts.map +1 -1
  46. package/dist-lib/lib/modulePrompts.d.ts.map +1 -1
  47. package/dist-lib/lib/modulePrompts.js +949 -911
  48. package/package.json +2 -2
@@ -5699,12 +5699,17 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
5699
5699
  attempts: number;
5700
5700
  connection_id: string;
5701
5701
  created_at: string;
5702
+ desired_available: boolean | null;
5702
5703
  gateway_attempt_id: string | null;
5703
5704
  id: string;
5704
5705
  last_error: string | null;
5706
+ locked_at: string | null;
5707
+ locked_by: string | null;
5708
+ next_attempt_at: string;
5705
5709
  number_of_pieces: number;
5706
5710
  sent_at: string | null;
5707
5711
  status: string;
5712
+ superseded_by: string | null;
5708
5713
  trade_item_id: string;
5709
5714
  updated_at: string;
5710
5715
  user_id: string;
@@ -5713,12 +5718,17 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
5713
5718
  attempts?: number;
5714
5719
  connection_id: string;
5715
5720
  created_at?: string;
5721
+ desired_available?: boolean | null;
5716
5722
  gateway_attempt_id?: string | null;
5717
5723
  id?: string;
5718
5724
  last_error?: string | null;
5725
+ locked_at?: string | null;
5726
+ locked_by?: string | null;
5727
+ next_attempt_at?: string;
5719
5728
  number_of_pieces?: number;
5720
5729
  sent_at?: string | null;
5721
5730
  status?: string;
5731
+ superseded_by?: string | null;
5722
5732
  trade_item_id: string;
5723
5733
  updated_at?: string;
5724
5734
  user_id: string;
@@ -5727,12 +5737,17 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
5727
5737
  attempts?: number;
5728
5738
  connection_id?: string;
5729
5739
  created_at?: string;
5740
+ desired_available?: boolean | null;
5730
5741
  gateway_attempt_id?: string | null;
5731
5742
  id?: string;
5732
5743
  last_error?: string | null;
5744
+ locked_at?: string | null;
5745
+ locked_by?: string | null;
5746
+ next_attempt_at?: string;
5733
5747
  number_of_pieces?: number;
5734
5748
  sent_at?: string | null;
5735
5749
  status?: string;
5750
+ superseded_by?: string | null;
5736
5751
  trade_item_id?: string;
5737
5752
  updated_at?: string;
5738
5753
  user_id?: string;
@@ -8481,6 +8496,69 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
8481
8496
  };
8482
8497
  Relationships: [];
8483
8498
  };
8499
+ logistics_floriday_pushes: {
8500
+ Row: {
8501
+ attempts: number;
8502
+ created_at: string;
8503
+ first_queued_at: string;
8504
+ fulfillment_order_id: string | null;
8505
+ id: string;
8506
+ last_error: string | null;
8507
+ last_error_at: string | null;
8508
+ last_sent_hash: string | null;
8509
+ locked_by: string | null;
8510
+ locked_until: string | null;
8511
+ next_attempt_at: string;
8512
+ order_ref: string;
8513
+ payload: import("../integrations/supabase/types").Json;
8514
+ payload_hash: string | null;
8515
+ revision: number;
8516
+ sent_at: string | null;
8517
+ status: string;
8518
+ updated_at: string;
8519
+ };
8520
+ Insert: {
8521
+ attempts?: number;
8522
+ created_at?: string;
8523
+ first_queued_at?: string;
8524
+ fulfillment_order_id?: string | null;
8525
+ id?: string;
8526
+ last_error?: string | null;
8527
+ last_error_at?: string | null;
8528
+ last_sent_hash?: string | null;
8529
+ locked_by?: string | null;
8530
+ locked_until?: string | null;
8531
+ next_attempt_at?: string;
8532
+ order_ref: string;
8533
+ payload?: import("../integrations/supabase/types").Json;
8534
+ payload_hash?: string | null;
8535
+ revision?: number;
8536
+ sent_at?: string | null;
8537
+ status?: string;
8538
+ updated_at?: string;
8539
+ };
8540
+ Update: {
8541
+ attempts?: number;
8542
+ created_at?: string;
8543
+ first_queued_at?: string;
8544
+ fulfillment_order_id?: string | null;
8545
+ id?: string;
8546
+ last_error?: string | null;
8547
+ last_error_at?: string | null;
8548
+ last_sent_hash?: string | null;
8549
+ locked_by?: string | null;
8550
+ locked_until?: string | null;
8551
+ next_attempt_at?: string;
8552
+ order_ref?: string;
8553
+ payload?: import("../integrations/supabase/types").Json;
8554
+ payload_hash?: string | null;
8555
+ revision?: number;
8556
+ sent_at?: string | null;
8557
+ status?: string;
8558
+ updated_at?: string;
8559
+ };
8560
+ Relationships: [];
8561
+ };
8484
8562
  logistics_formulas: {
8485
8563
  Row: {
8486
8564
  created_at: string;
@@ -9092,6 +9170,8 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
9092
9170
  };
9093
9171
  logistics_tasks: {
9094
9172
  Row: {
9173
+ attempt_log: import("../integrations/supabase/types").Json;
9174
+ attempts: number;
9095
9175
  buffer_ref: string | null;
9096
9176
  claimed_at: string | null;
9097
9177
  claimed_by: string | null;
@@ -9101,6 +9181,8 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
9101
9181
  due_at: string | null;
9102
9182
  error: string | null;
9103
9183
  id: string;
9184
+ last_error: string | null;
9185
+ next_attempt_at: string | null;
9104
9186
  order_ref: string;
9105
9187
  owner_module: string;
9106
9188
  payload: import("../integrations/supabase/types").Json;
@@ -9121,6 +9203,8 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
9121
9203
  user_id: string;
9122
9204
  };
9123
9205
  Insert: {
9206
+ attempt_log?: import("../integrations/supabase/types").Json;
9207
+ attempts?: number;
9124
9208
  buffer_ref?: string | null;
9125
9209
  claimed_at?: string | null;
9126
9210
  claimed_by?: string | null;
@@ -9130,6 +9214,8 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
9130
9214
  due_at?: string | null;
9131
9215
  error?: string | null;
9132
9216
  id?: string;
9217
+ last_error?: string | null;
9218
+ next_attempt_at?: string | null;
9133
9219
  order_ref: string;
9134
9220
  owner_module: string;
9135
9221
  payload?: import("../integrations/supabase/types").Json;
@@ -9150,6 +9236,8 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
9150
9236
  user_id?: string;
9151
9237
  };
9152
9238
  Update: {
9239
+ attempt_log?: import("../integrations/supabase/types").Json;
9240
+ attempts?: number;
9153
9241
  buffer_ref?: string | null;
9154
9242
  claimed_at?: string | null;
9155
9243
  claimed_by?: string | null;
@@ -9159,6 +9247,8 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
9159
9247
  due_at?: string | null;
9160
9248
  error?: string | null;
9161
9249
  id?: string;
9250
+ last_error?: string | null;
9251
+ next_attempt_at?: string | null;
9162
9252
  order_ref?: string;
9163
9253
  owner_module?: string;
9164
9254
  payload?: import("../integrations/supabase/types").Json;
@@ -10508,6 +10598,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
10508
10598
  };
10509
10599
  offer_settings: {
10510
10600
  Row: {
10601
+ brand_name: string | null;
10511
10602
  button_color: string;
10512
10603
  created_at: string;
10513
10604
  default_countries: string[];
@@ -10529,6 +10620,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
10529
10620
  updated_at: string;
10530
10621
  };
10531
10622
  Insert: {
10623
+ brand_name?: string | null;
10532
10624
  button_color?: string;
10533
10625
  created_at?: string;
10534
10626
  default_countries?: string[];
@@ -10550,6 +10642,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
10550
10642
  updated_at?: string;
10551
10643
  };
10552
10644
  Update: {
10645
+ brand_name?: string | null;
10553
10646
  button_color?: string;
10554
10647
  created_at?: string;
10555
10648
  default_countries?: string[];
@@ -12268,22 +12361,27 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12268
12361
  created_at: string;
12269
12362
  documentnaam: string;
12270
12363
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12364
+ extern_job_id: string | null;
12271
12365
  foutmelding: string | null;
12272
12366
  gebruiker_id: string | null;
12273
12367
  gebruiker_naam: string;
12274
12368
  gestart_op: string | null;
12275
12369
  id: string;
12370
+ idempotentie_sleutel: string | null;
12276
12371
  is_herprint: boolean;
12277
12372
  kopieen: number;
12278
12373
  layout_id: string | null;
12279
12374
  opgepakt_op: string | null;
12280
12375
  paginas: number;
12281
12376
  payload: import("../integrations/supabase/types").Json;
12377
+ pdf_base64: string | null;
12378
+ pdf_url: string | null;
12282
12379
  pogingen: number;
12283
12380
  printer_id: string | null;
12284
12381
  render_html: string | null;
12285
12382
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12286
12383
  updated_at: string;
12384
+ volgende_poging: string | null;
12287
12385
  voltooid_op: string | null;
12288
12386
  };
12289
12387
  Insert: {
@@ -12292,22 +12390,27 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12292
12390
  created_at?: string;
12293
12391
  documentnaam?: string;
12294
12392
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12393
+ extern_job_id?: string | null;
12295
12394
  foutmelding?: string | null;
12296
12395
  gebruiker_id?: string | null;
12297
12396
  gebruiker_naam?: string;
12298
12397
  gestart_op?: string | null;
12299
12398
  id?: string;
12399
+ idempotentie_sleutel?: string | null;
12300
12400
  is_herprint?: boolean;
12301
12401
  kopieen?: number;
12302
12402
  layout_id?: string | null;
12303
12403
  opgepakt_op?: string | null;
12304
12404
  paginas?: number;
12305
12405
  payload?: import("../integrations/supabase/types").Json;
12406
+ pdf_base64?: string | null;
12407
+ pdf_url?: string | null;
12306
12408
  pogingen?: number;
12307
12409
  printer_id?: string | null;
12308
12410
  render_html?: string | null;
12309
12411
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12310
12412
  updated_at?: string;
12413
+ volgende_poging?: string | null;
12311
12414
  voltooid_op?: string | null;
12312
12415
  };
12313
12416
  Update: {
@@ -12316,22 +12419,27 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12316
12419
  created_at?: string;
12317
12420
  documentnaam?: string;
12318
12421
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12422
+ extern_job_id?: string | null;
12319
12423
  foutmelding?: string | null;
12320
12424
  gebruiker_id?: string | null;
12321
12425
  gebruiker_naam?: string;
12322
12426
  gestart_op?: string | null;
12323
12427
  id?: string;
12428
+ idempotentie_sleutel?: string | null;
12324
12429
  is_herprint?: boolean;
12325
12430
  kopieen?: number;
12326
12431
  layout_id?: string | null;
12327
12432
  opgepakt_op?: string | null;
12328
12433
  paginas?: number;
12329
12434
  payload?: import("../integrations/supabase/types").Json;
12435
+ pdf_base64?: string | null;
12436
+ pdf_url?: string | null;
12330
12437
  pogingen?: number;
12331
12438
  printer_id?: string | null;
12332
12439
  render_html?: string | null;
12333
12440
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12334
12441
  updated_at?: string;
12442
+ volgende_poging?: string | null;
12335
12443
  voltooid_op?: string | null;
12336
12444
  };
12337
12445
  Relationships: [{
@@ -12514,6 +12622,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12514
12622
  agent_id: string | null;
12515
12623
  created_at: string;
12516
12624
  driver: string;
12625
+ extern_printer_id: string | null;
12517
12626
  id: string;
12518
12627
  ip_adres: string | null;
12519
12628
  laatst_gezien: string | null;
@@ -12535,6 +12644,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12535
12644
  agent_id?: string | null;
12536
12645
  created_at?: string;
12537
12646
  driver?: string;
12647
+ extern_printer_id?: string | null;
12538
12648
  id?: string;
12539
12649
  ip_adres?: string | null;
12540
12650
  laatst_gezien?: string | null;
@@ -12556,6 +12666,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12556
12666
  agent_id?: string | null;
12557
12667
  created_at?: string;
12558
12668
  driver?: string;
12669
+ extern_printer_id?: string | null;
12559
12670
  id?: string;
12560
12671
  ip_adres?: string | null;
12561
12672
  laatst_gezien?: string | null;
@@ -18160,6 +18271,125 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
18160
18271
  };
18161
18272
  Returns: import("../integrations/supabase/types").Json;
18162
18273
  };
18274
+ claim_cloud_print_jobs: {
18275
+ Args: {
18276
+ _max?: number;
18277
+ };
18278
+ Returns: {
18279
+ agent_id: string | null;
18280
+ bron_job_id: string | null;
18281
+ created_at: string;
18282
+ documentnaam: string;
18283
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
18284
+ extern_job_id: string | null;
18285
+ foutmelding: string | null;
18286
+ gebruiker_id: string | null;
18287
+ gebruiker_naam: string;
18288
+ gestart_op: string | null;
18289
+ id: string;
18290
+ idempotentie_sleutel: string | null;
18291
+ is_herprint: boolean;
18292
+ kopieen: number;
18293
+ layout_id: string | null;
18294
+ opgepakt_op: string | null;
18295
+ paginas: number;
18296
+ payload: import("../integrations/supabase/types").Json;
18297
+ pdf_base64: string | null;
18298
+ pdf_url: string | null;
18299
+ pogingen: number;
18300
+ printer_id: string | null;
18301
+ render_html: string | null;
18302
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
18303
+ updated_at: string;
18304
+ volgende_poging: string | null;
18305
+ voltooid_op: string | null;
18306
+ }[];
18307
+ SetofOptions: {
18308
+ from: "*";
18309
+ to: "print_jobs";
18310
+ isOneToOne: false;
18311
+ isSetofReturn: true;
18312
+ };
18313
+ };
18314
+ claim_floriday_stock_queue: {
18315
+ Args: {
18316
+ p_limit?: number;
18317
+ p_worker?: string;
18318
+ };
18319
+ Returns: {
18320
+ attempts: number;
18321
+ connection_id: string;
18322
+ created_at: string;
18323
+ desired_available: boolean | null;
18324
+ gateway_attempt_id: string | null;
18325
+ id: string;
18326
+ last_error: string | null;
18327
+ locked_at: string | null;
18328
+ locked_by: string | null;
18329
+ next_attempt_at: string;
18330
+ number_of_pieces: number;
18331
+ sent_at: string | null;
18332
+ status: string;
18333
+ superseded_by: string | null;
18334
+ trade_item_id: string;
18335
+ updated_at: string;
18336
+ user_id: string;
18337
+ }[];
18338
+ SetofOptions: {
18339
+ from: "*";
18340
+ to: "floriday_continuous_stock_queue";
18341
+ isOneToOne: false;
18342
+ isSetofReturn: true;
18343
+ };
18344
+ };
18345
+ claim_logistics_tasks: {
18346
+ Args: {
18347
+ _limit?: number;
18348
+ _owner_module: string;
18349
+ _stale_minutes?: number;
18350
+ _task_type: string;
18351
+ _worker: string;
18352
+ };
18353
+ Returns: {
18354
+ attempt_log: import("../integrations/supabase/types").Json;
18355
+ attempts: number;
18356
+ buffer_ref: string | null;
18357
+ claimed_at: string | null;
18358
+ claimed_by: string | null;
18359
+ completed_at: string | null;
18360
+ created_at: string;
18361
+ depends_on: string[];
18362
+ due_at: string | null;
18363
+ error: string | null;
18364
+ id: string;
18365
+ last_error: string | null;
18366
+ next_attempt_at: string | null;
18367
+ order_ref: string;
18368
+ owner_module: string;
18369
+ payload: import("../integrations/supabase/types").Json;
18370
+ plan_run_id: string | null;
18371
+ planned_end: string | null;
18372
+ planned_start: string | null;
18373
+ priority: number;
18374
+ result: import("../integrations/supabase/types").Json | null;
18375
+ rule_config_id: string | null;
18376
+ rule_version: number | null;
18377
+ sequence: number;
18378
+ shadow: boolean;
18379
+ started_at: string | null;
18380
+ status: string;
18381
+ strategy_id: string | null;
18382
+ task_type: string;
18383
+ updated_at: string;
18384
+ user_id: string;
18385
+ }[];
18386
+ SetofOptions: {
18387
+ from: "*";
18388
+ to: "logistics_tasks";
18389
+ isOneToOne: false;
18390
+ isSetofReturn: true;
18391
+ };
18392
+ };
18163
18393
  claim_print_jobs: {
18164
18394
  Args: {
18165
18395
  _agent_id: string;
@@ -18171,22 +18401,27 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
18171
18401
  created_at: string;
18172
18402
  documentnaam: string;
18173
18403
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
18404
+ extern_job_id: string | null;
18174
18405
  foutmelding: string | null;
18175
18406
  gebruiker_id: string | null;
18176
18407
  gebruiker_naam: string;
18177
18408
  gestart_op: string | null;
18178
18409
  id: string;
18410
+ idempotentie_sleutel: string | null;
18179
18411
  is_herprint: boolean;
18180
18412
  kopieen: number;
18181
18413
  layout_id: string | null;
18182
18414
  opgepakt_op: string | null;
18183
18415
  paginas: number;
18184
18416
  payload: import("../integrations/supabase/types").Json;
18417
+ pdf_base64: string | null;
18418
+ pdf_url: string | null;
18185
18419
  pogingen: number;
18186
18420
  printer_id: string | null;
18187
18421
  render_html: string | null;
18188
18422
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
18189
18423
  updated_at: string;
18424
+ volgende_poging: string | null;
18190
18425
  voltooid_op: string | null;
18191
18426
  }[];
18192
18427
  SetofOptions: {
@@ -18224,10 +18459,24 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
18224
18459
  isSetofReturn: true;
18225
18460
  };
18226
18461
  };
18462
+ cleanup_floriday_stock_queue: {
18463
+ Args: never;
18464
+ Returns: undefined;
18465
+ };
18227
18466
  cleanup_old_bookings: {
18228
18467
  Args: never;
18229
18468
  Returns: undefined;
18230
18469
  };
18470
+ complete_floriday_stock_queue: {
18471
+ Args: {
18472
+ p_attempt_id?: string;
18473
+ p_error?: string;
18474
+ p_id: string;
18475
+ p_ok: boolean;
18476
+ p_permanent?: boolean;
18477
+ };
18478
+ Returns: undefined;
18479
+ };
18231
18480
  consume_bom_for_production: {
18232
18481
  Args: {
18233
18482
  p_connection_id: string;
@@ -18624,6 +18873,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
18624
18873
  };
18625
18874
  Returns: number;
18626
18875
  };
18876
+ get_offer_branding: {
18877
+ Args: never;
18878
+ Returns: import("../integrations/supabase/types").Json;
18879
+ };
18627
18880
  get_offer_by_link_code: {
18628
18881
  Args: {
18629
18882
  p_code: string;
@@ -18915,6 +19168,8 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
18915
19168
  p_worker?: string;
18916
19169
  };
18917
19170
  Returns: {
19171
+ attempt_log: import("../integrations/supabase/types").Json;
19172
+ attempts: number;
18918
19173
  buffer_ref: string | null;
18919
19174
  claimed_at: string | null;
18920
19175
  claimed_by: string | null;
@@ -18924,6 +19179,8 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
18924
19179
  due_at: string | null;
18925
19180
  error: string | null;
18926
19181
  id: string;
19182
+ last_error: string | null;
19183
+ next_attempt_at: string | null;
18927
19184
  order_ref: string;
18928
19185
  owner_module: string;
18929
19186
  payload: import("../integrations/supabase/types").Json;
@@ -18956,6 +19213,8 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
18956
19213
  p_worker?: string;
18957
19214
  };
18958
19215
  Returns: {
19216
+ attempt_log: import("../integrations/supabase/types").Json;
19217
+ attempts: number;
18959
19218
  buffer_ref: string | null;
18960
19219
  claimed_at: string | null;
18961
19220
  claimed_by: string | null;
@@ -18965,6 +19224,8 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
18965
19224
  due_at: string | null;
18966
19225
  error: string | null;
18967
19226
  id: string;
19227
+ last_error: string | null;
19228
+ next_attempt_at: string | null;
18968
19229
  order_ref: string;
18969
19230
  owner_module: string;
18970
19231
  payload: import("../integrations/supabase/types").Json;
@@ -18997,6 +19258,8 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
18997
19258
  p_task_id: string;
18998
19259
  };
18999
19260
  Returns: {
19261
+ attempt_log: import("../integrations/supabase/types").Json;
19262
+ attempts: number;
19000
19263
  buffer_ref: string | null;
19001
19264
  claimed_at: string | null;
19002
19265
  claimed_by: string | null;
@@ -19006,6 +19269,8 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
19006
19269
  due_at: string | null;
19007
19270
  error: string | null;
19008
19271
  id: string;
19272
+ last_error: string | null;
19273
+ next_attempt_at: string | null;
19009
19274
  order_ref: string;
19010
19275
  owner_module: string;
19011
19276
  payload: import("../integrations/supabase/types").Json;
@@ -19087,6 +19352,8 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
19087
19352
  p_task_id: string;
19088
19353
  };
19089
19354
  Returns: {
19355
+ attempt_log: import("../integrations/supabase/types").Json;
19356
+ attempts: number;
19090
19357
  buffer_ref: string | null;
19091
19358
  claimed_at: string | null;
19092
19359
  claimed_by: string | null;
@@ -19096,6 +19363,8 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
19096
19363
  due_at: string | null;
19097
19364
  error: string | null;
19098
19365
  id: string;
19366
+ last_error: string | null;
19367
+ next_attempt_at: string | null;
19099
19368
  order_ref: string;
19100
19369
  owner_module: string;
19101
19370
  payload: import("../integrations/supabase/types").Json;
@@ -19122,6 +19391,51 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
19122
19391
  isSetofReturn: false;
19123
19392
  };
19124
19393
  };
19394
+ logistics_floriday_claim_pushes: {
19395
+ Args: {
19396
+ _lease_seconds?: number;
19397
+ _limit?: number;
19398
+ _worker?: string;
19399
+ };
19400
+ Returns: {
19401
+ attempts: number;
19402
+ fulfillment_order_id: string;
19403
+ id: string;
19404
+ last_sent_hash: string;
19405
+ order_ref: string;
19406
+ payload: import("../integrations/supabase/types").Json;
19407
+ payload_hash: string;
19408
+ revision: number;
19409
+ }[];
19410
+ };
19411
+ logistics_floriday_finish_push: {
19412
+ Args: {
19413
+ _error?: string;
19414
+ _fulfillment_order_id?: string;
19415
+ _id: string;
19416
+ _max_age_hours?: number;
19417
+ _max_attempts?: number;
19418
+ _ok: boolean;
19419
+ _permanent?: boolean;
19420
+ _revision: number;
19421
+ _sent_hash?: string;
19422
+ };
19423
+ Returns: string;
19424
+ };
19425
+ logistics_floriday_prune_pushes: {
19426
+ Args: {
19427
+ _days?: number;
19428
+ };
19429
+ Returns: number;
19430
+ };
19431
+ logistics_floriday_queue_push: {
19432
+ Args: {
19433
+ _order_ref: string;
19434
+ _payload?: import("../integrations/supabase/types").Json;
19435
+ _payload_hash?: string;
19436
+ };
19437
+ Returns: string;
19438
+ };
19125
19439
  logistics_live_carriers: {
19126
19440
  Args: {
19127
19441
  p_order_ref: string;
@@ -19469,6 +19783,15 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
19469
19783
  };
19470
19784
  Returns: string;
19471
19785
  };
19786
+ pick_active_printers: {
19787
+ Args: never;
19788
+ Returns: {
19789
+ id: string;
19790
+ locatie: string;
19791
+ naam: string;
19792
+ online: boolean;
19793
+ }[];
19794
+ };
19472
19795
  pick_claim_document: {
19473
19796
  Args: {
19474
19797
  _queue_item_id: string;
@@ -19655,6 +19978,52 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
19655
19978
  };
19656
19979
  Returns: undefined;
19657
19980
  };
19981
+ pick_reset_print: {
19982
+ Args: {
19983
+ _queue_item_id: string;
19984
+ _session_id: string;
19985
+ };
19986
+ Returns: {
19987
+ announced_at: string;
19988
+ assigned_user_id: string | null;
19989
+ barcode: string | null;
19990
+ cancelled_at: string | null;
19991
+ cart_count: number;
19992
+ completed_at: string | null;
19993
+ country_code: string | null;
19994
+ created_at: string;
19995
+ customer_name: string | null;
19996
+ delivery_address: string | null;
19997
+ document_number: string | null;
19998
+ document_type_id: string | null;
19999
+ due_at: string | null;
20000
+ id: string;
20001
+ is_urgent: boolean;
20002
+ line_count: number;
20003
+ order_number: string | null;
20004
+ order_type: string | null;
20005
+ payload: import("../integrations/supabase/types").Json;
20006
+ print_count: number;
20007
+ print_job_id: string | null;
20008
+ printed_at: string | null;
20009
+ printed_by: string | null;
20010
+ printer_id: string | null;
20011
+ priority: number;
20012
+ reference: string | null;
20013
+ route: string | null;
20014
+ screen_id: string | null;
20015
+ station_id: string | null;
20016
+ status_id: string | null;
20017
+ updated_at: string;
20018
+ warnings: import("../integrations/supabase/types").Json;
20019
+ };
20020
+ SetofOptions: {
20021
+ from: "*";
20022
+ to: "pick_queue";
20023
+ isOneToOne: true;
20024
+ isSetofReturn: false;
20025
+ };
20026
+ };
19658
20027
  pick_station_dashboard: {
19659
20028
  Args: never;
19660
20029
  Returns: {
@@ -19845,10 +20214,20 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
19845
20214
  };
19846
20215
  Returns: import("../integrations/supabase/types").Json;
19847
20216
  };
20217
+ ruim_print_jobs_op: {
20218
+ Args: {
20219
+ _bewaar_dagen?: number;
20220
+ };
20221
+ Returns: number;
20222
+ };
19848
20223
  run_floriday_continuous_stock_sync: {
19849
20224
  Args: never;
19850
20225
  Returns: undefined;
19851
20226
  };
20227
+ run_logistics_tasks_dispatch: {
20228
+ Args: never;
20229
+ Returns: undefined;
20230
+ };
19852
20231
  run_twinfield_queue_tick: {
19853
20232
  Args: never;
19854
20233
  Returns: undefined;
@@ -20089,6 +20468,13 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20089
20468
  };
20090
20469
  Returns: number;
20091
20470
  };
20471
+ schedule_floriday_stock_queue_process: {
20472
+ Args: {
20473
+ p_apikey: string;
20474
+ p_url: string;
20475
+ };
20476
+ Returns: number;
20477
+ };
20092
20478
  schedule_floriday_token_refresh: {
20093
20479
  Args: {
20094
20480
  p_apikey: string;
@@ -20278,7 +20664,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20278
20664
  };
20279
20665
  Enums: {
20280
20666
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
20281
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
20667
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
20282
20668
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
20283
20669
  doc_orientation: "portrait" | "landscape";
20284
20670
  exact_env: "staging" | "live";