lamp-core-lst 2025.11.1-3.basic
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.
- package/.github/workflows/publish.yml +34 -0
- package/LICENSE.md +29 -0
- package/MANUAL.md +26 -0
- package/README.md +126 -0
- package/cli.js +2 -0
- package/dist/index.d.ts +64 -0
- package/dist/index.js +311 -0
- package/dist/model/Activity.d.ts +81 -0
- package/dist/model/Activity.js +30 -0
- package/dist/model/ActivityEvent.d.ts +51 -0
- package/dist/model/ActivityEvent.js +21 -0
- package/dist/model/ActivitySpec.d.ts +38 -0
- package/dist/model/ActivitySpec.js +12 -0
- package/dist/model/Credential.d.ts +21 -0
- package/dist/model/Credential.js +12 -0
- package/dist/model/DynamicAttachment.d.ts +34 -0
- package/dist/model/DynamicAttachment.js +12 -0
- package/dist/model/Participant.d.ts +30 -0
- package/dist/model/Participant.js +12 -0
- package/dist/model/Researcher.d.ts +27 -0
- package/dist/model/Researcher.js +12 -0
- package/dist/model/ResearcherSettings.d.ts +57 -0
- package/dist/model/ResearcherSettings.js +12 -0
- package/dist/model/Sensor.d.ts +22 -0
- package/dist/model/Sensor.js +12 -0
- package/dist/model/SensorEvent.d.ts +18 -0
- package/dist/model/SensorEvent.js +12 -0
- package/dist/model/SensorSpec.d.ts +13 -0
- package/dist/model/SensorSpec.js +12 -0
- package/dist/model/Study.d.ts +24 -0
- package/dist/model/Study.js +12 -0
- package/dist/model/Type.d.ts +56 -0
- package/dist/model/Type.js +30 -0
- package/dist/model/index.d.ts +12 -0
- package/dist/model/index.js +24 -0
- package/dist/service/API.service.d.ts +12 -0
- package/dist/service/API.service.js +82 -0
- package/dist/service/Activity.service.d.ts +101 -0
- package/dist/service/Activity.service.js +756 -0
- package/dist/service/ActivityEvent.service.d.ts +46 -0
- package/dist/service/ActivityEvent.service.js +303 -0
- package/dist/service/ActivitySpec.service.d.ts +31 -0
- package/dist/service/ActivitySpec.service.js +173 -0
- package/dist/service/Credential.service.d.ts +38 -0
- package/dist/service/Credential.service.js +319 -0
- package/dist/service/Demo.d.ts +14 -0
- package/dist/service/Demo.js +24 -0
- package/dist/service/Fetch.d.ts +30 -0
- package/dist/service/Fetch.js +245 -0
- package/dist/service/Participant.service.d.ts +42 -0
- package/dist/service/Participant.service.js +312 -0
- package/dist/service/Researcher.service.d.ts +34 -0
- package/dist/service/Researcher.service.js +252 -0
- package/dist/service/ResearcherSettings.service.d.ts +16 -0
- package/dist/service/ResearcherSettings.service.js +114 -0
- package/dist/service/Sensor.service.d.ts +47 -0
- package/dist/service/Sensor.service.js +372 -0
- package/dist/service/SensorEvent.service.d.ts +44 -0
- package/dist/service/SensorEvent.service.js +302 -0
- package/dist/service/SensorSpec.service.d.ts +31 -0
- package/dist/service/SensorSpec.service.js +171 -0
- package/dist/service/Study.service.d.ts +42 -0
- package/dist/service/Study.service.js +286 -0
- package/dist/service/Type.service.d.ts +48 -0
- package/dist/service/Type.service.js +352 -0
- package/dist/service/index.d.ts +13 -0
- package/dist/service/index.js +25 -0
- package/docs/APIApi.md +82 -0
- package/docs/AccessCitation.md +11 -0
- package/docs/Activity.md +13 -0
- package/docs/ActivityApi.md +356 -0
- package/docs/ActivityEvent.md +13 -0
- package/docs/ActivityEventApi.md +251 -0
- package/docs/ActivitySpec.md +14 -0
- package/docs/ActivitySpecApi.md +222 -0
- package/docs/Credential.md +12 -0
- package/docs/CredentialApi.md +175 -0
- package/docs/Document.md +9 -0
- package/docs/DurationInterval.md +11 -0
- package/docs/DurationIntervalLegacy.md +10 -0
- package/docs/DynamicAttachment.md +14 -0
- package/docs/Error.md +8 -0
- package/docs/Metadata.md +8 -0
- package/docs/Participant.md +14 -0
- package/docs/ParticipantApi.md +312 -0
- package/docs/Researcher.md +12 -0
- package/docs/ResearcherApi.md +223 -0
- package/docs/Sensor.md +12 -0
- package/docs/SensorApi.md +356 -0
- package/docs/SensorEvent.md +11 -0
- package/docs/SensorEventApi.md +250 -0
- package/docs/SensorSpec.md +10 -0
- package/docs/SensorSpecApi.md +222 -0
- package/docs/Study.md +11 -0
- package/docs/StudyApi.md +268 -0
- package/docs/TemporalSlice.md +13 -0
- package/docs/TypeApi.md +274 -0
- package/package.json +44 -0
- package/src/index.ts +256 -0
- package/src/model/Activity.ts +93 -0
- package/src/model/ActivityEvent.ts +63 -0
- package/src/model/ActivitySpec.ts +45 -0
- package/src/model/Credential.ts +26 -0
- package/src/model/DynamicAttachment.ts +42 -0
- package/src/model/Participant.ts +37 -0
- package/src/model/Researcher.ts +33 -0
- package/src/model/ResearcherSettings.ts +65 -0
- package/src/model/Sensor.ts +27 -0
- package/src/model/SensorEvent.ts +22 -0
- package/src/model/SensorSpec.ts +16 -0
- package/src/model/Study.ts +29 -0
- package/src/model/Type.ts +68 -0
- package/src/model/index.ts +12 -0
- package/src/service/API.service.ts +29 -0
- package/src/service/Activity.service.ts +625 -0
- package/src/service/ActivityEvent.service.ts +244 -0
- package/src/service/ActivitySpec.service.ts +98 -0
- package/src/service/Credential.service.ts +268 -0
- package/src/service/Demo.ts +21 -0
- package/src/service/Fetch.ts +187 -0
- package/src/service/Participant.service.ts +217 -0
- package/src/service/Researcher.service.ts +147 -0
- package/src/service/ResearcherSettings.service.ts +62 -0
- package/src/service/Sensor.service.ts +256 -0
- package/src/service/SensorEvent.service.ts +239 -0
- package/src/service/SensorSpec.service.ts +96 -0
- package/src/service/Study.service.ts +187 -0
- package/src/service/Type.service.ts +297 -0
- package/src/service/index.ts +13 -0
- package/tsconfig.json +29 -0
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
# LAMP.Participant
|
|
2
|
+
|
|
3
|
+
Method | HTTP request | Description
|
|
4
|
+
------------- | ------------- | -------------
|
|
5
|
+
[**all**](ParticipantApi.md#all) | **GET** /participant | Get the set of all participants.
|
|
6
|
+
[**allByResearcher**](ParticipantApi.md#allByResearcher) | **GET** /researcher/{researcher_id}/participant | Get the set of all participants under a single researcher.
|
|
7
|
+
[**allByStudy**](ParticipantApi.md#allByStudy) | **GET** /study/{study_id}/participant | Get the set of all participants in a single study.
|
|
8
|
+
[**create**](ParticipantApi.md#create) | **POST** /study/{study_id}/participant | Create a new Participant for the given Study.
|
|
9
|
+
[**delete**](ParticipantApi.md#delete) | **DELETE** /participant/{participant_id} | Delete a participant AND all owned data or event streams.
|
|
10
|
+
[**update**](ParticipantApi.md#update) | **PUT** /participant/{participant_id} | Update a Participant's settings.
|
|
11
|
+
[**view**](ParticipantApi.md#view) | **GET** /participant/{participant_id} | Get a single participant, by identifier.
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# **all**
|
|
15
|
+
> array[object] all()
|
|
16
|
+
|
|
17
|
+
Get the set of all participants.
|
|
18
|
+
|
|
19
|
+
Get the set of all participants.
|
|
20
|
+
|
|
21
|
+
### Example
|
|
22
|
+
```javascript
|
|
23
|
+
import LAMP from 'lamp-core'
|
|
24
|
+
|
|
25
|
+
// Get the set of all participants.
|
|
26
|
+
const result = LAMP.Participant.all()
|
|
27
|
+
console.dir(result)
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### Parameters
|
|
31
|
+
|
|
32
|
+
Name | Type | Description | Notes
|
|
33
|
+
------------- | ------------- | ------------- | -------------
|
|
34
|
+
**transform** | **string**| | [optional]
|
|
35
|
+
|
|
36
|
+
### Return type
|
|
37
|
+
|
|
38
|
+
**array[object]**
|
|
39
|
+
|
|
40
|
+
### HTTP request headers
|
|
41
|
+
|
|
42
|
+
- **Content-Type**: `application/json`
|
|
43
|
+
- **Accept**: `application/json`
|
|
44
|
+
|
|
45
|
+
### HTTP response details
|
|
46
|
+
| Status code | Description | Response headers |
|
|
47
|
+
|-------------|-------------|------------------|
|
|
48
|
+
| **200** | 200 Success | - |
|
|
49
|
+
| **400** | 400 Bad Request | - |
|
|
50
|
+
| **403** | 403 Authorization Failed | - |
|
|
51
|
+
| **404** | 404 Not Found | - |
|
|
52
|
+
| **0** | 500 Internal Error | - |
|
|
53
|
+
|
|
54
|
+
# **allByResearcher**
|
|
55
|
+
> array[object] allByResearcher(researcher_id)
|
|
56
|
+
|
|
57
|
+
Get the set of all participants under a single researcher.
|
|
58
|
+
|
|
59
|
+
Get the set of all participants under a single researcher.
|
|
60
|
+
|
|
61
|
+
### Example
|
|
62
|
+
```javascript
|
|
63
|
+
import LAMP from 'lamp-core'
|
|
64
|
+
|
|
65
|
+
let researcher_id = 'researcher_id_example' // string
|
|
66
|
+
|
|
67
|
+
// Get the set of all participants under a single researcher.
|
|
68
|
+
const result = LAMP.Participant.allByResearcher(researcher_id)
|
|
69
|
+
console.dir(result)
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### Parameters
|
|
73
|
+
|
|
74
|
+
Name | Type | Description | Notes
|
|
75
|
+
------------- | ------------- | ------------- | -------------
|
|
76
|
+
**researcher_id** | **string**| |
|
|
77
|
+
**transform** | **string**| | [optional]
|
|
78
|
+
|
|
79
|
+
### Return type
|
|
80
|
+
|
|
81
|
+
**array[object]**
|
|
82
|
+
|
|
83
|
+
### HTTP request headers
|
|
84
|
+
|
|
85
|
+
- **Content-Type**: `application/json`
|
|
86
|
+
- **Accept**: `application/json`
|
|
87
|
+
|
|
88
|
+
### HTTP response details
|
|
89
|
+
| Status code | Description | Response headers |
|
|
90
|
+
|-------------|-------------|------------------|
|
|
91
|
+
| **200** | 200 Success | - |
|
|
92
|
+
| **400** | 400 Bad Request | - |
|
|
93
|
+
| **403** | 403 Authorization Failed | - |
|
|
94
|
+
| **404** | 404 Not Found | - |
|
|
95
|
+
| **0** | 500 Internal Error | - |
|
|
96
|
+
|
|
97
|
+
# **allByStudy**
|
|
98
|
+
> array[object] allByStudy(study_id)
|
|
99
|
+
|
|
100
|
+
Get the set of all participants in a single study.
|
|
101
|
+
|
|
102
|
+
Get the set of all participants in a single study.
|
|
103
|
+
|
|
104
|
+
### Example
|
|
105
|
+
```javascript
|
|
106
|
+
import LAMP from 'lamp-core'
|
|
107
|
+
|
|
108
|
+
let study_id = 'study_id_example' // string
|
|
109
|
+
|
|
110
|
+
// Get the set of all participants in a single study.
|
|
111
|
+
const result = LAMP.Participant.allByStudy(study_id)
|
|
112
|
+
console.dir(result)
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### Parameters
|
|
116
|
+
|
|
117
|
+
Name | Type | Description | Notes
|
|
118
|
+
------------- | ------------- | ------------- | -------------
|
|
119
|
+
**study_id** | **string**| |
|
|
120
|
+
**transform** | **string**| | [optional]
|
|
121
|
+
|
|
122
|
+
### Return type
|
|
123
|
+
|
|
124
|
+
**array[object]**
|
|
125
|
+
|
|
126
|
+
### HTTP request headers
|
|
127
|
+
|
|
128
|
+
- **Content-Type**: `application/json`
|
|
129
|
+
- **Accept**: `application/json`
|
|
130
|
+
|
|
131
|
+
### HTTP response details
|
|
132
|
+
| Status code | Description | Response headers |
|
|
133
|
+
|-------------|-------------|------------------|
|
|
134
|
+
| **200** | 200 Success | - |
|
|
135
|
+
| **400** | 400 Bad Request | - |
|
|
136
|
+
| **403** | 403 Authorization Failed | - |
|
|
137
|
+
| **404** | 404 Not Found | - |
|
|
138
|
+
| **0** | 500 Internal Error | - |
|
|
139
|
+
|
|
140
|
+
# **create**
|
|
141
|
+
> character create(study_id, participant)
|
|
142
|
+
|
|
143
|
+
Create a new Participant for the given Study.
|
|
144
|
+
|
|
145
|
+
Create a new Participant for the given Study.
|
|
146
|
+
|
|
147
|
+
### Example
|
|
148
|
+
```javascript
|
|
149
|
+
import LAMP from 'lamp-core'
|
|
150
|
+
|
|
151
|
+
let study_id = 'study_id_example' // string
|
|
152
|
+
let participant = Participant.new("id_example", "study_code_example", "language_example", "theme_example", "emergency_contact_example", "helpline_example") // Participant
|
|
153
|
+
|
|
154
|
+
// Create a new Participant for the given Study.
|
|
155
|
+
const result = LAMP.Participant.create(study_id, participant)
|
|
156
|
+
console.dir(result)
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
### Parameters
|
|
160
|
+
|
|
161
|
+
Name | Type | Description | Notes
|
|
162
|
+
------------- | ------------- | ------------- | -------------
|
|
163
|
+
**study_id** | **string**| |
|
|
164
|
+
**participant** | [**Participant**](Participant.md)| |
|
|
165
|
+
|
|
166
|
+
### Return type
|
|
167
|
+
|
|
168
|
+
**string**
|
|
169
|
+
|
|
170
|
+
### HTTP request headers
|
|
171
|
+
|
|
172
|
+
- **Content-Type**: `application/json`
|
|
173
|
+
- **Accept**: `application/json`
|
|
174
|
+
|
|
175
|
+
### HTTP response details
|
|
176
|
+
| Status code | Description | Response headers |
|
|
177
|
+
|-------------|-------------|------------------|
|
|
178
|
+
| **200** | 200 Success | - |
|
|
179
|
+
| **400** | 400 Bad Request | - |
|
|
180
|
+
| **403** | 403 Authorization Failed | - |
|
|
181
|
+
| **404** | 404 Not Found | - |
|
|
182
|
+
| **0** | 500 Internal Error | - |
|
|
183
|
+
|
|
184
|
+
# **delete**
|
|
185
|
+
> character delete(participant_id)
|
|
186
|
+
|
|
187
|
+
Delete a participant AND all owned data or event streams.
|
|
188
|
+
|
|
189
|
+
Delete a participant AND all owned data or event streams.
|
|
190
|
+
|
|
191
|
+
### Example
|
|
192
|
+
```javascript
|
|
193
|
+
import LAMP from 'lamp-core'
|
|
194
|
+
|
|
195
|
+
let participant_id = 'participant_id_example' // string
|
|
196
|
+
|
|
197
|
+
// Delete a participant AND all owned data or event streams.
|
|
198
|
+
const result = LAMP.Participant.delete(participant_id)
|
|
199
|
+
console.dir(result)
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
### Parameters
|
|
203
|
+
|
|
204
|
+
Name | Type | Description | Notes
|
|
205
|
+
------------- | ------------- | ------------- | -------------
|
|
206
|
+
**participant_id** | **string**| |
|
|
207
|
+
|
|
208
|
+
### Return type
|
|
209
|
+
|
|
210
|
+
**string**
|
|
211
|
+
|
|
212
|
+
### HTTP request headers
|
|
213
|
+
|
|
214
|
+
- **Content-Type**: `application/json`
|
|
215
|
+
- **Accept**: `application/json`
|
|
216
|
+
|
|
217
|
+
### HTTP response details
|
|
218
|
+
| Status code | Description | Response headers |
|
|
219
|
+
|-------------|-------------|------------------|
|
|
220
|
+
| **200** | 200 Success | - |
|
|
221
|
+
| **400** | 400 Bad Request | - |
|
|
222
|
+
| **403** | 403 Authorization Failed | - |
|
|
223
|
+
| **404** | 404 Not Found | - |
|
|
224
|
+
| **0** | 500 Internal Error | - |
|
|
225
|
+
|
|
226
|
+
# **update**
|
|
227
|
+
> character update(participant_id, participant)
|
|
228
|
+
|
|
229
|
+
Update a Participant's settings.
|
|
230
|
+
|
|
231
|
+
Update a Participant's settings.
|
|
232
|
+
|
|
233
|
+
### Example
|
|
234
|
+
```javascript
|
|
235
|
+
import LAMP from 'lamp-core'
|
|
236
|
+
|
|
237
|
+
let participant_id = 'participant_id_example' // string
|
|
238
|
+
let participant = Participant.new("id_example", "study_code_example", "language_example", "theme_example", "emergency_contact_example", "helpline_example") // Participant
|
|
239
|
+
|
|
240
|
+
// Update a Participant's settings.
|
|
241
|
+
const result = LAMP.Participant.update(participant_id, participant)
|
|
242
|
+
console.dir(result)
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
### Parameters
|
|
246
|
+
|
|
247
|
+
Name | Type | Description | Notes
|
|
248
|
+
------------- | ------------- | ------------- | -------------
|
|
249
|
+
**participant_id** | **string**| |
|
|
250
|
+
**participant** | [**Participant**](Participant.md)| |
|
|
251
|
+
|
|
252
|
+
### Return type
|
|
253
|
+
|
|
254
|
+
**string**
|
|
255
|
+
|
|
256
|
+
### HTTP request headers
|
|
257
|
+
|
|
258
|
+
- **Content-Type**: `application/json`
|
|
259
|
+
- **Accept**: `application/json`
|
|
260
|
+
|
|
261
|
+
### HTTP response details
|
|
262
|
+
| Status code | Description | Response headers |
|
|
263
|
+
|-------------|-------------|------------------|
|
|
264
|
+
| **200** | 200 Success | - |
|
|
265
|
+
| **400** | 400 Bad Request | - |
|
|
266
|
+
| **403** | 403 Authorization Failed | - |
|
|
267
|
+
| **404** | 404 Not Found | - |
|
|
268
|
+
| **0** | 500 Internal Error | - |
|
|
269
|
+
|
|
270
|
+
# **view**
|
|
271
|
+
> array[object] view(participant_id)
|
|
272
|
+
|
|
273
|
+
Get a single participant, by identifier.
|
|
274
|
+
|
|
275
|
+
Get a single participant, by identifier.
|
|
276
|
+
|
|
277
|
+
### Example
|
|
278
|
+
```javascript
|
|
279
|
+
import LAMP from 'lamp-core'
|
|
280
|
+
|
|
281
|
+
let participant_id = 'participant_id_example' // string
|
|
282
|
+
|
|
283
|
+
// Get a single participant, by identifier.
|
|
284
|
+
const result = LAMP.Participant.view(participant_id)
|
|
285
|
+
console.dir(result)
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
### Parameters
|
|
289
|
+
|
|
290
|
+
Name | Type | Description | Notes
|
|
291
|
+
------------- | ------------- | ------------- | -------------
|
|
292
|
+
**participant_id** | **string**| |
|
|
293
|
+
**transform** | **string**| | [optional]
|
|
294
|
+
|
|
295
|
+
### Return type
|
|
296
|
+
|
|
297
|
+
**array[object]**
|
|
298
|
+
|
|
299
|
+
### HTTP request headers
|
|
300
|
+
|
|
301
|
+
- **Content-Type**: `application/json`
|
|
302
|
+
- **Accept**: `application/json`
|
|
303
|
+
|
|
304
|
+
### HTTP response details
|
|
305
|
+
| Status code | Description | Response headers |
|
|
306
|
+
|-------------|-------------|------------------|
|
|
307
|
+
| **200** | 200 Success | - |
|
|
308
|
+
| **400** | 400 Bad Request | - |
|
|
309
|
+
| **403** | 403 Authorization Failed | - |
|
|
310
|
+
| **404** | 404 Not Found | - |
|
|
311
|
+
| **0** | 500 Internal Error | - |
|
|
312
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# LAMP.Researcher
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**id** | **string** | A globally unique reference for objects. | [optional]
|
|
7
|
+
**name** | **string** | The name of the researcher. | [optional]
|
|
8
|
+
**email** | **string** | The email address of the researcher. | [optional]
|
|
9
|
+
**address** | **string** | The physical address of the researcher. | [optional]
|
|
10
|
+
**studies** | **array[object]** | The set of all studies conducted by the researcher. | [optional]
|
|
11
|
+
|
|
12
|
+
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
# LAMP.Researcher
|
|
2
|
+
|
|
3
|
+
Method | HTTP request | Description
|
|
4
|
+
------------- | ------------- | -------------
|
|
5
|
+
[**all**](ResearcherApi.md#all) | **GET** /researcher | Get the set of all researchers.
|
|
6
|
+
[**create**](ResearcherApi.md#create) | **POST** /researcher | Create a new Researcher.
|
|
7
|
+
[**delete**](ResearcherApi.md#delete) | **DELETE** /researcher/{researcher_id} | Delete a researcher.
|
|
8
|
+
[**update**](ResearcherApi.md#update) | **PUT** /researcher/{researcher_id} | Update a Researcher's settings.
|
|
9
|
+
[**view**](ResearcherApi.md#view) | **GET** /researcher/{researcher_id} | Get a single researcher, by identifier.
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
# **all**
|
|
13
|
+
> array[object] all()
|
|
14
|
+
|
|
15
|
+
Get the set of all researchers.
|
|
16
|
+
|
|
17
|
+
Get the set of all researchers.
|
|
18
|
+
|
|
19
|
+
### Example
|
|
20
|
+
```javascript
|
|
21
|
+
import LAMP from 'lamp-core'
|
|
22
|
+
|
|
23
|
+
// Get the set of all researchers.
|
|
24
|
+
const result = LAMP.Researcher.all()
|
|
25
|
+
console.dir(result)
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### Parameters
|
|
29
|
+
|
|
30
|
+
Name | Type | Description | Notes
|
|
31
|
+
------------- | ------------- | ------------- | -------------
|
|
32
|
+
**transform** | **string**| | [optional]
|
|
33
|
+
|
|
34
|
+
### Return type
|
|
35
|
+
|
|
36
|
+
**array[object]**
|
|
37
|
+
|
|
38
|
+
### HTTP request headers
|
|
39
|
+
|
|
40
|
+
- **Content-Type**: `application/json`
|
|
41
|
+
- **Accept**: `application/json`
|
|
42
|
+
|
|
43
|
+
### HTTP response details
|
|
44
|
+
| Status code | Description | Response headers |
|
|
45
|
+
|-------------|-------------|------------------|
|
|
46
|
+
| **200** | 200 Success | - |
|
|
47
|
+
| **400** | 400 Bad Request | - |
|
|
48
|
+
| **403** | 403 Authorization Failed | - |
|
|
49
|
+
| **404** | 404 Not Found | - |
|
|
50
|
+
| **0** | 500 Internal Error | - |
|
|
51
|
+
|
|
52
|
+
# **create**
|
|
53
|
+
> character create(researcher)
|
|
54
|
+
|
|
55
|
+
Create a new Researcher.
|
|
56
|
+
|
|
57
|
+
Create a new Researcher.
|
|
58
|
+
|
|
59
|
+
### Example
|
|
60
|
+
```javascript
|
|
61
|
+
import LAMP from 'lamp-core'
|
|
62
|
+
|
|
63
|
+
let researcher = Researcher.new("id_example", "name_example", "email_example", "address_example", list(123)) // Researcher
|
|
64
|
+
|
|
65
|
+
// Create a new Researcher.
|
|
66
|
+
const result = LAMP.Researcher.create(researcher)
|
|
67
|
+
console.dir(result)
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### Parameters
|
|
71
|
+
|
|
72
|
+
Name | Type | Description | Notes
|
|
73
|
+
------------- | ------------- | ------------- | -------------
|
|
74
|
+
**researcher** | [**Researcher**](Researcher.md)| |
|
|
75
|
+
|
|
76
|
+
### Return type
|
|
77
|
+
|
|
78
|
+
**string**
|
|
79
|
+
|
|
80
|
+
### HTTP request headers
|
|
81
|
+
|
|
82
|
+
- **Content-Type**: `application/json`
|
|
83
|
+
- **Accept**: `application/json`
|
|
84
|
+
|
|
85
|
+
### HTTP response details
|
|
86
|
+
| Status code | Description | Response headers |
|
|
87
|
+
|-------------|-------------|------------------|
|
|
88
|
+
| **200** | 200 Success | - |
|
|
89
|
+
| **400** | 400 Bad Request | - |
|
|
90
|
+
| **403** | 403 Authorization Failed | - |
|
|
91
|
+
| **404** | 404 Not Found | - |
|
|
92
|
+
| **0** | 500 Internal Error | - |
|
|
93
|
+
|
|
94
|
+
# **delete**
|
|
95
|
+
> character delete(researcher_id)
|
|
96
|
+
|
|
97
|
+
Delete a researcher.
|
|
98
|
+
|
|
99
|
+
Delete a researcher.
|
|
100
|
+
|
|
101
|
+
### Example
|
|
102
|
+
```javascript
|
|
103
|
+
import LAMP from 'lamp-core'
|
|
104
|
+
|
|
105
|
+
let researcher_id = 'researcher_id_example' // string
|
|
106
|
+
|
|
107
|
+
// Delete a researcher.
|
|
108
|
+
const result = LAMP.Researcher.delete(researcher_id)
|
|
109
|
+
console.dir(result)
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
### Parameters
|
|
113
|
+
|
|
114
|
+
Name | Type | Description | Notes
|
|
115
|
+
------------- | ------------- | ------------- | -------------
|
|
116
|
+
**researcher_id** | **string**| |
|
|
117
|
+
|
|
118
|
+
### Return type
|
|
119
|
+
|
|
120
|
+
**string**
|
|
121
|
+
|
|
122
|
+
### HTTP request headers
|
|
123
|
+
|
|
124
|
+
- **Content-Type**: `application/json`
|
|
125
|
+
- **Accept**: `application/json`
|
|
126
|
+
|
|
127
|
+
### HTTP response details
|
|
128
|
+
| Status code | Description | Response headers |
|
|
129
|
+
|-------------|-------------|------------------|
|
|
130
|
+
| **200** | 200 Success | - |
|
|
131
|
+
| **400** | 400 Bad Request | - |
|
|
132
|
+
| **403** | 403 Authorization Failed | - |
|
|
133
|
+
| **404** | 404 Not Found | - |
|
|
134
|
+
| **0** | 500 Internal Error | - |
|
|
135
|
+
|
|
136
|
+
# **update**
|
|
137
|
+
> character update(researcher_id, researcher)
|
|
138
|
+
|
|
139
|
+
Update a Researcher's settings.
|
|
140
|
+
|
|
141
|
+
Update a Researcher's settings.
|
|
142
|
+
|
|
143
|
+
### Example
|
|
144
|
+
```javascript
|
|
145
|
+
import LAMP from 'lamp-core'
|
|
146
|
+
|
|
147
|
+
let researcher_id = 'researcher_id_example' // string
|
|
148
|
+
let researcher = Researcher.new("id_example", "name_example", "email_example", "address_example", list(123)) // Researcher
|
|
149
|
+
|
|
150
|
+
// Update a Researcher's settings.
|
|
151
|
+
const result = LAMP.Researcher.update(researcher_id, researcher)
|
|
152
|
+
console.dir(result)
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
### Parameters
|
|
156
|
+
|
|
157
|
+
Name | Type | Description | Notes
|
|
158
|
+
------------- | ------------- | ------------- | -------------
|
|
159
|
+
**researcher_id** | **string**| |
|
|
160
|
+
**researcher** | [**Researcher**](Researcher.md)| |
|
|
161
|
+
**transform** | **string**| | [optional]
|
|
162
|
+
|
|
163
|
+
### Return type
|
|
164
|
+
|
|
165
|
+
**string**
|
|
166
|
+
|
|
167
|
+
### HTTP request headers
|
|
168
|
+
|
|
169
|
+
- **Content-Type**: `application/json`
|
|
170
|
+
- **Accept**: `application/json`
|
|
171
|
+
|
|
172
|
+
### HTTP response details
|
|
173
|
+
| Status code | Description | Response headers |
|
|
174
|
+
|-------------|-------------|------------------|
|
|
175
|
+
| **200** | 200 Success | - |
|
|
176
|
+
| **400** | 400 Bad Request | - |
|
|
177
|
+
| **403** | 403 Authorization Failed | - |
|
|
178
|
+
| **404** | 404 Not Found | - |
|
|
179
|
+
| **0** | 500 Internal Error | - |
|
|
180
|
+
|
|
181
|
+
# **view**
|
|
182
|
+
> array[object] view(researcher_id)
|
|
183
|
+
|
|
184
|
+
Get a single researcher, by identifier.
|
|
185
|
+
|
|
186
|
+
Get a single researcher, by identifier.
|
|
187
|
+
|
|
188
|
+
### Example
|
|
189
|
+
```javascript
|
|
190
|
+
import LAMP from 'lamp-core'
|
|
191
|
+
|
|
192
|
+
let researcher_id = 'researcher_id_example' // string
|
|
193
|
+
|
|
194
|
+
// Get a single researcher, by identifier.
|
|
195
|
+
const result = LAMP.Researcher.view(researcher_id)
|
|
196
|
+
console.dir(result)
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
### Parameters
|
|
200
|
+
|
|
201
|
+
Name | Type | Description | Notes
|
|
202
|
+
------------- | ------------- | ------------- | -------------
|
|
203
|
+
**researcher_id** | **string**| |
|
|
204
|
+
**transform** | **string**| | [optional]
|
|
205
|
+
|
|
206
|
+
### Return type
|
|
207
|
+
|
|
208
|
+
**array[object]**
|
|
209
|
+
|
|
210
|
+
### HTTP request headers
|
|
211
|
+
|
|
212
|
+
- **Content-Type**: `application/json`
|
|
213
|
+
- **Accept**: `application/json`
|
|
214
|
+
|
|
215
|
+
### HTTP response details
|
|
216
|
+
| Status code | Description | Response headers |
|
|
217
|
+
|-------------|-------------|------------------|
|
|
218
|
+
| **200** | 200 Success | - |
|
|
219
|
+
| **400** | 400 Bad Request | - |
|
|
220
|
+
| **403** | 403 Authorization Failed | - |
|
|
221
|
+
| **404** | 404 Not Found | - |
|
|
222
|
+
| **0** | 500 Internal Error | - |
|
|
223
|
+
|
package/docs/Sensor.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# LAMP.Sensor
|
|
2
|
+
|
|
3
|
+
A sensor that may or may not be available on a physical device.
|
|
4
|
+
## Properties
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**id** | **string** | A globally unique reference for objects. | [optional]
|
|
8
|
+
**spec** | **string** | A globally unique reference for objects. | [optional]
|
|
9
|
+
**name** | **string** | The name of the sensor. | [optional]
|
|
10
|
+
**settings** | [**object**](.md) | The configuration settings for the sensor. | [optional]
|
|
11
|
+
|
|
12
|
+
|