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,222 @@
|
|
|
1
|
+
# LAMP.ActivitySpec
|
|
2
|
+
|
|
3
|
+
Method | HTTP request | Description
|
|
4
|
+
------------- | ------------- | -------------
|
|
5
|
+
[**all**](ActivitySpecApi.md#all) | **GET** /activity_spec | Get all ActivitySpecs registered.
|
|
6
|
+
[**create**](ActivitySpecApi.md#create) | **POST** /activity_spec | Create a new ActivitySpec.
|
|
7
|
+
[**delete**](ActivitySpecApi.md#delete) | **DELETE** /activity_spec/{activity_spec_name} | Delete an ActivitySpec.
|
|
8
|
+
[**update**](ActivitySpecApi.md#update) | **PUT** /activity_spec/{activity_spec_name} | Update an ActivitySpec.
|
|
9
|
+
[**view**](ActivitySpecApi.md#view) | **GET** /activity_spec/{activity_spec_name} | View an ActivitySpec.
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
# **all**
|
|
13
|
+
> array[object] all()
|
|
14
|
+
|
|
15
|
+
Get all ActivitySpecs registered.
|
|
16
|
+
|
|
17
|
+
Get all ActivitySpecs registered.
|
|
18
|
+
|
|
19
|
+
### Example
|
|
20
|
+
```javascript
|
|
21
|
+
import LAMP from 'lamp-core'
|
|
22
|
+
|
|
23
|
+
// Get all ActivitySpecs registered.
|
|
24
|
+
const result = LAMP.ActivitySpec.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(activity.spec)
|
|
54
|
+
|
|
55
|
+
Create a new ActivitySpec.
|
|
56
|
+
|
|
57
|
+
Create a new ActivitySpec.
|
|
58
|
+
|
|
59
|
+
### Example
|
|
60
|
+
```javascript
|
|
61
|
+
import LAMP from 'lamp-core'
|
|
62
|
+
|
|
63
|
+
let activity.spec = ActivitySpec.new("name_example", "help_contents_example", "script_contents_example", 123, 123, 123) // ActivitySpec
|
|
64
|
+
|
|
65
|
+
// Create a new ActivitySpec.
|
|
66
|
+
const result = LAMP.ActivitySpec.create(activity.spec)
|
|
67
|
+
console.dir(result)
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### Parameters
|
|
71
|
+
|
|
72
|
+
Name | Type | Description | Notes
|
|
73
|
+
------------- | ------------- | ------------- | -------------
|
|
74
|
+
**activity.spec** | [**ActivitySpec**](ActivitySpec.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(activity.spec.name)
|
|
96
|
+
|
|
97
|
+
Delete an ActivitySpec.
|
|
98
|
+
|
|
99
|
+
Delete an ActivitySpec.
|
|
100
|
+
|
|
101
|
+
### Example
|
|
102
|
+
```javascript
|
|
103
|
+
import LAMP from 'lamp-core'
|
|
104
|
+
|
|
105
|
+
let activity.spec.name = 'activity.spec.name_example' // string
|
|
106
|
+
|
|
107
|
+
// Delete an ActivitySpec.
|
|
108
|
+
const result = LAMP.ActivitySpec.delete(activity.spec.name)
|
|
109
|
+
console.dir(result)
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
### Parameters
|
|
113
|
+
|
|
114
|
+
Name | Type | Description | Notes
|
|
115
|
+
------------- | ------------- | ------------- | -------------
|
|
116
|
+
**activity.spec.name** | **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(activity.spec.name, activity.spec)
|
|
138
|
+
|
|
139
|
+
Update an ActivitySpec.
|
|
140
|
+
|
|
141
|
+
Update an ActivitySpec.
|
|
142
|
+
|
|
143
|
+
### Example
|
|
144
|
+
```javascript
|
|
145
|
+
import LAMP from 'lamp-core'
|
|
146
|
+
|
|
147
|
+
let activity.spec.name = 'activity.spec.name_example' // string
|
|
148
|
+
let activity.spec = ActivitySpec.new("name_example", "help_contents_example", "script_contents_example", 123, 123, 123) // ActivitySpec
|
|
149
|
+
|
|
150
|
+
// Update an ActivitySpec.
|
|
151
|
+
const result = LAMP.ActivitySpec.update(activity.spec.name, activity.spec)
|
|
152
|
+
console.dir(result)
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
### Parameters
|
|
156
|
+
|
|
157
|
+
Name | Type | Description | Notes
|
|
158
|
+
------------- | ------------- | ------------- | -------------
|
|
159
|
+
**activity.spec.name** | **string**| |
|
|
160
|
+
**activity.spec** | [**ActivitySpec**](ActivitySpec.md)| |
|
|
161
|
+
|
|
162
|
+
### Return type
|
|
163
|
+
|
|
164
|
+
**string**
|
|
165
|
+
|
|
166
|
+
### HTTP request headers
|
|
167
|
+
|
|
168
|
+
- **Content-Type**: `application/json`
|
|
169
|
+
- **Accept**: `application/json`
|
|
170
|
+
|
|
171
|
+
### HTTP response details
|
|
172
|
+
| Status code | Description | Response headers |
|
|
173
|
+
|-------------|-------------|------------------|
|
|
174
|
+
| **200** | 200 Success | - |
|
|
175
|
+
| **400** | 400 Bad Request | - |
|
|
176
|
+
| **403** | 403 Authorization Failed | - |
|
|
177
|
+
| **404** | 404 Not Found | - |
|
|
178
|
+
| **0** | 500 Internal Error | - |
|
|
179
|
+
|
|
180
|
+
# **view**
|
|
181
|
+
> character view(activity.spec.name)
|
|
182
|
+
|
|
183
|
+
View an ActivitySpec.
|
|
184
|
+
|
|
185
|
+
View an ActivitySpec.
|
|
186
|
+
|
|
187
|
+
### Example
|
|
188
|
+
```javascript
|
|
189
|
+
import LAMP from 'lamp-core'
|
|
190
|
+
|
|
191
|
+
let activity.spec.name = 'activity.spec.name_example' // string
|
|
192
|
+
|
|
193
|
+
// View an ActivitySpec.
|
|
194
|
+
const result = LAMP.ActivitySpec.view(activity.spec.name)
|
|
195
|
+
console.dir(result)
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
### Parameters
|
|
199
|
+
|
|
200
|
+
Name | Type | Description | Notes
|
|
201
|
+
------------- | ------------- | ------------- | -------------
|
|
202
|
+
**activity.spec.name** | **string**| |
|
|
203
|
+
**transform** | **string**| | [optional]
|
|
204
|
+
|
|
205
|
+
### Return type
|
|
206
|
+
|
|
207
|
+
**string**
|
|
208
|
+
|
|
209
|
+
### HTTP request headers
|
|
210
|
+
|
|
211
|
+
- **Content-Type**: `application/json`
|
|
212
|
+
- **Accept**: `application/json`
|
|
213
|
+
|
|
214
|
+
### HTTP response details
|
|
215
|
+
| Status code | Description | Response headers |
|
|
216
|
+
|-------------|-------------|------------------|
|
|
217
|
+
| **200** | 200 Success | - |
|
|
218
|
+
| **400** | 400 Bad Request | - |
|
|
219
|
+
| **403** | 403 Authorization Failed | - |
|
|
220
|
+
| **404** | 404 Not Found | - |
|
|
221
|
+
| **0** | 500 Internal Error | - |
|
|
222
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# LAMP.Credential
|
|
2
|
+
|
|
3
|
+
Every object can have one or more credential(s) associated with it. (i.e. `my_researcher.credentials = ['person A', 'person B', 'api A'', 'person C', 'api B']`)
|
|
4
|
+
## Properties
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**origin** | **string** | The root object this credential is attached to. The scope of this credential is limited to the object itself and any children. | [optional]
|
|
8
|
+
**access_key** | **string** | Username or machine-readable public key (access). | [optional]
|
|
9
|
+
**secret_key** | **string** | SALTED HASH OF Password or machine-readable private key (secret). | [optional]
|
|
10
|
+
**description** | **string** | The user-visible description of the credential. | [optional]
|
|
11
|
+
|
|
12
|
+
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
# LAMP.Credential
|
|
2
|
+
|
|
3
|
+
Method | HTTP request | Description
|
|
4
|
+
------------- | ------------- | -------------
|
|
5
|
+
[**create**](CredentialApi.md#create) | **POST** /type/{type_id}/credential |
|
|
6
|
+
[**delete**](CredentialApi.md#delete) | **DELETE** /type/{type_id}/credential/{access_key} |
|
|
7
|
+
[**list**](CredentialApi.md#list) | **GET** /type/{type_id}/credential |
|
|
8
|
+
[**update**](CredentialApi.md#update) | **PUT** /type/{type_id}/credential/{access_key} |
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
# **create**
|
|
12
|
+
> object create(type_id, body)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Example
|
|
17
|
+
```javascript
|
|
18
|
+
import LAMP from 'lamp-core'
|
|
19
|
+
|
|
20
|
+
let type_id = 'type_id_example' // string
|
|
21
|
+
let body = null // object
|
|
22
|
+
|
|
23
|
+
const result = LAMP.Credential.create(type_id, body)
|
|
24
|
+
console.dir(result)
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### Parameters
|
|
28
|
+
|
|
29
|
+
Name | Type | Description | Notes
|
|
30
|
+
------------- | ------------- | ------------- | -------------
|
|
31
|
+
**type_id** | **string**| |
|
|
32
|
+
**body** | **object**| |
|
|
33
|
+
|
|
34
|
+
### Return type
|
|
35
|
+
|
|
36
|
+
**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
|
+
# **delete**
|
|
53
|
+
> object delete(type_id, access_key)
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
### Example
|
|
58
|
+
```javascript
|
|
59
|
+
import LAMP from 'lamp-core'
|
|
60
|
+
|
|
61
|
+
let type_id = 'type_id_example' // string
|
|
62
|
+
let access_key = 'access_key_example' // string
|
|
63
|
+
|
|
64
|
+
const result = LAMP.Credential.delete(type_id, access_key)
|
|
65
|
+
console.dir(result)
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### Parameters
|
|
69
|
+
|
|
70
|
+
Name | Type | Description | Notes
|
|
71
|
+
------------- | ------------- | ------------- | -------------
|
|
72
|
+
**type_id** | **string**| |
|
|
73
|
+
**access_key** | **string**| |
|
|
74
|
+
|
|
75
|
+
### Return type
|
|
76
|
+
|
|
77
|
+
**object**
|
|
78
|
+
|
|
79
|
+
### HTTP request headers
|
|
80
|
+
|
|
81
|
+
- **Content-Type**: `application/json`
|
|
82
|
+
- **Accept**: `application/json`
|
|
83
|
+
|
|
84
|
+
### HTTP response details
|
|
85
|
+
| Status code | Description | Response headers |
|
|
86
|
+
|-------------|-------------|------------------|
|
|
87
|
+
| **200** | 200 Success | - |
|
|
88
|
+
| **400** | 400 Bad Request | - |
|
|
89
|
+
| **403** | 403 Authorization Failed | - |
|
|
90
|
+
| **404** | 404 Not Found | - |
|
|
91
|
+
| **0** | 500 Internal Error | - |
|
|
92
|
+
|
|
93
|
+
# **list**
|
|
94
|
+
> object list(type_id)
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
### Example
|
|
99
|
+
```javascript
|
|
100
|
+
import LAMP from 'lamp-core'
|
|
101
|
+
|
|
102
|
+
let type_id = 'type_id_example' // string
|
|
103
|
+
|
|
104
|
+
const result = LAMP.Credential.list(type_id)
|
|
105
|
+
console.dir(result)
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
### Parameters
|
|
109
|
+
|
|
110
|
+
Name | Type | Description | Notes
|
|
111
|
+
------------- | ------------- | ------------- | -------------
|
|
112
|
+
**type_id** | **string**| |
|
|
113
|
+
**transform** | **string**| | [optional]
|
|
114
|
+
|
|
115
|
+
### Return type
|
|
116
|
+
|
|
117
|
+
**object**
|
|
118
|
+
|
|
119
|
+
### HTTP request headers
|
|
120
|
+
|
|
121
|
+
- **Content-Type**: `application/json`
|
|
122
|
+
- **Accept**: `application/json`
|
|
123
|
+
|
|
124
|
+
### HTTP response details
|
|
125
|
+
| Status code | Description | Response headers |
|
|
126
|
+
|-------------|-------------|------------------|
|
|
127
|
+
| **200** | 200 Success | - |
|
|
128
|
+
| **400** | 400 Bad Request | - |
|
|
129
|
+
| **403** | 403 Authorization Failed | - |
|
|
130
|
+
| **404** | 404 Not Found | - |
|
|
131
|
+
| **0** | 500 Internal Error | - |
|
|
132
|
+
|
|
133
|
+
# **update**
|
|
134
|
+
> object update(type_id, access_key, body)
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
### Example
|
|
139
|
+
```javascript
|
|
140
|
+
import LAMP from 'lamp-core'
|
|
141
|
+
|
|
142
|
+
let type_id = 'type_id_example' // string
|
|
143
|
+
let access_key = 'access_key_example' // string
|
|
144
|
+
let body = null // object
|
|
145
|
+
|
|
146
|
+
const result = LAMP.Credential.update(type_id, access_key, body)
|
|
147
|
+
console.dir(result)
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
### Parameters
|
|
151
|
+
|
|
152
|
+
Name | Type | Description | Notes
|
|
153
|
+
------------- | ------------- | ------------- | -------------
|
|
154
|
+
**type_id** | **string**| |
|
|
155
|
+
**access_key** | **string**| |
|
|
156
|
+
**body** | **object**| |
|
|
157
|
+
|
|
158
|
+
### Return type
|
|
159
|
+
|
|
160
|
+
**object**
|
|
161
|
+
|
|
162
|
+
### HTTP request headers
|
|
163
|
+
|
|
164
|
+
- **Content-Type**: `application/json`
|
|
165
|
+
- **Accept**: `application/json`
|
|
166
|
+
|
|
167
|
+
### HTTP response details
|
|
168
|
+
| Status code | Description | Response headers |
|
|
169
|
+
|-------------|-------------|------------------|
|
|
170
|
+
| **200** | 200 Success | - |
|
|
171
|
+
| **400** | 400 Bad Request | - |
|
|
172
|
+
| **403** | 403 Authorization Failed | - |
|
|
173
|
+
| **404** | 404 Not Found | - |
|
|
174
|
+
| **0** | 500 Internal Error | - |
|
|
175
|
+
|
package/docs/Document.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# LAMP.DurationInterval
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**start** | **number** | The UNIX Epoch date-time representation: number of milliseconds since 1/1/1970 12:00 AM. | [optional]
|
|
7
|
+
**interval** | **array[object]** | | [optional]
|
|
8
|
+
**repeat_count** | **integer** | | [optional]
|
|
9
|
+
**end** | **number** | The UNIX Epoch date-time representation: number of milliseconds since 1/1/1970 12:00 AM. | [optional]
|
|
10
|
+
|
|
11
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# LAMP.DurationIntervalLegacy
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**repeat_type** | **string** | | [optional]
|
|
7
|
+
**date** | **number** | The UNIX Epoch date-time representation: number of milliseconds since 1/1/1970 12:00 AM. | [optional]
|
|
8
|
+
**custom_times** | **array[object]** | | [optional]
|
|
9
|
+
|
|
10
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# LAMP.DynamicAttachment
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**key** | **string** | The key. | [optional]
|
|
7
|
+
**from** | **string** | A globally unique reference for objects. | [optional]
|
|
8
|
+
**to** | **string** | Either \"me\" to apply to the attachment owner only, the ID of an object owned by the attachment owner, or a string representing the child object type to apply to. | [optional]
|
|
9
|
+
**triggers** | **array[object]** | The API triggers that activate script execution. These will be event stream types or object types in the API, or, if scheduling execution periodically, a cron-job string prefixed with \"!\" (exclamation point). | [optional]
|
|
10
|
+
**language** | **string** | The script language. | [optional]
|
|
11
|
+
**contents** | **string** | The script contents. | [optional]
|
|
12
|
+
**requirements** | **array[object]** | The script requirements. | [optional]
|
|
13
|
+
|
|
14
|
+
|
package/docs/Error.md
ADDED
package/docs/Metadata.md
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# LAMP.Participant
|
|
2
|
+
|
|
3
|
+
A participant within a study; a participant cannot be enrolled in more than one study at a time.
|
|
4
|
+
## Properties
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**id** | **string** | A globally unique reference for objects. | [optional]
|
|
8
|
+
**study_code** | **string** | The researcher-provided study code for the participant. | [optional]
|
|
9
|
+
**language** | **string** | The participant's selected language code for the LAMP app. | [optional]
|
|
10
|
+
**theme** | **string** | The participant's selected theme for the LAMP app. | [optional]
|
|
11
|
+
**emergency_contact** | **string** | The participant's emergency contact number. | [optional]
|
|
12
|
+
**helpline** | **string** | The participant's selected personal helpline number. | [optional]
|
|
13
|
+
|
|
14
|
+
|