pharmaobservatory 0.1.20 → 0.1.21
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 +26 -4
- data/docs/BiomarkersApi.md +80 -0
- data/docs/CompaniesApi.md +246 -0
- data/docs/HospitalsRow.md +11 -1
- data/docs/InvestmentGraphEdgesResponse.md +58 -0
- data/docs/InvestmentGraphEdgesRow.md +90 -0
- data/docs/InvestmentGraphNodeEdgesResponse.md +58 -0
- data/docs/InvestmentGraphNodeEdgesRow.md +88 -0
- data/docs/InvestmentGraphNodesResponse.md +58 -0
- data/docs/InvestmentGraphNodesRow.md +52 -0
- data/docs/InvestorsApi.md +240 -0
- data/docs/LegalEntitiesApi.md +240 -0
- data/docs/ProviderBiomarkerCapabilityResponse.md +58 -0
- data/docs/ProviderBiomarkerCapabilityRow.md +86 -0
- data/docs/ProviderCliaLicensureResponse.md +58 -0
- data/docs/ProviderCliaLicensureRow.md +80 -0
- data/docs/SuppliersApi.md +160 -0
- data/lib/pharmaobservatory/api/biomarkers_api.rb +84 -0
- data/lib/pharmaobservatory/api/companies_api.rb +273 -0
- data/lib/pharmaobservatory/api/investors_api.rb +252 -0
- data/lib/pharmaobservatory/api/legal_entities_api.rb +252 -0
- data/lib/pharmaobservatory/api/suppliers_api.rb +168 -0
- data/lib/pharmaobservatory/models/hospitals_row.rb +60 -5
- data/lib/pharmaobservatory/models/investment_graph_edges_response.rb +478 -0
- data/lib/pharmaobservatory/models/investment_graph_edges_row.rb +619 -0
- data/lib/pharmaobservatory/models/investment_graph_node_edges_response.rb +478 -0
- data/lib/pharmaobservatory/models/investment_graph_node_edges_row.rb +608 -0
- data/lib/pharmaobservatory/models/investment_graph_nodes_response.rb +478 -0
- data/lib/pharmaobservatory/models/investment_graph_nodes_row.rb +412 -0
- data/lib/pharmaobservatory/models/provider_biomarker_capability_response.rb +478 -0
- data/lib/pharmaobservatory/models/provider_biomarker_capability_row.rb +601 -0
- data/lib/pharmaobservatory/models/provider_clia_licensure_response.rb +478 -0
- data/lib/pharmaobservatory/models/provider_clia_licensure_row.rb +568 -0
- data/lib/pharmaobservatory/version.rb +1 -1
- data/lib/pharmaobservatory.rb +10 -0
- metadata +22 -2
data/docs/SuppliersApi.md
CHANGED
|
@@ -6,6 +6,8 @@ All URIs are relative to *https://pharmaobservatory.com*
|
|
|
6
6
|
| ------ | ------------ | ----------- |
|
|
7
7
|
| [**suppliers_get**](SuppliersApi.md#suppliers_get) | **GET** /api/v1/suppliers/{id} | One supplier |
|
|
8
8
|
| [**suppliers_list**](SuppliersApi.md#suppliers_list) | **GET** /api/v1/suppliers | List suppliers |
|
|
9
|
+
| [**suppliers_provider_biomarker_capability**](SuppliersApi.md#suppliers_provider_biomarker_capability) | **GET** /api/v1/suppliers/{id}/provider_biomarker_capability | Supplier biomarker capability |
|
|
10
|
+
| [**suppliers_provider_clia_licensure**](SuppliersApi.md#suppliers_provider_clia_licensure) | **GET** /api/v1/suppliers/{id}/provider_clia_licensure | Supplier CLIA laboratory licensure |
|
|
9
11
|
| [**suppliers_supplier_services**](SuppliersApi.md#suppliers_supplier_services) | **GET** /api/v1/suppliers/{id}/supplier_services | Supplier services |
|
|
10
12
|
| [**suppliers_supplier_sites**](SuppliersApi.md#suppliers_supplier_sites) | **GET** /api/v1/suppliers/{id}/supplier_sites | Supplier sites |
|
|
11
13
|
|
|
@@ -154,6 +156,164 @@ end
|
|
|
154
156
|
- **Accept**: application/json
|
|
155
157
|
|
|
156
158
|
|
|
159
|
+
## suppliers_provider_biomarker_capability
|
|
160
|
+
|
|
161
|
+
> <ProviderBiomarkerCapabilityResponse> suppliers_provider_biomarker_capability(id, opts)
|
|
162
|
+
|
|
163
|
+
Supplier biomarker capability
|
|
164
|
+
|
|
165
|
+
### Examples
|
|
166
|
+
|
|
167
|
+
```ruby
|
|
168
|
+
require 'time'
|
|
169
|
+
require 'pharmaobservatory'
|
|
170
|
+
# setup authorization
|
|
171
|
+
PharmaObservatory.configure do |config|
|
|
172
|
+
# Configure Bearer authorization (JWT): ApiBearerJwt
|
|
173
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
api_instance = PharmaObservatory::SuppliersApi.new
|
|
177
|
+
id = 990502 # Integer |
|
|
178
|
+
opts = {
|
|
179
|
+
cursor: 'cursor_example', # String | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
180
|
+
limit: 56, # Integer | Rows per page, up to 500 (default 50).
|
|
181
|
+
sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
182
|
+
group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
|
|
183
|
+
measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
begin
|
|
187
|
+
# Supplier biomarker capability
|
|
188
|
+
result = api_instance.suppliers_provider_biomarker_capability(id, opts)
|
|
189
|
+
p result
|
|
190
|
+
rescue PharmaObservatory::ApiError => e
|
|
191
|
+
puts "Error when calling SuppliersApi->suppliers_provider_biomarker_capability: #{e}"
|
|
192
|
+
end
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
#### Using the suppliers_provider_biomarker_capability_with_http_info variant
|
|
196
|
+
|
|
197
|
+
This returns an Array which contains the response data, status code and headers.
|
|
198
|
+
|
|
199
|
+
> <Array(<ProviderBiomarkerCapabilityResponse>, Integer, Hash)> suppliers_provider_biomarker_capability_with_http_info(id, opts)
|
|
200
|
+
|
|
201
|
+
```ruby
|
|
202
|
+
begin
|
|
203
|
+
# Supplier biomarker capability
|
|
204
|
+
data, status_code, headers = api_instance.suppliers_provider_biomarker_capability_with_http_info(id, opts)
|
|
205
|
+
p status_code # => 2xx
|
|
206
|
+
p headers # => { ... }
|
|
207
|
+
p data # => <ProviderBiomarkerCapabilityResponse>
|
|
208
|
+
rescue PharmaObservatory::ApiError => e
|
|
209
|
+
puts "Error when calling SuppliersApi->suppliers_provider_biomarker_capability_with_http_info: #{e}"
|
|
210
|
+
end
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
### Parameters
|
|
214
|
+
|
|
215
|
+
| Name | Type | Description | Notes |
|
|
216
|
+
| ---- | ---- | ----------- | ----- |
|
|
217
|
+
| **id** | **Integer** | | |
|
|
218
|
+
| **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
|
|
219
|
+
| **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
|
|
220
|
+
| **sort** | **String** | Comma separated columns, a leading minus for descending: sort=a,-b. | [optional] |
|
|
221
|
+
| **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
|
|
222
|
+
| **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
|
|
223
|
+
|
|
224
|
+
### Return type
|
|
225
|
+
|
|
226
|
+
[**ProviderBiomarkerCapabilityResponse**](ProviderBiomarkerCapabilityResponse.md)
|
|
227
|
+
|
|
228
|
+
### Authorization
|
|
229
|
+
|
|
230
|
+
[ApiBearerJwt](../README.md#ApiBearerJwt)
|
|
231
|
+
|
|
232
|
+
### HTTP request headers
|
|
233
|
+
|
|
234
|
+
- **Content-Type**: Not defined
|
|
235
|
+
- **Accept**: application/json
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
## suppliers_provider_clia_licensure
|
|
239
|
+
|
|
240
|
+
> <ProviderCliaLicensureResponse> suppliers_provider_clia_licensure(id, opts)
|
|
241
|
+
|
|
242
|
+
Supplier CLIA laboratory licensure
|
|
243
|
+
|
|
244
|
+
### Examples
|
|
245
|
+
|
|
246
|
+
```ruby
|
|
247
|
+
require 'time'
|
|
248
|
+
require 'pharmaobservatory'
|
|
249
|
+
# setup authorization
|
|
250
|
+
PharmaObservatory.configure do |config|
|
|
251
|
+
# Configure Bearer authorization (JWT): ApiBearerJwt
|
|
252
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
api_instance = PharmaObservatory::SuppliersApi.new
|
|
256
|
+
id = 990502 # Integer |
|
|
257
|
+
opts = {
|
|
258
|
+
cursor: 'cursor_example', # String | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
259
|
+
limit: 56, # Integer | Rows per page, up to 500 (default 50).
|
|
260
|
+
sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
261
|
+
group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
|
|
262
|
+
measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
begin
|
|
266
|
+
# Supplier CLIA laboratory licensure
|
|
267
|
+
result = api_instance.suppliers_provider_clia_licensure(id, opts)
|
|
268
|
+
p result
|
|
269
|
+
rescue PharmaObservatory::ApiError => e
|
|
270
|
+
puts "Error when calling SuppliersApi->suppliers_provider_clia_licensure: #{e}"
|
|
271
|
+
end
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
#### Using the suppliers_provider_clia_licensure_with_http_info variant
|
|
275
|
+
|
|
276
|
+
This returns an Array which contains the response data, status code and headers.
|
|
277
|
+
|
|
278
|
+
> <Array(<ProviderCliaLicensureResponse>, Integer, Hash)> suppliers_provider_clia_licensure_with_http_info(id, opts)
|
|
279
|
+
|
|
280
|
+
```ruby
|
|
281
|
+
begin
|
|
282
|
+
# Supplier CLIA laboratory licensure
|
|
283
|
+
data, status_code, headers = api_instance.suppliers_provider_clia_licensure_with_http_info(id, opts)
|
|
284
|
+
p status_code # => 2xx
|
|
285
|
+
p headers # => { ... }
|
|
286
|
+
p data # => <ProviderCliaLicensureResponse>
|
|
287
|
+
rescue PharmaObservatory::ApiError => e
|
|
288
|
+
puts "Error when calling SuppliersApi->suppliers_provider_clia_licensure_with_http_info: #{e}"
|
|
289
|
+
end
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
### Parameters
|
|
293
|
+
|
|
294
|
+
| Name | Type | Description | Notes |
|
|
295
|
+
| ---- | ---- | ----------- | ----- |
|
|
296
|
+
| **id** | **Integer** | | |
|
|
297
|
+
| **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
|
|
298
|
+
| **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
|
|
299
|
+
| **sort** | **String** | Comma separated columns, a leading minus for descending: sort=a,-b. | [optional] |
|
|
300
|
+
| **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
|
|
301
|
+
| **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
|
|
302
|
+
|
|
303
|
+
### Return type
|
|
304
|
+
|
|
305
|
+
[**ProviderCliaLicensureResponse**](ProviderCliaLicensureResponse.md)
|
|
306
|
+
|
|
307
|
+
### Authorization
|
|
308
|
+
|
|
309
|
+
[ApiBearerJwt](../README.md#ApiBearerJwt)
|
|
310
|
+
|
|
311
|
+
### HTTP request headers
|
|
312
|
+
|
|
313
|
+
- **Content-Type**: Not defined
|
|
314
|
+
- **Accept**: application/json
|
|
315
|
+
|
|
316
|
+
|
|
157
317
|
## suppliers_supplier_services
|
|
158
318
|
|
|
159
319
|
> <SupplierServicesResponse> suppliers_supplier_services(id, opts)
|
|
@@ -1501,5 +1501,89 @@ module PharmaObservatory
|
|
|
1501
1501
|
end
|
|
1502
1502
|
return data, status_code, headers
|
|
1503
1503
|
end
|
|
1504
|
+
|
|
1505
|
+
# Supplier biomarker capability
|
|
1506
|
+
# @param id [String]
|
|
1507
|
+
# @param [Hash] opts the optional parameters
|
|
1508
|
+
# @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.
|
|
1509
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1510
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1511
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1512
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1513
|
+
# @return [ProviderBiomarkerCapabilityResponse]
|
|
1514
|
+
def biomarkers_provider_biomarker_capability(id, opts = {})
|
|
1515
|
+
data, _status_code, _headers = biomarkers_provider_biomarker_capability_with_http_info(id, opts)
|
|
1516
|
+
data
|
|
1517
|
+
end
|
|
1518
|
+
|
|
1519
|
+
# Supplier biomarker capability
|
|
1520
|
+
# @param id [String]
|
|
1521
|
+
# @param [Hash] opts the optional parameters
|
|
1522
|
+
# @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.
|
|
1523
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1524
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1525
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1526
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1527
|
+
# @return [Array<(ProviderBiomarkerCapabilityResponse, Integer, Hash)>] ProviderBiomarkerCapabilityResponse data, response status code and response headers
|
|
1528
|
+
def biomarkers_provider_biomarker_capability_with_http_info(id, opts = {})
|
|
1529
|
+
if @api_client.config.debugging
|
|
1530
|
+
@api_client.config.logger.debug 'Calling API: BiomarkersApi.biomarkers_provider_biomarker_capability ...'
|
|
1531
|
+
end
|
|
1532
|
+
# verify the required parameter 'id' is set
|
|
1533
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1534
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling BiomarkersApi.biomarkers_provider_biomarker_capability"
|
|
1535
|
+
end
|
|
1536
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1537
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling BiomarkersApi.biomarkers_provider_biomarker_capability, must be smaller than or equal to 500.'
|
|
1538
|
+
end
|
|
1539
|
+
|
|
1540
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1541
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling BiomarkersApi.biomarkers_provider_biomarker_capability, must be greater than or equal to 1.'
|
|
1542
|
+
end
|
|
1543
|
+
|
|
1544
|
+
# resource path
|
|
1545
|
+
local_var_path = '/api/v1/biomarkers/{id}/provider_biomarker_capability'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1546
|
+
|
|
1547
|
+
# query parameters
|
|
1548
|
+
query_params = opts[:query_params] || {}
|
|
1549
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
1550
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1551
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
1552
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
1553
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
1554
|
+
|
|
1555
|
+
# header parameters
|
|
1556
|
+
header_params = opts[:header_params] || {}
|
|
1557
|
+
# HTTP header 'Accept' (if needed)
|
|
1558
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1559
|
+
|
|
1560
|
+
# form parameters
|
|
1561
|
+
form_params = opts[:form_params] || {}
|
|
1562
|
+
|
|
1563
|
+
# http body (model)
|
|
1564
|
+
post_body = opts[:debug_body]
|
|
1565
|
+
|
|
1566
|
+
# return_type
|
|
1567
|
+
return_type = opts[:debug_return_type] || 'ProviderBiomarkerCapabilityResponse'
|
|
1568
|
+
|
|
1569
|
+
# auth_names
|
|
1570
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1571
|
+
|
|
1572
|
+
new_options = opts.merge(
|
|
1573
|
+
:operation => :"BiomarkersApi.biomarkers_provider_biomarker_capability",
|
|
1574
|
+
:header_params => header_params,
|
|
1575
|
+
:query_params => query_params,
|
|
1576
|
+
:form_params => form_params,
|
|
1577
|
+
:body => post_body,
|
|
1578
|
+
:auth_names => auth_names,
|
|
1579
|
+
:return_type => return_type
|
|
1580
|
+
)
|
|
1581
|
+
|
|
1582
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1583
|
+
if @api_client.config.debugging
|
|
1584
|
+
@api_client.config.logger.debug "API called: BiomarkersApi#biomarkers_provider_biomarker_capability\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1585
|
+
end
|
|
1586
|
+
return data, status_code, headers
|
|
1587
|
+
end
|
|
1504
1588
|
end
|
|
1505
1589
|
end
|
|
@@ -3720,6 +3720,279 @@ module PharmaObservatory
|
|
|
3720
3720
|
return data, status_code, headers
|
|
3721
3721
|
end
|
|
3722
3722
|
|
|
3723
|
+
# Investment graph edges
|
|
3724
|
+
# @param id [String]
|
|
3725
|
+
# @param [Hash] opts the optional parameters
|
|
3726
|
+
# @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.
|
|
3727
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
3728
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
3729
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3730
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3731
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3732
|
+
# @return [InvestmentGraphEdgesResponse]
|
|
3733
|
+
def companies_investment_graph_edges(id, opts = {})
|
|
3734
|
+
data, _status_code, _headers = companies_investment_graph_edges_with_http_info(id, opts)
|
|
3735
|
+
data
|
|
3736
|
+
end
|
|
3737
|
+
|
|
3738
|
+
# Investment graph edges
|
|
3739
|
+
# @param id [String]
|
|
3740
|
+
# @param [Hash] opts the optional parameters
|
|
3741
|
+
# @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.
|
|
3742
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
3743
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
3744
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3745
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3746
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3747
|
+
# @return [Array<(InvestmentGraphEdgesResponse, Integer, Hash)>] InvestmentGraphEdgesResponse data, response status code and response headers
|
|
3748
|
+
def companies_investment_graph_edges_with_http_info(id, opts = {})
|
|
3749
|
+
if @api_client.config.debugging
|
|
3750
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_investment_graph_edges ...'
|
|
3751
|
+
end
|
|
3752
|
+
# verify the required parameter 'id' is set
|
|
3753
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
3754
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_investment_graph_edges"
|
|
3755
|
+
end
|
|
3756
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
3757
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_investment_graph_edges, must be smaller than or equal to 500.'
|
|
3758
|
+
end
|
|
3759
|
+
|
|
3760
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
3761
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_investment_graph_edges, must be greater than or equal to 1.'
|
|
3762
|
+
end
|
|
3763
|
+
|
|
3764
|
+
allowable_values = ["company", "group"]
|
|
3765
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
3766
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
3767
|
+
end
|
|
3768
|
+
# resource path
|
|
3769
|
+
local_var_path = '/api/v1/companies/{id}/investment_graph_edges'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
3770
|
+
|
|
3771
|
+
# query parameters
|
|
3772
|
+
query_params = opts[:query_params] || {}
|
|
3773
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
3774
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
3775
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
3776
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
3777
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
3778
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
3779
|
+
|
|
3780
|
+
# header parameters
|
|
3781
|
+
header_params = opts[:header_params] || {}
|
|
3782
|
+
# HTTP header 'Accept' (if needed)
|
|
3783
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
3784
|
+
|
|
3785
|
+
# form parameters
|
|
3786
|
+
form_params = opts[:form_params] || {}
|
|
3787
|
+
|
|
3788
|
+
# http body (model)
|
|
3789
|
+
post_body = opts[:debug_body]
|
|
3790
|
+
|
|
3791
|
+
# return_type
|
|
3792
|
+
return_type = opts[:debug_return_type] || 'InvestmentGraphEdgesResponse'
|
|
3793
|
+
|
|
3794
|
+
# auth_names
|
|
3795
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
3796
|
+
|
|
3797
|
+
new_options = opts.merge(
|
|
3798
|
+
:operation => :"CompaniesApi.companies_investment_graph_edges",
|
|
3799
|
+
:header_params => header_params,
|
|
3800
|
+
:query_params => query_params,
|
|
3801
|
+
:form_params => form_params,
|
|
3802
|
+
:body => post_body,
|
|
3803
|
+
:auth_names => auth_names,
|
|
3804
|
+
:return_type => return_type
|
|
3805
|
+
)
|
|
3806
|
+
|
|
3807
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
3808
|
+
if @api_client.config.debugging
|
|
3809
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_investment_graph_edges\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3810
|
+
end
|
|
3811
|
+
return data, status_code, headers
|
|
3812
|
+
end
|
|
3813
|
+
|
|
3814
|
+
# Investment graph edges by node (one row per endpoint)
|
|
3815
|
+
# @param id [String]
|
|
3816
|
+
# @param [Hash] opts the optional parameters
|
|
3817
|
+
# @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.
|
|
3818
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
3819
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
3820
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3821
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3822
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3823
|
+
# @return [InvestmentGraphNodeEdgesResponse]
|
|
3824
|
+
def companies_investment_graph_node_edges(id, opts = {})
|
|
3825
|
+
data, _status_code, _headers = companies_investment_graph_node_edges_with_http_info(id, opts)
|
|
3826
|
+
data
|
|
3827
|
+
end
|
|
3828
|
+
|
|
3829
|
+
# Investment graph edges by node (one row per endpoint)
|
|
3830
|
+
# @param id [String]
|
|
3831
|
+
# @param [Hash] opts the optional parameters
|
|
3832
|
+
# @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.
|
|
3833
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
3834
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
3835
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3836
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3837
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3838
|
+
# @return [Array<(InvestmentGraphNodeEdgesResponse, Integer, Hash)>] InvestmentGraphNodeEdgesResponse data, response status code and response headers
|
|
3839
|
+
def companies_investment_graph_node_edges_with_http_info(id, opts = {})
|
|
3840
|
+
if @api_client.config.debugging
|
|
3841
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_investment_graph_node_edges ...'
|
|
3842
|
+
end
|
|
3843
|
+
# verify the required parameter 'id' is set
|
|
3844
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
3845
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_investment_graph_node_edges"
|
|
3846
|
+
end
|
|
3847
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
3848
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_investment_graph_node_edges, must be smaller than or equal to 500.'
|
|
3849
|
+
end
|
|
3850
|
+
|
|
3851
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
3852
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_investment_graph_node_edges, must be greater than or equal to 1.'
|
|
3853
|
+
end
|
|
3854
|
+
|
|
3855
|
+
allowable_values = ["company", "group"]
|
|
3856
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
3857
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
3858
|
+
end
|
|
3859
|
+
# resource path
|
|
3860
|
+
local_var_path = '/api/v1/companies/{id}/investment_graph_node_edges'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
3861
|
+
|
|
3862
|
+
# query parameters
|
|
3863
|
+
query_params = opts[:query_params] || {}
|
|
3864
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
3865
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
3866
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
3867
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
3868
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
3869
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
3870
|
+
|
|
3871
|
+
# header parameters
|
|
3872
|
+
header_params = opts[:header_params] || {}
|
|
3873
|
+
# HTTP header 'Accept' (if needed)
|
|
3874
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
3875
|
+
|
|
3876
|
+
# form parameters
|
|
3877
|
+
form_params = opts[:form_params] || {}
|
|
3878
|
+
|
|
3879
|
+
# http body (model)
|
|
3880
|
+
post_body = opts[:debug_body]
|
|
3881
|
+
|
|
3882
|
+
# return_type
|
|
3883
|
+
return_type = opts[:debug_return_type] || 'InvestmentGraphNodeEdgesResponse'
|
|
3884
|
+
|
|
3885
|
+
# auth_names
|
|
3886
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
3887
|
+
|
|
3888
|
+
new_options = opts.merge(
|
|
3889
|
+
:operation => :"CompaniesApi.companies_investment_graph_node_edges",
|
|
3890
|
+
:header_params => header_params,
|
|
3891
|
+
:query_params => query_params,
|
|
3892
|
+
:form_params => form_params,
|
|
3893
|
+
:body => post_body,
|
|
3894
|
+
:auth_names => auth_names,
|
|
3895
|
+
:return_type => return_type
|
|
3896
|
+
)
|
|
3897
|
+
|
|
3898
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
3899
|
+
if @api_client.config.debugging
|
|
3900
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_investment_graph_node_edges\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3901
|
+
end
|
|
3902
|
+
return data, status_code, headers
|
|
3903
|
+
end
|
|
3904
|
+
|
|
3905
|
+
# Investment graph nodes
|
|
3906
|
+
# @param id [String]
|
|
3907
|
+
# @param [Hash] opts the optional parameters
|
|
3908
|
+
# @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.
|
|
3909
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
3910
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
3911
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3912
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3913
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3914
|
+
# @return [InvestmentGraphNodesResponse]
|
|
3915
|
+
def companies_investment_graph_nodes(id, opts = {})
|
|
3916
|
+
data, _status_code, _headers = companies_investment_graph_nodes_with_http_info(id, opts)
|
|
3917
|
+
data
|
|
3918
|
+
end
|
|
3919
|
+
|
|
3920
|
+
# Investment graph nodes
|
|
3921
|
+
# @param id [String]
|
|
3922
|
+
# @param [Hash] opts the optional parameters
|
|
3923
|
+
# @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.
|
|
3924
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
3925
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
3926
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
3927
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
3928
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
3929
|
+
# @return [Array<(InvestmentGraphNodesResponse, Integer, Hash)>] InvestmentGraphNodesResponse data, response status code and response headers
|
|
3930
|
+
def companies_investment_graph_nodes_with_http_info(id, opts = {})
|
|
3931
|
+
if @api_client.config.debugging
|
|
3932
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_investment_graph_nodes ...'
|
|
3933
|
+
end
|
|
3934
|
+
# verify the required parameter 'id' is set
|
|
3935
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
3936
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_investment_graph_nodes"
|
|
3937
|
+
end
|
|
3938
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
3939
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_investment_graph_nodes, must be smaller than or equal to 500.'
|
|
3940
|
+
end
|
|
3941
|
+
|
|
3942
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
3943
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_investment_graph_nodes, must be greater than or equal to 1.'
|
|
3944
|
+
end
|
|
3945
|
+
|
|
3946
|
+
allowable_values = ["company", "group"]
|
|
3947
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
3948
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
3949
|
+
end
|
|
3950
|
+
# resource path
|
|
3951
|
+
local_var_path = '/api/v1/companies/{id}/investment_graph_nodes'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
3952
|
+
|
|
3953
|
+
# query parameters
|
|
3954
|
+
query_params = opts[:query_params] || {}
|
|
3955
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
3956
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
3957
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
3958
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
3959
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
3960
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
3961
|
+
|
|
3962
|
+
# header parameters
|
|
3963
|
+
header_params = opts[:header_params] || {}
|
|
3964
|
+
# HTTP header 'Accept' (if needed)
|
|
3965
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
3966
|
+
|
|
3967
|
+
# form parameters
|
|
3968
|
+
form_params = opts[:form_params] || {}
|
|
3969
|
+
|
|
3970
|
+
# http body (model)
|
|
3971
|
+
post_body = opts[:debug_body]
|
|
3972
|
+
|
|
3973
|
+
# return_type
|
|
3974
|
+
return_type = opts[:debug_return_type] || 'InvestmentGraphNodesResponse'
|
|
3975
|
+
|
|
3976
|
+
# auth_names
|
|
3977
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
3978
|
+
|
|
3979
|
+
new_options = opts.merge(
|
|
3980
|
+
:operation => :"CompaniesApi.companies_investment_graph_nodes",
|
|
3981
|
+
:header_params => header_params,
|
|
3982
|
+
:query_params => query_params,
|
|
3983
|
+
:form_params => form_params,
|
|
3984
|
+
:body => post_body,
|
|
3985
|
+
:auth_names => auth_names,
|
|
3986
|
+
:return_type => return_type
|
|
3987
|
+
)
|
|
3988
|
+
|
|
3989
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
3990
|
+
if @api_client.config.debugging
|
|
3991
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_investment_graph_nodes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3992
|
+
end
|
|
3993
|
+
return data, status_code, headers
|
|
3994
|
+
end
|
|
3995
|
+
|
|
3723
3996
|
# Investor portfolio (offering filings and investor websites)
|
|
3724
3997
|
# @param id [String]
|
|
3725
3998
|
# @param [Hash] opts the optional parameters
|