pharmaobservatory 0.1.5 → 0.1.7
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 +379 -7
- data/docs/BiomarkerAssayEvidenceResponse.md +58 -0
- data/docs/{BiomarkerCdxAssertionsResponseBuild.md → BiomarkerAssayEvidenceResponseBuild.md} +2 -2
- data/docs/{BiomarkerCdxAssertionsResponseFreshness.md → BiomarkerAssayEvidenceResponseFreshness.md} +2 -2
- data/docs/{BiomarkerCdxAssertionsResponseScope.md → BiomarkerAssayEvidenceResponseScope.md} +2 -2
- data/docs/BiomarkerAssayEvidenceRow.md +68 -0
- data/docs/BiomarkerAssayWhitespaceResponse.md +58 -0
- data/docs/BiomarkerAssayWhitespaceRow.md +66 -0
- data/docs/BiomarkerBqpAssertionsResponse.md +3 -3
- data/docs/BiomarkerCdxAssertionsResponse.md +3 -3
- data/docs/BiomarkerEvidenceResponse.md +3 -3
- data/docs/BiomarkerLiteratureResponse.md +3 -3
- data/docs/BiomarkerPublishingCompaniesResponse.md +3 -3
- data/docs/BiomarkerPublishingCompaniesRow.md +9 -1
- data/docs/BiomarkerRelationsResponse.md +3 -3
- data/docs/BiomarkerSampleCoverageResponse.md +3 -3
- data/docs/BiomarkerSamplePrevalenceResponse.md +3 -3
- data/docs/BiomarkerValidationResponse.md +3 -3
- data/docs/BiomarkerVariantMentionsResponse.md +3 -3
- data/docs/BiomarkersApi.md +160 -0
- data/docs/BiomarkersRecord.md +2 -2
- data/docs/BiomarkersResponse.md +3 -3
- data/docs/BiomarkersRow.md +2 -0
- data/docs/BrandCompaniesResponse.md +58 -0
- data/docs/BrandCompaniesRow.md +50 -0
- data/docs/BrandRevenueResponse.md +58 -0
- data/docs/BrandRevenueRow.md +60 -0
- data/docs/CatalystsResponse.md +58 -0
- data/docs/CatalystsRow.md +90 -0
- data/docs/CellLinesRecord.md +2 -2
- data/docs/CellLinesResponse.md +3 -3
- data/docs/CliaCertificatesResponse.md +58 -0
- data/docs/CliaCertificatesRow.md +80 -0
- data/docs/CompaniesApi.md +1947 -143
- data/docs/CompaniesRecord.md +2 -2
- data/docs/CompaniesRecordAttributes.md +3 -1
- data/docs/CompaniesResponse.md +3 -3
- data/docs/CompaniesRow.md +1 -1
- data/docs/CompanyAssetsResponse.md +3 -3
- data/docs/CompanyFundingEventsResponse.md +3 -3
- data/docs/CompanyFundingEventsRow.md +3 -1
- data/docs/CompanyFundingSummaryResponse.md +3 -3
- data/docs/CompanyMembersResponse.md +3 -3
- data/docs/CompanyProgramsResponse.md +3 -3
- data/docs/CompanyTargetsResponse.md +3 -3
- data/docs/CompanyTargetsRow.md +5 -1
- data/docs/CompanyTrialGeographyResponse.md +58 -0
- data/docs/CompanyTrialGeographyRow.md +52 -0
- data/docs/CompanyTrialSitesResponse.md +58 -0
- data/docs/CompanyTrialSitesRow.md +52 -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/ConditionPrevalenceResponse.md +3 -3
- data/docs/ConditionPrevalenceRow.md +1 -1
- data/docs/ConditionPublicationsResponse.md +3 -3
- data/docs/ConditionRecruitmentByPhaseResponse.md +58 -0
- data/docs/ConditionRecruitmentByPhaseRow.md +50 -0
- data/docs/ConditionRecruitmentDurationResponse.md +58 -0
- data/docs/ConditionRecruitmentDurationRow.md +86 -0
- data/docs/ConditionSitesResponse.md +3 -3
- data/docs/ConditionTrialStartForecastResponse.md +58 -0
- data/docs/ConditionTrialStartForecastRow.md +70 -0
- data/docs/ConditionTrialsResponse.md +3 -3
- data/docs/ConditionTrialsRow.md +1 -1
- data/docs/ConditionsApi.md +560 -0
- data/docs/ConditionsRecord.md +2 -2
- data/docs/ConditionsRecordAttributes.md +3 -1
- data/docs/ConditionsResponse.md +3 -3
- data/docs/CroFootprintResponse.md +58 -0
- data/docs/CroFootprintRow.md +34 -0
- data/docs/CroTrialsResponse.md +58 -0
- data/docs/CroTrialsRow.md +46 -0
- data/docs/DebarmentsResponse.md +58 -0
- data/docs/DebarmentsRow.md +44 -0
- data/docs/DrugApprovalsResponse.md +58 -0
- data/docs/DrugApprovalsRow.md +28 -0
- data/docs/DrugAspCodesResponse.md +58 -0
- data/docs/DrugAspCodesRow.md +28 -0
- data/docs/DrugBrandsResponse.md +58 -0
- data/docs/DrugBrandsRow.md +60 -0
- data/docs/DrugCombinationsResponse.md +58 -0
- data/docs/DrugCombinationsRow.md +32 -0
- data/docs/DrugDeclaredPatentsResponse.md +58 -0
- data/docs/DrugDeclaredPatentsRow.md +58 -0
- data/docs/DrugLabelSafetyResponse.md +58 -0
- data/docs/DrugLabelSafetyRow.md +32 -0
- data/docs/DrugMedicareSpendResponse.md +58 -0
- data/docs/DrugMedicareSpendRow.md +28 -0
- data/docs/DrugPatentCliffResponse.md +3 -3
- data/docs/DrugPatentCliffRow.md +3 -1
- data/docs/DrugPatentMentionsResponse.md +58 -0
- data/docs/DrugPatentMentionsRow.md +28 -0
- data/docs/DrugPatentOwnersResponse.md +58 -0
- data/docs/DrugPatentOwnersRow.md +42 -0
- data/docs/DrugPricingResponse.md +58 -0
- data/docs/DrugPricingRow.md +32 -0
- data/docs/DrugRecallsResponse.md +58 -0
- data/docs/DrugRecallsRow.md +34 -0
- data/docs/DrugRegulatoryResponse.md +58 -0
- data/docs/DrugRegulatoryRow.md +38 -0
- data/docs/DrugSitesResponse.md +58 -0
- data/docs/DrugSitesRow.md +28 -0
- data/docs/DrugTargetsResponse.md +58 -0
- data/docs/DrugTargetsRow.md +36 -0
- data/docs/DrugTrialConditionsResponse.md +58 -0
- data/docs/DrugTrialConditionsRow.md +30 -0
- data/docs/DrugTrialsResponse.md +58 -0
- data/docs/DrugTrialsRow.md +58 -0
- data/docs/DrugVariantsResponse.md +58 -0
- data/docs/DrugVariantsRow.md +38 -0
- data/docs/DrugsApi.md +2153 -0
- data/docs/DrugsRecord.md +38 -0
- data/docs/DrugsRecordAttributes.md +20 -0
- data/docs/DrugsResponse.md +58 -0
- data/docs/DrugsRow.md +82 -0
- data/docs/EnforcementEventsResponse.md +58 -0
- data/docs/EnforcementEventsRow.md +64 -0
- data/docs/GxpFacilitiesResponse.md +58 -0
- data/docs/GxpFacilitiesRow.md +152 -0
- data/docs/HospitalBedsYearlyResponse.md +58 -0
- data/docs/HospitalBedsYearlyRow.md +28 -0
- data/docs/HospitalFacilityChangesResponse.md +58 -0
- data/docs/HospitalFacilityChangesRow.md +30 -0
- data/docs/HospitalsApi.md +393 -0
- data/docs/HospitalsRecord.md +38 -0
- data/docs/HospitalsResponse.md +58 -0
- data/docs/HospitalsRow.md +40 -0
- data/docs/ImportRefusalsResponse.md +58 -0
- data/docs/ImportRefusalsRow.md +60 -0
- data/docs/InspectionFindingsResponse.md +58 -0
- data/docs/InspectionFindingsRow.md +48 -0
- data/docs/InspectionsResponse.md +58 -0
- data/docs/InspectionsRow.md +60 -0
- data/docs/InstitutionalHoldingsResponse.md +3 -3
- data/docs/InstitutionalHoldingsRow.md +7 -1
- data/docs/InstitutionalQuarterTotalsResponse.md +58 -0
- data/docs/InstitutionalQuarterTotalsRow.md +58 -0
- data/docs/InvestorFundsResponse.md +58 -0
- data/docs/InvestorFundsRow.md +24 -0
- data/docs/InvestorPortfolioResponse.md +58 -0
- data/docs/InvestorPortfolioRow.md +42 -0
- data/docs/InvestorPrivateFundsResponse.md +58 -0
- data/docs/InvestorPrivateFundsRow.md +44 -0
- data/docs/InvestorsApi.md +633 -0
- data/docs/InvestorsRecord.md +38 -0
- data/docs/InvestorsResponse.md +58 -0
- data/docs/InvestorsRow.md +54 -0
- data/docs/LegalEntitiesApi.md +1595 -155
- data/docs/LegalEntitiesRecord.md +2 -2
- data/docs/LegalEntitiesRecordAttributes.md +2 -0
- data/docs/LegalEntitiesResponse.md +3 -3
- data/docs/LegalEntitiesRow.md +1 -1
- data/docs/ManagersApi.md +233 -0
- data/docs/ManagersRecord.md +38 -0
- data/docs/ManagersResponse.md +58 -0
- data/docs/ManagersRow.md +46 -0
- data/docs/OrgDisclosuresResponse.md +58 -0
- data/docs/OrgDisclosuresRow.md +56 -0
- data/docs/OrgRelationshipsResponse.md +58 -0
- data/docs/OrgRelationshipsRow.md +68 -0
- data/docs/OwnershipPercentagesResponse.md +58 -0
- data/docs/OwnershipPercentagesRow.md +74 -0
- data/docs/OwnershipPositionsResponse.md +3 -3
- data/docs/OwnershipPositionsRow.md +16 -14
- data/docs/PdufaDatesResponse.md +3 -3
- data/docs/PdufaDatesRow.md +1 -1
- data/docs/ProgramLicensingCandidatesResponse.md +58 -0
- data/docs/ProgramLicensingCandidatesRow.md +58 -0
- data/docs/ProgramsResponse.md +58 -0
- data/docs/ProgramsRow.md +46 -0
- data/docs/RareDiseaseGenesResponse.md +58 -0
- data/docs/RareDiseaseGenesRow.md +50 -0
- data/docs/RareDiseaseHierarchyResponse.md +58 -0
- data/docs/RareDiseaseHierarchyRow.md +40 -0
- data/docs/RareDiseaseInvestigatorCoverageResponse.md +58 -0
- data/docs/RareDiseaseInvestigatorCoverageRow.md +38 -0
- data/docs/RareDiseaseInvestigatorsResponse.md +58 -0
- data/docs/RareDiseaseInvestigatorsRow.md +56 -0
- data/docs/RareDiseaseMappingsResponse.md +58 -0
- data/docs/RareDiseaseMappingsRow.md +44 -0
- data/docs/RareDiseaseOrganizationsResponse.md +58 -0
- data/docs/RareDiseaseOrganizationsRow.md +60 -0
- data/docs/RareDiseasePrevalenceResponse.md +58 -0
- data/docs/RareDiseasePrevalenceRow.md +62 -0
- data/docs/RareDiseaseRarityEvidenceResponse.md +58 -0
- data/docs/RareDiseaseRarityEvidenceRow.md +36 -0
- data/docs/RareDiseaseRarityResponse.md +58 -0
- data/docs/RareDiseaseRarityRow.md +54 -0
- data/docs/RareDiseaseReplacementsResponse.md +58 -0
- data/docs/RareDiseaseReplacementsRow.md +40 -0
- data/docs/RareDiseaseSiteCoverageResponse.md +58 -0
- data/docs/RareDiseaseSiteCoverageRow.md +54 -0
- data/docs/RareDiseaseSponsorsResponse.md +58 -0
- data/docs/RareDiseaseSponsorsRow.md +82 -0
- data/docs/RareDiseaseTrialCoverageResponse.md +58 -0
- data/docs/RareDiseaseTrialCoverageRow.md +58 -0
- data/docs/RareDiseaseTrialSitesResponse.md +58 -0
- data/docs/RareDiseaseTrialSitesRow.md +52 -0
- data/docs/RareDiseaseTrialsResponse.md +58 -0
- data/docs/RareDiseaseTrialsRow.md +90 -0
- data/docs/RareDiseasesApi.md +1353 -0
- data/docs/RareDiseasesRecord.md +38 -0
- data/docs/RareDiseasesRecordAttributes.md +22 -0
- data/docs/RareDiseasesResponse.md +58 -0
- data/docs/RareDiseasesRow.md +68 -0
- data/docs/RecallsResponse.md +58 -0
- data/docs/RecallsRow.md +54 -0
- data/docs/RwdCoverageResponse.md +58 -0
- data/docs/RwdCoverageRow.md +52 -0
- data/docs/RwdRegisterProvenanceResponse.md +58 -0
- data/docs/RwdRegisterProvenanceRow.md +74 -0
- data/docs/RwdRegistersApi.md +313 -0
- data/docs/RwdRegistersRecord.md +38 -0
- data/docs/RwdSourceAgeBandsResponse.md +58 -0
- data/docs/RwdSourceAgeBandsRow.md +40 -0
- data/docs/RwdSourceConditionsResponse.md +58 -0
- data/docs/RwdSourceConditionsRow.md +68 -0
- data/docs/RwdSourceEtlMappingsResponse.md +58 -0
- data/docs/RwdSourceEtlMappingsRow.md +44 -0
- data/docs/RwdSourceLinkagesResponse.md +58 -0
- data/docs/RwdSourceLinkagesRow.md +64 -0
- data/docs/RwdSourceTypesResponse.md +58 -0
- data/docs/RwdSourceTypesRow.md +34 -0
- data/docs/RwdSourceVocabulariesResponse.md +58 -0
- data/docs/RwdSourceVocabulariesRow.md +42 -0
- data/docs/RwdSourcesApi.md +713 -0
- data/docs/RwdSourcesRecord.md +38 -0
- data/docs/RwdSourcesResponse.md +58 -0
- data/docs/RwdSourcesRow.md +280 -0
- data/docs/RwdStudiesApi.md +473 -0
- data/docs/RwdStudiesRecord.md +38 -0
- data/docs/RwdStudiesResponse.md +58 -0
- data/docs/RwdStudiesRow.md +180 -0
- data/docs/RwdStudyConditionsResponse.md +58 -0
- data/docs/RwdStudyConditionsRow.md +54 -0
- data/docs/RwdStudyDataSourcesResponse.md +58 -0
- data/docs/RwdStudyDataSourcesRow.md +54 -0
- data/docs/RwdStudyDrugsResponse.md +58 -0
- data/docs/RwdStudyDrugsRow.md +50 -0
- data/docs/RwdStudyMilestonesResponse.md +58 -0
- data/docs/RwdStudyMilestonesRow.md +54 -0
- data/docs/RwdWithheldFieldsResponse.md +58 -0
- data/docs/RwdWithheldFieldsRow.md +36 -0
- data/docs/SecPdufaDatesResponse.md +58 -0
- data/docs/SecPdufaDatesRow.md +64 -0
- 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/SponsorRecruitmentByPhaseResponse.md +3 -3
- data/docs/SponsorRecruitmentDurationResponse.md +3 -3
- data/docs/SponsorTrialStartForecastResponse.md +3 -3
- data/docs/SponsorTrialsResponse.md +3 -3
- data/docs/SponsorTrialsRow.md +1 -1
- data/docs/SupplierCapabilityEsgResponse.md +58 -0
- data/docs/SupplierCapabilityEsgRow.md +64 -0
- data/docs/SupplierServicesResponse.md +58 -0
- data/docs/SupplierServicesRow.md +30 -0
- data/docs/SupplierSitesResponse.md +58 -0
- data/docs/SupplierSitesRow.md +42 -0
- data/docs/SuppliersApi.md +313 -0
- data/docs/SuppliersRecord.md +38 -0
- data/docs/SuppliersResponse.md +58 -0
- data/docs/SuppliersRow.md +76 -0
- data/docs/TargetAssociationsResponse.md +58 -0
- data/docs/TargetAssociationsRow.md +26 -0
- data/docs/TargetCrowdingResponse.md +58 -0
- data/docs/TargetCrowdingRow.md +30 -0
- data/docs/TargetDrugsResponse.md +58 -0
- data/docs/TargetDrugsRow.md +38 -0
- data/docs/TargetEvidenceResponse.md +58 -0
- data/docs/TargetEvidenceRow.md +52 -0
- data/docs/TargetPatentMentionsResponse.md +58 -0
- data/docs/TargetPatentMentionsRow.md +34 -0
- data/docs/TargetProgramsResponse.md +58 -0
- data/docs/TargetProgramsRow.md +58 -0
- data/docs/TargetPublicationsResponse.md +58 -0
- data/docs/TargetPublicationsRow.md +32 -0
- data/docs/TargetRegulatoryPrecedentResponse.md +58 -0
- data/docs/TargetRegulatoryPrecedentRow.md +38 -0
- data/docs/TargetTrialsResponse.md +58 -0
- data/docs/TargetTrialsRow.md +46 -0
- data/docs/TargetsApi.md +1033 -0
- data/docs/TargetsRecord.md +38 -0
- data/docs/TargetsResponse.md +58 -0
- data/docs/TargetsRow.md +68 -0
- data/docs/TrialAdverseEventsResponse.md +3 -3
- data/docs/TrialChangesResponse.md +3 -3
- data/docs/TrialChangesRow.md +5 -1
- data/docs/TrialDeliveryResponse.md +3 -3
- data/docs/TrialDemographicsResponse.md +3 -3
- data/docs/TrialDrugClassesResponse.md +58 -0
- data/docs/TrialDrugClassesRow.md +28 -0
- 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 +58 -0
- data/docs/TrialKolsRow.md +32 -0
- data/docs/TrialOutcomeMeasuresResponse.md +3 -3
- data/docs/TrialResearchPaymentsResponse.md +58 -0
- data/docs/TrialResearchPaymentsRow.md +44 -0
- data/docs/TrialSiteHistoryResponse.md +58 -0
- data/docs/TrialSiteHistoryRow.md +50 -0
- data/docs/TrialSitesResponse.md +3 -3
- data/docs/TrialsApi.md +400 -0
- data/docs/TrialsRecord.md +2 -2
- data/docs/TrialsResponse.md +3 -3
- data/docs/TrialsRow.md +9 -1
- data/docs/UnmatchedProductRevenueResponse.md +58 -0
- data/docs/UnmatchedProductRevenueRow.md +80 -0
- data/docs/UntitledLettersResponse.md +58 -0
- data/docs/UntitledLettersRow.md +44 -0
- data/docs/WarningLettersResponse.md +58 -0
- data/docs/WarningLettersRow.md +50 -0
- data/lib/pharmaobservatory/api/biomarkers_api.rb +168 -0
- data/lib/pharmaobservatory/api/companies_api.rb +2164 -162
- data/lib/pharmaobservatory/api/conditions_api.rb +588 -0
- data/lib/pharmaobservatory/api/drugs_api.rb +2261 -0
- data/lib/pharmaobservatory/api/hospitals_api.rb +413 -0
- data/lib/pharmaobservatory/api/investors_api.rb +665 -0
- data/lib/pharmaobservatory/api/legal_entities_api.rb +1670 -158
- data/lib/pharmaobservatory/api/managers_api.rb +245 -0
- data/lib/pharmaobservatory/api/rare_diseases_api.rb +1421 -0
- data/lib/pharmaobservatory/api/rwd_registers_api.rb +329 -0
- data/lib/pharmaobservatory/api/rwd_sources_api.rb +749 -0
- data/lib/pharmaobservatory/api/rwd_studies_api.rb +497 -0
- data/lib/pharmaobservatory/api/suppliers_api.rb +329 -0
- data/lib/pharmaobservatory/api/targets_api.rb +1085 -0
- data/lib/pharmaobservatory/api/trials_api.rb +420 -0
- data/lib/pharmaobservatory/models/biomarker_assay_evidence_response.rb +478 -0
- data/lib/pharmaobservatory/models/{biomarker_cdx_assertions_response_build.rb → biomarker_assay_evidence_response_build.rb} +3 -3
- data/lib/pharmaobservatory/models/{biomarker_cdx_assertions_response_freshness.rb → biomarker_assay_evidence_response_freshness.rb} +3 -3
- data/lib/pharmaobservatory/models/{biomarker_cdx_assertions_response_scope.rb → biomarker_assay_evidence_response_scope.rb} +3 -3
- data/lib/pharmaobservatory/models/biomarker_assay_evidence_row.rb +506 -0
- data/lib/pharmaobservatory/models/biomarker_assay_whitespace_response.rb +478 -0
- data/lib/pharmaobservatory/models/biomarker_assay_whitespace_row.rb +499 -0
- 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_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_publishing_companies_row.rb +49 -5
- 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_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/biomarkers_row.rb +12 -1
- data/lib/pharmaobservatory/models/brand_companies_response.rb +478 -0
- data/lib/pharmaobservatory/models/brand_companies_row.rb +401 -0
- data/lib/pharmaobservatory/models/brand_revenue_response.rb +478 -0
- data/lib/pharmaobservatory/models/brand_revenue_row.rb +454 -0
- data/lib/pharmaobservatory/models/catalysts_response.rb +478 -0
- data/lib/pharmaobservatory/models/catalysts_row.rb +623 -0
- 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 +478 -0
- data/lib/pharmaobservatory/models/clia_certificates_row.rb +568 -0
- data/lib/pharmaobservatory/models/companies_record.rb +2 -2
- data/lib/pharmaobservatory/models/companies_record_attributes.rb +13 -4
- data/lib/pharmaobservatory/models/companies_response.rb +3 -3
- data/lib/pharmaobservatory/models/companies_row.rb +1 -1
- data/lib/pharmaobservatory/models/company_assets_response.rb +3 -3
- data/lib/pharmaobservatory/models/company_funding_events_response.rb +3 -3
- data/lib/pharmaobservatory/models/company_funding_events_row.rb +13 -2
- 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_targets_response.rb +3 -3
- data/lib/pharmaobservatory/models/company_targets_row.rb +27 -5
- data/lib/pharmaobservatory/models/company_trial_geography_response.rb +478 -0
- data/lib/pharmaobservatory/models/company_trial_geography_row.rb +410 -0
- data/lib/pharmaobservatory/models/company_trial_sites_response.rb +478 -0
- data/lib/pharmaobservatory/models/company_trial_sites_row.rb +410 -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_prevalence_response.rb +3 -3
- data/lib/pharmaobservatory/models/condition_prevalence_row.rb +1 -1
- data/lib/pharmaobservatory/models/condition_publications_response.rb +3 -3
- data/lib/pharmaobservatory/models/condition_recruitment_by_phase_response.rb +478 -0
- data/lib/pharmaobservatory/models/condition_recruitment_by_phase_row.rb +399 -0
- data/lib/pharmaobservatory/models/condition_recruitment_duration_response.rb +478 -0
- data/lib/pharmaobservatory/models/condition_recruitment_duration_row.rb +597 -0
- data/lib/pharmaobservatory/models/condition_sites_response.rb +3 -3
- data/lib/pharmaobservatory/models/condition_trial_start_forecast_response.rb +478 -0
- data/lib/pharmaobservatory/models/condition_trial_start_forecast_row.rb +509 -0
- data/lib/pharmaobservatory/models/condition_trials_response.rb +3 -3
- data/lib/pharmaobservatory/models/condition_trials_row.rb +1 -1
- data/lib/pharmaobservatory/models/conditions_record.rb +2 -2
- data/lib/pharmaobservatory/models/conditions_record_attributes.rb +13 -4
- data/lib/pharmaobservatory/models/conditions_response.rb +3 -3
- data/lib/pharmaobservatory/models/cro_footprint_response.rb +478 -0
- data/lib/pharmaobservatory/models/cro_footprint_row.rb +311 -0
- data/lib/pharmaobservatory/models/cro_trials_response.rb +478 -0
- data/lib/pharmaobservatory/models/cro_trials_row.rb +381 -0
- data/lib/pharmaobservatory/models/debarments_response.rb +478 -0
- data/lib/pharmaobservatory/models/debarments_row.rb +366 -0
- data/lib/pharmaobservatory/models/drug_approvals_response.rb +478 -0
- data/lib/pharmaobservatory/models/drug_approvals_row.rb +278 -0
- data/lib/pharmaobservatory/models/drug_asp_codes_response.rb +478 -0
- data/lib/pharmaobservatory/models/drug_asp_codes_row.rb +278 -0
- data/lib/pharmaobservatory/models/drug_brands_response.rb +478 -0
- data/lib/pharmaobservatory/models/drug_brands_row.rb +454 -0
- data/lib/pharmaobservatory/models/drug_combinations_response.rb +478 -0
- data/lib/pharmaobservatory/models/drug_combinations_row.rb +300 -0
- data/lib/pharmaobservatory/models/drug_declared_patents_response.rb +478 -0
- data/lib/pharmaobservatory/models/drug_declared_patents_row.rb +447 -0
- data/lib/pharmaobservatory/models/drug_label_safety_response.rb +478 -0
- data/lib/pharmaobservatory/models/drug_label_safety_row.rb +300 -0
- data/lib/pharmaobservatory/models/drug_medicare_spend_response.rb +478 -0
- data/lib/pharmaobservatory/models/drug_medicare_spend_row.rb +280 -0
- data/lib/pharmaobservatory/models/drug_patent_cliff_response.rb +3 -3
- data/lib/pharmaobservatory/models/drug_patent_cliff_row.rb +13 -2
- data/lib/pharmaobservatory/models/drug_patent_mentions_response.rb +478 -0
- data/lib/pharmaobservatory/models/drug_patent_mentions_row.rb +278 -0
- data/lib/pharmaobservatory/models/drug_patent_owners_response.rb +478 -0
- data/lib/pharmaobservatory/models/drug_patent_owners_row.rb +357 -0
- data/lib/pharmaobservatory/models/drug_pricing_response.rb +478 -0
- data/lib/pharmaobservatory/models/drug_pricing_row.rb +300 -0
- data/lib/pharmaobservatory/models/drug_recalls_response.rb +478 -0
- data/lib/pharmaobservatory/models/drug_recalls_row.rb +311 -0
- data/lib/pharmaobservatory/models/drug_regulatory_response.rb +478 -0
- data/lib/pharmaobservatory/models/drug_regulatory_row.rb +333 -0
- data/lib/pharmaobservatory/models/drug_sites_response.rb +478 -0
- data/lib/pharmaobservatory/models/drug_sites_row.rb +278 -0
- data/lib/pharmaobservatory/models/drug_targets_response.rb +478 -0
- data/lib/pharmaobservatory/models/drug_targets_row.rb +324 -0
- data/lib/pharmaobservatory/models/drug_trial_conditions_response.rb +478 -0
- data/lib/pharmaobservatory/models/drug_trial_conditions_row.rb +289 -0
- data/lib/pharmaobservatory/models/drug_trials_response.rb +478 -0
- data/lib/pharmaobservatory/models/drug_trials_row.rb +445 -0
- data/lib/pharmaobservatory/models/drug_variants_response.rb +478 -0
- data/lib/pharmaobservatory/models/drug_variants_row.rb +333 -0
- data/lib/pharmaobservatory/models/drugs_record.rb +385 -0
- data/lib/pharmaobservatory/models/drugs_record_attributes.rb +229 -0
- data/lib/pharmaobservatory/models/drugs_response.rb +478 -0
- data/lib/pharmaobservatory/models/drugs_row.rb +581 -0
- data/lib/pharmaobservatory/models/enforcement_events_response.rb +478 -0
- data/lib/pharmaobservatory/models/enforcement_events_row.rb +476 -0
- data/lib/pharmaobservatory/models/gxp_facilities_response.rb +478 -0
- data/lib/pharmaobservatory/models/gxp_facilities_row.rb +968 -0
- data/lib/pharmaobservatory/models/hospital_beds_yearly_response.rb +478 -0
- data/lib/pharmaobservatory/models/hospital_beds_yearly_row.rb +278 -0
- data/lib/pharmaobservatory/models/hospital_facility_changes_response.rb +478 -0
- data/lib/pharmaobservatory/models/hospital_facility_changes_row.rb +289 -0
- data/lib/pharmaobservatory/models/hospitals_record.rb +385 -0
- data/lib/pharmaobservatory/models/hospitals_response.rb +478 -0
- data/lib/pharmaobservatory/models/hospitals_row.rb +344 -0
- data/lib/pharmaobservatory/models/import_refusals_response.rb +478 -0
- data/lib/pharmaobservatory/models/import_refusals_row.rb +454 -0
- data/lib/pharmaobservatory/models/inspection_findings_response.rb +478 -0
- data/lib/pharmaobservatory/models/inspection_findings_row.rb +388 -0
- data/lib/pharmaobservatory/models/inspections_response.rb +478 -0
- data/lib/pharmaobservatory/models/inspections_row.rb +454 -0
- data/lib/pharmaobservatory/models/institutional_holdings_response.rb +3 -3
- data/lib/pharmaobservatory/models/institutional_holdings_row.rb +35 -2
- data/lib/pharmaobservatory/models/institutional_quarter_totals_response.rb +478 -0
- data/lib/pharmaobservatory/models/institutional_quarter_totals_row.rb +443 -0
- data/lib/pharmaobservatory/models/investor_funds_response.rb +478 -0
- data/lib/pharmaobservatory/models/investor_funds_row.rb +256 -0
- data/lib/pharmaobservatory/models/investor_portfolio_response.rb +478 -0
- data/lib/pharmaobservatory/models/investor_portfolio_row.rb +357 -0
- data/lib/pharmaobservatory/models/investor_private_funds_response.rb +478 -0
- data/lib/pharmaobservatory/models/investor_private_funds_row.rb +366 -0
- data/lib/pharmaobservatory/models/investors_record.rb +385 -0
- data/lib/pharmaobservatory/models/investors_response.rb +478 -0
- data/lib/pharmaobservatory/models/investors_row.rb +421 -0
- data/lib/pharmaobservatory/models/legal_entities_record.rb +2 -2
- data/lib/pharmaobservatory/models/legal_entities_record_attributes.rb +10 -1
- data/lib/pharmaobservatory/models/legal_entities_response.rb +3 -3
- data/lib/pharmaobservatory/models/legal_entities_row.rb +1 -1
- data/lib/pharmaobservatory/models/managers_record.rb +385 -0
- data/lib/pharmaobservatory/models/managers_response.rb +478 -0
- data/lib/pharmaobservatory/models/managers_row.rb +377 -0
- data/lib/pharmaobservatory/models/org_disclosures_response.rb +478 -0
- data/lib/pharmaobservatory/models/org_disclosures_row.rb +432 -0
- data/lib/pharmaobservatory/models/org_relationships_response.rb +478 -0
- data/lib/pharmaobservatory/models/org_relationships_row.rb +498 -0
- data/lib/pharmaobservatory/models/ownership_percentages_response.rb +478 -0
- data/lib/pharmaobservatory/models/ownership_percentages_row.rb +531 -0
- data/lib/pharmaobservatory/models/ownership_positions_response.rb +3 -3
- data/lib/pharmaobservatory/models/ownership_positions_row.rb +26 -15
- data/lib/pharmaobservatory/models/pdufa_dates_response.rb +3 -3
- data/lib/pharmaobservatory/models/pdufa_dates_row.rb +1 -1
- data/lib/pharmaobservatory/models/program_licensing_candidates_response.rb +478 -0
- data/lib/pharmaobservatory/models/program_licensing_candidates_row.rb +445 -0
- data/lib/pharmaobservatory/models/programs_response.rb +478 -0
- data/lib/pharmaobservatory/models/programs_row.rb +377 -0
- data/lib/pharmaobservatory/models/rare_disease_genes_response.rb +478 -0
- data/lib/pharmaobservatory/models/rare_disease_genes_row.rb +399 -0
- data/lib/pharmaobservatory/models/rare_disease_hierarchy_response.rb +478 -0
- data/lib/pharmaobservatory/models/rare_disease_hierarchy_row.rb +344 -0
- data/lib/pharmaobservatory/models/rare_disease_investigator_coverage_response.rb +478 -0
- data/lib/pharmaobservatory/models/rare_disease_investigator_coverage_row.rb +333 -0
- data/lib/pharmaobservatory/models/rare_disease_investigators_response.rb +478 -0
- data/lib/pharmaobservatory/models/rare_disease_investigators_row.rb +436 -0
- data/lib/pharmaobservatory/models/rare_disease_mappings_response.rb +478 -0
- data/lib/pharmaobservatory/models/rare_disease_mappings_row.rb +366 -0
- data/lib/pharmaobservatory/models/rare_disease_organizations_response.rb +478 -0
- data/lib/pharmaobservatory/models/rare_disease_organizations_row.rb +454 -0
- data/lib/pharmaobservatory/models/rare_disease_prevalence_response.rb +478 -0
- data/lib/pharmaobservatory/models/rare_disease_prevalence_row.rb +465 -0
- data/lib/pharmaobservatory/models/rare_disease_rarity_evidence_response.rb +478 -0
- data/lib/pharmaobservatory/models/rare_disease_rarity_evidence_row.rb +322 -0
- data/lib/pharmaobservatory/models/rare_disease_rarity_response.rb +478 -0
- data/lib/pharmaobservatory/models/rare_disease_rarity_row.rb +421 -0
- data/lib/pharmaobservatory/models/rare_disease_replacements_response.rb +478 -0
- data/lib/pharmaobservatory/models/rare_disease_replacements_row.rb +344 -0
- data/lib/pharmaobservatory/models/rare_disease_site_coverage_response.rb +478 -0
- data/lib/pharmaobservatory/models/rare_disease_site_coverage_row.rb +421 -0
- data/lib/pharmaobservatory/models/rare_disease_sponsors_response.rb +478 -0
- data/lib/pharmaobservatory/models/rare_disease_sponsors_row.rb +575 -0
- data/lib/pharmaobservatory/models/rare_disease_trial_coverage_response.rb +478 -0
- data/lib/pharmaobservatory/models/rare_disease_trial_coverage_row.rb +449 -0
- data/lib/pharmaobservatory/models/rare_disease_trial_sites_response.rb +478 -0
- data/lib/pharmaobservatory/models/rare_disease_trial_sites_row.rb +412 -0
- data/lib/pharmaobservatory/models/rare_disease_trials_response.rb +478 -0
- data/lib/pharmaobservatory/models/rare_disease_trials_row.rb +623 -0
- data/lib/pharmaobservatory/models/rare_diseases_record.rb +385 -0
- data/lib/pharmaobservatory/models/rare_diseases_record_attributes.rb +238 -0
- data/lib/pharmaobservatory/models/rare_diseases_response.rb +478 -0
- data/lib/pharmaobservatory/models/rare_diseases_row.rb +500 -0
- data/lib/pharmaobservatory/models/recalls_response.rb +478 -0
- data/lib/pharmaobservatory/models/recalls_row.rb +421 -0
- data/lib/pharmaobservatory/models/rwd_coverage_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_coverage_row.rb +410 -0
- data/lib/pharmaobservatory/models/rwd_register_provenance_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_register_provenance_row.rb +531 -0
- data/lib/pharmaobservatory/models/rwd_registers_record.rb +385 -0
- data/lib/pharmaobservatory/models/rwd_source_age_bands_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_source_age_bands_row.rb +344 -0
- data/lib/pharmaobservatory/models/rwd_source_conditions_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_source_conditions_row.rb +502 -0
- data/lib/pharmaobservatory/models/rwd_source_etl_mappings_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_source_etl_mappings_row.rb +366 -0
- data/lib/pharmaobservatory/models/rwd_source_linkages_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_source_linkages_row.rb +476 -0
- data/lib/pharmaobservatory/models/rwd_source_types_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_source_types_row.rb +311 -0
- data/lib/pharmaobservatory/models/rwd_source_vocabularies_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_source_vocabularies_row.rb +355 -0
- data/lib/pharmaobservatory/models/rwd_sources_record.rb +385 -0
- data/lib/pharmaobservatory/models/rwd_sources_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_sources_row.rb +1674 -0
- data/lib/pharmaobservatory/models/rwd_studies_record.rb +385 -0
- data/lib/pharmaobservatory/models/rwd_studies_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_studies_row.rb +1138 -0
- data/lib/pharmaobservatory/models/rwd_study_conditions_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_study_conditions_row.rb +421 -0
- data/lib/pharmaobservatory/models/rwd_study_data_sources_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_study_data_sources_row.rb +423 -0
- data/lib/pharmaobservatory/models/rwd_study_drugs_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_study_drugs_row.rb +401 -0
- data/lib/pharmaobservatory/models/rwd_study_milestones_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_study_milestones_row.rb +421 -0
- data/lib/pharmaobservatory/models/rwd_withheld_fields_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_withheld_fields_row.rb +322 -0
- data/lib/pharmaobservatory/models/sec_pdufa_dates_response.rb +478 -0
- data/lib/pharmaobservatory/models/sec_pdufa_dates_row.rb +476 -0
- 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_recruitment_by_phase_response.rb +3 -3
- data/lib/pharmaobservatory/models/sponsor_recruitment_duration_response.rb +3 -3
- data/lib/pharmaobservatory/models/sponsor_trial_start_forecast_response.rb +3 -3
- data/lib/pharmaobservatory/models/sponsor_trials_response.rb +3 -3
- data/lib/pharmaobservatory/models/sponsor_trials_row.rb +1 -1
- data/lib/pharmaobservatory/models/supplier_capability_esg_response.rb +478 -0
- data/lib/pharmaobservatory/models/supplier_capability_esg_row.rb +480 -0
- data/lib/pharmaobservatory/models/supplier_services_response.rb +478 -0
- data/lib/pharmaobservatory/models/supplier_services_row.rb +289 -0
- data/lib/pharmaobservatory/models/supplier_sites_response.rb +478 -0
- data/lib/pharmaobservatory/models/supplier_sites_row.rb +357 -0
- data/lib/pharmaobservatory/models/suppliers_record.rb +385 -0
- data/lib/pharmaobservatory/models/suppliers_response.rb +478 -0
- data/lib/pharmaobservatory/models/suppliers_row.rb +544 -0
- data/lib/pharmaobservatory/models/target_associations_response.rb +478 -0
- data/lib/pharmaobservatory/models/target_associations_row.rb +267 -0
- data/lib/pharmaobservatory/models/target_crowding_response.rb +478 -0
- data/lib/pharmaobservatory/models/target_crowding_row.rb +289 -0
- data/lib/pharmaobservatory/models/target_drugs_response.rb +478 -0
- data/lib/pharmaobservatory/models/target_drugs_row.rb +335 -0
- data/lib/pharmaobservatory/models/target_evidence_response.rb +478 -0
- data/lib/pharmaobservatory/models/target_evidence_row.rb +410 -0
- data/lib/pharmaobservatory/models/target_patent_mentions_response.rb +478 -0
- data/lib/pharmaobservatory/models/target_patent_mentions_row.rb +311 -0
- data/lib/pharmaobservatory/models/target_programs_response.rb +478 -0
- data/lib/pharmaobservatory/models/target_programs_row.rb +447 -0
- data/lib/pharmaobservatory/models/target_publications_response.rb +478 -0
- data/lib/pharmaobservatory/models/target_publications_row.rb +300 -0
- data/lib/pharmaobservatory/models/target_regulatory_precedent_response.rb +478 -0
- data/lib/pharmaobservatory/models/target_regulatory_precedent_row.rb +333 -0
- data/lib/pharmaobservatory/models/target_trials_response.rb +478 -0
- data/lib/pharmaobservatory/models/target_trials_row.rb +377 -0
- data/lib/pharmaobservatory/models/targets_record.rb +385 -0
- data/lib/pharmaobservatory/models/targets_response.rb +478 -0
- data/lib/pharmaobservatory/models/targets_row.rb +498 -0
- 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_changes_row.rb +24 -2
- 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 +478 -0
- data/lib/pharmaobservatory/models/trial_drug_classes_row.rb +278 -0
- 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 +478 -0
- data/lib/pharmaobservatory/models/trial_kols_row.rb +302 -0
- data/lib/pharmaobservatory/models/trial_outcome_measures_response.rb +3 -3
- data/lib/pharmaobservatory/models/trial_research_payments_response.rb +478 -0
- data/lib/pharmaobservatory/models/trial_research_payments_row.rb +366 -0
- data/lib/pharmaobservatory/models/trial_site_history_response.rb +478 -0
- data/lib/pharmaobservatory/models/trial_site_history_row.rb +401 -0
- 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/trials_row.rb +47 -3
- data/lib/pharmaobservatory/models/unmatched_product_revenue_response.rb +478 -0
- data/lib/pharmaobservatory/models/unmatched_product_revenue_row.rb +564 -0
- data/lib/pharmaobservatory/models/untitled_letters_response.rb +478 -0
- data/lib/pharmaobservatory/models/untitled_letters_row.rb +366 -0
- data/lib/pharmaobservatory/models/warning_letters_response.rb +478 -0
- data/lib/pharmaobservatory/models/warning_letters_row.rb +399 -0
- data/lib/pharmaobservatory/version.rb +1 -1
- data/lib/pharmaobservatory.rb +235 -3
- metadata +472 -8
|
@@ -383,6 +383,188 @@ module PharmaObservatory
|
|
|
383
383
|
return data, status_code, headers
|
|
384
384
|
end
|
|
385
385
|
|
|
386
|
+
# Catalysts: trial readouts, patent cliffs, FDA decision dates and press-release events
|
|
387
|
+
# @param id [String]
|
|
388
|
+
# @param [Hash] opts the optional parameters
|
|
389
|
+
# @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.
|
|
390
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
391
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
392
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
393
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
394
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
395
|
+
# @return [CatalystsResponse]
|
|
396
|
+
def companies_catalysts(id, opts = {})
|
|
397
|
+
data, _status_code, _headers = companies_catalysts_with_http_info(id, opts)
|
|
398
|
+
data
|
|
399
|
+
end
|
|
400
|
+
|
|
401
|
+
# Catalysts: trial readouts, patent cliffs, FDA decision dates and press-release events
|
|
402
|
+
# @param id [String]
|
|
403
|
+
# @param [Hash] opts the optional parameters
|
|
404
|
+
# @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.
|
|
405
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
406
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
407
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
408
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
409
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
410
|
+
# @return [Array<(CatalystsResponse, Integer, Hash)>] CatalystsResponse data, response status code and response headers
|
|
411
|
+
def companies_catalysts_with_http_info(id, opts = {})
|
|
412
|
+
if @api_client.config.debugging
|
|
413
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_catalysts ...'
|
|
414
|
+
end
|
|
415
|
+
# verify the required parameter 'id' is set
|
|
416
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
417
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_catalysts"
|
|
418
|
+
end
|
|
419
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
420
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_catalysts, must be smaller than or equal to 500.'
|
|
421
|
+
end
|
|
422
|
+
|
|
423
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
424
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_catalysts, must be greater than or equal to 1.'
|
|
425
|
+
end
|
|
426
|
+
|
|
427
|
+
allowable_values = ["company", "group"]
|
|
428
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
429
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
430
|
+
end
|
|
431
|
+
# resource path
|
|
432
|
+
local_var_path = '/api/v1/companies/{id}/catalysts'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
433
|
+
|
|
434
|
+
# query parameters
|
|
435
|
+
query_params = opts[:query_params] || {}
|
|
436
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
437
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
438
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
439
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
440
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
441
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
442
|
+
|
|
443
|
+
# header parameters
|
|
444
|
+
header_params = opts[:header_params] || {}
|
|
445
|
+
# HTTP header 'Accept' (if needed)
|
|
446
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
447
|
+
|
|
448
|
+
# form parameters
|
|
449
|
+
form_params = opts[:form_params] || {}
|
|
450
|
+
|
|
451
|
+
# http body (model)
|
|
452
|
+
post_body = opts[:debug_body]
|
|
453
|
+
|
|
454
|
+
# return_type
|
|
455
|
+
return_type = opts[:debug_return_type] || 'CatalystsResponse'
|
|
456
|
+
|
|
457
|
+
# auth_names
|
|
458
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
459
|
+
|
|
460
|
+
new_options = opts.merge(
|
|
461
|
+
:operation => :"CompaniesApi.companies_catalysts",
|
|
462
|
+
:header_params => header_params,
|
|
463
|
+
:query_params => query_params,
|
|
464
|
+
:form_params => form_params,
|
|
465
|
+
:body => post_body,
|
|
466
|
+
:auth_names => auth_names,
|
|
467
|
+
:return_type => return_type
|
|
468
|
+
)
|
|
469
|
+
|
|
470
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
471
|
+
if @api_client.config.debugging
|
|
472
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_catalysts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
473
|
+
end
|
|
474
|
+
return data, status_code, headers
|
|
475
|
+
end
|
|
476
|
+
|
|
477
|
+
# CLIA laboratory certificates
|
|
478
|
+
# @param id [String]
|
|
479
|
+
# @param [Hash] opts the optional parameters
|
|
480
|
+
# @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.
|
|
481
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
482
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
483
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
484
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
485
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
486
|
+
# @return [CliaCertificatesResponse]
|
|
487
|
+
def companies_clia_certificates(id, opts = {})
|
|
488
|
+
data, _status_code, _headers = companies_clia_certificates_with_http_info(id, opts)
|
|
489
|
+
data
|
|
490
|
+
end
|
|
491
|
+
|
|
492
|
+
# CLIA laboratory certificates
|
|
493
|
+
# @param id [String]
|
|
494
|
+
# @param [Hash] opts the optional parameters
|
|
495
|
+
# @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.
|
|
496
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
497
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
498
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
499
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
500
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
501
|
+
# @return [Array<(CliaCertificatesResponse, Integer, Hash)>] CliaCertificatesResponse data, response status code and response headers
|
|
502
|
+
def companies_clia_certificates_with_http_info(id, opts = {})
|
|
503
|
+
if @api_client.config.debugging
|
|
504
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_clia_certificates ...'
|
|
505
|
+
end
|
|
506
|
+
# verify the required parameter 'id' is set
|
|
507
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
508
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_clia_certificates"
|
|
509
|
+
end
|
|
510
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
511
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_clia_certificates, must be smaller than or equal to 500.'
|
|
512
|
+
end
|
|
513
|
+
|
|
514
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
515
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_clia_certificates, must be greater than or equal to 1.'
|
|
516
|
+
end
|
|
517
|
+
|
|
518
|
+
allowable_values = ["company", "group"]
|
|
519
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
520
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
521
|
+
end
|
|
522
|
+
# resource path
|
|
523
|
+
local_var_path = '/api/v1/companies/{id}/clia_certificates'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
524
|
+
|
|
525
|
+
# query parameters
|
|
526
|
+
query_params = opts[:query_params] || {}
|
|
527
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
528
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
529
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
530
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
531
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
532
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
533
|
+
|
|
534
|
+
# header parameters
|
|
535
|
+
header_params = opts[:header_params] || {}
|
|
536
|
+
# HTTP header 'Accept' (if needed)
|
|
537
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
538
|
+
|
|
539
|
+
# form parameters
|
|
540
|
+
form_params = opts[:form_params] || {}
|
|
541
|
+
|
|
542
|
+
# http body (model)
|
|
543
|
+
post_body = opts[:debug_body]
|
|
544
|
+
|
|
545
|
+
# return_type
|
|
546
|
+
return_type = opts[:debug_return_type] || 'CliaCertificatesResponse'
|
|
547
|
+
|
|
548
|
+
# auth_names
|
|
549
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
550
|
+
|
|
551
|
+
new_options = opts.merge(
|
|
552
|
+
:operation => :"CompaniesApi.companies_clia_certificates",
|
|
553
|
+
:header_params => header_params,
|
|
554
|
+
:query_params => query_params,
|
|
555
|
+
:form_params => form_params,
|
|
556
|
+
:body => post_body,
|
|
557
|
+
:auth_names => auth_names,
|
|
558
|
+
:return_type => return_type
|
|
559
|
+
)
|
|
560
|
+
|
|
561
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
562
|
+
if @api_client.config.debugging
|
|
563
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_clia_certificates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
564
|
+
end
|
|
565
|
+
return data, status_code, headers
|
|
566
|
+
end
|
|
567
|
+
|
|
386
568
|
# Company assets (approved and marketed drugs)
|
|
387
569
|
# @param id [String]
|
|
388
570
|
# @param [Hash] opts the optional parameters
|
|
@@ -929,7 +1111,7 @@ module PharmaObservatory
|
|
|
929
1111
|
return data, status_code, headers
|
|
930
1112
|
end
|
|
931
1113
|
|
|
932
|
-
#
|
|
1114
|
+
# Company trial geography
|
|
933
1115
|
# @param id [String]
|
|
934
1116
|
# @param [Hash] opts the optional parameters
|
|
935
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.
|
|
@@ -938,13 +1120,13 @@ module PharmaObservatory
|
|
|
938
1120
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
939
1121
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
940
1122
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
941
|
-
# @return [
|
|
942
|
-
def
|
|
943
|
-
data, _status_code, _headers =
|
|
1123
|
+
# @return [CompanyTrialGeographyResponse]
|
|
1124
|
+
def companies_company_trial_geography(id, opts = {})
|
|
1125
|
+
data, _status_code, _headers = companies_company_trial_geography_with_http_info(id, opts)
|
|
944
1126
|
data
|
|
945
1127
|
end
|
|
946
1128
|
|
|
947
|
-
#
|
|
1129
|
+
# Company trial geography
|
|
948
1130
|
# @param id [String]
|
|
949
1131
|
# @param [Hash] opts the optional parameters
|
|
950
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.
|
|
@@ -953,21 +1135,21 @@ module PharmaObservatory
|
|
|
953
1135
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
954
1136
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
955
1137
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
956
|
-
# @return [Array<(
|
|
957
|
-
def
|
|
1138
|
+
# @return [Array<(CompanyTrialGeographyResponse, Integer, Hash)>] CompanyTrialGeographyResponse data, response status code and response headers
|
|
1139
|
+
def companies_company_trial_geography_with_http_info(id, opts = {})
|
|
958
1140
|
if @api_client.config.debugging
|
|
959
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
1141
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_trial_geography ...'
|
|
960
1142
|
end
|
|
961
1143
|
# verify the required parameter 'id' is set
|
|
962
1144
|
if @api_client.config.client_side_validation && id.nil?
|
|
963
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.
|
|
1145
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_trial_geography"
|
|
964
1146
|
end
|
|
965
1147
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
966
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
1148
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_trial_geography, must be smaller than or equal to 500.'
|
|
967
1149
|
end
|
|
968
1150
|
|
|
969
1151
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
970
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
1152
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_trial_geography, must be greater than or equal to 1.'
|
|
971
1153
|
end
|
|
972
1154
|
|
|
973
1155
|
allowable_values = ["company", "group"]
|
|
@@ -975,7 +1157,7 @@ module PharmaObservatory
|
|
|
975
1157
|
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
976
1158
|
end
|
|
977
1159
|
# resource path
|
|
978
|
-
local_var_path = '/api/v1/companies/{id}/
|
|
1160
|
+
local_var_path = '/api/v1/companies/{id}/company_trial_geography'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
979
1161
|
|
|
980
1162
|
# query parameters
|
|
981
1163
|
query_params = opts[:query_params] || {}
|
|
@@ -998,13 +1180,13 @@ module PharmaObservatory
|
|
|
998
1180
|
post_body = opts[:debug_body]
|
|
999
1181
|
|
|
1000
1182
|
# return_type
|
|
1001
|
-
return_type = opts[:debug_return_type] || '
|
|
1183
|
+
return_type = opts[:debug_return_type] || 'CompanyTrialGeographyResponse'
|
|
1002
1184
|
|
|
1003
1185
|
# auth_names
|
|
1004
1186
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1005
1187
|
|
|
1006
1188
|
new_options = opts.merge(
|
|
1007
|
-
:operation => :"CompaniesApi.
|
|
1189
|
+
:operation => :"CompaniesApi.companies_company_trial_geography",
|
|
1008
1190
|
:header_params => header_params,
|
|
1009
1191
|
:query_params => query_params,
|
|
1010
1192
|
:form_params => form_params,
|
|
@@ -1015,37 +1197,67 @@ module PharmaObservatory
|
|
|
1015
1197
|
|
|
1016
1198
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1017
1199
|
if @api_client.config.debugging
|
|
1018
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
1200
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_company_trial_geography\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1019
1201
|
end
|
|
1020
1202
|
return data, status_code, headers
|
|
1021
1203
|
end
|
|
1022
1204
|
|
|
1023
|
-
#
|
|
1205
|
+
# Company trial sites
|
|
1024
1206
|
# @param id [String]
|
|
1025
1207
|
# @param [Hash] opts the optional parameters
|
|
1026
|
-
# @
|
|
1027
|
-
|
|
1028
|
-
|
|
1208
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
1209
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1210
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1211
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1212
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1213
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1214
|
+
# @return [CompanyTrialSitesResponse]
|
|
1215
|
+
def companies_company_trial_sites(id, opts = {})
|
|
1216
|
+
data, _status_code, _headers = companies_company_trial_sites_with_http_info(id, opts)
|
|
1029
1217
|
data
|
|
1030
1218
|
end
|
|
1031
1219
|
|
|
1032
|
-
#
|
|
1220
|
+
# Company trial sites
|
|
1033
1221
|
# @param id [String]
|
|
1034
1222
|
# @param [Hash] opts the optional parameters
|
|
1035
|
-
# @
|
|
1036
|
-
|
|
1223
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
1224
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1225
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1226
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1227
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1228
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1229
|
+
# @return [Array<(CompanyTrialSitesResponse, Integer, Hash)>] CompanyTrialSitesResponse data, response status code and response headers
|
|
1230
|
+
def companies_company_trial_sites_with_http_info(id, opts = {})
|
|
1037
1231
|
if @api_client.config.debugging
|
|
1038
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
1232
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_trial_sites ...'
|
|
1039
1233
|
end
|
|
1040
1234
|
# verify the required parameter 'id' is set
|
|
1041
1235
|
if @api_client.config.client_side_validation && id.nil?
|
|
1042
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.
|
|
1236
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_trial_sites"
|
|
1237
|
+
end
|
|
1238
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1239
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_trial_sites, must be smaller than or equal to 500.'
|
|
1240
|
+
end
|
|
1241
|
+
|
|
1242
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1243
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_trial_sites, must be greater than or equal to 1.'
|
|
1244
|
+
end
|
|
1245
|
+
|
|
1246
|
+
allowable_values = ["company", "group"]
|
|
1247
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
1248
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
1043
1249
|
end
|
|
1044
1250
|
# resource path
|
|
1045
|
-
local_var_path = '/api/v1/companies/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1251
|
+
local_var_path = '/api/v1/companies/{id}/company_trial_sites'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1046
1252
|
|
|
1047
1253
|
# query parameters
|
|
1048
1254
|
query_params = opts[:query_params] || {}
|
|
1255
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
1256
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1257
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
1258
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
1259
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
1260
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
1049
1261
|
|
|
1050
1262
|
# header parameters
|
|
1051
1263
|
header_params = opts[:header_params] || {}
|
|
@@ -1059,13 +1271,13 @@ module PharmaObservatory
|
|
|
1059
1271
|
post_body = opts[:debug_body]
|
|
1060
1272
|
|
|
1061
1273
|
# return_type
|
|
1062
|
-
return_type = opts[:debug_return_type] || '
|
|
1274
|
+
return_type = opts[:debug_return_type] || 'CompanyTrialSitesResponse'
|
|
1063
1275
|
|
|
1064
1276
|
# auth_names
|
|
1065
1277
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1066
1278
|
|
|
1067
1279
|
new_options = opts.merge(
|
|
1068
|
-
:operation => :"CompaniesApi.
|
|
1280
|
+
:operation => :"CompaniesApi.companies_company_trial_sites",
|
|
1069
1281
|
:header_params => header_params,
|
|
1070
1282
|
:query_params => query_params,
|
|
1071
1283
|
:form_params => form_params,
|
|
@@ -1076,12 +1288,12 @@ module PharmaObservatory
|
|
|
1076
1288
|
|
|
1077
1289
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1078
1290
|
if @api_client.config.debugging
|
|
1079
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
1291
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_company_trial_sites\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1080
1292
|
end
|
|
1081
1293
|
return data, status_code, headers
|
|
1082
1294
|
end
|
|
1083
1295
|
|
|
1084
|
-
#
|
|
1296
|
+
# CRO footprint
|
|
1085
1297
|
# @param id [String]
|
|
1086
1298
|
# @param [Hash] opts the optional parameters
|
|
1087
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.
|
|
@@ -1090,13 +1302,13 @@ module PharmaObservatory
|
|
|
1090
1302
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1091
1303
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1092
1304
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1093
|
-
# @return [
|
|
1094
|
-
def
|
|
1095
|
-
data, _status_code, _headers =
|
|
1305
|
+
# @return [CroFootprintResponse]
|
|
1306
|
+
def companies_cro_footprint(id, opts = {})
|
|
1307
|
+
data, _status_code, _headers = companies_cro_footprint_with_http_info(id, opts)
|
|
1096
1308
|
data
|
|
1097
1309
|
end
|
|
1098
1310
|
|
|
1099
|
-
#
|
|
1311
|
+
# CRO footprint
|
|
1100
1312
|
# @param id [String]
|
|
1101
1313
|
# @param [Hash] opts the optional parameters
|
|
1102
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.
|
|
@@ -1105,21 +1317,21 @@ module PharmaObservatory
|
|
|
1105
1317
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1106
1318
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1107
1319
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1108
|
-
# @return [Array<(
|
|
1109
|
-
def
|
|
1320
|
+
# @return [Array<(CroFootprintResponse, Integer, Hash)>] CroFootprintResponse data, response status code and response headers
|
|
1321
|
+
def companies_cro_footprint_with_http_info(id, opts = {})
|
|
1110
1322
|
if @api_client.config.debugging
|
|
1111
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
1323
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_cro_footprint ...'
|
|
1112
1324
|
end
|
|
1113
1325
|
# verify the required parameter 'id' is set
|
|
1114
1326
|
if @api_client.config.client_side_validation && id.nil?
|
|
1115
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.
|
|
1327
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_cro_footprint"
|
|
1116
1328
|
end
|
|
1117
1329
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1118
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
1330
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_cro_footprint, must be smaller than or equal to 500.'
|
|
1119
1331
|
end
|
|
1120
1332
|
|
|
1121
1333
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1122
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
1334
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_cro_footprint, must be greater than or equal to 1.'
|
|
1123
1335
|
end
|
|
1124
1336
|
|
|
1125
1337
|
allowable_values = ["company", "group"]
|
|
@@ -1127,7 +1339,7 @@ module PharmaObservatory
|
|
|
1127
1339
|
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
1128
1340
|
end
|
|
1129
1341
|
# resource path
|
|
1130
|
-
local_var_path = '/api/v1/companies/{id}/
|
|
1342
|
+
local_var_path = '/api/v1/companies/{id}/cro_footprint'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1131
1343
|
|
|
1132
1344
|
# query parameters
|
|
1133
1345
|
query_params = opts[:query_params] || {}
|
|
@@ -1150,13 +1362,13 @@ module PharmaObservatory
|
|
|
1150
1362
|
post_body = opts[:debug_body]
|
|
1151
1363
|
|
|
1152
1364
|
# return_type
|
|
1153
|
-
return_type = opts[:debug_return_type] || '
|
|
1365
|
+
return_type = opts[:debug_return_type] || 'CroFootprintResponse'
|
|
1154
1366
|
|
|
1155
1367
|
# auth_names
|
|
1156
1368
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1157
1369
|
|
|
1158
1370
|
new_options = opts.merge(
|
|
1159
|
-
:operation => :"CompaniesApi.
|
|
1371
|
+
:operation => :"CompaniesApi.companies_cro_footprint",
|
|
1160
1372
|
:header_params => header_params,
|
|
1161
1373
|
:query_params => query_params,
|
|
1162
1374
|
:form_params => form_params,
|
|
@@ -1167,12 +1379,12 @@ module PharmaObservatory
|
|
|
1167
1379
|
|
|
1168
1380
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1169
1381
|
if @api_client.config.debugging
|
|
1170
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
1382
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_cro_footprint\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1171
1383
|
end
|
|
1172
1384
|
return data, status_code, headers
|
|
1173
1385
|
end
|
|
1174
1386
|
|
|
1175
|
-
#
|
|
1387
|
+
# CRO trials
|
|
1176
1388
|
# @param id [String]
|
|
1177
1389
|
# @param [Hash] opts the optional parameters
|
|
1178
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.
|
|
@@ -1181,13 +1393,13 @@ module PharmaObservatory
|
|
|
1181
1393
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1182
1394
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1183
1395
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1184
|
-
# @return [
|
|
1185
|
-
def
|
|
1186
|
-
data, _status_code, _headers =
|
|
1396
|
+
# @return [CroTrialsResponse]
|
|
1397
|
+
def companies_cro_trials(id, opts = {})
|
|
1398
|
+
data, _status_code, _headers = companies_cro_trials_with_http_info(id, opts)
|
|
1187
1399
|
data
|
|
1188
1400
|
end
|
|
1189
1401
|
|
|
1190
|
-
#
|
|
1402
|
+
# CRO trials
|
|
1191
1403
|
# @param id [String]
|
|
1192
1404
|
# @param [Hash] opts the optional parameters
|
|
1193
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.
|
|
@@ -1196,21 +1408,21 @@ module PharmaObservatory
|
|
|
1196
1408
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1197
1409
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1198
1410
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1199
|
-
# @return [Array<(
|
|
1200
|
-
def
|
|
1411
|
+
# @return [Array<(CroTrialsResponse, Integer, Hash)>] CroTrialsResponse data, response status code and response headers
|
|
1412
|
+
def companies_cro_trials_with_http_info(id, opts = {})
|
|
1201
1413
|
if @api_client.config.debugging
|
|
1202
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
1414
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_cro_trials ...'
|
|
1203
1415
|
end
|
|
1204
1416
|
# verify the required parameter 'id' is set
|
|
1205
1417
|
if @api_client.config.client_side_validation && id.nil?
|
|
1206
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.
|
|
1418
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_cro_trials"
|
|
1207
1419
|
end
|
|
1208
1420
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1209
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
1421
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_cro_trials, must be smaller than or equal to 500.'
|
|
1210
1422
|
end
|
|
1211
1423
|
|
|
1212
1424
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1213
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
1425
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_cro_trials, must be greater than or equal to 1.'
|
|
1214
1426
|
end
|
|
1215
1427
|
|
|
1216
1428
|
allowable_values = ["company", "group"]
|
|
@@ -1218,7 +1430,7 @@ module PharmaObservatory
|
|
|
1218
1430
|
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
1219
1431
|
end
|
|
1220
1432
|
# resource path
|
|
1221
|
-
local_var_path = '/api/v1/companies/{id}/
|
|
1433
|
+
local_var_path = '/api/v1/companies/{id}/cro_trials'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1222
1434
|
|
|
1223
1435
|
# query parameters
|
|
1224
1436
|
query_params = opts[:query_params] || {}
|
|
@@ -1241,13 +1453,13 @@ module PharmaObservatory
|
|
|
1241
1453
|
post_body = opts[:debug_body]
|
|
1242
1454
|
|
|
1243
1455
|
# return_type
|
|
1244
|
-
return_type = opts[:debug_return_type] || '
|
|
1456
|
+
return_type = opts[:debug_return_type] || 'CroTrialsResponse'
|
|
1245
1457
|
|
|
1246
1458
|
# auth_names
|
|
1247
1459
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1248
1460
|
|
|
1249
1461
|
new_options = opts.merge(
|
|
1250
|
-
:operation => :"CompaniesApi.
|
|
1462
|
+
:operation => :"CompaniesApi.companies_cro_trials",
|
|
1251
1463
|
:header_params => header_params,
|
|
1252
1464
|
:query_params => query_params,
|
|
1253
1465
|
:form_params => form_params,
|
|
@@ -1258,45 +1470,1016 @@ module PharmaObservatory
|
|
|
1258
1470
|
|
|
1259
1471
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1260
1472
|
if @api_client.config.debugging
|
|
1261
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
1473
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_cro_trials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1262
1474
|
end
|
|
1263
1475
|
return data, status_code, headers
|
|
1264
1476
|
end
|
|
1265
1477
|
|
|
1266
|
-
#
|
|
1478
|
+
# FDA firm debarments
|
|
1479
|
+
# @param id [String]
|
|
1267
1480
|
# @param [Hash] opts the optional parameters
|
|
1268
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.
|
|
1269
1482
|
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1270
1483
|
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1271
1484
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1272
1485
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1273
|
-
# @
|
|
1274
|
-
|
|
1275
|
-
|
|
1486
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1487
|
+
# @return [DebarmentsResponse]
|
|
1488
|
+
def companies_debarments(id, opts = {})
|
|
1489
|
+
data, _status_code, _headers = companies_debarments_with_http_info(id, opts)
|
|
1276
1490
|
data
|
|
1277
1491
|
end
|
|
1278
1492
|
|
|
1279
|
-
#
|
|
1493
|
+
# FDA firm debarments
|
|
1494
|
+
# @param id [String]
|
|
1280
1495
|
# @param [Hash] opts the optional parameters
|
|
1281
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.
|
|
1282
1497
|
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1283
1498
|
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1284
1499
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1285
1500
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1286
|
-
# @
|
|
1287
|
-
|
|
1501
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1502
|
+
# @return [Array<(DebarmentsResponse, Integer, Hash)>] DebarmentsResponse data, response status code and response headers
|
|
1503
|
+
def companies_debarments_with_http_info(id, opts = {})
|
|
1288
1504
|
if @api_client.config.debugging
|
|
1289
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
1505
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_debarments ...'
|
|
1506
|
+
end
|
|
1507
|
+
# verify the required parameter 'id' is set
|
|
1508
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1509
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_debarments"
|
|
1290
1510
|
end
|
|
1291
1511
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1292
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
1512
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_debarments, must be smaller than or equal to 500.'
|
|
1293
1513
|
end
|
|
1294
1514
|
|
|
1295
1515
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1296
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
1516
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_debarments, must be greater than or equal to 1.'
|
|
1297
1517
|
end
|
|
1298
1518
|
|
|
1299
|
-
|
|
1519
|
+
allowable_values = ["company", "group"]
|
|
1520
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
1521
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
1522
|
+
end
|
|
1523
|
+
# resource path
|
|
1524
|
+
local_var_path = '/api/v1/companies/{id}/debarments'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1525
|
+
|
|
1526
|
+
# query parameters
|
|
1527
|
+
query_params = opts[:query_params] || {}
|
|
1528
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
1529
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1530
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
1531
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
1532
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
1533
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
1534
|
+
|
|
1535
|
+
# header parameters
|
|
1536
|
+
header_params = opts[:header_params] || {}
|
|
1537
|
+
# HTTP header 'Accept' (if needed)
|
|
1538
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1539
|
+
|
|
1540
|
+
# form parameters
|
|
1541
|
+
form_params = opts[:form_params] || {}
|
|
1542
|
+
|
|
1543
|
+
# http body (model)
|
|
1544
|
+
post_body = opts[:debug_body]
|
|
1545
|
+
|
|
1546
|
+
# return_type
|
|
1547
|
+
return_type = opts[:debug_return_type] || 'DebarmentsResponse'
|
|
1548
|
+
|
|
1549
|
+
# auth_names
|
|
1550
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1551
|
+
|
|
1552
|
+
new_options = opts.merge(
|
|
1553
|
+
:operation => :"CompaniesApi.companies_debarments",
|
|
1554
|
+
:header_params => header_params,
|
|
1555
|
+
:query_params => query_params,
|
|
1556
|
+
:form_params => form_params,
|
|
1557
|
+
:body => post_body,
|
|
1558
|
+
:auth_names => auth_names,
|
|
1559
|
+
:return_type => return_type
|
|
1560
|
+
)
|
|
1561
|
+
|
|
1562
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1563
|
+
if @api_client.config.debugging
|
|
1564
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_debarments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1565
|
+
end
|
|
1566
|
+
return data, status_code, headers
|
|
1567
|
+
end
|
|
1568
|
+
|
|
1569
|
+
# Patent-cliff exposure
|
|
1570
|
+
# @param id [String]
|
|
1571
|
+
# @param [Hash] opts the optional parameters
|
|
1572
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
1573
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1574
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1575
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1576
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1577
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1578
|
+
# @return [DrugPatentCliffResponse]
|
|
1579
|
+
def companies_drug_patent_cliff(id, opts = {})
|
|
1580
|
+
data, _status_code, _headers = companies_drug_patent_cliff_with_http_info(id, opts)
|
|
1581
|
+
data
|
|
1582
|
+
end
|
|
1583
|
+
|
|
1584
|
+
# Patent-cliff exposure
|
|
1585
|
+
# @param id [String]
|
|
1586
|
+
# @param [Hash] opts the optional parameters
|
|
1587
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
1588
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1589
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1590
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1591
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1592
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1593
|
+
# @return [Array<(DrugPatentCliffResponse, Integer, Hash)>] DrugPatentCliffResponse data, response status code and response headers
|
|
1594
|
+
def companies_drug_patent_cliff_with_http_info(id, opts = {})
|
|
1595
|
+
if @api_client.config.debugging
|
|
1596
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_drug_patent_cliff ...'
|
|
1597
|
+
end
|
|
1598
|
+
# verify the required parameter 'id' is set
|
|
1599
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1600
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_drug_patent_cliff"
|
|
1601
|
+
end
|
|
1602
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1603
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_drug_patent_cliff, must be smaller than or equal to 500.'
|
|
1604
|
+
end
|
|
1605
|
+
|
|
1606
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1607
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_drug_patent_cliff, must be greater than or equal to 1.'
|
|
1608
|
+
end
|
|
1609
|
+
|
|
1610
|
+
allowable_values = ["company", "group"]
|
|
1611
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
1612
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
1613
|
+
end
|
|
1614
|
+
# resource path
|
|
1615
|
+
local_var_path = '/api/v1/companies/{id}/drug_patent_cliff'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1616
|
+
|
|
1617
|
+
# query parameters
|
|
1618
|
+
query_params = opts[:query_params] || {}
|
|
1619
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
1620
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1621
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
1622
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
1623
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
1624
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
1625
|
+
|
|
1626
|
+
# header parameters
|
|
1627
|
+
header_params = opts[:header_params] || {}
|
|
1628
|
+
# HTTP header 'Accept' (if needed)
|
|
1629
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1630
|
+
|
|
1631
|
+
# form parameters
|
|
1632
|
+
form_params = opts[:form_params] || {}
|
|
1633
|
+
|
|
1634
|
+
# http body (model)
|
|
1635
|
+
post_body = opts[:debug_body]
|
|
1636
|
+
|
|
1637
|
+
# return_type
|
|
1638
|
+
return_type = opts[:debug_return_type] || 'DrugPatentCliffResponse'
|
|
1639
|
+
|
|
1640
|
+
# auth_names
|
|
1641
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1642
|
+
|
|
1643
|
+
new_options = opts.merge(
|
|
1644
|
+
:operation => :"CompaniesApi.companies_drug_patent_cliff",
|
|
1645
|
+
:header_params => header_params,
|
|
1646
|
+
:query_params => query_params,
|
|
1647
|
+
:form_params => form_params,
|
|
1648
|
+
:body => post_body,
|
|
1649
|
+
:auth_names => auth_names,
|
|
1650
|
+
:return_type => return_type
|
|
1651
|
+
)
|
|
1652
|
+
|
|
1653
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1654
|
+
if @api_client.config.debugging
|
|
1655
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_drug_patent_cliff\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1656
|
+
end
|
|
1657
|
+
return data, status_code, headers
|
|
1658
|
+
end
|
|
1659
|
+
|
|
1660
|
+
# FDA enforcement events
|
|
1661
|
+
# @param id [String]
|
|
1662
|
+
# @param [Hash] opts the optional parameters
|
|
1663
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
1664
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1665
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1666
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1667
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1668
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1669
|
+
# @return [EnforcementEventsResponse]
|
|
1670
|
+
def companies_enforcement_events(id, opts = {})
|
|
1671
|
+
data, _status_code, _headers = companies_enforcement_events_with_http_info(id, opts)
|
|
1672
|
+
data
|
|
1673
|
+
end
|
|
1674
|
+
|
|
1675
|
+
# FDA enforcement events
|
|
1676
|
+
# @param id [String]
|
|
1677
|
+
# @param [Hash] opts the optional parameters
|
|
1678
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
1679
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1680
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1681
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1682
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1683
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1684
|
+
# @return [Array<(EnforcementEventsResponse, Integer, Hash)>] EnforcementEventsResponse data, response status code and response headers
|
|
1685
|
+
def companies_enforcement_events_with_http_info(id, opts = {})
|
|
1686
|
+
if @api_client.config.debugging
|
|
1687
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_enforcement_events ...'
|
|
1688
|
+
end
|
|
1689
|
+
# verify the required parameter 'id' is set
|
|
1690
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1691
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_enforcement_events"
|
|
1692
|
+
end
|
|
1693
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1694
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_enforcement_events, must be smaller than or equal to 500.'
|
|
1695
|
+
end
|
|
1696
|
+
|
|
1697
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1698
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_enforcement_events, must be greater than or equal to 1.'
|
|
1699
|
+
end
|
|
1700
|
+
|
|
1701
|
+
allowable_values = ["company", "group"]
|
|
1702
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
1703
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
1704
|
+
end
|
|
1705
|
+
# resource path
|
|
1706
|
+
local_var_path = '/api/v1/companies/{id}/enforcement_events'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1707
|
+
|
|
1708
|
+
# query parameters
|
|
1709
|
+
query_params = opts[:query_params] || {}
|
|
1710
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
1711
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1712
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
1713
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
1714
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
1715
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
1716
|
+
|
|
1717
|
+
# header parameters
|
|
1718
|
+
header_params = opts[:header_params] || {}
|
|
1719
|
+
# HTTP header 'Accept' (if needed)
|
|
1720
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1721
|
+
|
|
1722
|
+
# form parameters
|
|
1723
|
+
form_params = opts[:form_params] || {}
|
|
1724
|
+
|
|
1725
|
+
# http body (model)
|
|
1726
|
+
post_body = opts[:debug_body]
|
|
1727
|
+
|
|
1728
|
+
# return_type
|
|
1729
|
+
return_type = opts[:debug_return_type] || 'EnforcementEventsResponse'
|
|
1730
|
+
|
|
1731
|
+
# auth_names
|
|
1732
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1733
|
+
|
|
1734
|
+
new_options = opts.merge(
|
|
1735
|
+
:operation => :"CompaniesApi.companies_enforcement_events",
|
|
1736
|
+
:header_params => header_params,
|
|
1737
|
+
:query_params => query_params,
|
|
1738
|
+
:form_params => form_params,
|
|
1739
|
+
:body => post_body,
|
|
1740
|
+
:auth_names => auth_names,
|
|
1741
|
+
:return_type => return_type
|
|
1742
|
+
)
|
|
1743
|
+
|
|
1744
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1745
|
+
if @api_client.config.debugging
|
|
1746
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_enforcement_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1747
|
+
end
|
|
1748
|
+
return data, status_code, headers
|
|
1749
|
+
end
|
|
1750
|
+
|
|
1751
|
+
# One company
|
|
1752
|
+
# @param id [String]
|
|
1753
|
+
# @param [Hash] opts the optional parameters
|
|
1754
|
+
# @return [CompaniesRecord]
|
|
1755
|
+
def companies_get(id, opts = {})
|
|
1756
|
+
data, _status_code, _headers = companies_get_with_http_info(id, opts)
|
|
1757
|
+
data
|
|
1758
|
+
end
|
|
1759
|
+
|
|
1760
|
+
# One company
|
|
1761
|
+
# @param id [String]
|
|
1762
|
+
# @param [Hash] opts the optional parameters
|
|
1763
|
+
# @return [Array<(CompaniesRecord, Integer, Hash)>] CompaniesRecord data, response status code and response headers
|
|
1764
|
+
def companies_get_with_http_info(id, opts = {})
|
|
1765
|
+
if @api_client.config.debugging
|
|
1766
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_get ...'
|
|
1767
|
+
end
|
|
1768
|
+
# verify the required parameter 'id' is set
|
|
1769
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1770
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_get"
|
|
1771
|
+
end
|
|
1772
|
+
# resource path
|
|
1773
|
+
local_var_path = '/api/v1/companies/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1774
|
+
|
|
1775
|
+
# query parameters
|
|
1776
|
+
query_params = opts[:query_params] || {}
|
|
1777
|
+
|
|
1778
|
+
# header parameters
|
|
1779
|
+
header_params = opts[:header_params] || {}
|
|
1780
|
+
# HTTP header 'Accept' (if needed)
|
|
1781
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1782
|
+
|
|
1783
|
+
# form parameters
|
|
1784
|
+
form_params = opts[:form_params] || {}
|
|
1785
|
+
|
|
1786
|
+
# http body (model)
|
|
1787
|
+
post_body = opts[:debug_body]
|
|
1788
|
+
|
|
1789
|
+
# return_type
|
|
1790
|
+
return_type = opts[:debug_return_type] || 'CompaniesRecord'
|
|
1791
|
+
|
|
1792
|
+
# auth_names
|
|
1793
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1794
|
+
|
|
1795
|
+
new_options = opts.merge(
|
|
1796
|
+
:operation => :"CompaniesApi.companies_get",
|
|
1797
|
+
:header_params => header_params,
|
|
1798
|
+
:query_params => query_params,
|
|
1799
|
+
:form_params => form_params,
|
|
1800
|
+
:body => post_body,
|
|
1801
|
+
:auth_names => auth_names,
|
|
1802
|
+
:return_type => return_type
|
|
1803
|
+
)
|
|
1804
|
+
|
|
1805
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1806
|
+
if @api_client.config.debugging
|
|
1807
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1808
|
+
end
|
|
1809
|
+
return data, status_code, headers
|
|
1810
|
+
end
|
|
1811
|
+
|
|
1812
|
+
# GxP facilities and quality signals
|
|
1813
|
+
# @param id [String]
|
|
1814
|
+
# @param [Hash] opts the optional parameters
|
|
1815
|
+
# @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.
|
|
1816
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1817
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1818
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1819
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1820
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1821
|
+
# @return [GxpFacilitiesResponse]
|
|
1822
|
+
def companies_gxp_facilities(id, opts = {})
|
|
1823
|
+
data, _status_code, _headers = companies_gxp_facilities_with_http_info(id, opts)
|
|
1824
|
+
data
|
|
1825
|
+
end
|
|
1826
|
+
|
|
1827
|
+
# GxP facilities and quality signals
|
|
1828
|
+
# @param id [String]
|
|
1829
|
+
# @param [Hash] opts the optional parameters
|
|
1830
|
+
# @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.
|
|
1831
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1832
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1833
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1834
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1835
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1836
|
+
# @return [Array<(GxpFacilitiesResponse, Integer, Hash)>] GxpFacilitiesResponse data, response status code and response headers
|
|
1837
|
+
def companies_gxp_facilities_with_http_info(id, opts = {})
|
|
1838
|
+
if @api_client.config.debugging
|
|
1839
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_gxp_facilities ...'
|
|
1840
|
+
end
|
|
1841
|
+
# verify the required parameter 'id' is set
|
|
1842
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1843
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_gxp_facilities"
|
|
1844
|
+
end
|
|
1845
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1846
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_gxp_facilities, must be smaller than or equal to 500.'
|
|
1847
|
+
end
|
|
1848
|
+
|
|
1849
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1850
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_gxp_facilities, must be greater than or equal to 1.'
|
|
1851
|
+
end
|
|
1852
|
+
|
|
1853
|
+
allowable_values = ["company", "group"]
|
|
1854
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
1855
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
1856
|
+
end
|
|
1857
|
+
# resource path
|
|
1858
|
+
local_var_path = '/api/v1/companies/{id}/gxp_facilities'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1859
|
+
|
|
1860
|
+
# query parameters
|
|
1861
|
+
query_params = opts[:query_params] || {}
|
|
1862
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
1863
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1864
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
1865
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
1866
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
1867
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
1868
|
+
|
|
1869
|
+
# header parameters
|
|
1870
|
+
header_params = opts[:header_params] || {}
|
|
1871
|
+
# HTTP header 'Accept' (if needed)
|
|
1872
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1873
|
+
|
|
1874
|
+
# form parameters
|
|
1875
|
+
form_params = opts[:form_params] || {}
|
|
1876
|
+
|
|
1877
|
+
# http body (model)
|
|
1878
|
+
post_body = opts[:debug_body]
|
|
1879
|
+
|
|
1880
|
+
# return_type
|
|
1881
|
+
return_type = opts[:debug_return_type] || 'GxpFacilitiesResponse'
|
|
1882
|
+
|
|
1883
|
+
# auth_names
|
|
1884
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1885
|
+
|
|
1886
|
+
new_options = opts.merge(
|
|
1887
|
+
:operation => :"CompaniesApi.companies_gxp_facilities",
|
|
1888
|
+
:header_params => header_params,
|
|
1889
|
+
:query_params => query_params,
|
|
1890
|
+
:form_params => form_params,
|
|
1891
|
+
:body => post_body,
|
|
1892
|
+
:auth_names => auth_names,
|
|
1893
|
+
:return_type => return_type
|
|
1894
|
+
)
|
|
1895
|
+
|
|
1896
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1897
|
+
if @api_client.config.debugging
|
|
1898
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_gxp_facilities\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1899
|
+
end
|
|
1900
|
+
return data, status_code, headers
|
|
1901
|
+
end
|
|
1902
|
+
|
|
1903
|
+
# FDA import refusals
|
|
1904
|
+
# @param id [String]
|
|
1905
|
+
# @param [Hash] opts the optional parameters
|
|
1906
|
+
# @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.
|
|
1907
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1908
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1909
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1910
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1911
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1912
|
+
# @return [ImportRefusalsResponse]
|
|
1913
|
+
def companies_import_refusals(id, opts = {})
|
|
1914
|
+
data, _status_code, _headers = companies_import_refusals_with_http_info(id, opts)
|
|
1915
|
+
data
|
|
1916
|
+
end
|
|
1917
|
+
|
|
1918
|
+
# FDA import refusals
|
|
1919
|
+
# @param id [String]
|
|
1920
|
+
# @param [Hash] opts the optional parameters
|
|
1921
|
+
# @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.
|
|
1922
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1923
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1924
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1925
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1926
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1927
|
+
# @return [Array<(ImportRefusalsResponse, Integer, Hash)>] ImportRefusalsResponse data, response status code and response headers
|
|
1928
|
+
def companies_import_refusals_with_http_info(id, opts = {})
|
|
1929
|
+
if @api_client.config.debugging
|
|
1930
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_import_refusals ...'
|
|
1931
|
+
end
|
|
1932
|
+
# verify the required parameter 'id' is set
|
|
1933
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1934
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_import_refusals"
|
|
1935
|
+
end
|
|
1936
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1937
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_import_refusals, must be smaller than or equal to 500.'
|
|
1938
|
+
end
|
|
1939
|
+
|
|
1940
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1941
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_import_refusals, must be greater than or equal to 1.'
|
|
1942
|
+
end
|
|
1943
|
+
|
|
1944
|
+
allowable_values = ["company", "group"]
|
|
1945
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
1946
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
1947
|
+
end
|
|
1948
|
+
# resource path
|
|
1949
|
+
local_var_path = '/api/v1/companies/{id}/import_refusals'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1950
|
+
|
|
1951
|
+
# query parameters
|
|
1952
|
+
query_params = opts[:query_params] || {}
|
|
1953
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
1954
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1955
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
1956
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
1957
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
1958
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
1959
|
+
|
|
1960
|
+
# header parameters
|
|
1961
|
+
header_params = opts[:header_params] || {}
|
|
1962
|
+
# HTTP header 'Accept' (if needed)
|
|
1963
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1964
|
+
|
|
1965
|
+
# form parameters
|
|
1966
|
+
form_params = opts[:form_params] || {}
|
|
1967
|
+
|
|
1968
|
+
# http body (model)
|
|
1969
|
+
post_body = opts[:debug_body]
|
|
1970
|
+
|
|
1971
|
+
# return_type
|
|
1972
|
+
return_type = opts[:debug_return_type] || 'ImportRefusalsResponse'
|
|
1973
|
+
|
|
1974
|
+
# auth_names
|
|
1975
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1976
|
+
|
|
1977
|
+
new_options = opts.merge(
|
|
1978
|
+
:operation => :"CompaniesApi.companies_import_refusals",
|
|
1979
|
+
:header_params => header_params,
|
|
1980
|
+
:query_params => query_params,
|
|
1981
|
+
:form_params => form_params,
|
|
1982
|
+
:body => post_body,
|
|
1983
|
+
:auth_names => auth_names,
|
|
1984
|
+
:return_type => return_type
|
|
1985
|
+
)
|
|
1986
|
+
|
|
1987
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1988
|
+
if @api_client.config.debugging
|
|
1989
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_import_refusals\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1990
|
+
end
|
|
1991
|
+
return data, status_code, headers
|
|
1992
|
+
end
|
|
1993
|
+
|
|
1994
|
+
# FDA inspection findings
|
|
1995
|
+
# @param id [String]
|
|
1996
|
+
# @param [Hash] opts the optional parameters
|
|
1997
|
+
# @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.
|
|
1998
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1999
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2000
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2001
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2002
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2003
|
+
# @return [InspectionFindingsResponse]
|
|
2004
|
+
def companies_inspection_findings(id, opts = {})
|
|
2005
|
+
data, _status_code, _headers = companies_inspection_findings_with_http_info(id, opts)
|
|
2006
|
+
data
|
|
2007
|
+
end
|
|
2008
|
+
|
|
2009
|
+
# FDA inspection findings
|
|
2010
|
+
# @param id [String]
|
|
2011
|
+
# @param [Hash] opts the optional parameters
|
|
2012
|
+
# @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.
|
|
2013
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
2014
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2015
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2016
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2017
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2018
|
+
# @return [Array<(InspectionFindingsResponse, Integer, Hash)>] InspectionFindingsResponse data, response status code and response headers
|
|
2019
|
+
def companies_inspection_findings_with_http_info(id, opts = {})
|
|
2020
|
+
if @api_client.config.debugging
|
|
2021
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_inspection_findings ...'
|
|
2022
|
+
end
|
|
2023
|
+
# verify the required parameter 'id' is set
|
|
2024
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
2025
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_inspection_findings"
|
|
2026
|
+
end
|
|
2027
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
2028
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_inspection_findings, must be smaller than or equal to 500.'
|
|
2029
|
+
end
|
|
2030
|
+
|
|
2031
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
2032
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_inspection_findings, must be greater than or equal to 1.'
|
|
2033
|
+
end
|
|
2034
|
+
|
|
2035
|
+
allowable_values = ["company", "group"]
|
|
2036
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
2037
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
2038
|
+
end
|
|
2039
|
+
# resource path
|
|
2040
|
+
local_var_path = '/api/v1/companies/{id}/inspection_findings'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
2041
|
+
|
|
2042
|
+
# query parameters
|
|
2043
|
+
query_params = opts[:query_params] || {}
|
|
2044
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
2045
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
2046
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
2047
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
2048
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
2049
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
2050
|
+
|
|
2051
|
+
# header parameters
|
|
2052
|
+
header_params = opts[:header_params] || {}
|
|
2053
|
+
# HTTP header 'Accept' (if needed)
|
|
2054
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2055
|
+
|
|
2056
|
+
# form parameters
|
|
2057
|
+
form_params = opts[:form_params] || {}
|
|
2058
|
+
|
|
2059
|
+
# http body (model)
|
|
2060
|
+
post_body = opts[:debug_body]
|
|
2061
|
+
|
|
2062
|
+
# return_type
|
|
2063
|
+
return_type = opts[:debug_return_type] || 'InspectionFindingsResponse'
|
|
2064
|
+
|
|
2065
|
+
# auth_names
|
|
2066
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
2067
|
+
|
|
2068
|
+
new_options = opts.merge(
|
|
2069
|
+
:operation => :"CompaniesApi.companies_inspection_findings",
|
|
2070
|
+
:header_params => header_params,
|
|
2071
|
+
:query_params => query_params,
|
|
2072
|
+
:form_params => form_params,
|
|
2073
|
+
:body => post_body,
|
|
2074
|
+
:auth_names => auth_names,
|
|
2075
|
+
:return_type => return_type
|
|
2076
|
+
)
|
|
2077
|
+
|
|
2078
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2079
|
+
if @api_client.config.debugging
|
|
2080
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_inspection_findings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2081
|
+
end
|
|
2082
|
+
return data, status_code, headers
|
|
2083
|
+
end
|
|
2084
|
+
|
|
2085
|
+
# FDA inspections
|
|
2086
|
+
# @param id [String]
|
|
2087
|
+
# @param [Hash] opts the optional parameters
|
|
2088
|
+
# @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.
|
|
2089
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
2090
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2091
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2092
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2093
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2094
|
+
# @return [InspectionsResponse]
|
|
2095
|
+
def companies_inspections(id, opts = {})
|
|
2096
|
+
data, _status_code, _headers = companies_inspections_with_http_info(id, opts)
|
|
2097
|
+
data
|
|
2098
|
+
end
|
|
2099
|
+
|
|
2100
|
+
# FDA inspections
|
|
2101
|
+
# @param id [String]
|
|
2102
|
+
# @param [Hash] opts the optional parameters
|
|
2103
|
+
# @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.
|
|
2104
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
2105
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2106
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2107
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2108
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2109
|
+
# @return [Array<(InspectionsResponse, Integer, Hash)>] InspectionsResponse data, response status code and response headers
|
|
2110
|
+
def companies_inspections_with_http_info(id, opts = {})
|
|
2111
|
+
if @api_client.config.debugging
|
|
2112
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_inspections ...'
|
|
2113
|
+
end
|
|
2114
|
+
# verify the required parameter 'id' is set
|
|
2115
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
2116
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_inspections"
|
|
2117
|
+
end
|
|
2118
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
2119
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_inspections, must be smaller than or equal to 500.'
|
|
2120
|
+
end
|
|
2121
|
+
|
|
2122
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
2123
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_inspections, must be greater than or equal to 1.'
|
|
2124
|
+
end
|
|
2125
|
+
|
|
2126
|
+
allowable_values = ["company", "group"]
|
|
2127
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
2128
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
2129
|
+
end
|
|
2130
|
+
# resource path
|
|
2131
|
+
local_var_path = '/api/v1/companies/{id}/inspections'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
2132
|
+
|
|
2133
|
+
# query parameters
|
|
2134
|
+
query_params = opts[:query_params] || {}
|
|
2135
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
2136
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
2137
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
2138
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
2139
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
2140
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
2141
|
+
|
|
2142
|
+
# header parameters
|
|
2143
|
+
header_params = opts[:header_params] || {}
|
|
2144
|
+
# HTTP header 'Accept' (if needed)
|
|
2145
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2146
|
+
|
|
2147
|
+
# form parameters
|
|
2148
|
+
form_params = opts[:form_params] || {}
|
|
2149
|
+
|
|
2150
|
+
# http body (model)
|
|
2151
|
+
post_body = opts[:debug_body]
|
|
2152
|
+
|
|
2153
|
+
# return_type
|
|
2154
|
+
return_type = opts[:debug_return_type] || 'InspectionsResponse'
|
|
2155
|
+
|
|
2156
|
+
# auth_names
|
|
2157
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
2158
|
+
|
|
2159
|
+
new_options = opts.merge(
|
|
2160
|
+
:operation => :"CompaniesApi.companies_inspections",
|
|
2161
|
+
:header_params => header_params,
|
|
2162
|
+
:query_params => query_params,
|
|
2163
|
+
:form_params => form_params,
|
|
2164
|
+
:body => post_body,
|
|
2165
|
+
:auth_names => auth_names,
|
|
2166
|
+
:return_type => return_type
|
|
2167
|
+
)
|
|
2168
|
+
|
|
2169
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2170
|
+
if @api_client.config.debugging
|
|
2171
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_inspections\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2172
|
+
end
|
|
2173
|
+
return data, status_code, headers
|
|
2174
|
+
end
|
|
2175
|
+
|
|
2176
|
+
# Institutional holdings (SEC Form 13F)
|
|
2177
|
+
# @param id [String]
|
|
2178
|
+
# @param [Hash] opts the optional parameters
|
|
2179
|
+
# @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.
|
|
2180
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
2181
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2182
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2183
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2184
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2185
|
+
# @return [InstitutionalHoldingsResponse]
|
|
2186
|
+
def companies_institutional_holdings(id, opts = {})
|
|
2187
|
+
data, _status_code, _headers = companies_institutional_holdings_with_http_info(id, opts)
|
|
2188
|
+
data
|
|
2189
|
+
end
|
|
2190
|
+
|
|
2191
|
+
# Institutional holdings (SEC Form 13F)
|
|
2192
|
+
# @param id [String]
|
|
2193
|
+
# @param [Hash] opts the optional parameters
|
|
2194
|
+
# @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.
|
|
2195
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
2196
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2197
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2198
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2199
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2200
|
+
# @return [Array<(InstitutionalHoldingsResponse, Integer, Hash)>] InstitutionalHoldingsResponse data, response status code and response headers
|
|
2201
|
+
def companies_institutional_holdings_with_http_info(id, opts = {})
|
|
2202
|
+
if @api_client.config.debugging
|
|
2203
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_institutional_holdings ...'
|
|
2204
|
+
end
|
|
2205
|
+
# verify the required parameter 'id' is set
|
|
2206
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
2207
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_institutional_holdings"
|
|
2208
|
+
end
|
|
2209
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
2210
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_institutional_holdings, must be smaller than or equal to 500.'
|
|
2211
|
+
end
|
|
2212
|
+
|
|
2213
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
2214
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_institutional_holdings, must be greater than or equal to 1.'
|
|
2215
|
+
end
|
|
2216
|
+
|
|
2217
|
+
allowable_values = ["company", "group"]
|
|
2218
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
2219
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
2220
|
+
end
|
|
2221
|
+
# resource path
|
|
2222
|
+
local_var_path = '/api/v1/companies/{id}/institutional_holdings'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
2223
|
+
|
|
2224
|
+
# query parameters
|
|
2225
|
+
query_params = opts[:query_params] || {}
|
|
2226
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
2227
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
2228
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
2229
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
2230
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
2231
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
2232
|
+
|
|
2233
|
+
# header parameters
|
|
2234
|
+
header_params = opts[:header_params] || {}
|
|
2235
|
+
# HTTP header 'Accept' (if needed)
|
|
2236
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2237
|
+
|
|
2238
|
+
# form parameters
|
|
2239
|
+
form_params = opts[:form_params] || {}
|
|
2240
|
+
|
|
2241
|
+
# http body (model)
|
|
2242
|
+
post_body = opts[:debug_body]
|
|
2243
|
+
|
|
2244
|
+
# return_type
|
|
2245
|
+
return_type = opts[:debug_return_type] || 'InstitutionalHoldingsResponse'
|
|
2246
|
+
|
|
2247
|
+
# auth_names
|
|
2248
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
2249
|
+
|
|
2250
|
+
new_options = opts.merge(
|
|
2251
|
+
:operation => :"CompaniesApi.companies_institutional_holdings",
|
|
2252
|
+
:header_params => header_params,
|
|
2253
|
+
:query_params => query_params,
|
|
2254
|
+
:form_params => form_params,
|
|
2255
|
+
:body => post_body,
|
|
2256
|
+
:auth_names => auth_names,
|
|
2257
|
+
:return_type => return_type
|
|
2258
|
+
)
|
|
2259
|
+
|
|
2260
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2261
|
+
if @api_client.config.debugging
|
|
2262
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_institutional_holdings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2263
|
+
end
|
|
2264
|
+
return data, status_code, headers
|
|
2265
|
+
end
|
|
2266
|
+
|
|
2267
|
+
# Institutional quarter totals (SEC Form 13F)
|
|
2268
|
+
# @param id [String]
|
|
2269
|
+
# @param [Hash] opts the optional parameters
|
|
2270
|
+
# @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.
|
|
2271
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
2272
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2273
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2274
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2275
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2276
|
+
# @return [InstitutionalQuarterTotalsResponse]
|
|
2277
|
+
def companies_institutional_quarter_totals(id, opts = {})
|
|
2278
|
+
data, _status_code, _headers = companies_institutional_quarter_totals_with_http_info(id, opts)
|
|
2279
|
+
data
|
|
2280
|
+
end
|
|
2281
|
+
|
|
2282
|
+
# Institutional quarter totals (SEC Form 13F)
|
|
2283
|
+
# @param id [String]
|
|
2284
|
+
# @param [Hash] opts the optional parameters
|
|
2285
|
+
# @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.
|
|
2286
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
2287
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2288
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2289
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2290
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2291
|
+
# @return [Array<(InstitutionalQuarterTotalsResponse, Integer, Hash)>] InstitutionalQuarterTotalsResponse data, response status code and response headers
|
|
2292
|
+
def companies_institutional_quarter_totals_with_http_info(id, opts = {})
|
|
2293
|
+
if @api_client.config.debugging
|
|
2294
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_institutional_quarter_totals ...'
|
|
2295
|
+
end
|
|
2296
|
+
# verify the required parameter 'id' is set
|
|
2297
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
2298
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_institutional_quarter_totals"
|
|
2299
|
+
end
|
|
2300
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
2301
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_institutional_quarter_totals, must be smaller than or equal to 500.'
|
|
2302
|
+
end
|
|
2303
|
+
|
|
2304
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
2305
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_institutional_quarter_totals, must be greater than or equal to 1.'
|
|
2306
|
+
end
|
|
2307
|
+
|
|
2308
|
+
allowable_values = ["company", "group"]
|
|
2309
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
2310
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
2311
|
+
end
|
|
2312
|
+
# resource path
|
|
2313
|
+
local_var_path = '/api/v1/companies/{id}/institutional_quarter_totals'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
2314
|
+
|
|
2315
|
+
# query parameters
|
|
2316
|
+
query_params = opts[:query_params] || {}
|
|
2317
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
2318
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
2319
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
2320
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
2321
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
2322
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
2323
|
+
|
|
2324
|
+
# header parameters
|
|
2325
|
+
header_params = opts[:header_params] || {}
|
|
2326
|
+
# HTTP header 'Accept' (if needed)
|
|
2327
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2328
|
+
|
|
2329
|
+
# form parameters
|
|
2330
|
+
form_params = opts[:form_params] || {}
|
|
2331
|
+
|
|
2332
|
+
# http body (model)
|
|
2333
|
+
post_body = opts[:debug_body]
|
|
2334
|
+
|
|
2335
|
+
# return_type
|
|
2336
|
+
return_type = opts[:debug_return_type] || 'InstitutionalQuarterTotalsResponse'
|
|
2337
|
+
|
|
2338
|
+
# auth_names
|
|
2339
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
2340
|
+
|
|
2341
|
+
new_options = opts.merge(
|
|
2342
|
+
:operation => :"CompaniesApi.companies_institutional_quarter_totals",
|
|
2343
|
+
:header_params => header_params,
|
|
2344
|
+
:query_params => query_params,
|
|
2345
|
+
:form_params => form_params,
|
|
2346
|
+
:body => post_body,
|
|
2347
|
+
:auth_names => auth_names,
|
|
2348
|
+
:return_type => return_type
|
|
2349
|
+
)
|
|
2350
|
+
|
|
2351
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2352
|
+
if @api_client.config.debugging
|
|
2353
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_institutional_quarter_totals\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2354
|
+
end
|
|
2355
|
+
return data, status_code, headers
|
|
2356
|
+
end
|
|
2357
|
+
|
|
2358
|
+
# Legal entities
|
|
2359
|
+
# @param id [String]
|
|
2360
|
+
# @param [Hash] opts the optional parameters
|
|
2361
|
+
# @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.
|
|
2362
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
2363
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2364
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2365
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2366
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2367
|
+
# @return [LegalEntitiesResponse]
|
|
2368
|
+
def companies_legal_entities(id, opts = {})
|
|
2369
|
+
data, _status_code, _headers = companies_legal_entities_with_http_info(id, opts)
|
|
2370
|
+
data
|
|
2371
|
+
end
|
|
2372
|
+
|
|
2373
|
+
# Legal entities
|
|
2374
|
+
# @param id [String]
|
|
2375
|
+
# @param [Hash] opts the optional parameters
|
|
2376
|
+
# @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.
|
|
2377
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
2378
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2379
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2380
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2381
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2382
|
+
# @return [Array<(LegalEntitiesResponse, Integer, Hash)>] LegalEntitiesResponse data, response status code and response headers
|
|
2383
|
+
def companies_legal_entities_with_http_info(id, opts = {})
|
|
2384
|
+
if @api_client.config.debugging
|
|
2385
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_legal_entities ...'
|
|
2386
|
+
end
|
|
2387
|
+
# verify the required parameter 'id' is set
|
|
2388
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
2389
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_legal_entities"
|
|
2390
|
+
end
|
|
2391
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
2392
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_legal_entities, must be smaller than or equal to 500.'
|
|
2393
|
+
end
|
|
2394
|
+
|
|
2395
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
2396
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_legal_entities, must be greater than or equal to 1.'
|
|
2397
|
+
end
|
|
2398
|
+
|
|
2399
|
+
allowable_values = ["company", "group"]
|
|
2400
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
2401
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
2402
|
+
end
|
|
2403
|
+
# resource path
|
|
2404
|
+
local_var_path = '/api/v1/companies/{id}/legal_entities'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
2405
|
+
|
|
2406
|
+
# query parameters
|
|
2407
|
+
query_params = opts[:query_params] || {}
|
|
2408
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
2409
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
2410
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
2411
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
2412
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
2413
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
2414
|
+
|
|
2415
|
+
# header parameters
|
|
2416
|
+
header_params = opts[:header_params] || {}
|
|
2417
|
+
# HTTP header 'Accept' (if needed)
|
|
2418
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2419
|
+
|
|
2420
|
+
# form parameters
|
|
2421
|
+
form_params = opts[:form_params] || {}
|
|
2422
|
+
|
|
2423
|
+
# http body (model)
|
|
2424
|
+
post_body = opts[:debug_body]
|
|
2425
|
+
|
|
2426
|
+
# return_type
|
|
2427
|
+
return_type = opts[:debug_return_type] || 'LegalEntitiesResponse'
|
|
2428
|
+
|
|
2429
|
+
# auth_names
|
|
2430
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
2431
|
+
|
|
2432
|
+
new_options = opts.merge(
|
|
2433
|
+
:operation => :"CompaniesApi.companies_legal_entities",
|
|
2434
|
+
:header_params => header_params,
|
|
2435
|
+
:query_params => query_params,
|
|
2436
|
+
:form_params => form_params,
|
|
2437
|
+
:body => post_body,
|
|
2438
|
+
:auth_names => auth_names,
|
|
2439
|
+
:return_type => return_type
|
|
2440
|
+
)
|
|
2441
|
+
|
|
2442
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2443
|
+
if @api_client.config.debugging
|
|
2444
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_legal_entities\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2445
|
+
end
|
|
2446
|
+
return data, status_code, headers
|
|
2447
|
+
end
|
|
2448
|
+
|
|
2449
|
+
# List companies
|
|
2450
|
+
# @param [Hash] opts the optional parameters
|
|
2451
|
+
# @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
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
2453
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2454
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2455
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2456
|
+
# @return [CompaniesResponse]
|
|
2457
|
+
def companies_list(opts = {})
|
|
2458
|
+
data, _status_code, _headers = companies_list_with_http_info(opts)
|
|
2459
|
+
data
|
|
2460
|
+
end
|
|
2461
|
+
|
|
2462
|
+
# List companies
|
|
2463
|
+
# @param [Hash] opts the optional parameters
|
|
2464
|
+
# @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
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
2466
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2467
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2468
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2469
|
+
# @return [Array<(CompaniesResponse, Integer, Hash)>] CompaniesResponse data, response status code and response headers
|
|
2470
|
+
def companies_list_with_http_info(opts = {})
|
|
2471
|
+
if @api_client.config.debugging
|
|
2472
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_list ...'
|
|
2473
|
+
end
|
|
2474
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
2475
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_list, must be smaller than or equal to 500.'
|
|
2476
|
+
end
|
|
2477
|
+
|
|
2478
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
2479
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_list, must be greater than or equal to 1.'
|
|
2480
|
+
end
|
|
2481
|
+
|
|
2482
|
+
# resource path
|
|
1300
2483
|
local_var_path = '/api/v1/companies'
|
|
1301
2484
|
|
|
1302
2485
|
# query parameters
|
|
@@ -1319,13 +2502,741 @@ module PharmaObservatory
|
|
|
1319
2502
|
post_body = opts[:debug_body]
|
|
1320
2503
|
|
|
1321
2504
|
# return_type
|
|
1322
|
-
return_type = opts[:debug_return_type] || 'CompaniesResponse'
|
|
2505
|
+
return_type = opts[:debug_return_type] || 'CompaniesResponse'
|
|
2506
|
+
|
|
2507
|
+
# auth_names
|
|
2508
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
2509
|
+
|
|
2510
|
+
new_options = opts.merge(
|
|
2511
|
+
:operation => :"CompaniesApi.companies_list",
|
|
2512
|
+
:header_params => header_params,
|
|
2513
|
+
:query_params => query_params,
|
|
2514
|
+
:form_params => form_params,
|
|
2515
|
+
:body => post_body,
|
|
2516
|
+
:auth_names => auth_names,
|
|
2517
|
+
:return_type => return_type
|
|
2518
|
+
)
|
|
2519
|
+
|
|
2520
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2521
|
+
if @api_client.config.debugging
|
|
2522
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2523
|
+
end
|
|
2524
|
+
return data, status_code, headers
|
|
2525
|
+
end
|
|
2526
|
+
|
|
2527
|
+
# Organization disclosures (climate and diversity)
|
|
2528
|
+
# @param id [String]
|
|
2529
|
+
# @param [Hash] opts the optional parameters
|
|
2530
|
+
# @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.
|
|
2531
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
2532
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2533
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2534
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2535
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2536
|
+
# @return [OrgDisclosuresResponse]
|
|
2537
|
+
def companies_org_disclosures(id, opts = {})
|
|
2538
|
+
data, _status_code, _headers = companies_org_disclosures_with_http_info(id, opts)
|
|
2539
|
+
data
|
|
2540
|
+
end
|
|
2541
|
+
|
|
2542
|
+
# Organization disclosures (climate and diversity)
|
|
2543
|
+
# @param id [String]
|
|
2544
|
+
# @param [Hash] opts the optional parameters
|
|
2545
|
+
# @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.
|
|
2546
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
2547
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2548
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2549
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2550
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2551
|
+
# @return [Array<(OrgDisclosuresResponse, Integer, Hash)>] OrgDisclosuresResponse data, response status code and response headers
|
|
2552
|
+
def companies_org_disclosures_with_http_info(id, opts = {})
|
|
2553
|
+
if @api_client.config.debugging
|
|
2554
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_org_disclosures ...'
|
|
2555
|
+
end
|
|
2556
|
+
# verify the required parameter 'id' is set
|
|
2557
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
2558
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_org_disclosures"
|
|
2559
|
+
end
|
|
2560
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
2561
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_org_disclosures, must be smaller than or equal to 500.'
|
|
2562
|
+
end
|
|
2563
|
+
|
|
2564
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
2565
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_org_disclosures, must be greater than or equal to 1.'
|
|
2566
|
+
end
|
|
2567
|
+
|
|
2568
|
+
allowable_values = ["company", "group"]
|
|
2569
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
2570
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
2571
|
+
end
|
|
2572
|
+
# resource path
|
|
2573
|
+
local_var_path = '/api/v1/companies/{id}/org_disclosures'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
2574
|
+
|
|
2575
|
+
# query parameters
|
|
2576
|
+
query_params = opts[:query_params] || {}
|
|
2577
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
2578
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
2579
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
2580
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
2581
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
2582
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
2583
|
+
|
|
2584
|
+
# header parameters
|
|
2585
|
+
header_params = opts[:header_params] || {}
|
|
2586
|
+
# HTTP header 'Accept' (if needed)
|
|
2587
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2588
|
+
|
|
2589
|
+
# form parameters
|
|
2590
|
+
form_params = opts[:form_params] || {}
|
|
2591
|
+
|
|
2592
|
+
# http body (model)
|
|
2593
|
+
post_body = opts[:debug_body]
|
|
2594
|
+
|
|
2595
|
+
# return_type
|
|
2596
|
+
return_type = opts[:debug_return_type] || 'OrgDisclosuresResponse'
|
|
2597
|
+
|
|
2598
|
+
# auth_names
|
|
2599
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
2600
|
+
|
|
2601
|
+
new_options = opts.merge(
|
|
2602
|
+
:operation => :"CompaniesApi.companies_org_disclosures",
|
|
2603
|
+
:header_params => header_params,
|
|
2604
|
+
:query_params => query_params,
|
|
2605
|
+
:form_params => form_params,
|
|
2606
|
+
:body => post_body,
|
|
2607
|
+
:auth_names => auth_names,
|
|
2608
|
+
:return_type => return_type
|
|
2609
|
+
)
|
|
2610
|
+
|
|
2611
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2612
|
+
if @api_client.config.debugging
|
|
2613
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_org_disclosures\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2614
|
+
end
|
|
2615
|
+
return data, status_code, headers
|
|
2616
|
+
end
|
|
2617
|
+
|
|
2618
|
+
# Organization relationships
|
|
2619
|
+
# @param id [String]
|
|
2620
|
+
# @param [Hash] opts the optional parameters
|
|
2621
|
+
# @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.
|
|
2622
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
2623
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2624
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2625
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2626
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2627
|
+
# @return [OrgRelationshipsResponse]
|
|
2628
|
+
def companies_org_relationships(id, opts = {})
|
|
2629
|
+
data, _status_code, _headers = companies_org_relationships_with_http_info(id, opts)
|
|
2630
|
+
data
|
|
2631
|
+
end
|
|
2632
|
+
|
|
2633
|
+
# Organization relationships
|
|
2634
|
+
# @param id [String]
|
|
2635
|
+
# @param [Hash] opts the optional parameters
|
|
2636
|
+
# @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.
|
|
2637
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
2638
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2639
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2640
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2641
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2642
|
+
# @return [Array<(OrgRelationshipsResponse, Integer, Hash)>] OrgRelationshipsResponse data, response status code and response headers
|
|
2643
|
+
def companies_org_relationships_with_http_info(id, opts = {})
|
|
2644
|
+
if @api_client.config.debugging
|
|
2645
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_org_relationships ...'
|
|
2646
|
+
end
|
|
2647
|
+
# verify the required parameter 'id' is set
|
|
2648
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
2649
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_org_relationships"
|
|
2650
|
+
end
|
|
2651
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
2652
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_org_relationships, must be smaller than or equal to 500.'
|
|
2653
|
+
end
|
|
2654
|
+
|
|
2655
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
2656
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_org_relationships, must be greater than or equal to 1.'
|
|
2657
|
+
end
|
|
2658
|
+
|
|
2659
|
+
allowable_values = ["company", "group"]
|
|
2660
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
2661
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
2662
|
+
end
|
|
2663
|
+
# resource path
|
|
2664
|
+
local_var_path = '/api/v1/companies/{id}/org_relationships'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
2665
|
+
|
|
2666
|
+
# query parameters
|
|
2667
|
+
query_params = opts[:query_params] || {}
|
|
2668
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
2669
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
2670
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
2671
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
2672
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
2673
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
2674
|
+
|
|
2675
|
+
# header parameters
|
|
2676
|
+
header_params = opts[:header_params] || {}
|
|
2677
|
+
# HTTP header 'Accept' (if needed)
|
|
2678
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2679
|
+
|
|
2680
|
+
# form parameters
|
|
2681
|
+
form_params = opts[:form_params] || {}
|
|
2682
|
+
|
|
2683
|
+
# http body (model)
|
|
2684
|
+
post_body = opts[:debug_body]
|
|
2685
|
+
|
|
2686
|
+
# return_type
|
|
2687
|
+
return_type = opts[:debug_return_type] || 'OrgRelationshipsResponse'
|
|
2688
|
+
|
|
2689
|
+
# auth_names
|
|
2690
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
2691
|
+
|
|
2692
|
+
new_options = opts.merge(
|
|
2693
|
+
:operation => :"CompaniesApi.companies_org_relationships",
|
|
2694
|
+
:header_params => header_params,
|
|
2695
|
+
:query_params => query_params,
|
|
2696
|
+
:form_params => form_params,
|
|
2697
|
+
:body => post_body,
|
|
2698
|
+
:auth_names => auth_names,
|
|
2699
|
+
:return_type => return_type
|
|
2700
|
+
)
|
|
2701
|
+
|
|
2702
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2703
|
+
if @api_client.config.debugging
|
|
2704
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_org_relationships\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2705
|
+
end
|
|
2706
|
+
return data, status_code, headers
|
|
2707
|
+
end
|
|
2708
|
+
|
|
2709
|
+
# Ownership percentages
|
|
2710
|
+
# @param id [String]
|
|
2711
|
+
# @param [Hash] opts the optional parameters
|
|
2712
|
+
# @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.
|
|
2713
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
2714
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2715
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2716
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2717
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2718
|
+
# @return [OwnershipPercentagesResponse]
|
|
2719
|
+
def companies_ownership_percentages(id, opts = {})
|
|
2720
|
+
data, _status_code, _headers = companies_ownership_percentages_with_http_info(id, opts)
|
|
2721
|
+
data
|
|
2722
|
+
end
|
|
2723
|
+
|
|
2724
|
+
# Ownership percentages
|
|
2725
|
+
# @param id [String]
|
|
2726
|
+
# @param [Hash] opts the optional parameters
|
|
2727
|
+
# @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.
|
|
2728
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
2729
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2730
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2731
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2732
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2733
|
+
# @return [Array<(OwnershipPercentagesResponse, Integer, Hash)>] OwnershipPercentagesResponse data, response status code and response headers
|
|
2734
|
+
def companies_ownership_percentages_with_http_info(id, opts = {})
|
|
2735
|
+
if @api_client.config.debugging
|
|
2736
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_ownership_percentages ...'
|
|
2737
|
+
end
|
|
2738
|
+
# verify the required parameter 'id' is set
|
|
2739
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
2740
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_ownership_percentages"
|
|
2741
|
+
end
|
|
2742
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
2743
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_ownership_percentages, must be smaller than or equal to 500.'
|
|
2744
|
+
end
|
|
2745
|
+
|
|
2746
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
2747
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_ownership_percentages, must be greater than or equal to 1.'
|
|
2748
|
+
end
|
|
2749
|
+
|
|
2750
|
+
allowable_values = ["company", "group"]
|
|
2751
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
2752
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
2753
|
+
end
|
|
2754
|
+
# resource path
|
|
2755
|
+
local_var_path = '/api/v1/companies/{id}/ownership_percentages'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
2756
|
+
|
|
2757
|
+
# query parameters
|
|
2758
|
+
query_params = opts[:query_params] || {}
|
|
2759
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
2760
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
2761
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
2762
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
2763
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
2764
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
2765
|
+
|
|
2766
|
+
# header parameters
|
|
2767
|
+
header_params = opts[:header_params] || {}
|
|
2768
|
+
# HTTP header 'Accept' (if needed)
|
|
2769
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2770
|
+
|
|
2771
|
+
# form parameters
|
|
2772
|
+
form_params = opts[:form_params] || {}
|
|
2773
|
+
|
|
2774
|
+
# http body (model)
|
|
2775
|
+
post_body = opts[:debug_body]
|
|
2776
|
+
|
|
2777
|
+
# return_type
|
|
2778
|
+
return_type = opts[:debug_return_type] || 'OwnershipPercentagesResponse'
|
|
2779
|
+
|
|
2780
|
+
# auth_names
|
|
2781
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
2782
|
+
|
|
2783
|
+
new_options = opts.merge(
|
|
2784
|
+
:operation => :"CompaniesApi.companies_ownership_percentages",
|
|
2785
|
+
:header_params => header_params,
|
|
2786
|
+
:query_params => query_params,
|
|
2787
|
+
:form_params => form_params,
|
|
2788
|
+
:body => post_body,
|
|
2789
|
+
:auth_names => auth_names,
|
|
2790
|
+
:return_type => return_type
|
|
2791
|
+
)
|
|
2792
|
+
|
|
2793
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2794
|
+
if @api_client.config.debugging
|
|
2795
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_ownership_percentages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2796
|
+
end
|
|
2797
|
+
return data, status_code, headers
|
|
2798
|
+
end
|
|
2799
|
+
|
|
2800
|
+
# Ownership and control positions
|
|
2801
|
+
# @param id [String]
|
|
2802
|
+
# @param [Hash] opts the optional parameters
|
|
2803
|
+
# @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.
|
|
2804
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
2805
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2806
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2807
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2808
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2809
|
+
# @return [OwnershipPositionsResponse]
|
|
2810
|
+
def companies_ownership_positions(id, opts = {})
|
|
2811
|
+
data, _status_code, _headers = companies_ownership_positions_with_http_info(id, opts)
|
|
2812
|
+
data
|
|
2813
|
+
end
|
|
2814
|
+
|
|
2815
|
+
# Ownership and control positions
|
|
2816
|
+
# @param id [String]
|
|
2817
|
+
# @param [Hash] opts the optional parameters
|
|
2818
|
+
# @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.
|
|
2819
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
2820
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2821
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2822
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2823
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2824
|
+
# @return [Array<(OwnershipPositionsResponse, Integer, Hash)>] OwnershipPositionsResponse data, response status code and response headers
|
|
2825
|
+
def companies_ownership_positions_with_http_info(id, opts = {})
|
|
2826
|
+
if @api_client.config.debugging
|
|
2827
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_ownership_positions ...'
|
|
2828
|
+
end
|
|
2829
|
+
# verify the required parameter 'id' is set
|
|
2830
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
2831
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_ownership_positions"
|
|
2832
|
+
end
|
|
2833
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
2834
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_ownership_positions, must be smaller than or equal to 500.'
|
|
2835
|
+
end
|
|
2836
|
+
|
|
2837
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
2838
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_ownership_positions, must be greater than or equal to 1.'
|
|
2839
|
+
end
|
|
2840
|
+
|
|
2841
|
+
allowable_values = ["company", "group"]
|
|
2842
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
2843
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
2844
|
+
end
|
|
2845
|
+
# resource path
|
|
2846
|
+
local_var_path = '/api/v1/companies/{id}/ownership_positions'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
2847
|
+
|
|
2848
|
+
# query parameters
|
|
2849
|
+
query_params = opts[:query_params] || {}
|
|
2850
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
2851
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
2852
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
2853
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
2854
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
2855
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
2856
|
+
|
|
2857
|
+
# header parameters
|
|
2858
|
+
header_params = opts[:header_params] || {}
|
|
2859
|
+
# HTTP header 'Accept' (if needed)
|
|
2860
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2861
|
+
|
|
2862
|
+
# form parameters
|
|
2863
|
+
form_params = opts[:form_params] || {}
|
|
2864
|
+
|
|
2865
|
+
# http body (model)
|
|
2866
|
+
post_body = opts[:debug_body]
|
|
2867
|
+
|
|
2868
|
+
# return_type
|
|
2869
|
+
return_type = opts[:debug_return_type] || 'OwnershipPositionsResponse'
|
|
2870
|
+
|
|
2871
|
+
# auth_names
|
|
2872
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
2873
|
+
|
|
2874
|
+
new_options = opts.merge(
|
|
2875
|
+
:operation => :"CompaniesApi.companies_ownership_positions",
|
|
2876
|
+
:header_params => header_params,
|
|
2877
|
+
:query_params => query_params,
|
|
2878
|
+
:form_params => form_params,
|
|
2879
|
+
:body => post_body,
|
|
2880
|
+
:auth_names => auth_names,
|
|
2881
|
+
:return_type => return_type
|
|
2882
|
+
)
|
|
2883
|
+
|
|
2884
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2885
|
+
if @api_client.config.debugging
|
|
2886
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_ownership_positions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2887
|
+
end
|
|
2888
|
+
return data, status_code, headers
|
|
2889
|
+
end
|
|
2890
|
+
|
|
2891
|
+
# FDA decision dates (PDUFA) and catalysts
|
|
2892
|
+
# @param id [String]
|
|
2893
|
+
# @param [Hash] opts the optional parameters
|
|
2894
|
+
# @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.
|
|
2895
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
2896
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2897
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2898
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2899
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2900
|
+
# @return [PdufaDatesResponse]
|
|
2901
|
+
def companies_pdufa_dates(id, opts = {})
|
|
2902
|
+
data, _status_code, _headers = companies_pdufa_dates_with_http_info(id, opts)
|
|
2903
|
+
data
|
|
2904
|
+
end
|
|
2905
|
+
|
|
2906
|
+
# FDA decision dates (PDUFA) and catalysts
|
|
2907
|
+
# @param id [String]
|
|
2908
|
+
# @param [Hash] opts the optional parameters
|
|
2909
|
+
# @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.
|
|
2910
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
2911
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2912
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2913
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2914
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2915
|
+
# @return [Array<(PdufaDatesResponse, Integer, Hash)>] PdufaDatesResponse data, response status code and response headers
|
|
2916
|
+
def companies_pdufa_dates_with_http_info(id, opts = {})
|
|
2917
|
+
if @api_client.config.debugging
|
|
2918
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_pdufa_dates ...'
|
|
2919
|
+
end
|
|
2920
|
+
# verify the required parameter 'id' is set
|
|
2921
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
2922
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_pdufa_dates"
|
|
2923
|
+
end
|
|
2924
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
2925
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_pdufa_dates, must be smaller than or equal to 500.'
|
|
2926
|
+
end
|
|
2927
|
+
|
|
2928
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
2929
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_pdufa_dates, must be greater than or equal to 1.'
|
|
2930
|
+
end
|
|
2931
|
+
|
|
2932
|
+
allowable_values = ["company", "group"]
|
|
2933
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
2934
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
2935
|
+
end
|
|
2936
|
+
# resource path
|
|
2937
|
+
local_var_path = '/api/v1/companies/{id}/pdufa_dates'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
2938
|
+
|
|
2939
|
+
# query parameters
|
|
2940
|
+
query_params = opts[:query_params] || {}
|
|
2941
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
2942
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
2943
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
2944
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
2945
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
2946
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
2947
|
+
|
|
2948
|
+
# header parameters
|
|
2949
|
+
header_params = opts[:header_params] || {}
|
|
2950
|
+
# HTTP header 'Accept' (if needed)
|
|
2951
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2952
|
+
|
|
2953
|
+
# form parameters
|
|
2954
|
+
form_params = opts[:form_params] || {}
|
|
2955
|
+
|
|
2956
|
+
# http body (model)
|
|
2957
|
+
post_body = opts[:debug_body]
|
|
2958
|
+
|
|
2959
|
+
# return_type
|
|
2960
|
+
return_type = opts[:debug_return_type] || 'PdufaDatesResponse'
|
|
2961
|
+
|
|
2962
|
+
# auth_names
|
|
2963
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
2964
|
+
|
|
2965
|
+
new_options = opts.merge(
|
|
2966
|
+
:operation => :"CompaniesApi.companies_pdufa_dates",
|
|
2967
|
+
:header_params => header_params,
|
|
2968
|
+
:query_params => query_params,
|
|
2969
|
+
:form_params => form_params,
|
|
2970
|
+
:body => post_body,
|
|
2971
|
+
:auth_names => auth_names,
|
|
2972
|
+
:return_type => return_type
|
|
2973
|
+
)
|
|
2974
|
+
|
|
2975
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2976
|
+
if @api_client.config.debugging
|
|
2977
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_pdufa_dates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2978
|
+
end
|
|
2979
|
+
return data, status_code, headers
|
|
2980
|
+
end
|
|
2981
|
+
|
|
2982
|
+
# Program licensing candidates
|
|
2983
|
+
# @param id [String]
|
|
2984
|
+
# @param [Hash] opts the optional parameters
|
|
2985
|
+
# @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.
|
|
2986
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
2987
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2988
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2989
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2990
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2991
|
+
# @return [ProgramLicensingCandidatesResponse]
|
|
2992
|
+
def companies_program_licensing_candidates(id, opts = {})
|
|
2993
|
+
data, _status_code, _headers = companies_program_licensing_candidates_with_http_info(id, opts)
|
|
2994
|
+
data
|
|
2995
|
+
end
|
|
2996
|
+
|
|
2997
|
+
# Program licensing candidates
|
|
2998
|
+
# @param id [String]
|
|
2999
|
+
# @param [Hash] opts the optional parameters
|
|
3000
|
+
# @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.
|
|
3001
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
3002
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
3003
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3004
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3005
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3006
|
+
# @return [Array<(ProgramLicensingCandidatesResponse, Integer, Hash)>] ProgramLicensingCandidatesResponse data, response status code and response headers
|
|
3007
|
+
def companies_program_licensing_candidates_with_http_info(id, opts = {})
|
|
3008
|
+
if @api_client.config.debugging
|
|
3009
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_program_licensing_candidates ...'
|
|
3010
|
+
end
|
|
3011
|
+
# verify the required parameter 'id' is set
|
|
3012
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
3013
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_program_licensing_candidates"
|
|
3014
|
+
end
|
|
3015
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
3016
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_program_licensing_candidates, must be smaller than or equal to 500.'
|
|
3017
|
+
end
|
|
3018
|
+
|
|
3019
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
3020
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_program_licensing_candidates, must be greater than or equal to 1.'
|
|
3021
|
+
end
|
|
3022
|
+
|
|
3023
|
+
allowable_values = ["company", "group"]
|
|
3024
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
3025
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
3026
|
+
end
|
|
3027
|
+
# resource path
|
|
3028
|
+
local_var_path = '/api/v1/companies/{id}/program_licensing_candidates'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
3029
|
+
|
|
3030
|
+
# query parameters
|
|
3031
|
+
query_params = opts[:query_params] || {}
|
|
3032
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
3033
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
3034
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
3035
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
3036
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
3037
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
3038
|
+
|
|
3039
|
+
# header parameters
|
|
3040
|
+
header_params = opts[:header_params] || {}
|
|
3041
|
+
# HTTP header 'Accept' (if needed)
|
|
3042
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
3043
|
+
|
|
3044
|
+
# form parameters
|
|
3045
|
+
form_params = opts[:form_params] || {}
|
|
3046
|
+
|
|
3047
|
+
# http body (model)
|
|
3048
|
+
post_body = opts[:debug_body]
|
|
3049
|
+
|
|
3050
|
+
# return_type
|
|
3051
|
+
return_type = opts[:debug_return_type] || 'ProgramLicensingCandidatesResponse'
|
|
3052
|
+
|
|
3053
|
+
# auth_names
|
|
3054
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
3055
|
+
|
|
3056
|
+
new_options = opts.merge(
|
|
3057
|
+
:operation => :"CompaniesApi.companies_program_licensing_candidates",
|
|
3058
|
+
:header_params => header_params,
|
|
3059
|
+
:query_params => query_params,
|
|
3060
|
+
:form_params => form_params,
|
|
3061
|
+
:body => post_body,
|
|
3062
|
+
:auth_names => auth_names,
|
|
3063
|
+
:return_type => return_type
|
|
3064
|
+
)
|
|
3065
|
+
|
|
3066
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
3067
|
+
if @api_client.config.debugging
|
|
3068
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_program_licensing_candidates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3069
|
+
end
|
|
3070
|
+
return data, status_code, headers
|
|
3071
|
+
end
|
|
3072
|
+
|
|
3073
|
+
# FDA recalls
|
|
3074
|
+
# @param id [String]
|
|
3075
|
+
# @param [Hash] opts the optional parameters
|
|
3076
|
+
# @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.
|
|
3077
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
3078
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
3079
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3080
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3081
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3082
|
+
# @return [RecallsResponse]
|
|
3083
|
+
def companies_recalls(id, opts = {})
|
|
3084
|
+
data, _status_code, _headers = companies_recalls_with_http_info(id, opts)
|
|
3085
|
+
data
|
|
3086
|
+
end
|
|
3087
|
+
|
|
3088
|
+
# FDA recalls
|
|
3089
|
+
# @param id [String]
|
|
3090
|
+
# @param [Hash] opts the optional parameters
|
|
3091
|
+
# @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.
|
|
3092
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
3093
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
3094
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3095
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3096
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3097
|
+
# @return [Array<(RecallsResponse, Integer, Hash)>] RecallsResponse data, response status code and response headers
|
|
3098
|
+
def companies_recalls_with_http_info(id, opts = {})
|
|
3099
|
+
if @api_client.config.debugging
|
|
3100
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_recalls ...'
|
|
3101
|
+
end
|
|
3102
|
+
# verify the required parameter 'id' is set
|
|
3103
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
3104
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_recalls"
|
|
3105
|
+
end
|
|
3106
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
3107
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_recalls, must be smaller than or equal to 500.'
|
|
3108
|
+
end
|
|
3109
|
+
|
|
3110
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
3111
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_recalls, must be greater than or equal to 1.'
|
|
3112
|
+
end
|
|
3113
|
+
|
|
3114
|
+
allowable_values = ["company", "group"]
|
|
3115
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
3116
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
3117
|
+
end
|
|
3118
|
+
# resource path
|
|
3119
|
+
local_var_path = '/api/v1/companies/{id}/recalls'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
3120
|
+
|
|
3121
|
+
# query parameters
|
|
3122
|
+
query_params = opts[:query_params] || {}
|
|
3123
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
3124
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
3125
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
3126
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
3127
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
3128
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
3129
|
+
|
|
3130
|
+
# header parameters
|
|
3131
|
+
header_params = opts[:header_params] || {}
|
|
3132
|
+
# HTTP header 'Accept' (if needed)
|
|
3133
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
3134
|
+
|
|
3135
|
+
# form parameters
|
|
3136
|
+
form_params = opts[:form_params] || {}
|
|
3137
|
+
|
|
3138
|
+
# http body (model)
|
|
3139
|
+
post_body = opts[:debug_body]
|
|
3140
|
+
|
|
3141
|
+
# return_type
|
|
3142
|
+
return_type = opts[:debug_return_type] || 'RecallsResponse'
|
|
3143
|
+
|
|
3144
|
+
# auth_names
|
|
3145
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
3146
|
+
|
|
3147
|
+
new_options = opts.merge(
|
|
3148
|
+
:operation => :"CompaniesApi.companies_recalls",
|
|
3149
|
+
:header_params => header_params,
|
|
3150
|
+
:query_params => query_params,
|
|
3151
|
+
:form_params => form_params,
|
|
3152
|
+
:body => post_body,
|
|
3153
|
+
:auth_names => auth_names,
|
|
3154
|
+
:return_type => return_type
|
|
3155
|
+
)
|
|
3156
|
+
|
|
3157
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
3158
|
+
if @api_client.config.debugging
|
|
3159
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_recalls\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3160
|
+
end
|
|
3161
|
+
return data, status_code, headers
|
|
3162
|
+
end
|
|
3163
|
+
|
|
3164
|
+
# Trial recruitment duration by sponsor and phase
|
|
3165
|
+
# @param id [String]
|
|
3166
|
+
# @param [Hash] opts the optional parameters
|
|
3167
|
+
# @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.
|
|
3168
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
3169
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
3170
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3171
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3172
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3173
|
+
# @return [SponsorRecruitmentByPhaseResponse]
|
|
3174
|
+
def companies_sponsor_recruitment_by_phase(id, opts = {})
|
|
3175
|
+
data, _status_code, _headers = companies_sponsor_recruitment_by_phase_with_http_info(id, opts)
|
|
3176
|
+
data
|
|
3177
|
+
end
|
|
3178
|
+
|
|
3179
|
+
# Trial recruitment duration by sponsor and phase
|
|
3180
|
+
# @param id [String]
|
|
3181
|
+
# @param [Hash] opts the optional parameters
|
|
3182
|
+
# @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.
|
|
3183
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
3184
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
3185
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3186
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3187
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3188
|
+
# @return [Array<(SponsorRecruitmentByPhaseResponse, Integer, Hash)>] SponsorRecruitmentByPhaseResponse data, response status code and response headers
|
|
3189
|
+
def companies_sponsor_recruitment_by_phase_with_http_info(id, opts = {})
|
|
3190
|
+
if @api_client.config.debugging
|
|
3191
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_sponsor_recruitment_by_phase ...'
|
|
3192
|
+
end
|
|
3193
|
+
# verify the required parameter 'id' is set
|
|
3194
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
3195
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_sponsor_recruitment_by_phase"
|
|
3196
|
+
end
|
|
3197
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
3198
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_recruitment_by_phase, must be smaller than or equal to 500.'
|
|
3199
|
+
end
|
|
3200
|
+
|
|
3201
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
3202
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_recruitment_by_phase, must be greater than or equal to 1.'
|
|
3203
|
+
end
|
|
3204
|
+
|
|
3205
|
+
allowable_values = ["company", "group"]
|
|
3206
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
3207
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
3208
|
+
end
|
|
3209
|
+
# resource path
|
|
3210
|
+
local_var_path = '/api/v1/companies/{id}/sponsor_recruitment_by_phase'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
3211
|
+
|
|
3212
|
+
# query parameters
|
|
3213
|
+
query_params = opts[:query_params] || {}
|
|
3214
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
3215
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
3216
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
3217
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
3218
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
3219
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
3220
|
+
|
|
3221
|
+
# header parameters
|
|
3222
|
+
header_params = opts[:header_params] || {}
|
|
3223
|
+
# HTTP header 'Accept' (if needed)
|
|
3224
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
3225
|
+
|
|
3226
|
+
# form parameters
|
|
3227
|
+
form_params = opts[:form_params] || {}
|
|
3228
|
+
|
|
3229
|
+
# http body (model)
|
|
3230
|
+
post_body = opts[:debug_body]
|
|
3231
|
+
|
|
3232
|
+
# return_type
|
|
3233
|
+
return_type = opts[:debug_return_type] || 'SponsorRecruitmentByPhaseResponse'
|
|
1323
3234
|
|
|
1324
3235
|
# auth_names
|
|
1325
3236
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1326
3237
|
|
|
1327
3238
|
new_options = opts.merge(
|
|
1328
|
-
:operation => :"CompaniesApi.
|
|
3239
|
+
:operation => :"CompaniesApi.companies_sponsor_recruitment_by_phase",
|
|
1329
3240
|
:header_params => header_params,
|
|
1330
3241
|
:query_params => query_params,
|
|
1331
3242
|
:form_params => form_params,
|
|
@@ -1336,12 +3247,12 @@ module PharmaObservatory
|
|
|
1336
3247
|
|
|
1337
3248
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1338
3249
|
if @api_client.config.debugging
|
|
1339
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
3250
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_sponsor_recruitment_by_phase\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1340
3251
|
end
|
|
1341
3252
|
return data, status_code, headers
|
|
1342
3253
|
end
|
|
1343
3254
|
|
|
1344
|
-
#
|
|
3255
|
+
# Trial recruitment duration by sponsor
|
|
1345
3256
|
# @param id [String]
|
|
1346
3257
|
# @param [Hash] opts the optional parameters
|
|
1347
3258
|
# @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.
|
|
@@ -1350,13 +3261,13 @@ module PharmaObservatory
|
|
|
1350
3261
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1351
3262
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1352
3263
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1353
|
-
# @return [
|
|
1354
|
-
def
|
|
1355
|
-
data, _status_code, _headers =
|
|
3264
|
+
# @return [SponsorRecruitmentDurationResponse]
|
|
3265
|
+
def companies_sponsor_recruitment_duration(id, opts = {})
|
|
3266
|
+
data, _status_code, _headers = companies_sponsor_recruitment_duration_with_http_info(id, opts)
|
|
1356
3267
|
data
|
|
1357
3268
|
end
|
|
1358
3269
|
|
|
1359
|
-
#
|
|
3270
|
+
# Trial recruitment duration by sponsor
|
|
1360
3271
|
# @param id [String]
|
|
1361
3272
|
# @param [Hash] opts the optional parameters
|
|
1362
3273
|
# @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.
|
|
@@ -1365,21 +3276,21 @@ module PharmaObservatory
|
|
|
1365
3276
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1366
3277
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1367
3278
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1368
|
-
# @return [Array<(
|
|
1369
|
-
def
|
|
3279
|
+
# @return [Array<(SponsorRecruitmentDurationResponse, Integer, Hash)>] SponsorRecruitmentDurationResponse data, response status code and response headers
|
|
3280
|
+
def companies_sponsor_recruitment_duration_with_http_info(id, opts = {})
|
|
1370
3281
|
if @api_client.config.debugging
|
|
1371
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
3282
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_sponsor_recruitment_duration ...'
|
|
1372
3283
|
end
|
|
1373
3284
|
# verify the required parameter 'id' is set
|
|
1374
3285
|
if @api_client.config.client_side_validation && id.nil?
|
|
1375
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.
|
|
3286
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_sponsor_recruitment_duration"
|
|
1376
3287
|
end
|
|
1377
3288
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1378
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
3289
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_recruitment_duration, must be smaller than or equal to 500.'
|
|
1379
3290
|
end
|
|
1380
3291
|
|
|
1381
3292
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1382
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
3293
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_recruitment_duration, must be greater than or equal to 1.'
|
|
1383
3294
|
end
|
|
1384
3295
|
|
|
1385
3296
|
allowable_values = ["company", "group"]
|
|
@@ -1387,7 +3298,7 @@ module PharmaObservatory
|
|
|
1387
3298
|
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
1388
3299
|
end
|
|
1389
3300
|
# resource path
|
|
1390
|
-
local_var_path = '/api/v1/companies/{id}/
|
|
3301
|
+
local_var_path = '/api/v1/companies/{id}/sponsor_recruitment_duration'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1391
3302
|
|
|
1392
3303
|
# query parameters
|
|
1393
3304
|
query_params = opts[:query_params] || {}
|
|
@@ -1410,13 +3321,13 @@ module PharmaObservatory
|
|
|
1410
3321
|
post_body = opts[:debug_body]
|
|
1411
3322
|
|
|
1412
3323
|
# return_type
|
|
1413
|
-
return_type = opts[:debug_return_type] || '
|
|
3324
|
+
return_type = opts[:debug_return_type] || 'SponsorRecruitmentDurationResponse'
|
|
1414
3325
|
|
|
1415
3326
|
# auth_names
|
|
1416
3327
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1417
3328
|
|
|
1418
3329
|
new_options = opts.merge(
|
|
1419
|
-
:operation => :"CompaniesApi.
|
|
3330
|
+
:operation => :"CompaniesApi.companies_sponsor_recruitment_duration",
|
|
1420
3331
|
:header_params => header_params,
|
|
1421
3332
|
:query_params => query_params,
|
|
1422
3333
|
:form_params => form_params,
|
|
@@ -1427,12 +3338,12 @@ module PharmaObservatory
|
|
|
1427
3338
|
|
|
1428
3339
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1429
3340
|
if @api_client.config.debugging
|
|
1430
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
3341
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_sponsor_recruitment_duration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1431
3342
|
end
|
|
1432
3343
|
return data, status_code, headers
|
|
1433
3344
|
end
|
|
1434
3345
|
|
|
1435
|
-
#
|
|
3346
|
+
# Trial-start forecast by sponsor
|
|
1436
3347
|
# @param id [String]
|
|
1437
3348
|
# @param [Hash] opts the optional parameters
|
|
1438
3349
|
# @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.
|
|
@@ -1441,13 +3352,13 @@ module PharmaObservatory
|
|
|
1441
3352
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1442
3353
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1443
3354
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1444
|
-
# @return [
|
|
1445
|
-
def
|
|
1446
|
-
data, _status_code, _headers =
|
|
3355
|
+
# @return [SponsorTrialStartForecastResponse]
|
|
3356
|
+
def companies_sponsor_trial_start_forecast(id, opts = {})
|
|
3357
|
+
data, _status_code, _headers = companies_sponsor_trial_start_forecast_with_http_info(id, opts)
|
|
1447
3358
|
data
|
|
1448
3359
|
end
|
|
1449
3360
|
|
|
1450
|
-
#
|
|
3361
|
+
# Trial-start forecast by sponsor
|
|
1451
3362
|
# @param id [String]
|
|
1452
3363
|
# @param [Hash] opts the optional parameters
|
|
1453
3364
|
# @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.
|
|
@@ -1456,21 +3367,21 @@ module PharmaObservatory
|
|
|
1456
3367
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1457
3368
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1458
3369
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1459
|
-
# @return [Array<(
|
|
1460
|
-
def
|
|
3370
|
+
# @return [Array<(SponsorTrialStartForecastResponse, Integer, Hash)>] SponsorTrialStartForecastResponse data, response status code and response headers
|
|
3371
|
+
def companies_sponsor_trial_start_forecast_with_http_info(id, opts = {})
|
|
1461
3372
|
if @api_client.config.debugging
|
|
1462
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
3373
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_sponsor_trial_start_forecast ...'
|
|
1463
3374
|
end
|
|
1464
3375
|
# verify the required parameter 'id' is set
|
|
1465
3376
|
if @api_client.config.client_side_validation && id.nil?
|
|
1466
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.
|
|
3377
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_sponsor_trial_start_forecast"
|
|
1467
3378
|
end
|
|
1468
3379
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1469
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
3380
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_trial_start_forecast, must be smaller than or equal to 500.'
|
|
1470
3381
|
end
|
|
1471
3382
|
|
|
1472
3383
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1473
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
3384
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_trial_start_forecast, must be greater than or equal to 1.'
|
|
1474
3385
|
end
|
|
1475
3386
|
|
|
1476
3387
|
allowable_values = ["company", "group"]
|
|
@@ -1478,7 +3389,7 @@ module PharmaObservatory
|
|
|
1478
3389
|
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
1479
3390
|
end
|
|
1480
3391
|
# resource path
|
|
1481
|
-
local_var_path = '/api/v1/companies/{id}/
|
|
3392
|
+
local_var_path = '/api/v1/companies/{id}/sponsor_trial_start_forecast'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1482
3393
|
|
|
1483
3394
|
# query parameters
|
|
1484
3395
|
query_params = opts[:query_params] || {}
|
|
@@ -1501,13 +3412,13 @@ module PharmaObservatory
|
|
|
1501
3412
|
post_body = opts[:debug_body]
|
|
1502
3413
|
|
|
1503
3414
|
# return_type
|
|
1504
|
-
return_type = opts[:debug_return_type] || '
|
|
3415
|
+
return_type = opts[:debug_return_type] || 'SponsorTrialStartForecastResponse'
|
|
1505
3416
|
|
|
1506
3417
|
# auth_names
|
|
1507
3418
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1508
3419
|
|
|
1509
3420
|
new_options = opts.merge(
|
|
1510
|
-
:operation => :"CompaniesApi.
|
|
3421
|
+
:operation => :"CompaniesApi.companies_sponsor_trial_start_forecast",
|
|
1511
3422
|
:header_params => header_params,
|
|
1512
3423
|
:query_params => query_params,
|
|
1513
3424
|
:form_params => form_params,
|
|
@@ -1518,12 +3429,12 @@ module PharmaObservatory
|
|
|
1518
3429
|
|
|
1519
3430
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1520
3431
|
if @api_client.config.debugging
|
|
1521
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
3432
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_sponsor_trial_start_forecast\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1522
3433
|
end
|
|
1523
3434
|
return data, status_code, headers
|
|
1524
3435
|
end
|
|
1525
3436
|
|
|
1526
|
-
#
|
|
3437
|
+
# Sponsor trials
|
|
1527
3438
|
# @param id [String]
|
|
1528
3439
|
# @param [Hash] opts the optional parameters
|
|
1529
3440
|
# @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.
|
|
@@ -1532,13 +3443,13 @@ module PharmaObservatory
|
|
|
1532
3443
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1533
3444
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1534
3445
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1535
|
-
# @return [
|
|
1536
|
-
def
|
|
1537
|
-
data, _status_code, _headers =
|
|
3446
|
+
# @return [SponsorTrialsResponse]
|
|
3447
|
+
def companies_sponsor_trials(id, opts = {})
|
|
3448
|
+
data, _status_code, _headers = companies_sponsor_trials_with_http_info(id, opts)
|
|
1538
3449
|
data
|
|
1539
3450
|
end
|
|
1540
3451
|
|
|
1541
|
-
#
|
|
3452
|
+
# Sponsor trials
|
|
1542
3453
|
# @param id [String]
|
|
1543
3454
|
# @param [Hash] opts the optional parameters
|
|
1544
3455
|
# @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.
|
|
@@ -1547,21 +3458,21 @@ module PharmaObservatory
|
|
|
1547
3458
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1548
3459
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1549
3460
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1550
|
-
# @return [Array<(
|
|
1551
|
-
def
|
|
3461
|
+
# @return [Array<(SponsorTrialsResponse, Integer, Hash)>] SponsorTrialsResponse data, response status code and response headers
|
|
3462
|
+
def companies_sponsor_trials_with_http_info(id, opts = {})
|
|
1552
3463
|
if @api_client.config.debugging
|
|
1553
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
3464
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_sponsor_trials ...'
|
|
1554
3465
|
end
|
|
1555
3466
|
# verify the required parameter 'id' is set
|
|
1556
3467
|
if @api_client.config.client_side_validation && id.nil?
|
|
1557
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.
|
|
3468
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_sponsor_trials"
|
|
1558
3469
|
end
|
|
1559
3470
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1560
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
3471
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_trials, must be smaller than or equal to 500.'
|
|
1561
3472
|
end
|
|
1562
3473
|
|
|
1563
3474
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1564
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
3475
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_trials, must be greater than or equal to 1.'
|
|
1565
3476
|
end
|
|
1566
3477
|
|
|
1567
3478
|
allowable_values = ["company", "group"]
|
|
@@ -1569,7 +3480,7 @@ module PharmaObservatory
|
|
|
1569
3480
|
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
1570
3481
|
end
|
|
1571
3482
|
# resource path
|
|
1572
|
-
local_var_path = '/api/v1/companies/{id}/
|
|
3483
|
+
local_var_path = '/api/v1/companies/{id}/sponsor_trials'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1573
3484
|
|
|
1574
3485
|
# query parameters
|
|
1575
3486
|
query_params = opts[:query_params] || {}
|
|
@@ -1592,13 +3503,13 @@ module PharmaObservatory
|
|
|
1592
3503
|
post_body = opts[:debug_body]
|
|
1593
3504
|
|
|
1594
3505
|
# return_type
|
|
1595
|
-
return_type = opts[:debug_return_type] || '
|
|
3506
|
+
return_type = opts[:debug_return_type] || 'SponsorTrialsResponse'
|
|
1596
3507
|
|
|
1597
3508
|
# auth_names
|
|
1598
3509
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1599
3510
|
|
|
1600
3511
|
new_options = opts.merge(
|
|
1601
|
-
:operation => :"CompaniesApi.
|
|
3512
|
+
:operation => :"CompaniesApi.companies_sponsor_trials",
|
|
1602
3513
|
:header_params => header_params,
|
|
1603
3514
|
:query_params => query_params,
|
|
1604
3515
|
:form_params => form_params,
|
|
@@ -1609,12 +3520,12 @@ module PharmaObservatory
|
|
|
1609
3520
|
|
|
1610
3521
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1611
3522
|
if @api_client.config.debugging
|
|
1612
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
3523
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_sponsor_trials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1613
3524
|
end
|
|
1614
3525
|
return data, status_code, headers
|
|
1615
3526
|
end
|
|
1616
3527
|
|
|
1617
|
-
#
|
|
3528
|
+
# Supplier capability and ESG disclosure
|
|
1618
3529
|
# @param id [String]
|
|
1619
3530
|
# @param [Hash] opts the optional parameters
|
|
1620
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.
|
|
@@ -1623,13 +3534,13 @@ module PharmaObservatory
|
|
|
1623
3534
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1624
3535
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1625
3536
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1626
|
-
# @return [
|
|
1627
|
-
def
|
|
1628
|
-
data, _status_code, _headers =
|
|
3537
|
+
# @return [SupplierCapabilityEsgResponse]
|
|
3538
|
+
def companies_supplier_capability_esg(id, opts = {})
|
|
3539
|
+
data, _status_code, _headers = companies_supplier_capability_esg_with_http_info(id, opts)
|
|
1629
3540
|
data
|
|
1630
3541
|
end
|
|
1631
3542
|
|
|
1632
|
-
#
|
|
3543
|
+
# Supplier capability and ESG disclosure
|
|
1633
3544
|
# @param id [String]
|
|
1634
3545
|
# @param [Hash] opts the optional parameters
|
|
1635
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.
|
|
@@ -1638,21 +3549,21 @@ module PharmaObservatory
|
|
|
1638
3549
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1639
3550
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1640
3551
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1641
|
-
# @return [Array<(
|
|
1642
|
-
def
|
|
3552
|
+
# @return [Array<(SupplierCapabilityEsgResponse, Integer, Hash)>] SupplierCapabilityEsgResponse data, response status code and response headers
|
|
3553
|
+
def companies_supplier_capability_esg_with_http_info(id, opts = {})
|
|
1643
3554
|
if @api_client.config.debugging
|
|
1644
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
3555
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_supplier_capability_esg ...'
|
|
1645
3556
|
end
|
|
1646
3557
|
# verify the required parameter 'id' is set
|
|
1647
3558
|
if @api_client.config.client_side_validation && id.nil?
|
|
1648
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.
|
|
3559
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_supplier_capability_esg"
|
|
1649
3560
|
end
|
|
1650
3561
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1651
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
3562
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_supplier_capability_esg, must be smaller than or equal to 500.'
|
|
1652
3563
|
end
|
|
1653
3564
|
|
|
1654
3565
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1655
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
3566
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_supplier_capability_esg, must be greater than or equal to 1.'
|
|
1656
3567
|
end
|
|
1657
3568
|
|
|
1658
3569
|
allowable_values = ["company", "group"]
|
|
@@ -1660,7 +3571,7 @@ module PharmaObservatory
|
|
|
1660
3571
|
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
1661
3572
|
end
|
|
1662
3573
|
# resource path
|
|
1663
|
-
local_var_path = '/api/v1/companies/{id}/
|
|
3574
|
+
local_var_path = '/api/v1/companies/{id}/supplier_capability_esg'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1664
3575
|
|
|
1665
3576
|
# query parameters
|
|
1666
3577
|
query_params = opts[:query_params] || {}
|
|
@@ -1683,13 +3594,13 @@ module PharmaObservatory
|
|
|
1683
3594
|
post_body = opts[:debug_body]
|
|
1684
3595
|
|
|
1685
3596
|
# return_type
|
|
1686
|
-
return_type = opts[:debug_return_type] || '
|
|
3597
|
+
return_type = opts[:debug_return_type] || 'SupplierCapabilityEsgResponse'
|
|
1687
3598
|
|
|
1688
3599
|
# auth_names
|
|
1689
3600
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1690
3601
|
|
|
1691
3602
|
new_options = opts.merge(
|
|
1692
|
-
:operation => :"CompaniesApi.
|
|
3603
|
+
:operation => :"CompaniesApi.companies_supplier_capability_esg",
|
|
1693
3604
|
:header_params => header_params,
|
|
1694
3605
|
:query_params => query_params,
|
|
1695
3606
|
:form_params => form_params,
|
|
@@ -1700,12 +3611,12 @@ module PharmaObservatory
|
|
|
1700
3611
|
|
|
1701
3612
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1702
3613
|
if @api_client.config.debugging
|
|
1703
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
3614
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_supplier_capability_esg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1704
3615
|
end
|
|
1705
3616
|
return data, status_code, headers
|
|
1706
3617
|
end
|
|
1707
3618
|
|
|
1708
|
-
#
|
|
3619
|
+
# Unmatched product revenue
|
|
1709
3620
|
# @param id [String]
|
|
1710
3621
|
# @param [Hash] opts the optional parameters
|
|
1711
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.
|
|
@@ -1714,13 +3625,13 @@ module PharmaObservatory
|
|
|
1714
3625
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1715
3626
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1716
3627
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1717
|
-
# @return [
|
|
1718
|
-
def
|
|
1719
|
-
data, _status_code, _headers =
|
|
3628
|
+
# @return [UnmatchedProductRevenueResponse]
|
|
3629
|
+
def companies_unmatched_product_revenue(id, opts = {})
|
|
3630
|
+
data, _status_code, _headers = companies_unmatched_product_revenue_with_http_info(id, opts)
|
|
1720
3631
|
data
|
|
1721
3632
|
end
|
|
1722
3633
|
|
|
1723
|
-
#
|
|
3634
|
+
# Unmatched product revenue
|
|
1724
3635
|
# @param id [String]
|
|
1725
3636
|
# @param [Hash] opts the optional parameters
|
|
1726
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.
|
|
@@ -1729,21 +3640,21 @@ module PharmaObservatory
|
|
|
1729
3640
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1730
3641
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1731
3642
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1732
|
-
# @return [Array<(
|
|
1733
|
-
def
|
|
3643
|
+
# @return [Array<(UnmatchedProductRevenueResponse, Integer, Hash)>] UnmatchedProductRevenueResponse data, response status code and response headers
|
|
3644
|
+
def companies_unmatched_product_revenue_with_http_info(id, opts = {})
|
|
1734
3645
|
if @api_client.config.debugging
|
|
1735
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
3646
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_unmatched_product_revenue ...'
|
|
1736
3647
|
end
|
|
1737
3648
|
# verify the required parameter 'id' is set
|
|
1738
3649
|
if @api_client.config.client_side_validation && id.nil?
|
|
1739
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.
|
|
3650
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_unmatched_product_revenue"
|
|
1740
3651
|
end
|
|
1741
3652
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1742
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
3653
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_unmatched_product_revenue, must be smaller than or equal to 500.'
|
|
1743
3654
|
end
|
|
1744
3655
|
|
|
1745
3656
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1746
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
3657
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_unmatched_product_revenue, must be greater than or equal to 1.'
|
|
1747
3658
|
end
|
|
1748
3659
|
|
|
1749
3660
|
allowable_values = ["company", "group"]
|
|
@@ -1751,7 +3662,7 @@ module PharmaObservatory
|
|
|
1751
3662
|
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
1752
3663
|
end
|
|
1753
3664
|
# resource path
|
|
1754
|
-
local_var_path = '/api/v1/companies/{id}/
|
|
3665
|
+
local_var_path = '/api/v1/companies/{id}/unmatched_product_revenue'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1755
3666
|
|
|
1756
3667
|
# query parameters
|
|
1757
3668
|
query_params = opts[:query_params] || {}
|
|
@@ -1774,13 +3685,13 @@ module PharmaObservatory
|
|
|
1774
3685
|
post_body = opts[:debug_body]
|
|
1775
3686
|
|
|
1776
3687
|
# return_type
|
|
1777
|
-
return_type = opts[:debug_return_type] || '
|
|
3688
|
+
return_type = opts[:debug_return_type] || 'UnmatchedProductRevenueResponse'
|
|
1778
3689
|
|
|
1779
3690
|
# auth_names
|
|
1780
3691
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1781
3692
|
|
|
1782
3693
|
new_options = opts.merge(
|
|
1783
|
-
:operation => :"CompaniesApi.
|
|
3694
|
+
:operation => :"CompaniesApi.companies_unmatched_product_revenue",
|
|
1784
3695
|
:header_params => header_params,
|
|
1785
3696
|
:query_params => query_params,
|
|
1786
3697
|
:form_params => form_params,
|
|
@@ -1791,12 +3702,12 @@ module PharmaObservatory
|
|
|
1791
3702
|
|
|
1792
3703
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1793
3704
|
if @api_client.config.debugging
|
|
1794
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
3705
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_unmatched_product_revenue\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1795
3706
|
end
|
|
1796
3707
|
return data, status_code, headers
|
|
1797
3708
|
end
|
|
1798
3709
|
|
|
1799
|
-
#
|
|
3710
|
+
# FDA untitled letters
|
|
1800
3711
|
# @param id [String]
|
|
1801
3712
|
# @param [Hash] opts the optional parameters
|
|
1802
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.
|
|
@@ -1805,13 +3716,13 @@ module PharmaObservatory
|
|
|
1805
3716
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1806
3717
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1807
3718
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1808
|
-
# @return [
|
|
1809
|
-
def
|
|
1810
|
-
data, _status_code, _headers =
|
|
3719
|
+
# @return [UntitledLettersResponse]
|
|
3720
|
+
def companies_untitled_letters(id, opts = {})
|
|
3721
|
+
data, _status_code, _headers = companies_untitled_letters_with_http_info(id, opts)
|
|
1811
3722
|
data
|
|
1812
3723
|
end
|
|
1813
3724
|
|
|
1814
|
-
#
|
|
3725
|
+
# FDA untitled letters
|
|
1815
3726
|
# @param id [String]
|
|
1816
3727
|
# @param [Hash] opts the optional parameters
|
|
1817
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.
|
|
@@ -1820,21 +3731,21 @@ module PharmaObservatory
|
|
|
1820
3731
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1821
3732
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1822
3733
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1823
|
-
# @return [Array<(
|
|
1824
|
-
def
|
|
3734
|
+
# @return [Array<(UntitledLettersResponse, Integer, Hash)>] UntitledLettersResponse data, response status code and response headers
|
|
3735
|
+
def companies_untitled_letters_with_http_info(id, opts = {})
|
|
1825
3736
|
if @api_client.config.debugging
|
|
1826
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
3737
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_untitled_letters ...'
|
|
1827
3738
|
end
|
|
1828
3739
|
# verify the required parameter 'id' is set
|
|
1829
3740
|
if @api_client.config.client_side_validation && id.nil?
|
|
1830
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.
|
|
3741
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_untitled_letters"
|
|
1831
3742
|
end
|
|
1832
3743
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1833
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
3744
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_untitled_letters, must be smaller than or equal to 500.'
|
|
1834
3745
|
end
|
|
1835
3746
|
|
|
1836
3747
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1837
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
3748
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_untitled_letters, must be greater than or equal to 1.'
|
|
1838
3749
|
end
|
|
1839
3750
|
|
|
1840
3751
|
allowable_values = ["company", "group"]
|
|
@@ -1842,7 +3753,7 @@ module PharmaObservatory
|
|
|
1842
3753
|
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
1843
3754
|
end
|
|
1844
3755
|
# resource path
|
|
1845
|
-
local_var_path = '/api/v1/companies/{id}/
|
|
3756
|
+
local_var_path = '/api/v1/companies/{id}/untitled_letters'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1846
3757
|
|
|
1847
3758
|
# query parameters
|
|
1848
3759
|
query_params = opts[:query_params] || {}
|
|
@@ -1865,13 +3776,13 @@ module PharmaObservatory
|
|
|
1865
3776
|
post_body = opts[:debug_body]
|
|
1866
3777
|
|
|
1867
3778
|
# return_type
|
|
1868
|
-
return_type = opts[:debug_return_type] || '
|
|
3779
|
+
return_type = opts[:debug_return_type] || 'UntitledLettersResponse'
|
|
1869
3780
|
|
|
1870
3781
|
# auth_names
|
|
1871
3782
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1872
3783
|
|
|
1873
3784
|
new_options = opts.merge(
|
|
1874
|
-
:operation => :"CompaniesApi.
|
|
3785
|
+
:operation => :"CompaniesApi.companies_untitled_letters",
|
|
1875
3786
|
:header_params => header_params,
|
|
1876
3787
|
:query_params => query_params,
|
|
1877
3788
|
:form_params => form_params,
|
|
@@ -1882,7 +3793,98 @@ module PharmaObservatory
|
|
|
1882
3793
|
|
|
1883
3794
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1884
3795
|
if @api_client.config.debugging
|
|
1885
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
3796
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_untitled_letters\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3797
|
+
end
|
|
3798
|
+
return data, status_code, headers
|
|
3799
|
+
end
|
|
3800
|
+
|
|
3801
|
+
# FDA warning letters
|
|
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 [WarningLettersResponse]
|
|
3811
|
+
def companies_warning_letters(id, opts = {})
|
|
3812
|
+
data, _status_code, _headers = companies_warning_letters_with_http_info(id, opts)
|
|
3813
|
+
data
|
|
3814
|
+
end
|
|
3815
|
+
|
|
3816
|
+
# FDA warning letters
|
|
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<(WarningLettersResponse, Integer, Hash)>] WarningLettersResponse data, response status code and response headers
|
|
3826
|
+
def companies_warning_letters_with_http_info(id, opts = {})
|
|
3827
|
+
if @api_client.config.debugging
|
|
3828
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_warning_letters ...'
|
|
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_warning_letters"
|
|
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_warning_letters, 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_warning_letters, 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}/warning_letters'.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] || 'WarningLettersResponse'
|
|
3871
|
+
|
|
3872
|
+
# auth_names
|
|
3873
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
3874
|
+
|
|
3875
|
+
new_options = opts.merge(
|
|
3876
|
+
:operation => :"CompaniesApi.companies_warning_letters",
|
|
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_warning_letters\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1886
3888
|
end
|
|
1887
3889
|
return data, status_code, headers
|
|
1888
3890
|
end
|