Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
245 lines (245 loc) · 19 KB
/
Copy pathpackage.json
File metadata and controls
245 lines (245 loc) · 19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
{
"name": "helios",
"version": "1.8.16.1",
"private": true,
"scripts": {
"amibroken": "yarn deadcode && yarn lint && yarn typecheck && yarn test && yarn build",
"bash:production": "scalingo -a helios run bash",
"bash:production:2xl": "scalingo -a helios run --size 2XL bash",
"build": "next build --webpack && yarn bundle:migrations && ./post_build.sh",
"deadcode": "knip",
"knip": "knip",
"decryptDiamant:local": "pipenv run decrypt_diamant",
"decryptDiamant": "python -m datacrawler.déchiffre_diamant",
"depcheck": "depcheck --ignore-patterns=spikes,.venv",
"dev": "yarn start:db && next dev --webpack",
"encryptDiamant:local": "pipenv run encrypt_diamant",
"transfromeParquetEnCSV:local": "pipenv run transforme_parquet_en_csv",
"format:typescript": "prettier --write \"**/*.+(js|ts|json|tsx|jsx)\"",
"lint": "yarn lint:typescript && yarn lint:python",
"lint:typescript": "npx eslint src database download_data_source",
"lint:typescript:fix": "yarn lint:typescript --fix",
"lint:python": "pipenv run lint",
"lint:python:fix": "pipenv run format",
"lint:scss": "stylelint '**/*.module.css'",
"lint:scss:fix": "yarn lint:scss --fix",
"migrations:up": "npx typeorm migration:run -d dist/database/dataSource.js",
"migrations:down": "npx typeorm migration:revert -d dist/database/dataSource.js",
"migrations:create": "npx typeorm-ts-node-commonjs migration:create",
"psql:local": "docker-compose up -d postgres && docker exec -it helios_db psql -U helios helios",
"psql:production": "scalingo -a helios pgsql-console",
"postinstall": "husky install",
"populateDatabase": "yarn populateDatabaseHelios && yarn populateDatabaseVigieRh",
"populateDatabase:local": "yarn populateDatabaseHelios:local && yarn populateDatabaseVigieRh:local",
"populateDatabaseHelios": "yarn retrieveFiness && yarn retrieveDiamant && yarn decryptDiamant && yarn updateEJ && yarn updateET && yarn updateReferentielCategories && yarn updateActivitésMédicoSociaux && yarn updateActivitésSanitaire && yarn updateActivitesSanitairesMensuel && yarn updateActivitesSanitairesMensuelEJ && yarn updateAutorisationsMédicoSocial && yarn updateAutorisationsSanitaire && yarn updateBudgetEtFinancesMedicoSocial && yarn updateRessourcesHumainesMedicoSocial && yarn updateActivitéSanitaireEntitéJuridique && yarn updateCapacitéSanitaireEntitéJuridique && yarn updateBudgetEtFinancesEntiteJuridique && yarn retreieveAndCheckAndUpdateReclamations && yarn retreieveAndCheckAndUpdateEvenementsIndesirables && yarn retreieveAndCheckAndUpdateInspections && yarn updateRessourcesHumainesEntiteJuridique && yarn updateRessourcesHumainesEtablissementSanitaire && yarn updateQualiteHAS && yarn updateQualiteHASMs && yarn retrieveStarsFIR && yarn updateAllocationRessource",
"populateDatabaseHelios:local": "yarn retrieveFiness:local && yarn retrieveDiamant && yarn decryptDiamant:local && yarn updateEJ && yarn updateET && yarn updateActivitésMédicoSociaux:local && yarn updateActivitésSanitaire:local && yarn updateAutorisationsMédicoSocial:local && yarn updateAutorisationsSanitaire:local && yarn updateBudgetEtFinancesMedicoSocial:local && yarn updateRessourcesHumainesMedicoSocial:local && yarn updateActivitéSanitaireEntitéJuridique:local && yarn updateCapacitéSanitaireEntitéJuridique:local && yarn updateBudgetEtFinancesEntiteJuridique:local && yarn retreieveAndCheckAndUpdateReclamations:local && yarn retreieveAndCheckAndUpdateEvenementsIndesirables:local && yarn retreieveAndCheckAndUpdateInspections:local && yarn updateActivitesSanitairesMensuel:local && yarn updateActivitesSanitairesMensuelEJ:local && yarn updateRessourcesHumainesEntiteJuridique:local && yarn updateRessourcesHumainesEtablissementSanitaire:local && yarn updateQualiteHAS:local && yarn updateQualiteHASMs:local && yarn retrieveStarsFIR:local && yarn updateAllocationRessource:local",
"populateDatabaseVigieRh": "yarn retrieveVigieRh && yarn updateTranchesDesAges && yarn updateVigieRhProfessionFiliere && yarn updateMouvementsRH && yarn updateMouvementsTrimestrielsRH && yarn updateVigieRhMotifsRuptures && yarn updateDureeCdd && yarn updateNatureContrats && yarn updateNatureContratsTrimestriel",
"populateDatabaseVigieRh:local": "yarn retrieveVigieRh:local && yarn updateTranchesDesAges:local && yarn updateVigieRhProfessionFiliere:local && yarn updateMouvementsRH:local && yarn updateMouvementsTrimestrielsRH:local && yarn updateVigieRhMotifsRuptures:local && yarn updateDureeCdd:local && yarn updateNatureContrats:local && yarn updateNatureContratsTrimestriel:local",
"populateProfessionGroupes": "yarn retrieveVigieRh && yarn updateVigieRhProfessionGroupe",
"populateProfessionGroupes:local": "yarn retrieveVigieRh && yarn updateVigieRhProfessionGroupe:local",
"populateDatabaseUsers": "python -m datacrawler.import_utilisateurs",
"populateDatabaseUsers:local": "pipenv run populate_app_users",
"detectDuplicateAccounts": "python -m datacrawler.detecte_doublons_comptes",
"detectDuplicateAccounts:local": "pipenv run detect_duplicate_accounts",
"retrieveFiness": "python -m datacrawler.download_finess_data",
"retrieveFiness:local": "pipenv run retrieveFiness",
"retrieveDiamant": "python -m datacrawler.download_diamant_data",
"retrieveDiamant:local": "pipenv run retrieveDiamant",
"retrieveSirec": "python -m datacrawler.download_sirec_data",
"retrieveSirec:local": "pipenv run retrieveSirec",
"retrieveSiicea": "python -m datacrawler.download_siicea_data",
"retrieveSiicea:local": "pipenv run retrieveSiicea",
"retrieveSivss": "python -m datacrawler.download_sivss_data",
"retrieveSivss:local": "pipenv run retrieveSivss",
"retrieveVigieRh": "python -m datacrawler.download_vigierh_data",
"retrieveVigieRh:local": "pipenv run retrieveVigierh",
"retrieveStarsFIR": "python -m datacrawler.download_starsfir_data",
"retrieveStarsFIR:local": "pipenv run retrieveStarsFIR",
"retrieveHapi": "python -m datacrawler.download_hapi_data",
"retrieveHapi:local": "pipenv run retrieveHapi",
"updateEJ": "python -m datacrawler.import_les_entites_juridiques",
"updateEJ:local": "pipenv run populate_les_entites_juridiques",
"updateET": "python -m datacrawler.import_les_etablissements_territoriaux",
"updateET:local": "pipenv run populate_les_etablissements_territoriaux",
"updateActivitésMédicoSociaux": "python -m datacrawler.ajoute_les_activités_des_établissements_médico_sociaux",
"updateActivitésMédicoSociaux:local": "pipenv run populate_activite_et_medico_social",
"updateActivitésSanitaire": "python -m datacrawler.ajoute_les_activités_des_établissements_sanitaires",
"updateActivitésSanitaire:local": "pipenv run populate_activite_et_sanitaire",
"updateAutorisationsMédicoSocial": "python -m datacrawler.ajoute_les_autorisations_des_établissements_médico_sociaux",
"updateAutorisationsMédicoSocial:local": "pipenv run populate_autorisation_et_capacite_medico_social",
"updateAutorisationsSanitaire": "python -m datacrawler.ajoute_les_autorisations_des_établissements_sanitaires",
"updateAutorisationsSanitaire:local": "pipenv run populate_autorisation_et_capacite_sanitaire",
"updateBudgetEtFinancesMedicoSocial": "python -m datacrawler.ajoute_le_bloc_budget_et_finances_des_établissements_médico_sociaux",
"updateBudgetEtFinancesMedicoSocial:local": "pipenv run populate_budget_et_finances_medico_social",
"updateBudgetEtFinancesEntiteJuridique": "python -m datacrawler.ajoute_le_bloc_budget_et_finances_des_entite_juridiques",
"updateBudgetEtFinancesEntiteJuridique:local": "pipenv run populate_budget_et_finances_entite_juridique",
"updateRessourcesHumainesEntiteJuridique": "python -m datacrawler.ajoute_le_bloc_ressources_humaines_des_entites_juridiques",
"updateRessourcesHumainesEntiteJuridique:local": "pipenv run populate_ressoures_humaines_entites_juridiques",
"updateRessourcesHumainesEtablissementSanitaire": "python -m datacrawler.ajoute_le_bloc_ressources_humaines_des_etablissements_sanitaires",
"updateRessourcesHumainesEtablissementSanitaire:local": "pipenv run populate_ressoures_humaines_etablissements_sanitaires",
"updateRessourcesHumainesMedicoSocial": "python -m datacrawler.ajoute_le_bloc_ressources_humaines_des_établissements_médico_sociaux",
"updateRessourcesHumainesMedicoSocial:local": "pipenv run populate_ressoures_humaines_medico_social",
"updateActivitéSanitaireEntitéJuridique": "python -m datacrawler.agrégation_activité_sanitaire",
"updateActivitéSanitaireEntitéJuridique:local": "pipenv run populate_activites_sanitaire_entites_juridiques",
"updateCapacitéSanitaireEntitéJuridique": "python -m datacrawler.agrégation_capacité_sanitaire",
"updateCapacitéSanitaireEntitéJuridique:local": "pipenv run populate_capacites_sanitaire_entites_juridiques",
"updateReclamationsEtablissements": "python -m datacrawler.import_reclamations",
"updateReclamationsEtablissements:local": "pipenv run populate_reclamations",
"checkReclamationsEtablissements": "python -m datacrawler.check_downloaded_sirec_file",
"checkReclamationsEtablissements:local": "pipenv run check_downloaded_sirec_file",
"retreieveAndCheckAndUpdateReclamations": "yarn retrieveSirec && yarn checkReclamationsEtablissements && yarn updateReclamationsEtablissements",
"retreieveAndCheckAndUpdateReclamations:local": "yarn retrieveSirec:local && yarn checkReclamationsEtablissements:local && yarn updateReclamationsEtablissements:local",
"updateEvenementsIndesirables": "python -m datacrawler.import_evenements_indesirables",
"updateEvenementsIndesirables:local": "pipenv run populate_evenements_indesirables",
"updateAllocationRessource": "python -m datacrawler.import_allocation_ressource_starsfir",
"updateAllocationRessource:local": "pipenv run populate_allocation_ressource",
"updateAllocationRessourceHapi": "python -m datacrawler.import_allocation_ressource_hapi",
"updateAllocationRessourceHapi:local": "pipenv run populate_allocation_ressource_hapi",
"checkEvenementsIndesirables": "python -m datacrawler.check_downloaded_sivss_file",
"checkEvenementsIndesirables:local": "pipenv run check_downloaded_sivss_file",
"retreieveAndCheckAndUpdateEvenementsIndesirables": "yarn retrieveSivss && yarn checkEvenementsIndesirables && yarn updateEvenementsIndesirables",
"retreieveAndCheckAndUpdateEvenementsIndesirables:local": "yarn retrieveSivss:local && yarn checkEvenementsIndesirables:local && yarn updateEvenementsIndesirables:local",
"checkInspections": "python -m datacrawler.check_downloaded_siicea_file",
"checkInspections:local": "pipenv run check_downloaded_siicea_file",
"updateInspections": "python -m datacrawler.import_inspections",
"updateInspections:local": "pipenv run populate_inspections",
"updateReferentielCategories": "python -m datacrawler.import_ref_categories",
"updateReferentielCategories:local": "pipenv run populate_ref_categories",
"retreieveAndCheckAndUpdateInspections": "yarn retrieveSiicea && yarn checkInspections && yarn updateInspections",
"retreieveAndCheckAndUpdateInspections:local": "yarn retrieveSiicea:local && yarn checkInspections:local && yarn updateInspections:local",
"updateActivitesSanitairesMensuel": "python -m datacrawler.import_activites_mensuel",
"updateActivitesSanitairesMensuel:local": "pipenv run populate_activites_mensuel",
"updateActivitesSanitairesMensuelEJ": "python -m datacrawler.import_activites_mensuel_entite_juridique",
"updateActivitesSanitairesMensuelEJ:local": "pipenv run populate_activites_mensuel_ej",
"updateVigieRhProfessionFiliere": "python -m datacrawler.import_vigie_rh_profession_filiere",
"updateVigieRhProfessionFiliere:local": "pipenv run populate_vigie_rh_profession_filiere",
"updateVigieRhProfessionGroupe": "python -m datacrawler.import_vigie_rh_profession_groupe",
"updateVigieRhProfessionGroupe:local": "pipenv run populate_vigie_rh_profession_groupe",
"updateTranchesDesAges": "python -m datacrawler.import_vigierh_tranches_ages",
"updateTranchesDesAges:local": "pipenv run populate_tranches_ages",
"updateMouvementsRH": "python -m datacrawler.import_vigie_rh_mouvements",
"updateMouvementsRH:local": "pipenv run populate_mouvements_vigierh",
"updateMouvementsTrimestrielsRH": "python -m datacrawler.import_vigie_rh_mouvements_trimestriels",
"updateMouvementsTrimestrielsRH:local": "pipenv run populate_mouvements_vigierh_trimestriels",
"updateVigieRhMotifsRuptures": "python -m datacrawler.import_vigierh_motifs_ruptures_contrats",
"updateVigieRhMotifsRuptures:local": "pipenv run populate_vigierh_motifs_ruptures_contrats",
"updateDureeCdd": "python -m datacrawler.import_vigierh_duree_cdd",
"updateDureeCdd:local": "pipenv run populate_mouvements_vigierh_duree_cdd",
"updateNatureContrats": "python -m datacrawler.import_vigierh_cdd_cdi",
"updateNatureContrats:local": "pipenv run populate_vigierh_nature_contrats",
"updateNatureContratsTrimestriel": "python -m datacrawler.import_vigierh_cdi_cdd_trimestriel",
"updateNatureContratsTrimestriel:local": "pipenv run populate_vigierh_nature_contrats_trimestriel",
"updateQualiteHAS": "python -m datacrawler.import_les_donnees_qualite_has",
"updateQualiteHAS:local": "pipenv run populate_qualite_has",
"updateQualiteHASMs": "python -m datacrawler.import_les_ms_pas_qualite_has",
"updateQualiteHASMs:local": "pipenv run populate_ms_pas_qualite_has",
"fetchInactifUsers:local": "pipenv run fetch_inactive_users",
"fetchActifsUsers:local": "pipenv run fetch_active_users",
"start": "node .next/standalone/server.js",
"start:db": "docker-compose down && docker-compose up -d && bash -c \"while ! docker-compose logs | grep -q 'listening on IPv4 address'; do echo 'Waiting for database'; sleep 0.5; done\"; yarn bundle:migrations && yarn migrations:up:bundle",
"test": "yarn test:typescript && yarn test:python",
"test:accessibility": "lhci autorun",
"test:mutation": "env-cmd -f .env.test npx stryker run",
"test:typescript": "yarn bundle:migrations && NODE_ENV=test yarn migrations:up:bundle && jest --runInBand",
"test:typescript:back": "yarn bundle:migrations && NODE_ENV=test yarn migrations:up:bundle && jest --coverage --testMatch '<rootDir>/(src/backend|download_data_source)/**/*(*.)@(test).ts' --runInBand --colors --detectOpenHandles",
"test:typescript:front": "yarn bundle:migrations && NODE_ENV=test yarn migrations:up:bundle && jest --coverage --testMatch '<rootDir>/src/frontend/**/*(*.)@(test).ts?(x)' --max-workers 4 --colors",
"test:typescript:watch": "yarn test:typescript --watch",
"test:typescript:coverage": "yarn test:typescript --coverage",
"test:python": "yarn bundle:migrations && NODE_ENV=test yarn migrations:up:bundle && pipenv run test",
"test:python:coverage": "yarn bundle:migrations && NODE_ENV=test yarn migrations:up:bundle && pipenv run test_coverage",
"test:python:watch": "yarn bundle:migrations && NODE_ENV=test yarn migrations:up:bundle && pipenv run test_watch",
"typecheck": "yarn typecheck:typescript && yarn typecheck:python",
"typecheck:typescript": "tsc",
"typecheck:python": "pipenv run typecheck",
"bundle:migrations": "tsc -p tsconfig.migrations.json && esbuild dist/src/bin/migrate.js --bundle --platform=node --target=node22 --external:pg-native --outfile=dist/migrate.bundle.js",
"migrations:up:bundle": "node dist/migrate.bundle.js up",
"migrations:down:bundle": "node dist/migrate.bundle.js down"
},
"dependencies": {
"@gouvfr/dsfr": "^1.14.2",
"@next/bundle-analyzer": "16.2.4",
"@opentelemetry/api": "1.9.1",
"@opentelemetry/core": "2.7.1",
"@opentelemetry/instrumentation": "0.214.0",
"@opentelemetry/sdk-trace-base": "2.7.1",
"@sentry/nextjs": "10.51.0",
"@socialgouv/matomo-next": "^1.13",
"@types/bcrypt": "^6.0.0",
"@types/joi": "^17.2.3",
"@types/papaparse": "^5.3.15",
"bcrypt": "^6.0.0",
"chart.js": "4.4.9",
"chartjs-chart-treemap": "3.1.0",
"chartjs-plugin-datalabels": "^2.2.0",
"cookies-next": "^6.1.1",
"csv-parser": "^3.2.0",
"date-fns": "^4.1.0",
"dompurify": "^3.4.2",
"dotenv-defaults": "^5.0.2",
"exceljs": "^4.4.0",
"joi": "^18.0.2",
"json-diff-ts": "^4.8.2",
"jsonwebtoken": "^9.0.3",
"katex": "^0.16.27",
"next": "16.2.4",
"next-auth": "^4.24.14",
"nuqs": "^1.20.0",
"papaparse": "^5.5.2",
"pg": "^8.7.3",
"prop-types": "^15.8.1",
"react": "19.2.3",
"react-chartjs-2": "^5.3.1",
"react-dom": "19.2.3",
"react-katex": "^3.1.0",
"react-to-print": "^3.2.0",
"typeorm": "^0.3.20"
},
"devDependencies": {
"@swc/core": "^1.15.8",
"@testing-library/dom": "^10.4.1",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.2",
"@types/dotenv-defaults": "^5.0.0",
"@types/jest": "^30.0.0",
"@types/jsonwebtoken": "^9.0.2",
"@types/node": "22.13.5",
"@types/prop-types": "^15",
"@types/react": "19.2.8",
"@types/react-dom": "19.2.3",
"@types/react-katex": "^3",
"@typescript-eslint/eslint-plugin": "^8.59.2",
"@typescript-eslint/parser": "^8.59.2",
"babel-plugin-react-compiler": "^1.0.0",
"dotenv": "^17.2.4",
"env-cmd": "^10.1.0",
"esbuild": "^0.28",
"eslint": "^9.39.4",
"eslint-config-next": "16.2.4",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-jest": "^29.15.2",
"eslint-plugin-jest-formatting": "^3.1.0",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-testing-library": "^7.16.2",
"globals": "^17.0.0",
"husky": "^7.0.4",
"jest": "^30.3.0",
"jest-environment-jsdom": "^30.3.0",
"jest-mock-extended": "^4.0.1",
"knip": "^6.11.0",
"next-router-mock": "^1.0.5",
"prettier": "^3.7.4",
"reflect-metadata": "^0.2.2",
"stylelint": "^16.26.1",
"ts-node": "^10.9.2",
"typescript": "^5.9.3"
},
"resolutions": {
"got": "^11.8.5",
"@types/react": "19.2.8",
"@types/react-dom": "19.2.3"
},
"engines": {
"node": "22.23.4"
},
"packageManager": "yarn@4.9.2+sha512.1fc009bc09d13cfd0e19efa44cbfc2b9cf6ca61482725eb35bbc5e257e093ebf4130db6dfe15d604ff4b79efd8e1e8e99b25fa7d0a6197c9f9826358d4d65c3c"
}