@liff/permission
Advanced tools
Comparing version
import { Permission } from './isPermissionAvailable'; | ||
declare type defaultFnType = (...args: unknown[]) => Promise<unknown>; | ||
/** | ||
* Create wrapped API function with permission checking and it will grant the permission automaticallly before calling the API. | ||
* API Reference | ||
* @export | ||
* @returns {Promise<unknown>} | ||
*/ | ||
export declare function attachChecker<FnType extends defaultFnType>(fn: FnType, permission: Permission): FnType; | ||
export {}; |
import { Permission } from './isPermissionAvailable'; | ||
/** | ||
* Get the permissions haven't been approved | ||
* @export | ||
* @returns {Promise<Array<Permission>>} | ||
*/ | ||
export default function getUnauthorizedPermissions(): Promise<Array<Permission>>; |
import { PERMISSION_NAMES } from '@liff/consts'; | ||
import { ElementType } from '@liff/util'; | ||
export declare type Permission = ElementType<typeof PERMISSION_NAMES>; | ||
/** | ||
* Check the whether the permission is in the LIFF app scope. | ||
* API Reference | ||
* @export | ||
* @returns {boolean} | ||
*/ | ||
export default function isPermissionAvailable(permission: Permission): boolean; |
@@ -5,9 +5,3 @@ import { Permission } from './isPermissionAvailable'; | ||
} | ||
/** | ||
* Check the whether the permission was granted | ||
* API Reference | ||
* @export | ||
* @returns {Promise<PermissionStatus>} | ||
*/ | ||
export default function query(permission: Permission): Promise<PermissionStatus>; | ||
export {}; |
@@ -1,7 +0,1 @@ | ||
/** | ||
* Grant specific permission with incremental consent agreement flow. | ||
* API Reference | ||
* @export | ||
* @returns {Promise<void>} | ||
*/ | ||
export default function requestAll(): Promise<void>; |
{ | ||
"name": "@liff/permission", | ||
"version": "2.20.2", | ||
"version": "2.20.3", | ||
"description": "@liff/permission", | ||
@@ -34,12 +34,12 @@ "license": "SEE LICENSE IN README.md", | ||
"dependencies": { | ||
"@liff/consts": "2.20.2", | ||
"@liff/is-api-available": "2.20.2", | ||
"@liff/is-in-client": "2.20.2", | ||
"@liff/server-api": "2.20.2", | ||
"@liff/store": "2.20.2", | ||
"@liff/sub-window": "2.20.2", | ||
"@liff/use": "2.20.2", | ||
"@liff/util": "2.20.2" | ||
"@liff/consts": "2.20.3", | ||
"@liff/is-api-available": "2.20.3", | ||
"@liff/is-in-client": "2.20.3", | ||
"@liff/server-api": "2.20.3", | ||
"@liff/store": "2.20.3", | ||
"@liff/sub-window": "2.20.3", | ||
"@liff/use": "2.20.3", | ||
"@liff/util": "2.20.3" | ||
}, | ||
"gitHead": "7299a0642aafc87b46d0808da89840399148d436" | ||
"gitHead": "7845e9a5c675d44b97a35c64dc5c200c4751ce2d" | ||
} |
11938
-5.59%69
-29.59%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated
Updated
Updated
Updated
Updated