@flowselections/floriday-voorraad 1.0.32 → 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
@@ -1697,7 +1697,7 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
1697
1697
  city: string | null;
1698
1698
  country: string | null;
1699
1699
  created_at: string;
1700
- customer_id: string | null;
1700
+ customer_id: string;
1701
1701
  external_key: string | null;
1702
1702
  external_provider: string | null;
1703
1703
  floriday_location_id: string | null;
@@ -1721,7 +1721,7 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
1721
1721
  city?: string | null;
1722
1722
  country?: string | null;
1723
1723
  created_at?: string;
1724
- customer_id?: string | null;
1724
+ customer_id: string;
1725
1725
  external_key?: string | null;
1726
1726
  external_provider?: string | null;
1727
1727
  floriday_location_id?: string | null;
@@ -1745,7 +1745,7 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
1745
1745
  city?: string | null;
1746
1746
  country?: string | null;
1747
1747
  created_at?: string;
1748
- customer_id?: string | null;
1748
+ customer_id?: string;
1749
1749
  external_key?: string | null;
1750
1750
  external_provider?: string | null;
1751
1751
  floriday_location_id?: string | null;
@@ -8505,6 +8505,69 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
8505
8505
  };
8506
8506
  Relationships: [];
8507
8507
  };
8508
+ logistics_floriday_pushes: {
8509
+ Row: {
8510
+ attempts: number;
8511
+ created_at: string;
8512
+ first_queued_at: string;
8513
+ fulfillment_order_id: string | null;
8514
+ id: string;
8515
+ last_error: string | null;
8516
+ last_error_at: string | null;
8517
+ last_sent_hash: string | null;
8518
+ locked_by: string | null;
8519
+ locked_until: string | null;
8520
+ next_attempt_at: string;
8521
+ order_ref: string;
8522
+ payload: import("../integrations/supabase/types").Json;
8523
+ payload_hash: string | null;
8524
+ revision: number;
8525
+ sent_at: string | null;
8526
+ status: string;
8527
+ updated_at: string;
8528
+ };
8529
+ Insert: {
8530
+ attempts?: number;
8531
+ created_at?: string;
8532
+ first_queued_at?: string;
8533
+ fulfillment_order_id?: string | null;
8534
+ id?: string;
8535
+ last_error?: string | null;
8536
+ last_error_at?: string | null;
8537
+ last_sent_hash?: string | null;
8538
+ locked_by?: string | null;
8539
+ locked_until?: string | null;
8540
+ next_attempt_at?: string;
8541
+ order_ref: string;
8542
+ payload?: import("../integrations/supabase/types").Json;
8543
+ payload_hash?: string | null;
8544
+ revision?: number;
8545
+ sent_at?: string | null;
8546
+ status?: string;
8547
+ updated_at?: string;
8548
+ };
8549
+ Update: {
8550
+ attempts?: number;
8551
+ created_at?: string;
8552
+ first_queued_at?: string;
8553
+ fulfillment_order_id?: string | null;
8554
+ id?: string;
8555
+ last_error?: string | null;
8556
+ last_error_at?: string | null;
8557
+ last_sent_hash?: string | null;
8558
+ locked_by?: string | null;
8559
+ locked_until?: string | null;
8560
+ next_attempt_at?: string;
8561
+ order_ref?: string;
8562
+ payload?: import("../integrations/supabase/types").Json;
8563
+ payload_hash?: string | null;
8564
+ revision?: number;
8565
+ sent_at?: string | null;
8566
+ status?: string;
8567
+ updated_at?: string;
8568
+ };
8569
+ Relationships: [];
8570
+ };
8508
8571
  logistics_formulas: {
8509
8572
  Row: {
8510
8573
  created_at: string;
@@ -9368,14 +9431,17 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
9368
9431
  };
9369
9432
  mailbox_messages: {
9370
9433
  Row: {
9434
+ attachments: import("../integrations/supabase/types").Json;
9371
9435
  body_html: string | null;
9372
9436
  body_text: string | null;
9437
+ cc_recipients: import("../integrations/supabase/types").Json;
9373
9438
  connection_id: string | null;
9374
9439
  created_at: string;
9375
9440
  error_message: string | null;
9376
9441
  external_id: string | null;
9377
9442
  from_email: string | null;
9378
9443
  from_name: string | null;
9444
+ has_attachments: boolean;
9379
9445
  id: string;
9380
9446
  message_id: string | null;
9381
9447
  profile_id: string | null;
@@ -9383,18 +9449,22 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
9383
9449
  received_at: string | null;
9384
9450
  status: string;
9385
9451
  subject: string | null;
9452
+ to_recipients: import("../integrations/supabase/types").Json;
9386
9453
  uid: number | null;
9387
9454
  updated_at: string;
9388
9455
  };
9389
9456
  Insert: {
9457
+ attachments?: import("../integrations/supabase/types").Json;
9390
9458
  body_html?: string | null;
9391
9459
  body_text?: string | null;
9460
+ cc_recipients?: import("../integrations/supabase/types").Json;
9392
9461
  connection_id?: string | null;
9393
9462
  created_at?: string;
9394
9463
  error_message?: string | null;
9395
9464
  external_id?: string | null;
9396
9465
  from_email?: string | null;
9397
9466
  from_name?: string | null;
9467
+ has_attachments?: boolean;
9398
9468
  id?: string;
9399
9469
  message_id?: string | null;
9400
9470
  profile_id?: string | null;
@@ -9402,18 +9472,22 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
9402
9472
  received_at?: string | null;
9403
9473
  status?: string;
9404
9474
  subject?: string | null;
9475
+ to_recipients?: import("../integrations/supabase/types").Json;
9405
9476
  uid?: number | null;
9406
9477
  updated_at?: string;
9407
9478
  };
9408
9479
  Update: {
9480
+ attachments?: import("../integrations/supabase/types").Json;
9409
9481
  body_html?: string | null;
9410
9482
  body_text?: string | null;
9483
+ cc_recipients?: import("../integrations/supabase/types").Json;
9411
9484
  connection_id?: string | null;
9412
9485
  created_at?: string;
9413
9486
  error_message?: string | null;
9414
9487
  external_id?: string | null;
9415
9488
  from_email?: string | null;
9416
9489
  from_name?: string | null;
9490
+ has_attachments?: boolean;
9417
9491
  id?: string;
9418
9492
  message_id?: string | null;
9419
9493
  profile_id?: string | null;
@@ -9421,6 +9495,7 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
9421
9495
  received_at?: string | null;
9422
9496
  status?: string;
9423
9497
  subject?: string | null;
9498
+ to_recipients?: import("../integrations/supabase/types").Json;
9424
9499
  uid?: number | null;
9425
9500
  updated_at?: string;
9426
9501
  };
@@ -9828,6 +9903,36 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
9828
9903
  };
9829
9904
  Relationships: [];
9830
9905
  };
9906
+ module_registry: {
9907
+ Row: {
9908
+ created_at: string;
9909
+ is_active: boolean;
9910
+ last_seen_at: string;
9911
+ module_id: string;
9912
+ name: string;
9913
+ shell_id: string | null;
9914
+ sort_order: number | null;
9915
+ };
9916
+ Insert: {
9917
+ created_at?: string;
9918
+ is_active?: boolean;
9919
+ last_seen_at?: string;
9920
+ module_id: string;
9921
+ name: string;
9922
+ shell_id?: string | null;
9923
+ sort_order?: number | null;
9924
+ };
9925
+ Update: {
9926
+ created_at?: string;
9927
+ is_active?: boolean;
9928
+ last_seen_at?: string;
9929
+ module_id?: string;
9930
+ name?: string;
9931
+ shell_id?: string | null;
9932
+ sort_order?: number | null;
9933
+ };
9934
+ Relationships: [];
9935
+ };
9831
9936
  module_runtime_config: {
9832
9937
  Row: {
9833
9938
  key: string;
@@ -12307,22 +12412,27 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
12307
12412
  created_at: string;
12308
12413
  documentnaam: string;
12309
12414
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12415
+ extern_job_id: string | null;
12310
12416
  foutmelding: string | null;
12311
12417
  gebruiker_id: string | null;
12312
12418
  gebruiker_naam: string;
12313
12419
  gestart_op: string | null;
12314
12420
  id: string;
12421
+ idempotentie_sleutel: string | null;
12315
12422
  is_herprint: boolean;
12316
12423
  kopieen: number;
12317
12424
  layout_id: string | null;
12318
12425
  opgepakt_op: string | null;
12319
12426
  paginas: number;
12320
12427
  payload: import("../integrations/supabase/types").Json;
12428
+ pdf_base64: string | null;
12429
+ pdf_url: string | null;
12321
12430
  pogingen: number;
12322
12431
  printer_id: string | null;
12323
12432
  render_html: string | null;
12324
12433
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12325
12434
  updated_at: string;
12435
+ volgende_poging: string | null;
12326
12436
  voltooid_op: string | null;
12327
12437
  };
12328
12438
  Insert: {
@@ -12331,22 +12441,27 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
12331
12441
  created_at?: string;
12332
12442
  documentnaam?: string;
12333
12443
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12444
+ extern_job_id?: string | null;
12334
12445
  foutmelding?: string | null;
12335
12446
  gebruiker_id?: string | null;
12336
12447
  gebruiker_naam?: string;
12337
12448
  gestart_op?: string | null;
12338
12449
  id?: string;
12450
+ idempotentie_sleutel?: string | null;
12339
12451
  is_herprint?: boolean;
12340
12452
  kopieen?: number;
12341
12453
  layout_id?: string | null;
12342
12454
  opgepakt_op?: string | null;
12343
12455
  paginas?: number;
12344
12456
  payload?: import("../integrations/supabase/types").Json;
12457
+ pdf_base64?: string | null;
12458
+ pdf_url?: string | null;
12345
12459
  pogingen?: number;
12346
12460
  printer_id?: string | null;
12347
12461
  render_html?: string | null;
12348
12462
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12349
12463
  updated_at?: string;
12464
+ volgende_poging?: string | null;
12350
12465
  voltooid_op?: string | null;
12351
12466
  };
12352
12467
  Update: {
@@ -12355,22 +12470,27 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
12355
12470
  created_at?: string;
12356
12471
  documentnaam?: string;
12357
12472
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12473
+ extern_job_id?: string | null;
12358
12474
  foutmelding?: string | null;
12359
12475
  gebruiker_id?: string | null;
12360
12476
  gebruiker_naam?: string;
12361
12477
  gestart_op?: string | null;
12362
12478
  id?: string;
12479
+ idempotentie_sleutel?: string | null;
12363
12480
  is_herprint?: boolean;
12364
12481
  kopieen?: number;
12365
12482
  layout_id?: string | null;
12366
12483
  opgepakt_op?: string | null;
12367
12484
  paginas?: number;
12368
12485
  payload?: import("../integrations/supabase/types").Json;
12486
+ pdf_base64?: string | null;
12487
+ pdf_url?: string | null;
12369
12488
  pogingen?: number;
12370
12489
  printer_id?: string | null;
12371
12490
  render_html?: string | null;
12372
12491
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12373
12492
  updated_at?: string;
12493
+ volgende_poging?: string | null;
12374
12494
  voltooid_op?: string | null;
12375
12495
  };
12376
12496
  Relationships: [{
@@ -12393,6 +12513,63 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
12393
12513
  referencedColumns: ["id"];
12394
12514
  }];
12395
12515
  };
