pharmaobservatory 0.1.12 → 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.
@@ -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
@@ -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
@@ -97,6 +97,9 @@ module PharmaObservatory
97
97
  # Up to 3 shared mechanisms written as a gene symbol and an action, by combined phase then combined trials. An empty list when none.
98
98
  attr_accessor :top_shared_mechanisms
99
99
 
100
+ # Distinct trials on which the company and the competitor are both named as sponsors, counted over their subtrees; 0 when none. A consortium trial (more than 25 sponsor companies) is left out.
101
+ attr_accessor :n_cosponsored_trials
102
+
100
103
  # Attribute mapping from ruby-style variable name to JSON key.
101
104
  def self.attribute_map
102
105
  {
@@ -126,7 +129,8 @@ module PharmaObservatory
126
129
  :'n_competitor_indications' => :'n_competitor_indications',
127
130
  :'top_shared_targets' => :'top_shared_targets',
128
131
  :'top_shared_indications' => :'top_shared_indications',
129
- :'top_shared_mechanisms' => :'top_shared_mechanisms'
132
+ :'top_shared_mechanisms' => :'top_shared_mechanisms',
133
+ :'n_cosponsored_trials' => :'n_cosponsored_trials'
130
134
  }
131
135
  end
132
136
 
@@ -169,7 +173,8 @@ module PharmaObservatory
169
173
  :'n_competitor_indications' => :'Integer',
170
174
  :'top_shared_targets' => :'Array<String>',
171
175
  :'top_shared_indications' => :'Array<String>',
172
- :'top_shared_mechanisms' => :'Array<String>'
176
+ :'top_shared_mechanisms' => :'Array<String>',
177
+ :'n_cosponsored_trials' => :'Integer'
173
178
  }
174
179
  end
175
180
 
@@ -202,7 +207,8 @@ module PharmaObservatory
202
207
  :'n_competitor_indications',
203
208
  :'top_shared_targets',
204
209
  :'top_shared_indications',
205
- :'top_shared_mechanisms'
210
+ :'top_shared_mechanisms',
211
+ :'n_cosponsored_trials'
206
212
  ])
207
213
  end
208
214
 
@@ -335,6 +341,10 @@ module PharmaObservatory
335
341
  self.top_shared_mechanisms = value
336
342
  end
337
343
  end
344
+
345
+ if attributes.key?(:'n_cosponsored_trials')
346
+ self.n_cosponsored_trials = attributes[:'n_cosponsored_trials']
347
+ end
338
348
  end
339
349
 
340
350
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -383,7 +393,8 @@ module PharmaObservatory
383
393
  n_competitor_indications == o.n_competitor_indications &&
384
394
  top_shared_targets == o.top_shared_targets &&
385
395
  top_shared_indications == o.top_shared_indications &&
386
- top_shared_mechanisms == o.top_shared_mechanisms
396
+ top_shared_mechanisms == o.top_shared_mechanisms &&
397
+ n_cosponsored_trials == o.n_cosponsored_trials
387
398
  end
388
399
 
389
400
  # @see the `==` method
@@ -395,7 +406,7 @@ module PharmaObservatory
395
406
  # Calculates hash code according to all attributes.
396
407
  # @return [Integer] Hash code
397
408
  def hash
398
- [company_id, company_name, group_id, group_name, competitor_company_id, competitor_company_name, competitor_group_id, competitor_group_name, competitor_class, n_class_candidates, competitor_rank, competitor_score, target_sim, mechanism_sim, indication_sim, phase_sim, n_shared_targets, n_shared_mechanisms, n_shared_indications, n_phase_overlap_targets, n_company_targets, n_competitor_targets, n_company_indications, n_competitor_indications, top_shared_targets, top_shared_indications, top_shared_mechanisms].hash
409
+ [company_id, company_name, group_id, group_name, competitor_company_id, competitor_company_name, competitor_group_id, competitor_group_name, competitor_class, n_class_candidates, competitor_rank, competitor_score, target_sim, mechanism_sim, indication_sim, phase_sim, n_shared_targets, n_shared_mechanisms, n_shared_indications, n_phase_overlap_targets, n_company_targets, n_competitor_targets, n_company_indications, n_competitor_indications, top_shared_targets, top_shared_indications, top_shared_mechanisms, n_cosponsored_trials].hash
399
410
  end
400
411
 
401
412
  # Builds the object from hash