pharmaobservatory 0.1.6 → 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.
Files changed (357) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +269 -4
  3. data/docs/BrandCompaniesResponse.md +58 -0
  4. data/docs/BrandCompaniesRow.md +50 -0
  5. data/docs/BrandRevenueResponse.md +58 -0
  6. data/docs/BrandRevenueRow.md +60 -0
  7. data/docs/CatalystsResponse.md +58 -0
  8. data/docs/CatalystsRow.md +90 -0
  9. data/docs/CliaCertificatesResponse.md +58 -0
  10. data/docs/CliaCertificatesRow.md +80 -0
  11. data/docs/CompaniesApi.md +1675 -117
  12. data/docs/CompaniesRecordAttributes.md +3 -1
  13. data/docs/CompanyFundingEventsRow.md +2 -0
  14. data/docs/CompanyTrialGeographyResponse.md +58 -0
  15. data/docs/CompanyTrialGeographyRow.md +52 -0
  16. data/docs/CompanyTrialSitesResponse.md +58 -0
  17. data/docs/CompanyTrialSitesRow.md +52 -0
  18. data/docs/ConditionsApi.md +320 -0
  19. data/docs/CroFootprintResponse.md +58 -0
  20. data/docs/CroFootprintRow.md +34 -0
  21. data/docs/CroTrialsResponse.md +58 -0
  22. data/docs/CroTrialsRow.md +46 -0
  23. data/docs/DebarmentsResponse.md +58 -0
  24. data/docs/DebarmentsRow.md +44 -0
  25. data/docs/DrugApprovalsResponse.md +58 -0
  26. data/docs/DrugApprovalsRow.md +28 -0
  27. data/docs/DrugAspCodesResponse.md +58 -0
  28. data/docs/DrugAspCodesRow.md +28 -0
  29. data/docs/DrugBrandsResponse.md +58 -0
  30. data/docs/DrugBrandsRow.md +60 -0
  31. data/docs/DrugCombinationsResponse.md +58 -0
  32. data/docs/DrugCombinationsRow.md +32 -0
  33. data/docs/DrugDeclaredPatentsResponse.md +58 -0
  34. data/docs/DrugDeclaredPatentsRow.md +58 -0
  35. data/docs/DrugLabelSafetyResponse.md +58 -0
  36. data/docs/DrugLabelSafetyRow.md +32 -0
  37. data/docs/DrugMedicareSpendResponse.md +58 -0
  38. data/docs/DrugMedicareSpendRow.md +28 -0
  39. data/docs/DrugPatentCliffRow.md +3 -1
  40. data/docs/DrugPatentMentionsResponse.md +58 -0
  41. data/docs/DrugPatentMentionsRow.md +28 -0
  42. data/docs/DrugPatentOwnersResponse.md +58 -0
  43. data/docs/DrugPatentOwnersRow.md +42 -0
  44. data/docs/DrugPricingResponse.md +58 -0
  45. data/docs/DrugPricingRow.md +32 -0
  46. data/docs/DrugRecallsResponse.md +58 -0
  47. data/docs/DrugRecallsRow.md +34 -0
  48. data/docs/DrugRegulatoryResponse.md +58 -0
  49. data/docs/DrugRegulatoryRow.md +38 -0
  50. data/docs/DrugSitesResponse.md +58 -0
  51. data/docs/DrugSitesRow.md +28 -0
  52. data/docs/DrugTargetsResponse.md +58 -0
  53. data/docs/DrugTargetsRow.md +36 -0
  54. data/docs/DrugTrialConditionsResponse.md +58 -0
  55. data/docs/DrugTrialConditionsRow.md +30 -0
  56. data/docs/DrugTrialsResponse.md +58 -0
  57. data/docs/DrugTrialsRow.md +58 -0
  58. data/docs/DrugVariantsResponse.md +58 -0
  59. data/docs/DrugVariantsRow.md +38 -0
  60. data/docs/DrugsApi.md +2153 -0
  61. data/docs/DrugsRecord.md +38 -0
  62. data/docs/DrugsRecordAttributes.md +20 -0
  63. data/docs/DrugsResponse.md +58 -0
  64. data/docs/DrugsRow.md +82 -0
  65. data/docs/EnforcementEventsResponse.md +58 -0
  66. data/docs/EnforcementEventsRow.md +64 -0
  67. data/docs/GxpFacilitiesResponse.md +58 -0
  68. data/docs/GxpFacilitiesRow.md +152 -0
  69. data/docs/HospitalBedsYearlyResponse.md +58 -0
  70. data/docs/HospitalBedsYearlyRow.md +28 -0
  71. data/docs/HospitalFacilityChangesResponse.md +58 -0
  72. data/docs/HospitalFacilityChangesRow.md +30 -0
  73. data/docs/HospitalsApi.md +393 -0
  74. data/docs/HospitalsRecord.md +38 -0
  75. data/docs/HospitalsResponse.md +58 -0
  76. data/docs/HospitalsRow.md +40 -0
  77. data/docs/ImportRefusalsResponse.md +58 -0
  78. data/docs/ImportRefusalsRow.md +60 -0
  79. data/docs/InspectionFindingsResponse.md +58 -0
  80. data/docs/InspectionFindingsRow.md +48 -0
  81. data/docs/InspectionsResponse.md +58 -0
  82. data/docs/InspectionsRow.md +60 -0
  83. data/docs/InstitutionalQuarterTotalsResponse.md +58 -0
  84. data/docs/InstitutionalQuarterTotalsRow.md +58 -0
  85. data/docs/LegalEntitiesApi.md +1379 -179
  86. data/docs/LegalEntitiesRecordAttributes.md +2 -0
  87. data/docs/OrgRelationshipsRow.md +1 -1
  88. data/docs/OwnershipPercentagesResponse.md +58 -0
  89. data/docs/OwnershipPercentagesRow.md +74 -0
  90. data/docs/PdufaDatesRow.md +1 -1
  91. data/docs/ProgramLicensingCandidatesResponse.md +58 -0
  92. data/docs/ProgramLicensingCandidatesRow.md +58 -0
  93. data/docs/ProgramsResponse.md +58 -0
  94. data/docs/ProgramsRow.md +46 -0
  95. data/docs/RareDiseaseGenesResponse.md +58 -0
  96. data/docs/RareDiseaseGenesRow.md +50 -0
  97. data/docs/RareDiseaseHierarchyResponse.md +58 -0
  98. data/docs/RareDiseaseHierarchyRow.md +40 -0
  99. data/docs/RareDiseaseInvestigatorCoverageResponse.md +58 -0
  100. data/docs/RareDiseaseInvestigatorCoverageRow.md +38 -0
  101. data/docs/RareDiseaseInvestigatorsResponse.md +58 -0
  102. data/docs/RareDiseaseInvestigatorsRow.md +56 -0
  103. data/docs/RareDiseaseMappingsResponse.md +58 -0
  104. data/docs/RareDiseaseMappingsRow.md +44 -0
  105. data/docs/RareDiseaseOrganizationsResponse.md +58 -0
  106. data/docs/RareDiseaseOrganizationsRow.md +60 -0
  107. data/docs/RareDiseasePrevalenceResponse.md +58 -0
  108. data/docs/RareDiseasePrevalenceRow.md +62 -0
  109. data/docs/RareDiseaseRarityEvidenceResponse.md +58 -0
  110. data/docs/RareDiseaseRarityEvidenceRow.md +36 -0
  111. data/docs/RareDiseaseRarityResponse.md +58 -0
  112. data/docs/RareDiseaseRarityRow.md +54 -0
  113. data/docs/RareDiseaseReplacementsResponse.md +58 -0
  114. data/docs/RareDiseaseReplacementsRow.md +40 -0
  115. data/docs/RareDiseaseSiteCoverageResponse.md +58 -0
  116. data/docs/RareDiseaseSiteCoverageRow.md +54 -0
  117. data/docs/RareDiseaseSponsorsResponse.md +58 -0
  118. data/docs/RareDiseaseSponsorsRow.md +82 -0
  119. data/docs/RareDiseaseTrialCoverageResponse.md +58 -0
  120. data/docs/RareDiseaseTrialCoverageRow.md +58 -0
  121. data/docs/RareDiseaseTrialSitesResponse.md +58 -0
  122. data/docs/RareDiseaseTrialSitesRow.md +52 -0
  123. data/docs/RareDiseaseTrialsResponse.md +58 -0
  124. data/docs/RareDiseaseTrialsRow.md +90 -0
  125. data/docs/RareDiseasesApi.md +1353 -0
  126. data/docs/RareDiseasesRecord.md +38 -0
  127. data/docs/RareDiseasesRecordAttributes.md +22 -0
  128. data/docs/RareDiseasesResponse.md +58 -0
  129. data/docs/RareDiseasesRow.md +68 -0
  130. data/docs/RecallsResponse.md +58 -0
  131. data/docs/RecallsRow.md +54 -0
  132. data/docs/RwdCoverageResponse.md +58 -0
  133. data/docs/RwdCoverageRow.md +52 -0
  134. data/docs/RwdRegisterProvenanceResponse.md +58 -0
  135. data/docs/RwdRegisterProvenanceRow.md +74 -0
  136. data/docs/RwdRegistersApi.md +313 -0
  137. data/docs/RwdRegistersRecord.md +38 -0
  138. data/docs/RwdSourceAgeBandsResponse.md +58 -0
  139. data/docs/RwdSourceAgeBandsRow.md +40 -0
  140. data/docs/RwdSourceConditionsResponse.md +58 -0
  141. data/docs/RwdSourceConditionsRow.md +68 -0
  142. data/docs/RwdSourceEtlMappingsResponse.md +58 -0
  143. data/docs/RwdSourceEtlMappingsRow.md +44 -0
  144. data/docs/RwdSourceLinkagesResponse.md +58 -0
  145. data/docs/RwdSourceLinkagesRow.md +64 -0
  146. data/docs/RwdSourceTypesResponse.md +58 -0
  147. data/docs/RwdSourceTypesRow.md +34 -0
  148. data/docs/RwdSourceVocabulariesResponse.md +58 -0
  149. data/docs/RwdSourceVocabulariesRow.md +42 -0
  150. data/docs/RwdSourcesApi.md +713 -0
  151. data/docs/RwdSourcesRecord.md +38 -0
  152. data/docs/RwdSourcesResponse.md +58 -0
  153. data/docs/RwdSourcesRow.md +280 -0
  154. data/docs/RwdStudiesApi.md +473 -0
  155. data/docs/RwdStudiesRecord.md +38 -0
  156. data/docs/RwdStudiesResponse.md +58 -0
  157. data/docs/RwdStudiesRow.md +180 -0
  158. data/docs/RwdStudyConditionsResponse.md +58 -0
  159. data/docs/RwdStudyConditionsRow.md +54 -0
  160. data/docs/RwdStudyDataSourcesResponse.md +58 -0
  161. data/docs/RwdStudyDataSourcesRow.md +54 -0
  162. data/docs/RwdStudyDrugsResponse.md +58 -0
  163. data/docs/RwdStudyDrugsRow.md +50 -0
  164. data/docs/RwdStudyMilestonesResponse.md +58 -0
  165. data/docs/RwdStudyMilestonesRow.md +54 -0
  166. data/docs/RwdWithheldFieldsResponse.md +58 -0
  167. data/docs/RwdWithheldFieldsRow.md +36 -0
  168. data/docs/SecPdufaDatesResponse.md +58 -0
  169. data/docs/SecPdufaDatesRow.md +64 -0
  170. data/docs/TrialChangesRow.md +5 -1
  171. data/docs/TrialsApi.md +80 -0
  172. data/docs/TrialsRow.md +9 -1
  173. data/docs/UnmatchedProductRevenueResponse.md +58 -0
  174. data/docs/UnmatchedProductRevenueRow.md +80 -0
  175. data/docs/UntitledLettersResponse.md +58 -0
  176. data/docs/UntitledLettersRow.md +44 -0
  177. data/docs/WarningLettersResponse.md +58 -0
  178. data/docs/WarningLettersRow.md +50 -0
  179. data/lib/pharmaobservatory/api/companies_api.rb +1936 -207
  180. data/lib/pharmaobservatory/api/conditions_api.rb +336 -0
  181. data/lib/pharmaobservatory/api/drugs_api.rb +2261 -0
  182. data/lib/pharmaobservatory/api/hospitals_api.rb +413 -0
  183. data/lib/pharmaobservatory/api/legal_entities_api.rb +1442 -182
  184. data/lib/pharmaobservatory/api/rare_diseases_api.rb +1421 -0
  185. data/lib/pharmaobservatory/api/rwd_registers_api.rb +329 -0
  186. data/lib/pharmaobservatory/api/rwd_sources_api.rb +749 -0
  187. data/lib/pharmaobservatory/api/rwd_studies_api.rb +497 -0
  188. data/lib/pharmaobservatory/api/trials_api.rb +84 -0
  189. data/lib/pharmaobservatory/models/brand_companies_response.rb +478 -0
  190. data/lib/pharmaobservatory/models/brand_companies_row.rb +401 -0
  191. data/lib/pharmaobservatory/models/brand_revenue_response.rb +478 -0
  192. data/lib/pharmaobservatory/models/brand_revenue_row.rb +454 -0
  193. data/lib/pharmaobservatory/models/catalysts_response.rb +478 -0
  194. data/lib/pharmaobservatory/models/catalysts_row.rb +623 -0
  195. data/lib/pharmaobservatory/models/clia_certificates_response.rb +478 -0
  196. data/lib/pharmaobservatory/models/clia_certificates_row.rb +568 -0
  197. data/lib/pharmaobservatory/models/companies_record_attributes.rb +13 -4
  198. data/lib/pharmaobservatory/models/company_funding_events_row.rb +12 -1
  199. data/lib/pharmaobservatory/models/company_trial_geography_response.rb +478 -0
  200. data/lib/pharmaobservatory/models/company_trial_geography_row.rb +410 -0
  201. data/lib/pharmaobservatory/models/company_trial_sites_response.rb +478 -0
  202. data/lib/pharmaobservatory/models/company_trial_sites_row.rb +410 -0
  203. data/lib/pharmaobservatory/models/cro_footprint_response.rb +478 -0
  204. data/lib/pharmaobservatory/models/cro_footprint_row.rb +311 -0
  205. data/lib/pharmaobservatory/models/cro_trials_response.rb +478 -0
  206. data/lib/pharmaobservatory/models/cro_trials_row.rb +381 -0
  207. data/lib/pharmaobservatory/models/debarments_response.rb +478 -0
  208. data/lib/pharmaobservatory/models/debarments_row.rb +366 -0
  209. data/lib/pharmaobservatory/models/drug_approvals_response.rb +478 -0
  210. data/lib/pharmaobservatory/models/drug_approvals_row.rb +278 -0
  211. data/lib/pharmaobservatory/models/drug_asp_codes_response.rb +478 -0
  212. data/lib/pharmaobservatory/models/drug_asp_codes_row.rb +278 -0
  213. data/lib/pharmaobservatory/models/drug_brands_response.rb +478 -0
  214. data/lib/pharmaobservatory/models/drug_brands_row.rb +454 -0
  215. data/lib/pharmaobservatory/models/drug_combinations_response.rb +478 -0
  216. data/lib/pharmaobservatory/models/drug_combinations_row.rb +300 -0
  217. data/lib/pharmaobservatory/models/drug_declared_patents_response.rb +478 -0
  218. data/lib/pharmaobservatory/models/drug_declared_patents_row.rb +447 -0
  219. data/lib/pharmaobservatory/models/drug_label_safety_response.rb +478 -0
  220. data/lib/pharmaobservatory/models/drug_label_safety_row.rb +300 -0
  221. data/lib/pharmaobservatory/models/drug_medicare_spend_response.rb +478 -0
  222. data/lib/pharmaobservatory/models/drug_medicare_spend_row.rb +280 -0
  223. data/lib/pharmaobservatory/models/drug_patent_cliff_row.rb +13 -2
  224. data/lib/pharmaobservatory/models/drug_patent_mentions_response.rb +478 -0
  225. data/lib/pharmaobservatory/models/drug_patent_mentions_row.rb +278 -0
  226. data/lib/pharmaobservatory/models/drug_patent_owners_response.rb +478 -0
  227. data/lib/pharmaobservatory/models/drug_patent_owners_row.rb +357 -0
  228. data/lib/pharmaobservatory/models/drug_pricing_response.rb +478 -0
  229. data/lib/pharmaobservatory/models/drug_pricing_row.rb +300 -0
  230. data/lib/pharmaobservatory/models/drug_recalls_response.rb +478 -0
  231. data/lib/pharmaobservatory/models/drug_recalls_row.rb +311 -0
  232. data/lib/pharmaobservatory/models/drug_regulatory_response.rb +478 -0
  233. data/lib/pharmaobservatory/models/drug_regulatory_row.rb +333 -0
  234. data/lib/pharmaobservatory/models/drug_sites_response.rb +478 -0
  235. data/lib/pharmaobservatory/models/drug_sites_row.rb +278 -0
  236. data/lib/pharmaobservatory/models/drug_targets_response.rb +478 -0
  237. data/lib/pharmaobservatory/models/drug_targets_row.rb +324 -0
  238. data/lib/pharmaobservatory/models/drug_trial_conditions_response.rb +478 -0
  239. data/lib/pharmaobservatory/models/drug_trial_conditions_row.rb +289 -0
  240. data/lib/pharmaobservatory/models/drug_trials_response.rb +478 -0
  241. data/lib/pharmaobservatory/models/drug_trials_row.rb +445 -0
  242. data/lib/pharmaobservatory/models/drug_variants_response.rb +478 -0
  243. data/lib/pharmaobservatory/models/drug_variants_row.rb +333 -0
  244. data/lib/pharmaobservatory/models/drugs_record.rb +385 -0
  245. data/lib/pharmaobservatory/models/drugs_record_attributes.rb +229 -0
  246. data/lib/pharmaobservatory/models/drugs_response.rb +478 -0
  247. data/lib/pharmaobservatory/models/drugs_row.rb +581 -0
  248. data/lib/pharmaobservatory/models/enforcement_events_response.rb +478 -0
  249. data/lib/pharmaobservatory/models/enforcement_events_row.rb +476 -0
  250. data/lib/pharmaobservatory/models/gxp_facilities_response.rb +478 -0
  251. data/lib/pharmaobservatory/models/gxp_facilities_row.rb +968 -0
  252. data/lib/pharmaobservatory/models/hospital_beds_yearly_response.rb +478 -0
  253. data/lib/pharmaobservatory/models/hospital_beds_yearly_row.rb +278 -0
  254. data/lib/pharmaobservatory/models/hospital_facility_changes_response.rb +478 -0
  255. data/lib/pharmaobservatory/models/hospital_facility_changes_row.rb +289 -0
  256. data/lib/pharmaobservatory/models/hospitals_record.rb +385 -0
  257. data/lib/pharmaobservatory/models/hospitals_response.rb +478 -0
  258. data/lib/pharmaobservatory/models/hospitals_row.rb +344 -0
  259. data/lib/pharmaobservatory/models/import_refusals_response.rb +478 -0
  260. data/lib/pharmaobservatory/models/import_refusals_row.rb +454 -0
  261. data/lib/pharmaobservatory/models/inspection_findings_response.rb +478 -0
  262. data/lib/pharmaobservatory/models/inspection_findings_row.rb +388 -0
  263. data/lib/pharmaobservatory/models/inspections_response.rb +478 -0
  264. data/lib/pharmaobservatory/models/inspections_row.rb +454 -0
  265. data/lib/pharmaobservatory/models/institutional_quarter_totals_response.rb +478 -0
  266. data/lib/pharmaobservatory/models/institutional_quarter_totals_row.rb +443 -0
  267. data/lib/pharmaobservatory/models/legal_entities_record_attributes.rb +10 -1
  268. data/lib/pharmaobservatory/models/org_relationships_row.rb +1 -1
  269. data/lib/pharmaobservatory/models/ownership_percentages_response.rb +478 -0
  270. data/lib/pharmaobservatory/models/ownership_percentages_row.rb +531 -0
  271. data/lib/pharmaobservatory/models/pdufa_dates_row.rb +1 -1
  272. data/lib/pharmaobservatory/models/program_licensing_candidates_response.rb +478 -0
  273. data/lib/pharmaobservatory/models/program_licensing_candidates_row.rb +445 -0
  274. data/lib/pharmaobservatory/models/programs_response.rb +478 -0
  275. data/lib/pharmaobservatory/models/programs_row.rb +377 -0
  276. data/lib/pharmaobservatory/models/rare_disease_genes_response.rb +478 -0
  277. data/lib/pharmaobservatory/models/rare_disease_genes_row.rb +399 -0
  278. data/lib/pharmaobservatory/models/rare_disease_hierarchy_response.rb +478 -0
  279. data/lib/pharmaobservatory/models/rare_disease_hierarchy_row.rb +344 -0
  280. data/lib/pharmaobservatory/models/rare_disease_investigator_coverage_response.rb +478 -0
  281. data/lib/pharmaobservatory/models/rare_disease_investigator_coverage_row.rb +333 -0
  282. data/lib/pharmaobservatory/models/rare_disease_investigators_response.rb +478 -0
  283. data/lib/pharmaobservatory/models/rare_disease_investigators_row.rb +436 -0
  284. data/lib/pharmaobservatory/models/rare_disease_mappings_response.rb +478 -0
  285. data/lib/pharmaobservatory/models/rare_disease_mappings_row.rb +366 -0
  286. data/lib/pharmaobservatory/models/rare_disease_organizations_response.rb +478 -0
  287. data/lib/pharmaobservatory/models/rare_disease_organizations_row.rb +454 -0
  288. data/lib/pharmaobservatory/models/rare_disease_prevalence_response.rb +478 -0
  289. data/lib/pharmaobservatory/models/rare_disease_prevalence_row.rb +465 -0
  290. data/lib/pharmaobservatory/models/rare_disease_rarity_evidence_response.rb +478 -0
  291. data/lib/pharmaobservatory/models/rare_disease_rarity_evidence_row.rb +322 -0
  292. data/lib/pharmaobservatory/models/rare_disease_rarity_response.rb +478 -0
  293. data/lib/pharmaobservatory/models/rare_disease_rarity_row.rb +421 -0
  294. data/lib/pharmaobservatory/models/rare_disease_replacements_response.rb +478 -0
  295. data/lib/pharmaobservatory/models/rare_disease_replacements_row.rb +344 -0
  296. data/lib/pharmaobservatory/models/rare_disease_site_coverage_response.rb +478 -0
  297. data/lib/pharmaobservatory/models/rare_disease_site_coverage_row.rb +421 -0
  298. data/lib/pharmaobservatory/models/rare_disease_sponsors_response.rb +478 -0
  299. data/lib/pharmaobservatory/models/rare_disease_sponsors_row.rb +575 -0
  300. data/lib/pharmaobservatory/models/rare_disease_trial_coverage_response.rb +478 -0
  301. data/lib/pharmaobservatory/models/rare_disease_trial_coverage_row.rb +449 -0
  302. data/lib/pharmaobservatory/models/rare_disease_trial_sites_response.rb +478 -0
  303. data/lib/pharmaobservatory/models/rare_disease_trial_sites_row.rb +412 -0
  304. data/lib/pharmaobservatory/models/rare_disease_trials_response.rb +478 -0
  305. data/lib/pharmaobservatory/models/rare_disease_trials_row.rb +623 -0
  306. data/lib/pharmaobservatory/models/rare_diseases_record.rb +385 -0
  307. data/lib/pharmaobservatory/models/rare_diseases_record_attributes.rb +238 -0
  308. data/lib/pharmaobservatory/models/rare_diseases_response.rb +478 -0
  309. data/lib/pharmaobservatory/models/rare_diseases_row.rb +500 -0
  310. data/lib/pharmaobservatory/models/recalls_response.rb +478 -0
  311. data/lib/pharmaobservatory/models/recalls_row.rb +421 -0
  312. data/lib/pharmaobservatory/models/rwd_coverage_response.rb +478 -0
  313. data/lib/pharmaobservatory/models/rwd_coverage_row.rb +410 -0
  314. data/lib/pharmaobservatory/models/rwd_register_provenance_response.rb +478 -0
  315. data/lib/pharmaobservatory/models/rwd_register_provenance_row.rb +531 -0
  316. data/lib/pharmaobservatory/models/rwd_registers_record.rb +385 -0
  317. data/lib/pharmaobservatory/models/rwd_source_age_bands_response.rb +478 -0
  318. data/lib/pharmaobservatory/models/rwd_source_age_bands_row.rb +344 -0
  319. data/lib/pharmaobservatory/models/rwd_source_conditions_response.rb +478 -0
  320. data/lib/pharmaobservatory/models/rwd_source_conditions_row.rb +502 -0
  321. data/lib/pharmaobservatory/models/rwd_source_etl_mappings_response.rb +478 -0
  322. data/lib/pharmaobservatory/models/rwd_source_etl_mappings_row.rb +366 -0
  323. data/lib/pharmaobservatory/models/rwd_source_linkages_response.rb +478 -0
  324. data/lib/pharmaobservatory/models/rwd_source_linkages_row.rb +476 -0
  325. data/lib/pharmaobservatory/models/rwd_source_types_response.rb +478 -0
  326. data/lib/pharmaobservatory/models/rwd_source_types_row.rb +311 -0
  327. data/lib/pharmaobservatory/models/rwd_source_vocabularies_response.rb +478 -0
  328. data/lib/pharmaobservatory/models/rwd_source_vocabularies_row.rb +355 -0
  329. data/lib/pharmaobservatory/models/rwd_sources_record.rb +385 -0
  330. data/lib/pharmaobservatory/models/rwd_sources_response.rb +478 -0
  331. data/lib/pharmaobservatory/models/rwd_sources_row.rb +1674 -0
  332. data/lib/pharmaobservatory/models/rwd_studies_record.rb +385 -0
  333. data/lib/pharmaobservatory/models/rwd_studies_response.rb +478 -0
  334. data/lib/pharmaobservatory/models/rwd_studies_row.rb +1138 -0
  335. data/lib/pharmaobservatory/models/rwd_study_conditions_response.rb +478 -0
  336. data/lib/pharmaobservatory/models/rwd_study_conditions_row.rb +421 -0
  337. data/lib/pharmaobservatory/models/rwd_study_data_sources_response.rb +478 -0
  338. data/lib/pharmaobservatory/models/rwd_study_data_sources_row.rb +423 -0
  339. data/lib/pharmaobservatory/models/rwd_study_drugs_response.rb +478 -0
  340. data/lib/pharmaobservatory/models/rwd_study_drugs_row.rb +401 -0
  341. data/lib/pharmaobservatory/models/rwd_study_milestones_response.rb +478 -0
  342. data/lib/pharmaobservatory/models/rwd_study_milestones_row.rb +421 -0
  343. data/lib/pharmaobservatory/models/rwd_withheld_fields_response.rb +478 -0
  344. data/lib/pharmaobservatory/models/rwd_withheld_fields_row.rb +322 -0
  345. data/lib/pharmaobservatory/models/sec_pdufa_dates_response.rb +478 -0
  346. data/lib/pharmaobservatory/models/sec_pdufa_dates_row.rb +476 -0
  347. data/lib/pharmaobservatory/models/trial_changes_row.rb +24 -2
  348. data/lib/pharmaobservatory/models/trials_row.rb +47 -3
  349. data/lib/pharmaobservatory/models/unmatched_product_revenue_response.rb +478 -0
  350. data/lib/pharmaobservatory/models/unmatched_product_revenue_row.rb +564 -0
  351. data/lib/pharmaobservatory/models/untitled_letters_response.rb +478 -0
  352. data/lib/pharmaobservatory/models/untitled_letters_row.rb +366 -0
  353. data/lib/pharmaobservatory/models/warning_letters_response.rb +478 -0
  354. data/lib/pharmaobservatory/models/warning_letters_row.rb +399 -0
  355. data/lib/pharmaobservatory/version.rb +1 -1
  356. data/lib/pharmaobservatory.rb +164 -0
  357. metadata +330 -2
