@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
@@ -1708,7 +1708,7 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
1708
1708
  city: string | null;
1709
1709
  country: string | null;
1710
1710
  created_at: string;
1711
- customer_id: string | null;
1711
+ customer_id: string;
1712
1712
  external_key: string | null;
1713
1713
  external_provider: string | null;
1714
1714
  floriday_location_id: string | null;
@@ -1732,7 +1732,7 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
1732
1732
  city?: string | null;
1733
1733
  country?: string | null;
1734
1734
  created_at?: string;
1735
- customer_id?: string | null;
1735
+ customer_id: string;
1736
1736
  external_key?: string | null;
1737
1737
  external_provider?: string | null;
1738
1738
  floriday_location_id?: string | null;
@@ -1756,7 +1756,7 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
1756
1756
  city?: string | null;
1757
1757
  country?: string | null;
1758
1758
  created_at?: string;
1759
- customer_id?: string | null;
1759
+ customer_id?: string;
1760
1760
  external_key?: string | null;
1761
1761
  external_provider?: string | null;
1762
1762
  floriday_location_id?: string | null;
@@ -8516,6 +8516,69 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
8516
8516
  };
8517
8517
  Relationships: [];
8518
8518
  };
8519
+ logistics_floriday_pushes: {
8520
+ Row: {
8521
+ attempts: number;
8522
+ created_at: string;
8523
+ first_queued_at: string;
8524
+ fulfillment_order_id: string | null;
8525
+ id: string;
8526
+ last_error: string | null;
8527
+ last_error_at: string | null;
8528
+ last_sent_hash: string | null;
8529
+ locked_by: string | null;
8530
+ locked_until: string | null;
8531
+ next_attempt_at: string;
8532
+ order_ref: string;
8533
+ payload: import("../integrations/supabase/types").Json;
8534
+ payload_hash: string | null;
8535
+ revision: number;
8536
+ sent_at: string | null;
8537
+ status: string;
8538
+ updated_at: string;
8539
+ };
8540
+ Insert: {
8541
+ attempts?: number;
8542
+ created_at?: string;
8543
+ first_queued_at?: string;
8544
+ fulfillment_order_id?: string | null;
8545
+ id?: string;
8546
+ last_error?: string | null;
8547
+ last_error_at?: string | null;
8548
+ last_sent_hash?: string | null;
8549
+ locked_by?: string | null;
8550
+ locked_until?: string | null;
8551
+ next_attempt_at?: string;
8552
+ order_ref: string;
8553
+ payload?: import("../integrations/supabase/types").Json;
8554
+ payload_hash?: string | null;
8555
+ revision?: number;
8556
+ sent_at?: string | null;
8557
+ status?: string;
8558
+ updated_at?: string;
8559
+ };
8560
+ Update: {
8561
+ attempts?: number;
8562
+ created_at?: string;
8563
+ first_queued_at?: string;
8564
+ fulfillment_order_id?: string | null;
8565
+ id?: string;
8566
+ last_error?: string | null;
8567
+ last_error_at?: string | null;
8568
+ last_sent_hash?: string | null;
8569
+ locked_by?: string | null;
8570
+ locked_until?: string | null;
8571
+ next_attempt_at?: string;
8572
+ order_ref?: string;
8573
+ payload?: import("../integrations/supabase/types").Json;
8574
+ payload_hash?: string | null;
8575
+ revision?: number;
8576
+ sent_at?: string | null;
8577
+ status?: string;
8578
+ updated_at?: string;
8579
+ };
8580
+ Relationships: [];
8581
+ };
8519
8582
  logistics_formulas: {
8520
8583
  Row: {
8521
8584
  created_at: string;
@@ -9379,14 +9442,17 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
9379
9442
  };
9380
9443
  mailbox_messages: {
9381
9444
  Row: {
9445
+ attachments: import("../integrations/supabase/types").Json;
9382
9446
  body_html: string | null;
9383
9447
  body_text: string | null;
9448
+ cc_recipients: import("../integrations/supabase/types").Json;
9384
9449
  connection_id: string | null;
9385
9450
  created_at: string;
9386
9451
  error_message: string | null;
9387
9452
  external_id: string | null;
9388
9453
  from_email: string | null;
9389
9454
  from_name: string | null;
9455
+ has_attachments: boolean;
9390
9456
  id: string;
9391
9457
  message_id: string | null;
9392
9458
  profile_id: string | null;
@@ -9394,18 +9460,22 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
9394
9460
  received_at: string | null;
9395
9461
  status: string;
9396
9462
  subject: string | null;
9463
+ to_recipients: import("../integrations/supabase/types").Json;
9397
9464
  uid: number | null;
9398
9465
  updated_at: string;
9399
9466
  };
9400
9467
  Insert: {
9468
+ attachments?: import("../integrations/supabase/types").Json;
9401
9469
  body_html?: string | null;
9402
9470
  body_text?: string | null;
9471
+ cc_recipients?: import("../integrations/supabase/types").Json;
9403
9472
  connection_id?: string | null;
9404
9473
  created_at?: string;
9405
9474
  error_message?: string | null;
9406
9475
  external_id?: string | null;
9407
9476
  from_email?: string | null;
9408
9477
  from_name?: string | null;
9478
+ has_attachments?: boolean;
9409
9479
  id?: string;
9410
9480
  message_id?: string | null;
9411
9481
  profile_id?: string | null;
@@ -9413,18 +9483,22 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
9413
9483
  received_at?: string | null;
9414
9484
  status?: string;
9415
9485
  subject?: string | null;
9486
+ to_recipients?: import("../integrations/supabase/types").Json;
9416
9487
  uid?: number | null;
9417
9488
  updated_at?: string;
9418
9489
  };
9419
9490
  Update: {
9491
+ attachments?: import("../integrations/supabase/types").Json;
9420
9492
  body_html?: string | null;
9421
9493
  body_text?: string | null;
9494
+ cc_recipients?: import("../integrations/supabase/types").Json;
9422
9495
  connection_id?: string | null;
9423
9496
  created_at?: string;
9424
9497
  error_message?: string | null;
9425
9498
  external_id?: string | null;
9426
9499
  from_email?: string | null;
9427
9500
  from_name?: string | null;
9501
+ has_attachments?: boolean;
9428
9502
  id?: string;
9429
9503
  message_id?: string | null;
9430
9504
  profile_id?: string | null;
@@ -9432,6 +9506,7 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
9432
9506
  received_at?: string | null;
9433
9507
  status?: string;
9434
9508
  subject?: string | null;
9509
+ to_recipients?: import("../integrations/supabase/types").Json;
9435
9510
  uid?: number | null;
9436
9511
  updated_at?: string;
9437
9512
  };
@@ -9839,6 +9914,36 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
9839
9914
  };
9840
9915
  Relationships: [];
9841
9916
  };
9917
+ module_registry: {
9918
+ Row: {
9919
+ created_at: string;
9920
+ is_active: boolean;
9921
+ last_seen_at: string;
9922
+ module_id: string;
9923
+ name: string;
9924
+ shell_id: string | null;
9925
+ sort_order: number | null;
9926
+ };
9927
+ Insert: {
9928
+ created_at?: string;
9929
+ is_active?: boolean;
9930
+ last_seen_at?: string;
9931
+ module_id: string;
9932
+ name: string;
9933
+ shell_id?: string | null;
9934
+ sort_order?: number | null;
9935
+ };
9936
+ Update: {
9937
+ created_at?: string;
9938
+ is_active?: boolean;
9939
+ last_seen_at?: string;
9940
+ module_id?: string;
9941
+ name?: string;
9942
+ shell_id?: string | null;
9943
+ sort_order?: number | null;
9944
+ };
9945
+ Relationships: [];
9946
+ };
9842
9947
  module_runtime_config: {
9843
9948
  Row: {
9844
9949
  key: string;
@@ -12318,22 +12423,27 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
12318
12423
  created_at: string;
12319
12424
  documentnaam: string;
12320
12425
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12426
+ extern_job_id: string | null;
12321
12427
  foutmelding: string | null;
12322
12428
  gebruiker_id: string | null;
12323
12429
  gebruiker_naam: string;
12324
12430
  gestart_op: string | null;
12325
12431
  id: string;
12432
+ idempotentie_sleutel: string | null;
12326
12433
  is_herprint: boolean;
12327
12434
  kopieen: number;
12328
12435
  layout_id: string | null;
12329
12436
  opgepakt_op: string | null;
12330
12437
  paginas: number;
12331
12438
  payload: import("../integrations/supabase/types").Json;
12439
+ pdf_base64: string | null;
12440
+ pdf_url: string | null;
12332
12441
  pogingen: number;
12333
12442
  printer_id: string | null;
12334
12443
  render_html: string | null;
12335
12444
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12336
12445
  updated_at: string;
12446
+ volgende_poging: string | null;
12337
12447
  voltooid_op: string | null;
12338
12448
  };
12339
12449
  Insert: {
@@ -12342,22 +12452,27 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
12342
12452
  created_at?: string;
12343
12453
  documentnaam?: string;
12344
12454
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12455
+ extern_job_id?: string | null;
12345
12456
  foutmelding?: string | null;
12346
12457
  gebruiker_id?: string | null;
12347
12458
  gebruiker_naam?: string;
12348
12459
  gestart_op?: string | null;
12349
12460
  id?: string;
12461
+ idempotentie_sleutel?: string | null;
12350
12462
  is_herprint?: boolean;
12351
12463
  kopieen?: number;
12352
12464
  layout_id?: string | null;
12353
12465
  opgepakt_op?: string | null;
12354
12466
  paginas?: number;
12355
12467
  payload?: import("../integrations/supabase/types").Json;
12468
+ pdf_base64?: string | null;
12469
+ pdf_url?: string | null;
12356
12470
  pogingen?: number;
12357
12471
  printer_id?: string | null;
12358
12472
  render_html?: string | null;
12359
12473
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12360
12474
  updated_at?: string;
12475
+ volgende_poging?: string | null;
12361
12476
  voltooid_op?: string | null;
12362
12477
  };
12363
12478
  Update: {
@@ -12366,22 +12481,27 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
12366
12481
  created_at?: string;
12367
12482
  documentnaam?: string;
12368
12483
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12484
+ extern_job_id?: string | null;
12369
12485
  foutmelding?: string | null;
12370
12486
  gebruiker_id?: string | null;
12371
12487
  gebruiker_naam?: string;
12372
12488
  gestart_op?: string | null;
12373
12489
  id?: string;
12490
+ idempotentie_sleutel?: string | null;
12374
12491
  is_herprint?: boolean;
12375
12492
  kopieen?: number;
12376
12493
  layout_id?: string | null;
12377
12494
  opgepakt_op?: string | null;
12378
12495
  paginas?: number;
12379
12496
  payload?: import("../integrations/supabase/types").Json;
12497
+ pdf_base64?: string | null;
12498
+ pdf_url?: string | null;
12380
12499
  pogingen?: number;
12381
12500
  printer_id?: string | null;
12382
12501
  render_html?: string | null;
12383
12502
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12384
12503
  updated_at?: string;
12504
+ volgende_poging?: string | null;
12385
12505
  voltooid_op?: string | null;
12386
12506
  };
12387
12507
  Relationships: [{
@@ -12404,6 +12524,63 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
12404
12524
  referencedColumns: ["id"];
12405
12525
  }];
12406
12526
  };
12527
+ print_queue_runners: {
12528
+ Row: {
12529
+ actief: boolean;
12530
+ basis_url: string;
12531
+ created_at: string;
12532
+ id: string;
12533
+ laatst_gezien: string;
12534
+ tick_sleutel: string;
12535
+ updated_at: string;
12536
+ };
12537
+ Insert: {
12538
+ actief?: boolean;
12539
+ basis_url: string;
12540
+ created_at?: string;
12541
+ id?: string;
12542
+ laatst_gezien?: string;
12543
+ tick_sleutel?: string;
12544
+ updated_at?: string;
12545
+ };
12546
+ Update: {
12547
+ actief?: boolean;
12548
+ basis_url?: string;
12549
+ created_at?: string;
12550
+ id?: string;
12551
+ laatst_gezien?: string;
12552
+ tick_sleutel?: string;
12553
+ updated_at?: string;
12554
+ };
12555
+ Relationships: [];
12556
+ };
12557
+ print_queue_settings: {
12558
+ Row: {
12559
+ bewaar_bestanden_dagen: number;
12560
+ bewaar_opdrachten_dagen: number;
12561
+ created_at: string;
12562
+ dubbel_venster_minuten: number;
12563
+ id: string;
12564
+ updated_at: string;
12565
+ };
12566
+ Insert: {
12567
+ bewaar_bestanden_dagen?: number;
12568
+ bewaar_opdrachten_dagen?: number;
12569
+ created_at?: string;
12570
+ dubbel_venster_minuten?: number;
12571
+ id?: string;
12572
+ updated_at?: string;
12573
+ };
12574
+ Update: {
12575
+ bewaar_bestanden_dagen?: number;
12576
+ bewaar_opdrachten_dagen?: number;
12577
+ created_at?: string;
12578
+ dubbel_venster_minuten?: number;
12579
+ id?: string;
12580
+ updated_at?: string;
12581
+ };
12582
+ Relationships: [];
12583
+ };
12407
12584
  print_rules: {
12408
12585
  Row: {
12409
12586
  actief: boolean;
@@ -12564,6 +12741,7 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
12564
12741
  agent_id: string | null;
12565
12742
  created_at: string;
12566
12743
  driver: string;
12744
+ extern_printer_id: string | null;
12567
12745
  id: string;
12568
12746
  ip_adres: string | null;
12569
12747
  laatst_gezien: string | null;
@@ -12585,6 +12763,7 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
12585
12763
  agent_id?: string | null;
12586
12764
  created_at?: string;
12587
12765
  driver?: string;
12766
+ extern_printer_id?: string | null;
12588
12767
  id?: string;
12589
12768
  ip_adres?: string | null;
12590
12769
  laatst_gezien?: string | null;
@@ -12606,6 +12785,7 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
12606
12785
  agent_id?: string | null;
12607
12786
  created_at?: string;
12608
12787
  driver?: string;
12788
+ extern_printer_id?: string | null;
12609
12789
  id?: string;
12610
12790
  ip_adres?: string | null;
12611
12791
  laatst_gezien?: string | null;
@@ -16343,6 +16523,33 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
16343
16523
  referencedColumns: ["id"];
16344
16524
  }];
16345
16525
  };
16526
+ user_module_permissions: {
16527
+ Row: {
16528
+ created_at: string;
16529
+ id: string;
16530
+ module_id: string;
16531
+ permission: string;
16532
+ updated_at: string;
16533
+ user_id: string;
16534
+ };
16535
+ Insert: {
16536
+ created_at?: string;
16537
+ id?: string;
16538
+ module_id: string;
16539
+ permission: string;
16540
+ updated_at?: string;
16541
+ user_id: string;
16542
+ };
16543
+ Update: {
16544
+ created_at?: string;
16545
+ id?: string;
16546
+ module_id?: string;
16547
+ permission?: string;
16548
+ updated_at?: string;
16549
+ user_id?: string;
16550
+ };
16551
+ Relationships: [];
16552
+ };
16346
16553
  user_roles: {
16347
16554
  Row: {
16348
16555
  created_at: string;
@@ -18210,6 +18417,46 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
18210
18417
  };
18211
18418
  Returns: import("../integrations/supabase/types").Json;
18212
18419
  };
