pharmaobservatory 0.1.11 → 0.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +17 -6
  3. data/docs/CompaniesApi.md +332 -4
  4. data/docs/CompaniesRecordAttributes.md +2 -0
  5. data/docs/CompaniesRow.md +1 -1
  6. data/docs/CompanyAssetsRow.md +5 -1
  7. data/docs/CompanyCompetitorsRow.md +8 -2
  8. data/docs/CompanyCosponsorsResponse.md +58 -0
  9. data/docs/CompanyCosponsorsRow.md +58 -0
  10. data/docs/CompanyPeerProfileResponse.md +58 -0
  11. data/docs/CompanyPeerProfileRow.md +60 -0
  12. data/docs/CompanyPeersResponse.md +58 -0
  13. data/docs/CompanyPeersRow.md +54 -0
  14. data/docs/CompanyProgramsRow.md +4 -0
  15. data/docs/InvestorPortfolioRow.md +41 -11
  16. data/docs/InvestorsApi.md +4 -4
  17. data/docs/InvestorsRow.md +3 -1
  18. data/docs/LegalEntitiesApi.md +80 -0
  19. data/docs/ProgramLicensingCandidatesRow.md +4 -0
  20. data/lib/pharmaobservatory/api/companies_api.rb +366 -2
  21. data/lib/pharmaobservatory/api/investors_api.rb +2 -2
  22. data/lib/pharmaobservatory/api/legal_entities_api.rb +84 -0
  23. data/lib/pharmaobservatory/models/companies_record_attributes.rb +10 -1
  24. data/lib/pharmaobservatory/models/companies_row.rb +1 -1
  25. data/lib/pharmaobservatory/models/company_assets_row.rb +27 -5
  26. data/lib/pharmaobservatory/models/company_competitors_row.rb +40 -7
  27. data/lib/pharmaobservatory/models/company_cosponsors_response.rb +478 -0
  28. data/lib/pharmaobservatory/models/company_cosponsors_row.rb +445 -0
  29. data/lib/pharmaobservatory/models/company_peer_profile_response.rb +478 -0
  30. data/lib/pharmaobservatory/models/company_peer_profile_row.rb +454 -0
  31. data/lib/pharmaobservatory/models/company_peers_response.rb +478 -0
  32. data/lib/pharmaobservatory/models/company_peers_row.rb +421 -0
  33. data/lib/pharmaobservatory/models/company_programs_row.rb +23 -1
  34. data/lib/pharmaobservatory/models/investor_portfolio_row.rb +180 -13
  35. data/lib/pharmaobservatory/models/investors_row.rb +13 -2
  36. data/lib/pharmaobservatory/models/program_licensing_candidates_row.rb +23 -1
  37. data/lib/pharmaobservatory/version.rb +1 -1
  38. data/lib/pharmaobservatory.rb +6 -0
  39. metadata +14 -2
@@ -1020,7 +1020,7 @@ module PharmaObservatory
1020
1020
  return data, status_code, headers
1021
1021
  end
1022
1022
 
1023
- # Company competitors
1023
+ # Company program overlap
1024
1024
  # @param id [String]
1025
1025
  # @param [Hash] opts the optional parameters
1026
1026
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
@@ -1035,7 +1035,7 @@ module PharmaObservatory
1035
1035
  data
1036
1036
  end
1037
1037
 
1038
- # Company competitors
1038
+ # Company program overlap
1039
1039
  # @param id [String]
1040
1040
  # @param [Hash] opts the optional parameters
1041
1041
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
@@ -1111,6 +1111,97 @@ module PharmaObservatory
1111
1111
  return data, status_code, headers
1112
1112
  end
1113
1113
 