@@ -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&#x3D;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&#x3D;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
- # Patent-cliff exposure
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 [DrugPatentCliffResponse]
942
- def companies_drug_patent_cliff(id, opts = {})
943
- data, _status_code, _headers = companies_drug_patent_cliff_with_http_info(id, opts)
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
- # Patent-cliff exposure
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<(DrugPatentCliffResponse, Integer, Hash)>] DrugPatentCliffResponse data, response status code and response headers
957
- def companies_drug_patent_cliff_with_http_info(id, opts = {})
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.companies_drug_patent_cliff ...'
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.companies_drug_patent_cliff"
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.companies_drug_patent_cliff, must be smaller than or equal to 500.'
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.companies_drug_patent_cliff, must be greater than or equal to 1.'
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}/drug_patent_cliff'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
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] || 'DrugPatentCliffResponse'
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.companies_drug_patent_cliff",
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#companies_drug_patent_cliff\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
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
- # One company
1205
+ # Company trial sites
1024
1206
  # @param id [String]
1025
1207
  # @param [Hash] opts the optional parameters
1026
- # @return [CompaniesRecord]
1027
- def companies_get(id, opts = {})
1028
- data, _status_code, _headers = companies_get_with_http_info(id, opts)
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&#x3D;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
- # One company
1220
+ # Company trial sites
1033
1221
  # @param id [String]
