pharmaobservatory 0.1.8 → 0.1.9
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.
- checksums.yaml +4 -4
- data/README.md +84 -9
- data/docs/AnimalWelfareAssurancesResponse.md +58 -0
- data/docs/{BiomarkerAssayEvidenceResponseBuild.md → AnimalWelfareAssurancesResponseBuild.md} +2 -2
- data/docs/{BiomarkerAssayEvidenceResponseFreshness.md → AnimalWelfareAssurancesResponseFreshness.md} +2 -2
- data/docs/{BiomarkerAssayEvidenceResponseScope.md → AnimalWelfareAssurancesResponseScope.md} +2 -2
- data/docs/AnimalWelfareAssurancesRow.md +48 -0
- data/docs/BiomarkerAlleleFrequenciesResponse.md +3 -3
- data/docs/BiomarkerAssayEvidenceResponse.md +3 -3
- data/docs/BiomarkerAssayProvidersResponse.md +3 -3
- data/docs/BiomarkerAssayWhitespaceResponse.md +3 -3
- data/docs/BiomarkerBqpAssertionsResponse.md +3 -3
- data/docs/BiomarkerCdxAssertionsResponse.md +3 -3
- data/docs/BiomarkerEvidenceByYearResponse.md +3 -3
- data/docs/BiomarkerEvidenceResponse.md +3 -3
- data/docs/BiomarkerLiteratureResponse.md +3 -3
- data/docs/BiomarkerPublishingCompaniesResponse.md +3 -3
- data/docs/BiomarkerRelationsResponse.md +3 -3
- data/docs/BiomarkerSampleCoverageResponse.md +3 -3
- data/docs/BiomarkerSamplePrevalenceResponse.md +3 -3
- data/docs/BiomarkerTraversalStatusResponse.md +3 -3
- data/docs/BiomarkerValidationResponse.md +3 -3
- data/docs/BiomarkerVariantMentionsResponse.md +3 -3
- data/docs/BiomarkersRecord.md +2 -2
- data/docs/BiomarkersResponse.md +3 -3
- data/docs/BrandCompaniesResponse.md +3 -3
- data/docs/BrandRevenueResponse.md +3 -3
- data/docs/CatalystsResponse.md +3 -3
- data/docs/CellLinesRecord.md +2 -2
- data/docs/CellLinesResponse.md +3 -3
- data/docs/CliaCertificatesResponse.md +3 -3
- data/docs/CompaniesApi.md +928 -108
- data/docs/CompaniesRecord.md +2 -2
- data/docs/CompaniesRecordAttributes.md +2 -0
- data/docs/CompaniesResponse.md +3 -3
- data/docs/CompanyAssetsResponse.md +3 -3
- data/docs/CompanyAssetsRow.md +1 -5
- data/docs/CompanyBiomarkerCapabilityResponse.md +3 -3
- data/docs/CompanyCollaboratorsResponse.md +58 -0
- data/docs/CompanyCollaboratorsRow.md +42 -0
- data/docs/CompanyCompetitorActivityResponse.md +58 -0
- data/docs/CompanyCompetitorActivityRow.md +42 -0
- data/docs/CompanyCompetitorsResponse.md +58 -0
- data/docs/CompanyCompetitorsRow.md +66 -0
- data/docs/CompanyFinancialsResponse.md +58 -0
- data/docs/CompanyFinancialsRow.md +108 -0
- data/docs/CompanyFirmographicsResponse.md +58 -0
- data/docs/CompanyFirmographicsRow.md +80 -0
- data/docs/CompanyFundingEventsResponse.md +3 -3
- data/docs/CompanyFundingSummaryResponse.md +3 -3
- data/docs/CompanyMembersResponse.md +3 -3
- data/docs/CompanyProgramsResponse.md +3 -3
- data/docs/CompanyProgramsRow.md +1 -5
- data/docs/CompanyRareDiseaseDeclarationsResponse.md +3 -3
- data/docs/CompanyTargetsResponse.md +3 -3
- data/docs/CompanyTimelineResponse.md +58 -0
- data/docs/CompanyTimelineRow.md +68 -0
- data/docs/CompanyTrialGeographyResponse.md +3 -3
- data/docs/CompanyTrialSitesResponse.md +3 -3
- data/docs/CompanyUsPatentsResponse.md +58 -0
- data/docs/CompanyUsPatentsRow.md +34 -0
- data/docs/ConditionAdverseEventsResponse.md +3 -3
- data/docs/ConditionBurdenResponse.md +3 -3
- data/docs/ConditionDeliveryResponse.md +3 -3
- data/docs/ConditionDrugsResponse.md +3 -3
- data/docs/ConditionInvestigatorOrganizationsResponse.md +58 -0
- data/docs/ConditionInvestigatorOrganizationsRow.md +44 -0
- data/docs/ConditionPrevalenceResponse.md +3 -3
- data/docs/ConditionPublicationsResponse.md +3 -3
- data/docs/ConditionRecruitmentByPhaseResponse.md +3 -3
- data/docs/ConditionRecruitmentDurationResponse.md +3 -3
- data/docs/ConditionSitesResponse.md +3 -3
- data/docs/ConditionTrialStartForecastResponse.md +3 -3
- data/docs/ConditionTrialsResponse.md +3 -3
- data/docs/ConditionsApi.md +160 -0
- data/docs/ConditionsRecord.md +2 -2
- data/docs/ConditionsResponse.md +3 -3
- data/docs/CroFootprintResponse.md +3 -3
- data/docs/CroTrialsResponse.md +3 -3
- data/docs/DebarmentsResponse.md +3 -3
- data/docs/DrugApprovalsResponse.md +3 -3
- data/docs/DrugAspCodesResponse.md +3 -3
- data/docs/DrugBrandsResponse.md +3 -3
- data/docs/DrugCombinationsResponse.md +3 -3
- data/docs/DrugDeclaredPatentsResponse.md +3 -3
- data/docs/DrugInvestigatorsResponse.md +58 -0
- data/docs/DrugInvestigatorsRow.md +32 -0
- data/docs/DrugLabelSafetyResponse.md +3 -3
- data/docs/DrugMedicareSpendResponse.md +3 -3
- data/docs/DrugPatentCliffResponse.md +3 -3
- data/docs/DrugPatentMentionsResponse.md +3 -3
- data/docs/DrugPatentOwnersResponse.md +3 -3
- data/docs/DrugPricingResponse.md +3 -3
- data/docs/DrugRecallsResponse.md +3 -3
- data/docs/DrugRegulatoryResponse.md +3 -3
- data/docs/DrugSitesResponse.md +3 -3
- data/docs/DrugTargetsResponse.md +3 -3
- data/docs/DrugTrialConditionsResponse.md +3 -3
- data/docs/DrugTrialsResponse.md +3 -3
- data/docs/DrugVariantsResponse.md +3 -3
- data/docs/DrugsApi.md +80 -0
- data/docs/DrugsRecord.md +2 -2
- data/docs/DrugsResponse.md +3 -3
- data/docs/EnforcementEventsResponse.md +3 -3
- data/docs/EnforcementEventsRow.md +22 -4
- data/docs/GxpFacilitiesResponse.md +3 -3
- data/docs/GxpFacilitiesRow.md +27 -1
- data/docs/HospitalBedsYearlyResponse.md +3 -3
- data/docs/HospitalFacilityChangesResponse.md +3 -3
- data/docs/HospitalsApi.md +80 -0
- data/docs/HospitalsRecord.md +2 -2
- data/docs/HospitalsResponse.md +3 -3
- data/docs/ImportRefusalsResponse.md +3 -3
- data/docs/InspectionFindingsResponse.md +3 -3
- data/docs/InspectionsResponse.md +3 -3
- data/docs/InstitutionalHoldingsResponse.md +3 -3
- data/docs/InstitutionalQuarterTotalsResponse.md +3 -3
- data/docs/InvestigatorConditionsResponse.md +58 -0
- data/docs/InvestigatorConditionsRow.md +28 -0
- data/docs/InvestigatorDebarmentsResponse.md +58 -0
- data/docs/InvestigatorDebarmentsRow.md +32 -0
- data/docs/InvestigatorHospitalsResponse.md +58 -0
- data/docs/InvestigatorHospitalsRow.md +28 -0
- data/docs/InvestigatorInspectionsResponse.md +58 -0
- data/docs/InvestigatorInspectionsRow.md +46 -0
- data/docs/InvestigatorPublicationsResponse.md +58 -0
- data/docs/InvestigatorPublicationsRow.md +34 -0
- data/docs/InvestigatorTopicsResponse.md +58 -0
- data/docs/InvestigatorTopicsRow.md +34 -0
- data/docs/InvestigatorTrialsResponse.md +58 -0
- data/docs/InvestigatorTrialsRow.md +64 -0
- data/docs/InvestigatorsApi.md +1113 -0
- data/docs/InvestigatorsRecord.md +38 -0
- data/docs/InvestigatorsResponse.md +58 -0
- data/docs/InvestigatorsRow.md +70 -0
- data/docs/InvestorFundsResponse.md +3 -3
- data/docs/InvestorPortfolioResponse.md +3 -3
- data/docs/InvestorPrivateFundsResponse.md +3 -3
- data/docs/InvestorsRecord.md +2 -2
- data/docs/InvestorsResponse.md +3 -3
- data/docs/InvestorsRow.md +6 -0
- data/docs/LegalEntitiesApi.md +244 -4
- data/docs/LegalEntitiesRecord.md +2 -2
- data/docs/LegalEntitiesResponse.md +3 -3
- data/docs/LegalEntitySecFilingsResponse.md +3 -3
- data/docs/ManagersRecord.md +2 -2
- data/docs/ManagersResponse.md +3 -3
- data/docs/OrgDisclosureTrendResponse.md +3 -3
- data/docs/OrgDisclosuresResponse.md +3 -3
- data/docs/OrgRelationshipsResponse.md +3 -3
- data/docs/OwnershipObservationsResponse.md +58 -0
- data/docs/OwnershipObservationsRow.md +168 -0
- data/docs/OwnershipPercentagesResponse.md +3 -3
- data/docs/OwnershipPositionsResponse.md +3 -3
- data/docs/OwnershipSourceCoverageResponse.md +3 -3
- data/docs/PdufaDatesResponse.md +3 -3
- data/docs/ProgramLicensingCandidatesResponse.md +3 -3
- data/docs/ProgramLicensingCandidatesRow.md +1 -5
- data/docs/ProgramsResponse.md +3 -3
- data/docs/ProgramsRow.md +1 -1
- data/docs/RareDiseaseGenesResponse.md +3 -3
- data/docs/RareDiseaseHierarchyResponse.md +3 -3
- data/docs/RareDiseaseInvestigatorCoverageResponse.md +3 -3
- data/docs/RareDiseaseInvestigatorsResponse.md +3 -3
- data/docs/RareDiseaseMappingsResponse.md +3 -3
- data/docs/RareDiseaseOrganizationsResponse.md +3 -3
- data/docs/RareDiseasePrevalenceResponse.md +3 -3
- data/docs/RareDiseaseRarityEvidenceResponse.md +3 -3
- data/docs/RareDiseaseRarityResponse.md +3 -3
- data/docs/RareDiseaseReplacementsResponse.md +3 -3
- data/docs/RareDiseaseSiteCoverageResponse.md +3 -3
- data/docs/RareDiseaseSponsorsResponse.md +3 -3
- data/docs/RareDiseaseTrialCoverageResponse.md +3 -3
- data/docs/RareDiseaseTrialSitesResponse.md +3 -3
- data/docs/RareDiseaseTrialsResponse.md +3 -3
- data/docs/RareDiseasesRecord.md +2 -2
- data/docs/RareDiseasesResponse.md +3 -3
- data/docs/RecallsResponse.md +3 -3
- data/docs/RwdConductorDeliveryResponse.md +3 -3
- data/docs/RwdConductorFootprintResponse.md +3 -3
- data/docs/RwdConductorStudiesResponse.md +3 -3
- data/docs/RwdConductorsRecord.md +2 -2
- data/docs/RwdConductorsResponse.md +3 -3
- data/docs/RwdCoverageResponse.md +3 -3
- data/docs/RwdInstitutionsRecord.md +2 -2
- data/docs/RwdInstitutionsResponse.md +3 -3
- data/docs/RwdNetworksRecord.md +2 -2
- data/docs/RwdNetworksResponse.md +3 -3
- data/docs/RwdRegisterProvenanceResponse.md +3 -3
- data/docs/RwdRegistersRecord.md +2 -2
- data/docs/RwdSourceAgeBandsResponse.md +3 -3
- data/docs/RwdSourceConditionsResponse.md +3 -3
- data/docs/RwdSourceEtlMappingsResponse.md +3 -3
- data/docs/RwdSourceLinkagesResponse.md +3 -3
- data/docs/RwdSourceTypesResponse.md +3 -3
- data/docs/RwdSourceVocabulariesResponse.md +3 -3
- data/docs/RwdSourcesRecord.md +2 -2
- data/docs/RwdSourcesResponse.md +3 -3
- data/docs/RwdStudiesRecord.md +2 -2
- data/docs/RwdStudiesResponse.md +3 -3
- data/docs/RwdStudyConditionsResponse.md +3 -3
- data/docs/RwdStudyDataSourcesResponse.md +3 -3
- data/docs/RwdStudyDrugsResponse.md +3 -3
- data/docs/RwdStudyMilestonesResponse.md +3 -3
- data/docs/RwdWithheldFieldsResponse.md +3 -3
- data/docs/SbtiCrosscheckResponse.md +3 -3
- data/docs/SecPdufaDatesResponse.md +3 -3
- data/docs/SiteBedsYearlyResponse.md +3 -3
- data/docs/SiteCroTrialsResponse.md +3 -3
- data/docs/SiteHospitalsResponse.md +3 -3
- data/docs/SiteInvestigatorsResponse.md +3 -3
- data/docs/SiteTrialConditionsResponse.md +3 -3
- data/docs/SiteTrialDrugsResponse.md +3 -3
- data/docs/SiteTrialsResponse.md +3 -3
- data/docs/SitesRecord.md +2 -2
- data/docs/SitesResponse.md +3 -3
- data/docs/SponsorDeliveryResponse.md +3 -3
- data/docs/SponsorPatentMentionsResponse.md +3 -3
- data/docs/SponsorPublicationsResponse.md +58 -0
- data/docs/SponsorPublicationsRow.md +42 -0
- data/docs/SponsorRecruitmentByPhaseResponse.md +3 -3
- data/docs/SponsorRecruitmentDurationResponse.md +3 -3
- data/docs/SponsorTrialConditionsResponse.md +3 -3
- data/docs/SponsorTrialDrugsResponse.md +3 -3
- data/docs/SponsorTrialStartForecastResponse.md +3 -3
- data/docs/SponsorTrialsResponse.md +3 -3
- data/docs/SupplierCapabilityEsgResponse.md +3 -3
- data/docs/SupplierServicesResponse.md +3 -3
- data/docs/SupplierSitesResponse.md +3 -3
- data/docs/SuppliersRecord.md +2 -2
- data/docs/SuppliersResponse.md +3 -3
- data/docs/SuppliersRow.md +2 -0
- data/docs/TargetAssociationsResponse.md +3 -3
- data/docs/TargetCrowdingResponse.md +3 -3
- data/docs/TargetDrugsResponse.md +3 -3
- data/docs/TargetEvidenceResponse.md +3 -3
- data/docs/TargetInvestigatorsResponse.md +58 -0
- data/docs/TargetInvestigatorsRow.md +30 -0
- data/docs/TargetPatentMentionsResponse.md +3 -3
- data/docs/TargetProgramsResponse.md +3 -3
- data/docs/TargetPublicationsResponse.md +3 -3
- data/docs/TargetRegulatoryPrecedentResponse.md +3 -3
- data/docs/TargetTrialsResponse.md +3 -3
- data/docs/TargetsApi.md +80 -0
- data/docs/TargetsRecord.md +2 -2
- data/docs/TargetsResponse.md +3 -3
- data/docs/TrialAdverseEventsResponse.md +3 -3
- data/docs/TrialChangesResponse.md +3 -3
- data/docs/TrialDeliveryResponse.md +3 -3
- data/docs/TrialDemographicsResponse.md +3 -3
- data/docs/TrialDrugClassesResponse.md +3 -3
- data/docs/TrialDrugsResponse.md +3 -3
- data/docs/TrialEnrollmentHistoryResponse.md +3 -3
- data/docs/TrialEnrollmentRateResponse.md +3 -3
- data/docs/TrialExtractedEndpointsResponse.md +3 -3
- data/docs/TrialKolsResponse.md +3 -3
- data/docs/TrialOutcomeMeasuresResponse.md +3 -3
- data/docs/TrialResearchPaymentsResponse.md +3 -3
- data/docs/TrialSiteHistoryResponse.md +3 -3
- data/docs/TrialSitesResponse.md +3 -3
- data/docs/TrialsRecord.md +2 -2
- data/docs/TrialsResponse.md +3 -3
- data/docs/UnmatchedProductRevenueResponse.md +3 -3
- data/docs/UntitledLettersResponse.md +3 -3
- data/docs/WarningLettersResponse.md +3 -3
- data/lib/pharmaobservatory/api/companies_api.rb +1032 -122
- data/lib/pharmaobservatory/api/conditions_api.rb +168 -0
- data/lib/pharmaobservatory/api/drugs_api.rb +84 -0
- data/lib/pharmaobservatory/api/hospitals_api.rb +84 -0
- data/lib/pharmaobservatory/api/investigators_api.rb +1169 -0
- data/lib/pharmaobservatory/api/legal_entities_api.rb +254 -2
- data/lib/pharmaobservatory/api/targets_api.rb +84 -0
- data/lib/pharmaobservatory/models/animal_welfare_assurances_response.rb +478 -0
- data/lib/pharmaobservatory/models/{biomarker_assay_evidence_response_build.rb → animal_welfare_assurances_response_build.rb} +3 -3
- data/lib/pharmaobservatory/models/{biomarker_assay_evidence_response_freshness.rb → animal_welfare_assurances_response_freshness.rb} +3 -3
- data/lib/pharmaobservatory/models/{biomarker_assay_evidence_response_scope.rb → animal_welfare_assurances_response_scope.rb} +3 -3
- data/lib/pharmaobservatory/models/animal_welfare_assurances_row.rb +392 -0
- data/lib/pharmaobservatory/models/biomarker_allele_frequencies_response.rb +3 -3
- data/lib/pharmaobservatory/models/biomarker_assay_evidence_response.rb +3 -3
- data/lib/pharmaobservatory/models/biomarker_assay_providers_response.rb +3 -3
- data/lib/pharmaobservatory/models/biomarker_assay_whitespace_response.rb +3 -3
- data/lib/pharmaobservatory/models/biomarker_bqp_assertions_response.rb +3 -3
- data/lib/pharmaobservatory/models/biomarker_cdx_assertions_response.rb +3 -3
- data/lib/pharmaobservatory/models/biomarker_evidence_by_year_response.rb +3 -3
- data/lib/pharmaobservatory/models/biomarker_evidence_response.rb +3 -3
- data/lib/pharmaobservatory/models/biomarker_literature_response.rb +3 -3
- data/lib/pharmaobservatory/models/biomarker_publishing_companies_response.rb +3 -3
- data/lib/pharmaobservatory/models/biomarker_relations_response.rb +3 -3
- data/lib/pharmaobservatory/models/biomarker_sample_coverage_response.rb +3 -3
- data/lib/pharmaobservatory/models/biomarker_sample_prevalence_response.rb +3 -3
- data/lib/pharmaobservatory/models/biomarker_traversal_status_response.rb +3 -3
- data/lib/pharmaobservatory/models/biomarker_validation_response.rb +3 -3
- data/lib/pharmaobservatory/models/biomarker_variant_mentions_response.rb +3 -3
- data/lib/pharmaobservatory/models/biomarkers_record.rb +2 -2
- data/lib/pharmaobservatory/models/biomarkers_response.rb +3 -3
- data/lib/pharmaobservatory/models/brand_companies_response.rb +3 -3
- data/lib/pharmaobservatory/models/brand_revenue_response.rb +3 -3
- data/lib/pharmaobservatory/models/catalysts_response.rb +3 -3
- data/lib/pharmaobservatory/models/cell_lines_record.rb +2 -2
- data/lib/pharmaobservatory/models/cell_lines_response.rb +3 -3
- data/lib/pharmaobservatory/models/clia_certificates_response.rb +3 -3
- data/lib/pharmaobservatory/models/companies_record.rb +2 -2
- data/lib/pharmaobservatory/models/companies_record_attributes.rb +10 -1
- data/lib/pharmaobservatory/models/companies_response.rb +3 -3
- data/lib/pharmaobservatory/models/company_assets_response.rb +3 -3
- data/lib/pharmaobservatory/models/company_assets_row.rb +2 -24
- data/lib/pharmaobservatory/models/company_biomarker_capability_response.rb +3 -3
- data/lib/pharmaobservatory/models/company_collaborators_response.rb +478 -0
- data/lib/pharmaobservatory/models/company_collaborators_row.rb +355 -0
- data/lib/pharmaobservatory/models/company_competitor_activity_response.rb +478 -0
- data/lib/pharmaobservatory/models/company_competitor_activity_row.rb +355 -0
- data/lib/pharmaobservatory/models/company_competitors_response.rb +478 -0
- data/lib/pharmaobservatory/models/company_competitors_row.rb +493 -0
- data/lib/pharmaobservatory/models/company_financials_response.rb +478 -0
- data/lib/pharmaobservatory/models/company_financials_row.rb +718 -0
- data/lib/pharmaobservatory/models/company_firmographics_response.rb +478 -0
- data/lib/pharmaobservatory/models/company_firmographics_row.rb +566 -0
- data/lib/pharmaobservatory/models/company_funding_events_response.rb +3 -3
- data/lib/pharmaobservatory/models/company_funding_summary_response.rb +3 -3
- data/lib/pharmaobservatory/models/company_members_response.rb +3 -3
- data/lib/pharmaobservatory/models/company_programs_response.rb +3 -3
- data/lib/pharmaobservatory/models/company_programs_row.rb +2 -24
- data/lib/pharmaobservatory/models/company_rare_disease_declarations_response.rb +3 -3
- data/lib/pharmaobservatory/models/company_targets_response.rb +3 -3
- data/lib/pharmaobservatory/models/company_timeline_response.rb +478 -0
- data/lib/pharmaobservatory/models/company_timeline_row.rb +498 -0
- data/lib/pharmaobservatory/models/company_trial_geography_response.rb +3 -3
- data/lib/pharmaobservatory/models/company_trial_sites_response.rb +3 -3
- data/lib/pharmaobservatory/models/company_us_patents_response.rb +478 -0
- data/lib/pharmaobservatory/models/company_us_patents_row.rb +311 -0
- data/lib/pharmaobservatory/models/condition_adverse_events_response.rb +3 -3
- data/lib/pharmaobservatory/models/condition_burden_response.rb +3 -3
- data/lib/pharmaobservatory/models/condition_delivery_response.rb +3 -3
- data/lib/pharmaobservatory/models/condition_drugs_response.rb +3 -3
- data/lib/pharmaobservatory/models/condition_investigator_organizations_response.rb +478 -0
- data/lib/pharmaobservatory/models/condition_investigator_organizations_row.rb +366 -0
- data/lib/pharmaobservatory/models/condition_prevalence_response.rb +3 -3
- data/lib/pharmaobservatory/models/condition_publications_response.rb +3 -3
- data/lib/pharmaobservatory/models/condition_recruitment_by_phase_response.rb +3 -3
- data/lib/pharmaobservatory/models/condition_recruitment_duration_response.rb +3 -3
- data/lib/pharmaobservatory/models/condition_sites_response.rb +3 -3
- data/lib/pharmaobservatory/models/condition_trial_start_forecast_response.rb +3 -3
- data/lib/pharmaobservatory/models/condition_trials_response.rb +3 -3
- data/lib/pharmaobservatory/models/conditions_record.rb +2 -2
- data/lib/pharmaobservatory/models/conditions_response.rb +3 -3
- data/lib/pharmaobservatory/models/cro_footprint_response.rb +3 -3
- data/lib/pharmaobservatory/models/cro_trials_response.rb +3 -3
- data/lib/pharmaobservatory/models/debarments_response.rb +3 -3
- data/lib/pharmaobservatory/models/drug_approvals_response.rb +3 -3
- data/lib/pharmaobservatory/models/drug_asp_codes_response.rb +3 -3
- data/lib/pharmaobservatory/models/drug_brands_response.rb +3 -3
- data/lib/pharmaobservatory/models/drug_combinations_response.rb +3 -3
- data/lib/pharmaobservatory/models/drug_declared_patents_response.rb +3 -3
- data/lib/pharmaobservatory/models/drug_investigators_response.rb +478 -0
- data/lib/pharmaobservatory/models/drug_investigators_row.rb +302 -0
- data/lib/pharmaobservatory/models/drug_label_safety_response.rb +3 -3
- data/lib/pharmaobservatory/models/drug_medicare_spend_response.rb +3 -3
- data/lib/pharmaobservatory/models/drug_patent_cliff_response.rb +3 -3
- data/lib/pharmaobservatory/models/drug_patent_mentions_response.rb +3 -3
- data/lib/pharmaobservatory/models/drug_patent_owners_response.rb +3 -3
- data/lib/pharmaobservatory/models/drug_pricing_response.rb +3 -3
- data/lib/pharmaobservatory/models/drug_recalls_response.rb +3 -3
- data/lib/pharmaobservatory/models/drug_regulatory_response.rb +3 -3
- data/lib/pharmaobservatory/models/drug_sites_response.rb +3 -3
- data/lib/pharmaobservatory/models/drug_targets_response.rb +3 -3
- data/lib/pharmaobservatory/models/drug_trial_conditions_response.rb +3 -3
- data/lib/pharmaobservatory/models/drug_trials_response.rb +3 -3
- data/lib/pharmaobservatory/models/drug_variants_response.rb +3 -3
- data/lib/pharmaobservatory/models/drugs_record.rb +2 -2
- data/lib/pharmaobservatory/models/drugs_response.rb +3 -3
- data/lib/pharmaobservatory/models/enforcement_events_response.rb +3 -3
- data/lib/pharmaobservatory/models/enforcement_events_row.rb +104 -5
- data/lib/pharmaobservatory/models/gxp_facilities_response.rb +3 -3
- data/lib/pharmaobservatory/models/gxp_facilities_row.rb +145 -2
- data/lib/pharmaobservatory/models/hospital_beds_yearly_response.rb +3 -3
- data/lib/pharmaobservatory/models/hospital_facility_changes_response.rb +3 -3
- data/lib/pharmaobservatory/models/hospitals_record.rb +2 -2
- data/lib/pharmaobservatory/models/hospitals_response.rb +3 -3
- data/lib/pharmaobservatory/models/import_refusals_response.rb +3 -3
- data/lib/pharmaobservatory/models/inspection_findings_response.rb +3 -3
- data/lib/pharmaobservatory/models/inspections_response.rb +3 -3
- data/lib/pharmaobservatory/models/institutional_holdings_response.rb +3 -3
- data/lib/pharmaobservatory/models/institutional_quarter_totals_response.rb +3 -3
- data/lib/pharmaobservatory/models/investigator_conditions_response.rb +478 -0
- data/lib/pharmaobservatory/models/investigator_conditions_row.rb +278 -0
- data/lib/pharmaobservatory/models/investigator_debarments_response.rb +478 -0
- data/lib/pharmaobservatory/models/investigator_debarments_row.rb +300 -0
- data/lib/pharmaobservatory/models/investigator_hospitals_response.rb +478 -0
- data/lib/pharmaobservatory/models/investigator_hospitals_row.rb +280 -0
- data/lib/pharmaobservatory/models/investigator_inspections_response.rb +478 -0
- data/lib/pharmaobservatory/models/investigator_inspections_row.rb +377 -0
- data/lib/pharmaobservatory/models/investigator_publications_response.rb +478 -0
- data/lib/pharmaobservatory/models/investigator_publications_row.rb +311 -0
- data/lib/pharmaobservatory/models/investigator_topics_response.rb +478 -0
- data/lib/pharmaobservatory/models/investigator_topics_row.rb +311 -0
- data/lib/pharmaobservatory/models/investigator_trials_response.rb +478 -0
- data/lib/pharmaobservatory/models/investigator_trials_row.rb +478 -0
- data/lib/pharmaobservatory/models/investigators_record.rb +385 -0
- data/lib/pharmaobservatory/models/investigators_response.rb +478 -0
- data/lib/pharmaobservatory/models/investigators_row.rb +511 -0
- data/lib/pharmaobservatory/models/investor_funds_response.rb +3 -3
- data/lib/pharmaobservatory/models/investor_portfolio_response.rb +3 -3
- data/lib/pharmaobservatory/models/investor_private_funds_response.rb +3 -3
- data/lib/pharmaobservatory/models/investors_record.rb +2 -2
- data/lib/pharmaobservatory/models/investors_response.rb +3 -3
- data/lib/pharmaobservatory/models/investors_row.rb +34 -1
- data/lib/pharmaobservatory/models/legal_entities_record.rb +2 -2
- data/lib/pharmaobservatory/models/legal_entities_response.rb +3 -3
- data/lib/pharmaobservatory/models/legal_entity_sec_filings_response.rb +3 -3
- data/lib/pharmaobservatory/models/managers_record.rb +2 -2
- data/lib/pharmaobservatory/models/managers_response.rb +3 -3
- data/lib/pharmaobservatory/models/org_disclosure_trend_response.rb +3 -3
- data/lib/pharmaobservatory/models/org_disclosures_response.rb +3 -3
- data/lib/pharmaobservatory/models/org_relationships_response.rb +3 -3
- data/lib/pharmaobservatory/models/ownership_observations_response.rb +478 -0
- data/lib/pharmaobservatory/models/ownership_observations_row.rb +1048 -0
- data/lib/pharmaobservatory/models/ownership_percentages_response.rb +3 -3
- data/lib/pharmaobservatory/models/ownership_positions_response.rb +3 -3
- data/lib/pharmaobservatory/models/ownership_source_coverage_response.rb +3 -3
- data/lib/pharmaobservatory/models/pdufa_dates_response.rb +3 -3
- data/lib/pharmaobservatory/models/program_licensing_candidates_response.rb +3 -3
- data/lib/pharmaobservatory/models/program_licensing_candidates_row.rb +2 -24
- data/lib/pharmaobservatory/models/programs_response.rb +3 -3
- data/lib/pharmaobservatory/models/programs_row.rb +1 -1
- data/lib/pharmaobservatory/models/rare_disease_genes_response.rb +3 -3
- data/lib/pharmaobservatory/models/rare_disease_hierarchy_response.rb +3 -3
- data/lib/pharmaobservatory/models/rare_disease_investigator_coverage_response.rb +3 -3
- data/lib/pharmaobservatory/models/rare_disease_investigators_response.rb +3 -3
- data/lib/pharmaobservatory/models/rare_disease_mappings_response.rb +3 -3
- data/lib/pharmaobservatory/models/rare_disease_organizations_response.rb +3 -3
- data/lib/pharmaobservatory/models/rare_disease_prevalence_response.rb +3 -3
- data/lib/pharmaobservatory/models/rare_disease_rarity_evidence_response.rb +3 -3
- data/lib/pharmaobservatory/models/rare_disease_rarity_response.rb +3 -3
- data/lib/pharmaobservatory/models/rare_disease_replacements_response.rb +3 -3
- data/lib/pharmaobservatory/models/rare_disease_site_coverage_response.rb +3 -3
- data/lib/pharmaobservatory/models/rare_disease_sponsors_response.rb +3 -3
- data/lib/pharmaobservatory/models/rare_disease_trial_coverage_response.rb +3 -3
- data/lib/pharmaobservatory/models/rare_disease_trial_sites_response.rb +3 -3
- data/lib/pharmaobservatory/models/rare_disease_trials_response.rb +3 -3
- data/lib/pharmaobservatory/models/rare_diseases_record.rb +2 -2
- data/lib/pharmaobservatory/models/rare_diseases_response.rb +3 -3
- data/lib/pharmaobservatory/models/recalls_response.rb +3 -3
- data/lib/pharmaobservatory/models/rwd_conductor_delivery_response.rb +3 -3
- data/lib/pharmaobservatory/models/rwd_conductor_footprint_response.rb +3 -3
- data/lib/pharmaobservatory/models/rwd_conductor_studies_response.rb +3 -3
- data/lib/pharmaobservatory/models/rwd_conductors_record.rb +2 -2
- data/lib/pharmaobservatory/models/rwd_conductors_response.rb +3 -3
- data/lib/pharmaobservatory/models/rwd_coverage_response.rb +3 -3
- data/lib/pharmaobservatory/models/rwd_institutions_record.rb +2 -2
- data/lib/pharmaobservatory/models/rwd_institutions_response.rb +3 -3
- data/lib/pharmaobservatory/models/rwd_networks_record.rb +2 -2
- data/lib/pharmaobservatory/models/rwd_networks_response.rb +3 -3
- data/lib/pharmaobservatory/models/rwd_register_provenance_response.rb +3 -3
- data/lib/pharmaobservatory/models/rwd_registers_record.rb +2 -2
- data/lib/pharmaobservatory/models/rwd_source_age_bands_response.rb +3 -3
- data/lib/pharmaobservatory/models/rwd_source_conditions_response.rb +3 -3
- data/lib/pharmaobservatory/models/rwd_source_etl_mappings_response.rb +3 -3
- data/lib/pharmaobservatory/models/rwd_source_linkages_response.rb +3 -3
- data/lib/pharmaobservatory/models/rwd_source_types_response.rb +3 -3
- data/lib/pharmaobservatory/models/rwd_source_vocabularies_response.rb +3 -3
- data/lib/pharmaobservatory/models/rwd_sources_record.rb +2 -2
- data/lib/pharmaobservatory/models/rwd_sources_response.rb +3 -3
- data/lib/pharmaobservatory/models/rwd_studies_record.rb +2 -2
- data/lib/pharmaobservatory/models/rwd_studies_response.rb +3 -3
- data/lib/pharmaobservatory/models/rwd_study_conditions_response.rb +3 -3
- data/lib/pharmaobservatory/models/rwd_study_data_sources_response.rb +3 -3
- data/lib/pharmaobservatory/models/rwd_study_drugs_response.rb +3 -3
- data/lib/pharmaobservatory/models/rwd_study_milestones_response.rb +3 -3
- data/lib/pharmaobservatory/models/rwd_withheld_fields_response.rb +3 -3
- data/lib/pharmaobservatory/models/sbti_crosscheck_response.rb +3 -3
- data/lib/pharmaobservatory/models/sec_pdufa_dates_response.rb +3 -3
- data/lib/pharmaobservatory/models/site_beds_yearly_response.rb +3 -3
- data/lib/pharmaobservatory/models/site_cro_trials_response.rb +3 -3
- data/lib/pharmaobservatory/models/site_hospitals_response.rb +3 -3
- data/lib/pharmaobservatory/models/site_investigators_response.rb +3 -3
- data/lib/pharmaobservatory/models/site_trial_conditions_response.rb +3 -3
- data/lib/pharmaobservatory/models/site_trial_drugs_response.rb +3 -3
- data/lib/pharmaobservatory/models/site_trials_response.rb +3 -3
- data/lib/pharmaobservatory/models/sites_record.rb +2 -2
- data/lib/pharmaobservatory/models/sites_response.rb +3 -3
- data/lib/pharmaobservatory/models/sponsor_delivery_response.rb +3 -3
- data/lib/pharmaobservatory/models/sponsor_patent_mentions_response.rb +3 -3
- data/lib/pharmaobservatory/models/sponsor_publications_response.rb +478 -0
- data/lib/pharmaobservatory/models/sponsor_publications_row.rb +355 -0
- data/lib/pharmaobservatory/models/sponsor_recruitment_by_phase_response.rb +3 -3
- data/lib/pharmaobservatory/models/sponsor_recruitment_duration_response.rb +3 -3
- data/lib/pharmaobservatory/models/sponsor_trial_conditions_response.rb +3 -3
- data/lib/pharmaobservatory/models/sponsor_trial_drugs_response.rb +3 -3
- data/lib/pharmaobservatory/models/sponsor_trial_start_forecast_response.rb +3 -3
- data/lib/pharmaobservatory/models/sponsor_trials_response.rb +3 -3
- data/lib/pharmaobservatory/models/supplier_capability_esg_response.rb +3 -3
- data/lib/pharmaobservatory/models/supplier_services_response.rb +3 -3
- data/lib/pharmaobservatory/models/supplier_sites_response.rb +3 -3
- data/lib/pharmaobservatory/models/suppliers_record.rb +2 -2
- data/lib/pharmaobservatory/models/suppliers_response.rb +3 -3
- data/lib/pharmaobservatory/models/suppliers_row.rb +12 -1
- data/lib/pharmaobservatory/models/target_associations_response.rb +3 -3
- data/lib/pharmaobservatory/models/target_crowding_response.rb +3 -3
- data/lib/pharmaobservatory/models/target_drugs_response.rb +3 -3
- data/lib/pharmaobservatory/models/target_evidence_response.rb +3 -3
- data/lib/pharmaobservatory/models/target_investigators_response.rb +478 -0
- data/lib/pharmaobservatory/models/target_investigators_row.rb +291 -0
- data/lib/pharmaobservatory/models/target_patent_mentions_response.rb +3 -3
- data/lib/pharmaobservatory/models/target_programs_response.rb +3 -3
- data/lib/pharmaobservatory/models/target_publications_response.rb +3 -3
- data/lib/pharmaobservatory/models/target_regulatory_precedent_response.rb +3 -3
- data/lib/pharmaobservatory/models/target_trials_response.rb +3 -3
- data/lib/pharmaobservatory/models/targets_record.rb +2 -2
- data/lib/pharmaobservatory/models/targets_response.rb +3 -3
- data/lib/pharmaobservatory/models/trial_adverse_events_response.rb +3 -3
- data/lib/pharmaobservatory/models/trial_changes_response.rb +3 -3
- data/lib/pharmaobservatory/models/trial_delivery_response.rb +3 -3
- data/lib/pharmaobservatory/models/trial_demographics_response.rb +3 -3
- data/lib/pharmaobservatory/models/trial_drug_classes_response.rb +3 -3
- data/lib/pharmaobservatory/models/trial_drugs_response.rb +3 -3
- data/lib/pharmaobservatory/models/trial_enrollment_history_response.rb +3 -3
- data/lib/pharmaobservatory/models/trial_enrollment_rate_response.rb +3 -3
- data/lib/pharmaobservatory/models/trial_extracted_endpoints_response.rb +3 -3
- data/lib/pharmaobservatory/models/trial_kols_response.rb +3 -3
- data/lib/pharmaobservatory/models/trial_outcome_measures_response.rb +3 -3
- data/lib/pharmaobservatory/models/trial_research_payments_response.rb +3 -3
- data/lib/pharmaobservatory/models/trial_site_history_response.rb +3 -3
- data/lib/pharmaobservatory/models/trial_sites_response.rb +3 -3
- data/lib/pharmaobservatory/models/trials_record.rb +2 -2
- data/lib/pharmaobservatory/models/trials_response.rb +3 -3
- data/lib/pharmaobservatory/models/unmatched_product_revenue_response.rb +3 -3
- data/lib/pharmaobservatory/models/untitled_letters_response.rb +3 -3
- data/lib/pharmaobservatory/models/warning_letters_response.rb +3 -3
- data/lib/pharmaobservatory/version.rb +1 -1
- data/lib/pharmaobservatory.rb +47 -3
- metadata +96 -8
|
@@ -19,6 +19,97 @@ module PharmaObservatory
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
+
# Animal welfare assurances
|
|
23
|
+
# @param id [String]
|
|
24
|
+
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
26
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
27
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
28
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
29
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
30
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
31
|
+
# @return [AnimalWelfareAssurancesResponse]
|
|
32
|
+
def companies_animal_welfare_assurances(id, opts = {})
|
|
33
|
+
data, _status_code, _headers = companies_animal_welfare_assurances_with_http_info(id, opts)
|
|
34
|
+
data
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Animal welfare assurances
|
|
38
|
+
# @param id [String]
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
41
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
42
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
43
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
44
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
45
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
46
|
+
# @return [Array<(AnimalWelfareAssurancesResponse, Integer, Hash)>] AnimalWelfareAssurancesResponse data, response status code and response headers
|
|
47
|
+
def companies_animal_welfare_assurances_with_http_info(id, opts = {})
|
|
48
|
+
if @api_client.config.debugging
|
|
49
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_animal_welfare_assurances ...'
|
|
50
|
+
end
|
|
51
|
+
# verify the required parameter 'id' is set
|
|
52
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
53
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_animal_welfare_assurances"
|
|
54
|
+
end
|
|
55
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
56
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_animal_welfare_assurances, must be smaller than or equal to 500.'
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
60
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_animal_welfare_assurances, must be greater than or equal to 1.'
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
allowable_values = ["company", "group"]
|
|
64
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
65
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
66
|
+
end
|
|
67
|
+
# resource path
|
|
68
|
+
local_var_path = '/api/v1/companies/{id}/animal_welfare_assurances'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
69
|
+
|
|
70
|
+
# query parameters
|
|
71
|
+
query_params = opts[:query_params] || {}
|
|
72
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
73
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
74
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
75
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
76
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
77
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
78
|
+
|
|
79
|
+
# header parameters
|
|
80
|
+
header_params = opts[:header_params] || {}
|
|
81
|
+
# HTTP header 'Accept' (if needed)
|
|
82
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
83
|
+
|
|
84
|
+
# form parameters
|
|
85
|
+
form_params = opts[:form_params] || {}
|
|
86
|
+
|
|
87
|
+
# http body (model)
|
|
88
|
+
post_body = opts[:debug_body]
|
|
89
|
+
|
|
90
|
+
# return_type
|
|
91
|
+
return_type = opts[:debug_return_type] || 'AnimalWelfareAssurancesResponse'
|
|
92
|
+
|
|
93
|
+
# auth_names
|
|
94
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
95
|
+
|
|
96
|
+
new_options = opts.merge(
|
|
97
|
+
:operation => :"CompaniesApi.companies_animal_welfare_assurances",
|
|
98
|
+
:header_params => header_params,
|
|
99
|
+
:query_params => query_params,
|
|
100
|
+
:form_params => form_params,
|
|
101
|
+
:body => post_body,
|
|
102
|
+
:auth_names => auth_names,
|
|
103
|
+
:return_type => return_type
|
|
104
|
+
)
|
|
105
|
+
|
|
106
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
107
|
+
if @api_client.config.debugging
|
|
108
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_animal_welfare_assurances\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
109
|
+
end
|
|
110
|
+
return data, status_code, headers
|
|
111
|
+
end
|
|
112
|
+
|
|
22
113
|
# FDA biomarker qualification projects
|
|
23
114
|
# @param id [String]
|
|
24
115
|
# @param [Hash] opts the optional parameters
|
|
@@ -747,7 +838,7 @@ module PharmaObservatory
|
|
|
747
838
|
return data, status_code, headers
|
|
748
839
|
end
|
|
749
840
|
|
|
750
|
-
# Company
|
|
841
|
+
# Company study collaborators by disease area
|
|
751
842
|
# @param id [String]
|
|
752
843
|
# @param [Hash] opts the optional parameters
|
|
753
844
|
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
@@ -756,13 +847,13 @@ module PharmaObservatory
|
|
|
756
847
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
757
848
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
758
849
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
759
|
-
# @return [
|
|
760
|
-
def
|
|
761
|
-
data, _status_code, _headers =
|
|
850
|
+
# @return [CompanyCollaboratorsResponse]
|
|
851
|
+
def companies_company_collaborators(id, opts = {})
|
|
852
|
+
data, _status_code, _headers = companies_company_collaborators_with_http_info(id, opts)
|
|
762
853
|
data
|
|
763
854
|
end
|
|
764
855
|
|
|
765
|
-
# Company
|
|
856
|
+
# Company study collaborators by disease area
|
|
766
857
|
# @param id [String]
|
|
767
858
|
# @param [Hash] opts the optional parameters
|
|
768
859
|
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
@@ -771,21 +862,21 @@ module PharmaObservatory
|
|
|
771
862
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
772
863
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
773
864
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
774
|
-
# @return [Array<(
|
|
775
|
-
def
|
|
865
|
+
# @return [Array<(CompanyCollaboratorsResponse, Integer, Hash)>] CompanyCollaboratorsResponse data, response status code and response headers
|
|
866
|
+
def companies_company_collaborators_with_http_info(id, opts = {})
|
|
776
867
|
if @api_client.config.debugging
|
|
777
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
868
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_collaborators ...'
|
|
778
869
|
end
|
|
779
870
|
# verify the required parameter 'id' is set
|
|
780
871
|
if @api_client.config.client_side_validation && id.nil?
|
|
781
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.
|
|
872
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_collaborators"
|
|
782
873
|
end
|
|
783
874
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
784
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
875
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_collaborators, must be smaller than or equal to 500.'
|
|
785
876
|
end
|
|
786
877
|
|
|
787
878
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
788
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
879
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_collaborators, must be greater than or equal to 1.'
|
|
789
880
|
end
|
|
790
881
|
|
|
791
882
|
allowable_values = ["company", "group"]
|
|
@@ -793,7 +884,7 @@ module PharmaObservatory
|
|
|
793
884
|
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
794
885
|
end
|
|
795
886
|
# resource path
|
|
796
|
-
local_var_path = '/api/v1/companies/{id}/
|
|
887
|
+
local_var_path = '/api/v1/companies/{id}/company_collaborators'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
797
888
|
|
|
798
889
|
# query parameters
|
|
799
890
|
query_params = opts[:query_params] || {}
|
|
@@ -816,13 +907,13 @@ module PharmaObservatory
|
|
|
816
907
|
post_body = opts[:debug_body]
|
|
817
908
|
|
|
818
909
|
# return_type
|
|
819
|
-
return_type = opts[:debug_return_type] || '
|
|
910
|
+
return_type = opts[:debug_return_type] || 'CompanyCollaboratorsResponse'
|
|
820
911
|
|
|
821
912
|
# auth_names
|
|
822
913
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
823
914
|
|
|
824
915
|
new_options = opts.merge(
|
|
825
|
-
:operation => :"CompaniesApi.
|
|
916
|
+
:operation => :"CompaniesApi.companies_company_collaborators",
|
|
826
917
|
:header_params => header_params,
|
|
827
918
|
:query_params => query_params,
|
|
828
919
|
:form_params => form_params,
|
|
@@ -833,12 +924,12 @@ module PharmaObservatory
|
|
|
833
924
|
|
|
834
925
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
835
926
|
if @api_client.config.debugging
|
|
836
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
927
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_company_collaborators\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
837
928
|
end
|
|
838
929
|
return data, status_code, headers
|
|
839
930
|
end
|
|
840
931
|
|
|
841
|
-
# Company
|
|
932
|
+
# Company competitor activity by disease area
|
|
842
933
|
# @param id [String]
|
|
843
934
|
# @param [Hash] opts the optional parameters
|
|
844
935
|
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
@@ -847,13 +938,13 @@ module PharmaObservatory
|
|
|
847
938
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
848
939
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
849
940
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
850
|
-
# @return [
|
|
851
|
-
def
|
|
852
|
-
data, _status_code, _headers =
|
|
941
|
+
# @return [CompanyCompetitorActivityResponse]
|
|
942
|
+
def companies_company_competitor_activity(id, opts = {})
|
|
943
|
+
data, _status_code, _headers = companies_company_competitor_activity_with_http_info(id, opts)
|
|
853
944
|
data
|
|
854
945
|
end
|
|
855
946
|
|
|
856
|
-
# Company
|
|
947
|
+
# Company competitor activity by disease area
|
|
857
948
|
# @param id [String]
|
|
858
949
|
# @param [Hash] opts the optional parameters
|
|
859
950
|
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
@@ -862,21 +953,21 @@ module PharmaObservatory
|
|
|
862
953
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
863
954
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
864
955
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
865
|
-
# @return [Array<(
|
|
866
|
-
def
|
|
956
|
+
# @return [Array<(CompanyCompetitorActivityResponse, Integer, Hash)>] CompanyCompetitorActivityResponse data, response status code and response headers
|
|
957
|
+
def companies_company_competitor_activity_with_http_info(id, opts = {})
|
|
867
958
|
if @api_client.config.debugging
|
|
868
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
959
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_competitor_activity ...'
|
|
869
960
|
end
|
|
870
961
|
# verify the required parameter 'id' is set
|
|
871
962
|
if @api_client.config.client_side_validation && id.nil?
|
|
872
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.
|
|
963
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_competitor_activity"
|
|
873
964
|
end
|
|
874
965
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
875
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
966
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_competitor_activity, must be smaller than or equal to 500.'
|
|
876
967
|
end
|
|
877
968
|
|
|
878
969
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
879
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
970
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_competitor_activity, must be greater than or equal to 1.'
|
|
880
971
|
end
|
|
881
972
|
|
|
882
973
|
allowable_values = ["company", "group"]
|
|
@@ -884,7 +975,7 @@ module PharmaObservatory
|
|
|
884
975
|
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
885
976
|
end
|
|
886
977
|
# resource path
|
|
887
|
-
local_var_path = '/api/v1/companies/{id}/
|
|
978
|
+
local_var_path = '/api/v1/companies/{id}/company_competitor_activity'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
888
979
|
|
|
889
980
|
# query parameters
|
|
890
981
|
query_params = opts[:query_params] || {}
|
|
@@ -907,13 +998,13 @@ module PharmaObservatory
|
|
|
907
998
|
post_body = opts[:debug_body]
|
|
908
999
|
|
|
909
1000
|
# return_type
|
|
910
|
-
return_type = opts[:debug_return_type] || '
|
|
1001
|
+
return_type = opts[:debug_return_type] || 'CompanyCompetitorActivityResponse'
|
|
911
1002
|
|
|
912
1003
|
# auth_names
|
|
913
1004
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
914
1005
|
|
|
915
1006
|
new_options = opts.merge(
|
|
916
|
-
:operation => :"CompaniesApi.
|
|
1007
|
+
:operation => :"CompaniesApi.companies_company_competitor_activity",
|
|
917
1008
|
:header_params => header_params,
|
|
918
1009
|
:query_params => query_params,
|
|
919
1010
|
:form_params => form_params,
|
|
@@ -924,12 +1015,12 @@ module PharmaObservatory
|
|
|
924
1015
|
|
|
925
1016
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
926
1017
|
if @api_client.config.debugging
|
|
927
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
1018
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_company_competitor_activity\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
928
1019
|
end
|
|
929
1020
|
return data, status_code, headers
|
|
930
1021
|
end
|
|
931
1022
|
|
|
932
|
-
# Company
|
|
1023
|
+
# Company competitors
|
|
933
1024
|
# @param id [String]
|
|
934
1025
|
# @param [Hash] opts the optional parameters
|
|
935
1026
|
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
@@ -938,13 +1029,13 @@ module PharmaObservatory
|
|
|
938
1029
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
939
1030
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
940
1031
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
941
|
-
# @return [
|
|
942
|
-
def
|
|
943
|
-
data, _status_code, _headers =
|
|
1032
|
+
# @return [CompanyCompetitorsResponse]
|
|
1033
|
+
def companies_company_competitors(id, opts = {})
|
|
1034
|
+
data, _status_code, _headers = companies_company_competitors_with_http_info(id, opts)
|
|
944
1035
|
data
|
|
945
1036
|
end
|
|
946
1037
|
|
|
947
|
-
# Company
|
|
1038
|
+
# Company competitors
|
|
948
1039
|
# @param id [String]
|
|
949
1040
|
# @param [Hash] opts the optional parameters
|
|
950
1041
|
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
@@ -953,21 +1044,21 @@ module PharmaObservatory
|
|
|
953
1044
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
954
1045
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
955
1046
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
956
|
-
# @return [Array<(
|
|
957
|
-
def
|
|
1047
|
+
# @return [Array<(CompanyCompetitorsResponse, Integer, Hash)>] CompanyCompetitorsResponse data, response status code and response headers
|
|
1048
|
+
def companies_company_competitors_with_http_info(id, opts = {})
|
|
958
1049
|
if @api_client.config.debugging
|
|
959
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
1050
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_competitors ...'
|
|
960
1051
|
end
|
|
961
1052
|
# verify the required parameter 'id' is set
|
|
962
1053
|
if @api_client.config.client_side_validation && id.nil?
|
|
963
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.
|
|
1054
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_competitors"
|
|
964
1055
|
end
|
|
965
1056
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
966
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
1057
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_competitors, must be smaller than or equal to 500.'
|
|
967
1058
|
end
|
|
968
1059
|
|
|
969
1060
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
970
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
1061
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_competitors, must be greater than or equal to 1.'
|
|
971
1062
|
end
|
|
972
1063
|
|
|
973
1064
|
allowable_values = ["company", "group"]
|
|
@@ -975,7 +1066,7 @@ module PharmaObservatory
|
|
|
975
1066
|
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
976
1067
|
end
|
|
977
1068
|
# resource path
|
|
978
|
-
local_var_path = '/api/v1/companies/{id}/
|
|
1069
|
+
local_var_path = '/api/v1/companies/{id}/company_competitors'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
979
1070
|
|
|
980
1071
|
# query parameters
|
|
981
1072
|
query_params = opts[:query_params] || {}
|
|
@@ -998,13 +1089,13 @@ module PharmaObservatory
|
|
|
998
1089
|
post_body = opts[:debug_body]
|
|
999
1090
|
|
|
1000
1091
|
# return_type
|
|
1001
|
-
return_type = opts[:debug_return_type] || '
|
|
1092
|
+
return_type = opts[:debug_return_type] || 'CompanyCompetitorsResponse'
|
|
1002
1093
|
|
|
1003
1094
|
# auth_names
|
|
1004
1095
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1005
1096
|
|
|
1006
1097
|
new_options = opts.merge(
|
|
1007
|
-
:operation => :"CompaniesApi.
|
|
1098
|
+
:operation => :"CompaniesApi.companies_company_competitors",
|
|
1008
1099
|
:header_params => header_params,
|
|
1009
1100
|
:query_params => query_params,
|
|
1010
1101
|
:form_params => form_params,
|
|
@@ -1015,12 +1106,12 @@ module PharmaObservatory
|
|
|
1015
1106
|
|
|
1016
1107
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1017
1108
|
if @api_client.config.debugging
|
|
1018
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
1109
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_company_competitors\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1019
1110
|
end
|
|
1020
1111
|
return data, status_code, headers
|
|
1021
1112
|
end
|
|
1022
1113
|
|
|
1023
|
-
# Company
|
|
1114
|
+
# Company SEC financials
|
|
1024
1115
|
# @param id [String]
|
|
1025
1116
|
# @param [Hash] opts the optional parameters
|
|
1026
1117
|
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
@@ -1029,13 +1120,13 @@ module PharmaObservatory
|
|
|
1029
1120
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1030
1121
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1031
1122
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1032
|
-
# @return [
|
|
1033
|
-
def
|
|
1034
|
-
data, _status_code, _headers =
|
|
1123
|
+
# @return [CompanyFinancialsResponse]
|
|
1124
|
+
def companies_company_financials(id, opts = {})
|
|
1125
|
+
data, _status_code, _headers = companies_company_financials_with_http_info(id, opts)
|
|
1035
1126
|
data
|
|
1036
1127
|
end
|
|
1037
1128
|
|
|
1038
|
-
# Company
|
|
1129
|
+
# Company SEC financials
|
|
1039
1130
|
# @param id [String]
|
|
1040
1131
|
# @param [Hash] opts the optional parameters
|
|
1041
1132
|
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
@@ -1044,21 +1135,658 @@ module PharmaObservatory
|
|
|
1044
1135
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1045
1136
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1046
1137
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1047
|
-
# @return [Array<(
|
|
1048
|
-
def
|
|
1138
|
+
# @return [Array<(CompanyFinancialsResponse, Integer, Hash)>] CompanyFinancialsResponse data, response status code and response headers
|
|
1139
|
+
def companies_company_financials_with_http_info(id, opts = {})
|
|
1049
1140
|
if @api_client.config.debugging
|
|
1050
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
1141
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_financials ...'
|
|
1142
|
+
end
|
|
1143
|
+
# verify the required parameter 'id' is set
|
|
1144
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1145
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_financials"
|
|
1146
|
+
end
|
|
1147
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1148
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_financials, must be smaller than or equal to 500.'
|
|
1149
|
+
end
|
|
1150
|
+
|
|
1151
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1152
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_financials, must be greater than or equal to 1.'
|
|
1153
|
+
end
|
|
1154
|
+
|
|
1155
|
+
allowable_values = ["company", "group"]
|
|
1156
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
1157
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
1158
|
+
end
|
|
1159
|
+
# resource path
|
|
1160
|
+
local_var_path = '/api/v1/companies/{id}/company_financials'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1161
|
+
|
|
1162
|
+
# query parameters
|
|
1163
|
+
query_params = opts[:query_params] || {}
|
|
1164
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
1165
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1166
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
1167
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
1168
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
1169
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
1170
|
+
|
|
1171
|
+
# header parameters
|
|
1172
|
+
header_params = opts[:header_params] || {}
|
|
1173
|
+
# HTTP header 'Accept' (if needed)
|
|
1174
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1175
|
+
|
|
1176
|
+
# form parameters
|
|
1177
|
+
form_params = opts[:form_params] || {}
|
|
1178
|
+
|
|
1179
|
+
# http body (model)
|
|
1180
|
+
post_body = opts[:debug_body]
|
|
1181
|
+
|
|
1182
|
+
# return_type
|
|
1183
|
+
return_type = opts[:debug_return_type] || 'CompanyFinancialsResponse'
|
|
1184
|
+
|
|
1185
|
+
# auth_names
|
|
1186
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1187
|
+
|
|
1188
|
+
new_options = opts.merge(
|
|
1189
|
+
:operation => :"CompaniesApi.companies_company_financials",
|
|
1190
|
+
:header_params => header_params,
|
|
1191
|
+
:query_params => query_params,
|
|
1192
|
+
:form_params => form_params,
|
|
1193
|
+
:body => post_body,
|
|
1194
|
+
:auth_names => auth_names,
|
|
1195
|
+
:return_type => return_type
|
|
1196
|
+
)
|
|
1197
|
+
|
|
1198
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1199
|
+
if @api_client.config.debugging
|
|
1200
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_company_financials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1201
|
+
end
|
|
1202
|
+
return data, status_code, headers
|
|
1203
|
+
end
|
|
1204
|
+
|
|
1205
|
+
# Company firmographics
|
|
1206
|
+
# @param id [String]
|
|
1207
|
+
# @param [Hash] opts the optional parameters
|
|
1208
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
1209
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1210
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1211
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1212
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1213
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1214
|
+
# @return [CompanyFirmographicsResponse]
|
|
1215
|
+
def companies_company_firmographics(id, opts = {})
|
|
1216
|
+
data, _status_code, _headers = companies_company_firmographics_with_http_info(id, opts)
|
|
1217
|
+
data
|
|
1218
|
+
end
|
|
1219
|
+
|
|
1220
|
+
# Company firmographics
|
|
1221
|
+
# @param id [String]
|
|
1222
|
+
# @param [Hash] opts the optional parameters
|
|
1223
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
1224
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1225
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1226
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1227
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1228
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1229
|
+
# @return [Array<(CompanyFirmographicsResponse, Integer, Hash)>] CompanyFirmographicsResponse data, response status code and response headers
|
|
1230
|
+
def companies_company_firmographics_with_http_info(id, opts = {})
|
|
1231
|
+
if @api_client.config.debugging
|
|
1232
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_firmographics ...'
|
|
1233
|
+
end
|
|
1234
|
+
# verify the required parameter 'id' is set
|
|
1235
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1236
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_firmographics"
|
|
1237
|
+
end
|
|
1238
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1239
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_firmographics, must be smaller than or equal to 500.'
|
|
1240
|
+
end
|
|
1241
|
+
|
|
1242
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1243
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_firmographics, must be greater than or equal to 1.'
|
|
1244
|
+
end
|
|
1245
|
+
|
|
1246
|
+
allowable_values = ["company", "group"]
|
|
1247
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
1248
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
1249
|
+
end
|
|
1250
|
+
# resource path
|
|
1251
|
+
local_var_path = '/api/v1/companies/{id}/company_firmographics'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1252
|
+
|
|
1253
|
+
# query parameters
|
|
1254
|
+
query_params = opts[:query_params] || {}
|
|
1255
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
1256
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1257
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
1258
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
1259
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
1260
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
1261
|
+
|
|
1262
|
+
# header parameters
|
|
1263
|
+
header_params = opts[:header_params] || {}
|
|
1264
|
+
# HTTP header 'Accept' (if needed)
|
|
1265
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1266
|
+
|
|
1267
|
+
# form parameters
|
|
1268
|
+
form_params = opts[:form_params] || {}
|
|
1269
|
+
|
|
1270
|
+
# http body (model)
|
|
1271
|
+
post_body = opts[:debug_body]
|
|
1272
|
+
|
|
1273
|
+
# return_type
|
|
1274
|
+
return_type = opts[:debug_return_type] || 'CompanyFirmographicsResponse'
|
|
1275
|
+
|
|
1276
|
+
# auth_names
|
|
1277
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1278
|
+
|
|
1279
|
+
new_options = opts.merge(
|
|
1280
|
+
:operation => :"CompaniesApi.companies_company_firmographics",
|
|
1281
|
+
:header_params => header_params,
|
|
1282
|
+
:query_params => query_params,
|
|
1283
|
+
:form_params => form_params,
|
|
1284
|
+
:body => post_body,
|
|
1285
|
+
:auth_names => auth_names,
|
|
1286
|
+
:return_type => return_type
|
|
1287
|
+
)
|
|
1288
|
+
|
|
1289
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1290
|
+
if @api_client.config.debugging
|
|
1291
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_company_firmographics\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1292
|
+
end
|
|
1293
|
+
return data, status_code, headers
|
|
1294
|
+
end
|
|
1295
|
+
|
|
1296
|
+
# Company funding events
|
|
1297
|
+
# @param id [String]
|
|
1298
|
+
# @param [Hash] opts the optional parameters
|
|
1299
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
1300
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1301
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1302
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1303
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1304
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1305
|
+
# @return [CompanyFundingEventsResponse]
|
|
1306
|
+
def companies_company_funding_events(id, opts = {})
|
|
1307
|
+
data, _status_code, _headers = companies_company_funding_events_with_http_info(id, opts)
|
|
1308
|
+
data
|
|
1309
|
+
end
|
|
1310
|
+
|
|
1311
|
+
# Company funding events
|
|
1312
|
+
# @param id [String]
|
|
1313
|
+
# @param [Hash] opts the optional parameters
|
|
1314
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
1315
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1316
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1317
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1318
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1319
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1320
|
+
# @return [Array<(CompanyFundingEventsResponse, Integer, Hash)>] CompanyFundingEventsResponse data, response status code and response headers
|
|
1321
|
+
def companies_company_funding_events_with_http_info(id, opts = {})
|
|
1322
|
+
if @api_client.config.debugging
|
|
1323
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_funding_events ...'
|
|
1324
|
+
end
|
|
1325
|
+
# verify the required parameter 'id' is set
|
|
1326
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1327
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_funding_events"
|
|
1328
|
+
end
|
|
1329
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1330
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_funding_events, must be smaller than or equal to 500.'
|
|
1331
|
+
end
|
|
1332
|
+
|
|
1333
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1334
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_funding_events, must be greater than or equal to 1.'
|
|
1335
|
+
end
|
|
1336
|
+
|
|
1337
|
+
allowable_values = ["company", "group"]
|
|
1338
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
1339
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
1340
|
+
end
|
|
1341
|
+
# resource path
|
|
1342
|
+
local_var_path = '/api/v1/companies/{id}/company_funding_events'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1343
|
+
|
|
1344
|
+
# query parameters
|
|
1345
|
+
query_params = opts[:query_params] || {}
|
|
1346
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
1347
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1348
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
1349
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
1350
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
1351
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
1352
|
+
|
|
1353
|
+
# header parameters
|
|
1354
|
+
header_params = opts[:header_params] || {}
|
|
1355
|
+
# HTTP header 'Accept' (if needed)
|
|
1356
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1357
|
+
|
|
1358
|
+
# form parameters
|
|
1359
|
+
form_params = opts[:form_params] || {}
|
|
1360
|
+
|
|
1361
|
+
# http body (model)
|
|
1362
|
+
post_body = opts[:debug_body]
|
|
1363
|
+
|
|
1364
|
+
# return_type
|
|
1365
|
+
return_type = opts[:debug_return_type] || 'CompanyFundingEventsResponse'
|
|
1366
|
+
|
|
1367
|
+
# auth_names
|
|
1368
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1369
|
+
|
|
1370
|
+
new_options = opts.merge(
|
|
1371
|
+
:operation => :"CompaniesApi.companies_company_funding_events",
|
|
1372
|
+
:header_params => header_params,
|
|
1373
|
+
:query_params => query_params,
|
|
1374
|
+
:form_params => form_params,
|
|
1375
|
+
:body => post_body,
|
|
1376
|
+
:auth_names => auth_names,
|
|
1377
|
+
:return_type => return_type
|
|
1378
|
+
)
|
|
1379
|
+
|
|
1380
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1381
|
+
if @api_client.config.debugging
|
|
1382
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_company_funding_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1383
|
+
end
|
|
1384
|
+
return data, status_code, headers
|
|
1385
|
+
end
|
|
1386
|
+
|
|
1387
|
+
# Company funding summary
|
|
1388
|
+
# @param id [String]
|
|
1389
|
+
# @param [Hash] opts the optional parameters
|
|
1390
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
1391
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1392
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1393
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1394
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1395
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1396
|
+
# @return [CompanyFundingSummaryResponse]
|
|
1397
|
+
def companies_company_funding_summary(id, opts = {})
|
|
1398
|
+
data, _status_code, _headers = companies_company_funding_summary_with_http_info(id, opts)
|
|
1399
|
+
data
|
|
1400
|
+
end
|
|
1401
|
+
|
|
1402
|
+
# Company funding summary
|
|
1403
|
+
# @param id [String]
|
|
1404
|
+
# @param [Hash] opts the optional parameters
|
|
1405
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
1406
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1407
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1408
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1409
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1410
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1411
|
+
# @return [Array<(CompanyFundingSummaryResponse, Integer, Hash)>] CompanyFundingSummaryResponse data, response status code and response headers
|
|
1412
|
+
def companies_company_funding_summary_with_http_info(id, opts = {})
|
|
1413
|
+
if @api_client.config.debugging
|
|
1414
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_funding_summary ...'
|
|
1415
|
+
end
|
|
1416
|
+
# verify the required parameter 'id' is set
|
|
1417
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1418
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_funding_summary"
|
|
1419
|
+
end
|
|
1420
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1421
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_funding_summary, must be smaller than or equal to 500.'
|
|
1422
|
+
end
|
|
1423
|
+
|
|
1424
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1425
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_funding_summary, must be greater than or equal to 1.'
|
|
1426
|
+
end
|
|
1427
|
+
|
|
1428
|
+
allowable_values = ["company", "group"]
|
|
1429
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
1430
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
1431
|
+
end
|
|
1432
|
+
# resource path
|
|
1433
|
+
local_var_path = '/api/v1/companies/{id}/company_funding_summary'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1434
|
+
|
|
1435
|
+
# query parameters
|
|
1436
|
+
query_params = opts[:query_params] || {}
|
|
1437
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
1438
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1439
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
1440
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
1441
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
1442
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
1443
|
+
|
|
1444
|
+
# header parameters
|
|
1445
|
+
header_params = opts[:header_params] || {}
|
|
1446
|
+
# HTTP header 'Accept' (if needed)
|
|
1447
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1448
|
+
|
|
1449
|
+
# form parameters
|
|
1450
|
+
form_params = opts[:form_params] || {}
|
|
1451
|
+
|
|
1452
|
+
# http body (model)
|
|
1453
|
+
post_body = opts[:debug_body]
|
|
1454
|
+
|
|
1455
|
+
# return_type
|
|
1456
|
+
return_type = opts[:debug_return_type] || 'CompanyFundingSummaryResponse'
|
|
1457
|
+
|
|
1458
|
+
# auth_names
|
|
1459
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1460
|
+
|
|
1461
|
+
new_options = opts.merge(
|
|
1462
|
+
:operation => :"CompaniesApi.companies_company_funding_summary",
|
|
1463
|
+
:header_params => header_params,
|
|
1464
|
+
:query_params => query_params,
|
|
1465
|
+
:form_params => form_params,
|
|
1466
|
+
:body => post_body,
|
|
1467
|
+
:auth_names => auth_names,
|
|
1468
|
+
:return_type => return_type
|
|
1469
|
+
)
|
|
1470
|
+
|
|
1471
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1472
|
+
if @api_client.config.debugging
|
|
1473
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_company_funding_summary\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1474
|
+
end
|
|
1475
|
+
return data, status_code, headers
|
|
1476
|
+
end
|
|
1477
|
+
|
|
1478
|
+
# Company members
|
|
1479
|
+
# @param id [String]
|
|
1480
|
+
# @param [Hash] opts the optional parameters
|
|
1481
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
1482
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1483
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1484
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1485
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1486
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1487
|
+
# @return [CompanyMembersResponse]
|
|
1488
|
+
def companies_company_members(id, opts = {})
|
|
1489
|
+
data, _status_code, _headers = companies_company_members_with_http_info(id, opts)
|
|
1490
|
+
data
|
|
1491
|
+
end
|
|
1492
|
+
|
|
1493
|
+
# Company members
|
|
1494
|
+
# @param id [String]
|
|
1495
|
+
# @param [Hash] opts the optional parameters
|
|
1496
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
1497
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1498
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1499
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1500
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1501
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1502
|
+
# @return [Array<(CompanyMembersResponse, Integer, Hash)>] CompanyMembersResponse data, response status code and response headers
|
|
1503
|
+
def companies_company_members_with_http_info(id, opts = {})
|
|
1504
|
+
if @api_client.config.debugging
|
|
1505
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_members ...'
|
|
1506
|
+
end
|
|
1507
|
+
# verify the required parameter 'id' is set
|
|
1508
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1509
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_members"
|
|
1510
|
+
end
|
|
1511
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1512
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_members, must be smaller than or equal to 500.'
|
|
1513
|
+
end
|
|
1514
|
+
|
|
1515
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1516
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_members, must be greater than or equal to 1.'
|
|
1517
|
+
end
|
|
1518
|
+
|
|
1519
|
+
allowable_values = ["company", "group"]
|
|
1520
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
1521
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
1522
|
+
end
|
|
1523
|
+
# resource path
|
|
1524
|
+
local_var_path = '/api/v1/companies/{id}/company_members'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1525
|
+
|
|
1526
|
+
# query parameters
|
|
1527
|
+
query_params = opts[:query_params] || {}
|
|
1528
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
1529
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1530
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
1531
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
1532
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
1533
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
1534
|
+
|
|
1535
|
+
# header parameters
|
|
1536
|
+
header_params = opts[:header_params] || {}
|
|
1537
|
+
# HTTP header 'Accept' (if needed)
|
|
1538
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1539
|
+
|
|
1540
|
+
# form parameters
|
|
1541
|
+
form_params = opts[:form_params] || {}
|
|
1542
|
+
|
|
1543
|
+
# http body (model)
|
|
1544
|
+
post_body = opts[:debug_body]
|
|
1545
|
+
|
|
1546
|
+
# return_type
|
|
1547
|
+
return_type = opts[:debug_return_type] || 'CompanyMembersResponse'
|
|
1548
|
+
|
|
1549
|
+
# auth_names
|
|
1550
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1551
|
+
|
|
1552
|
+
new_options = opts.merge(
|
|
1553
|
+
:operation => :"CompaniesApi.companies_company_members",
|
|
1554
|
+
:header_params => header_params,
|
|
1555
|
+
:query_params => query_params,
|
|
1556
|
+
:form_params => form_params,
|
|
1557
|
+
:body => post_body,
|
|
1558
|
+
:auth_names => auth_names,
|
|
1559
|
+
:return_type => return_type
|
|
1560
|
+
)
|
|
1561
|
+
|
|
1562
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1563
|
+
if @api_client.config.debugging
|
|
1564
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_company_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1565
|
+
end
|
|
1566
|
+
return data, status_code, headers
|
|
1567
|
+
end
|
|
1568
|
+
|
|
1569
|
+
# Company programs
|
|
1570
|
+
# @param id [String]
|
|
1571
|
+
# @param [Hash] opts the optional parameters
|
|
1572
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
1573
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1574
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1575
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1576
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1577
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1578
|
+
# @return [CompanyProgramsResponse]
|
|
1579
|
+
def companies_company_programs(id, opts = {})
|
|
1580
|
+
data, _status_code, _headers = companies_company_programs_with_http_info(id, opts)
|
|
1581
|
+
data
|
|
1582
|
+
end
|
|
1583
|
+
|
|
1584
|
+
# Company programs
|
|
1585
|
+
# @param id [String]
|
|
1586
|
+
# @param [Hash] opts the optional parameters
|
|
1587
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
1588
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1589
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1590
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1591
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1592
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1593
|
+
# @return [Array<(CompanyProgramsResponse, Integer, Hash)>] CompanyProgramsResponse data, response status code and response headers
|
|
1594
|
+
def companies_company_programs_with_http_info(id, opts = {})
|
|
1595
|
+
if @api_client.config.debugging
|
|
1596
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_programs ...'
|
|
1597
|
+
end
|
|
1598
|
+
# verify the required parameter 'id' is set
|
|
1599
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1600
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_programs"
|
|
1601
|
+
end
|
|
1602
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1603
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_programs, must be smaller than or equal to 500.'
|
|
1604
|
+
end
|
|
1605
|
+
|
|
1606
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1607
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_programs, must be greater than or equal to 1.'
|
|
1608
|
+
end
|
|
1609
|
+
|
|
1610
|
+
allowable_values = ["company", "group"]
|
|
1611
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
1612
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
1613
|
+
end
|
|
1614
|
+
# resource path
|
|
1615
|
+
local_var_path = '/api/v1/companies/{id}/company_programs'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1616
|
+
|
|
1617
|
+
# query parameters
|
|
1618
|
+
query_params = opts[:query_params] || {}
|
|
1619
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
1620
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1621
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
1622
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
1623
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
1624
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
1625
|
+
|
|
1626
|
+
# header parameters
|
|
1627
|
+
header_params = opts[:header_params] || {}
|
|
1628
|
+
# HTTP header 'Accept' (if needed)
|
|
1629
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1630
|
+
|
|
1631
|
+
# form parameters
|
|
1632
|
+
form_params = opts[:form_params] || {}
|
|
1633
|
+
|
|
1634
|
+
# http body (model)
|
|
1635
|
+
post_body = opts[:debug_body]
|
|
1636
|
+
|
|
1637
|
+
# return_type
|
|
1638
|
+
return_type = opts[:debug_return_type] || 'CompanyProgramsResponse'
|
|
1639
|
+
|
|
1640
|
+
# auth_names
|
|
1641
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1642
|
+
|
|
1643
|
+
new_options = opts.merge(
|
|
1644
|
+
:operation => :"CompaniesApi.companies_company_programs",
|
|
1645
|
+
:header_params => header_params,
|
|
1646
|
+
:query_params => query_params,
|
|
1647
|
+
:form_params => form_params,
|
|
1648
|
+
:body => post_body,
|
|
1649
|
+
:auth_names => auth_names,
|
|
1650
|
+
:return_type => return_type
|
|
1651
|
+
)
|
|
1652
|
+
|
|
1653
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1654
|
+
if @api_client.config.debugging
|
|
1655
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_company_programs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1656
|
+
end
|
|
1657
|
+
return data, status_code, headers
|
|
1658
|
+
end
|
|
1659
|
+
|
|
1660
|
+
# Organization-wide rare disease declarations
|
|
1661
|
+
# @param id [String]
|
|
1662
|
+
# @param [Hash] opts the optional parameters
|
|
1663
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
1664
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1665
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1666
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1667
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1668
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1669
|
+
# @return [CompanyRareDiseaseDeclarationsResponse]
|
|
1670
|
+
def companies_company_rare_disease_declarations(id, opts = {})
|
|
1671
|
+
data, _status_code, _headers = companies_company_rare_disease_declarations_with_http_info(id, opts)
|
|
1672
|
+
data
|
|
1673
|
+
end
|
|
1674
|
+
|
|
1675
|
+
# Organization-wide rare disease declarations
|
|
1676
|
+
# @param id [String]
|
|
1677
|
+
# @param [Hash] opts the optional parameters
|
|
1678
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
1679
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1680
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1681
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1682
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1683
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1684
|
+
# @return [Array<(CompanyRareDiseaseDeclarationsResponse, Integer, Hash)>] CompanyRareDiseaseDeclarationsResponse data, response status code and response headers
|
|
1685
|
+
def companies_company_rare_disease_declarations_with_http_info(id, opts = {})
|
|
1686
|
+
if @api_client.config.debugging
|
|
1687
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_rare_disease_declarations ...'
|
|
1688
|
+
end
|
|
1689
|
+
# verify the required parameter 'id' is set
|
|
1690
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1691
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_rare_disease_declarations"
|
|
1692
|
+
end
|
|
1693
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1694
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_rare_disease_declarations, must be smaller than or equal to 500.'
|
|
1695
|
+
end
|
|
1696
|
+
|
|
1697
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1698
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_rare_disease_declarations, must be greater than or equal to 1.'
|
|
1699
|
+
end
|
|
1700
|
+
|
|
1701
|
+
allowable_values = ["company", "group"]
|
|
1702
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
1703
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
1704
|
+
end
|
|
1705
|
+
# resource path
|
|
1706
|
+
local_var_path = '/api/v1/companies/{id}/company_rare_disease_declarations'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1707
|
+
|
|
1708
|
+
# query parameters
|
|
1709
|
+
query_params = opts[:query_params] || {}
|
|
1710
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
1711
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1712
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
1713
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
1714
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
1715
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
1716
|
+
|
|
1717
|
+
# header parameters
|
|
1718
|
+
header_params = opts[:header_params] || {}
|
|
1719
|
+
# HTTP header 'Accept' (if needed)
|
|
1720
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1721
|
+
|
|
1722
|
+
# form parameters
|
|
1723
|
+
form_params = opts[:form_params] || {}
|
|
1724
|
+
|
|
1725
|
+
# http body (model)
|
|
1726
|
+
post_body = opts[:debug_body]
|
|
1727
|
+
|
|
1728
|
+
# return_type
|
|
1729
|
+
return_type = opts[:debug_return_type] || 'CompanyRareDiseaseDeclarationsResponse'
|
|
1730
|
+
|
|
1731
|
+
# auth_names
|
|
1732
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1733
|
+
|
|
1734
|
+
new_options = opts.merge(
|
|
1735
|
+
:operation => :"CompaniesApi.companies_company_rare_disease_declarations",
|
|
1736
|
+
:header_params => header_params,
|
|
1737
|
+
:query_params => query_params,
|
|
1738
|
+
:form_params => form_params,
|
|
1739
|
+
:body => post_body,
|
|
1740
|
+
:auth_names => auth_names,
|
|
1741
|
+
:return_type => return_type
|
|
1742
|
+
)
|
|
1743
|
+
|
|
1744
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1745
|
+
if @api_client.config.debugging
|
|
1746
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_company_rare_disease_declarations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1747
|
+
end
|
|
1748
|
+
return data, status_code, headers
|
|
1749
|
+
end
|
|
1750
|
+
|
|
1751
|
+
# Targets a company pursues
|
|
1752
|
+
# @param id [String]
|
|
1753
|
+
# @param [Hash] opts the optional parameters
|
|
1754
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
1755
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1756
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1757
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1758
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1759
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1760
|
+
# @return [CompanyTargetsResponse]
|
|
1761
|
+
def companies_company_targets(id, opts = {})
|
|
1762
|
+
data, _status_code, _headers = companies_company_targets_with_http_info(id, opts)
|
|
1763
|
+
data
|
|
1764
|
+
end
|
|
1765
|
+
|
|
1766
|
+
# Targets a company pursues
|
|
1767
|
+
# @param id [String]
|
|
1768
|
+
# @param [Hash] opts the optional parameters
|
|
1769
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
1770
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1771
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1772
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1773
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1774
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1775
|
+
# @return [Array<(CompanyTargetsResponse, Integer, Hash)>] CompanyTargetsResponse data, response status code and response headers
|
|
1776
|
+
def companies_company_targets_with_http_info(id, opts = {})
|
|
1777
|
+
if @api_client.config.debugging
|
|
1778
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_targets ...'
|
|
1051
1779
|
end
|
|
1052
1780
|
# verify the required parameter 'id' is set
|
|
1053
1781
|
if @api_client.config.client_side_validation && id.nil?
|
|
1054
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.
|
|
1782
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_targets"
|
|
1055
1783
|
end
|
|
1056
1784
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1057
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
1785
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_targets, must be smaller than or equal to 500.'
|
|
1058
1786
|
end
|
|
1059
1787
|
|
|
1060
1788
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1061
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
1789
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_targets, must be greater than or equal to 1.'
|
|
1062
1790
|
end
|
|
1063
1791
|
|
|
1064
1792
|
allowable_values = ["company", "group"]
|
|
@@ -1066,7 +1794,7 @@ module PharmaObservatory
|
|
|
1066
1794
|
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
1067
1795
|
end
|
|
1068
1796
|
# resource path
|
|
1069
|
-
local_var_path = '/api/v1/companies/{id}/
|
|
1797
|
+
local_var_path = '/api/v1/companies/{id}/company_targets'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1070
1798
|
|
|
1071
1799
|
# query parameters
|
|
1072
1800
|
query_params = opts[:query_params] || {}
|
|
@@ -1089,13 +1817,13 @@ module PharmaObservatory
|
|
|
1089
1817
|
post_body = opts[:debug_body]
|
|
1090
1818
|
|
|
1091
1819
|
# return_type
|
|
1092
|
-
return_type = opts[:debug_return_type] || '
|
|
1820
|
+
return_type = opts[:debug_return_type] || 'CompanyTargetsResponse'
|
|
1093
1821
|
|
|
1094
1822
|
# auth_names
|
|
1095
1823
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1096
1824
|
|
|
1097
1825
|
new_options = opts.merge(
|
|
1098
|
-
:operation => :"CompaniesApi.
|
|
1826
|
+
:operation => :"CompaniesApi.companies_company_targets",
|
|
1099
1827
|
:header_params => header_params,
|
|
1100
1828
|
:query_params => query_params,
|
|
1101
1829
|
:form_params => form_params,
|
|
@@ -1106,12 +1834,12 @@ module PharmaObservatory
|
|
|
1106
1834
|
|
|
1107
1835
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1108
1836
|
if @api_client.config.debugging
|
|
1109
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
1837
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_company_targets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1110
1838
|
end
|
|
1111
1839
|
return data, status_code, headers
|
|
1112
1840
|
end
|
|
1113
1841
|
|
|
1114
|
-
#
|
|
1842
|
+
# Company timeline
|
|
1115
1843
|
# @param id [String]
|
|
1116
1844
|
# @param [Hash] opts the optional parameters
|
|
1117
1845
|
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
@@ -1120,13 +1848,13 @@ module PharmaObservatory
|
|
|
1120
1848
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1121
1849
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1122
1850
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1123
|
-
# @return [
|
|
1124
|
-
def
|
|
1125
|
-
data, _status_code, _headers =
|
|
1851
|
+
# @return [CompanyTimelineResponse]
|
|
1852
|
+
def companies_company_timeline(id, opts = {})
|
|
1853
|
+
data, _status_code, _headers = companies_company_timeline_with_http_info(id, opts)
|
|
1126
1854
|
data
|
|
1127
1855
|
end
|
|
1128
1856
|
|
|
1129
|
-
#
|
|
1857
|
+
# Company timeline
|
|
1130
1858
|
# @param id [String]
|
|
1131
1859
|
# @param [Hash] opts the optional parameters
|
|
1132
1860
|
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
@@ -1135,21 +1863,21 @@ module PharmaObservatory
|
|
|
1135
1863
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1136
1864
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1137
1865
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1138
|
-
# @return [Array<(
|
|
1139
|
-
def
|
|
1866
|
+
# @return [Array<(CompanyTimelineResponse, Integer, Hash)>] CompanyTimelineResponse data, response status code and response headers
|
|
1867
|
+
def companies_company_timeline_with_http_info(id, opts = {})
|
|
1140
1868
|
if @api_client.config.debugging
|
|
1141
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
1869
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_timeline ...'
|
|
1142
1870
|
end
|
|
1143
1871
|
# verify the required parameter 'id' is set
|
|
1144
1872
|
if @api_client.config.client_side_validation && id.nil?
|
|
1145
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.
|
|
1873
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_timeline"
|
|
1146
1874
|
end
|
|
1147
1875
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1148
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
1876
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_timeline, must be smaller than or equal to 500.'
|
|
1149
1877
|
end
|
|
1150
1878
|
|
|
1151
1879
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1152
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
1880
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_timeline, must be greater than or equal to 1.'
|
|
1153
1881
|
end
|
|
1154
1882
|
|
|
1155
1883
|
allowable_values = ["company", "group"]
|
|
@@ -1157,7 +1885,7 @@ module PharmaObservatory
|
|
|
1157
1885
|
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
1158
1886
|
end
|
|
1159
1887
|
# resource path
|
|
1160
|
-
local_var_path = '/api/v1/companies/{id}/
|
|
1888
|
+
local_var_path = '/api/v1/companies/{id}/company_timeline'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1161
1889
|
|
|
1162
1890
|
# query parameters
|
|
1163
1891
|
query_params = opts[:query_params] || {}
|
|
@@ -1180,13 +1908,13 @@ module PharmaObservatory
|
|
|
1180
1908
|
post_body = opts[:debug_body]
|
|
1181
1909
|
|
|
1182
1910
|
# return_type
|
|
1183
|
-
return_type = opts[:debug_return_type] || '
|
|
1911
|
+
return_type = opts[:debug_return_type] || 'CompanyTimelineResponse'
|
|
1184
1912
|
|
|
1185
1913
|
# auth_names
|
|
1186
1914
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1187
1915
|
|
|
1188
1916
|
new_options = opts.merge(
|
|
1189
|
-
:operation => :"CompaniesApi.
|
|
1917
|
+
:operation => :"CompaniesApi.companies_company_timeline",
|
|
1190
1918
|
:header_params => header_params,
|
|
1191
1919
|
:query_params => query_params,
|
|
1192
1920
|
:form_params => form_params,
|
|
@@ -1197,12 +1925,12 @@ module PharmaObservatory
|
|
|
1197
1925
|
|
|
1198
1926
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1199
1927
|
if @api_client.config.debugging
|
|
1200
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
1928
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_company_timeline\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1201
1929
|
end
|
|
1202
1930
|
return data, status_code, headers
|
|
1203
1931
|
end
|
|
1204
1932
|
|
|
1205
|
-
#
|
|
1933
|
+
# Company trial geography
|
|
1206
1934
|
# @param id [String]
|
|
1207
1935
|
# @param [Hash] opts the optional parameters
|
|
1208
1936
|
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
@@ -1211,13 +1939,13 @@ module PharmaObservatory
|
|
|
1211
1939
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1212
1940
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1213
1941
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1214
|
-
# @return [
|
|
1215
|
-
def
|
|
1216
|
-
data, _status_code, _headers =
|
|
1942
|
+
# @return [CompanyTrialGeographyResponse]
|
|
1943
|
+
def companies_company_trial_geography(id, opts = {})
|
|
1944
|
+
data, _status_code, _headers = companies_company_trial_geography_with_http_info(id, opts)
|
|
1217
1945
|
data
|
|
1218
1946
|
end
|
|
1219
1947
|
|
|
1220
|
-
#
|
|
1948
|
+
# Company trial geography
|
|
1221
1949
|
# @param id [String]
|
|
1222
1950
|
# @param [Hash] opts the optional parameters
|
|
1223
1951
|
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
@@ -1226,21 +1954,21 @@ module PharmaObservatory
|
|
|
1226
1954
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1227
1955
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1228
1956
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1229
|
-
# @return [Array<(
|
|
1230
|
-
def
|
|
1957
|
+
# @return [Array<(CompanyTrialGeographyResponse, Integer, Hash)>] CompanyTrialGeographyResponse data, response status code and response headers
|
|
1958
|
+
def companies_company_trial_geography_with_http_info(id, opts = {})
|
|
1231
1959
|
if @api_client.config.debugging
|
|
1232
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
1960
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_trial_geography ...'
|
|
1233
1961
|
end
|
|
1234
1962
|
# verify the required parameter 'id' is set
|
|
1235
1963
|
if @api_client.config.client_side_validation && id.nil?
|
|
1236
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.
|
|
1964
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_trial_geography"
|
|
1237
1965
|
end
|
|
1238
1966
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1239
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
1967
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_trial_geography, must be smaller than or equal to 500.'
|
|
1240
1968
|
end
|
|
1241
1969
|
|
|
1242
1970
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1243
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
1971
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_trial_geography, must be greater than or equal to 1.'
|
|
1244
1972
|
end
|
|
1245
1973
|
|
|
1246
1974
|
allowable_values = ["company", "group"]
|
|
@@ -1248,7 +1976,7 @@ module PharmaObservatory
|
|
|
1248
1976
|
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
1249
1977
|
end
|
|
1250
1978
|
# resource path
|
|
1251
|
-
local_var_path = '/api/v1/companies/{id}/
|
|
1979
|
+
local_var_path = '/api/v1/companies/{id}/company_trial_geography'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1252
1980
|
|
|
1253
1981
|
# query parameters
|
|
1254
1982
|
query_params = opts[:query_params] || {}
|
|
@@ -1271,13 +1999,13 @@ module PharmaObservatory
|
|
|
1271
1999
|
post_body = opts[:debug_body]
|
|
1272
2000
|
|
|
1273
2001
|
# return_type
|
|
1274
|
-
return_type = opts[:debug_return_type] || '
|
|
2002
|
+
return_type = opts[:debug_return_type] || 'CompanyTrialGeographyResponse'
|
|
1275
2003
|
|
|
1276
2004
|
# auth_names
|
|
1277
2005
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1278
2006
|
|
|
1279
2007
|
new_options = opts.merge(
|
|
1280
|
-
:operation => :"CompaniesApi.
|
|
2008
|
+
:operation => :"CompaniesApi.companies_company_trial_geography",
|
|
1281
2009
|
:header_params => header_params,
|
|
1282
2010
|
:query_params => query_params,
|
|
1283
2011
|
:form_params => form_params,
|
|
@@ -1288,12 +2016,12 @@ module PharmaObservatory
|
|
|
1288
2016
|
|
|
1289
2017
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1290
2018
|
if @api_client.config.debugging
|
|
1291
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
2019
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_company_trial_geography\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1292
2020
|
end
|
|
1293
2021
|
return data, status_code, headers
|
|
1294
2022
|
end
|
|
1295
2023
|
|
|
1296
|
-
# Company trial
|
|
2024
|
+
# Company trial sites
|
|
1297
2025
|
# @param id [String]
|
|
1298
2026
|
# @param [Hash] opts the optional parameters
|
|
1299
2027
|
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
@@ -1302,13 +2030,13 @@ module PharmaObservatory
|
|
|
1302
2030
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1303
2031
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1304
2032
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1305
|
-
# @return [
|
|
1306
|
-
def
|
|
1307
|
-
data, _status_code, _headers =
|
|
2033
|
+
# @return [CompanyTrialSitesResponse]
|
|
2034
|
+
def companies_company_trial_sites(id, opts = {})
|
|
2035
|
+
data, _status_code, _headers = companies_company_trial_sites_with_http_info(id, opts)
|
|
1308
2036
|
data
|
|
1309
2037
|
end
|
|
1310
2038
|
|
|
1311
|
-
# Company trial
|
|
2039
|
+
# Company trial sites
|
|
1312
2040
|
# @param id [String]
|
|
1313
2041
|
# @param [Hash] opts the optional parameters
|
|
1314
2042
|
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
@@ -1317,21 +2045,21 @@ module PharmaObservatory
|
|
|
1317
2045
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1318
2046
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1319
2047
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1320
|
-
# @return [Array<(
|
|
1321
|
-
def
|
|
2048
|
+
# @return [Array<(CompanyTrialSitesResponse, Integer, Hash)>] CompanyTrialSitesResponse data, response status code and response headers
|
|
2049
|
+
def companies_company_trial_sites_with_http_info(id, opts = {})
|
|
1322
2050
|
if @api_client.config.debugging
|
|
1323
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
2051
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_trial_sites ...'
|
|
1324
2052
|
end
|
|
1325
2053
|
# verify the required parameter 'id' is set
|
|
1326
2054
|
if @api_client.config.client_side_validation && id.nil?
|
|
1327
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.
|
|
2055
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_trial_sites"
|
|
1328
2056
|
end
|
|
1329
2057
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1330
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
2058
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_trial_sites, must be smaller than or equal to 500.'
|
|
1331
2059
|
end
|
|
1332
2060
|
|
|
1333
2061
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1334
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
2062
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_trial_sites, must be greater than or equal to 1.'
|
|
1335
2063
|
end
|
|
1336
2064
|
|
|
1337
2065
|
allowable_values = ["company", "group"]
|
|
@@ -1339,7 +2067,7 @@ module PharmaObservatory
|
|
|
1339
2067
|
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
1340
2068
|
end
|
|
1341
2069
|
# resource path
|
|
1342
|
-
local_var_path = '/api/v1/companies/{id}/
|
|
2070
|
+
local_var_path = '/api/v1/companies/{id}/company_trial_sites'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1343
2071
|
|
|
1344
2072
|
# query parameters
|
|
1345
2073
|
query_params = opts[:query_params] || {}
|
|
@@ -1362,13 +2090,13 @@ module PharmaObservatory
|
|
|
1362
2090
|
post_body = opts[:debug_body]
|
|
1363
2091
|
|
|
1364
2092
|
# return_type
|
|
1365
|
-
return_type = opts[:debug_return_type] || '
|
|
2093
|
+
return_type = opts[:debug_return_type] || 'CompanyTrialSitesResponse'
|
|
1366
2094
|
|
|
1367
2095
|
# auth_names
|
|
1368
2096
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1369
2097
|
|
|
1370
2098
|
new_options = opts.merge(
|
|
1371
|
-
:operation => :"CompaniesApi.
|
|
2099
|
+
:operation => :"CompaniesApi.companies_company_trial_sites",
|
|
1372
2100
|
:header_params => header_params,
|
|
1373
2101
|
:query_params => query_params,
|
|
1374
2102
|
:form_params => form_params,
|
|
@@ -1379,12 +2107,12 @@ module PharmaObservatory
|
|
|
1379
2107
|
|
|
1380
2108
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1381
2109
|
if @api_client.config.debugging
|
|
1382
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
2110
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_company_trial_sites\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1383
2111
|
end
|
|
1384
2112
|
return data, status_code, headers
|
|
1385
2113
|
end
|
|
1386
2114
|
|
|
1387
|
-
# Company
|
|
2115
|
+
# Company US patents
|
|
1388
2116
|
# @param id [String]
|
|
1389
2117
|
# @param [Hash] opts the optional parameters
|
|
1390
2118
|
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
@@ -1393,13 +2121,13 @@ module PharmaObservatory
|
|
|
1393
2121
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1394
2122
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1395
2123
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1396
|
-
# @return [
|
|
1397
|
-
def
|
|
1398
|
-
data, _status_code, _headers =
|
|
2124
|
+
# @return [CompanyUsPatentsResponse]
|
|
2125
|
+
def companies_company_us_patents(id, opts = {})
|
|
2126
|
+
data, _status_code, _headers = companies_company_us_patents_with_http_info(id, opts)
|
|
1399
2127
|
data
|
|
1400
2128
|
end
|
|
1401
2129
|
|
|
1402
|
-
# Company
|
|
2130
|
+
# Company US patents
|
|
1403
2131
|
# @param id [String]
|
|
1404
2132
|
# @param [Hash] opts the optional parameters
|
|
1405
2133
|
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
@@ -1408,21 +2136,21 @@ module PharmaObservatory
|
|
|
1408
2136
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1409
2137
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1410
2138
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1411
|
-
# @return [Array<(
|
|
1412
|
-
def
|
|
2139
|
+
# @return [Array<(CompanyUsPatentsResponse, Integer, Hash)>] CompanyUsPatentsResponse data, response status code and response headers
|
|
2140
|
+
def companies_company_us_patents_with_http_info(id, opts = {})
|
|
1413
2141
|
if @api_client.config.debugging
|
|
1414
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
2142
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_us_patents ...'
|
|
1415
2143
|
end
|
|
1416
2144
|
# verify the required parameter 'id' is set
|
|
1417
2145
|
if @api_client.config.client_side_validation && id.nil?
|
|
1418
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.
|
|
2146
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_us_patents"
|
|
1419
2147
|
end
|
|
1420
2148
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1421
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
2149
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_us_patents, must be smaller than or equal to 500.'
|
|
1422
2150
|
end
|
|
1423
2151
|
|
|
1424
2152
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1425
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
2153
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_us_patents, must be greater than or equal to 1.'
|
|
1426
2154
|
end
|
|
1427
2155
|
|
|
1428
2156
|
allowable_values = ["company", "group"]
|
|
@@ -1430,7 +2158,7 @@ module PharmaObservatory
|
|
|
1430
2158
|
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
1431
2159
|
end
|
|
1432
2160
|
# resource path
|
|
1433
|
-
local_var_path = '/api/v1/companies/{id}/
|
|
2161
|
+
local_var_path = '/api/v1/companies/{id}/company_us_patents'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1434
2162
|
|
|
1435
2163
|
# query parameters
|
|
1436
2164
|
query_params = opts[:query_params] || {}
|
|
@@ -1453,13 +2181,13 @@ module PharmaObservatory
|
|
|
1453
2181
|
post_body = opts[:debug_body]
|
|
1454
2182
|
|
|
1455
2183
|
# return_type
|
|
1456
|
-
return_type = opts[:debug_return_type] || '
|
|
2184
|
+
return_type = opts[:debug_return_type] || 'CompanyUsPatentsResponse'
|
|
1457
2185
|
|
|
1458
2186
|
# auth_names
|
|
1459
2187
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1460
2188
|
|
|
1461
2189
|
new_options = opts.merge(
|
|
1462
|
-
:operation => :"CompaniesApi.
|
|
2190
|
+
:operation => :"CompaniesApi.companies_company_us_patents",
|
|
1463
2191
|
:header_params => header_params,
|
|
1464
2192
|
:query_params => query_params,
|
|
1465
2193
|
:form_params => form_params,
|
|
@@ -1470,7 +2198,7 @@ module PharmaObservatory
|
|
|
1470
2198
|
|
|
1471
2199
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1472
2200
|
if @api_client.config.debugging
|
|
1473
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
2201
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_company_us_patents\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1474
2202
|
end
|
|
1475
2203
|
return data, status_code, headers
|
|
1476
2204
|
end
|
|
@@ -1839,7 +2567,7 @@ module PharmaObservatory
|
|
|
1839
2567
|
return data, status_code, headers
|
|
1840
2568
|
end
|
|
1841
2569
|
|
|
1842
|
-
#
|
|
2570
|
+
# Regulatory enforcement events
|
|
1843
2571
|
# @param id [String]
|
|
1844
2572
|
# @param [Hash] opts the optional parameters
|
|
1845
2573
|
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
@@ -1854,7 +2582,7 @@ module PharmaObservatory
|
|
|
1854
2582
|
data
|
|
1855
2583
|
end
|
|
1856
2584
|
|
|
1857
|
-
#
|
|
2585
|
+
# Regulatory enforcement events
|
|
1858
2586
|
# @param id [String]
|
|
1859
2587
|
# @param [Hash] opts the optional parameters
|
|
1860
2588
|
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
@@ -3070,6 +3798,97 @@ module PharmaObservatory
|
|
|
3070
3798
|
return data, status_code, headers
|
|
3071
3799
|
end
|
|
3072
3800
|
|
|
3801
|
+
# Ownership and control observations (history)
|
|
3802
|
+
# @param id [String]
|
|
3803
|
+
# @param [Hash] opts the optional parameters
|
|
3804
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
3805
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
3806
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
3807
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3808
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3809
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3810
|
+
# @return [OwnershipObservationsResponse]
|
|
3811
|
+
def companies_ownership_observations(id, opts = {})
|
|
3812
|
+
data, _status_code, _headers = companies_ownership_observations_with_http_info(id, opts)
|
|
3813
|
+
data
|
|
3814
|
+
end
|
|
3815
|
+
|
|
3816
|
+
# Ownership and control observations (history)
|
|
3817
|
+
# @param id [String]
|
|
3818
|
+
# @param [Hash] opts the optional parameters
|
|
3819
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
3820
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
3821
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
3822
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3823
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3824
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3825
|
+
# @return [Array<(OwnershipObservationsResponse, Integer, Hash)>] OwnershipObservationsResponse data, response status code and response headers
|
|
3826
|
+
def companies_ownership_observations_with_http_info(id, opts = {})
|
|
3827
|
+
if @api_client.config.debugging
|
|
3828
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_ownership_observations ...'
|
|
3829
|
+
end
|
|
3830
|
+
# verify the required parameter 'id' is set
|
|
3831
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
3832
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_ownership_observations"
|
|
3833
|
+
end
|
|
3834
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
3835
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_ownership_observations, must be smaller than or equal to 500.'
|
|
3836
|
+
end
|
|
3837
|
+
|
|
3838
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
3839
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_ownership_observations, must be greater than or equal to 1.'
|
|
3840
|
+
end
|
|
3841
|
+
|
|
3842
|
+
allowable_values = ["company", "group"]
|
|
3843
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
3844
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
3845
|
+
end
|
|
3846
|
+
# resource path
|
|
3847
|
+
local_var_path = '/api/v1/companies/{id}/ownership_observations'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
3848
|
+
|
|
3849
|
+
# query parameters
|
|
3850
|
+
query_params = opts[:query_params] || {}
|
|
3851
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
3852
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
3853
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
3854
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
3855
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
3856
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
3857
|
+
|
|
3858
|
+
# header parameters
|
|
3859
|
+
header_params = opts[:header_params] || {}
|
|
3860
|
+
# HTTP header 'Accept' (if needed)
|
|
3861
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
3862
|
+
|
|
3863
|
+
# form parameters
|
|
3864
|
+
form_params = opts[:form_params] || {}
|
|
3865
|
+
|
|
3866
|
+
# http body (model)
|
|
3867
|
+
post_body = opts[:debug_body]
|
|
3868
|
+
|
|
3869
|
+
# return_type
|
|
3870
|
+
return_type = opts[:debug_return_type] || 'OwnershipObservationsResponse'
|
|
3871
|
+
|
|
3872
|
+
# auth_names
|
|
3873
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
3874
|
+
|
|
3875
|
+
new_options = opts.merge(
|
|
3876
|
+
:operation => :"CompaniesApi.companies_ownership_observations",
|
|
3877
|
+
:header_params => header_params,
|
|
3878
|
+
:query_params => query_params,
|
|
3879
|
+
:form_params => form_params,
|
|
3880
|
+
:body => post_body,
|
|
3881
|
+
:auth_names => auth_names,
|
|
3882
|
+
:return_type => return_type
|
|
3883
|
+
)
|
|
3884
|
+
|
|
3885
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
3886
|
+
if @api_client.config.debugging
|
|
3887
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_ownership_observations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3888
|
+
end
|
|
3889
|
+
return data, status_code, headers
|
|
3890
|
+
end
|
|
3891
|
+
|
|
3073
3892
|
# Ownership percentages
|
|
3074
3893
|
# @param id [String]
|
|
3075
3894
|
# @param [Hash] opts the optional parameters
|
|
@@ -3980,6 +4799,97 @@ module PharmaObservatory
|
|
|
3980
4799
|
return data, status_code, headers
|
|
3981
4800
|
end
|
|
3982
4801
|
|
|
4802
|
+
# Publications of a company's trials
|
|
4803
|
+
# @param id [String]
|
|
4804
|
+
# @param [Hash] opts the optional parameters
|
|
4805
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
4806
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
4807
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
4808
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
4809
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
4810
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
4811
|
+
# @return [SponsorPublicationsResponse]
|
|
4812
|
+
def companies_sponsor_publications(id, opts = {})
|
|
4813
|
+
data, _status_code, _headers = companies_sponsor_publications_with_http_info(id, opts)
|
|
4814
|
+
data
|
|
4815
|
+
end
|
|
4816
|
+
|
|
4817
|
+
# Publications of a company's trials
|
|
4818
|
+
# @param id [String]
|
|
4819
|
+
# @param [Hash] opts the optional parameters
|
|
4820
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
4821
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
4822
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
4823
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
4824
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
4825
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
4826
|
+
# @return [Array<(SponsorPublicationsResponse, Integer, Hash)>] SponsorPublicationsResponse data, response status code and response headers
|
|
4827
|
+
def companies_sponsor_publications_with_http_info(id, opts = {})
|
|
4828
|
+
if @api_client.config.debugging
|
|
4829
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_sponsor_publications ...'
|
|
4830
|
+
end
|
|
4831
|
+
# verify the required parameter 'id' is set
|
|
4832
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
4833
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_sponsor_publications"
|
|
4834
|
+
end
|
|
4835
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
4836
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_publications, must be smaller than or equal to 500.'
|
|
4837
|
+
end
|
|
4838
|
+
|
|
4839
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
4840
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_publications, must be greater than or equal to 1.'
|
|
4841
|
+
end
|
|
4842
|
+
|
|
4843
|
+
allowable_values = ["company", "group"]
|
|
4844
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
4845
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
4846
|
+
end
|
|
4847
|
+
# resource path
|
|
4848
|
+
local_var_path = '/api/v1/companies/{id}/sponsor_publications'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
4849
|
+
|
|
4850
|
+
# query parameters
|
|
4851
|
+
query_params = opts[:query_params] || {}
|
|
4852
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
4853
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
4854
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
4855
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
4856
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
4857
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
4858
|
+
|
|
4859
|
+
# header parameters
|
|
4860
|
+
header_params = opts[:header_params] || {}
|
|
4861
|
+
# HTTP header 'Accept' (if needed)
|
|
4862
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
4863
|
+
|
|
4864
|
+
# form parameters
|
|
4865
|
+
form_params = opts[:form_params] || {}
|
|
4866
|
+
|
|
4867
|
+
# http body (model)
|
|
4868
|
+
post_body = opts[:debug_body]
|
|
4869
|
+
|
|
4870
|
+
# return_type
|
|
4871
|
+
return_type = opts[:debug_return_type] || 'SponsorPublicationsResponse'
|
|
4872
|
+
|
|
4873
|
+
# auth_names
|
|
4874
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
4875
|
+
|
|
4876
|
+
new_options = opts.merge(
|
|
4877
|
+
:operation => :"CompaniesApi.companies_sponsor_publications",
|
|
4878
|
+
:header_params => header_params,
|
|
4879
|
+
:query_params => query_params,
|
|
4880
|
+
:form_params => form_params,
|
|
4881
|
+
:body => post_body,
|
|
4882
|
+
:auth_names => auth_names,
|
|
4883
|
+
:return_type => return_type
|
|
4884
|
+
)
|
|
4885
|
+
|
|
4886
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
4887
|
+
if @api_client.config.debugging
|
|
4888
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_sponsor_publications\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4889
|
+
end
|
|
4890
|
+
return data, status_code, headers
|
|
4891
|
+
end
|
|
4892
|
+
|
|
3983
4893
|
# Trial recruitment duration by sponsor and phase
|
|
3984
4894
|
# @param id [String]
|
|
3985
4895
|
# @param [Hash] opts the optional parameters
|