/
dimamir
/
undb
Обзор
Документация
Войти
/
dimamir
/
undb
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
packages/commands/src/create-table-view.command.ts
23 строки
703 B
nichenqin
fix: navigate after create view
19 сен 2024, 05:53
19 сен 2024, 05:53
fb88262
Код
Авторство
О чём код?
import { Command, type CommandProps } from "@undb/domain" import { createTableViewDTO, tableId, viewId, type ICreateTableViewDTO } from "@undb/table" import { z } from "@undb/zod" export const createTableViewCommand = createTableViewDTO export type ICreateViewCommand = z.infer<typeof createTableViewCommand> export const createTableViewCommandOutput = z.object({ tableId: tableId, viewId: viewId, }) export type ICreateTableViewCommandOutput = z.infer<typeof createTableViewCommandOutput> export class CreateTableViewCommand extends Command { public readonly input: ICreateTableViewDTO constructor(props: CommandProps<ICreateTableViewDTO>) { super(props) this.input = props } }