1034
1222
  # @param [Hash] opts the optional parameters
1035
- # @return [Array<(CompaniesRecord, Integer, Hash)>] CompaniesRecord data, response status code and response headers
1036
- def companies_get_with_http_info(id, opts = {})
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&#x3D;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.companies_get ...'
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.companies_get"
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] || 'CompaniesRecord'
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.companies_get",
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#companies_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
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
- # Institutional holdings (SEC Form 13F)
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 [InstitutionalHoldingsResponse]
1094
- def companies_institutional_holdings(id, opts = {})
1095
- data, _status_code, _headers = companies_institutional_holdings_with_http_info(id, opts)
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
- # Institutional holdings (SEC Form 13F)
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<(InstitutionalHoldingsResponse, Integer, Hash)>] InstitutionalHoldingsResponse data, response status code and response headers
1109
- def companies_institutional_holdings_with_http_info(id, opts = {})
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.companies_institutional_holdings ...'
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.companies_institutional_holdings"
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.companies_institutional_holdings, must be smaller than or equal to 500.'
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.companies_institutional_holdings, must be greater than or equal to 1.'
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}/institutional_holdings'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
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] || 'InstitutionalHoldingsResponse'
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.companies_institutional_holdings",
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#companies_institutional_holdings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
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
- # Legal entities
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 [LegalEntitiesResponse]
1185
- def companies_legal_entities(id, opts = {})
1186
- data, _status_code, _headers = companies_legal_entities_with_http_info(id, opts)
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
- # Legal entities
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<(LegalEntitiesResponse, Integer, Hash)>] LegalEntitiesResponse data, response status code and response headers
1200
- def companies_legal_entities_with_http_info(id, opts = {})
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.companies_legal_entities ...'
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.companies_legal_entities"
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.companies_legal_entities, must be smaller than or equal to 500.'
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.companies_legal_entities, must be greater than or equal to 1.'
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}/legal_entities'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
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] || 'LegalEntitiesResponse'
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.companies_legal_entities",
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#companies_legal_entities\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
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
- # List companies
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&#x3D;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
- # @return [CompaniesResponse]
1274
- def companies_list(opts = {})
1275
- data, _status_code, _headers = companies_list_with_http_info(opts)
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
- # List companies
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&#x3D;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
- # @return [Array<(CompaniesResponse, Integer, Hash)>] CompaniesResponse data, response status code and response headers
1287
- def companies_list_with_http_info(opts = {})
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.companies_list ...'
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.companies_list, must be smaller than or equal to 500.'
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.companies_list, must be greater than or equal to 1.'
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
- # resource path
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&#x3D;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&#x3D;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&#x3D;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&#x3D;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&#x3D;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&#x3D;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&#x3D;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&#x3D;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&#x3D;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&#x3D;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&#x3D;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&#x3D;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&#x3D;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&#x3D;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&#x3D;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&#x3D;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&#x3D;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&#x3D;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&#x3D;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&#x3D;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,559 @@ 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&#x3D;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&#x3D;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&#x3D;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&#x3D;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&#x3D;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&#x3D;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&#x3D;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&#x3D;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&#x3D;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&#x3D;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&#x3D;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&#x3D;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'
1323
3052
 
