@flowselections/floriday-voorraad 1.0.33 → 1.0.35

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 (62) hide show
  1. package/dist-lib/components/voorraad/ArtikelWizard.d.ts.map +1 -1
  2. package/dist-lib/components/voorraad/ArtikelWizard.js +11 -5
  3. package/dist-lib/components/voorraad/ModuleHealthCard.d.ts +2 -0
  4. package/dist-lib/components/voorraad/ModuleHealthCard.d.ts.map +1 -0
  5. package/dist-lib/components/voorraad/ModuleHealthCard.js +40 -0
  6. package/dist-lib/components/voorraad/StockBulkButtons.d.ts.map +1 -1
  7. package/dist-lib/components/voorraad/StockBulkButtons.js +5 -2
  8. package/dist-lib/components/voorraad/StockPushMonitor.d.ts +4 -0
  9. package/dist-lib/components/voorraad/StockPushMonitor.d.ts.map +1 -0
  10. package/dist-lib/components/voorraad/StockPushMonitor.js +110 -0
  11. package/dist-lib/components/voorraad/VoorraadPage.d.ts.map +1 -1
  12. package/dist-lib/components/voorraad/VoorraadPage.js +2 -1
  13. package/dist-lib/components/voorraad/VoorraadStockCard.d.ts.map +1 -1
  14. package/dist-lib/components/voorraad/VoorraadStockCard.js +114 -10
  15. package/dist-lib/hooks/useStockPushJobs.d.ts +23 -0
  16. package/dist-lib/hooks/useStockPushJobs.d.ts.map +1 -0
  17. package/dist-lib/hooks/useStockPushJobs.js +86 -0
  18. package/dist-lib/hooks/useTradeItemStock.d.ts +19 -5
  19. package/dist-lib/hooks/useTradeItemStock.d.ts.map +1 -1
  20. package/dist-lib/hooks/useTradeItemStock.js +36 -18
  21. package/dist-lib/hooks/useVoorraadData.d.ts.map +1 -1
  22. package/dist-lib/hooks/useVoorraadData.js +11 -3
  23. package/dist-lib/index.d.ts +1 -0
  24. package/dist-lib/index.d.ts.map +1 -1
  25. package/dist-lib/index.js +6 -1
  26. package/dist-lib/integrations/supabase/auth-middleware.d.ts +410 -4
  27. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  28. package/dist-lib/integrations/supabase/client.d.ts +410 -4
  29. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  30. package/dist-lib/integrations/supabase/client.server.d.ts +410 -4
  31. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  32. package/dist-lib/integrations/supabase/types.d.ts +411 -5
  33. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  34. package/dist-lib/integrations/supabase/types.js +12 -1
  35. package/dist-lib/lib/centralSecrets.server.js +1 -1
  36. package/dist-lib/lib/floricode-required-features.functions.d.ts +410 -4
  37. package/dist-lib/lib/floricode-required-features.functions.d.ts.map +1 -1
  38. package/dist-lib/lib/floriday-customer-offer.functions.d.ts +410 -4
  39. package/dist-lib/lib/floriday-customer-offer.functions.d.ts.map +1 -1
  40. package/dist-lib/lib/floriday-env.functions.d.ts +820 -8
  41. package/dist-lib/lib/floriday-env.functions.d.ts.map +1 -1
  42. package/dist-lib/lib/floriday-gateway.functions.d.ts +2460 -24
  43. package/dist-lib/lib/floriday-gateway.functions.d.ts.map +1 -1
  44. package/dist-lib/lib/floriday-gateway.server.d.ts +14 -0
  45. package/dist-lib/lib/floriday-gateway.server.d.ts.map +1 -1
  46. package/dist-lib/lib/floriday-gateway.server.js +62 -10
  47. package/dist-lib/lib/floriday-vbn-required.functions.d.ts +820 -8
  48. package/dist-lib/lib/floriday-vbn-required.functions.d.ts.map +1 -1
  49. package/dist-lib/lib/floriday-warehouse.functions.d.ts +1230 -12
  50. package/dist-lib/lib/floriday-warehouse.functions.d.ts.map +1 -1
  51. package/dist-lib/lib/floriday-writes.functions.d.ts +820 -8
  52. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  53. package/dist-lib/lib/module-health.functions.d.ts +41725 -0
  54. package/dist-lib/lib/module-health.functions.d.ts.map +1 -0
  55. package/dist-lib/lib/module-health.functions.js +261 -0
  56. package/dist-lib/lib/module-runtime.server.d.ts +8 -1
  57. package/dist-lib/lib/module-runtime.server.d.ts.map +1 -1
  58. package/dist-lib/lib/module-runtime.server.js +103 -12
  59. package/dist-lib/lib/stock-sync.functions.d.ts +21302 -31
  60. package/dist-lib/lib/stock-sync.functions.d.ts.map +1 -1
  61. package/dist-lib/lib/stock-sync.functions.js +46 -3
  62. package/package.json +2 -2
