/
dimamir
/
undb
Обзор
Документация
Войти
/
dimamir
/
undb
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
packages/commands/src/update-view-widget.command.ts
22 строки
714 B
nichenqin
feat: aggregate add condition config
11 окт 2024, 13:29
11 окт 2024, 13:29
9d90b8a
Код
Авторство
О чём код?
import { Command, type CommandProps } from "@undb/domain" import { tableId, updateViewWidgetDTO, type IWidgetDTO } from "@undb/table" import { z } from "@undb/zod" export const updateViewWidgetCommand = updateViewWidgetDTO.extend({ tableId: tableId, }) export type IUpdateViewWidgetCommand = z.infer<typeof updateViewWidgetCommand> export class UpdateViewWidgetCommand extends Command implements IUpdateViewWidgetCommand { public readonly tableId: string public readonly viewId: string public readonly widget: IWidgetDTO constructor(props: CommandProps<IUpdateViewWidgetCommand>) { super(props) this.tableId = props.tableId this.viewId = props.viewId this.widget = props.widget } }