diff --git a/src/structures/dto/structure.dto.ts b/src/structures/dto/structure.dto.ts index 4054a44725a1ba5642c2054b7015372c0c5a23dd..756e7de625f33fa17f116412b91cdf59ecd5c3e8 100644 --- a/src/structures/dto/structure.dto.ts +++ b/src/structures/dto/structure.dto.ts @@ -8,23 +8,18 @@ export class structureDto { createdAt: string; updatedAt: string; - @IsNotEmpty() - structureRepresentation: string; - @IsNotEmpty() structureName: string; - @ArrayNotEmpty() - structureType: string[]; - @IsNotEmpty() + structureType: string; + description: string; @ValidateNested({ each: true }) @Type(() => Address) address: Address; - @IsNotEmpty() contactPhone: string; @IsNotEmpty() @@ -34,11 +29,10 @@ export class structureDto { facebook: string; twitter: string; instagram: string; - gender: string; - contactName: string; - contactSurname: string; - fonction: string; + linkedin: string; + lockdownActivity: string; + otherDescription: string; pmrAccess: boolean; publicsAccompaniment: string[]; proceduresAccompaniment: string[]; @@ -50,7 +44,8 @@ export class structureDto { @ArrayNotEmpty() publics: string[]; - + freeWifi: boolean; + freeWorkShop: boolean; nbComputers: number; nbPrinters: number; nbTablets: number; @@ -58,8 +53,6 @@ export class structureDto { exceptionalClosures: string; equipmentsAndServices: string[]; hours: Week; - equipmentsDetails: string; - equipmentsAccessType: string[]; baseSkills: string[]; accessRight: string[]; parentingHelp: string[]; diff --git a/src/structures/schemas/structure.schema.ts b/src/structures/schemas/structure.schema.ts index e743d5f2077a9632c3092b8f416e3e58beabeb57..7481a94728b49d13fa8e9c1038ed238802b97a62 100644 --- a/src/structures/schemas/structure.schema.ts +++ b/src/structures/schemas/structure.schema.ts @@ -16,14 +16,11 @@ export class Structure { @Prop() updatedAt: string; - @Prop() - structureRepresentation: string; - @Prop() structureName: string; @Prop() - structureType: string[]; + structureType: string; @Prop() description: string; @@ -52,16 +49,7 @@ export class Structure { instagram: string; @Prop() - gender: string; - - @Prop() - contactName: string; - - @Prop() - contactSurname: string; - - @Prop() - fonction: string; + linkedin: string; @Prop() pmrAccess: boolean; @@ -72,6 +60,9 @@ export class Structure { @Prop() documentsMeeting: string; + @Prop() + otherDescription: string; + @Prop() labelsQualifications: string[]; @@ -103,13 +94,13 @@ export class Structure { digitalCultureSecurity: string[]; @Prop() - equipmentsDetails: string; + equipmentsAndServices: string[]; @Prop() - equipmentsAccessType: string[]; + freeWifi: boolean; @Prop() - equipmentsAndServices: string[]; + freeWorkShop: boolean; @Prop() nbComputers: number; @@ -128,9 +119,6 @@ export class Structure { @Prop() coord: number[]; - - @Prop() - jaccompagneLesUsagersDansLeursDemarchesEnLigne: boolean; } export const StructureSchema = SchemaFactory.createForClass(Structure);