@tryvital/vital-node 0.3.7 → 1.0.1
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/client/Activity.ts +1 -1
- package/client/Body.ts +1 -1
- package/client/Profile.ts +25 -0
- package/client/Sleep.ts +2 -2
- package/client/Testkits.ts +14 -8
- package/client/User.ts +2 -2
- package/client/Vitals.ts +45 -45
- package/client/Webhooks.ts +7 -58
- package/client/Workouts.ts +3 -3
- package/client/index.ts +1 -1
- package/client/models/activity.ts +10 -3
- package/client/models/body_model.ts +0 -18
- package/client/models/profile_model.ts +34 -0
- package/client/models/testkit_models.ts +14 -0
- package/client/models/user_models.ts +4 -0
- package/dist/client/Activity.js +1 -1
- package/dist/client/Body.js +1 -1
- package/dist/client/Profile.d.ts +8 -0
- package/dist/client/{ProviderSpecific.js → Profile.js} +8 -12
- package/dist/client/Sleep.js +2 -2
- package/dist/client/Testkits.d.ts +3 -2
- package/dist/client/Testkits.js +17 -1
- package/dist/client/User.d.ts +2 -2
- package/dist/client/Vitals.d.ts +7 -6
- package/dist/client/Vitals.js +16 -41
- package/dist/client/Webhooks.d.ts +1 -7
- package/dist/client/Webhooks.js +4 -102
- package/dist/client/Workouts.d.ts +1 -1
- package/dist/client/Workouts.js +3 -3
- package/dist/client/index.d.ts +1 -1
- package/dist/client/index.js +3 -3
- package/dist/client/models/activity.d.ts +9 -3
- package/dist/client/models/body_model.d.ts +0 -18
- package/dist/client/models/profile_model.d.ts +33 -0
- package/dist/{swagger_client/models/client-activity-response.js → client/models/profile_model.js} +0 -0
- package/dist/client/models/testkit_models.d.ts +13 -0
- package/dist/client/models/user_models.d.ts +3 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +11 -11
- package/dist/lib/config.d.ts +0 -1
- package/dist/lib/config.js +0 -1
- package/index.ts +14 -14
- package/lib/config.ts +0 -1
- package/package.json +3 -2
- package/client/ProviderSpecific.ts +0 -31
- package/dist/client/ProviderSpecific.d.ts +0 -8
- package/dist/swagger_client/api.d.ts +0 -18
- package/dist/swagger_client/api.js +0 -32
- package/dist/swagger_client/apis/activity-api.d.ts +0 -86
- package/dist/swagger_client/apis/activity-api.js +0 -241
- package/dist/swagger_client/apis/body-api.d.ts +0 -86
- package/dist/swagger_client/apis/body-api.js +0 -241
- package/dist/swagger_client/apis/link-api.d.ts +0 -115
- package/dist/swagger_client/apis/link-api.js +0 -310
- package/dist/swagger_client/apis/provider-specific-api.d.ts +0 -90
- package/dist/swagger_client/apis/provider-specific-api.js +0 -250
- package/dist/swagger_client/apis/sleep-api.d.ts +0 -120
- package/dist/swagger_client/apis/sleep-api.js +0 -330
- package/dist/swagger_client/apis/user-api.d.ts +0 -243
- package/dist/swagger_client/apis/user-api.js +0 -657
- package/dist/swagger_client/apis/webhooks-api.d.ts +0 -138
- package/dist/swagger_client/apis/webhooks-api.js +0 -379
- package/dist/swagger_client/apis/workouts-api.d.ts +0 -120
- package/dist/swagger_client/apis/workouts-api.js +0 -330
- package/dist/swagger_client/base.d.ts +0 -55
- package/dist/swagger_client/base.js +0 -67
- package/dist/swagger_client/configuration.d.ts +0 -63
- package/dist/swagger_client/configuration.js +0 -16
- package/dist/swagger_client/index.d.ts +0 -13
- package/dist/swagger_client/index.js +0 -27
- package/dist/swagger_client/models/client-activity-response.d.ts +0 -24
- package/dist/swagger_client/models/client-body-response.d.ts +0 -24
- package/dist/swagger_client/models/client-body-response.js +0 -2
- package/dist/swagger_client/models/client-facing-activity.d.ts +0 -84
- package/dist/swagger_client/models/client-facing-activity.js +0 -2
- package/dist/swagger_client/models/client-facing-body.d.ts +0 -72
- package/dist/swagger_client/models/client-facing-body.js +0 -2
- package/dist/swagger_client/models/client-facing-sleep-stream.d.ts +0 -48
- package/dist/swagger_client/models/client-facing-sleep-stream.js +0 -2
- package/dist/swagger_client/models/client-facing-sleep.d.ts +0 -138
- package/dist/swagger_client/models/client-facing-sleep.js +0 -2
- package/dist/swagger_client/models/client-facing-source-specific.d.ts +0 -48
- package/dist/swagger_client/models/client-facing-source-specific.js +0 -2
- package/dist/swagger_client/models/client-facing-sport.d.ts +0 -30
- package/dist/swagger_client/models/client-facing-sport.js +0 -2
- package/dist/swagger_client/models/client-facing-stream.d.ts +0 -84
- package/dist/swagger_client/models/client-facing-stream.js +0 -2
- package/dist/swagger_client/models/client-facing-user.d.ts +0 -48
- package/dist/swagger_client/models/client-facing-user.js +0 -2
- package/dist/swagger_client/models/client-facing-webhook.d.ts +0 -42
- package/dist/swagger_client/models/client-facing-webhook.js +0 -2
- package/dist/swagger_client/models/client-facing-workout.d.ts +0 -150
- package/dist/swagger_client/models/client-facing-workout.js +0 -2
- package/dist/swagger_client/models/client-sleep-response.d.ts +0 -24
- package/dist/swagger_client/models/client-sleep-response.js +0 -2
- package/dist/swagger_client/models/client-source-specific-response.d.ts +0 -24
- package/dist/swagger_client/models/client-source-specific-response.js +0 -2
- package/dist/swagger_client/models/client-webhook-response.d.ts +0 -24
- package/dist/swagger_client/models/client-webhook-response.js +0 -2
- package/dist/swagger_client/models/client-workout-response.d.ts +0 -24
- package/dist/swagger_client/models/client-workout-response.js +0 -2
- package/dist/swagger_client/models/connected-source-client-facing.d.ts +0 -24
- package/dist/swagger_client/models/connected-source-client-facing.js +0 -2
- package/dist/swagger_client/models/httpvalidation-error.d.ts +0 -24
- package/dist/swagger_client/models/httpvalidation-error.js +0 -2
- package/dist/swagger_client/models/index.d.ts +0 -32
- package/dist/swagger_client/models/index.js +0 -44
- package/dist/swagger_client/models/individual-provider-data.d.ts +0 -30
- package/dist/swagger_client/models/individual-provider-data.js +0 -2
- package/dist/swagger_client/models/link-token-exchange-response.d.ts +0 -24
- package/dist/swagger_client/models/link-token-exchange-response.js +0 -2
- package/dist/swagger_client/models/link-token-exchange.d.ts +0 -30
- package/dist/swagger_client/models/link-token-exchange.js +0 -2
- package/dist/swagger_client/models/password-providers.d.ts +0 -22
- package/dist/swagger_client/models/password-providers.js +0 -28
- package/dist/swagger_client/models/provider-link-response.d.ts +0 -30
- package/dist/swagger_client/models/provider-link-response.js +0 -2
- package/dist/swagger_client/models/providers-that-require-password-auth-whoop-renpho-peloton-zwift.d.ts +0 -18
- package/dist/swagger_client/models/providers-that-require-password-auth-whoop-renpho-peloton-zwift.js +0 -2
- package/dist/swagger_client/models/providers.d.ts +0 -27
- package/dist/swagger_client/models/providers.js +0 -33
- package/dist/swagger_client/models/source-client-facing.d.ts +0 -36
- package/dist/swagger_client/models/source-client-facing.js +0 -2
- package/dist/swagger_client/models/user-create.d.ts +0 -24
- package/dist/swagger_client/models/user-create.js +0 -2
- package/dist/swagger_client/models/user-key-response.d.ts +0 -30
- package/dist/swagger_client/models/user-key-response.js +0 -2
- package/dist/swagger_client/models/user-success-response.d.ts +0 -24
- package/dist/swagger_client/models/user-success-response.js +0 -2
- package/dist/swagger_client/models/validation-error.d.ts +0 -36
- package/dist/swagger_client/models/validation-error.js +0 -2
- package/dist/swagger_client/models/webhook-register.d.ts +0 -36
- package/dist/swagger_client/models/webhook-register.js +0 -2
- package/dist/swagger_client/models/webhook-type.d.ts +0 -24
- package/dist/swagger_client/models/webhook-type.js +0 -30
- package/dist/test/data/mock_webhook.d.ts +0 -49
- package/dist/test/data/mock_webhook.js +0 -170
- package/dist/test/webhook.spec.d.ts +0 -1
- package/dist/test/webhook.spec.js +0 -160
- package/test/data/mock_webhook.ts +0 -167
- package/test/webhook.spec.ts +0 -254
@@ -1,84 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Vital
|
3
|
-
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
4
|
-
*
|
5
|
-
* OpenAPI spec version: 0.1.0
|
6
|
-
*
|
7
|
-
*
|
8
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
9
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
10
|
-
* Do not edit the class manually.
|
11
|
-
*/
|
12
|
-
/**
|
13
|
-
*
|
14
|
-
* @export
|
15
|
-
* @interface ClientFacingActivity
|
16
|
-
*/
|
17
|
-
export interface ClientFacingActivity {
|
18
|
-
/**
|
19
|
-
*
|
20
|
-
* @type {string}
|
21
|
-
* @memberof ClientFacingActivity
|
22
|
-
*/
|
23
|
-
id: any;
|
24
|
-
/**
|
25
|
-
* Date for specified record
|
26
|
-
* @type {Date}
|
27
|
-
* @memberof ClientFacingActivity
|
28
|
-
*/
|
29
|
-
date: any;
|
30
|
-
/**
|
31
|
-
* Total energy consumption during the day including Basal Metabolic Rate in kilocalories.::kilocalories
|
32
|
-
* @type {number}
|
33
|
-
* @memberof ClientFacingActivity
|
34
|
-
*/
|
35
|
-
caloriesTotal: any;
|
36
|
-
/**
|
37
|
-
* Energy consumption caused by the physical activity of the day in kilocalories.::kilocalories
|
38
|
-
* @type {number}
|
39
|
-
* @memberof ClientFacingActivity
|
40
|
-
*/
|
41
|
-
caloriesActive: any;
|
42
|
-
/**
|
43
|
-
* Total number of steps registered during the day.::steps
|
44
|
-
* @type {number}
|
45
|
-
* @memberof ClientFacingActivity
|
46
|
-
*/
|
47
|
-
steps?: any;
|
48
|
-
/**
|
49
|
-
* Daily physical activity as equal meters i.e. amount of walking needed to get the same amount of activity.::meters
|
50
|
-
* @type {number}
|
51
|
-
* @memberof ClientFacingActivity
|
52
|
-
*/
|
53
|
-
dailyMovement?: any;
|
54
|
-
/**
|
55
|
-
* Number of minutes during the day with low intensity activity (e.g. household work).::minutes
|
56
|
-
* @type {number}
|
57
|
-
* @memberof ClientFacingActivity
|
58
|
-
*/
|
59
|
-
low?: any;
|
60
|
-
/**
|
61
|
-
* Number of minutes during the day with medium intensity activity (e.g. walking).::minutes
|
62
|
-
* @type {number}
|
63
|
-
* @memberof ClientFacingActivity
|
64
|
-
*/
|
65
|
-
medium?: any;
|
66
|
-
/**
|
67
|
-
* Number of minutes during the day with high intensity activity (e.g. running).::minutes
|
68
|
-
* @type {number}
|
69
|
-
* @memberof ClientFacingActivity
|
70
|
-
*/
|
71
|
-
high?: any;
|
72
|
-
/**
|
73
|
-
* Source the data has come from.
|
74
|
-
* @type {SourceClientFacing}
|
75
|
-
* @memberof ClientFacingActivity
|
76
|
-
*/
|
77
|
-
source: any;
|
78
|
-
/**
|
79
|
-
* User key returned by vital create user key request. This key should be stored in your database against the user and used for all interactions with the vital api.
|
80
|
-
* @type {string}
|
81
|
-
* @memberof ClientFacingActivity
|
82
|
-
*/
|
83
|
-
userId: any;
|
84
|
-
}
|
@@ -1,72 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Vital
|
3
|
-
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
4
|
-
*
|
5
|
-
* OpenAPI spec version: 0.1.0
|
6
|
-
*
|
7
|
-
*
|
8
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
9
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
10
|
-
* Do not edit the class manually.
|
11
|
-
*/
|
12
|
-
/**
|
13
|
-
*
|
14
|
-
* @export
|
15
|
-
* @interface ClientFacingBody
|
16
|
-
*/
|
17
|
-
export interface ClientFacingBody {
|
18
|
-
/**
|
19
|
-
*
|
20
|
-
* @type {string}
|
21
|
-
* @memberof ClientFacingBody
|
22
|
-
*/
|
23
|
-
id: any;
|
24
|
-
/**
|
25
|
-
* Date for specified record
|
26
|
-
* @type {Date}
|
27
|
-
* @memberof ClientFacingBody
|
28
|
-
*/
|
29
|
-
date: any;
|
30
|
-
/**
|
31
|
-
* Weight in kg.::kg
|
32
|
-
* @type {number}
|
33
|
-
* @memberof ClientFacingBody
|
34
|
-
*/
|
35
|
-
weight: any;
|
36
|
-
/**
|
37
|
-
* Body fat percentage.::perc
|
38
|
-
* @type {number}
|
39
|
-
* @memberof ClientFacingBody
|
40
|
-
*/
|
41
|
-
fat?: any;
|
42
|
-
/**
|
43
|
-
* Age of user.::years
|
44
|
-
* @type {number}
|
45
|
-
* @memberof ClientFacingBody
|
46
|
-
*/
|
47
|
-
age?: any;
|
48
|
-
/**
|
49
|
-
* Height in cm.::cm
|
50
|
-
* @type {number}
|
51
|
-
* @memberof ClientFacingBody
|
52
|
-
*/
|
53
|
-
height?: any;
|
54
|
-
/**
|
55
|
-
* Gender of user.
|
56
|
-
* @type {string}
|
57
|
-
* @memberof ClientFacingBody
|
58
|
-
*/
|
59
|
-
gender?: any;
|
60
|
-
/**
|
61
|
-
* Source the data has come from.
|
62
|
-
* @type {SourceClientFacing}
|
63
|
-
* @memberof ClientFacingBody
|
64
|
-
*/
|
65
|
-
source: any;
|
66
|
-
/**
|
67
|
-
* User key returned by vital create user key request. This key should be stored in your database against the user and used for all interactions with the vital api.
|
68
|
-
* @type {string}
|
69
|
-
* @memberof ClientFacingBody
|
70
|
-
*/
|
71
|
-
userId: any;
|
72
|
-
}
|
@@ -1,48 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Vital
|
3
|
-
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
4
|
-
*
|
5
|
-
* OpenAPI spec version: 0.1.0
|
6
|
-
*
|
7
|
-
*
|
8
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
9
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
10
|
-
* Do not edit the class manually.
|
11
|
-
*/
|
12
|
-
/**
|
13
|
-
*
|
14
|
-
* @export
|
15
|
-
* @interface ClientFacingSleepStream
|
16
|
-
*/
|
17
|
-
export interface ClientFacingSleepStream {
|
18
|
-
/**
|
19
|
-
*
|
20
|
-
* @type {number}
|
21
|
-
* @memberof ClientFacingSleepStream
|
22
|
-
*/
|
23
|
-
id: any;
|
24
|
-
/**
|
25
|
-
* Corresponding time stamp in unix time for datapoint
|
26
|
-
* @type {Array<number>}
|
27
|
-
* @memberof ClientFacingSleepStream
|
28
|
-
*/
|
29
|
-
time?: any;
|
30
|
-
/**
|
31
|
-
* Hypnogram for sleep stages {\"deep\": 1, \"light\": 2, \"rem\": 3, \"awake\": 4, \"missing_data\": -1}
|
32
|
-
* @type {Array<number>}
|
33
|
-
* @memberof ClientFacingSleepStream
|
34
|
-
*/
|
35
|
-
hypnogram: any;
|
36
|
-
/**
|
37
|
-
* HRV calculated using rmssd during sleep
|
38
|
-
* @type {Array<number>}
|
39
|
-
* @memberof ClientFacingSleepStream
|
40
|
-
*/
|
41
|
-
rmssd: any;
|
42
|
-
/**
|
43
|
-
* Heart rate in bpm.
|
44
|
-
* @type {Array<number>}
|
45
|
-
* @memberof ClientFacingSleepStream
|
46
|
-
*/
|
47
|
-
heartrate?: any;
|
48
|
-
}
|
@@ -1,138 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Vital
|
3
|
-
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
4
|
-
*
|
5
|
-
* OpenAPI spec version: 0.1.0
|
6
|
-
*
|
7
|
-
*
|
8
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
9
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
10
|
-
* Do not edit the class manually.
|
11
|
-
*/
|
12
|
-
/**
|
13
|
-
*
|
14
|
-
* @export
|
15
|
-
* @interface ClientFacingSleep
|
16
|
-
*/
|
17
|
-
export interface ClientFacingSleep {
|
18
|
-
/**
|
19
|
-
*
|
20
|
-
* @type {string}
|
21
|
-
* @memberof ClientFacingSleep
|
22
|
-
*/
|
23
|
-
id: any;
|
24
|
-
/**
|
25
|
-
* Date for specified record
|
26
|
-
* @type {Date}
|
27
|
-
* @memberof ClientFacingSleep
|
28
|
-
*/
|
29
|
-
date: any;
|
30
|
-
/**
|
31
|
-
* UTC Time when the sleep period started
|
32
|
-
* @type {Date}
|
33
|
-
* @memberof ClientFacingSleep
|
34
|
-
*/
|
35
|
-
bedtimeStart: any;
|
36
|
-
/**
|
37
|
-
* UTC Time when the sleep period ended
|
38
|
-
* @type {Date}
|
39
|
-
* @memberof ClientFacingSleep
|
40
|
-
*/
|
41
|
-
bedtimeStop: any;
|
42
|
-
/**
|
43
|
-
* Timezone offset from UTC as minutes. For example, EEST (Eastern European Summer Time, +3h) is 180. PST (Pacific Standard Time, -8h) is -480. Note that timezone information is also available in the datetime values themselves, see for example.bedtime_start.::minutes
|
44
|
-
* @type {number}
|
45
|
-
* @memberof ClientFacingSleep
|
46
|
-
*/
|
47
|
-
timezoneOffset?: any;
|
48
|
-
/**
|
49
|
-
* Total duration of the sleep period (sleep.duration = sleep.bedtime_end - sleep.bedtime_start).::seconds
|
50
|
-
* @type {number}
|
51
|
-
* @memberof ClientFacingSleep
|
52
|
-
*/
|
53
|
-
duration: any;
|
54
|
-
/**
|
55
|
-
* Total amount of sleep registered during the sleep period (sleep.total = sleep.rem + sleep.light + sleep.deep).::seconds
|
56
|
-
* @type {number}
|
57
|
-
* @memberof ClientFacingSleep
|
58
|
-
*/
|
59
|
-
total: any;
|
60
|
-
/**
|
61
|
-
* Total amount of awake time registered during the sleep period.::seconds
|
62
|
-
* @type {number}
|
63
|
-
* @memberof ClientFacingSleep
|
64
|
-
*/
|
65
|
-
awake: any;
|
66
|
-
/**
|
67
|
-
* Total amount of light sleep registered during the sleep period::seconds
|
68
|
-
* @type {number}
|
69
|
-
* @memberof ClientFacingSleep
|
70
|
-
*/
|
71
|
-
light: any;
|
72
|
-
/**
|
73
|
-
* Total amount of REM sleep registered during the sleep period, minutes::seconds
|
74
|
-
* @type {number}
|
75
|
-
* @memberof ClientFacingSleep
|
76
|
-
*/
|
77
|
-
rem: any;
|
78
|
-
/**
|
79
|
-
* Total amount of deep (N3) sleep registered during the sleep period::seconds
|
80
|
-
* @type {number}
|
81
|
-
* @memberof ClientFacingSleep
|
82
|
-
*/
|
83
|
-
deep: any;
|
84
|
-
/**
|
85
|
-
* The lowest heart rate (5 minutes sliding average) registered during the sleep period.::beats per minute
|
86
|
-
* @type {number}
|
87
|
-
* @memberof ClientFacingSleep
|
88
|
-
*/
|
89
|
-
hrLowest?: any;
|
90
|
-
/**
|
91
|
-
* The average heart rate registered during the sleep period.::beats per minute
|
92
|
-
* @type {number}
|
93
|
-
* @memberof ClientFacingSleep
|
94
|
-
*/
|
95
|
-
hrAverage?: any;
|
96
|
-
/**
|
97
|
-
* Sleep efficiency is the percentage of the sleep period spent asleep (100% * sleep.total / sleep.duration).::perc
|
98
|
-
* @type {number}
|
99
|
-
* @memberof ClientFacingSleep
|
100
|
-
*/
|
101
|
-
efficiency?: any;
|
102
|
-
/**
|
103
|
-
* Detected latency from bedtime_start to the beginning of the first five minutes of persistent sleep.::seconds
|
104
|
-
* @type {number}
|
105
|
-
* @memberof ClientFacingSleep
|
106
|
-
*/
|
107
|
-
latency?: any;
|
108
|
-
/**
|
109
|
-
* Skin temperature deviation from the long-term temperature average.::celcius
|
110
|
-
* @type {number}
|
111
|
-
* @memberof ClientFacingSleep
|
112
|
-
*/
|
113
|
-
temperatureDelta?: any;
|
114
|
-
/**
|
115
|
-
* The average heart rate registered during the sleep period.::beats per minute
|
116
|
-
* @type {number}
|
117
|
-
* @memberof ClientFacingSleep
|
118
|
-
*/
|
119
|
-
averageHrv?: any;
|
120
|
-
/**
|
121
|
-
* Average respiratory rate.::breaths per minute
|
122
|
-
* @type {number}
|
123
|
-
* @memberof ClientFacingSleep
|
124
|
-
*/
|
125
|
-
respiratoryRate?: any;
|
126
|
-
/**
|
127
|
-
* Source the data has come from.
|
128
|
-
* @type {SourceClientFacing}
|
129
|
-
* @memberof ClientFacingSleep
|
130
|
-
*/
|
131
|
-
source: any;
|
132
|
-
/**
|
133
|
-
* User key returned by vital create user key request. This key should be stored in your database against the user and used for all interactions with the vital api.
|
134
|
-
* @type {string}
|
135
|
-
* @memberof ClientFacingSleep
|
136
|
-
*/
|
137
|
-
userId: any;
|
138
|
-
}
|
@@ -1,48 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Vital
|
3
|
-
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
4
|
-
*
|
5
|
-
* OpenAPI spec version: 0.1.0
|
6
|
-
*
|
7
|
-
*
|
8
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
9
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
10
|
-
* Do not edit the class manually.
|
11
|
-
*/
|
12
|
-
/**
|
13
|
-
*
|
14
|
-
* @export
|
15
|
-
* @interface ClientFacingSourceSpecific
|
16
|
-
*/
|
17
|
-
export interface ClientFacingSourceSpecific {
|
18
|
-
/**
|
19
|
-
*
|
20
|
-
* @type {string}
|
21
|
-
* @memberof ClientFacingSourceSpecific
|
22
|
-
*/
|
23
|
-
id: any;
|
24
|
-
/**
|
25
|
-
* Date for specified record
|
26
|
-
* @type {Date}
|
27
|
-
* @memberof ClientFacingSourceSpecific
|
28
|
-
*/
|
29
|
-
date: any;
|
30
|
-
/**
|
31
|
-
* Type of data, activity/sleep/workouts/body
|
32
|
-
* @type {string}
|
33
|
-
* @memberof ClientFacingSourceSpecific
|
34
|
-
*/
|
35
|
-
type: any;
|
36
|
-
/**
|
37
|
-
* JSON data that is specific to the device
|
38
|
-
* @type {any | string}
|
39
|
-
* @memberof ClientFacingSourceSpecific
|
40
|
-
*/
|
41
|
-
data: any;
|
42
|
-
/**
|
43
|
-
* User key returned by vital create user key request. This key should be stored in your database against the user and used for all interactions with the vital api.
|
44
|
-
* @type {string}
|
45
|
-
* @memberof ClientFacingSourceSpecific
|
46
|
-
*/
|
47
|
-
userId: any;
|
48
|
-
}
|
@@ -1,30 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Vital
|
3
|
-
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
4
|
-
*
|
5
|
-
* OpenAPI spec version: 0.1.0
|
6
|
-
*
|
7
|
-
*
|
8
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
9
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
10
|
-
* Do not edit the class manually.
|
11
|
-
*/
|
12
|
-
/**
|
13
|
-
*
|
14
|
-
* @export
|
15
|
-
* @interface ClientFacingSport
|
16
|
-
*/
|
17
|
-
export interface ClientFacingSport {
|
18
|
-
/**
|
19
|
-
*
|
20
|
-
* @type {number}
|
21
|
-
* @memberof ClientFacingSport
|
22
|
-
*/
|
23
|
-
id: any;
|
24
|
-
/**
|
25
|
-
*
|
26
|
-
* @type {string}
|
27
|
-
* @memberof ClientFacingSport
|
28
|
-
*/
|
29
|
-
name: any;
|
30
|
-
}
|
@@ -1,84 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Vital
|
3
|
-
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
4
|
-
*
|
5
|
-
* OpenAPI spec version: 0.1.0
|
6
|
-
*
|
7
|
-
*
|
8
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
9
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
10
|
-
* Do not edit the class manually.
|
11
|
-
*/
|
12
|
-
/**
|
13
|
-
*
|
14
|
-
* @export
|
15
|
-
* @interface ClientFacingStream
|
16
|
-
*/
|
17
|
-
export interface ClientFacingStream {
|
18
|
-
/**
|
19
|
-
*
|
20
|
-
* @type {number}
|
21
|
-
* @memberof ClientFacingStream
|
22
|
-
*/
|
23
|
-
id: any;
|
24
|
-
/**
|
25
|
-
* RPM for cycling, Steps per minute for running
|
26
|
-
* @type {Array<number>}
|
27
|
-
* @memberof ClientFacingStream
|
28
|
-
*/
|
29
|
-
cadence?: any;
|
30
|
-
/**
|
31
|
-
* Corresponding time stamp in unix time for datapoint
|
32
|
-
* @type {Array<number>}
|
33
|
-
* @memberof ClientFacingStream
|
34
|
-
*/
|
35
|
-
time?: any;
|
36
|
-
/**
|
37
|
-
* Data points for altitude
|
38
|
-
* @type {Array<number>}
|
39
|
-
* @memberof ClientFacingStream
|
40
|
-
*/
|
41
|
-
altitude?: any;
|
42
|
-
/**
|
43
|
-
* Velocity in m/s
|
44
|
-
* @type {Array<number>}
|
45
|
-
* @memberof ClientFacingStream
|
46
|
-
*/
|
47
|
-
velocitySmooth?: any;
|
48
|
-
/**
|
49
|
-
* Heart rate in bpm.
|
50
|
-
* @type {Array<number>}
|
51
|
-
* @memberof ClientFacingStream
|
52
|
-
*/
|
53
|
-
heartrate?: any;
|
54
|
-
/**
|
55
|
-
* Latitude for data point
|
56
|
-
* @type {Array<number>}
|
57
|
-
* @memberof ClientFacingStream
|
58
|
-
*/
|
59
|
-
lat?: any;
|
60
|
-
/**
|
61
|
-
* Longitude for data point.
|
62
|
-
* @type {Array<number>}
|
63
|
-
* @memberof ClientFacingStream
|
64
|
-
*/
|
65
|
-
lng?: any;
|
66
|
-
/**
|
67
|
-
* Cumulated distance for exercise.
|
68
|
-
* @type {Array<number>}
|
69
|
-
* @memberof ClientFacingStream
|
70
|
-
*/
|
71
|
-
distance?: any;
|
72
|
-
/**
|
73
|
-
* Power in watts
|
74
|
-
* @type {Array<number>}
|
75
|
-
* @memberof ClientFacingStream
|
76
|
-
*/
|
77
|
-
power?: any;
|
78
|
-
/**
|
79
|
-
* Resistance on bike
|
80
|
-
* @type {Array<number>}
|
81
|
-
* @memberof ClientFacingStream
|
82
|
-
*/
|
83
|
-
resistance?: any;
|
84
|
-
}
|
@@ -1,48 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Vital
|
3
|
-
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
4
|
-
*
|
5
|
-
* OpenAPI spec version: 0.1.0
|
6
|
-
*
|
7
|
-
*
|
8
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
9
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
10
|
-
* Do not edit the class manually.
|
11
|
-
*/
|
12
|
-
/**
|
13
|
-
*
|
14
|
-
* @export
|
15
|
-
* @interface ClientFacingUser
|
16
|
-
*/
|
17
|
-
export interface ClientFacingUser {
|
18
|
-
/**
|
19
|
-
* User key returned by vital create user key request. This key should be stored in your database against the user and used for all interactions with the vital api.
|
20
|
-
* @type {string}
|
21
|
-
* @memberof ClientFacingUser
|
22
|
-
*/
|
23
|
-
userKey: any;
|
24
|
-
/**
|
25
|
-
* Your team id.
|
26
|
-
* @type {string}
|
27
|
-
* @memberof ClientFacingUser
|
28
|
-
*/
|
29
|
-
teamId: any;
|
30
|
-
/**
|
31
|
-
* A unique ID representing the end user. Typically this will be a user ID number from your application. Personally identifiable information, such as an email address or phone number, should not be used in the client_user_id.
|
32
|
-
* @type {string}
|
33
|
-
* @memberof ClientFacingUser
|
34
|
-
*/
|
35
|
-
clientUserId: any;
|
36
|
-
/**
|
37
|
-
* When your item is created
|
38
|
-
* @type {Date}
|
39
|
-
* @memberof ClientFacingUser
|
40
|
-
*/
|
41
|
-
createdOn: any;
|
42
|
-
/**
|
43
|
-
* A list of the users connected sources.
|
44
|
-
* @type {Array<ConnectedSourceClientFacing>}
|
45
|
-
* @memberof ClientFacingUser
|
46
|
-
*/
|
47
|
-
connectedSources: any;
|
48
|
-
}
|
@@ -1,42 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Vital
|
3
|
-
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
4
|
-
*
|
5
|
-
* OpenAPI spec version: 0.1.0
|
6
|
-
*
|
7
|
-
*
|
8
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
9
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
10
|
-
* Do not edit the class manually.
|
11
|
-
*/
|
12
|
-
/**
|
13
|
-
*
|
14
|
-
* @export
|
15
|
-
* @interface ClientFacingWebhook
|
16
|
-
*/
|
17
|
-
export interface ClientFacingWebhook {
|
18
|
-
/**
|
19
|
-
* Id of created webhook
|
20
|
-
* @type {string}
|
21
|
-
* @memberof ClientFacingWebhook
|
22
|
-
*/
|
23
|
-
id: any;
|
24
|
-
/**
|
25
|
-
* URL to receive webhook events
|
26
|
-
* @type {string}
|
27
|
-
* @memberof ClientFacingWebhook
|
28
|
-
*/
|
29
|
-
url: any;
|
30
|
-
/**
|
31
|
-
* Type of events to receive workouts, activity, sleep, body, error
|
32
|
-
* @type {string}
|
33
|
-
* @memberof ClientFacingWebhook
|
34
|
-
*/
|
35
|
-
eventType: any;
|
36
|
-
/**
|
37
|
-
* Time of last event sent
|
38
|
-
* @type {Date}
|
39
|
-
* @memberof ClientFacingWebhook
|
40
|
-
*/
|
41
|
-
lastEventSent?: any;
|
42
|
-
}
|