Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TECH] 🚚 🧹 Déplacement et nettoyage du contenu du répertoire lib/domain/events #11167

Merged
merged 11 commits into from
Jan 27, 2025
7 changes: 0 additions & 7 deletions api/lib/domain/events/CampaignParticipationStarted.js

This file was deleted.

10 changes: 0 additions & 10 deletions api/lib/domain/events/Event.js

This file was deleted.

120 changes: 0 additions & 120 deletions api/lib/domain/events/index.js

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as events from '../../../../lib/domain/events/index.js';
import * as events from '../../../shared/domain/events/index.js';
import { usecases } from '../domain/usecases/index.js';

const neutralizeChallenge = async function (request, h, dependencies = { events }) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as events from '../../../../../lib/domain/events/index.js';
import { JobController } from '../../../../shared/application/jobs/job-controller.js';
import { V3_REPRODUCIBILITY_RATE } from '../../../../shared/domain/constants.js';
import { CertificationComputeError } from '../../../../shared/domain/errors.js';
import * as events from '../../../../shared/domain/events/index.js';
import { AssessmentResult } from '../../../../shared/domain/models/index.js';
import { AssessmentResultFactory } from '../../../scoring/domain/models/factories/AssessmentResultFactory.js';
import { assessmentResultRepository } from '../../../session-management/infrastructure/repositories/index.js';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as events from '../../../../lib/domain/events/index.js';
import { usecases as certificationSharedUsecases } from '../../../../src/certification/shared/domain/usecases/index.js';
import * as events from '../../../shared/domain/events/index.js';
import { usecases as certificationSharedUsecases } from '../../shared/domain/usecases/index.js';
import { usecases } from '../domain/usecases/index.js';
import * as certificationSerializer from '../infrastructure/serializers/certification-serializer.js';
import * as juryCommentSerializer from '../infrastructure/serializers/jury-comment-serializer.js';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as events from '../../../../lib/domain/events/index.js';
import { DomainTransaction } from '../../../shared/domain/DomainTransaction.js';
import * as events from '../../../shared/domain/events/index.js';
import * as certificationReportSerializer from '../../shared/infrastructure/serializers/jsonapi/certification-report-serializer.js';
import { usecases } from '../domain/usecases/index.js';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { eventDispatcher } from '../../../../../lib/domain/events/index.js';
import { JobController } from '../../../../shared/application/jobs/job-controller.js';
import { eventDispatcher } from '../../../../shared/domain/events/index.js';
import CertificationRescoredByScript from '../../domain/events/CertificationRescoredByScript.js';
import { CertificationRescoringByScriptJob } from '../../domain/models/CertificationRescoringByScriptJob.js';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CertificationCourseUnrejected } from '../../../../../lib/domain/events/CertificationCourseUnrejected.js';
import { CertificationCourseUnrejected } from '../../../../shared/domain/events/CertificationCourseUnrejected.js';

