1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-11-10 01:19:53 +01:00
unleash.unleash/frontend/src/interfaces/publicSignupTokens.ts
Gastón Fournier abe160eb7d
feat: Unleash v7 ESM migration (#9877)
We're migrating to ESM, which will allow us to import the latest
versions of our dependencies.

Co-Authored-By: Christopher Kolstad <chriswk@getunleash.io>
2025-05-14 09:47:12 +02:00

36 lines
700 B
TypeScript

import type { IRole } from './role.js';
import type { IUser } from './user.js';
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;
}