diff --git a/.vscode/settings.json b/.vscode/settings.json index efca65e08..2311f1916 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 fc84d4372..0e4f79ddd 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 83dd5d977..f038e8821 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 74c737fc6..896d5641d 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 3cf61cc58..02aa39e45 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 ce8b8885c..7a4102197 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 676b6deda..a9841b6ee 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 4a7ad8aaf..3fc238fb7 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 e91f5bf3c..a092a5ae7 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 ce5df7ff5..b5b48fbeb 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 f65bfb826..bf42f814a 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 3485541ea..872d31450 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 409fd5711..5034d36a7 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 29c064f4a..ae259145c 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 a89b8fe63..c40faf76d 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 5417baf40..fb7ba4de9 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 15a63d02c..cfebe1306 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 ddde7c6d2..ae369577c 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 d451c064b..a5e135c46 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 b90e79017..06c553f44 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 0f1b33611..f8cffa629 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 32c58db1d..bc0557332 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 5f4163ab2..65e494a82 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 78c23b41d..ec50834a1 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 ed3d786a9..0836a70a5 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 51dd976f0..06a0820dc 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 d54208eb1..3bfffaa85 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 85626de21..277543987 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 59bb9fd6d..d186e329e 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 3ce9bc3b8..90aa4a527 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 63c581347..492beeb6f 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 b2a01ad85..5c79dc759 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 988e0552b..c2b72c0f2 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 6c9e74c29..0e5ebee05 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 7b052a2ad..f2ac96498 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 8a7ac6d62..7f083a66a 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 53bf4b27a..805d3a008 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 fdc536e0c..26b410175 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 8ae8827c6..38f1f20d7 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 5f2144913..df6c79416 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 444dd62fe..776b61936 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 d3b8c81e0..6a41f970e 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 25d7e7673..da829a51e 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 b1fdc5dc9..0b4a74ad6 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 7e4c9053d..ef2d51dc0 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 160f45ba0..885b78d14 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 1d4149f81..0a22e60e5 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 91a72cae3..e76278c67 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 7fa8c4489..77e00888a 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 b9ebbcb64..1e45c444c 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 ef2b349c0..7f8919257 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 440e56041..ffccd07a0 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 3d941cc80..691a37d8e 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 71bf3618e..820b616f1 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 da384254a..a4b02004a 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 84552ba8b..295edaa14 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 bca6c41d6..80585db9d 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 732d0622d..7a77e02ca 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 756ede95b..23ad12f71 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 685125622..697f31001 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 cc9bc163a..c67e5a29b 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 f6f515dec..a8176bf86 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 01f687d55..e29d94853 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 80fc0d763..a3f3a2bfe 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 786cb2f35..9c05d049c 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 06257118e..a9dbbbdfe 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 4ce273e57..73ee096f5 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 556ef798b..4ac5fe477 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 b7a30afa1..11962b372 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 69b737bb7..4c2d34db4 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 7f2db2f9a..0860a0f33 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 2d61d5dbb..f9558ac23 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 2c0cd1b52..c9afee05b 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 534b7bf6d..8565dd9b8 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 7dc775bf9..430b1964b 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 34abc8f81..eb14acb1b 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 be6d3b1a7..20ed8d3e5 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 86c33e1eb..ccf3aeaf4 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 82a126128..0c7ba7277 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 17baa23ac..89af0ecef 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 a49f2a2f2..c9698a2e8 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 551d7006e..46177b8da 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 ca17fd6cc..d7c870533 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 b1107ba21..2bb1a8576 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 52aa699d3..7ae9a8982 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 f5eea37fc..7ebf705b7 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 6f79837eb..2ac660538 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 f0012b064..308a1080c 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 5441d9b1b..e10ec5cbe 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 9600cfc1e..1c1ae3c64 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 691660545..bfe52f64a 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 30ecd9d72..ebf8cc128 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 5b6ef95e8..76a42879c 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 32450f876..66e4d5c39 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 3717705b9..2191c600d 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 b3537b164..0aff5db28 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 82a7abccd..0cdfb6456 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 349a6c163..8e7b21f15 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 bd88e7d1a..7336ca8ed 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 2a4a40b42..0c3c0accf 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 875899b17..f018ee34c 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 063887366..3ff125e3f 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 ac1b6d8f0..6a0fae050 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 25df568a1..b7a8b5e13 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 eb46be7e5..3e1d391d1 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 22e3330dd..690de65f9 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 6dd4fe502..1802ebeef 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 98db2077c..c5e8948eb 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 f813f9a4f..025ec0409 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 bc508db7a..14d2d005b 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 7b390d171..173f3a1a0 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 7474d2ec1..7551d1c90 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 2bb974447..aa011be80 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 74539a248..540ecb69e 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 ecb9b251b..19ab20305 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 96d20eceb..f61c5d531 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 e40106266..c0bef523d 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 bcdc9d336..a7c8c8c41 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 ab5e1ed80..f48c7cf7f 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 1469465c4..0b229f8c0 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 51b3f4720..fc752ae2b 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 665688942..573b1a2e6 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 0f562576f..2ed02c08d 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 9acbfba60..efeb6180f 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 edd42fd9f..14f2f92d0 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 774516c12..143cc0700 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 e1b1e1d1c..75597cb14 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 6f32dd1be..99c968e83 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 fbfaee755..3f763511a 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 a1a6105d6..b161afb74 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 d8c065046..d352a6e6a 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 40008fb2a..c65208cac 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 c7cf57141..7b0603117 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 be0c6b51b..d508b8860 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 88d96b913..8762da2d9 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 b9a58dbd5..87e3d8fd7 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 9fe891008..c7e4574c0 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 7f7876ca8..b0d279c54 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 e9a1e94c4..acd3cf7d1 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 6e0242e07..74ce0909f 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 607747cd3..885fe8f3a 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 1f84156e0..fea90cb81 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 f0cd0444f..a7c3e8cb8 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 89421d5cb..494c0c425 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 c0cbd950a..1f1f9f001 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 b6386634f..683d80cd0 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 07a3c298b..58c960c43 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 907fbd584..40ae7579f 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 69e0e855d..4e5e00e2e 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 d7a53c693..1b9e18d9a 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 7149b35b6..470901b95 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 aca3e0021..2be597cc2 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 dbcdad23a..23ab8f677 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 5655bc9e7..f51071546 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 a4fb6ac87..2604c5387 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 2ce6fdcfb..f9fa9a7f5 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 da95621db..87f784af2 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 3711a3e0d..108002844 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 2acca14bc..50c39c010 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 696c414e7..7eac96e73 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 4463b2f24..34087ae04 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 709138b24..3df2e6e52 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 32d48c782..a18bd04bd 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 36362ef47..ef56cd223 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 175a2db08..7a4b1910f 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 838a95ab2..08e78f224 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 ed7263b2a..c8dd6a033 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 312ff7721..6672abe31 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 128ccf9c3..ca5a67049 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 0537d87a6..d78b614a4 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 1a606d598..8651efd2c 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 55e647c1d..78b404184 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 037fdf57b..c73aad04e 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 ea465b1de..9e30096b6 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 b747be781..eb7f6a131 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 39264d995..0f36ec7be 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 60df0ec5f..04dd6e66d 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 9e6c71fb5..9fea1ef92 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 115bc6c2b..5dc836d5e 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 434070df6..96944ff99 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 79f4a5cbb..4af6b2665 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 c720d0456..b0441b214 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 be40ee0a2..9e48a9e27 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 d916a8261..44d39dcc1 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 c0786aa29..e388d5450 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 57b9396f4..302fbac9d 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 37cc9f3ec..0174f90ee 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 de44b413a..3d26bef2f 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 75abb2639..f0167a8fc 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 6621600f6..1bb4dbe0a 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 2e546e460..181d32647 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 055dac62c..71a44e867 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 37f45a678..996b8437a 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 e7a77e7fa..54792cdac 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 66039a627..9140f57d0 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 b3d4a323c..9548cc5fb 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 8500a35b1..da1f88315 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 1185cceaf..b41c780b3 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 950eff4f9..a7aeeda1b 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 f0345151b..567c85b2e 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 278725421..63b2a1ae0 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 d7ac5a1ee..28065c63e 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 9d883d747..6369f7115 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 a17c52d88..a36ba9e58 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 34c5475c9..9e7ddd895 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 aafb76cba..c1785ce7a 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 8f4a5a87a..315291c53 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 397be4d10..ba742bafd 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 6c91321c5..c70516db7 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 0787b8133..447f7bf6f 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 c8ebeb837..3455dda8d 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 860776bf5..e22450a5d 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 1511e8260..40da18f0d 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 ef071a6fe..6c812cc80 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 cf72fbb47..8ae58ea32 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 b9886c7c4..c88726ced 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 d41dc82b6..e7810a81c 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 cb7eb50a6..a6e05a29f 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 fd70cd6de..577d5971e 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 b9555e06a..814528f2c 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 da3d6609c..75747d4c9 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 3a4743d3f..346a29c61 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 83726c430..051870f08 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 f5b11b927..b68f781c8 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 27a0837cc..1b04a78e2 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 679bae71e..0eb269ae2 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 b36b45f7c..f566a1224 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 31deb7b50..387c89090 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 0e4d11b9f..6d3b5dc1e 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 ea1263987..29defd6ab 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 e7701ecb7..f19201ea8 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 65077a1d3..e289a1765 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 66eac3298..1726b6b49 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 630244138..947226563 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 c85c73c37..2202c3f5b 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 4a4f78f41..7ffeb0415 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 8f156d04b..7b054ebbd 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 d36e569f4..a571900db 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 c5d650cfa..e50234301 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 3b13057bc..5c97ae69a 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 5f39bfc72..ef8a032fc 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 e2a0aa2f5..fd2c518e8 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 bf0592036..126b7949e 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 1dac35cfa..2b582a507 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 cdbbc4f4b..f1903e803 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 949596eeb..f6461c0fa 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 0434a65a5..d0fd3000a 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 b2cf12fde..fef40cd80 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 2561ece24..64daa4166 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 a91dc30a3..49964611f 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 63874c98c..e9e548a99 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 d19308f02..c0bb471de 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 0fa59c9c0..6e2ecd02b 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 9097f61a9..b7fbafe4b 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 72bc79f95..92168e92b 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 c60a22834..5821b7a43 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 7f39c9e37..1bb4a676f 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 079141ced..a6804b890 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 f33d17527..f495a3149 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 a6a2a5c03..7856aebca 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 ed6d09995..b1a0b5cae 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 cbdb4743e..c041f28c2 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 edd88c289..3f656cf83 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 409b2ae1f..ea156775f 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 3ca707b73..8541319f6 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 e69f43717..f1f74472d 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 2307ee3f6..3bac6bc21 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 0318bbae8..9b0f60095 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 65f754382..ededb7d04 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 34763c410..a6e3adf28 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 90ffc05ad..baded7837 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 380a4a6c0..26a880854 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 832665cbf..ec3e7862e 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 010b953c5..bbe829d1c 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 fe0562b35..e14e1967d 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 b96f52883..6f1a53a74 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 33a3f72b7..eb7974076 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 a4640688f..712d6ed04 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 69b83f8ff..c1e93b71f 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 e109520e4..b2c6de3eb 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 96e2ff10d..b2249e733 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 b5b735fc9..41fa54d34 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 65583416f..94054bcb1 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 fab8a3b1e..dd2c461ae 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 cbeb4ffe9..1b5efa690 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 a0efd1e24..0c4d93d8d 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 d60f810fa..46f87868d 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 5e0386195..bb918bd0e 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 24b3025bf..e66f15e78 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 9b8727b1a..44bd90d60 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 aa925c727..408111514 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 d04527888..9a697f7e6 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 71d49c518..21b3c95a6 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 16976ed7a..71e4cf1c8 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 5d3308aae..eb97b3236 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 b1ee05e04..cd06a877f 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 0ab03da1f..ce2c3fc9a 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 e21cb0c57..2a8995dc5 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 705e10952..58d1a1ce7 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 0ed8f0aa9..d27b30083 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 c7094f277..1e72ef1b3 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 bdceaf0d6..e312c63e7 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 eac8e7feb..b3ad6d20a 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 fc0ec4afc..c571e668c 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 252a17f02..d492f1d68 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 59a1d029f..d6caae5ea 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 d17e0bbd2..6d70864f7 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 aabaa251a..86162402e 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 f49c59cb4..c55a787dd 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 4ff53ff4b..40a2fc00b 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 c8be89ec7..5cbaed04a 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 77ff787ff..b8820ca68 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 55a6fbc1f..ce13d8793 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 761d38024..cac27c8b5 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 e498cb1e0..a772c42d2 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 d15362c64..c362c9341 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 7d60a8238..c9791c513 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 185626f35..bfbfa33fd 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 37ce4efb2..dbea46bef 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 74e33b7c6..d511eef62 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 6e88c9dd1..1461d9b9e 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 138d5ef23..53d286c97 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 5acc39851..35ebb9c9a 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 cce8b56b5..bad372d6f 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 ea1c9ea4c..a7f77316b 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 4557e7212..a648ecd27 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 f22ea056f..a8c45c481 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 4a52dfcb8..20b84b754 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 7ed8b4284..ed0d478ce 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 fed2e32db..3d1392cf9 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 08a3984f4..da6b09a1e 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 3005ea31d..aa48ef072 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 662d43ad3..5f7bbc7f9 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 fc904a444..82f8b7bcf 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 c33443083..da8c67edb 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 c5b1ba82d..efaf18cca 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 ae529d3ca..03ccad00b 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 116c62391..42fb3f43a 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 bbed35c01..f8a744159 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 a68aa54a2..33a24fce2 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 7f06fd92c..fea3d76f5 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 c668f92fd..abd1265fb 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 f07f84313..cd6d099e4 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 a777c4c0b..3208d8265 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 0c9f1d032..b67ba1ae3 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 44691c590..78811afb1 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 e5865df1c..b35e71c0b 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 b9d642a15..0434ee36a 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 af7d6c9eb..3ef7c24e9 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 99abf4edb..23de4057d 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 d2586b027..c63bbc5c1 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 21b629955..a89c0fea4 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 c353ed0b2..3a452a2d0 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 7e79a187b..e09584133 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 7744c242a..c91e87efd 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 d3dede01a..d3e78a5c7 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 b779ed124..1495d70e8 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 e2a3ac877..bc55bc5bd 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 38b1042b2..52ddbe0f7 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 7ad85d277..ecb668a5d 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 e7a1c66ea..51a1b4e68 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 5d08cf380..bf052aa44 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 ba63ab4dc..b1bf7daa0 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 da8bd691c..18beccde8 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 624281f30..ea05d8a6e 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 ebda14658..3cbc2aea8 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 7ca5fdc1d..305497b1c 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 8fc887e8b..ca8371dba 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 13ad88837..44983e62e 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 4c5546b98..625a3ecf8 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 d31cef1cb..d1e2ad32c 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 2e45dd93d..85e3a6832 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 69903f68b..607f39dd9 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 8184a36c2..9aac4e65a 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 820819ad0..51c0f7807 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 f2116b404..c878ef06b 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 d1e7141d5..e57cc3d60 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 6a791035c..017efd836 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 2e8274867..7b964a700 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 9f16dadfd..819930ca9 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 2c6471261..f6d0e38e6 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 602cb9eb7..834dc74b2 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 6b09d9e8f..d35a46120 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 076798c2b..66a34d6dd 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 dbe3b4873..2d0834395 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 472fb4854..47fef22c1 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 893dad9ce..a31e91d8b 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 b68b8b96c..df86720e5 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 8fe8ffca0..1aff14051 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 2b1c046b3..7dd8030df 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 eae4208b7..b63cad58b 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 a426d13f7..c62bfdde4 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 1ce990fe2..9dfccd206 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 5fc6f62ae..f2e8264c3 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 a1545bff7..e1fd0ef43 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 f1ae85d1b..dcb6d2bda 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 ea43e4b5a..1ca9b46ad 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 569bb7e51..8cd1bf8e5 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 e55d995e0..fc51a44b8 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 e1207ea1b..3ed09e1d4 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 031337f5c..bf9b84400 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 98add01fb..4583bb18f 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 9890a46b0..a97385c01 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 1edf7fc69..cc0c1f80d 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 88746cad7..4c0917100 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 419854f1a..131fba85a 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 de6eb5268..554d886b5 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 65a0ead72..ecbb841e1 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 d6c310729..6b5f6abc0 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 6c91ec298..b9ed79b11 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 dfe9d6e7c..ecd581669 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 2177fa997..866f0c68e 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 519082a64..7fbf116a6 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 af8daa241..2757afc63 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 575a90a3c..6c63d0ca4 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 88d312c96..7e94800af 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 bad932e8f..db017f622 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 97328c85b..67516f1d6 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 67e1ba7a0..4c574304e 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 a04f8d96a..c7983b2f1 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 2826764db..6200d2a3c 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 13962daec..81c65ffab 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 24b76c75d..3b90fb76a 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 b45f83872..06e17b917 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 babc82423..6a766d12a 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 d183758ed..2408dbd50 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 ddb062392..da4d87bc2 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 da3fee4e9..99f963f40 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 c8e9f55c4..04172012b 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 03445dd34..0f6143ade 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 5b85f0594..db865d5bf 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 0f28da79d..0f73b983e 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 2d6aaceb6..d4c0b6bde 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 666c73eeb..15f6ad56a 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 b41699811..02821577b 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 b33368325..50fccb6fe 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 8b6726ea2..2fef19d2e 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 f28d24a33..3885190b4 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 1c88be9b9..c15f9c5e5 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 e36f0ebd5..f789f946a 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 4509bebd9..db0e3bcda 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 4089c03d7..ac16b7678 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 9742a78f4..4aa743e2a 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 387a91005..bfdf54c87 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 076441c52..81c6c4899 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 f3abf7f79..49879e471 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 7e4670f3a..bd310356e 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 c4454b572..6655f7c14 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 8021ea674..68c83f07c 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 de5a4730f..30781df6f 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 034faea04..f6e8a7c52 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 9eed855b0..5a40c8e08 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 8553ee734..1175f6606 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 115240ac0..8c8cdeae4 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 815cad242..d763f9a5b 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 dcaaef4b4..343ecf858 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 15a39929f..52ce8efd6 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 2f6586a29..1eda2d1ae 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 f6247d985..225e41e9c 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 34997578e..9dc7e7e9e 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 21d295664..ce2dec159 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 a8dd4fd85..7772c4a69 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 7a3bc5591..d28d7161b 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 515c56ef6..f1d672e1b 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 973e6bee0..df84d04c0 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 c8989bfdf..8ae33e3e0 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 19ecd3b70..0a15f1ded 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 9ce6c151e..4c95327a6 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 1160fce32..87c853a6e 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 8bb2438f5..3c18a17c3 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 9311d322d..d78bd0732 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 673eb7016..ae49df118 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 8662a9f27..5b6041539 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 0c5a01ef5..3136284df 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 94a8574e4..4f60d70fd 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 67b283868..6137eb6e6 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 371413441..2d3828820 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 ea8d0ab83..022e0dc7e 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 159373eb3..ba8f25ec2 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 037f7eb91..c61f48b08 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 fa2d6e2c8..ce6803ca1 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 0c2a2a26a..e1ca5e496 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 39cde4310..6834c1f8d 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 1e027eb29..ae5e311d8 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 99d3bc843..95964e2ac 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 083443cff..02cf89b8d 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 2ccf07fac..bafa10616 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 906920f05..46cf3451a 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 b439af585..9c395cad9 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 c4d862526..c0837717e 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 99a861232..6685a812f 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 671996d89..50f851ed7 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 e9b6f50e1..a47af9100 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 ccc32fed1..fd910fc79 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 e77f3f6bc..be6c04d34 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 76f41078a..193bd4daa 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 719f49ef4..3eff5eeb0 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 5253f984e..c3b8b3eb5 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 fd6c3d081..5a9a01fbe 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 b3a7f7cb2..3f288a1d8 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 70998e840..4e731a4c2 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 9c3c736ae..2dbc07b8a 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 2113da908..9b3239c35 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 44fcb7dbe..6903cc4f1 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 09d75cff2..56699a7ff 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 0324c5b62..7ef4bc271 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 7c1ffac89..e1ebe3656 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 02085b4ce..8786d5854 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 ed9127777..705166c99 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 f343edd1f..ed610ff6b 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 290e236c6..7862c0704 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 e3cf38936..4e9cdd407 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 29823c4c0..86a6d79eb 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 a7f84ee6d..d1ffa3512 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 abd2cb244..1b50891b0 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 3c0966d33..c69952539 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 85b038a54..1cc87e8a4 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 7e5eb5e0d..24c7da0d7 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 b502963e2..b709c0cfb 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 4a2005af4..e3002cfb8 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") }