diff --git a/.vscode/settings.json b/.vscode/settings.json index efca65e0871..2311f191663 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -21,6 +21,10 @@ "[json]": { "editor.formatOnSave": true }, + "[prisma]": { + "editor.formatOnSave": true, + "editor.defaultFormatter": "Prisma.prisma" + }, "javascript.format.enable": false, "typescript.format.enable": false, "cSpell.enableFiletypes": [ diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-count-aggregate.input.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-count-aggregate.input.ts index fc84d43729d..0e4f79dddb7 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-count-aggregate.input.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-count-aggregate.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import { HideField } from '@nestjs/graphql'; @InputType() export class CommentThreadTargetCountAggregateInput { @@ -7,15 +8,6 @@ export class CommentThreadTargetCountAggregateInput { @Field(() => Boolean, {nullable:true}) id?: true; - @Field(() => Boolean, {nullable:true}) - createdAt?: true; - - @Field(() => Boolean, {nullable:true}) - updatedAt?: true; - - @Field(() => Boolean, {nullable:true}) - deletedAt?: true; - @Field(() => Boolean, {nullable:true}) commentThreadId?: true; @@ -25,6 +17,15 @@ export class CommentThreadTargetCountAggregateInput { @Field(() => Boolean, {nullable:true}) commentableId?: true; + @HideField() + deletedAt?: true; + + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; + @Field(() => Boolean, {nullable:true}) _all?: true; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-count-aggregate.output.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-count-aggregate.output.ts index 83dd5d9772b..f038e882120 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-count-aggregate.output.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-count-aggregate.output.ts @@ -1,6 +1,7 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; import { Int } from '@nestjs/graphql'; +import { HideField } from '@nestjs/graphql'; @ObjectType() export class CommentThreadTargetCountAggregate { @@ -8,15 +9,6 @@ export class CommentThreadTargetCountAggregate { @Field(() => Int, {nullable:false}) id!: number; - @Field(() => Int, {nullable:false}) - createdAt!: number; - - @Field(() => Int, {nullable:false}) - updatedAt!: number; - - @Field(() => Int, {nullable:false}) - deletedAt!: number; - @Field(() => Int, {nullable:false}) commentThreadId!: number; @@ -26,6 +18,15 @@ export class CommentThreadTargetCountAggregate { @Field(() => Int, {nullable:false}) commentableId!: number; + @HideField() + deletedAt!: number; + + @Field(() => Int, {nullable:false}) + createdAt!: number; + + @Field(() => Int, {nullable:false}) + updatedAt!: number; + @Field(() => Int, {nullable:false}) _all!: number; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-count-order-by-aggregate.input.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-count-order-by-aggregate.input.ts index 74c737fc696..896d5641d9f 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-count-order-by-aggregate.input.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-count-order-by-aggregate.input.ts @@ -1,6 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { SortOrder } from '../prisma/sort-order.enum'; +import { HideField } from '@nestjs/graphql'; @InputType() export class CommentThreadTargetCountOrderByAggregateInput { @@ -8,15 +9,6 @@ export class CommentThreadTargetCountOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) commentThreadId?: keyof typeof SortOrder; @@ -25,4 +17,13 @@ export class CommentThreadTargetCountOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) commentableId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-create-many-comment-thread.input.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-create-many-comment-thread.input.ts index 3cf61cc58eb..02aa39e4575 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-create-many-comment-thread.input.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-create-many-comment-thread.input.ts @@ -1,25 +1,29 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { CommentableType } from '../prisma/commentable-type.enum'; +import { HideField } from '@nestjs/graphql'; @InputType() export class CommentThreadTargetCreateManyCommentThreadInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => CommentableType, {nullable:false}) commentableType!: keyof typeof CommentableType; @Field(() => String, {nullable:false}) commentableId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-create-many.input.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-create-many.input.ts index ce8b8885cff..7a4102197a5 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-create-many.input.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-create-many.input.ts @@ -1,22 +1,17 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { CommentableType } from '../prisma/commentable-type.enum'; +import { HideField } from '@nestjs/graphql'; @InputType() export class CommentThreadTargetCreateManyInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:false}) commentThreadId!: string; @@ -25,4 +20,13 @@ export class CommentThreadTargetCreateManyInput { @Field(() => String, {nullable:false}) commentableId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-create-without-comment-thread.input.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-create-without-comment-thread.input.ts index 676b6dedae6..a9841b6ee1d 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-create-without-comment-thread.input.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-create-without-comment-thread.input.ts @@ -1,25 +1,29 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { CommentableType } from '../prisma/commentable-type.enum'; +import { HideField } from '@nestjs/graphql'; @InputType() export class CommentThreadTargetCreateWithoutCommentThreadInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => CommentableType, {nullable:false}) commentableType!: keyof typeof CommentableType; @Field(() => String, {nullable:false}) commentableId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-create.input.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-create.input.ts index 4a7ad8aafb5..3fc238fb746 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-create.input.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-create.input.ts @@ -1,29 +1,33 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { CommentableType } from '../prisma/commentable-type.enum'; +import { HideField } from '@nestjs/graphql'; import { CommentThreadCreateNestedOneWithoutCommentThreadTargetsInput } from '../comment-thread/comment-thread-create-nested-one-without-comment-thread-targets.input'; @InputType() export class CommentThreadTargetCreateInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => CommentableType, {nullable:false}) commentableType!: keyof typeof CommentableType; @Field(() => String, {nullable:false}) commentableId!: string; + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; + @Field(() => CommentThreadCreateNestedOneWithoutCommentThreadTargetsInput, {nullable:false}) commentThread!: CommentThreadCreateNestedOneWithoutCommentThreadTargetsInput; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-group-by.output.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-group-by.output.ts index e91f5bf3c1b..a092a5ae791 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-group-by.output.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-group-by.output.ts @@ -1,6 +1,8 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { CommentableType } from '../prisma/commentable-type.enum'; +import { HideField } from '@nestjs/graphql'; import { CommentThreadTargetCountAggregate } from './comment-thread-target-count-aggregate.output'; import { CommentThreadTargetMinAggregate } from './comment-thread-target-min-aggregate.output'; import { CommentThreadTargetMaxAggregate } from './comment-thread-target-max-aggregate.output'; @@ -9,17 +11,10 @@ import { CommentThreadTargetMaxAggregate } from './comment-thread-target-max-agg export class CommentThreadTargetGroupBy { @Field(() => String, {nullable:false}) + @Validator.IsString() + @Validator.IsOptional() id!: string; - @Field(() => Date, {nullable:false}) - createdAt!: Date | string; - - @Field(() => Date, {nullable:false}) - updatedAt!: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:false}) commentThreadId!: string; @@ -29,6 +24,15 @@ export class CommentThreadTargetGroupBy { @Field(() => String, {nullable:false}) commentableId!: string; + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:false}) + createdAt!: Date | string; + + @Field(() => Date, {nullable:false}) + updatedAt!: Date | string; + @Field(() => CommentThreadTargetCountAggregate, {nullable:true}) _count?: CommentThreadTargetCountAggregate; diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-max-aggregate.input.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-max-aggregate.input.ts index ce5df7ff55b..b5b48fbeb69 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-max-aggregate.input.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-max-aggregate.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import { HideField } from '@nestjs/graphql'; @InputType() export class CommentThreadTargetMaxAggregateInput { @@ -7,15 +8,6 @@ export class CommentThreadTargetMaxAggregateInput { @Field(() => Boolean, {nullable:true}) id?: true; - @Field(() => Boolean, {nullable:true}) - createdAt?: true; - - @Field(() => Boolean, {nullable:true}) - updatedAt?: true; - - @Field(() => Boolean, {nullable:true}) - deletedAt?: true; - @Field(() => Boolean, {nullable:true}) commentThreadId?: true; @@ -24,4 +16,13 @@ export class CommentThreadTargetMaxAggregateInput { @Field(() => Boolean, {nullable:true}) commentableId?: true; + + @HideField() + deletedAt?: true; + + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-max-aggregate.output.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-max-aggregate.output.ts index f65bfb82626..bf42f814a06 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-max-aggregate.output.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-max-aggregate.output.ts @@ -1,22 +1,17 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { CommentableType } from '../prisma/commentable-type.enum'; +import { HideField } from '@nestjs/graphql'; @ObjectType() export class CommentThreadTargetMaxAggregate { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:true}) commentThreadId?: string; @@ -25,4 +20,13 @@ export class CommentThreadTargetMaxAggregate { @Field(() => String, {nullable:true}) commentableId?: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-max-order-by-aggregate.input.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-max-order-by-aggregate.input.ts index 3485541eaa4..872d3145057 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-max-order-by-aggregate.input.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-max-order-by-aggregate.input.ts @@ -1,6 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { SortOrder } from '../prisma/sort-order.enum'; +import { HideField } from '@nestjs/graphql'; @InputType() export class CommentThreadTargetMaxOrderByAggregateInput { @@ -8,15 +9,6 @@ export class CommentThreadTargetMaxOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) commentThreadId?: keyof typeof SortOrder; @@ -25,4 +17,13 @@ export class CommentThreadTargetMaxOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) commentableId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-min-aggregate.input.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-min-aggregate.input.ts index 409fd57119e..5034d36a780 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-min-aggregate.input.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-min-aggregate.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import { HideField } from '@nestjs/graphql'; @InputType() export class CommentThreadTargetMinAggregateInput { @@ -7,15 +8,6 @@ export class CommentThreadTargetMinAggregateInput { @Field(() => Boolean, {nullable:true}) id?: true; - @Field(() => Boolean, {nullable:true}) - createdAt?: true; - - @Field(() => Boolean, {nullable:true}) - updatedAt?: true; - - @Field(() => Boolean, {nullable:true}) - deletedAt?: true; - @Field(() => Boolean, {nullable:true}) commentThreadId?: true; @@ -24,4 +16,13 @@ export class CommentThreadTargetMinAggregateInput { @Field(() => Boolean, {nullable:true}) commentableId?: true; + + @HideField() + deletedAt?: true; + + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-min-aggregate.output.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-min-aggregate.output.ts index 29c064f4ac6..ae259145c0a 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-min-aggregate.output.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-min-aggregate.output.ts @@ -1,22 +1,17 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { CommentableType } from '../prisma/commentable-type.enum'; +import { HideField } from '@nestjs/graphql'; @ObjectType() export class CommentThreadTargetMinAggregate { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:true}) commentThreadId?: string; @@ -25,4 +20,13 @@ export class CommentThreadTargetMinAggregate { @Field(() => String, {nullable:true}) commentableId?: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-min-order-by-aggregate.input.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-min-order-by-aggregate.input.ts index a89b8fe634c..c40faf76dd8 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-min-order-by-aggregate.input.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-min-order-by-aggregate.input.ts @@ -1,6 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { SortOrder } from '../prisma/sort-order.enum'; +import { HideField } from '@nestjs/graphql'; @InputType() export class CommentThreadTargetMinOrderByAggregateInput { @@ -8,15 +9,6 @@ export class CommentThreadTargetMinOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) commentThreadId?: keyof typeof SortOrder; @@ -25,4 +17,13 @@ export class CommentThreadTargetMinOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) commentableId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-order-by-with-aggregation.input.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-order-by-with-aggregation.input.ts index 5417baf4087..fb7ba4de991 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-order-by-with-aggregation.input.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-order-by-with-aggregation.input.ts @@ -1,6 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { SortOrder } from '../prisma/sort-order.enum'; +import { HideField } from '@nestjs/graphql'; import { CommentThreadTargetCountOrderByAggregateInput } from './comment-thread-target-count-order-by-aggregate.input'; import { CommentThreadTargetMaxOrderByAggregateInput } from './comment-thread-target-max-order-by-aggregate.input'; import { CommentThreadTargetMinOrderByAggregateInput } from './comment-thread-target-min-order-by-aggregate.input'; @@ -11,15 +12,6 @@ export class CommentThreadTargetOrderByWithAggregationInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) commentThreadId?: keyof typeof SortOrder; @@ -29,6 +21,15 @@ export class CommentThreadTargetOrderByWithAggregationInput { @Field(() => SortOrder, {nullable:true}) commentableId?: keyof typeof SortOrder; + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; + @Field(() => CommentThreadTargetCountOrderByAggregateInput, {nullable:true}) _count?: CommentThreadTargetCountOrderByAggregateInput; diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-order-by-with-relation.input.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-order-by-with-relation.input.ts index 15a63d02cef..cfebe130671 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-order-by-with-relation.input.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-order-by-with-relation.input.ts @@ -1,6 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { SortOrder } from '../prisma/sort-order.enum'; +import { HideField } from '@nestjs/graphql'; import { CommentThreadOrderByWithRelationInput } from '../comment-thread/comment-thread-order-by-with-relation.input'; @InputType() @@ -9,15 +10,6 @@ export class CommentThreadTargetOrderByWithRelationInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) commentThreadId?: keyof typeof SortOrder; @@ -27,6 +19,15 @@ export class CommentThreadTargetOrderByWithRelationInput { @Field(() => SortOrder, {nullable:true}) commentableId?: keyof typeof SortOrder; + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; + @Field(() => CommentThreadOrderByWithRelationInput, {nullable:true}) commentThread?: CommentThreadOrderByWithRelationInput; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-scalar-field.enum.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-scalar-field.enum.ts index ddde7c6d2fa..ae369577c76 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-scalar-field.enum.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-scalar-field.enum.ts @@ -2,12 +2,12 @@ import { registerEnumType } from '@nestjs/graphql'; export enum CommentThreadTargetScalarFieldEnum { id = "id", - createdAt = "createdAt", - updatedAt = "updatedAt", - deletedAt = "deletedAt", commentThreadId = "commentThreadId", commentableType = "commentableType", - commentableId = "commentableId" + commentableId = "commentableId", + deletedAt = "deletedAt", + createdAt = "createdAt", + updatedAt = "updatedAt" } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-scalar-where-with-aggregates.input.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-scalar-where-with-aggregates.input.ts index d451c064b30..a5e135c465c 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-scalar-where-with-aggregates.input.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-scalar-where-with-aggregates.input.ts @@ -1,9 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringWithAggregatesFilter } from '../prisma/string-with-aggregates-filter.input'; -import { DateTimeWithAggregatesFilter } from '../prisma/date-time-with-aggregates-filter.input'; -import { DateTimeNullableWithAggregatesFilter } from '../prisma/date-time-nullable-with-aggregates-filter.input'; import { EnumCommentableTypeWithAggregatesFilter } from '../prisma/enum-commentable-type-with-aggregates-filter.input'; +import { DateTimeNullableWithAggregatesFilter } from '../prisma/date-time-nullable-with-aggregates-filter.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeWithAggregatesFilter } from '../prisma/date-time-with-aggregates-filter.input'; @InputType() export class CommentThreadTargetScalarWhereWithAggregatesInput { @@ -20,15 +21,6 @@ export class CommentThreadTargetScalarWhereWithAggregatesInput { @Field(() => StringWithAggregatesFilter, {nullable:true}) id?: StringWithAggregatesFilter; - @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) - createdAt?: DateTimeWithAggregatesFilter; - - @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) - updatedAt?: DateTimeWithAggregatesFilter; - - @Field(() => DateTimeNullableWithAggregatesFilter, {nullable:true}) - deletedAt?: DateTimeNullableWithAggregatesFilter; - @Field(() => StringWithAggregatesFilter, {nullable:true}) commentThreadId?: StringWithAggregatesFilter; @@ -37,4 +29,13 @@ export class CommentThreadTargetScalarWhereWithAggregatesInput { @Field(() => StringWithAggregatesFilter, {nullable:true}) commentableId?: StringWithAggregatesFilter; + + @HideField() + deletedAt?: DateTimeNullableWithAggregatesFilter; + + @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) + createdAt?: DateTimeWithAggregatesFilter; + + @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) + updatedAt?: DateTimeWithAggregatesFilter; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-scalar-where.input.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-scalar-where.input.ts index b90e7901724..06c553f4451 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-scalar-where.input.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-scalar-where.input.ts @@ -1,9 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFilter } from '../prisma/string-filter.input'; -import { DateTimeFilter } from '../prisma/date-time-filter.input'; -import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; import { EnumCommentableTypeFilter } from '../prisma/enum-commentable-type-filter.input'; +import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFilter } from '../prisma/date-time-filter.input'; @InputType() export class CommentThreadTargetScalarWhereInput { @@ -20,15 +21,6 @@ export class CommentThreadTargetScalarWhereInput { @Field(() => StringFilter, {nullable:true}) id?: StringFilter; - @Field(() => DateTimeFilter, {nullable:true}) - createdAt?: DateTimeFilter; - - @Field(() => DateTimeFilter, {nullable:true}) - updatedAt?: DateTimeFilter; - - @Field(() => DateTimeNullableFilter, {nullable:true}) - deletedAt?: DateTimeNullableFilter; - @Field(() => StringFilter, {nullable:true}) commentThreadId?: StringFilter; @@ -37,4 +29,13 @@ export class CommentThreadTargetScalarWhereInput { @Field(() => StringFilter, {nullable:true}) commentableId?: StringFilter; + + @HideField() + deletedAt?: DateTimeNullableFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + createdAt?: DateTimeFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + updatedAt?: DateTimeFilter; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-unchecked-create-without-comment-thread.input.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-unchecked-create-without-comment-thread.input.ts index 0f1b33611a4..f8cffa62937 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-unchecked-create-without-comment-thread.input.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-unchecked-create-without-comment-thread.input.ts @@ -1,25 +1,29 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { CommentableType } from '../prisma/commentable-type.enum'; +import { HideField } from '@nestjs/graphql'; @InputType() export class CommentThreadTargetUncheckedCreateWithoutCommentThreadInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => CommentableType, {nullable:false}) commentableType!: keyof typeof CommentableType; @Field(() => String, {nullable:false}) commentableId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-unchecked-create.input.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-unchecked-create.input.ts index 32c58db1d9d..bc055733277 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-unchecked-create.input.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-unchecked-create.input.ts @@ -1,22 +1,17 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { CommentableType } from '../prisma/commentable-type.enum'; +import { HideField } from '@nestjs/graphql'; @InputType() export class CommentThreadTargetUncheckedCreateInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:false}) commentThreadId!: string; @@ -25,4 +20,13 @@ export class CommentThreadTargetUncheckedCreateInput { @Field(() => String, {nullable:false}) commentableId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-unchecked-update-many-without-comment-thread-targets.input.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-unchecked-update-many-without-comment-thread-targets.input.ts index 5f4163ab2ad..65e494a8280 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-unchecked-update-many-without-comment-thread-targets.input.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-unchecked-update-many-without-comment-thread-targets.input.ts @@ -1,9 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { EnumCommentableTypeFieldUpdateOperationsInput } from '../prisma/enum-commentable-type-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class CommentThreadTargetUncheckedUpdateManyWithoutCommentThreadTargetsInput { @@ -11,18 +12,18 @@ export class CommentThreadTargetUncheckedUpdateManyWithoutCommentThreadTargetsIn @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => EnumCommentableTypeFieldUpdateOperationsInput, {nullable:true}) commentableType?: EnumCommentableTypeFieldUpdateOperationsInput; @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) commentableId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-unchecked-update-many.input.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-unchecked-update-many.input.ts index 78c23b41df8..ec50834a13f 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-unchecked-update-many.input.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-unchecked-update-many.input.ts @@ -1,9 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { EnumCommentableTypeFieldUpdateOperationsInput } from '../prisma/enum-commentable-type-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class CommentThreadTargetUncheckedUpdateManyInput { @@ -11,15 +12,6 @@ export class CommentThreadTargetUncheckedUpdateManyInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) commentThreadId?: StringFieldUpdateOperationsInput; @@ -28,4 +20,13 @@ export class CommentThreadTargetUncheckedUpdateManyInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) commentableId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-unchecked-update-without-comment-thread.input.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-unchecked-update-without-comment-thread.input.ts index ed3d786a91b..0836a70a50e 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-unchecked-update-without-comment-thread.input.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-unchecked-update-without-comment-thread.input.ts @@ -1,9 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { EnumCommentableTypeFieldUpdateOperationsInput } from '../prisma/enum-commentable-type-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class CommentThreadTargetUncheckedUpdateWithoutCommentThreadInput { @@ -11,18 +12,18 @@ export class CommentThreadTargetUncheckedUpdateWithoutCommentThreadInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => EnumCommentableTypeFieldUpdateOperationsInput, {nullable:true}) commentableType?: EnumCommentableTypeFieldUpdateOperationsInput; @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) commentableId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-unchecked-update.input.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-unchecked-update.input.ts index 51dd976f055..06a0820dc63 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-unchecked-update.input.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-unchecked-update.input.ts @@ -1,9 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { EnumCommentableTypeFieldUpdateOperationsInput } from '../prisma/enum-commentable-type-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class CommentThreadTargetUncheckedUpdateInput { @@ -11,15 +12,6 @@ export class CommentThreadTargetUncheckedUpdateInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) commentThreadId?: StringFieldUpdateOperationsInput; @@ -28,4 +20,13 @@ export class CommentThreadTargetUncheckedUpdateInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) commentableId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-update-many-mutation.input.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-update-many-mutation.input.ts index d54208eb10f..3bfffaa85f7 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-update-many-mutation.input.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-update-many-mutation.input.ts @@ -1,9 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { EnumCommentableTypeFieldUpdateOperationsInput } from '../prisma/enum-commentable-type-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class CommentThreadTargetUpdateManyMutationInput { @@ -11,18 +12,18 @@ export class CommentThreadTargetUpdateManyMutationInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => EnumCommentableTypeFieldUpdateOperationsInput, {nullable:true}) commentableType?: EnumCommentableTypeFieldUpdateOperationsInput; @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) commentableId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-update-without-comment-thread.input.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-update-without-comment-thread.input.ts index 85626de2109..277543987b3 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-update-without-comment-thread.input.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-update-without-comment-thread.input.ts @@ -1,9 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { EnumCommentableTypeFieldUpdateOperationsInput } from '../prisma/enum-commentable-type-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class CommentThreadTargetUpdateWithoutCommentThreadInput { @@ -11,18 +12,18 @@ export class CommentThreadTargetUpdateWithoutCommentThreadInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => EnumCommentableTypeFieldUpdateOperationsInput, {nullable:true}) commentableType?: EnumCommentableTypeFieldUpdateOperationsInput; @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) commentableId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-update.input.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-update.input.ts index 59bb9fd6d3c..d186e329eb1 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-update.input.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-update.input.ts @@ -1,9 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { EnumCommentableTypeFieldUpdateOperationsInput } from '../prisma/enum-commentable-type-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { CommentThreadUpdateOneRequiredWithoutCommentThreadTargetsNestedInput } from '../comment-thread/comment-thread-update-one-required-without-comment-thread-targets-nested.input'; @InputType() @@ -12,21 +13,21 @@ export class CommentThreadTargetUpdateInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => EnumCommentableTypeFieldUpdateOperationsInput, {nullable:true}) commentableType?: EnumCommentableTypeFieldUpdateOperationsInput; @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) commentableId?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => CommentThreadUpdateOneRequiredWithoutCommentThreadTargetsNestedInput, {nullable:true}) commentThread?: CommentThreadUpdateOneRequiredWithoutCommentThreadTargetsNestedInput; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-where-unique.input.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-where-unique.input.ts index 3ce9bc3b80c..90aa4a527ca 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-where-unique.input.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-where-unique.input.ts @@ -1,9 +1,12 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; @InputType() export class CommentThreadTargetWhereUniqueInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-where.input.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-where.input.ts index 63c581347ba..492beeb6f7f 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-where.input.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-where.input.ts @@ -1,9 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFilter } from '../prisma/string-filter.input'; -import { DateTimeFilter } from '../prisma/date-time-filter.input'; -import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; import { EnumCommentableTypeFilter } from '../prisma/enum-commentable-type-filter.input'; +import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFilter } from '../prisma/date-time-filter.input'; import { CommentThreadRelationFilter } from '../comment-thread/comment-thread-relation-filter.input'; @InputType() @@ -21,15 +22,6 @@ export class CommentThreadTargetWhereInput { @Field(() => StringFilter, {nullable:true}) id?: StringFilter; - @Field(() => DateTimeFilter, {nullable:true}) - createdAt?: DateTimeFilter; - - @Field(() => DateTimeFilter, {nullable:true}) - updatedAt?: DateTimeFilter; - - @Field(() => DateTimeNullableFilter, {nullable:true}) - deletedAt?: DateTimeNullableFilter; - @Field(() => StringFilter, {nullable:true}) commentThreadId?: StringFilter; @@ -39,6 +31,15 @@ export class CommentThreadTargetWhereInput { @Field(() => StringFilter, {nullable:true}) commentableId?: StringFilter; + @HideField() + deletedAt?: DateTimeNullableFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + createdAt?: DateTimeFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + updatedAt?: DateTimeFilter; + @Field(() => CommentThreadRelationFilter, {nullable:true}) commentThread?: CommentThreadRelationFilter; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target.model.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target.model.ts index b2a01ad85a4..5c79dc759ce 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target.model.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target.model.ts @@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; import { ID } from '@nestjs/graphql'; import { CommentableType } from '../prisma/commentable-type.enum'; +import { HideField } from '@nestjs/graphql'; import { CommentThread } from '../comment-thread/comment-thread.model'; @ObjectType() @@ -10,15 +11,6 @@ export class CommentThreadTarget { @Field(() => ID, {nullable:false}) id!: string; - @Field(() => Date, {nullable:false}) - createdAt!: Date; - - @Field(() => Date, {nullable:false}) - updatedAt!: Date; - - @Field(() => Date, {nullable:true}) - deletedAt!: Date | null; - @Field(() => String, {nullable:false}) commentThreadId!: string; @@ -28,6 +20,15 @@ export class CommentThreadTarget { @Field(() => String, {nullable:false}) commentableId!: string; + @HideField() + deletedAt!: Date | null; + + @Field(() => Date, {nullable:false}) + createdAt!: Date; + + @Field(() => Date, {nullable:false}) + updatedAt!: Date; + @Field(() => CommentThread, {nullable:false}) commentThread?: CommentThread; } diff --git a/server/src/core/@generated/comment-thread-target/create-many-comment-thread-target.args.ts b/server/src/core/@generated/comment-thread-target/create-many-comment-thread-target.args.ts index 988e0552bf2..c2b72c0f208 100644 --- a/server/src/core/@generated/comment-thread-target/create-many-comment-thread-target.args.ts +++ b/server/src/core/@generated/comment-thread-target/create-many-comment-thread-target.args.ts @@ -2,12 +2,15 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { CommentThreadTargetCreateManyInput } from './comment-thread-target-create-many.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; @ArgsType() export class CreateManyCommentThreadTargetArgs { @Field(() => [CommentThreadTargetCreateManyInput], {nullable:false}) @Type(() => CommentThreadTargetCreateManyInput) + @ValidateNested({each: true}) + @Type(() => CommentThreadTargetCreateManyInput) data!: Array; @Field(() => Boolean, {nullable:true}) diff --git a/server/src/core/@generated/comment-thread-target/create-one-comment-thread-target.args.ts b/server/src/core/@generated/comment-thread-target/create-one-comment-thread-target.args.ts index 6c9e74c291b..0e5ebee0511 100644 --- a/server/src/core/@generated/comment-thread-target/create-one-comment-thread-target.args.ts +++ b/server/src/core/@generated/comment-thread-target/create-one-comment-thread-target.args.ts @@ -2,11 +2,14 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { CommentThreadTargetCreateInput } from './comment-thread-target-create.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; @ArgsType() export class CreateOneCommentThreadTargetArgs { @Field(() => CommentThreadTargetCreateInput, {nullable:false}) @Type(() => CommentThreadTargetCreateInput) + @ValidateNested({each: true}) + @Type(() => CommentThreadTargetCreateInput) data!: CommentThreadTargetCreateInput; } diff --git a/server/src/core/@generated/comment-thread-target/update-many-comment-thread-target.args.ts b/server/src/core/@generated/comment-thread-target/update-many-comment-thread-target.args.ts index 7b052a2ad2f..f2ac964981a 100644 --- a/server/src/core/@generated/comment-thread-target/update-many-comment-thread-target.args.ts +++ b/server/src/core/@generated/comment-thread-target/update-many-comment-thread-target.args.ts @@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { CommentThreadTargetUpdateManyMutationInput } from './comment-thread-target-update-many-mutation.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; import { CommentThreadTargetWhereInput } from './comment-thread-target-where.input'; @ArgsType() @@ -9,6 +10,8 @@ export class UpdateManyCommentThreadTargetArgs { @Field(() => CommentThreadTargetUpdateManyMutationInput, {nullable:false}) @Type(() => CommentThreadTargetUpdateManyMutationInput) + @ValidateNested({each: true}) + @Type(() => CommentThreadTargetUpdateManyMutationInput) data!: CommentThreadTargetUpdateManyMutationInput; @Field(() => CommentThreadTargetWhereInput, {nullable:true}) diff --git a/server/src/core/@generated/comment-thread-target/update-one-comment-thread-target.args.ts b/server/src/core/@generated/comment-thread-target/update-one-comment-thread-target.args.ts index 8a7ac6d6293..7f083a66a8c 100644 --- a/server/src/core/@generated/comment-thread-target/update-one-comment-thread-target.args.ts +++ b/server/src/core/@generated/comment-thread-target/update-one-comment-thread-target.args.ts @@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { CommentThreadTargetUpdateInput } from './comment-thread-target-update.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; import { CommentThreadTargetWhereUniqueInput } from './comment-thread-target-where-unique.input'; @ArgsType() @@ -9,6 +10,8 @@ export class UpdateOneCommentThreadTargetArgs { @Field(() => CommentThreadTargetUpdateInput, {nullable:false}) @Type(() => CommentThreadTargetUpdateInput) + @ValidateNested({each: true}) + @Type(() => CommentThreadTargetUpdateInput) data!: CommentThreadTargetUpdateInput; @Field(() => CommentThreadTargetWhereUniqueInput, {nullable:false}) diff --git a/server/src/core/@generated/comment-thread/comment-thread-count-aggregate.input.ts b/server/src/core/@generated/comment-thread/comment-thread-count-aggregate.input.ts index 53bf4b27a1e..805d3a008fb 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-count-aggregate.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-count-aggregate.input.ts @@ -8,18 +8,18 @@ export class CommentThreadCountAggregateInput { @Field(() => Boolean, {nullable:true}) id?: true; + @HideField() + workspaceId?: true; + + @HideField() + deletedAt?: true; + @Field(() => Boolean, {nullable:true}) createdAt?: true; @Field(() => Boolean, {nullable:true}) updatedAt?: true; - @Field(() => Boolean, {nullable:true}) - deletedAt?: true; - - @HideField() - workspaceId?: true; - @Field(() => Boolean, {nullable:true}) _all?: true; } diff --git a/server/src/core/@generated/comment-thread/comment-thread-count-aggregate.output.ts b/server/src/core/@generated/comment-thread/comment-thread-count-aggregate.output.ts index fdc536e0c26..26b41017512 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-count-aggregate.output.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-count-aggregate.output.ts @@ -9,18 +9,18 @@ export class CommentThreadCountAggregate { @Field(() => Int, {nullable:false}) id!: number; + @HideField() + workspaceId!: number; + + @HideField() + deletedAt!: number; + @Field(() => Int, {nullable:false}) createdAt!: number; @Field(() => Int, {nullable:false}) updatedAt!: number; - @Field(() => Int, {nullable:false}) - deletedAt!: number; - - @HideField() - workspaceId!: number; - @Field(() => Int, {nullable:false}) _all!: number; } diff --git a/server/src/core/@generated/comment-thread/comment-thread-count-order-by-aggregate.input.ts b/server/src/core/@generated/comment-thread/comment-thread-count-order-by-aggregate.input.ts index 8ae8827c60a..38f1f20d721 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-count-order-by-aggregate.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-count-order-by-aggregate.input.ts @@ -9,15 +9,15 @@ export class CommentThreadCountOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; + @HideField() + workspaceId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) createdAt?: keyof typeof SortOrder; @Field(() => SortOrder, {nullable:true}) updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - - @HideField() - workspaceId?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/comment-thread/comment-thread-create-many-workspace.input.ts b/server/src/core/@generated/comment-thread/comment-thread-create-many-workspace.input.ts index 5f2144913a4..df6c79416af 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-create-many-workspace.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-create-many-workspace.input.ts @@ -1,18 +1,22 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; @InputType() export class CommentThreadCreateManyWorkspaceInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; } diff --git a/server/src/core/@generated/comment-thread/comment-thread-create-many.input.ts b/server/src/core/@generated/comment-thread/comment-thread-create-many.input.ts index 444dd62fe7c..776b619362c 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-create-many.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-create-many.input.ts @@ -1,22 +1,25 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @InputType() export class CommentThreadCreateManyInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @HideField() + workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @HideField() - workspaceId!: string; } diff --git a/server/src/core/@generated/comment-thread/comment-thread-create-without-comment-thread-targets.input.ts b/server/src/core/@generated/comment-thread/comment-thread-create-without-comment-thread-targets.input.ts index d3b8c81e021..6a41f970ea2 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-create-without-comment-thread-targets.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-create-without-comment-thread-targets.input.ts @@ -1,24 +1,27 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; import { CommentCreateNestedManyWithoutCommentThreadInput } from '../comment/comment-create-nested-many-without-comment-thread.input'; import { WorkspaceCreateNestedOneWithoutCommentThreadsInput } from '../workspace/workspace-create-nested-one-without-comment-threads.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class CommentThreadCreateWithoutCommentThreadTargetsInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => CommentCreateNestedManyWithoutCommentThreadInput, {nullable:true}) comments?: CommentCreateNestedManyWithoutCommentThreadInput; diff --git a/server/src/core/@generated/comment-thread/comment-thread-create-without-comments.input.ts b/server/src/core/@generated/comment-thread/comment-thread-create-without-comments.input.ts index 25d7e767370..da829a51e85 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-create-without-comments.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-create-without-comments.input.ts @@ -1,24 +1,27 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; import { CommentThreadTargetCreateNestedManyWithoutCommentThreadInput } from '../comment-thread-target/comment-thread-target-create-nested-many-without-comment-thread.input'; import { WorkspaceCreateNestedOneWithoutCommentThreadsInput } from '../workspace/workspace-create-nested-one-without-comment-threads.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class CommentThreadCreateWithoutCommentsInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => CommentThreadTargetCreateNestedManyWithoutCommentThreadInput, {nullable:true}) commentThreadTargets?: CommentThreadTargetCreateNestedManyWithoutCommentThreadInput; diff --git a/server/src/core/@generated/comment-thread/comment-thread-create-without-workspace.input.ts b/server/src/core/@generated/comment-thread/comment-thread-create-without-workspace.input.ts index b1fdc5dc993..0b4a74ad6e2 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-create-without-workspace.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-create-without-workspace.input.ts @@ -1,5 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; import { CommentThreadTargetCreateNestedManyWithoutCommentThreadInput } from '../comment-thread-target/comment-thread-target-create-nested-many-without-comment-thread.input'; import { CommentCreateNestedManyWithoutCommentThreadInput } from '../comment/comment-create-nested-many-without-comment-thread.input'; @@ -7,17 +9,19 @@ import { CommentCreateNestedManyWithoutCommentThreadInput } from '../comment/com export class CommentThreadCreateWithoutWorkspaceInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => CommentThreadTargetCreateNestedManyWithoutCommentThreadInput, {nullable:true}) commentThreadTargets?: CommentThreadTargetCreateNestedManyWithoutCommentThreadInput; diff --git a/server/src/core/@generated/comment-thread/comment-thread-create.input.ts b/server/src/core/@generated/comment-thread/comment-thread-create.input.ts index 7e4c9053d3a..ef2d51dc063 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-create.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-create.input.ts @@ -1,25 +1,28 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; import { CommentThreadTargetCreateNestedManyWithoutCommentThreadInput } from '../comment-thread-target/comment-thread-target-create-nested-many-without-comment-thread.input'; import { CommentCreateNestedManyWithoutCommentThreadInput } from '../comment/comment-create-nested-many-without-comment-thread.input'; import { WorkspaceCreateNestedOneWithoutCommentThreadsInput } from '../workspace/workspace-create-nested-one-without-comment-threads.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class CommentThreadCreateInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => CommentThreadTargetCreateNestedManyWithoutCommentThreadInput, {nullable:true}) commentThreadTargets?: CommentThreadTargetCreateNestedManyWithoutCommentThreadInput; diff --git a/server/src/core/@generated/comment-thread/comment-thread-group-by.output.ts b/server/src/core/@generated/comment-thread/comment-thread-group-by.output.ts index 160f45ba08b..885b78d14b9 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-group-by.output.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-group-by.output.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; import { CommentThreadCountAggregate } from './comment-thread-count-aggregate.output'; import { CommentThreadMinAggregate } from './comment-thread-min-aggregate.output'; @@ -9,20 +10,22 @@ import { CommentThreadMaxAggregate } from './comment-thread-max-aggregate.output export class CommentThreadGroupBy { @Field(() => String, {nullable:false}) + @Validator.IsString() + @Validator.IsOptional() id!: string; + @HideField() + workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:false}) createdAt!: Date | string; @Field(() => Date, {nullable:false}) updatedAt!: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @HideField() - workspaceId!: string; - @Field(() => CommentThreadCountAggregate, {nullable:true}) _count?: CommentThreadCountAggregate; diff --git a/server/src/core/@generated/comment-thread/comment-thread-max-aggregate.input.ts b/server/src/core/@generated/comment-thread/comment-thread-max-aggregate.input.ts index 1d4149f81f2..0a22e60e52a 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-max-aggregate.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-max-aggregate.input.ts @@ -8,15 +8,15 @@ export class CommentThreadMaxAggregateInput { @Field(() => Boolean, {nullable:true}) id?: true; + @HideField() + workspaceId?: true; + + @HideField() + deletedAt?: true; + @Field(() => Boolean, {nullable:true}) createdAt?: true; @Field(() => Boolean, {nullable:true}) updatedAt?: true; - - @Field(() => Boolean, {nullable:true}) - deletedAt?: true; - - @HideField() - workspaceId?: true; } diff --git a/server/src/core/@generated/comment-thread/comment-thread-max-aggregate.output.ts b/server/src/core/@generated/comment-thread/comment-thread-max-aggregate.output.ts index 91a72cae3d6..e76278c67a9 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-max-aggregate.output.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-max-aggregate.output.ts @@ -1,22 +1,25 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @ObjectType() export class CommentThreadMaxAggregate { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @HideField() + workspaceId?: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @HideField() - workspaceId?: string; } diff --git a/server/src/core/@generated/comment-thread/comment-thread-max-order-by-aggregate.input.ts b/server/src/core/@generated/comment-thread/comment-thread-max-order-by-aggregate.input.ts index 7fa8c4489a1..77e00888aad 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-max-order-by-aggregate.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-max-order-by-aggregate.input.ts @@ -9,15 +9,15 @@ export class CommentThreadMaxOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; + @HideField() + workspaceId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) createdAt?: keyof typeof SortOrder; @Field(() => SortOrder, {nullable:true}) updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - - @HideField() - workspaceId?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/comment-thread/comment-thread-min-aggregate.input.ts b/server/src/core/@generated/comment-thread/comment-thread-min-aggregate.input.ts index b9ebbcb64a0..1e45c444c57 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-min-aggregate.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-min-aggregate.input.ts @@ -8,15 +8,15 @@ export class CommentThreadMinAggregateInput { @Field(() => Boolean, {nullable:true}) id?: true; + @HideField() + workspaceId?: true; + + @HideField() + deletedAt?: true; + @Field(() => Boolean, {nullable:true}) createdAt?: true; @Field(() => Boolean, {nullable:true}) updatedAt?: true; - - @Field(() => Boolean, {nullable:true}) - deletedAt?: true; - - @HideField() - workspaceId?: true; } diff --git a/server/src/core/@generated/comment-thread/comment-thread-min-aggregate.output.ts b/server/src/core/@generated/comment-thread/comment-thread-min-aggregate.output.ts index ef2b349c0fa..7f891925749 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-min-aggregate.output.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-min-aggregate.output.ts @@ -1,22 +1,25 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @ObjectType() export class CommentThreadMinAggregate { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @HideField() + workspaceId?: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @HideField() - workspaceId?: string; } diff --git a/server/src/core/@generated/comment-thread/comment-thread-min-order-by-aggregate.input.ts b/server/src/core/@generated/comment-thread/comment-thread-min-order-by-aggregate.input.ts index 440e5604149..ffccd07a07c 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-min-order-by-aggregate.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-min-order-by-aggregate.input.ts @@ -9,15 +9,15 @@ export class CommentThreadMinOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; + @HideField() + workspaceId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) createdAt?: keyof typeof SortOrder; @Field(() => SortOrder, {nullable:true}) updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - - @HideField() - workspaceId?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/comment-thread/comment-thread-order-by-with-aggregation.input.ts b/server/src/core/@generated/comment-thread/comment-thread-order-by-with-aggregation.input.ts index 3d941cc80cb..691a37d8ec3 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-order-by-with-aggregation.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-order-by-with-aggregation.input.ts @@ -12,18 +12,18 @@ export class CommentThreadOrderByWithAggregationInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; + @HideField() + workspaceId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) createdAt?: keyof typeof SortOrder; @Field(() => SortOrder, {nullable:true}) updatedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - - @HideField() - workspaceId?: keyof typeof SortOrder; - @Field(() => CommentThreadCountOrderByAggregateInput, {nullable:true}) _count?: CommentThreadCountOrderByAggregateInput; diff --git a/server/src/core/@generated/comment-thread/comment-thread-order-by-with-relation.input.ts b/server/src/core/@generated/comment-thread/comment-thread-order-by-with-relation.input.ts index 71bf3618e2e..820b616f151 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-order-by-with-relation.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-order-by-with-relation.input.ts @@ -12,18 +12,18 @@ export class CommentThreadOrderByWithRelationInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; + @HideField() + workspaceId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) createdAt?: keyof typeof SortOrder; @Field(() => SortOrder, {nullable:true}) updatedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - - @HideField() - workspaceId?: keyof typeof SortOrder; - @Field(() => CommentThreadTargetOrderByRelationAggregateInput, {nullable:true}) commentThreadTargets?: CommentThreadTargetOrderByRelationAggregateInput; diff --git a/server/src/core/@generated/comment-thread/comment-thread-scalar-field.enum.ts b/server/src/core/@generated/comment-thread/comment-thread-scalar-field.enum.ts index da384254ab8..a4b02004a7c 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-scalar-field.enum.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-scalar-field.enum.ts @@ -2,10 +2,10 @@ import { registerEnumType } from '@nestjs/graphql'; export enum CommentThreadScalarFieldEnum { id = "id", - createdAt = "createdAt", - updatedAt = "updatedAt", + workspaceId = "workspaceId", deletedAt = "deletedAt", - workspaceId = "workspaceId" + createdAt = "createdAt", + updatedAt = "updatedAt" } diff --git a/server/src/core/@generated/comment-thread/comment-thread-scalar-where-with-aggregates.input.ts b/server/src/core/@generated/comment-thread/comment-thread-scalar-where-with-aggregates.input.ts index 84552ba8b5d..295edaa145f 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-scalar-where-with-aggregates.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-scalar-where-with-aggregates.input.ts @@ -1,9 +1,9 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringWithAggregatesFilter } from '../prisma/string-with-aggregates-filter.input'; -import { DateTimeWithAggregatesFilter } from '../prisma/date-time-with-aggregates-filter.input'; -import { DateTimeNullableWithAggregatesFilter } from '../prisma/date-time-nullable-with-aggregates-filter.input'; import { HideField } from '@nestjs/graphql'; +import { DateTimeNullableWithAggregatesFilter } from '../prisma/date-time-nullable-with-aggregates-filter.input'; +import { DateTimeWithAggregatesFilter } from '../prisma/date-time-with-aggregates-filter.input'; @InputType() export class CommentThreadScalarWhereWithAggregatesInput { @@ -20,15 +20,15 @@ export class CommentThreadScalarWhereWithAggregatesInput { @Field(() => StringWithAggregatesFilter, {nullable:true}) id?: StringWithAggregatesFilter; + @HideField() + workspaceId?: StringWithAggregatesFilter; + + @HideField() + deletedAt?: DateTimeNullableWithAggregatesFilter; + @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) createdAt?: DateTimeWithAggregatesFilter; @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) updatedAt?: DateTimeWithAggregatesFilter; - - @Field(() => DateTimeNullableWithAggregatesFilter, {nullable:true}) - deletedAt?: DateTimeNullableWithAggregatesFilter; - - @HideField() - workspaceId?: StringWithAggregatesFilter; } diff --git a/server/src/core/@generated/comment-thread/comment-thread-scalar-where.input.ts b/server/src/core/@generated/comment-thread/comment-thread-scalar-where.input.ts index bca6c41d669..80585db9d9b 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-scalar-where.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-scalar-where.input.ts @@ -1,9 +1,9 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFilter } from '../prisma/string-filter.input'; -import { DateTimeFilter } from '../prisma/date-time-filter.input'; -import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; import { HideField } from '@nestjs/graphql'; +import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; +import { DateTimeFilter } from '../prisma/date-time-filter.input'; @InputType() export class CommentThreadScalarWhereInput { @@ -20,15 +20,15 @@ export class CommentThreadScalarWhereInput { @Field(() => StringFilter, {nullable:true}) id?: StringFilter; + @HideField() + workspaceId?: StringFilter; + + @HideField() + deletedAt?: DateTimeNullableFilter; + @Field(() => DateTimeFilter, {nullable:true}) createdAt?: DateTimeFilter; @Field(() => DateTimeFilter, {nullable:true}) updatedAt?: DateTimeFilter; - - @Field(() => DateTimeNullableFilter, {nullable:true}) - deletedAt?: DateTimeNullableFilter; - - @HideField() - workspaceId?: StringFilter; } diff --git a/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-comment-thread-targets.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-comment-thread-targets.input.ts index 732d0622d68..7a77e02ca08 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-comment-thread-targets.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-comment-thread-targets.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; import { CommentUncheckedCreateNestedManyWithoutCommentThreadInput } from '../comment/comment-unchecked-create-nested-many-without-comment-thread.input'; @@ -7,20 +8,22 @@ import { CommentUncheckedCreateNestedManyWithoutCommentThreadInput } from '../co export class CommentThreadUncheckedCreateWithoutCommentThreadTargetsInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @HideField() + workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @HideField() - workspaceId!: string; - @Field(() => CommentUncheckedCreateNestedManyWithoutCommentThreadInput, {nullable:true}) comments?: CommentUncheckedCreateNestedManyWithoutCommentThreadInput; } diff --git a/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-comments.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-comments.input.ts index 756ede95bcd..23ad12f7199 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-comments.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-comments.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; import { CommentThreadTargetUncheckedCreateNestedManyWithoutCommentThreadInput } from '../comment-thread-target/comment-thread-target-unchecked-create-nested-many-without-comment-thread.input'; @@ -7,20 +8,22 @@ import { CommentThreadTargetUncheckedCreateNestedManyWithoutCommentThreadInput } export class CommentThreadUncheckedCreateWithoutCommentsInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @HideField() + workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @HideField() - workspaceId!: string; - @Field(() => CommentThreadTargetUncheckedCreateNestedManyWithoutCommentThreadInput, {nullable:true}) commentThreadTargets?: CommentThreadTargetUncheckedCreateNestedManyWithoutCommentThreadInput; } diff --git a/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-workspace.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-workspace.input.ts index 6851256223d..697f3100177 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-workspace.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-workspace.input.ts @@ -1,5 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; import { CommentThreadTargetUncheckedCreateNestedManyWithoutCommentThreadInput } from '../comment-thread-target/comment-thread-target-unchecked-create-nested-many-without-comment-thread.input'; import { CommentUncheckedCreateNestedManyWithoutCommentThreadInput } from '../comment/comment-unchecked-create-nested-many-without-comment-thread.input'; @@ -7,17 +9,19 @@ import { CommentUncheckedCreateNestedManyWithoutCommentThreadInput } from '../co export class CommentThreadUncheckedCreateWithoutWorkspaceInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => CommentThreadTargetUncheckedCreateNestedManyWithoutCommentThreadInput, {nullable:true}) commentThreadTargets?: CommentThreadTargetUncheckedCreateNestedManyWithoutCommentThreadInput; diff --git a/server/src/core/@generated/comment-thread/comment-thread-unchecked-create.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-create.input.ts index cc9bc163af6..c67e5a29b7e 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-unchecked-create.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-create.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; import { CommentThreadTargetUncheckedCreateNestedManyWithoutCommentThreadInput } from '../comment-thread-target/comment-thread-target-unchecked-create-nested-many-without-comment-thread.input'; import { CommentUncheckedCreateNestedManyWithoutCommentThreadInput } from '../comment/comment-unchecked-create-nested-many-without-comment-thread.input'; @@ -8,20 +9,22 @@ import { CommentUncheckedCreateNestedManyWithoutCommentThreadInput } from '../co export class CommentThreadUncheckedCreateInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @HideField() + workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @HideField() - workspaceId!: string; - @Field(() => CommentThreadTargetUncheckedCreateNestedManyWithoutCommentThreadInput, {nullable:true}) commentThreadTargets?: CommentThreadTargetUncheckedCreateNestedManyWithoutCommentThreadInput; diff --git a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-many-without-comment-threads.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-many-without-comment-threads.input.ts index f6f515decc0..a8176bf8640 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-many-without-comment-threads.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-many-without-comment-threads.input.ts @@ -1,8 +1,9 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class CommentThreadUncheckedUpdateManyWithoutCommentThreadsInput { @@ -10,12 +11,12 @@ export class CommentThreadUncheckedUpdateManyWithoutCommentThreadsInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) createdAt?: DateTimeFieldUpdateOperationsInput; @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-many.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-many.input.ts index 01f687d55b1..e29d948537d 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-many.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-many.input.ts @@ -1,9 +1,9 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class CommentThreadUncheckedUpdateManyInput { @@ -11,15 +11,15 @@ export class CommentThreadUncheckedUpdateManyInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; + @HideField() + workspaceId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) createdAt?: DateTimeFieldUpdateOperationsInput; @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - - @HideField() - workspaceId?: StringFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-comment-thread-targets.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-comment-thread-targets.input.ts index 80fc0d763bd..a3f3a2bfee8 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-comment-thread-targets.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-comment-thread-targets.input.ts @@ -1,9 +1,9 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { CommentUncheckedUpdateManyWithoutCommentThreadNestedInput } from '../comment/comment-unchecked-update-many-without-comment-thread-nested.input'; @InputType() @@ -12,18 +12,18 @@ export class CommentThreadUncheckedUpdateWithoutCommentThreadTargetsInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; + @HideField() + workspaceId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) createdAt?: DateTimeFieldUpdateOperationsInput; @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - - @HideField() - workspaceId?: StringFieldUpdateOperationsInput; - @Field(() => CommentUncheckedUpdateManyWithoutCommentThreadNestedInput, {nullable:true}) comments?: CommentUncheckedUpdateManyWithoutCommentThreadNestedInput; } diff --git a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-comments.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-comments.input.ts index 786cb2f3511..9c05d049c4d 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-comments.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-comments.input.ts @@ -1,9 +1,9 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { CommentThreadTargetUncheckedUpdateManyWithoutCommentThreadNestedInput } from '../comment-thread-target/comment-thread-target-unchecked-update-many-without-comment-thread-nested.input'; @InputType() @@ -12,18 +12,18 @@ export class CommentThreadUncheckedUpdateWithoutCommentsInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; + @HideField() + workspaceId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) createdAt?: DateTimeFieldUpdateOperationsInput; @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - - @HideField() - workspaceId?: StringFieldUpdateOperationsInput; - @Field(() => CommentThreadTargetUncheckedUpdateManyWithoutCommentThreadNestedInput, {nullable:true}) commentThreadTargets?: CommentThreadTargetUncheckedUpdateManyWithoutCommentThreadNestedInput; } diff --git a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-workspace.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-workspace.input.ts index 06257118e6c..a9dbbbdfe69 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-workspace.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-workspace.input.ts @@ -1,8 +1,9 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { CommentThreadTargetUncheckedUpdateManyWithoutCommentThreadNestedInput } from '../comment-thread-target/comment-thread-target-unchecked-update-many-without-comment-thread-nested.input'; import { CommentUncheckedUpdateManyWithoutCommentThreadNestedInput } from '../comment/comment-unchecked-update-many-without-comment-thread-nested.input'; @@ -12,15 +13,15 @@ export class CommentThreadUncheckedUpdateWithoutWorkspaceInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) createdAt?: DateTimeFieldUpdateOperationsInput; @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => CommentThreadTargetUncheckedUpdateManyWithoutCommentThreadNestedInput, {nullable:true}) commentThreadTargets?: CommentThreadTargetUncheckedUpdateManyWithoutCommentThreadNestedInput; diff --git a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update.input.ts index 4ce273e57d4..73ee096f5aa 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update.input.ts @@ -1,9 +1,9 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { CommentThreadTargetUncheckedUpdateManyWithoutCommentThreadNestedInput } from '../comment-thread-target/comment-thread-target-unchecked-update-many-without-comment-thread-nested.input'; import { CommentUncheckedUpdateManyWithoutCommentThreadNestedInput } from '../comment/comment-unchecked-update-many-without-comment-thread-nested.input'; @@ -13,18 +13,18 @@ export class CommentThreadUncheckedUpdateInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; + @HideField() + workspaceId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) createdAt?: DateTimeFieldUpdateOperationsInput; @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - - @HideField() - workspaceId?: StringFieldUpdateOperationsInput; - @Field(() => CommentThreadTargetUncheckedUpdateManyWithoutCommentThreadNestedInput, {nullable:true}) commentThreadTargets?: CommentThreadTargetUncheckedUpdateManyWithoutCommentThreadNestedInput; diff --git a/server/src/core/@generated/comment-thread/comment-thread-update-many-mutation.input.ts b/server/src/core/@generated/comment-thread/comment-thread-update-many-mutation.input.ts index 556ef798b92..4ac5fe47731 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-update-many-mutation.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-update-many-mutation.input.ts @@ -1,8 +1,9 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class CommentThreadUpdateManyMutationInput { @@ -10,12 +11,12 @@ export class CommentThreadUpdateManyMutationInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) createdAt?: DateTimeFieldUpdateOperationsInput; @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/comment-thread/comment-thread-update-without-comment-thread-targets.input.ts b/server/src/core/@generated/comment-thread/comment-thread-update-without-comment-thread-targets.input.ts index b7a30afa15a..11962b372cb 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-update-without-comment-thread-targets.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-update-without-comment-thread-targets.input.ts @@ -1,11 +1,11 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { CommentUpdateManyWithoutCommentThreadNestedInput } from '../comment/comment-update-many-without-comment-thread-nested.input'; import { WorkspaceUpdateOneRequiredWithoutCommentThreadsNestedInput } from '../workspace/workspace-update-one-required-without-comment-threads-nested.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class CommentThreadUpdateWithoutCommentThreadTargetsInput { @@ -13,15 +13,15 @@ export class CommentThreadUpdateWithoutCommentThreadTargetsInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) createdAt?: DateTimeFieldUpdateOperationsInput; @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => CommentUpdateManyWithoutCommentThreadNestedInput, {nullable:true}) comments?: CommentUpdateManyWithoutCommentThreadNestedInput; diff --git a/server/src/core/@generated/comment-thread/comment-thread-update-without-comments.input.ts b/server/src/core/@generated/comment-thread/comment-thread-update-without-comments.input.ts index 69b737bb712..4c2d34db466 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-update-without-comments.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-update-without-comments.input.ts @@ -1,11 +1,11 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput } from '../comment-thread-target/comment-thread-target-update-many-without-comment-thread-nested.input'; import { WorkspaceUpdateOneRequiredWithoutCommentThreadsNestedInput } from '../workspace/workspace-update-one-required-without-comment-threads-nested.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class CommentThreadUpdateWithoutCommentsInput { @@ -13,15 +13,15 @@ export class CommentThreadUpdateWithoutCommentsInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) createdAt?: DateTimeFieldUpdateOperationsInput; @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput, {nullable:true}) commentThreadTargets?: CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput; diff --git a/server/src/core/@generated/comment-thread/comment-thread-update-without-workspace.input.ts b/server/src/core/@generated/comment-thread/comment-thread-update-without-workspace.input.ts index 7f2db2f9a93..0860a0f3302 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-update-without-workspace.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-update-without-workspace.input.ts @@ -1,8 +1,9 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput } from '../comment-thread-target/comment-thread-target-update-many-without-comment-thread-nested.input'; import { CommentUpdateManyWithoutCommentThreadNestedInput } from '../comment/comment-update-many-without-comment-thread-nested.input'; @@ -12,15 +13,15 @@ export class CommentThreadUpdateWithoutWorkspaceInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) createdAt?: DateTimeFieldUpdateOperationsInput; @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput, {nullable:true}) commentThreadTargets?: CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput; diff --git a/server/src/core/@generated/comment-thread/comment-thread-update.input.ts b/server/src/core/@generated/comment-thread/comment-thread-update.input.ts index 2d61d5dbbca..f9558ac23f9 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-update.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-update.input.ts @@ -1,12 +1,12 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput } from '../comment-thread-target/comment-thread-target-update-many-without-comment-thread-nested.input'; import { CommentUpdateManyWithoutCommentThreadNestedInput } from '../comment/comment-update-many-without-comment-thread-nested.input'; import { WorkspaceUpdateOneRequiredWithoutCommentThreadsNestedInput } from '../workspace/workspace-update-one-required-without-comment-threads-nested.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class CommentThreadUpdateInput { @@ -14,15 +14,15 @@ export class CommentThreadUpdateInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) createdAt?: DateTimeFieldUpdateOperationsInput; @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput, {nullable:true}) commentThreadTargets?: CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput; diff --git a/server/src/core/@generated/comment-thread/comment-thread-where-unique.input.ts b/server/src/core/@generated/comment-thread/comment-thread-where-unique.input.ts index 2c0cd1b5234..c9afee05b48 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-where-unique.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-where-unique.input.ts @@ -1,9 +1,12 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; @InputType() export class CommentThreadWhereUniqueInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; } diff --git a/server/src/core/@generated/comment-thread/comment-thread-where.input.ts b/server/src/core/@generated/comment-thread/comment-thread-where.input.ts index 534b7bf6dc8..8565dd9b847 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-where.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-where.input.ts @@ -1,9 +1,9 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFilter } from '../prisma/string-filter.input'; -import { DateTimeFilter } from '../prisma/date-time-filter.input'; -import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; import { HideField } from '@nestjs/graphql'; +import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; +import { DateTimeFilter } from '../prisma/date-time-filter.input'; import { CommentThreadTargetListRelationFilter } from '../comment-thread-target/comment-thread-target-list-relation-filter.input'; import { CommentListRelationFilter } from '../comment/comment-list-relation-filter.input'; import { WorkspaceRelationFilter } from '../workspace/workspace-relation-filter.input'; @@ -23,18 +23,18 @@ export class CommentThreadWhereInput { @Field(() => StringFilter, {nullable:true}) id?: StringFilter; + @HideField() + workspaceId?: StringFilter; + + @HideField() + deletedAt?: DateTimeNullableFilter; + @Field(() => DateTimeFilter, {nullable:true}) createdAt?: DateTimeFilter; @Field(() => DateTimeFilter, {nullable:true}) updatedAt?: DateTimeFilter; - @Field(() => DateTimeNullableFilter, {nullable:true}) - deletedAt?: DateTimeNullableFilter; - - @HideField() - workspaceId?: StringFilter; - @Field(() => CommentThreadTargetListRelationFilter, {nullable:true}) commentThreadTargets?: CommentThreadTargetListRelationFilter; diff --git a/server/src/core/@generated/comment-thread/comment-thread.model.ts b/server/src/core/@generated/comment-thread/comment-thread.model.ts index 7dc775bf959..430b1964bb2 100644 --- a/server/src/core/@generated/comment-thread/comment-thread.model.ts +++ b/server/src/core/@generated/comment-thread/comment-thread.model.ts @@ -13,18 +13,18 @@ export class CommentThread { @Field(() => ID, {nullable:false}) id!: string; + @HideField() + workspaceId!: string; + + @HideField() + deletedAt!: Date | null; + @Field(() => Date, {nullable:false}) createdAt!: Date; @Field(() => Date, {nullable:false}) updatedAt!: Date; - @Field(() => Date, {nullable:true}) - deletedAt!: Date | null; - - @HideField() - workspaceId!: string; - @Field(() => [CommentThreadTarget], {nullable:true}) commentThreadTargets?: Array; diff --git a/server/src/core/@generated/comment-thread/create-many-comment-thread.args.ts b/server/src/core/@generated/comment-thread/create-many-comment-thread.args.ts index 34abc8f81ff..eb14acb1b73 100644 --- a/server/src/core/@generated/comment-thread/create-many-comment-thread.args.ts +++ b/server/src/core/@generated/comment-thread/create-many-comment-thread.args.ts @@ -2,12 +2,15 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { CommentThreadCreateManyInput } from './comment-thread-create-many.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; @ArgsType() export class CreateManyCommentThreadArgs { @Field(() => [CommentThreadCreateManyInput], {nullable:false}) @Type(() => CommentThreadCreateManyInput) + @ValidateNested({each: true}) + @Type(() => CommentThreadCreateManyInput) data!: Array; @Field(() => Boolean, {nullable:true}) diff --git a/server/src/core/@generated/comment-thread/create-one-comment-thread.args.ts b/server/src/core/@generated/comment-thread/create-one-comment-thread.args.ts index be6d3b1a7d3..20ed8d3e5ef 100644 --- a/server/src/core/@generated/comment-thread/create-one-comment-thread.args.ts +++ b/server/src/core/@generated/comment-thread/create-one-comment-thread.args.ts @@ -2,11 +2,14 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { CommentThreadCreateInput } from './comment-thread-create.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; @ArgsType() export class CreateOneCommentThreadArgs { @Field(() => CommentThreadCreateInput, {nullable:false}) @Type(() => CommentThreadCreateInput) + @ValidateNested({each: true}) + @Type(() => CommentThreadCreateInput) data!: CommentThreadCreateInput; } diff --git a/server/src/core/@generated/comment-thread/update-many-comment-thread.args.ts b/server/src/core/@generated/comment-thread/update-many-comment-thread.args.ts index 86c33e1ebb6..ccf3aeaf479 100644 --- a/server/src/core/@generated/comment-thread/update-many-comment-thread.args.ts +++ b/server/src/core/@generated/comment-thread/update-many-comment-thread.args.ts @@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { CommentThreadUpdateManyMutationInput } from './comment-thread-update-many-mutation.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; import { CommentThreadWhereInput } from './comment-thread-where.input'; @ArgsType() @@ -9,6 +10,8 @@ export class UpdateManyCommentThreadArgs { @Field(() => CommentThreadUpdateManyMutationInput, {nullable:false}) @Type(() => CommentThreadUpdateManyMutationInput) + @ValidateNested({each: true}) + @Type(() => CommentThreadUpdateManyMutationInput) data!: CommentThreadUpdateManyMutationInput; @Field(() => CommentThreadWhereInput, {nullable:true}) diff --git a/server/src/core/@generated/comment-thread/update-one-comment-thread.args.ts b/server/src/core/@generated/comment-thread/update-one-comment-thread.args.ts index 82a12612889..0c7ba727741 100644 --- a/server/src/core/@generated/comment-thread/update-one-comment-thread.args.ts +++ b/server/src/core/@generated/comment-thread/update-one-comment-thread.args.ts @@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { CommentThreadUpdateInput } from './comment-thread-update.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input'; @ArgsType() @@ -9,6 +10,8 @@ export class UpdateOneCommentThreadArgs { @Field(() => CommentThreadUpdateInput, {nullable:false}) @Type(() => CommentThreadUpdateInput) + @ValidateNested({each: true}) + @Type(() => CommentThreadUpdateInput) data!: CommentThreadUpdateInput; @Field(() => CommentThreadWhereUniqueInput, {nullable:false}) diff --git a/server/src/core/@generated/comment/comment-count-aggregate.input.ts b/server/src/core/@generated/comment/comment-count-aggregate.input.ts index 17baa23ac67..89af0ecef46 100644 --- a/server/src/core/@generated/comment/comment-count-aggregate.input.ts +++ b/server/src/core/@generated/comment/comment-count-aggregate.input.ts @@ -8,15 +8,6 @@ export class CommentCountAggregateInput { @Field(() => Boolean, {nullable:true}) id?: true; - @Field(() => Boolean, {nullable:true}) - createdAt?: true; - - @Field(() => Boolean, {nullable:true}) - updatedAt?: true; - - @Field(() => Boolean, {nullable:true}) - deletedAt?: true; - @Field(() => Boolean, {nullable:true}) body?: true; @@ -29,6 +20,15 @@ export class CommentCountAggregateInput { @HideField() workspaceId?: true; + @HideField() + deletedAt?: true; + + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; + @Field(() => Boolean, {nullable:true}) _all?: true; } diff --git a/server/src/core/@generated/comment/comment-count-aggregate.output.ts b/server/src/core/@generated/comment/comment-count-aggregate.output.ts index a49f2a2f286..c9698a2e827 100644 --- a/server/src/core/@generated/comment/comment-count-aggregate.output.ts +++ b/server/src/core/@generated/comment/comment-count-aggregate.output.ts @@ -9,15 +9,6 @@ export class CommentCountAggregate { @Field(() => Int, {nullable:false}) id!: number; - @Field(() => Int, {nullable:false}) - createdAt!: number; - - @Field(() => Int, {nullable:false}) - updatedAt!: number; - - @Field(() => Int, {nullable:false}) - deletedAt!: number; - @Field(() => Int, {nullable:false}) body!: number; @@ -30,6 +21,15 @@ export class CommentCountAggregate { @HideField() workspaceId!: number; + @HideField() + deletedAt!: number; + + @Field(() => Int, {nullable:false}) + createdAt!: number; + + @Field(() => Int, {nullable:false}) + updatedAt!: number; + @Field(() => Int, {nullable:false}) _all!: number; } diff --git a/server/src/core/@generated/comment/comment-count-order-by-aggregate.input.ts b/server/src/core/@generated/comment/comment-count-order-by-aggregate.input.ts index 551d7006ece..46177b8dac2 100644 --- a/server/src/core/@generated/comment/comment-count-order-by-aggregate.input.ts +++ b/server/src/core/@generated/comment/comment-count-order-by-aggregate.input.ts @@ -9,15 +9,6 @@ export class CommentCountOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) body?: keyof typeof SortOrder; @@ -29,4 +20,13 @@ export class CommentCountOrderByAggregateInput { @HideField() workspaceId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/comment/comment-create-many-author.input.ts b/server/src/core/@generated/comment/comment-create-many-author.input.ts index ca17fd6cce8..d7c8705338f 100644 --- a/server/src/core/@generated/comment/comment-create-many-author.input.ts +++ b/server/src/core/@generated/comment/comment-create-many-author.input.ts @@ -1,23 +1,18 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @InputType() export class CommentCreateManyAuthorInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:false}) + @Validator.IsString() body!: string; @Field(() => String, {nullable:false}) @@ -25,4 +20,13 @@ export class CommentCreateManyAuthorInput { @HideField() workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/comment/comment-create-many-comment-thread.input.ts b/server/src/core/@generated/comment/comment-create-many-comment-thread.input.ts index b1107ba2151..2bb1a85762b 100644 --- a/server/src/core/@generated/comment/comment-create-many-comment-thread.input.ts +++ b/server/src/core/@generated/comment/comment-create-many-comment-thread.input.ts @@ -1,23 +1,18 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @InputType() export class CommentCreateManyCommentThreadInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:false}) + @Validator.IsString() body!: string; @Field(() => String, {nullable:false}) @@ -25,4 +20,13 @@ export class CommentCreateManyCommentThreadInput { @HideField() workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/comment/comment-create-many-workspace.input.ts b/server/src/core/@generated/comment/comment-create-many-workspace.input.ts index 52aa699d3c3..7ae9a8982f7 100644 --- a/server/src/core/@generated/comment/comment-create-many-workspace.input.ts +++ b/server/src/core/@generated/comment/comment-create-many-workspace.input.ts @@ -1,22 +1,18 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; @InputType() export class CommentCreateManyWorkspaceInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:false}) + @Validator.IsString() body!: string; @Field(() => String, {nullable:false}) @@ -24,4 +20,13 @@ export class CommentCreateManyWorkspaceInput { @Field(() => String, {nullable:false}) commentThreadId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/comment/comment-create-many.input.ts b/server/src/core/@generated/comment/comment-create-many.input.ts index f5eea37fcf3..7ebf705b71a 100644 --- a/server/src/core/@generated/comment/comment-create-many.input.ts +++ b/server/src/core/@generated/comment/comment-create-many.input.ts @@ -1,23 +1,18 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @InputType() export class CommentCreateManyInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:false}) + @Validator.IsString() body!: string; @Field(() => String, {nullable:false}) @@ -28,4 +23,13 @@ export class CommentCreateManyInput { @HideField() workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/comment/comment-create-without-author.input.ts b/server/src/core/@generated/comment/comment-create-without-author.input.ts index 6f79837eb46..2ac660538d6 100644 --- a/server/src/core/@generated/comment/comment-create-without-author.input.ts +++ b/server/src/core/@generated/comment/comment-create-without-author.input.ts @@ -1,27 +1,31 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; import { CommentThreadCreateNestedOneWithoutCommentsInput } from '../comment-thread/comment-thread-create-nested-one-without-comments.input'; import { WorkspaceCreateNestedOneWithoutCommentsInput } from '../workspace/workspace-create-nested-one-without-comments.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class CommentCreateWithoutAuthorInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + body!: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - body!: string; - @Field(() => CommentThreadCreateNestedOneWithoutCommentsInput, {nullable:false}) commentThread!: CommentThreadCreateNestedOneWithoutCommentsInput; diff --git a/server/src/core/@generated/comment/comment-create-without-comment-thread.input.ts b/server/src/core/@generated/comment/comment-create-without-comment-thread.input.ts index f0012b06446..308a1080c8d 100644 --- a/server/src/core/@generated/comment/comment-create-without-comment-thread.input.ts +++ b/server/src/core/@generated/comment/comment-create-without-comment-thread.input.ts @@ -1,27 +1,31 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; import { UserCreateNestedOneWithoutCommentsInput } from '../user/user-create-nested-one-without-comments.input'; import { WorkspaceCreateNestedOneWithoutCommentsInput } from '../workspace/workspace-create-nested-one-without-comments.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class CommentCreateWithoutCommentThreadInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + body!: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - body!: string; - @Field(() => UserCreateNestedOneWithoutCommentsInput, {nullable:false}) author!: UserCreateNestedOneWithoutCommentsInput; diff --git a/server/src/core/@generated/comment/comment-create-without-workspace.input.ts b/server/src/core/@generated/comment/comment-create-without-workspace.input.ts index 5441d9b1b28..e10ec5cbe66 100644 --- a/server/src/core/@generated/comment/comment-create-without-workspace.input.ts +++ b/server/src/core/@generated/comment/comment-create-without-workspace.input.ts @@ -1,5 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; import { UserCreateNestedOneWithoutCommentsInput } from '../user/user-create-nested-one-without-comments.input'; import { CommentThreadCreateNestedOneWithoutCommentsInput } from '../comment-thread/comment-thread-create-nested-one-without-comments.input'; @@ -7,20 +9,23 @@ import { CommentThreadCreateNestedOneWithoutCommentsInput } from '../comment-thr export class CommentCreateWithoutWorkspaceInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + body!: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - body!: string; - @Field(() => UserCreateNestedOneWithoutCommentsInput, {nullable:false}) author!: UserCreateNestedOneWithoutCommentsInput; diff --git a/server/src/core/@generated/comment/comment-create.input.ts b/server/src/core/@generated/comment/comment-create.input.ts index 9600cfc1e4f..1c1ae3c64c4 100644 --- a/server/src/core/@generated/comment/comment-create.input.ts +++ b/server/src/core/@generated/comment/comment-create.input.ts @@ -1,28 +1,32 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; import { UserCreateNestedOneWithoutCommentsInput } from '../user/user-create-nested-one-without-comments.input'; import { CommentThreadCreateNestedOneWithoutCommentsInput } from '../comment-thread/comment-thread-create-nested-one-without-comments.input'; import { WorkspaceCreateNestedOneWithoutCommentsInput } from '../workspace/workspace-create-nested-one-without-comments.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class CommentCreateInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + body!: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - body!: string; - @Field(() => UserCreateNestedOneWithoutCommentsInput, {nullable:false}) author!: UserCreateNestedOneWithoutCommentsInput; diff --git a/server/src/core/@generated/comment/comment-group-by.output.ts b/server/src/core/@generated/comment/comment-group-by.output.ts index 69166054536..bfe52f64ad5 100644 --- a/server/src/core/@generated/comment/comment-group-by.output.ts +++ b/server/src/core/@generated/comment/comment-group-by.output.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; import { CommentCountAggregate } from './comment-count-aggregate.output'; import { CommentMinAggregate } from './comment-min-aggregate.output'; @@ -9,18 +10,12 @@ import { CommentMaxAggregate } from './comment-max-aggregate.output'; export class CommentGroupBy { @Field(() => String, {nullable:false}) + @Validator.IsString() + @Validator.IsOptional() id!: string; - @Field(() => Date, {nullable:false}) - createdAt!: Date | string; - - @Field(() => Date, {nullable:false}) - updatedAt!: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:false}) + @Validator.IsString() body!: string; @Field(() => String, {nullable:false}) @@ -32,6 +27,15 @@ export class CommentGroupBy { @HideField() workspaceId!: string; + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:false}) + createdAt!: Date | string; + + @Field(() => Date, {nullable:false}) + updatedAt!: Date | string; + @Field(() => CommentCountAggregate, {nullable:true}) _count?: CommentCountAggregate; diff --git a/server/src/core/@generated/comment/comment-max-aggregate.input.ts b/server/src/core/@generated/comment/comment-max-aggregate.input.ts index 30ecd9d72b4..ebf8cc1286f 100644 --- a/server/src/core/@generated/comment/comment-max-aggregate.input.ts +++ b/server/src/core/@generated/comment/comment-max-aggregate.input.ts @@ -8,15 +8,6 @@ export class CommentMaxAggregateInput { @Field(() => Boolean, {nullable:true}) id?: true; - @Field(() => Boolean, {nullable:true}) - createdAt?: true; - - @Field(() => Boolean, {nullable:true}) - updatedAt?: true; - - @Field(() => Boolean, {nullable:true}) - deletedAt?: true; - @Field(() => Boolean, {nullable:true}) body?: true; @@ -28,4 +19,13 @@ export class CommentMaxAggregateInput { @HideField() workspaceId?: true; + + @HideField() + deletedAt?: true; + + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; } diff --git a/server/src/core/@generated/comment/comment-max-aggregate.output.ts b/server/src/core/@generated/comment/comment-max-aggregate.output.ts index 5b6ef95e834..76a42879ced 100644 --- a/server/src/core/@generated/comment/comment-max-aggregate.output.ts +++ b/server/src/core/@generated/comment/comment-max-aggregate.output.ts @@ -1,23 +1,18 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @ObjectType() export class CommentMaxAggregate { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:true}) + @Validator.IsString() body?: string; @Field(() => String, {nullable:true}) @@ -28,4 +23,13 @@ export class CommentMaxAggregate { @HideField() workspaceId?: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/comment/comment-max-order-by-aggregate.input.ts b/server/src/core/@generated/comment/comment-max-order-by-aggregate.input.ts index 32450f87627..66e4d5c39e0 100644 --- a/server/src/core/@generated/comment/comment-max-order-by-aggregate.input.ts +++ b/server/src/core/@generated/comment/comment-max-order-by-aggregate.input.ts @@ -9,15 +9,6 @@ export class CommentMaxOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) body?: keyof typeof SortOrder; @@ -29,4 +20,13 @@ export class CommentMaxOrderByAggregateInput { @HideField() workspaceId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/comment/comment-min-aggregate.input.ts b/server/src/core/@generated/comment/comment-min-aggregate.input.ts index 3717705b998..2191c600d31 100644 --- a/server/src/core/@generated/comment/comment-min-aggregate.input.ts +++ b/server/src/core/@generated/comment/comment-min-aggregate.input.ts @@ -8,15 +8,6 @@ export class CommentMinAggregateInput { @Field(() => Boolean, {nullable:true}) id?: true; - @Field(() => Boolean, {nullable:true}) - createdAt?: true; - - @Field(() => Boolean, {nullable:true}) - updatedAt?: true; - - @Field(() => Boolean, {nullable:true}) - deletedAt?: true; - @Field(() => Boolean, {nullable:true}) body?: true; @@ -28,4 +19,13 @@ export class CommentMinAggregateInput { @HideField() workspaceId?: true; + + @HideField() + deletedAt?: true; + + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; } diff --git a/server/src/core/@generated/comment/comment-min-aggregate.output.ts b/server/src/core/@generated/comment/comment-min-aggregate.output.ts index b3537b16423..0aff5db281b 100644 --- a/server/src/core/@generated/comment/comment-min-aggregate.output.ts +++ b/server/src/core/@generated/comment/comment-min-aggregate.output.ts @@ -1,23 +1,18 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @ObjectType() export class CommentMinAggregate { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:true}) + @Validator.IsString() body?: string; @Field(() => String, {nullable:true}) @@ -28,4 +23,13 @@ export class CommentMinAggregate { @HideField() workspaceId?: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/comment/comment-min-order-by-aggregate.input.ts b/server/src/core/@generated/comment/comment-min-order-by-aggregate.input.ts index 82a7abccd9b..0cdfb6456dc 100644 --- a/server/src/core/@generated/comment/comment-min-order-by-aggregate.input.ts +++ b/server/src/core/@generated/comment/comment-min-order-by-aggregate.input.ts @@ -9,15 +9,6 @@ export class CommentMinOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) body?: keyof typeof SortOrder; @@ -29,4 +20,13 @@ export class CommentMinOrderByAggregateInput { @HideField() workspaceId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/comment/comment-order-by-with-aggregation.input.ts b/server/src/core/@generated/comment/comment-order-by-with-aggregation.input.ts index 349a6c1636f..8e7b21f15f2 100644 --- a/server/src/core/@generated/comment/comment-order-by-with-aggregation.input.ts +++ b/server/src/core/@generated/comment/comment-order-by-with-aggregation.input.ts @@ -12,15 +12,6 @@ export class CommentOrderByWithAggregationInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) body?: keyof typeof SortOrder; @@ -33,6 +24,15 @@ export class CommentOrderByWithAggregationInput { @HideField() workspaceId?: keyof typeof SortOrder; + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; + @Field(() => CommentCountOrderByAggregateInput, {nullable:true}) _count?: CommentCountOrderByAggregateInput; diff --git a/server/src/core/@generated/comment/comment-order-by-with-relation.input.ts b/server/src/core/@generated/comment/comment-order-by-with-relation.input.ts index bd88e7d1a4e..7336ca8ede8 100644 --- a/server/src/core/@generated/comment/comment-order-by-with-relation.input.ts +++ b/server/src/core/@generated/comment/comment-order-by-with-relation.input.ts @@ -12,15 +12,6 @@ export class CommentOrderByWithRelationInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) body?: keyof typeof SortOrder; @@ -33,6 +24,15 @@ export class CommentOrderByWithRelationInput { @HideField() workspaceId?: keyof typeof SortOrder; + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; + @Field(() => UserOrderByWithRelationInput, {nullable:true}) author?: UserOrderByWithRelationInput; diff --git a/server/src/core/@generated/comment/comment-scalar-field.enum.ts b/server/src/core/@generated/comment/comment-scalar-field.enum.ts index 2a4a40b426f..0c3c0accf93 100644 --- a/server/src/core/@generated/comment/comment-scalar-field.enum.ts +++ b/server/src/core/@generated/comment/comment-scalar-field.enum.ts @@ -2,13 +2,13 @@ import { registerEnumType } from '@nestjs/graphql'; export enum CommentScalarFieldEnum { id = "id", - createdAt = "createdAt", - updatedAt = "updatedAt", - deletedAt = "deletedAt", body = "body", authorId = "authorId", commentThreadId = "commentThreadId", - workspaceId = "workspaceId" + workspaceId = "workspaceId", + deletedAt = "deletedAt", + createdAt = "createdAt", + updatedAt = "updatedAt" } diff --git a/server/src/core/@generated/comment/comment-scalar-where-with-aggregates.input.ts b/server/src/core/@generated/comment/comment-scalar-where-with-aggregates.input.ts index 875899b17b6..f018ee34c3e 100644 --- a/server/src/core/@generated/comment/comment-scalar-where-with-aggregates.input.ts +++ b/server/src/core/@generated/comment/comment-scalar-where-with-aggregates.input.ts @@ -1,9 +1,9 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringWithAggregatesFilter } from '../prisma/string-with-aggregates-filter.input'; -import { DateTimeWithAggregatesFilter } from '../prisma/date-time-with-aggregates-filter.input'; -import { DateTimeNullableWithAggregatesFilter } from '../prisma/date-time-nullable-with-aggregates-filter.input'; import { HideField } from '@nestjs/graphql'; +import { DateTimeNullableWithAggregatesFilter } from '../prisma/date-time-nullable-with-aggregates-filter.input'; +import { DateTimeWithAggregatesFilter } from '../prisma/date-time-with-aggregates-filter.input'; @InputType() export class CommentScalarWhereWithAggregatesInput { @@ -20,15 +20,6 @@ export class CommentScalarWhereWithAggregatesInput { @Field(() => StringWithAggregatesFilter, {nullable:true}) id?: StringWithAggregatesFilter; - @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) - createdAt?: DateTimeWithAggregatesFilter; - - @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) - updatedAt?: DateTimeWithAggregatesFilter; - - @Field(() => DateTimeNullableWithAggregatesFilter, {nullable:true}) - deletedAt?: DateTimeNullableWithAggregatesFilter; - @Field(() => StringWithAggregatesFilter, {nullable:true}) body?: StringWithAggregatesFilter; @@ -40,4 +31,13 @@ export class CommentScalarWhereWithAggregatesInput { @HideField() workspaceId?: StringWithAggregatesFilter; + + @HideField() + deletedAt?: DateTimeNullableWithAggregatesFilter; + + @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) + createdAt?: DateTimeWithAggregatesFilter; + + @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) + updatedAt?: DateTimeWithAggregatesFilter; } diff --git a/server/src/core/@generated/comment/comment-scalar-where.input.ts b/server/src/core/@generated/comment/comment-scalar-where.input.ts index 0638873667b..3ff125e3fcb 100644 --- a/server/src/core/@generated/comment/comment-scalar-where.input.ts +++ b/server/src/core/@generated/comment/comment-scalar-where.input.ts @@ -1,9 +1,9 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFilter } from '../prisma/string-filter.input'; -import { DateTimeFilter } from '../prisma/date-time-filter.input'; -import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; import { HideField } from '@nestjs/graphql'; +import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; +import { DateTimeFilter } from '../prisma/date-time-filter.input'; @InputType() export class CommentScalarWhereInput { @@ -20,15 +20,6 @@ export class CommentScalarWhereInput { @Field(() => StringFilter, {nullable:true}) id?: StringFilter; - @Field(() => DateTimeFilter, {nullable:true}) - createdAt?: DateTimeFilter; - - @Field(() => DateTimeFilter, {nullable:true}) - updatedAt?: DateTimeFilter; - - @Field(() => DateTimeNullableFilter, {nullable:true}) - deletedAt?: DateTimeNullableFilter; - @Field(() => StringFilter, {nullable:true}) body?: StringFilter; @@ -40,4 +31,13 @@ export class CommentScalarWhereInput { @HideField() workspaceId?: StringFilter; + + @HideField() + deletedAt?: DateTimeNullableFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + createdAt?: DateTimeFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + updatedAt?: DateTimeFilter; } diff --git a/server/src/core/@generated/comment/comment-unchecked-create-without-author.input.ts b/server/src/core/@generated/comment/comment-unchecked-create-without-author.input.ts index ac1b6d8f0ba..6a0fae05093 100644 --- a/server/src/core/@generated/comment/comment-unchecked-create-without-author.input.ts +++ b/server/src/core/@generated/comment/comment-unchecked-create-without-author.input.ts @@ -1,23 +1,18 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @InputType() export class CommentUncheckedCreateWithoutAuthorInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:false}) + @Validator.IsString() body!: string; @Field(() => String, {nullable:false}) @@ -25,4 +20,13 @@ export class CommentUncheckedCreateWithoutAuthorInput { @HideField() workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/comment/comment-unchecked-create-without-comment-thread.input.ts b/server/src/core/@generated/comment/comment-unchecked-create-without-comment-thread.input.ts index 25df568a128..b7a8b5e13be 100644 --- a/server/src/core/@generated/comment/comment-unchecked-create-without-comment-thread.input.ts +++ b/server/src/core/@generated/comment/comment-unchecked-create-without-comment-thread.input.ts @@ -1,23 +1,18 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @InputType() export class CommentUncheckedCreateWithoutCommentThreadInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:false}) + @Validator.IsString() body!: string; @Field(() => String, {nullable:false}) @@ -25,4 +20,13 @@ export class CommentUncheckedCreateWithoutCommentThreadInput { @HideField() workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/comment/comment-unchecked-create-without-workspace.input.ts b/server/src/core/@generated/comment/comment-unchecked-create-without-workspace.input.ts index eb46be7e5a0..3e1d391d193 100644 --- a/server/src/core/@generated/comment/comment-unchecked-create-without-workspace.input.ts +++ b/server/src/core/@generated/comment/comment-unchecked-create-without-workspace.input.ts @@ -1,22 +1,18 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; @InputType() export class CommentUncheckedCreateWithoutWorkspaceInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:false}) + @Validator.IsString() body!: string; @Field(() => String, {nullable:false}) @@ -24,4 +20,13 @@ export class CommentUncheckedCreateWithoutWorkspaceInput { @Field(() => String, {nullable:false}) commentThreadId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/comment/comment-unchecked-create.input.ts b/server/src/core/@generated/comment/comment-unchecked-create.input.ts index 22e3330dda7..690de65f9f0 100644 --- a/server/src/core/@generated/comment/comment-unchecked-create.input.ts +++ b/server/src/core/@generated/comment/comment-unchecked-create.input.ts @@ -1,23 +1,18 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @InputType() export class CommentUncheckedCreateInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:false}) + @Validator.IsString() body!: string; @Field(() => String, {nullable:false}) @@ -28,4 +23,13 @@ export class CommentUncheckedCreateInput { @HideField() workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/comment/comment-unchecked-update-many-without-comments.input.ts b/server/src/core/@generated/comment/comment-unchecked-update-many-without-comments.input.ts index 6dd4fe50203..1802ebeef7d 100644 --- a/server/src/core/@generated/comment/comment-unchecked-update-many-without-comments.input.ts +++ b/server/src/core/@generated/comment/comment-unchecked-update-many-without-comments.input.ts @@ -1,9 +1,9 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class CommentUncheckedUpdateManyWithoutCommentsInput { @@ -11,15 +11,6 @@ export class CommentUncheckedUpdateManyWithoutCommentsInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) body?: StringFieldUpdateOperationsInput; @@ -28,4 +19,13 @@ export class CommentUncheckedUpdateManyWithoutCommentsInput { @HideField() workspaceId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/comment/comment-unchecked-update-many.input.ts b/server/src/core/@generated/comment/comment-unchecked-update-many.input.ts index 98db2077c19..c5e8948eb68 100644 --- a/server/src/core/@generated/comment/comment-unchecked-update-many.input.ts +++ b/server/src/core/@generated/comment/comment-unchecked-update-many.input.ts @@ -1,9 +1,9 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class CommentUncheckedUpdateManyInput { @@ -11,15 +11,6 @@ export class CommentUncheckedUpdateManyInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) body?: StringFieldUpdateOperationsInput; @@ -31,4 +22,13 @@ export class CommentUncheckedUpdateManyInput { @HideField() workspaceId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/comment/comment-unchecked-update-without-author.input.ts b/server/src/core/@generated/comment/comment-unchecked-update-without-author.input.ts index f813f9a4fc1..025ec0409c3 100644 --- a/server/src/core/@generated/comment/comment-unchecked-update-without-author.input.ts +++ b/server/src/core/@generated/comment/comment-unchecked-update-without-author.input.ts @@ -1,9 +1,9 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class CommentUncheckedUpdateWithoutAuthorInput { @@ -11,15 +11,6 @@ export class CommentUncheckedUpdateWithoutAuthorInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) body?: StringFieldUpdateOperationsInput; @@ -28,4 +19,13 @@ export class CommentUncheckedUpdateWithoutAuthorInput { @HideField() workspaceId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/comment/comment-unchecked-update-without-comment-thread.input.ts b/server/src/core/@generated/comment/comment-unchecked-update-without-comment-thread.input.ts index bc508db7ae5..14d2d005bb7 100644 --- a/server/src/core/@generated/comment/comment-unchecked-update-without-comment-thread.input.ts +++ b/server/src/core/@generated/comment/comment-unchecked-update-without-comment-thread.input.ts @@ -1,9 +1,9 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class CommentUncheckedUpdateWithoutCommentThreadInput { @@ -11,15 +11,6 @@ export class CommentUncheckedUpdateWithoutCommentThreadInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) body?: StringFieldUpdateOperationsInput; @@ -28,4 +19,13 @@ export class CommentUncheckedUpdateWithoutCommentThreadInput { @HideField() workspaceId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/comment/comment-unchecked-update-without-workspace.input.ts b/server/src/core/@generated/comment/comment-unchecked-update-without-workspace.input.ts index 7b390d1719a..173f3a1a01f 100644 --- a/server/src/core/@generated/comment/comment-unchecked-update-without-workspace.input.ts +++ b/server/src/core/@generated/comment/comment-unchecked-update-without-workspace.input.ts @@ -1,8 +1,9 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class CommentUncheckedUpdateWithoutWorkspaceInput { @@ -10,15 +11,6 @@ export class CommentUncheckedUpdateWithoutWorkspaceInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) body?: StringFieldUpdateOperationsInput; @@ -27,4 +19,13 @@ export class CommentUncheckedUpdateWithoutWorkspaceInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) commentThreadId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/comment/comment-unchecked-update.input.ts b/server/src/core/@generated/comment/comment-unchecked-update.input.ts index 7474d2ec166..7551d1c9090 100644 --- a/server/src/core/@generated/comment/comment-unchecked-update.input.ts +++ b/server/src/core/@generated/comment/comment-unchecked-update.input.ts @@ -1,9 +1,9 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class CommentUncheckedUpdateInput { @@ -11,15 +11,6 @@ export class CommentUncheckedUpdateInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) body?: StringFieldUpdateOperationsInput; @@ -31,4 +22,13 @@ export class CommentUncheckedUpdateInput { @HideField() workspaceId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/comment/comment-update-many-mutation.input.ts b/server/src/core/@generated/comment/comment-update-many-mutation.input.ts index 2bb97444777..aa011be8090 100644 --- a/server/src/core/@generated/comment/comment-update-many-mutation.input.ts +++ b/server/src/core/@generated/comment/comment-update-many-mutation.input.ts @@ -1,8 +1,9 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class CommentUpdateManyMutationInput { @@ -10,15 +11,15 @@ export class CommentUpdateManyMutationInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + body?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) createdAt?: DateTimeFieldUpdateOperationsInput; @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) - body?: StringFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/comment/comment-update-without-author.input.ts b/server/src/core/@generated/comment/comment-update-without-author.input.ts index 74539a24855..540ecb69e0e 100644 --- a/server/src/core/@generated/comment/comment-update-without-author.input.ts +++ b/server/src/core/@generated/comment/comment-update-without-author.input.ts @@ -1,11 +1,11 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { CommentThreadUpdateOneRequiredWithoutCommentsNestedInput } from '../comment-thread/comment-thread-update-one-required-without-comments-nested.input'; import { WorkspaceUpdateOneRequiredWithoutCommentsNestedInput } from '../workspace/workspace-update-one-required-without-comments-nested.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class CommentUpdateWithoutAuthorInput { @@ -13,18 +13,18 @@ export class CommentUpdateWithoutAuthorInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + body?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) createdAt?: DateTimeFieldUpdateOperationsInput; @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) - body?: StringFieldUpdateOperationsInput; - @Field(() => CommentThreadUpdateOneRequiredWithoutCommentsNestedInput, {nullable:true}) commentThread?: CommentThreadUpdateOneRequiredWithoutCommentsNestedInput; diff --git a/server/src/core/@generated/comment/comment-update-without-comment-thread.input.ts b/server/src/core/@generated/comment/comment-update-without-comment-thread.input.ts index ecb9b251b51..19ab20305ba 100644 --- a/server/src/core/@generated/comment/comment-update-without-comment-thread.input.ts +++ b/server/src/core/@generated/comment/comment-update-without-comment-thread.input.ts @@ -1,11 +1,11 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { UserUpdateOneRequiredWithoutCommentsNestedInput } from '../user/user-update-one-required-without-comments-nested.input'; import { WorkspaceUpdateOneRequiredWithoutCommentsNestedInput } from '../workspace/workspace-update-one-required-without-comments-nested.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class CommentUpdateWithoutCommentThreadInput { @@ -13,18 +13,18 @@ export class CommentUpdateWithoutCommentThreadInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + body?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) createdAt?: DateTimeFieldUpdateOperationsInput; @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) - body?: StringFieldUpdateOperationsInput; - @Field(() => UserUpdateOneRequiredWithoutCommentsNestedInput, {nullable:true}) author?: UserUpdateOneRequiredWithoutCommentsNestedInput; diff --git a/server/src/core/@generated/comment/comment-update-without-workspace.input.ts b/server/src/core/@generated/comment/comment-update-without-workspace.input.ts index 96d20eceb45..f61c5d53115 100644 --- a/server/src/core/@generated/comment/comment-update-without-workspace.input.ts +++ b/server/src/core/@generated/comment/comment-update-without-workspace.input.ts @@ -1,8 +1,9 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { UserUpdateOneRequiredWithoutCommentsNestedInput } from '../user/user-update-one-required-without-comments-nested.input'; import { CommentThreadUpdateOneRequiredWithoutCommentsNestedInput } from '../comment-thread/comment-thread-update-one-required-without-comments-nested.input'; @@ -12,18 +13,18 @@ export class CommentUpdateWithoutWorkspaceInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + body?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) createdAt?: DateTimeFieldUpdateOperationsInput; @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) - body?: StringFieldUpdateOperationsInput; - @Field(() => UserUpdateOneRequiredWithoutCommentsNestedInput, {nullable:true}) author?: UserUpdateOneRequiredWithoutCommentsNestedInput; diff --git a/server/src/core/@generated/comment/comment-update.input.ts b/server/src/core/@generated/comment/comment-update.input.ts index e4010626690..c0bef523d79 100644 --- a/server/src/core/@generated/comment/comment-update.input.ts +++ b/server/src/core/@generated/comment/comment-update.input.ts @@ -1,12 +1,12 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { UserUpdateOneRequiredWithoutCommentsNestedInput } from '../user/user-update-one-required-without-comments-nested.input'; import { CommentThreadUpdateOneRequiredWithoutCommentsNestedInput } from '../comment-thread/comment-thread-update-one-required-without-comments-nested.input'; import { WorkspaceUpdateOneRequiredWithoutCommentsNestedInput } from '../workspace/workspace-update-one-required-without-comments-nested.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class CommentUpdateInput { @@ -14,18 +14,18 @@ export class CommentUpdateInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + body?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) createdAt?: DateTimeFieldUpdateOperationsInput; @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) - body?: StringFieldUpdateOperationsInput; - @Field(() => UserUpdateOneRequiredWithoutCommentsNestedInput, {nullable:true}) author?: UserUpdateOneRequiredWithoutCommentsNestedInput; diff --git a/server/src/core/@generated/comment/comment-where-unique.input.ts b/server/src/core/@generated/comment/comment-where-unique.input.ts index bcdc9d336e0..a7c8c8c4159 100644 --- a/server/src/core/@generated/comment/comment-where-unique.input.ts +++ b/server/src/core/@generated/comment/comment-where-unique.input.ts @@ -1,9 +1,12 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; @InputType() export class CommentWhereUniqueInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; } diff --git a/server/src/core/@generated/comment/comment-where.input.ts b/server/src/core/@generated/comment/comment-where.input.ts index ab5e1ed8086..f48c7cf7fd6 100644 --- a/server/src/core/@generated/comment/comment-where.input.ts +++ b/server/src/core/@generated/comment/comment-where.input.ts @@ -1,9 +1,9 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFilter } from '../prisma/string-filter.input'; -import { DateTimeFilter } from '../prisma/date-time-filter.input'; -import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; import { HideField } from '@nestjs/graphql'; +import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; +import { DateTimeFilter } from '../prisma/date-time-filter.input'; import { UserRelationFilter } from '../user/user-relation-filter.input'; import { CommentThreadRelationFilter } from '../comment-thread/comment-thread-relation-filter.input'; import { WorkspaceRelationFilter } from '../workspace/workspace-relation-filter.input'; @@ -23,15 +23,6 @@ export class CommentWhereInput { @Field(() => StringFilter, {nullable:true}) id?: StringFilter; - @Field(() => DateTimeFilter, {nullable:true}) - createdAt?: DateTimeFilter; - - @Field(() => DateTimeFilter, {nullable:true}) - updatedAt?: DateTimeFilter; - - @Field(() => DateTimeNullableFilter, {nullable:true}) - deletedAt?: DateTimeNullableFilter; - @Field(() => StringFilter, {nullable:true}) body?: StringFilter; @@ -44,6 +35,15 @@ export class CommentWhereInput { @HideField() workspaceId?: StringFilter; + @HideField() + deletedAt?: DateTimeNullableFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + createdAt?: DateTimeFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + updatedAt?: DateTimeFilter; + @Field(() => UserRelationFilter, {nullable:true}) author?: UserRelationFilter; diff --git a/server/src/core/@generated/comment/comment.model.ts b/server/src/core/@generated/comment/comment.model.ts index 1469465c45d..0b229f8c095 100644 --- a/server/src/core/@generated/comment/comment.model.ts +++ b/server/src/core/@generated/comment/comment.model.ts @@ -12,15 +12,6 @@ export class Comment { @Field(() => ID, {nullable:false}) id!: string; - @Field(() => Date, {nullable:false}) - createdAt!: Date; - - @Field(() => Date, {nullable:false}) - updatedAt!: Date; - - @Field(() => Date, {nullable:true}) - deletedAt!: Date | null; - @Field(() => String, {nullable:false}) body!: string; @@ -33,6 +24,15 @@ export class Comment { @HideField() workspaceId!: string; + @HideField() + deletedAt!: Date | null; + + @Field(() => Date, {nullable:false}) + createdAt!: Date; + + @Field(() => Date, {nullable:false}) + updatedAt!: Date; + @Field(() => User, {nullable:false}) author?: User; diff --git a/server/src/core/@generated/comment/create-many-comment.args.ts b/server/src/core/@generated/comment/create-many-comment.args.ts index 51b3f472085..fc752ae2b36 100644 --- a/server/src/core/@generated/comment/create-many-comment.args.ts +++ b/server/src/core/@generated/comment/create-many-comment.args.ts @@ -2,12 +2,15 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { CommentCreateManyInput } from './comment-create-many.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; @ArgsType() export class CreateManyCommentArgs { @Field(() => [CommentCreateManyInput], {nullable:false}) @Type(() => CommentCreateManyInput) + @ValidateNested({each: true}) + @Type(() => CommentCreateManyInput) data!: Array; @Field(() => Boolean, {nullable:true}) diff --git a/server/src/core/@generated/comment/create-one-comment.args.ts b/server/src/core/@generated/comment/create-one-comment.args.ts index 6656889420d..573b1a2e6d2 100644 --- a/server/src/core/@generated/comment/create-one-comment.args.ts +++ b/server/src/core/@generated/comment/create-one-comment.args.ts @@ -2,11 +2,14 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { CommentCreateInput } from './comment-create.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; @ArgsType() export class CreateOneCommentArgs { @Field(() => CommentCreateInput, {nullable:false}) @Type(() => CommentCreateInput) + @ValidateNested({each: true}) + @Type(() => CommentCreateInput) data!: CommentCreateInput; } diff --git a/server/src/core/@generated/comment/update-many-comment.args.ts b/server/src/core/@generated/comment/update-many-comment.args.ts index 0f562576f01..2ed02c08dcb 100644 --- a/server/src/core/@generated/comment/update-many-comment.args.ts +++ b/server/src/core/@generated/comment/update-many-comment.args.ts @@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { CommentUpdateManyMutationInput } from './comment-update-many-mutation.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; import { CommentWhereInput } from './comment-where.input'; @ArgsType() @@ -9,6 +10,8 @@ export class UpdateManyCommentArgs { @Field(() => CommentUpdateManyMutationInput, {nullable:false}) @Type(() => CommentUpdateManyMutationInput) + @ValidateNested({each: true}) + @Type(() => CommentUpdateManyMutationInput) data!: CommentUpdateManyMutationInput; @Field(() => CommentWhereInput, {nullable:true}) diff --git a/server/src/core/@generated/comment/update-one-comment.args.ts b/server/src/core/@generated/comment/update-one-comment.args.ts index 9acbfba6052..efeb6180f87 100644 --- a/server/src/core/@generated/comment/update-one-comment.args.ts +++ b/server/src/core/@generated/comment/update-one-comment.args.ts @@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { CommentUpdateInput } from './comment-update.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; import { CommentWhereUniqueInput } from './comment-where-unique.input'; @ArgsType() @@ -9,6 +10,8 @@ export class UpdateOneCommentArgs { @Field(() => CommentUpdateInput, {nullable:false}) @Type(() => CommentUpdateInput) + @ValidateNested({each: true}) + @Type(() => CommentUpdateInput) data!: CommentUpdateInput; @Field(() => CommentWhereUniqueInput, {nullable:false}) diff --git a/server/src/core/@generated/company/company-count-aggregate.input.ts b/server/src/core/@generated/company/company-count-aggregate.input.ts index edd42fd9fdf..14f2f92d044 100644 --- a/server/src/core/@generated/company/company-count-aggregate.input.ts +++ b/server/src/core/@generated/company/company-count-aggregate.input.ts @@ -8,15 +8,6 @@ export class CompanyCountAggregateInput { @Field(() => Boolean, {nullable:true}) id?: true; - @Field(() => Boolean, {nullable:true}) - createdAt?: true; - - @Field(() => Boolean, {nullable:true}) - updatedAt?: true; - - @Field(() => Boolean, {nullable:true}) - deletedAt?: true; - @Field(() => Boolean, {nullable:true}) name?: true; @@ -35,6 +26,15 @@ export class CompanyCountAggregateInput { @HideField() workspaceId?: true; + @HideField() + deletedAt?: true; + + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; + @Field(() => Boolean, {nullable:true}) _all?: true; } diff --git a/server/src/core/@generated/company/company-count-aggregate.output.ts b/server/src/core/@generated/company/company-count-aggregate.output.ts index 774516c120c..143cc0700ce 100644 --- a/server/src/core/@generated/company/company-count-aggregate.output.ts +++ b/server/src/core/@generated/company/company-count-aggregate.output.ts @@ -1,6 +1,7 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; import { Int } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @ObjectType() @@ -9,15 +10,6 @@ export class CompanyCountAggregate { @Field(() => Int, {nullable:false}) id!: number; - @Field(() => Int, {nullable:false}) - createdAt!: number; - - @Field(() => Int, {nullable:false}) - updatedAt!: number; - - @Field(() => Int, {nullable:false}) - deletedAt!: number; - @Field(() => Int, {nullable:false}) name!: number; @@ -28,6 +20,8 @@ export class CompanyCountAggregate { address!: number; @Field(() => Int, {nullable:false}) + @Validator.IsNumber() + @Validator.IsOptional() employees!: number; @Field(() => Int, {nullable:false}) @@ -36,6 +30,15 @@ export class CompanyCountAggregate { @HideField() workspaceId!: number; + @HideField() + deletedAt!: number; + + @Field(() => Int, {nullable:false}) + createdAt!: number; + + @Field(() => Int, {nullable:false}) + updatedAt!: number; + @Field(() => Int, {nullable:false}) _all!: number; } diff --git a/server/src/core/@generated/company/company-count-order-by-aggregate.input.ts b/server/src/core/@generated/company/company-count-order-by-aggregate.input.ts index e1b1e1d1ca8..75597cb1411 100644 --- a/server/src/core/@generated/company/company-count-order-by-aggregate.input.ts +++ b/server/src/core/@generated/company/company-count-order-by-aggregate.input.ts @@ -9,15 +9,6 @@ export class CompanyCountOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) name?: keyof typeof SortOrder; @@ -35,4 +26,13 @@ export class CompanyCountOrderByAggregateInput { @HideField() workspaceId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/company/company-create-many-account-owner.input.ts b/server/src/core/@generated/company/company-create-many-account-owner.input.ts index 6f32dd1be89..99c968e8340 100644 --- a/server/src/core/@generated/company/company-create-many-account-owner.input.ts +++ b/server/src/core/@generated/company/company-create-many-account-owner.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { Int } from '@nestjs/graphql'; import { HideField } from '@nestjs/graphql'; @@ -7,29 +8,36 @@ import { HideField } from '@nestjs/graphql'; export class CompanyCreateManyAccountOwnerInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + name!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + address!: string; + + @Field(() => Int, {nullable:true}) + @Validator.IsNumber() + @Validator.IsOptional() + employees?: number; + + @HideField() + workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - name!: string; - - @Field(() => String, {nullable:false}) - domainName!: string; - - @Field(() => String, {nullable:false}) - address!: string; - - @Field(() => Int, {nullable:true}) - employees?: number; - - @HideField() - workspaceId!: string; } diff --git a/server/src/core/@generated/company/company-create-many-workspace.input.ts b/server/src/core/@generated/company/company-create-many-workspace.input.ts index fbfaee755cf..3f763511ab9 100644 --- a/server/src/core/@generated/company/company-create-many-workspace.input.ts +++ b/server/src/core/@generated/company/company-create-many-workspace.input.ts @@ -1,34 +1,43 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { Int } from '@nestjs/graphql'; +import { HideField } from '@nestjs/graphql'; @InputType() export class CompanyCreateManyWorkspaceInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + name!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + address!: string; + + @Field(() => Int, {nullable:true}) + @Validator.IsNumber() + @Validator.IsOptional() + employees?: number; + + @Field(() => String, {nullable:true}) + accountOwnerId?: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - name!: string; - - @Field(() => String, {nullable:false}) - domainName!: string; - - @Field(() => String, {nullable:false}) - address!: string; - - @Field(() => Int, {nullable:true}) - employees?: number; - - @Field(() => String, {nullable:true}) - accountOwnerId?: string; } diff --git a/server/src/core/@generated/company/company-create-many.input.ts b/server/src/core/@generated/company/company-create-many.input.ts index a1a6105d634..b161afb742f 100644 --- a/server/src/core/@generated/company/company-create-many.input.ts +++ b/server/src/core/@generated/company/company-create-many.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { Int } from '@nestjs/graphql'; import { HideField } from '@nestjs/graphql'; @@ -7,27 +8,25 @@ import { HideField } from '@nestjs/graphql'; export class CompanyCreateManyInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:false}) + @Validator.IsString() name!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() domainName!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() address!: string; @Field(() => Int, {nullable:true}) + @Validator.IsNumber() + @Validator.IsOptional() employees?: number; @Field(() => String, {nullable:true}) @@ -35,4 +34,13 @@ export class CompanyCreateManyInput { @HideField() workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/company/company-create-without-account-owner.input.ts b/server/src/core/@generated/company/company-create-without-account-owner.input.ts index d8c0650465b..d352a6e6a3b 100644 --- a/server/src/core/@generated/company/company-create-without-account-owner.input.ts +++ b/server/src/core/@generated/company/company-create-without-account-owner.input.ts @@ -1,37 +1,45 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { Int } from '@nestjs/graphql'; +import { HideField } from '@nestjs/graphql'; import { PersonCreateNestedManyWithoutCompanyInput } from '../person/person-create-nested-many-without-company.input'; import { WorkspaceCreateNestedOneWithoutCompaniesInput } from '../workspace/workspace-create-nested-one-without-companies.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class CompanyCreateWithoutAccountOwnerInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + name!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + address!: string; + + @Field(() => Int, {nullable:true}) + @Validator.IsNumber() + @Validator.IsOptional() + employees?: number; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - name!: string; - - @Field(() => String, {nullable:false}) - domainName!: string; - - @Field(() => String, {nullable:false}) - address!: string; - - @Field(() => Int, {nullable:true}) - employees?: number; - @Field(() => PersonCreateNestedManyWithoutCompanyInput, {nullable:true}) people?: PersonCreateNestedManyWithoutCompanyInput; diff --git a/server/src/core/@generated/company/company-create-without-people.input.ts b/server/src/core/@generated/company/company-create-without-people.input.ts index 40008fb2a8d..c65208cacee 100644 --- a/server/src/core/@generated/company/company-create-without-people.input.ts +++ b/server/src/core/@generated/company/company-create-without-people.input.ts @@ -1,37 +1,45 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { Int } from '@nestjs/graphql'; +import { HideField } from '@nestjs/graphql'; import { UserCreateNestedOneWithoutCompaniesInput } from '../user/user-create-nested-one-without-companies.input'; import { WorkspaceCreateNestedOneWithoutCompaniesInput } from '../workspace/workspace-create-nested-one-without-companies.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class CompanyCreateWithoutPeopleInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + name!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + address!: string; + + @Field(() => Int, {nullable:true}) + @Validator.IsNumber() + @Validator.IsOptional() + employees?: number; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - name!: string; - - @Field(() => String, {nullable:false}) - domainName!: string; - - @Field(() => String, {nullable:false}) - address!: string; - - @Field(() => Int, {nullable:true}) - employees?: number; - @Field(() => UserCreateNestedOneWithoutCompaniesInput, {nullable:true}) accountOwner?: UserCreateNestedOneWithoutCompaniesInput; diff --git a/server/src/core/@generated/company/company-create-without-workspace.input.ts b/server/src/core/@generated/company/company-create-without-workspace.input.ts index c7cf57141ee..7b0603117fe 100644 --- a/server/src/core/@generated/company/company-create-without-workspace.input.ts +++ b/server/src/core/@generated/company/company-create-without-workspace.input.ts @@ -1,39 +1,48 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { Int } from '@nestjs/graphql'; -import { UserCreateNestedOneWithoutCompaniesInput } from '../user/user-create-nested-one-without-companies.input'; +import { HideField } from '@nestjs/graphql'; import { PersonCreateNestedManyWithoutCompanyInput } from '../person/person-create-nested-many-without-company.input'; +import { UserCreateNestedOneWithoutCompaniesInput } from '../user/user-create-nested-one-without-companies.input'; @InputType() export class CompanyCreateWithoutWorkspaceInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + name!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + address!: string; + + @Field(() => Int, {nullable:true}) + @Validator.IsNumber() + @Validator.IsOptional() + employees?: number; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - name!: string; - - @Field(() => String, {nullable:false}) - domainName!: string; - - @Field(() => String, {nullable:false}) - address!: string; - - @Field(() => Int, {nullable:true}) - employees?: number; + @Field(() => PersonCreateNestedManyWithoutCompanyInput, {nullable:true}) + people?: PersonCreateNestedManyWithoutCompanyInput; @Field(() => UserCreateNestedOneWithoutCompaniesInput, {nullable:true}) accountOwner?: UserCreateNestedOneWithoutCompaniesInput; - - @Field(() => PersonCreateNestedManyWithoutCompanyInput, {nullable:true}) - people?: PersonCreateNestedManyWithoutCompanyInput; } diff --git a/server/src/core/@generated/company/company-create.input.ts b/server/src/core/@generated/company/company-create.input.ts index be0c6b51b39..d508b8860a1 100644 --- a/server/src/core/@generated/company/company-create.input.ts +++ b/server/src/core/@generated/company/company-create.input.ts @@ -1,44 +1,52 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { Int } from '@nestjs/graphql'; -import { UserCreateNestedOneWithoutCompaniesInput } from '../user/user-create-nested-one-without-companies.input'; -import { PersonCreateNestedManyWithoutCompanyInput } from '../person/person-create-nested-many-without-company.input'; -import { WorkspaceCreateNestedOneWithoutCompaniesInput } from '../workspace/workspace-create-nested-one-without-companies.input'; import { HideField } from '@nestjs/graphql'; +import { PersonCreateNestedManyWithoutCompanyInput } from '../person/person-create-nested-many-without-company.input'; +import { UserCreateNestedOneWithoutCompaniesInput } from '../user/user-create-nested-one-without-companies.input'; +import { WorkspaceCreateNestedOneWithoutCompaniesInput } from '../workspace/workspace-create-nested-one-without-companies.input'; @InputType() export class CompanyCreateInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + name!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + address!: string; + + @Field(() => Int, {nullable:true}) + @Validator.IsNumber() + @Validator.IsOptional() + employees?: number; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - name!: string; - - @Field(() => String, {nullable:false}) - domainName!: string; - - @Field(() => String, {nullable:false}) - address!: string; - - @Field(() => Int, {nullable:true}) - employees?: number; + @Field(() => PersonCreateNestedManyWithoutCompanyInput, {nullable:true}) + people?: PersonCreateNestedManyWithoutCompanyInput; @Field(() => UserCreateNestedOneWithoutCompaniesInput, {nullable:true}) accountOwner?: UserCreateNestedOneWithoutCompaniesInput; - @Field(() => PersonCreateNestedManyWithoutCompanyInput, {nullable:true}) - people?: PersonCreateNestedManyWithoutCompanyInput; - @HideField() workspace!: WorkspaceCreateNestedOneWithoutCompaniesInput; } diff --git a/server/src/core/@generated/company/company-group-by.output.ts b/server/src/core/@generated/company/company-group-by.output.ts index 88d96b91308..8762da2d9f1 100644 --- a/server/src/core/@generated/company/company-group-by.output.ts +++ b/server/src/core/@generated/company/company-group-by.output.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { Int } from '@nestjs/graphql'; import { HideField } from '@nestjs/graphql'; import { CompanyCountAggregate } from './company-count-aggregate.output'; @@ -12,27 +13,25 @@ import { CompanyMaxAggregate } from './company-max-aggregate.output'; export class CompanyGroupBy { @Field(() => String, {nullable:false}) + @Validator.IsString() + @Validator.IsOptional() id!: string; - @Field(() => Date, {nullable:false}) - createdAt!: Date | string; - - @Field(() => Date, {nullable:false}) - updatedAt!: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:false}) + @Validator.IsString() name!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() domainName!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() address!: string; @Field(() => Int, {nullable:true}) + @Validator.IsNumber() + @Validator.IsOptional() employees?: number; @Field(() => String, {nullable:true}) @@ -41,6 +40,15 @@ export class CompanyGroupBy { @HideField() workspaceId!: string; + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:false}) + createdAt!: Date | string; + + @Field(() => Date, {nullable:false}) + updatedAt!: Date | string; + @Field(() => CompanyCountAggregate, {nullable:true}) _count?: CompanyCountAggregate; diff --git a/server/src/core/@generated/company/company-max-aggregate.input.ts b/server/src/core/@generated/company/company-max-aggregate.input.ts index b9a58dbd54b..87e3d8fd705 100644 --- a/server/src/core/@generated/company/company-max-aggregate.input.ts +++ b/server/src/core/@generated/company/company-max-aggregate.input.ts @@ -8,15 +8,6 @@ export class CompanyMaxAggregateInput { @Field(() => Boolean, {nullable:true}) id?: true; - @Field(() => Boolean, {nullable:true}) - createdAt?: true; - - @Field(() => Boolean, {nullable:true}) - updatedAt?: true; - - @Field(() => Boolean, {nullable:true}) - deletedAt?: true; - @Field(() => Boolean, {nullable:true}) name?: true; @@ -34,4 +25,13 @@ export class CompanyMaxAggregateInput { @HideField() workspaceId?: true; + + @HideField() + deletedAt?: true; + + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; } diff --git a/server/src/core/@generated/company/company-max-aggregate.output.ts b/server/src/core/@generated/company/company-max-aggregate.output.ts index 9fe89100848..c7e4574c036 100644 --- a/server/src/core/@generated/company/company-max-aggregate.output.ts +++ b/server/src/core/@generated/company/company-max-aggregate.output.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { Int } from '@nestjs/graphql'; import { HideField } from '@nestjs/graphql'; @@ -7,27 +8,25 @@ import { HideField } from '@nestjs/graphql'; export class CompanyMaxAggregate { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:true}) + @Validator.IsString() name?: string; @Field(() => String, {nullable:true}) + @Validator.IsString() domainName?: string; @Field(() => String, {nullable:true}) + @Validator.IsString() address?: string; @Field(() => Int, {nullable:true}) + @Validator.IsNumber() + @Validator.IsOptional() employees?: number; @Field(() => String, {nullable:true}) @@ -35,4 +34,13 @@ export class CompanyMaxAggregate { @HideField() workspaceId?: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/company/company-max-order-by-aggregate.input.ts b/server/src/core/@generated/company/company-max-order-by-aggregate.input.ts index 7f7876ca89e..b0d279c547e 100644 --- a/server/src/core/@generated/company/company-max-order-by-aggregate.input.ts +++ b/server/src/core/@generated/company/company-max-order-by-aggregate.input.ts @@ -9,15 +9,6 @@ export class CompanyMaxOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) name?: keyof typeof SortOrder; @@ -35,4 +26,13 @@ export class CompanyMaxOrderByAggregateInput { @HideField() workspaceId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/company/company-min-aggregate.input.ts b/server/src/core/@generated/company/company-min-aggregate.input.ts index e9a1e94c4a9..acd3cf7d16c 100644 --- a/server/src/core/@generated/company/company-min-aggregate.input.ts +++ b/server/src/core/@generated/company/company-min-aggregate.input.ts @@ -8,15 +8,6 @@ export class CompanyMinAggregateInput { @Field(() => Boolean, {nullable:true}) id?: true; - @Field(() => Boolean, {nullable:true}) - createdAt?: true; - - @Field(() => Boolean, {nullable:true}) - updatedAt?: true; - - @Field(() => Boolean, {nullable:true}) - deletedAt?: true; - @Field(() => Boolean, {nullable:true}) name?: true; @@ -34,4 +25,13 @@ export class CompanyMinAggregateInput { @HideField() workspaceId?: true; + + @HideField() + deletedAt?: true; + + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; } diff --git a/server/src/core/@generated/company/company-min-aggregate.output.ts b/server/src/core/@generated/company/company-min-aggregate.output.ts index 6e0242e07d5..74ce0909fad 100644 --- a/server/src/core/@generated/company/company-min-aggregate.output.ts +++ b/server/src/core/@generated/company/company-min-aggregate.output.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { Int } from '@nestjs/graphql'; import { HideField } from '@nestjs/graphql'; @@ -7,27 +8,25 @@ import { HideField } from '@nestjs/graphql'; export class CompanyMinAggregate { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:true}) + @Validator.IsString() name?: string; @Field(() => String, {nullable:true}) + @Validator.IsString() domainName?: string; @Field(() => String, {nullable:true}) + @Validator.IsString() address?: string; @Field(() => Int, {nullable:true}) + @Validator.IsNumber() + @Validator.IsOptional() employees?: number; @Field(() => String, {nullable:true}) @@ -35,4 +34,13 @@ export class CompanyMinAggregate { @HideField() workspaceId?: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/company/company-min-order-by-aggregate.input.ts b/server/src/core/@generated/company/company-min-order-by-aggregate.input.ts index 607747cd3f8..885fe8f3a15 100644 --- a/server/src/core/@generated/company/company-min-order-by-aggregate.input.ts +++ b/server/src/core/@generated/company/company-min-order-by-aggregate.input.ts @@ -9,15 +9,6 @@ export class CompanyMinOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) name?: keyof typeof SortOrder; @@ -35,4 +26,13 @@ export class CompanyMinOrderByAggregateInput { @HideField() workspaceId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/company/company-order-by-with-aggregation.input.ts b/server/src/core/@generated/company/company-order-by-with-aggregation.input.ts index 1f84156e05c..fea90cb8149 100644 --- a/server/src/core/@generated/company/company-order-by-with-aggregation.input.ts +++ b/server/src/core/@generated/company/company-order-by-with-aggregation.input.ts @@ -14,15 +14,6 @@ export class CompanyOrderByWithAggregationInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) name?: keyof typeof SortOrder; @@ -41,6 +32,15 @@ export class CompanyOrderByWithAggregationInput { @HideField() workspaceId?: keyof typeof SortOrder; + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; + @Field(() => CompanyCountOrderByAggregateInput, {nullable:true}) _count?: CompanyCountOrderByAggregateInput; diff --git a/server/src/core/@generated/company/company-order-by-with-relation.input.ts b/server/src/core/@generated/company/company-order-by-with-relation.input.ts index f0cd0444f47..a7c3e8cb8d5 100644 --- a/server/src/core/@generated/company/company-order-by-with-relation.input.ts +++ b/server/src/core/@generated/company/company-order-by-with-relation.input.ts @@ -2,8 +2,8 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { SortOrder } from '../prisma/sort-order.enum'; import { HideField } from '@nestjs/graphql'; -import { UserOrderByWithRelationInput } from '../user/user-order-by-with-relation.input'; import { PersonOrderByRelationAggregateInput } from '../person/person-order-by-relation-aggregate.input'; +import { UserOrderByWithRelationInput } from '../user/user-order-by-with-relation.input'; import { WorkspaceOrderByWithRelationInput } from '../workspace/workspace-order-by-with-relation.input'; @InputType() @@ -12,15 +12,6 @@ export class CompanyOrderByWithRelationInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) name?: keyof typeof SortOrder; @@ -39,12 +30,21 @@ export class CompanyOrderByWithRelationInput { @HideField() workspaceId?: keyof typeof SortOrder; - @Field(() => UserOrderByWithRelationInput, {nullable:true}) - accountOwner?: UserOrderByWithRelationInput; + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; @Field(() => PersonOrderByRelationAggregateInput, {nullable:true}) people?: PersonOrderByRelationAggregateInput; + @Field(() => UserOrderByWithRelationInput, {nullable:true}) + accountOwner?: UserOrderByWithRelationInput; + @HideField() workspace?: WorkspaceOrderByWithRelationInput; } diff --git a/server/src/core/@generated/company/company-scalar-field.enum.ts b/server/src/core/@generated/company/company-scalar-field.enum.ts index 89421d5cbc8..494c0c425e9 100644 --- a/server/src/core/@generated/company/company-scalar-field.enum.ts +++ b/server/src/core/@generated/company/company-scalar-field.enum.ts @@ -2,15 +2,15 @@ import { registerEnumType } from '@nestjs/graphql'; export enum CompanyScalarFieldEnum { id = "id", - createdAt = "createdAt", - updatedAt = "updatedAt", - deletedAt = "deletedAt", name = "name", domainName = "domainName", address = "address", employees = "employees", accountOwnerId = "accountOwnerId", - workspaceId = "workspaceId" + workspaceId = "workspaceId", + deletedAt = "deletedAt", + createdAt = "createdAt", + updatedAt = "updatedAt" } diff --git a/server/src/core/@generated/company/company-scalar-where-with-aggregates.input.ts b/server/src/core/@generated/company/company-scalar-where-with-aggregates.input.ts index c0cbd950acf..1f1f9f0017d 100644 --- a/server/src/core/@generated/company/company-scalar-where-with-aggregates.input.ts +++ b/server/src/core/@generated/company/company-scalar-where-with-aggregates.input.ts @@ -1,11 +1,11 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringWithAggregatesFilter } from '../prisma/string-with-aggregates-filter.input'; -import { DateTimeWithAggregatesFilter } from '../prisma/date-time-with-aggregates-filter.input'; -import { DateTimeNullableWithAggregatesFilter } from '../prisma/date-time-nullable-with-aggregates-filter.input'; import { IntNullableWithAggregatesFilter } from '../prisma/int-nullable-with-aggregates-filter.input'; import { StringNullableWithAggregatesFilter } from '../prisma/string-nullable-with-aggregates-filter.input'; import { HideField } from '@nestjs/graphql'; +import { DateTimeNullableWithAggregatesFilter } from '../prisma/date-time-nullable-with-aggregates-filter.input'; +import { DateTimeWithAggregatesFilter } from '../prisma/date-time-with-aggregates-filter.input'; @InputType() export class CompanyScalarWhereWithAggregatesInput { @@ -22,15 +22,6 @@ export class CompanyScalarWhereWithAggregatesInput { @Field(() => StringWithAggregatesFilter, {nullable:true}) id?: StringWithAggregatesFilter; - @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) - createdAt?: DateTimeWithAggregatesFilter; - - @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) - updatedAt?: DateTimeWithAggregatesFilter; - - @Field(() => DateTimeNullableWithAggregatesFilter, {nullable:true}) - deletedAt?: DateTimeNullableWithAggregatesFilter; - @Field(() => StringWithAggregatesFilter, {nullable:true}) name?: StringWithAggregatesFilter; @@ -48,4 +39,13 @@ export class CompanyScalarWhereWithAggregatesInput { @HideField() workspaceId?: StringWithAggregatesFilter; + + @HideField() + deletedAt?: DateTimeNullableWithAggregatesFilter; + + @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) + createdAt?: DateTimeWithAggregatesFilter; + + @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) + updatedAt?: DateTimeWithAggregatesFilter; } diff --git a/server/src/core/@generated/company/company-scalar-where.input.ts b/server/src/core/@generated/company/company-scalar-where.input.ts index b6386634f48..683d80cd059 100644 --- a/server/src/core/@generated/company/company-scalar-where.input.ts +++ b/server/src/core/@generated/company/company-scalar-where.input.ts @@ -1,11 +1,11 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFilter } from '../prisma/string-filter.input'; -import { DateTimeFilter } from '../prisma/date-time-filter.input'; -import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; import { IntNullableFilter } from '../prisma/int-nullable-filter.input'; import { StringNullableFilter } from '../prisma/string-nullable-filter.input'; import { HideField } from '@nestjs/graphql'; +import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; +import { DateTimeFilter } from '../prisma/date-time-filter.input'; @InputType() export class CompanyScalarWhereInput { @@ -22,15 +22,6 @@ export class CompanyScalarWhereInput { @Field(() => StringFilter, {nullable:true}) id?: StringFilter; - @Field(() => DateTimeFilter, {nullable:true}) - createdAt?: DateTimeFilter; - - @Field(() => DateTimeFilter, {nullable:true}) - updatedAt?: DateTimeFilter; - - @Field(() => DateTimeNullableFilter, {nullable:true}) - deletedAt?: DateTimeNullableFilter; - @Field(() => StringFilter, {nullable:true}) name?: StringFilter; @@ -48,4 +39,13 @@ export class CompanyScalarWhereInput { @HideField() workspaceId?: StringFilter; + + @HideField() + deletedAt?: DateTimeNullableFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + createdAt?: DateTimeFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + updatedAt?: DateTimeFilter; } diff --git a/server/src/core/@generated/company/company-sum-aggregate.output.ts b/server/src/core/@generated/company/company-sum-aggregate.output.ts index 07a3c298b98..58c960c435c 100644 --- a/server/src/core/@generated/company/company-sum-aggregate.output.ts +++ b/server/src/core/@generated/company/company-sum-aggregate.output.ts @@ -1,10 +1,13 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; import { Int } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; @ObjectType() export class CompanySumAggregate { @Field(() => Int, {nullable:true}) + @Validator.IsNumber() + @Validator.IsOptional() employees?: number; } diff --git a/server/src/core/@generated/company/company-unchecked-create-without-account-owner.input.ts b/server/src/core/@generated/company/company-unchecked-create-without-account-owner.input.ts index 907fbd584ee..40ae7579fb2 100644 --- a/server/src/core/@generated/company/company-unchecked-create-without-account-owner.input.ts +++ b/server/src/core/@generated/company/company-unchecked-create-without-account-owner.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { Int } from '@nestjs/graphql'; import { HideField } from '@nestjs/graphql'; import { PersonUncheckedCreateNestedManyWithoutCompanyInput } from '../person/person-unchecked-create-nested-many-without-company.input'; @@ -8,32 +9,39 @@ import { PersonUncheckedCreateNestedManyWithoutCompanyInput } from '../person/pe export class CompanyUncheckedCreateWithoutAccountOwnerInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + name!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + address!: string; + + @Field(() => Int, {nullable:true}) + @Validator.IsNumber() + @Validator.IsOptional() + employees?: number; + + @HideField() + workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - name!: string; - - @Field(() => String, {nullable:false}) - domainName!: string; - - @Field(() => String, {nullable:false}) - address!: string; - - @Field(() => Int, {nullable:true}) - employees?: number; - - @HideField() - workspaceId!: string; - @Field(() => PersonUncheckedCreateNestedManyWithoutCompanyInput, {nullable:true}) people?: PersonUncheckedCreateNestedManyWithoutCompanyInput; } diff --git a/server/src/core/@generated/company/company-unchecked-create-without-people.input.ts b/server/src/core/@generated/company/company-unchecked-create-without-people.input.ts index 69e0e855d48..4e5e00e2ef7 100644 --- a/server/src/core/@generated/company/company-unchecked-create-without-people.input.ts +++ b/server/src/core/@generated/company/company-unchecked-create-without-people.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { Int } from '@nestjs/graphql'; import { HideField } from '@nestjs/graphql'; @@ -7,27 +8,25 @@ import { HideField } from '@nestjs/graphql'; export class CompanyUncheckedCreateWithoutPeopleInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:false}) + @Validator.IsString() name!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() domainName!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() address!: string; @Field(() => Int, {nullable:true}) + @Validator.IsNumber() + @Validator.IsOptional() employees?: number; @Field(() => String, {nullable:true}) @@ -35,4 +34,13 @@ export class CompanyUncheckedCreateWithoutPeopleInput { @HideField() workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/company/company-unchecked-create-without-workspace.input.ts b/server/src/core/@generated/company/company-unchecked-create-without-workspace.input.ts index d7a53c693d0..1b9e18d9ab1 100644 --- a/server/src/core/@generated/company/company-unchecked-create-without-workspace.input.ts +++ b/server/src/core/@generated/company/company-unchecked-create-without-workspace.input.ts @@ -1,38 +1,47 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { Int } from '@nestjs/graphql'; +import { HideField } from '@nestjs/graphql'; import { PersonUncheckedCreateNestedManyWithoutCompanyInput } from '../person/person-unchecked-create-nested-many-without-company.input'; @InputType() export class CompanyUncheckedCreateWithoutWorkspaceInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + name!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + address!: string; + + @Field(() => Int, {nullable:true}) + @Validator.IsNumber() + @Validator.IsOptional() + employees?: number; + + @Field(() => String, {nullable:true}) + accountOwnerId?: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - name!: string; - - @Field(() => String, {nullable:false}) - domainName!: string; - - @Field(() => String, {nullable:false}) - address!: string; - - @Field(() => Int, {nullable:true}) - employees?: number; - - @Field(() => String, {nullable:true}) - accountOwnerId?: string; - @Field(() => PersonUncheckedCreateNestedManyWithoutCompanyInput, {nullable:true}) people?: PersonUncheckedCreateNestedManyWithoutCompanyInput; } diff --git a/server/src/core/@generated/company/company-unchecked-create.input.ts b/server/src/core/@generated/company/company-unchecked-create.input.ts index 7149b35b664..470901b957f 100644 --- a/server/src/core/@generated/company/company-unchecked-create.input.ts +++ b/server/src/core/@generated/company/company-unchecked-create.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { Int } from '@nestjs/graphql'; import { HideField } from '@nestjs/graphql'; import { PersonUncheckedCreateNestedManyWithoutCompanyInput } from '../person/person-unchecked-create-nested-many-without-company.input'; @@ -8,27 +9,25 @@ import { PersonUncheckedCreateNestedManyWithoutCompanyInput } from '../person/pe export class CompanyUncheckedCreateInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:false}) + @Validator.IsString() name!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() domainName!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() address!: string; @Field(() => Int, {nullable:true}) + @Validator.IsNumber() + @Validator.IsOptional() employees?: number; @Field(() => String, {nullable:true}) @@ -37,6 +36,15 @@ export class CompanyUncheckedCreateInput { @HideField() workspaceId!: string; + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; + @Field(() => PersonUncheckedCreateNestedManyWithoutCompanyInput, {nullable:true}) people?: PersonUncheckedCreateNestedManyWithoutCompanyInput; } diff --git a/server/src/core/@generated/company/company-unchecked-update-many-without-companies.input.ts b/server/src/core/@generated/company/company-unchecked-update-many-without-companies.input.ts index aca3e00215c..2be597cc2b9 100644 --- a/server/src/core/@generated/company/company-unchecked-update-many-without-companies.input.ts +++ b/server/src/core/@generated/company/company-unchecked-update-many-without-companies.input.ts @@ -1,10 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class CompanyUncheckedUpdateManyWithoutCompaniesInput { @@ -12,15 +12,6 @@ export class CompanyUncheckedUpdateManyWithoutCompaniesInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) name?: StringFieldUpdateOperationsInput; @@ -35,4 +26,13 @@ export class CompanyUncheckedUpdateManyWithoutCompaniesInput { @HideField() workspaceId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/company/company-unchecked-update-many.input.ts b/server/src/core/@generated/company/company-unchecked-update-many.input.ts index dbcdad23a10..23ab8f677d9 100644 --- a/server/src/core/@generated/company/company-unchecked-update-many.input.ts +++ b/server/src/core/@generated/company/company-unchecked-update-many.input.ts @@ -1,11 +1,11 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class CompanyUncheckedUpdateManyInput { @@ -13,15 +13,6 @@ export class CompanyUncheckedUpdateManyInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) name?: StringFieldUpdateOperationsInput; @@ -39,4 +30,13 @@ export class CompanyUncheckedUpdateManyInput { @HideField() workspaceId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/company/company-unchecked-update-without-account-owner.input.ts b/server/src/core/@generated/company/company-unchecked-update-without-account-owner.input.ts index 5655bc9e713..f51071546dd 100644 --- a/server/src/core/@generated/company/company-unchecked-update-without-account-owner.input.ts +++ b/server/src/core/@generated/company/company-unchecked-update-without-account-owner.input.ts @@ -1,10 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { PersonUncheckedUpdateManyWithoutCompanyNestedInput } from '../person/person-unchecked-update-many-without-company-nested.input'; @InputType() @@ -13,15 +13,6 @@ export class CompanyUncheckedUpdateWithoutAccountOwnerInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) name?: StringFieldUpdateOperationsInput; @@ -37,6 +28,15 @@ export class CompanyUncheckedUpdateWithoutAccountOwnerInput { @HideField() workspaceId?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => PersonUncheckedUpdateManyWithoutCompanyNestedInput, {nullable:true}) people?: PersonUncheckedUpdateManyWithoutCompanyNestedInput; } diff --git a/server/src/core/@generated/company/company-unchecked-update-without-people.input.ts b/server/src/core/@generated/company/company-unchecked-update-without-people.input.ts index a4fb6ac870c..2604c538722 100644 --- a/server/src/core/@generated/company/company-unchecked-update-without-people.input.ts +++ b/server/src/core/@generated/company/company-unchecked-update-without-people.input.ts @@ -1,11 +1,11 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class CompanyUncheckedUpdateWithoutPeopleInput { @@ -13,15 +13,6 @@ export class CompanyUncheckedUpdateWithoutPeopleInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) name?: StringFieldUpdateOperationsInput; @@ -39,4 +30,13 @@ export class CompanyUncheckedUpdateWithoutPeopleInput { @HideField() workspaceId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/company/company-unchecked-update-without-workspace.input.ts b/server/src/core/@generated/company/company-unchecked-update-without-workspace.input.ts index 2ce6fdcfb21..f9fa9a7f54b 100644 --- a/server/src/core/@generated/company/company-unchecked-update-without-workspace.input.ts +++ b/server/src/core/@generated/company/company-unchecked-update-without-workspace.input.ts @@ -1,10 +1,11 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { PersonUncheckedUpdateManyWithoutCompanyNestedInput } from '../person/person-unchecked-update-many-without-company-nested.input'; @InputType() @@ -13,15 +14,6 @@ export class CompanyUncheckedUpdateWithoutWorkspaceInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) name?: StringFieldUpdateOperationsInput; @@ -37,6 +29,15 @@ export class CompanyUncheckedUpdateWithoutWorkspaceInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) accountOwnerId?: NullableStringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => PersonUncheckedUpdateManyWithoutCompanyNestedInput, {nullable:true}) people?: PersonUncheckedUpdateManyWithoutCompanyNestedInput; } diff --git a/server/src/core/@generated/company/company-unchecked-update.input.ts b/server/src/core/@generated/company/company-unchecked-update.input.ts index da95621db94..87f784af2f9 100644 --- a/server/src/core/@generated/company/company-unchecked-update.input.ts +++ b/server/src/core/@generated/company/company-unchecked-update.input.ts @@ -1,11 +1,11 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { PersonUncheckedUpdateManyWithoutCompanyNestedInput } from '../person/person-unchecked-update-many-without-company-nested.input'; @InputType() @@ -14,15 +14,6 @@ export class CompanyUncheckedUpdateInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) name?: StringFieldUpdateOperationsInput; @@ -41,6 +32,15 @@ export class CompanyUncheckedUpdateInput { @HideField() workspaceId?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => PersonUncheckedUpdateManyWithoutCompanyNestedInput, {nullable:true}) people?: PersonUncheckedUpdateManyWithoutCompanyNestedInput; } diff --git a/server/src/core/@generated/company/company-update-many-mutation.input.ts b/server/src/core/@generated/company/company-update-many-mutation.input.ts index 3711a3e0d39..1080028441a 100644 --- a/server/src/core/@generated/company/company-update-many-mutation.input.ts +++ b/server/src/core/@generated/company/company-update-many-mutation.input.ts @@ -1,9 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class CompanyUpdateManyMutationInput { @@ -11,15 +12,6 @@ export class CompanyUpdateManyMutationInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) name?: StringFieldUpdateOperationsInput; @@ -31,4 +23,13 @@ export class CompanyUpdateManyMutationInput { @Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true}) employees?: NullableIntFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/company/company-update-without-account-owner.input.ts b/server/src/core/@generated/company/company-update-without-account-owner.input.ts index 2acca14bcaa..50c39c01098 100644 --- a/server/src/core/@generated/company/company-update-without-account-owner.input.ts +++ b/server/src/core/@generated/company/company-update-without-account-owner.input.ts @@ -1,12 +1,12 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { PersonUpdateManyWithoutCompanyNestedInput } from '../person/person-update-many-without-company-nested.input'; import { WorkspaceUpdateOneRequiredWithoutCompaniesNestedInput } from '../workspace/workspace-update-one-required-without-companies-nested.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class CompanyUpdateWithoutAccountOwnerInput { @@ -14,15 +14,6 @@ export class CompanyUpdateWithoutAccountOwnerInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) name?: StringFieldUpdateOperationsInput; @@ -35,6 +26,15 @@ export class CompanyUpdateWithoutAccountOwnerInput { @Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true}) employees?: NullableIntFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => PersonUpdateManyWithoutCompanyNestedInput, {nullable:true}) people?: PersonUpdateManyWithoutCompanyNestedInput; diff --git a/server/src/core/@generated/company/company-update-without-people.input.ts b/server/src/core/@generated/company/company-update-without-people.input.ts index 696c414e79a..7eac96e732d 100644 --- a/server/src/core/@generated/company/company-update-without-people.input.ts +++ b/server/src/core/@generated/company/company-update-without-people.input.ts @@ -1,12 +1,12 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { UserUpdateOneWithoutCompaniesNestedInput } from '../user/user-update-one-without-companies-nested.input'; import { WorkspaceUpdateOneRequiredWithoutCompaniesNestedInput } from '../workspace/workspace-update-one-required-without-companies-nested.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class CompanyUpdateWithoutPeopleInput { @@ -14,15 +14,6 @@ export class CompanyUpdateWithoutPeopleInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) name?: StringFieldUpdateOperationsInput; @@ -35,6 +26,15 @@ export class CompanyUpdateWithoutPeopleInput { @Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true}) employees?: NullableIntFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => UserUpdateOneWithoutCompaniesNestedInput, {nullable:true}) accountOwner?: UserUpdateOneWithoutCompaniesNestedInput; diff --git a/server/src/core/@generated/company/company-update-without-workspace.input.ts b/server/src/core/@generated/company/company-update-without-workspace.input.ts index 4463b2f2434..34087ae04f5 100644 --- a/server/src/core/@generated/company/company-update-without-workspace.input.ts +++ b/server/src/core/@generated/company/company-update-without-workspace.input.ts @@ -1,11 +1,12 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input'; -import { UserUpdateOneWithoutCompaniesNestedInput } from '../user/user-update-one-without-companies-nested.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { PersonUpdateManyWithoutCompanyNestedInput } from '../person/person-update-many-without-company-nested.input'; +import { UserUpdateOneWithoutCompaniesNestedInput } from '../user/user-update-one-without-companies-nested.input'; @InputType() export class CompanyUpdateWithoutWorkspaceInput { @@ -13,15 +14,6 @@ export class CompanyUpdateWithoutWorkspaceInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) name?: StringFieldUpdateOperationsInput; @@ -34,9 +26,18 @@ export class CompanyUpdateWithoutWorkspaceInput { @Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true}) employees?: NullableIntFieldUpdateOperationsInput; - @Field(() => UserUpdateOneWithoutCompaniesNestedInput, {nullable:true}) - accountOwner?: UserUpdateOneWithoutCompaniesNestedInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; @Field(() => PersonUpdateManyWithoutCompanyNestedInput, {nullable:true}) people?: PersonUpdateManyWithoutCompanyNestedInput; + + @Field(() => UserUpdateOneWithoutCompaniesNestedInput, {nullable:true}) + accountOwner?: UserUpdateOneWithoutCompaniesNestedInput; } diff --git a/server/src/core/@generated/company/company-update.input.ts b/server/src/core/@generated/company/company-update.input.ts index 709138b24a0..3df2e6e52c2 100644 --- a/server/src/core/@generated/company/company-update.input.ts +++ b/server/src/core/@generated/company/company-update.input.ts @@ -1,13 +1,13 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input'; -import { UserUpdateOneWithoutCompaniesNestedInput } from '../user/user-update-one-without-companies-nested.input'; -import { PersonUpdateManyWithoutCompanyNestedInput } from '../person/person-update-many-without-company-nested.input'; -import { WorkspaceUpdateOneRequiredWithoutCompaniesNestedInput } from '../workspace/workspace-update-one-required-without-companies-nested.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; +import { PersonUpdateManyWithoutCompanyNestedInput } from '../person/person-update-many-without-company-nested.input'; +import { UserUpdateOneWithoutCompaniesNestedInput } from '../user/user-update-one-without-companies-nested.input'; +import { WorkspaceUpdateOneRequiredWithoutCompaniesNestedInput } from '../workspace/workspace-update-one-required-without-companies-nested.input'; @InputType() export class CompanyUpdateInput { @@ -15,15 +15,6 @@ export class CompanyUpdateInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) name?: StringFieldUpdateOperationsInput; @@ -36,12 +27,21 @@ export class CompanyUpdateInput { @Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true}) employees?: NullableIntFieldUpdateOperationsInput; - @Field(() => UserUpdateOneWithoutCompaniesNestedInput, {nullable:true}) - accountOwner?: UserUpdateOneWithoutCompaniesNestedInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; @Field(() => PersonUpdateManyWithoutCompanyNestedInput, {nullable:true}) people?: PersonUpdateManyWithoutCompanyNestedInput; + @Field(() => UserUpdateOneWithoutCompaniesNestedInput, {nullable:true}) + accountOwner?: UserUpdateOneWithoutCompaniesNestedInput; + @HideField() workspace?: WorkspaceUpdateOneRequiredWithoutCompaniesNestedInput; } diff --git a/server/src/core/@generated/company/company-where-unique.input.ts b/server/src/core/@generated/company/company-where-unique.input.ts index 32d48c782b3..a18bd04bd01 100644 --- a/server/src/core/@generated/company/company-where-unique.input.ts +++ b/server/src/core/@generated/company/company-where-unique.input.ts @@ -1,9 +1,12 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; @InputType() export class CompanyWhereUniqueInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; } diff --git a/server/src/core/@generated/company/company-where.input.ts b/server/src/core/@generated/company/company-where.input.ts index 36362ef47a2..ef56cd2236f 100644 --- a/server/src/core/@generated/company/company-where.input.ts +++ b/server/src/core/@generated/company/company-where.input.ts @@ -1,13 +1,13 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFilter } from '../prisma/string-filter.input'; -import { DateTimeFilter } from '../prisma/date-time-filter.input'; -import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; import { IntNullableFilter } from '../prisma/int-nullable-filter.input'; import { StringNullableFilter } from '../prisma/string-nullable-filter.input'; import { HideField } from '@nestjs/graphql'; -import { UserRelationFilter } from '../user/user-relation-filter.input'; +import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; +import { DateTimeFilter } from '../prisma/date-time-filter.input'; import { PersonListRelationFilter } from '../person/person-list-relation-filter.input'; +import { UserRelationFilter } from '../user/user-relation-filter.input'; import { WorkspaceRelationFilter } from '../workspace/workspace-relation-filter.input'; @InputType() @@ -25,15 +25,6 @@ export class CompanyWhereInput { @Field(() => StringFilter, {nullable:true}) id?: StringFilter; - @Field(() => DateTimeFilter, {nullable:true}) - createdAt?: DateTimeFilter; - - @Field(() => DateTimeFilter, {nullable:true}) - updatedAt?: DateTimeFilter; - - @Field(() => DateTimeNullableFilter, {nullable:true}) - deletedAt?: DateTimeNullableFilter; - @Field(() => StringFilter, {nullable:true}) name?: StringFilter; @@ -52,12 +43,21 @@ export class CompanyWhereInput { @HideField() workspaceId?: StringFilter; - @Field(() => UserRelationFilter, {nullable:true}) - accountOwner?: UserRelationFilter; + @HideField() + deletedAt?: DateTimeNullableFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + createdAt?: DateTimeFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + updatedAt?: DateTimeFilter; @Field(() => PersonListRelationFilter, {nullable:true}) people?: PersonListRelationFilter; + @Field(() => UserRelationFilter, {nullable:true}) + accountOwner?: UserRelationFilter; + @HideField() workspace?: WorkspaceRelationFilter; } diff --git a/server/src/core/@generated/company/company.model.ts b/server/src/core/@generated/company/company.model.ts index 175a2db08f0..7a4b1910f25 100644 --- a/server/src/core/@generated/company/company.model.ts +++ b/server/src/core/@generated/company/company.model.ts @@ -3,8 +3,8 @@ import { ObjectType } from '@nestjs/graphql'; import { ID } from '@nestjs/graphql'; import { Int } from '@nestjs/graphql'; import { HideField } from '@nestjs/graphql'; -import { User } from '../user/user.model'; import { Person } from '../person/person.model'; +import { User } from '../user/user.model'; import { Workspace } from '../workspace/workspace.model'; import { CompanyCount } from './company-count.output'; @@ -14,15 +14,6 @@ export class Company { @Field(() => ID, {nullable:false}) id!: string; - @Field(() => Date, {nullable:false}) - createdAt!: Date; - - @Field(() => Date, {nullable:false}) - updatedAt!: Date; - - @Field(() => Date, {nullable:true}) - deletedAt!: Date | null; - @Field(() => String, {nullable:false}) name!: string; @@ -41,12 +32,21 @@ export class Company { @HideField() workspaceId!: string; - @Field(() => User, {nullable:true}) - accountOwner?: User | null; + @HideField() + deletedAt!: Date | null; + + @Field(() => Date, {nullable:false}) + createdAt!: Date; + + @Field(() => Date, {nullable:false}) + updatedAt!: Date; @Field(() => [Person], {nullable:true}) people?: Array; + @Field(() => User, {nullable:true}) + accountOwner?: User | null; + @HideField() workspace?: Workspace; diff --git a/server/src/core/@generated/company/create-many-company.args.ts b/server/src/core/@generated/company/create-many-company.args.ts index 838a95ab26a..08e78f224af 100644 --- a/server/src/core/@generated/company/create-many-company.args.ts +++ b/server/src/core/@generated/company/create-many-company.args.ts @@ -2,12 +2,15 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { CompanyCreateManyInput } from './company-create-many.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; @ArgsType() export class CreateManyCompanyArgs { @Field(() => [CompanyCreateManyInput], {nullable:false}) @Type(() => CompanyCreateManyInput) + @ValidateNested({each: true}) + @Type(() => CompanyCreateManyInput) data!: Array; @Field(() => Boolean, {nullable:true}) diff --git a/server/src/core/@generated/company/create-one-company.args.ts b/server/src/core/@generated/company/create-one-company.args.ts index ed7263b2abe..c8dd6a03315 100644 --- a/server/src/core/@generated/company/create-one-company.args.ts +++ b/server/src/core/@generated/company/create-one-company.args.ts @@ -2,11 +2,14 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { CompanyCreateInput } from './company-create.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; @ArgsType() export class CreateOneCompanyArgs { @Field(() => CompanyCreateInput, {nullable:false}) @Type(() => CompanyCreateInput) + @ValidateNested({each: true}) + @Type(() => CompanyCreateInput) data!: CompanyCreateInput; } diff --git a/server/src/core/@generated/company/update-many-company.args.ts b/server/src/core/@generated/company/update-many-company.args.ts index 312ff77215a..6672abe3108 100644 --- a/server/src/core/@generated/company/update-many-company.args.ts +++ b/server/src/core/@generated/company/update-many-company.args.ts @@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { CompanyUpdateManyMutationInput } from './company-update-many-mutation.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; import { CompanyWhereInput } from './company-where.input'; @ArgsType() @@ -9,6 +10,8 @@ export class UpdateManyCompanyArgs { @Field(() => CompanyUpdateManyMutationInput, {nullable:false}) @Type(() => CompanyUpdateManyMutationInput) + @ValidateNested({each: true}) + @Type(() => CompanyUpdateManyMutationInput) data!: CompanyUpdateManyMutationInput; @Field(() => CompanyWhereInput, {nullable:true}) diff --git a/server/src/core/@generated/company/update-one-company.args.ts b/server/src/core/@generated/company/update-one-company.args.ts index 128ccf9c313..ca5a6704933 100644 --- a/server/src/core/@generated/company/update-one-company.args.ts +++ b/server/src/core/@generated/company/update-one-company.args.ts @@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { CompanyUpdateInput } from './company-update.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; import { CompanyWhereUniqueInput } from './company-where-unique.input'; @ArgsType() @@ -9,6 +10,8 @@ export class UpdateOneCompanyArgs { @Field(() => CompanyUpdateInput, {nullable:false}) @Type(() => CompanyUpdateInput) + @ValidateNested({each: true}) + @Type(() => CompanyUpdateInput) data!: CompanyUpdateInput; @Field(() => CompanyWhereUniqueInput, {nullable:false}) diff --git a/server/src/core/@generated/person/create-many-person.args.ts b/server/src/core/@generated/person/create-many-person.args.ts index 0537d87a605..d78b614a49e 100644 --- a/server/src/core/@generated/person/create-many-person.args.ts +++ b/server/src/core/@generated/person/create-many-person.args.ts @@ -2,12 +2,15 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { PersonCreateManyInput } from './person-create-many.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; @ArgsType() export class CreateManyPersonArgs { @Field(() => [PersonCreateManyInput], {nullable:false}) @Type(() => PersonCreateManyInput) + @ValidateNested({each: true}) + @Type(() => PersonCreateManyInput) data!: Array; @Field(() => Boolean, {nullable:true}) diff --git a/server/src/core/@generated/person/create-one-person.args.ts b/server/src/core/@generated/person/create-one-person.args.ts index 1a606d598b0..8651efd2c36 100644 --- a/server/src/core/@generated/person/create-one-person.args.ts +++ b/server/src/core/@generated/person/create-one-person.args.ts @@ -2,11 +2,14 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { PersonCreateInput } from './person-create.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; @ArgsType() export class CreateOnePersonArgs { @Field(() => PersonCreateInput, {nullable:false}) @Type(() => PersonCreateInput) + @ValidateNested({each: true}) + @Type(() => PersonCreateInput) data!: PersonCreateInput; } diff --git a/server/src/core/@generated/person/person-count-aggregate.input.ts b/server/src/core/@generated/person/person-count-aggregate.input.ts index 55e647c1dd9..78b404184c7 100644 --- a/server/src/core/@generated/person/person-count-aggregate.input.ts +++ b/server/src/core/@generated/person/person-count-aggregate.input.ts @@ -8,15 +8,6 @@ export class PersonCountAggregateInput { @Field(() => Boolean, {nullable:true}) id?: true; - @Field(() => Boolean, {nullable:true}) - createdAt?: true; - - @Field(() => Boolean, {nullable:true}) - updatedAt?: true; - - @Field(() => Boolean, {nullable:true}) - deletedAt?: true; - @Field(() => Boolean, {nullable:true}) firstname?: true; @@ -38,6 +29,15 @@ export class PersonCountAggregateInput { @HideField() workspaceId?: true; + @HideField() + deletedAt?: true; + + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; + @Field(() => Boolean, {nullable:true}) _all?: true; } diff --git a/server/src/core/@generated/person/person-count-aggregate.output.ts b/server/src/core/@generated/person/person-count-aggregate.output.ts index 037fdf57bb2..c73aad04e6b 100644 --- a/server/src/core/@generated/person/person-count-aggregate.output.ts +++ b/server/src/core/@generated/person/person-count-aggregate.output.ts @@ -9,15 +9,6 @@ export class PersonCountAggregate { @Field(() => Int, {nullable:false}) id!: number; - @Field(() => Int, {nullable:false}) - createdAt!: number; - - @Field(() => Int, {nullable:false}) - updatedAt!: number; - - @Field(() => Int, {nullable:false}) - deletedAt!: number; - @Field(() => Int, {nullable:false}) firstname!: number; @@ -39,6 +30,15 @@ export class PersonCountAggregate { @HideField() workspaceId!: number; + @HideField() + deletedAt!: number; + + @Field(() => Int, {nullable:false}) + createdAt!: number; + + @Field(() => Int, {nullable:false}) + updatedAt!: number; + @Field(() => Int, {nullable:false}) _all!: number; } diff --git a/server/src/core/@generated/person/person-count-order-by-aggregate.input.ts b/server/src/core/@generated/person/person-count-order-by-aggregate.input.ts index ea465b1debe..9e30096b606 100644 --- a/server/src/core/@generated/person/person-count-order-by-aggregate.input.ts +++ b/server/src/core/@generated/person/person-count-order-by-aggregate.input.ts @@ -9,15 +9,6 @@ export class PersonCountOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) firstname?: keyof typeof SortOrder; @@ -38,4 +29,13 @@ export class PersonCountOrderByAggregateInput { @HideField() workspaceId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/person/person-create-many-company.input.ts b/server/src/core/@generated/person/person-create-many-company.input.ts index b747be781b2..eb7f6a131da 100644 --- a/server/src/core/@generated/person/person-create-many-company.input.ts +++ b/server/src/core/@generated/person/person-create-many-company.input.ts @@ -1,37 +1,45 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @InputType() export class PersonCreateManyCompanyInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + firstname!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + lastname!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsEmail() + email!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsPhoneNumber() + phone!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + city!: string; + + @HideField() + workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - firstname!: string; - - @Field(() => String, {nullable:false}) - lastname!: string; - - @Field(() => String, {nullable:false}) - email!: string; - - @Field(() => String, {nullable:false}) - phone!: string; - - @Field(() => String, {nullable:false}) - city!: string; - - @HideField() - workspaceId!: string; } diff --git a/server/src/core/@generated/person/person-create-many-workspace.input.ts b/server/src/core/@generated/person/person-create-many-workspace.input.ts index 39264d99565..0f36ec7be6a 100644 --- a/server/src/core/@generated/person/person-create-many-workspace.input.ts +++ b/server/src/core/@generated/person/person-create-many-workspace.input.ts @@ -1,36 +1,45 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; @InputType() export class PersonCreateManyWorkspaceInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + firstname!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + lastname!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsEmail() + email!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsPhoneNumber() + phone!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + city!: string; + + @Field(() => String, {nullable:true}) + companyId?: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - firstname!: string; - - @Field(() => String, {nullable:false}) - lastname!: string; - - @Field(() => String, {nullable:false}) - email!: string; - - @Field(() => String, {nullable:false}) - phone!: string; - - @Field(() => String, {nullable:false}) - city!: string; - - @Field(() => String, {nullable:true}) - companyId?: string; } diff --git a/server/src/core/@generated/person/person-create-many.input.ts b/server/src/core/@generated/person/person-create-many.input.ts index 60df0ec5f69..04dd6e66df3 100644 --- a/server/src/core/@generated/person/person-create-many.input.ts +++ b/server/src/core/@generated/person/person-create-many.input.ts @@ -1,35 +1,34 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @InputType() export class PersonCreateManyInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:false}) + @Validator.IsString() firstname!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() lastname!: string; @Field(() => String, {nullable:false}) + @Validator.IsEmail() email!: string; @Field(() => String, {nullable:false}) + @Validator.IsPhoneNumber() phone!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() city!: string; @Field(() => String, {nullable:true}) @@ -37,4 +36,13 @@ export class PersonCreateManyInput { @HideField() workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/person/person-create-without-company.input.ts b/server/src/core/@generated/person/person-create-without-company.input.ts index 9e6c71fb5c1..9fea1ef9230 100644 --- a/server/src/core/@generated/person/person-create-without-company.input.ts +++ b/server/src/core/@generated/person/person-create-without-company.input.ts @@ -1,38 +1,46 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; -import { WorkspaceCreateNestedOneWithoutPeopleInput } from '../workspace/workspace-create-nested-one-without-people.input'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; +import { WorkspaceCreateNestedOneWithoutPeopleInput } from '../workspace/workspace-create-nested-one-without-people.input'; @InputType() export class PersonCreateWithoutCompanyInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + firstname!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + lastname!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsEmail() + email!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsPhoneNumber() + phone!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + city!: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - firstname!: string; - - @Field(() => String, {nullable:false}) - lastname!: string; - - @Field(() => String, {nullable:false}) - email!: string; - - @Field(() => String, {nullable:false}) - phone!: string; - - @Field(() => String, {nullable:false}) - city!: string; - @HideField() workspace!: WorkspaceCreateNestedOneWithoutPeopleInput; } diff --git a/server/src/core/@generated/person/person-create-without-workspace.input.ts b/server/src/core/@generated/person/person-create-without-workspace.input.ts index 115bc6c2bb6..5dc836d5e1d 100644 --- a/server/src/core/@generated/person/person-create-without-workspace.input.ts +++ b/server/src/core/@generated/person/person-create-without-workspace.input.ts @@ -1,37 +1,46 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; import { CompanyCreateNestedOneWithoutPeopleInput } from '../company/company-create-nested-one-without-people.input'; @InputType() export class PersonCreateWithoutWorkspaceInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + firstname!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + lastname!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsEmail() + email!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsPhoneNumber() + phone!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + city!: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - firstname!: string; - - @Field(() => String, {nullable:false}) - lastname!: string; - - @Field(() => String, {nullable:false}) - email!: string; - - @Field(() => String, {nullable:false}) - phone!: string; - - @Field(() => String, {nullable:false}) - city!: string; - @Field(() => CompanyCreateNestedOneWithoutPeopleInput, {nullable:true}) company?: CompanyCreateNestedOneWithoutPeopleInput; } diff --git a/server/src/core/@generated/person/person-create.input.ts b/server/src/core/@generated/person/person-create.input.ts index 434070df6e7..96944ff9975 100644 --- a/server/src/core/@generated/person/person-create.input.ts +++ b/server/src/core/@generated/person/person-create.input.ts @@ -1,39 +1,47 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; import { CompanyCreateNestedOneWithoutPeopleInput } from '../company/company-create-nested-one-without-people.input'; import { WorkspaceCreateNestedOneWithoutPeopleInput } from '../workspace/workspace-create-nested-one-without-people.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class PersonCreateInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + firstname!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + lastname!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsEmail() + email!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsPhoneNumber() + phone!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + city!: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - firstname!: string; - - @Field(() => String, {nullable:false}) - lastname!: string; - - @Field(() => String, {nullable:false}) - email!: string; - - @Field(() => String, {nullable:false}) - phone!: string; - - @Field(() => String, {nullable:false}) - city!: string; - @Field(() => CompanyCreateNestedOneWithoutPeopleInput, {nullable:true}) company?: CompanyCreateNestedOneWithoutPeopleInput; diff --git a/server/src/core/@generated/person/person-group-by.output.ts b/server/src/core/@generated/person/person-group-by.output.ts index 79f4a5cbbfb..4af6b2665ed 100644 --- a/server/src/core/@generated/person/person-group-by.output.ts +++ b/server/src/core/@generated/person/person-group-by.output.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; import { PersonCountAggregate } from './person-count-aggregate.output'; import { PersonMinAggregate } from './person-min-aggregate.output'; @@ -9,30 +10,28 @@ import { PersonMaxAggregate } from './person-max-aggregate.output'; export class PersonGroupBy { @Field(() => String, {nullable:false}) + @Validator.IsString() + @Validator.IsOptional() id!: string; - @Field(() => Date, {nullable:false}) - createdAt!: Date | string; - - @Field(() => Date, {nullable:false}) - updatedAt!: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:false}) + @Validator.IsString() firstname!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() lastname!: string; @Field(() => String, {nullable:false}) + @Validator.IsEmail() email!: string; @Field(() => String, {nullable:false}) + @Validator.IsPhoneNumber() phone!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() city!: string; @Field(() => String, {nullable:true}) @@ -41,6 +40,15 @@ export class PersonGroupBy { @HideField() workspaceId!: string; + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:false}) + createdAt!: Date | string; + + @Field(() => Date, {nullable:false}) + updatedAt!: Date | string; + @Field(() => PersonCountAggregate, {nullable:true}) _count?: PersonCountAggregate; diff --git a/server/src/core/@generated/person/person-max-aggregate.input.ts b/server/src/core/@generated/person/person-max-aggregate.input.ts index c720d045603..b0441b2144a 100644 --- a/server/src/core/@generated/person/person-max-aggregate.input.ts +++ b/server/src/core/@generated/person/person-max-aggregate.input.ts @@ -8,15 +8,6 @@ export class PersonMaxAggregateInput { @Field(() => Boolean, {nullable:true}) id?: true; - @Field(() => Boolean, {nullable:true}) - createdAt?: true; - - @Field(() => Boolean, {nullable:true}) - updatedAt?: true; - - @Field(() => Boolean, {nullable:true}) - deletedAt?: true; - @Field(() => Boolean, {nullable:true}) firstname?: true; @@ -37,4 +28,13 @@ export class PersonMaxAggregateInput { @HideField() workspaceId?: true; + + @HideField() + deletedAt?: true; + + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; } diff --git a/server/src/core/@generated/person/person-max-aggregate.output.ts b/server/src/core/@generated/person/person-max-aggregate.output.ts index be40ee0a209..9e48a9e2763 100644 --- a/server/src/core/@generated/person/person-max-aggregate.output.ts +++ b/server/src/core/@generated/person/person-max-aggregate.output.ts @@ -1,35 +1,34 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @ObjectType() export class PersonMaxAggregate { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:true}) + @Validator.IsString() firstname?: string; @Field(() => String, {nullable:true}) + @Validator.IsString() lastname?: string; @Field(() => String, {nullable:true}) + @Validator.IsEmail() email?: string; @Field(() => String, {nullable:true}) + @Validator.IsPhoneNumber() phone?: string; @Field(() => String, {nullable:true}) + @Validator.IsString() city?: string; @Field(() => String, {nullable:true}) @@ -37,4 +36,13 @@ export class PersonMaxAggregate { @HideField() workspaceId?: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/person/person-max-order-by-aggregate.input.ts b/server/src/core/@generated/person/person-max-order-by-aggregate.input.ts index d916a82618b..44d39dcc1e8 100644 --- a/server/src/core/@generated/person/person-max-order-by-aggregate.input.ts +++ b/server/src/core/@generated/person/person-max-order-by-aggregate.input.ts @@ -9,15 +9,6 @@ export class PersonMaxOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) firstname?: keyof typeof SortOrder; @@ -38,4 +29,13 @@ export class PersonMaxOrderByAggregateInput { @HideField() workspaceId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/person/person-min-aggregate.input.ts b/server/src/core/@generated/person/person-min-aggregate.input.ts index c0786aa2922..e388d545092 100644 --- a/server/src/core/@generated/person/person-min-aggregate.input.ts +++ b/server/src/core/@generated/person/person-min-aggregate.input.ts @@ -8,15 +8,6 @@ export class PersonMinAggregateInput { @Field(() => Boolean, {nullable:true}) id?: true; - @Field(() => Boolean, {nullable:true}) - createdAt?: true; - - @Field(() => Boolean, {nullable:true}) - updatedAt?: true; - - @Field(() => Boolean, {nullable:true}) - deletedAt?: true; - @Field(() => Boolean, {nullable:true}) firstname?: true; @@ -37,4 +28,13 @@ export class PersonMinAggregateInput { @HideField() workspaceId?: true; + + @HideField() + deletedAt?: true; + + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; } diff --git a/server/src/core/@generated/person/person-min-aggregate.output.ts b/server/src/core/@generated/person/person-min-aggregate.output.ts index 57b9396f4ce..302fbac9d0e 100644 --- a/server/src/core/@generated/person/person-min-aggregate.output.ts +++ b/server/src/core/@generated/person/person-min-aggregate.output.ts @@ -1,35 +1,34 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @ObjectType() export class PersonMinAggregate { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:true}) + @Validator.IsString() firstname?: string; @Field(() => String, {nullable:true}) + @Validator.IsString() lastname?: string; @Field(() => String, {nullable:true}) + @Validator.IsEmail() email?: string; @Field(() => String, {nullable:true}) + @Validator.IsPhoneNumber() phone?: string; @Field(() => String, {nullable:true}) + @Validator.IsString() city?: string; @Field(() => String, {nullable:true}) @@ -37,4 +36,13 @@ export class PersonMinAggregate { @HideField() workspaceId?: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/person/person-min-order-by-aggregate.input.ts b/server/src/core/@generated/person/person-min-order-by-aggregate.input.ts index 37cc9f3ec26..0174f90ee1d 100644 --- a/server/src/core/@generated/person/person-min-order-by-aggregate.input.ts +++ b/server/src/core/@generated/person/person-min-order-by-aggregate.input.ts @@ -9,15 +9,6 @@ export class PersonMinOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) firstname?: keyof typeof SortOrder; @@ -38,4 +29,13 @@ export class PersonMinOrderByAggregateInput { @HideField() workspaceId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/person/person-order-by-with-aggregation.input.ts b/server/src/core/@generated/person/person-order-by-with-aggregation.input.ts index de44b413ad5..3d26bef2fa6 100644 --- a/server/src/core/@generated/person/person-order-by-with-aggregation.input.ts +++ b/server/src/core/@generated/person/person-order-by-with-aggregation.input.ts @@ -12,15 +12,6 @@ export class PersonOrderByWithAggregationInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) firstname?: keyof typeof SortOrder; @@ -42,6 +33,15 @@ export class PersonOrderByWithAggregationInput { @HideField() workspaceId?: keyof typeof SortOrder; + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; + @Field(() => PersonCountOrderByAggregateInput, {nullable:true}) _count?: PersonCountOrderByAggregateInput; diff --git a/server/src/core/@generated/person/person-order-by-with-relation.input.ts b/server/src/core/@generated/person/person-order-by-with-relation.input.ts index 75abb263930..f0167a8fce6 100644 --- a/server/src/core/@generated/person/person-order-by-with-relation.input.ts +++ b/server/src/core/@generated/person/person-order-by-with-relation.input.ts @@ -11,15 +11,6 @@ export class PersonOrderByWithRelationInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) firstname?: keyof typeof SortOrder; @@ -41,6 +32,15 @@ export class PersonOrderByWithRelationInput { @HideField() workspaceId?: keyof typeof SortOrder; + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; + @Field(() => CompanyOrderByWithRelationInput, {nullable:true}) company?: CompanyOrderByWithRelationInput; diff --git a/server/src/core/@generated/person/person-scalar-field.enum.ts b/server/src/core/@generated/person/person-scalar-field.enum.ts index 6621600f682..1bb4dbe0a3c 100644 --- a/server/src/core/@generated/person/person-scalar-field.enum.ts +++ b/server/src/core/@generated/person/person-scalar-field.enum.ts @@ -2,16 +2,16 @@ import { registerEnumType } from '@nestjs/graphql'; export enum PersonScalarFieldEnum { id = "id", - createdAt = "createdAt", - updatedAt = "updatedAt", - deletedAt = "deletedAt", firstname = "firstname", lastname = "lastname", email = "email", phone = "phone", city = "city", companyId = "companyId", - workspaceId = "workspaceId" + workspaceId = "workspaceId", + deletedAt = "deletedAt", + createdAt = "createdAt", + updatedAt = "updatedAt" } diff --git a/server/src/core/@generated/person/person-scalar-where-with-aggregates.input.ts b/server/src/core/@generated/person/person-scalar-where-with-aggregates.input.ts index 2e546e460d4..181d32647f1 100644 --- a/server/src/core/@generated/person/person-scalar-where-with-aggregates.input.ts +++ b/server/src/core/@generated/person/person-scalar-where-with-aggregates.input.ts @@ -1,10 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringWithAggregatesFilter } from '../prisma/string-with-aggregates-filter.input'; -import { DateTimeWithAggregatesFilter } from '../prisma/date-time-with-aggregates-filter.input'; -import { DateTimeNullableWithAggregatesFilter } from '../prisma/date-time-nullable-with-aggregates-filter.input'; import { StringNullableWithAggregatesFilter } from '../prisma/string-nullable-with-aggregates-filter.input'; import { HideField } from '@nestjs/graphql'; +import { DateTimeNullableWithAggregatesFilter } from '../prisma/date-time-nullable-with-aggregates-filter.input'; +import { DateTimeWithAggregatesFilter } from '../prisma/date-time-with-aggregates-filter.input'; @InputType() export class PersonScalarWhereWithAggregatesInput { @@ -21,15 +21,6 @@ export class PersonScalarWhereWithAggregatesInput { @Field(() => StringWithAggregatesFilter, {nullable:true}) id?: StringWithAggregatesFilter; - @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) - createdAt?: DateTimeWithAggregatesFilter; - - @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) - updatedAt?: DateTimeWithAggregatesFilter; - - @Field(() => DateTimeNullableWithAggregatesFilter, {nullable:true}) - deletedAt?: DateTimeNullableWithAggregatesFilter; - @Field(() => StringWithAggregatesFilter, {nullable:true}) firstname?: StringWithAggregatesFilter; @@ -50,4 +41,13 @@ export class PersonScalarWhereWithAggregatesInput { @HideField() workspaceId?: StringWithAggregatesFilter; + + @HideField() + deletedAt?: DateTimeNullableWithAggregatesFilter; + + @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) + createdAt?: DateTimeWithAggregatesFilter; + + @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) + updatedAt?: DateTimeWithAggregatesFilter; } diff --git a/server/src/core/@generated/person/person-scalar-where.input.ts b/server/src/core/@generated/person/person-scalar-where.input.ts index 055dac62c86..71a44e86795 100644 --- a/server/src/core/@generated/person/person-scalar-where.input.ts +++ b/server/src/core/@generated/person/person-scalar-where.input.ts @@ -1,10 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFilter } from '../prisma/string-filter.input'; -import { DateTimeFilter } from '../prisma/date-time-filter.input'; -import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; import { StringNullableFilter } from '../prisma/string-nullable-filter.input'; import { HideField } from '@nestjs/graphql'; +import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; +import { DateTimeFilter } from '../prisma/date-time-filter.input'; @InputType() export class PersonScalarWhereInput { @@ -21,15 +21,6 @@ export class PersonScalarWhereInput { @Field(() => StringFilter, {nullable:true}) id?: StringFilter; - @Field(() => DateTimeFilter, {nullable:true}) - createdAt?: DateTimeFilter; - - @Field(() => DateTimeFilter, {nullable:true}) - updatedAt?: DateTimeFilter; - - @Field(() => DateTimeNullableFilter, {nullable:true}) - deletedAt?: DateTimeNullableFilter; - @Field(() => StringFilter, {nullable:true}) firstname?: StringFilter; @@ -50,4 +41,13 @@ export class PersonScalarWhereInput { @HideField() workspaceId?: StringFilter; + + @HideField() + deletedAt?: DateTimeNullableFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + createdAt?: DateTimeFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + updatedAt?: DateTimeFilter; } diff --git a/server/src/core/@generated/person/person-unchecked-create-without-company.input.ts b/server/src/core/@generated/person/person-unchecked-create-without-company.input.ts index 37f45a67884..996b8437a55 100644 --- a/server/src/core/@generated/person/person-unchecked-create-without-company.input.ts +++ b/server/src/core/@generated/person/person-unchecked-create-without-company.input.ts @@ -1,37 +1,45 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @InputType() export class PersonUncheckedCreateWithoutCompanyInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + firstname!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + lastname!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsEmail() + email!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsPhoneNumber() + phone!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + city!: string; + + @HideField() + workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - firstname!: string; - - @Field(() => String, {nullable:false}) - lastname!: string; - - @Field(() => String, {nullable:false}) - email!: string; - - @Field(() => String, {nullable:false}) - phone!: string; - - @Field(() => String, {nullable:false}) - city!: string; - - @HideField() - workspaceId!: string; } diff --git a/server/src/core/@generated/person/person-unchecked-create-without-workspace.input.ts b/server/src/core/@generated/person/person-unchecked-create-without-workspace.input.ts index e7a77e7fa34..54792cdac56 100644 --- a/server/src/core/@generated/person/person-unchecked-create-without-workspace.input.ts +++ b/server/src/core/@generated/person/person-unchecked-create-without-workspace.input.ts @@ -1,36 +1,45 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; @InputType() export class PersonUncheckedCreateWithoutWorkspaceInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + firstname!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + lastname!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsEmail() + email!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsPhoneNumber() + phone!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + city!: string; + + @Field(() => String, {nullable:true}) + companyId?: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - firstname!: string; - - @Field(() => String, {nullable:false}) - lastname!: string; - - @Field(() => String, {nullable:false}) - email!: string; - - @Field(() => String, {nullable:false}) - phone!: string; - - @Field(() => String, {nullable:false}) - city!: string; - - @Field(() => String, {nullable:true}) - companyId?: string; } diff --git a/server/src/core/@generated/person/person-unchecked-create.input.ts b/server/src/core/@generated/person/person-unchecked-create.input.ts index 66039a62761..9140f57d032 100644 --- a/server/src/core/@generated/person/person-unchecked-create.input.ts +++ b/server/src/core/@generated/person/person-unchecked-create.input.ts @@ -1,35 +1,34 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @InputType() export class PersonUncheckedCreateInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:false}) + @Validator.IsString() firstname!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() lastname!: string; @Field(() => String, {nullable:false}) + @Validator.IsEmail() email!: string; @Field(() => String, {nullable:false}) + @Validator.IsPhoneNumber() phone!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() city!: string; @Field(() => String, {nullable:true}) @@ -37,4 +36,13 @@ export class PersonUncheckedCreateInput { @HideField() workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/person/person-unchecked-update-many-without-people.input.ts b/server/src/core/@generated/person/person-unchecked-update-many-without-people.input.ts index b3d4a323cda..9548cc5fb67 100644 --- a/server/src/core/@generated/person/person-unchecked-update-many-without-people.input.ts +++ b/server/src/core/@generated/person/person-unchecked-update-many-without-people.input.ts @@ -1,9 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class PersonUncheckedUpdateManyWithoutPeopleInput { @@ -11,15 +12,6 @@ export class PersonUncheckedUpdateManyWithoutPeopleInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) firstname?: StringFieldUpdateOperationsInput; @@ -37,4 +29,13 @@ export class PersonUncheckedUpdateManyWithoutPeopleInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) companyId?: NullableStringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/person/person-unchecked-update-many.input.ts b/server/src/core/@generated/person/person-unchecked-update-many.input.ts index 8500a35b116..da1f88315ba 100644 --- a/server/src/core/@generated/person/person-unchecked-update-many.input.ts +++ b/server/src/core/@generated/person/person-unchecked-update-many.input.ts @@ -1,10 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class PersonUncheckedUpdateManyInput { @@ -12,15 +12,6 @@ export class PersonUncheckedUpdateManyInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) firstname?: StringFieldUpdateOperationsInput; @@ -41,4 +32,13 @@ export class PersonUncheckedUpdateManyInput { @HideField() workspaceId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/person/person-unchecked-update-without-company.input.ts b/server/src/core/@generated/person/person-unchecked-update-without-company.input.ts index 1185cceafab..b41c780b3b7 100644 --- a/server/src/core/@generated/person/person-unchecked-update-without-company.input.ts +++ b/server/src/core/@generated/person/person-unchecked-update-without-company.input.ts @@ -1,9 +1,9 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class PersonUncheckedUpdateWithoutCompanyInput { @@ -11,15 +11,6 @@ export class PersonUncheckedUpdateWithoutCompanyInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) firstname?: StringFieldUpdateOperationsInput; @@ -37,4 +28,13 @@ export class PersonUncheckedUpdateWithoutCompanyInput { @HideField() workspaceId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/person/person-unchecked-update-without-workspace.input.ts b/server/src/core/@generated/person/person-unchecked-update-without-workspace.input.ts index 950eff4f955..a7aeeda1bff 100644 --- a/server/src/core/@generated/person/person-unchecked-update-without-workspace.input.ts +++ b/server/src/core/@generated/person/person-unchecked-update-without-workspace.input.ts @@ -1,9 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class PersonUncheckedUpdateWithoutWorkspaceInput { @@ -11,15 +12,6 @@ export class PersonUncheckedUpdateWithoutWorkspaceInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) firstname?: StringFieldUpdateOperationsInput; @@ -37,4 +29,13 @@ export class PersonUncheckedUpdateWithoutWorkspaceInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) companyId?: NullableStringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/person/person-unchecked-update.input.ts b/server/src/core/@generated/person/person-unchecked-update.input.ts index f0345151bec..567c85b2e89 100644 --- a/server/src/core/@generated/person/person-unchecked-update.input.ts +++ b/server/src/core/@generated/person/person-unchecked-update.input.ts @@ -1,10 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class PersonUncheckedUpdateInput { @@ -12,15 +12,6 @@ export class PersonUncheckedUpdateInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) firstname?: StringFieldUpdateOperationsInput; @@ -41,4 +32,13 @@ export class PersonUncheckedUpdateInput { @HideField() workspaceId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/person/person-update-many-mutation.input.ts b/server/src/core/@generated/person/person-update-many-mutation.input.ts index 27872542129..63b2a1ae0ba 100644 --- a/server/src/core/@generated/person/person-update-many-mutation.input.ts +++ b/server/src/core/@generated/person/person-update-many-mutation.input.ts @@ -1,8 +1,9 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class PersonUpdateManyMutationInput { @@ -10,15 +11,6 @@ export class PersonUpdateManyMutationInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) firstname?: StringFieldUpdateOperationsInput; @@ -33,4 +25,13 @@ export class PersonUpdateManyMutationInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) city?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/person/person-update-without-company.input.ts b/server/src/core/@generated/person/person-update-without-company.input.ts index d7ac5a1ee68..28065c63e3d 100644 --- a/server/src/core/@generated/person/person-update-without-company.input.ts +++ b/server/src/core/@generated/person/person-update-without-company.input.ts @@ -1,10 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; -import { WorkspaceUpdateOneRequiredWithoutPeopleNestedInput } from '../workspace/workspace-update-one-required-without-people-nested.input'; import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; +import { WorkspaceUpdateOneRequiredWithoutPeopleNestedInput } from '../workspace/workspace-update-one-required-without-people-nested.input'; @InputType() export class PersonUpdateWithoutCompanyInput { @@ -12,15 +12,6 @@ export class PersonUpdateWithoutCompanyInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) firstname?: StringFieldUpdateOperationsInput; @@ -36,6 +27,15 @@ export class PersonUpdateWithoutCompanyInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) city?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @HideField() workspace?: WorkspaceUpdateOneRequiredWithoutPeopleNestedInput; } diff --git a/server/src/core/@generated/person/person-update-without-workspace.input.ts b/server/src/core/@generated/person/person-update-without-workspace.input.ts index 9d883d7470b..6369f711583 100644 --- a/server/src/core/@generated/person/person-update-without-workspace.input.ts +++ b/server/src/core/@generated/person/person-update-without-workspace.input.ts @@ -1,8 +1,9 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { CompanyUpdateOneWithoutPeopleNestedInput } from '../company/company-update-one-without-people-nested.input'; @InputType() @@ -11,15 +12,6 @@ export class PersonUpdateWithoutWorkspaceInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) firstname?: StringFieldUpdateOperationsInput; @@ -35,6 +27,15 @@ export class PersonUpdateWithoutWorkspaceInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) city?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => CompanyUpdateOneWithoutPeopleNestedInput, {nullable:true}) company?: CompanyUpdateOneWithoutPeopleNestedInput; } diff --git a/server/src/core/@generated/person/person-update.input.ts b/server/src/core/@generated/person/person-update.input.ts index a17c52d88bb..a36ba9e586e 100644 --- a/server/src/core/@generated/person/person-update.input.ts +++ b/server/src/core/@generated/person/person-update.input.ts @@ -1,11 +1,11 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { CompanyUpdateOneWithoutPeopleNestedInput } from '../company/company-update-one-without-people-nested.input'; import { WorkspaceUpdateOneRequiredWithoutPeopleNestedInput } from '../workspace/workspace-update-one-required-without-people-nested.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class PersonUpdateInput { @@ -13,15 +13,6 @@ export class PersonUpdateInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) firstname?: StringFieldUpdateOperationsInput; @@ -37,6 +28,15 @@ export class PersonUpdateInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) city?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => CompanyUpdateOneWithoutPeopleNestedInput, {nullable:true}) company?: CompanyUpdateOneWithoutPeopleNestedInput; diff --git a/server/src/core/@generated/person/person-where-unique.input.ts b/server/src/core/@generated/person/person-where-unique.input.ts index 34c5475c9af..9e7ddd89522 100644 --- a/server/src/core/@generated/person/person-where-unique.input.ts +++ b/server/src/core/@generated/person/person-where-unique.input.ts @@ -1,9 +1,12 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; @InputType() export class PersonWhereUniqueInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; } diff --git a/server/src/core/@generated/person/person-where.input.ts b/server/src/core/@generated/person/person-where.input.ts index aafb76cba31..c1785ce7abd 100644 --- a/server/src/core/@generated/person/person-where.input.ts +++ b/server/src/core/@generated/person/person-where.input.ts @@ -1,10 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFilter } from '../prisma/string-filter.input'; -import { DateTimeFilter } from '../prisma/date-time-filter.input'; -import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; import { StringNullableFilter } from '../prisma/string-nullable-filter.input'; import { HideField } from '@nestjs/graphql'; +import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; +import { DateTimeFilter } from '../prisma/date-time-filter.input'; import { CompanyRelationFilter } from '../company/company-relation-filter.input'; import { WorkspaceRelationFilter } from '../workspace/workspace-relation-filter.input'; @@ -23,15 +23,6 @@ export class PersonWhereInput { @Field(() => StringFilter, {nullable:true}) id?: StringFilter; - @Field(() => DateTimeFilter, {nullable:true}) - createdAt?: DateTimeFilter; - - @Field(() => DateTimeFilter, {nullable:true}) - updatedAt?: DateTimeFilter; - - @Field(() => DateTimeNullableFilter, {nullable:true}) - deletedAt?: DateTimeNullableFilter; - @Field(() => StringFilter, {nullable:true}) firstname?: StringFilter; @@ -53,6 +44,15 @@ export class PersonWhereInput { @HideField() workspaceId?: StringFilter; + @HideField() + deletedAt?: DateTimeNullableFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + createdAt?: DateTimeFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + updatedAt?: DateTimeFilter; + @Field(() => CompanyRelationFilter, {nullable:true}) company?: CompanyRelationFilter; diff --git a/server/src/core/@generated/person/person.model.ts b/server/src/core/@generated/person/person.model.ts index 8f4a5a87a6c..315291c5343 100644 --- a/server/src/core/@generated/person/person.model.ts +++ b/server/src/core/@generated/person/person.model.ts @@ -11,15 +11,6 @@ export class Person { @Field(() => ID, {nullable:false}) id!: string; - @Field(() => Date, {nullable:false}) - createdAt!: Date; - - @Field(() => Date, {nullable:false}) - updatedAt!: Date; - - @Field(() => Date, {nullable:true}) - deletedAt!: Date | null; - @Field(() => String, {nullable:false}) firstname!: string; @@ -41,6 +32,15 @@ export class Person { @HideField() workspaceId!: string; + @HideField() + deletedAt!: Date | null; + + @Field(() => Date, {nullable:false}) + createdAt!: Date; + + @Field(() => Date, {nullable:false}) + updatedAt!: Date; + @Field(() => Company, {nullable:true}) company?: Company | null; diff --git a/server/src/core/@generated/person/update-many-person.args.ts b/server/src/core/@generated/person/update-many-person.args.ts index 397be4d1062..ba742bafdfc 100644 --- a/server/src/core/@generated/person/update-many-person.args.ts +++ b/server/src/core/@generated/person/update-many-person.args.ts @@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { PersonUpdateManyMutationInput } from './person-update-many-mutation.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; import { PersonWhereInput } from './person-where.input'; @ArgsType() @@ -9,6 +10,8 @@ export class UpdateManyPersonArgs { @Field(() => PersonUpdateManyMutationInput, {nullable:false}) @Type(() => PersonUpdateManyMutationInput) + @ValidateNested({each: true}) + @Type(() => PersonUpdateManyMutationInput) data!: PersonUpdateManyMutationInput; @Field(() => PersonWhereInput, {nullable:true}) diff --git a/server/src/core/@generated/person/update-one-person.args.ts b/server/src/core/@generated/person/update-one-person.args.ts index 6c91321c51c..c70516db729 100644 --- a/server/src/core/@generated/person/update-one-person.args.ts +++ b/server/src/core/@generated/person/update-one-person.args.ts @@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { PersonUpdateInput } from './person-update.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; import { PersonWhereUniqueInput } from './person-where-unique.input'; @ArgsType() @@ -9,6 +10,8 @@ export class UpdateOnePersonArgs { @Field(() => PersonUpdateInput, {nullable:false}) @Type(() => PersonUpdateInput) + @ValidateNested({each: true}) + @Type(() => PersonUpdateInput) data!: PersonUpdateInput; @Field(() => PersonWhereUniqueInput, {nullable:false}) diff --git a/server/src/core/@generated/pipeline-progress/create-many-pipeline-progress.args.ts b/server/src/core/@generated/pipeline-progress/create-many-pipeline-progress.args.ts index 0787b813325..447f7bf6f97 100644 --- a/server/src/core/@generated/pipeline-progress/create-many-pipeline-progress.args.ts +++ b/server/src/core/@generated/pipeline-progress/create-many-pipeline-progress.args.ts @@ -2,12 +2,15 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { PipelineProgressCreateManyInput } from './pipeline-progress-create-many.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; @ArgsType() export class CreateManyPipelineProgressArgs { @Field(() => [PipelineProgressCreateManyInput], {nullable:false}) @Type(() => PipelineProgressCreateManyInput) + @ValidateNested({each: true}) + @Type(() => PipelineProgressCreateManyInput) data!: Array; @Field(() => Boolean, {nullable:true}) diff --git a/server/src/core/@generated/pipeline-progress/create-one-pipeline-progress.args.ts b/server/src/core/@generated/pipeline-progress/create-one-pipeline-progress.args.ts index c8ebeb837a9..3455dda8d86 100644 --- a/server/src/core/@generated/pipeline-progress/create-one-pipeline-progress.args.ts +++ b/server/src/core/@generated/pipeline-progress/create-one-pipeline-progress.args.ts @@ -2,11 +2,14 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { PipelineProgressCreateInput } from './pipeline-progress-create.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; @ArgsType() export class CreateOnePipelineProgressArgs { @Field(() => PipelineProgressCreateInput, {nullable:false}) @Type(() => PipelineProgressCreateInput) + @ValidateNested({each: true}) + @Type(() => PipelineProgressCreateInput) data!: PipelineProgressCreateInput; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-count-aggregate.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-count-aggregate.input.ts index 860776bf57e..e22450a5d13 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-count-aggregate.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-count-aggregate.input.ts @@ -8,15 +8,6 @@ export class PipelineProgressCountAggregateInput { @Field(() => Boolean, {nullable:true}) id?: true; - @Field(() => Boolean, {nullable:true}) - createdAt?: true; - - @Field(() => Boolean, {nullable:true}) - updatedAt?: true; - - @Field(() => Boolean, {nullable:true}) - deletedAt?: true; - @Field(() => Boolean, {nullable:true}) pipelineId?: true; @@ -32,6 +23,15 @@ export class PipelineProgressCountAggregateInput { @HideField() workspaceId?: true; + @HideField() + deletedAt?: true; + + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; + @Field(() => Boolean, {nullable:true}) _all?: true; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-count-aggregate.output.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-count-aggregate.output.ts index 1511e82608c..40da18f0d1c 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-count-aggregate.output.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-count-aggregate.output.ts @@ -9,15 +9,6 @@ export class PipelineProgressCountAggregate { @Field(() => Int, {nullable:false}) id!: number; - @Field(() => Int, {nullable:false}) - createdAt!: number; - - @Field(() => Int, {nullable:false}) - updatedAt!: number; - - @Field(() => Int, {nullable:false}) - deletedAt!: number; - @Field(() => Int, {nullable:false}) pipelineId!: number; @@ -33,6 +24,15 @@ export class PipelineProgressCountAggregate { @HideField() workspaceId!: number; + @HideField() + deletedAt!: number; + + @Field(() => Int, {nullable:false}) + createdAt!: number; + + @Field(() => Int, {nullable:false}) + updatedAt!: number; + @Field(() => Int, {nullable:false}) _all!: number; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-count-order-by-aggregate.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-count-order-by-aggregate.input.ts index ef071a6fe99..6c812cc80f9 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-count-order-by-aggregate.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-count-order-by-aggregate.input.ts @@ -9,15 +9,6 @@ export class PipelineProgressCountOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) pipelineId?: keyof typeof SortOrder; @@ -32,4 +23,13 @@ export class PipelineProgressCountOrderByAggregateInput { @HideField() workspaceId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-create-many-pipeline-stage.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-create-many-pipeline-stage.input.ts index cf72fbb475b..8ae58ea325e 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-create-many-pipeline-stage.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-create-many-pipeline-stage.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; import { HideField } from '@nestjs/graphql'; @@ -7,17 +8,10 @@ import { HideField } from '@nestjs/graphql'; export class PipelineProgressCreateManyPipelineStageInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:false}) pipelineId!: string; @@ -29,4 +23,13 @@ export class PipelineProgressCreateManyPipelineStageInput { @HideField() workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-create-many-pipeline.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-create-many-pipeline.input.ts index b9886c7c4b1..c88726ced94 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-create-many-pipeline.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-create-many-pipeline.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; import { HideField } from '@nestjs/graphql'; @@ -7,17 +8,10 @@ import { HideField } from '@nestjs/graphql'; export class PipelineProgressCreateManyPipelineInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:false}) pipelineStageId!: string; @@ -29,4 +23,13 @@ export class PipelineProgressCreateManyPipelineInput { @HideField() workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-create-many-workspace.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-create-many-workspace.input.ts index d41dc82b678..e7810a81ced 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-create-many-workspace.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-create-many-workspace.input.ts @@ -1,22 +1,17 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; +import { HideField } from '@nestjs/graphql'; @InputType() export class PipelineProgressCreateManyWorkspaceInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:false}) pipelineId!: string; @@ -28,4 +23,13 @@ export class PipelineProgressCreateManyWorkspaceInput { @Field(() => String, {nullable:false}) progressableId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-create-many.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-create-many.input.ts index cb7eb50a631..a6e05a29ff5 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-create-many.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-create-many.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; import { HideField } from '@nestjs/graphql'; @@ -7,17 +8,10 @@ import { HideField } from '@nestjs/graphql'; export class PipelineProgressCreateManyInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:false}) pipelineId!: string; @@ -32,4 +26,13 @@ export class PipelineProgressCreateManyInput { @HideField() workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-create-without-pipeline-stage.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-create-without-pipeline-stage.input.ts index fd70cd6de79..577d5971e0f 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-create-without-pipeline-stage.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-create-without-pipeline-stage.input.ts @@ -1,31 +1,34 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; +import { HideField } from '@nestjs/graphql'; import { PipelineCreateNestedOneWithoutPipelineProgressesInput } from '../pipeline/pipeline-create-nested-one-without-pipeline-progresses.input'; import { WorkspaceCreateNestedOneWithoutPipelineProgressesInput } from '../workspace/workspace-create-nested-one-without-pipeline-progresses.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class PipelineProgressCreateWithoutPipelineStageInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => PipelineProgressableType, {nullable:false}) progressableType!: keyof typeof PipelineProgressableType; @Field(() => String, {nullable:false}) progressableId!: string; + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; + @Field(() => PipelineCreateNestedOneWithoutPipelineProgressesInput, {nullable:false}) pipeline!: PipelineCreateNestedOneWithoutPipelineProgressesInput; diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-create-without-pipeline.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-create-without-pipeline.input.ts index b9555e06aeb..814528f2c2e 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-create-without-pipeline.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-create-without-pipeline.input.ts @@ -1,31 +1,34 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; +import { HideField } from '@nestjs/graphql'; import { PipelineStageCreateNestedOneWithoutPipelineProgressesInput } from '../pipeline-stage/pipeline-stage-create-nested-one-without-pipeline-progresses.input'; import { WorkspaceCreateNestedOneWithoutPipelineProgressesInput } from '../workspace/workspace-create-nested-one-without-pipeline-progresses.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class PipelineProgressCreateWithoutPipelineInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => PipelineProgressableType, {nullable:false}) progressableType!: keyof typeof PipelineProgressableType; @Field(() => String, {nullable:false}) progressableId!: string; + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; + @Field(() => PipelineStageCreateNestedOneWithoutPipelineProgressesInput, {nullable:false}) pipelineStage!: PipelineStageCreateNestedOneWithoutPipelineProgressesInput; diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-create-without-workspace.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-create-without-workspace.input.ts index da3d6609c44..75747d4c937 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-create-without-workspace.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-create-without-workspace.input.ts @@ -1,6 +1,8 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; +import { HideField } from '@nestjs/graphql'; import { PipelineCreateNestedOneWithoutPipelineProgressesInput } from '../pipeline/pipeline-create-nested-one-without-pipeline-progresses.input'; import { PipelineStageCreateNestedOneWithoutPipelineProgressesInput } from '../pipeline-stage/pipeline-stage-create-nested-one-without-pipeline-progresses.input'; @@ -8,23 +10,25 @@ import { PipelineStageCreateNestedOneWithoutPipelineProgressesInput } from '../p export class PipelineProgressCreateWithoutWorkspaceInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => PipelineProgressableType, {nullable:false}) progressableType!: keyof typeof PipelineProgressableType; @Field(() => String, {nullable:false}) progressableId!: string; + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; + @Field(() => PipelineCreateNestedOneWithoutPipelineProgressesInput, {nullable:false}) pipeline!: PipelineCreateNestedOneWithoutPipelineProgressesInput; diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-create.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-create.input.ts index 3a4743d3fec..346a29c61fb 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-create.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-create.input.ts @@ -1,32 +1,35 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; +import { HideField } from '@nestjs/graphql'; import { PipelineCreateNestedOneWithoutPipelineProgressesInput } from '../pipeline/pipeline-create-nested-one-without-pipeline-progresses.input'; import { PipelineStageCreateNestedOneWithoutPipelineProgressesInput } from '../pipeline-stage/pipeline-stage-create-nested-one-without-pipeline-progresses.input'; import { WorkspaceCreateNestedOneWithoutPipelineProgressesInput } from '../workspace/workspace-create-nested-one-without-pipeline-progresses.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class PipelineProgressCreateInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => PipelineProgressableType, {nullable:false}) progressableType!: keyof typeof PipelineProgressableType; @Field(() => String, {nullable:false}) progressableId!: string; + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; + @Field(() => PipelineCreateNestedOneWithoutPipelineProgressesInput, {nullable:false}) pipeline!: PipelineCreateNestedOneWithoutPipelineProgressesInput; diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-group-by.output.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-group-by.output.ts index 83726c430b6..051870f082a 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-group-by.output.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-group-by.output.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; import { HideField } from '@nestjs/graphql'; import { PipelineProgressCountAggregate } from './pipeline-progress-count-aggregate.output'; @@ -10,17 +11,10 @@ import { PipelineProgressMaxAggregate } from './pipeline-progress-max-aggregate. export class PipelineProgressGroupBy { @Field(() => String, {nullable:false}) + @Validator.IsString() + @Validator.IsOptional() id!: string; - @Field(() => Date, {nullable:false}) - createdAt!: Date | string; - - @Field(() => Date, {nullable:false}) - updatedAt!: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:false}) pipelineId!: string; @@ -36,6 +30,15 @@ export class PipelineProgressGroupBy { @HideField() workspaceId!: string; + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:false}) + createdAt!: Date | string; + + @Field(() => Date, {nullable:false}) + updatedAt!: Date | string; + @Field(() => PipelineProgressCountAggregate, {nullable:true}) _count?: PipelineProgressCountAggregate; diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-max-aggregate.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-max-aggregate.input.ts index f5b11b927a9..b68f781c821 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-max-aggregate.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-max-aggregate.input.ts @@ -8,15 +8,6 @@ export class PipelineProgressMaxAggregateInput { @Field(() => Boolean, {nullable:true}) id?: true; - @Field(() => Boolean, {nullable:true}) - createdAt?: true; - - @Field(() => Boolean, {nullable:true}) - updatedAt?: true; - - @Field(() => Boolean, {nullable:true}) - deletedAt?: true; - @Field(() => Boolean, {nullable:true}) pipelineId?: true; @@ -31,4 +22,13 @@ export class PipelineProgressMaxAggregateInput { @HideField() workspaceId?: true; + + @HideField() + deletedAt?: true; + + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-max-aggregate.output.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-max-aggregate.output.ts index 27a0837cc41..1b04a78e27b 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-max-aggregate.output.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-max-aggregate.output.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; import { HideField } from '@nestjs/graphql'; @@ -7,17 +8,10 @@ import { HideField } from '@nestjs/graphql'; export class PipelineProgressMaxAggregate { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:true}) pipelineId?: string; @@ -32,4 +26,13 @@ export class PipelineProgressMaxAggregate { @HideField() workspaceId?: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-max-order-by-aggregate.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-max-order-by-aggregate.input.ts index 679bae71e5b..0eb269ae2db 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-max-order-by-aggregate.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-max-order-by-aggregate.input.ts @@ -9,15 +9,6 @@ export class PipelineProgressMaxOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) pipelineId?: keyof typeof SortOrder; @@ -32,4 +23,13 @@ export class PipelineProgressMaxOrderByAggregateInput { @HideField() workspaceId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-min-aggregate.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-min-aggregate.input.ts index b36b45f7c42..f566a1224eb 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-min-aggregate.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-min-aggregate.input.ts @@ -8,15 +8,6 @@ export class PipelineProgressMinAggregateInput { @Field(() => Boolean, {nullable:true}) id?: true; - @Field(() => Boolean, {nullable:true}) - createdAt?: true; - - @Field(() => Boolean, {nullable:true}) - updatedAt?: true; - - @Field(() => Boolean, {nullable:true}) - deletedAt?: true; - @Field(() => Boolean, {nullable:true}) pipelineId?: true; @@ -31,4 +22,13 @@ export class PipelineProgressMinAggregateInput { @HideField() workspaceId?: true; + + @HideField() + deletedAt?: true; + + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-min-aggregate.output.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-min-aggregate.output.ts index 31deb7b50ec..387c8909046 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-min-aggregate.output.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-min-aggregate.output.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; import { HideField } from '@nestjs/graphql'; @@ -7,17 +8,10 @@ import { HideField } from '@nestjs/graphql'; export class PipelineProgressMinAggregate { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:true}) pipelineId?: string; @@ -32,4 +26,13 @@ export class PipelineProgressMinAggregate { @HideField() workspaceId?: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-min-order-by-aggregate.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-min-order-by-aggregate.input.ts index 0e4d11b9f66..6d3b5dc1e7b 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-min-order-by-aggregate.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-min-order-by-aggregate.input.ts @@ -9,15 +9,6 @@ export class PipelineProgressMinOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) pipelineId?: keyof typeof SortOrder; @@ -32,4 +23,13 @@ export class PipelineProgressMinOrderByAggregateInput { @HideField() workspaceId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-order-by-with-aggregation.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-order-by-with-aggregation.input.ts index ea1263987a8..29defd6abf4 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-order-by-with-aggregation.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-order-by-with-aggregation.input.ts @@ -12,15 +12,6 @@ export class PipelineProgressOrderByWithAggregationInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) pipelineId?: keyof typeof SortOrder; @@ -36,6 +27,15 @@ export class PipelineProgressOrderByWithAggregationInput { @HideField() workspaceId?: keyof typeof SortOrder; + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; + @Field(() => PipelineProgressCountOrderByAggregateInput, {nullable:true}) _count?: PipelineProgressCountOrderByAggregateInput; diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-order-by-with-relation.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-order-by-with-relation.input.ts index e7701ecb7b8..f19201ea815 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-order-by-with-relation.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-order-by-with-relation.input.ts @@ -12,15 +12,6 @@ export class PipelineProgressOrderByWithRelationInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) pipelineId?: keyof typeof SortOrder; @@ -36,6 +27,15 @@ export class PipelineProgressOrderByWithRelationInput { @HideField() workspaceId?: keyof typeof SortOrder; + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; + @Field(() => PipelineOrderByWithRelationInput, {nullable:true}) pipeline?: PipelineOrderByWithRelationInput; diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-scalar-field.enum.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-scalar-field.enum.ts index 65077a1d39c..e289a1765b4 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-scalar-field.enum.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-scalar-field.enum.ts @@ -2,14 +2,14 @@ import { registerEnumType } from '@nestjs/graphql'; export enum PipelineProgressScalarFieldEnum { id = "id", - createdAt = "createdAt", - updatedAt = "updatedAt", - deletedAt = "deletedAt", pipelineId = "pipelineId", pipelineStageId = "pipelineStageId", progressableType = "progressableType", progressableId = "progressableId", - workspaceId = "workspaceId" + workspaceId = "workspaceId", + deletedAt = "deletedAt", + createdAt = "createdAt", + updatedAt = "updatedAt" } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-scalar-where-with-aggregates.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-scalar-where-with-aggregates.input.ts index 66eac3298b1..1726b6b49a3 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-scalar-where-with-aggregates.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-scalar-where-with-aggregates.input.ts @@ -1,10 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringWithAggregatesFilter } from '../prisma/string-with-aggregates-filter.input'; -import { DateTimeWithAggregatesFilter } from '../prisma/date-time-with-aggregates-filter.input'; -import { DateTimeNullableWithAggregatesFilter } from '../prisma/date-time-nullable-with-aggregates-filter.input'; import { EnumPipelineProgressableTypeWithAggregatesFilter } from '../prisma/enum-pipeline-progressable-type-with-aggregates-filter.input'; import { HideField } from '@nestjs/graphql'; +import { DateTimeNullableWithAggregatesFilter } from '../prisma/date-time-nullable-with-aggregates-filter.input'; +import { DateTimeWithAggregatesFilter } from '../prisma/date-time-with-aggregates-filter.input'; @InputType() export class PipelineProgressScalarWhereWithAggregatesInput { @@ -21,15 +21,6 @@ export class PipelineProgressScalarWhereWithAggregatesInput { @Field(() => StringWithAggregatesFilter, {nullable:true}) id?: StringWithAggregatesFilter; - @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) - createdAt?: DateTimeWithAggregatesFilter; - - @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) - updatedAt?: DateTimeWithAggregatesFilter; - - @Field(() => DateTimeNullableWithAggregatesFilter, {nullable:true}) - deletedAt?: DateTimeNullableWithAggregatesFilter; - @Field(() => StringWithAggregatesFilter, {nullable:true}) pipelineId?: StringWithAggregatesFilter; @@ -44,4 +35,13 @@ export class PipelineProgressScalarWhereWithAggregatesInput { @HideField() workspaceId?: StringWithAggregatesFilter; + + @HideField() + deletedAt?: DateTimeNullableWithAggregatesFilter; + + @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) + createdAt?: DateTimeWithAggregatesFilter; + + @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) + updatedAt?: DateTimeWithAggregatesFilter; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-scalar-where.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-scalar-where.input.ts index 6302441384c..94722656364 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-scalar-where.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-scalar-where.input.ts @@ -1,10 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFilter } from '../prisma/string-filter.input'; -import { DateTimeFilter } from '../prisma/date-time-filter.input'; -import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; import { EnumPipelineProgressableTypeFilter } from '../prisma/enum-pipeline-progressable-type-filter.input'; import { HideField } from '@nestjs/graphql'; +import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; +import { DateTimeFilter } from '../prisma/date-time-filter.input'; @InputType() export class PipelineProgressScalarWhereInput { @@ -21,15 +21,6 @@ export class PipelineProgressScalarWhereInput { @Field(() => StringFilter, {nullable:true}) id?: StringFilter; - @Field(() => DateTimeFilter, {nullable:true}) - createdAt?: DateTimeFilter; - - @Field(() => DateTimeFilter, {nullable:true}) - updatedAt?: DateTimeFilter; - - @Field(() => DateTimeNullableFilter, {nullable:true}) - deletedAt?: DateTimeNullableFilter; - @Field(() => StringFilter, {nullable:true}) pipelineId?: StringFilter; @@ -44,4 +35,13 @@ export class PipelineProgressScalarWhereInput { @HideField() workspaceId?: StringFilter; + + @HideField() + deletedAt?: DateTimeNullableFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + createdAt?: DateTimeFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + updatedAt?: DateTimeFilter; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-create-without-pipeline-stage.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-create-without-pipeline-stage.input.ts index c85c73c37cc..2202c3f5bf5 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-create-without-pipeline-stage.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-create-without-pipeline-stage.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; import { HideField } from '@nestjs/graphql'; @@ -7,17 +8,10 @@ import { HideField } from '@nestjs/graphql'; export class PipelineProgressUncheckedCreateWithoutPipelineStageInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:false}) pipelineId!: string; @@ -29,4 +23,13 @@ export class PipelineProgressUncheckedCreateWithoutPipelineStageInput { @HideField() workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-create-without-pipeline.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-create-without-pipeline.input.ts index 4a4f78f41d6..7ffeb04151c 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-create-without-pipeline.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-create-without-pipeline.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; import { HideField } from '@nestjs/graphql'; @@ -7,17 +8,10 @@ import { HideField } from '@nestjs/graphql'; export class PipelineProgressUncheckedCreateWithoutPipelineInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:false}) pipelineStageId!: string; @@ -29,4 +23,13 @@ export class PipelineProgressUncheckedCreateWithoutPipelineInput { @HideField() workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-create-without-workspace.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-create-without-workspace.input.ts index 8f156d04b69..7b054ebbdf6 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-create-without-workspace.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-create-without-workspace.input.ts @@ -1,22 +1,17 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; +import { HideField } from '@nestjs/graphql'; @InputType() export class PipelineProgressUncheckedCreateWithoutWorkspaceInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:false}) pipelineId!: string; @@ -28,4 +23,13 @@ export class PipelineProgressUncheckedCreateWithoutWorkspaceInput { @Field(() => String, {nullable:false}) progressableId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-create.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-create.input.ts index d36e569f495..a571900dba6 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-create.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-create.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; import { HideField } from '@nestjs/graphql'; @@ -7,17 +8,10 @@ import { HideField } from '@nestjs/graphql'; export class PipelineProgressUncheckedCreateInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:false}) pipelineId!: string; @@ -32,4 +26,13 @@ export class PipelineProgressUncheckedCreateInput { @HideField() workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-update-many-without-pipeline-progresses.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-update-many-without-pipeline-progresses.input.ts index c5d650cfafc..e502343013b 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-update-many-without-pipeline-progresses.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-update-many-without-pipeline-progresses.input.ts @@ -1,9 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class PipelineProgressUncheckedUpdateManyWithoutPipelineProgressesInput { @@ -11,15 +12,6 @@ export class PipelineProgressUncheckedUpdateManyWithoutPipelineProgressesInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) pipelineId?: StringFieldUpdateOperationsInput; @@ -31,4 +23,13 @@ export class PipelineProgressUncheckedUpdateManyWithoutPipelineProgressesInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) progressableId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-update-many.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-update-many.input.ts index 3b13057bc7f..5c97ae69afc 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-update-many.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-update-many.input.ts @@ -1,10 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class PipelineProgressUncheckedUpdateManyInput { @@ -12,15 +12,6 @@ export class PipelineProgressUncheckedUpdateManyInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) pipelineId?: StringFieldUpdateOperationsInput; @@ -35,4 +26,13 @@ export class PipelineProgressUncheckedUpdateManyInput { @HideField() workspaceId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-update-without-pipeline-stage.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-update-without-pipeline-stage.input.ts index 5f39bfc7240..ef8a032fcfb 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-update-without-pipeline-stage.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-update-without-pipeline-stage.input.ts @@ -1,10 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class PipelineProgressUncheckedUpdateWithoutPipelineStageInput { @@ -12,15 +12,6 @@ export class PipelineProgressUncheckedUpdateWithoutPipelineStageInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) pipelineId?: StringFieldUpdateOperationsInput; @@ -32,4 +23,13 @@ export class PipelineProgressUncheckedUpdateWithoutPipelineStageInput { @HideField() workspaceId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-update-without-pipeline.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-update-without-pipeline.input.ts index e2a0aa2f5ac..fd2c518e8c9 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-update-without-pipeline.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-update-without-pipeline.input.ts @@ -1,10 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class PipelineProgressUncheckedUpdateWithoutPipelineInput { @@ -12,15 +12,6 @@ export class PipelineProgressUncheckedUpdateWithoutPipelineInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) pipelineStageId?: StringFieldUpdateOperationsInput; @@ -32,4 +23,13 @@ export class PipelineProgressUncheckedUpdateWithoutPipelineInput { @HideField() workspaceId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-update-without-workspace.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-update-without-workspace.input.ts index bf05920366e..126b7949eb4 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-update-without-workspace.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-update-without-workspace.input.ts @@ -1,9 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class PipelineProgressUncheckedUpdateWithoutWorkspaceInput { @@ -11,15 +12,6 @@ export class PipelineProgressUncheckedUpdateWithoutWorkspaceInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) pipelineId?: StringFieldUpdateOperationsInput; @@ -31,4 +23,13 @@ export class PipelineProgressUncheckedUpdateWithoutWorkspaceInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) progressableId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-update.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-update.input.ts index 1dac35cfa4d..2b582a50799 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-update.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-update.input.ts @@ -1,10 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class PipelineProgressUncheckedUpdateInput { @@ -12,15 +12,6 @@ export class PipelineProgressUncheckedUpdateInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) pipelineId?: StringFieldUpdateOperationsInput; @@ -35,4 +26,13 @@ export class PipelineProgressUncheckedUpdateInput { @HideField() workspaceId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-update-many-mutation.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-update-many-mutation.input.ts index cdbbc4f4b6d..f1903e80361 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-update-many-mutation.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-update-many-mutation.input.ts @@ -1,9 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class PipelineProgressUpdateManyMutationInput { @@ -11,18 +12,18 @@ export class PipelineProgressUpdateManyMutationInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => EnumPipelineProgressableTypeFieldUpdateOperationsInput, {nullable:true}) progressableType?: EnumPipelineProgressableTypeFieldUpdateOperationsInput; @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) progressableId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-update-without-pipeline-stage.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-update-without-pipeline-stage.input.ts index 949596eebb7..f6461c0fa8b 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-update-without-pipeline-stage.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-update-without-pipeline-stage.input.ts @@ -1,12 +1,12 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { PipelineUpdateOneRequiredWithoutPipelineProgressesNestedInput } from '../pipeline/pipeline-update-one-required-without-pipeline-progresses-nested.input'; import { WorkspaceUpdateOneRequiredWithoutPipelineProgressesNestedInput } from '../workspace/workspace-update-one-required-without-pipeline-progresses-nested.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class PipelineProgressUpdateWithoutPipelineStageInput { @@ -14,21 +14,21 @@ export class PipelineProgressUpdateWithoutPipelineStageInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => EnumPipelineProgressableTypeFieldUpdateOperationsInput, {nullable:true}) progressableType?: EnumPipelineProgressableTypeFieldUpdateOperationsInput; @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) progressableId?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => PipelineUpdateOneRequiredWithoutPipelineProgressesNestedInput, {nullable:true}) pipeline?: PipelineUpdateOneRequiredWithoutPipelineProgressesNestedInput; diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-update-without-pipeline.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-update-without-pipeline.input.ts index 0434a65a542..d0fd3000ae7 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-update-without-pipeline.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-update-without-pipeline.input.ts @@ -1,12 +1,12 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { PipelineStageUpdateOneRequiredWithoutPipelineProgressesNestedInput } from '../pipeline-stage/pipeline-stage-update-one-required-without-pipeline-progresses-nested.input'; import { WorkspaceUpdateOneRequiredWithoutPipelineProgressesNestedInput } from '../workspace/workspace-update-one-required-without-pipeline-progresses-nested.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class PipelineProgressUpdateWithoutPipelineInput { @@ -14,21 +14,21 @@ export class PipelineProgressUpdateWithoutPipelineInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => EnumPipelineProgressableTypeFieldUpdateOperationsInput, {nullable:true}) progressableType?: EnumPipelineProgressableTypeFieldUpdateOperationsInput; @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) progressableId?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => PipelineStageUpdateOneRequiredWithoutPipelineProgressesNestedInput, {nullable:true}) pipelineStage?: PipelineStageUpdateOneRequiredWithoutPipelineProgressesNestedInput; diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-update-without-workspace.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-update-without-workspace.input.ts index b2cf12fde30..fef40cd805b 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-update-without-workspace.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-update-without-workspace.input.ts @@ -1,9 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { PipelineUpdateOneRequiredWithoutPipelineProgressesNestedInput } from '../pipeline/pipeline-update-one-required-without-pipeline-progresses-nested.input'; import { PipelineStageUpdateOneRequiredWithoutPipelineProgressesNestedInput } from '../pipeline-stage/pipeline-stage-update-one-required-without-pipeline-progresses-nested.input'; @@ -13,21 +14,21 @@ export class PipelineProgressUpdateWithoutWorkspaceInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => EnumPipelineProgressableTypeFieldUpdateOperationsInput, {nullable:true}) progressableType?: EnumPipelineProgressableTypeFieldUpdateOperationsInput; @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) progressableId?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => PipelineUpdateOneRequiredWithoutPipelineProgressesNestedInput, {nullable:true}) pipeline?: PipelineUpdateOneRequiredWithoutPipelineProgressesNestedInput; diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-update.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-update.input.ts index 2561ece2470..64daa416669 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-update.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-update.input.ts @@ -1,13 +1,13 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { PipelineUpdateOneRequiredWithoutPipelineProgressesNestedInput } from '../pipeline/pipeline-update-one-required-without-pipeline-progresses-nested.input'; import { PipelineStageUpdateOneRequiredWithoutPipelineProgressesNestedInput } from '../pipeline-stage/pipeline-stage-update-one-required-without-pipeline-progresses-nested.input'; import { WorkspaceUpdateOneRequiredWithoutPipelineProgressesNestedInput } from '../workspace/workspace-update-one-required-without-pipeline-progresses-nested.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class PipelineProgressUpdateInput { @@ -15,21 +15,21 @@ export class PipelineProgressUpdateInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => EnumPipelineProgressableTypeFieldUpdateOperationsInput, {nullable:true}) progressableType?: EnumPipelineProgressableTypeFieldUpdateOperationsInput; @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) progressableId?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => PipelineUpdateOneRequiredWithoutPipelineProgressesNestedInput, {nullable:true}) pipeline?: PipelineUpdateOneRequiredWithoutPipelineProgressesNestedInput; diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-where-unique.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-where-unique.input.ts index a91dc30a3a2..49964611f65 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-where-unique.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-where-unique.input.ts @@ -1,9 +1,12 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; @InputType() export class PipelineProgressWhereUniqueInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-where.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-where.input.ts index 63874c98c8a..e9e548a9928 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-where.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-where.input.ts @@ -1,10 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFilter } from '../prisma/string-filter.input'; -import { DateTimeFilter } from '../prisma/date-time-filter.input'; -import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; import { EnumPipelineProgressableTypeFilter } from '../prisma/enum-pipeline-progressable-type-filter.input'; import { HideField } from '@nestjs/graphql'; +import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; +import { DateTimeFilter } from '../prisma/date-time-filter.input'; import { PipelineRelationFilter } from '../pipeline/pipeline-relation-filter.input'; import { PipelineStageRelationFilter } from '../pipeline-stage/pipeline-stage-relation-filter.input'; import { WorkspaceRelationFilter } from '../workspace/workspace-relation-filter.input'; @@ -24,15 +24,6 @@ export class PipelineProgressWhereInput { @Field(() => StringFilter, {nullable:true}) id?: StringFilter; - @Field(() => DateTimeFilter, {nullable:true}) - createdAt?: DateTimeFilter; - - @Field(() => DateTimeFilter, {nullable:true}) - updatedAt?: DateTimeFilter; - - @Field(() => DateTimeNullableFilter, {nullable:true}) - deletedAt?: DateTimeNullableFilter; - @Field(() => StringFilter, {nullable:true}) pipelineId?: StringFilter; @@ -48,6 +39,15 @@ export class PipelineProgressWhereInput { @HideField() workspaceId?: StringFilter; + @HideField() + deletedAt?: DateTimeNullableFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + createdAt?: DateTimeFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + updatedAt?: DateTimeFilter; + @Field(() => PipelineRelationFilter, {nullable:true}) pipeline?: PipelineRelationFilter; diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress.model.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress.model.ts index d19308f0243..c0bb471deaa 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress.model.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress.model.ts @@ -13,15 +13,6 @@ export class PipelineProgress { @Field(() => ID, {nullable:false}) id!: string; - @Field(() => Date, {nullable:false}) - createdAt!: Date; - - @Field(() => Date, {nullable:false}) - updatedAt!: Date; - - @Field(() => Date, {nullable:true}) - deletedAt!: Date | null; - @Field(() => String, {nullable:false}) pipelineId!: string; @@ -37,6 +28,15 @@ export class PipelineProgress { @HideField() workspaceId!: string; + @HideField() + deletedAt!: Date | null; + + @Field(() => Date, {nullable:false}) + createdAt!: Date; + + @Field(() => Date, {nullable:false}) + updatedAt!: Date; + @Field(() => Pipeline, {nullable:false}) pipeline?: Pipeline; diff --git a/server/src/core/@generated/pipeline-progress/update-many-pipeline-progress.args.ts b/server/src/core/@generated/pipeline-progress/update-many-pipeline-progress.args.ts index 0fa59c9c04e..6e2ecd02be0 100644 --- a/server/src/core/@generated/pipeline-progress/update-many-pipeline-progress.args.ts +++ b/server/src/core/@generated/pipeline-progress/update-many-pipeline-progress.args.ts @@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { PipelineProgressUpdateManyMutationInput } from './pipeline-progress-update-many-mutation.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; import { PipelineProgressWhereInput } from './pipeline-progress-where.input'; @ArgsType() @@ -9,6 +10,8 @@ export class UpdateManyPipelineProgressArgs { @Field(() => PipelineProgressUpdateManyMutationInput, {nullable:false}) @Type(() => PipelineProgressUpdateManyMutationInput) + @ValidateNested({each: true}) + @Type(() => PipelineProgressUpdateManyMutationInput) data!: PipelineProgressUpdateManyMutationInput; @Field(() => PipelineProgressWhereInput, {nullable:true}) diff --git a/server/src/core/@generated/pipeline-progress/update-one-pipeline-progress.args.ts b/server/src/core/@generated/pipeline-progress/update-one-pipeline-progress.args.ts index 9097f61a90c..b7fbafe4ba9 100644 --- a/server/src/core/@generated/pipeline-progress/update-one-pipeline-progress.args.ts +++ b/server/src/core/@generated/pipeline-progress/update-one-pipeline-progress.args.ts @@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { PipelineProgressUpdateInput } from './pipeline-progress-update.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; import { PipelineProgressWhereUniqueInput } from './pipeline-progress-where-unique.input'; @ArgsType() @@ -9,6 +10,8 @@ export class UpdateOnePipelineProgressArgs { @Field(() => PipelineProgressUpdateInput, {nullable:false}) @Type(() => PipelineProgressUpdateInput) + @ValidateNested({each: true}) + @Type(() => PipelineProgressUpdateInput) data!: PipelineProgressUpdateInput; @Field(() => PipelineProgressWhereUniqueInput, {nullable:false}) diff --git a/server/src/core/@generated/pipeline-stage/create-many-pipeline-stage.args.ts b/server/src/core/@generated/pipeline-stage/create-many-pipeline-stage.args.ts index 72bc79f956c..92168e92be2 100644 --- a/server/src/core/@generated/pipeline-stage/create-many-pipeline-stage.args.ts +++ b/server/src/core/@generated/pipeline-stage/create-many-pipeline-stage.args.ts @@ -2,12 +2,15 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { PipelineStageCreateManyInput } from './pipeline-stage-create-many.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; @ArgsType() export class CreateManyPipelineStageArgs { @Field(() => [PipelineStageCreateManyInput], {nullable:false}) @Type(() => PipelineStageCreateManyInput) + @ValidateNested({each: true}) + @Type(() => PipelineStageCreateManyInput) data!: Array; @Field(() => Boolean, {nullable:true}) diff --git a/server/src/core/@generated/pipeline-stage/create-one-pipeline-stage.args.ts b/server/src/core/@generated/pipeline-stage/create-one-pipeline-stage.args.ts index c60a2283459..5821b7a4322 100644 --- a/server/src/core/@generated/pipeline-stage/create-one-pipeline-stage.args.ts +++ b/server/src/core/@generated/pipeline-stage/create-one-pipeline-stage.args.ts @@ -2,11 +2,14 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { PipelineStageCreateInput } from './pipeline-stage-create.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; @ArgsType() export class CreateOnePipelineStageArgs { @Field(() => PipelineStageCreateInput, {nullable:false}) @Type(() => PipelineStageCreateInput) + @ValidateNested({each: true}) + @Type(() => PipelineStageCreateInput) data!: PipelineStageCreateInput; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-count-aggregate.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-count-aggregate.input.ts index 7f39c9e37f2..1bb4a676f77 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-count-aggregate.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-count-aggregate.input.ts @@ -8,15 +8,6 @@ export class PipelineStageCountAggregateInput { @Field(() => Boolean, {nullable:true}) id?: true; - @Field(() => Boolean, {nullable:true}) - createdAt?: true; - - @Field(() => Boolean, {nullable:true}) - updatedAt?: true; - - @Field(() => Boolean, {nullable:true}) - deletedAt?: true; - @Field(() => Boolean, {nullable:true}) name?: true; @@ -32,6 +23,15 @@ export class PipelineStageCountAggregateInput { @HideField() workspaceId?: true; + @HideField() + deletedAt?: true; + + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; + @Field(() => Boolean, {nullable:true}) _all?: true; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-count-aggregate.output.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-count-aggregate.output.ts index 079141cedbc..a6804b89005 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-count-aggregate.output.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-count-aggregate.output.ts @@ -9,15 +9,6 @@ export class PipelineStageCountAggregate { @Field(() => Int, {nullable:false}) id!: number; - @Field(() => Int, {nullable:false}) - createdAt!: number; - - @Field(() => Int, {nullable:false}) - updatedAt!: number; - - @Field(() => Int, {nullable:false}) - deletedAt!: number; - @Field(() => Int, {nullable:false}) name!: number; @@ -33,6 +24,15 @@ export class PipelineStageCountAggregate { @HideField() workspaceId!: number; + @HideField() + deletedAt!: number; + + @Field(() => Int, {nullable:false}) + createdAt!: number; + + @Field(() => Int, {nullable:false}) + updatedAt!: number; + @Field(() => Int, {nullable:false}) _all!: number; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-count-order-by-aggregate.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-count-order-by-aggregate.input.ts index f33d17527ec..f495a314967 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-count-order-by-aggregate.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-count-order-by-aggregate.input.ts @@ -9,15 +9,6 @@ export class PipelineStageCountOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) name?: keyof typeof SortOrder; @@ -32,4 +23,13 @@ export class PipelineStageCountOrderByAggregateInput { @HideField() workspaceId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-create-many-pipeline.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-create-many-pipeline.input.ts index a6a2a5c03bc..7856aebcaed 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-create-many-pipeline.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-create-many-pipeline.input.ts @@ -1,31 +1,37 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @InputType() export class PipelineStageCreateManyPipelineInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + name!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + type!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + color!: string; + + @HideField() + workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - name!: string; - - @Field(() => String, {nullable:false}) - type!: string; - - @Field(() => String, {nullable:false}) - color!: string; - - @HideField() - workspaceId!: string; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-create-many-workspace.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-create-many-workspace.input.ts index ed6d099953a..b1a0b5cae8a 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-create-many-workspace.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-create-many-workspace.input.ts @@ -1,30 +1,37 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; @InputType() export class PipelineStageCreateManyWorkspaceInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + name!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + type!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + color!: string; + + @Field(() => String, {nullable:false}) + pipelineId!: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - name!: string; - - @Field(() => String, {nullable:false}) - type!: string; - - @Field(() => String, {nullable:false}) - color!: string; - - @Field(() => String, {nullable:false}) - pipelineId!: string; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-create-many.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-create-many.input.ts index cbdb4743ecf..c041f28c295 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-create-many.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-create-many.input.ts @@ -1,29 +1,26 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @InputType() export class PipelineStageCreateManyInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:false}) + @Validator.IsString() name!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() type!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() color!: string; @Field(() => String, {nullable:false}) @@ -31,4 +28,13 @@ export class PipelineStageCreateManyInput { @HideField() workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-create-without-pipeline-progresses.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-create-without-pipeline-progresses.input.ts index edd88c28967..3f656cf8327 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-create-without-pipeline-progresses.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-create-without-pipeline-progresses.input.ts @@ -1,33 +1,39 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; import { PipelineCreateNestedOneWithoutPipelineStagesInput } from '../pipeline/pipeline-create-nested-one-without-pipeline-stages.input'; import { WorkspaceCreateNestedOneWithoutPipelineStagesInput } from '../workspace/workspace-create-nested-one-without-pipeline-stages.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class PipelineStageCreateWithoutPipelineProgressesInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + name!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + type!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + color!: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - name!: string; - - @Field(() => String, {nullable:false}) - type!: string; - - @Field(() => String, {nullable:false}) - color!: string; - @Field(() => PipelineCreateNestedOneWithoutPipelineStagesInput, {nullable:false}) pipeline!: PipelineCreateNestedOneWithoutPipelineStagesInput; diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-create-without-pipeline.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-create-without-pipeline.input.ts index 409b2ae1f9f..ea156775f57 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-create-without-pipeline.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-create-without-pipeline.input.ts @@ -1,33 +1,39 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; import { PipelineProgressCreateNestedManyWithoutPipelineStageInput } from '../pipeline-progress/pipeline-progress-create-nested-many-without-pipeline-stage.input'; import { WorkspaceCreateNestedOneWithoutPipelineStagesInput } from '../workspace/workspace-create-nested-one-without-pipeline-stages.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class PipelineStageCreateWithoutPipelineInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + name!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + type!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + color!: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - name!: string; - - @Field(() => String, {nullable:false}) - type!: string; - - @Field(() => String, {nullable:false}) - color!: string; - @Field(() => PipelineProgressCreateNestedManyWithoutPipelineStageInput, {nullable:true}) pipelineProgresses?: PipelineProgressCreateNestedManyWithoutPipelineStageInput; diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-create-without-workspace.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-create-without-workspace.input.ts index 3ca707b739a..8541319f645 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-create-without-workspace.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-create-without-workspace.input.ts @@ -1,35 +1,42 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; -import { PipelineCreateNestedOneWithoutPipelineStagesInput } from '../pipeline/pipeline-create-nested-one-without-pipeline-stages.input'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; import { PipelineProgressCreateNestedManyWithoutPipelineStageInput } from '../pipeline-progress/pipeline-progress-create-nested-many-without-pipeline-stage.input'; +import { PipelineCreateNestedOneWithoutPipelineStagesInput } from '../pipeline/pipeline-create-nested-one-without-pipeline-stages.input'; @InputType() export class PipelineStageCreateWithoutWorkspaceInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + name!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + type!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + color!: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - name!: string; - - @Field(() => String, {nullable:false}) - type!: string; - - @Field(() => String, {nullable:false}) - color!: string; + @Field(() => PipelineProgressCreateNestedManyWithoutPipelineStageInput, {nullable:true}) + pipelineProgresses?: PipelineProgressCreateNestedManyWithoutPipelineStageInput; @Field(() => PipelineCreateNestedOneWithoutPipelineStagesInput, {nullable:false}) pipeline!: PipelineCreateNestedOneWithoutPipelineStagesInput; - - @Field(() => PipelineProgressCreateNestedManyWithoutPipelineStageInput, {nullable:true}) - pipelineProgresses?: PipelineProgressCreateNestedManyWithoutPipelineStageInput; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-create.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-create.input.ts index e69f43717d8..f1f74472dc1 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-create.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-create.input.ts @@ -1,40 +1,46 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; -import { PipelineCreateNestedOneWithoutPipelineStagesInput } from '../pipeline/pipeline-create-nested-one-without-pipeline-stages.input'; -import { PipelineProgressCreateNestedManyWithoutPipelineStageInput } from '../pipeline-progress/pipeline-progress-create-nested-many-without-pipeline-stage.input'; -import { WorkspaceCreateNestedOneWithoutPipelineStagesInput } from '../workspace/workspace-create-nested-one-without-pipeline-stages.input'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; +import { PipelineProgressCreateNestedManyWithoutPipelineStageInput } from '../pipeline-progress/pipeline-progress-create-nested-many-without-pipeline-stage.input'; +import { PipelineCreateNestedOneWithoutPipelineStagesInput } from '../pipeline/pipeline-create-nested-one-without-pipeline-stages.input'; +import { WorkspaceCreateNestedOneWithoutPipelineStagesInput } from '../workspace/workspace-create-nested-one-without-pipeline-stages.input'; @InputType() export class PipelineStageCreateInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + name!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + type!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + color!: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - name!: string; - - @Field(() => String, {nullable:false}) - type!: string; - - @Field(() => String, {nullable:false}) - color!: string; + @Field(() => PipelineProgressCreateNestedManyWithoutPipelineStageInput, {nullable:true}) + pipelineProgresses?: PipelineProgressCreateNestedManyWithoutPipelineStageInput; @Field(() => PipelineCreateNestedOneWithoutPipelineStagesInput, {nullable:false}) pipeline!: PipelineCreateNestedOneWithoutPipelineStagesInput; - @Field(() => PipelineProgressCreateNestedManyWithoutPipelineStageInput, {nullable:true}) - pipelineProgresses?: PipelineProgressCreateNestedManyWithoutPipelineStageInput; - @HideField() workspace!: WorkspaceCreateNestedOneWithoutPipelineStagesInput; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-group-by.output.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-group-by.output.ts index 2307ee3f68b..3bac6bc21dc 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-group-by.output.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-group-by.output.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; import { PipelineStageCountAggregate } from './pipeline-stage-count-aggregate.output'; import { PipelineStageMinAggregate } from './pipeline-stage-min-aggregate.output'; @@ -9,24 +10,20 @@ import { PipelineStageMaxAggregate } from './pipeline-stage-max-aggregate.output export class PipelineStageGroupBy { @Field(() => String, {nullable:false}) + @Validator.IsString() + @Validator.IsOptional() id!: string; - @Field(() => Date, {nullable:false}) - createdAt!: Date | string; - - @Field(() => Date, {nullable:false}) - updatedAt!: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:false}) + @Validator.IsString() name!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() type!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() color!: string; @Field(() => String, {nullable:false}) @@ -35,6 +32,15 @@ export class PipelineStageGroupBy { @HideField() workspaceId!: string; + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:false}) + createdAt!: Date | string; + + @Field(() => Date, {nullable:false}) + updatedAt!: Date | string; + @Field(() => PipelineStageCountAggregate, {nullable:true}) _count?: PipelineStageCountAggregate; diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-max-aggregate.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-max-aggregate.input.ts index 0318bbae889..9b0f60095e7 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-max-aggregate.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-max-aggregate.input.ts @@ -8,15 +8,6 @@ export class PipelineStageMaxAggregateInput { @Field(() => Boolean, {nullable:true}) id?: true; - @Field(() => Boolean, {nullable:true}) - createdAt?: true; - - @Field(() => Boolean, {nullable:true}) - updatedAt?: true; - - @Field(() => Boolean, {nullable:true}) - deletedAt?: true; - @Field(() => Boolean, {nullable:true}) name?: true; @@ -31,4 +22,13 @@ export class PipelineStageMaxAggregateInput { @HideField() workspaceId?: true; + + @HideField() + deletedAt?: true; + + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-max-aggregate.output.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-max-aggregate.output.ts index 65f754382a9..ededb7d0429 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-max-aggregate.output.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-max-aggregate.output.ts @@ -1,29 +1,26 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @ObjectType() export class PipelineStageMaxAggregate { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:true}) + @Validator.IsString() name?: string; @Field(() => String, {nullable:true}) + @Validator.IsString() type?: string; @Field(() => String, {nullable:true}) + @Validator.IsString() color?: string; @Field(() => String, {nullable:true}) @@ -31,4 +28,13 @@ export class PipelineStageMaxAggregate { @HideField() workspaceId?: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-max-order-by-aggregate.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-max-order-by-aggregate.input.ts index 34763c410ee..a6e3adf28b8 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-max-order-by-aggregate.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-max-order-by-aggregate.input.ts @@ -9,15 +9,6 @@ export class PipelineStageMaxOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) name?: keyof typeof SortOrder; @@ -32,4 +23,13 @@ export class PipelineStageMaxOrderByAggregateInput { @HideField() workspaceId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-min-aggregate.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-min-aggregate.input.ts index 90ffc05adb2..baded783763 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-min-aggregate.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-min-aggregate.input.ts @@ -8,15 +8,6 @@ export class PipelineStageMinAggregateInput { @Field(() => Boolean, {nullable:true}) id?: true; - @Field(() => Boolean, {nullable:true}) - createdAt?: true; - - @Field(() => Boolean, {nullable:true}) - updatedAt?: true; - - @Field(() => Boolean, {nullable:true}) - deletedAt?: true; - @Field(() => Boolean, {nullable:true}) name?: true; @@ -31,4 +22,13 @@ export class PipelineStageMinAggregateInput { @HideField() workspaceId?: true; + + @HideField() + deletedAt?: true; + + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-min-aggregate.output.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-min-aggregate.output.ts index 380a4a6c092..26a8808542f 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-min-aggregate.output.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-min-aggregate.output.ts @@ -1,29 +1,26 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @ObjectType() export class PipelineStageMinAggregate { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:true}) + @Validator.IsString() name?: string; @Field(() => String, {nullable:true}) + @Validator.IsString() type?: string; @Field(() => String, {nullable:true}) + @Validator.IsString() color?: string; @Field(() => String, {nullable:true}) @@ -31,4 +28,13 @@ export class PipelineStageMinAggregate { @HideField() workspaceId?: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-min-order-by-aggregate.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-min-order-by-aggregate.input.ts index 832665cbf0a..ec3e7862e76 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-min-order-by-aggregate.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-min-order-by-aggregate.input.ts @@ -9,15 +9,6 @@ export class PipelineStageMinOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) name?: keyof typeof SortOrder; @@ -32,4 +23,13 @@ export class PipelineStageMinOrderByAggregateInput { @HideField() workspaceId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-order-by-with-aggregation.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-order-by-with-aggregation.input.ts index 010b953c5d7..bbe829d1c79 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-order-by-with-aggregation.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-order-by-with-aggregation.input.ts @@ -12,15 +12,6 @@ export class PipelineStageOrderByWithAggregationInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) name?: keyof typeof SortOrder; @@ -36,6 +27,15 @@ export class PipelineStageOrderByWithAggregationInput { @HideField() workspaceId?: keyof typeof SortOrder; + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; + @Field(() => PipelineStageCountOrderByAggregateInput, {nullable:true}) _count?: PipelineStageCountOrderByAggregateInput; diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-order-by-with-relation.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-order-by-with-relation.input.ts index fe0562b352e..e14e1967d1c 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-order-by-with-relation.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-order-by-with-relation.input.ts @@ -2,8 +2,8 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { SortOrder } from '../prisma/sort-order.enum'; import { HideField } from '@nestjs/graphql'; -import { PipelineOrderByWithRelationInput } from '../pipeline/pipeline-order-by-with-relation.input'; import { PipelineProgressOrderByRelationAggregateInput } from '../pipeline-progress/pipeline-progress-order-by-relation-aggregate.input'; +import { PipelineOrderByWithRelationInput } from '../pipeline/pipeline-order-by-with-relation.input'; import { WorkspaceOrderByWithRelationInput } from '../workspace/workspace-order-by-with-relation.input'; @InputType() @@ -12,15 +12,6 @@ export class PipelineStageOrderByWithRelationInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) name?: keyof typeof SortOrder; @@ -36,12 +27,21 @@ export class PipelineStageOrderByWithRelationInput { @HideField() workspaceId?: keyof typeof SortOrder; - @Field(() => PipelineOrderByWithRelationInput, {nullable:true}) - pipeline?: PipelineOrderByWithRelationInput; + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; @Field(() => PipelineProgressOrderByRelationAggregateInput, {nullable:true}) pipelineProgresses?: PipelineProgressOrderByRelationAggregateInput; + @Field(() => PipelineOrderByWithRelationInput, {nullable:true}) + pipeline?: PipelineOrderByWithRelationInput; + @HideField() workspace?: WorkspaceOrderByWithRelationInput; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-scalar-field.enum.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-scalar-field.enum.ts index b96f52883d3..6f1a53a74d7 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-scalar-field.enum.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-scalar-field.enum.ts @@ -2,14 +2,14 @@ import { registerEnumType } from '@nestjs/graphql'; export enum PipelineStageScalarFieldEnum { id = "id", - createdAt = "createdAt", - updatedAt = "updatedAt", - deletedAt = "deletedAt", name = "name", type = "type", color = "color", pipelineId = "pipelineId", - workspaceId = "workspaceId" + workspaceId = "workspaceId", + deletedAt = "deletedAt", + createdAt = "createdAt", + updatedAt = "updatedAt" } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-scalar-where-with-aggregates.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-scalar-where-with-aggregates.input.ts index 33a3f72b753..eb797407633 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-scalar-where-with-aggregates.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-scalar-where-with-aggregates.input.ts @@ -1,9 +1,9 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringWithAggregatesFilter } from '../prisma/string-with-aggregates-filter.input'; -import { DateTimeWithAggregatesFilter } from '../prisma/date-time-with-aggregates-filter.input'; -import { DateTimeNullableWithAggregatesFilter } from '../prisma/date-time-nullable-with-aggregates-filter.input'; import { HideField } from '@nestjs/graphql'; +import { DateTimeNullableWithAggregatesFilter } from '../prisma/date-time-nullable-with-aggregates-filter.input'; +import { DateTimeWithAggregatesFilter } from '../prisma/date-time-with-aggregates-filter.input'; @InputType() export class PipelineStageScalarWhereWithAggregatesInput { @@ -20,15 +20,6 @@ export class PipelineStageScalarWhereWithAggregatesInput { @Field(() => StringWithAggregatesFilter, {nullable:true}) id?: StringWithAggregatesFilter; - @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) - createdAt?: DateTimeWithAggregatesFilter; - - @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) - updatedAt?: DateTimeWithAggregatesFilter; - - @Field(() => DateTimeNullableWithAggregatesFilter, {nullable:true}) - deletedAt?: DateTimeNullableWithAggregatesFilter; - @Field(() => StringWithAggregatesFilter, {nullable:true}) name?: StringWithAggregatesFilter; @@ -43,4 +34,13 @@ export class PipelineStageScalarWhereWithAggregatesInput { @HideField() workspaceId?: StringWithAggregatesFilter; + + @HideField() + deletedAt?: DateTimeNullableWithAggregatesFilter; + + @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) + createdAt?: DateTimeWithAggregatesFilter; + + @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) + updatedAt?: DateTimeWithAggregatesFilter; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-scalar-where.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-scalar-where.input.ts index a4640688f0a..712d6ed04c7 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-scalar-where.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-scalar-where.input.ts @@ -1,9 +1,9 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFilter } from '../prisma/string-filter.input'; -import { DateTimeFilter } from '../prisma/date-time-filter.input'; -import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; import { HideField } from '@nestjs/graphql'; +import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; +import { DateTimeFilter } from '../prisma/date-time-filter.input'; @InputType() export class PipelineStageScalarWhereInput { @@ -20,15 +20,6 @@ export class PipelineStageScalarWhereInput { @Field(() => StringFilter, {nullable:true}) id?: StringFilter; - @Field(() => DateTimeFilter, {nullable:true}) - createdAt?: DateTimeFilter; - - @Field(() => DateTimeFilter, {nullable:true}) - updatedAt?: DateTimeFilter; - - @Field(() => DateTimeNullableFilter, {nullable:true}) - deletedAt?: DateTimeNullableFilter; - @Field(() => StringFilter, {nullable:true}) name?: StringFilter; @@ -43,4 +34,13 @@ export class PipelineStageScalarWhereInput { @HideField() workspaceId?: StringFilter; + + @HideField() + deletedAt?: DateTimeNullableFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + createdAt?: DateTimeFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + updatedAt?: DateTimeFilter; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-create-without-pipeline-progresses.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-create-without-pipeline-progresses.input.ts index 69b83f8ff55..c1e93b71f4b 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-create-without-pipeline-progresses.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-create-without-pipeline-progresses.input.ts @@ -1,29 +1,26 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @InputType() export class PipelineStageUncheckedCreateWithoutPipelineProgressesInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:false}) + @Validator.IsString() name!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() type!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() color!: string; @Field(() => String, {nullable:false}) @@ -31,4 +28,13 @@ export class PipelineStageUncheckedCreateWithoutPipelineProgressesInput { @HideField() workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-create-without-pipeline.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-create-without-pipeline.input.ts index e109520e4bb..b2c6de3eb25 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-create-without-pipeline.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-create-without-pipeline.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; import { PipelineProgressUncheckedCreateNestedManyWithoutPipelineStageInput } from '../pipeline-progress/pipeline-progress-unchecked-create-nested-many-without-pipeline-stage.input'; @@ -7,29 +8,34 @@ import { PipelineProgressUncheckedCreateNestedManyWithoutPipelineStageInput } fr export class PipelineStageUncheckedCreateWithoutPipelineInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + name!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + type!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + color!: string; + + @HideField() + workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - name!: string; - - @Field(() => String, {nullable:false}) - type!: string; - - @Field(() => String, {nullable:false}) - color!: string; - - @HideField() - workspaceId!: string; - @Field(() => PipelineProgressUncheckedCreateNestedManyWithoutPipelineStageInput, {nullable:true}) pipelineProgresses?: PipelineProgressUncheckedCreateNestedManyWithoutPipelineStageInput; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-create-without-workspace.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-create-without-workspace.input.ts index 96e2ff10da2..b2249e733cb 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-create-without-workspace.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-create-without-workspace.input.ts @@ -1,34 +1,41 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; import { PipelineProgressUncheckedCreateNestedManyWithoutPipelineStageInput } from '../pipeline-progress/pipeline-progress-unchecked-create-nested-many-without-pipeline-stage.input'; @InputType() export class PipelineStageUncheckedCreateWithoutWorkspaceInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + name!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + type!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + color!: string; + + @Field(() => String, {nullable:false}) + pipelineId!: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - name!: string; - - @Field(() => String, {nullable:false}) - type!: string; - - @Field(() => String, {nullable:false}) - color!: string; - - @Field(() => String, {nullable:false}) - pipelineId!: string; - @Field(() => PipelineProgressUncheckedCreateNestedManyWithoutPipelineStageInput, {nullable:true}) pipelineProgresses?: PipelineProgressUncheckedCreateNestedManyWithoutPipelineStageInput; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-create.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-create.input.ts index b5b735fc9c1..41fa54d34b2 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-create.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-create.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; import { PipelineProgressUncheckedCreateNestedManyWithoutPipelineStageInput } from '../pipeline-progress/pipeline-progress-unchecked-create-nested-many-without-pipeline-stage.input'; @@ -7,24 +8,20 @@ import { PipelineProgressUncheckedCreateNestedManyWithoutPipelineStageInput } fr export class PipelineStageUncheckedCreateInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:false}) + @Validator.IsString() name!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() type!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() color!: string; @Field(() => String, {nullable:false}) @@ -33,6 +30,15 @@ export class PipelineStageUncheckedCreateInput { @HideField() workspaceId!: string; + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; + @Field(() => PipelineProgressUncheckedCreateNestedManyWithoutPipelineStageInput, {nullable:true}) pipelineProgresses?: PipelineProgressUncheckedCreateNestedManyWithoutPipelineStageInput; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-update-many-without-pipeline-stages.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-update-many-without-pipeline-stages.input.ts index 65583416fcc..94054bcb1b2 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-update-many-without-pipeline-stages.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-update-many-without-pipeline-stages.input.ts @@ -1,8 +1,9 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class PipelineStageUncheckedUpdateManyWithoutPipelineStagesInput { @@ -10,15 +11,6 @@ export class PipelineStageUncheckedUpdateManyWithoutPipelineStagesInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) name?: StringFieldUpdateOperationsInput; @@ -30,4 +22,13 @@ export class PipelineStageUncheckedUpdateManyWithoutPipelineStagesInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) pipelineId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-update-many.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-update-many.input.ts index fab8a3b1efa..dd2c461ae74 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-update-many.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-update-many.input.ts @@ -1,9 +1,9 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class PipelineStageUncheckedUpdateManyInput { @@ -11,15 +11,6 @@ export class PipelineStageUncheckedUpdateManyInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) name?: StringFieldUpdateOperationsInput; @@ -34,4 +25,13 @@ export class PipelineStageUncheckedUpdateManyInput { @HideField() workspaceId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-update-without-pipeline-progresses.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-update-without-pipeline-progresses.input.ts index cbeb4ffe9a4..1b5efa69006 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-update-without-pipeline-progresses.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-update-without-pipeline-progresses.input.ts @@ -1,9 +1,9 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class PipelineStageUncheckedUpdateWithoutPipelineProgressesInput { @@ -11,15 +11,6 @@ export class PipelineStageUncheckedUpdateWithoutPipelineProgressesInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) name?: StringFieldUpdateOperationsInput; @@ -34,4 +25,13 @@ export class PipelineStageUncheckedUpdateWithoutPipelineProgressesInput { @HideField() workspaceId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-update-without-pipeline.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-update-without-pipeline.input.ts index a0efd1e24dd..0c4d93d8d38 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-update-without-pipeline.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-update-without-pipeline.input.ts @@ -1,9 +1,9 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { PipelineProgressUncheckedUpdateManyWithoutPipelineStageNestedInput } from '../pipeline-progress/pipeline-progress-unchecked-update-many-without-pipeline-stage-nested.input'; @InputType() @@ -12,15 +12,6 @@ export class PipelineStageUncheckedUpdateWithoutPipelineInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) name?: StringFieldUpdateOperationsInput; @@ -33,6 +24,15 @@ export class PipelineStageUncheckedUpdateWithoutPipelineInput { @HideField() workspaceId?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => PipelineProgressUncheckedUpdateManyWithoutPipelineStageNestedInput, {nullable:true}) pipelineProgresses?: PipelineProgressUncheckedUpdateManyWithoutPipelineStageNestedInput; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-update-without-workspace.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-update-without-workspace.input.ts index d60f810fa7e..46f87868d7b 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-update-without-workspace.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-update-without-workspace.input.ts @@ -1,8 +1,9 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { PipelineProgressUncheckedUpdateManyWithoutPipelineStageNestedInput } from '../pipeline-progress/pipeline-progress-unchecked-update-many-without-pipeline-stage-nested.input'; @InputType() @@ -11,15 +12,6 @@ export class PipelineStageUncheckedUpdateWithoutWorkspaceInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) name?: StringFieldUpdateOperationsInput; @@ -32,6 +24,15 @@ export class PipelineStageUncheckedUpdateWithoutWorkspaceInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) pipelineId?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => PipelineProgressUncheckedUpdateManyWithoutPipelineStageNestedInput, {nullable:true}) pipelineProgresses?: PipelineProgressUncheckedUpdateManyWithoutPipelineStageNestedInput; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-update.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-update.input.ts index 5e0386195ce..bb918bd0e22 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-update.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-update.input.ts @@ -1,9 +1,9 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { PipelineProgressUncheckedUpdateManyWithoutPipelineStageNestedInput } from '../pipeline-progress/pipeline-progress-unchecked-update-many-without-pipeline-stage-nested.input'; @InputType() @@ -12,15 +12,6 @@ export class PipelineStageUncheckedUpdateInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) name?: StringFieldUpdateOperationsInput; @@ -36,6 +27,15 @@ export class PipelineStageUncheckedUpdateInput { @HideField() workspaceId?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => PipelineProgressUncheckedUpdateManyWithoutPipelineStageNestedInput, {nullable:true}) pipelineProgresses?: PipelineProgressUncheckedUpdateManyWithoutPipelineStageNestedInput; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-update-many-mutation.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-update-many-mutation.input.ts index 24b3025bf86..e66f15e7807 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-update-many-mutation.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-update-many-mutation.input.ts @@ -1,8 +1,9 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class PipelineStageUpdateManyMutationInput { @@ -10,15 +11,6 @@ export class PipelineStageUpdateManyMutationInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) name?: StringFieldUpdateOperationsInput; @@ -27,4 +19,13 @@ export class PipelineStageUpdateManyMutationInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) color?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-update-without-pipeline-progresses.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-update-without-pipeline-progresses.input.ts index 9b8727b1a9d..44bd90d6022 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-update-without-pipeline-progresses.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-update-without-pipeline-progresses.input.ts @@ -1,11 +1,11 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { PipelineUpdateOneRequiredWithoutPipelineStagesNestedInput } from '../pipeline/pipeline-update-one-required-without-pipeline-stages-nested.input'; import { WorkspaceUpdateOneRequiredWithoutPipelineStagesNestedInput } from '../workspace/workspace-update-one-required-without-pipeline-stages-nested.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class PipelineStageUpdateWithoutPipelineProgressesInput { @@ -13,15 +13,6 @@ export class PipelineStageUpdateWithoutPipelineProgressesInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) name?: StringFieldUpdateOperationsInput; @@ -31,6 +22,15 @@ export class PipelineStageUpdateWithoutPipelineProgressesInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) color?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => PipelineUpdateOneRequiredWithoutPipelineStagesNestedInput, {nullable:true}) pipeline?: PipelineUpdateOneRequiredWithoutPipelineStagesNestedInput; diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-update-without-pipeline.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-update-without-pipeline.input.ts index aa925c727a7..408111514a5 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-update-without-pipeline.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-update-without-pipeline.input.ts @@ -1,11 +1,11 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { PipelineProgressUpdateManyWithoutPipelineStageNestedInput } from '../pipeline-progress/pipeline-progress-update-many-without-pipeline-stage-nested.input'; import { WorkspaceUpdateOneRequiredWithoutPipelineStagesNestedInput } from '../workspace/workspace-update-one-required-without-pipeline-stages-nested.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class PipelineStageUpdateWithoutPipelineInput { @@ -13,15 +13,6 @@ export class PipelineStageUpdateWithoutPipelineInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) name?: StringFieldUpdateOperationsInput; @@ -31,6 +22,15 @@ export class PipelineStageUpdateWithoutPipelineInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) color?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => PipelineProgressUpdateManyWithoutPipelineStageNestedInput, {nullable:true}) pipelineProgresses?: PipelineProgressUpdateManyWithoutPipelineStageNestedInput; diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-update-without-workspace.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-update-without-workspace.input.ts index d045278884f..9a697f7e6d7 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-update-without-workspace.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-update-without-workspace.input.ts @@ -1,10 +1,11 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; -import { PipelineUpdateOneRequiredWithoutPipelineStagesNestedInput } from '../pipeline/pipeline-update-one-required-without-pipeline-stages-nested.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { PipelineProgressUpdateManyWithoutPipelineStageNestedInput } from '../pipeline-progress/pipeline-progress-update-many-without-pipeline-stage-nested.input'; +import { PipelineUpdateOneRequiredWithoutPipelineStagesNestedInput } from '../pipeline/pipeline-update-one-required-without-pipeline-stages-nested.input'; @InputType() export class PipelineStageUpdateWithoutWorkspaceInput { @@ -12,15 +13,6 @@ export class PipelineStageUpdateWithoutWorkspaceInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) name?: StringFieldUpdateOperationsInput; @@ -30,9 +22,18 @@ export class PipelineStageUpdateWithoutWorkspaceInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) color?: StringFieldUpdateOperationsInput; - @Field(() => PipelineUpdateOneRequiredWithoutPipelineStagesNestedInput, {nullable:true}) - pipeline?: PipelineUpdateOneRequiredWithoutPipelineStagesNestedInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; @Field(() => PipelineProgressUpdateManyWithoutPipelineStageNestedInput, {nullable:true}) pipelineProgresses?: PipelineProgressUpdateManyWithoutPipelineStageNestedInput; + + @Field(() => PipelineUpdateOneRequiredWithoutPipelineStagesNestedInput, {nullable:true}) + pipeline?: PipelineUpdateOneRequiredWithoutPipelineStagesNestedInput; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-update.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-update.input.ts index 71d49c518a7..21b3c95a60b 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-update.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-update.input.ts @@ -1,12 +1,12 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; -import { PipelineUpdateOneRequiredWithoutPipelineStagesNestedInput } from '../pipeline/pipeline-update-one-required-without-pipeline-stages-nested.input'; -import { PipelineProgressUpdateManyWithoutPipelineStageNestedInput } from '../pipeline-progress/pipeline-progress-update-many-without-pipeline-stage-nested.input'; -import { WorkspaceUpdateOneRequiredWithoutPipelineStagesNestedInput } from '../workspace/workspace-update-one-required-without-pipeline-stages-nested.input'; import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; +import { PipelineProgressUpdateManyWithoutPipelineStageNestedInput } from '../pipeline-progress/pipeline-progress-update-many-without-pipeline-stage-nested.input'; +import { PipelineUpdateOneRequiredWithoutPipelineStagesNestedInput } from '../pipeline/pipeline-update-one-required-without-pipeline-stages-nested.input'; +import { WorkspaceUpdateOneRequiredWithoutPipelineStagesNestedInput } from '../workspace/workspace-update-one-required-without-pipeline-stages-nested.input'; @InputType() export class PipelineStageUpdateInput { @@ -14,15 +14,6 @@ export class PipelineStageUpdateInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) name?: StringFieldUpdateOperationsInput; @@ -32,12 +23,21 @@ export class PipelineStageUpdateInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) color?: StringFieldUpdateOperationsInput; - @Field(() => PipelineUpdateOneRequiredWithoutPipelineStagesNestedInput, {nullable:true}) - pipeline?: PipelineUpdateOneRequiredWithoutPipelineStagesNestedInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; @Field(() => PipelineProgressUpdateManyWithoutPipelineStageNestedInput, {nullable:true}) pipelineProgresses?: PipelineProgressUpdateManyWithoutPipelineStageNestedInput; + @Field(() => PipelineUpdateOneRequiredWithoutPipelineStagesNestedInput, {nullable:true}) + pipeline?: PipelineUpdateOneRequiredWithoutPipelineStagesNestedInput; + @HideField() workspace?: WorkspaceUpdateOneRequiredWithoutPipelineStagesNestedInput; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-where-unique.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-where-unique.input.ts index 16976ed7a02..71e4cf1c869 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-where-unique.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-where-unique.input.ts @@ -1,9 +1,12 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; @InputType() export class PipelineStageWhereUniqueInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-where.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-where.input.ts index 5d3308aaeaf..eb97b3236b3 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-where.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-where.input.ts @@ -1,11 +1,11 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFilter } from '../prisma/string-filter.input'; -import { DateTimeFilter } from '../prisma/date-time-filter.input'; -import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; import { HideField } from '@nestjs/graphql'; -import { PipelineRelationFilter } from '../pipeline/pipeline-relation-filter.input'; +import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; +import { DateTimeFilter } from '../prisma/date-time-filter.input'; import { PipelineProgressListRelationFilter } from '../pipeline-progress/pipeline-progress-list-relation-filter.input'; +import { PipelineRelationFilter } from '../pipeline/pipeline-relation-filter.input'; import { WorkspaceRelationFilter } from '../workspace/workspace-relation-filter.input'; @InputType() @@ -23,15 +23,6 @@ export class PipelineStageWhereInput { @Field(() => StringFilter, {nullable:true}) id?: StringFilter; - @Field(() => DateTimeFilter, {nullable:true}) - createdAt?: DateTimeFilter; - - @Field(() => DateTimeFilter, {nullable:true}) - updatedAt?: DateTimeFilter; - - @Field(() => DateTimeNullableFilter, {nullable:true}) - deletedAt?: DateTimeNullableFilter; - @Field(() => StringFilter, {nullable:true}) name?: StringFilter; @@ -47,12 +38,21 @@ export class PipelineStageWhereInput { @HideField() workspaceId?: StringFilter; - @Field(() => PipelineRelationFilter, {nullable:true}) - pipeline?: PipelineRelationFilter; + @HideField() + deletedAt?: DateTimeNullableFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + createdAt?: DateTimeFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + updatedAt?: DateTimeFilter; @Field(() => PipelineProgressListRelationFilter, {nullable:true}) pipelineProgresses?: PipelineProgressListRelationFilter; + @Field(() => PipelineRelationFilter, {nullable:true}) + pipeline?: PipelineRelationFilter; + @HideField() workspace?: WorkspaceRelationFilter; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage.model.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage.model.ts index b1ee05e04c4..cd06a877ff7 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage.model.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage.model.ts @@ -2,8 +2,8 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; import { ID } from '@nestjs/graphql'; import { HideField } from '@nestjs/graphql'; -import { Pipeline } from '../pipeline/pipeline.model'; import { PipelineProgress } from '../pipeline-progress/pipeline-progress.model'; +import { Pipeline } from '../pipeline/pipeline.model'; import { Workspace } from '../workspace/workspace.model'; import { PipelineStageCount } from './pipeline-stage-count.output'; @@ -13,15 +13,6 @@ export class PipelineStage { @Field(() => ID, {nullable:false}) id!: string; - @Field(() => Date, {nullable:false}) - createdAt!: Date; - - @Field(() => Date, {nullable:false}) - updatedAt!: Date; - - @Field(() => Date, {nullable:true}) - deletedAt!: Date | null; - @Field(() => String, {nullable:false}) name!: string; @@ -37,12 +28,21 @@ export class PipelineStage { @HideField() workspaceId!: string; - @Field(() => Pipeline, {nullable:false}) - pipeline?: Pipeline; + @HideField() + deletedAt!: Date | null; + + @Field(() => Date, {nullable:false}) + createdAt!: Date; + + @Field(() => Date, {nullable:false}) + updatedAt!: Date; @Field(() => [PipelineProgress], {nullable:true}) pipelineProgresses?: Array; + @Field(() => Pipeline, {nullable:false}) + pipeline?: Pipeline; + @HideField() workspace?: Workspace; diff --git a/server/src/core/@generated/pipeline-stage/update-many-pipeline-stage.args.ts b/server/src/core/@generated/pipeline-stage/update-many-pipeline-stage.args.ts index 0ab03da1f34..ce2c3fc9a94 100644 --- a/server/src/core/@generated/pipeline-stage/update-many-pipeline-stage.args.ts +++ b/server/src/core/@generated/pipeline-stage/update-many-pipeline-stage.args.ts @@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { PipelineStageUpdateManyMutationInput } from './pipeline-stage-update-many-mutation.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; import { PipelineStageWhereInput } from './pipeline-stage-where.input'; @ArgsType() @@ -9,6 +10,8 @@ export class UpdateManyPipelineStageArgs { @Field(() => PipelineStageUpdateManyMutationInput, {nullable:false}) @Type(() => PipelineStageUpdateManyMutationInput) + @ValidateNested({each: true}) + @Type(() => PipelineStageUpdateManyMutationInput) data!: PipelineStageUpdateManyMutationInput; @Field(() => PipelineStageWhereInput, {nullable:true}) diff --git a/server/src/core/@generated/pipeline-stage/update-one-pipeline-stage.args.ts b/server/src/core/@generated/pipeline-stage/update-one-pipeline-stage.args.ts index e21cb0c57b9..2a8995dc566 100644 --- a/server/src/core/@generated/pipeline-stage/update-one-pipeline-stage.args.ts +++ b/server/src/core/@generated/pipeline-stage/update-one-pipeline-stage.args.ts @@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { PipelineStageUpdateInput } from './pipeline-stage-update.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; import { PipelineStageWhereUniqueInput } from './pipeline-stage-where-unique.input'; @ArgsType() @@ -9,6 +10,8 @@ export class UpdateOnePipelineStageArgs { @Field(() => PipelineStageUpdateInput, {nullable:false}) @Type(() => PipelineStageUpdateInput) + @ValidateNested({each: true}) + @Type(() => PipelineStageUpdateInput) data!: PipelineStageUpdateInput; @Field(() => PipelineStageWhereUniqueInput, {nullable:false}) diff --git a/server/src/core/@generated/pipeline/create-many-pipeline.args.ts b/server/src/core/@generated/pipeline/create-many-pipeline.args.ts index 705e1095245..58d1a1ce760 100644 --- a/server/src/core/@generated/pipeline/create-many-pipeline.args.ts +++ b/server/src/core/@generated/pipeline/create-many-pipeline.args.ts @@ -2,12 +2,15 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { PipelineCreateManyInput } from './pipeline-create-many.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; @ArgsType() export class CreateManyPipelineArgs { @Field(() => [PipelineCreateManyInput], {nullable:false}) @Type(() => PipelineCreateManyInput) + @ValidateNested({each: true}) + @Type(() => PipelineCreateManyInput) data!: Array; @Field(() => Boolean, {nullable:true}) diff --git a/server/src/core/@generated/pipeline/create-one-pipeline.args.ts b/server/src/core/@generated/pipeline/create-one-pipeline.args.ts index 0ed8f0aa934..d27b30083d1 100644 --- a/server/src/core/@generated/pipeline/create-one-pipeline.args.ts +++ b/server/src/core/@generated/pipeline/create-one-pipeline.args.ts @@ -2,11 +2,14 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { PipelineCreateInput } from './pipeline-create.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; @ArgsType() export class CreateOnePipelineArgs { @Field(() => PipelineCreateInput, {nullable:false}) @Type(() => PipelineCreateInput) + @ValidateNested({each: true}) + @Type(() => PipelineCreateInput) data!: PipelineCreateInput; } diff --git a/server/src/core/@generated/pipeline/pipeline-count-aggregate.input.ts b/server/src/core/@generated/pipeline/pipeline-count-aggregate.input.ts index c7094f27775..1e72ef1b317 100644 --- a/server/src/core/@generated/pipeline/pipeline-count-aggregate.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-count-aggregate.input.ts @@ -8,15 +8,6 @@ export class PipelineCountAggregateInput { @Field(() => Boolean, {nullable:true}) id?: true; - @Field(() => Boolean, {nullable:true}) - createdAt?: true; - - @Field(() => Boolean, {nullable:true}) - updatedAt?: true; - - @Field(() => Boolean, {nullable:true}) - deletedAt?: true; - @Field(() => Boolean, {nullable:true}) name?: true; @@ -29,6 +20,15 @@ export class PipelineCountAggregateInput { @HideField() workspaceId?: true; + @HideField() + deletedAt?: true; + + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; + @Field(() => Boolean, {nullable:true}) _all?: true; } diff --git a/server/src/core/@generated/pipeline/pipeline-count-aggregate.output.ts b/server/src/core/@generated/pipeline/pipeline-count-aggregate.output.ts index bdceaf0d66b..e312c63e7dc 100644 --- a/server/src/core/@generated/pipeline/pipeline-count-aggregate.output.ts +++ b/server/src/core/@generated/pipeline/pipeline-count-aggregate.output.ts @@ -9,15 +9,6 @@ export class PipelineCountAggregate { @Field(() => Int, {nullable:false}) id!: number; - @Field(() => Int, {nullable:false}) - createdAt!: number; - - @Field(() => Int, {nullable:false}) - updatedAt!: number; - - @Field(() => Int, {nullable:false}) - deletedAt!: number; - @Field(() => Int, {nullable:false}) name!: number; @@ -30,6 +21,15 @@ export class PipelineCountAggregate { @HideField() workspaceId!: number; + @HideField() + deletedAt!: number; + + @Field(() => Int, {nullable:false}) + createdAt!: number; + + @Field(() => Int, {nullable:false}) + updatedAt!: number; + @Field(() => Int, {nullable:false}) _all!: number; } diff --git a/server/src/core/@generated/pipeline/pipeline-count-order-by-aggregate.input.ts b/server/src/core/@generated/pipeline/pipeline-count-order-by-aggregate.input.ts index eac8e7feb0a..b3ad6d20a6a 100644 --- a/server/src/core/@generated/pipeline/pipeline-count-order-by-aggregate.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-count-order-by-aggregate.input.ts @@ -9,15 +9,6 @@ export class PipelineCountOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) name?: keyof typeof SortOrder; @@ -29,4 +20,13 @@ export class PipelineCountOrderByAggregateInput { @HideField() workspaceId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/pipeline/pipeline-create-many-workspace.input.ts b/server/src/core/@generated/pipeline/pipeline-create-many-workspace.input.ts index fc0ec4afc35..c571e668c55 100644 --- a/server/src/core/@generated/pipeline/pipeline-create-many-workspace.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-create-many-workspace.input.ts @@ -1,28 +1,34 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; +import { HideField } from '@nestjs/graphql'; @InputType() export class PipelineCreateManyWorkspaceInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + name!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + icon!: string; + + @Field(() => PipelineProgressableType, {nullable:true}) + pipelineProgressableType?: keyof typeof PipelineProgressableType; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - name!: string; - - @Field(() => String, {nullable:false}) - icon!: string; - - @Field(() => PipelineProgressableType, {nullable:true}) - pipelineProgressableType?: keyof typeof PipelineProgressableType; } diff --git a/server/src/core/@generated/pipeline/pipeline-create-many.input.ts b/server/src/core/@generated/pipeline/pipeline-create-many.input.ts index 252a17f02c8..d492f1d68b3 100644 --- a/server/src/core/@generated/pipeline/pipeline-create-many.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-create-many.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; import { HideField } from '@nestjs/graphql'; @@ -7,21 +8,16 @@ import { HideField } from '@nestjs/graphql'; export class PipelineCreateManyInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:false}) + @Validator.IsString() name!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() icon!: string; @Field(() => PipelineProgressableType, {nullable:true}) @@ -29,4 +25,13 @@ export class PipelineCreateManyInput { @HideField() workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/pipeline/pipeline-create-without-pipeline-progresses.input.ts b/server/src/core/@generated/pipeline/pipeline-create-without-pipeline-progresses.input.ts index 59a1d029f53..d6caae5ead8 100644 --- a/server/src/core/@generated/pipeline/pipeline-create-without-pipeline-progresses.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-create-without-pipeline-progresses.input.ts @@ -1,34 +1,39 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; +import { HideField } from '@nestjs/graphql'; import { PipelineStageCreateNestedManyWithoutPipelineInput } from '../pipeline-stage/pipeline-stage-create-nested-many-without-pipeline.input'; import { WorkspaceCreateNestedOneWithoutPipelinesInput } from '../workspace/workspace-create-nested-one-without-pipelines.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class PipelineCreateWithoutPipelineProgressesInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + name!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + icon!: string; + + @Field(() => PipelineProgressableType, {nullable:true}) + pipelineProgressableType?: keyof typeof PipelineProgressableType; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - name!: string; - - @Field(() => String, {nullable:false}) - icon!: string; - - @Field(() => PipelineProgressableType, {nullable:true}) - pipelineProgressableType?: keyof typeof PipelineProgressableType; - @Field(() => PipelineStageCreateNestedManyWithoutPipelineInput, {nullable:true}) pipelineStages?: PipelineStageCreateNestedManyWithoutPipelineInput; diff --git a/server/src/core/@generated/pipeline/pipeline-create-without-pipeline-stages.input.ts b/server/src/core/@generated/pipeline/pipeline-create-without-pipeline-stages.input.ts index d17e0bbd21e..6d70864f77e 100644 --- a/server/src/core/@generated/pipeline/pipeline-create-without-pipeline-stages.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-create-without-pipeline-stages.input.ts @@ -1,34 +1,39 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; +import { HideField } from '@nestjs/graphql'; import { PipelineProgressCreateNestedManyWithoutPipelineInput } from '../pipeline-progress/pipeline-progress-create-nested-many-without-pipeline.input'; import { WorkspaceCreateNestedOneWithoutPipelinesInput } from '../workspace/workspace-create-nested-one-without-pipelines.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class PipelineCreateWithoutPipelineStagesInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + name!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + icon!: string; + + @Field(() => PipelineProgressableType, {nullable:true}) + pipelineProgressableType?: keyof typeof PipelineProgressableType; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - name!: string; - - @Field(() => String, {nullable:false}) - icon!: string; - - @Field(() => PipelineProgressableType, {nullable:true}) - pipelineProgressableType?: keyof typeof PipelineProgressableType; - @Field(() => PipelineProgressCreateNestedManyWithoutPipelineInput, {nullable:true}) pipelineProgresses?: PipelineProgressCreateNestedManyWithoutPipelineInput; diff --git a/server/src/core/@generated/pipeline/pipeline-create-without-workspace.input.ts b/server/src/core/@generated/pipeline/pipeline-create-without-workspace.input.ts index aabaa251a9f..86162402e37 100644 --- a/server/src/core/@generated/pipeline/pipeline-create-without-workspace.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-create-without-workspace.input.ts @@ -1,6 +1,8 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; +import { HideField } from '@nestjs/graphql'; import { PipelineStageCreateNestedManyWithoutPipelineInput } from '../pipeline-stage/pipeline-stage-create-nested-many-without-pipeline.input'; import { PipelineProgressCreateNestedManyWithoutPipelineInput } from '../pipeline-progress/pipeline-progress-create-nested-many-without-pipeline.input'; @@ -8,26 +10,30 @@ import { PipelineProgressCreateNestedManyWithoutPipelineInput } from '../pipelin export class PipelineCreateWithoutWorkspaceInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + name!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + icon!: string; + + @Field(() => PipelineProgressableType, {nullable:true}) + pipelineProgressableType?: keyof typeof PipelineProgressableType; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - name!: string; - - @Field(() => String, {nullable:false}) - icon!: string; - - @Field(() => PipelineProgressableType, {nullable:true}) - pipelineProgressableType?: keyof typeof PipelineProgressableType; - @Field(() => PipelineStageCreateNestedManyWithoutPipelineInput, {nullable:true}) pipelineStages?: PipelineStageCreateNestedManyWithoutPipelineInput; diff --git a/server/src/core/@generated/pipeline/pipeline-create.input.ts b/server/src/core/@generated/pipeline/pipeline-create.input.ts index f49c59cb469..c55a787ddd4 100644 --- a/server/src/core/@generated/pipeline/pipeline-create.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-create.input.ts @@ -1,35 +1,40 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; +import { HideField } from '@nestjs/graphql'; import { PipelineStageCreateNestedManyWithoutPipelineInput } from '../pipeline-stage/pipeline-stage-create-nested-many-without-pipeline.input'; import { PipelineProgressCreateNestedManyWithoutPipelineInput } from '../pipeline-progress/pipeline-progress-create-nested-many-without-pipeline.input'; import { WorkspaceCreateNestedOneWithoutPipelinesInput } from '../workspace/workspace-create-nested-one-without-pipelines.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class PipelineCreateInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + name!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + icon!: string; + + @Field(() => PipelineProgressableType, {nullable:true}) + pipelineProgressableType?: keyof typeof PipelineProgressableType; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - name!: string; - - @Field(() => String, {nullable:false}) - icon!: string; - - @Field(() => PipelineProgressableType, {nullable:true}) - pipelineProgressableType?: keyof typeof PipelineProgressableType; - @Field(() => PipelineStageCreateNestedManyWithoutPipelineInput, {nullable:true}) pipelineStages?: PipelineStageCreateNestedManyWithoutPipelineInput; diff --git a/server/src/core/@generated/pipeline/pipeline-group-by.output.ts b/server/src/core/@generated/pipeline/pipeline-group-by.output.ts index 4ff53ff4bf8..40a2fc00bb5 100644 --- a/server/src/core/@generated/pipeline/pipeline-group-by.output.ts +++ b/server/src/core/@generated/pipeline/pipeline-group-by.output.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; import { HideField } from '@nestjs/graphql'; import { PipelineCountAggregate } from './pipeline-count-aggregate.output'; @@ -10,21 +11,16 @@ import { PipelineMaxAggregate } from './pipeline-max-aggregate.output'; export class PipelineGroupBy { @Field(() => String, {nullable:false}) + @Validator.IsString() + @Validator.IsOptional() id!: string; - @Field(() => Date, {nullable:false}) - createdAt!: Date | string; - - @Field(() => Date, {nullable:false}) - updatedAt!: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:false}) + @Validator.IsString() name!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() icon!: string; @Field(() => PipelineProgressableType, {nullable:false}) @@ -33,6 +29,15 @@ export class PipelineGroupBy { @HideField() workspaceId!: string; + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:false}) + createdAt!: Date | string; + + @Field(() => Date, {nullable:false}) + updatedAt!: Date | string; + @Field(() => PipelineCountAggregate, {nullable:true}) _count?: PipelineCountAggregate; diff --git a/server/src/core/@generated/pipeline/pipeline-max-aggregate.input.ts b/server/src/core/@generated/pipeline/pipeline-max-aggregate.input.ts index c8be89ec75b..5cbaed04a56 100644 --- a/server/src/core/@generated/pipeline/pipeline-max-aggregate.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-max-aggregate.input.ts @@ -8,15 +8,6 @@ export class PipelineMaxAggregateInput { @Field(() => Boolean, {nullable:true}) id?: true; - @Field(() => Boolean, {nullable:true}) - createdAt?: true; - - @Field(() => Boolean, {nullable:true}) - updatedAt?: true; - - @Field(() => Boolean, {nullable:true}) - deletedAt?: true; - @Field(() => Boolean, {nullable:true}) name?: true; @@ -28,4 +19,13 @@ export class PipelineMaxAggregateInput { @HideField() workspaceId?: true; + + @HideField() + deletedAt?: true; + + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; } diff --git a/server/src/core/@generated/pipeline/pipeline-max-aggregate.output.ts b/server/src/core/@generated/pipeline/pipeline-max-aggregate.output.ts index 77ff787ff36..b8820ca68d2 100644 --- a/server/src/core/@generated/pipeline/pipeline-max-aggregate.output.ts +++ b/server/src/core/@generated/pipeline/pipeline-max-aggregate.output.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; import { HideField } from '@nestjs/graphql'; @@ -7,21 +8,16 @@ import { HideField } from '@nestjs/graphql'; export class PipelineMaxAggregate { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:true}) + @Validator.IsString() name?: string; @Field(() => String, {nullable:true}) + @Validator.IsString() icon?: string; @Field(() => PipelineProgressableType, {nullable:true}) @@ -29,4 +25,13 @@ export class PipelineMaxAggregate { @HideField() workspaceId?: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/pipeline/pipeline-max-order-by-aggregate.input.ts b/server/src/core/@generated/pipeline/pipeline-max-order-by-aggregate.input.ts index 55a6fbc1f9e..ce13d8793e0 100644 --- a/server/src/core/@generated/pipeline/pipeline-max-order-by-aggregate.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-max-order-by-aggregate.input.ts @@ -9,15 +9,6 @@ export class PipelineMaxOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) name?: keyof typeof SortOrder; @@ -29,4 +20,13 @@ export class PipelineMaxOrderByAggregateInput { @HideField() workspaceId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/pipeline/pipeline-min-aggregate.input.ts b/server/src/core/@generated/pipeline/pipeline-min-aggregate.input.ts index 761d38024f1..cac27c8b5a7 100644 --- a/server/src/core/@generated/pipeline/pipeline-min-aggregate.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-min-aggregate.input.ts @@ -8,15 +8,6 @@ export class PipelineMinAggregateInput { @Field(() => Boolean, {nullable:true}) id?: true; - @Field(() => Boolean, {nullable:true}) - createdAt?: true; - - @Field(() => Boolean, {nullable:true}) - updatedAt?: true; - - @Field(() => Boolean, {nullable:true}) - deletedAt?: true; - @Field(() => Boolean, {nullable:true}) name?: true; @@ -28,4 +19,13 @@ export class PipelineMinAggregateInput { @HideField() workspaceId?: true; + + @HideField() + deletedAt?: true; + + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; } diff --git a/server/src/core/@generated/pipeline/pipeline-min-aggregate.output.ts b/server/src/core/@generated/pipeline/pipeline-min-aggregate.output.ts index e498cb1e0d1..a772c42d28a 100644 --- a/server/src/core/@generated/pipeline/pipeline-min-aggregate.output.ts +++ b/server/src/core/@generated/pipeline/pipeline-min-aggregate.output.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; import { HideField } from '@nestjs/graphql'; @@ -7,21 +8,16 @@ import { HideField } from '@nestjs/graphql'; export class PipelineMinAggregate { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:true}) + @Validator.IsString() name?: string; @Field(() => String, {nullable:true}) + @Validator.IsString() icon?: string; @Field(() => PipelineProgressableType, {nullable:true}) @@ -29,4 +25,13 @@ export class PipelineMinAggregate { @HideField() workspaceId?: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/pipeline/pipeline-min-order-by-aggregate.input.ts b/server/src/core/@generated/pipeline/pipeline-min-order-by-aggregate.input.ts index d15362c64e1..c362c934153 100644 --- a/server/src/core/@generated/pipeline/pipeline-min-order-by-aggregate.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-min-order-by-aggregate.input.ts @@ -9,15 +9,6 @@ export class PipelineMinOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) name?: keyof typeof SortOrder; @@ -29,4 +20,13 @@ export class PipelineMinOrderByAggregateInput { @HideField() workspaceId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/pipeline/pipeline-order-by-with-aggregation.input.ts b/server/src/core/@generated/pipeline/pipeline-order-by-with-aggregation.input.ts index 7d60a8238c7..c9791c513d1 100644 --- a/server/src/core/@generated/pipeline/pipeline-order-by-with-aggregation.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-order-by-with-aggregation.input.ts @@ -12,15 +12,6 @@ export class PipelineOrderByWithAggregationInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) name?: keyof typeof SortOrder; @@ -33,6 +24,15 @@ export class PipelineOrderByWithAggregationInput { @HideField() workspaceId?: keyof typeof SortOrder; + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; + @Field(() => PipelineCountOrderByAggregateInput, {nullable:true}) _count?: PipelineCountOrderByAggregateInput; diff --git a/server/src/core/@generated/pipeline/pipeline-order-by-with-relation.input.ts b/server/src/core/@generated/pipeline/pipeline-order-by-with-relation.input.ts index 185626f359b..bfbfa33fd23 100644 --- a/server/src/core/@generated/pipeline/pipeline-order-by-with-relation.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-order-by-with-relation.input.ts @@ -12,15 +12,6 @@ export class PipelineOrderByWithRelationInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) name?: keyof typeof SortOrder; @@ -33,6 +24,15 @@ export class PipelineOrderByWithRelationInput { @HideField() workspaceId?: keyof typeof SortOrder; + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; + @Field(() => PipelineStageOrderByRelationAggregateInput, {nullable:true}) pipelineStages?: PipelineStageOrderByRelationAggregateInput; diff --git a/server/src/core/@generated/pipeline/pipeline-scalar-field.enum.ts b/server/src/core/@generated/pipeline/pipeline-scalar-field.enum.ts index 37ce4efb217..dbea46bef58 100644 --- a/server/src/core/@generated/pipeline/pipeline-scalar-field.enum.ts +++ b/server/src/core/@generated/pipeline/pipeline-scalar-field.enum.ts @@ -2,13 +2,13 @@ import { registerEnumType } from '@nestjs/graphql'; export enum PipelineScalarFieldEnum { id = "id", - createdAt = "createdAt", - updatedAt = "updatedAt", - deletedAt = "deletedAt", name = "name", icon = "icon", pipelineProgressableType = "pipelineProgressableType", - workspaceId = "workspaceId" + workspaceId = "workspaceId", + deletedAt = "deletedAt", + createdAt = "createdAt", + updatedAt = "updatedAt" } diff --git a/server/src/core/@generated/pipeline/pipeline-scalar-where-with-aggregates.input.ts b/server/src/core/@generated/pipeline/pipeline-scalar-where-with-aggregates.input.ts index 74e33b7c6ca..d511eef6237 100644 --- a/server/src/core/@generated/pipeline/pipeline-scalar-where-with-aggregates.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-scalar-where-with-aggregates.input.ts @@ -1,10 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringWithAggregatesFilter } from '../prisma/string-with-aggregates-filter.input'; -import { DateTimeWithAggregatesFilter } from '../prisma/date-time-with-aggregates-filter.input'; -import { DateTimeNullableWithAggregatesFilter } from '../prisma/date-time-nullable-with-aggregates-filter.input'; import { EnumPipelineProgressableTypeWithAggregatesFilter } from '../prisma/enum-pipeline-progressable-type-with-aggregates-filter.input'; import { HideField } from '@nestjs/graphql'; +import { DateTimeNullableWithAggregatesFilter } from '../prisma/date-time-nullable-with-aggregates-filter.input'; +import { DateTimeWithAggregatesFilter } from '../prisma/date-time-with-aggregates-filter.input'; @InputType() export class PipelineScalarWhereWithAggregatesInput { @@ -21,15 +21,6 @@ export class PipelineScalarWhereWithAggregatesInput { @Field(() => StringWithAggregatesFilter, {nullable:true}) id?: StringWithAggregatesFilter; - @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) - createdAt?: DateTimeWithAggregatesFilter; - - @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) - updatedAt?: DateTimeWithAggregatesFilter; - - @Field(() => DateTimeNullableWithAggregatesFilter, {nullable:true}) - deletedAt?: DateTimeNullableWithAggregatesFilter; - @Field(() => StringWithAggregatesFilter, {nullable:true}) name?: StringWithAggregatesFilter; @@ -41,4 +32,13 @@ export class PipelineScalarWhereWithAggregatesInput { @HideField() workspaceId?: StringWithAggregatesFilter; + + @HideField() + deletedAt?: DateTimeNullableWithAggregatesFilter; + + @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) + createdAt?: DateTimeWithAggregatesFilter; + + @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) + updatedAt?: DateTimeWithAggregatesFilter; } diff --git a/server/src/core/@generated/pipeline/pipeline-scalar-where.input.ts b/server/src/core/@generated/pipeline/pipeline-scalar-where.input.ts index 6e88c9dd115..1461d9b9edc 100644 --- a/server/src/core/@generated/pipeline/pipeline-scalar-where.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-scalar-where.input.ts @@ -1,10 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFilter } from '../prisma/string-filter.input'; -import { DateTimeFilter } from '../prisma/date-time-filter.input'; -import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; import { EnumPipelineProgressableTypeFilter } from '../prisma/enum-pipeline-progressable-type-filter.input'; import { HideField } from '@nestjs/graphql'; +import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; +import { DateTimeFilter } from '../prisma/date-time-filter.input'; @InputType() export class PipelineScalarWhereInput { @@ -21,15 +21,6 @@ export class PipelineScalarWhereInput { @Field(() => StringFilter, {nullable:true}) id?: StringFilter; - @Field(() => DateTimeFilter, {nullable:true}) - createdAt?: DateTimeFilter; - - @Field(() => DateTimeFilter, {nullable:true}) - updatedAt?: DateTimeFilter; - - @Field(() => DateTimeNullableFilter, {nullable:true}) - deletedAt?: DateTimeNullableFilter; - @Field(() => StringFilter, {nullable:true}) name?: StringFilter; @@ -41,4 +32,13 @@ export class PipelineScalarWhereInput { @HideField() workspaceId?: StringFilter; + + @HideField() + deletedAt?: DateTimeNullableFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + createdAt?: DateTimeFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + updatedAt?: DateTimeFilter; } diff --git a/server/src/core/@generated/pipeline/pipeline-unchecked-create-without-pipeline-progresses.input.ts b/server/src/core/@generated/pipeline/pipeline-unchecked-create-without-pipeline-progresses.input.ts index 138d5ef23fe..53d286c975b 100644 --- a/server/src/core/@generated/pipeline/pipeline-unchecked-create-without-pipeline-progresses.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-unchecked-create-without-pipeline-progresses.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; import { HideField } from '@nestjs/graphql'; import { PipelineStageUncheckedCreateNestedManyWithoutPipelineInput } from '../pipeline-stage/pipeline-stage-unchecked-create-nested-many-without-pipeline.input'; @@ -8,21 +9,16 @@ import { PipelineStageUncheckedCreateNestedManyWithoutPipelineInput } from '../p export class PipelineUncheckedCreateWithoutPipelineProgressesInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:false}) + @Validator.IsString() name!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() icon!: string; @Field(() => PipelineProgressableType, {nullable:true}) @@ -31,6 +27,15 @@ export class PipelineUncheckedCreateWithoutPipelineProgressesInput { @HideField() workspaceId!: string; + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; + @Field(() => PipelineStageUncheckedCreateNestedManyWithoutPipelineInput, {nullable:true}) pipelineStages?: PipelineStageUncheckedCreateNestedManyWithoutPipelineInput; } diff --git a/server/src/core/@generated/pipeline/pipeline-unchecked-create-without-pipeline-stages.input.ts b/server/src/core/@generated/pipeline/pipeline-unchecked-create-without-pipeline-stages.input.ts index 5acc3985168..35ebb9c9a98 100644 --- a/server/src/core/@generated/pipeline/pipeline-unchecked-create-without-pipeline-stages.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-unchecked-create-without-pipeline-stages.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; import { HideField } from '@nestjs/graphql'; import { PipelineProgressUncheckedCreateNestedManyWithoutPipelineInput } from '../pipeline-progress/pipeline-progress-unchecked-create-nested-many-without-pipeline.input'; @@ -8,21 +9,16 @@ import { PipelineProgressUncheckedCreateNestedManyWithoutPipelineInput } from '. export class PipelineUncheckedCreateWithoutPipelineStagesInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:false}) + @Validator.IsString() name!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() icon!: string; @Field(() => PipelineProgressableType, {nullable:true}) @@ -31,6 +27,15 @@ export class PipelineUncheckedCreateWithoutPipelineStagesInput { @HideField() workspaceId!: string; + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; + @Field(() => PipelineProgressUncheckedCreateNestedManyWithoutPipelineInput, {nullable:true}) pipelineProgresses?: PipelineProgressUncheckedCreateNestedManyWithoutPipelineInput; } diff --git a/server/src/core/@generated/pipeline/pipeline-unchecked-create-without-workspace.input.ts b/server/src/core/@generated/pipeline/pipeline-unchecked-create-without-workspace.input.ts index cce8b56b5e7..bad372d6f98 100644 --- a/server/src/core/@generated/pipeline/pipeline-unchecked-create-without-workspace.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-unchecked-create-without-workspace.input.ts @@ -1,6 +1,8 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; +import { HideField } from '@nestjs/graphql'; import { PipelineStageUncheckedCreateNestedManyWithoutPipelineInput } from '../pipeline-stage/pipeline-stage-unchecked-create-nested-many-without-pipeline.input'; import { PipelineProgressUncheckedCreateNestedManyWithoutPipelineInput } from '../pipeline-progress/pipeline-progress-unchecked-create-nested-many-without-pipeline.input'; @@ -8,26 +10,30 @@ import { PipelineProgressUncheckedCreateNestedManyWithoutPipelineInput } from '. export class PipelineUncheckedCreateWithoutWorkspaceInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + name!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + icon!: string; + + @Field(() => PipelineProgressableType, {nullable:true}) + pipelineProgressableType?: keyof typeof PipelineProgressableType; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - name!: string; - - @Field(() => String, {nullable:false}) - icon!: string; - - @Field(() => PipelineProgressableType, {nullable:true}) - pipelineProgressableType?: keyof typeof PipelineProgressableType; - @Field(() => PipelineStageUncheckedCreateNestedManyWithoutPipelineInput, {nullable:true}) pipelineStages?: PipelineStageUncheckedCreateNestedManyWithoutPipelineInput; diff --git a/server/src/core/@generated/pipeline/pipeline-unchecked-create.input.ts b/server/src/core/@generated/pipeline/pipeline-unchecked-create.input.ts index ea1c9ea4c6e..a7f77316b0a 100644 --- a/server/src/core/@generated/pipeline/pipeline-unchecked-create.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-unchecked-create.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; import { HideField } from '@nestjs/graphql'; import { PipelineStageUncheckedCreateNestedManyWithoutPipelineInput } from '../pipeline-stage/pipeline-stage-unchecked-create-nested-many-without-pipeline.input'; @@ -9,21 +10,16 @@ import { PipelineProgressUncheckedCreateNestedManyWithoutPipelineInput } from '. export class PipelineUncheckedCreateInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:false}) + @Validator.IsString() name!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() icon!: string; @Field(() => PipelineProgressableType, {nullable:true}) @@ -32,6 +28,15 @@ export class PipelineUncheckedCreateInput { @HideField() workspaceId!: string; + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; + @Field(() => PipelineStageUncheckedCreateNestedManyWithoutPipelineInput, {nullable:true}) pipelineStages?: PipelineStageUncheckedCreateNestedManyWithoutPipelineInput; diff --git a/server/src/core/@generated/pipeline/pipeline-unchecked-update-many-without-pipelines.input.ts b/server/src/core/@generated/pipeline/pipeline-unchecked-update-many-without-pipelines.input.ts index 4557e7212ae..a648ecd2730 100644 --- a/server/src/core/@generated/pipeline/pipeline-unchecked-update-many-without-pipelines.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-unchecked-update-many-without-pipelines.input.ts @@ -1,9 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class PipelineUncheckedUpdateManyWithoutPipelinesInput { @@ -11,15 +12,6 @@ export class PipelineUncheckedUpdateManyWithoutPipelinesInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) name?: StringFieldUpdateOperationsInput; @@ -28,4 +20,13 @@ export class PipelineUncheckedUpdateManyWithoutPipelinesInput { @Field(() => EnumPipelineProgressableTypeFieldUpdateOperationsInput, {nullable:true}) pipelineProgressableType?: EnumPipelineProgressableTypeFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/pipeline/pipeline-unchecked-update-many.input.ts b/server/src/core/@generated/pipeline/pipeline-unchecked-update-many.input.ts index f22ea056fe0..a8c45c481f0 100644 --- a/server/src/core/@generated/pipeline/pipeline-unchecked-update-many.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-unchecked-update-many.input.ts @@ -1,10 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class PipelineUncheckedUpdateManyInput { @@ -12,15 +12,6 @@ export class PipelineUncheckedUpdateManyInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) name?: StringFieldUpdateOperationsInput; @@ -32,4 +23,13 @@ export class PipelineUncheckedUpdateManyInput { @HideField() workspaceId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/pipeline/pipeline-unchecked-update-without-pipeline-progresses.input.ts b/server/src/core/@generated/pipeline/pipeline-unchecked-update-without-pipeline-progresses.input.ts index 4a52dfcb8cf..20b84b7545b 100644 --- a/server/src/core/@generated/pipeline/pipeline-unchecked-update-without-pipeline-progresses.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-unchecked-update-without-pipeline-progresses.input.ts @@ -1,10 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { PipelineStageUncheckedUpdateManyWithoutPipelineNestedInput } from '../pipeline-stage/pipeline-stage-unchecked-update-many-without-pipeline-nested.input'; @InputType() @@ -13,15 +13,6 @@ export class PipelineUncheckedUpdateWithoutPipelineProgressesInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) name?: StringFieldUpdateOperationsInput; @@ -34,6 +25,15 @@ export class PipelineUncheckedUpdateWithoutPipelineProgressesInput { @HideField() workspaceId?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => PipelineStageUncheckedUpdateManyWithoutPipelineNestedInput, {nullable:true}) pipelineStages?: PipelineStageUncheckedUpdateManyWithoutPipelineNestedInput; } diff --git a/server/src/core/@generated/pipeline/pipeline-unchecked-update-without-pipeline-stages.input.ts b/server/src/core/@generated/pipeline/pipeline-unchecked-update-without-pipeline-stages.input.ts index 7ed8b4284d6..ed0d478ce5d 100644 --- a/server/src/core/@generated/pipeline/pipeline-unchecked-update-without-pipeline-stages.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-unchecked-update-without-pipeline-stages.input.ts @@ -1,10 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { PipelineProgressUncheckedUpdateManyWithoutPipelineNestedInput } from '../pipeline-progress/pipeline-progress-unchecked-update-many-without-pipeline-nested.input'; @InputType() @@ -13,15 +13,6 @@ export class PipelineUncheckedUpdateWithoutPipelineStagesInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) name?: StringFieldUpdateOperationsInput; @@ -34,6 +25,15 @@ export class PipelineUncheckedUpdateWithoutPipelineStagesInput { @HideField() workspaceId?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => PipelineProgressUncheckedUpdateManyWithoutPipelineNestedInput, {nullable:true}) pipelineProgresses?: PipelineProgressUncheckedUpdateManyWithoutPipelineNestedInput; } diff --git a/server/src/core/@generated/pipeline/pipeline-unchecked-update-without-workspace.input.ts b/server/src/core/@generated/pipeline/pipeline-unchecked-update-without-workspace.input.ts index fed2e32dbe5..3d1392cf9f2 100644 --- a/server/src/core/@generated/pipeline/pipeline-unchecked-update-without-workspace.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-unchecked-update-without-workspace.input.ts @@ -1,9 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { PipelineStageUncheckedUpdateManyWithoutPipelineNestedInput } from '../pipeline-stage/pipeline-stage-unchecked-update-many-without-pipeline-nested.input'; import { PipelineProgressUncheckedUpdateManyWithoutPipelineNestedInput } from '../pipeline-progress/pipeline-progress-unchecked-update-many-without-pipeline-nested.input'; @@ -13,15 +14,6 @@ export class PipelineUncheckedUpdateWithoutWorkspaceInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) name?: StringFieldUpdateOperationsInput; @@ -31,6 +23,15 @@ export class PipelineUncheckedUpdateWithoutWorkspaceInput { @Field(() => EnumPipelineProgressableTypeFieldUpdateOperationsInput, {nullable:true}) pipelineProgressableType?: EnumPipelineProgressableTypeFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => PipelineStageUncheckedUpdateManyWithoutPipelineNestedInput, {nullable:true}) pipelineStages?: PipelineStageUncheckedUpdateManyWithoutPipelineNestedInput; diff --git a/server/src/core/@generated/pipeline/pipeline-unchecked-update.input.ts b/server/src/core/@generated/pipeline/pipeline-unchecked-update.input.ts index 08a3984f4a9..da6b09a1e9f 100644 --- a/server/src/core/@generated/pipeline/pipeline-unchecked-update.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-unchecked-update.input.ts @@ -1,10 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { PipelineStageUncheckedUpdateManyWithoutPipelineNestedInput } from '../pipeline-stage/pipeline-stage-unchecked-update-many-without-pipeline-nested.input'; import { PipelineProgressUncheckedUpdateManyWithoutPipelineNestedInput } from '../pipeline-progress/pipeline-progress-unchecked-update-many-without-pipeline-nested.input'; @@ -14,15 +14,6 @@ export class PipelineUncheckedUpdateInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) name?: StringFieldUpdateOperationsInput; @@ -35,6 +26,15 @@ export class PipelineUncheckedUpdateInput { @HideField() workspaceId?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => PipelineStageUncheckedUpdateManyWithoutPipelineNestedInput, {nullable:true}) pipelineStages?: PipelineStageUncheckedUpdateManyWithoutPipelineNestedInput; diff --git a/server/src/core/@generated/pipeline/pipeline-update-many-mutation.input.ts b/server/src/core/@generated/pipeline/pipeline-update-many-mutation.input.ts index 3005ea31dd4..aa48ef072f4 100644 --- a/server/src/core/@generated/pipeline/pipeline-update-many-mutation.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-update-many-mutation.input.ts @@ -1,9 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class PipelineUpdateManyMutationInput { @@ -11,15 +12,6 @@ export class PipelineUpdateManyMutationInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) name?: StringFieldUpdateOperationsInput; @@ -28,4 +20,13 @@ export class PipelineUpdateManyMutationInput { @Field(() => EnumPipelineProgressableTypeFieldUpdateOperationsInput, {nullable:true}) pipelineProgressableType?: EnumPipelineProgressableTypeFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/pipeline/pipeline-update-without-pipeline-progresses.input.ts b/server/src/core/@generated/pipeline/pipeline-update-without-pipeline-progresses.input.ts index 662d43ad302..5f7bbc7f99b 100644 --- a/server/src/core/@generated/pipeline/pipeline-update-without-pipeline-progresses.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-update-without-pipeline-progresses.input.ts @@ -1,12 +1,12 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { PipelineStageUpdateManyWithoutPipelineNestedInput } from '../pipeline-stage/pipeline-stage-update-many-without-pipeline-nested.input'; import { WorkspaceUpdateOneRequiredWithoutPipelinesNestedInput } from '../workspace/workspace-update-one-required-without-pipelines-nested.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class PipelineUpdateWithoutPipelineProgressesInput { @@ -14,15 +14,6 @@ export class PipelineUpdateWithoutPipelineProgressesInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) name?: StringFieldUpdateOperationsInput; @@ -32,6 +23,15 @@ export class PipelineUpdateWithoutPipelineProgressesInput { @Field(() => EnumPipelineProgressableTypeFieldUpdateOperationsInput, {nullable:true}) pipelineProgressableType?: EnumPipelineProgressableTypeFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => PipelineStageUpdateManyWithoutPipelineNestedInput, {nullable:true}) pipelineStages?: PipelineStageUpdateManyWithoutPipelineNestedInput; diff --git a/server/src/core/@generated/pipeline/pipeline-update-without-pipeline-stages.input.ts b/server/src/core/@generated/pipeline/pipeline-update-without-pipeline-stages.input.ts index fc904a44454..82f8b7bcf61 100644 --- a/server/src/core/@generated/pipeline/pipeline-update-without-pipeline-stages.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-update-without-pipeline-stages.input.ts @@ -1,12 +1,12 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { PipelineProgressUpdateManyWithoutPipelineNestedInput } from '../pipeline-progress/pipeline-progress-update-many-without-pipeline-nested.input'; import { WorkspaceUpdateOneRequiredWithoutPipelinesNestedInput } from '../workspace/workspace-update-one-required-without-pipelines-nested.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class PipelineUpdateWithoutPipelineStagesInput { @@ -14,15 +14,6 @@ export class PipelineUpdateWithoutPipelineStagesInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) name?: StringFieldUpdateOperationsInput; @@ -32,6 +23,15 @@ export class PipelineUpdateWithoutPipelineStagesInput { @Field(() => EnumPipelineProgressableTypeFieldUpdateOperationsInput, {nullable:true}) pipelineProgressableType?: EnumPipelineProgressableTypeFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => PipelineProgressUpdateManyWithoutPipelineNestedInput, {nullable:true}) pipelineProgresses?: PipelineProgressUpdateManyWithoutPipelineNestedInput; diff --git a/server/src/core/@generated/pipeline/pipeline-update-without-workspace.input.ts b/server/src/core/@generated/pipeline/pipeline-update-without-workspace.input.ts index c334430833b..da8c67edb67 100644 --- a/server/src/core/@generated/pipeline/pipeline-update-without-workspace.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-update-without-workspace.input.ts @@ -1,9 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { PipelineStageUpdateManyWithoutPipelineNestedInput } from '../pipeline-stage/pipeline-stage-update-many-without-pipeline-nested.input'; import { PipelineProgressUpdateManyWithoutPipelineNestedInput } from '../pipeline-progress/pipeline-progress-update-many-without-pipeline-nested.input'; @@ -13,15 +14,6 @@ export class PipelineUpdateWithoutWorkspaceInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) name?: StringFieldUpdateOperationsInput; @@ -31,6 +23,15 @@ export class PipelineUpdateWithoutWorkspaceInput { @Field(() => EnumPipelineProgressableTypeFieldUpdateOperationsInput, {nullable:true}) pipelineProgressableType?: EnumPipelineProgressableTypeFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => PipelineStageUpdateManyWithoutPipelineNestedInput, {nullable:true}) pipelineStages?: PipelineStageUpdateManyWithoutPipelineNestedInput; diff --git a/server/src/core/@generated/pipeline/pipeline-update.input.ts b/server/src/core/@generated/pipeline/pipeline-update.input.ts index c5b1ba82d2e..efaf18cca67 100644 --- a/server/src/core/@generated/pipeline/pipeline-update.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-update.input.ts @@ -1,13 +1,13 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { PipelineStageUpdateManyWithoutPipelineNestedInput } from '../pipeline-stage/pipeline-stage-update-many-without-pipeline-nested.input'; import { PipelineProgressUpdateManyWithoutPipelineNestedInput } from '../pipeline-progress/pipeline-progress-update-many-without-pipeline-nested.input'; import { WorkspaceUpdateOneRequiredWithoutPipelinesNestedInput } from '../workspace/workspace-update-one-required-without-pipelines-nested.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class PipelineUpdateInput { @@ -15,15 +15,6 @@ export class PipelineUpdateInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) name?: StringFieldUpdateOperationsInput; @@ -33,6 +24,15 @@ export class PipelineUpdateInput { @Field(() => EnumPipelineProgressableTypeFieldUpdateOperationsInput, {nullable:true}) pipelineProgressableType?: EnumPipelineProgressableTypeFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => PipelineStageUpdateManyWithoutPipelineNestedInput, {nullable:true}) pipelineStages?: PipelineStageUpdateManyWithoutPipelineNestedInput; diff --git a/server/src/core/@generated/pipeline/pipeline-where-unique.input.ts b/server/src/core/@generated/pipeline/pipeline-where-unique.input.ts index ae529d3ca03..03ccad00b2d 100644 --- a/server/src/core/@generated/pipeline/pipeline-where-unique.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-where-unique.input.ts @@ -1,9 +1,12 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; @InputType() export class PipelineWhereUniqueInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; } diff --git a/server/src/core/@generated/pipeline/pipeline-where.input.ts b/server/src/core/@generated/pipeline/pipeline-where.input.ts index 116c62391c1..42fb3f43aac 100644 --- a/server/src/core/@generated/pipeline/pipeline-where.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-where.input.ts @@ -1,10 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFilter } from '../prisma/string-filter.input'; -import { DateTimeFilter } from '../prisma/date-time-filter.input'; -import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; import { EnumPipelineProgressableTypeFilter } from '../prisma/enum-pipeline-progressable-type-filter.input'; import { HideField } from '@nestjs/graphql'; +import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; +import { DateTimeFilter } from '../prisma/date-time-filter.input'; import { PipelineStageListRelationFilter } from '../pipeline-stage/pipeline-stage-list-relation-filter.input'; import { PipelineProgressListRelationFilter } from '../pipeline-progress/pipeline-progress-list-relation-filter.input'; import { WorkspaceRelationFilter } from '../workspace/workspace-relation-filter.input'; @@ -24,15 +24,6 @@ export class PipelineWhereInput { @Field(() => StringFilter, {nullable:true}) id?: StringFilter; - @Field(() => DateTimeFilter, {nullable:true}) - createdAt?: DateTimeFilter; - - @Field(() => DateTimeFilter, {nullable:true}) - updatedAt?: DateTimeFilter; - - @Field(() => DateTimeNullableFilter, {nullable:true}) - deletedAt?: DateTimeNullableFilter; - @Field(() => StringFilter, {nullable:true}) name?: StringFilter; @@ -45,6 +36,15 @@ export class PipelineWhereInput { @HideField() workspaceId?: StringFilter; + @HideField() + deletedAt?: DateTimeNullableFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + createdAt?: DateTimeFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + updatedAt?: DateTimeFilter; + @Field(() => PipelineStageListRelationFilter, {nullable:true}) pipelineStages?: PipelineStageListRelationFilter; diff --git a/server/src/core/@generated/pipeline/pipeline.model.ts b/server/src/core/@generated/pipeline/pipeline.model.ts index bbed35c01a2..f8a744159b3 100644 --- a/server/src/core/@generated/pipeline/pipeline.model.ts +++ b/server/src/core/@generated/pipeline/pipeline.model.ts @@ -14,15 +14,6 @@ export class Pipeline { @Field(() => ID, {nullable:false}) id!: string; - @Field(() => Date, {nullable:false}) - createdAt!: Date; - - @Field(() => Date, {nullable:false}) - updatedAt!: Date; - - @Field(() => Date, {nullable:true}) - deletedAt!: Date | null; - @Field(() => String, {nullable:false}) name!: string; @@ -35,6 +26,15 @@ export class Pipeline { @HideField() workspaceId!: string; + @HideField() + deletedAt!: Date | null; + + @Field(() => Date, {nullable:false}) + createdAt!: Date; + + @Field(() => Date, {nullable:false}) + updatedAt!: Date; + @Field(() => [PipelineStage], {nullable:true}) pipelineStages?: Array; diff --git a/server/src/core/@generated/pipeline/update-many-pipeline.args.ts b/server/src/core/@generated/pipeline/update-many-pipeline.args.ts index a68aa54a2e7..33a24fce201 100644 --- a/server/src/core/@generated/pipeline/update-many-pipeline.args.ts +++ b/server/src/core/@generated/pipeline/update-many-pipeline.args.ts @@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { PipelineUpdateManyMutationInput } from './pipeline-update-many-mutation.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; import { PipelineWhereInput } from './pipeline-where.input'; @ArgsType() @@ -9,6 +10,8 @@ export class UpdateManyPipelineArgs { @Field(() => PipelineUpdateManyMutationInput, {nullable:false}) @Type(() => PipelineUpdateManyMutationInput) + @ValidateNested({each: true}) + @Type(() => PipelineUpdateManyMutationInput) data!: PipelineUpdateManyMutationInput; @Field(() => PipelineWhereInput, {nullable:true}) diff --git a/server/src/core/@generated/pipeline/update-one-pipeline.args.ts b/server/src/core/@generated/pipeline/update-one-pipeline.args.ts index 7f06fd92c39..fea3d76f552 100644 --- a/server/src/core/@generated/pipeline/update-one-pipeline.args.ts +++ b/server/src/core/@generated/pipeline/update-one-pipeline.args.ts @@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { PipelineUpdateInput } from './pipeline-update.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; import { PipelineWhereUniqueInput } from './pipeline-where-unique.input'; @ArgsType() @@ -9,6 +10,8 @@ export class UpdateOnePipelineArgs { @Field(() => PipelineUpdateInput, {nullable:false}) @Type(() => PipelineUpdateInput) + @ValidateNested({each: true}) + @Type(() => PipelineUpdateInput) data!: PipelineUpdateInput; @Field(() => PipelineWhereUniqueInput, {nullable:false}) diff --git a/server/src/core/@generated/refresh-token/create-many-refresh-token.args.ts b/server/src/core/@generated/refresh-token/create-many-refresh-token.args.ts index c668f92fd8c..abd1265fb51 100644 --- a/server/src/core/@generated/refresh-token/create-many-refresh-token.args.ts +++ b/server/src/core/@generated/refresh-token/create-many-refresh-token.args.ts @@ -2,12 +2,15 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { RefreshTokenCreateManyInput } from './refresh-token-create-many.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; @ArgsType() export class CreateManyRefreshTokenArgs { @Field(() => [RefreshTokenCreateManyInput], {nullable:false}) @Type(() => RefreshTokenCreateManyInput) + @ValidateNested({each: true}) + @Type(() => RefreshTokenCreateManyInput) data!: Array; @Field(() => Boolean, {nullable:true}) diff --git a/server/src/core/@generated/refresh-token/create-one-refresh-token.args.ts b/server/src/core/@generated/refresh-token/create-one-refresh-token.args.ts index f07f8431305..cd6d099e463 100644 --- a/server/src/core/@generated/refresh-token/create-one-refresh-token.args.ts +++ b/server/src/core/@generated/refresh-token/create-one-refresh-token.args.ts @@ -2,11 +2,14 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { RefreshTokenCreateInput } from './refresh-token-create.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; @ArgsType() export class CreateOneRefreshTokenArgs { @Field(() => RefreshTokenCreateInput, {nullable:false}) @Type(() => RefreshTokenCreateInput) + @ValidateNested({each: true}) + @Type(() => RefreshTokenCreateInput) data!: RefreshTokenCreateInput; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-count-aggregate.input.ts b/server/src/core/@generated/refresh-token/refresh-token-count-aggregate.input.ts index a777c4c0b54..3208d8265c1 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-count-aggregate.input.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-count-aggregate.input.ts @@ -8,24 +8,24 @@ export class RefreshTokenCountAggregateInput { @Field(() => Boolean, {nullable:true}) id?: true; + @Field(() => Boolean, {nullable:true}) + isRevoked?: true; + + @HideField() + userId?: true; + + @Field(() => Boolean, {nullable:true}) + expiresAt?: true; + + @HideField() + deletedAt?: true; + @Field(() => Boolean, {nullable:true}) createdAt?: true; @Field(() => Boolean, {nullable:true}) updatedAt?: true; - @Field(() => Boolean, {nullable:true}) - isRevoked?: true; - - @Field(() => Boolean, {nullable:true}) - expiresAt?: true; - - @Field(() => Boolean, {nullable:true}) - deletedAt?: true; - - @HideField() - userId?: true; - @Field(() => Boolean, {nullable:true}) _all?: true; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-count-aggregate.output.ts b/server/src/core/@generated/refresh-token/refresh-token-count-aggregate.output.ts index 0c9f1d0322f..b67ba1ae309 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-count-aggregate.output.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-count-aggregate.output.ts @@ -9,24 +9,24 @@ export class RefreshTokenCountAggregate { @Field(() => Int, {nullable:false}) id!: number; + @Field(() => Int, {nullable:false}) + isRevoked!: number; + + @HideField() + userId!: number; + + @Field(() => Int, {nullable:false}) + expiresAt!: number; + + @HideField() + deletedAt!: number; + @Field(() => Int, {nullable:false}) createdAt!: number; @Field(() => Int, {nullable:false}) updatedAt!: number; - @Field(() => Int, {nullable:false}) - isRevoked!: number; - - @Field(() => Int, {nullable:false}) - expiresAt!: number; - - @Field(() => Int, {nullable:false}) - deletedAt!: number; - - @HideField() - userId!: number; - @Field(() => Int, {nullable:false}) _all!: number; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-count-order-by-aggregate.input.ts b/server/src/core/@generated/refresh-token/refresh-token-count-order-by-aggregate.input.ts index 44691c59072..78811afb11d 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-count-order-by-aggregate.input.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-count-order-by-aggregate.input.ts @@ -9,21 +9,21 @@ export class RefreshTokenCountOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) isRevoked?: keyof typeof SortOrder; + @HideField() + userId?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) expiresAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) + @HideField() deletedAt?: keyof typeof SortOrder; - @HideField() - userId?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-create-many-user.input.ts b/server/src/core/@generated/refresh-token/refresh-token-create-many-user.input.ts index e5865df1c22..b35e71c0ba3 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-create-many-user.input.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-create-many-user.input.ts @@ -1,24 +1,30 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; @InputType() export class RefreshTokenCreateManyUserInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + isRevoked?: boolean; + + @Field(() => Date, {nullable:false}) + expiresAt!: Date | string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - - @Field(() => Boolean, {nullable:true}) - isRevoked?: boolean; - - @Field(() => Date, {nullable:false}) - expiresAt!: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-create-many.input.ts b/server/src/core/@generated/refresh-token/refresh-token-create-many.input.ts index b9d642a15ba..0434ee36ae5 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-create-many.input.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-create-many.input.ts @@ -1,28 +1,33 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @InputType() export class RefreshTokenCreateManyInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + isRevoked?: boolean; + + @HideField() + userId!: string; + + @Field(() => Date, {nullable:false}) + expiresAt!: Date | string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - - @Field(() => Boolean, {nullable:true}) - isRevoked?: boolean; - - @Field(() => Date, {nullable:false}) - expiresAt!: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @HideField() - userId!: string; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-create-without-user.input.ts b/server/src/core/@generated/refresh-token/refresh-token-create-without-user.input.ts index af7d6c9eb6e..3ef7c24e961 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-create-without-user.input.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-create-without-user.input.ts @@ -1,24 +1,30 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; @InputType() export class RefreshTokenCreateWithoutUserInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + isRevoked?: boolean; + + @Field(() => Date, {nullable:false}) + expiresAt!: Date | string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - - @Field(() => Boolean, {nullable:true}) - isRevoked?: boolean; - - @Field(() => Date, {nullable:false}) - expiresAt!: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-create.input.ts b/server/src/core/@generated/refresh-token/refresh-token-create.input.ts index 99abf4edb77..23de4057da2 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-create.input.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-create.input.ts @@ -1,29 +1,34 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; -import { UserCreateNestedOneWithoutRefreshTokensInput } from '../user/user-create-nested-one-without-refresh-tokens.input'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; +import { UserCreateNestedOneWithoutRefreshTokensInput } from '../user/user-create-nested-one-without-refresh-tokens.input'; @InputType() export class RefreshTokenCreateInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + isRevoked?: boolean; + + @Field(() => Date, {nullable:false}) + expiresAt!: Date | string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Boolean, {nullable:true}) - isRevoked?: boolean; - - @Field(() => Date, {nullable:false}) - expiresAt!: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @HideField() user!: UserCreateNestedOneWithoutRefreshTokensInput; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-group-by.output.ts b/server/src/core/@generated/refresh-token/refresh-token-group-by.output.ts index d2586b02753..c63bbc5c170 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-group-by.output.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-group-by.output.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; import { RefreshTokenCountAggregate } from './refresh-token-count-aggregate.output'; import { RefreshTokenMinAggregate } from './refresh-token-min-aggregate.output'; @@ -9,26 +10,30 @@ import { RefreshTokenMaxAggregate } from './refresh-token-max-aggregate.output'; export class RefreshTokenGroupBy { @Field(() => String, {nullable:false}) + @Validator.IsString() + @Validator.IsOptional() id!: string; + @Field(() => Boolean, {nullable:false}) + @Validator.IsBoolean() + @Validator.IsOptional() + isRevoked!: boolean; + + @HideField() + userId!: string; + + @Field(() => Date, {nullable:false}) + expiresAt!: Date | string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:false}) createdAt!: Date | string; @Field(() => Date, {nullable:false}) updatedAt!: Date | string; - @Field(() => Boolean, {nullable:false}) - isRevoked!: boolean; - - @Field(() => Date, {nullable:false}) - expiresAt!: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @HideField() - userId!: string; - @Field(() => RefreshTokenCountAggregate, {nullable:true}) _count?: RefreshTokenCountAggregate; diff --git a/server/src/core/@generated/refresh-token/refresh-token-max-aggregate.input.ts b/server/src/core/@generated/refresh-token/refresh-token-max-aggregate.input.ts index 21b62995518..a89c0fea4f2 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-max-aggregate.input.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-max-aggregate.input.ts @@ -8,21 +8,21 @@ export class RefreshTokenMaxAggregateInput { @Field(() => Boolean, {nullable:true}) id?: true; - @Field(() => Boolean, {nullable:true}) - createdAt?: true; - - @Field(() => Boolean, {nullable:true}) - updatedAt?: true; - @Field(() => Boolean, {nullable:true}) isRevoked?: true; + @HideField() + userId?: true; + @Field(() => Boolean, {nullable:true}) expiresAt?: true; - @Field(() => Boolean, {nullable:true}) + @HideField() deletedAt?: true; - @HideField() - userId?: true; + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-max-aggregate.output.ts b/server/src/core/@generated/refresh-token/refresh-token-max-aggregate.output.ts index c353ed0b299..3a452a2d004 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-max-aggregate.output.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-max-aggregate.output.ts @@ -1,28 +1,33 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @ObjectType() export class RefreshTokenMaxAggregate { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + isRevoked?: boolean; + + @HideField() + userId?: string; + + @Field(() => Date, {nullable:true}) + expiresAt?: Date | string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - - @Field(() => Boolean, {nullable:true}) - isRevoked?: boolean; - - @Field(() => Date, {nullable:true}) - expiresAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @HideField() - userId?: string; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-max-order-by-aggregate.input.ts b/server/src/core/@generated/refresh-token/refresh-token-max-order-by-aggregate.input.ts index 7e79a187bd6..e095841335e 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-max-order-by-aggregate.input.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-max-order-by-aggregate.input.ts @@ -9,21 +9,21 @@ export class RefreshTokenMaxOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) isRevoked?: keyof typeof SortOrder; + @HideField() + userId?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) expiresAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) + @HideField() deletedAt?: keyof typeof SortOrder; - @HideField() - userId?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-min-aggregate.input.ts b/server/src/core/@generated/refresh-token/refresh-token-min-aggregate.input.ts index 7744c242ace..c91e87efd78 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-min-aggregate.input.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-min-aggregate.input.ts @@ -8,21 +8,21 @@ export class RefreshTokenMinAggregateInput { @Field(() => Boolean, {nullable:true}) id?: true; - @Field(() => Boolean, {nullable:true}) - createdAt?: true; - - @Field(() => Boolean, {nullable:true}) - updatedAt?: true; - @Field(() => Boolean, {nullable:true}) isRevoked?: true; + @HideField() + userId?: true; + @Field(() => Boolean, {nullable:true}) expiresAt?: true; - @Field(() => Boolean, {nullable:true}) + @HideField() deletedAt?: true; - @HideField() - userId?: true; + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-min-aggregate.output.ts b/server/src/core/@generated/refresh-token/refresh-token-min-aggregate.output.ts index d3dede01a7e..d3e78a5c72c 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-min-aggregate.output.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-min-aggregate.output.ts @@ -1,28 +1,33 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @ObjectType() export class RefreshTokenMinAggregate { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + isRevoked?: boolean; + + @HideField() + userId?: string; + + @Field(() => Date, {nullable:true}) + expiresAt?: Date | string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - - @Field(() => Boolean, {nullable:true}) - isRevoked?: boolean; - - @Field(() => Date, {nullable:true}) - expiresAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @HideField() - userId?: string; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-min-order-by-aggregate.input.ts b/server/src/core/@generated/refresh-token/refresh-token-min-order-by-aggregate.input.ts index b779ed12422..1495d70e87e 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-min-order-by-aggregate.input.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-min-order-by-aggregate.input.ts @@ -9,21 +9,21 @@ export class RefreshTokenMinOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) isRevoked?: keyof typeof SortOrder; + @HideField() + userId?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) expiresAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) + @HideField() deletedAt?: keyof typeof SortOrder; - @HideField() - userId?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-order-by-with-aggregation.input.ts b/server/src/core/@generated/refresh-token/refresh-token-order-by-with-aggregation.input.ts index e2a3ac87704..bc55bc5bdb3 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-order-by-with-aggregation.input.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-order-by-with-aggregation.input.ts @@ -12,23 +12,23 @@ export class RefreshTokenOrderByWithAggregationInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) isRevoked?: keyof typeof SortOrder; + @HideField() + userId?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) expiresAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) + @HideField() deletedAt?: keyof typeof SortOrder; - @HideField() - userId?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; @Field(() => RefreshTokenCountOrderByAggregateInput, {nullable:true}) _count?: RefreshTokenCountOrderByAggregateInput; diff --git a/server/src/core/@generated/refresh-token/refresh-token-order-by-with-relation.input.ts b/server/src/core/@generated/refresh-token/refresh-token-order-by-with-relation.input.ts index 38b1042b2ea..52ddbe0f71f 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-order-by-with-relation.input.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-order-by-with-relation.input.ts @@ -10,24 +10,24 @@ export class RefreshTokenOrderByWithRelationInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) + isRevoked?: keyof typeof SortOrder; + + @HideField() + userId?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + expiresAt?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) createdAt?: keyof typeof SortOrder; @Field(() => SortOrder, {nullable:true}) updatedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - isRevoked?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - expiresAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - - @HideField() - userId?: keyof typeof SortOrder; - @HideField() user?: UserOrderByWithRelationInput; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-scalar-field.enum.ts b/server/src/core/@generated/refresh-token/refresh-token-scalar-field.enum.ts index 7ad85d277ae..ecb668a5dbf 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-scalar-field.enum.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-scalar-field.enum.ts @@ -2,12 +2,12 @@ import { registerEnumType } from '@nestjs/graphql'; export enum RefreshTokenScalarFieldEnum { id = "id", - createdAt = "createdAt", - updatedAt = "updatedAt", isRevoked = "isRevoked", + userId = "userId", expiresAt = "expiresAt", deletedAt = "deletedAt", - userId = "userId" + createdAt = "createdAt", + updatedAt = "updatedAt" } diff --git a/server/src/core/@generated/refresh-token/refresh-token-scalar-where-with-aggregates.input.ts b/server/src/core/@generated/refresh-token/refresh-token-scalar-where-with-aggregates.input.ts index e7a1c66eacb..51a1b4e6836 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-scalar-where-with-aggregates.input.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-scalar-where-with-aggregates.input.ts @@ -1,10 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringWithAggregatesFilter } from '../prisma/string-with-aggregates-filter.input'; -import { DateTimeWithAggregatesFilter } from '../prisma/date-time-with-aggregates-filter.input'; import { BoolWithAggregatesFilter } from '../prisma/bool-with-aggregates-filter.input'; -import { DateTimeNullableWithAggregatesFilter } from '../prisma/date-time-nullable-with-aggregates-filter.input'; import { HideField } from '@nestjs/graphql'; +import { DateTimeWithAggregatesFilter } from '../prisma/date-time-with-aggregates-filter.input'; +import { DateTimeNullableWithAggregatesFilter } from '../prisma/date-time-nullable-with-aggregates-filter.input'; @InputType() export class RefreshTokenScalarWhereWithAggregatesInput { @@ -21,21 +21,21 @@ export class RefreshTokenScalarWhereWithAggregatesInput { @Field(() => StringWithAggregatesFilter, {nullable:true}) id?: StringWithAggregatesFilter; + @Field(() => BoolWithAggregatesFilter, {nullable:true}) + isRevoked?: BoolWithAggregatesFilter; + + @HideField() + userId?: StringWithAggregatesFilter; + + @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) + expiresAt?: DateTimeWithAggregatesFilter; + + @HideField() + deletedAt?: DateTimeNullableWithAggregatesFilter; + @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) createdAt?: DateTimeWithAggregatesFilter; @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) updatedAt?: DateTimeWithAggregatesFilter; - - @Field(() => BoolWithAggregatesFilter, {nullable:true}) - isRevoked?: BoolWithAggregatesFilter; - - @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) - expiresAt?: DateTimeWithAggregatesFilter; - - @Field(() => DateTimeNullableWithAggregatesFilter, {nullable:true}) - deletedAt?: DateTimeNullableWithAggregatesFilter; - - @HideField() - userId?: StringWithAggregatesFilter; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-scalar-where.input.ts b/server/src/core/@generated/refresh-token/refresh-token-scalar-where.input.ts index 5d08cf380b3..bf052aa44b0 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-scalar-where.input.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-scalar-where.input.ts @@ -1,10 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFilter } from '../prisma/string-filter.input'; -import { DateTimeFilter } from '../prisma/date-time-filter.input'; import { BoolFilter } from '../prisma/bool-filter.input'; -import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; import { HideField } from '@nestjs/graphql'; +import { DateTimeFilter } from '../prisma/date-time-filter.input'; +import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; @InputType() export class RefreshTokenScalarWhereInput { @@ -21,21 +21,21 @@ export class RefreshTokenScalarWhereInput { @Field(() => StringFilter, {nullable:true}) id?: StringFilter; + @Field(() => BoolFilter, {nullable:true}) + isRevoked?: BoolFilter; + + @HideField() + userId?: StringFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + expiresAt?: DateTimeFilter; + + @HideField() + deletedAt?: DateTimeNullableFilter; + @Field(() => DateTimeFilter, {nullable:true}) createdAt?: DateTimeFilter; @Field(() => DateTimeFilter, {nullable:true}) updatedAt?: DateTimeFilter; - - @Field(() => BoolFilter, {nullable:true}) - isRevoked?: BoolFilter; - - @Field(() => DateTimeFilter, {nullable:true}) - expiresAt?: DateTimeFilter; - - @Field(() => DateTimeNullableFilter, {nullable:true}) - deletedAt?: DateTimeNullableFilter; - - @HideField() - userId?: StringFilter; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-unchecked-create-without-user.input.ts b/server/src/core/@generated/refresh-token/refresh-token-unchecked-create-without-user.input.ts index ba63ab4dcf0..b1bf7daa00c 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-unchecked-create-without-user.input.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-unchecked-create-without-user.input.ts @@ -1,24 +1,30 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; @InputType() export class RefreshTokenUncheckedCreateWithoutUserInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + isRevoked?: boolean; + + @Field(() => Date, {nullable:false}) + expiresAt!: Date | string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - - @Field(() => Boolean, {nullable:true}) - isRevoked?: boolean; - - @Field(() => Date, {nullable:false}) - expiresAt!: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-unchecked-create.input.ts b/server/src/core/@generated/refresh-token/refresh-token-unchecked-create.input.ts index da8bd691cff..18beccde8a4 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-unchecked-create.input.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-unchecked-create.input.ts @@ -1,28 +1,33 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @InputType() export class RefreshTokenUncheckedCreateInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + isRevoked?: boolean; + + @HideField() + userId!: string; + + @Field(() => Date, {nullable:false}) + expiresAt!: Date | string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - - @Field(() => Boolean, {nullable:true}) - isRevoked?: boolean; - - @Field(() => Date, {nullable:false}) - expiresAt!: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @HideField() - userId!: string; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-unchecked-update-many-without-refresh-tokens.input.ts b/server/src/core/@generated/refresh-token/refresh-token-unchecked-update-many-without-refresh-tokens.input.ts index 624281f3051..ea05d8a6e97 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-unchecked-update-many-without-refresh-tokens.input.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-unchecked-update-many-without-refresh-tokens.input.ts @@ -1,9 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; @InputType() export class RefreshTokenUncheckedUpdateManyWithoutRefreshTokensInput { @@ -11,18 +12,18 @@ export class RefreshTokenUncheckedUpdateManyWithoutRefreshTokensInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) isRevoked?: BoolFieldUpdateOperationsInput; @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) expiresAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) + @HideField() deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-unchecked-update-many.input.ts b/server/src/core/@generated/refresh-token/refresh-token-unchecked-update-many.input.ts index ebda14658c3..3cbc2aea865 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-unchecked-update-many.input.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-unchecked-update-many.input.ts @@ -1,10 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; @InputType() export class RefreshTokenUncheckedUpdateManyInput { @@ -12,21 +12,21 @@ export class RefreshTokenUncheckedUpdateManyInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; + @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) + isRevoked?: BoolFieldUpdateOperationsInput; + + @HideField() + userId?: StringFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + expiresAt?: DateTimeFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) createdAt?: DateTimeFieldUpdateOperationsInput; @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) - isRevoked?: BoolFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - expiresAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - - @HideField() - userId?: StringFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-unchecked-update-without-user.input.ts b/server/src/core/@generated/refresh-token/refresh-token-unchecked-update-without-user.input.ts index 7ca5fdc1d54..305497b1cda 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-unchecked-update-without-user.input.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-unchecked-update-without-user.input.ts @@ -1,9 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; @InputType() export class RefreshTokenUncheckedUpdateWithoutUserInput { @@ -11,18 +12,18 @@ export class RefreshTokenUncheckedUpdateWithoutUserInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) isRevoked?: BoolFieldUpdateOperationsInput; @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) expiresAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) + @HideField() deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-unchecked-update.input.ts b/server/src/core/@generated/refresh-token/refresh-token-unchecked-update.input.ts index 8fc887e8b53..ca8371dba1f 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-unchecked-update.input.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-unchecked-update.input.ts @@ -1,10 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; @InputType() export class RefreshTokenUncheckedUpdateInput { @@ -12,21 +12,21 @@ export class RefreshTokenUncheckedUpdateInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; + @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) + isRevoked?: BoolFieldUpdateOperationsInput; + + @HideField() + userId?: StringFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + expiresAt?: DateTimeFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) createdAt?: DateTimeFieldUpdateOperationsInput; @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) - isRevoked?: BoolFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - expiresAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - - @HideField() - userId?: StringFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-update-many-mutation.input.ts b/server/src/core/@generated/refresh-token/refresh-token-update-many-mutation.input.ts index 13ad8883712..44983e62e89 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-update-many-mutation.input.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-update-many-mutation.input.ts @@ -1,9 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; @InputType() export class RefreshTokenUpdateManyMutationInput { @@ -11,18 +12,18 @@ export class RefreshTokenUpdateManyMutationInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) isRevoked?: BoolFieldUpdateOperationsInput; @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) expiresAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) + @HideField() deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-update-without-user.input.ts b/server/src/core/@generated/refresh-token/refresh-token-update-without-user.input.ts index 4c5546b984a..625a3ecf8ad 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-update-without-user.input.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-update-without-user.input.ts @@ -1,9 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; @InputType() export class RefreshTokenUpdateWithoutUserInput { @@ -11,18 +12,18 @@ export class RefreshTokenUpdateWithoutUserInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) isRevoked?: BoolFieldUpdateOperationsInput; @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) expiresAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) + @HideField() deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-update.input.ts b/server/src/core/@generated/refresh-token/refresh-token-update.input.ts index d31cef1cb24..d1e2ad32cb7 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-update.input.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-update.input.ts @@ -1,11 +1,11 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; -import { UserUpdateOneRequiredWithoutRefreshTokensNestedInput } from '../user/user-update-one-required-without-refresh-tokens-nested.input'; import { HideField } from '@nestjs/graphql'; +import { UserUpdateOneRequiredWithoutRefreshTokensNestedInput } from '../user/user-update-one-required-without-refresh-tokens-nested.input'; @InputType() export class RefreshTokenUpdateInput { @@ -13,21 +13,21 @@ export class RefreshTokenUpdateInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) isRevoked?: BoolFieldUpdateOperationsInput; @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) expiresAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) + @HideField() deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @HideField() user?: UserUpdateOneRequiredWithoutRefreshTokensNestedInput; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-where-unique.input.ts b/server/src/core/@generated/refresh-token/refresh-token-where-unique.input.ts index 2e45dd93d63..85e3a683267 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-where-unique.input.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-where-unique.input.ts @@ -1,9 +1,12 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; @InputType() export class RefreshTokenWhereUniqueInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-where.input.ts b/server/src/core/@generated/refresh-token/refresh-token-where.input.ts index 69903f68bc0..607f39dd917 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-where.input.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-where.input.ts @@ -1,10 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFilter } from '../prisma/string-filter.input'; -import { DateTimeFilter } from '../prisma/date-time-filter.input'; import { BoolFilter } from '../prisma/bool-filter.input'; -import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; import { HideField } from '@nestjs/graphql'; +import { DateTimeFilter } from '../prisma/date-time-filter.input'; +import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; import { UserRelationFilter } from '../user/user-relation-filter.input'; @InputType() @@ -22,24 +22,24 @@ export class RefreshTokenWhereInput { @Field(() => StringFilter, {nullable:true}) id?: StringFilter; + @Field(() => BoolFilter, {nullable:true}) + isRevoked?: BoolFilter; + + @HideField() + userId?: StringFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + expiresAt?: DateTimeFilter; + + @HideField() + deletedAt?: DateTimeNullableFilter; + @Field(() => DateTimeFilter, {nullable:true}) createdAt?: DateTimeFilter; @Field(() => DateTimeFilter, {nullable:true}) updatedAt?: DateTimeFilter; - @Field(() => BoolFilter, {nullable:true}) - isRevoked?: BoolFilter; - - @Field(() => DateTimeFilter, {nullable:true}) - expiresAt?: DateTimeFilter; - - @Field(() => DateTimeNullableFilter, {nullable:true}) - deletedAt?: DateTimeNullableFilter; - - @HideField() - userId?: StringFilter; - @HideField() user?: UserRelationFilter; } diff --git a/server/src/core/@generated/refresh-token/refresh-token.model.ts b/server/src/core/@generated/refresh-token/refresh-token.model.ts index 8184a36c2f0..9aac4e65ad7 100644 --- a/server/src/core/@generated/refresh-token/refresh-token.model.ts +++ b/server/src/core/@generated/refresh-token/refresh-token.model.ts @@ -10,24 +10,24 @@ export class RefreshToken { @Field(() => ID, {nullable:false}) id!: string; + @Field(() => Boolean, {nullable:false,defaultValue:false}) + isRevoked!: boolean; + + @HideField() + userId!: string; + + @Field(() => Date, {nullable:false}) + expiresAt!: Date; + + @HideField() + deletedAt!: Date | null; + @Field(() => Date, {nullable:false}) createdAt!: Date; @Field(() => Date, {nullable:false}) updatedAt!: Date; - @Field(() => Boolean, {nullable:false,defaultValue:false}) - isRevoked!: boolean; - - @Field(() => Date, {nullable:false}) - expiresAt!: Date; - - @Field(() => Date, {nullable:true}) - deletedAt!: Date | null; - - @HideField() - userId!: string; - @HideField() user?: User; } diff --git a/server/src/core/@generated/refresh-token/update-many-refresh-token.args.ts b/server/src/core/@generated/refresh-token/update-many-refresh-token.args.ts index 820819ad075..51c0f78073f 100644 --- a/server/src/core/@generated/refresh-token/update-many-refresh-token.args.ts +++ b/server/src/core/@generated/refresh-token/update-many-refresh-token.args.ts @@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { RefreshTokenUpdateManyMutationInput } from './refresh-token-update-many-mutation.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; import { RefreshTokenWhereInput } from './refresh-token-where.input'; @ArgsType() @@ -9,6 +10,8 @@ export class UpdateManyRefreshTokenArgs { @Field(() => RefreshTokenUpdateManyMutationInput, {nullable:false}) @Type(() => RefreshTokenUpdateManyMutationInput) + @ValidateNested({each: true}) + @Type(() => RefreshTokenUpdateManyMutationInput) data!: RefreshTokenUpdateManyMutationInput; @Field(() => RefreshTokenWhereInput, {nullable:true}) diff --git a/server/src/core/@generated/refresh-token/update-one-refresh-token.args.ts b/server/src/core/@generated/refresh-token/update-one-refresh-token.args.ts index f2116b404eb..c878ef06b0c 100644 --- a/server/src/core/@generated/refresh-token/update-one-refresh-token.args.ts +++ b/server/src/core/@generated/refresh-token/update-one-refresh-token.args.ts @@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { RefreshTokenUpdateInput } from './refresh-token-update.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; import { RefreshTokenWhereUniqueInput } from './refresh-token-where-unique.input'; @ArgsType() @@ -9,6 +10,8 @@ export class UpdateOneRefreshTokenArgs { @Field(() => RefreshTokenUpdateInput, {nullable:false}) @Type(() => RefreshTokenUpdateInput) + @ValidateNested({each: true}) + @Type(() => RefreshTokenUpdateInput) data!: RefreshTokenUpdateInput; @Field(() => RefreshTokenWhereUniqueInput, {nullable:false}) diff --git a/server/src/core/@generated/user/create-many-user.args.ts b/server/src/core/@generated/user/create-many-user.args.ts index d1e7141d571..e57cc3d602f 100644 --- a/server/src/core/@generated/user/create-many-user.args.ts +++ b/server/src/core/@generated/user/create-many-user.args.ts @@ -2,12 +2,15 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { UserCreateManyInput } from './user-create-many.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; @ArgsType() export class CreateManyUserArgs { @Field(() => [UserCreateManyInput], {nullable:false}) @Type(() => UserCreateManyInput) + @ValidateNested({each: true}) + @Type(() => UserCreateManyInput) data!: Array; @Field(() => Boolean, {nullable:true}) diff --git a/server/src/core/@generated/user/create-one-user.args.ts b/server/src/core/@generated/user/create-one-user.args.ts index 6a791035cd7..017efd8369f 100644 --- a/server/src/core/@generated/user/create-one-user.args.ts +++ b/server/src/core/@generated/user/create-one-user.args.ts @@ -2,11 +2,14 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { UserCreateInput } from './user-create.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; @ArgsType() export class CreateOneUserArgs { @Field(() => UserCreateInput, {nullable:false}) @Type(() => UserCreateInput) + @ValidateNested({each: true}) + @Type(() => UserCreateInput) data!: UserCreateInput; } diff --git a/server/src/core/@generated/user/update-many-user.args.ts b/server/src/core/@generated/user/update-many-user.args.ts index 2e8274867c3..7b964a70042 100644 --- a/server/src/core/@generated/user/update-many-user.args.ts +++ b/server/src/core/@generated/user/update-many-user.args.ts @@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { UserUpdateManyMutationInput } from './user-update-many-mutation.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; import { UserWhereInput } from './user-where.input'; @ArgsType() @@ -9,6 +10,8 @@ export class UpdateManyUserArgs { @Field(() => UserUpdateManyMutationInput, {nullable:false}) @Type(() => UserUpdateManyMutationInput) + @ValidateNested({each: true}) + @Type(() => UserUpdateManyMutationInput) data!: UserUpdateManyMutationInput; @Field(() => UserWhereInput, {nullable:true}) diff --git a/server/src/core/@generated/user/update-one-user.args.ts b/server/src/core/@generated/user/update-one-user.args.ts index 9f16dadfd2f..819930ca93f 100644 --- a/server/src/core/@generated/user/update-one-user.args.ts +++ b/server/src/core/@generated/user/update-one-user.args.ts @@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { UserUpdateInput } from './user-update.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; import { UserWhereUniqueInput } from './user-where-unique.input'; @ArgsType() @@ -9,6 +10,8 @@ export class UpdateOneUserArgs { @Field(() => UserUpdateInput, {nullable:false}) @Type(() => UserUpdateInput) + @ValidateNested({each: true}) + @Type(() => UserUpdateInput) data!: UserUpdateInput; @Field(() => UserWhereUniqueInput, {nullable:false}) diff --git a/server/src/core/@generated/user/user-count-aggregate.input.ts b/server/src/core/@generated/user/user-count-aggregate.input.ts index 2c647126153..f6d0e38e6bf 100644 --- a/server/src/core/@generated/user/user-count-aggregate.input.ts +++ b/server/src/core/@generated/user/user-count-aggregate.input.ts @@ -8,27 +8,15 @@ export class UserCountAggregateInput { @Field(() => Boolean, {nullable:true}) id?: true; - @Field(() => Boolean, {nullable:true}) - createdAt?: true; - - @Field(() => Boolean, {nullable:true}) - updatedAt?: true; - - @Field(() => Boolean, {nullable:true}) - deletedAt?: true; - - @Field(() => Boolean, {nullable:true}) - lastSeen?: true; - - @Field(() => Boolean, {nullable:true}) - disabled?: true; - @Field(() => Boolean, {nullable:true}) displayName?: true; @Field(() => Boolean, {nullable:true}) email?: true; + @Field(() => Boolean, {nullable:true}) + emailVerified?: true; + @Field(() => Boolean, {nullable:true}) avatarUrl?: true; @@ -38,14 +26,26 @@ export class UserCountAggregateInput { @Field(() => Boolean, {nullable:true}) phoneNumber?: true; + @Field(() => Boolean, {nullable:true}) + lastSeen?: true; + + @Field(() => Boolean, {nullable:true}) + disabled?: true; + @HideField() passwordHash?: true; @Field(() => Boolean, {nullable:true}) - emailVerified?: true; + metadata?: true; + + @HideField() + deletedAt?: true; @Field(() => Boolean, {nullable:true}) - metadata?: true; + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; @Field(() => Boolean, {nullable:true}) _all?: true; diff --git a/server/src/core/@generated/user/user-count-aggregate.output.ts b/server/src/core/@generated/user/user-count-aggregate.output.ts index 602cb9eb785..834dc74b26e 100644 --- a/server/src/core/@generated/user/user-count-aggregate.output.ts +++ b/server/src/core/@generated/user/user-count-aggregate.output.ts @@ -9,27 +9,15 @@ export class UserCountAggregate { @Field(() => Int, {nullable:false}) id!: number; - @Field(() => Int, {nullable:false}) - createdAt!: number; - - @Field(() => Int, {nullable:false}) - updatedAt!: number; - - @Field(() => Int, {nullable:false}) - deletedAt!: number; - - @Field(() => Int, {nullable:false}) - lastSeen!: number; - - @Field(() => Int, {nullable:false}) - disabled!: number; - @Field(() => Int, {nullable:false}) displayName!: number; @Field(() => Int, {nullable:false}) email!: number; + @Field(() => Int, {nullable:false}) + emailVerified!: number; + @Field(() => Int, {nullable:false}) avatarUrl!: number; @@ -39,14 +27,26 @@ export class UserCountAggregate { @Field(() => Int, {nullable:false}) phoneNumber!: number; + @Field(() => Int, {nullable:false}) + lastSeen!: number; + + @Field(() => Int, {nullable:false}) + disabled!: number; + @HideField() passwordHash!: number; @Field(() => Int, {nullable:false}) - emailVerified!: number; + metadata!: number; + + @HideField() + deletedAt!: number; @Field(() => Int, {nullable:false}) - metadata!: number; + createdAt!: number; + + @Field(() => Int, {nullable:false}) + updatedAt!: number; @Field(() => Int, {nullable:false}) _all!: number; diff --git a/server/src/core/@generated/user/user-count-order-by-aggregate.input.ts b/server/src/core/@generated/user/user-count-order-by-aggregate.input.ts index 6b09d9e8f83..d35a46120ce 100644 --- a/server/src/core/@generated/user/user-count-order-by-aggregate.input.ts +++ b/server/src/core/@generated/user/user-count-order-by-aggregate.input.ts @@ -9,27 +9,15 @@ export class UserCountOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - lastSeen?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - disabled?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) displayName?: keyof typeof SortOrder; @Field(() => SortOrder, {nullable:true}) email?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) + emailVerified?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) avatarUrl?: keyof typeof SortOrder; @@ -39,12 +27,24 @@ export class UserCountOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) phoneNumber?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) + lastSeen?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + disabled?: keyof typeof SortOrder; + @HideField() passwordHash?: keyof typeof SortOrder; @Field(() => SortOrder, {nullable:true}) - emailVerified?: keyof typeof SortOrder; + metadata?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; @Field(() => SortOrder, {nullable:true}) - metadata?: keyof typeof SortOrder; + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/user/user-create-many.input.ts b/server/src/core/@generated/user/user-create-many.input.ts index 076798c2b2b..66a34d6dd2a 100644 --- a/server/src/core/@generated/user/user-create-many.input.ts +++ b/server/src/core/@generated/user/user-create-many.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; @@ -7,44 +8,62 @@ import { GraphQLJSON } from 'graphql-type-json'; export class UserCreateManyInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + @Validator.IsOptional() + displayName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsEmail() + email!: string; + + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + emailVerified?: boolean; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + avatarUrl?: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + locale!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + phoneNumber?: string; + + @Field(() => Date, {nullable:true}) + @Validator.IsDate() + @Validator.IsOptional() + lastSeen?: Date | string; + + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + disabled?: boolean; + + @HideField() + passwordHash?: string; + + @Field(() => GraphQLJSON, {nullable:true}) + @Validator.IsJSON() + @Validator.IsOptional() + metadata?: any; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - lastSeen?: Date | string; - - @Field(() => Boolean, {nullable:true}) - disabled?: boolean; - - @Field(() => String, {nullable:false}) - displayName!: string; - - @Field(() => String, {nullable:false}) - email!: string; - - @Field(() => String, {nullable:true}) - avatarUrl?: string; - - @Field(() => String, {nullable:false}) - locale!: string; - - @Field(() => String, {nullable:true}) - phoneNumber?: string; - - @HideField() - passwordHash?: string; - - @Field(() => Boolean, {nullable:true}) - emailVerified?: boolean; - - @Field(() => GraphQLJSON, {nullable:true}) - metadata?: any; } diff --git a/server/src/core/@generated/user/user-create-without-comments.input.ts b/server/src/core/@generated/user/user-create-without-comments.input.ts index dbe3b4873cb..2d0834395e6 100644 --- a/server/src/core/@generated/user/user-create-without-comments.input.ts +++ b/server/src/core/@generated/user/user-create-without-comments.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; import { WorkspaceMemberCreateNestedOneWithoutUserInput } from '../workspace-member/workspace-member-create-nested-one-without-user.input'; @@ -10,47 +11,65 @@ import { RefreshTokenCreateNestedManyWithoutUserInput } from '../refresh-token/r export class UserCreateWithoutCommentsInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + @Validator.IsOptional() + displayName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsEmail() + email!: string; + + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + emailVerified?: boolean; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + avatarUrl?: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + locale!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + phoneNumber?: string; + + @Field(() => Date, {nullable:true}) + @Validator.IsDate() + @Validator.IsOptional() + lastSeen?: Date | string; + + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + disabled?: boolean; + + @HideField() + passwordHash?: string; + + @Field(() => GraphQLJSON, {nullable:true}) + @Validator.IsJSON() + @Validator.IsOptional() + metadata?: any; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - lastSeen?: Date | string; - - @Field(() => Boolean, {nullable:true}) - disabled?: boolean; - - @Field(() => String, {nullable:false}) - displayName!: string; - - @Field(() => String, {nullable:false}) - email!: string; - - @Field(() => String, {nullable:true}) - avatarUrl?: string; - - @Field(() => String, {nullable:false}) - locale!: string; - - @Field(() => String, {nullable:true}) - phoneNumber?: string; - - @HideField() - passwordHash?: string; - - @Field(() => Boolean, {nullable:true}) - emailVerified?: boolean; - - @Field(() => GraphQLJSON, {nullable:true}) - metadata?: any; - @HideField() workspaceMember?: WorkspaceMemberCreateNestedOneWithoutUserInput; diff --git a/server/src/core/@generated/user/user-create-without-companies.input.ts b/server/src/core/@generated/user/user-create-without-companies.input.ts index 472fb485460..47fef22c185 100644 --- a/server/src/core/@generated/user/user-create-without-companies.input.ts +++ b/server/src/core/@generated/user/user-create-without-companies.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; import { WorkspaceMemberCreateNestedOneWithoutUserInput } from '../workspace-member/workspace-member-create-nested-one-without-user.input'; @@ -10,47 +11,65 @@ import { CommentCreateNestedManyWithoutAuthorInput } from '../comment/comment-cr export class UserCreateWithoutCompaniesInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + @Validator.IsOptional() + displayName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsEmail() + email!: string; + + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + emailVerified?: boolean; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + avatarUrl?: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + locale!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + phoneNumber?: string; + + @Field(() => Date, {nullable:true}) + @Validator.IsDate() + @Validator.IsOptional() + lastSeen?: Date | string; + + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + disabled?: boolean; + + @HideField() + passwordHash?: string; + + @Field(() => GraphQLJSON, {nullable:true}) + @Validator.IsJSON() + @Validator.IsOptional() + metadata?: any; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - lastSeen?: Date | string; - - @Field(() => Boolean, {nullable:true}) - disabled?: boolean; - - @Field(() => String, {nullable:false}) - displayName!: string; - - @Field(() => String, {nullable:false}) - email!: string; - - @Field(() => String, {nullable:true}) - avatarUrl?: string; - - @Field(() => String, {nullable:false}) - locale!: string; - - @Field(() => String, {nullable:true}) - phoneNumber?: string; - - @HideField() - passwordHash?: string; - - @Field(() => Boolean, {nullable:true}) - emailVerified?: boolean; - - @Field(() => GraphQLJSON, {nullable:true}) - metadata?: any; - @HideField() workspaceMember?: WorkspaceMemberCreateNestedOneWithoutUserInput; diff --git a/server/src/core/@generated/user/user-create-without-refresh-tokens.input.ts b/server/src/core/@generated/user/user-create-without-refresh-tokens.input.ts index 893dad9ce02..a31e91d8b04 100644 --- a/server/src/core/@generated/user/user-create-without-refresh-tokens.input.ts +++ b/server/src/core/@generated/user/user-create-without-refresh-tokens.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; import { WorkspaceMemberCreateNestedOneWithoutUserInput } from '../workspace-member/workspace-member-create-nested-one-without-user.input'; @@ -10,47 +11,65 @@ import { CommentCreateNestedManyWithoutAuthorInput } from '../comment/comment-cr export class UserCreateWithoutRefreshTokensInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + @Validator.IsOptional() + displayName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsEmail() + email!: string; + + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + emailVerified?: boolean; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + avatarUrl?: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + locale!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + phoneNumber?: string; + + @Field(() => Date, {nullable:true}) + @Validator.IsDate() + @Validator.IsOptional() + lastSeen?: Date | string; + + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + disabled?: boolean; + + @HideField() + passwordHash?: string; + + @Field(() => GraphQLJSON, {nullable:true}) + @Validator.IsJSON() + @Validator.IsOptional() + metadata?: any; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - lastSeen?: Date | string; - - @Field(() => Boolean, {nullable:true}) - disabled?: boolean; - - @Field(() => String, {nullable:false}) - displayName!: string; - - @Field(() => String, {nullable:false}) - email!: string; - - @Field(() => String, {nullable:true}) - avatarUrl?: string; - - @Field(() => String, {nullable:false}) - locale!: string; - - @Field(() => String, {nullable:true}) - phoneNumber?: string; - - @HideField() - passwordHash?: string; - - @Field(() => Boolean, {nullable:true}) - emailVerified?: boolean; - - @Field(() => GraphQLJSON, {nullable:true}) - metadata?: any; - @HideField() workspaceMember?: WorkspaceMemberCreateNestedOneWithoutUserInput; diff --git a/server/src/core/@generated/user/user-create-without-workspace-member.input.ts b/server/src/core/@generated/user/user-create-without-workspace-member.input.ts index b68b8b96c73..df86720e54a 100644 --- a/server/src/core/@generated/user/user-create-without-workspace-member.input.ts +++ b/server/src/core/@generated/user/user-create-without-workspace-member.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; import { CompanyCreateNestedManyWithoutAccountOwnerInput } from '../company/company-create-nested-many-without-account-owner.input'; @@ -10,47 +11,65 @@ import { CommentCreateNestedManyWithoutAuthorInput } from '../comment/comment-cr export class UserCreateWithoutWorkspaceMemberInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + @Validator.IsOptional() + displayName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsEmail() + email!: string; + + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + emailVerified?: boolean; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + avatarUrl?: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + locale!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + phoneNumber?: string; + + @Field(() => Date, {nullable:true}) + @Validator.IsDate() + @Validator.IsOptional() + lastSeen?: Date | string; + + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + disabled?: boolean; + + @HideField() + passwordHash?: string; + + @Field(() => GraphQLJSON, {nullable:true}) + @Validator.IsJSON() + @Validator.IsOptional() + metadata?: any; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - lastSeen?: Date | string; - - @Field(() => Boolean, {nullable:true}) - disabled?: boolean; - - @Field(() => String, {nullable:false}) - displayName!: string; - - @Field(() => String, {nullable:false}) - email!: string; - - @Field(() => String, {nullable:true}) - avatarUrl?: string; - - @Field(() => String, {nullable:false}) - locale!: string; - - @Field(() => String, {nullable:true}) - phoneNumber?: string; - - @HideField() - passwordHash?: string; - - @Field(() => Boolean, {nullable:true}) - emailVerified?: boolean; - - @Field(() => GraphQLJSON, {nullable:true}) - metadata?: any; - @Field(() => CompanyCreateNestedManyWithoutAccountOwnerInput, {nullable:true}) companies?: CompanyCreateNestedManyWithoutAccountOwnerInput; diff --git a/server/src/core/@generated/user/user-create.input.ts b/server/src/core/@generated/user/user-create.input.ts index 8fe8ffca06c..1aff1405101 100644 --- a/server/src/core/@generated/user/user-create.input.ts +++ b/server/src/core/@generated/user/user-create.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; import { WorkspaceMemberCreateNestedOneWithoutUserInput } from '../workspace-member/workspace-member-create-nested-one-without-user.input'; @@ -11,47 +12,65 @@ import { CommentCreateNestedManyWithoutAuthorInput } from '../comment/comment-cr export class UserCreateInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + @Validator.IsOptional() + displayName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsEmail() + email!: string; + + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + emailVerified?: boolean; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + avatarUrl?: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + locale!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + phoneNumber?: string; + + @Field(() => Date, {nullable:true}) + @Validator.IsDate() + @Validator.IsOptional() + lastSeen?: Date | string; + + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + disabled?: boolean; + + @HideField() + passwordHash?: string; + + @Field(() => GraphQLJSON, {nullable:true}) + @Validator.IsJSON() + @Validator.IsOptional() + metadata?: any; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - lastSeen?: Date | string; - - @Field(() => Boolean, {nullable:true}) - disabled?: boolean; - - @Field(() => String, {nullable:false}) - displayName!: string; - - @Field(() => String, {nullable:false}) - email!: string; - - @Field(() => String, {nullable:true}) - avatarUrl?: string; - - @Field(() => String, {nullable:false}) - locale!: string; - - @Field(() => String, {nullable:true}) - phoneNumber?: string; - - @HideField() - passwordHash?: string; - - @Field(() => Boolean, {nullable:true}) - emailVerified?: boolean; - - @Field(() => GraphQLJSON, {nullable:true}) - metadata?: any; - @HideField() workspaceMember?: WorkspaceMemberCreateNestedOneWithoutUserInput; diff --git a/server/src/core/@generated/user/user-group-by.output.ts b/server/src/core/@generated/user/user-group-by.output.ts index 2b1c046b33a..7dd8030df20 100644 --- a/server/src/core/@generated/user/user-group-by.output.ts +++ b/server/src/core/@generated/user/user-group-by.output.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; import { UserCountAggregate } from './user-count-aggregate.output'; @@ -10,47 +11,65 @@ import { UserMaxAggregate } from './user-max-aggregate.output'; export class UserGroupBy { @Field(() => String, {nullable:false}) + @Validator.IsString() + @Validator.IsOptional() id!: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + @Validator.IsOptional() + displayName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsEmail() + email!: string; + + @Field(() => Boolean, {nullable:false}) + @Validator.IsBoolean() + @Validator.IsOptional() + emailVerified!: boolean; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + avatarUrl?: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + locale!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + phoneNumber?: string; + + @Field(() => Date, {nullable:true}) + @Validator.IsDate() + @Validator.IsOptional() + lastSeen?: Date | string; + + @Field(() => Boolean, {nullable:false}) + @Validator.IsBoolean() + @Validator.IsOptional() + disabled!: boolean; + + @HideField() + passwordHash?: string; + + @Field(() => GraphQLJSON, {nullable:true}) + @Validator.IsJSON() + @Validator.IsOptional() + metadata?: any; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:false}) createdAt!: Date | string; @Field(() => Date, {nullable:false}) updatedAt!: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - lastSeen?: Date | string; - - @Field(() => Boolean, {nullable:false}) - disabled!: boolean; - - @Field(() => String, {nullable:false}) - displayName!: string; - - @Field(() => String, {nullable:false}) - email!: string; - - @Field(() => String, {nullable:true}) - avatarUrl?: string; - - @Field(() => String, {nullable:false}) - locale!: string; - - @Field(() => String, {nullable:true}) - phoneNumber?: string; - - @HideField() - passwordHash?: string; - - @Field(() => Boolean, {nullable:false}) - emailVerified!: boolean; - - @Field(() => GraphQLJSON, {nullable:true}) - metadata?: any; - @Field(() => UserCountAggregate, {nullable:true}) _count?: UserCountAggregate; diff --git a/server/src/core/@generated/user/user-max-aggregate.input.ts b/server/src/core/@generated/user/user-max-aggregate.input.ts index eae4208b7fe..b63cad58bf0 100644 --- a/server/src/core/@generated/user/user-max-aggregate.input.ts +++ b/server/src/core/@generated/user/user-max-aggregate.input.ts @@ -8,27 +8,15 @@ export class UserMaxAggregateInput { @Field(() => Boolean, {nullable:true}) id?: true; - @Field(() => Boolean, {nullable:true}) - createdAt?: true; - - @Field(() => Boolean, {nullable:true}) - updatedAt?: true; - - @Field(() => Boolean, {nullable:true}) - deletedAt?: true; - - @Field(() => Boolean, {nullable:true}) - lastSeen?: true; - - @Field(() => Boolean, {nullable:true}) - disabled?: true; - @Field(() => Boolean, {nullable:true}) displayName?: true; @Field(() => Boolean, {nullable:true}) email?: true; + @Field(() => Boolean, {nullable:true}) + emailVerified?: true; + @Field(() => Boolean, {nullable:true}) avatarUrl?: true; @@ -38,9 +26,21 @@ export class UserMaxAggregateInput { @Field(() => Boolean, {nullable:true}) phoneNumber?: true; + @Field(() => Boolean, {nullable:true}) + lastSeen?: true; + + @Field(() => Boolean, {nullable:true}) + disabled?: true; + @HideField() passwordHash?: true; + @HideField() + deletedAt?: true; + @Field(() => Boolean, {nullable:true}) - emailVerified?: true; + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; } diff --git a/server/src/core/@generated/user/user-max-aggregate.output.ts b/server/src/core/@generated/user/user-max-aggregate.output.ts index a426d13f73f..c62bfdde4e3 100644 --- a/server/src/core/@generated/user/user-max-aggregate.output.ts +++ b/server/src/core/@generated/user/user-max-aggregate.output.ts @@ -1,46 +1,63 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @ObjectType() export class UserMaxAggregate { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + displayName?: string; + + @Field(() => String, {nullable:true}) + @Validator.IsEmail() + email?: string; + + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + emailVerified?: boolean; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + avatarUrl?: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + locale?: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + phoneNumber?: string; + + @Field(() => Date, {nullable:true}) + @Validator.IsDate() + @Validator.IsOptional() + lastSeen?: Date | string; + + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + disabled?: boolean; + + @HideField() + passwordHash?: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - lastSeen?: Date | string; - - @Field(() => Boolean, {nullable:true}) - disabled?: boolean; - - @Field(() => String, {nullable:true}) - displayName?: string; - - @Field(() => String, {nullable:true}) - email?: string; - - @Field(() => String, {nullable:true}) - avatarUrl?: string; - - @Field(() => String, {nullable:true}) - locale?: string; - - @Field(() => String, {nullable:true}) - phoneNumber?: string; - - @HideField() - passwordHash?: string; - - @Field(() => Boolean, {nullable:true}) - emailVerified?: boolean; } diff --git a/server/src/core/@generated/user/user-max-order-by-aggregate.input.ts b/server/src/core/@generated/user/user-max-order-by-aggregate.input.ts index 1ce990fe27d..9dfccd206e8 100644 --- a/server/src/core/@generated/user/user-max-order-by-aggregate.input.ts +++ b/server/src/core/@generated/user/user-max-order-by-aggregate.input.ts @@ -9,27 +9,15 @@ export class UserMaxOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - lastSeen?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - disabled?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) displayName?: keyof typeof SortOrder; @Field(() => SortOrder, {nullable:true}) email?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) + emailVerified?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) avatarUrl?: keyof typeof SortOrder; @@ -39,9 +27,21 @@ export class UserMaxOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) phoneNumber?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) + lastSeen?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + disabled?: keyof typeof SortOrder; + @HideField() passwordHash?: keyof typeof SortOrder; + @HideField() + deletedAt?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) - emailVerified?: keyof typeof SortOrder; + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/user/user-min-aggregate.input.ts b/server/src/core/@generated/user/user-min-aggregate.input.ts index 5fc6f62ae38..f2e8264c392 100644 --- a/server/src/core/@generated/user/user-min-aggregate.input.ts +++ b/server/src/core/@generated/user/user-min-aggregate.input.ts @@ -8,27 +8,15 @@ export class UserMinAggregateInput { @Field(() => Boolean, {nullable:true}) id?: true; - @Field(() => Boolean, {nullable:true}) - createdAt?: true; - - @Field(() => Boolean, {nullable:true}) - updatedAt?: true; - - @Field(() => Boolean, {nullable:true}) - deletedAt?: true; - - @Field(() => Boolean, {nullable:true}) - lastSeen?: true; - - @Field(() => Boolean, {nullable:true}) - disabled?: true; - @Field(() => Boolean, {nullable:true}) displayName?: true; @Field(() => Boolean, {nullable:true}) email?: true; + @Field(() => Boolean, {nullable:true}) + emailVerified?: true; + @Field(() => Boolean, {nullable:true}) avatarUrl?: true; @@ -38,9 +26,21 @@ export class UserMinAggregateInput { @Field(() => Boolean, {nullable:true}) phoneNumber?: true; + @Field(() => Boolean, {nullable:true}) + lastSeen?: true; + + @Field(() => Boolean, {nullable:true}) + disabled?: true; + @HideField() passwordHash?: true; + @HideField() + deletedAt?: true; + @Field(() => Boolean, {nullable:true}) - emailVerified?: true; + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; } diff --git a/server/src/core/@generated/user/user-min-aggregate.output.ts b/server/src/core/@generated/user/user-min-aggregate.output.ts index a1545bff78c..e1fd0ef436f 100644 --- a/server/src/core/@generated/user/user-min-aggregate.output.ts +++ b/server/src/core/@generated/user/user-min-aggregate.output.ts @@ -1,46 +1,63 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @ObjectType() export class UserMinAggregate { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + displayName?: string; + + @Field(() => String, {nullable:true}) + @Validator.IsEmail() + email?: string; + + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + emailVerified?: boolean; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + avatarUrl?: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + locale?: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + phoneNumber?: string; + + @Field(() => Date, {nullable:true}) + @Validator.IsDate() + @Validator.IsOptional() + lastSeen?: Date | string; + + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + disabled?: boolean; + + @HideField() + passwordHash?: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - lastSeen?: Date | string; - - @Field(() => Boolean, {nullable:true}) - disabled?: boolean; - - @Field(() => String, {nullable:true}) - displayName?: string; - - @Field(() => String, {nullable:true}) - email?: string; - - @Field(() => String, {nullable:true}) - avatarUrl?: string; - - @Field(() => String, {nullable:true}) - locale?: string; - - @Field(() => String, {nullable:true}) - phoneNumber?: string; - - @HideField() - passwordHash?: string; - - @Field(() => Boolean, {nullable:true}) - emailVerified?: boolean; } diff --git a/server/src/core/@generated/user/user-min-order-by-aggregate.input.ts b/server/src/core/@generated/user/user-min-order-by-aggregate.input.ts index f1ae85d1bfe..dcb6d2bda8b 100644 --- a/server/src/core/@generated/user/user-min-order-by-aggregate.input.ts +++ b/server/src/core/@generated/user/user-min-order-by-aggregate.input.ts @@ -9,27 +9,15 @@ export class UserMinOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - lastSeen?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - disabled?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) displayName?: keyof typeof SortOrder; @Field(() => SortOrder, {nullable:true}) email?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) + emailVerified?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) avatarUrl?: keyof typeof SortOrder; @@ -39,9 +27,21 @@ export class UserMinOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) phoneNumber?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) + lastSeen?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + disabled?: keyof typeof SortOrder; + @HideField() passwordHash?: keyof typeof SortOrder; + @HideField() + deletedAt?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) - emailVerified?: keyof typeof SortOrder; + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/user/user-order-by-with-aggregation.input.ts b/server/src/core/@generated/user/user-order-by-with-aggregation.input.ts index ea43e4b5abf..1ca9b46ad35 100644 --- a/server/src/core/@generated/user/user-order-by-with-aggregation.input.ts +++ b/server/src/core/@generated/user/user-order-by-with-aggregation.input.ts @@ -12,27 +12,15 @@ export class UserOrderByWithAggregationInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - lastSeen?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - disabled?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) displayName?: keyof typeof SortOrder; @Field(() => SortOrder, {nullable:true}) email?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) + emailVerified?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) avatarUrl?: keyof typeof SortOrder; @@ -42,14 +30,26 @@ export class UserOrderByWithAggregationInput { @Field(() => SortOrder, {nullable:true}) phoneNumber?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) + lastSeen?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + disabled?: keyof typeof SortOrder; + @HideField() passwordHash?: keyof typeof SortOrder; @Field(() => SortOrder, {nullable:true}) - emailVerified?: keyof typeof SortOrder; + metadata?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; @Field(() => SortOrder, {nullable:true}) - metadata?: keyof typeof SortOrder; + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; @Field(() => UserCountOrderByAggregateInput, {nullable:true}) _count?: UserCountOrderByAggregateInput; diff --git a/server/src/core/@generated/user/user-order-by-with-relation.input.ts b/server/src/core/@generated/user/user-order-by-with-relation.input.ts index 569bb7e51ad..8cd1bf8e53f 100644 --- a/server/src/core/@generated/user/user-order-by-with-relation.input.ts +++ b/server/src/core/@generated/user/user-order-by-with-relation.input.ts @@ -13,27 +13,15 @@ export class UserOrderByWithRelationInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - lastSeen?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - disabled?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) displayName?: keyof typeof SortOrder; @Field(() => SortOrder, {nullable:true}) email?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) + emailVerified?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) avatarUrl?: keyof typeof SortOrder; @@ -43,14 +31,26 @@ export class UserOrderByWithRelationInput { @Field(() => SortOrder, {nullable:true}) phoneNumber?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) + lastSeen?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + disabled?: keyof typeof SortOrder; + @HideField() passwordHash?: keyof typeof SortOrder; @Field(() => SortOrder, {nullable:true}) - emailVerified?: keyof typeof SortOrder; + metadata?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; @Field(() => SortOrder, {nullable:true}) - metadata?: keyof typeof SortOrder; + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; @HideField() workspaceMember?: WorkspaceMemberOrderByWithRelationInput; diff --git a/server/src/core/@generated/user/user-scalar-field.enum.ts b/server/src/core/@generated/user/user-scalar-field.enum.ts index e55d995e05c..fc51a44b8fe 100644 --- a/server/src/core/@generated/user/user-scalar-field.enum.ts +++ b/server/src/core/@generated/user/user-scalar-field.enum.ts @@ -2,19 +2,19 @@ import { registerEnumType } from '@nestjs/graphql'; export enum UserScalarFieldEnum { id = "id", - createdAt = "createdAt", - updatedAt = "updatedAt", - deletedAt = "deletedAt", - lastSeen = "lastSeen", - disabled = "disabled", displayName = "displayName", email = "email", + emailVerified = "emailVerified", avatarUrl = "avatarUrl", locale = "locale", phoneNumber = "phoneNumber", + lastSeen = "lastSeen", + disabled = "disabled", passwordHash = "passwordHash", - emailVerified = "emailVerified", - metadata = "metadata" + metadata = "metadata", + deletedAt = "deletedAt", + createdAt = "createdAt", + updatedAt = "updatedAt" } diff --git a/server/src/core/@generated/user/user-scalar-where-with-aggregates.input.ts b/server/src/core/@generated/user/user-scalar-where-with-aggregates.input.ts index e1207ea1baa..3ed09e1d4a1 100644 --- a/server/src/core/@generated/user/user-scalar-where-with-aggregates.input.ts +++ b/server/src/core/@generated/user/user-scalar-where-with-aggregates.input.ts @@ -1,12 +1,12 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringWithAggregatesFilter } from '../prisma/string-with-aggregates-filter.input'; -import { DateTimeWithAggregatesFilter } from '../prisma/date-time-with-aggregates-filter.input'; -import { DateTimeNullableWithAggregatesFilter } from '../prisma/date-time-nullable-with-aggregates-filter.input'; import { BoolWithAggregatesFilter } from '../prisma/bool-with-aggregates-filter.input'; import { StringNullableWithAggregatesFilter } from '../prisma/string-nullable-with-aggregates-filter.input'; +import { DateTimeNullableWithAggregatesFilter } from '../prisma/date-time-nullable-with-aggregates-filter.input'; import { HideField } from '@nestjs/graphql'; import { JsonNullableWithAggregatesFilter } from '../prisma/json-nullable-with-aggregates-filter.input'; +import { DateTimeWithAggregatesFilter } from '../prisma/date-time-with-aggregates-filter.input'; @InputType() export class UserScalarWhereWithAggregatesInput { @@ -23,27 +23,15 @@ export class UserScalarWhereWithAggregatesInput { @Field(() => StringWithAggregatesFilter, {nullable:true}) id?: StringWithAggregatesFilter; - @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) - createdAt?: DateTimeWithAggregatesFilter; - - @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) - updatedAt?: DateTimeWithAggregatesFilter; - - @Field(() => DateTimeNullableWithAggregatesFilter, {nullable:true}) - deletedAt?: DateTimeNullableWithAggregatesFilter; - - @Field(() => DateTimeNullableWithAggregatesFilter, {nullable:true}) - lastSeen?: DateTimeNullableWithAggregatesFilter; - - @Field(() => BoolWithAggregatesFilter, {nullable:true}) - disabled?: BoolWithAggregatesFilter; - @Field(() => StringWithAggregatesFilter, {nullable:true}) displayName?: StringWithAggregatesFilter; @Field(() => StringWithAggregatesFilter, {nullable:true}) email?: StringWithAggregatesFilter; + @Field(() => BoolWithAggregatesFilter, {nullable:true}) + emailVerified?: BoolWithAggregatesFilter; + @Field(() => StringNullableWithAggregatesFilter, {nullable:true}) avatarUrl?: StringNullableWithAggregatesFilter; @@ -53,12 +41,24 @@ export class UserScalarWhereWithAggregatesInput { @Field(() => StringNullableWithAggregatesFilter, {nullable:true}) phoneNumber?: StringNullableWithAggregatesFilter; + @Field(() => DateTimeNullableWithAggregatesFilter, {nullable:true}) + lastSeen?: DateTimeNullableWithAggregatesFilter; + + @Field(() => BoolWithAggregatesFilter, {nullable:true}) + disabled?: BoolWithAggregatesFilter; + @HideField() passwordHash?: StringNullableWithAggregatesFilter; - @Field(() => BoolWithAggregatesFilter, {nullable:true}) - emailVerified?: BoolWithAggregatesFilter; - @Field(() => JsonNullableWithAggregatesFilter, {nullable:true}) metadata?: JsonNullableWithAggregatesFilter; + + @HideField() + deletedAt?: DateTimeNullableWithAggregatesFilter; + + @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) + createdAt?: DateTimeWithAggregatesFilter; + + @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) + updatedAt?: DateTimeWithAggregatesFilter; } diff --git a/server/src/core/@generated/user/user-unchecked-create-without-comments.input.ts b/server/src/core/@generated/user/user-unchecked-create-without-comments.input.ts index 031337f5cbd..bf9b8440014 100644 --- a/server/src/core/@generated/user/user-unchecked-create-without-comments.input.ts +++ b/server/src/core/@generated/user/user-unchecked-create-without-comments.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; import { WorkspaceMemberUncheckedCreateNestedOneWithoutUserInput } from '../workspace-member/workspace-member-unchecked-create-nested-one-without-user.input'; @@ -10,47 +11,65 @@ import { RefreshTokenUncheckedCreateNestedManyWithoutUserInput } from '../refres export class UserUncheckedCreateWithoutCommentsInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + @Validator.IsOptional() + displayName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsEmail() + email!: string; + + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + emailVerified?: boolean; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + avatarUrl?: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + locale!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + phoneNumber?: string; + + @Field(() => Date, {nullable:true}) + @Validator.IsDate() + @Validator.IsOptional() + lastSeen?: Date | string; + + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + disabled?: boolean; + + @HideField() + passwordHash?: string; + + @Field(() => GraphQLJSON, {nullable:true}) + @Validator.IsJSON() + @Validator.IsOptional() + metadata?: any; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - lastSeen?: Date | string; - - @Field(() => Boolean, {nullable:true}) - disabled?: boolean; - - @Field(() => String, {nullable:false}) - displayName!: string; - - @Field(() => String, {nullable:false}) - email!: string; - - @Field(() => String, {nullable:true}) - avatarUrl?: string; - - @Field(() => String, {nullable:false}) - locale!: string; - - @Field(() => String, {nullable:true}) - phoneNumber?: string; - - @HideField() - passwordHash?: string; - - @Field(() => Boolean, {nullable:true}) - emailVerified?: boolean; - - @Field(() => GraphQLJSON, {nullable:true}) - metadata?: any; - @HideField() workspaceMember?: WorkspaceMemberUncheckedCreateNestedOneWithoutUserInput; diff --git a/server/src/core/@generated/user/user-unchecked-create-without-companies.input.ts b/server/src/core/@generated/user/user-unchecked-create-without-companies.input.ts index 98add01fbe7..4583bb18fd2 100644 --- a/server/src/core/@generated/user/user-unchecked-create-without-companies.input.ts +++ b/server/src/core/@generated/user/user-unchecked-create-without-companies.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; import { WorkspaceMemberUncheckedCreateNestedOneWithoutUserInput } from '../workspace-member/workspace-member-unchecked-create-nested-one-without-user.input'; @@ -10,47 +11,65 @@ import { CommentUncheckedCreateNestedManyWithoutAuthorInput } from '../comment/c export class UserUncheckedCreateWithoutCompaniesInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + @Validator.IsOptional() + displayName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsEmail() + email!: string; + + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + emailVerified?: boolean; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + avatarUrl?: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + locale!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + phoneNumber?: string; + + @Field(() => Date, {nullable:true}) + @Validator.IsDate() + @Validator.IsOptional() + lastSeen?: Date | string; + + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + disabled?: boolean; + + @HideField() + passwordHash?: string; + + @Field(() => GraphQLJSON, {nullable:true}) + @Validator.IsJSON() + @Validator.IsOptional() + metadata?: any; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - lastSeen?: Date | string; - - @Field(() => Boolean, {nullable:true}) - disabled?: boolean; - - @Field(() => String, {nullable:false}) - displayName!: string; - - @Field(() => String, {nullable:false}) - email!: string; - - @Field(() => String, {nullable:true}) - avatarUrl?: string; - - @Field(() => String, {nullable:false}) - locale!: string; - - @Field(() => String, {nullable:true}) - phoneNumber?: string; - - @HideField() - passwordHash?: string; - - @Field(() => Boolean, {nullable:true}) - emailVerified?: boolean; - - @Field(() => GraphQLJSON, {nullable:true}) - metadata?: any; - @HideField() workspaceMember?: WorkspaceMemberUncheckedCreateNestedOneWithoutUserInput; diff --git a/server/src/core/@generated/user/user-unchecked-create-without-refresh-tokens.input.ts b/server/src/core/@generated/user/user-unchecked-create-without-refresh-tokens.input.ts index 9890a46b0bd..a97385c016c 100644 --- a/server/src/core/@generated/user/user-unchecked-create-without-refresh-tokens.input.ts +++ b/server/src/core/@generated/user/user-unchecked-create-without-refresh-tokens.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; import { WorkspaceMemberUncheckedCreateNestedOneWithoutUserInput } from '../workspace-member/workspace-member-unchecked-create-nested-one-without-user.input'; @@ -10,47 +11,65 @@ import { CommentUncheckedCreateNestedManyWithoutAuthorInput } from '../comment/c export class UserUncheckedCreateWithoutRefreshTokensInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + @Validator.IsOptional() + displayName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsEmail() + email!: string; + + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + emailVerified?: boolean; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + avatarUrl?: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + locale!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + phoneNumber?: string; + + @Field(() => Date, {nullable:true}) + @Validator.IsDate() + @Validator.IsOptional() + lastSeen?: Date | string; + + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + disabled?: boolean; + + @HideField() + passwordHash?: string; + + @Field(() => GraphQLJSON, {nullable:true}) + @Validator.IsJSON() + @Validator.IsOptional() + metadata?: any; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - lastSeen?: Date | string; - - @Field(() => Boolean, {nullable:true}) - disabled?: boolean; - - @Field(() => String, {nullable:false}) - displayName!: string; - - @Field(() => String, {nullable:false}) - email!: string; - - @Field(() => String, {nullable:true}) - avatarUrl?: string; - - @Field(() => String, {nullable:false}) - locale!: string; - - @Field(() => String, {nullable:true}) - phoneNumber?: string; - - @HideField() - passwordHash?: string; - - @Field(() => Boolean, {nullable:true}) - emailVerified?: boolean; - - @Field(() => GraphQLJSON, {nullable:true}) - metadata?: any; - @HideField() workspaceMember?: WorkspaceMemberUncheckedCreateNestedOneWithoutUserInput; diff --git a/server/src/core/@generated/user/user-unchecked-create-without-workspace-member.input.ts b/server/src/core/@generated/user/user-unchecked-create-without-workspace-member.input.ts index 1edf7fc69df..cc0c1f80dff 100644 --- a/server/src/core/@generated/user/user-unchecked-create-without-workspace-member.input.ts +++ b/server/src/core/@generated/user/user-unchecked-create-without-workspace-member.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; import { CompanyUncheckedCreateNestedManyWithoutAccountOwnerInput } from '../company/company-unchecked-create-nested-many-without-account-owner.input'; @@ -10,47 +11,65 @@ import { CommentUncheckedCreateNestedManyWithoutAuthorInput } from '../comment/c export class UserUncheckedCreateWithoutWorkspaceMemberInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + @Validator.IsOptional() + displayName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsEmail() + email!: string; + + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + emailVerified?: boolean; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + avatarUrl?: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + locale!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + phoneNumber?: string; + + @Field(() => Date, {nullable:true}) + @Validator.IsDate() + @Validator.IsOptional() + lastSeen?: Date | string; + + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + disabled?: boolean; + + @HideField() + passwordHash?: string; + + @Field(() => GraphQLJSON, {nullable:true}) + @Validator.IsJSON() + @Validator.IsOptional() + metadata?: any; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - lastSeen?: Date | string; - - @Field(() => Boolean, {nullable:true}) - disabled?: boolean; - - @Field(() => String, {nullable:false}) - displayName!: string; - - @Field(() => String, {nullable:false}) - email!: string; - - @Field(() => String, {nullable:true}) - avatarUrl?: string; - - @Field(() => String, {nullable:false}) - locale!: string; - - @Field(() => String, {nullable:true}) - phoneNumber?: string; - - @HideField() - passwordHash?: string; - - @Field(() => Boolean, {nullable:true}) - emailVerified?: boolean; - - @Field(() => GraphQLJSON, {nullable:true}) - metadata?: any; - @Field(() => CompanyUncheckedCreateNestedManyWithoutAccountOwnerInput, {nullable:true}) companies?: CompanyUncheckedCreateNestedManyWithoutAccountOwnerInput; diff --git a/server/src/core/@generated/user/user-unchecked-create.input.ts b/server/src/core/@generated/user/user-unchecked-create.input.ts index 88746cad7ac..4c09171004f 100644 --- a/server/src/core/@generated/user/user-unchecked-create.input.ts +++ b/server/src/core/@generated/user/user-unchecked-create.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; import { WorkspaceMemberUncheckedCreateNestedOneWithoutUserInput } from '../workspace-member/workspace-member-unchecked-create-nested-one-without-user.input'; @@ -11,47 +12,65 @@ import { CommentUncheckedCreateNestedManyWithoutAuthorInput } from '../comment/c export class UserUncheckedCreateInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + @Validator.IsOptional() + displayName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsEmail() + email!: string; + + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + emailVerified?: boolean; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + avatarUrl?: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + locale!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + phoneNumber?: string; + + @Field(() => Date, {nullable:true}) + @Validator.IsDate() + @Validator.IsOptional() + lastSeen?: Date | string; + + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + disabled?: boolean; + + @HideField() + passwordHash?: string; + + @Field(() => GraphQLJSON, {nullable:true}) + @Validator.IsJSON() + @Validator.IsOptional() + metadata?: any; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - lastSeen?: Date | string; - - @Field(() => Boolean, {nullable:true}) - disabled?: boolean; - - @Field(() => String, {nullable:false}) - displayName!: string; - - @Field(() => String, {nullable:false}) - email!: string; - - @Field(() => String, {nullable:true}) - avatarUrl?: string; - - @Field(() => String, {nullable:false}) - locale!: string; - - @Field(() => String, {nullable:true}) - phoneNumber?: string; - - @HideField() - passwordHash?: string; - - @Field(() => Boolean, {nullable:true}) - emailVerified?: boolean; - - @Field(() => GraphQLJSON, {nullable:true}) - metadata?: any; - @HideField() workspaceMember?: WorkspaceMemberUncheckedCreateNestedOneWithoutUserInput; diff --git a/server/src/core/@generated/user/user-unchecked-update-many.input.ts b/server/src/core/@generated/user/user-unchecked-update-many.input.ts index 419854f1a6a..131fba85a08 100644 --- a/server/src/core/@generated/user/user-unchecked-update-many.input.ts +++ b/server/src/core/@generated/user/user-unchecked-update-many.input.ts @@ -1,12 +1,13 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; +import * as Validator from 'class-validator'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class UserUncheckedUpdateManyInput { @@ -14,27 +15,15 @@ export class UserUncheckedUpdateManyInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - lastSeen?: NullableDateTimeFieldUpdateOperationsInput; - - @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) - disabled?: BoolFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) displayName?: StringFieldUpdateOperationsInput; @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) email?: StringFieldUpdateOperationsInput; + @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) + emailVerified?: BoolFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) avatarUrl?: NullableStringFieldUpdateOperationsInput; @@ -44,12 +33,26 @@ export class UserUncheckedUpdateManyInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) phoneNumber?: NullableStringFieldUpdateOperationsInput; + @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) + lastSeen?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) + disabled?: BoolFieldUpdateOperationsInput; + @HideField() passwordHash?: NullableStringFieldUpdateOperationsInput; - @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) - emailVerified?: BoolFieldUpdateOperationsInput; - @Field(() => GraphQLJSON, {nullable:true}) + @Validator.IsJSON() + @Validator.IsOptional() metadata?: any; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/user/user-unchecked-update-without-comments.input.ts b/server/src/core/@generated/user/user-unchecked-update-without-comments.input.ts index de6eb526823..554d886b5c9 100644 --- a/server/src/core/@generated/user/user-unchecked-update-without-comments.input.ts +++ b/server/src/core/@generated/user/user-unchecked-update-without-comments.input.ts @@ -1,12 +1,13 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; +import * as Validator from 'class-validator'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { WorkspaceMemberUncheckedUpdateOneWithoutUserNestedInput } from '../workspace-member/workspace-member-unchecked-update-one-without-user-nested.input'; import { CompanyUncheckedUpdateManyWithoutAccountOwnerNestedInput } from '../company/company-unchecked-update-many-without-account-owner-nested.input'; import { RefreshTokenUncheckedUpdateManyWithoutUserNestedInput } from '../refresh-token/refresh-token-unchecked-update-many-without-user-nested.input'; @@ -17,27 +18,15 @@ export class UserUncheckedUpdateWithoutCommentsInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - lastSeen?: NullableDateTimeFieldUpdateOperationsInput; - - @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) - disabled?: BoolFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) displayName?: StringFieldUpdateOperationsInput; @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) email?: StringFieldUpdateOperationsInput; + @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) + emailVerified?: BoolFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) avatarUrl?: NullableStringFieldUpdateOperationsInput; @@ -47,15 +36,29 @@ export class UserUncheckedUpdateWithoutCommentsInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) phoneNumber?: NullableStringFieldUpdateOperationsInput; + @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) + lastSeen?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) + disabled?: BoolFieldUpdateOperationsInput; + @HideField() passwordHash?: NullableStringFieldUpdateOperationsInput; - @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) - emailVerified?: BoolFieldUpdateOperationsInput; - @Field(() => GraphQLJSON, {nullable:true}) + @Validator.IsJSON() + @Validator.IsOptional() metadata?: any; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @HideField() workspaceMember?: WorkspaceMemberUncheckedUpdateOneWithoutUserNestedInput; diff --git a/server/src/core/@generated/user/user-unchecked-update-without-companies.input.ts b/server/src/core/@generated/user/user-unchecked-update-without-companies.input.ts index 65a0ead72f8..ecbb841e150 100644 --- a/server/src/core/@generated/user/user-unchecked-update-without-companies.input.ts +++ b/server/src/core/@generated/user/user-unchecked-update-without-companies.input.ts @@ -1,12 +1,13 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; +import * as Validator from 'class-validator'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { WorkspaceMemberUncheckedUpdateOneWithoutUserNestedInput } from '../workspace-member/workspace-member-unchecked-update-one-without-user-nested.input'; import { RefreshTokenUncheckedUpdateManyWithoutUserNestedInput } from '../refresh-token/refresh-token-unchecked-update-many-without-user-nested.input'; import { CommentUncheckedUpdateManyWithoutAuthorNestedInput } from '../comment/comment-unchecked-update-many-without-author-nested.input'; @@ -17,27 +18,15 @@ export class UserUncheckedUpdateWithoutCompaniesInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - lastSeen?: NullableDateTimeFieldUpdateOperationsInput; - - @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) - disabled?: BoolFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) displayName?: StringFieldUpdateOperationsInput; @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) email?: StringFieldUpdateOperationsInput; + @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) + emailVerified?: BoolFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) avatarUrl?: NullableStringFieldUpdateOperationsInput; @@ -47,15 +36,29 @@ export class UserUncheckedUpdateWithoutCompaniesInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) phoneNumber?: NullableStringFieldUpdateOperationsInput; + @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) + lastSeen?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) + disabled?: BoolFieldUpdateOperationsInput; + @HideField() passwordHash?: NullableStringFieldUpdateOperationsInput; - @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) - emailVerified?: BoolFieldUpdateOperationsInput; - @Field(() => GraphQLJSON, {nullable:true}) + @Validator.IsJSON() + @Validator.IsOptional() metadata?: any; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @HideField() workspaceMember?: WorkspaceMemberUncheckedUpdateOneWithoutUserNestedInput; diff --git a/server/src/core/@generated/user/user-unchecked-update-without-refresh-tokens.input.ts b/server/src/core/@generated/user/user-unchecked-update-without-refresh-tokens.input.ts index d6c31072939..6b5f6abc08c 100644 --- a/server/src/core/@generated/user/user-unchecked-update-without-refresh-tokens.input.ts +++ b/server/src/core/@generated/user/user-unchecked-update-without-refresh-tokens.input.ts @@ -1,12 +1,13 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; +import * as Validator from 'class-validator'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { WorkspaceMemberUncheckedUpdateOneWithoutUserNestedInput } from '../workspace-member/workspace-member-unchecked-update-one-without-user-nested.input'; import { CompanyUncheckedUpdateManyWithoutAccountOwnerNestedInput } from '../company/company-unchecked-update-many-without-account-owner-nested.input'; import { CommentUncheckedUpdateManyWithoutAuthorNestedInput } from '../comment/comment-unchecked-update-many-without-author-nested.input'; @@ -17,27 +18,15 @@ export class UserUncheckedUpdateWithoutRefreshTokensInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - lastSeen?: NullableDateTimeFieldUpdateOperationsInput; - - @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) - disabled?: BoolFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) displayName?: StringFieldUpdateOperationsInput; @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) email?: StringFieldUpdateOperationsInput; + @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) + emailVerified?: BoolFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) avatarUrl?: NullableStringFieldUpdateOperationsInput; @@ -47,15 +36,29 @@ export class UserUncheckedUpdateWithoutRefreshTokensInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) phoneNumber?: NullableStringFieldUpdateOperationsInput; + @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) + lastSeen?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) + disabled?: BoolFieldUpdateOperationsInput; + @HideField() passwordHash?: NullableStringFieldUpdateOperationsInput; - @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) - emailVerified?: BoolFieldUpdateOperationsInput; - @Field(() => GraphQLJSON, {nullable:true}) + @Validator.IsJSON() + @Validator.IsOptional() metadata?: any; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @HideField() workspaceMember?: WorkspaceMemberUncheckedUpdateOneWithoutUserNestedInput; diff --git a/server/src/core/@generated/user/user-unchecked-update-without-workspace-member.input.ts b/server/src/core/@generated/user/user-unchecked-update-without-workspace-member.input.ts index 6c91ec298f8..b9ed79b114f 100644 --- a/server/src/core/@generated/user/user-unchecked-update-without-workspace-member.input.ts +++ b/server/src/core/@generated/user/user-unchecked-update-without-workspace-member.input.ts @@ -1,12 +1,13 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; +import * as Validator from 'class-validator'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { CompanyUncheckedUpdateManyWithoutAccountOwnerNestedInput } from '../company/company-unchecked-update-many-without-account-owner-nested.input'; import { RefreshTokenUncheckedUpdateManyWithoutUserNestedInput } from '../refresh-token/refresh-token-unchecked-update-many-without-user-nested.input'; import { CommentUncheckedUpdateManyWithoutAuthorNestedInput } from '../comment/comment-unchecked-update-many-without-author-nested.input'; @@ -17,27 +18,15 @@ export class UserUncheckedUpdateWithoutWorkspaceMemberInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - lastSeen?: NullableDateTimeFieldUpdateOperationsInput; - - @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) - disabled?: BoolFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) displayName?: StringFieldUpdateOperationsInput; @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) email?: StringFieldUpdateOperationsInput; + @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) + emailVerified?: BoolFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) avatarUrl?: NullableStringFieldUpdateOperationsInput; @@ -47,15 +36,29 @@ export class UserUncheckedUpdateWithoutWorkspaceMemberInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) phoneNumber?: NullableStringFieldUpdateOperationsInput; + @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) + lastSeen?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) + disabled?: BoolFieldUpdateOperationsInput; + @HideField() passwordHash?: NullableStringFieldUpdateOperationsInput; - @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) - emailVerified?: BoolFieldUpdateOperationsInput; - @Field(() => GraphQLJSON, {nullable:true}) + @Validator.IsJSON() + @Validator.IsOptional() metadata?: any; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => CompanyUncheckedUpdateManyWithoutAccountOwnerNestedInput, {nullable:true}) companies?: CompanyUncheckedUpdateManyWithoutAccountOwnerNestedInput; diff --git a/server/src/core/@generated/user/user-unchecked-update.input.ts b/server/src/core/@generated/user/user-unchecked-update.input.ts index dfe9d6e7ccc..ecd581669de 100644 --- a/server/src/core/@generated/user/user-unchecked-update.input.ts +++ b/server/src/core/@generated/user/user-unchecked-update.input.ts @@ -1,12 +1,13 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; +import * as Validator from 'class-validator'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { WorkspaceMemberUncheckedUpdateOneWithoutUserNestedInput } from '../workspace-member/workspace-member-unchecked-update-one-without-user-nested.input'; import { CompanyUncheckedUpdateManyWithoutAccountOwnerNestedInput } from '../company/company-unchecked-update-many-without-account-owner-nested.input'; import { RefreshTokenUncheckedUpdateManyWithoutUserNestedInput } from '../refresh-token/refresh-token-unchecked-update-many-without-user-nested.input'; @@ -18,27 +19,15 @@ export class UserUncheckedUpdateInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - lastSeen?: NullableDateTimeFieldUpdateOperationsInput; - - @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) - disabled?: BoolFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) displayName?: StringFieldUpdateOperationsInput; @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) email?: StringFieldUpdateOperationsInput; + @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) + emailVerified?: BoolFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) avatarUrl?: NullableStringFieldUpdateOperationsInput; @@ -48,15 +37,29 @@ export class UserUncheckedUpdateInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) phoneNumber?: NullableStringFieldUpdateOperationsInput; + @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) + lastSeen?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) + disabled?: BoolFieldUpdateOperationsInput; + @HideField() passwordHash?: NullableStringFieldUpdateOperationsInput; - @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) - emailVerified?: BoolFieldUpdateOperationsInput; - @Field(() => GraphQLJSON, {nullable:true}) + @Validator.IsJSON() + @Validator.IsOptional() metadata?: any; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @HideField() workspaceMember?: WorkspaceMemberUncheckedUpdateOneWithoutUserNestedInput; diff --git a/server/src/core/@generated/user/user-update-many-mutation.input.ts b/server/src/core/@generated/user/user-update-many-mutation.input.ts index 2177fa9970b..866f0c68e17 100644 --- a/server/src/core/@generated/user/user-update-many-mutation.input.ts +++ b/server/src/core/@generated/user/user-update-many-mutation.input.ts @@ -1,12 +1,13 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; +import * as Validator from 'class-validator'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class UserUpdateManyMutationInput { @@ -14,27 +15,15 @@ export class UserUpdateManyMutationInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - lastSeen?: NullableDateTimeFieldUpdateOperationsInput; - - @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) - disabled?: BoolFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) displayName?: StringFieldUpdateOperationsInput; @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) email?: StringFieldUpdateOperationsInput; + @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) + emailVerified?: BoolFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) avatarUrl?: NullableStringFieldUpdateOperationsInput; @@ -44,12 +33,26 @@ export class UserUpdateManyMutationInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) phoneNumber?: NullableStringFieldUpdateOperationsInput; + @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) + lastSeen?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) + disabled?: BoolFieldUpdateOperationsInput; + @HideField() passwordHash?: NullableStringFieldUpdateOperationsInput; - @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) - emailVerified?: BoolFieldUpdateOperationsInput; - @Field(() => GraphQLJSON, {nullable:true}) + @Validator.IsJSON() + @Validator.IsOptional() metadata?: any; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/user/user-update-without-comments.input.ts b/server/src/core/@generated/user/user-update-without-comments.input.ts index 519082a64ae..7fbf116a606 100644 --- a/server/src/core/@generated/user/user-update-without-comments.input.ts +++ b/server/src/core/@generated/user/user-update-without-comments.input.ts @@ -1,12 +1,13 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; +import * as Validator from 'class-validator'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { WorkspaceMemberUpdateOneWithoutUserNestedInput } from '../workspace-member/workspace-member-update-one-without-user-nested.input'; import { CompanyUpdateManyWithoutAccountOwnerNestedInput } from '../company/company-update-many-without-account-owner-nested.input'; import { RefreshTokenUpdateManyWithoutUserNestedInput } from '../refresh-token/refresh-token-update-many-without-user-nested.input'; @@ -17,27 +18,15 @@ export class UserUpdateWithoutCommentsInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - lastSeen?: NullableDateTimeFieldUpdateOperationsInput; - - @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) - disabled?: BoolFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) displayName?: StringFieldUpdateOperationsInput; @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) email?: StringFieldUpdateOperationsInput; + @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) + emailVerified?: BoolFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) avatarUrl?: NullableStringFieldUpdateOperationsInput; @@ -47,15 +36,29 @@ export class UserUpdateWithoutCommentsInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) phoneNumber?: NullableStringFieldUpdateOperationsInput; + @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) + lastSeen?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) + disabled?: BoolFieldUpdateOperationsInput; + @HideField() passwordHash?: NullableStringFieldUpdateOperationsInput; - @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) - emailVerified?: BoolFieldUpdateOperationsInput; - @Field(() => GraphQLJSON, {nullable:true}) + @Validator.IsJSON() + @Validator.IsOptional() metadata?: any; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @HideField() workspaceMember?: WorkspaceMemberUpdateOneWithoutUserNestedInput; diff --git a/server/src/core/@generated/user/user-update-without-companies.input.ts b/server/src/core/@generated/user/user-update-without-companies.input.ts index af8daa2419f..2757afc63ee 100644 --- a/server/src/core/@generated/user/user-update-without-companies.input.ts +++ b/server/src/core/@generated/user/user-update-without-companies.input.ts @@ -1,12 +1,13 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; +import * as Validator from 'class-validator'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { WorkspaceMemberUpdateOneWithoutUserNestedInput } from '../workspace-member/workspace-member-update-one-without-user-nested.input'; import { RefreshTokenUpdateManyWithoutUserNestedInput } from '../refresh-token/refresh-token-update-many-without-user-nested.input'; import { CommentUpdateManyWithoutAuthorNestedInput } from '../comment/comment-update-many-without-author-nested.input'; @@ -17,27 +18,15 @@ export class UserUpdateWithoutCompaniesInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - lastSeen?: NullableDateTimeFieldUpdateOperationsInput; - - @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) - disabled?: BoolFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) displayName?: StringFieldUpdateOperationsInput; @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) email?: StringFieldUpdateOperationsInput; + @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) + emailVerified?: BoolFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) avatarUrl?: NullableStringFieldUpdateOperationsInput; @@ -47,15 +36,29 @@ export class UserUpdateWithoutCompaniesInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) phoneNumber?: NullableStringFieldUpdateOperationsInput; + @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) + lastSeen?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) + disabled?: BoolFieldUpdateOperationsInput; + @HideField() passwordHash?: NullableStringFieldUpdateOperationsInput; - @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) - emailVerified?: BoolFieldUpdateOperationsInput; - @Field(() => GraphQLJSON, {nullable:true}) + @Validator.IsJSON() + @Validator.IsOptional() metadata?: any; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @HideField() workspaceMember?: WorkspaceMemberUpdateOneWithoutUserNestedInput; diff --git a/server/src/core/@generated/user/user-update-without-refresh-tokens.input.ts b/server/src/core/@generated/user/user-update-without-refresh-tokens.input.ts index 575a90a3c24..6c63d0ca403 100644 --- a/server/src/core/@generated/user/user-update-without-refresh-tokens.input.ts +++ b/server/src/core/@generated/user/user-update-without-refresh-tokens.input.ts @@ -1,12 +1,13 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; +import * as Validator from 'class-validator'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { WorkspaceMemberUpdateOneWithoutUserNestedInput } from '../workspace-member/workspace-member-update-one-without-user-nested.input'; import { CompanyUpdateManyWithoutAccountOwnerNestedInput } from '../company/company-update-many-without-account-owner-nested.input'; import { CommentUpdateManyWithoutAuthorNestedInput } from '../comment/comment-update-many-without-author-nested.input'; @@ -17,27 +18,15 @@ export class UserUpdateWithoutRefreshTokensInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - lastSeen?: NullableDateTimeFieldUpdateOperationsInput; - - @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) - disabled?: BoolFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) displayName?: StringFieldUpdateOperationsInput; @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) email?: StringFieldUpdateOperationsInput; + @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) + emailVerified?: BoolFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) avatarUrl?: NullableStringFieldUpdateOperationsInput; @@ -47,15 +36,29 @@ export class UserUpdateWithoutRefreshTokensInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) phoneNumber?: NullableStringFieldUpdateOperationsInput; + @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) + lastSeen?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) + disabled?: BoolFieldUpdateOperationsInput; + @HideField() passwordHash?: NullableStringFieldUpdateOperationsInput; - @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) - emailVerified?: BoolFieldUpdateOperationsInput; - @Field(() => GraphQLJSON, {nullable:true}) + @Validator.IsJSON() + @Validator.IsOptional() metadata?: any; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @HideField() workspaceMember?: WorkspaceMemberUpdateOneWithoutUserNestedInput; diff --git a/server/src/core/@generated/user/user-update-without-workspace-member.input.ts b/server/src/core/@generated/user/user-update-without-workspace-member.input.ts index 88d312c9629..7e94800af9e 100644 --- a/server/src/core/@generated/user/user-update-without-workspace-member.input.ts +++ b/server/src/core/@generated/user/user-update-without-workspace-member.input.ts @@ -1,12 +1,13 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; +import * as Validator from 'class-validator'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { CompanyUpdateManyWithoutAccountOwnerNestedInput } from '../company/company-update-many-without-account-owner-nested.input'; import { RefreshTokenUpdateManyWithoutUserNestedInput } from '../refresh-token/refresh-token-update-many-without-user-nested.input'; import { CommentUpdateManyWithoutAuthorNestedInput } from '../comment/comment-update-many-without-author-nested.input'; @@ -17,27 +18,15 @@ export class UserUpdateWithoutWorkspaceMemberInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - lastSeen?: NullableDateTimeFieldUpdateOperationsInput; - - @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) - disabled?: BoolFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) displayName?: StringFieldUpdateOperationsInput; @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) email?: StringFieldUpdateOperationsInput; + @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) + emailVerified?: BoolFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) avatarUrl?: NullableStringFieldUpdateOperationsInput; @@ -47,15 +36,29 @@ export class UserUpdateWithoutWorkspaceMemberInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) phoneNumber?: NullableStringFieldUpdateOperationsInput; + @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) + lastSeen?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) + disabled?: BoolFieldUpdateOperationsInput; + @HideField() passwordHash?: NullableStringFieldUpdateOperationsInput; - @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) - emailVerified?: BoolFieldUpdateOperationsInput; - @Field(() => GraphQLJSON, {nullable:true}) + @Validator.IsJSON() + @Validator.IsOptional() metadata?: any; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => CompanyUpdateManyWithoutAccountOwnerNestedInput, {nullable:true}) companies?: CompanyUpdateManyWithoutAccountOwnerNestedInput; diff --git a/server/src/core/@generated/user/user-update.input.ts b/server/src/core/@generated/user/user-update.input.ts index bad932e8f90..db017f622ea 100644 --- a/server/src/core/@generated/user/user-update.input.ts +++ b/server/src/core/@generated/user/user-update.input.ts @@ -1,12 +1,13 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; +import * as Validator from 'class-validator'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { WorkspaceMemberUpdateOneWithoutUserNestedInput } from '../workspace-member/workspace-member-update-one-without-user-nested.input'; import { CompanyUpdateManyWithoutAccountOwnerNestedInput } from '../company/company-update-many-without-account-owner-nested.input'; import { RefreshTokenUpdateManyWithoutUserNestedInput } from '../refresh-token/refresh-token-update-many-without-user-nested.input'; @@ -18,27 +19,15 @@ export class UserUpdateInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - lastSeen?: NullableDateTimeFieldUpdateOperationsInput; - - @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) - disabled?: BoolFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) displayName?: StringFieldUpdateOperationsInput; @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) email?: StringFieldUpdateOperationsInput; + @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) + emailVerified?: BoolFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) avatarUrl?: NullableStringFieldUpdateOperationsInput; @@ -48,15 +37,29 @@ export class UserUpdateInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) phoneNumber?: NullableStringFieldUpdateOperationsInput; + @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) + lastSeen?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) + disabled?: BoolFieldUpdateOperationsInput; + @HideField() passwordHash?: NullableStringFieldUpdateOperationsInput; - @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) - emailVerified?: BoolFieldUpdateOperationsInput; - @Field(() => GraphQLJSON, {nullable:true}) + @Validator.IsJSON() + @Validator.IsOptional() metadata?: any; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @HideField() workspaceMember?: WorkspaceMemberUpdateOneWithoutUserNestedInput; diff --git a/server/src/core/@generated/user/user-where-unique.input.ts b/server/src/core/@generated/user/user-where-unique.input.ts index 97328c85b82..67516f1d684 100644 --- a/server/src/core/@generated/user/user-where-unique.input.ts +++ b/server/src/core/@generated/user/user-where-unique.input.ts @@ -1,12 +1,16 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; @InputType() export class UserWhereUniqueInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; @Field(() => String, {nullable:true}) + @Validator.IsEmail() email?: string; } diff --git a/server/src/core/@generated/user/user-where.input.ts b/server/src/core/@generated/user/user-where.input.ts index 67e1ba7a094..4c574304e28 100644 --- a/server/src/core/@generated/user/user-where.input.ts +++ b/server/src/core/@generated/user/user-where.input.ts @@ -1,12 +1,12 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFilter } from '../prisma/string-filter.input'; -import { DateTimeFilter } from '../prisma/date-time-filter.input'; -import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; import { BoolFilter } from '../prisma/bool-filter.input'; import { StringNullableFilter } from '../prisma/string-nullable-filter.input'; +import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; import { HideField } from '@nestjs/graphql'; import { JsonNullableFilter } from '../prisma/json-nullable-filter.input'; +import { DateTimeFilter } from '../prisma/date-time-filter.input'; import { WorkspaceMemberRelationFilter } from '../workspace-member/workspace-member-relation-filter.input'; import { CompanyListRelationFilter } from '../company/company-list-relation-filter.input'; import { RefreshTokenListRelationFilter } from '../refresh-token/refresh-token-list-relation-filter.input'; @@ -27,27 +27,15 @@ export class UserWhereInput { @Field(() => StringFilter, {nullable:true}) id?: StringFilter; - @Field(() => DateTimeFilter, {nullable:true}) - createdAt?: DateTimeFilter; - - @Field(() => DateTimeFilter, {nullable:true}) - updatedAt?: DateTimeFilter; - - @Field(() => DateTimeNullableFilter, {nullable:true}) - deletedAt?: DateTimeNullableFilter; - - @Field(() => DateTimeNullableFilter, {nullable:true}) - lastSeen?: DateTimeNullableFilter; - - @Field(() => BoolFilter, {nullable:true}) - disabled?: BoolFilter; - @Field(() => StringFilter, {nullable:true}) displayName?: StringFilter; @Field(() => StringFilter, {nullable:true}) email?: StringFilter; + @Field(() => BoolFilter, {nullable:true}) + emailVerified?: BoolFilter; + @Field(() => StringNullableFilter, {nullable:true}) avatarUrl?: StringNullableFilter; @@ -57,15 +45,27 @@ export class UserWhereInput { @Field(() => StringNullableFilter, {nullable:true}) phoneNumber?: StringNullableFilter; + @Field(() => DateTimeNullableFilter, {nullable:true}) + lastSeen?: DateTimeNullableFilter; + + @Field(() => BoolFilter, {nullable:true}) + disabled?: BoolFilter; + @HideField() passwordHash?: StringNullableFilter; - @Field(() => BoolFilter, {nullable:true}) - emailVerified?: BoolFilter; - @Field(() => JsonNullableFilter, {nullable:true}) metadata?: JsonNullableFilter; + @HideField() + deletedAt?: DateTimeNullableFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + createdAt?: DateTimeFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + updatedAt?: DateTimeFilter; + @HideField() workspaceMember?: WorkspaceMemberRelationFilter; diff --git a/server/src/core/@generated/user/user.model.ts b/server/src/core/@generated/user/user.model.ts index a04f8d96a14..c7983b2f17f 100644 --- a/server/src/core/@generated/user/user.model.ts +++ b/server/src/core/@generated/user/user.model.ts @@ -15,27 +15,15 @@ export class User { @Field(() => ID, {nullable:false}) id!: string; - @Field(() => Date, {nullable:false}) - createdAt!: Date; - - @Field(() => Date, {nullable:false}) - updatedAt!: Date; - - @Field(() => Date, {nullable:true}) - deletedAt!: Date | null; - - @Field(() => Date, {nullable:true}) - lastSeen!: Date | null; - - @Field(() => Boolean, {nullable:false,defaultValue:false}) - disabled!: boolean; - @Field(() => String, {nullable:false}) displayName!: string; @Field(() => String, {nullable:false}) email!: string; + @Field(() => Boolean, {nullable:false,defaultValue:false}) + emailVerified!: boolean; + @Field(() => String, {nullable:true}) avatarUrl!: string | null; @@ -45,15 +33,27 @@ export class User { @Field(() => String, {nullable:true}) phoneNumber!: string | null; + @Field(() => Date, {nullable:true}) + lastSeen!: Date | null; + + @Field(() => Boolean, {nullable:false,defaultValue:false}) + disabled!: boolean; + @HideField() passwordHash!: string | null; - @Field(() => Boolean, {nullable:false,defaultValue:false}) - emailVerified!: boolean; - @Field(() => GraphQLJSON, {nullable:true}) metadata!: any | null; + @HideField() + deletedAt!: Date | null; + + @Field(() => Date, {nullable:false}) + createdAt!: Date; + + @Field(() => Date, {nullable:false}) + updatedAt!: Date; + @Field(() => WorkspaceMember, {nullable:true}) workspaceMember?: WorkspaceMember | null; diff --git a/server/src/core/@generated/workspace-member/create-many-workspace-member.args.ts b/server/src/core/@generated/workspace-member/create-many-workspace-member.args.ts index 2826764dbcc..6200d2a3cb7 100644 --- a/server/src/core/@generated/workspace-member/create-many-workspace-member.args.ts +++ b/server/src/core/@generated/workspace-member/create-many-workspace-member.args.ts @@ -2,12 +2,15 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { WorkspaceMemberCreateManyInput } from './workspace-member-create-many.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; @ArgsType() export class CreateManyWorkspaceMemberArgs { @Field(() => [WorkspaceMemberCreateManyInput], {nullable:false}) @Type(() => WorkspaceMemberCreateManyInput) + @ValidateNested({each: true}) + @Type(() => WorkspaceMemberCreateManyInput) data!: Array; @Field(() => Boolean, {nullable:true}) diff --git a/server/src/core/@generated/workspace-member/create-one-workspace-member.args.ts b/server/src/core/@generated/workspace-member/create-one-workspace-member.args.ts index 13962daec38..81c65ffaba8 100644 --- a/server/src/core/@generated/workspace-member/create-one-workspace-member.args.ts +++ b/server/src/core/@generated/workspace-member/create-one-workspace-member.args.ts @@ -2,11 +2,14 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { WorkspaceMemberCreateInput } from './workspace-member-create.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; @ArgsType() export class CreateOneWorkspaceMemberArgs { @Field(() => WorkspaceMemberCreateInput, {nullable:false}) @Type(() => WorkspaceMemberCreateInput) + @ValidateNested({each: true}) + @Type(() => WorkspaceMemberCreateInput) data!: WorkspaceMemberCreateInput; } diff --git a/server/src/core/@generated/workspace-member/update-many-workspace-member.args.ts b/server/src/core/@generated/workspace-member/update-many-workspace-member.args.ts index 24b76c75d42..3b90fb76a26 100644 --- a/server/src/core/@generated/workspace-member/update-many-workspace-member.args.ts +++ b/server/src/core/@generated/workspace-member/update-many-workspace-member.args.ts @@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { WorkspaceMemberUpdateManyMutationInput } from './workspace-member-update-many-mutation.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; import { WorkspaceMemberWhereInput } from './workspace-member-where.input'; @ArgsType() @@ -9,6 +10,8 @@ export class UpdateManyWorkspaceMemberArgs { @Field(() => WorkspaceMemberUpdateManyMutationInput, {nullable:false}) @Type(() => WorkspaceMemberUpdateManyMutationInput) + @ValidateNested({each: true}) + @Type(() => WorkspaceMemberUpdateManyMutationInput) data!: WorkspaceMemberUpdateManyMutationInput; @Field(() => WorkspaceMemberWhereInput, {nullable:true}) diff --git a/server/src/core/@generated/workspace-member/update-one-workspace-member.args.ts b/server/src/core/@generated/workspace-member/update-one-workspace-member.args.ts index b45f838727c..06e17b91737 100644 --- a/server/src/core/@generated/workspace-member/update-one-workspace-member.args.ts +++ b/server/src/core/@generated/workspace-member/update-one-workspace-member.args.ts @@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { WorkspaceMemberUpdateInput } from './workspace-member-update.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; import { WorkspaceMemberWhereUniqueInput } from './workspace-member-where-unique.input'; @ArgsType() @@ -9,6 +10,8 @@ export class UpdateOneWorkspaceMemberArgs { @Field(() => WorkspaceMemberUpdateInput, {nullable:false}) @Type(() => WorkspaceMemberUpdateInput) + @ValidateNested({each: true}) + @Type(() => WorkspaceMemberUpdateInput) data!: WorkspaceMemberUpdateInput; @Field(() => WorkspaceMemberWhereUniqueInput, {nullable:false}) diff --git a/server/src/core/@generated/workspace-member/workspace-member-count-aggregate.input.ts b/server/src/core/@generated/workspace-member/workspace-member-count-aggregate.input.ts index babc82423cb..6a766d12a4d 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-count-aggregate.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-count-aggregate.input.ts @@ -8,21 +8,21 @@ export class WorkspaceMemberCountAggregateInput { @Field(() => Boolean, {nullable:true}) id?: true; + @Field(() => Boolean, {nullable:true}) + userId?: true; + + @HideField() + workspaceId?: true; + + @HideField() + deletedAt?: true; + @Field(() => Boolean, {nullable:true}) createdAt?: true; @Field(() => Boolean, {nullable:true}) updatedAt?: true; - @Field(() => Boolean, {nullable:true}) - deletedAt?: true; - - @Field(() => Boolean, {nullable:true}) - userId?: true; - - @HideField() - workspaceId?: true; - @Field(() => Boolean, {nullable:true}) _all?: true; } diff --git a/server/src/core/@generated/workspace-member/workspace-member-count-aggregate.output.ts b/server/src/core/@generated/workspace-member/workspace-member-count-aggregate.output.ts index d183758ede3..2408dbd506c 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-count-aggregate.output.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-count-aggregate.output.ts @@ -9,21 +9,21 @@ export class WorkspaceMemberCountAggregate { @Field(() => Int, {nullable:false}) id!: number; + @Field(() => Int, {nullable:false}) + userId!: number; + + @HideField() + workspaceId!: number; + + @HideField() + deletedAt!: number; + @Field(() => Int, {nullable:false}) createdAt!: number; @Field(() => Int, {nullable:false}) updatedAt!: number; - @Field(() => Int, {nullable:false}) - deletedAt!: number; - - @Field(() => Int, {nullable:false}) - userId!: number; - - @HideField() - workspaceId!: number; - @Field(() => Int, {nullable:false}) _all!: number; } diff --git a/server/src/core/@generated/workspace-member/workspace-member-count-order-by-aggregate.input.ts b/server/src/core/@generated/workspace-member/workspace-member-count-order-by-aggregate.input.ts index ddb062392f2..da4d87bc252 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-count-order-by-aggregate.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-count-order-by-aggregate.input.ts @@ -9,18 +9,18 @@ export class WorkspaceMemberCountOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) userId?: keyof typeof SortOrder; @HideField() workspaceId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/workspace-member/workspace-member-create-many-workspace.input.ts b/server/src/core/@generated/workspace-member/workspace-member-create-many-workspace.input.ts index da3fee4e98e..99f963f4075 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-create-many-workspace.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-create-many-workspace.input.ts @@ -1,21 +1,25 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; @InputType() export class WorkspaceMemberCreateManyWorkspaceInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + userId!: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - userId!: string; } diff --git a/server/src/core/@generated/workspace-member/workspace-member-create-many.input.ts b/server/src/core/@generated/workspace-member/workspace-member-create-many.input.ts index c8e9f55c491..04172012b1e 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-create-many.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-create-many.input.ts @@ -1,25 +1,28 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @InputType() export class WorkspaceMemberCreateManyInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:false}) userId!: string; @HideField() workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/workspace-member/workspace-member-create-without-user.input.ts b/server/src/core/@generated/workspace-member/workspace-member-create-without-user.input.ts index 03445dd347f..0f6143ade33 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-create-without-user.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-create-without-user.input.ts @@ -1,23 +1,26 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; -import { WorkspaceCreateNestedOneWithoutWorkspaceMemberInput } from '../workspace/workspace-create-nested-one-without-workspace-member.input'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; +import { WorkspaceCreateNestedOneWithoutWorkspaceMemberInput } from '../workspace/workspace-create-nested-one-without-workspace-member.input'; @InputType() export class WorkspaceMemberCreateWithoutUserInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @HideField() workspace!: WorkspaceCreateNestedOneWithoutWorkspaceMemberInput; } diff --git a/server/src/core/@generated/workspace-member/workspace-member-create-without-workspace.input.ts b/server/src/core/@generated/workspace-member/workspace-member-create-without-workspace.input.ts index 5b85f0594a2..db865d5bff8 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-create-without-workspace.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-create-without-workspace.input.ts @@ -1,22 +1,26 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; import { UserCreateNestedOneWithoutWorkspaceMemberInput } from '../user/user-create-nested-one-without-workspace-member.input'; @InputType() export class WorkspaceMemberCreateWithoutWorkspaceInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => UserCreateNestedOneWithoutWorkspaceMemberInput, {nullable:false}) user!: UserCreateNestedOneWithoutWorkspaceMemberInput; } diff --git a/server/src/core/@generated/workspace-member/workspace-member-create.input.ts b/server/src/core/@generated/workspace-member/workspace-member-create.input.ts index 0f28da79d15..0f73b983e12 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-create.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-create.input.ts @@ -1,24 +1,27 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; import { UserCreateNestedOneWithoutWorkspaceMemberInput } from '../user/user-create-nested-one-without-workspace-member.input'; import { WorkspaceCreateNestedOneWithoutWorkspaceMemberInput } from '../workspace/workspace-create-nested-one-without-workspace-member.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class WorkspaceMemberCreateInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => UserCreateNestedOneWithoutWorkspaceMemberInput, {nullable:false}) user!: UserCreateNestedOneWithoutWorkspaceMemberInput; diff --git a/server/src/core/@generated/workspace-member/workspace-member-group-by.output.ts b/server/src/core/@generated/workspace-member/workspace-member-group-by.output.ts index 2d6aaceb6cd..d4c0b6bde37 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-group-by.output.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-group-by.output.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; import { WorkspaceMemberCountAggregate } from './workspace-member-count-aggregate.output'; import { WorkspaceMemberMinAggregate } from './workspace-member-min-aggregate.output'; @@ -9,23 +10,25 @@ import { WorkspaceMemberMaxAggregate } from './workspace-member-max-aggregate.ou export class WorkspaceMemberGroupBy { @Field(() => String, {nullable:false}) + @Validator.IsString() + @Validator.IsOptional() id!: string; - @Field(() => Date, {nullable:false}) - createdAt!: Date | string; - - @Field(() => Date, {nullable:false}) - updatedAt!: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:false}) userId!: string; @HideField() workspaceId!: string; + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:false}) + createdAt!: Date | string; + + @Field(() => Date, {nullable:false}) + updatedAt!: Date | string; + @Field(() => WorkspaceMemberCountAggregate, {nullable:true}) _count?: WorkspaceMemberCountAggregate; diff --git a/server/src/core/@generated/workspace-member/workspace-member-max-aggregate.input.ts b/server/src/core/@generated/workspace-member/workspace-member-max-aggregate.input.ts index 666c73eeb1c..15f6ad56a5e 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-max-aggregate.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-max-aggregate.input.ts @@ -8,18 +8,18 @@ export class WorkspaceMemberMaxAggregateInput { @Field(() => Boolean, {nullable:true}) id?: true; - @Field(() => Boolean, {nullable:true}) - createdAt?: true; - - @Field(() => Boolean, {nullable:true}) - updatedAt?: true; - - @Field(() => Boolean, {nullable:true}) - deletedAt?: true; - @Field(() => Boolean, {nullable:true}) userId?: true; @HideField() workspaceId?: true; + + @HideField() + deletedAt?: true; + + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; } diff --git a/server/src/core/@generated/workspace-member/workspace-member-max-aggregate.output.ts b/server/src/core/@generated/workspace-member/workspace-member-max-aggregate.output.ts index b4169981111..02821577b5a 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-max-aggregate.output.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-max-aggregate.output.ts @@ -1,25 +1,28 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @ObjectType() export class WorkspaceMemberMaxAggregate { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:true}) userId?: string; @HideField() workspaceId?: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/workspace-member/workspace-member-max-order-by-aggregate.input.ts b/server/src/core/@generated/workspace-member/workspace-member-max-order-by-aggregate.input.ts index b33368325bc..50fccb6feb1 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-max-order-by-aggregate.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-max-order-by-aggregate.input.ts @@ -9,18 +9,18 @@ export class WorkspaceMemberMaxOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) userId?: keyof typeof SortOrder; @HideField() workspaceId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/workspace-member/workspace-member-min-aggregate.input.ts b/server/src/core/@generated/workspace-member/workspace-member-min-aggregate.input.ts index 8b6726ea2db..2fef19d2ecf 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-min-aggregate.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-min-aggregate.input.ts @@ -8,18 +8,18 @@ export class WorkspaceMemberMinAggregateInput { @Field(() => Boolean, {nullable:true}) id?: true; - @Field(() => Boolean, {nullable:true}) - createdAt?: true; - - @Field(() => Boolean, {nullable:true}) - updatedAt?: true; - - @Field(() => Boolean, {nullable:true}) - deletedAt?: true; - @Field(() => Boolean, {nullable:true}) userId?: true; @HideField() workspaceId?: true; + + @HideField() + deletedAt?: true; + + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; } diff --git a/server/src/core/@generated/workspace-member/workspace-member-min-aggregate.output.ts b/server/src/core/@generated/workspace-member/workspace-member-min-aggregate.output.ts index f28d24a3336..3885190b486 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-min-aggregate.output.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-min-aggregate.output.ts @@ -1,25 +1,28 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @ObjectType() export class WorkspaceMemberMinAggregate { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:true}) userId?: string; @HideField() workspaceId?: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/workspace-member/workspace-member-min-order-by-aggregate.input.ts b/server/src/core/@generated/workspace-member/workspace-member-min-order-by-aggregate.input.ts index 1c88be9b9b4..c15f9c5e5ce 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-min-order-by-aggregate.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-min-order-by-aggregate.input.ts @@ -9,18 +9,18 @@ export class WorkspaceMemberMinOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) userId?: keyof typeof SortOrder; @HideField() workspaceId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/workspace-member/workspace-member-order-by-with-aggregation.input.ts b/server/src/core/@generated/workspace-member/workspace-member-order-by-with-aggregation.input.ts index e36f0ebd5ee..f789f946a33 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-order-by-with-aggregation.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-order-by-with-aggregation.input.ts @@ -12,21 +12,21 @@ export class WorkspaceMemberOrderByWithAggregationInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) userId?: keyof typeof SortOrder; @HideField() workspaceId?: keyof typeof SortOrder; + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; + @Field(() => WorkspaceMemberCountOrderByAggregateInput, {nullable:true}) _count?: WorkspaceMemberCountOrderByAggregateInput; diff --git a/server/src/core/@generated/workspace-member/workspace-member-order-by-with-relation.input.ts b/server/src/core/@generated/workspace-member/workspace-member-order-by-with-relation.input.ts index 4509bebd969..db0e3bcda9a 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-order-by-with-relation.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-order-by-with-relation.input.ts @@ -11,21 +11,21 @@ export class WorkspaceMemberOrderByWithRelationInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) userId?: keyof typeof SortOrder; @HideField() workspaceId?: keyof typeof SortOrder; + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; + @Field(() => UserOrderByWithRelationInput, {nullable:true}) user?: UserOrderByWithRelationInput; diff --git a/server/src/core/@generated/workspace-member/workspace-member-scalar-field.enum.ts b/server/src/core/@generated/workspace-member/workspace-member-scalar-field.enum.ts index 4089c03d702..ac16b767822 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-scalar-field.enum.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-scalar-field.enum.ts @@ -2,11 +2,11 @@ import { registerEnumType } from '@nestjs/graphql'; export enum WorkspaceMemberScalarFieldEnum { id = "id", - createdAt = "createdAt", - updatedAt = "updatedAt", - deletedAt = "deletedAt", userId = "userId", - workspaceId = "workspaceId" + workspaceId = "workspaceId", + deletedAt = "deletedAt", + createdAt = "createdAt", + updatedAt = "updatedAt" } diff --git a/server/src/core/@generated/workspace-member/workspace-member-scalar-where-with-aggregates.input.ts b/server/src/core/@generated/workspace-member/workspace-member-scalar-where-with-aggregates.input.ts index 9742a78f4d9..4aa743e2ae2 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-scalar-where-with-aggregates.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-scalar-where-with-aggregates.input.ts @@ -1,9 +1,9 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringWithAggregatesFilter } from '../prisma/string-with-aggregates-filter.input'; -import { DateTimeWithAggregatesFilter } from '../prisma/date-time-with-aggregates-filter.input'; -import { DateTimeNullableWithAggregatesFilter } from '../prisma/date-time-nullable-with-aggregates-filter.input'; import { HideField } from '@nestjs/graphql'; +import { DateTimeNullableWithAggregatesFilter } from '../prisma/date-time-nullable-with-aggregates-filter.input'; +import { DateTimeWithAggregatesFilter } from '../prisma/date-time-with-aggregates-filter.input'; @InputType() export class WorkspaceMemberScalarWhereWithAggregatesInput { @@ -20,18 +20,18 @@ export class WorkspaceMemberScalarWhereWithAggregatesInput { @Field(() => StringWithAggregatesFilter, {nullable:true}) id?: StringWithAggregatesFilter; - @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) - createdAt?: DateTimeWithAggregatesFilter; - - @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) - updatedAt?: DateTimeWithAggregatesFilter; - - @Field(() => DateTimeNullableWithAggregatesFilter, {nullable:true}) - deletedAt?: DateTimeNullableWithAggregatesFilter; - @Field(() => StringWithAggregatesFilter, {nullable:true}) userId?: StringWithAggregatesFilter; @HideField() workspaceId?: StringWithAggregatesFilter; + + @HideField() + deletedAt?: DateTimeNullableWithAggregatesFilter; + + @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) + createdAt?: DateTimeWithAggregatesFilter; + + @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) + updatedAt?: DateTimeWithAggregatesFilter; } diff --git a/server/src/core/@generated/workspace-member/workspace-member-scalar-where.input.ts b/server/src/core/@generated/workspace-member/workspace-member-scalar-where.input.ts index 387a91005cd..bfdf54c870b 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-scalar-where.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-scalar-where.input.ts @@ -1,9 +1,9 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFilter } from '../prisma/string-filter.input'; -import { DateTimeFilter } from '../prisma/date-time-filter.input'; -import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; import { HideField } from '@nestjs/graphql'; +import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; +import { DateTimeFilter } from '../prisma/date-time-filter.input'; @InputType() export class WorkspaceMemberScalarWhereInput { @@ -20,18 +20,18 @@ export class WorkspaceMemberScalarWhereInput { @Field(() => StringFilter, {nullable:true}) id?: StringFilter; - @Field(() => DateTimeFilter, {nullable:true}) - createdAt?: DateTimeFilter; - - @Field(() => DateTimeFilter, {nullable:true}) - updatedAt?: DateTimeFilter; - - @Field(() => DateTimeNullableFilter, {nullable:true}) - deletedAt?: DateTimeNullableFilter; - @Field(() => StringFilter, {nullable:true}) userId?: StringFilter; @HideField() workspaceId?: StringFilter; + + @HideField() + deletedAt?: DateTimeNullableFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + createdAt?: DateTimeFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + updatedAt?: DateTimeFilter; } diff --git a/server/src/core/@generated/workspace-member/workspace-member-unchecked-create-without-user.input.ts b/server/src/core/@generated/workspace-member/workspace-member-unchecked-create-without-user.input.ts index 076441c5245..81c6c48992b 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-unchecked-create-without-user.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-unchecked-create-without-user.input.ts @@ -1,22 +1,25 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @InputType() export class WorkspaceMemberUncheckedCreateWithoutUserInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @HideField() + workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @HideField() - workspaceId!: string; } diff --git a/server/src/core/@generated/workspace-member/workspace-member-unchecked-create-without-workspace.input.ts b/server/src/core/@generated/workspace-member/workspace-member-unchecked-create-without-workspace.input.ts index f3abf7f7986..49879e471cb 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-unchecked-create-without-workspace.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-unchecked-create-without-workspace.input.ts @@ -1,21 +1,25 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; @InputType() export class WorkspaceMemberUncheckedCreateWithoutWorkspaceInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + userId!: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - userId!: string; } diff --git a/server/src/core/@generated/workspace-member/workspace-member-unchecked-create.input.ts b/server/src/core/@generated/workspace-member/workspace-member-unchecked-create.input.ts index 7e4670f3afa..bd310356e5b 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-unchecked-create.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-unchecked-create.input.ts @@ -1,25 +1,28 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @InputType() export class WorkspaceMemberUncheckedCreateInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => String, {nullable:false}) userId!: string; @HideField() workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/workspace-member/workspace-member-unchecked-update-many-without-workspace-member.input.ts b/server/src/core/@generated/workspace-member/workspace-member-unchecked-update-many-without-workspace-member.input.ts index c4454b57242..6655f7c147f 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-unchecked-update-many-without-workspace-member.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-unchecked-update-many-without-workspace-member.input.ts @@ -1,8 +1,9 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceMemberInput { @@ -10,15 +11,15 @@ export class WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceMemberInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + userId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) createdAt?: DateTimeFieldUpdateOperationsInput; @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) - userId?: StringFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/workspace-member/workspace-member-unchecked-update-many.input.ts b/server/src/core/@generated/workspace-member/workspace-member-unchecked-update-many.input.ts index 8021ea6745f..68c83f07c96 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-unchecked-update-many.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-unchecked-update-many.input.ts @@ -1,9 +1,9 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class WorkspaceMemberUncheckedUpdateManyInput { @@ -11,18 +11,18 @@ export class WorkspaceMemberUncheckedUpdateManyInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) userId?: StringFieldUpdateOperationsInput; @HideField() workspaceId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/workspace-member/workspace-member-unchecked-update-without-user.input.ts b/server/src/core/@generated/workspace-member/workspace-member-unchecked-update-without-user.input.ts index de5a4730fc5..30781df6fc3 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-unchecked-update-without-user.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-unchecked-update-without-user.input.ts @@ -1,9 +1,9 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class WorkspaceMemberUncheckedUpdateWithoutUserInput { @@ -11,15 +11,15 @@ export class WorkspaceMemberUncheckedUpdateWithoutUserInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; + @HideField() + workspaceId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) createdAt?: DateTimeFieldUpdateOperationsInput; @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - - @HideField() - workspaceId?: StringFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/workspace-member/workspace-member-unchecked-update-without-workspace.input.ts b/server/src/core/@generated/workspace-member/workspace-member-unchecked-update-without-workspace.input.ts index 034faea04e6..f6e8a7c527b 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-unchecked-update-without-workspace.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-unchecked-update-without-workspace.input.ts @@ -1,8 +1,9 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class WorkspaceMemberUncheckedUpdateWithoutWorkspaceInput { @@ -10,15 +11,15 @@ export class WorkspaceMemberUncheckedUpdateWithoutWorkspaceInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + userId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) createdAt?: DateTimeFieldUpdateOperationsInput; @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) - userId?: StringFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/workspace-member/workspace-member-unchecked-update.input.ts b/server/src/core/@generated/workspace-member/workspace-member-unchecked-update.input.ts index 9eed855b0ea..5a40c8e0821 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-unchecked-update.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-unchecked-update.input.ts @@ -1,9 +1,9 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class WorkspaceMemberUncheckedUpdateInput { @@ -11,18 +11,18 @@ export class WorkspaceMemberUncheckedUpdateInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) userId?: StringFieldUpdateOperationsInput; @HideField() workspaceId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/workspace-member/workspace-member-update-many-mutation.input.ts b/server/src/core/@generated/workspace-member/workspace-member-update-many-mutation.input.ts index 8553ee73420..1175f660681 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-update-many-mutation.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-update-many-mutation.input.ts @@ -1,8 +1,9 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class WorkspaceMemberUpdateManyMutationInput { @@ -10,12 +11,12 @@ export class WorkspaceMemberUpdateManyMutationInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) createdAt?: DateTimeFieldUpdateOperationsInput; @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/workspace-member/workspace-member-update-without-user.input.ts b/server/src/core/@generated/workspace-member/workspace-member-update-without-user.input.ts index 115240ac071..8c8cdeae4f9 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-update-without-user.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-update-without-user.input.ts @@ -1,10 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; -import { WorkspaceUpdateOneRequiredWithoutWorkspaceMemberNestedInput } from '../workspace/workspace-update-one-required-without-workspace-member-nested.input'; import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; +import { WorkspaceUpdateOneRequiredWithoutWorkspaceMemberNestedInput } from '../workspace/workspace-update-one-required-without-workspace-member-nested.input'; @InputType() export class WorkspaceMemberUpdateWithoutUserInput { @@ -12,15 +12,15 @@ export class WorkspaceMemberUpdateWithoutUserInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) createdAt?: DateTimeFieldUpdateOperationsInput; @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @HideField() workspace?: WorkspaceUpdateOneRequiredWithoutWorkspaceMemberNestedInput; } diff --git a/server/src/core/@generated/workspace-member/workspace-member-update-without-workspace.input.ts b/server/src/core/@generated/workspace-member/workspace-member-update-without-workspace.input.ts index 815cad24267..d763f9a5bfb 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-update-without-workspace.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-update-without-workspace.input.ts @@ -1,8 +1,9 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { UserUpdateOneRequiredWithoutWorkspaceMemberNestedInput } from '../user/user-update-one-required-without-workspace-member-nested.input'; @InputType() @@ -11,15 +12,15 @@ export class WorkspaceMemberUpdateWithoutWorkspaceInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) createdAt?: DateTimeFieldUpdateOperationsInput; @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => UserUpdateOneRequiredWithoutWorkspaceMemberNestedInput, {nullable:true}) user?: UserUpdateOneRequiredWithoutWorkspaceMemberNestedInput; } diff --git a/server/src/core/@generated/workspace-member/workspace-member-update.input.ts b/server/src/core/@generated/workspace-member/workspace-member-update.input.ts index dcaaef4b4f4..343ecf8589e 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-update.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-update.input.ts @@ -1,11 +1,11 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { UserUpdateOneRequiredWithoutWorkspaceMemberNestedInput } from '../user/user-update-one-required-without-workspace-member-nested.input'; import { WorkspaceUpdateOneRequiredWithoutWorkspaceMemberNestedInput } from '../workspace/workspace-update-one-required-without-workspace-member-nested.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class WorkspaceMemberUpdateInput { @@ -13,15 +13,15 @@ export class WorkspaceMemberUpdateInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) createdAt?: DateTimeFieldUpdateOperationsInput; @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => UserUpdateOneRequiredWithoutWorkspaceMemberNestedInput, {nullable:true}) user?: UserUpdateOneRequiredWithoutWorkspaceMemberNestedInput; diff --git a/server/src/core/@generated/workspace-member/workspace-member-where-unique.input.ts b/server/src/core/@generated/workspace-member/workspace-member-where-unique.input.ts index 15a39929faf..52ce8efd64c 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-where-unique.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-where-unique.input.ts @@ -1,10 +1,13 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; @InputType() export class WorkspaceMemberWhereUniqueInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; @Field(() => String, {nullable:true}) diff --git a/server/src/core/@generated/workspace-member/workspace-member-where.input.ts b/server/src/core/@generated/workspace-member/workspace-member-where.input.ts index 2f6586a2994..1eda2d1ae48 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-where.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-where.input.ts @@ -1,9 +1,9 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFilter } from '../prisma/string-filter.input'; -import { DateTimeFilter } from '../prisma/date-time-filter.input'; -import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; import { HideField } from '@nestjs/graphql'; +import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; +import { DateTimeFilter } from '../prisma/date-time-filter.input'; import { UserRelationFilter } from '../user/user-relation-filter.input'; import { WorkspaceRelationFilter } from '../workspace/workspace-relation-filter.input'; @@ -22,21 +22,21 @@ export class WorkspaceMemberWhereInput { @Field(() => StringFilter, {nullable:true}) id?: StringFilter; - @Field(() => DateTimeFilter, {nullable:true}) - createdAt?: DateTimeFilter; - - @Field(() => DateTimeFilter, {nullable:true}) - updatedAt?: DateTimeFilter; - - @Field(() => DateTimeNullableFilter, {nullable:true}) - deletedAt?: DateTimeNullableFilter; - @Field(() => StringFilter, {nullable:true}) userId?: StringFilter; @HideField() workspaceId?: StringFilter; + @HideField() + deletedAt?: DateTimeNullableFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + createdAt?: DateTimeFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + updatedAt?: DateTimeFilter; + @Field(() => UserRelationFilter, {nullable:true}) user?: UserRelationFilter; diff --git a/server/src/core/@generated/workspace-member/workspace-member.model.ts b/server/src/core/@generated/workspace-member/workspace-member.model.ts index f6247d98596..225e41e9c79 100644 --- a/server/src/core/@generated/workspace-member/workspace-member.model.ts +++ b/server/src/core/@generated/workspace-member/workspace-member.model.ts @@ -11,21 +11,21 @@ export class WorkspaceMember { @Field(() => ID, {nullable:false}) id!: string; - @Field(() => Date, {nullable:false}) - createdAt!: Date; - - @Field(() => Date, {nullable:false}) - updatedAt!: Date; - - @Field(() => Date, {nullable:true}) - deletedAt!: Date | null; - @Field(() => String, {nullable:false}) userId!: string; @HideField() workspaceId!: string; + @HideField() + deletedAt!: Date | null; + + @Field(() => Date, {nullable:false}) + createdAt!: Date; + + @Field(() => Date, {nullable:false}) + updatedAt!: Date; + @Field(() => User, {nullable:false}) user?: User; diff --git a/server/src/core/@generated/workspace/create-many-workspace.args.ts b/server/src/core/@generated/workspace/create-many-workspace.args.ts index 34997578e1f..9dc7e7e9e65 100644 --- a/server/src/core/@generated/workspace/create-many-workspace.args.ts +++ b/server/src/core/@generated/workspace/create-many-workspace.args.ts @@ -2,12 +2,15 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { WorkspaceCreateManyInput } from './workspace-create-many.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; @ArgsType() export class CreateManyWorkspaceArgs { @Field(() => [WorkspaceCreateManyInput], {nullable:false}) @Type(() => WorkspaceCreateManyInput) + @ValidateNested({each: true}) + @Type(() => WorkspaceCreateManyInput) data!: Array; @Field(() => Boolean, {nullable:true}) diff --git a/server/src/core/@generated/workspace/create-one-workspace.args.ts b/server/src/core/@generated/workspace/create-one-workspace.args.ts index 21d295664ca..ce2dec1590a 100644 --- a/server/src/core/@generated/workspace/create-one-workspace.args.ts +++ b/server/src/core/@generated/workspace/create-one-workspace.args.ts @@ -2,11 +2,14 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { WorkspaceCreateInput } from './workspace-create.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; @ArgsType() export class CreateOneWorkspaceArgs { @Field(() => WorkspaceCreateInput, {nullable:false}) @Type(() => WorkspaceCreateInput) + @ValidateNested({each: true}) + @Type(() => WorkspaceCreateInput) data!: WorkspaceCreateInput; } diff --git a/server/src/core/@generated/workspace/update-many-workspace.args.ts b/server/src/core/@generated/workspace/update-many-workspace.args.ts index a8dd4fd8551..7772c4a6920 100644 --- a/server/src/core/@generated/workspace/update-many-workspace.args.ts +++ b/server/src/core/@generated/workspace/update-many-workspace.args.ts @@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { WorkspaceUpdateManyMutationInput } from './workspace-update-many-mutation.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; import { WorkspaceWhereInput } from './workspace-where.input'; @ArgsType() @@ -9,6 +10,8 @@ export class UpdateManyWorkspaceArgs { @Field(() => WorkspaceUpdateManyMutationInput, {nullable:false}) @Type(() => WorkspaceUpdateManyMutationInput) + @ValidateNested({each: true}) + @Type(() => WorkspaceUpdateManyMutationInput) data!: WorkspaceUpdateManyMutationInput; @Field(() => WorkspaceWhereInput, {nullable:true}) diff --git a/server/src/core/@generated/workspace/update-one-workspace.args.ts b/server/src/core/@generated/workspace/update-one-workspace.args.ts index 7a3bc5591f4..d28d7161b4a 100644 --- a/server/src/core/@generated/workspace/update-one-workspace.args.ts +++ b/server/src/core/@generated/workspace/update-one-workspace.args.ts @@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { WorkspaceUpdateInput } from './workspace-update.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; import { WorkspaceWhereUniqueInput } from './workspace-where-unique.input'; @ArgsType() @@ -9,6 +10,8 @@ export class UpdateOneWorkspaceArgs { @Field(() => WorkspaceUpdateInput, {nullable:false}) @Type(() => WorkspaceUpdateInput) + @ValidateNested({each: true}) + @Type(() => WorkspaceUpdateInput) data!: WorkspaceUpdateInput; @Field(() => WorkspaceWhereUniqueInput, {nullable:false}) diff --git a/server/src/core/@generated/workspace/workspace-count-aggregate.input.ts b/server/src/core/@generated/workspace/workspace-count-aggregate.input.ts index 515c56ef664..f1d672e1bb9 100644 --- a/server/src/core/@generated/workspace/workspace-count-aggregate.input.ts +++ b/server/src/core/@generated/workspace/workspace-count-aggregate.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import { HideField } from '@nestjs/graphql'; @InputType() export class WorkspaceCountAggregateInput { @@ -7,15 +8,6 @@ export class WorkspaceCountAggregateInput { @Field(() => Boolean, {nullable:true}) id?: true; - @Field(() => Boolean, {nullable:true}) - createdAt?: true; - - @Field(() => Boolean, {nullable:true}) - updatedAt?: true; - - @Field(() => Boolean, {nullable:true}) - deletedAt?: true; - @Field(() => Boolean, {nullable:true}) domainName?: true; @@ -25,6 +17,15 @@ export class WorkspaceCountAggregateInput { @Field(() => Boolean, {nullable:true}) logo?: true; + @HideField() + deletedAt?: true; + + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; + @Field(() => Boolean, {nullable:true}) _all?: true; } diff --git a/server/src/core/@generated/workspace/workspace-count-aggregate.output.ts b/server/src/core/@generated/workspace/workspace-count-aggregate.output.ts index 973e6bee092..df84d04c068 100644 --- a/server/src/core/@generated/workspace/workspace-count-aggregate.output.ts +++ b/server/src/core/@generated/workspace/workspace-count-aggregate.output.ts @@ -1,6 +1,7 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; import { Int } from '@nestjs/graphql'; +import { HideField } from '@nestjs/graphql'; @ObjectType() export class WorkspaceCountAggregate { @@ -8,15 +9,6 @@ export class WorkspaceCountAggregate { @Field(() => Int, {nullable:false}) id!: number; - @Field(() => Int, {nullable:false}) - createdAt!: number; - - @Field(() => Int, {nullable:false}) - updatedAt!: number; - - @Field(() => Int, {nullable:false}) - deletedAt!: number; - @Field(() => Int, {nullable:false}) domainName!: number; @@ -26,6 +18,15 @@ export class WorkspaceCountAggregate { @Field(() => Int, {nullable:false}) logo!: number; + @HideField() + deletedAt!: number; + + @Field(() => Int, {nullable:false}) + createdAt!: number; + + @Field(() => Int, {nullable:false}) + updatedAt!: number; + @Field(() => Int, {nullable:false}) _all!: number; } diff --git a/server/src/core/@generated/workspace/workspace-count-order-by-aggregate.input.ts b/server/src/core/@generated/workspace/workspace-count-order-by-aggregate.input.ts index c8989bfdffe..8ae33e3e0ee 100644 --- a/server/src/core/@generated/workspace/workspace-count-order-by-aggregate.input.ts +++ b/server/src/core/@generated/workspace/workspace-count-order-by-aggregate.input.ts @@ -1,6 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { SortOrder } from '../prisma/sort-order.enum'; +import { HideField } from '@nestjs/graphql'; @InputType() export class WorkspaceCountOrderByAggregateInput { @@ -8,15 +9,6 @@ export class WorkspaceCountOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) domainName?: keyof typeof SortOrder; @@ -25,4 +17,13 @@ export class WorkspaceCountOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) logo?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/workspace/workspace-create-many.input.ts b/server/src/core/@generated/workspace/workspace-create-many.input.ts index 19ecd3b7031..0a15f1dede1 100644 --- a/server/src/core/@generated/workspace/workspace-create-many.input.ts +++ b/server/src/core/@generated/workspace/workspace-create-many.input.ts @@ -1,27 +1,35 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; @InputType() export class WorkspaceCreateManyInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + displayName!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + logo?: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - domainName!: string; - - @Field(() => String, {nullable:false}) - displayName!: string; - - @Field(() => String, {nullable:true}) - logo?: string; } diff --git a/server/src/core/@generated/workspace/workspace-create-without-comment-threads.input.ts b/server/src/core/@generated/workspace/workspace-create-without-comment-threads.input.ts index 9ce6c151e4d..4c95327a68e 100644 --- a/server/src/core/@generated/workspace/workspace-create-without-comment-threads.input.ts +++ b/server/src/core/@generated/workspace/workspace-create-without-comment-threads.input.ts @@ -1,5 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; import { WorkspaceMemberCreateNestedManyWithoutWorkspaceInput } from '../workspace-member/workspace-member-create-nested-many-without-workspace.input'; import { CompanyCreateNestedManyWithoutWorkspaceInput } from '../company/company-create-nested-many-without-workspace.input'; import { PersonCreateNestedManyWithoutWorkspaceInput } from '../person/person-create-nested-many-without-workspace.input'; @@ -12,26 +14,32 @@ import { PipelineProgressCreateNestedManyWithoutWorkspaceInput } from '../pipeli export class WorkspaceCreateWithoutCommentThreadsInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + displayName!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + logo?: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - domainName!: string; - - @Field(() => String, {nullable:false}) - displayName!: string; - - @Field(() => String, {nullable:true}) - logo?: string; - @Field(() => WorkspaceMemberCreateNestedManyWithoutWorkspaceInput, {nullable:true}) workspaceMember?: WorkspaceMemberCreateNestedManyWithoutWorkspaceInput; diff --git a/server/src/core/@generated/workspace/workspace-create-without-comments.input.ts b/server/src/core/@generated/workspace/workspace-create-without-comments.input.ts index 1160fce3257..87c853a6e1d 100644 --- a/server/src/core/@generated/workspace/workspace-create-without-comments.input.ts +++ b/server/src/core/@generated/workspace/workspace-create-without-comments.input.ts @@ -1,5 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; import { WorkspaceMemberCreateNestedManyWithoutWorkspaceInput } from '../workspace-member/workspace-member-create-nested-many-without-workspace.input'; import { CompanyCreateNestedManyWithoutWorkspaceInput } from '../company/company-create-nested-many-without-workspace.input'; import { PersonCreateNestedManyWithoutWorkspaceInput } from '../person/person-create-nested-many-without-workspace.input'; @@ -12,26 +14,32 @@ import { PipelineProgressCreateNestedManyWithoutWorkspaceInput } from '../pipeli export class WorkspaceCreateWithoutCommentsInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + displayName!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + logo?: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - domainName!: string; - - @Field(() => String, {nullable:false}) - displayName!: string; - - @Field(() => String, {nullable:true}) - logo?: string; - @Field(() => WorkspaceMemberCreateNestedManyWithoutWorkspaceInput, {nullable:true}) workspaceMember?: WorkspaceMemberCreateNestedManyWithoutWorkspaceInput; diff --git a/server/src/core/@generated/workspace/workspace-create-without-companies.input.ts b/server/src/core/@generated/workspace/workspace-create-without-companies.input.ts index 8bb2438f525..3c18a17c30d 100644 --- a/server/src/core/@generated/workspace/workspace-create-without-companies.input.ts +++ b/server/src/core/@generated/workspace/workspace-create-without-companies.input.ts @@ -1,5 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; import { WorkspaceMemberCreateNestedManyWithoutWorkspaceInput } from '../workspace-member/workspace-member-create-nested-many-without-workspace.input'; import { PersonCreateNestedManyWithoutWorkspaceInput } from '../person/person-create-nested-many-without-workspace.input'; import { CommentThreadCreateNestedManyWithoutWorkspaceInput } from '../comment-thread/comment-thread-create-nested-many-without-workspace.input'; @@ -12,26 +14,32 @@ import { PipelineProgressCreateNestedManyWithoutWorkspaceInput } from '../pipeli export class WorkspaceCreateWithoutCompaniesInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + displayName!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + logo?: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - domainName!: string; - - @Field(() => String, {nullable:false}) - displayName!: string; - - @Field(() => String, {nullable:true}) - logo?: string; - @Field(() => WorkspaceMemberCreateNestedManyWithoutWorkspaceInput, {nullable:true}) workspaceMember?: WorkspaceMemberCreateNestedManyWithoutWorkspaceInput; diff --git a/server/src/core/@generated/workspace/workspace-create-without-people.input.ts b/server/src/core/@generated/workspace/workspace-create-without-people.input.ts index 9311d322d4b..d78bd07321d 100644 --- a/server/src/core/@generated/workspace/workspace-create-without-people.input.ts +++ b/server/src/core/@generated/workspace/workspace-create-without-people.input.ts @@ -1,5 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; import { WorkspaceMemberCreateNestedManyWithoutWorkspaceInput } from '../workspace-member/workspace-member-create-nested-many-without-workspace.input'; import { CompanyCreateNestedManyWithoutWorkspaceInput } from '../company/company-create-nested-many-without-workspace.input'; import { CommentThreadCreateNestedManyWithoutWorkspaceInput } from '../comment-thread/comment-thread-create-nested-many-without-workspace.input'; @@ -12,26 +14,32 @@ import { PipelineProgressCreateNestedManyWithoutWorkspaceInput } from '../pipeli export class WorkspaceCreateWithoutPeopleInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + displayName!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + logo?: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - domainName!: string; - - @Field(() => String, {nullable:false}) - displayName!: string; - - @Field(() => String, {nullable:true}) - logo?: string; - @Field(() => WorkspaceMemberCreateNestedManyWithoutWorkspaceInput, {nullable:true}) workspaceMember?: WorkspaceMemberCreateNestedManyWithoutWorkspaceInput; diff --git a/server/src/core/@generated/workspace/workspace-create-without-pipeline-progresses.input.ts b/server/src/core/@generated/workspace/workspace-create-without-pipeline-progresses.input.ts index 673eb701674..ae49df118f6 100644 --- a/server/src/core/@generated/workspace/workspace-create-without-pipeline-progresses.input.ts +++ b/server/src/core/@generated/workspace/workspace-create-without-pipeline-progresses.input.ts @@ -1,5 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; import { WorkspaceMemberCreateNestedManyWithoutWorkspaceInput } from '../workspace-member/workspace-member-create-nested-many-without-workspace.input'; import { CompanyCreateNestedManyWithoutWorkspaceInput } from '../company/company-create-nested-many-without-workspace.input'; import { PersonCreateNestedManyWithoutWorkspaceInput } from '../person/person-create-nested-many-without-workspace.input'; @@ -12,26 +14,32 @@ import { PipelineStageCreateNestedManyWithoutWorkspaceInput } from '../pipeline- export class WorkspaceCreateWithoutPipelineProgressesInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + displayName!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + logo?: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - domainName!: string; - - @Field(() => String, {nullable:false}) - displayName!: string; - - @Field(() => String, {nullable:true}) - logo?: string; - @Field(() => WorkspaceMemberCreateNestedManyWithoutWorkspaceInput, {nullable:true}) workspaceMember?: WorkspaceMemberCreateNestedManyWithoutWorkspaceInput; diff --git a/server/src/core/@generated/workspace/workspace-create-without-pipeline-stages.input.ts b/server/src/core/@generated/workspace/workspace-create-without-pipeline-stages.input.ts index 8662a9f2746..5b604153955 100644 --- a/server/src/core/@generated/workspace/workspace-create-without-pipeline-stages.input.ts +++ b/server/src/core/@generated/workspace/workspace-create-without-pipeline-stages.input.ts @@ -1,5 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; import { WorkspaceMemberCreateNestedManyWithoutWorkspaceInput } from '../workspace-member/workspace-member-create-nested-many-without-workspace.input'; import { CompanyCreateNestedManyWithoutWorkspaceInput } from '../company/company-create-nested-many-without-workspace.input'; import { PersonCreateNestedManyWithoutWorkspaceInput } from '../person/person-create-nested-many-without-workspace.input'; @@ -12,26 +14,32 @@ import { PipelineProgressCreateNestedManyWithoutWorkspaceInput } from '../pipeli export class WorkspaceCreateWithoutPipelineStagesInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + displayName!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + logo?: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - domainName!: string; - - @Field(() => String, {nullable:false}) - displayName!: string; - - @Field(() => String, {nullable:true}) - logo?: string; - @Field(() => WorkspaceMemberCreateNestedManyWithoutWorkspaceInput, {nullable:true}) workspaceMember?: WorkspaceMemberCreateNestedManyWithoutWorkspaceInput; diff --git a/server/src/core/@generated/workspace/workspace-create-without-pipelines.input.ts b/server/src/core/@generated/workspace/workspace-create-without-pipelines.input.ts index 0c5a01ef517..3136284df8d 100644 --- a/server/src/core/@generated/workspace/workspace-create-without-pipelines.input.ts +++ b/server/src/core/@generated/workspace/workspace-create-without-pipelines.input.ts @@ -1,5 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; import { WorkspaceMemberCreateNestedManyWithoutWorkspaceInput } from '../workspace-member/workspace-member-create-nested-many-without-workspace.input'; import { CompanyCreateNestedManyWithoutWorkspaceInput } from '../company/company-create-nested-many-without-workspace.input'; import { PersonCreateNestedManyWithoutWorkspaceInput } from '../person/person-create-nested-many-without-workspace.input'; @@ -12,26 +14,32 @@ import { PipelineProgressCreateNestedManyWithoutWorkspaceInput } from '../pipeli export class WorkspaceCreateWithoutPipelinesInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + displayName!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + logo?: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - domainName!: string; - - @Field(() => String, {nullable:false}) - displayName!: string; - - @Field(() => String, {nullable:true}) - logo?: string; - @Field(() => WorkspaceMemberCreateNestedManyWithoutWorkspaceInput, {nullable:true}) workspaceMember?: WorkspaceMemberCreateNestedManyWithoutWorkspaceInput; diff --git a/server/src/core/@generated/workspace/workspace-create-without-workspace-member.input.ts b/server/src/core/@generated/workspace/workspace-create-without-workspace-member.input.ts index 94a8574e444..4f60d70fd80 100644 --- a/server/src/core/@generated/workspace/workspace-create-without-workspace-member.input.ts +++ b/server/src/core/@generated/workspace/workspace-create-without-workspace-member.input.ts @@ -1,5 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; import { CompanyCreateNestedManyWithoutWorkspaceInput } from '../company/company-create-nested-many-without-workspace.input'; import { PersonCreateNestedManyWithoutWorkspaceInput } from '../person/person-create-nested-many-without-workspace.input'; import { CommentThreadCreateNestedManyWithoutWorkspaceInput } from '../comment-thread/comment-thread-create-nested-many-without-workspace.input'; @@ -12,26 +14,32 @@ import { PipelineProgressCreateNestedManyWithoutWorkspaceInput } from '../pipeli export class WorkspaceCreateWithoutWorkspaceMemberInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + displayName!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + logo?: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - domainName!: string; - - @Field(() => String, {nullable:false}) - displayName!: string; - - @Field(() => String, {nullable:true}) - logo?: string; - @Field(() => CompanyCreateNestedManyWithoutWorkspaceInput, {nullable:true}) companies?: CompanyCreateNestedManyWithoutWorkspaceInput; diff --git a/server/src/core/@generated/workspace/workspace-create.input.ts b/server/src/core/@generated/workspace/workspace-create.input.ts index 67b28386829..6137eb6e6a5 100644 --- a/server/src/core/@generated/workspace/workspace-create.input.ts +++ b/server/src/core/@generated/workspace/workspace-create.input.ts @@ -1,5 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; import { WorkspaceMemberCreateNestedManyWithoutWorkspaceInput } from '../workspace-member/workspace-member-create-nested-many-without-workspace.input'; import { CompanyCreateNestedManyWithoutWorkspaceInput } from '../company/company-create-nested-many-without-workspace.input'; import { PersonCreateNestedManyWithoutWorkspaceInput } from '../person/person-create-nested-many-without-workspace.input'; @@ -13,26 +15,32 @@ import { PipelineProgressCreateNestedManyWithoutWorkspaceInput } from '../pipeli export class WorkspaceCreateInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + displayName!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + logo?: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - domainName!: string; - - @Field(() => String, {nullable:false}) - displayName!: string; - - @Field(() => String, {nullable:true}) - logo?: string; - @Field(() => WorkspaceMemberCreateNestedManyWithoutWorkspaceInput, {nullable:true}) workspaceMember?: WorkspaceMemberCreateNestedManyWithoutWorkspaceInput; diff --git a/server/src/core/@generated/workspace/workspace-group-by.output.ts b/server/src/core/@generated/workspace/workspace-group-by.output.ts index 3714134416e..2d382882035 100644 --- a/server/src/core/@generated/workspace/workspace-group-by.output.ts +++ b/server/src/core/@generated/workspace/workspace-group-by.output.ts @@ -1,5 +1,7 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; import { WorkspaceCountAggregate } from './workspace-count-aggregate.output'; import { WorkspaceMinAggregate } from './workspace-min-aggregate.output'; import { WorkspaceMaxAggregate } from './workspace-max-aggregate.output'; @@ -8,26 +10,32 @@ import { WorkspaceMaxAggregate } from './workspace-max-aggregate.output'; export class WorkspaceGroupBy { @Field(() => String, {nullable:false}) + @Validator.IsString() + @Validator.IsOptional() id!: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + displayName!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + logo?: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:false}) createdAt!: Date | string; @Field(() => Date, {nullable:false}) updatedAt!: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - domainName!: string; - - @Field(() => String, {nullable:false}) - displayName!: string; - - @Field(() => String, {nullable:true}) - logo?: string; - @Field(() => WorkspaceCountAggregate, {nullable:true}) _count?: WorkspaceCountAggregate; diff --git a/server/src/core/@generated/workspace/workspace-max-aggregate.input.ts b/server/src/core/@generated/workspace/workspace-max-aggregate.input.ts index ea8d0ab832f..022e0dc7e4d 100644 --- a/server/src/core/@generated/workspace/workspace-max-aggregate.input.ts +++ b/server/src/core/@generated/workspace/workspace-max-aggregate.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import { HideField } from '@nestjs/graphql'; @InputType() export class WorkspaceMaxAggregateInput { @@ -7,15 +8,6 @@ export class WorkspaceMaxAggregateInput { @Field(() => Boolean, {nullable:true}) id?: true; - @Field(() => Boolean, {nullable:true}) - createdAt?: true; - - @Field(() => Boolean, {nullable:true}) - updatedAt?: true; - - @Field(() => Boolean, {nullable:true}) - deletedAt?: true; - @Field(() => Boolean, {nullable:true}) domainName?: true; @@ -24,4 +16,13 @@ export class WorkspaceMaxAggregateInput { @Field(() => Boolean, {nullable:true}) logo?: true; + + @HideField() + deletedAt?: true; + + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; } diff --git a/server/src/core/@generated/workspace/workspace-max-aggregate.output.ts b/server/src/core/@generated/workspace/workspace-max-aggregate.output.ts index 159373eb3a6..ba8f25ec2e5 100644 --- a/server/src/core/@generated/workspace/workspace-max-aggregate.output.ts +++ b/server/src/core/@generated/workspace/workspace-max-aggregate.output.ts @@ -1,27 +1,35 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; @ObjectType() export class WorkspaceMaxAggregate { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:true}) + @Validator.IsString() + domainName?: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + displayName?: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + logo?: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:true}) - domainName?: string; - - @Field(() => String, {nullable:true}) - displayName?: string; - - @Field(() => String, {nullable:true}) - logo?: string; } diff --git a/server/src/core/@generated/workspace/workspace-max-order-by-aggregate.input.ts b/server/src/core/@generated/workspace/workspace-max-order-by-aggregate.input.ts index 037f7eb9192..c61f48b087f 100644 --- a/server/src/core/@generated/workspace/workspace-max-order-by-aggregate.input.ts +++ b/server/src/core/@generated/workspace/workspace-max-order-by-aggregate.input.ts @@ -1,6 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { SortOrder } from '../prisma/sort-order.enum'; +import { HideField } from '@nestjs/graphql'; @InputType() export class WorkspaceMaxOrderByAggregateInput { @@ -8,15 +9,6 @@ export class WorkspaceMaxOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) domainName?: keyof typeof SortOrder; @@ -25,4 +17,13 @@ export class WorkspaceMaxOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) logo?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/workspace/workspace-min-aggregate.input.ts b/server/src/core/@generated/workspace/workspace-min-aggregate.input.ts index fa2d6e2c82d..ce6803ca13c 100644 --- a/server/src/core/@generated/workspace/workspace-min-aggregate.input.ts +++ b/server/src/core/@generated/workspace/workspace-min-aggregate.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import { HideField } from '@nestjs/graphql'; @InputType() export class WorkspaceMinAggregateInput { @@ -7,15 +8,6 @@ export class WorkspaceMinAggregateInput { @Field(() => Boolean, {nullable:true}) id?: true; - @Field(() => Boolean, {nullable:true}) - createdAt?: true; - - @Field(() => Boolean, {nullable:true}) - updatedAt?: true; - - @Field(() => Boolean, {nullable:true}) - deletedAt?: true; - @Field(() => Boolean, {nullable:true}) domainName?: true; @@ -24,4 +16,13 @@ export class WorkspaceMinAggregateInput { @Field(() => Boolean, {nullable:true}) logo?: true; + + @HideField() + deletedAt?: true; + + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; } diff --git a/server/src/core/@generated/workspace/workspace-min-aggregate.output.ts b/server/src/core/@generated/workspace/workspace-min-aggregate.output.ts index 0c2a2a26a7d..e1ca5e49628 100644 --- a/server/src/core/@generated/workspace/workspace-min-aggregate.output.ts +++ b/server/src/core/@generated/workspace/workspace-min-aggregate.output.ts @@ -1,27 +1,35 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; @ObjectType() export class WorkspaceMinAggregate { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:true}) + @Validator.IsString() + domainName?: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + displayName?: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + logo?: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:true}) - domainName?: string; - - @Field(() => String, {nullable:true}) - displayName?: string; - - @Field(() => String, {nullable:true}) - logo?: string; } diff --git a/server/src/core/@generated/workspace/workspace-min-order-by-aggregate.input.ts b/server/src/core/@generated/workspace/workspace-min-order-by-aggregate.input.ts index 39cde43107a..6834c1f8d7f 100644 --- a/server/src/core/@generated/workspace/workspace-min-order-by-aggregate.input.ts +++ b/server/src/core/@generated/workspace/workspace-min-order-by-aggregate.input.ts @@ -1,6 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { SortOrder } from '../prisma/sort-order.enum'; +import { HideField } from '@nestjs/graphql'; @InputType() export class WorkspaceMinOrderByAggregateInput { @@ -8,15 +9,6 @@ export class WorkspaceMinOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) domainName?: keyof typeof SortOrder; @@ -25,4 +17,13 @@ export class WorkspaceMinOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) logo?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/workspace/workspace-order-by-with-aggregation.input.ts b/server/src/core/@generated/workspace/workspace-order-by-with-aggregation.input.ts index 1e027eb2966..ae5e311d8d7 100644 --- a/server/src/core/@generated/workspace/workspace-order-by-with-aggregation.input.ts +++ b/server/src/core/@generated/workspace/workspace-order-by-with-aggregation.input.ts @@ -1,6 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { SortOrder } from '../prisma/sort-order.enum'; +import { HideField } from '@nestjs/graphql'; import { WorkspaceCountOrderByAggregateInput } from './workspace-count-order-by-aggregate.input'; import { WorkspaceMaxOrderByAggregateInput } from './workspace-max-order-by-aggregate.input'; import { WorkspaceMinOrderByAggregateInput } from './workspace-min-order-by-aggregate.input'; @@ -11,15 +12,6 @@ export class WorkspaceOrderByWithAggregationInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) domainName?: keyof typeof SortOrder; @@ -29,6 +21,15 @@ export class WorkspaceOrderByWithAggregationInput { @Field(() => SortOrder, {nullable:true}) logo?: keyof typeof SortOrder; + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; + @Field(() => WorkspaceCountOrderByAggregateInput, {nullable:true}) _count?: WorkspaceCountOrderByAggregateInput; diff --git a/server/src/core/@generated/workspace/workspace-order-by-with-relation.input.ts b/server/src/core/@generated/workspace/workspace-order-by-with-relation.input.ts index 99d3bc8433f..95964e2ac09 100644 --- a/server/src/core/@generated/workspace/workspace-order-by-with-relation.input.ts +++ b/server/src/core/@generated/workspace/workspace-order-by-with-relation.input.ts @@ -1,6 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { SortOrder } from '../prisma/sort-order.enum'; +import { HideField } from '@nestjs/graphql'; import { WorkspaceMemberOrderByRelationAggregateInput } from '../workspace-member/workspace-member-order-by-relation-aggregate.input'; import { CompanyOrderByRelationAggregateInput } from '../company/company-order-by-relation-aggregate.input'; import { PersonOrderByRelationAggregateInput } from '../person/person-order-by-relation-aggregate.input'; @@ -16,15 +17,6 @@ export class WorkspaceOrderByWithRelationInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - createdAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - updatedAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) domainName?: keyof typeof SortOrder; @@ -34,6 +26,15 @@ export class WorkspaceOrderByWithRelationInput { @Field(() => SortOrder, {nullable:true}) logo?: keyof typeof SortOrder; + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; + @Field(() => WorkspaceMemberOrderByRelationAggregateInput, {nullable:true}) workspaceMember?: WorkspaceMemberOrderByRelationAggregateInput; diff --git a/server/src/core/@generated/workspace/workspace-scalar-field.enum.ts b/server/src/core/@generated/workspace/workspace-scalar-field.enum.ts index 083443cff82..02cf89b8dc9 100644 --- a/server/src/core/@generated/workspace/workspace-scalar-field.enum.ts +++ b/server/src/core/@generated/workspace/workspace-scalar-field.enum.ts @@ -2,12 +2,12 @@ import { registerEnumType } from '@nestjs/graphql'; export enum WorkspaceScalarFieldEnum { id = "id", - createdAt = "createdAt", - updatedAt = "updatedAt", - deletedAt = "deletedAt", domainName = "domainName", displayName = "displayName", - logo = "logo" + logo = "logo", + deletedAt = "deletedAt", + createdAt = "createdAt", + updatedAt = "updatedAt" } diff --git a/server/src/core/@generated/workspace/workspace-scalar-where-with-aggregates.input.ts b/server/src/core/@generated/workspace/workspace-scalar-where-with-aggregates.input.ts index 2ccf07fac15..bafa10616bf 100644 --- a/server/src/core/@generated/workspace/workspace-scalar-where-with-aggregates.input.ts +++ b/server/src/core/@generated/workspace/workspace-scalar-where-with-aggregates.input.ts @@ -1,9 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringWithAggregatesFilter } from '../prisma/string-with-aggregates-filter.input'; -import { DateTimeWithAggregatesFilter } from '../prisma/date-time-with-aggregates-filter.input'; -import { DateTimeNullableWithAggregatesFilter } from '../prisma/date-time-nullable-with-aggregates-filter.input'; import { StringNullableWithAggregatesFilter } from '../prisma/string-nullable-with-aggregates-filter.input'; +import { DateTimeNullableWithAggregatesFilter } from '../prisma/date-time-nullable-with-aggregates-filter.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeWithAggregatesFilter } from '../prisma/date-time-with-aggregates-filter.input'; @InputType() export class WorkspaceScalarWhereWithAggregatesInput { @@ -20,15 +21,6 @@ export class WorkspaceScalarWhereWithAggregatesInput { @Field(() => StringWithAggregatesFilter, {nullable:true}) id?: StringWithAggregatesFilter; - @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) - createdAt?: DateTimeWithAggregatesFilter; - - @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) - updatedAt?: DateTimeWithAggregatesFilter; - - @Field(() => DateTimeNullableWithAggregatesFilter, {nullable:true}) - deletedAt?: DateTimeNullableWithAggregatesFilter; - @Field(() => StringWithAggregatesFilter, {nullable:true}) domainName?: StringWithAggregatesFilter; @@ -37,4 +29,13 @@ export class WorkspaceScalarWhereWithAggregatesInput { @Field(() => StringNullableWithAggregatesFilter, {nullable:true}) logo?: StringNullableWithAggregatesFilter; + + @HideField() + deletedAt?: DateTimeNullableWithAggregatesFilter; + + @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) + createdAt?: DateTimeWithAggregatesFilter; + + @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) + updatedAt?: DateTimeWithAggregatesFilter; } diff --git a/server/src/core/@generated/workspace/workspace-unchecked-create-without-comment-threads.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-create-without-comment-threads.input.ts index 906920f05cc..46cf3451a28 100644 --- a/server/src/core/@generated/workspace/workspace-unchecked-create-without-comment-threads.input.ts +++ b/server/src/core/@generated/workspace/workspace-unchecked-create-without-comment-threads.input.ts @@ -1,5 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; import { WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput } from '../workspace-member/workspace-member-unchecked-create-nested-many-without-workspace.input'; import { CompanyUncheckedCreateNestedManyWithoutWorkspaceInput } from '../company/company-unchecked-create-nested-many-without-workspace.input'; import { PersonUncheckedCreateNestedManyWithoutWorkspaceInput } from '../person/person-unchecked-create-nested-many-without-workspace.input'; @@ -12,26 +14,32 @@ import { PipelineProgressUncheckedCreateNestedManyWithoutWorkspaceInput } from ' export class WorkspaceUncheckedCreateWithoutCommentThreadsInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + displayName!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + logo?: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - domainName!: string; - - @Field(() => String, {nullable:false}) - displayName!: string; - - @Field(() => String, {nullable:true}) - logo?: string; - @Field(() => WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput, {nullable:true}) workspaceMember?: WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput; diff --git a/server/src/core/@generated/workspace/workspace-unchecked-create-without-comments.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-create-without-comments.input.ts index b439af5851c..9c395cad99e 100644 --- a/server/src/core/@generated/workspace/workspace-unchecked-create-without-comments.input.ts +++ b/server/src/core/@generated/workspace/workspace-unchecked-create-without-comments.input.ts @@ -1,5 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; import { WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput } from '../workspace-member/workspace-member-unchecked-create-nested-many-without-workspace.input'; import { CompanyUncheckedCreateNestedManyWithoutWorkspaceInput } from '../company/company-unchecked-create-nested-many-without-workspace.input'; import { PersonUncheckedCreateNestedManyWithoutWorkspaceInput } from '../person/person-unchecked-create-nested-many-without-workspace.input'; @@ -12,26 +14,32 @@ import { PipelineProgressUncheckedCreateNestedManyWithoutWorkspaceInput } from ' export class WorkspaceUncheckedCreateWithoutCommentsInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + displayName!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + logo?: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - domainName!: string; - - @Field(() => String, {nullable:false}) - displayName!: string; - - @Field(() => String, {nullable:true}) - logo?: string; - @Field(() => WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput, {nullable:true}) workspaceMember?: WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput; diff --git a/server/src/core/@generated/workspace/workspace-unchecked-create-without-companies.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-create-without-companies.input.ts index c4d862526ae..c0837717e56 100644 --- a/server/src/core/@generated/workspace/workspace-unchecked-create-without-companies.input.ts +++ b/server/src/core/@generated/workspace/workspace-unchecked-create-without-companies.input.ts @@ -1,5 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; import { WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput } from '../workspace-member/workspace-member-unchecked-create-nested-many-without-workspace.input'; import { PersonUncheckedCreateNestedManyWithoutWorkspaceInput } from '../person/person-unchecked-create-nested-many-without-workspace.input'; import { CommentThreadUncheckedCreateNestedManyWithoutWorkspaceInput } from '../comment-thread/comment-thread-unchecked-create-nested-many-without-workspace.input'; @@ -12,26 +14,32 @@ import { PipelineProgressUncheckedCreateNestedManyWithoutWorkspaceInput } from ' export class WorkspaceUncheckedCreateWithoutCompaniesInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + displayName!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + logo?: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - domainName!: string; - - @Field(() => String, {nullable:false}) - displayName!: string; - - @Field(() => String, {nullable:true}) - logo?: string; - @Field(() => WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput, {nullable:true}) workspaceMember?: WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput; diff --git a/server/src/core/@generated/workspace/workspace-unchecked-create-without-people.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-create-without-people.input.ts index 99a86123271..6685a812f37 100644 --- a/server/src/core/@generated/workspace/workspace-unchecked-create-without-people.input.ts +++ b/server/src/core/@generated/workspace/workspace-unchecked-create-without-people.input.ts @@ -1,5 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; import { WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput } from '../workspace-member/workspace-member-unchecked-create-nested-many-without-workspace.input'; import { CompanyUncheckedCreateNestedManyWithoutWorkspaceInput } from '../company/company-unchecked-create-nested-many-without-workspace.input'; import { CommentThreadUncheckedCreateNestedManyWithoutWorkspaceInput } from '../comment-thread/comment-thread-unchecked-create-nested-many-without-workspace.input'; @@ -12,26 +14,32 @@ import { PipelineProgressUncheckedCreateNestedManyWithoutWorkspaceInput } from ' export class WorkspaceUncheckedCreateWithoutPeopleInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + displayName!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + logo?: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - domainName!: string; - - @Field(() => String, {nullable:false}) - displayName!: string; - - @Field(() => String, {nullable:true}) - logo?: string; - @Field(() => WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput, {nullable:true}) workspaceMember?: WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput; diff --git a/server/src/core/@generated/workspace/workspace-unchecked-create-without-pipeline-progresses.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-create-without-pipeline-progresses.input.ts index 671996d890a..50f851ed785 100644 --- a/server/src/core/@generated/workspace/workspace-unchecked-create-without-pipeline-progresses.input.ts +++ b/server/src/core/@generated/workspace/workspace-unchecked-create-without-pipeline-progresses.input.ts @@ -1,5 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; import { WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput } from '../workspace-member/workspace-member-unchecked-create-nested-many-without-workspace.input'; import { CompanyUncheckedCreateNestedManyWithoutWorkspaceInput } from '../company/company-unchecked-create-nested-many-without-workspace.input'; import { PersonUncheckedCreateNestedManyWithoutWorkspaceInput } from '../person/person-unchecked-create-nested-many-without-workspace.input'; @@ -12,26 +14,32 @@ import { PipelineStageUncheckedCreateNestedManyWithoutWorkspaceInput } from '../ export class WorkspaceUncheckedCreateWithoutPipelineProgressesInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + displayName!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + logo?: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - domainName!: string; - - @Field(() => String, {nullable:false}) - displayName!: string; - - @Field(() => String, {nullable:true}) - logo?: string; - @Field(() => WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput, {nullable:true}) workspaceMember?: WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput; diff --git a/server/src/core/@generated/workspace/workspace-unchecked-create-without-pipeline-stages.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-create-without-pipeline-stages.input.ts index e9b6f50e114..a47af91008c 100644 --- a/server/src/core/@generated/workspace/workspace-unchecked-create-without-pipeline-stages.input.ts +++ b/server/src/core/@generated/workspace/workspace-unchecked-create-without-pipeline-stages.input.ts @@ -1,5 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; import { WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput } from '../workspace-member/workspace-member-unchecked-create-nested-many-without-workspace.input'; import { CompanyUncheckedCreateNestedManyWithoutWorkspaceInput } from '../company/company-unchecked-create-nested-many-without-workspace.input'; import { PersonUncheckedCreateNestedManyWithoutWorkspaceInput } from '../person/person-unchecked-create-nested-many-without-workspace.input'; @@ -12,26 +14,32 @@ import { PipelineProgressUncheckedCreateNestedManyWithoutWorkspaceInput } from ' export class WorkspaceUncheckedCreateWithoutPipelineStagesInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + displayName!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + logo?: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - domainName!: string; - - @Field(() => String, {nullable:false}) - displayName!: string; - - @Field(() => String, {nullable:true}) - logo?: string; - @Field(() => WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput, {nullable:true}) workspaceMember?: WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput; diff --git a/server/src/core/@generated/workspace/workspace-unchecked-create-without-pipelines.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-create-without-pipelines.input.ts index ccc32fed125..fd910fc7903 100644 --- a/server/src/core/@generated/workspace/workspace-unchecked-create-without-pipelines.input.ts +++ b/server/src/core/@generated/workspace/workspace-unchecked-create-without-pipelines.input.ts @@ -1,5 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; import { WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput } from '../workspace-member/workspace-member-unchecked-create-nested-many-without-workspace.input'; import { CompanyUncheckedCreateNestedManyWithoutWorkspaceInput } from '../company/company-unchecked-create-nested-many-without-workspace.input'; import { PersonUncheckedCreateNestedManyWithoutWorkspaceInput } from '../person/person-unchecked-create-nested-many-without-workspace.input'; @@ -12,26 +14,32 @@ import { PipelineProgressUncheckedCreateNestedManyWithoutWorkspaceInput } from ' export class WorkspaceUncheckedCreateWithoutPipelinesInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + displayName!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + logo?: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - domainName!: string; - - @Field(() => String, {nullable:false}) - displayName!: string; - - @Field(() => String, {nullable:true}) - logo?: string; - @Field(() => WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput, {nullable:true}) workspaceMember?: WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput; diff --git a/server/src/core/@generated/workspace/workspace-unchecked-create-without-workspace-member.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-create-without-workspace-member.input.ts index e77f3f6bc09..be6c04d3464 100644 --- a/server/src/core/@generated/workspace/workspace-unchecked-create-without-workspace-member.input.ts +++ b/server/src/core/@generated/workspace/workspace-unchecked-create-without-workspace-member.input.ts @@ -1,5 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; import { CompanyUncheckedCreateNestedManyWithoutWorkspaceInput } from '../company/company-unchecked-create-nested-many-without-workspace.input'; import { PersonUncheckedCreateNestedManyWithoutWorkspaceInput } from '../person/person-unchecked-create-nested-many-without-workspace.input'; import { CommentThreadUncheckedCreateNestedManyWithoutWorkspaceInput } from '../comment-thread/comment-thread-unchecked-create-nested-many-without-workspace.input'; @@ -12,26 +14,32 @@ import { PipelineProgressUncheckedCreateNestedManyWithoutWorkspaceInput } from ' export class WorkspaceUncheckedCreateWithoutWorkspaceMemberInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + displayName!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + logo?: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - domainName!: string; - - @Field(() => String, {nullable:false}) - displayName!: string; - - @Field(() => String, {nullable:true}) - logo?: string; - @Field(() => CompanyUncheckedCreateNestedManyWithoutWorkspaceInput, {nullable:true}) companies?: CompanyUncheckedCreateNestedManyWithoutWorkspaceInput; diff --git a/server/src/core/@generated/workspace/workspace-unchecked-create.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-create.input.ts index 76f41078a2d..193bd4daa9d 100644 --- a/server/src/core/@generated/workspace/workspace-unchecked-create.input.ts +++ b/server/src/core/@generated/workspace/workspace-unchecked-create.input.ts @@ -1,5 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; import { WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput } from '../workspace-member/workspace-member-unchecked-create-nested-many-without-workspace.input'; import { CompanyUncheckedCreateNestedManyWithoutWorkspaceInput } from '../company/company-unchecked-create-nested-many-without-workspace.input'; import { PersonUncheckedCreateNestedManyWithoutWorkspaceInput } from '../person/person-unchecked-create-nested-many-without-workspace.input'; @@ -13,26 +15,32 @@ import { PipelineProgressUncheckedCreateNestedManyWithoutWorkspaceInput } from ' export class WorkspaceUncheckedCreateInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + displayName!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + logo?: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => String, {nullable:false}) - domainName!: string; - - @Field(() => String, {nullable:false}) - displayName!: string; - - @Field(() => String, {nullable:true}) - logo?: string; - @Field(() => WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput, {nullable:true}) workspaceMember?: WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput; diff --git a/server/src/core/@generated/workspace/workspace-unchecked-update-many.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-update-many.input.ts index 719f49ef423..3eff5eeb0a3 100644 --- a/server/src/core/@generated/workspace/workspace-unchecked-update-many.input.ts +++ b/server/src/core/@generated/workspace/workspace-unchecked-update-many.input.ts @@ -1,9 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class WorkspaceUncheckedUpdateManyInput { @@ -11,15 +12,6 @@ export class WorkspaceUncheckedUpdateManyInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) domainName?: StringFieldUpdateOperationsInput; @@ -28,4 +20,13 @@ export class WorkspaceUncheckedUpdateManyInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) logo?: NullableStringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/workspace/workspace-unchecked-update-without-comment-threads.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-update-without-comment-threads.input.ts index 5253f984e6f..c3b8b3eb595 100644 --- a/server/src/core/@generated/workspace/workspace-unchecked-update-without-comment-threads.input.ts +++ b/server/src/core/@generated/workspace/workspace-unchecked-update-without-comment-threads.input.ts @@ -1,9 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput } from '../workspace-member/workspace-member-unchecked-update-many-without-workspace-nested.input'; import { CompanyUncheckedUpdateManyWithoutWorkspaceNestedInput } from '../company/company-unchecked-update-many-without-workspace-nested.input'; import { PersonUncheckedUpdateManyWithoutWorkspaceNestedInput } from '../person/person-unchecked-update-many-without-workspace-nested.input'; @@ -18,15 +19,6 @@ export class WorkspaceUncheckedUpdateWithoutCommentThreadsInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) domainName?: StringFieldUpdateOperationsInput; @@ -36,6 +28,15 @@ export class WorkspaceUncheckedUpdateWithoutCommentThreadsInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) logo?: NullableStringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput, {nullable:true}) workspaceMember?: WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput; diff --git a/server/src/core/@generated/workspace/workspace-unchecked-update-without-comments.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-update-without-comments.input.ts index fd6c3d08103..5a9a01fbe4f 100644 --- a/server/src/core/@generated/workspace/workspace-unchecked-update-without-comments.input.ts +++ b/server/src/core/@generated/workspace/workspace-unchecked-update-without-comments.input.ts @@ -1,9 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput } from '../workspace-member/workspace-member-unchecked-update-many-without-workspace-nested.input'; import { CompanyUncheckedUpdateManyWithoutWorkspaceNestedInput } from '../company/company-unchecked-update-many-without-workspace-nested.input'; import { PersonUncheckedUpdateManyWithoutWorkspaceNestedInput } from '../person/person-unchecked-update-many-without-workspace-nested.input'; @@ -18,15 +19,6 @@ export class WorkspaceUncheckedUpdateWithoutCommentsInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) domainName?: StringFieldUpdateOperationsInput; @@ -36,6 +28,15 @@ export class WorkspaceUncheckedUpdateWithoutCommentsInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) logo?: NullableStringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput, {nullable:true}) workspaceMember?: WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput; diff --git a/server/src/core/@generated/workspace/workspace-unchecked-update-without-companies.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-update-without-companies.input.ts index b3a7f7cb217..3f288a1d8e8 100644 --- a/server/src/core/@generated/workspace/workspace-unchecked-update-without-companies.input.ts +++ b/server/src/core/@generated/workspace/workspace-unchecked-update-without-companies.input.ts @@ -1,9 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput } from '../workspace-member/workspace-member-unchecked-update-many-without-workspace-nested.input'; import { PersonUncheckedUpdateManyWithoutWorkspaceNestedInput } from '../person/person-unchecked-update-many-without-workspace-nested.input'; import { CommentThreadUncheckedUpdateManyWithoutWorkspaceNestedInput } from '../comment-thread/comment-thread-unchecked-update-many-without-workspace-nested.input'; @@ -18,15 +19,6 @@ export class WorkspaceUncheckedUpdateWithoutCompaniesInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) domainName?: StringFieldUpdateOperationsInput; @@ -36,6 +28,15 @@ export class WorkspaceUncheckedUpdateWithoutCompaniesInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) logo?: NullableStringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput, {nullable:true}) workspaceMember?: WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput; diff --git a/server/src/core/@generated/workspace/workspace-unchecked-update-without-people.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-update-without-people.input.ts index 70998e840ef..4e731a4c22f 100644 --- a/server/src/core/@generated/workspace/workspace-unchecked-update-without-people.input.ts +++ b/server/src/core/@generated/workspace/workspace-unchecked-update-without-people.input.ts @@ -1,9 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput } from '../workspace-member/workspace-member-unchecked-update-many-without-workspace-nested.input'; import { CompanyUncheckedUpdateManyWithoutWorkspaceNestedInput } from '../company/company-unchecked-update-many-without-workspace-nested.input'; import { CommentThreadUncheckedUpdateManyWithoutWorkspaceNestedInput } from '../comment-thread/comment-thread-unchecked-update-many-without-workspace-nested.input'; @@ -18,15 +19,6 @@ export class WorkspaceUncheckedUpdateWithoutPeopleInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) domainName?: StringFieldUpdateOperationsInput; @@ -36,6 +28,15 @@ export class WorkspaceUncheckedUpdateWithoutPeopleInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) logo?: NullableStringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput, {nullable:true}) workspaceMember?: WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput; diff --git a/server/src/core/@generated/workspace/workspace-unchecked-update-without-pipeline-progresses.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-update-without-pipeline-progresses.input.ts index 9c3c736aec0..2dbc07b8ad6 100644 --- a/server/src/core/@generated/workspace/workspace-unchecked-update-without-pipeline-progresses.input.ts +++ b/server/src/core/@generated/workspace/workspace-unchecked-update-without-pipeline-progresses.input.ts @@ -1,9 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput } from '../workspace-member/workspace-member-unchecked-update-many-without-workspace-nested.input'; import { CompanyUncheckedUpdateManyWithoutWorkspaceNestedInput } from '../company/company-unchecked-update-many-without-workspace-nested.input'; import { PersonUncheckedUpdateManyWithoutWorkspaceNestedInput } from '../person/person-unchecked-update-many-without-workspace-nested.input'; @@ -18,15 +19,6 @@ export class WorkspaceUncheckedUpdateWithoutPipelineProgressesInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) domainName?: StringFieldUpdateOperationsInput; @@ -36,6 +28,15 @@ export class WorkspaceUncheckedUpdateWithoutPipelineProgressesInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) logo?: NullableStringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput, {nullable:true}) workspaceMember?: WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput; diff --git a/server/src/core/@generated/workspace/workspace-unchecked-update-without-pipeline-stages.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-update-without-pipeline-stages.input.ts index 2113da908f8..9b3239c35dc 100644 --- a/server/src/core/@generated/workspace/workspace-unchecked-update-without-pipeline-stages.input.ts +++ b/server/src/core/@generated/workspace/workspace-unchecked-update-without-pipeline-stages.input.ts @@ -1,9 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput } from '../workspace-member/workspace-member-unchecked-update-many-without-workspace-nested.input'; import { CompanyUncheckedUpdateManyWithoutWorkspaceNestedInput } from '../company/company-unchecked-update-many-without-workspace-nested.input'; import { PersonUncheckedUpdateManyWithoutWorkspaceNestedInput } from '../person/person-unchecked-update-many-without-workspace-nested.input'; @@ -18,15 +19,6 @@ export class WorkspaceUncheckedUpdateWithoutPipelineStagesInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) domainName?: StringFieldUpdateOperationsInput; @@ -36,6 +28,15 @@ export class WorkspaceUncheckedUpdateWithoutPipelineStagesInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) logo?: NullableStringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput, {nullable:true}) workspaceMember?: WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput; diff --git a/server/src/core/@generated/workspace/workspace-unchecked-update-without-pipelines.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-update-without-pipelines.input.ts index 44fcb7dbe81..6903cc4f189 100644 --- a/server/src/core/@generated/workspace/workspace-unchecked-update-without-pipelines.input.ts +++ b/server/src/core/@generated/workspace/workspace-unchecked-update-without-pipelines.input.ts @@ -1,9 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput } from '../workspace-member/workspace-member-unchecked-update-many-without-workspace-nested.input'; import { CompanyUncheckedUpdateManyWithoutWorkspaceNestedInput } from '../company/company-unchecked-update-many-without-workspace-nested.input'; import { PersonUncheckedUpdateManyWithoutWorkspaceNestedInput } from '../person/person-unchecked-update-many-without-workspace-nested.input'; @@ -18,15 +19,6 @@ export class WorkspaceUncheckedUpdateWithoutPipelinesInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) domainName?: StringFieldUpdateOperationsInput; @@ -36,6 +28,15 @@ export class WorkspaceUncheckedUpdateWithoutPipelinesInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) logo?: NullableStringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput, {nullable:true}) workspaceMember?: WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput; diff --git a/server/src/core/@generated/workspace/workspace-unchecked-update-without-workspace-member.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-update-without-workspace-member.input.ts index 09d75cff247..56699a7ff9c 100644 --- a/server/src/core/@generated/workspace/workspace-unchecked-update-without-workspace-member.input.ts +++ b/server/src/core/@generated/workspace/workspace-unchecked-update-without-workspace-member.input.ts @@ -1,9 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { CompanyUncheckedUpdateManyWithoutWorkspaceNestedInput } from '../company/company-unchecked-update-many-without-workspace-nested.input'; import { PersonUncheckedUpdateManyWithoutWorkspaceNestedInput } from '../person/person-unchecked-update-many-without-workspace-nested.input'; import { CommentThreadUncheckedUpdateManyWithoutWorkspaceNestedInput } from '../comment-thread/comment-thread-unchecked-update-many-without-workspace-nested.input'; @@ -18,15 +19,6 @@ export class WorkspaceUncheckedUpdateWithoutWorkspaceMemberInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) domainName?: StringFieldUpdateOperationsInput; @@ -36,6 +28,15 @@ export class WorkspaceUncheckedUpdateWithoutWorkspaceMemberInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) logo?: NullableStringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => CompanyUncheckedUpdateManyWithoutWorkspaceNestedInput, {nullable:true}) companies?: CompanyUncheckedUpdateManyWithoutWorkspaceNestedInput; diff --git a/server/src/core/@generated/workspace/workspace-unchecked-update.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-update.input.ts index 0324c5b6214..7ef4bc27125 100644 --- a/server/src/core/@generated/workspace/workspace-unchecked-update.input.ts +++ b/server/src/core/@generated/workspace/workspace-unchecked-update.input.ts @@ -1,9 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput } from '../workspace-member/workspace-member-unchecked-update-many-without-workspace-nested.input'; import { CompanyUncheckedUpdateManyWithoutWorkspaceNestedInput } from '../company/company-unchecked-update-many-without-workspace-nested.input'; import { PersonUncheckedUpdateManyWithoutWorkspaceNestedInput } from '../person/person-unchecked-update-many-without-workspace-nested.input'; @@ -19,15 +20,6 @@ export class WorkspaceUncheckedUpdateInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) domainName?: StringFieldUpdateOperationsInput; @@ -37,6 +29,15 @@ export class WorkspaceUncheckedUpdateInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) logo?: NullableStringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput, {nullable:true}) workspaceMember?: WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput; diff --git a/server/src/core/@generated/workspace/workspace-update-many-mutation.input.ts b/server/src/core/@generated/workspace/workspace-update-many-mutation.input.ts index 7c1ffac890a..e1ebe3656ad 100644 --- a/server/src/core/@generated/workspace/workspace-update-many-mutation.input.ts +++ b/server/src/core/@generated/workspace/workspace-update-many-mutation.input.ts @@ -1,9 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class WorkspaceUpdateManyMutationInput { @@ -11,15 +12,6 @@ export class WorkspaceUpdateManyMutationInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) domainName?: StringFieldUpdateOperationsInput; @@ -28,4 +20,13 @@ export class WorkspaceUpdateManyMutationInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) logo?: NullableStringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/workspace/workspace-update-without-comment-threads.input.ts b/server/src/core/@generated/workspace/workspace-update-without-comment-threads.input.ts index 02085b4ceac..8786d58546e 100644 --- a/server/src/core/@generated/workspace/workspace-update-without-comment-threads.input.ts +++ b/server/src/core/@generated/workspace/workspace-update-without-comment-threads.input.ts @@ -1,9 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput } from '../workspace-member/workspace-member-update-many-without-workspace-nested.input'; import { CompanyUpdateManyWithoutWorkspaceNestedInput } from '../company/company-update-many-without-workspace-nested.input'; import { PersonUpdateManyWithoutWorkspaceNestedInput } from '../person/person-update-many-without-workspace-nested.input'; @@ -18,15 +19,6 @@ export class WorkspaceUpdateWithoutCommentThreadsInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) domainName?: StringFieldUpdateOperationsInput; @@ -36,6 +28,15 @@ export class WorkspaceUpdateWithoutCommentThreadsInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) logo?: NullableStringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput, {nullable:true}) workspaceMember?: WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput; diff --git a/server/src/core/@generated/workspace/workspace-update-without-comments.input.ts b/server/src/core/@generated/workspace/workspace-update-without-comments.input.ts index ed9127777a4..705166c9973 100644 --- a/server/src/core/@generated/workspace/workspace-update-without-comments.input.ts +++ b/server/src/core/@generated/workspace/workspace-update-without-comments.input.ts @@ -1,9 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput } from '../workspace-member/workspace-member-update-many-without-workspace-nested.input'; import { CompanyUpdateManyWithoutWorkspaceNestedInput } from '../company/company-update-many-without-workspace-nested.input'; import { PersonUpdateManyWithoutWorkspaceNestedInput } from '../person/person-update-many-without-workspace-nested.input'; @@ -18,15 +19,6 @@ export class WorkspaceUpdateWithoutCommentsInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) domainName?: StringFieldUpdateOperationsInput; @@ -36,6 +28,15 @@ export class WorkspaceUpdateWithoutCommentsInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) logo?: NullableStringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput, {nullable:true}) workspaceMember?: WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput; diff --git a/server/src/core/@generated/workspace/workspace-update-without-companies.input.ts b/server/src/core/@generated/workspace/workspace-update-without-companies.input.ts index f343edd1f0b..ed610ff6b0d 100644 --- a/server/src/core/@generated/workspace/workspace-update-without-companies.input.ts +++ b/server/src/core/@generated/workspace/workspace-update-without-companies.input.ts @@ -1,9 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput } from '../workspace-member/workspace-member-update-many-without-workspace-nested.input'; import { PersonUpdateManyWithoutWorkspaceNestedInput } from '../person/person-update-many-without-workspace-nested.input'; import { CommentThreadUpdateManyWithoutWorkspaceNestedInput } from '../comment-thread/comment-thread-update-many-without-workspace-nested.input'; @@ -18,15 +19,6 @@ export class WorkspaceUpdateWithoutCompaniesInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) domainName?: StringFieldUpdateOperationsInput; @@ -36,6 +28,15 @@ export class WorkspaceUpdateWithoutCompaniesInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) logo?: NullableStringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput, {nullable:true}) workspaceMember?: WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput; diff --git a/server/src/core/@generated/workspace/workspace-update-without-people.input.ts b/server/src/core/@generated/workspace/workspace-update-without-people.input.ts index 290e236c63b..7862c070435 100644 --- a/server/src/core/@generated/workspace/workspace-update-without-people.input.ts +++ b/server/src/core/@generated/workspace/workspace-update-without-people.input.ts @@ -1,9 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput } from '../workspace-member/workspace-member-update-many-without-workspace-nested.input'; import { CompanyUpdateManyWithoutWorkspaceNestedInput } from '../company/company-update-many-without-workspace-nested.input'; import { CommentThreadUpdateManyWithoutWorkspaceNestedInput } from '../comment-thread/comment-thread-update-many-without-workspace-nested.input'; @@ -18,15 +19,6 @@ export class WorkspaceUpdateWithoutPeopleInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) domainName?: StringFieldUpdateOperationsInput; @@ -36,6 +28,15 @@ export class WorkspaceUpdateWithoutPeopleInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) logo?: NullableStringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput, {nullable:true}) workspaceMember?: WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput; diff --git a/server/src/core/@generated/workspace/workspace-update-without-pipeline-progresses.input.ts b/server/src/core/@generated/workspace/workspace-update-without-pipeline-progresses.input.ts index e3cf3893693..4e9cdd407c8 100644 --- a/server/src/core/@generated/workspace/workspace-update-without-pipeline-progresses.input.ts +++ b/server/src/core/@generated/workspace/workspace-update-without-pipeline-progresses.input.ts @@ -1,9 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput } from '../workspace-member/workspace-member-update-many-without-workspace-nested.input'; import { CompanyUpdateManyWithoutWorkspaceNestedInput } from '../company/company-update-many-without-workspace-nested.input'; import { PersonUpdateManyWithoutWorkspaceNestedInput } from '../person/person-update-many-without-workspace-nested.input'; @@ -18,15 +19,6 @@ export class WorkspaceUpdateWithoutPipelineProgressesInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) domainName?: StringFieldUpdateOperationsInput; @@ -36,6 +28,15 @@ export class WorkspaceUpdateWithoutPipelineProgressesInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) logo?: NullableStringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput, {nullable:true}) workspaceMember?: WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput; diff --git a/server/src/core/@generated/workspace/workspace-update-without-pipeline-stages.input.ts b/server/src/core/@generated/workspace/workspace-update-without-pipeline-stages.input.ts index 29823c4c044..86a6d79eb82 100644 --- a/server/src/core/@generated/workspace/workspace-update-without-pipeline-stages.input.ts +++ b/server/src/core/@generated/workspace/workspace-update-without-pipeline-stages.input.ts @@ -1,9 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput } from '../workspace-member/workspace-member-update-many-without-workspace-nested.input'; import { CompanyUpdateManyWithoutWorkspaceNestedInput } from '../company/company-update-many-without-workspace-nested.input'; import { PersonUpdateManyWithoutWorkspaceNestedInput } from '../person/person-update-many-without-workspace-nested.input'; @@ -18,15 +19,6 @@ export class WorkspaceUpdateWithoutPipelineStagesInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) domainName?: StringFieldUpdateOperationsInput; @@ -36,6 +28,15 @@ export class WorkspaceUpdateWithoutPipelineStagesInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) logo?: NullableStringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput, {nullable:true}) workspaceMember?: WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput; diff --git a/server/src/core/@generated/workspace/workspace-update-without-pipelines.input.ts b/server/src/core/@generated/workspace/workspace-update-without-pipelines.input.ts index a7f84ee6daa..d1ffa3512e6 100644 --- a/server/src/core/@generated/workspace/workspace-update-without-pipelines.input.ts +++ b/server/src/core/@generated/workspace/workspace-update-without-pipelines.input.ts @@ -1,9 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput } from '../workspace-member/workspace-member-update-many-without-workspace-nested.input'; import { CompanyUpdateManyWithoutWorkspaceNestedInput } from '../company/company-update-many-without-workspace-nested.input'; import { PersonUpdateManyWithoutWorkspaceNestedInput } from '../person/person-update-many-without-workspace-nested.input'; @@ -18,15 +19,6 @@ export class WorkspaceUpdateWithoutPipelinesInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) domainName?: StringFieldUpdateOperationsInput; @@ -36,6 +28,15 @@ export class WorkspaceUpdateWithoutPipelinesInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) logo?: NullableStringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput, {nullable:true}) workspaceMember?: WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput; diff --git a/server/src/core/@generated/workspace/workspace-update-without-workspace-member.input.ts b/server/src/core/@generated/workspace/workspace-update-without-workspace-member.input.ts index abd2cb2445e..1b50891b0b6 100644 --- a/server/src/core/@generated/workspace/workspace-update-without-workspace-member.input.ts +++ b/server/src/core/@generated/workspace/workspace-update-without-workspace-member.input.ts @@ -1,9 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { CompanyUpdateManyWithoutWorkspaceNestedInput } from '../company/company-update-many-without-workspace-nested.input'; import { PersonUpdateManyWithoutWorkspaceNestedInput } from '../person/person-update-many-without-workspace-nested.input'; import { CommentThreadUpdateManyWithoutWorkspaceNestedInput } from '../comment-thread/comment-thread-update-many-without-workspace-nested.input'; @@ -18,15 +19,6 @@ export class WorkspaceUpdateWithoutWorkspaceMemberInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) domainName?: StringFieldUpdateOperationsInput; @@ -36,6 +28,15 @@ export class WorkspaceUpdateWithoutWorkspaceMemberInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) logo?: NullableStringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => CompanyUpdateManyWithoutWorkspaceNestedInput, {nullable:true}) companies?: CompanyUpdateManyWithoutWorkspaceNestedInput; diff --git a/server/src/core/@generated/workspace/workspace-update.input.ts b/server/src/core/@generated/workspace/workspace-update.input.ts index 3c0966d3346..c69952539a3 100644 --- a/server/src/core/@generated/workspace/workspace-update.input.ts +++ b/server/src/core/@generated/workspace/workspace-update.input.ts @@ -1,9 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput } from '../workspace-member/workspace-member-update-many-without-workspace-nested.input'; import { CompanyUpdateManyWithoutWorkspaceNestedInput } from '../company/company-update-many-without-workspace-nested.input'; import { PersonUpdateManyWithoutWorkspaceNestedInput } from '../person/person-update-many-without-workspace-nested.input'; @@ -19,15 +20,6 @@ export class WorkspaceUpdateInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) domainName?: StringFieldUpdateOperationsInput; @@ -37,6 +29,15 @@ export class WorkspaceUpdateInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) logo?: NullableStringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput, {nullable:true}) workspaceMember?: WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput; diff --git a/server/src/core/@generated/workspace/workspace-where-unique.input.ts b/server/src/core/@generated/workspace/workspace-where-unique.input.ts index 85b038a54fe..1cc87e8a4b4 100644 --- a/server/src/core/@generated/workspace/workspace-where-unique.input.ts +++ b/server/src/core/@generated/workspace/workspace-where-unique.input.ts @@ -1,12 +1,16 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; @InputType() export class WorkspaceWhereUniqueInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; @Field(() => String, {nullable:true}) + @Validator.IsString() domainName?: string; } diff --git a/server/src/core/@generated/workspace/workspace-where.input.ts b/server/src/core/@generated/workspace/workspace-where.input.ts index 7e5eb5e0d51..24c7da0d7ff 100644 --- a/server/src/core/@generated/workspace/workspace-where.input.ts +++ b/server/src/core/@generated/workspace/workspace-where.input.ts @@ -1,9 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFilter } from '../prisma/string-filter.input'; -import { DateTimeFilter } from '../prisma/date-time-filter.input'; -import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; import { StringNullableFilter } from '../prisma/string-nullable-filter.input'; +import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFilter } from '../prisma/date-time-filter.input'; import { WorkspaceMemberListRelationFilter } from '../workspace-member/workspace-member-list-relation-filter.input'; import { CompanyListRelationFilter } from '../company/company-list-relation-filter.input'; import { PersonListRelationFilter } from '../person/person-list-relation-filter.input'; @@ -28,15 +29,6 @@ export class WorkspaceWhereInput { @Field(() => StringFilter, {nullable:true}) id?: StringFilter; - @Field(() => DateTimeFilter, {nullable:true}) - createdAt?: DateTimeFilter; - - @Field(() => DateTimeFilter, {nullable:true}) - updatedAt?: DateTimeFilter; - - @Field(() => DateTimeNullableFilter, {nullable:true}) - deletedAt?: DateTimeNullableFilter; - @Field(() => StringFilter, {nullable:true}) domainName?: StringFilter; @@ -46,6 +38,15 @@ export class WorkspaceWhereInput { @Field(() => StringNullableFilter, {nullable:true}) logo?: StringNullableFilter; + @HideField() + deletedAt?: DateTimeNullableFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + createdAt?: DateTimeFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + updatedAt?: DateTimeFilter; + @Field(() => WorkspaceMemberListRelationFilter, {nullable:true}) workspaceMember?: WorkspaceMemberListRelationFilter; diff --git a/server/src/core/@generated/workspace/workspace.model.ts b/server/src/core/@generated/workspace/workspace.model.ts index b502963e23d..b709c0cfb86 100644 --- a/server/src/core/@generated/workspace/workspace.model.ts +++ b/server/src/core/@generated/workspace/workspace.model.ts @@ -1,6 +1,7 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; import { ID } from '@nestjs/graphql'; +import { HideField } from '@nestjs/graphql'; import { WorkspaceMember } from '../workspace-member/workspace-member.model'; import { Company } from '../company/company.model'; import { Person } from '../person/person.model'; @@ -10,7 +11,6 @@ import { Pipeline } from '../pipeline/pipeline.model'; import { PipelineStage } from '../pipeline-stage/pipeline-stage.model'; import { PipelineProgress } from '../pipeline-progress/pipeline-progress.model'; import { WorkspaceCount } from './workspace-count.output'; -import { HideField } from '@nestjs/graphql'; @ObjectType({}) export class Workspace { @@ -18,15 +18,6 @@ export class Workspace { @Field(() => ID, {nullable:false}) id!: string; - @Field(() => Date, {nullable:false}) - createdAt!: Date; - - @Field(() => Date, {nullable:false}) - updatedAt!: Date; - - @Field(() => Date, {nullable:true}) - deletedAt!: Date | null; - @Field(() => String, {nullable:false}) domainName!: string; @@ -36,6 +27,15 @@ export class Workspace { @Field(() => String, {nullable:true}) logo!: string | null; + @HideField() + deletedAt!: Date | null; + + @Field(() => Date, {nullable:false}) + createdAt!: Date; + + @Field(() => Date, {nullable:false}) + updatedAt!: Date; + @Field(() => [WorkspaceMember], {nullable:true}) workspaceMember?: Array; diff --git a/server/src/database/schema.prisma b/server/src/database/schema.prisma index 4a2005af403..e3002cfb805 100644 --- a/server/src/database/schema.prisma +++ b/server/src/database/schema.prisma @@ -1,5 +1,5 @@ generator client { - provider = "prisma-client-js" + provider = "prisma-client-js" engineType = "binary" } @@ -9,125 +9,159 @@ datasource db { } generator nestgraphql { - provider = "node node_modules/prisma-nestjs-graphql" - output = "../../src/core/@generated" + provider = "node node_modules/prisma-nestjs-graphql" + output = "../../src/core/@generated" - // CommentThread create: Only Allow targets createMany and comments createMany - decorate_createCommentThreadTargets_type = "*CommentThreadTargetCreateNestedManyWithoutCommentThreadInput" - decorate_createCommentThreadTargets_field = "!(createMany)" - decorate_createCommentThreadTargets_name = "HideField" - decorate_createCommentThreadTargets_from = "@nestjs/graphql" - decorate_createCommentThreadTargets_arguments = "[]" + // field validator + fields_Validator_input = true + fields_Validator_output = true + fields_Validator_model = true + fields_Validator_from = "class-validator" - decorate_createCommentThreadComments_type = "*CommentCreateNestedManyWithoutCommentThreadInput" - decorate_createCommentThreadComments_field = "!(createMany)" - decorate_createCommentThreadComments_name = "HideField" - decorate_createCommentThreadComments_from = "@nestjs/graphql" - decorate_createCommentThreadComments_arguments = "[]" + // CommentThread create: Only Allow targets createMany and comments createMany + decorate_createCommentThreadTargets_type = "*CommentThreadTargetCreateNestedManyWithoutCommentThreadInput" + decorate_createCommentThreadTargets_field = "!(createMany)" + decorate_createCommentThreadTargets_name = "HideField" + decorate_createCommentThreadTargets_from = "@nestjs/graphql" + decorate_createCommentThreadTargets_arguments = "[]" - // Comment create: Only Allow author connect and commentThread connect - decorate_createCommentUser_type = "*UserCreateNestedOneWithoutCommentsInput" - decorate_createCommentUser_field = "!(connect)" - decorate_createCommentUser_name = "HideField" - decorate_createCommentUser_from = "@nestjs/graphql" - decorate_createCommentUser_arguments = "[]" + decorate_createCommentThreadComments_type = "*CommentCreateNestedManyWithoutCommentThreadInput" + decorate_createCommentThreadComments_field = "!(createMany)" + decorate_createCommentThreadComments_name = "HideField" + decorate_createCommentThreadComments_from = "@nestjs/graphql" + decorate_createCommentThreadComments_arguments = "[]" - decorate_createCommentCommentThread_type = "*CommentThreadCreateNestedOneWithoutCommentsInput" - decorate_createCommentCommentThread_field = "!(connect)" - decorate_createCommentCommentThread_name = "HideField" - decorate_createCommentCommentThread_from = "@nestjs/graphql" - decorate_createCommentCommentThread_arguments = "[]" + // Comment create: Only Allow author connect and commentThread connect + decorate_createCommentUser_type = "*UserCreateNestedOneWithoutCommentsInput" + decorate_createCommentUser_field = "!(connect)" + decorate_createCommentUser_name = "HideField" + decorate_createCommentUser_from = "@nestjs/graphql" + decorate_createCommentUser_arguments = "[]" - // Person create: Only Allow company connect - decorate_createPersonCompany_type = "*CompanyCreateNestedOneWithoutPeopleInput" - decorate_createPersonCompany_field = "!(connect)" - decorate_createPersonCompany_name = "HideField" - decorate_createPersonCompany_from = "@nestjs/graphql" - decorate_createPersonCompany_arguments = "[]" + decorate_createCommentCommentThread_type = "*CommentThreadCreateNestedOneWithoutCommentsInput" + decorate_createCommentCommentThread_field = "!(connect)" + decorate_createCommentCommentThread_name = "HideField" + decorate_createCommentCommentThread_from = "@nestjs/graphql" + decorate_createCommentCommentThread_arguments = "[]" - // Person update: Only Allow company connect - decorate_updatePersonCompany_type = "*CompanyUpdateOneWithoutPeopleNestedInput" - decorate_updatePersonCompany_field = "!(connect)" - decorate_updatePersonCompany_name = "HideField" - decorate_updatePersonCompany_from = "@nestjs/graphql" - decorate_updatePersonCompany_arguments = "[]" + // Person create: Only Allow company connect + decorate_createPersonCompany_type = "*CompanyCreateNestedOneWithoutPeopleInput" + decorate_createPersonCompany_field = "!(connect)" + decorate_createPersonCompany_name = "HideField" + decorate_createPersonCompany_from = "@nestjs/graphql" + decorate_createPersonCompany_arguments = "[]" - // Company create: Only Allow people and accountOwner connect - decorate_createCompanyUser_type = "*UserCreateNestedOneWithoutCompaniesInput" - decorate_createCompanyUser_field = "!(connect)" - decorate_createCompanyUser_name = "HideField" - decorate_createCompanyUser_from = "@nestjs/graphql" - decorate_createCompanyUser_arguments = "[]" + // Person update: Only Allow company connect + decorate_updatePersonCompany_type = "*CompanyUpdateOneWithoutPeopleNestedInput" + decorate_updatePersonCompany_field = "!(connect)" + decorate_updatePersonCompany_name = "HideField" + decorate_updatePersonCompany_from = "@nestjs/graphql" + decorate_updatePersonCompany_arguments = "[]" - decorate_createCompanyPerson_type = "*PersonCreateNestedManyWithoutCompanyInput" - decorate_createCompanyPerson_field = "!(connect)" - decorate_createCompanyPerson_name = "HideField" - decorate_createCompanyPerson_from = "@nestjs/graphql" - decorate_createCompanyPerson_arguments = "[]" + // Company create: Only Allow people and accountOwner connect + decorate_createCompanyUser_type = "*UserCreateNestedOneWithoutCompaniesInput" + decorate_createCompanyUser_field = "!(connect)" + decorate_createCompanyUser_name = "HideField" + decorate_createCompanyUser_from = "@nestjs/graphql" + decorate_createCompanyUser_arguments = "[]" - // Company update: Only Allow action on people and accountOwner - decorate_updateCompanyUser_type = "*UserUpdateOneWithoutCompaniesNestedInput" - decorate_updateCompanyUser_field = "!(connect)" - decorate_updateCompanyUser_name = "HideField" - decorate_updateCompanyUser_from = "@nestjs/graphql" - decorate_updateCompanyUser_arguments = "[]" + decorate_createCompanyPerson_type = "*PersonCreateNestedManyWithoutCompanyInput" + decorate_createCompanyPerson_field = "!(connect)" + decorate_createCompanyPerson_name = "HideField" + decorate_createCompanyPerson_from = "@nestjs/graphql" + decorate_createCompanyPerson_arguments = "[]" - decorate_updateCompanyPerson_type = "*PersonUpdateManyWithoutCompanyNestedInput" - decorate_updateCompanyPerson_field = "!(connect)" - decorate_updateCompanyPerson_name = "HideField" - decorate_updateCompanyPerson_from = "@nestjs/graphql" - decorate_updateCompanyPerson_arguments = "[]" + // Company update: Only Allow action on people and accountOwner + decorate_updateCompanyUser_type = "*UserUpdateOneWithoutCompaniesNestedInput" + decorate_updateCompanyUser_field = "!(connect)" + decorate_updateCompanyUser_name = "HideField" + decorate_updateCompanyUser_from = "@nestjs/graphql" + decorate_updateCompanyUser_arguments = "[]" - // PipelineProgress create: Only Allow pipelineStage and pipeline connect - decorate_createPipelineProgressPipeline_type = "*PipelineCreateNestedOneWithoutPipelineProgressesInput" - decorate_createPipelineProgressPipeline_field = "!(connect)" - decorate_createPipelineProgressPipeline_name = "HideField" - decorate_createPipelineProgressPipeline_from = "@nestjs/graphql" - decorate_createPipelineProgressPipeline_arguments = "[]" + decorate_updateCompanyPerson_type = "*PersonUpdateManyWithoutCompanyNestedInput" + decorate_updateCompanyPerson_field = "!(connect)" + decorate_updateCompanyPerson_name = "HideField" + decorate_updateCompanyPerson_from = "@nestjs/graphql" + decorate_updateCompanyPerson_arguments = "[]" - decorate_createPipelineProgressPipelineStage_type = "*PipelineStageCreateNestedOneWithoutPipelineProgressesInput" - decorate_createPipelineProgressPipelineStage_field = "!(connect)" - decorate_createPipelineProgressPipelineStage_name = "HideField" - decorate_createPipelineProgressPipelineStage_from = "@nestjs/graphql" - decorate_createPipelineProgressPipelineStage_arguments = "[]" + // PipelineProgress create: Only Allow pipelineStage and pipeline connect + decorate_createPipelineProgressPipeline_type = "*PipelineCreateNestedOneWithoutPipelineProgressesInput" + decorate_createPipelineProgressPipeline_field = "!(connect)" + decorate_createPipelineProgressPipeline_name = "HideField" + decorate_createPipelineProgressPipeline_from = "@nestjs/graphql" + decorate_createPipelineProgressPipeline_arguments = "[]" - // PipelineProgress update: Only Allow pipelineStage and pipeline connect - decorate_updatePipelineProgressPipeline_type = "*PipelineUpdateOneRequiredWithoutPipelineProgressesNestedInput" - decorate_updatePipelineProgressPipeline_field = "!(connect)" - decorate_updatePipelineProgressPipeline_name = "HideField" - decorate_updatePipelineProgressPipeline_from = "@nestjs/graphql" - decorate_updatePipelineProgressPipeline_arguments = "[]" + decorate_createPipelineProgressPipelineStage_type = "*PipelineStageCreateNestedOneWithoutPipelineProgressesInput" + decorate_createPipelineProgressPipelineStage_field = "!(connect)" + decorate_createPipelineProgressPipelineStage_name = "HideField" + decorate_createPipelineProgressPipelineStage_from = "@nestjs/graphql" + decorate_createPipelineProgressPipelineStage_arguments = "[]" - decorate_updatePipelineProgressPipelineStage_type = "*PipelineStageUpdateOneRequiredWithoutPipelineProgressesNestedInput" - decorate_updatePipelineProgressPipelineStage_field = "!(connect)" - decorate_updatePipelineProgressPipelineStage_name = "HideField" - decorate_updatePipelineProgressPipelineStage_from = "@nestjs/graphql" - decorate_updatePipelineProgressPipelineStage_arguments = "[]" - - // Disable _count on all models except Aggregation use case - decorate_count_type = "!(*Aggregate*|*GroupBy*|*OrderBy*)" - decorate_count_field = "_count" - decorate_count_name = "HideField" - decorate_count_from = "@nestjs/graphql" - decorate_count_arguments = "[]" + // PipelineProgress update: Only Allow pipelineStage and pipeline connect + decorate_updatePipelineProgressPipeline_type = "*PipelineUpdateOneRequiredWithoutPipelineProgressesNestedInput" + decorate_updatePipelineProgressPipeline_field = "!(connect)" + decorate_updatePipelineProgressPipeline_name = "HideField" + decorate_updatePipelineProgressPipeline_from = "@nestjs/graphql" + decorate_updatePipelineProgressPipeline_arguments = "[]" + + decorate_updatePipelineProgressPipelineStage_type = "*PipelineStageUpdateOneRequiredWithoutPipelineProgressesNestedInput" + decorate_updatePipelineProgressPipelineStage_field = "!(connect)" + decorate_updatePipelineProgressPipelineStage_name = "HideField" + decorate_updatePipelineProgressPipelineStage_from = "@nestjs/graphql" + decorate_updatePipelineProgressPipelineStage_arguments = "[]" + + // Disable _count on all models except Aggregation use case + decorate_count_type = "!(*Aggregate*|*GroupBy*|*OrderBy*)" + decorate_count_field = "_count" + decorate_count_name = "HideField" + decorate_count_from = "@nestjs/graphql" + decorate_count_arguments = "[]" + + // create data validator + decorate_classValidator_type = "@(Create|Update|Upsert)*Args" + decorate_classValidator_field = "@(data|[A-Z]*)" + decorate_classValidator_name = ValidateNested + decorate_classValidator_from = "class-validator" + decorate_classValidator_arguments = "['{each: true}']" + decorate_classTransformer_type = "@(Create|Update|Upsert)*Args" + decorate_classTransformer_field = "@(data|[A-Z]*)" + decorate_classTransformer_from = "class-transformer" + decorate_classTransformer_arguments = "['() => {propertyType.0}']" + decorate_classTransformer_name = Type } model User { - id String @id @default(uuid()) - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - deletedAt DateTime? - lastSeen DateTime? - disabled Boolean @default(false) - displayName String - email String @unique - avatarUrl String? - locale String - phoneNumber String? + /// @Validator.IsString() + /// @Validator.IsOptional() + id String @id @default(uuid()) + /// @Validator.IsString() + /// @Validator.IsOptional() + displayName String + /// @Validator.IsEmail() + email String @unique + /// @Validator.IsBoolean() + /// @Validator.IsOptional() + emailVerified Boolean @default(false) + /// @Validator.IsString() + /// @Validator.IsOptional() + avatarUrl String? + /// @Validator.IsString() + locale String + /// @Validator.IsString() + /// @Validator.IsOptional() + phoneNumber String? + /// @Validator.IsDate() + /// @Validator.IsOptional() + lastSeen DateTime? + /// @Validator.IsBoolean() + /// @Validator.IsOptional() + disabled Boolean @default(false) /// @TypeGraphQL.omit(input: true, output: true) - passwordHash String? - emailVerified Boolean @default(false) - metadata Json? + passwordHash String? + /// @Validator.IsJSON() + /// @Validator.IsOptional() + metadata Json? + /// @TypeGraphQL.omit(input: true) workspaceMember WorkspaceMember? companies Company[] @@ -135,18 +169,28 @@ model User { refreshTokens RefreshToken[] comments Comment[] + /// @TypeGraphQL.omit(input: true, output: true) + deletedAt DateTime? + + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt + @@map("users") } /// @TypeGraphQL.omit(input: true) model Workspace { - id String @id @default(uuid()) - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - deletedAt DateTime? - domainName String @unique - displayName String - logo String? + /// @Validator.IsString() + /// @Validator.IsOptional() + id String @id @default(uuid()) + /// @Validator.IsString() + domainName String @unique + /// @Validator.IsString() + displayName String + /// @Validator.IsString() + /// @Validator.IsOptional() + logo String? + workspaceMember WorkspaceMember[] companies Company[] people Person[] @@ -156,110 +200,163 @@ model Workspace { pipelineStages PipelineStage[] pipelineProgresses PipelineProgress[] + /// @TypeGraphQL.omit(input: true, output: true) + deletedAt DateTime? + + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt + @@map("workspaces") } model WorkspaceMember { - id String @id @default(uuid()) - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - deletedAt DateTime? - userId String @unique + /// @Validator.IsString() + /// @Validator.IsOptional() + id String @id @default(uuid()) + user User @relation(fields: [userId], references: [id]) - /// @TypeGraphQL.omit(input: true, output: true) - workspaceId String + userId String @unique /// @TypeGraphQL.omit(input: true, output: false) workspace Workspace @relation(fields: [workspaceId], references: [id]) + /// @TypeGraphQL.omit(input: true, output: true) + workspaceId String + + /// @TypeGraphQL.omit(input: true, output: true) + deletedAt DateTime? + + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt @@map("workspace_members") } model Company { - id String @id @default(uuid()) - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - deletedAt DateTime? - name String - domainName String - address String - employees Int? - accountOwnerId String? - accountOwner User? @relation(fields: [accountOwnerId], references: [id]) - people Person[] + /// @Validator.IsString() + /// @Validator.IsOptional() + id String @id @default(uuid()) + /// @Validator.IsString() + name String + /// @Validator.IsString() + domainName String + /// @Validator.IsString() + address String + /// @Validator.IsNumber() + /// @Validator.IsOptional() + employees Int? - /// @TypeGraphQL.omit(input: true, output: true) - workspaceId String + people Person[] + accountOwner User? @relation(fields: [accountOwnerId], references: [id]) + accountOwnerId String? /// @TypeGraphQL.omit(input: true, output: true) workspace Workspace @relation(fields: [workspaceId], references: [id]) + /// @TypeGraphQL.omit(input: true, output: true) + workspaceId String + + /// @TypeGraphQL.omit(input: true, output: true) + deletedAt DateTime? + + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt @@map("companies") } model Person { - id String @id @default(uuid()) - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - deletedAt DateTime? - firstname String - lastname String - email String - phone String - city String - companyId String? - company Company? @relation(fields: [companyId], references: [id]) + /// @Validator.IsString() + /// @Validator.IsOptional() + id String @id @default(uuid()) + /// @Validator.IsString() + firstname String + /// @Validator.IsString() + lastname String + /// @Validator.IsEmail() + email String + /// @Validator.IsPhoneNumber() + phone String + /// @Validator.IsString() + city String - /// @TypeGraphQL.omit(input: true, output: true) - workspaceId String + company Company? @relation(fields: [companyId], references: [id]) + companyId String? /// @TypeGraphQL.omit(input: true, output: true) workspace Workspace @relation(fields: [workspaceId], references: [id]) + /// @TypeGraphQL.omit(input: true, output: true) + workspaceId String + + /// @TypeGraphQL.omit(input: true, output: true) + deletedAt DateTime? + + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt @@map("people") } model RefreshToken { - id String @id @default(uuid()) - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - isRevoked Boolean @default(false) - expiresAt DateTime - deletedAt DateTime? + /// @Validator.IsString() + /// @Validator.IsOptional() + id String @id @default(uuid()) + /// @Validator.IsBoolean() + /// @Validator.IsOptional() + isRevoked Boolean @default(false) + /// @TypeGraphQL.omit(input: true, output: true) - userId String + user User @relation(fields: [userId], references: [id]) /// @TypeGraphQL.omit(input: true, output: true) - user User @relation(fields: [userId], references: [id]) + userId String + + expiresAt DateTime + /// @TypeGraphQL.omit(input: true, output: true) + deletedAt DateTime? + + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt @@map("refresh_tokens") } model CommentThread { - id String @id @default(uuid()) - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - deletedAt DateTime? - commentThreadTargets CommentThreadTarget[] - comments Comment[] + /// @Validator.IsString() + /// @Validator.IsOptional() + id String @id @default(uuid()) + + commentThreadTargets CommentThreadTarget[] + comments Comment[] /// @TypeGraphQL.omit(input: true, output: true) - workspaceId String + workspace Workspace @relation(fields: [workspaceId], references: [id]) /// @TypeGraphQL.omit(input: true, output: true) - workspace Workspace @relation(fields: [workspaceId], references: [id]) + workspaceId String + + /// @TypeGraphQL.omit(input: true, output: true) + deletedAt DateTime? + + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt @@map("comment_threads") } model Comment { - id String @id @default(uuid()) - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - deletedAt DateTime? - body String - authorId String - author User @relation(fields: [authorId], references: [id]) - commentThreadId String - commentThread CommentThread @relation(fields: [commentThreadId], references: [id], onDelete: Cascade) + /// @Validator.IsString() + /// @Validator.IsOptional() + id String @id @default(uuid()) + /// @Validator.IsString() + body String + + author User @relation(fields: [authorId], references: [id]) + authorId String + commentThread CommentThread @relation(fields: [commentThreadId], references: [id], onDelete: Cascade) + commentThreadId String /// @TypeGraphQL.omit(input: true, output: true) - workspaceId String + workspace Workspace @relation(fields: [workspaceId], references: [id]) /// @TypeGraphQL.omit(input: true, output: true) - workspace Workspace @relation(fields: [workspaceId], references: [id]) + workspaceId String + + /// @TypeGraphQL.omit(input: true, output: true) + deletedAt DateTime? + + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt @@map("comments") } @@ -270,57 +367,75 @@ enum CommentableType { } model CommentThreadTarget { - id String @id @default(uuid()) - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - deletedAt DateTime? - commentThreadId String - commentThread CommentThread @relation(fields: [commentThreadId], references: [id], onDelete: Cascade) + /// @Validator.IsString() + /// @Validator.IsOptional() + id String @id @default(uuid()) - commentableType CommentableType - commentableId String + commentThread CommentThread @relation(fields: [commentThreadId], references: [id], onDelete: Cascade) + commentThreadId String + + commentableType CommentableType + commentableId String + + /// @TypeGraphQL.omit(input: true, output: true) + deletedAt DateTime? + + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt @@map("comment_thread_targets") } model Pipeline { - id String @id @default(uuid()) - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - deletedAt DateTime? + /// @Validator.IsString() + /// @Validator.IsOptional() + id String @id @default(uuid()) + /// @Validator.IsString() + name String + /// @Validator.IsString() + icon String - name String - icon String - pipelineStages PipelineStage[] - pipelineProgresses PipelineProgress[] - pipelineProgressableType PipelineProgressableType @default(Company) + pipelineStages PipelineStage[] + pipelineProgresses PipelineProgress[] + pipelineProgressableType PipelineProgressableType @default(Company) /// @TypeGraphQL.omit(input: true, output: true) - workspaceId String + workspace Workspace @relation(fields: [workspaceId], references: [id]) /// @TypeGraphQL.omit(input: true, output: true) - workspace Workspace @relation(fields: [workspaceId], references: [id]) + workspaceId String + + /// @TypeGraphQL.omit(input: true, output: true) + deletedAt DateTime? + + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt @@map("pipelines") } model PipelineStage { - id String @id @default(uuid()) - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - deletedAt DateTime? + /// @Validator.IsString() + /// @Validator.IsOptional() + id String @id @default(uuid()) + /// @Validator.IsString() + name String + /// @Validator.IsString() + type String + /// @Validator.IsString() + color String - name String - type String - color String - - pipelineId String - pipeline Pipeline @relation(fields: [pipelineId], references: [id]) - - pipelineProgresses PipelineProgress[] + pipelineProgresses PipelineProgress[] + pipeline Pipeline @relation(fields: [pipelineId], references: [id]) + pipelineId String + /// @TypeGraphQL.omit(input: true, output: true) + workspace Workspace @relation(fields: [workspaceId], references: [id]) + /// @TypeGraphQL.omit(input: true, output: true) + workspaceId String /// @TypeGraphQL.omit(input: true, output: true) - workspaceId String - /// @TypeGraphQL.omit(input: true, output: true) - workspace Workspace @relation(fields: [workspaceId], references: [id]) + deletedAt DateTime? + + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt @@map("pipeline_stages") } @@ -331,24 +446,26 @@ enum PipelineProgressableType { } model PipelineProgress { - id String @id @default(uuid()) - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - deletedAt DateTime? + /// @Validator.IsString() + /// @Validator.IsOptional() + id String @id @default(uuid()) - pipelineId String - pipeline Pipeline @relation(fields: [pipelineId], references: [id]) - - pipelineStageId String - pipelineStage PipelineStage @relation(fields: [pipelineStageId], references: [id]) - - progressableType PipelineProgressableType - progressableId String + pipeline Pipeline @relation(fields: [pipelineId], references: [id]) + pipelineId String + pipelineStage PipelineStage @relation(fields: [pipelineStageId], references: [id]) + pipelineStageId String + progressableType PipelineProgressableType + progressableId String + /// @TypeGraphQL.omit(input: true, output: true) + workspace Workspace @relation(fields: [workspaceId], references: [id]) + /// @TypeGraphQL.omit(input: true, output: true) + workspaceId String /// @TypeGraphQL.omit(input: true, output: true) - workspaceId String - /// @TypeGraphQL.omit(input: true, output: true) - workspace Workspace @relation(fields: [workspaceId], references: [id]) + deletedAt DateTime? + + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt @@map("pipeline_progresses") }