1324
3053
  # auth_names
1325
3054
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1326
3055
 
1327
3056
  new_options = opts.merge(
1328
- :operation => :"CompaniesApi.companies_list",
3057
+ :operation => :"CompaniesApi.companies_program_licensing_candidates",
1329
3058
  :header_params => header_params,
1330
3059
  :query_params => query_params,
1331
3060
  :form_params => form_params,
@@ -1336,12 +3065,12 @@ module PharmaObservatory
1336
3065
 
1337
3066
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1338
3067
  if @api_client.config.debugging
1339
- @api_client.config.logger.debug "API called: CompaniesApi#companies_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3068
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_program_licensing_candidates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1340
3069
  end
1341
3070
  return data, status_code, headers
1342
3071
  end
1343
3072
 
1344
- # Organization disclosures (climate and diversity)
3073
+ # FDA recalls
1345
3074
  # @param id [String]
1346
3075
  # @param [Hash] opts the optional parameters
1347
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.
@@ -1350,13 +3079,13 @@ module PharmaObservatory
1350
3079
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1351
3080
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1352
3081
  # @option opts [String] :scope company (this company only) or group (its corporate group).
1353
- # @return [OrgDisclosuresResponse]
1354
- def companies_org_disclosures(id, opts = {})
1355
- data, _status_code, _headers = companies_org_disclosures_with_http_info(id, opts)
3082
+ # @return [RecallsResponse]
3083
+ def companies_recalls(id, opts = {})
3084
+ data, _status_code, _headers = companies_recalls_with_http_info(id, opts)
1356
3085
  data
1357
3086
  end
1358
3087
 
1359
- # Organization disclosures (climate and diversity)
3088
+ # FDA recalls
1360
3089
  # @param id [String]
1361
3090
  # @param [Hash] opts the optional parameters
1362
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.
@@ -1365,21 +3094,21 @@ module PharmaObservatory
1365
3094
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1366
3095
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1367
3096
  # @option opts [String] :scope company (this company only) or group (its corporate group).
1368
- # @return [Array<(OrgDisclosuresResponse, Integer, Hash)>] OrgDisclosuresResponse data, response status code and response headers
1369
- def companies_org_disclosures_with_http_info(id, opts = {})
3097
+ # @return [Array<(RecallsResponse, Integer, Hash)>] RecallsResponse data, response status code and response headers
3098
+ def companies_recalls_with_http_info(id, opts = {})
1370
3099
  if @api_client.config.debugging
1371
- @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_org_disclosures ...'
3100
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_recalls ...'
1372
3101
  end
1373
3102
  # verify the required parameter 'id' is set
1374
3103
  if @api_client.config.client_side_validation && id.nil?
1375
- fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_org_disclosures"
3104
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_recalls"
1376
3105
  end
1377
3106
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1378
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_org_disclosures, must be smaller than or equal to 500.'
3107
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_recalls, must be smaller than or equal to 500.'
1379
3108
  end
1380
3109
 
1381
3110
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1382
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_org_disclosures, must be greater than or equal to 1.'
3111
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_recalls, must be greater than or equal to 1.'
1383
3112
  end
1384
3113
 
1385
3114
  allowable_values = ["company", "group"]
@@ -1387,7 +3116,7 @@ module PharmaObservatory
1387
3116
  fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
1388
3117
  end
1389
3118
  # resource path
1390
- local_var_path = '/api/v1/companies/{id}/org_disclosures'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
3119
+ local_var_path = '/api/v1/companies/{id}/recalls'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1391
3120
 
1392
3121
  # query parameters
1393
3122
  query_params = opts[:query_params] || {}
@@ -1410,13 +3139,13 @@ module PharmaObservatory
1410
3139
  post_body = opts[:debug_body]
1411
3140
 
1412
3141
  # return_type
1413
- return_type = opts[:debug_return_type] || 'OrgDisclosuresResponse'
3142
+ return_type = opts[:debug_return_type] || 'RecallsResponse'
1414
3143
 
1415
3144
  # auth_names
1416
3145
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1417
3146
 
1418
3147
  new_options = opts.merge(
1419
- :operation => :"CompaniesApi.companies_org_disclosures",
3148
+ :operation => :"CompaniesApi.companies_recalls",
1420
3149
  :header_params => header_params,
1421
3150
  :query_params => query_params,
1422
3151
  :form_params => form_params,
@@ -1427,12 +3156,12 @@ module PharmaObservatory
1427
3156
 
1428
3157
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1429
3158
  if @api_client.config.debugging
1430
- @api_client.config.logger.debug "API called: CompaniesApi#companies_org_disclosures\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3159
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_recalls\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1431
3160
  end
1432
3161
  return data, status_code, headers
1433
3162
  end
1434
3163
 
1435
- # Organization relationships
3164
+ # Trial recruitment duration by sponsor and phase
1436
3165
  # @param id [String]
1437
3166
  # @param [Hash] opts the optional parameters
1438
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.
@@ -1441,13 +3170,13 @@ module PharmaObservatory
1441
3170
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1442
3171
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1443
3172
  # @option opts [String] :scope company (this company only) or group (its corporate group).
1444
- # @return [OrgRelationshipsResponse]
1445
- def companies_org_relationships(id, opts = {})
1446
- data, _status_code, _headers = companies_org_relationships_with_http_info(id, opts)
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)
1447
3176
  data
1448
3177
  end
1449
3178
 
1450
- # Organization relationships
3179
+ # Trial recruitment duration by sponsor and phase
1451
3180
  # @param id [String]
1452
3181
  # @param [Hash] opts the optional parameters
1453
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.
@@ -1456,21 +3185,21 @@ module PharmaObservatory
1456
3185
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1457
3186
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1458
3187
  # @option opts [String] :scope company (this company only) or group (its corporate group).
1459
- # @return [Array<(OrgRelationshipsResponse, Integer, Hash)>] OrgRelationshipsResponse data, response status code and response headers
1460
- def companies_org_relationships_with_http_info(id, opts = {})
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 = {})
1461
3190
  if @api_client.config.debugging
