react-native-spike-sdk 4.6.13 → 4.8.13-beta.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/android/build.gradle +1 -1
- package/android/src/main/java/com/spikesdk/SpikeMappers.kt +0 -46
- package/android/src/main/java/com/spikesdk/SpikeSdkModule.kt +18 -476
- package/ios/SpikeExceptionMapper.swift +4 -12
- package/ios/SpikeSdk.m +5 -79
- package/ios/SpikeSdk.swift +28 -417
- package/lib/commonjs/Spike.js +35 -58
- package/lib/commonjs/Spike.js.map +1 -1
- package/lib/commonjs/SpikeException.js +15 -94
- package/lib/commonjs/SpikeException.js.map +1 -1
- package/lib/commonjs/index.js +1 -71
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/version.js +1 -1
- package/lib/commonjs/version.js.map +1 -1
- package/lib/module/Spike.js +34 -56
- package/lib/module/Spike.js.map +1 -1
- package/lib/module/SpikeException.js +14 -83
- package/lib/module/SpikeException.js.map +1 -1
- package/lib/module/index.js +4 -8
- package/lib/module/index.js.map +1 -1
- package/lib/module/version.js +1 -1
- package/lib/module/version.js.map +1 -1
- package/lib/typescript/Spike.d.ts +22 -29
- package/lib/typescript/Spike.d.ts.map +1 -1
- package/lib/typescript/SpikeException.d.ts +5 -30
- package/lib/typescript/SpikeException.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +5 -24
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/version.d.ts +1 -1
- package/lib/typescript/version.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/Spike.ts +45 -89
- package/src/SpikeException.ts +13 -96
- package/src/index.ts +2 -61
- package/src/version.ts +1 -1
- package/android/src/main/java/com/spikesdk/SpikeConnectionLogger.kt +0 -37
- package/ios/SpikeConnectionListener.swift +0 -17
- package/ios/SpikeConnectionLogger.swift +0 -43
- package/ios/SpikeDataTypeMapper.swift +0 -255
- package/lib/commonjs/DataModels/SpikeActivitiesStreamDataEntry.js +0 -2
- package/lib/commonjs/DataModels/SpikeActivitiesStreamDataEntry.js.map +0 -1
- package/lib/commonjs/DataModels/SpikeActivitiesSummaryDataEntry.js +0 -2
- package/lib/commonjs/DataModels/SpikeActivitiesSummaryDataEntry.js.map +0 -1
- package/lib/commonjs/DataModels/SpikeBodyDataEntry.js +0 -2
- package/lib/commonjs/DataModels/SpikeBodyDataEntry.js.map +0 -1
- package/lib/commonjs/DataModels/SpikeBreathingDataEntry.js +0 -2
- package/lib/commonjs/DataModels/SpikeBreathingDataEntry.js.map +0 -1
- package/lib/commonjs/DataModels/SpikeCaloriesDataEntry.js +0 -2
- package/lib/commonjs/DataModels/SpikeCaloriesDataEntry.js.map +0 -1
- package/lib/commonjs/DataModels/SpikeData.js +0 -6
- package/lib/commonjs/DataModels/SpikeData.js.map +0 -1
- package/lib/commonjs/DataModels/SpikeDataTypes.js +0 -23
- package/lib/commonjs/DataModels/SpikeDataTypes.js.map +0 -1
- package/lib/commonjs/DataModels/SpikeDistanceDataEntry.js +0 -2
- package/lib/commonjs/DataModels/SpikeDistanceDataEntry.js.map +0 -1
- package/lib/commonjs/DataModels/SpikeEcgDataEntry.js +0 -2
- package/lib/commonjs/DataModels/SpikeEcgDataEntry.js.map +0 -1
- package/lib/commonjs/DataModels/SpikeGlucoseDataEntry.js +0 -2
- package/lib/commonjs/DataModels/SpikeGlucoseDataEntry.js.map +0 -1
- package/lib/commonjs/DataModels/SpikeHeartDataEntry.js +0 -2
- package/lib/commonjs/DataModels/SpikeHeartDataEntry.js.map +0 -1
- package/lib/commonjs/DataModels/SpikeOxygenSaturationDataEntry.js +0 -2
- package/lib/commonjs/DataModels/SpikeOxygenSaturationDataEntry.js.map +0 -1
- package/lib/commonjs/DataModels/SpikeSleepDataEntry.js +0 -2
- package/lib/commonjs/DataModels/SpikeSleepDataEntry.js.map +0 -1
- package/lib/commonjs/DataModels/SpikeStepsDataEntry.js +0 -2
- package/lib/commonjs/DataModels/SpikeStepsDataEntry.js.map +0 -1
- package/lib/commonjs/DataModels/SpikeStepsIntradayDataEntry.js +0 -2
- package/lib/commonjs/DataModels/SpikeStepsIntradayDataEntry.js.map +0 -1
- package/lib/commonjs/DataModels/SpikeWebhookJob.js +0 -2
- package/lib/commonjs/DataModels/SpikeWebhookJob.js.map +0 -1
- package/lib/commonjs/DataTypes/SpikeDataType.js +0 -59
- package/lib/commonjs/DataTypes/SpikeDataType.js.map +0 -1
- package/lib/commonjs/SpikeBackgroundDeliveriesLogger.js +0 -2
- package/lib/commonjs/SpikeBackgroundDeliveriesLogger.js.map +0 -1
- package/lib/commonjs/SpikeConnection.js +0 -301
- package/lib/commonjs/SpikeConnection.js.map +0 -1
- package/lib/commonjs/SpikeConnectionTypes.js +0 -6
- package/lib/commonjs/SpikeConnectionTypes.js.map +0 -1
- package/lib/commonjs/SpikeLogger.js +0 -6
- package/lib/commonjs/SpikeLogger.js.map +0 -1
- package/lib/module/DataModels/SpikeActivitiesStreamDataEntry.js +0 -2
- package/lib/module/DataModels/SpikeActivitiesStreamDataEntry.js.map +0 -1
- package/lib/module/DataModels/SpikeActivitiesSummaryDataEntry.js +0 -2
- package/lib/module/DataModels/SpikeActivitiesSummaryDataEntry.js.map +0 -1
- package/lib/module/DataModels/SpikeBodyDataEntry.js +0 -2
- package/lib/module/DataModels/SpikeBodyDataEntry.js.map +0 -1
- package/lib/module/DataModels/SpikeBreathingDataEntry.js +0 -2
- package/lib/module/DataModels/SpikeBreathingDataEntry.js.map +0 -1
- package/lib/module/DataModels/SpikeCaloriesDataEntry.js +0 -2
- package/lib/module/DataModels/SpikeCaloriesDataEntry.js.map +0 -1
- package/lib/module/DataModels/SpikeData.js +0 -4
- package/lib/module/DataModels/SpikeData.js.map +0 -1
- package/lib/module/DataModels/SpikeDataTypes.js +0 -19
- package/lib/module/DataModels/SpikeDataTypes.js.map +0 -1
- package/lib/module/DataModels/SpikeDistanceDataEntry.js +0 -2
- package/lib/module/DataModels/SpikeDistanceDataEntry.js.map +0 -1
- package/lib/module/DataModels/SpikeEcgDataEntry.js +0 -2
- package/lib/module/DataModels/SpikeEcgDataEntry.js.map +0 -1
- package/lib/module/DataModels/SpikeGlucoseDataEntry.js +0 -2
- package/lib/module/DataModels/SpikeGlucoseDataEntry.js.map +0 -1
- package/lib/module/DataModels/SpikeHeartDataEntry.js +0 -2
- package/lib/module/DataModels/SpikeHeartDataEntry.js.map +0 -1
- package/lib/module/DataModels/SpikeOxygenSaturationDataEntry.js +0 -2
- package/lib/module/DataModels/SpikeOxygenSaturationDataEntry.js.map +0 -1
- package/lib/module/DataModels/SpikeSleepDataEntry.js +0 -2
- package/lib/module/DataModels/SpikeSleepDataEntry.js.map +0 -1
- package/lib/module/DataModels/SpikeStepsDataEntry.js +0 -2
- package/lib/module/DataModels/SpikeStepsDataEntry.js.map +0 -1
- package/lib/module/DataModels/SpikeStepsIntradayDataEntry.js +0 -2
- package/lib/module/DataModels/SpikeStepsIntradayDataEntry.js.map +0 -1
- package/lib/module/DataModels/SpikeWebhookJob.js +0 -2
- package/lib/module/DataModels/SpikeWebhookJob.js.map +0 -1
- package/lib/module/DataTypes/SpikeDataType.js +0 -42
- package/lib/module/DataTypes/SpikeDataType.js.map +0 -1
- package/lib/module/SpikeBackgroundDeliveriesLogger.js +0 -2
- package/lib/module/SpikeBackgroundDeliveriesLogger.js.map +0 -1
- package/lib/module/SpikeConnection.js +0 -296
- package/lib/module/SpikeConnection.js.map +0 -1
- package/lib/module/SpikeConnectionTypes.js +0 -4
- package/lib/module/SpikeConnectionTypes.js.map +0 -1
- package/lib/module/SpikeLogger.js +0 -4
- package/lib/module/SpikeLogger.js.map +0 -1
- package/lib/typescript/DataModels/SpikeActivitiesStreamDataEntry.d.ts +0 -66
- package/lib/typescript/DataModels/SpikeActivitiesStreamDataEntry.d.ts.map +0 -1
- package/lib/typescript/DataModels/SpikeActivitiesSummaryDataEntry.d.ts +0 -29
- package/lib/typescript/DataModels/SpikeActivitiesSummaryDataEntry.d.ts.map +0 -1
- package/lib/typescript/DataModels/SpikeBodyDataEntry.d.ts +0 -54
- package/lib/typescript/DataModels/SpikeBodyDataEntry.d.ts.map +0 -1
- package/lib/typescript/DataModels/SpikeBreathingDataEntry.d.ts +0 -13
- package/lib/typescript/DataModels/SpikeBreathingDataEntry.d.ts.map +0 -1
- package/lib/typescript/DataModels/SpikeCaloriesDataEntry.d.ts +0 -15
- package/lib/typescript/DataModels/SpikeCaloriesDataEntry.d.ts.map +0 -1
- package/lib/typescript/DataModels/SpikeData.d.ts +0 -27
- package/lib/typescript/DataModels/SpikeData.d.ts.map +0 -1
- package/lib/typescript/DataModels/SpikeDataTypes.d.ts +0 -17
- package/lib/typescript/DataModels/SpikeDataTypes.d.ts.map +0 -1
- package/lib/typescript/DataModels/SpikeDistanceDataEntry.d.ts +0 -13
- package/lib/typescript/DataModels/SpikeDistanceDataEntry.d.ts.map +0 -1
- package/lib/typescript/DataModels/SpikeEcgDataEntry.d.ts +0 -13
- package/lib/typescript/DataModels/SpikeEcgDataEntry.d.ts.map +0 -1
- package/lib/typescript/DataModels/SpikeGlucoseDataEntry.d.ts +0 -21
- package/lib/typescript/DataModels/SpikeGlucoseDataEntry.d.ts.map +0 -1
- package/lib/typescript/DataModels/SpikeHeartDataEntry.d.ts +0 -32
- package/lib/typescript/DataModels/SpikeHeartDataEntry.d.ts.map +0 -1
- package/lib/typescript/DataModels/SpikeOxygenSaturationDataEntry.d.ts +0 -15
- package/lib/typescript/DataModels/SpikeOxygenSaturationDataEntry.d.ts.map +0 -1
- package/lib/typescript/DataModels/SpikeSleepDataEntry.d.ts +0 -30
- package/lib/typescript/DataModels/SpikeSleepDataEntry.d.ts.map +0 -1
- package/lib/typescript/DataModels/SpikeStepsDataEntry.d.ts +0 -13
- package/lib/typescript/DataModels/SpikeStepsDataEntry.d.ts.map +0 -1
- package/lib/typescript/DataModels/SpikeStepsIntradayDataEntry.d.ts +0 -17
- package/lib/typescript/DataModels/SpikeStepsIntradayDataEntry.d.ts.map +0 -1
- package/lib/typescript/DataModels/SpikeWebhookJob.d.ts +0 -11
- package/lib/typescript/DataModels/SpikeWebhookJob.d.ts.map +0 -1
- package/lib/typescript/DataTypes/SpikeDataType.d.ts +0 -68
- package/lib/typescript/DataTypes/SpikeDataType.d.ts.map +0 -1
- package/lib/typescript/SpikeBackgroundDeliveriesLogger.d.ts +0 -4
- package/lib/typescript/SpikeBackgroundDeliveriesLogger.d.ts.map +0 -1
- package/lib/typescript/SpikeConnection.d.ts +0 -63
- package/lib/typescript/SpikeConnection.d.ts.map +0 -1
- package/lib/typescript/SpikeConnectionTypes.d.ts +0 -102
- package/lib/typescript/SpikeConnectionTypes.d.ts.map +0 -1
- package/lib/typescript/SpikeLogger.d.ts +0 -13
- package/lib/typescript/SpikeLogger.d.ts.map +0 -1
- package/src/DataModels/SpikeActivitiesStreamDataEntry.ts +0 -67
- package/src/DataModels/SpikeActivitiesSummaryDataEntry.ts +0 -28
- package/src/DataModels/SpikeBodyDataEntry.ts +0 -61
- package/src/DataModels/SpikeBreathingDataEntry.ts +0 -12
- package/src/DataModels/SpikeCaloriesDataEntry.ts +0 -13
- package/src/DataModels/SpikeData.ts +0 -38
- package/src/DataModels/SpikeDataTypes.ts +0 -31
- package/src/DataModels/SpikeDistanceDataEntry.ts +0 -12
- package/src/DataModels/SpikeEcgDataEntry.ts +0 -12
- package/src/DataModels/SpikeGlucoseDataEntry.ts +0 -20
- package/src/DataModels/SpikeHeartDataEntry.ts +0 -34
- package/src/DataModels/SpikeOxygenSaturationDataEntry.ts +0 -14
- package/src/DataModels/SpikeSleepDataEntry.ts +0 -29
- package/src/DataModels/SpikeStepsDataEntry.ts +0 -12
- package/src/DataModels/SpikeStepsIntradayDataEntry.ts +0 -16
- package/src/DataModels/SpikeWebhookJob.ts +0 -10
- package/src/DataTypes/SpikeDataType.ts +0 -93
- package/src/SpikeBackgroundDeliveriesLogger.ts +0 -3
- package/src/SpikeConnection.ts +0 -495
- package/src/SpikeConnectionTypes.ts +0 -124
- package/src/SpikeLogger.ts +0 -14
package/src/SpikeException.ts
CHANGED
|
@@ -4,102 +4,19 @@ export class SpikeException extends Error {
|
|
|
4
4
|
}
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export class SpikeInvalidCredentialsException extends SpikeException {
|
|
13
|
-
constructor() {
|
|
14
|
-
super('SpikeInvalidCredentialsException');
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
export class SpikeInvalidDateRangeException extends SpikeException {
|
|
18
|
-
constructor() {
|
|
19
|
-
super('SpikeInvalidDateRangeException');
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
export class SpikeInvalidCallbackUrlException extends SpikeException {
|
|
23
|
-
constructor() {
|
|
24
|
-
super('SpikeInvalidCallbackUrlException');
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
export class SpikePackException extends SpikeException {
|
|
28
|
-
constructor() {
|
|
29
|
-
super('SpikePackException');
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
export class SpikePermissionsNotGrantedException extends SpikeException {
|
|
33
|
-
constructor() {
|
|
34
|
-
super('SpikePermissionsNotGrantedException');
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
export class SpikeServerException extends SpikeException {
|
|
38
|
-
constructor() {
|
|
39
|
-
super('SpikeServerException');
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
export class SpikeUnpackException extends SpikeException {
|
|
43
|
-
constructor() {
|
|
44
|
-
super('SpikeUnpackException');
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
export class SpikeCallbackURLNotProvidedException extends SpikeException {
|
|
48
|
-
constructor() {
|
|
49
|
-
super('SpikeCallbackURLNotProvidedException');
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
export class SpikeHealthDataNotAvailableException extends SpikeException {
|
|
53
|
-
constructor() {
|
|
54
|
-
super('SpikeHealthDataNotAvailableException');
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
7
|
+
/**
|
|
8
|
+
* Wraps an unknown error (typically a React Native bridge rejection
|
|
9
|
+
* with a `code` field) into a {@link SpikeException} so consumers can
|
|
10
|
+
* rely on `instanceof SpikeException` checks.
|
|
11
|
+
*/
|
|
58
12
|
export const unwrapSpikeException = (error: unknown): SpikeException => {
|
|
59
|
-
if (error instanceof
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
case 'SpikeInvalidDateRangeException':
|
|
68
|
-
return new SpikeInvalidDateRangeException();
|
|
69
|
-
|
|
70
|
-
case 'SpikeInvalidCallbackUrlException':
|
|
71
|
-
return new SpikeInvalidCallbackUrlException();
|
|
72
|
-
|
|
73
|
-
case 'SpikePackException':
|
|
74
|
-
return new SpikePackException();
|
|
75
|
-
|
|
76
|
-
case 'SpikePermissionsNotGrantedException':
|
|
77
|
-
return new SpikePermissionsNotGrantedException();
|
|
78
|
-
|
|
79
|
-
case 'SpikeServerException':
|
|
80
|
-
return new SpikeServerException();
|
|
81
|
-
|
|
82
|
-
case 'SpikeUnpackException':
|
|
83
|
-
return new SpikeUnpackException();
|
|
84
|
-
|
|
85
|
-
case 'SpikeCallbackURLNotProvidedException':
|
|
86
|
-
return new SpikeCallbackURLNotProvidedException();
|
|
87
|
-
|
|
88
|
-
case 'SpikeHealthDataNotAvailableException':
|
|
89
|
-
return new SpikeHealthDataNotAvailableException();
|
|
90
|
-
|
|
91
|
-
case 'SpikeConnectionNotFoundException': // TODO: update android
|
|
92
|
-
return new SpikeException("SpikeConnectionNotFoundException");
|
|
93
|
-
|
|
94
|
-
case 'SpikeDataDecodingException':
|
|
95
|
-
return new SpikeException("SpikeDataDecodingException:" + error.message);
|
|
96
|
-
|
|
97
|
-
case 'SpikeApiException':
|
|
98
|
-
return new SpikeException(error.message);
|
|
99
|
-
|
|
100
|
-
default:
|
|
101
|
-
return new SpikeException("Default SpikeException: " + error.message);
|
|
102
|
-
}
|
|
13
|
+
if (error instanceof SpikeException) {
|
|
14
|
+
return error;
|
|
15
|
+
}
|
|
16
|
+
if (error instanceof Error) {
|
|
17
|
+
const code = (error as Error & { code?: string }).code;
|
|
18
|
+
const message = code ? `${code}: ${error.message}` : error.message;
|
|
19
|
+
return new SpikeException(message);
|
|
103
20
|
}
|
|
104
|
-
return new SpikeException(
|
|
21
|
+
return new SpikeException(`Unknown SpikeException: ${String(error)}`);
|
|
105
22
|
};
|
package/src/index.ts
CHANGED
|
@@ -1,88 +1,29 @@
|
|
|
1
|
-
import { SpikeDataTypes } from './DataModels/SpikeDataTypes';
|
|
2
|
-
import type { SpikeData, SpikeDataEntry } from './DataModels/SpikeData';
|
|
3
1
|
import {
|
|
4
|
-
createConnection,
|
|
5
|
-
getBackgroundConnections,
|
|
6
|
-
ensurePermissionsAreGranted,
|
|
7
2
|
isPackageInstalled,
|
|
8
3
|
isHealthDataAvailable,
|
|
9
4
|
setLogCallback,
|
|
10
|
-
SpikeConnectionConfig,
|
|
11
5
|
SpikeLogCallback,
|
|
12
6
|
createConnectionAPIv3,
|
|
7
|
+
createConnectionAPIv3WithAuthToken,
|
|
13
8
|
createConnectionAPIv3Legacy,
|
|
14
9
|
} from './Spike';
|
|
15
|
-
import { SpikeConnection } from './SpikeConnection';
|
|
16
|
-
import type { SpikeLogger } from './SpikeLogger';
|
|
17
|
-
import type { SpikeBackgroundDeliveriesLogger } from './SpikeBackgroundDeliveriesLogger';
|
|
18
|
-
import type { SpikeDataType } from './SpikeConnectionTypes';
|
|
19
10
|
import {
|
|
20
11
|
SpikeException,
|
|
21
|
-
SpikeConnectionIsClosedException,
|
|
22
|
-
SpikeInvalidCredentialsException,
|
|
23
|
-
SpikeInvalidDateRangeException,
|
|
24
|
-
SpikeInvalidCallbackUrlException,
|
|
25
|
-
SpikePackException,
|
|
26
|
-
SpikePermissionsNotGrantedException,
|
|
27
|
-
SpikeServerException,
|
|
28
|
-
SpikeUnpackException,
|
|
29
|
-
SpikeCallbackURLNotProvidedException,
|
|
30
12
|
} from './SpikeException';
|
|
31
|
-
import type { SpikeActivitiesSummaryDataEntry } from './DataModels/SpikeActivitiesSummaryDataEntry';
|
|
32
|
-
import type { SpikeActivitiesStreamDataEntry } from './DataModels/SpikeActivitiesStreamDataEntry';
|
|
33
|
-
import type { SpikeBreathingDataEntry } from './DataModels/SpikeBreathingDataEntry';
|
|
34
|
-
import type { SpikeCaloriesDataEntry } from './DataModels/SpikeCaloriesDataEntry';
|
|
35
|
-
import type { SpikeDistanceDataEntry } from './DataModels/SpikeDistanceDataEntry';
|
|
36
|
-
import type { SpikeGlucoseDataEntry } from './DataModels/SpikeGlucoseDataEntry';
|
|
37
|
-
import type { SpikeHeartDataEntry } from './DataModels/SpikeHeartDataEntry';
|
|
38
|
-
import type { SpikeOxygenSaturationDataEntry } from './DataModels/SpikeOxygenSaturationDataEntry';
|
|
39
|
-
import type { SpikeSleepDataEntry } from './DataModels/SpikeSleepDataEntry';
|
|
40
|
-
import type { SpikeStepsDataEntry } from './DataModels/SpikeStepsDataEntry';
|
|
41
|
-
import type { SpikeBodyDataEntry } from './DataModels/SpikeBodyDataEntry';
|
|
42
13
|
|
|
43
14
|
export default {
|
|
44
|
-
createConnection,
|
|
45
|
-
getBackgroundConnections,
|
|
46
|
-
ensurePermissionsAreGranted,
|
|
47
15
|
isPackageInstalled,
|
|
48
16
|
isHealthDataAvailable,
|
|
49
17
|
// V3
|
|
50
18
|
createConnectionAPIv3,
|
|
19
|
+
createConnectionAPIv3WithAuthToken,
|
|
51
20
|
createConnectionAPIv3Legacy,
|
|
52
21
|
setLogCallback,
|
|
53
22
|
};
|
|
54
23
|
export {
|
|
55
|
-
SpikeConnection,
|
|
56
|
-
SpikeDataTypes,
|
|
57
|
-
SpikeDataType,
|
|
58
|
-
SpikeDataEntry,
|
|
59
|
-
SpikeLogger,
|
|
60
|
-
SpikeBackgroundDeliveriesLogger,
|
|
61
24
|
SpikeException,
|
|
62
|
-
SpikeConnectionIsClosedException,
|
|
63
|
-
SpikeInvalidCredentialsException,
|
|
64
|
-
SpikeInvalidDateRangeException,
|
|
65
|
-
SpikeInvalidCallbackUrlException,
|
|
66
|
-
SpikePackException,
|
|
67
|
-
SpikePermissionsNotGrantedException,
|
|
68
|
-
SpikeServerException,
|
|
69
|
-
SpikeUnpackException,
|
|
70
|
-
SpikeCallbackURLNotProvidedException,
|
|
71
|
-
SpikeData,
|
|
72
|
-
SpikeActivitiesSummaryDataEntry,
|
|
73
|
-
SpikeActivitiesStreamDataEntry,
|
|
74
|
-
SpikeBreathingDataEntry,
|
|
75
|
-
SpikeCaloriesDataEntry,
|
|
76
|
-
SpikeDistanceDataEntry,
|
|
77
|
-
SpikeGlucoseDataEntry,
|
|
78
|
-
SpikeHeartDataEntry,
|
|
79
|
-
SpikeOxygenSaturationDataEntry,
|
|
80
|
-
SpikeSleepDataEntry,
|
|
81
|
-
SpikeStepsDataEntry,
|
|
82
|
-
SpikeBodyDataEntry,
|
|
83
25
|
};
|
|
84
26
|
export type {
|
|
85
|
-
SpikeConnectionConfig,
|
|
86
27
|
SpikeLogCallback,
|
|
87
28
|
}
|
|
88
29
|
|
package/src/version.ts
CHANGED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
package com.spikesdk
|
|
2
|
-
|
|
3
|
-
import com.spikeapi.SpikeLogger
|
|
4
|
-
|
|
5
|
-
enum class SpikeLogLevel(val jsEventName: String) {
|
|
6
|
-
DEBUG(jsEventName = "onDebug"),
|
|
7
|
-
ERROR(jsEventName = "onError"),
|
|
8
|
-
INFO(jsEventName = "onInfo")
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
class SpikeConnectionLogger(
|
|
12
|
-
private val connectionUUID: String,
|
|
13
|
-
private val onLog: (
|
|
14
|
-
connectionUUID: String,
|
|
15
|
-
logLevel: SpikeLogLevel,
|
|
16
|
-
message: String
|
|
17
|
-
) -> Unit
|
|
18
|
-
) : SpikeLogger {
|
|
19
|
-
|
|
20
|
-
override fun debug(message: String) {
|
|
21
|
-
onLog(connectionUUID, SpikeLogLevel.DEBUG, message)
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
override fun error(message: String) {
|
|
25
|
-
onLog(connectionUUID, SpikeLogLevel.ERROR, message)
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
override fun info(message: String) {
|
|
29
|
-
onLog(connectionUUID, SpikeLogLevel.INFO, message)
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
override fun isDebugEnabled(): Boolean = true
|
|
33
|
-
|
|
34
|
-
override fun isErrorEnabled(): Boolean = true
|
|
35
|
-
|
|
36
|
-
override fun isInfoEnabled(): Boolean = true
|
|
37
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import Foundation
|
|
2
|
-
import SpikeSDK
|
|
3
|
-
|
|
4
|
-
class SpikeConnectionListener: SpikeBackgroundDeliveriesLogger {
|
|
5
|
-
|
|
6
|
-
private let connectionUUID: String
|
|
7
|
-
private var onLog: (String, String) -> Void
|
|
8
|
-
|
|
9
|
-
init(connectionUUID: String, onLog: @escaping (String, String) -> Void) {
|
|
10
|
-
self.connectionUUID = connectionUUID
|
|
11
|
-
self.onLog = onLog
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
func onBackgroundLog(log: String) {
|
|
15
|
-
onLog(connectionUUID, log)
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import Foundation
|
|
2
|
-
import SpikeSDK
|
|
3
|
-
|
|
4
|
-
enum SpikeLogLevel {
|
|
5
|
-
case debug
|
|
6
|
-
case info
|
|
7
|
-
case error
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
class SpikeConnectionLogger: SpikeLogger {
|
|
11
|
-
|
|
12
|
-
private let connectionUUID: String
|
|
13
|
-
private var onLog: (String, SpikeLogLevel, String) -> Void
|
|
14
|
-
|
|
15
|
-
init(connectionUUID: String, onLog: @escaping (String, SpikeLogLevel, String) -> Void) {
|
|
16
|
-
self.connectionUUID = connectionUUID
|
|
17
|
-
self.onLog = onLog
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
func isDebugEnabled() -> Bool {
|
|
21
|
-
return true
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
func isInfoEnabled() -> Bool {
|
|
25
|
-
return true
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
func isErrorEnabled() -> Bool {
|
|
29
|
-
return true
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
func debug(connection: SpikeConnection, message: String) {
|
|
33
|
-
onLog(connectionUUID, .debug, message)
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
func info(connection: SpikeConnection, message: String) {
|
|
37
|
-
onLog(connectionUUID, .debug, message)
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
func error(connection: SpikeConnection, message: String) {
|
|
41
|
-
onLog(connectionUUID, .debug, message)
|
|
42
|
-
}
|
|
43
|
-
}
|
|
@@ -1,255 +0,0 @@
|
|
|
1
|
-
import Foundation
|
|
2
|
-
import SpikeSDK
|
|
3
|
-
|
|
4
|
-
class SpikeDataTypeMapper {
|
|
5
|
-
|
|
6
|
-
static func mapDataType(_ dataType: String) -> any SpikeDataType {
|
|
7
|
-
switch dataType {
|
|
8
|
-
case "activities_summary":
|
|
9
|
-
return SpikeDataTypes.activitiesSummary
|
|
10
|
-
case "activities_stream":
|
|
11
|
-
return SpikeDataTypes.activitiesStream
|
|
12
|
-
case "breathing":
|
|
13
|
-
return SpikeDataTypes.breathing
|
|
14
|
-
case "calories":
|
|
15
|
-
return SpikeDataTypes.calories
|
|
16
|
-
case "distance":
|
|
17
|
-
return SpikeDataTypes.distance
|
|
18
|
-
case "glucose":
|
|
19
|
-
return SpikeDataTypes.glucose
|
|
20
|
-
case "heart":
|
|
21
|
-
return SpikeDataTypes.heart
|
|
22
|
-
case "oxygen_saturation":
|
|
23
|
-
return SpikeDataTypes.oxygenSaturation
|
|
24
|
-
case "sleep":
|
|
25
|
-
return SpikeDataTypes.sleep
|
|
26
|
-
case "steps":
|
|
27
|
-
return SpikeDataTypes.steps
|
|
28
|
-
case "steps_intraday":
|
|
29
|
-
return SpikeDataTypes.stepsIntraday
|
|
30
|
-
case "body":
|
|
31
|
-
return SpikeDataTypes.body
|
|
32
|
-
case "ecg":
|
|
33
|
-
return SpikeDataTypes.ecg
|
|
34
|
-
default:
|
|
35
|
-
return SpikeDataTypes.activitiesSummary
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
static func mapDataTypeToString(_ dataType: any SpikeDataType) -> String {
|
|
40
|
-
switch dataType {
|
|
41
|
-
case is SpikeActivitiesSummaryDataType:
|
|
42
|
-
return "activities_summary"
|
|
43
|
-
case is SpikeActivitiesStreamDataType:
|
|
44
|
-
return "activities_stream"
|
|
45
|
-
case is SpikeBreathingDataType:
|
|
46
|
-
return "breathing"
|
|
47
|
-
case is SpikeCaloriesDataType:
|
|
48
|
-
return "calories"
|
|
49
|
-
case is SpikeDistanceDataType:
|
|
50
|
-
return "distance"
|
|
51
|
-
case is SpikeGlucoseDataType:
|
|
52
|
-
return "glucose"
|
|
53
|
-
case is SpikeHeartDataType:
|
|
54
|
-
return "heart"
|
|
55
|
-
case is SpikeOxygenSaturationDataType:
|
|
56
|
-
return "oxygen_saturation"
|
|
57
|
-
case is SpikeSleepDataType:
|
|
58
|
-
return "sleep"
|
|
59
|
-
case is SpikeStepsDataType:
|
|
60
|
-
return "steps"
|
|
61
|
-
case is SpikeStepsIntradayDataType:
|
|
62
|
-
return "steps_intraday"
|
|
63
|
-
case is SpikeBodyDataType:
|
|
64
|
-
return "body"
|
|
65
|
-
case is SpikeECGDataType:
|
|
66
|
-
return "ecg"
|
|
67
|
-
default:
|
|
68
|
-
return "activities_summary"
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
static func extractData(_ dataType: String, connection: SpikeConnection) async throws -> String? {
|
|
73
|
-
switch dataType {
|
|
74
|
-
case "activities_summary":
|
|
75
|
-
let value = try await connection.extractData(SpikeDataTypes.activitiesSummary)
|
|
76
|
-
return try? String(data: JSONEncoder().encode(value), encoding: .utf8)
|
|
77
|
-
case "activities_stream":
|
|
78
|
-
let value = try await connection.extractData(SpikeDataTypes.activitiesStream)
|
|
79
|
-
return try? String(data: JSONEncoder().encode(value), encoding: .utf8)
|
|
80
|
-
case "breathing":
|
|
81
|
-
let value = try await connection.extractData(SpikeDataTypes.breathing)
|
|
82
|
-
return try? String(data: JSONEncoder().encode(value), encoding: .utf8)
|
|
83
|
-
case "calories":
|
|
84
|
-
let value = try await connection.extractData(SpikeDataTypes.calories)
|
|
85
|
-
return try? String(data: JSONEncoder().encode(value), encoding: .utf8)
|
|
86
|
-
case "distance":
|
|
87
|
-
let value = try await connection.extractData(SpikeDataTypes.distance)
|
|
88
|
-
return try? String(data: JSONEncoder().encode(value), encoding: .utf8)
|
|
89
|
-
case "glucose":
|
|
90
|
-
let value = try await connection.extractData(SpikeDataTypes.glucose)
|
|
91
|
-
return try? String(data: JSONEncoder().encode(value), encoding: .utf8)
|
|
92
|
-
case "heart":
|
|
93
|
-
let value = try await connection.extractData(SpikeDataTypes.heart)
|
|
94
|
-
return try? String(data: JSONEncoder().encode(value), encoding: .utf8)
|
|
95
|
-
case "oxygen_saturation":
|
|
96
|
-
let value = try await connection.extractData(SpikeDataTypes.oxygenSaturation)
|
|
97
|
-
return try? String(data: JSONEncoder().encode(value), encoding: .utf8)
|
|
98
|
-
case "sleep":
|
|
99
|
-
let value = try await connection.extractData(SpikeDataTypes.sleep)
|
|
100
|
-
return try? String(data: JSONEncoder().encode(value), encoding: .utf8)
|
|
101
|
-
case "steps":
|
|
102
|
-
let value = try await connection.extractData(SpikeDataTypes.steps)
|
|
103
|
-
return try? String(data: JSONEncoder().encode(value), encoding: .utf8)
|
|
104
|
-
case "steps_intraday":
|
|
105
|
-
let value = try await connection.extractData(SpikeDataTypes.stepsIntraday)
|
|
106
|
-
return try? String(data: JSONEncoder().encode(value), encoding: .utf8)
|
|
107
|
-
case "body":
|
|
108
|
-
let value = try await connection.extractData(SpikeDataTypes.body)
|
|
109
|
-
return try? String(data: JSONEncoder().encode(value), encoding: .utf8)
|
|
110
|
-
case "ecg":
|
|
111
|
-
let value = try await connection.extractData(SpikeDataTypes.ecg)
|
|
112
|
-
return try? String(data: JSONEncoder().encode(value), encoding: .utf8)
|
|
113
|
-
default:
|
|
114
|
-
return nil
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
static func extractDataInRange(_ dataType: String, connection: SpikeConnection, from: Date, to: Date) async throws -> String? {
|
|
119
|
-
switch dataType {
|
|
120
|
-
case "activities_summary":
|
|
121
|
-
let value = try await connection.extractData(SpikeDataTypes.activitiesSummary, from: from, to: to)
|
|
122
|
-
return try? String(data: JSONEncoder().encode(value), encoding: .utf8)
|
|
123
|
-
case "activities_stream":
|
|
124
|
-
let value = try await connection.extractData(SpikeDataTypes.activitiesStream, from: from, to: to)
|
|
125
|
-
return try? String(data: JSONEncoder().encode(value), encoding: .utf8)
|
|
126
|
-
case "breathing":
|
|
127
|
-
let value = try await connection.extractData(SpikeDataTypes.breathing, from: from, to: to)
|
|
128
|
-
return try? String(data: JSONEncoder().encode(value), encoding: .utf8)
|
|
129
|
-
case "calories":
|
|
130
|
-
let value = try await connection.extractData(SpikeDataTypes.calories, from: from, to: to)
|
|
131
|
-
return try? String(data: JSONEncoder().encode(value), encoding: .utf8)
|
|
132
|
-
case "distance":
|
|
133
|
-
let value = try await connection.extractData(SpikeDataTypes.distance, from: from, to: to)
|
|
134
|
-
return try? String(data: JSONEncoder().encode(value), encoding: .utf8)
|
|
135
|
-
case "glucose":
|
|
136
|
-
let value = try await connection.extractData(SpikeDataTypes.glucose, from: from, to: to)
|
|
137
|
-
return try? String(data: JSONEncoder().encode(value), encoding: .utf8)
|
|
138
|
-
case "heart":
|
|
139
|
-
let value = try await connection.extractData(SpikeDataTypes.heart, from: from, to: to)
|
|
140
|
-
return try? String(data: JSONEncoder().encode(value), encoding: .utf8)
|
|
141
|
-
case "oxygen_saturation":
|
|
142
|
-
let value = try await connection.extractData(SpikeDataTypes.oxygenSaturation, from: from, to: to)
|
|
143
|
-
return try? String(data: JSONEncoder().encode(value), encoding: .utf8)
|
|
144
|
-
case "sleep":
|
|
145
|
-
let value = try await connection.extractData(SpikeDataTypes.sleep, from: from, to: to)
|
|
146
|
-
return try? String(data: JSONEncoder().encode(value), encoding: .utf8)
|
|
147
|
-
case "steps":
|
|
148
|
-
let value = try await connection.extractData(SpikeDataTypes.steps, from: from, to: to)
|
|
149
|
-
return try? String(data: JSONEncoder().encode(value), encoding: .utf8)
|
|
150
|
-
case "steps_intraday":
|
|
151
|
-
let value = try await connection.extractData(SpikeDataTypes.stepsIntraday, from: from, to: to)
|
|
152
|
-
return try? String(data: JSONEncoder().encode(value), encoding: .utf8)
|
|
153
|
-
case "body":
|
|
154
|
-
let value = try await connection.extractData(SpikeDataTypes.body, from: from, to: to)
|
|
155
|
-
return try? String(data: JSONEncoder().encode(value), encoding: .utf8)
|
|
156
|
-
case "ecg":
|
|
157
|
-
let value = try await connection.extractData(SpikeDataTypes.ecg, from: from, to: to)
|
|
158
|
-
return try? String(data: JSONEncoder().encode(value), encoding: .utf8)
|
|
159
|
-
default:
|
|
160
|
-
return nil
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
static func extractAndPostData(_ dataType: String, connection: SpikeConnection) async throws -> String? {
|
|
165
|
-
switch dataType {
|
|
166
|
-
case "activities_summary":
|
|
167
|
-
let value = try await connection.extractAndPostData(SpikeDataTypes.activitiesSummary)
|
|
168
|
-
return try? String(data: JSONEncoder().encode(value), encoding: .utf8)
|
|
169
|
-
case "activities_stream":
|
|
170
|
-
let value = try await connection.extractAndPostData(SpikeDataTypes.activitiesStream)
|
|
171
|
-
return try? String(data: JSONEncoder().encode(value), encoding: .utf8)
|
|
172
|
-
case "breathing":
|
|
173
|
-
let value = try await connection.extractAndPostData(SpikeDataTypes.breathing)
|
|
174
|
-
return try? String(data: JSONEncoder().encode(value), encoding: .utf8)
|
|
175
|
-
case "calories":
|
|
176
|
-
let value = try await connection.extractAndPostData(SpikeDataTypes.calories)
|
|
177
|
-
return try? String(data: JSONEncoder().encode(value), encoding: .utf8)
|
|
178
|
-
case "distance":
|
|
179
|
-
let value = try await connection.extractAndPostData(SpikeDataTypes.distance)
|
|
180
|
-
return try? String(data: JSONEncoder().encode(value), encoding: .utf8)
|
|
181
|
-
case "glucose":
|
|
182
|
-
let value = try await connection.extractAndPostData(SpikeDataTypes.glucose)
|
|
183
|
-
return try? String(data: JSONEncoder().encode(value), encoding: .utf8)
|
|
184
|
-
case "heart":
|
|
185
|
-
let value = try await connection.extractAndPostData(SpikeDataTypes.heart)
|
|
186
|
-
return try? String(data: JSONEncoder().encode(value), encoding: .utf8)
|
|
187
|
-
case "oxygen_saturation":
|
|
188
|
-
let value = try await connection.extractAndPostData(SpikeDataTypes.oxygenSaturation)
|
|
189
|
-
return try? String(data: JSONEncoder().encode(value), encoding: .utf8)
|
|
190
|
-
case "sleep":
|
|
191
|
-
let value = try await connection.extractAndPostData(SpikeDataTypes.sleep)
|
|
192
|
-
return try? String(data: JSONEncoder().encode(value), encoding: .utf8)
|
|
193
|
-
case "steps":
|
|
194
|
-
let value = try await connection.extractAndPostData(SpikeDataTypes.steps)
|
|
195
|
-
return try? String(data: JSONEncoder().encode(value), encoding: .utf8)
|
|
196
|
-
case "steps_intraday":
|
|
197
|
-
let value = try await connection.extractAndPostData(SpikeDataTypes.stepsIntraday)
|
|
198
|
-
return try? String(data: JSONEncoder().encode(value), encoding: .utf8)
|
|
199
|
-
case "body":
|
|
200
|
-
let value = try await connection.extractAndPostData(SpikeDataTypes.body)
|
|
201
|
-
return try? String(data: JSONEncoder().encode(value), encoding: .utf8)
|
|
202
|
-
case "ecg":
|
|
203
|
-
let value = try await connection.extractAndPostData(SpikeDataTypes.ecg)
|
|
204
|
-
return try? String(data: JSONEncoder().encode(value), encoding: .utf8)
|
|
205
|
-
default:
|
|
206
|
-
return nil
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
static func extractAndPostDataInRange(_ dataType: String, connection: SpikeConnection, from: Date, to: Date) async throws -> String? {
|
|
211
|
-
switch dataType {
|
|
212
|
-
case "activities_summary":
|
|
213
|
-
let value = try await connection.extractAndPostData(SpikeDataTypes.activitiesSummary, from: from, to: to)
|
|
214
|
-
return try? String(data: JSONEncoder().encode(value), encoding: .utf8)
|
|
215
|
-
case "activities_stream":
|
|
216
|
-
let value = try await connection.extractAndPostData(SpikeDataTypes.activitiesStream, from: from, to: to)
|
|
217
|
-
return try? String(data: JSONEncoder().encode(value), encoding: .utf8)
|
|
218
|
-
case "breathing":
|
|
219
|
-
let value = try await connection.extractAndPostData(SpikeDataTypes.breathing, from: from, to: to)
|
|
220
|
-
return try? String(data: JSONEncoder().encode(value), encoding: .utf8)
|
|
221
|
-
case "calories":
|
|
222
|
-
let value = try await connection.extractAndPostData(SpikeDataTypes.calories, from: from, to: to)
|
|
223
|
-
return try? String(data: JSONEncoder().encode(value), encoding: .utf8)
|
|
224
|
-
case "distance":
|
|
225
|
-
let value = try await connection.extractAndPostData(SpikeDataTypes.distance, from: from, to: to)
|
|
226
|
-
return try? String(data: JSONEncoder().encode(value), encoding: .utf8)
|
|
227
|
-
case "glucose":
|
|
228
|
-
let value = try await connection.extractAndPostData(SpikeDataTypes.glucose, from: from, to: to)
|
|
229
|
-
return try? String(data: JSONEncoder().encode(value), encoding: .utf8)
|
|
230
|
-
case "heart":
|
|
231
|
-
let value = try await connection.extractAndPostData(SpikeDataTypes.heart, from: from, to: to)
|
|
232
|
-
return try? String(data: JSONEncoder().encode(value), encoding: .utf8)
|
|
233
|
-
case "oxygen_saturation":
|
|
234
|
-
let value = try await connection.extractAndPostData(SpikeDataTypes.oxygenSaturation, from: from, to: to)
|
|
235
|
-
return try? String(data: JSONEncoder().encode(value), encoding: .utf8)
|
|
236
|
-
case "sleep":
|
|
237
|
-
let value = try await connection.extractAndPostData(SpikeDataTypes.sleep, from: from, to: to)
|
|
238
|
-
return try? String(data: JSONEncoder().encode(value), encoding: .utf8)
|
|
239
|
-
case "steps":
|
|
240
|
-
let value = try await connection.extractAndPostData(SpikeDataTypes.steps, from: from, to: to)
|
|
241
|
-
return try? String(data: JSONEncoder().encode(value), encoding: .utf8)
|
|
242
|
-
case "steps_intraday":
|
|
243
|
-
let value = try await connection.extractAndPostData(SpikeDataTypes.stepsIntraday, from: from, to: to)
|
|
244
|
-
return try? String(data: JSONEncoder().encode(value), encoding: .utf8)
|
|
245
|
-
case "body":
|
|
246
|
-
let value = try await connection.extractAndPostData(SpikeDataTypes.body, from: from, to: to)
|
|
247
|
-
return try? String(data: JSONEncoder().encode(value), encoding: .utf8)
|
|
248
|
-
case "ecg":
|
|
249
|
-
let value = try await connection.extractAndPostData(SpikeDataTypes.ecg, from: from, to: to)
|
|
250
|
-
return try? String(data: JSONEncoder().encode(value), encoding: .utf8)
|
|
251
|
-
default:
|
|
252
|
-
return nil
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["DataModels/SpikeActivitiesStreamDataEntry.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["DataModels/SpikeActivitiesSummaryDataEntry.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["DataModels/SpikeBodyDataEntry.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["DataModels/SpikeBreathingDataEntry.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["DataModels/SpikeCaloriesDataEntry.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["DataModels/SpikeData.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.SpikeDataTypes = void 0;
|
|
7
|
-
var _SpikeDataType = require("../DataTypes/SpikeDataType");
|
|
8
|
-
const SpikeDataTypes = exports.SpikeDataTypes = {
|
|
9
|
-
activitiesSummary: new _SpikeDataType.SpikeActivitiesSummaryDataType(),
|
|
10
|
-
activitiesStream: new _SpikeDataType.SpikeActivitiesStreamDataType(),
|
|
11
|
-
breathing: new _SpikeDataType.SpikeBreathingDataType(),
|
|
12
|
-
calories: new _SpikeDataType.SpikeCaloriesDataType(),
|
|
13
|
-
distance: new _SpikeDataType.SpikeDistanceDataType(),
|
|
14
|
-
glucose: new _SpikeDataType.SpikeGlucoseDataType(),
|
|
15
|
-
heart: new _SpikeDataType.SpikeHeartDataType(),
|
|
16
|
-
oxygenSaturation: new _SpikeDataType.SpikeOxygenSaturationDataType(),
|
|
17
|
-
sleep: new _SpikeDataType.SpikeSleepDataType(),
|
|
18
|
-
steps: new _SpikeDataType.SpikeStepsDataType(),
|
|
19
|
-
stepsIntraday: new _SpikeDataType.SpikeStepsIntradayDataType(),
|
|
20
|
-
body: new _SpikeDataType.SpikeBodyDataType(),
|
|
21
|
-
ecg: new _SpikeDataType.SpikeEcgDataType()
|
|
22
|
-
};
|
|
23
|
-
//# sourceMappingURL=SpikeDataTypes.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_SpikeDataType","require","SpikeDataTypes","exports","activitiesSummary","SpikeActivitiesSummaryDataType","activitiesStream","SpikeActivitiesStreamDataType","breathing","SpikeBreathingDataType","calories","SpikeCaloriesDataType","distance","SpikeDistanceDataType","glucose","SpikeGlucoseDataType","heart","SpikeHeartDataType","oxygenSaturation","SpikeOxygenSaturationDataType","sleep","SpikeSleepDataType","steps","SpikeStepsDataType","stepsIntraday","SpikeStepsIntradayDataType","body","SpikeBodyDataType","ecg","SpikeEcgDataType"],"sourceRoot":"../../../src","sources":["DataModels/SpikeDataTypes.ts"],"mappings":";;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AAgBO,MAAMC,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAG;EAC5BE,iBAAiB,EAAE,IAAIC,6CAA8B,CAAC,CAAC;EACvDC,gBAAgB,EAAE,IAAIC,4CAA6B,CAAC,CAAC;EACrDC,SAAS,EAAE,IAAIC,qCAAsB,CAAC,CAAC;EACvCC,QAAQ,EAAE,IAAIC,oCAAqB,CAAC,CAAC;EACrCC,QAAQ,EAAE,IAAIC,oCAAqB,CAAC,CAAC;EACrCC,OAAO,EAAE,IAAIC,mCAAoB,CAAC,CAAC;EACnCC,KAAK,EAAE,IAAIC,iCAAkB,CAAC,CAAC;EAC/BC,gBAAgB,EAAE,IAAIC,4CAA6B,CAAC,CAAC;EACrDC,KAAK,EAAE,IAAIC,iCAAkB,CAAC,CAAC;EAC/BC,KAAK,EAAE,IAAIC,iCAAkB,CAAC,CAAC;EAC/BC,aAAa,EAAE,IAAIC,yCAA0B,CAAC,CAAC;EAC/CC,IAAI,EAAE,IAAIC,gCAAiB,CAAC,CAAC;EAC7BC,GAAG,EAAE,IAAIC,+BAAgB,CAAC;AAC5B,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["DataModels/SpikeDistanceDataEntry.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["DataModels/SpikeEcgDataEntry.ts"],"mappings":"","ignoreList":[]}
|