summary refs log tree commit diff
path: root/util/src
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2022-08-12 11:42:34 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2022-08-13 21:57:51 +0200
commit1f4ba6395bf96237fd8b638fd70926b887b9c374 (patch)
tree3ee4145490ff392837eb979b72843f6e8c90cbda /util/src
parentSplit schemas into files in util (diff)
downloadserver-1f4ba6395bf96237fd8b638fd70926b887b9c374.tar.xz
Forgot some schemas, removed no longer used paths from generate schema script
Diffstat (limited to 'util/src')
-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";