@apps-in-toss/framework 0.0.5 → 0.0.7

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.
@@ -0,0 +1,36 @@
1
+ import { BedrockPluginCore } from 'react-native-bedrock/config';
2
+
3
+ type PermissionReadWrite = 'read' | 'write';
4
+ type PermissionAccess = 'access';
5
+ type ClipboardPermission = {
6
+ name: 'clipboard';
7
+ access: PermissionReadWrite;
8
+ };
9
+ type GeolocationPermission = {
10
+ name: 'geolocation';
11
+ access: PermissionAccess;
12
+ };
13
+ type ContactsPermission = {
14
+ name: 'contacts';
15
+ access: PermissionReadWrite;
16
+ };
17
+ type PhotosPermission = {
18
+ name: 'photos';
19
+ access: PermissionReadWrite;
20
+ };
21
+ type CameraPermission = {
22
+ name: 'camera';
23
+ access: PermissionAccess;
24
+ };
25
+ type Permission = ClipboardPermission | GeolocationPermission | ContactsPermission | PhotosPermission | CameraPermission;
26
+ type AppManifest = {
27
+ appName: string;
28
+ permissions: Permission[];
29
+ };
30
+
31
+ interface AppsInTossPluginOptions {
32
+ permissions: Permission[];
33
+ }
34
+ declare function appsInToss(options: AppsInTossPluginOptions): (BedrockPluginCore | Promise<BedrockPluginCore>)[];
35
+
36
+ export { type AppManifest, type AppsInTossPluginOptions, type Permission, appsInToss };
@@ -0,0 +1,36 @@
1
+ import { BedrockPluginCore } from 'react-native-bedrock/config';
2
+
3
+ type PermissionReadWrite = 'read' | 'write';
4
+ type PermissionAccess = 'access';
5
+ type ClipboardPermission = {
6
+ name: 'clipboard';
7
+ access: PermissionReadWrite;
8
+ };
9
+ type GeolocationPermission = {
10
+ name: 'geolocation';
11
+ access: PermissionAccess;
12
+ };
13
+ type ContactsPermission = {
14
+ name: 'contacts';
15
+ access: PermissionReadWrite;
16
+ };
17
+ type PhotosPermission = {
18
+ name: 'photos';
19
+ access: PermissionReadWrite;
20
+ };
21
+ type CameraPermission = {
22
+ name: 'camera';
23
+ access: PermissionAccess;
24
+ };
25
+ type Permission = ClipboardPermission | GeolocationPermission | ContactsPermission | PhotosPermission | CameraPermission;
26
+ type AppManifest = {
27
+ appName: string;
28
+ permissions: Permission[];
29
+ };
30
+
31
+ interface AppsInTossPluginOptions {
32
+ permissions: Permission[];
33
+ }
34
+ declare function appsInToss(options: AppsInTossPluginOptions): (BedrockPluginCore | Promise<BedrockPluginCore>)[];
35
+
36
+ export { type AppManifest, type AppsInTossPluginOptions, type Permission, appsInToss };