-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(common): add common in 'mon-domifa'
- Loading branch information
Showing
81 changed files
with
1,018 additions
and
665 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import type { Config } from "jest"; | ||
|
||
const jestConfig: Config = { | ||
collectCoverage: false, | ||
coverageReporters: ["cobertura"], | ||
coverageDirectory: "./coverage/", | ||
modulePathIgnorePatterns: ["<rootDir>/dist/"], | ||
preset: "ts-jest/presets/js-with-ts", | ||
}; | ||
|
||
export default jestConfig; |
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,129 @@ | ||
import { ETAPE_DOSSIER_COMPLET } from "../usager"; | ||
|
||
export const USAGER_ACTIF_MOCK = { | ||
numeroDistribution: null, | ||
decision: { | ||
statut: "VALIDE", | ||
dateDebut: new Date("2020-02-12T00:00:00.000Z"), | ||
dateDecision: new Date("2020-02-12T00:00:00.000Z"), | ||
dateFin: new Date("2021-02-12T00:00:00.000Z"), | ||
motif: "LIEN_COMMUNE", | ||
typeDom: "PREMIERE_DOM", | ||
orientation: "other", | ||
orientationDetails: "DETAILS", | ||
motifDetails: "DETAILS", | ||
userId: 30, | ||
userName: "Testeur Robin", | ||
}, | ||
lastInteraction: { | ||
colisIn: 0, | ||
courrierIn: 0, | ||
enAttente: false, | ||
recommandeIn: 0, | ||
dateInteraction: new Date("2020-12-01T14:11:28.167Z"), | ||
}, | ||
pinnedNote: null, | ||
options: { | ||
transfert: { | ||
actif: false, | ||
nom: null, | ||
adresse: null, | ||
dateDebut: null, | ||
dateFin: null, | ||
}, | ||
procurations: [ | ||
{ | ||
nom: null, | ||
prenom: null, | ||
dateFin: null, | ||
dateDebut: null, | ||
dateNaissance: null, | ||
}, | ||
], | ||
npai: { | ||
actif: false, | ||
dateDebut: null, | ||
}, | ||
portailUsagerEnabled: false, | ||
}, | ||
contactByPhone: false, | ||
rdv: { dateRdv: null, userId: 0, userName: "" }, | ||
ayantsDroits: [ | ||
{ | ||
nom: "Karamoko", | ||
prenom: "Mauricette", | ||
dateNaissance: new Date("1978-12-20T00:00:00.000Z"), | ||
lien: "CONJOINT", | ||
}, | ||
], | ||
datePremiereDom: new Date("2018-01-11T00:00:00.000Z"), | ||
|
||
email: "[email protected]", | ||
entretien: { | ||
typeMenage: "COUPLE_AVEC_ENFANT", | ||
domiciliation: false, | ||
revenus: false, | ||
orientation: true, | ||
orientationDetail: "Test orientation", | ||
raison: "PRESTATIONS_SOCIALES", | ||
liencommune: "SOCIAL", | ||
liencommuneDetail: "Suivi social", | ||
residence: "DOMICILE_MOBILE", | ||
cause: "EXPULSION", | ||
commentaires: "Ceci est un commentaire", | ||
revenusDetail: null, | ||
residenceDetail: null, | ||
causeDetail: null, | ||
rattachement: null, | ||
raisonDetail: null, | ||
accompagnement: null, | ||
accompagnementDetail: null, | ||
}, | ||
etapeDemande: ETAPE_DOSSIER_COMPLET, | ||
historique: [ | ||
{ | ||
statut: "VALIDE", | ||
dateDebut: new Date("2020-02-12T00:00:00.000Z"), | ||
dateDecision: new Date("2020-02-12T00:00:00.000Z"), | ||
dateFin: new Date("2021-02-12T00:00:00.000Z"), | ||
motif: null, | ||
typeDom: "PREMIERE_DOM", | ||
orientation: null, | ||
orientationDetails: null, | ||
motifDetails: "", | ||
userId: 30, | ||
userName: "Testeur Robin", | ||
}, | ||
{ | ||
dateDebut: new Date("2020-12-01T10:00:24.980Z"), | ||
dateDecision: new Date("2020-12-01T10:00:24.980Z"), | ||
dateFin: new Date("2020-12-01T10:00:24.980Z"), | ||
motif: null, | ||
motifDetails: null, | ||
statut: "INSTRUCTION", | ||
orientation: null, | ||
orientationDetails: null, | ||
userId: 30, | ||
userName: "Testeur Robin", | ||
typeDom: "PREMIERE_DOM", | ||
}, | ||
], | ||
telephone: { countryCode: "FR", numero: "0606060606" }, | ||
surnom: "", | ||
import: { | ||
date: new Date("2020-12-01T10:00:24.980Z"), | ||
userId: 30, | ||
userName: "Testeur Robin", | ||
}, | ||
typeDom: "RENOUVELLEMENT", | ||
customRef: "5", | ||
dateNaissance: new Date("1998-08-07T00:00:00.000Z"), | ||
nom: "Martine", | ||
prenom: "Sembat", | ||
sexe: "femme", | ||
structureId: 1, | ||
villeNaissance: "Bouaké, Côte d'Ivoire", | ||
ref: 5, | ||
createdAt: new Date("2020-12-01T10:00:24.984Z"), | ||
updatedAt: new Date("2020-12-21T17:07:12.911Z"), | ||
}; |
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,117 @@ | ||
import { ETAPE_DOSSIER_COMPLET } from "../usager"; | ||
|
||
export const USAGER_REFUS_MOCK = { | ||
numeroDistribution: null, | ||
|
||
decision: { | ||
orientationDetails: null, | ||
orientation: null, | ||
statut: "REFUS", | ||
dateDebut: new Date("2020-02-12T00:00:00.000Z"), | ||
dateDecision: new Date("2020-02-12T00:00:00.000Z"), | ||
dateFin: new Date("2021-02-12T00:00:00.000Z"), | ||
motif: "NON_MANIFESTATION_3_MOIS", | ||
typeDom: "PREMIERE_DOM", | ||
motifDetails: "", | ||
userId: 30, | ||
userName: "Testeur Robin", | ||
}, | ||
lastInteraction: { | ||
colisIn: 0, | ||
courrierIn: 0, | ||
enAttente: false, | ||
recommandeIn: 0, | ||
dateInteraction: new Date("2020-12-01T14:11:28.167Z"), | ||
}, | ||
options: { | ||
transfert: { | ||
actif: false, | ||
nom: null, | ||
adresse: null, | ||
dateDebut: null, | ||
dateFin: null, | ||
}, | ||
procurations: [ | ||
{ | ||
nom: null, | ||
prenom: null, | ||
dateFin: null, | ||
dateDebut: null, | ||
dateNaissance: null, | ||
}, | ||
], | ||
npai: { | ||
actif: false, | ||
dateDebut: null, | ||
}, | ||
portailUsagerEnabled: false, | ||
}, | ||
contactByPhone: false, | ||
|
||
rdv: { dateRdv: null, userId: 0, userName: "" }, | ||
ayantsDroits: [ | ||
{ | ||
nom: "Karamoko", | ||
prenom: "Mauricette", | ||
dateNaissance: new Date("1978-12-20T00:00:00.000Z"), | ||
lien: "CONJOINT", | ||
}, | ||
], | ||
datePremiereDom: new Date("2018-01-11T00:00:00.000Z"), | ||
pinnedNote: null, | ||
email: "[email protected]", | ||
entretien: { | ||
typeMenage: "COUPLE_AVEC_ENFANT", | ||
domiciliation: false, | ||
revenus: false, | ||
orientation: true, | ||
orientationDetail: "Test orientation", | ||
raison: "PRESTATIONS_SOCIALES", | ||
liencommune: "SOCIAL", | ||
liencommuneDetail: "Suivi social", | ||
residence: "DOMICILE_MOBILE", | ||
cause: "EXPULSION", | ||
commentaires: "Ceci est un commentaire", | ||
revenusDetail: null, | ||
residenceDetail: null, | ||
causeDetail: null, | ||
rattachement: null, | ||
raisonDetail: null, | ||
accompagnement: null, | ||
accompagnementDetail: null, | ||
}, | ||
etapeDemande: ETAPE_DOSSIER_COMPLET, | ||
historique: [ | ||
{ | ||
dateDebut: new Date("2020-12-01T10:00:24.980Z"), | ||
dateDecision: new Date("2020-12-01T10:00:24.980Z"), | ||
dateFin: new Date("2020-12-01T10:00:24.980Z"), | ||
motif: null, | ||
orientation: null, | ||
motifDetails: null, | ||
orientationDetails: null, | ||
statut: "INSTRUCTION", | ||
userId: 30, | ||
userName: "Testeur Robin", | ||
typeDom: "PREMIERE_DOM", | ||
}, | ||
], | ||
telephone: { countryCode: "FR", numero: "0606060606" }, | ||
surnom: "", | ||
import: { | ||
date: new Date("2020-12-01T10:00:24.980Z"), | ||
userId: 30, | ||
userName: "Testeur Robin", | ||
}, | ||
typeDom: "RENOUVELLEMENT", | ||
customRef: "5", | ||
dateNaissance: new Date("1998-08-07T00:00:00.000Z"), | ||
nom: "Martine", | ||
prenom: "Sembat", | ||
sexe: "femme", | ||
structureId: 1, | ||
villeNaissance: "Bouaké, Côte d'Ivoire", | ||
ref: 5, | ||
createdAt: new Date("2020-12-01T10:00:24.984Z"), | ||
updatedAt: new Date("2020-12-21T17:07:12.911Z"), | ||
}; |
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,3 @@ | ||
// @index('./*', f => `export * from '${f.path}'`) | ||
export * from "./USAGER_ACTIF.mock"; | ||
export * from "./USAGER_REFUS.mock"; |
Oops, something went wrong.