1114
+ # Company co-sponsors
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 [CompanyCosponsorsResponse]
1124
+ def companies_company_cosponsors(id, opts = {})
1125
+ data, _status_code, _headers = companies_company_cosponsors_with_http_info(id, opts)
1126
+ data
1127
+ end
1128
+
1129
+ # Company co-sponsors
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<(CompanyCosponsorsResponse, Integer, Hash)>] CompanyCosponsorsResponse data, response status code and response headers
1139
+ def companies_company_cosponsors_with_http_info(id, opts = {})
1140
+ if @api_client.config.debugging
1141
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_cosponsors ...'
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_cosponsors"
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_cosponsors, 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_cosponsors, 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_cosponsors'.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] || 'CompanyCosponsorsResponse'
1184
+
1185
+ # auth_names
1186
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1187
+
1188
+ new_options = opts.merge(
1189
+ :operation => :"CompaniesApi.companies_company_cosponsors",
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_cosponsors\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1201
+ end
1202
+ return data, status_code, headers
1203
+ end
1204
+
1114
1205
  # Company SEC financials
1115
1206
  # @param id [String]
1116
1207
  # @param [Hash] opts the optional parameters
@@ -1566,6 +1657,188 @@ module PharmaObservatory
1566
1657
  return data, status_code, headers
1567
1658
  end
1568
1659
 
1660
+ # Company peer profile
1661
+ # @param id [String]
1662
+ # @param [Hash] opts the optional parameters
1663
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1664
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1665
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1666
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1667
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1668
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
1669
+ # @return [CompanyPeerProfileResponse]
1670
+ def companies_company_peer_profile(id, opts = {})
1671
+ data, _status_code, _headers = companies_company_peer_profile_with_http_info(id, opts)
1672
+ data
1673
+ end
1674
+
1675
+ # Company peer profile
1676
+ # @param id [String]
1677
+ # @param [Hash] opts the optional parameters
1678
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1679
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1680
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1681
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1682
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1683
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
1684
+ # @return [Array<(CompanyPeerProfileResponse, Integer, Hash)>] CompanyPeerProfileResponse data, response status code and response headers
1685
+ def companies_company_peer_profile_with_http_info(id, opts = {})
1686
+ if @api_client.config.debugging
1687
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_peer_profile ...'
1688
+ end
1689
+ # verify the required parameter 'id' is set
1690
+ if @api_client.config.client_side_validation && id.nil?
1691
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_peer_profile"
1692
+ end
1693
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1694
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_peer_profile, must be smaller than or equal to 500.'
1695
+ end
1696
+
1697
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1698
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_peer_profile, must be greater than or equal to 1.'
1699
+ end
1700
+
1701
+ allowable_values = ["company", "group"]
1702
+ if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
1703
+ fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
1704
+ end
1705
+ # resource path
1706
+ local_var_path = '/api/v1/companies/{id}/company_peer_profile'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1707
+
1708
+ # query parameters
1709
+ query_params = opts[:query_params] || {}
1710
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1711
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1712
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1713
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
1714
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
1715
+ query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
1716
+
1717
+ # header parameters
1718
+ header_params = opts[:header_params] || {}
1719
+ # HTTP header 'Accept' (if needed)
1720
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1721
+
1722
+ # form parameters
1723
+ form_params = opts[:form_params] || {}
1724
+
1725
+ # http body (model)
1726
+ post_body = opts[:debug_body]
1727
+
1728
+ # return_type
1729
+ return_type = opts[:debug_return_type] || 'CompanyPeerProfileResponse'
1730
+
1731
+ # auth_names
1732
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1733
+
1734
+ new_options = opts.merge(
1735
+ :operation => :"CompaniesApi.companies_company_peer_profile",
1736
+ :header_params => header_params,
1737
+ :query_params => query_params,
1738
+ :form_params => form_params,
1739
+ :body => post_body,
1740
+ :auth_names => auth_names,
1741
+ :return_type => return_type
1742
+ )
1743
+
1744
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1745
+ if @api_client.config.debugging
1746
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_company_peer_profile\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1747
+ end
1748
+ return data, status_code, headers
1749
+ end
1750
+
1751
+ # Company peers
1752
+ # @param id [String]
1753
+ # @param [Hash] opts the optional parameters
1754
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1755
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1756
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1757
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1758
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1759
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
1760
+ # @return [CompanyPeersResponse]
1761
+ def companies_company_peers(id, opts = {})
1762
+ data, _status_code, _headers = companies_company_peers_with_http_info(id, opts)
1763
+ data
1764
+ end
1765
+
1766
+ # Company peers
1767
+ # @param id [String]
1768
+ # @param [Hash] opts the optional parameters
1769
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1770
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1771
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1772
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1773
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1774
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
1775
+ # @return [Array<(CompanyPeersResponse, Integer, Hash)>] CompanyPeersResponse data, response status code and response headers
1776
+ def companies_company_peers_with_http_info(id, opts = {})
1777
+ if @api_client.config.debugging
1778
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_peers ...'
1779
+ end
1780
+ # verify the required parameter 'id' is set
1781
+ if @api_client.config.client_side_validation && id.nil?
1782
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_peers"
1783
+ end
1784
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1785
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_peers, must be smaller than or equal to 500.'
1786
+ end
1787
+
1788
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1789
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_peers, must be greater than or equal to 1.'
1790
+ end
1791
+
1792
+ allowable_values = ["company", "group"]
1793
+ if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
1794
+ fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
1795
+ end
1796
+ # resource path
1797
+ local_var_path = '/api/v1/companies/{id}/company_peers'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1798
+
1799
+ # query parameters
1800
+ query_params = opts[:query_params] || {}
1801
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1802
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1803
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1804
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
1805
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
1806
+ query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
1807
+
1808
+ # header parameters
1809
+ header_params = opts[:header_params] || {}
1810
+ # HTTP header 'Accept' (if needed)
1811
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1812
+
1813
+ # form parameters
1814
+ form_params = opts[:form_params] || {}
1815
+
1816
+ # http body (model)
1817
+ post_body = opts[:debug_body]
1818
+
1819
+ # return_type
1820
+ return_type = opts[:debug_return_type] || 'CompanyPeersResponse'
1821
+
1822
+ # auth_names
1823
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1824
+
1825
+ new_options = opts.merge(
1826
+ :operation => :"CompaniesApi.companies_company_peers",
1827
+ :header_params => header_params,
1828
+ :query_params => query_params,
1829
+ :form_params => form_params,
1830
+ :body => post_body,
1831
+ :auth_names => auth_names,
1832
+ :return_type => return_type
1833
+ )
1834
+
1835
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1836
+ if @api_client.config.debugging
1837
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_company_peers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1838
+ end
1839
+ return data, status_code, headers
1840
+ end
1841
+
1569
1842
  # Company programs
1570
1843
  # @param id [String]
1571
1844
  # @param [Hash] opts the optional parameters
@@ -3265,6 +3538,97 @@ module PharmaObservatory
3265
3538
  return data, status_code, headers
3266
3539
  end
3267
3540
 
3541
+ # Investor portfolio (offering filings and investor websites)
3542
+ # @param id [String]
3543
+ # @param [Hash] opts the optional parameters
3544
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
3545
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
3546
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
3547
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
3548
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
3549
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
3550
+ # @return [InvestorPortfolioResponse]
3551
+ def companies_investor_portfolio(id, opts = {})
3552
+ data, _status_code, _headers = companies_investor_portfolio_with_http_info(id, opts)
3553
+ data
3554
+ end
3555
+
3556
+ # Investor portfolio (offering filings and investor websites)
3557
+ # @param id [String]
3558
+ # @param [Hash] opts the optional parameters
3559
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
3560
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
3561
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
3562
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
3563
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
3564
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
3565
+ # @return [Array<(InvestorPortfolioResponse, Integer, Hash)>] InvestorPortfolioResponse data, response status code and response headers
3566
+ def companies_investor_portfolio_with_http_info(id, opts = {})
3567
+ if @api_client.config.debugging
3568
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_investor_portfolio ...'
3569
+ end
3570
+ # verify the required parameter 'id' is set
3571
+ if @api_client.config.client_side_validation && id.nil?
3572
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_investor_portfolio"
3573
+ end
3574
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
3575
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_investor_portfolio, must be smaller than or equal to 500.'
3576
+ end
3577
+
3578
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
3579
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_investor_portfolio, must be greater than or equal to 1.'
3580
+ end
3581
+
3582
+ allowable_values = ["company", "group"]
3583
+ if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
3584
+ fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
3585
+ end
3586
+ # resource path
3587
+ local_var_path = '/api/v1/companies/{id}/investor_portfolio'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
3588
+
3589
+ # query parameters
3590
+ query_params = opts[:query_params] || {}
3591
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
3592
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
3593
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
3594
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
3595
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
3596
+ query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
3597
+
3598
+ # header parameters
3599
+ header_params = opts[:header_params] || {}
3600
+ # HTTP header 'Accept' (if needed)
3601
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3602
+
3603
+ # form parameters
3604
+ form_params = opts[:form_params] || {}
3605
+
3606
+ # http body (model)
3607
+ post_body = opts[:debug_body]
3608
+
3609
+ # return_type
3610
+ return_type = opts[:debug_return_type] || 'InvestorPortfolioResponse'
3611
+
3612
+ # auth_names
3613
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
3614
+
3615
+ new_options = opts.merge(
3616
+ :operation => :"CompaniesApi.companies_investor_portfolio",
3617
+ :header_params => header_params,
3618
+ :query_params => query_params,
3619
+ :form_params => form_params,
3620
+ :body => post_body,
3621
+ :auth_names => auth_names,
3622
+ :return_type => return_type
3623
+ )
3624
+
3625
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
3626
+ if @api_client.config.debugging
3627
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_investor_portfolio\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3628
+ end
3629
+ return data, status_code, headers
3630
+ end
3631
+
3268
3632
  # Legal entities
3269
3633
  # @param id [String]
3270
3634
  # @param [Hash] opts the optional parameters
@@ -248,7 +248,7 @@ module PharmaObservatory
248
248
  return data, status_code, headers
249
249
  end
250
250
 
251
- # Investor portfolio (offering filings)
251
+ # Investor portfolio (offering filings and investor websites)
252
252
  # @param id [String]
253
253
  # @param [Hash] opts the optional parameters
254
254
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
@@ -262,7 +262,7 @@ module PharmaObservatory
262
262
  data
263
263
  end
264
264
 
265
- # Investor portfolio (offering filings)
265
+ # Investor portfolio (offering filings and investor websites)
266
266
  # @param id [String]
267
267
  # @param [Hash] opts the optional parameters
268
268
  # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
@@ -1508,6 +1508,90 @@ module PharmaObservatory
1508
1508
  return data, status_code, headers
1509
1509
  end
1510
1510
 
1511
+ # Investor portfolio (offering filings and investor websites)
1512
+ # @param id [String]
1513
+ # @param [Hash] opts the optional parameters
1514
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1515
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1516
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1517
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1518
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1519
+ # @return [InvestorPortfolioResponse]
1520
+ def legal_entities_investor_portfolio(id, opts = {})
1521
+ data, _status_code, _headers = legal_entities_investor_portfolio_with_http_info(id, opts)
1522
+ data
1523
+ end
1524
+
1525
+ # Investor portfolio (offering filings and investor websites)
1526
+ # @param id [String]
1527
+ # @param [Hash] opts the optional parameters
1528
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1529
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1530
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1531
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1532
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1533
+ # @return [Array<(InvestorPortfolioResponse, Integer, Hash)>] InvestorPortfolioResponse data, response status code and response headers
1534
+ def legal_entities_investor_portfolio_with_http_info(id, opts = {})
1535
+ if @api_client.config.debugging
1536
+ @api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_investor_portfolio ...'
1537
+ end
1538
+ # verify the required parameter 'id' is set
1539
+ if @api_client.config.client_side_validation && id.nil?
1540
+ fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_investor_portfolio"
1541
+ end
1542
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1543
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_investor_portfolio, must be smaller than or equal to 500.'
1544
+ end
1545
+
1546
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1547
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_investor_portfolio, must be greater than or equal to 1.'
1548
+ end
1549
+
1550
+ # resource path
1551
+ local_var_path = '/api/v1/legal_entities/{id}/investor_portfolio'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1552
+
1553
+ # query parameters
1554
+ query_params = opts[:query_params] || {}
1555
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1556
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1557
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1558
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
1559
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
1560
+
1561
+ # header parameters
1562
+ header_params = opts[:header_params] || {}
1563
+ # HTTP header 'Accept' (if needed)
1564
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1565
+
1566
+ # form parameters
1567
+ form_params = opts[:form_params] || {}
1568
+
1569
+ # http body (model)
1570
+ post_body = opts[:debug_body]
1571
+
1572
+ # return_type
1573
+ return_type = opts[:debug_return_type] || 'InvestorPortfolioResponse'
1574
+
1575
+ # auth_names
1576
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1577
+
1578
+ new_options = opts.merge(
1579
+ :operation => :"LegalEntitiesApi.legal_entities_investor_portfolio",
1580
+ :header_params => header_params,
1581
+ :query_params => query_params,
1582
+ :form_params => form_params,
1583
+ :body => post_body,
1584
+ :auth_names => auth_names,
1585
+ :return_type => return_type
1586
+ )
1587
+
1588
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1589
+ if @api_client.config.debugging
1590
+ @api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_investor_portfolio\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1591
+ end
1592
+ return data, status_code, headers
1593
+ end
1594
+
1511
1595
  # SEC filer records
1512
1596
  # @param id [String]
1513
1597
  # @param [Hash] opts the optional parameters
@@ -19,6 +19,8 @@ module PharmaObservatory
19
19
 
20
20
  attr_accessor :company_funding_summary
21
21
 
22
+ attr_accessor :company_peer_profile
23
+
22
24
  attr_accessor :company_trial_geography
23
25
 
24
26
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -26,6 +28,7 @@ module PharmaObservatory
26
28
  {
27
29
  :'company_firmographics' => :'company_firmographics',
28
30
  :'company_funding_summary' => :'company_funding_summary',
31
+ :'company_peer_profile' => :'company_peer_profile',
29
32
  :'company_trial_geography' => :'company_trial_geography'
30
33
  }
31
34
  end
@@ -45,6 +48,7 @@ module PharmaObservatory
45
48
  {
46
49
  :'company_firmographics' => :'CompanyFirmographicsRow',
47
50
  :'company_funding_summary' => :'CompanyFundingSummaryRow',
51
+ :'company_peer_profile' => :'CompanyPeerProfileRow',
48
52
  :'company_trial_geography' => :'CompanyTrialGeographyRow'
49
53
  }
50
54
  end
@@ -79,6 +83,10 @@ module PharmaObservatory
79
83
  self.company_funding_summary = attributes[:'company_funding_summary']
80
84
  end
81
85
 
86
+ if attributes.key?(:'company_peer_profile')
87
+ self.company_peer_profile = attributes[:'company_peer_profile']
88
+ end
89
+
82
90
  if attributes.key?(:'company_trial_geography')
83
91
  self.company_trial_geography = attributes[:'company_trial_geography']
84
92
  end
@@ -106,6 +114,7 @@ module PharmaObservatory
106
114
  self.class == o.class &&
107
115
  company_firmographics == o.company_firmographics &&
108
116
  company_funding_summary == o.company_funding_summary &&
117
+ company_peer_profile == o.company_peer_profile &&
109
118
  company_trial_geography == o.company_trial_geography
110
119
  end
111
120
 
@@ -118,7 +127,7 @@ module PharmaObservatory
118
127
  # Calculates hash code according to all attributes.
119
128
  # @return [Integer] Hash code
120
129
  def hash
121
- [company_firmographics, company_funding_summary, company_trial_geography].hash
130
+ [company_firmographics, company_funding_summary, company_peer_profile, company_trial_geography].hash
122
131
  end
123
132
 
124
133
  # Builds the object from hash
@@ -22,7 +22,7 @@ module PharmaObservatory
22
22
  # The company's display name: its own legal entity's name where one is known.
23
23
  attr_accessor :company_name
24
24
 
25
- # Which source supplied the name: gleif_legal_name, edgar_registrant, ror or sponsor_display_name.
25
+ # Which source supplied the name: gleif_legal_name, edgar_registrant, ror, edgar_current_name or sponsor_display_name.
26
26
  attr_accessor :name_basis
27
27
 
28
28
  # Country of the company's own legal entity, as the source states it.
@@ -55,6 +55,12 @@ module PharmaObservatory
55
55
  # True when the drug has been withdrawn from the market.
56
56
  attr_accessor :withdrawn
57
57
 
58
+ # True when the sponsor is judged to develop the drug (an experimental arm, a regulatory holder, or an inferred lead); false when it is the backbone or comparator of a combination, one of many leads of a crowded drug, or not the holder of a generic. Every row is kept; this column labels it.
59
+ attr_accessor :owned
60
+
61
+ # Why owned is what it is: experimental_arm, regulatory_holder or inferred_lead (owned), or backbone, comparator, crowded_not_lead or generic_not_holder (not owned). inferred_lead is an inference made where the trials give no arm evidence either way.
62
+ attr_accessor :ownership_basis
63
+
58
64
  # Attribute mapping from ruby-style variable name to JSON key.
59
65
  def self.attribute_map
60
66
  {
@@ -70,7 +76,9 @@ module PharmaObservatory
70
76
  :'n_trials' => :'n_trials',
71
77
  :'n_active' => :'n_active',
72
78
  :'last_year' => :'last_year',
73
- :'withdrawn' => :'withdrawn'
79
+ :'withdrawn' => :'withdrawn',
80
+ :'owned' => :'owned',
81
+ :'ownership_basis' => :'ownership_basis'
74
82
  }
75
83
  end
76
84
 
@@ -99,7 +107,9 @@ module PharmaObservatory
99
107
  :'n_trials' => :'Integer',
100
108
  :'n_active' => :'Integer',
101
109
  :'last_year' => :'Integer',
102
- :'withdrawn' => :'Boolean'
110
+ :'withdrawn' => :'Boolean',
111
+ :'owned' => :'Boolean',
112
+ :'ownership_basis' => :'String'
103
113
  }
