@tricoteuses/assemblee 3.2.16 → 3.3.0
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/cleaners.js +7 -7
- package/lib/index.d.ts +1 -0
- package/lib/index.js +20 -20
- package/lib/{loaders-Bqy18Qs1.js → loaders-DbLMTnJA.js} +152 -152
- package/lib/loaders.js +1 -1
- package/lib/open_data/artifacts.d.ts +38 -0
- package/lib/parsers/index.d.ts +2 -0
- package/lib/parsers/plf/credits.d.ts +2 -0
- package/lib/parsers/plf/credits.test.d.ts +1 -0
- package/lib/parsers/plf/depot.d.ts +2 -0
- package/lib/parsers/plf/depot.test.d.ts +1 -0
- package/lib/parsers/plf/index.d.ts +3 -0
- package/lib/parsers/plf/integration.test.d.ts +1 -0
- package/lib/parsers/plf/later_stage.d.ts +2 -0
- package/lib/parsers/plf/later_stage.test.d.ts +1 -0
- package/lib/parsers/plf/parser_utils.d.ts +11 -0
- package/lib/parsers/plf/test_utils.d.ts +18 -0
- package/lib/parsers/plf/variant_detection.d.ts +2 -0
- package/lib/parsers/plf/variant_detection.test.d.ts +1 -0
- package/lib/parsers/utils.d.ts +7 -0
- package/lib/parsers.js +3726 -3326
- package/lib/schemas/clean/dossiers_legislatifs.d.ts +97 -0
- package/lib/schemas/enriched/dossiers_legislatifs.d.ts +6 -0
- package/lib/scripts/monitor_open_data_updates.d.ts +2 -0
- package/lib/scripts/retrieve_open_data.d.ts +1 -0
- package/lib/{scrutins-D1qWLlRT.js → scrutins-CcBKz4TE.js} +156 -121
- package/package.json +1 -1
|
@@ -831,6 +831,103 @@ export declare const EtudePlfCleanSchema: z.ZodObject<{
|
|
|
831
831
|
ordreCommission: z.ZodString;
|
|
832
832
|
}, z.core.$strip>;
|
|
833
833
|
export type EtudePlfClean = z.infer<typeof EtudePlfCleanSchema>;
|
|
834
|
+
export declare const PlfBudgetTypeSchema: z.ZodEnum<{
|
|
835
|
+
budgetGeneral: "budgetGeneral";
|
|
836
|
+
budgetsAnnexes: "budgetsAnnexes";
|
|
837
|
+
comptesSpeciaux: "comptesSpeciaux";
|
|
838
|
+
}>;
|
|
839
|
+
export type PlfBudgetType = z.infer<typeof PlfBudgetTypeSchema>;
|
|
840
|
+
export declare const PlfLigneSchema: z.ZodObject<{
|
|
841
|
+
libelle: z.ZodString;
|
|
842
|
+
autorisationEngagement: z.ZodOptional<z.ZodNumber>;
|
|
843
|
+
creditPaiement: z.ZodOptional<z.ZodNumber>;
|
|
844
|
+
autorisationEngagementAnnule: z.ZodOptional<z.ZodNumber>;
|
|
845
|
+
creditPaiementAnnule: z.ZodOptional<z.ZodNumber>;
|
|
846
|
+
}, z.core.$strip>;
|
|
847
|
+
export type PlfLigne = z.infer<typeof PlfLigneSchema>;
|
|
848
|
+
export declare const PlfProgrammeSchema: z.ZodObject<{
|
|
849
|
+
libelle: z.ZodString;
|
|
850
|
+
autorisationEngagement: z.ZodOptional<z.ZodNumber>;
|
|
851
|
+
creditPaiement: z.ZodOptional<z.ZodNumber>;
|
|
852
|
+
autorisationEngagementAnnule: z.ZodOptional<z.ZodNumber>;
|
|
853
|
+
creditPaiementAnnule: z.ZodOptional<z.ZodNumber>;
|
|
854
|
+
lignes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
855
|
+
libelle: z.ZodString;
|
|
856
|
+
autorisationEngagement: z.ZodOptional<z.ZodNumber>;
|
|
857
|
+
creditPaiement: z.ZodOptional<z.ZodNumber>;
|
|
858
|
+
autorisationEngagementAnnule: z.ZodOptional<z.ZodNumber>;
|
|
859
|
+
creditPaiementAnnule: z.ZodOptional<z.ZodNumber>;
|
|
860
|
+
}, z.core.$strip>>>;
|
|
861
|
+
}, z.core.$strip>;
|
|
862
|
+
export type PlfProgramme = z.infer<typeof PlfProgrammeSchema>;
|
|
863
|
+
export declare const PlfMissionSchema: z.ZodObject<{
|
|
864
|
+
budgetType: z.ZodEnum<{
|
|
865
|
+
budgetGeneral: "budgetGeneral";
|
|
866
|
+
budgetsAnnexes: "budgetsAnnexes";
|
|
867
|
+
comptesSpeciaux: "comptesSpeciaux";
|
|
868
|
+
}>;
|
|
869
|
+
libelle: z.ZodString;
|
|
870
|
+
autorisationEngagement: z.ZodOptional<z.ZodNumber>;
|
|
871
|
+
creditPaiement: z.ZodOptional<z.ZodNumber>;
|
|
872
|
+
autorisationEngagementAnnule: z.ZodOptional<z.ZodNumber>;
|
|
873
|
+
creditPaiementAnnule: z.ZodOptional<z.ZodNumber>;
|
|
874
|
+
programmes: z.ZodArray<z.ZodObject<{
|
|
875
|
+
libelle: z.ZodString;
|
|
876
|
+
autorisationEngagement: z.ZodOptional<z.ZodNumber>;
|
|
877
|
+
creditPaiement: z.ZodOptional<z.ZodNumber>;
|
|
878
|
+
autorisationEngagementAnnule: z.ZodOptional<z.ZodNumber>;
|
|
879
|
+
creditPaiementAnnule: z.ZodOptional<z.ZodNumber>;
|
|
880
|
+
lignes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
881
|
+
libelle: z.ZodString;
|
|
882
|
+
autorisationEngagement: z.ZodOptional<z.ZodNumber>;
|
|
883
|
+
creditPaiement: z.ZodOptional<z.ZodNumber>;
|
|
884
|
+
autorisationEngagementAnnule: z.ZodOptional<z.ZodNumber>;
|
|
885
|
+
creditPaiementAnnule: z.ZodOptional<z.ZodNumber>;
|
|
886
|
+
}, z.core.$strip>>>;
|
|
887
|
+
}, z.core.$strip>>;
|
|
888
|
+
}, z.core.$strip>;
|
|
889
|
+
export type PlfMission = z.infer<typeof PlfMissionSchema>;
|
|
890
|
+
export declare const PlfCreditsSectionSchema: z.ZodObject<{
|
|
891
|
+
budgetType: z.ZodEnum<{
|
|
892
|
+
budgetGeneral: "budgetGeneral";
|
|
893
|
+
budgetsAnnexes: "budgetsAnnexes";
|
|
894
|
+
comptesSpeciaux: "comptesSpeciaux";
|
|
895
|
+
}>;
|
|
896
|
+
libelle: z.ZodString;
|
|
897
|
+
missions: z.ZodArray<z.ZodObject<{
|
|
898
|
+
budgetType: z.ZodEnum<{
|
|
899
|
+
budgetGeneral: "budgetGeneral";
|
|
900
|
+
budgetsAnnexes: "budgetsAnnexes";
|
|
901
|
+
comptesSpeciaux: "comptesSpeciaux";
|
|
902
|
+
}>;
|
|
903
|
+
libelle: z.ZodString;
|
|
904
|
+
autorisationEngagement: z.ZodOptional<z.ZodNumber>;
|
|
905
|
+
creditPaiement: z.ZodOptional<z.ZodNumber>;
|
|
906
|
+
autorisationEngagementAnnule: z.ZodOptional<z.ZodNumber>;
|
|
907
|
+
creditPaiementAnnule: z.ZodOptional<z.ZodNumber>;
|
|
908
|
+
programmes: z.ZodArray<z.ZodObject<{
|
|
909
|
+
libelle: z.ZodString;
|
|
910
|
+
autorisationEngagement: z.ZodOptional<z.ZodNumber>;
|
|
911
|
+
creditPaiement: z.ZodOptional<z.ZodNumber>;
|
|
912
|
+
autorisationEngagementAnnule: z.ZodOptional<z.ZodNumber>;
|
|
913
|
+
creditPaiementAnnule: z.ZodOptional<z.ZodNumber>;
|
|
914
|
+
lignes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
915
|
+
libelle: z.ZodString;
|
|
916
|
+
autorisationEngagement: z.ZodOptional<z.ZodNumber>;
|
|
917
|
+
creditPaiement: z.ZodOptional<z.ZodNumber>;
|
|
918
|
+
autorisationEngagementAnnule: z.ZodOptional<z.ZodNumber>;
|
|
919
|
+
creditPaiementAnnule: z.ZodOptional<z.ZodNumber>;
|
|
920
|
+
}, z.core.$strip>>>;
|
|
921
|
+
}, z.core.$strip>>;
|
|
922
|
+
}, z.core.$strip>>;
|
|
923
|
+
total: z.ZodOptional<z.ZodObject<{
|
|
924
|
+
autorisationEngagement: z.ZodOptional<z.ZodNumber>;
|
|
925
|
+
creditPaiement: z.ZodOptional<z.ZodNumber>;
|
|
926
|
+
autorisationEngagementAnnule: z.ZodOptional<z.ZodNumber>;
|
|
927
|
+
creditPaiementAnnule: z.ZodOptional<z.ZodNumber>;
|
|
928
|
+
}, z.core.$strip>>;
|
|
929
|
+
}, z.core.$strip>;
|
|
930
|
+
export type PlfCreditsSection = z.infer<typeof PlfCreditsSectionSchema>;
|
|
834
931
|
/**
|
|
835
932
|
* Fam code et libellé clean
|
|
836
933
|
*
|
|
@@ -410,6 +410,12 @@ export declare const SubdivisionEnrichedSchema: z.ZodObject<{
|
|
|
410
410
|
html: z.ZodOptional<z.ZodString>;
|
|
411
411
|
html_avec_liens: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
412
412
|
}, z.core.$strip>>>;
|
|
413
|
+
exposeDesMotifs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
414
|
+
texte: z.ZodOptional<z.ZodString>;
|
|
415
|
+
texte_avec_liens: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
416
|
+
html: z.ZodOptional<z.ZodString>;
|
|
417
|
+
html_avec_liens: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
418
|
+
}, z.core.$strip>>>;
|
|
413
419
|
}, z.core.$strip>;
|
|
414
420
|
export type SubdivisionEnriched = z.infer<typeof SubdivisionEnrichedSchema>;
|
|
415
421
|
/**
|
|
@@ -17,6 +17,8 @@ export interface DatasetState {
|
|
|
17
17
|
}
|
|
18
18
|
export declare function buildMonitoredDatasets(): MonitoredDataset[];
|
|
19
19
|
export declare function isDatasetDue(monitored: MonitoredDataset, datasetState: DatasetState, now: Date): boolean;
|
|
20
|
+
export declare function updatePipelineLabel(monitored: MonitoredDataset): string;
|
|
21
|
+
export declare function checkErrorEvent(monitored: MonitoredDataset, error: unknown): Record<string, unknown>;
|
|
20
22
|
export declare function delayBeforeDeadline(delay: number, deadline: number, now?: number): number;
|
|
21
23
|
export declare function scheduledPipelineIsStale(maxStartDelayMinutes: number, pipelineSource?: string | undefined, pipelineCreatedAt?: string | undefined, now?: number): boolean;
|
|
22
24
|
export {};
|
|
@@ -106,6 +106,7 @@ declare const retrieveOpenDataParser: import('zod-opts').Parser<{
|
|
|
106
106
|
name: "dataDir";
|
|
107
107
|
}]>;
|
|
108
108
|
type Options = ReturnType<typeof retrieveOpenDataParser.parse>;
|
|
109
|
+
export declare function formatParisDateTime(value: string): string;
|
|
109
110
|
export declare function publishDataset(stagedDataPath: string, dataPath: string, partZipPath: string | undefined, zipPath: string): Promise<void>;
|
|
110
111
|
export declare function recoverPublication(dataPath: string): Promise<void>;
|
|
111
112
|
/**
|
|
@@ -1737,55 +1737,90 @@ var io = {
|
|
|
1737
1737
|
missionMinefi: Lo.optional(),
|
|
1738
1738
|
ordreDiqs: l.string(),
|
|
1739
1739
|
ordreCommission: l.string()
|
|
1740
|
+
}), zo = l.enum([
|
|
1741
|
+
"budgetGeneral",
|
|
1742
|
+
"budgetsAnnexes",
|
|
1743
|
+
"comptesSpeciaux"
|
|
1744
|
+
]), Bo = l.object({
|
|
1745
|
+
libelle: l.string(),
|
|
1746
|
+
autorisationEngagement: l.number().optional(),
|
|
1747
|
+
creditPaiement: l.number().optional(),
|
|
1748
|
+
autorisationEngagementAnnule: l.number().optional(),
|
|
1749
|
+
creditPaiementAnnule: l.number().optional()
|
|
1750
|
+
}), Vo = l.object({
|
|
1751
|
+
libelle: l.string(),
|
|
1752
|
+
autorisationEngagement: l.number().optional(),
|
|
1753
|
+
creditPaiement: l.number().optional(),
|
|
1754
|
+
autorisationEngagementAnnule: l.number().optional(),
|
|
1755
|
+
creditPaiementAnnule: l.number().optional(),
|
|
1756
|
+
lignes: l.array(Bo).optional()
|
|
1757
|
+
}), Ho = l.object({
|
|
1758
|
+
budgetType: zo,
|
|
1759
|
+
libelle: l.string(),
|
|
1760
|
+
autorisationEngagement: l.number().optional(),
|
|
1761
|
+
creditPaiement: l.number().optional(),
|
|
1762
|
+
autorisationEngagementAnnule: l.number().optional(),
|
|
1763
|
+
creditPaiementAnnule: l.number().optional(),
|
|
1764
|
+
programmes: l.array(Vo)
|
|
1765
|
+
}), Uo = l.object({
|
|
1766
|
+
budgetType: zo,
|
|
1767
|
+
libelle: l.string(),
|
|
1768
|
+
missions: l.array(Ho),
|
|
1769
|
+
total: l.object({
|
|
1770
|
+
autorisationEngagement: l.number().optional(),
|
|
1771
|
+
creditPaiement: l.number().optional(),
|
|
1772
|
+
autorisationEngagementAnnule: l.number().optional(),
|
|
1773
|
+
creditPaiementAnnule: l.number().optional()
|
|
1774
|
+
}).optional()
|
|
1740
1775
|
}), J = l.object({
|
|
1741
1776
|
famCode: l.string(),
|
|
1742
1777
|
libelle: l.string().optional()
|
|
1743
|
-
}),
|
|
1778
|
+
}), Wo = l.object({
|
|
1744
1779
|
nomCanonique: l.string(),
|
|
1745
1780
|
libelleCourt: l.string().optional()
|
|
1746
|
-
}),
|
|
1781
|
+
}), Go = l.object({
|
|
1747
1782
|
dateOuverture: l.string().optional(),
|
|
1748
1783
|
dateFermeture: l.string().optional()
|
|
1749
|
-
}),
|
|
1784
|
+
}), Ko = l.object({
|
|
1750
1785
|
typeTexte: _n,
|
|
1751
1786
|
texteAssocieRef: l.string()
|
|
1752
|
-
}),
|
|
1787
|
+
}), qo = l.object({
|
|
1753
1788
|
typeJo: yn,
|
|
1754
1789
|
dateJo: l.string(),
|
|
1755
1790
|
numJo: l.string(),
|
|
1756
1791
|
urlLegifrance: l.string().optional(),
|
|
1757
1792
|
referenceNor: l.string().optional()
|
|
1758
|
-
}),
|
|
1793
|
+
}), Jo = l.object({
|
|
1759
1794
|
typeTexteEuropeen: l.string(),
|
|
1760
1795
|
titreTexteEuropeen: l.string()
|
|
1761
|
-
}),
|
|
1796
|
+
}), Yo = l.object({
|
|
1762
1797
|
refJoce: l.string(),
|
|
1763
1798
|
dateJoce: l.string()
|
|
1764
|
-
}),
|
|
1799
|
+
}), Xo = l.object({
|
|
1765
1800
|
typeDoc: xn,
|
|
1766
1801
|
texteRef: l.string(),
|
|
1767
1802
|
titreDoc: l.string(),
|
|
1768
1803
|
urlDoc: l.string()
|
|
1769
|
-
}),
|
|
1804
|
+
}), Y = l.lazy(() => l.object({
|
|
1770
1805
|
xsiType: uo,
|
|
1771
1806
|
uid: o().meta({ description: "Identifiant unique de l'acte législatif" }),
|
|
1772
1807
|
codeActe: an,
|
|
1773
|
-
libelleActe:
|
|
1808
|
+
libelleActe: Wo,
|
|
1774
1809
|
organeRef: l.string().optional(),
|
|
1775
1810
|
dateActe: n(),
|
|
1776
|
-
actesLegislatifs: l.array(
|
|
1811
|
+
actesLegislatifs: l.array(Y).optional(),
|
|
1777
1812
|
anneeDecision: l.string().optional(),
|
|
1778
1813
|
auteurMotion: l.string().optional(),
|
|
1779
1814
|
auteursRefs: l.array(l.string()).optional(),
|
|
1780
1815
|
casSaisine: J.optional(),
|
|
1781
1816
|
codeLoi: l.string().optional(),
|
|
1782
|
-
contributionInternaute:
|
|
1817
|
+
contributionInternaute: Go.optional(),
|
|
1783
1818
|
decision: J.optional(),
|
|
1784
1819
|
depotInitialLectureDefinitiveRef: l.string().optional(),
|
|
1785
1820
|
formuleDecision: l.string().optional(),
|
|
1786
|
-
infoJo:
|
|
1787
|
-
infoJoce:
|
|
1788
|
-
infoJoRect: l.array(
|
|
1821
|
+
infoJo: qo.optional(),
|
|
1822
|
+
infoJoce: Yo.optional(),
|
|
1823
|
+
infoJoRect: l.array(qo).optional(),
|
|
1789
1824
|
initiateur: Po.optional(),
|
|
1790
1825
|
motif: vn.optional(),
|
|
1791
1826
|
numDecision: l.string().optional(),
|
|
@@ -1798,10 +1833,10 @@ var io = {
|
|
|
1798
1833
|
statutConclusion: J.optional(),
|
|
1799
1834
|
texteAdopteRef: l.string().optional(),
|
|
1800
1835
|
texteAssocieRef: l.string().optional(),
|
|
1801
|
-
texteEuropeen:
|
|
1802
|
-
texteExterneAssocie:
|
|
1836
|
+
texteEuropeen: Jo.optional(),
|
|
1837
|
+
texteExterneAssocie: Xo.optional(),
|
|
1803
1838
|
texteLoiRef: l.string().optional(),
|
|
1804
|
-
textesAssocies: l.array(
|
|
1839
|
+
textesAssocies: l.array(Ko).optional(),
|
|
1805
1840
|
titreLoi: l.string().optional(),
|
|
1806
1841
|
typeDeclaration: J.optional(),
|
|
1807
1842
|
typeMotion: J.optional(),
|
|
@@ -1810,7 +1845,7 @@ var io = {
|
|
|
1810
1845
|
urlEcheancierLoi: l.string().optional(),
|
|
1811
1846
|
urlLegifrance: l.string().optional(),
|
|
1812
1847
|
voteRefs: l.array(l.string()).optional()
|
|
1813
|
-
})),
|
|
1848
|
+
})), Zo = l.object({
|
|
1814
1849
|
schemaVersion: l.string().optional(),
|
|
1815
1850
|
xsiType: co.optional(),
|
|
1816
1851
|
uid: o().meta({ description: "Identifiant unique du dossier parlementaire" }),
|
|
@@ -1818,58 +1853,58 @@ var io = {
|
|
|
1818
1853
|
titreDossier: Mo,
|
|
1819
1854
|
procedureParlementaire: K,
|
|
1820
1855
|
initiateur: Po.optional(),
|
|
1821
|
-
actesLegislatifs: l.array(
|
|
1856
|
+
actesLegislatifs: l.array(Y).optional(),
|
|
1822
1857
|
fusionDossier: Fo.optional(),
|
|
1823
1858
|
indexation: q.optional(),
|
|
1824
1859
|
plf: l.array(Ro).optional()
|
|
1825
|
-
}),
|
|
1860
|
+
}), Qo = l.object({
|
|
1826
1861
|
textesLegislatifs: l.array(jo),
|
|
1827
|
-
dossiersParlementaires: l.array(
|
|
1862
|
+
dossiersParlementaires: l.array(Zo)
|
|
1828
1863
|
});
|
|
1829
|
-
function
|
|
1864
|
+
function $o(e) {
|
|
1830
1865
|
let t = JSON.parse(e), n = jo.safeParse(t);
|
|
1831
|
-
if (!n.success) throw Error(
|
|
1866
|
+
if (!n.success) throw Error(as("DocumentClean", n.error, t));
|
|
1832
1867
|
return n.data;
|
|
1833
1868
|
}
|
|
1834
|
-
function
|
|
1835
|
-
let t = JSON.parse(e), n =
|
|
1836
|
-
if (!n.success) throw Error(
|
|
1869
|
+
function es(e) {
|
|
1870
|
+
let t = JSON.parse(e), n = Zo.safeParse(t);
|
|
1871
|
+
if (!n.success) throw Error(as("DossierParlementaireClean", n.error, t));
|
|
1837
1872
|
return n.data;
|
|
1838
1873
|
}
|
|
1839
|
-
function
|
|
1840
|
-
let t = JSON.parse(e), n =
|
|
1841
|
-
if (!n.success) throw Error(
|
|
1874
|
+
function ts(e) {
|
|
1875
|
+
let t = JSON.parse(e), n = Qo.safeParse(t);
|
|
1876
|
+
if (!n.success) throw Error(as("DossiersLegislatifsClean", n.error, t));
|
|
1842
1877
|
return n.data;
|
|
1843
1878
|
}
|
|
1844
|
-
function
|
|
1879
|
+
function ns(e) {
|
|
1845
1880
|
return JSON.stringify(e, null, 2);
|
|
1846
1881
|
}
|
|
1847
|
-
function
|
|
1882
|
+
function rs(e) {
|
|
1848
1883
|
return JSON.stringify(e, null, 2);
|
|
1849
1884
|
}
|
|
1850
|
-
function
|
|
1885
|
+
function is(e) {
|
|
1851
1886
|
return JSON.stringify(e, null, 2);
|
|
1852
1887
|
}
|
|
1853
|
-
function
|
|
1888
|
+
function as(e, t, n) {
|
|
1854
1889
|
return s(e, t, n);
|
|
1855
1890
|
}
|
|
1856
|
-
var
|
|
1857
|
-
toDocument:
|
|
1858
|
-
documentToJson:
|
|
1859
|
-
toDossierParlementaire:
|
|
1860
|
-
dossierParlementaireToJson:
|
|
1861
|
-
toDossiersLegislatifs:
|
|
1862
|
-
dossiersLegislatifsToJson:
|
|
1863
|
-
},
|
|
1891
|
+
var os = {
|
|
1892
|
+
toDocument: $o,
|
|
1893
|
+
documentToJson: ns,
|
|
1894
|
+
toDossierParlementaire: es,
|
|
1895
|
+
dossierParlementaireToJson: rs,
|
|
1896
|
+
toDossiersLegislatifs: ts,
|
|
1897
|
+
dossiersLegislatifsToJson: is
|
|
1898
|
+
}, ss = [
|
|
1864
1899
|
"JO_QUESTION",
|
|
1865
1900
|
"JO_LOI_DECRET",
|
|
1866
1901
|
"JO_DEBAT"
|
|
1867
|
-
],
|
|
1902
|
+
], cs = l.enum(ss), X = l.preprocess((e) => {
|
|
1868
1903
|
if (e == null) return;
|
|
1869
1904
|
if (typeof e != "string") return e;
|
|
1870
1905
|
let t = e.trim();
|
|
1871
1906
|
return t === "" ? void 0 : t;
|
|
1872
|
-
}, l.string().optional()),
|
|
1907
|
+
}, l.string().optional()), ls = l.object({
|
|
1873
1908
|
numero: l.string().meta({ description: "Numéro de la question." }),
|
|
1874
1909
|
regime: l.string().meta({ description: "Régime." }),
|
|
1875
1910
|
legislature: l.string().meta({ description: "Législature." })
|
|
@@ -1877,138 +1912,138 @@ var ts = {
|
|
|
1877
1912
|
organeRef: e().meta({ description: "Référence à l'organe" }),
|
|
1878
1913
|
abrege: l.string().meta({ description: "Abrégé." }),
|
|
1879
1914
|
developpe: l.string().meta({ description: "Développé." })
|
|
1880
|
-
}),
|
|
1915
|
+
}), us = l.object({
|
|
1881
1916
|
acteurRef: r().meta({ description: "Référence à l'acteur" }),
|
|
1882
1917
|
mandatRef: l.string().meta({ description: "Identifiant unique du {@link Mandat | mandat}." })
|
|
1883
|
-
}),
|
|
1884
|
-
identite:
|
|
1918
|
+
}), ds = l.object({
|
|
1919
|
+
identite: us.meta({ description: "Identité de l'auteur." }),
|
|
1885
1920
|
groupe: Z.meta({ description: "Groupe politique de l'auteur." })
|
|
1886
1921
|
}), Q = l.object({
|
|
1887
|
-
typeJO:
|
|
1922
|
+
typeJO: cs.optional().meta({ description: "Type de Journal Officiel." }),
|
|
1888
1923
|
dateJO: X.meta({ description: "Date de publication au Journal Officiel." }),
|
|
1889
1924
|
pageJO: X.meta({ description: "Page du Journal Officiel." }),
|
|
1890
1925
|
numJO: X.meta({ description: "Numéro du Journal Officiel." }),
|
|
1891
1926
|
urlLegifrance: X.meta({ description: "URL du texte promulgué sur le site https://www.legifrance.gouv.fr/" }),
|
|
1892
1927
|
referenceNOR: X.meta({ description: "Numéro {@link https://fr.wikipedia.org/wiki/Syst%C3%A8me_NOR | NOR} attribué au texte promulgué." })
|
|
1893
|
-
}),
|
|
1928
|
+
}), fs = l.object({ analyse: l.string().optional().meta({ description: "Analyse." }) }), ps = l.object({
|
|
1894
1929
|
rubrique: l.string().optional().meta({ description: "Rubrique." }),
|
|
1895
|
-
analyses:
|
|
1896
|
-
}),
|
|
1930
|
+
analyses: fs.optional().meta({ description: "Analyses." })
|
|
1931
|
+
}), ms = l.object({
|
|
1897
1932
|
infoJO: Q.meta({ description: "Informations Journal Officiel." }),
|
|
1898
1933
|
denomination: Z.meta({ description: "Dénomination." })
|
|
1899
|
-
}),
|
|
1934
|
+
}), hs = l.object({ minAttrib: t(ms).meta({ description: "Attributions ministérielles." }) }), gs = l.object({
|
|
1900
1935
|
infoJO: Q.meta({ description: "Informations Journal Officiel." }),
|
|
1901
1936
|
texte: l.string().optional().meta({ description: "Texte de la question ou de la réponse." }),
|
|
1902
1937
|
erratum: l.string().optional().meta({ description: "Erratum." })
|
|
1903
|
-
}),
|
|
1938
|
+
}), _s = l.object({ texteQuestion: t(gs).meta({ description: "Textes de la question." }) }), vs = l.object({ texteReponse: t(gs).meta({ description: "Textes de la réponse." }) }), ys = l.object({
|
|
1904
1939
|
codeCloture: l.string().meta({ description: "Code de la clôture." }),
|
|
1905
1940
|
libelleCloture: l.string().meta({ description: "Libellé de la clôture." }),
|
|
1906
1941
|
dateCloture: X.meta({ description: "Date de clôture." }),
|
|
1907
1942
|
infoJO: Q.nullish().meta({ description: "Informations Journal Officiel liées à la clôture." })
|
|
1908
|
-
}),
|
|
1943
|
+
}), bs = l.object({
|
|
1909
1944
|
dateDepotSignal: l.string().meta({ description: "Date de dépôt du signalement." }),
|
|
1910
1945
|
infoJO: Q.meta({ description: "Informations Journal Officiel du signalement." })
|
|
1911
|
-
}),
|
|
1946
|
+
}), xs = l.object({ infoJO: Q.meta({ description: "Informations Journal Officiel." }) }), Ss = l.object({ renouvellement: l.array(xs).meta({ description: "Renouvellements." }) }), Cs = l.object({
|
|
1912
1947
|
schemaVersion: l.string().optional().meta({ description: "Version du schéma." }),
|
|
1913
1948
|
"@xsi:type": Er.optional().meta({ description: "Type de question (QuestionEcrite_Type, QuestionGouvernement_Type, QuestionOrale_Type)." }),
|
|
1914
1949
|
uid: o().meta({ description: "Identifiant unique de la question" }),
|
|
1915
|
-
identifiant:
|
|
1950
|
+
identifiant: ls.meta({ description: "Identifiant." }),
|
|
1916
1951
|
type: Or.meta({ description: "Type de question abrégé (QE, QG, QOSD)." }),
|
|
1917
|
-
indexationAN:
|
|
1918
|
-
auteur:
|
|
1952
|
+
indexationAN: ps.optional().meta({ description: "Indexation Assemblée Nationale." }),
|
|
1953
|
+
auteur: ds.meta({ description: "Auteur de la question." }),
|
|
1919
1954
|
minInt: Z.meta({ description: "Ministère interrogé." }),
|
|
1920
|
-
minAttribs:
|
|
1921
|
-
textesQuestion:
|
|
1922
|
-
textesReponse:
|
|
1923
|
-
cloture:
|
|
1924
|
-
signalement:
|
|
1925
|
-
renouvellements:
|
|
1926
|
-
}),
|
|
1927
|
-
function
|
|
1928
|
-
let t = JSON.parse(e), n =
|
|
1929
|
-
if (!n.success) throw Error(
|
|
1955
|
+
minAttribs: hs.meta({ description: "Attributions ministérielles." }),
|
|
1956
|
+
textesQuestion: _s.optional().meta({ description: "Textes de la question." }),
|
|
1957
|
+
textesReponse: vs.optional().meta({ description: "Textes de la réponse." }),
|
|
1958
|
+
cloture: ys.optional().meta({ description: "Clôture de la question." }),
|
|
1959
|
+
signalement: bs.optional().meta({ description: "Signalement." }),
|
|
1960
|
+
renouvellements: Ss.optional().meta({ description: "Renouvellements." })
|
|
1961
|
+
}), ws = l.object({ questions: l.array(Cs).meta({ description: "Liste des questions." }) });
|
|
1962
|
+
function Ts(e) {
|
|
1963
|
+
let t = JSON.parse(e), n = Cs.safeParse(t);
|
|
1964
|
+
if (!n.success) throw Error(ks("QuestionClean", n.error, t));
|
|
1930
1965
|
return n.data;
|
|
1931
1966
|
}
|
|
1932
|
-
function
|
|
1933
|
-
let t = JSON.parse(e), n =
|
|
1934
|
-
if (!n.success) throw Error(
|
|
1967
|
+
function Es(e) {
|
|
1968
|
+
let t = JSON.parse(e), n = ws.safeParse(t);
|
|
1969
|
+
if (!n.success) throw Error(ks("QuestionsClean", n.error, t));
|
|
1935
1970
|
return n.data;
|
|
1936
1971
|
}
|
|
1937
|
-
function
|
|
1972
|
+
function Ds(e) {
|
|
1938
1973
|
return JSON.stringify(e, null, 2);
|
|
1939
1974
|
}
|
|
1940
|
-
function
|
|
1975
|
+
function Os(e) {
|
|
1941
1976
|
return JSON.stringify(e, null, 2);
|
|
1942
1977
|
}
|
|
1943
|
-
function
|
|
1978
|
+
function ks(e, t, n) {
|
|
1944
1979
|
return s(e, t, n);
|
|
1945
1980
|
}
|
|
1946
|
-
var
|
|
1947
|
-
toQuestion:
|
|
1948
|
-
questionToJson:
|
|
1949
|
-
toQuestions:
|
|
1950
|
-
questionsToJson:
|
|
1951
|
-
},
|
|
1981
|
+
var As = {
|
|
1982
|
+
toQuestion: Ts,
|
|
1983
|
+
questionToJson: Ds,
|
|
1984
|
+
toQuestions: Es,
|
|
1985
|
+
questionsToJson: Os
|
|
1986
|
+
}, js = l.object({ texte: l.string().optional() }), Ms = l.object({
|
|
1952
1987
|
libelle: l.string(),
|
|
1953
1988
|
dossierRef: l.string()
|
|
1954
|
-
}),
|
|
1989
|
+
}), Ns = l.object({
|
|
1955
1990
|
libelle: l.string(),
|
|
1956
|
-
dossierLegislatif:
|
|
1957
|
-
}),
|
|
1991
|
+
dossierLegislatif: Ms.optional()
|
|
1992
|
+
}), Ps = l.object({
|
|
1958
1993
|
code: Zr,
|
|
1959
1994
|
libelle: L
|
|
1960
|
-
}),
|
|
1995
|
+
}), Fs = l.object({
|
|
1961
1996
|
codeTypeVote: $r,
|
|
1962
1997
|
libelleTypeVote: ni,
|
|
1963
1998
|
typeMajorite: ui.meta({ description: "Indication textuelle de la majorité requise. Les formulations observées sont hétérogènes et doivent être interprétées avec le contexte du scrutin (type de vote, suffrages exprimés, nombre requis), plutôt que comme un enum métier parfaitement fiable." })
|
|
1964
|
-
}),
|
|
1999
|
+
}), Is = l.object({
|
|
1965
2000
|
pour: l.string().meta({ description: "Nombre total de votes pour." }),
|
|
1966
2001
|
contre: l.string().meta({ description: "Nombre total de votes contre." }),
|
|
1967
2002
|
abstentions: l.string().optional().meta({ description: "Nombre total d'abstentions." }),
|
|
1968
2003
|
nonVotants: l.string().optional().meta({ description: "Nombre total de non votants" }),
|
|
1969
2004
|
nonVotantsVolontaires: l.string().optional().meta({ description: "Nombre total de non votants volontaires." })
|
|
1970
|
-
}),
|
|
2005
|
+
}), Ls = l.object({
|
|
1971
2006
|
nombreVotants: l.string().meta({ description: "Nombre de votants, c'est à dire de {@link http://www2.assemblee-nationale.fr/decouvrir-l-assemblee/role-et-pouvoirs-de-l-assemblee-nationale/les-fonctions-de-l-assemblee-nationale/les-fonctions-legislatives/les-votes-a-l-assemblee-nationale | sièges occupés dans l'hémicycle}." }),
|
|
1972
2007
|
suffragesExprimes: l.string().meta({ description: "Nombre de suffrages exprimés." }),
|
|
1973
2008
|
nbrSuffragesRequis: l.string().meta({ description: "Nombre de suffrages requis, le {@link http://www2.assemblee-nationale.fr/decouvrir-l-assemblee/role-et-pouvoirs-de-l-assemblee-nationale/les-fonctions-de-l-assemblee-nationale/les-fonctions-legislatives/les-votes-a-l-assemblee-nationale | cas échéant}." }),
|
|
1974
2009
|
annonce: L,
|
|
1975
|
-
decompte:
|
|
2010
|
+
decompte: Is
|
|
1976
2011
|
}), $ = l.object({
|
|
1977
2012
|
acteurRef: r().meta({ description: "Référence à l'acteur votant" }),
|
|
1978
2013
|
mandatRef: l.string(),
|
|
1979
2014
|
parDelegation: l.boolean().optional(),
|
|
1980
2015
|
numPlace: l.number().optional(),
|
|
1981
2016
|
causePositionVote: Yr.optional().meta({ description: "Motif réglementaire d'une non-participation au vote. Ce champ n'apparait en pratique que pour les non-votants du décompte nominatif." })
|
|
1982
|
-
}),
|
|
2017
|
+
}), Rs = l.object({
|
|
1983
2018
|
nonVotants: l.array($).optional(),
|
|
1984
2019
|
pour: l.array($).optional(),
|
|
1985
2020
|
contre: l.array($).optional(),
|
|
1986
2021
|
abstentions: l.array($).optional()
|
|
1987
|
-
}),
|
|
2022
|
+
}), zs = l.object({
|
|
1988
2023
|
positionMajoritaire: ci.meta({ description: "Position majoritaire du groupe. Dans les jeux observés, en cas d'égalité entre pour et contre, la valeur est généralement 'pour', sauf quand les abstentions sont au moins aussi nombreuses que les votes pour." }),
|
|
1989
|
-
decompteVoix:
|
|
1990
|
-
decompteNominatif:
|
|
1991
|
-
}),
|
|
2024
|
+
decompteVoix: Is,
|
|
2025
|
+
decompteNominatif: Rs
|
|
2026
|
+
}), Bs = l.object({
|
|
1992
2027
|
organeRef: e(),
|
|
1993
2028
|
nombreMembresGroupe: l.string(),
|
|
1994
|
-
vote:
|
|
1995
|
-
}),
|
|
2029
|
+
vote: zs
|
|
2030
|
+
}), Vs = l.object({
|
|
1996
2031
|
organeRef: e(),
|
|
1997
|
-
groupes: l.array(
|
|
1998
|
-
}),
|
|
2032
|
+
groupes: l.array(Bs)
|
|
2033
|
+
}), Hs = l.object({
|
|
1999
2034
|
nonVotants: l.array($).optional(),
|
|
2000
2035
|
pour: l.array($).optional(),
|
|
2001
2036
|
contre: l.array($).optional(),
|
|
2002
2037
|
abstentions: l.array($).optional(),
|
|
2003
2038
|
nonVotantsVolontaires: l.array($).optional()
|
|
2004
|
-
}),
|
|
2039
|
+
}), Us = l.object({
|
|
2005
2040
|
nonVotants: l.array($).optional(),
|
|
2006
2041
|
pour: l.array($).optional(),
|
|
2007
2042
|
contre: l.array($).optional(),
|
|
2008
2043
|
abstentions: l.array($).optional(),
|
|
2009
2044
|
nonVotantsVolontaires: l.array($).optional(),
|
|
2010
|
-
dysfonctionnement:
|
|
2011
|
-
}),
|
|
2045
|
+
dysfonctionnement: Hs.optional()
|
|
2046
|
+
}), Ws = l.object({
|
|
2012
2047
|
schemaVersion: l.string().optional(),
|
|
2013
2048
|
uid: o(),
|
|
2014
2049
|
numero: l.string().meta({ description: "Numéro unique du vote, relativement à la législature, débutant par 1 et par incrément de 1. On le retrouve aussi à la fin de l'identifiant unique du vote (uid)." }),
|
|
@@ -2018,41 +2053,41 @@ var Ts = {
|
|
|
2018
2053
|
seanceRef: l.string().meta({ description: "Identifiant unique (uid) de l'entrée de l'{@link Reunion | agenda} correspondant au moment ou le vote a lieu." }),
|
|
2019
2054
|
dateScrutin: i().meta({ description: "Date à laquelle le vote a eu lieu." }),
|
|
2020
2055
|
quantiemeJourSeance: l.string().meta({ description: "Numéro de la séance dans la journée." }),
|
|
2021
|
-
typeVote:
|
|
2022
|
-
sort:
|
|
2056
|
+
typeVote: Fs,
|
|
2057
|
+
sort: Ps,
|
|
2023
2058
|
titre: l.string().meta({ description: "Objet du vote." }),
|
|
2024
|
-
demandeur:
|
|
2025
|
-
objet:
|
|
2059
|
+
demandeur: js,
|
|
2060
|
+
objet: Ns,
|
|
2026
2061
|
modePublicationDesVotes: oi.meta({ description: "La signification de ce champ n'est pas définie." }),
|
|
2027
|
-
syntheseVote:
|
|
2028
|
-
ventilationVotes:
|
|
2029
|
-
miseAuPoint:
|
|
2062
|
+
syntheseVote: Ls,
|
|
2063
|
+
ventilationVotes: Vs,
|
|
2064
|
+
miseAuPoint: Us.optional(),
|
|
2030
2065
|
lieuVote: ii.optional()
|
|
2031
|
-
}),
|
|
2032
|
-
function
|
|
2033
|
-
let t = JSON.parse(e), n =
|
|
2034
|
-
if (!n.success) throw Error(
|
|
2066
|
+
}), Gs = l.object({ scrutins: l.array(Ws) });
|
|
2067
|
+
function Ks(e) {
|
|
2068
|
+
let t = JSON.parse(e), n = Ws.safeParse(t);
|
|
2069
|
+
if (!n.success) throw Error(Xs("ScrutinClean", n.error, t));
|
|
2035
2070
|
return n.data;
|
|
2036
2071
|
}
|
|
2037
|
-
function
|
|
2038
|
-
let t = JSON.parse(e), n =
|
|
2039
|
-
if (!n.success) throw Error(
|
|
2072
|
+
function qs(e) {
|
|
2073
|
+
let t = JSON.parse(e), n = Gs.safeParse(t);
|
|
2074
|
+
if (!n.success) throw Error(Xs("ScrutinsClean", n.error, t));
|
|
2040
2075
|
return n.data;
|
|
2041
2076
|
}
|
|
2042
|
-
function
|
|
2077
|
+
function Js(e) {
|
|
2043
2078
|
return JSON.stringify(e, null, 2);
|
|
2044
2079
|
}
|
|
2045
|
-
function
|
|
2080
|
+
function Ys(e) {
|
|
2046
2081
|
return JSON.stringify(e, null, 2);
|
|
2047
2082
|
}
|
|
2048
|
-
function
|
|
2083
|
+
function Xs(e, t, n) {
|
|
2049
2084
|
return s(e, t, n);
|
|
2050
2085
|
}
|
|
2051
|
-
var
|
|
2052
|
-
toScrutin:
|
|
2053
|
-
scrutinToJson:
|
|
2054
|
-
toScrutins:
|
|
2055
|
-
scrutinsToJson:
|
|
2086
|
+
var Zs = {
|
|
2087
|
+
toScrutin: Ks,
|
|
2088
|
+
scrutinToJson: Js,
|
|
2089
|
+
toScrutins: qs,
|
|
2090
|
+
scrutinsToJson: Ys
|
|
2056
2091
|
};
|
|
2057
2092
|
//#endregion
|
|
2058
|
-
export { Ro as $,
|
|
2093
|
+
export { Ro as $, si as $n, me as $r, wa as $t, Ss as A, ea as An, ut as Ar, Za as At, yo as B, L as Bn, m as Br, G as Bt, ps as C, ia as Cn, Ze as Cr, Co as Ct, Cs as D, ta as Dn, at as Dr, lo as Dt, hs as E, ra as En, rt as Er, _o as Et, ss as F, Pi as Fn, u as Fr, U as Ft, Go as G, ui as Gn, ie as Gr, Sa as Gt, mo as H, ii as Hn, g as Hr, Ja as Ht, Y as I, Fi as In, f as Ir, Ua as It, ko as J, Qr as Jn, se as Jr, Da as Jt, bo as K, Jr as Kn, ne as Kr, Ta as Kt, Oo as L, Yr as Ln, ce as Lr, W as Lt, gs as M, Mi as Mn, ht as Mr, io as Mt, _s as N, Ni as Nn, d as Nr, Ga as Nt, As as O, Hi as On, ot as Or, ao as Ot, vs as P, Li as Pn, ae as Pr, Xa as Pt, os as Q, ai as Qn, pe as Qr, Oa as Qt, Do as R, Zr as Rn, p as Rr, Ka as Rt, us as S, z as Sn, pt as Sr, Xo as St, ms as T, Ui as Tn, tt as Tr, Mo as Tt, Eo as U, oi as Un, _ as Ur, Ha as Ut, ho as V, ni as Vn, h as Vr, H as Vt, To as W, ci as Wn, re as Wr, xa as Wt, jo as X, ti as Xn, ue as Xr, Na as Xt, Ao as Y, ei as Yn, le as Yr, Aa as Yt, Zo as Z, ri as Zn, fe as Zr, Pa as Zt, fs as _, zi as _n, st as _r, K as _t, Hs as a, Fa as an, Dr as ar, qo as at, Z as b, Zi as bn, x as br, Ko as bt, Ws as c, $i as cn, tn as cr, Po as ct, Ls as d, aa as dn, mt as dr, xo as dt, he as ei, ka as en, li as er, J as et, Fs as f, Yi as fn, Qe as fr, zo as ft, zs as g, Vi as gn, b as gr, Vo as gt, $ as h, Ji as hn, it as hr, Ho as ht, Ms as i, Ca as in, Tr as ir, q as it, bs as j, Ii as jn, ft as jr, qa as jt, xs as k, Ki as kn, ct as kr, so as kt, Zs as l, ga as ln, Kt as lr, Wo as lt, Bs as m, oa as mn, nt as mr, Bo as mt, Is as n, te as ni, ja as nn, Er as nr, Fo as nt, Us as o, _a as on, an as or, Yo as ot, Vs as p, na as pn, et as pr, Uo as pt, go as q, Xr as qn, oe as qr, Ea as qt, js as r, ba as rn, Or as rr, So as rt, Ns as s, ya as sn, rn as sr, No as st, Rs as t, ee as ti, Ma as tn, Kr as tr, po as tt, Ps as u, Wi as un, Gt as ur, Lo as ut, ds as v, Bi as vn, lt as vr, Io as vt, Q as w, Qi as wn, $e as wr, wo as wt, ls as x, Xi as xn, gt as xr, Jo as xt, ys as y, Gi as yn, dt as yr, fo as yt, vo as z, $r as zn, de as zr, Ya as zt };
|