@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
@@ -1694,7 +1694,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
1694
1694
  city: string | null;
1695
1695
  country: string | null;
1696
1696
  created_at: string;
1697
- customer_id: string | null;
1697
+ customer_id: string;
1698
1698
  external_key: string | null;
1699
1699
  external_provider: string | null;
1700
1700
  floriday_location_id: string | null;
@@ -1718,7 +1718,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
1718
1718
  city?: string | null;
1719
1719
  country?: string | null;
1720
1720
  created_at?: string;
1721
- customer_id?: string | null;
1721
+ customer_id: string;
1722
1722
  external_key?: string | null;
1723
1723
  external_provider?: string | null;
1724
1724
  floriday_location_id?: string | null;
@@ -1742,7 +1742,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
1742
1742
  city?: string | null;
1743
1743
  country?: string | null;
1744
1744
  created_at?: string;
1745
- customer_id?: string | null;
1745
+ customer_id?: string;
1746
1746
  external_key?: string | null;
1747
1747
  external_provider?: string | null;
1748
1748
  floriday_location_id?: string | null;
@@ -8502,6 +8502,69 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
8502
8502
  };
8503
8503
  Relationships: [];
8504
8504
  };
8505
+ logistics_floriday_pushes: {
8506
+ Row: {
8507
+ attempts: number;
8508
+ created_at: string;
8509
+ first_queued_at: string;
8510
+ fulfillment_order_id: string | null;
8511
+ id: string;
8512
+ last_error: string | null;
8513
+ last_error_at: string | null;
8514
+ last_sent_hash: string | null;
8515
+ locked_by: string | null;
8516
+ locked_until: string | null;
8517
+ next_attempt_at: string;
8518
+ order_ref: string;
8519
+ payload: import("../integrations/supabase/types").Json;
8520
+ payload_hash: string | null;
8521
+ revision: number;
8522
+ sent_at: string | null;
8523
+ status: string;
8524
+ updated_at: string;
8525
+ };
8526
+ Insert: {
8527
+ attempts?: number;
8528
+ created_at?: string;
8529
+ first_queued_at?: string;
8530
+ fulfillment_order_id?: string | null;
8531
+ id?: string;
8532
+ last_error?: string | null;
8533
+ last_error_at?: string | null;
8534
+ last_sent_hash?: string | null;
8535
+ locked_by?: string | null;
8536
+ locked_until?: string | null;
8537
+ next_attempt_at?: string;
8538
+ order_ref: string;
8539
+ payload?: import("../integrations/supabase/types").Json;
8540
+ payload_hash?: string | null;
8541
+ revision?: number;
8542
+ sent_at?: string | null;
8543
+ status?: string;
8544
+ updated_at?: string;
8545
+ };
8546
+ Update: {
8547
+ attempts?: number;
8548
+ created_at?: string;
8549
+ first_queued_at?: string;
8550
+ fulfillment_order_id?: string | null;
8551
+ id?: string;
8552
+ last_error?: string | null;
8553
+ last_error_at?: string | null;
8554
+ last_sent_hash?: string | null;
8555
+ locked_by?: string | null;
8556
+ locked_until?: string | null;
8557
+ next_attempt_at?: string;
8558
+ order_ref?: string;
8559
+ payload?: import("../integrations/supabase/types").Json;
8560
+ payload_hash?: string | null;
8561
+ revision?: number;
8562
+ sent_at?: string | null;
8563
+ status?: string;
8564
+ updated_at?: string;
8565
+ };
8566
+ Relationships: [];
8567
+ };
8505
8568
  logistics_formulas: {
8506
8569
  Row: {
8507
8570
  created_at: string;
@@ -9365,14 +9428,17 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
9365
9428
  };
9366
9429
  mailbox_messages: {
9367
9430
  Row: {
9431
+ attachments: import("../integrations/supabase/types").Json;
9368
9432
  body_html: string | null;
9369
9433
  body_text: string | null;
9434
+ cc_recipients: import("../integrations/supabase/types").Json;
9370
9435
  connection_id: string | null;
9371
9436
  created_at: string;
9372
9437
  error_message: string | null;
9373
9438
  external_id: string | null;
9374
9439
  from_email: string | null;
9375
9440
  from_name: string | null;
9441
+ has_attachments: boolean;
9376
9442
  id: string;
9377
9443
  message_id: string | null;
9378
9444
  profile_id: string | null;
@@ -9380,18 +9446,22 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
9380
9446
  received_at: string | null;
9381
9447
  status: string;
9382
9448
  subject: string | null;
9449
+ to_recipients: import("../integrations/supabase/types").Json;
9383
9450
  uid: number | null;
9384
9451
  updated_at: string;
9385
9452
  };
9386
9453
  Insert: {
9454
+ attachments?: import("../integrations/supabase/types").Json;
9387
9455
  body_html?: string | null;
9388
9456
  body_text?: string | null;
9457
+ cc_recipients?: import("../integrations/supabase/types").Json;
9389
9458
  connection_id?: string | null;
9390
9459
  created_at?: string;
9391
9460
  error_message?: string | null;
9392
9461
  external_id?: string | null;
9393
9462
  from_email?: string | null;
9394
9463
  from_name?: string | null;
9464
+ has_attachments?: boolean;
9395
9465
  id?: string;
9396
9466
  message_id?: string | null;
9397
9467
  profile_id?: string | null;
@@ -9399,18 +9469,22 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
9399
9469
  received_at?: string | null;
9400
9470
  status?: string;
9401
9471
  subject?: string | null;
9472
+ to_recipients?: import("../integrations/supabase/types").Json;
9402
9473
  uid?: number | null;
9403
9474
  updated_at?: string;
9404
9475
  };
9405
9476
  Update: {
9477
+ attachments?: import("../integrations/supabase/types").Json;
9406
9478
  body_html?: string | null;
9407
9479
  body_text?: string | null;
9480
+ cc_recipients?: import("../integrations/supabase/types").Json;
9408
9481
  connection_id?: string | null;
9409
9482
  created_at?: string;
9410
9483
  error_message?: string | null;
9411
9484
  external_id?: string | null;
9412
9485
  from_email?: string | null;
9413
9486
  from_name?: string | null;
9487
+ has_attachments?: boolean;
9414
9488
  id?: string;
9415
9489
  message_id?: string | null;
9416
9490
  profile_id?: string | null;
@@ -9418,6 +9492,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
9418
9492
  received_at?: string | null;
9419
9493
  status?: string;
9420
9494
  subject?: string | null;
9495
+ to_recipients?: import("../integrations/supabase/types").Json;
9421
9496
  uid?: number | null;
9422
9497
  updated_at?: string;
9423
9498
  };
@@ -9825,6 +9900,36 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
9825
9900
  };
9826
9901
  Relationships: [];
9827
9902
  };
