summary refs log tree commit diff
path: root/api/src/schema/Invite.ts
blob: da6192bc087757f32f2841a11516604e9cddd457 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
export const InviteCreateSchema = {
	$target_user_id: String,
	$target_type: String,
	$validate: String, //? wtf is this
	$max_age: Number,
	$max_uses: Number,
	$temporary: Boolean,
	$unique: Boolean,
	$target_user: String,
	$target_user_type: Number
};
export interface InviteCreateSchema {
	target_user_id?: string;
	target_type?: string;
	validate?: string; //? wtf is this
	max_age?: number;
	max_uses?: number;
	temporary?: boolean;
	unique?: boolean;
	target_user?: string;
	target_user_type?: number;
}