/
dimamir
/
undb
Обзор
Документация
Войти
/
dimamir
/
undb
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
packages/commands/src/duplicate-table-form.command.ts
23 строки
727 B
nichenqin
feat: duplicate form
19 сен 2024, 08:18
19 сен 2024, 08:18
8680a5d
Код
Авторство
О чём код?
import { Command, type CommandProps } from "@undb/domain" import { duplicateTableFormDTO, formId, tableId, type IDuplicateTableFormDTO } from "@undb/table" import { z } from "@undb/zod" export const duplicateTableFormCommand = duplicateTableFormDTO export type IDuplicateTableFormCommand = z.infer<typeof duplicateTableFormCommand> export const duplicateTableFormCommandOutput = z.object({ tableId, formId, }) export type IDuplicateTableFormCommandOutput = z.infer<typeof duplicateTableFormCommandOutput> export class DuplicateTableFormCommand extends Command { public readonly input: IDuplicateTableFormDTO constructor(props: CommandProps<IDuplicateTableFormDTO>) { super(props) this.input = props } }