react-native-spike-sdk 2.2.8 → 2.2.10

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.
@@ -76,7 +76,7 @@ dependencies {
76
76
  //noinspection GradleDynamicVersion
77
77
  implementation "com.facebook.react:react-android:0.71.3"
78
78
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
79
- implementation 'com.spikeapi.sdk:spike-sdk:3.0.8'
79
+ implementation 'com.spikeapi.sdk:spike-sdk:3.0.10'
80
80
  implementation 'androidx.core:core-ktx:1.9.0'
81
81
  implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.5.1'
82
82
  implementation 'com.google.code.gson:gson:2.10.1'
@@ -27,6 +27,7 @@ fun SpikeDataType<out SpikeData>.toStringType(): String = when (this) {
27
27
  SpikeDataTypes.HEART_RATE -> "heart"
28
28
  SpikeDataTypes.SLEEP -> "sleep"
29
29
  SpikeDataTypes.STEPS -> "steps"
30
+ SpikeDataTypes.INTRADAY_STEPS -> "steps_intraday"
30
31
  SpikeDataTypes.ACTIVITIES_STREAM -> "activities_stream"
31
32
  SpikeDataTypes.ACTIVITIES_SUMMARY -> "activities_summary"
32
33
  SpikeDataTypes.BREATHING -> "breathing"
@@ -42,6 +43,7 @@ fun String.toSpikeDataType(): SpikeDataType<out SpikeData> = when (this) {
42
43
  "heart" -> SpikeDataTypes.HEART_RATE
43
44
  "sleep" -> SpikeDataTypes.SLEEP
44
45
  "steps" -> SpikeDataTypes.STEPS
46
+ "steps_intraday" -> SpikeDataTypes.INTRADAY_STEPS
45
47
  "activities_stream" -> SpikeDataTypes.ACTIVITIES_STREAM
46
48
  "activities_summary" -> SpikeDataTypes.ACTIVITIES_SUMMARY
47
49
  "breathing" -> SpikeDataTypes.BREATHING
@@ -7,8 +7,8 @@ export type SpikeStepsIntradayDataEntry = {
7
7
  timezoneOffset: number;
8
8
  };
9
9
  type IntradayData = {
10
- time_start: string;
11
- time_end: string;
10
+ timeStart: string;
11
+ timeEnd: string;
12
12
  value: number;
13
13
  source?: string;
14
14
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SpikeStepsIntradayDataEntry.d.ts","sourceRoot":"","sources":["../../../src/DataModels/SpikeStepsIntradayDataEntry.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,2BAA2B,GAAG;IACxC,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;IAClB,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,KAAK,YAAY,GAAG;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC"}
1
+ {"version":3,"file":"SpikeStepsIntradayDataEntry.d.ts","sourceRoot":"","sources":["../../../src/DataModels/SpikeStepsIntradayDataEntry.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,2BAA2B,GAAG;IACxC,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;IAClB,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,KAAK,YAAY,GAAG;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-spike-sdk",
3
- "version": "2.2.8",
3
+ "version": "2.2.10",
4
4
  "description": "Spike API for health and productivity data from wearables and IoT devices",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -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 = "2.2.8"
8
+ s.version = "2.2.10"
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", "~> 2.1.12"
28
+ s.dependency "SpikeSDK", "~> 2.1.13"
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
@@ -8,8 +8,8 @@ export type SpikeStepsIntradayDataEntry = {
8
8
  };
9
9
 
10
10
  type IntradayData = {
11
- time_start: string;
12
- time_end: string;
11
+ timeStart: string;
12
+ timeEnd: string;
13
13
  value: number;
14
14
  source?: string;
15
15
  };