UNPKG

@ztimson/momentum

Version:

Client library for momentum

29 lines 931 B
import { AssetController } from './asset-controller'; import { Alert, Meta } from './core'; import { Momentum } from './momentum'; /** User group */ export type Group = Meta & { /** Group name, immutable */ readonly _id: string; /** Group description */ description: string; /** Admin notes */ notes: string; /** List of usernames that are in group */ users: string[]; /** UI dashboard page */ dashboardUrl: string | null; /** Redirect user to URL on login */ loginRedirect: string | null; /** List of alerts group should be notified by */ alerts: Alert[]; /** List of permissions group grants */ permissions: string[]; /** Custom data, overridden by user's custom data */ custom: any; }; export declare class Groups extends AssetController<Group> { protected momentum: Momentum; constructor(momentum: Momentum); } //# sourceMappingURL=groups.d.ts.map