pharmaobservatory 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +83 -4
- data/docs/BiomarkerAlleleFrequenciesResponse.md +58 -0
- data/docs/BiomarkerAlleleFrequenciesRow.md +62 -0
- data/docs/BiomarkerAssayProvidersResponse.md +58 -0
- data/docs/BiomarkerAssayProvidersRow.md +72 -0
- data/docs/BiomarkerEvidenceByYearResponse.md +58 -0
- data/docs/BiomarkerEvidenceByYearRow.md +32 -0
- data/docs/BiomarkerTraversalStatusResponse.md +58 -0
- data/docs/BiomarkerTraversalStatusRow.md +36 -0
- data/docs/BiomarkersApi.md +320 -0
- data/docs/CompaniesApi.md +1001 -99
- data/docs/CompanyAssetsRow.md +5 -1
- data/docs/CompanyBiomarkerCapabilityResponse.md +58 -0
- data/docs/CompanyBiomarkerCapabilityRow.md +68 -0
- data/docs/CompanyProgramsRow.md +5 -1
- data/docs/CompanyRareDiseaseDeclarationsResponse.md +58 -0
- data/docs/CompanyRareDiseaseDeclarationsRow.md +52 -0
- data/docs/GxpFacilitiesRow.md +22 -0
- data/docs/LegalEntitiesApi.md +981 -101
- data/docs/LegalEntitiesRecordAttributes.md +6 -0
- data/docs/LegalEntitySecFilingsResponse.md +58 -0
- data/docs/LegalEntitySecFilingsRow.md +44 -0
- data/docs/OrgDisclosureTrendResponse.md +58 -0
- data/docs/OrgDisclosureTrendRow.md +62 -0
- data/docs/OwnershipSourceCoverageResponse.md +58 -0
- data/docs/OwnershipSourceCoverageRow.md +62 -0
- data/docs/ProgramLicensingCandidatesRow.md +5 -1
- data/docs/ProgramsRow.md +1 -1
- data/docs/RwdConductorDeliveryResponse.md +58 -0
- data/docs/RwdConductorDeliveryRow.md +74 -0
- data/docs/RwdConductorFootprintResponse.md +58 -0
- data/docs/RwdConductorFootprintRow.md +40 -0
- data/docs/RwdConductorStudiesResponse.md +58 -0
- data/docs/RwdConductorStudiesRow.md +42 -0
- data/docs/RwdConductorsApi.md +393 -0
- data/docs/RwdConductorsRecord.md +38 -0
- data/docs/RwdConductorsResponse.md +58 -0
- data/docs/RwdConductorsRow.md +72 -0
- data/docs/RwdInstitutionsApi.md +153 -0
- data/docs/RwdInstitutionsRecord.md +38 -0
- data/docs/RwdInstitutionsResponse.md +58 -0
- data/docs/RwdInstitutionsRow.md +154 -0
- data/docs/RwdNetworksApi.md +153 -0
- data/docs/RwdNetworksRecord.md +38 -0
- data/docs/RwdNetworksResponse.md +58 -0
- data/docs/RwdNetworksRow.md +110 -0
- data/docs/RwdStudiesApi.md +80 -0
- data/docs/SbtiCrosscheckResponse.md +58 -0
- data/docs/SbtiCrosscheckRow.md +48 -0
- data/docs/SponsorDeliveryResponse.md +58 -0
- data/docs/SponsorDeliveryRow.md +52 -0
- data/docs/SponsorPatentMentionsResponse.md +58 -0
- data/docs/SponsorPatentMentionsRow.md +42 -0
- data/docs/SponsorTrialConditionsResponse.md +58 -0
- data/docs/SponsorTrialConditionsRow.md +36 -0
- data/docs/SponsorTrialDrugsResponse.md +58 -0
- data/docs/SponsorTrialDrugsRow.md +34 -0
- data/lib/pharmaobservatory/api/biomarkers_api.rb +336 -0
- data/lib/pharmaobservatory/api/companies_api.rb +1131 -130
- data/lib/pharmaobservatory/api/legal_entities_api.rb +1047 -123
- data/lib/pharmaobservatory/api/rwd_conductors_api.rb +413 -0
- data/lib/pharmaobservatory/api/rwd_institutions_api.rb +161 -0
- data/lib/pharmaobservatory/api/rwd_networks_api.rb +161 -0
- data/lib/pharmaobservatory/api/rwd_studies_api.rb +84 -0
- data/lib/pharmaobservatory/models/biomarker_allele_frequencies_response.rb +478 -0
- data/lib/pharmaobservatory/models/biomarker_allele_frequencies_row.rb +465 -0
- data/lib/pharmaobservatory/models/biomarker_assay_providers_response.rb +478 -0
- data/lib/pharmaobservatory/models/biomarker_assay_providers_row.rb +520 -0
- data/lib/pharmaobservatory/models/biomarker_evidence_by_year_response.rb +478 -0
- data/lib/pharmaobservatory/models/biomarker_evidence_by_year_row.rb +300 -0
- data/lib/pharmaobservatory/models/biomarker_traversal_status_response.rb +478 -0
- data/lib/pharmaobservatory/models/biomarker_traversal_status_row.rb +322 -0
- data/lib/pharmaobservatory/models/company_assets_row.rb +24 -2
- data/lib/pharmaobservatory/models/company_biomarker_capability_response.rb +478 -0
- data/lib/pharmaobservatory/models/company_biomarker_capability_row.rb +498 -0
- data/lib/pharmaobservatory/models/company_programs_row.rb +24 -2
- data/lib/pharmaobservatory/models/company_rare_disease_declarations_response.rb +478 -0
- data/lib/pharmaobservatory/models/company_rare_disease_declarations_row.rb +410 -0
- data/lib/pharmaobservatory/models/gxp_facilities_row.rb +122 -1
- data/lib/pharmaobservatory/models/legal_entities_record_attributes.rb +28 -1
- data/lib/pharmaobservatory/models/legal_entity_sec_filings_response.rb +478 -0
- data/lib/pharmaobservatory/models/legal_entity_sec_filings_row.rb +370 -0
- data/lib/pharmaobservatory/models/org_disclosure_trend_response.rb +478 -0
- data/lib/pharmaobservatory/models/org_disclosure_trend_row.rb +465 -0
- data/lib/pharmaobservatory/models/ownership_source_coverage_response.rb +478 -0
- data/lib/pharmaobservatory/models/ownership_source_coverage_row.rb +465 -0
- data/lib/pharmaobservatory/models/program_licensing_candidates_row.rb +24 -2
- data/lib/pharmaobservatory/models/programs_row.rb +1 -1
- data/lib/pharmaobservatory/models/rwd_conductor_delivery_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_conductor_delivery_row.rb +537 -0
- data/lib/pharmaobservatory/models/rwd_conductor_footprint_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_conductor_footprint_row.rb +346 -0
- data/lib/pharmaobservatory/models/rwd_conductor_studies_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_conductor_studies_row.rb +355 -0
- data/lib/pharmaobservatory/models/rwd_conductors_record.rb +385 -0
- data/lib/pharmaobservatory/models/rwd_conductors_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_conductors_row.rb +526 -0
- data/lib/pharmaobservatory/models/rwd_institutions_record.rb +385 -0
- data/lib/pharmaobservatory/models/rwd_institutions_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_institutions_row.rb +981 -0
- data/lib/pharmaobservatory/models/rwd_networks_record.rb +385 -0
- data/lib/pharmaobservatory/models/rwd_networks_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_networks_row.rb +733 -0
- data/lib/pharmaobservatory/models/sbti_crosscheck_response.rb +478 -0
- data/lib/pharmaobservatory/models/sbti_crosscheck_row.rb +388 -0
- data/lib/pharmaobservatory/models/sponsor_delivery_response.rb +478 -0
- data/lib/pharmaobservatory/models/sponsor_delivery_row.rb +410 -0
- data/lib/pharmaobservatory/models/sponsor_patent_mentions_response.rb +478 -0
- data/lib/pharmaobservatory/models/sponsor_patent_mentions_row.rb +355 -0
- data/lib/pharmaobservatory/models/sponsor_trial_conditions_response.rb +478 -0
- data/lib/pharmaobservatory/models/sponsor_trial_conditions_row.rb +322 -0
- data/lib/pharmaobservatory/models/sponsor_trial_drugs_response.rb +478 -0
- data/lib/pharmaobservatory/models/sponsor_trial_drugs_row.rb +311 -0
- data/lib/pharmaobservatory/version.rb +1 -1
- data/lib/pharmaobservatory.rb +46 -0
- metadata +94 -2
|
@@ -656,6 +656,97 @@ module PharmaObservatory
|
|
|
656
656
|
return data, status_code, headers
|
|
657
657
|
end
|
|
658
658
|
|
|
659
|
+
# Company biomarker capability
|
|
660
|
+
# @param id [String]
|
|
661
|
+
# @param [Hash] opts the optional parameters
|
|
662
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
663
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
664
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
665
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
666
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
667
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
668
|
+
# @return [CompanyBiomarkerCapabilityResponse]
|
|
669
|
+
def companies_company_biomarker_capability(id, opts = {})
|
|
670
|
+
data, _status_code, _headers = companies_company_biomarker_capability_with_http_info(id, opts)
|
|
671
|
+
data
|
|
672
|
+
end
|
|
673
|
+
|
|
674
|
+
# Company biomarker capability
|
|
675
|
+
# @param id [String]
|
|
676
|
+
# @param [Hash] opts the optional parameters
|
|
677
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
678
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
679
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
680
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
681
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
682
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
683
|
+
# @return [Array<(CompanyBiomarkerCapabilityResponse, Integer, Hash)>] CompanyBiomarkerCapabilityResponse data, response status code and response headers
|
|
684
|
+
def companies_company_biomarker_capability_with_http_info(id, opts = {})
|
|
685
|
+
if @api_client.config.debugging
|
|
686
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_biomarker_capability ...'
|
|
687
|
+
end
|
|
688
|
+
# verify the required parameter 'id' is set
|
|
689
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
690
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_biomarker_capability"
|
|
691
|
+
end
|
|
692
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
693
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_biomarker_capability, must be smaller than or equal to 500.'
|
|
694
|
+
end
|
|
695
|
+
|
|
696
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
697
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_biomarker_capability, must be greater than or equal to 1.'
|
|
698
|
+
end
|
|
699
|
+
|
|
700
|
+
allowable_values = ["company", "group"]
|
|
701
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
702
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
703
|
+
end
|
|
704
|
+
# resource path
|
|
705
|
+
local_var_path = '/api/v1/companies/{id}/company_biomarker_capability'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
706
|
+
|
|
707
|
+
# query parameters
|
|
708
|
+
query_params = opts[:query_params] || {}
|
|
709
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
710
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
711
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
712
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
713
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
714
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
715
|
+
|
|
716
|
+
# header parameters
|
|
717
|
+
header_params = opts[:header_params] || {}
|
|
718
|
+
# HTTP header 'Accept' (if needed)
|
|
719
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
720
|
+
|
|
721
|
+
# form parameters
|
|
722
|
+
form_params = opts[:form_params] || {}
|
|
723
|
+
|
|
724
|
+
# http body (model)
|
|
725
|
+
post_body = opts[:debug_body]
|
|
726
|
+
|
|
727
|
+
# return_type
|
|
728
|
+
return_type = opts[:debug_return_type] || 'CompanyBiomarkerCapabilityResponse'
|
|
729
|
+
|
|
730
|
+
# auth_names
|
|
731
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
732
|
+
|
|
733
|
+
new_options = opts.merge(
|
|
734
|
+
:operation => :"CompaniesApi.companies_company_biomarker_capability",
|
|
735
|
+
:header_params => header_params,
|
|
736
|
+
:query_params => query_params,
|
|
737
|
+
:form_params => form_params,
|
|
738
|
+
:body => post_body,
|
|
739
|
+
:auth_names => auth_names,
|
|
740
|
+
:return_type => return_type
|
|
741
|
+
)
|
|
742
|
+
|
|
743
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
744
|
+
if @api_client.config.debugging
|
|
745
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_company_biomarker_capability\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
746
|
+
end
|
|
747
|
+
return data, status_code, headers
|
|
748
|
+
end
|
|
749
|
+
|
|
659
750
|
# Company funding events
|
|
660
751
|
# @param id [String]
|
|
661
752
|
# @param [Hash] opts the optional parameters
|
|
@@ -1020,6 +1111,97 @@ module PharmaObservatory
|
|
|
1020
1111
|
return data, status_code, headers
|
|
1021
1112
|
end
|
|
1022
1113
|
|
|
1114
|
+
# Organization-wide rare disease declarations
|
|
1115
|
+
# @param id [String]
|
|
1116
|
+
# @param [Hash] opts the optional parameters
|
|
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.
|
|
1118
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1119
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1120
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1121
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1122
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1123
|
+
# @return [CompanyRareDiseaseDeclarationsResponse]
|
|
1124
|
+
def companies_company_rare_disease_declarations(id, opts = {})
|
|
1125
|
+
data, _status_code, _headers = companies_company_rare_disease_declarations_with_http_info(id, opts)
|
|
1126
|
+
data
|
|
1127
|
+
end
|
|
1128
|
+
|
|
1129
|
+
# Organization-wide rare disease declarations
|
|
1130
|
+
# @param id [String]
|
|
1131
|
+
# @param [Hash] opts the optional parameters
|
|
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.
|
|
1133
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1134
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1135
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1136
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1137
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1138
|
+
# @return [Array<(CompanyRareDiseaseDeclarationsResponse, Integer, Hash)>] CompanyRareDiseaseDeclarationsResponse data, response status code and response headers
|
|
1139
|
+
def companies_company_rare_disease_declarations_with_http_info(id, opts = {})
|
|
1140
|
+
if @api_client.config.debugging
|
|
1141
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_rare_disease_declarations ...'
|
|
1142
|
+
end
|
|
1143
|
+
# verify the required parameter 'id' is set
|
|
1144
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1145
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_rare_disease_declarations"
|
|
1146
|
+
end
|
|
1147
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1148
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_rare_disease_declarations, must be smaller than or equal to 500.'
|
|
1149
|
+
end
|
|
1150
|
+
|
|
1151
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1152
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_rare_disease_declarations, must be greater than or equal to 1.'
|
|
1153
|
+
end
|
|
1154
|
+
|
|
1155
|
+
allowable_values = ["company", "group"]
|
|
1156
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
1157
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
1158
|
+
end
|
|
1159
|
+
# resource path
|
|
1160
|
+
local_var_path = '/api/v1/companies/{id}/company_rare_disease_declarations'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1161
|
+
|
|
1162
|
+
# query parameters
|
|
1163
|
+
query_params = opts[:query_params] || {}
|
|
1164
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
1165
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1166
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
1167
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
1168
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
1169
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
1170
|
+
|
|
1171
|
+
# header parameters
|
|
1172
|
+
header_params = opts[:header_params] || {}
|
|
1173
|
+
# HTTP header 'Accept' (if needed)
|
|
1174
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1175
|
+
|
|
1176
|
+
# form parameters
|
|
1177
|
+
form_params = opts[:form_params] || {}
|
|
1178
|
+
|
|
1179
|
+
# http body (model)
|
|
1180
|
+
post_body = opts[:debug_body]
|
|
1181
|
+
|
|
1182
|
+
# return_type
|
|
1183
|
+
return_type = opts[:debug_return_type] || 'CompanyRareDiseaseDeclarationsResponse'
|
|
1184
|
+
|
|
1185
|
+
# auth_names
|
|
1186
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1187
|
+
|
|
1188
|
+
new_options = opts.merge(
|
|
1189
|
+
:operation => :"CompaniesApi.companies_company_rare_disease_declarations",
|
|
1190
|
+
:header_params => header_params,
|
|
1191
|
+
:query_params => query_params,
|
|
1192
|
+
:form_params => form_params,
|
|
1193
|
+
:body => post_body,
|
|
1194
|
+
:auth_names => auth_names,
|
|
1195
|
+
:return_type => return_type
|
|
1196
|
+
)
|
|
1197
|
+
|
|
1198
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1199
|
+
if @api_client.config.debugging
|
|
1200
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_company_rare_disease_declarations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1201
|
+
end
|
|
1202
|
+
return data, status_code, headers
|
|
1203
|
+
end
|
|
1204
|
+
|
|
1023
1205
|
# Targets a company pursues
|
|
1024
1206
|
# @param id [String]
|
|
1025
1207
|
# @param [Hash] opts the optional parameters
|
|
@@ -2446,41 +2628,53 @@ module PharmaObservatory
|
|
|
2446
2628
|
return data, status_code, headers
|
|
2447
2629
|
end
|
|
2448
2630
|
|
|
2449
|
-
#
|
|
2631
|
+
# SEC filer records
|
|
2632
|
+
# @param id [String]
|
|
2450
2633
|
# @param [Hash] opts the optional parameters
|
|
2451
2634
|
# @option 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
2635
|
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
2453
2636
|
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2454
2637
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2455
2638
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2456
|
-
# @
|
|
2457
|
-
|
|
2458
|
-
|
|
2639
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2640
|
+
# @return [LegalEntitySecFilingsResponse]
|
|
2641
|
+
def companies_legal_entity_sec_filings(id, opts = {})
|
|
2642
|
+
data, _status_code, _headers = companies_legal_entity_sec_filings_with_http_info(id, opts)
|
|
2459
2643
|
data
|
|
2460
2644
|
end
|
|
2461
2645
|
|
|
2462
|
-
#
|
|
2646
|
+
# SEC filer records
|
|
2647
|
+
# @param id [String]
|
|
2463
2648
|
# @param [Hash] opts the optional parameters
|
|
2464
2649
|
# @option 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
2650
|
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
2466
2651
|
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2467
2652
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2468
2653
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2469
|
-
# @
|
|
2470
|
-
|
|
2654
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2655
|
+
# @return [Array<(LegalEntitySecFilingsResponse, Integer, Hash)>] LegalEntitySecFilingsResponse data, response status code and response headers
|
|
2656
|
+
def companies_legal_entity_sec_filings_with_http_info(id, opts = {})
|
|
2471
2657
|
if @api_client.config.debugging
|
|
2472
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
2658
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_legal_entity_sec_filings ...'
|
|
2659
|
+
end
|
|
2660
|
+
# verify the required parameter 'id' is set
|
|
2661
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
2662
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_legal_entity_sec_filings"
|
|
2473
2663
|
end
|
|
2474
2664
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
2475
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
2665
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_legal_entity_sec_filings, must be smaller than or equal to 500.'
|
|
2476
2666
|
end
|
|
2477
2667
|
|
|
2478
2668
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
2479
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
2669
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_legal_entity_sec_filings, must be greater than or equal to 1.'
|
|
2480
2670
|
end
|
|
2481
2671
|
|
|
2672
|
+
allowable_values = ["company", "group"]
|
|
2673
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
2674
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
2675
|
+
end
|
|
2482
2676
|
# resource path
|
|
2483
|
-
local_var_path = '/api/v1/companies'
|
|
2677
|
+
local_var_path = '/api/v1/companies/{id}/legal_entity_sec_filings'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
2484
2678
|
|
|
2485
2679
|
# query parameters
|
|
2486
2680
|
query_params = opts[:query_params] || {}
|
|
@@ -2489,6 +2683,7 @@ module PharmaObservatory
|
|
|
2489
2683
|
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
2490
2684
|
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
2491
2685
|
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
2686
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
2492
2687
|
|
|
2493
2688
|
# header parameters
|
|
2494
2689
|
header_params = opts[:header_params] || {}
|
|
@@ -2502,13 +2697,13 @@ module PharmaObservatory
|
|
|
2502
2697
|
post_body = opts[:debug_body]
|
|
2503
2698
|
|
|
2504
2699
|
# return_type
|
|
2505
|
-
return_type = opts[:debug_return_type] || '
|
|
2700
|
+
return_type = opts[:debug_return_type] || 'LegalEntitySecFilingsResponse'
|
|
2506
2701
|
|
|
2507
2702
|
# auth_names
|
|
2508
2703
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
2509
2704
|
|
|
2510
2705
|
new_options = opts.merge(
|
|
2511
|
-
:operation => :"CompaniesApi.
|
|
2706
|
+
:operation => :"CompaniesApi.companies_legal_entity_sec_filings",
|
|
2512
2707
|
:header_params => header_params,
|
|
2513
2708
|
:query_params => query_params,
|
|
2514
2709
|
:form_params => form_params,
|
|
@@ -2519,58 +2714,46 @@ module PharmaObservatory
|
|
|
2519
2714
|
|
|
2520
2715
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2521
2716
|
if @api_client.config.debugging
|
|
2522
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
2717
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_legal_entity_sec_filings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2523
2718
|
end
|
|
2524
2719
|
return data, status_code, headers
|
|
2525
2720
|
end
|
|
2526
2721
|
|
|
2527
|
-
#
|
|
2528
|
-
# @param id [String]
|
|
2722
|
+
# List companies
|
|
2529
2723
|
# @param [Hash] opts the optional parameters
|
|
2530
2724
|
# @option 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
2725
|
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
2532
2726
|
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2533
2727
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2534
2728
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2535
|
-
# @
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
data, _status_code, _headers = companies_org_disclosures_with_http_info(id, opts)
|
|
2729
|
+
# @return [CompaniesResponse]
|
|
2730
|
+
def companies_list(opts = {})
|
|
2731
|
+
data, _status_code, _headers = companies_list_with_http_info(opts)
|
|
2539
2732
|
data
|
|
2540
2733
|
end
|
|
2541
2734
|
|
|
2542
|
-
#
|
|
2543
|
-
# @param id [String]
|
|
2735
|
+
# List companies
|
|
2544
2736
|
# @param [Hash] opts the optional parameters
|
|
2545
2737
|
# @option 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
2738
|
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
2547
2739
|
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2548
2740
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2549
2741
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2550
|
-
# @
|
|
2551
|
-
|
|
2552
|
-
def companies_org_disclosures_with_http_info(id, opts = {})
|
|
2742
|
+
# @return [Array<(CompaniesResponse, Integer, Hash)>] CompaniesResponse data, response status code and response headers
|
|
2743
|
+
def companies_list_with_http_info(opts = {})
|
|
2553
2744
|
if @api_client.config.debugging
|
|
2554
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
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"
|
|
2745
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_list ...'
|
|
2559
2746
|
end
|
|
2560
2747
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
2561
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
2748
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_list, must be smaller than or equal to 500.'
|
|
2562
2749
|
end
|
|
2563
2750
|
|
|
2564
2751
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
2565
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
2752
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_list, must be greater than or equal to 1.'
|
|
2566
2753
|
end
|
|
2567
2754
|
|
|
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
2755
|
# resource path
|
|
2573
|
-
local_var_path = '/api/v1/companies
|
|
2756
|
+
local_var_path = '/api/v1/companies'
|
|
2574
2757
|
|
|
2575
2758
|
# query parameters
|
|
2576
2759
|
query_params = opts[:query_params] || {}
|
|
@@ -2579,7 +2762,6 @@ module PharmaObservatory
|
|
|
2579
2762
|
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
2580
2763
|
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
2581
2764
|
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
2582
|
-
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
2583
2765
|
|
|
2584
2766
|
# header parameters
|
|
2585
2767
|
header_params = opts[:header_params] || {}
|
|
@@ -2593,13 +2775,13 @@ module PharmaObservatory
|
|
|
2593
2775
|
post_body = opts[:debug_body]
|
|
2594
2776
|
|
|
2595
2777
|
# return_type
|
|
2596
|
-
return_type = opts[:debug_return_type] || '
|
|
2778
|
+
return_type = opts[:debug_return_type] || 'CompaniesResponse'
|
|
2597
2779
|
|
|
2598
2780
|
# auth_names
|
|
2599
2781
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
2600
2782
|
|
|
2601
2783
|
new_options = opts.merge(
|
|
2602
|
-
:operation => :"CompaniesApi.
|
|
2784
|
+
:operation => :"CompaniesApi.companies_list",
|
|
2603
2785
|
:header_params => header_params,
|
|
2604
2786
|
:query_params => query_params,
|
|
2605
2787
|
:form_params => form_params,
|
|
@@ -2610,12 +2792,12 @@ module PharmaObservatory
|
|
|
2610
2792
|
|
|
2611
2793
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2612
2794
|
if @api_client.config.debugging
|
|
2613
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
2795
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2614
2796
|
end
|
|
2615
2797
|
return data, status_code, headers
|
|
2616
2798
|
end
|
|
2617
2799
|
|
|
2618
|
-
# Organization
|
|
2800
|
+
# Organization disclosure trend
|
|
2619
2801
|
# @param id [String]
|
|
2620
2802
|
# @param [Hash] opts the optional parameters
|
|
2621
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.
|
|
@@ -2624,13 +2806,13 @@ module PharmaObservatory
|
|
|
2624
2806
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2625
2807
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2626
2808
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2627
|
-
# @return [
|
|
2628
|
-
def
|
|
2629
|
-
data, _status_code, _headers =
|
|
2809
|
+
# @return [OrgDisclosureTrendResponse]
|
|
2810
|
+
def companies_org_disclosure_trend(id, opts = {})
|
|
2811
|
+
data, _status_code, _headers = companies_org_disclosure_trend_with_http_info(id, opts)
|
|
2630
2812
|
data
|
|
2631
2813
|
end
|
|
2632
2814
|
|
|
2633
|
-
# Organization
|
|
2815
|
+
# Organization disclosure trend
|
|
2634
2816
|
# @param id [String]
|
|
2635
2817
|
# @param [Hash] opts the optional parameters
|
|
2636
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.
|
|
@@ -2639,21 +2821,21 @@ module PharmaObservatory
|
|
|
2639
2821
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2640
2822
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2641
2823
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2642
|
-
# @return [Array<(
|
|
2643
|
-
def
|
|
2824
|
+
# @return [Array<(OrgDisclosureTrendResponse, Integer, Hash)>] OrgDisclosureTrendResponse data, response status code and response headers
|
|
2825
|
+
def companies_org_disclosure_trend_with_http_info(id, opts = {})
|
|
2644
2826
|
if @api_client.config.debugging
|
|
2645
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
2827
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_org_disclosure_trend ...'
|
|
2646
2828
|
end
|
|
2647
2829
|
# verify the required parameter 'id' is set
|
|
2648
2830
|
if @api_client.config.client_side_validation && id.nil?
|
|
2649
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.
|
|
2831
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_org_disclosure_trend"
|
|
2650
2832
|
end
|
|
2651
2833
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
2652
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
2834
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_org_disclosure_trend, must be smaller than or equal to 500.'
|
|
2653
2835
|
end
|
|
2654
2836
|
|
|
2655
2837
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
2656
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
2838
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_org_disclosure_trend, must be greater than or equal to 1.'
|
|
2657
2839
|
end
|
|
2658
2840
|
|
|
2659
2841
|
allowable_values = ["company", "group"]
|
|
@@ -2661,7 +2843,7 @@ module PharmaObservatory
|
|
|
2661
2843
|
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
2662
2844
|
end
|
|
2663
2845
|
# resource path
|
|
2664
|
-
local_var_path = '/api/v1/companies/{id}/
|
|
2846
|
+
local_var_path = '/api/v1/companies/{id}/org_disclosure_trend'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
2665
2847
|
|
|
2666
2848
|
# query parameters
|
|
2667
2849
|
query_params = opts[:query_params] || {}
|
|
@@ -2684,13 +2866,13 @@ module PharmaObservatory
|
|
|
2684
2866
|
post_body = opts[:debug_body]
|
|
2685
2867
|
|
|
2686
2868
|
# return_type
|
|
2687
|
-
return_type = opts[:debug_return_type] || '
|
|
2869
|
+
return_type = opts[:debug_return_type] || 'OrgDisclosureTrendResponse'
|
|
2688
2870
|
|
|
2689
2871
|
# auth_names
|
|
2690
2872
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
2691
2873
|
|
|
2692
2874
|
new_options = opts.merge(
|
|
2693
|
-
:operation => :"CompaniesApi.
|
|
2875
|
+
:operation => :"CompaniesApi.companies_org_disclosure_trend",
|
|
2694
2876
|
:header_params => header_params,
|
|
2695
2877
|
:query_params => query_params,
|
|
2696
2878
|
:form_params => form_params,
|
|
@@ -2701,12 +2883,12 @@ module PharmaObservatory
|
|
|
2701
2883
|
|
|
2702
2884
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2703
2885
|
if @api_client.config.debugging
|
|
2704
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
2886
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_org_disclosure_trend\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2705
2887
|
end
|
|
2706
2888
|
return data, status_code, headers
|
|
2707
2889
|
end
|
|
2708
2890
|
|
|
2709
|
-
#
|
|
2891
|
+
# Organization disclosures (climate and diversity)
|
|
2710
2892
|
# @param id [String]
|
|
2711
2893
|
# @param [Hash] opts the optional parameters
|
|
2712
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.
|
|
@@ -2715,13 +2897,13 @@ module PharmaObservatory
|
|
|
2715
2897
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2716
2898
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2717
2899
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2718
|
-
# @return [
|
|
2719
|
-
def
|
|
2720
|
-
data, _status_code, _headers =
|
|
2900
|
+
# @return [OrgDisclosuresResponse]
|
|
2901
|
+
def companies_org_disclosures(id, opts = {})
|
|
2902
|
+
data, _status_code, _headers = companies_org_disclosures_with_http_info(id, opts)
|
|
2721
2903
|
data
|
|
2722
2904
|
end
|
|
2723
2905
|
|
|
2724
|
-
#
|
|
2906
|
+
# Organization disclosures (climate and diversity)
|
|
2725
2907
|
# @param id [String]
|
|
2726
2908
|
# @param [Hash] opts the optional parameters
|
|
2727
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.
|
|
@@ -2730,21 +2912,203 @@ module PharmaObservatory
|
|
|
2730
2912
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2731
2913
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2732
2914
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2733
|
-
# @return [Array<(
|
|
2734
|
-
def
|
|
2915
|
+
# @return [Array<(OrgDisclosuresResponse, Integer, Hash)>] OrgDisclosuresResponse data, response status code and response headers
|
|
2916
|
+
def companies_org_disclosures_with_http_info(id, opts = {})
|
|
2735
2917
|
if @api_client.config.debugging
|
|
2736
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
2918
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_org_disclosures ...'
|
|
2737
2919
|
end
|
|
2738
2920
|
# verify the required parameter 'id' is set
|
|
2739
2921
|
if @api_client.config.client_side_validation && id.nil?
|
|
2740
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.
|
|
2922
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_org_disclosures"
|
|
2741
2923
|
end
|
|
2742
2924
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
2743
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
2925
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_org_disclosures, must be smaller than or equal to 500.'
|
|
2744
2926
|
end
|
|
2745
2927
|
|
|
2746
2928
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
2747
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
2929
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_org_disclosures, 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}/org_disclosures'.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] || 'OrgDisclosuresResponse'
|
|
2961
|
+
|
|
2962
|
+
# auth_names
|
|
2963
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
2964
|
+
|
|
2965
|
+
new_options = opts.merge(
|
|
2966
|
+
:operation => :"CompaniesApi.companies_org_disclosures",
|
|
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_org_disclosures\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2978
|
+
end
|
|
2979
|
+
return data, status_code, headers
|
|
2980
|
+
end
|
|
2981
|
+
|
|
2982
|
+
# Organization relationships
|
|
2983
|
+
# @param id [String]
|
|
2984
|
+
# @param [Hash] opts the optional parameters
|
|
2985
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
2986
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
2987
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2988
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2989
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2990
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2991
|
+
# @return [OrgRelationshipsResponse]
|
|
2992
|
+
def companies_org_relationships(id, opts = {})
|
|
2993
|
+
data, _status_code, _headers = companies_org_relationships_with_http_info(id, opts)
|
|
2994
|
+
data
|
|
2995
|
+
end
|
|
2996
|
+
|
|
2997
|
+
# Organization relationships
|
|
2998
|
+
# @param id [String]
|
|
2999
|
+
# @param [Hash] opts the optional parameters
|
|
3000
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
3001
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
3002
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
3003
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3004
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3005
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3006
|
+
# @return [Array<(OrgRelationshipsResponse, Integer, Hash)>] OrgRelationshipsResponse data, response status code and response headers
|
|
3007
|
+
def companies_org_relationships_with_http_info(id, opts = {})
|
|
3008
|
+
if @api_client.config.debugging
|
|
3009
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_org_relationships ...'
|
|
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_org_relationships"
|
|
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_org_relationships, 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_org_relationships, 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}/org_relationships'.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] || 'OrgRelationshipsResponse'
|
|
3052
|
+
|
|
3053
|
+
# auth_names
|
|
3054
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
3055
|
+
|
|
3056
|
+
new_options = opts.merge(
|
|
3057
|
+
:operation => :"CompaniesApi.companies_org_relationships",
|
|
3058
|
+
:header_params => header_params,
|
|
3059
|
+
:query_params => query_params,
|
|
3060
|
+
:form_params => form_params,
|
|
3061
|
+
:body => post_body,
|
|
3062
|
+
:auth_names => auth_names,
|
|
3063
|
+
:return_type => return_type
|
|
3064
|
+
)
|
|
3065
|
+
|
|
3066
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
3067
|
+
if @api_client.config.debugging
|
|
3068
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_org_relationships\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3069
|
+
end
|
|
3070
|
+
return data, status_code, headers
|
|
3071
|
+
end
|
|
3072
|
+
|
|
3073
|
+
# Ownership percentages
|
|
3074
|
+
# @param id [String]
|
|
3075
|
+
# @param [Hash] opts the optional parameters
|
|
3076
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
3077
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
3078
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
3079
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3080
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3081
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3082
|
+
# @return [OwnershipPercentagesResponse]
|
|
3083
|
+
def companies_ownership_percentages(id, opts = {})
|
|
3084
|
+
data, _status_code, _headers = companies_ownership_percentages_with_http_info(id, opts)
|
|
3085
|
+
data
|
|
3086
|
+
end
|
|
3087
|
+
|
|
3088
|
+
# Ownership percentages
|
|
3089
|
+
# @param id [String]
|
|
3090
|
+
# @param [Hash] opts the optional parameters
|
|
3091
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
3092
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
3093
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
3094
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3095
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3096
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3097
|
+
# @return [Array<(OwnershipPercentagesResponse, Integer, Hash)>] OwnershipPercentagesResponse data, response status code and response headers
|
|
3098
|
+
def companies_ownership_percentages_with_http_info(id, opts = {})
|
|
3099
|
+
if @api_client.config.debugging
|
|
3100
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_ownership_percentages ...'
|
|
3101
|
+
end
|
|
3102
|
+
# verify the required parameter 'id' is set
|
|
3103
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
3104
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_ownership_percentages"
|
|
3105
|
+
end
|
|
3106
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
3107
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_ownership_percentages, must be smaller than or equal to 500.'
|
|
3108
|
+
end
|
|
3109
|
+
|
|
3110
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
3111
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_ownership_percentages, must be greater than or equal to 1.'
|
|
2748
3112
|
end
|
|
2749
3113
|
|
|
2750
3114
|
allowable_values = ["company", "group"]
|
|
@@ -2775,13 +3139,468 @@ module PharmaObservatory
|
|
|
2775
3139
|
post_body = opts[:debug_body]
|
|
2776
3140
|
|
|
2777
3141
|
# return_type
|
|
2778
|
-
return_type = opts[:debug_return_type] || 'OwnershipPercentagesResponse'
|
|
3142
|
+
return_type = opts[:debug_return_type] || 'OwnershipPercentagesResponse'
|
|
3143
|
+
|
|
3144
|
+
# auth_names
|
|
3145
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
3146
|
+
|
|
3147
|
+
new_options = opts.merge(
|
|
3148
|
+
:operation => :"CompaniesApi.companies_ownership_percentages",
|
|
3149
|
+
:header_params => header_params,
|
|
3150
|
+
:query_params => query_params,
|
|
3151
|
+
:form_params => form_params,
|
|
3152
|
+
:body => post_body,
|
|
3153
|
+
:auth_names => auth_names,
|
|
3154
|
+
:return_type => return_type
|
|
3155
|
+
)
|
|
3156
|
+
|
|
3157
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
3158
|
+
if @api_client.config.debugging
|
|
3159
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_ownership_percentages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3160
|
+
end
|
|
3161
|
+
return data, status_code, headers
|
|
3162
|
+
end
|
|
3163
|
+
|
|
3164
|
+
# Ownership and control positions
|
|
3165
|
+
# @param id [String]
|
|
3166
|
+
# @param [Hash] opts the optional parameters
|
|
3167
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
3168
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
3169
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
3170
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3171
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3172
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3173
|
+
# @return [OwnershipPositionsResponse]
|
|
3174
|
+
def companies_ownership_positions(id, opts = {})
|
|
3175
|
+
data, _status_code, _headers = companies_ownership_positions_with_http_info(id, opts)
|
|
3176
|
+
data
|
|
3177
|
+
end
|
|
3178
|
+
|
|
3179
|
+
# Ownership and control positions
|
|
3180
|
+
# @param id [String]
|
|
3181
|
+
# @param [Hash] opts the optional parameters
|
|
3182
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
3183
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
3184
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
3185
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3186
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3187
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3188
|
+
# @return [Array<(OwnershipPositionsResponse, Integer, Hash)>] OwnershipPositionsResponse data, response status code and response headers
|
|
3189
|
+
def companies_ownership_positions_with_http_info(id, opts = {})
|
|
3190
|
+
if @api_client.config.debugging
|
|
3191
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_ownership_positions ...'
|
|
3192
|
+
end
|
|
3193
|
+
# verify the required parameter 'id' is set
|
|
3194
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
3195
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_ownership_positions"
|
|
3196
|
+
end
|
|
3197
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
3198
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_ownership_positions, must be smaller than or equal to 500.'
|
|
3199
|
+
end
|
|
3200
|
+
|
|
3201
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
3202
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_ownership_positions, must be greater than or equal to 1.'
|
|
3203
|
+
end
|
|
3204
|
+
|
|
3205
|
+
allowable_values = ["company", "group"]
|
|
3206
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
3207
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
3208
|
+
end
|
|
3209
|
+
# resource path
|
|
3210
|
+
local_var_path = '/api/v1/companies/{id}/ownership_positions'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
3211
|
+
|
|
3212
|
+
# query parameters
|
|
3213
|
+
query_params = opts[:query_params] || {}
|
|
3214
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
3215
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
3216
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
3217
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
3218
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
3219
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
3220
|
+
|
|
3221
|
+
# header parameters
|
|
3222
|
+
header_params = opts[:header_params] || {}
|
|
3223
|
+
# HTTP header 'Accept' (if needed)
|
|
3224
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
3225
|
+
|
|
3226
|
+
# form parameters
|
|
3227
|
+
form_params = opts[:form_params] || {}
|
|
3228
|
+
|
|
3229
|
+
# http body (model)
|
|
3230
|
+
post_body = opts[:debug_body]
|
|
3231
|
+
|
|
3232
|
+
# return_type
|
|
3233
|
+
return_type = opts[:debug_return_type] || 'OwnershipPositionsResponse'
|
|
3234
|
+
|
|
3235
|
+
# auth_names
|
|
3236
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
3237
|
+
|
|
3238
|
+
new_options = opts.merge(
|
|
3239
|
+
:operation => :"CompaniesApi.companies_ownership_positions",
|
|
3240
|
+
:header_params => header_params,
|
|
3241
|
+
:query_params => query_params,
|
|
3242
|
+
:form_params => form_params,
|
|
3243
|
+
:body => post_body,
|
|
3244
|
+
:auth_names => auth_names,
|
|
3245
|
+
:return_type => return_type
|
|
3246
|
+
)
|
|
3247
|
+
|
|
3248
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
3249
|
+
if @api_client.config.debugging
|
|
3250
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_ownership_positions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3251
|
+
end
|
|
3252
|
+
return data, status_code, headers
|
|
3253
|
+
end
|
|
3254
|
+
|
|
3255
|
+
# Ownership source coverage
|
|
3256
|
+
# @param id [String]
|
|
3257
|
+
# @param [Hash] opts the optional parameters
|
|
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.
|
|
3259
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
3260
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
3261
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3262
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3263
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3264
|
+
# @return [OwnershipSourceCoverageResponse]
|
|
3265
|
+
def companies_ownership_source_coverage(id, opts = {})
|
|
3266
|
+
data, _status_code, _headers = companies_ownership_source_coverage_with_http_info(id, opts)
|
|
3267
|
+
data
|
|
3268
|
+
end
|
|
3269
|
+
|
|
3270
|
+
# Ownership source coverage
|
|
3271
|
+
# @param id [String]
|
|
3272
|
+
# @param [Hash] opts the optional parameters
|
|
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.
|
|
3274
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
3275
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
3276
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3277
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3278
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3279
|
+
# @return [Array<(OwnershipSourceCoverageResponse, Integer, Hash)>] OwnershipSourceCoverageResponse data, response status code and response headers
|
|
3280
|
+
def companies_ownership_source_coverage_with_http_info(id, opts = {})
|
|
3281
|
+
if @api_client.config.debugging
|
|
3282
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_ownership_source_coverage ...'
|
|
3283
|
+
end
|
|
3284
|
+
# verify the required parameter 'id' is set
|
|
3285
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
3286
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_ownership_source_coverage"
|
|
3287
|
+
end
|
|
3288
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
3289
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_ownership_source_coverage, must be smaller than or equal to 500.'
|
|
3290
|
+
end
|
|
3291
|
+
|
|
3292
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
3293
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_ownership_source_coverage, must be greater than or equal to 1.'
|
|
3294
|
+
end
|
|
3295
|
+
|
|
3296
|
+
allowable_values = ["company", "group"]
|
|
3297
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
3298
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
3299
|
+
end
|
|
3300
|
+
# resource path
|
|
3301
|
+
local_var_path = '/api/v1/companies/{id}/ownership_source_coverage'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
3302
|
+
|
|
3303
|
+
# query parameters
|
|
3304
|
+
query_params = opts[:query_params] || {}
|
|
3305
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
3306
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
3307
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
3308
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
3309
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
3310
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
3311
|
+
|
|
3312
|
+
# header parameters
|
|
3313
|
+
header_params = opts[:header_params] || {}
|
|
3314
|
+
# HTTP header 'Accept' (if needed)
|
|
3315
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
3316
|
+
|
|
3317
|
+
# form parameters
|
|
3318
|
+
form_params = opts[:form_params] || {}
|
|
3319
|
+
|
|
3320
|
+
# http body (model)
|
|
3321
|
+
post_body = opts[:debug_body]
|
|
3322
|
+
|
|
3323
|
+
# return_type
|
|
3324
|
+
return_type = opts[:debug_return_type] || 'OwnershipSourceCoverageResponse'
|
|
3325
|
+
|
|
3326
|
+
# auth_names
|
|
3327
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
3328
|
+
|
|
3329
|
+
new_options = opts.merge(
|
|
3330
|
+
:operation => :"CompaniesApi.companies_ownership_source_coverage",
|
|
3331
|
+
:header_params => header_params,
|
|
3332
|
+
:query_params => query_params,
|
|
3333
|
+
:form_params => form_params,
|
|
3334
|
+
:body => post_body,
|
|
3335
|
+
:auth_names => auth_names,
|
|
3336
|
+
:return_type => return_type
|
|
3337
|
+
)
|
|
3338
|
+
|
|
3339
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
3340
|
+
if @api_client.config.debugging
|
|
3341
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_ownership_source_coverage\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3342
|
+
end
|
|
3343
|
+
return data, status_code, headers
|
|
3344
|
+
end
|
|
3345
|
+
|
|
3346
|
+
# FDA decision dates (PDUFA) and catalysts
|
|
3347
|
+
# @param id [String]
|
|
3348
|
+
# @param [Hash] opts the optional parameters
|
|
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.
|
|
3350
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
3351
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
3352
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3353
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3354
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3355
|
+
# @return [PdufaDatesResponse]
|
|
3356
|
+
def companies_pdufa_dates(id, opts = {})
|
|
3357
|
+
data, _status_code, _headers = companies_pdufa_dates_with_http_info(id, opts)
|
|
3358
|
+
data
|
|
3359
|
+
end
|
|
3360
|
+
|
|
3361
|
+
# FDA decision dates (PDUFA) and catalysts
|
|
3362
|
+
# @param id [String]
|
|
3363
|
+
# @param [Hash] opts the optional parameters
|
|
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.
|
|
3365
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
3366
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
3367
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3368
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3369
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3370
|
+
# @return [Array<(PdufaDatesResponse, Integer, Hash)>] PdufaDatesResponse data, response status code and response headers
|
|
3371
|
+
def companies_pdufa_dates_with_http_info(id, opts = {})
|
|
3372
|
+
if @api_client.config.debugging
|
|
3373
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_pdufa_dates ...'
|
|
3374
|
+
end
|
|
3375
|
+
# verify the required parameter 'id' is set
|
|
3376
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
3377
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_pdufa_dates"
|
|
3378
|
+
end
|
|
3379
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
3380
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_pdufa_dates, must be smaller than or equal to 500.'
|
|
3381
|
+
end
|
|
3382
|
+
|
|
3383
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
3384
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_pdufa_dates, must be greater than or equal to 1.'
|
|
3385
|
+
end
|
|
3386
|
+
|
|
3387
|
+
allowable_values = ["company", "group"]
|
|
3388
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
3389
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
3390
|
+
end
|
|
3391
|
+
# resource path
|
|
3392
|
+
local_var_path = '/api/v1/companies/{id}/pdufa_dates'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
3393
|
+
|
|
3394
|
+
# query parameters
|
|
3395
|
+
query_params = opts[:query_params] || {}
|
|
3396
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
3397
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
3398
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
3399
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
3400
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
3401
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
3402
|
+
|
|
3403
|
+
# header parameters
|
|
3404
|
+
header_params = opts[:header_params] || {}
|
|
3405
|
+
# HTTP header 'Accept' (if needed)
|
|
3406
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
3407
|
+
|
|
3408
|
+
# form parameters
|
|
3409
|
+
form_params = opts[:form_params] || {}
|
|
3410
|
+
|
|
3411
|
+
# http body (model)
|
|
3412
|
+
post_body = opts[:debug_body]
|
|
3413
|
+
|
|
3414
|
+
# return_type
|
|
3415
|
+
return_type = opts[:debug_return_type] || 'PdufaDatesResponse'
|
|
3416
|
+
|
|
3417
|
+
# auth_names
|
|
3418
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
3419
|
+
|
|
3420
|
+
new_options = opts.merge(
|
|
3421
|
+
:operation => :"CompaniesApi.companies_pdufa_dates",
|
|
3422
|
+
:header_params => header_params,
|
|
3423
|
+
:query_params => query_params,
|
|
3424
|
+
:form_params => form_params,
|
|
3425
|
+
:body => post_body,
|
|
3426
|
+
:auth_names => auth_names,
|
|
3427
|
+
:return_type => return_type
|
|
3428
|
+
)
|
|
3429
|
+
|
|
3430
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
3431
|
+
if @api_client.config.debugging
|
|
3432
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_pdufa_dates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3433
|
+
end
|
|
3434
|
+
return data, status_code, headers
|
|
3435
|
+
end
|
|
3436
|
+
|
|
3437
|
+
# Program licensing candidates
|
|
3438
|
+
# @param id [String]
|
|
3439
|
+
# @param [Hash] opts the optional parameters
|
|
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.
|
|
3441
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
3442
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
3443
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3444
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3445
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3446
|
+
# @return [ProgramLicensingCandidatesResponse]
|
|
3447
|
+
def companies_program_licensing_candidates(id, opts = {})
|
|
3448
|
+
data, _status_code, _headers = companies_program_licensing_candidates_with_http_info(id, opts)
|
|
3449
|
+
data
|
|
3450
|
+
end
|
|
3451
|
+
|
|
3452
|
+
# Program licensing candidates
|
|
3453
|
+
# @param id [String]
|
|
3454
|
+
# @param [Hash] opts the optional parameters
|
|
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.
|
|
3456
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
3457
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
3458
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3459
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3460
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3461
|
+
# @return [Array<(ProgramLicensingCandidatesResponse, Integer, Hash)>] ProgramLicensingCandidatesResponse data, response status code and response headers
|
|
3462
|
+
def companies_program_licensing_candidates_with_http_info(id, opts = {})
|
|
3463
|
+
if @api_client.config.debugging
|
|
3464
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_program_licensing_candidates ...'
|
|
3465
|
+
end
|
|
3466
|
+
# verify the required parameter 'id' is set
|
|
3467
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
3468
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_program_licensing_candidates"
|
|
3469
|
+
end
|
|
3470
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
3471
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_program_licensing_candidates, must be smaller than or equal to 500.'
|
|
3472
|
+
end
|
|
3473
|
+
|
|
3474
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
3475
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_program_licensing_candidates, must be greater than or equal to 1.'
|
|
3476
|
+
end
|
|
3477
|
+
|
|
3478
|
+
allowable_values = ["company", "group"]
|
|
3479
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
3480
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
3481
|
+
end
|
|
3482
|
+
# resource path
|
|
3483
|
+
local_var_path = '/api/v1/companies/{id}/program_licensing_candidates'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
3484
|
+
|
|
3485
|
+
# query parameters
|
|
3486
|
+
query_params = opts[:query_params] || {}
|
|
3487
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
3488
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
3489
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
3490
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
3491
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
3492
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
3493
|
+
|
|
3494
|
+
# header parameters
|
|
3495
|
+
header_params = opts[:header_params] || {}
|
|
3496
|
+
# HTTP header 'Accept' (if needed)
|
|
3497
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
3498
|
+
|
|
3499
|
+
# form parameters
|
|
3500
|
+
form_params = opts[:form_params] || {}
|
|
3501
|
+
|
|
3502
|
+
# http body (model)
|
|
3503
|
+
post_body = opts[:debug_body]
|
|
3504
|
+
|
|
3505
|
+
# return_type
|
|
3506
|
+
return_type = opts[:debug_return_type] || 'ProgramLicensingCandidatesResponse'
|
|
3507
|
+
|
|
3508
|
+
# auth_names
|
|
3509
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
3510
|
+
|
|
3511
|
+
new_options = opts.merge(
|
|
3512
|
+
:operation => :"CompaniesApi.companies_program_licensing_candidates",
|
|
3513
|
+
:header_params => header_params,
|
|
3514
|
+
:query_params => query_params,
|
|
3515
|
+
:form_params => form_params,
|
|
3516
|
+
:body => post_body,
|
|
3517
|
+
:auth_names => auth_names,
|
|
3518
|
+
:return_type => return_type
|
|
3519
|
+
)
|
|
3520
|
+
|
|
3521
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
3522
|
+
if @api_client.config.debugging
|
|
3523
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_program_licensing_candidates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3524
|
+
end
|
|
3525
|
+
return data, status_code, headers
|
|
3526
|
+
end
|
|
3527
|
+
|
|
3528
|
+
# FDA recalls
|
|
3529
|
+
# @param id [String]
|
|
3530
|
+
# @param [Hash] opts the optional parameters
|
|
3531
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
3532
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
3533
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
3534
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3535
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3536
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3537
|
+
# @return [RecallsResponse]
|
|
3538
|
+
def companies_recalls(id, opts = {})
|
|
3539
|
+
data, _status_code, _headers = companies_recalls_with_http_info(id, opts)
|
|
3540
|
+
data
|
|
3541
|
+
end
|
|
3542
|
+
|
|
3543
|
+
# FDA recalls
|
|
3544
|
+
# @param id [String]
|
|
3545
|
+
# @param [Hash] opts the optional parameters
|
|
3546
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
3547
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
3548
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
3549
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3550
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3551
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3552
|
+
# @return [Array<(RecallsResponse, Integer, Hash)>] RecallsResponse data, response status code and response headers
|
|
3553
|
+
def companies_recalls_with_http_info(id, opts = {})
|
|
3554
|
+
if @api_client.config.debugging
|
|
3555
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_recalls ...'
|
|
3556
|
+
end
|
|
3557
|
+
# verify the required parameter 'id' is set
|
|
3558
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
3559
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_recalls"
|
|
3560
|
+
end
|
|
3561
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
3562
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_recalls, must be smaller than or equal to 500.'
|
|
3563
|
+
end
|
|
3564
|
+
|
|
3565
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
3566
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_recalls, must be greater than or equal to 1.'
|
|
3567
|
+
end
|
|
3568
|
+
|
|
3569
|
+
allowable_values = ["company", "group"]
|
|
3570
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
3571
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
3572
|
+
end
|
|
3573
|
+
# resource path
|
|
3574
|
+
local_var_path = '/api/v1/companies/{id}/recalls'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
3575
|
+
|
|
3576
|
+
# query parameters
|
|
3577
|
+
query_params = opts[:query_params] || {}
|
|
3578
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
3579
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
3580
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
3581
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
3582
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
3583
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
3584
|
+
|
|
3585
|
+
# header parameters
|
|
3586
|
+
header_params = opts[:header_params] || {}
|
|
3587
|
+
# HTTP header 'Accept' (if needed)
|
|
3588
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
3589
|
+
|
|
3590
|
+
# form parameters
|
|
3591
|
+
form_params = opts[:form_params] || {}
|
|
3592
|
+
|
|
3593
|
+
# http body (model)
|
|
3594
|
+
post_body = opts[:debug_body]
|
|
3595
|
+
|
|
3596
|
+
# return_type
|
|
3597
|
+
return_type = opts[:debug_return_type] || 'RecallsResponse'
|
|
2779
3598
|
|
|
2780
3599
|
# auth_names
|
|
2781
3600
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
2782
3601
|
|
|
2783
3602
|
new_options = opts.merge(
|
|
2784
|
-
:operation => :"CompaniesApi.
|
|
3603
|
+
:operation => :"CompaniesApi.companies_recalls",
|
|
2785
3604
|
:header_params => header_params,
|
|
2786
3605
|
:query_params => query_params,
|
|
2787
3606
|
:form_params => form_params,
|
|
@@ -2792,12 +3611,12 @@ module PharmaObservatory
|
|
|
2792
3611
|
|
|
2793
3612
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2794
3613
|
if @api_client.config.debugging
|
|
2795
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
3614
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_recalls\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2796
3615
|
end
|
|
2797
3616
|
return data, status_code, headers
|
|
2798
3617
|
end
|
|
2799
3618
|
|
|
2800
|
-
#
|
|
3619
|
+
# SBTi cross-check
|
|
2801
3620
|
# @param id [String]
|
|
2802
3621
|
# @param [Hash] opts the optional parameters
|
|
2803
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.
|
|
@@ -2806,13 +3625,13 @@ module PharmaObservatory
|
|
|
2806
3625
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2807
3626
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2808
3627
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2809
|
-
# @return [
|
|
2810
|
-
def
|
|
2811
|
-
data, _status_code, _headers =
|
|
3628
|
+
# @return [SbtiCrosscheckResponse]
|
|
3629
|
+
def companies_sbti_crosscheck(id, opts = {})
|
|
3630
|
+
data, _status_code, _headers = companies_sbti_crosscheck_with_http_info(id, opts)
|
|
2812
3631
|
data
|
|
2813
3632
|
end
|
|
2814
3633
|
|
|
2815
|
-
#
|
|
3634
|
+
# SBTi cross-check
|
|
2816
3635
|
# @param id [String]
|
|
2817
3636
|
# @param [Hash] opts the optional parameters
|
|
2818
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.
|
|
@@ -2821,21 +3640,21 @@ module PharmaObservatory
|
|
|
2821
3640
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2822
3641
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2823
3642
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2824
|
-
# @return [Array<(
|
|
2825
|
-
def
|
|
3643
|
+
# @return [Array<(SbtiCrosscheckResponse, Integer, Hash)>] SbtiCrosscheckResponse data, response status code and response headers
|
|
3644
|
+
def companies_sbti_crosscheck_with_http_info(id, opts = {})
|
|
2826
3645
|
if @api_client.config.debugging
|
|
2827
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
3646
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_sbti_crosscheck ...'
|
|
2828
3647
|
end
|
|
2829
3648
|
# verify the required parameter 'id' is set
|
|
2830
3649
|
if @api_client.config.client_side_validation && id.nil?
|
|
2831
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.
|
|
3650
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_sbti_crosscheck"
|
|
2832
3651
|
end
|
|
2833
3652
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
2834
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
3653
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sbti_crosscheck, must be smaller than or equal to 500.'
|
|
2835
3654
|
end
|
|
2836
3655
|
|
|
2837
3656
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
2838
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
3657
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sbti_crosscheck, must be greater than or equal to 1.'
|
|
2839
3658
|
end
|
|
2840
3659
|
|
|
2841
3660
|
allowable_values = ["company", "group"]
|
|
@@ -2843,7 +3662,7 @@ module PharmaObservatory
|
|
|
2843
3662
|
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
2844
3663
|
end
|
|
2845
3664
|
# resource path
|
|
2846
|
-
local_var_path = '/api/v1/companies/{id}/
|
|
3665
|
+
local_var_path = '/api/v1/companies/{id}/sbti_crosscheck'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
2847
3666
|
|
|
2848
3667
|
# query parameters
|
|
2849
3668
|
query_params = opts[:query_params] || {}
|
|
@@ -2866,13 +3685,13 @@ module PharmaObservatory
|
|
|
2866
3685
|
post_body = opts[:debug_body]
|
|
2867
3686
|
|
|
2868
3687
|
# return_type
|
|
2869
|
-
return_type = opts[:debug_return_type] || '
|
|
3688
|
+
return_type = opts[:debug_return_type] || 'SbtiCrosscheckResponse'
|
|
2870
3689
|
|
|
2871
3690
|
# auth_names
|
|
2872
3691
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
2873
3692
|
|
|
2874
3693
|
new_options = opts.merge(
|
|
2875
|
-
:operation => :"CompaniesApi.
|
|
3694
|
+
:operation => :"CompaniesApi.companies_sbti_crosscheck",
|
|
2876
3695
|
:header_params => header_params,
|
|
2877
3696
|
:query_params => query_params,
|
|
2878
3697
|
:form_params => form_params,
|
|
@@ -2883,12 +3702,12 @@ module PharmaObservatory
|
|
|
2883
3702
|
|
|
2884
3703
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2885
3704
|
if @api_client.config.debugging
|
|
2886
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
3705
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_sbti_crosscheck\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2887
3706
|
end
|
|
2888
3707
|
return data, status_code, headers
|
|
2889
3708
|
end
|
|
2890
3709
|
|
|
2891
|
-
# FDA
|
|
3710
|
+
# FDA dates disclosed in SEC filings
|
|
2892
3711
|
# @param id [String]
|
|
2893
3712
|
# @param [Hash] opts the optional parameters
|
|
2894
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.
|
|
@@ -2897,13 +3716,13 @@ module PharmaObservatory
|
|
|
2897
3716
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2898
3717
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2899
3718
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2900
|
-
# @return [
|
|
2901
|
-
def
|
|
2902
|
-
data, _status_code, _headers =
|
|
3719
|
+
# @return [SecPdufaDatesResponse]
|
|
3720
|
+
def companies_sec_pdufa_dates(id, opts = {})
|
|
3721
|
+
data, _status_code, _headers = companies_sec_pdufa_dates_with_http_info(id, opts)
|
|
2903
3722
|
data
|
|
2904
3723
|
end
|
|
2905
3724
|
|
|
2906
|
-
# FDA
|
|
3725
|
+
# FDA dates disclosed in SEC filings
|
|
2907
3726
|
# @param id [String]
|
|
2908
3727
|
# @param [Hash] opts the optional parameters
|
|
2909
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.
|
|
@@ -2912,21 +3731,21 @@ module PharmaObservatory
|
|
|
2912
3731
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2913
3732
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2914
3733
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2915
|
-
# @return [Array<(
|
|
2916
|
-
def
|
|
3734
|
+
# @return [Array<(SecPdufaDatesResponse, Integer, Hash)>] SecPdufaDatesResponse data, response status code and response headers
|
|
3735
|
+
def companies_sec_pdufa_dates_with_http_info(id, opts = {})
|
|
2917
3736
|
if @api_client.config.debugging
|
|
2918
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
3737
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_sec_pdufa_dates ...'
|
|
2919
3738
|
end
|
|
2920
3739
|
# verify the required parameter 'id' is set
|
|
2921
3740
|
if @api_client.config.client_side_validation && id.nil?
|
|
2922
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.
|
|
3741
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_sec_pdufa_dates"
|
|
2923
3742
|
end
|
|
2924
3743
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
2925
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
3744
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sec_pdufa_dates, must be smaller than or equal to 500.'
|
|
2926
3745
|
end
|
|
2927
3746
|
|
|
2928
3747
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
2929
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
3748
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sec_pdufa_dates, must be greater than or equal to 1.'
|
|
2930
3749
|
end
|
|
2931
3750
|
|
|
2932
3751
|
allowable_values = ["company", "group"]
|
|
@@ -2934,7 +3753,7 @@ module PharmaObservatory
|
|
|
2934
3753
|
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
2935
3754
|
end
|
|
2936
3755
|
# resource path
|
|
2937
|
-
local_var_path = '/api/v1/companies/{id}/
|
|
3756
|
+
local_var_path = '/api/v1/companies/{id}/sec_pdufa_dates'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
2938
3757
|
|
|
2939
3758
|
# query parameters
|
|
2940
3759
|
query_params = opts[:query_params] || {}
|
|
@@ -2957,13 +3776,13 @@ module PharmaObservatory
|
|
|
2957
3776
|
post_body = opts[:debug_body]
|
|
2958
3777
|
|
|
2959
3778
|
# return_type
|
|
2960
|
-
return_type = opts[:debug_return_type] || '
|
|
3779
|
+
return_type = opts[:debug_return_type] || 'SecPdufaDatesResponse'
|
|
2961
3780
|
|
|
2962
3781
|
# auth_names
|
|
2963
3782
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
2964
3783
|
|
|
2965
3784
|
new_options = opts.merge(
|
|
2966
|
-
:operation => :"CompaniesApi.
|
|
3785
|
+
:operation => :"CompaniesApi.companies_sec_pdufa_dates",
|
|
2967
3786
|
:header_params => header_params,
|
|
2968
3787
|
:query_params => query_params,
|
|
2969
3788
|
:form_params => form_params,
|
|
@@ -2974,12 +3793,12 @@ module PharmaObservatory
|
|
|
2974
3793
|
|
|
2975
3794
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2976
3795
|
if @api_client.config.debugging
|
|
2977
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
3796
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_sec_pdufa_dates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2978
3797
|
end
|
|
2979
3798
|
return data, status_code, headers
|
|
2980
3799
|
end
|
|
2981
3800
|
|
|
2982
|
-
#
|
|
3801
|
+
# Sponsor delivery reliability
|
|
2983
3802
|
# @param id [String]
|
|
2984
3803
|
# @param [Hash] opts the optional parameters
|
|
2985
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.
|
|
@@ -2988,13 +3807,13 @@ module PharmaObservatory
|
|
|
2988
3807
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2989
3808
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2990
3809
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
2991
|
-
# @return [
|
|
2992
|
-
def
|
|
2993
|
-
data, _status_code, _headers =
|
|
3810
|
+
# @return [SponsorDeliveryResponse]
|
|
3811
|
+
def companies_sponsor_delivery(id, opts = {})
|
|
3812
|
+
data, _status_code, _headers = companies_sponsor_delivery_with_http_info(id, opts)
|
|
2994
3813
|
data
|
|
2995
3814
|
end
|
|
2996
3815
|
|
|
2997
|
-
#
|
|
3816
|
+
# Sponsor delivery reliability
|
|
2998
3817
|
# @param id [String]
|
|
2999
3818
|
# @param [Hash] opts the optional parameters
|
|
3000
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.
|
|
@@ -3003,21 +3822,21 @@ module PharmaObservatory
|
|
|
3003
3822
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3004
3823
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3005
3824
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3006
|
-
# @return [Array<(
|
|
3007
|
-
def
|
|
3825
|
+
# @return [Array<(SponsorDeliveryResponse, Integer, Hash)>] SponsorDeliveryResponse data, response status code and response headers
|
|
3826
|
+
def companies_sponsor_delivery_with_http_info(id, opts = {})
|
|
3008
3827
|
if @api_client.config.debugging
|
|
3009
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
3828
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_sponsor_delivery ...'
|
|
3010
3829
|
end
|
|
3011
3830
|
# verify the required parameter 'id' is set
|
|
3012
3831
|
if @api_client.config.client_side_validation && id.nil?
|
|
3013
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.
|
|
3832
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_sponsor_delivery"
|
|
3014
3833
|
end
|
|
3015
3834
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
3016
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
3835
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_delivery, must be smaller than or equal to 500.'
|
|
3017
3836
|
end
|
|
3018
3837
|
|
|
3019
3838
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
3020
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
3839
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_delivery, must be greater than or equal to 1.'
|
|
3021
3840
|
end
|
|
3022
3841
|
|
|
3023
3842
|
allowable_values = ["company", "group"]
|
|
@@ -3025,7 +3844,7 @@ module PharmaObservatory
|
|
|
3025
3844
|
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
3026
3845
|
end
|
|
3027
3846
|
# resource path
|
|
3028
|
-
local_var_path = '/api/v1/companies/{id}/
|
|
3847
|
+
local_var_path = '/api/v1/companies/{id}/sponsor_delivery'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
3029
3848
|
|
|
3030
3849
|
# query parameters
|
|
3031
3850
|
query_params = opts[:query_params] || {}
|
|
@@ -3048,13 +3867,13 @@ module PharmaObservatory
|
|
|
3048
3867
|
post_body = opts[:debug_body]
|
|
3049
3868
|
|
|
3050
3869
|
# return_type
|
|
3051
|
-
return_type = opts[:debug_return_type] || '
|
|
3870
|
+
return_type = opts[:debug_return_type] || 'SponsorDeliveryResponse'
|
|
3052
3871
|
|
|
3053
3872
|
# auth_names
|
|
3054
3873
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
3055
3874
|
|
|
3056
3875
|
new_options = opts.merge(
|
|
3057
|
-
:operation => :"CompaniesApi.
|
|
3876
|
+
:operation => :"CompaniesApi.companies_sponsor_delivery",
|
|
3058
3877
|
:header_params => header_params,
|
|
3059
3878
|
:query_params => query_params,
|
|
3060
3879
|
:form_params => form_params,
|
|
@@ -3065,12 +3884,12 @@ module PharmaObservatory
|
|
|
3065
3884
|
|
|
3066
3885
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
3067
3886
|
if @api_client.config.debugging
|
|
3068
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
3887
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_sponsor_delivery\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3069
3888
|
end
|
|
3070
3889
|
return data, status_code, headers
|
|
3071
3890
|
end
|
|
3072
3891
|
|
|
3073
|
-
#
|
|
3892
|
+
# Sponsor patent mentions
|
|
3074
3893
|
# @param id [String]
|
|
3075
3894
|
# @param [Hash] opts the optional parameters
|
|
3076
3895
|
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
@@ -3079,13 +3898,13 @@ module PharmaObservatory
|
|
|
3079
3898
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3080
3899
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3081
3900
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3082
|
-
# @return [
|
|
3083
|
-
def
|
|
3084
|
-
data, _status_code, _headers =
|
|
3901
|
+
# @return [SponsorPatentMentionsResponse]
|
|
3902
|
+
def companies_sponsor_patent_mentions(id, opts = {})
|
|
3903
|
+
data, _status_code, _headers = companies_sponsor_patent_mentions_with_http_info(id, opts)
|
|
3085
3904
|
data
|
|
3086
3905
|
end
|
|
3087
3906
|
|
|
3088
|
-
#
|
|
3907
|
+
# Sponsor patent mentions
|
|
3089
3908
|
# @param id [String]
|
|
3090
3909
|
# @param [Hash] opts the optional parameters
|
|
3091
3910
|
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
@@ -3094,21 +3913,21 @@ module PharmaObservatory
|
|
|
3094
3913
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3095
3914
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3096
3915
|
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3097
|
-
# @return [Array<(
|
|
3098
|
-
def
|
|
3916
|
+
# @return [Array<(SponsorPatentMentionsResponse, Integer, Hash)>] SponsorPatentMentionsResponse data, response status code and response headers
|
|
3917
|
+
def companies_sponsor_patent_mentions_with_http_info(id, opts = {})
|
|
3099
3918
|
if @api_client.config.debugging
|
|
3100
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
3919
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_sponsor_patent_mentions ...'
|
|
3101
3920
|
end
|
|
3102
3921
|
# verify the required parameter 'id' is set
|
|
3103
3922
|
if @api_client.config.client_side_validation && id.nil?
|
|
3104
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.
|
|
3923
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_sponsor_patent_mentions"
|
|
3105
3924
|
end
|
|
3106
3925
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
3107
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
3926
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_patent_mentions, must be smaller than or equal to 500.'
|
|
3108
3927
|
end
|
|
3109
3928
|
|
|
3110
3929
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
3111
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.
|
|
3930
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_patent_mentions, must be greater than or equal to 1.'
|
|
3112
3931
|
end
|
|
3113
3932
|
|
|
3114
3933
|
allowable_values = ["company", "group"]
|
|
@@ -3116,7 +3935,7 @@ module PharmaObservatory
|
|
|
3116
3935
|
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
3117
3936
|
end
|
|
3118
3937
|
# resource path
|
|
3119
|
-
local_var_path = '/api/v1/companies/{id}/
|
|
3938
|
+
local_var_path = '/api/v1/companies/{id}/sponsor_patent_mentions'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
3120
3939
|
|
|
3121
3940
|
# query parameters
|
|
3122
3941
|
query_params = opts[:query_params] || {}
|
|
@@ -3139,13 +3958,13 @@ module PharmaObservatory
|
|
|
3139
3958
|
post_body = opts[:debug_body]
|
|
3140
3959
|
|
|
3141
3960
|
# return_type
|
|
3142
|
-
return_type = opts[:debug_return_type] || '
|
|
3961
|
+
return_type = opts[:debug_return_type] || 'SponsorPatentMentionsResponse'
|
|
3143
3962
|
|
|
3144
3963
|
# auth_names
|
|
3145
3964
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
3146
3965
|
|
|
3147
3966
|
new_options = opts.merge(
|
|
3148
|
-
:operation => :"CompaniesApi.
|
|
3967
|
+
:operation => :"CompaniesApi.companies_sponsor_patent_mentions",
|
|
3149
3968
|
:header_params => header_params,
|
|
3150
3969
|
:query_params => query_params,
|
|
3151
3970
|
:form_params => form_params,
|
|
@@ -3156,7 +3975,7 @@ module PharmaObservatory
|
|
|
3156
3975
|
|
|
3157
3976
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
3158
3977
|
if @api_client.config.debugging
|
|
3159
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
3978
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_sponsor_patent_mentions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3160
3979
|
end
|
|
3161
3980
|
return data, status_code, headers
|
|
3162
3981
|
end
|
|
@@ -3343,6 +4162,188 @@ module PharmaObservatory
|
|
|
3343
4162
|
return data, status_code, headers
|
|
3344
4163
|
end
|
|
3345
4164
|
|
|
4165
|
+
# Sponsor trial conditions
|
|
4166
|
+
# @param id [String]
|
|
4167
|
+
# @param [Hash] opts the optional parameters
|
|
4168
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
4169
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
4170
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
4171
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
4172
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
4173
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
4174
|
+
# @return [SponsorTrialConditionsResponse]
|
|
4175
|
+
def companies_sponsor_trial_conditions(id, opts = {})
|
|
4176
|
+
data, _status_code, _headers = companies_sponsor_trial_conditions_with_http_info(id, opts)
|
|
4177
|
+
data
|
|
4178
|
+
end
|
|
4179
|
+
|
|
4180
|
+
# Sponsor trial conditions
|
|
4181
|
+
# @param id [String]
|
|
4182
|
+
# @param [Hash] opts the optional parameters
|
|
4183
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
4184
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
4185
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
4186
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
4187
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
4188
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
4189
|
+
# @return [Array<(SponsorTrialConditionsResponse, Integer, Hash)>] SponsorTrialConditionsResponse data, response status code and response headers
|
|
4190
|
+
def companies_sponsor_trial_conditions_with_http_info(id, opts = {})
|
|
4191
|
+
if @api_client.config.debugging
|
|
4192
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_sponsor_trial_conditions ...'
|
|
4193
|
+
end
|
|
4194
|
+
# verify the required parameter 'id' is set
|
|
4195
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
4196
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_sponsor_trial_conditions"
|
|
4197
|
+
end
|
|
4198
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
4199
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_trial_conditions, must be smaller than or equal to 500.'
|
|
4200
|
+
end
|
|
4201
|
+
|
|
4202
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
4203
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_trial_conditions, must be greater than or equal to 1.'
|
|
4204
|
+
end
|
|
4205
|
+
|
|
4206
|
+
allowable_values = ["company", "group"]
|
|
4207
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
4208
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
4209
|
+
end
|
|
4210
|
+
# resource path
|
|
4211
|
+
local_var_path = '/api/v1/companies/{id}/sponsor_trial_conditions'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
4212
|
+
|
|
4213
|
+
# query parameters
|
|
4214
|
+
query_params = opts[:query_params] || {}
|
|
4215
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
4216
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
4217
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
4218
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
4219
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
4220
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
4221
|
+
|
|
4222
|
+
# header parameters
|
|
4223
|
+
header_params = opts[:header_params] || {}
|
|
4224
|
+
# HTTP header 'Accept' (if needed)
|
|
4225
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
4226
|
+
|
|
4227
|
+
# form parameters
|
|
4228
|
+
form_params = opts[:form_params] || {}
|
|
4229
|
+
|
|
4230
|
+
# http body (model)
|
|
4231
|
+
post_body = opts[:debug_body]
|
|
4232
|
+
|
|
4233
|
+
# return_type
|
|
4234
|
+
return_type = opts[:debug_return_type] || 'SponsorTrialConditionsResponse'
|
|
4235
|
+
|
|
4236
|
+
# auth_names
|
|
4237
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
4238
|
+
|
|
4239
|
+
new_options = opts.merge(
|
|
4240
|
+
:operation => :"CompaniesApi.companies_sponsor_trial_conditions",
|
|
4241
|
+
:header_params => header_params,
|
|
4242
|
+
:query_params => query_params,
|
|
4243
|
+
:form_params => form_params,
|
|
4244
|
+
:body => post_body,
|
|
4245
|
+
:auth_names => auth_names,
|
|
4246
|
+
:return_type => return_type
|
|
4247
|
+
)
|
|
4248
|
+
|
|
4249
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
4250
|
+
if @api_client.config.debugging
|
|
4251
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_sponsor_trial_conditions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4252
|
+
end
|
|
4253
|
+
return data, status_code, headers
|
|
4254
|
+
end
|
|
4255
|
+
|
|
4256
|
+
# Sponsor trial drugs
|
|
4257
|
+
# @param id [String]
|
|
4258
|
+
# @param [Hash] opts the optional parameters
|
|
4259
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
4260
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
4261
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
4262
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
4263
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
4264
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
4265
|
+
# @return [SponsorTrialDrugsResponse]
|
|
4266
|
+
def companies_sponsor_trial_drugs(id, opts = {})
|
|
4267
|
+
data, _status_code, _headers = companies_sponsor_trial_drugs_with_http_info(id, opts)
|
|
4268
|
+
data
|
|
4269
|
+
end
|
|
4270
|
+
|
|
4271
|
+
# Sponsor trial drugs
|
|
4272
|
+
# @param id [String]
|
|
4273
|
+
# @param [Hash] opts the optional parameters
|
|
4274
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
4275
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
4276
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
4277
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
4278
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
4279
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
4280
|
+
# @return [Array<(SponsorTrialDrugsResponse, Integer, Hash)>] SponsorTrialDrugsResponse data, response status code and response headers
|
|
4281
|
+
def companies_sponsor_trial_drugs_with_http_info(id, opts = {})
|
|
4282
|
+
if @api_client.config.debugging
|
|
4283
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_sponsor_trial_drugs ...'
|
|
4284
|
+
end
|
|
4285
|
+
# verify the required parameter 'id' is set
|
|
4286
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
4287
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_sponsor_trial_drugs"
|
|
4288
|
+
end
|
|
4289
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
4290
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_trial_drugs, must be smaller than or equal to 500.'
|
|
4291
|
+
end
|
|
4292
|
+
|
|
4293
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
4294
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_sponsor_trial_drugs, must be greater than or equal to 1.'
|
|
4295
|
+
end
|
|
4296
|
+
|
|
4297
|
+
allowable_values = ["company", "group"]
|
|
4298
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
4299
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
4300
|
+
end
|
|
4301
|
+
# resource path
|
|
4302
|
+
local_var_path = '/api/v1/companies/{id}/sponsor_trial_drugs'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
4303
|
+
|
|
4304
|
+
# query parameters
|
|
4305
|
+
query_params = opts[:query_params] || {}
|
|
4306
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
4307
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
4308
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
4309
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
4310
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
4311
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
4312
|
+
|
|
4313
|
+
# header parameters
|
|
4314
|
+
header_params = opts[:header_params] || {}
|
|
4315
|
+
# HTTP header 'Accept' (if needed)
|
|
4316
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
4317
|
+
|
|
4318
|
+
# form parameters
|
|
4319
|
+
form_params = opts[:form_params] || {}
|
|
4320
|
+
|
|
4321
|
+
# http body (model)
|
|
4322
|
+
post_body = opts[:debug_body]
|
|
4323
|
+
|
|
4324
|
+
# return_type
|
|
4325
|
+
return_type = opts[:debug_return_type] || 'SponsorTrialDrugsResponse'
|
|
4326
|
+
|
|
4327
|
+
# auth_names
|
|
4328
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
4329
|
+
|
|
4330
|
+
new_options = opts.merge(
|
|
4331
|
+
:operation => :"CompaniesApi.companies_sponsor_trial_drugs",
|
|
4332
|
+
:header_params => header_params,
|
|
4333
|
+
:query_params => query_params,
|
|
4334
|
+
:form_params => form_params,
|
|
4335
|
+
:body => post_body,
|
|
4336
|
+
:auth_names => auth_names,
|
|
4337
|
+
:return_type => return_type
|
|
4338
|
+
)
|
|
4339
|
+
|
|
4340
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
4341
|
+
if @api_client.config.debugging
|
|
4342
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_sponsor_trial_drugs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4343
|
+
end
|
|
4344
|
+
return data, status_code, headers
|
|
4345
|
+
end
|
|
4346
|
+
|
|
3346
4347
|
# Trial-start forecast by sponsor
|
|
3347
4348
|
# @param id [String]
|
|
3348
4349
|
# @param [Hash] opts the optional parameters
|