pharmaobservatory 0.1.7 → 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 +163 -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 +58 -0
- data/docs/BiomarkerAlleleFrequenciesRow.md +62 -0
- data/docs/BiomarkerAssayEvidenceResponse.md +3 -3
- data/docs/BiomarkerAssayProvidersResponse.md +58 -0
- data/docs/BiomarkerAssayProvidersRow.md +72 -0
- data/docs/BiomarkerAssayWhitespaceResponse.md +3 -3
- data/docs/BiomarkerBqpAssertionsResponse.md +3 -3
- data/docs/BiomarkerCdxAssertionsResponse.md +3 -3
- data/docs/BiomarkerEvidenceByYearResponse.md +58 -0
- data/docs/BiomarkerEvidenceByYearRow.md +32 -0
- 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 +58 -0
- data/docs/BiomarkerTraversalStatusRow.md +36 -0
- data/docs/BiomarkerValidationResponse.md +3 -3
- data/docs/BiomarkerVariantMentionsResponse.md +3 -3
- data/docs/BiomarkersApi.md +320 -0
- 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 +2113 -391
- 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/CompanyBiomarkerCapabilityResponse.md +58 -0
- data/docs/CompanyBiomarkerCapabilityRow.md +68 -0
- 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/CompanyRareDiseaseDeclarationsResponse.md +58 -0
- data/docs/CompanyRareDiseaseDeclarationsRow.md +52 -0
- 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 +49 -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 +1401 -281
- data/docs/LegalEntitiesRecord.md +2 -2
- data/docs/LegalEntitiesRecordAttributes.md +6 -0
- data/docs/LegalEntitiesResponse.md +3 -3
- data/docs/LegalEntitySecFilingsResponse.md +58 -0
- data/docs/LegalEntitySecFilingsRow.md +44 -0
- data/docs/ManagersRecord.md +2 -2
- data/docs/ManagersResponse.md +3 -3
- data/docs/OrgDisclosureTrendResponse.md +58 -0
- data/docs/OrgDisclosureTrendRow.md +62 -0
- 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 +58 -0
- data/docs/OwnershipSourceCoverageRow.md +62 -0
- data/docs/PdufaDatesResponse.md +3 -3
- data/docs/ProgramLicensingCandidatesResponse.md +3 -3
- data/docs/ProgramsResponse.md +3 -3
- 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 +58 -0
- data/docs/RwdConductorDeliveryRow.md +74 -0
- data/docs/RwdConductorFootprintResponse.md +58 -0
- data/docs/RwdConductorFootprintRow.md +40 -0
- data/docs/RwdConductorStudiesResponse.md +58 -0
- data/docs/RwdConductorStudiesRow.md +42 -0
- data/docs/RwdConductorsApi.md +393 -0
- data/docs/RwdConductorsRecord.md +38 -0
- data/docs/RwdConductorsResponse.md +58 -0
- data/docs/RwdConductorsRow.md +72 -0
- data/docs/RwdCoverageResponse.md +3 -3
- data/docs/RwdInstitutionsApi.md +153 -0
- data/docs/RwdInstitutionsRecord.md +38 -0
- data/docs/RwdInstitutionsResponse.md +58 -0
- data/docs/RwdInstitutionsRow.md +154 -0
- data/docs/RwdNetworksApi.md +153 -0
- data/docs/RwdNetworksRecord.md +38 -0
- data/docs/RwdNetworksResponse.md +58 -0
- data/docs/RwdNetworksRow.md +110 -0
- 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/RwdStudiesApi.md +80 -0
- 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 +58 -0
- data/docs/SbtiCrosscheckRow.md +48 -0
- 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 +58 -0
- data/docs/SponsorDeliveryRow.md +52 -0
- data/docs/SponsorPatentMentionsResponse.md +58 -0
- data/docs/SponsorPatentMentionsRow.md +42 -0
- 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 +58 -0
- data/docs/SponsorTrialConditionsRow.md +36 -0
- data/docs/SponsorTrialDrugsResponse.md +58 -0
- data/docs/SponsorTrialDrugsRow.md +34 -0
- 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/biomarkers_api.rb +336 -0
- data/lib/pharmaobservatory/api/companies_api.rb +2360 -449
- 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 +1460 -284
- data/lib/pharmaobservatory/api/rwd_conductors_api.rb +413 -0
- data/lib/pharmaobservatory/api/rwd_institutions_api.rb +161 -0
- data/lib/pharmaobservatory/api/rwd_networks_api.rb +161 -0
- data/lib/pharmaobservatory/api/rwd_studies_api.rb +84 -0
- 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 +478 -0
- data/lib/pharmaobservatory/models/biomarker_allele_frequencies_row.rb +465 -0
- data/lib/pharmaobservatory/models/biomarker_assay_evidence_response.rb +3 -3
- data/lib/pharmaobservatory/models/biomarker_assay_providers_response.rb +478 -0
- data/lib/pharmaobservatory/models/biomarker_assay_providers_row.rb +520 -0
- 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 +478 -0
- data/lib/pharmaobservatory/models/biomarker_evidence_by_year_row.rb +300 -0
- 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 +478 -0
- data/lib/pharmaobservatory/models/biomarker_traversal_status_row.rb +322 -0
- 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_biomarker_capability_response.rb +478 -0
- data/lib/pharmaobservatory/models/company_biomarker_capability_row.rb +498 -0
- 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_rare_disease_declarations_response.rb +478 -0
- data/lib/pharmaobservatory/models/company_rare_disease_declarations_row.rb +410 -0
- 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 +266 -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_record_attributes.rb +28 -1
- data/lib/pharmaobservatory/models/legal_entities_response.rb +3 -3
- data/lib/pharmaobservatory/models/legal_entity_sec_filings_response.rb +478 -0
- data/lib/pharmaobservatory/models/legal_entity_sec_filings_row.rb +370 -0
- 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 +478 -0
- data/lib/pharmaobservatory/models/org_disclosure_trend_row.rb +465 -0
- 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 +478 -0
- data/lib/pharmaobservatory/models/ownership_source_coverage_row.rb +465 -0
- 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/programs_response.rb +3 -3
- 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 +478 -0
- data/lib/pharmaobservatory/models/rwd_conductor_delivery_row.rb +537 -0
- data/lib/pharmaobservatory/models/rwd_conductor_footprint_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_conductor_footprint_row.rb +346 -0
- data/lib/pharmaobservatory/models/rwd_conductor_studies_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_conductor_studies_row.rb +355 -0
- data/lib/pharmaobservatory/models/rwd_conductors_record.rb +385 -0
- data/lib/pharmaobservatory/models/rwd_conductors_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_conductors_row.rb +526 -0
- data/lib/pharmaobservatory/models/rwd_coverage_response.rb +3 -3
- data/lib/pharmaobservatory/models/rwd_institutions_record.rb +385 -0
- data/lib/pharmaobservatory/models/rwd_institutions_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_institutions_row.rb +981 -0
- data/lib/pharmaobservatory/models/rwd_networks_record.rb +385 -0
- data/lib/pharmaobservatory/models/rwd_networks_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_networks_row.rb +733 -0
- 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 +478 -0
- data/lib/pharmaobservatory/models/sbti_crosscheck_row.rb +388 -0
- 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 +478 -0
- data/lib/pharmaobservatory/models/sponsor_delivery_row.rb +410 -0
- data/lib/pharmaobservatory/models/sponsor_patent_mentions_response.rb +478 -0
- data/lib/pharmaobservatory/models/sponsor_patent_mentions_row.rb +355 -0
- 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 +478 -0
- data/lib/pharmaobservatory/models/sponsor_trial_conditions_row.rb +322 -0
- data/lib/pharmaobservatory/models/sponsor_trial_drugs_response.rb +478 -0
- data/lib/pharmaobservatory/models/sponsor_trial_drugs_row.rb +311 -0
- 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 +93 -3
- metadata +188 -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
|
|
@@ -656,7 +747,7 @@ module PharmaObservatory
|
|
|
656
747
|
return data, status_code, headers
|
|
657
748
|
end
|
|
658
749
|
|
|
659
|
-
# Company
|
|
750
|
+
# Company biomarker capability
|
|
660
751
|
# @param id [String]
|
|
661
752
|
# @param [Hash] opts the optional parameters
|
|
662
753
|
# @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.
|
|
@@ -665,13 +756,13 @@ module PharmaObservatory
|
|
|
665
756
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
666
757
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
667
758
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
668
|
-
# @return [
|
|
669
|
-
def
|
|
670
|
-
data, _status_code, _headers =
|
|
759
|
+
# @return [CompanyBiomarkerCapabilityResponse]
|
|
760
|
+
def companies_company_biomarker_capability(id, opts = {})
|
|
761
|
+
data, _status_code, _headers = companies_company_biomarker_capability_with_http_info(id, opts)
|
|
671
762
|
data
|
|
672
763
|
end
|
|
673
764
|
|
|
674
|
-
# Company
|
|
765
|
+
# Company biomarker capability
|
|
675
766
|
# @param id [String]
|
|
676
767
|
# @param [Hash] opts the optional parameters
|
|
677
768
|
# @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.
|
|
@@ -680,21 +771,21 @@ module PharmaObservatory
|
|
|
680
771
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
681
772
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
682
773
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
683
|
-
# @return [Array<(
|
|
684
|
-
def
|
|
774
|
+
# @return [Array<(CompanyBiomarkerCapabilityResponse, Integer, Hash)>] CompanyBiomarkerCapabilityResponse data, response status code and response headers
|
|
775
|
+
def companies_company_biomarker_capability_with_http_info(id, opts = {})
|
|
685
776
|
if @api_client.config.debugging
|
|
686
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
777
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_biomarker_capability ...'
|
|
687
778
|
end
|
|
688
779
|
# verify the required parameter 'id' is set
|
|
689
780
|
if @api_client.config.client_side_validation && id.nil?
|
|
690
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.
|
|
781
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_biomarker_capability"
|
|
691
782
|
end
|
|
692
783
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
693
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
784
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_biomarker_capability, must be smaller than or equal to 500.'
|
|
694
785
|
end
|
|
695
786
|
|
|
696
787
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
697
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
788
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_biomarker_capability, must be greater than or equal to 1.'
|
|
698
789
|
end
|
|
699
790
|
|
|
700
791
|
allowable_values = ["company", "group"]
|
|
@@ -702,7 +793,7 @@ module PharmaObservatory
|
|
|
702
793
|
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
703
794
|
end
|
|
704
795
|
# resource path
|
|
705
|
-
local_var_path = '/api/v1/companies/{id}/
|
|
796
|
+
local_var_path = '/api/v1/companies/{id}/company_biomarker_capability'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
706
797
|
|
|
707
798
|
# query parameters
|
|
708
799
|
query_params = opts[:query_params] || {}
|
|
@@ -725,13 +816,13 @@ module PharmaObservatory
|
|
|
725
816
|
post_body = opts[:debug_body]
|
|
726
817
|
|
|
727
818
|
# return_type
|
|
728
|
-
return_type = opts[:debug_return_type] || '
|
|
819
|
+
return_type = opts[:debug_return_type] || 'CompanyBiomarkerCapabilityResponse'
|
|
729
820
|
|
|
730
821
|
# auth_names
|
|
731
822
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
732
823
|
|
|
733
824
|
new_options = opts.merge(
|
|
734
|
-
:operation => :"CompaniesApi.
|
|
825
|
+
:operation => :"CompaniesApi.companies_company_biomarker_capability",
|
|
735
826
|
:header_params => header_params,
|
|
736
827
|
:query_params => query_params,
|
|
737
828
|
:form_params => form_params,
|
|
@@ -742,12 +833,12 @@ module PharmaObservatory
|
|
|
742
833
|
|
|
743
834
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
744
835
|
if @api_client.config.debugging
|
|
745
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
836
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_company_biomarker_capability\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
746
837
|
end
|
|
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
|
-
#
|
|
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
|
-
#
|
|
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,21 @@ 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 ...'
|
|
1051
1142
|
end
|
|
1052
1143
|
# verify the required parameter 'id' is set
|
|
1053
1144
|
if @api_client.config.client_side_validation && id.nil?
|
|
1054
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.
|
|
1145
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_financials"
|
|
1055
1146
|
end
|
|
1056
1147
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1057
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
1148
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_financials, must be smaller than or equal to 500.'
|
|
1058
1149
|
end
|
|
1059
1150
|
|
|
1060
1151
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1061
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
1152
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_financials, must be greater than or equal to 1.'
|
|
1062
1153
|
end
|
|
1063
1154
|
|
|
1064
1155
|
allowable_values = ["company", "group"]
|
|
@@ -1066,7 +1157,7 @@ module PharmaObservatory
|
|
|
1066
1157
|
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
1067
1158
|
end
|
|
1068
1159
|
# resource path
|
|
1069
|
-
local_var_path = '/api/v1/companies/{id}/
|
|
1160
|
+
local_var_path = '/api/v1/companies/{id}/company_financials'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1070
1161
|
|
|
1071
1162
|
# query parameters
|
|
1072
1163
|
query_params = opts[:query_params] || {}
|
|
@@ -1089,13 +1180,13 @@ module PharmaObservatory
|
|
|
1089
1180
|
post_body = opts[:debug_body]
|
|
1090
1181
|
|
|
1091
1182
|
# return_type
|
|
1092
|
-
return_type = opts[:debug_return_type] || '
|
|
1183
|
+
return_type = opts[:debug_return_type] || 'CompanyFinancialsResponse'
|
|
1093
1184
|
|
|
1094
1185
|
# auth_names
|
|
1095
1186
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1096
1187
|
|
|
1097
1188
|
new_options = opts.merge(
|
|
1098
|
-
:operation => :"CompaniesApi.
|
|
1189
|
+
:operation => :"CompaniesApi.companies_company_financials",
|
|
1099
1190
|
:header_params => header_params,
|
|
1100
1191
|
:query_params => query_params,
|
|
1101
1192
|
:form_params => form_params,
|
|
@@ -1106,12 +1197,12 @@ module PharmaObservatory
|
|
|
1106
1197
|
|
|
1107
1198
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1108
1199
|
if @api_client.config.debugging
|
|
1109
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
1200
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_company_financials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1110
1201
|
end
|
|
1111
1202
|
return data, status_code, headers
|
|
1112
1203
|
end
|
|
1113
1204
|
|
|
1114
|
-
# Company
|
|
1205
|
+
# Company firmographics
|
|
1115
1206
|
# @param id [String]
|
|
1116
1207
|
# @param [Hash] opts the optional parameters
|
|
1117
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.
|
|
@@ -1120,13 +1211,13 @@ module PharmaObservatory
|
|
|
1120
1211
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1121
1212
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1122
1213
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1123
|
-
# @return [
|
|
1124
|
-
def
|
|
1125
|
-
data, _status_code, _headers =
|
|
1214
|
+
# @return [CompanyFirmographicsResponse]
|
|
1215
|
+
def companies_company_firmographics(id, opts = {})
|
|
1216
|
+
data, _status_code, _headers = companies_company_firmographics_with_http_info(id, opts)
|
|
1126
1217
|
data
|
|
1127
1218
|
end
|
|
1128
1219
|
|
|
1129
|
-
# Company
|
|
1220
|
+
# Company firmographics
|
|
1130
1221
|
# @param id [String]
|
|
1131
1222
|
# @param [Hash] opts the optional parameters
|
|
1132
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.
|
|
@@ -1135,21 +1226,21 @@ module PharmaObservatory
|
|
|
1135
1226
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1136
1227
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1137
1228
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1138
|
-
# @return [Array<(
|
|
1139
|
-
def
|
|
1229
|
+
# @return [Array<(CompanyFirmographicsResponse, Integer, Hash)>] CompanyFirmographicsResponse data, response status code and response headers
|
|
1230
|
+
def companies_company_firmographics_with_http_info(id, opts = {})
|
|
1140
1231
|
if @api_client.config.debugging
|
|
1141
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
1232
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_firmographics ...'
|
|
1142
1233
|
end
|
|
1143
1234
|
# verify the required parameter 'id' is set
|
|
1144
1235
|
if @api_client.config.client_side_validation && id.nil?
|
|
1145
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.
|
|
1236
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_firmographics"
|
|
1146
1237
|
end
|
|
1147
1238
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1148
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
1239
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_firmographics, must be smaller than or equal to 500.'
|
|
1149
1240
|
end
|
|
1150
1241
|
|
|
1151
1242
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1152
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
1243
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_firmographics, must be greater than or equal to 1.'
|
|
1153
1244
|
end
|
|
1154
1245
|
|
|
1155
1246
|
allowable_values = ["company", "group"]
|
|
@@ -1157,7 +1248,7 @@ module PharmaObservatory
|
|
|
1157
1248
|
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
1158
1249
|
end
|
|
1159
1250
|
# resource path
|
|
1160
|
-
local_var_path = '/api/v1/companies/{id}/
|
|
1251
|
+
local_var_path = '/api/v1/companies/{id}/company_firmographics'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1161
1252
|
|
|
1162
1253
|
# query parameters
|
|
1163
1254
|
query_params = opts[:query_params] || {}
|
|
@@ -1180,13 +1271,13 @@ module PharmaObservatory
|
|
|
1180
1271
|
post_body = opts[:debug_body]
|
|
1181
1272
|
|
|
1182
1273
|
# return_type
|
|
1183
|
-
return_type = opts[:debug_return_type] || '
|
|
1274
|
+
return_type = opts[:debug_return_type] || 'CompanyFirmographicsResponse'
|
|
1184
1275
|
|
|
1185
1276
|
# auth_names
|
|
1186
1277
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1187
1278
|
|
|
1188
1279
|
new_options = opts.merge(
|
|
1189
|
-
:operation => :"CompaniesApi.
|
|
1280
|
+
:operation => :"CompaniesApi.companies_company_firmographics",
|
|
1190
1281
|
:header_params => header_params,
|
|
1191
1282
|
:query_params => query_params,
|
|
1192
1283
|
:form_params => form_params,
|
|
@@ -1197,12 +1288,12 @@ module PharmaObservatory
|
|
|
1197
1288
|
|
|
1198
1289
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1199
1290
|
if @api_client.config.debugging
|
|
1200
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
1291
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_company_firmographics\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1201
1292
|
end
|
|
1202
1293
|
return data, status_code, headers
|
|
1203
1294
|
end
|
|
1204
1295
|
|
|
1205
|
-
# Company
|
|
1296
|
+
# Company funding events
|
|
1206
1297
|
# @param id [String]
|
|
1207
1298
|
# @param [Hash] opts the optional parameters
|
|
1208
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.
|
|
@@ -1211,13 +1302,13 @@ module PharmaObservatory
|
|
|
1211
1302
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1212
1303
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1213
1304
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1214
|
-
# @return [
|
|
1215
|
-
def
|
|
1216
|
-
data, _status_code, _headers =
|
|
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)
|
|
1217
1308
|
data
|
|
1218
1309
|
end
|
|
1219
1310
|
|
|
1220
|
-
# Company
|
|
1311
|
+
# Company funding events
|
|
1221
1312
|
# @param id [String]
|
|
1222
1313
|
# @param [Hash] opts the optional parameters
|
|
1223
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.
|
|
@@ -1226,21 +1317,21 @@ module PharmaObservatory
|
|
|
1226
1317
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1227
1318
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1228
1319
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1229
|
-
# @return [Array<(
|
|
1230
|
-
def
|
|
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 = {})
|
|
1231
1322
|
if @api_client.config.debugging
|
|
1232
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
1323
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_funding_events ...'
|
|
1233
1324
|
end
|
|
1234
1325
|
# verify the required parameter 'id' is set
|
|
1235
1326
|
if @api_client.config.client_side_validation && id.nil?
|
|
1236
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.
|
|
1327
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_funding_events"
|
|
1237
1328
|
end
|
|
1238
1329
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1239
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
1330
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_funding_events, must be smaller than or equal to 500.'
|
|
1240
1331
|
end
|
|
1241
1332
|
|
|
1242
1333
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1243
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
1334
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_funding_events, must be greater than or equal to 1.'
|
|
1244
1335
|
end
|
|
1245
1336
|
|
|
1246
1337
|
allowable_values = ["company", "group"]
|
|
@@ -1248,7 +1339,7 @@ module PharmaObservatory
|
|
|
1248
1339
|
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
1249
1340
|
end
|
|
1250
1341
|
# resource path
|
|
1251
|
-
local_var_path = '/api/v1/companies/{id}/
|
|
1342
|
+
local_var_path = '/api/v1/companies/{id}/company_funding_events'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1252
1343
|
|
|
1253
1344
|
# query parameters
|
|
1254
1345
|
query_params = opts[:query_params] || {}
|
|
@@ -1271,13 +1362,13 @@ module PharmaObservatory
|
|
|
1271
1362
|
post_body = opts[:debug_body]
|
|
1272
1363
|
|
|
1273
1364
|
# return_type
|
|
1274
|
-
return_type = opts[:debug_return_type] || '
|
|
1365
|
+
return_type = opts[:debug_return_type] || 'CompanyFundingEventsResponse'
|
|
1275
1366
|
|
|
1276
1367
|
# auth_names
|
|
1277
1368
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1278
1369
|
|
|
1279
1370
|
new_options = opts.merge(
|
|
1280
|
-
:operation => :"CompaniesApi.
|
|
1371
|
+
:operation => :"CompaniesApi.companies_company_funding_events",
|
|
1281
1372
|
:header_params => header_params,
|
|
1282
1373
|
:query_params => query_params,
|
|
1283
1374
|
:form_params => form_params,
|
|
@@ -1288,12 +1379,12 @@ module PharmaObservatory
|
|
|
1288
1379
|
|
|
1289
1380
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1290
1381
|
if @api_client.config.debugging
|
|
1291
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
1382
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_company_funding_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1292
1383
|
end
|
|
1293
1384
|
return data, status_code, headers
|
|
1294
1385
|
end
|
|
1295
1386
|
|
|
1296
|
-
#
|
|
1387
|
+
# Company funding summary
|
|
1297
1388
|
# @param id [String]
|
|
1298
1389
|
# @param [Hash] opts the optional parameters
|
|
1299
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.
|
|
@@ -1302,13 +1393,13 @@ module PharmaObservatory
|
|
|
1302
1393
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1303
1394
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1304
1395
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1305
|
-
# @return [
|
|
1306
|
-
def
|
|
1307
|
-
data, _status_code, _headers =
|
|
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)
|
|
1308
1399
|
data
|
|
1309
1400
|
end
|
|
1310
1401
|
|
|
1311
|
-
#
|
|
1402
|
+
# Company funding summary
|
|
1312
1403
|
# @param id [String]
|
|
1313
1404
|
# @param [Hash] opts the optional parameters
|
|
1314
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.
|
|
@@ -1317,21 +1408,21 @@ module PharmaObservatory
|
|
|
1317
1408
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1318
1409
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1319
1410
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1320
|
-
# @return [Array<(
|
|
1321
|
-
def
|
|
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 = {})
|
|
1322
1413
|
if @api_client.config.debugging
|
|
1323
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
1414
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_funding_summary ...'
|
|
1324
1415
|
end
|
|
1325
1416
|
# verify the required parameter 'id' is set
|
|
1326
1417
|
if @api_client.config.client_side_validation && id.nil?
|
|
1327
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.
|
|
1418
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_funding_summary"
|
|
1328
1419
|
end
|
|
1329
1420
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1330
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
1421
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_funding_summary, must be smaller than or equal to 500.'
|
|
1331
1422
|
end
|
|
1332
1423
|
|
|
1333
1424
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1334
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
1425
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_funding_summary, must be greater than or equal to 1.'
|
|
1335
1426
|
end
|
|
1336
1427
|
|
|
1337
1428
|
allowable_values = ["company", "group"]
|
|
@@ -1339,7 +1430,7 @@ module PharmaObservatory
|
|
|
1339
1430
|
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
1340
1431
|
end
|
|
1341
1432
|
# resource path
|
|
1342
|
-
local_var_path = '/api/v1/companies/{id}/
|
|
1433
|
+
local_var_path = '/api/v1/companies/{id}/company_funding_summary'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1343
1434
|
|
|
1344
1435
|
# query parameters
|
|
1345
1436
|
query_params = opts[:query_params] || {}
|
|
@@ -1362,13 +1453,13 @@ module PharmaObservatory
|
|
|
1362
1453
|
post_body = opts[:debug_body]
|
|
1363
1454
|
|
|
1364
1455
|
# return_type
|
|
1365
|
-
return_type = opts[:debug_return_type] || '
|
|
1456
|
+
return_type = opts[:debug_return_type] || 'CompanyFundingSummaryResponse'
|
|
1366
1457
|
|
|
1367
1458
|
# auth_names
|
|
1368
1459
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1369
1460
|
|
|
1370
1461
|
new_options = opts.merge(
|
|
1371
|
-
:operation => :"CompaniesApi.
|
|
1462
|
+
:operation => :"CompaniesApi.companies_company_funding_summary",
|
|
1372
1463
|
:header_params => header_params,
|
|
1373
1464
|
:query_params => query_params,
|
|
1374
1465
|
:form_params => form_params,
|
|
@@ -1379,12 +1470,12 @@ module PharmaObservatory
|
|
|
1379
1470
|
|
|
1380
1471
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1381
1472
|
if @api_client.config.debugging
|
|
1382
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
1473
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_company_funding_summary\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1383
1474
|
end
|
|
1384
1475
|
return data, status_code, headers
|
|
1385
1476
|
end
|
|
1386
1477
|
|
|
1387
|
-
#
|
|
1478
|
+
# Company members
|
|
1388
1479
|
# @param id [String]
|
|
1389
1480
|
# @param [Hash] opts the optional parameters
|
|
1390
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.
|
|
@@ -1393,13 +1484,13 @@ module PharmaObservatory
|
|
|
1393
1484
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1394
1485
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1395
1486
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1396
|
-
# @return [
|
|
1397
|
-
def
|
|
1398
|
-
data, _status_code, _headers =
|
|
1487
|
+
# @return [CompanyMembersResponse]
|
|
1488
|
+
def companies_company_members(id, opts = {})
|
|
1489
|
+
data, _status_code, _headers = companies_company_members_with_http_info(id, opts)
|
|
1399
1490
|
data
|
|
1400
1491
|
end
|
|
1401
1492
|
|
|
1402
|
-
#
|
|
1493
|
+
# Company members
|
|
1403
1494
|
# @param id [String]
|
|
1404
1495
|
# @param [Hash] opts the optional parameters
|
|
1405
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.
|
|
@@ -1408,21 +1499,21 @@ module PharmaObservatory
|
|
|
1408
1499
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1409
1500
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1410
1501
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1411
|
-
# @return [Array<(
|
|
1412
|
-
def
|
|
1502
|
+
# @return [Array<(CompanyMembersResponse, Integer, Hash)>] CompanyMembersResponse data, response status code and response headers
|
|
1503
|
+
def companies_company_members_with_http_info(id, opts = {})
|
|
1413
1504
|
if @api_client.config.debugging
|
|
1414
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
1505
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_members ...'
|
|
1415
1506
|
end
|
|
1416
1507
|
# verify the required parameter 'id' is set
|
|
1417
1508
|
if @api_client.config.client_side_validation && id.nil?
|
|
1418
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.
|
|
1509
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_members"
|
|
1419
1510
|
end
|
|
1420
1511
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1421
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
1512
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_members, must be smaller than or equal to 500.'
|
|
1422
1513
|
end
|
|
1423
1514
|
|
|
1424
1515
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1425
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
1516
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_members, must be greater than or equal to 1.'
|
|
1426
1517
|
end
|
|
1427
1518
|
|
|
1428
1519
|
allowable_values = ["company", "group"]
|
|
@@ -1430,7 +1521,7 @@ module PharmaObservatory
|
|
|
1430
1521
|
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
1431
1522
|
end
|
|
1432
1523
|
# resource path
|
|
1433
|
-
local_var_path = '/api/v1/companies/{id}/
|
|
1524
|
+
local_var_path = '/api/v1/companies/{id}/company_members'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1434
1525
|
|
|
1435
1526
|
# query parameters
|
|
1436
1527
|
query_params = opts[:query_params] || {}
|
|
@@ -1453,13 +1544,13 @@ module PharmaObservatory
|
|
|
1453
1544
|
post_body = opts[:debug_body]
|
|
1454
1545
|
|
|
1455
1546
|
# return_type
|
|
1456
|
-
return_type = opts[:debug_return_type] || '
|
|
1547
|
+
return_type = opts[:debug_return_type] || 'CompanyMembersResponse'
|
|
1457
1548
|
|
|
1458
1549
|
# auth_names
|
|
1459
1550
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1460
1551
|
|
|
1461
1552
|
new_options = opts.merge(
|
|
1462
|
-
:operation => :"CompaniesApi.
|
|
1553
|
+
:operation => :"CompaniesApi.companies_company_members",
|
|
1463
1554
|
:header_params => header_params,
|
|
1464
1555
|
:query_params => query_params,
|
|
1465
1556
|
:form_params => form_params,
|
|
@@ -1470,12 +1561,12 @@ module PharmaObservatory
|
|
|
1470
1561
|
|
|
1471
1562
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1472
1563
|
if @api_client.config.debugging
|
|
1473
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
1564
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_company_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1474
1565
|
end
|
|
1475
1566
|
return data, status_code, headers
|
|
1476
1567
|
end
|
|
1477
1568
|
|
|
1478
|
-
#
|
|
1569
|
+
# Company programs
|
|
1479
1570
|
# @param id [String]
|
|
1480
1571
|
# @param [Hash] opts the optional parameters
|
|
1481
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.
|
|
@@ -1484,13 +1575,13 @@ module PharmaObservatory
|
|
|
1484
1575
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1485
1576
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1486
1577
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1487
|
-
# @return [
|
|
1488
|
-
def
|
|
1489
|
-
data, _status_code, _headers =
|
|
1578
|
+
# @return [CompanyProgramsResponse]
|
|
1579
|
+
def companies_company_programs(id, opts = {})
|
|
1580
|
+
data, _status_code, _headers = companies_company_programs_with_http_info(id, opts)
|
|
1490
1581
|
data
|
|
1491
1582
|
end
|
|
1492
1583
|
|
|
1493
|
-
#
|
|
1584
|
+
# Company programs
|
|
1494
1585
|
# @param id [String]
|
|
1495
1586
|
# @param [Hash] opts the optional parameters
|
|
1496
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.
|
|
@@ -1499,21 +1590,21 @@ module PharmaObservatory
|
|
|
1499
1590
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1500
1591
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1501
1592
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1502
|
-
# @return [Array<(
|
|
1503
|
-
def
|
|
1593
|
+
# @return [Array<(CompanyProgramsResponse, Integer, Hash)>] CompanyProgramsResponse data, response status code and response headers
|
|
1594
|
+
def companies_company_programs_with_http_info(id, opts = {})
|
|
1504
1595
|
if @api_client.config.debugging
|
|
1505
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
1596
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_programs ...'
|
|
1506
1597
|
end
|
|
1507
1598
|
# verify the required parameter 'id' is set
|
|
1508
1599
|
if @api_client.config.client_side_validation && id.nil?
|
|
1509
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.
|
|
1600
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_programs"
|
|
1510
1601
|
end
|
|
1511
1602
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1512
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
1603
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_programs, must be smaller than or equal to 500.'
|
|
1513
1604
|
end
|
|
1514
1605
|
|
|
1515
1606
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1516
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
1607
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_programs, must be greater than or equal to 1.'
|
|
1517
1608
|
end
|
|
1518
1609
|
|
|
1519
1610
|
allowable_values = ["company", "group"]
|
|
@@ -1521,7 +1612,7 @@ module PharmaObservatory
|
|
|
1521
1612
|
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
1522
1613
|
end
|
|
1523
1614
|
# resource path
|
|
1524
|
-
local_var_path = '/api/v1/companies/{id}/
|
|
1615
|
+
local_var_path = '/api/v1/companies/{id}/company_programs'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1525
1616
|
|
|
1526
1617
|
# query parameters
|
|
1527
1618
|
query_params = opts[:query_params] || {}
|
|
@@ -1544,13 +1635,13 @@ module PharmaObservatory
|
|
|
1544
1635
|
post_body = opts[:debug_body]
|
|
1545
1636
|
|
|
1546
1637
|
# return_type
|
|
1547
|
-
return_type = opts[:debug_return_type] || '
|
|
1638
|
+
return_type = opts[:debug_return_type] || 'CompanyProgramsResponse'
|
|
1548
1639
|
|
|
1549
1640
|
# auth_names
|
|
1550
1641
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1551
1642
|
|
|
1552
1643
|
new_options = opts.merge(
|
|
1553
|
-
:operation => :"CompaniesApi.
|
|
1644
|
+
:operation => :"CompaniesApi.companies_company_programs",
|
|
1554
1645
|
:header_params => header_params,
|
|
1555
1646
|
:query_params => query_params,
|
|
1556
1647
|
:form_params => form_params,
|
|
@@ -1561,12 +1652,12 @@ module PharmaObservatory
|
|
|
1561
1652
|
|
|
1562
1653
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1563
1654
|
if @api_client.config.debugging
|
|
1564
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
1655
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_company_programs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1565
1656
|
end
|
|
1566
1657
|
return data, status_code, headers
|
|
1567
1658
|
end
|
|
1568
1659
|
|
|
1569
|
-
#
|
|
1660
|
+
# Organization-wide rare disease declarations
|
|
1570
1661
|
# @param id [String]
|
|
1571
1662
|
# @param [Hash] opts the optional parameters
|
|
1572
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.
|
|
@@ -1575,13 +1666,13 @@ module PharmaObservatory
|
|
|
1575
1666
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1576
1667
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1577
1668
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1578
|
-
# @return [
|
|
1579
|
-
def
|
|
1580
|
-
data, _status_code, _headers =
|
|
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)
|
|
1581
1672
|
data
|
|
1582
1673
|
end
|
|
1583
1674
|
|
|
1584
|
-
#
|
|
1675
|
+
# Organization-wide rare disease declarations
|
|
1585
1676
|
# @param id [String]
|
|
1586
1677
|
# @param [Hash] opts the optional parameters
|
|
1587
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.
|
|
@@ -1590,21 +1681,21 @@ module PharmaObservatory
|
|
|
1590
1681
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1591
1682
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1592
1683
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1593
|
-
# @return [Array<(
|
|
1594
|
-
def
|
|
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 = {})
|
|
1595
1686
|
if @api_client.config.debugging
|
|
1596
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
1687
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_rare_disease_declarations ...'
|
|
1597
1688
|
end
|
|
1598
1689
|
# verify the required parameter 'id' is set
|
|
1599
1690
|
if @api_client.config.client_side_validation && id.nil?
|
|
1600
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.
|
|
1691
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_rare_disease_declarations"
|
|
1601
1692
|
end
|
|
1602
1693
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1603
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
1694
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_rare_disease_declarations, must be smaller than or equal to 500.'
|
|
1604
1695
|
end
|
|
1605
1696
|
|
|
1606
1697
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1607
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
1698
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_rare_disease_declarations, must be greater than or equal to 1.'
|
|
1608
1699
|
end
|
|
1609
1700
|
|
|
1610
1701
|
allowable_values = ["company", "group"]
|
|
@@ -1612,7 +1703,7 @@ module PharmaObservatory
|
|
|
1612
1703
|
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
1613
1704
|
end
|
|
1614
1705
|
# resource path
|
|
1615
|
-
local_var_path = '/api/v1/companies/{id}/
|
|
1706
|
+
local_var_path = '/api/v1/companies/{id}/company_rare_disease_declarations'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1616
1707
|
|
|
1617
1708
|
# query parameters
|
|
1618
1709
|
query_params = opts[:query_params] || {}
|
|
@@ -1635,13 +1726,13 @@ module PharmaObservatory
|
|
|
1635
1726
|
post_body = opts[:debug_body]
|
|
1636
1727
|
|
|
1637
1728
|
# return_type
|
|
1638
|
-
return_type = opts[:debug_return_type] || '
|
|
1729
|
+
return_type = opts[:debug_return_type] || 'CompanyRareDiseaseDeclarationsResponse'
|
|
1639
1730
|
|
|
1640
1731
|
# auth_names
|
|
1641
1732
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1642
1733
|
|
|
1643
1734
|
new_options = opts.merge(
|
|
1644
|
-
:operation => :"CompaniesApi.
|
|
1735
|
+
:operation => :"CompaniesApi.companies_company_rare_disease_declarations",
|
|
1645
1736
|
:header_params => header_params,
|
|
1646
1737
|
:query_params => query_params,
|
|
1647
1738
|
:form_params => form_params,
|
|
@@ -1652,12 +1743,12 @@ module PharmaObservatory
|
|
|
1652
1743
|
|
|
1653
1744
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1654
1745
|
if @api_client.config.debugging
|
|
1655
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
1746
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_company_rare_disease_declarations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1656
1747
|
end
|
|
1657
1748
|
return data, status_code, headers
|
|
1658
1749
|
end
|
|
1659
1750
|
|
|
1660
|
-
#
|
|
1751
|
+
# Targets a company pursues
|
|
1661
1752
|
# @param id [String]
|
|
1662
1753
|
# @param [Hash] opts the optional parameters
|
|
1663
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.
|
|
@@ -1666,13 +1757,13 @@ module PharmaObservatory
|
|
|
1666
1757
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1667
1758
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1668
1759
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1669
|
-
# @return [
|
|
1670
|
-
def
|
|
1671
|
-
data, _status_code, _headers =
|
|
1760
|
+
# @return [CompanyTargetsResponse]
|
|
1761
|
+
def companies_company_targets(id, opts = {})
|
|
1762
|
+
data, _status_code, _headers = companies_company_targets_with_http_info(id, opts)
|
|
1672
1763
|
data
|
|
1673
1764
|
end
|
|
1674
1765
|
|
|
1675
|
-
#
|
|
1766
|
+
# Targets a company pursues
|
|
1676
1767
|
# @param id [String]
|
|
1677
1768
|
# @param [Hash] opts the optional parameters
|
|
1678
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.
|
|
@@ -1681,21 +1772,21 @@ module PharmaObservatory
|
|
|
1681
1772
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1682
1773
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1683
1774
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1684
|
-
# @return [Array<(
|
|
1685
|
-
def
|
|
1775
|
+
# @return [Array<(CompanyTargetsResponse, Integer, Hash)>] CompanyTargetsResponse data, response status code and response headers
|
|
1776
|
+
def companies_company_targets_with_http_info(id, opts = {})
|
|
1686
1777
|
if @api_client.config.debugging
|
|
1687
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
1778
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_targets ...'
|
|
1688
1779
|
end
|
|
1689
1780
|
# verify the required parameter 'id' is set
|
|
1690
1781
|
if @api_client.config.client_side_validation && id.nil?
|
|
1691
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.
|
|
1782
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_targets"
|
|
1692
1783
|
end
|
|
1693
1784
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1694
|
-
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.'
|
|
1695
1786
|
end
|
|
1696
1787
|
|
|
1697
1788
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1698
|
-
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.'
|
|
1699
1790
|
end
|
|
1700
1791
|
|
|
1701
1792
|
allowable_values = ["company", "group"]
|
|
@@ -1703,7 +1794,7 @@ module PharmaObservatory
|
|
|
1703
1794
|
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
1704
1795
|
end
|
|
1705
1796
|
# resource path
|
|
1706
|
-
local_var_path = '/api/v1/companies/{id}/
|
|
1797
|
+
local_var_path = '/api/v1/companies/{id}/company_targets'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1707
1798
|
|
|
1708
1799
|
# query parameters
|
|
1709
1800
|
query_params = opts[:query_params] || {}
|
|
@@ -1726,13 +1817,13 @@ module PharmaObservatory
|
|
|
1726
1817
|
post_body = opts[:debug_body]
|
|
1727
1818
|
|
|
1728
1819
|
# return_type
|
|
1729
|
-
return_type = opts[:debug_return_type] || '
|
|
1820
|
+
return_type = opts[:debug_return_type] || 'CompanyTargetsResponse'
|
|
1730
1821
|
|
|
1731
1822
|
# auth_names
|
|
1732
1823
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1733
1824
|
|
|
1734
1825
|
new_options = opts.merge(
|
|
1735
|
-
:operation => :"CompaniesApi.
|
|
1826
|
+
:operation => :"CompaniesApi.companies_company_targets",
|
|
1736
1827
|
:header_params => header_params,
|
|
1737
1828
|
:query_params => query_params,
|
|
1738
1829
|
:form_params => form_params,
|
|
@@ -1743,37 +1834,67 @@ module PharmaObservatory
|
|
|
1743
1834
|
|
|
1744
1835
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1745
1836
|
if @api_client.config.debugging
|
|
1746
|
-
@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}"
|
|
1747
1838
|
end
|
|
1748
1839
|
return data, status_code, headers
|
|
1749
1840
|
end
|
|
1750
1841
|
|
|
1751
|
-
#
|
|
1842
|
+
# Company timeline
|
|
1752
1843
|
# @param id [String]
|
|
1753
1844
|
# @param [Hash] opts the optional parameters
|
|
1754
|
-
# @
|
|
1755
|
-
|
|
1756
|
-
|
|
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.
|
|
1846
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1847
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1848
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1849
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1850
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1851
|
+
# @return [CompanyTimelineResponse]
|
|
1852
|
+
def companies_company_timeline(id, opts = {})
|
|
1853
|
+
data, _status_code, _headers = companies_company_timeline_with_http_info(id, opts)
|
|
1757
1854
|
data
|
|
1758
1855
|
end
|
|
1759
1856
|
|
|
1760
|
-
#
|
|
1857
|
+
# Company timeline
|
|
1761
1858
|
# @param id [String]
|
|
1762
1859
|
# @param [Hash] opts the optional parameters
|
|
1763
|
-
# @
|
|
1764
|
-
|
|
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.
|
|
1861
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1862
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1863
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1864
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1865
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1866
|
+
# @return [Array<(CompanyTimelineResponse, Integer, Hash)>] CompanyTimelineResponse data, response status code and response headers
|
|
1867
|
+
def companies_company_timeline_with_http_info(id, opts = {})
|
|
1765
1868
|
if @api_client.config.debugging
|
|
1766
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
1869
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_timeline ...'
|
|
1767
1870
|
end
|
|
1768
1871
|
# verify the required parameter 'id' is set
|
|
1769
1872
|
if @api_client.config.client_side_validation && id.nil?
|
|
1770
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.
|
|
1873
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_timeline"
|
|
1874
|
+
end
|
|
1875
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1876
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_timeline, must be smaller than or equal to 500.'
|
|
1877
|
+
end
|
|
1878
|
+
|
|
1879
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1880
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_timeline, must be greater than or equal to 1.'
|
|
1881
|
+
end
|
|
1882
|
+
|
|
1883
|
+
allowable_values = ["company", "group"]
|
|
1884
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
1885
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
1771
1886
|
end
|
|
1772
1887
|
# resource path
|
|
1773
|
-
local_var_path = '/api/v1/companies/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1888
|
+
local_var_path = '/api/v1/companies/{id}/company_timeline'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1774
1889
|
|
|
1775
1890
|
# query parameters
|
|
1776
1891
|
query_params = opts[:query_params] || {}
|
|
1892
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
1893
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1894
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
1895
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
1896
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
1897
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
1777
1898
|
|
|
1778
1899
|
# header parameters
|
|
1779
1900
|
header_params = opts[:header_params] || {}
|
|
@@ -1787,13 +1908,13 @@ module PharmaObservatory
|
|
|
1787
1908
|
post_body = opts[:debug_body]
|
|
1788
1909
|
|
|
1789
1910
|
# return_type
|
|
1790
|
-
return_type = opts[:debug_return_type] || '
|
|
1911
|
+
return_type = opts[:debug_return_type] || 'CompanyTimelineResponse'
|
|
1791
1912
|
|
|
1792
1913
|
# auth_names
|
|
1793
1914
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1794
1915
|
|
|
1795
1916
|
new_options = opts.merge(
|
|
1796
|
-
:operation => :"CompaniesApi.
|
|
1917
|
+
:operation => :"CompaniesApi.companies_company_timeline",
|
|
1797
1918
|
:header_params => header_params,
|
|
1798
1919
|
:query_params => query_params,
|
|
1799
1920
|
:form_params => form_params,
|
|
@@ -1804,12 +1925,12 @@ module PharmaObservatory
|
|
|
1804
1925
|
|
|
1805
1926
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1806
1927
|
if @api_client.config.debugging
|
|
1807
|
-
@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}"
|
|
1808
1929
|
end
|
|
1809
1930
|
return data, status_code, headers
|
|
1810
1931
|
end
|
|
1811
1932
|
|
|
1812
|
-
#
|
|
1933
|
+
# Company trial geography
|
|
1813
1934
|
# @param id [String]
|
|
1814
1935
|
# @param [Hash] opts the optional parameters
|
|
1815
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.
|
|
@@ -1818,13 +1939,13 @@ module PharmaObservatory
|
|
|
1818
1939
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1819
1940
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1820
1941
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1821
|
-
# @return [
|
|
1822
|
-
def
|
|
1823
|
-
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)
|
|
1824
1945
|
data
|
|
1825
1946
|
end
|
|
1826
1947
|
|
|
1827
|
-
#
|
|
1948
|
+
# Company trial geography
|
|
1828
1949
|
# @param id [String]
|
|
1829
1950
|
# @param [Hash] opts the optional parameters
|
|
1830
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.
|
|
@@ -1833,21 +1954,21 @@ module PharmaObservatory
|
|
|
1833
1954
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1834
1955
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1835
1956
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1836
|
-
# @return [Array<(
|
|
1837
|
-
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 = {})
|
|
1838
1959
|
if @api_client.config.debugging
|
|
1839
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
1960
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_trial_geography ...'
|
|
1840
1961
|
end
|
|
1841
1962
|
# verify the required parameter 'id' is set
|
|
1842
1963
|
if @api_client.config.client_side_validation && id.nil?
|
|
1843
|
-
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"
|
|
1844
1965
|
end
|
|
1845
1966
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1846
|
-
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.'
|
|
1847
1968
|
end
|
|
1848
1969
|
|
|
1849
1970
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1850
|
-
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.'
|
|
1851
1972
|
end
|
|
1852
1973
|
|
|
1853
1974
|
allowable_values = ["company", "group"]
|
|
@@ -1855,7 +1976,7 @@ module PharmaObservatory
|
|
|
1855
1976
|
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
1856
1977
|
end
|
|
1857
1978
|
# resource path
|
|
1858
|
-
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))
|
|
1859
1980
|
|
|
1860
1981
|
# query parameters
|
|
1861
1982
|
query_params = opts[:query_params] || {}
|
|
@@ -1878,13 +1999,13 @@ module PharmaObservatory
|
|
|
1878
1999
|
post_body = opts[:debug_body]
|
|
1879
2000
|
|
|
1880
2001
|
# return_type
|
|
1881
|
-
return_type = opts[:debug_return_type] || '
|
|
2002
|
+
return_type = opts[:debug_return_type] || 'CompanyTrialGeographyResponse'
|
|
1882
2003
|
|
|
1883
2004
|
# auth_names
|
|
1884
2005
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1885
2006
|
|
|
1886
2007
|
new_options = opts.merge(
|
|
1887
|
-
:operation => :"CompaniesApi.
|
|
2008
|
+
:operation => :"CompaniesApi.companies_company_trial_geography",
|
|
1888
2009
|
:header_params => header_params,
|
|
1889
2010
|
:query_params => query_params,
|
|
1890
2011
|
:form_params => form_params,
|
|
@@ -1895,12 +2016,12 @@ module PharmaObservatory
|
|
|
1895
2016
|
|
|
1896
2017
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1897
2018
|
if @api_client.config.debugging
|
|
1898
|
-
@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}"
|
|
1899
2020
|
end
|
|
1900
2021
|
return data, status_code, headers
|
|
1901
2022
|
end
|
|
1902
2023
|
|
|
1903
|
-
#
|
|
2024
|
+
# Company trial sites
|
|
1904
2025
|
# @param id [String]
|
|
1905
2026
|
# @param [Hash] opts the optional parameters
|
|
1906
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.
|
|
@@ -1909,13 +2030,13 @@ module PharmaObservatory
|
|
|
1909
2030
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1910
2031
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1911
2032
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1912
|
-
# @return [
|
|
1913
|
-
def
|
|
1914
|
-
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)
|
|
1915
2036
|
data
|
|
1916
2037
|
end
|
|
1917
2038
|
|
|
1918
|
-
#
|
|
2039
|
+
# Company trial sites
|
|
1919
2040
|
# @param id [String]
|
|
1920
2041
|
# @param [Hash] opts the optional parameters
|
|
1921
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.
|
|
@@ -1924,21 +2045,21 @@ module PharmaObservatory
|
|
|
1924
2045
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1925
2046
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1926
2047
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1927
|
-
# @return [Array<(
|
|
1928
|
-
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 = {})
|
|
1929
2050
|
if @api_client.config.debugging
|
|
1930
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
2051
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_trial_sites ...'
|
|
1931
2052
|
end
|
|
1932
2053
|
# verify the required parameter 'id' is set
|
|
1933
2054
|
if @api_client.config.client_side_validation && id.nil?
|
|
1934
|
-
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"
|
|
1935
2056
|
end
|
|
1936
2057
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1937
|
-
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.'
|
|
1938
2059
|
end
|
|
1939
2060
|
|
|
1940
2061
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1941
|
-
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.'
|
|
1942
2063
|
end
|
|
1943
2064
|
|
|
1944
2065
|
allowable_values = ["company", "group"]
|
|
@@ -1946,7 +2067,7 @@ module PharmaObservatory
|
|
|
1946
2067
|
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
1947
2068
|
end
|
|
1948
2069
|
# resource path
|
|
1949
|
-
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))
|
|
1950
2071
|
|
|
1951
2072
|
# query parameters
|
|
1952
2073
|
query_params = opts[:query_params] || {}
|
|
@@ -1969,13 +2090,13 @@ module PharmaObservatory
|
|
|
1969
2090
|
post_body = opts[:debug_body]
|
|
1970
2091
|
|
|
1971
2092
|
# return_type
|
|
1972
|
-
return_type = opts[:debug_return_type] || '
|
|
2093
|
+
return_type = opts[:debug_return_type] || 'CompanyTrialSitesResponse'
|
|
1973
2094
|
|
|
1974
2095
|
# auth_names
|
|
1975
2096
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1976
2097
|
|
|
1977
2098
|
new_options = opts.merge(
|
|
1978
|
-
:operation => :"CompaniesApi.
|
|
2099
|
+
:operation => :"CompaniesApi.companies_company_trial_sites",
|
|
1979
2100
|
:header_params => header_params,
|
|
1980
2101
|
:query_params => query_params,
|
|
1981
2102
|
:form_params => form_params,
|
|
@@ -1986,12 +2107,12 @@ module PharmaObservatory
|
|
|
1986
2107
|
|
|
1987
2108
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1988
2109
|
if @api_client.config.debugging
|
|
1989
|
-
@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}"
|
|
1990
2111
|
end
|
|
1991
2112
|
return data, status_code, headers
|
|
1992
2113
|
end
|
|
1993
2114
|
|
|
1994
|
-
#
|
|
2115
|
+
# Company US patents
|
|
1995
2116
|
# @param id [String]
|
|
1996
2117
|
# @param [Hash] opts the optional parameters
|
|
1997
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.
|
|
@@ -2000,13 +2121,13 @@ module PharmaObservatory
|
|
|
2000
2121
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2001
2122
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2002
2123
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2003
|
-
# @return [
|
|
2004
|
-
def
|
|
2005
|
-
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)
|
|
2006
2127
|
data
|
|
2007
2128
|
end
|
|
2008
2129
|
|
|
2009
|
-
#
|
|
2130
|
+
# Company US patents
|
|
2010
2131
|
# @param id [String]
|
|
2011
2132
|
# @param [Hash] opts the optional parameters
|
|
2012
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.
|
|
@@ -2015,21 +2136,21 @@ module PharmaObservatory
|
|
|
2015
2136
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2016
2137
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2017
2138
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2018
|
-
# @return [Array<(
|
|
2019
|
-
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 = {})
|
|
2020
2141
|
if @api_client.config.debugging
|
|
2021
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
2142
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_us_patents ...'
|
|
2022
2143
|
end
|
|
2023
2144
|
# verify the required parameter 'id' is set
|
|
2024
2145
|
if @api_client.config.client_side_validation && id.nil?
|
|
2025
|
-
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"
|
|
2026
2147
|
end
|
|
2027
2148
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
2028
|
-
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.'
|
|
2029
2150
|
end
|
|
2030
2151
|
|
|
2031
2152
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
2032
|
-
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.'
|
|
2033
2154
|
end
|
|
2034
2155
|
|
|
2035
2156
|
allowable_values = ["company", "group"]
|
|
@@ -2037,7 +2158,7 @@ module PharmaObservatory
|
|
|
2037
2158
|
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
2038
2159
|
end
|
|
2039
2160
|
# resource path
|
|
2040
|
-
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))
|
|
2041
2162
|
|
|
2042
2163
|
# query parameters
|
|
2043
2164
|
query_params = opts[:query_params] || {}
|
|
@@ -2060,13 +2181,13 @@ module PharmaObservatory
|
|
|
2060
2181
|
post_body = opts[:debug_body]
|
|
2061
2182
|
|
|
2062
2183
|
# return_type
|
|
2063
|
-
return_type = opts[:debug_return_type] || '
|
|
2184
|
+
return_type = opts[:debug_return_type] || 'CompanyUsPatentsResponse'
|
|
2064
2185
|
|
|
2065
2186
|
# auth_names
|
|
2066
2187
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
2067
2188
|
|
|
2068
2189
|
new_options = opts.merge(
|
|
2069
|
-
:operation => :"CompaniesApi.
|
|
2190
|
+
:operation => :"CompaniesApi.companies_company_us_patents",
|
|
2070
2191
|
:header_params => header_params,
|
|
2071
2192
|
:query_params => query_params,
|
|
2072
2193
|
:form_params => form_params,
|
|
@@ -2077,12 +2198,12 @@ module PharmaObservatory
|
|
|
2077
2198
|
|
|
2078
2199
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2079
2200
|
if @api_client.config.debugging
|
|
2080
|
-
@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}"
|
|
2081
2202
|
end
|
|
2082
2203
|
return data, status_code, headers
|
|
2083
2204
|
end
|
|
2084
2205
|
|
|
2085
|
-
#
|
|
2206
|
+
# CRO footprint
|
|
2086
2207
|
# @param id [String]
|
|
2087
2208
|
# @param [Hash] opts the optional parameters
|
|
2088
2209
|
# @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.
|
|
@@ -2091,13 +2212,13 @@ module PharmaObservatory
|
|
|
2091
2212
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2092
2213
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2093
2214
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2094
|
-
# @return [
|
|
2095
|
-
def
|
|
2096
|
-
data, _status_code, _headers =
|
|
2215
|
+
# @return [CroFootprintResponse]
|
|
2216
|
+
def companies_cro_footprint(id, opts = {})
|
|
2217
|
+
data, _status_code, _headers = companies_cro_footprint_with_http_info(id, opts)
|
|
2097
2218
|
data
|
|
2098
2219
|
end
|
|
2099
2220
|
|
|
2100
|
-
#
|
|
2221
|
+
# CRO footprint
|
|
2101
2222
|
# @param id [String]
|
|
2102
2223
|
# @param [Hash] opts the optional parameters
|
|
2103
2224
|
# @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.
|
|
@@ -2106,21 +2227,21 @@ module PharmaObservatory
|
|
|
2106
2227
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2107
2228
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2108
2229
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2109
|
-
# @return [Array<(
|
|
2110
|
-
def
|
|
2230
|
+
# @return [Array<(CroFootprintResponse, Integer, Hash)>] CroFootprintResponse data, response status code and response headers
|
|
2231
|
+
def companies_cro_footprint_with_http_info(id, opts = {})
|
|
2111
2232
|
if @api_client.config.debugging
|
|
2112
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
2233
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_cro_footprint ...'
|
|
2113
2234
|
end
|
|
2114
2235
|
# verify the required parameter 'id' is set
|
|
2115
2236
|
if @api_client.config.client_side_validation && id.nil?
|
|
2116
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.
|
|
2237
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_cro_footprint"
|
|
2117
2238
|
end
|
|
2118
2239
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
2119
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
2240
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_cro_footprint, must be smaller than or equal to 500.'
|
|
2120
2241
|
end
|
|
2121
2242
|
|
|
2122
2243
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
2123
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
2244
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_cro_footprint, must be greater than or equal to 1.'
|
|
2124
2245
|
end
|
|
2125
2246
|
|
|
2126
2247
|
allowable_values = ["company", "group"]
|
|
@@ -2128,7 +2249,7 @@ module PharmaObservatory
|
|
|
2128
2249
|
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
2129
2250
|
end
|
|
2130
2251
|
# resource path
|
|
2131
|
-
local_var_path = '/api/v1/companies/{id}/
|
|
2252
|
+
local_var_path = '/api/v1/companies/{id}/cro_footprint'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
2132
2253
|
|
|
2133
2254
|
# query parameters
|
|
2134
2255
|
query_params = opts[:query_params] || {}
|
|
@@ -2151,13 +2272,13 @@ module PharmaObservatory
|
|
|
2151
2272
|
post_body = opts[:debug_body]
|
|
2152
2273
|
|
|
2153
2274
|
# return_type
|
|
2154
|
-
return_type = opts[:debug_return_type] || '
|
|
2275
|
+
return_type = opts[:debug_return_type] || 'CroFootprintResponse'
|
|
2155
2276
|
|
|
2156
2277
|
# auth_names
|
|
2157
2278
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
2158
2279
|
|
|
2159
2280
|
new_options = opts.merge(
|
|
2160
|
-
:operation => :"CompaniesApi.
|
|
2281
|
+
:operation => :"CompaniesApi.companies_cro_footprint",
|
|
2161
2282
|
:header_params => header_params,
|
|
2162
2283
|
:query_params => query_params,
|
|
2163
2284
|
:form_params => form_params,
|
|
@@ -2168,12 +2289,12 @@ module PharmaObservatory
|
|
|
2168
2289
|
|
|
2169
2290
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2170
2291
|
if @api_client.config.debugging
|
|
2171
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
2292
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_cro_footprint\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2172
2293
|
end
|
|
2173
2294
|
return data, status_code, headers
|
|
2174
2295
|
end
|
|
2175
2296
|
|
|
2176
|
-
#
|
|
2297
|
+
# CRO trials
|
|
2177
2298
|
# @param id [String]
|
|
2178
2299
|
# @param [Hash] opts the optional parameters
|
|
2179
2300
|
# @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.
|
|
@@ -2182,13 +2303,13 @@ module PharmaObservatory
|
|
|
2182
2303
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2183
2304
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2184
2305
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2185
|
-
# @return [
|
|
2186
|
-
def
|
|
2187
|
-
data, _status_code, _headers =
|
|
2306
|
+
# @return [CroTrialsResponse]
|
|
2307
|
+
def companies_cro_trials(id, opts = {})
|
|
2308
|
+
data, _status_code, _headers = companies_cro_trials_with_http_info(id, opts)
|
|
2188
2309
|
data
|
|
2189
2310
|
end
|
|
2190
2311
|
|
|
2191
|
-
#
|
|
2312
|
+
# CRO trials
|
|
2192
2313
|
# @param id [String]
|
|
2193
2314
|
# @param [Hash] opts the optional parameters
|
|
2194
2315
|
# @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.
|
|
@@ -2197,21 +2318,21 @@ module PharmaObservatory
|
|
|
2197
2318
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2198
2319
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2199
2320
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2200
|
-
# @return [Array<(
|
|
2201
|
-
def
|
|
2321
|
+
# @return [Array<(CroTrialsResponse, Integer, Hash)>] CroTrialsResponse data, response status code and response headers
|
|
2322
|
+
def companies_cro_trials_with_http_info(id, opts = {})
|
|
2202
2323
|
if @api_client.config.debugging
|
|
2203
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
2324
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_cro_trials ...'
|
|
2204
2325
|
end
|
|
2205
2326
|
# verify the required parameter 'id' is set
|
|
2206
2327
|
if @api_client.config.client_side_validation && id.nil?
|
|
2207
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.
|
|
2328
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_cro_trials"
|
|
2208
2329
|
end
|
|
2209
2330
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
2210
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
2331
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_cro_trials, must be smaller than or equal to 500.'
|
|
2211
2332
|
end
|
|
2212
2333
|
|
|
2213
2334
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
2214
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
2335
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_cro_trials, must be greater than or equal to 1.'
|
|
2215
2336
|
end
|
|
2216
2337
|
|
|
2217
2338
|
allowable_values = ["company", "group"]
|
|
@@ -2219,7 +2340,7 @@ module PharmaObservatory
|
|
|
2219
2340
|
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
2220
2341
|
end
|
|
2221
2342
|
# resource path
|
|
2222
|
-
local_var_path = '/api/v1/companies/{id}/
|
|
2343
|
+
local_var_path = '/api/v1/companies/{id}/cro_trials'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
2223
2344
|
|
|
2224
2345
|
# query parameters
|
|
2225
2346
|
query_params = opts[:query_params] || {}
|
|
@@ -2242,13 +2363,13 @@ module PharmaObservatory
|
|
|
2242
2363
|
post_body = opts[:debug_body]
|
|
2243
2364
|
|
|
2244
2365
|
# return_type
|
|
2245
|
-
return_type = opts[:debug_return_type] || '
|
|
2366
|
+
return_type = opts[:debug_return_type] || 'CroTrialsResponse'
|
|
2246
2367
|
|
|
2247
2368
|
# auth_names
|
|
2248
2369
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
2249
2370
|
|
|
2250
2371
|
new_options = opts.merge(
|
|
2251
|
-
:operation => :"CompaniesApi.
|
|
2372
|
+
:operation => :"CompaniesApi.companies_cro_trials",
|
|
2252
2373
|
:header_params => header_params,
|
|
2253
2374
|
:query_params => query_params,
|
|
2254
2375
|
:form_params => form_params,
|
|
@@ -2259,12 +2380,12 @@ module PharmaObservatory
|
|
|
2259
2380
|
|
|
2260
2381
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2261
2382
|
if @api_client.config.debugging
|
|
2262
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
2383
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_cro_trials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2263
2384
|
end
|
|
2264
2385
|
return data, status_code, headers
|
|
2265
2386
|
end
|
|
2266
2387
|
|
|
2267
|
-
#
|
|
2388
|
+
# FDA firm debarments
|
|
2268
2389
|
# @param id [String]
|
|
2269
2390
|
# @param [Hash] opts the optional parameters
|
|
2270
2391
|
# @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.
|
|
@@ -2273,13 +2394,1790 @@ module PharmaObservatory
|
|
|
2273
2394
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2274
2395
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2275
2396
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2276
|
-
# @return [
|
|
2277
|
-
def
|
|
2278
|
-
data, _status_code, _headers =
|
|
2279
|
-
data
|
|
2280
|
-
end
|
|
2397
|
+
# @return [DebarmentsResponse]
|
|
2398
|
+
def companies_debarments(id, opts = {})
|
|
2399
|
+
data, _status_code, _headers = companies_debarments_with_http_info(id, opts)
|
|
2400
|
+
data
|
|
2401
|
+
end
|
|
2402
|
+
|
|
2403
|
+
# FDA firm debarments
|
|
2404
|
+
# @param id [String]
|
|
2405
|
+
# @param [Hash] opts the optional parameters
|
|
2406
|
+
# @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.
|
|
2407
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
2408
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2409
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2410
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2411
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2412
|
+
# @return [Array<(DebarmentsResponse, Integer, Hash)>] DebarmentsResponse data, response status code and response headers
|
|
2413
|
+
def companies_debarments_with_http_info(id, opts = {})
|
|
2414
|
+
if @api_client.config.debugging
|
|
2415
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_debarments ...'
|
|
2416
|
+
end
|
|
2417
|
+
# verify the required parameter 'id' is set
|
|
2418
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
2419
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_debarments"
|
|
2420
|
+
end
|
|
2421
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
2422
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_debarments, must be smaller than or equal to 500.'
|
|
2423
|
+
end
|
|
2424
|
+
|
|
2425
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
2426
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_debarments, must be greater than or equal to 1.'
|
|
2427
|
+
end
|
|
2428
|
+
|
|
2429
|
+
allowable_values = ["company", "group"]
|
|
2430
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
2431
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
2432
|
+
end
|
|
2433
|
+
# resource path
|
|
2434
|
+
local_var_path = '/api/v1/companies/{id}/debarments'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
2435
|
+
|
|
2436
|
+
# query parameters
|
|
2437
|
+
query_params = opts[:query_params] || {}
|
|
2438
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
2439
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
2440
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
2441
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
2442
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
2443
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
2444
|
+
|
|
2445
|
+
# header parameters
|
|
2446
|
+
header_params = opts[:header_params] || {}
|
|
2447
|
+
# HTTP header 'Accept' (if needed)
|
|
2448
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2449
|
+
|
|
2450
|
+
# form parameters
|
|
2451
|
+
form_params = opts[:form_params] || {}
|
|
2452
|
+
|
|
2453
|
+
# http body (model)
|
|
2454
|
+
post_body = opts[:debug_body]
|
|
2455
|
+
|
|
2456
|
+
# return_type
|
|
2457
|
+
return_type = opts[:debug_return_type] || 'DebarmentsResponse'
|
|
2458
|
+
|
|
2459
|
+
# auth_names
|
|
2460
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
2461
|
+
|
|
2462
|
+
new_options = opts.merge(
|
|
2463
|
+
:operation => :"CompaniesApi.companies_debarments",
|
|
2464
|
+
:header_params => header_params,
|
|
2465
|
+
:query_params => query_params,
|
|
2466
|
+
:form_params => form_params,
|
|
2467
|
+
:body => post_body,
|
|
2468
|
+
:auth_names => auth_names,
|
|
2469
|
+
:return_type => return_type
|
|
2470
|
+
)
|
|
2471
|
+
|
|
2472
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2473
|
+
if @api_client.config.debugging
|
|
2474
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_debarments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2475
|
+
end
|
|
2476
|
+
return data, status_code, headers
|
|
2477
|
+
end
|
|
2478
|
+
|
|
2479
|
+
# Patent-cliff exposure
|
|
2480
|
+
# @param id [String]
|
|
2481
|
+
# @param [Hash] opts the optional parameters
|
|
2482
|
+
# @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.
|
|
2483
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
2484
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2485
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2486
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2487
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2488
|
+
# @return [DrugPatentCliffResponse]
|
|
2489
|
+
def companies_drug_patent_cliff(id, opts = {})
|
|
2490
|
+
data, _status_code, _headers = companies_drug_patent_cliff_with_http_info(id, opts)
|
|
2491
|
+
data
|
|
2492
|
+
end
|
|
2493
|
+
|
|
2494
|
+
# Patent-cliff exposure
|
|
2495
|
+
# @param id [String]
|
|
2496
|
+
# @param [Hash] opts the optional parameters
|
|
2497
|
+
# @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.
|
|
2498
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
2499
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2500
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2501
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2502
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2503
|
+
# @return [Array<(DrugPatentCliffResponse, Integer, Hash)>] DrugPatentCliffResponse data, response status code and response headers
|
|
2504
|
+
def companies_drug_patent_cliff_with_http_info(id, opts = {})
|
|
2505
|
+
if @api_client.config.debugging
|
|
2506
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_drug_patent_cliff ...'
|
|
2507
|
+
end
|
|
2508
|
+
# verify the required parameter 'id' is set
|
|
2509
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
2510
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_drug_patent_cliff"
|
|
2511
|
+
end
|
|
2512
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
2513
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_drug_patent_cliff, must be smaller than or equal to 500.'
|
|
2514
|
+
end
|
|
2515
|
+
|
|
2516
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
2517
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_drug_patent_cliff, must be greater than or equal to 1.'
|
|
2518
|
+
end
|
|
2519
|
+
|
|
2520
|
+
allowable_values = ["company", "group"]
|
|
2521
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
2522
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
2523
|
+
end
|
|
2524
|
+
# resource path
|
|
2525
|
+
local_var_path = '/api/v1/companies/{id}/drug_patent_cliff'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
2526
|
+
|
|
2527
|
+
# query parameters
|
|
2528
|
+
query_params = opts[:query_params] || {}
|
|
2529
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
2530
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
2531
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
2532
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
2533
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
2534
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
2535
|
+
|
|
2536
|
+
# header parameters
|
|
2537
|
+
header_params = opts[:header_params] || {}
|
|
2538
|
+
# HTTP header 'Accept' (if needed)
|
|
2539
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2540
|
+
|
|
2541
|
+
# form parameters
|
|
2542
|
+
form_params = opts[:form_params] || {}
|
|
2543
|
+
|
|
2544
|
+
# http body (model)
|
|
2545
|
+
post_body = opts[:debug_body]
|
|
2546
|
+
|
|
2547
|
+
# return_type
|
|
2548
|
+
return_type = opts[:debug_return_type] || 'DrugPatentCliffResponse'
|
|
2549
|
+
|
|
2550
|
+
# auth_names
|
|
2551
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
2552
|
+
|
|
2553
|
+
new_options = opts.merge(
|
|
2554
|
+
:operation => :"CompaniesApi.companies_drug_patent_cliff",
|
|
2555
|
+
:header_params => header_params,
|
|
2556
|
+
:query_params => query_params,
|
|
2557
|
+
:form_params => form_params,
|
|
2558
|
+
:body => post_body,
|
|
2559
|
+
:auth_names => auth_names,
|
|
2560
|
+
:return_type => return_type
|
|
2561
|
+
)
|
|
2562
|
+
|
|
2563
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2564
|
+
if @api_client.config.debugging
|
|
2565
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_drug_patent_cliff\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2566
|
+
end
|
|
2567
|
+
return data, status_code, headers
|
|
2568
|
+
end
|
|
2569
|
+
|
|
2570
|
+
# Regulatory enforcement events
|
|
2571
|
+
# @param id [String]
|
|
2572
|
+
# @param [Hash] opts the optional parameters
|
|
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.
|
|
2574
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
2575
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2576
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2577
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2578
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2579
|
+
# @return [EnforcementEventsResponse]
|
|
2580
|
+
def companies_enforcement_events(id, opts = {})
|
|
2581
|
+
data, _status_code, _headers = companies_enforcement_events_with_http_info(id, opts)
|
|
2582
|
+
data
|
|
2583
|
+
end
|
|
2584
|
+
|
|
2585
|
+
# Regulatory enforcement events
|
|
2586
|
+
# @param id [String]
|
|
2587
|
+
# @param [Hash] opts the optional parameters
|
|
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.
|
|
2589
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
2590
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2591
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2592
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2593
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2594
|
+
# @return [Array<(EnforcementEventsResponse, Integer, Hash)>] EnforcementEventsResponse data, response status code and response headers
|
|
2595
|
+
def companies_enforcement_events_with_http_info(id, opts = {})
|
|
2596
|
+
if @api_client.config.debugging
|
|
2597
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_enforcement_events ...'
|
|
2598
|
+
end
|
|
2599
|
+
# verify the required parameter 'id' is set
|
|
2600
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
2601
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_enforcement_events"
|
|
2602
|
+
end
|
|
2603
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
2604
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_enforcement_events, must be smaller than or equal to 500.'
|
|
2605
|
+
end
|
|
2606
|
+
|
|
2607
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
2608
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_enforcement_events, must be greater than or equal to 1.'
|
|
2609
|
+
end
|
|
2610
|
+
|
|
2611
|
+
allowable_values = ["company", "group"]
|
|
2612
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
2613
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
2614
|
+
end
|
|
2615
|
+
# resource path
|
|
2616
|
+
local_var_path = '/api/v1/companies/{id}/enforcement_events'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
2617
|
+
|
|
2618
|
+
# query parameters
|
|
2619
|
+
query_params = opts[:query_params] || {}
|
|
2620
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
2621
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
2622
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
2623
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
2624
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
2625
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
2626
|
+
|
|
2627
|
+
# header parameters
|
|
2628
|
+
header_params = opts[:header_params] || {}
|
|
2629
|
+
# HTTP header 'Accept' (if needed)
|
|
2630
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2631
|
+
|
|
2632
|
+
# form parameters
|
|
2633
|
+
form_params = opts[:form_params] || {}
|
|
2634
|
+
|
|
2635
|
+
# http body (model)
|
|
2636
|
+
post_body = opts[:debug_body]
|
|
2637
|
+
|
|
2638
|
+
# return_type
|
|
2639
|
+
return_type = opts[:debug_return_type] || 'EnforcementEventsResponse'
|
|
2640
|
+
|
|
2641
|
+
# auth_names
|
|
2642
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
2643
|
+
|
|
2644
|
+
new_options = opts.merge(
|
|
2645
|
+
:operation => :"CompaniesApi.companies_enforcement_events",
|
|
2646
|
+
:header_params => header_params,
|
|
2647
|
+
:query_params => query_params,
|
|
2648
|
+
:form_params => form_params,
|
|
2649
|
+
:body => post_body,
|
|
2650
|
+
:auth_names => auth_names,
|
|
2651
|
+
:return_type => return_type
|
|
2652
|
+
)
|
|
2653
|
+
|
|
2654
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2655
|
+
if @api_client.config.debugging
|
|
2656
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_enforcement_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2657
|
+
end
|
|
2658
|
+
return data, status_code, headers
|
|
2659
|
+
end
|
|
2660
|
+
|
|
2661
|
+
# One company
|
|
2662
|
+
# @param id [String]
|
|
2663
|
+
# @param [Hash] opts the optional parameters
|
|
2664
|
+
# @return [CompaniesRecord]
|
|
2665
|
+
def companies_get(id, opts = {})
|
|
2666
|
+
data, _status_code, _headers = companies_get_with_http_info(id, opts)
|
|
2667
|
+
data
|
|
2668
|
+
end
|
|
2669
|
+
|
|
2670
|
+
# One company
|
|
2671
|
+
# @param id [String]
|
|
2672
|
+
# @param [Hash] opts the optional parameters
|
|
2673
|
+
# @return [Array<(CompaniesRecord, Integer, Hash)>] CompaniesRecord data, response status code and response headers
|
|
2674
|
+
def companies_get_with_http_info(id, opts = {})
|
|
2675
|
+
if @api_client.config.debugging
|
|
2676
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_get ...'
|
|
2677
|
+
end
|
|
2678
|
+
# verify the required parameter 'id' is set
|
|
2679
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
2680
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_get"
|
|
2681
|
+
end
|
|
2682
|
+
# resource path
|
|
2683
|
+
local_var_path = '/api/v1/companies/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
2684
|
+
|
|
2685
|
+
# query parameters
|
|
2686
|
+
query_params = opts[:query_params] || {}
|
|
2687
|
+
|
|
2688
|
+
# header parameters
|
|
2689
|
+
header_params = opts[:header_params] || {}
|
|
2690
|
+
# HTTP header 'Accept' (if needed)
|
|
2691
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2692
|
+
|
|
2693
|
+
# form parameters
|
|
2694
|
+
form_params = opts[:form_params] || {}
|
|
2695
|
+
|
|
2696
|
+
# http body (model)
|
|
2697
|
+
post_body = opts[:debug_body]
|
|
2698
|
+
|
|
2699
|
+
# return_type
|
|
2700
|
+
return_type = opts[:debug_return_type] || 'CompaniesRecord'
|
|
2701
|
+
|
|
2702
|
+
# auth_names
|
|
2703
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
2704
|
+
|
|
2705
|
+
new_options = opts.merge(
|
|
2706
|
+
:operation => :"CompaniesApi.companies_get",
|
|
2707
|
+
:header_params => header_params,
|
|
2708
|
+
:query_params => query_params,
|
|
2709
|
+
:form_params => form_params,
|
|
2710
|
+
:body => post_body,
|
|
2711
|
+
:auth_names => auth_names,
|
|
2712
|
+
:return_type => return_type
|
|
2713
|
+
)
|
|
2714
|
+
|
|
2715
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2716
|
+
if @api_client.config.debugging
|
|
2717
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2718
|
+
end
|
|
2719
|
+
return data, status_code, headers
|
|
2720
|
+
end
|
|
2721
|
+
|
|
2722
|
+
# GxP facilities and quality signals
|
|
2723
|
+
# @param id [String]
|
|
2724
|
+
# @param [Hash] opts the optional parameters
|
|
2725
|
+
# @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.
|
|
2726
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
2727
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2728
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2729
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2730
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2731
|
+
# @return [GxpFacilitiesResponse]
|
|
2732
|
+
def companies_gxp_facilities(id, opts = {})
|
|
2733
|
+
data, _status_code, _headers = companies_gxp_facilities_with_http_info(id, opts)
|
|
2734
|
+
data
|
|
2735
|
+
end
|
|
2736
|
+
|
|
2737
|
+
# GxP facilities and quality signals
|
|
2738
|
+
# @param id [String]
|
|
2739
|
+
# @param [Hash] opts the optional parameters
|
|
2740
|
+
# @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.
|
|
2741
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
2742
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2743
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2744
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2745
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2746
|
+
# @return [Array<(GxpFacilitiesResponse, Integer, Hash)>] GxpFacilitiesResponse data, response status code and response headers
|
|
2747
|
+
def companies_gxp_facilities_with_http_info(id, opts = {})
|
|
2748
|
+
if @api_client.config.debugging
|
|
2749
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_gxp_facilities ...'
|
|
2750
|
+
end
|
|
2751
|
+
# verify the required parameter 'id' is set
|
|
2752
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
2753
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_gxp_facilities"
|
|
2754
|
+
end
|
|
2755
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
2756
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_gxp_facilities, must be smaller than or equal to 500.'
|
|
2757
|
+
end
|
|
2758
|
+
|
|
2759
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
2760
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_gxp_facilities, must be greater than or equal to 1.'
|
|
2761
|
+
end
|
|
2762
|
+
|
|
2763
|
+
allowable_values = ["company", "group"]
|
|
2764
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
2765
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
2766
|
+
end
|
|
2767
|
+
# resource path
|
|
2768
|
+
local_var_path = '/api/v1/companies/{id}/gxp_facilities'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
2769
|
+
|
|
2770
|
+
# query parameters
|
|
2771
|
+
query_params = opts[:query_params] || {}
|
|
2772
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
2773
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
2774
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
2775
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
2776
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
2777
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
2778
|
+
|
|
2779
|
+
# header parameters
|
|
2780
|
+
header_params = opts[:header_params] || {}
|
|
2781
|
+
# HTTP header 'Accept' (if needed)
|
|
2782
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2783
|
+
|
|
2784
|
+
# form parameters
|
|
2785
|
+
form_params = opts[:form_params] || {}
|
|
2786
|
+
|
|
2787
|
+
# http body (model)
|
|
2788
|
+
post_body = opts[:debug_body]
|
|
2789
|
+
|
|
2790
|
+
# return_type
|
|
2791
|
+
return_type = opts[:debug_return_type] || 'GxpFacilitiesResponse'
|
|
2792
|
+
|
|
2793
|
+
# auth_names
|
|
2794
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
2795
|
+
|
|
2796
|
+
new_options = opts.merge(
|
|
2797
|
+
:operation => :"CompaniesApi.companies_gxp_facilities",
|
|
2798
|
+
:header_params => header_params,
|
|
2799
|
+
:query_params => query_params,
|
|
2800
|
+
:form_params => form_params,
|
|
2801
|
+
:body => post_body,
|
|
2802
|
+
:auth_names => auth_names,
|
|
2803
|
+
:return_type => return_type
|
|
2804
|
+
)
|
|
2805
|
+
|
|
2806
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2807
|
+
if @api_client.config.debugging
|
|
2808
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_gxp_facilities\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2809
|
+
end
|
|
2810
|
+
return data, status_code, headers
|
|
2811
|
+
end
|
|
2812
|
+
|
|
2813
|
+
# FDA import refusals
|
|
2814
|
+
# @param id [String]
|
|
2815
|
+
# @param [Hash] opts the optional parameters
|
|
2816
|
+
# @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.
|
|
2817
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
2818
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2819
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2820
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2821
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2822
|
+
# @return [ImportRefusalsResponse]
|
|
2823
|
+
def companies_import_refusals(id, opts = {})
|
|
2824
|
+
data, _status_code, _headers = companies_import_refusals_with_http_info(id, opts)
|
|
2825
|
+
data
|
|
2826
|
+
end
|
|
2827
|
+
|
|
2828
|
+
# FDA import refusals
|
|
2829
|
+
# @param id [String]
|
|
2830
|
+
# @param [Hash] opts the optional parameters
|
|
2831
|
+
# @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.
|
|
2832
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
2833
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2834
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2835
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2836
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2837
|
+
# @return [Array<(ImportRefusalsResponse, Integer, Hash)>] ImportRefusalsResponse data, response status code and response headers
|
|
2838
|
+
def companies_import_refusals_with_http_info(id, opts = {})
|
|
2839
|
+
if @api_client.config.debugging
|
|
2840
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_import_refusals ...'
|
|
2841
|
+
end
|
|
2842
|
+
# verify the required parameter 'id' is set
|
|
2843
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
2844
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_import_refusals"
|
|
2845
|
+
end
|
|
2846
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
2847
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_import_refusals, must be smaller than or equal to 500.'
|
|
2848
|
+
end
|
|
2849
|
+
|
|
2850
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
2851
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_import_refusals, must be greater than or equal to 1.'
|
|
2852
|
+
end
|
|
2853
|
+
|
|
2854
|
+
allowable_values = ["company", "group"]
|
|
2855
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
2856
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
2857
|
+
end
|
|
2858
|
+
# resource path
|
|
2859
|
+
local_var_path = '/api/v1/companies/{id}/import_refusals'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
2860
|
+
|
|
2861
|
+
# query parameters
|
|
2862
|
+
query_params = opts[:query_params] || {}
|
|
2863
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
2864
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
2865
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
2866
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
2867
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
2868
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
2869
|
+
|
|
2870
|
+
# header parameters
|
|
2871
|
+
header_params = opts[:header_params] || {}
|
|
2872
|
+
# HTTP header 'Accept' (if needed)
|
|
2873
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2874
|
+
|
|
2875
|
+
# form parameters
|
|
2876
|
+
form_params = opts[:form_params] || {}
|
|
2877
|
+
|
|
2878
|
+
# http body (model)
|
|
2879
|
+
post_body = opts[:debug_body]
|
|
2880
|
+
|
|
2881
|
+
# return_type
|
|
2882
|
+
return_type = opts[:debug_return_type] || 'ImportRefusalsResponse'
|
|
2883
|
+
|
|
2884
|
+
# auth_names
|
|
2885
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
2886
|
+
|
|
2887
|
+
new_options = opts.merge(
|
|
2888
|
+
:operation => :"CompaniesApi.companies_import_refusals",
|
|
2889
|
+
:header_params => header_params,
|
|
2890
|
+
:query_params => query_params,
|
|
2891
|
+
:form_params => form_params,
|
|
2892
|
+
:body => post_body,
|
|
2893
|
+
:auth_names => auth_names,
|
|
2894
|
+
:return_type => return_type
|
|
2895
|
+
)
|
|
2896
|
+
|
|
2897
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2898
|
+
if @api_client.config.debugging
|
|
2899
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_import_refusals\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2900
|
+
end
|
|
2901
|
+
return data, status_code, headers
|
|
2902
|
+
end
|
|
2903
|
+
|
|
2904
|
+
# FDA inspection findings
|
|
2905
|
+
# @param id [String]
|
|
2906
|
+
# @param [Hash] opts the optional parameters
|
|
2907
|
+
# @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.
|
|
2908
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
2909
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2910
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2911
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2912
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2913
|
+
# @return [InspectionFindingsResponse]
|
|
2914
|
+
def companies_inspection_findings(id, opts = {})
|
|
2915
|
+
data, _status_code, _headers = companies_inspection_findings_with_http_info(id, opts)
|
|
2916
|
+
data
|
|
2917
|
+
end
|
|
2918
|
+
|
|
2919
|
+
# FDA inspection findings
|
|
2920
|
+
# @param id [String]
|
|
2921
|
+
# @param [Hash] opts the optional parameters
|
|
2922
|
+
# @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.
|
|
2923
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
2924
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2925
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2926
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2927
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2928
|
+
# @return [Array<(InspectionFindingsResponse, Integer, Hash)>] InspectionFindingsResponse data, response status code and response headers
|
|
2929
|
+
def companies_inspection_findings_with_http_info(id, opts = {})
|
|
2930
|
+
if @api_client.config.debugging
|
|
2931
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_inspection_findings ...'
|
|
2932
|
+
end
|
|
2933
|
+
# verify the required parameter 'id' is set
|
|
2934
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
2935
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_inspection_findings"
|
|
2936
|
+
end
|
|
2937
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
2938
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_inspection_findings, must be smaller than or equal to 500.'
|
|
2939
|
+
end
|
|
2940
|
+
|
|
2941
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
2942
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_inspection_findings, must be greater than or equal to 1.'
|
|
2943
|
+
end
|
|
2944
|
+
|
|
2945
|
+
allowable_values = ["company", "group"]
|
|
2946
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
2947
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
2948
|
+
end
|
|
2949
|
+
# resource path
|
|
2950
|
+
local_var_path = '/api/v1/companies/{id}/inspection_findings'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
2951
|
+
|
|
2952
|
+
# query parameters
|
|
2953
|
+
query_params = opts[:query_params] || {}
|
|
2954
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
2955
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
2956
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
2957
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
2958
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
2959
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
2960
|
+
|
|
2961
|
+
# header parameters
|
|
2962
|
+
header_params = opts[:header_params] || {}
|
|
2963
|
+
# HTTP header 'Accept' (if needed)
|
|
2964
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2965
|
+
|
|
2966
|
+
# form parameters
|
|
2967
|
+
form_params = opts[:form_params] || {}
|
|
2968
|
+
|
|
2969
|
+
# http body (model)
|
|
2970
|
+
post_body = opts[:debug_body]
|
|
2971
|
+
|
|
2972
|
+
# return_type
|
|
2973
|
+
return_type = opts[:debug_return_type] || 'InspectionFindingsResponse'
|
|
2974
|
+
|
|
2975
|
+
# auth_names
|
|
2976
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
2977
|
+
|
|
2978
|
+
new_options = opts.merge(
|
|
2979
|
+
:operation => :"CompaniesApi.companies_inspection_findings",
|
|
2980
|
+
:header_params => header_params,
|
|
2981
|
+
:query_params => query_params,
|
|
2982
|
+
:form_params => form_params,
|
|
2983
|
+
:body => post_body,
|
|
2984
|
+
:auth_names => auth_names,
|
|
2985
|
+
:return_type => return_type
|
|
2986
|
+
)
|
|
2987
|
+
|
|
2988
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2989
|
+
if @api_client.config.debugging
|
|
2990
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_inspection_findings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2991
|
+
end
|
|
2992
|
+
return data, status_code, headers
|
|
2993
|
+
end
|
|
2994
|
+
|
|
2995
|
+
# FDA inspections
|
|
2996
|
+
# @param id [String]
|
|
2997
|
+
# @param [Hash] opts the optional parameters
|
|
2998
|
+
# @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.
|
|
2999
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
3000
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
3001
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3002
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3003
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3004
|
+
# @return [InspectionsResponse]
|
|
3005
|
+
def companies_inspections(id, opts = {})
|
|
3006
|
+
data, _status_code, _headers = companies_inspections_with_http_info(id, opts)
|
|
3007
|
+
data
|
|
3008
|
+
end
|
|
3009
|
+
|
|
3010
|
+
# FDA inspections
|
|
3011
|
+
# @param id [String]
|
|
3012
|
+
# @param [Hash] opts the optional parameters
|
|
3013
|
+
# @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.
|
|
3014
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
3015
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
3016
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3017
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3018
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3019
|
+
# @return [Array<(InspectionsResponse, Integer, Hash)>] InspectionsResponse data, response status code and response headers
|
|
3020
|
+
def companies_inspections_with_http_info(id, opts = {})
|
|
3021
|
+
if @api_client.config.debugging
|
|
3022
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_inspections ...'
|
|
3023
|
+
end
|
|
3024
|
+
# verify the required parameter 'id' is set
|
|
3025
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
3026
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_inspections"
|
|
3027
|
+
end
|
|
3028
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
3029
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_inspections, must be smaller than or equal to 500.'
|
|
3030
|
+
end
|
|
3031
|
+
|
|
3032
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
3033
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_inspections, must be greater than or equal to 1.'
|
|
3034
|
+
end
|
|
3035
|
+
|
|
3036
|
+
allowable_values = ["company", "group"]
|
|
3037
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
3038
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
3039
|
+
end
|
|
3040
|
+
# resource path
|
|
3041
|
+
local_var_path = '/api/v1/companies/{id}/inspections'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
3042
|
+
|
|
3043
|
+
# query parameters
|
|
3044
|
+
query_params = opts[:query_params] || {}
|
|
3045
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
3046
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
3047
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
3048
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
3049
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
3050
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
3051
|
+
|
|
3052
|
+
# header parameters
|
|
3053
|
+
header_params = opts[:header_params] || {}
|
|
3054
|
+
# HTTP header 'Accept' (if needed)
|
|
3055
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
3056
|
+
|
|
3057
|
+
# form parameters
|
|
3058
|
+
form_params = opts[:form_params] || {}
|
|
3059
|
+
|
|
3060
|
+
# http body (model)
|
|
3061
|
+
post_body = opts[:debug_body]
|
|
3062
|
+
|
|
3063
|
+
# return_type
|
|
3064
|
+
return_type = opts[:debug_return_type] || 'InspectionsResponse'
|
|
3065
|
+
|
|
3066
|
+
# auth_names
|
|
3067
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
3068
|
+
|
|
3069
|
+
new_options = opts.merge(
|
|
3070
|
+
:operation => :"CompaniesApi.companies_inspections",
|
|
3071
|
+
:header_params => header_params,
|
|
3072
|
+
:query_params => query_params,
|
|
3073
|
+
:form_params => form_params,
|
|
3074
|
+
:body => post_body,
|
|
3075
|
+
:auth_names => auth_names,
|
|
3076
|
+
:return_type => return_type
|
|
3077
|
+
)
|
|
3078
|
+
|
|
3079
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
3080
|
+
if @api_client.config.debugging
|
|
3081
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_inspections\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3082
|
+
end
|
|
3083
|
+
return data, status_code, headers
|
|
3084
|
+
end
|
|
3085
|
+
|
|
3086
|
+
# Institutional holdings (SEC Form 13F)
|
|
3087
|
+
# @param id [String]
|
|
3088
|
+
# @param [Hash] opts the optional parameters
|
|
3089
|
+
# @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.
|
|
3090
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
3091
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
3092
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3093
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3094
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3095
|
+
# @return [InstitutionalHoldingsResponse]
|
|
3096
|
+
def companies_institutional_holdings(id, opts = {})
|
|
3097
|
+
data, _status_code, _headers = companies_institutional_holdings_with_http_info(id, opts)
|
|
3098
|
+
data
|
|
3099
|
+
end
|
|
3100
|
+
|
|
3101
|
+
# Institutional holdings (SEC Form 13F)
|
|
3102
|
+
# @param id [String]
|
|
3103
|
+
# @param [Hash] opts the optional parameters
|
|
3104
|
+
# @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.
|
|
3105
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
3106
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
3107
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3108
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3109
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3110
|
+
# @return [Array<(InstitutionalHoldingsResponse, Integer, Hash)>] InstitutionalHoldingsResponse data, response status code and response headers
|
|
3111
|
+
def companies_institutional_holdings_with_http_info(id, opts = {})
|
|
3112
|
+
if @api_client.config.debugging
|
|
3113
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_institutional_holdings ...'
|
|
3114
|
+
end
|
|
3115
|
+
# verify the required parameter 'id' is set
|
|
3116
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
3117
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_institutional_holdings"
|
|
3118
|
+
end
|
|
3119
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
3120
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_institutional_holdings, must be smaller than or equal to 500.'
|
|
3121
|
+
end
|
|
3122
|
+
|
|
3123
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
3124
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_institutional_holdings, must be greater than or equal to 1.'
|
|
3125
|
+
end
|
|
3126
|
+
|
|
3127
|
+
allowable_values = ["company", "group"]
|
|
3128
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
3129
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
3130
|
+
end
|
|
3131
|
+
# resource path
|
|
3132
|
+
local_var_path = '/api/v1/companies/{id}/institutional_holdings'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
3133
|
+
|
|
3134
|
+
# query parameters
|
|
3135
|
+
query_params = opts[:query_params] || {}
|
|
3136
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
3137
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
3138
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
3139
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
3140
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
3141
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
3142
|
+
|
|
3143
|
+
# header parameters
|
|
3144
|
+
header_params = opts[:header_params] || {}
|
|
3145
|
+
# HTTP header 'Accept' (if needed)
|
|
3146
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
3147
|
+
|
|
3148
|
+
# form parameters
|
|
3149
|
+
form_params = opts[:form_params] || {}
|
|
3150
|
+
|
|
3151
|
+
# http body (model)
|
|
3152
|
+
post_body = opts[:debug_body]
|
|
3153
|
+
|
|
3154
|
+
# return_type
|
|
3155
|
+
return_type = opts[:debug_return_type] || 'InstitutionalHoldingsResponse'
|
|
3156
|
+
|
|
3157
|
+
# auth_names
|
|
3158
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
3159
|
+
|
|
3160
|
+
new_options = opts.merge(
|
|
3161
|
+
:operation => :"CompaniesApi.companies_institutional_holdings",
|
|
3162
|
+
:header_params => header_params,
|
|
3163
|
+
:query_params => query_params,
|
|
3164
|
+
:form_params => form_params,
|
|
3165
|
+
:body => post_body,
|
|
3166
|
+
:auth_names => auth_names,
|
|
3167
|
+
:return_type => return_type
|
|
3168
|
+
)
|
|
3169
|
+
|
|
3170
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
3171
|
+
if @api_client.config.debugging
|
|
3172
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_institutional_holdings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3173
|
+
end
|
|
3174
|
+
return data, status_code, headers
|
|
3175
|
+
end
|
|
3176
|
+
|
|
3177
|
+
# Institutional quarter totals (SEC Form 13F)
|
|
3178
|
+
# @param id [String]
|
|
3179
|
+
# @param [Hash] opts the optional parameters
|
|
3180
|
+
# @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.
|
|
3181
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
3182
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
3183
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3184
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3185
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3186
|
+
# @return [InstitutionalQuarterTotalsResponse]
|
|
3187
|
+
def companies_institutional_quarter_totals(id, opts = {})
|
|
3188
|
+
data, _status_code, _headers = companies_institutional_quarter_totals_with_http_info(id, opts)
|
|
3189
|
+
data
|
|
3190
|
+
end
|
|
3191
|
+
|
|
3192
|
+
# Institutional quarter totals (SEC Form 13F)
|
|
3193
|
+
# @param id [String]
|
|
3194
|
+
# @param [Hash] opts the optional parameters
|
|
3195
|
+
# @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.
|
|
3196
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
3197
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
3198
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3199
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3200
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3201
|
+
# @return [Array<(InstitutionalQuarterTotalsResponse, Integer, Hash)>] InstitutionalQuarterTotalsResponse data, response status code and response headers
|
|
3202
|
+
def companies_institutional_quarter_totals_with_http_info(id, opts = {})
|
|
3203
|
+
if @api_client.config.debugging
|
|
3204
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_institutional_quarter_totals ...'
|
|
3205
|
+
end
|
|
3206
|
+
# verify the required parameter 'id' is set
|
|
3207
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
3208
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_institutional_quarter_totals"
|
|
3209
|
+
end
|
|
3210
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
3211
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_institutional_quarter_totals, must be smaller than or equal to 500.'
|
|
3212
|
+
end
|
|
3213
|
+
|
|
3214
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
3215
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_institutional_quarter_totals, must be greater than or equal to 1.'
|
|
3216
|
+
end
|
|
3217
|
+
|
|
3218
|
+
allowable_values = ["company", "group"]
|
|
3219
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
3220
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
3221
|
+
end
|
|
3222
|
+
# resource path
|
|
3223
|
+
local_var_path = '/api/v1/companies/{id}/institutional_quarter_totals'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
3224
|
+
|
|
3225
|
+
# query parameters
|
|
3226
|
+
query_params = opts[:query_params] || {}
|
|
3227
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
3228
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
3229
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
3230
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
3231
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
3232
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
3233
|
+
|
|
3234
|
+
# header parameters
|
|
3235
|
+
header_params = opts[:header_params] || {}
|
|
3236
|
+
# HTTP header 'Accept' (if needed)
|
|
3237
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
3238
|
+
|
|
3239
|
+
# form parameters
|
|
3240
|
+
form_params = opts[:form_params] || {}
|
|
3241
|
+
|
|
3242
|
+
# http body (model)
|
|
3243
|
+
post_body = opts[:debug_body]
|
|
3244
|
+
|
|
3245
|
+
# return_type
|
|
3246
|
+
return_type = opts[:debug_return_type] || 'InstitutionalQuarterTotalsResponse'
|
|
3247
|
+
|
|
3248
|
+
# auth_names
|
|
3249
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
3250
|
+
|
|
3251
|
+
new_options = opts.merge(
|
|
3252
|
+
:operation => :"CompaniesApi.companies_institutional_quarter_totals",
|
|
3253
|
+
:header_params => header_params,
|
|
3254
|
+
:query_params => query_params,
|
|
3255
|
+
:form_params => form_params,
|
|
3256
|
+
:body => post_body,
|
|
3257
|
+
:auth_names => auth_names,
|
|
3258
|
+
:return_type => return_type
|
|
3259
|
+
)
|
|
3260
|
+
|
|
3261
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
3262
|
+
if @api_client.config.debugging
|
|
3263
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_institutional_quarter_totals\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3264
|
+
end
|
|
3265
|
+
return data, status_code, headers
|
|
3266
|
+
end
|
|
3267
|
+
|
|
3268
|
+
# Legal entities
|
|
3269
|
+
# @param id [String]
|
|
3270
|
+
# @param [Hash] opts the optional parameters
|
|
3271
|
+
# @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.
|
|
3272
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
3273
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
3274
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3275
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3276
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3277
|
+
# @return [LegalEntitiesResponse]
|
|
3278
|
+
def companies_legal_entities(id, opts = {})
|
|
3279
|
+
data, _status_code, _headers = companies_legal_entities_with_http_info(id, opts)
|
|
3280
|
+
data
|
|
3281
|
+
end
|
|
3282
|
+
|
|
3283
|
+
# Legal entities
|
|
3284
|
+
# @param id [String]
|
|
3285
|
+
# @param [Hash] opts the optional parameters
|
|
3286
|
+
# @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.
|
|
3287
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
3288
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
3289
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3290
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3291
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3292
|
+
# @return [Array<(LegalEntitiesResponse, Integer, Hash)>] LegalEntitiesResponse data, response status code and response headers
|
|
3293
|
+
def companies_legal_entities_with_http_info(id, opts = {})
|
|
3294
|
+
if @api_client.config.debugging
|
|
3295
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_legal_entities ...'
|
|
3296
|
+
end
|
|
3297
|
+
# verify the required parameter 'id' is set
|
|
3298
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
3299
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_legal_entities"
|
|
3300
|
+
end
|
|
3301
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
3302
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_legal_entities, must be smaller than or equal to 500.'
|
|
3303
|
+
end
|
|
3304
|
+
|
|
3305
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
3306
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_legal_entities, must be greater than or equal to 1.'
|
|
3307
|
+
end
|
|
3308
|
+
|
|
3309
|
+
allowable_values = ["company", "group"]
|
|
3310
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
3311
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
3312
|
+
end
|
|
3313
|
+
# resource path
|
|
3314
|
+
local_var_path = '/api/v1/companies/{id}/legal_entities'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
3315
|
+
|
|
3316
|
+
# query parameters
|
|
3317
|
+
query_params = opts[:query_params] || {}
|
|
3318
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
3319
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
3320
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
3321
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
3322
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
3323
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
3324
|
+
|
|
3325
|
+
# header parameters
|
|
3326
|
+
header_params = opts[:header_params] || {}
|
|
3327
|
+
# HTTP header 'Accept' (if needed)
|
|
3328
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
3329
|
+
|
|
3330
|
+
# form parameters
|
|
3331
|
+
form_params = opts[:form_params] || {}
|
|
3332
|
+
|
|
3333
|
+
# http body (model)
|
|
3334
|
+
post_body = opts[:debug_body]
|
|
3335
|
+
|
|
3336
|
+
# return_type
|
|
3337
|
+
return_type = opts[:debug_return_type] || 'LegalEntitiesResponse'
|
|
3338
|
+
|
|
3339
|
+
# auth_names
|
|
3340
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
3341
|
+
|
|
3342
|
+
new_options = opts.merge(
|
|
3343
|
+
:operation => :"CompaniesApi.companies_legal_entities",
|
|
3344
|
+
:header_params => header_params,
|
|
3345
|
+
:query_params => query_params,
|
|
3346
|
+
:form_params => form_params,
|
|
3347
|
+
:body => post_body,
|
|
3348
|
+
:auth_names => auth_names,
|
|
3349
|
+
:return_type => return_type
|
|
3350
|
+
)
|
|
3351
|
+
|
|
3352
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
3353
|
+
if @api_client.config.debugging
|
|
3354
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_legal_entities\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3355
|
+
end
|
|
3356
|
+
return data, status_code, headers
|
|
3357
|
+
end
|
|
3358
|
+
|
|
3359
|
+
# SEC filer records
|
|
3360
|
+
# @param id [String]
|
|
3361
|
+
# @param [Hash] opts the optional parameters
|
|
3362
|
+
# @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.
|
|
3363
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
3364
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
3365
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3366
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3367
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3368
|
+
# @return [LegalEntitySecFilingsResponse]
|
|
3369
|
+
def companies_legal_entity_sec_filings(id, opts = {})
|
|
3370
|
+
data, _status_code, _headers = companies_legal_entity_sec_filings_with_http_info(id, opts)
|
|
3371
|
+
data
|
|
3372
|
+
end
|
|
3373
|
+
|
|
3374
|
+
# SEC filer records
|
|
3375
|
+
# @param id [String]
|
|
3376
|
+
# @param [Hash] opts the optional parameters
|
|
3377
|
+
# @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.
|
|
3378
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
3379
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
3380
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3381
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3382
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3383
|
+
# @return [Array<(LegalEntitySecFilingsResponse, Integer, Hash)>] LegalEntitySecFilingsResponse data, response status code and response headers
|
|
3384
|
+
def companies_legal_entity_sec_filings_with_http_info(id, opts = {})
|
|
3385
|
+
if @api_client.config.debugging
|
|
3386
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_legal_entity_sec_filings ...'
|
|
3387
|
+
end
|
|
3388
|
+
# verify the required parameter 'id' is set
|
|
3389
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
3390
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_legal_entity_sec_filings"
|
|
3391
|
+
end
|
|
3392
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
3393
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_legal_entity_sec_filings, must be smaller than or equal to 500.'
|
|
3394
|
+
end
|
|
3395
|
+
|
|
3396
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
3397
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_legal_entity_sec_filings, must be greater than or equal to 1.'
|
|
3398
|
+
end
|
|
3399
|
+
|
|
3400
|
+
allowable_values = ["company", "group"]
|
|
3401
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
3402
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
3403
|
+
end
|
|
3404
|
+
# resource path
|
|
3405
|
+
local_var_path = '/api/v1/companies/{id}/legal_entity_sec_filings'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
3406
|
+
|
|
3407
|
+
# query parameters
|
|
3408
|
+
query_params = opts[:query_params] || {}
|
|
3409
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
3410
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
3411
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
3412
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
3413
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
3414
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
3415
|
+
|
|
3416
|
+
# header parameters
|
|
3417
|
+
header_params = opts[:header_params] || {}
|
|
3418
|
+
# HTTP header 'Accept' (if needed)
|
|
3419
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
3420
|
+
|
|
3421
|
+
# form parameters
|
|
3422
|
+
form_params = opts[:form_params] || {}
|
|
3423
|
+
|
|
3424
|
+
# http body (model)
|
|
3425
|
+
post_body = opts[:debug_body]
|
|
3426
|
+
|
|
3427
|
+
# return_type
|
|
3428
|
+
return_type = opts[:debug_return_type] || 'LegalEntitySecFilingsResponse'
|
|
3429
|
+
|
|
3430
|
+
# auth_names
|
|
3431
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
3432
|
+
|
|
3433
|
+
new_options = opts.merge(
|
|
3434
|
+
:operation => :"CompaniesApi.companies_legal_entity_sec_filings",
|
|
3435
|
+
:header_params => header_params,
|
|
3436
|
+
:query_params => query_params,
|
|
3437
|
+
:form_params => form_params,
|
|
3438
|
+
:body => post_body,
|
|
3439
|
+
:auth_names => auth_names,
|
|
3440
|
+
:return_type => return_type
|
|
3441
|
+
)
|
|
3442
|
+
|
|
3443
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
3444
|
+
if @api_client.config.debugging
|
|
3445
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_legal_entity_sec_filings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3446
|
+
end
|
|
3447
|
+
return data, status_code, headers
|
|
3448
|
+
end
|
|
3449
|
+
|
|
3450
|
+
# List companies
|
|
3451
|
+
# @param [Hash] opts the optional parameters
|
|
3452
|
+
# @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.
|
|
3453
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
3454
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
3455
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3456
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3457
|
+
# @return [CompaniesResponse]
|
|
3458
|
+
def companies_list(opts = {})
|
|
3459
|
+
data, _status_code, _headers = companies_list_with_http_info(opts)
|
|
3460
|
+
data
|
|
3461
|
+
end
|
|
3462
|
+
|
|
3463
|
+
# List companies
|
|
3464
|
+
# @param [Hash] opts the optional parameters
|
|
3465
|
+
# @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.
|
|
3466
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
3467
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
3468
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3469
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3470
|
+
# @return [Array<(CompaniesResponse, Integer, Hash)>] CompaniesResponse data, response status code and response headers
|
|
3471
|
+
def companies_list_with_http_info(opts = {})
|
|
3472
|
+
if @api_client.config.debugging
|
|
3473
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_list ...'
|
|
3474
|
+
end
|
|
3475
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
3476
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_list, must be smaller than or equal to 500.'
|
|
3477
|
+
end
|
|
3478
|
+
|
|
3479
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
3480
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_list, must be greater than or equal to 1.'
|
|
3481
|
+
end
|
|
3482
|
+
|
|
3483
|
+
# resource path
|
|
3484
|
+
local_var_path = '/api/v1/companies'
|
|
3485
|
+
|
|
3486
|
+
# query parameters
|
|
3487
|
+
query_params = opts[:query_params] || {}
|
|
3488
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
3489
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
3490
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
3491
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
3492
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
3493
|
+
|
|
3494
|
+
# header parameters
|
|
3495
|
+
header_params = opts[:header_params] || {}
|
|
3496
|
+
# HTTP header 'Accept' (if needed)
|
|
3497
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
3498
|
+
|
|
3499
|
+
# form parameters
|
|
3500
|
+
form_params = opts[:form_params] || {}
|
|
3501
|
+
|
|
3502
|
+
# http body (model)
|
|
3503
|
+
post_body = opts[:debug_body]
|
|
3504
|
+
|
|
3505
|
+
# return_type
|
|
3506
|
+
return_type = opts[:debug_return_type] || 'CompaniesResponse'
|
|
3507
|
+
|
|
3508
|
+
# auth_names
|
|
3509
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
3510
|
+
|
|
3511
|
+
new_options = opts.merge(
|
|
3512
|
+
:operation => :"CompaniesApi.companies_list",
|
|
3513
|
+
:header_params => header_params,
|
|
3514
|
+
:query_params => query_params,
|
|
3515
|
+
:form_params => form_params,
|
|
3516
|
+
:body => post_body,
|
|
3517
|
+
:auth_names => auth_names,
|
|
3518
|
+
:return_type => return_type
|
|
3519
|
+
)
|
|
3520
|
+
|
|
3521
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
3522
|
+
if @api_client.config.debugging
|
|
3523
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3524
|
+
end
|
|
3525
|
+
return data, status_code, headers
|
|
3526
|
+
end
|
|
3527
|
+
|
|
3528
|
+
# Organization disclosure trend
|
|
3529
|
+
# @param id [String]
|
|
3530
|
+
# @param [Hash] opts the optional parameters
|
|
3531
|
+
# @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.
|
|
3532
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
3533
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
3534
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3535
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3536
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3537
|
+
# @return [OrgDisclosureTrendResponse]
|
|
3538
|
+
def companies_org_disclosure_trend(id, opts = {})
|
|
3539
|
+
data, _status_code, _headers = companies_org_disclosure_trend_with_http_info(id, opts)
|
|
3540
|
+
data
|
|
3541
|
+
end
|
|
3542
|
+
|
|
3543
|
+
# Organization disclosure trend
|
|
3544
|
+
# @param id [String]
|
|
3545
|
+
# @param [Hash] opts the optional parameters
|
|
3546
|
+
# @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.
|
|
3547
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
3548
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
3549
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3550
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3551
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3552
|
+
# @return [Array<(OrgDisclosureTrendResponse, Integer, Hash)>] OrgDisclosureTrendResponse data, response status code and response headers
|
|
3553
|
+
def companies_org_disclosure_trend_with_http_info(id, opts = {})
|
|
3554
|
+
if @api_client.config.debugging
|
|
3555
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_org_disclosure_trend ...'
|
|
3556
|
+
end
|
|
3557
|
+
# verify the required parameter 'id' is set
|
|
3558
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
3559
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_org_disclosure_trend"
|
|
3560
|
+
end
|
|
3561
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
3562
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_org_disclosure_trend, must be smaller than or equal to 500.'
|
|
3563
|
+
end
|
|
3564
|
+
|
|
3565
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
3566
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_org_disclosure_trend, must be greater than or equal to 1.'
|
|
3567
|
+
end
|
|
3568
|
+
|
|
3569
|
+
allowable_values = ["company", "group"]
|
|
3570
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
3571
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
3572
|
+
end
|
|
3573
|
+
# resource path
|
|
3574
|
+
local_var_path = '/api/v1/companies/{id}/org_disclosure_trend'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
3575
|
+
|
|
3576
|
+
# query parameters
|
|
3577
|
+
query_params = opts[:query_params] || {}
|
|
3578
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
3579
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
3580
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
3581
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
3582
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
3583
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
3584
|
+
|
|
3585
|
+
# header parameters
|
|
3586
|
+
header_params = opts[:header_params] || {}
|
|
3587
|
+
# HTTP header 'Accept' (if needed)
|
|
3588
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
3589
|
+
|
|
3590
|
+
# form parameters
|
|
3591
|
+
form_params = opts[:form_params] || {}
|
|
3592
|
+
|
|
3593
|
+
# http body (model)
|
|
3594
|
+
post_body = opts[:debug_body]
|
|
3595
|
+
|
|
3596
|
+
# return_type
|
|
3597
|
+
return_type = opts[:debug_return_type] || 'OrgDisclosureTrendResponse'
|
|
3598
|
+
|
|
3599
|
+
# auth_names
|
|
3600
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
3601
|
+
|
|
3602
|
+
new_options = opts.merge(
|
|
3603
|
+
:operation => :"CompaniesApi.companies_org_disclosure_trend",
|
|
3604
|
+
:header_params => header_params,
|
|
3605
|
+
:query_params => query_params,
|
|
3606
|
+
:form_params => form_params,
|
|
3607
|
+
:body => post_body,
|
|
3608
|
+
:auth_names => auth_names,
|
|
3609
|
+
:return_type => return_type
|
|
3610
|
+
)
|
|
3611
|
+
|
|
3612
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
3613
|
+
if @api_client.config.debugging
|
|
3614
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_org_disclosure_trend\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3615
|
+
end
|
|
3616
|
+
return data, status_code, headers
|
|
3617
|
+
end
|
|
3618
|
+
|
|
3619
|
+
# Organization disclosures (climate and diversity)
|
|
3620
|
+
# @param id [String]
|
|
3621
|
+
# @param [Hash] opts the optional parameters
|
|
3622
|
+
# @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.
|
|
3623
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
3624
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
3625
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3626
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3627
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3628
|
+
# @return [OrgDisclosuresResponse]
|
|
3629
|
+
def companies_org_disclosures(id, opts = {})
|
|
3630
|
+
data, _status_code, _headers = companies_org_disclosures_with_http_info(id, opts)
|
|
3631
|
+
data
|
|
3632
|
+
end
|
|
3633
|
+
|
|
3634
|
+
# Organization disclosures (climate and diversity)
|
|
3635
|
+
# @param id [String]
|
|
3636
|
+
# @param [Hash] opts the optional parameters
|
|
3637
|
+
# @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.
|
|
3638
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
3639
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
3640
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3641
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3642
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3643
|
+
# @return [Array<(OrgDisclosuresResponse, Integer, Hash)>] OrgDisclosuresResponse data, response status code and response headers
|
|
3644
|
+
def companies_org_disclosures_with_http_info(id, opts = {})
|
|
3645
|
+
if @api_client.config.debugging
|
|
3646
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_org_disclosures ...'
|
|
3647
|
+
end
|
|
3648
|
+
# verify the required parameter 'id' is set
|
|
3649
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
3650
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_org_disclosures"
|
|
3651
|
+
end
|
|
3652
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
3653
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_org_disclosures, must be smaller than or equal to 500.'
|
|
3654
|
+
end
|
|
3655
|
+
|
|
3656
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
3657
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_org_disclosures, must be greater than or equal to 1.'
|
|
3658
|
+
end
|
|
3659
|
+
|
|
3660
|
+
allowable_values = ["company", "group"]
|
|
3661
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
3662
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
3663
|
+
end
|
|
3664
|
+
# resource path
|
|
3665
|
+
local_var_path = '/api/v1/companies/{id}/org_disclosures'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
3666
|
+
|
|
3667
|
+
# query parameters
|
|
3668
|
+
query_params = opts[:query_params] || {}
|
|
3669
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
3670
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
3671
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
3672
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
3673
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
3674
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
3675
|
+
|
|
3676
|
+
# header parameters
|
|
3677
|
+
header_params = opts[:header_params] || {}
|
|
3678
|
+
# HTTP header 'Accept' (if needed)
|
|
3679
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
3680
|
+
|
|
3681
|
+
# form parameters
|
|
3682
|
+
form_params = opts[:form_params] || {}
|
|
3683
|
+
|
|
3684
|
+
# http body (model)
|
|
3685
|
+
post_body = opts[:debug_body]
|
|
3686
|
+
|
|
3687
|
+
# return_type
|
|
3688
|
+
return_type = opts[:debug_return_type] || 'OrgDisclosuresResponse'
|
|
3689
|
+
|
|
3690
|
+
# auth_names
|
|
3691
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
3692
|
+
|
|
3693
|
+
new_options = opts.merge(
|
|
3694
|
+
:operation => :"CompaniesApi.companies_org_disclosures",
|
|
3695
|
+
:header_params => header_params,
|
|
3696
|
+
:query_params => query_params,
|
|
3697
|
+
:form_params => form_params,
|
|
3698
|
+
:body => post_body,
|
|
3699
|
+
:auth_names => auth_names,
|
|
3700
|
+
:return_type => return_type
|
|
3701
|
+
)
|
|
3702
|
+
|
|
3703
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
3704
|
+
if @api_client.config.debugging
|
|
3705
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_org_disclosures\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3706
|
+
end
|
|
3707
|
+
return data, status_code, headers
|
|
3708
|
+
end
|
|
3709
|
+
|
|
3710
|
+
# Organization relationships
|
|
3711
|
+
# @param id [String]
|
|
3712
|
+
# @param [Hash] opts the optional parameters
|
|
3713
|
+
# @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.
|
|
3714
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
3715
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
3716
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3717
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3718
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3719
|
+
# @return [OrgRelationshipsResponse]
|
|
3720
|
+
def companies_org_relationships(id, opts = {})
|
|
3721
|
+
data, _status_code, _headers = companies_org_relationships_with_http_info(id, opts)
|
|
3722
|
+
data
|
|
3723
|
+
end
|
|
3724
|
+
|
|
3725
|
+
# Organization relationships
|
|
3726
|
+
# @param id [String]
|
|
3727
|
+
# @param [Hash] opts the optional parameters
|
|
3728
|
+
# @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.
|
|
3729
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
3730
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
3731
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3732
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3733
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3734
|
+
# @return [Array<(OrgRelationshipsResponse, Integer, Hash)>] OrgRelationshipsResponse data, response status code and response headers
|
|
3735
|
+
def companies_org_relationships_with_http_info(id, opts = {})
|
|
3736
|
+
if @api_client.config.debugging
|
|
3737
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_org_relationships ...'
|
|
3738
|
+
end
|
|
3739
|
+
# verify the required parameter 'id' is set
|
|
3740
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
3741
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_org_relationships"
|
|
3742
|
+
end
|
|
3743
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
3744
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_org_relationships, must be smaller than or equal to 500.'
|
|
3745
|
+
end
|
|
3746
|
+
|
|
3747
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
3748
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_org_relationships, must be greater than or equal to 1.'
|
|
3749
|
+
end
|
|
3750
|
+
|
|
3751
|
+
allowable_values = ["company", "group"]
|
|
3752
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
3753
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
3754
|
+
end
|
|
3755
|
+
# resource path
|
|
3756
|
+
local_var_path = '/api/v1/companies/{id}/org_relationships'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
3757
|
+
|
|
3758
|
+
# query parameters
|
|
3759
|
+
query_params = opts[:query_params] || {}
|
|
3760
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
3761
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
3762
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
3763
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
3764
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
3765
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
3766
|
+
|
|
3767
|
+
# header parameters
|
|
3768
|
+
header_params = opts[:header_params] || {}
|
|
3769
|
+
# HTTP header 'Accept' (if needed)
|
|
3770
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
3771
|
+
|
|
3772
|
+
# form parameters
|
|
3773
|
+
form_params = opts[:form_params] || {}
|
|
3774
|
+
|
|
3775
|
+
# http body (model)
|
|
3776
|
+
post_body = opts[:debug_body]
|
|
3777
|
+
|
|
3778
|
+
# return_type
|
|
3779
|
+
return_type = opts[:debug_return_type] || 'OrgRelationshipsResponse'
|
|
3780
|
+
|
|
3781
|
+
# auth_names
|
|
3782
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
3783
|
+
|
|
3784
|
+
new_options = opts.merge(
|
|
3785
|
+
:operation => :"CompaniesApi.companies_org_relationships",
|
|
3786
|
+
:header_params => header_params,
|
|
3787
|
+
:query_params => query_params,
|
|
3788
|
+
:form_params => form_params,
|
|
3789
|
+
:body => post_body,
|
|
3790
|
+
:auth_names => auth_names,
|
|
3791
|
+
:return_type => return_type
|
|
3792
|
+
)
|
|
3793
|
+
|
|
3794
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
3795
|
+
if @api_client.config.debugging
|
|
3796
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_org_relationships\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3797
|
+
end
|
|
3798
|
+
return data, status_code, headers
|
|
3799
|
+
end
|
|
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
|
+
|
|
3892
|
+
# Ownership percentages
|
|
3893
|
+
# @param id [String]
|
|
3894
|
+
# @param [Hash] opts the optional parameters
|
|
3895
|
+
# @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.
|
|
3896
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
3897
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
3898
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3899
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3900
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3901
|
+
# @return [OwnershipPercentagesResponse]
|
|
3902
|
+
def companies_ownership_percentages(id, opts = {})
|
|
3903
|
+
data, _status_code, _headers = companies_ownership_percentages_with_http_info(id, opts)
|
|
3904
|
+
data
|
|
3905
|
+
end
|
|
3906
|
+
|
|
3907
|
+
# Ownership percentages
|
|
3908
|
+
# @param id [String]
|
|
3909
|
+
# @param [Hash] opts the optional parameters
|
|
3910
|
+
# @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.
|
|
3911
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
3912
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
3913
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3914
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3915
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3916
|
+
# @return [Array<(OwnershipPercentagesResponse, Integer, Hash)>] OwnershipPercentagesResponse data, response status code and response headers
|
|
3917
|
+
def companies_ownership_percentages_with_http_info(id, opts = {})
|
|
3918
|
+
if @api_client.config.debugging
|
|
3919
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_ownership_percentages ...'
|
|
3920
|
+
end
|
|
3921
|
+
# verify the required parameter 'id' is set
|
|
3922
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
3923
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_ownership_percentages"
|
|
3924
|
+
end
|
|
3925
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
3926
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_ownership_percentages, must be smaller than or equal to 500.'
|
|
3927
|
+
end
|
|
2281
3928
|
|
|
2282
|
-
|
|
3929
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
3930
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_ownership_percentages, must be greater than or equal to 1.'
|
|
3931
|
+
end
|
|
3932
|
+
|
|
3933
|
+
allowable_values = ["company", "group"]
|
|
3934
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
3935
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
3936
|
+
end
|
|
3937
|
+
# resource path
|
|
3938
|
+
local_var_path = '/api/v1/companies/{id}/ownership_percentages'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
3939
|
+
|
|
3940
|
+
# query parameters
|
|
3941
|
+
query_params = opts[:query_params] || {}
|
|
3942
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
3943
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
3944
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
3945
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
3946
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
3947
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
3948
|
+
|
|
3949
|
+
# header parameters
|
|
3950
|
+
header_params = opts[:header_params] || {}
|
|
3951
|
+
# HTTP header 'Accept' (if needed)
|
|
3952
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
3953
|
+
|
|
3954
|
+
# form parameters
|
|
3955
|
+
form_params = opts[:form_params] || {}
|
|
3956
|
+
|
|
3957
|
+
# http body (model)
|
|
3958
|
+
post_body = opts[:debug_body]
|
|
3959
|
+
|
|
3960
|
+
# return_type
|
|
3961
|
+
return_type = opts[:debug_return_type] || 'OwnershipPercentagesResponse'
|
|
3962
|
+
|
|
3963
|
+
# auth_names
|
|
3964
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
3965
|
+
|
|
3966
|
+
new_options = opts.merge(
|
|
3967
|
+
:operation => :"CompaniesApi.companies_ownership_percentages",
|
|
3968
|
+
:header_params => header_params,
|
|
3969
|
+
:query_params => query_params,
|
|
3970
|
+
:form_params => form_params,
|
|
3971
|
+
:body => post_body,
|
|
3972
|
+
:auth_names => auth_names,
|
|
3973
|
+
:return_type => return_type
|
|
3974
|
+
)
|
|
3975
|
+
|
|
3976
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
3977
|
+
if @api_client.config.debugging
|
|
3978
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_ownership_percentages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3979
|
+
end
|
|
3980
|
+
return data, status_code, headers
|
|
3981
|
+
end
|
|
3982
|
+
|
|
3983
|
+
# Ownership and control positions
|
|
3984
|
+
# @param id [String]
|
|
3985
|
+
# @param [Hash] opts the optional parameters
|
|
3986
|
+
# @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.
|
|
3987
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
3988
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
3989
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3990
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3991
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3992
|
+
# @return [OwnershipPositionsResponse]
|
|
3993
|
+
def companies_ownership_positions(id, opts = {})
|
|
3994
|
+
data, _status_code, _headers = companies_ownership_positions_with_http_info(id, opts)
|
|
3995
|
+
data
|
|
3996
|
+
end
|
|
3997
|
+
|
|
3998
|
+
# Ownership and control positions
|
|
3999
|
+
# @param id [String]
|
|
4000
|
+
# @param [Hash] opts the optional parameters
|
|
4001
|
+
# @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.
|
|
4002
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
4003
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
4004
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
4005
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
4006
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
4007
|
+
# @return [Array<(OwnershipPositionsResponse, Integer, Hash)>] OwnershipPositionsResponse data, response status code and response headers
|
|
4008
|
+
def companies_ownership_positions_with_http_info(id, opts = {})
|
|
4009
|
+
if @api_client.config.debugging
|
|
4010
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_ownership_positions ...'
|
|
4011
|
+
end
|
|
4012
|
+
# verify the required parameter 'id' is set
|
|
4013
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
4014
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_ownership_positions"
|
|
4015
|
+
end
|
|
4016
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
4017
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_ownership_positions, must be smaller than or equal to 500.'
|
|
4018
|
+
end
|
|
4019
|
+
|
|
4020
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
4021
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_ownership_positions, must be greater than or equal to 1.'
|
|
4022
|
+
end
|
|
4023
|
+
|
|
4024
|
+
allowable_values = ["company", "group"]
|
|
4025
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
4026
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
4027
|
+
end
|
|
4028
|
+
# resource path
|
|
4029
|
+
local_var_path = '/api/v1/companies/{id}/ownership_positions'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
4030
|
+
|
|
4031
|
+
# query parameters
|
|
4032
|
+
query_params = opts[:query_params] || {}
|
|
4033
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
4034
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
4035
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
4036
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
4037
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
4038
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
4039
|
+
|
|
4040
|
+
# header parameters
|
|
4041
|
+
header_params = opts[:header_params] || {}
|
|
4042
|
+
# HTTP header 'Accept' (if needed)
|
|
4043
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
4044
|
+
|
|
4045
|
+
# form parameters
|
|
4046
|
+
form_params = opts[:form_params] || {}
|
|
4047
|
+
|
|
4048
|
+
# http body (model)
|
|
4049
|
+
post_body = opts[:debug_body]
|
|
4050
|
+
|
|
4051
|
+
# return_type
|
|
4052
|
+
return_type = opts[:debug_return_type] || 'OwnershipPositionsResponse'
|
|
4053
|
+
|
|
4054
|
+
# auth_names
|
|
4055
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
4056
|
+
|
|
4057
|
+
new_options = opts.merge(
|
|
4058
|
+
:operation => :"CompaniesApi.companies_ownership_positions",
|
|
4059
|
+
:header_params => header_params,
|
|
4060
|
+
:query_params => query_params,
|
|
4061
|
+
:form_params => form_params,
|
|
4062
|
+
:body => post_body,
|
|
4063
|
+
:auth_names => auth_names,
|
|
4064
|
+
:return_type => return_type
|
|
4065
|
+
)
|
|
4066
|
+
|
|
4067
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
4068
|
+
if @api_client.config.debugging
|
|
4069
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_ownership_positions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4070
|
+
end
|
|
4071
|
+
return data, status_code, headers
|
|
4072
|
+
end
|
|
4073
|
+
|
|
4074
|
+
# Ownership source coverage
|
|
4075
|
+
# @param id [String]
|
|
4076
|
+
# @param [Hash] opts the optional parameters
|
|
4077
|
+
# @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.
|
|
4078
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
4079
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
4080
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
4081
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
4082
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
4083
|
+
# @return [OwnershipSourceCoverageResponse]
|
|
4084
|
+
def companies_ownership_source_coverage(id, opts = {})
|
|
4085
|
+
data, _status_code, _headers = companies_ownership_source_coverage_with_http_info(id, opts)
|
|
4086
|
+
data
|
|
4087
|
+
end
|
|
4088
|
+
|
|
4089
|
+
# Ownership source coverage
|
|
4090
|
+
# @param id [String]
|
|
4091
|
+
# @param [Hash] opts the optional parameters
|
|
4092
|
+
# @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.
|
|
4093
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
4094
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
4095
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
4096
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
4097
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
4098
|
+
# @return [Array<(OwnershipSourceCoverageResponse, Integer, Hash)>] OwnershipSourceCoverageResponse data, response status code and response headers
|
|
4099
|
+
def companies_ownership_source_coverage_with_http_info(id, opts = {})
|
|
4100
|
+
if @api_client.config.debugging
|
|
4101
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_ownership_source_coverage ...'
|
|
4102
|
+
end
|
|
4103
|
+
# verify the required parameter 'id' is set
|
|
4104
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
4105
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_ownership_source_coverage"
|
|
4106
|
+
end
|
|
4107
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
4108
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_ownership_source_coverage, must be smaller than or equal to 500.'
|
|
4109
|
+
end
|
|
4110
|
+
|
|
4111
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
4112
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_ownership_source_coverage, must be greater than or equal to 1.'
|
|
4113
|
+
end
|
|
4114
|
+
|
|
4115
|
+
allowable_values = ["company", "group"]
|
|
4116
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
4117
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
4118
|
+
end
|
|
4119
|
+
# resource path
|
|
4120
|
+
local_var_path = '/api/v1/companies/{id}/ownership_source_coverage'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
4121
|
+
|
|
4122
|
+
# query parameters
|
|
4123
|
+
query_params = opts[:query_params] || {}
|
|
4124
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
4125
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
4126
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
4127
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
4128
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
4129
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
4130
|
+
|
|
4131
|
+
# header parameters
|
|
4132
|
+
header_params = opts[:header_params] || {}
|
|
4133
|
+
# HTTP header 'Accept' (if needed)
|
|
4134
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
4135
|
+
|
|
4136
|
+
# form parameters
|
|
4137
|
+
form_params = opts[:form_params] || {}
|
|
4138
|
+
|
|
4139
|
+
# http body (model)
|
|
4140
|
+
post_body = opts[:debug_body]
|
|
4141
|
+
|
|
4142
|
+
# return_type
|
|
4143
|
+
return_type = opts[:debug_return_type] || 'OwnershipSourceCoverageResponse'
|
|
4144
|
+
|
|
4145
|
+
# auth_names
|
|
4146
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
4147
|
+
|
|
4148
|
+
new_options = opts.merge(
|
|
4149
|
+
:operation => :"CompaniesApi.companies_ownership_source_coverage",
|
|
4150
|
+
:header_params => header_params,
|
|
4151
|
+
:query_params => query_params,
|
|
4152
|
+
:form_params => form_params,
|
|
4153
|
+
:body => post_body,
|
|
4154
|
+
:auth_names => auth_names,
|
|
4155
|
+
:return_type => return_type
|
|
4156
|
+
)
|
|
4157
|
+
|
|
4158
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
4159
|
+
if @api_client.config.debugging
|
|
4160
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_ownership_source_coverage\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4161
|
+
end
|
|
4162
|
+
return data, status_code, headers
|
|
4163
|
+
end
|
|
4164
|
+
|
|
4165
|
+
# FDA decision dates (PDUFA) and catalysts
|
|
4166
|
+
# @param id [String]
|
|
4167
|
+
# @param [Hash] opts the optional parameters
|
|
4168
|
+
# @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.
|
|
4169
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
4170
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
4171
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
4172
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
4173
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
4174
|
+
# @return [PdufaDatesResponse]
|
|
4175
|
+
def companies_pdufa_dates(id, opts = {})
|
|
4176
|
+
data, _status_code, _headers = companies_pdufa_dates_with_http_info(id, opts)
|
|
4177
|
+
data
|
|
4178
|
+
end
|
|
4179
|
+
|
|
4180
|
+
# FDA decision dates (PDUFA) and catalysts
|
|
2283
4181
|
# @param id [String]
|
|
2284
4182
|
# @param [Hash] opts the optional parameters
|
|
2285
4183
|
# @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.
|
|
@@ -2288,21 +4186,21 @@ module PharmaObservatory
|
|
|
2288
4186
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2289
4187
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2290
4188
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2291
|
-
# @return [Array<(
|
|
2292
|
-
def
|
|
4189
|
+
# @return [Array<(PdufaDatesResponse, Integer, Hash)>] PdufaDatesResponse data, response status code and response headers
|
|
4190
|
+
def companies_pdufa_dates_with_http_info(id, opts = {})
|
|
2293
4191
|
if @api_client.config.debugging
|
|
2294
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
4192
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_pdufa_dates ...'
|
|
2295
4193
|
end
|
|
2296
4194
|
# verify the required parameter 'id' is set
|
|
2297
4195
|
if @api_client.config.client_side_validation && id.nil?
|
|
2298
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.
|
|
4196
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_pdufa_dates"
|
|
2299
4197
|
end
|
|
2300
4198
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
2301
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
4199
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_pdufa_dates, must be smaller than or equal to 500.'
|
|
2302
4200
|
end
|
|
2303
4201
|
|
|
2304
4202
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
2305
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
4203
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_pdufa_dates, must be greater than or equal to 1.'
|
|
2306
4204
|
end
|
|
2307
4205
|
|
|
2308
4206
|
allowable_values = ["company", "group"]
|
|
@@ -2310,7 +4208,7 @@ module PharmaObservatory
|
|
|
2310
4208
|
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
2311
4209
|
end
|
|
2312
4210
|
# resource path
|
|
2313
|
-
local_var_path = '/api/v1/companies/{id}/
|
|
4211
|
+
local_var_path = '/api/v1/companies/{id}/pdufa_dates'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
2314
4212
|
|
|
2315
4213
|
# query parameters
|
|
2316
4214
|
query_params = opts[:query_params] || {}
|
|
@@ -2333,13 +4231,13 @@ module PharmaObservatory
|
|
|
2333
4231
|
post_body = opts[:debug_body]
|
|
2334
4232
|
|
|
2335
4233
|
# return_type
|
|
2336
|
-
return_type = opts[:debug_return_type] || '
|
|
4234
|
+
return_type = opts[:debug_return_type] || 'PdufaDatesResponse'
|
|
2337
4235
|
|
|
2338
4236
|
# auth_names
|
|
2339
4237
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
2340
4238
|
|
|
2341
4239
|
new_options = opts.merge(
|
|
2342
|
-
:operation => :"CompaniesApi.
|
|
4240
|
+
:operation => :"CompaniesApi.companies_pdufa_dates",
|
|
2343
4241
|
:header_params => header_params,
|
|
2344
4242
|
:query_params => query_params,
|
|
2345
4243
|
:form_params => form_params,
|
|
@@ -2350,12 +4248,12 @@ module PharmaObservatory
|
|
|
2350
4248
|
|
|
2351
4249
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2352
4250
|
if @api_client.config.debugging
|
|
2353
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
4251
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_pdufa_dates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2354
4252
|
end
|
|
2355
4253
|
return data, status_code, headers
|
|
2356
4254
|
end
|
|
2357
4255
|
|
|
2358
|
-
#
|
|
4256
|
+
# Program licensing candidates
|
|
2359
4257
|
# @param id [String]
|
|
2360
4258
|
# @param [Hash] opts the optional parameters
|
|
2361
4259
|
# @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.
|
|
@@ -2364,13 +4262,13 @@ module PharmaObservatory
|
|
|
2364
4262
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2365
4263
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2366
4264
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2367
|
-
# @return [
|
|
2368
|
-
def
|
|
2369
|
-
data, _status_code, _headers =
|
|
4265
|
+
# @return [ProgramLicensingCandidatesResponse]
|
|
4266
|
+
def companies_program_licensing_candidates(id, opts = {})
|
|
4267
|
+
data, _status_code, _headers = companies_program_licensing_candidates_with_http_info(id, opts)
|
|
2370
4268
|
data
|
|
2371
4269
|
end
|
|
2372
4270
|
|
|
2373
|
-
#
|
|
4271
|
+
# Program licensing candidates
|
|
2374
4272
|
# @param id [String]
|
|
2375
4273
|
# @param [Hash] opts the optional parameters
|
|
2376
4274
|
# @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.
|
|
@@ -2379,21 +4277,21 @@ module PharmaObservatory
|
|
|
2379
4277
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2380
4278
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2381
4279
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2382
|
-
# @return [Array<(
|
|
2383
|
-
def
|
|
4280
|
+
# @return [Array<(ProgramLicensingCandidatesResponse, Integer, Hash)>] ProgramLicensingCandidatesResponse data, response status code and response headers
|
|
4281
|
+
def companies_program_licensing_candidates_with_http_info(id, opts = {})
|
|
2384
4282
|
if @api_client.config.debugging
|
|
2385
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
4283
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_program_licensing_candidates ...'
|
|
2386
4284
|
end
|
|
2387
4285
|
# verify the required parameter 'id' is set
|
|
2388
4286
|
if @api_client.config.client_side_validation && id.nil?
|
|
2389
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.
|
|
4287
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_program_licensing_candidates"
|
|
2390
4288
|
end
|
|
2391
4289
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
2392
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
4290
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_program_licensing_candidates, must be smaller than or equal to 500.'
|
|
2393
4291
|
end
|
|
2394
4292
|
|
|
2395
4293
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
2396
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
4294
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_program_licensing_candidates, must be greater than or equal to 1.'
|
|
2397
4295
|
end
|
|
2398
4296
|
|
|
2399
4297
|
allowable_values = ["company", "group"]
|
|
@@ -2401,7 +4299,7 @@ module PharmaObservatory
|
|
|
2401
4299
|
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
2402
4300
|
end
|
|
2403
4301
|
# resource path
|
|
2404
|
-
local_var_path = '/api/v1/companies/{id}/
|
|
4302
|
+
local_var_path = '/api/v1/companies/{id}/program_licensing_candidates'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
2405
4303
|
|
|
2406
4304
|
# query parameters
|
|
2407
4305
|
query_params = opts[:query_params] || {}
|
|
@@ -2424,13 +4322,13 @@ module PharmaObservatory
|
|
|
2424
4322
|
post_body = opts[:debug_body]
|
|
2425
4323
|
|
|
2426
4324
|
# return_type
|
|
2427
|
-
return_type = opts[:debug_return_type] || '
|
|
4325
|
+
return_type = opts[:debug_return_type] || 'ProgramLicensingCandidatesResponse'
|
|
2428
4326
|
|
|
2429
4327
|
# auth_names
|
|
2430
4328
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
2431
4329
|
|
|
2432
4330
|
new_options = opts.merge(
|
|
2433
|
-
:operation => :"CompaniesApi.
|
|
4331
|
+
:operation => :"CompaniesApi.companies_program_licensing_candidates",
|
|
2434
4332
|
:header_params => header_params,
|
|
2435
4333
|
:query_params => query_params,
|
|
2436
4334
|
:form_params => form_params,
|
|
@@ -2441,46 +4339,58 @@ module PharmaObservatory
|
|
|
2441
4339
|
|
|
2442
4340
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2443
4341
|
if @api_client.config.debugging
|
|
2444
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
4342
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_program_licensing_candidates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2445
4343
|
end
|
|
2446
4344
|
return data, status_code, headers
|
|
2447
4345
|
end
|
|
2448
4346
|
|
|
2449
|
-
#
|
|
4347
|
+
# FDA recalls
|
|
4348
|
+
# @param id [String]
|
|
2450
4349
|
# @param [Hash] opts the optional parameters
|
|
2451
4350
|
# @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.
|
|
2452
4351
|
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
2453
4352
|
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2454
4353
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2455
4354
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2456
|
-
# @
|
|
2457
|
-
|
|
2458
|
-
|
|
4355
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
4356
|
+
# @return [RecallsResponse]
|
|
4357
|
+
def companies_recalls(id, opts = {})
|
|
4358
|
+
data, _status_code, _headers = companies_recalls_with_http_info(id, opts)
|
|
2459
4359
|
data
|
|
2460
4360
|
end
|
|
2461
4361
|
|
|
2462
|
-
#
|
|
4362
|
+
# FDA recalls
|
|
4363
|
+
# @param id [String]
|
|
2463
4364
|
# @param [Hash] opts the optional parameters
|
|
2464
4365
|
# @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.
|
|
2465
4366
|
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
2466
4367
|
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2467
4368
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2468
4369
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2469
|
-
# @
|
|
2470
|
-
|
|
4370
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
4371
|
+
# @return [Array<(RecallsResponse, Integer, Hash)>] RecallsResponse data, response status code and response headers
|
|
4372
|
+
def companies_recalls_with_http_info(id, opts = {})
|
|
2471
4373
|
if @api_client.config.debugging
|
|
2472
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
4374
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_recalls ...'
|
|
4375
|
+
end
|
|
4376
|
+
# verify the required parameter 'id' is set
|
|
4377
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
4378
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_recalls"
|
|
2473
4379
|
end
|
|
2474
4380
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
2475
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
4381
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_recalls, must be smaller than or equal to 500.'
|
|
2476
4382
|
end
|
|
2477
4383
|
|
|
2478
4384
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
2479
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
4385
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_recalls, must be greater than or equal to 1.'
|
|
2480
4386
|
end
|
|
2481
4387
|
|
|
4388
|
+
allowable_values = ["company", "group"]
|
|
4389
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
4390
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
4391
|
+
end
|
|
2482
4392
|
# resource path
|
|
2483
|
-
local_var_path = '/api/v1/companies'
|
|
4393
|
+
local_var_path = '/api/v1/companies/{id}/recalls'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
2484
4394
|
|
|
2485
4395
|
# query parameters
|
|
2486
4396
|
query_params = opts[:query_params] || {}
|
|
@@ -2489,6 +4399,7 @@ module PharmaObservatory
|
|
|
2489
4399
|
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
2490
4400
|
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
2491
4401
|
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
4402
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
2492
4403
|
|
|
2493
4404
|
# header parameters
|
|
2494
4405
|
header_params = opts[:header_params] || {}
|
|
@@ -2502,13 +4413,13 @@ module PharmaObservatory
|
|
|
2502
4413
|
post_body = opts[:debug_body]
|
|
2503
4414
|
|
|
2504
4415
|
# return_type
|
|
2505
|
-
return_type = opts[:debug_return_type] || '
|
|
4416
|
+
return_type = opts[:debug_return_type] || 'RecallsResponse'
|
|
2506
4417
|
|
|
2507
4418
|
# auth_names
|
|
2508
4419
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
2509
4420
|
|
|
2510
4421
|
new_options = opts.merge(
|
|
2511
|
-
:operation => :"CompaniesApi.
|
|
4422
|
+
:operation => :"CompaniesApi.companies_recalls",
|
|
2512
4423
|
:header_params => header_params,
|
|
2513
4424
|
:query_params => query_params,
|
|
2514
4425
|
:form_params => form_params,
|
|
@@ -2519,12 +4430,12 @@ module PharmaObservatory
|
|
|
2519
4430
|
|
|
2520
4431
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2521
4432
|
if @api_client.config.debugging
|
|
2522
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
4433
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_recalls\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2523
4434
|
end
|
|
2524
4435
|
return data, status_code, headers
|
|
2525
4436
|
end
|
|
2526
4437
|
|
|
2527
|
-
#
|
|
4438
|
+
# SBTi cross-check
|
|
2528
4439
|
# @param id [String]
|
|
2529
4440
|
# @param [Hash] opts the optional parameters
|
|
2530
4441
|
# @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.
|
|
@@ -2533,13 +4444,13 @@ module PharmaObservatory
|
|
|
2533
4444
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2534
4445
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2535
4446
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2536
|
-
# @return [
|
|
2537
|
-
def
|
|
2538
|
-
data, _status_code, _headers =
|
|
4447
|
+
# @return [SbtiCrosscheckResponse]
|
|
4448
|
+
def companies_sbti_crosscheck(id, opts = {})
|
|
4449
|
+
data, _status_code, _headers = companies_sbti_crosscheck_with_http_info(id, opts)
|
|
2539
4450
|
data
|
|
2540
4451
|
end
|
|
2541
4452
|
|
|
2542
|
-
#
|
|
4453
|
+
# SBTi cross-check
|
|
2543
4454
|
# @param id [String]
|
|
2544
4455
|
# @param [Hash] opts the optional parameters
|
|
2545
4456
|
# @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.
|
|
@@ -2548,21 +4459,21 @@ module PharmaObservatory
|
|
|
2548
4459
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2549
4460
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2550
4461
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2551
|
-
# @return [Array<(
|
|
2552
|
-
def
|
|
4462
|
+
# @return [Array<(SbtiCrosscheckResponse, Integer, Hash)>] SbtiCrosscheckResponse data, response status code and response headers
|
|
4463
|
+
def companies_sbti_crosscheck_with_http_info(id, opts = {})
|
|
2553
4464
|
if @api_client.config.debugging
|
|
2554
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
4465
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_sbti_crosscheck ...'
|
|
2555
4466
|
end
|
|
2556
4467
|
# verify the required parameter 'id' is set
|
|
2557
4468
|
if @api_client.config.client_side_validation && id.nil?
|
|
2558
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.
|
|
4469
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_sbti_crosscheck"
|
|
2559
4470
|
end
|
|
2560
4471
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
2561
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
4472
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sbti_crosscheck, must be smaller than or equal to 500.'
|
|
2562
4473
|
end
|
|
2563
4474
|
|
|
2564
4475
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
2565
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
4476
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sbti_crosscheck, must be greater than or equal to 1.'
|
|
2566
4477
|
end
|
|
2567
4478
|
|
|
2568
4479
|
allowable_values = ["company", "group"]
|
|
@@ -2570,7 +4481,7 @@ module PharmaObservatory
|
|
|
2570
4481
|
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
2571
4482
|
end
|
|
2572
4483
|
# resource path
|
|
2573
|
-
local_var_path = '/api/v1/companies/{id}/
|
|
4484
|
+
local_var_path = '/api/v1/companies/{id}/sbti_crosscheck'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
2574
4485
|
|
|
2575
4486
|
# query parameters
|
|
2576
4487
|
query_params = opts[:query_params] || {}
|
|
@@ -2593,13 +4504,13 @@ module PharmaObservatory
|
|
|
2593
4504
|
post_body = opts[:debug_body]
|
|
2594
4505
|
|
|
2595
4506
|
# return_type
|
|
2596
|
-
return_type = opts[:debug_return_type] || '
|
|
4507
|
+
return_type = opts[:debug_return_type] || 'SbtiCrosscheckResponse'
|
|
2597
4508
|
|
|
2598
4509
|
# auth_names
|
|
2599
4510
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
2600
4511
|
|
|
2601
4512
|
new_options = opts.merge(
|
|
2602
|
-
:operation => :"CompaniesApi.
|
|
4513
|
+
:operation => :"CompaniesApi.companies_sbti_crosscheck",
|
|
2603
4514
|
:header_params => header_params,
|
|
2604
4515
|
:query_params => query_params,
|
|
2605
4516
|
:form_params => form_params,
|
|
@@ -2610,12 +4521,12 @@ module PharmaObservatory
|
|
|
2610
4521
|
|
|
2611
4522
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2612
4523
|
if @api_client.config.debugging
|
|
2613
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
4524
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_sbti_crosscheck\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2614
4525
|
end
|
|
2615
4526
|
return data, status_code, headers
|
|
2616
4527
|
end
|
|
2617
4528
|
|
|
2618
|
-
#
|
|
4529
|
+
# FDA dates disclosed in SEC filings
|
|
2619
4530
|
# @param id [String]
|
|
2620
4531
|
# @param [Hash] opts the optional parameters
|
|
2621
4532
|
# @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.
|
|
@@ -2624,13 +4535,13 @@ module PharmaObservatory
|
|
|
2624
4535
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2625
4536
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2626
4537
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2627
|
-
# @return [
|
|
2628
|
-
def
|
|
2629
|
-
data, _status_code, _headers =
|
|
4538
|
+
# @return [SecPdufaDatesResponse]
|
|
4539
|
+
def companies_sec_pdufa_dates(id, opts = {})
|
|
4540
|
+
data, _status_code, _headers = companies_sec_pdufa_dates_with_http_info(id, opts)
|
|
2630
4541
|
data
|
|
2631
4542
|
end
|
|
2632
4543
|
|
|
2633
|
-
#
|
|
4544
|
+
# FDA dates disclosed in SEC filings
|
|
2634
4545
|
# @param id [String]
|
|
2635
4546
|
# @param [Hash] opts the optional parameters
|
|
2636
4547
|
# @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.
|
|
@@ -2639,21 +4550,21 @@ module PharmaObservatory
|
|
|
2639
4550
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2640
4551
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2641
4552
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2642
|
-
# @return [Array<(
|
|
2643
|
-
def
|
|
4553
|
+
# @return [Array<(SecPdufaDatesResponse, Integer, Hash)>] SecPdufaDatesResponse data, response status code and response headers
|
|
4554
|
+
def companies_sec_pdufa_dates_with_http_info(id, opts = {})
|
|
2644
4555
|
if @api_client.config.debugging
|
|
2645
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
4556
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_sec_pdufa_dates ...'
|
|
2646
4557
|
end
|
|
2647
4558
|
# verify the required parameter 'id' is set
|
|
2648
4559
|
if @api_client.config.client_side_validation && id.nil?
|
|
2649
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.
|
|
4560
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_sec_pdufa_dates"
|
|
2650
4561
|
end
|
|
2651
4562
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
2652
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
4563
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sec_pdufa_dates, must be smaller than or equal to 500.'
|
|
2653
4564
|
end
|
|
2654
4565
|
|
|
2655
4566
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
2656
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
4567
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sec_pdufa_dates, must be greater than or equal to 1.'
|
|
2657
4568
|
end
|
|
2658
4569
|
|
|
2659
4570
|
allowable_values = ["company", "group"]
|
|
@@ -2661,7 +4572,7 @@ module PharmaObservatory
|
|
|
2661
4572
|
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
2662
4573
|
end
|
|
2663
4574
|
# resource path
|
|
2664
|
-
local_var_path = '/api/v1/companies/{id}/
|
|
4575
|
+
local_var_path = '/api/v1/companies/{id}/sec_pdufa_dates'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
2665
4576
|
|
|
2666
4577
|
# query parameters
|
|
2667
4578
|
query_params = opts[:query_params] || {}
|
|
@@ -2684,13 +4595,13 @@ module PharmaObservatory
|
|
|
2684
4595
|
post_body = opts[:debug_body]
|
|
2685
4596
|
|
|
2686
4597
|
# return_type
|
|
2687
|
-
return_type = opts[:debug_return_type] || '
|
|
4598
|
+
return_type = opts[:debug_return_type] || 'SecPdufaDatesResponse'
|
|
2688
4599
|
|
|
2689
4600
|
# auth_names
|
|
2690
4601
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
2691
4602
|
|
|
2692
4603
|
new_options = opts.merge(
|
|
2693
|
-
:operation => :"CompaniesApi.
|
|
4604
|
+
:operation => :"CompaniesApi.companies_sec_pdufa_dates",
|
|
2694
4605
|
:header_params => header_params,
|
|
2695
4606
|
:query_params => query_params,
|
|
2696
4607
|
:form_params => form_params,
|
|
@@ -2701,12 +4612,12 @@ module PharmaObservatory
|
|
|
2701
4612
|
|
|
2702
4613
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2703
4614
|
if @api_client.config.debugging
|
|
2704
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
4615
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_sec_pdufa_dates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2705
4616
|
end
|
|
2706
4617
|
return data, status_code, headers
|
|
2707
4618
|
end
|
|
2708
4619
|
|
|
2709
|
-
#
|
|
4620
|
+
# Sponsor delivery reliability
|
|
2710
4621
|
# @param id [String]
|
|
2711
4622
|
# @param [Hash] opts the optional parameters
|
|
2712
4623
|
# @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.
|
|
@@ -2715,13 +4626,13 @@ module PharmaObservatory
|
|
|
2715
4626
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2716
4627
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2717
4628
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2718
|
-
# @return [
|
|
2719
|
-
def
|
|
2720
|
-
data, _status_code, _headers =
|
|
4629
|
+
# @return [SponsorDeliveryResponse]
|
|
4630
|
+
def companies_sponsor_delivery(id, opts = {})
|
|
4631
|
+
data, _status_code, _headers = companies_sponsor_delivery_with_http_info(id, opts)
|
|
2721
4632
|
data
|
|
2722
4633
|
end
|
|
2723
4634
|
|
|
2724
|
-
#
|
|
4635
|
+
# Sponsor delivery reliability
|
|
2725
4636
|
# @param id [String]
|
|
2726
4637
|
# @param [Hash] opts the optional parameters
|
|
2727
4638
|
# @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.
|
|
@@ -2730,21 +4641,21 @@ module PharmaObservatory
|
|
|
2730
4641
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2731
4642
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2732
4643
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2733
|
-
# @return [Array<(
|
|
2734
|
-
def
|
|
4644
|
+
# @return [Array<(SponsorDeliveryResponse, Integer, Hash)>] SponsorDeliveryResponse data, response status code and response headers
|
|
4645
|
+
def companies_sponsor_delivery_with_http_info(id, opts = {})
|
|
2735
4646
|
if @api_client.config.debugging
|
|
2736
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
4647
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_sponsor_delivery ...'
|
|
2737
4648
|
end
|
|
2738
4649
|
# verify the required parameter 'id' is set
|
|
2739
4650
|
if @api_client.config.client_side_validation && id.nil?
|
|
2740
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.
|
|
4651
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_sponsor_delivery"
|
|
2741
4652
|
end
|
|
2742
4653
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
2743
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
4654
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_delivery, must be smaller than or equal to 500.'
|
|
2744
4655
|
end
|
|
2745
4656
|
|
|
2746
4657
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
2747
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
4658
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_delivery, must be greater than or equal to 1.'
|
|
2748
4659
|
end
|
|
2749
4660
|
|
|
2750
4661
|
allowable_values = ["company", "group"]
|
|
@@ -2752,7 +4663,7 @@ module PharmaObservatory
|
|
|
2752
4663
|
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
2753
4664
|
end
|
|
2754
4665
|
# resource path
|
|
2755
|
-
local_var_path = '/api/v1/companies/{id}/
|
|
4666
|
+
local_var_path = '/api/v1/companies/{id}/sponsor_delivery'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
2756
4667
|
|
|
2757
4668
|
# query parameters
|
|
2758
4669
|
query_params = opts[:query_params] || {}
|
|
@@ -2775,13 +4686,13 @@ module PharmaObservatory
|
|
|
2775
4686
|
post_body = opts[:debug_body]
|
|
2776
4687
|
|
|
2777
4688
|
# return_type
|
|
2778
|
-
return_type = opts[:debug_return_type] || '
|
|
4689
|
+
return_type = opts[:debug_return_type] || 'SponsorDeliveryResponse'
|
|
2779
4690
|
|
|
2780
4691
|
# auth_names
|
|
2781
4692
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
2782
4693
|
|
|
2783
4694
|
new_options = opts.merge(
|
|
2784
|
-
:operation => :"CompaniesApi.
|
|
4695
|
+
:operation => :"CompaniesApi.companies_sponsor_delivery",
|
|
2785
4696
|
:header_params => header_params,
|
|
2786
4697
|
:query_params => query_params,
|
|
2787
4698
|
:form_params => form_params,
|
|
@@ -2792,12 +4703,12 @@ module PharmaObservatory
|
|
|
2792
4703
|
|
|
2793
4704
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2794
4705
|
if @api_client.config.debugging
|
|
2795
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
4706
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_sponsor_delivery\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2796
4707
|
end
|
|
2797
4708
|
return data, status_code, headers
|
|
2798
4709
|
end
|
|
2799
4710
|
|
|
2800
|
-
#
|
|
4711
|
+
# Sponsor patent mentions
|
|
2801
4712
|
# @param id [String]
|
|
2802
4713
|
# @param [Hash] opts the optional parameters
|
|
2803
4714
|
# @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.
|
|
@@ -2806,13 +4717,13 @@ module PharmaObservatory
|
|
|
2806
4717
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2807
4718
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2808
4719
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2809
|
-
# @return [
|
|
2810
|
-
def
|
|
2811
|
-
data, _status_code, _headers =
|
|
4720
|
+
# @return [SponsorPatentMentionsResponse]
|
|
4721
|
+
def companies_sponsor_patent_mentions(id, opts = {})
|
|
4722
|
+
data, _status_code, _headers = companies_sponsor_patent_mentions_with_http_info(id, opts)
|
|
2812
4723
|
data
|
|
2813
4724
|
end
|
|
2814
4725
|
|
|
2815
|
-
#
|
|
4726
|
+
# Sponsor patent mentions
|
|
2816
4727
|
# @param id [String]
|
|
2817
4728
|
# @param [Hash] opts the optional parameters
|
|
2818
4729
|
# @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.
|
|
@@ -2821,21 +4732,21 @@ module PharmaObservatory
|
|
|
2821
4732
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2822
4733
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2823
4734
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2824
|
-
# @return [Array<(
|
|
2825
|
-
def
|
|
4735
|
+
# @return [Array<(SponsorPatentMentionsResponse, Integer, Hash)>] SponsorPatentMentionsResponse data, response status code and response headers
|
|
4736
|
+
def companies_sponsor_patent_mentions_with_http_info(id, opts = {})
|
|
2826
4737
|
if @api_client.config.debugging
|
|
2827
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
4738
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_sponsor_patent_mentions ...'
|
|
2828
4739
|
end
|
|
2829
4740
|
# verify the required parameter 'id' is set
|
|
2830
4741
|
if @api_client.config.client_side_validation && id.nil?
|
|
2831
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.
|
|
4742
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_sponsor_patent_mentions"
|
|
2832
4743
|
end
|
|
2833
4744
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
2834
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
4745
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_patent_mentions, must be smaller than or equal to 500.'
|
|
2835
4746
|
end
|
|
2836
4747
|
|
|
2837
4748
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
2838
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
4749
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_patent_mentions, must be greater than or equal to 1.'
|
|
2839
4750
|
end
|
|
2840
4751
|
|
|
2841
4752
|
allowable_values = ["company", "group"]
|
|
@@ -2843,7 +4754,7 @@ module PharmaObservatory
|
|
|
2843
4754
|
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
2844
4755
|
end
|
|
2845
4756
|
# resource path
|
|
2846
|
-
local_var_path = '/api/v1/companies/{id}/
|
|
4757
|
+
local_var_path = '/api/v1/companies/{id}/sponsor_patent_mentions'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
2847
4758
|
|
|
2848
4759
|
# query parameters
|
|
2849
4760
|
query_params = opts[:query_params] || {}
|
|
@@ -2866,13 +4777,13 @@ module PharmaObservatory
|
|
|
2866
4777
|
post_body = opts[:debug_body]
|
|
2867
4778
|
|
|
2868
4779
|
# return_type
|
|
2869
|
-
return_type = opts[:debug_return_type] || '
|
|
4780
|
+
return_type = opts[:debug_return_type] || 'SponsorPatentMentionsResponse'
|
|
2870
4781
|
|
|
2871
4782
|
# auth_names
|
|
2872
4783
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
2873
4784
|
|
|
2874
4785
|
new_options = opts.merge(
|
|
2875
|
-
:operation => :"CompaniesApi.
|
|
4786
|
+
:operation => :"CompaniesApi.companies_sponsor_patent_mentions",
|
|
2876
4787
|
:header_params => header_params,
|
|
2877
4788
|
:query_params => query_params,
|
|
2878
4789
|
:form_params => form_params,
|
|
@@ -2883,12 +4794,12 @@ module PharmaObservatory
|
|
|
2883
4794
|
|
|
2884
4795
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2885
4796
|
if @api_client.config.debugging
|
|
2886
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
4797
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_sponsor_patent_mentions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2887
4798
|
end
|
|
2888
4799
|
return data, status_code, headers
|
|
2889
4800
|
end
|
|
2890
4801
|
|
|
2891
|
-
#
|
|
4802
|
+
# Publications of a company's trials
|
|
2892
4803
|
# @param id [String]
|
|
2893
4804
|
# @param [Hash] opts the optional parameters
|
|
2894
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.
|
|
@@ -2897,13 +4808,13 @@ module PharmaObservatory
|
|
|
2897
4808
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2898
4809
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2899
4810
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2900
|
-
# @return [
|
|
2901
|
-
def
|
|
2902
|
-
data, _status_code, _headers =
|
|
4811
|
+
# @return [SponsorPublicationsResponse]
|
|
4812
|
+
def companies_sponsor_publications(id, opts = {})
|
|
4813
|
+
data, _status_code, _headers = companies_sponsor_publications_with_http_info(id, opts)
|
|
2903
4814
|
data
|
|
2904
4815
|
end
|
|
2905
4816
|
|
|
2906
|
-
#
|
|
4817
|
+
# Publications of a company's trials
|
|
2907
4818
|
# @param id [String]
|
|
2908
4819
|
# @param [Hash] opts the optional parameters
|
|
2909
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.
|
|
@@ -2912,21 +4823,21 @@ module PharmaObservatory
|
|
|
2912
4823
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2913
4824
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2914
4825
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2915
|
-
# @return [Array<(
|
|
2916
|
-
def
|
|
4826
|
+
# @return [Array<(SponsorPublicationsResponse, Integer, Hash)>] SponsorPublicationsResponse data, response status code and response headers
|
|
4827
|
+
def companies_sponsor_publications_with_http_info(id, opts = {})
|
|
2917
4828
|
if @api_client.config.debugging
|
|
2918
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
4829
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_sponsor_publications ...'
|
|
2919
4830
|
end
|
|
2920
4831
|
# verify the required parameter 'id' is set
|
|
2921
4832
|
if @api_client.config.client_side_validation && id.nil?
|
|
2922
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.
|
|
4833
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_sponsor_publications"
|
|
2923
4834
|
end
|
|
2924
4835
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
2925
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
4836
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_publications, must be smaller than or equal to 500.'
|
|
2926
4837
|
end
|
|
2927
4838
|
|
|
2928
4839
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
2929
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
4840
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_publications, must be greater than or equal to 1.'
|
|
2930
4841
|
end
|
|
2931
4842
|
|
|
2932
4843
|
allowable_values = ["company", "group"]
|
|
@@ -2934,7 +4845,7 @@ module PharmaObservatory
|
|
|
2934
4845
|
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
2935
4846
|
end
|
|
2936
4847
|
# resource path
|
|
2937
|
-
local_var_path = '/api/v1/companies/{id}/
|
|
4848
|
+
local_var_path = '/api/v1/companies/{id}/sponsor_publications'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
2938
4849
|
|
|
2939
4850
|
# query parameters
|
|
2940
4851
|
query_params = opts[:query_params] || {}
|
|
@@ -2957,13 +4868,13 @@ module PharmaObservatory
|
|
|
2957
4868
|
post_body = opts[:debug_body]
|
|
2958
4869
|
|
|
2959
4870
|
# return_type
|
|
2960
|
-
return_type = opts[:debug_return_type] || '
|
|
4871
|
+
return_type = opts[:debug_return_type] || 'SponsorPublicationsResponse'
|
|
2961
4872
|
|
|
2962
4873
|
# auth_names
|
|
2963
4874
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
2964
4875
|
|
|
2965
4876
|
new_options = opts.merge(
|
|
2966
|
-
:operation => :"CompaniesApi.
|
|
4877
|
+
:operation => :"CompaniesApi.companies_sponsor_publications",
|
|
2967
4878
|
:header_params => header_params,
|
|
2968
4879
|
:query_params => query_params,
|
|
2969
4880
|
:form_params => form_params,
|
|
@@ -2974,12 +4885,12 @@ module PharmaObservatory
|
|
|
2974
4885
|
|
|
2975
4886
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2976
4887
|
if @api_client.config.debugging
|
|
2977
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
4888
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_sponsor_publications\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2978
4889
|
end
|
|
2979
4890
|
return data, status_code, headers
|
|
2980
4891
|
end
|
|
2981
4892
|
|
|
2982
|
-
#
|
|
4893
|
+
# Trial recruitment duration by sponsor and phase
|
|
2983
4894
|
# @param id [String]
|
|
2984
4895
|
# @param [Hash] opts the optional parameters
|
|
2985
4896
|
# @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.
|
|
@@ -2988,13 +4899,13 @@ module PharmaObservatory
|
|
|
2988
4899
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2989
4900
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2990
4901
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2991
|
-
# @return [
|
|
2992
|
-
def
|
|
2993
|
-
data, _status_code, _headers =
|
|
4902
|
+
# @return [SponsorRecruitmentByPhaseResponse]
|
|
4903
|
+
def companies_sponsor_recruitment_by_phase(id, opts = {})
|
|
4904
|
+
data, _status_code, _headers = companies_sponsor_recruitment_by_phase_with_http_info(id, opts)
|
|
2994
4905
|
data
|
|
2995
4906
|
end
|
|
2996
4907
|
|
|
2997
|
-
#
|
|
4908
|
+
# Trial recruitment duration by sponsor and phase
|
|
2998
4909
|
# @param id [String]
|
|
2999
4910
|
# @param [Hash] opts the optional parameters
|
|
3000
4911
|
# @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.
|
|
@@ -3003,21 +4914,21 @@ module PharmaObservatory
|
|
|
3003
4914
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3004
4915
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3005
4916
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3006
|
-
# @return [Array<(
|
|
3007
|
-
def
|
|
4917
|
+
# @return [Array<(SponsorRecruitmentByPhaseResponse, Integer, Hash)>] SponsorRecruitmentByPhaseResponse data, response status code and response headers
|
|
4918
|
+
def companies_sponsor_recruitment_by_phase_with_http_info(id, opts = {})
|
|
3008
4919
|
if @api_client.config.debugging
|
|
3009
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
4920
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_sponsor_recruitment_by_phase ...'
|
|
3010
4921
|
end
|
|
3011
4922
|
# verify the required parameter 'id' is set
|
|
3012
4923
|
if @api_client.config.client_side_validation && id.nil?
|
|
3013
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.
|
|
4924
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_sponsor_recruitment_by_phase"
|
|
3014
4925
|
end
|
|
3015
4926
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
3016
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
4927
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_recruitment_by_phase, must be smaller than or equal to 500.'
|
|
3017
4928
|
end
|
|
3018
4929
|
|
|
3019
4930
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
3020
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
4931
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_recruitment_by_phase, must be greater than or equal to 1.'
|
|
3021
4932
|
end
|
|
3022
4933
|
|
|
3023
4934
|
allowable_values = ["company", "group"]
|
|
@@ -3025,7 +4936,7 @@ module PharmaObservatory
|
|
|
3025
4936
|
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
3026
4937
|
end
|
|
3027
4938
|
# resource path
|
|
3028
|
-
local_var_path = '/api/v1/companies/{id}/
|
|
4939
|
+
local_var_path = '/api/v1/companies/{id}/sponsor_recruitment_by_phase'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
3029
4940
|
|
|
3030
4941
|
# query parameters
|
|
3031
4942
|
query_params = opts[:query_params] || {}
|
|
@@ -3048,13 +4959,13 @@ module PharmaObservatory
|
|
|
3048
4959
|
post_body = opts[:debug_body]
|
|
3049
4960
|
|
|
3050
4961
|
# return_type
|
|
3051
|
-
return_type = opts[:debug_return_type] || '
|
|
4962
|
+
return_type = opts[:debug_return_type] || 'SponsorRecruitmentByPhaseResponse'
|
|
3052
4963
|
|
|
3053
4964
|
# auth_names
|
|
3054
4965
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
3055
4966
|
|
|
3056
4967
|
new_options = opts.merge(
|
|
3057
|
-
:operation => :"CompaniesApi.
|
|
4968
|
+
:operation => :"CompaniesApi.companies_sponsor_recruitment_by_phase",
|
|
3058
4969
|
:header_params => header_params,
|
|
3059
4970
|
:query_params => query_params,
|
|
3060
4971
|
:form_params => form_params,
|
|
@@ -3065,12 +4976,12 @@ module PharmaObservatory
|
|
|
3065
4976
|
|
|
3066
4977
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
3067
4978
|
if @api_client.config.debugging
|
|
3068
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
4979
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_sponsor_recruitment_by_phase\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3069
4980
|
end
|
|
3070
4981
|
return data, status_code, headers
|
|
3071
4982
|
end
|
|
3072
4983
|
|
|
3073
|
-
#
|
|
4984
|
+
# Trial recruitment duration by sponsor
|
|
3074
4985
|
# @param id [String]
|
|
3075
4986
|
# @param [Hash] opts the optional parameters
|
|
3076
4987
|
# @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.
|
|
@@ -3079,13 +4990,13 @@ module PharmaObservatory
|
|
|
3079
4990
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3080
4991
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3081
4992
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3082
|
-
# @return [
|
|
3083
|
-
def
|
|
3084
|
-
data, _status_code, _headers =
|
|
4993
|
+
# @return [SponsorRecruitmentDurationResponse]
|
|
4994
|
+
def companies_sponsor_recruitment_duration(id, opts = {})
|
|
4995
|
+
data, _status_code, _headers = companies_sponsor_recruitment_duration_with_http_info(id, opts)
|
|
3085
4996
|
data
|
|
3086
4997
|
end
|
|
3087
4998
|
|
|
3088
|
-
#
|
|
4999
|
+
# Trial recruitment duration by sponsor
|
|
3089
5000
|
# @param id [String]
|
|
3090
5001
|
# @param [Hash] opts the optional parameters
|
|
3091
5002
|
# @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.
|
|
@@ -3094,21 +5005,21 @@ module PharmaObservatory
|
|
|
3094
5005
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3095
5006
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3096
5007
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3097
|
-
# @return [Array<(
|
|
3098
|
-
def
|
|
5008
|
+
# @return [Array<(SponsorRecruitmentDurationResponse, Integer, Hash)>] SponsorRecruitmentDurationResponse data, response status code and response headers
|
|
5009
|
+
def companies_sponsor_recruitment_duration_with_http_info(id, opts = {})
|
|
3099
5010
|
if @api_client.config.debugging
|
|
3100
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
5011
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_sponsor_recruitment_duration ...'
|
|
3101
5012
|
end
|
|
3102
5013
|
# verify the required parameter 'id' is set
|
|
3103
5014
|
if @api_client.config.client_side_validation && id.nil?
|
|
3104
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.
|
|
5015
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_sponsor_recruitment_duration"
|
|
3105
5016
|
end
|
|
3106
5017
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
3107
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
5018
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_recruitment_duration, must be smaller than or equal to 500.'
|
|
3108
5019
|
end
|
|
3109
5020
|
|
|
3110
5021
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
3111
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
5022
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_recruitment_duration, must be greater than or equal to 1.'
|
|
3112
5023
|
end
|
|
3113
5024
|
|
|
3114
5025
|
allowable_values = ["company", "group"]
|
|
@@ -3116,7 +5027,7 @@ module PharmaObservatory
|
|
|
3116
5027
|
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
3117
5028
|
end
|
|
3118
5029
|
# resource path
|
|
3119
|
-
local_var_path = '/api/v1/companies/{id}/
|
|
5030
|
+
local_var_path = '/api/v1/companies/{id}/sponsor_recruitment_duration'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
3120
5031
|
|
|
3121
5032
|
# query parameters
|
|
3122
5033
|
query_params = opts[:query_params] || {}
|
|
@@ -3139,13 +5050,13 @@ module PharmaObservatory
|
|
|
3139
5050
|
post_body = opts[:debug_body]
|
|
3140
5051
|
|
|
3141
5052
|
# return_type
|
|
3142
|
-
return_type = opts[:debug_return_type] || '
|
|
5053
|
+
return_type = opts[:debug_return_type] || 'SponsorRecruitmentDurationResponse'
|
|
3143
5054
|
|
|
3144
5055
|
# auth_names
|
|
3145
5056
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
3146
5057
|
|
|
3147
5058
|
new_options = opts.merge(
|
|
3148
|
-
:operation => :"CompaniesApi.
|
|
5059
|
+
:operation => :"CompaniesApi.companies_sponsor_recruitment_duration",
|
|
3149
5060
|
:header_params => header_params,
|
|
3150
5061
|
:query_params => query_params,
|
|
3151
5062
|
:form_params => form_params,
|
|
@@ -3156,12 +5067,12 @@ module PharmaObservatory
|
|
|
3156
5067
|
|
|
3157
5068
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
3158
5069
|
if @api_client.config.debugging
|
|
3159
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
5070
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_sponsor_recruitment_duration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3160
5071
|
end
|
|
3161
5072
|
return data, status_code, headers
|
|
3162
5073
|
end
|
|
3163
5074
|
|
|
3164
|
-
#
|
|
5075
|
+
# Sponsor trial conditions
|
|
3165
5076
|
# @param id [String]
|
|
3166
5077
|
# @param [Hash] opts the optional parameters
|
|
3167
5078
|
# @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.
|
|
@@ -3170,13 +5081,13 @@ module PharmaObservatory
|
|
|
3170
5081
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3171
5082
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3172
5083
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3173
|
-
# @return [
|
|
3174
|
-
def
|
|
3175
|
-
data, _status_code, _headers =
|
|
5084
|
+
# @return [SponsorTrialConditionsResponse]
|
|
5085
|
+
def companies_sponsor_trial_conditions(id, opts = {})
|
|
5086
|
+
data, _status_code, _headers = companies_sponsor_trial_conditions_with_http_info(id, opts)
|
|
3176
5087
|
data
|
|
3177
5088
|
end
|
|
3178
5089
|
|
|
3179
|
-
#
|
|
5090
|
+
# Sponsor trial conditions
|
|
3180
5091
|
# @param id [String]
|
|
3181
5092
|
# @param [Hash] opts the optional parameters
|
|
3182
5093
|
# @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.
|
|
@@ -3185,21 +5096,21 @@ module PharmaObservatory
|
|
|
3185
5096
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3186
5097
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3187
5098
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3188
|
-
# @return [Array<(
|
|
3189
|
-
def
|
|
5099
|
+
# @return [Array<(SponsorTrialConditionsResponse, Integer, Hash)>] SponsorTrialConditionsResponse data, response status code and response headers
|
|
5100
|
+
def companies_sponsor_trial_conditions_with_http_info(id, opts = {})
|
|
3190
5101
|
if @api_client.config.debugging
|
|
3191
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
5102
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_sponsor_trial_conditions ...'
|
|
3192
5103
|
end
|
|
3193
5104
|
# verify the required parameter 'id' is set
|
|
3194
5105
|
if @api_client.config.client_side_validation && id.nil?
|
|
3195
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.
|
|
5106
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_sponsor_trial_conditions"
|
|
3196
5107
|
end
|
|
3197
5108
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
3198
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
5109
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_trial_conditions, must be smaller than or equal to 500.'
|
|
3199
5110
|
end
|
|
3200
5111
|
|
|
3201
5112
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
3202
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
5113
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_trial_conditions, must be greater than or equal to 1.'
|
|
3203
5114
|
end
|
|
3204
5115
|
|
|
3205
5116
|
allowable_values = ["company", "group"]
|
|
@@ -3207,7 +5118,7 @@ module PharmaObservatory
|
|
|
3207
5118
|
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
3208
5119
|
end
|
|
3209
5120
|
# resource path
|
|
3210
|
-
local_var_path = '/api/v1/companies/{id}/
|
|
5121
|
+
local_var_path = '/api/v1/companies/{id}/sponsor_trial_conditions'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
3211
5122
|
|
|
3212
5123
|
# query parameters
|
|
3213
5124
|
query_params = opts[:query_params] || {}
|
|
@@ -3230,13 +5141,13 @@ module PharmaObservatory
|
|
|
3230
5141
|
post_body = opts[:debug_body]
|
|
3231
5142
|
|
|
3232
5143
|
# return_type
|
|
3233
|
-
return_type = opts[:debug_return_type] || '
|
|
5144
|
+
return_type = opts[:debug_return_type] || 'SponsorTrialConditionsResponse'
|
|
3234
5145
|
|
|
3235
5146
|
# auth_names
|
|
3236
5147
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
3237
5148
|
|
|
3238
5149
|
new_options = opts.merge(
|
|
3239
|
-
:operation => :"CompaniesApi.
|
|
5150
|
+
:operation => :"CompaniesApi.companies_sponsor_trial_conditions",
|
|
3240
5151
|
:header_params => header_params,
|
|
3241
5152
|
:query_params => query_params,
|
|
3242
5153
|
:form_params => form_params,
|
|
@@ -3247,12 +5158,12 @@ module PharmaObservatory
|
|
|
3247
5158
|
|
|
3248
5159
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
3249
5160
|
if @api_client.config.debugging
|
|
3250
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
5161
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_sponsor_trial_conditions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3251
5162
|
end
|
|
3252
5163
|
return data, status_code, headers
|
|
3253
5164
|
end
|
|
3254
5165
|
|
|
3255
|
-
#
|
|
5166
|
+
# Sponsor trial drugs
|
|
3256
5167
|
# @param id [String]
|
|
3257
5168
|
# @param [Hash] opts the optional parameters
|
|
3258
5169
|
# @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.
|
|
@@ -3261,13 +5172,13 @@ module PharmaObservatory
|
|
|
3261
5172
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3262
5173
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3263
5174
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3264
|
-
# @return [
|
|
3265
|
-
def
|
|
3266
|
-
data, _status_code, _headers =
|
|
5175
|
+
# @return [SponsorTrialDrugsResponse]
|
|
5176
|
+
def companies_sponsor_trial_drugs(id, opts = {})
|
|
5177
|
+
data, _status_code, _headers = companies_sponsor_trial_drugs_with_http_info(id, opts)
|
|
3267
5178
|
data
|
|
3268
5179
|
end
|
|
3269
5180
|
|
|
3270
|
-
#
|
|
5181
|
+
# Sponsor trial drugs
|
|
3271
5182
|
# @param id [String]
|
|
3272
5183
|
# @param [Hash] opts the optional parameters
|
|
3273
5184
|
# @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.
|
|
@@ -3276,21 +5187,21 @@ module PharmaObservatory
|
|
|
3276
5187
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3277
5188
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3278
5189
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3279
|
-
# @return [Array<(
|
|
3280
|
-
def
|
|
5190
|
+
# @return [Array<(SponsorTrialDrugsResponse, Integer, Hash)>] SponsorTrialDrugsResponse data, response status code and response headers
|
|
5191
|
+
def companies_sponsor_trial_drugs_with_http_info(id, opts = {})
|
|
3281
5192
|
if @api_client.config.debugging
|
|
3282
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
5193
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_sponsor_trial_drugs ...'
|
|
3283
5194
|
end
|
|
3284
5195
|
# verify the required parameter 'id' is set
|
|
3285
5196
|
if @api_client.config.client_side_validation && id.nil?
|
|
3286
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.
|
|
5197
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_sponsor_trial_drugs"
|
|
3287
5198
|
end
|
|
3288
5199
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
3289
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
5200
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_trial_drugs, must be smaller than or equal to 500.'
|
|
3290
5201
|
end
|
|
3291
5202
|
|
|
3292
5203
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
3293
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
5204
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_trial_drugs, must be greater than or equal to 1.'
|
|
3294
5205
|
end
|
|
3295
5206
|
|
|
3296
5207
|
allowable_values = ["company", "group"]
|
|
@@ -3298,7 +5209,7 @@ module PharmaObservatory
|
|
|
3298
5209
|
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
3299
5210
|
end
|
|
3300
5211
|
# resource path
|
|
3301
|
-
local_var_path = '/api/v1/companies/{id}/
|
|
5212
|
+
local_var_path = '/api/v1/companies/{id}/sponsor_trial_drugs'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
3302
5213
|
|
|
3303
5214
|
# query parameters
|
|
3304
5215
|
query_params = opts[:query_params] || {}
|
|
@@ -3321,13 +5232,13 @@ module PharmaObservatory
|
|
|
3321
5232
|
post_body = opts[:debug_body]
|
|
3322
5233
|
|
|
3323
5234
|
# return_type
|
|
3324
|
-
return_type = opts[:debug_return_type] || '
|
|
5235
|
+
return_type = opts[:debug_return_type] || 'SponsorTrialDrugsResponse'
|
|
3325
5236
|
|
|
3326
5237
|
# auth_names
|
|
3327
5238
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
3328
5239
|
|
|
3329
5240
|
new_options = opts.merge(
|
|
3330
|
-
:operation => :"CompaniesApi.
|
|
5241
|
+
:operation => :"CompaniesApi.companies_sponsor_trial_drugs",
|
|
3331
5242
|
:header_params => header_params,
|
|
3332
5243
|
:query_params => query_params,
|
|
3333
5244
|
:form_params => form_params,
|
|
@@ -3338,7 +5249,7 @@ module PharmaObservatory
|
|
|
3338
5249
|
|
|
3339
5250
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
3340
5251
|
if @api_client.config.debugging
|
|
3341
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
5252
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_sponsor_trial_drugs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3342
5253
|
end
|
|
3343
5254
|
return data, status_code, headers
|
|
3344
5255
|
end
|