18420
+ claim_cloud_print_jobs: {
18421
+ Args: {
18422
+ _max?: number;
18423
+ };
18424
+ Returns: {
18425
+ agent_id: string | null;
18426
+ bron_job_id: string | null;
18427
+ created_at: string;
18428
+ documentnaam: string;
18429
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
18430
+ extern_job_id: string | null;
18431
+ foutmelding: string | null;
18432
+ gebruiker_id: string | null;
18433
+ gebruiker_naam: string;
18434
+ gestart_op: string | null;
18435
+ id: string;
18436
+ idempotentie_sleutel: string | null;
18437
+ is_herprint: boolean;
18438
+ kopieen: number;
18439
+ layout_id: string | null;
18440
+ opgepakt_op: string | null;
18441
+ paginas: number;
18442
+ payload: import("../integrations/supabase/types").Json;
18443
+ pdf_base64: string | null;
18444
+ pdf_url: string | null;
18445
+ pogingen: number;
18446
+ printer_id: string | null;
18447
+ render_html: string | null;
18448
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
18449
+ updated_at: string;
18450
+ volgende_poging: string | null;
18451
+ voltooid_op: string | null;
18452
+ }[];
18453
+ SetofOptions: {
18454
+ from: "*";
18455
+ to: "print_jobs";
18456
+ isOneToOne: false;
18457
+ isSetofReturn: true;
18458
+ };
18459
+ };
18213
18460
  claim_floriday_stock_queue: {
18214
18461
  Args: {
18215
18462
  p_limit?: number;
@@ -18300,22 +18547,27 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
18300
18547
  created_at: string;
18301
18548
  documentnaam: string;
18302
18549
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
18550
+ extern_job_id: string | null;
18303
18551
  foutmelding: string | null;
18304
18552
  gebruiker_id: string | null;
18305
18553
  gebruiker_naam: string;
18306
18554
  gestart_op: string | null;
18307
18555
  id: string;
18556
+ idempotentie_sleutel: string | null;
18308
18557
  is_herprint: boolean;
18309
18558
  kopieen: number;
18310
18559
  layout_id: string | null;
18311
18560
  opgepakt_op: string | null;
18312
18561
  paginas: number;
18313
18562
  payload: import("../integrations/supabase/types").Json;
18563
+ pdf_base64: string | null;
18564
+ pdf_url: string | null;
18314
18565
  pogingen: number;
18315
18566
  printer_id: string | null;
18316
18567
  render_html: string | null;
18317
18568
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
18318
18569
  updated_at: string;
18570
+ volgende_poging: string | null;
18319
18571
  voltooid_op: string | null;
18320
18572
  }[];
18321
18573
  SetofOptions: {
@@ -18361,6 +18613,10 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
18361
18613
  Args: never;
18362
18614
  Returns: undefined;
18363
18615
  };
18616
+ cleanup_voorraad_module_history: {
18617
+ Args: never;
18618
+ Returns: undefined;
18619
+ };
18364
18620
  complete_floriday_stock_queue: {
18365
18621
  Args: {
18366
18622
  p_attempt_id?: string;
@@ -18482,6 +18738,13 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
18482
18738
  };
18483
18739
  Returns: import("../integrations/supabase/types").Json;
18484
18740
  };
18741
+ effective_module_permission: {
18742
+ Args: {
18743
+ _module_id: string;
18744
+ _user_id: string;
18745
+ };
18746
+ Returns: string;
18747
+ };
18485
18748
  email_auth_decrypt: {
18486
18749
  Args: {
18487
18750
  cipher: string;
@@ -19285,6 +19548,51 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
19285
19548
  isSetofReturn: false;
19286
19549
  };
19287
19550
  };
19551
+ logistics_floriday_claim_pushes: {
19552
+ Args: {
19553
+ _lease_seconds?: number;
19554
+ _limit?: number;
19555
+ _worker?: string;
19556
+ };
19557
+ Returns: {
19558
+ attempts: number;
19559
+ fulfillment_order_id: string;
19560
+ id: string;
19561
+ last_sent_hash: string;
19562
+ order_ref: string;
19563
+ payload: import("../integrations/supabase/types").Json;
19564
+ payload_hash: string;
19565
+ revision: number;
19566
+ }[];
19567
+ };
19568
+ logistics_floriday_finish_push: {
19569
+ Args: {
19570
+ _error?: string;
19571
+ _fulfillment_order_id?: string;
19572
+ _id: string;
19573
+ _max_age_hours?: number;
19574
+ _max_attempts?: number;
19575
+ _ok: boolean;
19576
+ _permanent?: boolean;
19577
+ _revision: number;
19578
+ _sent_hash?: string;
19579
+ };
19580
+ Returns: string;
19581
+ };
19582
+ logistics_floriday_prune_pushes: {
19583
+ Args: {
19584
+ _days?: number;
19585
+ };
19586
+ Returns: number;
19587
+ };
19588
+ logistics_floriday_queue_push: {
19589
+ Args: {
19590
+ _order_ref: string;
19591
+ _payload?: import("../integrations/supabase/types").Json;
19592
+ _payload_hash?: string;
19593
+ };
19594
+ Returns: string;
19595
+ };
19288
19596
  logistics_live_carriers: {
19289
19597
  Args: {
19290
19598
  p_order_ref: string;
@@ -19575,6 +19883,13 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
19575
19883
  };
19576
19884
  Returns: undefined;
19577
19885
  };
19886
+ my_module_permissions: {
19887
+ Args: never;
19888
+ Returns: {
19889
+ module_id: string;
19890
+ permission: string;
19891
+ }[];
19892
+ };
19578
19893
  next_manufacture_partij: {
19579
19894
  Args: {
19580
19895
  _tenant_id: string;
@@ -19625,6 +19940,13 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
19625
19940
  };
19626
19941
  Returns: boolean;
19627
19942
  };
19943
+ opruim_print_historie: {
19944
+ Args: never;
19945
+ Returns: {
19946
+ ontdaan: number;
19947
+ verwijderd: number;
19948
+ }[];
19949
+ };
19628
19950
  order_number_prefix: {
19629
19951
  Args: {
19630
19952
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -19632,6 +19954,15 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
19632
19954
  };
19633
19955
  Returns: string;
19634
19956
  };
19957
+ pick_active_printers: {
19958
+ Args: never;
19959
+ Returns: {
19960
+ id: string;
19961
+ locatie: string;
19962
+ naam: string;
19963
+ online: boolean;
19964
+ }[];
19965
+ };
19635
19966
  pick_claim_document: {
19636
19967
  Args: {
19637
19968
  _queue_item_id: string;
@@ -19818,6 +20149,52 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
19818
20149
  };
19819
20150
  Returns: undefined;
19820
20151
  };
20152
+ pick_reset_print: {
20153
+ Args: {
20154
+ _queue_item_id: string;
20155
+ _session_id: string;
20156
+ };
20157
+ Returns: {
20158
+ announced_at: string;
20159
+ assigned_user_id: string | null;
20160
+ barcode: string | null;
20161
+ cancelled_at: string | null;
20162
+ cart_count: number;
20163
+ completed_at: string | null;
20164
+ country_code: string | null;
20165
+ created_at: string;
20166
+ customer_name: string | null;
20167
+ delivery_address: string | null;
20168
+ document_number: string | null;
20169
+ document_type_id: string | null;
20170
+ due_at: string | null;
20171
+ id: string;
20172
+ is_urgent: boolean;
20173
+ line_count: number;
20174
+ order_number: string | null;
20175
+ order_type: string | null;
20176
+ payload: import("../integrations/supabase/types").Json;
20177
+ print_count: number;
20178
+ print_job_id: string | null;
20179
+ printed_at: string | null;
20180
+ printed_by: string | null;
20181
+ printer_id: string | null;
20182
+ priority: number;
20183
+ reference: string | null;
20184
+ route: string | null;
20185
+ screen_id: string | null;
20186
+ station_id: string | null;
20187
+ status_id: string | null;
20188
+ updated_at: string;
20189
+ warnings: import("../integrations/supabase/types").Json;
20190
+ };
20191
+ SetofOptions: {
20192
+ from: "*";
20193
+ to: "pick_queue";
20194
+ isOneToOne: true;
20195
+ isSetofReturn: false;
20196
+ };
20197
+ };
19821
20198
  pick_station_dashboard: {
19822
20199
  Args: never;
19823
20200
  Returns: {
@@ -19964,6 +20341,12 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
19964
20341
  };
19965
20342
  Returns: undefined;
19966
20343
  };
20344
+ reset_stalled_floriday_stock_queue: {
20345
+ Args: {
20346
+ p_include_failed?: boolean;
20347
+ };
20348
+ Returns: number;
20349
+ };
19967
20350
  resolve_group_allocation: {
19968
20351
  Args: {
19969
20352
  _needed: number;
@@ -20008,14 +20391,28 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
20008
20391
  };
20009
20392
  Returns: import("../integrations/supabase/types").Json;
20010
20393
  };
20394
+ ruim_print_jobs_op: {
20395
+ Args: {
20396
+ _bewaar_dagen?: number;
20397
+ };
20398
+ Returns: number;
20399
+ };
20011
20400
  run_floriday_continuous_stock_sync: {
20012
20401
  Args: never;
20013
20402
  Returns: undefined;
20014
20403
  };
20404
+ run_floriday_stock_queue_process: {
20405
+ Args: never;
20406
+ Returns: undefined;
20407
+ };
20015
20408
  run_logistics_tasks_dispatch: {
20016
20409
  Args: never;
20017
20410
  Returns: undefined;
20018
20411
  };
20412
+ run_print_queue_ticks: {
20413
+ Args: never;
20414
+ Returns: number;
20415
+ };
20019
20416
  run_twinfield_queue_tick: {
20020
20417
  Args: never;
20021
20418
  Returns: undefined;
@@ -20403,6 +20800,15 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
20403
20800
  };
20404
20801
  Returns: undefined;
20405
20802
  };
20803
+ trade_item_stock_duplicates: {
20804
+ Args: never;
20805
+ Returns: {
20806
+ keys: string[];
20807
+ product_id: string;
20808
+ product_name: string;
20809
+ row_count: number;
20810
+ }[];
20811
+ };
20406
20812
  try_debtor_lock: {
20407
20813
  Args: {
20408
20814
  _group_key: string;
@@ -20452,7 +20858,7 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
20452
20858
  };
20453
20859
  Enums: {
20454
20860
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
20455
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
20861
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
20456
20862
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
20457
20863
  doc_orientation: "portrait" | "landscape";
20458
20864
  exact_env: "staging" | "live";
@@ -22157,7 +22563,7 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
22157
22563
  city: string | null;
22158
22564
  country: string | null;
22159
22565
  created_at: string;
22160
- customer_id: string | null;
22566
+ customer_id: string;
22161
22567
  external_key: string | null;
22162
22568
  external_provider: string | null;
22163
22569
  floriday_location_id: string | null;
@@ -22181,7 +22587,7 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
22181
22587
  city?: string | null;
22182
22588
  country?: string | null;
22183
22589
  created_at?: string;
22184
- customer_id?: string | null;
22590
+ customer_id: string;
22185
22591
  external_key?: string | null;
22186
22592
  external_provider?: string | null;
22187
22593
  floriday_location_id?: string | null;
@@ -22205,7 +22611,7 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
22205
22611
  city?: string | null;
22206
22612
  country?: string | null;
22207
22613
  created_at?: string;
22208
- customer_id?: string | null;
22614
+ customer_id?: string;
22209
22615
  external_key?: string | null;
22210
22616
  external_provider?: string | null;
22211
22617
  floriday_location_id?: string | null;
@@ -28965,6 +29371,69 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
28965
29371
  };
28966
29372
  Relationships: [];
28967
29373
  };
29374
+ logistics_floriday_pushes: {
29375
+ Row: {
29376
+ attempts: number;
29377
+ created_at: string;
29378
+ first_queued_at: string;
29379
+ fulfillment_order_id: string | null;
29380
+ id: string;
29381
+ last_error: string | null;
29382
+ last_error_at: string | null;
29383
+ last_sent_hash: string | null;
29384
+ locked_by: string | null;
29385
+ locked_until: string | null;
29386
+ next_attempt_at: string;
29387
+ order_ref: string;
29388
+ payload: import("../integrations/supabase/types").Json;
29389
+ payload_hash: string | null;
29390
+ revision: number;
29391
+ sent_at: string | null;
29392
+ status: string;
29393
+ updated_at: string;
29394
+ };
29395
+ Insert: {
29396
+ attempts?: number;
29397
+ created_at?: string;
29398
+ first_queued_at?: string;
29399
+ fulfillment_order_id?: string | null;
29400
+ id?: string;
29401
+ last_error?: string | null;
29402
+ last_error_at?: string | null;
29403
+ last_sent_hash?: string | null;
29404
+ locked_by?: string | null;
29405
+ locked_until?: string | null;
29406
+ next_attempt_at?: string;
29407
+ order_ref: string;
29408
+ payload?: import("../integrations/supabase/types").Json;
29409
+ payload_hash?: string | null;
29410
+ revision?: number;
29411
+ sent_at?: string | null;
29412
+ status?: string;
29413
+ updated_at?: string;
29414
+ };
29415
+ Update: {
29416
+ attempts?: number;
29417
+ created_at?: string;
29418
+ first_queued_at?: string;
29419
+ fulfillment_order_id?: string | null;
29420
+ id?: string;
29421
+ last_error?: string | null;
29422
+ last_error_at?: string | null;
29423
+ last_sent_hash?: string | null;
29424
+ locked_by?: string | null;
29425
+ locked_until?: string | null;
29426
+ next_attempt_at?: string;
29427
+ order_ref?: string;
29428
+ payload?: import("../integrations/supabase/types").Json;
29429
+ payload_hash?: string | null;
29430
+ revision?: number;
29431
+ sent_at?: string | null;
29432
+ status?: string;
29433
+ updated_at?: string;
29434
+ };
29435
+ Relationships: [];
29436
+ };
28968
29437
  logistics_formulas: {
28969
29438
  Row: {
28970
29439
  created_at: string;
@@ -29828,14 +30297,17 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
29828
30297
  };
29829
30298
  mailbox_messages: {
29830
30299
  Row: {
30300
+ attachments: import("../integrations/supabase/types").Json;
29831
30301
  body_html: string | null;
29832
30302
  body_text: string | null;
30303
+ cc_recipients: import("../integrations/supabase/types").Json;
29833
30304
  connection_id: string | null;
29834
30305
  created_at: string;
29835
30306
  error_message: string | null;
29836
30307
  external_id: string | null;
29837
30308
  from_email: string | null;
29838
30309
  from_name: string | null;
30310
+ has_attachments: boolean;
29839
30311
  id: string;
29840
30312
  message_id: string | null;
29841
30313
  profile_id: string | null;
@@ -29843,18 +30315,22 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
29843
30315
  received_at: string | null;
29844
30316
  status: string;
29845
30317
  subject: string | null;
30318
+ to_recipients: import("../integrations/supabase/types").Json;
29846
30319
  uid: number | null;
29847
30320
  updated_at: string;
29848
30321
  };
29849
30322
  Insert: {
30323
+ attachments?: import("../integrations/supabase/types").Json;
29850
30324
  body_html?: string | null;
29851
30325
  body_text?: string | null;
30326
+ cc_recipients?: import("../integrations/supabase/types").Json;
29852
30327
  connection_id?: string | null;
29853
30328
  created_at?: string;
29854
30329
  error_message?: string | null;
29855
30330
  external_id?: string | null;
29856
30331
  from_email?: string | null;
29857
30332
  from_name?: string | null;
30333
+ has_attachments?: boolean;
29858
30334
  id?: string;
29859
30335
  message_id?: string | null;
29860
30336
  profile_id?: string | null;
@@ -29862,18 +30338,22 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
29862
30338
  received_at?: string | null;
29863
30339
  status?: string;
29864
30340
  subject?: string | null;
30341
+ to_recipients?: import("../integrations/supabase/types").Json;
29865
30342
  uid?: number | null;
29866
30343
  updated_at?: string;
29867
30344
  };
29868
30345
  Update: {
30346
+ attachments?: import("../integrations/supabase/types").Json;
29869
30347
  body_html?: string | null;
29870
30348
  body_text?: string | null;
30349
+ cc_recipients?: import("../integrations/supabase/types").Json;
29871
30350
  connection_id?: string | null;
29872
30351
  created_at?: string;
29873
30352
  error_message?: string | null;
29874
30353
  external_id?: string | null;
29875
30354
  from_email?: string | null;
29876
30355
  from_name?: string | null;
30356
+ has_attachments?: boolean;
29877
30357
  id?: string;
29878
30358
  message_id?: string | null;
29879
30359
  profile_id?: string | null;
@@ -29881,6 +30361,7 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
29881
30361
  received_at?: string | null;
29882
30362
  status?: string;
29883
30363
  subject?: string | null;
30364
+ to_recipients?: import("../integrations/supabase/types").Json;
29884
30365
  uid?: number | null;
29885
30366
  updated_at?: string;
29886
30367
  };
@@ -30288,6 +30769,36 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
30288
30769
  };
30289
30770
  Relationships: [];
30290
30771
  };
30772
+ module_registry: {
30773
+ Row: {
30774
+ created_at: string;
30775
+ is_active: boolean;
30776
+ last_seen_at: string;
30777
+ module_id: string;
30778
+ name: string;
30779
+ shell_id: string | null;
30780
+ sort_order: number | null;
30781
+ };
30782
+ Insert: {
30783
+ created_at?: string;
30784
+ is_active?: boolean;
30785
+ last_seen_at?: string;
30786
+ module_id: string;
30787
+ name: string;
30788
+ shell_id?: string | null;
30789
+ sort_order?: number | null;
30790
+ };
30791
+ Update: {
30792
+ created_at?: string;
30793
+ is_active?: boolean;
30794
+ last_seen_at?: string;
30795
+ module_id?: string;
30796
+ name?: string;
30797
+ shell_id?: string | null;
30798
+ sort_order?: number | null;
30799
+ };
30800
+ Relationships: [];
30801
+ };
30291
30802
  module_runtime_config: {
30292
30803
  Row: {
30293
30804
  key: string;
@@ -32767,22 +33278,27 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
32767
33278
  created_at: string;
32768
33279
  documentnaam: string;
32769
33280
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
33281
+ extern_job_id: string | null;
32770
33282
  foutmelding: string | null;
32771
33283
  gebruiker_id: string | null;
32772
33284
  gebruiker_naam: string;
32773
33285
  gestart_op: string | null;
32774
33286
  id: string;
33287
+ idempotentie_sleutel: string | null;
32775
33288
  is_herprint: boolean;
32776
33289
  kopieen: number;
32777
33290
  layout_id: string | null;
32778
33291
  opgepakt_op: string | null;
32779
33292
  paginas: number;
32780
33293
  payload: import("../integrations/supabase/types").Json;
33294
+ pdf_base64: string | null;
33295
+ pdf_url: string | null;
32781
33296
  pogingen: number;
32782
33297
  printer_id: string | null;
32783
33298
  render_html: string | null;
32784
33299
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
32785
33300
  updated_at: string;
33301
+ volgende_poging: string | null;
32786
33302
  voltooid_op: string | null;
32787
33303
  };
32788
33304
  Insert: {
@@ -32791,22 +33307,27 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
32791
33307
  created_at?: string;
32792
33308
  documentnaam?: string;
32793
33309
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
33310
+ extern_job_id?: string | null;
32794
33311
  foutmelding?: string | null;
32795
33312
  gebruiker_id?: string | null;
32796
33313
  gebruiker_naam?: string;
32797
33314
  gestart_op?: string | null;
32798
33315
  id?: string;
33316
+ idempotentie_sleutel?: string | null;
32799
33317
  is_herprint?: boolean;
32800
33318
  kopieen?: number;
32801
33319
  layout_id?: string | null;
32802
33320
  opgepakt_op?: string | null;
32803
33321
  paginas?: number;
32804
33322
  payload?: import("../integrations/supabase/types").Json;
33323
+ pdf_base64?: string | null;
33324
+ pdf_url?: string | null;
32805
33325
  pogingen?: number;
32806
33326
  printer_id?: string | null;
32807
33327
  render_html?: string | null;
32808
33328
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
32809
33329
  updated_at?: string;
33330
+ volgende_poging?: string | null;
32810
33331
  voltooid_op?: string | null;
32811
33332
  };
32812
33333
  Update: {
@@ -32815,22 +33336,27 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
32815
33336
  created_at?: string;
32816
33337
  documentnaam?: string;
32817
33338
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
33339
+ extern_job_id?: string | null;
32818
33340
  foutmelding?: string | null;
32819
33341
  gebruiker_id?: string | null;
32820
33342
  gebruiker_naam?: string;
32821
33343
  gestart_op?: string | null;
32822
33344
  id?: string;
33345
+ idempotentie_sleutel?: string | null;
32823
33346
  is_herprint?: boolean;
32824
33347
  kopieen?: number;
32825
33348
  layout_id?: string | null;
32826
33349
  opgepakt_op?: string | null;
32827
33350
  paginas?: number;
32828
33351
  payload?: import("../integrations/supabase/types").Json;
33352
+ pdf_base64?: string | null;
33353
+ pdf_url?: string | null;
32829
33354
  pogingen?: number;
32830
33355
  printer_id?: string | null;
32831
33356
  render_html?: string | null;
32832
33357
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
32833
33358
  updated_at?: string;
33359
+ volgende_poging?: string | null;
32834
33360
  voltooid_op?: string | null;
32835
33361
  };
32836
33362
  Relationships: [{
@@ -32853,6 +33379,63 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
32853
33379
  referencedColumns: ["id"];
32854
33380
  }];
32855
33381
  };
33382
+ print_queue_runners: {
33383
+ Row: {
33384
+ actief: boolean;
33385
+ basis_url: string;
33386
+ created_at: string;
33387
+ id: string;
33388
+ laatst_gezien: string;
33389
+ tick_sleutel: string;
33390
+ updated_at: string;
33391
+ };
33392
+ Insert: {
33393
+ actief?: boolean;
33394
+ basis_url: string;
33395
+ created_at?: string;
33396
+ id?: string;
33397
+ laatst_gezien?: string;
33398
+ tick_sleutel?: string;
33399
+ updated_at?: string;
33400
+ };
33401
+ Update: {
33402
+ actief?: boolean;
33403
+ basis_url?: string;
33404
+ created_at?: string;
33405
+ id?: string;
33406
+ laatst_gezien?: string;
33407
+ tick_sleutel?: string;
33408
+ updated_at?: string;
33409
+ };
33410
+ Relationships: [];
33411
+ };
33412
+ print_queue_settings: {
33413
+ Row: {
33414
+ bewaar_bestanden_dagen: number;
33415
+ bewaar_opdrachten_dagen: number;
33416
+ created_at: string;
33417
+ dubbel_venster_minuten: number;
33418
+ id: string;
33419
+ updated_at: string;
33420
+ };
33421
+ Insert: {
33422
+ bewaar_bestanden_dagen?: number;
33423
+ bewaar_opdrachten_dagen?: number;
33424
+ created_at?: string;
33425
+ dubbel_venster_minuten?: number;
33426
+ id?: string;
33427
+ updated_at?: string;
33428
+ };
33429
+ Update: {
33430
+ bewaar_bestanden_dagen?: number;
33431
+ bewaar_opdrachten_dagen?: number;
33432
+ created_at?: string;
33433
+ dubbel_venster_minuten?: number;
33434
+ id?: string;
33435
+ updated_at?: string;
33436
+ };
33437
+ Relationships: [];
33438
+ };
32856
33439
  print_rules: {
32857
33440
  Row: {
32858
33441
  actief: boolean;
@@ -33013,6 +33596,7 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
33013
33596
  agent_id: string | null;
33014
33597
  created_at: string;
33015
33598
  driver: string;
33599
+ extern_printer_id: string | null;
33016
33600
  id: string;
33017
33601
  ip_adres: string | null;
33018
33602
  laatst_gezien: string | null;
@@ -33034,6 +33618,7 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
33034
33618
  agent_id?: string | null;
33035
33619
  created_at?: string;
33036
33620
  driver?: string;
33621
+ extern_printer_id?: string | null;
33037
33622
  id?: string;
33038
33623
  ip_adres?: string | null;
33039
33624
  laatst_gezien?: string | null;
@@ -33055,6 +33640,7 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
33055
33640
  agent_id?: string | null;
33056
33641
  created_at?: string;
33057
33642
  driver?: string;
33643
+ extern_printer_id?: string | null;
33058
33644
  id?: string;
33059
33645
  ip_adres?: string | null;
33060
33646
  laatst_gezien?: string | null;
@@ -36792,6 +37378,33 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
36792
37378
  referencedColumns: ["id"];
36793
37379
  }];