12516
+ print_queue_runners: {
12517
+ Row: {
12518
+ actief: boolean;
12519
+ basis_url: string;
12520
+ created_at: string;
12521
+ id: string;
12522
+ laatst_gezien: string;
12523
+ tick_sleutel: string;
12524
+ updated_at: string;
12525
+ };
12526
+ Insert: {
12527
+ actief?: boolean;
12528
+ basis_url: string;
12529
+ created_at?: string;
12530
+ id?: string;
12531
+ laatst_gezien?: string;
12532
+ tick_sleutel?: string;
12533
+ updated_at?: string;
12534
+ };
12535
+ Update: {
12536
+ actief?: boolean;
12537
+ basis_url?: string;
12538
+ created_at?: string;
12539
+ id?: string;
12540
+ laatst_gezien?: string;
12541
+ tick_sleutel?: string;
12542
+ updated_at?: string;
12543
+ };
12544
+ Relationships: [];
12545
+ };
12546
+ print_queue_settings: {
12547
+ Row: {
12548
+ bewaar_bestanden_dagen: number;
12549
+ bewaar_opdrachten_dagen: number;
12550
+ created_at: string;
12551
+ dubbel_venster_minuten: number;
12552
+ id: string;
12553
+ updated_at: string;
12554
+ };
12555
+ Insert: {
12556
+ bewaar_bestanden_dagen?: number;
12557
+ bewaar_opdrachten_dagen?: number;
12558
+ created_at?: string;
12559
+ dubbel_venster_minuten?: number;
12560
+ id?: string;
12561
+ updated_at?: string;
12562
+ };
12563
+ Update: {
12564
+ bewaar_bestanden_dagen?: number;
12565
+ bewaar_opdrachten_dagen?: number;
12566
+ created_at?: string;
12567
+ dubbel_venster_minuten?: number;
12568
+ id?: string;
12569
+ updated_at?: string;
12570
+ };
12571
+ Relationships: [];
12572
+ };
12396
12573
  print_rules: {
12397
12574
  Row: {
12398
12575
  actief: boolean;
@@ -12553,6 +12730,7 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
12553
12730
  agent_id: string | null;
12554
12731
  created_at: string;
12555
12732
  driver: string;
12733
+ extern_printer_id: string | null;
12556
12734
  id: string;
12557
12735
  ip_adres: string | null;
12558
12736
  laatst_gezien: string | null;
@@ -12574,6 +12752,7 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
12574
12752
  agent_id?: string | null;
12575
12753
  created_at?: string;
12576
12754
  driver?: string;
12755
+ extern_printer_id?: string | null;
12577
12756
  id?: string;
12578
12757
  ip_adres?: string | null;
12579
12758
  laatst_gezien?: string | null;
@@ -12595,6 +12774,7 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
12595
12774
  agent_id?: string | null;
12596
12775
  created_at?: string;
12597
12776
  driver?: string;
12777
+ extern_printer_id?: string | null;
12598
12778
  id?: string;
12599
12779
  ip_adres?: string | null;
12600
12780
  laatst_gezien?: string | null;
@@ -16332,6 +16512,33 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
16332
16512
  referencedColumns: ["id"];
16333
16513
  }];
16334
16514
  };
16515
+ user_module_permissions: {
16516
+ Row: {
16517
+ created_at: string;
16518
+ id: string;
16519
+ module_id: string;
16520
+ permission: string;
16521
+ updated_at: string;
16522
+ user_id: string;
16523
+ };
16524
+ Insert: {
16525
+ created_at?: string;
16526
+ id?: string;
16527
+ module_id: string;
16528
+ permission: string;
16529
+ updated_at?: string;
16530
+ user_id: string;
16531
+ };
16532
+ Update: {
16533
+ created_at?: string;
16534
+ id?: string;
16535
+ module_id?: string;
16536
+ permission?: string;
16537
+ updated_at?: string;
16538
+ user_id?: string;
16539
+ };
16540
+ Relationships: [];
16541
+ };
16335
16542
  user_roles: {
16336
16543
  Row: {
16337
16544
  created_at: string;
@@ -18199,6 +18406,46 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
18199
18406
  };
18200
18407
  Returns: import("../integrations/supabase/types").Json;
18201
18408
  };
