@flowselections/floriday-voorraad 1.0.127 → 1.0.131

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 (47) hide show
  1. package/dist-lib/components/voorraad/ArtikelWizard.d.ts.map +1 -1
  2. package/dist-lib/components/voorraad/ArtikelWizard.js +102 -19
  3. package/dist-lib/components/voorraad/NieuwArtikelPage.d.ts.map +1 -1
  4. package/dist-lib/components/voorraad/NieuwArtikelPage.js +2 -0
  5. package/dist-lib/components/voorraad/PriceStatusBadge.d.ts.map +1 -1
  6. package/dist-lib/components/voorraad/PriceStatusBadge.js +21 -45
  7. package/dist-lib/components/voorraad/ProductStructureCard.d.ts.map +1 -1
  8. package/dist-lib/components/voorraad/ProductStructureCard.js +6 -2
  9. package/dist-lib/hooks/useLocalTradeItems.d.ts.map +1 -1
  10. package/dist-lib/hooks/useLocalTradeItems.js +4 -0
  11. package/dist-lib/integrations/supabase/types.d.ts +801 -0
  12. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  13. package/dist-lib/lib/__tests__/article-code.test.d.ts +2 -0
  14. package/dist-lib/lib/__tests__/article-code.test.d.ts.map +1 -0
  15. package/dist-lib/lib/__tests__/article-code.test.js +11 -0
  16. package/dist-lib/lib/__tests__/release-130.test.d.ts +2 -0
  17. package/dist-lib/lib/__tests__/release-130.test.d.ts.map +1 -0
  18. package/dist-lib/lib/__tests__/release-130.test.js +103 -0
  19. package/dist-lib/lib/article-code.d.ts +12 -0
  20. package/dist-lib/lib/article-code.d.ts.map +1 -0
  21. package/dist-lib/lib/article-code.js +29 -0
  22. package/dist-lib/lib/floriday-2026v1.server.d.ts +1 -8
  23. package/dist-lib/lib/floriday-2026v1.server.d.ts.map +1 -1
  24. package/dist-lib/lib/floriday-2026v1.server.js +0 -10
  25. package/dist-lib/lib/floriday-gateway.functions.d.ts +6 -0
  26. package/dist-lib/lib/floriday-gateway.functions.d.ts.map +1 -1
  27. package/dist-lib/lib/floriday-gateway.functions.js +7 -0
  28. package/dist-lib/lib/floriday-gateway.server.d.ts +17 -4
  29. package/dist-lib/lib/floriday-gateway.server.d.ts.map +1 -1
  30. package/dist-lib/lib/floriday-gateway.server.js +80 -2
  31. package/dist-lib/lib/floriday-payload.d.ts.map +1 -1
  32. package/dist-lib/lib/floriday-payload.js +11 -3
  33. package/dist-lib/lib/floriday-read-contract.d.ts +49 -0
  34. package/dist-lib/lib/floriday-read-contract.d.ts.map +1 -0
  35. package/dist-lib/lib/floriday-read-contract.js +92 -0
  36. package/dist-lib/lib/price-status.d.ts +14 -0
  37. package/dist-lib/lib/price-status.d.ts.map +1 -0
  38. package/dist-lib/lib/price-status.js +16 -0
  39. package/dist-lib/lib/publish-pipeline.d.ts.map +1 -1
  40. package/dist-lib/lib/publish-pipeline.js +2 -7
  41. package/dist-lib/lib/publish-status.d.ts +26 -0
  42. package/dist-lib/lib/publish-status.d.ts.map +1 -0
  43. package/dist-lib/lib/publish-status.js +30 -0
  44. package/dist-lib/server-hooks/floriday-continuous-stock-pull.d.ts.map +1 -1
  45. package/dist-lib/server-hooks/floriday-continuous-stock-pull.js +37 -50
  46. package/package.json +1 -1
  47. package/sql/floriday-voorraad-schema.sql +88 -3
@@ -3832,6 +3832,7 @@ export type Database = {
3832
3832
  };