9903
+ module_registry: {
9904
+ Row: {
9905
+ created_at: string;
9906
+ is_active: boolean;
9907
+ last_seen_at: string;
9908
+ module_id: string;
9909
+ name: string;
9910
+ shell_id: string | null;
9911
+ sort_order: number | null;
9912
+ };
9913
+ Insert: {
9914
+ created_at?: string;
9915
+ is_active?: boolean;
9916
+ last_seen_at?: string;
9917
+ module_id: string;
9918
+ name: string;
9919
+ shell_id?: string | null;
9920
+ sort_order?: number | null;
9921
+ };
9922
+ Update: {
9923
+ created_at?: string;
9924
+ is_active?: boolean;
9925
+ last_seen_at?: string;
9926
+ module_id?: string;
9927
+ name?: string;
9928
+ shell_id?: string | null;
9929
+ sort_order?: number | null;
9930
+ };
9931
+ Relationships: [];
9932
+ };
9828
9933
  module_runtime_config: {
9829
9934
  Row: {
9830
9935
  key: string;
@@ -12304,22 +12409,27 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
12304
12409
  created_at: string;
12305
12410
  documentnaam: string;
12306
12411
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12412
+ extern_job_id: string | null;
12307
12413
  foutmelding: string | null;
12308
12414
  gebruiker_id: string | null;
12309
12415
  gebruiker_naam: string;
12310
12416
  gestart_op: string | null;
12311
12417
  id: string;
12418
+ idempotentie_sleutel: string | null;
12312
12419
  is_herprint: boolean;
12313
12420
  kopieen: number;
12314
12421
  layout_id: string | null;
12315
12422
  opgepakt_op: string | null;
12316
12423
  paginas: number;
12317
12424
  payload: import("../integrations/supabase/types").Json;
12425
+ pdf_base64: string | null;
12426
+ pdf_url: string | null;
12318
12427
  pogingen: number;
12319
12428
  printer_id: string | null;
12320
12429
  render_html: string | null;
12321
12430
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12322
12431
  updated_at: string;
12432
+ volgende_poging: string | null;
12323
12433
  voltooid_op: string | null;
12324
12434
  };
12325
12435
  Insert: {
@@ -12328,22 +12438,27 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
12328
12438
  created_at?: string;
12329
12439
  documentnaam?: string;
12330
12440
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12441
+ extern_job_id?: string | null;
12331
12442
  foutmelding?: string | null;
12332
12443
  gebruiker_id?: string | null;
12333
12444
  gebruiker_naam?: string;
12334
12445
  gestart_op?: string | null;
12335
12446
  id?: string;
12447
+ idempotentie_sleutel?: string | null;
12336
12448
  is_herprint?: boolean;
12337
12449
  kopieen?: number;
12338
12450
  layout_id?: string | null;
12339
12451
  opgepakt_op?: string | null;
12340
12452
  paginas?: number;
12341
12453
  payload?: import("../integrations/supabase/types").Json;
12454
+ pdf_base64?: string | null;
12455
+ pdf_url?: string | null;
12342
12456
  pogingen?: number;
12343
12457
  printer_id?: string | null;
12344
12458
  render_html?: string | null;
12345
12459
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12346
12460
  updated_at?: string;
12461
+ volgende_poging?: string | null;
12347
12462
  voltooid_op?: string | null;
12348
12463
  };
12349
12464
  Update: {
@@ -12352,22 +12467,27 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
12352
12467
  created_at?: string;
12353
12468
  documentnaam?: string;
12354
12469
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12470
+ extern_job_id?: string | null;
12355
12471
  foutmelding?: string | null;
12356
12472
  gebruiker_id?: string | null;
12357
12473
  gebruiker_naam?: string;
12358
12474
  gestart_op?: string | null;
12359
12475
  id?: string;
12476
+ idempotentie_sleutel?: string | null;
12360
12477
  is_herprint?: boolean;
12361
12478
  kopieen?: number;
12362
12479
  layout_id?: string | null;
12363
12480
  opgepakt_op?: string | null;
12364
12481
  paginas?: number;
12365
12482
  payload?: import("../integrations/supabase/types").Json;
12483
+ pdf_base64?: string | null;
12484
+ pdf_url?: string | null;
12366
12485
  pogingen?: number;
12367
12486
  printer_id?: string | null;
12368
12487
  render_html?: string | null;
12369
12488
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12370
12489
  updated_at?: string;
12490
+ volgende_poging?: string | null;
12371
12491
  voltooid_op?: string | null;
12372
12492
  };
12373
12493
  Relationships: [{
@@ -12390,6 +12510,63 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
12390
12510
  referencedColumns: ["id"];
12391
12511
  }];
12392
12512
  };
12513
+ print_queue_runners: {
12514
+ Row: {
12515
+ actief: boolean;
12516
+ basis_url: string;
12517
+ created_at: string;
12518
+ id: string;
12519
+ laatst_gezien: string;
12520
+ tick_sleutel: string;
12521
+ updated_at: string;
12522
+ };
12523
+ Insert: {
12524
+ actief?: boolean;
12525
+ basis_url: string;
12526
+ created_at?: string;
12527
+ id?: string;
12528
+ laatst_gezien?: string;
12529
+ tick_sleutel?: string;
12530
+ updated_at?: string;
12531
+ };
12532
+ Update: {
12533
+ actief?: boolean;
12534
+ basis_url?: string;
12535
+ created_at?: string;
12536
+ id?: string;
12537
+ laatst_gezien?: string;
12538
+ tick_sleutel?: string;
12539
+ updated_at?: string;
12540
+ };
12541
+ Relationships: [];
12542
+ };
12543
+ print_queue_settings: {
12544
+ Row: {
12545
+ bewaar_bestanden_dagen: number;
12546
+ bewaar_opdrachten_dagen: number;
12547
+ created_at: string;
12548
+ dubbel_venster_minuten: number;
12549
+ id: string;
12550
+ updated_at: string;
12551
+ };
12552
+ Insert: {
12553
+ bewaar_bestanden_dagen?: number;
12554
+ bewaar_opdrachten_dagen?: number;
12555
+ created_at?: string;
12556
+ dubbel_venster_minuten?: number;
12557
+ id?: string;
12558
+ updated_at?: string;
12559
+ };
12560
+ Update: {
12561
+ bewaar_bestanden_dagen?: number;
12562
+ bewaar_opdrachten_dagen?: number;
12563
+ created_at?: string;
12564
+ dubbel_venster_minuten?: number;
12565
+ id?: string;
12566
+ updated_at?: string;
12567
+ };
12568
+ Relationships: [];
12569
+ };
12393
12570
  print_rules: {
12394
12571
  Row: {
12395
12572
  actief: boolean;
@@ -12550,6 +12727,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
12550
12727
  agent_id: string | null;
12551
12728
  created_at: string;
12552
12729
  driver: string;
12730
+ extern_printer_id: string | null;
12553
12731
  id: string;
12554
12732
  ip_adres: string | null;
12555
12733
  laatst_gezien: string | null;
@@ -12571,6 +12749,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
12571
12749
  agent_id?: string | null;
12572
12750
  created_at?: string;
12573
12751
  driver?: string;
12752
+ extern_printer_id?: string | null;
12574
12753
  id?: string;
12575
12754
  ip_adres?: string | null;
12576
12755
  laatst_gezien?: string | null;
@@ -12592,6 +12771,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
12592
12771
  agent_id?: string | null;
12593
12772
  created_at?: string;
12594
12773
  driver?: string;
12774
+ extern_printer_id?: string | null;
12595
12775
  id?: string;
12596
12776
  ip_adres?: string | null;
12597
12777
  laatst_gezien?: string | null;
@@ -16329,6 +16509,33 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
16329
16509
  referencedColumns: ["id"];
16330
16510
  }];
