From 1f4ba6395bf96237fd8b638fd70926b887b9c374 Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Fri, 12 Aug 2022 11:42:34 +0200 Subject: Forgot some schemas, removed no longer used paths from generate schema script --- util/src/schemas/ChannelReorderSchema.ts | 1 + util/src/schemas/RolePositionUpdateSchema.ts | 4 ++++ util/src/schemas/index.ts | 2 ++ 3 files changed, 7 insertions(+) create mode 100644 util/src/schemas/ChannelReorderSchema.ts create mode 100644 util/src/schemas/RolePositionUpdateSchema.ts (limited to 'util/src') 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"; -- cgit 1.5.1