/
dimamir
/
undb
Обзор
Документация
Войти
/
dimamir
/
undb
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
packages/commands/src/set-view-aggregate.command.ts
20 строк
691 B
nichenqin
feat: set aggregate
24 май 2024, 12:45
24 май 2024, 12:45
18237c6
Код
Авторство
О чём код?
import { Command, type CommandProps } from "@undb/domain" import { setViewAggregateDTO, type IViewAggregate } from "@undb/table" import { z } from "@undb/zod" export const setViewAggregateCommand = setViewAggregateDTO export type ISetViewAggregateCommand = z.infer<typeof setViewAggregateCommand> export class SetViewAggregateCommand extends Command implements ISetViewAggregateCommand { public readonly tableId: string public readonly viewId?: string public readonly aggregate: IViewAggregate constructor(props: CommandProps<ISetViewAggregateCommand>) { super(props) this.tableId = props.tableId this.viewId = props.viewId this.aggregate = props.aggregate } }