104
114
  end
105
115
 
@@ -118,7 +128,9 @@ module PharmaObservatory
118
128
  :'n_trials',
119
129
  :'n_active',
120
130
  :'last_year',
121
- :'withdrawn'
131
+ :'withdrawn',
132
+ :'owned',
133
+ :'ownership_basis'
122
134
  ])
123
135
  end
124
136
 
@@ -189,6 +201,14 @@ module PharmaObservatory
189
201
  if attributes.key?(:'withdrawn')
190
202
  self.withdrawn = attributes[:'withdrawn']
191
203
  end
204
+
205
+ if attributes.key?(:'owned')
206
+ self.owned = attributes[:'owned']
207
+ end
208
+
209
+ if attributes.key?(:'ownership_basis')
210
+ self.ownership_basis = attributes[:'ownership_basis']
211
+ end
192
212
  end
193
213
 
194
214
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -223,7 +243,9 @@ module PharmaObservatory
223
243
  n_trials == o.n_trials &&
224
244
  n_active == o.n_active &&
225
245
  last_year == o.last_year &&
226
- withdrawn == o.withdrawn
246
+ withdrawn == o.withdrawn &&
247
+ owned == o.owned &&
248
+ ownership_basis == o.ownership_basis
227
249
  end
228
250
 
229
251
  # @see the `==` method
@@ -235,7 +257,7 @@ module PharmaObservatory
235
257
  # Calculates hash code according to all attributes.
236
258
  # @return [Integer] Hash code
237
259
  def hash
238
- [sponsor_org_id, sponsor_name, sponsor_company_id, sponsor_company_name, sponsor_group_id, sponsor_group_name, drug_id, drug_name, max_phase, n_trials, n_active, last_year, withdrawn].hash
260
+ [sponsor_org_id, sponsor_name, sponsor_company_id, sponsor_company_name, sponsor_group_id, sponsor_group_name, drug_id, drug_name, max_phase, n_trials, n_active, last_year, withdrawn, owned, ownership_basis].hash
239
261
  end
240
262
 
241
263
  # Builds the object from hash