36794
37380
  };
37381
+ user_module_permissions: {
37382
+ Row: {
37383
+ created_at: string;
37384
+ id: string;
37385
+ module_id: string;
37386
+ permission: string;
37387
+ updated_at: string;
37388
+ user_id: string;
37389
+ };
37390
+ Insert: {
37391
+ created_at?: string;
37392
+ id?: string;
37393
+ module_id: string;
37394
+ permission: string;
37395
+ updated_at?: string;
37396
+ user_id: string;
37397
+ };
37398
+ Update: {
37399
+ created_at?: string;
37400
+ id?: string;
37401
+ module_id?: string;
37402
+ permission?: string;
37403
+ updated_at?: string;
37404
+ user_id?: string;
37405
+ };
37406
+ Relationships: [];
37407
+ };
36795
37408
  user_roles: {
36796
37409
  Row: {
36797
37410
  created_at: string;
@@ -38659,6 +39272,46 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
38659
39272
  };
38660
39273
  Returns: import("../integrations/supabase/types").Json;
38661
39274
  };
39275
+ claim_cloud_print_jobs: {
39276
+ Args: {
39277
+ _max?: number;
39278
+ };
39279
+ Returns: {
39280
+ agent_id: string | null;
39281
+ bron_job_id: string | null;
39282
+ created_at: string;
39283
+ documentnaam: string;
39284
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
39285
+ extern_job_id: string | null;
39286
+ foutmelding: string | null;
39287
+ gebruiker_id: string | null;
39288
+ gebruiker_naam: string;
39289
+ gestart_op: string | null;
39290
+ id: string;
39291
+ idempotentie_sleutel: string | null;
39292
+ is_herprint: boolean;
39293
+ kopieen: number;
39294
+ layout_id: string | null;
39295
+ opgepakt_op: string | null;
39296
+ paginas: number;
39297
+ payload: import("../integrations/supabase/types").Json;
39298
+ pdf_base64: string | null;
39299
+ pdf_url: string | null;
39300
+ pogingen: number;
39301
+ printer_id: string | null;
39302
+ render_html: string | null;
39303
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
39304
+ updated_at: string;
39305
+ volgende_poging: string | null;
39306
+ voltooid_op: string | null;
39307
+ }[];
39308
+ SetofOptions: {
39309
+ from: "*";
39310
+ to: "print_jobs";
39311
+ isOneToOne: false;
39312
+ isSetofReturn: true;
39313
+ };
39314
+ };
38662
39315
  claim_floriday_stock_queue: {
38663
39316
  Args: {
38664
39317
  p_limit?: number;
@@ -38749,22 +39402,27 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
38749
39402
  created_at: string;
38750
39403
  documentnaam: string;
38751
39404
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
39405
+ extern_job_id: string | null;
38752
39406
  foutmelding: string | null;
38753
39407
  gebruiker_id: string | null;
38754
39408
  gebruiker_naam: string;
38755
39409
  gestart_op: string | null;
38756
39410
  id: string;
39411
+ idempotentie_sleutel: string | null;
38757
39412
  is_herprint: boolean;
38758
39413
  kopieen: number;
38759
39414
  layout_id: string | null;
38760
39415
  opgepakt_op: string | null;
38761
39416
  paginas: number;
38762
39417
  payload: import("../integrations/supabase/types").Json;
39418
+ pdf_base64: string | null;
39419
+ pdf_url: string | null;
38763
39420
  pogingen: number;
38764
39421
  printer_id: string | null;
38765
39422
  render_html: string | null;
38766
39423
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
38767
39424
  updated_at: string;
39425
+ volgende_poging: string | null;
38768
39426
  voltooid_op: string | null;
38769
39427
  }[];
38770
39428
  SetofOptions: {
@@ -38810,6 +39468,10 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
38810
39468
  Args: never;
38811
39469
  Returns: undefined;
38812
39470
  };
39471
+ cleanup_voorraad_module_history: {
39472
+ Args: never;
39473
+ Returns: undefined;
39474
+ };
38813
39475
  complete_floriday_stock_queue: {
38814
39476
  Args: {
38815
39477
  p_attempt_id?: string;
@@ -38931,6 +39593,13 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
38931
39593
  };
38932
39594
  Returns: import("../integrations/supabase/types").Json;
38933
39595
  };
39596
+ effective_module_permission: {
39597
+ Args: {
39598
+ _module_id: string;
39599
+ _user_id: string;
39600
+ };
39601
+ Returns: string;
39602
+ };
38934
39603
  email_auth_decrypt: {
38935
39604
  Args: {
38936
39605
  cipher: string;
@@ -39734,6 +40403,51 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
39734
40403
  isSetofReturn: false;
39735
40404
  };
39736
40405
  };
40406
+ logistics_floriday_claim_pushes: {
40407
+ Args: {
40408
+ _lease_seconds?: number;
40409
+ _limit?: number;
40410
+ _worker?: string;
40411
+ };
40412
+ Returns: {
40413
+ attempts: number;
40414
+ fulfillment_order_id: string;
40415
+ id: string;
40416
+ last_sent_hash: string;
40417
+ order_ref: string;
40418
+ payload: import("../integrations/supabase/types").Json;
40419
+ payload_hash: string;
40420
+ revision: number;
40421
+ }[];
40422
+ };
40423
+ logistics_floriday_finish_push: {
40424
+ Args: {
40425
+ _error?: string;
40426
+ _fulfillment_order_id?: string;
40427
+ _id: string;
40428
+ _max_age_hours?: number;
40429
+ _max_attempts?: number;
40430
+ _ok: boolean;
40431
+ _permanent?: boolean;
40432
+ _revision: number;
40433
+ _sent_hash?: string;
40434
+ };
40435
+ Returns: string;
40436
+ };
40437
+ logistics_floriday_prune_pushes: {
40438
+ Args: {
40439
+ _days?: number;
40440
+ };
40441
+ Returns: number;
40442
+ };
40443
+ logistics_floriday_queue_push: {
40444
+ Args: {
40445
+ _order_ref: string;
40446
+ _payload?: import("../integrations/supabase/types").Json;
40447
+ _payload_hash?: string;
40448
+ };
40449
+ Returns: string;
40450
+ };
39737
40451
  logistics_live_carriers: {
39738
40452
  Args: {
39739
40453
  p_order_ref: string;
@@ -40024,6 +40738,13 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
40024
40738
  };
40025
40739
  Returns: undefined;
40026
40740
  };
40741
+ my_module_permissions: {
40742
+ Args: never;
40743
+ Returns: {
40744
+ module_id: string;
40745
+ permission: string;
40746
+ }[];
40747
+ };
40027
40748
  next_manufacture_partij: {
40028
40749
  Args: {
40029
40750
  _tenant_id: string;
@@ -40074,6 +40795,13 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
40074
40795
  };
40075
40796
  Returns: boolean;
40076
40797
  };
40798
+ opruim_print_historie: {
40799
+ Args: never;
40800
+ Returns: {
40801
+ ontdaan: number;
40802
+ verwijderd: number;
40803
+ }[];
40804
+ };
40077
40805
  order_number_prefix: {
40078
40806
  Args: {
40079
40807
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -40081,6 +40809,15 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
40081
40809
  };
40082
40810
  Returns: string;
40083
40811
  };
40812
+ pick_active_printers: {
40813
+ Args: never;
40814
+ Returns: {
40815
+ id: string;
40816
+ locatie: string;
40817
+ naam: string;
40818
+ online: boolean;
40819
+ }[];
40820
+ };
40084
40821
  pick_claim_document: {
40085
40822
  Args: {
40086
40823
  _queue_item_id: string;
@@ -40267,6 +41004,52 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
40267
41004
  };
40268
41005
  Returns: undefined;
40269
41006
  };
41007
+ pick_reset_print: {
41008
+ Args: {
41009
+ _queue_item_id: string;
41010
+ _session_id: string;
41011
+ };
41012
+ Returns: {
41013
+ announced_at: string;
41014
+ assigned_user_id: string | null;
41015
+ barcode: string | null;
41016
+ cancelled_at: string | null;
41017
+ cart_count: number;
41018
+ completed_at: string | null;
41019
+ country_code: string | null;
41020
+ created_at: string;
41021
+ customer_name: string | null;
41022
+ delivery_address: string | null;
41023
+ document_number: string | null;
41024
+ document_type_id: string | null;
41025
+ due_at: string | null;
41026
+ id: string;
41027
+ is_urgent: boolean;
41028
+ line_count: number;
41029
+ order_number: string | null;
41030
+ order_type: string | null;
41031
+ payload: import("../integrations/supabase/types").Json;
41032
+ print_count: number;
41033
+ print_job_id: string | null;
41034
+ printed_at: string | null;
41035
+ printed_by: string | null;
41036
+ printer_id: string | null;
41037
+ priority: number;
41038
+ reference: string | null;
41039
+ route: string | null;
41040
+ screen_id: string | null;
41041
+ station_id: string | null;
41042
+ status_id: string | null;
41043
+ updated_at: string;
41044
+ warnings: import("../integrations/supabase/types").Json;
41045
+ };
41046
+ SetofOptions: {
41047
+ from: "*";
41048
+ to: "pick_queue";
41049
+ isOneToOne: true;
41050
+ isSetofReturn: false;
41051
+ };
41052
+ };
40270
41053
  pick_station_dashboard: {
40271
41054
  Args: never;
40272
41055
  Returns: {
@@ -40413,6 +41196,12 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
40413
41196
  };
40414
41197
  Returns: undefined;
40415
41198
  };
41199
+ reset_stalled_floriday_stock_queue: {
41200
+ Args: {
41201
+ p_include_failed?: boolean;
41202
+ };
41203
+ Returns: number;
41204
+ };
40416
41205
  resolve_group_allocation: {
40417
41206
  Args: {
40418
41207
  _needed: number;
@@ -40457,14 +41246,28 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
40457
41246
  };
40458
41247
  Returns: import("../integrations/supabase/types").Json;
40459
41248
  };
41249
+ ruim_print_jobs_op: {
41250
+ Args: {
41251
+ _bewaar_dagen?: number;
41252
+ };
41253
+ Returns: number;
41254
+ };
40460
41255
  run_floriday_continuous_stock_sync: {
40461
41256
  Args: never;
40462
41257
  Returns: undefined;
40463
41258
  };
41259
+ run_floriday_stock_queue_process: {
41260
+ Args: never;
41261
+ Returns: undefined;
41262
+ };
40464
41263
  run_logistics_tasks_dispatch: {
40465
41264
  Args: never;
40466
41265
  Returns: undefined;
40467
41266
  };
41267
+ run_print_queue_ticks: {
41268
+ Args: never;
41269
+ Returns: number;
41270
+ };
40468
41271
  run_twinfield_queue_tick: {
40469
41272
  Args: never;
40470
41273
  Returns: undefined;
@@ -40852,6 +41655,15 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
40852
41655
  };
40853
41656
  Returns: undefined;
40854
41657
  };
41658
+ trade_item_stock_duplicates: {
41659
+ Args: never;
41660
+ Returns: {
41661
+ keys: string[];
41662
+ product_id: string;
41663
+ product_name: string;
41664
+ row_count: number;
41665
+ }[];
41666
+ };
40855
41667
  try_debtor_lock: {
40856
41668
  Args: {
40857
41669
  _group_key: string;
@@ -40901,7 +41713,7 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
40901
41713
  };
40902
41714
  Enums: {
40903
41715
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
40904
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
41716
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
40905
41717
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
40906
41718
  doc_orientation: "portrait" | "landscape";
40907
41719
  exact_env: "staging" | "live";
@@ -42606,7 +43418,7 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
42606
43418
  city: string | null;
42607
43419
  country: string | null;
42608
43420
  created_at: string;
42609
- customer_id: string | null;
43421
+ customer_id: string;
42610
43422
  external_key: string | null;
42611
43423
  external_provider: string | null;
42612
43424
  floriday_location_id: string | null;
@@ -42630,7 +43442,7 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
42630
43442
  city?: string | null;
42631
43443
  country?: string | null;
42632
43444
  created_at?: string;
42633
- customer_id?: string | null;
43445
+ customer_id: string;
42634
43446
  external_key?: string | null;
42635
43447
  external_provider?: string | null;
42636
43448
  floriday_location_id?: string | null;
@@ -42654,7 +43466,7 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
42654
43466
  city?: string | null;
42655
43467
  country?: string | null;
42656
43468
  created_at?: string;
42657
- customer_id?: string | null;
43469
+ customer_id?: string;
42658
43470
  external_key?: string | null;
42659
43471
  external_provider?: string | null;
42660
43472
  floriday_location_id?: string | null;
@@ -49414,6 +50226,69 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
49414
50226
  };
49415
50227
  Relationships: [];
49416
50228
  };
50229
+ logistics_floriday_pushes: {
50230
+ Row: {
50231
+ attempts: number;
50232
+ created_at: string;
50233
+ first_queued_at: string;
50234
+ fulfillment_order_id: string | null;
50235
+ id: string;
50236
+ last_error: string | null;
50237
+ last_error_at: string | null;
50238
+ last_sent_hash: string | null;
50239
+ locked_by: string | null;
50240
+ locked_until: string | null;
50241
+ next_attempt_at: string;
50242
+ order_ref: string;
50243
+ payload: import("../integrations/supabase/types").Json;
50244
+ payload_hash: string | null;
50245
+ revision: number;
50246
+ sent_at: string | null;
50247
+ status: string;
50248
+ updated_at: string;
50249
+ };
50250
+ Insert: {
50251
+ attempts?: number;
50252
+ created_at?: string;
50253
+ first_queued_at?: string;
50254
+ fulfillment_order_id?: string | null;
50255
+ id?: string;
50256
+ last_error?: string | null;
50257
+ last_error_at?: string | null;
50258
+ last_sent_hash?: string | null;
50259
+ locked_by?: string | null;
50260
+ locked_until?: string | null;
50261
+ next_attempt_at?: string;
50262
+ order_ref: string;
50263
+ payload?: import("../integrations/supabase/types").Json;
50264
+ payload_hash?: string | null;
50265
+ revision?: number;
50266
+ sent_at?: string | null;
50267
+ status?: string;
50268
+ updated_at?: string;
50269
+ };
50270
+ Update: {
50271
+ attempts?: number;
50272
+ created_at?: string;
50273
+ first_queued_at?: string;
50274
+ fulfillment_order_id?: string | null;
50275
+ id?: string;
50276
+ last_error?: string | null;
50277
+ last_error_at?: string | null;
50278
+ last_sent_hash?: string | null;
50279
+ locked_by?: string | null;
50280
+ locked_until?: string | null;
50281
+ next_attempt_at?: string;
50282
+ order_ref?: string;
50283
+ payload?: import("../integrations/supabase/types").Json;
50284
+ payload_hash?: string | null;
50285
+ revision?: number;
50286
+ sent_at?: string | null;
50287
+ status?: string;
50288
+ updated_at?: string;
50289
+ };
50290
+ Relationships: [];
50291
+ };
49417
50292
  logistics_formulas: {
49418
50293
  Row: {
49419
50294
  created_at: string;
@@ -50277,14 +51152,17 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
50277
51152
  };
50278
51153
  mailbox_messages: {
50279
51154
  Row: {
51155
+ attachments: import("../integrations/supabase/types").Json;
50280
51156
  body_html: string | null;
50281
51157
  body_text: string | null;
51158
+ cc_recipients: import("../integrations/supabase/types").Json;
50282
51159
  connection_id: string | null;
50283
51160
  created_at: string;
50284
51161
  error_message: string | null;
50285
51162
  external_id: string | null;
50286
51163
  from_email: string | null;
50287
51164
  from_name: string | null;
51165
+ has_attachments: boolean;
50288
51166
  id: string;
50289
51167
  message_id: string | null;
50290
51168
  profile_id: string | null;
@@ -50292,18 +51170,22 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
50292
51170
  received_at: string | null;
50293
51171
  status: string;
50294
51172
  subject: string | null;
51173
+ to_recipients: import("../integrations/supabase/types").Json;
50295
51174
  uid: number | null;
50296
51175
  updated_at: string;
50297
51176
  };
50298
51177
  Insert: {
51178
+ attachments?: import("../integrations/supabase/types").Json;
50299
51179
  body_html?: string | null;
50300
51180
  body_text?: string | null;
51181
+ cc_recipients?: import("../integrations/supabase/types").Json;
50301
51182
  connection_id?: string | null;
50302
51183
  created_at?: string;
50303
51184
  error_message?: string | null;
50304
51185
  external_id?: string | null;
50305
51186
  from_email?: string | null;
50306
51187
  from_name?: string | null;
51188
+ has_attachments?: boolean;
50307
51189
  id?: string;
50308
51190
  message_id?: string | null;
50309
51191
  profile_id?: string | null;
@@ -50311,18 +51193,22 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
50311
51193
  received_at?: string | null;
50312
51194
  status?: string;
50313
51195
  subject?: string | null;
51196
+ to_recipients?: import("../integrations/supabase/types").Json;
50314
51197
  uid?: number | null;
50315
51198
  updated_at?: string;
50316
51199
  };
50317
51200
  Update: {
51201
+ attachments?: import("../integrations/supabase/types").Json;
50318
51202
  body_html?: string | null;
50319
51203
  body_text?: string | null;
51204
+ cc_recipients?: import("../integrations/supabase/types").Json;
50320
51205
  connection_id?: string | null;
50321
51206
  created_at?: string;
50322
51207
  error_message?: string | null;
50323
51208
  external_id?: string | null;
50324
51209
  from_email?: string | null;
50325
51210
  from_name?: string | null;
51211
+ has_attachments?: boolean;
50326
51212
  id?: string;
50327
51213
  message_id?: string | null;
50328
51214
  profile_id?: string | null;
@@ -50330,6 +51216,7 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
50330
51216
  received_at?: string | null;
50331
51217
  status?: string;
50332
51218
  subject?: string | null;
51219
+ to_recipients?: import("../integrations/supabase/types").Json;
50333
51220
  uid?: number | null;
50334
51221
  updated_at?: string;
50335
51222
  };
@@ -50737,6 +51624,36 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
50737
51624
  };
50738
51625
  Relationships: [];
50739
51626
  };
