59fbe35a8c
# Introduction Preparing view-filter and view-group introduction in v2 core engine Moving view from `core-modules` to `metadata-modules` ## What happened ### Created dedicated modules for each view entity: - ViewFieldModule - ViewFilterModule - ViewFilterGroupModule - ViewGroupModule - ViewSortModule ### Each module is now completely independent with its own: - Controller - Resolver - Service - Entity ### Created dedicated abstraction metadata module folder for: - flat-view-field - flat-view ### Dependencies - Eleminated circular dep on ViewModule to all others ones - Granular import not importing the whole viewModule anymore everywhere close https://github.com/twentyhq/core-team-issues/issues/1703
16 lines
413 B
TypeScript
16 lines
413 B
TypeScript
import { InputType } from '@nestjs/graphql';
|
|
|
|
import { IDField } from '@ptc-org/nestjs-query-graphql';
|
|
import { IsUUID } from 'class-validator';
|
|
|
|
import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars';
|
|
|
|
@InputType()
|
|
export class DeleteViewInput {
|
|
@IDField(() => UUIDScalarType, {
|
|
description: 'The id of the view to delete.',
|
|
})
|
|
@IsUUID()
|
|
id: string;
|
|
}
|