16331
16511
  };
16512
+ user_module_permissions: {
16513
+ Row: {
16514
+ created_at: string;
16515
+ id: string;
16516
+ module_id: string;
16517
+ permission: string;
16518
+ updated_at: string;
16519
+ user_id: string;
16520
+ };
16521
+ Insert: {
16522
+ created_at?: string;
16523
+ id?: string;
16524
+ module_id: string;
16525
+ permission: string;
16526
+ updated_at?: string;
16527
+ user_id: string;
16528
+ };
16529
+ Update: {
16530
+ created_at?: string;
16531
+ id?: string;
16532
+ module_id?: string;
16533
+ permission?: string;
16534
+ updated_at?: string;
16535
+ user_id?: string;
16536
+ };
16537
+ Relationships: [];
16538
+ };
16332
16539
  user_roles: {
16333
16540
  Row: {
16334
16541
  created_at: string;
@@ -18196,6 +18403,46 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
18196
18403
  };
18197
18404
  Returns: import("../integrations/supabase/types").Json;
18198
18405
  };
18406
+ claim_cloud_print_jobs: {
18407
+ Args: {
18408
+ _max?: number;
18409
+ };
18410
+ Returns: {
18411
+ agent_id: string | null;
18412
+ bron_job_id: string | null;
18413
+ created_at: string;
18414
+ documentnaam: string;
18415
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
18416
+ extern_job_id: string | null;
18417
+ foutmelding: string | null;
18418
+ gebruiker_id: string | null;
18419
+ gebruiker_naam: string;
18420
+ gestart_op: string | null;
18421
+ id: string;
18422
+ idempotentie_sleutel: string | null;
18423
+ is_herprint: boolean;
18424
+ kopieen: number;
18425
+ layout_id: string | null;
18426
+ opgepakt_op: string | null;
18427
+ paginas: number;
18428
+ payload: import("../integrations/supabase/types").Json;
18429
+ pdf_base64: string | null;
18430
+ pdf_url: string | null;
18431
+ pogingen: number;
18432
+ printer_id: string | null;
18433
+ render_html: string | null;
18434
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
18435
+ updated_at: string;
18436
+ volgende_poging: string | null;
18437
+ voltooid_op: string | null;
18438
+ }[];
18439
+ SetofOptions: {
18440
+ from: "*";
18441
+ to: "print_jobs";
18442
+ isOneToOne: false;
18443
+ isSetofReturn: true;
18444
+ };
18445
+ };
18199
18446
  claim_floriday_stock_queue: {
18200
18447
  Args: {
18201
18448
  p_limit?: number;
@@ -18286,22 +18533,27 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
18286
18533
  created_at: string;
18287
18534
  documentnaam: string;
18288
18535
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
18536
+ extern_job_id: string | null;
18289
18537
  foutmelding: string | null;
18290
18538
  gebruiker_id: string | null;
18291
18539
  gebruiker_naam: string;
18292
18540
  gestart_op: string | null;
18293
18541
  id: string;
18542
+ idempotentie_sleutel: string | null;
18294
18543
  is_herprint: boolean;
18295
18544
  kopieen: number;
18296
18545
  layout_id: string | null;
18297
18546
  opgepakt_op: string | null;
18298
18547
  paginas: number;
18299
18548
  payload: import("../integrations/supabase/types").Json;
18549
+ pdf_base64: string | null;
18550
+ pdf_url: string | null;
18300
18551
  pogingen: number;
18301
18552
  printer_id: string | null;
18302
18553
  render_html: string | null;
18303
18554
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
18304
18555
  updated_at: string;
18556
+ volgende_poging: string | null;
18305
18557
  voltooid_op: string | null;
18306
18558
  }[];
18307
18559
  SetofOptions: {
@@ -18347,6 +18599,10 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
18347
18599
  Args: never;
18348
18600
  Returns: undefined;
18349
18601
  };
18602
+ cleanup_voorraad_module_history: {
18603
+ Args: never;
18604
+ Returns: undefined;
18605
+ };
18350
18606
  complete_floriday_stock_queue: {
18351
18607
  Args: {
18352
18608
  p_attempt_id?: string;
@@ -18468,6 +18724,13 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
18468
18724
  };
18469
18725
  Returns: import("../integrations/supabase/types").Json;
18470
18726
  };
18727
+ effective_module_permission: {
18728
+ Args: {
18729
+ _module_id: string;
18730
+ _user_id: string;
18731
+ };
18732
+ Returns: string;
18733
+ };
18471
18734
  email_auth_decrypt: {
18472
18735
  Args: {
18473
18736
  cipher: string;
@@ -19271,6 +19534,51 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
19271
19534
  isSetofReturn: false;
19272
19535
  };
19273
19536
  };
19537
+ logistics_floriday_claim_pushes: {
19538
+ Args: {
19539
+ _lease_seconds?: number;
19540
+ _limit?: number;
19541
+ _worker?: string;
19542
+ };
19543
+ Returns: {
19544
+ attempts: number;
19545
+ fulfillment_order_id: string;
19546
+ id: string;
19547
+ last_sent_hash: string;
19548
+ order_ref: string;
19549
+ payload: import("../integrations/supabase/types").Json;
19550
+ payload_hash: string;
19551
+ revision: number;
19552
+ }[];
19553
+ };
19554
+ logistics_floriday_finish_push: {
19555
+ Args: {
19556
+ _error?: string;
19557
+ _fulfillment_order_id?: string;
19558
+ _id: string;
19559
+ _max_age_hours?: number;
19560
+ _max_attempts?: number;
19561
+ _ok: boolean;
19562
+ _permanent?: boolean;
19563
+ _revision: number;
19564
+ _sent_hash?: string;
19565
+ };
19566
+ Returns: string;
19567
+ };
19568
+ logistics_floriday_prune_pushes: {
19569
+ Args: {
19570
+ _days?: number;
19571
+ };
19572
+ Returns: number;
19573
+ };
19574
+ logistics_floriday_queue_push: {
19575
+ Args: {
19576
+ _order_ref: string;
19577
+ _payload?: import("../integrations/supabase/types").Json;
19578
+ _payload_hash?: string;
19579
+ };
19580
+ Returns: string;
19581
+ };
19274
19582
  logistics_live_carriers: {
19275
19583
  Args: {
19276
19584
  p_order_ref: string;
@@ -19561,6 +19869,13 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
19561
19869
  };
19562
19870
  Returns: undefined;
19563
19871
  };
19872
+ my_module_permissions: {
19873
+ Args: never;
19874
+ Returns: {
19875
+ module_id: string;
19876
+ permission: string;
19877
+ }[];
19878
+ };
19564
19879
  next_manufacture_partij: {
19565
19880
  Args: {
19566
19881
  _tenant_id: string;
@@ -19611,6 +19926,13 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
19611
19926
  };
19612
19927
  Returns: boolean;
19613
19928
  };
19929
+ opruim_print_historie: {
19930
+ Args: never;
19931
+ Returns: {
19932
+ ontdaan: number;
19933
+ verwijderd: number;
19934
+ }[];
19935
+ };
19614
19936
  order_number_prefix: {
19615
19937
  Args: {
19616
19938
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -19618,6 +19940,15 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
19618
19940
  };
19619
19941
  Returns: string;
19620
19942
  };
19943
+ pick_active_printers: {
19944
+ Args: never;
19945
+ Returns: {
19946
+ id: string;
19947
+ locatie: string;
19948
+ naam: string;
19949
+ online: boolean;
19950
+ }[];
19951
+ };
19621
19952
  pick_claim_document: {
19622
19953
  Args: {
19623
19954
  _queue_item_id: string;
@@ -19804,6 +20135,52 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
19804
20135
  };
19805
20136
  Returns: undefined;
19806
20137
  };
20138
+ pick_reset_print: {
20139
+ Args: {
20140
+ _queue_item_id: string;
20141
+ _session_id: string;
20142
+ };
20143
+ Returns: {
20144
+ announced_at: string;
20145
+ assigned_user_id: string | null;
20146
+ barcode: string | null;
20147
+ cancelled_at: string | null;
20148
+ cart_count: number;
20149
+ completed_at: string | null;
20150
+ country_code: string | null;
20151
+ created_at: string;
20152
+ customer_name: string | null;
20153
+ delivery_address: string | null;
20154
+ document_number: string | null;
20155
+ document_type_id: string | null;
20156
+ due_at: string | null;
20157
+ id: string;
20158
+ is_urgent: boolean;
20159
+ line_count: number;
20160
+ order_number: string | null;
20161
+ order_type: string | null;
20162
+ payload: import("../integrations/supabase/types").Json;
20163
+ print_count: number;
20164
+ print_job_id: string | null;
20165
+ printed_at: string | null;
20166
+ printed_by: string | null;
20167
+ printer_id: string | null;
20168
+ priority: number;
20169
+ reference: string | null;
20170
+ route: string | null;
20171
+ screen_id: string | null;
20172
+ station_id: string | null;
20173
+ status_id: string | null;
20174
+ updated_at: string;
20175
+ warnings: import("../integrations/supabase/types").Json;
20176
+ };
20177
+ SetofOptions: {
20178
+ from: "*";
20179
+ to: "pick_queue";
20180
+ isOneToOne: true;
20181
+ isSetofReturn: false;
20182
+ };
20183
+ };
19807
20184
  pick_station_dashboard: {
19808
20185
  Args: never;
19809
20186
  Returns: {
@@ -19950,6 +20327,12 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
19950
20327
  };
19951
20328
  Returns: undefined;
19952
20329
  };
20330
+ reset_stalled_floriday_stock_queue: {
20331
+ Args: {
20332
+ p_include_failed?: boolean;
20333
+ };
20334
+ Returns: number;
20335
+ };
19953
20336
  resolve_group_allocation: {
19954
20337
  Args: {
19955
20338
  _needed: number;
@@ -19994,14 +20377,28 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
19994
20377
  };
19995
20378
  Returns: import("../integrations/supabase/types").Json;
19996
20379
  };
20380
+ ruim_print_jobs_op: {
20381
+ Args: {
20382
+ _bewaar_dagen?: number;
20383
+ };
20384
+ Returns: number;
20385
+ };
19997
20386
  run_floriday_continuous_stock_sync: {
19998
20387
  Args: never;
19999
20388
  Returns: undefined;
20000
20389
  };
20390
+ run_floriday_stock_queue_process: {
20391
+ Args: never;
20392
+ Returns: undefined;
20393
+ };
20001
20394
  run_logistics_tasks_dispatch: {
20002
20395
  Args: never;
20003
20396
  Returns: undefined;
20004
20397
  };
20398
+ run_print_queue_ticks: {
20399
+ Args: never;
20400
+ Returns: number;
20401
+ };
20005
20402
  run_twinfield_queue_tick: {
20006
20403
  Args: never;
20007
20404
  Returns: undefined;
@@ -20389,6 +20786,15 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
20389
20786
  };
20390
20787
  Returns: undefined;
20391
20788
  };
