@icanbwell/types 1.1.0 → 1.2.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": "1.1.0",
3
+ "version": "1.2.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": "2.7.0",
40
- "description": "@icanbwell/types. repo version: 2.7.0",
39
+ "repoVersion": "3.1.0",
40
+ "description": "@icanbwell/types. repo version: 3.1.0",
41
41
  "module": "./index.js",
42
42
  "main": "./index.js",
43
43
  "type": "module",
@@ -50,6 +50,7 @@
50
50
  "react-native-biometrics": "3.0.1",
51
51
  "react-native-document-picker": "9.0.1",
52
52
  "react-native-fs": "2.20.0",
53
+ "react-native-notifications": "5.0.0",
53
54
  "react-native-permissions": "3.8.0",
54
55
  "react-native-print": "0.11.0"
55
56
  },
@@ -120,6 +120,12 @@ export interface IDocumentPicker {
120
120
  requestPermission(): Promise<PermissionStatus>;
121
121
  checkPermission(): Promise<PermissionStatus>;
122
122
  }
123
+ export interface IPushNotifications {
124
+ isAvailable(): Promise<boolean>;
125
+ getDeviceToken(): Promise<string>;
126
+ requestPermission(): Promise<GlobalPermissionStatus>;
127
+ checkPermission(): Promise<GlobalPermissionStatus>;
128
+ }
123
129
  export interface ISystem {
124
130
  openSettings: typeof openSettings;
125
131
  }
@@ -133,6 +139,7 @@ export interface INativeBridge {
133
139
  print: IPrint;
134
140
  documentDownload: IDocumentDownload;
135
141
  documentPicker: IDocumentPicker;
142
+ pushNotifications: IPushNotifications;
136
143
  system: ISystem;
137
144
  reloadView(): void;
138
145
  }
@@ -1,12 +1,13 @@
1
1
  import type biometrics from 'react-native-biometrics';
2
2
  import type permissions from 'react-native-permissions';
3
3
  import type * as cameraRoll from '@react-native-camera-roll/camera-roll';
4
- import type * as fileSystem from 'react-native-fs';
4
+ import type fileSystem from 'react-native-fs';
5
5
  import type documentPicker from 'react-native-document-picker';
6
6
  import type geolocation from '@react-native-community/geolocation';
7
- import type * as print from 'react-native-print';
7
+ import type print from 'react-native-print';
8
8
  import type storage from '@react-native-async-storage/async-storage';
9
- 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-document-picker';
9
+ import type pushNotifications from 'react-native-notifications';
10
+ 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-document-picker' | 'react-native-notifications';
10
11
  export type NativePackages = Array<NativePackage>;
11
12
  export type NativeModuleMap = {
12
13
  biometrics?: typeof biometrics;
@@ -17,5 +18,6 @@ export type NativeModuleMap = {
17
18
  geolocation?: typeof geolocation;
18
19
  print?: typeof print;
19
20
  storage?: typeof storage;
21
+ pushNotifications?: typeof pushNotifications;
20
22
  };
21
23
  export type NativeModules = (keyof NativeModuleMap)[];