Add Pipelines models in server (#182)

* Hide workspace and refresh token from schema

* Add pipe models and migrations

* Add seeds

* Update FE graphql schema
This commit is contained in:
Charles Bochet
2023-06-02 11:20:21 +02:00
committed by GitHub
parent bf3097500a
commit 2395f791c8
335 changed files with 8371 additions and 428 deletions
@@ -1,6 +1,7 @@
import { Field } from '@nestjs/graphql';
import { ObjectType } from '@nestjs/graphql';
import { Int } from '@nestjs/graphql';
import { HideField } from '@nestjs/graphql';
@ObjectType()
export class CommentThreadCountAggregate {
@@ -16,7 +17,7 @@ export class CommentThreadCountAggregate {
@Field(() => Int, { nullable: false })
deletedAt!: number;
@Field(() => Int, { nullable: false })
@HideField()
workspaceId!: number;
@Field(() => Int, { nullable: false })
@@ -1,5 +1,6 @@
import { Field } from '@nestjs/graphql';
import { ObjectType } from '@nestjs/graphql';
import { HideField } 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';
@@ -18,7 +19,7 @@ export class CommentThreadGroupBy {
@Field(() => Date, { nullable: true })
deletedAt?: Date | string;
@Field(() => String, { nullable: false })
@HideField()
workspaceId!: string;
@Field(() => CommentThreadCountAggregate, { nullable: true })
@@ -1,5 +1,6 @@
import { Field } from '@nestjs/graphql';
import { ObjectType } from '@nestjs/graphql';
import { HideField } from '@nestjs/graphql';
@ObjectType()
export class CommentThreadMaxAggregate {
@@ -15,6 +16,6 @@ export class CommentThreadMaxAggregate {
@Field(() => Date, { nullable: true })
deletedAt?: Date | string;
@Field(() => String, { nullable: true })
@HideField()
workspaceId?: string;
}
@@ -1,5 +1,6 @@
import { Field } from '@nestjs/graphql';
import { ObjectType } from '@nestjs/graphql';
import { HideField } from '@nestjs/graphql';
@ObjectType()
export class CommentThreadMinAggregate {
@@ -15,6 +16,6 @@ export class CommentThreadMinAggregate {
@Field(() => Date, { nullable: true })
deletedAt?: Date | string;
@Field(() => String, { nullable: true })
@HideField()
workspaceId?: string;
}
@@ -1,6 +1,7 @@
import { Field } from '@nestjs/graphql';
import { ObjectType } from '@nestjs/graphql';
import { ID } from '@nestjs/graphql';
import { HideField } from '@nestjs/graphql';
import { CommentThreadTarget } from '../comment-thread-target/comment-thread-target.model';
import { Comment } from '../comment/comment.model';
import { Workspace } from '../workspace/workspace.model';
@@ -20,7 +21,7 @@ export class CommentThread {
@Field(() => Date, { nullable: true })
deletedAt!: Date | null;
@Field(() => String, { nullable: false })
@HideField()
workspaceId!: string;
@Field(() => [CommentThreadTarget], { nullable: true })
@@ -29,7 +30,7 @@ export class CommentThread {
@Field(() => [Comment], { nullable: true })
comments?: Array<Comment>;
@Field(() => Workspace, { nullable: false })
@HideField()
workspace?: Workspace;
@Field(() => CommentThreadCount, { nullable: false })