1462
- @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_org_relationships ...'
3191
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_sponsor_recruitment_by_phase ...'
1463
3192
  end
1464
3193
  # verify the required parameter 'id' is set
1465
3194
  if @api_client.config.client_side_validation && id.nil?
1466
- fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_org_relationships"
3195
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_sponsor_recruitment_by_phase"
1467
3196
  end
1468
3197
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1469
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_org_relationships, must be smaller than or equal to 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.'
1470
3199
  end
1471
3200
 
1472
3201
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1473
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_org_relationships, must be greater than or equal to 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.'
1474
3203
  end
1475
3204
 
1476
3205
  allowable_values = ["company", "group"]
@@ -1478,7 +3207,7 @@ module PharmaObservatory
1478
3207
  fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
1479
3208
  end
1480
3209
  # resource path
1481
- local_var_path = '/api/v1/companies/{id}/org_relationships'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
3210
+ local_var_path = '/api/v1/companies/{id}/sponsor_recruitment_by_phase'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1482
3211
 
1483
3212
  # query parameters
1484
3213
  query_params = opts[:query_params] || {}
@@ -1501,13 +3230,13 @@ module PharmaObservatory
1501
3230
  post_body = opts[:debug_body]
1502
3231
 
1503
3232
  # return_type
1504
- return_type = opts[:debug_return_type] || 'OrgRelationshipsResponse'
3233
+ return_type = opts[:debug_return_type] || 'SponsorRecruitmentByPhaseResponse'
1505
3234
 
1506
3235
  # auth_names
1507
3236
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1508
3237
 
1509
3238
  new_options = opts.merge(
1510
- :operation => :"CompaniesApi.companies_org_relationships",
3239
+ :operation => :"CompaniesApi.companies_sponsor_recruitment_by_phase",
1511
3240
  :header_params => header_params,
1512
3241
  :query_params => query_params,
1513
3242
  :form_params => form_params,
@@ -1518,12 +3247,12 @@ module PharmaObservatory
1518
3247
 
1519
3248
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1520
3249
  if @api_client.config.debugging
1521
- @api_client.config.logger.debug "API called: CompaniesApi#companies_org_relationships\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3250
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_sponsor_recruitment_by_phase\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1522
3251
  end
1523
3252
  return data, status_code, headers
1524
3253
  end
1525
3254
 
1526
- # Ownership and control positions
3255
+ # Trial recruitment duration by sponsor
1527
3256
  # @param id [String]
1528
3257
  # @param [Hash] opts the optional parameters
1529
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.
@@ -1532,13 +3261,13 @@ module PharmaObservatory
1532
3261
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1533
3262
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1534
3263
  # @option opts [String] :scope company (this company only) or group (its corporate group).
1535
- # @return [OwnershipPositionsResponse]
1536
- def companies_ownership_positions(id, opts = {})
1537
- data, _status_code, _headers = companies_ownership_positions_with_http_info(id, opts)
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)
1538
3267
  data
1539
3268
  end
1540
3269
 
1541
- # Ownership and control positions
3270
+ # Trial recruitment duration by sponsor
1542
3271
  # @param id [String]
1543
3272
  # @param [Hash] opts the optional parameters
1544
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.
@@ -1547,21 +3276,21 @@ module PharmaObservatory
1547
3276
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1548
3277
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1549
3278
  # @option opts [String] :scope company (this company only) or group (its corporate group).
1550
- # @return [Array<(OwnershipPositionsResponse, Integer, Hash)>] OwnershipPositionsResponse data, response status code and response headers
1551
- def companies_ownership_positions_with_http_info(id, opts = {})
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 = {})
1552
3281
  if @api_client.config.debugging
1553
- @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_ownership_positions ...'
3282
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_sponsor_recruitment_duration ...'
1554
3283
  end
1555
3284
  # verify the required parameter 'id' is set
1556
3285
  if @api_client.config.client_side_validation && id.nil?
1557
- fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_ownership_positions"
3286
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_sponsor_recruitment_duration"
1558
3287
  end
1559
3288
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1560
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_ownership_positions, must be smaller than or equal to 500.'
3289
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_recruitment_duration, must be smaller than or equal to 500.'
1561
3290
  end
