mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
feat: models default views
This commit is contained in:
44
packages/server/src/modules/Views/dtos/ViewResponse.dto.ts
Normal file
44
packages/server/src/modules/Views/dtos/ViewResponse.dto.ts
Normal file
@@ -0,0 +1,44 @@
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
import { ViewColumn } from '../models/ViewColumn.model';
|
||||
import { RoleResponseDto } from './RoleResponse.dto';
|
||||
|
||||
export class ViewResponseDto {
|
||||
@ApiProperty({ description: 'The unique identifier of the view' })
|
||||
id: number;
|
||||
|
||||
@ApiProperty({ description: 'The name of the view' })
|
||||
name: string;
|
||||
|
||||
@ApiProperty({ description: 'The slug of the view' })
|
||||
slug: string;
|
||||
|
||||
@ApiProperty({ description: 'Whether the view is predefined' })
|
||||
predefined: boolean;
|
||||
|
||||
@ApiProperty({ description: 'The resource model associated with the view' })
|
||||
resourceModel: string;
|
||||
|
||||
@ApiProperty({ description: 'Whether the view is marked as favourite' })
|
||||
favourite: boolean;
|
||||
|
||||
@ApiProperty({ description: 'The roles logic expression for the view' })
|
||||
rolesLogicExpression: string;
|
||||
|
||||
@ApiProperty({
|
||||
type: [RoleResponseDto],
|
||||
description: 'The roles associated with the view',
|
||||
})
|
||||
roles: RoleResponseDto[];
|
||||
|
||||
@ApiProperty({
|
||||
type: [ViewColumn],
|
||||
description: 'The columns associated with the view',
|
||||
})
|
||||
columns: ViewColumn[];
|
||||
|
||||
@ApiProperty({ description: 'The creation timestamp' })
|
||||
createdAt: Date;
|
||||
|
||||
@ApiProperty({ description: 'The last update timestamp' })
|
||||
updatedAt: Date;
|
||||
}
|
||||
Reference in New Issue
Block a user