From 04a5f9d695e16a17ece15d0fd2710dd252c1e2e1 Mon Sep 17 00:00:00 2001 From: samuel Date: Thu, 8 Feb 2024 14:47:36 +0100 Subject: [PATCH] delete --- .../policy-criterion-builder.dto.ts | 32 ------------------- 1 file changed, 32 deletions(-) delete mode 100644 apps/authz/src/app/http/rest/dto/policy-rules/policy-criterion-builder.dto.ts diff --git a/apps/authz/src/app/http/rest/dto/policy-rules/policy-criterion-builder.dto.ts b/apps/authz/src/app/http/rest/dto/policy-rules/policy-criterion-builder.dto.ts deleted file mode 100644 index b8374d80b..000000000 --- a/apps/authz/src/app/http/rest/dto/policy-rules/policy-criterion-builder.dto.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { PolicyCriterionDto } from '@app/authz/app/http/rest/dto/policy-rules/policy-criterion.dto' -import { Then } from '@narval/authz-shared' -import { ApiProperty } from '@nestjs/swagger' -import { Type } from 'class-transformer' -import { IsDefined, IsIn, IsString, ValidateNested } from 'class-validator' - -export class PolicyDto { - @IsString() - @IsDefined() - @ApiProperty() - name: string - - @ValidateNested() - @Type(() => PolicyCriterionDto) - @ApiProperty({ - type: () => PolicyCriterionDto, - isArray: true - }) - when: PolicyCriterionDto[] - - @IsIn(Object.values(Then)) - @IsDefined() - @ApiProperty({ - enum: Object.values(Then), - default: Then.FORBID - }) - then: Then - - constructor(partial: Partial) { - Object.assign(this, partial) - } -}