1562
3291
 
1563
3292
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1564
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_ownership_positions, must be greater than or equal to 1.'
3293
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_recruitment_duration, must be greater than or equal to 1.'
1565
3294
  end
1566
3295
 
1567
3296
  allowable_values = ["company", "group"]
@@ -1569,7 +3298,7 @@ module PharmaObservatory
1569
3298
  fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
1570
3299
  end
1571
3300
  # resource path
1572
- local_var_path = '/api/v1/companies/{id}/ownership_positions'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
3301
+ local_var_path = '/api/v1/companies/{id}/sponsor_recruitment_duration'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1573
3302
 
1574
3303
  # query parameters
1575
3304
  query_params = opts[:query_params] || {}
@@ -1592,13 +3321,13 @@ module PharmaObservatory
1592
3321
  post_body = opts[:debug_body]
1593
3322
 
1594
3323
  # return_type
1595
- return_type = opts[:debug_return_type] || 'OwnershipPositionsResponse'
3324
+ return_type = opts[:debug_return_type] || 'SponsorRecruitmentDurationResponse'
1596
3325
 
1597
3326
  # auth_names
1598
3327
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1599
3328
 
1600
3329
  new_options = opts.merge(
1601
- :operation => :"CompaniesApi.companies_ownership_positions",
3330
+ :operation => :"CompaniesApi.companies_sponsor_recruitment_duration",
1602
3331
  :header_params => header_params,
1603
3332
  :query_params => query_params,
1604
3333
  :form_params => form_params,
@@ -1609,12 +3338,12 @@ module PharmaObservatory
1609
3338
 
1610
3339
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1611
3340
  if @api_client.config.debugging
1612
- @api_client.config.logger.debug "API called: CompaniesApi#companies_ownership_positions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3341
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_sponsor_recruitment_duration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1613
3342
  end
1614
3343
  return data, status_code, headers
1615
3344
  end
1616
3345
 
1617
- # FDA decision dates (PDUFA) and catalysts
3346
+ # Trial-start forecast by sponsor
1618
3347
  # @param id [String]
1619
3348
  # @param [Hash] opts the optional parameters
1620
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.
@@ -1623,13 +3352,13 @@ module PharmaObservatory
1623
3352
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1624
3353
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1625
3354
  # @option opts [String] :scope company (this company only) or group (its corporate group).
1626
- # @return [PdufaDatesResponse]
1627
- def companies_pdufa_dates(id, opts = {})
1628
- data, _status_code, _headers = companies_pdufa_dates_with_http_info(id, opts)
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)
1629
3358
  data
1630
3359
  end
1631
3360
 
1632
- # FDA decision dates (PDUFA) and catalysts
3361
+ # Trial-start forecast by sponsor
1633
3362
  # @param id [String]
1634
3363
  # @param [Hash] opts the optional parameters
1635
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.
@@ -1638,21 +3367,21 @@ module PharmaObservatory
1638
3367
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1639
3368
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1640
3369
  # @option opts [String] :scope company (this company only) or group (its corporate group).
1641
- # @return [Array<(PdufaDatesResponse, Integer, Hash)>] PdufaDatesResponse data, response status code and response headers
1642
- def companies_pdufa_dates_with_http_info(id, opts = {})
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 = {})
1643
3372
  if @api_client.config.debugging
1644
- @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_pdufa_dates ...'
3373
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_sponsor_trial_start_forecast ...'
1645
3374
  end
1646
3375
  # verify the required parameter 'id' is set
1647
3376
  if @api_client.config.client_side_validation && id.nil?
1648
- fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_pdufa_dates"
3377
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_sponsor_trial_start_forecast"
1649
3378
  end
1650
3379
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1651
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_pdufa_dates, must be smaller than or equal to 500.'
3380
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_trial_start_forecast, must be smaller than or equal to 500.'
1652
3381
  end
1653
3382
 
1654
3383
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1655
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_pdufa_dates, must be greater than or equal to 1.'
3384
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_trial_start_forecast, must be greater than or equal to 1.'
1656
3385
  end
1657
3386
 
1658
3387
  allowable_values = ["company", "group"]
@@ -1660,7 +3389,7 @@ module PharmaObservatory
1660
3389
  fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
1661
3390
  end
1662
3391
  # resource path
1663
- local_var_path = '/api/v1/companies/{id}/pdufa_dates'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
3392
+ local_var_path = '/api/v1/companies/{id}/sponsor_trial_start_forecast'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1664
3393
 
1665
3394
  # query parameters
1666
3395
  query_params = opts[:query_params] || {}
@@ -1683,13 +3412,13 @@ module PharmaObservatory
1683
3412
  post_body = opts[:debug_body]
1684
3413
 
1685
3414
  # return_type
1686
- return_type = opts[:debug_return_type] || 'PdufaDatesResponse'
3415
+ return_type = opts[:debug_return_type] || 'SponsorTrialStartForecastResponse'
1687
3416
 
1688
3417
  # auth_names
1689
3418
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1690
3419
 
1691
3420
  new_options = opts.merge(
1692
- :operation => :"CompaniesApi.companies_pdufa_dates",
3421
+ :operation => :"CompaniesApi.companies_sponsor_trial_start_forecast",
1693
3422
  :header_params => header_params,
1694
3423
  :query_params => query_params,
1695
3424
  :form_params => form_params,
@@ -1700,12 +3429,12 @@ module PharmaObservatory
1700
3429
 
1701
3430
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1702
3431
  if @api_client.config.debugging
1703
- @api_client.config.logger.debug "API called: CompaniesApi#companies_pdufa_dates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3432
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_sponsor_trial_start_forecast\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1704
3433
  end
1705
3434
  return data, status_code, headers
1706
3435
  end
1707
3436
 
1708
- # Trial recruitment duration by sponsor and phase
3437
+ # Sponsor trials
1709
3438
  # @param id [String]
1710
3439
  # @param [Hash] opts the optional parameters
1711
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.
@@ -1714,13 +3443,13 @@ module PharmaObservatory
1714
3443
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1715
3444
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1716
3445
  # @option opts [String] :scope company (this company only) or group (its corporate group).
1717
- # @return [SponsorRecruitmentByPhaseResponse]
1718
- def companies_sponsor_recruitment_by_phase(id, opts = {})
1719
- data, _status_code, _headers = companies_sponsor_recruitment_by_phase_with_http_info(id, opts)
3446
+ # @return [SponsorTrialsResponse]
3447
+ def companies_sponsor_trials(id, opts = {})
3448
+ data, _status_code, _headers = companies_sponsor_trials_with_http_info(id, opts)
1720
3449
  data
1721
3450
  end
1722
3451
 
1723
- # Trial recruitment duration by sponsor and phase
3452
+ # Sponsor trials
1724
3453
  # @param id [String]
1725
3454
  # @param [Hash] opts the optional parameters
1726
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.
@@ -1729,21 +3458,21 @@ module PharmaObservatory
1729
3458
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1730
3459
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1731
3460
  # @option opts [String] :scope company (this company only) or group (its corporate group).
1732
- # @return [Array<(SponsorRecruitmentByPhaseResponse, Integer, Hash)>] SponsorRecruitmentByPhaseResponse data, response status code and response headers
1733
- def companies_sponsor_recruitment_by_phase_with_http_info(id, opts = {})
3461
+ # @return [Array<(SponsorTrialsResponse, Integer, Hash)>] SponsorTrialsResponse data, response status code and response headers
3462
+ def companies_sponsor_trials_with_http_info(id, opts = {})
1734
3463
  if @api_client.config.debugging
1735
- @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_sponsor_recruitment_by_phase ...'
3464
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_sponsor_trials ...'
1736
3465
  end
1737
3466
  # verify the required parameter 'id' is set
1738
3467
  if @api_client.config.client_side_validation && id.nil?
1739
- fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_sponsor_recruitment_by_phase"
3468
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_sponsor_trials"
1740
3469
  end
1741
3470
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1742
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_recruitment_by_phase, must be smaller than or equal to 500.'
3471
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_trials, must be smaller than or equal to 500.'
1743
3472
  end
1744
3473
 
1745
3474
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1746
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_recruitment_by_phase, must be greater than or equal to 1.'
3475
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_trials, must be greater than or equal to 1.'
1747
3476
  end
1748
3477
 
1749
3478
  allowable_values = ["company", "group"]
@@ -1751,7 +3480,7 @@ module PharmaObservatory
1751
3480
  fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
1752
3481
  end
1753
3482
  # resource path
1754
- local_var_path = '/api/v1/companies/{id}/sponsor_recruitment_by_phase'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
3483
+ local_var_path = '/api/v1/companies/{id}/sponsor_trials'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1755
3484
 
1756
3485
  # query parameters
1757
3486
  query_params = opts[:query_params] || {}
@@ -1774,13 +3503,13 @@ module PharmaObservatory
1774
3503
  post_body = opts[:debug_body]
1775
3504
 
1776
3505
  # return_type
1777
- return_type = opts[:debug_return_type] || 'SponsorRecruitmentByPhaseResponse'
3506
+ return_type = opts[:debug_return_type] || 'SponsorTrialsResponse'
1778
3507
 
1779
3508
  # auth_names
1780
3509
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1781
3510
 
1782
3511
  new_options = opts.merge(
1783
- :operation => :"CompaniesApi.companies_sponsor_recruitment_by_phase",
3512
+ :operation => :"CompaniesApi.companies_sponsor_trials",
1784
3513
  :header_params => header_params,
1785
3514
  :query_params => query_params,
1786
3515
  :form_params => form_params,
@@ -1791,12 +3520,12 @@ module PharmaObservatory
1791
3520
 
1792
3521
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1793
3522
  if @api_client.config.debugging
1794
- @api_client.config.logger.debug "API called: CompaniesApi#companies_sponsor_recruitment_by_phase\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3523
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_sponsor_trials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1795
3524
  end
1796
3525
  return data, status_code, headers
1797
3526
  end
1798
3527
 
1799
- # Trial recruitment duration by sponsor
3528
+ # Supplier capability and ESG disclosure
1800
3529
  # @param id [String]
1801
3530
  # @param [Hash] opts the optional parameters
1802
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.
@@ -1805,13 +3534,13 @@ module PharmaObservatory
1805
3534
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1806
3535
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1807
3536
  # @option opts [String] :scope company (this company only) or group (its corporate group).
1808
- # @return [SponsorRecruitmentDurationResponse]
1809
- def companies_sponsor_recruitment_duration(id, opts = {})
1810
- data, _status_code, _headers = companies_sponsor_recruitment_duration_with_http_info(id, opts)
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)
1811
3540
  data
1812
3541
  end
1813
3542
 
1814
- # Trial recruitment duration by sponsor
3543
+ # Supplier capability and ESG disclosure
1815
3544
  # @param id [String]
1816
3545
  # @param [Hash] opts the optional parameters
1817
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.
@@ -1820,21 +3549,21 @@ module PharmaObservatory
1820
3549
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1821
3550
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1822
3551
  # @option opts [String] :scope company (this company only) or group (its corporate group).
1823
- # @return [Array<(SponsorRecruitmentDurationResponse, Integer, Hash)>] SponsorRecruitmentDurationResponse data, response status code and response headers
1824
- def companies_sponsor_recruitment_duration_with_http_info(id, opts = {})
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 = {})
1825
3554
  if @api_client.config.debugging
