File

src/app/modules/groups/interfaces/group.ts

Index

Properties

Properties

description
description: string
Type : string
Optional
membershipType
membershipType: GroupMembershipType
Type : GroupMembershipType
Optional
name
name: string
Type : string
status
status: GroupEntityStatus
Type : GroupEntityStatus
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'
}

results matching ""

    No results matching ""