-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
55 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
src/graphql/generated |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"semi": true, | ||
"singleQuote": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 10 additions & 6 deletions
16
...ges/reva-api/modules/certification-authority/features/getCertificationAuthorityRegions.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
import { prismaClient } from "../../../prisma/client"; | ||
import { getDepartmentsByCertificationAuthorityId } from "./getDepartmentsByCertificationAuthorityId"; | ||
|
||
export const getCertificationAuthorityRegions = async (certificationAuthorityId: string) => { | ||
const departments = await getDepartmentsByCertificationAuthorityId({ certificationAuthorityId}) | ||
const regionIds = departments.map((d) => d.regionId) | ||
export const getCertificationAuthorityRegions = async ( | ||
certificationAuthorityId: string, | ||
) => { | ||
const departments = await getDepartmentsByCertificationAuthorityId({ | ||
certificationAuthorityId, | ||
}); | ||
const regionIds = departments.map((d) => d.regionId); | ||
|
||
const regions = await prismaClient.region.findMany({ | ||
where: { id: { in: regionIds } } | ||
}) | ||
where: { id: { in: regionIds } }, | ||
}); | ||
return regions; | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 14 additions & 12 deletions
26
...i/modules/organism/features/adminCreateMaisonMereAAPLegalInformationValidationDecision.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
import { prismaClient } from "../../../prisma/client"; | ||
import { LegalInformationValidationDecisionInput } from "../organism.types"; | ||
|
||
export const adminCreateMaisonMereAAPLegalInformationValidationDecision = async ( | ||
maisonMereAAPId: string, | ||
data: LegalInformationValidationDecisionInput | ||
) => { | ||
const r = await prismaClient.maisonMereAAPLegalInformationDocumentsDecision.create({ | ||
data: { | ||
...data, | ||
maisonMereAAPId, | ||
}, | ||
}); | ||
return r; | ||
} | ||
export const adminCreateMaisonMereAAPLegalInformationValidationDecision = | ||
async ( | ||
maisonMereAAPId: string, | ||
data: LegalInformationValidationDecisionInput, | ||
) => { | ||
const r = | ||
await prismaClient.maisonMereAAPLegalInformationDocumentsDecision.create({ | ||
data: { | ||
...data, | ||
maisonMereAAPId, | ||
}, | ||
}); | ||
return r; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export * from "./file.interface"; | ||
export * from "./file.service"; | ||
export * from "./preview"; | ||
export * from "./preview"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,8 +21,7 @@ | |
"prisma:generate:migration": "prisma migrate dev --create-only", | ||
"cron": "npx [email protected] infra/cron.ts", | ||
"cron-dev": "npx [email protected] infra/cron.ts | npx pino-pretty", | ||
"lint": "eslint --color modules infra", | ||
"prettier": "prettier --write \"{infra,modules}/**/*.{ts,md}\"" | ||
"lint": "eslint --color modules infra" | ||
}, | ||
"prisma": { | ||
"seed": "npx tsx prisma/seed/seed.ts" | ||
|