@vepler/sdk 6.66.0 → 7.1.2
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.
- package/README.md +14 -2
- package/dist/commonjs/funcs/companiesGetCompaniesByLocation.d.ts +1 -1
- package/dist/commonjs/funcs/companiesGetCompaniesByLocation.d.ts.map +1 -1
- package/dist/commonjs/funcs/companiesGetCompaniesByLocation.js +1 -1
- package/dist/commonjs/funcs/companiesGetCompaniesByLocation.js.map +1 -1
- package/dist/commonjs/funcs/companiesGetCompany.d.ts +2 -2
- package/dist/commonjs/funcs/companiesGetCompany.d.ts.map +1 -1
- package/dist/commonjs/funcs/companiesGetCompany.js +2 -2
- package/dist/commonjs/funcs/companiesGetCompany.js.map +1 -1
- package/dist/commonjs/funcs/companiesGetCompanyOfficers.d.ts +1 -1
- package/dist/commonjs/funcs/companiesGetCompanyOfficers.d.ts.map +1 -1
- package/dist/commonjs/funcs/companiesGetCompanyOfficers.js +1 -1
- package/dist/commonjs/funcs/companiesGetCompanyOfficers.js.map +1 -1
- package/dist/commonjs/funcs/companiesGetCompanyPscs.d.ts +2 -2
- package/dist/commonjs/funcs/companiesGetCompanyPscs.d.ts.map +1 -1
- package/dist/commonjs/funcs/companiesGetCompanyPscs.js +2 -2
- package/dist/commonjs/funcs/companiesGetCompanyPscs.js.map +1 -1
- package/dist/commonjs/funcs/companiesGetOfficer.d.ts +1 -1
- package/dist/commonjs/funcs/companiesGetOfficer.d.ts.map +1 -1
- package/dist/commonjs/funcs/companiesGetOfficer.js +1 -1
- package/dist/commonjs/funcs/companiesGetOfficer.js.map +1 -1
- package/dist/commonjs/funcs/companiesGetPerson.d.ts +1 -1
- package/dist/commonjs/funcs/companiesGetPerson.d.ts.map +1 -1
- package/dist/commonjs/funcs/companiesGetPerson.js +1 -1
- package/dist/commonjs/funcs/companiesGetPerson.js.map +1 -1
- package/dist/commonjs/funcs/companiesGetPersonAppointments.d.ts +1 -1
- package/dist/commonjs/funcs/companiesGetPersonAppointments.d.ts.map +1 -1
- package/dist/commonjs/funcs/companiesGetPersonAppointments.js +2 -1
- package/dist/commonjs/funcs/companiesGetPersonAppointments.js.map +1 -1
- package/dist/commonjs/funcs/companiesGetPersonCluster.d.ts +1 -1
- package/dist/commonjs/funcs/companiesGetPersonCluster.d.ts.map +1 -1
- package/dist/commonjs/funcs/companiesGetPersonCluster.js +1 -1
- package/dist/commonjs/funcs/companiesGetPersonCluster.js.map +1 -1
- package/dist/commonjs/funcs/companiesGetPsc.d.ts +1 -1
- package/dist/commonjs/funcs/companiesGetPsc.d.ts.map +1 -1
- package/dist/commonjs/funcs/companiesGetPsc.js +1 -1
- package/dist/commonjs/funcs/companiesGetPsc.js.map +1 -1
- package/dist/commonjs/funcs/companiesQueryCompanies.d.ts +2 -2
- package/dist/commonjs/funcs/companiesQueryCompanies.d.ts.map +1 -1
- package/dist/commonjs/funcs/companiesQueryCompanies.js +4 -6
- package/dist/commonjs/funcs/companiesQueryCompanies.js.map +1 -1
- package/dist/commonjs/funcs/companiesQueryPersons.d.ts +1 -1
- package/dist/commonjs/funcs/companiesQueryPersons.d.ts.map +1 -1
- package/dist/commonjs/funcs/companiesQueryPersons.js +1 -1
- package/dist/commonjs/funcs/companiesQueryPersons.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/sdk/companies.d.ts +4 -4
- package/dist/commonjs/sdk/companies.d.ts.map +1 -1
- package/dist/commonjs/sdk/companies.js +3 -3
- package/dist/commonjs/sdk/companies.js.map +1 -1
- package/dist/commonjs/sdk/models/errors/getcompaniesbylocation.d.ts +65 -0
- package/dist/commonjs/sdk/models/errors/getcompaniesbylocation.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/errors/getcompaniesbylocation.js +57 -1
- package/dist/commonjs/sdk/models/errors/getcompaniesbylocation.js.map +1 -1
- package/dist/commonjs/sdk/models/errors/getcompany.d.ts +65 -0
- package/dist/commonjs/sdk/models/errors/getcompany.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/errors/getcompany.js +57 -1
- package/dist/commonjs/sdk/models/errors/getcompany.js.map +1 -1
- package/dist/commonjs/sdk/models/errors/getcompanyofficers.d.ts +65 -0
- package/dist/commonjs/sdk/models/errors/getcompanyofficers.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/errors/getcompanyofficers.js +57 -1
- package/dist/commonjs/sdk/models/errors/getcompanyofficers.js.map +1 -1
- package/dist/commonjs/sdk/models/errors/getcompanypscs.d.ts +130 -0
- package/dist/commonjs/sdk/models/errors/getcompanypscs.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/errors/getcompanypscs.js +113 -1
- package/dist/commonjs/sdk/models/errors/getcompanypscs.js.map +1 -1
- package/dist/commonjs/sdk/models/errors/getofficer.d.ts +65 -0
- package/dist/commonjs/sdk/models/errors/getofficer.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/errors/getofficer.js +57 -1
- package/dist/commonjs/sdk/models/errors/getofficer.js.map +1 -1
- package/dist/commonjs/sdk/models/errors/getperson.d.ts +65 -0
- package/dist/commonjs/sdk/models/errors/getperson.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/errors/getperson.js +57 -1
- package/dist/commonjs/sdk/models/errors/getperson.js.map +1 -1
- package/dist/commonjs/sdk/models/errors/getpersonappointments.d.ts +65 -0
- package/dist/commonjs/sdk/models/errors/getpersonappointments.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/errors/getpersonappointments.js +57 -1
- package/dist/commonjs/sdk/models/errors/getpersonappointments.js.map +1 -1
- package/dist/commonjs/sdk/models/errors/getpersoncluster.d.ts +65 -0
- package/dist/commonjs/sdk/models/errors/getpersoncluster.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/errors/getpersoncluster.js +57 -1
- package/dist/commonjs/sdk/models/errors/getpersoncluster.js.map +1 -1
- package/dist/commonjs/sdk/models/errors/getpsc.d.ts +65 -0
- package/dist/commonjs/sdk/models/errors/getpsc.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/errors/getpsc.js +57 -1
- package/dist/commonjs/sdk/models/errors/getpsc.js.map +1 -1
- package/dist/commonjs/sdk/models/errors/querycompanies.d.ts +65 -0
- package/dist/commonjs/sdk/models/errors/querycompanies.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/errors/querycompanies.js +57 -1
- package/dist/commonjs/sdk/models/errors/querycompanies.js.map +1 -1
- package/dist/commonjs/sdk/models/errors/querypersons.d.ts +65 -0
- package/dist/commonjs/sdk/models/errors/querypersons.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/errors/querypersons.js +57 -1
- package/dist/commonjs/sdk/models/errors/querypersons.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/getcompany.d.ts +2 -2
- package/dist/commonjs/sdk/models/shared/airqualityinstallations.d.ts +4 -4
- package/dist/commonjs/sdk/models/shared/airqualityinstallations.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/airqualityinstallations.js +6 -7
- package/dist/commonjs/sdk/models/shared/airqualityinstallations.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/appointmentsresponse.d.ts +1 -0
- package/dist/commonjs/sdk/models/shared/appointmentsresponse.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/appointmentsresponse.js +1 -0
- package/dist/commonjs/sdk/models/shared/appointmentsresponse.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/company.d.ts +19 -88
- package/dist/commonjs/sdk/models/shared/company.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/company.js +9 -52
- package/dist/commonjs/sdk/models/shared/company.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/companyqueryrequest.d.ts +5 -33
- package/dist/commonjs/sdk/models/shared/companyqueryrequest.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/companyqueryrequest.js +3 -19
- package/dist/commonjs/sdk/models/shared/companyqueryrequest.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/companyresponse.d.ts +4 -0
- package/dist/commonjs/sdk/models/shared/companyresponse.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/companyresponse.js +1 -0
- package/dist/commonjs/sdk/models/shared/companyresponse.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/companysummary.d.ts +18 -35
- package/dist/commonjs/sdk/models/shared/companysummary.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/companysummary.js +9 -22
- package/dist/commonjs/sdk/models/shared/companysummary.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/index.d.ts +3 -0
- package/dist/commonjs/sdk/models/shared/index.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/index.js +3 -0
- package/dist/commonjs/sdk/models/shared/index.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/psc.d.ts +8 -4
- package/dist/commonjs/sdk/models/shared/psc.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/psc.js +3 -2
- package/dist/commonjs/sdk/models/shared/psc.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/pscexemption.d.ts +33 -0
- package/dist/commonjs/sdk/models/shared/pscexemption.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/pscexemption.js +61 -0
- package/dist/commonjs/sdk/models/shared/pscexemption.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/psclistresponse.d.ts +19 -1
- package/dist/commonjs/sdk/models/shared/psclistresponse.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/psclistresponse.js +6 -0
- package/dist/commonjs/sdk/models/shared/psclistresponse.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/pscresponse.d.ts +4 -0
- package/dist/commonjs/sdk/models/shared/pscresponse.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/pscresponse.js +1 -0
- package/dist/commonjs/sdk/models/shared/pscresponse.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/pscstatement.d.ts +32 -0
- package/dist/commonjs/sdk/models/shared/pscstatement.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/pscstatement.js +54 -0
- package/dist/commonjs/sdk/models/shared/pscstatement.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/pscsummary.d.ts +8 -4
- package/dist/commonjs/sdk/models/shared/pscsummary.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/pscsummary.js +3 -2
- package/dist/commonjs/sdk/models/shared/pscsummary.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/site.d.ts +1 -1
- package/dist/commonjs/sdk/models/shared/siteplanningapplicationlink.d.ts +56 -0
- package/dist/commonjs/sdk/models/shared/siteplanningapplicationlink.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/siteplanningapplicationlink.js +73 -0
- package/dist/commonjs/sdk/models/shared/siteplanningapplicationlink.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/siteplanningstats.d.ts +19 -14
- package/dist/commonjs/sdk/models/shared/siteplanningstats.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/siteplanningstats.js +3 -1
- package/dist/commonjs/sdk/models/shared/siteplanningstats.js.map +1 -1
- package/dist/esm/funcs/companiesGetCompaniesByLocation.d.ts +1 -1
- package/dist/esm/funcs/companiesGetCompaniesByLocation.d.ts.map +1 -1
- package/dist/esm/funcs/companiesGetCompaniesByLocation.js +1 -1
- package/dist/esm/funcs/companiesGetCompaniesByLocation.js.map +1 -1
- package/dist/esm/funcs/companiesGetCompany.d.ts +2 -2
- package/dist/esm/funcs/companiesGetCompany.d.ts.map +1 -1
- package/dist/esm/funcs/companiesGetCompany.js +2 -2
- package/dist/esm/funcs/companiesGetCompany.js.map +1 -1
- package/dist/esm/funcs/companiesGetCompanyOfficers.d.ts +1 -1
- package/dist/esm/funcs/companiesGetCompanyOfficers.d.ts.map +1 -1
- package/dist/esm/funcs/companiesGetCompanyOfficers.js +1 -1
- package/dist/esm/funcs/companiesGetCompanyOfficers.js.map +1 -1
- package/dist/esm/funcs/companiesGetCompanyPscs.d.ts +2 -2
- package/dist/esm/funcs/companiesGetCompanyPscs.d.ts.map +1 -1
- package/dist/esm/funcs/companiesGetCompanyPscs.js +2 -2
- package/dist/esm/funcs/companiesGetCompanyPscs.js.map +1 -1
- package/dist/esm/funcs/companiesGetOfficer.d.ts +1 -1
- package/dist/esm/funcs/companiesGetOfficer.d.ts.map +1 -1
- package/dist/esm/funcs/companiesGetOfficer.js +1 -1
- package/dist/esm/funcs/companiesGetOfficer.js.map +1 -1
- package/dist/esm/funcs/companiesGetPerson.d.ts +1 -1
- package/dist/esm/funcs/companiesGetPerson.d.ts.map +1 -1
- package/dist/esm/funcs/companiesGetPerson.js +1 -1
- package/dist/esm/funcs/companiesGetPerson.js.map +1 -1
- package/dist/esm/funcs/companiesGetPersonAppointments.d.ts +1 -1
- package/dist/esm/funcs/companiesGetPersonAppointments.d.ts.map +1 -1
- package/dist/esm/funcs/companiesGetPersonAppointments.js +2 -1
- package/dist/esm/funcs/companiesGetPersonAppointments.js.map +1 -1
- package/dist/esm/funcs/companiesGetPersonCluster.d.ts +1 -1
- package/dist/esm/funcs/companiesGetPersonCluster.d.ts.map +1 -1
- package/dist/esm/funcs/companiesGetPersonCluster.js +1 -1
- package/dist/esm/funcs/companiesGetPersonCluster.js.map +1 -1
- package/dist/esm/funcs/companiesGetPsc.d.ts +1 -1
- package/dist/esm/funcs/companiesGetPsc.d.ts.map +1 -1
- package/dist/esm/funcs/companiesGetPsc.js +1 -1
- package/dist/esm/funcs/companiesGetPsc.js.map +1 -1
- package/dist/esm/funcs/companiesQueryCompanies.d.ts +2 -2
- package/dist/esm/funcs/companiesQueryCompanies.d.ts.map +1 -1
- package/dist/esm/funcs/companiesQueryCompanies.js +4 -6
- package/dist/esm/funcs/companiesQueryCompanies.js.map +1 -1
- package/dist/esm/funcs/companiesQueryPersons.d.ts +1 -1
- package/dist/esm/funcs/companiesQueryPersons.d.ts.map +1 -1
- package/dist/esm/funcs/companiesQueryPersons.js +1 -1
- package/dist/esm/funcs/companiesQueryPersons.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/sdk/companies.d.ts +4 -4
- package/dist/esm/sdk/companies.d.ts.map +1 -1
- package/dist/esm/sdk/companies.js +3 -3
- package/dist/esm/sdk/companies.js.map +1 -1
- package/dist/esm/sdk/models/errors/getcompaniesbylocation.d.ts +65 -0
- package/dist/esm/sdk/models/errors/getcompaniesbylocation.d.ts.map +1 -1
- package/dist/esm/sdk/models/errors/getcompaniesbylocation.js +54 -0
- package/dist/esm/sdk/models/errors/getcompaniesbylocation.js.map +1 -1
- package/dist/esm/sdk/models/errors/getcompany.d.ts +65 -0
- package/dist/esm/sdk/models/errors/getcompany.d.ts.map +1 -1
- package/dist/esm/sdk/models/errors/getcompany.js +54 -0
- package/dist/esm/sdk/models/errors/getcompany.js.map +1 -1
- package/dist/esm/sdk/models/errors/getcompanyofficers.d.ts +65 -0
- package/dist/esm/sdk/models/errors/getcompanyofficers.d.ts.map +1 -1
- package/dist/esm/sdk/models/errors/getcompanyofficers.js +54 -0
- package/dist/esm/sdk/models/errors/getcompanyofficers.js.map +1 -1
- package/dist/esm/sdk/models/errors/getcompanypscs.d.ts +130 -0
- package/dist/esm/sdk/models/errors/getcompanypscs.d.ts.map +1 -1
- package/dist/esm/sdk/models/errors/getcompanypscs.js +108 -0
- package/dist/esm/sdk/models/errors/getcompanypscs.js.map +1 -1
- package/dist/esm/sdk/models/errors/getofficer.d.ts +65 -0
- package/dist/esm/sdk/models/errors/getofficer.d.ts.map +1 -1
- package/dist/esm/sdk/models/errors/getofficer.js +54 -0
- package/dist/esm/sdk/models/errors/getofficer.js.map +1 -1
- package/dist/esm/sdk/models/errors/getperson.d.ts +65 -0
- package/dist/esm/sdk/models/errors/getperson.d.ts.map +1 -1
- package/dist/esm/sdk/models/errors/getperson.js +54 -0
- package/dist/esm/sdk/models/errors/getperson.js.map +1 -1
- package/dist/esm/sdk/models/errors/getpersonappointments.d.ts +65 -0
- package/dist/esm/sdk/models/errors/getpersonappointments.d.ts.map +1 -1
- package/dist/esm/sdk/models/errors/getpersonappointments.js +54 -0
- package/dist/esm/sdk/models/errors/getpersonappointments.js.map +1 -1
- package/dist/esm/sdk/models/errors/getpersoncluster.d.ts +65 -0
- package/dist/esm/sdk/models/errors/getpersoncluster.d.ts.map +1 -1
- package/dist/esm/sdk/models/errors/getpersoncluster.js +54 -0
- package/dist/esm/sdk/models/errors/getpersoncluster.js.map +1 -1
- package/dist/esm/sdk/models/errors/getpsc.d.ts +65 -0
- package/dist/esm/sdk/models/errors/getpsc.d.ts.map +1 -1
- package/dist/esm/sdk/models/errors/getpsc.js +54 -0
- package/dist/esm/sdk/models/errors/getpsc.js.map +1 -1
- package/dist/esm/sdk/models/errors/querycompanies.d.ts +65 -0
- package/dist/esm/sdk/models/errors/querycompanies.d.ts.map +1 -1
- package/dist/esm/sdk/models/errors/querycompanies.js +54 -0
- package/dist/esm/sdk/models/errors/querycompanies.js.map +1 -1
- package/dist/esm/sdk/models/errors/querypersons.d.ts +65 -0
- package/dist/esm/sdk/models/errors/querypersons.d.ts.map +1 -1
- package/dist/esm/sdk/models/errors/querypersons.js +54 -0
- package/dist/esm/sdk/models/errors/querypersons.js.map +1 -1
- package/dist/esm/sdk/models/operations/getcompany.d.ts +2 -2
- package/dist/esm/sdk/models/shared/airqualityinstallations.d.ts +4 -4
- package/dist/esm/sdk/models/shared/airqualityinstallations.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/airqualityinstallations.js +4 -5
- package/dist/esm/sdk/models/shared/airqualityinstallations.js.map +1 -1
- package/dist/esm/sdk/models/shared/appointmentsresponse.d.ts +1 -0
- package/dist/esm/sdk/models/shared/appointmentsresponse.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/appointmentsresponse.js +1 -0
- package/dist/esm/sdk/models/shared/appointmentsresponse.js.map +1 -1
- package/dist/esm/sdk/models/shared/company.d.ts +19 -88
- package/dist/esm/sdk/models/shared/company.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/company.js +8 -51
- package/dist/esm/sdk/models/shared/company.js.map +1 -1
- package/dist/esm/sdk/models/shared/companyqueryrequest.d.ts +5 -33
- package/dist/esm/sdk/models/shared/companyqueryrequest.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/companyqueryrequest.js +2 -18
- package/dist/esm/sdk/models/shared/companyqueryrequest.js.map +1 -1
- package/dist/esm/sdk/models/shared/companyresponse.d.ts +4 -0
- package/dist/esm/sdk/models/shared/companyresponse.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/companyresponse.js +1 -0
- package/dist/esm/sdk/models/shared/companyresponse.js.map +1 -1
- package/dist/esm/sdk/models/shared/companysummary.d.ts +18 -35
- package/dist/esm/sdk/models/shared/companysummary.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/companysummary.js +8 -21
- package/dist/esm/sdk/models/shared/companysummary.js.map +1 -1
- package/dist/esm/sdk/models/shared/index.d.ts +3 -0
- package/dist/esm/sdk/models/shared/index.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/index.js +3 -0
- package/dist/esm/sdk/models/shared/index.js.map +1 -1
- package/dist/esm/sdk/models/shared/psc.d.ts +8 -4
- package/dist/esm/sdk/models/shared/psc.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/psc.js +3 -2
- package/dist/esm/sdk/models/shared/psc.js.map +1 -1
- package/dist/esm/sdk/models/shared/pscexemption.d.ts +33 -0
- package/dist/esm/sdk/models/shared/pscexemption.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/pscexemption.js +23 -0
- package/dist/esm/sdk/models/shared/pscexemption.js.map +1 -0
- package/dist/esm/sdk/models/shared/psclistresponse.d.ts +19 -1
- package/dist/esm/sdk/models/shared/psclistresponse.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/psclistresponse.js +6 -0
- package/dist/esm/sdk/models/shared/psclistresponse.js.map +1 -1
- package/dist/esm/sdk/models/shared/pscresponse.d.ts +4 -0
- package/dist/esm/sdk/models/shared/pscresponse.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/pscresponse.js +1 -0
- package/dist/esm/sdk/models/shared/pscresponse.js.map +1 -1
- package/dist/esm/sdk/models/shared/pscstatement.d.ts +32 -0
- package/dist/esm/sdk/models/shared/pscstatement.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/pscstatement.js +17 -0
- package/dist/esm/sdk/models/shared/pscstatement.js.map +1 -0
- package/dist/esm/sdk/models/shared/pscsummary.d.ts +8 -4
- package/dist/esm/sdk/models/shared/pscsummary.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/pscsummary.js +3 -2
- package/dist/esm/sdk/models/shared/pscsummary.js.map +1 -1
- package/dist/esm/sdk/models/shared/site.d.ts +1 -1
- package/dist/esm/sdk/models/shared/siteplanningapplicationlink.d.ts +56 -0
- package/dist/esm/sdk/models/shared/siteplanningapplicationlink.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/siteplanningapplicationlink.js +36 -0
- package/dist/esm/sdk/models/shared/siteplanningapplicationlink.js.map +1 -0
- package/dist/esm/sdk/models/shared/siteplanningstats.d.ts +19 -14
- package/dist/esm/sdk/models/shared/siteplanningstats.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/siteplanningstats.js +3 -1
- package/dist/esm/sdk/models/shared/siteplanningstats.js.map +1 -1
- package/package.json +1 -1
- package/src/funcs/companiesGetCompaniesByLocation.ts +7 -0
- package/src/funcs/companiesGetCompany.ts +8 -1
- package/src/funcs/companiesGetCompanyOfficers.ts +7 -0
- package/src/funcs/companiesGetCompanyPscs.ts +16 -2
- package/src/funcs/companiesGetOfficer.ts +7 -0
- package/src/funcs/companiesGetPerson.ts +7 -0
- package/src/funcs/companiesGetPersonAppointments.ts +8 -0
- package/src/funcs/companiesGetPersonCluster.ts +7 -0
- package/src/funcs/companiesGetPsc.ts +4 -0
- package/src/funcs/companiesQueryCompanies.ts +12 -8
- package/src/funcs/companiesQueryPersons.ts +7 -0
- package/src/lib/config.ts +2 -2
- package/src/sdk/companies.ts +4 -4
- package/src/sdk/models/errors/getcompaniesbylocation.ts +140 -0
- package/src/sdk/models/errors/getcompany.ts +126 -0
- package/src/sdk/models/errors/getcompanyofficers.ts +136 -0
- package/src/sdk/models/errors/getcompanypscs.ts +265 -0
- package/src/sdk/models/errors/getofficer.ts +126 -0
- package/src/sdk/models/errors/getperson.ts +128 -0
- package/src/sdk/models/errors/getpersonappointments.ts +140 -0
- package/src/sdk/models/errors/getpersoncluster.ts +138 -0
- package/src/sdk/models/errors/getpsc.ts +127 -0
- package/src/sdk/models/errors/querycompanies.ts +129 -0
- package/src/sdk/models/errors/querypersons.ts +128 -0
- package/src/sdk/models/operations/getcompany.ts +2 -2
- package/src/sdk/models/shared/airqualityinstallations.ts +20 -17
- package/src/sdk/models/shared/appointmentsresponse.ts +1 -0
- package/src/sdk/models/shared/company.ts +25 -114
- package/src/sdk/models/shared/companyqueryrequest.ts +5 -39
- package/src/sdk/models/shared/companyresponse.ts +5 -0
- package/src/sdk/models/shared/companysummary.ts +24 -47
- package/src/sdk/models/shared/index.ts +3 -0
- package/src/sdk/models/shared/psc.ts +11 -6
- package/src/sdk/models/shared/pscexemption.ts +70 -0
- package/src/sdk/models/shared/psclistresponse.ts +23 -1
- package/src/sdk/models/shared/pscresponse.ts +5 -0
- package/src/sdk/models/shared/pscstatement.ts +57 -0
- package/src/sdk/models/shared/pscsummary.ts +11 -6
- package/src/sdk/models/shared/site.ts +1 -1
- package/src/sdk/models/shared/siteplanningapplicationlink.ts +92 -0
- package/src/sdk/models/shared/siteplanningstats.ts +24 -15
|
@@ -7,11 +7,12 @@ import { safeParse } from "../../../lib/schemas.js";
|
|
|
7
7
|
import * as openEnums from "../../types/enums.js";
|
|
8
8
|
import { OpenEnum } from "../../types/enums.js";
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { RFCDate } from "../../types/rfcdate.js";
|
|
10
11
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
12
|
import { SicCode, SicCode$inboundSchema } from "./siccode.js";
|
|
12
13
|
|
|
13
14
|
/**
|
|
14
|
-
* Where the company stands on the Companies House register. `active` and `registered` are live, `dissolved` and `removed` have left the register, and `liquidation`, `receivership`, `administration`, `voluntary-arrangement` and `insolvency-proceedings` are stages of insolvency. Overseas entities use `open` and `closed` rather than `active` and `dissolved`.
|
|
15
|
+
* Where the company stands on the Companies House register. `active` and `registered` are live, `dissolved` and `removed` have left the register, and `liquidation`, `receivership`, `administration`, `voluntary-arrangement` and `insolvency-proceedings` are stages of insolvency. Overseas entities use `open` and `closed` rather than `active` and `dissolved`. `not-in-latest-register` means the latest monthly release of the register, which lists live companies only, no longer lists the company; the status it last carried no longer applies, and notInLatestRegisterSince gives the release it first went missing from. Null when the register records no status for the company.
|
|
15
16
|
*/
|
|
16
17
|
export const CompanySummaryCompanyStatus = {
|
|
17
18
|
Active: "active",
|
|
@@ -26,16 +27,17 @@ export const CompanySummaryCompanyStatus = {
|
|
|
26
27
|
Closed: "closed",
|
|
27
28
|
Registered: "registered",
|
|
28
29
|
Removed: "removed",
|
|
30
|
+
NotInLatestRegister: "not-in-latest-register",
|
|
29
31
|
} as const;
|
|
30
32
|
/**
|
|
31
|
-
* Where the company stands on the Companies House register. `active` and `registered` are live, `dissolved` and `removed` have left the register, and `liquidation`, `receivership`, `administration`, `voluntary-arrangement` and `insolvency-proceedings` are stages of insolvency. Overseas entities use `open` and `closed` rather than `active` and `dissolved`.
|
|
33
|
+
* Where the company stands on the Companies House register. `active` and `registered` are live, `dissolved` and `removed` have left the register, and `liquidation`, `receivership`, `administration`, `voluntary-arrangement` and `insolvency-proceedings` are stages of insolvency. Overseas entities use `open` and `closed` rather than `active` and `dissolved`. `not-in-latest-register` means the latest monthly release of the register, which lists live companies only, no longer lists the company; the status it last carried no longer applies, and notInLatestRegisterSince gives the release it first went missing from. Null when the register records no status for the company.
|
|
32
34
|
*/
|
|
33
35
|
export type CompanySummaryCompanyStatus = OpenEnum<
|
|
34
36
|
typeof CompanySummaryCompanyStatus
|
|
35
37
|
>;
|
|
36
38
|
|
|
37
39
|
/**
|
|
38
|
-
* The legal structure the entity is registered under. Most companies are `ltd` (private company limited by shares), `plc` (public limited company) or `llp` (limited liability partnership); the remaining values cover overseas entities, investment vehicles, charitable forms and older company types.
|
|
40
|
+
* The legal structure the entity is registered under. Most companies are `ltd` (private company limited by shares), `plc` (public limited company) or `llp` (limited liability partnership); the remaining values cover overseas entities, investment vehicles, charitable forms and older company types. Null when the register records no type for the company.
|
|
39
41
|
*/
|
|
40
42
|
export const CompanySummaryCompanyType = {
|
|
41
43
|
PrivateUnlimited: "private-unlimited",
|
|
@@ -82,32 +84,12 @@ export const CompanySummaryCompanyType = {
|
|
|
82
84
|
RegisteredOverseasEntity: "registered-overseas-entity",
|
|
83
85
|
} as const;
|
|
84
86
|
/**
|
|
85
|
-
* The legal structure the entity is registered under. Most companies are `ltd` (private company limited by shares), `plc` (public limited company) or `llp` (limited liability partnership); the remaining values cover overseas entities, investment vehicles, charitable forms and older company types.
|
|
87
|
+
* The legal structure the entity is registered under. Most companies are `ltd` (private company limited by shares), `plc` (public limited company) or `llp` (limited liability partnership); the remaining values cover overseas entities, investment vehicles, charitable forms and older company types. Null when the register records no type for the company.
|
|
86
88
|
*/
|
|
87
89
|
export type CompanySummaryCompanyType = OpenEnum<
|
|
88
90
|
typeof CompanySummaryCompanyType
|
|
89
91
|
>;
|
|
90
92
|
|
|
91
|
-
/**
|
|
92
|
-
* The UK jurisdiction the company is registered in, which sets the legal framework that applies to it and the Companies House office that holds the record. Most companies are `england-wales`.
|
|
93
|
-
*/
|
|
94
|
-
export const CompanySummaryJurisdiction = {
|
|
95
|
-
EnglandWales: "england-wales",
|
|
96
|
-
Wales: "wales",
|
|
97
|
-
Scotland: "scotland",
|
|
98
|
-
NorthernIreland: "northern-ireland",
|
|
99
|
-
EuropeanUnion: "european-union",
|
|
100
|
-
UnitedKingdom: "united-kingdom",
|
|
101
|
-
England: "england",
|
|
102
|
-
Noneu: "noneu",
|
|
103
|
-
} as const;
|
|
104
|
-
/**
|
|
105
|
-
* The UK jurisdiction the company is registered in, which sets the legal framework that applies to it and the Companies House office that holds the record. Most companies are `england-wales`.
|
|
106
|
-
*/
|
|
107
|
-
export type CompanySummaryJurisdiction = OpenEnum<
|
|
108
|
-
typeof CompanySummaryJurisdiction
|
|
109
|
-
>;
|
|
110
|
-
|
|
111
93
|
/**
|
|
112
94
|
* The company's registered office address. Not returned in list responses; fetch the company by its number to read it.
|
|
113
95
|
*/
|
|
@@ -167,33 +149,33 @@ export type CompanySummary = {
|
|
|
167
149
|
*/
|
|
168
150
|
companyNumber: string;
|
|
169
151
|
/**
|
|
170
|
-
* Where the company stands on the Companies House register. `active` and `registered` are live, `dissolved` and `removed` have left the register, and `liquidation`, `receivership`, `administration`, `voluntary-arrangement` and `insolvency-proceedings` are stages of insolvency. Overseas entities use `open` and `closed` rather than `active` and `dissolved`.
|
|
152
|
+
* Where the company stands on the Companies House register. `active` and `registered` are live, `dissolved` and `removed` have left the register, and `liquidation`, `receivership`, `administration`, `voluntary-arrangement` and `insolvency-proceedings` are stages of insolvency. Overseas entities use `open` and `closed` rather than `active` and `dissolved`. `not-in-latest-register` means the latest monthly release of the register, which lists live companies only, no longer lists the company; the status it last carried no longer applies, and notInLatestRegisterSince gives the release it first went missing from. Null when the register records no status for the company.
|
|
171
153
|
*/
|
|
172
|
-
companyStatus: CompanySummaryCompanyStatus;
|
|
154
|
+
companyStatus: CompanySummaryCompanyStatus | null;
|
|
173
155
|
/**
|
|
174
|
-
* The legal structure the entity is registered under. Most companies are `ltd` (private company limited by shares), `plc` (public limited company) or `llp` (limited liability partnership); the remaining values cover overseas entities, investment vehicles, charitable forms and older company types.
|
|
156
|
+
* The legal structure the entity is registered under. Most companies are `ltd` (private company limited by shares), `plc` (public limited company) or `llp` (limited liability partnership); the remaining values cover overseas entities, investment vehicles, charitable forms and older company types. Null when the register records no type for the company.
|
|
175
157
|
*/
|
|
176
|
-
companyType: CompanySummaryCompanyType;
|
|
158
|
+
companyType: CompanySummaryCompanyType | null;
|
|
177
159
|
/**
|
|
178
160
|
* True when the company has charges registered against it.
|
|
179
161
|
*/
|
|
180
162
|
hasCharges: boolean;
|
|
181
|
-
/**
|
|
182
|
-
* True when the register holds insolvency events for the company.
|
|
183
|
-
*/
|
|
184
|
-
hasInsolvencyHistory: boolean;
|
|
185
163
|
/**
|
|
186
164
|
* When the company came into legal existence, as an ISO 8601 date.
|
|
187
165
|
*/
|
|
188
166
|
incorporationDate?: Date | null | undefined;
|
|
189
|
-
/**
|
|
190
|
-
* The UK jurisdiction the company is registered in, which sets the legal framework that applies to it and the Companies House office that holds the record. Most companies are `england-wales`.
|
|
191
|
-
*/
|
|
192
|
-
jurisdiction: CompanySummaryJurisdiction;
|
|
193
167
|
/**
|
|
194
168
|
* Identifier for a single addressable location. In Great Britain this is the Unique Property Reference Number (UPRN). Null when the registered office address could not be matched to one.
|
|
195
169
|
*/
|
|
196
170
|
locationId?: string | null | undefined;
|
|
171
|
+
/**
|
|
172
|
+
* The release date of the first monthly release of the register that no longer listed the company, as an ISO 8601 date. The release lists live companies only, so this marks when the company stopped being listed; it is not a dissolution date. Null while the latest release lists the company, and companyStatus is `not-in-latest-register` whenever it is set.
|
|
173
|
+
*/
|
|
174
|
+
notInLatestRegisterSince?: RFCDate | null | undefined;
|
|
175
|
+
/**
|
|
176
|
+
* The company's status exactly as Companies House published it in the latest monthly release of the register that listed the company, such as `Active - Proposal to Strike off`. It keeps detail that companyStatus groups together. Null when no published status is held for the company.
|
|
177
|
+
*/
|
|
178
|
+
registerStatus?: string | null | undefined;
|
|
197
179
|
/**
|
|
198
180
|
* The company's registered office address. Not returned in list responses; fetch the company by its number to read it.
|
|
199
181
|
*/
|
|
@@ -221,13 +203,6 @@ export const CompanySummaryCompanyType$inboundSchema: z.ZodType<
|
|
|
221
203
|
unknown
|
|
222
204
|
> = openEnums.inboundSchema(CompanySummaryCompanyType);
|
|
223
205
|
|
|
224
|
-
/** @internal */
|
|
225
|
-
export const CompanySummaryJurisdiction$inboundSchema: z.ZodType<
|
|
226
|
-
CompanySummaryJurisdiction,
|
|
227
|
-
z.ZodTypeDef,
|
|
228
|
-
unknown
|
|
229
|
-
> = openEnums.inboundSchema(CompanySummaryJurisdiction);
|
|
230
|
-
|
|
231
206
|
/** @internal */
|
|
232
207
|
export const CompanySummaryRegisteredOfficeAddress$inboundSchema: z.ZodType<
|
|
233
208
|
CompanySummaryRegisteredOfficeAddress,
|
|
@@ -265,15 +240,17 @@ export const CompanySummary$inboundSchema: z.ZodType<
|
|
|
265
240
|
> = z.object({
|
|
266
241
|
companyName: z.string(),
|
|
267
242
|
companyNumber: z.string(),
|
|
268
|
-
companyStatus: CompanySummaryCompanyStatus$inboundSchema,
|
|
269
|
-
companyType: CompanySummaryCompanyType$inboundSchema,
|
|
243
|
+
companyStatus: z.nullable(CompanySummaryCompanyStatus$inboundSchema),
|
|
244
|
+
companyType: z.nullable(CompanySummaryCompanyType$inboundSchema),
|
|
270
245
|
hasCharges: z.boolean(),
|
|
271
|
-
hasInsolvencyHistory: z.boolean(),
|
|
272
246
|
incorporationDate: z.nullable(
|
|
273
247
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
274
248
|
).optional(),
|
|
275
|
-
jurisdiction: CompanySummaryJurisdiction$inboundSchema,
|
|
276
249
|
locationId: z.nullable(z.string()).optional(),
|
|
250
|
+
notInLatestRegisterSince: z.nullable(
|
|
251
|
+
z.string().transform(v => new RFCDate(v)),
|
|
252
|
+
).optional(),
|
|
253
|
+
registerStatus: z.nullable(z.string()).optional(),
|
|
277
254
|
registeredOfficeAddress: z.nullable(
|
|
278
255
|
z.lazy(() => CompanySummaryRegisteredOfficeAddress$inboundSchema),
|
|
279
256
|
).optional(),
|
|
@@ -346,8 +346,10 @@ export * from "./prosperityindicator.js";
|
|
|
346
346
|
export * from "./prosperitylistresponse.js";
|
|
347
347
|
export * from "./provenance.js";
|
|
348
348
|
export * from "./psc.js";
|
|
349
|
+
export * from "./pscexemption.js";
|
|
349
350
|
export * from "./psclistresponse.js";
|
|
350
351
|
export * from "./pscresponse.js";
|
|
352
|
+
export * from "./pscstatement.js";
|
|
351
353
|
export * from "./pscsummary.js";
|
|
352
354
|
export * from "./purchasestatus.js";
|
|
353
355
|
export * from "./rangedefinition.js";
|
|
@@ -413,6 +415,7 @@ export * from "./siteleafaggregation.js";
|
|
|
413
415
|
export * from "./sitelistresponse.js";
|
|
414
416
|
export * from "./sitemultipolygonareafilter.js";
|
|
415
417
|
export * from "./sitenestedaggregation.js";
|
|
418
|
+
export * from "./siteplanningapplicationlink.js";
|
|
416
419
|
export * from "./siteplanningstats.js";
|
|
417
420
|
export * from "./sitepointareafilter.js";
|
|
418
421
|
export * from "./sitepolygonareafilter.js";
|
|
@@ -105,14 +105,18 @@ export type Psc = {
|
|
|
105
105
|
* When this record first appeared in the API, as an ISO 8601 timestamp.
|
|
106
106
|
*/
|
|
107
107
|
createdAt: Date;
|
|
108
|
+
/**
|
|
109
|
+
* What the record is, as Companies House describes it, for a PSC whose identity is protected by court order and so carries no name, for example `super-secure-persons-with-significant-control`. Null for every other PSC.
|
|
110
|
+
*/
|
|
111
|
+
description: string | null;
|
|
108
112
|
/**
|
|
109
113
|
* Identifier for this PSC notification, as a UUID.
|
|
110
114
|
*/
|
|
111
115
|
id: string;
|
|
112
116
|
/**
|
|
113
|
-
* True when this PSC is subject to financial sanctions.
|
|
117
|
+
* True when this PSC is subject to financial sanctions. Companies House publishes this for the beneficial owners of overseas entities; null where it is not published.
|
|
114
118
|
*/
|
|
115
|
-
isSanctioned: boolean;
|
|
119
|
+
isSanctioned: boolean | null;
|
|
116
120
|
/**
|
|
117
121
|
* True when this PSC's identity is protected by a court order under s.790ZG of the Companies Act 2006, granted to individuals at serious risk of violence or intimidation. Personal details are withheld from the public register for these records.
|
|
118
122
|
*/
|
|
@@ -126,9 +130,9 @@ export type Psc = {
|
|
|
126
130
|
*/
|
|
127
131
|
linkingKind?: string | null | undefined;
|
|
128
132
|
/**
|
|
129
|
-
* The PSC's name as recorded on the notification. For an individual this includes the title; for a corporate entity it is the registered entity name.
|
|
133
|
+
* The PSC's name as recorded on the notification. For an individual this includes the title; for a corporate entity it is the registered entity name. Null for a PSC whose identity is protected by court order, which Companies House publishes without a name.
|
|
130
134
|
*/
|
|
131
|
-
name: string;
|
|
135
|
+
name: string | null;
|
|
132
136
|
/**
|
|
133
137
|
* The PSC's nationality. Set for individuals only.
|
|
134
138
|
*/
|
|
@@ -204,12 +208,13 @@ export const Psc$inboundSchema: z.ZodType<Psc, z.ZodTypeDef, unknown> = z
|
|
|
204
208
|
createdAt: z.string().datetime({ offset: true }).transform(v =>
|
|
205
209
|
new Date(v)
|
|
206
210
|
),
|
|
211
|
+
description: z.nullable(z.string()),
|
|
207
212
|
id: z.string(),
|
|
208
|
-
isSanctioned: z.boolean(),
|
|
213
|
+
isSanctioned: z.nullable(z.boolean()),
|
|
209
214
|
isSuperSecure: z.boolean(),
|
|
210
215
|
kind: PscKind$inboundSchema,
|
|
211
216
|
linkingKind: z.nullable(z.string()).optional(),
|
|
212
|
-
name: z.string(),
|
|
217
|
+
name: z.nullable(z.string()),
|
|
213
218
|
nationality: z.nullable(z.string()).optional(),
|
|
214
219
|
naturesOfControl: z.array(z.string()),
|
|
215
220
|
notificationId: z.nullable(z.string()).optional(),
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type Items = {
|
|
11
|
+
/**
|
|
12
|
+
* When the exemption began, as YYYY-MM-DD.
|
|
13
|
+
*/
|
|
14
|
+
exemptFrom: string;
|
|
15
|
+
/**
|
|
16
|
+
* When the exemption ended, as YYYY-MM-DD. Null while it applies.
|
|
17
|
+
*/
|
|
18
|
+
exemptTo: string | null;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* An exemption from the PSC register requirements that Companies House holds for the company.
|
|
23
|
+
*/
|
|
24
|
+
export type PscExemption = {
|
|
25
|
+
/**
|
|
26
|
+
* Why the company is exempt from keeping a PSC register, as the Companies House code, for example `psc-exempt-as-shares-admitted-on-market`.
|
|
27
|
+
*/
|
|
28
|
+
exemptionType: string;
|
|
29
|
+
/**
|
|
30
|
+
* The periods the exemption covered, one entry each.
|
|
31
|
+
*/
|
|
32
|
+
items: Array<Items>;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export const Items$inboundSchema: z.ZodType<Items, z.ZodTypeDef, unknown> = z
|
|
37
|
+
.object({
|
|
38
|
+
exemptFrom: z.string(),
|
|
39
|
+
exemptTo: z.nullable(z.string()),
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
export function itemsFromJSON(
|
|
43
|
+
jsonString: string,
|
|
44
|
+
): SafeParseResult<Items, SDKValidationError> {
|
|
45
|
+
return safeParse(
|
|
46
|
+
jsonString,
|
|
47
|
+
(x) => Items$inboundSchema.parse(JSON.parse(x)),
|
|
48
|
+
`Failed to parse 'Items' from JSON`,
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/** @internal */
|
|
53
|
+
export const PscExemption$inboundSchema: z.ZodType<
|
|
54
|
+
PscExemption,
|
|
55
|
+
z.ZodTypeDef,
|
|
56
|
+
unknown
|
|
57
|
+
> = z.object({
|
|
58
|
+
exemptionType: z.string(),
|
|
59
|
+
items: z.array(z.lazy(() => Items$inboundSchema)),
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
export function pscExemptionFromJSON(
|
|
63
|
+
jsonString: string,
|
|
64
|
+
): SafeParseResult<PscExemption, SDKValidationError> {
|
|
65
|
+
return safeParse(
|
|
66
|
+
jsonString,
|
|
67
|
+
(x) => PscExemption$inboundSchema.parse(JSON.parse(x)),
|
|
68
|
+
`Failed to parse 'PscExemption' from JSON`,
|
|
69
|
+
);
|
|
70
|
+
}
|
|
@@ -6,12 +6,22 @@ import * as z from "zod/v3";
|
|
|
6
6
|
import { safeParse } from "../../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import { PscExemption, PscExemption$inboundSchema } from "./pscexemption.js";
|
|
10
|
+
import { PscStatement, PscStatement$inboundSchema } from "./pscstatement.js";
|
|
9
11
|
import { PscSummary, PscSummary$inboundSchema } from "./pscsummary.js";
|
|
10
12
|
|
|
11
13
|
/**
|
|
12
|
-
* A page of PSC notifications for one company, with the total number of matches.
|
|
14
|
+
* A page of PSC notifications for one company, with the total number of matches and the company's PSC statements and exemptions.
|
|
13
15
|
*/
|
|
14
16
|
export type PscListResponse = {
|
|
17
|
+
/**
|
|
18
|
+
* True when the company is on the register of companies, so /companies/{companyNumber} returns its record. False when the company is known from PSC data only and has no company record here.
|
|
19
|
+
*/
|
|
20
|
+
companyInRegister: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* The company's exemptions from keeping a PSC register. Empty when it has none.
|
|
23
|
+
*/
|
|
24
|
+
exemptions: Array<PscExemption>;
|
|
15
25
|
/**
|
|
16
26
|
* True when further results exist beyond this page.
|
|
17
27
|
*/
|
|
@@ -24,10 +34,18 @@ export type PscListResponse = {
|
|
|
24
34
|
* The number of results skipped before this page.
|
|
25
35
|
*/
|
|
26
36
|
offset: number;
|
|
37
|
+
/**
|
|
38
|
+
* The date of the Companies House PSC data this answer was read from, as YYYY-MM-DD. Changes made at Companies House after this date are not reflected.
|
|
39
|
+
*/
|
|
40
|
+
pscDataAsOf: string;
|
|
27
41
|
/**
|
|
28
42
|
* The PSC notifications matching the filters, one summary each.
|
|
29
43
|
*/
|
|
30
44
|
results: Array<PscSummary>;
|
|
45
|
+
/**
|
|
46
|
+
* The statements the company has filed about its PSC register, such as that it has no PSC. Only statements that still stand, unless activeOnly is set to `false`. When results is empty, a statement here says why.
|
|
47
|
+
*/
|
|
48
|
+
statements: Array<PscStatement>;
|
|
31
49
|
/**
|
|
32
50
|
* Always true. A failed request returns an error object instead.
|
|
33
51
|
*/
|
|
@@ -44,10 +62,14 @@ export const PscListResponse$inboundSchema: z.ZodType<
|
|
|
44
62
|
z.ZodTypeDef,
|
|
45
63
|
unknown
|
|
46
64
|
> = z.object({
|
|
65
|
+
companyInRegister: z.boolean(),
|
|
66
|
+
exemptions: z.array(PscExemption$inboundSchema),
|
|
47
67
|
hasMore: z.boolean(),
|
|
48
68
|
limit: z.number().int(),
|
|
49
69
|
offset: z.number().int(),
|
|
70
|
+
pscDataAsOf: z.string(),
|
|
50
71
|
results: z.array(PscSummary$inboundSchema),
|
|
72
|
+
statements: z.array(PscStatement$inboundSchema),
|
|
51
73
|
success: z.literal(true),
|
|
52
74
|
total: z.number().int(),
|
|
53
75
|
});
|
|
@@ -12,6 +12,10 @@ import { Psc, Psc$inboundSchema } from "./psc.js";
|
|
|
12
12
|
* One PSC notification.
|
|
13
13
|
*/
|
|
14
14
|
export type PscResponse = {
|
|
15
|
+
/**
|
|
16
|
+
* The date of the Companies House PSC data this answer was read from, as YYYY-MM-DD. Changes made at Companies House after this date are not reflected.
|
|
17
|
+
*/
|
|
18
|
+
pscDataAsOf: string;
|
|
15
19
|
/**
|
|
16
20
|
* The PSC notification.
|
|
17
21
|
*/
|
|
@@ -28,6 +32,7 @@ export const PscResponse$inboundSchema: z.ZodType<
|
|
|
28
32
|
z.ZodTypeDef,
|
|
29
33
|
unknown
|
|
30
34
|
> = z.object({
|
|
35
|
+
pscDataAsOf: z.string(),
|
|
31
36
|
result: Psc$inboundSchema,
|
|
32
37
|
success: z.literal(true),
|
|
33
38
|
});
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* A statement a company filed about its PSC register, for example that no individual or entity has significant control, or that a PSC exists but has not been identified.
|
|
12
|
+
*/
|
|
13
|
+
export type PscStatement = {
|
|
14
|
+
/**
|
|
15
|
+
* When the statement was withdrawn, as YYYY-MM-DD. Null while it stands.
|
|
16
|
+
*/
|
|
17
|
+
ceasedOn: string | null;
|
|
18
|
+
/**
|
|
19
|
+
* The PSC the statement concerns, where it names one, such as a PSC who has not confirmed details.
|
|
20
|
+
*/
|
|
21
|
+
linkedPscName: string | null;
|
|
22
|
+
/**
|
|
23
|
+
* When the statement was notified, as YYYY-MM-DD.
|
|
24
|
+
*/
|
|
25
|
+
notifiedOn: string | null;
|
|
26
|
+
/**
|
|
27
|
+
* Why a restrictions notice the statement concerns was withdrawn, as the Companies House code.
|
|
28
|
+
*/
|
|
29
|
+
restrictionsNoticeWithdrawalReason: string | null;
|
|
30
|
+
/**
|
|
31
|
+
* The statement as the Companies House statement code, for example `no-individual-or-entity-with-signficant-control` (the spelling is Companies House's own).
|
|
32
|
+
*/
|
|
33
|
+
statement: string;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const PscStatement$inboundSchema: z.ZodType<
|
|
38
|
+
PscStatement,
|
|
39
|
+
z.ZodTypeDef,
|
|
40
|
+
unknown
|
|
41
|
+
> = z.object({
|
|
42
|
+
ceasedOn: z.nullable(z.string()),
|
|
43
|
+
linkedPscName: z.nullable(z.string()),
|
|
44
|
+
notifiedOn: z.nullable(z.string()),
|
|
45
|
+
restrictionsNoticeWithdrawalReason: z.nullable(z.string()),
|
|
46
|
+
statement: z.string(),
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
export function pscStatementFromJSON(
|
|
50
|
+
jsonString: string,
|
|
51
|
+
): SafeParseResult<PscStatement, SDKValidationError> {
|
|
52
|
+
return safeParse(
|
|
53
|
+
jsonString,
|
|
54
|
+
(x) => PscStatement$inboundSchema.parse(JSON.parse(x)),
|
|
55
|
+
`Failed to parse 'PscStatement' from JSON`,
|
|
56
|
+
);
|
|
57
|
+
}
|
|
@@ -43,14 +43,18 @@ export type PscSummary = {
|
|
|
43
43
|
* The eight-character registration number of the company this PSC has control over.
|
|
44
44
|
*/
|
|
45
45
|
companyNumber: string;
|
|
46
|
+
/**
|
|
47
|
+
* What the record is, as Companies House describes it, for a PSC whose identity is protected by court order and so carries no name, for example `super-secure-persons-with-significant-control`. Null for every other PSC.
|
|
48
|
+
*/
|
|
49
|
+
description: string | null;
|
|
46
50
|
/**
|
|
47
51
|
* Identifier for this PSC notification, as a UUID.
|
|
48
52
|
*/
|
|
49
53
|
id: string;
|
|
50
54
|
/**
|
|
51
|
-
* True when this PSC is subject to financial sanctions.
|
|
55
|
+
* True when this PSC is subject to financial sanctions. Companies House publishes this for the beneficial owners of overseas entities; null where it is not published.
|
|
52
56
|
*/
|
|
53
|
-
isSanctioned: boolean;
|
|
57
|
+
isSanctioned: boolean | null;
|
|
54
58
|
/**
|
|
55
59
|
* True when this PSC's identity is protected by a court order.
|
|
56
60
|
*/
|
|
@@ -60,9 +64,9 @@ export type PscSummary = {
|
|
|
60
64
|
*/
|
|
61
65
|
kind: PscSummaryKind;
|
|
62
66
|
/**
|
|
63
|
-
* The PSC's name as recorded on the notification.
|
|
67
|
+
* The PSC's name as recorded on the notification. Null for a PSC whose identity is protected by court order, which Companies House publishes without a name.
|
|
64
68
|
*/
|
|
65
|
-
name: string;
|
|
69
|
+
name: string | null;
|
|
66
70
|
/**
|
|
67
71
|
* How this PSC controls the company, one entry per type and threshold of control.
|
|
68
72
|
*/
|
|
@@ -94,11 +98,12 @@ export const PscSummary$inboundSchema: z.ZodType<
|
|
|
94
98
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
95
99
|
).optional(),
|
|
96
100
|
companyNumber: z.string(),
|
|
101
|
+
description: z.nullable(z.string()),
|
|
97
102
|
id: z.string(),
|
|
98
|
-
isSanctioned: z.boolean(),
|
|
103
|
+
isSanctioned: z.nullable(z.boolean()),
|
|
99
104
|
isSuperSecure: z.boolean(),
|
|
100
105
|
kind: PscSummaryKind$inboundSchema,
|
|
101
|
-
name: z.string(),
|
|
106
|
+
name: z.nullable(z.string()),
|
|
102
107
|
naturesOfControl: z.array(z.string()),
|
|
103
108
|
notifiedOn: z.nullable(
|
|
104
109
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
@@ -361,7 +361,7 @@ export type Site = {
|
|
|
361
361
|
*/
|
|
362
362
|
ownership?: Ownership | null | undefined;
|
|
363
363
|
/**
|
|
364
|
-
*
|
|
364
|
+
* The planning applications linked to this site, with counts. Null when no application is linked.
|
|
365
365
|
*/
|
|
366
366
|
planning?: SitePlanningStats | null | undefined;
|
|
367
367
|
/**
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
7
|
+
import * as openEnums from "../../types/enums.js";
|
|
8
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* How the application boundary sits against the title boundary: 'application_within_title' when the application lies inside the title, 'title_within_application' when the whole title lies inside the application, and 'partial' when the two overlap in part. Boundaries that only meet along a shared edge do not count as overlapping. Null when 'spatial' is not in routes.
|
|
14
|
+
*/
|
|
15
|
+
export const Relationship = {
|
|
16
|
+
ApplicationWithinTitle: "application_within_title",
|
|
17
|
+
TitleWithinApplication: "title_within_application",
|
|
18
|
+
Partial: "partial",
|
|
19
|
+
} as const;
|
|
20
|
+
/**
|
|
21
|
+
* How the application boundary sits against the title boundary: 'application_within_title' when the application lies inside the title, 'title_within_application' when the whole title lies inside the application, and 'partial' when the two overlap in part. Boundaries that only meet along a shared edge do not count as overlapping. Null when 'spatial' is not in routes.
|
|
22
|
+
*/
|
|
23
|
+
export type Relationship = OpenEnum<typeof Relationship>;
|
|
24
|
+
|
|
25
|
+
export const Routes = {
|
|
26
|
+
SiteId: "siteId",
|
|
27
|
+
UprnLinks: "uprnLinks",
|
|
28
|
+
Spatial: "spatial",
|
|
29
|
+
} as const;
|
|
30
|
+
export type Routes = OpenEnum<typeof Routes>;
|
|
31
|
+
|
|
32
|
+
export type SitePlanningApplicationLink = {
|
|
33
|
+
/**
|
|
34
|
+
* Land area inside the application boundary, in square metres to one decimal place. Null when the application has no boundary or its boundary does not lie in Great Britain.
|
|
35
|
+
*/
|
|
36
|
+
applicationAreaSqm?: number | null | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Identifier of the planning application. Pass it to GET /v1/planning/{applicationIds} to fetch it.
|
|
39
|
+
*/
|
|
40
|
+
id?: string | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* Share of the application boundary's land area that falls on this title, as a percentage from 0 to 100 to one decimal place. Null when 'spatial' is not in routes.
|
|
43
|
+
*/
|
|
44
|
+
overlapPctOfApplication?: number | null | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* Share of the title's land area covered by the application boundary, as a percentage from 0 to 100 to one decimal place. Null when 'spatial' is not in routes.
|
|
47
|
+
*/
|
|
48
|
+
overlapPctOfTitle?: number | null | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* How the application boundary sits against the title boundary: 'application_within_title' when the application lies inside the title, 'title_within_application' when the whole title lies inside the application, and 'partial' when the two overlap in part. Boundaries that only meet along a shared edge do not count as overlapping. Null when 'spatial' is not in routes.
|
|
51
|
+
*/
|
|
52
|
+
relationship?: Relationship | null | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Every way this application was found on the title: 'siteId' when the application is recorded against this site, 'uprnLinks' when the application's property is one the title covers, and 'spatial' when the application boundary overlaps the title boundary. An application found by more than one route lists each of them.
|
|
55
|
+
*/
|
|
56
|
+
routes?: Array<Routes> | undefined;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
/** @internal */
|
|
60
|
+
export const Relationship$inboundSchema: z.ZodType<
|
|
61
|
+
Relationship,
|
|
62
|
+
z.ZodTypeDef,
|
|
63
|
+
unknown
|
|
64
|
+
> = openEnums.inboundSchema(Relationship);
|
|
65
|
+
|
|
66
|
+
/** @internal */
|
|
67
|
+
export const Routes$inboundSchema: z.ZodType<Routes, z.ZodTypeDef, unknown> =
|
|
68
|
+
openEnums.inboundSchema(Routes);
|
|
69
|
+
|
|
70
|
+
/** @internal */
|
|
71
|
+
export const SitePlanningApplicationLink$inboundSchema: z.ZodType<
|
|
72
|
+
SitePlanningApplicationLink,
|
|
73
|
+
z.ZodTypeDef,
|
|
74
|
+
unknown
|
|
75
|
+
> = z.object({
|
|
76
|
+
applicationAreaSqm: z.nullable(z.number()).optional(),
|
|
77
|
+
id: z.string().optional(),
|
|
78
|
+
overlapPctOfApplication: z.nullable(z.number()).optional(),
|
|
79
|
+
overlapPctOfTitle: z.nullable(z.number()).optional(),
|
|
80
|
+
relationship: z.nullable(Relationship$inboundSchema).optional(),
|
|
81
|
+
routes: z.array(Routes$inboundSchema).optional(),
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
export function sitePlanningApplicationLinkFromJSON(
|
|
85
|
+
jsonString: string,
|
|
86
|
+
): SafeParseResult<SitePlanningApplicationLink, SDKValidationError> {
|
|
87
|
+
return safeParse(
|
|
88
|
+
jsonString,
|
|
89
|
+
(x) => SitePlanningApplicationLink$inboundSchema.parse(JSON.parse(x)),
|
|
90
|
+
`Failed to parse 'SitePlanningApplicationLink' from JSON`,
|
|
91
|
+
);
|
|
92
|
+
}
|