diff --git a/backend/packages/Upgrade/src/api/controllers/validators/AssignmentStateUpdateValidator.ts b/backend/packages/Upgrade/src/api/controllers/validators/AssignmentStateUpdateValidator.ts index bb688d3a93..443df852f2 100644 --- a/backend/packages/Upgrade/src/api/controllers/validators/AssignmentStateUpdateValidator.ts +++ b/backend/packages/Upgrade/src/api/controllers/validators/AssignmentStateUpdateValidator.ts @@ -8,7 +8,6 @@ export class AssignmentStateUpdateValidator { @IsNotEmpty() @IsUUID() - @IsDefined() public experimentId: string; @IsDefined() diff --git a/backend/packages/Upgrade/src/api/controllers/validators/CaliperLogData.ts b/backend/packages/Upgrade/src/api/controllers/validators/CaliperLogData.ts index def9baff94..a948878258 100644 --- a/backend/packages/Upgrade/src/api/controllers/validators/CaliperLogData.ts +++ b/backend/packages/Upgrade/src/api/controllers/validators/CaliperLogData.ts @@ -1,34 +1,33 @@ -import { IsNotEmpty, IsDefined, IsString, IsJSON, IsObject } from 'class-validator'; -import { Attempt, CaliperActor, ScoreObject, SUPPORTED_CALIPER_EVENTS, SUPPORTED_CALIPER_PROFILES } from 'upgrade_types'; +import { IsNotEmpty, IsString, IsJSON, IsObject } from 'class-validator'; +import { + Attempt, + CaliperActor, + ScoreObject, + SUPPORTED_CALIPER_EVENTS, + SUPPORTED_CALIPER_PROFILES, +} from 'upgrade_types'; export class CaliperLogData { - - @IsDefined() @IsNotEmpty() @IsString() public profile: SUPPORTED_CALIPER_PROFILES; - @IsDefined() @IsNotEmpty() @IsString() public type: SUPPORTED_CALIPER_EVENTS; - @IsDefined() @IsNotEmpty() @IsJSON() public actor: CaliperActor; - @IsDefined() @IsNotEmpty() @IsString() public action: string; - @IsDefined() @IsNotEmpty() @IsString() public eventTime: string; - @IsDefined() @IsNotEmpty() @IsJSON() public object: Attempt; @@ -40,5 +39,4 @@ export class CaliperLogData { @IsNotEmpty() @IsJSON() public generated: ScoreObject; - -} \ No newline at end of file +} diff --git a/backend/packages/Upgrade/src/api/controllers/validators/CaliperLogEnvelope.ts b/backend/packages/Upgrade/src/api/controllers/validators/CaliperLogEnvelope.ts index 5173b560e4..14c032a507 100644 --- a/backend/packages/Upgrade/src/api/controllers/validators/CaliperLogEnvelope.ts +++ b/backend/packages/Upgrade/src/api/controllers/validators/CaliperLogEnvelope.ts @@ -1,22 +1,18 @@ -import { IsNotEmpty, IsDefined, IsString } from 'class-validator'; +import { IsNotEmpty, IsString } from 'class-validator'; import { CaliperLogData } from './CaliperLogData'; - export class CaliperLogEnvelope { - @IsDefined() @IsNotEmpty() @IsString() public sensor: string; - @IsDefined() @IsNotEmpty() @IsString() public sendTime: string; - @IsDefined() @IsNotEmpty() @IsString() public dataVersion: string; public data: CaliperLogData[]; -} \ No newline at end of file +} diff --git a/backend/packages/Upgrade/src/api/controllers/validators/DataExportValidator.ts b/backend/packages/Upgrade/src/api/controllers/validators/DataExportValidator.ts index ffb0124b68..3496bdfeec 100644 --- a/backend/packages/Upgrade/src/api/controllers/validators/DataExportValidator.ts +++ b/backend/packages/Upgrade/src/api/controllers/validators/DataExportValidator.ts @@ -1,13 +1,11 @@ -import { IsNotEmpty, IsString, IsDefined } from 'class-validator'; +import { IsNotEmpty, IsString } from 'class-validator'; export class DataExportValidator { @IsString() @IsNotEmpty() - @IsDefined() public experimentId: string; @IsString() @IsNotEmpty() - @IsDefined() public email: string; } diff --git a/backend/packages/Upgrade/src/api/controllers/validators/DataLogAnalysisValidator.ts b/backend/packages/Upgrade/src/api/controllers/validators/DataLogAnalysisValidator.ts index 214fa3adfe..22a9cd3ca7 100644 --- a/backend/packages/Upgrade/src/api/controllers/validators/DataLogAnalysisValidator.ts +++ b/backend/packages/Upgrade/src/api/controllers/validators/DataLogAnalysisValidator.ts @@ -1,9 +1,8 @@ -import { IsNotEmpty, IsString, IsDefined, IsArray } from 'class-validator'; +import { IsNotEmpty, IsString, IsArray } from 'class-validator'; export class DataLogAnalysisValidator { - @IsString({each: true}) + @IsString({ each: true }) @IsNotEmpty() - @IsDefined() @IsArray() public queryIds: string[]; } diff --git a/backend/packages/Upgrade/src/api/controllers/validators/ExperimentAssignmentValidator.ts b/backend/packages/Upgrade/src/api/controllers/validators/ExperimentAssignmentValidator.ts index ccd3cbb547..4362263355 100644 --- a/backend/packages/Upgrade/src/api/controllers/validators/ExperimentAssignmentValidator.ts +++ b/backend/packages/Upgrade/src/api/controllers/validators/ExperimentAssignmentValidator.ts @@ -1,15 +1,13 @@ -import { IsNotEmpty, IsDefined, IsString } from 'class-validator'; +import { IsNotEmpty, IsString } from 'class-validator'; export class ExperimentAssignmentValidatorv6 { @IsNotEmpty() - @IsDefined() @IsString() public context: string; } export class ExperimentAssignmentValidator extends ExperimentAssignmentValidatorv6 { @IsNotEmpty() - @IsDefined() @IsString() public userId: string; } diff --git a/backend/packages/Upgrade/src/api/controllers/validators/ExperimentIdsValidator.ts b/backend/packages/Upgrade/src/api/controllers/validators/ExperimentIdsValidator.ts index 405af69d56..4783c2233d 100644 --- a/backend/packages/Upgrade/src/api/controllers/validators/ExperimentIdsValidator.ts +++ b/backend/packages/Upgrade/src/api/controllers/validators/ExperimentIdsValidator.ts @@ -1,9 +1,8 @@ -import { IsArray, IsNotEmpty, IsString, IsUUID } from 'class-validator'; +import { IsArray, IsNotEmpty, IsUUID } from 'class-validator'; export class ExperimentIds { @IsArray() @IsNotEmpty() - @IsString({ each: true }) @IsUUID('all', { each: true }) public ids: string[]; } diff --git a/backend/packages/Upgrade/src/api/controllers/validators/ExperimentPaginatedParamsValidator.ts b/backend/packages/Upgrade/src/api/controllers/validators/ExperimentPaginatedParamsValidator.ts index 52733ff4ea..3c039f13fb 100644 --- a/backend/packages/Upgrade/src/api/controllers/validators/ExperimentPaginatedParamsValidator.ts +++ b/backend/packages/Upgrade/src/api/controllers/validators/ExperimentPaginatedParamsValidator.ts @@ -1,4 +1,4 @@ -import { IsNotEmpty, IsDefined, IsNumber, IsEnum, IsString, ValidateNested, IsOptional } from 'class-validator'; +import { IsNotEmpty, IsNumber, IsEnum, IsString, ValidateNested, IsOptional } from 'class-validator'; import { EXPERIMENT_SEARCH_KEY, SORT_AS_DIRECTION, EXPERIMENT_SORT_KEY } from '../../models/Experiment'; import { Type } from 'class-transformer'; @@ -8,7 +8,6 @@ class ExperimentSearchParam { public key: EXPERIMENT_SEARCH_KEY; @IsNotEmpty() - @IsDefined() @IsString() public string: string; } @@ -26,12 +25,10 @@ class ExperimentSortParam { export class ExperimentPaginatedParamsValidator { @IsNotEmpty() @IsNumber() - @IsDefined() public skip: number; @IsNotEmpty() @IsNumber() - @IsDefined() public take: number; @IsOptional() diff --git a/backend/packages/Upgrade/src/api/controllers/validators/ExperimentUserAliasesValidator.ts b/backend/packages/Upgrade/src/api/controllers/validators/ExperimentUserAliasesValidator.ts index 2de3251df7..243bf75465 100644 --- a/backend/packages/Upgrade/src/api/controllers/validators/ExperimentUserAliasesValidator.ts +++ b/backend/packages/Upgrade/src/api/controllers/validators/ExperimentUserAliasesValidator.ts @@ -1,4 +1,4 @@ -import { IsNotEmpty, IsDefined, IsArray, IsString } from 'class-validator'; +import { IsNotEmpty, IsArray, IsString } from 'class-validator'; export class ExperimentUserAliasesValidatorv6 { @IsArray() @@ -8,6 +8,5 @@ export class ExperimentUserAliasesValidatorv6 { export class ExperimentUserAliasesValidator extends ExperimentUserAliasesValidatorv6 { @IsNotEmpty() - @IsDefined() public userId: string; } diff --git a/backend/packages/Upgrade/src/api/controllers/validators/FailedParamsValidator.ts b/backend/packages/Upgrade/src/api/controllers/validators/FailedParamsValidator.ts index 48f6a0ffcd..e663a7d919 100644 --- a/backend/packages/Upgrade/src/api/controllers/validators/FailedParamsValidator.ts +++ b/backend/packages/Upgrade/src/api/controllers/validators/FailedParamsValidator.ts @@ -1,12 +1,10 @@ -import { IsNotEmpty, IsDefined, IsString } from 'class-validator'; +import { IsNotEmpty, IsString } from 'class-validator'; export class FailedParamsValidator { - @IsDefined() @IsNotEmpty() @IsString() public experimentPoint: string; @IsString() - @IsDefined() @IsNotEmpty() public reason: string; diff --git a/backend/packages/Upgrade/src/api/controllers/validators/FeatureFlagImportValidator.ts b/backend/packages/Upgrade/src/api/controllers/validators/FeatureFlagImportValidator.ts index 403a4db4af..ce5c382789 100644 --- a/backend/packages/Upgrade/src/api/controllers/validators/FeatureFlagImportValidator.ts +++ b/backend/packages/Upgrade/src/api/controllers/validators/FeatureFlagImportValidator.ts @@ -32,7 +32,6 @@ class GroupValidator { class SegmentValidator { @IsOptional() @IsUUID() - @IsString() public id?: string; @IsNotEmpty() @@ -55,7 +54,6 @@ class SegmentValidator { class SegmentImportValidator { @IsOptional() @IsUUID() - @IsString() public id?: string; @IsNotEmpty() @@ -96,7 +94,6 @@ class FeatureFlagListImportValidator { public enabled: boolean; @IsNotEmpty() - @IsDefined() public listType: string; @ValidateNested() diff --git a/backend/packages/Upgrade/src/api/controllers/validators/FeatureFlagListValidator.ts b/backend/packages/Upgrade/src/api/controllers/validators/FeatureFlagListValidator.ts index 0babfac3a2..767b0677bc 100644 --- a/backend/packages/Upgrade/src/api/controllers/validators/FeatureFlagListValidator.ts +++ b/backend/packages/Upgrade/src/api/controllers/validators/FeatureFlagListValidator.ts @@ -5,7 +5,6 @@ import { SegmentInputValidator } from './SegmentInputValidator'; export class FeatureFlagListValidator { @IsNotEmpty() @IsUUID() - @IsDefined() public flagId: string; @IsDefined() @@ -13,7 +12,6 @@ export class FeatureFlagListValidator { public enabled: boolean; @IsNotEmpty() - @IsDefined() public listType: string; @ValidateNested() diff --git a/backend/packages/Upgrade/src/api/controllers/validators/FeatureFlagStatusUpdateValidator.ts b/backend/packages/Upgrade/src/api/controllers/validators/FeatureFlagStatusUpdateValidator.ts index 127087ee25..cd300ca21a 100644 --- a/backend/packages/Upgrade/src/api/controllers/validators/FeatureFlagStatusUpdateValidator.ts +++ b/backend/packages/Upgrade/src/api/controllers/validators/FeatureFlagStatusUpdateValidator.ts @@ -4,7 +4,6 @@ import { FEATURE_FLAG_STATUS } from 'upgrade_types'; export class FeatureFlagStatusUpdateValidator { @IsNotEmpty() @IsUUID() - @IsDefined() public flagId: string; @IsDefined() diff --git a/backend/packages/Upgrade/src/api/controllers/validators/FeatureFlagValidator.ts b/backend/packages/Upgrade/src/api/controllers/validators/FeatureFlagValidator.ts index 81c4ceccaf..15777325cf 100644 --- a/backend/packages/Upgrade/src/api/controllers/validators/FeatureFlagValidator.ts +++ b/backend/packages/Upgrade/src/api/controllers/validators/FeatureFlagValidator.ts @@ -10,7 +10,6 @@ export class FeatureFlagCoreValidation { public id: string; @IsNotEmpty() - @IsDefined() @IsString() public name: string; @@ -19,12 +18,10 @@ export class FeatureFlagCoreValidation { public description: string; @IsNotEmpty() - @IsDefined() @IsString() public key: string; @IsNotEmpty() - @IsDefined() @IsEnum(FEATURE_FLAG_STATUS) public status: FEATURE_FLAG_STATUS; @@ -59,19 +56,16 @@ export class FeatureFlagValidation extends FeatureFlagCoreValidation { export class UserParamsValidator { @IsNotEmpty() - @IsDefined() @IsString() public userId: string; @IsNotEmpty() - @IsDefined() @IsString() public context: string; } export class IdValidator { @IsNotEmpty() - @IsDefined() @IsUUID() public id: string; } @@ -86,7 +80,6 @@ export class FeatureFlagImportValidation { class FeatureFlagFile { @IsString() @IsNotEmpty() - @IsDefined() public fileName: string; @IsString() diff --git a/backend/packages/Upgrade/src/api/controllers/validators/FeatureFlagsPaginatedParamsValidator.ts b/backend/packages/Upgrade/src/api/controllers/validators/FeatureFlagsPaginatedParamsValidator.ts index a40aa5facf..430163d8d8 100644 --- a/backend/packages/Upgrade/src/api/controllers/validators/FeatureFlagsPaginatedParamsValidator.ts +++ b/backend/packages/Upgrade/src/api/controllers/validators/FeatureFlagsPaginatedParamsValidator.ts @@ -1,5 +1,5 @@ import { Type } from 'class-transformer'; -import { IsNotEmpty, IsDefined, IsNumber, IsOptional, ValidateNested, IsEnum, IsString } from 'class-validator'; +import { IsNotEmpty, IsNumber, IsOptional, ValidateNested, IsEnum, IsString } from 'class-validator'; import { SORT_AS_DIRECTION } from 'upgrade_types'; // TODO: Move to upgrade types @@ -61,12 +61,10 @@ class IFeatureFlagSearchParamsValidator { export class FeatureFlagPaginatedParamsValidator { @IsNotEmpty() @IsNumber() - @IsDefined() public skip: number; @IsNotEmpty() @IsNumber() - @IsDefined() public take: number; @IsOptional() diff --git a/backend/packages/Upgrade/src/api/controllers/validators/LogValidator.ts b/backend/packages/Upgrade/src/api/controllers/validators/LogValidator.ts index 547a5bf278..67e107b03e 100644 --- a/backend/packages/Upgrade/src/api/controllers/validators/LogValidator.ts +++ b/backend/packages/Upgrade/src/api/controllers/validators/LogValidator.ts @@ -1,7 +1,6 @@ import { Type } from 'class-transformer'; import { IsNotEmpty, - IsDefined, IsString, ValidateNested, IsArray, @@ -87,7 +86,6 @@ class ILogInputValidator implements ILogInput { } export class LogValidatorv6 implements ILogRequestBody { - @IsDefined() @IsNotEmpty() @IsArray() @ValidateNested({ each: true }) @@ -96,7 +94,6 @@ export class LogValidatorv6 implements ILogRequestBody { } export class LogValidator extends LogValidatorv6 implements ILogRequestBody { - @IsDefined() @IsNotEmpty() @IsString() public userId: string; diff --git a/backend/packages/Upgrade/src/api/controllers/validators/MarkExperimentValidator.v5.ts b/backend/packages/Upgrade/src/api/controllers/validators/MarkExperimentValidator.v5.ts index b2da590893..3803fe0944 100644 --- a/backend/packages/Upgrade/src/api/controllers/validators/MarkExperimentValidator.v5.ts +++ b/backend/packages/Upgrade/src/api/controllers/validators/MarkExperimentValidator.v5.ts @@ -19,7 +19,6 @@ class AssignedCondition { class Data { @IsString() @IsNotEmpty() - @IsDefined() site: string; @IsString() @@ -33,7 +32,6 @@ class Data { export class MarkExperimentValidatorv5 { @IsNotEmpty() - @IsDefined() public userId: string; @IsDefined() diff --git a/backend/packages/Upgrade/src/api/controllers/validators/MarkExperimentValidator.v6.ts b/backend/packages/Upgrade/src/api/controllers/validators/MarkExperimentValidator.v6.ts index d26e8c9130..5ed0280128 100644 --- a/backend/packages/Upgrade/src/api/controllers/validators/MarkExperimentValidator.v6.ts +++ b/backend/packages/Upgrade/src/api/controllers/validators/MarkExperimentValidator.v6.ts @@ -19,7 +19,6 @@ class AssignedCondition { class Data { @IsString() @IsNotEmpty() - @IsDefined() site: string; @IsString() diff --git a/backend/packages/Upgrade/src/api/controllers/validators/PaginatedParamsValidator.ts b/backend/packages/Upgrade/src/api/controllers/validators/PaginatedParamsValidator.ts index 58f3f613fc..727c7c0aa8 100644 --- a/backend/packages/Upgrade/src/api/controllers/validators/PaginatedParamsValidator.ts +++ b/backend/packages/Upgrade/src/api/controllers/validators/PaginatedParamsValidator.ts @@ -1,5 +1,5 @@ import { Type } from 'class-transformer'; -import { IsNotEmpty, IsDefined, IsNumber, IsString, IsEnum, IsOptional, ValidateNested } from 'class-validator'; +import { IsNotEmpty, IsNumber, IsString, IsEnum, IsOptional, ValidateNested } from 'class-validator'; import { SORT_AS_DIRECTION } from 'upgrade_types'; class SortParamsValidator { @IsNotEmpty() @@ -23,12 +23,10 @@ class SearchParamsValidator { export class PaginatedParamsValidator { @IsNotEmpty() @IsNumber() - @IsDefined() public skip: number; @IsNotEmpty() @IsNumber() - @IsDefined() public take: number; @IsOptional() diff --git a/backend/packages/Upgrade/src/api/controllers/validators/ScheduledJobsParamsValidator.ts b/backend/packages/Upgrade/src/api/controllers/validators/ScheduledJobsParamsValidator.ts index d241e887e4..ab7e31e158 100644 --- a/backend/packages/Upgrade/src/api/controllers/validators/ScheduledJobsParamsValidator.ts +++ b/backend/packages/Upgrade/src/api/controllers/validators/ScheduledJobsParamsValidator.ts @@ -1,7 +1,6 @@ -import { IsNotEmpty, IsDefined } from 'class-validator'; +import { IsNotEmpty } from 'class-validator'; export class ScheduledJobsParamsValidator { @IsNotEmpty() - @IsDefined() public id: string; } diff --git a/backend/packages/Upgrade/src/api/controllers/validators/SegmentInputValidator.ts b/backend/packages/Upgrade/src/api/controllers/validators/SegmentInputValidator.ts index 4b2b4aa7ec..2ef4584cf7 100644 --- a/backend/packages/Upgrade/src/api/controllers/validators/SegmentInputValidator.ts +++ b/backend/packages/Upgrade/src/api/controllers/validators/SegmentInputValidator.ts @@ -1,5 +1,5 @@ import { Type } from 'class-transformer'; -import { IsArray, IsDefined, IsEnum, IsNotEmpty, IsOptional, IsString, IsUUID, ValidateNested } from 'class-validator'; +import { IsArray, IsEnum, IsNotEmpty, IsOptional, IsString, IsUUID, ValidateNested } from 'class-validator'; import { SEGMENT_TYPE } from 'upgrade_types'; export class Group { @@ -14,7 +14,6 @@ export class Group { export class SegmentInputValidator { @IsOptional() @IsUUID() - @IsString() public id?: string; @IsNotEmpty() @@ -49,7 +48,6 @@ export class SegmentInputValidator { export class IdValidator { @IsNotEmpty() - @IsDefined() @IsUUID() public segmentId: string; } @@ -88,7 +86,6 @@ export class SegmentFile { export class SegmentIds { @IsArray() @IsNotEmpty() - @IsString({ each: true }) @IsUUID('all', { each: true }) public ids: string[]; } diff --git a/backend/packages/Upgrade/src/api/controllers/validators/SupportGetAssignmentParamsValidator.ts b/backend/packages/Upgrade/src/api/controllers/validators/SupportGetAssignmentParamsValidator.ts index 874e222a42..140abe0126 100644 --- a/backend/packages/Upgrade/src/api/controllers/validators/SupportGetAssignmentParamsValidator.ts +++ b/backend/packages/Upgrade/src/api/controllers/validators/SupportGetAssignmentParamsValidator.ts @@ -1,12 +1,10 @@ -import { IsNotEmpty, IsDefined, IsString } from 'class-validator'; +import { IsNotEmpty, IsString } from 'class-validator'; export class SupportGetAssignmentParamsValidator { @IsNotEmpty() - @IsDefined() public userId: string; @IsString() @IsNotEmpty() - @IsDefined() public context: string; } diff --git a/backend/packages/Upgrade/src/api/controllers/validators/UserPaginatedParamsValidator.ts b/backend/packages/Upgrade/src/api/controllers/validators/UserPaginatedParamsValidator.ts index 1389ba3769..c9fe00eca9 100644 --- a/backend/packages/Upgrade/src/api/controllers/validators/UserPaginatedParamsValidator.ts +++ b/backend/packages/Upgrade/src/api/controllers/validators/UserPaginatedParamsValidator.ts @@ -1,5 +1,5 @@ import { Type } from 'class-transformer'; -import { IsNotEmpty, IsDefined, IsNumber, IsEnum, IsOptional, IsString, ValidateNested } from 'class-validator'; +import { IsNotEmpty, IsNumber, IsEnum, IsOptional, IsString, ValidateNested } from 'class-validator'; import { SORT_AS_DIRECTION } from 'upgrade_types'; export enum USER_SEARCH_SORT_KEY { @@ -32,12 +32,10 @@ export class UserSearchParamsValidator { export class UserPaginatedParamsValidator { @IsNotEmpty() @IsNumber() - @IsDefined() public skip: number; @IsNotEmpty() @IsNumber() - @IsDefined() public take: number; @IsOptional() diff --git a/backend/packages/Upgrade/src/api/models/ExperimentUser.ts b/backend/packages/Upgrade/src/api/models/ExperimentUser.ts index f5dd766be5..68d913c317 100644 --- a/backend/packages/Upgrade/src/api/models/ExperimentUser.ts +++ b/backend/packages/Upgrade/src/api/models/ExperimentUser.ts @@ -1,6 +1,6 @@ import { Entity, PrimaryColumn, Column, OneToMany, ManyToOne } from 'typeorm'; import { BaseModel } from './base/BaseModel'; -import { IsNotEmpty, IsDefined } from 'class-validator'; +import { IsNotEmpty } from 'class-validator'; import { Log } from './Log'; import { Type } from 'class-transformer'; import { UserStratificationFactor } from './UserStratificationFactor'; @@ -9,7 +9,6 @@ import { UserStratificationFactor } from './UserStratificationFactor'; export class ExperimentUser extends BaseModel { @PrimaryColumn() @IsNotEmpty() - @IsDefined() public id: string; @Column({ type: 'json', nullable: true }) diff --git a/backend/packages/Upgrade/src/api/models/PreviewUser.ts b/backend/packages/Upgrade/src/api/models/PreviewUser.ts index eae2cf475f..036212dadd 100644 --- a/backend/packages/Upgrade/src/api/models/PreviewUser.ts +++ b/backend/packages/Upgrade/src/api/models/PreviewUser.ts @@ -1,6 +1,6 @@ import { Entity, PrimaryColumn, OneToMany } from 'typeorm'; import { BaseModel } from './base/BaseModel'; -import { IsNotEmpty, IsDefined, ValidateNested } from 'class-validator'; +import { IsNotEmpty, ValidateNested } from 'class-validator'; import { ExplicitIndividualAssignment } from './ExplicitIndividualAssignment'; import { Type } from 'class-transformer'; @@ -8,7 +8,6 @@ import { Type } from 'class-transformer'; export class PreviewUser extends BaseModel { @PrimaryColumn() @IsNotEmpty() - @IsDefined() public id: string; @OneToMany(() => ExplicitIndividualAssignment, (condition) => condition.previewUser)