@tryvital/vital-core-react-native 1.3.0 → 1.3.2

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.
Files changed (159) hide show
  1. package/ios/VItalCoreConfiguration.m +1 -1
  2. package/ios/VitalCoreReactNative.swift +2 -4
  3. package/lib/commonjs/index.js +16 -7
  4. package/lib/commonjs/index.js.map +1 -1
  5. package/lib/commonjs/models/BloodPressureSample.js +2 -0
  6. package/lib/commonjs/models/{BloodPressureSample.d.js.map → BloodPressureSample.js.map} +1 -1
  7. package/lib/commonjs/models/QuantitySample.js +2 -0
  8. package/lib/commonjs/models/{QuantitySample.d.js.map → QuantitySample.js.map} +1 -1
  9. package/lib/module/index.js +2 -4
  10. package/lib/module/index.js.map +1 -1
  11. package/lib/module/models/BloodPressureSample.js +2 -0
  12. package/lib/module/models/{BloodPressureSample.d.js.map → BloodPressureSample.js.map} +1 -1
  13. package/lib/module/models/QuantitySample.js +2 -0
  14. package/lib/module/models/{QuantitySample.d.js.map → QuantitySample.js.map} +1 -1
  15. package/lib/typescript/index.d.ts +2 -2
  16. package/lib/typescript/index.d.ts.map +1 -1
  17. package/lib/typescript/models/BloodPressureSample.d.ts +7 -0
  18. package/lib/typescript/models/BloodPressureSample.d.ts.map +1 -0
  19. package/lib/typescript/models/QuantitySample.d.ts +11 -0
  20. package/lib/typescript/models/QuantitySample.d.ts.map +1 -0
  21. package/package.json +4 -2
  22. package/src/index.ts +2 -2
  23. package/tsconfig.json +1 -1
  24. package/vital-core-react-native.podspec +1 -1
  25. package/yarn-error.log +12561 -0
  26. package/.DS_Store +0 -0
  27. package/android/build/.transforms/38d6dcf5f4478590d01d42a63c816325/results.bin +0 -1
  28. package/android/build/.transforms/38d6dcf5f4478590d01d42a63c816325/transformed/debug/com/vitalcorereactnative/BuildConfig.dex +0 -0
  29. package/android/build/.transforms/38d6dcf5f4478590d01d42a63c816325/transformed/debug/com/vitalcorereactnative/VitalCoreReactNativeModule$Companion.dex +0 -0
  30. package/android/build/.transforms/38d6dcf5f4478590d01d42a63c816325/transformed/debug/com/vitalcorereactnative/VitalCoreReactNativeModule.dex +0 -0
  31. package/android/build/.transforms/38d6dcf5f4478590d01d42a63c816325/transformed/debug/com/vitalcorereactnative/VitalCoreReactNativePackage.dex +0 -0
  32. package/android/build/.transforms/38d6dcf5f4478590d01d42a63c816325/transformed/desugar_graph.bin +0 -0
  33. package/android/build/.transforms/81981a70da18d3efe533daf2ba1b9186/results.bin +0 -1
  34. package/android/build/generated/source/buildConfig/debug/com/vitalcorereactnative/BuildConfig.java +0 -12
  35. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/AndroidManifest.xml +0 -9
  36. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/output-metadata.json +0 -18
  37. package/android/build/intermediates/aar_metadata/debug/aar-metadata.properties +0 -4
  38. package/android/build/intermediates/annotation_processor_list/debug/annotationProcessors.json +0 -1
  39. package/android/build/intermediates/compile_library_classes_jar/debug/classes.jar +0 -0
  40. package/android/build/intermediates/compile_r_class_jar/debug/R.jar +0 -0
  41. package/android/build/intermediates/compile_symbol_list/debug/R.txt +0 -1958
  42. package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +0 -1
  43. package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +0 -2
  44. package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +0 -2
  45. package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +0 -2
  46. package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +0 -2
  47. package/android/build/intermediates/javac/debug/classes/com/vitalcorereactnative/BuildConfig.class +0 -0
  48. package/android/build/intermediates/library_java_res/debug/res.jar +0 -0
  49. package/android/build/intermediates/local_only_symbol_list/debug/R-def.txt +0 -2
  50. package/android/build/intermediates/manifest_merge_blame_file/debug/manifest-merger-blame-debug-report.txt +0 -11
  51. package/android/build/intermediates/merged_manifest/debug/AndroidManifest.xml +0 -9
  52. package/android/build/intermediates/navigation_json/debug/navigation.json +0 -1
  53. package/android/build/intermediates/packaged_manifests/debug/output-metadata.json +0 -18
  54. package/android/build/intermediates/runtime_library_classes_dir/debug/META-INF/tryvital_vital-core-react-native_debug.kotlin_module +0 -0
  55. package/android/build/intermediates/runtime_library_classes_dir/debug/com/vitalcorereactnative/BuildConfig.class +0 -0
  56. package/android/build/intermediates/runtime_library_classes_dir/debug/com/vitalcorereactnative/VitalCoreReactNativeModule$Companion.class +0 -0
  57. package/android/build/intermediates/runtime_library_classes_dir/debug/com/vitalcorereactnative/VitalCoreReactNativeModule.class +0 -0
  58. package/android/build/intermediates/runtime_library_classes_dir/debug/com/vitalcorereactnative/VitalCoreReactNativePackage.class +0 -0
  59. package/android/build/intermediates/symbol_list_with_package_name/debug/package-aware-r.txt +0 -1451
  60. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
  61. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
  62. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
  63. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len +0 -0
  64. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
  65. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i +0 -0
  66. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i.len +0 -0
  67. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
  68. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
  69. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
  70. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
  71. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
  72. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
  73. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i.len +0 -0
  74. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
  75. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
  76. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
  77. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
  78. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
  79. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
  80. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len +0 -0
  81. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab +0 -0
  82. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream +0 -0
  83. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream.len +0 -0
  84. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.len +0 -0
  85. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.values.at +0 -0
  86. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i +0 -0
  87. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i.len +0 -0
  88. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
  89. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
  90. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
  91. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
  92. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
  93. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
  94. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len +0 -0
  95. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
  96. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
  97. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
  98. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
  99. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
  100. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
  101. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i.len +0 -0
  102. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
  103. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
  104. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
  105. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
  106. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
  107. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
  108. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len +0 -0
  109. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
  110. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
  111. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
  112. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
  113. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
  114. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i +0 -0
  115. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
  116. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
  117. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
  118. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
  119. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
  120. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
  121. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
  122. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len +0 -0
  123. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/counters.tab +0 -2
  124. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
  125. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
  126. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
  127. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len +0 -0
  128. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
  129. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i +0 -0
  130. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i.len +0 -0
  131. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab +0 -0
  132. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
  133. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
  134. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len +0 -0
  135. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
  136. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i +0 -0
  137. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len +0 -0
  138. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
  139. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
  140. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
  141. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
  142. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
  143. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +0 -0
  144. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i.len +0 -0
  145. package/android/build/kotlin/compileDebugKotlin/cacheable/last-build.bin +0 -0
  146. package/android/build/kotlin/compileDebugKotlin/local-state/build-history.bin +0 -0
  147. package/android/build/outputs/logs/manifest-merger-debug-report.txt +0 -25
  148. package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  149. package/android/build/tmp/kotlin-classes/debug/META-INF/tryvital_vital-core-react-native_debug.kotlin_module +0 -0
  150. package/android/build/tmp/kotlin-classes/debug/com/vitalcorereactnative/VitalCoreReactNativeModule$Companion.class +0 -0
  151. package/android/build/tmp/kotlin-classes/debug/com/vitalcorereactnative/VitalCoreReactNativeModule.class +0 -0
  152. package/android/build/tmp/kotlin-classes/debug/com/vitalcorereactnative/VitalCoreReactNativePackage.class +0 -0
  153. package/ios/.DS_Store +0 -0
  154. package/lib/commonjs/models/BloodPressureSample.d.js +0 -2
  155. package/lib/commonjs/models/QuantitySample.d.js +0 -2
  156. package/lib/module/models/BloodPressureSample.d.js +0 -2
  157. package/lib/module/models/QuantitySample.d.js +0 -2
  158. /package/src/models/{BloodPressureSample.d.ts → BloodPressureSample.ts} +0 -0
  159. /package/src/models/{QuantitySample.d.ts → QuantitySample.ts} +0 -0
