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
Branches
Tags
3 merge requests!27Recette,!26Dev,!25Fix/form design create structure
...@@ -8,23 +8,18 @@ export class structureDto { ...@@ -8,23 +8,18 @@ export class structureDto {
createdAt: string; createdAt: string;
updatedAt: string; updatedAt: string;
@IsNotEmpty()
structureRepresentation: string;
@IsNotEmpty() @IsNotEmpty()
structureName: string; structureName: string;
@ArrayNotEmpty()
structureType: string[];
@IsNotEmpty() @IsNotEmpty()
structureType: string;
description: string; description: string;
@ValidateNested({ each: true }) @ValidateNested({ each: true })
@Type(() => Address) @Type(() => Address)
address: Address; address: Address;
@IsNotEmpty()
contactPhone: string; contactPhone: string;
@IsNotEmpty() @IsNotEmpty()
...@@ -34,11 +29,10 @@ export class structureDto { ...@@ -34,11 +29,10 @@ export class structureDto {
facebook: string; facebook: string;
twitter: string; twitter: string;
instagram: string; instagram: string;
gender: string; linkedin: string;
contactName: string;
contactSurname: string;
fonction: string;
lockdownActivity: string; lockdownActivity: string;
otherDescription: string;
pmrAccess: boolean; pmrAccess: boolean;
publicsAccompaniment: string[]; publicsAccompaniment: string[];
proceduresAccompaniment: string[]; proceduresAccompaniment: string[];
...@@ -50,7 +44,8 @@ export class structureDto { ...@@ -50,7 +44,8 @@ export class structureDto {
@ArrayNotEmpty() @ArrayNotEmpty()
publics: string[]; publics: string[];
freeWifi: boolean;
freeWorkShop: boolean;
nbComputers: number; nbComputers: number;
nbPrinters: number; nbPrinters: number;
nbTablets: number; nbTablets: number;
...@@ -58,8 +53,6 @@ export class structureDto { ...@@ -58,8 +53,6 @@ export class structureDto {
exceptionalClosures: string; exceptionalClosures: string;
equipmentsAndServices: string[]; equipmentsAndServices: string[];
hours: Week; hours: Week;
equipmentsDetails: string;
equipmentsAccessType: string[];
baseSkills: string[]; baseSkills: string[];
accessRight: string[]; accessRight: string[];
parentingHelp: string[]; parentingHelp: string[];
......
...@@ -16,14 +16,11 @@ export class Structure { ...@@ -16,14 +16,11 @@ export class Structure {
@Prop() @Prop()
updatedAt: string; updatedAt: string;
@Prop()
structureRepresentation: string;
@Prop() @Prop()
structureName: string; structureName: string;
@Prop() @Prop()
structureType: string[]; structureType: string;
@Prop() @Prop()
description: string; description: string;
...@@ -52,16 +49,7 @@ export class Structure { ...@@ -52,16 +49,7 @@ export class Structure {
instagram: string; instagram: string;
@Prop() @Prop()
gender: string; linkedin: string;
@Prop()
contactName: string;
@Prop()
contactSurname: string;
@Prop()
fonction: string;
@Prop() @Prop()
pmrAccess: boolean; pmrAccess: boolean;
...@@ -72,6 +60,9 @@ export class Structure { ...@@ -72,6 +60,9 @@ export class Structure {
@Prop() @Prop()
documentsMeeting: string; documentsMeeting: string;
@Prop()
otherDescription: string;
@Prop() @Prop()
labelsQualifications: string[]; labelsQualifications: string[];
...@@ -103,13 +94,13 @@ export class Structure { ...@@ -103,13 +94,13 @@ export class Structure {
digitalCultureSecurity: string[]; digitalCultureSecurity: string[];
@Prop() @Prop()
equipmentsDetails: string; equipmentsAndServices: string[];
@Prop() @Prop()
equipmentsAccessType: string[]; freeWifi: boolean;
@Prop() @Prop()
equipmentsAndServices: string[]; freeWorkShop: boolean;
@Prop() @Prop()
nbComputers: number; nbComputers: number;
...@@ -128,9 +119,6 @@ export class Structure { ...@@ -128,9 +119,6 @@ export class Structure {
@Prop() @Prop()
coord: number[]; coord: number[];
@Prop()
jaccompagneLesUsagersDansLeursDemarchesEnLigne: boolean;
} }
export const StructureSchema = SchemaFactory.createForClass(Structure); export const StructureSchema = SchemaFactory.createForClass(Structure);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment