src/app/modules/groups/interfaces/group.ts
CsGroup
Properties |
|
cardBgColor |
cardBgColor:
|
Type : any
|
Optional |
cardTitleColor |
cardTitleColor:
|
Type : any
|
Optional |
initial |
initial:
|
Type : string
|
Optional |
isAdmin |
isAdmin:
|
Type : boolean
|
Optional |
isCreator |
isCreator:
|
Type : boolean
|
Optional |
isLoading |
isLoading:
|
Type : boolean
|
Optional |
memberRole |
memberRole:
|
Type : string
|
Optional |
theme |
theme:
|
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'
}