Skip to content
Snippets Groups Projects
Commit 46224c11 authored by Jérémie BRISON's avatar Jérémie BRISON
Browse files

fix(form) : clean and fix structure modem

parent 33fd1eea
No related branches found
No related tags found
3 merge requests!27Recette,!26Dev,!25Fix/form design create structure
......@@ -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[];
......
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment