diff --git a/front/src/apollo.tsx b/front/src/apollo.tsx index 80981dad4..ad9b75ac3 100644 --- a/front/src/apollo.tsx +++ b/front/src/apollo.tsx @@ -10,8 +10,6 @@ import { RestLink } from 'apollo-link-rest'; import { onError } from '@apollo/client/link/error'; import { refreshAccessToken } from './services/auth/AuthService'; -console.log(process.env.REACT_APP_API_URL); - const apiLink = createHttpLink({ uri: `${process.env.REACT_APP_API_URL}`, }); diff --git a/front/src/generated/graphql.tsx b/front/src/generated/graphql.tsx index 5f23a6196..b87484d93 100644 --- a/front/src/generated/graphql.tsx +++ b/front/src/generated/graphql.tsx @@ -31,12 +31,401 @@ export type BoolFilter = { not?: InputMaybe; }; +export type Comment = { + __typename?: 'Comment'; + author: User; + authorId: Scalars['String']; + body: Scalars['String']; + commentThread: CommentThread; + commentThreadId: Scalars['String']; + createdAt: Scalars['DateTime']; + deletedAt?: Maybe; + id: Scalars['ID']; + updatedAt: Scalars['DateTime']; + workspace: Workspace; + workspaceId: Scalars['String']; +}; + +export type CommentCreateInput = { + author: UserCreateNestedOneWithoutCommentsInput; + body: Scalars['String']; + commentThread: CommentThreadCreateNestedOneWithoutCommentsInput; + createdAt?: InputMaybe; + deletedAt?: InputMaybe; + id: Scalars['String']; + updatedAt?: InputMaybe; +}; + +export type CommentCreateManyAuthorInput = { + body: Scalars['String']; + commentThreadId: Scalars['String']; + createdAt?: InputMaybe; + deletedAt?: InputMaybe; + id: Scalars['String']; + updatedAt?: InputMaybe; +}; + +export type CommentCreateManyAuthorInputEnvelope = { + data: Array; + skipDuplicates?: InputMaybe; +}; + +export type CommentCreateManyCommentThreadInput = { + authorId: Scalars['String']; + body: Scalars['String']; + createdAt?: InputMaybe; + deletedAt?: InputMaybe; + id: Scalars['String']; + updatedAt?: InputMaybe; +}; + +export type CommentCreateManyCommentThreadInputEnvelope = { + data: Array; + skipDuplicates?: InputMaybe; +}; + +export type CommentCreateNestedManyWithoutAuthorInput = { + connect?: InputMaybe>; + connectOrCreate?: InputMaybe>; + create?: InputMaybe>; + createMany?: InputMaybe; +}; + +export type CommentCreateNestedManyWithoutCommentThreadInput = { + createMany?: InputMaybe; +}; + +export type CommentCreateOrConnectWithoutAuthorInput = { + create: CommentCreateWithoutAuthorInput; + where: CommentWhereUniqueInput; +}; + +export type CommentCreateWithoutAuthorInput = { + body: Scalars['String']; + commentThread: CommentThreadCreateNestedOneWithoutCommentsInput; + createdAt?: InputMaybe; + deletedAt?: InputMaybe; + id: Scalars['String']; + updatedAt?: InputMaybe; +}; + +export type CommentListRelationFilter = { + every?: InputMaybe; + none?: InputMaybe; + some?: InputMaybe; +}; + +export type CommentOrderByRelationAggregateInput = { + _count?: InputMaybe; +}; + +export type CommentScalarWhereInput = { + AND?: InputMaybe>; + NOT?: InputMaybe>; + OR?: InputMaybe>; + authorId?: InputMaybe; + body?: InputMaybe; + commentThreadId?: InputMaybe; + createdAt?: InputMaybe; + deletedAt?: InputMaybe; + id?: InputMaybe; + updatedAt?: InputMaybe; +}; + +export type CommentThread = { + __typename?: 'CommentThread'; + _count: CommentThreadCount; + commentThreadTargets?: Maybe>; + comments?: Maybe>; + createdAt: Scalars['DateTime']; + deletedAt?: Maybe; + id: Scalars['ID']; + updatedAt: Scalars['DateTime']; + workspace: Workspace; + workspaceId: Scalars['String']; +}; + +export type CommentThreadCount = { + __typename?: 'CommentThreadCount'; + commentThreadTargets: Scalars['Int']; + comments: Scalars['Int']; +}; + +export type CommentThreadCreateInput = { + commentThreadTargets?: InputMaybe; + comments?: InputMaybe; + createdAt?: InputMaybe; + deletedAt?: InputMaybe; + id: Scalars['String']; + updatedAt?: InputMaybe; +}; + +export type CommentThreadCreateNestedOneWithoutCommentsInput = { + connect?: InputMaybe; +}; + +export type CommentThreadCreateOrConnectWithoutCommentsInput = { + create: CommentThreadCreateWithoutCommentsInput; + where: CommentThreadWhereUniqueInput; +}; + +export type CommentThreadCreateWithoutCommentsInput = { + commentThreadTargets?: InputMaybe; + createdAt?: InputMaybe; + deletedAt?: InputMaybe; + id: Scalars['String']; + updatedAt?: InputMaybe; +}; + +export type CommentThreadRelationFilter = { + is?: InputMaybe; + isNot?: InputMaybe; +}; + +export type CommentThreadTarget = { + __typename?: 'CommentThreadTarget'; + commentThread: CommentThread; + commentThreadId: Scalars['String']; + commentableId: Scalars['String']; + commentableType: CommentableType; + createdAt: Scalars['DateTime']; + deletedAt?: Maybe; + id: Scalars['ID']; + updatedAt: Scalars['DateTime']; +}; + +export type CommentThreadTargetCreateManyCommentThreadInput = { + commentableId: Scalars['String']; + commentableType: CommentableType; + createdAt?: InputMaybe; + deletedAt?: InputMaybe; + id: Scalars['String']; + updatedAt?: InputMaybe; +}; + +export type CommentThreadTargetCreateManyCommentThreadInputEnvelope = { + data: Array; + skipDuplicates?: InputMaybe; +}; + +export type CommentThreadTargetCreateNestedManyWithoutCommentThreadInput = { + createMany?: InputMaybe; +}; + +export type CommentThreadTargetCreateOrConnectWithoutCommentThreadInput = { + create: CommentThreadTargetCreateWithoutCommentThreadInput; + where: CommentThreadTargetWhereUniqueInput; +}; + +export type CommentThreadTargetCreateWithoutCommentThreadInput = { + commentableId: Scalars['String']; + commentableType: CommentableType; + createdAt?: InputMaybe; + deletedAt?: InputMaybe; + id: Scalars['String']; + updatedAt?: InputMaybe; +}; + +export type CommentThreadTargetListRelationFilter = { + every?: InputMaybe; + none?: InputMaybe; + some?: InputMaybe; +}; + +export type CommentThreadTargetScalarWhereInput = { + AND?: InputMaybe>; + NOT?: InputMaybe>; + OR?: InputMaybe>; + commentThreadId?: InputMaybe; + commentableId?: InputMaybe; + commentableType?: InputMaybe; + createdAt?: InputMaybe; + deletedAt?: InputMaybe; + id?: InputMaybe; + updatedAt?: InputMaybe; +}; + +export type CommentThreadTargetUpdateManyMutationInput = { + commentableId?: InputMaybe; + commentableType?: InputMaybe; + createdAt?: InputMaybe; + deletedAt?: InputMaybe; + id?: InputMaybe; + updatedAt?: InputMaybe; +}; + +export type CommentThreadTargetUpdateManyWithWhereWithoutCommentThreadInput = { + data: CommentThreadTargetUpdateManyMutationInput; + where: CommentThreadTargetScalarWhereInput; +}; + +export type CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput = { + connect?: InputMaybe>; + connectOrCreate?: InputMaybe>; + create?: InputMaybe>; + createMany?: InputMaybe; + delete?: InputMaybe>; + deleteMany?: InputMaybe>; + disconnect?: InputMaybe>; + set?: InputMaybe>; + update?: InputMaybe>; + updateMany?: InputMaybe>; + upsert?: InputMaybe>; +}; + +export type CommentThreadTargetUpdateWithWhereUniqueWithoutCommentThreadInput = { + data: CommentThreadTargetUpdateWithoutCommentThreadInput; + where: CommentThreadTargetWhereUniqueInput; +}; + +export type CommentThreadTargetUpdateWithoutCommentThreadInput = { + commentableId?: InputMaybe; + commentableType?: InputMaybe; + createdAt?: InputMaybe; + deletedAt?: InputMaybe; + id?: InputMaybe; + updatedAt?: InputMaybe; +}; + +export type CommentThreadTargetUpsertWithWhereUniqueWithoutCommentThreadInput = { + create: CommentThreadTargetCreateWithoutCommentThreadInput; + update: CommentThreadTargetUpdateWithoutCommentThreadInput; + where: CommentThreadTargetWhereUniqueInput; +}; + +export type CommentThreadTargetWhereInput = { + AND?: InputMaybe>; + NOT?: InputMaybe>; + OR?: InputMaybe>; + commentThread?: InputMaybe; + commentThreadId?: InputMaybe; + commentableId?: InputMaybe; + commentableType?: InputMaybe; + createdAt?: InputMaybe; + deletedAt?: InputMaybe; + id?: InputMaybe; + updatedAt?: InputMaybe; +}; + +export type CommentThreadTargetWhereUniqueInput = { + id?: InputMaybe; +}; + +export type CommentThreadUpdateOneRequiredWithoutCommentsNestedInput = { + connect?: InputMaybe; + connectOrCreate?: InputMaybe; + create?: InputMaybe; + update?: InputMaybe; + upsert?: InputMaybe; +}; + +export type CommentThreadUpdateWithoutCommentsInput = { + commentThreadTargets?: InputMaybe; + createdAt?: InputMaybe; + deletedAt?: InputMaybe; + id?: InputMaybe; + updatedAt?: InputMaybe; +}; + +export type CommentThreadUpsertWithoutCommentsInput = { + create: CommentThreadCreateWithoutCommentsInput; + update: CommentThreadUpdateWithoutCommentsInput; +}; + +export type CommentThreadWhereInput = { + AND?: InputMaybe>; + NOT?: InputMaybe>; + OR?: InputMaybe>; + commentThreadTargets?: InputMaybe; + comments?: InputMaybe; + createdAt?: InputMaybe; + deletedAt?: InputMaybe; + id?: InputMaybe; + updatedAt?: InputMaybe; +}; + +export type CommentThreadWhereUniqueInput = { + id?: InputMaybe; +}; + +export type CommentUpdateManyMutationInput = { + body?: InputMaybe; + createdAt?: InputMaybe; + deletedAt?: InputMaybe; + id?: InputMaybe; + updatedAt?: InputMaybe; +}; + +export type CommentUpdateManyWithWhereWithoutAuthorInput = { + data: CommentUpdateManyMutationInput; + where: CommentScalarWhereInput; +}; + +export type CommentUpdateManyWithoutAuthorNestedInput = { + connect?: InputMaybe>; + connectOrCreate?: InputMaybe>; + create?: InputMaybe>; + createMany?: InputMaybe; + delete?: InputMaybe>; + deleteMany?: InputMaybe>; + disconnect?: InputMaybe>; + set?: InputMaybe>; + update?: InputMaybe>; + updateMany?: InputMaybe>; + upsert?: InputMaybe>; +}; + +export type CommentUpdateWithWhereUniqueWithoutAuthorInput = { + data: CommentUpdateWithoutAuthorInput; + where: CommentWhereUniqueInput; +}; + +export type CommentUpdateWithoutAuthorInput = { + body?: InputMaybe; + commentThread?: InputMaybe; + createdAt?: InputMaybe; + deletedAt?: InputMaybe; + id?: InputMaybe; + updatedAt?: InputMaybe; +}; + +export type CommentUpsertWithWhereUniqueWithoutAuthorInput = { + create: CommentCreateWithoutAuthorInput; + update: CommentUpdateWithoutAuthorInput; + where: CommentWhereUniqueInput; +}; + +export type CommentWhereInput = { + AND?: InputMaybe>; + NOT?: InputMaybe>; + OR?: InputMaybe>; + author?: InputMaybe; + authorId?: InputMaybe; + body?: InputMaybe; + commentThread?: InputMaybe; + commentThreadId?: InputMaybe; + createdAt?: InputMaybe; + deletedAt?: InputMaybe; + id?: InputMaybe; + updatedAt?: InputMaybe; +}; + +export type CommentWhereUniqueInput = { + id?: InputMaybe; +}; + +export enum CommentableType { + Company = 'Company', + Person = 'Person' +} + export type Company = { __typename?: 'Company'; _count: CompanyCount; accountOwner?: Maybe; accountOwnerId?: Maybe; address: Scalars['String']; + commentThreads: Array; createdAt: Scalars['DateTime']; deletedAt?: Maybe; domainName: Scalars['String']; @@ -219,6 +608,17 @@ export type DateTimeNullableFilter = { notIn?: InputMaybe>; }; +export type EnumCommentableTypeFieldUpdateOperationsInput = { + set?: InputMaybe; +}; + +export type EnumCommentableTypeFilter = { + equals?: InputMaybe; + in?: InputMaybe>; + not?: InputMaybe; + notIn?: InputMaybe>; +}; + export type IntNullableFilter = { equals?: InputMaybe; gt?: InputMaybe; @@ -248,6 +648,8 @@ export type JsonNullableFilter = { export type Mutation = { __typename?: 'Mutation'; + createOneComment: Comment; + createOneCommentThread: CommentThread; createOneCompany: Company; createOnePerson: Person; deleteManyCompany: AffectedRows; @@ -257,6 +659,16 @@ export type Mutation = { }; +export type MutationCreateOneCommentArgs = { + data: CommentCreateInput; +}; + + +export type MutationCreateOneCommentThreadArgs = { + data: CommentThreadCreateInput; +}; + + export type MutationCreateOneCompanyArgs = { data: CompanyCreateInput; }; @@ -315,6 +727,13 @@ export type NestedDateTimeNullableFilter = { notIn?: InputMaybe>; }; +export type NestedEnumCommentableTypeFilter = { + equals?: InputMaybe; + in?: InputMaybe>; + not?: InputMaybe; + notIn?: InputMaybe>; +}; + export type NestedIntNullableFilter = { equals?: InputMaybe; gt?: InputMaybe; @@ -373,6 +792,7 @@ export type NullableStringFieldUpdateOperationsInput = { export type Person = { __typename?: 'Person'; city: Scalars['String']; + commentThreads: Array; company?: Maybe; companyId?: Maybe; createdAt: Scalars['DateTime']; @@ -814,10 +1234,9 @@ export type StringNullableFilter = { export type User = { __typename?: 'User'; - RefreshTokens?: Maybe>; - WorkspaceMember?: Maybe; _count: UserCount; avatarUrl?: Maybe; + comments?: Maybe>; companies?: Maybe>; createdAt: Scalars['DateTime']; deletedAt?: Maybe; @@ -831,17 +1250,9 @@ export type User = { metadata?: Maybe; passwordHash?: Maybe; phoneNumber?: Maybe; + refreshTokens?: Maybe>; updatedAt: Scalars['DateTime']; -}; - - -export type UserRefreshTokensArgs = { - cursor?: InputMaybe; - distinct?: InputMaybe>; - orderBy?: InputMaybe>; - skip?: InputMaybe; - take?: InputMaybe; - where?: InputMaybe; + workspaceMember?: Maybe; }; @@ -854,10 +1265,25 @@ export type UserCompaniesArgs = { where?: InputMaybe; }; + +export type UserRefreshTokensArgs = { + cursor?: InputMaybe; + distinct?: InputMaybe>; + orderBy?: InputMaybe>; + skip?: InputMaybe; + take?: InputMaybe; + where?: InputMaybe; +}; + export type UserCount = { __typename?: 'UserCount'; - RefreshTokens: Scalars['Int']; + comments: Scalars['Int']; companies: Scalars['Int']; + refreshTokens: Scalars['Int']; +}; + +export type UserCreateNestedOneWithoutCommentsInput = { + connect?: InputMaybe; }; export type UserCreateNestedOneWithoutCompaniesInput = { @@ -872,9 +1298,8 @@ export type UserCreateOrConnectWithoutCompaniesInput = { }; export type UserCreateWithoutCompaniesInput = { - RefreshTokens?: InputMaybe; - WorkspaceMember?: InputMaybe; avatarUrl?: InputMaybe; + comments?: InputMaybe; createdAt?: InputMaybe; deletedAt?: InputMaybe; disabled?: InputMaybe; @@ -887,13 +1312,14 @@ export type UserCreateWithoutCompaniesInput = { metadata?: InputMaybe; passwordHash?: InputMaybe; phoneNumber?: InputMaybe; + refreshTokens?: InputMaybe; updatedAt?: InputMaybe; + workspaceMember?: InputMaybe; }; export type UserOrderByWithRelationInput = { - RefreshTokens?: InputMaybe; - WorkspaceMember?: InputMaybe; avatarUrl?: InputMaybe; + comments?: InputMaybe; companies?: InputMaybe; createdAt?: InputMaybe; deletedAt?: InputMaybe; @@ -907,7 +1333,9 @@ export type UserOrderByWithRelationInput = { metadata?: InputMaybe; passwordHash?: InputMaybe; phoneNumber?: InputMaybe; + refreshTokens?: InputMaybe; updatedAt?: InputMaybe; + workspaceMember?: InputMaybe; }; export type UserRelationFilter = { @@ -943,9 +1371,8 @@ export type UserUpdateOneWithoutCompaniesNestedInput = { }; export type UserUpdateWithoutCompaniesInput = { - RefreshTokens?: InputMaybe; - WorkspaceMember?: InputMaybe; avatarUrl?: InputMaybe; + comments?: InputMaybe; createdAt?: InputMaybe; deletedAt?: InputMaybe; disabled?: InputMaybe; @@ -958,7 +1385,9 @@ export type UserUpdateWithoutCompaniesInput = { metadata?: InputMaybe; passwordHash?: InputMaybe; phoneNumber?: InputMaybe; + refreshTokens?: InputMaybe; updatedAt?: InputMaybe; + workspaceMember?: InputMaybe; }; export type UserUpsertWithoutCompaniesInput = { @@ -970,9 +1399,8 @@ export type UserWhereInput = { AND?: InputMaybe>; NOT?: InputMaybe>; OR?: InputMaybe>; - RefreshTokens?: InputMaybe; - WorkspaceMember?: InputMaybe; avatarUrl?: InputMaybe; + comments?: InputMaybe; companies?: InputMaybe; createdAt?: InputMaybe; deletedAt?: InputMaybe; @@ -986,7 +1414,9 @@ export type UserWhereInput = { metadata?: InputMaybe; passwordHash?: InputMaybe; phoneNumber?: InputMaybe; + refreshTokens?: InputMaybe; updatedAt?: InputMaybe; + workspaceMember?: InputMaybe; }; export type UserWhereUniqueInput = { @@ -996,8 +1426,9 @@ export type UserWhereUniqueInput = { export type Workspace = { __typename?: 'Workspace'; - WorkspaceMember?: Maybe>; _count: WorkspaceCount; + commentThreads?: Maybe>; + comments?: Maybe>; companies?: Maybe>; createdAt: Scalars['DateTime']; deletedAt?: Maybe; @@ -1007,13 +1438,16 @@ export type Workspace = { logo?: Maybe; people?: Maybe>; updatedAt: Scalars['DateTime']; + workspaceMember?: Maybe>; }; export type WorkspaceCount = { __typename?: 'WorkspaceCount'; - WorkspaceMember: Scalars['Int']; + commentThreads: Scalars['Int']; + comments: Scalars['Int']; companies: Scalars['Int']; people: Scalars['Int']; + workspaceMember: Scalars['Int']; }; export type WorkspaceMember = { @@ -1105,7 +1539,7 @@ export type GetCompaniesQueryVariables = Exact<{ }>; -export type GetCompaniesQuery = { __typename?: 'Query', findManyCompany: Array<{ __typename?: 'Company', id: string, domainName: string, name: string, createdAt: any, address: string, employees?: number | null, accountOwner?: { __typename?: 'User', id: string, email: string, displayName: string } | null }> }; +export type GetCompaniesQuery = { __typename?: 'Query', companies: Array<{ __typename?: 'Company', id: string, domainName: string, name: string, createdAt: any, address: string, employees?: number | null, accountOwner?: { __typename?: 'User', id: string, email: string, displayName: string } | null }> }; export type UpdateCompanyMutationVariables = Exact<{ id?: InputMaybe; @@ -1146,7 +1580,7 @@ export type GetPeopleQueryVariables = Exact<{ }>; -export type GetPeopleQuery = { __typename?: 'Query', findManyPerson: Array<{ __typename?: 'Person', id: string, phone: string, email: string, city: string, firstname: string, lastname: string, createdAt: any, company?: { __typename?: 'Company', id: string, name: string, domainName: string } | null }> }; +export type GetPeopleQuery = { __typename?: 'Query', people: Array<{ __typename?: 'Person', id: string, phone: string, email: string, city: string, firstname: string, lastname: string, createdAt: any, company?: { __typename?: 'Company', id: string, name: string, domainName: string } | null }> }; export type UpdatePeopleMutationVariables = Exact<{ id?: InputMaybe; @@ -1201,7 +1635,7 @@ export type SearchUserQueryQuery = { __typename?: 'Query', searchResults: Array< export type EmptyQueryQueryVariables = Exact<{ [key: string]: never; }>; -export type EmptyQueryQuery = { __typename?: 'Query', findManyUser: Array<{ __typename?: 'User', id: string }> }; +export type EmptyQueryQuery = { __typename?: 'Query', searchResults: Array<{ __typename?: 'User', id: string }> }; export type SearchCompanyQueryQueryVariables = Exact<{ where?: InputMaybe; @@ -1216,7 +1650,7 @@ export type GetCurrentUserQueryVariables = Exact<{ }>; -export type GetCurrentUserQuery = { __typename?: 'Query', findManyUser: Array<{ __typename?: 'User', id: string, email: string, displayName: string, workspaceMember?: { __typename?: 'WorkspaceMember', workspace: { __typename?: 'Workspace', id: string, domainName: string, displayName: string, logo?: string | null } } | null }> }; +export type GetCurrentUserQuery = { __typename?: 'Query', users: Array<{ __typename?: 'User', id: string, email: string, displayName: string, workspaceMember?: { __typename?: 'WorkspaceMember', workspace: { __typename?: 'Workspace', id: string, domainName: string, displayName: string, logo?: string | null } } | null }> }; export type GetUsersQueryVariables = Exact<{ [key: string]: never; }>; @@ -1226,7 +1660,7 @@ export type GetUsersQuery = { __typename?: 'Query', findManyUser: Array<{ __type export const GetCompaniesDocument = gql` query GetCompanies($orderBy: [CompanyOrderByWithRelationInput!], $where: CompanyWhereInput) { - findManyCompany(orderBy: $orderBy, where: $where) { + companies: findManyCompany(orderBy: $orderBy, where: $where) { id domainName name @@ -1402,7 +1836,7 @@ export type DeleteCompaniesMutationResult = Apollo.MutationResult; export const GetPeopleDocument = gql` query GetPeople($orderBy: [PersonOrderByWithRelationInput!], $where: PersonWhereInput, $limit: Int) { - findManyPerson(orderBy: $orderBy, where: $where, take: $limit) { + people: findManyPerson(orderBy: $orderBy, where: $where, take: $limit) { id phone email @@ -1669,7 +2103,7 @@ export type SearchUserQueryLazyQueryHookResult = ReturnType; export const EmptyQueryDocument = gql` query EmptyQuery { - findManyUser { + searchResults: findManyUser { id } } @@ -1741,11 +2175,11 @@ export type SearchCompanyQueryLazyQueryHookResult = ReturnType; export const GetCurrentUserDocument = gql` query getCurrentUser($uuid: String) { - findManyUser(where: {id: {equals: $uuid}}) { + users: findManyUser(where: {id: {equals: $uuid}}) { id email displayName - workspaceMember: WorkspaceMember { + workspaceMember { workspace { id domainName diff --git a/front/src/pages/auth/Callback.tsx b/front/src/pages/auth/Callback.tsx index b99d92565..50815bfb6 100644 --- a/front/src/pages/auth/Callback.tsx +++ b/front/src/pages/auth/Callback.tsx @@ -7,7 +7,6 @@ function Callback() { const [isLoading, setIsLoading] = useState(true); const refreshToken = searchParams.get('refreshToken'); - console.log('refreshToken', refreshToken); localStorage.setItem('refreshToken', refreshToken || ''); const navigate = useNavigate(); diff --git a/front/src/services/api/users/index.tsx b/front/src/services/api/users/index.tsx index a896ecaaf..081db2cf1 100644 --- a/front/src/services/api/users/index.tsx +++ b/front/src/services/api/users/index.tsx @@ -7,7 +7,7 @@ export const GET_CURRENT_USER = gql` id email displayName - workspaceMember: WorkspaceMember { + workspaceMember { workspace { id domainName diff --git a/server/src/api/@generated/comment-thread-target/aggregate-comment-thread-target.output.ts b/server/src/api/@generated/comment-thread-target/aggregate-comment-thread-target.output.ts new file mode 100644 index 000000000..61d5a3078 --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/aggregate-comment-thread-target.output.ts @@ -0,0 +1,17 @@ +import { Field } from '@nestjs/graphql'; +import { ObjectType } 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'; + +@ObjectType() +export class AggregateCommentThreadTarget { + @Field(() => CommentThreadTargetCountAggregate, { nullable: true }) + _count?: CommentThreadTargetCountAggregate; + + @Field(() => CommentThreadTargetMinAggregate, { nullable: true }) + _min?: CommentThreadTargetMinAggregate; + + @Field(() => CommentThreadTargetMaxAggregate, { nullable: true }) + _max?: CommentThreadTargetMaxAggregate; +} diff --git a/server/src/api/@generated/comment-thread-target/comment-thread-target-aggregate.args.ts b/server/src/api/@generated/comment-thread-target/comment-thread-target-aggregate.args.ts new file mode 100644 index 000000000..0fae7e0e1 --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/comment-thread-target-aggregate.args.ts @@ -0,0 +1,40 @@ +import { Field } from '@nestjs/graphql'; +import { ArgsType } from '@nestjs/graphql'; +import { CommentThreadTargetWhereInput } from './comment-thread-target-where.input'; +import { Type } from 'class-transformer'; +import { CommentThreadTargetOrderByWithRelationInput } from './comment-thread-target-order-by-with-relation.input'; +import { CommentThreadTargetWhereUniqueInput } from './comment-thread-target-where-unique.input'; +import { Int } from '@nestjs/graphql'; +import { CommentThreadTargetCountAggregateInput } from './comment-thread-target-count-aggregate.input'; +import { CommentThreadTargetMinAggregateInput } from './comment-thread-target-min-aggregate.input'; +import { CommentThreadTargetMaxAggregateInput } from './comment-thread-target-max-aggregate.input'; + +@ArgsType() +export class CommentThreadTargetAggregateArgs { + @Field(() => CommentThreadTargetWhereInput, { nullable: true }) + @Type(() => CommentThreadTargetWhereInput) + where?: CommentThreadTargetWhereInput; + + @Field(() => [CommentThreadTargetOrderByWithRelationInput], { + nullable: true, + }) + orderBy?: Array; + + @Field(() => CommentThreadTargetWhereUniqueInput, { nullable: true }) + cursor?: CommentThreadTargetWhereUniqueInput; + + @Field(() => Int, { nullable: true }) + take?: number; + + @Field(() => Int, { nullable: true }) + skip?: number; + + @Field(() => CommentThreadTargetCountAggregateInput, { nullable: true }) + _count?: CommentThreadTargetCountAggregateInput; + + @Field(() => CommentThreadTargetMinAggregateInput, { nullable: true }) + _min?: CommentThreadTargetMinAggregateInput; + + @Field(() => CommentThreadTargetMaxAggregateInput, { nullable: true }) + _max?: CommentThreadTargetMaxAggregateInput; +} diff --git a/server/src/api/@generated/comment-thread-target/comment-thread-target-count-aggregate.input.ts b/server/src/api/@generated/comment-thread-target/comment-thread-target-count-aggregate.input.ts new file mode 100644 index 000000000..9d127add4 --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/comment-thread-target-count-aggregate.input.ts @@ -0,0 +1,29 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; + +@InputType() +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; + + @Field(() => Boolean, { nullable: true }) + commentableType?: true; + + @Field(() => Boolean, { nullable: true }) + commentableId?: true; + + @Field(() => Boolean, { nullable: true }) + _all?: true; +} diff --git a/server/src/api/@generated/comment-thread-target/comment-thread-target-count-aggregate.output.ts b/server/src/api/@generated/comment-thread-target/comment-thread-target-count-aggregate.output.ts new file mode 100644 index 000000000..736eaed8c --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/comment-thread-target-count-aggregate.output.ts @@ -0,0 +1,30 @@ +import { Field } from '@nestjs/graphql'; +import { ObjectType } from '@nestjs/graphql'; +import { Int } from '@nestjs/graphql'; + +@ObjectType() +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; + + @Field(() => Int, { nullable: false }) + commentableType!: number; + + @Field(() => Int, { nullable: false }) + commentableId!: number; + + @Field(() => Int, { nullable: false }) + _all!: number; +} diff --git a/server/src/api/@generated/comment-thread-target/comment-thread-target-count-order-by-aggregate.input.ts b/server/src/api/@generated/comment-thread-target/comment-thread-target-count-order-by-aggregate.input.ts new file mode 100644 index 000000000..ef1e5303b --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/comment-thread-target-count-order-by-aggregate.input.ts @@ -0,0 +1,27 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { SortOrder } from '../prisma/sort-order.enum'; + +@InputType() +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; + + @Field(() => SortOrder, { nullable: true }) + commentableType?: keyof typeof SortOrder; + + @Field(() => SortOrder, { nullable: true }) + commentableId?: keyof typeof SortOrder; +} diff --git a/server/src/api/@generated/comment-thread-target/comment-thread-target-create-many-comment-thread-input-envelope.input.ts b/server/src/api/@generated/comment-thread-target/comment-thread-target-create-many-comment-thread-input-envelope.input.ts new file mode 100644 index 000000000..bfcaf936c --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/comment-thread-target-create-many-comment-thread-input-envelope.input.ts @@ -0,0 +1,16 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentThreadTargetCreateManyCommentThreadInput } from './comment-thread-target-create-many-comment-thread.input'; +import { Type } from 'class-transformer'; + +@InputType() +export class CommentThreadTargetCreateManyCommentThreadInputEnvelope { + @Field(() => [CommentThreadTargetCreateManyCommentThreadInput], { + nullable: false, + }) + @Type(() => CommentThreadTargetCreateManyCommentThreadInput) + data!: Array; + + @Field(() => Boolean, { nullable: true }) + skipDuplicates?: boolean; +} diff --git a/server/src/api/@generated/comment-thread-target/comment-thread-target-create-many-comment-thread.input.ts b/server/src/api/@generated/comment-thread-target/comment-thread-target-create-many-comment-thread.input.ts new file mode 100644 index 000000000..1642a246a --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/comment-thread-target-create-many-comment-thread.input.ts @@ -0,0 +1,24 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentableType } from '../prisma/commentable-type.enum'; + +@InputType() +export class CommentThreadTargetCreateManyCommentThreadInput { + @Field(() => String, { nullable: false }) + 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; +} diff --git a/server/src/api/@generated/comment-thread-target/comment-thread-target-create-many.input.ts b/server/src/api/@generated/comment-thread-target/comment-thread-target-create-many.input.ts new file mode 100644 index 000000000..1dbb18c97 --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/comment-thread-target-create-many.input.ts @@ -0,0 +1,27 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentableType } from '../prisma/commentable-type.enum'; + +@InputType() +export class CommentThreadTargetCreateManyInput { + @Field(() => String, { nullable: false }) + 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; + + @Field(() => CommentableType, { nullable: false }) + commentableType!: keyof typeof CommentableType; + + @Field(() => String, { nullable: false }) + commentableId!: string; +} diff --git a/server/src/api/@generated/comment-thread-target/comment-thread-target-create-nested-many-without-comment-thread.input.ts b/server/src/api/@generated/comment-thread-target/comment-thread-target-create-nested-many-without-comment-thread.input.ts new file mode 100644 index 000000000..82d2fb0b0 --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/comment-thread-target-create-nested-many-without-comment-thread.input.ts @@ -0,0 +1,26 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentThreadTargetCreateWithoutCommentThreadInput } from './comment-thread-target-create-without-comment-thread.input'; +import { HideField } from '@nestjs/graphql'; +import { CommentThreadTargetCreateOrConnectWithoutCommentThreadInput } from './comment-thread-target-create-or-connect-without-comment-thread.input'; +import { CommentThreadTargetCreateManyCommentThreadInputEnvelope } from './comment-thread-target-create-many-comment-thread-input-envelope.input'; +import { Type } from 'class-transformer'; +import { CommentThreadTargetWhereUniqueInput } from './comment-thread-target-where-unique.input'; + +@InputType() +export class CommentThreadTargetCreateNestedManyWithoutCommentThreadInput { + @HideField() + create?: Array; + + @HideField() + connectOrCreate?: Array; + + @Field(() => CommentThreadTargetCreateManyCommentThreadInputEnvelope, { + nullable: true, + }) + @Type(() => CommentThreadTargetCreateManyCommentThreadInputEnvelope) + createMany?: CommentThreadTargetCreateManyCommentThreadInputEnvelope; + + @HideField() + connect?: Array; +} diff --git a/server/src/api/@generated/comment-thread-target/comment-thread-target-create-or-connect-without-comment-thread.input.ts b/server/src/api/@generated/comment-thread-target/comment-thread-target-create-or-connect-without-comment-thread.input.ts new file mode 100644 index 000000000..4e2df0345 --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/comment-thread-target-create-or-connect-without-comment-thread.input.ts @@ -0,0 +1,18 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentThreadTargetWhereUniqueInput } from './comment-thread-target-where-unique.input'; +import { Type } from 'class-transformer'; +import { CommentThreadTargetCreateWithoutCommentThreadInput } from './comment-thread-target-create-without-comment-thread.input'; + +@InputType() +export class CommentThreadTargetCreateOrConnectWithoutCommentThreadInput { + @Field(() => CommentThreadTargetWhereUniqueInput, { nullable: false }) + @Type(() => CommentThreadTargetWhereUniqueInput) + where!: CommentThreadTargetWhereUniqueInput; + + @Field(() => CommentThreadTargetCreateWithoutCommentThreadInput, { + nullable: false, + }) + @Type(() => CommentThreadTargetCreateWithoutCommentThreadInput) + create!: CommentThreadTargetCreateWithoutCommentThreadInput; +} diff --git a/server/src/api/@generated/comment-thread-target/comment-thread-target-create-without-comment-thread.input.ts b/server/src/api/@generated/comment-thread-target/comment-thread-target-create-without-comment-thread.input.ts new file mode 100644 index 000000000..ad36e97e4 --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/comment-thread-target-create-without-comment-thread.input.ts @@ -0,0 +1,24 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentableType } from '../prisma/commentable-type.enum'; + +@InputType() +export class CommentThreadTargetCreateWithoutCommentThreadInput { + @Field(() => String, { nullable: false }) + 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; +} diff --git a/server/src/api/@generated/comment-thread-target/comment-thread-target-create.input.ts b/server/src/api/@generated/comment-thread-target/comment-thread-target-create.input.ts new file mode 100644 index 000000000..2a487415d --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/comment-thread-target-create.input.ts @@ -0,0 +1,30 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentableType } from '../prisma/commentable-type.enum'; +import { CommentThreadCreateNestedOneWithoutCommentThreadTargetsInput } from '../comment-thread/comment-thread-create-nested-one-without-comment-thread-targets.input'; + +@InputType() +export class CommentThreadTargetCreateInput { + @Field(() => String, { nullable: false }) + 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; + + @Field(() => CommentThreadCreateNestedOneWithoutCommentThreadTargetsInput, { + nullable: false, + }) + commentThread!: CommentThreadCreateNestedOneWithoutCommentThreadTargetsInput; +} diff --git a/server/src/api/@generated/comment-thread-target/comment-thread-target-group-by.args.ts b/server/src/api/@generated/comment-thread-target/comment-thread-target-group-by.args.ts new file mode 100644 index 000000000..6199a10c4 --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/comment-thread-target-group-by.args.ts @@ -0,0 +1,46 @@ +import { Field } from '@nestjs/graphql'; +import { ArgsType } from '@nestjs/graphql'; +import { CommentThreadTargetWhereInput } from './comment-thread-target-where.input'; +import { Type } from 'class-transformer'; +import { CommentThreadTargetOrderByWithAggregationInput } from './comment-thread-target-order-by-with-aggregation.input'; +import { CommentThreadTargetScalarFieldEnum } from './comment-thread-target-scalar-field.enum'; +import { CommentThreadTargetScalarWhereWithAggregatesInput } from './comment-thread-target-scalar-where-with-aggregates.input'; +import { Int } from '@nestjs/graphql'; +import { CommentThreadTargetCountAggregateInput } from './comment-thread-target-count-aggregate.input'; +import { CommentThreadTargetMinAggregateInput } from './comment-thread-target-min-aggregate.input'; +import { CommentThreadTargetMaxAggregateInput } from './comment-thread-target-max-aggregate.input'; + +@ArgsType() +export class CommentThreadTargetGroupByArgs { + @Field(() => CommentThreadTargetWhereInput, { nullable: true }) + @Type(() => CommentThreadTargetWhereInput) + where?: CommentThreadTargetWhereInput; + + @Field(() => [CommentThreadTargetOrderByWithAggregationInput], { + nullable: true, + }) + orderBy?: Array; + + @Field(() => [CommentThreadTargetScalarFieldEnum], { nullable: false }) + by!: Array; + + @Field(() => CommentThreadTargetScalarWhereWithAggregatesInput, { + nullable: true, + }) + having?: CommentThreadTargetScalarWhereWithAggregatesInput; + + @Field(() => Int, { nullable: true }) + take?: number; + + @Field(() => Int, { nullable: true }) + skip?: number; + + @Field(() => CommentThreadTargetCountAggregateInput, { nullable: true }) + _count?: CommentThreadTargetCountAggregateInput; + + @Field(() => CommentThreadTargetMinAggregateInput, { nullable: true }) + _min?: CommentThreadTargetMinAggregateInput; + + @Field(() => CommentThreadTargetMaxAggregateInput, { nullable: true }) + _max?: CommentThreadTargetMaxAggregateInput; +} diff --git a/server/src/api/@generated/comment-thread-target/comment-thread-target-group-by.output.ts b/server/src/api/@generated/comment-thread-target/comment-thread-target-group-by.output.ts new file mode 100644 index 000000000..f12e3b0ef --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/comment-thread-target-group-by.output.ts @@ -0,0 +1,39 @@ +import { Field } from '@nestjs/graphql'; +import { ObjectType } from '@nestjs/graphql'; +import { CommentableType } from '../prisma/commentable-type.enum'; +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'; + +@ObjectType() +export class CommentThreadTargetGroupBy { + @Field(() => String, { nullable: false }) + 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; + + @Field(() => CommentableType, { nullable: false }) + commentableType!: keyof typeof CommentableType; + + @Field(() => String, { nullable: false }) + commentableId!: string; + + @Field(() => CommentThreadTargetCountAggregate, { nullable: true }) + _count?: CommentThreadTargetCountAggregate; + + @Field(() => CommentThreadTargetMinAggregate, { nullable: true }) + _min?: CommentThreadTargetMinAggregate; + + @Field(() => CommentThreadTargetMaxAggregate, { nullable: true }) + _max?: CommentThreadTargetMaxAggregate; +} diff --git a/server/src/api/@generated/comment-thread-target/comment-thread-target-list-relation-filter.input.ts b/server/src/api/@generated/comment-thread-target/comment-thread-target-list-relation-filter.input.ts new file mode 100644 index 000000000..0beb36062 --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/comment-thread-target-list-relation-filter.input.ts @@ -0,0 +1,15 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentThreadTargetWhereInput } from './comment-thread-target-where.input'; + +@InputType() +export class CommentThreadTargetListRelationFilter { + @Field(() => CommentThreadTargetWhereInput, { nullable: true }) + every?: CommentThreadTargetWhereInput; + + @Field(() => CommentThreadTargetWhereInput, { nullable: true }) + some?: CommentThreadTargetWhereInput; + + @Field(() => CommentThreadTargetWhereInput, { nullable: true }) + none?: CommentThreadTargetWhereInput; +} diff --git a/server/src/api/@generated/comment-thread-target/comment-thread-target-max-aggregate.input.ts b/server/src/api/@generated/comment-thread-target/comment-thread-target-max-aggregate.input.ts new file mode 100644 index 000000000..19b32ce4f --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/comment-thread-target-max-aggregate.input.ts @@ -0,0 +1,26 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; + +@InputType() +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; + + @Field(() => Boolean, { nullable: true }) + commentableType?: true; + + @Field(() => Boolean, { nullable: true }) + commentableId?: true; +} diff --git a/server/src/api/@generated/comment-thread-target/comment-thread-target-max-aggregate.output.ts b/server/src/api/@generated/comment-thread-target/comment-thread-target-max-aggregate.output.ts new file mode 100644 index 000000000..13499da7d --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/comment-thread-target-max-aggregate.output.ts @@ -0,0 +1,27 @@ +import { Field } from '@nestjs/graphql'; +import { ObjectType } from '@nestjs/graphql'; +import { CommentableType } from '../prisma/commentable-type.enum'; + +@ObjectType() +export class CommentThreadTargetMaxAggregate { + @Field(() => String, { nullable: true }) + 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; + + @Field(() => CommentableType, { nullable: true }) + commentableType?: keyof typeof CommentableType; + + @Field(() => String, { nullable: true }) + commentableId?: string; +} diff --git a/server/src/api/@generated/comment-thread-target/comment-thread-target-max-order-by-aggregate.input.ts b/server/src/api/@generated/comment-thread-target/comment-thread-target-max-order-by-aggregate.input.ts new file mode 100644 index 000000000..15c9cc132 --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/comment-thread-target-max-order-by-aggregate.input.ts @@ -0,0 +1,27 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { SortOrder } from '../prisma/sort-order.enum'; + +@InputType() +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; + + @Field(() => SortOrder, { nullable: true }) + commentableType?: keyof typeof SortOrder; + + @Field(() => SortOrder, { nullable: true }) + commentableId?: keyof typeof SortOrder; +} diff --git a/server/src/api/@generated/comment-thread-target/comment-thread-target-min-aggregate.input.ts b/server/src/api/@generated/comment-thread-target/comment-thread-target-min-aggregate.input.ts new file mode 100644 index 000000000..1d11e8257 --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/comment-thread-target-min-aggregate.input.ts @@ -0,0 +1,26 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; + +@InputType() +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; + + @Field(() => Boolean, { nullable: true }) + commentableType?: true; + + @Field(() => Boolean, { nullable: true }) + commentableId?: true; +} diff --git a/server/src/api/@generated/comment-thread-target/comment-thread-target-min-aggregate.output.ts b/server/src/api/@generated/comment-thread-target/comment-thread-target-min-aggregate.output.ts new file mode 100644 index 000000000..3cfafede9 --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/comment-thread-target-min-aggregate.output.ts @@ -0,0 +1,27 @@ +import { Field } from '@nestjs/graphql'; +import { ObjectType } from '@nestjs/graphql'; +import { CommentableType } from '../prisma/commentable-type.enum'; + +@ObjectType() +export class CommentThreadTargetMinAggregate { + @Field(() => String, { nullable: true }) + 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; + + @Field(() => CommentableType, { nullable: true }) + commentableType?: keyof typeof CommentableType; + + @Field(() => String, { nullable: true }) + commentableId?: string; +} diff --git a/server/src/api/@generated/comment-thread-target/comment-thread-target-min-order-by-aggregate.input.ts b/server/src/api/@generated/comment-thread-target/comment-thread-target-min-order-by-aggregate.input.ts new file mode 100644 index 000000000..a5daba5ee --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/comment-thread-target-min-order-by-aggregate.input.ts @@ -0,0 +1,27 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { SortOrder } from '../prisma/sort-order.enum'; + +@InputType() +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; + + @Field(() => SortOrder, { nullable: true }) + commentableType?: keyof typeof SortOrder; + + @Field(() => SortOrder, { nullable: true }) + commentableId?: keyof typeof SortOrder; +} diff --git a/server/src/api/@generated/comment-thread-target/comment-thread-target-order-by-relation-aggregate.input.ts b/server/src/api/@generated/comment-thread-target/comment-thread-target-order-by-relation-aggregate.input.ts new file mode 100644 index 000000000..c121b1834 --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/comment-thread-target-order-by-relation-aggregate.input.ts @@ -0,0 +1,9 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { SortOrder } from '../prisma/sort-order.enum'; + +@InputType() +export class CommentThreadTargetOrderByRelationAggregateInput { + @Field(() => SortOrder, { nullable: true }) + _count?: keyof typeof SortOrder; +} diff --git a/server/src/api/@generated/comment-thread-target/comment-thread-target-order-by-with-aggregation.input.ts b/server/src/api/@generated/comment-thread-target/comment-thread-target-order-by-with-aggregation.input.ts new file mode 100644 index 000000000..decb06eb0 --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/comment-thread-target-order-by-with-aggregation.input.ts @@ -0,0 +1,41 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { SortOrder } from '../prisma/sort-order.enum'; +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'; + +@InputType() +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; + + @Field(() => SortOrder, { nullable: true }) + commentableType?: keyof typeof SortOrder; + + @Field(() => SortOrder, { nullable: true }) + commentableId?: keyof typeof SortOrder; + + @Field(() => CommentThreadTargetCountOrderByAggregateInput, { + nullable: true, + }) + _count?: CommentThreadTargetCountOrderByAggregateInput; + + @Field(() => CommentThreadTargetMaxOrderByAggregateInput, { nullable: true }) + _max?: CommentThreadTargetMaxOrderByAggregateInput; + + @Field(() => CommentThreadTargetMinOrderByAggregateInput, { nullable: true }) + _min?: CommentThreadTargetMinOrderByAggregateInput; +} diff --git a/server/src/api/@generated/comment-thread-target/comment-thread-target-order-by-with-relation.input.ts b/server/src/api/@generated/comment-thread-target/comment-thread-target-order-by-with-relation.input.ts new file mode 100644 index 000000000..0be52856d --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/comment-thread-target-order-by-with-relation.input.ts @@ -0,0 +1,31 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { SortOrder } from '../prisma/sort-order.enum'; +import { CommentThreadOrderByWithRelationInput } from '../comment-thread/comment-thread-order-by-with-relation.input'; + +@InputType() +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; + + @Field(() => SortOrder, { nullable: true }) + commentableType?: keyof typeof SortOrder; + + @Field(() => SortOrder, { nullable: true }) + commentableId?: keyof typeof SortOrder; + + @Field(() => CommentThreadOrderByWithRelationInput, { nullable: true }) + commentThread?: CommentThreadOrderByWithRelationInput; +} diff --git a/server/src/api/@generated/comment-thread-target/comment-thread-target-scalar-field.enum.ts b/server/src/api/@generated/comment-thread-target/comment-thread-target-scalar-field.enum.ts new file mode 100644 index 000000000..56d7e0c52 --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/comment-thread-target-scalar-field.enum.ts @@ -0,0 +1,16 @@ +import { registerEnumType } from '@nestjs/graphql'; + +export enum CommentThreadTargetScalarFieldEnum { + id = 'id', + createdAt = 'createdAt', + updatedAt = 'updatedAt', + deletedAt = 'deletedAt', + commentThreadId = 'commentThreadId', + commentableType = 'commentableType', + commentableId = 'commentableId', +} + +registerEnumType(CommentThreadTargetScalarFieldEnum, { + name: 'CommentThreadTargetScalarFieldEnum', + description: undefined, +}); diff --git a/server/src/api/@generated/comment-thread-target/comment-thread-target-scalar-where-with-aggregates.input.ts b/server/src/api/@generated/comment-thread-target/comment-thread-target-scalar-where-with-aggregates.input.ts new file mode 100644 index 000000000..39ec613ca --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/comment-thread-target-scalar-where-with-aggregates.input.ts @@ -0,0 +1,45 @@ +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'; + +@InputType() +export class CommentThreadTargetScalarWhereWithAggregatesInput { + @Field(() => [CommentThreadTargetScalarWhereWithAggregatesInput], { + nullable: true, + }) + AND?: Array; + + @Field(() => [CommentThreadTargetScalarWhereWithAggregatesInput], { + nullable: true, + }) + OR?: Array; + + @Field(() => [CommentThreadTargetScalarWhereWithAggregatesInput], { + nullable: true, + }) + NOT?: Array; + + @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; + + @Field(() => EnumCommentableTypeWithAggregatesFilter, { nullable: true }) + commentableType?: EnumCommentableTypeWithAggregatesFilter; + + @Field(() => StringWithAggregatesFilter, { nullable: true }) + commentableId?: StringWithAggregatesFilter; +} diff --git a/server/src/api/@generated/comment-thread-target/comment-thread-target-scalar-where.input.ts b/server/src/api/@generated/comment-thread-target/comment-thread-target-scalar-where.input.ts new file mode 100644 index 000000000..a2fcb8872 --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/comment-thread-target-scalar-where.input.ts @@ -0,0 +1,39 @@ +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'; + +@InputType() +export class CommentThreadTargetScalarWhereInput { + @Field(() => [CommentThreadTargetScalarWhereInput], { nullable: true }) + AND?: Array; + + @Field(() => [CommentThreadTargetScalarWhereInput], { nullable: true }) + OR?: Array; + + @Field(() => [CommentThreadTargetScalarWhereInput], { nullable: true }) + NOT?: Array; + + @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; + + @Field(() => EnumCommentableTypeFilter, { nullable: true }) + commentableType?: EnumCommentableTypeFilter; + + @Field(() => StringFilter, { nullable: true }) + commentableId?: StringFilter; +} diff --git a/server/src/api/@generated/comment-thread-target/comment-thread-target-unchecked-create-nested-many-without-comment-thread.input.ts b/server/src/api/@generated/comment-thread-target/comment-thread-target-unchecked-create-nested-many-without-comment-thread.input.ts new file mode 100644 index 000000000..fc62505b7 --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/comment-thread-target-unchecked-create-nested-many-without-comment-thread.input.ts @@ -0,0 +1,32 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentThreadTargetCreateWithoutCommentThreadInput } from './comment-thread-target-create-without-comment-thread.input'; +import { Type } from 'class-transformer'; +import { CommentThreadTargetCreateOrConnectWithoutCommentThreadInput } from './comment-thread-target-create-or-connect-without-comment-thread.input'; +import { CommentThreadTargetCreateManyCommentThreadInputEnvelope } from './comment-thread-target-create-many-comment-thread-input-envelope.input'; +import { CommentThreadTargetWhereUniqueInput } from './comment-thread-target-where-unique.input'; + +@InputType() +export class CommentThreadTargetUncheckedCreateNestedManyWithoutCommentThreadInput { + @Field(() => [CommentThreadTargetCreateWithoutCommentThreadInput], { + nullable: true, + }) + @Type(() => CommentThreadTargetCreateWithoutCommentThreadInput) + create?: Array; + + @Field(() => [CommentThreadTargetCreateOrConnectWithoutCommentThreadInput], { + nullable: true, + }) + @Type(() => CommentThreadTargetCreateOrConnectWithoutCommentThreadInput) + connectOrCreate?: Array; + + @Field(() => CommentThreadTargetCreateManyCommentThreadInputEnvelope, { + nullable: true, + }) + @Type(() => CommentThreadTargetCreateManyCommentThreadInputEnvelope) + createMany?: CommentThreadTargetCreateManyCommentThreadInputEnvelope; + + @Field(() => [CommentThreadTargetWhereUniqueInput], { nullable: true }) + @Type(() => CommentThreadTargetWhereUniqueInput) + connect?: Array; +} diff --git a/server/src/api/@generated/comment-thread-target/comment-thread-target-unchecked-create-without-comment-thread.input.ts b/server/src/api/@generated/comment-thread-target/comment-thread-target-unchecked-create-without-comment-thread.input.ts new file mode 100644 index 000000000..5750b95ef --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/comment-thread-target-unchecked-create-without-comment-thread.input.ts @@ -0,0 +1,24 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentableType } from '../prisma/commentable-type.enum'; + +@InputType() +export class CommentThreadTargetUncheckedCreateWithoutCommentThreadInput { + @Field(() => String, { nullable: false }) + 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; +} diff --git a/server/src/api/@generated/comment-thread-target/comment-thread-target-unchecked-create.input.ts b/server/src/api/@generated/comment-thread-target/comment-thread-target-unchecked-create.input.ts new file mode 100644 index 000000000..087af460d --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/comment-thread-target-unchecked-create.input.ts @@ -0,0 +1,27 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentableType } from '../prisma/commentable-type.enum'; + +@InputType() +export class CommentThreadTargetUncheckedCreateInput { + @Field(() => String, { nullable: false }) + 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; + + @Field(() => CommentableType, { nullable: false }) + commentableType!: keyof typeof CommentableType; + + @Field(() => String, { nullable: false }) + commentableId!: string; +} diff --git a/server/src/api/@generated/comment-thread-target/comment-thread-target-unchecked-update-many-without-comment-thread-nested.input.ts b/server/src/api/@generated/comment-thread-target/comment-thread-target-unchecked-update-many-without-comment-thread-nested.input.ts new file mode 100644 index 000000000..615780fe1 --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/comment-thread-target-unchecked-update-many-without-comment-thread-nested.input.ts @@ -0,0 +1,73 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentThreadTargetCreateWithoutCommentThreadInput } from './comment-thread-target-create-without-comment-thread.input'; +import { Type } from 'class-transformer'; +import { CommentThreadTargetCreateOrConnectWithoutCommentThreadInput } from './comment-thread-target-create-or-connect-without-comment-thread.input'; +import { CommentThreadTargetUpsertWithWhereUniqueWithoutCommentThreadInput } from './comment-thread-target-upsert-with-where-unique-without-comment-thread.input'; +import { CommentThreadTargetCreateManyCommentThreadInputEnvelope } from './comment-thread-target-create-many-comment-thread-input-envelope.input'; +import { CommentThreadTargetWhereUniqueInput } from './comment-thread-target-where-unique.input'; +import { CommentThreadTargetUpdateWithWhereUniqueWithoutCommentThreadInput } from './comment-thread-target-update-with-where-unique-without-comment-thread.input'; +import { CommentThreadTargetUpdateManyWithWhereWithoutCommentThreadInput } from './comment-thread-target-update-many-with-where-without-comment-thread.input'; +import { CommentThreadTargetScalarWhereInput } from './comment-thread-target-scalar-where.input'; + +@InputType() +export class CommentThreadTargetUncheckedUpdateManyWithoutCommentThreadNestedInput { + @Field(() => [CommentThreadTargetCreateWithoutCommentThreadInput], { + nullable: true, + }) + @Type(() => CommentThreadTargetCreateWithoutCommentThreadInput) + create?: Array; + + @Field(() => [CommentThreadTargetCreateOrConnectWithoutCommentThreadInput], { + nullable: true, + }) + @Type(() => CommentThreadTargetCreateOrConnectWithoutCommentThreadInput) + connectOrCreate?: Array; + + @Field( + () => [CommentThreadTargetUpsertWithWhereUniqueWithoutCommentThreadInput], + { nullable: true }, + ) + @Type(() => CommentThreadTargetUpsertWithWhereUniqueWithoutCommentThreadInput) + upsert?: Array; + + @Field(() => CommentThreadTargetCreateManyCommentThreadInputEnvelope, { + nullable: true, + }) + @Type(() => CommentThreadTargetCreateManyCommentThreadInputEnvelope) + createMany?: CommentThreadTargetCreateManyCommentThreadInputEnvelope; + + @Field(() => [CommentThreadTargetWhereUniqueInput], { nullable: true }) + @Type(() => CommentThreadTargetWhereUniqueInput) + set?: Array; + + @Field(() => [CommentThreadTargetWhereUniqueInput], { nullable: true }) + @Type(() => CommentThreadTargetWhereUniqueInput) + disconnect?: Array; + + @Field(() => [CommentThreadTargetWhereUniqueInput], { nullable: true }) + @Type(() => CommentThreadTargetWhereUniqueInput) + delete?: Array; + + @Field(() => [CommentThreadTargetWhereUniqueInput], { nullable: true }) + @Type(() => CommentThreadTargetWhereUniqueInput) + connect?: Array; + + @Field( + () => [CommentThreadTargetUpdateWithWhereUniqueWithoutCommentThreadInput], + { nullable: true }, + ) + @Type(() => CommentThreadTargetUpdateWithWhereUniqueWithoutCommentThreadInput) + update?: Array; + + @Field( + () => [CommentThreadTargetUpdateManyWithWhereWithoutCommentThreadInput], + { nullable: true }, + ) + @Type(() => CommentThreadTargetUpdateManyWithWhereWithoutCommentThreadInput) + updateMany?: Array; + + @Field(() => [CommentThreadTargetScalarWhereInput], { nullable: true }) + @Type(() => CommentThreadTargetScalarWhereInput) + deleteMany?: Array; +} diff --git a/server/src/api/@generated/comment-thread-target/comment-thread-target-unchecked-update-many-without-comment-thread-targets.input.ts b/server/src/api/@generated/comment-thread-target/comment-thread-target-unchecked-update-many-without-comment-thread-targets.input.ts new file mode 100644 index 000000000..15a9d5967 --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/comment-thread-target-unchecked-update-many-without-comment-thread-targets.input.ts @@ -0,0 +1,29 @@ +import { Field } from '@nestjs/graphql'; +import { 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'; + +@InputType() +export class CommentThreadTargetUncheckedUpdateManyWithoutCommentThreadTargetsInput { + @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; +} diff --git a/server/src/api/@generated/comment-thread-target/comment-thread-target-unchecked-update-many.input.ts b/server/src/api/@generated/comment-thread-target/comment-thread-target-unchecked-update-many.input.ts new file mode 100644 index 000000000..75e768767 --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/comment-thread-target-unchecked-update-many.input.ts @@ -0,0 +1,32 @@ +import { Field } from '@nestjs/graphql'; +import { 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'; + +@InputType() +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; + + @Field(() => EnumCommentableTypeFieldUpdateOperationsInput, { + nullable: true, + }) + commentableType?: EnumCommentableTypeFieldUpdateOperationsInput; + + @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) + commentableId?: StringFieldUpdateOperationsInput; +} diff --git a/server/src/api/@generated/comment-thread-target/comment-thread-target-unchecked-update-without-comment-thread.input.ts b/server/src/api/@generated/comment-thread-target/comment-thread-target-unchecked-update-without-comment-thread.input.ts new file mode 100644 index 000000000..7e5def10f --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/comment-thread-target-unchecked-update-without-comment-thread.input.ts @@ -0,0 +1,29 @@ +import { Field } from '@nestjs/graphql'; +import { 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'; + +@InputType() +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; +} diff --git a/server/src/api/@generated/comment-thread-target/comment-thread-target-unchecked-update.input.ts b/server/src/api/@generated/comment-thread-target/comment-thread-target-unchecked-update.input.ts new file mode 100644 index 000000000..3ac449178 --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/comment-thread-target-unchecked-update.input.ts @@ -0,0 +1,32 @@ +import { Field } from '@nestjs/graphql'; +import { 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'; + +@InputType() +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; + + @Field(() => EnumCommentableTypeFieldUpdateOperationsInput, { + nullable: true, + }) + commentableType?: EnumCommentableTypeFieldUpdateOperationsInput; + + @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) + commentableId?: StringFieldUpdateOperationsInput; +} diff --git a/server/src/api/@generated/comment-thread-target/comment-thread-target-update-many-mutation.input.ts b/server/src/api/@generated/comment-thread-target/comment-thread-target-update-many-mutation.input.ts new file mode 100644 index 000000000..818666e6c --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/comment-thread-target-update-many-mutation.input.ts @@ -0,0 +1,29 @@ +import { Field } from '@nestjs/graphql'; +import { 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'; + +@InputType() +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; +} diff --git a/server/src/api/@generated/comment-thread-target/comment-thread-target-update-many-with-where-without-comment-thread.input.ts b/server/src/api/@generated/comment-thread-target/comment-thread-target-update-many-with-where-without-comment-thread.input.ts new file mode 100644 index 000000000..1c53fedde --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/comment-thread-target-update-many-with-where-without-comment-thread.input.ts @@ -0,0 +1,16 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentThreadTargetScalarWhereInput } from './comment-thread-target-scalar-where.input'; +import { Type } from 'class-transformer'; +import { CommentThreadTargetUpdateManyMutationInput } from './comment-thread-target-update-many-mutation.input'; + +@InputType() +export class CommentThreadTargetUpdateManyWithWhereWithoutCommentThreadInput { + @Field(() => CommentThreadTargetScalarWhereInput, { nullable: false }) + @Type(() => CommentThreadTargetScalarWhereInput) + where!: CommentThreadTargetScalarWhereInput; + + @Field(() => CommentThreadTargetUpdateManyMutationInput, { nullable: false }) + @Type(() => CommentThreadTargetUpdateManyMutationInput) + data!: CommentThreadTargetUpdateManyMutationInput; +} diff --git a/server/src/api/@generated/comment-thread-target/comment-thread-target-update-many-without-comment-thread-nested.input.ts b/server/src/api/@generated/comment-thread-target/comment-thread-target-update-many-without-comment-thread-nested.input.ts new file mode 100644 index 000000000..6cb787e59 --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/comment-thread-target-update-many-without-comment-thread-nested.input.ts @@ -0,0 +1,73 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentThreadTargetCreateWithoutCommentThreadInput } from './comment-thread-target-create-without-comment-thread.input'; +import { Type } from 'class-transformer'; +import { CommentThreadTargetCreateOrConnectWithoutCommentThreadInput } from './comment-thread-target-create-or-connect-without-comment-thread.input'; +import { CommentThreadTargetUpsertWithWhereUniqueWithoutCommentThreadInput } from './comment-thread-target-upsert-with-where-unique-without-comment-thread.input'; +import { CommentThreadTargetCreateManyCommentThreadInputEnvelope } from './comment-thread-target-create-many-comment-thread-input-envelope.input'; +import { CommentThreadTargetWhereUniqueInput } from './comment-thread-target-where-unique.input'; +import { CommentThreadTargetUpdateWithWhereUniqueWithoutCommentThreadInput } from './comment-thread-target-update-with-where-unique-without-comment-thread.input'; +import { CommentThreadTargetUpdateManyWithWhereWithoutCommentThreadInput } from './comment-thread-target-update-many-with-where-without-comment-thread.input'; +import { CommentThreadTargetScalarWhereInput } from './comment-thread-target-scalar-where.input'; + +@InputType() +export class CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput { + @Field(() => [CommentThreadTargetCreateWithoutCommentThreadInput], { + nullable: true, + }) + @Type(() => CommentThreadTargetCreateWithoutCommentThreadInput) + create?: Array; + + @Field(() => [CommentThreadTargetCreateOrConnectWithoutCommentThreadInput], { + nullable: true, + }) + @Type(() => CommentThreadTargetCreateOrConnectWithoutCommentThreadInput) + connectOrCreate?: Array; + + @Field( + () => [CommentThreadTargetUpsertWithWhereUniqueWithoutCommentThreadInput], + { nullable: true }, + ) + @Type(() => CommentThreadTargetUpsertWithWhereUniqueWithoutCommentThreadInput) + upsert?: Array; + + @Field(() => CommentThreadTargetCreateManyCommentThreadInputEnvelope, { + nullable: true, + }) + @Type(() => CommentThreadTargetCreateManyCommentThreadInputEnvelope) + createMany?: CommentThreadTargetCreateManyCommentThreadInputEnvelope; + + @Field(() => [CommentThreadTargetWhereUniqueInput], { nullable: true }) + @Type(() => CommentThreadTargetWhereUniqueInput) + set?: Array; + + @Field(() => [CommentThreadTargetWhereUniqueInput], { nullable: true }) + @Type(() => CommentThreadTargetWhereUniqueInput) + disconnect?: Array; + + @Field(() => [CommentThreadTargetWhereUniqueInput], { nullable: true }) + @Type(() => CommentThreadTargetWhereUniqueInput) + delete?: Array; + + @Field(() => [CommentThreadTargetWhereUniqueInput], { nullable: true }) + @Type(() => CommentThreadTargetWhereUniqueInput) + connect?: Array; + + @Field( + () => [CommentThreadTargetUpdateWithWhereUniqueWithoutCommentThreadInput], + { nullable: true }, + ) + @Type(() => CommentThreadTargetUpdateWithWhereUniqueWithoutCommentThreadInput) + update?: Array; + + @Field( + () => [CommentThreadTargetUpdateManyWithWhereWithoutCommentThreadInput], + { nullable: true }, + ) + @Type(() => CommentThreadTargetUpdateManyWithWhereWithoutCommentThreadInput) + updateMany?: Array; + + @Field(() => [CommentThreadTargetScalarWhereInput], { nullable: true }) + @Type(() => CommentThreadTargetScalarWhereInput) + deleteMany?: Array; +} diff --git a/server/src/api/@generated/comment-thread-target/comment-thread-target-update-with-where-unique-without-comment-thread.input.ts b/server/src/api/@generated/comment-thread-target/comment-thread-target-update-with-where-unique-without-comment-thread.input.ts new file mode 100644 index 000000000..54dffc956 --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/comment-thread-target-update-with-where-unique-without-comment-thread.input.ts @@ -0,0 +1,18 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentThreadTargetWhereUniqueInput } from './comment-thread-target-where-unique.input'; +import { Type } from 'class-transformer'; +import { CommentThreadTargetUpdateWithoutCommentThreadInput } from './comment-thread-target-update-without-comment-thread.input'; + +@InputType() +export class CommentThreadTargetUpdateWithWhereUniqueWithoutCommentThreadInput { + @Field(() => CommentThreadTargetWhereUniqueInput, { nullable: false }) + @Type(() => CommentThreadTargetWhereUniqueInput) + where!: CommentThreadTargetWhereUniqueInput; + + @Field(() => CommentThreadTargetUpdateWithoutCommentThreadInput, { + nullable: false, + }) + @Type(() => CommentThreadTargetUpdateWithoutCommentThreadInput) + data!: CommentThreadTargetUpdateWithoutCommentThreadInput; +} diff --git a/server/src/api/@generated/comment-thread-target/comment-thread-target-update-without-comment-thread.input.ts b/server/src/api/@generated/comment-thread-target/comment-thread-target-update-without-comment-thread.input.ts new file mode 100644 index 000000000..5619d0943 --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/comment-thread-target-update-without-comment-thread.input.ts @@ -0,0 +1,29 @@ +import { Field } from '@nestjs/graphql'; +import { 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'; + +@InputType() +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; +} diff --git a/server/src/api/@generated/comment-thread-target/comment-thread-target-update.input.ts b/server/src/api/@generated/comment-thread-target/comment-thread-target-update.input.ts new file mode 100644 index 000000000..b486697b9 --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/comment-thread-target-update.input.ts @@ -0,0 +1,36 @@ +import { Field } from '@nestjs/graphql'; +import { 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 { CommentThreadUpdateOneRequiredWithoutCommentThreadTargetsNestedInput } from '../comment-thread/comment-thread-update-one-required-without-comment-thread-targets-nested.input'; + +@InputType() +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; + + @Field( + () => CommentThreadUpdateOneRequiredWithoutCommentThreadTargetsNestedInput, + { nullable: true }, + ) + commentThread?: CommentThreadUpdateOneRequiredWithoutCommentThreadTargetsNestedInput; +} diff --git a/server/src/api/@generated/comment-thread-target/comment-thread-target-upsert-with-where-unique-without-comment-thread.input.ts b/server/src/api/@generated/comment-thread-target/comment-thread-target-upsert-with-where-unique-without-comment-thread.input.ts new file mode 100644 index 000000000..951071fe3 --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/comment-thread-target-upsert-with-where-unique-without-comment-thread.input.ts @@ -0,0 +1,25 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentThreadTargetWhereUniqueInput } from './comment-thread-target-where-unique.input'; +import { Type } from 'class-transformer'; +import { CommentThreadTargetUpdateWithoutCommentThreadInput } from './comment-thread-target-update-without-comment-thread.input'; +import { CommentThreadTargetCreateWithoutCommentThreadInput } from './comment-thread-target-create-without-comment-thread.input'; + +@InputType() +export class CommentThreadTargetUpsertWithWhereUniqueWithoutCommentThreadInput { + @Field(() => CommentThreadTargetWhereUniqueInput, { nullable: false }) + @Type(() => CommentThreadTargetWhereUniqueInput) + where!: CommentThreadTargetWhereUniqueInput; + + @Field(() => CommentThreadTargetUpdateWithoutCommentThreadInput, { + nullable: false, + }) + @Type(() => CommentThreadTargetUpdateWithoutCommentThreadInput) + update!: CommentThreadTargetUpdateWithoutCommentThreadInput; + + @Field(() => CommentThreadTargetCreateWithoutCommentThreadInput, { + nullable: false, + }) + @Type(() => CommentThreadTargetCreateWithoutCommentThreadInput) + create!: CommentThreadTargetCreateWithoutCommentThreadInput; +} diff --git a/server/src/api/@generated/comment-thread-target/comment-thread-target-where-unique.input.ts b/server/src/api/@generated/comment-thread-target/comment-thread-target-where-unique.input.ts new file mode 100644 index 000000000..cd6dc9214 --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/comment-thread-target-where-unique.input.ts @@ -0,0 +1,8 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; + +@InputType() +export class CommentThreadTargetWhereUniqueInput { + @Field(() => String, { nullable: true }) + id?: string; +} diff --git a/server/src/api/@generated/comment-thread-target/comment-thread-target-where.input.ts b/server/src/api/@generated/comment-thread-target/comment-thread-target-where.input.ts new file mode 100644 index 000000000..3ffcfa458 --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/comment-thread-target-where.input.ts @@ -0,0 +1,43 @@ +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 { CommentThreadRelationFilter } from '../comment-thread/comment-thread-relation-filter.input'; + +@InputType() +export class CommentThreadTargetWhereInput { + @Field(() => [CommentThreadTargetWhereInput], { nullable: true }) + AND?: Array; + + @Field(() => [CommentThreadTargetWhereInput], { nullable: true }) + OR?: Array; + + @Field(() => [CommentThreadTargetWhereInput], { nullable: true }) + NOT?: Array; + + @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; + + @Field(() => EnumCommentableTypeFilter, { nullable: true }) + commentableType?: EnumCommentableTypeFilter; + + @Field(() => StringFilter, { nullable: true }) + commentableId?: StringFilter; + + @Field(() => CommentThreadRelationFilter, { nullable: true }) + commentThread?: CommentThreadRelationFilter; +} diff --git a/server/src/api/@generated/comment-thread-target/comment-thread-target.model.ts b/server/src/api/@generated/comment-thread-target/comment-thread-target.model.ts new file mode 100644 index 000000000..6676e5702 --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/comment-thread-target.model.ts @@ -0,0 +1,32 @@ +import { Field } from '@nestjs/graphql'; +import { ObjectType } from '@nestjs/graphql'; +import { ID } from '@nestjs/graphql'; +import { CommentableType } from '../prisma/commentable-type.enum'; +import { CommentThread } from '../comment-thread/comment-thread.model'; + +@ObjectType() +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; + + @Field(() => CommentableType, { nullable: false }) + commentableType!: keyof typeof CommentableType; + + @Field(() => String, { nullable: false }) + commentableId!: string; + + @Field(() => CommentThread, { nullable: false }) + commentThread?: CommentThread; +} diff --git a/server/src/api/@generated/comment-thread-target/create-many-comment-thread-target.args.ts b/server/src/api/@generated/comment-thread-target/create-many-comment-thread-target.args.ts new file mode 100644 index 000000000..871843b9a --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/create-many-comment-thread-target.args.ts @@ -0,0 +1,14 @@ +import { Field } from '@nestjs/graphql'; +import { ArgsType } from '@nestjs/graphql'; +import { CommentThreadTargetCreateManyInput } from './comment-thread-target-create-many.input'; +import { Type } from 'class-transformer'; + +@ArgsType() +export class CreateManyCommentThreadTargetArgs { + @Field(() => [CommentThreadTargetCreateManyInput], { nullable: false }) + @Type(() => CommentThreadTargetCreateManyInput) + data!: Array; + + @Field(() => Boolean, { nullable: true }) + skipDuplicates?: boolean; +} diff --git a/server/src/api/@generated/comment-thread-target/create-one-comment-thread-target.args.ts b/server/src/api/@generated/comment-thread-target/create-one-comment-thread-target.args.ts new file mode 100644 index 000000000..1758aaf78 --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/create-one-comment-thread-target.args.ts @@ -0,0 +1,11 @@ +import { Field } from '@nestjs/graphql'; +import { ArgsType } from '@nestjs/graphql'; +import { CommentThreadTargetCreateInput } from './comment-thread-target-create.input'; +import { Type } from 'class-transformer'; + +@ArgsType() +export class CreateOneCommentThreadTargetArgs { + @Field(() => CommentThreadTargetCreateInput, { nullable: false }) + @Type(() => CommentThreadTargetCreateInput) + data!: CommentThreadTargetCreateInput; +} diff --git a/server/src/api/@generated/comment-thread-target/delete-many-comment-thread-target.args.ts b/server/src/api/@generated/comment-thread-target/delete-many-comment-thread-target.args.ts new file mode 100644 index 000000000..2d3d17c8c --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/delete-many-comment-thread-target.args.ts @@ -0,0 +1,11 @@ +import { Field } from '@nestjs/graphql'; +import { ArgsType } from '@nestjs/graphql'; +import { CommentThreadTargetWhereInput } from './comment-thread-target-where.input'; +import { Type } from 'class-transformer'; + +@ArgsType() +export class DeleteManyCommentThreadTargetArgs { + @Field(() => CommentThreadTargetWhereInput, { nullable: true }) + @Type(() => CommentThreadTargetWhereInput) + where?: CommentThreadTargetWhereInput; +} diff --git a/server/src/api/@generated/comment-thread-target/delete-one-comment-thread-target.args.ts b/server/src/api/@generated/comment-thread-target/delete-one-comment-thread-target.args.ts new file mode 100644 index 000000000..6df21c31f --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/delete-one-comment-thread-target.args.ts @@ -0,0 +1,11 @@ +import { Field } from '@nestjs/graphql'; +import { ArgsType } from '@nestjs/graphql'; +import { CommentThreadTargetWhereUniqueInput } from './comment-thread-target-where-unique.input'; +import { Type } from 'class-transformer'; + +@ArgsType() +export class DeleteOneCommentThreadTargetArgs { + @Field(() => CommentThreadTargetWhereUniqueInput, { nullable: false }) + @Type(() => CommentThreadTargetWhereUniqueInput) + where!: CommentThreadTargetWhereUniqueInput; +} diff --git a/server/src/api/@generated/comment-thread-target/find-first-comment-thread-target-or-throw.args.ts b/server/src/api/@generated/comment-thread-target/find-first-comment-thread-target-or-throw.args.ts new file mode 100644 index 000000000..fe9454412 --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/find-first-comment-thread-target-or-throw.args.ts @@ -0,0 +1,32 @@ +import { Field } from '@nestjs/graphql'; +import { ArgsType } from '@nestjs/graphql'; +import { CommentThreadTargetWhereInput } from './comment-thread-target-where.input'; +import { Type } from 'class-transformer'; +import { CommentThreadTargetOrderByWithRelationInput } from './comment-thread-target-order-by-with-relation.input'; +import { CommentThreadTargetWhereUniqueInput } from './comment-thread-target-where-unique.input'; +import { Int } from '@nestjs/graphql'; +import { CommentThreadTargetScalarFieldEnum } from './comment-thread-target-scalar-field.enum'; + +@ArgsType() +export class FindFirstCommentThreadTargetOrThrowArgs { + @Field(() => CommentThreadTargetWhereInput, { nullable: true }) + @Type(() => CommentThreadTargetWhereInput) + where?: CommentThreadTargetWhereInput; + + @Field(() => [CommentThreadTargetOrderByWithRelationInput], { + nullable: true, + }) + orderBy?: Array; + + @Field(() => CommentThreadTargetWhereUniqueInput, { nullable: true }) + cursor?: CommentThreadTargetWhereUniqueInput; + + @Field(() => Int, { nullable: true }) + take?: number; + + @Field(() => Int, { nullable: true }) + skip?: number; + + @Field(() => [CommentThreadTargetScalarFieldEnum], { nullable: true }) + distinct?: Array; +} diff --git a/server/src/api/@generated/comment-thread-target/find-first-comment-thread-target.args.ts b/server/src/api/@generated/comment-thread-target/find-first-comment-thread-target.args.ts new file mode 100644 index 000000000..8aed956e7 --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/find-first-comment-thread-target.args.ts @@ -0,0 +1,32 @@ +import { Field } from '@nestjs/graphql'; +import { ArgsType } from '@nestjs/graphql'; +import { CommentThreadTargetWhereInput } from './comment-thread-target-where.input'; +import { Type } from 'class-transformer'; +import { CommentThreadTargetOrderByWithRelationInput } from './comment-thread-target-order-by-with-relation.input'; +import { CommentThreadTargetWhereUniqueInput } from './comment-thread-target-where-unique.input'; +import { Int } from '@nestjs/graphql'; +import { CommentThreadTargetScalarFieldEnum } from './comment-thread-target-scalar-field.enum'; + +@ArgsType() +export class FindFirstCommentThreadTargetArgs { + @Field(() => CommentThreadTargetWhereInput, { nullable: true }) + @Type(() => CommentThreadTargetWhereInput) + where?: CommentThreadTargetWhereInput; + + @Field(() => [CommentThreadTargetOrderByWithRelationInput], { + nullable: true, + }) + orderBy?: Array; + + @Field(() => CommentThreadTargetWhereUniqueInput, { nullable: true }) + cursor?: CommentThreadTargetWhereUniqueInput; + + @Field(() => Int, { nullable: true }) + take?: number; + + @Field(() => Int, { nullable: true }) + skip?: number; + + @Field(() => [CommentThreadTargetScalarFieldEnum], { nullable: true }) + distinct?: Array; +} diff --git a/server/src/api/@generated/comment-thread-target/find-many-comment-thread-target.args.ts b/server/src/api/@generated/comment-thread-target/find-many-comment-thread-target.args.ts new file mode 100644 index 000000000..2cc89248f --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/find-many-comment-thread-target.args.ts @@ -0,0 +1,32 @@ +import { Field } from '@nestjs/graphql'; +import { ArgsType } from '@nestjs/graphql'; +import { CommentThreadTargetWhereInput } from './comment-thread-target-where.input'; +import { Type } from 'class-transformer'; +import { CommentThreadTargetOrderByWithRelationInput } from './comment-thread-target-order-by-with-relation.input'; +import { CommentThreadTargetWhereUniqueInput } from './comment-thread-target-where-unique.input'; +import { Int } from '@nestjs/graphql'; +import { CommentThreadTargetScalarFieldEnum } from './comment-thread-target-scalar-field.enum'; + +@ArgsType() +export class FindManyCommentThreadTargetArgs { + @Field(() => CommentThreadTargetWhereInput, { nullable: true }) + @Type(() => CommentThreadTargetWhereInput) + where?: CommentThreadTargetWhereInput; + + @Field(() => [CommentThreadTargetOrderByWithRelationInput], { + nullable: true, + }) + orderBy?: Array; + + @Field(() => CommentThreadTargetWhereUniqueInput, { nullable: true }) + cursor?: CommentThreadTargetWhereUniqueInput; + + @Field(() => Int, { nullable: true }) + take?: number; + + @Field(() => Int, { nullable: true }) + skip?: number; + + @Field(() => [CommentThreadTargetScalarFieldEnum], { nullable: true }) + distinct?: Array; +} diff --git a/server/src/api/@generated/comment-thread-target/find-unique-comment-thread-target-or-throw.args.ts b/server/src/api/@generated/comment-thread-target/find-unique-comment-thread-target-or-throw.args.ts new file mode 100644 index 000000000..45a0e6a4c --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/find-unique-comment-thread-target-or-throw.args.ts @@ -0,0 +1,11 @@ +import { Field } from '@nestjs/graphql'; +import { ArgsType } from '@nestjs/graphql'; +import { CommentThreadTargetWhereUniqueInput } from './comment-thread-target-where-unique.input'; +import { Type } from 'class-transformer'; + +@ArgsType() +export class FindUniqueCommentThreadTargetOrThrowArgs { + @Field(() => CommentThreadTargetWhereUniqueInput, { nullable: false }) + @Type(() => CommentThreadTargetWhereUniqueInput) + where!: CommentThreadTargetWhereUniqueInput; +} diff --git a/server/src/api/@generated/comment-thread-target/find-unique-comment-thread-target.args.ts b/server/src/api/@generated/comment-thread-target/find-unique-comment-thread-target.args.ts new file mode 100644 index 000000000..f31648a76 --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/find-unique-comment-thread-target.args.ts @@ -0,0 +1,11 @@ +import { Field } from '@nestjs/graphql'; +import { ArgsType } from '@nestjs/graphql'; +import { CommentThreadTargetWhereUniqueInput } from './comment-thread-target-where-unique.input'; +import { Type } from 'class-transformer'; + +@ArgsType() +export class FindUniqueCommentThreadTargetArgs { + @Field(() => CommentThreadTargetWhereUniqueInput, { nullable: false }) + @Type(() => CommentThreadTargetWhereUniqueInput) + where!: CommentThreadTargetWhereUniqueInput; +} diff --git a/server/src/api/@generated/comment-thread-target/update-many-comment-thread-target.args.ts b/server/src/api/@generated/comment-thread-target/update-many-comment-thread-target.args.ts new file mode 100644 index 000000000..4f3672deb --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/update-many-comment-thread-target.args.ts @@ -0,0 +1,16 @@ +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 { CommentThreadTargetWhereInput } from './comment-thread-target-where.input'; + +@ArgsType() +export class UpdateManyCommentThreadTargetArgs { + @Field(() => CommentThreadTargetUpdateManyMutationInput, { nullable: false }) + @Type(() => CommentThreadTargetUpdateManyMutationInput) + data!: CommentThreadTargetUpdateManyMutationInput; + + @Field(() => CommentThreadTargetWhereInput, { nullable: true }) + @Type(() => CommentThreadTargetWhereInput) + where?: CommentThreadTargetWhereInput; +} diff --git a/server/src/api/@generated/comment-thread-target/update-one-comment-thread-target.args.ts b/server/src/api/@generated/comment-thread-target/update-one-comment-thread-target.args.ts new file mode 100644 index 000000000..98edb83b5 --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/update-one-comment-thread-target.args.ts @@ -0,0 +1,16 @@ +import { Field } from '@nestjs/graphql'; +import { ArgsType } from '@nestjs/graphql'; +import { CommentThreadTargetUpdateInput } from './comment-thread-target-update.input'; +import { Type } from 'class-transformer'; +import { CommentThreadTargetWhereUniqueInput } from './comment-thread-target-where-unique.input'; + +@ArgsType() +export class UpdateOneCommentThreadTargetArgs { + @Field(() => CommentThreadTargetUpdateInput, { nullable: false }) + @Type(() => CommentThreadTargetUpdateInput) + data!: CommentThreadTargetUpdateInput; + + @Field(() => CommentThreadTargetWhereUniqueInput, { nullable: false }) + @Type(() => CommentThreadTargetWhereUniqueInput) + where!: CommentThreadTargetWhereUniqueInput; +} diff --git a/server/src/api/@generated/comment-thread-target/upsert-one-comment-thread-target.args.ts b/server/src/api/@generated/comment-thread-target/upsert-one-comment-thread-target.args.ts new file mode 100644 index 000000000..8d843b0b3 --- /dev/null +++ b/server/src/api/@generated/comment-thread-target/upsert-one-comment-thread-target.args.ts @@ -0,0 +1,21 @@ +import { Field } from '@nestjs/graphql'; +import { ArgsType } from '@nestjs/graphql'; +import { CommentThreadTargetWhereUniqueInput } from './comment-thread-target-where-unique.input'; +import { Type } from 'class-transformer'; +import { CommentThreadTargetCreateInput } from './comment-thread-target-create.input'; +import { CommentThreadTargetUpdateInput } from './comment-thread-target-update.input'; + +@ArgsType() +export class UpsertOneCommentThreadTargetArgs { + @Field(() => CommentThreadTargetWhereUniqueInput, { nullable: false }) + @Type(() => CommentThreadTargetWhereUniqueInput) + where!: CommentThreadTargetWhereUniqueInput; + + @Field(() => CommentThreadTargetCreateInput, { nullable: false }) + @Type(() => CommentThreadTargetCreateInput) + create!: CommentThreadTargetCreateInput; + + @Field(() => CommentThreadTargetUpdateInput, { nullable: false }) + @Type(() => CommentThreadTargetUpdateInput) + update!: CommentThreadTargetUpdateInput; +} diff --git a/server/src/api/@generated/comment-thread/aggregate-comment-thread.output.ts b/server/src/api/@generated/comment-thread/aggregate-comment-thread.output.ts new file mode 100644 index 000000000..78420a7e1 --- /dev/null +++ b/server/src/api/@generated/comment-thread/aggregate-comment-thread.output.ts @@ -0,0 +1,17 @@ +import { Field } from '@nestjs/graphql'; +import { ObjectType } from '@nestjs/graphql'; +import { CommentThreadCountAggregate } from './comment-thread-count-aggregate.output'; +import { CommentThreadMinAggregate } from './comment-thread-min-aggregate.output'; +import { CommentThreadMaxAggregate } from './comment-thread-max-aggregate.output'; + +@ObjectType() +export class AggregateCommentThread { + @Field(() => CommentThreadCountAggregate, { nullable: true }) + _count?: CommentThreadCountAggregate; + + @Field(() => CommentThreadMinAggregate, { nullable: true }) + _min?: CommentThreadMinAggregate; + + @Field(() => CommentThreadMaxAggregate, { nullable: true }) + _max?: CommentThreadMaxAggregate; +} diff --git a/server/src/api/@generated/comment-thread/comment-thread-aggregate.args.ts b/server/src/api/@generated/comment-thread/comment-thread-aggregate.args.ts new file mode 100644 index 000000000..bf6aac3c5 --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-aggregate.args.ts @@ -0,0 +1,38 @@ +import { Field } from '@nestjs/graphql'; +import { ArgsType } from '@nestjs/graphql'; +import { CommentThreadWhereInput } from './comment-thread-where.input'; +import { Type } from 'class-transformer'; +import { CommentThreadOrderByWithRelationInput } from './comment-thread-order-by-with-relation.input'; +import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input'; +import { Int } from '@nestjs/graphql'; +import { CommentThreadCountAggregateInput } from './comment-thread-count-aggregate.input'; +import { CommentThreadMinAggregateInput } from './comment-thread-min-aggregate.input'; +import { CommentThreadMaxAggregateInput } from './comment-thread-max-aggregate.input'; + +@ArgsType() +export class CommentThreadAggregateArgs { + @Field(() => CommentThreadWhereInput, { nullable: true }) + @Type(() => CommentThreadWhereInput) + where?: CommentThreadWhereInput; + + @Field(() => [CommentThreadOrderByWithRelationInput], { nullable: true }) + orderBy?: Array; + + @Field(() => CommentThreadWhereUniqueInput, { nullable: true }) + cursor?: CommentThreadWhereUniqueInput; + + @Field(() => Int, { nullable: true }) + take?: number; + + @Field(() => Int, { nullable: true }) + skip?: number; + + @Field(() => CommentThreadCountAggregateInput, { nullable: true }) + _count?: CommentThreadCountAggregateInput; + + @Field(() => CommentThreadMinAggregateInput, { nullable: true }) + _min?: CommentThreadMinAggregateInput; + + @Field(() => CommentThreadMaxAggregateInput, { nullable: true }) + _max?: CommentThreadMaxAggregateInput; +} diff --git a/server/src/api/@generated/comment-thread/comment-thread-count-aggregate.input.ts b/server/src/api/@generated/comment-thread/comment-thread-count-aggregate.input.ts new file mode 100644 index 000000000..d46265695 --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-count-aggregate.input.ts @@ -0,0 +1,24 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { HideField } from '@nestjs/graphql'; + +@InputType() +export class CommentThreadCountAggregateInput { + @Field(() => Boolean, { nullable: true }) + id?: 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/api/@generated/comment-thread/comment-thread-count-aggregate.output.ts b/server/src/api/@generated/comment-thread/comment-thread-count-aggregate.output.ts new file mode 100644 index 000000000..b89394832 --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-count-aggregate.output.ts @@ -0,0 +1,24 @@ +import { Field } from '@nestjs/graphql'; +import { ObjectType } from '@nestjs/graphql'; +import { Int } from '@nestjs/graphql'; + +@ObjectType() +export class CommentThreadCountAggregate { + @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 }) + workspaceId!: number; + + @Field(() => Int, { nullable: false }) + _all!: number; +} diff --git a/server/src/api/@generated/comment-thread/comment-thread-count-order-by-aggregate.input.ts b/server/src/api/@generated/comment-thread/comment-thread-count-order-by-aggregate.input.ts new file mode 100644 index 000000000..e6117e959 --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-count-order-by-aggregate.input.ts @@ -0,0 +1,22 @@ +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 CommentThreadCountOrderByAggregateInput { + @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; + + @HideField() + workspaceId?: keyof typeof SortOrder; +} diff --git a/server/src/api/@generated/comment-thread/comment-thread-create-many-workspace-input-envelope.input.ts b/server/src/api/@generated/comment-thread/comment-thread-create-many-workspace-input-envelope.input.ts new file mode 100644 index 000000000..f71659cb8 --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-create-many-workspace-input-envelope.input.ts @@ -0,0 +1,14 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentThreadCreateManyWorkspaceInput } from './comment-thread-create-many-workspace.input'; +import { Type } from 'class-transformer'; + +@InputType() +export class CommentThreadCreateManyWorkspaceInputEnvelope { + @Field(() => [CommentThreadCreateManyWorkspaceInput], { nullable: false }) + @Type(() => CommentThreadCreateManyWorkspaceInput) + data!: Array; + + @Field(() => Boolean, { nullable: true }) + skipDuplicates?: boolean; +} diff --git a/server/src/api/@generated/comment-thread/comment-thread-create-many-workspace.input.ts b/server/src/api/@generated/comment-thread/comment-thread-create-many-workspace.input.ts new file mode 100644 index 000000000..24d5fb760 --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-create-many-workspace.input.ts @@ -0,0 +1,17 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; + +@InputType() +export class CommentThreadCreateManyWorkspaceInput { + @Field(() => String, { nullable: false }) + id!: 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/api/@generated/comment-thread/comment-thread-create-many.input.ts b/server/src/api/@generated/comment-thread/comment-thread-create-many.input.ts new file mode 100644 index 000000000..48c76dcd0 --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-create-many.input.ts @@ -0,0 +1,21 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { HideField } from '@nestjs/graphql'; + +@InputType() +export class CommentThreadCreateManyInput { + @Field(() => String, { nullable: false }) + id!: 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/api/@generated/comment-thread/comment-thread-create-nested-many-without-workspace.input.ts b/server/src/api/@generated/comment-thread/comment-thread-create-nested-many-without-workspace.input.ts new file mode 100644 index 000000000..2e746da67 --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-create-nested-many-without-workspace.input.ts @@ -0,0 +1,30 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentThreadCreateWithoutWorkspaceInput } from './comment-thread-create-without-workspace.input'; +import { Type } from 'class-transformer'; +import { CommentThreadCreateOrConnectWithoutWorkspaceInput } from './comment-thread-create-or-connect-without-workspace.input'; +import { CommentThreadCreateManyWorkspaceInputEnvelope } from './comment-thread-create-many-workspace-input-envelope.input'; +import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input'; + +@InputType() +export class CommentThreadCreateNestedManyWithoutWorkspaceInput { + @Field(() => [CommentThreadCreateWithoutWorkspaceInput], { nullable: true }) + @Type(() => CommentThreadCreateWithoutWorkspaceInput) + create?: Array; + + @Field(() => [CommentThreadCreateOrConnectWithoutWorkspaceInput], { + nullable: true, + }) + @Type(() => CommentThreadCreateOrConnectWithoutWorkspaceInput) + connectOrCreate?: Array; + + @Field(() => CommentThreadCreateManyWorkspaceInputEnvelope, { + nullable: true, + }) + @Type(() => CommentThreadCreateManyWorkspaceInputEnvelope) + createMany?: CommentThreadCreateManyWorkspaceInputEnvelope; + + @Field(() => [CommentThreadWhereUniqueInput], { nullable: true }) + @Type(() => CommentThreadWhereUniqueInput) + connect?: Array; +} diff --git a/server/src/api/@generated/comment-thread/comment-thread-create-nested-one-without-comment-thread-targets.input.ts b/server/src/api/@generated/comment-thread/comment-thread-create-nested-one-without-comment-thread-targets.input.ts new file mode 100644 index 000000000..983842143 --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-create-nested-one-without-comment-thread-targets.input.ts @@ -0,0 +1,25 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentThreadCreateWithoutCommentThreadTargetsInput } from './comment-thread-create-without-comment-thread-targets.input'; +import { Type } from 'class-transformer'; +import { CommentThreadCreateOrConnectWithoutCommentThreadTargetsInput } from './comment-thread-create-or-connect-without-comment-thread-targets.input'; +import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input'; + +@InputType() +export class CommentThreadCreateNestedOneWithoutCommentThreadTargetsInput { + @Field(() => CommentThreadCreateWithoutCommentThreadTargetsInput, { + nullable: true, + }) + @Type(() => CommentThreadCreateWithoutCommentThreadTargetsInput) + create?: CommentThreadCreateWithoutCommentThreadTargetsInput; + + @Field(() => CommentThreadCreateOrConnectWithoutCommentThreadTargetsInput, { + nullable: true, + }) + @Type(() => CommentThreadCreateOrConnectWithoutCommentThreadTargetsInput) + connectOrCreate?: CommentThreadCreateOrConnectWithoutCommentThreadTargetsInput; + + @Field(() => CommentThreadWhereUniqueInput, { nullable: true }) + @Type(() => CommentThreadWhereUniqueInput) + connect?: CommentThreadWhereUniqueInput; +} diff --git a/server/src/api/@generated/comment-thread/comment-thread-create-nested-one-without-comments.input.ts b/server/src/api/@generated/comment-thread/comment-thread-create-nested-one-without-comments.input.ts new file mode 100644 index 000000000..e83c81ead --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-create-nested-one-without-comments.input.ts @@ -0,0 +1,20 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentThreadCreateWithoutCommentsInput } from './comment-thread-create-without-comments.input'; +import { HideField } from '@nestjs/graphql'; +import { CommentThreadCreateOrConnectWithoutCommentsInput } from './comment-thread-create-or-connect-without-comments.input'; +import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input'; +import { Type } from 'class-transformer'; + +@InputType() +export class CommentThreadCreateNestedOneWithoutCommentsInput { + @HideField() + create?: CommentThreadCreateWithoutCommentsInput; + + @HideField() + connectOrCreate?: CommentThreadCreateOrConnectWithoutCommentsInput; + + @Field(() => CommentThreadWhereUniqueInput, { nullable: true }) + @Type(() => CommentThreadWhereUniqueInput) + connect?: CommentThreadWhereUniqueInput; +} diff --git a/server/src/api/@generated/comment-thread/comment-thread-create-or-connect-without-comment-thread-targets.input.ts b/server/src/api/@generated/comment-thread/comment-thread-create-or-connect-without-comment-thread-targets.input.ts new file mode 100644 index 000000000..9b8ec6e84 --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-create-or-connect-without-comment-thread-targets.input.ts @@ -0,0 +1,18 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input'; +import { Type } from 'class-transformer'; +import { CommentThreadCreateWithoutCommentThreadTargetsInput } from './comment-thread-create-without-comment-thread-targets.input'; + +@InputType() +export class CommentThreadCreateOrConnectWithoutCommentThreadTargetsInput { + @Field(() => CommentThreadWhereUniqueInput, { nullable: false }) + @Type(() => CommentThreadWhereUniqueInput) + where!: CommentThreadWhereUniqueInput; + + @Field(() => CommentThreadCreateWithoutCommentThreadTargetsInput, { + nullable: false, + }) + @Type(() => CommentThreadCreateWithoutCommentThreadTargetsInput) + create!: CommentThreadCreateWithoutCommentThreadTargetsInput; +} diff --git a/server/src/api/@generated/comment-thread/comment-thread-create-or-connect-without-comments.input.ts b/server/src/api/@generated/comment-thread/comment-thread-create-or-connect-without-comments.input.ts new file mode 100644 index 000000000..da18703cb --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-create-or-connect-without-comments.input.ts @@ -0,0 +1,16 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input'; +import { Type } from 'class-transformer'; +import { CommentThreadCreateWithoutCommentsInput } from './comment-thread-create-without-comments.input'; + +@InputType() +export class CommentThreadCreateOrConnectWithoutCommentsInput { + @Field(() => CommentThreadWhereUniqueInput, { nullable: false }) + @Type(() => CommentThreadWhereUniqueInput) + where!: CommentThreadWhereUniqueInput; + + @Field(() => CommentThreadCreateWithoutCommentsInput, { nullable: false }) + @Type(() => CommentThreadCreateWithoutCommentsInput) + create!: CommentThreadCreateWithoutCommentsInput; +} diff --git a/server/src/api/@generated/comment-thread/comment-thread-create-or-connect-without-workspace.input.ts b/server/src/api/@generated/comment-thread/comment-thread-create-or-connect-without-workspace.input.ts new file mode 100644 index 000000000..fad32f89f --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-create-or-connect-without-workspace.input.ts @@ -0,0 +1,16 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input'; +import { Type } from 'class-transformer'; +import { CommentThreadCreateWithoutWorkspaceInput } from './comment-thread-create-without-workspace.input'; + +@InputType() +export class CommentThreadCreateOrConnectWithoutWorkspaceInput { + @Field(() => CommentThreadWhereUniqueInput, { nullable: false }) + @Type(() => CommentThreadWhereUniqueInput) + where!: CommentThreadWhereUniqueInput; + + @Field(() => CommentThreadCreateWithoutWorkspaceInput, { nullable: false }) + @Type(() => CommentThreadCreateWithoutWorkspaceInput) + create!: CommentThreadCreateWithoutWorkspaceInput; +} diff --git a/server/src/api/@generated/comment-thread/comment-thread-create-without-comment-thread-targets.input.ts b/server/src/api/@generated/comment-thread/comment-thread-create-without-comment-thread-targets.input.ts new file mode 100644 index 000000000..306272214 --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-create-without-comment-thread-targets.input.ts @@ -0,0 +1,28 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } 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: false }) + id!: 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; + + @HideField() + workspace!: WorkspaceCreateNestedOneWithoutCommentThreadsInput; +} diff --git a/server/src/api/@generated/comment-thread/comment-thread-create-without-comments.input.ts b/server/src/api/@generated/comment-thread/comment-thread-create-without-comments.input.ts new file mode 100644 index 000000000..d873f0777 --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-create-without-comments.input.ts @@ -0,0 +1,28 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } 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: false }) + id!: 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; + + @HideField() + workspace!: WorkspaceCreateNestedOneWithoutCommentThreadsInput; +} diff --git a/server/src/api/@generated/comment-thread/comment-thread-create-without-workspace.input.ts b/server/src/api/@generated/comment-thread/comment-thread-create-without-workspace.input.ts new file mode 100644 index 000000000..bc450325b --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-create-without-workspace.input.ts @@ -0,0 +1,29 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } 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'; + +@InputType() +export class CommentThreadCreateWithoutWorkspaceInput { + @Field(() => String, { nullable: false }) + id!: 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; + + @Field(() => CommentCreateNestedManyWithoutCommentThreadInput, { + nullable: true, + }) + comments?: CommentCreateNestedManyWithoutCommentThreadInput; +} diff --git a/server/src/api/@generated/comment-thread/comment-thread-create.input.ts b/server/src/api/@generated/comment-thread/comment-thread-create.input.ts new file mode 100644 index 000000000..1df8ab363 --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-create.input.ts @@ -0,0 +1,34 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } 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: false }) + id!: 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; + + @Field(() => CommentCreateNestedManyWithoutCommentThreadInput, { + nullable: true, + }) + comments?: CommentCreateNestedManyWithoutCommentThreadInput; + + @HideField() + workspace!: WorkspaceCreateNestedOneWithoutCommentThreadsInput; +} diff --git a/server/src/api/@generated/comment-thread/comment-thread-group-by.args.ts b/server/src/api/@generated/comment-thread/comment-thread-group-by.args.ts new file mode 100644 index 000000000..f6978d8ed --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-group-by.args.ts @@ -0,0 +1,42 @@ +import { Field } from '@nestjs/graphql'; +import { ArgsType } from '@nestjs/graphql'; +import { CommentThreadWhereInput } from './comment-thread-where.input'; +import { Type } from 'class-transformer'; +import { CommentThreadOrderByWithAggregationInput } from './comment-thread-order-by-with-aggregation.input'; +import { CommentThreadScalarFieldEnum } from './comment-thread-scalar-field.enum'; +import { CommentThreadScalarWhereWithAggregatesInput } from './comment-thread-scalar-where-with-aggregates.input'; +import { Int } from '@nestjs/graphql'; +import { CommentThreadCountAggregateInput } from './comment-thread-count-aggregate.input'; +import { CommentThreadMinAggregateInput } from './comment-thread-min-aggregate.input'; +import { CommentThreadMaxAggregateInput } from './comment-thread-max-aggregate.input'; + +@ArgsType() +export class CommentThreadGroupByArgs { + @Field(() => CommentThreadWhereInput, { nullable: true }) + @Type(() => CommentThreadWhereInput) + where?: CommentThreadWhereInput; + + @Field(() => [CommentThreadOrderByWithAggregationInput], { nullable: true }) + orderBy?: Array; + + @Field(() => [CommentThreadScalarFieldEnum], { nullable: false }) + by!: Array; + + @Field(() => CommentThreadScalarWhereWithAggregatesInput, { nullable: true }) + having?: CommentThreadScalarWhereWithAggregatesInput; + + @Field(() => Int, { nullable: true }) + take?: number; + + @Field(() => Int, { nullable: true }) + skip?: number; + + @Field(() => CommentThreadCountAggregateInput, { nullable: true }) + _count?: CommentThreadCountAggregateInput; + + @Field(() => CommentThreadMinAggregateInput, { nullable: true }) + _min?: CommentThreadMinAggregateInput; + + @Field(() => CommentThreadMaxAggregateInput, { nullable: true }) + _max?: CommentThreadMaxAggregateInput; +} diff --git a/server/src/api/@generated/comment-thread/comment-thread-group-by.output.ts b/server/src/api/@generated/comment-thread/comment-thread-group-by.output.ts new file mode 100644 index 000000000..4c2e3879a --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-group-by.output.ts @@ -0,0 +1,32 @@ +import { Field } from '@nestjs/graphql'; +import { ObjectType } from '@nestjs/graphql'; +import { CommentThreadCountAggregate } from './comment-thread-count-aggregate.output'; +import { CommentThreadMinAggregate } from './comment-thread-min-aggregate.output'; +import { CommentThreadMaxAggregate } from './comment-thread-max-aggregate.output'; + +@ObjectType() +export class CommentThreadGroupBy { + @Field(() => String, { nullable: false }) + 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 }) + workspaceId!: string; + + @Field(() => CommentThreadCountAggregate, { nullable: true }) + _count?: CommentThreadCountAggregate; + + @Field(() => CommentThreadMinAggregate, { nullable: true }) + _min?: CommentThreadMinAggregate; + + @Field(() => CommentThreadMaxAggregate, { nullable: true }) + _max?: CommentThreadMaxAggregate; +} diff --git a/server/src/api/@generated/comment-thread/comment-thread-list-relation-filter.input.ts b/server/src/api/@generated/comment-thread/comment-thread-list-relation-filter.input.ts new file mode 100644 index 000000000..a404ae33d --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-list-relation-filter.input.ts @@ -0,0 +1,15 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentThreadWhereInput } from './comment-thread-where.input'; + +@InputType() +export class CommentThreadListRelationFilter { + @Field(() => CommentThreadWhereInput, { nullable: true }) + every?: CommentThreadWhereInput; + + @Field(() => CommentThreadWhereInput, { nullable: true }) + some?: CommentThreadWhereInput; + + @Field(() => CommentThreadWhereInput, { nullable: true }) + none?: CommentThreadWhereInput; +} diff --git a/server/src/api/@generated/comment-thread/comment-thread-max-aggregate.input.ts b/server/src/api/@generated/comment-thread/comment-thread-max-aggregate.input.ts new file mode 100644 index 000000000..c970ee260 --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-max-aggregate.input.ts @@ -0,0 +1,21 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { HideField } from '@nestjs/graphql'; + +@InputType() +export class CommentThreadMaxAggregateInput { + @Field(() => Boolean, { nullable: true }) + id?: 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/api/@generated/comment-thread/comment-thread-max-aggregate.output.ts b/server/src/api/@generated/comment-thread/comment-thread-max-aggregate.output.ts new file mode 100644 index 000000000..ea2561d69 --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-max-aggregate.output.ts @@ -0,0 +1,20 @@ +import { Field } from '@nestjs/graphql'; +import { ObjectType } from '@nestjs/graphql'; + +@ObjectType() +export class CommentThreadMaxAggregate { + @Field(() => String, { nullable: true }) + 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 }) + workspaceId?: string; +} diff --git a/server/src/api/@generated/comment-thread/comment-thread-max-order-by-aggregate.input.ts b/server/src/api/@generated/comment-thread/comment-thread-max-order-by-aggregate.input.ts new file mode 100644 index 000000000..b70e7bb60 --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-max-order-by-aggregate.input.ts @@ -0,0 +1,22 @@ +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 CommentThreadMaxOrderByAggregateInput { + @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; + + @HideField() + workspaceId?: keyof typeof SortOrder; +} diff --git a/server/src/api/@generated/comment-thread/comment-thread-min-aggregate.input.ts b/server/src/api/@generated/comment-thread/comment-thread-min-aggregate.input.ts new file mode 100644 index 000000000..e5fc71ed0 --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-min-aggregate.input.ts @@ -0,0 +1,21 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { HideField } from '@nestjs/graphql'; + +@InputType() +export class CommentThreadMinAggregateInput { + @Field(() => Boolean, { nullable: true }) + id?: 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/api/@generated/comment-thread/comment-thread-min-aggregate.output.ts b/server/src/api/@generated/comment-thread/comment-thread-min-aggregate.output.ts new file mode 100644 index 000000000..ddc05c1b7 --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-min-aggregate.output.ts @@ -0,0 +1,20 @@ +import { Field } from '@nestjs/graphql'; +import { ObjectType } from '@nestjs/graphql'; + +@ObjectType() +export class CommentThreadMinAggregate { + @Field(() => String, { nullable: true }) + 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 }) + workspaceId?: string; +} diff --git a/server/src/api/@generated/comment-thread/comment-thread-min-order-by-aggregate.input.ts b/server/src/api/@generated/comment-thread/comment-thread-min-order-by-aggregate.input.ts new file mode 100644 index 000000000..cb9226716 --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-min-order-by-aggregate.input.ts @@ -0,0 +1,22 @@ +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 CommentThreadMinOrderByAggregateInput { + @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; + + @HideField() + workspaceId?: keyof typeof SortOrder; +} diff --git a/server/src/api/@generated/comment-thread/comment-thread-order-by-relation-aggregate.input.ts b/server/src/api/@generated/comment-thread/comment-thread-order-by-relation-aggregate.input.ts new file mode 100644 index 000000000..219a7f482 --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-order-by-relation-aggregate.input.ts @@ -0,0 +1,9 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { SortOrder } from '../prisma/sort-order.enum'; + +@InputType() +export class CommentThreadOrderByRelationAggregateInput { + @Field(() => SortOrder, { nullable: true }) + _count?: keyof typeof SortOrder; +} diff --git a/server/src/api/@generated/comment-thread/comment-thread-order-by-with-aggregation.input.ts b/server/src/api/@generated/comment-thread/comment-thread-order-by-with-aggregation.input.ts new file mode 100644 index 000000000..1ed4dee1a --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-order-by-with-aggregation.input.ts @@ -0,0 +1,34 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { SortOrder } from '../prisma/sort-order.enum'; +import { HideField } from '@nestjs/graphql'; +import { CommentThreadCountOrderByAggregateInput } from './comment-thread-count-order-by-aggregate.input'; +import { CommentThreadMaxOrderByAggregateInput } from './comment-thread-max-order-by-aggregate.input'; +import { CommentThreadMinOrderByAggregateInput } from './comment-thread-min-order-by-aggregate.input'; + +@InputType() +export class CommentThreadOrderByWithAggregationInput { + @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; + + @HideField() + workspaceId?: keyof typeof SortOrder; + + @Field(() => CommentThreadCountOrderByAggregateInput, { nullable: true }) + _count?: CommentThreadCountOrderByAggregateInput; + + @Field(() => CommentThreadMaxOrderByAggregateInput, { nullable: true }) + _max?: CommentThreadMaxOrderByAggregateInput; + + @Field(() => CommentThreadMinOrderByAggregateInput, { nullable: true }) + _min?: CommentThreadMinOrderByAggregateInput; +} diff --git a/server/src/api/@generated/comment-thread/comment-thread-order-by-with-relation.input.ts b/server/src/api/@generated/comment-thread/comment-thread-order-by-with-relation.input.ts new file mode 100644 index 000000000..8bbab6331 --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-order-by-with-relation.input.ts @@ -0,0 +1,36 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { SortOrder } from '../prisma/sort-order.enum'; +import { HideField } from '@nestjs/graphql'; +import { CommentThreadTargetOrderByRelationAggregateInput } from '../comment-thread-target/comment-thread-target-order-by-relation-aggregate.input'; +import { CommentOrderByRelationAggregateInput } from '../comment/comment-order-by-relation-aggregate.input'; +import { WorkspaceOrderByWithRelationInput } from '../workspace/workspace-order-by-with-relation.input'; + +@InputType() +export class CommentThreadOrderByWithRelationInput { + @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; + + @HideField() + workspaceId?: keyof typeof SortOrder; + + @Field(() => CommentThreadTargetOrderByRelationAggregateInput, { + nullable: true, + }) + commentThreadTargets?: CommentThreadTargetOrderByRelationAggregateInput; + + @Field(() => CommentOrderByRelationAggregateInput, { nullable: true }) + comments?: CommentOrderByRelationAggregateInput; + + @HideField() + workspace?: WorkspaceOrderByWithRelationInput; +} diff --git a/server/src/api/@generated/comment-thread/comment-thread-relation-filter.input.ts b/server/src/api/@generated/comment-thread/comment-thread-relation-filter.input.ts new file mode 100644 index 000000000..6fc2ccdf7 --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-relation-filter.input.ts @@ -0,0 +1,12 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentThreadWhereInput } from './comment-thread-where.input'; + +@InputType() +export class CommentThreadRelationFilter { + @Field(() => CommentThreadWhereInput, { nullable: true }) + is?: CommentThreadWhereInput; + + @Field(() => CommentThreadWhereInput, { nullable: true }) + isNot?: CommentThreadWhereInput; +} diff --git a/server/src/api/@generated/comment-thread/comment-thread-scalar-field.enum.ts b/server/src/api/@generated/comment-thread/comment-thread-scalar-field.enum.ts new file mode 100644 index 000000000..ed3da1907 --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-scalar-field.enum.ts @@ -0,0 +1,14 @@ +import { registerEnumType } from '@nestjs/graphql'; + +export enum CommentThreadScalarFieldEnum { + id = 'id', + createdAt = 'createdAt', + updatedAt = 'updatedAt', + deletedAt = 'deletedAt', + workspaceId = 'workspaceId', +} + +registerEnumType(CommentThreadScalarFieldEnum, { + name: 'CommentThreadScalarFieldEnum', + description: undefined, +}); diff --git a/server/src/api/@generated/comment-thread/comment-thread-scalar-where-with-aggregates.input.ts b/server/src/api/@generated/comment-thread/comment-thread-scalar-where-with-aggregates.input.ts new file mode 100644 index 000000000..dd5a99ea6 --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-scalar-where-with-aggregates.input.ts @@ -0,0 +1,39 @@ +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'; + +@InputType() +export class CommentThreadScalarWhereWithAggregatesInput { + @Field(() => [CommentThreadScalarWhereWithAggregatesInput], { + nullable: true, + }) + AND?: Array; + + @Field(() => [CommentThreadScalarWhereWithAggregatesInput], { + nullable: true, + }) + OR?: Array; + + @Field(() => [CommentThreadScalarWhereWithAggregatesInput], { + nullable: true, + }) + NOT?: Array; + + @Field(() => StringWithAggregatesFilter, { nullable: true }) + id?: StringWithAggregatesFilter; + + @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/api/@generated/comment-thread/comment-thread-scalar-where.input.ts b/server/src/api/@generated/comment-thread/comment-thread-scalar-where.input.ts new file mode 100644 index 000000000..bc14e41a3 --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-scalar-where.input.ts @@ -0,0 +1,33 @@ +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'; + +@InputType() +export class CommentThreadScalarWhereInput { + @Field(() => [CommentThreadScalarWhereInput], { nullable: true }) + AND?: Array; + + @Field(() => [CommentThreadScalarWhereInput], { nullable: true }) + OR?: Array; + + @Field(() => [CommentThreadScalarWhereInput], { nullable: true }) + NOT?: Array; + + @Field(() => StringFilter, { nullable: true }) + id?: StringFilter; + + @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/api/@generated/comment-thread/comment-thread-unchecked-create-nested-many-without-workspace.input.ts b/server/src/api/@generated/comment-thread/comment-thread-unchecked-create-nested-many-without-workspace.input.ts new file mode 100644 index 000000000..9be1c5219 --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-unchecked-create-nested-many-without-workspace.input.ts @@ -0,0 +1,30 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentThreadCreateWithoutWorkspaceInput } from './comment-thread-create-without-workspace.input'; +import { Type } from 'class-transformer'; +import { CommentThreadCreateOrConnectWithoutWorkspaceInput } from './comment-thread-create-or-connect-without-workspace.input'; +import { CommentThreadCreateManyWorkspaceInputEnvelope } from './comment-thread-create-many-workspace-input-envelope.input'; +import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input'; + +@InputType() +export class CommentThreadUncheckedCreateNestedManyWithoutWorkspaceInput { + @Field(() => [CommentThreadCreateWithoutWorkspaceInput], { nullable: true }) + @Type(() => CommentThreadCreateWithoutWorkspaceInput) + create?: Array; + + @Field(() => [CommentThreadCreateOrConnectWithoutWorkspaceInput], { + nullable: true, + }) + @Type(() => CommentThreadCreateOrConnectWithoutWorkspaceInput) + connectOrCreate?: Array; + + @Field(() => CommentThreadCreateManyWorkspaceInputEnvelope, { + nullable: true, + }) + @Type(() => CommentThreadCreateManyWorkspaceInputEnvelope) + createMany?: CommentThreadCreateManyWorkspaceInputEnvelope; + + @Field(() => [CommentThreadWhereUniqueInput], { nullable: true }) + @Type(() => CommentThreadWhereUniqueInput) + connect?: Array; +} diff --git a/server/src/api/@generated/comment-thread/comment-thread-unchecked-create-without-comment-thread-targets.input.ts b/server/src/api/@generated/comment-thread/comment-thread-unchecked-create-without-comment-thread-targets.input.ts new file mode 100644 index 000000000..415192c16 --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-unchecked-create-without-comment-thread-targets.input.ts @@ -0,0 +1,27 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { HideField } from '@nestjs/graphql'; +import { CommentUncheckedCreateNestedManyWithoutCommentThreadInput } from '../comment/comment-unchecked-create-nested-many-without-comment-thread.input'; + +@InputType() +export class CommentThreadUncheckedCreateWithoutCommentThreadTargetsInput { + @Field(() => String, { nullable: false }) + id!: 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/api/@generated/comment-thread/comment-thread-unchecked-create-without-comments.input.ts b/server/src/api/@generated/comment-thread/comment-thread-unchecked-create-without-comments.input.ts new file mode 100644 index 000000000..35585d671 --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-unchecked-create-without-comments.input.ts @@ -0,0 +1,28 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { HideField } from '@nestjs/graphql'; +import { CommentThreadTargetUncheckedCreateNestedManyWithoutCommentThreadInput } from '../comment-thread-target/comment-thread-target-unchecked-create-nested-many-without-comment-thread.input'; + +@InputType() +export class CommentThreadUncheckedCreateWithoutCommentsInput { + @Field(() => String, { nullable: false }) + id!: 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/api/@generated/comment-thread/comment-thread-unchecked-create-without-workspace.input.ts b/server/src/api/@generated/comment-thread/comment-thread-unchecked-create-without-workspace.input.ts new file mode 100644 index 000000000..7f7352daf --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-unchecked-create-without-workspace.input.ts @@ -0,0 +1,30 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } 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'; + +@InputType() +export class CommentThreadUncheckedCreateWithoutWorkspaceInput { + @Field(() => String, { nullable: false }) + id!: 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; + + @Field(() => CommentUncheckedCreateNestedManyWithoutCommentThreadInput, { + nullable: true, + }) + comments?: CommentUncheckedCreateNestedManyWithoutCommentThreadInput; +} diff --git a/server/src/api/@generated/comment-thread/comment-thread-unchecked-create.input.ts b/server/src/api/@generated/comment-thread/comment-thread-unchecked-create.input.ts new file mode 100644 index 000000000..e582d86dd --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-unchecked-create.input.ts @@ -0,0 +1,34 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +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'; + +@InputType() +export class CommentThreadUncheckedCreateInput { + @Field(() => String, { nullable: false }) + id!: 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; + + @Field(() => CommentUncheckedCreateNestedManyWithoutCommentThreadInput, { + nullable: true, + }) + comments?: CommentUncheckedCreateNestedManyWithoutCommentThreadInput; +} diff --git a/server/src/api/@generated/comment-thread/comment-thread-unchecked-update-many-without-comment-threads.input.ts b/server/src/api/@generated/comment-thread/comment-thread-unchecked-update-many-without-comment-threads.input.ts new file mode 100644 index 000000000..4a8046ef9 --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-unchecked-update-many-without-comment-threads.input.ts @@ -0,0 +1,20 @@ +import { Field } from '@nestjs/graphql'; +import { 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'; + +@InputType() +export class CommentThreadUncheckedUpdateManyWithoutCommentThreadsInput { + @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) + id?: StringFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) + updatedAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => NullableDateTimeFieldUpdateOperationsInput, { nullable: true }) + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; +} diff --git a/server/src/api/@generated/comment-thread/comment-thread-unchecked-update-many-without-workspace-nested.input.ts b/server/src/api/@generated/comment-thread/comment-thread-unchecked-update-many-without-workspace-nested.input.ts new file mode 100644 index 000000000..3c542be4b --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-unchecked-update-many-without-workspace-nested.input.ts @@ -0,0 +1,68 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentThreadCreateWithoutWorkspaceInput } from './comment-thread-create-without-workspace.input'; +import { Type } from 'class-transformer'; +import { CommentThreadCreateOrConnectWithoutWorkspaceInput } from './comment-thread-create-or-connect-without-workspace.input'; +import { CommentThreadUpsertWithWhereUniqueWithoutWorkspaceInput } from './comment-thread-upsert-with-where-unique-without-workspace.input'; +import { CommentThreadCreateManyWorkspaceInputEnvelope } from './comment-thread-create-many-workspace-input-envelope.input'; +import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input'; +import { CommentThreadUpdateWithWhereUniqueWithoutWorkspaceInput } from './comment-thread-update-with-where-unique-without-workspace.input'; +import { CommentThreadUpdateManyWithWhereWithoutWorkspaceInput } from './comment-thread-update-many-with-where-without-workspace.input'; +import { CommentThreadScalarWhereInput } from './comment-thread-scalar-where.input'; + +@InputType() +export class CommentThreadUncheckedUpdateManyWithoutWorkspaceNestedInput { + @Field(() => [CommentThreadCreateWithoutWorkspaceInput], { nullable: true }) + @Type(() => CommentThreadCreateWithoutWorkspaceInput) + create?: Array; + + @Field(() => [CommentThreadCreateOrConnectWithoutWorkspaceInput], { + nullable: true, + }) + @Type(() => CommentThreadCreateOrConnectWithoutWorkspaceInput) + connectOrCreate?: Array; + + @Field(() => [CommentThreadUpsertWithWhereUniqueWithoutWorkspaceInput], { + nullable: true, + }) + @Type(() => CommentThreadUpsertWithWhereUniqueWithoutWorkspaceInput) + upsert?: Array; + + @Field(() => CommentThreadCreateManyWorkspaceInputEnvelope, { + nullable: true, + }) + @Type(() => CommentThreadCreateManyWorkspaceInputEnvelope) + createMany?: CommentThreadCreateManyWorkspaceInputEnvelope; + + @Field(() => [CommentThreadWhereUniqueInput], { nullable: true }) + @Type(() => CommentThreadWhereUniqueInput) + set?: Array; + + @Field(() => [CommentThreadWhereUniqueInput], { nullable: true }) + @Type(() => CommentThreadWhereUniqueInput) + disconnect?: Array; + + @Field(() => [CommentThreadWhereUniqueInput], { nullable: true }) + @Type(() => CommentThreadWhereUniqueInput) + delete?: Array; + + @Field(() => [CommentThreadWhereUniqueInput], { nullable: true }) + @Type(() => CommentThreadWhereUniqueInput) + connect?: Array; + + @Field(() => [CommentThreadUpdateWithWhereUniqueWithoutWorkspaceInput], { + nullable: true, + }) + @Type(() => CommentThreadUpdateWithWhereUniqueWithoutWorkspaceInput) + update?: Array; + + @Field(() => [CommentThreadUpdateManyWithWhereWithoutWorkspaceInput], { + nullable: true, + }) + @Type(() => CommentThreadUpdateManyWithWhereWithoutWorkspaceInput) + updateMany?: Array; + + @Field(() => [CommentThreadScalarWhereInput], { nullable: true }) + @Type(() => CommentThreadScalarWhereInput) + deleteMany?: Array; +} diff --git a/server/src/api/@generated/comment-thread/comment-thread-unchecked-update-many.input.ts b/server/src/api/@generated/comment-thread/comment-thread-unchecked-update-many.input.ts new file mode 100644 index 000000000..06ce841c1 --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-unchecked-update-many.input.ts @@ -0,0 +1,24 @@ +import { Field } from '@nestjs/graphql'; +import { 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'; + +@InputType() +export class CommentThreadUncheckedUpdateManyInput { + @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) + id?: StringFieldUpdateOperationsInput; + + @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/api/@generated/comment-thread/comment-thread-unchecked-update-without-comment-thread-targets.input.ts b/server/src/api/@generated/comment-thread/comment-thread-unchecked-update-without-comment-thread-targets.input.ts new file mode 100644 index 000000000..3b4ad71ca --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-unchecked-update-without-comment-thread-targets.input.ts @@ -0,0 +1,30 @@ +import { Field } from '@nestjs/graphql'; +import { 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 { CommentUncheckedUpdateManyWithoutCommentThreadNestedInput } from '../comment/comment-unchecked-update-many-without-comment-thread-nested.input'; + +@InputType() +export class CommentThreadUncheckedUpdateWithoutCommentThreadTargetsInput { + @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) + id?: StringFieldUpdateOperationsInput; + + @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/api/@generated/comment-thread/comment-thread-unchecked-update-without-comments.input.ts b/server/src/api/@generated/comment-thread/comment-thread-unchecked-update-without-comments.input.ts new file mode 100644 index 000000000..7a1804892 --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-unchecked-update-without-comments.input.ts @@ -0,0 +1,31 @@ +import { Field } from '@nestjs/graphql'; +import { 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 { CommentThreadTargetUncheckedUpdateManyWithoutCommentThreadNestedInput } from '../comment-thread-target/comment-thread-target-unchecked-update-many-without-comment-thread-nested.input'; + +@InputType() +export class CommentThreadUncheckedUpdateWithoutCommentsInput { + @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) + id?: StringFieldUpdateOperationsInput; + + @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/api/@generated/comment-thread/comment-thread-unchecked-update-without-workspace.input.ts b/server/src/api/@generated/comment-thread/comment-thread-unchecked-update-without-workspace.input.ts new file mode 100644 index 000000000..b2369097d --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-unchecked-update-without-workspace.input.ts @@ -0,0 +1,33 @@ +import { Field } from '@nestjs/graphql'; +import { 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 { 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'; + +@InputType() +export class CommentThreadUncheckedUpdateWithoutWorkspaceInput { + @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( + () => CommentThreadTargetUncheckedUpdateManyWithoutCommentThreadNestedInput, + { nullable: true }, + ) + commentThreadTargets?: CommentThreadTargetUncheckedUpdateManyWithoutCommentThreadNestedInput; + + @Field(() => CommentUncheckedUpdateManyWithoutCommentThreadNestedInput, { + nullable: true, + }) + comments?: CommentUncheckedUpdateManyWithoutCommentThreadNestedInput; +} diff --git a/server/src/api/@generated/comment-thread/comment-thread-unchecked-update.input.ts b/server/src/api/@generated/comment-thread/comment-thread-unchecked-update.input.ts new file mode 100644 index 000000000..a16f3b233 --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-unchecked-update.input.ts @@ -0,0 +1,37 @@ +import { Field } from '@nestjs/graphql'; +import { 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 { 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'; + +@InputType() +export class CommentThreadUncheckedUpdateInput { + @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) + id?: StringFieldUpdateOperationsInput; + + @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; + + @Field(() => CommentUncheckedUpdateManyWithoutCommentThreadNestedInput, { + nullable: true, + }) + comments?: CommentUncheckedUpdateManyWithoutCommentThreadNestedInput; +} diff --git a/server/src/api/@generated/comment-thread/comment-thread-update-many-mutation.input.ts b/server/src/api/@generated/comment-thread/comment-thread-update-many-mutation.input.ts new file mode 100644 index 000000000..1a2aa1d8e --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-update-many-mutation.input.ts @@ -0,0 +1,20 @@ +import { Field } from '@nestjs/graphql'; +import { 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'; + +@InputType() +export class CommentThreadUpdateManyMutationInput { + @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) + id?: StringFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) + updatedAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => NullableDateTimeFieldUpdateOperationsInput, { nullable: true }) + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; +} diff --git a/server/src/api/@generated/comment-thread/comment-thread-update-many-with-where-without-workspace.input.ts b/server/src/api/@generated/comment-thread/comment-thread-update-many-with-where-without-workspace.input.ts new file mode 100644 index 000000000..61d894dd1 --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-update-many-with-where-without-workspace.input.ts @@ -0,0 +1,16 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentThreadScalarWhereInput } from './comment-thread-scalar-where.input'; +import { Type } from 'class-transformer'; +import { CommentThreadUpdateManyMutationInput } from './comment-thread-update-many-mutation.input'; + +@InputType() +export class CommentThreadUpdateManyWithWhereWithoutWorkspaceInput { + @Field(() => CommentThreadScalarWhereInput, { nullable: false }) + @Type(() => CommentThreadScalarWhereInput) + where!: CommentThreadScalarWhereInput; + + @Field(() => CommentThreadUpdateManyMutationInput, { nullable: false }) + @Type(() => CommentThreadUpdateManyMutationInput) + data!: CommentThreadUpdateManyMutationInput; +} diff --git a/server/src/api/@generated/comment-thread/comment-thread-update-many-without-workspace-nested.input.ts b/server/src/api/@generated/comment-thread/comment-thread-update-many-without-workspace-nested.input.ts new file mode 100644 index 000000000..9654aff5e --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-update-many-without-workspace-nested.input.ts @@ -0,0 +1,68 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentThreadCreateWithoutWorkspaceInput } from './comment-thread-create-without-workspace.input'; +import { Type } from 'class-transformer'; +import { CommentThreadCreateOrConnectWithoutWorkspaceInput } from './comment-thread-create-or-connect-without-workspace.input'; +import { CommentThreadUpsertWithWhereUniqueWithoutWorkspaceInput } from './comment-thread-upsert-with-where-unique-without-workspace.input'; +import { CommentThreadCreateManyWorkspaceInputEnvelope } from './comment-thread-create-many-workspace-input-envelope.input'; +import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input'; +import { CommentThreadUpdateWithWhereUniqueWithoutWorkspaceInput } from './comment-thread-update-with-where-unique-without-workspace.input'; +import { CommentThreadUpdateManyWithWhereWithoutWorkspaceInput } from './comment-thread-update-many-with-where-without-workspace.input'; +import { CommentThreadScalarWhereInput } from './comment-thread-scalar-where.input'; + +@InputType() +export class CommentThreadUpdateManyWithoutWorkspaceNestedInput { + @Field(() => [CommentThreadCreateWithoutWorkspaceInput], { nullable: true }) + @Type(() => CommentThreadCreateWithoutWorkspaceInput) + create?: Array; + + @Field(() => [CommentThreadCreateOrConnectWithoutWorkspaceInput], { + nullable: true, + }) + @Type(() => CommentThreadCreateOrConnectWithoutWorkspaceInput) + connectOrCreate?: Array; + + @Field(() => [CommentThreadUpsertWithWhereUniqueWithoutWorkspaceInput], { + nullable: true, + }) + @Type(() => CommentThreadUpsertWithWhereUniqueWithoutWorkspaceInput) + upsert?: Array; + + @Field(() => CommentThreadCreateManyWorkspaceInputEnvelope, { + nullable: true, + }) + @Type(() => CommentThreadCreateManyWorkspaceInputEnvelope) + createMany?: CommentThreadCreateManyWorkspaceInputEnvelope; + + @Field(() => [CommentThreadWhereUniqueInput], { nullable: true }) + @Type(() => CommentThreadWhereUniqueInput) + set?: Array; + + @Field(() => [CommentThreadWhereUniqueInput], { nullable: true }) + @Type(() => CommentThreadWhereUniqueInput) + disconnect?: Array; + + @Field(() => [CommentThreadWhereUniqueInput], { nullable: true }) + @Type(() => CommentThreadWhereUniqueInput) + delete?: Array; + + @Field(() => [CommentThreadWhereUniqueInput], { nullable: true }) + @Type(() => CommentThreadWhereUniqueInput) + connect?: Array; + + @Field(() => [CommentThreadUpdateWithWhereUniqueWithoutWorkspaceInput], { + nullable: true, + }) + @Type(() => CommentThreadUpdateWithWhereUniqueWithoutWorkspaceInput) + update?: Array; + + @Field(() => [CommentThreadUpdateManyWithWhereWithoutWorkspaceInput], { + nullable: true, + }) + @Type(() => CommentThreadUpdateManyWithWhereWithoutWorkspaceInput) + updateMany?: Array; + + @Field(() => [CommentThreadScalarWhereInput], { nullable: true }) + @Type(() => CommentThreadScalarWhereInput) + deleteMany?: Array; +} diff --git a/server/src/api/@generated/comment-thread/comment-thread-update-one-required-without-comment-thread-targets-nested.input.ts b/server/src/api/@generated/comment-thread/comment-thread-update-one-required-without-comment-thread-targets-nested.input.ts new file mode 100644 index 000000000..8296b0bdb --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-update-one-required-without-comment-thread-targets-nested.input.ts @@ -0,0 +1,39 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentThreadCreateWithoutCommentThreadTargetsInput } from './comment-thread-create-without-comment-thread-targets.input'; +import { Type } from 'class-transformer'; +import { CommentThreadCreateOrConnectWithoutCommentThreadTargetsInput } from './comment-thread-create-or-connect-without-comment-thread-targets.input'; +import { CommentThreadUpsertWithoutCommentThreadTargetsInput } from './comment-thread-upsert-without-comment-thread-targets.input'; +import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input'; +import { CommentThreadUpdateWithoutCommentThreadTargetsInput } from './comment-thread-update-without-comment-thread-targets.input'; + +@InputType() +export class CommentThreadUpdateOneRequiredWithoutCommentThreadTargetsNestedInput { + @Field(() => CommentThreadCreateWithoutCommentThreadTargetsInput, { + nullable: true, + }) + @Type(() => CommentThreadCreateWithoutCommentThreadTargetsInput) + create?: CommentThreadCreateWithoutCommentThreadTargetsInput; + + @Field(() => CommentThreadCreateOrConnectWithoutCommentThreadTargetsInput, { + nullable: true, + }) + @Type(() => CommentThreadCreateOrConnectWithoutCommentThreadTargetsInput) + connectOrCreate?: CommentThreadCreateOrConnectWithoutCommentThreadTargetsInput; + + @Field(() => CommentThreadUpsertWithoutCommentThreadTargetsInput, { + nullable: true, + }) + @Type(() => CommentThreadUpsertWithoutCommentThreadTargetsInput) + upsert?: CommentThreadUpsertWithoutCommentThreadTargetsInput; + + @Field(() => CommentThreadWhereUniqueInput, { nullable: true }) + @Type(() => CommentThreadWhereUniqueInput) + connect?: CommentThreadWhereUniqueInput; + + @Field(() => CommentThreadUpdateWithoutCommentThreadTargetsInput, { + nullable: true, + }) + @Type(() => CommentThreadUpdateWithoutCommentThreadTargetsInput) + update?: CommentThreadUpdateWithoutCommentThreadTargetsInput; +} diff --git a/server/src/api/@generated/comment-thread/comment-thread-update-one-required-without-comments-nested.input.ts b/server/src/api/@generated/comment-thread/comment-thread-update-one-required-without-comments-nested.input.ts new file mode 100644 index 000000000..a74885d40 --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-update-one-required-without-comments-nested.input.ts @@ -0,0 +1,33 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentThreadCreateWithoutCommentsInput } from './comment-thread-create-without-comments.input'; +import { Type } from 'class-transformer'; +import { CommentThreadCreateOrConnectWithoutCommentsInput } from './comment-thread-create-or-connect-without-comments.input'; +import { CommentThreadUpsertWithoutCommentsInput } from './comment-thread-upsert-without-comments.input'; +import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input'; +import { CommentThreadUpdateWithoutCommentsInput } from './comment-thread-update-without-comments.input'; + +@InputType() +export class CommentThreadUpdateOneRequiredWithoutCommentsNestedInput { + @Field(() => CommentThreadCreateWithoutCommentsInput, { nullable: true }) + @Type(() => CommentThreadCreateWithoutCommentsInput) + create?: CommentThreadCreateWithoutCommentsInput; + + @Field(() => CommentThreadCreateOrConnectWithoutCommentsInput, { + nullable: true, + }) + @Type(() => CommentThreadCreateOrConnectWithoutCommentsInput) + connectOrCreate?: CommentThreadCreateOrConnectWithoutCommentsInput; + + @Field(() => CommentThreadUpsertWithoutCommentsInput, { nullable: true }) + @Type(() => CommentThreadUpsertWithoutCommentsInput) + upsert?: CommentThreadUpsertWithoutCommentsInput; + + @Field(() => CommentThreadWhereUniqueInput, { nullable: true }) + @Type(() => CommentThreadWhereUniqueInput) + connect?: CommentThreadWhereUniqueInput; + + @Field(() => CommentThreadUpdateWithoutCommentsInput, { nullable: true }) + @Type(() => CommentThreadUpdateWithoutCommentsInput) + update?: CommentThreadUpdateWithoutCommentsInput; +} diff --git a/server/src/api/@generated/comment-thread/comment-thread-update-with-where-unique-without-workspace.input.ts b/server/src/api/@generated/comment-thread/comment-thread-update-with-where-unique-without-workspace.input.ts new file mode 100644 index 000000000..2ddcf95a4 --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-update-with-where-unique-without-workspace.input.ts @@ -0,0 +1,16 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input'; +import { Type } from 'class-transformer'; +import { CommentThreadUpdateWithoutWorkspaceInput } from './comment-thread-update-without-workspace.input'; + +@InputType() +export class CommentThreadUpdateWithWhereUniqueWithoutWorkspaceInput { + @Field(() => CommentThreadWhereUniqueInput, { nullable: false }) + @Type(() => CommentThreadWhereUniqueInput) + where!: CommentThreadWhereUniqueInput; + + @Field(() => CommentThreadUpdateWithoutWorkspaceInput, { nullable: false }) + @Type(() => CommentThreadUpdateWithoutWorkspaceInput) + data!: CommentThreadUpdateWithoutWorkspaceInput; +} diff --git a/server/src/api/@generated/comment-thread/comment-thread-update-without-comment-thread-targets.input.ts b/server/src/api/@generated/comment-thread/comment-thread-update-without-comment-thread-targets.input.ts new file mode 100644 index 000000000..2da9aa256 --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-update-without-comment-thread-targets.input.ts @@ -0,0 +1,31 @@ +import { Field } from '@nestjs/graphql'; +import { 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 { 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 { + @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(() => CommentUpdateManyWithoutCommentThreadNestedInput, { + nullable: true, + }) + comments?: CommentUpdateManyWithoutCommentThreadNestedInput; + + @HideField() + workspace?: WorkspaceUpdateOneRequiredWithoutCommentThreadsNestedInput; +} diff --git a/server/src/api/@generated/comment-thread/comment-thread-update-without-comments.input.ts b/server/src/api/@generated/comment-thread/comment-thread-update-without-comments.input.ts new file mode 100644 index 000000000..848e73108 --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-update-without-comments.input.ts @@ -0,0 +1,31 @@ +import { Field } from '@nestjs/graphql'; +import { 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 { 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 { + @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(() => CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput, { + nullable: true, + }) + commentThreadTargets?: CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput; + + @HideField() + workspace?: WorkspaceUpdateOneRequiredWithoutCommentThreadsNestedInput; +} diff --git a/server/src/api/@generated/comment-thread/comment-thread-update-without-workspace.input.ts b/server/src/api/@generated/comment-thread/comment-thread-update-without-workspace.input.ts new file mode 100644 index 000000000..cf9fc825d --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-update-without-workspace.input.ts @@ -0,0 +1,32 @@ +import { Field } from '@nestjs/graphql'; +import { 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 { 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'; + +@InputType() +export class CommentThreadUpdateWithoutWorkspaceInput { + @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(() => CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput, { + nullable: true, + }) + commentThreadTargets?: CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput; + + @Field(() => CommentUpdateManyWithoutCommentThreadNestedInput, { + nullable: true, + }) + comments?: CommentUpdateManyWithoutCommentThreadNestedInput; +} diff --git a/server/src/api/@generated/comment-thread/comment-thread-update.input.ts b/server/src/api/@generated/comment-thread/comment-thread-update.input.ts new file mode 100644 index 000000000..1914f875e --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-update.input.ts @@ -0,0 +1,37 @@ +import { Field } from '@nestjs/graphql'; +import { 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 { 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 { + @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(() => CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput, { + nullable: true, + }) + commentThreadTargets?: CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput; + + @Field(() => CommentUpdateManyWithoutCommentThreadNestedInput, { + nullable: true, + }) + comments?: CommentUpdateManyWithoutCommentThreadNestedInput; + + @HideField() + workspace?: WorkspaceUpdateOneRequiredWithoutCommentThreadsNestedInput; +} diff --git a/server/src/api/@generated/comment-thread/comment-thread-upsert-with-where-unique-without-workspace.input.ts b/server/src/api/@generated/comment-thread/comment-thread-upsert-with-where-unique-without-workspace.input.ts new file mode 100644 index 000000000..5a5f5ce52 --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-upsert-with-where-unique-without-workspace.input.ts @@ -0,0 +1,21 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input'; +import { Type } from 'class-transformer'; +import { CommentThreadUpdateWithoutWorkspaceInput } from './comment-thread-update-without-workspace.input'; +import { CommentThreadCreateWithoutWorkspaceInput } from './comment-thread-create-without-workspace.input'; + +@InputType() +export class CommentThreadUpsertWithWhereUniqueWithoutWorkspaceInput { + @Field(() => CommentThreadWhereUniqueInput, { nullable: false }) + @Type(() => CommentThreadWhereUniqueInput) + where!: CommentThreadWhereUniqueInput; + + @Field(() => CommentThreadUpdateWithoutWorkspaceInput, { nullable: false }) + @Type(() => CommentThreadUpdateWithoutWorkspaceInput) + update!: CommentThreadUpdateWithoutWorkspaceInput; + + @Field(() => CommentThreadCreateWithoutWorkspaceInput, { nullable: false }) + @Type(() => CommentThreadCreateWithoutWorkspaceInput) + create!: CommentThreadCreateWithoutWorkspaceInput; +} diff --git a/server/src/api/@generated/comment-thread/comment-thread-upsert-without-comment-thread-targets.input.ts b/server/src/api/@generated/comment-thread/comment-thread-upsert-without-comment-thread-targets.input.ts new file mode 100644 index 000000000..7510d83c3 --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-upsert-without-comment-thread-targets.input.ts @@ -0,0 +1,20 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentThreadUpdateWithoutCommentThreadTargetsInput } from './comment-thread-update-without-comment-thread-targets.input'; +import { Type } from 'class-transformer'; +import { CommentThreadCreateWithoutCommentThreadTargetsInput } from './comment-thread-create-without-comment-thread-targets.input'; + +@InputType() +export class CommentThreadUpsertWithoutCommentThreadTargetsInput { + @Field(() => CommentThreadUpdateWithoutCommentThreadTargetsInput, { + nullable: false, + }) + @Type(() => CommentThreadUpdateWithoutCommentThreadTargetsInput) + update!: CommentThreadUpdateWithoutCommentThreadTargetsInput; + + @Field(() => CommentThreadCreateWithoutCommentThreadTargetsInput, { + nullable: false, + }) + @Type(() => CommentThreadCreateWithoutCommentThreadTargetsInput) + create!: CommentThreadCreateWithoutCommentThreadTargetsInput; +} diff --git a/server/src/api/@generated/comment-thread/comment-thread-upsert-without-comments.input.ts b/server/src/api/@generated/comment-thread/comment-thread-upsert-without-comments.input.ts new file mode 100644 index 000000000..36543edab --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-upsert-without-comments.input.ts @@ -0,0 +1,16 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentThreadUpdateWithoutCommentsInput } from './comment-thread-update-without-comments.input'; +import { Type } from 'class-transformer'; +import { CommentThreadCreateWithoutCommentsInput } from './comment-thread-create-without-comments.input'; + +@InputType() +export class CommentThreadUpsertWithoutCommentsInput { + @Field(() => CommentThreadUpdateWithoutCommentsInput, { nullable: false }) + @Type(() => CommentThreadUpdateWithoutCommentsInput) + update!: CommentThreadUpdateWithoutCommentsInput; + + @Field(() => CommentThreadCreateWithoutCommentsInput, { nullable: false }) + @Type(() => CommentThreadCreateWithoutCommentsInput) + create!: CommentThreadCreateWithoutCommentsInput; +} diff --git a/server/src/api/@generated/comment-thread/comment-thread-where-unique.input.ts b/server/src/api/@generated/comment-thread/comment-thread-where-unique.input.ts new file mode 100644 index 000000000..2a02cb0be --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-where-unique.input.ts @@ -0,0 +1,8 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; + +@InputType() +export class CommentThreadWhereUniqueInput { + @Field(() => String, { nullable: true }) + id?: string; +} diff --git a/server/src/api/@generated/comment-thread/comment-thread-where.input.ts b/server/src/api/@generated/comment-thread/comment-thread-where.input.ts new file mode 100644 index 000000000..e88133805 --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread-where.input.ts @@ -0,0 +1,45 @@ +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 { 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'; + +@InputType() +export class CommentThreadWhereInput { + @Field(() => [CommentThreadWhereInput], { nullable: true }) + AND?: Array; + + @Field(() => [CommentThreadWhereInput], { nullable: true }) + OR?: Array; + + @Field(() => [CommentThreadWhereInput], { nullable: true }) + NOT?: Array; + + @Field(() => StringFilter, { nullable: true }) + id?: StringFilter; + + @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; + + @Field(() => CommentListRelationFilter, { nullable: true }) + comments?: CommentListRelationFilter; + + @HideField() + workspace?: WorkspaceRelationFilter; +} diff --git a/server/src/api/@generated/comment-thread/comment-thread.model.ts b/server/src/api/@generated/comment-thread/comment-thread.model.ts new file mode 100644 index 000000000..fdce00899 --- /dev/null +++ b/server/src/api/@generated/comment-thread/comment-thread.model.ts @@ -0,0 +1,37 @@ +import { Field } from '@nestjs/graphql'; +import { ObjectType } from '@nestjs/graphql'; +import { ID } from '@nestjs/graphql'; +import { CommentThreadTarget } from '../comment-thread-target/comment-thread-target.model'; +import { Comment } from '../comment/comment.model'; +import { Workspace } from '../workspace/workspace.model'; +import { CommentThreadCount } from '../comment/comment-thread-count.output'; + +@ObjectType() +export class CommentThread { + @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 }) + workspaceId!: string; + + @Field(() => [CommentThreadTarget], { nullable: true }) + commentThreadTargets?: Array; + + @Field(() => [Comment], { nullable: true }) + comments?: Array; + + @Field(() => Workspace, { nullable: false }) + workspace?: Workspace; + + @Field(() => CommentThreadCount, { nullable: false }) + _count?: CommentThreadCount; +} diff --git a/server/src/api/@generated/comment-thread/create-many-comment-thread.args.ts b/server/src/api/@generated/comment-thread/create-many-comment-thread.args.ts new file mode 100644 index 000000000..c164431a1 --- /dev/null +++ b/server/src/api/@generated/comment-thread/create-many-comment-thread.args.ts @@ -0,0 +1,14 @@ +import { Field } from '@nestjs/graphql'; +import { ArgsType } from '@nestjs/graphql'; +import { CommentThreadCreateManyInput } from './comment-thread-create-many.input'; +import { Type } from 'class-transformer'; + +@ArgsType() +export class CreateManyCommentThreadArgs { + @Field(() => [CommentThreadCreateManyInput], { nullable: false }) + @Type(() => CommentThreadCreateManyInput) + data!: Array; + + @Field(() => Boolean, { nullable: true }) + skipDuplicates?: boolean; +} diff --git a/server/src/api/@generated/comment-thread/create-one-comment-thread.args.ts b/server/src/api/@generated/comment-thread/create-one-comment-thread.args.ts new file mode 100644 index 000000000..cd42f478f --- /dev/null +++ b/server/src/api/@generated/comment-thread/create-one-comment-thread.args.ts @@ -0,0 +1,11 @@ +import { Field } from '@nestjs/graphql'; +import { ArgsType } from '@nestjs/graphql'; +import { CommentThreadCreateInput } from './comment-thread-create.input'; +import { Type } from 'class-transformer'; + +@ArgsType() +export class CreateOneCommentThreadArgs { + @Field(() => CommentThreadCreateInput, { nullable: false }) + @Type(() => CommentThreadCreateInput) + data!: CommentThreadCreateInput; +} diff --git a/server/src/api/@generated/comment-thread/delete-many-comment-thread.args.ts b/server/src/api/@generated/comment-thread/delete-many-comment-thread.args.ts new file mode 100644 index 000000000..66e58e9ea --- /dev/null +++ b/server/src/api/@generated/comment-thread/delete-many-comment-thread.args.ts @@ -0,0 +1,11 @@ +import { Field } from '@nestjs/graphql'; +import { ArgsType } from '@nestjs/graphql'; +import { CommentThreadWhereInput } from './comment-thread-where.input'; +import { Type } from 'class-transformer'; + +@ArgsType() +export class DeleteManyCommentThreadArgs { + @Field(() => CommentThreadWhereInput, { nullable: true }) + @Type(() => CommentThreadWhereInput) + where?: CommentThreadWhereInput; +} diff --git a/server/src/api/@generated/comment-thread/delete-one-comment-thread.args.ts b/server/src/api/@generated/comment-thread/delete-one-comment-thread.args.ts new file mode 100644 index 000000000..d32ea70d9 --- /dev/null +++ b/server/src/api/@generated/comment-thread/delete-one-comment-thread.args.ts @@ -0,0 +1,11 @@ +import { Field } from '@nestjs/graphql'; +import { ArgsType } from '@nestjs/graphql'; +import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input'; +import { Type } from 'class-transformer'; + +@ArgsType() +export class DeleteOneCommentThreadArgs { + @Field(() => CommentThreadWhereUniqueInput, { nullable: false }) + @Type(() => CommentThreadWhereUniqueInput) + where!: CommentThreadWhereUniqueInput; +} diff --git a/server/src/api/@generated/comment-thread/find-first-comment-thread-or-throw.args.ts b/server/src/api/@generated/comment-thread/find-first-comment-thread-or-throw.args.ts new file mode 100644 index 000000000..851888ea9 --- /dev/null +++ b/server/src/api/@generated/comment-thread/find-first-comment-thread-or-throw.args.ts @@ -0,0 +1,30 @@ +import { Field } from '@nestjs/graphql'; +import { ArgsType } from '@nestjs/graphql'; +import { CommentThreadWhereInput } from './comment-thread-where.input'; +import { Type } from 'class-transformer'; +import { CommentThreadOrderByWithRelationInput } from './comment-thread-order-by-with-relation.input'; +import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input'; +import { Int } from '@nestjs/graphql'; +import { CommentThreadScalarFieldEnum } from './comment-thread-scalar-field.enum'; + +@ArgsType() +export class FindFirstCommentThreadOrThrowArgs { + @Field(() => CommentThreadWhereInput, { nullable: true }) + @Type(() => CommentThreadWhereInput) + where?: CommentThreadWhereInput; + + @Field(() => [CommentThreadOrderByWithRelationInput], { nullable: true }) + orderBy?: Array; + + @Field(() => CommentThreadWhereUniqueInput, { nullable: true }) + cursor?: CommentThreadWhereUniqueInput; + + @Field(() => Int, { nullable: true }) + take?: number; + + @Field(() => Int, { nullable: true }) + skip?: number; + + @Field(() => [CommentThreadScalarFieldEnum], { nullable: true }) + distinct?: Array; +} diff --git a/server/src/api/@generated/comment-thread/find-first-comment-thread.args.ts b/server/src/api/@generated/comment-thread/find-first-comment-thread.args.ts new file mode 100644 index 000000000..b347df8e5 --- /dev/null +++ b/server/src/api/@generated/comment-thread/find-first-comment-thread.args.ts @@ -0,0 +1,30 @@ +import { Field } from '@nestjs/graphql'; +import { ArgsType } from '@nestjs/graphql'; +import { CommentThreadWhereInput } from './comment-thread-where.input'; +import { Type } from 'class-transformer'; +import { CommentThreadOrderByWithRelationInput } from './comment-thread-order-by-with-relation.input'; +import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input'; +import { Int } from '@nestjs/graphql'; +import { CommentThreadScalarFieldEnum } from './comment-thread-scalar-field.enum'; + +@ArgsType() +export class FindFirstCommentThreadArgs { + @Field(() => CommentThreadWhereInput, { nullable: true }) + @Type(() => CommentThreadWhereInput) + where?: CommentThreadWhereInput; + + @Field(() => [CommentThreadOrderByWithRelationInput], { nullable: true }) + orderBy?: Array; + + @Field(() => CommentThreadWhereUniqueInput, { nullable: true }) + cursor?: CommentThreadWhereUniqueInput; + + @Field(() => Int, { nullable: true }) + take?: number; + + @Field(() => Int, { nullable: true }) + skip?: number; + + @Field(() => [CommentThreadScalarFieldEnum], { nullable: true }) + distinct?: Array; +} diff --git a/server/src/api/@generated/comment-thread/find-many-comment-thread.args.ts b/server/src/api/@generated/comment-thread/find-many-comment-thread.args.ts new file mode 100644 index 000000000..711f3e6bc --- /dev/null +++ b/server/src/api/@generated/comment-thread/find-many-comment-thread.args.ts @@ -0,0 +1,30 @@ +import { Field } from '@nestjs/graphql'; +import { ArgsType } from '@nestjs/graphql'; +import { CommentThreadWhereInput } from './comment-thread-where.input'; +import { Type } from 'class-transformer'; +import { CommentThreadOrderByWithRelationInput } from './comment-thread-order-by-with-relation.input'; +import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input'; +import { Int } from '@nestjs/graphql'; +import { CommentThreadScalarFieldEnum } from './comment-thread-scalar-field.enum'; + +@ArgsType() +export class FindManyCommentThreadArgs { + @Field(() => CommentThreadWhereInput, { nullable: true }) + @Type(() => CommentThreadWhereInput) + where?: CommentThreadWhereInput; + + @Field(() => [CommentThreadOrderByWithRelationInput], { nullable: true }) + orderBy?: Array; + + @Field(() => CommentThreadWhereUniqueInput, { nullable: true }) + cursor?: CommentThreadWhereUniqueInput; + + @Field(() => Int, { nullable: true }) + take?: number; + + @Field(() => Int, { nullable: true }) + skip?: number; + + @Field(() => [CommentThreadScalarFieldEnum], { nullable: true }) + distinct?: Array; +} diff --git a/server/src/api/@generated/comment-thread/find-unique-comment-thread-or-throw.args.ts b/server/src/api/@generated/comment-thread/find-unique-comment-thread-or-throw.args.ts new file mode 100644 index 000000000..cc01910d7 --- /dev/null +++ b/server/src/api/@generated/comment-thread/find-unique-comment-thread-or-throw.args.ts @@ -0,0 +1,11 @@ +import { Field } from '@nestjs/graphql'; +import { ArgsType } from '@nestjs/graphql'; +import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input'; +import { Type } from 'class-transformer'; + +@ArgsType() +export class FindUniqueCommentThreadOrThrowArgs { + @Field(() => CommentThreadWhereUniqueInput, { nullable: false }) + @Type(() => CommentThreadWhereUniqueInput) + where!: CommentThreadWhereUniqueInput; +} diff --git a/server/src/api/@generated/comment-thread/find-unique-comment-thread.args.ts b/server/src/api/@generated/comment-thread/find-unique-comment-thread.args.ts new file mode 100644 index 000000000..8b19fa6f5 --- /dev/null +++ b/server/src/api/@generated/comment-thread/find-unique-comment-thread.args.ts @@ -0,0 +1,11 @@ +import { Field } from '@nestjs/graphql'; +import { ArgsType } from '@nestjs/graphql'; +import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input'; +import { Type } from 'class-transformer'; + +@ArgsType() +export class FindUniqueCommentThreadArgs { + @Field(() => CommentThreadWhereUniqueInput, { nullable: false }) + @Type(() => CommentThreadWhereUniqueInput) + where!: CommentThreadWhereUniqueInput; +} diff --git a/server/src/api/@generated/comment-thread/update-many-comment-thread.args.ts b/server/src/api/@generated/comment-thread/update-many-comment-thread.args.ts new file mode 100644 index 000000000..60e1de17a --- /dev/null +++ b/server/src/api/@generated/comment-thread/update-many-comment-thread.args.ts @@ -0,0 +1,16 @@ +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 { CommentThreadWhereInput } from './comment-thread-where.input'; + +@ArgsType() +export class UpdateManyCommentThreadArgs { + @Field(() => CommentThreadUpdateManyMutationInput, { nullable: false }) + @Type(() => CommentThreadUpdateManyMutationInput) + data!: CommentThreadUpdateManyMutationInput; + + @Field(() => CommentThreadWhereInput, { nullable: true }) + @Type(() => CommentThreadWhereInput) + where?: CommentThreadWhereInput; +} diff --git a/server/src/api/@generated/comment-thread/update-one-comment-thread.args.ts b/server/src/api/@generated/comment-thread/update-one-comment-thread.args.ts new file mode 100644 index 000000000..81b672851 --- /dev/null +++ b/server/src/api/@generated/comment-thread/update-one-comment-thread.args.ts @@ -0,0 +1,16 @@ +import { Field } from '@nestjs/graphql'; +import { ArgsType } from '@nestjs/graphql'; +import { CommentThreadUpdateInput } from './comment-thread-update.input'; +import { Type } from 'class-transformer'; +import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input'; + +@ArgsType() +export class UpdateOneCommentThreadArgs { + @Field(() => CommentThreadUpdateInput, { nullable: false }) + @Type(() => CommentThreadUpdateInput) + data!: CommentThreadUpdateInput; + + @Field(() => CommentThreadWhereUniqueInput, { nullable: false }) + @Type(() => CommentThreadWhereUniqueInput) + where!: CommentThreadWhereUniqueInput; +} diff --git a/server/src/api/@generated/comment-thread/upsert-one-comment-thread.args.ts b/server/src/api/@generated/comment-thread/upsert-one-comment-thread.args.ts new file mode 100644 index 000000000..43270e398 --- /dev/null +++ b/server/src/api/@generated/comment-thread/upsert-one-comment-thread.args.ts @@ -0,0 +1,21 @@ +import { Field } from '@nestjs/graphql'; +import { ArgsType } from '@nestjs/graphql'; +import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input'; +import { Type } from 'class-transformer'; +import { CommentThreadCreateInput } from './comment-thread-create.input'; +import { CommentThreadUpdateInput } from './comment-thread-update.input'; + +@ArgsType() +export class UpsertOneCommentThreadArgs { + @Field(() => CommentThreadWhereUniqueInput, { nullable: false }) + @Type(() => CommentThreadWhereUniqueInput) + where!: CommentThreadWhereUniqueInput; + + @Field(() => CommentThreadCreateInput, { nullable: false }) + @Type(() => CommentThreadCreateInput) + create!: CommentThreadCreateInput; + + @Field(() => CommentThreadUpdateInput, { nullable: false }) + @Type(() => CommentThreadUpdateInput) + update!: CommentThreadUpdateInput; +} diff --git a/server/src/api/@generated/comment/aggregate-comment.output.ts b/server/src/api/@generated/comment/aggregate-comment.output.ts new file mode 100644 index 000000000..59c747eb7 --- /dev/null +++ b/server/src/api/@generated/comment/aggregate-comment.output.ts @@ -0,0 +1,17 @@ +import { Field } from '@nestjs/graphql'; +import { ObjectType } from '@nestjs/graphql'; +import { CommentCountAggregate } from './comment-count-aggregate.output'; +import { CommentMinAggregate } from './comment-min-aggregate.output'; +import { CommentMaxAggregate } from './comment-max-aggregate.output'; + +@ObjectType() +export class AggregateComment { + @Field(() => CommentCountAggregate, { nullable: true }) + _count?: CommentCountAggregate; + + @Field(() => CommentMinAggregate, { nullable: true }) + _min?: CommentMinAggregate; + + @Field(() => CommentMaxAggregate, { nullable: true }) + _max?: CommentMaxAggregate; +} diff --git a/server/src/api/@generated/comment/comment-aggregate.args.ts b/server/src/api/@generated/comment/comment-aggregate.args.ts new file mode 100644 index 000000000..16d93a508 --- /dev/null +++ b/server/src/api/@generated/comment/comment-aggregate.args.ts @@ -0,0 +1,38 @@ +import { Field } from '@nestjs/graphql'; +import { ArgsType } from '@nestjs/graphql'; +import { CommentWhereInput } from './comment-where.input'; +import { Type } from 'class-transformer'; +import { CommentOrderByWithRelationInput } from './comment-order-by-with-relation.input'; +import { CommentWhereUniqueInput } from './comment-where-unique.input'; +import { Int } from '@nestjs/graphql'; +import { CommentCountAggregateInput } from './comment-count-aggregate.input'; +import { CommentMinAggregateInput } from './comment-min-aggregate.input'; +import { CommentMaxAggregateInput } from './comment-max-aggregate.input'; + +@ArgsType() +export class CommentAggregateArgs { + @Field(() => CommentWhereInput, { nullable: true }) + @Type(() => CommentWhereInput) + where?: CommentWhereInput; + + @Field(() => [CommentOrderByWithRelationInput], { nullable: true }) + orderBy?: Array; + + @Field(() => CommentWhereUniqueInput, { nullable: true }) + cursor?: CommentWhereUniqueInput; + + @Field(() => Int, { nullable: true }) + take?: number; + + @Field(() => Int, { nullable: true }) + skip?: number; + + @Field(() => CommentCountAggregateInput, { nullable: true }) + _count?: CommentCountAggregateInput; + + @Field(() => CommentMinAggregateInput, { nullable: true }) + _min?: CommentMinAggregateInput; + + @Field(() => CommentMaxAggregateInput, { nullable: true }) + _max?: CommentMaxAggregateInput; +} diff --git a/server/src/api/@generated/comment/comment-count-aggregate.input.ts b/server/src/api/@generated/comment/comment-count-aggregate.input.ts new file mode 100644 index 000000000..a094806ad --- /dev/null +++ b/server/src/api/@generated/comment/comment-count-aggregate.input.ts @@ -0,0 +1,33 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { HideField } from '@nestjs/graphql'; + +@InputType() +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; + + @Field(() => Boolean, { nullable: true }) + authorId?: true; + + @Field(() => Boolean, { nullable: true }) + commentThreadId?: true; + + @HideField() + workspaceId?: true; + + @Field(() => Boolean, { nullable: true }) + _all?: true; +} diff --git a/server/src/api/@generated/comment/comment-count-aggregate.output.ts b/server/src/api/@generated/comment/comment-count-aggregate.output.ts new file mode 100644 index 000000000..f4b6b7ce5 --- /dev/null +++ b/server/src/api/@generated/comment/comment-count-aggregate.output.ts @@ -0,0 +1,33 @@ +import { Field } from '@nestjs/graphql'; +import { ObjectType } from '@nestjs/graphql'; +import { Int } from '@nestjs/graphql'; + +@ObjectType() +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; + + @Field(() => Int, { nullable: false }) + authorId!: number; + + @Field(() => Int, { nullable: false }) + commentThreadId!: number; + + @Field(() => Int, { nullable: false }) + workspaceId!: number; + + @Field(() => Int, { nullable: false }) + _all!: number; +} diff --git a/server/src/api/@generated/comment/comment-count-order-by-aggregate.input.ts b/server/src/api/@generated/comment/comment-count-order-by-aggregate.input.ts new file mode 100644 index 000000000..1af0d817b --- /dev/null +++ b/server/src/api/@generated/comment/comment-count-order-by-aggregate.input.ts @@ -0,0 +1,31 @@ +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 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; + + @Field(() => SortOrder, { nullable: true }) + authorId?: keyof typeof SortOrder; + + @Field(() => SortOrder, { nullable: true }) + commentThreadId?: keyof typeof SortOrder; + + @HideField() + workspaceId?: keyof typeof SortOrder; +} diff --git a/server/src/api/@generated/comment/comment-create-many-author-input-envelope.input.ts b/server/src/api/@generated/comment/comment-create-many-author-input-envelope.input.ts new file mode 100644 index 000000000..61137975e --- /dev/null +++ b/server/src/api/@generated/comment/comment-create-many-author-input-envelope.input.ts @@ -0,0 +1,14 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentCreateManyAuthorInput } from './comment-create-many-author.input'; +import { Type } from 'class-transformer'; + +@InputType() +export class CommentCreateManyAuthorInputEnvelope { + @Field(() => [CommentCreateManyAuthorInput], { nullable: false }) + @Type(() => CommentCreateManyAuthorInput) + data!: Array; + + @Field(() => Boolean, { nullable: true }) + skipDuplicates?: boolean; +} diff --git a/server/src/api/@generated/comment/comment-create-many-author.input.ts b/server/src/api/@generated/comment/comment-create-many-author.input.ts new file mode 100644 index 000000000..e4c4254df --- /dev/null +++ b/server/src/api/@generated/comment/comment-create-many-author.input.ts @@ -0,0 +1,27 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { HideField } from '@nestjs/graphql'; + +@InputType() +export class CommentCreateManyAuthorInput { + @Field(() => String, { nullable: false }) + 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 }) + body!: string; + + @Field(() => String, { nullable: false }) + commentThreadId!: string; + + @HideField() + workspaceId!: string; +} diff --git a/server/src/api/@generated/comment/comment-create-many-comment-thread-input-envelope.input.ts b/server/src/api/@generated/comment/comment-create-many-comment-thread-input-envelope.input.ts new file mode 100644 index 000000000..286663520 --- /dev/null +++ b/server/src/api/@generated/comment/comment-create-many-comment-thread-input-envelope.input.ts @@ -0,0 +1,14 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentCreateManyCommentThreadInput } from './comment-create-many-comment-thread.input'; +import { Type } from 'class-transformer'; + +@InputType() +export class CommentCreateManyCommentThreadInputEnvelope { + @Field(() => [CommentCreateManyCommentThreadInput], { nullable: false }) + @Type(() => CommentCreateManyCommentThreadInput) + data!: Array; + + @Field(() => Boolean, { nullable: true }) + skipDuplicates?: boolean; +} diff --git a/server/src/api/@generated/comment/comment-create-many-comment-thread.input.ts b/server/src/api/@generated/comment/comment-create-many-comment-thread.input.ts new file mode 100644 index 000000000..5532438e5 --- /dev/null +++ b/server/src/api/@generated/comment/comment-create-many-comment-thread.input.ts @@ -0,0 +1,27 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { HideField } from '@nestjs/graphql'; + +@InputType() +export class CommentCreateManyCommentThreadInput { + @Field(() => String, { nullable: false }) + 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 }) + body!: string; + + @Field(() => String, { nullable: false }) + authorId!: string; + + @HideField() + workspaceId!: string; +} diff --git a/server/src/api/@generated/comment/comment-create-many-workspace-input-envelope.input.ts b/server/src/api/@generated/comment/comment-create-many-workspace-input-envelope.input.ts new file mode 100644 index 000000000..eb6ed2d0a --- /dev/null +++ b/server/src/api/@generated/comment/comment-create-many-workspace-input-envelope.input.ts @@ -0,0 +1,14 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentCreateManyWorkspaceInput } from './comment-create-many-workspace.input'; +import { Type } from 'class-transformer'; + +@InputType() +export class CommentCreateManyWorkspaceInputEnvelope { + @Field(() => [CommentCreateManyWorkspaceInput], { nullable: false }) + @Type(() => CommentCreateManyWorkspaceInput) + data!: Array; + + @Field(() => Boolean, { nullable: true }) + skipDuplicates?: boolean; +} diff --git a/server/src/api/@generated/comment/comment-create-many-workspace.input.ts b/server/src/api/@generated/comment/comment-create-many-workspace.input.ts new file mode 100644 index 000000000..3ab832816 --- /dev/null +++ b/server/src/api/@generated/comment/comment-create-many-workspace.input.ts @@ -0,0 +1,26 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; + +@InputType() +export class CommentCreateManyWorkspaceInput { + @Field(() => String, { nullable: false }) + 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 }) + body!: string; + + @Field(() => String, { nullable: false }) + authorId!: string; + + @Field(() => String, { nullable: false }) + commentThreadId!: string; +} diff --git a/server/src/api/@generated/comment/comment-create-many.input.ts b/server/src/api/@generated/comment/comment-create-many.input.ts new file mode 100644 index 000000000..b302ef0d3 --- /dev/null +++ b/server/src/api/@generated/comment/comment-create-many.input.ts @@ -0,0 +1,30 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { HideField } from '@nestjs/graphql'; + +@InputType() +export class CommentCreateManyInput { + @Field(() => String, { nullable: false }) + 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 }) + body!: string; + + @Field(() => String, { nullable: false }) + authorId!: string; + + @Field(() => String, { nullable: false }) + commentThreadId!: string; + + @HideField() + workspaceId!: string; +} diff --git a/server/src/api/@generated/comment/comment-create-nested-many-without-author.input.ts b/server/src/api/@generated/comment/comment-create-nested-many-without-author.input.ts new file mode 100644 index 000000000..30b154290 --- /dev/null +++ b/server/src/api/@generated/comment/comment-create-nested-many-without-author.input.ts @@ -0,0 +1,26 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentCreateWithoutAuthorInput } from './comment-create-without-author.input'; +import { Type } from 'class-transformer'; +import { CommentCreateOrConnectWithoutAuthorInput } from './comment-create-or-connect-without-author.input'; +import { CommentCreateManyAuthorInputEnvelope } from './comment-create-many-author-input-envelope.input'; +import { CommentWhereUniqueInput } from './comment-where-unique.input'; + +@InputType() +export class CommentCreateNestedManyWithoutAuthorInput { + @Field(() => [CommentCreateWithoutAuthorInput], { nullable: true }) + @Type(() => CommentCreateWithoutAuthorInput) + create?: Array; + + @Field(() => [CommentCreateOrConnectWithoutAuthorInput], { nullable: true }) + @Type(() => CommentCreateOrConnectWithoutAuthorInput) + connectOrCreate?: Array; + + @Field(() => CommentCreateManyAuthorInputEnvelope, { nullable: true }) + @Type(() => CommentCreateManyAuthorInputEnvelope) + createMany?: CommentCreateManyAuthorInputEnvelope; + + @Field(() => [CommentWhereUniqueInput], { nullable: true }) + @Type(() => CommentWhereUniqueInput) + connect?: Array; +} diff --git a/server/src/api/@generated/comment/comment-create-nested-many-without-comment-thread.input.ts b/server/src/api/@generated/comment/comment-create-nested-many-without-comment-thread.input.ts new file mode 100644 index 000000000..8098805b2 --- /dev/null +++ b/server/src/api/@generated/comment/comment-create-nested-many-without-comment-thread.input.ts @@ -0,0 +1,24 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentCreateWithoutCommentThreadInput } from './comment-create-without-comment-thread.input'; +import { HideField } from '@nestjs/graphql'; +import { CommentCreateOrConnectWithoutCommentThreadInput } from './comment-create-or-connect-without-comment-thread.input'; +import { CommentCreateManyCommentThreadInputEnvelope } from './comment-create-many-comment-thread-input-envelope.input'; +import { Type } from 'class-transformer'; +import { CommentWhereUniqueInput } from './comment-where-unique.input'; + +@InputType() +export class CommentCreateNestedManyWithoutCommentThreadInput { + @HideField() + create?: Array; + + @HideField() + connectOrCreate?: Array; + + @Field(() => CommentCreateManyCommentThreadInputEnvelope, { nullable: true }) + @Type(() => CommentCreateManyCommentThreadInputEnvelope) + createMany?: CommentCreateManyCommentThreadInputEnvelope; + + @HideField() + connect?: Array; +} diff --git a/server/src/api/@generated/comment/comment-create-nested-many-without-workspace.input.ts b/server/src/api/@generated/comment/comment-create-nested-many-without-workspace.input.ts new file mode 100644 index 000000000..fdefc12c4 --- /dev/null +++ b/server/src/api/@generated/comment/comment-create-nested-many-without-workspace.input.ts @@ -0,0 +1,28 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentCreateWithoutWorkspaceInput } from './comment-create-without-workspace.input'; +import { Type } from 'class-transformer'; +import { CommentCreateOrConnectWithoutWorkspaceInput } from './comment-create-or-connect-without-workspace.input'; +import { CommentCreateManyWorkspaceInputEnvelope } from './comment-create-many-workspace-input-envelope.input'; +import { CommentWhereUniqueInput } from './comment-where-unique.input'; + +@InputType() +export class CommentCreateNestedManyWithoutWorkspaceInput { + @Field(() => [CommentCreateWithoutWorkspaceInput], { nullable: true }) + @Type(() => CommentCreateWithoutWorkspaceInput) + create?: Array; + + @Field(() => [CommentCreateOrConnectWithoutWorkspaceInput], { + nullable: true, + }) + @Type(() => CommentCreateOrConnectWithoutWorkspaceInput) + connectOrCreate?: Array; + + @Field(() => CommentCreateManyWorkspaceInputEnvelope, { nullable: true }) + @Type(() => CommentCreateManyWorkspaceInputEnvelope) + createMany?: CommentCreateManyWorkspaceInputEnvelope; + + @Field(() => [CommentWhereUniqueInput], { nullable: true }) + @Type(() => CommentWhereUniqueInput) + connect?: Array; +} diff --git a/server/src/api/@generated/comment/comment-create-or-connect-without-author.input.ts b/server/src/api/@generated/comment/comment-create-or-connect-without-author.input.ts new file mode 100644 index 000000000..71530403c --- /dev/null +++ b/server/src/api/@generated/comment/comment-create-or-connect-without-author.input.ts @@ -0,0 +1,16 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentWhereUniqueInput } from './comment-where-unique.input'; +import { Type } from 'class-transformer'; +import { CommentCreateWithoutAuthorInput } from './comment-create-without-author.input'; + +@InputType() +export class CommentCreateOrConnectWithoutAuthorInput { + @Field(() => CommentWhereUniqueInput, { nullable: false }) + @Type(() => CommentWhereUniqueInput) + where!: CommentWhereUniqueInput; + + @Field(() => CommentCreateWithoutAuthorInput, { nullable: false }) + @Type(() => CommentCreateWithoutAuthorInput) + create!: CommentCreateWithoutAuthorInput; +} diff --git a/server/src/api/@generated/comment/comment-create-or-connect-without-comment-thread.input.ts b/server/src/api/@generated/comment/comment-create-or-connect-without-comment-thread.input.ts new file mode 100644 index 000000000..77332a266 --- /dev/null +++ b/server/src/api/@generated/comment/comment-create-or-connect-without-comment-thread.input.ts @@ -0,0 +1,16 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentWhereUniqueInput } from './comment-where-unique.input'; +import { Type } from 'class-transformer'; +import { CommentCreateWithoutCommentThreadInput } from './comment-create-without-comment-thread.input'; + +@InputType() +export class CommentCreateOrConnectWithoutCommentThreadInput { + @Field(() => CommentWhereUniqueInput, { nullable: false }) + @Type(() => CommentWhereUniqueInput) + where!: CommentWhereUniqueInput; + + @Field(() => CommentCreateWithoutCommentThreadInput, { nullable: false }) + @Type(() => CommentCreateWithoutCommentThreadInput) + create!: CommentCreateWithoutCommentThreadInput; +} diff --git a/server/src/api/@generated/comment/comment-create-or-connect-without-workspace.input.ts b/server/src/api/@generated/comment/comment-create-or-connect-without-workspace.input.ts new file mode 100644 index 000000000..7e005b9ef --- /dev/null +++ b/server/src/api/@generated/comment/comment-create-or-connect-without-workspace.input.ts @@ -0,0 +1,16 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentWhereUniqueInput } from './comment-where-unique.input'; +import { Type } from 'class-transformer'; +import { CommentCreateWithoutWorkspaceInput } from './comment-create-without-workspace.input'; + +@InputType() +export class CommentCreateOrConnectWithoutWorkspaceInput { + @Field(() => CommentWhereUniqueInput, { nullable: false }) + @Type(() => CommentWhereUniqueInput) + where!: CommentWhereUniqueInput; + + @Field(() => CommentCreateWithoutWorkspaceInput, { nullable: false }) + @Type(() => CommentCreateWithoutWorkspaceInput) + create!: CommentCreateWithoutWorkspaceInput; +} diff --git a/server/src/api/@generated/comment/comment-create-without-author.input.ts b/server/src/api/@generated/comment/comment-create-without-author.input.ts new file mode 100644 index 000000000..d0bfca8cf --- /dev/null +++ b/server/src/api/@generated/comment/comment-create-without-author.input.ts @@ -0,0 +1,31 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } 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: false }) + 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 }) + body!: string; + + @Field(() => CommentThreadCreateNestedOneWithoutCommentsInput, { + nullable: false, + }) + commentThread!: CommentThreadCreateNestedOneWithoutCommentsInput; + + @HideField() + workspace!: WorkspaceCreateNestedOneWithoutCommentsInput; +} diff --git a/server/src/api/@generated/comment/comment-create-without-comment-thread.input.ts b/server/src/api/@generated/comment/comment-create-without-comment-thread.input.ts new file mode 100644 index 000000000..a2d4fc746 --- /dev/null +++ b/server/src/api/@generated/comment/comment-create-without-comment-thread.input.ts @@ -0,0 +1,29 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } 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: false }) + 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 }) + body!: string; + + @Field(() => UserCreateNestedOneWithoutCommentsInput, { nullable: false }) + author!: UserCreateNestedOneWithoutCommentsInput; + + @HideField() + workspace!: WorkspaceCreateNestedOneWithoutCommentsInput; +} diff --git a/server/src/api/@generated/comment/comment-create-without-workspace.input.ts b/server/src/api/@generated/comment/comment-create-without-workspace.input.ts new file mode 100644 index 000000000..a0205d851 --- /dev/null +++ b/server/src/api/@generated/comment/comment-create-without-workspace.input.ts @@ -0,0 +1,30 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } 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'; + +@InputType() +export class CommentCreateWithoutWorkspaceInput { + @Field(() => String, { nullable: false }) + 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 }) + body!: string; + + @Field(() => UserCreateNestedOneWithoutCommentsInput, { nullable: false }) + author!: UserCreateNestedOneWithoutCommentsInput; + + @Field(() => CommentThreadCreateNestedOneWithoutCommentsInput, { + nullable: false, + }) + commentThread!: CommentThreadCreateNestedOneWithoutCommentsInput; +} diff --git a/server/src/api/@generated/comment/comment-create.input.ts b/server/src/api/@generated/comment/comment-create.input.ts new file mode 100644 index 000000000..70bbbe34f --- /dev/null +++ b/server/src/api/@generated/comment/comment-create.input.ts @@ -0,0 +1,35 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } 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: false }) + 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 }) + body!: string; + + @Field(() => UserCreateNestedOneWithoutCommentsInput, { nullable: false }) + author!: UserCreateNestedOneWithoutCommentsInput; + + @Field(() => CommentThreadCreateNestedOneWithoutCommentsInput, { + nullable: false, + }) + commentThread!: CommentThreadCreateNestedOneWithoutCommentsInput; + + @HideField() + workspace!: WorkspaceCreateNestedOneWithoutCommentsInput; +} diff --git a/server/src/api/@generated/comment/comment-group-by.args.ts b/server/src/api/@generated/comment/comment-group-by.args.ts new file mode 100644 index 000000000..436a0eb40 --- /dev/null +++ b/server/src/api/@generated/comment/comment-group-by.args.ts @@ -0,0 +1,42 @@ +import { Field } from '@nestjs/graphql'; +import { ArgsType } from '@nestjs/graphql'; +import { CommentWhereInput } from './comment-where.input'; +import { Type } from 'class-transformer'; +import { CommentOrderByWithAggregationInput } from './comment-order-by-with-aggregation.input'; +import { CommentScalarFieldEnum } from './comment-scalar-field.enum'; +import { CommentScalarWhereWithAggregatesInput } from './comment-scalar-where-with-aggregates.input'; +import { Int } from '@nestjs/graphql'; +import { CommentCountAggregateInput } from './comment-count-aggregate.input'; +import { CommentMinAggregateInput } from './comment-min-aggregate.input'; +import { CommentMaxAggregateInput } from './comment-max-aggregate.input'; + +@ArgsType() +export class CommentGroupByArgs { + @Field(() => CommentWhereInput, { nullable: true }) + @Type(() => CommentWhereInput) + where?: CommentWhereInput; + + @Field(() => [CommentOrderByWithAggregationInput], { nullable: true }) + orderBy?: Array; + + @Field(() => [CommentScalarFieldEnum], { nullable: false }) + by!: Array; + + @Field(() => CommentScalarWhereWithAggregatesInput, { nullable: true }) + having?: CommentScalarWhereWithAggregatesInput; + + @Field(() => Int, { nullable: true }) + take?: number; + + @Field(() => Int, { nullable: true }) + skip?: number; + + @Field(() => CommentCountAggregateInput, { nullable: true }) + _count?: CommentCountAggregateInput; + + @Field(() => CommentMinAggregateInput, { nullable: true }) + _min?: CommentMinAggregateInput; + + @Field(() => CommentMaxAggregateInput, { nullable: true }) + _max?: CommentMaxAggregateInput; +} diff --git a/server/src/api/@generated/comment/comment-group-by.output.ts b/server/src/api/@generated/comment/comment-group-by.output.ts new file mode 100644 index 000000000..79195d633 --- /dev/null +++ b/server/src/api/@generated/comment/comment-group-by.output.ts @@ -0,0 +1,41 @@ +import { Field } from '@nestjs/graphql'; +import { ObjectType } from '@nestjs/graphql'; +import { CommentCountAggregate } from './comment-count-aggregate.output'; +import { CommentMinAggregate } from './comment-min-aggregate.output'; +import { CommentMaxAggregate } from './comment-max-aggregate.output'; + +@ObjectType() +export class CommentGroupBy { + @Field(() => String, { nullable: false }) + 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 }) + body!: string; + + @Field(() => String, { nullable: false }) + authorId!: string; + + @Field(() => String, { nullable: false }) + commentThreadId!: string; + + @Field(() => String, { nullable: false }) + workspaceId!: string; + + @Field(() => CommentCountAggregate, { nullable: true }) + _count?: CommentCountAggregate; + + @Field(() => CommentMinAggregate, { nullable: true }) + _min?: CommentMinAggregate; + + @Field(() => CommentMaxAggregate, { nullable: true }) + _max?: CommentMaxAggregate; +} diff --git a/server/src/api/@generated/comment/comment-list-relation-filter.input.ts b/server/src/api/@generated/comment/comment-list-relation-filter.input.ts new file mode 100644 index 000000000..7e058603b --- /dev/null +++ b/server/src/api/@generated/comment/comment-list-relation-filter.input.ts @@ -0,0 +1,15 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentWhereInput } from './comment-where.input'; + +@InputType() +export class CommentListRelationFilter { + @Field(() => CommentWhereInput, { nullable: true }) + every?: CommentWhereInput; + + @Field(() => CommentWhereInput, { nullable: true }) + some?: CommentWhereInput; + + @Field(() => CommentWhereInput, { nullable: true }) + none?: CommentWhereInput; +} diff --git a/server/src/api/@generated/comment/comment-max-aggregate.input.ts b/server/src/api/@generated/comment/comment-max-aggregate.input.ts new file mode 100644 index 000000000..c240d5117 --- /dev/null +++ b/server/src/api/@generated/comment/comment-max-aggregate.input.ts @@ -0,0 +1,30 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { HideField } from '@nestjs/graphql'; + +@InputType() +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; + + @Field(() => Boolean, { nullable: true }) + authorId?: true; + + @Field(() => Boolean, { nullable: true }) + commentThreadId?: true; + + @HideField() + workspaceId?: true; +} diff --git a/server/src/api/@generated/comment/comment-max-aggregate.output.ts b/server/src/api/@generated/comment/comment-max-aggregate.output.ts new file mode 100644 index 000000000..2ecb7020c --- /dev/null +++ b/server/src/api/@generated/comment/comment-max-aggregate.output.ts @@ -0,0 +1,29 @@ +import { Field } from '@nestjs/graphql'; +import { ObjectType } from '@nestjs/graphql'; + +@ObjectType() +export class CommentMaxAggregate { + @Field(() => String, { nullable: true }) + 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 }) + body?: string; + + @Field(() => String, { nullable: true }) + authorId?: string; + + @Field(() => String, { nullable: true }) + commentThreadId?: string; + + @Field(() => String, { nullable: true }) + workspaceId?: string; +} diff --git a/server/src/api/@generated/comment/comment-max-order-by-aggregate.input.ts b/server/src/api/@generated/comment/comment-max-order-by-aggregate.input.ts new file mode 100644 index 000000000..77d4c697e --- /dev/null +++ b/server/src/api/@generated/comment/comment-max-order-by-aggregate.input.ts @@ -0,0 +1,31 @@ +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 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; + + @Field(() => SortOrder, { nullable: true }) + authorId?: keyof typeof SortOrder; + + @Field(() => SortOrder, { nullable: true }) + commentThreadId?: keyof typeof SortOrder; + + @HideField() + workspaceId?: keyof typeof SortOrder; +} diff --git a/server/src/api/@generated/comment/comment-min-aggregate.input.ts b/server/src/api/@generated/comment/comment-min-aggregate.input.ts new file mode 100644 index 000000000..4ff204da0 --- /dev/null +++ b/server/src/api/@generated/comment/comment-min-aggregate.input.ts @@ -0,0 +1,30 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { HideField } from '@nestjs/graphql'; + +@InputType() +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; + + @Field(() => Boolean, { nullable: true }) + authorId?: true; + + @Field(() => Boolean, { nullable: true }) + commentThreadId?: true; + + @HideField() + workspaceId?: true; +} diff --git a/server/src/api/@generated/comment/comment-min-aggregate.output.ts b/server/src/api/@generated/comment/comment-min-aggregate.output.ts new file mode 100644 index 000000000..382e399fd --- /dev/null +++ b/server/src/api/@generated/comment/comment-min-aggregate.output.ts @@ -0,0 +1,29 @@ +import { Field } from '@nestjs/graphql'; +import { ObjectType } from '@nestjs/graphql'; + +@ObjectType() +export class CommentMinAggregate { + @Field(() => String, { nullable: true }) + 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 }) + body?: string; + + @Field(() => String, { nullable: true }) + authorId?: string; + + @Field(() => String, { nullable: true }) + commentThreadId?: string; + + @Field(() => String, { nullable: true }) + workspaceId?: string; +} diff --git a/server/src/api/@generated/comment/comment-min-order-by-aggregate.input.ts b/server/src/api/@generated/comment/comment-min-order-by-aggregate.input.ts new file mode 100644 index 000000000..2d07c2449 --- /dev/null +++ b/server/src/api/@generated/comment/comment-min-order-by-aggregate.input.ts @@ -0,0 +1,31 @@ +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 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; + + @Field(() => SortOrder, { nullable: true }) + authorId?: keyof typeof SortOrder; + + @Field(() => SortOrder, { nullable: true }) + commentThreadId?: keyof typeof SortOrder; + + @HideField() + workspaceId?: keyof typeof SortOrder; +} diff --git a/server/src/api/@generated/comment/comment-order-by-relation-aggregate.input.ts b/server/src/api/@generated/comment/comment-order-by-relation-aggregate.input.ts new file mode 100644 index 000000000..8124b8ab6 --- /dev/null +++ b/server/src/api/@generated/comment/comment-order-by-relation-aggregate.input.ts @@ -0,0 +1,9 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { SortOrder } from '../prisma/sort-order.enum'; + +@InputType() +export class CommentOrderByRelationAggregateInput { + @Field(() => SortOrder, { nullable: true }) + _count?: keyof typeof SortOrder; +} diff --git a/server/src/api/@generated/comment/comment-order-by-with-aggregation.input.ts b/server/src/api/@generated/comment/comment-order-by-with-aggregation.input.ts new file mode 100644 index 000000000..ff9b8b8b1 --- /dev/null +++ b/server/src/api/@generated/comment/comment-order-by-with-aggregation.input.ts @@ -0,0 +1,43 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { SortOrder } from '../prisma/sort-order.enum'; +import { HideField } from '@nestjs/graphql'; +import { CommentCountOrderByAggregateInput } from './comment-count-order-by-aggregate.input'; +import { CommentMaxOrderByAggregateInput } from './comment-max-order-by-aggregate.input'; +import { CommentMinOrderByAggregateInput } from './comment-min-order-by-aggregate.input'; + +@InputType() +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; + + @Field(() => SortOrder, { nullable: true }) + authorId?: keyof typeof SortOrder; + + @Field(() => SortOrder, { nullable: true }) + commentThreadId?: keyof typeof SortOrder; + + @HideField() + workspaceId?: keyof typeof SortOrder; + + @Field(() => CommentCountOrderByAggregateInput, { nullable: true }) + _count?: CommentCountOrderByAggregateInput; + + @Field(() => CommentMaxOrderByAggregateInput, { nullable: true }) + _max?: CommentMaxOrderByAggregateInput; + + @Field(() => CommentMinOrderByAggregateInput, { nullable: true }) + _min?: CommentMinOrderByAggregateInput; +} diff --git a/server/src/api/@generated/comment/comment-order-by-with-relation.input.ts b/server/src/api/@generated/comment/comment-order-by-with-relation.input.ts new file mode 100644 index 000000000..cccffba65 --- /dev/null +++ b/server/src/api/@generated/comment/comment-order-by-with-relation.input.ts @@ -0,0 +1,43 @@ +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 { CommentThreadOrderByWithRelationInput } from '../comment-thread/comment-thread-order-by-with-relation.input'; +import { WorkspaceOrderByWithRelationInput } from '../workspace/workspace-order-by-with-relation.input'; + +@InputType() +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; + + @Field(() => SortOrder, { nullable: true }) + authorId?: keyof typeof SortOrder; + + @Field(() => SortOrder, { nullable: true }) + commentThreadId?: keyof typeof SortOrder; + + @HideField() + workspaceId?: keyof typeof SortOrder; + + @Field(() => UserOrderByWithRelationInput, { nullable: true }) + author?: UserOrderByWithRelationInput; + + @Field(() => CommentThreadOrderByWithRelationInput, { nullable: true }) + commentThread?: CommentThreadOrderByWithRelationInput; + + @HideField() + workspace?: WorkspaceOrderByWithRelationInput; +} diff --git a/server/src/api/@generated/comment/comment-scalar-field.enum.ts b/server/src/api/@generated/comment/comment-scalar-field.enum.ts new file mode 100644 index 000000000..d44b471fb --- /dev/null +++ b/server/src/api/@generated/comment/comment-scalar-field.enum.ts @@ -0,0 +1,17 @@ +import { registerEnumType } from '@nestjs/graphql'; + +export enum CommentScalarFieldEnum { + id = 'id', + createdAt = 'createdAt', + updatedAt = 'updatedAt', + deletedAt = 'deletedAt', + body = 'body', + authorId = 'authorId', + commentThreadId = 'commentThreadId', + workspaceId = 'workspaceId', +} + +registerEnumType(CommentScalarFieldEnum, { + name: 'CommentScalarFieldEnum', + description: undefined, +}); diff --git a/server/src/api/@generated/comment/comment-scalar-where-with-aggregates.input.ts b/server/src/api/@generated/comment/comment-scalar-where-with-aggregates.input.ts new file mode 100644 index 000000000..6046dee93 --- /dev/null +++ b/server/src/api/@generated/comment/comment-scalar-where-with-aggregates.input.ts @@ -0,0 +1,42 @@ +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'; + +@InputType() +export class CommentScalarWhereWithAggregatesInput { + @Field(() => [CommentScalarWhereWithAggregatesInput], { nullable: true }) + AND?: Array; + + @Field(() => [CommentScalarWhereWithAggregatesInput], { nullable: true }) + OR?: Array; + + @Field(() => [CommentScalarWhereWithAggregatesInput], { nullable: true }) + NOT?: Array; + + @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; + + @Field(() => StringWithAggregatesFilter, { nullable: true }) + authorId?: StringWithAggregatesFilter; + + @Field(() => StringWithAggregatesFilter, { nullable: true }) + commentThreadId?: StringWithAggregatesFilter; + + @HideField() + workspaceId?: StringWithAggregatesFilter; +} diff --git a/server/src/api/@generated/comment/comment-scalar-where.input.ts b/server/src/api/@generated/comment/comment-scalar-where.input.ts new file mode 100644 index 000000000..1bfeb8062 --- /dev/null +++ b/server/src/api/@generated/comment/comment-scalar-where.input.ts @@ -0,0 +1,42 @@ +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'; + +@InputType() +export class CommentScalarWhereInput { + @Field(() => [CommentScalarWhereInput], { nullable: true }) + AND?: Array; + + @Field(() => [CommentScalarWhereInput], { nullable: true }) + OR?: Array; + + @Field(() => [CommentScalarWhereInput], { nullable: true }) + NOT?: Array; + + @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; + + @Field(() => StringFilter, { nullable: true }) + authorId?: StringFilter; + + @Field(() => StringFilter, { nullable: true }) + commentThreadId?: StringFilter; + + @HideField() + workspaceId?: StringFilter; +} diff --git a/server/src/api/@generated/comment/comment-thread-count.output.ts b/server/src/api/@generated/comment/comment-thread-count.output.ts new file mode 100644 index 000000000..39cadfd8c --- /dev/null +++ b/server/src/api/@generated/comment/comment-thread-count.output.ts @@ -0,0 +1,12 @@ +import { Field } from '@nestjs/graphql'; +import { ObjectType } from '@nestjs/graphql'; +import { Int } from '@nestjs/graphql'; + +@ObjectType() +export class CommentThreadCount { + @Field(() => Int, { nullable: false }) + commentThreadTargets?: number; + + @Field(() => Int, { nullable: false }) + comments?: number; +} diff --git a/server/src/api/@generated/comment/comment-unchecked-create-nested-many-without-author.input.ts b/server/src/api/@generated/comment/comment-unchecked-create-nested-many-without-author.input.ts new file mode 100644 index 000000000..f3360c84f --- /dev/null +++ b/server/src/api/@generated/comment/comment-unchecked-create-nested-many-without-author.input.ts @@ -0,0 +1,26 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentCreateWithoutAuthorInput } from './comment-create-without-author.input'; +import { Type } from 'class-transformer'; +import { CommentCreateOrConnectWithoutAuthorInput } from './comment-create-or-connect-without-author.input'; +import { CommentCreateManyAuthorInputEnvelope } from './comment-create-many-author-input-envelope.input'; +import { CommentWhereUniqueInput } from './comment-where-unique.input'; + +@InputType() +export class CommentUncheckedCreateNestedManyWithoutAuthorInput { + @Field(() => [CommentCreateWithoutAuthorInput], { nullable: true }) + @Type(() => CommentCreateWithoutAuthorInput) + create?: Array; + + @Field(() => [CommentCreateOrConnectWithoutAuthorInput], { nullable: true }) + @Type(() => CommentCreateOrConnectWithoutAuthorInput) + connectOrCreate?: Array; + + @Field(() => CommentCreateManyAuthorInputEnvelope, { nullable: true }) + @Type(() => CommentCreateManyAuthorInputEnvelope) + createMany?: CommentCreateManyAuthorInputEnvelope; + + @Field(() => [CommentWhereUniqueInput], { nullable: true }) + @Type(() => CommentWhereUniqueInput) + connect?: Array; +} diff --git a/server/src/api/@generated/comment/comment-unchecked-create-nested-many-without-comment-thread.input.ts b/server/src/api/@generated/comment/comment-unchecked-create-nested-many-without-comment-thread.input.ts new file mode 100644 index 000000000..45659bc3e --- /dev/null +++ b/server/src/api/@generated/comment/comment-unchecked-create-nested-many-without-comment-thread.input.ts @@ -0,0 +1,28 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentCreateWithoutCommentThreadInput } from './comment-create-without-comment-thread.input'; +import { Type } from 'class-transformer'; +import { CommentCreateOrConnectWithoutCommentThreadInput } from './comment-create-or-connect-without-comment-thread.input'; +import { CommentCreateManyCommentThreadInputEnvelope } from './comment-create-many-comment-thread-input-envelope.input'; +import { CommentWhereUniqueInput } from './comment-where-unique.input'; + +@InputType() +export class CommentUncheckedCreateNestedManyWithoutCommentThreadInput { + @Field(() => [CommentCreateWithoutCommentThreadInput], { nullable: true }) + @Type(() => CommentCreateWithoutCommentThreadInput) + create?: Array; + + @Field(() => [CommentCreateOrConnectWithoutCommentThreadInput], { + nullable: true, + }) + @Type(() => CommentCreateOrConnectWithoutCommentThreadInput) + connectOrCreate?: Array; + + @Field(() => CommentCreateManyCommentThreadInputEnvelope, { nullable: true }) + @Type(() => CommentCreateManyCommentThreadInputEnvelope) + createMany?: CommentCreateManyCommentThreadInputEnvelope; + + @Field(() => [CommentWhereUniqueInput], { nullable: true }) + @Type(() => CommentWhereUniqueInput) + connect?: Array; +} diff --git a/server/src/api/@generated/comment/comment-unchecked-create-nested-many-without-workspace.input.ts b/server/src/api/@generated/comment/comment-unchecked-create-nested-many-without-workspace.input.ts new file mode 100644 index 000000000..e26dbd00f --- /dev/null +++ b/server/src/api/@generated/comment/comment-unchecked-create-nested-many-without-workspace.input.ts @@ -0,0 +1,28 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentCreateWithoutWorkspaceInput } from './comment-create-without-workspace.input'; +import { Type } from 'class-transformer'; +import { CommentCreateOrConnectWithoutWorkspaceInput } from './comment-create-or-connect-without-workspace.input'; +import { CommentCreateManyWorkspaceInputEnvelope } from './comment-create-many-workspace-input-envelope.input'; +import { CommentWhereUniqueInput } from './comment-where-unique.input'; + +@InputType() +export class CommentUncheckedCreateNestedManyWithoutWorkspaceInput { + @Field(() => [CommentCreateWithoutWorkspaceInput], { nullable: true }) + @Type(() => CommentCreateWithoutWorkspaceInput) + create?: Array; + + @Field(() => [CommentCreateOrConnectWithoutWorkspaceInput], { + nullable: true, + }) + @Type(() => CommentCreateOrConnectWithoutWorkspaceInput) + connectOrCreate?: Array; + + @Field(() => CommentCreateManyWorkspaceInputEnvelope, { nullable: true }) + @Type(() => CommentCreateManyWorkspaceInputEnvelope) + createMany?: CommentCreateManyWorkspaceInputEnvelope; + + @Field(() => [CommentWhereUniqueInput], { nullable: true }) + @Type(() => CommentWhereUniqueInput) + connect?: Array; +} diff --git a/server/src/api/@generated/comment/comment-unchecked-create-without-author.input.ts b/server/src/api/@generated/comment/comment-unchecked-create-without-author.input.ts new file mode 100644 index 000000000..ed5cb0c6e --- /dev/null +++ b/server/src/api/@generated/comment/comment-unchecked-create-without-author.input.ts @@ -0,0 +1,27 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { HideField } from '@nestjs/graphql'; + +@InputType() +export class CommentUncheckedCreateWithoutAuthorInput { + @Field(() => String, { nullable: false }) + 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 }) + body!: string; + + @Field(() => String, { nullable: false }) + commentThreadId!: string; + + @HideField() + workspaceId!: string; +} diff --git a/server/src/api/@generated/comment/comment-unchecked-create-without-comment-thread.input.ts b/server/src/api/@generated/comment/comment-unchecked-create-without-comment-thread.input.ts new file mode 100644 index 000000000..f0167e2a6 --- /dev/null +++ b/server/src/api/@generated/comment/comment-unchecked-create-without-comment-thread.input.ts @@ -0,0 +1,27 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { HideField } from '@nestjs/graphql'; + +@InputType() +export class CommentUncheckedCreateWithoutCommentThreadInput { + @Field(() => String, { nullable: false }) + 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 }) + body!: string; + + @Field(() => String, { nullable: false }) + authorId!: string; + + @HideField() + workspaceId!: string; +} diff --git a/server/src/api/@generated/comment/comment-unchecked-create-without-workspace.input.ts b/server/src/api/@generated/comment/comment-unchecked-create-without-workspace.input.ts new file mode 100644 index 000000000..795e7f2f2 --- /dev/null +++ b/server/src/api/@generated/comment/comment-unchecked-create-without-workspace.input.ts @@ -0,0 +1,26 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; + +@InputType() +export class CommentUncheckedCreateWithoutWorkspaceInput { + @Field(() => String, { nullable: false }) + 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 }) + body!: string; + + @Field(() => String, { nullable: false }) + authorId!: string; + + @Field(() => String, { nullable: false }) + commentThreadId!: string; +} diff --git a/server/src/api/@generated/comment/comment-unchecked-create.input.ts b/server/src/api/@generated/comment/comment-unchecked-create.input.ts new file mode 100644 index 000000000..943c49ef8 --- /dev/null +++ b/server/src/api/@generated/comment/comment-unchecked-create.input.ts @@ -0,0 +1,30 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { HideField } from '@nestjs/graphql'; + +@InputType() +export class CommentUncheckedCreateInput { + @Field(() => String, { nullable: false }) + 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 }) + body!: string; + + @Field(() => String, { nullable: false }) + authorId!: string; + + @Field(() => String, { nullable: false }) + commentThreadId!: string; + + @HideField() + workspaceId!: string; +} diff --git a/server/src/api/@generated/comment/comment-unchecked-update-many-without-author-nested.input.ts b/server/src/api/@generated/comment/comment-unchecked-update-many-without-author-nested.input.ts new file mode 100644 index 000000000..fdc24f30f --- /dev/null +++ b/server/src/api/@generated/comment/comment-unchecked-update-many-without-author-nested.input.ts @@ -0,0 +1,64 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentCreateWithoutAuthorInput } from './comment-create-without-author.input'; +import { Type } from 'class-transformer'; +import { CommentCreateOrConnectWithoutAuthorInput } from './comment-create-or-connect-without-author.input'; +import { CommentUpsertWithWhereUniqueWithoutAuthorInput } from './comment-upsert-with-where-unique-without-author.input'; +import { CommentCreateManyAuthorInputEnvelope } from './comment-create-many-author-input-envelope.input'; +import { CommentWhereUniqueInput } from './comment-where-unique.input'; +import { CommentUpdateWithWhereUniqueWithoutAuthorInput } from './comment-update-with-where-unique-without-author.input'; +import { CommentUpdateManyWithWhereWithoutAuthorInput } from './comment-update-many-with-where-without-author.input'; +import { CommentScalarWhereInput } from './comment-scalar-where.input'; + +@InputType() +export class CommentUncheckedUpdateManyWithoutAuthorNestedInput { + @Field(() => [CommentCreateWithoutAuthorInput], { nullable: true }) + @Type(() => CommentCreateWithoutAuthorInput) + create?: Array; + + @Field(() => [CommentCreateOrConnectWithoutAuthorInput], { nullable: true }) + @Type(() => CommentCreateOrConnectWithoutAuthorInput) + connectOrCreate?: Array; + + @Field(() => [CommentUpsertWithWhereUniqueWithoutAuthorInput], { + nullable: true, + }) + @Type(() => CommentUpsertWithWhereUniqueWithoutAuthorInput) + upsert?: Array; + + @Field(() => CommentCreateManyAuthorInputEnvelope, { nullable: true }) + @Type(() => CommentCreateManyAuthorInputEnvelope) + createMany?: CommentCreateManyAuthorInputEnvelope; + + @Field(() => [CommentWhereUniqueInput], { nullable: true }) + @Type(() => CommentWhereUniqueInput) + set?: Array; + + @Field(() => [CommentWhereUniqueInput], { nullable: true }) + @Type(() => CommentWhereUniqueInput) + disconnect?: Array; + + @Field(() => [CommentWhereUniqueInput], { nullable: true }) + @Type(() => CommentWhereUniqueInput) + delete?: Array; + + @Field(() => [CommentWhereUniqueInput], { nullable: true }) + @Type(() => CommentWhereUniqueInput) + connect?: Array; + + @Field(() => [CommentUpdateWithWhereUniqueWithoutAuthorInput], { + nullable: true, + }) + @Type(() => CommentUpdateWithWhereUniqueWithoutAuthorInput) + update?: Array; + + @Field(() => [CommentUpdateManyWithWhereWithoutAuthorInput], { + nullable: true, + }) + @Type(() => CommentUpdateManyWithWhereWithoutAuthorInput) + updateMany?: Array; + + @Field(() => [CommentScalarWhereInput], { nullable: true }) + @Type(() => CommentScalarWhereInput) + deleteMany?: Array; +} diff --git a/server/src/api/@generated/comment/comment-unchecked-update-many-without-comment-thread-nested.input.ts b/server/src/api/@generated/comment/comment-unchecked-update-many-without-comment-thread-nested.input.ts new file mode 100644 index 000000000..5a706db3b --- /dev/null +++ b/server/src/api/@generated/comment/comment-unchecked-update-many-without-comment-thread-nested.input.ts @@ -0,0 +1,66 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentCreateWithoutCommentThreadInput } from './comment-create-without-comment-thread.input'; +import { Type } from 'class-transformer'; +import { CommentCreateOrConnectWithoutCommentThreadInput } from './comment-create-or-connect-without-comment-thread.input'; +import { CommentUpsertWithWhereUniqueWithoutCommentThreadInput } from './comment-upsert-with-where-unique-without-comment-thread.input'; +import { CommentCreateManyCommentThreadInputEnvelope } from './comment-create-many-comment-thread-input-envelope.input'; +import { CommentWhereUniqueInput } from './comment-where-unique.input'; +import { CommentUpdateWithWhereUniqueWithoutCommentThreadInput } from './comment-update-with-where-unique-without-comment-thread.input'; +import { CommentUpdateManyWithWhereWithoutCommentThreadInput } from './comment-update-many-with-where-without-comment-thread.input'; +import { CommentScalarWhereInput } from './comment-scalar-where.input'; + +@InputType() +export class CommentUncheckedUpdateManyWithoutCommentThreadNestedInput { + @Field(() => [CommentCreateWithoutCommentThreadInput], { nullable: true }) + @Type(() => CommentCreateWithoutCommentThreadInput) + create?: Array; + + @Field(() => [CommentCreateOrConnectWithoutCommentThreadInput], { + nullable: true, + }) + @Type(() => CommentCreateOrConnectWithoutCommentThreadInput) + connectOrCreate?: Array; + + @Field(() => [CommentUpsertWithWhereUniqueWithoutCommentThreadInput], { + nullable: true, + }) + @Type(() => CommentUpsertWithWhereUniqueWithoutCommentThreadInput) + upsert?: Array; + + @Field(() => CommentCreateManyCommentThreadInputEnvelope, { nullable: true }) + @Type(() => CommentCreateManyCommentThreadInputEnvelope) + createMany?: CommentCreateManyCommentThreadInputEnvelope; + + @Field(() => [CommentWhereUniqueInput], { nullable: true }) + @Type(() => CommentWhereUniqueInput) + set?: Array; + + @Field(() => [CommentWhereUniqueInput], { nullable: true }) + @Type(() => CommentWhereUniqueInput) + disconnect?: Array; + + @Field(() => [CommentWhereUniqueInput], { nullable: true }) + @Type(() => CommentWhereUniqueInput) + delete?: Array; + + @Field(() => [CommentWhereUniqueInput], { nullable: true }) + @Type(() => CommentWhereUniqueInput) + connect?: Array; + + @Field(() => [CommentUpdateWithWhereUniqueWithoutCommentThreadInput], { + nullable: true, + }) + @Type(() => CommentUpdateWithWhereUniqueWithoutCommentThreadInput) + update?: Array; + + @Field(() => [CommentUpdateManyWithWhereWithoutCommentThreadInput], { + nullable: true, + }) + @Type(() => CommentUpdateManyWithWhereWithoutCommentThreadInput) + updateMany?: Array; + + @Field(() => [CommentScalarWhereInput], { nullable: true }) + @Type(() => CommentScalarWhereInput) + deleteMany?: Array; +} diff --git a/server/src/api/@generated/comment/comment-unchecked-update-many-without-comments.input.ts b/server/src/api/@generated/comment/comment-unchecked-update-many-without-comments.input.ts new file mode 100644 index 000000000..4e1fb0b19 --- /dev/null +++ b/server/src/api/@generated/comment/comment-unchecked-update-many-without-comments.input.ts @@ -0,0 +1,30 @@ +import { Field } from '@nestjs/graphql'; +import { 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'; + +@InputType() +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; + + @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) + commentThreadId?: StringFieldUpdateOperationsInput; + + @HideField() + workspaceId?: StringFieldUpdateOperationsInput; +} diff --git a/server/src/api/@generated/comment/comment-unchecked-update-many-without-workspace-nested.input.ts b/server/src/api/@generated/comment/comment-unchecked-update-many-without-workspace-nested.input.ts new file mode 100644 index 000000000..9435f52c5 --- /dev/null +++ b/server/src/api/@generated/comment/comment-unchecked-update-many-without-workspace-nested.input.ts @@ -0,0 +1,66 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentCreateWithoutWorkspaceInput } from './comment-create-without-workspace.input'; +import { Type } from 'class-transformer'; +import { CommentCreateOrConnectWithoutWorkspaceInput } from './comment-create-or-connect-without-workspace.input'; +import { CommentUpsertWithWhereUniqueWithoutWorkspaceInput } from './comment-upsert-with-where-unique-without-workspace.input'; +import { CommentCreateManyWorkspaceInputEnvelope } from './comment-create-many-workspace-input-envelope.input'; +import { CommentWhereUniqueInput } from './comment-where-unique.input'; +import { CommentUpdateWithWhereUniqueWithoutWorkspaceInput } from './comment-update-with-where-unique-without-workspace.input'; +import { CommentUpdateManyWithWhereWithoutWorkspaceInput } from './comment-update-many-with-where-without-workspace.input'; +import { CommentScalarWhereInput } from './comment-scalar-where.input'; + +@InputType() +export class CommentUncheckedUpdateManyWithoutWorkspaceNestedInput { + @Field(() => [CommentCreateWithoutWorkspaceInput], { nullable: true }) + @Type(() => CommentCreateWithoutWorkspaceInput) + create?: Array; + + @Field(() => [CommentCreateOrConnectWithoutWorkspaceInput], { + nullable: true, + }) + @Type(() => CommentCreateOrConnectWithoutWorkspaceInput) + connectOrCreate?: Array; + + @Field(() => [CommentUpsertWithWhereUniqueWithoutWorkspaceInput], { + nullable: true, + }) + @Type(() => CommentUpsertWithWhereUniqueWithoutWorkspaceInput) + upsert?: Array; + + @Field(() => CommentCreateManyWorkspaceInputEnvelope, { nullable: true }) + @Type(() => CommentCreateManyWorkspaceInputEnvelope) + createMany?: CommentCreateManyWorkspaceInputEnvelope; + + @Field(() => [CommentWhereUniqueInput], { nullable: true }) + @Type(() => CommentWhereUniqueInput) + set?: Array; + + @Field(() => [CommentWhereUniqueInput], { nullable: true }) + @Type(() => CommentWhereUniqueInput) + disconnect?: Array; + + @Field(() => [CommentWhereUniqueInput], { nullable: true }) + @Type(() => CommentWhereUniqueInput) + delete?: Array; + + @Field(() => [CommentWhereUniqueInput], { nullable: true }) + @Type(() => CommentWhereUniqueInput) + connect?: Array; + + @Field(() => [CommentUpdateWithWhereUniqueWithoutWorkspaceInput], { + nullable: true, + }) + @Type(() => CommentUpdateWithWhereUniqueWithoutWorkspaceInput) + update?: Array; + + @Field(() => [CommentUpdateManyWithWhereWithoutWorkspaceInput], { + nullable: true, + }) + @Type(() => CommentUpdateManyWithWhereWithoutWorkspaceInput) + updateMany?: Array; + + @Field(() => [CommentScalarWhereInput], { nullable: true }) + @Type(() => CommentScalarWhereInput) + deleteMany?: Array; +} diff --git a/server/src/api/@generated/comment/comment-unchecked-update-many.input.ts b/server/src/api/@generated/comment/comment-unchecked-update-many.input.ts new file mode 100644 index 000000000..71a3dd39b --- /dev/null +++ b/server/src/api/@generated/comment/comment-unchecked-update-many.input.ts @@ -0,0 +1,33 @@ +import { Field } from '@nestjs/graphql'; +import { 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'; + +@InputType() +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; + + @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) + authorId?: StringFieldUpdateOperationsInput; + + @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) + commentThreadId?: StringFieldUpdateOperationsInput; + + @HideField() + workspaceId?: StringFieldUpdateOperationsInput; +} diff --git a/server/src/api/@generated/comment/comment-unchecked-update-without-author.input.ts b/server/src/api/@generated/comment/comment-unchecked-update-without-author.input.ts new file mode 100644 index 000000000..6d89f926f --- /dev/null +++ b/server/src/api/@generated/comment/comment-unchecked-update-without-author.input.ts @@ -0,0 +1,30 @@ +import { Field } from '@nestjs/graphql'; +import { 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'; + +@InputType() +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; + + @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) + commentThreadId?: StringFieldUpdateOperationsInput; + + @HideField() + workspaceId?: StringFieldUpdateOperationsInput; +} diff --git a/server/src/api/@generated/comment/comment-unchecked-update-without-comment-thread.input.ts b/server/src/api/@generated/comment/comment-unchecked-update-without-comment-thread.input.ts new file mode 100644 index 000000000..7427889ca --- /dev/null +++ b/server/src/api/@generated/comment/comment-unchecked-update-without-comment-thread.input.ts @@ -0,0 +1,30 @@ +import { Field } from '@nestjs/graphql'; +import { 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'; + +@InputType() +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; + + @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) + authorId?: StringFieldUpdateOperationsInput; + + @HideField() + workspaceId?: StringFieldUpdateOperationsInput; +} diff --git a/server/src/api/@generated/comment/comment-unchecked-update-without-workspace.input.ts b/server/src/api/@generated/comment/comment-unchecked-update-without-workspace.input.ts new file mode 100644 index 000000000..ab5d7eed0 --- /dev/null +++ b/server/src/api/@generated/comment/comment-unchecked-update-without-workspace.input.ts @@ -0,0 +1,29 @@ +import { Field } from '@nestjs/graphql'; +import { 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'; + +@InputType() +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; + + @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) + authorId?: StringFieldUpdateOperationsInput; + + @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) + commentThreadId?: StringFieldUpdateOperationsInput; +} diff --git a/server/src/api/@generated/comment/comment-unchecked-update.input.ts b/server/src/api/@generated/comment/comment-unchecked-update.input.ts new file mode 100644 index 000000000..a34d8c4bb --- /dev/null +++ b/server/src/api/@generated/comment/comment-unchecked-update.input.ts @@ -0,0 +1,33 @@ +import { Field } from '@nestjs/graphql'; +import { 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'; + +@InputType() +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; + + @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) + authorId?: StringFieldUpdateOperationsInput; + + @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) + commentThreadId?: StringFieldUpdateOperationsInput; + + @HideField() + workspaceId?: StringFieldUpdateOperationsInput; +} diff --git a/server/src/api/@generated/comment/comment-update-many-mutation.input.ts b/server/src/api/@generated/comment/comment-update-many-mutation.input.ts new file mode 100644 index 000000000..c828a454c --- /dev/null +++ b/server/src/api/@generated/comment/comment-update-many-mutation.input.ts @@ -0,0 +1,23 @@ +import { Field } from '@nestjs/graphql'; +import { 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'; + +@InputType() +export class CommentUpdateManyMutationInput { + @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; +} diff --git a/server/src/api/@generated/comment/comment-update-many-with-where-without-author.input.ts b/server/src/api/@generated/comment/comment-update-many-with-where-without-author.input.ts new file mode 100644 index 000000000..c14e531fb --- /dev/null +++ b/server/src/api/@generated/comment/comment-update-many-with-where-without-author.input.ts @@ -0,0 +1,16 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentScalarWhereInput } from './comment-scalar-where.input'; +import { Type } from 'class-transformer'; +import { CommentUpdateManyMutationInput } from './comment-update-many-mutation.input'; + +@InputType() +export class CommentUpdateManyWithWhereWithoutAuthorInput { + @Field(() => CommentScalarWhereInput, { nullable: false }) + @Type(() => CommentScalarWhereInput) + where!: CommentScalarWhereInput; + + @Field(() => CommentUpdateManyMutationInput, { nullable: false }) + @Type(() => CommentUpdateManyMutationInput) + data!: CommentUpdateManyMutationInput; +} diff --git a/server/src/api/@generated/comment/comment-update-many-with-where-without-comment-thread.input.ts b/server/src/api/@generated/comment/comment-update-many-with-where-without-comment-thread.input.ts new file mode 100644 index 000000000..893394e09 --- /dev/null +++ b/server/src/api/@generated/comment/comment-update-many-with-where-without-comment-thread.input.ts @@ -0,0 +1,16 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentScalarWhereInput } from './comment-scalar-where.input'; +import { Type } from 'class-transformer'; +import { CommentUpdateManyMutationInput } from './comment-update-many-mutation.input'; + +@InputType() +export class CommentUpdateManyWithWhereWithoutCommentThreadInput { + @Field(() => CommentScalarWhereInput, { nullable: false }) + @Type(() => CommentScalarWhereInput) + where!: CommentScalarWhereInput; + + @Field(() => CommentUpdateManyMutationInput, { nullable: false }) + @Type(() => CommentUpdateManyMutationInput) + data!: CommentUpdateManyMutationInput; +} diff --git a/server/src/api/@generated/comment/comment-update-many-with-where-without-workspace.input.ts b/server/src/api/@generated/comment/comment-update-many-with-where-without-workspace.input.ts new file mode 100644 index 000000000..ec53f809d --- /dev/null +++ b/server/src/api/@generated/comment/comment-update-many-with-where-without-workspace.input.ts @@ -0,0 +1,16 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentScalarWhereInput } from './comment-scalar-where.input'; +import { Type } from 'class-transformer'; +import { CommentUpdateManyMutationInput } from './comment-update-many-mutation.input'; + +@InputType() +export class CommentUpdateManyWithWhereWithoutWorkspaceInput { + @Field(() => CommentScalarWhereInput, { nullable: false }) + @Type(() => CommentScalarWhereInput) + where!: CommentScalarWhereInput; + + @Field(() => CommentUpdateManyMutationInput, { nullable: false }) + @Type(() => CommentUpdateManyMutationInput) + data!: CommentUpdateManyMutationInput; +} diff --git a/server/src/api/@generated/comment/comment-update-many-without-author-nested.input.ts b/server/src/api/@generated/comment/comment-update-many-without-author-nested.input.ts new file mode 100644 index 000000000..5b77d08c9 --- /dev/null +++ b/server/src/api/@generated/comment/comment-update-many-without-author-nested.input.ts @@ -0,0 +1,64 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentCreateWithoutAuthorInput } from './comment-create-without-author.input'; +import { Type } from 'class-transformer'; +import { CommentCreateOrConnectWithoutAuthorInput } from './comment-create-or-connect-without-author.input'; +import { CommentUpsertWithWhereUniqueWithoutAuthorInput } from './comment-upsert-with-where-unique-without-author.input'; +import { CommentCreateManyAuthorInputEnvelope } from './comment-create-many-author-input-envelope.input'; +import { CommentWhereUniqueInput } from './comment-where-unique.input'; +import { CommentUpdateWithWhereUniqueWithoutAuthorInput } from './comment-update-with-where-unique-without-author.input'; +import { CommentUpdateManyWithWhereWithoutAuthorInput } from './comment-update-many-with-where-without-author.input'; +import { CommentScalarWhereInput } from './comment-scalar-where.input'; + +@InputType() +export class CommentUpdateManyWithoutAuthorNestedInput { + @Field(() => [CommentCreateWithoutAuthorInput], { nullable: true }) + @Type(() => CommentCreateWithoutAuthorInput) + create?: Array; + + @Field(() => [CommentCreateOrConnectWithoutAuthorInput], { nullable: true }) + @Type(() => CommentCreateOrConnectWithoutAuthorInput) + connectOrCreate?: Array; + + @Field(() => [CommentUpsertWithWhereUniqueWithoutAuthorInput], { + nullable: true, + }) + @Type(() => CommentUpsertWithWhereUniqueWithoutAuthorInput) + upsert?: Array; + + @Field(() => CommentCreateManyAuthorInputEnvelope, { nullable: true }) + @Type(() => CommentCreateManyAuthorInputEnvelope) + createMany?: CommentCreateManyAuthorInputEnvelope; + + @Field(() => [CommentWhereUniqueInput], { nullable: true }) + @Type(() => CommentWhereUniqueInput) + set?: Array; + + @Field(() => [CommentWhereUniqueInput], { nullable: true }) + @Type(() => CommentWhereUniqueInput) + disconnect?: Array; + + @Field(() => [CommentWhereUniqueInput], { nullable: true }) + @Type(() => CommentWhereUniqueInput) + delete?: Array; + + @Field(() => [CommentWhereUniqueInput], { nullable: true }) + @Type(() => CommentWhereUniqueInput) + connect?: Array; + + @Field(() => [CommentUpdateWithWhereUniqueWithoutAuthorInput], { + nullable: true, + }) + @Type(() => CommentUpdateWithWhereUniqueWithoutAuthorInput) + update?: Array; + + @Field(() => [CommentUpdateManyWithWhereWithoutAuthorInput], { + nullable: true, + }) + @Type(() => CommentUpdateManyWithWhereWithoutAuthorInput) + updateMany?: Array; + + @Field(() => [CommentScalarWhereInput], { nullable: true }) + @Type(() => CommentScalarWhereInput) + deleteMany?: Array; +} diff --git a/server/src/api/@generated/comment/comment-update-many-without-comment-thread-nested.input.ts b/server/src/api/@generated/comment/comment-update-many-without-comment-thread-nested.input.ts new file mode 100644 index 000000000..2e4ba9dbb --- /dev/null +++ b/server/src/api/@generated/comment/comment-update-many-without-comment-thread-nested.input.ts @@ -0,0 +1,66 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentCreateWithoutCommentThreadInput } from './comment-create-without-comment-thread.input'; +import { Type } from 'class-transformer'; +import { CommentCreateOrConnectWithoutCommentThreadInput } from './comment-create-or-connect-without-comment-thread.input'; +import { CommentUpsertWithWhereUniqueWithoutCommentThreadInput } from './comment-upsert-with-where-unique-without-comment-thread.input'; +import { CommentCreateManyCommentThreadInputEnvelope } from './comment-create-many-comment-thread-input-envelope.input'; +import { CommentWhereUniqueInput } from './comment-where-unique.input'; +import { CommentUpdateWithWhereUniqueWithoutCommentThreadInput } from './comment-update-with-where-unique-without-comment-thread.input'; +import { CommentUpdateManyWithWhereWithoutCommentThreadInput } from './comment-update-many-with-where-without-comment-thread.input'; +import { CommentScalarWhereInput } from './comment-scalar-where.input'; + +@InputType() +export class CommentUpdateManyWithoutCommentThreadNestedInput { + @Field(() => [CommentCreateWithoutCommentThreadInput], { nullable: true }) + @Type(() => CommentCreateWithoutCommentThreadInput) + create?: Array; + + @Field(() => [CommentCreateOrConnectWithoutCommentThreadInput], { + nullable: true, + }) + @Type(() => CommentCreateOrConnectWithoutCommentThreadInput) + connectOrCreate?: Array; + + @Field(() => [CommentUpsertWithWhereUniqueWithoutCommentThreadInput], { + nullable: true, + }) + @Type(() => CommentUpsertWithWhereUniqueWithoutCommentThreadInput) + upsert?: Array; + + @Field(() => CommentCreateManyCommentThreadInputEnvelope, { nullable: true }) + @Type(() => CommentCreateManyCommentThreadInputEnvelope) + createMany?: CommentCreateManyCommentThreadInputEnvelope; + + @Field(() => [CommentWhereUniqueInput], { nullable: true }) + @Type(() => CommentWhereUniqueInput) + set?: Array; + + @Field(() => [CommentWhereUniqueInput], { nullable: true }) + @Type(() => CommentWhereUniqueInput) + disconnect?: Array; + + @Field(() => [CommentWhereUniqueInput], { nullable: true }) + @Type(() => CommentWhereUniqueInput) + delete?: Array; + + @Field(() => [CommentWhereUniqueInput], { nullable: true }) + @Type(() => CommentWhereUniqueInput) + connect?: Array; + + @Field(() => [CommentUpdateWithWhereUniqueWithoutCommentThreadInput], { + nullable: true, + }) + @Type(() => CommentUpdateWithWhereUniqueWithoutCommentThreadInput) + update?: Array; + + @Field(() => [CommentUpdateManyWithWhereWithoutCommentThreadInput], { + nullable: true, + }) + @Type(() => CommentUpdateManyWithWhereWithoutCommentThreadInput) + updateMany?: Array; + + @Field(() => [CommentScalarWhereInput], { nullable: true }) + @Type(() => CommentScalarWhereInput) + deleteMany?: Array; +} diff --git a/server/src/api/@generated/comment/comment-update-many-without-workspace-nested.input.ts b/server/src/api/@generated/comment/comment-update-many-without-workspace-nested.input.ts new file mode 100644 index 000000000..a2ae2e037 --- /dev/null +++ b/server/src/api/@generated/comment/comment-update-many-without-workspace-nested.input.ts @@ -0,0 +1,66 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentCreateWithoutWorkspaceInput } from './comment-create-without-workspace.input'; +import { Type } from 'class-transformer'; +import { CommentCreateOrConnectWithoutWorkspaceInput } from './comment-create-or-connect-without-workspace.input'; +import { CommentUpsertWithWhereUniqueWithoutWorkspaceInput } from './comment-upsert-with-where-unique-without-workspace.input'; +import { CommentCreateManyWorkspaceInputEnvelope } from './comment-create-many-workspace-input-envelope.input'; +import { CommentWhereUniqueInput } from './comment-where-unique.input'; +import { CommentUpdateWithWhereUniqueWithoutWorkspaceInput } from './comment-update-with-where-unique-without-workspace.input'; +import { CommentUpdateManyWithWhereWithoutWorkspaceInput } from './comment-update-many-with-where-without-workspace.input'; +import { CommentScalarWhereInput } from './comment-scalar-where.input'; + +@InputType() +export class CommentUpdateManyWithoutWorkspaceNestedInput { + @Field(() => [CommentCreateWithoutWorkspaceInput], { nullable: true }) + @Type(() => CommentCreateWithoutWorkspaceInput) + create?: Array; + + @Field(() => [CommentCreateOrConnectWithoutWorkspaceInput], { + nullable: true, + }) + @Type(() => CommentCreateOrConnectWithoutWorkspaceInput) + connectOrCreate?: Array; + + @Field(() => [CommentUpsertWithWhereUniqueWithoutWorkspaceInput], { + nullable: true, + }) + @Type(() => CommentUpsertWithWhereUniqueWithoutWorkspaceInput) + upsert?: Array; + + @Field(() => CommentCreateManyWorkspaceInputEnvelope, { nullable: true }) + @Type(() => CommentCreateManyWorkspaceInputEnvelope) + createMany?: CommentCreateManyWorkspaceInputEnvelope; + + @Field(() => [CommentWhereUniqueInput], { nullable: true }) + @Type(() => CommentWhereUniqueInput) + set?: Array; + + @Field(() => [CommentWhereUniqueInput], { nullable: true }) + @Type(() => CommentWhereUniqueInput) + disconnect?: Array; + + @Field(() => [CommentWhereUniqueInput], { nullable: true }) + @Type(() => CommentWhereUniqueInput) + delete?: Array; + + @Field(() => [CommentWhereUniqueInput], { nullable: true }) + @Type(() => CommentWhereUniqueInput) + connect?: Array; + + @Field(() => [CommentUpdateWithWhereUniqueWithoutWorkspaceInput], { + nullable: true, + }) + @Type(() => CommentUpdateWithWhereUniqueWithoutWorkspaceInput) + update?: Array; + + @Field(() => [CommentUpdateManyWithWhereWithoutWorkspaceInput], { + nullable: true, + }) + @Type(() => CommentUpdateManyWithWhereWithoutWorkspaceInput) + updateMany?: Array; + + @Field(() => [CommentScalarWhereInput], { nullable: true }) + @Type(() => CommentScalarWhereInput) + deleteMany?: Array; +} diff --git a/server/src/api/@generated/comment/comment-update-with-where-unique-without-author.input.ts b/server/src/api/@generated/comment/comment-update-with-where-unique-without-author.input.ts new file mode 100644 index 000000000..38d866afa --- /dev/null +++ b/server/src/api/@generated/comment/comment-update-with-where-unique-without-author.input.ts @@ -0,0 +1,16 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentWhereUniqueInput } from './comment-where-unique.input'; +import { Type } from 'class-transformer'; +import { CommentUpdateWithoutAuthorInput } from './comment-update-without-author.input'; + +@InputType() +export class CommentUpdateWithWhereUniqueWithoutAuthorInput { + @Field(() => CommentWhereUniqueInput, { nullable: false }) + @Type(() => CommentWhereUniqueInput) + where!: CommentWhereUniqueInput; + + @Field(() => CommentUpdateWithoutAuthorInput, { nullable: false }) + @Type(() => CommentUpdateWithoutAuthorInput) + data!: CommentUpdateWithoutAuthorInput; +} diff --git a/server/src/api/@generated/comment/comment-update-with-where-unique-without-comment-thread.input.ts b/server/src/api/@generated/comment/comment-update-with-where-unique-without-comment-thread.input.ts new file mode 100644 index 000000000..aedf1a463 --- /dev/null +++ b/server/src/api/@generated/comment/comment-update-with-where-unique-without-comment-thread.input.ts @@ -0,0 +1,16 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentWhereUniqueInput } from './comment-where-unique.input'; +import { Type } from 'class-transformer'; +import { CommentUpdateWithoutCommentThreadInput } from './comment-update-without-comment-thread.input'; + +@InputType() +export class CommentUpdateWithWhereUniqueWithoutCommentThreadInput { + @Field(() => CommentWhereUniqueInput, { nullable: false }) + @Type(() => CommentWhereUniqueInput) + where!: CommentWhereUniqueInput; + + @Field(() => CommentUpdateWithoutCommentThreadInput, { nullable: false }) + @Type(() => CommentUpdateWithoutCommentThreadInput) + data!: CommentUpdateWithoutCommentThreadInput; +} diff --git a/server/src/api/@generated/comment/comment-update-with-where-unique-without-workspace.input.ts b/server/src/api/@generated/comment/comment-update-with-where-unique-without-workspace.input.ts new file mode 100644 index 000000000..0dc930564 --- /dev/null +++ b/server/src/api/@generated/comment/comment-update-with-where-unique-without-workspace.input.ts @@ -0,0 +1,16 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentWhereUniqueInput } from './comment-where-unique.input'; +import { Type } from 'class-transformer'; +import { CommentUpdateWithoutWorkspaceInput } from './comment-update-without-workspace.input'; + +@InputType() +export class CommentUpdateWithWhereUniqueWithoutWorkspaceInput { + @Field(() => CommentWhereUniqueInput, { nullable: false }) + @Type(() => CommentWhereUniqueInput) + where!: CommentWhereUniqueInput; + + @Field(() => CommentUpdateWithoutWorkspaceInput, { nullable: false }) + @Type(() => CommentUpdateWithoutWorkspaceInput) + data!: CommentUpdateWithoutWorkspaceInput; +} diff --git a/server/src/api/@generated/comment/comment-update-without-author.input.ts b/server/src/api/@generated/comment/comment-update-without-author.input.ts new file mode 100644 index 000000000..7c6c61108 --- /dev/null +++ b/server/src/api/@generated/comment/comment-update-without-author.input.ts @@ -0,0 +1,34 @@ +import { Field } from '@nestjs/graphql'; +import { 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 { 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 { + @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; + + @Field(() => CommentThreadUpdateOneRequiredWithoutCommentsNestedInput, { + nullable: true, + }) + commentThread?: CommentThreadUpdateOneRequiredWithoutCommentsNestedInput; + + @HideField() + workspace?: WorkspaceUpdateOneRequiredWithoutCommentsNestedInput; +} diff --git a/server/src/api/@generated/comment/comment-update-without-comment-thread.input.ts b/server/src/api/@generated/comment/comment-update-without-comment-thread.input.ts new file mode 100644 index 000000000..e03374d01 --- /dev/null +++ b/server/src/api/@generated/comment/comment-update-without-comment-thread.input.ts @@ -0,0 +1,34 @@ +import { Field } from '@nestjs/graphql'; +import { 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 { 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 { + @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; + + @Field(() => UserUpdateOneRequiredWithoutCommentsNestedInput, { + nullable: true, + }) + author?: UserUpdateOneRequiredWithoutCommentsNestedInput; + + @HideField() + workspace?: WorkspaceUpdateOneRequiredWithoutCommentsNestedInput; +} diff --git a/server/src/api/@generated/comment/comment-update-without-workspace.input.ts b/server/src/api/@generated/comment/comment-update-without-workspace.input.ts new file mode 100644 index 000000000..a94b70eb2 --- /dev/null +++ b/server/src/api/@generated/comment/comment-update-without-workspace.input.ts @@ -0,0 +1,35 @@ +import { Field } from '@nestjs/graphql'; +import { 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 { 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'; + +@InputType() +export class CommentUpdateWithoutWorkspaceInput { + @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; + + @Field(() => UserUpdateOneRequiredWithoutCommentsNestedInput, { + nullable: true, + }) + author?: UserUpdateOneRequiredWithoutCommentsNestedInput; + + @Field(() => CommentThreadUpdateOneRequiredWithoutCommentsNestedInput, { + nullable: true, + }) + commentThread?: CommentThreadUpdateOneRequiredWithoutCommentsNestedInput; +} diff --git a/server/src/api/@generated/comment/comment-update.input.ts b/server/src/api/@generated/comment/comment-update.input.ts new file mode 100644 index 000000000..61c99ce5e --- /dev/null +++ b/server/src/api/@generated/comment/comment-update.input.ts @@ -0,0 +1,40 @@ +import { Field } from '@nestjs/graphql'; +import { 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 { 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 { + @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; + + @Field(() => UserUpdateOneRequiredWithoutCommentsNestedInput, { + nullable: true, + }) + author?: UserUpdateOneRequiredWithoutCommentsNestedInput; + + @Field(() => CommentThreadUpdateOneRequiredWithoutCommentsNestedInput, { + nullable: true, + }) + commentThread?: CommentThreadUpdateOneRequiredWithoutCommentsNestedInput; + + @HideField() + workspace?: WorkspaceUpdateOneRequiredWithoutCommentsNestedInput; +} diff --git a/server/src/api/@generated/comment/comment-upsert-with-where-unique-without-author.input.ts b/server/src/api/@generated/comment/comment-upsert-with-where-unique-without-author.input.ts new file mode 100644 index 000000000..69fbe04d9 --- /dev/null +++ b/server/src/api/@generated/comment/comment-upsert-with-where-unique-without-author.input.ts @@ -0,0 +1,21 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentWhereUniqueInput } from './comment-where-unique.input'; +import { Type } from 'class-transformer'; +import { CommentUpdateWithoutAuthorInput } from './comment-update-without-author.input'; +import { CommentCreateWithoutAuthorInput } from './comment-create-without-author.input'; + +@InputType() +export class CommentUpsertWithWhereUniqueWithoutAuthorInput { + @Field(() => CommentWhereUniqueInput, { nullable: false }) + @Type(() => CommentWhereUniqueInput) + where!: CommentWhereUniqueInput; + + @Field(() => CommentUpdateWithoutAuthorInput, { nullable: false }) + @Type(() => CommentUpdateWithoutAuthorInput) + update!: CommentUpdateWithoutAuthorInput; + + @Field(() => CommentCreateWithoutAuthorInput, { nullable: false }) + @Type(() => CommentCreateWithoutAuthorInput) + create!: CommentCreateWithoutAuthorInput; +} diff --git a/server/src/api/@generated/comment/comment-upsert-with-where-unique-without-comment-thread.input.ts b/server/src/api/@generated/comment/comment-upsert-with-where-unique-without-comment-thread.input.ts new file mode 100644 index 000000000..aa464cb2f --- /dev/null +++ b/server/src/api/@generated/comment/comment-upsert-with-where-unique-without-comment-thread.input.ts @@ -0,0 +1,21 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentWhereUniqueInput } from './comment-where-unique.input'; +import { Type } from 'class-transformer'; +import { CommentUpdateWithoutCommentThreadInput } from './comment-update-without-comment-thread.input'; +import { CommentCreateWithoutCommentThreadInput } from './comment-create-without-comment-thread.input'; + +@InputType() +export class CommentUpsertWithWhereUniqueWithoutCommentThreadInput { + @Field(() => CommentWhereUniqueInput, { nullable: false }) + @Type(() => CommentWhereUniqueInput) + where!: CommentWhereUniqueInput; + + @Field(() => CommentUpdateWithoutCommentThreadInput, { nullable: false }) + @Type(() => CommentUpdateWithoutCommentThreadInput) + update!: CommentUpdateWithoutCommentThreadInput; + + @Field(() => CommentCreateWithoutCommentThreadInput, { nullable: false }) + @Type(() => CommentCreateWithoutCommentThreadInput) + create!: CommentCreateWithoutCommentThreadInput; +} diff --git a/server/src/api/@generated/comment/comment-upsert-with-where-unique-without-workspace.input.ts b/server/src/api/@generated/comment/comment-upsert-with-where-unique-without-workspace.input.ts new file mode 100644 index 000000000..4dd6c184b --- /dev/null +++ b/server/src/api/@generated/comment/comment-upsert-with-where-unique-without-workspace.input.ts @@ -0,0 +1,21 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentWhereUniqueInput } from './comment-where-unique.input'; +import { Type } from 'class-transformer'; +import { CommentUpdateWithoutWorkspaceInput } from './comment-update-without-workspace.input'; +import { CommentCreateWithoutWorkspaceInput } from './comment-create-without-workspace.input'; + +@InputType() +export class CommentUpsertWithWhereUniqueWithoutWorkspaceInput { + @Field(() => CommentWhereUniqueInput, { nullable: false }) + @Type(() => CommentWhereUniqueInput) + where!: CommentWhereUniqueInput; + + @Field(() => CommentUpdateWithoutWorkspaceInput, { nullable: false }) + @Type(() => CommentUpdateWithoutWorkspaceInput) + update!: CommentUpdateWithoutWorkspaceInput; + + @Field(() => CommentCreateWithoutWorkspaceInput, { nullable: false }) + @Type(() => CommentCreateWithoutWorkspaceInput) + create!: CommentCreateWithoutWorkspaceInput; +} diff --git a/server/src/api/@generated/comment/comment-where-unique.input.ts b/server/src/api/@generated/comment/comment-where-unique.input.ts new file mode 100644 index 000000000..ed23c5bb4 --- /dev/null +++ b/server/src/api/@generated/comment/comment-where-unique.input.ts @@ -0,0 +1,8 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; + +@InputType() +export class CommentWhereUniqueInput { + @Field(() => String, { nullable: true }) + id?: string; +} diff --git a/server/src/api/@generated/comment/comment-where.input.ts b/server/src/api/@generated/comment/comment-where.input.ts new file mode 100644 index 000000000..87cd3feeb --- /dev/null +++ b/server/src/api/@generated/comment/comment-where.input.ts @@ -0,0 +1,54 @@ +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 { 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'; + +@InputType() +export class CommentWhereInput { + @Field(() => [CommentWhereInput], { nullable: true }) + AND?: Array; + + @Field(() => [CommentWhereInput], { nullable: true }) + OR?: Array; + + @Field(() => [CommentWhereInput], { nullable: true }) + NOT?: Array; + + @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; + + @Field(() => StringFilter, { nullable: true }) + authorId?: StringFilter; + + @Field(() => StringFilter, { nullable: true }) + commentThreadId?: StringFilter; + + @HideField() + workspaceId?: StringFilter; + + @Field(() => UserRelationFilter, { nullable: true }) + author?: UserRelationFilter; + + @Field(() => CommentThreadRelationFilter, { nullable: true }) + commentThread?: CommentThreadRelationFilter; + + @HideField() + workspace?: WorkspaceRelationFilter; +} diff --git a/server/src/api/@generated/comment/comment.model.ts b/server/src/api/@generated/comment/comment.model.ts new file mode 100644 index 000000000..7b933d524 --- /dev/null +++ b/server/src/api/@generated/comment/comment.model.ts @@ -0,0 +1,42 @@ +import { Field } from '@nestjs/graphql'; +import { ObjectType } from '@nestjs/graphql'; +import { ID } from '@nestjs/graphql'; +import { User } from '../user/user.model'; +import { CommentThread } from '../comment-thread/comment-thread.model'; +import { Workspace } from '../workspace/workspace.model'; + +@ObjectType() +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; + + @Field(() => String, { nullable: false }) + authorId!: string; + + @Field(() => String, { nullable: false }) + commentThreadId!: string; + + @Field(() => String, { nullable: false }) + workspaceId!: string; + + @Field(() => User, { nullable: false }) + author?: User; + + @Field(() => CommentThread, { nullable: false }) + commentThread?: CommentThread; + + @Field(() => Workspace, { nullable: false }) + workspace?: Workspace; +} diff --git a/server/src/api/@generated/comment/create-many-comment.args.ts b/server/src/api/@generated/comment/create-many-comment.args.ts new file mode 100644 index 000000000..4f66f49c0 --- /dev/null +++ b/server/src/api/@generated/comment/create-many-comment.args.ts @@ -0,0 +1,14 @@ +import { Field } from '@nestjs/graphql'; +import { ArgsType } from '@nestjs/graphql'; +import { CommentCreateManyInput } from './comment-create-many.input'; +import { Type } from 'class-transformer'; + +@ArgsType() +export class CreateManyCommentArgs { + @Field(() => [CommentCreateManyInput], { nullable: false }) + @Type(() => CommentCreateManyInput) + data!: Array; + + @Field(() => Boolean, { nullable: true }) + skipDuplicates?: boolean; +} diff --git a/server/src/api/@generated/comment/create-one-comment.args.ts b/server/src/api/@generated/comment/create-one-comment.args.ts new file mode 100644 index 000000000..0867c2ea7 --- /dev/null +++ b/server/src/api/@generated/comment/create-one-comment.args.ts @@ -0,0 +1,11 @@ +import { Field } from '@nestjs/graphql'; +import { ArgsType } from '@nestjs/graphql'; +import { CommentCreateInput } from './comment-create.input'; +import { Type } from 'class-transformer'; + +@ArgsType() +export class CreateOneCommentArgs { + @Field(() => CommentCreateInput, { nullable: false }) + @Type(() => CommentCreateInput) + data!: CommentCreateInput; +} diff --git a/server/src/api/@generated/comment/delete-many-comment.args.ts b/server/src/api/@generated/comment/delete-many-comment.args.ts new file mode 100644 index 000000000..f224a9cbe --- /dev/null +++ b/server/src/api/@generated/comment/delete-many-comment.args.ts @@ -0,0 +1,11 @@ +import { Field } from '@nestjs/graphql'; +import { ArgsType } from '@nestjs/graphql'; +import { CommentWhereInput } from './comment-where.input'; +import { Type } from 'class-transformer'; + +@ArgsType() +export class DeleteManyCommentArgs { + @Field(() => CommentWhereInput, { nullable: true }) + @Type(() => CommentWhereInput) + where?: CommentWhereInput; +} diff --git a/server/src/api/@generated/comment/delete-one-comment.args.ts b/server/src/api/@generated/comment/delete-one-comment.args.ts new file mode 100644 index 000000000..a4fe59237 --- /dev/null +++ b/server/src/api/@generated/comment/delete-one-comment.args.ts @@ -0,0 +1,11 @@ +import { Field } from '@nestjs/graphql'; +import { ArgsType } from '@nestjs/graphql'; +import { CommentWhereUniqueInput } from './comment-where-unique.input'; +import { Type } from 'class-transformer'; + +@ArgsType() +export class DeleteOneCommentArgs { + @Field(() => CommentWhereUniqueInput, { nullable: false }) + @Type(() => CommentWhereUniqueInput) + where!: CommentWhereUniqueInput; +} diff --git a/server/src/api/@generated/comment/find-first-comment-or-throw.args.ts b/server/src/api/@generated/comment/find-first-comment-or-throw.args.ts new file mode 100644 index 000000000..9f51ef025 --- /dev/null +++ b/server/src/api/@generated/comment/find-first-comment-or-throw.args.ts @@ -0,0 +1,30 @@ +import { Field } from '@nestjs/graphql'; +import { ArgsType } from '@nestjs/graphql'; +import { CommentWhereInput } from './comment-where.input'; +import { Type } from 'class-transformer'; +import { CommentOrderByWithRelationInput } from './comment-order-by-with-relation.input'; +import { CommentWhereUniqueInput } from './comment-where-unique.input'; +import { Int } from '@nestjs/graphql'; +import { CommentScalarFieldEnum } from './comment-scalar-field.enum'; + +@ArgsType() +export class FindFirstCommentOrThrowArgs { + @Field(() => CommentWhereInput, { nullable: true }) + @Type(() => CommentWhereInput) + where?: CommentWhereInput; + + @Field(() => [CommentOrderByWithRelationInput], { nullable: true }) + orderBy?: Array; + + @Field(() => CommentWhereUniqueInput, { nullable: true }) + cursor?: CommentWhereUniqueInput; + + @Field(() => Int, { nullable: true }) + take?: number; + + @Field(() => Int, { nullable: true }) + skip?: number; + + @Field(() => [CommentScalarFieldEnum], { nullable: true }) + distinct?: Array; +} diff --git a/server/src/api/@generated/comment/find-first-comment.args.ts b/server/src/api/@generated/comment/find-first-comment.args.ts new file mode 100644 index 000000000..bbb48ffe6 --- /dev/null +++ b/server/src/api/@generated/comment/find-first-comment.args.ts @@ -0,0 +1,30 @@ +import { Field } from '@nestjs/graphql'; +import { ArgsType } from '@nestjs/graphql'; +import { CommentWhereInput } from './comment-where.input'; +import { Type } from 'class-transformer'; +import { CommentOrderByWithRelationInput } from './comment-order-by-with-relation.input'; +import { CommentWhereUniqueInput } from './comment-where-unique.input'; +import { Int } from '@nestjs/graphql'; +import { CommentScalarFieldEnum } from './comment-scalar-field.enum'; + +@ArgsType() +export class FindFirstCommentArgs { + @Field(() => CommentWhereInput, { nullable: true }) + @Type(() => CommentWhereInput) + where?: CommentWhereInput; + + @Field(() => [CommentOrderByWithRelationInput], { nullable: true }) + orderBy?: Array; + + @Field(() => CommentWhereUniqueInput, { nullable: true }) + cursor?: CommentWhereUniqueInput; + + @Field(() => Int, { nullable: true }) + take?: number; + + @Field(() => Int, { nullable: true }) + skip?: number; + + @Field(() => [CommentScalarFieldEnum], { nullable: true }) + distinct?: Array; +} diff --git a/server/src/api/@generated/comment/find-many-comment.args.ts b/server/src/api/@generated/comment/find-many-comment.args.ts new file mode 100644 index 000000000..5da29c37a --- /dev/null +++ b/server/src/api/@generated/comment/find-many-comment.args.ts @@ -0,0 +1,30 @@ +import { Field } from '@nestjs/graphql'; +import { ArgsType } from '@nestjs/graphql'; +import { CommentWhereInput } from './comment-where.input'; +import { Type } from 'class-transformer'; +import { CommentOrderByWithRelationInput } from './comment-order-by-with-relation.input'; +import { CommentWhereUniqueInput } from './comment-where-unique.input'; +import { Int } from '@nestjs/graphql'; +import { CommentScalarFieldEnum } from './comment-scalar-field.enum'; + +@ArgsType() +export class FindManyCommentArgs { + @Field(() => CommentWhereInput, { nullable: true }) + @Type(() => CommentWhereInput) + where?: CommentWhereInput; + + @Field(() => [CommentOrderByWithRelationInput], { nullable: true }) + orderBy?: Array; + + @Field(() => CommentWhereUniqueInput, { nullable: true }) + cursor?: CommentWhereUniqueInput; + + @Field(() => Int, { nullable: true }) + take?: number; + + @Field(() => Int, { nullable: true }) + skip?: number; + + @Field(() => [CommentScalarFieldEnum], { nullable: true }) + distinct?: Array; +} diff --git a/server/src/api/@generated/comment/find-unique-comment-or-throw.args.ts b/server/src/api/@generated/comment/find-unique-comment-or-throw.args.ts new file mode 100644 index 000000000..e60058e5c --- /dev/null +++ b/server/src/api/@generated/comment/find-unique-comment-or-throw.args.ts @@ -0,0 +1,11 @@ +import { Field } from '@nestjs/graphql'; +import { ArgsType } from '@nestjs/graphql'; +import { CommentWhereUniqueInput } from './comment-where-unique.input'; +import { Type } from 'class-transformer'; + +@ArgsType() +export class FindUniqueCommentOrThrowArgs { + @Field(() => CommentWhereUniqueInput, { nullable: false }) + @Type(() => CommentWhereUniqueInput) + where!: CommentWhereUniqueInput; +} diff --git a/server/src/api/@generated/comment/find-unique-comment.args.ts b/server/src/api/@generated/comment/find-unique-comment.args.ts new file mode 100644 index 000000000..13669b859 --- /dev/null +++ b/server/src/api/@generated/comment/find-unique-comment.args.ts @@ -0,0 +1,11 @@ +import { Field } from '@nestjs/graphql'; +import { ArgsType } from '@nestjs/graphql'; +import { CommentWhereUniqueInput } from './comment-where-unique.input'; +import { Type } from 'class-transformer'; + +@ArgsType() +export class FindUniqueCommentArgs { + @Field(() => CommentWhereUniqueInput, { nullable: false }) + @Type(() => CommentWhereUniqueInput) + where!: CommentWhereUniqueInput; +} diff --git a/server/src/api/@generated/comment/update-many-comment.args.ts b/server/src/api/@generated/comment/update-many-comment.args.ts new file mode 100644 index 000000000..3cc465481 --- /dev/null +++ b/server/src/api/@generated/comment/update-many-comment.args.ts @@ -0,0 +1,16 @@ +import { Field } from '@nestjs/graphql'; +import { ArgsType } from '@nestjs/graphql'; +import { CommentUpdateManyMutationInput } from './comment-update-many-mutation.input'; +import { Type } from 'class-transformer'; +import { CommentWhereInput } from './comment-where.input'; + +@ArgsType() +export class UpdateManyCommentArgs { + @Field(() => CommentUpdateManyMutationInput, { nullable: false }) + @Type(() => CommentUpdateManyMutationInput) + data!: CommentUpdateManyMutationInput; + + @Field(() => CommentWhereInput, { nullable: true }) + @Type(() => CommentWhereInput) + where?: CommentWhereInput; +} diff --git a/server/src/api/@generated/comment/update-one-comment.args.ts b/server/src/api/@generated/comment/update-one-comment.args.ts new file mode 100644 index 000000000..7eb2e0d13 --- /dev/null +++ b/server/src/api/@generated/comment/update-one-comment.args.ts @@ -0,0 +1,16 @@ +import { Field } from '@nestjs/graphql'; +import { ArgsType } from '@nestjs/graphql'; +import { CommentUpdateInput } from './comment-update.input'; +import { Type } from 'class-transformer'; +import { CommentWhereUniqueInput } from './comment-where-unique.input'; + +@ArgsType() +export class UpdateOneCommentArgs { + @Field(() => CommentUpdateInput, { nullable: false }) + @Type(() => CommentUpdateInput) + data!: CommentUpdateInput; + + @Field(() => CommentWhereUniqueInput, { nullable: false }) + @Type(() => CommentWhereUniqueInput) + where!: CommentWhereUniqueInput; +} diff --git a/server/src/api/@generated/comment/upsert-one-comment.args.ts b/server/src/api/@generated/comment/upsert-one-comment.args.ts new file mode 100644 index 000000000..f16c3114c --- /dev/null +++ b/server/src/api/@generated/comment/upsert-one-comment.args.ts @@ -0,0 +1,21 @@ +import { Field } from '@nestjs/graphql'; +import { ArgsType } from '@nestjs/graphql'; +import { CommentWhereUniqueInput } from './comment-where-unique.input'; +import { Type } from 'class-transformer'; +import { CommentCreateInput } from './comment-create.input'; +import { CommentUpdateInput } from './comment-update.input'; + +@ArgsType() +export class UpsertOneCommentArgs { + @Field(() => CommentWhereUniqueInput, { nullable: false }) + @Type(() => CommentWhereUniqueInput) + where!: CommentWhereUniqueInput; + + @Field(() => CommentCreateInput, { nullable: false }) + @Type(() => CommentCreateInput) + create!: CommentCreateInput; + + @Field(() => CommentUpdateInput, { nullable: false }) + @Type(() => CommentUpdateInput) + update!: CommentUpdateInput; +} diff --git a/server/src/api/@generated/prisma/commentable-type.enum.ts b/server/src/api/@generated/prisma/commentable-type.enum.ts new file mode 100644 index 000000000..5f476e80f --- /dev/null +++ b/server/src/api/@generated/prisma/commentable-type.enum.ts @@ -0,0 +1,11 @@ +import { registerEnumType } from '@nestjs/graphql'; + +export enum CommentableType { + Person = 'Person', + Company = 'Company', +} + +registerEnumType(CommentableType, { + name: 'CommentableType', + description: undefined, +}); diff --git a/server/src/api/@generated/prisma/enum-commentable-type-field-update-operations.input.ts b/server/src/api/@generated/prisma/enum-commentable-type-field-update-operations.input.ts new file mode 100644 index 000000000..d492479ca --- /dev/null +++ b/server/src/api/@generated/prisma/enum-commentable-type-field-update-operations.input.ts @@ -0,0 +1,9 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentableType } from './commentable-type.enum'; + +@InputType() +export class EnumCommentableTypeFieldUpdateOperationsInput { + @Field(() => CommentableType, { nullable: true }) + set?: keyof typeof CommentableType; +} diff --git a/server/src/api/@generated/prisma/enum-commentable-type-filter.input.ts b/server/src/api/@generated/prisma/enum-commentable-type-filter.input.ts new file mode 100644 index 000000000..6f8ec9af8 --- /dev/null +++ b/server/src/api/@generated/prisma/enum-commentable-type-filter.input.ts @@ -0,0 +1,19 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentableType } from './commentable-type.enum'; +import { NestedEnumCommentableTypeFilter } from './nested-enum-commentable-type-filter.input'; + +@InputType() +export class EnumCommentableTypeFilter { + @Field(() => CommentableType, { nullable: true }) + equals?: keyof typeof CommentableType; + + @Field(() => [CommentableType], { nullable: true }) + in?: Array; + + @Field(() => [CommentableType], { nullable: true }) + notIn?: Array; + + @Field(() => NestedEnumCommentableTypeFilter, { nullable: true }) + not?: NestedEnumCommentableTypeFilter; +} diff --git a/server/src/api/@generated/prisma/enum-commentable-type-with-aggregates-filter.input.ts b/server/src/api/@generated/prisma/enum-commentable-type-with-aggregates-filter.input.ts new file mode 100644 index 000000000..9d5eb5c9a --- /dev/null +++ b/server/src/api/@generated/prisma/enum-commentable-type-with-aggregates-filter.input.ts @@ -0,0 +1,32 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentableType } from './commentable-type.enum'; +import { NestedEnumCommentableTypeWithAggregatesFilter } from './nested-enum-commentable-type-with-aggregates-filter.input'; +import { NestedIntFilter } from './nested-int-filter.input'; +import { NestedEnumCommentableTypeFilter } from './nested-enum-commentable-type-filter.input'; + +@InputType() +export class EnumCommentableTypeWithAggregatesFilter { + @Field(() => CommentableType, { nullable: true }) + equals?: keyof typeof CommentableType; + + @Field(() => [CommentableType], { nullable: true }) + in?: Array; + + @Field(() => [CommentableType], { nullable: true }) + notIn?: Array; + + @Field(() => NestedEnumCommentableTypeWithAggregatesFilter, { + nullable: true, + }) + not?: NestedEnumCommentableTypeWithAggregatesFilter; + + @Field(() => NestedIntFilter, { nullable: true }) + _count?: NestedIntFilter; + + @Field(() => NestedEnumCommentableTypeFilter, { nullable: true }) + _min?: NestedEnumCommentableTypeFilter; + + @Field(() => NestedEnumCommentableTypeFilter, { nullable: true }) + _max?: NestedEnumCommentableTypeFilter; +} diff --git a/server/src/api/@generated/prisma/nested-enum-commentable-type-filter.input.ts b/server/src/api/@generated/prisma/nested-enum-commentable-type-filter.input.ts new file mode 100644 index 000000000..899b24aaa --- /dev/null +++ b/server/src/api/@generated/prisma/nested-enum-commentable-type-filter.input.ts @@ -0,0 +1,18 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentableType } from './commentable-type.enum'; + +@InputType() +export class NestedEnumCommentableTypeFilter { + @Field(() => CommentableType, { nullable: true }) + equals?: keyof typeof CommentableType; + + @Field(() => [CommentableType], { nullable: true }) + in?: Array; + + @Field(() => [CommentableType], { nullable: true }) + notIn?: Array; + + @Field(() => NestedEnumCommentableTypeFilter, { nullable: true }) + not?: NestedEnumCommentableTypeFilter; +} diff --git a/server/src/api/@generated/prisma/nested-enum-commentable-type-with-aggregates-filter.input.ts b/server/src/api/@generated/prisma/nested-enum-commentable-type-with-aggregates-filter.input.ts new file mode 100644 index 000000000..7871c3874 --- /dev/null +++ b/server/src/api/@generated/prisma/nested-enum-commentable-type-with-aggregates-filter.input.ts @@ -0,0 +1,31 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { CommentableType } from './commentable-type.enum'; +import { NestedIntFilter } from './nested-int-filter.input'; +import { NestedEnumCommentableTypeFilter } from './nested-enum-commentable-type-filter.input'; + +@InputType() +export class NestedEnumCommentableTypeWithAggregatesFilter { + @Field(() => CommentableType, { nullable: true }) + equals?: keyof typeof CommentableType; + + @Field(() => [CommentableType], { nullable: true }) + in?: Array; + + @Field(() => [CommentableType], { nullable: true }) + notIn?: Array; + + @Field(() => NestedEnumCommentableTypeWithAggregatesFilter, { + nullable: true, + }) + not?: NestedEnumCommentableTypeWithAggregatesFilter; + + @Field(() => NestedIntFilter, { nullable: true }) + _count?: NestedIntFilter; + + @Field(() => NestedEnumCommentableTypeFilter, { nullable: true }) + _min?: NestedEnumCommentableTypeFilter; + + @Field(() => NestedEnumCommentableTypeFilter, { nullable: true }) + _max?: NestedEnumCommentableTypeFilter; +} diff --git a/server/src/api/@generated/refresh-token/refresh-token.model.ts b/server/src/api/@generated/refresh-token/refresh-token.model.ts index 776ac9989..e342d81ff 100644 --- a/server/src/api/@generated/refresh-token/refresh-token.model.ts +++ b/server/src/api/@generated/refresh-token/refresh-token.model.ts @@ -3,7 +3,7 @@ import { ObjectType } from '@nestjs/graphql'; import { ID } from '@nestjs/graphql'; import { User } from '../user/user.model'; -@ObjectType({}) +@ObjectType() export class RefreshToken { @Field(() => ID, { nullable: false }) id!: string; diff --git a/server/src/api/@generated/user/user-count.output.ts b/server/src/api/@generated/user/user-count.output.ts index 0b06b01d3..975eb9906 100644 --- a/server/src/api/@generated/user/user-count.output.ts +++ b/server/src/api/@generated/user/user-count.output.ts @@ -8,5 +8,8 @@ export class UserCount { companies?: number; @Field(() => Int, { nullable: false }) - RefreshTokens?: number; + refreshTokens?: number; + + @Field(() => Int, { nullable: false }) + comments?: number; } diff --git a/server/src/api/@generated/user/user-create-nested-one-without-comments.input.ts b/server/src/api/@generated/user/user-create-nested-one-without-comments.input.ts new file mode 100644 index 000000000..c245180ce --- /dev/null +++ b/server/src/api/@generated/user/user-create-nested-one-without-comments.input.ts @@ -0,0 +1,20 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { UserCreateWithoutCommentsInput } from './user-create-without-comments.input'; +import { HideField } from '@nestjs/graphql'; +import { UserCreateOrConnectWithoutCommentsInput } from './user-create-or-connect-without-comments.input'; +import { UserWhereUniqueInput } from './user-where-unique.input'; +import { Type } from 'class-transformer'; + +@InputType() +export class UserCreateNestedOneWithoutCommentsInput { + @HideField() + create?: UserCreateWithoutCommentsInput; + + @HideField() + connectOrCreate?: UserCreateOrConnectWithoutCommentsInput; + + @Field(() => UserWhereUniqueInput, { nullable: true }) + @Type(() => UserWhereUniqueInput) + connect?: UserWhereUniqueInput; +} diff --git a/server/src/api/@generated/user/user-create-or-connect-without-comments.input.ts b/server/src/api/@generated/user/user-create-or-connect-without-comments.input.ts new file mode 100644 index 000000000..6a1e06fb3 --- /dev/null +++ b/server/src/api/@generated/user/user-create-or-connect-without-comments.input.ts @@ -0,0 +1,16 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { UserWhereUniqueInput } from './user-where-unique.input'; +import { Type } from 'class-transformer'; +import { UserCreateWithoutCommentsInput } from './user-create-without-comments.input'; + +@InputType() +export class UserCreateOrConnectWithoutCommentsInput { + @Field(() => UserWhereUniqueInput, { nullable: false }) + @Type(() => UserWhereUniqueInput) + where!: UserWhereUniqueInput; + + @Field(() => UserCreateWithoutCommentsInput, { nullable: false }) + @Type(() => UserCreateWithoutCommentsInput) + create!: UserCreateWithoutCommentsInput; +} diff --git a/server/src/api/@generated/user/user-create-without-comments.input.ts b/server/src/api/@generated/user/user-create-without-comments.input.ts new file mode 100644 index 000000000..ecd2204c9 --- /dev/null +++ b/server/src/api/@generated/user/user-create-without-comments.input.ts @@ -0,0 +1,64 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { GraphQLJSON } from 'graphql-type-json'; +import { WorkspaceMemberCreateNestedOneWithoutUserInput } from '../workspace-member/workspace-member-create-nested-one-without-user.input'; +import { CompanyCreateNestedManyWithoutAccountOwnerInput } from '../company/company-create-nested-many-without-account-owner.input'; +import { RefreshTokenCreateNestedManyWithoutUserInput } from '../refresh-token/refresh-token-create-nested-many-without-user.input'; + +@InputType() +export class UserCreateWithoutCommentsInput { + @Field(() => String, { nullable: false }) + id!: 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; + + @Field(() => String, { nullable: true }) + passwordHash?: string; + + @Field(() => Boolean, { nullable: true }) + emailVerified?: boolean; + + @Field(() => GraphQLJSON, { nullable: true }) + metadata?: any; + + @Field(() => WorkspaceMemberCreateNestedOneWithoutUserInput, { + nullable: true, + }) + workspaceMember?: WorkspaceMemberCreateNestedOneWithoutUserInput; + + @Field(() => CompanyCreateNestedManyWithoutAccountOwnerInput, { + nullable: true, + }) + companies?: CompanyCreateNestedManyWithoutAccountOwnerInput; + + @Field(() => RefreshTokenCreateNestedManyWithoutUserInput, { nullable: true }) + refreshTokens?: RefreshTokenCreateNestedManyWithoutUserInput; +} diff --git a/server/src/api/@generated/user/user-create-without-companies.input.ts b/server/src/api/@generated/user/user-create-without-companies.input.ts index 3d1ed32b2..ca8b1f34f 100644 --- a/server/src/api/@generated/user/user-create-without-companies.input.ts +++ b/server/src/api/@generated/user/user-create-without-companies.input.ts @@ -3,6 +3,7 @@ import { InputType } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; import { WorkspaceMemberCreateNestedOneWithoutUserInput } from '../workspace-member/workspace-member-create-nested-one-without-user.input'; import { RefreshTokenCreateNestedManyWithoutUserInput } from '../refresh-token/refresh-token-create-nested-many-without-user.input'; +import { CommentCreateNestedManyWithoutAuthorInput } from '../comment/comment-create-nested-many-without-author.input'; @InputType() export class UserCreateWithoutCompaniesInput { @@ -51,8 +52,11 @@ export class UserCreateWithoutCompaniesInput { @Field(() => WorkspaceMemberCreateNestedOneWithoutUserInput, { nullable: true, }) - WorkspaceMember?: WorkspaceMemberCreateNestedOneWithoutUserInput; + workspaceMember?: WorkspaceMemberCreateNestedOneWithoutUserInput; @Field(() => RefreshTokenCreateNestedManyWithoutUserInput, { nullable: true }) - RefreshTokens?: RefreshTokenCreateNestedManyWithoutUserInput; + refreshTokens?: RefreshTokenCreateNestedManyWithoutUserInput; + + @Field(() => CommentCreateNestedManyWithoutAuthorInput, { nullable: true }) + comments?: CommentCreateNestedManyWithoutAuthorInput; } diff --git a/server/src/api/@generated/user/user-create-without-refresh-tokens.input.ts b/server/src/api/@generated/user/user-create-without-refresh-tokens.input.ts index 96548cc84..2ceeb6425 100644 --- a/server/src/api/@generated/user/user-create-without-refresh-tokens.input.ts +++ b/server/src/api/@generated/user/user-create-without-refresh-tokens.input.ts @@ -3,6 +3,7 @@ import { InputType } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; import { WorkspaceMemberCreateNestedOneWithoutUserInput } from '../workspace-member/workspace-member-create-nested-one-without-user.input'; import { CompanyCreateNestedManyWithoutAccountOwnerInput } from '../company/company-create-nested-many-without-account-owner.input'; +import { CommentCreateNestedManyWithoutAuthorInput } from '../comment/comment-create-nested-many-without-author.input'; @InputType() export class UserCreateWithoutRefreshTokensInput { @@ -51,10 +52,13 @@ export class UserCreateWithoutRefreshTokensInput { @Field(() => WorkspaceMemberCreateNestedOneWithoutUserInput, { nullable: true, }) - WorkspaceMember?: WorkspaceMemberCreateNestedOneWithoutUserInput; + workspaceMember?: WorkspaceMemberCreateNestedOneWithoutUserInput; @Field(() => CompanyCreateNestedManyWithoutAccountOwnerInput, { nullable: true, }) companies?: CompanyCreateNestedManyWithoutAccountOwnerInput; + + @Field(() => CommentCreateNestedManyWithoutAuthorInput, { nullable: true }) + comments?: CommentCreateNestedManyWithoutAuthorInput; } diff --git a/server/src/api/@generated/user/user-create-without-workspace-member.input.ts b/server/src/api/@generated/user/user-create-without-workspace-member.input.ts index 7c8ba07fa..558cfb512 100644 --- a/server/src/api/@generated/user/user-create-without-workspace-member.input.ts +++ b/server/src/api/@generated/user/user-create-without-workspace-member.input.ts @@ -3,6 +3,7 @@ import { InputType } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; import { CompanyCreateNestedManyWithoutAccountOwnerInput } from '../company/company-create-nested-many-without-account-owner.input'; import { RefreshTokenCreateNestedManyWithoutUserInput } from '../refresh-token/refresh-token-create-nested-many-without-user.input'; +import { CommentCreateNestedManyWithoutAuthorInput } from '../comment/comment-create-nested-many-without-author.input'; @InputType() export class UserCreateWithoutWorkspaceMemberInput { @@ -54,5 +55,8 @@ export class UserCreateWithoutWorkspaceMemberInput { companies?: CompanyCreateNestedManyWithoutAccountOwnerInput; @Field(() => RefreshTokenCreateNestedManyWithoutUserInput, { nullable: true }) - RefreshTokens?: RefreshTokenCreateNestedManyWithoutUserInput; + refreshTokens?: RefreshTokenCreateNestedManyWithoutUserInput; + + @Field(() => CommentCreateNestedManyWithoutAuthorInput, { nullable: true }) + comments?: CommentCreateNestedManyWithoutAuthorInput; } diff --git a/server/src/api/@generated/user/user-create.input.ts b/server/src/api/@generated/user/user-create.input.ts index 2d1e7717c..3d7db9a34 100644 --- a/server/src/api/@generated/user/user-create.input.ts +++ b/server/src/api/@generated/user/user-create.input.ts @@ -4,6 +4,7 @@ import { GraphQLJSON } from 'graphql-type-json'; import { WorkspaceMemberCreateNestedOneWithoutUserInput } from '../workspace-member/workspace-member-create-nested-one-without-user.input'; import { CompanyCreateNestedManyWithoutAccountOwnerInput } from '../company/company-create-nested-many-without-account-owner.input'; import { RefreshTokenCreateNestedManyWithoutUserInput } from '../refresh-token/refresh-token-create-nested-many-without-user.input'; +import { CommentCreateNestedManyWithoutAuthorInput } from '../comment/comment-create-nested-many-without-author.input'; @InputType() export class UserCreateInput { @@ -52,7 +53,7 @@ export class UserCreateInput { @Field(() => WorkspaceMemberCreateNestedOneWithoutUserInput, { nullable: true, }) - WorkspaceMember?: WorkspaceMemberCreateNestedOneWithoutUserInput; + workspaceMember?: WorkspaceMemberCreateNestedOneWithoutUserInput; @Field(() => CompanyCreateNestedManyWithoutAccountOwnerInput, { nullable: true, @@ -60,5 +61,8 @@ export class UserCreateInput { companies?: CompanyCreateNestedManyWithoutAccountOwnerInput; @Field(() => RefreshTokenCreateNestedManyWithoutUserInput, { nullable: true }) - RefreshTokens?: RefreshTokenCreateNestedManyWithoutUserInput; + refreshTokens?: RefreshTokenCreateNestedManyWithoutUserInput; + + @Field(() => CommentCreateNestedManyWithoutAuthorInput, { nullable: true }) + comments?: CommentCreateNestedManyWithoutAuthorInput; } diff --git a/server/src/api/@generated/user/user-order-by-with-relation.input.ts b/server/src/api/@generated/user/user-order-by-with-relation.input.ts index b0a93239c..19de494dd 100644 --- a/server/src/api/@generated/user/user-order-by-with-relation.input.ts +++ b/server/src/api/@generated/user/user-order-by-with-relation.input.ts @@ -4,6 +4,7 @@ import { SortOrder } from '../prisma/sort-order.enum'; import { WorkspaceMemberOrderByWithRelationInput } from '../workspace-member/workspace-member-order-by-with-relation.input'; import { CompanyOrderByRelationAggregateInput } from '../company/company-order-by-relation-aggregate.input'; import { RefreshTokenOrderByRelationAggregateInput } from '../refresh-token/refresh-token-order-by-relation-aggregate.input'; +import { CommentOrderByRelationAggregateInput } from '../comment/comment-order-by-relation-aggregate.input'; @InputType() export class UserOrderByWithRelationInput { @@ -50,11 +51,14 @@ export class UserOrderByWithRelationInput { metadata?: keyof typeof SortOrder; @Field(() => WorkspaceMemberOrderByWithRelationInput, { nullable: true }) - WorkspaceMember?: WorkspaceMemberOrderByWithRelationInput; + workspaceMember?: WorkspaceMemberOrderByWithRelationInput; @Field(() => CompanyOrderByRelationAggregateInput, { nullable: true }) companies?: CompanyOrderByRelationAggregateInput; @Field(() => RefreshTokenOrderByRelationAggregateInput, { nullable: true }) - RefreshTokens?: RefreshTokenOrderByRelationAggregateInput; + refreshTokens?: RefreshTokenOrderByRelationAggregateInput; + + @Field(() => CommentOrderByRelationAggregateInput, { nullable: true }) + comments?: CommentOrderByRelationAggregateInput; } diff --git a/server/src/api/@generated/user/user-unchecked-create-without-comments.input.ts b/server/src/api/@generated/user/user-unchecked-create-without-comments.input.ts new file mode 100644 index 000000000..ead84bd47 --- /dev/null +++ b/server/src/api/@generated/user/user-unchecked-create-without-comments.input.ts @@ -0,0 +1,66 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { GraphQLJSON } from 'graphql-type-json'; +import { WorkspaceMemberUncheckedCreateNestedOneWithoutUserInput } from '../workspace-member/workspace-member-unchecked-create-nested-one-without-user.input'; +import { CompanyUncheckedCreateNestedManyWithoutAccountOwnerInput } from '../company/company-unchecked-create-nested-many-without-account-owner.input'; +import { RefreshTokenUncheckedCreateNestedManyWithoutUserInput } from '../refresh-token/refresh-token-unchecked-create-nested-many-without-user.input'; + +@InputType() +export class UserUncheckedCreateWithoutCommentsInput { + @Field(() => String, { nullable: false }) + id!: 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; + + @Field(() => String, { nullable: true }) + passwordHash?: string; + + @Field(() => Boolean, { nullable: true }) + emailVerified?: boolean; + + @Field(() => GraphQLJSON, { nullable: true }) + metadata?: any; + + @Field(() => WorkspaceMemberUncheckedCreateNestedOneWithoutUserInput, { + nullable: true, + }) + workspaceMember?: WorkspaceMemberUncheckedCreateNestedOneWithoutUserInput; + + @Field(() => CompanyUncheckedCreateNestedManyWithoutAccountOwnerInput, { + nullable: true, + }) + companies?: CompanyUncheckedCreateNestedManyWithoutAccountOwnerInput; + + @Field(() => RefreshTokenUncheckedCreateNestedManyWithoutUserInput, { + nullable: true, + }) + refreshTokens?: RefreshTokenUncheckedCreateNestedManyWithoutUserInput; +} diff --git a/server/src/api/@generated/user/user-unchecked-create-without-companies.input.ts b/server/src/api/@generated/user/user-unchecked-create-without-companies.input.ts index 2ebb84301..2f40176a5 100644 --- a/server/src/api/@generated/user/user-unchecked-create-without-companies.input.ts +++ b/server/src/api/@generated/user/user-unchecked-create-without-companies.input.ts @@ -3,6 +3,7 @@ import { InputType } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; import { WorkspaceMemberUncheckedCreateNestedOneWithoutUserInput } from '../workspace-member/workspace-member-unchecked-create-nested-one-without-user.input'; import { RefreshTokenUncheckedCreateNestedManyWithoutUserInput } from '../refresh-token/refresh-token-unchecked-create-nested-many-without-user.input'; +import { CommentUncheckedCreateNestedManyWithoutAuthorInput } from '../comment/comment-unchecked-create-nested-many-without-author.input'; @InputType() export class UserUncheckedCreateWithoutCompaniesInput { @@ -51,10 +52,15 @@ export class UserUncheckedCreateWithoutCompaniesInput { @Field(() => WorkspaceMemberUncheckedCreateNestedOneWithoutUserInput, { nullable: true, }) - WorkspaceMember?: WorkspaceMemberUncheckedCreateNestedOneWithoutUserInput; + workspaceMember?: WorkspaceMemberUncheckedCreateNestedOneWithoutUserInput; @Field(() => RefreshTokenUncheckedCreateNestedManyWithoutUserInput, { nullable: true, }) - RefreshTokens?: RefreshTokenUncheckedCreateNestedManyWithoutUserInput; + refreshTokens?: RefreshTokenUncheckedCreateNestedManyWithoutUserInput; + + @Field(() => CommentUncheckedCreateNestedManyWithoutAuthorInput, { + nullable: true, + }) + comments?: CommentUncheckedCreateNestedManyWithoutAuthorInput; } diff --git a/server/src/api/@generated/user/user-unchecked-create-without-refresh-tokens.input.ts b/server/src/api/@generated/user/user-unchecked-create-without-refresh-tokens.input.ts index a8f3cc89f..7ace7a8db 100644 --- a/server/src/api/@generated/user/user-unchecked-create-without-refresh-tokens.input.ts +++ b/server/src/api/@generated/user/user-unchecked-create-without-refresh-tokens.input.ts @@ -3,6 +3,7 @@ import { InputType } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; import { WorkspaceMemberUncheckedCreateNestedOneWithoutUserInput } from '../workspace-member/workspace-member-unchecked-create-nested-one-without-user.input'; import { CompanyUncheckedCreateNestedManyWithoutAccountOwnerInput } from '../company/company-unchecked-create-nested-many-without-account-owner.input'; +import { CommentUncheckedCreateNestedManyWithoutAuthorInput } from '../comment/comment-unchecked-create-nested-many-without-author.input'; @InputType() export class UserUncheckedCreateWithoutRefreshTokensInput { @@ -51,10 +52,15 @@ export class UserUncheckedCreateWithoutRefreshTokensInput { @Field(() => WorkspaceMemberUncheckedCreateNestedOneWithoutUserInput, { nullable: true, }) - WorkspaceMember?: WorkspaceMemberUncheckedCreateNestedOneWithoutUserInput; + workspaceMember?: WorkspaceMemberUncheckedCreateNestedOneWithoutUserInput; @Field(() => CompanyUncheckedCreateNestedManyWithoutAccountOwnerInput, { nullable: true, }) companies?: CompanyUncheckedCreateNestedManyWithoutAccountOwnerInput; + + @Field(() => CommentUncheckedCreateNestedManyWithoutAuthorInput, { + nullable: true, + }) + comments?: CommentUncheckedCreateNestedManyWithoutAuthorInput; } diff --git a/server/src/api/@generated/user/user-unchecked-create-without-workspace-member.input.ts b/server/src/api/@generated/user/user-unchecked-create-without-workspace-member.input.ts index 9fefdf397..e8da0a013 100644 --- a/server/src/api/@generated/user/user-unchecked-create-without-workspace-member.input.ts +++ b/server/src/api/@generated/user/user-unchecked-create-without-workspace-member.input.ts @@ -3,6 +3,7 @@ import { InputType } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; import { CompanyUncheckedCreateNestedManyWithoutAccountOwnerInput } from '../company/company-unchecked-create-nested-many-without-account-owner.input'; import { RefreshTokenUncheckedCreateNestedManyWithoutUserInput } from '../refresh-token/refresh-token-unchecked-create-nested-many-without-user.input'; +import { CommentUncheckedCreateNestedManyWithoutAuthorInput } from '../comment/comment-unchecked-create-nested-many-without-author.input'; @InputType() export class UserUncheckedCreateWithoutWorkspaceMemberInput { @@ -56,5 +57,10 @@ export class UserUncheckedCreateWithoutWorkspaceMemberInput { @Field(() => RefreshTokenUncheckedCreateNestedManyWithoutUserInput, { nullable: true, }) - RefreshTokens?: RefreshTokenUncheckedCreateNestedManyWithoutUserInput; + refreshTokens?: RefreshTokenUncheckedCreateNestedManyWithoutUserInput; + + @Field(() => CommentUncheckedCreateNestedManyWithoutAuthorInput, { + nullable: true, + }) + comments?: CommentUncheckedCreateNestedManyWithoutAuthorInput; } diff --git a/server/src/api/@generated/user/user-unchecked-create.input.ts b/server/src/api/@generated/user/user-unchecked-create.input.ts index 0328b0b2a..351bab644 100644 --- a/server/src/api/@generated/user/user-unchecked-create.input.ts +++ b/server/src/api/@generated/user/user-unchecked-create.input.ts @@ -4,6 +4,7 @@ import { GraphQLJSON } from 'graphql-type-json'; import { WorkspaceMemberUncheckedCreateNestedOneWithoutUserInput } from '../workspace-member/workspace-member-unchecked-create-nested-one-without-user.input'; import { CompanyUncheckedCreateNestedManyWithoutAccountOwnerInput } from '../company/company-unchecked-create-nested-many-without-account-owner.input'; import { RefreshTokenUncheckedCreateNestedManyWithoutUserInput } from '../refresh-token/refresh-token-unchecked-create-nested-many-without-user.input'; +import { CommentUncheckedCreateNestedManyWithoutAuthorInput } from '../comment/comment-unchecked-create-nested-many-without-author.input'; @InputType() export class UserUncheckedCreateInput { @@ -52,7 +53,7 @@ export class UserUncheckedCreateInput { @Field(() => WorkspaceMemberUncheckedCreateNestedOneWithoutUserInput, { nullable: true, }) - WorkspaceMember?: WorkspaceMemberUncheckedCreateNestedOneWithoutUserInput; + workspaceMember?: WorkspaceMemberUncheckedCreateNestedOneWithoutUserInput; @Field(() => CompanyUncheckedCreateNestedManyWithoutAccountOwnerInput, { nullable: true, @@ -62,5 +63,10 @@ export class UserUncheckedCreateInput { @Field(() => RefreshTokenUncheckedCreateNestedManyWithoutUserInput, { nullable: true, }) - RefreshTokens?: RefreshTokenUncheckedCreateNestedManyWithoutUserInput; + refreshTokens?: RefreshTokenUncheckedCreateNestedManyWithoutUserInput; + + @Field(() => CommentUncheckedCreateNestedManyWithoutAuthorInput, { + nullable: true, + }) + comments?: CommentUncheckedCreateNestedManyWithoutAuthorInput; } diff --git a/server/src/api/@generated/user/user-unchecked-update-without-comments.input.ts b/server/src/api/@generated/user/user-unchecked-update-without-comments.input.ts new file mode 100644 index 000000000..1cfbac99c --- /dev/null +++ b/server/src/api/@generated/user/user-unchecked-update-without-comments.input.ts @@ -0,0 +1,71 @@ +import { Field } from '@nestjs/graphql'; +import { 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 { GraphQLJSON } from 'graphql-type-json'; +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'; + +@InputType() +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(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) + avatarUrl?: NullableStringFieldUpdateOperationsInput; + + @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) + locale?: StringFieldUpdateOperationsInput; + + @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) + phoneNumber?: NullableStringFieldUpdateOperationsInput; + + @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) + passwordHash?: NullableStringFieldUpdateOperationsInput; + + @Field(() => BoolFieldUpdateOperationsInput, { nullable: true }) + emailVerified?: BoolFieldUpdateOperationsInput; + + @Field(() => GraphQLJSON, { nullable: true }) + metadata?: any; + + @Field(() => WorkspaceMemberUncheckedUpdateOneWithoutUserNestedInput, { + nullable: true, + }) + workspaceMember?: WorkspaceMemberUncheckedUpdateOneWithoutUserNestedInput; + + @Field(() => CompanyUncheckedUpdateManyWithoutAccountOwnerNestedInput, { + nullable: true, + }) + companies?: CompanyUncheckedUpdateManyWithoutAccountOwnerNestedInput; + + @Field(() => RefreshTokenUncheckedUpdateManyWithoutUserNestedInput, { + nullable: true, + }) + refreshTokens?: RefreshTokenUncheckedUpdateManyWithoutUserNestedInput; +} diff --git a/server/src/api/@generated/user/user-unchecked-update-without-companies.input.ts b/server/src/api/@generated/user/user-unchecked-update-without-companies.input.ts index 335e60dbb..b49ec7470 100644 --- a/server/src/api/@generated/user/user-unchecked-update-without-companies.input.ts +++ b/server/src/api/@generated/user/user-unchecked-update-without-companies.input.ts @@ -8,6 +8,7 @@ import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-str import { GraphQLJSON } from 'graphql-type-json'; 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'; @InputType() export class UserUncheckedUpdateWithoutCompaniesInput { @@ -56,10 +57,15 @@ export class UserUncheckedUpdateWithoutCompaniesInput { @Field(() => WorkspaceMemberUncheckedUpdateOneWithoutUserNestedInput, { nullable: true, }) - WorkspaceMember?: WorkspaceMemberUncheckedUpdateOneWithoutUserNestedInput; + workspaceMember?: WorkspaceMemberUncheckedUpdateOneWithoutUserNestedInput; @Field(() => RefreshTokenUncheckedUpdateManyWithoutUserNestedInput, { nullable: true, }) - RefreshTokens?: RefreshTokenUncheckedUpdateManyWithoutUserNestedInput; + refreshTokens?: RefreshTokenUncheckedUpdateManyWithoutUserNestedInput; + + @Field(() => CommentUncheckedUpdateManyWithoutAuthorNestedInput, { + nullable: true, + }) + comments?: CommentUncheckedUpdateManyWithoutAuthorNestedInput; } diff --git a/server/src/api/@generated/user/user-unchecked-update-without-refresh-tokens.input.ts b/server/src/api/@generated/user/user-unchecked-update-without-refresh-tokens.input.ts index ffb863733..876fd46f4 100644 --- a/server/src/api/@generated/user/user-unchecked-update-without-refresh-tokens.input.ts +++ b/server/src/api/@generated/user/user-unchecked-update-without-refresh-tokens.input.ts @@ -8,6 +8,7 @@ import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-str import { GraphQLJSON } from 'graphql-type-json'; 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'; @InputType() export class UserUncheckedUpdateWithoutRefreshTokensInput { @@ -56,10 +57,15 @@ export class UserUncheckedUpdateWithoutRefreshTokensInput { @Field(() => WorkspaceMemberUncheckedUpdateOneWithoutUserNestedInput, { nullable: true, }) - WorkspaceMember?: WorkspaceMemberUncheckedUpdateOneWithoutUserNestedInput; + workspaceMember?: WorkspaceMemberUncheckedUpdateOneWithoutUserNestedInput; @Field(() => CompanyUncheckedUpdateManyWithoutAccountOwnerNestedInput, { nullable: true, }) companies?: CompanyUncheckedUpdateManyWithoutAccountOwnerNestedInput; + + @Field(() => CommentUncheckedUpdateManyWithoutAuthorNestedInput, { + nullable: true, + }) + comments?: CommentUncheckedUpdateManyWithoutAuthorNestedInput; } diff --git a/server/src/api/@generated/user/user-unchecked-update-without-workspace-member.input.ts b/server/src/api/@generated/user/user-unchecked-update-without-workspace-member.input.ts index 37241aea6..f535aa037 100644 --- a/server/src/api/@generated/user/user-unchecked-update-without-workspace-member.input.ts +++ b/server/src/api/@generated/user/user-unchecked-update-without-workspace-member.input.ts @@ -8,6 +8,7 @@ import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-str import { GraphQLJSON } from 'graphql-type-json'; 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'; @InputType() export class UserUncheckedUpdateWithoutWorkspaceMemberInput { @@ -61,5 +62,10 @@ export class UserUncheckedUpdateWithoutWorkspaceMemberInput { @Field(() => RefreshTokenUncheckedUpdateManyWithoutUserNestedInput, { nullable: true, }) - RefreshTokens?: RefreshTokenUncheckedUpdateManyWithoutUserNestedInput; + refreshTokens?: RefreshTokenUncheckedUpdateManyWithoutUserNestedInput; + + @Field(() => CommentUncheckedUpdateManyWithoutAuthorNestedInput, { + nullable: true, + }) + comments?: CommentUncheckedUpdateManyWithoutAuthorNestedInput; } diff --git a/server/src/api/@generated/user/user-unchecked-update.input.ts b/server/src/api/@generated/user/user-unchecked-update.input.ts index dd44dc43d..16ed47bb6 100644 --- a/server/src/api/@generated/user/user-unchecked-update.input.ts +++ b/server/src/api/@generated/user/user-unchecked-update.input.ts @@ -9,6 +9,7 @@ import { GraphQLJSON } from 'graphql-type-json'; 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'; +import { CommentUncheckedUpdateManyWithoutAuthorNestedInput } from '../comment/comment-unchecked-update-many-without-author-nested.input'; @InputType() export class UserUncheckedUpdateInput { @@ -57,7 +58,7 @@ export class UserUncheckedUpdateInput { @Field(() => WorkspaceMemberUncheckedUpdateOneWithoutUserNestedInput, { nullable: true, }) - WorkspaceMember?: WorkspaceMemberUncheckedUpdateOneWithoutUserNestedInput; + workspaceMember?: WorkspaceMemberUncheckedUpdateOneWithoutUserNestedInput; @Field(() => CompanyUncheckedUpdateManyWithoutAccountOwnerNestedInput, { nullable: true, @@ -67,5 +68,10 @@ export class UserUncheckedUpdateInput { @Field(() => RefreshTokenUncheckedUpdateManyWithoutUserNestedInput, { nullable: true, }) - RefreshTokens?: RefreshTokenUncheckedUpdateManyWithoutUserNestedInput; + refreshTokens?: RefreshTokenUncheckedUpdateManyWithoutUserNestedInput; + + @Field(() => CommentUncheckedUpdateManyWithoutAuthorNestedInput, { + nullable: true, + }) + comments?: CommentUncheckedUpdateManyWithoutAuthorNestedInput; } diff --git a/server/src/api/@generated/user/user-update-one-required-without-comments-nested.input.ts b/server/src/api/@generated/user/user-update-one-required-without-comments-nested.input.ts new file mode 100644 index 000000000..6114952ef --- /dev/null +++ b/server/src/api/@generated/user/user-update-one-required-without-comments-nested.input.ts @@ -0,0 +1,31 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { UserCreateWithoutCommentsInput } from './user-create-without-comments.input'; +import { Type } from 'class-transformer'; +import { UserCreateOrConnectWithoutCommentsInput } from './user-create-or-connect-without-comments.input'; +import { UserUpsertWithoutCommentsInput } from './user-upsert-without-comments.input'; +import { UserWhereUniqueInput } from './user-where-unique.input'; +import { UserUpdateWithoutCommentsInput } from './user-update-without-comments.input'; + +@InputType() +export class UserUpdateOneRequiredWithoutCommentsNestedInput { + @Field(() => UserCreateWithoutCommentsInput, { nullable: true }) + @Type(() => UserCreateWithoutCommentsInput) + create?: UserCreateWithoutCommentsInput; + + @Field(() => UserCreateOrConnectWithoutCommentsInput, { nullable: true }) + @Type(() => UserCreateOrConnectWithoutCommentsInput) + connectOrCreate?: UserCreateOrConnectWithoutCommentsInput; + + @Field(() => UserUpsertWithoutCommentsInput, { nullable: true }) + @Type(() => UserUpsertWithoutCommentsInput) + upsert?: UserUpsertWithoutCommentsInput; + + @Field(() => UserWhereUniqueInput, { nullable: true }) + @Type(() => UserWhereUniqueInput) + connect?: UserWhereUniqueInput; + + @Field(() => UserUpdateWithoutCommentsInput, { nullable: true }) + @Type(() => UserUpdateWithoutCommentsInput) + update?: UserUpdateWithoutCommentsInput; +} diff --git a/server/src/api/@generated/user/user-update-without-comments.input.ts b/server/src/api/@generated/user/user-update-without-comments.input.ts new file mode 100644 index 000000000..e122b6c83 --- /dev/null +++ b/server/src/api/@generated/user/user-update-without-comments.input.ts @@ -0,0 +1,69 @@ +import { Field } from '@nestjs/graphql'; +import { 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 { GraphQLJSON } from 'graphql-type-json'; +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'; + +@InputType() +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(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) + avatarUrl?: NullableStringFieldUpdateOperationsInput; + + @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) + locale?: StringFieldUpdateOperationsInput; + + @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) + phoneNumber?: NullableStringFieldUpdateOperationsInput; + + @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) + passwordHash?: NullableStringFieldUpdateOperationsInput; + + @Field(() => BoolFieldUpdateOperationsInput, { nullable: true }) + emailVerified?: BoolFieldUpdateOperationsInput; + + @Field(() => GraphQLJSON, { nullable: true }) + metadata?: any; + + @Field(() => WorkspaceMemberUpdateOneWithoutUserNestedInput, { + nullable: true, + }) + workspaceMember?: WorkspaceMemberUpdateOneWithoutUserNestedInput; + + @Field(() => CompanyUpdateManyWithoutAccountOwnerNestedInput, { + nullable: true, + }) + companies?: CompanyUpdateManyWithoutAccountOwnerNestedInput; + + @Field(() => RefreshTokenUpdateManyWithoutUserNestedInput, { nullable: true }) + refreshTokens?: RefreshTokenUpdateManyWithoutUserNestedInput; +} diff --git a/server/src/api/@generated/user/user-update-without-companies.input.ts b/server/src/api/@generated/user/user-update-without-companies.input.ts index cf4cd3a65..42506a4eb 100644 --- a/server/src/api/@generated/user/user-update-without-companies.input.ts +++ b/server/src/api/@generated/user/user-update-without-companies.input.ts @@ -8,6 +8,7 @@ import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-str import { GraphQLJSON } from 'graphql-type-json'; 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'; @InputType() export class UserUpdateWithoutCompaniesInput { @@ -56,8 +57,11 @@ export class UserUpdateWithoutCompaniesInput { @Field(() => WorkspaceMemberUpdateOneWithoutUserNestedInput, { nullable: true, }) - WorkspaceMember?: WorkspaceMemberUpdateOneWithoutUserNestedInput; + workspaceMember?: WorkspaceMemberUpdateOneWithoutUserNestedInput; @Field(() => RefreshTokenUpdateManyWithoutUserNestedInput, { nullable: true }) - RefreshTokens?: RefreshTokenUpdateManyWithoutUserNestedInput; + refreshTokens?: RefreshTokenUpdateManyWithoutUserNestedInput; + + @Field(() => CommentUpdateManyWithoutAuthorNestedInput, { nullable: true }) + comments?: CommentUpdateManyWithoutAuthorNestedInput; } diff --git a/server/src/api/@generated/user/user-update-without-refresh-tokens.input.ts b/server/src/api/@generated/user/user-update-without-refresh-tokens.input.ts index 0d05ad624..1cdd1df8e 100644 --- a/server/src/api/@generated/user/user-update-without-refresh-tokens.input.ts +++ b/server/src/api/@generated/user/user-update-without-refresh-tokens.input.ts @@ -8,6 +8,7 @@ import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-str import { GraphQLJSON } from 'graphql-type-json'; 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'; @InputType() export class UserUpdateWithoutRefreshTokensInput { @@ -56,10 +57,13 @@ export class UserUpdateWithoutRefreshTokensInput { @Field(() => WorkspaceMemberUpdateOneWithoutUserNestedInput, { nullable: true, }) - WorkspaceMember?: WorkspaceMemberUpdateOneWithoutUserNestedInput; + workspaceMember?: WorkspaceMemberUpdateOneWithoutUserNestedInput; @Field(() => CompanyUpdateManyWithoutAccountOwnerNestedInput, { nullable: true, }) companies?: CompanyUpdateManyWithoutAccountOwnerNestedInput; + + @Field(() => CommentUpdateManyWithoutAuthorNestedInput, { nullable: true }) + comments?: CommentUpdateManyWithoutAuthorNestedInput; } diff --git a/server/src/api/@generated/user/user-update-without-workspace-member.input.ts b/server/src/api/@generated/user/user-update-without-workspace-member.input.ts index 670b2210c..93f65ea3e 100644 --- a/server/src/api/@generated/user/user-update-without-workspace-member.input.ts +++ b/server/src/api/@generated/user/user-update-without-workspace-member.input.ts @@ -8,6 +8,7 @@ import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-str import { GraphQLJSON } from 'graphql-type-json'; 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'; @InputType() export class UserUpdateWithoutWorkspaceMemberInput { @@ -59,5 +60,8 @@ export class UserUpdateWithoutWorkspaceMemberInput { companies?: CompanyUpdateManyWithoutAccountOwnerNestedInput; @Field(() => RefreshTokenUpdateManyWithoutUserNestedInput, { nullable: true }) - RefreshTokens?: RefreshTokenUpdateManyWithoutUserNestedInput; + refreshTokens?: RefreshTokenUpdateManyWithoutUserNestedInput; + + @Field(() => CommentUpdateManyWithoutAuthorNestedInput, { nullable: true }) + comments?: CommentUpdateManyWithoutAuthorNestedInput; } diff --git a/server/src/api/@generated/user/user-update.input.ts b/server/src/api/@generated/user/user-update.input.ts index a4d23fea5..f280246b8 100644 --- a/server/src/api/@generated/user/user-update.input.ts +++ b/server/src/api/@generated/user/user-update.input.ts @@ -9,6 +9,7 @@ import { GraphQLJSON } from 'graphql-type-json'; 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'; +import { CommentUpdateManyWithoutAuthorNestedInput } from '../comment/comment-update-many-without-author-nested.input'; @InputType() export class UserUpdateInput { @@ -57,7 +58,7 @@ export class UserUpdateInput { @Field(() => WorkspaceMemberUpdateOneWithoutUserNestedInput, { nullable: true, }) - WorkspaceMember?: WorkspaceMemberUpdateOneWithoutUserNestedInput; + workspaceMember?: WorkspaceMemberUpdateOneWithoutUserNestedInput; @Field(() => CompanyUpdateManyWithoutAccountOwnerNestedInput, { nullable: true, @@ -65,5 +66,8 @@ export class UserUpdateInput { companies?: CompanyUpdateManyWithoutAccountOwnerNestedInput; @Field(() => RefreshTokenUpdateManyWithoutUserNestedInput, { nullable: true }) - RefreshTokens?: RefreshTokenUpdateManyWithoutUserNestedInput; + refreshTokens?: RefreshTokenUpdateManyWithoutUserNestedInput; + + @Field(() => CommentUpdateManyWithoutAuthorNestedInput, { nullable: true }) + comments?: CommentUpdateManyWithoutAuthorNestedInput; } diff --git a/server/src/api/@generated/user/user-upsert-without-comments.input.ts b/server/src/api/@generated/user/user-upsert-without-comments.input.ts new file mode 100644 index 000000000..dda79ed1b --- /dev/null +++ b/server/src/api/@generated/user/user-upsert-without-comments.input.ts @@ -0,0 +1,16 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { UserUpdateWithoutCommentsInput } from './user-update-without-comments.input'; +import { Type } from 'class-transformer'; +import { UserCreateWithoutCommentsInput } from './user-create-without-comments.input'; + +@InputType() +export class UserUpsertWithoutCommentsInput { + @Field(() => UserUpdateWithoutCommentsInput, { nullable: false }) + @Type(() => UserUpdateWithoutCommentsInput) + update!: UserUpdateWithoutCommentsInput; + + @Field(() => UserCreateWithoutCommentsInput, { nullable: false }) + @Type(() => UserCreateWithoutCommentsInput) + create!: UserCreateWithoutCommentsInput; +} diff --git a/server/src/api/@generated/user/user-where.input.ts b/server/src/api/@generated/user/user-where.input.ts index c23d732f1..459c1cbad 100644 --- a/server/src/api/@generated/user/user-where.input.ts +++ b/server/src/api/@generated/user/user-where.input.ts @@ -9,6 +9,7 @@ import { JsonNullableFilter } from '../prisma/json-nullable-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'; +import { CommentListRelationFilter } from '../comment/comment-list-relation-filter.input'; @InputType() export class UserWhereInput { @@ -64,11 +65,14 @@ export class UserWhereInput { metadata?: JsonNullableFilter; @Field(() => WorkspaceMemberRelationFilter, { nullable: true }) - WorkspaceMember?: WorkspaceMemberRelationFilter; + workspaceMember?: WorkspaceMemberRelationFilter; @Field(() => CompanyListRelationFilter, { nullable: true }) companies?: CompanyListRelationFilter; @Field(() => RefreshTokenListRelationFilter, { nullable: true }) - RefreshTokens?: RefreshTokenListRelationFilter; + refreshTokens?: RefreshTokenListRelationFilter; + + @Field(() => CommentListRelationFilter, { nullable: true }) + comments?: CommentListRelationFilter; } diff --git a/server/src/api/@generated/user/user.model.ts b/server/src/api/@generated/user/user.model.ts index 92bcda059..a19d5faf5 100644 --- a/server/src/api/@generated/user/user.model.ts +++ b/server/src/api/@generated/user/user.model.ts @@ -5,6 +5,7 @@ import { GraphQLJSON } from 'graphql-type-json'; import { WorkspaceMember } from '../workspace-member/workspace-member.model'; import { Company } from '../company/company.model'; import { RefreshToken } from '../refresh-token/refresh-token.model'; +import { Comment } from '../comment/comment.model'; import { UserCount } from './user-count.output'; @ObjectType() @@ -52,13 +53,16 @@ export class User { metadata!: any | null; @Field(() => WorkspaceMember, { nullable: true }) - WorkspaceMember?: WorkspaceMember | null; + workspaceMember?: WorkspaceMember | null; @Field(() => [Company], { nullable: true }) companies?: Array; @Field(() => [RefreshToken], { nullable: true }) - RefreshTokens?: Array; + refreshTokens?: Array; + + @Field(() => [Comment], { nullable: true }) + comments?: Array; @Field(() => UserCount, { nullable: false }) _count?: UserCount; diff --git a/server/src/api/@generated/workspace/workspace-count.output.ts b/server/src/api/@generated/workspace/workspace-count.output.ts index 3080082c1..b3b9d47be 100644 --- a/server/src/api/@generated/workspace/workspace-count.output.ts +++ b/server/src/api/@generated/workspace/workspace-count.output.ts @@ -5,11 +5,17 @@ import { Int } from '@nestjs/graphql'; @ObjectType() export class WorkspaceCount { @Field(() => Int, { nullable: false }) - WorkspaceMember?: number; + workspaceMember?: number; @Field(() => Int, { nullable: false }) companies?: number; @Field(() => Int, { nullable: false }) people?: number; + + @Field(() => Int, { nullable: false }) + commentThreads?: number; + + @Field(() => Int, { nullable: false }) + comments?: number; } diff --git a/server/src/api/@generated/workspace/workspace-create-nested-one-without-comment-threads.input.ts b/server/src/api/@generated/workspace/workspace-create-nested-one-without-comment-threads.input.ts new file mode 100644 index 000000000..d8eb9861e --- /dev/null +++ b/server/src/api/@generated/workspace/workspace-create-nested-one-without-comment-threads.input.ts @@ -0,0 +1,23 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { WorkspaceCreateWithoutCommentThreadsInput } from './workspace-create-without-comment-threads.input'; +import { Type } from 'class-transformer'; +import { WorkspaceCreateOrConnectWithoutCommentThreadsInput } from './workspace-create-or-connect-without-comment-threads.input'; +import { WorkspaceWhereUniqueInput } from './workspace-where-unique.input'; + +@InputType() +export class WorkspaceCreateNestedOneWithoutCommentThreadsInput { + @Field(() => WorkspaceCreateWithoutCommentThreadsInput, { nullable: true }) + @Type(() => WorkspaceCreateWithoutCommentThreadsInput) + create?: WorkspaceCreateWithoutCommentThreadsInput; + + @Field(() => WorkspaceCreateOrConnectWithoutCommentThreadsInput, { + nullable: true, + }) + @Type(() => WorkspaceCreateOrConnectWithoutCommentThreadsInput) + connectOrCreate?: WorkspaceCreateOrConnectWithoutCommentThreadsInput; + + @Field(() => WorkspaceWhereUniqueInput, { nullable: true }) + @Type(() => WorkspaceWhereUniqueInput) + connect?: WorkspaceWhereUniqueInput; +} diff --git a/server/src/api/@generated/workspace/workspace-create-nested-one-without-comments.input.ts b/server/src/api/@generated/workspace/workspace-create-nested-one-without-comments.input.ts new file mode 100644 index 000000000..8ab54cca8 --- /dev/null +++ b/server/src/api/@generated/workspace/workspace-create-nested-one-without-comments.input.ts @@ -0,0 +1,21 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { WorkspaceCreateWithoutCommentsInput } from './workspace-create-without-comments.input'; +import { Type } from 'class-transformer'; +import { WorkspaceCreateOrConnectWithoutCommentsInput } from './workspace-create-or-connect-without-comments.input'; +import { WorkspaceWhereUniqueInput } from './workspace-where-unique.input'; + +@InputType() +export class WorkspaceCreateNestedOneWithoutCommentsInput { + @Field(() => WorkspaceCreateWithoutCommentsInput, { nullable: true }) + @Type(() => WorkspaceCreateWithoutCommentsInput) + create?: WorkspaceCreateWithoutCommentsInput; + + @Field(() => WorkspaceCreateOrConnectWithoutCommentsInput, { nullable: true }) + @Type(() => WorkspaceCreateOrConnectWithoutCommentsInput) + connectOrCreate?: WorkspaceCreateOrConnectWithoutCommentsInput; + + @Field(() => WorkspaceWhereUniqueInput, { nullable: true }) + @Type(() => WorkspaceWhereUniqueInput) + connect?: WorkspaceWhereUniqueInput; +} diff --git a/server/src/api/@generated/workspace/workspace-create-or-connect-without-comment-threads.input.ts b/server/src/api/@generated/workspace/workspace-create-or-connect-without-comment-threads.input.ts new file mode 100644 index 000000000..5b4b63c1b --- /dev/null +++ b/server/src/api/@generated/workspace/workspace-create-or-connect-without-comment-threads.input.ts @@ -0,0 +1,16 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { WorkspaceWhereUniqueInput } from './workspace-where-unique.input'; +import { Type } from 'class-transformer'; +import { WorkspaceCreateWithoutCommentThreadsInput } from './workspace-create-without-comment-threads.input'; + +@InputType() +export class WorkspaceCreateOrConnectWithoutCommentThreadsInput { + @Field(() => WorkspaceWhereUniqueInput, { nullable: false }) + @Type(() => WorkspaceWhereUniqueInput) + where!: WorkspaceWhereUniqueInput; + + @Field(() => WorkspaceCreateWithoutCommentThreadsInput, { nullable: false }) + @Type(() => WorkspaceCreateWithoutCommentThreadsInput) + create!: WorkspaceCreateWithoutCommentThreadsInput; +} diff --git a/server/src/api/@generated/workspace/workspace-create-or-connect-without-comments.input.ts b/server/src/api/@generated/workspace/workspace-create-or-connect-without-comments.input.ts new file mode 100644 index 000000000..9e03e276e --- /dev/null +++ b/server/src/api/@generated/workspace/workspace-create-or-connect-without-comments.input.ts @@ -0,0 +1,16 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { WorkspaceWhereUniqueInput } from './workspace-where-unique.input'; +import { Type } from 'class-transformer'; +import { WorkspaceCreateWithoutCommentsInput } from './workspace-create-without-comments.input'; + +@InputType() +export class WorkspaceCreateOrConnectWithoutCommentsInput { + @Field(() => WorkspaceWhereUniqueInput, { nullable: false }) + @Type(() => WorkspaceWhereUniqueInput) + where!: WorkspaceWhereUniqueInput; + + @Field(() => WorkspaceCreateWithoutCommentsInput, { nullable: false }) + @Type(() => WorkspaceCreateWithoutCommentsInput) + create!: WorkspaceCreateWithoutCommentsInput; +} diff --git a/server/src/api/@generated/workspace/workspace-create-without-comment-threads.input.ts b/server/src/api/@generated/workspace/workspace-create-without-comment-threads.input.ts new file mode 100644 index 000000000..317967d1e --- /dev/null +++ b/server/src/api/@generated/workspace/workspace-create-without-comment-threads.input.ts @@ -0,0 +1,44 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } 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'; +import { CommentCreateNestedManyWithoutWorkspaceInput } from '../comment/comment-create-nested-many-without-workspace.input'; + +@InputType() +export class WorkspaceCreateWithoutCommentThreadsInput { + @Field(() => String, { nullable: false }) + 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 }) + domainName!: string; + + @Field(() => String, { nullable: false }) + displayName!: string; + + @Field(() => String, { nullable: true }) + logo?: string; + + @Field(() => WorkspaceMemberCreateNestedManyWithoutWorkspaceInput, { + nullable: true, + }) + workspaceMember?: WorkspaceMemberCreateNestedManyWithoutWorkspaceInput; + + @Field(() => CompanyCreateNestedManyWithoutWorkspaceInput, { nullable: true }) + companies?: CompanyCreateNestedManyWithoutWorkspaceInput; + + @Field(() => PersonCreateNestedManyWithoutWorkspaceInput, { nullable: true }) + people?: PersonCreateNestedManyWithoutWorkspaceInput; + + @Field(() => CommentCreateNestedManyWithoutWorkspaceInput, { nullable: true }) + comments?: CommentCreateNestedManyWithoutWorkspaceInput; +} diff --git a/server/src/api/@generated/workspace/workspace-create-without-comments.input.ts b/server/src/api/@generated/workspace/workspace-create-without-comments.input.ts new file mode 100644 index 000000000..273dc80a9 --- /dev/null +++ b/server/src/api/@generated/workspace/workspace-create-without-comments.input.ts @@ -0,0 +1,46 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } 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'; +import { CommentThreadCreateNestedManyWithoutWorkspaceInput } from '../comment-thread/comment-thread-create-nested-many-without-workspace.input'; + +@InputType() +export class WorkspaceCreateWithoutCommentsInput { + @Field(() => String, { nullable: false }) + 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 }) + domainName!: string; + + @Field(() => String, { nullable: false }) + displayName!: string; + + @Field(() => String, { nullable: true }) + logo?: string; + + @Field(() => WorkspaceMemberCreateNestedManyWithoutWorkspaceInput, { + nullable: true, + }) + workspaceMember?: WorkspaceMemberCreateNestedManyWithoutWorkspaceInput; + + @Field(() => CompanyCreateNestedManyWithoutWorkspaceInput, { nullable: true }) + companies?: CompanyCreateNestedManyWithoutWorkspaceInput; + + @Field(() => PersonCreateNestedManyWithoutWorkspaceInput, { nullable: true }) + people?: PersonCreateNestedManyWithoutWorkspaceInput; + + @Field(() => CommentThreadCreateNestedManyWithoutWorkspaceInput, { + nullable: true, + }) + commentThreads?: CommentThreadCreateNestedManyWithoutWorkspaceInput; +} diff --git a/server/src/api/@generated/workspace/workspace-create-without-companies.input.ts b/server/src/api/@generated/workspace/workspace-create-without-companies.input.ts index 075161c70..fc5ee7c91 100644 --- a/server/src/api/@generated/workspace/workspace-create-without-companies.input.ts +++ b/server/src/api/@generated/workspace/workspace-create-without-companies.input.ts @@ -2,6 +2,8 @@ import { Field } from '@nestjs/graphql'; import { InputType } 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'; +import { CommentCreateNestedManyWithoutWorkspaceInput } from '../comment/comment-create-nested-many-without-workspace.input'; @InputType() export class WorkspaceCreateWithoutCompaniesInput { @@ -29,8 +31,16 @@ export class WorkspaceCreateWithoutCompaniesInput { @Field(() => WorkspaceMemberCreateNestedManyWithoutWorkspaceInput, { nullable: true, }) - WorkspaceMember?: WorkspaceMemberCreateNestedManyWithoutWorkspaceInput; + workspaceMember?: WorkspaceMemberCreateNestedManyWithoutWorkspaceInput; @Field(() => PersonCreateNestedManyWithoutWorkspaceInput, { nullable: true }) people?: PersonCreateNestedManyWithoutWorkspaceInput; + + @Field(() => CommentThreadCreateNestedManyWithoutWorkspaceInput, { + nullable: true, + }) + commentThreads?: CommentThreadCreateNestedManyWithoutWorkspaceInput; + + @Field(() => CommentCreateNestedManyWithoutWorkspaceInput, { nullable: true }) + comments?: CommentCreateNestedManyWithoutWorkspaceInput; } diff --git a/server/src/api/@generated/workspace/workspace-create-without-people.input.ts b/server/src/api/@generated/workspace/workspace-create-without-people.input.ts index a2268f8b7..f38f64c25 100644 --- a/server/src/api/@generated/workspace/workspace-create-without-people.input.ts +++ b/server/src/api/@generated/workspace/workspace-create-without-people.input.ts @@ -2,6 +2,8 @@ import { Field } from '@nestjs/graphql'; import { InputType } 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'; +import { CommentCreateNestedManyWithoutWorkspaceInput } from '../comment/comment-create-nested-many-without-workspace.input'; @InputType() export class WorkspaceCreateWithoutPeopleInput { @@ -29,8 +31,16 @@ export class WorkspaceCreateWithoutPeopleInput { @Field(() => WorkspaceMemberCreateNestedManyWithoutWorkspaceInput, { nullable: true, }) - WorkspaceMember?: WorkspaceMemberCreateNestedManyWithoutWorkspaceInput; + workspaceMember?: WorkspaceMemberCreateNestedManyWithoutWorkspaceInput; @Field(() => CompanyCreateNestedManyWithoutWorkspaceInput, { nullable: true }) companies?: CompanyCreateNestedManyWithoutWorkspaceInput; + + @Field(() => CommentThreadCreateNestedManyWithoutWorkspaceInput, { + nullable: true, + }) + commentThreads?: CommentThreadCreateNestedManyWithoutWorkspaceInput; + + @Field(() => CommentCreateNestedManyWithoutWorkspaceInput, { nullable: true }) + comments?: CommentCreateNestedManyWithoutWorkspaceInput; } diff --git a/server/src/api/@generated/workspace/workspace-create-without-workspace-member.input.ts b/server/src/api/@generated/workspace/workspace-create-without-workspace-member.input.ts index be5c1194c..9d8a2576c 100644 --- a/server/src/api/@generated/workspace/workspace-create-without-workspace-member.input.ts +++ b/server/src/api/@generated/workspace/workspace-create-without-workspace-member.input.ts @@ -2,6 +2,8 @@ import { Field } from '@nestjs/graphql'; import { InputType } 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'; +import { CommentCreateNestedManyWithoutWorkspaceInput } from '../comment/comment-create-nested-many-without-workspace.input'; @InputType() export class WorkspaceCreateWithoutWorkspaceMemberInput { @@ -31,4 +33,12 @@ export class WorkspaceCreateWithoutWorkspaceMemberInput { @Field(() => PersonCreateNestedManyWithoutWorkspaceInput, { nullable: true }) people?: PersonCreateNestedManyWithoutWorkspaceInput; + + @Field(() => CommentThreadCreateNestedManyWithoutWorkspaceInput, { + nullable: true, + }) + commentThreads?: CommentThreadCreateNestedManyWithoutWorkspaceInput; + + @Field(() => CommentCreateNestedManyWithoutWorkspaceInput, { nullable: true }) + comments?: CommentCreateNestedManyWithoutWorkspaceInput; } diff --git a/server/src/api/@generated/workspace/workspace-create.input.ts b/server/src/api/@generated/workspace/workspace-create.input.ts index 426d15cf0..9f95fa7bf 100644 --- a/server/src/api/@generated/workspace/workspace-create.input.ts +++ b/server/src/api/@generated/workspace/workspace-create.input.ts @@ -3,6 +3,8 @@ import { InputType } 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'; +import { CommentThreadCreateNestedManyWithoutWorkspaceInput } from '../comment-thread/comment-thread-create-nested-many-without-workspace.input'; +import { CommentCreateNestedManyWithoutWorkspaceInput } from '../comment/comment-create-nested-many-without-workspace.input'; @InputType() export class WorkspaceCreateInput { @@ -30,11 +32,19 @@ export class WorkspaceCreateInput { @Field(() => WorkspaceMemberCreateNestedManyWithoutWorkspaceInput, { nullable: true, }) - WorkspaceMember?: WorkspaceMemberCreateNestedManyWithoutWorkspaceInput; + workspaceMember?: WorkspaceMemberCreateNestedManyWithoutWorkspaceInput; @Field(() => CompanyCreateNestedManyWithoutWorkspaceInput, { nullable: true }) companies?: CompanyCreateNestedManyWithoutWorkspaceInput; @Field(() => PersonCreateNestedManyWithoutWorkspaceInput, { nullable: true }) people?: PersonCreateNestedManyWithoutWorkspaceInput; + + @Field(() => CommentThreadCreateNestedManyWithoutWorkspaceInput, { + nullable: true, + }) + commentThreads?: CommentThreadCreateNestedManyWithoutWorkspaceInput; + + @Field(() => CommentCreateNestedManyWithoutWorkspaceInput, { nullable: true }) + comments?: CommentCreateNestedManyWithoutWorkspaceInput; } diff --git a/server/src/api/@generated/workspace/workspace-order-by-with-relation.input.ts b/server/src/api/@generated/workspace/workspace-order-by-with-relation.input.ts index dfd0b1dff..f49c85a5e 100644 --- a/server/src/api/@generated/workspace/workspace-order-by-with-relation.input.ts +++ b/server/src/api/@generated/workspace/workspace-order-by-with-relation.input.ts @@ -4,6 +4,8 @@ import { SortOrder } from '../prisma/sort-order.enum'; 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'; +import { CommentThreadOrderByRelationAggregateInput } from '../comment-thread/comment-thread-order-by-relation-aggregate.input'; +import { CommentOrderByRelationAggregateInput } from '../comment/comment-order-by-relation-aggregate.input'; @InputType() export class WorkspaceOrderByWithRelationInput { @@ -29,11 +31,17 @@ export class WorkspaceOrderByWithRelationInput { logo?: keyof typeof SortOrder; @Field(() => WorkspaceMemberOrderByRelationAggregateInput, { nullable: true }) - WorkspaceMember?: WorkspaceMemberOrderByRelationAggregateInput; + workspaceMember?: WorkspaceMemberOrderByRelationAggregateInput; @Field(() => CompanyOrderByRelationAggregateInput, { nullable: true }) companies?: CompanyOrderByRelationAggregateInput; @Field(() => PersonOrderByRelationAggregateInput, { nullable: true }) people?: PersonOrderByRelationAggregateInput; + + @Field(() => CommentThreadOrderByRelationAggregateInput, { nullable: true }) + commentThreads?: CommentThreadOrderByRelationAggregateInput; + + @Field(() => CommentOrderByRelationAggregateInput, { nullable: true }) + comments?: CommentOrderByRelationAggregateInput; } diff --git a/server/src/api/@generated/workspace/workspace-unchecked-create-without-comment-threads.input.ts b/server/src/api/@generated/workspace/workspace-unchecked-create-without-comment-threads.input.ts new file mode 100644 index 000000000..c28e1a480 --- /dev/null +++ b/server/src/api/@generated/workspace/workspace-unchecked-create-without-comment-threads.input.ts @@ -0,0 +1,50 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } 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'; +import { CommentUncheckedCreateNestedManyWithoutWorkspaceInput } from '../comment/comment-unchecked-create-nested-many-without-workspace.input'; + +@InputType() +export class WorkspaceUncheckedCreateWithoutCommentThreadsInput { + @Field(() => String, { nullable: false }) + 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 }) + domainName!: string; + + @Field(() => String, { nullable: false }) + displayName!: string; + + @Field(() => String, { nullable: true }) + logo?: string; + + @Field(() => WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput, { + nullable: true, + }) + workspaceMember?: WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput; + + @Field(() => CompanyUncheckedCreateNestedManyWithoutWorkspaceInput, { + nullable: true, + }) + companies?: CompanyUncheckedCreateNestedManyWithoutWorkspaceInput; + + @Field(() => PersonUncheckedCreateNestedManyWithoutWorkspaceInput, { + nullable: true, + }) + people?: PersonUncheckedCreateNestedManyWithoutWorkspaceInput; + + @Field(() => CommentUncheckedCreateNestedManyWithoutWorkspaceInput, { + nullable: true, + }) + comments?: CommentUncheckedCreateNestedManyWithoutWorkspaceInput; +} diff --git a/server/src/api/@generated/workspace/workspace-unchecked-create-without-comments.input.ts b/server/src/api/@generated/workspace/workspace-unchecked-create-without-comments.input.ts new file mode 100644 index 000000000..35179d926 --- /dev/null +++ b/server/src/api/@generated/workspace/workspace-unchecked-create-without-comments.input.ts @@ -0,0 +1,50 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } 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'; +import { CommentThreadUncheckedCreateNestedManyWithoutWorkspaceInput } from '../comment-thread/comment-thread-unchecked-create-nested-many-without-workspace.input'; + +@InputType() +export class WorkspaceUncheckedCreateWithoutCommentsInput { + @Field(() => String, { nullable: false }) + 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 }) + domainName!: string; + + @Field(() => String, { nullable: false }) + displayName!: string; + + @Field(() => String, { nullable: true }) + logo?: string; + + @Field(() => WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput, { + nullable: true, + }) + workspaceMember?: WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput; + + @Field(() => CompanyUncheckedCreateNestedManyWithoutWorkspaceInput, { + nullable: true, + }) + companies?: CompanyUncheckedCreateNestedManyWithoutWorkspaceInput; + + @Field(() => PersonUncheckedCreateNestedManyWithoutWorkspaceInput, { + nullable: true, + }) + people?: PersonUncheckedCreateNestedManyWithoutWorkspaceInput; + + @Field(() => CommentThreadUncheckedCreateNestedManyWithoutWorkspaceInput, { + nullable: true, + }) + commentThreads?: CommentThreadUncheckedCreateNestedManyWithoutWorkspaceInput; +} diff --git a/server/src/api/@generated/workspace/workspace-unchecked-create-without-companies.input.ts b/server/src/api/@generated/workspace/workspace-unchecked-create-without-companies.input.ts index f9104a2a7..221136553 100644 --- a/server/src/api/@generated/workspace/workspace-unchecked-create-without-companies.input.ts +++ b/server/src/api/@generated/workspace/workspace-unchecked-create-without-companies.input.ts @@ -2,6 +2,8 @@ import { Field } from '@nestjs/graphql'; import { InputType } 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'; +import { CommentUncheckedCreateNestedManyWithoutWorkspaceInput } from '../comment/comment-unchecked-create-nested-many-without-workspace.input'; @InputType() export class WorkspaceUncheckedCreateWithoutCompaniesInput { @@ -29,10 +31,20 @@ export class WorkspaceUncheckedCreateWithoutCompaniesInput { @Field(() => WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput, { nullable: true, }) - WorkspaceMember?: WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput; + workspaceMember?: WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput; @Field(() => PersonUncheckedCreateNestedManyWithoutWorkspaceInput, { nullable: true, }) people?: PersonUncheckedCreateNestedManyWithoutWorkspaceInput; + + @Field(() => CommentThreadUncheckedCreateNestedManyWithoutWorkspaceInput, { + nullable: true, + }) + commentThreads?: CommentThreadUncheckedCreateNestedManyWithoutWorkspaceInput; + + @Field(() => CommentUncheckedCreateNestedManyWithoutWorkspaceInput, { + nullable: true, + }) + comments?: CommentUncheckedCreateNestedManyWithoutWorkspaceInput; } diff --git a/server/src/api/@generated/workspace/workspace-unchecked-create-without-people.input.ts b/server/src/api/@generated/workspace/workspace-unchecked-create-without-people.input.ts index 76b6cad7c..45b35f827 100644 --- a/server/src/api/@generated/workspace/workspace-unchecked-create-without-people.input.ts +++ b/server/src/api/@generated/workspace/workspace-unchecked-create-without-people.input.ts @@ -2,6 +2,8 @@ import { Field } from '@nestjs/graphql'; import { InputType } 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'; +import { CommentUncheckedCreateNestedManyWithoutWorkspaceInput } from '../comment/comment-unchecked-create-nested-many-without-workspace.input'; @InputType() export class WorkspaceUncheckedCreateWithoutPeopleInput { @@ -29,10 +31,20 @@ export class WorkspaceUncheckedCreateWithoutPeopleInput { @Field(() => WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput, { nullable: true, }) - WorkspaceMember?: WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput; + workspaceMember?: WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput; @Field(() => CompanyUncheckedCreateNestedManyWithoutWorkspaceInput, { nullable: true, }) companies?: CompanyUncheckedCreateNestedManyWithoutWorkspaceInput; + + @Field(() => CommentThreadUncheckedCreateNestedManyWithoutWorkspaceInput, { + nullable: true, + }) + commentThreads?: CommentThreadUncheckedCreateNestedManyWithoutWorkspaceInput; + + @Field(() => CommentUncheckedCreateNestedManyWithoutWorkspaceInput, { + nullable: true, + }) + comments?: CommentUncheckedCreateNestedManyWithoutWorkspaceInput; } diff --git a/server/src/api/@generated/workspace/workspace-unchecked-create-without-workspace-member.input.ts b/server/src/api/@generated/workspace/workspace-unchecked-create-without-workspace-member.input.ts index 80e8bc7aa..bfde88e5e 100644 --- a/server/src/api/@generated/workspace/workspace-unchecked-create-without-workspace-member.input.ts +++ b/server/src/api/@generated/workspace/workspace-unchecked-create-without-workspace-member.input.ts @@ -2,6 +2,8 @@ import { Field } from '@nestjs/graphql'; import { InputType } 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'; +import { CommentUncheckedCreateNestedManyWithoutWorkspaceInput } from '../comment/comment-unchecked-create-nested-many-without-workspace.input'; @InputType() export class WorkspaceUncheckedCreateWithoutWorkspaceMemberInput { @@ -35,4 +37,14 @@ export class WorkspaceUncheckedCreateWithoutWorkspaceMemberInput { nullable: true, }) people?: PersonUncheckedCreateNestedManyWithoutWorkspaceInput; + + @Field(() => CommentThreadUncheckedCreateNestedManyWithoutWorkspaceInput, { + nullable: true, + }) + commentThreads?: CommentThreadUncheckedCreateNestedManyWithoutWorkspaceInput; + + @Field(() => CommentUncheckedCreateNestedManyWithoutWorkspaceInput, { + nullable: true, + }) + comments?: CommentUncheckedCreateNestedManyWithoutWorkspaceInput; } diff --git a/server/src/api/@generated/workspace/workspace-unchecked-create.input.ts b/server/src/api/@generated/workspace/workspace-unchecked-create.input.ts index c684881b6..b67fc5ca4 100644 --- a/server/src/api/@generated/workspace/workspace-unchecked-create.input.ts +++ b/server/src/api/@generated/workspace/workspace-unchecked-create.input.ts @@ -3,6 +3,8 @@ import { InputType } 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'; +import { CommentThreadUncheckedCreateNestedManyWithoutWorkspaceInput } from '../comment-thread/comment-thread-unchecked-create-nested-many-without-workspace.input'; +import { CommentUncheckedCreateNestedManyWithoutWorkspaceInput } from '../comment/comment-unchecked-create-nested-many-without-workspace.input'; @InputType() export class WorkspaceUncheckedCreateInput { @@ -30,7 +32,7 @@ export class WorkspaceUncheckedCreateInput { @Field(() => WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput, { nullable: true, }) - WorkspaceMember?: WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput; + workspaceMember?: WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput; @Field(() => CompanyUncheckedCreateNestedManyWithoutWorkspaceInput, { nullable: true, @@ -41,4 +43,14 @@ export class WorkspaceUncheckedCreateInput { nullable: true, }) people?: PersonUncheckedCreateNestedManyWithoutWorkspaceInput; + + @Field(() => CommentThreadUncheckedCreateNestedManyWithoutWorkspaceInput, { + nullable: true, + }) + commentThreads?: CommentThreadUncheckedCreateNestedManyWithoutWorkspaceInput; + + @Field(() => CommentUncheckedCreateNestedManyWithoutWorkspaceInput, { + nullable: true, + }) + comments?: CommentUncheckedCreateNestedManyWithoutWorkspaceInput; } diff --git a/server/src/api/@generated/workspace/workspace-unchecked-update-without-comment-threads.input.ts b/server/src/api/@generated/workspace/workspace-unchecked-update-without-comment-threads.input.ts new file mode 100644 index 000000000..40eb010b0 --- /dev/null +++ b/server/src/api/@generated/workspace/workspace-unchecked-update-without-comment-threads.input.ts @@ -0,0 +1,54 @@ +import { Field } from '@nestjs/graphql'; +import { 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 { 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'; +import { CommentUncheckedUpdateManyWithoutWorkspaceNestedInput } from '../comment/comment-unchecked-update-many-without-workspace-nested.input'; + +@InputType() +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; + + @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) + displayName?: StringFieldUpdateOperationsInput; + + @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) + logo?: NullableStringFieldUpdateOperationsInput; + + @Field(() => WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput, { + nullable: true, + }) + workspaceMember?: WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput; + + @Field(() => CompanyUncheckedUpdateManyWithoutWorkspaceNestedInput, { + nullable: true, + }) + companies?: CompanyUncheckedUpdateManyWithoutWorkspaceNestedInput; + + @Field(() => PersonUncheckedUpdateManyWithoutWorkspaceNestedInput, { + nullable: true, + }) + people?: PersonUncheckedUpdateManyWithoutWorkspaceNestedInput; + + @Field(() => CommentUncheckedUpdateManyWithoutWorkspaceNestedInput, { + nullable: true, + }) + comments?: CommentUncheckedUpdateManyWithoutWorkspaceNestedInput; +} diff --git a/server/src/api/@generated/workspace/workspace-unchecked-update-without-comments.input.ts b/server/src/api/@generated/workspace/workspace-unchecked-update-without-comments.input.ts new file mode 100644 index 000000000..50d54cdee --- /dev/null +++ b/server/src/api/@generated/workspace/workspace-unchecked-update-without-comments.input.ts @@ -0,0 +1,54 @@ +import { Field } from '@nestjs/graphql'; +import { 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 { 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'; +import { CommentThreadUncheckedUpdateManyWithoutWorkspaceNestedInput } from '../comment-thread/comment-thread-unchecked-update-many-without-workspace-nested.input'; + +@InputType() +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; + + @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) + displayName?: StringFieldUpdateOperationsInput; + + @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) + logo?: NullableStringFieldUpdateOperationsInput; + + @Field(() => WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput, { + nullable: true, + }) + workspaceMember?: WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput; + + @Field(() => CompanyUncheckedUpdateManyWithoutWorkspaceNestedInput, { + nullable: true, + }) + companies?: CompanyUncheckedUpdateManyWithoutWorkspaceNestedInput; + + @Field(() => PersonUncheckedUpdateManyWithoutWorkspaceNestedInput, { + nullable: true, + }) + people?: PersonUncheckedUpdateManyWithoutWorkspaceNestedInput; + + @Field(() => CommentThreadUncheckedUpdateManyWithoutWorkspaceNestedInput, { + nullable: true, + }) + commentThreads?: CommentThreadUncheckedUpdateManyWithoutWorkspaceNestedInput; +} diff --git a/server/src/api/@generated/workspace/workspace-unchecked-update-without-companies.input.ts b/server/src/api/@generated/workspace/workspace-unchecked-update-without-companies.input.ts index 2ba122ae9..a1cfd3b12 100644 --- a/server/src/api/@generated/workspace/workspace-unchecked-update-without-companies.input.ts +++ b/server/src/api/@generated/workspace/workspace-unchecked-update-without-companies.input.ts @@ -6,6 +6,8 @@ import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-d import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-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'; +import { CommentUncheckedUpdateManyWithoutWorkspaceNestedInput } from '../comment/comment-unchecked-update-many-without-workspace-nested.input'; @InputType() export class WorkspaceUncheckedUpdateWithoutCompaniesInput { @@ -33,10 +35,20 @@ export class WorkspaceUncheckedUpdateWithoutCompaniesInput { @Field(() => WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput, { nullable: true, }) - WorkspaceMember?: WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput; + workspaceMember?: WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput; @Field(() => PersonUncheckedUpdateManyWithoutWorkspaceNestedInput, { nullable: true, }) people?: PersonUncheckedUpdateManyWithoutWorkspaceNestedInput; + + @Field(() => CommentThreadUncheckedUpdateManyWithoutWorkspaceNestedInput, { + nullable: true, + }) + commentThreads?: CommentThreadUncheckedUpdateManyWithoutWorkspaceNestedInput; + + @Field(() => CommentUncheckedUpdateManyWithoutWorkspaceNestedInput, { + nullable: true, + }) + comments?: CommentUncheckedUpdateManyWithoutWorkspaceNestedInput; } diff --git a/server/src/api/@generated/workspace/workspace-unchecked-update-without-people.input.ts b/server/src/api/@generated/workspace/workspace-unchecked-update-without-people.input.ts index 9d1c76a5e..0691c303e 100644 --- a/server/src/api/@generated/workspace/workspace-unchecked-update-without-people.input.ts +++ b/server/src/api/@generated/workspace/workspace-unchecked-update-without-people.input.ts @@ -6,6 +6,8 @@ import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-d import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-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'; +import { CommentUncheckedUpdateManyWithoutWorkspaceNestedInput } from '../comment/comment-unchecked-update-many-without-workspace-nested.input'; @InputType() export class WorkspaceUncheckedUpdateWithoutPeopleInput { @@ -33,10 +35,20 @@ export class WorkspaceUncheckedUpdateWithoutPeopleInput { @Field(() => WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput, { nullable: true, }) - WorkspaceMember?: WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput; + workspaceMember?: WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput; @Field(() => CompanyUncheckedUpdateManyWithoutWorkspaceNestedInput, { nullable: true, }) companies?: CompanyUncheckedUpdateManyWithoutWorkspaceNestedInput; + + @Field(() => CommentThreadUncheckedUpdateManyWithoutWorkspaceNestedInput, { + nullable: true, + }) + commentThreads?: CommentThreadUncheckedUpdateManyWithoutWorkspaceNestedInput; + + @Field(() => CommentUncheckedUpdateManyWithoutWorkspaceNestedInput, { + nullable: true, + }) + comments?: CommentUncheckedUpdateManyWithoutWorkspaceNestedInput; } diff --git a/server/src/api/@generated/workspace/workspace-unchecked-update-without-workspace-member.input.ts b/server/src/api/@generated/workspace/workspace-unchecked-update-without-workspace-member.input.ts index 1de5318f1..d032ba7f0 100644 --- a/server/src/api/@generated/workspace/workspace-unchecked-update-without-workspace-member.input.ts +++ b/server/src/api/@generated/workspace/workspace-unchecked-update-without-workspace-member.input.ts @@ -6,6 +6,8 @@ import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-d import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-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'; +import { CommentUncheckedUpdateManyWithoutWorkspaceNestedInput } from '../comment/comment-unchecked-update-many-without-workspace-nested.input'; @InputType() export class WorkspaceUncheckedUpdateWithoutWorkspaceMemberInput { @@ -39,4 +41,14 @@ export class WorkspaceUncheckedUpdateWithoutWorkspaceMemberInput { nullable: true, }) people?: PersonUncheckedUpdateManyWithoutWorkspaceNestedInput; + + @Field(() => CommentThreadUncheckedUpdateManyWithoutWorkspaceNestedInput, { + nullable: true, + }) + commentThreads?: CommentThreadUncheckedUpdateManyWithoutWorkspaceNestedInput; + + @Field(() => CommentUncheckedUpdateManyWithoutWorkspaceNestedInput, { + nullable: true, + }) + comments?: CommentUncheckedUpdateManyWithoutWorkspaceNestedInput; } diff --git a/server/src/api/@generated/workspace/workspace-unchecked-update.input.ts b/server/src/api/@generated/workspace/workspace-unchecked-update.input.ts index 51b545bdc..86facdc21 100644 --- a/server/src/api/@generated/workspace/workspace-unchecked-update.input.ts +++ b/server/src/api/@generated/workspace/workspace-unchecked-update.input.ts @@ -7,6 +7,8 @@ import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-str 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'; +import { CommentThreadUncheckedUpdateManyWithoutWorkspaceNestedInput } from '../comment-thread/comment-thread-unchecked-update-many-without-workspace-nested.input'; +import { CommentUncheckedUpdateManyWithoutWorkspaceNestedInput } from '../comment/comment-unchecked-update-many-without-workspace-nested.input'; @InputType() export class WorkspaceUncheckedUpdateInput { @@ -34,7 +36,7 @@ export class WorkspaceUncheckedUpdateInput { @Field(() => WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput, { nullable: true, }) - WorkspaceMember?: WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput; + workspaceMember?: WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput; @Field(() => CompanyUncheckedUpdateManyWithoutWorkspaceNestedInput, { nullable: true, @@ -45,4 +47,14 @@ export class WorkspaceUncheckedUpdateInput { nullable: true, }) people?: PersonUncheckedUpdateManyWithoutWorkspaceNestedInput; + + @Field(() => CommentThreadUncheckedUpdateManyWithoutWorkspaceNestedInput, { + nullable: true, + }) + commentThreads?: CommentThreadUncheckedUpdateManyWithoutWorkspaceNestedInput; + + @Field(() => CommentUncheckedUpdateManyWithoutWorkspaceNestedInput, { + nullable: true, + }) + comments?: CommentUncheckedUpdateManyWithoutWorkspaceNestedInput; } diff --git a/server/src/api/@generated/workspace/workspace-update-one-required-without-comment-threads-nested.input.ts b/server/src/api/@generated/workspace/workspace-update-one-required-without-comment-threads-nested.input.ts new file mode 100644 index 000000000..261757eef --- /dev/null +++ b/server/src/api/@generated/workspace/workspace-update-one-required-without-comment-threads-nested.input.ts @@ -0,0 +1,33 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { WorkspaceCreateWithoutCommentThreadsInput } from './workspace-create-without-comment-threads.input'; +import { Type } from 'class-transformer'; +import { WorkspaceCreateOrConnectWithoutCommentThreadsInput } from './workspace-create-or-connect-without-comment-threads.input'; +import { WorkspaceUpsertWithoutCommentThreadsInput } from './workspace-upsert-without-comment-threads.input'; +import { WorkspaceWhereUniqueInput } from './workspace-where-unique.input'; +import { WorkspaceUpdateWithoutCommentThreadsInput } from './workspace-update-without-comment-threads.input'; + +@InputType() +export class WorkspaceUpdateOneRequiredWithoutCommentThreadsNestedInput { + @Field(() => WorkspaceCreateWithoutCommentThreadsInput, { nullable: true }) + @Type(() => WorkspaceCreateWithoutCommentThreadsInput) + create?: WorkspaceCreateWithoutCommentThreadsInput; + + @Field(() => WorkspaceCreateOrConnectWithoutCommentThreadsInput, { + nullable: true, + }) + @Type(() => WorkspaceCreateOrConnectWithoutCommentThreadsInput) + connectOrCreate?: WorkspaceCreateOrConnectWithoutCommentThreadsInput; + + @Field(() => WorkspaceUpsertWithoutCommentThreadsInput, { nullable: true }) + @Type(() => WorkspaceUpsertWithoutCommentThreadsInput) + upsert?: WorkspaceUpsertWithoutCommentThreadsInput; + + @Field(() => WorkspaceWhereUniqueInput, { nullable: true }) + @Type(() => WorkspaceWhereUniqueInput) + connect?: WorkspaceWhereUniqueInput; + + @Field(() => WorkspaceUpdateWithoutCommentThreadsInput, { nullable: true }) + @Type(() => WorkspaceUpdateWithoutCommentThreadsInput) + update?: WorkspaceUpdateWithoutCommentThreadsInput; +} diff --git a/server/src/api/@generated/workspace/workspace-update-one-required-without-comments-nested.input.ts b/server/src/api/@generated/workspace/workspace-update-one-required-without-comments-nested.input.ts new file mode 100644 index 000000000..d0caf6a1c --- /dev/null +++ b/server/src/api/@generated/workspace/workspace-update-one-required-without-comments-nested.input.ts @@ -0,0 +1,31 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { WorkspaceCreateWithoutCommentsInput } from './workspace-create-without-comments.input'; +import { Type } from 'class-transformer'; +import { WorkspaceCreateOrConnectWithoutCommentsInput } from './workspace-create-or-connect-without-comments.input'; +import { WorkspaceUpsertWithoutCommentsInput } from './workspace-upsert-without-comments.input'; +import { WorkspaceWhereUniqueInput } from './workspace-where-unique.input'; +import { WorkspaceUpdateWithoutCommentsInput } from './workspace-update-without-comments.input'; + +@InputType() +export class WorkspaceUpdateOneRequiredWithoutCommentsNestedInput { + @Field(() => WorkspaceCreateWithoutCommentsInput, { nullable: true }) + @Type(() => WorkspaceCreateWithoutCommentsInput) + create?: WorkspaceCreateWithoutCommentsInput; + + @Field(() => WorkspaceCreateOrConnectWithoutCommentsInput, { nullable: true }) + @Type(() => WorkspaceCreateOrConnectWithoutCommentsInput) + connectOrCreate?: WorkspaceCreateOrConnectWithoutCommentsInput; + + @Field(() => WorkspaceUpsertWithoutCommentsInput, { nullable: true }) + @Type(() => WorkspaceUpsertWithoutCommentsInput) + upsert?: WorkspaceUpsertWithoutCommentsInput; + + @Field(() => WorkspaceWhereUniqueInput, { nullable: true }) + @Type(() => WorkspaceWhereUniqueInput) + connect?: WorkspaceWhereUniqueInput; + + @Field(() => WorkspaceUpdateWithoutCommentsInput, { nullable: true }) + @Type(() => WorkspaceUpdateWithoutCommentsInput) + update?: WorkspaceUpdateWithoutCommentsInput; +} diff --git a/server/src/api/@generated/workspace/workspace-update-without-comment-threads.input.ts b/server/src/api/@generated/workspace/workspace-update-without-comment-threads.input.ts new file mode 100644 index 000000000..ef8e490a4 --- /dev/null +++ b/server/src/api/@generated/workspace/workspace-update-without-comment-threads.input.ts @@ -0,0 +1,48 @@ +import { Field } from '@nestjs/graphql'; +import { 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 { 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'; +import { CommentUpdateManyWithoutWorkspaceNestedInput } from '../comment/comment-update-many-without-workspace-nested.input'; + +@InputType() +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; + + @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) + displayName?: StringFieldUpdateOperationsInput; + + @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) + logo?: NullableStringFieldUpdateOperationsInput; + + @Field(() => WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput, { + nullable: true, + }) + workspaceMember?: WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput; + + @Field(() => CompanyUpdateManyWithoutWorkspaceNestedInput, { nullable: true }) + companies?: CompanyUpdateManyWithoutWorkspaceNestedInput; + + @Field(() => PersonUpdateManyWithoutWorkspaceNestedInput, { nullable: true }) + people?: PersonUpdateManyWithoutWorkspaceNestedInput; + + @Field(() => CommentUpdateManyWithoutWorkspaceNestedInput, { nullable: true }) + comments?: CommentUpdateManyWithoutWorkspaceNestedInput; +} diff --git a/server/src/api/@generated/workspace/workspace-update-without-comments.input.ts b/server/src/api/@generated/workspace/workspace-update-without-comments.input.ts new file mode 100644 index 000000000..ce8ad1b55 --- /dev/null +++ b/server/src/api/@generated/workspace/workspace-update-without-comments.input.ts @@ -0,0 +1,50 @@ +import { Field } from '@nestjs/graphql'; +import { 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 { 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'; +import { CommentThreadUpdateManyWithoutWorkspaceNestedInput } from '../comment-thread/comment-thread-update-many-without-workspace-nested.input'; + +@InputType() +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; + + @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) + displayName?: StringFieldUpdateOperationsInput; + + @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) + logo?: NullableStringFieldUpdateOperationsInput; + + @Field(() => WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput, { + nullable: true, + }) + workspaceMember?: WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput; + + @Field(() => CompanyUpdateManyWithoutWorkspaceNestedInput, { nullable: true }) + companies?: CompanyUpdateManyWithoutWorkspaceNestedInput; + + @Field(() => PersonUpdateManyWithoutWorkspaceNestedInput, { nullable: true }) + people?: PersonUpdateManyWithoutWorkspaceNestedInput; + + @Field(() => CommentThreadUpdateManyWithoutWorkspaceNestedInput, { + nullable: true, + }) + commentThreads?: CommentThreadUpdateManyWithoutWorkspaceNestedInput; +} diff --git a/server/src/api/@generated/workspace/workspace-update-without-companies.input.ts b/server/src/api/@generated/workspace/workspace-update-without-companies.input.ts index 8f01ed49d..3c3bbd59e 100644 --- a/server/src/api/@generated/workspace/workspace-update-without-companies.input.ts +++ b/server/src/api/@generated/workspace/workspace-update-without-companies.input.ts @@ -6,6 +6,8 @@ import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-d import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-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'; +import { CommentUpdateManyWithoutWorkspaceNestedInput } from '../comment/comment-update-many-without-workspace-nested.input'; @InputType() export class WorkspaceUpdateWithoutCompaniesInput { @@ -33,8 +35,16 @@ export class WorkspaceUpdateWithoutCompaniesInput { @Field(() => WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput, { nullable: true, }) - WorkspaceMember?: WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput; + workspaceMember?: WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput; @Field(() => PersonUpdateManyWithoutWorkspaceNestedInput, { nullable: true }) people?: PersonUpdateManyWithoutWorkspaceNestedInput; + + @Field(() => CommentThreadUpdateManyWithoutWorkspaceNestedInput, { + nullable: true, + }) + commentThreads?: CommentThreadUpdateManyWithoutWorkspaceNestedInput; + + @Field(() => CommentUpdateManyWithoutWorkspaceNestedInput, { nullable: true }) + comments?: CommentUpdateManyWithoutWorkspaceNestedInput; } diff --git a/server/src/api/@generated/workspace/workspace-update-without-people.input.ts b/server/src/api/@generated/workspace/workspace-update-without-people.input.ts index 98eaf7627..1ea5dacf7 100644 --- a/server/src/api/@generated/workspace/workspace-update-without-people.input.ts +++ b/server/src/api/@generated/workspace/workspace-update-without-people.input.ts @@ -6,6 +6,8 @@ import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-d import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-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'; +import { CommentUpdateManyWithoutWorkspaceNestedInput } from '../comment/comment-update-many-without-workspace-nested.input'; @InputType() export class WorkspaceUpdateWithoutPeopleInput { @@ -33,8 +35,16 @@ export class WorkspaceUpdateWithoutPeopleInput { @Field(() => WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput, { nullable: true, }) - WorkspaceMember?: WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput; + workspaceMember?: WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput; @Field(() => CompanyUpdateManyWithoutWorkspaceNestedInput, { nullable: true }) companies?: CompanyUpdateManyWithoutWorkspaceNestedInput; + + @Field(() => CommentThreadUpdateManyWithoutWorkspaceNestedInput, { + nullable: true, + }) + commentThreads?: CommentThreadUpdateManyWithoutWorkspaceNestedInput; + + @Field(() => CommentUpdateManyWithoutWorkspaceNestedInput, { nullable: true }) + comments?: CommentUpdateManyWithoutWorkspaceNestedInput; } diff --git a/server/src/api/@generated/workspace/workspace-update-without-workspace-member.input.ts b/server/src/api/@generated/workspace/workspace-update-without-workspace-member.input.ts index 6121476c1..f91a7bce7 100644 --- a/server/src/api/@generated/workspace/workspace-update-without-workspace-member.input.ts +++ b/server/src/api/@generated/workspace/workspace-update-without-workspace-member.input.ts @@ -6,6 +6,8 @@ import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-d import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-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'; +import { CommentUpdateManyWithoutWorkspaceNestedInput } from '../comment/comment-update-many-without-workspace-nested.input'; @InputType() export class WorkspaceUpdateWithoutWorkspaceMemberInput { @@ -35,4 +37,12 @@ export class WorkspaceUpdateWithoutWorkspaceMemberInput { @Field(() => PersonUpdateManyWithoutWorkspaceNestedInput, { nullable: true }) people?: PersonUpdateManyWithoutWorkspaceNestedInput; + + @Field(() => CommentThreadUpdateManyWithoutWorkspaceNestedInput, { + nullable: true, + }) + commentThreads?: CommentThreadUpdateManyWithoutWorkspaceNestedInput; + + @Field(() => CommentUpdateManyWithoutWorkspaceNestedInput, { nullable: true }) + comments?: CommentUpdateManyWithoutWorkspaceNestedInput; } diff --git a/server/src/api/@generated/workspace/workspace-update.input.ts b/server/src/api/@generated/workspace/workspace-update.input.ts index 9b0460eba..f9b8c9191 100644 --- a/server/src/api/@generated/workspace/workspace-update.input.ts +++ b/server/src/api/@generated/workspace/workspace-update.input.ts @@ -7,6 +7,8 @@ import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-str 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'; +import { CommentThreadUpdateManyWithoutWorkspaceNestedInput } from '../comment-thread/comment-thread-update-many-without-workspace-nested.input'; +import { CommentUpdateManyWithoutWorkspaceNestedInput } from '../comment/comment-update-many-without-workspace-nested.input'; @InputType() export class WorkspaceUpdateInput { @@ -34,11 +36,19 @@ export class WorkspaceUpdateInput { @Field(() => WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput, { nullable: true, }) - WorkspaceMember?: WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput; + workspaceMember?: WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput; @Field(() => CompanyUpdateManyWithoutWorkspaceNestedInput, { nullable: true }) companies?: CompanyUpdateManyWithoutWorkspaceNestedInput; @Field(() => PersonUpdateManyWithoutWorkspaceNestedInput, { nullable: true }) people?: PersonUpdateManyWithoutWorkspaceNestedInput; + + @Field(() => CommentThreadUpdateManyWithoutWorkspaceNestedInput, { + nullable: true, + }) + commentThreads?: CommentThreadUpdateManyWithoutWorkspaceNestedInput; + + @Field(() => CommentUpdateManyWithoutWorkspaceNestedInput, { nullable: true }) + comments?: CommentUpdateManyWithoutWorkspaceNestedInput; } diff --git a/server/src/api/@generated/workspace/workspace-upsert-without-comment-threads.input.ts b/server/src/api/@generated/workspace/workspace-upsert-without-comment-threads.input.ts new file mode 100644 index 000000000..87fc18d08 --- /dev/null +++ b/server/src/api/@generated/workspace/workspace-upsert-without-comment-threads.input.ts @@ -0,0 +1,16 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { WorkspaceUpdateWithoutCommentThreadsInput } from './workspace-update-without-comment-threads.input'; +import { Type } from 'class-transformer'; +import { WorkspaceCreateWithoutCommentThreadsInput } from './workspace-create-without-comment-threads.input'; + +@InputType() +export class WorkspaceUpsertWithoutCommentThreadsInput { + @Field(() => WorkspaceUpdateWithoutCommentThreadsInput, { nullable: false }) + @Type(() => WorkspaceUpdateWithoutCommentThreadsInput) + update!: WorkspaceUpdateWithoutCommentThreadsInput; + + @Field(() => WorkspaceCreateWithoutCommentThreadsInput, { nullable: false }) + @Type(() => WorkspaceCreateWithoutCommentThreadsInput) + create!: WorkspaceCreateWithoutCommentThreadsInput; +} diff --git a/server/src/api/@generated/workspace/workspace-upsert-without-comments.input.ts b/server/src/api/@generated/workspace/workspace-upsert-without-comments.input.ts new file mode 100644 index 000000000..ff7c31f19 --- /dev/null +++ b/server/src/api/@generated/workspace/workspace-upsert-without-comments.input.ts @@ -0,0 +1,16 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { WorkspaceUpdateWithoutCommentsInput } from './workspace-update-without-comments.input'; +import { Type } from 'class-transformer'; +import { WorkspaceCreateWithoutCommentsInput } from './workspace-create-without-comments.input'; + +@InputType() +export class WorkspaceUpsertWithoutCommentsInput { + @Field(() => WorkspaceUpdateWithoutCommentsInput, { nullable: false }) + @Type(() => WorkspaceUpdateWithoutCommentsInput) + update!: WorkspaceUpdateWithoutCommentsInput; + + @Field(() => WorkspaceCreateWithoutCommentsInput, { nullable: false }) + @Type(() => WorkspaceCreateWithoutCommentsInput) + create!: WorkspaceCreateWithoutCommentsInput; +} diff --git a/server/src/api/@generated/workspace/workspace-where.input.ts b/server/src/api/@generated/workspace/workspace-where.input.ts index 6bed2ed33..bdf36575a 100644 --- a/server/src/api/@generated/workspace/workspace-where.input.ts +++ b/server/src/api/@generated/workspace/workspace-where.input.ts @@ -7,6 +7,8 @@ import { StringNullableFilter } from '../prisma/string-nullable-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'; +import { CommentThreadListRelationFilter } from '../comment-thread/comment-thread-list-relation-filter.input'; +import { CommentListRelationFilter } from '../comment/comment-list-relation-filter.input'; @InputType() export class WorkspaceWhereInput { @@ -41,11 +43,17 @@ export class WorkspaceWhereInput { logo?: StringNullableFilter; @Field(() => WorkspaceMemberListRelationFilter, { nullable: true }) - WorkspaceMember?: WorkspaceMemberListRelationFilter; + workspaceMember?: WorkspaceMemberListRelationFilter; @Field(() => CompanyListRelationFilter, { nullable: true }) companies?: CompanyListRelationFilter; @Field(() => PersonListRelationFilter, { nullable: true }) people?: PersonListRelationFilter; + + @Field(() => CommentThreadListRelationFilter, { nullable: true }) + commentThreads?: CommentThreadListRelationFilter; + + @Field(() => CommentListRelationFilter, { nullable: true }) + comments?: CommentListRelationFilter; } diff --git a/server/src/api/@generated/workspace/workspace.model.ts b/server/src/api/@generated/workspace/workspace.model.ts index 45332bb7d..214f02f4e 100644 --- a/server/src/api/@generated/workspace/workspace.model.ts +++ b/server/src/api/@generated/workspace/workspace.model.ts @@ -4,6 +4,8 @@ import { ID } from '@nestjs/graphql'; import { WorkspaceMember } from '../workspace-member/workspace-member.model'; import { Company } from '../company/company.model'; import { Person } from '../person/person.model'; +import { CommentThread } from '../comment-thread/comment-thread.model'; +import { Comment } from '../comment/comment.model'; import { WorkspaceCount } from './workspace-count.output'; @ObjectType({}) @@ -30,7 +32,7 @@ export class Workspace { logo!: string | null; @Field(() => [WorkspaceMember], { nullable: true }) - WorkspaceMember?: Array; + workspaceMember?: Array; @Field(() => [Company], { nullable: true }) companies?: Array; @@ -38,6 +40,12 @@ export class Workspace { @Field(() => [Person], { nullable: true }) people?: Array; + @Field(() => [CommentThread], { nullable: true }) + commentThreads?: Array; + + @Field(() => [Comment], { nullable: true }) + comments?: Array; + @Field(() => WorkspaceCount, { nullable: false }) _count?: WorkspaceCount; } diff --git a/server/src/api/api.module.ts b/server/src/api/api.module.ts index 069a657cd..6a7894593 100644 --- a/server/src/api/api.module.ts +++ b/server/src/api/api.module.ts @@ -4,6 +4,8 @@ import { ApolloDriver, ApolloDriverConfig } from '@nestjs/apollo'; import { CompanyResolver } from './resolvers/company.resolver'; import { UserResolver } from './resolvers/user.resolver'; import { PersonResolver } from './resolvers/person.resolver'; +import { CommentResolver } from './resolvers/comment.resolver'; +import { CommentThreadResolver } from './resolvers/comment-thread.resolver'; import { PersonRelationsResolver } from './resolvers/relations/person-relations.resolver'; import { UserRelationsResolver } from './resolvers/relations/user-relations.resolver'; @@ -13,6 +15,7 @@ import { AuthModule } from 'src/auth/auth.module'; import { CompanyRelationsResolver } from './resolvers/relations/company-relations.resolver'; import { PrismaModule } from 'src/database/prisma.module'; import { ArgsService } from './resolvers/services/args.service'; +import { CommentThreadRelationsResolver } from './resolvers/relations/comment-thread-relations.resolver'; @Module({ imports: [ @@ -31,11 +34,14 @@ import { ArgsService } from './resolvers/services/args.service'; CompanyResolver, PersonResolver, UserResolver, + CommentResolver, + CommentThreadResolver, CompanyRelationsResolver, PersonRelationsResolver, UserRelationsResolver, WorkspaceMemberRelationsResolver, + CommentThreadRelationsResolver, ], }) export class ApiModule {} diff --git a/server/src/api/resolvers/comment-thread.resolver.ts b/server/src/api/resolvers/comment-thread.resolver.ts new file mode 100644 index 000000000..26b2ba30c --- /dev/null +++ b/server/src/api/resolvers/comment-thread.resolver.ts @@ -0,0 +1,38 @@ +import { Resolver, Args, Mutation } from '@nestjs/graphql'; +import { UseGuards } from '@nestjs/common'; +import { JwtAuthGuard } from 'src/auth/guards/jwt.auth.guard'; +import { PrismaService } from 'src/database/prisma.service'; +import { Workspace } from '../@generated/workspace/workspace.model'; +import { AuthWorkspace } from './decorators/auth-workspace.decorator'; +import { CommentThread } from '../@generated/comment-thread/comment-thread.model'; +import { CreateOneCommentThreadArgs } from '../@generated/comment-thread/create-one-comment-thread.args'; +import { CreateOneCommentThreadGuard } from './guards/create-one-comment-thread.guard'; + +@UseGuards(JwtAuthGuard) +@Resolver(() => CommentThread) +export class CommentThreadResolver { + constructor(private readonly prismaService: PrismaService) {} + + @UseGuards(CreateOneCommentThreadGuard) + @Mutation(() => CommentThread, { + nullable: false, + }) + async createOneCommentThread( + @Args() args: CreateOneCommentThreadArgs, + @AuthWorkspace() workspace: Workspace, + ): Promise { + const newCommentData = args.data.comments?.createMany?.data + ? args.data.comments?.createMany?.data?.map((comment) => ({ + ...comment, + ...{ workspaceId: workspace.id }, + })) + : []; + return this.prismaService.commentThread.create({ + data: { + ...args.data, + ...{ comments: { createMany: { data: newCommentData } } }, + ...{ workspace: { connect: { id: workspace.id } } }, + }, + }); + } +} diff --git a/server/src/api/resolvers/comment.resolver.ts b/server/src/api/resolvers/comment.resolver.ts new file mode 100644 index 000000000..c16047f5f --- /dev/null +++ b/server/src/api/resolvers/comment.resolver.ts @@ -0,0 +1,31 @@ +import { Resolver, Args, Mutation } from '@nestjs/graphql'; +import { UseGuards } from '@nestjs/common'; +import { JwtAuthGuard } from 'src/auth/guards/jwt.auth.guard'; +import { PrismaService } from 'src/database/prisma.service'; +import { Workspace } from '../@generated/workspace/workspace.model'; +import { AuthWorkspace } from './decorators/auth-workspace.decorator'; +import { CreateOneCommentArgs } from '../@generated/comment/create-one-comment.args'; +import { Comment } from '../@generated/comment/comment.model'; +import { CreateOneCommentGuard } from './guards/create-one-comment.guard'; + +@UseGuards(JwtAuthGuard) +@Resolver(() => Comment) +export class CommentResolver { + constructor(private readonly prismaService: PrismaService) {} + + @UseGuards(CreateOneCommentGuard) + @Mutation(() => Comment, { + nullable: false, + }) + async createOneComment( + @Args() args: CreateOneCommentArgs, + @AuthWorkspace() workspace: Workspace, + ): Promise { + return this.prismaService.comment.create({ + data: { + ...args.data, + ...{ workspace: { connect: { id: workspace.id } } }, + }, + }); + } +} diff --git a/server/src/api/resolvers/guards/create-one-comment-thread.guard.ts b/server/src/api/resolvers/guards/create-one-comment-thread.guard.ts new file mode 100644 index 000000000..f080e7fb8 --- /dev/null +++ b/server/src/api/resolvers/guards/create-one-comment-thread.guard.ts @@ -0,0 +1,104 @@ +import { + CanActivate, + ExecutionContext, + HttpException, + HttpStatus, + Injectable, +} from '@nestjs/common'; +import { GqlExecutionContext } from '@nestjs/graphql'; +import { PrismaService } from 'src/database/prisma.service'; + +@Injectable() +export class CreateOneCommentThreadGuard implements CanActivate { + constructor(private prismaService: PrismaService) {} + + async canActivate(context: ExecutionContext): Promise { + const gqlContext = GqlExecutionContext.create(context); + const request = gqlContext.getContext().req; + const args = gqlContext.getArgs(); + + const targets = args.data?.commentThreadTargets?.createMany?.data; + const comments = args.data?.comments?.createMany?.data; + const workspaceId = await request.workspace; + + if (!targets || targets.length === 0) { + throw new HttpException( + { reason: 'Missing commentThreadTargets' }, + HttpStatus.BAD_REQUEST, + ); + } + + await targets.map(async (target) => { + if (!target.commentableId || !target.commentableType) { + throw new HttpException( + { + reason: + 'Missing commentThreadTarget.commentableId or commentThreadTarget.commentableType', + }, + HttpStatus.BAD_REQUEST, + ); + } + + if (!['Person', 'Company'].includes(target.commentableType)) { + throw new HttpException( + { reason: 'Invalid commentThreadTarget.commentableType' }, + HttpStatus.BAD_REQUEST, + ); + } + + const targetEntity = await this.prismaService[ + target.commentableType + ].findUnique({ + where: { id: target.commentableId }, + }); + + if (targetEntity.workspaceId !== workspaceId) { + throw new HttpException( + { reason: 'CommentThreadTarget not found' }, + HttpStatus.NOT_FOUND, + ); + } + }); + + if (!comments) { + return true; + } + + await comments.map(async (comment) => { + if (!comment.authorId) { + throw new HttpException( + { reason: 'Missing comment.authorId' }, + HttpStatus.BAD_REQUEST, + ); + } + + const author = await this.prismaService.user.findUnique({ + where: { id: comment.authorId }, + }); + + if (!author) { + throw new HttpException( + { reason: 'Comment.authorId not found' }, + HttpStatus.NOT_FOUND, + ); + } + + const userWorkspaceMember = + await this.prismaService.workspaceMember.findFirst({ + where: { userId: author.id }, + }); + + if ( + !userWorkspaceMember || + userWorkspaceMember.workspaceId !== workspaceId + ) { + throw new HttpException( + { reason: 'Comment.authorId not found' }, + HttpStatus.NOT_FOUND, + ); + } + }); + + return true; + } +} diff --git a/server/src/api/resolvers/guards/create-one-comment.guard.ts b/server/src/api/resolvers/guards/create-one-comment.guard.ts new file mode 100644 index 000000000..52fffc4a3 --- /dev/null +++ b/server/src/api/resolvers/guards/create-one-comment.guard.ts @@ -0,0 +1,71 @@ +import { + CanActivate, + ExecutionContext, + HttpException, + HttpStatus, + Injectable, +} from '@nestjs/common'; +import { GqlExecutionContext } from '@nestjs/graphql'; +import { PrismaService } from 'src/database/prisma.service'; + +@Injectable() +export class CreateOneCommentGuard implements CanActivate { + constructor(private prismaService: PrismaService) {} + + async canActivate(context: ExecutionContext): Promise { + const gqlContext = GqlExecutionContext.create(context); + const request = gqlContext.getContext().req; + const args = gqlContext.getArgs(); + + const authorId = args.data?.author?.connect?.id; + const commentThreadId = args.data?.commentThread?.connect?.id; + + if (!authorId || !commentThreadId) { + throw new HttpException( + { reason: 'Missing author or commentThread' }, + HttpStatus.BAD_REQUEST, + ); + } + + const author = await this.prismaService.user.findUnique({ + where: { id: authorId }, + }); + + const commentThread = await this.prismaService.commentThread.findUnique({ + where: { id: commentThreadId }, + }); + + if (!author || !commentThread) { + throw new HttpException( + { reason: 'Author or commentThread not found' }, + HttpStatus.NOT_FOUND, + ); + } + + const userWorkspaceMember = + await this.prismaService.workspaceMember.findFirst({ + where: { userId: author.id }, + }); + + if (!userWorkspaceMember) { + throw new HttpException( + { reason: 'Author or commentThread not found' }, + HttpStatus.NOT_FOUND, + ); + } + + const workspace = await request.workspace; + + if ( + userWorkspaceMember.workspaceId !== workspace.id || + commentThread.workspaceId !== workspace.id + ) { + throw new HttpException( + { reason: 'Author or commentThread not found' }, + HttpStatus.NOT_FOUND, + ); + } + + return true; + } +} diff --git a/server/src/api/resolvers/relations/comment-thread-relations.resolver.ts b/server/src/api/resolvers/relations/comment-thread-relations.resolver.ts new file mode 100644 index 000000000..d66bfb09f --- /dev/null +++ b/server/src/api/resolvers/relations/comment-thread-relations.resolver.ts @@ -0,0 +1,22 @@ +import * as TypeGraphQL from '@nestjs/graphql'; +import { CommentThread } from 'src/api/@generated/comment-thread/comment-thread.model'; +import { Comment } from 'src/api/@generated/comment/comment.model'; +import { PrismaService } from 'src/database/prisma.service'; + +@TypeGraphQL.Resolver(() => CommentThread) +export class CommentThreadRelationsResolver { + constructor(private readonly prismaService: PrismaService) {} + + @TypeGraphQL.ResolveField(() => [Comment], { + nullable: false, + }) + async comments( + @TypeGraphQL.Root() commentThread: CommentThread, + ): Promise { + return this.prismaService.comment.findMany({ + where: { + commentThreadId: commentThread.id, + }, + }); + } +} diff --git a/server/src/api/resolvers/relations/company-relations.resolver.ts b/server/src/api/resolvers/relations/company-relations.resolver.ts index 46ee910cd..dccc34d02 100644 --- a/server/src/api/resolvers/relations/company-relations.resolver.ts +++ b/server/src/api/resolvers/relations/company-relations.resolver.ts @@ -1,4 +1,5 @@ import * as TypeGraphQL from '@nestjs/graphql'; +import { CommentThread } from 'src/api/@generated/comment-thread/comment-thread.model'; import { Company } from 'src/api/@generated/company/company.model'; import { User } from 'src/api/@generated/user/user.model'; import { Workspace } from 'src/api/@generated/workspace/workspace.model'; @@ -35,4 +36,22 @@ export class CompanyRelationsResolver { }) .workspace({}); } + + @TypeGraphQL.ResolveField(() => [CommentThread], { + nullable: false, + }) + async commentThreads( + @TypeGraphQL.Root() company: Company, + ): Promise { + return this.prismaService.commentThread.findMany({ + where: { + commentThreadTargets: { + some: { + commentableId: company.id, + commentableType: 'Company', + }, + }, + }, + }); + } } diff --git a/server/src/api/resolvers/relations/person-relations.resolver.ts b/server/src/api/resolvers/relations/person-relations.resolver.ts index b18a50765..411f9491e 100644 --- a/server/src/api/resolvers/relations/person-relations.resolver.ts +++ b/server/src/api/resolvers/relations/person-relations.resolver.ts @@ -1,4 +1,5 @@ import * as TypeGraphQL from '@nestjs/graphql'; +import { CommentThread } from 'src/api/@generated/comment-thread/comment-thread.model'; import { Company } from 'src/api/@generated/company/company.model'; import { Person } from 'src/api/@generated/person/person.model'; import { Workspace } from 'src/api/@generated/workspace/workspace.model'; @@ -33,4 +34,22 @@ export class PersonRelationsResolver { }) .workspace({}); } + + @TypeGraphQL.ResolveField(() => [CommentThread], { + nullable: false, + }) + async commentThreads( + @TypeGraphQL.Root() person: Person, + ): Promise { + return await this.prismaService.commentThread.findMany({ + where: { + commentThreadTargets: { + some: { + commentableId: person.id, + commentableType: 'Person', + }, + }, + }, + }); + } } diff --git a/server/src/api/resolvers/relations/user-relations.resolver.ts b/server/src/api/resolvers/relations/user-relations.resolver.ts index 35b669988..26859212b 100644 --- a/server/src/api/resolvers/relations/user-relations.resolver.ts +++ b/server/src/api/resolvers/relations/user-relations.resolver.ts @@ -15,7 +15,7 @@ export class UserRelationsResolver { @TypeGraphQL.ResolveField(() => WorkspaceMember, { nullable: true, }) - async WorkspaceMember( + async workspaceMember( @TypeGraphQL.Parent() user: User, ): Promise { return await this.prismaService.user @@ -24,7 +24,7 @@ export class UserRelationsResolver { id: user.id, }, }) - .WorkspaceMember({}); + .workspaceMember({}); } @TypeGraphQL.ResolveField(() => [Company], { @@ -49,7 +49,7 @@ export class UserRelationsResolver { @TypeGraphQL.ResolveField(() => [RefreshToken], { nullable: false, }) - async RefreshTokens( + async refreshTokens( @TypeGraphQL.Parent() user: User, @TypeGraphQL.Info() info: GraphQLResolveInfo, @TypeGraphQL.Args() args: FindManyRefreshTokenArgs, @@ -60,7 +60,7 @@ export class UserRelationsResolver { id: user.id, }, }) - .RefreshTokens({ + .refreshTokens({ ...args, }); } diff --git a/server/src/auth/services/auth.service.ts b/server/src/auth/services/auth.service.ts index d0374fab9..a232385d3 100644 --- a/server/src/auth/services/auth.service.ts +++ b/server/src/auth/services/auth.service.ts @@ -98,7 +98,7 @@ export class AuthService { } const workspace = await this.workspaceRepository.findFirst({ - where: { WorkspaceMember: { every: { userId: user.id } } }, + where: { workspaceMember: { some: { userId: user.id } } }, }); if (!workspace) { diff --git a/server/src/database/migrations/20230531093843_create_comments/migration.sql b/server/src/database/migrations/20230531093843_create_comments/migration.sql new file mode 100644 index 000000000..6c6fd0a3c --- /dev/null +++ b/server/src/database/migrations/20230531093843_create_comments/migration.sql @@ -0,0 +1,55 @@ +-- CreateEnum +CREATE TYPE "CommentableType" AS ENUM ('Person', 'Company'); + +-- CreateTable +CREATE TABLE "comment_threads" ( + "id" TEXT NOT NULL, + "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "updatedAt" TIMESTAMP(3) NOT NULL, + "deletedAt" TIMESTAMP(3), + "workspaceId" TEXT NOT NULL, + + CONSTRAINT "comment_threads_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "comments" ( + "id" TEXT NOT NULL, + "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "updatedAt" TIMESTAMP(3) NOT NULL, + "deletedAt" TIMESTAMP(3), + "body" TEXT NOT NULL, + "authorId" TEXT NOT NULL, + "commentThreadId" TEXT NOT NULL, + "workspaceId" TEXT NOT NULL, + + CONSTRAINT "comments_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "comment_thread_targets" ( + "id" TEXT NOT NULL, + "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "updatedAt" TIMESTAMP(3) NOT NULL, + "deletedAt" TIMESTAMP(3), + "commentThreadId" TEXT NOT NULL, + "commentableType" "CommentableType" NOT NULL, + "commentableId" TEXT NOT NULL, + + CONSTRAINT "comment_thread_targets_pkey" PRIMARY KEY ("id") +); + +-- AddForeignKey +ALTER TABLE "comment_threads" ADD CONSTRAINT "comment_threads_workspaceId_fkey" FOREIGN KEY ("workspaceId") REFERENCES "workspaces"("id") ON DELETE RESTRICT ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "comments" ADD CONSTRAINT "comments_authorId_fkey" FOREIGN KEY ("authorId") REFERENCES "users"("id") ON DELETE RESTRICT ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "comments" ADD CONSTRAINT "comments_commentThreadId_fkey" FOREIGN KEY ("commentThreadId") REFERENCES "comment_threads"("id") ON DELETE RESTRICT ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "comments" ADD CONSTRAINT "comments_workspaceId_fkey" FOREIGN KEY ("workspaceId") REFERENCES "workspaces"("id") ON DELETE RESTRICT ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "comment_thread_targets" ADD CONSTRAINT "comment_thread_targets_commentThreadId_fkey" FOREIGN KEY ("commentThreadId") REFERENCES "comment_threads"("id") ON DELETE RESTRICT ON UPDATE CASCADE; diff --git a/server/src/database/schema.prisma b/server/src/database/schema.prisma index 10af19c21..cfbb1e520 100644 --- a/server/src/database/schema.prisma +++ b/server/src/database/schema.prisma @@ -11,6 +11,30 @@ datasource db { generator nestgraphql { provider = "node node_modules/prisma-nestjs-graphql" output = "../../src/api/@generated" + + decorate_1_type = "*CommentThreadTargetCreateNestedManyWithoutCommentThreadInput" + decorate_1_field = "!(createMany)" + decorate_1_name = "HideField" + decorate_1_from = "@nestjs/graphql" + decorate_1_arguments = "[]" + + decorate_2_type = "*CommentCreateNestedManyWithoutCommentThreadInput" + decorate_2_field = "!(createMany)" + decorate_2_name = "HideField" + decorate_2_from = "@nestjs/graphql" + decorate_2_arguments = "[]" + + decorate_3_type = "*UserCreateNestedOneWithoutCommentsInput" + decorate_3_field = "!(connect)" + decorate_3_name = "HideField" + decorate_3_from = "@nestjs/graphql" + decorate_3_arguments = "[]" + + decorate_4_type = "*CommentThreadCreateNestedOneWithoutCommentsInput" + decorate_4_field = "!(connect)" + decorate_4_name = "HideField" + decorate_4_from = "@nestjs/graphql" + decorate_4_arguments = "[]" } model User { @@ -28,9 +52,10 @@ model User { passwordHash String? emailVerified Boolean @default(false) metadata Json? - WorkspaceMember WorkspaceMember? + workspaceMember WorkspaceMember? companies Company[] - RefreshTokens RefreshToken[] + refreshTokens RefreshToken[] + comments Comment[] @@map("users") } @@ -44,9 +69,11 @@ model Workspace { domainName String @unique displayName String logo String? - WorkspaceMember WorkspaceMember[] + workspaceMember WorkspaceMember[] companies Company[] people Person[] + commentThreads CommentThread[] + comments Comment[] @@map("workspaces") } @@ -108,7 +135,6 @@ model Person { @@map("people") } -/// @TypeGraphQL.omit(input: true) model RefreshToken { id String @id createdAt DateTime @default(now()) @@ -120,3 +146,55 @@ model RefreshToken { @@map("refresh_tokens") } + +model CommentThread { + id String @id + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt + deletedAt DateTime? + commentThreadTargets CommentThreadTarget[] + comments Comment[] + /// @TypeGraphQL.omit(input: true) + workspaceId String + /// @TypeGraphQL.omit(input: true) + workspace Workspace @relation(fields: [workspaceId], references: [id]) + + @@map("comment_threads") +} + +model Comment { + id String @id + 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]) + /// @TypeGraphQL.omit(input: true) + workspaceId String + /// @TypeGraphQL.omit(input: true) + workspace Workspace @relation(fields: [workspaceId], references: [id]) + + @@map("comments") +} + +enum CommentableType { + Person + Company +} + +model CommentThreadTarget { + id String @id + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt + deletedAt DateTime? + commentThreadId String + commentThread CommentThread @relation(fields: [commentThreadId], references: [id]) + + commentableType CommentableType + commentableId String + + @@map("comment_thread_targets") +} \ No newline at end of file diff --git a/server/src/database/seeds/comments.ts b/server/src/database/seeds/comments.ts new file mode 100644 index 000000000..73ec7cf29 --- /dev/null +++ b/server/src/database/seeds/comments.ts @@ -0,0 +1,110 @@ +import { PrismaClient } from '@prisma/client'; +export const seedComments = async (prisma: PrismaClient) => { + await prisma.commentThread.upsert({ + where: { id: 'twenty-fe256b39-3ec3-4fe3-8997-b76aa0bfb400' }, + update: {}, + create: { + id: 'twenty-fe256b39-3ec3-4fe3-8997-b76aa0bfb400', + workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419', + }, + }); + + await prisma.commentThreadTarget.upsert({ + where: { id: 'twenty-fe256b39-3ec3-4fe3-8997-b76aa0bfb600' }, + update: {}, + create: { + id: 'twenty-fe256b39-3ec3-4fe3-8997-b76aa0bfb600', + commentableType: 'Company', + commentableId: 'twenty-fe256b39-3ec3-4fe3-8997-b76aa0bfa408', + commentThreadId: 'twenty-fe256b39-3ec3-4fe3-8997-b76aa0bfb400', + }, + }); + + await prisma.comment.upsert({ + where: { id: 'twenty-fe256b39-3ec3-4fe3-8997-b76aa0bfb200' }, + update: {}, + create: { + id: 'twenty-fe256b39-3ec3-4fe3-8997-b76aa0bfb200', + workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419', + body: 'Hi Félix ! How do you like your Twenty workspace?', + commentThreadId: 'twenty-fe256b39-3ec3-4fe3-8997-b76aa0bfb400', + authorId: 'twenty-ge256b39-3ec3-4fe3-8997-b76aa0bfa408', + }, + }); + + await prisma.comment.upsert({ + where: { id: 'twenty-fe256b40-3ec3-4fe3-8997-b76aa0bfb200' }, + update: {}, + create: { + id: 'twenty-fe256b40-3ec3-4fe3-8997-b76aa0bfb200', + workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419', + body: 'I love it!', + commentThreadId: 'twenty-fe256b39-3ec3-4fe3-8997-b76aa0bfb400', + authorId: 'twenty-gk256b39-3ec3-4fe3-8997-b76aa0bfa408', + }, + }); + + await prisma.commentThread.upsert({ + where: { id: 'twenty-fe256b39-3ec3-4fe3-8997-b76aa0bfc408' }, + update: {}, + create: { + id: 'twenty-fe256b39-3ec3-4fe3-8997-b76aa0bfc408', + workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419', + }, + }); + + await prisma.commentThreadTarget.upsert({ + where: { id: 'twenty-fe256b39-3ec3-4fe3-8997-a76aa0bfb600' }, + update: {}, + create: { + id: 'twenty-fe256b39-3ec3-4fe3-8997-a76aa0bfb600', + commentableType: 'Person', + commentableId: 'twenty-755035db-623d-41fe-92e7-dd45b7c568e1', + commentThreadId: 'twenty-fe256b39-3ec3-4fe3-8997-b76aa0bfc408', + }, + }); + + await prisma.comment.upsert({ + where: { id: 'twenty-fe256b39-3ec3-4fe3-8997-b76aa0bfb100' }, + update: {}, + create: { + id: 'twenty-fe256b39-3ec3-4fe3-8997-b76aa0bfb100', + workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419', + body: 'I really like this comment thread feature!', + commentThreadId: 'twenty-fe256b39-3ec3-4fe3-8997-b76aa0bfc408', + authorId: 'twenty-ge256b39-3ec3-4fe3-8997-b76aa0bfa408', + }, + }); + + await prisma.commentThread.upsert({ + where: { id: 'twenty-dev-fe256b39-3ec3-4fe3-8997-b76aaabfb408' }, + update: {}, + create: { + id: 'twenty-dev-fe256b39-3ec3-4fe3-8997-b76aaabfb408', + workspaceId: 'twenty-dev-7ed9d212-1c25-4d02-bf25-6aeccf7ea420', + }, + }); + + await prisma.commentThreadTarget.upsert({ + where: { id: 'twenty-dev-fe256b39-3ec3-4fe3-8997-a76aa0bfba00' }, + update: {}, + create: { + id: 'twenty-dev-fe256b39-3ec3-4fe3-8997-a76aa0bfba00', + commentableType: 'Company', + commentableId: 'twenty-dev-a674fa6c-1455-4c57-afaf-dd5dc086361e', + commentThreadId: 'twenty-dev-fe256b39-3ec3-4fe3-8997-b76aaabfb408', + }, + }); + + await prisma.comment.upsert({ + where: { id: 'twenty-dev-fe256b39-3ec3-4fe3-8997-b76aa0bfb000' }, + update: {}, + create: { + id: 'twenty-dev-fe256b39-3ec3-4fe3-8997-b76aa0bfb000', + workspaceId: 'twenty-dev-7ed9d212-1c25-4d02-bf25-6aeccf7ea420', + body: 'I really like this comment thread feature!', + commentThreadId: 'twenty-dev-fe256b39-3ec3-4fe3-8997-b76aaabfb408', + authorId: 'twenty-dev-gk256b39-3ec3-4fe3-8997-b76aa0boa408', + }, + }); +}; diff --git a/server/src/database/seeds/companies.ts b/server/src/database/seeds/companies.ts index 37c53ebd9..dbd31f0c4 100644 --- a/server/src/database/seeds/companies.ts +++ b/server/src/database/seeds/companies.ts @@ -1,161 +1,161 @@ import { PrismaClient } from '@prisma/client'; export const seedCompanies = async (prisma: PrismaClient) => { await prisma.company.upsert({ - where: { id: 'fe256b39-3ec3-4fe3-8997-b76aa0bfa408' }, + where: { id: 'twenty-fe256b39-3ec3-4fe3-8997-b76aa0bfa408' }, update: {}, create: { - id: 'fe256b39-3ec3-4fe3-8997-b76aa0bfa408', + id: 'twenty-fe256b39-3ec3-4fe3-8997-b76aa0bfa408', name: 'Linkedin', domainName: 'linkedin.com', - workspaceId: '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', + workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419', address: '', }, }); await prisma.company.upsert({ - where: { id: '118995f3-5d81-46d6-bf83-f7fd33ea6102' }, + where: { id: 'twenty-118995f3-5d81-46d6-bf83-f7fd33ea6102' }, update: {}, create: { - id: '118995f3-5d81-46d6-bf83-f7fd33ea6102', + id: 'twenty-118995f3-5d81-46d6-bf83-f7fd33ea6102', name: 'Facebook', domainName: 'facebook.com', - workspaceId: '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', + workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419', address: '', }, }); await prisma.company.upsert({ - where: { id: '04b2e9f5-0713-40a5-8216-82802401d33e' }, + where: { id: 'twenty-04b2e9f5-0713-40a5-8216-82802401d33e' }, update: {}, create: { - id: '04b2e9f5-0713-40a5-8216-82802401d33e', + id: 'twenty-04b2e9f5-0713-40a5-8216-82802401d33e', name: 'Qonto', domainName: 'qonto.com', - workspaceId: '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', + workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419', address: '', }, }); await prisma.company.upsert({ - where: { id: '460b6fb1-ed89-413a-b31a-962986e67bb4' }, + where: { id: 'twenty-460b6fb1-ed89-413a-b31a-962986e67bb4' }, update: {}, create: { - id: '460b6fb1-ed89-413a-b31a-962986e67bb4', + id: 'twenty-460b6fb1-ed89-413a-b31a-962986e67bb4', name: 'Microsoft', domainName: 'microsoft.com', - workspaceId: '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', + workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419', address: '', }, }); await prisma.company.upsert({ - where: { id: '89bb825c-171e-4bcc-9cf7-43448d6fb278' }, + where: { id: 'twenty-89bb825c-171e-4bcc-9cf7-43448d6fb278' }, update: {}, create: { - id: '89bb825c-171e-4bcc-9cf7-43448d6fb278', + id: 'twenty-89bb825c-171e-4bcc-9cf7-43448d6fb278', name: 'Airbnb', domainName: 'airbnb.com', - workspaceId: '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', + workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419', address: '', }, }); await prisma.company.upsert({ - where: { id: '0d940997-c21e-4ec2-873b-de4264d89025' }, + where: { id: 'twenty-0d940997-c21e-4ec2-873b-de4264d89025' }, update: {}, create: { - id: '0d940997-c21e-4ec2-873b-de4264d89025', + id: 'twenty-0d940997-c21e-4ec2-873b-de4264d89025', name: 'Google', domainName: 'google.com', - workspaceId: '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', + workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419', address: '', }, }); await prisma.company.upsert({ - where: { id: '1d3a1c6e-707e-44dc-a1d2-30030bf1a944' }, + where: { id: 'twenty-1d3a1c6e-707e-44dc-a1d2-30030bf1a944' }, update: {}, create: { - id: '1d3a1c6e-707e-44dc-a1d2-30030bf1a944', + id: 'twenty-1d3a1c6e-707e-44dc-a1d2-30030bf1a944', name: 'Netflix', domainName: 'netflix.com', - workspaceId: '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', + workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419', address: '', }, }); await prisma.company.upsert({ - where: { id: '7a93d1e5-3f74-492d-a101-2a70f50a1645' }, + where: { id: 'twenty-7a93d1e5-3f74-492d-a101-2a70f50a1645' }, update: {}, create: { - id: '7a93d1e5-3f74-492d-a101-2a70f50a1645', + id: 'twenty-7a93d1e5-3f74-492d-a101-2a70f50a1645', name: 'Libeo', domainName: 'libeo.io', - workspaceId: '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', + workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419', address: '', }, }); await prisma.company.upsert({ - where: { id: '9d162de6-cfbf-4156-a790-e39854dcd4eb' }, + where: { id: 'twenty-9d162de6-cfbf-4156-a790-e39854dcd4eb' }, update: {}, create: { - id: '9d162de6-cfbf-4156-a790-e39854dcd4eb', + id: 'twenty-9d162de6-cfbf-4156-a790-e39854dcd4eb', name: 'Claap', domainName: 'claap.com', - workspaceId: '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', + workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419', address: '', }, }); await prisma.company.upsert({ - where: { id: 'aaffcfbd-f86b-419f-b794-02319abe8637' }, + where: { id: 'twenty-aaffcfbd-f86b-419f-b794-02319abe8637' }, update: {}, create: { - id: 'aaffcfbd-f86b-419f-b794-02319abe8637', + id: 'twenty-aaffcfbd-f86b-419f-b794-02319abe8637', name: 'Hasura', domainName: 'hasura.io', - workspaceId: '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', + workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419', address: '', }, }); await prisma.company.upsert({ - where: { id: 'f33dc242-5518-4553-9433-42d8eb82834b' }, + where: { id: 'twenty-f33dc242-5518-4553-9433-42d8eb82834b' }, update: {}, create: { - id: 'f33dc242-5518-4553-9433-42d8eb82834b', + id: 'twenty-f33dc242-5518-4553-9433-42d8eb82834b', name: 'Wework', domainName: 'wework.com', - workspaceId: '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', + workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419', address: '', }, }); await prisma.company.upsert({ - where: { id: 'a7bc68d5-f79e-40dd-bd06-c36e6abb4678' }, + where: { id: 'twenty-a7bc68d5-f79e-40dd-bd06-c36e6abb4678' }, update: {}, create: { - id: 'a7bc68d5-f79e-40dd-bd06-c36e6abb4678', + id: 'twenty-a7bc68d5-f79e-40dd-bd06-c36e6abb4678', name: 'Samsung', domainName: 'samsung.com', - workspaceId: '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', + workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419', address: '', }, }); await prisma.company.upsert({ - where: { id: 'a674fa6c-1455-4c57-afaf-dd5dc086361d' }, + where: { id: 'twenty-a674fa6c-1455-4c57-afaf-dd5dc086361d' }, update: {}, create: { - id: 'a674fa6c-1455-4c57-afaf-dd5dc086361d', + id: 'twenty-a674fa6c-1455-4c57-afaf-dd5dc086361d', name: 'Algolia', domainName: 'algolia.com', - workspaceId: '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', + workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419', address: '', }, }); await prisma.company.upsert({ - where: { id: 'a674fa6c-1455-4c57-afaf-dd5dc086361e' }, + where: { id: 'twenty-dev-a674fa6c-1455-4c57-afaf-dd5dc086361e' }, update: {}, create: { - id: 'a674fa6c-1455-4c57-afaf-dd5dc086361e', + id: 'twenty-dev-a674fa6c-1455-4c57-afaf-dd5dc086361e', name: 'Instagram', domainName: 'instagram.com', - workspaceId: '7ed9d212-1c25-4d02-bf25-6aeccf7ea420', + workspaceId: 'twenty-dev-7ed9d212-1c25-4d02-bf25-6aeccf7ea420', address: '', }, }); diff --git a/server/src/database/seeds/index.ts b/server/src/database/seeds/index.ts index d88a5eb61..6317935ed 100644 --- a/server/src/database/seeds/index.ts +++ b/server/src/database/seeds/index.ts @@ -2,12 +2,16 @@ import { PrismaClient } from '@prisma/client'; import { seedCompanies } from './companies'; import { seedWorkspaces } from './workspaces'; import { seedPeople } from './people'; +import { seedComments } from './comments'; +import { seedUsers } from './users'; const seed = async () => { const prisma = new PrismaClient(); await seedWorkspaces(prisma); + await seedUsers(prisma); await seedCompanies(prisma); await seedPeople(prisma); + await seedComments(prisma); await prisma.$disconnect(); }; diff --git a/server/src/database/seeds/people.ts b/server/src/database/seeds/people.ts index 4caa253f0..78315628b 100644 --- a/server/src/database/seeds/people.ts +++ b/server/src/database/seeds/people.ts @@ -1,226 +1,226 @@ import { PrismaClient } from '@prisma/client'; export const seedPeople = async (prisma: PrismaClient) => { await prisma.person.upsert({ - where: { id: '86083141-1c0e-494c-a1b6-85b1c6fefaa5' }, + where: { id: 'twenty-86083141-1c0e-494c-a1b6-85b1c6fefaa5' }, update: {}, create: { - id: '86083141-1c0e-494c-a1b6-85b1c6fefaa5', + id: 'twenty-86083141-1c0e-494c-a1b6-85b1c6fefaa5', firstname: 'Christoph', lastname: 'Callisto', - workspaceId: '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', + workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419', phone: '+33789012345', city: 'Seattle', - companyId: 'fe256b39-3ec3-4fe3-8997-b76aa0bfa408', + companyId: 'twenty-fe256b39-3ec3-4fe3-8997-b76aa0bfa408', email: 'christoph.calisto@linkedin.com', }, }); await prisma.person.upsert({ - where: { id: '0aa00beb-ac73-4797-824e-87a1f5aea9e0' }, + where: { id: 'twenty-0aa00beb-ac73-4797-824e-87a1f5aea9e0' }, update: {}, create: { - id: '0aa00beb-ac73-4797-824e-87a1f5aea9e0', + id: 'twenty-0aa00beb-ac73-4797-824e-87a1f5aea9e0', firstname: 'Sylvie', lastname: 'Palmer', - workspaceId: '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', + workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419', phone: '+33780123456', city: 'Los Angeles', - companyId: 'fe256b39-3ec3-4fe3-8997-b76aa0bfa408', + companyId: 'twenty-fe256b39-3ec3-4fe3-8997-b76aa0bfa408', email: 'sylvie.palmer@linkedin.com', }, }); await prisma.person.upsert({ - where: { id: '93c72d2e-f517-42fd-80ae-14173b3b70ae' }, + where: { id: 'twenty-93c72d2e-f517-42fd-80ae-14173b3b70ae' }, update: {}, create: { - id: '93c72d2e-f517-42fd-80ae-14173b3b70ae', + id: 'twenty-93c72d2e-f517-42fd-80ae-14173b3b70ae', firstname: 'Christopher', lastname: 'Gonzalez', - workspaceId: '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', + workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419', phone: '+33789012345', city: 'Seattle', - companyId: '04b2e9f5-0713-40a5-8216-82802401d33e', + companyId: 'twenty-04b2e9f5-0713-40a5-8216-82802401d33e', email: 'christopher.gonzalez@qonto.com', }, }); await prisma.person.upsert({ - where: { id: 'eeeacacf-eee1-4690-ad2c-8619e5b56a2e' }, + where: { id: 'twenty-eeeacacf-eee1-4690-ad2c-8619e5b56a2e' }, update: {}, create: { - id: 'eeeacacf-eee1-4690-ad2c-8619e5b56a2e', + id: 'twenty-eeeacacf-eee1-4690-ad2c-8619e5b56a2e', firstname: 'Ashley', lastname: 'Parker', - workspaceId: '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', + workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419', phone: '+33780123456', city: 'Los Angeles', - companyId: '04b2e9f5-0713-40a5-8216-82802401d33e', + companyId: 'twenty-04b2e9f5-0713-40a5-8216-82802401d33e', email: 'ashley.parker@qonto.com', }, }); await prisma.person.upsert({ - where: { id: '9b324a88-6784-4449-afdf-dc62cb8702f2' }, + where: { id: 'twenty-9b324a88-6784-4449-afdf-dc62cb8702f2' }, update: {}, create: { - id: '9b324a88-6784-4449-afdf-dc62cb8702f2', + id: 'twenty-9b324a88-6784-4449-afdf-dc62cb8702f2', firstname: 'Nicholas', lastname: 'Wright', - workspaceId: '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', + workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419', phone: '+33781234567', city: 'Seattle', - companyId: '460b6fb1-ed89-413a-b31a-962986e67bb4', + companyId: 'twenty-460b6fb1-ed89-413a-b31a-962986e67bb4', email: 'nicholas.wright@microsoft.com', }, }); await prisma.person.upsert({ - where: { id: '1d151852-490f-4466-8391-733cfd66a0c8' }, + where: { id: 'twenty-1d151852-490f-4466-8391-733cfd66a0c8' }, update: {}, create: { - id: '1d151852-490f-4466-8391-733cfd66a0c8', + id: 'twenty-1d151852-490f-4466-8391-733cfd66a0c8', firstname: 'Isabella', lastname: 'Scott', - workspaceId: '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', + workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419', phone: '+33782345678', city: 'New York', - companyId: '460b6fb1-ed89-413a-b31a-962986e67bb4', + companyId: 'twenty-460b6fb1-ed89-413a-b31a-962986e67bb4', email: 'isabella.scott@microsoft.com', }, }); await prisma.person.upsert({ - where: { id: '98406e26-80f1-4dff-b570-a74942528de3' }, + where: { id: 'twenty-98406e26-80f1-4dff-b570-a74942528de3' }, update: {}, create: { - id: '98406e26-80f1-4dff-b570-a74942528de3', + id: 'twenty-98406e26-80f1-4dff-b570-a74942528de3', firstname: 'Matthew', lastname: 'Green', - workspaceId: '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', + workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419', phone: '+33783456789', city: 'Seattle', - companyId: '460b6fb1-ed89-413a-b31a-962986e67bb4', + companyId: 'twenty-460b6fb1-ed89-413a-b31a-962986e67bb4', email: 'matthew.green@microsoft.com', }, }); await prisma.person.upsert({ - where: { id: 'a2e78a5f-338b-46df-8811-fa08c7d19d35' }, + where: { id: 'twenty-a2e78a5f-338b-46df-8811-fa08c7d19d35' }, update: {}, create: { - id: 'a2e78a5f-338b-46df-8811-fa08c7d19d35', + id: 'twenty-a2e78a5f-338b-46df-8811-fa08c7d19d35', firstname: 'Elizabeth', lastname: 'Baker', - workspaceId: '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', + workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419', phone: '+33784567890', city: 'New York', - companyId: '89bb825c-171e-4bcc-9cf7-43448d6fb278', + companyId: 'twenty-89bb825c-171e-4bcc-9cf7-43448d6fb278', email: 'elizabeth.baker@airbnb.com', }, }); await prisma.person.upsert({ - where: { id: 'ca1f5bf3-64ad-4b0e-bbfd-e9fd795b7016' }, + where: { id: 'twenty-ca1f5bf3-64ad-4b0e-bbfd-e9fd795b7016' }, update: {}, create: { - id: 'ca1f5bf3-64ad-4b0e-bbfd-e9fd795b7016', + id: 'twenty-ca1f5bf3-64ad-4b0e-bbfd-e9fd795b7016', firstname: 'Christopher', lastname: 'Nelson', - workspaceId: '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', + workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419', phone: '+33785678901', city: 'San Francisco', - companyId: '89bb825c-171e-4bcc-9cf7-43448d6fb278', + companyId: 'twenty-89bb825c-171e-4bcc-9cf7-43448d6fb278', email: 'christopher.nelson@airbnb.com', }, }); await prisma.person.upsert({ - where: { id: '56955422-5d54-41b7-ba36-f0d20e1417ae' }, + where: { id: 'twenty-56955422-5d54-41b7-ba36-f0d20e1417ae' }, update: {}, create: { - id: '56955422-5d54-41b7-ba36-f0d20e1417ae', + id: 'twenty-56955422-5d54-41b7-ba36-f0d20e1417ae', firstname: 'Avery', lastname: 'Carter', - workspaceId: '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', + workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419', phone: '+33786789012', city: 'New York', - companyId: '89bb825c-171e-4bcc-9cf7-43448d6fb278', + companyId: 'twenty-89bb825c-171e-4bcc-9cf7-43448d6fb278', email: 'avery.carter@airbnb.com', }, }); await prisma.person.upsert({ - where: { id: '755035db-623d-41fe-92e7-dd45b7c568e1' }, + where: { id: 'twenty-755035db-623d-41fe-92e7-dd45b7c568e1' }, update: {}, create: { - id: '755035db-623d-41fe-92e7-dd45b7c568e1', + id: 'twenty-755035db-623d-41fe-92e7-dd45b7c568e1', firstname: 'Ethan', lastname: 'Mitchell', - workspaceId: '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', + workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419', phone: '+33787890123', city: 'Los Angeles', - companyId: '0d940997-c21e-4ec2-873b-de4264d89025', + companyId: 'twenty-0d940997-c21e-4ec2-873b-de4264d89025', email: 'ethan.mitchell@google.com', }, }); await prisma.person.upsert({ - where: { id: '240da2ec-2d40-4e49-8df4-9c6a049190ef' }, + where: { id: 'twenty-240da2ec-2d40-4e49-8df4-9c6a049190ef' }, update: {}, create: { - id: '240da2ec-2d40-4e49-8df4-9c6a049190ef', + id: 'twenty-240da2ec-2d40-4e49-8df4-9c6a049190ef', firstname: 'Madison', lastname: 'Perez', - workspaceId: '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', + workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419', phone: '+33788901234', city: 'Seattle', - companyId: '0d940997-c21e-4ec2-873b-de4264d89025', + companyId: 'twenty-0d940997-c21e-4ec2-873b-de4264d89025', email: 'madison.perez@google.com', }, }); await prisma.person.upsert({ - where: { id: '240da2ec-2d40-4e49-8df4-9c6a049190df' }, + where: { id: 'twenty-240da2ec-2d40-4e49-8df4-9c6a049190df' }, update: {}, create: { - id: '240da2ec-2d40-4e49-8df4-9c6a049190df', + id: 'twenty-240da2ec-2d40-4e49-8df4-9c6a049190df', firstname: 'Bertrand', lastname: 'Voulzy', - workspaceId: '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', + workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419', phone: '+33788901234', city: 'Seattle', - companyId: '0d940997-c21e-4ec2-873b-de4264d89025', + companyId: 'twenty-0d940997-c21e-4ec2-873b-de4264d89025', email: 'bertrand.voulzy@google.com', }, }); await prisma.person.upsert({ - where: { id: '240da2ec-2d40-4e49-8df4-9c6a049190dg' }, + where: { id: 'twenty-240da2ec-2d40-4e49-8df4-9c6a049190dg' }, update: {}, create: { - id: '240da2ec-2d40-4e49-8df4-9c6a049190dg', + id: 'twenty-240da2ec-2d40-4e49-8df4-9c6a049190dg', firstname: 'Louis', lastname: 'Duss', - workspaceId: '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', + workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419', phone: '+33788901234', city: 'Seattle', - companyId: '0d940997-c21e-4ec2-873b-de4264d89025', + companyId: 'twenty-0d940997-c21e-4ec2-873b-de4264d89025', email: 'louis.duss@google.com', }, }); await prisma.person.upsert({ - where: { id: '240da2ec-2d40-4e49-8df4-9c6a049190dh' }, + where: { id: 'twenty-dev-240da2ec-2d40-4e49-8df4-9c6a049190dh' }, update: {}, create: { - id: '240da2ec-2d40-4e49-8df4-9c6a049190dh', + id: 'twenty-dev-240da2ec-2d40-4e49-8df4-9c6a049190dh', firstname: 'Lorie', lastname: 'Vladim', - workspaceId: '7ed9d212-1c25-4d02-bf25-6aeccf7ea420', + workspaceId: 'twenty-dev-7ed9d212-1c25-4d02-bf25-6aeccf7ea420', phone: '+33788901235', city: 'Seattle', - companyId: 'a674fa6c-1455-4c57-afaf-dd5dc086361e', + companyId: 'twenty-dev-a674fa6c-1455-4c57-afaf-dd5dc086361e', email: 'lorie.vladim@google.com', }, }); diff --git a/server/src/database/seeds/users.ts b/server/src/database/seeds/users.ts new file mode 100644 index 000000000..44e0c5df4 --- /dev/null +++ b/server/src/database/seeds/users.ts @@ -0,0 +1,53 @@ +import { PrismaClient } from '@prisma/client'; +export const seedUsers = async (prisma: PrismaClient) => { + await prisma.user.upsert({ + where: { id: 'twenty-ge256b39-3ec3-4fe3-8997-b76aa0bfa408' }, + update: {}, + create: { + id: 'twenty-ge256b39-3ec3-4fe3-8997-b76aa0bfa408', + displayName: 'Charles Bochet', + email: 'charles@test.com', + locale: 'en', + workspaceMember: { + create: { + id: 'twenty-7ef9d213-1c25-4d02-bf35-6aeccf7ea419', + workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419', + }, + }, + }, + }); + + await prisma.user.upsert({ + where: { id: 'twenty-gk256b39-3ec3-4fe3-8997-b76aa0bfa408' }, + update: {}, + create: { + id: 'twenty-gk256b39-3ec3-4fe3-8997-b76aa0bfa408', + displayName: 'Félix Malfait', + email: 'felix@test.com', + locale: 'en', + workspaceMember: { + create: { + id: 'twenty-7ed9d213-1c25-4d02-bf35-6aeccf7ea419', + workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419', + }, + }, + }, + }); + + await prisma.user.upsert({ + where: { id: 'twenty-dev-gk256b39-3ec3-4fe3-8997-b76aa0boa408' }, + update: {}, + create: { + id: 'twenty-dev-gk256b39-3ec3-4fe3-8997-b76aa0boa408', + displayName: 'Charles Bochet Dev', + email: 'charles-dev@test.com', + locale: 'en', + workspaceMember: { + create: { + id: 'twenty-dev-7ed9d213-1c25-4d02-bf35-6aeccf7oa419', + workspaceId: 'twenty-dev-7ed9d212-1c25-4d02-bf25-6aeccf7ea420', + }, + }, + }, + }); +}; diff --git a/server/src/database/seeds/workspaces.ts b/server/src/database/seeds/workspaces.ts index 801ebf8e5..4c8bd9d2c 100644 --- a/server/src/database/seeds/workspaces.ts +++ b/server/src/database/seeds/workspaces.ts @@ -4,20 +4,20 @@ export const seedWorkspaces = async (prisma: PrismaClient) => { where: { domainName: 'twenty.com' }, update: {}, create: { - id: '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', + id: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419', displayName: 'Twenty', domainName: 'twenty.com', logo: 'data:image/png;base64,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', }, }); await prisma.workspace.upsert({ - where: { domainName: 'claap.com' }, + where: { domainName: 'dev.twenty.com' }, update: {}, create: { - id: '7ed9d212-1c25-4d02-bf25-6aeccf7ea420', - displayName: 'Claap', - domainName: 'claap.com', - logo: 'data:image/jpeg;base64,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', + id: 'twenty-dev-7ed9d212-1c25-4d02-bf25-6aeccf7ea420', + displayName: 'Twenty Dev', + domainName: 'dev.twenty.com', + logo: 'data:image/png;base64,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', }, }); }; diff --git a/server/src/entities/user/user.repository.ts b/server/src/entities/user/user.repository.ts index 63dfc57ff..3d8d2548a 100644 --- a/server/src/entities/user/user.repository.ts +++ b/server/src/entities/user/user.repository.ts @@ -21,7 +21,10 @@ export class UserRepository { where?: Prisma.UserWhereInput; }): Promise { const { where } = params; - return this.prisma.user.findFirst({ where }); + + return this.prisma.user.findFirst({ + where, + }); } async upsertUser(params: {