2024-03-18 13:58:05 +01:00
|
|
|
import type { IRole } from './role';
|
|
|
|
import type { IUser } from './user';
|
2022-09-30 13:01:32 +02:00
|
|
|
|
|
|
|
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;
|
|
|
|
}
|