Skip to content

Commit

Permalink
Refacto
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesBochet committed Jul 18, 2023
1 parent 492ddc7 commit b69a304
Show file tree
Hide file tree
Showing 305 changed files with 1,332 additions and 1,927 deletions.
1 change: 0 additions & 1 deletion server/src/constants/settings/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ export const settings: Settings = {
imageCropSizes: {
'profile-picture': ['original'],
'workspace-logo': ['original'],
attachment: ['original'],
},
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ type ValueOfFileFolder = `${FileFolder}`;
export interface Settings {
storage: {
imageCropSizes: {
[key in ValueOfFileFolder]: ShortCropSize[];
[key in ValueOfFileFolder]?: ShortCropSize[];
};
};
}
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { AttachmentCreateWithoutActivityInput } from './attachment-create-without-activity.input';
import { Type } from 'class-transformer';
import { HideField } from '@nestjs/graphql';
import { AttachmentCreateOrConnectWithoutActivityInput } from './attachment-create-or-connect-without-activity.input';
import { AttachmentCreateManyActivityInputEnvelope } from './attachment-create-many-activity-input-envelope.input';
import { AttachmentWhereUniqueInput } from './attachment-where-unique.input';
import { Type } from 'class-transformer';

@InputType()
export class AttachmentCreateNestedManyWithoutActivityInput {

@Field(() => [AttachmentCreateWithoutActivityInput], {nullable:true})
@Type(() => AttachmentCreateWithoutActivityInput)
@HideField()
create?: Array<AttachmentCreateWithoutActivityInput>;

@Field(() => [AttachmentCreateOrConnectWithoutActivityInput], {nullable:true})
@Type(() => AttachmentCreateOrConnectWithoutActivityInput)
@HideField()
connectOrCreate?: Array<AttachmentCreateOrConnectWithoutActivityInput>;

@Field(() => AttachmentCreateManyActivityInputEnvelope, {nullable:true})
@Type(() => AttachmentCreateManyActivityInputEnvelope)
@HideField()
createMany?: AttachmentCreateManyActivityInputEnvelope;

@Field(() => [AttachmentWhereUniqueInput], {nullable:true})
Expand Down
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { AttachmentCreateWithoutAuthorInput } from './attachment-create-without-author.input';
import { Type } from 'class-transformer';
import { HideField } from '@nestjs/graphql';
import { AttachmentCreateOrConnectWithoutAuthorInput } from './attachment-create-or-connect-without-author.input';
import { AttachmentCreateManyAuthorInputEnvelope } from './attachment-create-many-author-input-envelope.input';
import { AttachmentWhereUniqueInput } from './attachment-where-unique.input';
import { Type } from 'class-transformer';

@InputType()
export class AttachmentCreateNestedManyWithoutAuthorInput {

@Field(() => [AttachmentCreateWithoutAuthorInput], {nullable:true})
@Type(() => AttachmentCreateWithoutAuthorInput)
@HideField()
create?: Array<AttachmentCreateWithoutAuthorInput>;

@Field(() => [AttachmentCreateOrConnectWithoutAuthorInput], {nullable:true})
@Type(() => AttachmentCreateOrConnectWithoutAuthorInput)
@HideField()
connectOrCreate?: Array<AttachmentCreateOrConnectWithoutAuthorInput>;

@Field(() => AttachmentCreateManyAuthorInputEnvelope, {nullable:true})
@Type(() => AttachmentCreateManyAuthorInputEnvelope)
@HideField()
createMany?: AttachmentCreateManyAuthorInputEnvelope;

@Field(() => [AttachmentWhereUniqueInput], {nullable:true})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { InputType } from '@nestjs/graphql';
import { AttachmentWhereUniqueInput } from './attachment-where-unique.input';
import { Type } from 'class-transformer';
import { AttachmentCreateWithoutActivityInput } from './attachment-create-without-activity.input';
import { HideField } from '@nestjs/graphql';

@InputType()
export class AttachmentCreateOrConnectWithoutActivityInput {
Expand All @@ -11,7 +12,6 @@ export class AttachmentCreateOrConnectWithoutActivityInput {
@Type(() => AttachmentWhereUniqueInput)
where!: AttachmentWhereUniqueInput;

@Field(() => AttachmentCreateWithoutActivityInput, {nullable:false})
@Type(() => AttachmentCreateWithoutActivityInput)
@HideField()
create!: AttachmentCreateWithoutActivityInput;
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { InputType } from '@nestjs/graphql';
import { AttachmentWhereUniqueInput } from './attachment-where-unique.input';
import { Type } from 'class-transformer';
import { AttachmentCreateWithoutAuthorInput } from './attachment-create-without-author.input';
import { HideField } from '@nestjs/graphql';

@InputType()
export class AttachmentCreateOrConnectWithoutAuthorInput {
Expand All @@ -11,7 +12,6 @@ export class AttachmentCreateOrConnectWithoutAuthorInput {
@Type(() => AttachmentWhereUniqueInput)
where!: AttachmentWhereUniqueInput;

@Field(() => AttachmentCreateWithoutAuthorInput, {nullable:false})
@Type(() => AttachmentCreateWithoutAuthorInput)
@HideField()
create!: AttachmentCreateWithoutAuthorInput;
}
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { AttachmentCreateWithoutActivityInput } from './attachment-create-without-activity.input';
import { Type } from 'class-transformer';
import { HideField } from '@nestjs/graphql';
import { AttachmentCreateOrConnectWithoutActivityInput } from './attachment-create-or-connect-without-activity.input';
import { AttachmentCreateManyActivityInputEnvelope } from './attachment-create-many-activity-input-envelope.input';
import { AttachmentWhereUniqueInput } from './attachment-where-unique.input';
import { Type } from 'class-transformer';

@InputType()
export class AttachmentUncheckedCreateNestedManyWithoutActivityInput {

@Field(() => [AttachmentCreateWithoutActivityInput], {nullable:true})
@Type(() => AttachmentCreateWithoutActivityInput)
@HideField()
create?: Array<AttachmentCreateWithoutActivityInput>;

@Field(() => [AttachmentCreateOrConnectWithoutActivityInput], {nullable:true})
@Type(() => AttachmentCreateOrConnectWithoutActivityInput)
@HideField()
connectOrCreate?: Array<AttachmentCreateOrConnectWithoutActivityInput>;

@Field(() => AttachmentCreateManyActivityInputEnvelope, {nullable:true})
@Type(() => AttachmentCreateManyActivityInputEnvelope)
@HideField()
createMany?: AttachmentCreateManyActivityInputEnvelope;

@Field(() => [AttachmentWhereUniqueInput], {nullable:true})
Expand Down
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { AttachmentCreateWithoutAuthorInput } from './attachment-create-without-author.input';
import { Type } from 'class-transformer';
import { HideField } from '@nestjs/graphql';
import { AttachmentCreateOrConnectWithoutAuthorInput } from './attachment-create-or-connect-without-author.input';
import { AttachmentCreateManyAuthorInputEnvelope } from './attachment-create-many-author-input-envelope.input';
import { AttachmentWhereUniqueInput } from './attachment-where-unique.input';
import { Type } from 'class-transformer';

@InputType()
export class AttachmentUncheckedCreateNestedManyWithoutAuthorInput {

@Field(() => [AttachmentCreateWithoutAuthorInput], {nullable:true})
@Type(() => AttachmentCreateWithoutAuthorInput)
@HideField()
create?: Array<AttachmentCreateWithoutAuthorInput>;

@Field(() => [AttachmentCreateOrConnectWithoutAuthorInput], {nullable:true})
@Type(() => AttachmentCreateOrConnectWithoutAuthorInput)
@HideField()
connectOrCreate?: Array<AttachmentCreateOrConnectWithoutAuthorInput>;

@Field(() => AttachmentCreateManyAuthorInputEnvelope, {nullable:true})
@Type(() => AttachmentCreateManyAuthorInputEnvelope)
@HideField()
createMany?: AttachmentCreateManyAuthorInputEnvelope;

@Field(() => [AttachmentWhereUniqueInput], {nullable:true})
Expand Down
Original file line number Diff line number Diff line change
@@ -1,32 +1,29 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { AttachmentCreateWithoutActivityInput } from './attachment-create-without-activity.input';
import { Type } from 'class-transformer';
import { HideField } from '@nestjs/graphql';
import { AttachmentCreateOrConnectWithoutActivityInput } from './attachment-create-or-connect-without-activity.input';
import { AttachmentUpsertWithWhereUniqueWithoutActivityInput } from './attachment-upsert-with-where-unique-without-activity.input';
import { AttachmentCreateManyActivityInputEnvelope } from './attachment-create-many-activity-input-envelope.input';
import { AttachmentWhereUniqueInput } from './attachment-where-unique.input';
import { Type } from 'class-transformer';
import { AttachmentUpdateWithWhereUniqueWithoutActivityInput } from './attachment-update-with-where-unique-without-activity.input';
import { AttachmentUpdateManyWithWhereWithoutActivityInput } from './attachment-update-many-with-where-without-activity.input';
import { AttachmentScalarWhereInput } from './attachment-scalar-where.input';

@InputType()
export class AttachmentUncheckedUpdateManyWithoutActivityNestedInput {

@Field(() => [AttachmentCreateWithoutActivityInput], {nullable:true})
@Type(() => AttachmentCreateWithoutActivityInput)
@HideField()
create?: Array<AttachmentCreateWithoutActivityInput>;

@Field(() => [AttachmentCreateOrConnectWithoutActivityInput], {nullable:true})
@Type(() => AttachmentCreateOrConnectWithoutActivityInput)
@HideField()
connectOrCreate?: Array<AttachmentCreateOrConnectWithoutActivityInput>;

@Field(() => [AttachmentUpsertWithWhereUniqueWithoutActivityInput], {nullable:true})
@Type(() => AttachmentUpsertWithWhereUniqueWithoutActivityInput)
@HideField()
upsert?: Array<AttachmentUpsertWithWhereUniqueWithoutActivityInput>;

@Field(() => AttachmentCreateManyActivityInputEnvelope, {nullable:true})
@Type(() => AttachmentCreateManyActivityInputEnvelope)
@HideField()
createMany?: AttachmentCreateManyActivityInputEnvelope;

@Field(() => [AttachmentWhereUniqueInput], {nullable:true})
Expand All @@ -37,23 +34,19 @@ export class AttachmentUncheckedUpdateManyWithoutActivityNestedInput {
@Type(() => AttachmentWhereUniqueInput)
disconnect?: Array<AttachmentWhereUniqueInput>;

@Field(() => [AttachmentWhereUniqueInput], {nullable:true})
@Type(() => AttachmentWhereUniqueInput)
@HideField()
delete?: Array<AttachmentWhereUniqueInput>;

@Field(() => [AttachmentWhereUniqueInput], {nullable:true})
@Type(() => AttachmentWhereUniqueInput)
connect?: Array<AttachmentWhereUniqueInput>;

@Field(() => [AttachmentUpdateWithWhereUniqueWithoutActivityInput], {nullable:true})
@Type(() => AttachmentUpdateWithWhereUniqueWithoutActivityInput)
@HideField()
update?: Array<AttachmentUpdateWithWhereUniqueWithoutActivityInput>;

@Field(() => [AttachmentUpdateManyWithWhereWithoutActivityInput], {nullable:true})
@Type(() => AttachmentUpdateManyWithWhereWithoutActivityInput)
@HideField()
updateMany?: Array<AttachmentUpdateManyWithWhereWithoutActivityInput>;

@Field(() => [AttachmentScalarWhereInput], {nullable:true})
@Type(() => AttachmentScalarWhereInput)
@HideField()
deleteMany?: Array<AttachmentScalarWhereInput>;
}
Original file line number Diff line number Diff line change
@@ -1,32 +1,29 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { AttachmentCreateWithoutAuthorInput } from './attachment-create-without-author.input';
import { Type } from 'class-transformer';
import { HideField } from '@nestjs/graphql';
import { AttachmentCreateOrConnectWithoutAuthorInput } from './attachment-create-or-connect-without-author.input';
import { AttachmentUpsertWithWhereUniqueWithoutAuthorInput } from './attachment-upsert-with-where-unique-without-author.input';
import { AttachmentCreateManyAuthorInputEnvelope } from './attachment-create-many-author-input-envelope.input';
import { AttachmentWhereUniqueInput } from './attachment-where-unique.input';
import { Type } from 'class-transformer';
import { AttachmentUpdateWithWhereUniqueWithoutAuthorInput } from './attachment-update-with-where-unique-without-author.input';
import { AttachmentUpdateManyWithWhereWithoutAuthorInput } from './attachment-update-many-with-where-without-author.input';
import { AttachmentScalarWhereInput } from './attachment-scalar-where.input';

@InputType()
export class AttachmentUncheckedUpdateManyWithoutAuthorNestedInput {

@Field(() => [AttachmentCreateWithoutAuthorInput], {nullable:true})
@Type(() => AttachmentCreateWithoutAuthorInput)
@HideField()
create?: Array<AttachmentCreateWithoutAuthorInput>;

@Field(() => [AttachmentCreateOrConnectWithoutAuthorInput], {nullable:true})
@Type(() => AttachmentCreateOrConnectWithoutAuthorInput)
@HideField()
connectOrCreate?: Array<AttachmentCreateOrConnectWithoutAuthorInput>;

@Field(() => [AttachmentUpsertWithWhereUniqueWithoutAuthorInput], {nullable:true})
@Type(() => AttachmentUpsertWithWhereUniqueWithoutAuthorInput)
@HideField()
upsert?: Array<AttachmentUpsertWithWhereUniqueWithoutAuthorInput>;

@Field(() => AttachmentCreateManyAuthorInputEnvelope, {nullable:true})
@Type(() => AttachmentCreateManyAuthorInputEnvelope)
@HideField()
createMany?: AttachmentCreateManyAuthorInputEnvelope;

@Field(() => [AttachmentWhereUniqueInput], {nullable:true})
Expand All @@ -37,23 +34,19 @@ export class AttachmentUncheckedUpdateManyWithoutAuthorNestedInput {
@Type(() => AttachmentWhereUniqueInput)
disconnect?: Array<AttachmentWhereUniqueInput>;

@Field(() => [AttachmentWhereUniqueInput], {nullable:true})
@Type(() => AttachmentWhereUniqueInput)
@HideField()
delete?: Array<AttachmentWhereUniqueInput>;

@Field(() => [AttachmentWhereUniqueInput], {nullable:true})
@Type(() => AttachmentWhereUniqueInput)
connect?: Array<AttachmentWhereUniqueInput>;

@Field(() => [AttachmentUpdateWithWhereUniqueWithoutAuthorInput], {nullable:true})
@Type(() => AttachmentUpdateWithWhereUniqueWithoutAuthorInput)
@HideField()
update?: Array<AttachmentUpdateWithWhereUniqueWithoutAuthorInput>;

@Field(() => [AttachmentUpdateManyWithWhereWithoutAuthorInput], {nullable:true})
@Type(() => AttachmentUpdateManyWithWhereWithoutAuthorInput)
@HideField()
updateMany?: Array<AttachmentUpdateManyWithWhereWithoutAuthorInput>;

@Field(() => [AttachmentScalarWhereInput], {nullable:true})
@Type(() => AttachmentScalarWhereInput)
@HideField()
deleteMany?: Array<AttachmentScalarWhereInput>;
}
Original file line number Diff line number Diff line change
@@ -1,32 +1,29 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { AttachmentCreateWithoutActivityInput } from './attachment-create-without-activity.input';
import { Type } from 'class-transformer';
import { HideField } from '@nestjs/graphql';
import { AttachmentCreateOrConnectWithoutActivityInput } from './attachment-create-or-connect-without-activity.input';
import { AttachmentUpsertWithWhereUniqueWithoutActivityInput } from './attachment-upsert-with-where-unique-without-activity.input';
import { AttachmentCreateManyActivityInputEnvelope } from './attachment-create-many-activity-input-envelope.input';
import { AttachmentWhereUniqueInput } from './attachment-where-unique.input';
import { Type } from 'class-transformer';
import { AttachmentUpdateWithWhereUniqueWithoutActivityInput } from './attachment-update-with-where-unique-without-activity.input';
import { AttachmentUpdateManyWithWhereWithoutActivityInput } from './attachment-update-many-with-where-without-activity.input';
import { AttachmentScalarWhereInput } from './attachment-scalar-where.input';

@InputType()
export class AttachmentUpdateManyWithoutActivityNestedInput {

@Field(() => [AttachmentCreateWithoutActivityInput], {nullable:true})
@Type(() => AttachmentCreateWithoutActivityInput)
@HideField()
create?: Array<AttachmentCreateWithoutActivityInput>;

@Field(() => [AttachmentCreateOrConnectWithoutActivityInput], {nullable:true})
@Type(() => AttachmentCreateOrConnectWithoutActivityInput)
@HideField()
connectOrCreate?: Array<AttachmentCreateOrConnectWithoutActivityInput>;

@Field(() => [AttachmentUpsertWithWhereUniqueWithoutActivityInput], {nullable:true})
@Type(() => AttachmentUpsertWithWhereUniqueWithoutActivityInput)
@HideField()
upsert?: Array<AttachmentUpsertWithWhereUniqueWithoutActivityInput>;

@Field(() => AttachmentCreateManyActivityInputEnvelope, {nullable:true})
@Type(() => AttachmentCreateManyActivityInputEnvelope)
@HideField()
createMany?: AttachmentCreateManyActivityInputEnvelope;

@Field(() => [AttachmentWhereUniqueInput], {nullable:true})
Expand All @@ -37,23 +34,19 @@ export class AttachmentUpdateManyWithoutActivityNestedInput {
@Type(() => AttachmentWhereUniqueInput)
disconnect?: Array<AttachmentWhereUniqueInput>;

@Field(() => [AttachmentWhereUniqueInput], {nullable:true})
@Type(() => AttachmentWhereUniqueInput)
@HideField()
delete?: Array<AttachmentWhereUniqueInput>;

@Field(() => [AttachmentWhereUniqueInput], {nullable:true})
@Type(() => AttachmentWhereUniqueInput)
connect?: Array<AttachmentWhereUniqueInput>;

@Field(() => [AttachmentUpdateWithWhereUniqueWithoutActivityInput], {nullable:true})
@Type(() => AttachmentUpdateWithWhereUniqueWithoutActivityInput)
@HideField()
update?: Array<AttachmentUpdateWithWhereUniqueWithoutActivityInput>;

@Field(() => [AttachmentUpdateManyWithWhereWithoutActivityInput], {nullable:true})
@Type(() => AttachmentUpdateManyWithWhereWithoutActivityInput)
@HideField()
updateMany?: Array<AttachmentUpdateManyWithWhereWithoutActivityInput>;

@Field(() => [AttachmentScalarWhereInput], {nullable:true})
@Type(() => AttachmentScalarWhereInput)
@HideField()
deleteMany?: Array<AttachmentScalarWhereInput>;
}
Loading

0 comments on commit b69a304

Please sign in to comment.