18409
+ claim_cloud_print_jobs: {
18410
+ Args: {
18411
+ _max?: number;
18412
+ };
18413
+ Returns: {
18414
+ agent_id: string | null;
18415
+ bron_job_id: string | null;
18416
+ created_at: string;
18417
+ documentnaam: string;
18418
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
18419
+ extern_job_id: string | null;
18420
+ foutmelding: string | null;
18421
+ gebruiker_id: string | null;
18422
+ gebruiker_naam: string;
18423
+ gestart_op: string | null;
18424
+ id: string;
18425
+ idempotentie_sleutel: string | null;
18426
+ is_herprint: boolean;
18427
+ kopieen: number;
18428
+ layout_id: string | null;
18429
+ opgepakt_op: string | null;
18430
+ paginas: number;
18431
+ payload: import("../integrations/supabase/types").Json;
18432
+ pdf_base64: string | null;
18433
+ pdf_url: string | null;
18434
+ pogingen: number;
18435
+ printer_id: string | null;
18436
+ render_html: string | null;
18437
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
18438
+ updated_at: string;
18439
+ volgende_poging: string | null;
18440
+ voltooid_op: string | null;
18441
+ }[];
18442
+ SetofOptions: {
18443
+ from: "*";
18444
+ to: "print_jobs";
18445
+ isOneToOne: false;
18446
+ isSetofReturn: true;
18447
+ };
18448
+ };
18202
18449
  claim_floriday_stock_queue: {
18203
18450
  Args: {
18204
18451
  p_limit?: number;
@@ -18289,22 +18536,27 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
18289
18536
  created_at: string;
18290
18537
  documentnaam: string;
18291
18538
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
18539
+ extern_job_id: string | null;
18292
18540
  foutmelding: string | null;
18293
18541
  gebruiker_id: string | null;
18294
18542
  gebruiker_naam: string;
18295
18543
  gestart_op: string | null;
18296
18544
  id: string;
18545
+ idempotentie_sleutel: string | null;
18297
18546
  is_herprint: boolean;
18298
18547
  kopieen: number;
18299
18548
  layout_id: string | null;
18300
18549
  opgepakt_op: string | null;
18301
18550
  paginas: number;
18302
18551
  payload: import("../integrations/supabase/types").Json;
18552
+ pdf_base64: string | null;
18553
+ pdf_url: string | null;
18303
18554
  pogingen: number;
18304
18555
  printer_id: string | null;
18305
18556
  render_html: string | null;
18306
18557
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
18307
18558
  updated_at: string;
18559
+ volgende_poging: string | null;
18308
18560
  voltooid_op: string | null;
18309
18561
  }[];
18310
18562
  SetofOptions: {
@@ -18350,6 +18602,10 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
18350
18602
  Args: never;
18351
18603
  Returns: undefined;
18352
18604
  };
18605
+ cleanup_voorraad_module_history: {
18606
+ Args: never;
18607
+ Returns: undefined;
18608
+ };
18353
18609
  complete_floriday_stock_queue: {
18354
18610
  Args: {
18355
18611
  p_attempt_id?: string;
@@ -18471,6 +18727,13 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
18471
18727
  };
18472
18728
  Returns: import("../integrations/supabase/types").Json;
18473
18729
  };
18730
+ effective_module_permission: {
18731
+ Args: {
18732
+ _module_id: string;
18733
+ _user_id: string;
18734
+ };
18735
+ Returns: string;
18736
+ };
18474
18737
  email_auth_decrypt: {
18475
18738
  Args: {
18476
18739
  cipher: string;
@@ -19274,6 +19537,51 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
19274
19537
  isSetofReturn: false;
19275
19538
  };
19276
19539
  };
19540
+ logistics_floriday_claim_pushes: {
19541
+ Args: {
19542
+ _lease_seconds?: number;
19543
+ _limit?: number;
19544
+ _worker?: string;
19545
+ };
19546
+ Returns: {
19547
+ attempts: number;
19548
+ fulfillment_order_id: string;
19549
+ id: string;
19550
+ last_sent_hash: string;
19551
+ order_ref: string;
19552
+ payload: import("../integrations/supabase/types").Json;
19553
+ payload_hash: string;
19554
+ revision: number;
19555
+ }[];
19556
+ };
19557
+ logistics_floriday_finish_push: {
19558
+ Args: {
19559
+ _error?: string;
19560
+ _fulfillment_order_id?: string;
19561
+ _id: string;
19562
+ _max_age_hours?: number;
19563
+ _max_attempts?: number;
19564
+ _ok: boolean;
19565
+ _permanent?: boolean;
19566
+ _revision: number;
19567
+ _sent_hash?: string;
19568
+ };
19569
+ Returns: string;
19570
+ };
19571
+ logistics_floriday_prune_pushes: {
19572
+ Args: {
19573
+ _days?: number;
19574
+ };
19575
+ Returns: number;
19576
+ };
19577
+ logistics_floriday_queue_push: {
19578
+ Args: {
19579
+ _order_ref: string;
19580
+ _payload?: import("../integrations/supabase/types").Json;
19581
+ _payload_hash?: string;
19582
+ };
19583
+ Returns: string;
19584
+ };
19277
19585
  logistics_live_carriers: {
19278
19586
  Args: {
19279
19587
  p_order_ref: string;
@@ -19564,6 +19872,13 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
19564
19872
  };
19565
19873
  Returns: undefined;
19566
19874
  };
19875
+ my_module_permissions: {
19876
+ Args: never;
19877
+ Returns: {
19878
+ module_id: string;
19879
+ permission: string;
19880
+ }[];
19881
+ };
19567
19882
  next_manufacture_partij: {
19568
19883
  Args: {
19569
19884
  _tenant_id: string;
@@ -19614,6 +19929,13 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
19614
19929
  };
19615
19930
  Returns: boolean;
19616
19931
  };
19932
+ opruim_print_historie: {
19933
+ Args: never;
19934
+ Returns: {
19935
+ ontdaan: number;
19936
+ verwijderd: number;
19937
+ }[];
19938
+ };
19617
19939
  order_number_prefix: {
19618
19940
  Args: {
19619
19941
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -19621,6 +19943,15 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
19621
19943
  };
19622
19944
  Returns: string;
19623
19945
  };
19946
+ pick_active_printers: {
19947
+ Args: never;
19948
+ Returns: {
19949
+ id: string;
19950
+ locatie: string;
19951
+ naam: string;
19952
+ online: boolean;
19953
+ }[];
19954
+ };
19624
19955
  pick_claim_document: {
19625
19956
  Args: {
19626
19957
  _queue_item_id: string;
@@ -19807,6 +20138,52 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
19807
20138
  };
19808
20139
  Returns: undefined;
19809
20140
  };
20141
+ pick_reset_print: {
20142
+ Args: {
20143
+ _queue_item_id: string;
20144
+ _session_id: string;
20145
+ };
20146
+ Returns: {
20147
+ announced_at: string;
20148
+ assigned_user_id: string | null;
20149
+ barcode: string | null;
20150
+ cancelled_at: string | null;
20151
+ cart_count: number;
20152
+ completed_at: string | null;
20153
+ country_code: string | null;
20154
+ created_at: string;
20155
+ customer_name: string | null;
20156
+ delivery_address: string | null;
20157
+ document_number: string | null;
20158
+ document_type_id: string | null;
20159
+ due_at: string | null;
20160
+ id: string;
20161
+ is_urgent: boolean;
20162
+ line_count: number;
20163
+ order_number: string | null;
20164
+ order_type: string | null;
20165
+ payload: import("../integrations/supabase/types").Json;
20166
+ print_count: number;
20167
+ print_job_id: string | null;
20168
+ printed_at: string | null;
20169
+ printed_by: string | null;
20170
+ printer_id: string | null;
20171
+ priority: number;
20172
+ reference: string | null;
20173
+ route: string | null;
20174
+ screen_id: string | null;
20175
+ station_id: string | null;
20176
+ status_id: string | null;
20177
+ updated_at: string;
20178
+ warnings: import("../integrations/supabase/types").Json;
20179
+ };
20180
+ SetofOptions: {
20181
+ from: "*";
20182
+ to: "pick_queue";
20183
+ isOneToOne: true;
20184
+ isSetofReturn: false;
20185
+ };
20186
+ };
19810
20187
  pick_station_dashboard: {
19811
20188
  Args: never;
19812
20189
  Returns: {
@@ -19953,6 +20330,12 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
19953
20330
  };
19954
20331
  Returns: undefined;
19955
20332
  };
20333
+ reset_stalled_floriday_stock_queue: {
20334
+ Args: {
20335
+ p_include_failed?: boolean;
20336
+ };
20337
+ Returns: number;
20338
+ };
19956
20339
  resolve_group_allocation: {
19957
20340
  Args: {
19958
20341
  _needed: number;
@@ -19997,14 +20380,28 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
19997
20380
  };
19998
20381
  Returns: import("../integrations/supabase/types").Json;
19999
20382
  };
20383
+ ruim_print_jobs_op: {
20384
+ Args: {
20385
+ _bewaar_dagen?: number;
20386
+ };
20387
+ Returns: number;
20388
+ };
20000
20389
  run_floriday_continuous_stock_sync: {
20001
20390
  Args: never;
20002
20391
  Returns: undefined;
20003
20392
  };
20393
+ run_floriday_stock_queue_process: {
20394
+ Args: never;
20395
+ Returns: undefined;
20396
+ };
20004
20397
  run_logistics_tasks_dispatch: {
20005
20398
  Args: never;
20006
20399
  Returns: undefined;
20007
20400
  };
20401
+ run_print_queue_ticks: {
20402
+ Args: never;
20403
+ Returns: number;
20404
+ };
20008
20405
  run_twinfield_queue_tick: {
20009
20406
  Args: never;
20010
20407
  Returns: undefined;
@@ -20392,6 +20789,15 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
20392
20789
  };
20393
20790
  Returns: undefined;
20394
20791
  };
20792
+ trade_item_stock_duplicates: {
20793
+ Args: never;
20794
+ Returns: {
20795
+ keys: string[];
20796
+ product_id: string;
20797
+ product_name: string;
20798
+ row_count: number;
20799
+ }[];
20800
+ };
20395
20801
  try_debtor_lock: {
20396
20802
  Args: {
20397
20803
  _group_key: string;
@@ -20441,7 +20847,7 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
20441
20847
  };
20442
20848
  Enums: {
20443
20849
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
20444
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
20850
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
20445
20851
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
20446
20852
  doc_orientation: "portrait" | "landscape";
20447
20853
  exact_env: "staging" | "live";
@@ -22151,7 +22557,7 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
22151
22557
  city: string | null;
22152
22558
  country: string | null;
22153
22559
  created_at: string;
22154
- customer_id: string | null;
22560
+ customer_id: string;
22155
22561
  external_key: string | null;
22156
22562
  external_provider: string | null;
22157
22563
  floriday_location_id: string | null;
@@ -22175,7 +22581,7 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
22175
22581
  city?: string | null;
22176
22582
  country?: string | null;
22177
22583
  created_at?: string;
22178
- customer_id?: string | null;
22584
+ customer_id: string;
22179
22585
  external_key?: string | null;
22180
22586
  external_provider?: string | null;
22181
22587
  floriday_location_id?: string | null;
@@ -22199,7 +22605,7 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
22199
22605
  city?: string | null;
22200
22606
  country?: string | null;
22201
22607
  created_at?: string;
22202
- customer_id?: string | null;
22608
+ customer_id?: string;
22203
22609
  external_key?: string | null;
22204
22610
  external_provider?: string | null;
22205
22611
  floriday_location_id?: string | null;
@@ -28959,6 +29365,69 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
28959
29365
  };
28960
29366
  Relationships: [];
28961
29367
  };