20789
+ trade_item_stock_duplicates: {
20790
+ Args: never;
20791
+ Returns: {
20792
+ keys: string[];
20793
+ product_id: string;
20794
+ product_name: string;
20795
+ row_count: number;
20796
+ }[];
20797
+ };
20392
20798
  try_debtor_lock: {
20393
20799
  Args: {
20394
20800
  _group_key: string;
@@ -20438,7 +20844,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
20438
20844
  };
20439
20845
  Enums: {
20440
20846
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
20441
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
20847
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
20442
20848
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
20443
20849
  doc_orientation: "portrait" | "landscape";
20444
20850
  exact_env: "staging" | "live";
@@ -22143,7 +22549,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
22143
22549
  city: string | null;
22144
22550
  country: string | null;
22145
22551
  created_at: string;
22146
- customer_id: string | null;
22552
+ customer_id: string;
22147
22553
  external_key: string | null;
22148
22554
  external_provider: string | null;
22149
22555
  floriday_location_id: string | null;
@@ -22167,7 +22573,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
22167
22573
  city?: string | null;
22168
22574
  country?: string | null;
22169
22575
  created_at?: string;
22170
- customer_id?: string | null;
22576
+ customer_id: string;
22171
22577
  external_key?: string | null;
22172
22578
  external_provider?: string | null;
22173
22579
  floriday_location_id?: string | null;
@@ -22191,7 +22597,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
22191
22597
  city?: string | null;
22192
22598
  country?: string | null;
22193
22599
  created_at?: string;
22194
- customer_id?: string | null;
22600
+ customer_id?: string;
22195
22601
  external_key?: string | null;
22196
22602
  external_provider?: string | null;
22197
22603
  floriday_location_id?: string | null;
@@ -28951,6 +29357,69 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
28951
29357
  };
28952
29358
  Relationships: [];
28953
29359
  };
