diff --git a/scripts/data/structures.js b/scripts/data/structures.js index c83e4e08e2777f322375597370005a90c594a87d..f1377d2f12585c6e1af33683c404b894e002c870 100644 --- a/scripts/data/structures.js +++ b/scripts/data/structures.js @@ -835,7 +835,6 @@ module.exports = { contactMail: 'a@a.com', structureType: 'autre', pmrAccess: false, - remoteAccompaniment: false, accountVerified: true, freeWorkShop: false, nbComputers: 0, @@ -904,7 +903,6 @@ module.exports = { contactMail: 'a@a.com', structureType: 'autre', pmrAccess: false, - remoteAccompaniment: false, accountVerified: true, freeWorkShop: false, nbComputers: 0, diff --git a/scripts/init-db.js b/scripts/init-db.js index 9cacfc6433a32091a2813e186eefe20f93859cb0..2d64df658b75129a76f88df70eeabd49ad61dd08 100644 --- a/scripts/init-db.js +++ b/scripts/init-db.js @@ -102,7 +102,6 @@ const structuresSchema = mongoose.Schema({ pmrAccess: Boolean, otherDescription: String, exceptionalClosures: String, - remoteAccompaniment: Boolean, categories: {}, freeWorkShop: Boolean, nbComputers: Number, diff --git a/src/structures/dto/structure.dto.ts b/src/structures/dto/structure.dto.ts index c8940c7c520d685cd15c89ed92f687222b2b476c..861d28a23af7a952a99292e695d8f3991ff7dbbb 100644 --- a/src/structures/dto/structure.dto.ts +++ b/src/structures/dto/structure.dto.ts @@ -41,8 +41,6 @@ export class StructureDto { @IsNotEmpty() pmrAccess: boolean; - remoteAccompaniment: boolean; - @IsNotEmpty() categories: any; diff --git a/src/structures/schemas/structure.schema.ts b/src/structures/schemas/structure.schema.ts index 8fd884748af622ff5b80a9774ab4ffac56e4f988..37c5b34ebe6507f9f86473c721a0d92c2d9b256a 100644 --- a/src/structures/schemas/structure.schema.ts +++ b/src/structures/schemas/structure.schema.ts @@ -27,7 +27,6 @@ export class Structure { this.pmrAccess = data.pmrAccess; this.otherDescription = data.otherDescription; this.exceptionalClosures = data.exceptionalClosures; - this.remoteAccompaniment = data.remoteAccompaniment; this.categories = data.categories; this.exceptionalClosures = data.exceptionalClosures; this.freeWorkShop = data.freeWorkShop; @@ -92,10 +91,6 @@ export class Structure { @Prop() exceptionalClosures: string; - @Prop() - @IsNotEmpty() - remoteAccompaniment: boolean; - @Prop({ type: StructureCategories }) categories: StructureCategories; diff --git a/src/structures/services/structures-import.service.ts b/src/structures/services/structures-import.service.ts index 4917b6ed721352671ba1007576c718eebffc2a9c..623d0b300237a43e2a46b45733d39aad8066cd64 100644 --- a/src/structures/services/structures-import.service.ts +++ b/src/structures/services/structures-import.service.ts @@ -157,7 +157,6 @@ export class StructuresImportService { contactMail: structure.courriel ?? null, hours: this.convertFromOSMFormat(structure.horaires), accountVerified: true, - remoteAccompaniment: false, pmrAccess: false, nbComputers: 0, nbPrinters: 0, diff --git a/src/structures/structures.controller.spec.ts b/src/structures/structures.controller.spec.ts index 2922f927e310e0b41ebefe5e22f3471ed4afb9cd..2b7eb75aec0bf7bf0be43611c32b55d2df319e6f 100644 --- a/src/structures/structures.controller.spec.ts +++ b/src/structures/structures.controller.spec.ts @@ -136,7 +136,6 @@ describe('StructuresController', () => { it('should update structure', async () => { await structuresController.update('azerty', { deletedAt: null, - remoteAccompaniment: null, dataShareConsentDate: null, personalOffers: [], }); diff --git a/test/mock/data/gouvStructures.mock.data.ts b/test/mock/data/gouvStructures.mock.data.ts index 8858ff1ce562852dc514f7a171de91659d9a068a..c83cf92e2a47e4926fe90845aa3252e315c1fb15 100644 --- a/test/mock/data/gouvStructures.mock.data.ts +++ b/test/mock/data/gouvStructures.mock.data.ts @@ -43,7 +43,6 @@ export const mockGouvStructureToResinFormat = new Structure({ contactPhone: '0478578285', contactMail: 'mediatheque@mairie-craponne.fr', pmrAccess: false, - remoteAccompaniment: false, categories: { labelsQualifications: [], accessModality: ['accesLibre'], diff --git a/test/mock/data/structure.mock.dto.ts b/test/mock/data/structure.mock.dto.ts index 7dff90e6336d757fb1701257f4b2f0b15fddec8b..79a1025fd1841e8a0807d6e8523ab91f5a9a8ef5 100644 --- a/test/mock/data/structure.mock.dto.ts +++ b/test/mock/data/structure.mock.dto.ts @@ -16,7 +16,6 @@ export const structureDtoMock: StructureDto = { linkedin: '', otherDescription: '', pmrAccess: false, - remoteAccompaniment: false, categories: '', freeWorkShop: '', nbComputers: 0, diff --git a/test/mock/data/structures.mock.data.ts b/test/mock/data/structures.mock.data.ts index 1f2777ebed438019eec65afba6716143c7abe933..18d7efcdb7858edd82182532386c129de4c4fee4 100644 --- a/test/mock/data/structures.mock.data.ts +++ b/test/mock/data/structures.mock.data.ts @@ -216,7 +216,6 @@ export const structureMockDto: StructureDto = { updatedAt: new Date(), toBeDeletedAt: new Date(), deletedAt: new Date(), - remoteAccompaniment: true, dataShareConsentDate: new Date(), }; @@ -317,7 +316,6 @@ export const mockStructureDocument = ({ accountVerified: true, createdAt: new Date('2021-05-06T09:42:38.000Z'), updatedAt: new Date('2021-05-06T09:42:38.000Z'), - remoteAccompaniment: null, deletedAt: null, dataShareConsentDate: null, personalOffers: null, @@ -329,7 +327,6 @@ export const mockStructure: Structure = { dataShareConsentDate: null, deletedAt: null, personalOffers: [], - remoteAccompaniment: null, updatedAt: null, categories: { accessModality: ['accesLibre'], @@ -431,7 +428,6 @@ export const mockDeletedStructure: Structure = { structureType: null, categoriesWithPersonalOffers: {}, dataShareConsentDate: new Date(2023, 1, 1), - remoteAccompaniment: true, hours: { monday: { open: false, diff --git a/test/mock/services/structures.mock.service.ts b/test/mock/services/structures.mock.service.ts index 9abac5d5ebd38fffda872f049fca4a2cef6a5ef5..2829613bcb2d9dcf42add4cf5c7ec0ead7644e13 100644 --- a/test/mock/services/structures.mock.service.ts +++ b/test/mock/services/structures.mock.service.ts @@ -1277,7 +1277,6 @@ export class StructuresServiceMock { personalOffers: [personalOfferDocument], createdAt: new Date('2021-05-06T09:42:38.000Z'), updatedAt: new Date('2021-05-06T09:42:50.000Z'), - remoteAccompaniment: true, deletedAt: null, dataShareConsentDate: null, }) as StructureDocument; @@ -1541,7 +1540,6 @@ export const mockResinStructures: Array<Structure> = [ accountVerified: true, createdAt: new Date('2021-05-06T09:42:38.000Z'), updatedAt: new Date('2021-05-06T09:42:50.000Z'), - remoteAccompaniment: false, deletedAt: new Date('2121-05-06T09:42:38.000Z'), dataShareConsentDate: new Date('2021-05-06T09:42:38.000Z'), personalOffers: [], @@ -1645,7 +1643,6 @@ export const mockResinStructures: Array<Structure> = [ personalOffers: [], createdAt: new Date('2021-05-06T09:42:38.000Z'), updatedAt: new Date('2021-05-06T09:42:50.000Z'), - remoteAccompaniment: false, deletedAt: new Date('2121-05-06T09:42:38.000Z'), dataShareConsentDate: new Date('2021-05-06T09:42:38.000Z'), categoriesWithPersonalOffers: null, @@ -1748,7 +1745,6 @@ export const mockResinStructures: Array<Structure> = [ personalOffers: [], createdAt: new Date('2021-05-06T09:42:38.000Z'), updatedAt: new Date('2021-05-06T09:42:50.000Z'), - remoteAccompaniment: false, deletedAt: new Date('2121-05-06T09:42:38.000Z'), dataShareConsentDate: new Date('2021-05-06T09:42:38.000Z'), categoriesWithPersonalOffers: null,