@tricoteuses/senat 3.0.2 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/src/documents.d.ts +30 -0
- package/lib/src/index.d.ts +41 -24
- package/lib/src/index.js +27 -6
- package/lib/src/kanel_types/ameli.d.ts +1762 -0
- package/lib/src/kanel_types/ameli.js +1074 -0
- package/lib/src/kanel_types/debats.d.ts +380 -0
- package/lib/src/kanel_types/debats.js +266 -0
- package/lib/src/kanel_types/dosleg.d.ts +2954 -0
- package/lib/src/kanel_types/dosleg.js +2005 -0
- package/lib/src/kanel_types/questions.d.ts +699 -0
- package/lib/src/kanel_types/questions.js +493 -0
- package/lib/src/kanel_types/sens.d.ts +7843 -0
- package/lib/src/kanel_types/sens.js +4691 -0
- package/lib/src/kysely/index.d.ts +216 -0
- package/lib/src/kysely/index.js +11 -0
- package/lib/src/kysely_types/ameli/Amd.d.ts +91 -0
- package/lib/src/kysely_types/ameli/Amd.js +3 -0
- package/lib/src/kysely_types/ameli/Amdsen.d.ts +24 -0
- package/lib/src/kysely_types/ameli/Amdsen.js +3 -0
- package/lib/src/kysely_types/ameli/Avicom.d.ts +14 -0
- package/lib/src/kysely_types/ameli/Avicom.js +3 -0
- package/lib/src/kysely_types/ameli/Avigvt.d.ts +14 -0
- package/lib/src/kysely_types/ameli/Avigvt.js +3 -0
- package/lib/src/kysely_types/ameli/Cab.d.ts +14 -0
- package/lib/src/kysely_types/ameli/Cab.js +3 -0
- package/lib/src/kysely_types/ameli/ComAmeli.d.ts +22 -0
- package/lib/src/kysely_types/ameli/ComAmeli.js +3 -0
- package/lib/src/kysely_types/ameli/Database.d.ts +3 -0
- package/lib/src/kysely_types/ameli/Database.js +3 -0
- package/lib/src/kysely_types/ameli/Ent.d.ts +14 -0
- package/lib/src/kysely_types/ameli/Ent.js +3 -0
- package/lib/src/kysely_types/ameli/Etatxt.d.ts +15 -0
- package/lib/src/kysely_types/ameli/Etatxt.js +3 -0
- package/lib/src/kysely_types/ameli/Fbu.d.ts +17 -0
- package/lib/src/kysely_types/ameli/Fbu.js +3 -0
- package/lib/src/kysely_types/ameli/GrppolAmeli.d.ts +20 -0
- package/lib/src/kysely_types/ameli/GrppolAmeli.js +3 -0
- package/lib/src/kysely_types/ameli/Gvt.d.ts +18 -0
- package/lib/src/kysely_types/ameli/Gvt.js +3 -0
- package/lib/src/kysely_types/ameli/Intora.d.ts +33 -0
- package/lib/src/kysely_types/ameli/Intora.js +3 -0
- package/lib/src/kysely_types/ameli/Irr.d.ts +21 -0
- package/lib/src/kysely_types/ameli/Irr.js +3 -0
- package/lib/src/kysely_types/ameli/LecAmeli.d.ts +14 -0
- package/lib/src/kysely_types/ameli/LecAmeli.js +3 -0
- package/lib/src/kysely_types/ameli/Mot.d.ts +20 -0
- package/lib/src/kysely_types/ameli/Mot.js +3 -0
- package/lib/src/kysely_types/ameli/Nat.d.ts +13 -0
- package/lib/src/kysely_types/ameli/Nat.js +3 -0
- package/lib/src/kysely_types/ameli/Orarol.d.ts +14 -0
- package/lib/src/kysely_types/ameli/Orarol.js +3 -0
- package/lib/src/kysely_types/ameli/Sai.d.ts +25 -0
- package/lib/src/kysely_types/ameli/Sai.js +3 -0
- package/lib/src/kysely_types/ameli/Saisen.d.ts +15 -0
- package/lib/src/kysely_types/ameli/Saisen.js +3 -0
- package/lib/src/kysely_types/ameli/Sea.d.ts +17 -0
- package/lib/src/kysely_types/ameli/Sea.js +3 -0
- package/lib/src/kysely_types/ameli/SenAmeli.d.ts +36 -0
- package/lib/src/kysely_types/ameli/SenAmeli.js +3 -0
- package/lib/src/kysely_types/ameli/SenatSchema.d.ts +60 -0
- package/lib/src/kysely_types/ameli/SenatSchema.js +3 -0
- package/lib/src/kysely_types/ameli/Ses.d.ts +17 -0
- package/lib/src/kysely_types/ameli/Ses.js +3 -0
- package/lib/src/kysely_types/ameli/Sor.d.ts +16 -0
- package/lib/src/kysely_types/ameli/Sor.js +3 -0
- package/lib/src/kysely_types/ameli/Sub.d.ts +44 -0
- package/lib/src/kysely_types/ameli/Sub.js +3 -0
- package/lib/src/kysely_types/ameli/TxtAmeli.d.ts +77 -0
- package/lib/src/kysely_types/ameli/TxtAmeli.js +3 -0
- package/lib/src/kysely_types/ameli/Typrect.d.ts +14 -0
- package/lib/src/kysely_types/ameli/Typrect.js +3 -0
- package/lib/src/kysely_types/ameli/Typses.d.ts +12 -0
- package/lib/src/kysely_types/ameli/Typses.js +3 -0
- package/lib/src/kysely_types/ameli/Typsub.d.ts +12 -0
- package/lib/src/kysely_types/ameli/Typsub.js +3 -0
- package/lib/src/kysely_types/ameli/WNivrec.d.ts +12 -0
- package/lib/src/kysely_types/ameli/WNivrec.js +3 -0
- package/lib/src/kysely_types/debats/Database.d.ts +3 -0
- package/lib/src/kysely_types/debats/Database.js +3 -0
- package/lib/src/kysely_types/debats/Debats.d.ts +25 -0
- package/lib/src/kysely_types/debats/Debats.js +3 -0
- package/lib/src/kysely_types/debats/Intdivers.d.ts +22 -0
- package/lib/src/kysely_types/debats/Intdivers.js +3 -0
- package/lib/src/kysely_types/debats/Intpjl.d.ts +22 -0
- package/lib/src/kysely_types/debats/Intpjl.js +3 -0
- package/lib/src/kysely_types/debats/Lecassdeb.d.ts +13 -0
- package/lib/src/kysely_types/debats/Lecassdeb.js +3 -0
- package/lib/src/kysely_types/debats/Secdis.d.ts +27 -0
- package/lib/src/kysely_types/debats/Secdis.js +3 -0
- package/lib/src/kysely_types/debats/Secdivers.d.ts +19 -0
- package/lib/src/kysely_types/debats/Secdivers.js +3 -0
- package/lib/src/kysely_types/debats/SenatSchema.d.ts +18 -0
- package/lib/src/kysely_types/debats/SenatSchema.js +3 -0
- package/lib/src/kysely_types/debats/Syndeb.d.ts +12 -0
- package/lib/src/kysely_types/debats/Syndeb.js +3 -0
- package/lib/src/kysely_types/debats/Typsec.d.ts +14 -0
- package/lib/src/kysely_types/debats/Typsec.js +3 -0
- package/lib/src/kysely_types/dosleg/Amescr.d.ts +13 -0
- package/lib/src/kysely_types/dosleg/Amescr.js +3 -0
- package/lib/src/kysely_types/dosleg/Ass.d.ts +12 -0
- package/lib/src/kysely_types/dosleg/Ass.js +3 -0
- package/lib/src/kysely_types/dosleg/Aud.d.ts +19 -0
- package/lib/src/kysely_types/dosleg/Aud.js +3 -0
- package/lib/src/kysely_types/dosleg/Auteur.d.ts +34 -0
- package/lib/src/kysely_types/dosleg/Auteur.js +3 -0
- package/lib/src/kysely_types/dosleg/Ble.d.ts +12 -0
- package/lib/src/kysely_types/dosleg/Ble.js +3 -0
- package/lib/src/kysely_types/dosleg/Catrap.d.ts +12 -0
- package/lib/src/kysely_types/dosleg/Catrap.js +3 -0
- package/lib/src/kysely_types/dosleg/Corscr.d.ts +17 -0
- package/lib/src/kysely_types/dosleg/Corscr.js +3 -0
- package/lib/src/kysely_types/dosleg/Database.d.ts +3 -0
- package/lib/src/kysely_types/dosleg/Database.js +3 -0
- package/lib/src/kysely_types/dosleg/DateSeance.d.ts +16 -0
- package/lib/src/kysely_types/dosleg/DateSeance.js +3 -0
- package/lib/src/kysely_types/dosleg/Deccoc.d.ts +12 -0
- package/lib/src/kysely_types/dosleg/Deccoc.js +3 -0
- package/lib/src/kysely_types/dosleg/Denrap.d.ts +26 -0
- package/lib/src/kysely_types/dosleg/Denrap.js +3 -0
- package/lib/src/kysely_types/dosleg/Doc.d.ts +33 -0
- package/lib/src/kysely_types/dosleg/Doc.js +3 -0
- package/lib/src/kysely_types/dosleg/Docatt.d.ts +16 -0
- package/lib/src/kysely_types/dosleg/Docatt.js +3 -0
- package/lib/src/kysely_types/dosleg/Docsea.d.ts +19 -0
- package/lib/src/kysely_types/dosleg/Docsea.js +3 -0
- package/lib/src/kysely_types/dosleg/Ecr.d.ts +26 -0
- package/lib/src/kysely_types/dosleg/Ecr.js +3 -0
- package/lib/src/kysely_types/dosleg/Etaloi.d.ts +12 -0
- package/lib/src/kysely_types/dosleg/Etaloi.js +3 -0
- package/lib/src/kysely_types/dosleg/Evtsea.d.ts +18 -0
- package/lib/src/kysely_types/dosleg/Evtsea.js +3 -0
- package/lib/src/kysely_types/dosleg/Forpub.d.ts +12 -0
- package/lib/src/kysely_types/dosleg/Forpub.js +3 -0
- package/lib/src/kysely_types/dosleg/Gen.d.ts +11 -0
- package/lib/src/kysely_types/dosleg/Gen.js +3 -0
- package/lib/src/kysely_types/dosleg/Lecass.d.ts +84 -0
- package/lib/src/kysely_types/dosleg/Lecass.js +3 -0
- package/lib/src/kysely_types/dosleg/Lecassrap.d.ts +15 -0
- package/lib/src/kysely_types/dosleg/Lecassrap.js +3 -0
- package/lib/src/kysely_types/dosleg/Lecture.d.ts +16 -0
- package/lib/src/kysely_types/dosleg/Lecture.js +3 -0
- package/lib/src/kysely_types/dosleg/Lnkrap.d.ts +16 -0
- package/lib/src/kysely_types/dosleg/Lnkrap.js +3 -0
- package/lib/src/kysely_types/dosleg/Loi.d.ts +93 -0
- package/lib/src/kysely_types/dosleg/Loi.js +3 -0
- package/lib/src/kysely_types/dosleg/Loithe.d.ts +13 -0
- package/lib/src/kysely_types/dosleg/Loithe.js +3 -0
- package/lib/src/kysely_types/dosleg/Natloi.d.ts +12 -0
- package/lib/src/kysely_types/dosleg/Natloi.js +3 -0
- package/lib/src/kysely_types/dosleg/Org.d.ts +48 -0
- package/lib/src/kysely_types/dosleg/Org.js +3 -0
- package/lib/src/kysely_types/dosleg/Orgnomhis.d.ts +28 -0
- package/lib/src/kysely_types/dosleg/Orgnomhis.js +3 -0
- package/lib/src/kysely_types/dosleg/Orippr.d.ts +12 -0
- package/lib/src/kysely_types/dosleg/Orippr.js +3 -0
- package/lib/src/kysely_types/dosleg/Oritxt.d.ts +25 -0
- package/lib/src/kysely_types/dosleg/Oritxt.js +3 -0
- package/lib/src/kysely_types/dosleg/Posvot.d.ts +12 -0
- package/lib/src/kysely_types/dosleg/Posvot.js +3 -0
- package/lib/src/kysely_types/dosleg/Qua.d.ts +16 -0
- package/lib/src/kysely_types/dosleg/Qua.js +3 -0
- package/lib/src/kysely_types/dosleg/Rap.d.ts +64 -0
- package/lib/src/kysely_types/dosleg/Rap.js +3 -0
- package/lib/src/kysely_types/dosleg/Raporg.d.ts +13 -0
- package/lib/src/kysely_types/dosleg/Raporg.js +3 -0
- package/lib/src/kysely_types/dosleg/Rapthe.d.ts +13 -0
- package/lib/src/kysely_types/dosleg/Rapthe.js +3 -0
- package/lib/src/kysely_types/dosleg/Rolsig.d.ts +12 -0
- package/lib/src/kysely_types/dosleg/Rolsig.js +3 -0
- package/lib/src/kysely_types/dosleg/Scr.d.ts +46 -0
- package/lib/src/kysely_types/dosleg/Scr.js +3 -0
- package/lib/src/kysely_types/dosleg/SenatSchema.d.ts +108 -0
- package/lib/src/kysely_types/dosleg/SenatSchema.js +3 -0
- package/lib/src/kysely_types/dosleg/Ses.d.ts +12 -0
- package/lib/src/kysely_types/dosleg/Ses.js +3 -0
- package/lib/src/kysely_types/dosleg/Stavot.d.ts +12 -0
- package/lib/src/kysely_types/dosleg/Stavot.js +3 -0
- package/lib/src/kysely_types/dosleg/Texte.d.ts +54 -0
- package/lib/src/kysely_types/dosleg/Texte.js +3 -0
- package/lib/src/kysely_types/dosleg/TexteAncien.d.ts +20 -0
- package/lib/src/kysely_types/dosleg/TexteAncien.js +3 -0
- package/lib/src/kysely_types/dosleg/The.d.ts +14 -0
- package/lib/src/kysely_types/dosleg/The.js +3 -0
- package/lib/src/kysely_types/dosleg/Titsen.d.ts +12 -0
- package/lib/src/kysely_types/dosleg/Titsen.js +3 -0
- package/lib/src/kysely_types/dosleg/Typatt.d.ts +12 -0
- package/lib/src/kysely_types/dosleg/Typatt.js +3 -0
- package/lib/src/kysely_types/dosleg/Typaut.d.ts +12 -0
- package/lib/src/kysely_types/dosleg/Typaut.js +3 -0
- package/lib/src/kysely_types/dosleg/Typdoc.d.ts +12 -0
- package/lib/src/kysely_types/dosleg/Typdoc.js +3 -0
- package/lib/src/kysely_types/dosleg/Typevtsea.d.ts +12 -0
- package/lib/src/kysely_types/dosleg/Typevtsea.js +3 -0
- package/lib/src/kysely_types/dosleg/Typlec.d.ts +14 -0
- package/lib/src/kysely_types/dosleg/Typlec.js +3 -0
- package/lib/src/kysely_types/dosleg/Typloi.d.ts +26 -0
- package/lib/src/kysely_types/dosleg/Typloi.js +3 -0
- package/lib/src/kysely_types/dosleg/Typorg.d.ts +20 -0
- package/lib/src/kysely_types/dosleg/Typorg.js +3 -0
- package/lib/src/kysely_types/dosleg/Typrap.d.ts +26 -0
- package/lib/src/kysely_types/dosleg/Typrap.js +3 -0
- package/lib/src/kysely_types/dosleg/Typtxt.d.ts +12 -0
- package/lib/src/kysely_types/dosleg/Typtxt.js +3 -0
- package/lib/src/kysely_types/dosleg/Typurl.d.ts +12 -0
- package/lib/src/kysely_types/dosleg/Typurl.js +3 -0
- package/lib/src/kysely_types/dosleg/Votsen.d.ts +25 -0
- package/lib/src/kysely_types/dosleg/Votsen.js +3 -0
- package/lib/src/kysely_types/questions/Database.d.ts +3 -0
- package/lib/src/kysely_types/questions/Database.js +3 -0
- package/lib/src/kysely_types/questions/Etatquestion.d.ts +14 -0
- package/lib/src/kysely_types/questions/Etatquestion.js +3 -0
- package/lib/src/kysely_types/questions/Legquestion.d.ts +18 -0
- package/lib/src/kysely_types/questions/Legquestion.js +3 -0
- package/lib/src/kysely_types/questions/Naturequestion.d.ts +15 -0
- package/lib/src/kysely_types/questions/Naturequestion.js +3 -0
- package/lib/src/kysely_types/questions/SenatSchema.d.ts +18 -0
- package/lib/src/kysely_types/questions/SenatSchema.js +3 -0
- package/lib/src/kysely_types/questions/Sortquestion.d.ts +14 -0
- package/lib/src/kysely_types/questions/Sortquestion.js +3 -0
- package/lib/src/kysely_types/questions/TamMinisteres.d.ts +28 -0
- package/lib/src/kysely_types/questions/TamMinisteres.js +3 -0
- package/lib/src/kysely_types/questions/TamQuestions.d.ts +124 -0
- package/lib/src/kysely_types/questions/TamQuestions.js +3 -0
- package/lib/src/kysely_types/questions/TamReponses.d.ts +32 -0
- package/lib/src/kysely_types/questions/TamReponses.js +3 -0
- package/lib/src/kysely_types/questions/The.d.ts +16 -0
- package/lib/src/kysely_types/questions/The.js +3 -0
- package/lib/src/kysely_types/sens/Activite.d.ts +34 -0
- package/lib/src/kysely_types/sens/Activite.js +3 -0
- package/lib/src/kysely_types/sens/ActiviteDelegation.d.ts +15 -0
- package/lib/src/kysely_types/sens/ActiviteDelegation.js +3 -0
- package/lib/src/kysely_types/sens/ActiviteLoi.d.ts +13 -0
- package/lib/src/kysely_types/sens/ActiviteLoi.js +3 -0
- package/lib/src/kysely_types/sens/ActiviteParticipant.d.ts +25 -0
- package/lib/src/kysely_types/sens/ActiviteParticipant.js +3 -0
- package/lib/src/kysely_types/sens/ActiviteSenateur.d.ts +21 -0
- package/lib/src/kysely_types/sens/ActiviteSenateur.js +3 -0
- package/lib/src/kysely_types/sens/ActivitesLiees.d.ts +10 -0
- package/lib/src/kysely_types/sens/ActivitesLiees.js +3 -0
- package/lib/src/kysely_types/sens/Actpro.d.ts +16 -0
- package/lib/src/kysely_types/sens/Actpro.js +3 -0
- package/lib/src/kysely_types/sens/Adresse.d.ts +39 -0
- package/lib/src/kysely_types/sens/Adresse.js +3 -0
- package/lib/src/kysely_types/sens/Asster.d.ts +18 -0
- package/lib/src/kysely_types/sens/Asster.js +3 -0
- package/lib/src/kysely_types/sens/Bur.d.ts +46 -0
- package/lib/src/kysely_types/sens/Bur.js +3 -0
- package/lib/src/kysely_types/sens/CategorieActivite.d.ts +13 -0
- package/lib/src/kysely_types/sens/CategorieActivite.js +3 -0
- package/lib/src/kysely_types/sens/Com.d.ts +48 -0
- package/lib/src/kysely_types/sens/Com.js +3 -0
- package/lib/src/kysely_types/sens/Csp.d.ts +22 -0
- package/lib/src/kysely_types/sens/Csp.js +3 -0
- package/lib/src/kysely_types/sens/Database.d.ts +3 -0
- package/lib/src/kysely_types/sens/Database.js +3 -0
- package/lib/src/kysely_types/sens/Delega.d.ts +46 -0
- package/lib/src/kysely_types/sens/Delega.js +3 -0
- package/lib/src/kysely_types/sens/Design.d.ts +33 -0
- package/lib/src/kysely_types/sens/Design.js +3 -0
- package/lib/src/kysely_types/sens/Designoep.d.ts +36 -0
- package/lib/src/kysely_types/sens/Designoep.js +3 -0
- package/lib/src/kysely_types/sens/Designorg.d.ts +39 -0
- package/lib/src/kysely_types/sens/Designorg.js +3 -0
- package/lib/src/kysely_types/sens/Dpt.d.ts +54 -0
- package/lib/src/kysely_types/sens/Dpt.js +3 -0
- package/lib/src/kysely_types/sens/Dptele.d.ts +35 -0
- package/lib/src/kysely_types/sens/Dptele.js +3 -0
- package/lib/src/kysely_types/sens/Dpttypman.d.ts +14 -0
- package/lib/src/kysely_types/sens/Dpttypman.js +3 -0
- package/lib/src/kysely_types/sens/Ele.d.ts +35 -0
- package/lib/src/kysely_types/sens/Ele.js +3 -0
- package/lib/src/kysely_types/sens/Elucan.d.ts +50 -0
- package/lib/src/kysely_types/sens/Elucan.js +3 -0
- package/lib/src/kysely_types/sens/Eludep.d.ts +49 -0
- package/lib/src/kysely_types/sens/Eludep.js +3 -0
- package/lib/src/kysely_types/sens/Eludiv.d.ts +47 -0
- package/lib/src/kysely_types/sens/Eludiv.js +3 -0
- package/lib/src/kysely_types/sens/Elueur.d.ts +47 -0
- package/lib/src/kysely_types/sens/Elueur.js +3 -0
- package/lib/src/kysely_types/sens/Elureg.d.ts +48 -0
- package/lib/src/kysely_types/sens/Elureg.js +3 -0
- package/lib/src/kysely_types/sens/Elusen.d.ts +52 -0
- package/lib/src/kysely_types/sens/Elusen.js +3 -0
- package/lib/src/kysely_types/sens/Eluter.d.ts +47 -0
- package/lib/src/kysely_types/sens/Eluter.js +3 -0
- package/lib/src/kysely_types/sens/Elutit.d.ts +38 -0
- package/lib/src/kysely_types/sens/Elutit.js +3 -0
- package/lib/src/kysely_types/sens/Eluvil.d.ts +48 -0
- package/lib/src/kysely_types/sens/Eluvil.js +3 -0
- package/lib/src/kysely_types/sens/Etadebman.d.ts +34 -0
- package/lib/src/kysely_types/sens/Etadebman.js +3 -0
- package/lib/src/kysely_types/sens/Etafinman.d.ts +34 -0
- package/lib/src/kysely_types/sens/Etafinman.js +3 -0
- package/lib/src/kysely_types/sens/Etasen.d.ts +34 -0
- package/lib/src/kysely_types/sens/Etasen.js +3 -0
- package/lib/src/kysely_types/sens/FonactParticipant.d.ts +16 -0
- package/lib/src/kysely_types/sens/FonactParticipant.js +3 -0
- package/lib/src/kysely_types/sens/Foncom.d.ts +40 -0
- package/lib/src/kysely_types/sens/Foncom.js +3 -0
- package/lib/src/kysely_types/sens/Fondelega.d.ts +40 -0
- package/lib/src/kysely_types/sens/Fondelega.js +3 -0
- package/lib/src/kysely_types/sens/Fongrppol.d.ts +40 -0
- package/lib/src/kysely_types/sens/Fongrppol.js +3 -0
- package/lib/src/kysely_types/sens/Fongrpsen.d.ts +27 -0
- package/lib/src/kysely_types/sens/Fongrpsen.js +3 -0
- package/lib/src/kysely_types/sens/Fonmemcom.d.ts +37 -0
- package/lib/src/kysely_types/sens/Fonmemcom.js +3 -0
- package/lib/src/kysely_types/sens/Fonmemdelega.d.ts +37 -0
- package/lib/src/kysely_types/sens/Fonmemdelega.js +3 -0
- package/lib/src/kysely_types/sens/Fonmemgrppol.d.ts +35 -0
- package/lib/src/kysely_types/sens/Fonmemgrppol.js +3 -0
- package/lib/src/kysely_types/sens/Fonmemgrpsen.d.ts +32 -0
- package/lib/src/kysely_types/sens/Fonmemgrpsen.js +3 -0
- package/lib/src/kysely_types/sens/Fonmemorg.d.ts +41 -0
- package/lib/src/kysely_types/sens/Fonmemorg.js +3 -0
- package/lib/src/kysely_types/sens/Fonorg.d.ts +40 -0
- package/lib/src/kysely_types/sens/Fonorg.js +3 -0
- package/lib/src/kysely_types/sens/Grppol.d.ts +46 -0
- package/lib/src/kysely_types/sens/Grppol.js +3 -0
- package/lib/src/kysely_types/sens/Grpsenami.d.ts +55 -0
- package/lib/src/kysely_types/sens/Grpsenami.js +3 -0
- package/lib/src/kysely_types/sens/Libcom.d.ts +36 -0
- package/lib/src/kysely_types/sens/Libcom.js +3 -0
- package/lib/src/kysely_types/sens/Libdelega.d.ts +34 -0
- package/lib/src/kysely_types/sens/Libdelega.js +3 -0
- package/lib/src/kysely_types/sens/Libgrppol.d.ts +36 -0
- package/lib/src/kysely_types/sens/Libgrppol.js +3 -0
- package/lib/src/kysely_types/sens/Libgrpsen.d.ts +28 -0
- package/lib/src/kysely_types/sens/Libgrpsen.js +3 -0
- package/lib/src/kysely_types/sens/Liborg.d.ts +34 -0
- package/lib/src/kysely_types/sens/Liborg.js +3 -0
- package/lib/src/kysely_types/sens/Mel.d.ts +19 -0
- package/lib/src/kysely_types/sens/Mel.js +3 -0
- package/lib/src/kysely_types/sens/Memcom.d.ts +37 -0
- package/lib/src/kysely_types/sens/Memcom.js +3 -0
- package/lib/src/kysely_types/sens/Memdelega.d.ts +38 -0
- package/lib/src/kysely_types/sens/Memdelega.js +3 -0
- package/lib/src/kysely_types/sens/Memextpar.d.ts +56 -0
- package/lib/src/kysely_types/sens/Memextpar.js +3 -0
- package/lib/src/kysely_types/sens/Memgrppol.d.ts +38 -0
- package/lib/src/kysely_types/sens/Memgrppol.js +3 -0
- package/lib/src/kysely_types/sens/Memgrpsen.d.ts +30 -0
- package/lib/src/kysely_types/sens/Memgrpsen.js +3 -0
- package/lib/src/kysely_types/sens/Memorg.d.ts +42 -0
- package/lib/src/kysely_types/sens/Memorg.js +3 -0
- package/lib/src/kysely_types/sens/Minind.d.ts +46 -0
- package/lib/src/kysely_types/sens/Minind.js +3 -0
- package/lib/src/kysely_types/sens/Mismin.d.ts +17 -0
- package/lib/src/kysely_types/sens/Mismin.js +3 -0
- package/lib/src/kysely_types/sens/Missen.d.ts +17 -0
- package/lib/src/kysely_types/sens/Missen.js +3 -0
- package/lib/src/kysely_types/sens/Moddes.d.ts +30 -0
- package/lib/src/kysely_types/sens/Moddes.js +3 -0
- package/lib/src/kysely_types/sens/Nation.d.ts +26 -0
- package/lib/src/kysely_types/sens/Nation.js +3 -0
- package/lib/src/kysely_types/sens/Nationgrpsen.d.ts +31 -0
- package/lib/src/kysely_types/sens/Nationgrpsen.js +3 -0
- package/lib/src/kysely_types/sens/Org.d.ts +46 -0
- package/lib/src/kysely_types/sens/Org.js +3 -0
- package/lib/src/kysely_types/sens/Orgext.d.ts +72 -0
- package/lib/src/kysely_types/sens/Orgext.js +3 -0
- package/lib/src/kysely_types/sens/Orgthe.d.ts +12 -0
- package/lib/src/kysely_types/sens/Orgthe.js +3 -0
- package/lib/src/kysely_types/sens/Pcs.d.ts +15 -0
- package/lib/src/kysely_types/sens/Pcs.js +3 -0
- package/lib/src/kysely_types/sens/Pcs24.d.ts +15 -0
- package/lib/src/kysely_types/sens/Pcs24.js +3 -0
- package/lib/src/kysely_types/sens/Pcs42.d.ts +15 -0
- package/lib/src/kysely_types/sens/Pcs42.js +3 -0
- package/lib/src/kysely_types/sens/Pcs8.d.ts +12 -0
- package/lib/src/kysely_types/sens/Pcs8.js +3 -0
- package/lib/src/kysely_types/sens/Pcscatpro.d.ts +15 -0
- package/lib/src/kysely_types/sens/Pcscatpro.js +3 -0
- package/lib/src/kysely_types/sens/Poicon.d.ts +20 -0
- package/lib/src/kysely_types/sens/Poicon.js +3 -0
- package/lib/src/kysely_types/sens/Qua.d.ts +30 -0
- package/lib/src/kysely_types/sens/Qua.js +3 -0
- package/lib/src/kysely_types/sens/Reg.d.ts +38 -0
- package/lib/src/kysely_types/sens/Reg.js +3 -0
- package/lib/src/kysely_types/sens/Sen.d.ts +66 -0
- package/lib/src/kysely_types/sens/Sen.js +3 -0
- package/lib/src/kysely_types/sens/SenatSchema.d.ts +198 -0
- package/lib/src/kysely_types/sens/SenatSchema.js +3 -0
- package/lib/src/kysely_types/sens/Senbur.d.ts +41 -0
- package/lib/src/kysely_types/sens/Senbur.js +3 -0
- package/lib/src/kysely_types/sens/Sennom.d.ts +32 -0
- package/lib/src/kysely_types/sens/Sennom.js +3 -0
- package/lib/src/kysely_types/sens/Senurl.d.ts +35 -0
- package/lib/src/kysely_types/sens/Senurl.js +3 -0
- package/lib/src/kysely_types/sens/Stajur.d.ts +19 -0
- package/lib/src/kysely_types/sens/Stajur.js +3 -0
- package/lib/src/kysely_types/sens/Telephone.d.ts +21 -0
- package/lib/src/kysely_types/sens/Telephone.js +3 -0
- package/lib/src/kysely_types/sens/Temval.d.ts +14 -0
- package/lib/src/kysely_types/sens/Temval.js +3 -0
- package/lib/src/kysely_types/sens/Territ.d.ts +25 -0
- package/lib/src/kysely_types/sens/Territ.js +3 -0
- package/lib/src/kysely_types/sens/Titele.d.ts +32 -0
- package/lib/src/kysely_types/sens/Titele.js +3 -0
- package/lib/src/kysely_types/sens/Typadr.d.ts +20 -0
- package/lib/src/kysely_types/sens/Typadr.js +3 -0
- package/lib/src/kysely_types/sens/Typapppol.d.ts +34 -0
- package/lib/src/kysely_types/sens/Typapppol.js +3 -0
- package/lib/src/kysely_types/sens/Typbister.d.ts +16 -0
- package/lib/src/kysely_types/sens/Typbister.js +3 -0
- package/lib/src/kysely_types/sens/TypeActivite.d.ts +11 -0
- package/lib/src/kysely_types/sens/TypeActivite.js +3 -0
- package/lib/src/kysely_types/sens/TypeActiviteParticipant.d.ts +10 -0
- package/lib/src/kysely_types/sens/TypeActiviteParticipant.js +3 -0
- package/lib/src/kysely_types/sens/TypeActiviteSenateur.d.ts +11 -0
- package/lib/src/kysely_types/sens/TypeActiviteSenateur.js +3 -0
- package/lib/src/kysely_types/sens/TypeCategorie.d.ts +11 -0
- package/lib/src/kysely_types/sens/TypeCategorie.js +3 -0
- package/lib/src/kysely_types/sens/Typele.d.ts +22 -0
- package/lib/src/kysely_types/sens/Typele.js +3 -0
- package/lib/src/kysely_types/sens/Typgrpsen.d.ts +23 -0
- package/lib/src/kysely_types/sens/Typgrpsen.js +3 -0
- package/lib/src/kysely_types/sens/Typman.d.ts +20 -0
- package/lib/src/kysely_types/sens/Typman.js +3 -0
- package/lib/src/kysely_types/sens/Typorg.d.ts +26 -0
- package/lib/src/kysely_types/sens/Typorg.js +3 -0
- package/lib/src/kysely_types/sens/Typurl.d.ts +31 -0
- package/lib/src/kysely_types/sens/Typurl.js +3 -0
- package/lib/src/kysely_types/sens/Typvoi.d.ts +16 -0
- package/lib/src/kysely_types/sens/Typvoi.js +3 -0
- package/lib/src/kysely_types/sens/Zongeo.d.ts +22 -0
- package/lib/src/kysely_types/sens/Zongeo.js +3 -0
- package/lib/{types → src/other_types}/agenda.d.ts +1 -0
- package/lib/{types → src/other_types}/sens.d.ts +0 -2
- package/lib/src/other_types/sessions.d.ts +6 -0
- package/lib/src/other_types/sessions.js +19 -0
- package/lib/{types → src/other_types}/texte.d.ts +11 -13
- package/lib/{types → src/other_types}/texte.js +0 -1
- package/lib/src/parsers/texte.d.ts +1 -1
- package/lib/src/parsers/texte.js +1 -1
- package/lib/src/{model/ameli_postgres.d.ts → rich_types/ameli.d.ts} +5 -2
- package/lib/src/rich_types/debats.d.ts +38 -0
- package/lib/src/rich_types/dosleg.d.ts +212 -0
- package/lib/src/rich_types/dosleg.js +193 -0
- package/lib/src/rich_types/questions.d.ts +55 -0
- package/lib/src/rich_types/sens.d.ts +104 -0
- package/lib/src/scripts/convert_data.js +6 -6
- package/lib/src/scripts/convert_xml_to_html.js +1 -1
- package/lib/src/scripts/datautil.d.ts +1 -1
- package/lib/src/scripts/retrieve_agenda.js +4 -4
- package/lib/src/scripts/retrieve_cr_commission.js +6 -6
- package/lib/src/scripts/retrieve_cr_seance.d.ts +1 -1
- package/lib/src/scripts/retrieve_cr_seance.js +4 -4
- package/lib/src/scripts/retrieve_documents.d.ts +1 -1
- package/lib/src/scripts/retrieve_documents.js +4 -4
- package/lib/src/scripts/retrieve_open_data.js +72 -8
- package/lib/src/scripts/retrieve_senateurs_photos.js +2 -2
- package/lib/src/scripts/retrieve_videos.js +3 -3
- package/lib/src/scripts/shared/incremental_import_sql.js +22 -7
- package/lib/src/scripts/shared/prefixed_tables.d.ts +2 -1
- package/lib/src/scripts/shared/prefixed_tables.js +4 -3
- package/lib/src/scripts/shared/staging_import.d.ts +1 -1
- package/lib/src/scripts/validate_prefixed_tables.js +12 -11
- package/lib/src/scrutins.d.ts +47 -0
- package/lib/{model → src/server}/agenda.d.ts +1 -1
- package/lib/{model → src/server}/agenda.js +3 -3
- package/lib/src/server/ameli.d.ts +2 -0
- package/lib/src/server/ameli.js +153 -0
- package/lib/{model → src/server}/commission.d.ts +5 -4
- package/lib/{model → src/server}/commission.js +6 -6
- package/lib/src/server/config.d.ts +43 -0
- package/lib/src/server/config.js +37 -0
- package/lib/src/server/conversion_textes.d.ts +11 -0
- package/lib/src/server/conversion_textes.js +320 -0
- package/lib/src/server/databases_postgres.d.ts +32 -0
- package/lib/src/server/databases_postgres.js +50 -0
- package/lib/{datasets.d.ts → src/server/datasets.d.ts} +4 -0
- package/lib/{datasets.js → src/server/datasets.js} +16 -2
- package/lib/src/server/debats.d.ts +2 -0
- package/lib/src/server/debats.js +98 -0
- package/lib/src/server/documents.d.ts +3 -0
- package/lib/src/server/documents.js +132 -0
- package/lib/src/server/dosleg.d.ts +2 -0
- package/lib/src/server/dosleg.js +228 -0
- package/lib/{git.d.ts → src/server/git.d.ts} +1 -0
- package/lib/{git.js → src/server/git.js} +96 -12
- package/lib/src/server/index.d.ts +18 -0
- package/lib/src/server/index.js +16 -0
- package/lib/{loaders.d.ts → src/server/loaders.d.ts} +17 -23
- package/lib/{loaders.js → src/server/loaders.js} +36 -62
- package/lib/src/server/questions.d.ts +2 -0
- package/lib/src/server/questions.js +89 -0
- package/lib/src/server/scrutins.d.ts +2 -0
- package/lib/src/server/scrutins.js +114 -0
- package/lib/{model → src/server}/seance.d.ts +1 -1
- package/lib/{model → src/server}/seance.js +7 -7
- package/lib/src/server/sens.d.ts +9 -0
- package/lib/src/server/sens.js +353 -0
- package/lib/src/types/debats.d.ts +2 -2
- package/lib/src/util.d.ts +1 -0
- package/lib/src/util.js +15 -0
- package/lib/src/utils/cr_spliting.d.ts +1 -1
- package/lib/src/utils/cr_spliting.js +2 -2
- package/lib/src/utils/nvs-parsing.d.ts +1 -1
- package/lib/src/utils/nvs-parsing.js +9 -1
- package/lib/src/utils/reunion_odj_building.d.ts +2 -2
- package/lib/src/utils/reunion_odj_building.js +2 -2
- package/lib/src/utils/reunion_parsing.d.ts +2 -2
- package/lib/src/utils/scoring.d.ts +1 -1
- package/lib/src/videos/match.d.ts +1 -1
- package/lib/src/videos/pipeline.d.ts +4 -4
- package/lib/src/videos/pipeline.js +3 -3
- package/lib/src/videos/search.d.ts +1 -1
- package/lib/tests/test_iter_load.test.js +1 -1
- package/lib/tests/validatePrefixedTables.test.js +1 -1
- package/package.json +11 -4
- package/lib/add-js-extensions-v2.js +0 -23
- package/lib/add-js-extensions.js +0 -17
- package/lib/aggregates.d.ts +0 -52
- package/lib/aggregates.js +0 -930
- package/lib/aggregates.mjs +0 -713
- package/lib/aggregates.ts +0 -833
- package/lib/config.d.ts +0 -10
- package/lib/config.js +0 -16
- package/lib/config.mjs +0 -16
- package/lib/config.ts +0 -26
- package/lib/databases.d.ts +0 -2
- package/lib/databases.js +0 -26
- package/lib/databases.mjs +0 -57
- package/lib/databases.ts +0 -71
- package/lib/datasets.mjs +0 -78
- package/lib/datasets.ts +0 -118
- package/lib/fields.d.ts +0 -10
- package/lib/fields.js +0 -68
- package/lib/fields.mjs +0 -22
- package/lib/fields.ts +0 -29
- package/lib/index.d.ts +0 -13
- package/lib/index.js +0 -1
- package/lib/index.mjs +0 -7
- package/lib/index.ts +0 -64
- package/lib/inserters.d.ts +0 -98
- package/lib/inserters.js +0 -500
- package/lib/inserters.mjs +0 -360
- package/lib/inserters.ts +0 -521
- package/lib/legislatures.json +0 -38
- package/lib/loaders.mjs +0 -158
- package/lib/loaders.ts +0 -271
- package/lib/model/ameli.d.ts +0 -51
- package/lib/model/ameli.js +0 -149
- package/lib/model/ameli.mjs +0 -84
- package/lib/model/ameli.ts +0 -100
- package/lib/model/debats.d.ts +0 -67
- package/lib/model/debats.js +0 -95
- package/lib/model/debats.mjs +0 -43
- package/lib/model/debats.ts +0 -68
- package/lib/model/documents.d.ts +0 -12
- package/lib/model/documents.js +0 -151
- package/lib/model/dosleg.d.ts +0 -7
- package/lib/model/dosleg.js +0 -326
- package/lib/model/dosleg.mjs +0 -196
- package/lib/model/dosleg.ts +0 -240
- package/lib/model/index.d.ts +0 -7
- package/lib/model/index.js +0 -7
- package/lib/model/index.mjs +0 -5
- package/lib/model/index.ts +0 -15
- package/lib/model/questions.d.ts +0 -45
- package/lib/model/questions.js +0 -89
- package/lib/model/questions.mjs +0 -71
- package/lib/model/questions.ts +0 -93
- package/lib/model/scrutins.d.ts +0 -13
- package/lib/model/scrutins.js +0 -114
- package/lib/model/sens.d.ts +0 -146
- package/lib/model/sens.js +0 -454
- package/lib/model/sens.mjs +0 -415
- package/lib/model/sens.ts +0 -516
- package/lib/model/texte.d.ts +0 -7
- package/lib/model/texte.js +0 -256
- package/lib/model/texte.mjs +0 -208
- package/lib/model/texte.ts +0 -229
- package/lib/model/util.d.ts +0 -9
- package/lib/model/util.js +0 -38
- package/lib/model/util.mjs +0 -19
- package/lib/model/util.ts +0 -32
- package/lib/parsers/texte.d.ts +0 -7
- package/lib/parsers/texte.js +0 -228
- package/lib/raw_types/ameli.d.ts +0 -914
- package/lib/raw_types/ameli.js +0 -5
- package/lib/raw_types/ameli.mjs +0 -163
- package/lib/raw_types/debats.d.ts +0 -207
- package/lib/raw_types/debats.js +0 -5
- package/lib/raw_types/debats.mjs +0 -58
- package/lib/raw_types/dosleg.d.ts +0 -1619
- package/lib/raw_types/dosleg.js +0 -5
- package/lib/raw_types/dosleg.mjs +0 -438
- package/lib/raw_types/questions.d.ts +0 -419
- package/lib/raw_types/questions.js +0 -5
- package/lib/raw_types/questions.mjs +0 -11
- package/lib/raw_types/senat.d.ts +0 -11368
- package/lib/raw_types/senat.js +0 -5
- package/lib/raw_types/sens.d.ts +0 -8248
- package/lib/raw_types/sens.js +0 -5
- package/lib/raw_types/sens.mjs +0 -508
- package/lib/raw_types_kysely/ameli.d.ts +0 -915
- package/lib/raw_types_kysely/ameli.js +0 -7
- package/lib/raw_types_kysely/ameli.mjs +0 -5
- package/lib/raw_types_kysely/ameli.ts +0 -951
- package/lib/raw_types_kysely/debats.d.ts +0 -207
- package/lib/raw_types_kysely/debats.js +0 -7
- package/lib/raw_types_kysely/debats.mjs +0 -5
- package/lib/raw_types_kysely/debats.ts +0 -222
- package/lib/raw_types_kysely/dosleg.d.ts +0 -3532
- package/lib/raw_types_kysely/dosleg.js +0 -7
- package/lib/raw_types_kysely/dosleg.mjs +0 -5
- package/lib/raw_types_kysely/dosleg.ts +0 -3621
- package/lib/raw_types_kysely/questions.d.ts +0 -414
- package/lib/raw_types_kysely/questions.js +0 -7
- package/lib/raw_types_kysely/questions.mjs +0 -5
- package/lib/raw_types_kysely/questions.ts +0 -426
- package/lib/raw_types_kysely/sens.d.ts +0 -4394
- package/lib/raw_types_kysely/sens.js +0 -7
- package/lib/raw_types_kysely/sens.mjs +0 -5
- package/lib/raw_types_kysely/sens.ts +0 -4499
- package/lib/raw_types_schemats/ameli.d.ts +0 -539
- package/lib/raw_types_schemats/ameli.js +0 -2
- package/lib/raw_types_schemats/ameli.mjs +0 -2
- package/lib/raw_types_schemats/ameli.ts +0 -601
- package/lib/raw_types_schemats/debats.d.ts +0 -127
- package/lib/raw_types_schemats/debats.js +0 -2
- package/lib/raw_types_schemats/debats.mjs +0 -2
- package/lib/raw_types_schemats/debats.ts +0 -145
- package/lib/raw_types_schemats/dosleg.d.ts +0 -977
- package/lib/raw_types_schemats/dosleg.js +0 -2
- package/lib/raw_types_schemats/dosleg.mjs +0 -2
- package/lib/raw_types_schemats/dosleg.ts +0 -2193
- package/lib/raw_types_schemats/questions.d.ts +0 -235
- package/lib/raw_types_schemats/questions.js +0 -2
- package/lib/raw_types_schemats/questions.mjs +0 -2
- package/lib/raw_types_schemats/questions.ts +0 -249
- package/lib/raw_types_schemats/sens.d.ts +0 -6915
- package/lib/raw_types_schemats/sens.js +0 -2
- package/lib/raw_types_schemats/sens.mjs +0 -2
- package/lib/raw_types_schemats/sens.ts +0 -2907
- package/lib/scripts/convert_data.js +0 -354
- package/lib/scripts/convert_data.mjs +0 -181
- package/lib/scripts/convert_data.ts +0 -243
- package/lib/scripts/data-download.d.ts +0 -1
- package/lib/scripts/data-download.js +0 -12
- package/lib/scripts/datautil.d.ts +0 -8
- package/lib/scripts/datautil.js +0 -34
- package/lib/scripts/datautil.mjs +0 -16
- package/lib/scripts/datautil.ts +0 -19
- package/lib/scripts/images/transparent_150x192.jpg +0 -0
- package/lib/scripts/images/transparent_155x225.jpg +0 -0
- package/lib/scripts/parse_textes.d.ts +0 -1
- package/lib/scripts/parse_textes.js +0 -44
- package/lib/scripts/parse_textes.mjs +0 -46
- package/lib/scripts/parse_textes.ts +0 -65
- package/lib/scripts/retrieve_agenda.d.ts +0 -1
- package/lib/scripts/retrieve_agenda.js +0 -132
- package/lib/scripts/retrieve_cr_commission.d.ts +0 -1
- package/lib/scripts/retrieve_cr_commission.js +0 -364
- package/lib/scripts/retrieve_cr_seance.d.ts +0 -6
- package/lib/scripts/retrieve_cr_seance.js +0 -347
- package/lib/scripts/retrieve_documents.d.ts +0 -3
- package/lib/scripts/retrieve_documents.js +0 -219
- package/lib/scripts/retrieve_documents.mjs +0 -249
- package/lib/scripts/retrieve_documents.ts +0 -298
- package/lib/scripts/retrieve_open_data.d.ts +0 -1
- package/lib/scripts/retrieve_open_data.js +0 -315
- package/lib/scripts/retrieve_open_data.mjs +0 -217
- package/lib/scripts/retrieve_open_data.ts +0 -268
- package/lib/scripts/retrieve_senateurs_photos.d.ts +0 -1
- package/lib/scripts/retrieve_senateurs_photos.js +0 -147
- package/lib/scripts/retrieve_senateurs_photos.mjs +0 -147
- package/lib/scripts/retrieve_senateurs_photos.ts +0 -177
- package/lib/scripts/retrieve_videos.d.ts +0 -1
- package/lib/scripts/retrieve_videos.js +0 -461
- package/lib/scripts/shared/cli_helpers.d.ts +0 -95
- package/lib/scripts/shared/cli_helpers.js +0 -91
- package/lib/scripts/shared/cli_helpers.ts +0 -36
- package/lib/scripts/shared/util.d.ts +0 -4
- package/lib/scripts/shared/util.js +0 -35
- package/lib/scripts/shared/util.ts +0 -33
- package/lib/scripts/test_iter_load.d.ts +0 -1
- package/lib/scripts/test_iter_load.js +0 -12
- package/lib/src/databases.d.ts +0 -3
- package/lib/src/databases.js +0 -26
- package/lib/src/model/ameli_postgres.js +0 -150
- package/lib/src/raw_types/senat.d.ts +0 -11372
- package/lib/src/raw_types/senat.js +0 -5
- package/lib/src/scripts/test_iter_load.d.ts +0 -1
- package/lib/src/scripts/test_iter_load.js +0 -12
- package/lib/strings.d.ts +0 -1
- package/lib/strings.js +0 -18
- package/lib/strings.mjs +0 -18
- package/lib/strings.ts +0 -26
- package/lib/types/ameli.d.ts +0 -5
- package/lib/types/ameli.mjs +0 -13
- package/lib/types/ameli.ts +0 -21
- package/lib/types/debats.d.ts +0 -2
- package/lib/types/debats.mjs +0 -2
- package/lib/types/debats.ts +0 -6
- package/lib/types/dosleg.d.ts +0 -70
- package/lib/types/dosleg.js +0 -1
- package/lib/types/dosleg.mjs +0 -151
- package/lib/types/dosleg.ts +0 -284
- package/lib/types/questions.d.ts +0 -2
- package/lib/types/questions.mjs +0 -1
- package/lib/types/questions.ts +0 -3
- package/lib/types/sens.mjs +0 -1
- package/lib/types/sens.ts +0 -12
- package/lib/types/sessions.d.ts +0 -5
- package/lib/types/sessions.js +0 -84
- package/lib/types/sessions.mjs +0 -43
- package/lib/types/sessions.ts +0 -42
- package/lib/types/texte.mjs +0 -16
- package/lib/types/texte.ts +0 -76
- package/lib/typings/windows-1252.d.js +0 -2
- package/lib/typings/windows-1252.d.mjs +0 -2
- package/lib/typings/windows-1252.d.ts +0 -11
- package/lib/utils/cr_spliting.d.ts +0 -28
- package/lib/utils/cr_spliting.js +0 -265
- package/lib/utils/date.d.ts +0 -10
- package/lib/utils/date.js +0 -100
- package/lib/utils/nvs-timecode.d.ts +0 -7
- package/lib/utils/nvs-timecode.js +0 -79
- package/lib/utils/reunion_grouping.d.ts +0 -9
- package/lib/utils/reunion_grouping.js +0 -361
- package/lib/utils/reunion_odj_building.d.ts +0 -5
- package/lib/utils/reunion_odj_building.js +0 -154
- package/lib/utils/reunion_parsing.d.ts +0 -23
- package/lib/utils/reunion_parsing.js +0 -209
- package/lib/utils/scoring.d.ts +0 -14
- package/lib/utils/scoring.js +0 -147
- package/lib/utils/string_cleaning.d.ts +0 -7
- package/lib/utils/string_cleaning.js +0 -57
- package/lib/validators/config.mjs +0 -54
- package/lib/validators/config.ts +0 -79
- package/lib/validators/senat.d.ts +0 -0
- package/lib/validators/senat.js +0 -28
- package/lib/validators/senat.mjs +0 -24
- package/lib/validators/senat.ts +0 -26
- /package/lib/{add-js-extensions-v2.d.ts → src/documents.js} +0 -0
- /package/lib/{types → src/other_types}/agenda.js +0 -0
- /package/lib/{types → src/other_types}/compte_rendu.d.ts +0 -0
- /package/lib/{types → src/other_types}/compte_rendu.js +0 -0
- /package/lib/{types → src/other_types}/sens.js +0 -0
- /package/lib/{types → src/rich_types}/ameli.js +0 -0
- /package/lib/{types → src/rich_types}/debats.js +0 -0
- /package/lib/{types → src/rich_types}/questions.js +0 -0
- /package/lib/{add-js-extensions.d.ts → src/rich_types/sens.js} +0 -0
- /package/lib/{validators → src/schemas}/config.d.ts +0 -0
- /package/lib/{validators → src/schemas}/config.js +0 -0
- /package/lib/{scripts/convert_data.d.ts → src/scrutins.js} +0 -0
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import { Ass, Aud, Auteur, DateSeance, Deccoc, Denrap, Docatt, Ecr, Etaloi, Lecass, Lecassrap, Lecture, Loi, Org, Oritxt, Qua, Rap, Raporg, Scr, Texte, Typatt, Typlec, Typloi, Typtxt, Typurl } from "../kanel_types/dosleg.js";
|
|
2
|
+
import { TxtAmeli } from "../kanel_types/ameli.js";
|
|
3
|
+
import { Debats } from "../kanel_types/debats.js";
|
|
4
|
+
import { TxtAmeliCustomRich } from "./ameli.js";
|
|
5
|
+
export interface DossierThemeRow {
|
|
6
|
+
libelle: string;
|
|
7
|
+
}
|
|
8
|
+
export type DossierAuteurRow = {
|
|
9
|
+
matricule: string | null;
|
|
10
|
+
nom_usuel: string;
|
|
11
|
+
ordre: string | null;
|
|
12
|
+
prenom: string | null;
|
|
13
|
+
qualite: string | null;
|
|
14
|
+
role: string | null;
|
|
15
|
+
};
|
|
16
|
+
export type DossierDocumentAnnexeRow = {
|
|
17
|
+
type_document: string;
|
|
18
|
+
url: string | null;
|
|
19
|
+
};
|
|
20
|
+
export type DossierTexte = {
|
|
21
|
+
auteurs?: DossierAuteurRow[] | null;
|
|
22
|
+
code_adoption?: string | null;
|
|
23
|
+
code_organisme?: string | null;
|
|
24
|
+
date?: string | null;
|
|
25
|
+
id?: string | null;
|
|
26
|
+
modification?: string | null;
|
|
27
|
+
numero?: number | string | null;
|
|
28
|
+
ordre_origine?: string | null;
|
|
29
|
+
origine?: string | null;
|
|
30
|
+
session?: number | null;
|
|
31
|
+
titre?: string | null;
|
|
32
|
+
type?: string | null;
|
|
33
|
+
url?: string | null;
|
|
34
|
+
};
|
|
35
|
+
export type DossierRapport = {
|
|
36
|
+
auteurs?: DossierAuteurRow[] | null;
|
|
37
|
+
code_organisme?: string | null;
|
|
38
|
+
date?: string | null;
|
|
39
|
+
documents_annexes?: DossierDocumentAnnexeRow[] | null;
|
|
40
|
+
id?: string | null;
|
|
41
|
+
numero?: number | string | null;
|
|
42
|
+
session?: number | null;
|
|
43
|
+
sous_titre?: string | null;
|
|
44
|
+
titre?: string | null;
|
|
45
|
+
type?: string | null;
|
|
46
|
+
url?: string | null;
|
|
47
|
+
};
|
|
48
|
+
export type DossierDateSeance = {
|
|
49
|
+
date?: string | null;
|
|
50
|
+
};
|
|
51
|
+
export type DossierLectureAssemblee = {
|
|
52
|
+
assemblee?: string | null;
|
|
53
|
+
code_organisme?: string | null;
|
|
54
|
+
date_publication_amendements_commission?: string | null;
|
|
55
|
+
date_publication_amendements_seance?: string | null;
|
|
56
|
+
dates_seances?: DossierDateSeance[] | null;
|
|
57
|
+
libelle_organisme?: string | null;
|
|
58
|
+
loi_intitule_modifie?: string | null;
|
|
59
|
+
numero_petite_loi?: number | null;
|
|
60
|
+
ordre_lecture_assemblee?: string | null;
|
|
61
|
+
origine_proposition?: string | null;
|
|
62
|
+
rapports?: DossierRapport[] | null;
|
|
63
|
+
session?: number | null;
|
|
64
|
+
textes?: DossierTexte[] | null;
|
|
65
|
+
url_cr_debats?: string | null;
|
|
66
|
+
url_petite_loi?: string | null;
|
|
67
|
+
};
|
|
68
|
+
export type DossierLecture = {
|
|
69
|
+
lectures_assemblee?: DossierLectureAssemblee[] | null;
|
|
70
|
+
libelle?: string | null;
|
|
71
|
+
ordre_lecture?: number | string | null;
|
|
72
|
+
type_lecture?: string | null;
|
|
73
|
+
};
|
|
74
|
+
export interface DossierLegislatifResult {
|
|
75
|
+
code: string | null;
|
|
76
|
+
code_dossier_an: string | null;
|
|
77
|
+
code_nature_dossier: string | null;
|
|
78
|
+
code_organisme_resolution: string | null;
|
|
79
|
+
condition_saisine_CoC: string | null;
|
|
80
|
+
date_decision_CoC: string | null;
|
|
81
|
+
date_opposition_procedure_acceleree: string | null;
|
|
82
|
+
date_procedure_acceleree: string | null;
|
|
83
|
+
date_publication_JO: string | null;
|
|
84
|
+
date_publication_JO_correctif_1: string | null;
|
|
85
|
+
date_publication_JO_correctif_2: string | null;
|
|
86
|
+
date_promulgation: string | null;
|
|
87
|
+
date_retrait_procedure_acceleree: string | null;
|
|
88
|
+
date_saisine_CoC: string | null;
|
|
89
|
+
etat_dossier: string | null;
|
|
90
|
+
lectures: DossierLecture[];
|
|
91
|
+
libelle_decision_CoC: string | null;
|
|
92
|
+
libelle_type_dossier: string | null;
|
|
93
|
+
mot_cle: string | null;
|
|
94
|
+
num_decision_CoC: string | null;
|
|
95
|
+
numero: string | null;
|
|
96
|
+
numero_JO: string | null;
|
|
97
|
+
numero_JO_correctif_1: string | null;
|
|
98
|
+
numero_JO_correctif_2: string | null;
|
|
99
|
+
signet: string;
|
|
100
|
+
signet_alternatif: string | null;
|
|
101
|
+
themes: DossierThemeRow[];
|
|
102
|
+
titre: string | null;
|
|
103
|
+
titre_JO: string;
|
|
104
|
+
titre_court: string | null;
|
|
105
|
+
titre_long: string | null;
|
|
106
|
+
titre_long_original: string | null;
|
|
107
|
+
urgence: string | null;
|
|
108
|
+
url: string;
|
|
109
|
+
url_JO: string | null;
|
|
110
|
+
url_JO_correctif_1: string | null;
|
|
111
|
+
url_JO_correctif_2: string | null;
|
|
112
|
+
url_decision_CoC: string | null;
|
|
113
|
+
url_dossier_assemblee_nationale: string | null;
|
|
114
|
+
url_dossier_CoC: string | null;
|
|
115
|
+
url_ordonnance: string | null;
|
|
116
|
+
url_presentation_articles: string | null;
|
|
117
|
+
}
|
|
118
|
+
export type DossierWithLectures = DossierLegislatifResult & {
|
|
119
|
+
actes_legislatifs?: ActeLegislatif[] | null;
|
|
120
|
+
lectures?: DossierLecture[] | null;
|
|
121
|
+
numero_JO?: string | number | null;
|
|
122
|
+
signet: string;
|
|
123
|
+
themes?: DossierThemeRow[] | null;
|
|
124
|
+
url_JO?: string | null;
|
|
125
|
+
url_decision_CoC?: string | null;
|
|
126
|
+
url_dossier_CoC?: string | null;
|
|
127
|
+
};
|
|
128
|
+
export type ActeLegislatif = {
|
|
129
|
+
adoption?: string;
|
|
130
|
+
chambre: "AN" | "SN";
|
|
131
|
+
code_acte: string;
|
|
132
|
+
code_organisme: string | null;
|
|
133
|
+
date: string;
|
|
134
|
+
date_publication_JO?: string | null;
|
|
135
|
+
id?: string | null;
|
|
136
|
+
libelle: string;
|
|
137
|
+
numero?: string | number | null;
|
|
138
|
+
numero_JO?: string | number | null;
|
|
139
|
+
session?: number | null;
|
|
140
|
+
signet_dossier: string;
|
|
141
|
+
texte_url?: string | null;
|
|
142
|
+
uid: string;
|
|
143
|
+
url_legifrance?: string | null;
|
|
144
|
+
};
|
|
145
|
+
export type { Deccoc as DecCoc, Denrap as DenRap, Etaloi as EtaLoi, Oritxt as OriTxt, Raporg as RapOrg, Typatt as TypAtt, Typlec as TypLec, Typloi as TypLoi, Typtxt as TypTxt, Typurl as TypUrl, };
|
|
146
|
+
export interface AudRich extends Aud {
|
|
147
|
+
org?: Org;
|
|
148
|
+
}
|
|
149
|
+
export interface AuteurRich extends Auteur {
|
|
150
|
+
qua?: Qua;
|
|
151
|
+
}
|
|
152
|
+
export interface DateSeanceRich extends DateSeance {
|
|
153
|
+
debat?: Debats;
|
|
154
|
+
scrids?: string[];
|
|
155
|
+
scrs?: Scr[];
|
|
156
|
+
}
|
|
157
|
+
export interface DocAttRich extends Docatt {
|
|
158
|
+
rap?: Rap;
|
|
159
|
+
typatt?: Typatt;
|
|
160
|
+
}
|
|
161
|
+
export interface EcrRich extends Ecr {
|
|
162
|
+
aut?: AuteurRich;
|
|
163
|
+
}
|
|
164
|
+
export interface LecAssRich extends Lecass {
|
|
165
|
+
ass?: Ass;
|
|
166
|
+
auds?: AudRich[];
|
|
167
|
+
audcles?: Aud["audcle"][];
|
|
168
|
+
datesSeances?: DateSeanceRich[];
|
|
169
|
+
datesSeancesCodes?: DateSeance["code"][];
|
|
170
|
+
debatdatseas: Date[];
|
|
171
|
+
lecassraps?: LecAssRapRich[];
|
|
172
|
+
lecassrapids?: string[];
|
|
173
|
+
org?: Org;
|
|
174
|
+
texcods: Texte["texcod"][];
|
|
175
|
+
textes?: TexteRich[];
|
|
176
|
+
}
|
|
177
|
+
export interface LecAssRapRich extends Lecassrap {
|
|
178
|
+
rap?: Rap;
|
|
179
|
+
}
|
|
180
|
+
export interface LectureRich extends Lecture {
|
|
181
|
+
typlec?: Typlec;
|
|
182
|
+
lecassidts?: Lecass["lecassidt"][];
|
|
183
|
+
lecasss?: LecAssRich[];
|
|
184
|
+
}
|
|
185
|
+
export interface LoiRich extends Loi {
|
|
186
|
+
deccoc?: Deccoc;
|
|
187
|
+
etaloi?: Etaloi;
|
|
188
|
+
lecidts?: Lecture["lecidt"][];
|
|
189
|
+
lectures?: LectureRich[];
|
|
190
|
+
typloi?: Typloi;
|
|
191
|
+
}
|
|
192
|
+
export interface RapRich extends Rap {
|
|
193
|
+
denrap?: Denrap;
|
|
194
|
+
docattcles?: Docatt["docattcle"][];
|
|
195
|
+
docatts?: DocAttRich[];
|
|
196
|
+
ecrnums?: Ecr["ecrnum"][];
|
|
197
|
+
ecrs?: EcrRich[];
|
|
198
|
+
orgcods?: Raporg["orgcod"][];
|
|
199
|
+
orgs?: Org[];
|
|
200
|
+
}
|
|
201
|
+
export interface TexteRich extends Texte {
|
|
202
|
+
ecrs?: EcrRich[];
|
|
203
|
+
ecrnums?: Ecr["ecrnum"][];
|
|
204
|
+
libtypurl?: Typurl["libtypurl"];
|
|
205
|
+
org?: Org;
|
|
206
|
+
oritxt: Oritxt;
|
|
207
|
+
typtxt?: Typtxt;
|
|
208
|
+
txtAmeli?: TxtAmeliCustomRich;
|
|
209
|
+
txtAmeliId: TxtAmeli["id"];
|
|
210
|
+
}
|
|
211
|
+
export declare function getCodeActeLecture(codeNatureDossier: string, typeLecture: string, assemblee: string): string | null;
|
|
212
|
+
export declare function buildActesLegislatifs(dossier: DossierWithLectures): ActeLegislatif[];
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
export function getCodeActeLecture(codeNatureDossier, typeLecture, assemblee) {
|
|
2
|
+
const codeAssemblee = assemblee === "Sénat" ? "SN" : assemblee === "Assemblée nationale" ? "AN" : null;
|
|
3
|
+
if (typeLecture === "Commission mixte paritaire") {
|
|
4
|
+
return "CMP";
|
|
5
|
+
}
|
|
6
|
+
if (!codeAssemblee) {
|
|
7
|
+
return null;
|
|
8
|
+
}
|
|
9
|
+
if (["ppl", "pjl", "cvn"].includes(codeNatureDossier) && typeLecture === "Première lecture") {
|
|
10
|
+
return `${codeAssemblee}1`;
|
|
11
|
+
}
|
|
12
|
+
if (["ppl", "pjl", "cvn"].includes(codeNatureDossier) && typeLecture === "Deuxième lecture") {
|
|
13
|
+
return `${codeAssemblee}2`;
|
|
14
|
+
}
|
|
15
|
+
if (["ppl", "pjl", "cvn"].includes(codeNatureDossier) && typeLecture === "Troisième lecture") {
|
|
16
|
+
return `${codeAssemblee}3`;
|
|
17
|
+
}
|
|
18
|
+
if (["ppl", "pjl", "cvn"].includes(codeNatureDossier) && typeLecture === "Quatrième lecture") {
|
|
19
|
+
return `${codeAssemblee}4`;
|
|
20
|
+
}
|
|
21
|
+
if (["ppl", "pjl", "cvn"].includes(codeNatureDossier) && typeLecture === "Nouvelle lecture") {
|
|
22
|
+
return `${codeAssemblee}NLEC`;
|
|
23
|
+
}
|
|
24
|
+
if (["ppl", "pjl", "cvn"].includes(codeNatureDossier) && typeLecture === "Lecture définitive") {
|
|
25
|
+
return `${codeAssemblee}LDEF`;
|
|
26
|
+
}
|
|
27
|
+
if (["ppr"].includes(codeNatureDossier) && typeLecture === "Première lecture") {
|
|
28
|
+
return `${codeAssemblee}LUNI`;
|
|
29
|
+
}
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
function getDateSortValue(value) {
|
|
33
|
+
if (!value) {
|
|
34
|
+
return Number.POSITIVE_INFINITY;
|
|
35
|
+
}
|
|
36
|
+
const timestamp = new Date(value).getTime();
|
|
37
|
+
return Number.isNaN(timestamp) ? Number.POSITIVE_INFINITY : timestamp;
|
|
38
|
+
}
|
|
39
|
+
function compareByDate(left, right) {
|
|
40
|
+
return getDateSortValue(left.date) - getDateSortValue(right.date);
|
|
41
|
+
}
|
|
42
|
+
function getPhasePrefix(lecture, assemblee) {
|
|
43
|
+
if (assemblee !== "Sénat")
|
|
44
|
+
return null;
|
|
45
|
+
const typeLibelle = (lecture.type_lecture || "").toLowerCase();
|
|
46
|
+
if (typeLibelle.includes("cmp") || typeLibelle.includes("mixte"))
|
|
47
|
+
return "CMP";
|
|
48
|
+
if (typeLibelle.includes("nouvelle lecture"))
|
|
49
|
+
return "SNNLEC";
|
|
50
|
+
if (typeLibelle.includes("définitive"))
|
|
51
|
+
return "SNLDEF";
|
|
52
|
+
if (typeLibelle.includes("unique"))
|
|
53
|
+
return "SNLUNI";
|
|
54
|
+
if (lecture.ordre_lecture) {
|
|
55
|
+
return `SN${lecture.ordre_lecture}`;
|
|
56
|
+
}
|
|
57
|
+
if (typeLibelle.includes("première"))
|
|
58
|
+
return "SN1";
|
|
59
|
+
if (typeLibelle.includes("deuxième") || typeLibelle.includes("seconde"))
|
|
60
|
+
return "SN2";
|
|
61
|
+
return "SN1";
|
|
62
|
+
}
|
|
63
|
+
export function buildActesLegislatifs(dossier) {
|
|
64
|
+
const actes = [];
|
|
65
|
+
const loiSignet = dossier.signet;
|
|
66
|
+
const lectures = dossier.lectures ?? [];
|
|
67
|
+
for (const lecture of lectures) {
|
|
68
|
+
const lecturesAssemblee = lecture.lectures_assemblee ?? [];
|
|
69
|
+
for (const lecAss of lecturesAssemblee) {
|
|
70
|
+
if (lecAss.assemblee !== "Sénat")
|
|
71
|
+
continue;
|
|
72
|
+
const phasePrefix = getPhasePrefix(lecture, lecAss.assemblee);
|
|
73
|
+
if (!phasePrefix)
|
|
74
|
+
continue;
|
|
75
|
+
const textes = lecAss.textes ?? [];
|
|
76
|
+
const textesTries = [...textes].sort(compareByDate);
|
|
77
|
+
const depotTexte = textesTries.find((t) => (t.origine || "").toLowerCase().includes("déposé") ||
|
|
78
|
+
(t.origine || "").toLowerCase().includes("transmis") ||
|
|
79
|
+
t.ordre_origine === "0");
|
|
80
|
+
if (depotTexte && depotTexte.date) {
|
|
81
|
+
actes.push({
|
|
82
|
+
code_acte: `${phasePrefix}-DEPOT`,
|
|
83
|
+
date: depotTexte.date,
|
|
84
|
+
libelle: `Dépôt du texte n°${depotTexte.numero}`,
|
|
85
|
+
id: depotTexte.id,
|
|
86
|
+
numero: depotTexte.numero,
|
|
87
|
+
uid: `${loiSignet}-${phasePrefix}-DEPOT`,
|
|
88
|
+
session: lecAss.session,
|
|
89
|
+
chambre: "SN",
|
|
90
|
+
signet_dossier: loiSignet,
|
|
91
|
+
texte_url: depotTexte.url,
|
|
92
|
+
code_organisme: null,
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
const rapports = lecAss.rapports ?? [];
|
|
96
|
+
for (const rap of rapports) {
|
|
97
|
+
if (rap.date) {
|
|
98
|
+
actes.push({
|
|
99
|
+
code_acte: `${phasePrefix}-COM-FOND`,
|
|
100
|
+
date: rap.date,
|
|
101
|
+
libelle: `Rapport n°${rap.numero} de la commission`,
|
|
102
|
+
id: rap.id,
|
|
103
|
+
numero: rap.numero,
|
|
104
|
+
code_organisme: rap.code_organisme ?? null,
|
|
105
|
+
uid: `${loiSignet}-${phasePrefix}-COM`,
|
|
106
|
+
session: lecAss.session,
|
|
107
|
+
chambre: "SN",
|
|
108
|
+
signet_dossier: loiSignet,
|
|
109
|
+
texte_url: rap.url,
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
const datesSeances = lecAss.dates_seances ?? [];
|
|
114
|
+
if (datesSeances.length > 0) {
|
|
115
|
+
datesSeances.sort(compareByDate);
|
|
116
|
+
const premiereSeance = datesSeances[0];
|
|
117
|
+
if (premiereSeance && premiereSeance.date) {
|
|
118
|
+
actes.push({
|
|
119
|
+
code_acte: `${phasePrefix}-DEBATS-SEANCE`,
|
|
120
|
+
date: premiereSeance.date,
|
|
121
|
+
libelle: "Discussion en séance publique",
|
|
122
|
+
id: null,
|
|
123
|
+
uid: `${loiSignet}-${phasePrefix}-DEBATS-SEANCE`,
|
|
124
|
+
session: lecAss.session,
|
|
125
|
+
chambre: "SN",
|
|
126
|
+
signet_dossier: loiSignet,
|
|
127
|
+
code_organisme: null,
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
const texteFinal = [...textesTries].reverse().find((t) => {
|
|
132
|
+
const origine = (t.origine || "").toLowerCase();
|
|
133
|
+
return (origine.includes("adopté") ||
|
|
134
|
+
origine.includes("rejeté") ||
|
|
135
|
+
origine.includes("devenu résolution") ||
|
|
136
|
+
t.code_adoption === "O");
|
|
137
|
+
});
|
|
138
|
+
if (texteFinal && texteFinal.date) {
|
|
139
|
+
const origine = (texteFinal.origine || "").toLowerCase();
|
|
140
|
+
let libelleStatut = "Adopté";
|
|
141
|
+
if (origine.includes("rejeté")) {
|
|
142
|
+
libelleStatut = "Rejeté";
|
|
143
|
+
}
|
|
144
|
+
else if (origine.includes("devenue résolution")) {
|
|
145
|
+
libelleStatut = "Adopté";
|
|
146
|
+
}
|
|
147
|
+
actes.push({
|
|
148
|
+
code_acte: `${phasePrefix}-DEBATS-DEC`,
|
|
149
|
+
date: texteFinal.date,
|
|
150
|
+
libelle: `${libelleStatut === "Adopté" ? "Adoption" : "Rejet"} (Texte n°${texteFinal.numero})`,
|
|
151
|
+
id: texteFinal.id,
|
|
152
|
+
numero: texteFinal.numero,
|
|
153
|
+
adoption: libelleStatut,
|
|
154
|
+
uid: `${loiSignet}-DEC-${texteFinal.numero}`,
|
|
155
|
+
session: lecAss.session,
|
|
156
|
+
chambre: "SN",
|
|
157
|
+
signet_dossier: loiSignet,
|
|
158
|
+
texte_url: texteFinal.url,
|
|
159
|
+
code_organisme: null,
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
if (dossier.date_decision_CoC) {
|
|
165
|
+
actes.push({
|
|
166
|
+
code_acte: "CC",
|
|
167
|
+
date: dossier.date_decision_CoC,
|
|
168
|
+
libelle: "Décision du Conseil constitutionnel",
|
|
169
|
+
id: dossier.url_decision_CoC,
|
|
170
|
+
uid: `${loiSignet}-CC`,
|
|
171
|
+
chambre: "AN",
|
|
172
|
+
signet_dossier: loiSignet,
|
|
173
|
+
code_organisme: null,
|
|
174
|
+
texte_url: dossier.url_decision_CoC || dossier.url_dossier_CoC,
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
if (dossier.date_promulgation) {
|
|
178
|
+
actes.push({
|
|
179
|
+
code_acte: "PROM",
|
|
180
|
+
date: dossier.date_promulgation,
|
|
181
|
+
libelle: "Promulgation de la loi",
|
|
182
|
+
date_publication_JO: dossier.date_publication_JO,
|
|
183
|
+
numero_JO: dossier.numero_JO,
|
|
184
|
+
url_legifrance: dossier.url_JO,
|
|
185
|
+
id: dossier.url_JO,
|
|
186
|
+
uid: `${loiSignet}-PROM`,
|
|
187
|
+
chambre: "AN",
|
|
188
|
+
signet_dossier: loiSignet,
|
|
189
|
+
code_organisme: null,
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
return actes.sort(compareByDate);
|
|
193
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { TamQuestions } from "../kanel_types/questions.js";
|
|
2
|
+
export interface QuestionReponseRow {
|
|
3
|
+
date_erratum_JO: string | null;
|
|
4
|
+
date_reponse_JO: string | null;
|
|
5
|
+
ministere_reponse: string | null;
|
|
6
|
+
ministere_reponse_id: string | null;
|
|
7
|
+
page_JO: string | null;
|
|
8
|
+
texte: string | null;
|
|
9
|
+
texte_erratum: string | null;
|
|
10
|
+
url: string | null;
|
|
11
|
+
}
|
|
12
|
+
export interface QuestionResult {
|
|
13
|
+
circonscription: string | null;
|
|
14
|
+
circonscription_numero: string | null;
|
|
15
|
+
civilite: string | null;
|
|
16
|
+
date_cloture: string | null;
|
|
17
|
+
date_erratum_JO: string | null;
|
|
18
|
+
date_publication_JO: string | null;
|
|
19
|
+
date_reponse_JO: string | null;
|
|
20
|
+
date_signalement: string | null;
|
|
21
|
+
date_transmission: string | null;
|
|
22
|
+
etat_code: string | null;
|
|
23
|
+
etat_libelle: string | null;
|
|
24
|
+
etat_tri: string | null;
|
|
25
|
+
groupe: string | null;
|
|
26
|
+
legislature: string | null;
|
|
27
|
+
matricule: string;
|
|
28
|
+
ministere_depot: string | null;
|
|
29
|
+
ministere_depot_date_debut: string | null;
|
|
30
|
+
ministere_depot_id: string | null;
|
|
31
|
+
ministere_reponse: string | null;
|
|
32
|
+
ministere_transmission: string | null;
|
|
33
|
+
nature: string | null;
|
|
34
|
+
nature_libelle: string | null;
|
|
35
|
+
nom: string | null;
|
|
36
|
+
nom_technique: string | null;
|
|
37
|
+
numero: string | null;
|
|
38
|
+
page_JO: string | null;
|
|
39
|
+
page_erratum_JO: string | null;
|
|
40
|
+
prenom: string | null;
|
|
41
|
+
reference: string | null;
|
|
42
|
+
reference_question_rappelee: string | null;
|
|
43
|
+
republique: string | null;
|
|
44
|
+
reponses: QuestionReponseRow[];
|
|
45
|
+
rubrique: string | null;
|
|
46
|
+
sort: string | null;
|
|
47
|
+
sort_code: string | null;
|
|
48
|
+
sort_tri: string | null;
|
|
49
|
+
texte: string | null;
|
|
50
|
+
texte_erratum: string | null;
|
|
51
|
+
themes: string[];
|
|
52
|
+
titre: string | null;
|
|
53
|
+
type_appartenance: string | null;
|
|
54
|
+
}
|
|
55
|
+
export type { TamQuestions as Question };
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
export interface FonctionRow {
|
|
2
|
+
date_debut: string | null;
|
|
3
|
+
date_fin: string | null;
|
|
4
|
+
libelle: string | null;
|
|
5
|
+
}
|
|
6
|
+
export interface MandatSenateurRow {
|
|
7
|
+
code_circonscription: string | null;
|
|
8
|
+
date_debut: string | null;
|
|
9
|
+
date_fin: string | null;
|
|
10
|
+
etat: string | null;
|
|
11
|
+
etat_debut: string | null;
|
|
12
|
+
etat_fin: string | null;
|
|
13
|
+
}
|
|
14
|
+
export interface MandatOrganismeRow {
|
|
15
|
+
code_organisme: string;
|
|
16
|
+
date_debut: string | null;
|
|
17
|
+
date_fin: string | null;
|
|
18
|
+
etat: string | null;
|
|
19
|
+
fonctions: FonctionRow[];
|
|
20
|
+
libelle: string | null;
|
|
21
|
+
type_code_organisme: string | null;
|
|
22
|
+
type_organisme: string | null;
|
|
23
|
+
}
|
|
24
|
+
export interface AdressePointContactRow {
|
|
25
|
+
bureau_distributeur: string | null;
|
|
26
|
+
code_cedex: string | null;
|
|
27
|
+
code_postal: string | null;
|
|
28
|
+
commune: string | null;
|
|
29
|
+
complement: string | null;
|
|
30
|
+
complement2: string | null;
|
|
31
|
+
libelle_cedex: string | null;
|
|
32
|
+
nom_voie: string | null;
|
|
33
|
+
numero_voie: string | null;
|
|
34
|
+
}
|
|
35
|
+
export interface TelephonePointContactRow {
|
|
36
|
+
numero: string | null;
|
|
37
|
+
type: string;
|
|
38
|
+
}
|
|
39
|
+
export interface PointContactRow {
|
|
40
|
+
adresses: AdressePointContactRow[];
|
|
41
|
+
id: string;
|
|
42
|
+
libelle: string | null;
|
|
43
|
+
telephones: TelephonePointContactRow[];
|
|
44
|
+
type: string;
|
|
45
|
+
}
|
|
46
|
+
export interface UrlRow {
|
|
47
|
+
code_url: string;
|
|
48
|
+
url: string;
|
|
49
|
+
}
|
|
50
|
+
export interface SenateurResult {
|
|
51
|
+
PCS_INSEE: string | null;
|
|
52
|
+
PCS_INSEE_24: string | null;
|
|
53
|
+
PCS_INSEE_42: string | null;
|
|
54
|
+
PCS_INSEE_8: string | null;
|
|
55
|
+
circonscription: string | null;
|
|
56
|
+
code_circonscription: string | null;
|
|
57
|
+
code_commission_permanente: string | null;
|
|
58
|
+
code_groupe_politique: string | null;
|
|
59
|
+
commission_permanente: string | null;
|
|
60
|
+
commissions: MandatOrganismeRow[];
|
|
61
|
+
courrier_electronique: string | null;
|
|
62
|
+
date_deces: string | null;
|
|
63
|
+
date_naissance: string | null;
|
|
64
|
+
delegations: MandatOrganismeRow[];
|
|
65
|
+
description_profession: string | null;
|
|
66
|
+
etat: string;
|
|
67
|
+
fonction_bureau_senat: string | null;
|
|
68
|
+
fonctions_bureau: FonctionRow[];
|
|
69
|
+
groupe_politique: string | null;
|
|
70
|
+
groupes: MandatOrganismeRow[];
|
|
71
|
+
mandats_senateur: MandatSenateurRow[];
|
|
72
|
+
matricule: string;
|
|
73
|
+
nom_usuel: string | null;
|
|
74
|
+
points_contact: PointContactRow[];
|
|
75
|
+
prenom_usuel: string;
|
|
76
|
+
qualite: string;
|
|
77
|
+
siege: string | null;
|
|
78
|
+
url_hatvp: string | null;
|
|
79
|
+
urls: UrlRow[];
|
|
80
|
+
}
|
|
81
|
+
export interface CirconscriptionResult {
|
|
82
|
+
article: string | null;
|
|
83
|
+
code: string;
|
|
84
|
+
date_debut: string | null;
|
|
85
|
+
date_fin: string | null;
|
|
86
|
+
etat: string | null;
|
|
87
|
+
identifiant: string;
|
|
88
|
+
libelle_departement: string;
|
|
89
|
+
libelle_region: string;
|
|
90
|
+
nombre_senateurs: string | null;
|
|
91
|
+
url: string | null;
|
|
92
|
+
}
|
|
93
|
+
export interface OrganismeResult {
|
|
94
|
+
code: string;
|
|
95
|
+
date_debut: string | null;
|
|
96
|
+
date_fin: string | null;
|
|
97
|
+
etat: string | null;
|
|
98
|
+
libelle: string | null;
|
|
99
|
+
libelle_court: string | null;
|
|
100
|
+
libelle_long: string | null;
|
|
101
|
+
type_code: string;
|
|
102
|
+
type_libelle: string | null;
|
|
103
|
+
url: string | null;
|
|
104
|
+
}
|
|
@@ -2,13 +2,13 @@ import commandLineArgs from "command-line-args";
|
|
|
2
2
|
import fs from "fs-extra";
|
|
3
3
|
import path from "path";
|
|
4
4
|
import pLimit from "p-limit";
|
|
5
|
-
import * as git from "../git.js";
|
|
6
|
-
import { datasets, EnabledDatasets, getEnabledDatasets } from "../datasets.js";
|
|
7
|
-
import { DATA_ORIGINAL_FOLDER, DATA_TRANSFORMED_FOLDER, DOCUMENT_METADATA_FILE, DOSLEG_DOSSIERS_FOLDER, SCRUTINS_FOLDER, RAPPORT_FOLDER, SENS_CIRCONSCRIPTIONS_FOLDER, SENS_ORGANISMES_FOLDER, SENS_SENATEURS_FOLDER, TEXTE_FOLDER, ENRICHED_TEXTE_FOLDER, } from "../loaders.js";
|
|
8
|
-
import { findAllAmendements, findAllCirconscriptions, findAllDebats, findAllDossiers, findAllScrutins, findAllOrganismes, findAllQuestions, findAllSens, findAllTextes, findAllRapports, } from "../
|
|
5
|
+
import * as git from "../server/git.js";
|
|
6
|
+
import { datasets, EnabledDatasets, getEnabledDatasets } from "../server/datasets.js";
|
|
7
|
+
import { DATA_ORIGINAL_FOLDER, DATA_TRANSFORMED_FOLDER, DOCUMENT_METADATA_FILE, DOSLEG_DOSSIERS_FOLDER, SCRUTINS_FOLDER, RAPPORT_FOLDER, SENS_CIRCONSCRIPTIONS_FOLDER, SENS_ORGANISMES_FOLDER, SENS_SENATEURS_FOLDER, TEXTE_FOLDER, ENRICHED_TEXTE_FOLDER, } from "../server/loaders.js";
|
|
8
|
+
import { findAllAmendements, findAllCirconscriptions, findAllDebats, findAllDossiers, findAllScrutins, findAllOrganismes, findAllQuestions, findAllSens, findAllTextes, findAllRapports, } from "../server/index.js";
|
|
9
9
|
import { processRapport, processTexte } from "./retrieve_documents.js";
|
|
10
|
-
import { buildActesLegislatifs } from "../
|
|
11
|
-
import { UNDEFINED_SESSION } from "../
|
|
10
|
+
import { buildActesLegislatifs } from "../rich_types/dosleg.js";
|
|
11
|
+
import { UNDEFINED_SESSION } from "../other_types/sessions.js";
|
|
12
12
|
import { getSessionFromDate, getSessionFromSignet } from "./datautil.js";
|
|
13
13
|
import { assertExistingDirectory, commonOptions } from "./shared/cli_helpers.js";
|
|
14
14
|
import { ensureAndClearDir } from "./shared/util.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import fs from "fs-extra";
|
|
2
2
|
import path from "path";
|
|
3
3
|
import commandLineArgs from "command-line-args";
|
|
4
|
-
import { convertSenatXmlToHtml } from "../conversion_textes.js";
|
|
4
|
+
import { convertSenatXmlToHtml } from "../server/conversion_textes.js";
|
|
5
5
|
const optionDefinitions = [
|
|
6
6
|
{ name: "input", alias: "i", type: String, defaultOption: true },
|
|
7
7
|
{ name: "output", alias: "o", type: String },
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Session } from "../
|
|
1
|
+
import { Session } from "../other_types/sessions.js";
|
|
2
2
|
export declare const STANDARD_DATE_FORMAT = "yyyy-MM-dd";
|
|
3
3
|
export declare const ID_DATE_FORMAT = "yyyyMMdd";
|
|
4
4
|
export declare const AKN_IDENTIFICATION_STRUCTURE_REGEXP: RegExp;
|
|
@@ -2,10 +2,10 @@ import commandLineArgs from "command-line-args";
|
|
|
2
2
|
import fs from "fs-extra";
|
|
3
3
|
import { DateTime } from "luxon";
|
|
4
4
|
import path from "path";
|
|
5
|
-
import * as git from "../git.js";
|
|
6
|
-
import { AGENDA_FOLDER, DATA_ORIGINAL_FOLDER, DATA_TRANSFORMED_FOLDER } from "../loaders.js";
|
|
7
|
-
import { parseAgendaFromFile } from "../
|
|
8
|
-
import { getSessionsFromStart, UNDEFINED_SESSION } from "../
|
|
5
|
+
import * as git from "../server/git.js";
|
|
6
|
+
import { AGENDA_FOLDER, DATA_ORIGINAL_FOLDER, DATA_TRANSFORMED_FOLDER } from "../server/loaders.js";
|
|
7
|
+
import { parseAgendaFromFile } from "../server/agenda.js";
|
|
8
|
+
import { getSessionsFromStart, UNDEFINED_SESSION } from "../other_types/sessions.js";
|
|
9
9
|
import { ID_DATE_FORMAT } from "./datautil.js";
|
|
10
10
|
import { assertExistingDirectory, commonOptions } from "./shared/cli_helpers.js";
|
|
11
11
|
import { fetchWithRetry } from "./shared/util.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import fs, { ensureDir } from "fs-extra";
|
|
2
2
|
import path from "path";
|
|
3
3
|
import * as cheerio from "cheerio";
|
|
4
|
-
import { COMMISSION_FOLDER, DATA_ORIGINAL_FOLDER, DATA_TRANSFORMED_FOLDER } from "../loaders.js";
|
|
4
|
+
import { COMMISSION_FOLDER, DATA_ORIGINAL_FOLDER, DATA_TRANSFORMED_FOLDER } from "../server/loaders.js";
|
|
5
5
|
import { loadAgendaForDate, parseCommissionMetadataFromHtml, linkCRtoCommissionGroup } from "../utils/cr_spliting.js";
|
|
6
|
-
import { cleanTitle, extractDayH3Sections, parseCommissionCRSectionFromDom } from "../
|
|
6
|
+
import { cleanTitle, extractDayH3Sections, parseCommissionCRSectionFromDom } from "../server/commission.js";
|
|
7
7
|
import commandLineArgs from "command-line-args";
|
|
8
8
|
import { assertExistingDirectory, commonOptions } from "./shared/cli_helpers.js";
|
|
9
|
-
import { sessionStartYearFromDate } from "../
|
|
10
|
-
import { getSessionsFromStart, UNDEFINED_SESSION } from "../
|
|
9
|
+
import { sessionStartYearFromDate } from "../server/seance.js";
|
|
10
|
+
import { getSessionsFromStart, UNDEFINED_SESSION } from "../other_types/sessions.js";
|
|
11
11
|
import { ensureAndClearDir, fetchWithRetry } from "./shared/util.js";
|
|
12
12
|
import { jaccard, jaccardTokenSim } from "../utils/scoring.js";
|
|
13
|
-
import * as git from "../git.js";
|
|
13
|
+
import * as git from "../server/git.js";
|
|
14
14
|
class CommissionCRDownloadError extends Error {
|
|
15
15
|
constructor(message, url) {
|
|
16
16
|
super(`An error occurred while retrieving Commission CR ${url}: ${message}`);
|
|
@@ -363,7 +363,7 @@ async function retrieveCommissionCRs(options = {}) {
|
|
|
363
363
|
commitAndPushGit(debatsDir, options);
|
|
364
364
|
}
|
|
365
365
|
async function main() {
|
|
366
|
-
|
|
366
|
+
assertExistingDirectory(options["dataDir"], "data directory");
|
|
367
367
|
console.time("CRI processing time");
|
|
368
368
|
await retrieveCommissionCRs(options);
|
|
369
369
|
console.timeEnd("CRI processing time");
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* - downloads the ZIP of comptes-rendus des débats (CRI) from data.senat.fr
|
|
4
4
|
* - extracts XML files, distributes them by session/year
|
|
5
5
|
*/
|
|
6
|
-
import { Session } from "../
|
|
6
|
+
import { Session } from "../other_types/sessions.js";
|
|
7
7
|
import { CommandLineOptions } from "command-line-args";
|
|
8
8
|
type RetrieveCriOptions = CommandLineOptions & {
|
|
9
9
|
commit?: boolean;
|
|
@@ -8,15 +8,15 @@ import fs, { ensureDirSync } from "fs-extra";
|
|
|
8
8
|
import path from "path";
|
|
9
9
|
import StreamZip from "node-stream-zip";
|
|
10
10
|
import * as cheerio from "cheerio";
|
|
11
|
-
import { AGENDA_FOLDER, COMPTES_RENDUS_FOLDER, DATA_ORIGINAL_FOLDER, DATA_TRANSFORMED_FOLDER } from "../loaders.js";
|
|
11
|
+
import { AGENDA_FOLDER, COMPTES_RENDUS_FOLDER, DATA_ORIGINAL_FOLDER, DATA_TRANSFORMED_FOLDER, } from "../server/loaders.js";
|
|
12
12
|
import { assertExistingDirectory, commonOptions } from "./shared/cli_helpers.js";
|
|
13
|
-
import { parseCompteRenduIntervalFromFile, sessionStartYearFromDate } from "../
|
|
13
|
+
import { parseCompteRenduIntervalFromFile, sessionStartYearFromDate } from "../server/seance.js";
|
|
14
14
|
import { extractSommaireBlocks, makeReunionUid } from "../utils/reunion_parsing.js";
|
|
15
|
-
import { getSessionsFromStart, UNDEFINED_SESSION } from "../
|
|
15
|
+
import { getSessionsFromStart, UNDEFINED_SESSION } from "../other_types/sessions.js";
|
|
16
16
|
import { ensureAndClearDir, fetchWithRetry } from "./shared/util.js";
|
|
17
17
|
import { isNoiseBlock, scoreSommaireBlockForEvent } from "../utils/scoring.js";
|
|
18
18
|
import { parseYYYYMMDD } from "../utils/date.js";
|
|
19
|
-
import * as git from "../git.js";
|
|
19
|
+
import * as git from "../server/git.js";
|
|
20
20
|
const optionsDefinitions = [
|
|
21
21
|
...commonOptions,
|
|
22
22
|
{
|