29360
+ logistics_floriday_pushes: {
29361
+ Row: {
29362
+ attempts: number;
29363
+ created_at: string;
29364
+ first_queued_at: string;
29365
+ fulfillment_order_id: string | null;
29366
+ id: string;
29367
+ last_error: string | null;
29368
+ last_error_at: string | null;
29369
+ last_sent_hash: string | null;
29370
+ locked_by: string | null;
29371
+ locked_until: string | null;
29372
+ next_attempt_at: string;
29373
+ order_ref: string;
29374
+ payload: import("../integrations/supabase/types").Json;
29375
+ payload_hash: string | null;
29376
+ revision: number;
29377
+ sent_at: string | null;
29378
+ status: string;
29379
+ updated_at: string;
29380
+ };
29381
+ Insert: {
29382
+ attempts?: number;
29383
+ created_at?: string;
29384
+ first_queued_at?: string;
29385
+ fulfillment_order_id?: string | null;
29386
+ id?: string;
29387
+ last_error?: string | null;
29388
+ last_error_at?: string | null;
29389
+ last_sent_hash?: string | null;
29390
+ locked_by?: string | null;
29391
+ locked_until?: string | null;
29392
+ next_attempt_at?: string;
29393
+ order_ref: string;
29394
+ payload?: import("../integrations/supabase/types").Json;
29395
+ payload_hash?: string | null;
29396
+ revision?: number;
29397
+ sent_at?: string | null;
29398
+ status?: string;
29399
+ updated_at?: string;
29400
+ };
29401
+ Update: {
29402
+ attempts?: number;
29403
+ created_at?: string;
29404
+ first_queued_at?: string;
29405
+ fulfillment_order_id?: string | null;
29406
+ id?: string;
29407
+ last_error?: string | null;
29408
+ last_error_at?: string | null;
29409
+ last_sent_hash?: string | null;
29410
+ locked_by?: string | null;
29411
+ locked_until?: string | null;
29412
+ next_attempt_at?: string;
29413
+ order_ref?: string;
29414
+ payload?: import("../integrations/supabase/types").Json;
29415
+ payload_hash?: string | null;
29416
+ revision?: number;
29417
+ sent_at?: string | null;
29418
+ status?: string;
29419
+ updated_at?: string;
29420
+ };
29421
+ Relationships: [];
29422
+ };
28954
29423
  logistics_formulas: {
28955
29424
  Row: {
28956
29425
  created_at: string;
@@ -29814,14 +30283,17 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
29814
30283
  };
29815
30284
  mailbox_messages: {
29816
30285
  Row: {
30286
+ attachments: import("../integrations/supabase/types").Json;
29817
30287
  body_html: string | null;
29818
30288
  body_text: string | null;
30289
+ cc_recipients: import("../integrations/supabase/types").Json;
29819
30290
  connection_id: string | null;
29820
30291
  created_at: string;
29821
30292
  error_message: string | null;
29822
30293
  external_id: string | null;
29823
30294
  from_email: string | null;
29824
30295
  from_name: string | null;
30296
+ has_attachments: boolean;
29825
30297
  id: string;
29826
30298
  message_id: string | null;
29827
30299
  profile_id: string | null;
@@ -29829,18 +30301,22 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
29829
30301
  received_at: string | null;
29830
30302
  status: string;
29831
30303
  subject: string | null;
30304
+ to_recipients: import("../integrations/supabase/types").Json;
29832
30305
  uid: number | null;
29833
30306
  updated_at: string;
29834
30307
  };
29835
30308
  Insert: {
30309
+ attachments?: import("../integrations/supabase/types").Json;
29836
30310
  body_html?: string | null;
29837
30311
  body_text?: string | null;
30312
+ cc_recipients?: import("../integrations/supabase/types").Json;
29838
30313
  connection_id?: string | null;
29839
30314
  created_at?: string;
29840
30315
  error_message?: string | null;
29841
30316
  external_id?: string | null;
29842
30317
  from_email?: string | null;
29843
30318
  from_name?: string | null;
30319
+ has_attachments?: boolean;
29844
30320
  id?: string;
29845
30321
  message_id?: string | null;
29846
30322
  profile_id?: string | null;
@@ -29848,18 +30324,22 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
29848
30324
  received_at?: string | null;
29849
30325
  status?: string;
29850
30326
  subject?: string | null;
30327
+ to_recipients?: import("../integrations/supabase/types").Json;
29851
30328
  uid?: number | null;
29852
30329
  updated_at?: string;
29853
30330
  };
29854
30331
  Update: {
30332
+ attachments?: import("../integrations/supabase/types").Json;
29855
30333
  body_html?: string | null;
29856
30334
  body_text?: string | null;
30335
+ cc_recipients?: import("../integrations/supabase/types").Json;
29857
30336
  connection_id?: string | null;
29858
30337
  created_at?: string;
29859
30338
  error_message?: string | null;
29860
30339
  external_id?: string | null;
29861
30340
  from_email?: string | null;
29862
30341
  from_name?: string | null;
30342
+ has_attachments?: boolean;
29863
30343
  id?: string;
29864
30344
  message_id?: string | null;
29865
30345
  profile_id?: string | null;
@@ -29867,6 +30347,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
29867
30347
  received_at?: string | null;
29868
30348
  status?: string;
29869
30349
  subject?: string | null;
30350
+ to_recipients?: import("../integrations/supabase/types").Json;
29870
30351
  uid?: number | null;
29871
30352
  updated_at?: string;
29872
30353
  };
@@ -30274,6 +30755,36 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
30274
30755
  };
30275
30756
  Relationships: [];
30276
30757
  };
