src/app/modules/groups/interfaces/group.ts
GroupMember
Properties |
|
id |
id:
|
Type : string
|
Optional |
identifier |
identifier:
|
Type : string
|
Optional |
indexOfMember |
indexOfMember:
|
Type : number
|
Optional |
initial |
initial:
|
Type : string
|
Optional |
isAdmin |
isAdmin:
|
Type : boolean
|
Optional |
isCreator |
isCreator:
|
Type : boolean
|
Optional |
isMenu |
isMenu:
|
Type : boolean
|
Optional |
title |
title:
|
Type : string
|
Optional |
import { GroupMembershipType, GroupEntityStatus, CsGroup, GroupMember } from '@project-sunbird/client-services/models/group';
export interface IMember {
members: [
{
userId: string;
role: string;
}
];
}
export interface IGroupUpdate {
name: string;
membershipType?: GroupMembershipType;
description?: string;
status?: GroupEntityStatus;
}
export interface IGroupCard extends CsGroup {
cardBgColor?: any;
cardTitleColor?: any;
isLoading?: boolean;
theme?: string;
initial?: string;
isCreator?: boolean;
memberRole?: string;
isAdmin?: boolean;
}
export interface IGroupMemberConfig {
showMemberCount: boolean;
showSearchBox: boolean;
showAddMemberButton: boolean;
showMemberMenu: boolean;
}
export interface IGroupMember extends GroupMember {
identifier?: string;
initial?: string;
title?: string;
isAdmin?: boolean;
isMenu?: boolean;
indexOfMember?: number;
isCreator?: boolean;
id?: string;
}
export interface IFetchForumId {
identifier: Array<string>;
type: string;
}
export interface IFetchForumConfig {
identifier: string;
type: string;
}
export enum actions {
DELETE = 'delete',
DEACTIVATE = 'deActivate',
ACTIVATE = 'activate',
DISABLE_FORUM = 'disableDiscussionForum'
}
export enum acceptTnc {
ALL = 'all',
GROUP = 'group'
}
export enum sessionKeys {
GROUPADDABLEBLOCDATA = 'group-addable-bloc-data',
GROUPDATA = 'group-data'
}