29368
+ logistics_floriday_pushes: {
29369
+ Row: {
29370
+ attempts: number;
29371
+ created_at: string;
29372
+ first_queued_at: string;
29373
+ fulfillment_order_id: string | null;
29374
+ id: string;
29375
+ last_error: string | null;
29376
+ last_error_at: string | null;
29377
+ last_sent_hash: string | null;
29378
+ locked_by: string | null;
29379
+ locked_until: string | null;
29380
+ next_attempt_at: string;
29381
+ order_ref: string;
29382
+ payload: import("../integrations/supabase/types").Json;
29383
+ payload_hash: string | null;
29384
+ revision: number;
29385
+ sent_at: string | null;
29386
+ status: string;
29387
+ updated_at: string;
29388
+ };
29389
+ Insert: {
29390
+ attempts?: number;
29391
+ created_at?: string;
29392
+ first_queued_at?: string;
29393
+ fulfillment_order_id?: string | null;
29394
+ id?: string;
29395
+ last_error?: string | null;
29396
+ last_error_at?: string | null;
29397
+ last_sent_hash?: string | null;
29398
+ locked_by?: string | null;
29399
+ locked_until?: string | null;
29400
+ next_attempt_at?: string;
29401
+ order_ref: string;
29402
+ payload?: import("../integrations/supabase/types").Json;
29403
+ payload_hash?: string | null;
29404
+ revision?: number;
29405
+ sent_at?: string | null;
29406
+ status?: string;
29407
+ updated_at?: string;
29408
+ };
29409
+ Update: {
29410
+ attempts?: number;
29411
+ created_at?: string;
29412
+ first_queued_at?: string;
29413
+ fulfillment_order_id?: string | null;
29414
+ id?: string;
29415
+ last_error?: string | null;
29416
+ last_error_at?: string | null;
29417
+ last_sent_hash?: string | null;
29418
+ locked_by?: string | null;
29419
+ locked_until?: string | null;
29420
+ next_attempt_at?: string;
29421
+ order_ref?: string;
29422
+ payload?: import("../integrations/supabase/types").Json;
29423
+ payload_hash?: string | null;
29424
+ revision?: number;
29425
+ sent_at?: string | null;
29426
+ status?: string;
29427
+ updated_at?: string;
29428
+ };
29429
+ Relationships: [];
29430
+ };
28962
29431
  logistics_formulas: {
28963
29432
  Row: {
28964
29433
  created_at: string;
@@ -29822,14 +30291,17 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
29822
30291
  };
29823
30292
  mailbox_messages: {
29824
30293
  Row: {
30294
+ attachments: import("../integrations/supabase/types").Json;
29825
30295
  body_html: string | null;
29826
30296
  body_text: string | null;
30297
+ cc_recipients: import("../integrations/supabase/types").Json;
29827
30298
  connection_id: string | null;
29828
30299
  created_at: string;
29829
30300
  error_message: string | null;
29830
30301
  external_id: string | null;
29831
30302
  from_email: string | null;
29832
30303
  from_name: string | null;
30304
+ has_attachments: boolean;
29833
30305
  id: string;
29834
30306
  message_id: string | null;
29835
30307
  profile_id: string | null;
@@ -29837,18 +30309,22 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
29837
30309
  received_at: string | null;
29838
30310
  status: string;
29839
30311
  subject: string | null;
30312
+ to_recipients: import("../integrations/supabase/types").Json;
29840
30313
  uid: number | null;
29841
30314
  updated_at: string;
29842
30315
  };
29843
30316
  Insert: {
30317
+ attachments?: import("../integrations/supabase/types").Json;
29844
30318
  body_html?: string | null;
29845
30319
  body_text?: string | null;
30320
+ cc_recipients?: import("../integrations/supabase/types").Json;
29846
30321
  connection_id?: string | null;
29847
30322
  created_at?: string;
29848
30323
  error_message?: string | null;
29849
30324
  external_id?: string | null;
29850
30325
  from_email?: string | null;
29851
30326
  from_name?: string | null;
30327
+ has_attachments?: boolean;
29852
30328
  id?: string;
29853
30329
  message_id?: string | null;
29854
30330
  profile_id?: string | null;
@@ -29856,18 +30332,22 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
29856
30332
  received_at?: string | null;
29857
30333
  status?: string;
29858
30334
  subject?: string | null;
30335
+ to_recipients?: import("../integrations/supabase/types").Json;
29859
30336
  uid?: number | null;
29860
30337
  updated_at?: string;
29861
30338
  };
29862
30339
  Update: {
30340
+ attachments?: import("../integrations/supabase/types").Json;
29863
30341
  body_html?: string | null;
29864
30342
  body_text?: string | null;
30343
+ cc_recipients?: import("../integrations/supabase/types").Json;
29865
30344
  connection_id?: string | null;
29866
30345
  created_at?: string;
29867
30346
  error_message?: string | null;
29868
30347
  external_id?: string | null;
29869
30348
  from_email?: string | null;
29870
30349
  from_name?: string | null;
30350
+ has_attachments?: boolean;
29871
30351
  id?: string;
29872
30352
  message_id?: string | null;
29873
30353
  profile_id?: string | null;
@@ -29875,6 +30355,7 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
29875
30355
  received_at?: string | null;
29876
30356
  status?: string;
29877
30357
  subject?: string | null;
30358
+ to_recipients?: import("../integrations/supabase/types").Json;
29878
30359
  uid?: number | null;
29879
30360
  updated_at?: string;
29880
30361
  };
@@ -30282,6 +30763,36 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
30282
30763
  };
30283
30764
  Relationships: [];
30284
30765
  };
30766
+ module_registry: {
30767
+ Row: {
30768
+ created_at: string;
30769
+ is_active: boolean;
30770
+ last_seen_at: string;
30771
+ module_id: string;
30772
+ name: string;
30773
+ shell_id: string | null;
30774
+ sort_order: number | null;
30775
+ };
30776
+ Insert: {
30777
+ created_at?: string;
30778
+ is_active?: boolean;
30779
+ last_seen_at?: string;
30780
+ module_id: string;
30781
+ name: string;
30782
+ shell_id?: string | null;
30783
+ sort_order?: number | null;
30784
+ };
30785
+ Update: {
30786
+ created_at?: string;
30787
+ is_active?: boolean;
30788
+ last_seen_at?: string;
30789
+ module_id?: string;
30790
+ name?: string;
30791
+ shell_id?: string | null;
30792
+ sort_order?: number | null;
30793
+ };
30794
+ Relationships: [];
30795
+ };
30285
30796
  module_runtime_config: {
30286
30797
  Row: {
30287
30798
  key: string;
@@ -32761,22 +33272,27 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
32761
33272
  created_at: string;
32762
33273
  documentnaam: string;
32763
33274
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
33275
+ extern_job_id: string | null;
32764
33276
  foutmelding: string | null;
32765
33277
  gebruiker_id: string | null;
32766
33278
  gebruiker_naam: string;
32767
33279
  gestart_op: string | null;
32768
33280
  id: string;
33281
+ idempotentie_sleutel: string | null;
32769
33282
  is_herprint: boolean;
32770
33283
  kopieen: number;
32771
33284
  layout_id: string | null;
32772
33285
  opgepakt_op: string | null;
32773
33286
  paginas: number;
32774
33287
  payload: import("../integrations/supabase/types").Json;
33288
+ pdf_base64: string | null;
33289
+ pdf_url: string | null;
32775
33290
  pogingen: number;
32776
33291
  printer_id: string | null;
32777
33292
  render_html: string | null;
32778
33293
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
32779
33294
  updated_at: string;
33295
+ volgende_poging: string | null;
32780
33296
  voltooid_op: string | null;
32781
33297
  };
32782
33298
  Insert: {
@@ -32785,22 +33301,27 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
32785
33301
  created_at?: string;
32786
33302
  documentnaam?: string;
32787
33303
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
33304
+ extern_job_id?: string | null;
32788
33305
  foutmelding?: string | null;
32789
33306
  gebruiker_id?: string | null;
32790
33307
  gebruiker_naam?: string;
32791
33308
  gestart_op?: string | null;
32792
33309
  id?: string;
33310
+ idempotentie_sleutel?: string | null;
32793
33311
  is_herprint?: boolean;
32794
33312
  kopieen?: number;
32795
33313
  layout_id?: string | null;
32796
33314
  opgepakt_op?: string | null;
32797
33315
  paginas?: number;
32798
33316
  payload?: import("../integrations/supabase/types").Json;
33317
+ pdf_base64?: string | null;
33318
+ pdf_url?: string | null;
32799
33319
  pogingen?: number;
32800
33320
  printer_id?: string | null;
32801
33321
  render_html?: string | null;
32802
33322
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
32803
33323
  updated_at?: string;
33324
+ volgende_poging?: string | null;
32804
33325
  voltooid_op?: string | null;
32805
33326
  };
32806
33327
  Update: {
@@ -32809,22 +33330,27 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
32809
33330
  created_at?: string;
32810
33331
  documentnaam?: string;
32811
33332
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
33333
+ extern_job_id?: string | null;
32812
33334
  foutmelding?: string | null;
32813
33335
  gebruiker_id?: string | null;
32814
33336
  gebruiker_naam?: string;
32815
33337
  gestart_op?: string | null;
32816
33338
  id?: string;
33339
+ idempotentie_sleutel?: string | null;
32817
33340
  is_herprint?: boolean;
32818
33341
  kopieen?: number;
32819
33342
  layout_id?: string | null;
32820
33343
  opgepakt_op?: string | null;
32821
33344
  paginas?: number;
32822
33345
  payload?: import("../integrations/supabase/types").Json;
33346
+ pdf_base64?: string | null;
33347
+ pdf_url?: string | null;
32823
33348
  pogingen?: number;
32824
33349
  printer_id?: string | null;
32825
33350
  render_html?: string | null;
32826
33351
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
32827
33352
  updated_at?: string;
33353
+ volgende_poging?: string | null;
32828
33354
  voltooid_op?: string | null;
32829
33355
  };
32830
33356
  Relationships: [{
@@ -32847,6 +33373,63 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
32847
33373
  referencedColumns: ["id"];
32848
33374
  }];
32849
33375
  };