51627
+ module_registry: {
51628
+ Row: {
51629
+ created_at: string;
51630
+ is_active: boolean;
51631
+ last_seen_at: string;
51632
+ module_id: string;
51633
+ name: string;
51634
+ shell_id: string | null;
51635
+ sort_order: number | null;
51636
+ };
51637
+ Insert: {
51638
+ created_at?: string;
51639
+ is_active?: boolean;
51640
+ last_seen_at?: string;
51641
+ module_id: string;
51642
+ name: string;
51643
+ shell_id?: string | null;
51644
+ sort_order?: number | null;
51645
+ };
51646
+ Update: {
51647
+ created_at?: string;
51648
+ is_active?: boolean;
51649
+ last_seen_at?: string;
51650
+ module_id?: string;
51651
+ name?: string;
51652
+ shell_id?: string | null;
51653
+ sort_order?: number | null;
51654
+ };
51655
+ Relationships: [];
51656
+ };
50740
51657
  module_runtime_config: {
50741
51658
  Row: {
50742
51659
  key: string;
@@ -53216,22 +54133,27 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
53216
54133
  created_at: string;
53217
54134
  documentnaam: string;
53218
54135
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
54136
+ extern_job_id: string | null;
53219
54137
  foutmelding: string | null;
53220
54138
  gebruiker_id: string | null;
53221
54139
  gebruiker_naam: string;
53222
54140
  gestart_op: string | null;
53223
54141
  id: string;
54142
+ idempotentie_sleutel: string | null;
53224
54143
  is_herprint: boolean;
53225
54144
  kopieen: number;
53226
54145
  layout_id: string | null;
53227
54146
  opgepakt_op: string | null;
53228
54147
  paginas: number;
53229
54148
  payload: import("../integrations/supabase/types").Json;
54149
+ pdf_base64: string | null;
54150
+ pdf_url: string | null;
53230
54151
  pogingen: number;
53231
54152
  printer_id: string | null;
53232
54153
  render_html: string | null;
53233
54154
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
53234
54155
  updated_at: string;
54156
+ volgende_poging: string | null;
53235
54157
  voltooid_op: string | null;
53236
54158
  };
53237
54159
  Insert: {
@@ -53240,22 +54162,27 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
53240
54162
  created_at?: string;
53241
54163
  documentnaam?: string;
53242
54164
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
54165
+ extern_job_id?: string | null;
53243
54166
  foutmelding?: string | null;
53244
54167
  gebruiker_id?: string | null;
53245
54168
  gebruiker_naam?: string;
53246
54169
  gestart_op?: string | null;
53247
54170
  id?: string;
54171
+ idempotentie_sleutel?: string | null;
53248
54172
  is_herprint?: boolean;
53249
54173
  kopieen?: number;
53250
54174
  layout_id?: string | null;
53251
54175
  opgepakt_op?: string | null;
53252
54176
  paginas?: number;
53253
54177
  payload?: import("../integrations/supabase/types").Json;
54178
+ pdf_base64?: string | null;
54179
+ pdf_url?: string | null;
53254
54180
  pogingen?: number;
53255
54181
  printer_id?: string | null;
53256
54182
  render_html?: string | null;
53257
54183
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
53258
54184
  updated_at?: string;
54185
+ volgende_poging?: string | null;
53259
54186
  voltooid_op?: string | null;
53260
54187
  };
53261
54188
  Update: {
@@ -53264,22 +54191,27 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
53264
54191
  created_at?: string;
53265
54192
  documentnaam?: string;
53266
54193
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
54194
+ extern_job_id?: string | null;
53267
54195
  foutmelding?: string | null;
53268
54196
  gebruiker_id?: string | null;
53269
54197
  gebruiker_naam?: string;
53270
54198
  gestart_op?: string | null;
53271
54199
  id?: string;
54200
+ idempotentie_sleutel?: string | null;
53272
54201
  is_herprint?: boolean;
53273
54202
  kopieen?: number;
53274
54203
  layout_id?: string | null;
53275
54204
  opgepakt_op?: string | null;
53276
54205
  paginas?: number;
53277
54206
  payload?: import("../integrations/supabase/types").Json;
54207
+ pdf_base64?: string | null;
54208
+ pdf_url?: string | null;
53278
54209
  pogingen?: number;
53279
54210
  printer_id?: string | null;
53280
54211
  render_html?: string | null;
53281
54212
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
53282
54213
  updated_at?: string;
54214
+ volgende_poging?: string | null;
53283
54215
  voltooid_op?: string | null;
53284
54216
  };
53285
54217
  Relationships: [{
@@ -53302,6 +54234,63 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
53302
54234
  referencedColumns: ["id"];
53303
54235
  }];
53304
54236
  };
54237
+ print_queue_runners: {
54238
+ Row: {
54239
+ actief: boolean;
54240
+ basis_url: string;
54241
+ created_at: string;
54242
+ id: string;
54243
+ laatst_gezien: string;
54244
+ tick_sleutel: string;
54245
+ updated_at: string;
54246
+ };
54247
+ Insert: {
54248
+ actief?: boolean;
54249
+ basis_url: string;
54250
+ created_at?: string;
54251
+ id?: string;
54252
+ laatst_gezien?: string;
54253
+ tick_sleutel?: string;
54254
+ updated_at?: string;
54255
+ };
54256
+ Update: {
54257
+ actief?: boolean;
54258
+ basis_url?: string;
54259
+ created_at?: string;
54260
+ id?: string;
54261
+ laatst_gezien?: string;
54262
+ tick_sleutel?: string;
54263
+ updated_at?: string;
54264
+ };
54265
+ Relationships: [];
54266
+ };
54267
+ print_queue_settings: {
54268
+ Row: {
54269
+ bewaar_bestanden_dagen: number;
54270
+ bewaar_opdrachten_dagen: number;
54271
+ created_at: string;
54272
+ dubbel_venster_minuten: number;
54273
+ id: string;
54274
+ updated_at: string;
54275
+ };
54276
+ Insert: {
54277
+ bewaar_bestanden_dagen?: number;
54278
+ bewaar_opdrachten_dagen?: number;
54279
+ created_at?: string;
54280
+ dubbel_venster_minuten?: number;
54281
+ id?: string;
54282
+ updated_at?: string;
54283
+ };
54284
+ Update: {
54285
+ bewaar_bestanden_dagen?: number;
54286
+ bewaar_opdrachten_dagen?: number;
54287
+ created_at?: string;
54288
+ dubbel_venster_minuten?: number;
54289
+ id?: string;
54290
+ updated_at?: string;
54291
+ };
54292
+ Relationships: [];
54293
+ };
53305
54294
  print_rules: {
53306
54295
  Row: {
53307
54296
  actief: boolean;
@@ -53462,6 +54451,7 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
53462
54451
  agent_id: string | null;
53463
54452
  created_at: string;
53464
54453
  driver: string;
54454
+ extern_printer_id: string | null;
53465
54455
  id: string;
53466
54456
  ip_adres: string | null;
53467
54457
  laatst_gezien: string | null;
@@ -53483,6 +54473,7 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
53483
54473
  agent_id?: string | null;
53484
54474
  created_at?: string;
53485
54475
  driver?: string;
54476
+ extern_printer_id?: string | null;
53486
54477
  id?: string;
53487
54478
  ip_adres?: string | null;
53488
54479
  laatst_gezien?: string | null;
@@ -53504,6 +54495,7 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
53504
54495
  agent_id?: string | null;
53505
54496
  created_at?: string;
53506
54497
  driver?: string;
54498
+ extern_printer_id?: string | null;
53507
54499
  id?: string;
53508
54500
  ip_adres?: string | null;
53509
54501
  laatst_gezien?: string | null;
@@ -57241,6 +58233,33 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
57241
58233
  referencedColumns: ["id"];
57242
58234
  }];
57243
58235
  };
58236
+ user_module_permissions: {
58237
+ Row: {
58238
+ created_at: string;
58239
+ id: string;
58240
+ module_id: string;
58241
+ permission: string;
58242
+ updated_at: string;
58243
+ user_id: string;
58244
+ };
58245
+ Insert: {
58246
+ created_at?: string;
58247
+ id?: string;
58248
+ module_id: string;
58249
+ permission: string;
58250
+ updated_at?: string;
58251
+ user_id: string;
58252
+ };
58253
+ Update: {
58254
+ created_at?: string;
58255
+ id?: string;
58256
+ module_id?: string;
58257
+ permission?: string;
58258
+ updated_at?: string;
58259
+ user_id?: string;
58260
+ };
58261
+ Relationships: [];
58262
+ };
57244
58263
  user_roles: {
57245
58264
  Row: {
57246
58265
  created_at: string;
@@ -59108,6 +60127,46 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
59108
60127
  };
59109
60128
  Returns: import("../integrations/supabase/types").Json;
59110
60129
  };
60130
+ claim_cloud_print_jobs: {
60131
+ Args: {
60132
+ _max?: number;
60133
+ };
60134
+ Returns: {
60135
+ agent_id: string | null;
60136
+ bron_job_id: string | null;
60137
+ created_at: string;
60138
+ documentnaam: string;
60139
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
60140
+ extern_job_id: string | null;
60141
+ foutmelding: string | null;
60142
+ gebruiker_id: string | null;
60143
+ gebruiker_naam: string;
60144
+ gestart_op: string | null;
60145
+ id: string;
60146
+ idempotentie_sleutel: string | null;
60147
+ is_herprint: boolean;
60148
+ kopieen: number;
60149
+ layout_id: string | null;
60150
+ opgepakt_op: string | null;
60151
+ paginas: number;
60152
+ payload: import("../integrations/supabase/types").Json;
60153
+ pdf_base64: string | null;
60154
+ pdf_url: string | null;
60155
+ pogingen: number;
60156
+ printer_id: string | null;
60157
+ render_html: string | null;
60158
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60159
+ updated_at: string;
60160
+ volgende_poging: string | null;
60161
+ voltooid_op: string | null;
60162
+ }[];
60163
+ SetofOptions: {
60164
+ from: "*";
60165
+ to: "print_jobs";
60166
+ isOneToOne: false;
60167
+ isSetofReturn: true;
60168
+ };
60169
+ };
59111
60170
  claim_floriday_stock_queue: {
59112
60171
  Args: {
59113
60172
  p_limit?: number;
@@ -59198,22 +60257,27 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
59198
60257
  created_at: string;
59199
60258
  documentnaam: string;
59200
60259
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
60260
+ extern_job_id: string | null;
59201
60261
  foutmelding: string | null;
59202
60262
  gebruiker_id: string | null;
59203
60263
  gebruiker_naam: string;
59204
60264
  gestart_op: string | null;
59205
60265
  id: string;
60266
+ idempotentie_sleutel: string | null;
59206
60267
  is_herprint: boolean;
59207
60268
  kopieen: number;
59208
60269
  layout_id: string | null;
59209
60270
  opgepakt_op: string | null;
59210
60271
  paginas: number;
59211
60272
  payload: import("../integrations/supabase/types").Json;
60273
+ pdf_base64: string | null;
60274
+ pdf_url: string | null;
59212
60275
  pogingen: number;
59213
60276
  printer_id: string | null;
59214
60277
  render_html: string | null;
59215
60278
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
59216
60279
  updated_at: string;
60280
+ volgende_poging: string | null;
59217
60281
  voltooid_op: string | null;
59218
60282
  }[];
59219
60283
  SetofOptions: {
@@ -59259,6 +60323,10 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
59259
60323
  Args: never;
59260
60324
  Returns: undefined;
59261
60325
  };
60326
+ cleanup_voorraad_module_history: {
60327
+ Args: never;
60328
+ Returns: undefined;
60329
+ };
59262
60330
  complete_floriday_stock_queue: {
59263
60331
  Args: {
59264
60332
  p_attempt_id?: string;
@@ -59380,6 +60448,13 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
59380
60448
  };
59381
60449
  Returns: import("../integrations/supabase/types").Json;
59382
60450
  };
60451
+ effective_module_permission: {
60452
+ Args: {
60453
+ _module_id: string;
60454
+ _user_id: string;
60455
+ };
60456
+ Returns: string;
60457
+ };
59383
60458
  email_auth_decrypt: {
59384
60459
  Args: {
59385
60460
  cipher: string;
@@ -60183,6 +61258,51 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
60183
61258
  isSetofReturn: false;
60184
61259
  };
60185
61260
  };
61261
+ logistics_floriday_claim_pushes: {
61262
+ Args: {
61263
+ _lease_seconds?: number;
61264
+ _limit?: number;
61265
+ _worker?: string;
61266
+ };
61267
+ Returns: {
61268
+ attempts: number;
61269
+ fulfillment_order_id: string;
61270
+ id: string;
61271
+ last_sent_hash: string;
61272
+ order_ref: string;
61273
+ payload: import("../integrations/supabase/types").Json;
61274
+ payload_hash: string;
61275
+ revision: number;
61276
+ }[];
61277
+ };
61278
+ logistics_floriday_finish_push: {
61279
+ Args: {
61280
+ _error?: string;
61281
+ _fulfillment_order_id?: string;
61282
+ _id: string;
61283
+ _max_age_hours?: number;
61284
+ _max_attempts?: number;
61285
+ _ok: boolean;
61286
+ _permanent?: boolean;
61287
+ _revision: number;
61288
+ _sent_hash?: string;
61289
+ };
61290
+ Returns: string;
61291
+ };
61292
+ logistics_floriday_prune_pushes: {
61293
+ Args: {
61294
+ _days?: number;
61295
+ };
61296
+ Returns: number;
61297
+ };
61298
+ logistics_floriday_queue_push: {
61299
+ Args: {
61300
+ _order_ref: string;
61301
+ _payload?: import("../integrations/supabase/types").Json;
61302
+ _payload_hash?: string;
61303
+ };
61304
+ Returns: string;
61305
+ };
60186
61306
  logistics_live_carriers: {
60187
61307
  Args: {
60188
61308
  p_order_ref: string;
@@ -60473,6 +61593,13 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
60473
61593
  };
60474
61594
  Returns: undefined;
60475
61595
  };
61596
+ my_module_permissions: {
61597
+ Args: never;
61598
+ Returns: {
61599
+ module_id: string;
61600
+ permission: string;
61601
+ }[];
61602
+ };
60476
61603
  next_manufacture_partij: {
60477
61604
  Args: {
60478
61605
  _tenant_id: string;
@@ -60523,6 +61650,13 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
60523
61650
  };
60524
61651
  Returns: boolean;
60525
61652
  };
61653
+ opruim_print_historie: {
61654
+ Args: never;
61655
+ Returns: {
61656
+ ontdaan: number;
61657
+ verwijderd: number;
61658
+ }[];
61659
+ };
60526
61660
  order_number_prefix: {
60527
61661
  Args: {
60528
61662
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -60530,6 +61664,15 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
60530
61664
  };
60531
61665
  Returns: string;
60532
61666
  };
61667
+ pick_active_printers: {
61668
+ Args: never;
61669
+ Returns: {
61670
+ id: string;
61671
+ locatie: string;
61672
+ naam: string;
61673
+ online: boolean;
61674
+ }[];
61675
+ };
60533
61676
  pick_claim_document: {
60534
61677
  Args: {
60535
61678
  _queue_item_id: string;
@@ -60716,6 +61859,52 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
60716
61859
  };
60717
61860
  Returns: undefined;
60718
61861
  };
61862
+ pick_reset_print: {
61863
+ Args: {
61864
+ _queue_item_id: string;
61865
+ _session_id: string;
61866
+ };
61867
+ Returns: {
61868
+ announced_at: string;
61869
+ assigned_user_id: string | null;
61870
+ barcode: string | null;
61871
+ cancelled_at: string | null;
61872
+ cart_count: number;
61873
+ completed_at: string | null;
61874
+ country_code: string | null;
61875
+ created_at: string;
61876
+ customer_name: string | null;
61877
+ delivery_address: string | null;
61878
+ document_number: string | null;
61879
+ document_type_id: string | null;
61880
+ due_at: string | null;
61881
+ id: string;
61882
+ is_urgent: boolean;
61883
+ line_count: number;
61884
+ order_number: string | null;
61885
+ order_type: string | null;
61886
+ payload: import("../integrations/supabase/types").Json;
61887
+ print_count: number;
61888
+ print_job_id: string | null;
61889
+ printed_at: string | null;
61890
+ printed_by: string | null;
61891
+ printer_id: string | null;
61892
+ priority: number;
61893
+ reference: string | null;
61894
+ route: string | null;
61895
+ screen_id: string | null;
61896
+ station_id: string | null;
61897
+ status_id: string | null;
61898
+ updated_at: string;
61899
+ warnings: import("../integrations/supabase/types").Json;
61900
+ };
61901
+ SetofOptions: {
61902
+ from: "*";
61903
+ to: "pick_queue";
61904
+ isOneToOne: true;
61905
+ isSetofReturn: false;
61906
+ };
61907
+ };
60719
61908
  pick_station_dashboard: {
60720
61909
  Args: never;
60721
61910
  Returns: {
@@ -60862,6 +62051,12 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
60862
62051
  };
60863
62052
  Returns: undefined;
60864
62053
  };
62054
+ reset_stalled_floriday_stock_queue: {
62055
+ Args: {
62056
+ p_include_failed?: boolean;
62057
+ };
62058
+ Returns: number;
62059
+ };
60865
62060
  resolve_group_allocation: {
60866
62061
  Args: {
60867
62062
  _needed: number;
@@ -60906,14 +62101,28 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
60906
62101
  };
60907
62102
  Returns: import("../integrations/supabase/types").Json;
60908
62103
  };
62104
+ ruim_print_jobs_op: {
62105
+ Args: {
62106
+ _bewaar_dagen?: number;
62107
+ };
62108
+ Returns: number;
62109
+ };
60909
62110
  run_floriday_continuous_stock_sync: {
60910
62111
  Args: never;
60911
62112
  Returns: undefined;
60912
62113
  };
62114
+ run_floriday_stock_queue_process: {
62115
+ Args: never;
62116
+ Returns: undefined;
62117
+ };
60913
62118
  run_logistics_tasks_dispatch: {
60914
62119
  Args: never;
60915
62120
  Returns: undefined;
60916
62121
  };
62122
+ run_print_queue_ticks: {
62123
+ Args: never;
62124
+ Returns: number;
62125
+ };
60917
62126
  run_twinfield_queue_tick: {
60918
62127
  Args: never;
60919
62128
  Returns: undefined;
@@ -61301,6 +62510,15 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
61301
62510
  };
61302
62511
  Returns: undefined;
61303
62512
  };