@@ -6,7 +6,7 @@
6
6
  @implementation VitalCoreConfiguration
7
7
 
8
8
  + (void)automaticConfiguration {
9
- [VitalClient automaticConfigurationWithCompletionHandler:^{}];
9
+ [VitalClient automaticConfigurationWithCompletion:nil];
10
10
  }
11
11
 
12
12
  @end
@@ -41,10 +41,8 @@ class VitalCoreReactNative: NSObject {
41
41
  return
42
42
  }
43
43
 
44
- Task {
45
- await VitalClient.configure(apiKey: apiKey, environment: env, configuration: .init(logsEnable: enableLogs))
46
- resolve(())
47
- }
44
+ VitalClient.configure(apiKey: apiKey, environment: env, configuration: .init(logsEnable: enableLogs))
45
+ resolve(())
48
46
  }
49
47
 
50
48
  @objc(cleanUp:rejecter:)
@@ -3,14 +3,23 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.VitalCore = exports.QuantitySample = exports.BloodPressureSample = void 0;
6
+ Object.defineProperty(exports, "BloodPressureSample", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _BloodPressureSample.default;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "QuantitySample", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _QuantitySample.default;
16
+ }
17
+ });
18
+ exports.VitalCore = void 0;
7
19
  var _reactNative = require("react-native");
