Clean server post refactor to remove Hasura (#156)
* Clean BE post refactor to remove Hasura * Add server CI
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
name: continous-integration
|
||||
name: CI Front
|
||||
on:
|
||||
push:
|
||||
jobs:
|
||||
@ -13,12 +13,6 @@ jobs:
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: "18"
|
||||
- name: Write .env
|
||||
run: |
|
||||
cd front
|
||||
touch .env
|
||||
echo "REACT_APP_API_URL: $REACT_APP_API_URL" >> .env
|
||||
echo "REACT_APP_AUTH_URL: $REACT_APP_AUTH_URL" >> .env
|
||||
- name: Cache node modules
|
||||
uses: actions/cache@v2
|
||||
env:
|
||||
@ -30,19 +24,25 @@ jobs:
|
||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
||||
${{ runner.os }}-build-
|
||||
${{ runner.os }}-
|
||||
- name: Install Dependencies
|
||||
- name: Front / Write .env
|
||||
run: |
|
||||
cd front
|
||||
touch .env
|
||||
echo "REACT_APP_API_URL: $REACT_APP_API_URL" >> .env
|
||||
echo "REACT_APP_AUTH_URL: $REACT_APP_AUTH_URL" >> .env
|
||||
- name: Front / Install Dependencies
|
||||
run: cd front && npm install
|
||||
- name: Install Playwright
|
||||
- name: Front / Install Playwright
|
||||
run: cd front && npx playwright install --with-deps
|
||||
- name: Run linter
|
||||
- name: Front / Run linter
|
||||
run: cd front && npm run lint
|
||||
- name: Build Storybook
|
||||
- name: Front / Build Storybook
|
||||
run: cd front && npm run build-storybook --quiet
|
||||
- name: Serve Storybook and run storybook tests
|
||||
- name: Front / Run storybook tests
|
||||
run: |
|
||||
cd front && npx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \
|
||||
"npx http-server storybook-static --silent --port 6006" \
|
||||
"npm run coverage"
|
||||
- name: run jest tests
|
||||
- name: Front / Run jest tests
|
||||
run: |
|
||||
cd front && npm run test
|
||||
30
.github/workflows/ci-server.yaml
vendored
Normal file
30
.github/workflows/ci-server.yaml
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
name: CI Server
|
||||
on:
|
||||
push:
|
||||
jobs:
|
||||
server-test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: "18"
|
||||
- name: Cache node modules
|
||||
uses: actions/cache@v2
|
||||
env:
|
||||
cache-name: cache-node-modules
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
||||
${{ runner.os }}-build-
|
||||
${{ runner.os }}-
|
||||
- name: Server / Install Dependencies
|
||||
run: cd server && npm install
|
||||
- name: Server / Run linter
|
||||
run: cd server && npm run lint
|
||||
- name: Server / Run jest tests
|
||||
run: |
|
||||
cd server && npm run test
|
||||
@ -13,7 +13,7 @@
|
||||
"start:dev": "nest start --watch",
|
||||
"start:debug": "nest start --debug --watch",
|
||||
"start:prod": "node dist/main",
|
||||
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
|
||||
"lint": "eslint \"src/**/*.ts\" --fix",
|
||||
"test": "jest",
|
||||
"test:watch": "jest --watch",
|
||||
"test:cov": "jest --coverage",
|
||||
|
||||
@ -8,7 +8,6 @@ import { CompanyMaxAggregate } from './company-max-aggregate.output';
|
||||
|
||||
@ObjectType()
|
||||
export class AggregateCompany {
|
||||
|
||||
@Field(() => CompanyCountAggregate, { nullable: true })
|
||||
_count?: CompanyCountAggregate;
|
||||
|
||||
|
||||
@ -13,7 +13,6 @@ import { CompanyMaxAggregateInput } from './company-max-aggregate.input';
|
||||
|
||||
@ArgsType()
|
||||
export class CompanyAggregateArgs {
|
||||
|
||||
@Field(() => CompanyWhereInput, { nullable: true })
|
||||
@Type(() => CompanyWhereInput)
|
||||
where?: CompanyWhereInput;
|
||||
|
||||
@ -3,7 +3,6 @@ import { InputType } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CompanyAvgAggregateInput {
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
employees?: true;
|
||||
}
|
||||
|
||||
@ -4,7 +4,6 @@ import { Float } from '@nestjs/graphql';
|
||||
|
||||
@ObjectType()
|
||||
export class CompanyAvgAggregate {
|
||||
|
||||
@Field(() => Float, { nullable: true })
|
||||
employees?: number;
|
||||
}
|
||||
|
||||
@ -4,7 +4,6 @@ import { SortOrder } from '../prisma/sort-order.enum';
|
||||
|
||||
@InputType()
|
||||
export class CompanyAvgOrderByAggregateInput {
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
employees?: keyof typeof SortOrder;
|
||||
}
|
||||
|
||||
@ -4,7 +4,6 @@ import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CompanyCountAggregateInput {
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
id?: true;
|
||||
|
||||
|
||||
@ -4,7 +4,6 @@ import { Int } from '@nestjs/graphql';
|
||||
|
||||
@ObjectType()
|
||||
export class CompanyCountAggregate {
|
||||
|
||||
@Field(() => Int, { nullable: false })
|
||||
id!: number;
|
||||
|
||||
|
||||
@ -5,7 +5,6 @@ import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CompanyCountOrderByAggregateInput {
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
id?: keyof typeof SortOrder;
|
||||
|
||||
|
||||
@ -4,7 +4,6 @@ import { Int } from '@nestjs/graphql';
|
||||
|
||||
@ObjectType()
|
||||
export class CompanyCount {
|
||||
|
||||
@Field(() => Int, { nullable: false })
|
||||
people?: number;
|
||||
}
|
||||
|
||||
@ -5,7 +5,6 @@ import { Type } from 'class-transformer';
|
||||
|
||||
@InputType()
|
||||
export class CompanyCreateManyAccountOwnerInputEnvelope {
|
||||
|
||||
@Field(() => [CompanyCreateManyAccountOwnerInput], { nullable: false })
|
||||
@Type(() => CompanyCreateManyAccountOwnerInput)
|
||||
data!: Array<CompanyCreateManyAccountOwnerInput>;
|
||||
|
||||
@ -5,7 +5,6 @@ import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CompanyCreateManyAccountOwnerInput {
|
||||
|
||||
@Field(() => String, { nullable: false })
|
||||
id!: string;
|
||||
|
||||
|
||||
@ -5,7 +5,6 @@ import { Type } from 'class-transformer';
|
||||
|
||||
@InputType()
|
||||
export class CompanyCreateManyWorkspaceInputEnvelope {
|
||||
|
||||
@Field(() => [CompanyCreateManyWorkspaceInput], { nullable: false })
|
||||
@Type(() => CompanyCreateManyWorkspaceInput)
|
||||
data!: Array<CompanyCreateManyWorkspaceInput>;
|
||||
|
||||
@ -4,7 +4,6 @@ import { Int } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CompanyCreateManyWorkspaceInput {
|
||||
|
||||
@Field(() => String, { nullable: false })
|
||||
id!: string;
|
||||
|
||||
|
||||
@ -5,7 +5,6 @@ import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CompanyCreateManyInput {
|
||||
|
||||
@Field(() => String, { nullable: false })
|
||||
id!: string;
|
||||
|
||||
|
||||
@ -8,12 +8,13 @@ import { CompanyWhereUniqueInput } from './company-where-unique.input';
|
||||
|
||||
@InputType()
|
||||
export class CompanyCreateNestedManyWithoutAccountOwnerInput {
|
||||
|
||||
@Field(() => [CompanyCreateWithoutAccountOwnerInput], { nullable: true })
|
||||
@Type(() => CompanyCreateWithoutAccountOwnerInput)
|
||||
create?: Array<CompanyCreateWithoutAccountOwnerInput>;
|
||||
|
||||
@Field(() => [CompanyCreateOrConnectWithoutAccountOwnerInput], {nullable:true})
|
||||
@Field(() => [CompanyCreateOrConnectWithoutAccountOwnerInput], {
|
||||
nullable: true,
|
||||
})
|
||||
@Type(() => CompanyCreateOrConnectWithoutAccountOwnerInput)
|
||||
connectOrCreate?: Array<CompanyCreateOrConnectWithoutAccountOwnerInput>;
|
||||
|
||||
|
||||
@ -8,12 +8,13 @@ import { CompanyWhereUniqueInput } from './company-where-unique.input';
|
||||
|
||||
@InputType()
|
||||
export class CompanyCreateNestedManyWithoutWorkspaceInput {
|
||||
|
||||
@Field(() => [CompanyCreateWithoutWorkspaceInput], { nullable: true })
|
||||
@Type(() => CompanyCreateWithoutWorkspaceInput)
|
||||
create?: Array<CompanyCreateWithoutWorkspaceInput>;
|
||||
|
||||
@Field(() => [CompanyCreateOrConnectWithoutWorkspaceInput], {nullable:true})
|
||||
@Field(() => [CompanyCreateOrConnectWithoutWorkspaceInput], {
|
||||
nullable: true,
|
||||
})
|
||||
@Type(() => CompanyCreateOrConnectWithoutWorkspaceInput)
|
||||
connectOrCreate?: Array<CompanyCreateOrConnectWithoutWorkspaceInput>;
|
||||
|
||||
|
||||
@ -7,7 +7,6 @@ import { CompanyWhereUniqueInput } from './company-where-unique.input';
|
||||
|
||||
@InputType()
|
||||
export class CompanyCreateNestedOneWithoutPeopleInput {
|
||||
|
||||
@Field(() => CompanyCreateWithoutPeopleInput, { nullable: true })
|
||||
@Type(() => CompanyCreateWithoutPeopleInput)
|
||||
create?: CompanyCreateWithoutPeopleInput;
|
||||
|
||||
@ -6,7 +6,6 @@ import { CompanyCreateWithoutAccountOwnerInput } from './company-create-without-
|
||||
|
||||
@InputType()
|
||||
export class CompanyCreateOrConnectWithoutAccountOwnerInput {
|
||||
|
||||
@Field(() => CompanyWhereUniqueInput, { nullable: false })
|
||||
@Type(() => CompanyWhereUniqueInput)
|
||||
where!: CompanyWhereUniqueInput;
|
||||
|
||||
@ -6,7 +6,6 @@ import { CompanyCreateWithoutPeopleInput } from './company-create-without-people
|
||||
|
||||
@InputType()
|
||||
export class CompanyCreateOrConnectWithoutPeopleInput {
|
||||
|
||||
@Field(() => CompanyWhereUniqueInput, { nullable: false })
|
||||
@Type(() => CompanyWhereUniqueInput)
|
||||
where!: CompanyWhereUniqueInput;
|
||||
|
||||
@ -6,7 +6,6 @@ import { CompanyCreateWithoutWorkspaceInput } from './company-create-without-wor
|
||||
|
||||
@InputType()
|
||||
export class CompanyCreateOrConnectWithoutWorkspaceInput {
|
||||
|
||||
@Field(() => CompanyWhereUniqueInput, { nullable: false })
|
||||
@Type(() => CompanyWhereUniqueInput)
|
||||
where!: CompanyWhereUniqueInput;
|
||||
|
||||
@ -7,7 +7,6 @@ import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CompanyCreateWithoutAccountOwnerInput {
|
||||
|
||||
@Field(() => String, { nullable: false })
|
||||
id!: string;
|
||||
|
||||
|
||||
@ -7,7 +7,6 @@ import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CompanyCreateWithoutPeopleInput {
|
||||
|
||||
@Field(() => String, { nullable: false })
|
||||
id!: string;
|
||||
|
||||
|
||||
@ -6,7 +6,6 @@ import { PersonCreateNestedManyWithoutCompanyInput } from '../person/person-crea
|
||||
|
||||
@InputType()
|
||||
export class CompanyCreateWithoutWorkspaceInput {
|
||||
|
||||
@Field(() => String, { nullable: false })
|
||||
id!: string;
|
||||
|
||||
|
||||
@ -8,7 +8,6 @@ import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CompanyCreateInput {
|
||||
|
||||
@Field(() => String, { nullable: false })
|
||||
id!: string;
|
||||
|
||||
|
||||
@ -14,7 +14,6 @@ import { CompanyMaxAggregateInput } from './company-max-aggregate.input';
|
||||
|
||||
@ArgsType()
|
||||
export class CompanyGroupByArgs {
|
||||
|
||||
@Field(() => CompanyWhereInput, { nullable: true })
|
||||
@Type(() => CompanyWhereInput)
|
||||
where?: CompanyWhereInput;
|
||||
|
||||
@ -9,7 +9,6 @@ import { CompanyMaxAggregate } from './company-max-aggregate.output';
|
||||
|
||||
@ObjectType()
|
||||
export class CompanyGroupBy {
|
||||
|
||||
@Field(() => String, { nullable: false })
|
||||
id!: string;
|
||||
|
||||
|
||||
@ -4,7 +4,6 @@ import { CompanyWhereInput } from './company-where.input';
|
||||
|
||||
@InputType()
|
||||
export class CompanyListRelationFilter {
|
||||
|
||||
@Field(() => CompanyWhereInput, { nullable: true })
|
||||
every?: CompanyWhereInput;
|
||||
|
||||
|
||||
@ -4,7 +4,6 @@ import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CompanyMaxAggregateInput {
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
id?: true;
|
||||
|
||||
|
||||
@ -4,7 +4,6 @@ import { Int } from '@nestjs/graphql';
|
||||
|
||||
@ObjectType()
|
||||
export class CompanyMaxAggregate {
|
||||
|
||||
@Field(() => String, { nullable: true })
|
||||
id?: string;
|
||||
|
||||
|
||||
@ -5,7 +5,6 @@ import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CompanyMaxOrderByAggregateInput {
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
id?: keyof typeof SortOrder;
|
||||
|
||||
|
||||
@ -4,7 +4,6 @@ import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CompanyMinAggregateInput {
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
id?: true;
|
||||
|
||||
|
||||
@ -4,7 +4,6 @@ import { Int } from '@nestjs/graphql';
|
||||
|
||||
@ObjectType()
|
||||
export class CompanyMinAggregate {
|
||||
|
||||
@Field(() => String, { nullable: true })
|
||||
id?: string;
|
||||
|
||||
|
||||
@ -5,7 +5,6 @@ import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CompanyMinOrderByAggregateInput {
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
id?: keyof typeof SortOrder;
|
||||
|
||||
|
||||
@ -4,7 +4,6 @@ import { SortOrder } from '../prisma/sort-order.enum';
|
||||
|
||||
@InputType()
|
||||
export class CompanyOrderByRelationAggregateInput {
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
_count?: keyof typeof SortOrder;
|
||||
}
|
||||
|
||||
@ -10,7 +10,6 @@ import { CompanySumOrderByAggregateInput } from './company-sum-order-by-aggregat
|
||||
|
||||
@InputType()
|
||||
export class CompanyOrderByWithAggregationInput {
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
id?: keyof typeof SortOrder;
|
||||
|
||||
|
||||
@ -8,7 +8,6 @@ import { WorkspaceOrderByWithRelationInput } from '../workspace/workspace-order-
|
||||
|
||||
@InputType()
|
||||
export class CompanyOrderByWithRelationInput {
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
id?: keyof typeof SortOrder;
|
||||
|
||||
|
||||
@ -4,7 +4,6 @@ import { CompanyWhereInput } from './company-where.input';
|
||||
|
||||
@InputType()
|
||||
export class CompanyRelationFilter {
|
||||
|
||||
@Field(() => CompanyWhereInput, { nullable: true })
|
||||
is?: CompanyWhereInput;
|
||||
|
||||
|
||||
@ -1,17 +1,19 @@
|
||||
import { registerEnumType } from '@nestjs/graphql';
|
||||
|
||||
export enum CompanyScalarFieldEnum {
|
||||
id = "id",
|
||||
createdAt = "createdAt",
|
||||
updatedAt = "updatedAt",
|
||||
deletedAt = "deletedAt",
|
||||
name = "name",
|
||||
domainName = "domainName",
|
||||
address = "address",
|
||||
employees = "employees",
|
||||
accountOwnerId = "accountOwnerId",
|
||||
workspaceId = "workspaceId"
|
||||
id = 'id',
|
||||
createdAt = 'createdAt',
|
||||
updatedAt = 'updatedAt',
|
||||
deletedAt = 'deletedAt',
|
||||
name = 'name',
|
||||
domainName = 'domainName',
|
||||
address = 'address',
|
||||
employees = 'employees',
|
||||
accountOwnerId = 'accountOwnerId',
|
||||
workspaceId = 'workspaceId',
|
||||
}
|
||||
|
||||
|
||||
registerEnumType(CompanyScalarFieldEnum, { name: 'CompanyScalarFieldEnum', description: undefined })
|
||||
registerEnumType(CompanyScalarFieldEnum, {
|
||||
name: 'CompanyScalarFieldEnum',
|
||||
description: undefined,
|
||||
});
|
||||
|
||||
@ -9,7 +9,6 @@ import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CompanyScalarWhereWithAggregatesInput {
|
||||
|
||||
@Field(() => [CompanyScalarWhereWithAggregatesInput], { nullable: true })
|
||||
AND?: Array<CompanyScalarWhereWithAggregatesInput>;
|
||||
|
||||
|
||||
@ -9,7 +9,6 @@ import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CompanyScalarWhereInput {
|
||||
|
||||
@Field(() => [CompanyScalarWhereInput], { nullable: true })
|
||||
AND?: Array<CompanyScalarWhereInput>;
|
||||
|
||||
|
||||
@ -3,7 +3,6 @@ import { InputType } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CompanySumAggregateInput {
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
employees?: true;
|
||||
}
|
||||
|
||||
@ -4,7 +4,6 @@ import { Int } from '@nestjs/graphql';
|
||||
|
||||
@ObjectType()
|
||||
export class CompanySumAggregate {
|
||||
|
||||
@Field(() => Int, { nullable: true })
|
||||
employees?: number;
|
||||
}
|
||||
|
||||
@ -4,7 +4,6 @@ import { SortOrder } from '../prisma/sort-order.enum';
|
||||
|
||||
@InputType()
|
||||
export class CompanySumOrderByAggregateInput {
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
employees?: keyof typeof SortOrder;
|
||||
}
|
||||
|
||||
@ -8,12 +8,13 @@ import { CompanyWhereUniqueInput } from './company-where-unique.input';
|
||||
|
||||
@InputType()
|
||||
export class CompanyUncheckedCreateNestedManyWithoutAccountOwnerInput {
|
||||
|
||||
@Field(() => [CompanyCreateWithoutAccountOwnerInput], { nullable: true })
|
||||
@Type(() => CompanyCreateWithoutAccountOwnerInput)
|
||||
create?: Array<CompanyCreateWithoutAccountOwnerInput>;
|
||||
|
||||
@Field(() => [CompanyCreateOrConnectWithoutAccountOwnerInput], {nullable:true})
|
||||
@Field(() => [CompanyCreateOrConnectWithoutAccountOwnerInput], {
|
||||
nullable: true,
|
||||
})
|
||||
@Type(() => CompanyCreateOrConnectWithoutAccountOwnerInput)
|
||||
connectOrCreate?: Array<CompanyCreateOrConnectWithoutAccountOwnerInput>;
|
||||
|
||||
|
||||
@ -8,12 +8,13 @@ import { CompanyWhereUniqueInput } from './company-where-unique.input';
|
||||
|
||||
@InputType()
|
||||
export class CompanyUncheckedCreateNestedManyWithoutWorkspaceInput {
|
||||
|
||||
@Field(() => [CompanyCreateWithoutWorkspaceInput], { nullable: true })
|
||||
@Type(() => CompanyCreateWithoutWorkspaceInput)
|
||||
create?: Array<CompanyCreateWithoutWorkspaceInput>;
|
||||
|
||||
@Field(() => [CompanyCreateOrConnectWithoutWorkspaceInput], {nullable:true})
|
||||
@Field(() => [CompanyCreateOrConnectWithoutWorkspaceInput], {
|
||||
nullable: true,
|
||||
})
|
||||
@Type(() => CompanyCreateOrConnectWithoutWorkspaceInput)
|
||||
connectOrCreate?: Array<CompanyCreateOrConnectWithoutWorkspaceInput>;
|
||||
|
||||
|
||||
@ -6,7 +6,6 @@ import { PersonUncheckedCreateNestedManyWithoutCompanyInput } from '../person/pe
|
||||
|
||||
@InputType()
|
||||
export class CompanyUncheckedCreateWithoutAccountOwnerInput {
|
||||
|
||||
@Field(() => String, { nullable: false })
|
||||
id!: string;
|
||||
|
||||
@ -34,6 +33,8 @@ export class CompanyUncheckedCreateWithoutAccountOwnerInput {
|
||||
@HideField()
|
||||
workspaceId!: string;
|
||||
|
||||
@Field(() => PersonUncheckedCreateNestedManyWithoutCompanyInput, {nullable:true})
|
||||
@Field(() => PersonUncheckedCreateNestedManyWithoutCompanyInput, {
|
||||
nullable: true,
|
||||
})
|
||||
people?: PersonUncheckedCreateNestedManyWithoutCompanyInput;
|
||||
}
|
||||
|
||||
@ -5,7 +5,6 @@ import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CompanyUncheckedCreateWithoutPeopleInput {
|
||||
|
||||
@Field(() => String, { nullable: false })
|
||||
id!: string;
|
||||
|
||||
|
||||
@ -5,7 +5,6 @@ import { PersonUncheckedCreateNestedManyWithoutCompanyInput } from '../person/pe
|
||||
|
||||
@InputType()
|
||||
export class CompanyUncheckedCreateWithoutWorkspaceInput {
|
||||
|
||||
@Field(() => String, { nullable: false })
|
||||
id!: string;
|
||||
|
||||
@ -33,6 +32,8 @@ export class CompanyUncheckedCreateWithoutWorkspaceInput {
|
||||
@Field(() => String, { nullable: true })
|
||||
accountOwnerId?: string;
|
||||
|
||||
@Field(() => PersonUncheckedCreateNestedManyWithoutCompanyInput, {nullable:true})
|
||||
@Field(() => PersonUncheckedCreateNestedManyWithoutCompanyInput, {
|
||||
nullable: true,
|
||||
})
|
||||
people?: PersonUncheckedCreateNestedManyWithoutCompanyInput;
|
||||
}
|
||||
|
||||
@ -6,7 +6,6 @@ import { PersonUncheckedCreateNestedManyWithoutCompanyInput } from '../person/pe
|
||||
|
||||
@InputType()
|
||||
export class CompanyUncheckedCreateInput {
|
||||
|
||||
@Field(() => String, { nullable: false })
|
||||
id!: string;
|
||||
|
||||
@ -37,6 +36,8 @@ export class CompanyUncheckedCreateInput {
|
||||
@HideField()
|
||||
workspaceId!: string;
|
||||
|
||||
@Field(() => PersonUncheckedCreateNestedManyWithoutCompanyInput, {nullable:true})
|
||||
@Field(() => PersonUncheckedCreateNestedManyWithoutCompanyInput, {
|
||||
nullable: true,
|
||||
})
|
||||
people?: PersonUncheckedCreateNestedManyWithoutCompanyInput;
|
||||
}
|
||||
|
||||
@ -12,16 +12,19 @@ import { CompanyScalarWhereInput } from './company-scalar-where.input';
|
||||
|
||||
@InputType()
|
||||
export class CompanyUncheckedUpdateManyWithoutAccountOwnerNestedInput {
|
||||
|
||||
@Field(() => [CompanyCreateWithoutAccountOwnerInput], { nullable: true })
|
||||
@Type(() => CompanyCreateWithoutAccountOwnerInput)
|
||||
create?: Array<CompanyCreateWithoutAccountOwnerInput>;
|
||||
|
||||
@Field(() => [CompanyCreateOrConnectWithoutAccountOwnerInput], {nullable:true})
|
||||
@Field(() => [CompanyCreateOrConnectWithoutAccountOwnerInput], {
|
||||
nullable: true,
|
||||
})
|
||||
@Type(() => CompanyCreateOrConnectWithoutAccountOwnerInput)
|
||||
connectOrCreate?: Array<CompanyCreateOrConnectWithoutAccountOwnerInput>;
|
||||
|
||||
@Field(() => [CompanyUpsertWithWhereUniqueWithoutAccountOwnerInput], {nullable:true})
|
||||
@Field(() => [CompanyUpsertWithWhereUniqueWithoutAccountOwnerInput], {
|
||||
nullable: true,
|
||||
})
|
||||
@Type(() => CompanyUpsertWithWhereUniqueWithoutAccountOwnerInput)
|
||||
upsert?: Array<CompanyUpsertWithWhereUniqueWithoutAccountOwnerInput>;
|
||||
|
||||
@ -45,11 +48,15 @@ export class CompanyUncheckedUpdateManyWithoutAccountOwnerNestedInput {
|
||||
@Type(() => CompanyWhereUniqueInput)
|
||||
connect?: Array<CompanyWhereUniqueInput>;
|
||||
|
||||
@Field(() => [CompanyUpdateWithWhereUniqueWithoutAccountOwnerInput], {nullable:true})
|
||||
@Field(() => [CompanyUpdateWithWhereUniqueWithoutAccountOwnerInput], {
|
||||
nullable: true,
|
||||
})
|
||||
@Type(() => CompanyUpdateWithWhereUniqueWithoutAccountOwnerInput)
|
||||
update?: Array<CompanyUpdateWithWhereUniqueWithoutAccountOwnerInput>;
|
||||
|
||||
@Field(() => [CompanyUpdateManyWithWhereWithoutAccountOwnerInput], {nullable:true})
|
||||
@Field(() => [CompanyUpdateManyWithWhereWithoutAccountOwnerInput], {
|
||||
nullable: true,
|
||||
})
|
||||
@Type(() => CompanyUpdateManyWithWhereWithoutAccountOwnerInput)
|
||||
updateMany?: Array<CompanyUpdateManyWithWhereWithoutAccountOwnerInput>;
|
||||
|
||||
|
||||
@ -8,7 +8,6 @@ import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CompanyUncheckedUpdateManyWithoutCompaniesInput {
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
|
||||
@ -12,16 +12,19 @@ import { CompanyScalarWhereInput } from './company-scalar-where.input';
|
||||
|
||||
@InputType()
|
||||
export class CompanyUncheckedUpdateManyWithoutWorkspaceNestedInput {
|
||||
|
||||
@Field(() => [CompanyCreateWithoutWorkspaceInput], { nullable: true })
|
||||
@Type(() => CompanyCreateWithoutWorkspaceInput)
|
||||
create?: Array<CompanyCreateWithoutWorkspaceInput>;
|
||||
|
||||
@Field(() => [CompanyCreateOrConnectWithoutWorkspaceInput], {nullable:true})
|
||||
@Field(() => [CompanyCreateOrConnectWithoutWorkspaceInput], {
|
||||
nullable: true,
|
||||
})
|
||||
@Type(() => CompanyCreateOrConnectWithoutWorkspaceInput)
|
||||
connectOrCreate?: Array<CompanyCreateOrConnectWithoutWorkspaceInput>;
|
||||
|
||||
@Field(() => [CompanyUpsertWithWhereUniqueWithoutWorkspaceInput], {nullable:true})
|
||||
@Field(() => [CompanyUpsertWithWhereUniqueWithoutWorkspaceInput], {
|
||||
nullable: true,
|
||||
})
|
||||
@Type(() => CompanyUpsertWithWhereUniqueWithoutWorkspaceInput)
|
||||
upsert?: Array<CompanyUpsertWithWhereUniqueWithoutWorkspaceInput>;
|
||||
|
||||
@ -45,11 +48,15 @@ export class CompanyUncheckedUpdateManyWithoutWorkspaceNestedInput {
|
||||
@Type(() => CompanyWhereUniqueInput)
|
||||
connect?: Array<CompanyWhereUniqueInput>;
|
||||
|
||||
@Field(() => [CompanyUpdateWithWhereUniqueWithoutWorkspaceInput], {nullable:true})
|
||||
@Field(() => [CompanyUpdateWithWhereUniqueWithoutWorkspaceInput], {
|
||||
nullable: true,
|
||||
})
|
||||
@Type(() => CompanyUpdateWithWhereUniqueWithoutWorkspaceInput)
|
||||
update?: Array<CompanyUpdateWithWhereUniqueWithoutWorkspaceInput>;
|
||||
|
||||
@Field(() => [CompanyUpdateManyWithWhereWithoutWorkspaceInput], {nullable:true})
|
||||
@Field(() => [CompanyUpdateManyWithWhereWithoutWorkspaceInput], {
|
||||
nullable: true,
|
||||
})
|
||||
@Type(() => CompanyUpdateManyWithWhereWithoutWorkspaceInput)
|
||||
updateMany?: Array<CompanyUpdateManyWithWhereWithoutWorkspaceInput>;
|
||||
|
||||
|
||||
@ -9,7 +9,6 @@ import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CompanyUncheckedUpdateManyInput {
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
|
||||
@ -9,7 +9,6 @@ import { PersonUncheckedUpdateManyWithoutCompanyNestedInput } from '../person/pe
|
||||
|
||||
@InputType()
|
||||
export class CompanyUncheckedUpdateWithoutAccountOwnerInput {
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@ -37,6 +36,8 @@ export class CompanyUncheckedUpdateWithoutAccountOwnerInput {
|
||||
@HideField()
|
||||
workspaceId?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => PersonUncheckedUpdateManyWithoutCompanyNestedInput, {nullable:true})
|
||||
@Field(() => PersonUncheckedUpdateManyWithoutCompanyNestedInput, {
|
||||
nullable: true,
|
||||
})
|
||||
people?: PersonUncheckedUpdateManyWithoutCompanyNestedInput;
|
||||
}
|
||||
|
||||
@ -9,7 +9,6 @@ import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CompanyUncheckedUpdateWithoutPeopleInput {
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
|
||||
@ -9,7 +9,6 @@ import { PersonUncheckedUpdateManyWithoutCompanyNestedInput } from '../person/pe
|
||||
|
||||
@InputType()
|
||||
export class CompanyUncheckedUpdateWithoutWorkspaceInput {
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@ -37,6 +36,8 @@ export class CompanyUncheckedUpdateWithoutWorkspaceInput {
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
accountOwnerId?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => PersonUncheckedUpdateManyWithoutCompanyNestedInput, {nullable:true})
|
||||
@Field(() => PersonUncheckedUpdateManyWithoutCompanyNestedInput, {
|
||||
nullable: true,
|
||||
})
|
||||
people?: PersonUncheckedUpdateManyWithoutCompanyNestedInput;
|
||||
}
|
||||
|
||||
@ -10,7 +10,6 @@ import { PersonUncheckedUpdateManyWithoutCompanyNestedInput } from '../person/pe
|
||||
|
||||
@InputType()
|
||||
export class CompanyUncheckedUpdateInput {
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@ -41,6 +40,8 @@ export class CompanyUncheckedUpdateInput {
|
||||
@HideField()
|
||||
workspaceId?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => PersonUncheckedUpdateManyWithoutCompanyNestedInput, {nullable:true})
|
||||
@Field(() => PersonUncheckedUpdateManyWithoutCompanyNestedInput, {
|
||||
nullable: true,
|
||||
})
|
||||
people?: PersonUncheckedUpdateManyWithoutCompanyNestedInput;
|
||||
}
|
||||
|
||||
@ -7,7 +7,6 @@ import { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-fi
|
||||
|
||||
@InputType()
|
||||
export class CompanyUpdateManyMutationInput {
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
|
||||
@ -6,7 +6,6 @@ import { CompanyUpdateManyMutationInput } from './company-update-many-mutation.i
|
||||
|
||||
@InputType()
|
||||
export class CompanyUpdateManyWithWhereWithoutAccountOwnerInput {
|
||||
|
||||
@Field(() => CompanyScalarWhereInput, { nullable: false })
|
||||
@Type(() => CompanyScalarWhereInput)
|
||||
where!: CompanyScalarWhereInput;
|
||||
|
||||
@ -6,7 +6,6 @@ import { CompanyUpdateManyMutationInput } from './company-update-many-mutation.i
|
||||
|
||||
@InputType()
|
||||
export class CompanyUpdateManyWithWhereWithoutWorkspaceInput {
|
||||
|
||||
@Field(() => CompanyScalarWhereInput, { nullable: false })
|
||||
@Type(() => CompanyScalarWhereInput)
|
||||
where!: CompanyScalarWhereInput;
|
||||
|
||||
@ -12,16 +12,19 @@ import { CompanyScalarWhereInput } from './company-scalar-where.input';
|
||||
|
||||
@InputType()
|
||||
export class CompanyUpdateManyWithoutAccountOwnerNestedInput {
|
||||
|
||||
@Field(() => [CompanyCreateWithoutAccountOwnerInput], { nullable: true })
|
||||
@Type(() => CompanyCreateWithoutAccountOwnerInput)
|
||||
create?: Array<CompanyCreateWithoutAccountOwnerInput>;
|
||||
|
||||
@Field(() => [CompanyCreateOrConnectWithoutAccountOwnerInput], {nullable:true})
|
||||
@Field(() => [CompanyCreateOrConnectWithoutAccountOwnerInput], {
|
||||
nullable: true,
|
||||
})
|
||||
@Type(() => CompanyCreateOrConnectWithoutAccountOwnerInput)
|
||||
connectOrCreate?: Array<CompanyCreateOrConnectWithoutAccountOwnerInput>;
|
||||
|
||||
@Field(() => [CompanyUpsertWithWhereUniqueWithoutAccountOwnerInput], {nullable:true})
|
||||
@Field(() => [CompanyUpsertWithWhereUniqueWithoutAccountOwnerInput], {
|
||||
nullable: true,
|
||||
})
|
||||
@Type(() => CompanyUpsertWithWhereUniqueWithoutAccountOwnerInput)
|
||||
upsert?: Array<CompanyUpsertWithWhereUniqueWithoutAccountOwnerInput>;
|
||||
|
||||
@ -45,11 +48,15 @@ export class CompanyUpdateManyWithoutAccountOwnerNestedInput {
|
||||
@Type(() => CompanyWhereUniqueInput)
|
||||
connect?: Array<CompanyWhereUniqueInput>;
|
||||
|
||||
@Field(() => [CompanyUpdateWithWhereUniqueWithoutAccountOwnerInput], {nullable:true})
|
||||
@Field(() => [CompanyUpdateWithWhereUniqueWithoutAccountOwnerInput], {
|
||||
nullable: true,
|
||||
})
|
||||
@Type(() => CompanyUpdateWithWhereUniqueWithoutAccountOwnerInput)
|
||||
update?: Array<CompanyUpdateWithWhereUniqueWithoutAccountOwnerInput>;
|
||||
|
||||
@Field(() => [CompanyUpdateManyWithWhereWithoutAccountOwnerInput], {nullable:true})
|
||||
@Field(() => [CompanyUpdateManyWithWhereWithoutAccountOwnerInput], {
|
||||
nullable: true,
|
||||
})
|
||||
@Type(() => CompanyUpdateManyWithWhereWithoutAccountOwnerInput)
|
||||
updateMany?: Array<CompanyUpdateManyWithWhereWithoutAccountOwnerInput>;
|
||||
|
||||
|
||||
@ -12,16 +12,19 @@ import { CompanyScalarWhereInput } from './company-scalar-where.input';
|
||||
|
||||
@InputType()
|
||||
export class CompanyUpdateManyWithoutWorkspaceNestedInput {
|
||||
|
||||
@Field(() => [CompanyCreateWithoutWorkspaceInput], { nullable: true })
|
||||
@Type(() => CompanyCreateWithoutWorkspaceInput)
|
||||
create?: Array<CompanyCreateWithoutWorkspaceInput>;
|
||||
|
||||
@Field(() => [CompanyCreateOrConnectWithoutWorkspaceInput], {nullable:true})
|
||||
@Field(() => [CompanyCreateOrConnectWithoutWorkspaceInput], {
|
||||
nullable: true,
|
||||
})
|
||||
@Type(() => CompanyCreateOrConnectWithoutWorkspaceInput)
|
||||
connectOrCreate?: Array<CompanyCreateOrConnectWithoutWorkspaceInput>;
|
||||
|
||||
@Field(() => [CompanyUpsertWithWhereUniqueWithoutWorkspaceInput], {nullable:true})
|
||||
@Field(() => [CompanyUpsertWithWhereUniqueWithoutWorkspaceInput], {
|
||||
nullable: true,
|
||||
})
|
||||
@Type(() => CompanyUpsertWithWhereUniqueWithoutWorkspaceInput)
|
||||
upsert?: Array<CompanyUpsertWithWhereUniqueWithoutWorkspaceInput>;
|
||||
|
||||
@ -45,11 +48,15 @@ export class CompanyUpdateManyWithoutWorkspaceNestedInput {
|
||||
@Type(() => CompanyWhereUniqueInput)
|
||||
connect?: Array<CompanyWhereUniqueInput>;
|
||||
|
||||
@Field(() => [CompanyUpdateWithWhereUniqueWithoutWorkspaceInput], {nullable:true})
|
||||
@Field(() => [CompanyUpdateWithWhereUniqueWithoutWorkspaceInput], {
|
||||
nullable: true,
|
||||
})
|
||||
@Type(() => CompanyUpdateWithWhereUniqueWithoutWorkspaceInput)
|
||||
update?: Array<CompanyUpdateWithWhereUniqueWithoutWorkspaceInput>;
|
||||
|
||||
@Field(() => [CompanyUpdateManyWithWhereWithoutWorkspaceInput], {nullable:true})
|
||||
@Field(() => [CompanyUpdateManyWithWhereWithoutWorkspaceInput], {
|
||||
nullable: true,
|
||||
})
|
||||
@Type(() => CompanyUpdateManyWithWhereWithoutWorkspaceInput)
|
||||
updateMany?: Array<CompanyUpdateManyWithWhereWithoutWorkspaceInput>;
|
||||
|
||||
|
||||
@ -9,7 +9,6 @@ import { CompanyUpdateWithoutPeopleInput } from './company-update-without-people
|
||||
|
||||
@InputType()
|
||||
export class CompanyUpdateOneWithoutPeopleNestedInput {
|
||||
|
||||
@Field(() => CompanyCreateWithoutPeopleInput, { nullable: true })
|
||||
@Type(() => CompanyCreateWithoutPeopleInput)
|
||||
create?: CompanyCreateWithoutPeopleInput;
|
||||
|
||||
@ -6,7 +6,6 @@ import { CompanyUpdateWithoutAccountOwnerInput } from './company-update-without-
|
||||
|
||||
@InputType()
|
||||
export class CompanyUpdateWithWhereUniqueWithoutAccountOwnerInput {
|
||||
|
||||
@Field(() => CompanyWhereUniqueInput, { nullable: false })
|
||||
@Type(() => CompanyWhereUniqueInput)
|
||||
where!: CompanyWhereUniqueInput;
|
||||
|
||||
@ -6,7 +6,6 @@ import { CompanyUpdateWithoutWorkspaceInput } from './company-update-without-wor
|
||||
|
||||
@InputType()
|
||||
export class CompanyUpdateWithWhereUniqueWithoutWorkspaceInput {
|
||||
|
||||
@Field(() => CompanyWhereUniqueInput, { nullable: false })
|
||||
@Type(() => CompanyWhereUniqueInput)
|
||||
where!: CompanyWhereUniqueInput;
|
||||
|
||||
@ -10,7 +10,6 @@ import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CompanyUpdateWithoutAccountOwnerInput {
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
|
||||
@ -10,7 +10,6 @@ import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CompanyUpdateWithoutPeopleInput {
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
|
||||
@ -9,7 +9,6 @@ import { PersonUpdateManyWithoutCompanyNestedInput } from '../person/person-upda
|
||||
|
||||
@InputType()
|
||||
export class CompanyUpdateWithoutWorkspaceInput {
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
|
||||
@ -11,7 +11,6 @@ import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CompanyUpdateInput {
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
|
||||
@ -7,7 +7,6 @@ import { CompanyCreateWithoutAccountOwnerInput } from './company-create-without-
|
||||
|
||||
@InputType()
|
||||
export class CompanyUpsertWithWhereUniqueWithoutAccountOwnerInput {
|
||||
|
||||
@Field(() => CompanyWhereUniqueInput, { nullable: false })
|
||||
@Type(() => CompanyWhereUniqueInput)
|
||||
where!: CompanyWhereUniqueInput;
|
||||
|
||||
@ -7,7 +7,6 @@ import { CompanyCreateWithoutWorkspaceInput } from './company-create-without-wor
|
||||
|
||||
@InputType()
|
||||
export class CompanyUpsertWithWhereUniqueWithoutWorkspaceInput {
|
||||
|
||||
@Field(() => CompanyWhereUniqueInput, { nullable: false })
|
||||
@Type(() => CompanyWhereUniqueInput)
|
||||
where!: CompanyWhereUniqueInput;
|
||||
|
||||
@ -6,7 +6,6 @@ import { CompanyCreateWithoutPeopleInput } from './company-create-without-people
|
||||
|
||||
@InputType()
|
||||
export class CompanyUpsertWithoutPeopleInput {
|
||||
|
||||
@Field(() => CompanyUpdateWithoutPeopleInput, { nullable: false })
|
||||
@Type(() => CompanyUpdateWithoutPeopleInput)
|
||||
update!: CompanyUpdateWithoutPeopleInput;
|
||||
|
||||
@ -3,7 +3,6 @@ import { InputType } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CompanyWhereUniqueInput {
|
||||
|
||||
@Field(() => String, { nullable: true })
|
||||
id?: string;
|
||||
}
|
||||
|
||||
@ -12,7 +12,6 @@ import { WorkspaceRelationFilter } from '../workspace/workspace-relation-filter.
|
||||
|
||||
@InputType()
|
||||
export class CompanyWhereInput {
|
||||
|
||||
@Field(() => [CompanyWhereInput], { nullable: true })
|
||||
AND?: Array<CompanyWhereInput>;
|
||||
|
||||
|
||||
@ -9,7 +9,6 @@ import { CompanyCount } from './company-count.output';
|
||||
|
||||
@ObjectType()
|
||||
export class Company {
|
||||
|
||||
@Field(() => ID, { nullable: false })
|
||||
id!: string;
|
||||
|
||||
|
||||
@ -5,7 +5,6 @@ import { Type } from 'class-transformer';
|
||||
|
||||
@ArgsType()
|
||||
export class CreateManyCompanyArgs {
|
||||
|
||||
@Field(() => [CompanyCreateManyInput], { nullable: false })
|
||||
@Type(() => CompanyCreateManyInput)
|
||||
data!: Array<CompanyCreateManyInput>;
|
||||
|
||||
@ -5,7 +5,6 @@ import { Type } from 'class-transformer';
|
||||
|
||||
@ArgsType()
|
||||
export class CreateOneCompanyArgs {
|
||||
|
||||
@Field(() => CompanyCreateInput, { nullable: false })
|
||||
@Type(() => CompanyCreateInput)
|
||||
data!: CompanyCreateInput;
|
||||
|
||||
@ -5,7 +5,6 @@ import { Type } from 'class-transformer';
|
||||
|
||||
@ArgsType()
|
||||
export class DeleteManyCompanyArgs {
|
||||
|
||||
@Field(() => CompanyWhereInput, { nullable: true })
|
||||
@Type(() => CompanyWhereInput)
|
||||
where?: CompanyWhereInput;
|
||||
|
||||
@ -5,7 +5,6 @@ import { Type } from 'class-transformer';
|
||||
|
||||
@ArgsType()
|
||||
export class DeleteOneCompanyArgs {
|
||||
|
||||
@Field(() => CompanyWhereUniqueInput, { nullable: false })
|
||||
@Type(() => CompanyWhereUniqueInput)
|
||||
where!: CompanyWhereUniqueInput;
|
||||
|
||||
@ -9,7 +9,6 @@ import { CompanyScalarFieldEnum } from './company-scalar-field.enum';
|
||||
|
||||
@ArgsType()
|
||||
export class FindFirstCompanyOrThrowArgs {
|
||||
|
||||
@Field(() => CompanyWhereInput, { nullable: true })
|
||||
@Type(() => CompanyWhereInput)
|
||||
where?: CompanyWhereInput;
|
||||
|
||||
@ -9,7 +9,6 @@ import { CompanyScalarFieldEnum } from './company-scalar-field.enum';
|
||||
|
||||
@ArgsType()
|
||||
export class FindFirstCompanyArgs {
|
||||
|
||||
@Field(() => CompanyWhereInput, { nullable: true })
|
||||
@Type(() => CompanyWhereInput)
|
||||
where?: CompanyWhereInput;
|
||||
|
||||
@ -9,7 +9,6 @@ import { CompanyScalarFieldEnum } from './company-scalar-field.enum';
|
||||
|
||||
@ArgsType()
|
||||
export class FindManyCompanyArgs {
|
||||
|
||||
@Field(() => CompanyWhereInput, { nullable: true })
|
||||
@Type(() => CompanyWhereInput)
|
||||
where?: CompanyWhereInput;
|
||||
|
||||
@ -5,7 +5,6 @@ import { Type } from 'class-transformer';
|
||||
|
||||
@ArgsType()
|
||||
export class FindUniqueCompanyOrThrowArgs {
|
||||
|
||||
@Field(() => CompanyWhereUniqueInput, { nullable: false })
|
||||
@Type(() => CompanyWhereUniqueInput)
|
||||
where!: CompanyWhereUniqueInput;
|
||||
|
||||
@ -5,7 +5,6 @@ import { Type } from 'class-transformer';
|
||||
|
||||
@ArgsType()
|
||||
export class FindUniqueCompanyArgs {
|
||||
|
||||
@Field(() => CompanyWhereUniqueInput, { nullable: false })
|
||||
@Type(() => CompanyWhereUniqueInput)
|
||||
where!: CompanyWhereUniqueInput;
|
||||
|
||||
@ -6,7 +6,6 @@ import { CompanyWhereInput } from './company-where.input';
|
||||
|
||||
@ArgsType()
|
||||
export class UpdateManyCompanyArgs {
|
||||
|
||||
@Field(() => CompanyUpdateManyMutationInput, { nullable: false })
|
||||
@Type(() => CompanyUpdateManyMutationInput)
|
||||
data!: CompanyUpdateManyMutationInput;
|
||||
|
||||
@ -6,7 +6,6 @@ import { CompanyWhereUniqueInput } from './company-where-unique.input';
|
||||
|
||||
@ArgsType()
|
||||
export class UpdateOneCompanyArgs {
|
||||
|
||||
@Field(() => CompanyUpdateInput, { nullable: false })
|
||||
@Type(() => CompanyUpdateInput)
|
||||
data!: CompanyUpdateInput;
|
||||
|
||||
@ -7,7 +7,6 @@ import { CompanyUpdateInput } from './company-update.input';
|
||||
|
||||
@ArgsType()
|
||||
export class UpsertOneCompanyArgs {
|
||||
|
||||
@Field(() => CompanyWhereUniqueInput, { nullable: false })
|
||||
@Type(() => CompanyWhereUniqueInput)
|
||||
where!: CompanyWhereUniqueInput;
|
||||
|
||||
@ -6,7 +6,6 @@ import { PersonMaxAggregate } from './person-max-aggregate.output';
|
||||
|
||||
@ObjectType()
|
||||
export class AggregatePerson {
|
||||
|
||||
@Field(() => PersonCountAggregate, { nullable: true })
|
||||
_count?: PersonCountAggregate;
|
||||
|
||||
|
||||
@ -5,7 +5,6 @@ import { Type } from 'class-transformer';
|
||||
|
||||
@ArgsType()
|
||||
export class CreateManyPersonArgs {
|
||||
|
||||
@Field(() => [PersonCreateManyInput], { nullable: false })
|
||||
@Type(() => PersonCreateManyInput)
|
||||
data!: Array<PersonCreateManyInput>;
|
||||
|
||||
@ -5,7 +5,6 @@ import { Type } from 'class-transformer';
|
||||
|
||||
@ArgsType()
|
||||
export class CreateOnePersonArgs {
|
||||
|
||||
@Field(() => PersonCreateInput, { nullable: false })
|
||||
@Type(() => PersonCreateInput)
|
||||
data!: PersonCreateInput;
|
||||
|
||||
@ -5,7 +5,6 @@ import { Type } from 'class-transformer';
|
||||
|
||||
@ArgsType()
|
||||
export class DeleteManyPersonArgs {
|
||||
|
||||
@Field(() => PersonWhereInput, { nullable: true })
|
||||
@Type(() => PersonWhereInput)
|
||||
where?: PersonWhereInput;
|
||||
|
||||
@ -5,7 +5,6 @@ import { Type } from 'class-transformer';
|
||||
|
||||
@ArgsType()
|
||||
export class DeleteOnePersonArgs {
|
||||
|
||||
@Field(() => PersonWhereUniqueInput, { nullable: false })
|
||||
@Type(() => PersonWhereUniqueInput)
|
||||
where!: PersonWhereUniqueInput;
|
||||
|
||||
@ -9,7 +9,6 @@ import { PersonScalarFieldEnum } from './person-scalar-field.enum';
|
||||
|
||||
@ArgsType()
|
||||
export class FindFirstPersonOrThrowArgs {
|
||||
|
||||
@Field(() => PersonWhereInput, { nullable: true })
|
||||
@Type(() => PersonWhereInput)
|
||||
where?: PersonWhereInput;
|
||||
|
||||
@ -9,7 +9,6 @@ import { PersonScalarFieldEnum } from './person-scalar-field.enum';
|
||||
|
||||
@ArgsType()
|
||||
export class FindFirstPersonArgs {
|
||||
|
||||
@Field(() => PersonWhereInput, { nullable: true })
|
||||
@Type(() => PersonWhereInput)
|
||||
where?: PersonWhereInput;
|
||||
|
||||
@ -9,7 +9,6 @@ import { PersonScalarFieldEnum } from './person-scalar-field.enum';
|
||||
|
||||
@ArgsType()
|
||||
export class FindManyPersonArgs {
|
||||
|
||||
@Field(() => PersonWhereInput, { nullable: true })
|
||||
@Type(() => PersonWhereInput)
|
||||
where?: PersonWhereInput;
|
||||
|
||||
@ -5,7 +5,6 @@ import { Type } from 'class-transformer';
|
||||
|
||||
@ArgsType()
|
||||
export class FindUniquePersonOrThrowArgs {
|
||||
|
||||
@Field(() => PersonWhereUniqueInput, { nullable: false })
|
||||
@Type(() => PersonWhereUniqueInput)
|
||||
where!: PersonWhereUniqueInput;
|
||||
|
||||
@ -5,7 +5,6 @@ import { Type } from 'class-transformer';
|
||||
|
||||
@ArgsType()
|
||||
export class FindUniquePersonArgs {
|
||||
|
||||
@Field(() => PersonWhereUniqueInput, { nullable: false })
|
||||
@Type(() => PersonWhereUniqueInput)
|
||||
where!: PersonWhereUniqueInput;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user