summary refs log tree commit diff
path: root/api/src/schema/Invite.ts
diff options
context:
space:
mode:
Diffstat (limited to 'api/src/schema/Invite.ts')
-rw-r--r--api/src/schema/Invite.ts22
1 files changed, 22 insertions, 0 deletions
diff --git a/api/src/schema/Invite.ts b/api/src/schema/Invite.ts
new file mode 100644
index 00000000..a22449ba
--- /dev/null
+++ b/api/src/schema/Invite.ts
@@ -0,0 +1,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;
+}