@icanbwell/types 6.3.0 → 6.4.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icanbwell/types",
3
- "version": "6.3.0",
3
+ "version": "6.4.0",
4
4
  "typedoc": {
5
5
  "entryPoint": "./src/index.ts",
6
6
  "tsconfig": "./tsconfig.lib.json"
@@ -36,8 +36,8 @@
36
36
  "import": "./index.js"
37
37
  }
38
38
  },
39
- "repoVersion": "16.19.0",
40
- "description": "@icanbwell/types. repo version: 16.19.0",
39
+ "repoVersion": "16.38.0",
40
+ "description": "@icanbwell/types. repo version: 16.38.0",
41
41
  "peerDependencies": {
42
42
  "react-native": "0.x",
43
43
  "react-native-biometrics": "3.x",
@@ -147,7 +147,20 @@ export type DeepLinkType = {
147
147
  export interface IDeepLink {
148
148
  openLink(deepLink: DeepLinkType, target?: string): Promise<void>;
149
149
  }
150
+ export interface ISamsungHealth {
151
+ connect(): Promise<boolean>;
152
+ checkPermissions(): Promise<boolean>;
153
+ readHeartRate(params: {
154
+ startDate: number;
155
+ endDate: number;
156
+ }): Promise<any>;
157
+ readBloodPressure(params: {
158
+ startDate: number;
159
+ endDate: number;
160
+ }): Promise<any>;
161
+ }
150
162
  export interface INativeBridge {
163
+ samsungHealth: ISamsungHealth;
151
164
  webview: IWebview;
152
165
  biometrics: IBiometrics;
153
166
  events: IEvents;
@@ -9,7 +9,13 @@ import type storage from '@react-native-async-storage/async-storage';
9
9
  import type * as cameraRoll from '@react-native-camera-roll/camera-roll';
10
10
  import type geolocation from '@react-native-community/geolocation';
11
11
  import type deviceInfo from 'react-native-device-info';
12
- export type NativePackage = '@react-native-async-storage/async-storage' | '@react-native-community/geolocation' | '@react-native-camera-roll/camera-roll' | 'react-native-biometrics' | 'react-native-permissions' | 'react-native-print' | 'react-native-webview' | 'react-native-fs' | '@react-native-documents/picker' | 'react-native-notifications' | 'react-native-device-info' | 'react-native-android-location-enabler';
12
+ export interface SamsungHealthNativeModule {
13
+ connect(): Promise<boolean>;
14
+ readHeartRate(startDate: number, endDate: number): Promise<any[]>;
15
+ readBloodPressure(startDate: number, endDate: number): Promise<any[]>;
16
+ checkPermissions(): Promise<boolean>;
17
+ }
18
+ export type NativePackage = '@react-native-async-storage/async-storage' | '@react-native-community/geolocation' | '@react-native-camera-roll/camera-roll' | 'react-native-biometrics' | 'react-native-permissions' | 'react-native-print' | 'react-native-webview' | 'react-native-fs' | '@react-native-documents/picker' | 'react-native-notifications' | 'react-native-device-info' | 'react-native-android-location-enabler' | 'custom-samsung-health';
13
19
  export type NativePackages = Array<NativePackage>;
14
20
  export type NativeModuleMap = {
15
21
  androidLocationEnabler?: typeof androidLocationEnabler;
@@ -23,5 +29,6 @@ export type NativeModuleMap = {
23
29
  storage?: typeof storage;
24
30
  pushNotifications?: typeof pushNotifications;
25
31
  deviceInfo?: typeof deviceInfo;
32
+ samsungHealth?: SamsungHealthNativeModule;
26
33
  };
27
34
  export type NativeModules = (keyof NativeModuleMap)[];