react-native-spike-sdk 1.0.21 → 1.0.23
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/README.md +90 -27
- package/lib/typescript/DataModels/SpikeActivitiesStreamDataEntry.d.ts +40 -40
- package/lib/typescript/DataModels/SpikeActivitiesStreamDataEntry.d.ts.map +1 -1
- package/lib/typescript/DataModels/SpikeActivitiesSummaryDataEntry.d.ts +16 -16
- package/lib/typescript/DataModels/SpikeActivitiesSummaryDataEntry.d.ts.map +1 -1
- package/lib/typescript/DataModels/SpikeBodyDataEntry.d.ts +21 -22
- package/lib/typescript/DataModels/SpikeBodyDataEntry.d.ts.map +1 -1
- package/lib/typescript/DataModels/SpikeBreathingDataEntry.d.ts +3 -3
- package/lib/typescript/DataModels/SpikeBreathingDataEntry.d.ts.map +1 -1
- package/lib/typescript/DataModels/SpikeCaloriesDataEntry.d.ts +2 -2
- package/lib/typescript/DataModels/SpikeCaloriesDataEntry.d.ts.map +1 -1
- package/lib/typescript/DataModels/SpikeDistanceDataEntry.d.ts +2 -2
- package/lib/typescript/DataModels/SpikeDistanceDataEntry.d.ts.map +1 -1
- package/lib/typescript/DataModels/SpikeGlucoseDataEntry.d.ts +8 -8
- package/lib/typescript/DataModels/SpikeGlucoseDataEntry.d.ts.map +1 -1
- package/lib/typescript/DataModels/SpikeHeartDataEntry.d.ts +10 -10
- package/lib/typescript/DataModels/SpikeHeartDataEntry.d.ts.map +1 -1
- package/lib/typescript/DataModels/SpikeOxygenSaturationDataEntry.d.ts +2 -2
- package/lib/typescript/DataModels/SpikeOxygenSaturationDataEntry.d.ts.map +1 -1
- package/lib/typescript/DataModels/SpikeSleepDataEntry.d.ts +13 -13
- package/lib/typescript/DataModels/SpikeSleepDataEntry.d.ts.map +1 -1
- package/lib/typescript/DataModels/SpikeStepsDataEntry.d.ts +2 -2
- package/lib/typescript/DataModels/SpikeStepsDataEntry.d.ts.map +1 -1
- package/package.json +1 -1
- package/react-native-spike-sdk.podspec +2 -2
- package/src/DataModels/SpikeActivitiesStreamDataEntry.ts +40 -40
- package/src/DataModels/SpikeActivitiesSummaryDataEntry.ts +16 -16
- package/src/DataModels/SpikeBodyDataEntry.ts +21 -22
- package/src/DataModels/SpikeBreathingDataEntry.ts +3 -3
- package/src/DataModels/SpikeCaloriesDataEntry.ts +2 -2
- package/src/DataModels/SpikeDistanceDataEntry.ts +2 -2
- package/src/DataModels/SpikeGlucoseDataEntry.ts +8 -8
- package/src/DataModels/SpikeHeartDataEntry.ts +10 -10
- package/src/DataModels/SpikeOxygenSaturationDataEntry.ts +2 -2
- package/src/DataModels/SpikeSleepDataEntry.ts +13 -13
- package/src/DataModels/SpikeStepsDataEntry.ts +2 -2
package/README.md
CHANGED
|
@@ -43,6 +43,59 @@ Add Health Kit permissions descriptions to your Info.plist file.
|
|
|
43
43
|
<string>We will use your health information to better track workouts.</string>
|
|
44
44
|
```
|
|
45
45
|
|
|
46
|
+
## Android Setup
|
|
47
|
+
|
|
48
|
+
First of all you have to add the required health permissions to a [resource file](https://developer.android.com/guide/topics/resources/providing-resources). You can reuse an existing one or create a new one. That allows you to fully utilise this SDK and to read the necessary data from apps that integrate with HealthConnect.
|
|
49
|
+
|
|
50
|
+
```xml
|
|
51
|
+
<resources>
|
|
52
|
+
<array name="health_permissions">
|
|
53
|
+
<item>androidx.health.permission.Nutrition.READ</item>
|
|
54
|
+
<item>androidx.health.permission.ActiveCaloriesBurned.READ</item>
|
|
55
|
+
<item>androidx.health.permission.TotalCaloriesBurned.READ</item>
|
|
56
|
+
<item>androidx.health.permission.Steps.READ</item>
|
|
57
|
+
<item>androidx.health.permission.Distance.READ</item>
|
|
58
|
+
<item>androidx.health.permission.ElevationGained.READ</item>
|
|
59
|
+
<item>androidx.health.permission.RestingHeartRate.READ</item>
|
|
60
|
+
<item>androidx.health.permission.HeartRateVariabilityRmssd.READ</item>
|
|
61
|
+
<item>androidx.health.permission.FloorsClimbed.READ</item>
|
|
62
|
+
<item>androidx.health.permission.BasalMetabolicRate.READ</item>
|
|
63
|
+
<item>androidx.health.permission.SleepSession.READ</item>
|
|
64
|
+
<item>androidx.health.permission.HeartRate.READ</item>
|
|
65
|
+
<item>androidx.health.permission.ExerciseSession.READ</item>
|
|
66
|
+
<item>androidx.health.permission.Speed.READ</item>
|
|
67
|
+
<item>androidx.health.permission.Power.READ</item>
|
|
68
|
+
<item>androidx.health.permission.OxygenSaturation.READ</item>
|
|
69
|
+
<item>androidx.health.permission.BloodGlucose.READ</item>
|
|
70
|
+
<item>androidx.health.permission.RespiratoryRate.READ</item>
|
|
71
|
+
<item>androidx.health.permission.Weight.READ</item>
|
|
72
|
+
<item>androidx.health.permission.Height.READ</item>
|
|
73
|
+
<item>androidx.health.permission.BodyFat.READ</item>
|
|
74
|
+
<item>androidx.health.permission.LeanBodyMass.READ</item>
|
|
75
|
+
<item>androidx.health.permission.BodyWaterMass.READ</item>
|
|
76
|
+
<item>androidx.health.permission.BodyTemperature.READ</item>
|
|
77
|
+
<item>androidx.health.permission.BloodPressure.READ</item>
|
|
78
|
+
<item>androidx.health.permission.BoneMass.READ</item>
|
|
79
|
+
</array>
|
|
80
|
+
</resources>
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Then reference the permissions to your AndroidManifest.xml file in the activity that will call for health permissions.
|
|
84
|
+
|
|
85
|
+
```xml
|
|
86
|
+
<meta-data
|
|
87
|
+
android:name="health_permissions"
|
|
88
|
+
android:resource="@array/health_permissions" />
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
As well as that you have to add intent filter to your activity definition so that you can request the permissions at runtime.
|
|
92
|
+
|
|
93
|
+
```xml
|
|
94
|
+
<intent-filter>
|
|
95
|
+
<action android:name="androidx.health.ACTION_SHOW_PERMISSIONS_RATIONALE" />
|
|
96
|
+
</intent-filter>
|
|
97
|
+
```
|
|
98
|
+
|
|
46
99
|
## Installation
|
|
47
100
|
|
|
48
101
|
Install the react-native-spike-sdk package from [npm](https://www.npmjs.com/package/react-native-spike-sdk)
|
|
@@ -259,33 +312,43 @@ const conn = Spike.createConnection(
|
|
|
259
312
|
|
|
260
313
|
### SpikeConnection
|
|
261
314
|
|
|
262
|
-
| Class | Method
|
|
263
|
-
|
|
264
|
-
| SpikeConnection | getAppId
|
|
265
|
-
| SpikeConnection | getSpikeEndUserId
|
|
266
|
-
| SpikeConnection | getCustomerEndUserId
|
|
267
|
-
| SpikeConnection | close
|
|
268
|
-
| SpikeConnection | extractData
|
|
269
|
-
| SpikeConnection | extractDataInRange
|
|
270
|
-
| SpikeConnection | pack
|
|
315
|
+
| Class | Method | Description | iOS | Android |
|
|
316
|
+
|-----------------|------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------|---------|
|
|
317
|
+
| SpikeConnection | getAppId | Retrieves the unique Spike application identifier.**Returns**: string | yes | yes |
|
|
318
|
+
| SpikeConnection | getSpikeEndUserId | Retrieves the unique identifier assigned to the end-user by Spike.**Returns**: string | yes | yes |
|
|
319
|
+
| SpikeConnection | getCustomerEndUserId | Retrieves the unique identifier assigned to the end-user by the customer.**Returns**: string | yes | yes |
|
|
320
|
+
| SpikeConnection | close | Terminates any ongoing connections with Spike’s backend servers, clears any caches, and removes provided user details and tokens from the memory. Once the connection is closed, it cannot be used, and any method other than close() will throw a _SpikeConnectionIsClosed_ exception. | yes | yes |
|
|
321
|
+
| SpikeConnection | extractData | Extracts local device data for the current date in the end-user’s time zone.**Parameters**: dataType(SpikeDataType)**Returns**: An instance of SpikeData. The concrete type will depend on the data type requested. | yes | yes |
|
|
322
|
+
| SpikeConnection | extractDataInRange | Extracts local device data for the given time range. \***\*The maximum allowed single-query time interval is 7 days. If required, data of any longer time period can be accessed by iterating multiple queries of 7 days.\*\*\*\***Parameters**: dataType(SpikeDataType), from(DateTime), to(DateTime)**Returns\*\*: An instance of SpikeData. The concrete type will depend on the data type requested. | yes | yes |
|
|
323
|
+
| SpikeConnection | pack | Creates a string representation of the connection state. This method facilitates the persistence of connections.**Returns**: String | yes | yes |
|
|
324
|
+
| SpikeConnection | manageHealthConnect | Opens your device's HealthConnect menu, where you can switch on and off data access for the app as well as delete data. | no | yes |
|
|
325
|
+
| SpikeConnection | checkPermissionsGranted | Initiates a check on whether all health permissions have been granted to ensure proper functioning of the SDK | no | yes |
|
|
326
|
+
| SpikeConnection | getHealthConnectAvailability | Provides information on whether HealthConnect is available on the device. | no | yes |
|
|
327
|
+
| SpikeConnection | revokeAllPermissions | Revokes all granted health permissions for the application. | no | yes |
|
|
328
|
+
| SpikeConnection | requestHealthPermissions | Requests all the supported health read permissions from HealthConnect. | no | yes |
|
|
271
329
|
|
|
272
330
|
### SpikeWebhookConnection
|
|
273
331
|
|
|
274
|
-
| Class | Method | Description |
|
|
275
|
-
| ----------------------
|
|
276
|
-
| SpikeWebhookConnection | getAppId | Retrieves the unique Spike application identifier.**Returns**: string |
|
|
277
|
-
| SpikeWebhookConnection | getSpikeEndUserId | Retrieves the unique identifier assigned to the end-user by Spike.**Returns**: string |
|
|
278
|
-
| SpikeWebhookConnection | getCustomerEndUserId | Retrieves the unique identifier assigned to the end-user by the customer.**Returns**: string |
|
|
279
|
-
| SpikeWebhookConnection | getCallbackUrl | Returns the URL that will receive webhook notifications. |
|
|
280
|
-
| SpikeWebhookConnection | close | Terminates any ongoing connections with Spike’s backend servers, clears any caches, and removes provided user details and tokens from the memory. Once the connection is closed, it cannot be used, and any method other than close() will throw a _SpikeConnectionIsClosed_ exception. |
|
|
281
|
-
| SpikeWebhookConnection | extractData | Extracts local device data for the current date in the end-user’s time zone.**Parameters**: dataType(SpikeDataType)**Returns**: An instance of SpikeData. The concrete type will depend on the data type requested. |
|
|
282
|
-
| SpikeWebhookConnection | extractDataInRange | Extracts local device data for the given time range. \***\*The maximum allowed single-query time interval is 7 days. If required, data of any longer time period can be accessed by iterating multiple queries of 7 days.\*\*\*\***Parameters**: dataType(SpikeDataType), from(DateTime), to(DateTime)**Returns\*\*: An instance of SpikeData. The concrete type will depend on the data type requested. |
|
|
283
|
-
| SpikeWebhookConnection | extractAndPostData | Extracts local device data for the current date in the local user time zone and sends it as a webhook notification to the customer’s backend.**Parameters**: dataType(SpikeDataType) |
|
|
284
|
-
| SpikeWebhookConnection | extractAndPostDataInRange | Extracts local device data for the given time range and sends it as a webhook notification to the customer’s backend.**Parameters**: dataType(SpikeDataType), from(DateTime), to(DateTime) |
|
|
285
|
-
| SpikeWebhookConnection | enableBackgroundDelivery
 | Enables background data delivery for selected data types. No-op on Android (for now).**Parameters**: dataType(SpikeDataType) |
|
|
286
|
-
| SpikeWebhookConnection | getBackgroundDeliveryDataTypes | Gets the data types for which background delivery is enabled. If background delivery is not enabled, an empty set is returned.**Returns**: Returns: A collection (a set) of SpikeDataType objects. |
|
|
287
|
-
| SpikeWebhookConnection | pack | Creates a string representation of the connection state. This method facilitates the persistence of connections.**Returns**: String |
|
|
288
|
-
| SpikeWebhookConnection | setListener | Sets a listener that is to handle notifications from the background delivery process.**Parameters: **listener(SpikeWebhookConnectionListener)\* If listener is not null, then any existing listener is replaced |
|
|
332
|
+
| Class | Method | Description | iOS | Android |
|
|
333
|
+
| ---------------------- |--------------------------------| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |------|---------|
|
|
334
|
+
| SpikeWebhookConnection | getAppId | Retrieves the unique Spike application identifier.**Returns**: string | yes | yes |
|
|
335
|
+
| SpikeWebhookConnection | getSpikeEndUserId | Retrieves the unique identifier assigned to the end-user by Spike.**Returns**: string | yes | yes |
|
|
336
|
+
| SpikeWebhookConnection | getCustomerEndUserId | Retrieves the unique identifier assigned to the end-user by the customer.**Returns**: string | yes | yes |
|
|
337
|
+
| SpikeWebhookConnection | getCallbackUrl | Returns the URL that will receive webhook notifications. | yes | yes |
|
|
338
|
+
| SpikeWebhookConnection | close | Terminates any ongoing connections with Spike’s backend servers, clears any caches, and removes provided user details and tokens from the memory. Once the connection is closed, it cannot be used, and any method other than close() will throw a _SpikeConnectionIsClosed_ exception. | yes | yes |
|
|
339
|
+
| SpikeWebhookConnection | extractData | Extracts local device data for the current date in the end-user’s time zone.**Parameters**: dataType(SpikeDataType)**Returns**: An instance of SpikeData. The concrete type will depend on the data type requested. | yes | yes |
|
|
340
|
+
| SpikeWebhookConnection | extractDataInRange | Extracts local device data for the given time range. \***\*The maximum allowed single-query time interval is 7 days. If required, data of any longer time period can be accessed by iterating multiple queries of 7 days.\*\*\*\***Parameters**: dataType(SpikeDataType), from(DateTime), to(DateTime)**Returns\*\*: An instance of SpikeData. The concrete type will depend on the data type requested. | yes | yes |
|
|
341
|
+
| SpikeWebhookConnection | extractAndPostData | Extracts local device data for the current date in the local user time zone and sends it as a webhook notification to the customer’s backend.**Parameters**: dataType(SpikeDataType) | yes | yes |
|
|
342
|
+
| SpikeWebhookConnection | extractAndPostDataInRange | Extracts local device data for the given time range and sends it as a webhook notification to the customer’s backend.**Parameters**: dataType(SpikeDataType), from(DateTime), to(DateTime) | yes | yes |
|
|
343
|
+
| SpikeWebhookConnection | enableBackgroundDelivery
 | Enables background data delivery for selected data types. No-op on Android (for now).**Parameters**: dataType(SpikeDataType) | yes | no |
|
|
344
|
+
| SpikeWebhookConnection | getBackgroundDeliveryDataTypes | Gets the data types for which background delivery is enabled. If background delivery is not enabled, an empty set is returned.**Returns**: Returns: A collection (a set) of SpikeDataType objects. | yes | no |
|
|
345
|
+
| SpikeWebhookConnection | pack | Creates a string representation of the connection state. This method facilitates the persistence of connections.**Returns**: String | yes | no |
|
|
346
|
+
| SpikeWebhookConnection | setListener | Sets a listener that is to handle notifications from the background delivery process.**Parameters: **listener(SpikeWebhookConnectionListener)\* If listener is not null, then any existing listener is replaced | yes | no |
|
|
347
|
+
| SpikeWebhookConnection | manageHealthConnect | Opens your device's HealthConnect menu, where you can switch on and off data access for the app as well as delete data. | no | yes |
|
|
348
|
+
| SpikeWebhookConnection | checkPermissionsGranted | Initiates a check on whether all health permissions have been granted to ensure proper functioning of the SDK | no | yes |
|
|
349
|
+
| SpikeWebhookConnection | getHealthConnectAvailability | Provides information on whether HealthConnect is available on the device. | no | yes |
|
|
350
|
+
| SpikeWebhookConnection | revokeAllPermissions | Revokes all granted health permissions for the application. | no | yes |
|
|
351
|
+
| SpikeWebhookConnection | requestHealthPermissions | Requests all the supported health read permissions from HealthConnect. | no | yes |
|
|
289
352
|
|
|
290
353
|
- If listener is null, then any existing listener is removed |
|
|
291
354
|
|
|
@@ -293,9 +356,9 @@ const conn = Spike.createConnection(
|
|
|
293
356
|
|
|
294
357
|
Abstract class allowing to receive notifications from the background data delivery process.
|
|
295
358
|
|
|
296
|
-
| Class | Method | Description |
|
|
297
|
-
| ------------------------------ | --------------- | ------------------------------------------------------------------------------- |
|
|
298
|
-
| SpikeWebhookConnectionListener | onBackgroundLog | Invoked on an asynchronous data submission failure.**Parameters**: log (String) |
|
|
359
|
+
| Class | Method | Description | iOS | Android |
|
|
360
|
+
| ------------------------------ | --------------- | ------------------------------------------------------------------------------- | --- |---------|
|
|
361
|
+
| SpikeWebhookConnectionListener | onBackgroundLog | Invoked on an asynchronous data submission failure.**Parameters**: log (String) | yes | no |
|
|
299
362
|
|
|
300
363
|
# Errors and Exceptions
|
|
301
364
|
|
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
export type SpikeActivitiesStreamDataEntry = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
2
|
+
timeStart?: string;
|
|
3
|
+
timeEnd?: string;
|
|
4
|
+
timezoneOffset?: number;
|
|
5
|
+
activityName?: string;
|
|
6
|
+
activityTypeId?: number;
|
|
7
|
+
providerActivityName?: string;
|
|
8
|
+
providerActivityTypeId?: string;
|
|
9
|
+
providerActivityId?: number;
|
|
10
|
+
providerUserId?: string;
|
|
11
|
+
avgHr?: number;
|
|
12
|
+
maxHr?: number;
|
|
13
|
+
minHr?: number;
|
|
14
|
+
avgHrVariability?: number;
|
|
15
15
|
calories?: number;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
hrZones?: HRZone[];
|
|
17
|
+
movingTime?: number;
|
|
18
|
+
totalElevationGain?: number;
|
|
19
|
+
totalElevationLoss?: number;
|
|
20
|
+
elevHigh?: number;
|
|
21
|
+
elevLow?: number;
|
|
22
22
|
distance?: number;
|
|
23
23
|
steps?: number;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
avgSpeed?: number;
|
|
25
|
+
maxSpeed?: number;
|
|
26
|
+
averageWatts?: number;
|
|
27
|
+
deviceWatts?: boolean;
|
|
28
|
+
maxWatts?: number;
|
|
29
|
+
weightedAverageWatts?: number;
|
|
30
|
+
maxPaceInMinutesPerKilometer?: number;
|
|
31
31
|
map?: string;
|
|
32
32
|
samples?: Sample[];
|
|
33
33
|
laps?: Lap[];
|
|
34
34
|
manual?: boolean;
|
|
35
|
-
|
|
35
|
+
originalSource?: string[];
|
|
36
36
|
source?: string;
|
|
37
|
-
|
|
37
|
+
dataType?: string;
|
|
38
38
|
};
|
|
39
39
|
type HRZone = {
|
|
40
40
|
max?: number;
|
|
@@ -43,24 +43,24 @@ type HRZone = {
|
|
|
43
43
|
name?: string;
|
|
44
44
|
};
|
|
45
45
|
type Sample = {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
46
|
+
timeStart?: string;
|
|
47
|
+
timeEnd?: string;
|
|
48
|
+
timerDuration?: number;
|
|
49
|
+
movingTime?: number;
|
|
50
|
+
latitudeInDegree?: number;
|
|
51
|
+
longitudeInDegree?: number;
|
|
52
52
|
elevation?: number;
|
|
53
|
-
|
|
53
|
+
airTemperature?: number;
|
|
54
54
|
heartrate?: number;
|
|
55
55
|
speed?: number;
|
|
56
|
-
|
|
56
|
+
stepsPerMinute?: number;
|
|
57
57
|
distance?: number;
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
powerInWatts?: number;
|
|
59
|
+
bikeCadenceRpm?: number;
|
|
60
|
+
swimCadenceStrokesPerMinute?: number;
|
|
61
61
|
};
|
|
62
62
|
type Lap = {
|
|
63
|
-
|
|
63
|
+
timeStart?: string;
|
|
64
64
|
};
|
|
65
65
|
export {};
|
|
66
66
|
//# sourceMappingURL=SpikeActivitiesStreamDataEntry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpikeActivitiesStreamDataEntry.d.ts","sourceRoot":"","sources":["../../../src/DataModels/SpikeActivitiesStreamDataEntry.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,8BAA8B,GAAG;IAC3C,
|
|
1
|
+
{"version":3,"file":"SpikeActivitiesStreamDataEntry.d.ts","sourceRoot":"","sources":["../../../src/DataModels/SpikeActivitiesStreamDataEntry.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,8BAA8B,GAAG;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;IACb,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,KAAK,MAAM,GAAG;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,KAAK,MAAM,GAAG;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,2BAA2B,CAAC,EAAE,MAAM,CAAC;CACtC,CAAC;AAEF,KAAK,GAAG,GAAG;IACT,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC"}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
export type SpikeActivitiesSummaryDataEntry = {
|
|
2
2
|
date?: string;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
caloriesBmr?: number;
|
|
4
|
+
caloriesTotal?: number;
|
|
5
|
+
caloriesActive?: number;
|
|
6
6
|
steps?: number;
|
|
7
|
-
|
|
7
|
+
dailyMovement?: number;
|
|
8
8
|
distance?: number;
|
|
9
9
|
low?: number;
|
|
10
10
|
medium?: number;
|
|
11
11
|
high?: number;
|
|
12
12
|
elevation?: number;
|
|
13
|
-
|
|
13
|
+
restingHr?: number;
|
|
14
14
|
floors?: number;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
15
|
+
sedentaryMinutes?: number;
|
|
16
|
+
minHr?: number;
|
|
17
|
+
avgHr?: number;
|
|
18
|
+
maxHr?: number;
|
|
19
|
+
avgStressLevel?: number;
|
|
20
|
+
maxStressLevel?: number;
|
|
21
|
+
stressDuration?: number;
|
|
22
|
+
lowStressDuration?: number;
|
|
23
|
+
mediumStressDuration?: number;
|
|
24
|
+
highStressDuration?: number;
|
|
25
25
|
source?: string;
|
|
26
|
-
|
|
26
|
+
dataType?: string;
|
|
27
27
|
};
|
|
28
28
|
//# sourceMappingURL=SpikeActivitiesSummaryDataEntry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpikeActivitiesSummaryDataEntry.d.ts","sourceRoot":"","sources":["../../../src/DataModels/SpikeActivitiesSummaryDataEntry.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,+BAA+B,GAAG;IAC5C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,
|
|
1
|
+
{"version":3,"file":"SpikeActivitiesSummaryDataEntry.d.ts","sourceRoot":"","sources":["../../../src/DataModels/SpikeActivitiesSummaryDataEntry.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,+BAA+B,GAAG;IAC5C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"}
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
export type SpikeBodyDataEntry = {
|
|
2
2
|
date?: string;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
blood_pressure_data?: BloodPressureDataObject[];
|
|
3
|
+
bodyData?: BodyData;
|
|
4
|
+
temperatureData?: TemperatureData;
|
|
5
|
+
bloodPressureData?: BloodPressureDataObject[];
|
|
7
6
|
source?: string;
|
|
8
7
|
};
|
|
9
8
|
type BodyData = {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
weightKg?: BodyDataObject;
|
|
10
|
+
heightCm?: BodyDataObject;
|
|
11
|
+
bmi?: BodyDataObject;
|
|
12
|
+
bodyFatPercentage?: BodyDataObject;
|
|
13
|
+
boneMassG?: BodyDataObject;
|
|
14
|
+
muscleMassG?: BodyDataObject;
|
|
15
|
+
waterPercentage?: BodyDataObject;
|
|
17
16
|
};
|
|
18
17
|
type BodyDataObject = {
|
|
19
18
|
value?: number;
|
|
@@ -24,32 +23,32 @@ type BodyDataObjectItem = {
|
|
|
24
23
|
value?: number;
|
|
25
24
|
};
|
|
26
25
|
type TemperatureData = {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
26
|
+
skinTemperature?: TemperatureDataObject;
|
|
27
|
+
coreTemperature?: TemperatureDataObject;
|
|
28
|
+
baselineSkinTemperature?: TemperatureDataObject;
|
|
29
|
+
baselineCoreTemperature?: TemperatureDataObject;
|
|
30
|
+
diffFromBaselineTemperature?: DiffTemperatureDataObject;
|
|
32
31
|
};
|
|
33
32
|
type TemperatureDataObject = {
|
|
34
|
-
|
|
33
|
+
temperatureCelsius?: number;
|
|
35
34
|
timeseries?: TemperatureDataObjectItem[];
|
|
36
35
|
};
|
|
37
36
|
type TemperatureDataObjectItem = {
|
|
38
37
|
timestamp?: string;
|
|
39
|
-
|
|
38
|
+
temperatureCelsius?: number;
|
|
40
39
|
};
|
|
41
40
|
type DiffTemperatureDataObject = {
|
|
42
|
-
|
|
41
|
+
diffTemperatureCelsius?: number;
|
|
43
42
|
timeseries?: DiffTemperatureDataObjectItem[];
|
|
44
43
|
};
|
|
45
44
|
type DiffTemperatureDataObjectItem = {
|
|
46
45
|
timestamp?: string;
|
|
47
|
-
|
|
46
|
+
diffTemperatureCelsius?: number;
|
|
48
47
|
};
|
|
49
48
|
type BloodPressureDataObject = {
|
|
50
49
|
timestamp?: string;
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
systolicBloodPressure?: number;
|
|
51
|
+
diastolicBloodPressure?: number;
|
|
53
52
|
};
|
|
54
53
|
export {};
|
|
55
54
|
//# sourceMappingURL=SpikeBodyDataEntry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpikeBodyDataEntry.d.ts","sourceRoot":"","sources":["../../../src/DataModels/SpikeBodyDataEntry.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,
|
|
1
|
+
{"version":3,"file":"SpikeBodyDataEntry.d.ts","sourceRoot":"","sources":["../../../src/DataModels/SpikeBodyDataEntry.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,iBAAiB,CAAC,EAAE,uBAAuB,EAAE,CAAC;IAC9C,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,KAAK,QAAQ,GAAG;IACd,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,GAAG,CAAC,EAAE,cAAc,CAAC;IACrB,iBAAiB,CAAC,EAAE,cAAc,CAAC;IACnC,SAAS,CAAC,EAAE,cAAc,CAAC;IAC3B,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B,eAAe,CAAC,EAAE,cAAc,CAAC;CAClC,CAAC;AAEF,KAAK,cAAc,GAAG;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,kBAAkB,EAAE,CAAC;CACnC,CAAC;AAEF,KAAK,kBAAkB,GAAG;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB,eAAe,CAAC,EAAE,qBAAqB,CAAC;IACxC,eAAe,CAAC,EAAE,qBAAqB,CAAC;IACxC,uBAAuB,CAAC,EAAE,qBAAqB,CAAC;IAChD,uBAAuB,CAAC,EAAE,qBAAqB,CAAC;IAChD,2BAA2B,CAAC,EAAE,yBAAyB,CAAC;CACzD,CAAC;AAEF,KAAK,qBAAqB,GAAG;IAC3B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,UAAU,CAAC,EAAE,yBAAyB,EAAE,CAAC;CAC1C,CAAC;AAEF,KAAK,yBAAyB,GAAG;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF,KAAK,yBAAyB,GAAG;IAC/B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,UAAU,CAAC,EAAE,6BAA6B,EAAE,CAAC;CAC9C,CAAC;AAEF,KAAK,6BAA6B,GAAG;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC,CAAC;AAEF,KAAK,uBAAuB,GAAG;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export type SpikeBreathingDataEntry = {
|
|
2
2
|
date?: string;
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
avgValue?: number;
|
|
4
|
+
intradayData?: IntradayData[];
|
|
5
5
|
source?: string;
|
|
6
|
-
|
|
6
|
+
dataType?: string;
|
|
7
7
|
};
|
|
8
8
|
type IntradayData = {
|
|
9
9
|
time: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpikeBreathingDataEntry.d.ts","sourceRoot":"","sources":["../../../src/DataModels/SpikeBreathingDataEntry.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,
|
|
1
|
+
{"version":3,"file":"SpikeBreathingDataEntry.d.ts","sourceRoot":"","sources":["../../../src/DataModels/SpikeBreathingDataEntry.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,YAAY,EAAE,CAAC;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,KAAK,YAAY,GAAG;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpikeCaloriesDataEntry.d.ts","sourceRoot":"","sources":["../../../src/DataModels/SpikeCaloriesDataEntry.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,
|
|
1
|
+
{"version":3,"file":"SpikeCaloriesDataEntry.d.ts","sourceRoot":"","sources":["../../../src/DataModels/SpikeCaloriesDataEntry.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,YAAY,EAAE,CAAC;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AACF,KAAK,YAAY,GAAG;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpikeDistanceDataEntry.d.ts","sourceRoot":"","sources":["../../../src/DataModels/SpikeDistanceDataEntry.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,
|
|
1
|
+
{"version":3,"file":"SpikeDistanceDataEntry.d.ts","sourceRoot":"","sources":["../../../src/DataModels/SpikeDistanceDataEntry.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,YAAY,EAAE,CAAC;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,KAAK,YAAY,GAAG;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC"}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
export type SpikeGlucoseDataEntry = {
|
|
2
2
|
date?: string;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
avgValue?: number;
|
|
4
|
+
minValue?: number;
|
|
5
|
+
maxValue?: number;
|
|
6
6
|
unit?: string;
|
|
7
7
|
source?: string;
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
intradayData?: IntradayData[];
|
|
9
|
+
dataType?: string;
|
|
10
10
|
};
|
|
11
11
|
type IntradayData = {
|
|
12
12
|
time: string;
|
|
13
13
|
value?: number;
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
realtimeValue?: number;
|
|
15
|
+
smoothedValue?: number;
|
|
16
16
|
status?: string;
|
|
17
17
|
trend?: string;
|
|
18
|
-
|
|
18
|
+
trendRate?: number;
|
|
19
19
|
};
|
|
20
20
|
export {};
|
|
21
21
|
//# sourceMappingURL=SpikeGlucoseDataEntry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpikeGlucoseDataEntry.d.ts","sourceRoot":"","sources":["../../../src/DataModels/SpikeGlucoseDataEntry.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,
|
|
1
|
+
{"version":3,"file":"SpikeGlucoseDataEntry.d.ts","sourceRoot":"","sources":["../../../src/DataModels/SpikeGlucoseDataEntry.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,YAAY,EAAE,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,KAAK,YAAY,GAAG;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC"}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
export type SpikeHeartDataEntry = {
|
|
2
2
|
date?: string;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
restingHeartRate?: number;
|
|
4
|
+
minHeartRate?: number;
|
|
5
|
+
avgHeartRate?: number;
|
|
6
|
+
maxHeartRate?: number;
|
|
7
|
+
heartRateSamples?: Sample[];
|
|
8
|
+
heartRateVariability?: Variability;
|
|
9
|
+
intradayHRV?: IntradayHrv[];
|
|
10
10
|
source?: string;
|
|
11
|
-
|
|
11
|
+
dataType?: string;
|
|
12
12
|
};
|
|
13
13
|
type Sample = {
|
|
14
14
|
time: string;
|
|
15
15
|
value?: number;
|
|
16
16
|
};
|
|
17
17
|
type Variability = {
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
dayHRV?: number;
|
|
19
|
+
sleepHRV?: number;
|
|
20
20
|
};
|
|
21
21
|
type IntradayHrv = {
|
|
22
22
|
time: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpikeHeartDataEntry.d.ts","sourceRoot":"","sources":["../../../src/DataModels/SpikeHeartDataEntry.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,
|
|
1
|
+
{"version":3,"file":"SpikeHeartDataEntry.d.ts","sourceRoot":"","sources":["../../../src/DataModels/SpikeHeartDataEntry.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,oBAAoB,CAAC,EAAE,WAAW,CAAC;IACnC,WAAW,CAAC,EAAE,WAAW,EAAE,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,KAAK,MAAM,GAAG;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,CAAC;AAEF,KAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;CACb,CAAC"}
|
|
@@ -3,9 +3,9 @@ export type SpikeOxygenSaturationDataEntry = {
|
|
|
3
3
|
avg?: number;
|
|
4
4
|
min?: number;
|
|
5
5
|
max?: number;
|
|
6
|
-
|
|
6
|
+
intradayData?: IntradayData[];
|
|
7
7
|
source?: string;
|
|
8
|
-
|
|
8
|
+
dataType?: string;
|
|
9
9
|
};
|
|
10
10
|
type IntradayData = {
|
|
11
11
|
time: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpikeOxygenSaturationDataEntry.d.ts","sourceRoot":"","sources":["../../../src/DataModels/SpikeOxygenSaturationDataEntry.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,8BAA8B,GAAG;IAC3C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,
|
|
1
|
+
{"version":3,"file":"SpikeOxygenSaturationDataEntry.d.ts","sourceRoot":"","sources":["../../../src/DataModels/SpikeOxygenSaturationDataEntry.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,8BAA8B,GAAG;IAC3C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,YAAY,EAAE,CAAC;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,KAAK,YAAY,GAAG;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC"}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
export type SpikeSleepDataEntry = {
|
|
2
2
|
date?: string;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
bedtimeStart?: string;
|
|
4
|
+
bedtimeEnd?: string;
|
|
5
|
+
timezoneOffset?: number;
|
|
6
|
+
bedtimeDuration?: number;
|
|
7
|
+
totalSleep?: number;
|
|
8
8
|
awake?: number;
|
|
9
9
|
light?: number;
|
|
10
10
|
rem?: number;
|
|
11
11
|
deep?: number;
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
hrLowest?: number;
|
|
13
|
+
hrAverage?: number;
|
|
14
14
|
efficiency?: number;
|
|
15
15
|
latency?: number;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
temperatureDelta?: number;
|
|
17
|
+
averageHrv?: number;
|
|
18
|
+
respiratoryRate?: number;
|
|
19
|
+
standardizedSleepScore?: number;
|
|
20
|
+
sourceSpecificSleepScore?: number;
|
|
21
21
|
source?: string;
|
|
22
22
|
levels?: Levels[];
|
|
23
23
|
};
|
|
24
24
|
type Levels = {
|
|
25
|
-
|
|
25
|
+
dateTime?: string;
|
|
26
26
|
level?: string;
|
|
27
27
|
seconds?: number;
|
|
28
28
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpikeSleepDataEntry.d.ts","sourceRoot":"","sources":["../../../src/DataModels/SpikeSleepDataEntry.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,
|
|
1
|
+
{"version":3,"file":"SpikeSleepDataEntry.d.ts","sourceRoot":"","sources":["../../../src/DataModels/SpikeSleepDataEntry.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC;AAEF,KAAK,MAAM,GAAG;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpikeStepsDataEntry.d.ts","sourceRoot":"","sources":["../../../src/DataModels/SpikeStepsDataEntry.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,
|
|
1
|
+
{"version":3,"file":"SpikeStepsDataEntry.d.ts","sourceRoot":"","sources":["../../../src/DataModels/SpikeStepsDataEntry.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,YAAY,EAAE,CAAC;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AACF,KAAK,YAAY,GAAG;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC"}
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@ folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1
|
|
|
5
5
|
|
|
6
6
|
Pod::Spec.new do |s|
|
|
7
7
|
s.name = "react-native-spike-sdk"
|
|
8
|
-
s.version = "1.0.
|
|
8
|
+
s.version = "1.0.23"
|
|
9
9
|
s.summary = "Spike API for health and productivity data from wearables and IoT devices"
|
|
10
10
|
|
|
11
11
|
s.description = <<-DESC
|
|
@@ -25,7 +25,7 @@ Pod::Spec.new do |s|
|
|
|
25
25
|
s.swift_version = "5"
|
|
26
26
|
|
|
27
27
|
s.dependency "React-Core"
|
|
28
|
-
s.dependency "SpikeSDK", "1.0.
|
|
28
|
+
s.dependency "SpikeSDK", "1.0.24"
|
|
29
29
|
|
|
30
30
|
# Don't install the dependencies when we run `pod install` in the old architecture.
|
|
31
31
|
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
|
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
export type SpikeActivitiesStreamDataEntry = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
2
|
+
timeStart?: string;
|
|
3
|
+
timeEnd?: string;
|
|
4
|
+
timezoneOffset?: number;
|
|
5
|
+
activityName?: string;
|
|
6
|
+
activityTypeId?: number;
|
|
7
|
+
providerActivityName?: string;
|
|
8
|
+
providerActivityTypeId?: string;
|
|
9
|
+
providerActivityId?: number;
|
|
10
|
+
providerUserId?: string;
|
|
11
|
+
avgHr?: number;
|
|
12
|
+
maxHr?: number;
|
|
13
|
+
minHr?: number;
|
|
14
|
+
avgHrVariability?: number;
|
|
15
15
|
calories?: number;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
hrZones?: HRZone[];
|
|
17
|
+
movingTime?: number;
|
|
18
|
+
totalElevationGain?: number;
|
|
19
|
+
totalElevationLoss?: number;
|
|
20
|
+
elevHigh?: number;
|
|
21
|
+
elevLow?: number;
|
|
22
22
|
distance?: number;
|
|
23
23
|
steps?: number;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
avgSpeed?: number;
|
|
25
|
+
maxSpeed?: number;
|
|
26
|
+
averageWatts?: number;
|
|
27
|
+
deviceWatts?: boolean;
|
|
28
|
+
maxWatts?: number;
|
|
29
|
+
weightedAverageWatts?: number;
|
|
30
|
+
maxPaceInMinutesPerKilometer?: number;
|
|
31
31
|
map?: string;
|
|
32
32
|
samples?: Sample[];
|
|
33
33
|
laps?: Lap[];
|
|
34
34
|
manual?: boolean;
|
|
35
|
-
|
|
35
|
+
originalSource?: string[];
|
|
36
36
|
source?: string;
|
|
37
|
-
|
|
37
|
+
dataType?: string;
|
|
38
38
|
};
|
|
39
39
|
|
|
40
40
|
type HRZone = {
|
|
@@ -45,23 +45,23 @@ type HRZone = {
|
|
|
45
45
|
};
|
|
46
46
|
|
|
47
47
|
type Sample = {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
48
|
+
timeStart?: string;
|
|
49
|
+
timeEnd?: string;
|
|
50
|
+
timerDuration?: number;
|
|
51
|
+
movingTime?: number;
|
|
52
|
+
latitudeInDegree?: number;
|
|
53
|
+
longitudeInDegree?: number;
|
|
54
54
|
elevation?: number;
|
|
55
|
-
|
|
55
|
+
airTemperature?: number;
|
|
56
56
|
heartrate?: number;
|
|
57
57
|
speed?: number;
|
|
58
|
-
|
|
58
|
+
stepsPerMinute?: number;
|
|
59
59
|
distance?: number;
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
powerInWatts?: number;
|
|
61
|
+
bikeCadenceRpm?: number;
|
|
62
|
+
swimCadenceStrokesPerMinute?: number;
|
|
63
63
|
};
|
|
64
64
|
|
|
65
65
|
type Lap = {
|
|
66
|
-
|
|
66
|
+
timeStart?: string;
|
|
67
67
|
};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
export type SpikeActivitiesSummaryDataEntry = {
|
|
2
2
|
date?: string;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
caloriesBmr?: number;
|
|
4
|
+
caloriesTotal?: number;
|
|
5
|
+
caloriesActive?: number;
|
|
6
6
|
steps?: number;
|
|
7
|
-
|
|
7
|
+
dailyMovement?: number;
|
|
8
8
|
distance?: number;
|
|
9
9
|
low?: number;
|
|
10
10
|
medium?: number;
|
|
11
11
|
high?: number;
|
|
12
12
|
elevation?: number;
|
|
13
|
-
|
|
13
|
+
restingHr?: number;
|
|
14
14
|
floors?: number;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
15
|
+
sedentaryMinutes?: number;
|
|
16
|
+
minHr?: number;
|
|
17
|
+
avgHr?: number;
|
|
18
|
+
maxHr?: number;
|
|
19
|
+
avgStressLevel?: number;
|
|
20
|
+
maxStressLevel?: number;
|
|
21
|
+
stressDuration?: number;
|
|
22
|
+
lowStressDuration?: number;
|
|
23
|
+
mediumStressDuration?: number;
|
|
24
|
+
highStressDuration?: number;
|
|
25
25
|
source?: string;
|
|
26
|
-
|
|
26
|
+
dataType?: string;
|
|
27
27
|
};
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
export type SpikeBodyDataEntry = {
|
|
2
2
|
date?: string;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
blood_pressure_data?: BloodPressureDataObject[];
|
|
3
|
+
bodyData?: BodyData;
|
|
4
|
+
temperatureData?: TemperatureData;
|
|
5
|
+
bloodPressureData?: BloodPressureDataObject[];
|
|
7
6
|
source?: string;
|
|
8
7
|
};
|
|
9
8
|
|
|
10
9
|
type BodyData = {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
10
|
+
weightKg?: BodyDataObject;
|
|
11
|
+
heightCm?: BodyDataObject;
|
|
12
|
+
bmi?: BodyDataObject;
|
|
13
|
+
bodyFatPercentage?: BodyDataObject;
|
|
14
|
+
boneMassG?: BodyDataObject;
|
|
15
|
+
muscleMassG?: BodyDataObject;
|
|
16
|
+
waterPercentage?: BodyDataObject;
|
|
18
17
|
};
|
|
19
18
|
|
|
20
19
|
type BodyDataObject = {
|
|
@@ -28,35 +27,35 @@ type BodyDataObjectItem = {
|
|
|
28
27
|
};
|
|
29
28
|
|
|
30
29
|
type TemperatureData = {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
30
|
+
skinTemperature?: TemperatureDataObject;
|
|
31
|
+
coreTemperature?: TemperatureDataObject;
|
|
32
|
+
baselineSkinTemperature?: TemperatureDataObject;
|
|
33
|
+
baselineCoreTemperature?: TemperatureDataObject;
|
|
34
|
+
diffFromBaselineTemperature?: DiffTemperatureDataObject;
|
|
36
35
|
};
|
|
37
36
|
|
|
38
37
|
type TemperatureDataObject = {
|
|
39
|
-
|
|
38
|
+
temperatureCelsius?: number;
|
|
40
39
|
timeseries?: TemperatureDataObjectItem[];
|
|
41
40
|
};
|
|
42
41
|
|
|
43
42
|
type TemperatureDataObjectItem = {
|
|
44
43
|
timestamp?: string;
|
|
45
|
-
|
|
44
|
+
temperatureCelsius?: number;
|
|
46
45
|
};
|
|
47
46
|
|
|
48
47
|
type DiffTemperatureDataObject = {
|
|
49
|
-
|
|
48
|
+
diffTemperatureCelsius?: number;
|
|
50
49
|
timeseries?: DiffTemperatureDataObjectItem[];
|
|
51
50
|
};
|
|
52
51
|
|
|
53
52
|
type DiffTemperatureDataObjectItem = {
|
|
54
53
|
timestamp?: string;
|
|
55
|
-
|
|
54
|
+
diffTemperatureCelsius?: number;
|
|
56
55
|
};
|
|
57
56
|
|
|
58
57
|
type BloodPressureDataObject = {
|
|
59
58
|
timestamp?: string;
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
systolicBloodPressure?: number;
|
|
60
|
+
diastolicBloodPressure?: number;
|
|
62
61
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export type SpikeBreathingDataEntry = {
|
|
2
2
|
date?: string;
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
avgValue?: number;
|
|
4
|
+
intradayData?: IntradayData[];
|
|
5
5
|
source?: string;
|
|
6
|
-
|
|
6
|
+
dataType?: string;
|
|
7
7
|
};
|
|
8
8
|
|
|
9
9
|
type IntradayData = {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
export type SpikeGlucoseDataEntry = {
|
|
2
2
|
date?: string;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
avgValue?: number;
|
|
4
|
+
minValue?: number;
|
|
5
|
+
maxValue?: number;
|
|
6
6
|
unit?: string;
|
|
7
7
|
source?: string;
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
intradayData?: IntradayData[];
|
|
9
|
+
dataType?: string;
|
|
10
10
|
};
|
|
11
11
|
|
|
12
12
|
type IntradayData = {
|
|
13
13
|
time: string;
|
|
14
14
|
value?: number;
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
realtimeValue?: number;
|
|
16
|
+
smoothedValue?: number;
|
|
17
17
|
status?: string;
|
|
18
18
|
trend?: string;
|
|
19
|
-
|
|
19
|
+
trendRate?: number;
|
|
20
20
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export type SpikeHeartDataEntry = {
|
|
2
2
|
date?: string;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
restingHeartRate?: number;
|
|
4
|
+
minHeartRate?: number;
|
|
5
|
+
avgHeartRate?: number;
|
|
6
|
+
maxHeartRate?: number;
|
|
7
|
+
heartRateSamples?: Sample[];
|
|
8
|
+
heartRateVariability?: Variability;
|
|
9
|
+
intradayHRV?: IntradayHrv[];
|
|
10
10
|
source?: string;
|
|
11
|
-
|
|
11
|
+
dataType?: string;
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
type Sample = {
|
|
@@ -17,8 +17,8 @@ type Sample = {
|
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
type Variability = {
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
dayHRV?: number;
|
|
21
|
+
sleepHRV?: number;
|
|
22
22
|
};
|
|
23
23
|
|
|
24
24
|
type IntradayHrv = {
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
export type SpikeSleepDataEntry = {
|
|
2
2
|
date?: string;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
bedtimeStart?: string;
|
|
4
|
+
bedtimeEnd?: string;
|
|
5
|
+
timezoneOffset?: number;
|
|
6
|
+
bedtimeDuration?: number;
|
|
7
|
+
totalSleep?: number;
|
|
8
8
|
awake?: number;
|
|
9
9
|
light?: number;
|
|
10
10
|
rem?: number;
|
|
11
11
|
deep?: number;
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
hrLowest?: number;
|
|
13
|
+
hrAverage?: number;
|
|
14
14
|
efficiency?: number;
|
|
15
15
|
latency?: number;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
temperatureDelta?: number;
|
|
17
|
+
averageHrv?: number;
|
|
18
|
+
respiratoryRate?: number;
|
|
19
|
+
standardizedSleepScore?: number;
|
|
20
|
+
sourceSpecificSleepScore?: number;
|
|
21
21
|
source?: string;
|
|
22
22
|
levels?: Levels[];
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
type Levels = {
|
|
26
|
-
|
|
26
|
+
dateTime?: string;
|
|
27
27
|
level?: string;
|
|
28
28
|
seconds?: number;
|
|
29
29
|
};
|