@frontegg/vue 3.0.13 → 3.0.14-alpha.7527626825
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.
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { EntitledToOptions
|
|
1
|
+
import { EntitledToOptions } from '@frontegg/types';
|
|
2
2
|
/**
|
|
3
3
|
@param key feature key
|
|
4
4
|
@param customAttributes consumer attributes
|
|
5
5
|
@returns if the user is entitled to the given feature. Attaching the justification if not
|
|
6
6
|
@throws when entitlement is not enabled via frontegg options
|
|
7
7
|
*/
|
|
8
|
-
export declare const useFeatureEntitlements: (key: string, customAttributes?: Record<string, string | number | boolean | Date> | undefined) =>
|
|
8
|
+
export declare const useFeatureEntitlements: (key: string, customAttributes?: Record<string, string | number | boolean | Date> | undefined) => any;
|
|
9
9
|
/**
|
|
10
10
|
@param key permission key
|
|
11
11
|
@param customAttributes consumer attributes
|
|
12
12
|
@returns if the user is entitled to the given permission. Attaching the justification if not
|
|
13
13
|
@throws when entitlement is not enabled via frontegg options
|
|
14
14
|
*/
|
|
15
|
-
export declare const usePermissionEntitlements: (key: string, customAttributes?: Record<string, string | number | boolean | Date> | undefined) =>
|
|
15
|
+
export declare const usePermissionEntitlements: (key: string, customAttributes?: Record<string, string | number | boolean | Date> | undefined) => any;
|
|
16
16
|
/**
|
|
17
17
|
@param entitledToOptions - including permission or feature key
|
|
18
18
|
@param customAttributes consumer attributes
|
|
19
19
|
@returns if the user is entitled to the given permission or feature. Attaching the justification if not
|
|
20
20
|
@throws when entitlement is not enabled via frontegg options
|
|
21
21
|
*/
|
|
22
|
-
export declare const useEntitlements: (entitledToOptions: EntitledToOptions, customAttributes?: Record<string, string | number | boolean | Date> | undefined) =>
|
|
22
|
+
export declare const useEntitlements: (entitledToOptions: EntitledToOptions, customAttributes?: Record<string, string | number | boolean | Date> | undefined) => any;
|
package/package.json
CHANGED