export const unrejectCertificationCourse = async ({ certificationCourseId, juryId, certificationCourseRepository }) => {
const certificationCourse = await certificationCourseRepository.get({ id: certificationCourseId });
Expand Down
4 changes: 2 additions & 2 deletions api/src/identity-access-management/domain/usecases/index.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import { dirname, join } from 'node:path';
import { fileURLToPath } from 'node:url';

import { eventBus } from '../../../../lib/domain/events/index.js';
import * as userReconciliationService from '../../../../lib/domain/services/user-reconciliation-service.js';
import { oidcAuthenticationServiceRegistry } from '../../../../lib/domain/usecases/index.js';
import * as campaignRepository from '../../../../src/prescription/campaign/infrastructure/repositories/campaign-repository.js';
import * as centerRepository from '../../../certification/enrolment/infrastructure/repositories/center-repository.js';
import * as userRecommendedTrainingRepository from '../../../devcomp/infrastructure/repositories/user-recommended-training-repository.js';
import * as campaignRepository from '../../../prescription/campaign/infrastructure/repositories/campaign-repository.js';
import { repositories as campaignRepositories } from '../../../prescription/campaign/infrastructure/repositories/index.js';
import * as campaignParticipationRepository from '../../../prescription/campaign-participation/infrastructure/repositories/campaign-participation-repository.js';
import * as prescriptionOrganizationLearnerRepository from '../../../prescription/learner-management/infrastructure/repositories/organization-learner-repository.js';
import { config } from '../../../shared/config.js';
import { eventBus } from '../../../shared/domain/events/index.js';
import { cryptoService } from '../../../shared/domain/services/crypto-service.js';
import { mailService } from '../../../shared/domain/services/mail-service.js';
import { tokenService } from '../../../shared/domain/services/token-service.js';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { ChallengeDeneutralized } from '../../../src/certification/evaluation/domain/events/ChallengeDeneutralized.js';
import { ChallengeNeutralized } from '../../../src/certification/evaluation/domain/events/ChallengeNeutralized.js';
import { services } from '../../../src/certification/evaluation/domain/services/index.js';
import { AssessmentResultFactory } from '../../../src/certification/scoring/domain/models/factories/AssessmentResultFactory.js';
import { CertificationCourseRejected } from '../../../src/certification/session-management/domain/events/CertificationCourseRejected.js';
import { CertificationJuryDone } from '../../../src/certification/session-management/domain/events/CertificationJuryDone.js';
import CertificationRescoredByScript from '../../../src/certification/session-management/domain/events/CertificationRescoredByScript.js';
import { AlgorithmEngineVersion } from '../../../src/certification/shared/domain/models/AlgorithmEngineVersion.js';
import { V3_REPRODUCIBILITY_RATE } from '../../../src/shared/domain/constants.js';
import { CertificationComputeError } from '../../../src/shared/domain/errors.js';
import { CertificationResult } from '../../../src/shared/domain/models/CertificationResult.js';
import { ChallengeDeneutralized } from '../../../certification/evaluation/domain/events/ChallengeDeneutralized.js';
import { ChallengeNeutralized } from '../../../certification/evaluation/domain/events/ChallengeNeutralized.js';
import { services } from '../../../certification/evaluation/domain/services/index.js';
import { AssessmentResultFactory } from '../../../certification/scoring/domain/models/factories/AssessmentResultFactory.js';
import { CertificationCourseRejected } from '../../../certification/session-management/domain/events/CertificationCourseRejected.js';
import { CertificationJuryDone } from '../../../certification/session-management/domain/events/CertificationJuryDone.js';
import CertificationRescoredByScript from '../../../certification/session-management/domain/events/CertificationRescoredByScript.js';
import { AlgorithmEngineVersion } from '../../../certification/shared/domain/models/AlgorithmEngineVersion.js';
import { V3_REPRODUCIBILITY_RATE } from '../constants.js';
import { CertificationComputeError } from '../errors.js';
import { CertificationResult } from '../models/CertificationResult.js';
import { CertificationCourseUnrejected } from './CertificationCourseUnrejected.js';
import { CertificationRescoringCompleted } from './CertificationRescoringCompleted.js';
import { checkEventTypes } from './check-event-types.js';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { CertificationScoringCompleted } from '../../../src/certification/evaluation/domain/events/CertificationScoringCompleted.js';
import { ComplementaryCertificationCourseResult } from '../../../src/certification/shared/domain/models/ComplementaryCertificationCourseResult.js';
import { AnswerCollectionForScoring } from '../../../src/shared/domain/models/AnswerCollectionForScoring.js';
import { ComplementaryCertificationScoringWithComplementaryReferential } from '../../../src/shared/domain/models/ComplementaryCertificationScoringWithComplementaryReferential.js';
import { ComplementaryCertificationScoringWithoutComplementaryReferential } from '../../../src/shared/domain/models/ComplementaryCertificationScoringWithoutComplementaryReferential.js';
import { ReproducibilityRate } from '../../../src/shared/domain/models/ReproducibilityRate.js';
import { CertificationScoringCompleted } from '../../../certification/evaluation/domain/events/CertificationScoringCompleted.js';
import { ComplementaryCertificationCourseResult } from '../../../certification/shared/domain/models/ComplementaryCertificationCourseResult.js';
import { AnswerCollectionForScoring } from '../models/AnswerCollectionForScoring.js';
import { ComplementaryCertificationScoringWithComplementaryReferential } from '../models/ComplementaryCertificationScoringWithComplementaryReferential.js';
import { ComplementaryCertificationScoringWithoutComplementaryReferential } from '../models/ComplementaryCertificationScoringWithoutComplementaryReferential.js';
import { ReproducibilityRate } from '../models/ReproducibilityRate.js';
import { CertificationRescoringCompleted } from './CertificationRescoringCompleted.js';
import { checkEventTypes } from './check-event-types.js';

Expand Down
Loading
Loading