@icanbwell/types 0.42.0 → 0.43.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": "0.42.0",
3
+ "version": "0.43.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": "1.32.0",
40
- "description": "@icanbwell/types. repo version: 1.32.0",
39
+ "repoVersion": "1.35.0",
40
+ "description": "@icanbwell/types. repo version: 1.35.0",
41
41
  "module": "./index.js",
42
42
  "main": "./index.js",
43
43
  "type": "module",
@@ -1,7 +1,7 @@
1
1
  import type rnBiometrics from 'react-native-biometrics';
2
2
  import type TypedEmitter from 'typed-emitter';
3
3
  import { OnAuthSuccessEventKey, type OnAuthSuccessEventData, ErrorEventKey, type ErrorEventData, type NativeDependenciesEventKey } from './native-components';
4
- import { PermissionStatus } from 'react-native-permissions';
4
+ import { openSettings, PermissionStatus } from 'react-native-permissions';
5
5
  import { NativeDependencies } from './native-plugins';
6
6
  export type NativeEvents<T = any> = {
7
7
  openwebview: (url: string) => void;
@@ -39,6 +39,8 @@ export interface ICamera {
39
39
  isAvailable(): Promise<boolean>;
40
40
  requestPermission(): Promise<PermissionStatus>;
41
41
  checkPermission(): Promise<PermissionStatus>;
42
+ requestRollPermission(): Promise<PermissionStatus>;
43
+ checkRollPermission(): Promise<PermissionStatus>;
42
44
  }
43
45
  export interface GeoOptions {
44
46
  timeout?: number;
@@ -81,6 +83,21 @@ export type PrintOptions = {
81
83
  export interface IPrint {
82
84
  print(options: PrintOptions): Promise<boolean>;
83
85
  }
86
+ export type DocumentPickerResult = {
87
+ type: string;
88
+ name: string;
89
+ size: number;
90
+ base64: string;
91
+ };
92
+ export interface IDocumentPicker {
93
+ pickMultiple(): Array<DocumentPickerResult>;
94
+ pickSingle(): DocumentPickerResult[];
95
+ requestPermission(): Promise<PermissionStatus>;
96
+ checkPermission(): Promise<PermissionStatus>;
97
+ }
98
+ export interface ISystem {
99
+ openSettings: typeof openSettings;
100
+ }
84
101
  export interface INativeBridge {
85
102
  webview: IWebview;
86
103
  biometrics: IBiometrics;
@@ -89,6 +106,8 @@ export interface INativeBridge {
89
106
  camera: ICamera;
90
107
  geolocation: IGeolocation;
91
108
  print: IPrint;
109
+ documentPicker: IDocumentPicker;
110
+ system: ISystem;
92
111
  reloadView(): void;
93
112
  }
94
113
  export type GlobalPermissionStatus = PermissionStatus | PermissionState;