backend/lib/seed/interfaces/components.texts.ts
2025-05-14 21:45:16 +02:00

47 lines
3.2 KiB
TypeScript

import { InputType, Int, Field, ArgsType, ObjectType, Args } from 'type-graphql';
import { Max, IsDate, IsMilitaryTime, IsNotEmpty } from 'class-validator';
import { registerEnumType } from 'type-graphql';
import { AccountTypeEnum } from '@src/accounts/account.components';
import { TranslatableComponent } from '@src/__components/components';
import { ModelCollectionEnum } from '@src/__indexes/__collections';
import { IsRefExist } from '@seed/engine/decorators/db.guard';
import { DateTime } from 'luxon';
/*
███████╗███╗ ██╗██╗ ██╗███╗ ███╗
██╔════╝████╗ ██║██║ ██║████╗ ████║
█████╗ ██╔██╗ ██║██║ ██║██╔████╔██║
██╔══╝ ██║╚██╗██║██║ ██║██║╚██╔╝██║
███████╗██║ ╚████║╚██████╔╝██║ ╚═╝ ██║
╚══════╝╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝
*/
/*
██████╗ ██████╗ ███╗ ███╗██████╗ ██████╗ ███╗ ██╗███████╗███╗ ██╗████████╗███████╗
██╔════╝██╔═══██╗████╗ ████║██╔══██╗██╔═══██╗████╗ ██║██╔════╝████╗ ██║╚══██╔══╝██╔════╝
██║ ██║ ██║██╔████╔██║██████╔╝██║ ██║██╔██╗ ██║█████╗ ██╔██╗ ██║ ██║ ███████╗
██║ ██║ ██║██║╚██╔╝██║██╔═══╝ ██║ ██║██║╚██╗██║██╔══╝ ██║╚██╗██║ ██║ ╚════██║
╚██████╗╚██████╔╝██║ ╚═╝ ██║██║ ╚██████╔╝██║ ╚████║███████╗██║ ╚████║ ██║ ███████║
╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═════╝ ╚═╝ ╚═══╝╚══════╝╚═╝ ╚═══╝ ╚═╝ ╚══════╝
*/
@ObjectType()
@InputType('GenericValueLabelComponentInput')
export class GenericValueLabelComponent {
@Field()
value: string;
@Field()
label: TranslatableComponent;
}
@ObjectType()
@InputType('GenericTitleSubtitleComponentInput')
export class GenericTitleSubtitleComponent {
@Field(() => TranslatableComponent, { nullable: true })
title: TranslatableComponent;
@Field(() => TranslatableComponent, { nullable: true })
subtitle: TranslatableComponent;
}