8
- var _QuantitySample = _interopRequireWildcard(require("./models/QuantitySample"));
9
- exports.QuantitySample = _QuantitySample;
10
- var _BloodPressureSample = _interopRequireWildcard(require("./models/BloodPressureSample"));
11
- exports.BloodPressureSample = _BloodPressureSample;
12
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
13
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
20
+ var _QuantitySample = _interopRequireDefault(require("./models/QuantitySample"));
21
+ var _BloodPressureSample = _interopRequireDefault(require("./models/BloodPressureSample"));
22
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
23
  const LINKING_ERROR = `The package 'vital-core-react-native' doesn't seem to be linked. Make sure: \n\n` + _reactNative.Platform.select({
15
24
  ios: "- You have run 'pod install'\n",
16
25
  default: ''
@@ -1 +1 @@
1
- {"version":3,"names":["LINKING_ERROR","Platform","select","ios","default","VitalCoreReactNative","NativeModules","Proxy","get","Error","VitalCore","setUserId","userId","configure","apiKey","environment","region","enableLogs","cleanUp"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;;;;AAAA;AAAuD;AAAA;AAAA;AAAA;AAAA;AAAA;AAKvD,MAAMA,aAAa,GAChB,kFAAiF,GAClFC,qBAAQ,CAACC,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,+BAA+B;AAEjC,MAAMC,oBAAoB,GAAGC,0BAAa,CAACD,oBAAoB,GAC3DC,0BAAa,CAACD,oBAAoB,GAClC,IAAIE,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAG,GAAG;IACJ,MAAM,IAAIC,KAAK,CAACT,aAAa,CAAC;EAChC;AACF,CAAC,CACF;AAEE,MAAMU,SAAS,CAAC;EACrB,OAAOC,SAAS,CAACC,MAAc,EAAiB;IAC9C,OAAOP,oBAAoB,CAACM,SAAS,CAACC,MAAM,CAAC;EAC/C;EAEA,OAAOC,SAAS,CACdC,MAAc,EACdC,WAAmB,EACnBC,MAAc,EACdC,UAAmB,EACJ;IACf,OAAOZ,oBAAoB,CAACQ,SAAS,CACnCC,MAAM,EACNC,WAAW,EACXC,MAAM,EACNC,UAAU,CACX;EACH;EAEA,OAAOC,OAAO,GAAkB;IAC9B,OAAOb,oBAAoB,CAACa,OAAO,EAAE;EACvC;AACF;AAAC"}
1
+ {"version":3,"names":["LINKING_ERROR","Platform","select","ios","default","VitalCoreReactNative","NativeModules","Proxy","get","Error","VitalCore","setUserId","userId","configure","apiKey","environment","region","enableLogs","cleanUp"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAEA;AACA;AAA8E;AAE9E,MAAMA,aAAa,GAChB,kFAAiF,GAClFC,qBAAQ,CAACC,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,+BAA+B;AAEjC,MAAMC,oBAAoB,GAAGC,0BAAa,CAACD,oBAAoB,GAC3DC,0BAAa,CAACD,oBAAoB,GAClC,IAAIE,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAG,GAAG;IACJ,MAAM,IAAIC,KAAK,CAACT,aAAa,CAAC;EAChC;AACF,CAAC,CACF;AAEE,MAAMU,SAAS,CAAC;EACrB,OAAOC,SAAS,CAACC,MAAc,EAAiB;IAC9C,OAAOP,oBAAoB,CAACM,SAAS,CAACC,MAAM,CAAC;EAC/C;EAEA,OAAOC,SAAS,CACdC,MAAc,EACdC,WAAmB,EACnBC,MAAc,EACdC,UAAmB,EACJ;IACf,OAAOZ,oBAAoB,CAACQ,SAAS,CACnCC,MAAM,EACNC,WAAW,EACXC,MAAM,EACNC,UAAU,CACX;EACH;EAEA,OAAOC,OAAO,GAAkB;IAC9B,OAAOb,oBAAoB,CAACa,OAAO,EAAE;EACvC;AACF;AAAC"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=BloodPressureSample.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sourceRoot":"../../src","sources":["BloodPressureSample.d.ts"],"mappings":""}
1
+ {"version":3,"names":[],"sourceRoot":"../../src","sources":["BloodPressureSample.ts"],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=QuantitySample.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sourceRoot":"../../src","sources":["QuantitySample.d.ts"],"mappings":""}
1
+ {"version":3,"names":[],"sourceRoot":"../../src","sources":["QuantitySample.ts"],"mappings":""}
@@ -1,8 +1,6 @@
1
1
  import { NativeModules, Platform } from 'react-native';
2
- import * as _QuantitySample from './models/QuantitySample';
3
- export { _QuantitySample as QuantitySample };
4
- import * as _BloodPressureSample from './models/BloodPressureSample';
5
- export { _BloodPressureSample as BloodPressureSample };
2
+ export { default as QuantitySample } from './models/QuantitySample';
3
+ export { default as BloodPressureSample } from './models/BloodPressureSample';
6
4
  const LINKING_ERROR = `The package 'vital-core-react-native' doesn't seem to be linked. Make sure: \n\n` + Platform.select({
7
5
  ios: "- You have run 'pod install'\n",
8
6
  default: ''
@@ -1 +1 @@
1
- {"version":3,"names":["NativeModules","Platform","QuantitySample","BloodPressureSample","LINKING_ERROR","select","ios","default","VitalCoreReactNative","Proxy","get","Error","VitalCore","setUserId","userId","configure","apiKey","environment","region","enableLogs","cleanUp"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":"AAAA,SAASA,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AAAC,iCAEvB,yBAAyB;AAAA,4BAA7CC,cAAc;AAAA,sCACW,8BAA8B;AAAA,iCAAvDC,mBAAmB;AAE/B,MAAMC,aAAa,GAChB,kFAAiF,GAClFH,QAAQ,CAACI,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,+BAA+B;AAEjC,MAAMC,oBAAoB,GAAGR,aAAa,CAACQ,oBAAoB,GAC3DR,aAAa,CAACQ,oBAAoB,GAClC,IAAIC,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAG,GAAG;IACJ,MAAM,IAAIC,KAAK,CAACP,aAAa,CAAC;EAChC;AACF,CAAC,CACF;AAEL,OAAO,MAAMQ,SAAS,CAAC;EACrB,OAAOC,SAAS,CAACC,MAAc,EAAiB;IAC9C,OAAON,oBAAoB,CAACK,SAAS,CAACC,MAAM,CAAC;EAC/C;EAEA,OAAOC,SAAS,CACdC,MAAc,EACdC,WAAmB,EACnBC,MAAc,EACdC,UAAmB,EACJ;IACf,OAAOX,oBAAoB,CAACO,SAAS,CACnCC,MAAM,EACNC,WAAW,EACXC,MAAM,EACNC,UAAU,CACX;EACH;EAEA,OAAOC,OAAO,GAAkB;IAC9B,OAAOZ,oBAAoB,CAACY,OAAO,EAAE;EACvC;AACF"}
1
+ {"version":3,"names":["NativeModules","Platform","default","QuantitySample","BloodPressureSample","LINKING_ERROR","select","ios","VitalCoreReactNative","Proxy","get","Error","VitalCore","setUserId","userId","configure","apiKey","environment","region","enableLogs","cleanUp"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":"AAAA,SAASA,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AAEtD,SAASC,OAAO,IAAIC,cAAc,QAAQ,yBAAyB;AACnE,SAASD,OAAO,IAAIE,mBAAmB,QAAQ,8BAA8B;AAE7E,MAAMC,aAAa,GAChB,kFAAiF,GAClFJ,QAAQ,CAACK,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEL,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,+BAA+B;AAEjC,MAAMM,oBAAoB,GAAGR,aAAa,CAACQ,oBAAoB,GAC3DR,aAAa,CAACQ,oBAAoB,GAClC,IAAIC,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAG,GAAG;IACJ,MAAM,IAAIC,KAAK,CAACN,aAAa,CAAC;EAChC;AACF,CAAC,CACF;AAEL,OAAO,MAAMO,SAAS,CAAC;EACrB,OAAOC,SAAS,CAACC,MAAc,EAAiB;IAC9C,OAAON,oBAAoB,CAACK,SAAS,CAACC,MAAM,CAAC;EAC/C;EAEA,OAAOC,SAAS,CACdC,MAAc,EACdC,WAAmB,EACnBC,MAAc,EACdC,UAAmB,EACJ;IACf,OAAOX,oBAAoB,CAACO,SAAS,CACnCC,MAAM,EACNC,WAAW,EACXC,MAAM,EACNC,UAAU,CACX;EACH;EAEA,OAAOC,OAAO,GAAkB;IAC9B,OAAOZ,oBAAoB,CAACY,OAAO,EAAE;EACvC;AACF"}
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=BloodPressureSample.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sourceRoot":"../../src","sources":["BloodPressureSample.d.ts"],"mappings":""}
1
+ {"version":3,"names":[],"sourceRoot":"../../src","sources":["BloodPressureSample.ts"],"mappings":""}
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=QuantitySample.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sourceRoot":"../../src","sources":["QuantitySample.d.ts"],"mappings":""}
1
+ {"version":3,"names":[],"sourceRoot":"../../src","sources":["QuantitySample.ts"],"mappings":""}
@@ -1,5 +1,5 @@
1
- export * as QuantitySample from './models/QuantitySample';
2
- export * as BloodPressureSample from './models/BloodPressureSample';
1
+ export { default as QuantitySample } from './models/QuantitySample';
2
+ export { default as BloodPressureSample } from './models/BloodPressureSample';
3
3
  export declare class VitalCore {
4
4
  static setUserId(userId: string): Promise<void>;
5
5
  static configure(apiKey: string, environment: string, region: string, enableLogs: boolean): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,cAAc,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,mBAAmB,MAAM,8BAA8B,CAAC;AAmBpE,qBAAa,SAAS;IACpB,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAI/C,MAAM,CAAC,SAAS,CACd,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,OAAO,GAClB,OAAO,CAAC,IAAI,CAAC;IAShB,MAAM,CAAC,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CAGhC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAmB9E,qBAAa,SAAS;IACpB,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAI/C,MAAM,CAAC,SAAS,CACd,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,OAAO,GAClB,OAAO,CAAC,IAAI,CAAC;IAShB,MAAM,CAAC,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CAGhC"}
@@ -0,0 +1,7 @@
1
+ import type QuantitySample from "./QuantitySample";
2
+ export default interface BloodPressureSample {
3
+ systolic: QuantitySample;
4
+ diastolic: QuantitySample;
5
+ pulse: QuantitySample | null;
6
+ }
7
+ //# sourceMappingURL=BloodPressureSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BloodPressureSample.d.ts","sourceRoot":"","sources":["../../../src/models/BloodPressureSample.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc,MAAM,kBAAkB,CAAA;AAElD,MAAM,CAAC,OAAO,WAAW,mBAAmB;IACxC,QAAQ,EAAE,cAAc,CAAC;IACzB,SAAS,EAAE,cAAc,CAAC;IAC1B,KAAK,EAAE,cAAc,GAAG,IAAI,CAAA;CAC/B"}
@@ -0,0 +1,11 @@
1
+ export default interface QuantitySample {
2
+ id: string | null;
3
+ value: number;
4
+ startDate: Date;
5
+ endDate: Date;
6
+ sourceBundle: string | null;
7
+ productType: string | null;
8
+ type: string | null;
9
+ unit: string;
10
+ }
11
+ //# sourceMappingURL=QuantitySample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QuantitySample.d.ts","sourceRoot":"","sources":["../../../src/models/QuantitySample.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,WAAW,cAAc;IACnC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,IAAI,CAAC;IAChB,OAAO,EAAE,IAAI,CAAC;IACd,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,EAAE,MAAM,CAAA;CACf"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryvital/vital-core-react-native",
3
- "version": "1.3.0",
3
+ "version": "v1.3.2",
4
4
  "description": "test",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",
@@ -26,7 +26,8 @@
26
26
  "!**/.*"
27
27
  ],
28
28
  "scripts": {
29
- "build": "bob build",
29
+ "build": "bob build && yarn run postbuild-copy-declarations",
30
+ "postbuild-copy-declarations": "copyfiles -u 1 src/**/*.d.ts lib/typescript",
30
31
  "clean": "del lib",
31
32
  "prepack": "yarn run clean && yarn run build",
32
33
  "np": "np --no-publish",
@@ -52,6 +53,7 @@
52
53
  "@types/jest": "^28.1.2",
53
54
  "@types/react": "~17.0.21",
54
55
  "@types/react-native": "0.70.0",
56
+ "copyfiles": "^2.4.1",
55
57
  "del-cli": "^5.0.0",
56
58
  "eslint": "^8.4.1",
57
59
  "eslint-config-prettier": "^8.5.0",
package/src/index.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { NativeModules, Platform } from 'react-native';
2
2
 
3
- export * as QuantitySample from './models/QuantitySample';
4
- export * as BloodPressureSample from './models/BloodPressureSample';
3
+ export { default as QuantitySample } from './models/QuantitySample';
4
+ export { default as BloodPressureSample } from './models/BloodPressureSample';
5
5
 
6
6
  const LINKING_ERROR =
7
7
  `The package 'vital-core-react-native' doesn't seem to be linked. Make sure: \n\n` +
package/tsconfig.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "compilerOptions": {
3
3
  "baseUrl": "./",
4
4
  "paths": {
5
- "vital-core-react-native": ["./src/index"]
5
+ "vital-core-react-native": ["./src/*", "./src/models/*"]
6
6
  },
7
7
  "outDir": "./lib",
8
8
  "allowUnreachableCode": false,
@@ -17,7 +17,7 @@ Pod::Spec.new do |s|
17
17
  s.source_files = "ios/**/*.{h,m,mm,swift}"
18
18
 
19
19
  s.dependency "React-Core"
20
- s.dependency "VitalCore", "~> 0.7.18"
20
+ s.dependency "VitalCore", "~> 0.8.0"
21
21
 
22
22
  # Don't install the dependencies when we run `pod install` in the old architecture.
23
23
  if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then