@@ -1683,7 +1683,7 @@ export declare const getActiveFloridayConnectionFn: import("@tanstack/start-clie
1683
1683
  city: string | null;
1684
1684
  country: string | null;
1685
1685
  created_at: string;
1686
- customer_id: string | null;
1686
+ customer_id: string;
1687
1687
  external_key: string | null;
1688
1688
  external_provider: string | null;
1689
1689
  floriday_location_id: string | null;
@@ -1707,7 +1707,7 @@ export declare const getActiveFloridayConnectionFn: import("@tanstack/start-clie
1707
1707
  city?: string | null;
1708
1708
  country?: string | null;
1709
1709
  created_at?: string;
1710
- customer_id?: string | null;
1710
+ customer_id: string;
1711
1711
  external_key?: string | null;
1712
1712
  external_provider?: string | null;
1713
1713
  floriday_location_id?: string | null;
@@ -1731,7 +1731,7 @@ export declare const getActiveFloridayConnectionFn: import("@tanstack/start-clie
1731
1731
  city?: string | null;
1732
1732
  country?: string | null;
1733
1733
  created_at?: string;
1734
- customer_id?: string | null;
1734
+ customer_id?: string;
1735
1735
  external_key?: string | null;
1736
1736
  external_provider?: string | null;
1737
1737
  floriday_location_id?: string | null;
@@ -8491,6 +8491,69 @@ export declare const getActiveFloridayConnectionFn: import("@tanstack/start-clie
8491
8491
  };
8492
8492
  Relationships: [];
8493
8493
  };
8494
+ logistics_floriday_pushes: {
8495
+ Row: {
8496
+ attempts: number;
8497
+ created_at: string;
8498
+ first_queued_at: string;
8499
+ fulfillment_order_id: string | null;
8500
+ id: string;
8501
+ last_error: string | null;
8502
+ last_error_at: string | null;
8503
+ last_sent_hash: string | null;
8504
+ locked_by: string | null;
8505
+ locked_until: string | null;
8506
+ next_attempt_at: string;
8507
+ order_ref: string;
8508
+ payload: import("../integrations/supabase/types").Json;
8509
+ payload_hash: string | null;
8510
+ revision: number;
8511
+ sent_at: string | null;
8512
+ status: string;
8513
+ updated_at: string;
8514
+ };
8515
+ Insert: {
8516
+ attempts?: number;
8517
+ created_at?: string;
8518
+ first_queued_at?: string;
8519
+ fulfillment_order_id?: string | null;
8520
+ id?: string;
8521
+ last_error?: string | null;
8522
+ last_error_at?: string | null;
8523
+ last_sent_hash?: string | null;
8524
+ locked_by?: string | null;
8525
+ locked_until?: string | null;
8526
+ next_attempt_at?: string;
8527
+ order_ref: string;
8528
+ payload?: import("../integrations/supabase/types").Json;
8529
+ payload_hash?: string | null;
8530
+ revision?: number;
8531
+ sent_at?: string | null;
8532
+ status?: string;
8533
+ updated_at?: string;
8534
+ };
8535
+ Update: {
8536
+ attempts?: number;
8537
+ created_at?: string;
8538
+ first_queued_at?: string;
8539
+ fulfillment_order_id?: string | null;
8540
+ id?: string;
8541
+ last_error?: string | null;
8542
+ last_error_at?: string | null;
8543
+ last_sent_hash?: string | null;
8544
+ locked_by?: string | null;
8545
+ locked_until?: string | null;
8546
+ next_attempt_at?: string;
8547
+ order_ref?: string;
8548
+ payload?: import("../integrations/supabase/types").Json;
8549
+ payload_hash?: string | null;
8550
+ revision?: number;
8551
+ sent_at?: string | null;
8552
+ status?: string;
8553
+ updated_at?: string;
8554
+ };
8555
+ Relationships: [];
8556
+ };
8494
8557
  logistics_formulas: {
8495
8558
  Row: {
8496
8559
  created_at: string;
@@ -9354,14 +9417,17 @@ export declare const getActiveFloridayConnectionFn: import("@tanstack/start-clie
9354
9417
  };
9355
9418
  mailbox_messages: {
9356
9419
  Row: {
9420
+ attachments: import("../integrations/supabase/types").Json;
9357
9421
  body_html: string | null;
9358
9422
  body_text: string | null;
9423
+ cc_recipients: import("../integrations/supabase/types").Json;
9359
9424
  connection_id: string | null;
9360
9425
  created_at: string;
9361
9426
  error_message: string | null;
9362
9427
  external_id: string | null;
9363
9428
  from_email: string | null;
9364
9429
  from_name: string | null;
9430
+ has_attachments: boolean;
9365
9431
  id: string;
9366
9432
  message_id: string | null;
9367
9433
  profile_id: string | null;
@@ -9369,18 +9435,22 @@ export declare const getActiveFloridayConnectionFn: import("@tanstack/start-clie
9369
9435
  received_at: string | null;
9370
9436
  status: string;
9371
9437
  subject: string | null;
9438
+ to_recipients: import("../integrations/supabase/types").Json;
9372
9439
  uid: number | null;
9373
9440
  updated_at: string;
9374
9441
  };
9375
9442
  Insert: {
9443
+ attachments?: import("../integrations/supabase/types").Json;
9376
9444
  body_html?: string | null;
9377
9445
  body_text?: string | null;
9446
+ cc_recipients?: import("../integrations/supabase/types").Json;
9378
9447
  connection_id?: string | null;
9379
9448
  created_at?: string;
9380
9449
  error_message?: string | null;
9381
9450
  external_id?: string | null;
9382
9451
  from_email?: string | null;
9383
9452
  from_name?: string | null;
9453
+ has_attachments?: boolean;
9384
9454
  id?: string;
9385
9455
  message_id?: string | null;
9386
9456
  profile_id?: string | null;
@@ -9388,18 +9458,22 @@ export declare const getActiveFloridayConnectionFn: import("@tanstack/start-clie
9388
9458
  received_at?: string | null;
9389
9459
  status?: string;
9390
9460
  subject?: string | null;
9461
+ to_recipients?: import("../integrations/supabase/types").Json;
9391
9462
  uid?: number | null;
9392
9463
  updated_at?: string;
9393
9464
  };
9394
9465
  Update: {
9466
+ attachments?: import("../integrations/supabase/types").Json;
9395
9467
  body_html?: string | null;
9396
9468
  body_text?: string | null;
9469
+ cc_recipients?: import("../integrations/supabase/types").Json;
9397
9470
  connection_id?: string | null;
9398
9471
  created_at?: string;
9399
9472
  error_message?: string | null;
9400
9473
  external_id?: string | null;
9401
9474
  from_email?: string | null;
9402
9475
  from_name?: string | null;
9476
+ has_attachments?: boolean;
9403
9477
  id?: string;
9404
9478
  message_id?: string | null;
9405
9479
  profile_id?: string | null;
@@ -9407,6 +9481,7 @@ export declare const getActiveFloridayConnectionFn: import("@tanstack/start-clie
9407
9481
  received_at?: string | null;
9408
9482
  status?: string;
9409
9483
  subject?: string | null;
9484
+ to_recipients?: import("../integrations/supabase/types").Json;
9410
9485
  uid?: number | null;
9411
9486
  updated_at?: string;
9412
9487
  };
@@ -9814,6 +9889,36 @@ export declare const getActiveFloridayConnectionFn: import("@tanstack/start-clie
9814
9889
  };
9815
9890
  Relationships: [];
9816
9891
  };
9892
+ module_registry: {
9893
+ Row: {
9894
+ created_at: string;
9895
+ is_active: boolean;
9896
+ last_seen_at: string;
9897
+ module_id: string;
9898
+ name: string;
9899
+ shell_id: string | null;
9900
+ sort_order: number | null;
9901
+ };
9902
+ Insert: {
9903
+ created_at?: string;
9904
+ is_active?: boolean;
9905
+ last_seen_at?: string;
9906
+ module_id: string;
9907
+ name: string;
9908
+ shell_id?: string | null;
9909
+ sort_order?: number | null;
9910
+ };
9911
+ Update: {
9912
+ created_at?: string;
9913
+ is_active?: boolean;
9914
+ last_seen_at?: string;
9915
+ module_id?: string;
9916
+ name?: string;
9917
+ shell_id?: string | null;
9918
+ sort_order?: number | null;
9919
+ };
9920
+ Relationships: [];
9921
+ };
9817
9922
  module_runtime_config: {
9818
9923
  Row: {
9819
9924
  key: string;
@@ -12293,22 +12398,27 @@ export declare const getActiveFloridayConnectionFn: import("@tanstack/start-clie
12293
12398
  created_at: string;
12294
12399
  documentnaam: string;
12295
12400
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12401
+ extern_job_id: string | null;
12296
12402
  foutmelding: string | null;
12297
12403
  gebruiker_id: string | null;
12298
12404
  gebruiker_naam: string;
12299
12405
  gestart_op: string | null;
12300
12406
  id: string;
12407
+ idempotentie_sleutel: string | null;
12301
12408
  is_herprint: boolean;
12302
12409
  kopieen: number;
12303
12410
  layout_id: string | null;
12304
12411
  opgepakt_op: string | null;
12305
12412
  paginas: number;
12306
12413
  payload: import("../integrations/supabase/types").Json;
12414
+ pdf_base64: string | null;
12415
+ pdf_url: string | null;
12307
12416
  pogingen: number;
12308
12417
  printer_id: string | null;
12309
12418
  render_html: string | null;
12310
12419
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12311
12420
  updated_at: string;
12421
+ volgende_poging: string | null;
12312
12422
  voltooid_op: string | null;
12313
12423
  };
12314
12424
  Insert: {
@@ -12317,22 +12427,27 @@ export declare const getActiveFloridayConnectionFn: import("@tanstack/start-clie
12317
12427
  created_at?: string;
12318
12428
  documentnaam?: string;
12319
12429
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12430
+ extern_job_id?: string | null;
12320
12431
  foutmelding?: string | null;
12321
12432
  gebruiker_id?: string | null;
12322
12433
  gebruiker_naam?: string;
12323
12434
  gestart_op?: string | null;
12324
12435
  id?: string;
12436
+ idempotentie_sleutel?: string | null;
12325
12437
  is_herprint?: boolean;
12326
12438
  kopieen?: number;
12327
12439
  layout_id?: string | null;
12328
12440
  opgepakt_op?: string | null;
12329
12441
  paginas?: number;
12330
12442
  payload?: import("../integrations/supabase/types").Json;
12443
+ pdf_base64?: string | null;
12444
+ pdf_url?: string | null;
12331
12445
  pogingen?: number;
12332
12446
  printer_id?: string | null;
12333
12447
  render_html?: string | null;
12334
12448
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12335
12449
  updated_at?: string;
12450
+ volgende_poging?: string | null;
12336
12451
  voltooid_op?: string | null;
12337
12452
  };
12338
12453
  Update: {
@@ -12341,22 +12456,27 @@ export declare const getActiveFloridayConnectionFn: import("@tanstack/start-clie
12341
12456
  created_at?: string;
12342
12457
  documentnaam?: string;
12343
12458
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12459
+ extern_job_id?: string | null;
12344
12460
  foutmelding?: string | null;
12345
12461
  gebruiker_id?: string | null;
12346
12462
  gebruiker_naam?: string;
12347
12463
  gestart_op?: string | null;
12348
12464
  id?: string;
12465
+ idempotentie_sleutel?: string | null;
12349
12466
  is_herprint?: boolean;
12350
12467
  kopieen?: number;
12351
12468
  layout_id?: string | null;
12352
12469
  opgepakt_op?: string | null;
12353
12470
  paginas?: number;
12354
12471
  payload?: import("../integrations/supabase/types").Json;
12472
+ pdf_base64?: string | null;
12473
+ pdf_url?: string | null;
12355
12474
  pogingen?: number;
12356
12475
  printer_id?: string | null;
12357
12476
  render_html?: string | null;
12358
12477
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12359
12478
  updated_at?: string;
12479
+ volgende_poging?: string | null;
12360
12480
  voltooid_op?: string | null;
12361
12481
  };
12362
12482
  Relationships: [{
@@ -12379,6 +12499,63 @@ export declare const getActiveFloridayConnectionFn: import("@tanstack/start-clie
12379
12499
  referencedColumns: ["id"];
12380
12500
  }];
12381
12501
  };
12502
+ print_queue_runners: {
12503
+ Row: {
12504
+ actief: boolean;
12505
+ basis_url: string;
12506
+ created_at: string;
12507
+ id: string;
12508
+ laatst_gezien: string;
12509
+ tick_sleutel: string;
12510
+ updated_at: string;
12511
+ };
12512
+ Insert: {
12513
+ actief?: boolean;
12514
+ basis_url: string;
12515
+ created_at?: string;
12516
+ id?: string;
12517
+ laatst_gezien?: string;
12518
+ tick_sleutel?: string;
12519
+ updated_at?: string;
12520
+ };
12521
+ Update: {
12522
+ actief?: boolean;
12523
+ basis_url?: string;
12524
+ created_at?: string;
12525
+ id?: string;
12526
+ laatst_gezien?: string;
12527
+ tick_sleutel?: string;
12528
+ updated_at?: string;
12529
+ };
12530
+ Relationships: [];
12531
+ };
12532
+ print_queue_settings: {
12533
+ Row: {
12534
+ bewaar_bestanden_dagen: number;
12535
+ bewaar_opdrachten_dagen: number;
12536
+ created_at: string;
12537
+ dubbel_venster_minuten: number;
12538
+ id: string;
12539
+ updated_at: string;
12540
+ };
12541
+ Insert: {
12542
+ bewaar_bestanden_dagen?: number;
12543
+ bewaar_opdrachten_dagen?: number;
12544
+ created_at?: string;
12545
+ dubbel_venster_minuten?: number;
12546
+ id?: string;
12547
+ updated_at?: string;
12548
+ };
12549
+ Update: {
12550
+ bewaar_bestanden_dagen?: number;
12551
+ bewaar_opdrachten_dagen?: number;
12552
+ created_at?: string;
12553
+ dubbel_venster_minuten?: number;
12554
+ id?: string;
12555
+ updated_at?: string;
12556
+ };
12557
+ Relationships: [];
12558
+ };
12382
12559
  print_rules: {
12383
12560
  Row: {
12384
12561
  actief: boolean;
@@ -12539,6 +12716,7 @@ export declare const getActiveFloridayConnectionFn: import("@tanstack/start-clie
12539
12716
  agent_id: string | null;
12540
12717
  created_at: string;
12541
12718
  driver: string;
12719
+ extern_printer_id: string | null;
12542
12720
  id: string;
12543
12721
  ip_adres: string | null;
12544
12722
  laatst_gezien: string | null;
@@ -12560,6 +12738,7 @@ export declare const getActiveFloridayConnectionFn: import("@tanstack/start-clie
12560
12738
  agent_id?: string | null;
12561
12739
  created_at?: string;
12562
12740
  driver?: string;
12741
+ extern_printer_id?: string | null;
12563
12742
  id?: string;
12564
12743
  ip_adres?: string | null;
12565
12744
  laatst_gezien?: string | null;
@@ -12581,6 +12760,7 @@ export declare const getActiveFloridayConnectionFn: import("@tanstack/start-clie
12581
12760
  agent_id?: string | null;
12582
12761
  created_at?: string;
12583
12762
  driver?: string;
12763
+ extern_printer_id?: string | null;
12584
12764
  id?: string;
12585
12765
  ip_adres?: string | null;
12586
12766
  laatst_gezien?: string | null;
@@ -16318,6 +16498,33 @@ export declare const getActiveFloridayConnectionFn: import("@tanstack/start-clie
16318
16498
  referencedColumns: ["id"];
16319
16499
  }];
16320
16500
  };
16501
+ user_module_permissions: {
16502
+ Row: {
16503
+ created_at: string;
16504
+ id: string;
16505
+ module_id: string;
16506
+ permission: string;
16507
+ updated_at: string;
16508
+ user_id: string;
16509
+ };
16510
+ Insert: {
16511
+ created_at?: string;
16512
+ id?: string;
16513
+ module_id: string;
16514
+ permission: string;
16515
+ updated_at?: string;
16516
+ user_id: string;
16517
+ };
16518
+ Update: {
16519
+ created_at?: string;
16520
+ id?: string;
16521
+ module_id?: string;
16522
+ permission?: string;
16523
+ updated_at?: string;
16524
+ user_id?: string;
16525
+ };
16526
+ Relationships: [];
16527
+ };
16321
16528
  user_roles: {
16322
16529
  Row: {
16323
16530
  created_at: string;
@@ -18185,6 +18392,46 @@ export declare const getActiveFloridayConnectionFn: import("@tanstack/start-clie
18185
18392
  };
18186
18393
  Returns: import("../integrations/supabase/types").Json;
18187
18394
  };
18395
+ claim_cloud_print_jobs: {
18396
+ Args: {
18397
+ _max?: number;
18398
+ };
18399
+ Returns: {
18400
+ agent_id: string | null;
18401
+ bron_job_id: string | null;
18402
+ created_at: string;
18403
+ documentnaam: string;
18404
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
18405
+ extern_job_id: string | null;
18406
+ foutmelding: string | null;
18407
+ gebruiker_id: string | null;
18408
+ gebruiker_naam: string;
18409
+ gestart_op: string | null;
18410
+ id: string;
18411
+ idempotentie_sleutel: string | null;
18412
+ is_herprint: boolean;
18413
+ kopieen: number;
18414
+ layout_id: string | null;
18415
+ opgepakt_op: string | null;
18416
+ paginas: number;
18417
+ payload: import("../integrations/supabase/types").Json;
18418
+ pdf_base64: string | null;
18419
+ pdf_url: string | null;
18420
+ pogingen: number;
18421
+ printer_id: string | null;
18422
+ render_html: string | null;
18423
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
18424
+ updated_at: string;
18425
+ volgende_poging: string | null;
18426
+ voltooid_op: string | null;
18427
+ }[];
18428
+ SetofOptions: {
18429
+ from: "*";
18430
+ to: "print_jobs";
18431
+ isOneToOne: false;
18432
+ isSetofReturn: true;
18433
+ };
18434
+ };
18188
18435
  claim_floriday_stock_queue: {
18189
18436
  Args: {
18190
18437
  p_limit?: number;
@@ -18275,22 +18522,27 @@ export declare const getActiveFloridayConnectionFn: import("@tanstack/start-clie
18275
18522
  created_at: string;
18276
18523
  documentnaam: string;
18277
18524
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
18525
+ extern_job_id: string | null;
18278
18526
  foutmelding: string | null;
18279
18527
  gebruiker_id: string | null;
18280
18528
  gebruiker_naam: string;
18281
18529
  gestart_op: string | null;
18282
18530
  id: string;
18531
+ idempotentie_sleutel: string | null;
18283
18532
  is_herprint: boolean;
18284
18533
  kopieen: number;
18285
18534
  layout_id: string | null;
18286
18535
  opgepakt_op: string | null;
18287
18536
  paginas: number;
18288
18537
  payload: import("../integrations/supabase/types").Json;
18538
+ pdf_base64: string | null;
18539
+ pdf_url: string | null;
18289
18540
  pogingen: number;
18290
18541
  printer_id: string | null;
18291
18542
  render_html: string | null;
18292
18543
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
18293
18544
  updated_at: string;
18545
+ volgende_poging: string | null;
18294
18546
  voltooid_op: string | null;
18295
18547
  }[];
18296
18548
  SetofOptions: {
@@ -18336,6 +18588,10 @@ export declare const getActiveFloridayConnectionFn: import("@tanstack/start-clie
18336
18588
  Args: never;
18337
18589
  Returns: undefined;
18338
18590
  };
18591
+ cleanup_voorraad_module_history: {
18592
+ Args: never;
18593
+ Returns: undefined;
18594
+ };
18339
18595
  complete_floriday_stock_queue: {
18340
18596
  Args: {
18341
18597
  p_attempt_id?: string;
@@ -18457,6 +18713,13 @@ export declare const getActiveFloridayConnectionFn: import("@tanstack/start-clie
18457
18713
  };
18458
18714
  Returns: import("../integrations/supabase/types").Json;
18459
18715
  };
18716
+ effective_module_permission: {
18717
+ Args: {
18718
+ _module_id: string;
18719
+ _user_id: string;
18720
+ };
18721
+ Returns: string;
18722
+ };
18460
18723
  email_auth_decrypt: {
18461
18724
  Args: {
18462
18725
  cipher: string;
@@ -19260,6 +19523,51 @@ export declare const getActiveFloridayConnectionFn: import("@tanstack/start-clie
19260
19523
  isSetofReturn: false;
19261
19524
  };
19262
19525
  };
19526
+ logistics_floriday_claim_pushes: {
19527
+ Args: {
19528
+ _lease_seconds?: number;
19529
+ _limit?: number;
19530
+ _worker?: string;
19531
+ };
19532
+ Returns: {
19533
+ attempts: number;
19534
+ fulfillment_order_id: string;
19535
+ id: string;
19536
+ last_sent_hash: string;
19537
+ order_ref: string;
19538
+ payload: import("../integrations/supabase/types").Json;
19539
+ payload_hash: string;
19540
+ revision: number;
19541
+ }[];
19542
+ };
19543
+ logistics_floriday_finish_push: {
19544
+ Args: {
19545
+ _error?: string;
19546
+ _fulfillment_order_id?: string;
19547
+ _id: string;
19548
+ _max_age_hours?: number;
19549
+ _max_attempts?: number;
19550
+ _ok: boolean;
19551
+ _permanent?: boolean;
19552
+ _revision: number;
19553
+ _sent_hash?: string;
19554
+ };
19555
+ Returns: string;
19556
+ };
19557
+ logistics_floriday_prune_pushes: {
19558
+ Args: {
19559
+ _days?: number;
19560
+ };
19561
+ Returns: number;
19562
+ };
19563
+ logistics_floriday_queue_push: {
19564
+ Args: {
19565
+ _order_ref: string;
19566
+ _payload?: import("../integrations/supabase/types").Json;
19567
+ _payload_hash?: string;
19568
+ };
19569
+ Returns: string;
19570
+ };
19263
19571
  logistics_live_carriers: {
19264
19572
  Args: {
19265
19573
  p_order_ref: string;
@@ -19550,6 +19858,13 @@ export declare const getActiveFloridayConnectionFn: import("@tanstack/start-clie
19550
19858
  };
19551
19859
  Returns: undefined;
19552
19860
  };
19861
+ my_module_permissions: {
19862
+ Args: never;
19863
+ Returns: {
19864
+ module_id: string;
19865
+ permission: string;
19866
+ }[];
19867
+ };
19553
19868
  next_manufacture_partij: {
19554
19869
  Args: {
19555
19870
  _tenant_id: string;
@@ -19600,6 +19915,13 @@ export declare const getActiveFloridayConnectionFn: import("@tanstack/start-clie
19600
19915
  };
19601
19916
  Returns: boolean;
19602
19917
  };
19918
+ opruim_print_historie: {
19919
+ Args: never;
19920
+ Returns: {
19921
+ ontdaan: number;
19922
+ verwijderd: number;
19923
+ }[];
19924
+ };
19603
19925
  order_number_prefix: {
19604
19926
  Args: {
19605
19927
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -19607,6 +19929,15 @@ export declare const getActiveFloridayConnectionFn: import("@tanstack/start-clie
19607
19929
  };
19608
19930
  Returns: string;
19609
19931
  };
19932
+ pick_active_printers: {
19933
+ Args: never;
19934
+ Returns: {
19935
+ id: string;
19936
+ locatie: string;
19937
+ naam: string;
19938
+ online: boolean;
19939
+ }[];
19940
+ };
19610
19941
  pick_claim_document: {
19611
19942
  Args: {
19612
19943
  _queue_item_id: string;
@@ -19793,6 +20124,52 @@ export declare const getActiveFloridayConnectionFn: import("@tanstack/start-clie
19793
20124
  };
19794
20125
  Returns: undefined;
19795
20126
  };
20127
+ pick_reset_print: {
20128
+ Args: {
20129
+ _queue_item_id: string;
20130
+ _session_id: string;
20131
+ };
20132
+ Returns: {
20133
+ announced_at: string;
20134
+ assigned_user_id: string | null;
20135
+ barcode: string | null;
20136
+ cancelled_at: string | null;
20137
+ cart_count: number;
20138
+ completed_at: string | null;
20139
+ country_code: string | null;
20140
+ created_at: string;
20141
+ customer_name: string | null;
20142
+ delivery_address: string | null;
20143
+ document_number: string | null;
20144
+ document_type_id: string | null;
20145
+ due_at: string | null;
20146
+ id: string;
20147
+ is_urgent: boolean;
20148
+ line_count: number;
20149
+ order_number: string | null;
20150
+ order_type: string | null;
20151
+ payload: import("../integrations/supabase/types").Json;
20152
+ print_count: number;
20153
+ print_job_id: string | null;
20154
+ printed_at: string | null;
20155
+ printed_by: string | null;
20156
+ printer_id: string | null;
20157
+ priority: number;
20158
+ reference: string | null;
20159
+ route: string | null;
20160
+ screen_id: string | null;
20161
+ station_id: string | null;
20162
+ status_id: string | null;
20163
+ updated_at: string;
20164
+ warnings: import("../integrations/supabase/types").Json;
20165
+ };
20166
+ SetofOptions: {
20167
+ from: "*";
20168
+ to: "pick_queue";
20169
+ isOneToOne: true;
20170
+ isSetofReturn: false;
20171
+ };
20172
+ };
19796
20173
  pick_station_dashboard: {
19797
20174
  Args: never;
19798
20175
  Returns: {
@@ -19939,6 +20316,12 @@ export declare const getActiveFloridayConnectionFn: import("@tanstack/start-clie
19939
20316
  };
19940
20317
  Returns: undefined;
19941
20318
  };
20319
+ reset_stalled_floriday_stock_queue: {
20320
+ Args: {
20321
+ p_include_failed?: boolean;
20322
+ };
20323
+ Returns: number;
20324
+ };
19942
20325
  resolve_group_allocation: {
19943
20326
  Args: {
19944
20327
  _needed: number;
@@ -19983,14 +20366,28 @@ export declare const getActiveFloridayConnectionFn: import("@tanstack/start-clie
19983
20366
  };
19984
20367
  Returns: import("../integrations/supabase/types").Json;
19985
20368
  };
20369
+ ruim_print_jobs_op: {
20370
+ Args: {
20371
+ _bewaar_dagen?: number;
20372
+ };
20373
+ Returns: number;
20374
+ };
19986
20375
  run_floriday_continuous_stock_sync: {
19987
20376
  Args: never;
19988
20377
  Returns: undefined;
19989
20378
  };
20379
+ run_floriday_stock_queue_process: {
20380
+ Args: never;
20381
+ Returns: undefined;
20382
+ };
19990
20383
  run_logistics_tasks_dispatch: {
19991
20384
  Args: never;
19992
20385
  Returns: undefined;
19993
20386
  };
20387
+ run_print_queue_ticks: {
20388
+ Args: never;
20389
+ Returns: number;
20390
+ };
19994
20391
  run_twinfield_queue_tick: {
19995
20392
  Args: never;
19996
20393
  Returns: undefined;
@@ -20378,6 +20775,15 @@ export declare const getActiveFloridayConnectionFn: import("@tanstack/start-clie
20378
20775
  };
20379
20776
  Returns: undefined;
20380
20777
  };
20778
+ trade_item_stock_duplicates: {
20779
+ Args: never;
20780
+ Returns: {
20781
+ keys: string[];
20782
+ product_id: string;
20783
+ product_name: string;
20784
+ row_count: number;
20785
+ }[];
20786
+ };
20381
20787
  try_debtor_lock: {
20382
20788
  Args: {
20383
20789
  _group_key: string;
@@ -20427,7 +20833,7 @@ export declare const getActiveFloridayConnectionFn: import("@tanstack/start-clie
20427
20833
  };
20428
20834
  Enums: {
20429
20835
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
20430
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
20836
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
20431
20837
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
20432
20838
  doc_orientation: "portrait" | "landscape";
20433
20839
  exact_env: "staging" | "live";
@@ -22135,7 +22541,7 @@ export declare const getFloridayReadinessFn: import("@tanstack/start-client-core
22135
22541
  city: string | null;
22136
22542
  country: string | null;
22137
22543
  created_at: string;
22138
- customer_id: string | null;
22544
+ customer_id: string;
22139
22545
  external_key: string | null;
22140
22546
  external_provider: string | null;
22141
22547
  floriday_location_id: string | null;
@@ -22159,7 +22565,7 @@ export declare const getFloridayReadinessFn: import("@tanstack/start-client-core
22159
22565
  city?: string | null;
22160
22566
  country?: string | null;
22161
22567
  created_at?: string;
22162
- customer_id?: string | null;
22568
+ customer_id: string;
22163
22569
  external_key?: string | null;
22164
22570
  external_provider?: string | null;
22165
22571
  floriday_location_id?: string | null;
@@ -22183,7 +22589,7 @@ export declare const getFloridayReadinessFn: import("@tanstack/start-client-core
22183
22589
  city?: string | null;
22184
22590
  country?: string | null;
22185
22591
  created_at?: string;
22186
- customer_id?: string | null;
22592
+ customer_id?: string;
22187
22593
  external_key?: string | null;
22188
22594
  external_provider?: string | null;
22189
22595
  floriday_location_id?: string | null;
@@ -28943,6 +29349,69 @@ export declare const getFloridayReadinessFn: import("@tanstack/start-client-core
28943
29349
  };
28944
29350
  Relationships: [];
28945
29351
  };
29352
+ logistics_floriday_pushes: {
29353
+ Row: {
29354
+ attempts: number;
29355
+ created_at: string;
29356
+ first_queued_at: string;
29357
+ fulfillment_order_id: string | null;
29358
+ id: string;
29359
+ last_error: string | null;
29360
+ last_error_at: string | null;
29361
+ last_sent_hash: string | null;
29362
+ locked_by: string | null;
29363
+ locked_until: string | null;
29364
+ next_attempt_at: string;
29365
+ order_ref: string;
29366
+ payload: import("../integrations/supabase/types").Json;
29367
+ payload_hash: string | null;
29368
+ revision: number;
29369
+ sent_at: string | null;
29370
+ status: string;
29371
+ updated_at: string;
29372
+ };
29373
+ Insert: {
29374
+ attempts?: number;
29375
+ created_at?: string;
29376
+ first_queued_at?: string;
29377
+ fulfillment_order_id?: string | null;
29378
+ id?: string;
29379
+ last_error?: string | null;
29380
+ last_error_at?: string | null;
29381
+ last_sent_hash?: string | null;
29382
+ locked_by?: string | null;
29383
+ locked_until?: string | null;
29384
+ next_attempt_at?: string;
29385
+ order_ref: string;
29386
+ payload?: import("../integrations/supabase/types").Json;
29387
+ payload_hash?: string | null;
29388
+ revision?: number;
29389
+ sent_at?: string | null;
29390
+ status?: string;
29391
+ updated_at?: string;
29392
+ };
29393
+ Update: {
29394
+ attempts?: number;
29395
+ created_at?: string;
29396
+ first_queued_at?: string;
29397
+ fulfillment_order_id?: string | null;
29398
+ id?: string;
29399
+ last_error?: string | null;
29400
+ last_error_at?: string | null;
29401
+ last_sent_hash?: string | null;
29402
+ locked_by?: string | null;
29403
+ locked_until?: string | null;
29404
+ next_attempt_at?: string;
29405
+ order_ref?: string;
29406
+ payload?: import("../integrations/supabase/types").Json;
29407
+ payload_hash?: string | null;
29408
+ revision?: number;
29409
+ sent_at?: string | null;
29410
+ status?: string;
29411
+ updated_at?: string;
29412
+ };
29413
+ Relationships: [];
29414
+ };
28946
29415
  logistics_formulas: {
28947
29416
  Row: {
28948
29417
  created_at: string;
@@ -29806,14 +30275,17 @@ export declare const getFloridayReadinessFn: import("@tanstack/start-client-core
29806
30275
  };
29807
30276
  mailbox_messages: {
29808
30277
  Row: {
30278
+ attachments: import("../integrations/supabase/types").Json;
29809
30279
  body_html: string | null;
29810
30280
  body_text: string | null;
30281
+ cc_recipients: import("../integrations/supabase/types").Json;
29811
30282
  connection_id: string | null;
29812
30283
  created_at: string;
29813
30284
  error_message: string | null;
29814
30285
  external_id: string | null;
29815
30286
  from_email: string | null;
29816
30287
  from_name: string | null;
30288
+ has_attachments: boolean;
29817
30289
  id: string;
29818
30290
  message_id: string | null;
29819
30291
  profile_id: string | null;
@@ -29821,18 +30293,22 @@ export declare const getFloridayReadinessFn: import("@tanstack/start-client-core
29821
30293
  received_at: string | null;
29822
30294
  status: string;
29823
30295
  subject: string | null;
30296
+ to_recipients: import("../integrations/supabase/types").Json;
29824
30297
  uid: number | null;
29825
30298
  updated_at: string;
29826
30299
  };
29827
30300
  Insert: {
30301
+ attachments?: import("../integrations/supabase/types").Json;
29828
30302
  body_html?: string | null;
29829
30303
  body_text?: string | null;
30304
+ cc_recipients?: import("../integrations/supabase/types").Json;
29830
30305
  connection_id?: string | null;
29831
30306
  created_at?: string;
29832
30307
  error_message?: string | null;
29833
30308
  external_id?: string | null;
29834
30309
  from_email?: string | null;
29835
30310
  from_name?: string | null;
30311
+ has_attachments?: boolean;
29836
30312
  id?: string;
29837
30313
  message_id?: string | null;
29838
30314
  profile_id?: string | null;
@@ -29840,18 +30316,22 @@ export declare const getFloridayReadinessFn: import("@tanstack/start-client-core
29840
30316
  received_at?: string | null;
29841
30317
  status?: string;
29842
30318
  subject?: string | null;
30319
+ to_recipients?: import("../integrations/supabase/types").Json;
29843
30320
  uid?: number | null;
29844
30321
  updated_at?: string;
29845
30322
  };
29846
30323
  Update: {
30324
+ attachments?: import("../integrations/supabase/types").Json;
29847
30325
  body_html?: string | null;
29848
30326
  body_text?: string | null;
30327
+ cc_recipients?: import("../integrations/supabase/types").Json;
29849
30328
  connection_id?: string | null;
29850
30329
  created_at?: string;
29851
30330
  error_message?: string | null;
29852
30331
  external_id?: string | null;
29853
30332
  from_email?: string | null;
29854
30333
  from_name?: string | null;
30334
+ has_attachments?: boolean;
29855
30335
  id?: string;
29856
30336
  message_id?: string | null;
29857
30337
  profile_id?: string | null;
@@ -29859,6 +30339,7 @@ export declare const getFloridayReadinessFn: import("@tanstack/start-client-core
29859
30339
  received_at?: string | null;
29860
30340
  status?: string;
29861
30341
  subject?: string | null;
30342
+ to_recipients?: import("../integrations/supabase/types").Json;
29862
30343
  uid?: number | null;
29863
30344
  updated_at?: string;
29864
30345
  };
@@ -30266,6 +30747,36 @@ export declare const getFloridayReadinessFn: import("@tanstack/start-client-core
30266
30747
  };
30267
30748
  Relationships: [];
30268
30749
  };
30750
+ module_registry: {
30751
+ Row: {
30752
+ created_at: string;
30753
+ is_active: boolean;
30754
+ last_seen_at: string;
30755
+ module_id: string;
30756
+ name: string;
30757
+ shell_id: string | null;
30758
+ sort_order: number | null;
30759
+ };
30760
+ Insert: {
30761
+ created_at?: string;
30762
+ is_active?: boolean;
30763
+ last_seen_at?: string;
30764
+ module_id: string;
30765
+ name: string;
30766
+ shell_id?: string | null;
30767
+ sort_order?: number | null;
30768
+ };
30769
+ Update: {
30770
+ created_at?: string;
30771
+ is_active?: boolean;
30772
+ last_seen_at?: string;
30773
+ module_id?: string;
30774
+ name?: string;
30775
+ shell_id?: string | null;
30776
+ sort_order?: number | null;
30777
+ };
30778
+ Relationships: [];
30779
+ };
30269
30780
  module_runtime_config: {
30270
30781
  Row: {
30271
30782
  key: string;
@@ -32745,22 +33256,27 @@ export declare const getFloridayReadinessFn: import("@tanstack/start-client-core
32745
33256
  created_at: string;
32746
33257
  documentnaam: string;
32747
33258
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
33259
+ extern_job_id: string | null;
32748
33260
  foutmelding: string | null;
32749
33261
  gebruiker_id: string | null;
32750
33262
  gebruiker_naam: string;
32751
33263
  gestart_op: string | null;
32752
33264
  id: string;
33265
+ idempotentie_sleutel: string | null;
32753
33266
  is_herprint: boolean;
32754
33267
  kopieen: number;
32755
33268
  layout_id: string | null;
32756
33269
  opgepakt_op: string | null;
32757
33270
  paginas: number;
32758
33271
  payload: import("../integrations/supabase/types").Json;
33272
+ pdf_base64: string | null;
33273
+ pdf_url: string | null;
32759
33274
  pogingen: number;
32760
33275
  printer_id: string | null;
32761
33276
  render_html: string | null;
32762
33277
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
32763
33278
  updated_at: string;
33279
+ volgende_poging: string | null;
32764
33280
  voltooid_op: string | null;
32765
33281
  };
32766
33282
  Insert: {
@@ -32769,22 +33285,27 @@ export declare const getFloridayReadinessFn: import("@tanstack/start-client-core
32769
33285
  created_at?: string;
32770
33286
  documentnaam?: string;
32771
33287
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
33288
+ extern_job_id?: string | null;
32772
33289
  foutmelding?: string | null;
32773
33290
  gebruiker_id?: string | null;
32774
33291
  gebruiker_naam?: string;
32775
33292
  gestart_op?: string | null;
32776
33293
  id?: string;
33294
+ idempotentie_sleutel?: string | null;
32777
33295
  is_herprint?: boolean;
32778
33296
  kopieen?: number;
32779
33297
  layout_id?: string | null;
32780
33298
  opgepakt_op?: string | null;
32781
33299
  paginas?: number;
32782
33300
  payload?: import("../integrations/supabase/types").Json;
33301
+ pdf_base64?: string | null;
33302
+ pdf_url?: string | null;
32783
33303
  pogingen?: number;
32784
33304
  printer_id?: string | null;
32785
33305
  render_html?: string | null;
32786
33306
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
32787
33307
  updated_at?: string;
33308
+ volgende_poging?: string | null;
32788
33309
  voltooid_op?: string | null;
32789
33310
  };
32790
33311
  Update: {
@@ -32793,22 +33314,27 @@ export declare const getFloridayReadinessFn: import("@tanstack/start-client-core
32793
33314
  created_at?: string;
32794
33315
  documentnaam?: string;
32795
33316
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
33317
+ extern_job_id?: string | null;
32796
33318
  foutmelding?: string | null;
32797
33319
  gebruiker_id?: string | null;
32798
33320
  gebruiker_naam?: string;
32799
33321
  gestart_op?: string | null;
32800
33322
  id?: string;
33323
+ idempotentie_sleutel?: string | null;
32801
33324
  is_herprint?: boolean;
32802
33325
  kopieen?: number;
32803
33326
  layout_id?: string | null;
32804
33327
  opgepakt_op?: string | null;
32805
33328
  paginas?: number;
32806
33329
  payload?: import("../integrations/supabase/types").Json;
33330
+ pdf_base64?: string | null;
33331
+ pdf_url?: string | null;
32807
33332
  pogingen?: number;
32808
33333
  printer_id?: string | null;
32809
33334
  render_html?: string | null;
32810
33335
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
32811
33336
  updated_at?: string;
33337
+ volgende_poging?: string | null;
32812
33338
  voltooid_op?: string | null;
32813
33339
  };
32814
33340
  Relationships: [{
@@ -32831,6 +33357,63 @@ export declare const getFloridayReadinessFn: import("@tanstack/start-client-core
32831
33357
  referencedColumns: ["id"];
32832
33358
  }];
32833
33359
  };
33360
+ print_queue_runners: {
33361
+ Row: {
33362
+ actief: boolean;
33363
+ basis_url: string;
33364
+ created_at: string;
33365
+ id: string;
33366
+ laatst_gezien: string;
33367
+ tick_sleutel: string;
33368
+ updated_at: string;
33369
+ };
33370
+ Insert: {
33371
+ actief?: boolean;
33372
+ basis_url: string;
33373
+ created_at?: string;
33374
+ id?: string;
33375
+ laatst_gezien?: string;
33376
+ tick_sleutel?: string;
33377
+ updated_at?: string;
33378
+ };
33379
+ Update: {
33380
+ actief?: boolean;
33381
+ basis_url?: string;
33382
+ created_at?: string;
33383
+ id?: string;
33384
+ laatst_gezien?: string;
33385
+ tick_sleutel?: string;
33386
+ updated_at?: string;
33387
+ };
33388
+ Relationships: [];
33389
+ };
33390
+ print_queue_settings: {
33391
+ Row: {
33392
+ bewaar_bestanden_dagen: number;
33393
+ bewaar_opdrachten_dagen: number;
33394
+ created_at: string;
33395
+ dubbel_venster_minuten: number;
33396
+ id: string;
33397
+ updated_at: string;
33398
+ };
33399
+ Insert: {
33400
+ bewaar_bestanden_dagen?: number;
33401
+ bewaar_opdrachten_dagen?: number;
33402
+ created_at?: string;
33403
+ dubbel_venster_minuten?: number;
33404
+ id?: string;
33405
+ updated_at?: string;
33406
+ };
33407
+ Update: {
33408
+ bewaar_bestanden_dagen?: number;
33409
+ bewaar_opdrachten_dagen?: number;
33410
+ created_at?: string;
33411
+ dubbel_venster_minuten?: number;
33412
+ id?: string;
33413
+ updated_at?: string;
33414
+ };
33415
+ Relationships: [];
33416
+ };
32834
33417
  print_rules: {
32835
33418
  Row: {
32836
33419
  actief: boolean;
@@ -32991,6 +33574,7 @@ export declare const getFloridayReadinessFn: import("@tanstack/start-client-core
32991
33574
  agent_id: string | null;
32992
33575
  created_at: string;
32993
33576
  driver: string;
33577
+ extern_printer_id: string | null;
32994
33578
  id: string;
32995
33579
  ip_adres: string | null;
32996
33580
  laatst_gezien: string | null;
@@ -33012,6 +33596,7 @@ export declare const getFloridayReadinessFn: import("@tanstack/start-client-core
33012
33596
  agent_id?: string | null;
33013
33597
  created_at?: string;
33014
33598
  driver?: string;
33599
+ extern_printer_id?: string | null;
33015
33600
  id?: string;
33016
33601
  ip_adres?: string | null;
33017
33602
  laatst_gezien?: string | null;
@@ -33033,6 +33618,7 @@ export declare const getFloridayReadinessFn: import("@tanstack/start-client-core
33033
33618
  agent_id?: string | null;
33034
33619
  created_at?: string;
33035
33620
  driver?: string;
33621
+ extern_printer_id?: string | null;
33036
33622
  id?: string;
33037
33623
  ip_adres?: string | null;
33038
33624
  laatst_gezien?: string | null;
@@ -36770,6 +37356,33 @@ export declare const getFloridayReadinessFn: import("@tanstack/start-client-core
36770
37356
  referencedColumns: ["id"];
36771
37357
  }];
36772
37358
  };
37359
+ user_module_permissions: {
37360
+ Row: {
37361
+ created_at: string;
37362
+ id: string;
37363
+ module_id: string;
37364
+ permission: string;
37365
+ updated_at: string;
37366
+ user_id: string;
37367
+ };
37368
+ Insert: {
37369
+ created_at?: string;
37370
+ id?: string;
37371
+ module_id: string;
37372
+ permission: string;
37373
+ updated_at?: string;
37374
+ user_id: string;
37375
+ };
37376
+ Update: {
37377
+ created_at?: string;
37378
+ id?: string;
37379
+ module_id?: string;
37380
+ permission?: string;
37381
+ updated_at?: string;
37382
+ user_id?: string;
37383
+ };
37384
+ Relationships: [];
37385
+ };
36773
37386
  user_roles: {
36774
37387
  Row: {
36775
37388
  created_at: string;
@@ -38637,6 +39250,46 @@ export declare const getFloridayReadinessFn: import("@tanstack/start-client-core
38637
39250
  };
38638
39251
  Returns: import("../integrations/supabase/types").Json;
38639
39252
  };
39253
+ claim_cloud_print_jobs: {
39254
+ Args: {
39255
+ _max?: number;
39256
+ };
39257
+ Returns: {
39258
+ agent_id: string | null;
39259
+ bron_job_id: string | null;
39260
+ created_at: string;
39261
+ documentnaam: string;
39262
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
39263
+ extern_job_id: string | null;
39264
+ foutmelding: string | null;
39265
+ gebruiker_id: string | null;
39266
+ gebruiker_naam: string;
39267
+ gestart_op: string | null;
39268
+ id: string;
39269
+ idempotentie_sleutel: string | null;
39270
+ is_herprint: boolean;
39271
+ kopieen: number;
39272
+ layout_id: string | null;
39273
+ opgepakt_op: string | null;
39274
+ paginas: number;
39275
+ payload: import("../integrations/supabase/types").Json;
39276
+ pdf_base64: string | null;
39277
+ pdf_url: string | null;
39278
+ pogingen: number;
39279
+ printer_id: string | null;
39280
+ render_html: string | null;
39281
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
39282
+ updated_at: string;
39283
+ volgende_poging: string | null;
39284
+ voltooid_op: string | null;
39285
+ }[];
39286
+ SetofOptions: {
39287
+ from: "*";
39288
+ to: "print_jobs";
39289
+ isOneToOne: false;
39290
+ isSetofReturn: true;
39291
+ };
39292
+ };
38640
39293
  claim_floriday_stock_queue: {
38641
39294
  Args: {
38642
39295
  p_limit?: number;
@@ -38727,22 +39380,27 @@ export declare const getFloridayReadinessFn: import("@tanstack/start-client-core
38727
39380
  created_at: string;
38728
39381
  documentnaam: string;
38729
39382
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
39383
+ extern_job_id: string | null;
38730
39384
  foutmelding: string | null;
38731
39385
  gebruiker_id: string | null;
38732
39386
  gebruiker_naam: string;
38733
39387
  gestart_op: string | null;
38734
39388
  id: string;
39389
+ idempotentie_sleutel: string | null;
38735
39390
  is_herprint: boolean;
38736
39391
  kopieen: number;
38737
39392
  layout_id: string | null;
38738
39393
  opgepakt_op: string | null;
38739
39394
  paginas: number;
38740
39395
  payload: import("../integrations/supabase/types").Json;
39396
+ pdf_base64: string | null;
39397
+ pdf_url: string | null;
38741
39398
  pogingen: number;
38742
39399
  printer_id: string | null;
38743
39400
  render_html: string | null;
38744
39401
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
38745
39402
  updated_at: string;
39403
+ volgende_poging: string | null;
38746
39404
  voltooid_op: string | null;
38747
39405
  }[];
38748
39406
  SetofOptions: {
@@ -38788,6 +39446,10 @@ export declare const getFloridayReadinessFn: import("@tanstack/start-client-core
38788
39446
  Args: never;
38789
39447
  Returns: undefined;
38790
39448
  };
39449
+ cleanup_voorraad_module_history: {
39450
+ Args: never;
39451
+ Returns: undefined;
39452
+ };
38791
39453
  complete_floriday_stock_queue: {
38792
39454
  Args: {
38793
39455
  p_attempt_id?: string;
@@ -38909,6 +39571,13 @@ export declare const getFloridayReadinessFn: import("@tanstack/start-client-core
38909
39571
  };
38910
39572
  Returns: import("../integrations/supabase/types").Json;
38911
39573
  };
39574
+ effective_module_permission: {
39575
+ Args: {
39576
+ _module_id: string;
39577
+ _user_id: string;
39578
+ };
39579
+ Returns: string;
39580
+ };
38912
39581
  email_auth_decrypt: {
38913
39582
  Args: {
38914
39583
  cipher: string;
@@ -39712,6 +40381,51 @@ export declare const getFloridayReadinessFn: import("@tanstack/start-client-core
39712
40381
  isSetofReturn: false;
39713
40382
  };
39714
40383
  };
40384
+ logistics_floriday_claim_pushes: {
40385
+ Args: {
40386
+ _lease_seconds?: number;
40387
+ _limit?: number;
40388
+ _worker?: string;
40389
+ };
40390
+ Returns: {
40391
+ attempts: number;
40392
+ fulfillment_order_id: string;
40393
+ id: string;
40394
+ last_sent_hash: string;
40395
+ order_ref: string;
40396
+ payload: import("../integrations/supabase/types").Json;
40397
+ payload_hash: string;
40398
+ revision: number;
40399
+ }[];
40400
+ };
40401
+ logistics_floriday_finish_push: {
40402
+ Args: {
40403
+ _error?: string;
40404
+ _fulfillment_order_id?: string;
40405
+ _id: string;
40406
+ _max_age_hours?: number;
40407
+ _max_attempts?: number;
40408
+ _ok: boolean;
40409
+ _permanent?: boolean;
40410
+ _revision: number;
40411
+ _sent_hash?: string;
40412
+ };
40413
+ Returns: string;
40414
+ };
40415
+ logistics_floriday_prune_pushes: {
40416
+ Args: {
40417
+ _days?: number;
40418
+ };
40419
+ Returns: number;
40420
+ };
40421
+ logistics_floriday_queue_push: {
40422
+ Args: {
40423
+ _order_ref: string;
40424
+ _payload?: import("../integrations/supabase/types").Json;
40425
+ _payload_hash?: string;
40426
+ };
40427
+ Returns: string;
40428
+ };
39715
40429
  logistics_live_carriers: {
39716
40430
  Args: {
39717
40431
  p_order_ref: string;
@@ -40002,6 +40716,13 @@ export declare const getFloridayReadinessFn: import("@tanstack/start-client-core
40002
40716
  };
40003
40717
  Returns: undefined;
40004
40718
  };
40719
+ my_module_permissions: {
40720
+ Args: never;
40721
+ Returns: {
40722
+ module_id: string;
40723
+ permission: string;
40724
+ }[];
40725
+ };
40005
40726
  next_manufacture_partij: {
40006
40727
  Args: {
40007
40728
  _tenant_id: string;
@@ -40052,6 +40773,13 @@ export declare const getFloridayReadinessFn: import("@tanstack/start-client-core
40052
40773
  };
40053
40774
  Returns: boolean;
40054
40775
  };
40776
+ opruim_print_historie: {
40777
+ Args: never;
40778
+ Returns: {
40779
+ ontdaan: number;
40780
+ verwijderd: number;
40781
+ }[];
40782
+ };
40055
40783
  order_number_prefix: {
40056
40784
  Args: {
40057
40785
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -40059,6 +40787,15 @@ export declare const getFloridayReadinessFn: import("@tanstack/start-client-core
40059
40787
  };
40060
40788
  Returns: string;
40061
40789
  };
40790
+ pick_active_printers: {
40791
+ Args: never;
40792
+ Returns: {
40793
+ id: string;
40794
+ locatie: string;
40795
+ naam: string;
40796
+ online: boolean;
40797
+ }[];
40798
+ };
40062
40799
  pick_claim_document: {
40063
40800
  Args: {
40064
40801
  _queue_item_id: string;
@@ -40245,6 +40982,52 @@ export declare const getFloridayReadinessFn: import("@tanstack/start-client-core
40245
40982
  };
40246
40983
  Returns: undefined;
40247
40984
  };
40985
+ pick_reset_print: {
40986
+ Args: {
40987
+ _queue_item_id: string;
40988
+ _session_id: string;
40989
+ };
40990
+ Returns: {
40991
+ announced_at: string;
40992
+ assigned_user_id: string | null;
40993
+ barcode: string | null;
40994
+ cancelled_at: string | null;
40995
+ cart_count: number;
40996
+ completed_at: string | null;
40997
+ country_code: string | null;
40998
+ created_at: string;
40999
+ customer_name: string | null;
41000
+ delivery_address: string | null;
41001
+ document_number: string | null;
41002
+ document_type_id: string | null;
41003
+ due_at: string | null;
41004
+ id: string;
41005
+ is_urgent: boolean;
41006
+ line_count: number;
41007
+ order_number: string | null;
41008
+ order_type: string | null;
41009
+ payload: import("../integrations/supabase/types").Json;
41010
+ print_count: number;
41011
+ print_job_id: string | null;
41012
+ printed_at: string | null;
41013
+ printed_by: string | null;
41014
+ printer_id: string | null;
41015
+ priority: number;
41016
+ reference: string | null;
41017
+ route: string | null;
41018
+ screen_id: string | null;
41019
+ station_id: string | null;
41020
+ status_id: string | null;
41021
+ updated_at: string;
41022
+ warnings: import("../integrations/supabase/types").Json;
41023
+ };
41024
+ SetofOptions: {
41025
+ from: "*";
41026
+ to: "pick_queue";
41027
+ isOneToOne: true;
41028
+ isSetofReturn: false;
41029
+ };
41030
+ };
40248
41031
  pick_station_dashboard: {
40249
41032
  Args: never;
40250
41033
  Returns: {
@@ -40391,6 +41174,12 @@ export declare const getFloridayReadinessFn: import("@tanstack/start-client-core
40391
41174
  };
40392
41175
  Returns: undefined;
40393
41176
  };
41177
+ reset_stalled_floriday_stock_queue: {
41178
+ Args: {
41179
+ p_include_failed?: boolean;
41180
+ };
41181
+ Returns: number;
41182
+ };
40394
41183
  resolve_group_allocation: {
40395
41184
  Args: {
40396
41185
  _needed: number;
@@ -40435,14 +41224,28 @@ export declare const getFloridayReadinessFn: import("@tanstack/start-client-core
40435
41224
  };
40436
41225
  Returns: import("../integrations/supabase/types").Json;
40437
41226
  };
41227
+ ruim_print_jobs_op: {
41228
+ Args: {
41229
+ _bewaar_dagen?: number;
41230
+ };
41231
+ Returns: number;
41232
+ };
40438
41233
  run_floriday_continuous_stock_sync: {
40439
41234
  Args: never;
40440
41235
  Returns: undefined;
40441
41236
  };
41237
+ run_floriday_stock_queue_process: {
41238
+ Args: never;
41239
+ Returns: undefined;
41240
+ };
40442
41241
  run_logistics_tasks_dispatch: {
40443
41242
  Args: never;
40444
41243
  Returns: undefined;
40445
41244
  };
41245
+ run_print_queue_ticks: {
41246
+ Args: never;
41247
+ Returns: number;
41248
+ };
40446
41249
  run_twinfield_queue_tick: {
40447
41250
  Args: never;
40448
41251
  Returns: undefined;
@@ -40830,6 +41633,15 @@ export declare const getFloridayReadinessFn: import("@tanstack/start-client-core
40830
41633
  };
40831
41634
  Returns: undefined;
40832
41635
  };
41636
+ trade_item_stock_duplicates: {
41637
+ Args: never;
41638
+ Returns: {
41639
+ keys: string[];
41640
+ product_id: string;
41641
+ product_name: string;
41642
+ row_count: number;
41643
+ }[];
41644
+ };
40833
41645
  try_debtor_lock: {
40834
41646
  Args: {
40835
41647
  _group_key: string;
@@ -40879,7 +41691,7 @@ export declare const getFloridayReadinessFn: import("@tanstack/start-client-core
40879
41691
  };
40880
41692
  Enums: {
40881
41693
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
40882
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
41694
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
40883
41695
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
40884
41696
  doc_orientation: "portrait" | "landscape";
40885
41697
  exact_env: "staging" | "live";