summary refs log tree commit diff
path: root/api/src/schema/Invite.ts
blob: a22449ba0bf2fc362ff8f890778506df8e970f5c (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;
}