pharmaobservatory 0.1.13 → 0.1.15
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 +25 -5
- data/docs/BiomarkerValidationRow.md +1 -1
- data/docs/ChangesList200Response.md +26 -0
- data/docs/ChangesList200ResponseBuildState.md +20 -0
- data/docs/ChangesList200ResponseItemsInner.md +48 -0
- data/docs/ChangesList200ResponseItemsInnerEntryKeys.md +18 -0
- data/docs/CompaniesApi.md +86 -4
- data/docs/CompanyAssetCollisionsResponse.md +58 -0
- data/docs/CompanyAssetCollisionsRow.md +68 -0
- data/docs/CompanyCompetitorsRow.md +16 -32
- data/docs/CompanyFinancialsRow.md +18 -0
- data/docs/ConditionAdverseEventsRow.md +5 -1
- data/docs/SubscriptionsApi.md +282 -0
- data/docs/SubscriptionsCreate201Response.md +22 -0
- data/docs/SubscriptionsCreate201ResponseSubscription.md +28 -0
- data/docs/SubscriptionsCreate201ResponseSubscriptionTarget.md +22 -0
- data/docs/SubscriptionsCreateRequest.md +20 -0
- data/docs/SubscriptionsDelete200Response.md +24 -0
- data/docs/SubscriptionsList200Response.md +22 -0
- data/docs/SubscriptionsList200ResponseSubscriptionsInner.md +28 -0
- data/docs/SubscriptionsList200ResponseSubscriptionsInnerTarget.md +26 -0
- data/docs/SubscriptionsList200ResponseSubscriptionsInnerTargetFilters.md +18 -0
- data/lib/pharmaobservatory/api/companies_api.rb +93 -2
- data/lib/pharmaobservatory/api/subscriptions_api.rb +261 -0
- data/lib/pharmaobservatory/models/biomarker_validation_row.rb +1 -1
- data/lib/pharmaobservatory/models/changes_list200_response.rb +343 -0
- data/lib/pharmaobservatory/models/changes_list200_response_build_state.rb +263 -0
- data/lib/pharmaobservatory/models/changes_list200_response_items_inner.rb +627 -0
- data/lib/pharmaobservatory/models/changes_list200_response_items_inner_entry_keys.rb +237 -0
- data/lib/pharmaobservatory/models/company_asset_collisions_response.rb +478 -0
- data/lib/pharmaobservatory/models/company_asset_collisions_row.rb +502 -0
- data/lib/pharmaobservatory/models/company_competitors_row.rb +61 -153
- data/lib/pharmaobservatory/models/company_financials_row.rb +100 -1
- data/lib/pharmaobservatory/models/condition_adverse_events_row.rb +27 -5
- data/lib/pharmaobservatory/models/subscriptions_create201_response.rb +289 -0
- data/lib/pharmaobservatory/models/subscriptions_create201_response_subscription.rb +369 -0
- data/lib/pharmaobservatory/models/subscriptions_create201_response_subscription_target.rb +289 -0
- data/lib/pharmaobservatory/models/subscriptions_create_request.rb +263 -0
- data/lib/pharmaobservatory/models/subscriptions_delete200_response.rb +315 -0
- data/lib/pharmaobservatory/models/subscriptions_list200_response.rb +291 -0
- data/lib/pharmaobservatory/models/subscriptions_list200_response_subscriptions_inner.rb +369 -0
- data/lib/pharmaobservatory/models/subscriptions_list200_response_subscriptions_inner_target.rb +277 -0
- data/lib/pharmaobservatory/models/subscriptions_list200_response_subscriptions_inner_target_filters.rb +237 -0
- data/lib/pharmaobservatory/version.rb +1 -1
- data/lib/pharmaobservatory.rb +16 -0
- metadata +34 -2
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
# PharmaObservatory::SubscriptionsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://pharmaobservatory.com*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**changes_list**](SubscriptionsApi.md#changes_list) | **GET** /api/v1/changes | Changes since a cursor |
|
|
8
|
+
| [**subscriptions_create**](SubscriptionsApi.md#subscriptions_create) | **POST** /api/v1/subscriptions | Follow an entity or a dataset query |
|
|
9
|
+
| [**subscriptions_delete**](SubscriptionsApi.md#subscriptions_delete) | **DELETE** /api/v1/subscriptions/{id} | Stop following |
|
|
10
|
+
| [**subscriptions_list**](SubscriptionsApi.md#subscriptions_list) | **GET** /api/v1/subscriptions | List your subscriptions |
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## changes_list
|
|
14
|
+
|
|
15
|
+
> <ChangesList200Response> changes_list(opts)
|
|
16
|
+
|
|
17
|
+
Changes since a cursor
|
|
18
|
+
|
|
19
|
+
### Examples
|
|
20
|
+
|
|
21
|
+
```ruby
|
|
22
|
+
require 'time'
|
|
23
|
+
require 'pharmaobservatory'
|
|
24
|
+
# setup authorization
|
|
25
|
+
PharmaObservatory.configure do |config|
|
|
26
|
+
# Configure Bearer authorization (JWT): ApiBearerJwt
|
|
27
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
api_instance = PharmaObservatory::SubscriptionsApi.new
|
|
31
|
+
opts = {
|
|
32
|
+
cursor: 'eyJ2IjoxLCJvIjoiMjAyNi0xMS0wMlQwNjowMjowMC4wMDAwMDBaIiwiaSI6OTAwMn0', # String |
|
|
33
|
+
limit: 2 # Integer |
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
begin
|
|
37
|
+
# Changes since a cursor
|
|
38
|
+
result = api_instance.changes_list(opts)
|
|
39
|
+
p result
|
|
40
|
+
rescue PharmaObservatory::ApiError => e
|
|
41
|
+
puts "Error when calling SubscriptionsApi->changes_list: #{e}"
|
|
42
|
+
end
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
#### Using the changes_list_with_http_info variant
|
|
46
|
+
|
|
47
|
+
This returns an Array which contains the response data, status code and headers.
|
|
48
|
+
|
|
49
|
+
> <Array(<ChangesList200Response>, Integer, Hash)> changes_list_with_http_info(opts)
|
|
50
|
+
|
|
51
|
+
```ruby
|
|
52
|
+
begin
|
|
53
|
+
# Changes since a cursor
|
|
54
|
+
data, status_code, headers = api_instance.changes_list_with_http_info(opts)
|
|
55
|
+
p status_code # => 2xx
|
|
56
|
+
p headers # => { ... }
|
|
57
|
+
p data # => <ChangesList200Response>
|
|
58
|
+
rescue PharmaObservatory::ApiError => e
|
|
59
|
+
puts "Error when calling SubscriptionsApi->changes_list_with_http_info: #{e}"
|
|
60
|
+
end
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### Parameters
|
|
64
|
+
|
|
65
|
+
| Name | Type | Description | Notes |
|
|
66
|
+
| ---- | ---- | ----------- | ----- |
|
|
67
|
+
| **cursor** | **String** | | [optional] |
|
|
68
|
+
| **limit** | **Integer** | | [optional] |
|
|
69
|
+
|
|
70
|
+
### Return type
|
|
71
|
+
|
|
72
|
+
[**ChangesList200Response**](ChangesList200Response.md)
|
|
73
|
+
|
|
74
|
+
### Authorization
|
|
75
|
+
|
|
76
|
+
[ApiBearerJwt](../README.md#ApiBearerJwt)
|
|
77
|
+
|
|
78
|
+
### HTTP request headers
|
|
79
|
+
|
|
80
|
+
- **Content-Type**: Not defined
|
|
81
|
+
- **Accept**: application/json
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
## subscriptions_create
|
|
85
|
+
|
|
86
|
+
> <SubscriptionsCreate201Response> subscriptions_create(opts)
|
|
87
|
+
|
|
88
|
+
Follow an entity or a dataset query
|
|
89
|
+
|
|
90
|
+
### Examples
|
|
91
|
+
|
|
92
|
+
```ruby
|
|
93
|
+
require 'time'
|
|
94
|
+
require 'pharmaobservatory'
|
|
95
|
+
# setup authorization
|
|
96
|
+
PharmaObservatory.configure do |config|
|
|
97
|
+
# Configure Bearer authorization (JWT): ApiBearerJwt
|
|
98
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
api_instance = PharmaObservatory::SubscriptionsApi.new
|
|
102
|
+
opts = {
|
|
103
|
+
subscriptions_create_request: PharmaObservatory::SubscriptionsCreateRequest.new({object_type: 'object_type_example', entity_id: 'entity_id_example'}) # SubscriptionsCreateRequest |
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
begin
|
|
107
|
+
# Follow an entity or a dataset query
|
|
108
|
+
result = api_instance.subscriptions_create(opts)
|
|
109
|
+
p result
|
|
110
|
+
rescue PharmaObservatory::ApiError => e
|
|
111
|
+
puts "Error when calling SubscriptionsApi->subscriptions_create: #{e}"
|
|
112
|
+
end
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
#### Using the subscriptions_create_with_http_info variant
|
|
116
|
+
|
|
117
|
+
This returns an Array which contains the response data, status code and headers.
|
|
118
|
+
|
|
119
|
+
> <Array(<SubscriptionsCreate201Response>, Integer, Hash)> subscriptions_create_with_http_info(opts)
|
|
120
|
+
|
|
121
|
+
```ruby
|
|
122
|
+
begin
|
|
123
|
+
# Follow an entity or a dataset query
|
|
124
|
+
data, status_code, headers = api_instance.subscriptions_create_with_http_info(opts)
|
|
125
|
+
p status_code # => 2xx
|
|
126
|
+
p headers # => { ... }
|
|
127
|
+
p data # => <SubscriptionsCreate201Response>
|
|
128
|
+
rescue PharmaObservatory::ApiError => e
|
|
129
|
+
puts "Error when calling SubscriptionsApi->subscriptions_create_with_http_info: #{e}"
|
|
130
|
+
end
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
### Parameters
|
|
134
|
+
|
|
135
|
+
| Name | Type | Description | Notes |
|
|
136
|
+
| ---- | ---- | ----------- | ----- |
|
|
137
|
+
| **subscriptions_create_request** | [**SubscriptionsCreateRequest**](SubscriptionsCreateRequest.md) | | [optional] |
|
|
138
|
+
|
|
139
|
+
### Return type
|
|
140
|
+
|
|
141
|
+
[**SubscriptionsCreate201Response**](SubscriptionsCreate201Response.md)
|
|
142
|
+
|
|
143
|
+
### Authorization
|
|
144
|
+
|
|
145
|
+
[ApiBearerJwt](../README.md#ApiBearerJwt)
|
|
146
|
+
|
|
147
|
+
### HTTP request headers
|
|
148
|
+
|
|
149
|
+
- **Content-Type**: application/json
|
|
150
|
+
- **Accept**: application/json
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
## subscriptions_delete
|
|
154
|
+
|
|
155
|
+
> <SubscriptionsDelete200Response> subscriptions_delete(id)
|
|
156
|
+
|
|
157
|
+
Stop following
|
|
158
|
+
|
|
159
|
+
### Examples
|
|
160
|
+
|
|
161
|
+
```ruby
|
|
162
|
+
require 'time'
|
|
163
|
+
require 'pharmaobservatory'
|
|
164
|
+
# setup authorization
|
|
165
|
+
PharmaObservatory.configure do |config|
|
|
166
|
+
# Configure Bearer authorization (JWT): ApiBearerJwt
|
|
167
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
api_instance = PharmaObservatory::SubscriptionsApi.new
|
|
171
|
+
id = 4242 # Integer |
|
|
172
|
+
|
|
173
|
+
begin
|
|
174
|
+
# Stop following
|
|
175
|
+
result = api_instance.subscriptions_delete(id)
|
|
176
|
+
p result
|
|
177
|
+
rescue PharmaObservatory::ApiError => e
|
|
178
|
+
puts "Error when calling SubscriptionsApi->subscriptions_delete: #{e}"
|
|
179
|
+
end
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
#### Using the subscriptions_delete_with_http_info variant
|
|
183
|
+
|
|
184
|
+
This returns an Array which contains the response data, status code and headers.
|
|
185
|
+
|
|
186
|
+
> <Array(<SubscriptionsDelete200Response>, Integer, Hash)> subscriptions_delete_with_http_info(id)
|
|
187
|
+
|
|
188
|
+
```ruby
|
|
189
|
+
begin
|
|
190
|
+
# Stop following
|
|
191
|
+
data, status_code, headers = api_instance.subscriptions_delete_with_http_info(id)
|
|
192
|
+
p status_code # => 2xx
|
|
193
|
+
p headers # => { ... }
|
|
194
|
+
p data # => <SubscriptionsDelete200Response>
|
|
195
|
+
rescue PharmaObservatory::ApiError => e
|
|
196
|
+
puts "Error when calling SubscriptionsApi->subscriptions_delete_with_http_info: #{e}"
|
|
197
|
+
end
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
### Parameters
|
|
201
|
+
|
|
202
|
+
| Name | Type | Description | Notes |
|
|
203
|
+
| ---- | ---- | ----------- | ----- |
|
|
204
|
+
| **id** | **Integer** | | |
|
|
205
|
+
|
|
206
|
+
### Return type
|
|
207
|
+
|
|
208
|
+
[**SubscriptionsDelete200Response**](SubscriptionsDelete200Response.md)
|
|
209
|
+
|
|
210
|
+
### Authorization
|
|
211
|
+
|
|
212
|
+
[ApiBearerJwt](../README.md#ApiBearerJwt)
|
|
213
|
+
|
|
214
|
+
### HTTP request headers
|
|
215
|
+
|
|
216
|
+
- **Content-Type**: Not defined
|
|
217
|
+
- **Accept**: application/json
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
## subscriptions_list
|
|
221
|
+
|
|
222
|
+
> <SubscriptionsList200Response> subscriptions_list
|
|
223
|
+
|
|
224
|
+
List your subscriptions
|
|
225
|
+
|
|
226
|
+
### Examples
|
|
227
|
+
|
|
228
|
+
```ruby
|
|
229
|
+
require 'time'
|
|
230
|
+
require 'pharmaobservatory'
|
|
231
|
+
# setup authorization
|
|
232
|
+
PharmaObservatory.configure do |config|
|
|
233
|
+
# Configure Bearer authorization (JWT): ApiBearerJwt
|
|
234
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
api_instance = PharmaObservatory::SubscriptionsApi.new
|
|
238
|
+
|
|
239
|
+
begin
|
|
240
|
+
# List your subscriptions
|
|
241
|
+
result = api_instance.subscriptions_list
|
|
242
|
+
p result
|
|
243
|
+
rescue PharmaObservatory::ApiError => e
|
|
244
|
+
puts "Error when calling SubscriptionsApi->subscriptions_list: #{e}"
|
|
245
|
+
end
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
#### Using the subscriptions_list_with_http_info variant
|
|
249
|
+
|
|
250
|
+
This returns an Array which contains the response data, status code and headers.
|
|
251
|
+
|
|
252
|
+
> <Array(<SubscriptionsList200Response>, Integer, Hash)> subscriptions_list_with_http_info
|
|
253
|
+
|
|
254
|
+
```ruby
|
|
255
|
+
begin
|
|
256
|
+
# List your subscriptions
|
|
257
|
+
data, status_code, headers = api_instance.subscriptions_list_with_http_info
|
|
258
|
+
p status_code # => 2xx
|
|
259
|
+
p headers # => { ... }
|
|
260
|
+
p data # => <SubscriptionsList200Response>
|
|
261
|
+
rescue PharmaObservatory::ApiError => e
|
|
262
|
+
puts "Error when calling SubscriptionsApi->subscriptions_list_with_http_info: #{e}"
|
|
263
|
+
end
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
### Parameters
|
|
267
|
+
|
|
268
|
+
This endpoint does not need any parameter.
|
|
269
|
+
|
|
270
|
+
### Return type
|
|
271
|
+
|
|
272
|
+
[**SubscriptionsList200Response**](SubscriptionsList200Response.md)
|
|
273
|
+
|
|
274
|
+
### Authorization
|
|
275
|
+
|
|
276
|
+
[ApiBearerJwt](../README.md#ApiBearerJwt)
|
|
277
|
+
|
|
278
|
+
### HTTP request headers
|
|
279
|
+
|
|
280
|
+
- **Content-Type**: Not defined
|
|
281
|
+
- **Accept**: application/json
|
|
282
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# PharmaObservatory::SubscriptionsCreate201Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **subscription** | [**SubscriptionsCreate201ResponseSubscription**](SubscriptionsCreate201ResponseSubscription.md) | | |
|
|
8
|
+
| **created** | **Boolean** | | |
|
|
9
|
+
| **build_state** | [**ChangesList200ResponseBuildState**](ChangesList200ResponseBuildState.md) | | |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'pharmaobservatory'
|
|
15
|
+
|
|
16
|
+
instance = PharmaObservatory::SubscriptionsCreate201Response.new(
|
|
17
|
+
subscription: null,
|
|
18
|
+
created: null,
|
|
19
|
+
build_state: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# PharmaObservatory::SubscriptionsCreate201ResponseSubscription
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **Integer** | | |
|
|
8
|
+
| **label** | **String** | | |
|
|
9
|
+
| **target** | [**SubscriptionsCreate201ResponseSubscriptionTarget**](SubscriptionsCreate201ResponseSubscriptionTarget.md) | | |
|
|
10
|
+
| **event_types** | **Array<String>** | | |
|
|
11
|
+
| **paused** | **Boolean** | | |
|
|
12
|
+
| **created_at** | **String** | | |
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```ruby
|
|
17
|
+
require 'pharmaobservatory'
|
|
18
|
+
|
|
19
|
+
instance = PharmaObservatory::SubscriptionsCreate201ResponseSubscription.new(
|
|
20
|
+
id: null,
|
|
21
|
+
label: null,
|
|
22
|
+
target: null,
|
|
23
|
+
event_types: null,
|
|
24
|
+
paused: null,
|
|
25
|
+
created_at: null
|
|
26
|
+
)
|
|
27
|
+
```
|
|
28
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# PharmaObservatory::SubscriptionsCreate201ResponseSubscriptionTarget
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **kind** | **String** | | |
|
|
8
|
+
| **object_type** | **String** | | |
|
|
9
|
+
| **entity_id** | **String** | | |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'pharmaobservatory'
|
|
15
|
+
|
|
16
|
+
instance = PharmaObservatory::SubscriptionsCreate201ResponseSubscriptionTarget.new(
|
|
17
|
+
kind: null,
|
|
18
|
+
object_type: null,
|
|
19
|
+
entity_id: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# PharmaObservatory::SubscriptionsCreateRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **object_type** | **String** | | |
|
|
8
|
+
| **entity_id** | **String** | | |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'pharmaobservatory'
|
|
14
|
+
|
|
15
|
+
instance = PharmaObservatory::SubscriptionsCreateRequest.new(
|
|
16
|
+
object_type: null,
|
|
17
|
+
entity_id: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# PharmaObservatory::SubscriptionsDelete200Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **deleted** | **Boolean** | | |
|
|
8
|
+
| **id** | **Integer** | | |
|
|
9
|
+
| **label** | **String** | | |
|
|
10
|
+
| **build_state** | [**ChangesList200ResponseBuildState**](ChangesList200ResponseBuildState.md) | | |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'pharmaobservatory'
|
|
16
|
+
|
|
17
|
+
instance = PharmaObservatory::SubscriptionsDelete200Response.new(
|
|
18
|
+
deleted: null,
|
|
19
|
+
id: null,
|
|
20
|
+
label: null,
|
|
21
|
+
build_state: null
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# PharmaObservatory::SubscriptionsList200Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **subscriptions** | [**Array<SubscriptionsList200ResponseSubscriptionsInner>**](SubscriptionsList200ResponseSubscriptionsInner.md) | | |
|
|
8
|
+
| **count** | **Integer** | | |
|
|
9
|
+
| **build_state** | [**ChangesList200ResponseBuildState**](ChangesList200ResponseBuildState.md) | | |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'pharmaobservatory'
|
|
15
|
+
|
|
16
|
+
instance = PharmaObservatory::SubscriptionsList200Response.new(
|
|
17
|
+
subscriptions: null,
|
|
18
|
+
count: null,
|
|
19
|
+
build_state: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# PharmaObservatory::SubscriptionsList200ResponseSubscriptionsInner
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **Integer** | | |
|
|
8
|
+
| **label** | **String** | | |
|
|
9
|
+
| **target** | [**SubscriptionsList200ResponseSubscriptionsInnerTarget**](SubscriptionsList200ResponseSubscriptionsInnerTarget.md) | | |
|
|
10
|
+
| **event_types** | **Array<String>** | | |
|
|
11
|
+
| **paused** | **Boolean** | | |
|
|
12
|
+
| **created_at** | **String** | | |
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```ruby
|
|
17
|
+
require 'pharmaobservatory'
|
|
18
|
+
|
|
19
|
+
instance = PharmaObservatory::SubscriptionsList200ResponseSubscriptionsInner.new(
|
|
20
|
+
id: null,
|
|
21
|
+
label: null,
|
|
22
|
+
target: null,
|
|
23
|
+
event_types: null,
|
|
24
|
+
paused: null,
|
|
25
|
+
created_at: null
|
|
26
|
+
)
|
|
27
|
+
```
|
|
28
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# PharmaObservatory::SubscriptionsList200ResponseSubscriptionsInnerTarget
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **kind** | **String** | | |
|
|
8
|
+
| **dataset** | **String** | | [optional] |
|
|
9
|
+
| **filters** | [**SubscriptionsList200ResponseSubscriptionsInnerTargetFilters**](SubscriptionsList200ResponseSubscriptionsInnerTargetFilters.md) | | [optional] |
|
|
10
|
+
| **object_type** | **String** | | [optional] |
|
|
11
|
+
| **entity_id** | **String** | | [optional] |
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```ruby
|
|
16
|
+
require 'pharmaobservatory'
|
|
17
|
+
|
|
18
|
+
instance = PharmaObservatory::SubscriptionsList200ResponseSubscriptionsInnerTarget.new(
|
|
19
|
+
kind: null,
|
|
20
|
+
dataset: null,
|
|
21
|
+
filters: null,
|
|
22
|
+
object_type: null,
|
|
23
|
+
entity_id: null
|
|
24
|
+
)
|
|
25
|
+
```
|
|
26
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# PharmaObservatory::SubscriptionsList200ResponseSubscriptionsInnerTargetFilters
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **phase** | **String** | | |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'pharmaobservatory'
|
|
13
|
+
|
|
14
|
+
instance = PharmaObservatory::SubscriptionsList200ResponseSubscriptionsInnerTargetFilters.new(
|
|
15
|
+
phase: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
|
@@ -656,6 +656,97 @@ module PharmaObservatory
|
|
|
656
656
|
return data, status_code, headers
|
|
657
657
|
end
|
|
658
658
|
|
|
659
|
+
# Company asset collisions
|
|
660
|
+
# @param id [String]
|
|
661
|
+
# @param [Hash] opts the optional parameters
|
|
662
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
663
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
664
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
665
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
666
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
667
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
668
|
+
# @return [CompanyAssetCollisionsResponse]
|
|
669
|
+
def companies_company_asset_collisions(id, opts = {})
|
|
670
|
+
data, _status_code, _headers = companies_company_asset_collisions_with_http_info(id, opts)
|
|
671
|
+
data
|
|
672
|
+
end
|
|
673
|
+
|
|
674
|
+
# Company asset collisions
|
|
675
|
+
# @param id [String]
|
|
676
|
+
# @param [Hash] opts the optional parameters
|
|
677
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
678
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
679
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
680
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
681
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
682
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
683
|
+
# @return [Array<(CompanyAssetCollisionsResponse, Integer, Hash)>] CompanyAssetCollisionsResponse data, response status code and response headers
|
|
684
|
+
def companies_company_asset_collisions_with_http_info(id, opts = {})
|
|
685
|
+
if @api_client.config.debugging
|
|
686
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_asset_collisions ...'
|
|
687
|
+
end
|
|
688
|
+
# verify the required parameter 'id' is set
|
|
689
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
690
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_asset_collisions"
|
|
691
|
+
end
|
|
692
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
693
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_asset_collisions, must be smaller than or equal to 500.'
|
|
694
|
+
end
|
|
695
|
+
|
|
696
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
697
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_asset_collisions, must be greater than or equal to 1.'
|
|
698
|
+
end
|
|
699
|
+
|
|
700
|
+
allowable_values = ["company", "group"]
|
|
701
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
702
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
703
|
+
end
|
|
704
|
+
# resource path
|
|
705
|
+
local_var_path = '/api/v1/companies/{id}/company_asset_collisions'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
706
|
+
|
|
707
|
+
# query parameters
|
|
708
|
+
query_params = opts[:query_params] || {}
|
|
709
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
710
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
711
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
712
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
713
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
714
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
715
|
+
|
|
716
|
+
# header parameters
|
|
717
|
+
header_params = opts[:header_params] || {}
|
|
718
|
+
# HTTP header 'Accept' (if needed)
|
|
719
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
720
|
+
|
|
721
|
+
# form parameters
|
|
722
|
+
form_params = opts[:form_params] || {}
|
|
723
|
+
|
|
724
|
+
# http body (model)
|
|
725
|
+
post_body = opts[:debug_body]
|
|
726
|
+
|
|
727
|
+
# return_type
|
|
728
|
+
return_type = opts[:debug_return_type] || 'CompanyAssetCollisionsResponse'
|
|
729
|
+
|
|
730
|
+
# auth_names
|
|
731
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
732
|
+
|
|
733
|
+
new_options = opts.merge(
|
|
734
|
+
:operation => :"CompaniesApi.companies_company_asset_collisions",
|
|
735
|
+
:header_params => header_params,
|
|
736
|
+
:query_params => query_params,
|
|
737
|
+
:form_params => form_params,
|
|
738
|
+
:body => post_body,
|
|
739
|
+
:auth_names => auth_names,
|
|
740
|
+
:return_type => return_type
|
|
741
|
+
)
|
|
742
|
+
|
|
743
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
744
|
+
if @api_client.config.debugging
|
|
745
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_company_asset_collisions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
746
|
+
end
|
|
747
|
+
return data, status_code, headers
|
|
748
|
+
end
|
|
749
|
+
|
|
659
750
|
# Company assets (approved and marketed drugs)
|
|
660
751
|
# @param id [String]
|
|
661
752
|
# @param [Hash] opts the optional parameters
|
|
@@ -1020,7 +1111,7 @@ module PharmaObservatory
|
|
|
1020
1111
|
return data, status_code, headers
|
|
1021
1112
|
end
|
|
1022
1113
|
|
|
1023
|
-
# Company
|
|
1114
|
+
# Company competitors by asset collision
|
|
1024
1115
|
# @param id [String]
|
|
1025
1116
|
# @param [Hash] opts the optional parameters
|
|
1026
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.
|
|
@@ -1035,7 +1126,7 @@ module PharmaObservatory
|
|
|
1035
1126
|
data
|
|
1036
1127
|
end
|
|
1037
1128
|
|
|
1038
|
-
# Company
|
|
1129
|
+
# Company competitors by asset collision
|
|
1039
1130
|
# @param id [String]
|
|
1040
1131
|
# @param [Hash] opts the optional parameters
|
|
1041
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.
|