mirror of
https://github.com/IT4Change/gradido.git
synced 2026-04-06 01:25:28 +00:00
36 lines
829 B
TypeScript
36 lines
829 B
TypeScript
import { ProjectBrandingSelect } from 'database'
|
|
import { ProjectBranding as ProjectBrandingZodSchema } from 'shared'
|
|
import { Field, Int, ObjectType } from 'type-graphql'
|
|
|
|
@ObjectType()
|
|
export class ProjectBranding {
|
|
// TODO: replace with valibot schema
|
|
constructor(projectBranding: ProjectBrandingZodSchema | ProjectBrandingSelect) {
|
|
Object.assign(this, projectBranding)
|
|
}
|
|
|
|
@Field(() => Int)
|
|
id: number
|
|
|
|
@Field(() => String)
|
|
name: string
|
|
|
|
@Field(() => String)
|
|
alias: string
|
|
|
|
@Field(() => String, { nullable: true })
|
|
description: string | null
|
|
|
|
@Field(() => Int, { nullable: true })
|
|
spaceId: number | null
|
|
|
|
@Field(() => String, { nullable: true })
|
|
spaceUrl: string | null
|
|
|
|
@Field(() => Boolean)
|
|
newUserToSpace: boolean
|
|
|
|
@Field(() => String, { nullable: true })
|
|
logoUrl: string | null
|
|
}
|