@flowselections/floriday-voorraad 1.0.33 → 1.0.34

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 +10 -5
  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 +12 -0
  19. package/dist-lib/hooks/useTradeItemStock.d.ts.map +1 -1
  20. package/dist-lib/hooks/useTradeItemStock.js +22 -0
  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 +173 -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 getFloridayVbnRequired: import("@tanstack/start-client-core
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 getFloridayVbnRequired: import("@tanstack/start-client-core
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 getFloridayVbnRequired: import("@tanstack/start-client-core
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 getFloridayVbnRequired: import("@tanstack/start-client-core
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 getFloridayVbnRequired: import("@tanstack/start-client-core
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 getFloridayVbnRequired: import("@tanstack/start-client-core
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 getFloridayVbnRequired: import("@tanstack/start-client-core
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 getFloridayVbnRequired: import("@tanstack/start-client-core
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 getFloridayVbnRequired: import("@tanstack/start-client-core
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 getFloridayVbnRequired: import("@tanstack/start-client-core
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 getFloridayVbnRequired: import("@tanstack/start-client-core
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 getFloridayVbnRequired: import("@tanstack/start-client-core
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 getFloridayVbnRequired: import("@tanstack/start-client-core
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 getFloridayVbnRequired: import("@tanstack/start-client-core
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 getFloridayVbnRequired: import("@tanstack/start-client-core
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 getFloridayVbnRequired: import("@tanstack/start-client-core
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 getFloridayVbnRequired: import("@tanstack/start-client-core
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 getFloridayVbnRequired: import("@tanstack/start-client-core
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 getFloridayVbnRequired: import("@tanstack/start-client-core
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 getFloridayVbnRequired: import("@tanstack/start-client-core
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 getFloridayVbnRequired: import("@tanstack/start-client-core
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 getFloridayVbnRequired: import("@tanstack/start-client-core
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 getFloridayVbnRequired: import("@tanstack/start-client-core
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 getFloridayVbnRequired: import("@tanstack/start-client-core
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 getFloridayVbnRequired: import("@tanstack/start-client-core
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 getFloridayVbnRequired: import("@tanstack/start-client-core
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 getFloridayVbnRequired: import("@tanstack/start-client-core
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 getFloridayVbnRequired: import("@tanstack/start-client-core
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 getFloridayVbnRequired: import("@tanstack/start-client-core
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 getFloridayVbnRequired: import("@tanstack/start-client-core
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";
@@ -22143,7 +22549,7 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
22143
22549
  city: string | null;
22144
22550
  country: string | null;
22145
22551
  created_at: string;
22146
- customer_id: string | null;
22552
+ customer_id: string;
22147
22553
  external_key: string | null;
22148
22554
  external_provider: string | null;
22149
22555
  floriday_location_id: string | null;
@@ -22167,7 +22573,7 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
22167
22573
  city?: string | null;
22168
22574
  country?: string | null;
22169
22575
  created_at?: string;
22170
- customer_id?: string | null;
22576
+ customer_id: string;
22171
22577
  external_key?: string | null;
22172
22578
  external_provider?: string | null;
22173
22579
  floriday_location_id?: string | null;
@@ -22191,7 +22597,7 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
22191
22597
  city?: string | null;
22192
22598
  country?: string | null;
22193
22599
  created_at?: string;
22194
- customer_id?: string | null;
22600
+ customer_id?: string;
22195
22601
  external_key?: string | null;
22196
22602
  external_provider?: string | null;
22197
22603
  floriday_location_id?: string | null;
@@ -28951,6 +29357,69 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
28951
29357
  };
28952
29358
  Relationships: [];
28953
29359
  };
29360
+ logistics_floriday_pushes: {
29361
+ Row: {
29362
+ attempts: number;
29363
+ created_at: string;
29364
+ first_queued_at: string;
29365
+ fulfillment_order_id: string | null;
29366
+ id: string;
29367
+ last_error: string | null;
29368
+ last_error_at: string | null;
29369
+ last_sent_hash: string | null;
29370
+ locked_by: string | null;
29371
+ locked_until: string | null;
29372
+ next_attempt_at: string;
29373
+ order_ref: string;
29374
+ payload: import("../integrations/supabase/types").Json;
29375
+ payload_hash: string | null;
29376
+ revision: number;
29377
+ sent_at: string | null;
29378
+ status: string;
29379
+ updated_at: string;
29380
+ };
29381
+ Insert: {
29382
+ attempts?: number;
29383
+ created_at?: string;
29384
+ first_queued_at?: string;
29385
+ fulfillment_order_id?: string | null;
29386
+ id?: string;
29387
+ last_error?: string | null;
29388
+ last_error_at?: string | null;
29389
+ last_sent_hash?: string | null;
29390
+ locked_by?: string | null;
29391
+ locked_until?: string | null;
29392
+ next_attempt_at?: string;
29393
+ order_ref: string;
29394
+ payload?: import("../integrations/supabase/types").Json;
29395
+ payload_hash?: string | null;
29396
+ revision?: number;
29397
+ sent_at?: string | null;
29398
+ status?: string;
29399
+ updated_at?: string;
29400
+ };
29401
+ Update: {
29402
+ attempts?: number;
29403
+ created_at?: string;
29404
+ first_queued_at?: string;
29405
+ fulfillment_order_id?: string | null;
29406
+ id?: string;
29407
+ last_error?: string | null;
29408
+ last_error_at?: string | null;
29409
+ last_sent_hash?: string | null;
29410
+ locked_by?: string | null;
29411
+ locked_until?: string | null;
29412
+ next_attempt_at?: string;
29413
+ order_ref?: string;
29414
+ payload?: import("../integrations/supabase/types").Json;
29415
+ payload_hash?: string | null;
29416
+ revision?: number;
29417
+ sent_at?: string | null;
29418
+ status?: string;
29419
+ updated_at?: string;
29420
+ };
29421
+ Relationships: [];
29422
+ };
28954
29423
  logistics_formulas: {
28955
29424
  Row: {
28956
29425
  created_at: string;
@@ -29814,14 +30283,17 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
29814
30283
  };
29815
30284
  mailbox_messages: {
29816
30285
  Row: {
30286
+ attachments: import("../integrations/supabase/types").Json;
29817
30287
  body_html: string | null;
29818
30288
  body_text: string | null;
30289
+ cc_recipients: import("../integrations/supabase/types").Json;
29819
30290
  connection_id: string | null;
29820
30291
  created_at: string;
29821
30292
  error_message: string | null;
29822
30293
  external_id: string | null;
29823
30294
  from_email: string | null;
29824
30295
  from_name: string | null;
30296
+ has_attachments: boolean;
29825
30297
  id: string;
29826
30298
  message_id: string | null;
29827
30299
  profile_id: string | null;
@@ -29829,18 +30301,22 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
29829
30301
  received_at: string | null;
29830
30302
  status: string;
29831
30303
  subject: string | null;
30304
+ to_recipients: import("../integrations/supabase/types").Json;
29832
30305
  uid: number | null;
29833
30306
  updated_at: string;
29834
30307
  };
29835
30308
  Insert: {
30309
+ attachments?: import("../integrations/supabase/types").Json;
29836
30310
  body_html?: string | null;
29837
30311
  body_text?: string | null;
30312
+ cc_recipients?: import("../integrations/supabase/types").Json;
29838
30313
  connection_id?: string | null;
29839
30314
  created_at?: string;
29840
30315
  error_message?: string | null;
29841
30316
  external_id?: string | null;
29842
30317
  from_email?: string | null;
29843
30318
  from_name?: string | null;
30319
+ has_attachments?: boolean;
29844
30320
  id?: string;
29845
30321
  message_id?: string | null;
29846
30322
  profile_id?: string | null;
@@ -29848,18 +30324,22 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
29848
30324
  received_at?: string | null;
29849
30325
  status?: string;
29850
30326
  subject?: string | null;
30327
+ to_recipients?: import("../integrations/supabase/types").Json;
29851
30328
  uid?: number | null;
29852
30329
  updated_at?: string;
29853
30330
  };
29854
30331
  Update: {
30332
+ attachments?: import("../integrations/supabase/types").Json;
29855
30333
  body_html?: string | null;
29856
30334
  body_text?: string | null;
30335
+ cc_recipients?: import("../integrations/supabase/types").Json;
29857
30336
  connection_id?: string | null;
29858
30337
  created_at?: string;
29859
30338
  error_message?: string | null;
29860
30339
  external_id?: string | null;
29861
30340
  from_email?: string | null;
29862
30341
  from_name?: string | null;
30342
+ has_attachments?: boolean;
29863
30343
  id?: string;
29864
30344
  message_id?: string | null;
29865
30345
  profile_id?: string | null;
@@ -29867,6 +30347,7 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
29867
30347
  received_at?: string | null;
29868
30348
  status?: string;
29869
30349
  subject?: string | null;
30350
+ to_recipients?: import("../integrations/supabase/types").Json;
29870
30351
  uid?: number | null;
29871
30352
  updated_at?: string;
29872
30353
  };
@@ -30274,6 +30755,36 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
30274
30755
  };
30275
30756
  Relationships: [];
30276
30757
  };
30758
+ module_registry: {
30759
+ Row: {
30760
+ created_at: string;
30761
+ is_active: boolean;
30762
+ last_seen_at: string;
30763
+ module_id: string;
30764
+ name: string;
30765
+ shell_id: string | null;
30766
+ sort_order: number | null;
30767
+ };
30768
+ Insert: {
30769
+ created_at?: string;
30770
+ is_active?: boolean;
30771
+ last_seen_at?: string;
30772
+ module_id: string;
30773
+ name: string;
30774
+ shell_id?: string | null;
30775
+ sort_order?: number | null;
30776
+ };
30777
+ Update: {
30778
+ created_at?: string;
30779
+ is_active?: boolean;
30780
+ last_seen_at?: string;
30781
+ module_id?: string;
30782
+ name?: string;
30783
+ shell_id?: string | null;
30784
+ sort_order?: number | null;
30785
+ };
30786
+ Relationships: [];
30787
+ };
30277
30788
  module_runtime_config: {
30278
30789
  Row: {
30279
30790
  key: string;
@@ -32753,22 +33264,27 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
32753
33264
  created_at: string;
32754
33265
  documentnaam: string;
32755
33266
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
33267
+ extern_job_id: string | null;
32756
33268
  foutmelding: string | null;
32757
33269
  gebruiker_id: string | null;
32758
33270
  gebruiker_naam: string;
32759
33271
  gestart_op: string | null;
32760
33272
  id: string;
33273
+ idempotentie_sleutel: string | null;
32761
33274
  is_herprint: boolean;
32762
33275
  kopieen: number;
32763
33276
  layout_id: string | null;
32764
33277
  opgepakt_op: string | null;
32765
33278
  paginas: number;
32766
33279
  payload: import("../integrations/supabase/types").Json;
33280
+ pdf_base64: string | null;
33281
+ pdf_url: string | null;
32767
33282
  pogingen: number;
32768
33283
  printer_id: string | null;
32769
33284
  render_html: string | null;
32770
33285
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
32771
33286
  updated_at: string;
33287
+ volgende_poging: string | null;
32772
33288
  voltooid_op: string | null;
32773
33289
  };
32774
33290
  Insert: {
@@ -32777,22 +33293,27 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
32777
33293
  created_at?: string;
32778
33294
  documentnaam?: string;
32779
33295
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
33296
+ extern_job_id?: string | null;
32780
33297
  foutmelding?: string | null;
32781
33298
  gebruiker_id?: string | null;
32782
33299
  gebruiker_naam?: string;
32783
33300
  gestart_op?: string | null;
32784
33301
  id?: string;
33302
+ idempotentie_sleutel?: string | null;
32785
33303
  is_herprint?: boolean;
32786
33304
  kopieen?: number;
32787
33305
  layout_id?: string | null;
32788
33306
  opgepakt_op?: string | null;
32789
33307
  paginas?: number;
32790
33308
  payload?: import("../integrations/supabase/types").Json;
33309
+ pdf_base64?: string | null;
33310
+ pdf_url?: string | null;
32791
33311
  pogingen?: number;
32792
33312
  printer_id?: string | null;
32793
33313
  render_html?: string | null;
32794
33314
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
32795
33315
  updated_at?: string;
33316
+ volgende_poging?: string | null;
32796
33317
  voltooid_op?: string | null;
32797
33318
  };
32798
33319
  Update: {
@@ -32801,22 +33322,27 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
32801
33322
  created_at?: string;
32802
33323
  documentnaam?: string;
32803
33324
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
33325
+ extern_job_id?: string | null;
32804
33326
  foutmelding?: string | null;
32805
33327
  gebruiker_id?: string | null;
32806
33328
  gebruiker_naam?: string;
32807
33329
  gestart_op?: string | null;
32808
33330
  id?: string;
33331
+ idempotentie_sleutel?: string | null;
32809
33332
  is_herprint?: boolean;
32810
33333
  kopieen?: number;
32811
33334
  layout_id?: string | null;
32812
33335
  opgepakt_op?: string | null;
32813
33336
  paginas?: number;
32814
33337
  payload?: import("../integrations/supabase/types").Json;
33338
+ pdf_base64?: string | null;
33339
+ pdf_url?: string | null;
32815
33340
  pogingen?: number;
32816
33341
  printer_id?: string | null;
32817
33342
  render_html?: string | null;
32818
33343
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
32819
33344
  updated_at?: string;
33345
+ volgende_poging?: string | null;
32820
33346
  voltooid_op?: string | null;
32821
33347
  };
32822
33348
  Relationships: [{
@@ -32839,6 +33365,63 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
32839
33365
  referencedColumns: ["id"];
32840
33366
  }];
32841
33367
  };
33368
+ print_queue_runners: {
33369
+ Row: {
33370
+ actief: boolean;
33371
+ basis_url: string;
33372
+ created_at: string;
33373
+ id: string;
33374
+ laatst_gezien: string;
33375
+ tick_sleutel: string;
33376
+ updated_at: string;
33377
+ };
33378
+ Insert: {
33379
+ actief?: boolean;
33380
+ basis_url: string;
33381
+ created_at?: string;
33382
+ id?: string;
33383
+ laatst_gezien?: string;
33384
+ tick_sleutel?: string;
33385
+ updated_at?: string;
33386
+ };
33387
+ Update: {
33388
+ actief?: boolean;
33389
+ basis_url?: string;
33390
+ created_at?: string;
33391
+ id?: string;
33392
+ laatst_gezien?: string;
33393
+ tick_sleutel?: string;
33394
+ updated_at?: string;
33395
+ };
33396
+ Relationships: [];
33397
+ };
33398
+ print_queue_settings: {
33399
+ Row: {
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
+ Insert: {
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
+ Update: {
33416
+ bewaar_bestanden_dagen?: number;
33417
+ bewaar_opdrachten_dagen?: number;
33418
+ created_at?: string;
33419
+ dubbel_venster_minuten?: number;
33420
+ id?: string;
33421
+ updated_at?: string;
33422
+ };
33423
+ Relationships: [];
33424
+ };
32842
33425
  print_rules: {
32843
33426
  Row: {
32844
33427
  actief: boolean;
@@ -32999,6 +33582,7 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
32999
33582
  agent_id: string | null;
33000
33583
  created_at: string;
33001
33584
  driver: string;
33585
+ extern_printer_id: string | null;
33002
33586
  id: string;
33003
33587
  ip_adres: string | null;
33004
33588
  laatst_gezien: string | null;
@@ -33020,6 +33604,7 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
33020
33604
  agent_id?: string | null;
33021
33605
  created_at?: string;
33022
33606
  driver?: string;
33607
+ extern_printer_id?: string | null;
33023
33608
  id?: string;
33024
33609
  ip_adres?: string | null;
33025
33610
  laatst_gezien?: string | null;
@@ -33041,6 +33626,7 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
33041
33626
  agent_id?: string | null;
33042
33627
  created_at?: string;
33043
33628
  driver?: string;
33629
+ extern_printer_id?: string | null;
33044
33630
  id?: string;
33045
33631
  ip_adres?: string | null;
33046
33632
  laatst_gezien?: string | null;
@@ -36778,6 +37364,33 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
36778
37364
  referencedColumns: ["id"];
36779
37365
  }];
36780
37366
  };
37367
+ user_module_permissions: {
37368
+ Row: {
37369
+ created_at: string;
37370
+ id: string;
37371
+ module_id: string;
37372
+ permission: string;
37373
+ updated_at: string;
37374
+ user_id: string;
37375
+ };
37376
+ Insert: {
37377
+ created_at?: string;
37378
+ id?: string;
37379
+ module_id: string;
37380
+ permission: string;
37381
+ updated_at?: string;
37382
+ user_id: string;
37383
+ };
37384
+ Update: {
37385
+ created_at?: string;
37386
+ id?: string;
37387
+ module_id?: string;
37388
+ permission?: string;
37389
+ updated_at?: string;
37390
+ user_id?: string;
37391
+ };
37392
+ Relationships: [];
37393
+ };
36781
37394
  user_roles: {
36782
37395
  Row: {
36783
37396
  created_at: string;
@@ -38645,6 +39258,46 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
38645
39258
  };
38646
39259
  Returns: import("../integrations/supabase/types").Json;
38647
39260
  };
39261
+ claim_cloud_print_jobs: {
39262
+ Args: {
39263
+ _max?: number;
39264
+ };
39265
+ Returns: {
39266
+ agent_id: string | null;
39267
+ bron_job_id: string | null;
39268
+ created_at: string;
39269
+ documentnaam: string;
39270
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
39271
+ extern_job_id: string | null;
39272
+ foutmelding: string | null;
39273
+ gebruiker_id: string | null;
39274
+ gebruiker_naam: string;
39275
+ gestart_op: string | null;
39276
+ id: string;
39277
+ idempotentie_sleutel: string | null;
39278
+ is_herprint: boolean;
39279
+ kopieen: number;
39280
+ layout_id: string | null;
39281
+ opgepakt_op: string | null;
39282
+ paginas: number;
39283
+ payload: import("../integrations/supabase/types").Json;
39284
+ pdf_base64: string | null;
39285
+ pdf_url: string | null;
39286
+ pogingen: number;
39287
+ printer_id: string | null;
39288
+ render_html: string | null;
39289
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
39290
+ updated_at: string;
39291
+ volgende_poging: string | null;
39292
+ voltooid_op: string | null;
39293
+ }[];
39294
+ SetofOptions: {
39295
+ from: "*";
39296
+ to: "print_jobs";
39297
+ isOneToOne: false;
39298
+ isSetofReturn: true;
39299
+ };
39300
+ };
38648
39301
  claim_floriday_stock_queue: {
38649
39302
  Args: {
38650
39303
  p_limit?: number;
@@ -38735,22 +39388,27 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
38735
39388
  created_at: string;
38736
39389
  documentnaam: string;
38737
39390
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
39391
+ extern_job_id: string | null;
38738
39392
  foutmelding: string | null;
38739
39393
  gebruiker_id: string | null;
38740
39394
  gebruiker_naam: string;
38741
39395
  gestart_op: string | null;
38742
39396
  id: string;
39397
+ idempotentie_sleutel: string | null;
38743
39398
  is_herprint: boolean;
38744
39399
  kopieen: number;
38745
39400
  layout_id: string | null;
38746
39401
  opgepakt_op: string | null;
38747
39402
  paginas: number;
38748
39403
  payload: import("../integrations/supabase/types").Json;
39404
+ pdf_base64: string | null;
39405
+ pdf_url: string | null;
38749
39406
  pogingen: number;
38750
39407
  printer_id: string | null;
38751
39408
  render_html: string | null;
38752
39409
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
38753
39410
  updated_at: string;
39411
+ volgende_poging: string | null;
38754
39412
  voltooid_op: string | null;
38755
39413
  }[];
38756
39414
  SetofOptions: {
@@ -38796,6 +39454,10 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
38796
39454
  Args: never;
38797
39455
  Returns: undefined;
38798
39456
  };
39457
+ cleanup_voorraad_module_history: {
39458
+ Args: never;
39459
+ Returns: undefined;
39460
+ };
38799
39461
  complete_floriday_stock_queue: {
38800
39462
  Args: {
38801
39463
  p_attempt_id?: string;
@@ -38917,6 +39579,13 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
38917
39579
  };
38918
39580
  Returns: import("../integrations/supabase/types").Json;
38919
39581
  };
39582
+ effective_module_permission: {
39583
+ Args: {
39584
+ _module_id: string;
39585
+ _user_id: string;
39586
+ };
39587
+ Returns: string;
39588
+ };
38920
39589
  email_auth_decrypt: {
38921
39590
  Args: {
38922
39591
  cipher: string;
@@ -39720,6 +40389,51 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
39720
40389
  isSetofReturn: false;
39721
40390
  };
39722
40391
  };
40392
+ logistics_floriday_claim_pushes: {
40393
+ Args: {
40394
+ _lease_seconds?: number;
40395
+ _limit?: number;
40396
+ _worker?: string;
40397
+ };
40398
+ Returns: {
40399
+ attempts: number;
40400
+ fulfillment_order_id: string;
40401
+ id: string;
40402
+ last_sent_hash: string;
40403
+ order_ref: string;
40404
+ payload: import("../integrations/supabase/types").Json;
40405
+ payload_hash: string;
40406
+ revision: number;
40407
+ }[];
40408
+ };
40409
+ logistics_floriday_finish_push: {
40410
+ Args: {
40411
+ _error?: string;
40412
+ _fulfillment_order_id?: string;
40413
+ _id: string;
40414
+ _max_age_hours?: number;
40415
+ _max_attempts?: number;
40416
+ _ok: boolean;
40417
+ _permanent?: boolean;
40418
+ _revision: number;
40419
+ _sent_hash?: string;
40420
+ };
40421
+ Returns: string;
40422
+ };
40423
+ logistics_floriday_prune_pushes: {
40424
+ Args: {
40425
+ _days?: number;
40426
+ };
40427
+ Returns: number;
40428
+ };
40429
+ logistics_floriday_queue_push: {
40430
+ Args: {
40431
+ _order_ref: string;
40432
+ _payload?: import("../integrations/supabase/types").Json;
40433
+ _payload_hash?: string;
40434
+ };
40435
+ Returns: string;
40436
+ };
39723
40437
  logistics_live_carriers: {
39724
40438
  Args: {
39725
40439
  p_order_ref: string;
@@ -40010,6 +40724,13 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
40010
40724
  };
40011
40725
  Returns: undefined;
40012
40726
  };
40727
+ my_module_permissions: {
40728
+ Args: never;
40729
+ Returns: {
40730
+ module_id: string;
40731
+ permission: string;
40732
+ }[];
40733
+ };
40013
40734
  next_manufacture_partij: {
40014
40735
  Args: {
40015
40736
  _tenant_id: string;
@@ -40060,6 +40781,13 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
40060
40781
  };
40061
40782
  Returns: boolean;
40062
40783
  };
40784
+ opruim_print_historie: {
40785
+ Args: never;
40786
+ Returns: {
40787
+ ontdaan: number;
40788
+ verwijderd: number;
40789
+ }[];
40790
+ };
40063
40791
  order_number_prefix: {
40064
40792
  Args: {
40065
40793
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -40067,6 +40795,15 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
40067
40795
  };
40068
40796
  Returns: string;
40069
40797
  };
40798
+ pick_active_printers: {
40799
+ Args: never;
40800
+ Returns: {
40801
+ id: string;
40802
+ locatie: string;
40803
+ naam: string;
40804
+ online: boolean;
40805
+ }[];
40806
+ };
40070
40807
  pick_claim_document: {
40071
40808
  Args: {
40072
40809
  _queue_item_id: string;
@@ -40253,6 +40990,52 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
40253
40990
  };
40254
40991
  Returns: undefined;
40255
40992
  };
40993
+ pick_reset_print: {
40994
+ Args: {
40995
+ _queue_item_id: string;
40996
+ _session_id: string;
40997
+ };
40998
+ Returns: {
40999
+ announced_at: string;
41000
+ assigned_user_id: string | null;
41001
+ barcode: string | null;
41002
+ cancelled_at: string | null;
41003
+ cart_count: number;
41004
+ completed_at: string | null;
41005
+ country_code: string | null;
41006
+ created_at: string;
41007
+ customer_name: string | null;
41008
+ delivery_address: string | null;
41009
+ document_number: string | null;
41010
+ document_type_id: string | null;
41011
+ due_at: string | null;
41012
+ id: string;
41013
+ is_urgent: boolean;
41014
+ line_count: number;
41015
+ order_number: string | null;
41016
+ order_type: string | null;
41017
+ payload: import("../integrations/supabase/types").Json;
41018
+ print_count: number;
41019
+ print_job_id: string | null;
41020
+ printed_at: string | null;
41021
+ printed_by: string | null;
41022
+ printer_id: string | null;
41023
+ priority: number;
41024
+ reference: string | null;
41025
+ route: string | null;
41026
+ screen_id: string | null;
41027
+ station_id: string | null;
41028
+ status_id: string | null;
41029
+ updated_at: string;
41030
+ warnings: import("../integrations/supabase/types").Json;
41031
+ };
41032
+ SetofOptions: {
41033
+ from: "*";
41034
+ to: "pick_queue";
41035
+ isOneToOne: true;
41036
+ isSetofReturn: false;
41037
+ };
41038
+ };
40256
41039
  pick_station_dashboard: {
40257
41040
  Args: never;
40258
41041
  Returns: {
@@ -40399,6 +41182,12 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
40399
41182
  };
40400
41183
  Returns: undefined;
40401
41184
  };
41185
+ reset_stalled_floriday_stock_queue: {
41186
+ Args: {
41187
+ p_include_failed?: boolean;
41188
+ };
41189
+ Returns: number;
41190
+ };
40402
41191
  resolve_group_allocation: {
40403
41192
  Args: {
40404
41193
  _needed: number;
@@ -40443,14 +41232,28 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
40443
41232
  };
40444
41233
  Returns: import("../integrations/supabase/types").Json;
40445
41234
  };
41235
+ ruim_print_jobs_op: {
41236
+ Args: {
41237
+ _bewaar_dagen?: number;
41238
+ };
41239
+ Returns: number;
41240
+ };
40446
41241
  run_floriday_continuous_stock_sync: {
40447
41242
  Args: never;
40448
41243
  Returns: undefined;
40449
41244
  };
41245
+ run_floriday_stock_queue_process: {
41246
+ Args: never;
41247
+ Returns: undefined;
41248
+ };
40450
41249
  run_logistics_tasks_dispatch: {
40451
41250
  Args: never;
40452
41251
  Returns: undefined;
40453
41252
  };
41253
+ run_print_queue_ticks: {
41254
+ Args: never;
41255
+ Returns: number;
41256
+ };
40454
41257
  run_twinfield_queue_tick: {
40455
41258
  Args: never;
40456
41259
  Returns: undefined;
@@ -40838,6 +41641,15 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
40838
41641
  };
40839
41642
  Returns: undefined;
40840
41643
  };
41644
+ trade_item_stock_duplicates: {
41645
+ Args: never;
41646
+ Returns: {
41647
+ keys: string[];
41648
+ product_id: string;
41649
+ product_name: string;
41650
+ row_count: number;
41651
+ }[];
41652
+ };
40841
41653
  try_debtor_lock: {
40842
41654
  Args: {
40843
41655
  _group_key: string;
@@ -40887,7 +41699,7 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
40887
41699
  };
40888
41700
  Enums: {
40889
41701
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
40890
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
41702
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
40891
41703
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
40892
41704
  doc_orientation: "portrait" | "landscape";
40893
41705
  exact_env: "staging" | "live";