33376
+ print_queue_runners: {
33377
+ Row: {
33378
+ actief: boolean;
33379
+ basis_url: string;
33380
+ created_at: string;
33381
+ id: string;
33382
+ laatst_gezien: string;
33383
+ tick_sleutel: string;
33384
+ updated_at: string;
33385
+ };
33386
+ Insert: {
33387
+ actief?: boolean;
33388
+ basis_url: string;
33389
+ created_at?: string;
33390
+ id?: string;
33391
+ laatst_gezien?: string;
33392
+ tick_sleutel?: string;
33393
+ updated_at?: string;
33394
+ };
33395
+ Update: {
33396
+ actief?: boolean;
33397
+ basis_url?: string;
33398
+ created_at?: string;
33399
+ id?: string;
33400
+ laatst_gezien?: string;
33401
+ tick_sleutel?: string;
33402
+ updated_at?: string;
33403
+ };
33404
+ Relationships: [];
33405
+ };
33406
+ print_queue_settings: {
33407
+ Row: {
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
+ Insert: {
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
+ Update: {
33424
+ bewaar_bestanden_dagen?: number;
33425
+ bewaar_opdrachten_dagen?: number;
33426
+ created_at?: string;
33427
+ dubbel_venster_minuten?: number;
33428
+ id?: string;
33429
+ updated_at?: string;
33430
+ };
33431
+ Relationships: [];
33432
+ };
32850
33433
  print_rules: {
32851
33434
  Row: {
32852
33435
  actief: boolean;
@@ -33007,6 +33590,7 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
33007
33590
  agent_id: string | null;
33008
33591
  created_at: string;
33009
33592
  driver: string;
33593
+ extern_printer_id: string | null;
33010
33594
  id: string;
33011
33595
  ip_adres: string | null;
33012
33596
  laatst_gezien: string | null;
@@ -33028,6 +33612,7 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
33028
33612
  agent_id?: string | null;
33029
33613
  created_at?: string;
33030
33614
  driver?: string;
33615
+ extern_printer_id?: string | null;
33031
33616
  id?: string;
33032
33617
  ip_adres?: string | null;
33033
33618
  laatst_gezien?: string | null;
@@ -33049,6 +33634,7 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
33049
33634
  agent_id?: string | null;
33050
33635
  created_at?: string;
33051
33636
  driver?: string;
33637
+ extern_printer_id?: string | null;
33052
33638
  id?: string;
33053
33639
  ip_adres?: string | null;
33054
33640
  laatst_gezien?: string | null;
@@ -36786,6 +37372,33 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
36786
37372
  referencedColumns: ["id"];
36787
37373
  }];
36788
37374
  };
37375
+ user_module_permissions: {
37376
+ Row: {
37377
+ created_at: string;
37378
+ id: string;
37379
+ module_id: string;
37380
+ permission: string;
37381
+ updated_at: string;
37382
+ user_id: string;
37383
+ };
37384
+ Insert: {
37385
+ created_at?: string;
37386
+ id?: string;
37387
+ module_id: string;
37388
+ permission: string;
37389
+ updated_at?: string;
37390
+ user_id: string;
37391
+ };
37392
+ Update: {
37393
+ created_at?: string;
37394
+ id?: string;
37395
+ module_id?: string;
37396
+ permission?: string;
37397
+ updated_at?: string;
37398
+ user_id?: string;
37399
+ };
37400
+ Relationships: [];
37401
+ };
36789
37402
  user_roles: {
36790
37403
  Row: {
36791
37404
  created_at: string;
@@ -38653,6 +39266,46 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
38653
39266
  };
38654
39267
  Returns: import("../integrations/supabase/types").Json;
38655
39268
  };
39269
+ claim_cloud_print_jobs: {
39270
+ Args: {
39271
+ _max?: number;
39272
+ };
39273
+ Returns: {
39274
+ agent_id: string | null;
39275
+ bron_job_id: string | null;
39276
+ created_at: string;
39277
+ documentnaam: string;
39278
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
39279
+ extern_job_id: string | null;
39280
+ foutmelding: string | null;
39281
+ gebruiker_id: string | null;
39282
+ gebruiker_naam: string;
39283
+ gestart_op: string | null;
39284
+ id: string;
39285
+ idempotentie_sleutel: string | null;
39286
+ is_herprint: boolean;
39287
+ kopieen: number;
39288
+ layout_id: string | null;
39289
+ opgepakt_op: string | null;
39290
+ paginas: number;
39291
+ payload: import("../integrations/supabase/types").Json;
39292
+ pdf_base64: string | null;
39293
+ pdf_url: string | null;
39294
+ pogingen: number;
39295
+ printer_id: string | null;
39296
+ render_html: string | null;
39297
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
39298
+ updated_at: string;
39299
+ volgende_poging: string | null;
39300
+ voltooid_op: string | null;
39301
+ }[];
39302
+ SetofOptions: {
39303
+ from: "*";
39304
+ to: "print_jobs";
39305
+ isOneToOne: false;
39306
+ isSetofReturn: true;
39307
+ };
39308
+ };
38656
39309
  claim_floriday_stock_queue: {
38657
39310
  Args: {
38658
39311
  p_limit?: number;
@@ -38743,22 +39396,27 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
38743
39396
  created_at: string;
38744
39397
  documentnaam: string;
38745
39398
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
39399
+ extern_job_id: string | null;
38746
39400
  foutmelding: string | null;
38747
39401
  gebruiker_id: string | null;
38748
39402
  gebruiker_naam: string;
38749
39403
  gestart_op: string | null;
38750
39404
  id: string;
39405
+ idempotentie_sleutel: string | null;
38751
39406
  is_herprint: boolean;
38752
39407
  kopieen: number;
38753
39408
  layout_id: string | null;
38754
39409
  opgepakt_op: string | null;
38755
39410
  paginas: number;
38756
39411
  payload: import("../integrations/supabase/types").Json;
39412
+ pdf_base64: string | null;
39413
+ pdf_url: string | null;
38757
39414
  pogingen: number;
38758
39415
  printer_id: string | null;
38759
39416
  render_html: string | null;
38760
39417
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
38761
39418
  updated_at: string;
39419
+ volgende_poging: string | null;
38762
39420
  voltooid_op: string | null;
38763
39421
  }[];
38764
39422
  SetofOptions: {
@@ -38804,6 +39462,10 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
38804
39462
  Args: never;
38805
39463
  Returns: undefined;
38806
39464
  };
39465
+ cleanup_voorraad_module_history: {
39466
+ Args: never;
39467
+ Returns: undefined;
39468
+ };
38807
39469
  complete_floriday_stock_queue: {
38808
39470
  Args: {
38809
39471
  p_attempt_id?: string;
@@ -38925,6 +39587,13 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
38925
39587
  };
38926
39588
  Returns: import("../integrations/supabase/types").Json;
38927
39589
  };
39590
+ effective_module_permission: {
39591
+ Args: {
39592
+ _module_id: string;
39593
+ _user_id: string;
39594
+ };
39595
+ Returns: string;
39596
+ };
38928
39597
  email_auth_decrypt: {
38929
39598
  Args: {
38930
39599
  cipher: string;
@@ -39728,6 +40397,51 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
39728
40397
  isSetofReturn: false;
39729
40398
  };
39730
40399
  };
40400
+ logistics_floriday_claim_pushes: {
40401
+ Args: {
40402
+ _lease_seconds?: number;
40403
+ _limit?: number;
40404
+ _worker?: string;
40405
+ };
40406
+ Returns: {
40407
+ attempts: number;
40408
+ fulfillment_order_id: string;
40409
+ id: string;
40410
+ last_sent_hash: string;
40411
+ order_ref: string;
40412
+ payload: import("../integrations/supabase/types").Json;
40413
+ payload_hash: string;
40414
+ revision: number;
40415
+ }[];
40416
+ };
40417
+ logistics_floriday_finish_push: {
40418
+ Args: {
40419
+ _error?: string;
40420
+ _fulfillment_order_id?: string;
40421
+ _id: string;
40422
+ _max_age_hours?: number;
40423
+ _max_attempts?: number;
40424
+ _ok: boolean;
40425
+ _permanent?: boolean;
40426
+ _revision: number;
40427
+ _sent_hash?: string;
40428
+ };
40429
+ Returns: string;
40430
+ };
40431
+ logistics_floriday_prune_pushes: {
40432
+ Args: {
40433
+ _days?: number;
40434
+ };
40435
+ Returns: number;
40436
+ };
40437
+ logistics_floriday_queue_push: {
40438
+ Args: {
40439
+ _order_ref: string;
40440
+ _payload?: import("../integrations/supabase/types").Json;
40441
+ _payload_hash?: string;
40442
+ };
40443
+ Returns: string;
40444
+ };
39731
40445
  logistics_live_carriers: {
39732
40446
  Args: {
39733
40447
  p_order_ref: string;
@@ -40018,6 +40732,13 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
40018
40732
  };
40019
40733
  Returns: undefined;
40020
40734
  };
40735
+ my_module_permissions: {
40736
+ Args: never;
40737
+ Returns: {
40738
+ module_id: string;
40739
+ permission: string;
40740
+ }[];
40741
+ };
40021
40742
  next_manufacture_partij: {
40022
40743
  Args: {
40023
40744
  _tenant_id: string;
@@ -40068,6 +40789,13 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
40068
40789
  };
40069
40790
  Returns: boolean;
40070
40791
  };
40792
+ opruim_print_historie: {
40793
+ Args: never;
40794
+ Returns: {
40795
+ ontdaan: number;
40796
+ verwijderd: number;
40797
+ }[];
40798
+ };
40071
40799
  order_number_prefix: {
40072
40800
  Args: {
40073
40801
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -40075,6 +40803,15 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
40075
40803
  };
40076
40804
  Returns: string;
40077
40805
  };
40806
+ pick_active_printers: {
40807
+ Args: never;
40808
+ Returns: {
40809
+ id: string;
40810
+ locatie: string;
40811
+ naam: string;
40812
+ online: boolean;
40813
+ }[];
40814
+ };
40078
40815
  pick_claim_document: {
40079
40816
  Args: {
40080
40817
  _queue_item_id: string;
@@ -40261,6 +40998,52 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
40261
40998
  };
40262
40999
  Returns: undefined;
40263
41000
  };
41001
+ pick_reset_print: {
41002
+ Args: {
41003
+ _queue_item_id: string;
41004
+ _session_id: string;
41005
+ };
41006
+ Returns: {
41007
+ announced_at: string;
41008
+ assigned_user_id: string | null;
41009
+ barcode: string | null;
41010
+ cancelled_at: string | null;
41011
+ cart_count: number;
41012
+ completed_at: string | null;
41013
+ country_code: string | null;
41014
+ created_at: string;
41015
+ customer_name: string | null;
41016
+ delivery_address: string | null;
41017
+ document_number: string | null;
41018
+ document_type_id: string | null;
41019
+ due_at: string | null;
41020
+ id: string;
41021
+ is_urgent: boolean;
41022
+ line_count: number;
41023
+ order_number: string | null;
41024
+ order_type: string | null;
41025
+ payload: import("../integrations/supabase/types").Json;
41026
+ print_count: number;
41027
+ print_job_id: string | null;
41028
+ printed_at: string | null;
41029
+ printed_by: string | null;
41030
+ printer_id: string | null;
41031
+ priority: number;
41032
+ reference: string | null;
41033
+ route: string | null;
41034
+ screen_id: string | null;
41035
+ station_id: string | null;
41036
+ status_id: string | null;
41037
+ updated_at: string;
41038
+ warnings: import("../integrations/supabase/types").Json;
41039
+ };
41040
+ SetofOptions: {
41041
+ from: "*";
41042
+ to: "pick_queue";
41043
+ isOneToOne: true;
41044
+ isSetofReturn: false;
41045
+ };
41046
+ };
40264
41047
  pick_station_dashboard: {
40265
41048
  Args: never;
40266
41049
  Returns: {
@@ -40407,6 +41190,12 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
40407
41190
  };
40408
41191
  Returns: undefined;
40409
41192
  };
41193
+ reset_stalled_floriday_stock_queue: {
41194
+ Args: {
41195
+ p_include_failed?: boolean;
41196
+ };
41197
+ Returns: number;
41198
+ };
40410
41199
  resolve_group_allocation: {
40411
41200
  Args: {
40412
41201
  _needed: number;
@@ -40451,14 +41240,28 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
40451
41240
  };
40452
41241
  Returns: import("../integrations/supabase/types").Json;
40453
41242
  };
41243
+ ruim_print_jobs_op: {
41244
+ Args: {
41245
+ _bewaar_dagen?: number;
41246
+ };
41247
+ Returns: number;
41248
+ };
40454
41249
  run_floriday_continuous_stock_sync: {
40455
41250
  Args: never;
40456
41251
  Returns: undefined;
40457
41252
  };
41253
+ run_floriday_stock_queue_process: {
41254
+ Args: never;
41255
+ Returns: undefined;
41256
+ };
40458
41257
  run_logistics_tasks_dispatch: {
40459
41258
  Args: never;
40460
41259
  Returns: undefined;
40461
41260
  };
41261
+ run_print_queue_ticks: {
41262
+ Args: never;
41263
+ Returns: number;
41264
+ };
40462
41265
  run_twinfield_queue_tick: {
40463
41266
  Args: never;
40464
41267
  Returns: undefined;
@@ -40846,6 +41649,15 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
40846
41649
  };
40847
41650
  Returns: undefined;
40848
41651
  };
41652
+ trade_item_stock_duplicates: {
41653
+ Args: never;
41654
+ Returns: {
41655
+ keys: string[];
41656
+ product_id: string;
41657
+ product_name: string;
41658
+ row_count: number;
41659
+ }[];
41660
+ };
40849
41661
  try_debtor_lock: {
40850
41662
  Args: {
40851
41663
  _group_key: string;
@@ -40895,7 +41707,7 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
40895
41707
  };
40896
41708
  Enums: {
40897
41709
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
40898
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
41710
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
40899
41711
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
40900
41712
  doc_orientation: "portrait" | "landscape";
40901
41713
  exact_env: "staging" | "live";
@@ -42600,7 +43412,7 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
42600
43412
  city: string | null;
42601
43413
  country: string | null;
42602
43414
  created_at: string;
42603
- customer_id: string | null;
43415
+ customer_id: string;
42604
43416
  external_key: string | null;
42605
43417
  external_provider: string | null;
42606
43418
  floriday_location_id: string | null;
@@ -42624,7 +43436,7 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
42624
43436
  city?: string | null;
42625
43437
  country?: string | null;
42626
43438
  created_at?: string;
42627
- customer_id?: string | null;
43439
+ customer_id: string;
42628
43440
  external_key?: string | null;
42629
43441
  external_provider?: string | null;
42630
43442
  floriday_location_id?: string | null;
@@ -42648,7 +43460,7 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
42648
43460
  city?: string | null;
42649
43461
  country?: string | null;
42650
43462
  created_at?: string;
42651
- customer_id?: string | null;
43463
+ customer_id?: string;
42652
43464
  external_key?: string | null;
42653
43465
  external_provider?: string | null;
42654
43466
  floriday_location_id?: string | null;
@@ -49408,6 +50220,69 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
49408
50220
  };
49409
50221
  Relationships: [];
49410
50222
  };
50223
+ logistics_floriday_pushes: {
50224
+ Row: {
50225
+ attempts: number;
50226
+ created_at: string;
50227
+ first_queued_at: string;
50228
+ fulfillment_order_id: string | null;
50229
+ id: string;
50230
+ last_error: string | null;
50231
+ last_error_at: string | null;
50232
+ last_sent_hash: string | null;
50233
+ locked_by: string | null;
50234
+ locked_until: string | null;
50235
+ next_attempt_at: string;
50236
+ order_ref: string;
50237
+ payload: import("../integrations/supabase/types").Json;
50238
+ payload_hash: string | null;
50239
+ revision: number;
50240
+ sent_at: string | null;
50241
+ status: string;
50242
+ updated_at: string;
50243
+ };
50244
+ Insert: {
50245
+ attempts?: number;
50246
+ created_at?: string;
50247
+ first_queued_at?: string;
50248
+ fulfillment_order_id?: string | null;
50249
+ id?: string;
50250
+ last_error?: string | null;
50251
+ last_error_at?: string | null;
50252
+ last_sent_hash?: string | null;
50253
+ locked_by?: string | null;
50254
+ locked_until?: string | null;
50255
+ next_attempt_at?: string;
50256
+ order_ref: string;
50257
+ payload?: import("../integrations/supabase/types").Json;
50258
+ payload_hash?: string | null;
50259
+ revision?: number;
50260
+ sent_at?: string | null;
50261
+ status?: string;
50262
+ updated_at?: string;
50263
+ };
50264
+ Update: {
50265
+ attempts?: number;
50266
+ created_at?: string;
50267
+ first_queued_at?: string;
50268
+ fulfillment_order_id?: string | null;
50269
+ id?: string;
50270
+ last_error?: string | null;
50271
+ last_error_at?: string | null;
50272
+ last_sent_hash?: string | null;
50273
+ locked_by?: string | null;
50274
+ locked_until?: string | null;
50275
+ next_attempt_at?: string;
50276
+ order_ref?: string;
50277
+ payload?: import("../integrations/supabase/types").Json;
50278
+ payload_hash?: string | null;
50279
+ revision?: number;
50280
+ sent_at?: string | null;
50281
+ status?: string;
50282
+ updated_at?: string;
50283
+ };
50284
+ Relationships: [];
50285
+ };
49411
50286
  logistics_formulas: {
49412
50287
  Row: {
49413
50288
  created_at: string;
@@ -50271,14 +51146,17 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
50271
51146
  };
50272
51147
  mailbox_messages: {
50273
51148
  Row: {
51149
+ attachments: import("../integrations/supabase/types").Json;
50274
51150
  body_html: string | null;
50275
51151
  body_text: string | null;
51152
+ cc_recipients: import("../integrations/supabase/types").Json;
50276
51153
  connection_id: string | null;
50277
51154
  created_at: string;
50278
51155
  error_message: string | null;
50279
51156
  external_id: string | null;
50280
51157
  from_email: string | null;
50281
51158
  from_name: string | null;
51159
+ has_attachments: boolean;
50282
51160
  id: string;
50283
51161
  message_id: string | null;
50284
51162
  profile_id: string | null;
@@ -50286,18 +51164,22 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
50286
51164
  received_at: string | null;
50287
51165
  status: string;
50288
51166
  subject: string | null;
51167
+ to_recipients: import("../integrations/supabase/types").Json;
50289
51168
  uid: number | null;
50290
51169
  updated_at: string;
50291
51170
  };
50292
51171
  Insert: {
51172
+ attachments?: import("../integrations/supabase/types").Json;
50293
51173
  body_html?: string | null;
50294
51174
  body_text?: string | null;
51175
+ cc_recipients?: import("../integrations/supabase/types").Json;
50295
51176
  connection_id?: string | null;
50296
51177
  created_at?: string;
50297
51178
  error_message?: string | null;
50298
51179
  external_id?: string | null;
50299
51180
  from_email?: string | null;
50300
51181
  from_name?: string | null;
51182
+ has_attachments?: boolean;
50301
51183
  id?: string;
50302
51184
  message_id?: string | null;
50303
51185
  profile_id?: string | null;
@@ -50305,18 +51187,22 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
50305
51187
  received_at?: string | null;
50306
51188
  status?: string;
50307
51189
  subject?: string | null;
51190
+ to_recipients?: import("../integrations/supabase/types").Json;
50308
51191
  uid?: number | null;
50309
51192
  updated_at?: string;
50310
51193
  };
50311
51194
  Update: {
51195
+ attachments?: import("../integrations/supabase/types").Json;
50312
51196
  body_html?: string | null;
50313
51197
  body_text?: string | null;
51198
+ cc_recipients?: import("../integrations/supabase/types").Json;
50314
51199
  connection_id?: string | null;
50315
51200
  created_at?: string;
50316
51201
  error_message?: string | null;
50317
51202
  external_id?: string | null;
50318
51203
  from_email?: string | null;
50319
51204
  from_name?: string | null;
51205
+ has_attachments?: boolean;
50320
51206
  id?: string;
50321
51207
  message_id?: string | null;
50322
51208
  profile_id?: string | null;
@@ -50324,6 +51210,7 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
50324
51210
  received_at?: string | null;
50325
51211
  status?: string;
50326
51212
  subject?: string | null;
51213
+ to_recipients?: import("../integrations/supabase/types").Json;
50327
51214
  uid?: number | null;
50328
51215
  updated_at?: string;
50329
51216
  };
@@ -50731,6 +51618,36 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
50731
51618
  };
50732
51619
  Relationships: [];
50733
51620
  };
51621
+ module_registry: {
51622
+ Row: {
51623
+ created_at: string;
51624
+ is_active: boolean;
51625
+ last_seen_at: string;
51626
+ module_id: string;
51627
+ name: string;
51628
+ shell_id: string | null;
51629
+ sort_order: number | null;
51630
+ };
51631
+ Insert: {
51632
+ created_at?: string;
51633
+ is_active?: boolean;
51634
+ last_seen_at?: string;
51635
+ module_id: string;
51636
+ name: string;
51637
+ shell_id?: string | null;
51638
+ sort_order?: number | null;
51639
+ };
51640
+ Update: {
51641
+ created_at?: string;
51642
+ is_active?: boolean;
51643
+ last_seen_at?: string;
51644
+ module_id?: string;
51645
+ name?: string;
51646
+ shell_id?: string | null;
51647
+ sort_order?: number | null;
51648
+ };
51649
+ Relationships: [];
51650
+ };
50734
51651
  module_runtime_config: {
50735
51652
  Row: {
50736
51653
  key: string;
@@ -53210,22 +54127,27 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
53210
54127
  created_at: string;
53211
54128
  documentnaam: string;
53212
54129
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
54130
+ extern_job_id: string | null;
53213
54131
  foutmelding: string | null;
53214
54132
  gebruiker_id: string | null;
53215
54133
  gebruiker_naam: string;
53216
54134
  gestart_op: string | null;
53217
54135
  id: string;
54136
+ idempotentie_sleutel: string | null;
53218
54137
  is_herprint: boolean;
53219
54138
  kopieen: number;
53220
54139
  layout_id: string | null;
53221
54140
  opgepakt_op: string | null;
53222
54141
  paginas: number;
53223
54142
  payload: import("../integrations/supabase/types").Json;
54143
+ pdf_base64: string | null;
54144
+ pdf_url: string | null;
53224
54145
  pogingen: number;
53225
54146
  printer_id: string | null;
53226
54147
  render_html: string | null;
53227
54148
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
53228
54149
  updated_at: string;
54150
+ volgende_poging: string | null;
53229
54151
  voltooid_op: string | null;
53230
54152
  };
53231
54153
  Insert: {
@@ -53234,22 +54156,27 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
53234
54156
  created_at?: string;
53235
54157
  documentnaam?: string;
53236
54158
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
54159
+ extern_job_id?: string | null;
53237
54160
  foutmelding?: string | null;
53238
54161
  gebruiker_id?: string | null;
53239
54162
  gebruiker_naam?: string;
53240
54163
  gestart_op?: string | null;
53241
54164
  id?: string;
54165
+ idempotentie_sleutel?: string | null;
53242
54166
  is_herprint?: boolean;
53243
54167
  kopieen?: number;
53244
54168
  layout_id?: string | null;
53245
54169
  opgepakt_op?: string | null;
53246
54170
  paginas?: number;
53247
54171
  payload?: import("../integrations/supabase/types").Json;
54172
+ pdf_base64?: string | null;
54173
+ pdf_url?: string | null;
53248
54174
  pogingen?: number;
53249
54175
  printer_id?: string | null;
53250
54176
  render_html?: string | null;
53251
54177
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
53252
54178
  updated_at?: string;
54179
+ volgende_poging?: string | null;
53253
54180
  voltooid_op?: string | null;
53254
54181
  };
53255
54182
  Update: {
@@ -53258,22 +54185,27 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
53258
54185
  created_at?: string;
53259
54186
  documentnaam?: string;
53260
54187
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
54188
+ extern_job_id?: string | null;
53261
54189
  foutmelding?: string | null;
53262
54190
  gebruiker_id?: string | null;
53263
54191
  gebruiker_naam?: string;
53264
54192
  gestart_op?: string | null;
53265
54193
  id?: string;
54194
+ idempotentie_sleutel?: string | null;
53266
54195
  is_herprint?: boolean;
53267
54196
  kopieen?: number;
53268
54197
  layout_id?: string | null;
53269
54198
  opgepakt_op?: string | null;
53270
54199
  paginas?: number;
53271
54200
  payload?: import("../integrations/supabase/types").Json;
54201
+ pdf_base64?: string | null;
54202
+ pdf_url?: string | null;
53272
54203
  pogingen?: number;
53273
54204
  printer_id?: string | null;
53274
54205
  render_html?: string | null;
53275
54206
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
53276
54207
  updated_at?: string;
54208
+ volgende_poging?: string | null;
53277
54209
  voltooid_op?: string | null;
53278
54210
  };
53279
54211
  Relationships: [{
@@ -53296,6 +54228,63 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
53296
54228
  referencedColumns: ["id"];
53297
54229
  }];
53298
54230
  };
54231
+ print_queue_runners: {
54232
+ Row: {
54233
+ actief: boolean;
54234
+ basis_url: string;
54235
+ created_at: string;
54236
+ id: string;
54237
+ laatst_gezien: string;
54238
+ tick_sleutel: string;
54239
+ updated_at: string;
54240
+ };
54241
+ Insert: {
54242
+ actief?: boolean;
54243
+ basis_url: string;
54244
+ created_at?: string;
54245
+ id?: string;
54246
+ laatst_gezien?: string;
54247
+ tick_sleutel?: string;
54248
+ updated_at?: string;
54249
+ };
54250
+ Update: {
54251
+ actief?: boolean;
54252
+ basis_url?: string;
54253
+ created_at?: string;
54254
+ id?: string;
54255
+ laatst_gezien?: string;
54256
+ tick_sleutel?: string;
54257
+ updated_at?: string;
54258
+ };
54259
+ Relationships: [];
54260
+ };
54261
+ print_queue_settings: {
54262
+ Row: {
54263
+ bewaar_bestanden_dagen: number;
54264
+ bewaar_opdrachten_dagen: number;
54265
+ created_at: string;
54266
+ dubbel_venster_minuten: number;
54267
+ id: string;
54268
+ updated_at: string;
54269
+ };
54270
+ Insert: {
54271
+ bewaar_bestanden_dagen?: number;
54272
+ bewaar_opdrachten_dagen?: number;
54273
+ created_at?: string;
54274
+ dubbel_venster_minuten?: number;
54275
+ id?: string;
54276
+ updated_at?: string;
54277
+ };
54278
+ Update: {
54279
+ bewaar_bestanden_dagen?: number;
54280
+ bewaar_opdrachten_dagen?: number;
54281
+ created_at?: string;
54282
+ dubbel_venster_minuten?: number;
54283
+ id?: string;
54284
+ updated_at?: string;
54285
+ };
54286
+ Relationships: [];
54287
+ };
53299
54288
  print_rules: {
53300
54289
  Row: {
53301
54290
  actief: boolean;
@@ -53456,6 +54445,7 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
53456
54445
  agent_id: string | null;
53457
54446
  created_at: string;
53458
54447
  driver: string;
54448
+ extern_printer_id: string | null;
53459
54449
  id: string;
53460
54450
  ip_adres: string | null;
53461
54451
  laatst_gezien: string | null;
@@ -53477,6 +54467,7 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
53477
54467
  agent_id?: string | null;
53478
54468
  created_at?: string;
53479
54469
  driver?: string;
54470
+ extern_printer_id?: string | null;
53480
54471
  id?: string;
53481
54472
  ip_adres?: string | null;
53482
54473
  laatst_gezien?: string | null;
@@ -53498,6 +54489,7 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
53498
54489
  agent_id?: string | null;
53499
54490
  created_at?: string;
53500
54491
  driver?: string;
54492
+ extern_printer_id?: string | null;
53501
54493
  id?: string;
53502
54494
  ip_adres?: string | null;
53503
54495
  laatst_gezien?: string | null;
@@ -57235,6 +58227,33 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
57235
58227
  referencedColumns: ["id"];
57236
58228
  }];
57237
58229
  };