1826
- @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_sponsor_recruitment_duration ...'
3555
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_supplier_capability_esg ...'
1827
3556
  end
1828
3557
  # verify the required parameter 'id' is set
1829
3558
  if @api_client.config.client_side_validation && id.nil?
1830
- fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_sponsor_recruitment_duration"
3559
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_supplier_capability_esg"
1831
3560
  end
1832
3561
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1833
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_recruitment_duration, must be smaller than or equal to 500.'
3562
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_supplier_capability_esg, must be smaller than or equal to 500.'
1834
3563
  end
1835
3564
 
1836
3565
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1837
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_recruitment_duration, must be greater than or equal to 1.'
3566
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_supplier_capability_esg, must be greater than or equal to 1.'
1838
3567
  end
1839
3568
 
1840
3569
  allowable_values = ["company", "group"]
@@ -1842,7 +3571,7 @@ module PharmaObservatory
1842
3571
  fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
1843
3572
  end
1844
3573
  # resource path
1845
- local_var_path = '/api/v1/companies/{id}/sponsor_recruitment_duration'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
3574
+ local_var_path = '/api/v1/companies/{id}/supplier_capability_esg'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1846
3575
 
1847
3576
  # query parameters
1848
3577
  query_params = opts[:query_params] || {}
@@ -1865,13 +3594,13 @@ module PharmaObservatory
1865
3594
  post_body = opts[:debug_body]
1866
3595
 
1867
3596
  # return_type
1868
- return_type = opts[:debug_return_type] || 'SponsorRecruitmentDurationResponse'
3597
+ return_type = opts[:debug_return_type] || 'SupplierCapabilityEsgResponse'
1869
3598
 
1870
3599
  # auth_names
1871
3600
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1872
3601
 
1873
3602
  new_options = opts.merge(
1874
- :operation => :"CompaniesApi.companies_sponsor_recruitment_duration",
3603
+ :operation => :"CompaniesApi.companies_supplier_capability_esg",
1875
3604
  :header_params => header_params,
1876
3605
  :query_params => query_params,
1877
3606
  :form_params => form_params,
@@ -1882,12 +3611,12 @@ module PharmaObservatory
1882
3611
 
1883
3612
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1884
3613
  if @api_client.config.debugging
1885
- @api_client.config.logger.debug "API called: CompaniesApi#companies_sponsor_recruitment_duration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3614
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_supplier_capability_esg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1886
3615
  end
1887
3616
  return data, status_code, headers
1888
3617
  end
1889
3618
 
1890
- # Trial-start forecast by sponsor
3619
+ # Unmatched product revenue
1891
3620
  # @param id [String]
1892
3621
  # @param [Hash] opts the optional parameters
1893
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.
@@ -1896,13 +3625,13 @@ module PharmaObservatory
1896
3625
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1897
3626
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1898
3627
  # @option opts [String] :scope company (this company only) or group (its corporate group).
1899
- # @return [SponsorTrialStartForecastResponse]
1900
- def companies_sponsor_trial_start_forecast(id, opts = {})
1901
- data, _status_code, _headers = companies_sponsor_trial_start_forecast_with_http_info(id, opts)
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)
1902
3631
  data
1903
3632
  end
1904
3633
 
1905
- # Trial-start forecast by sponsor
3634
+ # Unmatched product revenue
1906
3635
  # @param id [String]
1907
3636
  # @param [Hash] opts the optional parameters
1908
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.
@@ -1911,21 +3640,21 @@ module PharmaObservatory
1911
3640
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1912
3641
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1913
3642
  # @option opts [String] :scope company (this company only) or group (its corporate group).
1914
- # @return [Array<(SponsorTrialStartForecastResponse, Integer, Hash)>] SponsorTrialStartForecastResponse data, response status code and response headers
1915
- def companies_sponsor_trial_start_forecast_with_http_info(id, opts = {})
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 = {})
1916
3645
  if @api_client.config.debugging
1917
- @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_sponsor_trial_start_forecast ...'
3646
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_unmatched_product_revenue ...'
1918
3647
  end
1919
3648
  # verify the required parameter 'id' is set
1920
3649
  if @api_client.config.client_side_validation && id.nil?
1921
- fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_sponsor_trial_start_forecast"
3650
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_unmatched_product_revenue"
1922
3651
  end
1923
3652
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1924
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_trial_start_forecast, must be smaller than or equal to 500.'
3653
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_unmatched_product_revenue, must be smaller than or equal to 500.'
1925
3654
  end
1926
3655
 
1927
3656
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1928
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_trial_start_forecast, must be greater than or equal to 1.'
3657
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_unmatched_product_revenue, must be greater than or equal to 1.'
1929
3658
  end
1930
3659
 
1931
3660
  allowable_values = ["company", "group"]
@@ -1933,7 +3662,7 @@ module PharmaObservatory
1933
3662
  fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
1934
3663
  end
1935
3664
  # resource path
1936
- local_var_path = '/api/v1/companies/{id}/sponsor_trial_start_forecast'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
3665
+ local_var_path = '/api/v1/companies/{id}/unmatched_product_revenue'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1937
3666
 
1938
3667
  # query parameters
1939
3668
  query_params = opts[:query_params] || {}
@@ -1956,13 +3685,13 @@ module PharmaObservatory
1956
3685
  post_body = opts[:debug_body]
1957
3686
 
1958
3687
  # return_type
1959
- return_type = opts[:debug_return_type] || 'SponsorTrialStartForecastResponse'
3688
+ return_type = opts[:debug_return_type] || 'UnmatchedProductRevenueResponse'
1960
3689
 
1961
3690
  # auth_names
1962
3691
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1963
3692
 
