From d9af205ccbf73efc93dc09ec87e24987354fa5f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20M?= Date: Thu, 29 Jun 2023 15:41:58 +0200 Subject: [PATCH] feat: clean prisma file, add validation, add prisma editor (#472) --- .vscode/settings.json | 4 + ...ent-thread-target-count-aggregate.input.ts | 19 +- ...nt-thread-target-count-aggregate.output.ts | 19 +- ...d-target-count-order-by-aggregate.input.ts | 19 +- ...target-create-many-comment-thread.input.ts | 22 +- ...comment-thread-target-create-many.input.ts | 22 +- ...get-create-without-comment-thread.input.ts | 22 +- .../comment-thread-target-create.input.ts | 22 +- .../comment-thread-target-group-by.output.ts | 22 +- ...mment-thread-target-max-aggregate.input.ts | 19 +- ...ment-thread-target-max-aggregate.output.ts | 22 +- ...ead-target-max-order-by-aggregate.input.ts | 19 +- ...mment-thread-target-min-aggregate.input.ts | 19 +- ...ment-thread-target-min-aggregate.output.ts | 22 +- ...ead-target-min-order-by-aggregate.input.ts | 19 +- ...-target-order-by-with-aggregation.input.ts | 19 +- ...ead-target-order-by-with-relation.input.ts | 19 +- ...comment-thread-target-scalar-field.enum.ts | 8 +- ...rget-scalar-where-with-aggregates.input.ts | 23 +- ...omment-thread-target-scalar-where.input.ts | 23 +- ...ked-create-without-comment-thread.input.ts | 22 +- ...nt-thread-target-unchecked-create.input.ts | 22 +- ...ny-without-comment-thread-targets.input.ts | 23 +- ...read-target-unchecked-update-many.input.ts | 23 +- ...ked-update-without-comment-thread.input.ts | 23 +- ...nt-thread-target-unchecked-update.input.ts | 23 +- ...hread-target-update-many-mutation.input.ts | 23 +- ...get-update-without-comment-thread.input.ts | 23 +- .../comment-thread-target-update.input.ts | 23 +- ...omment-thread-target-where-unique.input.ts | 3 + .../comment-thread-target-where.input.ts | 23 +- .../comment-thread-target.model.ts | 19 +- .../create-many-comment-thread-target.args.ts | 3 + .../create-one-comment-thread-target.args.ts | 3 + .../update-many-comment-thread-target.args.ts | 3 + .../update-one-comment-thread-target.args.ts | 3 + .../comment-thread-count-aggregate.input.ts | 12 +- .../comment-thread-count-aggregate.output.ts | 12 +- ...t-thread-count-order-by-aggregate.input.ts | 12 +- ...ment-thread-create-many-workspace.input.ts | 10 +- .../comment-thread-create-many.input.ts | 15 +- ...te-without-comment-thread-targets.input.ts | 11 +- ...nt-thread-create-without-comments.input.ts | 11 +- ...t-thread-create-without-workspace.input.ts | 10 +- .../comment-thread-create.input.ts | 11 +- .../comment-thread-group-by.output.ts | 15 +- .../comment-thread-max-aggregate.input.ts | 12 +- .../comment-thread-max-aggregate.output.ts | 15 +- ...ent-thread-max-order-by-aggregate.input.ts | 12 +- .../comment-thread-min-aggregate.input.ts | 12 +- .../comment-thread-min-aggregate.output.ts | 15 +- ...ent-thread-min-order-by-aggregate.input.ts | 12 +- ...-thread-order-by-with-aggregation.input.ts | 12 +- ...ent-thread-order-by-with-relation.input.ts | 12 +- .../comment-thread-scalar-field.enum.ts | 6 +- ...read-scalar-where-with-aggregates.input.ts | 16 +- .../comment-thread-scalar-where.input.ts | 16 +- ...te-without-comment-thread-targets.input.ts | 15 +- ...unchecked-create-without-comments.input.ts | 15 +- ...nchecked-create-without-workspace.input.ts | 10 +- .../comment-thread-unchecked-create.input.ts | 15 +- ...date-many-without-comment-threads.input.ts | 9 +- ...ment-thread-unchecked-update-many.input.ts | 16 +- ...te-without-comment-thread-targets.input.ts | 16 +- ...unchecked-update-without-comments.input.ts | 16 +- ...nchecked-update-without-workspace.input.ts | 9 +- .../comment-thread-unchecked-update.input.ts | 16 +- ...mment-thread-update-many-mutation.input.ts | 9 +- ...te-without-comment-thread-targets.input.ts | 10 +- ...nt-thread-update-without-comments.input.ts | 10 +- ...t-thread-update-without-workspace.input.ts | 9 +- .../comment-thread-update.input.ts | 10 +- .../comment-thread-where-unique.input.ts | 3 + .../comment-thread-where.input.ts | 16 +- .../comment-thread/comment-thread.model.ts | 12 +- .../create-many-comment-thread.args.ts | 3 + .../create-one-comment-thread.args.ts | 3 + .../update-many-comment-thread.args.ts | 3 + .../update-one-comment-thread.args.ts | 3 + .../comment/comment-count-aggregate.input.ts | 18 +- .../comment/comment-count-aggregate.output.ts | 18 +- .../comment-count-order-by-aggregate.input.ts | 18 +- .../comment-create-many-author.input.ts | 22 +- ...omment-create-many-comment-thread.input.ts | 22 +- .../comment-create-many-workspace.input.ts | 23 +- .../comment/comment-create-many.input.ts | 22 +- .../comment-create-without-author.input.ts | 18 +- ...ent-create-without-comment-thread.input.ts | 18 +- .../comment-create-without-workspace.input.ts | 17 +- .../comment/comment-create.input.ts | 18 +- .../comment/comment-group-by.output.ts | 22 +- .../comment/comment-max-aggregate.input.ts | 18 +- .../comment/comment-max-aggregate.output.ts | 22 +- .../comment-max-order-by-aggregate.input.ts | 18 +- .../comment/comment-min-aggregate.input.ts | 18 +- .../comment/comment-min-aggregate.output.ts | 22 +- .../comment-min-order-by-aggregate.input.ts | 18 +- ...comment-order-by-with-aggregation.input.ts | 18 +- .../comment-order-by-with-relation.input.ts | 18 +- .../comment/comment-scalar-field.enum.ts | 8 +- ...ment-scalar-where-with-aggregates.input.ts | 22 +- .../comment/comment-scalar-where.input.ts | 22 +- ...t-unchecked-create-without-author.input.ts | 22 +- ...ked-create-without-comment-thread.input.ts | 22 +- ...nchecked-create-without-workspace.input.ts | 23 +- .../comment/comment-unchecked-create.input.ts | 22 +- ...cked-update-many-without-comments.input.ts | 22 +- .../comment-unchecked-update-many.input.ts | 22 +- ...t-unchecked-update-without-author.input.ts | 22 +- ...ked-update-without-comment-thread.input.ts | 22 +- ...nchecked-update-without-workspace.input.ts | 21 +- .../comment/comment-unchecked-update.input.ts | 22 +- .../comment-update-many-mutation.input.ts | 15 +- .../comment-update-without-author.input.ts | 16 +- ...ent-update-without-comment-thread.input.ts | 16 +- .../comment-update-without-workspace.input.ts | 15 +- .../comment/comment-update.input.ts | 16 +- .../comment/comment-where-unique.input.ts | 3 + .../@generated/comment/comment-where.input.ts | 22 +- .../core/@generated/comment/comment.model.ts | 18 +- .../comment/create-many-comment.args.ts | 3 + .../comment/create-one-comment.args.ts | 3 + .../comment/update-many-comment.args.ts | 3 + .../comment/update-one-comment.args.ts | 3 + .../company/company-count-aggregate.input.ts | 18 +- .../company/company-count-aggregate.output.ts | 21 +- .../company-count-order-by-aggregate.input.ts | 18 +- ...company-create-many-account-owner.input.ts | 44 +- .../company-create-many-workspace.input.ts | 45 +- .../company/company-create-many.input.ts | 26 +- ...pany-create-without-account-owner.input.ts | 40 +- .../company-create-without-people.input.ts | 40 +- .../company-create-without-workspace.input.ts | 45 +- .../company/company-create.input.ts | 48 +- .../company/company-group-by.output.ts | 26 +- .../company/company-max-aggregate.input.ts | 18 +- .../company/company-max-aggregate.output.ts | 26 +- .../company-max-order-by-aggregate.input.ts | 18 +- .../company/company-min-aggregate.input.ts | 18 +- .../company/company-min-aggregate.output.ts | 26 +- .../company-min-order-by-aggregate.input.ts | 18 +- ...company-order-by-with-aggregation.input.ts | 18 +- .../company-order-by-with-relation.input.ts | 24 +- .../company/company-scalar-field.enum.ts | 8 +- ...pany-scalar-where-with-aggregates.input.ts | 22 +- .../company/company-scalar-where.input.ts | 22 +- .../company/company-sum-aggregate.output.ts | 3 + ...cked-create-without-account-owner.input.ts | 44 +- ...y-unchecked-create-without-people.input.ts | 26 +- ...nchecked-create-without-workspace.input.ts | 45 +- .../company/company-unchecked-create.input.ts | 26 +- ...ked-update-many-without-companies.input.ts | 22 +- .../company-unchecked-update-many.input.ts | 22 +- ...cked-update-without-account-owner.input.ts | 22 +- ...y-unchecked-update-without-people.input.ts | 22 +- ...nchecked-update-without-workspace.input.ts | 23 +- .../company/company-unchecked-update.input.ts | 22 +- .../company-update-many-mutation.input.ts | 23 +- ...pany-update-without-account-owner.input.ts | 24 +- .../company-update-without-people.input.ts | 24 +- .../company-update-without-workspace.input.ts | 29 +- .../company/company-update.input.ts | 32 +- .../company/company-where-unique.input.ts | 3 + .../@generated/company/company-where.input.ts | 28 +- .../core/@generated/company/company.model.ts | 24 +- .../company/create-many-company.args.ts | 3 + .../company/create-one-company.args.ts | 3 + .../company/update-many-company.args.ts | 3 + .../company/update-one-company.args.ts | 3 + .../person/create-many-person.args.ts | 3 + .../person/create-one-person.args.ts | 3 + .../person/person-count-aggregate.input.ts | 18 +- .../person/person-count-aggregate.output.ts | 18 +- .../person-count-order-by-aggregate.input.ts | 18 +- .../person-create-many-company.input.ts | 50 +- .../person-create-many-workspace.input.ts | 51 +- .../person/person-create-many.input.ts | 26 +- .../person-create-without-company.input.ts | 46 +- .../person-create-without-workspace.input.ts | 45 +- .../@generated/person/person-create.input.ts | 46 +- .../person/person-group-by.output.ts | 26 +- .../person/person-max-aggregate.input.ts | 18 +- .../person/person-max-aggregate.output.ts | 26 +- .../person-max-order-by-aggregate.input.ts | 18 +- .../person/person-min-aggregate.input.ts | 18 +- .../person/person-min-aggregate.output.ts | 26 +- .../person-min-order-by-aggregate.input.ts | 18 +- .../person-order-by-with-aggregation.input.ts | 18 +- .../person-order-by-with-relation.input.ts | 18 +- .../person/person-scalar-field.enum.ts | 8 +- ...rson-scalar-where-with-aggregates.input.ts | 22 +- .../person/person-scalar-where.input.ts | 22 +- ...-unchecked-create-without-company.input.ts | 50 +- ...nchecked-create-without-workspace.input.ts | 51 +- .../person/person-unchecked-create.input.ts | 26 +- ...hecked-update-many-without-people.input.ts | 23 +- .../person-unchecked-update-many.input.ts | 22 +- ...-unchecked-update-without-company.input.ts | 22 +- ...nchecked-update-without-workspace.input.ts | 23 +- .../person/person-unchecked-update.input.ts | 22 +- .../person-update-many-mutation.input.ts | 21 +- .../person-update-without-company.input.ts | 22 +- .../person-update-without-workspace.input.ts | 21 +- .../@generated/person/person-update.input.ts | 22 +- .../person/person-where-unique.input.ts | 3 + .../@generated/person/person-where.input.ts | 22 +- .../core/@generated/person/person.model.ts | 18 +- .../person/update-many-person.args.ts | 3 + .../person/update-one-person.args.ts | 3 + .../create-many-pipeline-progress.args.ts | 3 + .../create-one-pipeline-progress.args.ts | 3 + ...pipeline-progress-count-aggregate.input.ts | 18 +- ...ipeline-progress-count-aggregate.output.ts | 18 +- ...progress-count-order-by-aggregate.input.ts | 18 +- ...ogress-create-many-pipeline-stage.input.ts | 21 +- ...ine-progress-create-many-pipeline.input.ts | 21 +- ...ne-progress-create-many-workspace.input.ts | 22 +- .../pipeline-progress-create-many.input.ts | 21 +- ...ess-create-without-pipeline-stage.input.ts | 23 +- ...-progress-create-without-pipeline.input.ts | 23 +- ...progress-create-without-workspace.input.ts | 22 +- .../pipeline-progress-create.input.ts | 23 +- .../pipeline-progress-group-by.output.ts | 21 +- .../pipeline-progress-max-aggregate.input.ts | 18 +- .../pipeline-progress-max-aggregate.output.ts | 21 +- ...e-progress-max-order-by-aggregate.input.ts | 18 +- .../pipeline-progress-min-aggregate.input.ts | 18 +- .../pipeline-progress-min-aggregate.output.ts | 21 +- ...e-progress-min-order-by-aggregate.input.ts | 18 +- ...rogress-order-by-with-aggregation.input.ts | 18 +- ...e-progress-order-by-with-relation.input.ts | 18 +- .../pipeline-progress-scalar-field.enum.ts | 8 +- ...ress-scalar-where-with-aggregates.input.ts | 22 +- .../pipeline-progress-scalar-where.input.ts | 22 +- ...ked-create-without-pipeline-stage.input.ts | 21 +- ...unchecked-create-without-pipeline.input.ts | 21 +- ...nchecked-create-without-workspace.input.ts | 22 +- ...ipeline-progress-unchecked-create.input.ts | 21 +- ...-many-without-pipeline-progresses.input.ts | 23 +- ...ne-progress-unchecked-update-many.input.ts | 22 +- ...ked-update-without-pipeline-stage.input.ts | 22 +- ...unchecked-update-without-pipeline.input.ts | 22 +- ...nchecked-update-without-workspace.input.ts | 23 +- ...ipeline-progress-unchecked-update.input.ts | 22 +- ...ine-progress-update-many-mutation.input.ts | 23 +- ...ess-update-without-pipeline-stage.input.ts | 24 +- ...-progress-update-without-pipeline.input.ts | 24 +- ...progress-update-without-workspace.input.ts | 23 +- .../pipeline-progress-update.input.ts | 24 +- .../pipeline-progress-where-unique.input.ts | 3 + .../pipeline-progress-where.input.ts | 22 +- .../pipeline-progress.model.ts | 18 +- .../update-many-pipeline-progress.args.ts | 3 + .../update-one-pipeline-progress.args.ts | 3 + .../create-many-pipeline-stage.args.ts | 3 + .../create-one-pipeline-stage.args.ts | 3 + .../pipeline-stage-count-aggregate.input.ts | 18 +- .../pipeline-stage-count-aggregate.output.ts | 18 +- ...ne-stage-count-order-by-aggregate.input.ts | 18 +- ...peline-stage-create-many-pipeline.input.ts | 36 +- ...eline-stage-create-many-workspace.input.ts | 37 +- .../pipeline-stage-create-many.input.ts | 24 +- ...reate-without-pipeline-progresses.input.ts | 32 +- ...ine-stage-create-without-pipeline.input.ts | 32 +- ...ne-stage-create-without-workspace.input.ts | 37 +- .../pipeline-stage-create.input.ts | 40 +- .../pipeline-stage-group-by.output.ts | 24 +- .../pipeline-stage-max-aggregate.input.ts | 18 +- .../pipeline-stage-max-aggregate.output.ts | 24 +- ...line-stage-max-order-by-aggregate.input.ts | 18 +- .../pipeline-stage-min-aggregate.input.ts | 18 +- .../pipeline-stage-min-aggregate.output.ts | 24 +- ...line-stage-min-order-by-aggregate.input.ts | 18 +- ...e-stage-order-by-with-aggregation.input.ts | 18 +- ...line-stage-order-by-with-relation.input.ts | 24 +- .../pipeline-stage-scalar-field.enum.ts | 8 +- ...tage-scalar-where-with-aggregates.input.ts | 22 +- .../pipeline-stage-scalar-where.input.ts | 22 +- ...reate-without-pipeline-progresses.input.ts | 24 +- ...unchecked-create-without-pipeline.input.ts | 36 +- ...nchecked-create-without-workspace.input.ts | 37 +- .../pipeline-stage-unchecked-create.input.ts | 24 +- ...date-many-without-pipeline-stages.input.ts | 21 +- ...eline-stage-unchecked-update-many.input.ts | 22 +- ...pdate-without-pipeline-progresses.input.ts | 22 +- ...unchecked-update-without-pipeline.input.ts | 22 +- ...nchecked-update-without-workspace.input.ts | 21 +- .../pipeline-stage-unchecked-update.input.ts | 22 +- ...peline-stage-update-many-mutation.input.ts | 21 +- ...pdate-without-pipeline-progresses.input.ts | 22 +- ...ine-stage-update-without-pipeline.input.ts | 22 +- ...ne-stage-update-without-workspace.input.ts | 27 +- .../pipeline-stage-update.input.ts | 30 +- .../pipeline-stage-where-unique.input.ts | 3 + .../pipeline-stage-where.input.ts | 28 +- .../pipeline-stage/pipeline-stage.model.ts | 24 +- .../update-many-pipeline-stage.args.ts | 3 + .../update-one-pipeline-stage.args.ts | 3 + .../pipeline/create-many-pipeline.args.ts | 3 + .../pipeline/create-one-pipeline.args.ts | 3 + .../pipeline-count-aggregate.input.ts | 18 +- .../pipeline-count-aggregate.output.ts | 18 +- ...pipeline-count-order-by-aggregate.input.ts | 18 +- .../pipeline-create-many-workspace.input.ts | 30 +- .../pipeline/pipeline-create-many.input.ts | 23 +- ...reate-without-pipeline-progresses.input.ts | 31 +- ...ne-create-without-pipeline-stages.input.ts | 31 +- ...pipeline-create-without-workspace.input.ts | 30 +- .../pipeline/pipeline-create.input.ts | 31 +- .../pipeline/pipeline-group-by.output.ts | 23 +- .../pipeline/pipeline-max-aggregate.input.ts | 18 +- .../pipeline/pipeline-max-aggregate.output.ts | 23 +- .../pipeline-max-order-by-aggregate.input.ts | 18 +- .../pipeline/pipeline-min-aggregate.input.ts | 18 +- .../pipeline/pipeline-min-aggregate.output.ts | 23 +- .../pipeline-min-order-by-aggregate.input.ts | 18 +- ...ipeline-order-by-with-aggregation.input.ts | 18 +- .../pipeline-order-by-with-relation.input.ts | 18 +- .../pipeline/pipeline-scalar-field.enum.ts | 8 +- ...line-scalar-where-with-aggregates.input.ts | 22 +- .../pipeline/pipeline-scalar-where.input.ts | 22 +- ...reate-without-pipeline-progresses.input.ts | 23 +- ...ed-create-without-pipeline-stages.input.ts | 23 +- ...nchecked-create-without-workspace.input.ts | 30 +- .../pipeline-unchecked-create.input.ts | 23 +- ...ked-update-many-without-pipelines.input.ts | 23 +- .../pipeline-unchecked-update-many.input.ts | 22 +- ...pdate-without-pipeline-progresses.input.ts | 22 +- ...ed-update-without-pipeline-stages.input.ts | 22 +- ...nchecked-update-without-workspace.input.ts | 23 +- .../pipeline-unchecked-update.input.ts | 22 +- .../pipeline-update-many-mutation.input.ts | 23 +- ...pdate-without-pipeline-progresses.input.ts | 24 +- ...ne-update-without-pipeline-stages.input.ts | 24 +- ...pipeline-update-without-workspace.input.ts | 23 +- .../pipeline/pipeline-update.input.ts | 24 +- .../pipeline/pipeline-where-unique.input.ts | 3 + .../pipeline/pipeline-where.input.ts | 22 +- .../@generated/pipeline/pipeline.model.ts | 18 +- .../pipeline/update-many-pipeline.args.ts | 3 + .../pipeline/update-one-pipeline.args.ts | 3 + .../create-many-refresh-token.args.ts | 3 + .../create-one-refresh-token.args.ts | 3 + .../refresh-token-count-aggregate.input.ts | 24 +- .../refresh-token-count-aggregate.output.ts | 24 +- ...sh-token-count-order-by-aggregate.input.ts | 18 +- .../refresh-token-create-many-user.input.ts | 24 +- .../refresh-token-create-many.input.ts | 29 +- ...refresh-token-create-without-user.input.ts | 24 +- .../refresh-token-create.input.ts | 25 +- .../refresh-token-group-by.output.ts | 29 +- .../refresh-token-max-aggregate.input.ts | 18 +- .../refresh-token-max-aggregate.output.ts | 29 +- ...resh-token-max-order-by-aggregate.input.ts | 18 +- .../refresh-token-min-aggregate.input.ts | 18 +- .../refresh-token-min-aggregate.output.ts | 29 +- ...resh-token-min-order-by-aggregate.input.ts | 18 +- ...h-token-order-by-with-aggregation.input.ts | 18 +- ...resh-token-order-by-with-relation.input.ts | 24 +- .../refresh-token-scalar-field.enum.ts | 6 +- ...oken-scalar-where-with-aggregates.input.ts | 28 +- .../refresh-token-scalar-where.input.ts | 28 +- ...ken-unchecked-create-without-user.input.ts | 24 +- .../refresh-token-unchecked-create.input.ts | 29 +- ...pdate-many-without-refresh-tokens.input.ts | 17 +- ...fresh-token-unchecked-update-many.input.ts | 28 +- ...ken-unchecked-update-without-user.input.ts | 17 +- .../refresh-token-unchecked-update.input.ts | 28 +- ...efresh-token-update-many-mutation.input.ts | 17 +- ...refresh-token-update-without-user.input.ts | 17 +- .../refresh-token-update.input.ts | 18 +- .../refresh-token-where-unique.input.ts | 3 + .../refresh-token-where.input.ts | 28 +- .../refresh-token/refresh-token.model.ts | 24 +- .../update-many-refresh-token.args.ts | 3 + .../update-one-refresh-token.args.ts | 3 + .../@generated/user/create-many-user.args.ts | 3 + .../@generated/user/create-one-user.args.ts | 3 + .../@generated/user/update-many-user.args.ts | 3 + .../@generated/user/update-one-user.args.ts | 3 + .../user/user-count-aggregate.input.ts | 34 +- .../user/user-count-aggregate.output.ts | 34 +- .../user-count-order-by-aggregate.input.ts | 34 +- .../@generated/user/user-create-many.input.ts | 85 +-- .../user-create-without-comments.input.ts | 85 +-- .../user-create-without-companies.input.ts | 85 +-- ...ser-create-without-refresh-tokens.input.ts | 85 +-- ...r-create-without-workspace-member.input.ts | 85 +-- .../core/@generated/user/user-create.input.ts | 85 +-- .../@generated/user/user-group-by.output.ts | 85 +-- .../user/user-max-aggregate.input.ts | 32 +- .../user/user-max-aggregate.output.ts | 77 ++- .../user/user-max-order-by-aggregate.input.ts | 32 +- .../user/user-min-aggregate.input.ts | 32 +- .../user/user-min-aggregate.output.ts | 77 ++- .../user/user-min-order-by-aggregate.input.ts | 32 +- .../user-order-by-with-aggregation.input.ts | 34 +- .../user/user-order-by-with-relation.input.ts | 34 +- .../@generated/user/user-scalar-field.enum.ts | 14 +- ...user-scalar-where-with-aggregates.input.ts | 40 +- ...unchecked-create-without-comments.input.ts | 85 +-- ...nchecked-create-without-companies.input.ts | 85 +-- ...ked-create-without-refresh-tokens.input.ts | 85 +-- ...d-create-without-workspace-member.input.ts | 85 +-- .../user/user-unchecked-create.input.ts | 85 +-- .../user/user-unchecked-update-many.input.ts | 43 +- ...unchecked-update-without-comments.input.ts | 43 +- ...nchecked-update-without-companies.input.ts | 43 +- ...ked-update-without-refresh-tokens.input.ts | 43 +- ...d-update-without-workspace-member.input.ts | 43 +- .../user/user-unchecked-update.input.ts | 43 +- .../user/user-update-many-mutation.input.ts | 43 +- .../user-update-without-comments.input.ts | 43 +- .../user-update-without-companies.input.ts | 43 +- ...ser-update-without-refresh-tokens.input.ts | 43 +- ...r-update-without-workspace-member.input.ts | 43 +- .../core/@generated/user/user-update.input.ts | 43 +- .../user/user-where-unique.input.ts | 4 + .../core/@generated/user/user-where.input.ts | 40 +- server/src/core/@generated/user/user.model.ts | 36 +- .../create-many-workspace-member.args.ts | 3 + .../create-one-workspace-member.args.ts | 3 + .../update-many-workspace-member.args.ts | 3 + .../update-one-workspace-member.args.ts | 3 + .../workspace-member-count-aggregate.input.ts | 18 +- ...workspace-member-count-aggregate.output.ts | 18 +- ...e-member-count-order-by-aggregate.input.ts | 18 +- ...pace-member-create-many-workspace.input.ts | 16 +- .../workspace-member-create-many.input.ts | 21 +- ...kspace-member-create-without-user.input.ts | 11 +- ...e-member-create-without-workspace.input.ts | 10 +- .../workspace-member-create.input.ts | 11 +- .../workspace-member-group-by.output.ts | 21 +- .../workspace-member-max-aggregate.input.ts | 18 +- .../workspace-member-max-aggregate.output.ts | 21 +- ...ace-member-max-order-by-aggregate.input.ts | 18 +- .../workspace-member-min-aggregate.input.ts | 18 +- .../workspace-member-min-aggregate.output.ts | 21 +- ...ace-member-min-order-by-aggregate.input.ts | 18 +- ...-member-order-by-with-aggregation.input.ts | 18 +- ...ace-member-order-by-with-relation.input.ts | 18 +- .../workspace-member-scalar-field.enum.ts | 8 +- ...mber-scalar-where-with-aggregates.input.ts | 22 +- .../workspace-member-scalar-where.input.ts | 22 +- ...ber-unchecked-create-without-user.input.ts | 15 +- ...nchecked-create-without-workspace.input.ts | 16 +- ...workspace-member-unchecked-create.input.ts | 21 +- ...ate-many-without-workspace-member.input.ts | 15 +- ...pace-member-unchecked-update-many.input.ts | 22 +- ...ber-unchecked-update-without-user.input.ts | 16 +- ...nchecked-update-without-workspace.input.ts | 15 +- ...workspace-member-unchecked-update.input.ts | 22 +- ...space-member-update-many-mutation.input.ts | 9 +- ...kspace-member-update-without-user.input.ts | 10 +- ...e-member-update-without-workspace.input.ts | 9 +- .../workspace-member-update.input.ts | 10 +- .../workspace-member-where-unique.input.ts | 3 + .../workspace-member-where.input.ts | 22 +- .../workspace-member.model.ts | 18 +- .../workspace/create-many-workspace.args.ts | 3 + .../workspace/create-one-workspace.args.ts | 3 + .../workspace/update-many-workspace.args.ts | 3 + .../workspace/update-one-workspace.args.ts | 3 + .../workspace-count-aggregate.input.ts | 19 +- .../workspace-count-aggregate.output.ts | 19 +- ...orkspace-count-order-by-aggregate.input.ts | 19 +- .../workspace/workspace-create-many.input.ts | 32 +- ...ce-create-without-comment-threads.input.ts | 32 +- ...workspace-create-without-comments.input.ts | 32 +- ...orkspace-create-without-companies.input.ts | 32 +- .../workspace-create-without-people.input.ts | 32 +- ...reate-without-pipeline-progresses.input.ts | 32 +- ...ce-create-without-pipeline-stages.input.ts | 32 +- ...orkspace-create-without-pipelines.input.ts | 32 +- ...e-create-without-workspace-member.input.ts | 32 +- .../workspace/workspace-create.input.ts | 32 +- .../workspace/workspace-group-by.output.ts | 32 +- .../workspace-max-aggregate.input.ts | 19 +- .../workspace-max-aggregate.output.ts | 32 +- .../workspace-max-order-by-aggregate.input.ts | 19 +- .../workspace-min-aggregate.input.ts | 19 +- .../workspace-min-aggregate.output.ts | 32 +- .../workspace-min-order-by-aggregate.input.ts | 19 +- ...rkspace-order-by-with-aggregation.input.ts | 19 +- .../workspace-order-by-with-relation.input.ts | 19 +- .../workspace/workspace-scalar-field.enum.ts | 8 +- ...pace-scalar-where-with-aggregates.input.ts | 23 +- ...ed-create-without-comment-threads.input.ts | 32 +- ...unchecked-create-without-comments.input.ts | 32 +- ...nchecked-create-without-companies.input.ts | 32 +- ...e-unchecked-create-without-people.input.ts | 32 +- ...reate-without-pipeline-progresses.input.ts | 32 +- ...ed-create-without-pipeline-stages.input.ts | 32 +- ...nchecked-create-without-pipelines.input.ts | 32 +- ...d-create-without-workspace-member.input.ts | 32 +- .../workspace-unchecked-create.input.ts | 32 +- .../workspace-unchecked-update-many.input.ts | 23 +- ...ed-update-without-comment-threads.input.ts | 23 +- ...unchecked-update-without-comments.input.ts | 23 +- ...nchecked-update-without-companies.input.ts | 23 +- ...e-unchecked-update-without-people.input.ts | 23 +- ...pdate-without-pipeline-progresses.input.ts | 23 +- ...ed-update-without-pipeline-stages.input.ts | 23 +- ...nchecked-update-without-pipelines.input.ts | 23 +- ...d-update-without-workspace-member.input.ts | 23 +- .../workspace-unchecked-update.input.ts | 23 +- .../workspace-update-many-mutation.input.ts | 23 +- ...ce-update-without-comment-threads.input.ts | 23 +- ...workspace-update-without-comments.input.ts | 23 +- ...orkspace-update-without-companies.input.ts | 23 +- .../workspace-update-without-people.input.ts | 23 +- ...pdate-without-pipeline-progresses.input.ts | 23 +- ...ce-update-without-pipeline-stages.input.ts | 23 +- ...orkspace-update-without-pipelines.input.ts | 23 +- ...e-update-without-workspace-member.input.ts | 23 +- .../workspace/workspace-update.input.ts | 23 +- .../workspace/workspace-where-unique.input.ts | 4 + .../workspace/workspace-where.input.ts | 23 +- .../@generated/workspace/workspace.model.ts | 20 +- server/src/database/schema.prisma | 553 +++++++++++------- 520 files changed, 6751 insertions(+), 5241 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index efca65e087..2311f19166 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -21,6 +21,10 @@ "[json]": { "editor.formatOnSave": true }, + "[prisma]": { + "editor.formatOnSave": true, + "editor.defaultFormatter": "Prisma.prisma" + }, "javascript.format.enable": false, "typescript.format.enable": false, "cSpell.enableFiletypes": [ diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-count-aggregate.input.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-count-aggregate.input.ts index fc84d43729..0e4f79dddb 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-count-aggregate.input.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-count-aggregate.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import { HideField } from '@nestjs/graphql'; @InputType() export class CommentThreadTargetCountAggregateInput { @@ -7,15 +8,6 @@ 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; @@ -25,6 +17,15 @@ export class CommentThreadTargetCountAggregateInput { @Field(() => Boolean, {nullable:true}) commentableId?: true; + @HideField() + deletedAt?: true; + + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; + @Field(() => Boolean, {nullable:true}) _all?: true; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-count-aggregate.output.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-count-aggregate.output.ts index 83dd5d9772..f038e88212 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-count-aggregate.output.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-count-aggregate.output.ts @@ -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 CommentThreadTargetCountAggregate { @@ -8,15 +9,6 @@ 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; @@ -26,6 +18,15 @@ export class CommentThreadTargetCountAggregate { @Field(() => Int, {nullable:false}) commentableId!: number; + @HideField() + deletedAt!: number; + + @Field(() => Int, {nullable:false}) + createdAt!: number; + + @Field(() => Int, {nullable:false}) + updatedAt!: number; + @Field(() => Int, {nullable:false}) _all!: number; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-count-order-by-aggregate.input.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-count-order-by-aggregate.input.ts index 74c737fc69..896d5641d9 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-count-order-by-aggregate.input.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-count-order-by-aggregate.input.ts @@ -1,6 +1,7 @@ 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 CommentThreadTargetCountOrderByAggregateInput { @@ -8,15 +9,6 @@ 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; @@ -25,4 +17,13 @@ export class CommentThreadTargetCountOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) commentableId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-create-many-comment-thread.input.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-create-many-comment-thread.input.ts index 3cf61cc58e..02aa39e457 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-create-many-comment-thread.input.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-create-many-comment-thread.input.ts @@ -1,25 +1,29 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { CommentableType } from '../prisma/commentable-type.enum'; +import { HideField } from '@nestjs/graphql'; @InputType() export class CommentThreadTargetCreateManyCommentThreadInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() 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; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-create-many.input.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-create-many.input.ts index ce8b8885cf..7a4102197a 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-create-many.input.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-create-many.input.ts @@ -1,22 +1,17 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { CommentableType } from '../prisma/commentable-type.enum'; +import { HideField } from '@nestjs/graphql'; @InputType() export class CommentThreadTargetCreateManyInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() 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; @@ -25,4 +20,13 @@ export class CommentThreadTargetCreateManyInput { @Field(() => String, {nullable:false}) commentableId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-create-without-comment-thread.input.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-create-without-comment-thread.input.ts index 676b6dedae..a9841b6ee1 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-create-without-comment-thread.input.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-create-without-comment-thread.input.ts @@ -1,25 +1,29 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { CommentableType } from '../prisma/commentable-type.enum'; +import { HideField } from '@nestjs/graphql'; @InputType() export class CommentThreadTargetCreateWithoutCommentThreadInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() 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; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-create.input.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-create.input.ts index 4a7ad8aafb..3fc238fb74 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-create.input.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-create.input.ts @@ -1,29 +1,33 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { CommentableType } from '../prisma/commentable-type.enum'; +import { HideField } from '@nestjs/graphql'; import { CommentThreadCreateNestedOneWithoutCommentThreadTargetsInput } from '../comment-thread/comment-thread-create-nested-one-without-comment-thread-targets.input'; @InputType() export class CommentThreadTargetCreateInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() 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; + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; + @Field(() => CommentThreadCreateNestedOneWithoutCommentThreadTargetsInput, {nullable:false}) commentThread!: CommentThreadCreateNestedOneWithoutCommentThreadTargetsInput; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-group-by.output.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-group-by.output.ts index e91f5bf3c1..a092a5ae79 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-group-by.output.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-group-by.output.ts @@ -1,6 +1,8 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { CommentableType } from '../prisma/commentable-type.enum'; +import { HideField } 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'; @@ -9,17 +11,10 @@ import { CommentThreadTargetMaxAggregate } from './comment-thread-target-max-agg export class CommentThreadTargetGroupBy { @Field(() => String, {nullable:false}) + @Validator.IsString() + @Validator.IsOptional() 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; @@ -29,6 +24,15 @@ export class CommentThreadTargetGroupBy { @Field(() => String, {nullable:false}) commentableId!: string; + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:false}) + createdAt!: Date | string; + + @Field(() => Date, {nullable:false}) + updatedAt!: Date | string; + @Field(() => CommentThreadTargetCountAggregate, {nullable:true}) _count?: CommentThreadTargetCountAggregate; diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-max-aggregate.input.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-max-aggregate.input.ts index ce5df7ff55..b5b48fbeb6 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-max-aggregate.input.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-max-aggregate.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import { HideField } from '@nestjs/graphql'; @InputType() export class CommentThreadTargetMaxAggregateInput { @@ -7,15 +8,6 @@ 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; @@ -24,4 +16,13 @@ export class CommentThreadTargetMaxAggregateInput { @Field(() => Boolean, {nullable:true}) commentableId?: true; + + @HideField() + deletedAt?: true; + + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-max-aggregate.output.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-max-aggregate.output.ts index f65bfb8262..bf42f814a0 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-max-aggregate.output.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-max-aggregate.output.ts @@ -1,22 +1,17 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { CommentableType } from '../prisma/commentable-type.enum'; +import { HideField } from '@nestjs/graphql'; @ObjectType() export class CommentThreadTargetMaxAggregate { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() 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; @@ -25,4 +20,13 @@ export class CommentThreadTargetMaxAggregate { @Field(() => String, {nullable:true}) commentableId?: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-max-order-by-aggregate.input.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-max-order-by-aggregate.input.ts index 3485541eaa..872d314505 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-max-order-by-aggregate.input.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-max-order-by-aggregate.input.ts @@ -1,6 +1,7 @@ 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 CommentThreadTargetMaxOrderByAggregateInput { @@ -8,15 +9,6 @@ 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; @@ -25,4 +17,13 @@ export class CommentThreadTargetMaxOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) commentableId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-min-aggregate.input.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-min-aggregate.input.ts index 409fd57119..5034d36a78 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-min-aggregate.input.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-min-aggregate.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import { HideField } from '@nestjs/graphql'; @InputType() export class CommentThreadTargetMinAggregateInput { @@ -7,15 +8,6 @@ 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; @@ -24,4 +16,13 @@ export class CommentThreadTargetMinAggregateInput { @Field(() => Boolean, {nullable:true}) commentableId?: true; + + @HideField() + deletedAt?: true; + + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-min-aggregate.output.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-min-aggregate.output.ts index 29c064f4ac..ae259145c0 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-min-aggregate.output.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-min-aggregate.output.ts @@ -1,22 +1,17 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { CommentableType } from '../prisma/commentable-type.enum'; +import { HideField } from '@nestjs/graphql'; @ObjectType() export class CommentThreadTargetMinAggregate { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() 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; @@ -25,4 +20,13 @@ export class CommentThreadTargetMinAggregate { @Field(() => String, {nullable:true}) commentableId?: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-min-order-by-aggregate.input.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-min-order-by-aggregate.input.ts index a89b8fe634..c40faf76dd 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-min-order-by-aggregate.input.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-min-order-by-aggregate.input.ts @@ -1,6 +1,7 @@ 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 CommentThreadTargetMinOrderByAggregateInput { @@ -8,15 +9,6 @@ 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; @@ -25,4 +17,13 @@ export class CommentThreadTargetMinOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) commentableId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-order-by-with-aggregation.input.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-order-by-with-aggregation.input.ts index 5417baf408..fb7ba4de99 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-order-by-with-aggregation.input.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-order-by-with-aggregation.input.ts @@ -1,6 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { SortOrder } from '../prisma/sort-order.enum'; +import { HideField } from '@nestjs/graphql'; 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'; @@ -11,15 +12,6 @@ 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; @@ -29,6 +21,15 @@ export class CommentThreadTargetOrderByWithAggregationInput { @Field(() => SortOrder, {nullable:true}) commentableId?: keyof typeof SortOrder; + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; + @Field(() => CommentThreadTargetCountOrderByAggregateInput, {nullable:true}) _count?: CommentThreadTargetCountOrderByAggregateInput; diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-order-by-with-relation.input.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-order-by-with-relation.input.ts index 15a63d02ce..cfebe13067 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-order-by-with-relation.input.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-order-by-with-relation.input.ts @@ -1,6 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { SortOrder } from '../prisma/sort-order.enum'; +import { HideField } from '@nestjs/graphql'; import { CommentThreadOrderByWithRelationInput } from '../comment-thread/comment-thread-order-by-with-relation.input'; @InputType() @@ -9,15 +10,6 @@ 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; @@ -27,6 +19,15 @@ export class CommentThreadTargetOrderByWithRelationInput { @Field(() => SortOrder, {nullable:true}) commentableId?: keyof typeof SortOrder; + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; + @Field(() => CommentThreadOrderByWithRelationInput, {nullable:true}) commentThread?: CommentThreadOrderByWithRelationInput; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-scalar-field.enum.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-scalar-field.enum.ts index ddde7c6d2f..ae369577c7 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-scalar-field.enum.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-scalar-field.enum.ts @@ -2,12 +2,12 @@ import { registerEnumType } from '@nestjs/graphql'; export enum CommentThreadTargetScalarFieldEnum { id = "id", - createdAt = "createdAt", - updatedAt = "updatedAt", - deletedAt = "deletedAt", commentThreadId = "commentThreadId", commentableType = "commentableType", - commentableId = "commentableId" + commentableId = "commentableId", + deletedAt = "deletedAt", + createdAt = "createdAt", + updatedAt = "updatedAt" } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-scalar-where-with-aggregates.input.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-scalar-where-with-aggregates.input.ts index d451c064b3..a5e135c465 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-scalar-where-with-aggregates.input.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-scalar-where-with-aggregates.input.ts @@ -1,9 +1,10 @@ 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'; +import { DateTimeNullableWithAggregatesFilter } from '../prisma/date-time-nullable-with-aggregates-filter.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeWithAggregatesFilter } from '../prisma/date-time-with-aggregates-filter.input'; @InputType() export class CommentThreadTargetScalarWhereWithAggregatesInput { @@ -20,15 +21,6 @@ export class CommentThreadTargetScalarWhereWithAggregatesInput { @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; @@ -37,4 +29,13 @@ export class CommentThreadTargetScalarWhereWithAggregatesInput { @Field(() => StringWithAggregatesFilter, {nullable:true}) commentableId?: StringWithAggregatesFilter; + + @HideField() + deletedAt?: DateTimeNullableWithAggregatesFilter; + + @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) + createdAt?: DateTimeWithAggregatesFilter; + + @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) + updatedAt?: DateTimeWithAggregatesFilter; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-scalar-where.input.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-scalar-where.input.ts index b90e790172..06c553f445 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-scalar-where.input.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-scalar-where.input.ts @@ -1,9 +1,10 @@ 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 { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFilter } from '../prisma/date-time-filter.input'; @InputType() export class CommentThreadTargetScalarWhereInput { @@ -20,15 +21,6 @@ export class CommentThreadTargetScalarWhereInput { @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; @@ -37,4 +29,13 @@ export class CommentThreadTargetScalarWhereInput { @Field(() => StringFilter, {nullable:true}) commentableId?: StringFilter; + + @HideField() + deletedAt?: DateTimeNullableFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + createdAt?: DateTimeFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + updatedAt?: DateTimeFilter; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-unchecked-create-without-comment-thread.input.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-unchecked-create-without-comment-thread.input.ts index 0f1b33611a..f8cffa6293 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-unchecked-create-without-comment-thread.input.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-unchecked-create-without-comment-thread.input.ts @@ -1,25 +1,29 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { CommentableType } from '../prisma/commentable-type.enum'; +import { HideField } from '@nestjs/graphql'; @InputType() export class CommentThreadTargetUncheckedCreateWithoutCommentThreadInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() 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; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-unchecked-create.input.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-unchecked-create.input.ts index 32c58db1d9..bc05573327 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-unchecked-create.input.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-unchecked-create.input.ts @@ -1,22 +1,17 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { CommentableType } from '../prisma/commentable-type.enum'; +import { HideField } from '@nestjs/graphql'; @InputType() export class CommentThreadTargetUncheckedCreateInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() 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; @@ -25,4 +20,13 @@ export class CommentThreadTargetUncheckedCreateInput { @Field(() => String, {nullable:false}) commentableId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-unchecked-update-many-without-comment-thread-targets.input.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-unchecked-update-many-without-comment-thread-targets.input.ts index 5f4163ab2a..65e494a828 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-unchecked-update-many-without-comment-thread-targets.input.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-unchecked-update-many-without-comment-thread-targets.input.ts @@ -1,9 +1,10 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class CommentThreadTargetUncheckedUpdateManyWithoutCommentThreadTargetsInput { @@ -11,18 +12,18 @@ export class CommentThreadTargetUncheckedUpdateManyWithoutCommentThreadTargetsIn @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; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-unchecked-update-many.input.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-unchecked-update-many.input.ts index 78c23b41df..ec50834a13 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-unchecked-update-many.input.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-unchecked-update-many.input.ts @@ -1,9 +1,10 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class CommentThreadTargetUncheckedUpdateManyInput { @@ -11,15 +12,6 @@ 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; @@ -28,4 +20,13 @@ export class CommentThreadTargetUncheckedUpdateManyInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) commentableId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-unchecked-update-without-comment-thread.input.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-unchecked-update-without-comment-thread.input.ts index ed3d786a91..0836a70a50 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-unchecked-update-without-comment-thread.input.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-unchecked-update-without-comment-thread.input.ts @@ -1,9 +1,10 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class CommentThreadTargetUncheckedUpdateWithoutCommentThreadInput { @@ -11,18 +12,18 @@ 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; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-unchecked-update.input.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-unchecked-update.input.ts index 51dd976f05..06a0820dc6 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-unchecked-update.input.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-unchecked-update.input.ts @@ -1,9 +1,10 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class CommentThreadTargetUncheckedUpdateInput { @@ -11,15 +12,6 @@ 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; @@ -28,4 +20,13 @@ export class CommentThreadTargetUncheckedUpdateInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) commentableId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-update-many-mutation.input.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-update-many-mutation.input.ts index d54208eb10..3bfffaa85f 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-update-many-mutation.input.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-update-many-mutation.input.ts @@ -1,9 +1,10 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class CommentThreadTargetUpdateManyMutationInput { @@ -11,18 +12,18 @@ 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; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-update-without-comment-thread.input.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-update-without-comment-thread.input.ts index 85626de210..277543987b 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-update-without-comment-thread.input.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-update-without-comment-thread.input.ts @@ -1,9 +1,10 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class CommentThreadTargetUpdateWithoutCommentThreadInput { @@ -11,18 +12,18 @@ 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; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-update.input.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-update.input.ts index 59bb9fd6d3..d186e329eb 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-update.input.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-update.input.ts @@ -1,9 +1,10 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { CommentThreadUpdateOneRequiredWithoutCommentThreadTargetsNestedInput } from '../comment-thread/comment-thread-update-one-required-without-comment-thread-targets-nested.input'; @InputType() @@ -12,21 +13,21 @@ 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; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => CommentThreadUpdateOneRequiredWithoutCommentThreadTargetsNestedInput, {nullable:true}) commentThread?: CommentThreadUpdateOneRequiredWithoutCommentThreadTargetsNestedInput; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-where-unique.input.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-where-unique.input.ts index 3ce9bc3b80..90aa4a527c 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-where-unique.input.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-where-unique.input.ts @@ -1,9 +1,12 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; @InputType() export class CommentThreadTargetWhereUniqueInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target-where.input.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target-where.input.ts index 63c581347b..492beeb6f7 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target-where.input.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target-where.input.ts @@ -1,9 +1,10 @@ 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 { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFilter } from '../prisma/date-time-filter.input'; import { CommentThreadRelationFilter } from '../comment-thread/comment-thread-relation-filter.input'; @InputType() @@ -21,15 +22,6 @@ export class CommentThreadTargetWhereInput { @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; @@ -39,6 +31,15 @@ export class CommentThreadTargetWhereInput { @Field(() => StringFilter, {nullable:true}) commentableId?: StringFilter; + @HideField() + deletedAt?: DateTimeNullableFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + createdAt?: DateTimeFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + updatedAt?: DateTimeFilter; + @Field(() => CommentThreadRelationFilter, {nullable:true}) commentThread?: CommentThreadRelationFilter; } diff --git a/server/src/core/@generated/comment-thread-target/comment-thread-target.model.ts b/server/src/core/@generated/comment-thread-target/comment-thread-target.model.ts index b2a01ad85a..5c79dc759c 100644 --- a/server/src/core/@generated/comment-thread-target/comment-thread-target.model.ts +++ b/server/src/core/@generated/comment-thread-target/comment-thread-target.model.ts @@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; import { ID } from '@nestjs/graphql'; import { CommentableType } from '../prisma/commentable-type.enum'; +import { HideField } from '@nestjs/graphql'; import { CommentThread } from '../comment-thread/comment-thread.model'; @ObjectType() @@ -10,15 +11,6 @@ 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; @@ -28,6 +20,15 @@ export class CommentThreadTarget { @Field(() => String, {nullable:false}) commentableId!: string; + @HideField() + deletedAt!: Date | null; + + @Field(() => Date, {nullable:false}) + createdAt!: Date; + + @Field(() => Date, {nullable:false}) + updatedAt!: Date; + @Field(() => CommentThread, {nullable:false}) commentThread?: CommentThread; } diff --git a/server/src/core/@generated/comment-thread-target/create-many-comment-thread-target.args.ts b/server/src/core/@generated/comment-thread-target/create-many-comment-thread-target.args.ts index 988e0552bf..c2b72c0f20 100644 --- a/server/src/core/@generated/comment-thread-target/create-many-comment-thread-target.args.ts +++ b/server/src/core/@generated/comment-thread-target/create-many-comment-thread-target.args.ts @@ -2,12 +2,15 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { CommentThreadTargetCreateManyInput } from './comment-thread-target-create-many.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; @ArgsType() export class CreateManyCommentThreadTargetArgs { @Field(() => [CommentThreadTargetCreateManyInput], {nullable:false}) @Type(() => CommentThreadTargetCreateManyInput) + @ValidateNested({each: true}) + @Type(() => CommentThreadTargetCreateManyInput) data!: Array; @Field(() => Boolean, {nullable:true}) diff --git a/server/src/core/@generated/comment-thread-target/create-one-comment-thread-target.args.ts b/server/src/core/@generated/comment-thread-target/create-one-comment-thread-target.args.ts index 6c9e74c291..0e5ebee051 100644 --- a/server/src/core/@generated/comment-thread-target/create-one-comment-thread-target.args.ts +++ b/server/src/core/@generated/comment-thread-target/create-one-comment-thread-target.args.ts @@ -2,11 +2,14 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { CommentThreadTargetCreateInput } from './comment-thread-target-create.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; @ArgsType() export class CreateOneCommentThreadTargetArgs { @Field(() => CommentThreadTargetCreateInput, {nullable:false}) @Type(() => CommentThreadTargetCreateInput) + @ValidateNested({each: true}) + @Type(() => CommentThreadTargetCreateInput) data!: CommentThreadTargetCreateInput; } diff --git a/server/src/core/@generated/comment-thread-target/update-many-comment-thread-target.args.ts b/server/src/core/@generated/comment-thread-target/update-many-comment-thread-target.args.ts index 7b052a2ad2..f2ac964981 100644 --- a/server/src/core/@generated/comment-thread-target/update-many-comment-thread-target.args.ts +++ b/server/src/core/@generated/comment-thread-target/update-many-comment-thread-target.args.ts @@ -2,6 +2,7 @@ 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 { ValidateNested } from 'class-validator'; import { CommentThreadTargetWhereInput } from './comment-thread-target-where.input'; @ArgsType() @@ -9,6 +10,8 @@ export class UpdateManyCommentThreadTargetArgs { @Field(() => CommentThreadTargetUpdateManyMutationInput, {nullable:false}) @Type(() => CommentThreadTargetUpdateManyMutationInput) + @ValidateNested({each: true}) + @Type(() => CommentThreadTargetUpdateManyMutationInput) data!: CommentThreadTargetUpdateManyMutationInput; @Field(() => CommentThreadTargetWhereInput, {nullable:true}) diff --git a/server/src/core/@generated/comment-thread-target/update-one-comment-thread-target.args.ts b/server/src/core/@generated/comment-thread-target/update-one-comment-thread-target.args.ts index 8a7ac6d629..7f083a66a8 100644 --- a/server/src/core/@generated/comment-thread-target/update-one-comment-thread-target.args.ts +++ b/server/src/core/@generated/comment-thread-target/update-one-comment-thread-target.args.ts @@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { CommentThreadTargetUpdateInput } from './comment-thread-target-update.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; import { CommentThreadTargetWhereUniqueInput } from './comment-thread-target-where-unique.input'; @ArgsType() @@ -9,6 +10,8 @@ export class UpdateOneCommentThreadTargetArgs { @Field(() => CommentThreadTargetUpdateInput, {nullable:false}) @Type(() => CommentThreadTargetUpdateInput) + @ValidateNested({each: true}) + @Type(() => CommentThreadTargetUpdateInput) data!: CommentThreadTargetUpdateInput; @Field(() => CommentThreadTargetWhereUniqueInput, {nullable:false}) diff --git a/server/src/core/@generated/comment-thread/comment-thread-count-aggregate.input.ts b/server/src/core/@generated/comment-thread/comment-thread-count-aggregate.input.ts index 53bf4b27a1..805d3a008f 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-count-aggregate.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-count-aggregate.input.ts @@ -8,18 +8,18 @@ export class CommentThreadCountAggregateInput { @Field(() => Boolean, {nullable:true}) id?: true; + @HideField() + workspaceId?: true; + + @HideField() + deletedAt?: 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/core/@generated/comment-thread/comment-thread-count-aggregate.output.ts b/server/src/core/@generated/comment-thread/comment-thread-count-aggregate.output.ts index fdc536e0c2..26b4101751 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-count-aggregate.output.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-count-aggregate.output.ts @@ -9,18 +9,18 @@ export class CommentThreadCountAggregate { @Field(() => Int, {nullable:false}) id!: number; + @HideField() + workspaceId!: number; + + @HideField() + deletedAt!: number; + @Field(() => Int, {nullable:false}) createdAt!: number; @Field(() => Int, {nullable:false}) updatedAt!: number; - @Field(() => Int, {nullable:false}) - deletedAt!: number; - - @HideField() - workspaceId!: number; - @Field(() => Int, {nullable:false}) _all!: number; } diff --git a/server/src/core/@generated/comment-thread/comment-thread-count-order-by-aggregate.input.ts b/server/src/core/@generated/comment-thread/comment-thread-count-order-by-aggregate.input.ts index 8ae8827c60..38f1f20d72 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-count-order-by-aggregate.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-count-order-by-aggregate.input.ts @@ -9,15 +9,15 @@ export class CommentThreadCountOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; + @HideField() + workspaceId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: 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/core/@generated/comment-thread/comment-thread-create-many-workspace.input.ts b/server/src/core/@generated/comment-thread/comment-thread-create-many-workspace.input.ts index 5f2144913a..df6c79416a 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-create-many-workspace.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-create-many-workspace.input.ts @@ -1,18 +1,22 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; @InputType() export class CommentThreadCreateManyWorkspaceInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @HideField() + deletedAt?: Date | 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/core/@generated/comment-thread/comment-thread-create-many.input.ts b/server/src/core/@generated/comment-thread/comment-thread-create-many.input.ts index 444dd62fe7..776b619362 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-create-many.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-create-many.input.ts @@ -1,22 +1,25 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @InputType() export class CommentThreadCreateManyInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @HideField() + workspaceId!: string; + + @HideField() + deletedAt?: Date | 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/core/@generated/comment-thread/comment-thread-create-without-comment-thread-targets.input.ts b/server/src/core/@generated/comment-thread/comment-thread-create-without-comment-thread-targets.input.ts index d3b8c81e02..6a41f970ea 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-create-without-comment-thread-targets.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-create-without-comment-thread-targets.input.ts @@ -1,24 +1,27 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } 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:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @HideField() + deletedAt?: Date | 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; diff --git a/server/src/core/@generated/comment-thread/comment-thread-create-without-comments.input.ts b/server/src/core/@generated/comment-thread/comment-thread-create-without-comments.input.ts index 25d7e76737..da829a51e8 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-create-without-comments.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-create-without-comments.input.ts @@ -1,24 +1,27 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } 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:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @HideField() + deletedAt?: Date | 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; diff --git a/server/src/core/@generated/comment-thread/comment-thread-create-without-workspace.input.ts b/server/src/core/@generated/comment-thread/comment-thread-create-without-workspace.input.ts index b1fdc5dc99..0b4a74ad6e 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-create-without-workspace.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-create-without-workspace.input.ts @@ -1,5 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } 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'; @@ -7,17 +9,19 @@ import { CommentCreateNestedManyWithoutCommentThreadInput } from '../comment/com export class CommentThreadCreateWithoutWorkspaceInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @HideField() + deletedAt?: Date | 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; diff --git a/server/src/core/@generated/comment-thread/comment-thread-create.input.ts b/server/src/core/@generated/comment-thread/comment-thread-create.input.ts index 7e4c9053d3..ef2d51dc06 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-create.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-create.input.ts @@ -1,25 +1,28 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } 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:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @HideField() + deletedAt?: Date | 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; diff --git a/server/src/core/@generated/comment-thread/comment-thread-group-by.output.ts b/server/src/core/@generated/comment-thread/comment-thread-group-by.output.ts index 160f45ba08..885b78d14b 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-group-by.output.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-group-by.output.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; import { CommentThreadCountAggregate } from './comment-thread-count-aggregate.output'; import { CommentThreadMinAggregate } from './comment-thread-min-aggregate.output'; @@ -9,20 +10,22 @@ import { CommentThreadMaxAggregate } from './comment-thread-max-aggregate.output export class CommentThreadGroupBy { @Field(() => String, {nullable:false}) + @Validator.IsString() + @Validator.IsOptional() id!: string; + @HideField() + workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:false}) createdAt!: Date | string; @Field(() => Date, {nullable:false}) updatedAt!: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @HideField() - workspaceId!: string; - @Field(() => CommentThreadCountAggregate, {nullable:true}) _count?: CommentThreadCountAggregate; diff --git a/server/src/core/@generated/comment-thread/comment-thread-max-aggregate.input.ts b/server/src/core/@generated/comment-thread/comment-thread-max-aggregate.input.ts index 1d4149f81f..0a22e60e52 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-max-aggregate.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-max-aggregate.input.ts @@ -8,15 +8,15 @@ export class CommentThreadMaxAggregateInput { @Field(() => Boolean, {nullable:true}) id?: true; + @HideField() + workspaceId?: true; + + @HideField() + deletedAt?: 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/core/@generated/comment-thread/comment-thread-max-aggregate.output.ts b/server/src/core/@generated/comment-thread/comment-thread-max-aggregate.output.ts index 91a72cae3d..e76278c67a 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-max-aggregate.output.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-max-aggregate.output.ts @@ -1,22 +1,25 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @ObjectType() export class CommentThreadMaxAggregate { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @HideField() + workspaceId?: string; + + @HideField() + deletedAt?: Date | 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/core/@generated/comment-thread/comment-thread-max-order-by-aggregate.input.ts b/server/src/core/@generated/comment-thread/comment-thread-max-order-by-aggregate.input.ts index 7fa8c4489a..77e00888aa 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-max-order-by-aggregate.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-max-order-by-aggregate.input.ts @@ -9,15 +9,15 @@ export class CommentThreadMaxOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; + @HideField() + workspaceId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: 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/core/@generated/comment-thread/comment-thread-min-aggregate.input.ts b/server/src/core/@generated/comment-thread/comment-thread-min-aggregate.input.ts index b9ebbcb64a..1e45c444c5 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-min-aggregate.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-min-aggregate.input.ts @@ -8,15 +8,15 @@ export class CommentThreadMinAggregateInput { @Field(() => Boolean, {nullable:true}) id?: true; + @HideField() + workspaceId?: true; + + @HideField() + deletedAt?: 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/core/@generated/comment-thread/comment-thread-min-aggregate.output.ts b/server/src/core/@generated/comment-thread/comment-thread-min-aggregate.output.ts index ef2b349c0f..7f89192574 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-min-aggregate.output.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-min-aggregate.output.ts @@ -1,22 +1,25 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @ObjectType() export class CommentThreadMinAggregate { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @HideField() + workspaceId?: string; + + @HideField() + deletedAt?: Date | 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/core/@generated/comment-thread/comment-thread-min-order-by-aggregate.input.ts b/server/src/core/@generated/comment-thread/comment-thread-min-order-by-aggregate.input.ts index 440e560414..ffccd07a07 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-min-order-by-aggregate.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-min-order-by-aggregate.input.ts @@ -9,15 +9,15 @@ export class CommentThreadMinOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; + @HideField() + workspaceId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: 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/core/@generated/comment-thread/comment-thread-order-by-with-aggregation.input.ts b/server/src/core/@generated/comment-thread/comment-thread-order-by-with-aggregation.input.ts index 3d941cc80c..691a37d8ec 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-order-by-with-aggregation.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-order-by-with-aggregation.input.ts @@ -12,18 +12,18 @@ export class CommentThreadOrderByWithAggregationInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; + @HideField() + workspaceId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: 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; diff --git a/server/src/core/@generated/comment-thread/comment-thread-order-by-with-relation.input.ts b/server/src/core/@generated/comment-thread/comment-thread-order-by-with-relation.input.ts index 71bf3618e2..820b616f15 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-order-by-with-relation.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-order-by-with-relation.input.ts @@ -12,18 +12,18 @@ export class CommentThreadOrderByWithRelationInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; + @HideField() + workspaceId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: 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; diff --git a/server/src/core/@generated/comment-thread/comment-thread-scalar-field.enum.ts b/server/src/core/@generated/comment-thread/comment-thread-scalar-field.enum.ts index da384254ab..a4b02004a7 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-scalar-field.enum.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-scalar-field.enum.ts @@ -2,10 +2,10 @@ import { registerEnumType } from '@nestjs/graphql'; export enum CommentThreadScalarFieldEnum { id = "id", - createdAt = "createdAt", - updatedAt = "updatedAt", + workspaceId = "workspaceId", deletedAt = "deletedAt", - workspaceId = "workspaceId" + createdAt = "createdAt", + updatedAt = "updatedAt" } diff --git a/server/src/core/@generated/comment-thread/comment-thread-scalar-where-with-aggregates.input.ts b/server/src/core/@generated/comment-thread/comment-thread-scalar-where-with-aggregates.input.ts index 84552ba8b5..295edaa145 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-scalar-where-with-aggregates.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-scalar-where-with-aggregates.input.ts @@ -1,9 +1,9 @@ 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'; +import { DateTimeNullableWithAggregatesFilter } from '../prisma/date-time-nullable-with-aggregates-filter.input'; +import { DateTimeWithAggregatesFilter } from '../prisma/date-time-with-aggregates-filter.input'; @InputType() export class CommentThreadScalarWhereWithAggregatesInput { @@ -20,15 +20,15 @@ export class CommentThreadScalarWhereWithAggregatesInput { @Field(() => StringWithAggregatesFilter, {nullable:true}) id?: StringWithAggregatesFilter; + @HideField() + workspaceId?: StringWithAggregatesFilter; + + @HideField() + deletedAt?: DateTimeNullableWithAggregatesFilter; + @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/core/@generated/comment-thread/comment-thread-scalar-where.input.ts b/server/src/core/@generated/comment-thread/comment-thread-scalar-where.input.ts index bca6c41d66..80585db9d9 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-scalar-where.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-scalar-where.input.ts @@ -1,9 +1,9 @@ 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 { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; +import { DateTimeFilter } from '../prisma/date-time-filter.input'; @InputType() export class CommentThreadScalarWhereInput { @@ -20,15 +20,15 @@ export class CommentThreadScalarWhereInput { @Field(() => StringFilter, {nullable:true}) id?: StringFilter; + @HideField() + workspaceId?: StringFilter; + + @HideField() + deletedAt?: DateTimeNullableFilter; + @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/core/@generated/comment-thread/comment-thread-unchecked-create-without-comment-thread-targets.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-comment-thread-targets.input.ts index 732d0622d6..7a77e02ca0 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-comment-thread-targets.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-comment-thread-targets.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; import { CommentUncheckedCreateNestedManyWithoutCommentThreadInput } from '../comment/comment-unchecked-create-nested-many-without-comment-thread.input'; @@ -7,20 +8,22 @@ import { CommentUncheckedCreateNestedManyWithoutCommentThreadInput } from '../co export class CommentThreadUncheckedCreateWithoutCommentThreadTargetsInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @HideField() + workspaceId!: string; + + @HideField() + deletedAt?: Date | 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/core/@generated/comment-thread/comment-thread-unchecked-create-without-comments.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-comments.input.ts index 756ede95bc..23ad12f719 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-comments.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-comments.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; import { CommentThreadTargetUncheckedCreateNestedManyWithoutCommentThreadInput } from '../comment-thread-target/comment-thread-target-unchecked-create-nested-many-without-comment-thread.input'; @@ -7,20 +8,22 @@ import { CommentThreadTargetUncheckedCreateNestedManyWithoutCommentThreadInput } export class CommentThreadUncheckedCreateWithoutCommentsInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @HideField() + workspaceId!: string; + + @HideField() + deletedAt?: Date | 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/core/@generated/comment-thread/comment-thread-unchecked-create-without-workspace.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-workspace.input.ts index 6851256223..697f310017 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-workspace.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-workspace.input.ts @@ -1,5 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +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'; @@ -7,17 +9,19 @@ import { CommentUncheckedCreateNestedManyWithoutCommentThreadInput } from '../co export class CommentThreadUncheckedCreateWithoutWorkspaceInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @HideField() + deletedAt?: Date | 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; diff --git a/server/src/core/@generated/comment-thread/comment-thread-unchecked-create.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-create.input.ts index cc9bc163af..c67e5a29b7 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-unchecked-create.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-create.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; 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'; @@ -8,20 +9,22 @@ import { CommentUncheckedCreateNestedManyWithoutCommentThreadInput } from '../co export class CommentThreadUncheckedCreateInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @HideField() + workspaceId!: string; + + @HideField() + deletedAt?: Date | 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/core/@generated/comment-thread/comment-thread-unchecked-update-many-without-comment-threads.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-many-without-comment-threads.input.ts index f6f515decc..a8176bf864 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-many-without-comment-threads.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-many-without-comment-threads.input.ts @@ -1,8 +1,9 @@ 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 { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class CommentThreadUncheckedUpdateManyWithoutCommentThreadsInput { @@ -10,12 +11,12 @@ export class CommentThreadUncheckedUpdateManyWithoutCommentThreadsInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) createdAt?: DateTimeFieldUpdateOperationsInput; @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-many.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-many.input.ts index 01f687d55b..e29d948537 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-many.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-many.input.ts @@ -1,9 +1,9 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class CommentThreadUncheckedUpdateManyInput { @@ -11,15 +11,15 @@ export class CommentThreadUncheckedUpdateManyInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; + @HideField() + workspaceId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + @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/core/@generated/comment-thread/comment-thread-unchecked-update-without-comment-thread-targets.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-comment-thread-targets.input.ts index 80fc0d763b..a3f3a2bfee 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-comment-thread-targets.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-comment-thread-targets.input.ts @@ -1,9 +1,9 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { CommentUncheckedUpdateManyWithoutCommentThreadNestedInput } from '../comment/comment-unchecked-update-many-without-comment-thread-nested.input'; @InputType() @@ -12,18 +12,18 @@ export class CommentThreadUncheckedUpdateWithoutCommentThreadTargetsInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; + @HideField() + workspaceId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + @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/core/@generated/comment-thread/comment-thread-unchecked-update-without-comments.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-comments.input.ts index 786cb2f351..9c05d049c4 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-comments.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-comments.input.ts @@ -1,9 +1,9 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { CommentThreadTargetUncheckedUpdateManyWithoutCommentThreadNestedInput } from '../comment-thread-target/comment-thread-target-unchecked-update-many-without-comment-thread-nested.input'; @InputType() @@ -12,18 +12,18 @@ export class CommentThreadUncheckedUpdateWithoutCommentsInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; + @HideField() + workspaceId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + @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/core/@generated/comment-thread/comment-thread-unchecked-update-without-workspace.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-workspace.input.ts index 06257118e6..a9dbbbdfe6 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-workspace.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-workspace.input.ts @@ -1,8 +1,9 @@ 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 { DateTimeFieldUpdateOperationsInput } from '../prisma/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'; @@ -12,15 +13,15 @@ export class CommentThreadUncheckedUpdateWithoutWorkspaceInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) createdAt?: DateTimeFieldUpdateOperationsInput; @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => CommentThreadTargetUncheckedUpdateManyWithoutCommentThreadNestedInput, {nullable:true}) commentThreadTargets?: CommentThreadTargetUncheckedUpdateManyWithoutCommentThreadNestedInput; diff --git a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update.input.ts index 4ce273e57d..73ee096f5a 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update.input.ts @@ -1,9 +1,9 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/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'; @@ -13,18 +13,18 @@ export class CommentThreadUncheckedUpdateInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; + @HideField() + workspaceId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + @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/core/@generated/comment-thread/comment-thread-update-many-mutation.input.ts b/server/src/core/@generated/comment-thread/comment-thread-update-many-mutation.input.ts index 556ef798b9..4ac5fe4773 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-update-many-mutation.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-update-many-mutation.input.ts @@ -1,8 +1,9 @@ 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 { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class CommentThreadUpdateManyMutationInput { @@ -10,12 +11,12 @@ export class CommentThreadUpdateManyMutationInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) createdAt?: DateTimeFieldUpdateOperationsInput; @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/comment-thread/comment-thread-update-without-comment-thread-targets.input.ts b/server/src/core/@generated/comment-thread/comment-thread-update-without-comment-thread-targets.input.ts index b7a30afa15..11962b372c 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-update-without-comment-thread-targets.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-update-without-comment-thread-targets.input.ts @@ -1,11 +1,11 @@ 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 { DateTimeFieldUpdateOperationsInput } from '../prisma/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 { @@ -13,15 +13,15 @@ export class CommentThreadUpdateWithoutCommentThreadTargetsInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) createdAt?: DateTimeFieldUpdateOperationsInput; @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => CommentUpdateManyWithoutCommentThreadNestedInput, {nullable:true}) comments?: CommentUpdateManyWithoutCommentThreadNestedInput; diff --git a/server/src/core/@generated/comment-thread/comment-thread-update-without-comments.input.ts b/server/src/core/@generated/comment-thread/comment-thread-update-without-comments.input.ts index 69b737bb71..4c2d34db46 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-update-without-comments.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-update-without-comments.input.ts @@ -1,11 +1,11 @@ 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 { DateTimeFieldUpdateOperationsInput } from '../prisma/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 { @@ -13,15 +13,15 @@ export class CommentThreadUpdateWithoutCommentsInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) createdAt?: DateTimeFieldUpdateOperationsInput; @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput, {nullable:true}) commentThreadTargets?: CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput; diff --git a/server/src/core/@generated/comment-thread/comment-thread-update-without-workspace.input.ts b/server/src/core/@generated/comment-thread/comment-thread-update-without-workspace.input.ts index 7f2db2f9a9..0860a0f330 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-update-without-workspace.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-update-without-workspace.input.ts @@ -1,8 +1,9 @@ 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 { DateTimeFieldUpdateOperationsInput } from '../prisma/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'; @@ -12,15 +13,15 @@ export class CommentThreadUpdateWithoutWorkspaceInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) createdAt?: DateTimeFieldUpdateOperationsInput; @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput, {nullable:true}) commentThreadTargets?: CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput; diff --git a/server/src/core/@generated/comment-thread/comment-thread-update.input.ts b/server/src/core/@generated/comment-thread/comment-thread-update.input.ts index 2d61d5dbbc..f9558ac23f 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-update.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-update.input.ts @@ -1,12 +1,12 @@ 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 { DateTimeFieldUpdateOperationsInput } from '../prisma/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 { @@ -14,15 +14,15 @@ export class CommentThreadUpdateInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) createdAt?: DateTimeFieldUpdateOperationsInput; @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput, {nullable:true}) commentThreadTargets?: CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput; diff --git a/server/src/core/@generated/comment-thread/comment-thread-where-unique.input.ts b/server/src/core/@generated/comment-thread/comment-thread-where-unique.input.ts index 2c0cd1b523..c9afee05b4 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-where-unique.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-where-unique.input.ts @@ -1,9 +1,12 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; @InputType() export class CommentThreadWhereUniqueInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; } diff --git a/server/src/core/@generated/comment-thread/comment-thread-where.input.ts b/server/src/core/@generated/comment-thread/comment-thread-where.input.ts index 534b7bf6dc..8565dd9b84 100644 --- a/server/src/core/@generated/comment-thread/comment-thread-where.input.ts +++ b/server/src/core/@generated/comment-thread/comment-thread-where.input.ts @@ -1,9 +1,9 @@ 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 { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; +import { DateTimeFilter } from '../prisma/date-time-filter.input'; 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'; @@ -23,18 +23,18 @@ export class CommentThreadWhereInput { @Field(() => StringFilter, {nullable:true}) id?: StringFilter; + @HideField() + workspaceId?: StringFilter; + + @HideField() + deletedAt?: DateTimeNullableFilter; + @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; diff --git a/server/src/core/@generated/comment-thread/comment-thread.model.ts b/server/src/core/@generated/comment-thread/comment-thread.model.ts index 7dc775bf95..430b1964bb 100644 --- a/server/src/core/@generated/comment-thread/comment-thread.model.ts +++ b/server/src/core/@generated/comment-thread/comment-thread.model.ts @@ -13,18 +13,18 @@ export class CommentThread { @Field(() => ID, {nullable:false}) id!: string; + @HideField() + workspaceId!: string; + + @HideField() + deletedAt!: Date | null; + @Field(() => Date, {nullable:false}) createdAt!: Date; @Field(() => Date, {nullable:false}) updatedAt!: Date; - @Field(() => Date, {nullable:true}) - deletedAt!: Date | null; - - @HideField() - workspaceId!: string; - @Field(() => [CommentThreadTarget], {nullable:true}) commentThreadTargets?: Array; diff --git a/server/src/core/@generated/comment-thread/create-many-comment-thread.args.ts b/server/src/core/@generated/comment-thread/create-many-comment-thread.args.ts index 34abc8f81f..eb14acb1b7 100644 --- a/server/src/core/@generated/comment-thread/create-many-comment-thread.args.ts +++ b/server/src/core/@generated/comment-thread/create-many-comment-thread.args.ts @@ -2,12 +2,15 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { CommentThreadCreateManyInput } from './comment-thread-create-many.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; @ArgsType() export class CreateManyCommentThreadArgs { @Field(() => [CommentThreadCreateManyInput], {nullable:false}) @Type(() => CommentThreadCreateManyInput) + @ValidateNested({each: true}) + @Type(() => CommentThreadCreateManyInput) data!: Array; @Field(() => Boolean, {nullable:true}) diff --git a/server/src/core/@generated/comment-thread/create-one-comment-thread.args.ts b/server/src/core/@generated/comment-thread/create-one-comment-thread.args.ts index be6d3b1a7d..20ed8d3e5e 100644 --- a/server/src/core/@generated/comment-thread/create-one-comment-thread.args.ts +++ b/server/src/core/@generated/comment-thread/create-one-comment-thread.args.ts @@ -2,11 +2,14 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { CommentThreadCreateInput } from './comment-thread-create.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; @ArgsType() export class CreateOneCommentThreadArgs { @Field(() => CommentThreadCreateInput, {nullable:false}) @Type(() => CommentThreadCreateInput) + @ValidateNested({each: true}) + @Type(() => CommentThreadCreateInput) data!: CommentThreadCreateInput; } diff --git a/server/src/core/@generated/comment-thread/update-many-comment-thread.args.ts b/server/src/core/@generated/comment-thread/update-many-comment-thread.args.ts index 86c33e1ebb..ccf3aeaf47 100644 --- a/server/src/core/@generated/comment-thread/update-many-comment-thread.args.ts +++ b/server/src/core/@generated/comment-thread/update-many-comment-thread.args.ts @@ -2,6 +2,7 @@ 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 { ValidateNested } from 'class-validator'; import { CommentThreadWhereInput } from './comment-thread-where.input'; @ArgsType() @@ -9,6 +10,8 @@ export class UpdateManyCommentThreadArgs { @Field(() => CommentThreadUpdateManyMutationInput, {nullable:false}) @Type(() => CommentThreadUpdateManyMutationInput) + @ValidateNested({each: true}) + @Type(() => CommentThreadUpdateManyMutationInput) data!: CommentThreadUpdateManyMutationInput; @Field(() => CommentThreadWhereInput, {nullable:true}) diff --git a/server/src/core/@generated/comment-thread/update-one-comment-thread.args.ts b/server/src/core/@generated/comment-thread/update-one-comment-thread.args.ts index 82a1261288..0c7ba72774 100644 --- a/server/src/core/@generated/comment-thread/update-one-comment-thread.args.ts +++ b/server/src/core/@generated/comment-thread/update-one-comment-thread.args.ts @@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { CommentThreadUpdateInput } from './comment-thread-update.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input'; @ArgsType() @@ -9,6 +10,8 @@ export class UpdateOneCommentThreadArgs { @Field(() => CommentThreadUpdateInput, {nullable:false}) @Type(() => CommentThreadUpdateInput) + @ValidateNested({each: true}) + @Type(() => CommentThreadUpdateInput) data!: CommentThreadUpdateInput; @Field(() => CommentThreadWhereUniqueInput, {nullable:false}) diff --git a/server/src/core/@generated/comment/comment-count-aggregate.input.ts b/server/src/core/@generated/comment/comment-count-aggregate.input.ts index 17baa23ac6..89af0ecef4 100644 --- a/server/src/core/@generated/comment/comment-count-aggregate.input.ts +++ b/server/src/core/@generated/comment/comment-count-aggregate.input.ts @@ -8,15 +8,6 @@ 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; @@ -29,6 +20,15 @@ export class CommentCountAggregateInput { @HideField() workspaceId?: true; + @HideField() + deletedAt?: true; + + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; + @Field(() => Boolean, {nullable:true}) _all?: true; } diff --git a/server/src/core/@generated/comment/comment-count-aggregate.output.ts b/server/src/core/@generated/comment/comment-count-aggregate.output.ts index a49f2a2f28..c9698a2e82 100644 --- a/server/src/core/@generated/comment/comment-count-aggregate.output.ts +++ b/server/src/core/@generated/comment/comment-count-aggregate.output.ts @@ -9,15 +9,6 @@ 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; @@ -30,6 +21,15 @@ export class CommentCountAggregate { @HideField() workspaceId!: number; + @HideField() + deletedAt!: number; + + @Field(() => Int, {nullable:false}) + createdAt!: number; + + @Field(() => Int, {nullable:false}) + updatedAt!: number; + @Field(() => Int, {nullable:false}) _all!: number; } diff --git a/server/src/core/@generated/comment/comment-count-order-by-aggregate.input.ts b/server/src/core/@generated/comment/comment-count-order-by-aggregate.input.ts index 551d7006ec..46177b8dac 100644 --- a/server/src/core/@generated/comment/comment-count-order-by-aggregate.input.ts +++ b/server/src/core/@generated/comment/comment-count-order-by-aggregate.input.ts @@ -9,15 +9,6 @@ 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; @@ -29,4 +20,13 @@ export class CommentCountOrderByAggregateInput { @HideField() workspaceId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/comment/comment-create-many-author.input.ts b/server/src/core/@generated/comment/comment-create-many-author.input.ts index ca17fd6cce..d7c8705338 100644 --- a/server/src/core/@generated/comment/comment-create-many-author.input.ts +++ b/server/src/core/@generated/comment/comment-create-many-author.input.ts @@ -1,23 +1,18 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @InputType() export class CommentCreateManyAuthorInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() 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}) + @Validator.IsString() body!: string; @Field(() => String, {nullable:false}) @@ -25,4 +20,13 @@ export class CommentCreateManyAuthorInput { @HideField() workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/comment/comment-create-many-comment-thread.input.ts b/server/src/core/@generated/comment/comment-create-many-comment-thread.input.ts index b1107ba215..2bb1a85762 100644 --- a/server/src/core/@generated/comment/comment-create-many-comment-thread.input.ts +++ b/server/src/core/@generated/comment/comment-create-many-comment-thread.input.ts @@ -1,23 +1,18 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @InputType() export class CommentCreateManyCommentThreadInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() 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}) + @Validator.IsString() body!: string; @Field(() => String, {nullable:false}) @@ -25,4 +20,13 @@ export class CommentCreateManyCommentThreadInput { @HideField() workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/comment/comment-create-many-workspace.input.ts b/server/src/core/@generated/comment/comment-create-many-workspace.input.ts index 52aa699d3c..7ae9a8982f 100644 --- a/server/src/core/@generated/comment/comment-create-many-workspace.input.ts +++ b/server/src/core/@generated/comment/comment-create-many-workspace.input.ts @@ -1,22 +1,18 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; @InputType() export class CommentCreateManyWorkspaceInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() 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}) + @Validator.IsString() body!: string; @Field(() => String, {nullable:false}) @@ -24,4 +20,13 @@ export class CommentCreateManyWorkspaceInput { @Field(() => String, {nullable:false}) commentThreadId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/comment/comment-create-many.input.ts b/server/src/core/@generated/comment/comment-create-many.input.ts index f5eea37fcf..7ebf705b71 100644 --- a/server/src/core/@generated/comment/comment-create-many.input.ts +++ b/server/src/core/@generated/comment/comment-create-many.input.ts @@ -1,23 +1,18 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @InputType() export class CommentCreateManyInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() 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}) + @Validator.IsString() body!: string; @Field(() => String, {nullable:false}) @@ -28,4 +23,13 @@ export class CommentCreateManyInput { @HideField() workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/comment/comment-create-without-author.input.ts b/server/src/core/@generated/comment/comment-create-without-author.input.ts index 6f79837eb4..2ac660538d 100644 --- a/server/src/core/@generated/comment/comment-create-without-author.input.ts +++ b/server/src/core/@generated/comment/comment-create-without-author.input.ts @@ -1,27 +1,31 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } 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:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + body!: string; + + @HideField() + deletedAt?: Date | 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; diff --git a/server/src/core/@generated/comment/comment-create-without-comment-thread.input.ts b/server/src/core/@generated/comment/comment-create-without-comment-thread.input.ts index f0012b0644..308a1080c8 100644 --- a/server/src/core/@generated/comment/comment-create-without-comment-thread.input.ts +++ b/server/src/core/@generated/comment/comment-create-without-comment-thread.input.ts @@ -1,27 +1,31 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } 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:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + body!: string; + + @HideField() + deletedAt?: Date | 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; diff --git a/server/src/core/@generated/comment/comment-create-without-workspace.input.ts b/server/src/core/@generated/comment/comment-create-without-workspace.input.ts index 5441d9b1b2..e10ec5cbe6 100644 --- a/server/src/core/@generated/comment/comment-create-without-workspace.input.ts +++ b/server/src/core/@generated/comment/comment-create-without-workspace.input.ts @@ -1,5 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } 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'; @@ -7,20 +9,23 @@ import { CommentThreadCreateNestedOneWithoutCommentsInput } from '../comment-thr export class CommentCreateWithoutWorkspaceInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + body!: string; + + @HideField() + deletedAt?: Date | 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; diff --git a/server/src/core/@generated/comment/comment-create.input.ts b/server/src/core/@generated/comment/comment-create.input.ts index 9600cfc1e4..1c1ae3c64c 100644 --- a/server/src/core/@generated/comment/comment-create.input.ts +++ b/server/src/core/@generated/comment/comment-create.input.ts @@ -1,28 +1,32 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } 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:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + body!: string; + + @HideField() + deletedAt?: Date | 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; diff --git a/server/src/core/@generated/comment/comment-group-by.output.ts b/server/src/core/@generated/comment/comment-group-by.output.ts index 6916605453..bfe52f64ad 100644 --- a/server/src/core/@generated/comment/comment-group-by.output.ts +++ b/server/src/core/@generated/comment/comment-group-by.output.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; import { CommentCountAggregate } from './comment-count-aggregate.output'; import { CommentMinAggregate } from './comment-min-aggregate.output'; @@ -9,18 +10,12 @@ import { CommentMaxAggregate } from './comment-max-aggregate.output'; export class CommentGroupBy { @Field(() => String, {nullable:false}) + @Validator.IsString() + @Validator.IsOptional() 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}) + @Validator.IsString() body!: string; @Field(() => String, {nullable:false}) @@ -32,6 +27,15 @@ export class CommentGroupBy { @HideField() workspaceId!: string; + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:false}) + createdAt!: Date | string; + + @Field(() => Date, {nullable:false}) + updatedAt!: Date | string; + @Field(() => CommentCountAggregate, {nullable:true}) _count?: CommentCountAggregate; diff --git a/server/src/core/@generated/comment/comment-max-aggregate.input.ts b/server/src/core/@generated/comment/comment-max-aggregate.input.ts index 30ecd9d72b..ebf8cc1286 100644 --- a/server/src/core/@generated/comment/comment-max-aggregate.input.ts +++ b/server/src/core/@generated/comment/comment-max-aggregate.input.ts @@ -8,15 +8,6 @@ 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; @@ -28,4 +19,13 @@ export class CommentMaxAggregateInput { @HideField() workspaceId?: true; + + @HideField() + deletedAt?: true; + + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; } diff --git a/server/src/core/@generated/comment/comment-max-aggregate.output.ts b/server/src/core/@generated/comment/comment-max-aggregate.output.ts index 5b6ef95e83..76a42879ce 100644 --- a/server/src/core/@generated/comment/comment-max-aggregate.output.ts +++ b/server/src/core/@generated/comment/comment-max-aggregate.output.ts @@ -1,23 +1,18 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @ObjectType() export class CommentMaxAggregate { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() 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}) + @Validator.IsString() body?: string; @Field(() => String, {nullable:true}) @@ -28,4 +23,13 @@ export class CommentMaxAggregate { @HideField() workspaceId?: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/comment/comment-max-order-by-aggregate.input.ts b/server/src/core/@generated/comment/comment-max-order-by-aggregate.input.ts index 32450f8762..66e4d5c39e 100644 --- a/server/src/core/@generated/comment/comment-max-order-by-aggregate.input.ts +++ b/server/src/core/@generated/comment/comment-max-order-by-aggregate.input.ts @@ -9,15 +9,6 @@ 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; @@ -29,4 +20,13 @@ export class CommentMaxOrderByAggregateInput { @HideField() workspaceId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/comment/comment-min-aggregate.input.ts b/server/src/core/@generated/comment/comment-min-aggregate.input.ts index 3717705b99..2191c600d3 100644 --- a/server/src/core/@generated/comment/comment-min-aggregate.input.ts +++ b/server/src/core/@generated/comment/comment-min-aggregate.input.ts @@ -8,15 +8,6 @@ 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; @@ -28,4 +19,13 @@ export class CommentMinAggregateInput { @HideField() workspaceId?: true; + + @HideField() + deletedAt?: true; + + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; } diff --git a/server/src/core/@generated/comment/comment-min-aggregate.output.ts b/server/src/core/@generated/comment/comment-min-aggregate.output.ts index b3537b1642..0aff5db281 100644 --- a/server/src/core/@generated/comment/comment-min-aggregate.output.ts +++ b/server/src/core/@generated/comment/comment-min-aggregate.output.ts @@ -1,23 +1,18 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @ObjectType() export class CommentMinAggregate { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() 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}) + @Validator.IsString() body?: string; @Field(() => String, {nullable:true}) @@ -28,4 +23,13 @@ export class CommentMinAggregate { @HideField() workspaceId?: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/comment/comment-min-order-by-aggregate.input.ts b/server/src/core/@generated/comment/comment-min-order-by-aggregate.input.ts index 82a7abccd9..0cdfb6456d 100644 --- a/server/src/core/@generated/comment/comment-min-order-by-aggregate.input.ts +++ b/server/src/core/@generated/comment/comment-min-order-by-aggregate.input.ts @@ -9,15 +9,6 @@ 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; @@ -29,4 +20,13 @@ export class CommentMinOrderByAggregateInput { @HideField() workspaceId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/comment/comment-order-by-with-aggregation.input.ts b/server/src/core/@generated/comment/comment-order-by-with-aggregation.input.ts index 349a6c1636..8e7b21f15f 100644 --- a/server/src/core/@generated/comment/comment-order-by-with-aggregation.input.ts +++ b/server/src/core/@generated/comment/comment-order-by-with-aggregation.input.ts @@ -12,15 +12,6 @@ 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; @@ -33,6 +24,15 @@ export class CommentOrderByWithAggregationInput { @HideField() workspaceId?: keyof typeof SortOrder; + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; + @Field(() => CommentCountOrderByAggregateInput, {nullable:true}) _count?: CommentCountOrderByAggregateInput; diff --git a/server/src/core/@generated/comment/comment-order-by-with-relation.input.ts b/server/src/core/@generated/comment/comment-order-by-with-relation.input.ts index bd88e7d1a4..7336ca8ede 100644 --- a/server/src/core/@generated/comment/comment-order-by-with-relation.input.ts +++ b/server/src/core/@generated/comment/comment-order-by-with-relation.input.ts @@ -12,15 +12,6 @@ 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; @@ -33,6 +24,15 @@ export class CommentOrderByWithRelationInput { @HideField() workspaceId?: keyof typeof SortOrder; + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; + @Field(() => UserOrderByWithRelationInput, {nullable:true}) author?: UserOrderByWithRelationInput; diff --git a/server/src/core/@generated/comment/comment-scalar-field.enum.ts b/server/src/core/@generated/comment/comment-scalar-field.enum.ts index 2a4a40b426..0c3c0accf9 100644 --- a/server/src/core/@generated/comment/comment-scalar-field.enum.ts +++ b/server/src/core/@generated/comment/comment-scalar-field.enum.ts @@ -2,13 +2,13 @@ import { registerEnumType } from '@nestjs/graphql'; export enum CommentScalarFieldEnum { id = "id", - createdAt = "createdAt", - updatedAt = "updatedAt", - deletedAt = "deletedAt", body = "body", authorId = "authorId", commentThreadId = "commentThreadId", - workspaceId = "workspaceId" + workspaceId = "workspaceId", + deletedAt = "deletedAt", + createdAt = "createdAt", + updatedAt = "updatedAt" } diff --git a/server/src/core/@generated/comment/comment-scalar-where-with-aggregates.input.ts b/server/src/core/@generated/comment/comment-scalar-where-with-aggregates.input.ts index 875899b17b..f018ee34c3 100644 --- a/server/src/core/@generated/comment/comment-scalar-where-with-aggregates.input.ts +++ b/server/src/core/@generated/comment/comment-scalar-where-with-aggregates.input.ts @@ -1,9 +1,9 @@ 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'; +import { DateTimeNullableWithAggregatesFilter } from '../prisma/date-time-nullable-with-aggregates-filter.input'; +import { DateTimeWithAggregatesFilter } from '../prisma/date-time-with-aggregates-filter.input'; @InputType() export class CommentScalarWhereWithAggregatesInput { @@ -20,15 +20,6 @@ export class CommentScalarWhereWithAggregatesInput { @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; @@ -40,4 +31,13 @@ export class CommentScalarWhereWithAggregatesInput { @HideField() workspaceId?: StringWithAggregatesFilter; + + @HideField() + deletedAt?: DateTimeNullableWithAggregatesFilter; + + @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) + createdAt?: DateTimeWithAggregatesFilter; + + @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) + updatedAt?: DateTimeWithAggregatesFilter; } diff --git a/server/src/core/@generated/comment/comment-scalar-where.input.ts b/server/src/core/@generated/comment/comment-scalar-where.input.ts index 0638873667..3ff125e3fc 100644 --- a/server/src/core/@generated/comment/comment-scalar-where.input.ts +++ b/server/src/core/@generated/comment/comment-scalar-where.input.ts @@ -1,9 +1,9 @@ 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 { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; +import { DateTimeFilter } from '../prisma/date-time-filter.input'; @InputType() export class CommentScalarWhereInput { @@ -20,15 +20,6 @@ export class CommentScalarWhereInput { @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; @@ -40,4 +31,13 @@ export class CommentScalarWhereInput { @HideField() workspaceId?: StringFilter; + + @HideField() + deletedAt?: DateTimeNullableFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + createdAt?: DateTimeFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + updatedAt?: DateTimeFilter; } diff --git a/server/src/core/@generated/comment/comment-unchecked-create-without-author.input.ts b/server/src/core/@generated/comment/comment-unchecked-create-without-author.input.ts index ac1b6d8f0b..6a0fae0509 100644 --- a/server/src/core/@generated/comment/comment-unchecked-create-without-author.input.ts +++ b/server/src/core/@generated/comment/comment-unchecked-create-without-author.input.ts @@ -1,23 +1,18 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @InputType() export class CommentUncheckedCreateWithoutAuthorInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() 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}) + @Validator.IsString() body!: string; @Field(() => String, {nullable:false}) @@ -25,4 +20,13 @@ export class CommentUncheckedCreateWithoutAuthorInput { @HideField() workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/comment/comment-unchecked-create-without-comment-thread.input.ts b/server/src/core/@generated/comment/comment-unchecked-create-without-comment-thread.input.ts index 25df568a12..b7a8b5e13b 100644 --- a/server/src/core/@generated/comment/comment-unchecked-create-without-comment-thread.input.ts +++ b/server/src/core/@generated/comment/comment-unchecked-create-without-comment-thread.input.ts @@ -1,23 +1,18 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @InputType() export class CommentUncheckedCreateWithoutCommentThreadInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() 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}) + @Validator.IsString() body!: string; @Field(() => String, {nullable:false}) @@ -25,4 +20,13 @@ export class CommentUncheckedCreateWithoutCommentThreadInput { @HideField() workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/comment/comment-unchecked-create-without-workspace.input.ts b/server/src/core/@generated/comment/comment-unchecked-create-without-workspace.input.ts index eb46be7e5a..3e1d391d19 100644 --- a/server/src/core/@generated/comment/comment-unchecked-create-without-workspace.input.ts +++ b/server/src/core/@generated/comment/comment-unchecked-create-without-workspace.input.ts @@ -1,22 +1,18 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; @InputType() export class CommentUncheckedCreateWithoutWorkspaceInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() 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}) + @Validator.IsString() body!: string; @Field(() => String, {nullable:false}) @@ -24,4 +20,13 @@ export class CommentUncheckedCreateWithoutWorkspaceInput { @Field(() => String, {nullable:false}) commentThreadId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/comment/comment-unchecked-create.input.ts b/server/src/core/@generated/comment/comment-unchecked-create.input.ts index 22e3330dda..690de65f9f 100644 --- a/server/src/core/@generated/comment/comment-unchecked-create.input.ts +++ b/server/src/core/@generated/comment/comment-unchecked-create.input.ts @@ -1,23 +1,18 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @InputType() export class CommentUncheckedCreateInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() 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}) + @Validator.IsString() body!: string; @Field(() => String, {nullable:false}) @@ -28,4 +23,13 @@ export class CommentUncheckedCreateInput { @HideField() workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/comment/comment-unchecked-update-many-without-comments.input.ts b/server/src/core/@generated/comment/comment-unchecked-update-many-without-comments.input.ts index 6dd4fe5020..1802ebeef7 100644 --- a/server/src/core/@generated/comment/comment-unchecked-update-many-without-comments.input.ts +++ b/server/src/core/@generated/comment/comment-unchecked-update-many-without-comments.input.ts @@ -1,9 +1,9 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class CommentUncheckedUpdateManyWithoutCommentsInput { @@ -11,15 +11,6 @@ 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; @@ -28,4 +19,13 @@ export class CommentUncheckedUpdateManyWithoutCommentsInput { @HideField() workspaceId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/comment/comment-unchecked-update-many.input.ts b/server/src/core/@generated/comment/comment-unchecked-update-many.input.ts index 98db2077c1..c5e8948eb6 100644 --- a/server/src/core/@generated/comment/comment-unchecked-update-many.input.ts +++ b/server/src/core/@generated/comment/comment-unchecked-update-many.input.ts @@ -1,9 +1,9 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class CommentUncheckedUpdateManyInput { @@ -11,15 +11,6 @@ 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; @@ -31,4 +22,13 @@ export class CommentUncheckedUpdateManyInput { @HideField() workspaceId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/comment/comment-unchecked-update-without-author.input.ts b/server/src/core/@generated/comment/comment-unchecked-update-without-author.input.ts index f813f9a4fc..025ec0409c 100644 --- a/server/src/core/@generated/comment/comment-unchecked-update-without-author.input.ts +++ b/server/src/core/@generated/comment/comment-unchecked-update-without-author.input.ts @@ -1,9 +1,9 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class CommentUncheckedUpdateWithoutAuthorInput { @@ -11,15 +11,6 @@ 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; @@ -28,4 +19,13 @@ export class CommentUncheckedUpdateWithoutAuthorInput { @HideField() workspaceId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/comment/comment-unchecked-update-without-comment-thread.input.ts b/server/src/core/@generated/comment/comment-unchecked-update-without-comment-thread.input.ts index bc508db7ae..14d2d005bb 100644 --- a/server/src/core/@generated/comment/comment-unchecked-update-without-comment-thread.input.ts +++ b/server/src/core/@generated/comment/comment-unchecked-update-without-comment-thread.input.ts @@ -1,9 +1,9 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class CommentUncheckedUpdateWithoutCommentThreadInput { @@ -11,15 +11,6 @@ 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; @@ -28,4 +19,13 @@ export class CommentUncheckedUpdateWithoutCommentThreadInput { @HideField() workspaceId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/comment/comment-unchecked-update-without-workspace.input.ts b/server/src/core/@generated/comment/comment-unchecked-update-without-workspace.input.ts index 7b390d1719..173f3a1a01 100644 --- a/server/src/core/@generated/comment/comment-unchecked-update-without-workspace.input.ts +++ b/server/src/core/@generated/comment/comment-unchecked-update-without-workspace.input.ts @@ -1,8 +1,9 @@ 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 { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class CommentUncheckedUpdateWithoutWorkspaceInput { @@ -10,15 +11,6 @@ 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; @@ -27,4 +19,13 @@ export class CommentUncheckedUpdateWithoutWorkspaceInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) commentThreadId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/comment/comment-unchecked-update.input.ts b/server/src/core/@generated/comment/comment-unchecked-update.input.ts index 7474d2ec16..7551d1c909 100644 --- a/server/src/core/@generated/comment/comment-unchecked-update.input.ts +++ b/server/src/core/@generated/comment/comment-unchecked-update.input.ts @@ -1,9 +1,9 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class CommentUncheckedUpdateInput { @@ -11,15 +11,6 @@ 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; @@ -31,4 +22,13 @@ export class CommentUncheckedUpdateInput { @HideField() workspaceId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/comment/comment-update-many-mutation.input.ts b/server/src/core/@generated/comment/comment-update-many-mutation.input.ts index 2bb9744477..aa011be809 100644 --- a/server/src/core/@generated/comment/comment-update-many-mutation.input.ts +++ b/server/src/core/@generated/comment/comment-update-many-mutation.input.ts @@ -1,8 +1,9 @@ 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 { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class CommentUpdateManyMutationInput { @@ -10,15 +11,15 @@ export class CommentUpdateManyMutationInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + body?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + @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/core/@generated/comment/comment-update-without-author.input.ts b/server/src/core/@generated/comment/comment-update-without-author.input.ts index 74539a2485..540ecb69e0 100644 --- a/server/src/core/@generated/comment/comment-update-without-author.input.ts +++ b/server/src/core/@generated/comment/comment-update-without-author.input.ts @@ -1,11 +1,11 @@ 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 { DateTimeFieldUpdateOperationsInput } from '../prisma/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 { @@ -13,18 +13,18 @@ export class CommentUpdateWithoutAuthorInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + body?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + @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; diff --git a/server/src/core/@generated/comment/comment-update-without-comment-thread.input.ts b/server/src/core/@generated/comment/comment-update-without-comment-thread.input.ts index ecb9b251b5..19ab20305b 100644 --- a/server/src/core/@generated/comment/comment-update-without-comment-thread.input.ts +++ b/server/src/core/@generated/comment/comment-update-without-comment-thread.input.ts @@ -1,11 +1,11 @@ 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 { DateTimeFieldUpdateOperationsInput } from '../prisma/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 { @@ -13,18 +13,18 @@ export class CommentUpdateWithoutCommentThreadInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + body?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + @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; diff --git a/server/src/core/@generated/comment/comment-update-without-workspace.input.ts b/server/src/core/@generated/comment/comment-update-without-workspace.input.ts index 96d20eceb4..f61c5d5311 100644 --- a/server/src/core/@generated/comment/comment-update-without-workspace.input.ts +++ b/server/src/core/@generated/comment/comment-update-without-workspace.input.ts @@ -1,8 +1,9 @@ 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 { DateTimeFieldUpdateOperationsInput } from '../prisma/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'; @@ -12,18 +13,18 @@ export class CommentUpdateWithoutWorkspaceInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + body?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + @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; diff --git a/server/src/core/@generated/comment/comment-update.input.ts b/server/src/core/@generated/comment/comment-update.input.ts index e401062669..c0bef523d7 100644 --- a/server/src/core/@generated/comment/comment-update.input.ts +++ b/server/src/core/@generated/comment/comment-update.input.ts @@ -1,12 +1,12 @@ 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 { DateTimeFieldUpdateOperationsInput } from '../prisma/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 { @@ -14,18 +14,18 @@ export class CommentUpdateInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + body?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + @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; diff --git a/server/src/core/@generated/comment/comment-where-unique.input.ts b/server/src/core/@generated/comment/comment-where-unique.input.ts index bcdc9d336e..a7c8c8c415 100644 --- a/server/src/core/@generated/comment/comment-where-unique.input.ts +++ b/server/src/core/@generated/comment/comment-where-unique.input.ts @@ -1,9 +1,12 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; @InputType() export class CommentWhereUniqueInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; } diff --git a/server/src/core/@generated/comment/comment-where.input.ts b/server/src/core/@generated/comment/comment-where.input.ts index ab5e1ed808..f48c7cf7fd 100644 --- a/server/src/core/@generated/comment/comment-where.input.ts +++ b/server/src/core/@generated/comment/comment-where.input.ts @@ -1,9 +1,9 @@ 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 { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; +import { DateTimeFilter } from '../prisma/date-time-filter.input'; 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'; @@ -23,15 +23,6 @@ export class CommentWhereInput { @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; @@ -44,6 +35,15 @@ export class CommentWhereInput { @HideField() workspaceId?: StringFilter; + @HideField() + deletedAt?: DateTimeNullableFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + createdAt?: DateTimeFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + updatedAt?: DateTimeFilter; + @Field(() => UserRelationFilter, {nullable:true}) author?: UserRelationFilter; diff --git a/server/src/core/@generated/comment/comment.model.ts b/server/src/core/@generated/comment/comment.model.ts index 1469465c45..0b229f8c09 100644 --- a/server/src/core/@generated/comment/comment.model.ts +++ b/server/src/core/@generated/comment/comment.model.ts @@ -12,15 +12,6 @@ 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; @@ -33,6 +24,15 @@ export class Comment { @HideField() workspaceId!: string; + @HideField() + deletedAt!: Date | null; + + @Field(() => Date, {nullable:false}) + createdAt!: Date; + + @Field(() => Date, {nullable:false}) + updatedAt!: Date; + @Field(() => User, {nullable:false}) author?: User; diff --git a/server/src/core/@generated/comment/create-many-comment.args.ts b/server/src/core/@generated/comment/create-many-comment.args.ts index 51b3f47208..fc752ae2b3 100644 --- a/server/src/core/@generated/comment/create-many-comment.args.ts +++ b/server/src/core/@generated/comment/create-many-comment.args.ts @@ -2,12 +2,15 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { CommentCreateManyInput } from './comment-create-many.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; @ArgsType() export class CreateManyCommentArgs { @Field(() => [CommentCreateManyInput], {nullable:false}) @Type(() => CommentCreateManyInput) + @ValidateNested({each: true}) + @Type(() => CommentCreateManyInput) data!: Array; @Field(() => Boolean, {nullable:true}) diff --git a/server/src/core/@generated/comment/create-one-comment.args.ts b/server/src/core/@generated/comment/create-one-comment.args.ts index 6656889420..573b1a2e6d 100644 --- a/server/src/core/@generated/comment/create-one-comment.args.ts +++ b/server/src/core/@generated/comment/create-one-comment.args.ts @@ -2,11 +2,14 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { CommentCreateInput } from './comment-create.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; @ArgsType() export class CreateOneCommentArgs { @Field(() => CommentCreateInput, {nullable:false}) @Type(() => CommentCreateInput) + @ValidateNested({each: true}) + @Type(() => CommentCreateInput) data!: CommentCreateInput; } diff --git a/server/src/core/@generated/comment/update-many-comment.args.ts b/server/src/core/@generated/comment/update-many-comment.args.ts index 0f562576f0..2ed02c08dc 100644 --- a/server/src/core/@generated/comment/update-many-comment.args.ts +++ b/server/src/core/@generated/comment/update-many-comment.args.ts @@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { CommentUpdateManyMutationInput } from './comment-update-many-mutation.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; import { CommentWhereInput } from './comment-where.input'; @ArgsType() @@ -9,6 +10,8 @@ export class UpdateManyCommentArgs { @Field(() => CommentUpdateManyMutationInput, {nullable:false}) @Type(() => CommentUpdateManyMutationInput) + @ValidateNested({each: true}) + @Type(() => CommentUpdateManyMutationInput) data!: CommentUpdateManyMutationInput; @Field(() => CommentWhereInput, {nullable:true}) diff --git a/server/src/core/@generated/comment/update-one-comment.args.ts b/server/src/core/@generated/comment/update-one-comment.args.ts index 9acbfba605..efeb6180f8 100644 --- a/server/src/core/@generated/comment/update-one-comment.args.ts +++ b/server/src/core/@generated/comment/update-one-comment.args.ts @@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { CommentUpdateInput } from './comment-update.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; import { CommentWhereUniqueInput } from './comment-where-unique.input'; @ArgsType() @@ -9,6 +10,8 @@ export class UpdateOneCommentArgs { @Field(() => CommentUpdateInput, {nullable:false}) @Type(() => CommentUpdateInput) + @ValidateNested({each: true}) + @Type(() => CommentUpdateInput) data!: CommentUpdateInput; @Field(() => CommentWhereUniqueInput, {nullable:false}) diff --git a/server/src/core/@generated/company/company-count-aggregate.input.ts b/server/src/core/@generated/company/company-count-aggregate.input.ts index edd42fd9fd..14f2f92d04 100644 --- a/server/src/core/@generated/company/company-count-aggregate.input.ts +++ b/server/src/core/@generated/company/company-count-aggregate.input.ts @@ -8,15 +8,6 @@ export class CompanyCountAggregateInput { @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}) name?: true; @@ -35,6 +26,15 @@ export class CompanyCountAggregateInput { @HideField() workspaceId?: true; + @HideField() + deletedAt?: true; + + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; + @Field(() => Boolean, {nullable:true}) _all?: true; } diff --git a/server/src/core/@generated/company/company-count-aggregate.output.ts b/server/src/core/@generated/company/company-count-aggregate.output.ts index 774516c120..143cc0700c 100644 --- a/server/src/core/@generated/company/company-count-aggregate.output.ts +++ b/server/src/core/@generated/company/company-count-aggregate.output.ts @@ -1,6 +1,7 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; import { Int } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @ObjectType() @@ -9,15 +10,6 @@ export class CompanyCountAggregate { @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}) name!: number; @@ -28,6 +20,8 @@ export class CompanyCountAggregate { address!: number; @Field(() => Int, {nullable:false}) + @Validator.IsNumber() + @Validator.IsOptional() employees!: number; @Field(() => Int, {nullable:false}) @@ -36,6 +30,15 @@ export class CompanyCountAggregate { @HideField() workspaceId!: number; + @HideField() + deletedAt!: number; + + @Field(() => Int, {nullable:false}) + createdAt!: number; + + @Field(() => Int, {nullable:false}) + updatedAt!: number; + @Field(() => Int, {nullable:false}) _all!: number; } diff --git a/server/src/core/@generated/company/company-count-order-by-aggregate.input.ts b/server/src/core/@generated/company/company-count-order-by-aggregate.input.ts index e1b1e1d1ca..75597cb141 100644 --- a/server/src/core/@generated/company/company-count-order-by-aggregate.input.ts +++ b/server/src/core/@generated/company/company-count-order-by-aggregate.input.ts @@ -9,15 +9,6 @@ export class CompanyCountOrderByAggregateInput { @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}) name?: keyof typeof SortOrder; @@ -35,4 +26,13 @@ export class CompanyCountOrderByAggregateInput { @HideField() workspaceId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/company/company-create-many-account-owner.input.ts b/server/src/core/@generated/company/company-create-many-account-owner.input.ts index 6f32dd1be8..99c968e834 100644 --- a/server/src/core/@generated/company/company-create-many-account-owner.input.ts +++ b/server/src/core/@generated/company/company-create-many-account-owner.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { Int } from '@nestjs/graphql'; import { HideField } from '@nestjs/graphql'; @@ -7,29 +8,36 @@ import { HideField } from '@nestjs/graphql'; export class CompanyCreateManyAccountOwnerInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + name!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + address!: string; + + @Field(() => Int, {nullable:true}) + @Validator.IsNumber() + @Validator.IsOptional() + employees?: number; + + @HideField() + workspaceId!: string; + + @HideField() + deletedAt?: Date | 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}) - name!: string; - - @Field(() => String, {nullable:false}) - domainName!: string; - - @Field(() => String, {nullable:false}) - address!: string; - - @Field(() => Int, {nullable:true}) - employees?: number; - - @HideField() - workspaceId!: string; } diff --git a/server/src/core/@generated/company/company-create-many-workspace.input.ts b/server/src/core/@generated/company/company-create-many-workspace.input.ts index fbfaee755c..3f763511ab 100644 --- a/server/src/core/@generated/company/company-create-many-workspace.input.ts +++ b/server/src/core/@generated/company/company-create-many-workspace.input.ts @@ -1,34 +1,43 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { Int } from '@nestjs/graphql'; +import { HideField } from '@nestjs/graphql'; @InputType() export class CompanyCreateManyWorkspaceInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + name!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + address!: string; + + @Field(() => Int, {nullable:true}) + @Validator.IsNumber() + @Validator.IsOptional() + employees?: number; + + @Field(() => String, {nullable:true}) + accountOwnerId?: string; + + @HideField() + deletedAt?: Date | 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}) - name!: string; - - @Field(() => String, {nullable:false}) - domainName!: string; - - @Field(() => String, {nullable:false}) - address!: string; - - @Field(() => Int, {nullable:true}) - employees?: number; - - @Field(() => String, {nullable:true}) - accountOwnerId?: string; } diff --git a/server/src/core/@generated/company/company-create-many.input.ts b/server/src/core/@generated/company/company-create-many.input.ts index a1a6105d63..b161afb742 100644 --- a/server/src/core/@generated/company/company-create-many.input.ts +++ b/server/src/core/@generated/company/company-create-many.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { Int } from '@nestjs/graphql'; import { HideField } from '@nestjs/graphql'; @@ -7,27 +8,25 @@ import { HideField } from '@nestjs/graphql'; export class CompanyCreateManyInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() 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}) + @Validator.IsString() name!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() domainName!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() address!: string; @Field(() => Int, {nullable:true}) + @Validator.IsNumber() + @Validator.IsOptional() employees?: number; @Field(() => String, {nullable:true}) @@ -35,4 +34,13 @@ export class CompanyCreateManyInput { @HideField() workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/company/company-create-without-account-owner.input.ts b/server/src/core/@generated/company/company-create-without-account-owner.input.ts index d8c0650465..d352a6e6a3 100644 --- a/server/src/core/@generated/company/company-create-without-account-owner.input.ts +++ b/server/src/core/@generated/company/company-create-without-account-owner.input.ts @@ -1,37 +1,45 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { Int } from '@nestjs/graphql'; +import { HideField } from '@nestjs/graphql'; import { PersonCreateNestedManyWithoutCompanyInput } from '../person/person-create-nested-many-without-company.input'; import { WorkspaceCreateNestedOneWithoutCompaniesInput } from '../workspace/workspace-create-nested-one-without-companies.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class CompanyCreateWithoutAccountOwnerInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + name!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + address!: string; + + @Field(() => Int, {nullable:true}) + @Validator.IsNumber() + @Validator.IsOptional() + employees?: number; + + @HideField() + deletedAt?: Date | 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}) - name!: string; - - @Field(() => String, {nullable:false}) - domainName!: string; - - @Field(() => String, {nullable:false}) - address!: string; - - @Field(() => Int, {nullable:true}) - employees?: number; - @Field(() => PersonCreateNestedManyWithoutCompanyInput, {nullable:true}) people?: PersonCreateNestedManyWithoutCompanyInput; diff --git a/server/src/core/@generated/company/company-create-without-people.input.ts b/server/src/core/@generated/company/company-create-without-people.input.ts index 40008fb2a8..c65208cace 100644 --- a/server/src/core/@generated/company/company-create-without-people.input.ts +++ b/server/src/core/@generated/company/company-create-without-people.input.ts @@ -1,37 +1,45 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { Int } from '@nestjs/graphql'; +import { HideField } from '@nestjs/graphql'; import { UserCreateNestedOneWithoutCompaniesInput } from '../user/user-create-nested-one-without-companies.input'; import { WorkspaceCreateNestedOneWithoutCompaniesInput } from '../workspace/workspace-create-nested-one-without-companies.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class CompanyCreateWithoutPeopleInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + name!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + address!: string; + + @Field(() => Int, {nullable:true}) + @Validator.IsNumber() + @Validator.IsOptional() + employees?: number; + + @HideField() + deletedAt?: Date | 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}) - name!: string; - - @Field(() => String, {nullable:false}) - domainName!: string; - - @Field(() => String, {nullable:false}) - address!: string; - - @Field(() => Int, {nullable:true}) - employees?: number; - @Field(() => UserCreateNestedOneWithoutCompaniesInput, {nullable:true}) accountOwner?: UserCreateNestedOneWithoutCompaniesInput; diff --git a/server/src/core/@generated/company/company-create-without-workspace.input.ts b/server/src/core/@generated/company/company-create-without-workspace.input.ts index c7cf57141e..7b0603117f 100644 --- a/server/src/core/@generated/company/company-create-without-workspace.input.ts +++ b/server/src/core/@generated/company/company-create-without-workspace.input.ts @@ -1,39 +1,48 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { Int } from '@nestjs/graphql'; -import { UserCreateNestedOneWithoutCompaniesInput } from '../user/user-create-nested-one-without-companies.input'; +import { HideField } from '@nestjs/graphql'; import { PersonCreateNestedManyWithoutCompanyInput } from '../person/person-create-nested-many-without-company.input'; +import { UserCreateNestedOneWithoutCompaniesInput } from '../user/user-create-nested-one-without-companies.input'; @InputType() export class CompanyCreateWithoutWorkspaceInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + name!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + address!: string; + + @Field(() => Int, {nullable:true}) + @Validator.IsNumber() + @Validator.IsOptional() + employees?: number; + + @HideField() + deletedAt?: Date | 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}) - name!: string; - - @Field(() => String, {nullable:false}) - domainName!: string; - - @Field(() => String, {nullable:false}) - address!: string; - - @Field(() => Int, {nullable:true}) - employees?: number; + @Field(() => PersonCreateNestedManyWithoutCompanyInput, {nullable:true}) + people?: PersonCreateNestedManyWithoutCompanyInput; @Field(() => UserCreateNestedOneWithoutCompaniesInput, {nullable:true}) accountOwner?: UserCreateNestedOneWithoutCompaniesInput; - - @Field(() => PersonCreateNestedManyWithoutCompanyInput, {nullable:true}) - people?: PersonCreateNestedManyWithoutCompanyInput; } diff --git a/server/src/core/@generated/company/company-create.input.ts b/server/src/core/@generated/company/company-create.input.ts index be0c6b51b3..d508b8860a 100644 --- a/server/src/core/@generated/company/company-create.input.ts +++ b/server/src/core/@generated/company/company-create.input.ts @@ -1,44 +1,52 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { Int } from '@nestjs/graphql'; -import { UserCreateNestedOneWithoutCompaniesInput } from '../user/user-create-nested-one-without-companies.input'; -import { PersonCreateNestedManyWithoutCompanyInput } from '../person/person-create-nested-many-without-company.input'; -import { WorkspaceCreateNestedOneWithoutCompaniesInput } from '../workspace/workspace-create-nested-one-without-companies.input'; import { HideField } from '@nestjs/graphql'; +import { PersonCreateNestedManyWithoutCompanyInput } from '../person/person-create-nested-many-without-company.input'; +import { UserCreateNestedOneWithoutCompaniesInput } from '../user/user-create-nested-one-without-companies.input'; +import { WorkspaceCreateNestedOneWithoutCompaniesInput } from '../workspace/workspace-create-nested-one-without-companies.input'; @InputType() export class CompanyCreateInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + name!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + address!: string; + + @Field(() => Int, {nullable:true}) + @Validator.IsNumber() + @Validator.IsOptional() + employees?: number; + + @HideField() + deletedAt?: Date | 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}) - name!: string; - - @Field(() => String, {nullable:false}) - domainName!: string; - - @Field(() => String, {nullable:false}) - address!: string; - - @Field(() => Int, {nullable:true}) - employees?: number; + @Field(() => PersonCreateNestedManyWithoutCompanyInput, {nullable:true}) + people?: PersonCreateNestedManyWithoutCompanyInput; @Field(() => UserCreateNestedOneWithoutCompaniesInput, {nullable:true}) accountOwner?: UserCreateNestedOneWithoutCompaniesInput; - @Field(() => PersonCreateNestedManyWithoutCompanyInput, {nullable:true}) - people?: PersonCreateNestedManyWithoutCompanyInput; - @HideField() workspace!: WorkspaceCreateNestedOneWithoutCompaniesInput; } diff --git a/server/src/core/@generated/company/company-group-by.output.ts b/server/src/core/@generated/company/company-group-by.output.ts index 88d96b9130..8762da2d9f 100644 --- a/server/src/core/@generated/company/company-group-by.output.ts +++ b/server/src/core/@generated/company/company-group-by.output.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { Int } from '@nestjs/graphql'; import { HideField } from '@nestjs/graphql'; import { CompanyCountAggregate } from './company-count-aggregate.output'; @@ -12,27 +13,25 @@ import { CompanyMaxAggregate } from './company-max-aggregate.output'; export class CompanyGroupBy { @Field(() => String, {nullable:false}) + @Validator.IsString() + @Validator.IsOptional() 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}) + @Validator.IsString() name!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() domainName!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() address!: string; @Field(() => Int, {nullable:true}) + @Validator.IsNumber() + @Validator.IsOptional() employees?: number; @Field(() => String, {nullable:true}) @@ -41,6 +40,15 @@ export class CompanyGroupBy { @HideField() workspaceId!: string; + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:false}) + createdAt!: Date | string; + + @Field(() => Date, {nullable:false}) + updatedAt!: Date | string; + @Field(() => CompanyCountAggregate, {nullable:true}) _count?: CompanyCountAggregate; diff --git a/server/src/core/@generated/company/company-max-aggregate.input.ts b/server/src/core/@generated/company/company-max-aggregate.input.ts index b9a58dbd54..87e3d8fd70 100644 --- a/server/src/core/@generated/company/company-max-aggregate.input.ts +++ b/server/src/core/@generated/company/company-max-aggregate.input.ts @@ -8,15 +8,6 @@ export class CompanyMaxAggregateInput { @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}) name?: true; @@ -34,4 +25,13 @@ export class CompanyMaxAggregateInput { @HideField() workspaceId?: true; + + @HideField() + deletedAt?: true; + + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; } diff --git a/server/src/core/@generated/company/company-max-aggregate.output.ts b/server/src/core/@generated/company/company-max-aggregate.output.ts index 9fe8910084..c7e4574c03 100644 --- a/server/src/core/@generated/company/company-max-aggregate.output.ts +++ b/server/src/core/@generated/company/company-max-aggregate.output.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { Int } from '@nestjs/graphql'; import { HideField } from '@nestjs/graphql'; @@ -7,27 +8,25 @@ import { HideField } from '@nestjs/graphql'; export class CompanyMaxAggregate { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() 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}) + @Validator.IsString() name?: string; @Field(() => String, {nullable:true}) + @Validator.IsString() domainName?: string; @Field(() => String, {nullable:true}) + @Validator.IsString() address?: string; @Field(() => Int, {nullable:true}) + @Validator.IsNumber() + @Validator.IsOptional() employees?: number; @Field(() => String, {nullable:true}) @@ -35,4 +34,13 @@ export class CompanyMaxAggregate { @HideField() workspaceId?: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/company/company-max-order-by-aggregate.input.ts b/server/src/core/@generated/company/company-max-order-by-aggregate.input.ts index 7f7876ca89..b0d279c547 100644 --- a/server/src/core/@generated/company/company-max-order-by-aggregate.input.ts +++ b/server/src/core/@generated/company/company-max-order-by-aggregate.input.ts @@ -9,15 +9,6 @@ export class CompanyMaxOrderByAggregateInput { @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}) name?: keyof typeof SortOrder; @@ -35,4 +26,13 @@ export class CompanyMaxOrderByAggregateInput { @HideField() workspaceId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/company/company-min-aggregate.input.ts b/server/src/core/@generated/company/company-min-aggregate.input.ts index e9a1e94c4a..acd3cf7d16 100644 --- a/server/src/core/@generated/company/company-min-aggregate.input.ts +++ b/server/src/core/@generated/company/company-min-aggregate.input.ts @@ -8,15 +8,6 @@ export class CompanyMinAggregateInput { @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}) name?: true; @@ -34,4 +25,13 @@ export class CompanyMinAggregateInput { @HideField() workspaceId?: true; + + @HideField() + deletedAt?: true; + + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; } diff --git a/server/src/core/@generated/company/company-min-aggregate.output.ts b/server/src/core/@generated/company/company-min-aggregate.output.ts index 6e0242e07d..74ce0909fa 100644 --- a/server/src/core/@generated/company/company-min-aggregate.output.ts +++ b/server/src/core/@generated/company/company-min-aggregate.output.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { Int } from '@nestjs/graphql'; import { HideField } from '@nestjs/graphql'; @@ -7,27 +8,25 @@ import { HideField } from '@nestjs/graphql'; export class CompanyMinAggregate { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() 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}) + @Validator.IsString() name?: string; @Field(() => String, {nullable:true}) + @Validator.IsString() domainName?: string; @Field(() => String, {nullable:true}) + @Validator.IsString() address?: string; @Field(() => Int, {nullable:true}) + @Validator.IsNumber() + @Validator.IsOptional() employees?: number; @Field(() => String, {nullable:true}) @@ -35,4 +34,13 @@ export class CompanyMinAggregate { @HideField() workspaceId?: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/company/company-min-order-by-aggregate.input.ts b/server/src/core/@generated/company/company-min-order-by-aggregate.input.ts index 607747cd3f..885fe8f3a1 100644 --- a/server/src/core/@generated/company/company-min-order-by-aggregate.input.ts +++ b/server/src/core/@generated/company/company-min-order-by-aggregate.input.ts @@ -9,15 +9,6 @@ export class CompanyMinOrderByAggregateInput { @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}) name?: keyof typeof SortOrder; @@ -35,4 +26,13 @@ export class CompanyMinOrderByAggregateInput { @HideField() workspaceId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/company/company-order-by-with-aggregation.input.ts b/server/src/core/@generated/company/company-order-by-with-aggregation.input.ts index 1f84156e05..fea90cb814 100644 --- a/server/src/core/@generated/company/company-order-by-with-aggregation.input.ts +++ b/server/src/core/@generated/company/company-order-by-with-aggregation.input.ts @@ -14,15 +14,6 @@ export class CompanyOrderByWithAggregationInput { @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}) name?: keyof typeof SortOrder; @@ -41,6 +32,15 @@ export class CompanyOrderByWithAggregationInput { @HideField() workspaceId?: keyof typeof SortOrder; + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; + @Field(() => CompanyCountOrderByAggregateInput, {nullable:true}) _count?: CompanyCountOrderByAggregateInput; diff --git a/server/src/core/@generated/company/company-order-by-with-relation.input.ts b/server/src/core/@generated/company/company-order-by-with-relation.input.ts index f0cd0444f4..a7c3e8cb8d 100644 --- a/server/src/core/@generated/company/company-order-by-with-relation.input.ts +++ b/server/src/core/@generated/company/company-order-by-with-relation.input.ts @@ -2,8 +2,8 @@ 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 { PersonOrderByRelationAggregateInput } from '../person/person-order-by-relation-aggregate.input'; +import { UserOrderByWithRelationInput } from '../user/user-order-by-with-relation.input'; import { WorkspaceOrderByWithRelationInput } from '../workspace/workspace-order-by-with-relation.input'; @InputType() @@ -12,15 +12,6 @@ export class CompanyOrderByWithRelationInput { @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}) name?: keyof typeof SortOrder; @@ -39,12 +30,21 @@ export class CompanyOrderByWithRelationInput { @HideField() workspaceId?: keyof typeof SortOrder; - @Field(() => UserOrderByWithRelationInput, {nullable:true}) - accountOwner?: UserOrderByWithRelationInput; + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; @Field(() => PersonOrderByRelationAggregateInput, {nullable:true}) people?: PersonOrderByRelationAggregateInput; + @Field(() => UserOrderByWithRelationInput, {nullable:true}) + accountOwner?: UserOrderByWithRelationInput; + @HideField() workspace?: WorkspaceOrderByWithRelationInput; } diff --git a/server/src/core/@generated/company/company-scalar-field.enum.ts b/server/src/core/@generated/company/company-scalar-field.enum.ts index 89421d5cbc..494c0c425e 100644 --- a/server/src/core/@generated/company/company-scalar-field.enum.ts +++ b/server/src/core/@generated/company/company-scalar-field.enum.ts @@ -2,15 +2,15 @@ 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" + workspaceId = "workspaceId", + deletedAt = "deletedAt", + createdAt = "createdAt", + updatedAt = "updatedAt" } diff --git a/server/src/core/@generated/company/company-scalar-where-with-aggregates.input.ts b/server/src/core/@generated/company/company-scalar-where-with-aggregates.input.ts index c0cbd950ac..1f1f9f0017 100644 --- a/server/src/core/@generated/company/company-scalar-where-with-aggregates.input.ts +++ b/server/src/core/@generated/company/company-scalar-where-with-aggregates.input.ts @@ -1,11 +1,11 @@ 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 { IntNullableWithAggregatesFilter } from '../prisma/int-nullable-with-aggregates-filter.input'; import { StringNullableWithAggregatesFilter } from '../prisma/string-nullable-with-aggregates-filter.input'; import { HideField } from '@nestjs/graphql'; +import { DateTimeNullableWithAggregatesFilter } from '../prisma/date-time-nullable-with-aggregates-filter.input'; +import { DateTimeWithAggregatesFilter } from '../prisma/date-time-with-aggregates-filter.input'; @InputType() export class CompanyScalarWhereWithAggregatesInput { @@ -22,15 +22,6 @@ export class CompanyScalarWhereWithAggregatesInput { @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}) name?: StringWithAggregatesFilter; @@ -48,4 +39,13 @@ export class CompanyScalarWhereWithAggregatesInput { @HideField() workspaceId?: StringWithAggregatesFilter; + + @HideField() + deletedAt?: DateTimeNullableWithAggregatesFilter; + + @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) + createdAt?: DateTimeWithAggregatesFilter; + + @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) + updatedAt?: DateTimeWithAggregatesFilter; } diff --git a/server/src/core/@generated/company/company-scalar-where.input.ts b/server/src/core/@generated/company/company-scalar-where.input.ts index b6386634f4..683d80cd05 100644 --- a/server/src/core/@generated/company/company-scalar-where.input.ts +++ b/server/src/core/@generated/company/company-scalar-where.input.ts @@ -1,11 +1,11 @@ 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 { IntNullableFilter } from '../prisma/int-nullable-filter.input'; import { StringNullableFilter } from '../prisma/string-nullable-filter.input'; import { HideField } from '@nestjs/graphql'; +import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; +import { DateTimeFilter } from '../prisma/date-time-filter.input'; @InputType() export class CompanyScalarWhereInput { @@ -22,15 +22,6 @@ export class CompanyScalarWhereInput { @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}) name?: StringFilter; @@ -48,4 +39,13 @@ export class CompanyScalarWhereInput { @HideField() workspaceId?: StringFilter; + + @HideField() + deletedAt?: DateTimeNullableFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + createdAt?: DateTimeFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + updatedAt?: DateTimeFilter; } diff --git a/server/src/core/@generated/company/company-sum-aggregate.output.ts b/server/src/core/@generated/company/company-sum-aggregate.output.ts index 07a3c298b9..58c960c435 100644 --- a/server/src/core/@generated/company/company-sum-aggregate.output.ts +++ b/server/src/core/@generated/company/company-sum-aggregate.output.ts @@ -1,10 +1,13 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; import { Int } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; @ObjectType() export class CompanySumAggregate { @Field(() => Int, {nullable:true}) + @Validator.IsNumber() + @Validator.IsOptional() employees?: number; } diff --git a/server/src/core/@generated/company/company-unchecked-create-without-account-owner.input.ts b/server/src/core/@generated/company/company-unchecked-create-without-account-owner.input.ts index 907fbd584e..40ae7579fb 100644 --- a/server/src/core/@generated/company/company-unchecked-create-without-account-owner.input.ts +++ b/server/src/core/@generated/company/company-unchecked-create-without-account-owner.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { Int } from '@nestjs/graphql'; import { HideField } from '@nestjs/graphql'; import { PersonUncheckedCreateNestedManyWithoutCompanyInput } from '../person/person-unchecked-create-nested-many-without-company.input'; @@ -8,32 +9,39 @@ import { PersonUncheckedCreateNestedManyWithoutCompanyInput } from '../person/pe export class CompanyUncheckedCreateWithoutAccountOwnerInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + name!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + address!: string; + + @Field(() => Int, {nullable:true}) + @Validator.IsNumber() + @Validator.IsOptional() + employees?: number; + + @HideField() + workspaceId!: string; + + @HideField() + deletedAt?: Date | 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}) - name!: string; - - @Field(() => String, {nullable:false}) - domainName!: string; - - @Field(() => String, {nullable:false}) - address!: string; - - @Field(() => Int, {nullable:true}) - employees?: number; - - @HideField() - workspaceId!: string; - @Field(() => PersonUncheckedCreateNestedManyWithoutCompanyInput, {nullable:true}) people?: PersonUncheckedCreateNestedManyWithoutCompanyInput; } diff --git a/server/src/core/@generated/company/company-unchecked-create-without-people.input.ts b/server/src/core/@generated/company/company-unchecked-create-without-people.input.ts index 69e0e855d4..4e5e00e2ef 100644 --- a/server/src/core/@generated/company/company-unchecked-create-without-people.input.ts +++ b/server/src/core/@generated/company/company-unchecked-create-without-people.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { Int } from '@nestjs/graphql'; import { HideField } from '@nestjs/graphql'; @@ -7,27 +8,25 @@ import { HideField } from '@nestjs/graphql'; export class CompanyUncheckedCreateWithoutPeopleInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() 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}) + @Validator.IsString() name!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() domainName!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() address!: string; @Field(() => Int, {nullable:true}) + @Validator.IsNumber() + @Validator.IsOptional() employees?: number; @Field(() => String, {nullable:true}) @@ -35,4 +34,13 @@ export class CompanyUncheckedCreateWithoutPeopleInput { @HideField() workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/company/company-unchecked-create-without-workspace.input.ts b/server/src/core/@generated/company/company-unchecked-create-without-workspace.input.ts index d7a53c693d..1b9e18d9ab 100644 --- a/server/src/core/@generated/company/company-unchecked-create-without-workspace.input.ts +++ b/server/src/core/@generated/company/company-unchecked-create-without-workspace.input.ts @@ -1,38 +1,47 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { Int } from '@nestjs/graphql'; +import { HideField } from '@nestjs/graphql'; import { PersonUncheckedCreateNestedManyWithoutCompanyInput } from '../person/person-unchecked-create-nested-many-without-company.input'; @InputType() export class CompanyUncheckedCreateWithoutWorkspaceInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + name!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + address!: string; + + @Field(() => Int, {nullable:true}) + @Validator.IsNumber() + @Validator.IsOptional() + employees?: number; + + @Field(() => String, {nullable:true}) + accountOwnerId?: string; + + @HideField() + deletedAt?: Date | 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}) - name!: string; - - @Field(() => String, {nullable:false}) - domainName!: string; - - @Field(() => String, {nullable:false}) - address!: string; - - @Field(() => Int, {nullable:true}) - employees?: number; - - @Field(() => String, {nullable:true}) - accountOwnerId?: string; - @Field(() => PersonUncheckedCreateNestedManyWithoutCompanyInput, {nullable:true}) people?: PersonUncheckedCreateNestedManyWithoutCompanyInput; } diff --git a/server/src/core/@generated/company/company-unchecked-create.input.ts b/server/src/core/@generated/company/company-unchecked-create.input.ts index 7149b35b66..470901b957 100644 --- a/server/src/core/@generated/company/company-unchecked-create.input.ts +++ b/server/src/core/@generated/company/company-unchecked-create.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { Int } from '@nestjs/graphql'; import { HideField } from '@nestjs/graphql'; import { PersonUncheckedCreateNestedManyWithoutCompanyInput } from '../person/person-unchecked-create-nested-many-without-company.input'; @@ -8,27 +9,25 @@ import { PersonUncheckedCreateNestedManyWithoutCompanyInput } from '../person/pe export class CompanyUncheckedCreateInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() 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}) + @Validator.IsString() name!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() domainName!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() address!: string; @Field(() => Int, {nullable:true}) + @Validator.IsNumber() + @Validator.IsOptional() employees?: number; @Field(() => String, {nullable:true}) @@ -37,6 +36,15 @@ export class CompanyUncheckedCreateInput { @HideField() workspaceId!: string; + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; + @Field(() => PersonUncheckedCreateNestedManyWithoutCompanyInput, {nullable:true}) people?: PersonUncheckedCreateNestedManyWithoutCompanyInput; } diff --git a/server/src/core/@generated/company/company-unchecked-update-many-without-companies.input.ts b/server/src/core/@generated/company/company-unchecked-update-many-without-companies.input.ts index aca3e00215..2be597cc2b 100644 --- a/server/src/core/@generated/company/company-unchecked-update-many-without-companies.input.ts +++ b/server/src/core/@generated/company/company-unchecked-update-many-without-companies.input.ts @@ -1,10 +1,10 @@ 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 { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class CompanyUncheckedUpdateManyWithoutCompaniesInput { @@ -12,15 +12,6 @@ export class CompanyUncheckedUpdateManyWithoutCompaniesInput { @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}) name?: StringFieldUpdateOperationsInput; @@ -35,4 +26,13 @@ export class CompanyUncheckedUpdateManyWithoutCompaniesInput { @HideField() workspaceId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/company/company-unchecked-update-many.input.ts b/server/src/core/@generated/company/company-unchecked-update-many.input.ts index dbcdad23a1..23ab8f677d 100644 --- a/server/src/core/@generated/company/company-unchecked-update-many.input.ts +++ b/server/src/core/@generated/company/company-unchecked-update-many.input.ts @@ -1,11 +1,11 @@ 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 { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class CompanyUncheckedUpdateManyInput { @@ -13,15 +13,6 @@ export class CompanyUncheckedUpdateManyInput { @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}) name?: StringFieldUpdateOperationsInput; @@ -39,4 +30,13 @@ export class CompanyUncheckedUpdateManyInput { @HideField() workspaceId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/company/company-unchecked-update-without-account-owner.input.ts b/server/src/core/@generated/company/company-unchecked-update-without-account-owner.input.ts index 5655bc9e71..f51071546d 100644 --- a/server/src/core/@generated/company/company-unchecked-update-without-account-owner.input.ts +++ b/server/src/core/@generated/company/company-unchecked-update-without-account-owner.input.ts @@ -1,10 +1,10 @@ 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 { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { PersonUncheckedUpdateManyWithoutCompanyNestedInput } from '../person/person-unchecked-update-many-without-company-nested.input'; @InputType() @@ -13,15 +13,6 @@ export class CompanyUncheckedUpdateWithoutAccountOwnerInput { @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}) name?: StringFieldUpdateOperationsInput; @@ -37,6 +28,15 @@ export class CompanyUncheckedUpdateWithoutAccountOwnerInput { @HideField() workspaceId?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => PersonUncheckedUpdateManyWithoutCompanyNestedInput, {nullable:true}) people?: PersonUncheckedUpdateManyWithoutCompanyNestedInput; } diff --git a/server/src/core/@generated/company/company-unchecked-update-without-people.input.ts b/server/src/core/@generated/company/company-unchecked-update-without-people.input.ts index a4fb6ac870..2604c53872 100644 --- a/server/src/core/@generated/company/company-unchecked-update-without-people.input.ts +++ b/server/src/core/@generated/company/company-unchecked-update-without-people.input.ts @@ -1,11 +1,11 @@ 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 { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class CompanyUncheckedUpdateWithoutPeopleInput { @@ -13,15 +13,6 @@ export class CompanyUncheckedUpdateWithoutPeopleInput { @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}) name?: StringFieldUpdateOperationsInput; @@ -39,4 +30,13 @@ export class CompanyUncheckedUpdateWithoutPeopleInput { @HideField() workspaceId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/company/company-unchecked-update-without-workspace.input.ts b/server/src/core/@generated/company/company-unchecked-update-without-workspace.input.ts index 2ce6fdcfb2..f9fa9a7f54 100644 --- a/server/src/core/@generated/company/company-unchecked-update-without-workspace.input.ts +++ b/server/src/core/@generated/company/company-unchecked-update-without-workspace.input.ts @@ -1,10 +1,11 @@ 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 { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { PersonUncheckedUpdateManyWithoutCompanyNestedInput } from '../person/person-unchecked-update-many-without-company-nested.input'; @InputType() @@ -13,15 +14,6 @@ export class CompanyUncheckedUpdateWithoutWorkspaceInput { @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}) name?: StringFieldUpdateOperationsInput; @@ -37,6 +29,15 @@ export class CompanyUncheckedUpdateWithoutWorkspaceInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) accountOwnerId?: NullableStringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => PersonUncheckedUpdateManyWithoutCompanyNestedInput, {nullable:true}) people?: PersonUncheckedUpdateManyWithoutCompanyNestedInput; } diff --git a/server/src/core/@generated/company/company-unchecked-update.input.ts b/server/src/core/@generated/company/company-unchecked-update.input.ts index da95621db9..87f784af2f 100644 --- a/server/src/core/@generated/company/company-unchecked-update.input.ts +++ b/server/src/core/@generated/company/company-unchecked-update.input.ts @@ -1,11 +1,11 @@ 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 { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { PersonUncheckedUpdateManyWithoutCompanyNestedInput } from '../person/person-unchecked-update-many-without-company-nested.input'; @InputType() @@ -14,15 +14,6 @@ export class CompanyUncheckedUpdateInput { @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}) name?: StringFieldUpdateOperationsInput; @@ -41,6 +32,15 @@ export class CompanyUncheckedUpdateInput { @HideField() workspaceId?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => PersonUncheckedUpdateManyWithoutCompanyNestedInput, {nullable:true}) people?: PersonUncheckedUpdateManyWithoutCompanyNestedInput; } diff --git a/server/src/core/@generated/company/company-update-many-mutation.input.ts b/server/src/core/@generated/company/company-update-many-mutation.input.ts index 3711a3e0d3..1080028441 100644 --- a/server/src/core/@generated/company/company-update-many-mutation.input.ts +++ b/server/src/core/@generated/company/company-update-many-mutation.input.ts @@ -1,9 +1,10 @@ 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 { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class CompanyUpdateManyMutationInput { @@ -11,15 +12,6 @@ export class CompanyUpdateManyMutationInput { @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}) name?: StringFieldUpdateOperationsInput; @@ -31,4 +23,13 @@ export class CompanyUpdateManyMutationInput { @Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true}) employees?: NullableIntFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/company/company-update-without-account-owner.input.ts b/server/src/core/@generated/company/company-update-without-account-owner.input.ts index 2acca14bca..50c39c0109 100644 --- a/server/src/core/@generated/company/company-update-without-account-owner.input.ts +++ b/server/src/core/@generated/company/company-update-without-account-owner.input.ts @@ -1,12 +1,12 @@ 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 { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { PersonUpdateManyWithoutCompanyNestedInput } from '../person/person-update-many-without-company-nested.input'; import { WorkspaceUpdateOneRequiredWithoutCompaniesNestedInput } from '../workspace/workspace-update-one-required-without-companies-nested.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class CompanyUpdateWithoutAccountOwnerInput { @@ -14,15 +14,6 @@ export class CompanyUpdateWithoutAccountOwnerInput { @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}) name?: StringFieldUpdateOperationsInput; @@ -35,6 +26,15 @@ export class CompanyUpdateWithoutAccountOwnerInput { @Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true}) employees?: NullableIntFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => PersonUpdateManyWithoutCompanyNestedInput, {nullable:true}) people?: PersonUpdateManyWithoutCompanyNestedInput; diff --git a/server/src/core/@generated/company/company-update-without-people.input.ts b/server/src/core/@generated/company/company-update-without-people.input.ts index 696c414e79..7eac96e732 100644 --- a/server/src/core/@generated/company/company-update-without-people.input.ts +++ b/server/src/core/@generated/company/company-update-without-people.input.ts @@ -1,12 +1,12 @@ 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 { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { UserUpdateOneWithoutCompaniesNestedInput } from '../user/user-update-one-without-companies-nested.input'; import { WorkspaceUpdateOneRequiredWithoutCompaniesNestedInput } from '../workspace/workspace-update-one-required-without-companies-nested.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class CompanyUpdateWithoutPeopleInput { @@ -14,15 +14,6 @@ export class CompanyUpdateWithoutPeopleInput { @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}) name?: StringFieldUpdateOperationsInput; @@ -35,6 +26,15 @@ export class CompanyUpdateWithoutPeopleInput { @Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true}) employees?: NullableIntFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => UserUpdateOneWithoutCompaniesNestedInput, {nullable:true}) accountOwner?: UserUpdateOneWithoutCompaniesNestedInput; diff --git a/server/src/core/@generated/company/company-update-without-workspace.input.ts b/server/src/core/@generated/company/company-update-without-workspace.input.ts index 4463b2f243..34087ae04f 100644 --- a/server/src/core/@generated/company/company-update-without-workspace.input.ts +++ b/server/src/core/@generated/company/company-update-without-workspace.input.ts @@ -1,11 +1,12 @@ 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 { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input'; -import { UserUpdateOneWithoutCompaniesNestedInput } from '../user/user-update-one-without-companies-nested.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { PersonUpdateManyWithoutCompanyNestedInput } from '../person/person-update-many-without-company-nested.input'; +import { UserUpdateOneWithoutCompaniesNestedInput } from '../user/user-update-one-without-companies-nested.input'; @InputType() export class CompanyUpdateWithoutWorkspaceInput { @@ -13,15 +14,6 @@ export class CompanyUpdateWithoutWorkspaceInput { @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}) name?: StringFieldUpdateOperationsInput; @@ -34,9 +26,18 @@ export class CompanyUpdateWithoutWorkspaceInput { @Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true}) employees?: NullableIntFieldUpdateOperationsInput; - @Field(() => UserUpdateOneWithoutCompaniesNestedInput, {nullable:true}) - accountOwner?: UserUpdateOneWithoutCompaniesNestedInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; @Field(() => PersonUpdateManyWithoutCompanyNestedInput, {nullable:true}) people?: PersonUpdateManyWithoutCompanyNestedInput; + + @Field(() => UserUpdateOneWithoutCompaniesNestedInput, {nullable:true}) + accountOwner?: UserUpdateOneWithoutCompaniesNestedInput; } diff --git a/server/src/core/@generated/company/company-update.input.ts b/server/src/core/@generated/company/company-update.input.ts index 709138b24a..3df2e6e52c 100644 --- a/server/src/core/@generated/company/company-update.input.ts +++ b/server/src/core/@generated/company/company-update.input.ts @@ -1,13 +1,13 @@ 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 { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input'; -import { UserUpdateOneWithoutCompaniesNestedInput } from '../user/user-update-one-without-companies-nested.input'; -import { PersonUpdateManyWithoutCompanyNestedInput } from '../person/person-update-many-without-company-nested.input'; -import { WorkspaceUpdateOneRequiredWithoutCompaniesNestedInput } from '../workspace/workspace-update-one-required-without-companies-nested.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; +import { PersonUpdateManyWithoutCompanyNestedInput } from '../person/person-update-many-without-company-nested.input'; +import { UserUpdateOneWithoutCompaniesNestedInput } from '../user/user-update-one-without-companies-nested.input'; +import { WorkspaceUpdateOneRequiredWithoutCompaniesNestedInput } from '../workspace/workspace-update-one-required-without-companies-nested.input'; @InputType() export class CompanyUpdateInput { @@ -15,15 +15,6 @@ export class CompanyUpdateInput { @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}) name?: StringFieldUpdateOperationsInput; @@ -36,12 +27,21 @@ export class CompanyUpdateInput { @Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true}) employees?: NullableIntFieldUpdateOperationsInput; - @Field(() => UserUpdateOneWithoutCompaniesNestedInput, {nullable:true}) - accountOwner?: UserUpdateOneWithoutCompaniesNestedInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; @Field(() => PersonUpdateManyWithoutCompanyNestedInput, {nullable:true}) people?: PersonUpdateManyWithoutCompanyNestedInput; + @Field(() => UserUpdateOneWithoutCompaniesNestedInput, {nullable:true}) + accountOwner?: UserUpdateOneWithoutCompaniesNestedInput; + @HideField() workspace?: WorkspaceUpdateOneRequiredWithoutCompaniesNestedInput; } diff --git a/server/src/core/@generated/company/company-where-unique.input.ts b/server/src/core/@generated/company/company-where-unique.input.ts index 32d48c782b..a18bd04bd0 100644 --- a/server/src/core/@generated/company/company-where-unique.input.ts +++ b/server/src/core/@generated/company/company-where-unique.input.ts @@ -1,9 +1,12 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; @InputType() export class CompanyWhereUniqueInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; } diff --git a/server/src/core/@generated/company/company-where.input.ts b/server/src/core/@generated/company/company-where.input.ts index 36362ef47a..ef56cd2236 100644 --- a/server/src/core/@generated/company/company-where.input.ts +++ b/server/src/core/@generated/company/company-where.input.ts @@ -1,13 +1,13 @@ 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 { IntNullableFilter } from '../prisma/int-nullable-filter.input'; import { StringNullableFilter } from '../prisma/string-nullable-filter.input'; import { HideField } from '@nestjs/graphql'; -import { UserRelationFilter } from '../user/user-relation-filter.input'; +import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; +import { DateTimeFilter } from '../prisma/date-time-filter.input'; import { PersonListRelationFilter } from '../person/person-list-relation-filter.input'; +import { UserRelationFilter } from '../user/user-relation-filter.input'; import { WorkspaceRelationFilter } from '../workspace/workspace-relation-filter.input'; @InputType() @@ -25,15 +25,6 @@ export class CompanyWhereInput { @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}) name?: StringFilter; @@ -52,12 +43,21 @@ export class CompanyWhereInput { @HideField() workspaceId?: StringFilter; - @Field(() => UserRelationFilter, {nullable:true}) - accountOwner?: UserRelationFilter; + @HideField() + deletedAt?: DateTimeNullableFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + createdAt?: DateTimeFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + updatedAt?: DateTimeFilter; @Field(() => PersonListRelationFilter, {nullable:true}) people?: PersonListRelationFilter; + @Field(() => UserRelationFilter, {nullable:true}) + accountOwner?: UserRelationFilter; + @HideField() workspace?: WorkspaceRelationFilter; } diff --git a/server/src/core/@generated/company/company.model.ts b/server/src/core/@generated/company/company.model.ts index 175a2db08f..7a4b1910f2 100644 --- a/server/src/core/@generated/company/company.model.ts +++ b/server/src/core/@generated/company/company.model.ts @@ -3,8 +3,8 @@ import { ObjectType } from '@nestjs/graphql'; import { ID } from '@nestjs/graphql'; import { Int } from '@nestjs/graphql'; import { HideField } from '@nestjs/graphql'; -import { User } from '../user/user.model'; import { Person } from '../person/person.model'; +import { User } from '../user/user.model'; import { Workspace } from '../workspace/workspace.model'; import { CompanyCount } from './company-count.output'; @@ -14,15 +14,6 @@ export class Company { @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}) name!: string; @@ -41,12 +32,21 @@ export class Company { @HideField() workspaceId!: string; - @Field(() => User, {nullable:true}) - accountOwner?: User | null; + @HideField() + deletedAt!: Date | null; + + @Field(() => Date, {nullable:false}) + createdAt!: Date; + + @Field(() => Date, {nullable:false}) + updatedAt!: Date; @Field(() => [Person], {nullable:true}) people?: Array; + @Field(() => User, {nullable:true}) + accountOwner?: User | null; + @HideField() workspace?: Workspace; diff --git a/server/src/core/@generated/company/create-many-company.args.ts b/server/src/core/@generated/company/create-many-company.args.ts index 838a95ab26..08e78f224a 100644 --- a/server/src/core/@generated/company/create-many-company.args.ts +++ b/server/src/core/@generated/company/create-many-company.args.ts @@ -2,12 +2,15 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { CompanyCreateManyInput } from './company-create-many.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; @ArgsType() export class CreateManyCompanyArgs { @Field(() => [CompanyCreateManyInput], {nullable:false}) @Type(() => CompanyCreateManyInput) + @ValidateNested({each: true}) + @Type(() => CompanyCreateManyInput) data!: Array; @Field(() => Boolean, {nullable:true}) diff --git a/server/src/core/@generated/company/create-one-company.args.ts b/server/src/core/@generated/company/create-one-company.args.ts index ed7263b2ab..c8dd6a0331 100644 --- a/server/src/core/@generated/company/create-one-company.args.ts +++ b/server/src/core/@generated/company/create-one-company.args.ts @@ -2,11 +2,14 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { CompanyCreateInput } from './company-create.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; @ArgsType() export class CreateOneCompanyArgs { @Field(() => CompanyCreateInput, {nullable:false}) @Type(() => CompanyCreateInput) + @ValidateNested({each: true}) + @Type(() => CompanyCreateInput) data!: CompanyCreateInput; } diff --git a/server/src/core/@generated/company/update-many-company.args.ts b/server/src/core/@generated/company/update-many-company.args.ts index 312ff77215..6672abe310 100644 --- a/server/src/core/@generated/company/update-many-company.args.ts +++ b/server/src/core/@generated/company/update-many-company.args.ts @@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { CompanyUpdateManyMutationInput } from './company-update-many-mutation.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; import { CompanyWhereInput } from './company-where.input'; @ArgsType() @@ -9,6 +10,8 @@ export class UpdateManyCompanyArgs { @Field(() => CompanyUpdateManyMutationInput, {nullable:false}) @Type(() => CompanyUpdateManyMutationInput) + @ValidateNested({each: true}) + @Type(() => CompanyUpdateManyMutationInput) data!: CompanyUpdateManyMutationInput; @Field(() => CompanyWhereInput, {nullable:true}) diff --git a/server/src/core/@generated/company/update-one-company.args.ts b/server/src/core/@generated/company/update-one-company.args.ts index 128ccf9c31..ca5a670493 100644 --- a/server/src/core/@generated/company/update-one-company.args.ts +++ b/server/src/core/@generated/company/update-one-company.args.ts @@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { CompanyUpdateInput } from './company-update.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; import { CompanyWhereUniqueInput } from './company-where-unique.input'; @ArgsType() @@ -9,6 +10,8 @@ export class UpdateOneCompanyArgs { @Field(() => CompanyUpdateInput, {nullable:false}) @Type(() => CompanyUpdateInput) + @ValidateNested({each: true}) + @Type(() => CompanyUpdateInput) data!: CompanyUpdateInput; @Field(() => CompanyWhereUniqueInput, {nullable:false}) diff --git a/server/src/core/@generated/person/create-many-person.args.ts b/server/src/core/@generated/person/create-many-person.args.ts index 0537d87a60..d78b614a49 100644 --- a/server/src/core/@generated/person/create-many-person.args.ts +++ b/server/src/core/@generated/person/create-many-person.args.ts @@ -2,12 +2,15 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { PersonCreateManyInput } from './person-create-many.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; @ArgsType() export class CreateManyPersonArgs { @Field(() => [PersonCreateManyInput], {nullable:false}) @Type(() => PersonCreateManyInput) + @ValidateNested({each: true}) + @Type(() => PersonCreateManyInput) data!: Array; @Field(() => Boolean, {nullable:true}) diff --git a/server/src/core/@generated/person/create-one-person.args.ts b/server/src/core/@generated/person/create-one-person.args.ts index 1a606d598b..8651efd2c3 100644 --- a/server/src/core/@generated/person/create-one-person.args.ts +++ b/server/src/core/@generated/person/create-one-person.args.ts @@ -2,11 +2,14 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { PersonCreateInput } from './person-create.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; @ArgsType() export class CreateOnePersonArgs { @Field(() => PersonCreateInput, {nullable:false}) @Type(() => PersonCreateInput) + @ValidateNested({each: true}) + @Type(() => PersonCreateInput) data!: PersonCreateInput; } diff --git a/server/src/core/@generated/person/person-count-aggregate.input.ts b/server/src/core/@generated/person/person-count-aggregate.input.ts index 55e647c1dd..78b404184c 100644 --- a/server/src/core/@generated/person/person-count-aggregate.input.ts +++ b/server/src/core/@generated/person/person-count-aggregate.input.ts @@ -8,15 +8,6 @@ export class PersonCountAggregateInput { @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}) firstname?: true; @@ -38,6 +29,15 @@ export class PersonCountAggregateInput { @HideField() workspaceId?: true; + @HideField() + deletedAt?: true; + + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; + @Field(() => Boolean, {nullable:true}) _all?: true; } diff --git a/server/src/core/@generated/person/person-count-aggregate.output.ts b/server/src/core/@generated/person/person-count-aggregate.output.ts index 037fdf57bb..c73aad04e6 100644 --- a/server/src/core/@generated/person/person-count-aggregate.output.ts +++ b/server/src/core/@generated/person/person-count-aggregate.output.ts @@ -9,15 +9,6 @@ export class PersonCountAggregate { @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}) firstname!: number; @@ -39,6 +30,15 @@ export class PersonCountAggregate { @HideField() workspaceId!: number; + @HideField() + deletedAt!: number; + + @Field(() => Int, {nullable:false}) + createdAt!: number; + + @Field(() => Int, {nullable:false}) + updatedAt!: number; + @Field(() => Int, {nullable:false}) _all!: number; } diff --git a/server/src/core/@generated/person/person-count-order-by-aggregate.input.ts b/server/src/core/@generated/person/person-count-order-by-aggregate.input.ts index ea465b1deb..9e30096b60 100644 --- a/server/src/core/@generated/person/person-count-order-by-aggregate.input.ts +++ b/server/src/core/@generated/person/person-count-order-by-aggregate.input.ts @@ -9,15 +9,6 @@ export class PersonCountOrderByAggregateInput { @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}) firstname?: keyof typeof SortOrder; @@ -38,4 +29,13 @@ export class PersonCountOrderByAggregateInput { @HideField() workspaceId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/person/person-create-many-company.input.ts b/server/src/core/@generated/person/person-create-many-company.input.ts index b747be781b..eb7f6a131d 100644 --- a/server/src/core/@generated/person/person-create-many-company.input.ts +++ b/server/src/core/@generated/person/person-create-many-company.input.ts @@ -1,37 +1,45 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @InputType() export class PersonCreateManyCompanyInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + firstname!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + lastname!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsEmail() + email!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsPhoneNumber() + phone!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + city!: string; + + @HideField() + workspaceId!: string; + + @HideField() + deletedAt?: Date | 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}) - firstname!: string; - - @Field(() => String, {nullable:false}) - lastname!: string; - - @Field(() => String, {nullable:false}) - email!: string; - - @Field(() => String, {nullable:false}) - phone!: string; - - @Field(() => String, {nullable:false}) - city!: string; - - @HideField() - workspaceId!: string; } diff --git a/server/src/core/@generated/person/person-create-many-workspace.input.ts b/server/src/core/@generated/person/person-create-many-workspace.input.ts index 39264d9956..0f36ec7be6 100644 --- a/server/src/core/@generated/person/person-create-many-workspace.input.ts +++ b/server/src/core/@generated/person/person-create-many-workspace.input.ts @@ -1,36 +1,45 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; @InputType() export class PersonCreateManyWorkspaceInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + firstname!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + lastname!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsEmail() + email!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsPhoneNumber() + phone!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + city!: string; + + @Field(() => String, {nullable:true}) + companyId?: string; + + @HideField() + deletedAt?: Date | 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}) - firstname!: string; - - @Field(() => String, {nullable:false}) - lastname!: string; - - @Field(() => String, {nullable:false}) - email!: string; - - @Field(() => String, {nullable:false}) - phone!: string; - - @Field(() => String, {nullable:false}) - city!: string; - - @Field(() => String, {nullable:true}) - companyId?: string; } diff --git a/server/src/core/@generated/person/person-create-many.input.ts b/server/src/core/@generated/person/person-create-many.input.ts index 60df0ec5f6..04dd6e66df 100644 --- a/server/src/core/@generated/person/person-create-many.input.ts +++ b/server/src/core/@generated/person/person-create-many.input.ts @@ -1,35 +1,34 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @InputType() export class PersonCreateManyInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() 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}) + @Validator.IsString() firstname!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() lastname!: string; @Field(() => String, {nullable:false}) + @Validator.IsEmail() email!: string; @Field(() => String, {nullable:false}) + @Validator.IsPhoneNumber() phone!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() city!: string; @Field(() => String, {nullable:true}) @@ -37,4 +36,13 @@ export class PersonCreateManyInput { @HideField() workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/person/person-create-without-company.input.ts b/server/src/core/@generated/person/person-create-without-company.input.ts index 9e6c71fb5c..9fea1ef923 100644 --- a/server/src/core/@generated/person/person-create-without-company.input.ts +++ b/server/src/core/@generated/person/person-create-without-company.input.ts @@ -1,38 +1,46 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; -import { WorkspaceCreateNestedOneWithoutPeopleInput } from '../workspace/workspace-create-nested-one-without-people.input'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; +import { WorkspaceCreateNestedOneWithoutPeopleInput } from '../workspace/workspace-create-nested-one-without-people.input'; @InputType() export class PersonCreateWithoutCompanyInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + firstname!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + lastname!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsEmail() + email!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsPhoneNumber() + phone!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + city!: string; + + @HideField() + deletedAt?: Date | 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}) - firstname!: string; - - @Field(() => String, {nullable:false}) - lastname!: string; - - @Field(() => String, {nullable:false}) - email!: string; - - @Field(() => String, {nullable:false}) - phone!: string; - - @Field(() => String, {nullable:false}) - city!: string; - @HideField() workspace!: WorkspaceCreateNestedOneWithoutPeopleInput; } diff --git a/server/src/core/@generated/person/person-create-without-workspace.input.ts b/server/src/core/@generated/person/person-create-without-workspace.input.ts index 115bc6c2bb..5dc836d5e1 100644 --- a/server/src/core/@generated/person/person-create-without-workspace.input.ts +++ b/server/src/core/@generated/person/person-create-without-workspace.input.ts @@ -1,37 +1,46 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; import { CompanyCreateNestedOneWithoutPeopleInput } from '../company/company-create-nested-one-without-people.input'; @InputType() export class PersonCreateWithoutWorkspaceInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + firstname!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + lastname!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsEmail() + email!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsPhoneNumber() + phone!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + city!: string; + + @HideField() + deletedAt?: Date | 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}) - firstname!: string; - - @Field(() => String, {nullable:false}) - lastname!: string; - - @Field(() => String, {nullable:false}) - email!: string; - - @Field(() => String, {nullable:false}) - phone!: string; - - @Field(() => String, {nullable:false}) - city!: string; - @Field(() => CompanyCreateNestedOneWithoutPeopleInput, {nullable:true}) company?: CompanyCreateNestedOneWithoutPeopleInput; } diff --git a/server/src/core/@generated/person/person-create.input.ts b/server/src/core/@generated/person/person-create.input.ts index 434070df6e..96944ff997 100644 --- a/server/src/core/@generated/person/person-create.input.ts +++ b/server/src/core/@generated/person/person-create.input.ts @@ -1,39 +1,47 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; import { CompanyCreateNestedOneWithoutPeopleInput } from '../company/company-create-nested-one-without-people.input'; import { WorkspaceCreateNestedOneWithoutPeopleInput } from '../workspace/workspace-create-nested-one-without-people.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class PersonCreateInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + firstname!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + lastname!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsEmail() + email!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsPhoneNumber() + phone!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + city!: string; + + @HideField() + deletedAt?: Date | 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}) - firstname!: string; - - @Field(() => String, {nullable:false}) - lastname!: string; - - @Field(() => String, {nullable:false}) - email!: string; - - @Field(() => String, {nullable:false}) - phone!: string; - - @Field(() => String, {nullable:false}) - city!: string; - @Field(() => CompanyCreateNestedOneWithoutPeopleInput, {nullable:true}) company?: CompanyCreateNestedOneWithoutPeopleInput; diff --git a/server/src/core/@generated/person/person-group-by.output.ts b/server/src/core/@generated/person/person-group-by.output.ts index 79f4a5cbbf..4af6b2665e 100644 --- a/server/src/core/@generated/person/person-group-by.output.ts +++ b/server/src/core/@generated/person/person-group-by.output.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; import { PersonCountAggregate } from './person-count-aggregate.output'; import { PersonMinAggregate } from './person-min-aggregate.output'; @@ -9,30 +10,28 @@ import { PersonMaxAggregate } from './person-max-aggregate.output'; export class PersonGroupBy { @Field(() => String, {nullable:false}) + @Validator.IsString() + @Validator.IsOptional() 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}) + @Validator.IsString() firstname!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() lastname!: string; @Field(() => String, {nullable:false}) + @Validator.IsEmail() email!: string; @Field(() => String, {nullable:false}) + @Validator.IsPhoneNumber() phone!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() city!: string; @Field(() => String, {nullable:true}) @@ -41,6 +40,15 @@ export class PersonGroupBy { @HideField() workspaceId!: string; + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:false}) + createdAt!: Date | string; + + @Field(() => Date, {nullable:false}) + updatedAt!: Date | string; + @Field(() => PersonCountAggregate, {nullable:true}) _count?: PersonCountAggregate; diff --git a/server/src/core/@generated/person/person-max-aggregate.input.ts b/server/src/core/@generated/person/person-max-aggregate.input.ts index c720d04560..b0441b2144 100644 --- a/server/src/core/@generated/person/person-max-aggregate.input.ts +++ b/server/src/core/@generated/person/person-max-aggregate.input.ts @@ -8,15 +8,6 @@ export class PersonMaxAggregateInput { @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}) firstname?: true; @@ -37,4 +28,13 @@ export class PersonMaxAggregateInput { @HideField() workspaceId?: true; + + @HideField() + deletedAt?: true; + + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; } diff --git a/server/src/core/@generated/person/person-max-aggregate.output.ts b/server/src/core/@generated/person/person-max-aggregate.output.ts index be40ee0a20..9e48a9e276 100644 --- a/server/src/core/@generated/person/person-max-aggregate.output.ts +++ b/server/src/core/@generated/person/person-max-aggregate.output.ts @@ -1,35 +1,34 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @ObjectType() export class PersonMaxAggregate { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() 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}) + @Validator.IsString() firstname?: string; @Field(() => String, {nullable:true}) + @Validator.IsString() lastname?: string; @Field(() => String, {nullable:true}) + @Validator.IsEmail() email?: string; @Field(() => String, {nullable:true}) + @Validator.IsPhoneNumber() phone?: string; @Field(() => String, {nullable:true}) + @Validator.IsString() city?: string; @Field(() => String, {nullable:true}) @@ -37,4 +36,13 @@ export class PersonMaxAggregate { @HideField() workspaceId?: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/person/person-max-order-by-aggregate.input.ts b/server/src/core/@generated/person/person-max-order-by-aggregate.input.ts index d916a82618..44d39dcc1e 100644 --- a/server/src/core/@generated/person/person-max-order-by-aggregate.input.ts +++ b/server/src/core/@generated/person/person-max-order-by-aggregate.input.ts @@ -9,15 +9,6 @@ export class PersonMaxOrderByAggregateInput { @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}) firstname?: keyof typeof SortOrder; @@ -38,4 +29,13 @@ export class PersonMaxOrderByAggregateInput { @HideField() workspaceId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/person/person-min-aggregate.input.ts b/server/src/core/@generated/person/person-min-aggregate.input.ts index c0786aa292..e388d54509 100644 --- a/server/src/core/@generated/person/person-min-aggregate.input.ts +++ b/server/src/core/@generated/person/person-min-aggregate.input.ts @@ -8,15 +8,6 @@ export class PersonMinAggregateInput { @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}) firstname?: true; @@ -37,4 +28,13 @@ export class PersonMinAggregateInput { @HideField() workspaceId?: true; + + @HideField() + deletedAt?: true; + + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; } diff --git a/server/src/core/@generated/person/person-min-aggregate.output.ts b/server/src/core/@generated/person/person-min-aggregate.output.ts index 57b9396f4c..302fbac9d0 100644 --- a/server/src/core/@generated/person/person-min-aggregate.output.ts +++ b/server/src/core/@generated/person/person-min-aggregate.output.ts @@ -1,35 +1,34 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @ObjectType() export class PersonMinAggregate { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() 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}) + @Validator.IsString() firstname?: string; @Field(() => String, {nullable:true}) + @Validator.IsString() lastname?: string; @Field(() => String, {nullable:true}) + @Validator.IsEmail() email?: string; @Field(() => String, {nullable:true}) + @Validator.IsPhoneNumber() phone?: string; @Field(() => String, {nullable:true}) + @Validator.IsString() city?: string; @Field(() => String, {nullable:true}) @@ -37,4 +36,13 @@ export class PersonMinAggregate { @HideField() workspaceId?: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/person/person-min-order-by-aggregate.input.ts b/server/src/core/@generated/person/person-min-order-by-aggregate.input.ts index 37cc9f3ec2..0174f90ee1 100644 --- a/server/src/core/@generated/person/person-min-order-by-aggregate.input.ts +++ b/server/src/core/@generated/person/person-min-order-by-aggregate.input.ts @@ -9,15 +9,6 @@ export class PersonMinOrderByAggregateInput { @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}) firstname?: keyof typeof SortOrder; @@ -38,4 +29,13 @@ export class PersonMinOrderByAggregateInput { @HideField() workspaceId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/person/person-order-by-with-aggregation.input.ts b/server/src/core/@generated/person/person-order-by-with-aggregation.input.ts index de44b413ad..3d26bef2fa 100644 --- a/server/src/core/@generated/person/person-order-by-with-aggregation.input.ts +++ b/server/src/core/@generated/person/person-order-by-with-aggregation.input.ts @@ -12,15 +12,6 @@ export class PersonOrderByWithAggregationInput { @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}) firstname?: keyof typeof SortOrder; @@ -42,6 +33,15 @@ export class PersonOrderByWithAggregationInput { @HideField() workspaceId?: keyof typeof SortOrder; + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; + @Field(() => PersonCountOrderByAggregateInput, {nullable:true}) _count?: PersonCountOrderByAggregateInput; diff --git a/server/src/core/@generated/person/person-order-by-with-relation.input.ts b/server/src/core/@generated/person/person-order-by-with-relation.input.ts index 75abb26393..f0167a8fce 100644 --- a/server/src/core/@generated/person/person-order-by-with-relation.input.ts +++ b/server/src/core/@generated/person/person-order-by-with-relation.input.ts @@ -11,15 +11,6 @@ export class PersonOrderByWithRelationInput { @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}) firstname?: keyof typeof SortOrder; @@ -41,6 +32,15 @@ export class PersonOrderByWithRelationInput { @HideField() workspaceId?: keyof typeof SortOrder; + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; + @Field(() => CompanyOrderByWithRelationInput, {nullable:true}) company?: CompanyOrderByWithRelationInput; diff --git a/server/src/core/@generated/person/person-scalar-field.enum.ts b/server/src/core/@generated/person/person-scalar-field.enum.ts index 6621600f68..1bb4dbe0a3 100644 --- a/server/src/core/@generated/person/person-scalar-field.enum.ts +++ b/server/src/core/@generated/person/person-scalar-field.enum.ts @@ -2,16 +2,16 @@ import { registerEnumType } from '@nestjs/graphql'; export enum PersonScalarFieldEnum { id = "id", - createdAt = "createdAt", - updatedAt = "updatedAt", - deletedAt = "deletedAt", firstname = "firstname", lastname = "lastname", email = "email", phone = "phone", city = "city", companyId = "companyId", - workspaceId = "workspaceId" + workspaceId = "workspaceId", + deletedAt = "deletedAt", + createdAt = "createdAt", + updatedAt = "updatedAt" } diff --git a/server/src/core/@generated/person/person-scalar-where-with-aggregates.input.ts b/server/src/core/@generated/person/person-scalar-where-with-aggregates.input.ts index 2e546e460d..181d32647f 100644 --- a/server/src/core/@generated/person/person-scalar-where-with-aggregates.input.ts +++ b/server/src/core/@generated/person/person-scalar-where-with-aggregates.input.ts @@ -1,10 +1,10 @@ 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 { StringNullableWithAggregatesFilter } from '../prisma/string-nullable-with-aggregates-filter.input'; import { HideField } from '@nestjs/graphql'; +import { DateTimeNullableWithAggregatesFilter } from '../prisma/date-time-nullable-with-aggregates-filter.input'; +import { DateTimeWithAggregatesFilter } from '../prisma/date-time-with-aggregates-filter.input'; @InputType() export class PersonScalarWhereWithAggregatesInput { @@ -21,15 +21,6 @@ export class PersonScalarWhereWithAggregatesInput { @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}) firstname?: StringWithAggregatesFilter; @@ -50,4 +41,13 @@ export class PersonScalarWhereWithAggregatesInput { @HideField() workspaceId?: StringWithAggregatesFilter; + + @HideField() + deletedAt?: DateTimeNullableWithAggregatesFilter; + + @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) + createdAt?: DateTimeWithAggregatesFilter; + + @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) + updatedAt?: DateTimeWithAggregatesFilter; } diff --git a/server/src/core/@generated/person/person-scalar-where.input.ts b/server/src/core/@generated/person/person-scalar-where.input.ts index 055dac62c8..71a44e8679 100644 --- a/server/src/core/@generated/person/person-scalar-where.input.ts +++ b/server/src/core/@generated/person/person-scalar-where.input.ts @@ -1,10 +1,10 @@ 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 { StringNullableFilter } from '../prisma/string-nullable-filter.input'; import { HideField } from '@nestjs/graphql'; +import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; +import { DateTimeFilter } from '../prisma/date-time-filter.input'; @InputType() export class PersonScalarWhereInput { @@ -21,15 +21,6 @@ export class PersonScalarWhereInput { @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}) firstname?: StringFilter; @@ -50,4 +41,13 @@ export class PersonScalarWhereInput { @HideField() workspaceId?: StringFilter; + + @HideField() + deletedAt?: DateTimeNullableFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + createdAt?: DateTimeFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + updatedAt?: DateTimeFilter; } diff --git a/server/src/core/@generated/person/person-unchecked-create-without-company.input.ts b/server/src/core/@generated/person/person-unchecked-create-without-company.input.ts index 37f45a6788..996b8437a5 100644 --- a/server/src/core/@generated/person/person-unchecked-create-without-company.input.ts +++ b/server/src/core/@generated/person/person-unchecked-create-without-company.input.ts @@ -1,37 +1,45 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @InputType() export class PersonUncheckedCreateWithoutCompanyInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + firstname!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + lastname!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsEmail() + email!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsPhoneNumber() + phone!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + city!: string; + + @HideField() + workspaceId!: string; + + @HideField() + deletedAt?: Date | 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}) - firstname!: string; - - @Field(() => String, {nullable:false}) - lastname!: string; - - @Field(() => String, {nullable:false}) - email!: string; - - @Field(() => String, {nullable:false}) - phone!: string; - - @Field(() => String, {nullable:false}) - city!: string; - - @HideField() - workspaceId!: string; } diff --git a/server/src/core/@generated/person/person-unchecked-create-without-workspace.input.ts b/server/src/core/@generated/person/person-unchecked-create-without-workspace.input.ts index e7a77e7fa3..54792cdac5 100644 --- a/server/src/core/@generated/person/person-unchecked-create-without-workspace.input.ts +++ b/server/src/core/@generated/person/person-unchecked-create-without-workspace.input.ts @@ -1,36 +1,45 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; @InputType() export class PersonUncheckedCreateWithoutWorkspaceInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + firstname!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + lastname!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsEmail() + email!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsPhoneNumber() + phone!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + city!: string; + + @Field(() => String, {nullable:true}) + companyId?: string; + + @HideField() + deletedAt?: Date | 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}) - firstname!: string; - - @Field(() => String, {nullable:false}) - lastname!: string; - - @Field(() => String, {nullable:false}) - email!: string; - - @Field(() => String, {nullable:false}) - phone!: string; - - @Field(() => String, {nullable:false}) - city!: string; - - @Field(() => String, {nullable:true}) - companyId?: string; } diff --git a/server/src/core/@generated/person/person-unchecked-create.input.ts b/server/src/core/@generated/person/person-unchecked-create.input.ts index 66039a6276..9140f57d03 100644 --- a/server/src/core/@generated/person/person-unchecked-create.input.ts +++ b/server/src/core/@generated/person/person-unchecked-create.input.ts @@ -1,35 +1,34 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @InputType() export class PersonUncheckedCreateInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() 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}) + @Validator.IsString() firstname!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() lastname!: string; @Field(() => String, {nullable:false}) + @Validator.IsEmail() email!: string; @Field(() => String, {nullable:false}) + @Validator.IsPhoneNumber() phone!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() city!: string; @Field(() => String, {nullable:true}) @@ -37,4 +36,13 @@ export class PersonUncheckedCreateInput { @HideField() workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/person/person-unchecked-update-many-without-people.input.ts b/server/src/core/@generated/person/person-unchecked-update-many-without-people.input.ts index b3d4a323cd..9548cc5fb6 100644 --- a/server/src/core/@generated/person/person-unchecked-update-many-without-people.input.ts +++ b/server/src/core/@generated/person/person-unchecked-update-many-without-people.input.ts @@ -1,9 +1,10 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class PersonUncheckedUpdateManyWithoutPeopleInput { @@ -11,15 +12,6 @@ export class PersonUncheckedUpdateManyWithoutPeopleInput { @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}) firstname?: StringFieldUpdateOperationsInput; @@ -37,4 +29,13 @@ export class PersonUncheckedUpdateManyWithoutPeopleInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) companyId?: NullableStringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/person/person-unchecked-update-many.input.ts b/server/src/core/@generated/person/person-unchecked-update-many.input.ts index 8500a35b11..da1f88315b 100644 --- a/server/src/core/@generated/person/person-unchecked-update-many.input.ts +++ b/server/src/core/@generated/person/person-unchecked-update-many.input.ts @@ -1,10 +1,10 @@ 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 { HideField } from '@nestjs/graphql'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class PersonUncheckedUpdateManyInput { @@ -12,15 +12,6 @@ export class PersonUncheckedUpdateManyInput { @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}) firstname?: StringFieldUpdateOperationsInput; @@ -41,4 +32,13 @@ export class PersonUncheckedUpdateManyInput { @HideField() workspaceId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/person/person-unchecked-update-without-company.input.ts b/server/src/core/@generated/person/person-unchecked-update-without-company.input.ts index 1185cceafa..b41c780b3b 100644 --- a/server/src/core/@generated/person/person-unchecked-update-without-company.input.ts +++ b/server/src/core/@generated/person/person-unchecked-update-without-company.input.ts @@ -1,9 +1,9 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class PersonUncheckedUpdateWithoutCompanyInput { @@ -11,15 +11,6 @@ export class PersonUncheckedUpdateWithoutCompanyInput { @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}) firstname?: StringFieldUpdateOperationsInput; @@ -37,4 +28,13 @@ export class PersonUncheckedUpdateWithoutCompanyInput { @HideField() workspaceId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/person/person-unchecked-update-without-workspace.input.ts b/server/src/core/@generated/person/person-unchecked-update-without-workspace.input.ts index 950eff4f95..a7aeeda1bf 100644 --- a/server/src/core/@generated/person/person-unchecked-update-without-workspace.input.ts +++ b/server/src/core/@generated/person/person-unchecked-update-without-workspace.input.ts @@ -1,9 +1,10 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class PersonUncheckedUpdateWithoutWorkspaceInput { @@ -11,15 +12,6 @@ export class PersonUncheckedUpdateWithoutWorkspaceInput { @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}) firstname?: StringFieldUpdateOperationsInput; @@ -37,4 +29,13 @@ export class PersonUncheckedUpdateWithoutWorkspaceInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) companyId?: NullableStringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/person/person-unchecked-update.input.ts b/server/src/core/@generated/person/person-unchecked-update.input.ts index f0345151be..567c85b2e8 100644 --- a/server/src/core/@generated/person/person-unchecked-update.input.ts +++ b/server/src/core/@generated/person/person-unchecked-update.input.ts @@ -1,10 +1,10 @@ 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 { HideField } from '@nestjs/graphql'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class PersonUncheckedUpdateInput { @@ -12,15 +12,6 @@ export class PersonUncheckedUpdateInput { @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}) firstname?: StringFieldUpdateOperationsInput; @@ -41,4 +32,13 @@ export class PersonUncheckedUpdateInput { @HideField() workspaceId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/person/person-update-many-mutation.input.ts b/server/src/core/@generated/person/person-update-many-mutation.input.ts index 2787254212..63b2a1ae0b 100644 --- a/server/src/core/@generated/person/person-update-many-mutation.input.ts +++ b/server/src/core/@generated/person/person-update-many-mutation.input.ts @@ -1,8 +1,9 @@ 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 { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class PersonUpdateManyMutationInput { @@ -10,15 +11,6 @@ export class PersonUpdateManyMutationInput { @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}) firstname?: StringFieldUpdateOperationsInput; @@ -33,4 +25,13 @@ export class PersonUpdateManyMutationInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) city?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/person/person-update-without-company.input.ts b/server/src/core/@generated/person/person-update-without-company.input.ts index d7ac5a1ee6..28065c63e3 100644 --- a/server/src/core/@generated/person/person-update-without-company.input.ts +++ b/server/src/core/@generated/person/person-update-without-company.input.ts @@ -1,10 +1,10 @@ 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 { WorkspaceUpdateOneRequiredWithoutPeopleNestedInput } from '../workspace/workspace-update-one-required-without-people-nested.input'; import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; +import { WorkspaceUpdateOneRequiredWithoutPeopleNestedInput } from '../workspace/workspace-update-one-required-without-people-nested.input'; @InputType() export class PersonUpdateWithoutCompanyInput { @@ -12,15 +12,6 @@ export class PersonUpdateWithoutCompanyInput { @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}) firstname?: StringFieldUpdateOperationsInput; @@ -36,6 +27,15 @@ export class PersonUpdateWithoutCompanyInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) city?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @HideField() workspace?: WorkspaceUpdateOneRequiredWithoutPeopleNestedInput; } diff --git a/server/src/core/@generated/person/person-update-without-workspace.input.ts b/server/src/core/@generated/person/person-update-without-workspace.input.ts index 9d883d7470..6369f71158 100644 --- a/server/src/core/@generated/person/person-update-without-workspace.input.ts +++ b/server/src/core/@generated/person/person-update-without-workspace.input.ts @@ -1,8 +1,9 @@ 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 { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { CompanyUpdateOneWithoutPeopleNestedInput } from '../company/company-update-one-without-people-nested.input'; @InputType() @@ -11,15 +12,6 @@ export class PersonUpdateWithoutWorkspaceInput { @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}) firstname?: StringFieldUpdateOperationsInput; @@ -35,6 +27,15 @@ export class PersonUpdateWithoutWorkspaceInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) city?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => CompanyUpdateOneWithoutPeopleNestedInput, {nullable:true}) company?: CompanyUpdateOneWithoutPeopleNestedInput; } diff --git a/server/src/core/@generated/person/person-update.input.ts b/server/src/core/@generated/person/person-update.input.ts index a17c52d88b..a36ba9e586 100644 --- a/server/src/core/@generated/person/person-update.input.ts +++ b/server/src/core/@generated/person/person-update.input.ts @@ -1,11 +1,11 @@ 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 { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { CompanyUpdateOneWithoutPeopleNestedInput } from '../company/company-update-one-without-people-nested.input'; import { WorkspaceUpdateOneRequiredWithoutPeopleNestedInput } from '../workspace/workspace-update-one-required-without-people-nested.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class PersonUpdateInput { @@ -13,15 +13,6 @@ export class PersonUpdateInput { @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}) firstname?: StringFieldUpdateOperationsInput; @@ -37,6 +28,15 @@ export class PersonUpdateInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) city?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => CompanyUpdateOneWithoutPeopleNestedInput, {nullable:true}) company?: CompanyUpdateOneWithoutPeopleNestedInput; diff --git a/server/src/core/@generated/person/person-where-unique.input.ts b/server/src/core/@generated/person/person-where-unique.input.ts index 34c5475c9a..9e7ddd8952 100644 --- a/server/src/core/@generated/person/person-where-unique.input.ts +++ b/server/src/core/@generated/person/person-where-unique.input.ts @@ -1,9 +1,12 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; @InputType() export class PersonWhereUniqueInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; } diff --git a/server/src/core/@generated/person/person-where.input.ts b/server/src/core/@generated/person/person-where.input.ts index aafb76cba3..c1785ce7ab 100644 --- a/server/src/core/@generated/person/person-where.input.ts +++ b/server/src/core/@generated/person/person-where.input.ts @@ -1,10 +1,10 @@ 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 { StringNullableFilter } from '../prisma/string-nullable-filter.input'; import { HideField } from '@nestjs/graphql'; +import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; +import { DateTimeFilter } from '../prisma/date-time-filter.input'; import { CompanyRelationFilter } from '../company/company-relation-filter.input'; import { WorkspaceRelationFilter } from '../workspace/workspace-relation-filter.input'; @@ -23,15 +23,6 @@ export class PersonWhereInput { @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}) firstname?: StringFilter; @@ -53,6 +44,15 @@ export class PersonWhereInput { @HideField() workspaceId?: StringFilter; + @HideField() + deletedAt?: DateTimeNullableFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + createdAt?: DateTimeFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + updatedAt?: DateTimeFilter; + @Field(() => CompanyRelationFilter, {nullable:true}) company?: CompanyRelationFilter; diff --git a/server/src/core/@generated/person/person.model.ts b/server/src/core/@generated/person/person.model.ts index 8f4a5a87a6..315291c534 100644 --- a/server/src/core/@generated/person/person.model.ts +++ b/server/src/core/@generated/person/person.model.ts @@ -11,15 +11,6 @@ export class Person { @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}) firstname!: string; @@ -41,6 +32,15 @@ export class Person { @HideField() workspaceId!: string; + @HideField() + deletedAt!: Date | null; + + @Field(() => Date, {nullable:false}) + createdAt!: Date; + + @Field(() => Date, {nullable:false}) + updatedAt!: Date; + @Field(() => Company, {nullable:true}) company?: Company | null; diff --git a/server/src/core/@generated/person/update-many-person.args.ts b/server/src/core/@generated/person/update-many-person.args.ts index 397be4d106..ba742bafdf 100644 --- a/server/src/core/@generated/person/update-many-person.args.ts +++ b/server/src/core/@generated/person/update-many-person.args.ts @@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { PersonUpdateManyMutationInput } from './person-update-many-mutation.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; import { PersonWhereInput } from './person-where.input'; @ArgsType() @@ -9,6 +10,8 @@ export class UpdateManyPersonArgs { @Field(() => PersonUpdateManyMutationInput, {nullable:false}) @Type(() => PersonUpdateManyMutationInput) + @ValidateNested({each: true}) + @Type(() => PersonUpdateManyMutationInput) data!: PersonUpdateManyMutationInput; @Field(() => PersonWhereInput, {nullable:true}) diff --git a/server/src/core/@generated/person/update-one-person.args.ts b/server/src/core/@generated/person/update-one-person.args.ts index 6c91321c51..c70516db72 100644 --- a/server/src/core/@generated/person/update-one-person.args.ts +++ b/server/src/core/@generated/person/update-one-person.args.ts @@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { PersonUpdateInput } from './person-update.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; import { PersonWhereUniqueInput } from './person-where-unique.input'; @ArgsType() @@ -9,6 +10,8 @@ export class UpdateOnePersonArgs { @Field(() => PersonUpdateInput, {nullable:false}) @Type(() => PersonUpdateInput) + @ValidateNested({each: true}) + @Type(() => PersonUpdateInput) data!: PersonUpdateInput; @Field(() => PersonWhereUniqueInput, {nullable:false}) diff --git a/server/src/core/@generated/pipeline-progress/create-many-pipeline-progress.args.ts b/server/src/core/@generated/pipeline-progress/create-many-pipeline-progress.args.ts index 0787b81332..447f7bf6f9 100644 --- a/server/src/core/@generated/pipeline-progress/create-many-pipeline-progress.args.ts +++ b/server/src/core/@generated/pipeline-progress/create-many-pipeline-progress.args.ts @@ -2,12 +2,15 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { PipelineProgressCreateManyInput } from './pipeline-progress-create-many.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; @ArgsType() export class CreateManyPipelineProgressArgs { @Field(() => [PipelineProgressCreateManyInput], {nullable:false}) @Type(() => PipelineProgressCreateManyInput) + @ValidateNested({each: true}) + @Type(() => PipelineProgressCreateManyInput) data!: Array; @Field(() => Boolean, {nullable:true}) diff --git a/server/src/core/@generated/pipeline-progress/create-one-pipeline-progress.args.ts b/server/src/core/@generated/pipeline-progress/create-one-pipeline-progress.args.ts index c8ebeb837a..3455dda8d8 100644 --- a/server/src/core/@generated/pipeline-progress/create-one-pipeline-progress.args.ts +++ b/server/src/core/@generated/pipeline-progress/create-one-pipeline-progress.args.ts @@ -2,11 +2,14 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { PipelineProgressCreateInput } from './pipeline-progress-create.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; @ArgsType() export class CreateOnePipelineProgressArgs { @Field(() => PipelineProgressCreateInput, {nullable:false}) @Type(() => PipelineProgressCreateInput) + @ValidateNested({each: true}) + @Type(() => PipelineProgressCreateInput) data!: PipelineProgressCreateInput; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-count-aggregate.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-count-aggregate.input.ts index 860776bf57..e22450a5d1 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-count-aggregate.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-count-aggregate.input.ts @@ -8,15 +8,6 @@ export class PipelineProgressCountAggregateInput { @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}) pipelineId?: true; @@ -32,6 +23,15 @@ export class PipelineProgressCountAggregateInput { @HideField() workspaceId?: true; + @HideField() + deletedAt?: true; + + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; + @Field(() => Boolean, {nullable:true}) _all?: true; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-count-aggregate.output.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-count-aggregate.output.ts index 1511e82608..40da18f0d1 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-count-aggregate.output.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-count-aggregate.output.ts @@ -9,15 +9,6 @@ export class PipelineProgressCountAggregate { @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}) pipelineId!: number; @@ -33,6 +24,15 @@ export class PipelineProgressCountAggregate { @HideField() workspaceId!: number; + @HideField() + deletedAt!: number; + + @Field(() => Int, {nullable:false}) + createdAt!: number; + + @Field(() => Int, {nullable:false}) + updatedAt!: number; + @Field(() => Int, {nullable:false}) _all!: number; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-count-order-by-aggregate.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-count-order-by-aggregate.input.ts index ef071a6fe9..6c812cc80f 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-count-order-by-aggregate.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-count-order-by-aggregate.input.ts @@ -9,15 +9,6 @@ export class PipelineProgressCountOrderByAggregateInput { @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}) pipelineId?: keyof typeof SortOrder; @@ -32,4 +23,13 @@ export class PipelineProgressCountOrderByAggregateInput { @HideField() workspaceId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-create-many-pipeline-stage.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-create-many-pipeline-stage.input.ts index cf72fbb475..8ae58ea325 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-create-many-pipeline-stage.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-create-many-pipeline-stage.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; import { HideField } from '@nestjs/graphql'; @@ -7,17 +8,10 @@ import { HideField } from '@nestjs/graphql'; export class PipelineProgressCreateManyPipelineStageInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() 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}) pipelineId!: string; @@ -29,4 +23,13 @@ export class PipelineProgressCreateManyPipelineStageInput { @HideField() workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-create-many-pipeline.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-create-many-pipeline.input.ts index b9886c7c4b..c88726ced9 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-create-many-pipeline.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-create-many-pipeline.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; import { HideField } from '@nestjs/graphql'; @@ -7,17 +8,10 @@ import { HideField } from '@nestjs/graphql'; export class PipelineProgressCreateManyPipelineInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() 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}) pipelineStageId!: string; @@ -29,4 +23,13 @@ export class PipelineProgressCreateManyPipelineInput { @HideField() workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-create-many-workspace.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-create-many-workspace.input.ts index d41dc82b67..e7810a81ce 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-create-many-workspace.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-create-many-workspace.input.ts @@ -1,22 +1,17 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; +import { HideField } from '@nestjs/graphql'; @InputType() export class PipelineProgressCreateManyWorkspaceInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() 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}) pipelineId!: string; @@ -28,4 +23,13 @@ export class PipelineProgressCreateManyWorkspaceInput { @Field(() => String, {nullable:false}) progressableId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-create-many.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-create-many.input.ts index cb7eb50a63..a6e05a29ff 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-create-many.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-create-many.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; import { HideField } from '@nestjs/graphql'; @@ -7,17 +8,10 @@ import { HideField } from '@nestjs/graphql'; export class PipelineProgressCreateManyInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() 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}) pipelineId!: string; @@ -32,4 +26,13 @@ export class PipelineProgressCreateManyInput { @HideField() workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-create-without-pipeline-stage.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-create-without-pipeline-stage.input.ts index fd70cd6de7..577d5971e0 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-create-without-pipeline-stage.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-create-without-pipeline-stage.input.ts @@ -1,31 +1,34 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; +import { HideField } from '@nestjs/graphql'; import { PipelineCreateNestedOneWithoutPipelineProgressesInput } from '../pipeline/pipeline-create-nested-one-without-pipeline-progresses.input'; import { WorkspaceCreateNestedOneWithoutPipelineProgressesInput } from '../workspace/workspace-create-nested-one-without-pipeline-progresses.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class PipelineProgressCreateWithoutPipelineStageInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => PipelineProgressableType, {nullable:false}) progressableType!: keyof typeof PipelineProgressableType; @Field(() => String, {nullable:false}) progressableId!: string; + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; + @Field(() => PipelineCreateNestedOneWithoutPipelineProgressesInput, {nullable:false}) pipeline!: PipelineCreateNestedOneWithoutPipelineProgressesInput; diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-create-without-pipeline.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-create-without-pipeline.input.ts index b9555e06ae..814528f2c2 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-create-without-pipeline.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-create-without-pipeline.input.ts @@ -1,31 +1,34 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; +import { HideField } from '@nestjs/graphql'; import { PipelineStageCreateNestedOneWithoutPipelineProgressesInput } from '../pipeline-stage/pipeline-stage-create-nested-one-without-pipeline-progresses.input'; import { WorkspaceCreateNestedOneWithoutPipelineProgressesInput } from '../workspace/workspace-create-nested-one-without-pipeline-progresses.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class PipelineProgressCreateWithoutPipelineInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => PipelineProgressableType, {nullable:false}) progressableType!: keyof typeof PipelineProgressableType; @Field(() => String, {nullable:false}) progressableId!: string; + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; + @Field(() => PipelineStageCreateNestedOneWithoutPipelineProgressesInput, {nullable:false}) pipelineStage!: PipelineStageCreateNestedOneWithoutPipelineProgressesInput; diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-create-without-workspace.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-create-without-workspace.input.ts index da3d6609c4..75747d4c93 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-create-without-workspace.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-create-without-workspace.input.ts @@ -1,6 +1,8 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; +import { HideField } from '@nestjs/graphql'; import { PipelineCreateNestedOneWithoutPipelineProgressesInput } from '../pipeline/pipeline-create-nested-one-without-pipeline-progresses.input'; import { PipelineStageCreateNestedOneWithoutPipelineProgressesInput } from '../pipeline-stage/pipeline-stage-create-nested-one-without-pipeline-progresses.input'; @@ -8,23 +10,25 @@ import { PipelineStageCreateNestedOneWithoutPipelineProgressesInput } from '../p export class PipelineProgressCreateWithoutWorkspaceInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => PipelineProgressableType, {nullable:false}) progressableType!: keyof typeof PipelineProgressableType; @Field(() => String, {nullable:false}) progressableId!: string; + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; + @Field(() => PipelineCreateNestedOneWithoutPipelineProgressesInput, {nullable:false}) pipeline!: PipelineCreateNestedOneWithoutPipelineProgressesInput; diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-create.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-create.input.ts index 3a4743d3fe..346a29c61f 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-create.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-create.input.ts @@ -1,32 +1,35 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; +import { HideField } from '@nestjs/graphql'; import { PipelineCreateNestedOneWithoutPipelineProgressesInput } from '../pipeline/pipeline-create-nested-one-without-pipeline-progresses.input'; import { PipelineStageCreateNestedOneWithoutPipelineProgressesInput } from '../pipeline-stage/pipeline-stage-create-nested-one-without-pipeline-progresses.input'; import { WorkspaceCreateNestedOneWithoutPipelineProgressesInput } from '../workspace/workspace-create-nested-one-without-pipeline-progresses.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class PipelineProgressCreateInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; - @Field(() => Date, {nullable:true}) - createdAt?: Date | string; - - @Field(() => Date, {nullable:true}) - updatedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => PipelineProgressableType, {nullable:false}) progressableType!: keyof typeof PipelineProgressableType; @Field(() => String, {nullable:false}) progressableId!: string; + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; + @Field(() => PipelineCreateNestedOneWithoutPipelineProgressesInput, {nullable:false}) pipeline!: PipelineCreateNestedOneWithoutPipelineProgressesInput; diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-group-by.output.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-group-by.output.ts index 83726c430b..051870f082 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-group-by.output.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-group-by.output.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; import { HideField } from '@nestjs/graphql'; import { PipelineProgressCountAggregate } from './pipeline-progress-count-aggregate.output'; @@ -10,17 +11,10 @@ import { PipelineProgressMaxAggregate } from './pipeline-progress-max-aggregate. export class PipelineProgressGroupBy { @Field(() => String, {nullable:false}) + @Validator.IsString() + @Validator.IsOptional() 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}) pipelineId!: string; @@ -36,6 +30,15 @@ export class PipelineProgressGroupBy { @HideField() workspaceId!: string; + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:false}) + createdAt!: Date | string; + + @Field(() => Date, {nullable:false}) + updatedAt!: Date | string; + @Field(() => PipelineProgressCountAggregate, {nullable:true}) _count?: PipelineProgressCountAggregate; diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-max-aggregate.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-max-aggregate.input.ts index f5b11b927a..b68f781c82 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-max-aggregate.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-max-aggregate.input.ts @@ -8,15 +8,6 @@ export class PipelineProgressMaxAggregateInput { @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}) pipelineId?: true; @@ -31,4 +22,13 @@ export class PipelineProgressMaxAggregateInput { @HideField() workspaceId?: true; + + @HideField() + deletedAt?: true; + + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-max-aggregate.output.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-max-aggregate.output.ts index 27a0837cc4..1b04a78e27 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-max-aggregate.output.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-max-aggregate.output.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; import { HideField } from '@nestjs/graphql'; @@ -7,17 +8,10 @@ import { HideField } from '@nestjs/graphql'; export class PipelineProgressMaxAggregate { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() 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}) pipelineId?: string; @@ -32,4 +26,13 @@ export class PipelineProgressMaxAggregate { @HideField() workspaceId?: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-max-order-by-aggregate.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-max-order-by-aggregate.input.ts index 679bae71e5..0eb269ae2d 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-max-order-by-aggregate.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-max-order-by-aggregate.input.ts @@ -9,15 +9,6 @@ export class PipelineProgressMaxOrderByAggregateInput { @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}) pipelineId?: keyof typeof SortOrder; @@ -32,4 +23,13 @@ export class PipelineProgressMaxOrderByAggregateInput { @HideField() workspaceId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-min-aggregate.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-min-aggregate.input.ts index b36b45f7c4..f566a1224e 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-min-aggregate.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-min-aggregate.input.ts @@ -8,15 +8,6 @@ export class PipelineProgressMinAggregateInput { @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}) pipelineId?: true; @@ -31,4 +22,13 @@ export class PipelineProgressMinAggregateInput { @HideField() workspaceId?: true; + + @HideField() + deletedAt?: true; + + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-min-aggregate.output.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-min-aggregate.output.ts index 31deb7b50e..387c890904 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-min-aggregate.output.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-min-aggregate.output.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; import { HideField } from '@nestjs/graphql'; @@ -7,17 +8,10 @@ import { HideField } from '@nestjs/graphql'; export class PipelineProgressMinAggregate { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() 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}) pipelineId?: string; @@ -32,4 +26,13 @@ export class PipelineProgressMinAggregate { @HideField() workspaceId?: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-min-order-by-aggregate.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-min-order-by-aggregate.input.ts index 0e4d11b9f6..6d3b5dc1e7 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-min-order-by-aggregate.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-min-order-by-aggregate.input.ts @@ -9,15 +9,6 @@ export class PipelineProgressMinOrderByAggregateInput { @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}) pipelineId?: keyof typeof SortOrder; @@ -32,4 +23,13 @@ export class PipelineProgressMinOrderByAggregateInput { @HideField() workspaceId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-order-by-with-aggregation.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-order-by-with-aggregation.input.ts index ea1263987a..29defd6abf 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-order-by-with-aggregation.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-order-by-with-aggregation.input.ts @@ -12,15 +12,6 @@ export class PipelineProgressOrderByWithAggregationInput { @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}) pipelineId?: keyof typeof SortOrder; @@ -36,6 +27,15 @@ export class PipelineProgressOrderByWithAggregationInput { @HideField() workspaceId?: keyof typeof SortOrder; + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; + @Field(() => PipelineProgressCountOrderByAggregateInput, {nullable:true}) _count?: PipelineProgressCountOrderByAggregateInput; diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-order-by-with-relation.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-order-by-with-relation.input.ts index e7701ecb7b..f19201ea81 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-order-by-with-relation.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-order-by-with-relation.input.ts @@ -12,15 +12,6 @@ export class PipelineProgressOrderByWithRelationInput { @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}) pipelineId?: keyof typeof SortOrder; @@ -36,6 +27,15 @@ export class PipelineProgressOrderByWithRelationInput { @HideField() workspaceId?: keyof typeof SortOrder; + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; + @Field(() => PipelineOrderByWithRelationInput, {nullable:true}) pipeline?: PipelineOrderByWithRelationInput; diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-scalar-field.enum.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-scalar-field.enum.ts index 65077a1d39..e289a1765b 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-scalar-field.enum.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-scalar-field.enum.ts @@ -2,14 +2,14 @@ import { registerEnumType } from '@nestjs/graphql'; export enum PipelineProgressScalarFieldEnum { id = "id", - createdAt = "createdAt", - updatedAt = "updatedAt", - deletedAt = "deletedAt", pipelineId = "pipelineId", pipelineStageId = "pipelineStageId", progressableType = "progressableType", progressableId = "progressableId", - workspaceId = "workspaceId" + workspaceId = "workspaceId", + deletedAt = "deletedAt", + createdAt = "createdAt", + updatedAt = "updatedAt" } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-scalar-where-with-aggregates.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-scalar-where-with-aggregates.input.ts index 66eac3298b..1726b6b49a 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-scalar-where-with-aggregates.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-scalar-where-with-aggregates.input.ts @@ -1,10 +1,10 @@ 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 { EnumPipelineProgressableTypeWithAggregatesFilter } from '../prisma/enum-pipeline-progressable-type-with-aggregates-filter.input'; import { HideField } from '@nestjs/graphql'; +import { DateTimeNullableWithAggregatesFilter } from '../prisma/date-time-nullable-with-aggregates-filter.input'; +import { DateTimeWithAggregatesFilter } from '../prisma/date-time-with-aggregates-filter.input'; @InputType() export class PipelineProgressScalarWhereWithAggregatesInput { @@ -21,15 +21,6 @@ export class PipelineProgressScalarWhereWithAggregatesInput { @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}) pipelineId?: StringWithAggregatesFilter; @@ -44,4 +35,13 @@ export class PipelineProgressScalarWhereWithAggregatesInput { @HideField() workspaceId?: StringWithAggregatesFilter; + + @HideField() + deletedAt?: DateTimeNullableWithAggregatesFilter; + + @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) + createdAt?: DateTimeWithAggregatesFilter; + + @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) + updatedAt?: DateTimeWithAggregatesFilter; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-scalar-where.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-scalar-where.input.ts index 6302441384..9472265636 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-scalar-where.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-scalar-where.input.ts @@ -1,10 +1,10 @@ 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 { EnumPipelineProgressableTypeFilter } from '../prisma/enum-pipeline-progressable-type-filter.input'; import { HideField } from '@nestjs/graphql'; +import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; +import { DateTimeFilter } from '../prisma/date-time-filter.input'; @InputType() export class PipelineProgressScalarWhereInput { @@ -21,15 +21,6 @@ export class PipelineProgressScalarWhereInput { @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}) pipelineId?: StringFilter; @@ -44,4 +35,13 @@ export class PipelineProgressScalarWhereInput { @HideField() workspaceId?: StringFilter; + + @HideField() + deletedAt?: DateTimeNullableFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + createdAt?: DateTimeFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + updatedAt?: DateTimeFilter; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-create-without-pipeline-stage.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-create-without-pipeline-stage.input.ts index c85c73c37c..2202c3f5bf 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-create-without-pipeline-stage.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-create-without-pipeline-stage.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; import { HideField } from '@nestjs/graphql'; @@ -7,17 +8,10 @@ import { HideField } from '@nestjs/graphql'; export class PipelineProgressUncheckedCreateWithoutPipelineStageInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() 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}) pipelineId!: string; @@ -29,4 +23,13 @@ export class PipelineProgressUncheckedCreateWithoutPipelineStageInput { @HideField() workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-create-without-pipeline.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-create-without-pipeline.input.ts index 4a4f78f41d..7ffeb04151 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-create-without-pipeline.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-create-without-pipeline.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; import { HideField } from '@nestjs/graphql'; @@ -7,17 +8,10 @@ import { HideField } from '@nestjs/graphql'; export class PipelineProgressUncheckedCreateWithoutPipelineInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() 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}) pipelineStageId!: string; @@ -29,4 +23,13 @@ export class PipelineProgressUncheckedCreateWithoutPipelineInput { @HideField() workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-create-without-workspace.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-create-without-workspace.input.ts index 8f156d04b6..7b054ebbdf 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-create-without-workspace.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-create-without-workspace.input.ts @@ -1,22 +1,17 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; +import { HideField } from '@nestjs/graphql'; @InputType() export class PipelineProgressUncheckedCreateWithoutWorkspaceInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() 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}) pipelineId!: string; @@ -28,4 +23,13 @@ export class PipelineProgressUncheckedCreateWithoutWorkspaceInput { @Field(() => String, {nullable:false}) progressableId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-create.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-create.input.ts index d36e569f49..a571900dba 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-create.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-create.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; import { HideField } from '@nestjs/graphql'; @@ -7,17 +8,10 @@ import { HideField } from '@nestjs/graphql'; export class PipelineProgressUncheckedCreateInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() 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}) pipelineId!: string; @@ -32,4 +26,13 @@ export class PipelineProgressUncheckedCreateInput { @HideField() workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-update-many-without-pipeline-progresses.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-update-many-without-pipeline-progresses.input.ts index c5d650cfaf..e502343013 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-update-many-without-pipeline-progresses.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-update-many-without-pipeline-progresses.input.ts @@ -1,9 +1,10 @@ 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 { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class PipelineProgressUncheckedUpdateManyWithoutPipelineProgressesInput { @@ -11,15 +12,6 @@ export class PipelineProgressUncheckedUpdateManyWithoutPipelineProgressesInput { @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}) pipelineId?: StringFieldUpdateOperationsInput; @@ -31,4 +23,13 @@ export class PipelineProgressUncheckedUpdateManyWithoutPipelineProgressesInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) progressableId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-update-many.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-update-many.input.ts index 3b13057bc7..5c97ae69af 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-update-many.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-update-many.input.ts @@ -1,10 +1,10 @@ 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 { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class PipelineProgressUncheckedUpdateManyInput { @@ -12,15 +12,6 @@ export class PipelineProgressUncheckedUpdateManyInput { @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}) pipelineId?: StringFieldUpdateOperationsInput; @@ -35,4 +26,13 @@ export class PipelineProgressUncheckedUpdateManyInput { @HideField() workspaceId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-update-without-pipeline-stage.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-update-without-pipeline-stage.input.ts index 5f39bfc724..ef8a032fcf 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-update-without-pipeline-stage.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-update-without-pipeline-stage.input.ts @@ -1,10 +1,10 @@ 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 { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class PipelineProgressUncheckedUpdateWithoutPipelineStageInput { @@ -12,15 +12,6 @@ export class PipelineProgressUncheckedUpdateWithoutPipelineStageInput { @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}) pipelineId?: StringFieldUpdateOperationsInput; @@ -32,4 +23,13 @@ export class PipelineProgressUncheckedUpdateWithoutPipelineStageInput { @HideField() workspaceId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-update-without-pipeline.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-update-without-pipeline.input.ts index e2a0aa2f5a..fd2c518e8c 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-update-without-pipeline.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-update-without-pipeline.input.ts @@ -1,10 +1,10 @@ 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 { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class PipelineProgressUncheckedUpdateWithoutPipelineInput { @@ -12,15 +12,6 @@ export class PipelineProgressUncheckedUpdateWithoutPipelineInput { @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}) pipelineStageId?: StringFieldUpdateOperationsInput; @@ -32,4 +23,13 @@ export class PipelineProgressUncheckedUpdateWithoutPipelineInput { @HideField() workspaceId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-update-without-workspace.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-update-without-workspace.input.ts index bf05920366..126b7949eb 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-update-without-workspace.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-update-without-workspace.input.ts @@ -1,9 +1,10 @@ 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 { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class PipelineProgressUncheckedUpdateWithoutWorkspaceInput { @@ -11,15 +12,6 @@ export class PipelineProgressUncheckedUpdateWithoutWorkspaceInput { @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}) pipelineId?: StringFieldUpdateOperationsInput; @@ -31,4 +23,13 @@ export class PipelineProgressUncheckedUpdateWithoutWorkspaceInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) progressableId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-update.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-update.input.ts index 1dac35cfa4..2b582a5079 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-update.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-unchecked-update.input.ts @@ -1,10 +1,10 @@ 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 { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class PipelineProgressUncheckedUpdateInput { @@ -12,15 +12,6 @@ export class PipelineProgressUncheckedUpdateInput { @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}) pipelineId?: StringFieldUpdateOperationsInput; @@ -35,4 +26,13 @@ export class PipelineProgressUncheckedUpdateInput { @HideField() workspaceId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-update-many-mutation.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-update-many-mutation.input.ts index cdbbc4f4b6..f1903e8036 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-update-many-mutation.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-update-many-mutation.input.ts @@ -1,9 +1,10 @@ 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 { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class PipelineProgressUpdateManyMutationInput { @@ -11,18 +12,18 @@ export class PipelineProgressUpdateManyMutationInput { @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(() => EnumPipelineProgressableTypeFieldUpdateOperationsInput, {nullable:true}) progressableType?: EnumPipelineProgressableTypeFieldUpdateOperationsInput; @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) progressableId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-update-without-pipeline-stage.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-update-without-pipeline-stage.input.ts index 949596eebb..f6461c0fa8 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-update-without-pipeline-stage.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-update-without-pipeline-stage.input.ts @@ -1,12 +1,12 @@ 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 { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { PipelineUpdateOneRequiredWithoutPipelineProgressesNestedInput } from '../pipeline/pipeline-update-one-required-without-pipeline-progresses-nested.input'; import { WorkspaceUpdateOneRequiredWithoutPipelineProgressesNestedInput } from '../workspace/workspace-update-one-required-without-pipeline-progresses-nested.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class PipelineProgressUpdateWithoutPipelineStageInput { @@ -14,21 +14,21 @@ export class PipelineProgressUpdateWithoutPipelineStageInput { @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(() => EnumPipelineProgressableTypeFieldUpdateOperationsInput, {nullable:true}) progressableType?: EnumPipelineProgressableTypeFieldUpdateOperationsInput; @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) progressableId?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => PipelineUpdateOneRequiredWithoutPipelineProgressesNestedInput, {nullable:true}) pipeline?: PipelineUpdateOneRequiredWithoutPipelineProgressesNestedInput; diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-update-without-pipeline.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-update-without-pipeline.input.ts index 0434a65a54..d0fd3000ae 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-update-without-pipeline.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-update-without-pipeline.input.ts @@ -1,12 +1,12 @@ 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 { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { PipelineStageUpdateOneRequiredWithoutPipelineProgressesNestedInput } from '../pipeline-stage/pipeline-stage-update-one-required-without-pipeline-progresses-nested.input'; import { WorkspaceUpdateOneRequiredWithoutPipelineProgressesNestedInput } from '../workspace/workspace-update-one-required-without-pipeline-progresses-nested.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class PipelineProgressUpdateWithoutPipelineInput { @@ -14,21 +14,21 @@ export class PipelineProgressUpdateWithoutPipelineInput { @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(() => EnumPipelineProgressableTypeFieldUpdateOperationsInput, {nullable:true}) progressableType?: EnumPipelineProgressableTypeFieldUpdateOperationsInput; @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) progressableId?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => PipelineStageUpdateOneRequiredWithoutPipelineProgressesNestedInput, {nullable:true}) pipelineStage?: PipelineStageUpdateOneRequiredWithoutPipelineProgressesNestedInput; diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-update-without-workspace.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-update-without-workspace.input.ts index b2cf12fde3..fef40cd805 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-update-without-workspace.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-update-without-workspace.input.ts @@ -1,9 +1,10 @@ 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 { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { PipelineUpdateOneRequiredWithoutPipelineProgressesNestedInput } from '../pipeline/pipeline-update-one-required-without-pipeline-progresses-nested.input'; import { PipelineStageUpdateOneRequiredWithoutPipelineProgressesNestedInput } from '../pipeline-stage/pipeline-stage-update-one-required-without-pipeline-progresses-nested.input'; @@ -13,21 +14,21 @@ export class PipelineProgressUpdateWithoutWorkspaceInput { @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(() => EnumPipelineProgressableTypeFieldUpdateOperationsInput, {nullable:true}) progressableType?: EnumPipelineProgressableTypeFieldUpdateOperationsInput; @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) progressableId?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => PipelineUpdateOneRequiredWithoutPipelineProgressesNestedInput, {nullable:true}) pipeline?: PipelineUpdateOneRequiredWithoutPipelineProgressesNestedInput; diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-update.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-update.input.ts index 2561ece247..64daa41666 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-update.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-update.input.ts @@ -1,13 +1,13 @@ 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 { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { PipelineUpdateOneRequiredWithoutPipelineProgressesNestedInput } from '../pipeline/pipeline-update-one-required-without-pipeline-progresses-nested.input'; import { PipelineStageUpdateOneRequiredWithoutPipelineProgressesNestedInput } from '../pipeline-stage/pipeline-stage-update-one-required-without-pipeline-progresses-nested.input'; import { WorkspaceUpdateOneRequiredWithoutPipelineProgressesNestedInput } from '../workspace/workspace-update-one-required-without-pipeline-progresses-nested.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class PipelineProgressUpdateInput { @@ -15,21 +15,21 @@ export class PipelineProgressUpdateInput { @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(() => EnumPipelineProgressableTypeFieldUpdateOperationsInput, {nullable:true}) progressableType?: EnumPipelineProgressableTypeFieldUpdateOperationsInput; @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) progressableId?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => PipelineUpdateOneRequiredWithoutPipelineProgressesNestedInput, {nullable:true}) pipeline?: PipelineUpdateOneRequiredWithoutPipelineProgressesNestedInput; diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-where-unique.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-where-unique.input.ts index a91dc30a3a..49964611f6 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-where-unique.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-where-unique.input.ts @@ -1,9 +1,12 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; @InputType() export class PipelineProgressWhereUniqueInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; } diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress-where.input.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress-where.input.ts index 63874c98c8..e9e548a992 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress-where.input.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress-where.input.ts @@ -1,10 +1,10 @@ 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 { EnumPipelineProgressableTypeFilter } from '../prisma/enum-pipeline-progressable-type-filter.input'; import { HideField } from '@nestjs/graphql'; +import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; +import { DateTimeFilter } from '../prisma/date-time-filter.input'; import { PipelineRelationFilter } from '../pipeline/pipeline-relation-filter.input'; import { PipelineStageRelationFilter } from '../pipeline-stage/pipeline-stage-relation-filter.input'; import { WorkspaceRelationFilter } from '../workspace/workspace-relation-filter.input'; @@ -24,15 +24,6 @@ export class PipelineProgressWhereInput { @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}) pipelineId?: StringFilter; @@ -48,6 +39,15 @@ export class PipelineProgressWhereInput { @HideField() workspaceId?: StringFilter; + @HideField() + deletedAt?: DateTimeNullableFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + createdAt?: DateTimeFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + updatedAt?: DateTimeFilter; + @Field(() => PipelineRelationFilter, {nullable:true}) pipeline?: PipelineRelationFilter; diff --git a/server/src/core/@generated/pipeline-progress/pipeline-progress.model.ts b/server/src/core/@generated/pipeline-progress/pipeline-progress.model.ts index d19308f024..c0bb471dea 100644 --- a/server/src/core/@generated/pipeline-progress/pipeline-progress.model.ts +++ b/server/src/core/@generated/pipeline-progress/pipeline-progress.model.ts @@ -13,15 +13,6 @@ export class PipelineProgress { @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}) pipelineId!: string; @@ -37,6 +28,15 @@ export class PipelineProgress { @HideField() workspaceId!: string; + @HideField() + deletedAt!: Date | null; + + @Field(() => Date, {nullable:false}) + createdAt!: Date; + + @Field(() => Date, {nullable:false}) + updatedAt!: Date; + @Field(() => Pipeline, {nullable:false}) pipeline?: Pipeline; diff --git a/server/src/core/@generated/pipeline-progress/update-many-pipeline-progress.args.ts b/server/src/core/@generated/pipeline-progress/update-many-pipeline-progress.args.ts index 0fa59c9c04..6e2ecd02be 100644 --- a/server/src/core/@generated/pipeline-progress/update-many-pipeline-progress.args.ts +++ b/server/src/core/@generated/pipeline-progress/update-many-pipeline-progress.args.ts @@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { PipelineProgressUpdateManyMutationInput } from './pipeline-progress-update-many-mutation.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; import { PipelineProgressWhereInput } from './pipeline-progress-where.input'; @ArgsType() @@ -9,6 +10,8 @@ export class UpdateManyPipelineProgressArgs { @Field(() => PipelineProgressUpdateManyMutationInput, {nullable:false}) @Type(() => PipelineProgressUpdateManyMutationInput) + @ValidateNested({each: true}) + @Type(() => PipelineProgressUpdateManyMutationInput) data!: PipelineProgressUpdateManyMutationInput; @Field(() => PipelineProgressWhereInput, {nullable:true}) diff --git a/server/src/core/@generated/pipeline-progress/update-one-pipeline-progress.args.ts b/server/src/core/@generated/pipeline-progress/update-one-pipeline-progress.args.ts index 9097f61a90..b7fbafe4ba 100644 --- a/server/src/core/@generated/pipeline-progress/update-one-pipeline-progress.args.ts +++ b/server/src/core/@generated/pipeline-progress/update-one-pipeline-progress.args.ts @@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { PipelineProgressUpdateInput } from './pipeline-progress-update.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; import { PipelineProgressWhereUniqueInput } from './pipeline-progress-where-unique.input'; @ArgsType() @@ -9,6 +10,8 @@ export class UpdateOnePipelineProgressArgs { @Field(() => PipelineProgressUpdateInput, {nullable:false}) @Type(() => PipelineProgressUpdateInput) + @ValidateNested({each: true}) + @Type(() => PipelineProgressUpdateInput) data!: PipelineProgressUpdateInput; @Field(() => PipelineProgressWhereUniqueInput, {nullable:false}) diff --git a/server/src/core/@generated/pipeline-stage/create-many-pipeline-stage.args.ts b/server/src/core/@generated/pipeline-stage/create-many-pipeline-stage.args.ts index 72bc79f956..92168e92be 100644 --- a/server/src/core/@generated/pipeline-stage/create-many-pipeline-stage.args.ts +++ b/server/src/core/@generated/pipeline-stage/create-many-pipeline-stage.args.ts @@ -2,12 +2,15 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { PipelineStageCreateManyInput } from './pipeline-stage-create-many.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; @ArgsType() export class CreateManyPipelineStageArgs { @Field(() => [PipelineStageCreateManyInput], {nullable:false}) @Type(() => PipelineStageCreateManyInput) + @ValidateNested({each: true}) + @Type(() => PipelineStageCreateManyInput) data!: Array; @Field(() => Boolean, {nullable:true}) diff --git a/server/src/core/@generated/pipeline-stage/create-one-pipeline-stage.args.ts b/server/src/core/@generated/pipeline-stage/create-one-pipeline-stage.args.ts index c60a228345..5821b7a432 100644 --- a/server/src/core/@generated/pipeline-stage/create-one-pipeline-stage.args.ts +++ b/server/src/core/@generated/pipeline-stage/create-one-pipeline-stage.args.ts @@ -2,11 +2,14 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { PipelineStageCreateInput } from './pipeline-stage-create.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; @ArgsType() export class CreateOnePipelineStageArgs { @Field(() => PipelineStageCreateInput, {nullable:false}) @Type(() => PipelineStageCreateInput) + @ValidateNested({each: true}) + @Type(() => PipelineStageCreateInput) data!: PipelineStageCreateInput; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-count-aggregate.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-count-aggregate.input.ts index 7f39c9e37f..1bb4a676f7 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-count-aggregate.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-count-aggregate.input.ts @@ -8,15 +8,6 @@ export class PipelineStageCountAggregateInput { @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}) name?: true; @@ -32,6 +23,15 @@ export class PipelineStageCountAggregateInput { @HideField() workspaceId?: true; + @HideField() + deletedAt?: true; + + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; + @Field(() => Boolean, {nullable:true}) _all?: true; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-count-aggregate.output.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-count-aggregate.output.ts index 079141cedb..a6804b8900 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-count-aggregate.output.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-count-aggregate.output.ts @@ -9,15 +9,6 @@ export class PipelineStageCountAggregate { @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}) name!: number; @@ -33,6 +24,15 @@ export class PipelineStageCountAggregate { @HideField() workspaceId!: number; + @HideField() + deletedAt!: number; + + @Field(() => Int, {nullable:false}) + createdAt!: number; + + @Field(() => Int, {nullable:false}) + updatedAt!: number; + @Field(() => Int, {nullable:false}) _all!: number; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-count-order-by-aggregate.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-count-order-by-aggregate.input.ts index f33d17527e..f495a31496 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-count-order-by-aggregate.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-count-order-by-aggregate.input.ts @@ -9,15 +9,6 @@ export class PipelineStageCountOrderByAggregateInput { @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}) name?: keyof typeof SortOrder; @@ -32,4 +23,13 @@ export class PipelineStageCountOrderByAggregateInput { @HideField() workspaceId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-create-many-pipeline.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-create-many-pipeline.input.ts index a6a2a5c03b..7856aebcae 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-create-many-pipeline.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-create-many-pipeline.input.ts @@ -1,31 +1,37 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @InputType() export class PipelineStageCreateManyPipelineInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + name!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + type!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + color!: string; + + @HideField() + workspaceId!: string; + + @HideField() + deletedAt?: Date | 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}) - name!: string; - - @Field(() => String, {nullable:false}) - type!: string; - - @Field(() => String, {nullable:false}) - color!: string; - - @HideField() - workspaceId!: string; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-create-many-workspace.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-create-many-workspace.input.ts index ed6d099953..b1a0b5cae8 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-create-many-workspace.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-create-many-workspace.input.ts @@ -1,30 +1,37 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; @InputType() export class PipelineStageCreateManyWorkspaceInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + name!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + type!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + color!: string; + + @Field(() => String, {nullable:false}) + pipelineId!: string; + + @HideField() + deletedAt?: Date | 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}) - name!: string; - - @Field(() => String, {nullable:false}) - type!: string; - - @Field(() => String, {nullable:false}) - color!: string; - - @Field(() => String, {nullable:false}) - pipelineId!: string; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-create-many.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-create-many.input.ts index cbdb4743ec..c041f28c29 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-create-many.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-create-many.input.ts @@ -1,29 +1,26 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @InputType() export class PipelineStageCreateManyInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() 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}) + @Validator.IsString() name!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() type!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() color!: string; @Field(() => String, {nullable:false}) @@ -31,4 +28,13 @@ export class PipelineStageCreateManyInput { @HideField() workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-create-without-pipeline-progresses.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-create-without-pipeline-progresses.input.ts index edd88c2896..3f656cf832 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-create-without-pipeline-progresses.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-create-without-pipeline-progresses.input.ts @@ -1,33 +1,39 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; import { PipelineCreateNestedOneWithoutPipelineStagesInput } from '../pipeline/pipeline-create-nested-one-without-pipeline-stages.input'; import { WorkspaceCreateNestedOneWithoutPipelineStagesInput } from '../workspace/workspace-create-nested-one-without-pipeline-stages.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class PipelineStageCreateWithoutPipelineProgressesInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + name!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + type!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + color!: string; + + @HideField() + deletedAt?: Date | 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}) - name!: string; - - @Field(() => String, {nullable:false}) - type!: string; - - @Field(() => String, {nullable:false}) - color!: string; - @Field(() => PipelineCreateNestedOneWithoutPipelineStagesInput, {nullable:false}) pipeline!: PipelineCreateNestedOneWithoutPipelineStagesInput; diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-create-without-pipeline.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-create-without-pipeline.input.ts index 409b2ae1f9..ea156775f5 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-create-without-pipeline.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-create-without-pipeline.input.ts @@ -1,33 +1,39 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; import { PipelineProgressCreateNestedManyWithoutPipelineStageInput } from '../pipeline-progress/pipeline-progress-create-nested-many-without-pipeline-stage.input'; import { WorkspaceCreateNestedOneWithoutPipelineStagesInput } from '../workspace/workspace-create-nested-one-without-pipeline-stages.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class PipelineStageCreateWithoutPipelineInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + name!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + type!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + color!: string; + + @HideField() + deletedAt?: Date | 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}) - name!: string; - - @Field(() => String, {nullable:false}) - type!: string; - - @Field(() => String, {nullable:false}) - color!: string; - @Field(() => PipelineProgressCreateNestedManyWithoutPipelineStageInput, {nullable:true}) pipelineProgresses?: PipelineProgressCreateNestedManyWithoutPipelineStageInput; diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-create-without-workspace.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-create-without-workspace.input.ts index 3ca707b739..8541319f64 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-create-without-workspace.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-create-without-workspace.input.ts @@ -1,35 +1,42 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; -import { PipelineCreateNestedOneWithoutPipelineStagesInput } from '../pipeline/pipeline-create-nested-one-without-pipeline-stages.input'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; import { PipelineProgressCreateNestedManyWithoutPipelineStageInput } from '../pipeline-progress/pipeline-progress-create-nested-many-without-pipeline-stage.input'; +import { PipelineCreateNestedOneWithoutPipelineStagesInput } from '../pipeline/pipeline-create-nested-one-without-pipeline-stages.input'; @InputType() export class PipelineStageCreateWithoutWorkspaceInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + name!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + type!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + color!: string; + + @HideField() + deletedAt?: Date | 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}) - name!: string; - - @Field(() => String, {nullable:false}) - type!: string; - - @Field(() => String, {nullable:false}) - color!: string; + @Field(() => PipelineProgressCreateNestedManyWithoutPipelineStageInput, {nullable:true}) + pipelineProgresses?: PipelineProgressCreateNestedManyWithoutPipelineStageInput; @Field(() => PipelineCreateNestedOneWithoutPipelineStagesInput, {nullable:false}) pipeline!: PipelineCreateNestedOneWithoutPipelineStagesInput; - - @Field(() => PipelineProgressCreateNestedManyWithoutPipelineStageInput, {nullable:true}) - pipelineProgresses?: PipelineProgressCreateNestedManyWithoutPipelineStageInput; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-create.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-create.input.ts index e69f43717d..f1f74472dc 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-create.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-create.input.ts @@ -1,40 +1,46 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; -import { PipelineCreateNestedOneWithoutPipelineStagesInput } from '../pipeline/pipeline-create-nested-one-without-pipeline-stages.input'; -import { PipelineProgressCreateNestedManyWithoutPipelineStageInput } from '../pipeline-progress/pipeline-progress-create-nested-many-without-pipeline-stage.input'; -import { WorkspaceCreateNestedOneWithoutPipelineStagesInput } from '../workspace/workspace-create-nested-one-without-pipeline-stages.input'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; +import { PipelineProgressCreateNestedManyWithoutPipelineStageInput } from '../pipeline-progress/pipeline-progress-create-nested-many-without-pipeline-stage.input'; +import { PipelineCreateNestedOneWithoutPipelineStagesInput } from '../pipeline/pipeline-create-nested-one-without-pipeline-stages.input'; +import { WorkspaceCreateNestedOneWithoutPipelineStagesInput } from '../workspace/workspace-create-nested-one-without-pipeline-stages.input'; @InputType() export class PipelineStageCreateInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + name!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + type!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + color!: string; + + @HideField() + deletedAt?: Date | 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}) - name!: string; - - @Field(() => String, {nullable:false}) - type!: string; - - @Field(() => String, {nullable:false}) - color!: string; + @Field(() => PipelineProgressCreateNestedManyWithoutPipelineStageInput, {nullable:true}) + pipelineProgresses?: PipelineProgressCreateNestedManyWithoutPipelineStageInput; @Field(() => PipelineCreateNestedOneWithoutPipelineStagesInput, {nullable:false}) pipeline!: PipelineCreateNestedOneWithoutPipelineStagesInput; - @Field(() => PipelineProgressCreateNestedManyWithoutPipelineStageInput, {nullable:true}) - pipelineProgresses?: PipelineProgressCreateNestedManyWithoutPipelineStageInput; - @HideField() workspace!: WorkspaceCreateNestedOneWithoutPipelineStagesInput; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-group-by.output.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-group-by.output.ts index 2307ee3f68..3bac6bc21d 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-group-by.output.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-group-by.output.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; import { PipelineStageCountAggregate } from './pipeline-stage-count-aggregate.output'; import { PipelineStageMinAggregate } from './pipeline-stage-min-aggregate.output'; @@ -9,24 +10,20 @@ import { PipelineStageMaxAggregate } from './pipeline-stage-max-aggregate.output export class PipelineStageGroupBy { @Field(() => String, {nullable:false}) + @Validator.IsString() + @Validator.IsOptional() 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}) + @Validator.IsString() name!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() type!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() color!: string; @Field(() => String, {nullable:false}) @@ -35,6 +32,15 @@ export class PipelineStageGroupBy { @HideField() workspaceId!: string; + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:false}) + createdAt!: Date | string; + + @Field(() => Date, {nullable:false}) + updatedAt!: Date | string; + @Field(() => PipelineStageCountAggregate, {nullable:true}) _count?: PipelineStageCountAggregate; diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-max-aggregate.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-max-aggregate.input.ts index 0318bbae88..9b0f60095e 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-max-aggregate.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-max-aggregate.input.ts @@ -8,15 +8,6 @@ export class PipelineStageMaxAggregateInput { @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}) name?: true; @@ -31,4 +22,13 @@ export class PipelineStageMaxAggregateInput { @HideField() workspaceId?: true; + + @HideField() + deletedAt?: true; + + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-max-aggregate.output.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-max-aggregate.output.ts index 65f754382a..ededb7d042 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-max-aggregate.output.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-max-aggregate.output.ts @@ -1,29 +1,26 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @ObjectType() export class PipelineStageMaxAggregate { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() 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}) + @Validator.IsString() name?: string; @Field(() => String, {nullable:true}) + @Validator.IsString() type?: string; @Field(() => String, {nullable:true}) + @Validator.IsString() color?: string; @Field(() => String, {nullable:true}) @@ -31,4 +28,13 @@ export class PipelineStageMaxAggregate { @HideField() workspaceId?: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-max-order-by-aggregate.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-max-order-by-aggregate.input.ts index 34763c410e..a6e3adf28b 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-max-order-by-aggregate.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-max-order-by-aggregate.input.ts @@ -9,15 +9,6 @@ export class PipelineStageMaxOrderByAggregateInput { @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}) name?: keyof typeof SortOrder; @@ -32,4 +23,13 @@ export class PipelineStageMaxOrderByAggregateInput { @HideField() workspaceId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-min-aggregate.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-min-aggregate.input.ts index 90ffc05adb..baded78376 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-min-aggregate.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-min-aggregate.input.ts @@ -8,15 +8,6 @@ export class PipelineStageMinAggregateInput { @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}) name?: true; @@ -31,4 +22,13 @@ export class PipelineStageMinAggregateInput { @HideField() workspaceId?: true; + + @HideField() + deletedAt?: true; + + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-min-aggregate.output.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-min-aggregate.output.ts index 380a4a6c09..26a8808542 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-min-aggregate.output.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-min-aggregate.output.ts @@ -1,29 +1,26 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @ObjectType() export class PipelineStageMinAggregate { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() 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}) + @Validator.IsString() name?: string; @Field(() => String, {nullable:true}) + @Validator.IsString() type?: string; @Field(() => String, {nullable:true}) + @Validator.IsString() color?: string; @Field(() => String, {nullable:true}) @@ -31,4 +28,13 @@ export class PipelineStageMinAggregate { @HideField() workspaceId?: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-min-order-by-aggregate.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-min-order-by-aggregate.input.ts index 832665cbf0..ec3e7862e7 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-min-order-by-aggregate.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-min-order-by-aggregate.input.ts @@ -9,15 +9,6 @@ export class PipelineStageMinOrderByAggregateInput { @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}) name?: keyof typeof SortOrder; @@ -32,4 +23,13 @@ export class PipelineStageMinOrderByAggregateInput { @HideField() workspaceId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-order-by-with-aggregation.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-order-by-with-aggregation.input.ts index 010b953c5d..bbe829d1c7 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-order-by-with-aggregation.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-order-by-with-aggregation.input.ts @@ -12,15 +12,6 @@ export class PipelineStageOrderByWithAggregationInput { @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}) name?: keyof typeof SortOrder; @@ -36,6 +27,15 @@ export class PipelineStageOrderByWithAggregationInput { @HideField() workspaceId?: keyof typeof SortOrder; + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; + @Field(() => PipelineStageCountOrderByAggregateInput, {nullable:true}) _count?: PipelineStageCountOrderByAggregateInput; diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-order-by-with-relation.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-order-by-with-relation.input.ts index fe0562b352..e14e1967d1 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-order-by-with-relation.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-order-by-with-relation.input.ts @@ -2,8 +2,8 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { SortOrder } from '../prisma/sort-order.enum'; import { HideField } from '@nestjs/graphql'; -import { PipelineOrderByWithRelationInput } from '../pipeline/pipeline-order-by-with-relation.input'; import { PipelineProgressOrderByRelationAggregateInput } from '../pipeline-progress/pipeline-progress-order-by-relation-aggregate.input'; +import { PipelineOrderByWithRelationInput } from '../pipeline/pipeline-order-by-with-relation.input'; import { WorkspaceOrderByWithRelationInput } from '../workspace/workspace-order-by-with-relation.input'; @InputType() @@ -12,15 +12,6 @@ export class PipelineStageOrderByWithRelationInput { @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}) name?: keyof typeof SortOrder; @@ -36,12 +27,21 @@ export class PipelineStageOrderByWithRelationInput { @HideField() workspaceId?: keyof typeof SortOrder; - @Field(() => PipelineOrderByWithRelationInput, {nullable:true}) - pipeline?: PipelineOrderByWithRelationInput; + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; @Field(() => PipelineProgressOrderByRelationAggregateInput, {nullable:true}) pipelineProgresses?: PipelineProgressOrderByRelationAggregateInput; + @Field(() => PipelineOrderByWithRelationInput, {nullable:true}) + pipeline?: PipelineOrderByWithRelationInput; + @HideField() workspace?: WorkspaceOrderByWithRelationInput; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-scalar-field.enum.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-scalar-field.enum.ts index b96f52883d..6f1a53a74d 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-scalar-field.enum.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-scalar-field.enum.ts @@ -2,14 +2,14 @@ import { registerEnumType } from '@nestjs/graphql'; export enum PipelineStageScalarFieldEnum { id = "id", - createdAt = "createdAt", - updatedAt = "updatedAt", - deletedAt = "deletedAt", name = "name", type = "type", color = "color", pipelineId = "pipelineId", - workspaceId = "workspaceId" + workspaceId = "workspaceId", + deletedAt = "deletedAt", + createdAt = "createdAt", + updatedAt = "updatedAt" } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-scalar-where-with-aggregates.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-scalar-where-with-aggregates.input.ts index 33a3f72b75..eb79740763 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-scalar-where-with-aggregates.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-scalar-where-with-aggregates.input.ts @@ -1,9 +1,9 @@ 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'; +import { DateTimeNullableWithAggregatesFilter } from '../prisma/date-time-nullable-with-aggregates-filter.input'; +import { DateTimeWithAggregatesFilter } from '../prisma/date-time-with-aggregates-filter.input'; @InputType() export class PipelineStageScalarWhereWithAggregatesInput { @@ -20,15 +20,6 @@ export class PipelineStageScalarWhereWithAggregatesInput { @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}) name?: StringWithAggregatesFilter; @@ -43,4 +34,13 @@ export class PipelineStageScalarWhereWithAggregatesInput { @HideField() workspaceId?: StringWithAggregatesFilter; + + @HideField() + deletedAt?: DateTimeNullableWithAggregatesFilter; + + @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) + createdAt?: DateTimeWithAggregatesFilter; + + @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) + updatedAt?: DateTimeWithAggregatesFilter; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-scalar-where.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-scalar-where.input.ts index a4640688f0..712d6ed04c 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-scalar-where.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-scalar-where.input.ts @@ -1,9 +1,9 @@ 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 { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; +import { DateTimeFilter } from '../prisma/date-time-filter.input'; @InputType() export class PipelineStageScalarWhereInput { @@ -20,15 +20,6 @@ export class PipelineStageScalarWhereInput { @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}) name?: StringFilter; @@ -43,4 +34,13 @@ export class PipelineStageScalarWhereInput { @HideField() workspaceId?: StringFilter; + + @HideField() + deletedAt?: DateTimeNullableFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + createdAt?: DateTimeFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + updatedAt?: DateTimeFilter; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-create-without-pipeline-progresses.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-create-without-pipeline-progresses.input.ts index 69b83f8ff5..c1e93b71f4 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-create-without-pipeline-progresses.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-create-without-pipeline-progresses.input.ts @@ -1,29 +1,26 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @InputType() export class PipelineStageUncheckedCreateWithoutPipelineProgressesInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() 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}) + @Validator.IsString() name!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() type!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() color!: string; @Field(() => String, {nullable:false}) @@ -31,4 +28,13 @@ export class PipelineStageUncheckedCreateWithoutPipelineProgressesInput { @HideField() workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-create-without-pipeline.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-create-without-pipeline.input.ts index e109520e4b..b2c6de3eb2 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-create-without-pipeline.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-create-without-pipeline.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; import { PipelineProgressUncheckedCreateNestedManyWithoutPipelineStageInput } from '../pipeline-progress/pipeline-progress-unchecked-create-nested-many-without-pipeline-stage.input'; @@ -7,29 +8,34 @@ import { PipelineProgressUncheckedCreateNestedManyWithoutPipelineStageInput } fr export class PipelineStageUncheckedCreateWithoutPipelineInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + name!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + type!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + color!: string; + + @HideField() + workspaceId!: string; + + @HideField() + deletedAt?: Date | 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}) - name!: string; - - @Field(() => String, {nullable:false}) - type!: string; - - @Field(() => String, {nullable:false}) - color!: string; - - @HideField() - workspaceId!: string; - @Field(() => PipelineProgressUncheckedCreateNestedManyWithoutPipelineStageInput, {nullable:true}) pipelineProgresses?: PipelineProgressUncheckedCreateNestedManyWithoutPipelineStageInput; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-create-without-workspace.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-create-without-workspace.input.ts index 96e2ff10da..b2249e733c 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-create-without-workspace.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-create-without-workspace.input.ts @@ -1,34 +1,41 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; import { PipelineProgressUncheckedCreateNestedManyWithoutPipelineStageInput } from '../pipeline-progress/pipeline-progress-unchecked-create-nested-many-without-pipeline-stage.input'; @InputType() export class PipelineStageUncheckedCreateWithoutWorkspaceInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + name!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + type!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + color!: string; + + @Field(() => String, {nullable:false}) + pipelineId!: string; + + @HideField() + deletedAt?: Date | 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}) - name!: string; - - @Field(() => String, {nullable:false}) - type!: string; - - @Field(() => String, {nullable:false}) - color!: string; - - @Field(() => String, {nullable:false}) - pipelineId!: string; - @Field(() => PipelineProgressUncheckedCreateNestedManyWithoutPipelineStageInput, {nullable:true}) pipelineProgresses?: PipelineProgressUncheckedCreateNestedManyWithoutPipelineStageInput; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-create.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-create.input.ts index b5b735fc9c..41fa54d34b 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-create.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-create.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; import { PipelineProgressUncheckedCreateNestedManyWithoutPipelineStageInput } from '../pipeline-progress/pipeline-progress-unchecked-create-nested-many-without-pipeline-stage.input'; @@ -7,24 +8,20 @@ import { PipelineProgressUncheckedCreateNestedManyWithoutPipelineStageInput } fr export class PipelineStageUncheckedCreateInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() 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}) + @Validator.IsString() name!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() type!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() color!: string; @Field(() => String, {nullable:false}) @@ -33,6 +30,15 @@ export class PipelineStageUncheckedCreateInput { @HideField() workspaceId!: string; + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; + @Field(() => PipelineProgressUncheckedCreateNestedManyWithoutPipelineStageInput, {nullable:true}) pipelineProgresses?: PipelineProgressUncheckedCreateNestedManyWithoutPipelineStageInput; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-update-many-without-pipeline-stages.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-update-many-without-pipeline-stages.input.ts index 65583416fc..94054bcb1b 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-update-many-without-pipeline-stages.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-update-many-without-pipeline-stages.input.ts @@ -1,8 +1,9 @@ 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 { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class PipelineStageUncheckedUpdateManyWithoutPipelineStagesInput { @@ -10,15 +11,6 @@ export class PipelineStageUncheckedUpdateManyWithoutPipelineStagesInput { @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}) name?: StringFieldUpdateOperationsInput; @@ -30,4 +22,13 @@ export class PipelineStageUncheckedUpdateManyWithoutPipelineStagesInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) pipelineId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-update-many.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-update-many.input.ts index fab8a3b1ef..dd2c461ae7 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-update-many.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-update-many.input.ts @@ -1,9 +1,9 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class PipelineStageUncheckedUpdateManyInput { @@ -11,15 +11,6 @@ export class PipelineStageUncheckedUpdateManyInput { @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}) name?: StringFieldUpdateOperationsInput; @@ -34,4 +25,13 @@ export class PipelineStageUncheckedUpdateManyInput { @HideField() workspaceId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-update-without-pipeline-progresses.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-update-without-pipeline-progresses.input.ts index cbeb4ffe9a..1b5efa6900 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-update-without-pipeline-progresses.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-update-without-pipeline-progresses.input.ts @@ -1,9 +1,9 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class PipelineStageUncheckedUpdateWithoutPipelineProgressesInput { @@ -11,15 +11,6 @@ export class PipelineStageUncheckedUpdateWithoutPipelineProgressesInput { @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}) name?: StringFieldUpdateOperationsInput; @@ -34,4 +25,13 @@ export class PipelineStageUncheckedUpdateWithoutPipelineProgressesInput { @HideField() workspaceId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-update-without-pipeline.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-update-without-pipeline.input.ts index a0efd1e24d..0c4d93d8d3 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-update-without-pipeline.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-update-without-pipeline.input.ts @@ -1,9 +1,9 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { PipelineProgressUncheckedUpdateManyWithoutPipelineStageNestedInput } from '../pipeline-progress/pipeline-progress-unchecked-update-many-without-pipeline-stage-nested.input'; @InputType() @@ -12,15 +12,6 @@ export class PipelineStageUncheckedUpdateWithoutPipelineInput { @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}) name?: StringFieldUpdateOperationsInput; @@ -33,6 +24,15 @@ export class PipelineStageUncheckedUpdateWithoutPipelineInput { @HideField() workspaceId?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => PipelineProgressUncheckedUpdateManyWithoutPipelineStageNestedInput, {nullable:true}) pipelineProgresses?: PipelineProgressUncheckedUpdateManyWithoutPipelineStageNestedInput; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-update-without-workspace.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-update-without-workspace.input.ts index d60f810fa7..46f87868d7 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-update-without-workspace.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-update-without-workspace.input.ts @@ -1,8 +1,9 @@ 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 { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { PipelineProgressUncheckedUpdateManyWithoutPipelineStageNestedInput } from '../pipeline-progress/pipeline-progress-unchecked-update-many-without-pipeline-stage-nested.input'; @InputType() @@ -11,15 +12,6 @@ export class PipelineStageUncheckedUpdateWithoutWorkspaceInput { @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}) name?: StringFieldUpdateOperationsInput; @@ -32,6 +24,15 @@ export class PipelineStageUncheckedUpdateWithoutWorkspaceInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) pipelineId?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => PipelineProgressUncheckedUpdateManyWithoutPipelineStageNestedInput, {nullable:true}) pipelineProgresses?: PipelineProgressUncheckedUpdateManyWithoutPipelineStageNestedInput; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-update.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-update.input.ts index 5e0386195c..bb918bd0e2 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-update.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-unchecked-update.input.ts @@ -1,9 +1,9 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { PipelineProgressUncheckedUpdateManyWithoutPipelineStageNestedInput } from '../pipeline-progress/pipeline-progress-unchecked-update-many-without-pipeline-stage-nested.input'; @InputType() @@ -12,15 +12,6 @@ export class PipelineStageUncheckedUpdateInput { @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}) name?: StringFieldUpdateOperationsInput; @@ -36,6 +27,15 @@ export class PipelineStageUncheckedUpdateInput { @HideField() workspaceId?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => PipelineProgressUncheckedUpdateManyWithoutPipelineStageNestedInput, {nullable:true}) pipelineProgresses?: PipelineProgressUncheckedUpdateManyWithoutPipelineStageNestedInput; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-update-many-mutation.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-update-many-mutation.input.ts index 24b3025bf8..e66f15e780 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-update-many-mutation.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-update-many-mutation.input.ts @@ -1,8 +1,9 @@ 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 { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class PipelineStageUpdateManyMutationInput { @@ -10,15 +11,6 @@ export class PipelineStageUpdateManyMutationInput { @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}) name?: StringFieldUpdateOperationsInput; @@ -27,4 +19,13 @@ export class PipelineStageUpdateManyMutationInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) color?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-update-without-pipeline-progresses.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-update-without-pipeline-progresses.input.ts index 9b8727b1a9..44bd90d602 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-update-without-pipeline-progresses.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-update-without-pipeline-progresses.input.ts @@ -1,11 +1,11 @@ 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 { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { PipelineUpdateOneRequiredWithoutPipelineStagesNestedInput } from '../pipeline/pipeline-update-one-required-without-pipeline-stages-nested.input'; import { WorkspaceUpdateOneRequiredWithoutPipelineStagesNestedInput } from '../workspace/workspace-update-one-required-without-pipeline-stages-nested.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class PipelineStageUpdateWithoutPipelineProgressesInput { @@ -13,15 +13,6 @@ export class PipelineStageUpdateWithoutPipelineProgressesInput { @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}) name?: StringFieldUpdateOperationsInput; @@ -31,6 +22,15 @@ export class PipelineStageUpdateWithoutPipelineProgressesInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) color?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => PipelineUpdateOneRequiredWithoutPipelineStagesNestedInput, {nullable:true}) pipeline?: PipelineUpdateOneRequiredWithoutPipelineStagesNestedInput; diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-update-without-pipeline.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-update-without-pipeline.input.ts index aa925c727a..408111514a 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-update-without-pipeline.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-update-without-pipeline.input.ts @@ -1,11 +1,11 @@ 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 { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { PipelineProgressUpdateManyWithoutPipelineStageNestedInput } from '../pipeline-progress/pipeline-progress-update-many-without-pipeline-stage-nested.input'; import { WorkspaceUpdateOneRequiredWithoutPipelineStagesNestedInput } from '../workspace/workspace-update-one-required-without-pipeline-stages-nested.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class PipelineStageUpdateWithoutPipelineInput { @@ -13,15 +13,6 @@ export class PipelineStageUpdateWithoutPipelineInput { @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}) name?: StringFieldUpdateOperationsInput; @@ -31,6 +22,15 @@ export class PipelineStageUpdateWithoutPipelineInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) color?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => PipelineProgressUpdateManyWithoutPipelineStageNestedInput, {nullable:true}) pipelineProgresses?: PipelineProgressUpdateManyWithoutPipelineStageNestedInput; diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-update-without-workspace.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-update-without-workspace.input.ts index d045278884..9a697f7e6d 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-update-without-workspace.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-update-without-workspace.input.ts @@ -1,10 +1,11 @@ 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 { PipelineUpdateOneRequiredWithoutPipelineStagesNestedInput } from '../pipeline/pipeline-update-one-required-without-pipeline-stages-nested.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { PipelineProgressUpdateManyWithoutPipelineStageNestedInput } from '../pipeline-progress/pipeline-progress-update-many-without-pipeline-stage-nested.input'; +import { PipelineUpdateOneRequiredWithoutPipelineStagesNestedInput } from '../pipeline/pipeline-update-one-required-without-pipeline-stages-nested.input'; @InputType() export class PipelineStageUpdateWithoutWorkspaceInput { @@ -12,15 +13,6 @@ export class PipelineStageUpdateWithoutWorkspaceInput { @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}) name?: StringFieldUpdateOperationsInput; @@ -30,9 +22,18 @@ export class PipelineStageUpdateWithoutWorkspaceInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) color?: StringFieldUpdateOperationsInput; - @Field(() => PipelineUpdateOneRequiredWithoutPipelineStagesNestedInput, {nullable:true}) - pipeline?: PipelineUpdateOneRequiredWithoutPipelineStagesNestedInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; @Field(() => PipelineProgressUpdateManyWithoutPipelineStageNestedInput, {nullable:true}) pipelineProgresses?: PipelineProgressUpdateManyWithoutPipelineStageNestedInput; + + @Field(() => PipelineUpdateOneRequiredWithoutPipelineStagesNestedInput, {nullable:true}) + pipeline?: PipelineUpdateOneRequiredWithoutPipelineStagesNestedInput; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-update.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-update.input.ts index 71d49c518a..21b3c95a60 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-update.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-update.input.ts @@ -1,12 +1,12 @@ 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 { PipelineUpdateOneRequiredWithoutPipelineStagesNestedInput } from '../pipeline/pipeline-update-one-required-without-pipeline-stages-nested.input'; -import { PipelineProgressUpdateManyWithoutPipelineStageNestedInput } from '../pipeline-progress/pipeline-progress-update-many-without-pipeline-stage-nested.input'; -import { WorkspaceUpdateOneRequiredWithoutPipelineStagesNestedInput } from '../workspace/workspace-update-one-required-without-pipeline-stages-nested.input'; import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; +import { PipelineProgressUpdateManyWithoutPipelineStageNestedInput } from '../pipeline-progress/pipeline-progress-update-many-without-pipeline-stage-nested.input'; +import { PipelineUpdateOneRequiredWithoutPipelineStagesNestedInput } from '../pipeline/pipeline-update-one-required-without-pipeline-stages-nested.input'; +import { WorkspaceUpdateOneRequiredWithoutPipelineStagesNestedInput } from '../workspace/workspace-update-one-required-without-pipeline-stages-nested.input'; @InputType() export class PipelineStageUpdateInput { @@ -14,15 +14,6 @@ export class PipelineStageUpdateInput { @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}) name?: StringFieldUpdateOperationsInput; @@ -32,12 +23,21 @@ export class PipelineStageUpdateInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) color?: StringFieldUpdateOperationsInput; - @Field(() => PipelineUpdateOneRequiredWithoutPipelineStagesNestedInput, {nullable:true}) - pipeline?: PipelineUpdateOneRequiredWithoutPipelineStagesNestedInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; @Field(() => PipelineProgressUpdateManyWithoutPipelineStageNestedInput, {nullable:true}) pipelineProgresses?: PipelineProgressUpdateManyWithoutPipelineStageNestedInput; + @Field(() => PipelineUpdateOneRequiredWithoutPipelineStagesNestedInput, {nullable:true}) + pipeline?: PipelineUpdateOneRequiredWithoutPipelineStagesNestedInput; + @HideField() workspace?: WorkspaceUpdateOneRequiredWithoutPipelineStagesNestedInput; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-where-unique.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-where-unique.input.ts index 16976ed7a0..71e4cf1c86 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-where-unique.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-where-unique.input.ts @@ -1,9 +1,12 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; @InputType() export class PipelineStageWhereUniqueInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage-where.input.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage-where.input.ts index 5d3308aaea..eb97b3236b 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage-where.input.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage-where.input.ts @@ -1,11 +1,11 @@ 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 { PipelineRelationFilter } from '../pipeline/pipeline-relation-filter.input'; +import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; +import { DateTimeFilter } from '../prisma/date-time-filter.input'; import { PipelineProgressListRelationFilter } from '../pipeline-progress/pipeline-progress-list-relation-filter.input'; +import { PipelineRelationFilter } from '../pipeline/pipeline-relation-filter.input'; import { WorkspaceRelationFilter } from '../workspace/workspace-relation-filter.input'; @InputType() @@ -23,15 +23,6 @@ export class PipelineStageWhereInput { @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}) name?: StringFilter; @@ -47,12 +38,21 @@ export class PipelineStageWhereInput { @HideField() workspaceId?: StringFilter; - @Field(() => PipelineRelationFilter, {nullable:true}) - pipeline?: PipelineRelationFilter; + @HideField() + deletedAt?: DateTimeNullableFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + createdAt?: DateTimeFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + updatedAt?: DateTimeFilter; @Field(() => PipelineProgressListRelationFilter, {nullable:true}) pipelineProgresses?: PipelineProgressListRelationFilter; + @Field(() => PipelineRelationFilter, {nullable:true}) + pipeline?: PipelineRelationFilter; + @HideField() workspace?: WorkspaceRelationFilter; } diff --git a/server/src/core/@generated/pipeline-stage/pipeline-stage.model.ts b/server/src/core/@generated/pipeline-stage/pipeline-stage.model.ts index b1ee05e04c..cd06a877ff 100644 --- a/server/src/core/@generated/pipeline-stage/pipeline-stage.model.ts +++ b/server/src/core/@generated/pipeline-stage/pipeline-stage.model.ts @@ -2,8 +2,8 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; import { ID } from '@nestjs/graphql'; import { HideField } from '@nestjs/graphql'; -import { Pipeline } from '../pipeline/pipeline.model'; import { PipelineProgress } from '../pipeline-progress/pipeline-progress.model'; +import { Pipeline } from '../pipeline/pipeline.model'; import { Workspace } from '../workspace/workspace.model'; import { PipelineStageCount } from './pipeline-stage-count.output'; @@ -13,15 +13,6 @@ export class PipelineStage { @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}) name!: string; @@ -37,12 +28,21 @@ export class PipelineStage { @HideField() workspaceId!: string; - @Field(() => Pipeline, {nullable:false}) - pipeline?: Pipeline; + @HideField() + deletedAt!: Date | null; + + @Field(() => Date, {nullable:false}) + createdAt!: Date; + + @Field(() => Date, {nullable:false}) + updatedAt!: Date; @Field(() => [PipelineProgress], {nullable:true}) pipelineProgresses?: Array; + @Field(() => Pipeline, {nullable:false}) + pipeline?: Pipeline; + @HideField() workspace?: Workspace; diff --git a/server/src/core/@generated/pipeline-stage/update-many-pipeline-stage.args.ts b/server/src/core/@generated/pipeline-stage/update-many-pipeline-stage.args.ts index 0ab03da1f3..ce2c3fc9a9 100644 --- a/server/src/core/@generated/pipeline-stage/update-many-pipeline-stage.args.ts +++ b/server/src/core/@generated/pipeline-stage/update-many-pipeline-stage.args.ts @@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { PipelineStageUpdateManyMutationInput } from './pipeline-stage-update-many-mutation.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; import { PipelineStageWhereInput } from './pipeline-stage-where.input'; @ArgsType() @@ -9,6 +10,8 @@ export class UpdateManyPipelineStageArgs { @Field(() => PipelineStageUpdateManyMutationInput, {nullable:false}) @Type(() => PipelineStageUpdateManyMutationInput) + @ValidateNested({each: true}) + @Type(() => PipelineStageUpdateManyMutationInput) data!: PipelineStageUpdateManyMutationInput; @Field(() => PipelineStageWhereInput, {nullable:true}) diff --git a/server/src/core/@generated/pipeline-stage/update-one-pipeline-stage.args.ts b/server/src/core/@generated/pipeline-stage/update-one-pipeline-stage.args.ts index e21cb0c57b..2a8995dc56 100644 --- a/server/src/core/@generated/pipeline-stage/update-one-pipeline-stage.args.ts +++ b/server/src/core/@generated/pipeline-stage/update-one-pipeline-stage.args.ts @@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { PipelineStageUpdateInput } from './pipeline-stage-update.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; import { PipelineStageWhereUniqueInput } from './pipeline-stage-where-unique.input'; @ArgsType() @@ -9,6 +10,8 @@ export class UpdateOnePipelineStageArgs { @Field(() => PipelineStageUpdateInput, {nullable:false}) @Type(() => PipelineStageUpdateInput) + @ValidateNested({each: true}) + @Type(() => PipelineStageUpdateInput) data!: PipelineStageUpdateInput; @Field(() => PipelineStageWhereUniqueInput, {nullable:false}) diff --git a/server/src/core/@generated/pipeline/create-many-pipeline.args.ts b/server/src/core/@generated/pipeline/create-many-pipeline.args.ts index 705e109524..58d1a1ce76 100644 --- a/server/src/core/@generated/pipeline/create-many-pipeline.args.ts +++ b/server/src/core/@generated/pipeline/create-many-pipeline.args.ts @@ -2,12 +2,15 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { PipelineCreateManyInput } from './pipeline-create-many.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; @ArgsType() export class CreateManyPipelineArgs { @Field(() => [PipelineCreateManyInput], {nullable:false}) @Type(() => PipelineCreateManyInput) + @ValidateNested({each: true}) + @Type(() => PipelineCreateManyInput) data!: Array; @Field(() => Boolean, {nullable:true}) diff --git a/server/src/core/@generated/pipeline/create-one-pipeline.args.ts b/server/src/core/@generated/pipeline/create-one-pipeline.args.ts index 0ed8f0aa93..d27b30083d 100644 --- a/server/src/core/@generated/pipeline/create-one-pipeline.args.ts +++ b/server/src/core/@generated/pipeline/create-one-pipeline.args.ts @@ -2,11 +2,14 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { PipelineCreateInput } from './pipeline-create.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; @ArgsType() export class CreateOnePipelineArgs { @Field(() => PipelineCreateInput, {nullable:false}) @Type(() => PipelineCreateInput) + @ValidateNested({each: true}) + @Type(() => PipelineCreateInput) data!: PipelineCreateInput; } diff --git a/server/src/core/@generated/pipeline/pipeline-count-aggregate.input.ts b/server/src/core/@generated/pipeline/pipeline-count-aggregate.input.ts index c7094f2777..1e72ef1b31 100644 --- a/server/src/core/@generated/pipeline/pipeline-count-aggregate.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-count-aggregate.input.ts @@ -8,15 +8,6 @@ export class PipelineCountAggregateInput { @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}) name?: true; @@ -29,6 +20,15 @@ export class PipelineCountAggregateInput { @HideField() workspaceId?: true; + @HideField() + deletedAt?: true; + + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; + @Field(() => Boolean, {nullable:true}) _all?: true; } diff --git a/server/src/core/@generated/pipeline/pipeline-count-aggregate.output.ts b/server/src/core/@generated/pipeline/pipeline-count-aggregate.output.ts index bdceaf0d66..e312c63e7d 100644 --- a/server/src/core/@generated/pipeline/pipeline-count-aggregate.output.ts +++ b/server/src/core/@generated/pipeline/pipeline-count-aggregate.output.ts @@ -9,15 +9,6 @@ export class PipelineCountAggregate { @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}) name!: number; @@ -30,6 +21,15 @@ export class PipelineCountAggregate { @HideField() workspaceId!: number; + @HideField() + deletedAt!: number; + + @Field(() => Int, {nullable:false}) + createdAt!: number; + + @Field(() => Int, {nullable:false}) + updatedAt!: number; + @Field(() => Int, {nullable:false}) _all!: number; } diff --git a/server/src/core/@generated/pipeline/pipeline-count-order-by-aggregate.input.ts b/server/src/core/@generated/pipeline/pipeline-count-order-by-aggregate.input.ts index eac8e7feb0..b3ad6d20a6 100644 --- a/server/src/core/@generated/pipeline/pipeline-count-order-by-aggregate.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-count-order-by-aggregate.input.ts @@ -9,15 +9,6 @@ export class PipelineCountOrderByAggregateInput { @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}) name?: keyof typeof SortOrder; @@ -29,4 +20,13 @@ export class PipelineCountOrderByAggregateInput { @HideField() workspaceId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/pipeline/pipeline-create-many-workspace.input.ts b/server/src/core/@generated/pipeline/pipeline-create-many-workspace.input.ts index fc0ec4afc3..c571e668c5 100644 --- a/server/src/core/@generated/pipeline/pipeline-create-many-workspace.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-create-many-workspace.input.ts @@ -1,28 +1,34 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; +import { HideField } from '@nestjs/graphql'; @InputType() export class PipelineCreateManyWorkspaceInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + name!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + icon!: string; + + @Field(() => PipelineProgressableType, {nullable:true}) + pipelineProgressableType?: keyof typeof PipelineProgressableType; + + @HideField() + deletedAt?: Date | 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}) - name!: string; - - @Field(() => String, {nullable:false}) - icon!: string; - - @Field(() => PipelineProgressableType, {nullable:true}) - pipelineProgressableType?: keyof typeof PipelineProgressableType; } diff --git a/server/src/core/@generated/pipeline/pipeline-create-many.input.ts b/server/src/core/@generated/pipeline/pipeline-create-many.input.ts index 252a17f02c..d492f1d68b 100644 --- a/server/src/core/@generated/pipeline/pipeline-create-many.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-create-many.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; import { HideField } from '@nestjs/graphql'; @@ -7,21 +8,16 @@ import { HideField } from '@nestjs/graphql'; export class PipelineCreateManyInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() 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}) + @Validator.IsString() name!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() icon!: string; @Field(() => PipelineProgressableType, {nullable:true}) @@ -29,4 +25,13 @@ export class PipelineCreateManyInput { @HideField() workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/pipeline/pipeline-create-without-pipeline-progresses.input.ts b/server/src/core/@generated/pipeline/pipeline-create-without-pipeline-progresses.input.ts index 59a1d029f5..d6caae5ead 100644 --- a/server/src/core/@generated/pipeline/pipeline-create-without-pipeline-progresses.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-create-without-pipeline-progresses.input.ts @@ -1,34 +1,39 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; +import { HideField } from '@nestjs/graphql'; import { PipelineStageCreateNestedManyWithoutPipelineInput } from '../pipeline-stage/pipeline-stage-create-nested-many-without-pipeline.input'; import { WorkspaceCreateNestedOneWithoutPipelinesInput } from '../workspace/workspace-create-nested-one-without-pipelines.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class PipelineCreateWithoutPipelineProgressesInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + name!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + icon!: string; + + @Field(() => PipelineProgressableType, {nullable:true}) + pipelineProgressableType?: keyof typeof PipelineProgressableType; + + @HideField() + deletedAt?: Date | 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}) - name!: string; - - @Field(() => String, {nullable:false}) - icon!: string; - - @Field(() => PipelineProgressableType, {nullable:true}) - pipelineProgressableType?: keyof typeof PipelineProgressableType; - @Field(() => PipelineStageCreateNestedManyWithoutPipelineInput, {nullable:true}) pipelineStages?: PipelineStageCreateNestedManyWithoutPipelineInput; diff --git a/server/src/core/@generated/pipeline/pipeline-create-without-pipeline-stages.input.ts b/server/src/core/@generated/pipeline/pipeline-create-without-pipeline-stages.input.ts index d17e0bbd21..6d70864f77 100644 --- a/server/src/core/@generated/pipeline/pipeline-create-without-pipeline-stages.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-create-without-pipeline-stages.input.ts @@ -1,34 +1,39 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; +import { HideField } from '@nestjs/graphql'; import { PipelineProgressCreateNestedManyWithoutPipelineInput } from '../pipeline-progress/pipeline-progress-create-nested-many-without-pipeline.input'; import { WorkspaceCreateNestedOneWithoutPipelinesInput } from '../workspace/workspace-create-nested-one-without-pipelines.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class PipelineCreateWithoutPipelineStagesInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + name!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + icon!: string; + + @Field(() => PipelineProgressableType, {nullable:true}) + pipelineProgressableType?: keyof typeof PipelineProgressableType; + + @HideField() + deletedAt?: Date | 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}) - name!: string; - - @Field(() => String, {nullable:false}) - icon!: string; - - @Field(() => PipelineProgressableType, {nullable:true}) - pipelineProgressableType?: keyof typeof PipelineProgressableType; - @Field(() => PipelineProgressCreateNestedManyWithoutPipelineInput, {nullable:true}) pipelineProgresses?: PipelineProgressCreateNestedManyWithoutPipelineInput; diff --git a/server/src/core/@generated/pipeline/pipeline-create-without-workspace.input.ts b/server/src/core/@generated/pipeline/pipeline-create-without-workspace.input.ts index aabaa251a9..86162402e3 100644 --- a/server/src/core/@generated/pipeline/pipeline-create-without-workspace.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-create-without-workspace.input.ts @@ -1,6 +1,8 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; +import { HideField } from '@nestjs/graphql'; import { PipelineStageCreateNestedManyWithoutPipelineInput } from '../pipeline-stage/pipeline-stage-create-nested-many-without-pipeline.input'; import { PipelineProgressCreateNestedManyWithoutPipelineInput } from '../pipeline-progress/pipeline-progress-create-nested-many-without-pipeline.input'; @@ -8,26 +10,30 @@ import { PipelineProgressCreateNestedManyWithoutPipelineInput } from '../pipelin export class PipelineCreateWithoutWorkspaceInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + name!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + icon!: string; + + @Field(() => PipelineProgressableType, {nullable:true}) + pipelineProgressableType?: keyof typeof PipelineProgressableType; + + @HideField() + deletedAt?: Date | 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}) - name!: string; - - @Field(() => String, {nullable:false}) - icon!: string; - - @Field(() => PipelineProgressableType, {nullable:true}) - pipelineProgressableType?: keyof typeof PipelineProgressableType; - @Field(() => PipelineStageCreateNestedManyWithoutPipelineInput, {nullable:true}) pipelineStages?: PipelineStageCreateNestedManyWithoutPipelineInput; diff --git a/server/src/core/@generated/pipeline/pipeline-create.input.ts b/server/src/core/@generated/pipeline/pipeline-create.input.ts index f49c59cb46..c55a787ddd 100644 --- a/server/src/core/@generated/pipeline/pipeline-create.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-create.input.ts @@ -1,35 +1,40 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; +import { HideField } from '@nestjs/graphql'; import { PipelineStageCreateNestedManyWithoutPipelineInput } from '../pipeline-stage/pipeline-stage-create-nested-many-without-pipeline.input'; import { PipelineProgressCreateNestedManyWithoutPipelineInput } from '../pipeline-progress/pipeline-progress-create-nested-many-without-pipeline.input'; import { WorkspaceCreateNestedOneWithoutPipelinesInput } from '../workspace/workspace-create-nested-one-without-pipelines.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class PipelineCreateInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + name!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + icon!: string; + + @Field(() => PipelineProgressableType, {nullable:true}) + pipelineProgressableType?: keyof typeof PipelineProgressableType; + + @HideField() + deletedAt?: Date | 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}) - name!: string; - - @Field(() => String, {nullable:false}) - icon!: string; - - @Field(() => PipelineProgressableType, {nullable:true}) - pipelineProgressableType?: keyof typeof PipelineProgressableType; - @Field(() => PipelineStageCreateNestedManyWithoutPipelineInput, {nullable:true}) pipelineStages?: PipelineStageCreateNestedManyWithoutPipelineInput; diff --git a/server/src/core/@generated/pipeline/pipeline-group-by.output.ts b/server/src/core/@generated/pipeline/pipeline-group-by.output.ts index 4ff53ff4bf..40a2fc00bb 100644 --- a/server/src/core/@generated/pipeline/pipeline-group-by.output.ts +++ b/server/src/core/@generated/pipeline/pipeline-group-by.output.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; import { HideField } from '@nestjs/graphql'; import { PipelineCountAggregate } from './pipeline-count-aggregate.output'; @@ -10,21 +11,16 @@ import { PipelineMaxAggregate } from './pipeline-max-aggregate.output'; export class PipelineGroupBy { @Field(() => String, {nullable:false}) + @Validator.IsString() + @Validator.IsOptional() 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}) + @Validator.IsString() name!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() icon!: string; @Field(() => PipelineProgressableType, {nullable:false}) @@ -33,6 +29,15 @@ export class PipelineGroupBy { @HideField() workspaceId!: string; + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:false}) + createdAt!: Date | string; + + @Field(() => Date, {nullable:false}) + updatedAt!: Date | string; + @Field(() => PipelineCountAggregate, {nullable:true}) _count?: PipelineCountAggregate; diff --git a/server/src/core/@generated/pipeline/pipeline-max-aggregate.input.ts b/server/src/core/@generated/pipeline/pipeline-max-aggregate.input.ts index c8be89ec75..5cbaed04a5 100644 --- a/server/src/core/@generated/pipeline/pipeline-max-aggregate.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-max-aggregate.input.ts @@ -8,15 +8,6 @@ export class PipelineMaxAggregateInput { @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}) name?: true; @@ -28,4 +19,13 @@ export class PipelineMaxAggregateInput { @HideField() workspaceId?: true; + + @HideField() + deletedAt?: true; + + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; } diff --git a/server/src/core/@generated/pipeline/pipeline-max-aggregate.output.ts b/server/src/core/@generated/pipeline/pipeline-max-aggregate.output.ts index 77ff787ff3..b8820ca68d 100644 --- a/server/src/core/@generated/pipeline/pipeline-max-aggregate.output.ts +++ b/server/src/core/@generated/pipeline/pipeline-max-aggregate.output.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; import { HideField } from '@nestjs/graphql'; @@ -7,21 +8,16 @@ import { HideField } from '@nestjs/graphql'; export class PipelineMaxAggregate { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() 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}) + @Validator.IsString() name?: string; @Field(() => String, {nullable:true}) + @Validator.IsString() icon?: string; @Field(() => PipelineProgressableType, {nullable:true}) @@ -29,4 +25,13 @@ export class PipelineMaxAggregate { @HideField() workspaceId?: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/pipeline/pipeline-max-order-by-aggregate.input.ts b/server/src/core/@generated/pipeline/pipeline-max-order-by-aggregate.input.ts index 55a6fbc1f9..ce13d8793e 100644 --- a/server/src/core/@generated/pipeline/pipeline-max-order-by-aggregate.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-max-order-by-aggregate.input.ts @@ -9,15 +9,6 @@ export class PipelineMaxOrderByAggregateInput { @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}) name?: keyof typeof SortOrder; @@ -29,4 +20,13 @@ export class PipelineMaxOrderByAggregateInput { @HideField() workspaceId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/pipeline/pipeline-min-aggregate.input.ts b/server/src/core/@generated/pipeline/pipeline-min-aggregate.input.ts index 761d38024f..cac27c8b5a 100644 --- a/server/src/core/@generated/pipeline/pipeline-min-aggregate.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-min-aggregate.input.ts @@ -8,15 +8,6 @@ export class PipelineMinAggregateInput { @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}) name?: true; @@ -28,4 +19,13 @@ export class PipelineMinAggregateInput { @HideField() workspaceId?: true; + + @HideField() + deletedAt?: true; + + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; } diff --git a/server/src/core/@generated/pipeline/pipeline-min-aggregate.output.ts b/server/src/core/@generated/pipeline/pipeline-min-aggregate.output.ts index e498cb1e0d..a772c42d28 100644 --- a/server/src/core/@generated/pipeline/pipeline-min-aggregate.output.ts +++ b/server/src/core/@generated/pipeline/pipeline-min-aggregate.output.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; import { HideField } from '@nestjs/graphql'; @@ -7,21 +8,16 @@ import { HideField } from '@nestjs/graphql'; export class PipelineMinAggregate { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() 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}) + @Validator.IsString() name?: string; @Field(() => String, {nullable:true}) + @Validator.IsString() icon?: string; @Field(() => PipelineProgressableType, {nullable:true}) @@ -29,4 +25,13 @@ export class PipelineMinAggregate { @HideField() workspaceId?: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/pipeline/pipeline-min-order-by-aggregate.input.ts b/server/src/core/@generated/pipeline/pipeline-min-order-by-aggregate.input.ts index d15362c64e..c362c93415 100644 --- a/server/src/core/@generated/pipeline/pipeline-min-order-by-aggregate.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-min-order-by-aggregate.input.ts @@ -9,15 +9,6 @@ export class PipelineMinOrderByAggregateInput { @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}) name?: keyof typeof SortOrder; @@ -29,4 +20,13 @@ export class PipelineMinOrderByAggregateInput { @HideField() workspaceId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/pipeline/pipeline-order-by-with-aggregation.input.ts b/server/src/core/@generated/pipeline/pipeline-order-by-with-aggregation.input.ts index 7d60a8238c..c9791c513d 100644 --- a/server/src/core/@generated/pipeline/pipeline-order-by-with-aggregation.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-order-by-with-aggregation.input.ts @@ -12,15 +12,6 @@ export class PipelineOrderByWithAggregationInput { @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}) name?: keyof typeof SortOrder; @@ -33,6 +24,15 @@ export class PipelineOrderByWithAggregationInput { @HideField() workspaceId?: keyof typeof SortOrder; + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; + @Field(() => PipelineCountOrderByAggregateInput, {nullable:true}) _count?: PipelineCountOrderByAggregateInput; diff --git a/server/src/core/@generated/pipeline/pipeline-order-by-with-relation.input.ts b/server/src/core/@generated/pipeline/pipeline-order-by-with-relation.input.ts index 185626f359..bfbfa33fd2 100644 --- a/server/src/core/@generated/pipeline/pipeline-order-by-with-relation.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-order-by-with-relation.input.ts @@ -12,15 +12,6 @@ export class PipelineOrderByWithRelationInput { @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}) name?: keyof typeof SortOrder; @@ -33,6 +24,15 @@ export class PipelineOrderByWithRelationInput { @HideField() workspaceId?: keyof typeof SortOrder; + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; + @Field(() => PipelineStageOrderByRelationAggregateInput, {nullable:true}) pipelineStages?: PipelineStageOrderByRelationAggregateInput; diff --git a/server/src/core/@generated/pipeline/pipeline-scalar-field.enum.ts b/server/src/core/@generated/pipeline/pipeline-scalar-field.enum.ts index 37ce4efb21..dbea46bef5 100644 --- a/server/src/core/@generated/pipeline/pipeline-scalar-field.enum.ts +++ b/server/src/core/@generated/pipeline/pipeline-scalar-field.enum.ts @@ -2,13 +2,13 @@ import { registerEnumType } from '@nestjs/graphql'; export enum PipelineScalarFieldEnum { id = "id", - createdAt = "createdAt", - updatedAt = "updatedAt", - deletedAt = "deletedAt", name = "name", icon = "icon", pipelineProgressableType = "pipelineProgressableType", - workspaceId = "workspaceId" + workspaceId = "workspaceId", + deletedAt = "deletedAt", + createdAt = "createdAt", + updatedAt = "updatedAt" } diff --git a/server/src/core/@generated/pipeline/pipeline-scalar-where-with-aggregates.input.ts b/server/src/core/@generated/pipeline/pipeline-scalar-where-with-aggregates.input.ts index 74e33b7c6c..d511eef623 100644 --- a/server/src/core/@generated/pipeline/pipeline-scalar-where-with-aggregates.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-scalar-where-with-aggregates.input.ts @@ -1,10 +1,10 @@ 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 { EnumPipelineProgressableTypeWithAggregatesFilter } from '../prisma/enum-pipeline-progressable-type-with-aggregates-filter.input'; import { HideField } from '@nestjs/graphql'; +import { DateTimeNullableWithAggregatesFilter } from '../prisma/date-time-nullable-with-aggregates-filter.input'; +import { DateTimeWithAggregatesFilter } from '../prisma/date-time-with-aggregates-filter.input'; @InputType() export class PipelineScalarWhereWithAggregatesInput { @@ -21,15 +21,6 @@ export class PipelineScalarWhereWithAggregatesInput { @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}) name?: StringWithAggregatesFilter; @@ -41,4 +32,13 @@ export class PipelineScalarWhereWithAggregatesInput { @HideField() workspaceId?: StringWithAggregatesFilter; + + @HideField() + deletedAt?: DateTimeNullableWithAggregatesFilter; + + @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) + createdAt?: DateTimeWithAggregatesFilter; + + @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) + updatedAt?: DateTimeWithAggregatesFilter; } diff --git a/server/src/core/@generated/pipeline/pipeline-scalar-where.input.ts b/server/src/core/@generated/pipeline/pipeline-scalar-where.input.ts index 6e88c9dd11..1461d9b9ed 100644 --- a/server/src/core/@generated/pipeline/pipeline-scalar-where.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-scalar-where.input.ts @@ -1,10 +1,10 @@ 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 { EnumPipelineProgressableTypeFilter } from '../prisma/enum-pipeline-progressable-type-filter.input'; import { HideField } from '@nestjs/graphql'; +import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; +import { DateTimeFilter } from '../prisma/date-time-filter.input'; @InputType() export class PipelineScalarWhereInput { @@ -21,15 +21,6 @@ export class PipelineScalarWhereInput { @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}) name?: StringFilter; @@ -41,4 +32,13 @@ export class PipelineScalarWhereInput { @HideField() workspaceId?: StringFilter; + + @HideField() + deletedAt?: DateTimeNullableFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + createdAt?: DateTimeFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + updatedAt?: DateTimeFilter; } diff --git a/server/src/core/@generated/pipeline/pipeline-unchecked-create-without-pipeline-progresses.input.ts b/server/src/core/@generated/pipeline/pipeline-unchecked-create-without-pipeline-progresses.input.ts index 138d5ef23f..53d286c975 100644 --- a/server/src/core/@generated/pipeline/pipeline-unchecked-create-without-pipeline-progresses.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-unchecked-create-without-pipeline-progresses.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; import { HideField } from '@nestjs/graphql'; import { PipelineStageUncheckedCreateNestedManyWithoutPipelineInput } from '../pipeline-stage/pipeline-stage-unchecked-create-nested-many-without-pipeline.input'; @@ -8,21 +9,16 @@ import { PipelineStageUncheckedCreateNestedManyWithoutPipelineInput } from '../p export class PipelineUncheckedCreateWithoutPipelineProgressesInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() 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}) + @Validator.IsString() name!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() icon!: string; @Field(() => PipelineProgressableType, {nullable:true}) @@ -31,6 +27,15 @@ export class PipelineUncheckedCreateWithoutPipelineProgressesInput { @HideField() workspaceId!: string; + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; + @Field(() => PipelineStageUncheckedCreateNestedManyWithoutPipelineInput, {nullable:true}) pipelineStages?: PipelineStageUncheckedCreateNestedManyWithoutPipelineInput; } diff --git a/server/src/core/@generated/pipeline/pipeline-unchecked-create-without-pipeline-stages.input.ts b/server/src/core/@generated/pipeline/pipeline-unchecked-create-without-pipeline-stages.input.ts index 5acc398516..35ebb9c9a9 100644 --- a/server/src/core/@generated/pipeline/pipeline-unchecked-create-without-pipeline-stages.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-unchecked-create-without-pipeline-stages.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; import { HideField } from '@nestjs/graphql'; import { PipelineProgressUncheckedCreateNestedManyWithoutPipelineInput } from '../pipeline-progress/pipeline-progress-unchecked-create-nested-many-without-pipeline.input'; @@ -8,21 +9,16 @@ import { PipelineProgressUncheckedCreateNestedManyWithoutPipelineInput } from '. export class PipelineUncheckedCreateWithoutPipelineStagesInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() 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}) + @Validator.IsString() name!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() icon!: string; @Field(() => PipelineProgressableType, {nullable:true}) @@ -31,6 +27,15 @@ export class PipelineUncheckedCreateWithoutPipelineStagesInput { @HideField() workspaceId!: string; + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; + @Field(() => PipelineProgressUncheckedCreateNestedManyWithoutPipelineInput, {nullable:true}) pipelineProgresses?: PipelineProgressUncheckedCreateNestedManyWithoutPipelineInput; } diff --git a/server/src/core/@generated/pipeline/pipeline-unchecked-create-without-workspace.input.ts b/server/src/core/@generated/pipeline/pipeline-unchecked-create-without-workspace.input.ts index cce8b56b5e..bad372d6f9 100644 --- a/server/src/core/@generated/pipeline/pipeline-unchecked-create-without-workspace.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-unchecked-create-without-workspace.input.ts @@ -1,6 +1,8 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; +import { HideField } from '@nestjs/graphql'; import { PipelineStageUncheckedCreateNestedManyWithoutPipelineInput } from '../pipeline-stage/pipeline-stage-unchecked-create-nested-many-without-pipeline.input'; import { PipelineProgressUncheckedCreateNestedManyWithoutPipelineInput } from '../pipeline-progress/pipeline-progress-unchecked-create-nested-many-without-pipeline.input'; @@ -8,26 +10,30 @@ import { PipelineProgressUncheckedCreateNestedManyWithoutPipelineInput } from '. export class PipelineUncheckedCreateWithoutWorkspaceInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + name!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + icon!: string; + + @Field(() => PipelineProgressableType, {nullable:true}) + pipelineProgressableType?: keyof typeof PipelineProgressableType; + + @HideField() + deletedAt?: Date | 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}) - name!: string; - - @Field(() => String, {nullable:false}) - icon!: string; - - @Field(() => PipelineProgressableType, {nullable:true}) - pipelineProgressableType?: keyof typeof PipelineProgressableType; - @Field(() => PipelineStageUncheckedCreateNestedManyWithoutPipelineInput, {nullable:true}) pipelineStages?: PipelineStageUncheckedCreateNestedManyWithoutPipelineInput; diff --git a/server/src/core/@generated/pipeline/pipeline-unchecked-create.input.ts b/server/src/core/@generated/pipeline/pipeline-unchecked-create.input.ts index ea1c9ea4c6..a7f77316b0 100644 --- a/server/src/core/@generated/pipeline/pipeline-unchecked-create.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-unchecked-create.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum'; import { HideField } from '@nestjs/graphql'; import { PipelineStageUncheckedCreateNestedManyWithoutPipelineInput } from '../pipeline-stage/pipeline-stage-unchecked-create-nested-many-without-pipeline.input'; @@ -9,21 +10,16 @@ import { PipelineProgressUncheckedCreateNestedManyWithoutPipelineInput } from '. export class PipelineUncheckedCreateInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() 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}) + @Validator.IsString() name!: string; @Field(() => String, {nullable:false}) + @Validator.IsString() icon!: string; @Field(() => PipelineProgressableType, {nullable:true}) @@ -32,6 +28,15 @@ export class PipelineUncheckedCreateInput { @HideField() workspaceId!: string; + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; + @Field(() => PipelineStageUncheckedCreateNestedManyWithoutPipelineInput, {nullable:true}) pipelineStages?: PipelineStageUncheckedCreateNestedManyWithoutPipelineInput; diff --git a/server/src/core/@generated/pipeline/pipeline-unchecked-update-many-without-pipelines.input.ts b/server/src/core/@generated/pipeline/pipeline-unchecked-update-many-without-pipelines.input.ts index 4557e7212a..a648ecd273 100644 --- a/server/src/core/@generated/pipeline/pipeline-unchecked-update-many-without-pipelines.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-unchecked-update-many-without-pipelines.input.ts @@ -1,9 +1,10 @@ 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 { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class PipelineUncheckedUpdateManyWithoutPipelinesInput { @@ -11,15 +12,6 @@ export class PipelineUncheckedUpdateManyWithoutPipelinesInput { @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}) name?: StringFieldUpdateOperationsInput; @@ -28,4 +20,13 @@ export class PipelineUncheckedUpdateManyWithoutPipelinesInput { @Field(() => EnumPipelineProgressableTypeFieldUpdateOperationsInput, {nullable:true}) pipelineProgressableType?: EnumPipelineProgressableTypeFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/pipeline/pipeline-unchecked-update-many.input.ts b/server/src/core/@generated/pipeline/pipeline-unchecked-update-many.input.ts index f22ea056fe..a8c45c481f 100644 --- a/server/src/core/@generated/pipeline/pipeline-unchecked-update-many.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-unchecked-update-many.input.ts @@ -1,10 +1,10 @@ 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 { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class PipelineUncheckedUpdateManyInput { @@ -12,15 +12,6 @@ export class PipelineUncheckedUpdateManyInput { @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}) name?: StringFieldUpdateOperationsInput; @@ -32,4 +23,13 @@ export class PipelineUncheckedUpdateManyInput { @HideField() workspaceId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/pipeline/pipeline-unchecked-update-without-pipeline-progresses.input.ts b/server/src/core/@generated/pipeline/pipeline-unchecked-update-without-pipeline-progresses.input.ts index 4a52dfcb8c..20b84b7545 100644 --- a/server/src/core/@generated/pipeline/pipeline-unchecked-update-without-pipeline-progresses.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-unchecked-update-without-pipeline-progresses.input.ts @@ -1,10 +1,10 @@ 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 { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { PipelineStageUncheckedUpdateManyWithoutPipelineNestedInput } from '../pipeline-stage/pipeline-stage-unchecked-update-many-without-pipeline-nested.input'; @InputType() @@ -13,15 +13,6 @@ export class PipelineUncheckedUpdateWithoutPipelineProgressesInput { @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}) name?: StringFieldUpdateOperationsInput; @@ -34,6 +25,15 @@ export class PipelineUncheckedUpdateWithoutPipelineProgressesInput { @HideField() workspaceId?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => PipelineStageUncheckedUpdateManyWithoutPipelineNestedInput, {nullable:true}) pipelineStages?: PipelineStageUncheckedUpdateManyWithoutPipelineNestedInput; } diff --git a/server/src/core/@generated/pipeline/pipeline-unchecked-update-without-pipeline-stages.input.ts b/server/src/core/@generated/pipeline/pipeline-unchecked-update-without-pipeline-stages.input.ts index 7ed8b4284d..ed0d478ce5 100644 --- a/server/src/core/@generated/pipeline/pipeline-unchecked-update-without-pipeline-stages.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-unchecked-update-without-pipeline-stages.input.ts @@ -1,10 +1,10 @@ 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 { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { PipelineProgressUncheckedUpdateManyWithoutPipelineNestedInput } from '../pipeline-progress/pipeline-progress-unchecked-update-many-without-pipeline-nested.input'; @InputType() @@ -13,15 +13,6 @@ export class PipelineUncheckedUpdateWithoutPipelineStagesInput { @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}) name?: StringFieldUpdateOperationsInput; @@ -34,6 +25,15 @@ export class PipelineUncheckedUpdateWithoutPipelineStagesInput { @HideField() workspaceId?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => PipelineProgressUncheckedUpdateManyWithoutPipelineNestedInput, {nullable:true}) pipelineProgresses?: PipelineProgressUncheckedUpdateManyWithoutPipelineNestedInput; } diff --git a/server/src/core/@generated/pipeline/pipeline-unchecked-update-without-workspace.input.ts b/server/src/core/@generated/pipeline/pipeline-unchecked-update-without-workspace.input.ts index fed2e32dbe..3d1392cf9f 100644 --- a/server/src/core/@generated/pipeline/pipeline-unchecked-update-without-workspace.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-unchecked-update-without-workspace.input.ts @@ -1,9 +1,10 @@ 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 { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { PipelineStageUncheckedUpdateManyWithoutPipelineNestedInput } from '../pipeline-stage/pipeline-stage-unchecked-update-many-without-pipeline-nested.input'; import { PipelineProgressUncheckedUpdateManyWithoutPipelineNestedInput } from '../pipeline-progress/pipeline-progress-unchecked-update-many-without-pipeline-nested.input'; @@ -13,15 +14,6 @@ export class PipelineUncheckedUpdateWithoutWorkspaceInput { @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}) name?: StringFieldUpdateOperationsInput; @@ -31,6 +23,15 @@ export class PipelineUncheckedUpdateWithoutWorkspaceInput { @Field(() => EnumPipelineProgressableTypeFieldUpdateOperationsInput, {nullable:true}) pipelineProgressableType?: EnumPipelineProgressableTypeFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => PipelineStageUncheckedUpdateManyWithoutPipelineNestedInput, {nullable:true}) pipelineStages?: PipelineStageUncheckedUpdateManyWithoutPipelineNestedInput; diff --git a/server/src/core/@generated/pipeline/pipeline-unchecked-update.input.ts b/server/src/core/@generated/pipeline/pipeline-unchecked-update.input.ts index 08a3984f4a..da6b09a1e9 100644 --- a/server/src/core/@generated/pipeline/pipeline-unchecked-update.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-unchecked-update.input.ts @@ -1,10 +1,10 @@ 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 { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { PipelineStageUncheckedUpdateManyWithoutPipelineNestedInput } from '../pipeline-stage/pipeline-stage-unchecked-update-many-without-pipeline-nested.input'; import { PipelineProgressUncheckedUpdateManyWithoutPipelineNestedInput } from '../pipeline-progress/pipeline-progress-unchecked-update-many-without-pipeline-nested.input'; @@ -14,15 +14,6 @@ export class PipelineUncheckedUpdateInput { @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}) name?: StringFieldUpdateOperationsInput; @@ -35,6 +26,15 @@ export class PipelineUncheckedUpdateInput { @HideField() workspaceId?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => PipelineStageUncheckedUpdateManyWithoutPipelineNestedInput, {nullable:true}) pipelineStages?: PipelineStageUncheckedUpdateManyWithoutPipelineNestedInput; diff --git a/server/src/core/@generated/pipeline/pipeline-update-many-mutation.input.ts b/server/src/core/@generated/pipeline/pipeline-update-many-mutation.input.ts index 3005ea31dd..aa48ef072f 100644 --- a/server/src/core/@generated/pipeline/pipeline-update-many-mutation.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-update-many-mutation.input.ts @@ -1,9 +1,10 @@ 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 { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class PipelineUpdateManyMutationInput { @@ -11,15 +12,6 @@ export class PipelineUpdateManyMutationInput { @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}) name?: StringFieldUpdateOperationsInput; @@ -28,4 +20,13 @@ export class PipelineUpdateManyMutationInput { @Field(() => EnumPipelineProgressableTypeFieldUpdateOperationsInput, {nullable:true}) pipelineProgressableType?: EnumPipelineProgressableTypeFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/pipeline/pipeline-update-without-pipeline-progresses.input.ts b/server/src/core/@generated/pipeline/pipeline-update-without-pipeline-progresses.input.ts index 662d43ad30..5f7bbc7f99 100644 --- a/server/src/core/@generated/pipeline/pipeline-update-without-pipeline-progresses.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-update-without-pipeline-progresses.input.ts @@ -1,12 +1,12 @@ 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 { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { PipelineStageUpdateManyWithoutPipelineNestedInput } from '../pipeline-stage/pipeline-stage-update-many-without-pipeline-nested.input'; import { WorkspaceUpdateOneRequiredWithoutPipelinesNestedInput } from '../workspace/workspace-update-one-required-without-pipelines-nested.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class PipelineUpdateWithoutPipelineProgressesInput { @@ -14,15 +14,6 @@ export class PipelineUpdateWithoutPipelineProgressesInput { @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}) name?: StringFieldUpdateOperationsInput; @@ -32,6 +23,15 @@ export class PipelineUpdateWithoutPipelineProgressesInput { @Field(() => EnumPipelineProgressableTypeFieldUpdateOperationsInput, {nullable:true}) pipelineProgressableType?: EnumPipelineProgressableTypeFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => PipelineStageUpdateManyWithoutPipelineNestedInput, {nullable:true}) pipelineStages?: PipelineStageUpdateManyWithoutPipelineNestedInput; diff --git a/server/src/core/@generated/pipeline/pipeline-update-without-pipeline-stages.input.ts b/server/src/core/@generated/pipeline/pipeline-update-without-pipeline-stages.input.ts index fc904a4445..82f8b7bcf6 100644 --- a/server/src/core/@generated/pipeline/pipeline-update-without-pipeline-stages.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-update-without-pipeline-stages.input.ts @@ -1,12 +1,12 @@ 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 { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { PipelineProgressUpdateManyWithoutPipelineNestedInput } from '../pipeline-progress/pipeline-progress-update-many-without-pipeline-nested.input'; import { WorkspaceUpdateOneRequiredWithoutPipelinesNestedInput } from '../workspace/workspace-update-one-required-without-pipelines-nested.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class PipelineUpdateWithoutPipelineStagesInput { @@ -14,15 +14,6 @@ export class PipelineUpdateWithoutPipelineStagesInput { @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}) name?: StringFieldUpdateOperationsInput; @@ -32,6 +23,15 @@ export class PipelineUpdateWithoutPipelineStagesInput { @Field(() => EnumPipelineProgressableTypeFieldUpdateOperationsInput, {nullable:true}) pipelineProgressableType?: EnumPipelineProgressableTypeFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => PipelineProgressUpdateManyWithoutPipelineNestedInput, {nullable:true}) pipelineProgresses?: PipelineProgressUpdateManyWithoutPipelineNestedInput; diff --git a/server/src/core/@generated/pipeline/pipeline-update-without-workspace.input.ts b/server/src/core/@generated/pipeline/pipeline-update-without-workspace.input.ts index c334430833..da8c67edb6 100644 --- a/server/src/core/@generated/pipeline/pipeline-update-without-workspace.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-update-without-workspace.input.ts @@ -1,9 +1,10 @@ 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 { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { PipelineStageUpdateManyWithoutPipelineNestedInput } from '../pipeline-stage/pipeline-stage-update-many-without-pipeline-nested.input'; import { PipelineProgressUpdateManyWithoutPipelineNestedInput } from '../pipeline-progress/pipeline-progress-update-many-without-pipeline-nested.input'; @@ -13,15 +14,6 @@ export class PipelineUpdateWithoutWorkspaceInput { @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}) name?: StringFieldUpdateOperationsInput; @@ -31,6 +23,15 @@ export class PipelineUpdateWithoutWorkspaceInput { @Field(() => EnumPipelineProgressableTypeFieldUpdateOperationsInput, {nullable:true}) pipelineProgressableType?: EnumPipelineProgressableTypeFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => PipelineStageUpdateManyWithoutPipelineNestedInput, {nullable:true}) pipelineStages?: PipelineStageUpdateManyWithoutPipelineNestedInput; diff --git a/server/src/core/@generated/pipeline/pipeline-update.input.ts b/server/src/core/@generated/pipeline/pipeline-update.input.ts index c5b1ba82d2..efaf18cca6 100644 --- a/server/src/core/@generated/pipeline/pipeline-update.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-update.input.ts @@ -1,13 +1,13 @@ 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 { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { PipelineStageUpdateManyWithoutPipelineNestedInput } from '../pipeline-stage/pipeline-stage-update-many-without-pipeline-nested.input'; import { PipelineProgressUpdateManyWithoutPipelineNestedInput } from '../pipeline-progress/pipeline-progress-update-many-without-pipeline-nested.input'; import { WorkspaceUpdateOneRequiredWithoutPipelinesNestedInput } from '../workspace/workspace-update-one-required-without-pipelines-nested.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class PipelineUpdateInput { @@ -15,15 +15,6 @@ export class PipelineUpdateInput { @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}) name?: StringFieldUpdateOperationsInput; @@ -33,6 +24,15 @@ export class PipelineUpdateInput { @Field(() => EnumPipelineProgressableTypeFieldUpdateOperationsInput, {nullable:true}) pipelineProgressableType?: EnumPipelineProgressableTypeFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => PipelineStageUpdateManyWithoutPipelineNestedInput, {nullable:true}) pipelineStages?: PipelineStageUpdateManyWithoutPipelineNestedInput; diff --git a/server/src/core/@generated/pipeline/pipeline-where-unique.input.ts b/server/src/core/@generated/pipeline/pipeline-where-unique.input.ts index ae529d3ca0..03ccad00b2 100644 --- a/server/src/core/@generated/pipeline/pipeline-where-unique.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-where-unique.input.ts @@ -1,9 +1,12 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; @InputType() export class PipelineWhereUniqueInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; } diff --git a/server/src/core/@generated/pipeline/pipeline-where.input.ts b/server/src/core/@generated/pipeline/pipeline-where.input.ts index 116c62391c..42fb3f43aa 100644 --- a/server/src/core/@generated/pipeline/pipeline-where.input.ts +++ b/server/src/core/@generated/pipeline/pipeline-where.input.ts @@ -1,10 +1,10 @@ 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 { EnumPipelineProgressableTypeFilter } from '../prisma/enum-pipeline-progressable-type-filter.input'; import { HideField } from '@nestjs/graphql'; +import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; +import { DateTimeFilter } from '../prisma/date-time-filter.input'; import { PipelineStageListRelationFilter } from '../pipeline-stage/pipeline-stage-list-relation-filter.input'; import { PipelineProgressListRelationFilter } from '../pipeline-progress/pipeline-progress-list-relation-filter.input'; import { WorkspaceRelationFilter } from '../workspace/workspace-relation-filter.input'; @@ -24,15 +24,6 @@ export class PipelineWhereInput { @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}) name?: StringFilter; @@ -45,6 +36,15 @@ export class PipelineWhereInput { @HideField() workspaceId?: StringFilter; + @HideField() + deletedAt?: DateTimeNullableFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + createdAt?: DateTimeFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + updatedAt?: DateTimeFilter; + @Field(() => PipelineStageListRelationFilter, {nullable:true}) pipelineStages?: PipelineStageListRelationFilter; diff --git a/server/src/core/@generated/pipeline/pipeline.model.ts b/server/src/core/@generated/pipeline/pipeline.model.ts index bbed35c01a..f8a744159b 100644 --- a/server/src/core/@generated/pipeline/pipeline.model.ts +++ b/server/src/core/@generated/pipeline/pipeline.model.ts @@ -14,15 +14,6 @@ export class Pipeline { @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}) name!: string; @@ -35,6 +26,15 @@ export class Pipeline { @HideField() workspaceId!: string; + @HideField() + deletedAt!: Date | null; + + @Field(() => Date, {nullable:false}) + createdAt!: Date; + + @Field(() => Date, {nullable:false}) + updatedAt!: Date; + @Field(() => [PipelineStage], {nullable:true}) pipelineStages?: Array; diff --git a/server/src/core/@generated/pipeline/update-many-pipeline.args.ts b/server/src/core/@generated/pipeline/update-many-pipeline.args.ts index a68aa54a2e..33a24fce20 100644 --- a/server/src/core/@generated/pipeline/update-many-pipeline.args.ts +++ b/server/src/core/@generated/pipeline/update-many-pipeline.args.ts @@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { PipelineUpdateManyMutationInput } from './pipeline-update-many-mutation.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; import { PipelineWhereInput } from './pipeline-where.input'; @ArgsType() @@ -9,6 +10,8 @@ export class UpdateManyPipelineArgs { @Field(() => PipelineUpdateManyMutationInput, {nullable:false}) @Type(() => PipelineUpdateManyMutationInput) + @ValidateNested({each: true}) + @Type(() => PipelineUpdateManyMutationInput) data!: PipelineUpdateManyMutationInput; @Field(() => PipelineWhereInput, {nullable:true}) diff --git a/server/src/core/@generated/pipeline/update-one-pipeline.args.ts b/server/src/core/@generated/pipeline/update-one-pipeline.args.ts index 7f06fd92c3..fea3d76f55 100644 --- a/server/src/core/@generated/pipeline/update-one-pipeline.args.ts +++ b/server/src/core/@generated/pipeline/update-one-pipeline.args.ts @@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { PipelineUpdateInput } from './pipeline-update.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; import { PipelineWhereUniqueInput } from './pipeline-where-unique.input'; @ArgsType() @@ -9,6 +10,8 @@ export class UpdateOnePipelineArgs { @Field(() => PipelineUpdateInput, {nullable:false}) @Type(() => PipelineUpdateInput) + @ValidateNested({each: true}) + @Type(() => PipelineUpdateInput) data!: PipelineUpdateInput; @Field(() => PipelineWhereUniqueInput, {nullable:false}) diff --git a/server/src/core/@generated/refresh-token/create-many-refresh-token.args.ts b/server/src/core/@generated/refresh-token/create-many-refresh-token.args.ts index c668f92fd8..abd1265fb5 100644 --- a/server/src/core/@generated/refresh-token/create-many-refresh-token.args.ts +++ b/server/src/core/@generated/refresh-token/create-many-refresh-token.args.ts @@ -2,12 +2,15 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { RefreshTokenCreateManyInput } from './refresh-token-create-many.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; @ArgsType() export class CreateManyRefreshTokenArgs { @Field(() => [RefreshTokenCreateManyInput], {nullable:false}) @Type(() => RefreshTokenCreateManyInput) + @ValidateNested({each: true}) + @Type(() => RefreshTokenCreateManyInput) data!: Array; @Field(() => Boolean, {nullable:true}) diff --git a/server/src/core/@generated/refresh-token/create-one-refresh-token.args.ts b/server/src/core/@generated/refresh-token/create-one-refresh-token.args.ts index f07f843130..cd6d099e46 100644 --- a/server/src/core/@generated/refresh-token/create-one-refresh-token.args.ts +++ b/server/src/core/@generated/refresh-token/create-one-refresh-token.args.ts @@ -2,11 +2,14 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { RefreshTokenCreateInput } from './refresh-token-create.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; @ArgsType() export class CreateOneRefreshTokenArgs { @Field(() => RefreshTokenCreateInput, {nullable:false}) @Type(() => RefreshTokenCreateInput) + @ValidateNested({each: true}) + @Type(() => RefreshTokenCreateInput) data!: RefreshTokenCreateInput; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-count-aggregate.input.ts b/server/src/core/@generated/refresh-token/refresh-token-count-aggregate.input.ts index a777c4c0b5..3208d8265c 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-count-aggregate.input.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-count-aggregate.input.ts @@ -8,24 +8,24 @@ export class RefreshTokenCountAggregateInput { @Field(() => Boolean, {nullable:true}) id?: true; + @Field(() => Boolean, {nullable:true}) + isRevoked?: true; + + @HideField() + userId?: true; + + @Field(() => Boolean, {nullable:true}) + expiresAt?: true; + + @HideField() + deletedAt?: true; + @Field(() => Boolean, {nullable:true}) createdAt?: true; @Field(() => Boolean, {nullable:true}) updatedAt?: true; - @Field(() => Boolean, {nullable:true}) - isRevoked?: true; - - @Field(() => Boolean, {nullable:true}) - expiresAt?: true; - - @Field(() => Boolean, {nullable:true}) - deletedAt?: true; - - @HideField() - userId?: true; - @Field(() => Boolean, {nullable:true}) _all?: true; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-count-aggregate.output.ts b/server/src/core/@generated/refresh-token/refresh-token-count-aggregate.output.ts index 0c9f1d0322..b67ba1ae30 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-count-aggregate.output.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-count-aggregate.output.ts @@ -9,24 +9,24 @@ export class RefreshTokenCountAggregate { @Field(() => Int, {nullable:false}) id!: number; + @Field(() => Int, {nullable:false}) + isRevoked!: number; + + @HideField() + userId!: number; + + @Field(() => Int, {nullable:false}) + expiresAt!: number; + + @HideField() + deletedAt!: number; + @Field(() => Int, {nullable:false}) createdAt!: number; @Field(() => Int, {nullable:false}) updatedAt!: number; - @Field(() => Int, {nullable:false}) - isRevoked!: number; - - @Field(() => Int, {nullable:false}) - expiresAt!: number; - - @Field(() => Int, {nullable:false}) - deletedAt!: number; - - @HideField() - userId!: number; - @Field(() => Int, {nullable:false}) _all!: number; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-count-order-by-aggregate.input.ts b/server/src/core/@generated/refresh-token/refresh-token-count-order-by-aggregate.input.ts index 44691c5907..78811afb11 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-count-order-by-aggregate.input.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-count-order-by-aggregate.input.ts @@ -9,21 +9,21 @@ export class RefreshTokenCountOrderByAggregateInput { @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}) isRevoked?: keyof typeof SortOrder; + @HideField() + userId?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) expiresAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) + @HideField() deletedAt?: keyof typeof SortOrder; - @HideField() - userId?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-create-many-user.input.ts b/server/src/core/@generated/refresh-token/refresh-token-create-many-user.input.ts index e5865df1c2..b35e71c0ba 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-create-many-user.input.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-create-many-user.input.ts @@ -1,24 +1,30 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; @InputType() export class RefreshTokenCreateManyUserInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + isRevoked?: boolean; + + @Field(() => Date, {nullable:false}) + expiresAt!: Date | string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - - @Field(() => Boolean, {nullable:true}) - isRevoked?: boolean; - - @Field(() => Date, {nullable:false}) - expiresAt!: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-create-many.input.ts b/server/src/core/@generated/refresh-token/refresh-token-create-many.input.ts index b9d642a15b..0434ee36ae 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-create-many.input.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-create-many.input.ts @@ -1,28 +1,33 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @InputType() export class RefreshTokenCreateManyInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + isRevoked?: boolean; + + @HideField() + userId!: string; + + @Field(() => Date, {nullable:false}) + expiresAt!: Date | string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - - @Field(() => Boolean, {nullable:true}) - isRevoked?: boolean; - - @Field(() => Date, {nullable:false}) - expiresAt!: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @HideField() - userId!: string; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-create-without-user.input.ts b/server/src/core/@generated/refresh-token/refresh-token-create-without-user.input.ts index af7d6c9eb6..3ef7c24e96 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-create-without-user.input.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-create-without-user.input.ts @@ -1,24 +1,30 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; @InputType() export class RefreshTokenCreateWithoutUserInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + isRevoked?: boolean; + + @Field(() => Date, {nullable:false}) + expiresAt!: Date | string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - - @Field(() => Boolean, {nullable:true}) - isRevoked?: boolean; - - @Field(() => Date, {nullable:false}) - expiresAt!: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-create.input.ts b/server/src/core/@generated/refresh-token/refresh-token-create.input.ts index 99abf4edb7..23de4057da 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-create.input.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-create.input.ts @@ -1,29 +1,34 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; -import { UserCreateNestedOneWithoutRefreshTokensInput } from '../user/user-create-nested-one-without-refresh-tokens.input'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; +import { UserCreateNestedOneWithoutRefreshTokensInput } from '../user/user-create-nested-one-without-refresh-tokens.input'; @InputType() export class RefreshTokenCreateInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + isRevoked?: boolean; + + @Field(() => Date, {nullable:false}) + expiresAt!: Date | string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Boolean, {nullable:true}) - isRevoked?: boolean; - - @Field(() => Date, {nullable:false}) - expiresAt!: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @HideField() user!: UserCreateNestedOneWithoutRefreshTokensInput; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-group-by.output.ts b/server/src/core/@generated/refresh-token/refresh-token-group-by.output.ts index d2586b0275..c63bbc5c17 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-group-by.output.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-group-by.output.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; import { RefreshTokenCountAggregate } from './refresh-token-count-aggregate.output'; import { RefreshTokenMinAggregate } from './refresh-token-min-aggregate.output'; @@ -9,26 +10,30 @@ import { RefreshTokenMaxAggregate } from './refresh-token-max-aggregate.output'; export class RefreshTokenGroupBy { @Field(() => String, {nullable:false}) + @Validator.IsString() + @Validator.IsOptional() id!: string; + @Field(() => Boolean, {nullable:false}) + @Validator.IsBoolean() + @Validator.IsOptional() + isRevoked!: boolean; + + @HideField() + userId!: string; + + @Field(() => Date, {nullable:false}) + expiresAt!: Date | string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:false}) createdAt!: Date | string; @Field(() => Date, {nullable:false}) updatedAt!: Date | string; - @Field(() => Boolean, {nullable:false}) - isRevoked!: boolean; - - @Field(() => Date, {nullable:false}) - expiresAt!: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @HideField() - userId!: string; - @Field(() => RefreshTokenCountAggregate, {nullable:true}) _count?: RefreshTokenCountAggregate; diff --git a/server/src/core/@generated/refresh-token/refresh-token-max-aggregate.input.ts b/server/src/core/@generated/refresh-token/refresh-token-max-aggregate.input.ts index 21b6299551..a89c0fea4f 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-max-aggregate.input.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-max-aggregate.input.ts @@ -8,21 +8,21 @@ export class RefreshTokenMaxAggregateInput { @Field(() => Boolean, {nullable:true}) id?: true; - @Field(() => Boolean, {nullable:true}) - createdAt?: true; - - @Field(() => Boolean, {nullable:true}) - updatedAt?: true; - @Field(() => Boolean, {nullable:true}) isRevoked?: true; + @HideField() + userId?: true; + @Field(() => Boolean, {nullable:true}) expiresAt?: true; - @Field(() => Boolean, {nullable:true}) + @HideField() deletedAt?: true; - @HideField() - userId?: true; + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-max-aggregate.output.ts b/server/src/core/@generated/refresh-token/refresh-token-max-aggregate.output.ts index c353ed0b29..3a452a2d00 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-max-aggregate.output.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-max-aggregate.output.ts @@ -1,28 +1,33 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @ObjectType() export class RefreshTokenMaxAggregate { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + isRevoked?: boolean; + + @HideField() + userId?: string; + + @Field(() => Date, {nullable:true}) + expiresAt?: Date | string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - - @Field(() => Boolean, {nullable:true}) - isRevoked?: boolean; - - @Field(() => Date, {nullable:true}) - expiresAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @HideField() - userId?: string; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-max-order-by-aggregate.input.ts b/server/src/core/@generated/refresh-token/refresh-token-max-order-by-aggregate.input.ts index 7e79a187bd..e095841335 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-max-order-by-aggregate.input.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-max-order-by-aggregate.input.ts @@ -9,21 +9,21 @@ export class RefreshTokenMaxOrderByAggregateInput { @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}) isRevoked?: keyof typeof SortOrder; + @HideField() + userId?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) expiresAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) + @HideField() deletedAt?: keyof typeof SortOrder; - @HideField() - userId?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-min-aggregate.input.ts b/server/src/core/@generated/refresh-token/refresh-token-min-aggregate.input.ts index 7744c242ac..c91e87efd7 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-min-aggregate.input.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-min-aggregate.input.ts @@ -8,21 +8,21 @@ export class RefreshTokenMinAggregateInput { @Field(() => Boolean, {nullable:true}) id?: true; - @Field(() => Boolean, {nullable:true}) - createdAt?: true; - - @Field(() => Boolean, {nullable:true}) - updatedAt?: true; - @Field(() => Boolean, {nullable:true}) isRevoked?: true; + @HideField() + userId?: true; + @Field(() => Boolean, {nullable:true}) expiresAt?: true; - @Field(() => Boolean, {nullable:true}) + @HideField() deletedAt?: true; - @HideField() - userId?: true; + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-min-aggregate.output.ts b/server/src/core/@generated/refresh-token/refresh-token-min-aggregate.output.ts index d3dede01a7..d3e78a5c72 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-min-aggregate.output.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-min-aggregate.output.ts @@ -1,28 +1,33 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @ObjectType() export class RefreshTokenMinAggregate { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + isRevoked?: boolean; + + @HideField() + userId?: string; + + @Field(() => Date, {nullable:true}) + expiresAt?: Date | string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - - @Field(() => Boolean, {nullable:true}) - isRevoked?: boolean; - - @Field(() => Date, {nullable:true}) - expiresAt?: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @HideField() - userId?: string; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-min-order-by-aggregate.input.ts b/server/src/core/@generated/refresh-token/refresh-token-min-order-by-aggregate.input.ts index b779ed1242..1495d70e87 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-min-order-by-aggregate.input.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-min-order-by-aggregate.input.ts @@ -9,21 +9,21 @@ export class RefreshTokenMinOrderByAggregateInput { @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}) isRevoked?: keyof typeof SortOrder; + @HideField() + userId?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) expiresAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) + @HideField() deletedAt?: keyof typeof SortOrder; - @HideField() - userId?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-order-by-with-aggregation.input.ts b/server/src/core/@generated/refresh-token/refresh-token-order-by-with-aggregation.input.ts index e2a3ac8770..bc55bc5bdb 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-order-by-with-aggregation.input.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-order-by-with-aggregation.input.ts @@ -12,23 +12,23 @@ export class RefreshTokenOrderByWithAggregationInput { @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}) isRevoked?: keyof typeof SortOrder; + @HideField() + userId?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) expiresAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) + @HideField() deletedAt?: keyof typeof SortOrder; - @HideField() - userId?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; @Field(() => RefreshTokenCountOrderByAggregateInput, {nullable:true}) _count?: RefreshTokenCountOrderByAggregateInput; diff --git a/server/src/core/@generated/refresh-token/refresh-token-order-by-with-relation.input.ts b/server/src/core/@generated/refresh-token/refresh-token-order-by-with-relation.input.ts index 38b1042b2e..52ddbe0f71 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-order-by-with-relation.input.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-order-by-with-relation.input.ts @@ -10,24 +10,24 @@ export class RefreshTokenOrderByWithRelationInput { @Field(() => SortOrder, {nullable:true}) id?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) + isRevoked?: keyof typeof SortOrder; + + @HideField() + userId?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + expiresAt?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) createdAt?: keyof typeof SortOrder; @Field(() => SortOrder, {nullable:true}) updatedAt?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) - isRevoked?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - expiresAt?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - deletedAt?: keyof typeof SortOrder; - - @HideField() - userId?: keyof typeof SortOrder; - @HideField() user?: UserOrderByWithRelationInput; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-scalar-field.enum.ts b/server/src/core/@generated/refresh-token/refresh-token-scalar-field.enum.ts index 7ad85d277a..ecb668a5db 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-scalar-field.enum.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-scalar-field.enum.ts @@ -2,12 +2,12 @@ import { registerEnumType } from '@nestjs/graphql'; export enum RefreshTokenScalarFieldEnum { id = "id", - createdAt = "createdAt", - updatedAt = "updatedAt", isRevoked = "isRevoked", + userId = "userId", expiresAt = "expiresAt", deletedAt = "deletedAt", - userId = "userId" + createdAt = "createdAt", + updatedAt = "updatedAt" } diff --git a/server/src/core/@generated/refresh-token/refresh-token-scalar-where-with-aggregates.input.ts b/server/src/core/@generated/refresh-token/refresh-token-scalar-where-with-aggregates.input.ts index e7a1c66eac..51a1b4e683 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-scalar-where-with-aggregates.input.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-scalar-where-with-aggregates.input.ts @@ -1,10 +1,10 @@ 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 { BoolWithAggregatesFilter } from '../prisma/bool-with-aggregates-filter.input'; -import { DateTimeNullableWithAggregatesFilter } from '../prisma/date-time-nullable-with-aggregates-filter.input'; import { HideField } from '@nestjs/graphql'; +import { DateTimeWithAggregatesFilter } from '../prisma/date-time-with-aggregates-filter.input'; +import { DateTimeNullableWithAggregatesFilter } from '../prisma/date-time-nullable-with-aggregates-filter.input'; @InputType() export class RefreshTokenScalarWhereWithAggregatesInput { @@ -21,21 +21,21 @@ export class RefreshTokenScalarWhereWithAggregatesInput { @Field(() => StringWithAggregatesFilter, {nullable:true}) id?: StringWithAggregatesFilter; + @Field(() => BoolWithAggregatesFilter, {nullable:true}) + isRevoked?: BoolWithAggregatesFilter; + + @HideField() + userId?: StringWithAggregatesFilter; + + @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) + expiresAt?: DateTimeWithAggregatesFilter; + + @HideField() + deletedAt?: DateTimeNullableWithAggregatesFilter; + @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) createdAt?: DateTimeWithAggregatesFilter; @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) updatedAt?: DateTimeWithAggregatesFilter; - - @Field(() => BoolWithAggregatesFilter, {nullable:true}) - isRevoked?: BoolWithAggregatesFilter; - - @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) - expiresAt?: DateTimeWithAggregatesFilter; - - @Field(() => DateTimeNullableWithAggregatesFilter, {nullable:true}) - deletedAt?: DateTimeNullableWithAggregatesFilter; - - @HideField() - userId?: StringWithAggregatesFilter; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-scalar-where.input.ts b/server/src/core/@generated/refresh-token/refresh-token-scalar-where.input.ts index 5d08cf380b..bf052aa44b 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-scalar-where.input.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-scalar-where.input.ts @@ -1,10 +1,10 @@ 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 { BoolFilter } from '../prisma/bool-filter.input'; -import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; import { HideField } from '@nestjs/graphql'; +import { DateTimeFilter } from '../prisma/date-time-filter.input'; +import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; @InputType() export class RefreshTokenScalarWhereInput { @@ -21,21 +21,21 @@ export class RefreshTokenScalarWhereInput { @Field(() => StringFilter, {nullable:true}) id?: StringFilter; + @Field(() => BoolFilter, {nullable:true}) + isRevoked?: BoolFilter; + + @HideField() + userId?: StringFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + expiresAt?: DateTimeFilter; + + @HideField() + deletedAt?: DateTimeNullableFilter; + @Field(() => DateTimeFilter, {nullable:true}) createdAt?: DateTimeFilter; @Field(() => DateTimeFilter, {nullable:true}) updatedAt?: DateTimeFilter; - - @Field(() => BoolFilter, {nullable:true}) - isRevoked?: BoolFilter; - - @Field(() => DateTimeFilter, {nullable:true}) - expiresAt?: DateTimeFilter; - - @Field(() => DateTimeNullableFilter, {nullable:true}) - deletedAt?: DateTimeNullableFilter; - - @HideField() - userId?: StringFilter; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-unchecked-create-without-user.input.ts b/server/src/core/@generated/refresh-token/refresh-token-unchecked-create-without-user.input.ts index ba63ab4dcf..b1bf7daa00 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-unchecked-create-without-user.input.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-unchecked-create-without-user.input.ts @@ -1,24 +1,30 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; @InputType() export class RefreshTokenUncheckedCreateWithoutUserInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + isRevoked?: boolean; + + @Field(() => Date, {nullable:false}) + expiresAt!: Date | string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - - @Field(() => Boolean, {nullable:true}) - isRevoked?: boolean; - - @Field(() => Date, {nullable:false}) - expiresAt!: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-unchecked-create.input.ts b/server/src/core/@generated/refresh-token/refresh-token-unchecked-create.input.ts index da8bd691cf..18beccde8a 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-unchecked-create.input.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-unchecked-create.input.ts @@ -1,28 +1,33 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @InputType() export class RefreshTokenUncheckedCreateInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + isRevoked?: boolean; + + @HideField() + userId!: string; + + @Field(() => Date, {nullable:false}) + expiresAt!: Date | string; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - - @Field(() => Boolean, {nullable:true}) - isRevoked?: boolean; - - @Field(() => Date, {nullable:false}) - expiresAt!: Date | string; - - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @HideField() - userId!: string; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-unchecked-update-many-without-refresh-tokens.input.ts b/server/src/core/@generated/refresh-token/refresh-token-unchecked-update-many-without-refresh-tokens.input.ts index 624281f305..ea05d8a6e9 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-unchecked-update-many-without-refresh-tokens.input.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-unchecked-update-many-without-refresh-tokens.input.ts @@ -1,9 +1,10 @@ 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 { BoolFieldUpdateOperationsInput } from '../prisma/bool-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 RefreshTokenUncheckedUpdateManyWithoutRefreshTokensInput { @@ -11,18 +12,18 @@ export class RefreshTokenUncheckedUpdateManyWithoutRefreshTokensInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) isRevoked?: BoolFieldUpdateOperationsInput; @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) expiresAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) + @HideField() deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-unchecked-update-many.input.ts b/server/src/core/@generated/refresh-token/refresh-token-unchecked-update-many.input.ts index ebda14658c..3cbc2aea86 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-unchecked-update-many.input.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-unchecked-update-many.input.ts @@ -1,10 +1,10 @@ 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 { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; @InputType() export class RefreshTokenUncheckedUpdateManyInput { @@ -12,21 +12,21 @@ export class RefreshTokenUncheckedUpdateManyInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; + @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) + isRevoked?: BoolFieldUpdateOperationsInput; + + @HideField() + userId?: StringFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + expiresAt?: DateTimeFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) createdAt?: DateTimeFieldUpdateOperationsInput; @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) - isRevoked?: BoolFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - expiresAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - - @HideField() - userId?: StringFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-unchecked-update-without-user.input.ts b/server/src/core/@generated/refresh-token/refresh-token-unchecked-update-without-user.input.ts index 7ca5fdc1d5..305497b1cd 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-unchecked-update-without-user.input.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-unchecked-update-without-user.input.ts @@ -1,9 +1,10 @@ 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 { BoolFieldUpdateOperationsInput } from '../prisma/bool-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 RefreshTokenUncheckedUpdateWithoutUserInput { @@ -11,18 +12,18 @@ export class RefreshTokenUncheckedUpdateWithoutUserInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) isRevoked?: BoolFieldUpdateOperationsInput; @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) expiresAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) + @HideField() deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-unchecked-update.input.ts b/server/src/core/@generated/refresh-token/refresh-token-unchecked-update.input.ts index 8fc887e8b5..ca8371dba1 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-unchecked-update.input.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-unchecked-update.input.ts @@ -1,10 +1,10 @@ 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 { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input'; -import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; +import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; @InputType() export class RefreshTokenUncheckedUpdateInput { @@ -12,21 +12,21 @@ export class RefreshTokenUncheckedUpdateInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; + @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) + isRevoked?: BoolFieldUpdateOperationsInput; + + @HideField() + userId?: StringFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + expiresAt?: DateTimeFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) createdAt?: DateTimeFieldUpdateOperationsInput; @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) - isRevoked?: BoolFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - expiresAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - - @HideField() - userId?: StringFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-update-many-mutation.input.ts b/server/src/core/@generated/refresh-token/refresh-token-update-many-mutation.input.ts index 13ad888371..44983e62e8 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-update-many-mutation.input.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-update-many-mutation.input.ts @@ -1,9 +1,10 @@ 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 { BoolFieldUpdateOperationsInput } from '../prisma/bool-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 RefreshTokenUpdateManyMutationInput { @@ -11,18 +12,18 @@ export class RefreshTokenUpdateManyMutationInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) isRevoked?: BoolFieldUpdateOperationsInput; @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) expiresAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) + @HideField() deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-update-without-user.input.ts b/server/src/core/@generated/refresh-token/refresh-token-update-without-user.input.ts index 4c5546b984..625a3ecf8a 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-update-without-user.input.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-update-without-user.input.ts @@ -1,9 +1,10 @@ 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 { BoolFieldUpdateOperationsInput } from '../prisma/bool-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 RefreshTokenUpdateWithoutUserInput { @@ -11,18 +12,18 @@ export class RefreshTokenUpdateWithoutUserInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) isRevoked?: BoolFieldUpdateOperationsInput; @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) expiresAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) + @HideField() deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-update.input.ts b/server/src/core/@generated/refresh-token/refresh-token-update.input.ts index d31cef1cb2..d1e2ad32cb 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-update.input.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-update.input.ts @@ -1,11 +1,11 @@ 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 { BoolFieldUpdateOperationsInput } from '../prisma/bool-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 { UserUpdateOneRequiredWithoutRefreshTokensNestedInput } from '../user/user-update-one-required-without-refresh-tokens-nested.input'; import { HideField } from '@nestjs/graphql'; +import { UserUpdateOneRequiredWithoutRefreshTokensNestedInput } from '../user/user-update-one-required-without-refresh-tokens-nested.input'; @InputType() export class RefreshTokenUpdateInput { @@ -13,21 +13,21 @@ export class RefreshTokenUpdateInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - createdAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) - updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) isRevoked?: BoolFieldUpdateOperationsInput; @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) expiresAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) + @HideField() deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @HideField() user?: UserUpdateOneRequiredWithoutRefreshTokensNestedInput; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-where-unique.input.ts b/server/src/core/@generated/refresh-token/refresh-token-where-unique.input.ts index 2e45dd93d6..85e3a68326 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-where-unique.input.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-where-unique.input.ts @@ -1,9 +1,12 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; @InputType() export class RefreshTokenWhereUniqueInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; } diff --git a/server/src/core/@generated/refresh-token/refresh-token-where.input.ts b/server/src/core/@generated/refresh-token/refresh-token-where.input.ts index 69903f68bc..607f39dd91 100644 --- a/server/src/core/@generated/refresh-token/refresh-token-where.input.ts +++ b/server/src/core/@generated/refresh-token/refresh-token-where.input.ts @@ -1,10 +1,10 @@ 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 { BoolFilter } from '../prisma/bool-filter.input'; -import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; import { HideField } from '@nestjs/graphql'; +import { DateTimeFilter } from '../prisma/date-time-filter.input'; +import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; import { UserRelationFilter } from '../user/user-relation-filter.input'; @InputType() @@ -22,24 +22,24 @@ export class RefreshTokenWhereInput { @Field(() => StringFilter, {nullable:true}) id?: StringFilter; + @Field(() => BoolFilter, {nullable:true}) + isRevoked?: BoolFilter; + + @HideField() + userId?: StringFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + expiresAt?: DateTimeFilter; + + @HideField() + deletedAt?: DateTimeNullableFilter; + @Field(() => DateTimeFilter, {nullable:true}) createdAt?: DateTimeFilter; @Field(() => DateTimeFilter, {nullable:true}) updatedAt?: DateTimeFilter; - @Field(() => BoolFilter, {nullable:true}) - isRevoked?: BoolFilter; - - @Field(() => DateTimeFilter, {nullable:true}) - expiresAt?: DateTimeFilter; - - @Field(() => DateTimeNullableFilter, {nullable:true}) - deletedAt?: DateTimeNullableFilter; - - @HideField() - userId?: StringFilter; - @HideField() user?: UserRelationFilter; } diff --git a/server/src/core/@generated/refresh-token/refresh-token.model.ts b/server/src/core/@generated/refresh-token/refresh-token.model.ts index 8184a36c2f..9aac4e65ad 100644 --- a/server/src/core/@generated/refresh-token/refresh-token.model.ts +++ b/server/src/core/@generated/refresh-token/refresh-token.model.ts @@ -10,24 +10,24 @@ export class RefreshToken { @Field(() => ID, {nullable:false}) id!: string; + @Field(() => Boolean, {nullable:false,defaultValue:false}) + isRevoked!: boolean; + + @HideField() + userId!: string; + + @Field(() => Date, {nullable:false}) + expiresAt!: Date; + + @HideField() + deletedAt!: Date | null; + @Field(() => Date, {nullable:false}) createdAt!: Date; @Field(() => Date, {nullable:false}) updatedAt!: Date; - @Field(() => Boolean, {nullable:false,defaultValue:false}) - isRevoked!: boolean; - - @Field(() => Date, {nullable:false}) - expiresAt!: Date; - - @Field(() => Date, {nullable:true}) - deletedAt!: Date | null; - - @HideField() - userId!: string; - @HideField() user?: User; } diff --git a/server/src/core/@generated/refresh-token/update-many-refresh-token.args.ts b/server/src/core/@generated/refresh-token/update-many-refresh-token.args.ts index 820819ad07..51c0f78073 100644 --- a/server/src/core/@generated/refresh-token/update-many-refresh-token.args.ts +++ b/server/src/core/@generated/refresh-token/update-many-refresh-token.args.ts @@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { RefreshTokenUpdateManyMutationInput } from './refresh-token-update-many-mutation.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; import { RefreshTokenWhereInput } from './refresh-token-where.input'; @ArgsType() @@ -9,6 +10,8 @@ export class UpdateManyRefreshTokenArgs { @Field(() => RefreshTokenUpdateManyMutationInput, {nullable:false}) @Type(() => RefreshTokenUpdateManyMutationInput) + @ValidateNested({each: true}) + @Type(() => RefreshTokenUpdateManyMutationInput) data!: RefreshTokenUpdateManyMutationInput; @Field(() => RefreshTokenWhereInput, {nullable:true}) diff --git a/server/src/core/@generated/refresh-token/update-one-refresh-token.args.ts b/server/src/core/@generated/refresh-token/update-one-refresh-token.args.ts index f2116b404e..c878ef06b0 100644 --- a/server/src/core/@generated/refresh-token/update-one-refresh-token.args.ts +++ b/server/src/core/@generated/refresh-token/update-one-refresh-token.args.ts @@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { RefreshTokenUpdateInput } from './refresh-token-update.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; import { RefreshTokenWhereUniqueInput } from './refresh-token-where-unique.input'; @ArgsType() @@ -9,6 +10,8 @@ export class UpdateOneRefreshTokenArgs { @Field(() => RefreshTokenUpdateInput, {nullable:false}) @Type(() => RefreshTokenUpdateInput) + @ValidateNested({each: true}) + @Type(() => RefreshTokenUpdateInput) data!: RefreshTokenUpdateInput; @Field(() => RefreshTokenWhereUniqueInput, {nullable:false}) diff --git a/server/src/core/@generated/user/create-many-user.args.ts b/server/src/core/@generated/user/create-many-user.args.ts index d1e7141d57..e57cc3d602 100644 --- a/server/src/core/@generated/user/create-many-user.args.ts +++ b/server/src/core/@generated/user/create-many-user.args.ts @@ -2,12 +2,15 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { UserCreateManyInput } from './user-create-many.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; @ArgsType() export class CreateManyUserArgs { @Field(() => [UserCreateManyInput], {nullable:false}) @Type(() => UserCreateManyInput) + @ValidateNested({each: true}) + @Type(() => UserCreateManyInput) data!: Array; @Field(() => Boolean, {nullable:true}) diff --git a/server/src/core/@generated/user/create-one-user.args.ts b/server/src/core/@generated/user/create-one-user.args.ts index 6a791035cd..017efd8369 100644 --- a/server/src/core/@generated/user/create-one-user.args.ts +++ b/server/src/core/@generated/user/create-one-user.args.ts @@ -2,11 +2,14 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { UserCreateInput } from './user-create.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; @ArgsType() export class CreateOneUserArgs { @Field(() => UserCreateInput, {nullable:false}) @Type(() => UserCreateInput) + @ValidateNested({each: true}) + @Type(() => UserCreateInput) data!: UserCreateInput; } diff --git a/server/src/core/@generated/user/update-many-user.args.ts b/server/src/core/@generated/user/update-many-user.args.ts index 2e8274867c..7b964a7004 100644 --- a/server/src/core/@generated/user/update-many-user.args.ts +++ b/server/src/core/@generated/user/update-many-user.args.ts @@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { UserUpdateManyMutationInput } from './user-update-many-mutation.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; import { UserWhereInput } from './user-where.input'; @ArgsType() @@ -9,6 +10,8 @@ export class UpdateManyUserArgs { @Field(() => UserUpdateManyMutationInput, {nullable:false}) @Type(() => UserUpdateManyMutationInput) + @ValidateNested({each: true}) + @Type(() => UserUpdateManyMutationInput) data!: UserUpdateManyMutationInput; @Field(() => UserWhereInput, {nullable:true}) diff --git a/server/src/core/@generated/user/update-one-user.args.ts b/server/src/core/@generated/user/update-one-user.args.ts index 9f16dadfd2..819930ca93 100644 --- a/server/src/core/@generated/user/update-one-user.args.ts +++ b/server/src/core/@generated/user/update-one-user.args.ts @@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { UserUpdateInput } from './user-update.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; import { UserWhereUniqueInput } from './user-where-unique.input'; @ArgsType() @@ -9,6 +10,8 @@ export class UpdateOneUserArgs { @Field(() => UserUpdateInput, {nullable:false}) @Type(() => UserUpdateInput) + @ValidateNested({each: true}) + @Type(() => UserUpdateInput) data!: UserUpdateInput; @Field(() => UserWhereUniqueInput, {nullable:false}) diff --git a/server/src/core/@generated/user/user-count-aggregate.input.ts b/server/src/core/@generated/user/user-count-aggregate.input.ts index 2c64712615..f6d0e38e6b 100644 --- a/server/src/core/@generated/user/user-count-aggregate.input.ts +++ b/server/src/core/@generated/user/user-count-aggregate.input.ts @@ -8,27 +8,15 @@ export class UserCountAggregateInput { @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}) - lastSeen?: true; - - @Field(() => Boolean, {nullable:true}) - disabled?: true; - @Field(() => Boolean, {nullable:true}) displayName?: true; @Field(() => Boolean, {nullable:true}) email?: true; + @Field(() => Boolean, {nullable:true}) + emailVerified?: true; + @Field(() => Boolean, {nullable:true}) avatarUrl?: true; @@ -38,14 +26,26 @@ export class UserCountAggregateInput { @Field(() => Boolean, {nullable:true}) phoneNumber?: true; + @Field(() => Boolean, {nullable:true}) + lastSeen?: true; + + @Field(() => Boolean, {nullable:true}) + disabled?: true; + @HideField() passwordHash?: true; @Field(() => Boolean, {nullable:true}) - emailVerified?: true; + metadata?: true; + + @HideField() + deletedAt?: true; @Field(() => Boolean, {nullable:true}) - metadata?: true; + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; @Field(() => Boolean, {nullable:true}) _all?: true; diff --git a/server/src/core/@generated/user/user-count-aggregate.output.ts b/server/src/core/@generated/user/user-count-aggregate.output.ts index 602cb9eb78..834dc74b26 100644 --- a/server/src/core/@generated/user/user-count-aggregate.output.ts +++ b/server/src/core/@generated/user/user-count-aggregate.output.ts @@ -9,27 +9,15 @@ export class UserCountAggregate { @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}) - lastSeen!: number; - - @Field(() => Int, {nullable:false}) - disabled!: number; - @Field(() => Int, {nullable:false}) displayName!: number; @Field(() => Int, {nullable:false}) email!: number; + @Field(() => Int, {nullable:false}) + emailVerified!: number; + @Field(() => Int, {nullable:false}) avatarUrl!: number; @@ -39,14 +27,26 @@ export class UserCountAggregate { @Field(() => Int, {nullable:false}) phoneNumber!: number; + @Field(() => Int, {nullable:false}) + lastSeen!: number; + + @Field(() => Int, {nullable:false}) + disabled!: number; + @HideField() passwordHash!: number; @Field(() => Int, {nullable:false}) - emailVerified!: number; + metadata!: number; + + @HideField() + deletedAt!: number; @Field(() => Int, {nullable:false}) - metadata!: number; + createdAt!: number; + + @Field(() => Int, {nullable:false}) + updatedAt!: number; @Field(() => Int, {nullable:false}) _all!: number; diff --git a/server/src/core/@generated/user/user-count-order-by-aggregate.input.ts b/server/src/core/@generated/user/user-count-order-by-aggregate.input.ts index 6b09d9e8f8..d35a46120c 100644 --- a/server/src/core/@generated/user/user-count-order-by-aggregate.input.ts +++ b/server/src/core/@generated/user/user-count-order-by-aggregate.input.ts @@ -9,27 +9,15 @@ export class UserCountOrderByAggregateInput { @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}) - lastSeen?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - disabled?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) displayName?: keyof typeof SortOrder; @Field(() => SortOrder, {nullable:true}) email?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) + emailVerified?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) avatarUrl?: keyof typeof SortOrder; @@ -39,12 +27,24 @@ export class UserCountOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) phoneNumber?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) + lastSeen?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + disabled?: keyof typeof SortOrder; + @HideField() passwordHash?: keyof typeof SortOrder; @Field(() => SortOrder, {nullable:true}) - emailVerified?: keyof typeof SortOrder; + metadata?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; @Field(() => SortOrder, {nullable:true}) - metadata?: keyof typeof SortOrder; + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/user/user-create-many.input.ts b/server/src/core/@generated/user/user-create-many.input.ts index 076798c2b2..66a34d6dd2 100644 --- a/server/src/core/@generated/user/user-create-many.input.ts +++ b/server/src/core/@generated/user/user-create-many.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; @@ -7,44 +8,62 @@ import { GraphQLJSON } from 'graphql-type-json'; export class UserCreateManyInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + @Validator.IsOptional() + displayName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsEmail() + email!: string; + + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + emailVerified?: boolean; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + avatarUrl?: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + locale!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + phoneNumber?: string; + + @Field(() => Date, {nullable:true}) + @Validator.IsDate() + @Validator.IsOptional() + lastSeen?: Date | string; + + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + disabled?: boolean; + + @HideField() + passwordHash?: string; + + @Field(() => GraphQLJSON, {nullable:true}) + @Validator.IsJSON() + @Validator.IsOptional() + metadata?: any; + + @HideField() + deletedAt?: Date | 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; - - @HideField() - passwordHash?: string; - - @Field(() => Boolean, {nullable:true}) - emailVerified?: boolean; - - @Field(() => GraphQLJSON, {nullable:true}) - metadata?: any; } diff --git a/server/src/core/@generated/user/user-create-without-comments.input.ts b/server/src/core/@generated/user/user-create-without-comments.input.ts index dbe3b4873c..2d0834395e 100644 --- a/server/src/core/@generated/user/user-create-without-comments.input.ts +++ b/server/src/core/@generated/user/user-create-without-comments.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; import { WorkspaceMemberCreateNestedOneWithoutUserInput } from '../workspace-member/workspace-member-create-nested-one-without-user.input'; @@ -10,47 +11,65 @@ import { RefreshTokenCreateNestedManyWithoutUserInput } from '../refresh-token/r export class UserCreateWithoutCommentsInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + @Validator.IsOptional() + displayName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsEmail() + email!: string; + + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + emailVerified?: boolean; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + avatarUrl?: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + locale!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + phoneNumber?: string; + + @Field(() => Date, {nullable:true}) + @Validator.IsDate() + @Validator.IsOptional() + lastSeen?: Date | string; + + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + disabled?: boolean; + + @HideField() + passwordHash?: string; + + @Field(() => GraphQLJSON, {nullable:true}) + @Validator.IsJSON() + @Validator.IsOptional() + metadata?: any; + + @HideField() + deletedAt?: Date | 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; - - @HideField() - passwordHash?: string; - - @Field(() => Boolean, {nullable:true}) - emailVerified?: boolean; - - @Field(() => GraphQLJSON, {nullable:true}) - metadata?: any; - @HideField() workspaceMember?: WorkspaceMemberCreateNestedOneWithoutUserInput; diff --git a/server/src/core/@generated/user/user-create-without-companies.input.ts b/server/src/core/@generated/user/user-create-without-companies.input.ts index 472fb48546..47fef22c18 100644 --- a/server/src/core/@generated/user/user-create-without-companies.input.ts +++ b/server/src/core/@generated/user/user-create-without-companies.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; import { WorkspaceMemberCreateNestedOneWithoutUserInput } from '../workspace-member/workspace-member-create-nested-one-without-user.input'; @@ -10,47 +11,65 @@ import { CommentCreateNestedManyWithoutAuthorInput } from '../comment/comment-cr export class UserCreateWithoutCompaniesInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + @Validator.IsOptional() + displayName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsEmail() + email!: string; + + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + emailVerified?: boolean; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + avatarUrl?: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + locale!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + phoneNumber?: string; + + @Field(() => Date, {nullable:true}) + @Validator.IsDate() + @Validator.IsOptional() + lastSeen?: Date | string; + + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + disabled?: boolean; + + @HideField() + passwordHash?: string; + + @Field(() => GraphQLJSON, {nullable:true}) + @Validator.IsJSON() + @Validator.IsOptional() + metadata?: any; + + @HideField() + deletedAt?: Date | 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; - - @HideField() - passwordHash?: string; - - @Field(() => Boolean, {nullable:true}) - emailVerified?: boolean; - - @Field(() => GraphQLJSON, {nullable:true}) - metadata?: any; - @HideField() workspaceMember?: WorkspaceMemberCreateNestedOneWithoutUserInput; diff --git a/server/src/core/@generated/user/user-create-without-refresh-tokens.input.ts b/server/src/core/@generated/user/user-create-without-refresh-tokens.input.ts index 893dad9ce0..a31e91d8b0 100644 --- a/server/src/core/@generated/user/user-create-without-refresh-tokens.input.ts +++ b/server/src/core/@generated/user/user-create-without-refresh-tokens.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; import { WorkspaceMemberCreateNestedOneWithoutUserInput } from '../workspace-member/workspace-member-create-nested-one-without-user.input'; @@ -10,47 +11,65 @@ import { CommentCreateNestedManyWithoutAuthorInput } from '../comment/comment-cr export class UserCreateWithoutRefreshTokensInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + @Validator.IsOptional() + displayName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsEmail() + email!: string; + + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + emailVerified?: boolean; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + avatarUrl?: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + locale!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + phoneNumber?: string; + + @Field(() => Date, {nullable:true}) + @Validator.IsDate() + @Validator.IsOptional() + lastSeen?: Date | string; + + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + disabled?: boolean; + + @HideField() + passwordHash?: string; + + @Field(() => GraphQLJSON, {nullable:true}) + @Validator.IsJSON() + @Validator.IsOptional() + metadata?: any; + + @HideField() + deletedAt?: Date | 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; - - @HideField() - passwordHash?: string; - - @Field(() => Boolean, {nullable:true}) - emailVerified?: boolean; - - @Field(() => GraphQLJSON, {nullable:true}) - metadata?: any; - @HideField() workspaceMember?: WorkspaceMemberCreateNestedOneWithoutUserInput; diff --git a/server/src/core/@generated/user/user-create-without-workspace-member.input.ts b/server/src/core/@generated/user/user-create-without-workspace-member.input.ts index b68b8b96c7..df86720e54 100644 --- a/server/src/core/@generated/user/user-create-without-workspace-member.input.ts +++ b/server/src/core/@generated/user/user-create-without-workspace-member.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; import { CompanyCreateNestedManyWithoutAccountOwnerInput } from '../company/company-create-nested-many-without-account-owner.input'; @@ -10,47 +11,65 @@ import { CommentCreateNestedManyWithoutAuthorInput } from '../comment/comment-cr export class UserCreateWithoutWorkspaceMemberInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + @Validator.IsOptional() + displayName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsEmail() + email!: string; + + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + emailVerified?: boolean; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + avatarUrl?: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + locale!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + phoneNumber?: string; + + @Field(() => Date, {nullable:true}) + @Validator.IsDate() + @Validator.IsOptional() + lastSeen?: Date | string; + + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + disabled?: boolean; + + @HideField() + passwordHash?: string; + + @Field(() => GraphQLJSON, {nullable:true}) + @Validator.IsJSON() + @Validator.IsOptional() + metadata?: any; + + @HideField() + deletedAt?: Date | 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; - - @HideField() - passwordHash?: string; - - @Field(() => Boolean, {nullable:true}) - emailVerified?: boolean; - - @Field(() => GraphQLJSON, {nullable:true}) - metadata?: any; - @Field(() => CompanyCreateNestedManyWithoutAccountOwnerInput, {nullable:true}) companies?: CompanyCreateNestedManyWithoutAccountOwnerInput; diff --git a/server/src/core/@generated/user/user-create.input.ts b/server/src/core/@generated/user/user-create.input.ts index 8fe8ffca06..1aff140510 100644 --- a/server/src/core/@generated/user/user-create.input.ts +++ b/server/src/core/@generated/user/user-create.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; import { WorkspaceMemberCreateNestedOneWithoutUserInput } from '../workspace-member/workspace-member-create-nested-one-without-user.input'; @@ -11,47 +12,65 @@ import { CommentCreateNestedManyWithoutAuthorInput } from '../comment/comment-cr export class UserCreateInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + @Validator.IsOptional() + displayName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsEmail() + email!: string; + + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + emailVerified?: boolean; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + avatarUrl?: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + locale!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + phoneNumber?: string; + + @Field(() => Date, {nullable:true}) + @Validator.IsDate() + @Validator.IsOptional() + lastSeen?: Date | string; + + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + disabled?: boolean; + + @HideField() + passwordHash?: string; + + @Field(() => GraphQLJSON, {nullable:true}) + @Validator.IsJSON() + @Validator.IsOptional() + metadata?: any; + + @HideField() + deletedAt?: Date | 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; - - @HideField() - passwordHash?: string; - - @Field(() => Boolean, {nullable:true}) - emailVerified?: boolean; - - @Field(() => GraphQLJSON, {nullable:true}) - metadata?: any; - @HideField() workspaceMember?: WorkspaceMemberCreateNestedOneWithoutUserInput; diff --git a/server/src/core/@generated/user/user-group-by.output.ts b/server/src/core/@generated/user/user-group-by.output.ts index 2b1c046b33..7dd8030df2 100644 --- a/server/src/core/@generated/user/user-group-by.output.ts +++ b/server/src/core/@generated/user/user-group-by.output.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; import { UserCountAggregate } from './user-count-aggregate.output'; @@ -10,47 +11,65 @@ import { UserMaxAggregate } from './user-max-aggregate.output'; export class UserGroupBy { @Field(() => String, {nullable:false}) + @Validator.IsString() + @Validator.IsOptional() id!: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + @Validator.IsOptional() + displayName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsEmail() + email!: string; + + @Field(() => Boolean, {nullable:false}) + @Validator.IsBoolean() + @Validator.IsOptional() + emailVerified!: boolean; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + avatarUrl?: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + locale!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + phoneNumber?: string; + + @Field(() => Date, {nullable:true}) + @Validator.IsDate() + @Validator.IsOptional() + lastSeen?: Date | string; + + @Field(() => Boolean, {nullable:false}) + @Validator.IsBoolean() + @Validator.IsOptional() + disabled!: boolean; + + @HideField() + passwordHash?: string; + + @Field(() => GraphQLJSON, {nullable:true}) + @Validator.IsJSON() + @Validator.IsOptional() + metadata?: any; + + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:false}) createdAt!: Date | string; @Field(() => Date, {nullable:false}) updatedAt!: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - - @Field(() => Date, {nullable:true}) - lastSeen?: Date | string; - - @Field(() => Boolean, {nullable:false}) - 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; - - @HideField() - passwordHash?: string; - - @Field(() => Boolean, {nullable:false}) - emailVerified!: boolean; - - @Field(() => GraphQLJSON, {nullable:true}) - metadata?: any; - @Field(() => UserCountAggregate, {nullable:true}) _count?: UserCountAggregate; diff --git a/server/src/core/@generated/user/user-max-aggregate.input.ts b/server/src/core/@generated/user/user-max-aggregate.input.ts index eae4208b7f..b63cad58bf 100644 --- a/server/src/core/@generated/user/user-max-aggregate.input.ts +++ b/server/src/core/@generated/user/user-max-aggregate.input.ts @@ -8,27 +8,15 @@ export class UserMaxAggregateInput { @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}) - lastSeen?: true; - - @Field(() => Boolean, {nullable:true}) - disabled?: true; - @Field(() => Boolean, {nullable:true}) displayName?: true; @Field(() => Boolean, {nullable:true}) email?: true; + @Field(() => Boolean, {nullable:true}) + emailVerified?: true; + @Field(() => Boolean, {nullable:true}) avatarUrl?: true; @@ -38,9 +26,21 @@ export class UserMaxAggregateInput { @Field(() => Boolean, {nullable:true}) phoneNumber?: true; + @Field(() => Boolean, {nullable:true}) + lastSeen?: true; + + @Field(() => Boolean, {nullable:true}) + disabled?: true; + @HideField() passwordHash?: true; + @HideField() + deletedAt?: true; + @Field(() => Boolean, {nullable:true}) - emailVerified?: true; + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; } diff --git a/server/src/core/@generated/user/user-max-aggregate.output.ts b/server/src/core/@generated/user/user-max-aggregate.output.ts index a426d13f73..c62bfdde4e 100644 --- a/server/src/core/@generated/user/user-max-aggregate.output.ts +++ b/server/src/core/@generated/user/user-max-aggregate.output.ts @@ -1,46 +1,63 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @ObjectType() export class UserMaxAggregate { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + displayName?: string; + + @Field(() => String, {nullable:true}) + @Validator.IsEmail() + email?: string; + + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + emailVerified?: boolean; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + avatarUrl?: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + locale?: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + phoneNumber?: string; + + @Field(() => Date, {nullable:true}) + @Validator.IsDate() + @Validator.IsOptional() + lastSeen?: Date | string; + + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + disabled?: boolean; + + @HideField() + passwordHash?: string; + + @HideField() + deletedAt?: Date | 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:true}) - displayName?: string; - - @Field(() => String, {nullable:true}) - email?: string; - - @Field(() => String, {nullable:true}) - avatarUrl?: string; - - @Field(() => String, {nullable:true}) - locale?: string; - - @Field(() => String, {nullable:true}) - phoneNumber?: string; - - @HideField() - passwordHash?: string; - - @Field(() => Boolean, {nullable:true}) - emailVerified?: boolean; } diff --git a/server/src/core/@generated/user/user-max-order-by-aggregate.input.ts b/server/src/core/@generated/user/user-max-order-by-aggregate.input.ts index 1ce990fe27..9dfccd206e 100644 --- a/server/src/core/@generated/user/user-max-order-by-aggregate.input.ts +++ b/server/src/core/@generated/user/user-max-order-by-aggregate.input.ts @@ -9,27 +9,15 @@ export class UserMaxOrderByAggregateInput { @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}) - lastSeen?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - disabled?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) displayName?: keyof typeof SortOrder; @Field(() => SortOrder, {nullable:true}) email?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) + emailVerified?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) avatarUrl?: keyof typeof SortOrder; @@ -39,9 +27,21 @@ export class UserMaxOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) phoneNumber?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) + lastSeen?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + disabled?: keyof typeof SortOrder; + @HideField() passwordHash?: keyof typeof SortOrder; + @HideField() + deletedAt?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) - emailVerified?: keyof typeof SortOrder; + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/user/user-min-aggregate.input.ts b/server/src/core/@generated/user/user-min-aggregate.input.ts index 5fc6f62ae3..f2e8264c39 100644 --- a/server/src/core/@generated/user/user-min-aggregate.input.ts +++ b/server/src/core/@generated/user/user-min-aggregate.input.ts @@ -8,27 +8,15 @@ export class UserMinAggregateInput { @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}) - lastSeen?: true; - - @Field(() => Boolean, {nullable:true}) - disabled?: true; - @Field(() => Boolean, {nullable:true}) displayName?: true; @Field(() => Boolean, {nullable:true}) email?: true; + @Field(() => Boolean, {nullable:true}) + emailVerified?: true; + @Field(() => Boolean, {nullable:true}) avatarUrl?: true; @@ -38,9 +26,21 @@ export class UserMinAggregateInput { @Field(() => Boolean, {nullable:true}) phoneNumber?: true; + @Field(() => Boolean, {nullable:true}) + lastSeen?: true; + + @Field(() => Boolean, {nullable:true}) + disabled?: true; + @HideField() passwordHash?: true; + @HideField() + deletedAt?: true; + @Field(() => Boolean, {nullable:true}) - emailVerified?: true; + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; } diff --git a/server/src/core/@generated/user/user-min-aggregate.output.ts b/server/src/core/@generated/user/user-min-aggregate.output.ts index a1545bff78..e1fd0ef436 100644 --- a/server/src/core/@generated/user/user-min-aggregate.output.ts +++ b/server/src/core/@generated/user/user-min-aggregate.output.ts @@ -1,46 +1,63 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @ObjectType() export class UserMinAggregate { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + displayName?: string; + + @Field(() => String, {nullable:true}) + @Validator.IsEmail() + email?: string; + + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + emailVerified?: boolean; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + avatarUrl?: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + locale?: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + phoneNumber?: string; + + @Field(() => Date, {nullable:true}) + @Validator.IsDate() + @Validator.IsOptional() + lastSeen?: Date | string; + + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + disabled?: boolean; + + @HideField() + passwordHash?: string; + + @HideField() + deletedAt?: Date | 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:true}) - displayName?: string; - - @Field(() => String, {nullable:true}) - email?: string; - - @Field(() => String, {nullable:true}) - avatarUrl?: string; - - @Field(() => String, {nullable:true}) - locale?: string; - - @Field(() => String, {nullable:true}) - phoneNumber?: string; - - @HideField() - passwordHash?: string; - - @Field(() => Boolean, {nullable:true}) - emailVerified?: boolean; } diff --git a/server/src/core/@generated/user/user-min-order-by-aggregate.input.ts b/server/src/core/@generated/user/user-min-order-by-aggregate.input.ts index f1ae85d1bf..dcb6d2bda8 100644 --- a/server/src/core/@generated/user/user-min-order-by-aggregate.input.ts +++ b/server/src/core/@generated/user/user-min-order-by-aggregate.input.ts @@ -9,27 +9,15 @@ export class UserMinOrderByAggregateInput { @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}) - lastSeen?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - disabled?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) displayName?: keyof typeof SortOrder; @Field(() => SortOrder, {nullable:true}) email?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) + emailVerified?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) avatarUrl?: keyof typeof SortOrder; @@ -39,9 +27,21 @@ export class UserMinOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) phoneNumber?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) + lastSeen?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + disabled?: keyof typeof SortOrder; + @HideField() passwordHash?: keyof typeof SortOrder; + @HideField() + deletedAt?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) - emailVerified?: keyof typeof SortOrder; + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/user/user-order-by-with-aggregation.input.ts b/server/src/core/@generated/user/user-order-by-with-aggregation.input.ts index ea43e4b5ab..1ca9b46ad3 100644 --- a/server/src/core/@generated/user/user-order-by-with-aggregation.input.ts +++ b/server/src/core/@generated/user/user-order-by-with-aggregation.input.ts @@ -12,27 +12,15 @@ export class UserOrderByWithAggregationInput { @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}) - lastSeen?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - disabled?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) displayName?: keyof typeof SortOrder; @Field(() => SortOrder, {nullable:true}) email?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) + emailVerified?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) avatarUrl?: keyof typeof SortOrder; @@ -42,14 +30,26 @@ export class UserOrderByWithAggregationInput { @Field(() => SortOrder, {nullable:true}) phoneNumber?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) + lastSeen?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + disabled?: keyof typeof SortOrder; + @HideField() passwordHash?: keyof typeof SortOrder; @Field(() => SortOrder, {nullable:true}) - emailVerified?: keyof typeof SortOrder; + metadata?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; @Field(() => SortOrder, {nullable:true}) - metadata?: keyof typeof SortOrder; + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; @Field(() => UserCountOrderByAggregateInput, {nullable:true}) _count?: UserCountOrderByAggregateInput; diff --git a/server/src/core/@generated/user/user-order-by-with-relation.input.ts b/server/src/core/@generated/user/user-order-by-with-relation.input.ts index 569bb7e51a..8cd1bf8e53 100644 --- a/server/src/core/@generated/user/user-order-by-with-relation.input.ts +++ b/server/src/core/@generated/user/user-order-by-with-relation.input.ts @@ -13,27 +13,15 @@ export class UserOrderByWithRelationInput { @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}) - lastSeen?: keyof typeof SortOrder; - - @Field(() => SortOrder, {nullable:true}) - disabled?: keyof typeof SortOrder; - @Field(() => SortOrder, {nullable:true}) displayName?: keyof typeof SortOrder; @Field(() => SortOrder, {nullable:true}) email?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) + emailVerified?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) avatarUrl?: keyof typeof SortOrder; @@ -43,14 +31,26 @@ export class UserOrderByWithRelationInput { @Field(() => SortOrder, {nullable:true}) phoneNumber?: keyof typeof SortOrder; + @Field(() => SortOrder, {nullable:true}) + lastSeen?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + disabled?: keyof typeof SortOrder; + @HideField() passwordHash?: keyof typeof SortOrder; @Field(() => SortOrder, {nullable:true}) - emailVerified?: keyof typeof SortOrder; + metadata?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; @Field(() => SortOrder, {nullable:true}) - metadata?: keyof typeof SortOrder; + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; @HideField() workspaceMember?: WorkspaceMemberOrderByWithRelationInput; diff --git a/server/src/core/@generated/user/user-scalar-field.enum.ts b/server/src/core/@generated/user/user-scalar-field.enum.ts index e55d995e05..fc51a44b8f 100644 --- a/server/src/core/@generated/user/user-scalar-field.enum.ts +++ b/server/src/core/@generated/user/user-scalar-field.enum.ts @@ -2,19 +2,19 @@ import { registerEnumType } from '@nestjs/graphql'; export enum UserScalarFieldEnum { id = "id", - createdAt = "createdAt", - updatedAt = "updatedAt", - deletedAt = "deletedAt", - lastSeen = "lastSeen", - disabled = "disabled", displayName = "displayName", email = "email", + emailVerified = "emailVerified", avatarUrl = "avatarUrl", locale = "locale", phoneNumber = "phoneNumber", + lastSeen = "lastSeen", + disabled = "disabled", passwordHash = "passwordHash", - emailVerified = "emailVerified", - metadata = "metadata" + metadata = "metadata", + deletedAt = "deletedAt", + createdAt = "createdAt", + updatedAt = "updatedAt" } diff --git a/server/src/core/@generated/user/user-scalar-where-with-aggregates.input.ts b/server/src/core/@generated/user/user-scalar-where-with-aggregates.input.ts index e1207ea1ba..3ed09e1d4a 100644 --- a/server/src/core/@generated/user/user-scalar-where-with-aggregates.input.ts +++ b/server/src/core/@generated/user/user-scalar-where-with-aggregates.input.ts @@ -1,12 +1,12 @@ 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 { BoolWithAggregatesFilter } from '../prisma/bool-with-aggregates-filter.input'; import { StringNullableWithAggregatesFilter } from '../prisma/string-nullable-with-aggregates-filter.input'; +import { DateTimeNullableWithAggregatesFilter } from '../prisma/date-time-nullable-with-aggregates-filter.input'; import { HideField } from '@nestjs/graphql'; import { JsonNullableWithAggregatesFilter } from '../prisma/json-nullable-with-aggregates-filter.input'; +import { DateTimeWithAggregatesFilter } from '../prisma/date-time-with-aggregates-filter.input'; @InputType() export class UserScalarWhereWithAggregatesInput { @@ -23,27 +23,15 @@ export class UserScalarWhereWithAggregatesInput { @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(() => DateTimeNullableWithAggregatesFilter, {nullable:true}) - lastSeen?: DateTimeNullableWithAggregatesFilter; - - @Field(() => BoolWithAggregatesFilter, {nullable:true}) - disabled?: BoolWithAggregatesFilter; - @Field(() => StringWithAggregatesFilter, {nullable:true}) displayName?: StringWithAggregatesFilter; @Field(() => StringWithAggregatesFilter, {nullable:true}) email?: StringWithAggregatesFilter; + @Field(() => BoolWithAggregatesFilter, {nullable:true}) + emailVerified?: BoolWithAggregatesFilter; + @Field(() => StringNullableWithAggregatesFilter, {nullable:true}) avatarUrl?: StringNullableWithAggregatesFilter; @@ -53,12 +41,24 @@ export class UserScalarWhereWithAggregatesInput { @Field(() => StringNullableWithAggregatesFilter, {nullable:true}) phoneNumber?: StringNullableWithAggregatesFilter; + @Field(() => DateTimeNullableWithAggregatesFilter, {nullable:true}) + lastSeen?: DateTimeNullableWithAggregatesFilter; + + @Field(() => BoolWithAggregatesFilter, {nullable:true}) + disabled?: BoolWithAggregatesFilter; + @HideField() passwordHash?: StringNullableWithAggregatesFilter; - @Field(() => BoolWithAggregatesFilter, {nullable:true}) - emailVerified?: BoolWithAggregatesFilter; - @Field(() => JsonNullableWithAggregatesFilter, {nullable:true}) metadata?: JsonNullableWithAggregatesFilter; + + @HideField() + deletedAt?: DateTimeNullableWithAggregatesFilter; + + @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) + createdAt?: DateTimeWithAggregatesFilter; + + @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) + updatedAt?: DateTimeWithAggregatesFilter; } diff --git a/server/src/core/@generated/user/user-unchecked-create-without-comments.input.ts b/server/src/core/@generated/user/user-unchecked-create-without-comments.input.ts index 031337f5cb..bf9b844001 100644 --- a/server/src/core/@generated/user/user-unchecked-create-without-comments.input.ts +++ b/server/src/core/@generated/user/user-unchecked-create-without-comments.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; import { WorkspaceMemberUncheckedCreateNestedOneWithoutUserInput } from '../workspace-member/workspace-member-unchecked-create-nested-one-without-user.input'; @@ -10,47 +11,65 @@ import { RefreshTokenUncheckedCreateNestedManyWithoutUserInput } from '../refres export class UserUncheckedCreateWithoutCommentsInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + @Validator.IsOptional() + displayName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsEmail() + email!: string; + + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + emailVerified?: boolean; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + avatarUrl?: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + locale!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + phoneNumber?: string; + + @Field(() => Date, {nullable:true}) + @Validator.IsDate() + @Validator.IsOptional() + lastSeen?: Date | string; + + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + disabled?: boolean; + + @HideField() + passwordHash?: string; + + @Field(() => GraphQLJSON, {nullable:true}) + @Validator.IsJSON() + @Validator.IsOptional() + metadata?: any; + + @HideField() + deletedAt?: Date | 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; - - @HideField() - passwordHash?: string; - - @Field(() => Boolean, {nullable:true}) - emailVerified?: boolean; - - @Field(() => GraphQLJSON, {nullable:true}) - metadata?: any; - @HideField() workspaceMember?: WorkspaceMemberUncheckedCreateNestedOneWithoutUserInput; diff --git a/server/src/core/@generated/user/user-unchecked-create-without-companies.input.ts b/server/src/core/@generated/user/user-unchecked-create-without-companies.input.ts index 98add01fbe..4583bb18fd 100644 --- a/server/src/core/@generated/user/user-unchecked-create-without-companies.input.ts +++ b/server/src/core/@generated/user/user-unchecked-create-without-companies.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; import { WorkspaceMemberUncheckedCreateNestedOneWithoutUserInput } from '../workspace-member/workspace-member-unchecked-create-nested-one-without-user.input'; @@ -10,47 +11,65 @@ import { CommentUncheckedCreateNestedManyWithoutAuthorInput } from '../comment/c export class UserUncheckedCreateWithoutCompaniesInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + @Validator.IsOptional() + displayName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsEmail() + email!: string; + + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + emailVerified?: boolean; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + avatarUrl?: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + locale!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + phoneNumber?: string; + + @Field(() => Date, {nullable:true}) + @Validator.IsDate() + @Validator.IsOptional() + lastSeen?: Date | string; + + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + disabled?: boolean; + + @HideField() + passwordHash?: string; + + @Field(() => GraphQLJSON, {nullable:true}) + @Validator.IsJSON() + @Validator.IsOptional() + metadata?: any; + + @HideField() + deletedAt?: Date | 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; - - @HideField() - passwordHash?: string; - - @Field(() => Boolean, {nullable:true}) - emailVerified?: boolean; - - @Field(() => GraphQLJSON, {nullable:true}) - metadata?: any; - @HideField() workspaceMember?: WorkspaceMemberUncheckedCreateNestedOneWithoutUserInput; diff --git a/server/src/core/@generated/user/user-unchecked-create-without-refresh-tokens.input.ts b/server/src/core/@generated/user/user-unchecked-create-without-refresh-tokens.input.ts index 9890a46b0b..a97385c016 100644 --- a/server/src/core/@generated/user/user-unchecked-create-without-refresh-tokens.input.ts +++ b/server/src/core/@generated/user/user-unchecked-create-without-refresh-tokens.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; import { WorkspaceMemberUncheckedCreateNestedOneWithoutUserInput } from '../workspace-member/workspace-member-unchecked-create-nested-one-without-user.input'; @@ -10,47 +11,65 @@ import { CommentUncheckedCreateNestedManyWithoutAuthorInput } from '../comment/c export class UserUncheckedCreateWithoutRefreshTokensInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + @Validator.IsOptional() + displayName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsEmail() + email!: string; + + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + emailVerified?: boolean; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + avatarUrl?: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + locale!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + phoneNumber?: string; + + @Field(() => Date, {nullable:true}) + @Validator.IsDate() + @Validator.IsOptional() + lastSeen?: Date | string; + + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + disabled?: boolean; + + @HideField() + passwordHash?: string; + + @Field(() => GraphQLJSON, {nullable:true}) + @Validator.IsJSON() + @Validator.IsOptional() + metadata?: any; + + @HideField() + deletedAt?: Date | 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; - - @HideField() - passwordHash?: string; - - @Field(() => Boolean, {nullable:true}) - emailVerified?: boolean; - - @Field(() => GraphQLJSON, {nullable:true}) - metadata?: any; - @HideField() workspaceMember?: WorkspaceMemberUncheckedCreateNestedOneWithoutUserInput; diff --git a/server/src/core/@generated/user/user-unchecked-create-without-workspace-member.input.ts b/server/src/core/@generated/user/user-unchecked-create-without-workspace-member.input.ts index 1edf7fc69d..cc0c1f80df 100644 --- a/server/src/core/@generated/user/user-unchecked-create-without-workspace-member.input.ts +++ b/server/src/core/@generated/user/user-unchecked-create-without-workspace-member.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; import { CompanyUncheckedCreateNestedManyWithoutAccountOwnerInput } from '../company/company-unchecked-create-nested-many-without-account-owner.input'; @@ -10,47 +11,65 @@ import { CommentUncheckedCreateNestedManyWithoutAuthorInput } from '../comment/c export class UserUncheckedCreateWithoutWorkspaceMemberInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + @Validator.IsOptional() + displayName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsEmail() + email!: string; + + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + emailVerified?: boolean; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + avatarUrl?: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + locale!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + phoneNumber?: string; + + @Field(() => Date, {nullable:true}) + @Validator.IsDate() + @Validator.IsOptional() + lastSeen?: Date | string; + + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + disabled?: boolean; + + @HideField() + passwordHash?: string; + + @Field(() => GraphQLJSON, {nullable:true}) + @Validator.IsJSON() + @Validator.IsOptional() + metadata?: any; + + @HideField() + deletedAt?: Date | 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; - - @HideField() - passwordHash?: string; - - @Field(() => Boolean, {nullable:true}) - emailVerified?: boolean; - - @Field(() => GraphQLJSON, {nullable:true}) - metadata?: any; - @Field(() => CompanyUncheckedCreateNestedManyWithoutAccountOwnerInput, {nullable:true}) companies?: CompanyUncheckedCreateNestedManyWithoutAccountOwnerInput; diff --git a/server/src/core/@generated/user/user-unchecked-create.input.ts b/server/src/core/@generated/user/user-unchecked-create.input.ts index 88746cad7a..4c09171004 100644 --- a/server/src/core/@generated/user/user-unchecked-create.input.ts +++ b/server/src/core/@generated/user/user-unchecked-create.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; import { WorkspaceMemberUncheckedCreateNestedOneWithoutUserInput } from '../workspace-member/workspace-member-unchecked-create-nested-one-without-user.input'; @@ -11,47 +12,65 @@ import { CommentUncheckedCreateNestedManyWithoutAuthorInput } from '../comment/c export class UserUncheckedCreateInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + @Validator.IsOptional() + displayName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsEmail() + email!: string; + + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + emailVerified?: boolean; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + avatarUrl?: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + locale!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + phoneNumber?: string; + + @Field(() => Date, {nullable:true}) + @Validator.IsDate() + @Validator.IsOptional() + lastSeen?: Date | string; + + @Field(() => Boolean, {nullable:true}) + @Validator.IsBoolean() + @Validator.IsOptional() + disabled?: boolean; + + @HideField() + passwordHash?: string; + + @Field(() => GraphQLJSON, {nullable:true}) + @Validator.IsJSON() + @Validator.IsOptional() + metadata?: any; + + @HideField() + deletedAt?: Date | 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; - - @HideField() - passwordHash?: string; - - @Field(() => Boolean, {nullable:true}) - emailVerified?: boolean; - - @Field(() => GraphQLJSON, {nullable:true}) - metadata?: any; - @HideField() workspaceMember?: WorkspaceMemberUncheckedCreateNestedOneWithoutUserInput; diff --git a/server/src/core/@generated/user/user-unchecked-update-many.input.ts b/server/src/core/@generated/user/user-unchecked-update-many.input.ts index 419854f1a6..131fba85a0 100644 --- a/server/src/core/@generated/user/user-unchecked-update-many.input.ts +++ b/server/src/core/@generated/user/user-unchecked-update-many.input.ts @@ -1,12 +1,13 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; +import * as Validator from 'class-validator'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class UserUncheckedUpdateManyInput { @@ -14,27 +15,15 @@ export class UserUncheckedUpdateManyInput { @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(() => BoolFieldUpdateOperationsInput, {nullable:true}) + emailVerified?: BoolFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) avatarUrl?: NullableStringFieldUpdateOperationsInput; @@ -44,12 +33,26 @@ export class UserUncheckedUpdateManyInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) phoneNumber?: NullableStringFieldUpdateOperationsInput; + @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) + lastSeen?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) + disabled?: BoolFieldUpdateOperationsInput; + @HideField() passwordHash?: NullableStringFieldUpdateOperationsInput; - @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) - emailVerified?: BoolFieldUpdateOperationsInput; - @Field(() => GraphQLJSON, {nullable:true}) + @Validator.IsJSON() + @Validator.IsOptional() metadata?: any; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/user/user-unchecked-update-without-comments.input.ts b/server/src/core/@generated/user/user-unchecked-update-without-comments.input.ts index de6eb52682..554d886b5c 100644 --- a/server/src/core/@generated/user/user-unchecked-update-without-comments.input.ts +++ b/server/src/core/@generated/user/user-unchecked-update-without-comments.input.ts @@ -1,12 +1,13 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; +import * as Validator from 'class-validator'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; 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'; @@ -17,27 +18,15 @@ 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(() => BoolFieldUpdateOperationsInput, {nullable:true}) + emailVerified?: BoolFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) avatarUrl?: NullableStringFieldUpdateOperationsInput; @@ -47,15 +36,29 @@ export class UserUncheckedUpdateWithoutCommentsInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) phoneNumber?: NullableStringFieldUpdateOperationsInput; + @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) + lastSeen?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) + disabled?: BoolFieldUpdateOperationsInput; + @HideField() passwordHash?: NullableStringFieldUpdateOperationsInput; - @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) - emailVerified?: BoolFieldUpdateOperationsInput; - @Field(() => GraphQLJSON, {nullable:true}) + @Validator.IsJSON() + @Validator.IsOptional() metadata?: any; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @HideField() workspaceMember?: WorkspaceMemberUncheckedUpdateOneWithoutUserNestedInput; diff --git a/server/src/core/@generated/user/user-unchecked-update-without-companies.input.ts b/server/src/core/@generated/user/user-unchecked-update-without-companies.input.ts index 65a0ead72f..ecbb841e15 100644 --- a/server/src/core/@generated/user/user-unchecked-update-without-companies.input.ts +++ b/server/src/core/@generated/user/user-unchecked-update-without-companies.input.ts @@ -1,12 +1,13 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; +import * as Validator from 'class-validator'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; 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'; @@ -17,27 +18,15 @@ export class UserUncheckedUpdateWithoutCompaniesInput { @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(() => BoolFieldUpdateOperationsInput, {nullable:true}) + emailVerified?: BoolFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) avatarUrl?: NullableStringFieldUpdateOperationsInput; @@ -47,15 +36,29 @@ export class UserUncheckedUpdateWithoutCompaniesInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) phoneNumber?: NullableStringFieldUpdateOperationsInput; + @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) + lastSeen?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) + disabled?: BoolFieldUpdateOperationsInput; + @HideField() passwordHash?: NullableStringFieldUpdateOperationsInput; - @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) - emailVerified?: BoolFieldUpdateOperationsInput; - @Field(() => GraphQLJSON, {nullable:true}) + @Validator.IsJSON() + @Validator.IsOptional() metadata?: any; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @HideField() workspaceMember?: WorkspaceMemberUncheckedUpdateOneWithoutUserNestedInput; diff --git a/server/src/core/@generated/user/user-unchecked-update-without-refresh-tokens.input.ts b/server/src/core/@generated/user/user-unchecked-update-without-refresh-tokens.input.ts index d6c3107293..6b5f6abc08 100644 --- a/server/src/core/@generated/user/user-unchecked-update-without-refresh-tokens.input.ts +++ b/server/src/core/@generated/user/user-unchecked-update-without-refresh-tokens.input.ts @@ -1,12 +1,13 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; +import * as Validator from 'class-validator'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; 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'; @@ -17,27 +18,15 @@ export class UserUncheckedUpdateWithoutRefreshTokensInput { @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(() => BoolFieldUpdateOperationsInput, {nullable:true}) + emailVerified?: BoolFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) avatarUrl?: NullableStringFieldUpdateOperationsInput; @@ -47,15 +36,29 @@ export class UserUncheckedUpdateWithoutRefreshTokensInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) phoneNumber?: NullableStringFieldUpdateOperationsInput; + @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) + lastSeen?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) + disabled?: BoolFieldUpdateOperationsInput; + @HideField() passwordHash?: NullableStringFieldUpdateOperationsInput; - @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) - emailVerified?: BoolFieldUpdateOperationsInput; - @Field(() => GraphQLJSON, {nullable:true}) + @Validator.IsJSON() + @Validator.IsOptional() metadata?: any; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @HideField() workspaceMember?: WorkspaceMemberUncheckedUpdateOneWithoutUserNestedInput; diff --git a/server/src/core/@generated/user/user-unchecked-update-without-workspace-member.input.ts b/server/src/core/@generated/user/user-unchecked-update-without-workspace-member.input.ts index 6c91ec298f..b9ed79b114 100644 --- a/server/src/core/@generated/user/user-unchecked-update-without-workspace-member.input.ts +++ b/server/src/core/@generated/user/user-unchecked-update-without-workspace-member.input.ts @@ -1,12 +1,13 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; +import * as Validator from 'class-validator'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.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'; @@ -17,27 +18,15 @@ export class UserUncheckedUpdateWithoutWorkspaceMemberInput { @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(() => BoolFieldUpdateOperationsInput, {nullable:true}) + emailVerified?: BoolFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) avatarUrl?: NullableStringFieldUpdateOperationsInput; @@ -47,15 +36,29 @@ export class UserUncheckedUpdateWithoutWorkspaceMemberInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) phoneNumber?: NullableStringFieldUpdateOperationsInput; + @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) + lastSeen?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) + disabled?: BoolFieldUpdateOperationsInput; + @HideField() passwordHash?: NullableStringFieldUpdateOperationsInput; - @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) - emailVerified?: BoolFieldUpdateOperationsInput; - @Field(() => GraphQLJSON, {nullable:true}) + @Validator.IsJSON() + @Validator.IsOptional() metadata?: any; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => CompanyUncheckedUpdateManyWithoutAccountOwnerNestedInput, {nullable:true}) companies?: CompanyUncheckedUpdateManyWithoutAccountOwnerNestedInput; diff --git a/server/src/core/@generated/user/user-unchecked-update.input.ts b/server/src/core/@generated/user/user-unchecked-update.input.ts index dfe9d6e7cc..ecd581669d 100644 --- a/server/src/core/@generated/user/user-unchecked-update.input.ts +++ b/server/src/core/@generated/user/user-unchecked-update.input.ts @@ -1,12 +1,13 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; +import * as Validator from 'class-validator'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; 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'; @@ -18,27 +19,15 @@ export class UserUncheckedUpdateInput { @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(() => BoolFieldUpdateOperationsInput, {nullable:true}) + emailVerified?: BoolFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) avatarUrl?: NullableStringFieldUpdateOperationsInput; @@ -48,15 +37,29 @@ export class UserUncheckedUpdateInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) phoneNumber?: NullableStringFieldUpdateOperationsInput; + @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) + lastSeen?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) + disabled?: BoolFieldUpdateOperationsInput; + @HideField() passwordHash?: NullableStringFieldUpdateOperationsInput; - @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) - emailVerified?: BoolFieldUpdateOperationsInput; - @Field(() => GraphQLJSON, {nullable:true}) + @Validator.IsJSON() + @Validator.IsOptional() metadata?: any; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @HideField() workspaceMember?: WorkspaceMemberUncheckedUpdateOneWithoutUserNestedInput; diff --git a/server/src/core/@generated/user/user-update-many-mutation.input.ts b/server/src/core/@generated/user/user-update-many-mutation.input.ts index 2177fa9970..866f0c68e1 100644 --- a/server/src/core/@generated/user/user-update-many-mutation.input.ts +++ b/server/src/core/@generated/user/user-update-many-mutation.input.ts @@ -1,12 +1,13 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; +import * as Validator from 'class-validator'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class UserUpdateManyMutationInput { @@ -14,27 +15,15 @@ export class UserUpdateManyMutationInput { @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(() => BoolFieldUpdateOperationsInput, {nullable:true}) + emailVerified?: BoolFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) avatarUrl?: NullableStringFieldUpdateOperationsInput; @@ -44,12 +33,26 @@ export class UserUpdateManyMutationInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) phoneNumber?: NullableStringFieldUpdateOperationsInput; + @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) + lastSeen?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) + disabled?: BoolFieldUpdateOperationsInput; + @HideField() passwordHash?: NullableStringFieldUpdateOperationsInput; - @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) - emailVerified?: BoolFieldUpdateOperationsInput; - @Field(() => GraphQLJSON, {nullable:true}) + @Validator.IsJSON() + @Validator.IsOptional() metadata?: any; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/user/user-update-without-comments.input.ts b/server/src/core/@generated/user/user-update-without-comments.input.ts index 519082a64a..7fbf116a60 100644 --- a/server/src/core/@generated/user/user-update-without-comments.input.ts +++ b/server/src/core/@generated/user/user-update-without-comments.input.ts @@ -1,12 +1,13 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; +import * as Validator from 'class-validator'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; 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'; @@ -17,27 +18,15 @@ 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(() => BoolFieldUpdateOperationsInput, {nullable:true}) + emailVerified?: BoolFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) avatarUrl?: NullableStringFieldUpdateOperationsInput; @@ -47,15 +36,29 @@ export class UserUpdateWithoutCommentsInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) phoneNumber?: NullableStringFieldUpdateOperationsInput; + @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) + lastSeen?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) + disabled?: BoolFieldUpdateOperationsInput; + @HideField() passwordHash?: NullableStringFieldUpdateOperationsInput; - @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) - emailVerified?: BoolFieldUpdateOperationsInput; - @Field(() => GraphQLJSON, {nullable:true}) + @Validator.IsJSON() + @Validator.IsOptional() metadata?: any; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @HideField() workspaceMember?: WorkspaceMemberUpdateOneWithoutUserNestedInput; diff --git a/server/src/core/@generated/user/user-update-without-companies.input.ts b/server/src/core/@generated/user/user-update-without-companies.input.ts index af8daa2419..2757afc63e 100644 --- a/server/src/core/@generated/user/user-update-without-companies.input.ts +++ b/server/src/core/@generated/user/user-update-without-companies.input.ts @@ -1,12 +1,13 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; +import * as Validator from 'class-validator'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; 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'; @@ -17,27 +18,15 @@ export class UserUpdateWithoutCompaniesInput { @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(() => BoolFieldUpdateOperationsInput, {nullable:true}) + emailVerified?: BoolFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) avatarUrl?: NullableStringFieldUpdateOperationsInput; @@ -47,15 +36,29 @@ export class UserUpdateWithoutCompaniesInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) phoneNumber?: NullableStringFieldUpdateOperationsInput; + @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) + lastSeen?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) + disabled?: BoolFieldUpdateOperationsInput; + @HideField() passwordHash?: NullableStringFieldUpdateOperationsInput; - @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) - emailVerified?: BoolFieldUpdateOperationsInput; - @Field(() => GraphQLJSON, {nullable:true}) + @Validator.IsJSON() + @Validator.IsOptional() metadata?: any; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @HideField() workspaceMember?: WorkspaceMemberUpdateOneWithoutUserNestedInput; diff --git a/server/src/core/@generated/user/user-update-without-refresh-tokens.input.ts b/server/src/core/@generated/user/user-update-without-refresh-tokens.input.ts index 575a90a3c2..6c63d0ca40 100644 --- a/server/src/core/@generated/user/user-update-without-refresh-tokens.input.ts +++ b/server/src/core/@generated/user/user-update-without-refresh-tokens.input.ts @@ -1,12 +1,13 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; +import * as Validator from 'class-validator'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; 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'; @@ -17,27 +18,15 @@ export class UserUpdateWithoutRefreshTokensInput { @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(() => BoolFieldUpdateOperationsInput, {nullable:true}) + emailVerified?: BoolFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) avatarUrl?: NullableStringFieldUpdateOperationsInput; @@ -47,15 +36,29 @@ export class UserUpdateWithoutRefreshTokensInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) phoneNumber?: NullableStringFieldUpdateOperationsInput; + @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) + lastSeen?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) + disabled?: BoolFieldUpdateOperationsInput; + @HideField() passwordHash?: NullableStringFieldUpdateOperationsInput; - @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) - emailVerified?: BoolFieldUpdateOperationsInput; - @Field(() => GraphQLJSON, {nullable:true}) + @Validator.IsJSON() + @Validator.IsOptional() metadata?: any; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @HideField() workspaceMember?: WorkspaceMemberUpdateOneWithoutUserNestedInput; diff --git a/server/src/core/@generated/user/user-update-without-workspace-member.input.ts b/server/src/core/@generated/user/user-update-without-workspace-member.input.ts index 88d312c962..7e94800af9 100644 --- a/server/src/core/@generated/user/user-update-without-workspace-member.input.ts +++ b/server/src/core/@generated/user/user-update-without-workspace-member.input.ts @@ -1,12 +1,13 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; +import * as Validator from 'class-validator'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.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'; @@ -17,27 +18,15 @@ export class UserUpdateWithoutWorkspaceMemberInput { @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(() => BoolFieldUpdateOperationsInput, {nullable:true}) + emailVerified?: BoolFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) avatarUrl?: NullableStringFieldUpdateOperationsInput; @@ -47,15 +36,29 @@ export class UserUpdateWithoutWorkspaceMemberInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) phoneNumber?: NullableStringFieldUpdateOperationsInput; + @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) + lastSeen?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) + disabled?: BoolFieldUpdateOperationsInput; + @HideField() passwordHash?: NullableStringFieldUpdateOperationsInput; - @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) - emailVerified?: BoolFieldUpdateOperationsInput; - @Field(() => GraphQLJSON, {nullable:true}) + @Validator.IsJSON() + @Validator.IsOptional() metadata?: any; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => CompanyUpdateManyWithoutAccountOwnerNestedInput, {nullable:true}) companies?: CompanyUpdateManyWithoutAccountOwnerNestedInput; diff --git a/server/src/core/@generated/user/user-update.input.ts b/server/src/core/@generated/user/user-update.input.ts index bad932e8f9..db017f622e 100644 --- a/server/src/core/@generated/user/user-update.input.ts +++ b/server/src/core/@generated/user/user-update.input.ts @@ -1,12 +1,13 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; import { GraphQLJSON } from 'graphql-type-json'; +import * as Validator from 'class-validator'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; 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'; @@ -18,27 +19,15 @@ export class UserUpdateInput { @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(() => BoolFieldUpdateOperationsInput, {nullable:true}) + emailVerified?: BoolFieldUpdateOperationsInput; + @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) avatarUrl?: NullableStringFieldUpdateOperationsInput; @@ -48,15 +37,29 @@ export class UserUpdateInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) phoneNumber?: NullableStringFieldUpdateOperationsInput; + @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) + lastSeen?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) + disabled?: BoolFieldUpdateOperationsInput; + @HideField() passwordHash?: NullableStringFieldUpdateOperationsInput; - @Field(() => BoolFieldUpdateOperationsInput, {nullable:true}) - emailVerified?: BoolFieldUpdateOperationsInput; - @Field(() => GraphQLJSON, {nullable:true}) + @Validator.IsJSON() + @Validator.IsOptional() metadata?: any; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @HideField() workspaceMember?: WorkspaceMemberUpdateOneWithoutUserNestedInput; diff --git a/server/src/core/@generated/user/user-where-unique.input.ts b/server/src/core/@generated/user/user-where-unique.input.ts index 97328c85b8..67516f1d68 100644 --- a/server/src/core/@generated/user/user-where-unique.input.ts +++ b/server/src/core/@generated/user/user-where-unique.input.ts @@ -1,12 +1,16 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; @InputType() export class UserWhereUniqueInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; @Field(() => String, {nullable:true}) + @Validator.IsEmail() email?: string; } diff --git a/server/src/core/@generated/user/user-where.input.ts b/server/src/core/@generated/user/user-where.input.ts index 67e1ba7a09..4c574304e2 100644 --- a/server/src/core/@generated/user/user-where.input.ts +++ b/server/src/core/@generated/user/user-where.input.ts @@ -1,12 +1,12 @@ 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 { BoolFilter } from '../prisma/bool-filter.input'; import { StringNullableFilter } from '../prisma/string-nullable-filter.input'; +import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; import { HideField } from '@nestjs/graphql'; import { JsonNullableFilter } from '../prisma/json-nullable-filter.input'; +import { DateTimeFilter } from '../prisma/date-time-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'; @@ -27,27 +27,15 @@ export class UserWhereInput { @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(() => DateTimeNullableFilter, {nullable:true}) - lastSeen?: DateTimeNullableFilter; - - @Field(() => BoolFilter, {nullable:true}) - disabled?: BoolFilter; - @Field(() => StringFilter, {nullable:true}) displayName?: StringFilter; @Field(() => StringFilter, {nullable:true}) email?: StringFilter; + @Field(() => BoolFilter, {nullable:true}) + emailVerified?: BoolFilter; + @Field(() => StringNullableFilter, {nullable:true}) avatarUrl?: StringNullableFilter; @@ -57,15 +45,27 @@ export class UserWhereInput { @Field(() => StringNullableFilter, {nullable:true}) phoneNumber?: StringNullableFilter; + @Field(() => DateTimeNullableFilter, {nullable:true}) + lastSeen?: DateTimeNullableFilter; + + @Field(() => BoolFilter, {nullable:true}) + disabled?: BoolFilter; + @HideField() passwordHash?: StringNullableFilter; - @Field(() => BoolFilter, {nullable:true}) - emailVerified?: BoolFilter; - @Field(() => JsonNullableFilter, {nullable:true}) metadata?: JsonNullableFilter; + @HideField() + deletedAt?: DateTimeNullableFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + createdAt?: DateTimeFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + updatedAt?: DateTimeFilter; + @HideField() workspaceMember?: WorkspaceMemberRelationFilter; diff --git a/server/src/core/@generated/user/user.model.ts b/server/src/core/@generated/user/user.model.ts index a04f8d96a1..c7983b2f17 100644 --- a/server/src/core/@generated/user/user.model.ts +++ b/server/src/core/@generated/user/user.model.ts @@ -15,27 +15,15 @@ export class User { @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(() => Date, {nullable:true}) - lastSeen!: Date | null; - - @Field(() => Boolean, {nullable:false,defaultValue:false}) - disabled!: boolean; - @Field(() => String, {nullable:false}) displayName!: string; @Field(() => String, {nullable:false}) email!: string; + @Field(() => Boolean, {nullable:false,defaultValue:false}) + emailVerified!: boolean; + @Field(() => String, {nullable:true}) avatarUrl!: string | null; @@ -45,15 +33,27 @@ export class User { @Field(() => String, {nullable:true}) phoneNumber!: string | null; + @Field(() => Date, {nullable:true}) + lastSeen!: Date | null; + + @Field(() => Boolean, {nullable:false,defaultValue:false}) + disabled!: boolean; + @HideField() passwordHash!: string | null; - @Field(() => Boolean, {nullable:false,defaultValue:false}) - emailVerified!: boolean; - @Field(() => GraphQLJSON, {nullable:true}) metadata!: any | null; + @HideField() + deletedAt!: Date | null; + + @Field(() => Date, {nullable:false}) + createdAt!: Date; + + @Field(() => Date, {nullable:false}) + updatedAt!: Date; + @Field(() => WorkspaceMember, {nullable:true}) workspaceMember?: WorkspaceMember | null; diff --git a/server/src/core/@generated/workspace-member/create-many-workspace-member.args.ts b/server/src/core/@generated/workspace-member/create-many-workspace-member.args.ts index 2826764dbc..6200d2a3cb 100644 --- a/server/src/core/@generated/workspace-member/create-many-workspace-member.args.ts +++ b/server/src/core/@generated/workspace-member/create-many-workspace-member.args.ts @@ -2,12 +2,15 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { WorkspaceMemberCreateManyInput } from './workspace-member-create-many.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; @ArgsType() export class CreateManyWorkspaceMemberArgs { @Field(() => [WorkspaceMemberCreateManyInput], {nullable:false}) @Type(() => WorkspaceMemberCreateManyInput) + @ValidateNested({each: true}) + @Type(() => WorkspaceMemberCreateManyInput) data!: Array; @Field(() => Boolean, {nullable:true}) diff --git a/server/src/core/@generated/workspace-member/create-one-workspace-member.args.ts b/server/src/core/@generated/workspace-member/create-one-workspace-member.args.ts index 13962daec3..81c65ffaba 100644 --- a/server/src/core/@generated/workspace-member/create-one-workspace-member.args.ts +++ b/server/src/core/@generated/workspace-member/create-one-workspace-member.args.ts @@ -2,11 +2,14 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { WorkspaceMemberCreateInput } from './workspace-member-create.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; @ArgsType() export class CreateOneWorkspaceMemberArgs { @Field(() => WorkspaceMemberCreateInput, {nullable:false}) @Type(() => WorkspaceMemberCreateInput) + @ValidateNested({each: true}) + @Type(() => WorkspaceMemberCreateInput) data!: WorkspaceMemberCreateInput; } diff --git a/server/src/core/@generated/workspace-member/update-many-workspace-member.args.ts b/server/src/core/@generated/workspace-member/update-many-workspace-member.args.ts index 24b76c75d4..3b90fb76a2 100644 --- a/server/src/core/@generated/workspace-member/update-many-workspace-member.args.ts +++ b/server/src/core/@generated/workspace-member/update-many-workspace-member.args.ts @@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { WorkspaceMemberUpdateManyMutationInput } from './workspace-member-update-many-mutation.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; import { WorkspaceMemberWhereInput } from './workspace-member-where.input'; @ArgsType() @@ -9,6 +10,8 @@ export class UpdateManyWorkspaceMemberArgs { @Field(() => WorkspaceMemberUpdateManyMutationInput, {nullable:false}) @Type(() => WorkspaceMemberUpdateManyMutationInput) + @ValidateNested({each: true}) + @Type(() => WorkspaceMemberUpdateManyMutationInput) data!: WorkspaceMemberUpdateManyMutationInput; @Field(() => WorkspaceMemberWhereInput, {nullable:true}) diff --git a/server/src/core/@generated/workspace-member/update-one-workspace-member.args.ts b/server/src/core/@generated/workspace-member/update-one-workspace-member.args.ts index b45f838727..06e17b9173 100644 --- a/server/src/core/@generated/workspace-member/update-one-workspace-member.args.ts +++ b/server/src/core/@generated/workspace-member/update-one-workspace-member.args.ts @@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { WorkspaceMemberUpdateInput } from './workspace-member-update.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; import { WorkspaceMemberWhereUniqueInput } from './workspace-member-where-unique.input'; @ArgsType() @@ -9,6 +10,8 @@ export class UpdateOneWorkspaceMemberArgs { @Field(() => WorkspaceMemberUpdateInput, {nullable:false}) @Type(() => WorkspaceMemberUpdateInput) + @ValidateNested({each: true}) + @Type(() => WorkspaceMemberUpdateInput) data!: WorkspaceMemberUpdateInput; @Field(() => WorkspaceMemberWhereUniqueInput, {nullable:false}) diff --git a/server/src/core/@generated/workspace-member/workspace-member-count-aggregate.input.ts b/server/src/core/@generated/workspace-member/workspace-member-count-aggregate.input.ts index babc82423c..6a766d12a4 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-count-aggregate.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-count-aggregate.input.ts @@ -8,21 +8,21 @@ export class WorkspaceMemberCountAggregateInput { @Field(() => Boolean, {nullable:true}) id?: true; + @Field(() => Boolean, {nullable:true}) + userId?: true; + + @HideField() + workspaceId?: true; + + @HideField() + deletedAt?: true; + @Field(() => Boolean, {nullable:true}) createdAt?: true; @Field(() => Boolean, {nullable:true}) updatedAt?: true; - @Field(() => Boolean, {nullable:true}) - deletedAt?: true; - - @Field(() => Boolean, {nullable:true}) - userId?: true; - - @HideField() - workspaceId?: true; - @Field(() => Boolean, {nullable:true}) _all?: true; } diff --git a/server/src/core/@generated/workspace-member/workspace-member-count-aggregate.output.ts b/server/src/core/@generated/workspace-member/workspace-member-count-aggregate.output.ts index d183758ede..2408dbd506 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-count-aggregate.output.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-count-aggregate.output.ts @@ -9,21 +9,21 @@ export class WorkspaceMemberCountAggregate { @Field(() => Int, {nullable:false}) id!: number; + @Field(() => Int, {nullable:false}) + userId!: number; + + @HideField() + workspaceId!: number; + + @HideField() + deletedAt!: number; + @Field(() => Int, {nullable:false}) createdAt!: number; @Field(() => Int, {nullable:false}) updatedAt!: number; - @Field(() => Int, {nullable:false}) - deletedAt!: number; - - @Field(() => Int, {nullable:false}) - userId!: number; - - @HideField() - workspaceId!: number; - @Field(() => Int, {nullable:false}) _all!: number; } diff --git a/server/src/core/@generated/workspace-member/workspace-member-count-order-by-aggregate.input.ts b/server/src/core/@generated/workspace-member/workspace-member-count-order-by-aggregate.input.ts index ddb062392f..da4d87bc25 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-count-order-by-aggregate.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-count-order-by-aggregate.input.ts @@ -9,18 +9,18 @@ export class WorkspaceMemberCountOrderByAggregateInput { @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}) userId?: keyof typeof SortOrder; @HideField() workspaceId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/workspace-member/workspace-member-create-many-workspace.input.ts b/server/src/core/@generated/workspace-member/workspace-member-create-many-workspace.input.ts index da3fee4e98..99f963f407 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-create-many-workspace.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-create-many-workspace.input.ts @@ -1,21 +1,25 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; @InputType() export class WorkspaceMemberCreateManyWorkspaceInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + userId!: string; + + @HideField() + deletedAt?: Date | 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}) - userId!: string; } diff --git a/server/src/core/@generated/workspace-member/workspace-member-create-many.input.ts b/server/src/core/@generated/workspace-member/workspace-member-create-many.input.ts index c8e9f55c49..04172012b1 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-create-many.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-create-many.input.ts @@ -1,25 +1,28 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @InputType() export class WorkspaceMemberCreateManyInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() 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}) userId!: string; @HideField() workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/workspace-member/workspace-member-create-without-user.input.ts b/server/src/core/@generated/workspace-member/workspace-member-create-without-user.input.ts index 03445dd347..0f6143ade3 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-create-without-user.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-create-without-user.input.ts @@ -1,23 +1,26 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; -import { WorkspaceCreateNestedOneWithoutWorkspaceMemberInput } from '../workspace/workspace-create-nested-one-without-workspace-member.input'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; +import { WorkspaceCreateNestedOneWithoutWorkspaceMemberInput } from '../workspace/workspace-create-nested-one-without-workspace-member.input'; @InputType() export class WorkspaceMemberCreateWithoutUserInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @HideField() workspace!: WorkspaceCreateNestedOneWithoutWorkspaceMemberInput; } diff --git a/server/src/core/@generated/workspace-member/workspace-member-create-without-workspace.input.ts b/server/src/core/@generated/workspace-member/workspace-member-create-without-workspace.input.ts index 5b85f0594a..db865d5bff 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-create-without-workspace.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-create-without-workspace.input.ts @@ -1,22 +1,26 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; import { UserCreateNestedOneWithoutWorkspaceMemberInput } from '../user/user-create-nested-one-without-workspace-member.input'; @InputType() export class WorkspaceMemberCreateWithoutWorkspaceInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => UserCreateNestedOneWithoutWorkspaceMemberInput, {nullable:false}) user!: UserCreateNestedOneWithoutWorkspaceMemberInput; } diff --git a/server/src/core/@generated/workspace-member/workspace-member-create.input.ts b/server/src/core/@generated/workspace-member/workspace-member-create.input.ts index 0f28da79d1..0f73b983e1 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-create.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-create.input.ts @@ -1,24 +1,27 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; import { UserCreateNestedOneWithoutWorkspaceMemberInput } from '../user/user-create-nested-one-without-workspace-member.input'; import { WorkspaceCreateNestedOneWithoutWorkspaceMemberInput } from '../workspace/workspace-create-nested-one-without-workspace-member.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class WorkspaceMemberCreateInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @HideField() + deletedAt?: Date | string; + @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; - @Field(() => Date, {nullable:true}) - deletedAt?: Date | string; - @Field(() => UserCreateNestedOneWithoutWorkspaceMemberInput, {nullable:false}) user!: UserCreateNestedOneWithoutWorkspaceMemberInput; diff --git a/server/src/core/@generated/workspace-member/workspace-member-group-by.output.ts b/server/src/core/@generated/workspace-member/workspace-member-group-by.output.ts index 2d6aaceb6c..d4c0b6bde3 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-group-by.output.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-group-by.output.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; import { WorkspaceMemberCountAggregate } from './workspace-member-count-aggregate.output'; import { WorkspaceMemberMinAggregate } from './workspace-member-min-aggregate.output'; @@ -9,23 +10,25 @@ import { WorkspaceMemberMaxAggregate } from './workspace-member-max-aggregate.ou export class WorkspaceMemberGroupBy { @Field(() => String, {nullable:false}) + @Validator.IsString() + @Validator.IsOptional() 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}) userId!: string; @HideField() workspaceId!: string; + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:false}) + createdAt!: Date | string; + + @Field(() => Date, {nullable:false}) + updatedAt!: Date | string; + @Field(() => WorkspaceMemberCountAggregate, {nullable:true}) _count?: WorkspaceMemberCountAggregate; diff --git a/server/src/core/@generated/workspace-member/workspace-member-max-aggregate.input.ts b/server/src/core/@generated/workspace-member/workspace-member-max-aggregate.input.ts index 666c73eeb1..15f6ad56a5 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-max-aggregate.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-max-aggregate.input.ts @@ -8,18 +8,18 @@ export class WorkspaceMemberMaxAggregateInput { @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}) userId?: true; @HideField() workspaceId?: true; + + @HideField() + deletedAt?: true; + + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; } diff --git a/server/src/core/@generated/workspace-member/workspace-member-max-aggregate.output.ts b/server/src/core/@generated/workspace-member/workspace-member-max-aggregate.output.ts index b416998111..02821577b5 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-max-aggregate.output.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-max-aggregate.output.ts @@ -1,25 +1,28 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @ObjectType() export class WorkspaceMemberMaxAggregate { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() 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}) userId?: string; @HideField() workspaceId?: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/workspace-member/workspace-member-max-order-by-aggregate.input.ts b/server/src/core/@generated/workspace-member/workspace-member-max-order-by-aggregate.input.ts index b33368325b..50fccb6feb 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-max-order-by-aggregate.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-max-order-by-aggregate.input.ts @@ -9,18 +9,18 @@ export class WorkspaceMemberMaxOrderByAggregateInput { @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}) userId?: keyof typeof SortOrder; @HideField() workspaceId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/workspace-member/workspace-member-min-aggregate.input.ts b/server/src/core/@generated/workspace-member/workspace-member-min-aggregate.input.ts index 8b6726ea2d..2fef19d2ec 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-min-aggregate.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-min-aggregate.input.ts @@ -8,18 +8,18 @@ export class WorkspaceMemberMinAggregateInput { @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}) userId?: true; @HideField() workspaceId?: true; + + @HideField() + deletedAt?: true; + + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; } diff --git a/server/src/core/@generated/workspace-member/workspace-member-min-aggregate.output.ts b/server/src/core/@generated/workspace-member/workspace-member-min-aggregate.output.ts index f28d24a333..3885190b48 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-min-aggregate.output.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-min-aggregate.output.ts @@ -1,25 +1,28 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @ObjectType() export class WorkspaceMemberMinAggregate { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() 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}) userId?: string; @HideField() workspaceId?: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/workspace-member/workspace-member-min-order-by-aggregate.input.ts b/server/src/core/@generated/workspace-member/workspace-member-min-order-by-aggregate.input.ts index 1c88be9b9b..c15f9c5e5c 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-min-order-by-aggregate.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-min-order-by-aggregate.input.ts @@ -9,18 +9,18 @@ export class WorkspaceMemberMinOrderByAggregateInput { @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}) userId?: keyof typeof SortOrder; @HideField() workspaceId?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/workspace-member/workspace-member-order-by-with-aggregation.input.ts b/server/src/core/@generated/workspace-member/workspace-member-order-by-with-aggregation.input.ts index e36f0ebd5e..f789f946a3 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-order-by-with-aggregation.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-order-by-with-aggregation.input.ts @@ -12,21 +12,21 @@ export class WorkspaceMemberOrderByWithAggregationInput { @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}) userId?: keyof typeof SortOrder; @HideField() workspaceId?: keyof typeof SortOrder; + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; + @Field(() => WorkspaceMemberCountOrderByAggregateInput, {nullable:true}) _count?: WorkspaceMemberCountOrderByAggregateInput; diff --git a/server/src/core/@generated/workspace-member/workspace-member-order-by-with-relation.input.ts b/server/src/core/@generated/workspace-member/workspace-member-order-by-with-relation.input.ts index 4509bebd96..db0e3bcda9 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-order-by-with-relation.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-order-by-with-relation.input.ts @@ -11,21 +11,21 @@ export class WorkspaceMemberOrderByWithRelationInput { @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}) userId?: keyof typeof SortOrder; @HideField() workspaceId?: keyof typeof SortOrder; + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; + @Field(() => UserOrderByWithRelationInput, {nullable:true}) user?: UserOrderByWithRelationInput; diff --git a/server/src/core/@generated/workspace-member/workspace-member-scalar-field.enum.ts b/server/src/core/@generated/workspace-member/workspace-member-scalar-field.enum.ts index 4089c03d70..ac16b76782 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-scalar-field.enum.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-scalar-field.enum.ts @@ -2,11 +2,11 @@ import { registerEnumType } from '@nestjs/graphql'; export enum WorkspaceMemberScalarFieldEnum { id = "id", - createdAt = "createdAt", - updatedAt = "updatedAt", - deletedAt = "deletedAt", userId = "userId", - workspaceId = "workspaceId" + workspaceId = "workspaceId", + deletedAt = "deletedAt", + createdAt = "createdAt", + updatedAt = "updatedAt" } diff --git a/server/src/core/@generated/workspace-member/workspace-member-scalar-where-with-aggregates.input.ts b/server/src/core/@generated/workspace-member/workspace-member-scalar-where-with-aggregates.input.ts index 9742a78f4d..4aa743e2ae 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-scalar-where-with-aggregates.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-scalar-where-with-aggregates.input.ts @@ -1,9 +1,9 @@ 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'; +import { DateTimeNullableWithAggregatesFilter } from '../prisma/date-time-nullable-with-aggregates-filter.input'; +import { DateTimeWithAggregatesFilter } from '../prisma/date-time-with-aggregates-filter.input'; @InputType() export class WorkspaceMemberScalarWhereWithAggregatesInput { @@ -20,18 +20,18 @@ export class WorkspaceMemberScalarWhereWithAggregatesInput { @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}) userId?: StringWithAggregatesFilter; @HideField() workspaceId?: StringWithAggregatesFilter; + + @HideField() + deletedAt?: DateTimeNullableWithAggregatesFilter; + + @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) + createdAt?: DateTimeWithAggregatesFilter; + + @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) + updatedAt?: DateTimeWithAggregatesFilter; } diff --git a/server/src/core/@generated/workspace-member/workspace-member-scalar-where.input.ts b/server/src/core/@generated/workspace-member/workspace-member-scalar-where.input.ts index 387a91005c..bfdf54c870 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-scalar-where.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-scalar-where.input.ts @@ -1,9 +1,9 @@ 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 { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; +import { DateTimeFilter } from '../prisma/date-time-filter.input'; @InputType() export class WorkspaceMemberScalarWhereInput { @@ -20,18 +20,18 @@ export class WorkspaceMemberScalarWhereInput { @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}) userId?: StringFilter; @HideField() workspaceId?: StringFilter; + + @HideField() + deletedAt?: DateTimeNullableFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + createdAt?: DateTimeFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + updatedAt?: DateTimeFilter; } diff --git a/server/src/core/@generated/workspace-member/workspace-member-unchecked-create-without-user.input.ts b/server/src/core/@generated/workspace-member/workspace-member-unchecked-create-without-user.input.ts index 076441c524..81c6c48992 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-unchecked-create-without-user.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-unchecked-create-without-user.input.ts @@ -1,22 +1,25 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @InputType() export class WorkspaceMemberUncheckedCreateWithoutUserInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @HideField() + workspaceId!: string; + + @HideField() + deletedAt?: Date | 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/core/@generated/workspace-member/workspace-member-unchecked-create-without-workspace.input.ts b/server/src/core/@generated/workspace-member/workspace-member-unchecked-create-without-workspace.input.ts index f3abf7f798..49879e471c 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-unchecked-create-without-workspace.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-unchecked-create-without-workspace.input.ts @@ -1,21 +1,25 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; @InputType() export class WorkspaceMemberUncheckedCreateWithoutWorkspaceInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + userId!: string; + + @HideField() + deletedAt?: Date | 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}) - userId!: string; } diff --git a/server/src/core/@generated/workspace-member/workspace-member-unchecked-create.input.ts b/server/src/core/@generated/workspace-member/workspace-member-unchecked-create.input.ts index 7e4670f3af..bd310356e5 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-unchecked-create.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-unchecked-create.input.ts @@ -1,25 +1,28 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; import { HideField } from '@nestjs/graphql'; @InputType() export class WorkspaceMemberUncheckedCreateInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() 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}) userId!: string; @HideField() workspaceId!: string; + + @HideField() + deletedAt?: Date | string; + + @Field(() => Date, {nullable:true}) + createdAt?: Date | string; + + @Field(() => Date, {nullable:true}) + updatedAt?: Date | string; } diff --git a/server/src/core/@generated/workspace-member/workspace-member-unchecked-update-many-without-workspace-member.input.ts b/server/src/core/@generated/workspace-member/workspace-member-unchecked-update-many-without-workspace-member.input.ts index c4454b5724..6655f7c147 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-unchecked-update-many-without-workspace-member.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-unchecked-update-many-without-workspace-member.input.ts @@ -1,8 +1,9 @@ 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 { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceMemberInput { @@ -10,15 +11,15 @@ export class WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceMemberInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + userId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) createdAt?: DateTimeFieldUpdateOperationsInput; @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) - userId?: StringFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/workspace-member/workspace-member-unchecked-update-many.input.ts b/server/src/core/@generated/workspace-member/workspace-member-unchecked-update-many.input.ts index 8021ea6745..68c83f07c9 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-unchecked-update-many.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-unchecked-update-many.input.ts @@ -1,9 +1,9 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class WorkspaceMemberUncheckedUpdateManyInput { @@ -11,18 +11,18 @@ export class WorkspaceMemberUncheckedUpdateManyInput { @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}) userId?: StringFieldUpdateOperationsInput; @HideField() workspaceId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/workspace-member/workspace-member-unchecked-update-without-user.input.ts b/server/src/core/@generated/workspace-member/workspace-member-unchecked-update-without-user.input.ts index de5a4730fc..30781df6fc 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-unchecked-update-without-user.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-unchecked-update-without-user.input.ts @@ -1,9 +1,9 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class WorkspaceMemberUncheckedUpdateWithoutUserInput { @@ -11,15 +11,15 @@ export class WorkspaceMemberUncheckedUpdateWithoutUserInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; + @HideField() + workspaceId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + @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/core/@generated/workspace-member/workspace-member-unchecked-update-without-workspace.input.ts b/server/src/core/@generated/workspace-member/workspace-member-unchecked-update-without-workspace.input.ts index 034faea04e..f6e8a7c527 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-unchecked-update-without-workspace.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-unchecked-update-without-workspace.input.ts @@ -1,8 +1,9 @@ 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 { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class WorkspaceMemberUncheckedUpdateWithoutWorkspaceInput { @@ -10,15 +11,15 @@ export class WorkspaceMemberUncheckedUpdateWithoutWorkspaceInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; + @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) + userId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) createdAt?: DateTimeFieldUpdateOperationsInput; @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - - @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) - userId?: StringFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/workspace-member/workspace-member-unchecked-update.input.ts b/server/src/core/@generated/workspace-member/workspace-member-unchecked-update.input.ts index 9eed855b0e..5a40c8e082 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-unchecked-update.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-unchecked-update.input.ts @@ -1,9 +1,9 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class WorkspaceMemberUncheckedUpdateInput { @@ -11,18 +11,18 @@ export class WorkspaceMemberUncheckedUpdateInput { @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}) userId?: StringFieldUpdateOperationsInput; @HideField() workspaceId?: StringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/workspace-member/workspace-member-update-many-mutation.input.ts b/server/src/core/@generated/workspace-member/workspace-member-update-many-mutation.input.ts index 8553ee7342..1175f66068 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-update-many-mutation.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-update-many-mutation.input.ts @@ -1,8 +1,9 @@ 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 { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class WorkspaceMemberUpdateManyMutationInput { @@ -10,12 +11,12 @@ export class WorkspaceMemberUpdateManyMutationInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) createdAt?: DateTimeFieldUpdateOperationsInput; @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) updatedAt?: DateTimeFieldUpdateOperationsInput; - - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/workspace-member/workspace-member-update-without-user.input.ts b/server/src/core/@generated/workspace-member/workspace-member-update-without-user.input.ts index 115240ac07..8c8cdeae4f 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-update-without-user.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-update-without-user.input.ts @@ -1,10 +1,10 @@ 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 { WorkspaceUpdateOneRequiredWithoutWorkspaceMemberNestedInput } from '../workspace/workspace-update-one-required-without-workspace-member-nested.input'; import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; +import { WorkspaceUpdateOneRequiredWithoutWorkspaceMemberNestedInput } from '../workspace/workspace-update-one-required-without-workspace-member-nested.input'; @InputType() export class WorkspaceMemberUpdateWithoutUserInput { @@ -12,15 +12,15 @@ export class WorkspaceMemberUpdateWithoutUserInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) createdAt?: DateTimeFieldUpdateOperationsInput; @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @HideField() workspace?: WorkspaceUpdateOneRequiredWithoutWorkspaceMemberNestedInput; } diff --git a/server/src/core/@generated/workspace-member/workspace-member-update-without-workspace.input.ts b/server/src/core/@generated/workspace-member/workspace-member-update-without-workspace.input.ts index 815cad2426..d763f9a5bf 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-update-without-workspace.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-update-without-workspace.input.ts @@ -1,8 +1,9 @@ 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 { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { UserUpdateOneRequiredWithoutWorkspaceMemberNestedInput } from '../user/user-update-one-required-without-workspace-member-nested.input'; @InputType() @@ -11,15 +12,15 @@ export class WorkspaceMemberUpdateWithoutWorkspaceInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) createdAt?: DateTimeFieldUpdateOperationsInput; @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => UserUpdateOneRequiredWithoutWorkspaceMemberNestedInput, {nullable:true}) user?: UserUpdateOneRequiredWithoutWorkspaceMemberNestedInput; } diff --git a/server/src/core/@generated/workspace-member/workspace-member-update.input.ts b/server/src/core/@generated/workspace-member/workspace-member-update.input.ts index dcaaef4b4f..343ecf8589 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-update.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-update.input.ts @@ -1,11 +1,11 @@ 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 { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { UserUpdateOneRequiredWithoutWorkspaceMemberNestedInput } from '../user/user-update-one-required-without-workspace-member-nested.input'; import { WorkspaceUpdateOneRequiredWithoutWorkspaceMemberNestedInput } from '../workspace/workspace-update-one-required-without-workspace-member-nested.input'; -import { HideField } from '@nestjs/graphql'; @InputType() export class WorkspaceMemberUpdateInput { @@ -13,15 +13,15 @@ export class WorkspaceMemberUpdateInput { @Field(() => StringFieldUpdateOperationsInput, {nullable:true}) id?: StringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) createdAt?: DateTimeFieldUpdateOperationsInput; @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) updatedAt?: DateTimeFieldUpdateOperationsInput; - @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true}) - deletedAt?: NullableDateTimeFieldUpdateOperationsInput; - @Field(() => UserUpdateOneRequiredWithoutWorkspaceMemberNestedInput, {nullable:true}) user?: UserUpdateOneRequiredWithoutWorkspaceMemberNestedInput; diff --git a/server/src/core/@generated/workspace-member/workspace-member-where-unique.input.ts b/server/src/core/@generated/workspace-member/workspace-member-where-unique.input.ts index 15a39929fa..52ce8efd64 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-where-unique.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-where-unique.input.ts @@ -1,10 +1,13 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; @InputType() export class WorkspaceMemberWhereUniqueInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; @Field(() => String, {nullable:true}) diff --git a/server/src/core/@generated/workspace-member/workspace-member-where.input.ts b/server/src/core/@generated/workspace-member/workspace-member-where.input.ts index 2f6586a299..1eda2d1ae4 100644 --- a/server/src/core/@generated/workspace-member/workspace-member-where.input.ts +++ b/server/src/core/@generated/workspace-member/workspace-member-where.input.ts @@ -1,9 +1,9 @@ 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 { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; +import { DateTimeFilter } from '../prisma/date-time-filter.input'; import { UserRelationFilter } from '../user/user-relation-filter.input'; import { WorkspaceRelationFilter } from '../workspace/workspace-relation-filter.input'; @@ -22,21 +22,21 @@ export class WorkspaceMemberWhereInput { @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}) userId?: StringFilter; @HideField() workspaceId?: StringFilter; + @HideField() + deletedAt?: DateTimeNullableFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + createdAt?: DateTimeFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + updatedAt?: DateTimeFilter; + @Field(() => UserRelationFilter, {nullable:true}) user?: UserRelationFilter; diff --git a/server/src/core/@generated/workspace-member/workspace-member.model.ts b/server/src/core/@generated/workspace-member/workspace-member.model.ts index f6247d9859..225e41e9c7 100644 --- a/server/src/core/@generated/workspace-member/workspace-member.model.ts +++ b/server/src/core/@generated/workspace-member/workspace-member.model.ts @@ -11,21 +11,21 @@ export class WorkspaceMember { @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}) userId!: string; @HideField() workspaceId!: string; + @HideField() + deletedAt!: Date | null; + + @Field(() => Date, {nullable:false}) + createdAt!: Date; + + @Field(() => Date, {nullable:false}) + updatedAt!: Date; + @Field(() => User, {nullable:false}) user?: User; diff --git a/server/src/core/@generated/workspace/create-many-workspace.args.ts b/server/src/core/@generated/workspace/create-many-workspace.args.ts index 34997578e1..9dc7e7e9e6 100644 --- a/server/src/core/@generated/workspace/create-many-workspace.args.ts +++ b/server/src/core/@generated/workspace/create-many-workspace.args.ts @@ -2,12 +2,15 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { WorkspaceCreateManyInput } from './workspace-create-many.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; @ArgsType() export class CreateManyWorkspaceArgs { @Field(() => [WorkspaceCreateManyInput], {nullable:false}) @Type(() => WorkspaceCreateManyInput) + @ValidateNested({each: true}) + @Type(() => WorkspaceCreateManyInput) data!: Array; @Field(() => Boolean, {nullable:true}) diff --git a/server/src/core/@generated/workspace/create-one-workspace.args.ts b/server/src/core/@generated/workspace/create-one-workspace.args.ts index 21d295664c..ce2dec1590 100644 --- a/server/src/core/@generated/workspace/create-one-workspace.args.ts +++ b/server/src/core/@generated/workspace/create-one-workspace.args.ts @@ -2,11 +2,14 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { WorkspaceCreateInput } from './workspace-create.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; @ArgsType() export class CreateOneWorkspaceArgs { @Field(() => WorkspaceCreateInput, {nullable:false}) @Type(() => WorkspaceCreateInput) + @ValidateNested({each: true}) + @Type(() => WorkspaceCreateInput) data!: WorkspaceCreateInput; } diff --git a/server/src/core/@generated/workspace/update-many-workspace.args.ts b/server/src/core/@generated/workspace/update-many-workspace.args.ts index a8dd4fd855..7772c4a692 100644 --- a/server/src/core/@generated/workspace/update-many-workspace.args.ts +++ b/server/src/core/@generated/workspace/update-many-workspace.args.ts @@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { WorkspaceUpdateManyMutationInput } from './workspace-update-many-mutation.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; import { WorkspaceWhereInput } from './workspace-where.input'; @ArgsType() @@ -9,6 +10,8 @@ export class UpdateManyWorkspaceArgs { @Field(() => WorkspaceUpdateManyMutationInput, {nullable:false}) @Type(() => WorkspaceUpdateManyMutationInput) + @ValidateNested({each: true}) + @Type(() => WorkspaceUpdateManyMutationInput) data!: WorkspaceUpdateManyMutationInput; @Field(() => WorkspaceWhereInput, {nullable:true}) diff --git a/server/src/core/@generated/workspace/update-one-workspace.args.ts b/server/src/core/@generated/workspace/update-one-workspace.args.ts index 7a3bc5591f..d28d7161b4 100644 --- a/server/src/core/@generated/workspace/update-one-workspace.args.ts +++ b/server/src/core/@generated/workspace/update-one-workspace.args.ts @@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql'; import { ArgsType } from '@nestjs/graphql'; import { WorkspaceUpdateInput } from './workspace-update.input'; import { Type } from 'class-transformer'; +import { ValidateNested } from 'class-validator'; import { WorkspaceWhereUniqueInput } from './workspace-where-unique.input'; @ArgsType() @@ -9,6 +10,8 @@ export class UpdateOneWorkspaceArgs { @Field(() => WorkspaceUpdateInput, {nullable:false}) @Type(() => WorkspaceUpdateInput) + @ValidateNested({each: true}) + @Type(() => WorkspaceUpdateInput) data!: WorkspaceUpdateInput; @Field(() => WorkspaceWhereUniqueInput, {nullable:false}) diff --git a/server/src/core/@generated/workspace/workspace-count-aggregate.input.ts b/server/src/core/@generated/workspace/workspace-count-aggregate.input.ts index 515c56ef66..f1d672e1bb 100644 --- a/server/src/core/@generated/workspace/workspace-count-aggregate.input.ts +++ b/server/src/core/@generated/workspace/workspace-count-aggregate.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import { HideField } from '@nestjs/graphql'; @InputType() export class WorkspaceCountAggregateInput { @@ -7,15 +8,6 @@ export class WorkspaceCountAggregateInput { @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}) domainName?: true; @@ -25,6 +17,15 @@ export class WorkspaceCountAggregateInput { @Field(() => Boolean, {nullable:true}) logo?: true; + @HideField() + deletedAt?: true; + + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; + @Field(() => Boolean, {nullable:true}) _all?: true; } diff --git a/server/src/core/@generated/workspace/workspace-count-aggregate.output.ts b/server/src/core/@generated/workspace/workspace-count-aggregate.output.ts index 973e6bee09..df84d04c06 100644 --- a/server/src/core/@generated/workspace/workspace-count-aggregate.output.ts +++ b/server/src/core/@generated/workspace/workspace-count-aggregate.output.ts @@ -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 WorkspaceCountAggregate { @@ -8,15 +9,6 @@ export class WorkspaceCountAggregate { @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}) domainName!: number; @@ -26,6 +18,15 @@ export class WorkspaceCountAggregate { @Field(() => Int, {nullable:false}) logo!: number; + @HideField() + deletedAt!: number; + + @Field(() => Int, {nullable:false}) + createdAt!: number; + + @Field(() => Int, {nullable:false}) + updatedAt!: number; + @Field(() => Int, {nullable:false}) _all!: number; } diff --git a/server/src/core/@generated/workspace/workspace-count-order-by-aggregate.input.ts b/server/src/core/@generated/workspace/workspace-count-order-by-aggregate.input.ts index c8989bfdff..8ae33e3e0e 100644 --- a/server/src/core/@generated/workspace/workspace-count-order-by-aggregate.input.ts +++ b/server/src/core/@generated/workspace/workspace-count-order-by-aggregate.input.ts @@ -1,6 +1,7 @@ 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 WorkspaceCountOrderByAggregateInput { @@ -8,15 +9,6 @@ export class WorkspaceCountOrderByAggregateInput { @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}) domainName?: keyof typeof SortOrder; @@ -25,4 +17,13 @@ export class WorkspaceCountOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) logo?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/workspace/workspace-create-many.input.ts b/server/src/core/@generated/workspace/workspace-create-many.input.ts index 19ecd3b703..0a15f1dede 100644 --- a/server/src/core/@generated/workspace/workspace-create-many.input.ts +++ b/server/src/core/@generated/workspace/workspace-create-many.input.ts @@ -1,27 +1,35 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; @InputType() export class WorkspaceCreateManyInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + displayName!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + logo?: string; + + @HideField() + deletedAt?: Date | 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; } diff --git a/server/src/core/@generated/workspace/workspace-create-without-comment-threads.input.ts b/server/src/core/@generated/workspace/workspace-create-without-comment-threads.input.ts index 9ce6c151e4..4c95327a68 100644 --- a/server/src/core/@generated/workspace/workspace-create-without-comment-threads.input.ts +++ b/server/src/core/@generated/workspace/workspace-create-without-comment-threads.input.ts @@ -1,5 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } 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'; @@ -12,26 +14,32 @@ import { PipelineProgressCreateNestedManyWithoutWorkspaceInput } from '../pipeli export class WorkspaceCreateWithoutCommentThreadsInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + displayName!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + logo?: string; + + @HideField() + deletedAt?: Date | 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; diff --git a/server/src/core/@generated/workspace/workspace-create-without-comments.input.ts b/server/src/core/@generated/workspace/workspace-create-without-comments.input.ts index 1160fce325..87c853a6e1 100644 --- a/server/src/core/@generated/workspace/workspace-create-without-comments.input.ts +++ b/server/src/core/@generated/workspace/workspace-create-without-comments.input.ts @@ -1,5 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } 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'; @@ -12,26 +14,32 @@ import { PipelineProgressCreateNestedManyWithoutWorkspaceInput } from '../pipeli export class WorkspaceCreateWithoutCommentsInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + displayName!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + logo?: string; + + @HideField() + deletedAt?: Date | 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; diff --git a/server/src/core/@generated/workspace/workspace-create-without-companies.input.ts b/server/src/core/@generated/workspace/workspace-create-without-companies.input.ts index 8bb2438f52..3c18a17c30 100644 --- a/server/src/core/@generated/workspace/workspace-create-without-companies.input.ts +++ b/server/src/core/@generated/workspace/workspace-create-without-companies.input.ts @@ -1,5 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } 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'; @@ -12,26 +14,32 @@ import { PipelineProgressCreateNestedManyWithoutWorkspaceInput } from '../pipeli export class WorkspaceCreateWithoutCompaniesInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + displayName!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + logo?: string; + + @HideField() + deletedAt?: Date | 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; diff --git a/server/src/core/@generated/workspace/workspace-create-without-people.input.ts b/server/src/core/@generated/workspace/workspace-create-without-people.input.ts index 9311d322d4..d78bd07321 100644 --- a/server/src/core/@generated/workspace/workspace-create-without-people.input.ts +++ b/server/src/core/@generated/workspace/workspace-create-without-people.input.ts @@ -1,5 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } 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'; @@ -12,26 +14,32 @@ import { PipelineProgressCreateNestedManyWithoutWorkspaceInput } from '../pipeli export class WorkspaceCreateWithoutPeopleInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + displayName!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + logo?: string; + + @HideField() + deletedAt?: Date | 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; diff --git a/server/src/core/@generated/workspace/workspace-create-without-pipeline-progresses.input.ts b/server/src/core/@generated/workspace/workspace-create-without-pipeline-progresses.input.ts index 673eb70167..ae49df118f 100644 --- a/server/src/core/@generated/workspace/workspace-create-without-pipeline-progresses.input.ts +++ b/server/src/core/@generated/workspace/workspace-create-without-pipeline-progresses.input.ts @@ -1,5 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } 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'; @@ -12,26 +14,32 @@ import { PipelineStageCreateNestedManyWithoutWorkspaceInput } from '../pipeline- export class WorkspaceCreateWithoutPipelineProgressesInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + displayName!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + logo?: string; + + @HideField() + deletedAt?: Date | 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; diff --git a/server/src/core/@generated/workspace/workspace-create-without-pipeline-stages.input.ts b/server/src/core/@generated/workspace/workspace-create-without-pipeline-stages.input.ts index 8662a9f274..5b60415395 100644 --- a/server/src/core/@generated/workspace/workspace-create-without-pipeline-stages.input.ts +++ b/server/src/core/@generated/workspace/workspace-create-without-pipeline-stages.input.ts @@ -1,5 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } 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'; @@ -12,26 +14,32 @@ import { PipelineProgressCreateNestedManyWithoutWorkspaceInput } from '../pipeli export class WorkspaceCreateWithoutPipelineStagesInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + displayName!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + logo?: string; + + @HideField() + deletedAt?: Date | 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; diff --git a/server/src/core/@generated/workspace/workspace-create-without-pipelines.input.ts b/server/src/core/@generated/workspace/workspace-create-without-pipelines.input.ts index 0c5a01ef51..3136284df8 100644 --- a/server/src/core/@generated/workspace/workspace-create-without-pipelines.input.ts +++ b/server/src/core/@generated/workspace/workspace-create-without-pipelines.input.ts @@ -1,5 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } 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'; @@ -12,26 +14,32 @@ import { PipelineProgressCreateNestedManyWithoutWorkspaceInput } from '../pipeli export class WorkspaceCreateWithoutPipelinesInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + displayName!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + logo?: string; + + @HideField() + deletedAt?: Date | 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; diff --git a/server/src/core/@generated/workspace/workspace-create-without-workspace-member.input.ts b/server/src/core/@generated/workspace/workspace-create-without-workspace-member.input.ts index 94a8574e44..4f60d70fd8 100644 --- a/server/src/core/@generated/workspace/workspace-create-without-workspace-member.input.ts +++ b/server/src/core/@generated/workspace/workspace-create-without-workspace-member.input.ts @@ -1,5 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } 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'; @@ -12,26 +14,32 @@ import { PipelineProgressCreateNestedManyWithoutWorkspaceInput } from '../pipeli export class WorkspaceCreateWithoutWorkspaceMemberInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + displayName!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + logo?: string; + + @HideField() + deletedAt?: Date | 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(() => CompanyCreateNestedManyWithoutWorkspaceInput, {nullable:true}) companies?: CompanyCreateNestedManyWithoutWorkspaceInput; diff --git a/server/src/core/@generated/workspace/workspace-create.input.ts b/server/src/core/@generated/workspace/workspace-create.input.ts index 67b2838682..6137eb6e6a 100644 --- a/server/src/core/@generated/workspace/workspace-create.input.ts +++ b/server/src/core/@generated/workspace/workspace-create.input.ts @@ -1,5 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } 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'; @@ -13,26 +15,32 @@ import { PipelineProgressCreateNestedManyWithoutWorkspaceInput } from '../pipeli export class WorkspaceCreateInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + displayName!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + logo?: string; + + @HideField() + deletedAt?: Date | 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; diff --git a/server/src/core/@generated/workspace/workspace-group-by.output.ts b/server/src/core/@generated/workspace/workspace-group-by.output.ts index 3714134416..2d38288203 100644 --- a/server/src/core/@generated/workspace/workspace-group-by.output.ts +++ b/server/src/core/@generated/workspace/workspace-group-by.output.ts @@ -1,5 +1,7 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; import { WorkspaceCountAggregate } from './workspace-count-aggregate.output'; import { WorkspaceMinAggregate } from './workspace-min-aggregate.output'; import { WorkspaceMaxAggregate } from './workspace-max-aggregate.output'; @@ -8,26 +10,32 @@ import { WorkspaceMaxAggregate } from './workspace-max-aggregate.output'; export class WorkspaceGroupBy { @Field(() => String, {nullable:false}) + @Validator.IsString() + @Validator.IsOptional() id!: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + displayName!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + logo?: string; + + @HideField() + deletedAt?: Date | 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}) - domainName!: string; - - @Field(() => String, {nullable:false}) - displayName!: string; - - @Field(() => String, {nullable:true}) - logo?: string; - @Field(() => WorkspaceCountAggregate, {nullable:true}) _count?: WorkspaceCountAggregate; diff --git a/server/src/core/@generated/workspace/workspace-max-aggregate.input.ts b/server/src/core/@generated/workspace/workspace-max-aggregate.input.ts index ea8d0ab832..022e0dc7e4 100644 --- a/server/src/core/@generated/workspace/workspace-max-aggregate.input.ts +++ b/server/src/core/@generated/workspace/workspace-max-aggregate.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import { HideField } from '@nestjs/graphql'; @InputType() export class WorkspaceMaxAggregateInput { @@ -7,15 +8,6 @@ export class WorkspaceMaxAggregateInput { @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}) domainName?: true; @@ -24,4 +16,13 @@ export class WorkspaceMaxAggregateInput { @Field(() => Boolean, {nullable:true}) logo?: true; + + @HideField() + deletedAt?: true; + + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; } diff --git a/server/src/core/@generated/workspace/workspace-max-aggregate.output.ts b/server/src/core/@generated/workspace/workspace-max-aggregate.output.ts index 159373eb3a..ba8f25ec2e 100644 --- a/server/src/core/@generated/workspace/workspace-max-aggregate.output.ts +++ b/server/src/core/@generated/workspace/workspace-max-aggregate.output.ts @@ -1,27 +1,35 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; @ObjectType() export class WorkspaceMaxAggregate { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:true}) + @Validator.IsString() + domainName?: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + displayName?: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + logo?: string; + + @HideField() + deletedAt?: Date | 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}) - domainName?: string; - - @Field(() => String, {nullable:true}) - displayName?: string; - - @Field(() => String, {nullable:true}) - logo?: string; } diff --git a/server/src/core/@generated/workspace/workspace-max-order-by-aggregate.input.ts b/server/src/core/@generated/workspace/workspace-max-order-by-aggregate.input.ts index 037f7eb919..c61f48b087 100644 --- a/server/src/core/@generated/workspace/workspace-max-order-by-aggregate.input.ts +++ b/server/src/core/@generated/workspace/workspace-max-order-by-aggregate.input.ts @@ -1,6 +1,7 @@ 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 WorkspaceMaxOrderByAggregateInput { @@ -8,15 +9,6 @@ export class WorkspaceMaxOrderByAggregateInput { @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}) domainName?: keyof typeof SortOrder; @@ -25,4 +17,13 @@ export class WorkspaceMaxOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) logo?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/workspace/workspace-min-aggregate.input.ts b/server/src/core/@generated/workspace/workspace-min-aggregate.input.ts index fa2d6e2c82..ce6803ca13 100644 --- a/server/src/core/@generated/workspace/workspace-min-aggregate.input.ts +++ b/server/src/core/@generated/workspace/workspace-min-aggregate.input.ts @@ -1,5 +1,6 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import { HideField } from '@nestjs/graphql'; @InputType() export class WorkspaceMinAggregateInput { @@ -7,15 +8,6 @@ export class WorkspaceMinAggregateInput { @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}) domainName?: true; @@ -24,4 +16,13 @@ export class WorkspaceMinAggregateInput { @Field(() => Boolean, {nullable:true}) logo?: true; + + @HideField() + deletedAt?: true; + + @Field(() => Boolean, {nullable:true}) + createdAt?: true; + + @Field(() => Boolean, {nullable:true}) + updatedAt?: true; } diff --git a/server/src/core/@generated/workspace/workspace-min-aggregate.output.ts b/server/src/core/@generated/workspace/workspace-min-aggregate.output.ts index 0c2a2a26a7..e1ca5e4962 100644 --- a/server/src/core/@generated/workspace/workspace-min-aggregate.output.ts +++ b/server/src/core/@generated/workspace/workspace-min-aggregate.output.ts @@ -1,27 +1,35 @@ import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } from '@nestjs/graphql'; @ObjectType() export class WorkspaceMinAggregate { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:true}) + @Validator.IsString() + domainName?: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + displayName?: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + logo?: string; + + @HideField() + deletedAt?: Date | 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}) - domainName?: string; - - @Field(() => String, {nullable:true}) - displayName?: string; - - @Field(() => String, {nullable:true}) - logo?: string; } diff --git a/server/src/core/@generated/workspace/workspace-min-order-by-aggregate.input.ts b/server/src/core/@generated/workspace/workspace-min-order-by-aggregate.input.ts index 39cde43107..6834c1f8d7 100644 --- a/server/src/core/@generated/workspace/workspace-min-order-by-aggregate.input.ts +++ b/server/src/core/@generated/workspace/workspace-min-order-by-aggregate.input.ts @@ -1,6 +1,7 @@ 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 WorkspaceMinOrderByAggregateInput { @@ -8,15 +9,6 @@ export class WorkspaceMinOrderByAggregateInput { @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}) domainName?: keyof typeof SortOrder; @@ -25,4 +17,13 @@ export class WorkspaceMinOrderByAggregateInput { @Field(() => SortOrder, {nullable:true}) logo?: keyof typeof SortOrder; + + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; } diff --git a/server/src/core/@generated/workspace/workspace-order-by-with-aggregation.input.ts b/server/src/core/@generated/workspace/workspace-order-by-with-aggregation.input.ts index 1e027eb296..ae5e311d8d 100644 --- a/server/src/core/@generated/workspace/workspace-order-by-with-aggregation.input.ts +++ b/server/src/core/@generated/workspace/workspace-order-by-with-aggregation.input.ts @@ -1,6 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { SortOrder } from '../prisma/sort-order.enum'; +import { HideField } from '@nestjs/graphql'; import { WorkspaceCountOrderByAggregateInput } from './workspace-count-order-by-aggregate.input'; import { WorkspaceMaxOrderByAggregateInput } from './workspace-max-order-by-aggregate.input'; import { WorkspaceMinOrderByAggregateInput } from './workspace-min-order-by-aggregate.input'; @@ -11,15 +12,6 @@ export class WorkspaceOrderByWithAggregationInput { @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}) domainName?: keyof typeof SortOrder; @@ -29,6 +21,15 @@ export class WorkspaceOrderByWithAggregationInput { @Field(() => SortOrder, {nullable:true}) logo?: keyof typeof SortOrder; + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; + @Field(() => WorkspaceCountOrderByAggregateInput, {nullable:true}) _count?: WorkspaceCountOrderByAggregateInput; diff --git a/server/src/core/@generated/workspace/workspace-order-by-with-relation.input.ts b/server/src/core/@generated/workspace/workspace-order-by-with-relation.input.ts index 99d3bc8433..95964e2ac0 100644 --- a/server/src/core/@generated/workspace/workspace-order-by-with-relation.input.ts +++ b/server/src/core/@generated/workspace/workspace-order-by-with-relation.input.ts @@ -1,6 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { SortOrder } from '../prisma/sort-order.enum'; +import { HideField } from '@nestjs/graphql'; 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'; @@ -16,15 +17,6 @@ export class WorkspaceOrderByWithRelationInput { @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}) domainName?: keyof typeof SortOrder; @@ -34,6 +26,15 @@ export class WorkspaceOrderByWithRelationInput { @Field(() => SortOrder, {nullable:true}) logo?: keyof typeof SortOrder; + @HideField() + deletedAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + createdAt?: keyof typeof SortOrder; + + @Field(() => SortOrder, {nullable:true}) + updatedAt?: keyof typeof SortOrder; + @Field(() => WorkspaceMemberOrderByRelationAggregateInput, {nullable:true}) workspaceMember?: WorkspaceMemberOrderByRelationAggregateInput; diff --git a/server/src/core/@generated/workspace/workspace-scalar-field.enum.ts b/server/src/core/@generated/workspace/workspace-scalar-field.enum.ts index 083443cff8..02cf89b8dc 100644 --- a/server/src/core/@generated/workspace/workspace-scalar-field.enum.ts +++ b/server/src/core/@generated/workspace/workspace-scalar-field.enum.ts @@ -2,12 +2,12 @@ import { registerEnumType } from '@nestjs/graphql'; export enum WorkspaceScalarFieldEnum { id = "id", - createdAt = "createdAt", - updatedAt = "updatedAt", - deletedAt = "deletedAt", domainName = "domainName", displayName = "displayName", - logo = "logo" + logo = "logo", + deletedAt = "deletedAt", + createdAt = "createdAt", + updatedAt = "updatedAt" } diff --git a/server/src/core/@generated/workspace/workspace-scalar-where-with-aggregates.input.ts b/server/src/core/@generated/workspace/workspace-scalar-where-with-aggregates.input.ts index 2ccf07fac1..bafa10616b 100644 --- a/server/src/core/@generated/workspace/workspace-scalar-where-with-aggregates.input.ts +++ b/server/src/core/@generated/workspace/workspace-scalar-where-with-aggregates.input.ts @@ -1,9 +1,10 @@ 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 { StringNullableWithAggregatesFilter } from '../prisma/string-nullable-with-aggregates-filter.input'; +import { DateTimeNullableWithAggregatesFilter } from '../prisma/date-time-nullable-with-aggregates-filter.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeWithAggregatesFilter } from '../prisma/date-time-with-aggregates-filter.input'; @InputType() export class WorkspaceScalarWhereWithAggregatesInput { @@ -20,15 +21,6 @@ export class WorkspaceScalarWhereWithAggregatesInput { @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}) domainName?: StringWithAggregatesFilter; @@ -37,4 +29,13 @@ export class WorkspaceScalarWhereWithAggregatesInput { @Field(() => StringNullableWithAggregatesFilter, {nullable:true}) logo?: StringNullableWithAggregatesFilter; + + @HideField() + deletedAt?: DateTimeNullableWithAggregatesFilter; + + @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) + createdAt?: DateTimeWithAggregatesFilter; + + @Field(() => DateTimeWithAggregatesFilter, {nullable:true}) + updatedAt?: DateTimeWithAggregatesFilter; } diff --git a/server/src/core/@generated/workspace/workspace-unchecked-create-without-comment-threads.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-create-without-comment-threads.input.ts index 906920f05c..46cf3451a2 100644 --- a/server/src/core/@generated/workspace/workspace-unchecked-create-without-comment-threads.input.ts +++ b/server/src/core/@generated/workspace/workspace-unchecked-create-without-comment-threads.input.ts @@ -1,5 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } 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'; @@ -12,26 +14,32 @@ import { PipelineProgressUncheckedCreateNestedManyWithoutWorkspaceInput } from ' export class WorkspaceUncheckedCreateWithoutCommentThreadsInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + displayName!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + logo?: string; + + @HideField() + deletedAt?: Date | 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; diff --git a/server/src/core/@generated/workspace/workspace-unchecked-create-without-comments.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-create-without-comments.input.ts index b439af5851..9c395cad99 100644 --- a/server/src/core/@generated/workspace/workspace-unchecked-create-without-comments.input.ts +++ b/server/src/core/@generated/workspace/workspace-unchecked-create-without-comments.input.ts @@ -1,5 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } 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'; @@ -12,26 +14,32 @@ import { PipelineProgressUncheckedCreateNestedManyWithoutWorkspaceInput } from ' export class WorkspaceUncheckedCreateWithoutCommentsInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + displayName!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + logo?: string; + + @HideField() + deletedAt?: Date | 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; diff --git a/server/src/core/@generated/workspace/workspace-unchecked-create-without-companies.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-create-without-companies.input.ts index c4d862526a..c0837717e5 100644 --- a/server/src/core/@generated/workspace/workspace-unchecked-create-without-companies.input.ts +++ b/server/src/core/@generated/workspace/workspace-unchecked-create-without-companies.input.ts @@ -1,5 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } 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'; @@ -12,26 +14,32 @@ import { PipelineProgressUncheckedCreateNestedManyWithoutWorkspaceInput } from ' export class WorkspaceUncheckedCreateWithoutCompaniesInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + displayName!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + logo?: string; + + @HideField() + deletedAt?: Date | 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; diff --git a/server/src/core/@generated/workspace/workspace-unchecked-create-without-people.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-create-without-people.input.ts index 99a8612327..6685a812f3 100644 --- a/server/src/core/@generated/workspace/workspace-unchecked-create-without-people.input.ts +++ b/server/src/core/@generated/workspace/workspace-unchecked-create-without-people.input.ts @@ -1,5 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } 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'; @@ -12,26 +14,32 @@ import { PipelineProgressUncheckedCreateNestedManyWithoutWorkspaceInput } from ' export class WorkspaceUncheckedCreateWithoutPeopleInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + displayName!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + logo?: string; + + @HideField() + deletedAt?: Date | 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; diff --git a/server/src/core/@generated/workspace/workspace-unchecked-create-without-pipeline-progresses.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-create-without-pipeline-progresses.input.ts index 671996d890..50f851ed78 100644 --- a/server/src/core/@generated/workspace/workspace-unchecked-create-without-pipeline-progresses.input.ts +++ b/server/src/core/@generated/workspace/workspace-unchecked-create-without-pipeline-progresses.input.ts @@ -1,5 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } 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'; @@ -12,26 +14,32 @@ import { PipelineStageUncheckedCreateNestedManyWithoutWorkspaceInput } from '../ export class WorkspaceUncheckedCreateWithoutPipelineProgressesInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + displayName!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + logo?: string; + + @HideField() + deletedAt?: Date | 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; diff --git a/server/src/core/@generated/workspace/workspace-unchecked-create-without-pipeline-stages.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-create-without-pipeline-stages.input.ts index e9b6f50e11..a47af91008 100644 --- a/server/src/core/@generated/workspace/workspace-unchecked-create-without-pipeline-stages.input.ts +++ b/server/src/core/@generated/workspace/workspace-unchecked-create-without-pipeline-stages.input.ts @@ -1,5 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } 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'; @@ -12,26 +14,32 @@ import { PipelineProgressUncheckedCreateNestedManyWithoutWorkspaceInput } from ' export class WorkspaceUncheckedCreateWithoutPipelineStagesInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + displayName!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + logo?: string; + + @HideField() + deletedAt?: Date | 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; diff --git a/server/src/core/@generated/workspace/workspace-unchecked-create-without-pipelines.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-create-without-pipelines.input.ts index ccc32fed12..fd910fc790 100644 --- a/server/src/core/@generated/workspace/workspace-unchecked-create-without-pipelines.input.ts +++ b/server/src/core/@generated/workspace/workspace-unchecked-create-without-pipelines.input.ts @@ -1,5 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } 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'; @@ -12,26 +14,32 @@ import { PipelineProgressUncheckedCreateNestedManyWithoutWorkspaceInput } from ' export class WorkspaceUncheckedCreateWithoutPipelinesInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + displayName!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + logo?: string; + + @HideField() + deletedAt?: Date | 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; diff --git a/server/src/core/@generated/workspace/workspace-unchecked-create-without-workspace-member.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-create-without-workspace-member.input.ts index e77f3f6bc0..be6c04d346 100644 --- a/server/src/core/@generated/workspace/workspace-unchecked-create-without-workspace-member.input.ts +++ b/server/src/core/@generated/workspace/workspace-unchecked-create-without-workspace-member.input.ts @@ -1,5 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } 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'; @@ -12,26 +14,32 @@ import { PipelineProgressUncheckedCreateNestedManyWithoutWorkspaceInput } from ' export class WorkspaceUncheckedCreateWithoutWorkspaceMemberInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + displayName!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + logo?: string; + + @HideField() + deletedAt?: Date | 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(() => CompanyUncheckedCreateNestedManyWithoutWorkspaceInput, {nullable:true}) companies?: CompanyUncheckedCreateNestedManyWithoutWorkspaceInput; diff --git a/server/src/core/@generated/workspace/workspace-unchecked-create.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-create.input.ts index 76f41078a2..193bd4daa9 100644 --- a/server/src/core/@generated/workspace/workspace-unchecked-create.input.ts +++ b/server/src/core/@generated/workspace/workspace-unchecked-create.input.ts @@ -1,5 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; +import { HideField } 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'; @@ -13,26 +15,32 @@ import { PipelineProgressUncheckedCreateNestedManyWithoutWorkspaceInput } from ' export class WorkspaceUncheckedCreateInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; + @Field(() => String, {nullable:false}) + @Validator.IsString() + domainName!: string; + + @Field(() => String, {nullable:false}) + @Validator.IsString() + displayName!: string; + + @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() + logo?: string; + + @HideField() + deletedAt?: Date | 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; diff --git a/server/src/core/@generated/workspace/workspace-unchecked-update-many.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-update-many.input.ts index 719f49ef42..3eff5eeb0a 100644 --- a/server/src/core/@generated/workspace/workspace-unchecked-update-many.input.ts +++ b/server/src/core/@generated/workspace/workspace-unchecked-update-many.input.ts @@ -1,9 +1,10 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class WorkspaceUncheckedUpdateManyInput { @@ -11,15 +12,6 @@ export class WorkspaceUncheckedUpdateManyInput { @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; @@ -28,4 +20,13 @@ export class WorkspaceUncheckedUpdateManyInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) logo?: NullableStringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/workspace/workspace-unchecked-update-without-comment-threads.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-update-without-comment-threads.input.ts index 5253f984e6..c3b8b3eb59 100644 --- a/server/src/core/@generated/workspace/workspace-unchecked-update-without-comment-threads.input.ts +++ b/server/src/core/@generated/workspace/workspace-unchecked-update-without-comment-threads.input.ts @@ -1,9 +1,10 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-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'; @@ -18,15 +19,6 @@ 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; @@ -36,6 +28,15 @@ export class WorkspaceUncheckedUpdateWithoutCommentThreadsInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) logo?: NullableStringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput, {nullable:true}) workspaceMember?: WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput; diff --git a/server/src/core/@generated/workspace/workspace-unchecked-update-without-comments.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-update-without-comments.input.ts index fd6c3d0810..5a9a01fbe4 100644 --- a/server/src/core/@generated/workspace/workspace-unchecked-update-without-comments.input.ts +++ b/server/src/core/@generated/workspace/workspace-unchecked-update-without-comments.input.ts @@ -1,9 +1,10 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-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'; @@ -18,15 +19,6 @@ 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; @@ -36,6 +28,15 @@ export class WorkspaceUncheckedUpdateWithoutCommentsInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) logo?: NullableStringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput, {nullable:true}) workspaceMember?: WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput; diff --git a/server/src/core/@generated/workspace/workspace-unchecked-update-without-companies.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-update-without-companies.input.ts index b3a7f7cb21..3f288a1d8e 100644 --- a/server/src/core/@generated/workspace/workspace-unchecked-update-without-companies.input.ts +++ b/server/src/core/@generated/workspace/workspace-unchecked-update-without-companies.input.ts @@ -1,9 +1,10 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-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'; @@ -18,15 +19,6 @@ export class WorkspaceUncheckedUpdateWithoutCompaniesInput { @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; @@ -36,6 +28,15 @@ export class WorkspaceUncheckedUpdateWithoutCompaniesInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) logo?: NullableStringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput, {nullable:true}) workspaceMember?: WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput; diff --git a/server/src/core/@generated/workspace/workspace-unchecked-update-without-people.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-update-without-people.input.ts index 70998e840e..4e731a4c22 100644 --- a/server/src/core/@generated/workspace/workspace-unchecked-update-without-people.input.ts +++ b/server/src/core/@generated/workspace/workspace-unchecked-update-without-people.input.ts @@ -1,9 +1,10 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-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'; @@ -18,15 +19,6 @@ export class WorkspaceUncheckedUpdateWithoutPeopleInput { @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; @@ -36,6 +28,15 @@ export class WorkspaceUncheckedUpdateWithoutPeopleInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) logo?: NullableStringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput, {nullable:true}) workspaceMember?: WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput; diff --git a/server/src/core/@generated/workspace/workspace-unchecked-update-without-pipeline-progresses.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-update-without-pipeline-progresses.input.ts index 9c3c736aec..2dbc07b8ad 100644 --- a/server/src/core/@generated/workspace/workspace-unchecked-update-without-pipeline-progresses.input.ts +++ b/server/src/core/@generated/workspace/workspace-unchecked-update-without-pipeline-progresses.input.ts @@ -1,9 +1,10 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-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'; @@ -18,15 +19,6 @@ export class WorkspaceUncheckedUpdateWithoutPipelineProgressesInput { @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; @@ -36,6 +28,15 @@ export class WorkspaceUncheckedUpdateWithoutPipelineProgressesInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) logo?: NullableStringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput, {nullable:true}) workspaceMember?: WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput; diff --git a/server/src/core/@generated/workspace/workspace-unchecked-update-without-pipeline-stages.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-update-without-pipeline-stages.input.ts index 2113da908f..9b3239c35d 100644 --- a/server/src/core/@generated/workspace/workspace-unchecked-update-without-pipeline-stages.input.ts +++ b/server/src/core/@generated/workspace/workspace-unchecked-update-without-pipeline-stages.input.ts @@ -1,9 +1,10 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-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'; @@ -18,15 +19,6 @@ export class WorkspaceUncheckedUpdateWithoutPipelineStagesInput { @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; @@ -36,6 +28,15 @@ export class WorkspaceUncheckedUpdateWithoutPipelineStagesInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) logo?: NullableStringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput, {nullable:true}) workspaceMember?: WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput; diff --git a/server/src/core/@generated/workspace/workspace-unchecked-update-without-pipelines.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-update-without-pipelines.input.ts index 44fcb7dbe8..6903cc4f18 100644 --- a/server/src/core/@generated/workspace/workspace-unchecked-update-without-pipelines.input.ts +++ b/server/src/core/@generated/workspace/workspace-unchecked-update-without-pipelines.input.ts @@ -1,9 +1,10 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-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'; @@ -18,15 +19,6 @@ export class WorkspaceUncheckedUpdateWithoutPipelinesInput { @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; @@ -36,6 +28,15 @@ export class WorkspaceUncheckedUpdateWithoutPipelinesInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) logo?: NullableStringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput, {nullable:true}) workspaceMember?: WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput; diff --git a/server/src/core/@generated/workspace/workspace-unchecked-update-without-workspace-member.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-update-without-workspace-member.input.ts index 09d75cff24..56699a7ff9 100644 --- a/server/src/core/@generated/workspace/workspace-unchecked-update-without-workspace-member.input.ts +++ b/server/src/core/@generated/workspace/workspace-unchecked-update-without-workspace-member.input.ts @@ -1,9 +1,10 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-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'; @@ -18,15 +19,6 @@ export class WorkspaceUncheckedUpdateWithoutWorkspaceMemberInput { @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; @@ -36,6 +28,15 @@ export class WorkspaceUncheckedUpdateWithoutWorkspaceMemberInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) logo?: NullableStringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => CompanyUncheckedUpdateManyWithoutWorkspaceNestedInput, {nullable:true}) companies?: CompanyUncheckedUpdateManyWithoutWorkspaceNestedInput; diff --git a/server/src/core/@generated/workspace/workspace-unchecked-update.input.ts b/server/src/core/@generated/workspace/workspace-unchecked-update.input.ts index 0324c5b621..7ef4bc2712 100644 --- a/server/src/core/@generated/workspace/workspace-unchecked-update.input.ts +++ b/server/src/core/@generated/workspace/workspace-unchecked-update.input.ts @@ -1,9 +1,10 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-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'; @@ -19,15 +20,6 @@ export class WorkspaceUncheckedUpdateInput { @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; @@ -37,6 +29,15 @@ export class WorkspaceUncheckedUpdateInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) logo?: NullableStringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput, {nullable:true}) workspaceMember?: WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput; diff --git a/server/src/core/@generated/workspace/workspace-update-many-mutation.input.ts b/server/src/core/@generated/workspace/workspace-update-many-mutation.input.ts index 7c1ffac890..e1ebe3656a 100644 --- a/server/src/core/@generated/workspace/workspace-update-many-mutation.input.ts +++ b/server/src/core/@generated/workspace/workspace-update-many-mutation.input.ts @@ -1,9 +1,10 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; @InputType() export class WorkspaceUpdateManyMutationInput { @@ -11,15 +12,6 @@ export class WorkspaceUpdateManyMutationInput { @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; @@ -28,4 +20,13 @@ export class WorkspaceUpdateManyMutationInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) logo?: NullableStringFieldUpdateOperationsInput; + + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; } diff --git a/server/src/core/@generated/workspace/workspace-update-without-comment-threads.input.ts b/server/src/core/@generated/workspace/workspace-update-without-comment-threads.input.ts index 02085b4cea..8786d58546 100644 --- a/server/src/core/@generated/workspace/workspace-update-without-comment-threads.input.ts +++ b/server/src/core/@generated/workspace/workspace-update-without-comment-threads.input.ts @@ -1,9 +1,10 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-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'; @@ -18,15 +19,6 @@ 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; @@ -36,6 +28,15 @@ export class WorkspaceUpdateWithoutCommentThreadsInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) logo?: NullableStringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput, {nullable:true}) workspaceMember?: WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput; diff --git a/server/src/core/@generated/workspace/workspace-update-without-comments.input.ts b/server/src/core/@generated/workspace/workspace-update-without-comments.input.ts index ed9127777a..705166c997 100644 --- a/server/src/core/@generated/workspace/workspace-update-without-comments.input.ts +++ b/server/src/core/@generated/workspace/workspace-update-without-comments.input.ts @@ -1,9 +1,10 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-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'; @@ -18,15 +19,6 @@ 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; @@ -36,6 +28,15 @@ export class WorkspaceUpdateWithoutCommentsInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) logo?: NullableStringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput, {nullable:true}) workspaceMember?: WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput; diff --git a/server/src/core/@generated/workspace/workspace-update-without-companies.input.ts b/server/src/core/@generated/workspace/workspace-update-without-companies.input.ts index f343edd1f0..ed610ff6b0 100644 --- a/server/src/core/@generated/workspace/workspace-update-without-companies.input.ts +++ b/server/src/core/@generated/workspace/workspace-update-without-companies.input.ts @@ -1,9 +1,10 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-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'; @@ -18,15 +19,6 @@ export class WorkspaceUpdateWithoutCompaniesInput { @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; @@ -36,6 +28,15 @@ export class WorkspaceUpdateWithoutCompaniesInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) logo?: NullableStringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput, {nullable:true}) workspaceMember?: WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput; diff --git a/server/src/core/@generated/workspace/workspace-update-without-people.input.ts b/server/src/core/@generated/workspace/workspace-update-without-people.input.ts index 290e236c63..7862c07043 100644 --- a/server/src/core/@generated/workspace/workspace-update-without-people.input.ts +++ b/server/src/core/@generated/workspace/workspace-update-without-people.input.ts @@ -1,9 +1,10 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-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'; @@ -18,15 +19,6 @@ export class WorkspaceUpdateWithoutPeopleInput { @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; @@ -36,6 +28,15 @@ export class WorkspaceUpdateWithoutPeopleInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) logo?: NullableStringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput, {nullable:true}) workspaceMember?: WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput; diff --git a/server/src/core/@generated/workspace/workspace-update-without-pipeline-progresses.input.ts b/server/src/core/@generated/workspace/workspace-update-without-pipeline-progresses.input.ts index e3cf389369..4e9cdd407c 100644 --- a/server/src/core/@generated/workspace/workspace-update-without-pipeline-progresses.input.ts +++ b/server/src/core/@generated/workspace/workspace-update-without-pipeline-progresses.input.ts @@ -1,9 +1,10 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-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'; @@ -18,15 +19,6 @@ export class WorkspaceUpdateWithoutPipelineProgressesInput { @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; @@ -36,6 +28,15 @@ export class WorkspaceUpdateWithoutPipelineProgressesInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) logo?: NullableStringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput, {nullable:true}) workspaceMember?: WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput; diff --git a/server/src/core/@generated/workspace/workspace-update-without-pipeline-stages.input.ts b/server/src/core/@generated/workspace/workspace-update-without-pipeline-stages.input.ts index 29823c4c04..86a6d79eb8 100644 --- a/server/src/core/@generated/workspace/workspace-update-without-pipeline-stages.input.ts +++ b/server/src/core/@generated/workspace/workspace-update-without-pipeline-stages.input.ts @@ -1,9 +1,10 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-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'; @@ -18,15 +19,6 @@ export class WorkspaceUpdateWithoutPipelineStagesInput { @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; @@ -36,6 +28,15 @@ export class WorkspaceUpdateWithoutPipelineStagesInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) logo?: NullableStringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput, {nullable:true}) workspaceMember?: WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput; diff --git a/server/src/core/@generated/workspace/workspace-update-without-pipelines.input.ts b/server/src/core/@generated/workspace/workspace-update-without-pipelines.input.ts index a7f84ee6da..d1ffa3512e 100644 --- a/server/src/core/@generated/workspace/workspace-update-without-pipelines.input.ts +++ b/server/src/core/@generated/workspace/workspace-update-without-pipelines.input.ts @@ -1,9 +1,10 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-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'; @@ -18,15 +19,6 @@ export class WorkspaceUpdateWithoutPipelinesInput { @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; @@ -36,6 +28,15 @@ export class WorkspaceUpdateWithoutPipelinesInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) logo?: NullableStringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput, {nullable:true}) workspaceMember?: WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput; diff --git a/server/src/core/@generated/workspace/workspace-update-without-workspace-member.input.ts b/server/src/core/@generated/workspace/workspace-update-without-workspace-member.input.ts index abd2cb2445..1b50891b0b 100644 --- a/server/src/core/@generated/workspace/workspace-update-without-workspace-member.input.ts +++ b/server/src/core/@generated/workspace/workspace-update-without-workspace-member.input.ts @@ -1,9 +1,10 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-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'; @@ -18,15 +19,6 @@ export class WorkspaceUpdateWithoutWorkspaceMemberInput { @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; @@ -36,6 +28,15 @@ export class WorkspaceUpdateWithoutWorkspaceMemberInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) logo?: NullableStringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => CompanyUpdateManyWithoutWorkspaceNestedInput, {nullable:true}) companies?: CompanyUpdateManyWithoutWorkspaceNestedInput; diff --git a/server/src/core/@generated/workspace/workspace-update.input.ts b/server/src/core/@generated/workspace/workspace-update.input.ts index 3c0966d334..c69952539a 100644 --- a/server/src/core/@generated/workspace/workspace-update.input.ts +++ b/server/src/core/@generated/workspace/workspace-update.input.ts @@ -1,9 +1,10 @@ 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 { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-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'; @@ -19,15 +20,6 @@ export class WorkspaceUpdateInput { @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; @@ -37,6 +29,15 @@ export class WorkspaceUpdateInput { @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true}) logo?: NullableStringFieldUpdateOperationsInput; + @HideField() + deletedAt?: NullableDateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + createdAt?: DateTimeFieldUpdateOperationsInput; + + @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true}) + updatedAt?: DateTimeFieldUpdateOperationsInput; + @Field(() => WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput, {nullable:true}) workspaceMember?: WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput; diff --git a/server/src/core/@generated/workspace/workspace-where-unique.input.ts b/server/src/core/@generated/workspace/workspace-where-unique.input.ts index 85b038a54f..1cc87e8a4b 100644 --- a/server/src/core/@generated/workspace/workspace-where-unique.input.ts +++ b/server/src/core/@generated/workspace/workspace-where-unique.input.ts @@ -1,12 +1,16 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; +import * as Validator from 'class-validator'; @InputType() export class WorkspaceWhereUniqueInput { @Field(() => String, {nullable:true}) + @Validator.IsString() + @Validator.IsOptional() id?: string; @Field(() => String, {nullable:true}) + @Validator.IsString() domainName?: string; } diff --git a/server/src/core/@generated/workspace/workspace-where.input.ts b/server/src/core/@generated/workspace/workspace-where.input.ts index 7e5eb5e0d5..24c7da0d7f 100644 --- a/server/src/core/@generated/workspace/workspace-where.input.ts +++ b/server/src/core/@generated/workspace/workspace-where.input.ts @@ -1,9 +1,10 @@ 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 { StringNullableFilter } from '../prisma/string-nullable-filter.input'; +import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input'; +import { HideField } from '@nestjs/graphql'; +import { DateTimeFilter } from '../prisma/date-time-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'; @@ -28,15 +29,6 @@ export class WorkspaceWhereInput { @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}) domainName?: StringFilter; @@ -46,6 +38,15 @@ export class WorkspaceWhereInput { @Field(() => StringNullableFilter, {nullable:true}) logo?: StringNullableFilter; + @HideField() + deletedAt?: DateTimeNullableFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + createdAt?: DateTimeFilter; + + @Field(() => DateTimeFilter, {nullable:true}) + updatedAt?: DateTimeFilter; + @Field(() => WorkspaceMemberListRelationFilter, {nullable:true}) workspaceMember?: WorkspaceMemberListRelationFilter; diff --git a/server/src/core/@generated/workspace/workspace.model.ts b/server/src/core/@generated/workspace/workspace.model.ts index b502963e23..b709c0cfb8 100644 --- a/server/src/core/@generated/workspace/workspace.model.ts +++ b/server/src/core/@generated/workspace/workspace.model.ts @@ -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 { WorkspaceMember } from '../workspace-member/workspace-member.model'; import { Company } from '../company/company.model'; import { Person } from '../person/person.model'; @@ -10,7 +11,6 @@ import { Pipeline } from '../pipeline/pipeline.model'; import { PipelineStage } from '../pipeline-stage/pipeline-stage.model'; import { PipelineProgress } from '../pipeline-progress/pipeline-progress.model'; import { WorkspaceCount } from './workspace-count.output'; -import { HideField } from '@nestjs/graphql'; @ObjectType({}) export class Workspace { @@ -18,15 +18,6 @@ export class Workspace { @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}) domainName!: string; @@ -36,6 +27,15 @@ export class Workspace { @Field(() => String, {nullable:true}) logo!: string | null; + @HideField() + deletedAt!: Date | null; + + @Field(() => Date, {nullable:false}) + createdAt!: Date; + + @Field(() => Date, {nullable:false}) + updatedAt!: Date; + @Field(() => [WorkspaceMember], {nullable:true}) workspaceMember?: Array; diff --git a/server/src/database/schema.prisma b/server/src/database/schema.prisma index 4a2005af40..e3002cfb80 100644 --- a/server/src/database/schema.prisma +++ b/server/src/database/schema.prisma @@ -1,5 +1,5 @@ generator client { - provider = "prisma-client-js" + provider = "prisma-client-js" engineType = "binary" } @@ -9,125 +9,159 @@ datasource db { } generator nestgraphql { - provider = "node node_modules/prisma-nestjs-graphql" - output = "../../src/core/@generated" + provider = "node node_modules/prisma-nestjs-graphql" + output = "../../src/core/@generated" - // CommentThread create: Only Allow targets createMany and comments createMany - decorate_createCommentThreadTargets_type = "*CommentThreadTargetCreateNestedManyWithoutCommentThreadInput" - decorate_createCommentThreadTargets_field = "!(createMany)" - decorate_createCommentThreadTargets_name = "HideField" - decorate_createCommentThreadTargets_from = "@nestjs/graphql" - decorate_createCommentThreadTargets_arguments = "[]" + // field validator + fields_Validator_input = true + fields_Validator_output = true + fields_Validator_model = true + fields_Validator_from = "class-validator" - decorate_createCommentThreadComments_type = "*CommentCreateNestedManyWithoutCommentThreadInput" - decorate_createCommentThreadComments_field = "!(createMany)" - decorate_createCommentThreadComments_name = "HideField" - decorate_createCommentThreadComments_from = "@nestjs/graphql" - decorate_createCommentThreadComments_arguments = "[]" + // CommentThread create: Only Allow targets createMany and comments createMany + decorate_createCommentThreadTargets_type = "*CommentThreadTargetCreateNestedManyWithoutCommentThreadInput" + decorate_createCommentThreadTargets_field = "!(createMany)" + decorate_createCommentThreadTargets_name = "HideField" + decorate_createCommentThreadTargets_from = "@nestjs/graphql" + decorate_createCommentThreadTargets_arguments = "[]" - // Comment create: Only Allow author connect and commentThread connect - decorate_createCommentUser_type = "*UserCreateNestedOneWithoutCommentsInput" - decorate_createCommentUser_field = "!(connect)" - decorate_createCommentUser_name = "HideField" - decorate_createCommentUser_from = "@nestjs/graphql" - decorate_createCommentUser_arguments = "[]" + decorate_createCommentThreadComments_type = "*CommentCreateNestedManyWithoutCommentThreadInput" + decorate_createCommentThreadComments_field = "!(createMany)" + decorate_createCommentThreadComments_name = "HideField" + decorate_createCommentThreadComments_from = "@nestjs/graphql" + decorate_createCommentThreadComments_arguments = "[]" - decorate_createCommentCommentThread_type = "*CommentThreadCreateNestedOneWithoutCommentsInput" - decorate_createCommentCommentThread_field = "!(connect)" - decorate_createCommentCommentThread_name = "HideField" - decorate_createCommentCommentThread_from = "@nestjs/graphql" - decorate_createCommentCommentThread_arguments = "[]" + // Comment create: Only Allow author connect and commentThread connect + decorate_createCommentUser_type = "*UserCreateNestedOneWithoutCommentsInput" + decorate_createCommentUser_field = "!(connect)" + decorate_createCommentUser_name = "HideField" + decorate_createCommentUser_from = "@nestjs/graphql" + decorate_createCommentUser_arguments = "[]" - // Person create: Only Allow company connect - decorate_createPersonCompany_type = "*CompanyCreateNestedOneWithoutPeopleInput" - decorate_createPersonCompany_field = "!(connect)" - decorate_createPersonCompany_name = "HideField" - decorate_createPersonCompany_from = "@nestjs/graphql" - decorate_createPersonCompany_arguments = "[]" + decorate_createCommentCommentThread_type = "*CommentThreadCreateNestedOneWithoutCommentsInput" + decorate_createCommentCommentThread_field = "!(connect)" + decorate_createCommentCommentThread_name = "HideField" + decorate_createCommentCommentThread_from = "@nestjs/graphql" + decorate_createCommentCommentThread_arguments = "[]" - // Person update: Only Allow company connect - decorate_updatePersonCompany_type = "*CompanyUpdateOneWithoutPeopleNestedInput" - decorate_updatePersonCompany_field = "!(connect)" - decorate_updatePersonCompany_name = "HideField" - decorate_updatePersonCompany_from = "@nestjs/graphql" - decorate_updatePersonCompany_arguments = "[]" + // Person create: Only Allow company connect + decorate_createPersonCompany_type = "*CompanyCreateNestedOneWithoutPeopleInput" + decorate_createPersonCompany_field = "!(connect)" + decorate_createPersonCompany_name = "HideField" + decorate_createPersonCompany_from = "@nestjs/graphql" + decorate_createPersonCompany_arguments = "[]" - // Company create: Only Allow people and accountOwner connect - decorate_createCompanyUser_type = "*UserCreateNestedOneWithoutCompaniesInput" - decorate_createCompanyUser_field = "!(connect)" - decorate_createCompanyUser_name = "HideField" - decorate_createCompanyUser_from = "@nestjs/graphql" - decorate_createCompanyUser_arguments = "[]" + // Person update: Only Allow company connect + decorate_updatePersonCompany_type = "*CompanyUpdateOneWithoutPeopleNestedInput" + decorate_updatePersonCompany_field = "!(connect)" + decorate_updatePersonCompany_name = "HideField" + decorate_updatePersonCompany_from = "@nestjs/graphql" + decorate_updatePersonCompany_arguments = "[]" - decorate_createCompanyPerson_type = "*PersonCreateNestedManyWithoutCompanyInput" - decorate_createCompanyPerson_field = "!(connect)" - decorate_createCompanyPerson_name = "HideField" - decorate_createCompanyPerson_from = "@nestjs/graphql" - decorate_createCompanyPerson_arguments = "[]" + // Company create: Only Allow people and accountOwner connect + decorate_createCompanyUser_type = "*UserCreateNestedOneWithoutCompaniesInput" + decorate_createCompanyUser_field = "!(connect)" + decorate_createCompanyUser_name = "HideField" + decorate_createCompanyUser_from = "@nestjs/graphql" + decorate_createCompanyUser_arguments = "[]" - // Company update: Only Allow action on people and accountOwner - decorate_updateCompanyUser_type = "*UserUpdateOneWithoutCompaniesNestedInput" - decorate_updateCompanyUser_field = "!(connect)" - decorate_updateCompanyUser_name = "HideField" - decorate_updateCompanyUser_from = "@nestjs/graphql" - decorate_updateCompanyUser_arguments = "[]" + decorate_createCompanyPerson_type = "*PersonCreateNestedManyWithoutCompanyInput" + decorate_createCompanyPerson_field = "!(connect)" + decorate_createCompanyPerson_name = "HideField" + decorate_createCompanyPerson_from = "@nestjs/graphql" + decorate_createCompanyPerson_arguments = "[]" - decorate_updateCompanyPerson_type = "*PersonUpdateManyWithoutCompanyNestedInput" - decorate_updateCompanyPerson_field = "!(connect)" - decorate_updateCompanyPerson_name = "HideField" - decorate_updateCompanyPerson_from = "@nestjs/graphql" - decorate_updateCompanyPerson_arguments = "[]" + // Company update: Only Allow action on people and accountOwner + decorate_updateCompanyUser_type = "*UserUpdateOneWithoutCompaniesNestedInput" + decorate_updateCompanyUser_field = "!(connect)" + decorate_updateCompanyUser_name = "HideField" + decorate_updateCompanyUser_from = "@nestjs/graphql" + decorate_updateCompanyUser_arguments = "[]" - // PipelineProgress create: Only Allow pipelineStage and pipeline connect - decorate_createPipelineProgressPipeline_type = "*PipelineCreateNestedOneWithoutPipelineProgressesInput" - decorate_createPipelineProgressPipeline_field = "!(connect)" - decorate_createPipelineProgressPipeline_name = "HideField" - decorate_createPipelineProgressPipeline_from = "@nestjs/graphql" - decorate_createPipelineProgressPipeline_arguments = "[]" + decorate_updateCompanyPerson_type = "*PersonUpdateManyWithoutCompanyNestedInput" + decorate_updateCompanyPerson_field = "!(connect)" + decorate_updateCompanyPerson_name = "HideField" + decorate_updateCompanyPerson_from = "@nestjs/graphql" + decorate_updateCompanyPerson_arguments = "[]" - decorate_createPipelineProgressPipelineStage_type = "*PipelineStageCreateNestedOneWithoutPipelineProgressesInput" - decorate_createPipelineProgressPipelineStage_field = "!(connect)" - decorate_createPipelineProgressPipelineStage_name = "HideField" - decorate_createPipelineProgressPipelineStage_from = "@nestjs/graphql" - decorate_createPipelineProgressPipelineStage_arguments = "[]" + // PipelineProgress create: Only Allow pipelineStage and pipeline connect + decorate_createPipelineProgressPipeline_type = "*PipelineCreateNestedOneWithoutPipelineProgressesInput" + decorate_createPipelineProgressPipeline_field = "!(connect)" + decorate_createPipelineProgressPipeline_name = "HideField" + decorate_createPipelineProgressPipeline_from = "@nestjs/graphql" + decorate_createPipelineProgressPipeline_arguments = "[]" - // PipelineProgress update: Only Allow pipelineStage and pipeline connect - decorate_updatePipelineProgressPipeline_type = "*PipelineUpdateOneRequiredWithoutPipelineProgressesNestedInput" - decorate_updatePipelineProgressPipeline_field = "!(connect)" - decorate_updatePipelineProgressPipeline_name = "HideField" - decorate_updatePipelineProgressPipeline_from = "@nestjs/graphql" - decorate_updatePipelineProgressPipeline_arguments = "[]" + decorate_createPipelineProgressPipelineStage_type = "*PipelineStageCreateNestedOneWithoutPipelineProgressesInput" + decorate_createPipelineProgressPipelineStage_field = "!(connect)" + decorate_createPipelineProgressPipelineStage_name = "HideField" + decorate_createPipelineProgressPipelineStage_from = "@nestjs/graphql" + decorate_createPipelineProgressPipelineStage_arguments = "[]" - decorate_updatePipelineProgressPipelineStage_type = "*PipelineStageUpdateOneRequiredWithoutPipelineProgressesNestedInput" - decorate_updatePipelineProgressPipelineStage_field = "!(connect)" - decorate_updatePipelineProgressPipelineStage_name = "HideField" - decorate_updatePipelineProgressPipelineStage_from = "@nestjs/graphql" - decorate_updatePipelineProgressPipelineStage_arguments = "[]" - - // Disable _count on all models except Aggregation use case - decorate_count_type = "!(*Aggregate*|*GroupBy*|*OrderBy*)" - decorate_count_field = "_count" - decorate_count_name = "HideField" - decorate_count_from = "@nestjs/graphql" - decorate_count_arguments = "[]" + // PipelineProgress update: Only Allow pipelineStage and pipeline connect + decorate_updatePipelineProgressPipeline_type = "*PipelineUpdateOneRequiredWithoutPipelineProgressesNestedInput" + decorate_updatePipelineProgressPipeline_field = "!(connect)" + decorate_updatePipelineProgressPipeline_name = "HideField" + decorate_updatePipelineProgressPipeline_from = "@nestjs/graphql" + decorate_updatePipelineProgressPipeline_arguments = "[]" + + decorate_updatePipelineProgressPipelineStage_type = "*PipelineStageUpdateOneRequiredWithoutPipelineProgressesNestedInput" + decorate_updatePipelineProgressPipelineStage_field = "!(connect)" + decorate_updatePipelineProgressPipelineStage_name = "HideField" + decorate_updatePipelineProgressPipelineStage_from = "@nestjs/graphql" + decorate_updatePipelineProgressPipelineStage_arguments = "[]" + + // Disable _count on all models except Aggregation use case + decorate_count_type = "!(*Aggregate*|*GroupBy*|*OrderBy*)" + decorate_count_field = "_count" + decorate_count_name = "HideField" + decorate_count_from = "@nestjs/graphql" + decorate_count_arguments = "[]" + + // create data validator + decorate_classValidator_type = "@(Create|Update|Upsert)*Args" + decorate_classValidator_field = "@(data|[A-Z]*)" + decorate_classValidator_name = ValidateNested + decorate_classValidator_from = "class-validator" + decorate_classValidator_arguments = "['{each: true}']" + decorate_classTransformer_type = "@(Create|Update|Upsert)*Args" + decorate_classTransformer_field = "@(data|[A-Z]*)" + decorate_classTransformer_from = "class-transformer" + decorate_classTransformer_arguments = "['() => {propertyType.0}']" + decorate_classTransformer_name = Type } model User { - id String @id @default(uuid()) - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - deletedAt DateTime? - lastSeen DateTime? - disabled Boolean @default(false) - displayName String - email String @unique - avatarUrl String? - locale String - phoneNumber String? + /// @Validator.IsString() + /// @Validator.IsOptional() + id String @id @default(uuid()) + /// @Validator.IsString() + /// @Validator.IsOptional() + displayName String + /// @Validator.IsEmail() + email String @unique + /// @Validator.IsBoolean() + /// @Validator.IsOptional() + emailVerified Boolean @default(false) + /// @Validator.IsString() + /// @Validator.IsOptional() + avatarUrl String? + /// @Validator.IsString() + locale String + /// @Validator.IsString() + /// @Validator.IsOptional() + phoneNumber String? + /// @Validator.IsDate() + /// @Validator.IsOptional() + lastSeen DateTime? + /// @Validator.IsBoolean() + /// @Validator.IsOptional() + disabled Boolean @default(false) /// @TypeGraphQL.omit(input: true, output: true) - passwordHash String? - emailVerified Boolean @default(false) - metadata Json? + passwordHash String? + /// @Validator.IsJSON() + /// @Validator.IsOptional() + metadata Json? + /// @TypeGraphQL.omit(input: true) workspaceMember WorkspaceMember? companies Company[] @@ -135,18 +169,28 @@ model User { refreshTokens RefreshToken[] comments Comment[] + /// @TypeGraphQL.omit(input: true, output: true) + deletedAt DateTime? + + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt + @@map("users") } /// @TypeGraphQL.omit(input: true) model Workspace { - id String @id @default(uuid()) - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - deletedAt DateTime? - domainName String @unique - displayName String - logo String? + /// @Validator.IsString() + /// @Validator.IsOptional() + id String @id @default(uuid()) + /// @Validator.IsString() + domainName String @unique + /// @Validator.IsString() + displayName String + /// @Validator.IsString() + /// @Validator.IsOptional() + logo String? + workspaceMember WorkspaceMember[] companies Company[] people Person[] @@ -156,110 +200,163 @@ model Workspace { pipelineStages PipelineStage[] pipelineProgresses PipelineProgress[] + /// @TypeGraphQL.omit(input: true, output: true) + deletedAt DateTime? + + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt + @@map("workspaces") } model WorkspaceMember { - id String @id @default(uuid()) - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - deletedAt DateTime? - userId String @unique + /// @Validator.IsString() + /// @Validator.IsOptional() + id String @id @default(uuid()) + user User @relation(fields: [userId], references: [id]) - /// @TypeGraphQL.omit(input: true, output: true) - workspaceId String + userId String @unique /// @TypeGraphQL.omit(input: true, output: false) workspace Workspace @relation(fields: [workspaceId], references: [id]) + /// @TypeGraphQL.omit(input: true, output: true) + workspaceId String + + /// @TypeGraphQL.omit(input: true, output: true) + deletedAt DateTime? + + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt @@map("workspace_members") } model Company { - id String @id @default(uuid()) - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - deletedAt DateTime? - name String - domainName String - address String - employees Int? - accountOwnerId String? - accountOwner User? @relation(fields: [accountOwnerId], references: [id]) - people Person[] + /// @Validator.IsString() + /// @Validator.IsOptional() + id String @id @default(uuid()) + /// @Validator.IsString() + name String + /// @Validator.IsString() + domainName String + /// @Validator.IsString() + address String + /// @Validator.IsNumber() + /// @Validator.IsOptional() + employees Int? - /// @TypeGraphQL.omit(input: true, output: true) - workspaceId String + people Person[] + accountOwner User? @relation(fields: [accountOwnerId], references: [id]) + accountOwnerId String? /// @TypeGraphQL.omit(input: true, output: true) workspace Workspace @relation(fields: [workspaceId], references: [id]) + /// @TypeGraphQL.omit(input: true, output: true) + workspaceId String + + /// @TypeGraphQL.omit(input: true, output: true) + deletedAt DateTime? + + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt @@map("companies") } model Person { - id String @id @default(uuid()) - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - deletedAt DateTime? - firstname String - lastname String - email String - phone String - city String - companyId String? - company Company? @relation(fields: [companyId], references: [id]) + /// @Validator.IsString() + /// @Validator.IsOptional() + id String @id @default(uuid()) + /// @Validator.IsString() + firstname String + /// @Validator.IsString() + lastname String + /// @Validator.IsEmail() + email String + /// @Validator.IsPhoneNumber() + phone String + /// @Validator.IsString() + city String - /// @TypeGraphQL.omit(input: true, output: true) - workspaceId String + company Company? @relation(fields: [companyId], references: [id]) + companyId String? /// @TypeGraphQL.omit(input: true, output: true) workspace Workspace @relation(fields: [workspaceId], references: [id]) + /// @TypeGraphQL.omit(input: true, output: true) + workspaceId String + + /// @TypeGraphQL.omit(input: true, output: true) + deletedAt DateTime? + + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt @@map("people") } model RefreshToken { - id String @id @default(uuid()) - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - isRevoked Boolean @default(false) - expiresAt DateTime - deletedAt DateTime? + /// @Validator.IsString() + /// @Validator.IsOptional() + id String @id @default(uuid()) + /// @Validator.IsBoolean() + /// @Validator.IsOptional() + isRevoked Boolean @default(false) + /// @TypeGraphQL.omit(input: true, output: true) - userId String + user User @relation(fields: [userId], references: [id]) /// @TypeGraphQL.omit(input: true, output: true) - user User @relation(fields: [userId], references: [id]) + userId String + + expiresAt DateTime + /// @TypeGraphQL.omit(input: true, output: true) + deletedAt DateTime? + + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt @@map("refresh_tokens") } model CommentThread { - id String @id @default(uuid()) - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - deletedAt DateTime? - commentThreadTargets CommentThreadTarget[] - comments Comment[] + /// @Validator.IsString() + /// @Validator.IsOptional() + id String @id @default(uuid()) + + commentThreadTargets CommentThreadTarget[] + comments Comment[] /// @TypeGraphQL.omit(input: true, output: true) - workspaceId String + workspace Workspace @relation(fields: [workspaceId], references: [id]) /// @TypeGraphQL.omit(input: true, output: true) - workspace Workspace @relation(fields: [workspaceId], references: [id]) + workspaceId String + + /// @TypeGraphQL.omit(input: true, output: true) + deletedAt DateTime? + + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt @@map("comment_threads") } model Comment { - id String @id @default(uuid()) - 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], onDelete: Cascade) + /// @Validator.IsString() + /// @Validator.IsOptional() + id String @id @default(uuid()) + /// @Validator.IsString() + body String + + author User @relation(fields: [authorId], references: [id]) + authorId String + commentThread CommentThread @relation(fields: [commentThreadId], references: [id], onDelete: Cascade) + commentThreadId String /// @TypeGraphQL.omit(input: true, output: true) - workspaceId String + workspace Workspace @relation(fields: [workspaceId], references: [id]) /// @TypeGraphQL.omit(input: true, output: true) - workspace Workspace @relation(fields: [workspaceId], references: [id]) + workspaceId String + + /// @TypeGraphQL.omit(input: true, output: true) + deletedAt DateTime? + + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt @@map("comments") } @@ -270,57 +367,75 @@ enum CommentableType { } model CommentThreadTarget { - id String @id @default(uuid()) - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - deletedAt DateTime? - commentThreadId String - commentThread CommentThread @relation(fields: [commentThreadId], references: [id], onDelete: Cascade) + /// @Validator.IsString() + /// @Validator.IsOptional() + id String @id @default(uuid()) - commentableType CommentableType - commentableId String + commentThread CommentThread @relation(fields: [commentThreadId], references: [id], onDelete: Cascade) + commentThreadId String + + commentableType CommentableType + commentableId String + + /// @TypeGraphQL.omit(input: true, output: true) + deletedAt DateTime? + + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt @@map("comment_thread_targets") } model Pipeline { - id String @id @default(uuid()) - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - deletedAt DateTime? + /// @Validator.IsString() + /// @Validator.IsOptional() + id String @id @default(uuid()) + /// @Validator.IsString() + name String + /// @Validator.IsString() + icon String - name String - icon String - pipelineStages PipelineStage[] - pipelineProgresses PipelineProgress[] - pipelineProgressableType PipelineProgressableType @default(Company) + pipelineStages PipelineStage[] + pipelineProgresses PipelineProgress[] + pipelineProgressableType PipelineProgressableType @default(Company) /// @TypeGraphQL.omit(input: true, output: true) - workspaceId String + workspace Workspace @relation(fields: [workspaceId], references: [id]) /// @TypeGraphQL.omit(input: true, output: true) - workspace Workspace @relation(fields: [workspaceId], references: [id]) + workspaceId String + + /// @TypeGraphQL.omit(input: true, output: true) + deletedAt DateTime? + + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt @@map("pipelines") } model PipelineStage { - id String @id @default(uuid()) - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - deletedAt DateTime? + /// @Validator.IsString() + /// @Validator.IsOptional() + id String @id @default(uuid()) + /// @Validator.IsString() + name String + /// @Validator.IsString() + type String + /// @Validator.IsString() + color String - name String - type String - color String - - pipelineId String - pipeline Pipeline @relation(fields: [pipelineId], references: [id]) - - pipelineProgresses PipelineProgress[] + pipelineProgresses PipelineProgress[] + pipeline Pipeline @relation(fields: [pipelineId], references: [id]) + pipelineId String + /// @TypeGraphQL.omit(input: true, output: true) + workspace Workspace @relation(fields: [workspaceId], references: [id]) + /// @TypeGraphQL.omit(input: true, output: true) + workspaceId String /// @TypeGraphQL.omit(input: true, output: true) - workspaceId String - /// @TypeGraphQL.omit(input: true, output: true) - workspace Workspace @relation(fields: [workspaceId], references: [id]) + deletedAt DateTime? + + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt @@map("pipeline_stages") } @@ -331,24 +446,26 @@ enum PipelineProgressableType { } model PipelineProgress { - id String @id @default(uuid()) - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - deletedAt DateTime? + /// @Validator.IsString() + /// @Validator.IsOptional() + id String @id @default(uuid()) - pipelineId String - pipeline Pipeline @relation(fields: [pipelineId], references: [id]) - - pipelineStageId String - pipelineStage PipelineStage @relation(fields: [pipelineStageId], references: [id]) - - progressableType PipelineProgressableType - progressableId String + pipeline Pipeline @relation(fields: [pipelineId], references: [id]) + pipelineId String + pipelineStage PipelineStage @relation(fields: [pipelineStageId], references: [id]) + pipelineStageId String + progressableType PipelineProgressableType + progressableId String + /// @TypeGraphQL.omit(input: true, output: true) + workspace Workspace @relation(fields: [workspaceId], references: [id]) + /// @TypeGraphQL.omit(input: true, output: true) + workspaceId String /// @TypeGraphQL.omit(input: true, output: true) - workspaceId String - /// @TypeGraphQL.omit(input: true, output: true) - workspace Workspace @relation(fields: [workspaceId], references: [id]) + deletedAt DateTime? + + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt @@map("pipeline_progresses") }