30758
+ module_registry: {
30759
+ Row: {
30760
+ created_at: string;
30761
+ is_active: boolean;
30762
+ last_seen_at: string;
30763
+ module_id: string;
30764
+ name: string;
30765
+ shell_id: string | null;
30766
+ sort_order: number | null;
30767
+ };
30768
+ Insert: {
30769
+ created_at?: string;
30770
+ is_active?: boolean;
30771
+ last_seen_at?: string;
30772
+ module_id: string;
30773
+ name: string;
30774
+ shell_id?: string | null;
30775
+ sort_order?: number | null;
30776
+ };
30777
+ Update: {
30778
+ created_at?: string;
30779
+ is_active?: boolean;
30780
+ last_seen_at?: string;
30781
+ module_id?: string;
30782
+ name?: string;
30783
+ shell_id?: string | null;
30784
+ sort_order?: number | null;
30785
+ };
30786
+ Relationships: [];
30787
+ };
30277
30788
  module_runtime_config: {
30278
30789
  Row: {
30279
30790
  key: string;
@@ -32753,22 +33264,27 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
32753
33264
  created_at: string;
32754
33265
  documentnaam: string;
32755
33266
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
33267
+ extern_job_id: string | null;
32756
33268
  foutmelding: string | null;
32757
33269
  gebruiker_id: string | null;
32758
33270
  gebruiker_naam: string;
32759
33271
  gestart_op: string | null;
32760
33272
  id: string;
33273
+ idempotentie_sleutel: string | null;
32761
33274
  is_herprint: boolean;
32762
33275
  kopieen: number;
32763
33276
  layout_id: string | null;
32764
33277
  opgepakt_op: string | null;
32765
33278
  paginas: number;
32766
33279
  payload: import("../integrations/supabase/types").Json;
33280
+ pdf_base64: string | null;
33281
+ pdf_url: string | null;
32767
33282
  pogingen: number;
32768
33283
  printer_id: string | null;
32769
33284
  render_html: string | null;
32770
33285
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
32771
33286
  updated_at: string;
33287
+ volgende_poging: string | null;
32772
33288
  voltooid_op: string | null;
32773
33289
  };
32774
33290
  Insert: {
@@ -32777,22 +33293,27 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
32777
33293
  created_at?: string;
32778
33294
  documentnaam?: string;
32779
33295
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
33296
+ extern_job_id?: string | null;
32780
33297
  foutmelding?: string | null;
32781
33298
  gebruiker_id?: string | null;
32782
33299
  gebruiker_naam?: string;
32783
33300
  gestart_op?: string | null;
32784
33301
  id?: string;
33302
+ idempotentie_sleutel?: string | null;
32785
33303
  is_herprint?: boolean;
32786
33304
  kopieen?: number;
32787
33305
  layout_id?: string | null;
32788
33306
  opgepakt_op?: string | null;
32789
33307
  paginas?: number;
32790
33308
  payload?: import("../integrations/supabase/types").Json;
33309
+ pdf_base64?: string | null;
33310
+ pdf_url?: string | null;
32791
33311
  pogingen?: number;
32792
33312
  printer_id?: string | null;
32793
33313
  render_html?: string | null;
32794
33314
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
32795
33315
  updated_at?: string;
33316
+ volgende_poging?: string | null;
32796
33317
  voltooid_op?: string | null;
32797
33318
  };
32798
33319
  Update: {
@@ -32801,22 +33322,27 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
32801
33322
  created_at?: string;
32802
33323
  documentnaam?: string;
32803
33324
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
33325
+ extern_job_id?: string | null;
32804
33326
  foutmelding?: string | null;
32805
33327
  gebruiker_id?: string | null;
32806
33328
  gebruiker_naam?: string;
32807
33329
  gestart_op?: string | null;
32808
33330
  id?: string;
33331
+ idempotentie_sleutel?: string | null;
32809
33332
  is_herprint?: boolean;
32810
33333
  kopieen?: number;
32811
33334
  layout_id?: string | null;
32812
33335
  opgepakt_op?: string | null;
32813
33336
  paginas?: number;
32814
33337
  payload?: import("../integrations/supabase/types").Json;
33338
+ pdf_base64?: string | null;
33339
+ pdf_url?: string | null;
32815
33340
  pogingen?: number;
32816
33341
  printer_id?: string | null;
32817
33342
  render_html?: string | null;
32818
33343
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
32819
33344
  updated_at?: string;
33345
+ volgende_poging?: string | null;
32820
33346
  voltooid_op?: string | null;
32821
33347
  };
32822
33348
  Relationships: [{
@@ -32839,6 +33365,63 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
32839
33365
  referencedColumns: ["id"];
32840
33366
  }];
32841
33367
  };
33368
+ print_queue_runners: {
33369
+ Row: {
33370
+ actief: boolean;
33371
+ basis_url: string;
33372
+ created_at: string;
33373
+ id: string;
33374
+ laatst_gezien: string;
33375
+ tick_sleutel: string;
33376
+ updated_at: string;
33377
+ };
33378
+ Insert: {
33379
+ actief?: boolean;
33380
+ basis_url: string;
33381
+ created_at?: string;
33382
+ id?: string;
33383
+ laatst_gezien?: string;
33384
+ tick_sleutel?: string;
33385
+ updated_at?: string;
33386
+ };
33387
+ Update: {
33388
+ actief?: boolean;
33389
+ basis_url?: string;
33390
+ created_at?: string;
33391
+ id?: string;
33392
+ laatst_gezien?: string;
33393
+ tick_sleutel?: string;
33394
+ updated_at?: string;
33395
+ };
33396
+ Relationships: [];
33397
+ };
33398
+ print_queue_settings: {
33399
+ Row: {
33400
+ bewaar_bestanden_dagen: number;
33401
+ bewaar_opdrachten_dagen: number;
33402
+ created_at: string;
33403
+ dubbel_venster_minuten: number;
33404
+ id: string;
33405
+ updated_at: string;
33406
+ };
33407
+ Insert: {
33408
+ bewaar_bestanden_dagen?: number;
33409
+ bewaar_opdrachten_dagen?: number;
33410
+ created_at?: string;
33411
+ dubbel_venster_minuten?: number;
33412
+ id?: string;
33413
+ updated_at?: string;
33414
+ };
33415
+ Update: {
33416
+ bewaar_bestanden_dagen?: number;
33417
+ bewaar_opdrachten_dagen?: number;
33418
+ created_at?: string;
33419
+ dubbel_venster_minuten?: number;
33420
+ id?: string;
33421
+ updated_at?: string;
33422
+ };
33423
+ Relationships: [];
33424
+ };
32842
33425
  print_rules: {
32843
33426
  Row: {
32844
33427
  actief: boolean;
@@ -32999,6 +33582,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
32999
33582
  agent_id: string | null;
33000
33583
  created_at: string;
33001
33584
  driver: string;
33585
+ extern_printer_id: string | null;
33002
33586
  id: string;
33003
33587
  ip_adres: string | null;
33004
33588
  laatst_gezien: string | null;
@@ -33020,6 +33604,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
33020
33604
  agent_id?: string | null;
33021
33605
  created_at?: string;
33022
33606
  driver?: string;
33607
+ extern_printer_id?: string | null;
33023
33608
  id?: string;
33024
33609
  ip_adres?: string | null;
33025
33610
  laatst_gezien?: string | null;
@@ -33041,6 +33626,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
33041
33626
  agent_id?: string | null;
33042
33627
  created_at?: string;
33043
33628
  driver?: string;
33629
+ extern_printer_id?: string | null;
33044
33630
  id?: string;
33045
33631
  ip_adres?: string | null;
33046
33632
  laatst_gezien?: string | null;
@@ -36778,6 +37364,33 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
36778
37364
  referencedColumns: ["id"];
36779
37365
  }];
