@@ -4,8 +4,10 @@ import mercurius from "mercurius";
4
4
5
5
import { prismaClient } from "../../prisma/client" ;
6
6
import { logCandidacyAuditEvent } from "../candidacy-log/features/logCandidacyAuditEvent" ;
7
+ import { getCandidateById } from "../candidate/features/getCandidateById" ;
7
8
import { getOrganismById } from "../organism/features/getOrganism" ;
8
9
import { getDepartmentById } from "../referential/features/getDepartmentById" ;
10
+ import { getReorientationReasonById } from "../referential/features/getReorientationReasonById" ;
9
11
import {
10
12
FunctionalCodeError ,
11
13
FunctionalError ,
@@ -22,10 +24,17 @@ import { addExperienceToCandidacy } from "./features/addExperienceToCandidacy";
22
24
import { archiveCandidacy } from "./features/archiveCandidacy" ;
23
25
import { cancelDropOutCandidacy } from "./features/cancelDropOutCandidacy" ;
24
26
import { dropOutCandidacy } from "./features/dropOutCandidacy" ;
27
+ import { getCandidacies } from "./features/getCandicacies" ;
25
28
import { getCandidacy } from "./features/getCandidacy" ;
26
29
import { getCandidacyCcns } from "./features/getCandidacyCcns" ;
30
+ import { getCandidacyConventionCollectiveById } from "./features/getCandidacyConventionCollectiveById" ;
27
31
import { getCandidacyCountByStatus } from "./features/getCandidacyCountByStatus" ;
32
+ import { getCandidacyDropOutByCandidacyId } from "./features/getCandidacyDropOutByCandidacyId" ;
33
+ import { getCandidacyFinancingMethodById } from "./features/getCandidacyFinancingMethodById" ;
28
34
import { getCandidacyGoals } from "./features/getCandidacyGoals" ;
35
+ import { getCandidacyOnCandidacyFinancingMethodsByCandidacyId } from "./features/getCandidacyOnCandidacyFinancingMethodsByCandidacyId" ;
36
+ import { getCandidacyStatusesByCandidacyId } from "./features/getCandidacyStatusesByCandidacyId" ;
37
+ import { getDropOutReasonById } from "./features/getDropOutReasonById" ;
29
38
import { getExperiencesByCandidacyId } from "./features/getExperiencesByCandidacyId" ;
30
39
import { searchOrganismsForCandidacy } from "./features/searchOrganismsForCandidacy" ;
31
40
import { selectOrganismForCandidacy } from "./features/selectOrganismForCandidacy" ;
@@ -34,28 +43,20 @@ import { submitCandidacy } from "./features/submitCandidacy";
34
43
import { takeOverCandidacy } from "./features/takeOverCandidacy" ;
35
44
import { unarchiveCandidacy } from "./features/unarchiveCandidacy" ;
36
45
import { updateAppointmentInformations } from "./features/updateAppointmentInformations" ;
46
+ import { updateCandidacyTypeAccompagnement } from "./features/updateCandidacyTypeAccompagnement" ;
37
47
import { updateCandidacyTypologyAndCcn } from "./features/updateCandidacyTypologyAndCcn" ;
38
48
import { updateContactOfCandidacy } from "./features/updateContactOfCandidacy" ;
39
49
import { updateExperienceOfCandidacy } from "./features/updateExperienceOfCandidacy" ;
40
50
import { updateGoalsOfCandidacy } from "./features/updateGoalsOfCandidacy" ;
51
+ import { updateLastActivityDate } from "./features/updateLastActivityDate" ;
52
+ import { validateDropOutCandidacy } from "./features/validateDropOutCandidacy" ;
41
53
import { logCandidacyEvent } from "./logCandidacyEvent" ;
42
54
import {
43
55
sendCandidacyArchivedEmailToCertificateur ,
44
56
sendCandidacyDropOutEmailToCandidate ,
45
57
sendCandidacyDropOutEmailToCertificateur ,
46
58
} from "./mails" ;
47
59
import { resolversSecurityMap } from "./security/security" ;
48
- import { getCandidacyStatusesByCandidacyId } from "./features/getCandidacyStatusesByCandidacyId" ;
49
- import { getReorientationReasonById } from "../referential/features/getReorientationReasonById" ;
50
- import { getCandidacyConventionCollectiveById } from "./features/getCandidacyConventionCollectiveById" ;
51
- import { getCandidacyDropOutByCandidacyId } from "./features/getCandidacyDropOutByCandidacyId" ;
52
- import { getDropOutReasonById } from "./features/getDropOutReasonById" ;
53
- import { getCandidacies } from "./features/getCandicacies" ;
54
- import { getCandidateById } from "../candidate/features/getCandidateById" ;
55
- import { updateCandidacyTypeAccompagnement } from "./features/updateCandidacyTypeAccompagnement" ;
56
- import { validateDropOutCandidacy } from "./features/validateDropOutCandidacy" ;
57
- import { getCandidacyOnCandidacyFinancingMethodsByCandidacyId } from "./features/getCandidacyOnCandidacyFinancingMethodsByCandidacyId" ;
58
- import { getCandidacyFinancingMethodById } from "./features/getCandidacyFinancingMethodById" ;
59
60
60
61
const unsafeResolvers = {
61
62
Candidacy : {
@@ -594,6 +595,13 @@ const unsafeResolvers = {
594
595
} ) ;
595
596
return result ;
596
597
} ,
598
+ candidacy_updateLastActivityDate : async (
599
+ _parent : unknown ,
600
+ payload : {
601
+ candidacyId : string ;
602
+ readyForJuryEstimatedAt : Date ;
603
+ } ,
604
+ ) => updateLastActivityDate ( payload ) ,
597
605
} ,
598
606
} ;
599
607
0 commit comments