Enable Task creation (#688)

This commit is contained in:
Charles Bochet
2023-07-16 09:39:52 -07:00
committed by GitHub
parent 098cd038bd
commit 037628ab1d
126 changed files with 3032 additions and 253 deletions

View File

@ -0,0 +1,9 @@
import { registerEnumType } from '@nestjs/graphql';
export enum ActivityType {
Note = "Note",
Task = "Task"
}
registerEnumType(ActivityType, { name: 'ActivityType', description: undefined })

View File

@ -0,0 +1,10 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { ActivityType } from './activity-type.enum';
@InputType()
export class EnumActivityTypeFieldUpdateOperationsInput {
@Field(() => ActivityType, {nullable:true})
set?: keyof typeof ActivityType;
}

View File

@ -0,0 +1,20 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { ActivityType } from './activity-type.enum';
import { NestedEnumActivityTypeFilter } from './nested-enum-activity-type-filter.input';
@InputType()
export class EnumActivityTypeFilter {
@Field(() => ActivityType, {nullable:true})
equals?: keyof typeof ActivityType;
@Field(() => [ActivityType], {nullable:true})
in?: Array<keyof typeof ActivityType>;
@Field(() => [ActivityType], {nullable:true})
notIn?: Array<keyof typeof ActivityType>;
@Field(() => NestedEnumActivityTypeFilter, {nullable:true})
not?: NestedEnumActivityTypeFilter;
}

View File

@ -0,0 +1,31 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { ActivityType } from './activity-type.enum';
import { NestedEnumActivityTypeWithAggregatesFilter } from './nested-enum-activity-type-with-aggregates-filter.input';
import { NestedIntFilter } from './nested-int-filter.input';
import { NestedEnumActivityTypeFilter } from './nested-enum-activity-type-filter.input';
@InputType()
export class EnumActivityTypeWithAggregatesFilter {
@Field(() => ActivityType, {nullable:true})
equals?: keyof typeof ActivityType;
@Field(() => [ActivityType], {nullable:true})
in?: Array<keyof typeof ActivityType>;
@Field(() => [ActivityType], {nullable:true})
notIn?: Array<keyof typeof ActivityType>;
@Field(() => NestedEnumActivityTypeWithAggregatesFilter, {nullable:true})
not?: NestedEnumActivityTypeWithAggregatesFilter;
@Field(() => NestedIntFilter, {nullable:true})
_count?: NestedIntFilter;
@Field(() => NestedEnumActivityTypeFilter, {nullable:true})
_min?: NestedEnumActivityTypeFilter;
@Field(() => NestedEnumActivityTypeFilter, {nullable:true})
_max?: NestedEnumActivityTypeFilter;
}

View File

@ -0,0 +1,19 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { ActivityType } from './activity-type.enum';
@InputType()
export class NestedEnumActivityTypeFilter {
@Field(() => ActivityType, {nullable:true})
equals?: keyof typeof ActivityType;
@Field(() => [ActivityType], {nullable:true})
in?: Array<keyof typeof ActivityType>;
@Field(() => [ActivityType], {nullable:true})
notIn?: Array<keyof typeof ActivityType>;
@Field(() => NestedEnumActivityTypeFilter, {nullable:true})
not?: NestedEnumActivityTypeFilter;
}

View File

@ -0,0 +1,30 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { ActivityType } from './activity-type.enum';
import { NestedIntFilter } from './nested-int-filter.input';
import { NestedEnumActivityTypeFilter } from './nested-enum-activity-type-filter.input';
@InputType()
export class NestedEnumActivityTypeWithAggregatesFilter {
@Field(() => ActivityType, {nullable:true})
equals?: keyof typeof ActivityType;
@Field(() => [ActivityType], {nullable:true})
in?: Array<keyof typeof ActivityType>;
@Field(() => [ActivityType], {nullable:true})
notIn?: Array<keyof typeof ActivityType>;
@Field(() => NestedEnumActivityTypeWithAggregatesFilter, {nullable:true})
not?: NestedEnumActivityTypeWithAggregatesFilter;
@Field(() => NestedIntFilter, {nullable:true})
_count?: NestedIntFilter;
@Field(() => NestedEnumActivityTypeFilter, {nullable:true})
_min?: NestedEnumActivityTypeFilter;
@Field(() => NestedEnumActivityTypeFilter, {nullable:true})
_max?: NestedEnumActivityTypeFilter;
}