62513
+ trade_item_stock_duplicates: {
62514
+ Args: never;
62515
+ Returns: {
62516
+ keys: string[];
62517
+ product_id: string;
62518
+ product_name: string;
62519
+ row_count: number;
62520
+ }[];
62521
+ };
61304
62522
  try_debtor_lock: {
61305
62523
  Args: {
61306
62524
  _group_key: string;
@@ -61350,7 +62568,7 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
61350
62568
  };
61351
62569
  Enums: {
61352
62570
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
61353
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
62571
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
61354
62572
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
61355
62573
  doc_orientation: "portrait" | "landscape";
61356
62574
  exact_env: "staging" | "live";
@@ -63055,7 +64273,7 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
63055
64273
  city: string | null;
63056
64274
  country: string | null;
63057
64275
  created_at: string;
63058
- customer_id: string | null;
64276
+ customer_id: string;
63059
64277
  external_key: string | null;
63060
64278
  external_provider: string | null;
63061
64279
  floriday_location_id: string | null;
@@ -63079,7 +64297,7 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
63079
64297
  city?: string | null;
63080
64298
  country?: string | null;
63081
64299
  created_at?: string;
63082
- customer_id?: string | null;
64300
+ customer_id: string;
63083
64301
  external_key?: string | null;
63084
64302
  external_provider?: string | null;
63085
64303
  floriday_location_id?: string | null;
@@ -63103,7 +64321,7 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
63103
64321
  city?: string | null;
63104
64322
  country?: string | null;
63105
64323
  created_at?: string;
63106
- customer_id?: string | null;
64324
+ customer_id?: string;
63107
64325
  external_key?: string | null;
63108
64326
  external_provider?: string | null;
63109
64327
  floriday_location_id?: string | null;
@@ -69863,6 +71081,69 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
69863
71081
  };
69864
71082
  Relationships: [];
69865
71083
  };
71084
+ logistics_floriday_pushes: {
71085
+ Row: {
71086
+ attempts: number;
71087
+ created_at: string;
71088
+ first_queued_at: string;
71089
+ fulfillment_order_id: string | null;
71090
+ id: string;
71091
+ last_error: string | null;
71092
+ last_error_at: string | null;
71093
+ last_sent_hash: string | null;
71094
+ locked_by: string | null;
71095
+ locked_until: string | null;
71096
+ next_attempt_at: string;
71097
+ order_ref: string;
71098
+ payload: import("../integrations/supabase/types").Json;
71099
+ payload_hash: string | null;
71100
+ revision: number;
71101
+ sent_at: string | null;
71102
+ status: string;
71103
+ updated_at: string;
71104
+ };
71105
+ Insert: {
71106
+ attempts?: number;
71107
+ created_at?: string;
71108
+ first_queued_at?: string;
71109
+ fulfillment_order_id?: string | null;
71110
+ id?: string;
71111
+ last_error?: string | null;
71112
+ last_error_at?: string | null;
71113
+ last_sent_hash?: string | null;
71114
+ locked_by?: string | null;
71115
+ locked_until?: string | null;
71116
+ next_attempt_at?: string;
71117
+ order_ref: string;
71118
+ payload?: import("../integrations/supabase/types").Json;
71119
+ payload_hash?: string | null;
71120
+ revision?: number;
71121
+ sent_at?: string | null;
71122
+ status?: string;
71123
+ updated_at?: string;
71124
+ };
71125
+ Update: {
71126
+ attempts?: number;
71127
+ created_at?: string;
71128
+ first_queued_at?: string;
71129
+ fulfillment_order_id?: string | null;
71130
+ id?: string;
71131
+ last_error?: string | null;
71132
+ last_error_at?: string | null;
71133
+ last_sent_hash?: string | null;
71134
+ locked_by?: string | null;
71135
+ locked_until?: string | null;
71136
+ next_attempt_at?: string;
71137
+ order_ref?: string;
71138
+ payload?: import("../integrations/supabase/types").Json;
71139
+ payload_hash?: string | null;
71140
+ revision?: number;
71141
+ sent_at?: string | null;
71142
+ status?: string;
71143
+ updated_at?: string;
71144
+ };
71145
+ Relationships: [];
71146
+ };
69866
71147
  logistics_formulas: {
69867
71148
  Row: {
69868
71149
  created_at: string;
@@ -70726,14 +72007,17 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
70726
72007
  };
70727
72008
  mailbox_messages: {
70728
72009
  Row: {
72010
+ attachments: import("../integrations/supabase/types").Json;
70729
72011
  body_html: string | null;
70730
72012
  body_text: string | null;
72013
+ cc_recipients: import("../integrations/supabase/types").Json;
70731
72014
  connection_id: string | null;
70732
72015
  created_at: string;
70733
72016
  error_message: string | null;
70734
72017
  external_id: string | null;
70735
72018
  from_email: string | null;
70736
72019
  from_name: string | null;
72020
+ has_attachments: boolean;
70737
72021
  id: string;
70738
72022
  message_id: string | null;
70739
72023
  profile_id: string | null;
@@ -70741,18 +72025,22 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
70741
72025
  received_at: string | null;
70742
72026
  status: string;
70743
72027
  subject: string | null;
72028
+ to_recipients: import("../integrations/supabase/types").Json;
70744
72029
  uid: number | null;
70745
72030
  updated_at: string;
70746
72031
  };
70747
72032
  Insert: {
72033
+ attachments?: import("../integrations/supabase/types").Json;
70748
72034
  body_html?: string | null;
70749
72035
  body_text?: string | null;
72036
+ cc_recipients?: import("../integrations/supabase/types").Json;
70750
72037
  connection_id?: string | null;
70751
72038
  created_at?: string;
70752
72039
  error_message?: string | null;
70753
72040
  external_id?: string | null;
70754
72041
  from_email?: string | null;
70755
72042
  from_name?: string | null;
72043
+ has_attachments?: boolean;
70756
72044
  id?: string;
70757
72045
  message_id?: string | null;
70758
72046
  profile_id?: string | null;
@@ -70760,18 +72048,22 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
70760
72048
  received_at?: string | null;
70761
72049
  status?: string;
70762
72050
  subject?: string | null;
72051
+ to_recipients?: import("../integrations/supabase/types").Json;
70763
72052
  uid?: number | null;
70764
72053
  updated_at?: string;
70765
72054
  };
70766
72055
  Update: {
72056
+ attachments?: import("../integrations/supabase/types").Json;
70767
72057
  body_html?: string | null;
70768
72058
  body_text?: string | null;
72059
+ cc_recipients?: import("../integrations/supabase/types").Json;
70769
72060
  connection_id?: string | null;
70770
72061
  created_at?: string;
70771
72062
  error_message?: string | null;
70772
72063
  external_id?: string | null;
70773
72064
  from_email?: string | null;
70774
72065
  from_name?: string | null;
72066
+ has_attachments?: boolean;
70775
72067
  id?: string;
70776
72068
  message_id?: string | null;
70777
72069
  profile_id?: string | null;
@@ -70779,6 +72071,7 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
70779
72071
  received_at?: string | null;
70780
72072
  status?: string;
70781
72073
  subject?: string | null;
72074
+ to_recipients?: import("../integrations/supabase/types").Json;
70782
72075
  uid?: number | null;
70783
72076
  updated_at?: string;
70784
72077
  };
@@ -71186,6 +72479,36 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
71186
72479
  };
71187
72480
  Relationships: [];
71188
72481
  };
72482
+ module_registry: {
72483
+ Row: {
72484
+ created_at: string;
72485
+ is_active: boolean;
72486
+ last_seen_at: string;
72487
+ module_id: string;
72488
+ name: string;
72489
+ shell_id: string | null;
72490
+ sort_order: number | null;
72491
+ };
72492
+ Insert: {
72493
+ created_at?: string;
72494
+ is_active?: boolean;
72495
+ last_seen_at?: string;
72496
+ module_id: string;
72497
+ name: string;
72498
+ shell_id?: string | null;
72499
+ sort_order?: number | null;
72500
+ };
72501
+ Update: {
72502
+ created_at?: string;
72503
+ is_active?: boolean;
72504
+ last_seen_at?: string;
72505
+ module_id?: string;
72506
+ name?: string;
72507
+ shell_id?: string | null;
72508
+ sort_order?: number | null;
72509
+ };
72510
+ Relationships: [];
72511
+ };
71189
72512
  module_runtime_config: {
71190
72513
  Row: {
71191
72514
  key: string;
@@ -73665,22 +74988,27 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
73665
74988
  created_at: string;
73666
74989
  documentnaam: string;
73667
74990
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
74991
+ extern_job_id: string | null;
73668
74992
  foutmelding: string | null;
73669
74993
  gebruiker_id: string | null;
73670
74994
  gebruiker_naam: string;
73671
74995
  gestart_op: string | null;
73672
74996
  id: string;
74997
+ idempotentie_sleutel: string | null;
73673
74998
  is_herprint: boolean;
73674
74999
  kopieen: number;
73675
75000
  layout_id: string | null;
73676
75001
  opgepakt_op: string | null;
73677
75002
  paginas: number;
73678
75003
  payload: import("../integrations/supabase/types").Json;
75004
+ pdf_base64: string | null;
75005
+ pdf_url: string | null;
73679
75006
  pogingen: number;
73680
75007
  printer_id: string | null;
73681
75008
  render_html: string | null;
73682
75009
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
73683
75010
  updated_at: string;
75011
+ volgende_poging: string | null;
73684
75012
  voltooid_op: string | null;
73685
75013
  };
73686
75014
  Insert: {
@@ -73689,22 +75017,27 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
73689
75017
  created_at?: string;
73690
75018
  documentnaam?: string;
73691
75019
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
75020
+ extern_job_id?: string | null;
73692
75021
  foutmelding?: string | null;
73693
75022
  gebruiker_id?: string | null;
73694
75023
  gebruiker_naam?: string;
73695
75024
  gestart_op?: string | null;
73696
75025
  id?: string;
75026
+ idempotentie_sleutel?: string | null;
73697
75027
  is_herprint?: boolean;
73698
75028
  kopieen?: number;
73699
75029
  layout_id?: string | null;
73700
75030
  opgepakt_op?: string | null;
73701
75031
  paginas?: number;
73702
75032
  payload?: import("../integrations/supabase/types").Json;
75033
+ pdf_base64?: string | null;
75034
+ pdf_url?: string | null;
73703
75035
  pogingen?: number;
73704
75036
  printer_id?: string | null;
73705
75037
  render_html?: string | null;
73706
75038
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
73707
75039
  updated_at?: string;
75040
+ volgende_poging?: string | null;
73708
75041
  voltooid_op?: string | null;
73709
75042
  };
73710
75043
  Update: {
@@ -73713,22 +75046,27 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
73713
75046
  created_at?: string;
73714
75047
  documentnaam?: string;
73715
75048
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
75049
+ extern_job_id?: string | null;
73716
75050
  foutmelding?: string | null;
73717
75051
  gebruiker_id?: string | null;
73718
75052
  gebruiker_naam?: string;
73719
75053
  gestart_op?: string | null;
73720
75054
  id?: string;
75055
+ idempotentie_sleutel?: string | null;
73721
75056
  is_herprint?: boolean;
73722
75057
  kopieen?: number;
73723
75058
  layout_id?: string | null;
73724
75059
  opgepakt_op?: string | null;
73725
75060
  paginas?: number;
73726
75061
  payload?: import("../integrations/supabase/types").Json;
75062
+ pdf_base64?: string | null;
75063
+ pdf_url?: string | null;
73727
75064
  pogingen?: number;
73728
75065
  printer_id?: string | null;
73729
75066
  render_html?: string | null;
73730
75067
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
73731
75068
  updated_at?: string;
75069
+ volgende_poging?: string | null;
73732
75070
  voltooid_op?: string | null;
73733
75071
  };
73734
75072
  Relationships: [{
@@ -73751,6 +75089,63 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
73751
75089
  referencedColumns: ["id"];
73752
75090
  }];
73753
75091
  };
75092
+ print_queue_runners: {
75093
+ Row: {
75094
+ actief: boolean;
75095
+ basis_url: string;
75096
+ created_at: string;
75097
+ id: string;
75098
+ laatst_gezien: string;
75099
+ tick_sleutel: string;
75100
+ updated_at: string;
75101
+ };
75102
+ Insert: {
75103
+ actief?: boolean;
75104
+ basis_url: string;
75105
+ created_at?: string;
75106
+ id?: string;
75107
+ laatst_gezien?: string;
75108
+ tick_sleutel?: string;
75109
+ updated_at?: string;
75110
+ };
75111
+ Update: {
75112
+ actief?: boolean;
75113
+ basis_url?: string;
75114
+ created_at?: string;
75115
+ id?: string;
75116
+ laatst_gezien?: string;
75117
+ tick_sleutel?: string;
75118
+ updated_at?: string;
75119
+ };
75120
+ Relationships: [];
75121
+ };
75122
+ print_queue_settings: {
75123
+ Row: {
75124
+ bewaar_bestanden_dagen: number;
75125
+ bewaar_opdrachten_dagen: number;
75126
+ created_at: string;
75127
+ dubbel_venster_minuten: number;
75128
+ id: string;
75129
+ updated_at: string;
75130
+ };
75131
+ Insert: {
75132
+ bewaar_bestanden_dagen?: number;
75133
+ bewaar_opdrachten_dagen?: number;
75134
+ created_at?: string;
75135
+ dubbel_venster_minuten?: number;
75136
+ id?: string;
75137
+ updated_at?: string;
75138
+ };
75139
+ Update: {
75140
+ bewaar_bestanden_dagen?: number;
75141
+ bewaar_opdrachten_dagen?: number;
75142
+ created_at?: string;
75143
+ dubbel_venster_minuten?: number;
75144
+ id?: string;
75145
+ updated_at?: string;
75146
+ };
75147
+ Relationships: [];
75148
+ };
73754
75149
  print_rules: {
73755
75150
  Row: {
73756
75151
  actief: boolean;
@@ -73911,6 +75306,7 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
73911
75306
  agent_id: string | null;
73912
75307
  created_at: string;
73913
75308
  driver: string;
75309
+ extern_printer_id: string | null;
73914
75310
  id: string;
73915
75311
  ip_adres: string | null;
73916
75312
  laatst_gezien: string | null;
@@ -73932,6 +75328,7 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
73932
75328
  agent_id?: string | null;
73933
75329
  created_at?: string;
73934
75330
  driver?: string;
75331
+ extern_printer_id?: string | null;
73935
75332
  id?: string;
73936
75333
  ip_adres?: string | null;
73937
75334
  laatst_gezien?: string | null;
@@ -73953,6 +75350,7 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
73953
75350
  agent_id?: string | null;
73954
75351
  created_at?: string;
73955
75352
  driver?: string;
75353
+ extern_printer_id?: string | null;
73956
75354
  id?: string;
73957
75355
  ip_adres?: string | null;
73958
75356
  laatst_gezien?: string | null;
@@ -77690,6 +79088,33 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
77690
79088
  referencedColumns: ["id"];
77691
79089
  }];
77692
79090
  };
79091
+ user_module_permissions: {
79092
+ Row: {
79093
+ created_at: string;
79094
+ id: string;
79095
+ module_id: string;
79096
+ permission: string;
79097
+ updated_at: string;
79098
+ user_id: string;
79099
+ };
79100
+ Insert: {
79101
+ created_at?: string;
79102
+ id?: string;
79103
+ module_id: string;
79104
+ permission: string;
79105
+ updated_at?: string;
79106
+ user_id: string;
79107
+ };
79108
+ Update: {
79109
+ created_at?: string;
79110
+ id?: string;
79111
+ module_id?: string;
79112
+ permission?: string;
79113
+ updated_at?: string;
79114
+ user_id?: string;
79115
+ };
79116
+ Relationships: [];
79117
+ };
77693
79118
  user_roles: {
77694
79119
  Row: {
77695
79120
  created_at: string;
@@ -79557,6 +80982,46 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
79557
80982
  };
79558
80983
  Returns: import("../integrations/supabase/types").Json;
79559
80984
  };