3833
3833
  document_layout_versions: {
3834
3834
  Row: {
3835
+ afbeeldingen: Json | null;
3835
3836
  commentaar: string;
3836
3837
  created_at: string;
3837
3838
  created_by: string | null;
@@ -3843,6 +3844,7 @@ export type Database = {
3843
3844
  versienummer: number;
3844
3845
  };
3845
3846
  Insert: {
3847
+ afbeeldingen?: Json | null;
3846
3848
  commentaar?: string;
3847
3849
  created_at?: string;
3848
3850
  created_by?: string | null;
@@ -3854,6 +3856,7 @@ export type Database = {
3854
3856
  versienummer: number;
3855
3857
  };
3856
3858
  Update: {
3859
+ afbeeldingen?: Json | null;
3857
3860
  commentaar?: string;
3858
3861
  created_at?: string;
3859
3862
  created_by?: string | null;
@@ -3877,12 +3880,16 @@ export type Database = {
3877
3880
  document_layouts: {
3878
3881
  Row: {
3879
3882
  actief: boolean;
3883
+ administratie_code: string | null;
3880
3884
  breedte_mm: number;
3881
3885
  bron: string;
3882
3886
  config: Json;
3883
3887
  created_at: string;
3884
3888
  created_by: string | null;
3885
3889
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
3890
+ gearchiveerd: boolean;
3891
+ gearchiveerd_door: string | null;
3892
+ gearchiveerd_op: string | null;
3886
3893
  hoogte_mm: number;
3887
3894
  huidige_versie: number;
3888
3895
  id: string;
@@ -3896,6 +3903,7 @@ export type Database = {
3896
3903
  orientatie: Database["public"]["Enums"]["doc_orientation"];
3897
3904
  page_settings: Json;
3898
3905
  papierformaat: string;
3906
+ rol: string;
3899
3907
  standaard_sleutel: string | null;
3900
3908
  standaard_versie: number | null;
3901
3909
  systeem: boolean;
@@ -3904,12 +3912,16 @@ export type Database = {
3904
3912
  };
3905
3913
  Insert: {
3906
3914
  actief?: boolean;
3915
+ administratie_code?: string | null;
3907
3916
  breedte_mm?: number;
3908
3917
  bron?: string;
3909
3918
  config?: Json;
3910
3919
  created_at?: string;
3911
3920
  created_by?: string | null;
3912
3921
  documenttype?: Database["public"]["Enums"]["doc_layout_type"];
3922
+ gearchiveerd?: boolean;
3923
+ gearchiveerd_door?: string | null;
3924
+ gearchiveerd_op?: string | null;
3913
3925
  hoogte_mm?: number;
3914
3926
  huidige_versie?: number;
3915
3927
  id?: string;
@@ -3923,6 +3935,7 @@ export type Database = {
3923
3935
  orientatie?: Database["public"]["Enums"]["doc_orientation"];
3924
3936
  page_settings?: Json;
3925
3937
  papierformaat?: string;
3938
+ rol?: string;
3926
3939
  standaard_sleutel?: string | null;
3927
3940
  standaard_versie?: number | null;
3928
3941
  systeem?: boolean;
@@ -3931,12 +3944,16 @@ export type Database = {
3931
3944
  };
3932
3945
  Update: {
3933
3946
  actief?: boolean;
3947
+ administratie_code?: string | null;
3934
3948
  breedte_mm?: number;
3935
3949
  bron?: string;
3936
3950
  config?: Json;
3937
3951
  created_at?: string;
3938
3952
  created_by?: string | null;
3939
3953
  documenttype?: Database["public"]["Enums"]["doc_layout_type"];
3954
+ gearchiveerd?: boolean;
3955
+ gearchiveerd_door?: string | null;
3956
+ gearchiveerd_op?: string | null;
3940
3957
  hoogte_mm?: number;
3941
3958
  huidige_versie?: number;
3942
3959
  id?: string;
@@ -3950,6 +3967,7 @@ export type Database = {
3950
3967
  orientatie?: Database["public"]["Enums"]["doc_orientation"];
3951
3968
  page_settings?: Json;
3952
3969
  papierformaat?: string;
3970
+ rol?: string;
3953
3971
  standaard_sleutel?: string | null;
3954
3972
  standaard_versie?: number | null;
3955
3973
  systeem?: boolean;
@@ -4235,6 +4253,9 @@ export type Database = {
4235
4253
  attachments: Json;
4236
4254
  attempts: number;
4237
4255
  bcc_addresses: string[];
4256
+ bounce_event_id: string | null;
4257
+ bounce_reason: string | null;
4258
+ bounced_at: string | null;
4238
4259
  cc_addresses: string[];
4239
4260
  connection_id: string | null;
4240
4261
  created_at: string;
@@ -4258,6 +4279,9 @@ export type Database = {
4258
4279
  attachments?: Json;
4259
4280
  attempts?: number;
4260
4281
  bcc_addresses?: string[];
4282
+ bounce_event_id?: string | null;
4283
+ bounce_reason?: string | null;
4284
+ bounced_at?: string | null;
4261
4285
  cc_addresses?: string[];
4262
4286
  connection_id?: string | null;
4263
4287
  created_at?: string;
@@ -4281,6 +4305,9 @@ export type Database = {
4281
4305
  attachments?: Json;
4282
4306
  attempts?: number;
4283
4307
  bcc_addresses?: string[];
4308
+ bounce_event_id?: string | null;
4309
+ bounce_reason?: string | null;
4310
+ bounced_at?: string | null;
4284
4311
  cc_addresses?: string[];
4285
4312
  connection_id?: string | null;
4286
4313
  created_at?: string;
@@ -4509,6 +4536,464 @@ export type Database = {
4509
4536
  }
4510
4537
  ];
4511
4538
  };
4539
+ erp_administration_settings: {
4540
+ Row: {
4541
+ administration_code: string;
4542
+ app_base_url: string | null;
4543
+ auto_send: boolean;
4544
+ created_at: string;
4545
+ is_test_administration: boolean;
4546
+ layout_administration_code: string | null;
4547
+ layout_id: string | null;
4548
+ sales_journal_code: string | null;
4549
+ updated_at: string;
4550
+ work_end: string;
4551
+ work_start: string;
4552
+ };
4553
+ Insert: {
4554
+ administration_code: string;
4555
+ app_base_url?: string | null;
4556
+ auto_send?: boolean;
4557
+ created_at?: string;
4558
+ is_test_administration?: boolean;
4559
+ layout_administration_code?: string | null;
4560
+ layout_id?: string | null;
4561
+ sales_journal_code?: string | null;
4562
+ updated_at?: string;
4563
+ work_end?: string;
4564
+ work_start?: string;
4565
+ };
4566
+ Update: {
4567
+ administration_code?: string;
4568
+ app_base_url?: string | null;
4569
+ auto_send?: boolean;
4570
+ created_at?: string;
4571
+ is_test_administration?: boolean;
4572
+ layout_administration_code?: string | null;
4573
+ layout_id?: string | null;
4574
+ sales_journal_code?: string | null;
4575
+ updated_at?: string;
4576
+ work_end?: string;
4577
+ work_start?: string;
4578
+ };
4579
+ Relationships: [];
4580
+ };
4581
+ erp_invoice_counters: {
4582
+ Row: {
4583
+ last_number: number;
4584
+ series_id: string;
4585
+ updated_at: string;
4586
+ year: number;
4587
+ };
4588
+ Insert: {
4589
+ last_number: number;
4590
+ series_id: string;
4591
+ updated_at?: string;
4592
+ year: number;
4593
+ };
4594
+ Update: {
4595
+ last_number?: number;
4596
+ series_id?: string;
4597
+ updated_at?: string;
4598
+ year?: number;
4599
+ };
4600
+ Relationships: [
4601
+ {
4602
+ foreignKeyName: "erp_invoice_counters_series_id_fkey";
4603
+ columns: ["series_id"];
4604
+ isOneToOne: false;
4605
+ referencedRelation: "erp_invoice_series";
4606
+ referencedColumns: ["id"];
4607
+ }
4608
+ ];
4609
+ };
4610
+ erp_invoice_events: {
4611
+ Row: {
4612
+ actor: string | null;
4613
+ actor_kind: string;
4614
+ created_at: string;
4615
+ from_status: string | null;
4616
+ id: string;
4617
+ invoice_id: string;
4618
+ note: string | null;
4619
+ to_status: string | null;
4620
+ };
4621
+ Insert: {
4622
+ actor?: string | null;
4623
+ actor_kind?: string;
4624
+ created_at?: string;
4625
+ from_status?: string | null;
4626
+ id?: string;
4627
+ invoice_id: string;
4628
+ note?: string | null;
4629
+ to_status?: string | null;
4630
+ };
4631
+ Update: {
4632
+ actor?: string | null;
4633
+ actor_kind?: string;
4634
+ created_at?: string;
4635
+ from_status?: string | null;
4636
+ id?: string;
4637
+ invoice_id?: string;
4638
+ note?: string | null;
4639
+ to_status?: string | null;
4640
+ };
4641
+ Relationships: [
4642
+ {
4643
+ foreignKeyName: "erp_invoice_events_invoice_id_fkey";
4644
+ columns: ["invoice_id"];
4645
+ isOneToOne: false;
4646
+ referencedRelation: "erp_invoices";
4647
+ referencedColumns: ["id"];
4648
+ }
4649
+ ];
4650
+ };
4651
+ erp_invoice_lines: {
4652
+ Row: {
4653
+ created_at: string;
4654
+ description: string;
4655
+ discount_pct: number;
4656
+ gl_account: string | null;
4657
+ id: string;
4658
+ invoice_id: string;
4659
+ line_no: number;
4660
+ net_amount: number;
4661
+ original_line_id: string | null;
4662
+ product_id: string | null;
4663
+ quantity: number;
4664
+ unit: string | null;
4665
+ unit_price: number;
4666
+ vat_code: string;
4667
+ vat_rate: number;
4668
+ };
4669
+ Insert: {
4670
+ created_at?: string;
4671
+ description: string;
4672
+ discount_pct?: number;
4673
+ gl_account?: string | null;
4674
+ id?: string;
4675
+ invoice_id: string;
4676
+ line_no: number;
4677
+ net_amount: number;
4678
+ original_line_id?: string | null;
4679
+ product_id?: string | null;
4680
+ quantity: number;
4681
+ unit?: string | null;
4682
+ unit_price: number;
4683
+ vat_code: string;
4684
+ vat_rate: number;
4685
+ };
4686
+ Update: {
4687
+ created_at?: string;
4688
+ description?: string;
4689
+ discount_pct?: number;
4690
+ gl_account?: string | null;
4691
+ id?: string;
4692
+ invoice_id?: string;
4693
+ line_no?: number;
4694
+ net_amount?: number;
4695
+ original_line_id?: string | null;
4696
+ product_id?: string | null;
4697
+ quantity?: number;
4698
+ unit?: string | null;
4699
+ unit_price?: number;
4700
+ vat_code?: string;
4701
+ vat_rate?: number;
4702
+ };
4703
+ Relationships: [
4704
+ {
4705
+ foreignKeyName: "erp_invoice_lines_invoice_id_fkey";
4706
+ columns: ["invoice_id"];
4707
+ isOneToOne: false;
4708
+ referencedRelation: "erp_invoices";
4709
+ referencedColumns: ["id"];
4710
+ }
4711
+ ];
4712
+ };
4713
+ erp_invoice_outbox: {
4714
+ Row: {
4715
+ attempts: number;
4716
+ created_at: string;
4717
+ id: string;
4718
+ idem_key: string;
4719
+ invoice_id: string;
4720
+ last_error: string | null;
4721
+ next_attempt_at: string;
4722
+ priority: number;
4723
+ status: string;
4724
+ step: string;
4725
+ updated_at: string;
4726
+ };
4727
+ Insert: {
4728
+ attempts?: number;
4729
+ created_at?: string;
4730
+ id?: string;
4731
+ idem_key: string;
4732
+ invoice_id: string;
4733
+ last_error?: string | null;
4734
+ next_attempt_at?: string;
4735
+ priority?: number;
4736
+ status?: string;
4737
+ step: string;
4738
+ updated_at?: string;
4739
+ };
4740
+ Update: {
4741
+ attempts?: number;
4742
+ created_at?: string;
4743
+ id?: string;
4744
+ idem_key?: string;
4745
+ invoice_id?: string;
4746
+ last_error?: string | null;
4747
+ next_attempt_at?: string;
4748
+ priority?: number;
4749
+ status?: string;
4750
+ step?: string;
4751
+ updated_at?: string;
4752
+ };
4753
+ Relationships: [
4754
+ {
4755
+ foreignKeyName: "erp_invoice_outbox_invoice_id_fkey";
4756
+ columns: ["invoice_id"];
4757
+ isOneToOne: false;
4758
+ referencedRelation: "erp_invoices";
4759
+ referencedColumns: ["id"];
4760
+ }
4761
+ ];
4762
+ };
4763
+ erp_invoice_series: {
4764
+ Row: {
4765
+ administration_code: string;
4766
+ created_at: string;
4767
+ format: string;
4768
+ id: string;
4769
+ is_test: boolean;
4770
+ locked_at: string | null;
4771
+ locked_by: string | null;
4772
+ prefix: string;
4773
+ start_number: number;
4774
+ start_year: number;
4775
+ twinfield_checked_at: string | null;
4776
+ updated_at: string;
4777
+ };
4778
+ Insert: {
4779
+ administration_code: string;
4780
+ created_at?: string;
4781
+ format: string;
4782
+ id?: string;
4783
+ is_test?: boolean;
4784
+ locked_at?: string | null;
4785
+ locked_by?: string | null;
4786
+ prefix: string;
4787
+ start_number?: number;
4788
+ start_year: number;
4789
+ twinfield_checked_at?: string | null;
4790
+ updated_at?: string;
4791
+ };
4792
+ Update: {
4793
+ administration_code?: string;
4794
+ created_at?: string;
4795
+ format?: string;
4796
+ id?: string;
4797
+ is_test?: boolean;
4798
+ locked_at?: string | null;
4799
+ locked_by?: string | null;
4800
+ prefix?: string;
4801
+ start_number?: number;
4802
+ start_year?: number;
4803
+ twinfield_checked_at?: string | null;
4804
+ updated_at?: string;
4805
+ };
4806
+ Relationships: [];
4807
+ };
4808
+ erp_invoices: {
4809
+ Row: {
4810
+ administration_code: string;
4811
+ booked_at: string | null;
4812
+ booking_error: string | null;
4813
+ contract_version: string | null;
4814
+ created_at: string;
4815
+ created_by: string | null;
4816
+ credited_by: string | null;
4817
+ currency: string;
4818
+ customer_code: string | null;
4819
+ customer_snapshot: Json;
4820
+ delivery_date: string | null;
4821
+ due_date: string | null;
4822
+ finalized_at: string | null;
4823
+ finalized_by: string | null;
4824
+ id: string;
4825
+ invoice_date: string | null;
4826
+ invoice_number: string | null;
4827
+ kind: string;
4828
+ layout_id: string | null;
4829
+ layout_version: string | null;
4830
+ legacy_filled_at: string | null;
4831
+ legacy_link_id: string | null;
4832
+ mail_id: string | null;
4833
+ mail_status: string | null;
4834
+ mail_to: string | null;
4835
+ order_id: string | null;
4836
+ original_invoice_id: string | null;
4837
+ outstanding_amount: number | null;
4838
+ payment_reference: string | null;
4839
+ payment_status: string;
4840
+ pdf_path: string | null;
4841
+ pdf_sha256: string | null;
4842
+ seller_snapshot: Json;
4843
+ sent_at: string | null;
4844
+ source: string;
4845
+ status: string;
4846
+ subtotal: number | null;
4847
+ test_mode: boolean;
4848
+ total: number | null;
4849
+ twinfield_journal: string | null;
4850
+ twinfield_status: string | null;
4851
+ twinfield_transaction_number: string | null;
4852
+ updated_at: string;
4853
+ user_id: string | null;
4854
+ vat_breakdown: Json;
4855
+ vat_total: number | null;
4856
+ };
4857
+ Insert: {
4858
+ administration_code: string;
4859
+ booked_at?: string | null;
4860
+ booking_error?: string | null;
4861
+ contract_version?: string | null;
4862
+ created_at?: string;
4863
+ created_by?: string | null;
4864
+ credited_by?: string | null;
4865
+ currency?: string;
4866
+ customer_code?: string | null;
4867
+ customer_snapshot?: Json;
4868
+ delivery_date?: string | null;
4869
+ due_date?: string | null;
4870
+ finalized_at?: string | null;
4871
+ finalized_by?: string | null;
4872
+ id?: string;
4873
+ invoice_date?: string | null;
4874
+ invoice_number?: string | null;
4875
+ kind?: string;
4876
+ layout_id?: string | null;
4877
+ layout_version?: string | null;
4878
+ legacy_filled_at?: string | null;
4879
+ legacy_link_id?: string | null;
4880
+ mail_id?: string | null;
4881
+ mail_status?: string | null;
4882
+ mail_to?: string | null;
4883
+ order_id?: string | null;
4884
+ original_invoice_id?: string | null;
4885
+ outstanding_amount?: number | null;
4886
+ payment_reference?: string | null;
4887
+ payment_status?: string;
4888
+ pdf_path?: string | null;
4889
+ pdf_sha256?: string | null;
4890
+ seller_snapshot?: Json;
4891
+ sent_at?: string | null;
4892
+ source?: string;
4893
+ status?: string;
4894
+ subtotal?: number | null;
4895
+ test_mode?: boolean;
4896
+ total?: number | null;
4897
+ twinfield_journal?: string | null;
4898
+ twinfield_status?: string | null;
4899
+ twinfield_transaction_number?: string | null;
4900
+ updated_at?: string;
4901
+ user_id?: string | null;
4902
+ vat_breakdown?: Json;
4903
+ vat_total?: number | null;
4904
+ };
4905
+ Update: {
4906
+ administration_code?: string;
4907
+ booked_at?: string | null;
4908
+ booking_error?: string | null;
4909
+ contract_version?: string | null;
4910
+ created_at?: string;
4911
+ created_by?: string | null;
4912
+ credited_by?: string | null;
4913
+ currency?: string;
4914
+ customer_code?: string | null;
4915
+ customer_snapshot?: Json;
4916
+ delivery_date?: string | null;
4917
+ due_date?: string | null;
4918
+ finalized_at?: string | null;
4919
+ finalized_by?: string | null;
4920
+ id?: string;
4921
+ invoice_date?: string | null;
4922
+ invoice_number?: string | null;
4923
+ kind?: string;
4924
+ layout_id?: string | null;
4925
+ layout_version?: string | null;
4926
+ legacy_filled_at?: string | null;
4927
+ legacy_link_id?: string | null;
4928
+ mail_id?: string | null;
4929
+ mail_status?: string | null;
4930
+ mail_to?: string | null;
4931
+ order_id?: string | null;
4932
+ original_invoice_id?: string | null;
4933
+ outstanding_amount?: number | null;
4934
+ payment_reference?: string | null;
4935
+ payment_status?: string;
4936
+ pdf_path?: string | null;
4937
+ pdf_sha256?: string | null;
4938
+ seller_snapshot?: Json;
4939
+ sent_at?: string | null;
4940
+ source?: string;
4941
+ status?: string;
4942
+ subtotal?: number | null;
4943
+ test_mode?: boolean;
4944
+ total?: number | null;
4945
+ twinfield_journal?: string | null;
4946
+ twinfield_status?: string | null;
4947
+ twinfield_transaction_number?: string | null;
4948
+ updated_at?: string;
4949
+ user_id?: string | null;
4950
+ vat_breakdown?: Json;
4951
+ vat_total?: number | null;
4952
+ };
4953
+ Relationships: [
4954
+ {
4955
+ foreignKeyName: "erp_invoices_credited_by_fkey";
4956
+ columns: ["credited_by"];
4957
+ isOneToOne: false;
4958
+ referencedRelation: "erp_invoices";
4959
+ referencedColumns: ["id"];
4960
+ },
4961
+ {
4962
+ foreignKeyName: "erp_invoices_original_invoice_id_fkey";
4963
+ columns: ["original_invoice_id"];
4964
+ isOneToOne: false;
4965
+ referencedRelation: "erp_invoices";
4966
+ referencedColumns: ["id"];
4967
+ }
4968
+ ];
4969
+ };
4970
+ erp_prefix_guard: {
4971
+ Row: {
4972
+ administration_code: string;
4973
+ blocked_at: string | null;
4974
+ checked_at: string;
4975
+ foreign_number: string | null;
4976
+ prefix: string;
4977
+ updated_at: string;
4978
+ };
4979
+ Insert: {
4980
+ administration_code: string;
4981
+ blocked_at?: string | null;
4982
+ checked_at?: string;
4983
+ foreign_number?: string | null;
4984
+ prefix: string;
4985
+ updated_at?: string;
4986
+ };
4987
+ Update: {
4988
+ administration_code?: string;
4989
+ blocked_at?: string | null;
4990
+ checked_at?: string;
4991
+ foreign_number?: string | null;
4992
+ prefix?: string;
4993
+ updated_at?: string;
4994
+ };
4995
+ Relationships: [];
4996
+ };
4512
4997
  exact_account_analytics_cache: {
4513
4998
  Row: {
4514
4999
  account_id: string;
@@ -10138,6 +10623,7 @@ export type Database = {
10138
10623
  chamber_of_commerce_number: string;
10139
10624
  city: string;
10140
10625
  company_name: string;
10626
+ country: string | null;
10141
10627
  created_at: string;
10142
10628
  email: string;
10143
10629
  email_purpose: string | null;
@@ -10159,6 +10645,7 @@ export type Database = {
10159
10645
  chamber_of_commerce_number?: string;
10160
10646
  city?: string;
10161
10647
  company_name?: string;
10648
+ country?: string | null;
10162
10649
  created_at?: string;
10163
10650
  email?: string;
10164
10651
  email_purpose?: string | null;
@@ -10180,6 +10667,7 @@ export type Database = {
10180
10667
  chamber_of_commerce_number?: string;
10181
10668
  city?: string;
10182
10669
  company_name?: string;
10670
+ country?: string | null;
10183
10671
  created_at?: string;
10184
10672
  email?: string;
10185
10673
  email_purpose?: string | null;
@@ -11889,6 +12377,50 @@ export type Database = {
11889
12377
  };
11890
12378
  Relationships: [];
11891
12379
  };
12380
+ layout_klantvarianten: {
12381
+ Row: {
12382
+ administratie_code: string | null;
12383
+ bron: string | null;
12384
+ created_at: string;
12385
+ created_by: string | null;
12386
+ documenttype: Database["public"]["Enums"]["doc_layout_type"];
12387
+ id: string;
12388
+ klant_id: string;
12389
+ layout_id: string;
12390
+ updated_at: string;
12391
+ };
12392
+ Insert: {
12393
+ administratie_code?: string | null;
12394
+ bron?: string | null;
12395
+ created_at?: string;
12396
+ created_by?: string | null;
12397
+ documenttype: Database["public"]["Enums"]["doc_layout_type"];
12398
+ id?: string;
12399
+ klant_id: string;
12400
+ layout_id: string;
12401
+ updated_at?: string;
12402
+ };
12403
+ Update: {
12404
+ administratie_code?: string | null;
12405
+ bron?: string | null;
12406
+ created_at?: string;
12407
+ created_by?: string | null;
12408
+ documenttype?: Database["public"]["Enums"]["doc_layout_type"];
12409
+ id?: string;
12410
+ klant_id?: string;
12411
+ layout_id?: string;
12412
+ updated_at?: string;
12413
+ };
12414
+ Relationships: [
12415
+ {
12416
+ foreignKeyName: "layout_klantvarianten_layout_id_fkey";
12417
+ columns: ["layout_id"];
12418
+ isOneToOne: false;
12419
+ referencedRelation: "document_layouts";
12420
+ referencedColumns: ["id"];
12421
+ }
12422
+ ];
12423
+ };
11892
12424
  layout_logos: {
11893
12425
  Row: {
11894
12426
  bestand_url: string;
@@ -21000,6 +21532,7 @@ export type Database = {
21000
21532
  is_herprint: boolean;
21001
21533
  kopieen: number;
21002
21534
  layout_id: string | null;
21535
+ layout_versie: number | null;
21003
21536
  lokaal_opgeslagen_op: string | null;
21004
21537
  lokale_pdf_claim_id: string | null;
21005
21538
  lokale_pdf_claim_tot: string | null;
@@ -21059,6 +21592,7 @@ export type Database = {
21059
21592
  is_herprint?: boolean;
21060
21593
  kopieen?: number;
21061
21594
  layout_id?: string | null;
21595
+ layout_versie?: number | null;
21062
21596
  lokaal_opgeslagen_op?: string | null;
21063
21597
  lokale_pdf_claim_id?: string | null;
21064
21598
  lokale_pdf_claim_tot?: string | null;
@@ -21118,6 +21652,7 @@ export type Database = {
21118
21652
  is_herprint?: boolean;
21119
21653
  kopieen?: number;
21120
21654
  layout_id?: string | null;
21655
+ layout_versie?: number | null;
21121
21656
  lokaal_opgeslagen_op?: string | null;
21122
21657
  lokale_pdf_claim_id?: string | null;
21123
21658
  lokale_pdf_claim_tot?: string | null;
@@ -26860,6 +27395,33 @@ export type Database = {
26860
27395
  }
26861
27396
  ];
26862
27397
  };
27398
+ twinfield_rate_state: {
27399
+ Row: {
27400
+ administration_code: string;
27401
+ blocked_until: string | null;
27402
+ clientid_remaining: number | null;
27403
+ credited: number | null;
27404
+ remaining: number | null;
27405
+ updated_at: string;
27406
+ };
27407
+ Insert: {
27408
+ administration_code: string;
27409
+ blocked_until?: string | null;
27410
+ clientid_remaining?: number | null;
27411
+ credited?: number | null;
27412
+ remaining?: number | null;
27413
+ updated_at?: string;
27414
+ };
27415
+ Update: {
27416
+ administration_code?: string;
27417
+ blocked_until?: string | null;
27418
+ clientid_remaining?: number | null;
27419
+ credited?: number | null;
27420
+ remaining?: number | null;
27421
+ updated_at?: string;
27422
+ };
27423
+ Relationships: [];
27424
+ };
26863
27425
  twinfield_request_metrics: {
26864
27426
  Row: {
26865
27427
  bucket_hour: string;
@@ -28593,6 +29155,21 @@ export type Database = {
28593
29155
  };
28594
29156
  Relationships: [];
28595
29157
  };
29158
+ voorraad_placeholder_codes: {
29159
+ Row: {
29160
+ code: string;
29161
+ created_at: string;
29162
+ };
29163
+ Insert: {
29164
+ code: string;
29165
+ created_at?: string;
29166
+ };
29167
+ Update: {
29168
+ code?: string;
29169
+ created_at?: string;
29170
+ };
29171
+ Relationships: [];
29172
+ };
28596
29173
  voorraad_publish_attempts: {
28597
29174
  Row: {
28598
29175
  action: string;
@@ -31191,6 +31768,23 @@ export type Database = {
31191
31768
  Args: never;
31192
31769
  Returns: boolean;
31193
31770
  };
31771
+ _layout_verwijzing_kern: {
31772
+ Args: {
31773
+ _kolom: string;
31774
+ _nieuw: string;
31775
+ _oud: string;
31776
+ _pad: string[];
31777
+ _rij_id: string;
31778
+ _tabel: string;
31779
+ };
31780
+ Returns: boolean;
31781
+ };
31782
+ _layouts_bron_groep: {
31783
+ Args: {
31784
+ p_bron: string;
31785
+ };
31786
+ Returns: string;
31787
+ };
31194
31788
  _layouts_toegang_besluit: {
31195
31789
  Args: {
31196
31790
  p_alleen_beheer: boolean;
@@ -31225,6 +31819,12 @@ export type Database = {
31225
31819
  };
31226
31820
  Returns: undefined;
31227
31821
  };
31822
+ _layouts_verwijzingen_naar: {
31823
+ Args: {
31824
+ p_ids: string[];
31825
+ };
31826
+ Returns: Json;
31827
+ };
31228
31828
  _migrate_rewrite_stock_key: {
31229
31829
  Args: {
31230
31830
  _from_key: string;
@@ -31962,6 +32562,7 @@ export type Database = {
31962
32562
  is_herprint: boolean;
31963
32563
  kopieen: number;
31964
32564
  layout_id: string | null;
32565
+ layout_versie: number | null;
31965
32566
  lokaal_opgeslagen_op: string | null;
31966
32567
  lokale_pdf_claim_id: string | null;
31967
32568
  lokale_pdf_claim_tot: string | null;
@@ -32163,6 +32764,7 @@ export type Database = {
32163
32764
  is_herprint: boolean;
32164
32765
  kopieen: number;
32165
32766
  layout_id: string | null;
32767
+ layout_versie: number | null;
32166
32768
  lokaal_opgeslagen_op: string | null;
32167
32769
  lokale_pdf_claim_id: string | null;
32168
32770
  lokale_pdf_claim_tot: string | null;
@@ -32234,6 +32836,7 @@ export type Database = {
32234
32836
  is_herprint: boolean;
32235
32837
  kopieen: number;
32236
32838
  layout_id: string | null;
32839
+ layout_versie: number | null;
32237
32840
  lokaal_opgeslagen_op: string | null;
32238
32841
  lokale_pdf_claim_id: string | null;
32239
32842
  lokale_pdf_claim_tot: string | null;
@@ -32765,6 +33368,120 @@ export type Database = {
32765
33368
  Args: never;
32766
33369
  Returns: string;
32767
33370
  };
33371
+ erp_iban_valid: {
33372
+ Args: {
33373
+ _iban: string;
33374
+ };
33375
+ Returns: boolean;
33376
+ };
33377
+ erp_invoice_can_manage: {
33378
+ Args: {
33379
+ _uid: string;
33380
+ };
33381
+ Returns: boolean;
33382
+ };
33383
+ erp_invoice_can_view: {
33384
+ Args: {
33385
+ _uid: string;
33386
+ };
33387
+ Returns: boolean;
33388
+ };
33389
+ erp_invoice_checks: {
33390
+ Args: never;
33391
+ Returns: Json;
33392
+ };
33393
+ erp_invoice_compute: {
33394
+ Args: {
33395
+ _invoice_id: string;
33396
+ };
33397
+ Returns: Json;
33398
+ };
33399
+ erp_invoice_finalize: {
33400
+ Args: {
33401
+ p_actor: string;
33402
+ p_invoice_id: string;
33403
+ };
33404
+ Returns: Json;
33405
+ };
33406
+ erp_invoice_import_legacy_links: {
33407
+ Args: never;
33408
+ Returns: number;
33409
+ };
33410
+ erp_invoice_pdf_path: {
33411
+ Args: {
33412
+ p_invoice_id: string;
33413
+ };
33414
+ Returns: string;
33415
+ };
33416
+ erp_invoice_render_number: {
33417
+ Args: {
33418
+ _format: string;
33419
+ _n: number;
33420
+ _prefix_test: boolean;
33421
+ _year: number;
33422
+ };
33423
+ Returns: string;
33424
+ };
33425
+ erp_invoice_transition: {
33426
+ Args: {
33427
+ p_actor: string;
33428
+ p_invoice_id: string;
33429
+ p_note: string;
33430
+ p_patch: Json;
33431
+ p_to: string;
33432
+ };
33433
+ Returns: undefined;
33434
+ };
33435
+ erp_invoices_for_order: {
33436
+ Args: {
33437
+ p_order_id: string;
33438
+ };
33439
+ Returns: {
33440
+ id: string;
33441
+ invoice_date: string;
33442
+ invoice_number: string;
33443
+ kind: string;
33444
+ payment_status: string;
33445
+ source: string;
33446
+ status: string;
33447
+ total: number;
33448
+ twinfield_status: string;
33449
+ }[];
33450
+ };
33451
+ erp_is_selftest_admin: {
33452
+ Args: {
33453
+ _code: string;
33454
+ };
33455
+ Returns: boolean;
33456
+ };
33457
+ erp_kvk_valid: {
33458
+ Args: {
33459
+ _kvk: string;
33460
+ };
33461
+ Returns: boolean;
33462
+ };
33463
+ erp_record_app_origin: {
33464
+ Args: {
33465
+ p_actor: string;
33466
+ p_code: string;
33467
+ p_origin: string;
33468
+ };
33469
+ Returns: boolean;
33470
+ };
33471
+ erp_release_deleted_concept: {
33472
+ Args: {
33473
+ p_actor: string;
33474
+ p_link_id: string;
33475
+ };
33476
+ Returns: Json;
33477
+ };
33478
+ erp_vat_valid: {
33479
+ Args: {
33480
+ _country: string;
33481
+ _vat: string;
33482
+ };
33483
+ Returns: boolean;
33484
+ };
32768
33485
  exact_auth_consume_calls: {
32769
33486
  Args: {
32770
33487
  _account_key: string;
@@ -34188,6 +34905,14 @@ export type Database = {
34188
34905
  };
34189
34906
  Returns: undefined;
34190
34907
  };
34908
+ layout_klantvariant_voor: {
34909
+ Args: {
34910
+ p_administratie_code: string;
34911
+ p_documenttype: string;
34912
+ p_klant_id: string;
34913
+ };
34914
+ Returns: string;
34915
+ };
34191
34916
  layout_print_document: {
34192
34917
  Args: {
34193
34918
  _documentnaam: string;
@@ -34265,6 +34990,35 @@ export type Database = {
34265
34990
  rijen: number;
34266
34991
  }[];
34267
34992
  };
34993
+ layouts_dubbel_oplossen: {
34994
+ Args: {
34995
+ p_layout_id: string;
34996
+ p_naar_klantvariant: string[];
34997
+ };
34998
+ Returns: Json;
34999
+ };
35000
+ layouts_dubbel_overzicht: {
35001
+ Args: never;
35002
+ Returns: Json;
35003
+ };
35004
+ layouts_dubbel_voorbeeld: {
35005
+ Args: {
35006
+ p_layout_id: string;
35007
+ };
35008
+ Returns: Json;
35009
+ };
35010
+ layouts_factuur_bevries_afbeeldingen: {
35011
+ Args: {
35012
+ p_afbeeldingen: Json;
35013
+ p_layout_id: string;
35014
+ p_versie: number;
35015
+ };
35016
+ Returns: Json;
35017
+ };
35018
+ layouts_formaatklassen_samenvoegen: {
35019
+ Args: never;
35020
+ Returns: Json;
35021
+ };
34268
35022
  layouts_install_check: {
34269
35023
  Args: never;
34270
35024
  Returns: Json;
@@ -34292,6 +35046,12 @@ export type Database = {
34292
35046
  Args: never;
34293
35047
  Returns: Json;
34294
35048
  };
35049
+ layouts_vergrendeld_ontbrekend: {
35050
+ Args: {
35051
+ p_config: Json;
35052
+ };
35053
+ Returns: string[];
35054
+ };
34295
35055
  layouts_vrijgeven_vastgelopen: {
34296
35056
  Args: {
34297
35057
  p_houder: string;
@@ -34305,6 +35065,10 @@ export type Database = {
34305
35065
  };
34306
35066
  Returns: Json;
34307
35067
  };
35068
+ layouts_zet_uniek_indexen: {
35069
+ Args: never;
35070
+ Returns: Json;
35071
+ };
34308
35072
  layouts_zorg_voor_a4_stickervel: {
34309
35073
  Args: never;
34310
35074
  Returns: Json;
@@ -34982,6 +35746,12 @@ export type Database = {
34982
35746
  Args: never;
34983
35747
  Returns: Json;
34984
35748
  };
35749
+ logistics_cart_aantal_afwijking_core: {
35750
+ Args: {
35751
+ p_cart_id: string;
35752
+ };
35753
+ Returns: string[];
35754
+ };
34985
35755
  logistics_cart_archive: {
34986
35756
  Args: {
34987
35757
  p_confirm_count: number;
@@ -35188,6 +35958,12 @@ export type Database = {
35188
35958
  };
35189
35959
  Returns: Json;
35190
35960
  };
35961
+ logistics_cart_regels_verouderd_core: {
35962
+ Args: {
35963
+ p_cart_id: string;
35964
+ };
35965
+ Returns: Json;
35966
+ };
35191
35967
  logistics_cart_release_reason: {
35192
35968
  Args: {
35193
35969
  p_cart_id: string;
@@ -36285,6 +37061,14 @@ export type Database = {
36285
37061
  uitleg: string;
36286
37062
  }[];
36287
37063
  };
37064
+ logistics_install_check_213: {
37065
+ Args: never;
37066
+ Returns: {
37067
+ ok: boolean;
37068
+ punt: string;
37069
+ uitleg: string;
37070
+ }[];
37071
+ };
36288
37072
  logistics_is_beheer: {
36289
37073
  Args: never;
36290
37074
  Returns: boolean;
@@ -36389,6 +37173,12 @@ export type Database = {
36389
37173
  };
36390
37174
  Returns: string;
36391
37175
  };
37176
+ logistics_ladingdrager_kies: {
37177
+ Args: {
37178
+ p_regels: Json;
37179
+ };
37180
+ Returns: Json;
37181
+ };
36392
37182
  logistics_ladingdrager_referentie: {
36393
37183
  Args: never;
36394
37184
  Returns: {
@@ -44056,6 +44846,10 @@ export type Database = {
44056
44846
  fust_type_id: string;
44057
44847
  }[];
44058
44848
  };
44849
+ voorraad_gateway_routes_check: {
44850
+ Args: never;
44851
+ Returns: Json;
44852
+ };
44059
44853
  voorraad_hook_base_url: {
44060
44854
  Args: never;
44061
44855
  Returns: string;
@@ -44116,6 +44910,13 @@ export type Database = {
44116
44910
  };
44117
44911
  Returns: string[];
44118
44912
  };
44913
+ voorraad_placeholder_code_reason: {
44914
+ Args: {
44915
+ p_code: string;
44916
+ p_name: string;
44917
+ };
44918
+ Returns: string;
44919
+ };
44119
44920
  voorraad_production_enabled: {
44120
44921
  Args: never;
44121
44922
  Returns: boolean;