Files
twenty/server/src/core/@generated/pipeline-progress/pipeline-progress-min-aggregate.output.ts
Emilien Chauvet 7d6adbaa73 Update company card (#512)
* Add card rows

* WIP - add amount

* Refactor board state to separate pipeline progress data and company data

* Add migration and generated code

* Pass pipeline progress properties to the comapny card

* WIP-editable

* Enable amount edition

* Nits

* Remove useless import

* Fix empty board bug

* Use cell for editable values on company card

* Add fields

* Enable edition for closeDate

* Add dummy edits for recurring and probability

* Nits

* remove useless fields

* Nits

* Fix user provider

* Add generated code

* Fix nits, reorder migrations, fix login

* Fix tests

* Fix lint
2023-07-06 18:41:44 -07:00

46 lines
1.2 KiB
TypeScript

import { Field } from '@nestjs/graphql';
import { ObjectType } from '@nestjs/graphql';
import * as Validator from 'class-validator';
import { Int } from '@nestjs/graphql';
import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum';
import { HideField } from '@nestjs/graphql';
@ObjectType()
export class PipelineProgressMinAggregate {
@Field(() => String, {nullable:true})
@Validator.IsString()
@Validator.IsOptional()
id?: string;
@Field(() => Int, {nullable:true})
amount?: number;
@Field(() => Date, {nullable:true})
closeDate?: Date | string;
@Field(() => String, {nullable:true})
pipelineId?: string;
@Field(() => String, {nullable:true})
pipelineStageId?: string;
@Field(() => PipelineProgressableType, {nullable:true})
progressableType?: keyof typeof PipelineProgressableType;
@Field(() => String, {nullable:true})
progressableId?: string;
@HideField()
workspaceId?: string;
@HideField()
deletedAt?: Date | string;
@Field(() => Date, {nullable:true})
createdAt?: Date | string;
@Field(() => Date, {nullable:true})
updatedAt?: Date | string;
}