80985
+ claim_cloud_print_jobs: {
80986
+ Args: {
80987
+ _max?: number;
80988
+ };
80989
+ Returns: {
80990
+ agent_id: string | null;
80991
+ bron_job_id: string | null;
80992
+ created_at: string;
80993
+ documentnaam: string;
80994
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
80995
+ extern_job_id: string | null;
80996
+ foutmelding: string | null;
80997
+ gebruiker_id: string | null;
80998
+ gebruiker_naam: string;
80999
+ gestart_op: string | null;
81000
+ id: string;
81001
+ idempotentie_sleutel: string | null;
81002
+ is_herprint: boolean;
81003
+ kopieen: number;
81004
+ layout_id: string | null;
81005
+ opgepakt_op: string | null;
81006
+ paginas: number;
81007
+ payload: import("../integrations/supabase/types").Json;
81008
+ pdf_base64: string | null;
81009
+ pdf_url: string | null;
81010
+ pogingen: number;
81011
+ printer_id: string | null;
81012
+ render_html: string | null;
81013
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
81014
+ updated_at: string;
81015
+ volgende_poging: string | null;
81016
+ voltooid_op: string | null;
81017
+ }[];
81018
+ SetofOptions: {
81019
+ from: "*";
81020
+ to: "print_jobs";
81021
+ isOneToOne: false;
81022
+ isSetofReturn: true;
81023
+ };
81024
+ };
79560
81025
  claim_floriday_stock_queue: {
79561
81026
  Args: {
79562
81027
  p_limit?: number;
@@ -79647,22 +81112,27 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
79647
81112
  created_at: string;
79648
81113
  documentnaam: string;
79649
81114
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
81115
+ extern_job_id: string | null;
79650
81116
  foutmelding: string | null;
79651
81117
  gebruiker_id: string | null;
79652
81118
  gebruiker_naam: string;
79653
81119
  gestart_op: string | null;
79654
81120
  id: string;
81121
+ idempotentie_sleutel: string | null;
79655
81122
  is_herprint: boolean;
79656
81123
  kopieen: number;
79657
81124
  layout_id: string | null;
79658
81125
  opgepakt_op: string | null;
79659
81126
  paginas: number;
79660
81127
  payload: import("../integrations/supabase/types").Json;
81128
+ pdf_base64: string | null;
81129
+ pdf_url: string | null;
79661
81130
  pogingen: number;
79662
81131
  printer_id: string | null;
79663
81132
  render_html: string | null;
79664
81133
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
79665
81134
  updated_at: string;
81135
+ volgende_poging: string | null;
79666
81136
  voltooid_op: string | null;
79667
81137
  }[];
79668
81138
  SetofOptions: {
@@ -79708,6 +81178,10 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
79708
81178
  Args: never;
79709
81179
  Returns: undefined;
79710
81180
  };
81181
+ cleanup_voorraad_module_history: {
81182
+ Args: never;
81183
+ Returns: undefined;
81184
+ };
79711
81185
  complete_floriday_stock_queue: {
79712
81186
  Args: {
79713
81187
  p_attempt_id?: string;
@@ -79829,6 +81303,13 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
79829
81303
  };
79830
81304
  Returns: import("../integrations/supabase/types").Json;
79831
81305
  };
81306
+ effective_module_permission: {
81307
+ Args: {
81308
+ _module_id: string;
81309
+ _user_id: string;
81310
+ };
81311
+ Returns: string;
81312
+ };
79832
81313
  email_auth_decrypt: {
79833
81314
  Args: {
79834
81315
  cipher: string;
@@ -80632,6 +82113,51 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
80632
82113
  isSetofReturn: false;
80633
82114
  };
80634
82115
  };
82116
+ logistics_floriday_claim_pushes: {
82117
+ Args: {
82118
+ _lease_seconds?: number;
82119
+ _limit?: number;
82120
+ _worker?: string;
82121
+ };
82122
+ Returns: {
82123
+ attempts: number;
82124
+ fulfillment_order_id: string;
82125
+ id: string;
82126
+ last_sent_hash: string;
82127
+ order_ref: string;
82128
+ payload: import("../integrations/supabase/types").Json;
82129
+ payload_hash: string;
82130
+ revision: number;
82131
+ }[];
82132
+ };
82133
+ logistics_floriday_finish_push: {
82134
+ Args: {
82135
+ _error?: string;
82136
+ _fulfillment_order_id?: string;
82137
+ _id: string;
82138
+ _max_age_hours?: number;
82139
+ _max_attempts?: number;
82140
+ _ok: boolean;
82141
+ _permanent?: boolean;
82142
+ _revision: number;
82143
+ _sent_hash?: string;
82144
+ };
82145
+ Returns: string;
82146
+ };
82147
+ logistics_floriday_prune_pushes: {
82148
+ Args: {
82149
+ _days?: number;
82150
+ };
82151
+ Returns: number;
82152
+ };
82153
+ logistics_floriday_queue_push: {
82154
+ Args: {
82155
+ _order_ref: string;
82156
+ _payload?: import("../integrations/supabase/types").Json;
82157
+ _payload_hash?: string;
82158
+ };
82159
+ Returns: string;
82160
+ };
80635
82161
  logistics_live_carriers: {
80636
82162
  Args: {
80637
82163
  p_order_ref: string;
@@ -80922,6 +82448,13 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
80922
82448
  };
80923
82449
  Returns: undefined;
80924
82450
  };
82451
+ my_module_permissions: {
82452
+ Args: never;
82453
+ Returns: {
82454
+ module_id: string;
82455
+ permission: string;
82456
+ }[];
82457
+ };
80925
82458
  next_manufacture_partij: {
80926
82459
  Args: {
80927
82460
  _tenant_id: string;
@@ -80972,6 +82505,13 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
80972
82505
  };
80973
82506
  Returns: boolean;
80974
82507
  };
82508
+ opruim_print_historie: {
82509
+ Args: never;
82510
+ Returns: {
82511
+ ontdaan: number;
82512
+ verwijderd: number;
82513
+ }[];
82514
+ };
80975
82515
  order_number_prefix: {
80976
82516
  Args: {
80977
82517
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -80979,6 +82519,15 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
80979
82519
  };
80980
82520
  Returns: string;
80981
82521
  };
82522
+ pick_active_printers: {
82523
+ Args: never;
82524
+ Returns: {
82525
+ id: string;
82526
+ locatie: string;
82527
+ naam: string;
82528
+ online: boolean;
82529
+ }[];
82530
+ };
80982
82531
  pick_claim_document: {
80983
82532
  Args: {
80984
82533
  _queue_item_id: string;
@@ -81165,6 +82714,52 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
81165
82714
  };
81166
82715
  Returns: undefined;
81167
82716
  };
82717
+ pick_reset_print: {
82718
+ Args: {
82719
+ _queue_item_id: string;
82720
+ _session_id: string;
82721
+ };
82722
+ Returns: {
82723
+ announced_at: string;
82724
+ assigned_user_id: string | null;
82725
+ barcode: string | null;
82726
+ cancelled_at: string | null;
82727
+ cart_count: number;
82728
+ completed_at: string | null;
82729
+ country_code: string | null;
82730
+ created_at: string;
82731
+ customer_name: string | null;
82732
+ delivery_address: string | null;
82733
+ document_number: string | null;
82734
+ document_type_id: string | null;
82735
+ due_at: string | null;
82736
+ id: string;
82737
+ is_urgent: boolean;
82738
+ line_count: number;
82739
+ order_number: string | null;
82740
+ order_type: string | null;
82741
+ payload: import("../integrations/supabase/types").Json;
82742
+ print_count: number;
82743
+ print_job_id: string | null;
82744
+ printed_at: string | null;
82745
+ printed_by: string | null;
82746
+ printer_id: string | null;
82747
+ priority: number;
82748
+ reference: string | null;
82749
+ route: string | null;
82750
+ screen_id: string | null;
82751
+ station_id: string | null;
82752
+ status_id: string | null;
82753
+ updated_at: string;
82754
+ warnings: import("../integrations/supabase/types").Json;
82755
+ };
82756
+ SetofOptions: {
82757
+ from: "*";
82758
+ to: "pick_queue";
82759
+ isOneToOne: true;
82760
+ isSetofReturn: false;
82761
+ };
82762
+ };
81168
82763
  pick_station_dashboard: {
81169
82764
  Args: never;
81170
82765
  Returns: {
@@ -81311,6 +82906,12 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
81311
82906
  };
81312
82907
  Returns: undefined;
81313
82908
  };
82909
+ reset_stalled_floriday_stock_queue: {
82910
+ Args: {
82911
+ p_include_failed?: boolean;
82912
+ };
82913
+ Returns: number;
82914
+ };
81314
82915
  resolve_group_allocation: {
81315
82916
  Args: {
81316
82917
  _needed: number;
@@ -81355,14 +82956,28 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
81355
82956
  };
81356
82957
  Returns: import("../integrations/supabase/types").Json;
81357
82958
  };
82959
+ ruim_print_jobs_op: {
82960
+ Args: {
82961
+ _bewaar_dagen?: number;
82962
+ };
82963
+ Returns: number;
82964
+ };
81358
82965
  run_floriday_continuous_stock_sync: {
81359
82966
  Args: never;
81360
82967
  Returns: undefined;
81361
82968
  };
82969
+ run_floriday_stock_queue_process: {
82970
+ Args: never;
82971
+ Returns: undefined;
82972
+ };
81362
82973
  run_logistics_tasks_dispatch: {
81363
82974
  Args: never;
81364
82975
  Returns: undefined;
81365
82976
  };
82977
+ run_print_queue_ticks: {
82978
+ Args: never;
82979
+ Returns: number;
82980
+ };
81366
82981
  run_twinfield_queue_tick: {
81367
82982
  Args: never;
81368
82983
  Returns: undefined;
@@ -81750,6 +83365,15 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
81750
83365
  };
81751
83366
  Returns: undefined;
81752
83367
  };
83368
+ trade_item_stock_duplicates: {
83369
+ Args: never;
83370
+ Returns: {
83371
+ keys: string[];
83372
+ product_id: string;
83373
+ product_name: string;
83374
+ row_count: number;
83375
+ }[];
83376
+ };
81753
83377
  try_debtor_lock: {
81754
83378
  Args: {
81755
83379
  _group_key: string;
@@ -81799,7 +83423,7 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
81799
83423
  };
81800
83424
  Enums: {
81801
83425
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
81802
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
83426
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
81803
83427
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
81804
83428
  doc_orientation: "portrait" | "landscape";
81805
83429
  exact_env: "staging" | "live";
@@ -83507,7 +85131,7 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
83507
85131
  city: string | null;
83508
85132
  country: string | null;
83509
85133
  created_at: string;
83510
- customer_id: string | null;
85134
+ customer_id: string;
83511
85135
  external_key: string | null;
83512
85136
  external_provider: string | null;
83513
85137
  floriday_location_id: string | null;
@@ -83531,7 +85155,7 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
83531
85155
  city?: string | null;
83532
85156
  country?: string | null;
83533
85157
  created_at?: string;
83534
- customer_id?: string | null;
85158
+ customer_id: string;
83535
85159
  external_key?: string | null;
83536
85160
  external_provider?: string | null;
83537
85161
  floriday_location_id?: string | null;
@@ -83555,7 +85179,7 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
83555
85179
  city?: string | null;
83556
85180
  country?: string | null;
83557
85181
  created_at?: string;
83558
- customer_id?: string | null;
85182
+ customer_id?: string;
83559
85183
  external_key?: string | null;
83560
85184
  external_provider?: string | null;
83561
85185
  floriday_location_id?: string | null;
@@ -90315,6 +91939,69 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
90315
91939
  };
90316
91940
  Relationships: [];
90317
91941
  };
91942
+ logistics_floriday_pushes: {
91943
+ Row: {
91944
+ attempts: number;
91945
+ created_at: string;
91946
+ first_queued_at: string;
91947
+ fulfillment_order_id: string | null;
91948
+ id: string;
91949
+ last_error: string | null;
91950
+ last_error_at: string | null;
91951
+ last_sent_hash: string | null;
91952
+ locked_by: string | null;
91953
+ locked_until: string | null;
91954
+ next_attempt_at: string;
91955
+ order_ref: string;
91956
+ payload: import("../integrations/supabase/types").Json;
91957
+ payload_hash: string | null;
91958
+ revision: number;
91959
+ sent_at: string | null;
91960
+ status: string;
91961
+ updated_at: string;
91962
+ };
91963
+ Insert: {
91964
+ attempts?: number;
91965
+ created_at?: string;
91966
+ first_queued_at?: string;
91967
+ fulfillment_order_id?: string | null;
91968
+ id?: string;
91969
+ last_error?: string | null;
91970
+ last_error_at?: string | null;
91971
+ last_sent_hash?: string | null;
91972
+ locked_by?: string | null;
91973
+ locked_until?: string | null;
91974
+ next_attempt_at?: string;
91975
+ order_ref: string;
91976
+ payload?: import("../integrations/supabase/types").Json;
91977
+ payload_hash?: string | null;
91978
+ revision?: number;
91979
+ sent_at?: string | null;
91980
+ status?: string;
91981
+ updated_at?: string;
91982
+ };
91983
+ Update: {
91984
+ attempts?: number;
91985
+ created_at?: string;
91986
+ first_queued_at?: string;
91987
+ fulfillment_order_id?: string | null;
91988
+ id?: string;
91989
+ last_error?: string | null;
91990
+ last_error_at?: string | null;
91991
+ last_sent_hash?: string | null;
91992
+ locked_by?: string | null;
91993
+ locked_until?: string | null;
91994
+ next_attempt_at?: string;
91995
+ order_ref?: string;
91996
+ payload?: import("../integrations/supabase/types").Json;
91997
+ payload_hash?: string | null;
91998
+ revision?: number;
91999
+ sent_at?: string | null;
92000
+ status?: string;
92001
+ updated_at?: string;
92002
+ };
92003
+ Relationships: [];
92004
+ };
90318
92005
  logistics_formulas: {
90319
92006
  Row: {
90320
92007
  created_at: string;
@@ -91178,14 +92865,17 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
91178
92865
  };
91179
92866
  mailbox_messages: {
91180
92867
  Row: {
92868
+ attachments: import("../integrations/supabase/types").Json;
91181
92869
  body_html: string | null;
91182
92870
  body_text: string | null;
92871
+ cc_recipients: import("../integrations/supabase/types").Json;
91183
92872
  connection_id: string | null;
91184
92873
  created_at: string;
91185
92874
  error_message: string | null;
91186
92875
  external_id: string | null;
91187
92876
  from_email: string | null;
91188
92877
  from_name: string | null;
92878
+ has_attachments: boolean;
91189
92879
  id: string;
91190
92880
  message_id: string | null;
91191
92881
  profile_id: string | null;
@@ -91193,18 +92883,22 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
91193
92883
  received_at: string | null;
91194
92884
  status: string;
91195
92885
  subject: string | null;
92886
+ to_recipients: import("../integrations/supabase/types").Json;
91196
92887
  uid: number | null;
91197
92888
  updated_at: string;
91198
92889
  };
91199
92890
  Insert: {
92891
+ attachments?: import("../integrations/supabase/types").Json;
91200
92892
  body_html?: string | null;
91201
92893
  body_text?: string | null;
92894
+ cc_recipients?: import("../integrations/supabase/types").Json;
91202
92895
  connection_id?: string | null;
91203
92896
  created_at?: string;
91204
92897
  error_message?: string | null;
91205
92898
  external_id?: string | null;
91206
92899
  from_email?: string | null;
91207
92900
  from_name?: string | null;
92901
+ has_attachments?: boolean;
91208
92902
  id?: string;
91209
92903
  message_id?: string | null;
91210
92904
  profile_id?: string | null;
@@ -91212,18 +92906,22 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
91212
92906
  received_at?: string | null;
91213
92907
  status?: string;
91214
92908
  subject?: string | null;
92909
+ to_recipients?: import("../integrations/supabase/types").Json;
91215
92910
  uid?: number | null;
91216
92911
  updated_at?: string;
91217
92912
  };
91218
92913
  Update: {
92914
+ attachments?: import("../integrations/supabase/types").Json;
91219
92915
  body_html?: string | null;
91220
92916
  body_text?: string | null;
92917
+ cc_recipients?: import("../integrations/supabase/types").Json;
91221
92918
  connection_id?: string | null;
91222
92919
  created_at?: string;
91223
92920
  error_message?: string | null;
91224
92921
  external_id?: string | null;
91225
92922
  from_email?: string | null;
91226
92923
  from_name?: string | null;
92924
+ has_attachments?: boolean;
91227
92925
  id?: string;
91228
92926
  message_id?: string | null;
91229
92927
  profile_id?: string | null;
@@ -91231,6 +92929,7 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
91231
92929
  received_at?: string | null;
91232
92930
  status?: string;
91233
92931
  subject?: string | null;
92932
+ to_recipients?: import("../integrations/supabase/types").Json;
91234
92933
  uid?: number | null;
91235
92934
  updated_at?: string;
91236
92935
  };
@@ -91638,6 +93337,36 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
91638
93337
  };
91639
93338
  Relationships: [];
91640
93339
  };
93340
+ module_registry: {
93341
+ Row: {
93342
+ created_at: string;
93343
+ is_active: boolean;
93344
+ last_seen_at: string;
93345
+ module_id: string;
93346
+ name: string;
93347
+ shell_id: string | null;
93348
+ sort_order: number | null;
93349
+ };
93350
+ Insert: {
93351
+ created_at?: string;
93352
+ is_active?: boolean;
93353
+ last_seen_at?: string;
93354
+ module_id: string;
93355
+ name: string;
93356
+ shell_id?: string | null;
93357
+ sort_order?: number | null;
93358
+ };
93359
+ Update: {
93360
+ created_at?: string;
93361
+ is_active?: boolean;
93362
+ last_seen_at?: string;
93363
+ module_id?: string;
93364
+ name?: string;
93365
+ shell_id?: string | null;
93366
+ sort_order?: number | null;
93367
+ };
93368
+ Relationships: [];
93369
+ };
91641
93370
  module_runtime_config: {
91642
93371
  Row: {
91643
93372
  key: string;
@@ -94117,22 +95846,27 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
94117
95846
  created_at: string;
94118
95847
  documentnaam: string;
94119
95848
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
95849
+ extern_job_id: string | null;
94120
95850
  foutmelding: string | null;
94121
95851
  gebruiker_id: string | null;
94122
95852
  gebruiker_naam: string;
94123
95853
  gestart_op: string | null;
94124
95854
  id: string;
95855
+ idempotentie_sleutel: string | null;
94125
95856
  is_herprint: boolean;
94126
95857
  kopieen: number;
94127
95858
  layout_id: string | null;
94128
95859
  opgepakt_op: string | null;
94129
95860
  paginas: number;
94130
95861
  payload: import("../integrations/supabase/types").Json;
95862
+ pdf_base64: string | null;
95863
+ pdf_url: string | null;
94131
95864
  pogingen: number;
94132
95865
  printer_id: string | null;
94133
95866
  render_html: string | null;
94134
95867
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
94135
95868
  updated_at: string;
95869
+ volgende_poging: string | null;
94136
95870
  voltooid_op: string | null;
94137
95871
  };
94138
95872
  Insert: {
@@ -94141,22 +95875,27 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
94141
95875
  created_at?: string;
94142
95876
  documentnaam?: string;
94143
95877
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
95878
+ extern_job_id?: string | null;
94144
95879
  foutmelding?: string | null;
94145
95880
  gebruiker_id?: string | null;
94146
95881
  gebruiker_naam?: string;
94147
95882
  gestart_op?: string | null;
94148
95883
  id?: string;
95884
+ idempotentie_sleutel?: string | null;
94149
95885
  is_herprint?: boolean;
94150
95886
  kopieen?: number;
94151
95887
  layout_id?: string | null;
94152
95888
  opgepakt_op?: string | null;
94153
95889
  paginas?: number;
94154
95890
  payload?: import("../integrations/supabase/types").Json;
95891
+ pdf_base64?: string | null;
95892
+ pdf_url?: string | null;
94155
95893
  pogingen?: number;
94156
95894
  printer_id?: string | null;
94157
95895
  render_html?: string | null;
94158
95896
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
94159
95897
  updated_at?: string;
95898
+ volgende_poging?: string | null;
94160
95899
  voltooid_op?: string | null;
94161
95900
  };
94162
95901
  Update: {
@@ -94165,22 +95904,27 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
94165
95904
  created_at?: string;
94166
95905
  documentnaam?: string;
94167
95906
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
95907
+ extern_job_id?: string | null;
94168
95908
  foutmelding?: string | null;
94169
95909
  gebruiker_id?: string | null;
94170
95910
  gebruiker_naam?: string;
94171
95911
  gestart_op?: string | null;
94172
95912
  id?: string;
95913
+ idempotentie_sleutel?: string | null;
94173
95914
  is_herprint?: boolean;
94174
95915
  kopieen?: number;
94175
95916
  layout_id?: string | null;
94176
95917
  opgepakt_op?: string | null;
94177
95918
  paginas?: number;
94178
95919
  payload?: import("../integrations/supabase/types").Json;
95920
+ pdf_base64?: string | null;
95921
+ pdf_url?: string | null;
94179
95922
  pogingen?: number;
94180
95923
  printer_id?: string | null;
94181
95924
  render_html?: string | null;
94182
95925
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
94183
95926
  updated_at?: string;
95927
+ volgende_poging?: string | null;
94184
95928
  voltooid_op?: string | null;
94185
95929
  };
94186
95930
  Relationships: [{
@@ -94203,6 +95947,63 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
94203
95947
  referencedColumns: ["id"];
94204
95948
  }];
94205
95949
  };
95950
+ print_queue_runners: {
95951
+ Row: {
95952
+ actief: boolean;
95953
+ basis_url: string;
95954
+ created_at: string;
95955
+ id: string;
95956
+ laatst_gezien: string;
95957
+ tick_sleutel: string;
95958
+ updated_at: string;
95959
+ };
95960
+ Insert: {
95961
+ actief?: boolean;
95962
+ basis_url: string;
95963
+ created_at?: string;
95964
+ id?: string;
95965
+ laatst_gezien?: string;
95966
+ tick_sleutel?: string;
95967
+ updated_at?: string;
95968
+ };
95969
+ Update: {
95970
+ actief?: boolean;
95971
+ basis_url?: string;
95972
+ created_at?: string;
95973
+ id?: string;
95974
+ laatst_gezien?: string;
95975
+ tick_sleutel?: string;
95976
+ updated_at?: string;
95977
+ };
95978
+ Relationships: [];
95979
+ };
95980
+ print_queue_settings: {
95981
+ Row: {
95982
+ bewaar_bestanden_dagen: number;
95983
+ bewaar_opdrachten_dagen: number;
95984
+ created_at: string;
95985
+ dubbel_venster_minuten: number;
95986
+ id: string;
95987
+ updated_at: string;
95988
+ };
95989
+ Insert: {
95990
+ bewaar_bestanden_dagen?: number;
95991
+ bewaar_opdrachten_dagen?: number;
95992
+ created_at?: string;
95993
+ dubbel_venster_minuten?: number;
95994
+ id?: string;
95995
+ updated_at?: string;
95996
+ };
95997
+ Update: {
95998
+ bewaar_bestanden_dagen?: number;
95999
+ bewaar_opdrachten_dagen?: number;
96000
+ created_at?: string;
96001
+ dubbel_venster_minuten?: number;
96002
+ id?: string;
96003
+ updated_at?: string;
96004
+ };
96005
+ Relationships: [];
96006
+ };
94206
96007
  print_rules: {
94207
96008
  Row: {
94208
96009
  actief: boolean;
@@ -94363,6 +96164,7 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
94363
96164
  agent_id: string | null;
94364
96165
  created_at: string;
94365
96166
  driver: string;
96167
+ extern_printer_id: string | null;
94366
96168
  id: string;
94367
96169
  ip_adres: string | null;
94368
96170
  laatst_gezien: string | null;
@@ -94384,6 +96186,7 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
94384
96186
  agent_id?: string | null;
94385
96187
  created_at?: string;
94386
96188
  driver?: string;
96189
+ extern_printer_id?: string | null;
94387
96190
  id?: string;
94388
96191
  ip_adres?: string | null;
94389
96192
  laatst_gezien?: string | null;
@@ -94405,6 +96208,7 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
94405
96208
  agent_id?: string | null;
94406
96209
  created_at?: string;
94407
96210
  driver?: string;
96211
+ extern_printer_id?: string | null;
94408
96212
  id?: string;
94409
96213
  ip_adres?: string | null;
94410
96214
  laatst_gezien?: string | null;
@@ -98142,6 +99946,33 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
98142
99946
  referencedColumns: ["id"];
98143
99947
  }];