1964
3693
  new_options = opts.merge(
1965
- :operation => :"CompaniesApi.companies_sponsor_trial_start_forecast",
3694
+ :operation => :"CompaniesApi.companies_unmatched_product_revenue",
1966
3695
  :header_params => header_params,
1967
3696
  :query_params => query_params,
1968
3697
  :form_params => form_params,
@@ -1973,12 +3702,12 @@ module PharmaObservatory
1973
3702
 
1974
3703
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1975
3704
  if @api_client.config.debugging
1976
- @api_client.config.logger.debug "API called: CompaniesApi#companies_sponsor_trial_start_forecast\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3705
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_unmatched_product_revenue\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1977
3706
  end
1978
3707
  return data, status_code, headers
1979
3708
  end
1980
3709
 
1981
- # Sponsor trials
3710
+ # FDA untitled letters
1982
3711
  # @param id [String]
1983
3712
  # @param [Hash] opts the optional parameters
1984
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.
@@ -1987,13 +3716,13 @@ module PharmaObservatory
1987
3716
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1988
3717
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1989
3718
  # @option opts [String] :scope company (this company only) or group (its corporate group).
1990
- # @return [SponsorTrialsResponse]
1991
- def companies_sponsor_trials(id, opts = {})
1992
- data, _status_code, _headers = companies_sponsor_trials_with_http_info(id, opts)
3719
+ # @return [UntitledLettersResponse]
3720
+ def companies_untitled_letters(id, opts = {})
3721
+ data, _status_code, _headers = companies_untitled_letters_with_http_info(id, opts)
1993
3722
  data
1994
3723
  end
1995
3724
 
1996
- # Sponsor trials
3725
+ # FDA untitled letters
1997
3726
  # @param id [String]
1998
3727
  # @param [Hash] opts the optional parameters
1999
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.
@@ -2002,21 +3731,21 @@ module PharmaObservatory
2002
3731
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2003
3732
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2004
3733
  # @option opts [String] :scope company (this company only) or group (its corporate group).
2005
- # @return [Array<(SponsorTrialsResponse, Integer, Hash)>] SponsorTrialsResponse data, response status code and response headers
2006
- def companies_sponsor_trials_with_http_info(id, opts = {})
3734
+ # @return [Array<(UntitledLettersResponse, Integer, Hash)>] UntitledLettersResponse data, response status code and response headers
3735
+ def companies_untitled_letters_with_http_info(id, opts = {})
2007
3736
  if @api_client.config.debugging
2008
- @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_sponsor_trials ...'
3737
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_untitled_letters ...'
2009
3738
  end
2010
3739
  # verify the required parameter 'id' is set
2011
3740
  if @api_client.config.client_side_validation && id.nil?
2012
- fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_sponsor_trials"
3741
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_untitled_letters"
2013
3742
  end
2014
3743
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
2015
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_trials, must be smaller than or equal to 500.'
3744
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_untitled_letters, must be smaller than or equal to 500.'
2016
3745
  end
2017
3746
 
2018
3747
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
2019
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_trials, must be greater than or equal to 1.'
3748
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_untitled_letters, must be greater than or equal to 1.'
2020
3749
  end
2021
3750
 
2022
3751
  allowable_values = ["company", "group"]
@@ -2024,7 +3753,7 @@ module PharmaObservatory
2024
3753
  fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
2025
3754
  end
2026
3755
  # resource path
2027
- local_var_path = '/api/v1/companies/{id}/sponsor_trials'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
3756
+ local_var_path = '/api/v1/companies/{id}/untitled_letters'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2028
3757
 
2029
3758
  # query parameters
2030
3759
  query_params = opts[:query_params] || {}
@@ -2047,13 +3776,13 @@ module PharmaObservatory
2047
3776
  post_body = opts[:debug_body]
2048
3777
 
2049
3778
  # return_type
2050
- return_type = opts[:debug_return_type] || 'SponsorTrialsResponse'
3779
+ return_type = opts[:debug_return_type] || 'UntitledLettersResponse'
2051
3780
 
2052
3781
  # auth_names
2053
3782
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
2054
3783
 
2055
3784
  new_options = opts.merge(
2056
- :operation => :"CompaniesApi.companies_sponsor_trials",
3785
+ :operation => :"CompaniesApi.companies_untitled_letters",
2057
3786
  :header_params => header_params,
2058
3787
  :query_params => query_params,
2059
3788
  :form_params => form_params,
@@ -2064,12 +3793,12 @@ module PharmaObservatory
2064
3793
 
2065
3794
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2066
3795
  if @api_client.config.debugging
2067
- @api_client.config.logger.debug "API called: CompaniesApi#companies_sponsor_trials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3796
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_untitled_letters\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2068
3797
  end
2069
3798
  return data, status_code, headers
2070
3799
  end
2071
3800
 
2072
- # Supplier capability and ESG disclosure
3801
+ # FDA warning letters
2073
3802
  # @param id [String]
2074
3803
  # @param [Hash] opts the optional parameters
2075
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.
@@ -2078,13 +3807,13 @@ module PharmaObservatory
2078
3807
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2079
3808
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2080
3809
  # @option opts [String] :scope company (this company only) or group (its corporate group).
2081
- # @return [SupplierCapabilityEsgResponse]
2082
- def companies_supplier_capability_esg(id, opts = {})
2083
- data, _status_code, _headers = companies_supplier_capability_esg_with_http_info(id, opts)
3810
+ # @return [WarningLettersResponse]
3811
+ def companies_warning_letters(id, opts = {})
3812
+ data, _status_code, _headers = companies_warning_letters_with_http_info(id, opts)
2084
3813
  data
2085
3814
  end
2086
3815
 
2087
- # Supplier capability and ESG disclosure
3816
+ # FDA warning letters
2088
3817
  # @param id [String]
2089
3818
  # @param [Hash] opts the optional parameters
2090
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.
@@ -2093,21 +3822,21 @@ module PharmaObservatory
2093
3822
  # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2094
3823
  # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2095
3824
  # @option opts [String] :scope company (this company only) or group (its corporate group).
2096
- # @return [Array<(SupplierCapabilityEsgResponse, Integer, Hash)>] SupplierCapabilityEsgResponse data, response status code and response headers
2097
- def companies_supplier_capability_esg_with_http_info(id, opts = {})
3825
+ # @return [Array<(WarningLettersResponse, Integer, Hash)>] WarningLettersResponse data, response status code and response headers
3826
+ def companies_warning_letters_with_http_info(id, opts = {})
2098
3827
  if @api_client.config.debugging
2099
- @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_supplier_capability_esg ...'
3828
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_warning_letters ...'
2100
3829
  end
2101
3830
  # verify the required parameter 'id' is set
2102
3831
  if @api_client.config.client_side_validation && id.nil?
2103
- fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_supplier_capability_esg"
3832
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_warning_letters"
2104
3833
  end
2105
3834
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
2106
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_supplier_capability_esg, must be smaller than or equal to 500.'
3835
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_warning_letters, must be smaller than or equal to 500.'
2107
3836
  end
2108
3837
 
2109
3838
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
2110
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_supplier_capability_esg, must be greater than or equal to 1.'
3839
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_warning_letters, must be greater than or equal to 1.'
2111
3840
  end
2112
3841
 
2113
3842
  allowable_values = ["company", "group"]
@@ -2115,7 +3844,7 @@ module PharmaObservatory
2115
3844
  fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
2116
3845
  end
2117
3846
  # resource path
2118
- local_var_path = '/api/v1/companies/{id}/supplier_capability_esg'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
3847
+ local_var_path = '/api/v1/companies/{id}/warning_letters'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2119
3848
 
2120
3849
  # query parameters
2121
3850
  query_params = opts[:query_params] || {}
@@ -2138,13 +3867,13 @@ module PharmaObservatory
2138
3867
  post_body = opts[:debug_body]
2139
3868
 
2140
3869
  # return_type
2141
- return_type = opts[:debug_return_type] || 'SupplierCapabilityEsgResponse'
3870
+ return_type = opts[:debug_return_type] || 'WarningLettersResponse'
2142
3871
 
2143
3872
  # auth_names
2144
3873
  auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
2145
3874
 
2146
3875
  new_options = opts.merge(
2147
- :operation => :"CompaniesApi.companies_supplier_capability_esg",
3876
+ :operation => :"CompaniesApi.companies_warning_letters",
2148
3877
  :header_params => header_params,
2149
3878
  :query_params => query_params,
2150
3879
  :form_params => form_params,
@@ -2155,7 +3884,7 @@ module PharmaObservatory
2155
3884
 
2156
3885
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2157
3886
  if @api_client.config.debugging
2158
- @api_client.config.logger.debug "API called: CompaniesApi#companies_supplier_capability_esg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3887
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_warning_letters\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2159
3888
  end
2160
3889
  return data, status_code, headers
2161
3890
  end