@ecency/sdk 1.0.50 → 1.0.51
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,13 +1,7 @@
|
|
1
1
|
import { ROLES } from '../types';
|
2
2
|
export type CommunityRole = (typeof ROLES)[keyof typeof ROLES];
|
3
3
|
export type CommunityType = "Topic" | "Journal" | "Council";
|
4
|
-
/**
|
5
|
-
* Determine community type based on its `name` or `type_id`
|
6
|
-
*/
|
7
4
|
export declare function getCommunityType(name: string, type_id: number): CommunityType;
|
8
|
-
/**
|
9
|
-
* Compute permissions for a given user role in a community
|
10
|
-
*/
|
11
5
|
export declare function getCommunityPermissions({ communityType, userRole, subscribed, }: {
|
12
6
|
communityType: CommunityType;
|
13
7
|
userRole: CommunityRole;
|