98144
99948
  };
99949
+ user_module_permissions: {
99950
+ Row: {
99951
+ created_at: string;
99952
+ id: string;
99953
+ module_id: string;
99954
+ permission: string;
99955
+ updated_at: string;
99956
+ user_id: string;
99957
+ };
99958
+ Insert: {
99959
+ created_at?: string;
99960
+ id?: string;
99961
+ module_id: string;
99962
+ permission: string;
99963
+ updated_at?: string;
99964
+ user_id: string;
99965
+ };
99966
+ Update: {
99967
+ created_at?: string;
99968
+ id?: string;
99969
+ module_id?: string;
99970
+ permission?: string;
99971
+ updated_at?: string;
99972
+ user_id?: string;
99973
+ };
99974
+ Relationships: [];
99975
+ };
98145
99976
  user_roles: {
98146
99977
  Row: {
98147
99978
  created_at: string;
@@ -100009,6 +101840,46 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
100009
101840
  };
100010
101841
  Returns: import("../integrations/supabase/types").Json;
100011
101842
  };
101843
+ claim_cloud_print_jobs: {
101844
+ Args: {
101845
+ _max?: number;
101846
+ };
101847
+ Returns: {
101848
+ agent_id: string | null;
101849
+ bron_job_id: string | null;
101850
+ created_at: string;
101851
+ documentnaam: string;
101852
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
101853
+ extern_job_id: string | null;
101854
+ foutmelding: string | null;
101855
+ gebruiker_id: string | null;
101856
+ gebruiker_naam: string;
101857
+ gestart_op: string | null;
101858
+ id: string;
101859
+ idempotentie_sleutel: string | null;
101860
+ is_herprint: boolean;
101861
+ kopieen: number;
101862
+ layout_id: string | null;
101863
+ opgepakt_op: string | null;
101864
+ paginas: number;
101865
+ payload: import("../integrations/supabase/types").Json;
101866
+ pdf_base64: string | null;
101867
+ pdf_url: string | null;
101868
+ pogingen: number;
101869
+ printer_id: string | null;
101870
+ render_html: string | null;
101871
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
101872
+ updated_at: string;
101873
+ volgende_poging: string | null;
101874
+ voltooid_op: string | null;
101875
+ }[];
101876
+ SetofOptions: {
101877
+ from: "*";
101878
+ to: "print_jobs";
101879
+ isOneToOne: false;
101880
+ isSetofReturn: true;
101881
+ };
101882
+ };
100012
101883
  claim_floriday_stock_queue: {
100013
101884
  Args: {
100014
101885
  p_limit?: number;
@@ -100099,22 +101970,27 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
100099
101970
  created_at: string;
100100
101971
  documentnaam: string;
100101
101972
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
101973
+ extern_job_id: string | null;
100102
101974
  foutmelding: string | null;
100103
101975
  gebruiker_id: string | null;
100104
101976
  gebruiker_naam: string;
100105
101977
  gestart_op: string | null;
100106
101978
  id: string;
101979
+ idempotentie_sleutel: string | null;
100107
101980
  is_herprint: boolean;
100108
101981
  kopieen: number;
100109
101982
  layout_id: string | null;
100110
101983
  opgepakt_op: string | null;
100111
101984
  paginas: number;
100112
101985
  payload: import("../integrations/supabase/types").Json;
101986
+ pdf_base64: string | null;
101987
+ pdf_url: string | null;
100113
101988
  pogingen: number;
100114
101989
  printer_id: string | null;
100115
101990
  render_html: string | null;
100116
101991
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
100117
101992
  updated_at: string;
101993
+ volgende_poging: string | null;
100118
101994
  voltooid_op: string | null;
100119
101995
  }[];
100120
101996
  SetofOptions: {
@@ -100160,6 +102036,10 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
100160
102036
  Args: never;
100161
102037
  Returns: undefined;
100162
102038
  };
102039
+ cleanup_voorraad_module_history: {
102040
+ Args: never;
102041
+ Returns: undefined;
102042
+ };
100163
102043
  complete_floriday_stock_queue: {
100164
102044
  Args: {
100165
102045
  p_attempt_id?: string;
@@ -100281,6 +102161,13 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
100281
102161
  };
100282
102162
  Returns: import("../integrations/supabase/types").Json;
100283
102163
  };
102164
+ effective_module_permission: {
102165
+ Args: {
102166
+ _module_id: string;
102167
+ _user_id: string;
102168
+ };
102169
+ Returns: string;
102170
+ };
100284
102171
  email_auth_decrypt: {
100285
102172
  Args: {
100286
102173
  cipher: string;
@@ -101084,6 +102971,51 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
101084
102971
  isSetofReturn: false;
101085
102972
  };
101086
102973
  };
102974
+ logistics_floriday_claim_pushes: {
102975
+ Args: {
102976
+ _lease_seconds?: number;
102977
+ _limit?: number;
102978
+ _worker?: string;
102979
+ };
102980
+ Returns: {
102981
+ attempts: number;
102982
+ fulfillment_order_id: string;
102983
+ id: string;
102984
+ last_sent_hash: string;
102985
+ order_ref: string;
102986
+ payload: import("../integrations/supabase/types").Json;
102987
+ payload_hash: string;
102988
+ revision: number;
102989
+ }[];
102990
+ };
102991
+ logistics_floriday_finish_push: {
102992
+ Args: {
102993
+ _error?: string;
102994
+ _fulfillment_order_id?: string;
102995
+ _id: string;
102996
+ _max_age_hours?: number;
102997
+ _max_attempts?: number;
102998
+ _ok: boolean;
102999
+ _permanent?: boolean;
103000
+ _revision: number;
103001
+ _sent_hash?: string;
103002
+ };
103003
+ Returns: string;
103004
+ };
103005
+ logistics_floriday_prune_pushes: {
103006
+ Args: {
103007
+ _days?: number;
103008
+ };
103009
+ Returns: number;
103010
+ };
103011
+ logistics_floriday_queue_push: {
103012
+ Args: {
103013
+ _order_ref: string;
103014
+ _payload?: import("../integrations/supabase/types").Json;
103015
+ _payload_hash?: string;
103016
+ };
103017
+ Returns: string;
103018
+ };
101087
103019
  logistics_live_carriers: {
101088
103020
  Args: {
101089
103021
  p_order_ref: string;
@@ -101374,6 +103306,13 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
101374
103306
  };
101375
103307
  Returns: undefined;
101376
103308
  };
103309
+ my_module_permissions: {
103310
+ Args: never;
103311
+ Returns: {
103312
+ module_id: string;
103313
+ permission: string;
103314
+ }[];
103315
+ };
101377
103316
  next_manufacture_partij: {
101378
103317
  Args: {
101379
103318
  _tenant_id: string;
@@ -101424,6 +103363,13 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
101424
103363
  };
101425
103364
  Returns: boolean;
101426
103365
  };
103366
+ opruim_print_historie: {
103367
+ Args: never;
103368
+ Returns: {
103369
+ ontdaan: number;
103370
+ verwijderd: number;
103371
+ }[];
103372
+ };
101427
103373
  order_number_prefix: {
101428
103374
  Args: {
101429
103375
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -101431,6 +103377,15 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
101431
103377
  };
101432
103378
  Returns: string;
101433
103379
  };
103380
+ pick_active_printers: {
103381
+ Args: never;
103382
+ Returns: {
103383
+ id: string;
103384
+ locatie: string;
103385
+ naam: string;
103386
+ online: boolean;
103387
+ }[];
103388
+ };
101434
103389
  pick_claim_document: {
101435
103390
  Args: {
101436
103391
  _queue_item_id: string;
@@ -101617,6 +103572,52 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
101617
103572
  };
101618
103573
  Returns: undefined;
101619
103574
  };
103575
+ pick_reset_print: {
103576
+ Args: {
103577
+ _queue_item_id: string;
103578
+ _session_id: string;
103579
+ };
103580
+ Returns: {
103581
+ announced_at: string;
103582
+ assigned_user_id: string | null;
103583
+ barcode: string | null;
103584
+ cancelled_at: string | null;
103585
+ cart_count: number;
103586
+ completed_at: string | null;
103587
+ country_code: string | null;
103588
+ created_at: string;
103589
+ customer_name: string | null;
103590
+ delivery_address: string | null;
103591
+ document_number: string | null;
103592
+ document_type_id: string | null;
103593
+ due_at: string | null;
103594
+ id: string;
103595
+ is_urgent: boolean;
103596
+ line_count: number;
103597
+ order_number: string | null;
103598
+ order_type: string | null;
103599
+ payload: import("../integrations/supabase/types").Json;
103600
+ print_count: number;
103601
+ print_job_id: string | null;
103602
+ printed_at: string | null;
103603
+ printed_by: string | null;
103604
+ printer_id: string | null;
103605
+ priority: number;
103606
+ reference: string | null;
103607
+ route: string | null;
103608
+ screen_id: string | null;
103609
+ station_id: string | null;
103610
+ status_id: string | null;
103611
+ updated_at: string;
103612
+ warnings: import("../integrations/supabase/types").Json;
103613
+ };
103614
+ SetofOptions: {
103615
+ from: "*";
103616
+ to: "pick_queue";
103617
+ isOneToOne: true;
103618
+ isSetofReturn: false;
103619
+ };
103620
+ };
101620
103621
  pick_station_dashboard: {
101621
103622
  Args: never;
101622
103623
  Returns: {
@@ -101763,6 +103764,12 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
101763
103764
  };
101764
103765
  Returns: undefined;
101765
103766
  };
103767
+ reset_stalled_floriday_stock_queue: {
103768
+ Args: {
103769
+ p_include_failed?: boolean;
103770
+ };
103771
+ Returns: number;
103772
+ };
101766
103773
  resolve_group_allocation: {
101767
103774
  Args: {
101768
103775
  _needed: number;
@@ -101807,14 +103814,28 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
101807
103814
  };
101808
103815
  Returns: import("../integrations/supabase/types").Json;
101809
103816
  };
103817
+ ruim_print_jobs_op: {
103818
+ Args: {
103819
+ _bewaar_dagen?: number;
103820
+ };
103821
+ Returns: number;
103822
+ };
101810
103823
  run_floriday_continuous_stock_sync: {
101811
103824
  Args: never;
101812
103825
  Returns: undefined;
101813
103826
  };
103827
+ run_floriday_stock_queue_process: {
103828
+ Args: never;
103829
+ Returns: undefined;
103830
+ };
101814
103831
  run_logistics_tasks_dispatch: {
101815
103832
  Args: never;
101816
103833
  Returns: undefined;
101817
103834
  };
103835
+ run_print_queue_ticks: {
103836
+ Args: never;
103837
+ Returns: number;
103838
+ };
101818
103839
  run_twinfield_queue_tick: {
101819
103840
  Args: never;
101820
103841
  Returns: undefined;
@@ -102202,6 +104223,15 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
102202
104223
  };
102203
104224
  Returns: undefined;
102204
104225
  };
104226
+ trade_item_stock_duplicates: {
104227
+ Args: never;
104228
+ Returns: {
104229
+ keys: string[];
104230
+ product_id: string;
104231
+ product_name: string;
104232
+ row_count: number;
104233
+ }[];
104234
+ };
102205
104235
  try_debtor_lock: {
102206
104236
  Args: {
102207
104237
  _group_key: string;
@@ -102251,7 +104281,7 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
102251
104281
  };
102252
104282
  Enums: {
102253
104283
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
102254
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
104284
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
102255
104285
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
102256
104286
  doc_orientation: "portrait" | "landscape";
102257
104287
  exact_env: "staging" | "live";
@@ -103969,7 +105999,7 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
103969
105999
  city: string | null;
103970
106000
  country: string | null;
103971
106001
  created_at: string;
103972
- customer_id: string | null;
106002
+ customer_id: string;
103973
106003
  external_key: string | null;
103974
106004
  external_provider: string | null;
103975
106005
  floriday_location_id: string | null;
@@ -103993,7 +106023,7 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
103993
106023
  city?: string | null;
103994
106024
  country?: string | null;
103995
106025
  created_at?: string;
103996
- customer_id?: string | null;
106026
+ customer_id: string;
103997
106027
  external_key?: string | null;
103998
106028
  external_provider?: string | null;
103999
106029
  floriday_location_id?: string | null;
@@ -104017,7 +106047,7 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
104017
106047
  city?: string | null;
104018
106048
  country?: string | null;
104019
106049
  created_at?: string;
104020
- customer_id?: string | null;
106050
+ customer_id?: string;
104021
106051
  external_key?: string | null;
104022
106052
  external_provider?: string | null;
104023
106053
  floriday_location_id?: string | null;
@@ -110777,6 +112807,69 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
110777
112807
  };
110778
112808
  Relationships: [];
110779
112809
  };
112810
+ logistics_floriday_pushes: {
112811
+ Row: {
112812
+ attempts: number;
112813
+ created_at: string;
112814
+ first_queued_at: string;
112815
+ fulfillment_order_id: string | null;
112816
+ id: string;
112817
+ last_error: string | null;
112818
+ last_error_at: string | null;
112819
+ last_sent_hash: string | null;
112820
+ locked_by: string | null;
112821
+ locked_until: string | null;
112822
+ next_attempt_at: string;
112823
+ order_ref: string;
112824
+ payload: import("../integrations/supabase/types").Json;
112825
+ payload_hash: string | null;
112826
+ revision: number;
112827
+ sent_at: string | null;
112828
+ status: string;
112829
+ updated_at: string;
112830
+ };
112831
+ Insert: {
112832
+ attempts?: number;
112833
+ created_at?: string;
112834
+ first_queued_at?: string;
112835
+ fulfillment_order_id?: string | null;
112836
+ id?: string;
112837
+ last_error?: string | null;
112838
+ last_error_at?: string | null;
112839
+ last_sent_hash?: string | null;
112840
+ locked_by?: string | null;
112841
+ locked_until?: string | null;
112842
+ next_attempt_at?: string;
112843
+ order_ref: string;
112844
+ payload?: import("../integrations/supabase/types").Json;
112845
+ payload_hash?: string | null;
112846
+ revision?: number;
112847
+ sent_at?: string | null;
112848
+ status?: string;
112849
+ updated_at?: string;
112850
+ };
112851
+ Update: {
112852
+ attempts?: number;
112853
+ created_at?: string;
112854
+ first_queued_at?: string;
112855
+ fulfillment_order_id?: string | null;
112856
+ id?: string;
112857
+ last_error?: string | null;
112858
+ last_error_at?: string | null;
112859
+ last_sent_hash?: string | null;
112860
+ locked_by?: string | null;
112861
+ locked_until?: string | null;
112862
+ next_attempt_at?: string;
112863
+ order_ref?: string;
112864
+ payload?: import("../integrations/supabase/types").Json;
112865
+ payload_hash?: string | null;
112866
+ revision?: number;
112867
+ sent_at?: string | null;
112868
+ status?: string;
112869
+ updated_at?: string;
112870
+ };
112871
+ Relationships: [];
112872
+ };
110780
112873
  logistics_formulas: {
110781
112874
  Row: {
110782
112875
  created_at: string;
@@ -111640,14 +113733,17 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
111640
113733
  };
111641
113734
  mailbox_messages: {
111642
113735
  Row: {
113736
+ attachments: import("../integrations/supabase/types").Json;
111643
113737
  body_html: string | null;
111644
113738
  body_text: string | null;
113739
+ cc_recipients: import("../integrations/supabase/types").Json;
111645
113740
  connection_id: string | null;
111646
113741
  created_at: string;
111647
113742
  error_message: string | null;
111648
113743
  external_id: string | null;
111649
113744
  from_email: string | null;
111650
113745
  from_name: string | null;
113746
+ has_attachments: boolean;
111651
113747
  id: string;
111652
113748
  message_id: string | null;
111653
113749
  profile_id: string | null;
@@ -111655,18 +113751,22 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
111655
113751
  received_at: string | null;
111656
113752
  status: string;
111657
113753
  subject: string | null;
113754
+ to_recipients: import("../integrations/supabase/types").Json;
111658
113755
  uid: number | null;
111659
113756
  updated_at: string;
111660
113757
  };
111661
113758
  Insert: {
113759
+ attachments?: import("../integrations/supabase/types").Json;
111662
113760
  body_html?: string | null;
111663
113761
  body_text?: string | null;
113762
+ cc_recipients?: import("../integrations/supabase/types").Json;
111664
113763
  connection_id?: string | null;
111665
113764
  created_at?: string;
111666
113765
  error_message?: string | null;
111667
113766
  external_id?: string | null;
111668
113767
  from_email?: string | null;
111669
113768
  from_name?: string | null;
113769
+ has_attachments?: boolean;
111670
113770
  id?: string;
111671
113771
  message_id?: string | null;
111672
113772
  profile_id?: string | null;
@@ -111674,18 +113774,22 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
111674
113774
  received_at?: string | null;
111675
113775
  status?: string;
111676
113776
  subject?: string | null;
113777
+ to_recipients?: import("../integrations/supabase/types").Json;
111677
113778
  uid?: number | null;
111678
113779
  updated_at?: string;
111679
113780
  };
111680
113781
  Update: {
113782
+ attachments?: import("../integrations/supabase/types").Json;
111681
113783
  body_html?: string | null;
111682
113784
  body_text?: string | null;
113785
+ cc_recipients?: import("../integrations/supabase/types").Json;
111683
113786
  connection_id?: string | null;
111684
113787
  created_at?: string;
111685
113788
  error_message?: string | null;
111686
113789
  external_id?: string | null;
111687
113790
  from_email?: string | null;
111688
113791
  from_name?: string | null;
113792
+ has_attachments?: boolean;
111689
113793
  id?: string;
111690
113794
  message_id?: string | null;
111691
113795
  profile_id?: string | null;
@@ -111693,6 +113797,7 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
111693
113797
  received_at?: string | null;
111694
113798
  status?: string;
111695
113799
  subject?: string | null;
113800
+ to_recipients?: import("../integrations/supabase/types").Json;
111696
113801
  uid?: number | null;
111697
113802
  updated_at?: string;
111698
113803
  };
@@ -112100,6 +114205,36 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
112100
114205
  };
112101
114206
  Relationships: [];
112102
114207
  };