58230
+ user_module_permissions: {
58231
+ Row: {
58232
+ created_at: string;
58233
+ id: string;
58234
+ module_id: string;
58235
+ permission: string;
58236
+ updated_at: string;
58237
+ user_id: string;
58238
+ };
58239
+ Insert: {
58240
+ created_at?: string;
58241
+ id?: string;
58242
+ module_id: string;
58243
+ permission: string;
58244
+ updated_at?: string;
58245
+ user_id: string;
58246
+ };
58247
+ Update: {
58248
+ created_at?: string;
58249
+ id?: string;
58250
+ module_id?: string;
58251
+ permission?: string;
58252
+ updated_at?: string;
58253
+ user_id?: string;
58254
+ };
58255
+ Relationships: [];
58256
+ };
57238
58257
  user_roles: {
57239
58258
  Row: {
57240
58259
  created_at: string;
@@ -59102,6 +60121,46 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
59102
60121
  };
59103
60122
  Returns: import("../integrations/supabase/types").Json;
59104
60123
  };
60124
+ claim_cloud_print_jobs: {
60125
+ Args: {
60126
+ _max?: number;
60127
+ };
60128
+ Returns: {
60129
+ agent_id: string | null;
60130
+ bron_job_id: string | null;
60131
+ created_at: string;
60132
+ documentnaam: string;
60133
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
60134
+ extern_job_id: string | null;
60135
+ foutmelding: string | null;
60136
+ gebruiker_id: string | null;
60137
+ gebruiker_naam: string;
60138
+ gestart_op: string | null;
60139
+ id: string;
60140
+ idempotentie_sleutel: string | null;
60141
+ is_herprint: boolean;
60142
+ kopieen: number;
60143
+ layout_id: string | null;
60144
+ opgepakt_op: string | null;
60145
+ paginas: number;
60146
+ payload: import("../integrations/supabase/types").Json;
60147
+ pdf_base64: string | null;
60148
+ pdf_url: string | null;
60149
+ pogingen: number;
60150
+ printer_id: string | null;
60151
+ render_html: string | null;
60152
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60153
+ updated_at: string;
60154
+ volgende_poging: string | null;
60155
+ voltooid_op: string | null;
60156
+ }[];
60157
+ SetofOptions: {
60158
+ from: "*";
60159
+ to: "print_jobs";
60160
+ isOneToOne: false;
60161
+ isSetofReturn: true;
60162
+ };
60163
+ };
59105
60164
  claim_floriday_stock_queue: {
59106
60165
  Args: {
59107
60166
  p_limit?: number;
@@ -59192,22 +60251,27 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
59192
60251
  created_at: string;
59193
60252
  documentnaam: string;
59194
60253
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
60254
+ extern_job_id: string | null;
59195
60255
  foutmelding: string | null;
59196
60256
  gebruiker_id: string | null;
59197
60257
  gebruiker_naam: string;
59198
60258
  gestart_op: string | null;
59199
60259
  id: string;
60260
+ idempotentie_sleutel: string | null;
59200
60261
  is_herprint: boolean;
59201
60262
  kopieen: number;
59202
60263
  layout_id: string | null;
59203
60264
  opgepakt_op: string | null;
59204
60265
  paginas: number;
59205
60266
  payload: import("../integrations/supabase/types").Json;
60267
+ pdf_base64: string | null;
60268
+ pdf_url: string | null;
59206
60269
  pogingen: number;
59207
60270
  printer_id: string | null;
59208
60271
  render_html: string | null;
59209
60272
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
59210
60273
  updated_at: string;
60274
+ volgende_poging: string | null;
59211
60275
  voltooid_op: string | null;
59212
60276
  }[];
59213
60277
  SetofOptions: {
@@ -59253,6 +60317,10 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
59253
60317
  Args: never;
59254
60318
  Returns: undefined;
59255
60319
  };
60320
+ cleanup_voorraad_module_history: {
60321
+ Args: never;
60322
+ Returns: undefined;
60323
+ };
59256
60324
  complete_floriday_stock_queue: {
59257
60325
  Args: {
59258
60326
  p_attempt_id?: string;
@@ -59374,6 +60442,13 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
59374
60442
  };
59375
60443
  Returns: import("../integrations/supabase/types").Json;
59376
60444
  };
60445
+ effective_module_permission: {
60446
+ Args: {
60447
+ _module_id: string;
60448
+ _user_id: string;
60449
+ };
60450
+ Returns: string;
60451
+ };
59377
60452
  email_auth_decrypt: {
59378
60453
  Args: {
59379
60454
  cipher: string;
@@ -60177,6 +61252,51 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
60177
61252
  isSetofReturn: false;
60178
61253
  };
60179
61254
  };
61255
+ logistics_floriday_claim_pushes: {
61256
+ Args: {
61257
+ _lease_seconds?: number;
61258
+ _limit?: number;
61259
+ _worker?: string;
61260
+ };
61261
+ Returns: {
61262
+ attempts: number;
61263
+ fulfillment_order_id: string;
61264
+ id: string;
61265
+ last_sent_hash: string;
61266
+ order_ref: string;
61267
+ payload: import("../integrations/supabase/types").Json;
61268
+ payload_hash: string;
61269
+ revision: number;
61270
+ }[];
61271
+ };
61272
+ logistics_floriday_finish_push: {
61273
+ Args: {
61274
+ _error?: string;
61275
+ _fulfillment_order_id?: string;
61276
+ _id: string;
61277
+ _max_age_hours?: number;
61278
+ _max_attempts?: number;
61279
+ _ok: boolean;
61280
+ _permanent?: boolean;
61281
+ _revision: number;
61282
+ _sent_hash?: string;
61283
+ };
61284
+ Returns: string;
61285
+ };
61286
+ logistics_floriday_prune_pushes: {
61287
+ Args: {
61288
+ _days?: number;
61289
+ };
61290
+ Returns: number;
61291
+ };
61292
+ logistics_floriday_queue_push: {
61293
+ Args: {
61294
+ _order_ref: string;
61295
+ _payload?: import("../integrations/supabase/types").Json;
61296
+ _payload_hash?: string;
61297
+ };
61298
+ Returns: string;
61299
+ };
60180
61300
  logistics_live_carriers: {
60181
61301
  Args: {
60182
61302
  p_order_ref: string;
@@ -60467,6 +61587,13 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
60467
61587
  };
60468
61588
  Returns: undefined;
60469
61589
  };
61590
+ my_module_permissions: {
61591
+ Args: never;
61592
+ Returns: {
61593
+ module_id: string;
61594
+ permission: string;
61595
+ }[];
61596
+ };
60470
61597
  next_manufacture_partij: {
60471
61598
  Args: {
60472
61599
  _tenant_id: string;
@@ -60517,6 +61644,13 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
60517
61644
  };
60518
61645
  Returns: boolean;
60519
61646
  };
61647
+ opruim_print_historie: {
61648
+ Args: never;
61649
+ Returns: {
61650
+ ontdaan: number;
61651
+ verwijderd: number;
61652
+ }[];
61653
+ };
60520
61654
  order_number_prefix: {
60521
61655
  Args: {
60522
61656
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -60524,6 +61658,15 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
60524
61658
  };
60525
61659
  Returns: string;
60526
61660
  };
61661
+ pick_active_printers: {
61662
+ Args: never;
61663
+ Returns: {
61664
+ id: string;
61665
+ locatie: string;
61666
+ naam: string;
61667
+ online: boolean;
61668
+ }[];
61669
+ };
60527
61670
  pick_claim_document: {
60528
61671
  Args: {
60529
61672
  _queue_item_id: string;
@@ -60710,6 +61853,52 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
60710
61853
  };
60711
61854
  Returns: undefined;
60712
61855
  };
61856
+ pick_reset_print: {
61857
+ Args: {
61858
+ _queue_item_id: string;
61859
+ _session_id: string;
61860
+ };
61861
+ Returns: {
61862
+ announced_at: string;
61863
+ assigned_user_id: string | null;
61864
+ barcode: string | null;
61865
+ cancelled_at: string | null;
61866
+ cart_count: number;
61867
+ completed_at: string | null;
61868
+ country_code: string | null;
61869
+ created_at: string;
61870
+ customer_name: string | null;
61871
+ delivery_address: string | null;
61872
+ document_number: string | null;
61873
+ document_type_id: string | null;
61874
+ due_at: string | null;
61875
+ id: string;
61876
+ is_urgent: boolean;
61877
+ line_count: number;
61878
+ order_number: string | null;
61879
+ order_type: string | null;
61880
+ payload: import("../integrations/supabase/types").Json;
61881
+ print_count: number;
61882
+ print_job_id: string | null;
61883
+ printed_at: string | null;
61884
+ printed_by: string | null;
61885
+ printer_id: string | null;
61886
+ priority: number;
61887
+ reference: string | null;
61888
+ route: string | null;
61889
+ screen_id: string | null;
61890
+ station_id: string | null;
61891
+ status_id: string | null;
61892
+ updated_at: string;
61893
+ warnings: import("../integrations/supabase/types").Json;
61894
+ };
61895
+ SetofOptions: {
61896
+ from: "*";
61897
+ to: "pick_queue";
61898
+ isOneToOne: true;
61899
+ isSetofReturn: false;
61900
+ };
61901
+ };
60713
61902
  pick_station_dashboard: {
60714
61903
  Args: never;
60715
61904
  Returns: {
@@ -60856,6 +62045,12 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
60856
62045
  };
60857
62046
  Returns: undefined;
60858
62047
  };
62048
+ reset_stalled_floriday_stock_queue: {
62049
+ Args: {
62050
+ p_include_failed?: boolean;
62051
+ };
62052
+ Returns: number;
62053
+ };
60859
62054
  resolve_group_allocation: {
60860
62055
  Args: {
60861
62056
  _needed: number;
@@ -60900,14 +62095,28 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
60900
62095
  };
60901
62096
  Returns: import("../integrations/supabase/types").Json;
60902
62097
  };
62098
+ ruim_print_jobs_op: {
62099
+ Args: {
62100
+ _bewaar_dagen?: number;
62101
+ };
62102
+ Returns: number;
62103
+ };
60903
62104
  run_floriday_continuous_stock_sync: {
60904
62105
  Args: never;
60905
62106
  Returns: undefined;
60906
62107
  };
62108
+ run_floriday_stock_queue_process: {
62109
+ Args: never;
62110
+ Returns: undefined;
62111
+ };
60907
62112
  run_logistics_tasks_dispatch: {
60908
62113
  Args: never;
60909
62114
  Returns: undefined;
60910
62115
  };
62116
+ run_print_queue_ticks: {
62117
+ Args: never;
62118
+ Returns: number;
62119
+ };
60911
62120
  run_twinfield_queue_tick: {
60912
62121
  Args: never;
60913
62122
  Returns: undefined;
@@ -61295,6 +62504,15 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
61295
62504
  };
61296
62505
  Returns: undefined;
61297
62506
  };
62507
+ trade_item_stock_duplicates: {
62508
+ Args: never;
62509
+ Returns: {
62510
+ keys: string[];
62511
+ product_id: string;
62512
+ product_name: string;
62513
+ row_count: number;
62514
+ }[];
62515
+ };
61298
62516
  try_debtor_lock: {
61299
62517
  Args: {
61300
62518
  _group_key: string;
@@ -61344,7 +62562,7 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
61344
62562
  };
61345
62563
  Enums: {
61346
62564
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
61347
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
62565
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
61348
62566
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
61349
62567
  doc_orientation: "portrait" | "landscape";
61350
62568
  exact_env: "staging" | "live";