mirror of
https://github.com/Unleash/unleash.git
synced 2024-11-01 19:07:38 +01:00
a9e9ae8c3e
https://linear.app/unleash/issue/2-1143/adapt-project-roles-to-use-the-new-role-selector-and-role-description This PR further unifies roles, by having a single `IRole` interface to cover both types, and re-using the same components for project roles.
36 lines
684 B
TypeScript
36 lines
684 B
TypeScript
import { IRole } from './role';
|
|
import { IUser } from './user';
|
|
|
|
export interface ICreateInvitedUser {
|
|
username?: string;
|
|
email: string;
|
|
name: string;
|
|
password: string;
|
|
}
|
|
|
|
export interface IPublicSignupTokens {
|
|
tokens: IPublicSignupToken[];
|
|
}
|
|
|
|
export interface IPublicSignupToken {
|
|
secret: string;
|
|
url: string;
|
|
name: string;
|
|
enabled: boolean;
|
|
expiresAt: string;
|
|
createdAt: string;
|
|
createdBy: string | null;
|
|
users?: IUser[] | null;
|
|
role: IRole;
|
|
}
|
|
|
|
export interface IPublicSignupTokenCreate {
|
|
name: string;
|
|
expiresAt: string;
|
|
}
|
|
|
|
export interface IPublicSignupTokenUpdate {
|
|
expiresAt?: string;
|
|
enabled?: boolean;
|
|
}
|