-
Notifications
You must be signed in to change notification settings - Fork 1
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
42 changed files
with
802 additions
and
108 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
// TODO: Mettre à niveau pour de l'ecriture | ||
export type JeuneModel = { | ||
id: string; | ||
statusPhase1: string; | ||
|
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,4 @@ | ||
// TODO: Mettre à niveau pour de l'ecriture | ||
export type CentreModel = { | ||
id: string; | ||
nom?: string; | ||
|
1 change: 1 addition & 0 deletions
1
apiv2/src/admin/core/sejours/phase1/ligneDeBus/LigneDeBus.model.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,3 +1,4 @@ | ||
// TODO: Mettre à niveau pour de l'ecriture | ||
export type LigneDeBusModel = { | ||
id: string; | ||
numeroLigne: string; | ||
|
1 change: 1 addition & 0 deletions
1
apiv2/src/admin/core/sejours/phase1/pointDeRassemblement/PointDeRassemblement.model.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,3 +1,4 @@ | ||
// TODO: Mettre à niveau pour de l'ecriture | ||
export type PointDeRassemblementModel = { | ||
id: string; | ||
code: string; | ||
|
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,4 @@ | ||
// TODO: Mettre à niveau pour de l'ecriture | ||
export type SejourModel = { | ||
id: string; | ||
nom?: string; | ||
|
3 changes: 2 additions & 1 deletion
3
apiv2/src/admin/core/sejours/phase1/session/Session.gateway.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,6 +1,7 @@ | ||
import { SessionModel } from "./Session.model"; | ||
import { CreateSessionModel, SessionModel } from "./Session.model"; | ||
|
||
export interface SessionGateway { | ||
findById(id: string): Promise<SessionModel>; | ||
create(session: CreateSessionModel): Promise<SessionModel>; | ||
} | ||
export const SessionGateway = Symbol("SessionGateway"); |
130 changes: 130 additions & 0 deletions
130
apiv2/src/admin/core/sejours/phase1/session/Session.model.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,4 +1,134 @@ | ||
// TODO: Mettre à niveau pour de l'ecriture | ||
export type SessionModel = { | ||
id: string; | ||
nom: string; | ||
snuId: string; | ||
statut: string; | ||
// legacy | ||
cohortGroupId?: string; | ||
dsnjExportDates?: { | ||
cohesionCenters?: Date; | ||
youngsBeforeSession?: Date; | ||
youngsAfterSession?: Date; | ||
}; | ||
injepExportDates?: { | ||
youngsBeforeSession?: Date; | ||
youngsAfterSession?: Date; | ||
}; | ||
isAssignmentAnnouncementsOpenForYoung: boolean; | ||
manualAffectionOpenForAdmin?: boolean; | ||
manualAffectionOpenForReferentRegion?: boolean; | ||
manualAffectionOpenForReferentDepartment?: boolean; | ||
dateStart: Date; | ||
dateEnd: Date; | ||
eligibility: { | ||
zones: string[]; | ||
schoolLevels: string[]; | ||
bornAfter: Date; | ||
bornBefore: Date; | ||
}; | ||
inscriptionStartDate: Date; | ||
inscriptionEndDate: Date; | ||
instructionEndDate: Date; | ||
inscriptionModificationEndDate?: Date; | ||
reInscriptionStartDate?: Date; | ||
reInscriptionEndDate?: Date; | ||
buffer: number; | ||
event: string; | ||
pdrChoiceLimitDate?: Date; | ||
cleUpdateCohortForReferentRegion: boolean; | ||
cleUpdateCohortForReferentRegionDate: { from?: Date; to?: Date }; | ||
cleUpdateCohortForReferentDepartment: boolean; | ||
cleUpdateCohortForReferentDepartmentDate: { from?: Date; to?: Date }; | ||
cleDisplayCohortsForAdminCLE: boolean; | ||
cleDisplayCohortsForAdminCLEDate: { from?: Date; to?: Date }; | ||
cleDisplayCohortsForReferentClasse: boolean; | ||
cleDisplayCohortsForReferentClasseDate: { from?: Date; to?: Date }; | ||
cleUpdateCentersForReferentRegion: boolean; | ||
cleUpdateCentersForReferentRegionDate: { from?: Date; to?: Date }; | ||
cleUpdateCentersForReferentDepartment: boolean; | ||
cleUpdateCentersForReferentDepartmentDate: { from?: Date; to?: Date }; | ||
cleDisplayCentersForAdminCLE: boolean; | ||
cleDisplayCentersForAdminCLEDate: { from?: Date; to?: Date }; | ||
cleDisplayCentersForReferentClasse: boolean; | ||
cleDisplayCentersForReferentClasseDate: { from?: Date; to?: Date }; | ||
cleDisplayPDRForAdminCLE: boolean; | ||
cleDisplayPDRForAdminCLEDate: { from?: Date; to?: Date }; | ||
cleDisplayPDRForReferentClasse: boolean; | ||
cleDisplayPDRForReferentClasseDate: { from?: Date; to?: Date }; | ||
validationDate?: Date; | ||
validationDateForTerminaleGrade?: Date; | ||
youngCheckinForAdmin?: boolean; | ||
youngCheckinForHeadOfCenter?: boolean; | ||
youngCheckinForRegionReferent?: boolean; | ||
youngCheckinForDepartmentReferent?: boolean; | ||
busListAvailability?: boolean; | ||
sessionEditionOpenForReferentRegion: boolean; | ||
sessionEditionOpenForReferentDepartment: boolean; | ||
sessionEditionOpenForTransporter: boolean; | ||
pdrEditionOpenForReferentRegion: boolean; | ||
pdrEditionOpenForReferentDepartment: boolean; | ||
pdrEditionOpenForTransporter: boolean; | ||
informationsConvoyage?: { | ||
editionOpenForReferentRegion: boolean; | ||
editionOpenForReferentDepartment: boolean; | ||
editionOpenForHeadOfCenter: boolean; | ||
}; | ||
repartitionSchemaCreateAndEditGroupAvailability?: boolean; | ||
repartitionSchemaDownloadAvailability?: boolean; | ||
isTransportPlanCorrectionRequestOpen?: boolean; | ||
schemaAccessForReferentRegion: boolean; | ||
schemaAccessForReferentDepartment: boolean; | ||
busEditionOpenForTransporter: boolean; | ||
daysToValidate: number; | ||
daysToValidateForTerminalGrade?: number; | ||
type: string; | ||
createdAt: Date; | ||
updatedAt: Date; | ||
inscriptionOpenForReferentClasse: boolean; | ||
inscriptionOpenForReferentRegion: boolean; | ||
inscriptionOpenForReferentDepartment: boolean; | ||
inscriptionOpenForAdministrateurCle: boolean; | ||
}; | ||
|
||
export type CreateSessionModel = Omit< | ||
SessionModel, | ||
| "id" | ||
| "createdAt" | ||
| "updatedAt" | ||
| "cleUpdateCohortForReferentRegion" | ||
| "cleUpdateCohortForReferentDepartment" | ||
| "cleDisplayCohortsForAdminCLE" | ||
| "cleDisplayCohortsForReferentClasse" | ||
| "cleUpdateCentersForReferentRegion" | ||
| "cleUpdateCentersForReferentDepartment" | ||
| "cleDisplayCentersForAdminCLE" | ||
| "cleDisplayCentersForReferentClasse" | ||
| "cleDisplayPDRForAdminCLE" | ||
| "cleDisplayPDRForReferentClasse" | ||
| "isAssignmentAnnouncementsOpenForYoung" | ||
| "cleUpdateCohortForReferentRegionDate" | ||
| "cleUpdateCohortForReferentDepartmentDate" | ||
| "cleDisplayCohortsForAdminCLEDate" | ||
| "cleDisplayCohortsForReferentClasseDate" | ||
| "cleUpdateCentersForReferentRegionDate" | ||
| "cleUpdateCentersForReferentDepartmentDate" | ||
| "cleDisplayCentersForAdminCLEDate" | ||
| "cleDisplayCentersForReferentClasseDate" | ||
| "cleDisplayPDRForAdminCLEDate" | ||
| "cleDisplayPDRForReferentClasseDate" | ||
| "pdrEditionOpenForReferentRegion" | ||
| "pdrEditionOpenForReferentDepartment" | ||
| "pdrEditionOpenForTransporter" | ||
| "schemaAccessForReferentRegion" | ||
| "schemaAccessForReferentDepartment" | ||
| "busListAvailability" | ||
| "busEditionOpenForTransporter" | ||
| "daysToValidate" | ||
| "youngCheckinForRegionReferent" | ||
| "inscriptionOpenForReferentRegion" | ||
| "inscriptionOpenForReferentClasse" | ||
| "inscriptionOpenForReferentRegion" | ||
| "inscriptionOpenForReferentDepartment" | ||
| "inscriptionOpenForAdministrateurCle" | ||
>; |
Oops, something went wrong.