114208
+ module_registry: {
114209
+ Row: {
114210
+ created_at: string;
114211
+ is_active: boolean;
114212
+ last_seen_at: string;
114213
+ module_id: string;
114214
+ name: string;
114215
+ shell_id: string | null;
114216
+ sort_order: number | null;
114217
+ };
114218
+ Insert: {
114219
+ created_at?: string;
114220
+ is_active?: boolean;
114221
+ last_seen_at?: string;
114222
+ module_id: string;
114223
+ name: string;
114224
+ shell_id?: string | null;
114225
+ sort_order?: number | null;
114226
+ };
114227
+ Update: {
114228
+ created_at?: string;
114229
+ is_active?: boolean;
114230
+ last_seen_at?: string;
114231
+ module_id?: string;
114232
+ name?: string;
114233
+ shell_id?: string | null;
114234
+ sort_order?: number | null;
114235
+ };
114236
+ Relationships: [];
114237
+ };
112103
114238
  module_runtime_config: {
112104
114239
  Row: {
112105
114240
  key: string;
@@ -114579,22 +116714,27 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
114579
116714
  created_at: string;
114580
116715
  documentnaam: string;
114581
116716
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
116717
+ extern_job_id: string | null;
114582
116718
  foutmelding: string | null;
114583
116719
  gebruiker_id: string | null;
114584
116720
  gebruiker_naam: string;
114585
116721
  gestart_op: string | null;
114586
116722
  id: string;
116723
+ idempotentie_sleutel: string | null;
114587
116724
  is_herprint: boolean;
114588
116725
  kopieen: number;
114589
116726
  layout_id: string | null;
114590
116727
  opgepakt_op: string | null;
114591
116728
  paginas: number;
114592
116729
  payload: import("../integrations/supabase/types").Json;
116730
+ pdf_base64: string | null;
116731
+ pdf_url: string | null;
114593
116732
  pogingen: number;
114594
116733
  printer_id: string | null;
114595
116734
  render_html: string | null;
114596
116735
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
114597
116736
  updated_at: string;
116737
+ volgende_poging: string | null;
114598
116738
  voltooid_op: string | null;
114599
116739
  };
114600
116740
  Insert: {
@@ -114603,22 +116743,27 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
114603
116743
  created_at?: string;
114604
116744
  documentnaam?: string;
114605
116745
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
116746
+ extern_job_id?: string | null;
114606
116747
  foutmelding?: string | null;
114607
116748
  gebruiker_id?: string | null;
114608
116749
  gebruiker_naam?: string;
114609
116750
  gestart_op?: string | null;
114610
116751
  id?: string;
116752
+ idempotentie_sleutel?: string | null;
114611
116753
  is_herprint?: boolean;
114612
116754
  kopieen?: number;
114613
116755
  layout_id?: string | null;
114614
116756
  opgepakt_op?: string | null;
114615
116757
  paginas?: number;
114616
116758
  payload?: import("../integrations/supabase/types").Json;
116759
+ pdf_base64?: string | null;
116760
+ pdf_url?: string | null;
114617
116761
  pogingen?: number;
114618
116762
  printer_id?: string | null;
114619
116763
  render_html?: string | null;
114620
116764
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
114621
116765
  updated_at?: string;
116766
+ volgende_poging?: string | null;
114622
116767
  voltooid_op?: string | null;
114623
116768
  };
114624
116769
  Update: {
@@ -114627,22 +116772,27 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
114627
116772
  created_at?: string;
114628
116773
  documentnaam?: string;
114629
116774
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
116775
+ extern_job_id?: string | null;
114630
116776
  foutmelding?: string | null;
114631
116777
  gebruiker_id?: string | null;
114632
116778
  gebruiker_naam?: string;
114633
116779
  gestart_op?: string | null;
114634
116780
  id?: string;
116781
+ idempotentie_sleutel?: string | null;
114635
116782
  is_herprint?: boolean;
114636
116783
  kopieen?: number;
114637
116784
  layout_id?: string | null;
114638
116785
  opgepakt_op?: string | null;
114639
116786
  paginas?: number;
114640
116787
  payload?: import("../integrations/supabase/types").Json;
116788
+ pdf_base64?: string | null;
116789
+ pdf_url?: string | null;
114641
116790
  pogingen?: number;
114642
116791
  printer_id?: string | null;
114643
116792
  render_html?: string | null;
114644
116793
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
114645
116794
  updated_at?: string;
116795
+ volgende_poging?: string | null;
114646
116796
  voltooid_op?: string | null;
114647
116797
  };
114648
116798
  Relationships: [{
@@ -114665,6 +116815,63 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
114665
116815
  referencedColumns: ["id"];
114666
116816
  }];
114667
116817
  };
116818
+ print_queue_runners: {
116819
+ Row: {
116820
+ actief: boolean;
116821
+ basis_url: string;
116822
+ created_at: string;
116823
+ id: string;
116824
+ laatst_gezien: string;
116825
+ tick_sleutel: string;
116826
+ updated_at: string;
116827
+ };
116828
+ Insert: {
116829
+ actief?: boolean;
116830
+ basis_url: string;
116831
+ created_at?: string;
116832
+ id?: string;
116833
+ laatst_gezien?: string;
116834
+ tick_sleutel?: string;
116835
+ updated_at?: string;
116836
+ };
116837
+ Update: {
116838
+ actief?: boolean;
116839
+ basis_url?: string;
116840
+ created_at?: string;
116841
+ id?: string;
116842
+ laatst_gezien?: string;
116843
+ tick_sleutel?: string;
116844
+ updated_at?: string;
116845
+ };
116846
+ Relationships: [];
116847
+ };
116848
+ print_queue_settings: {
116849
+ Row: {
116850
+ bewaar_bestanden_dagen: number;
116851
+ bewaar_opdrachten_dagen: number;
116852
+ created_at: string;
116853
+ dubbel_venster_minuten: number;
116854
+ id: string;
116855
+ updated_at: string;
116856
+ };
116857
+ Insert: {
116858
+ bewaar_bestanden_dagen?: number;
116859
+ bewaar_opdrachten_dagen?: number;
116860
+ created_at?: string;
116861
+ dubbel_venster_minuten?: number;
116862
+ id?: string;
116863
+ updated_at?: string;
116864
+ };
116865
+ Update: {
116866
+ bewaar_bestanden_dagen?: number;
116867
+ bewaar_opdrachten_dagen?: number;
116868
+ created_at?: string;
116869
+ dubbel_venster_minuten?: number;
116870
+ id?: string;
116871
+ updated_at?: string;
116872
+ };
116873
+ Relationships: [];
116874
+ };
114668
116875
  print_rules: {
114669
116876
  Row: {
114670
116877
  actief: boolean;
@@ -114825,6 +117032,7 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
114825
117032
  agent_id: string | null;
114826
117033
  created_at: string;
114827
117034
  driver: string;
117035
+ extern_printer_id: string | null;
114828
117036
  id: string;
114829
117037
  ip_adres: string | null;
114830
117038
  laatst_gezien: string | null;
@@ -114846,6 +117054,7 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
114846
117054
  agent_id?: string | null;
114847
117055
  created_at?: string;
114848
117056
  driver?: string;
117057
+ extern_printer_id?: string | null;
114849
117058
  id?: string;
114850
117059
  ip_adres?: string | null;
114851
117060
  laatst_gezien?: string | null;
@@ -114867,6 +117076,7 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
114867
117076
  agent_id?: string | null;
114868
117077
  created_at?: string;
114869
117078
  driver?: string;
117079
+ extern_printer_id?: string | null;
114870
117080
  id?: string;
114871
117081
  ip_adres?: string | null;
114872
117082
  laatst_gezien?: string | null;
@@ -118604,6 +120814,33 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
118604
120814
  referencedColumns: ["id"];
118605
120815
  }];
118606
120816
  };
120817
+ user_module_permissions: {
120818
+ Row: {
120819
+ created_at: string;
120820
+ id: string;
120821
+ module_id: string;
120822
+ permission: string;
120823
+ updated_at: string;
120824
+ user_id: string;
120825
+ };
120826
+ Insert: {
120827
+ created_at?: string;
120828
+ id?: string;
120829
+ module_id: string;
120830
+ permission: string;
120831
+ updated_at?: string;
120832
+ user_id: string;
120833
+ };
120834
+ Update: {
120835
+ created_at?: string;
120836
+ id?: string;
120837
+ module_id?: string;
120838
+ permission?: string;
120839
+ updated_at?: string;
120840
+ user_id?: string;
120841
+ };
120842
+ Relationships: [];
120843
+ };
118607
120844
  user_roles: {
118608
120845
  Row: {
118609
120846
  created_at: string;
@@ -120471,6 +122708,46 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
120471
122708
  };
120472
122709
  Returns: import("../integrations/supabase/types").Json;
120473
122710
  };
122711
+ claim_cloud_print_jobs: {
122712
+ Args: {
122713
+ _max?: number;
122714
+ };
122715
+ Returns: {
122716
+ agent_id: string | null;
122717
+ bron_job_id: string | null;
122718
+ created_at: string;
122719
+ documentnaam: string;
122720
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
122721
+ extern_job_id: string | null;
122722
+ foutmelding: string | null;
122723
+ gebruiker_id: string | null;
122724
+ gebruiker_naam: string;
122725
+ gestart_op: string | null;
122726
+ id: string;
122727
+ idempotentie_sleutel: string | null;
122728
+ is_herprint: boolean;
122729
+ kopieen: number;
122730
+ layout_id: string | null;
122731
+ opgepakt_op: string | null;
122732
+ paginas: number;
122733
+ payload: import("../integrations/supabase/types").Json;
122734
+ pdf_base64: string | null;
122735
+ pdf_url: string | null;
122736
+ pogingen: number;
122737
+ printer_id: string | null;
122738
+ render_html: string | null;
122739
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
122740
+ updated_at: string;
122741
+ volgende_poging: string | null;
122742
+ voltooid_op: string | null;
122743
+ }[];
122744
+ SetofOptions: {
122745
+ from: "*";
122746
+ to: "print_jobs";
122747
+ isOneToOne: false;
122748
+ isSetofReturn: true;
122749
+ };
122750
+ };
120474
122751
  claim_floriday_stock_queue: {
120475
122752
  Args: {
120476
122753
  p_limit?: number;
@@ -120561,22 +122838,27 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
120561
122838
  created_at: string;
120562
122839
  documentnaam: string;
120563
122840
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
122841
+ extern_job_id: string | null;
120564
122842
  foutmelding: string | null;
120565
122843
  gebruiker_id: string | null;
120566
122844
  gebruiker_naam: string;
120567
122845
  gestart_op: string | null;
120568
122846
  id: string;
122847
+ idempotentie_sleutel: string | null;
120569
122848
  is_herprint: boolean;
120570
122849
  kopieen: number;
120571
122850
  layout_id: string | null;
120572
122851
  opgepakt_op: string | null;
120573
122852
  paginas: number;
120574
122853
  payload: import("../integrations/supabase/types").Json;
122854
+ pdf_base64: string | null;
122855
+ pdf_url: string | null;
120575
122856
  pogingen: number;
120576
122857
  printer_id: string | null;
120577
122858
  render_html: string | null;
120578
122859
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
120579
122860
  updated_at: string;
122861
+ volgende_poging: string | null;
120580
122862
  voltooid_op: string | null;
120581
122863
  }[];
120582
122864
  SetofOptions: {
@@ -120622,6 +122904,10 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
120622
122904
  Args: never;
120623
122905
  Returns: undefined;
120624
122906
  };
122907
+ cleanup_voorraad_module_history: {
122908
+ Args: never;
122909
+ Returns: undefined;
122910
+ };
120625
122911
  complete_floriday_stock_queue: {
120626
122912
  Args: {
120627
122913
  p_attempt_id?: string;
@@ -120743,6 +123029,13 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
120743
123029
  };
120744
123030
  Returns: import("../integrations/supabase/types").Json;
120745
123031
  };
123032
+ effective_module_permission: {
123033
+ Args: {
123034
+ _module_id: string;
123035
+ _user_id: string;
123036
+ };
123037
+ Returns: string;
123038
+ };
120746
123039
  email_auth_decrypt: {
120747
123040
  Args: {
120748
123041
  cipher: string;
@@ -121546,6 +123839,51 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
121546
123839
  isSetofReturn: false;
121547
123840
  };
121548
123841
  };
123842
+ logistics_floriday_claim_pushes: {
123843
+ Args: {
123844
+ _lease_seconds?: number;
123845
+ _limit?: number;
123846
+ _worker?: string;
123847
+ };
123848
+ Returns: {
123849
+ attempts: number;
123850
+ fulfillment_order_id: string;
123851
+ id: string;
123852
+ last_sent_hash: string;
123853
+ order_ref: string;
123854
+ payload: import("../integrations/supabase/types").Json;
123855
+ payload_hash: string;
123856
+ revision: number;
123857
+ }[];
123858
+ };
123859
+ logistics_floriday_finish_push: {
123860
+ Args: {
123861
+ _error?: string;
123862
+ _fulfillment_order_id?: string;
123863
+ _id: string;
123864
+ _max_age_hours?: number;
123865
+ _max_attempts?: number;
123866
+ _ok: boolean;
123867
+ _permanent?: boolean;
123868
+ _revision: number;
123869
+ _sent_hash?: string;
123870
+ };
123871
+ Returns: string;
123872
+ };
123873
+ logistics_floriday_prune_pushes: {
123874
+ Args: {
123875
+ _days?: number;
123876
+ };
123877
+ Returns: number;
123878
+ };
123879
+ logistics_floriday_queue_push: {
123880
+ Args: {
123881
+ _order_ref: string;
123882
+ _payload?: import("../integrations/supabase/types").Json;
123883
+ _payload_hash?: string;
123884
+ };
123885
+ Returns: string;
123886
+ };
121549
123887
  logistics_live_carriers: {
121550
123888
  Args: {
121551
123889
  p_order_ref: string;
@@ -121836,6 +124174,13 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
121836
124174
  };
121837
124175
  Returns: undefined;
121838
124176
  };
124177
+ my_module_permissions: {
124178
+ Args: never;
124179
+ Returns: {
124180
+ module_id: string;
124181
+ permission: string;
124182
+ }[];
124183
+ };
121839
124184
  next_manufacture_partij: {
121840
124185
  Args: {
121841
124186
  _tenant_id: string;
@@ -121886,6 +124231,13 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
121886
124231
  };
121887
124232
  Returns: boolean;
121888
124233
  };
124234
+ opruim_print_historie: {
124235
+ Args: never;
124236
+ Returns: {
124237
+ ontdaan: number;
124238
+ verwijderd: number;
124239
+ }[];
124240
+ };
121889
124241
  order_number_prefix: {
121890
124242
  Args: {
121891
124243
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -121893,6 +124245,15 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
121893
124245
  };
121894
124246
  Returns: string;
121895
124247
  };
124248
+ pick_active_printers: {
124249
+ Args: never;
124250
+ Returns: {
124251
+ id: string;
124252
+ locatie: string;
124253
+ naam: string;
124254
+ online: boolean;
124255
+ }[];
124256
+ };
121896
124257
  pick_claim_document: {
121897
124258
  Args: {
121898
124259
  _queue_item_id: string;
@@ -122079,6 +124440,52 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
122079
124440
  };
122080
124441
  Returns: undefined;
122081
124442
  };
124443
+ pick_reset_print: {
124444
+ Args: {
124445
+ _queue_item_id: string;
124446
+ _session_id: string;
124447
+ };
124448
+ Returns: {
124449
+ announced_at: string;
124450
+ assigned_user_id: string | null;
124451
+ barcode: string | null;
124452
+ cancelled_at: string | null;
124453
+ cart_count: number;
124454
+ completed_at: string | null;
124455
+ country_code: string | null;
124456
+ created_at: string;
124457
+ customer_name: string | null;
124458
+ delivery_address: string | null;
124459
+ document_number: string | null;
124460
+ document_type_id: string | null;
124461
+ due_at: string | null;
124462
+ id: string;
124463
+ is_urgent: boolean;
124464
+ line_count: number;
124465
+ order_number: string | null;
124466
+ order_type: string | null;
124467
+ payload: import("../integrations/supabase/types").Json;
124468
+ print_count: number;
124469
+ print_job_id: string | null;
124470
+ printed_at: string | null;
124471
+ printed_by: string | null;
124472
+ printer_id: string | null;
124473
+ priority: number;
124474
+ reference: string | null;
124475
+ route: string | null;
124476
+ screen_id: string | null;
124477
+ station_id: string | null;
124478
+ status_id: string | null;
124479
+ updated_at: string;
124480
+ warnings: import("../integrations/supabase/types").Json;
124481
+ };
124482
+ SetofOptions: {
124483
+ from: "*";
124484
+ to: "pick_queue";
124485
+ isOneToOne: true;
124486
+ isSetofReturn: false;
124487
+ };
124488
+ };
122082
124489
  pick_station_dashboard: {
122083
124490
  Args: never;
122084
124491
  Returns: {
@@ -122225,6 +124632,12 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
122225
124632
  };
122226
124633
  Returns: undefined;
122227
124634
  };
124635
+ reset_stalled_floriday_stock_queue: {
124636
+ Args: {
124637
+ p_include_failed?: boolean;
124638
+ };
124639
+ Returns: number;
124640
+ };
122228
124641
  resolve_group_allocation: {
122229
124642
  Args: {
122230
124643
  _needed: number;
@@ -122269,14 +124682,28 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
122269
124682
  };
122270
124683
  Returns: import("../integrations/supabase/types").Json;
122271
124684
  };
124685
+ ruim_print_jobs_op: {
124686
+ Args: {
124687
+ _bewaar_dagen?: number;
124688
+ };
124689
+ Returns: number;
124690
+ };
122272
124691
  run_floriday_continuous_stock_sync: {
122273
124692
  Args: never;
122274
124693
  Returns: undefined;
122275
124694
  };
124695
+ run_floriday_stock_queue_process: {
124696
+ Args: never;
124697
+ Returns: undefined;
124698
+ };
122276
124699
  run_logistics_tasks_dispatch: {
122277
124700
  Args: never;
122278
124701
  Returns: undefined;
122279
124702
  };
124703
+ run_print_queue_ticks: {
124704
+ Args: never;
124705
+ Returns: number;
124706
+ };
122280
124707
  run_twinfield_queue_tick: {
122281
124708
  Args: never;
122282
124709
  Returns: undefined;
@@ -122664,6 +125091,15 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
122664
125091
  };
122665
125092
  Returns: undefined;
122666
125093
  };
125094
+ trade_item_stock_duplicates: {
125095
+ Args: never;
125096
+ Returns: {
125097
+ keys: string[];
125098
+ product_id: string;
125099
+ product_name: string;
125100
+ row_count: number;
125101
+ }[];
125102
+ };
122667
125103
  try_debtor_lock: {
122668
125104
  Args: {
122669
125105
  _group_key: string;
@@ -122713,7 +125149,7 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
122713
125149
  };
122714
125150
  Enums: {
122715
125151
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
122716
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
125152
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
122717
125153
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
122718
125154
  doc_orientation: "portrait" | "landscape";
122719
125155
  exact_env: "staging" | "live";