summary refs log tree commit diff
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/src/schemas/ChannelReorderSchema.ts1
-rw-r--r--util/src/schemas/RolePositionUpdateSchema.ts4
-rw-r--r--util/src/schemas/index.ts2
3 files changed, 7 insertions, 0 deletions
diff --git a/util/src/schemas/ChannelReorderSchema.ts b/util/src/schemas/ChannelReorderSchema.ts
new file mode 100644
index 00000000..3715f59e
--- /dev/null
+++ b/util/src/schemas/ChannelReorderSchema.ts
@@ -0,0 +1 @@
+export type ChannelReorderSchema = { id: string; position?: number; lock_permissions?: boolean; parent_id?: string }[];
\ No newline at end of file
diff --git a/util/src/schemas/RolePositionUpdateSchema.ts b/util/src/schemas/RolePositionUpdateSchema.ts
new file mode 100644
index 00000000..1019d504
--- /dev/null
+++ b/util/src/schemas/RolePositionUpdateSchema.ts
@@ -0,0 +1,4 @@
+export type RolePositionUpdateSchema = {
+	id: string;
+	position: number;
+}[];
\ No newline at end of file
diff --git a/util/src/schemas/index.ts b/util/src/schemas/index.ts
index f54ae840..a15ab4b0 100644
--- a/util/src/schemas/index.ts
+++ b/util/src/schemas/index.ts
@@ -5,6 +5,7 @@ export * from "./BanRegistrySchema";
 export * from "./BulkDeleteSchema";
 export * from "./ChannelModifySchema";
 export * from "./ChannelPermissionOverwriteSchema";
+export * from "./ChannelReorderSchema";
 export * from "./DmChannelCreateSchema";
 export * from "./EmojiCreateSchema";
 export * from "./EmojiModifySchema";
@@ -28,6 +29,7 @@ export * from "./RegisterSchema";
 export * from "./RelationshipPostSchema";
 export * from "./RelationshipPutSchema";
 export * from "./RoleModifySchema";
+export * from "./RolePositionUpdateSchema";
 export * from "./TemplateCreateSchema";
 export * from "./TemplateModifySchema";
 export * from "./TotpDisableSchema";