From 48b3f3c7a5a6c82861298fce11c042175dd1bfed Mon Sep 17 00:00:00 2001 From: Antonin Coquet <ext.sopra.acoquet@grandlyon.com> Date: Thu, 20 May 2021 15:27:35 +0200 Subject: [PATCH] feat: add remote accompaniment --- src/structures/dto/structure.dto.ts | 1 + src/structures/schemas/structure.schema.ts | 3 +++ src/structures/services/aptic-structures.service.ts | 1 + 3 files changed, 5 insertions(+) diff --git a/src/structures/dto/structure.dto.ts b/src/structures/dto/structure.dto.ts index b4e417214..12cd9f607 100644 --- a/src/structures/dto/structure.dto.ts +++ b/src/structures/dto/structure.dto.ts @@ -39,6 +39,7 @@ export class structureDto { pmrAccess: boolean; publicsAccompaniment: string[]; proceduresAccompaniment: string[]; + remoteAccompaniment: boolean; @ArrayNotEmpty() accessModality: string[]; diff --git a/src/structures/schemas/structure.schema.ts b/src/structures/schemas/structure.schema.ts index fdd977bfc..8de601425 100644 --- a/src/structures/schemas/structure.schema.ts +++ b/src/structures/schemas/structure.schema.ts @@ -75,6 +75,9 @@ export class Structure { @Prop() proceduresAccompaniment: string[]; + @Prop() + remoteAccompaniment: boolean; + @Prop() baseSkills: string[]; diff --git a/src/structures/services/aptic-structures.service.ts b/src/structures/services/aptic-structures.service.ts index b0013f8fc..766a7513f 100644 --- a/src/structures/services/aptic-structures.service.ts +++ b/src/structures/services/aptic-structures.service.ts @@ -75,6 +75,7 @@ export class ApticStructuresService { createdStructure.labelsQualifications = ['passNumerique']; createdStructure.structureType = 'autre'; createdStructure.pmrAccess = false; + createdStructure.remoteAccompaniment = false; createdStructure.accessModality = ['accesLibre']; createdStructure.publics = ['toutPublic']; createdStructure.accountVerified = true; -- GitLab