36780
37366
  };
37367
+ user_module_permissions: {
37368
+ Row: {
37369
+ created_at: string;
37370
+ id: string;
37371
+ module_id: string;
37372
+ permission: string;
37373
+ updated_at: string;
37374
+ user_id: string;
37375
+ };
37376
+ Insert: {
37377
+ created_at?: string;
37378
+ id?: string;
37379
+ module_id: string;
37380
+ permission: string;
37381
+ updated_at?: string;
37382
+ user_id: string;
37383
+ };
37384
+ Update: {
37385
+ created_at?: string;
37386
+ id?: string;
37387
+ module_id?: string;
37388
+ permission?: string;
37389
+ updated_at?: string;
37390
+ user_id?: string;
37391
+ };
37392
+ Relationships: [];
37393
+ };
36781
37394
  user_roles: {
36782
37395
  Row: {
36783
37396
  created_at: string;
@@ -38645,6 +39258,46 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
38645
39258
  };
38646
39259
  Returns: import("../integrations/supabase/types").Json;
38647
39260
  };
39261
+ claim_cloud_print_jobs: {
39262
+ Args: {
39263
+ _max?: number;
39264
+ };
39265
+ Returns: {
39266
+ agent_id: string | null;
39267
+ bron_job_id: string | null;
39268
+ created_at: string;
39269
+ documentnaam: string;
39270
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
39271
+ extern_job_id: string | null;
39272
+ foutmelding: string | null;
39273
+ gebruiker_id: string | null;
39274
+ gebruiker_naam: string;
39275
+ gestart_op: string | null;
39276
+ id: string;
39277
+ idempotentie_sleutel: string | null;
39278
+ is_herprint: boolean;
39279
+ kopieen: number;
39280
+ layout_id: string | null;
39281
+ opgepakt_op: string | null;
39282
+ paginas: number;
39283
+ payload: import("../integrations/supabase/types").Json;
39284
+ pdf_base64: string | null;
39285
+ pdf_url: string | null;
39286
+ pogingen: number;
39287
+ printer_id: string | null;
39288
+ render_html: string | null;
39289
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
39290
+ updated_at: string;
39291
+ volgende_poging: string | null;
39292
+ voltooid_op: string | null;
39293
+ }[];
39294
+ SetofOptions: {
39295
+ from: "*";
39296
+ to: "print_jobs";
39297
+ isOneToOne: false;
39298
+ isSetofReturn: true;
39299
+ };
39300
+ };
38648
39301
  claim_floriday_stock_queue: {
38649
39302
  Args: {
38650
39303
  p_limit?: number;
@@ -38735,22 +39388,27 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
38735
39388
  created_at: string;
38736
39389
  documentnaam: string;
38737
39390
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
39391
+ extern_job_id: string | null;
38738
39392
  foutmelding: string | null;
38739
39393
  gebruiker_id: string | null;
38740
39394
  gebruiker_naam: string;
38741
39395
  gestart_op: string | null;
38742
39396
  id: string;
39397
+ idempotentie_sleutel: string | null;
38743
39398
  is_herprint: boolean;
38744
39399
  kopieen: number;
38745
39400
  layout_id: string | null;
38746
39401
  opgepakt_op: string | null;
38747
39402
  paginas: number;
38748
39403
  payload: import("../integrations/supabase/types").Json;
39404
+ pdf_base64: string | null;
39405
+ pdf_url: string | null;
38749
39406
  pogingen: number;
38750
39407
  printer_id: string | null;
38751
39408
  render_html: string | null;
38752
39409
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
38753
39410
  updated_at: string;
39411
+ volgende_poging: string | null;
38754
39412
  voltooid_op: string | null;
38755
39413
  }[];
38756
39414
  SetofOptions: {
@@ -38796,6 +39454,10 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
38796
39454
  Args: never;
38797
39455
  Returns: undefined;
38798
39456
  };
39457
+ cleanup_voorraad_module_history: {
39458
+ Args: never;
39459
+ Returns: undefined;
39460
+ };
38799
39461
  complete_floriday_stock_queue: {
38800
39462
  Args: {
38801
39463
  p_attempt_id?: string;
@@ -38917,6 +39579,13 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
38917
39579
  };
38918
39580
  Returns: import("../integrations/supabase/types").Json;
38919
39581
  };
39582
+ effective_module_permission: {
39583
+ Args: {
39584
+ _module_id: string;
39585
+ _user_id: string;
39586
+ };
39587
+ Returns: string;
39588
+ };
38920
39589
  email_auth_decrypt: {
38921
39590
  Args: {
38922
39591
  cipher: string;
@@ -39720,6 +40389,51 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
39720
40389
  isSetofReturn: false;
39721
40390
  };
39722
40391
  };
40392
+ logistics_floriday_claim_pushes: {
40393
+ Args: {
40394
+ _lease_seconds?: number;
40395
+ _limit?: number;
40396
+ _worker?: string;
40397
+ };
40398
+ Returns: {
40399
+ attempts: number;
40400
+ fulfillment_order_id: string;
40401
+ id: string;
40402
+ last_sent_hash: string;
40403
+ order_ref: string;
40404
+ payload: import("../integrations/supabase/types").Json;
40405
+ payload_hash: string;
40406
+ revision: number;
40407
+ }[];
40408
+ };
40409
+ logistics_floriday_finish_push: {
40410
+ Args: {
40411
+ _error?: string;
40412
+ _fulfillment_order_id?: string;
40413
+ _id: string;
40414
+ _max_age_hours?: number;
40415
+ _max_attempts?: number;
40416
+ _ok: boolean;
40417
+ _permanent?: boolean;
40418
+ _revision: number;
40419
+ _sent_hash?: string;
40420
+ };
40421
+ Returns: string;
40422
+ };
40423
+ logistics_floriday_prune_pushes: {
40424
+ Args: {
40425
+ _days?: number;
40426
+ };
40427
+ Returns: number;
40428
+ };
40429
+ logistics_floriday_queue_push: {
40430
+ Args: {
40431
+ _order_ref: string;
40432
+ _payload?: import("../integrations/supabase/types").Json;
40433
+ _payload_hash?: string;
40434
+ };
40435
+ Returns: string;
40436
+ };
39723
40437
  logistics_live_carriers: {
39724
40438
  Args: {
39725
40439
  p_order_ref: string;
@@ -40010,6 +40724,13 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
40010
40724
  };
40011
40725
  Returns: undefined;
40012
40726
  };
40727
+ my_module_permissions: {
40728
+ Args: never;
40729
+ Returns: {
40730
+ module_id: string;
40731
+ permission: string;
40732
+ }[];
40733
+ };
40013
40734
  next_manufacture_partij: {
40014
40735
  Args: {
40015
40736
  _tenant_id: string;
@@ -40060,6 +40781,13 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
40060
40781
  };
40061
40782
  Returns: boolean;
40062
40783
  };
40784
+ opruim_print_historie: {
40785
+ Args: never;
40786
+ Returns: {
40787
+ ontdaan: number;
40788
+ verwijderd: number;
40789
+ }[];
40790
+ };
40063
40791
  order_number_prefix: {
40064
40792
  Args: {
40065
40793
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -40067,6 +40795,15 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
40067
40795
  };
40068
40796
  Returns: string;
40069
40797
  };
40798
+ pick_active_printers: {
40799
+ Args: never;
40800
+ Returns: {
40801
+ id: string;
40802
+ locatie: string;
40803
+ naam: string;
40804
+ online: boolean;
40805
+ }[];
40806
+ };
40070
40807
  pick_claim_document: {
40071
40808
  Args: {
40072
40809
  _queue_item_id: string;
@@ -40253,6 +40990,52 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
40253
40990
  };
40254
40991
  Returns: undefined;
40255
40992
  };
40993
+ pick_reset_print: {
40994
+ Args: {
40995
+ _queue_item_id: string;
40996
+ _session_id: string;
40997
+ };
40998
+ Returns: {
40999
+ announced_at: string;
41000
+ assigned_user_id: string | null;
41001
+ barcode: string | null;
41002
+ cancelled_at: string | null;
41003
+ cart_count: number;
41004
+ completed_at: string | null;
41005
+ country_code: string | null;
41006
+ created_at: string;
41007
+ customer_name: string | null;
41008
+ delivery_address: string | null;
41009
+ document_number: string | null;
41010
+ document_type_id: string | null;
41011
+ due_at: string | null;
41012
+ id: string;
41013
+ is_urgent: boolean;
41014
+ line_count: number;
41015
+ order_number: string | null;
41016
+ order_type: string | null;
41017
+ payload: import("../integrations/supabase/types").Json;
41018
+ print_count: number;
41019
+ print_job_id: string | null;
41020
+ printed_at: string | null;
41021
+ printed_by: string | null;
41022
+ printer_id: string | null;
41023
+ priority: number;
41024
+ reference: string | null;
41025
+ route: string | null;
41026
+ screen_id: string | null;
41027
+ station_id: string | null;
41028
+ status_id: string | null;
41029
+ updated_at: string;
41030
+ warnings: import("../integrations/supabase/types").Json;
41031
+ };
41032
+ SetofOptions: {
41033
+ from: "*";
41034
+ to: "pick_queue";
41035
+ isOneToOne: true;
41036
+ isSetofReturn: false;
41037
+ };
41038
+ };
40256
41039
  pick_station_dashboard: {
40257
41040
  Args: never;
40258
41041
  Returns: {
@@ -40399,6 +41182,12 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
40399
41182
  };
40400
41183
  Returns: undefined;
40401
41184
  };
41185
+ reset_stalled_floriday_stock_queue: {
41186
+ Args: {
41187
+ p_include_failed?: boolean;
41188
+ };
41189
+ Returns: number;
41190
+ };
40402
41191
  resolve_group_allocation: {
40403
41192
  Args: {
40404
41193
  _needed: number;
@@ -40443,14 +41232,28 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
40443
41232
  };
40444
41233
  Returns: import("../integrations/supabase/types").Json;
40445
41234
  };
41235
+ ruim_print_jobs_op: {
41236
+ Args: {
41237
+ _bewaar_dagen?: number;
41238
+ };
41239
+ Returns: number;
41240
+ };
40446
41241
  run_floriday_continuous_stock_sync: {
40447
41242
  Args: never;
40448
41243
  Returns: undefined;
40449
41244
  };
41245
+ run_floriday_stock_queue_process: {
41246
+ Args: never;
41247
+ Returns: undefined;
41248
+ };
40450
41249
  run_logistics_tasks_dispatch: {
40451
41250
  Args: never;
40452
41251
  Returns: undefined;
40453
41252
  };
41253
+ run_print_queue_ticks: {
41254
+ Args: never;
41255
+ Returns: number;
41256
+ };
40454
41257
  run_twinfield_queue_tick: {
40455
41258
  Args: never;
40456
41259
  Returns: undefined;
@@ -40838,6 +41641,15 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
40838
41641
  };
40839
41642
  Returns: undefined;
40840
41643
  };
41644
+ trade_item_stock_duplicates: {
41645
+ Args: never;
41646
+ Returns: {
41647
+ keys: string[];
41648
+ product_id: string;
41649
+ product_name: string;
41650
+ row_count: number;
41651
+ }[];
41652
+ };
40841
41653
  try_debtor_lock: {
40842
41654
  Args: {
40843
41655
  _group_key: string;
@@ -40887,7 +41699,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
40887
41699
  };
40888
41700
  Enums: {
40889
41701
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
40890
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
41702
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
40891
41703
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
40892
41704
  doc_orientation: "portrait" | "landscape";
40893
41705
  exact_env: "staging" | "live";