@tricoteuses/assemblee 3.0.5 → 3.0.7
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/{amendements-BUdzERgg.js → amendements-Cd3JcAtS.js} +1 -1
- package/lib/{amendements-BKxlNgbH.js → amendements-CusGbzsz.js} +1 -66
- package/lib/cleaners.js +3 -3
- package/lib/index.js +3 -3
- package/lib/{loaders-Ch211Vc0.js → loaders-BnP5p7N2.js} +1510 -1482
- package/lib/loaders.js +2 -2
- package/lib/parsers.js +5459 -5402
- package/lib/{questions-DhG4JHWF.js → questions-BwsFy7G_.js} +1 -1
- package/lib/schemas/clean/debats.d.ts +29 -29
- package/lib/schemas/clean/questions.d.ts +131 -131
- package/lib/schemas/enriched/questions.d.ts +114 -114
- package/package.json +13 -13
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import r from "fs-extra";
|
|
2
|
-
import
|
|
2
|
+
import re from "node:assert";
|
|
3
3
|
import o from "node:path";
|
|
4
4
|
import "glob";
|
|
5
5
|
import "node:fs/promises";
|
|
6
|
-
import { getChangedFilesSinceCommit as
|
|
6
|
+
import { getChangedFilesSinceCommit as He } from "./git.js";
|
|
7
7
|
import { z as e } from "zod";
|
|
8
|
-
import { E as _, F as
|
|
9
|
-
import { T as
|
|
8
|
+
import { E as _, F as d, G as T, H as P, I as $, J as j, K as C, L as _e, B as Oe } from "./amendements-CusGbzsz.js";
|
|
9
|
+
import { T as Tn, Q as En, D as Pn } from "./questions-BwsFy7G_.js";
|
|
10
10
|
var l = /* @__PURE__ */ ((t) => (t[t.Quatorze = 14] = "Quatorze", t[t.Quinze = 15] = "Quinze", t[t.Seize = 16] = "Seize", t[t.DixSept = 17] = "DixSept", t[t.DixHuit = 18] = "DixHuit", t[t.All = 0] = "All", t))(l || {});
|
|
11
|
-
const
|
|
11
|
+
const vn = [
|
|
12
12
|
/**
|
|
13
13
|
* Assemblée parlementaire internationale
|
|
14
14
|
*/
|
|
@@ -157,7 +157,7 @@ const En = [
|
|
|
157
157
|
* Sénat
|
|
158
158
|
*/
|
|
159
159
|
"SENAT"
|
|
160
|
-
],
|
|
160
|
+
], le = e.enum(vn), Mn = ["M.", "Mme"], K = e.enum(Mn).meta({ description: "Civilité" }), Ln = ["H", "M", "O", "T"], et = e.enum(Ln), wn = [
|
|
161
161
|
"Ain",
|
|
162
162
|
"Aisne",
|
|
163
163
|
"Allier",
|
|
@@ -270,7 +270,7 @@ const En = [
|
|
|
270
270
|
"Wallis-et-Futuna",
|
|
271
271
|
"Yonne",
|
|
272
272
|
"Yvelines"
|
|
273
|
-
],
|
|
273
|
+
], Y = e.enum(wn), xn = [
|
|
274
274
|
"Agriculteurs exploitants",
|
|
275
275
|
"Artisans, commerçants, chefs d'entreprises",
|
|
276
276
|
"Artisans, commerçants et chefs d'entreprise",
|
|
@@ -282,7 +282,7 @@ const En = [
|
|
|
282
282
|
"Professions Intermédiaires",
|
|
283
283
|
"Retraités",
|
|
284
284
|
"Sans profession déclarée"
|
|
285
|
-
],
|
|
285
|
+
], tt = e.enum(xn).meta({ description: "Famille socio professionelle de l'INSEE." }), Vn = [
|
|
286
286
|
"Auvergne-Rhône-Alpes",
|
|
287
287
|
"Bourgogne-Franche-Comté",
|
|
288
288
|
"Bretagne",
|
|
@@ -307,280 +307,280 @@ const En = [
|
|
|
307
307
|
"Saint-Barthélemy et Saint-Martin",
|
|
308
308
|
"Saint-Pierre-et-Miquelon",
|
|
309
309
|
"Wallis-et-Futuna"
|
|
310
|
-
],
|
|
310
|
+
], ge = e.enum(Vn), Fn = [
|
|
311
311
|
"MandatAvecSuppleant_Type",
|
|
312
312
|
"MandatMission_Type",
|
|
313
313
|
"MandatParlementaire_type",
|
|
314
314
|
"MandatSimple_Type"
|
|
315
|
-
],
|
|
315
|
+
], nt = e.enum(Fn), qn = [
|
|
316
316
|
"GroupePolitique_type",
|
|
317
317
|
"OrganeCirconscription_type",
|
|
318
318
|
"OrganeExterne_Type",
|
|
319
319
|
"OrganeExtraParlementaire_type",
|
|
320
320
|
"OrganeParlementaireInternational",
|
|
321
321
|
"OrganeParlementaire_Type"
|
|
322
|
-
],
|
|
322
|
+
], Ne = e.enum(qn), Jn = [
|
|
323
323
|
"Majoritaire",
|
|
324
324
|
"Minoritaire",
|
|
325
325
|
"Opposition"
|
|
326
|
-
],
|
|
326
|
+
], Re = e.enum(Jn).meta({
|
|
327
327
|
description: "Position politique, uniquement pour les groupes politiques (dont le codeType est égal à GP)."
|
|
328
|
-
}),
|
|
328
|
+
}), Xn = [
|
|
329
329
|
"Assemblée consultative provisoire",
|
|
330
330
|
"Assemblées nationales constituantes",
|
|
331
331
|
"3ème République",
|
|
332
332
|
"4ème République",
|
|
333
333
|
"5ème République"
|
|
334
|
-
],
|
|
334
|
+
], De = e.enum(Xn).meta({
|
|
335
335
|
description: "Nom du régime politique républicain sous lequel l'organe a été créé. Le 20 aout 1944 le régime de vichy est remplacé par l'assemblée consultative provisoire. Le 21 octobre 1945 une assemblée constituante est créée et sera remplacée par la {@link https://fr.wikipedia.org/wiki/Quatri%C3%A8me_R%C3%A9publique_(France) | 4ème République} le 27 octobre 1946."
|
|
336
|
-
}),
|
|
336
|
+
}), $n = [
|
|
337
337
|
"Collectivités d'outre-mer et Nouvelle-Calédonie",
|
|
338
338
|
"Dom",
|
|
339
339
|
"Français établis hors de France",
|
|
340
340
|
"Métropolitain"
|
|
341
|
-
],
|
|
341
|
+
], fe = e.enum($n).meta({
|
|
342
342
|
description: "Type de territoire de la circonscription du député ({@link https://fr.wikipedia.org/wiki/R%C3%A9gion_fran%C3%A7aise | Métropolitain}, {@link https://fr.wikipedia.org/wiki/D%C3%A9partement_et_r%C3%A9gion_d%27outre-mer | Dom}, {@link https://fr.wikipedia.org/wiki/Collectivit%C3%A9_d%27outre-mer | Collectivités d'outre-mer et Nouvelle-Calédonie} ou {@link https://fr.wikipedia.org/wiki/Fran%C3%A7ais_%C3%A9tablis_hors_de_France | Français établis hors de France})"
|
|
343
|
-
}),
|
|
343
|
+
}), Un = ["IdActeur_type"], Bn = e.enum(Un), U = e.object({
|
|
344
344
|
"@xmlns:xsi": e.string(),
|
|
345
345
|
"@xsi:nil": e.string()
|
|
346
|
-
}),
|
|
346
|
+
}), it = e.object({
|
|
347
347
|
"@xmlns:xsi": e.string().optional(),
|
|
348
|
-
"@xsi:type":
|
|
348
|
+
"@xsi:type": Bn,
|
|
349
349
|
"#text": e.string()
|
|
350
|
-
}),
|
|
351
|
-
civ:
|
|
350
|
+
}), Qn = e.object({
|
|
351
|
+
civ: K,
|
|
352
352
|
prenom: e.string(),
|
|
353
353
|
nom: e.string(),
|
|
354
354
|
alpha: e.string(),
|
|
355
355
|
trigramme: e.union([U, e.string()]).nullable().optional()
|
|
356
|
-
}),
|
|
356
|
+
}), kn = e.object({
|
|
357
357
|
dateNais: e.union([U, _()]).nullable(),
|
|
358
358
|
villeNais: e.union([U, e.string()]).nullable().optional(),
|
|
359
|
-
depNais: e.union([U,
|
|
359
|
+
depNais: e.union([U, Y]).nullable().optional(),
|
|
360
360
|
paysNais: e.union([U, e.string()]).nullable().optional()
|
|
361
|
-
}),
|
|
362
|
-
ident:
|
|
363
|
-
infoNaissance:
|
|
361
|
+
}), ot = e.object({
|
|
362
|
+
ident: Qn,
|
|
363
|
+
infoNaissance: kn.optional(),
|
|
364
364
|
dateDeces: e.union([U, _()]).nullable()
|
|
365
|
-
}),
|
|
365
|
+
}), zn = e.object({
|
|
366
366
|
catSocPro: e.union([U, e.string()]).nullable().optional(),
|
|
367
|
-
famSocPro: e.union([U,
|
|
368
|
-
}),
|
|
367
|
+
famSocPro: e.union([U, tt]).nullable().optional()
|
|
368
|
+
}), Gn = e.object({
|
|
369
369
|
libelleCourant: e.union([U, e.string()]).nullable().optional(),
|
|
370
|
-
socProcINSEE:
|
|
371
|
-
}),
|
|
372
|
-
adresse:
|
|
370
|
+
socProcINSEE: zn.optional()
|
|
371
|
+
}), Wn = e.object({
|
|
372
|
+
adresse: d(e.record(e.string(), e.string().nullable())).optional(),
|
|
373
373
|
"@xmlns:xsi": e.string().optional(),
|
|
374
374
|
"@xsi:nil": e.string().optional()
|
|
375
|
-
}),
|
|
375
|
+
}), Zn = e.object({
|
|
376
376
|
codeQualite: e.string().nullable(),
|
|
377
377
|
libQualite: e.string(),
|
|
378
378
|
libQualiteSex: e.string().nullable()
|
|
379
|
-
}),
|
|
380
|
-
organeRef:
|
|
381
|
-
}),
|
|
379
|
+
}), Hn = e.object({
|
|
380
|
+
organeRef: d(T())
|
|
381
|
+
}), Kn = e.object({
|
|
382
382
|
dateDebut: $(),
|
|
383
383
|
dateFin: _().nullable(),
|
|
384
384
|
suppleantRef: P()
|
|
385
|
-
}),
|
|
386
|
-
suppleant:
|
|
387
|
-
}),
|
|
388
|
-
region:
|
|
389
|
-
regionType:
|
|
390
|
-
departement:
|
|
385
|
+
}), Yn = e.object({
|
|
386
|
+
suppleant: Kn
|
|
387
|
+
}), ei = e.object({
|
|
388
|
+
region: ge.nullable(),
|
|
389
|
+
regionType: fe.nullable(),
|
|
390
|
+
departement: Y.nullable(),
|
|
391
391
|
numDepartement: e.string().nullable(),
|
|
392
392
|
numCirco: e.string().nullable()
|
|
393
|
-
}),
|
|
394
|
-
lieu:
|
|
393
|
+
}), ti = e.object({
|
|
394
|
+
lieu: ei,
|
|
395
395
|
causeMandat: e.string().nullable(),
|
|
396
396
|
refCirconscription: e.string().nullable().optional()
|
|
397
|
-
}),
|
|
398
|
-
qualite:
|
|
397
|
+
}), ni = e.object({
|
|
398
|
+
qualite: K.nullable(),
|
|
399
399
|
prenom: e.string(),
|
|
400
400
|
nom: e.string(),
|
|
401
401
|
dateDebut: e.null(),
|
|
402
402
|
dateFin: e.null()
|
|
403
|
-
}), ti = e.object({
|
|
404
|
-
collaborateur: C(ei)
|
|
405
|
-
}), ni = e.object({
|
|
406
|
-
HATVP_URI: e.null()
|
|
407
403
|
}), ii = e.object({
|
|
404
|
+
collaborateur: d(ni)
|
|
405
|
+
}), oi = e.object({
|
|
406
|
+
HATVP_URI: e.null()
|
|
407
|
+
}), si = e.object({
|
|
408
408
|
datePriseFonction: _().nullable(),
|
|
409
409
|
causeFin: e.string().nullable(),
|
|
410
410
|
premiereElection: e.string().nullable(),
|
|
411
411
|
placeHemicycle: e.string().nullable(),
|
|
412
412
|
mandatRemplaceRef: e.string().nullable().optional(),
|
|
413
413
|
matriculeVote: e.string().nullable().optional()
|
|
414
|
-
}),
|
|
414
|
+
}), st = e.object({
|
|
415
415
|
"@xmlns:xsi": e.string().optional(),
|
|
416
|
-
"@xsi:type":
|
|
417
|
-
uid:
|
|
416
|
+
"@xsi:type": nt.optional(),
|
|
417
|
+
uid: j(),
|
|
418
418
|
acteurRef: P(),
|
|
419
419
|
legislature: e.string().nullable(),
|
|
420
|
-
typeOrgane:
|
|
420
|
+
typeOrgane: le,
|
|
421
421
|
dateDebut: $(),
|
|
422
422
|
datePublication: _().nullable(),
|
|
423
423
|
dateFin: _().nullable(),
|
|
424
424
|
preseance: e.string().nullable(),
|
|
425
425
|
nominPrincipale: e.string(),
|
|
426
|
-
infosQualite:
|
|
427
|
-
organes:
|
|
426
|
+
infosQualite: Zn,
|
|
427
|
+
organes: Hn,
|
|
428
428
|
libelle: e.string().nullable().optional(),
|
|
429
429
|
missionSuivanteRef: e.string().nullable().optional(),
|
|
430
430
|
missionPrecedenteRef: e.string().nullable().optional(),
|
|
431
|
-
suppleants:
|
|
431
|
+
suppleants: Yn.nullable().optional(),
|
|
432
432
|
chambre: e.null().optional(),
|
|
433
|
-
election:
|
|
434
|
-
InfosHorsSIAN:
|
|
435
|
-
mandature:
|
|
436
|
-
collaborateurs: e.union([e.array(e.null()),
|
|
437
|
-
}),
|
|
438
|
-
mandat:
|
|
439
|
-
}),
|
|
433
|
+
election: ti.optional(),
|
|
434
|
+
InfosHorsSIAN: oi.optional(),
|
|
435
|
+
mandature: si.optional(),
|
|
436
|
+
collaborateurs: e.union([e.array(e.null()), ii]).nullable().optional()
|
|
437
|
+
}), at = e.object({
|
|
438
|
+
mandat: d(st)
|
|
439
|
+
}), ai = e.object({
|
|
440
440
|
"@xmlns": e.string().optional(),
|
|
441
|
-
uid:
|
|
442
|
-
etatCivil:
|
|
443
|
-
profession:
|
|
441
|
+
uid: it,
|
|
442
|
+
etatCivil: ot,
|
|
443
|
+
profession: Gn,
|
|
444
444
|
uri_hatvp: e.union([U, e.string()]).nullable().optional(),
|
|
445
|
-
adresses:
|
|
446
|
-
mandats:
|
|
445
|
+
adresses: Wn.nullable(),
|
|
446
|
+
mandats: at.optional(),
|
|
447
447
|
"@xmlns:xsi": e.string().optional()
|
|
448
448
|
});
|
|
449
449
|
e.object({
|
|
450
|
-
acteur:
|
|
450
|
+
acteur: ai
|
|
451
451
|
});
|
|
452
|
-
const
|
|
453
|
-
uid:
|
|
454
|
-
etatCivil:
|
|
452
|
+
const ri = e.object({
|
|
453
|
+
uid: it,
|
|
454
|
+
etatCivil: ot,
|
|
455
455
|
uri_hatvp: e.string().nullable().optional(),
|
|
456
|
-
mandats:
|
|
457
|
-
}),
|
|
458
|
-
acteur: e.array(
|
|
459
|
-
}),
|
|
456
|
+
mandats: at
|
|
457
|
+
}), li = e.object({
|
|
458
|
+
acteur: e.array(ri)
|
|
459
|
+
}), rt = e.object({
|
|
460
460
|
dateDebut: _().nullable(),
|
|
461
461
|
dateAgrement: _().nullable(),
|
|
462
462
|
dateFin: _().nullable()
|
|
463
|
-
}),
|
|
463
|
+
}), lt = e.object({
|
|
464
464
|
secretaire01: e.string().nullable(),
|
|
465
465
|
secretaire02: e.string().nullable()
|
|
466
|
-
}), ri = e.object({
|
|
467
|
-
codeNatureDep: Ke.nullable(),
|
|
468
|
-
code: e.string().nullable(),
|
|
469
|
-
libelle: K.nullable()
|
|
470
|
-
}), li = e.object({
|
|
471
|
-
type: ge.nullable(),
|
|
472
|
-
libelle: de.nullable()
|
|
473
466
|
}), ci = e.object({
|
|
474
|
-
|
|
475
|
-
|
|
467
|
+
codeNatureDep: et.nullable(),
|
|
468
|
+
code: e.string().nullable(),
|
|
469
|
+
libelle: Y.nullable()
|
|
476
470
|
}), ui = e.object({
|
|
477
|
-
|
|
471
|
+
type: fe.nullable(),
|
|
472
|
+
libelle: ge.nullable()
|
|
478
473
|
}), pi = e.object({
|
|
474
|
+
region: ui,
|
|
475
|
+
departement: ci
|
|
476
|
+
}), mi = e.object({
|
|
477
|
+
paysRef: d(e.string())
|
|
478
|
+
}), di = e.object({
|
|
479
479
|
"@xmlns": e.string().optional(),
|
|
480
480
|
"@xmlns:xsi": e.string(),
|
|
481
|
-
"@xsi:type":
|
|
482
|
-
uid:
|
|
483
|
-
codeType:
|
|
481
|
+
"@xsi:type": Ne.optional(),
|
|
482
|
+
uid: j(),
|
|
483
|
+
codeType: le,
|
|
484
484
|
libelle: e.string(),
|
|
485
485
|
libelleEdition: e.string().nullable(),
|
|
486
486
|
libelleAbrege: e.string(),
|
|
487
487
|
libelleAbrev: e.string(),
|
|
488
|
-
viMoDe:
|
|
488
|
+
viMoDe: rt,
|
|
489
489
|
organeParent: T().nullable().optional(),
|
|
490
490
|
organePrecedentRef: T().nullable().optional(),
|
|
491
491
|
chambre: e.null().optional(),
|
|
492
|
-
regime:
|
|
492
|
+
regime: De.nullable().optional(),
|
|
493
493
|
legislature: e.string().nullable().optional(),
|
|
494
494
|
regimeJuridique: e.string().nullable().optional(),
|
|
495
495
|
siteInternet: e.string().nullable().optional(),
|
|
496
496
|
nombreReunionsAnnuelles: e.string().nullable().optional(),
|
|
497
|
-
secretariat:
|
|
497
|
+
secretariat: lt.optional(),
|
|
498
498
|
numero: e.string().nullable().optional(),
|
|
499
|
-
lieu:
|
|
500
|
-
positionPolitique:
|
|
499
|
+
lieu: pi.optional(),
|
|
500
|
+
positionPolitique: Re.nullable().optional(),
|
|
501
501
|
preseance: e.string().nullable().optional(),
|
|
502
502
|
couleurAssociee: e.string().nullable().optional(),
|
|
503
|
-
listePays:
|
|
503
|
+
listePays: mi.nullable().optional()
|
|
504
504
|
});
|
|
505
505
|
e.object({
|
|
506
|
-
organe:
|
|
506
|
+
organe: di
|
|
507
507
|
});
|
|
508
|
-
const
|
|
509
|
-
"@xsi:type":
|
|
510
|
-
uid:
|
|
511
|
-
codeType:
|
|
508
|
+
const gi = e.object({
|
|
509
|
+
"@xsi:type": Ne,
|
|
510
|
+
uid: j(),
|
|
511
|
+
codeType: le,
|
|
512
512
|
libelle: e.string(),
|
|
513
513
|
libelleEdition: e.string().nullable(),
|
|
514
514
|
libelleAbrege: e.string(),
|
|
515
515
|
libelleAbrev: e.string(),
|
|
516
|
-
viMoDe:
|
|
516
|
+
viMoDe: rt,
|
|
517
517
|
regimeJuridique: e.string().nullable().optional(),
|
|
518
|
-
regime:
|
|
518
|
+
regime: De.nullable().optional(),
|
|
519
519
|
legislature: e.string().nullable().optional(),
|
|
520
|
-
secretariat:
|
|
521
|
-
positionPolitique:
|
|
522
|
-
}),
|
|
523
|
-
organe: e.array(
|
|
524
|
-
}),
|
|
520
|
+
secretariat: lt.optional(),
|
|
521
|
+
positionPolitique: Re.nullable().optional()
|
|
522
|
+
}), fi = e.object({
|
|
523
|
+
organe: e.array(gi)
|
|
524
|
+
}), pe = e.object({
|
|
525
525
|
code: e.string(),
|
|
526
526
|
libelle: e.string()
|
|
527
|
-
}),
|
|
528
|
-
type:
|
|
527
|
+
}), Si = e.object({
|
|
528
|
+
type: pe,
|
|
529
529
|
referenceTextuelle: e.string(),
|
|
530
530
|
references: e.null()
|
|
531
|
-
}),
|
|
531
|
+
}), bi = e.object({
|
|
532
532
|
"@xmlns": e.string(),
|
|
533
533
|
"@xmlns:xsi": e.string(),
|
|
534
|
-
uid:
|
|
534
|
+
uid: j(),
|
|
535
535
|
chronotag: e.string(),
|
|
536
536
|
legislature: e.string(),
|
|
537
537
|
refActeur: P(),
|
|
538
538
|
dateCreation: $(),
|
|
539
539
|
datePublication: _(),
|
|
540
|
-
portee:
|
|
541
|
-
lecture:
|
|
542
|
-
instance:
|
|
543
|
-
cible:
|
|
540
|
+
portee: pe,
|
|
541
|
+
lecture: pe,
|
|
542
|
+
instance: pe,
|
|
543
|
+
cible: Si,
|
|
544
544
|
explication: e.string().nullable()
|
|
545
545
|
});
|
|
546
546
|
e.object({
|
|
547
|
-
deport:
|
|
547
|
+
deport: bi
|
|
548
548
|
});
|
|
549
549
|
e.object({
|
|
550
|
-
mandat:
|
|
550
|
+
mandat: st
|
|
551
551
|
});
|
|
552
|
-
const
|
|
552
|
+
const Ai = e.object({
|
|
553
553
|
"@xmlns:xsi": e.string(),
|
|
554
|
-
organes:
|
|
555
|
-
acteurs:
|
|
554
|
+
organes: fi,
|
|
555
|
+
acteurs: li
|
|
556
556
|
});
|
|
557
557
|
e.object({
|
|
558
|
-
export:
|
|
558
|
+
export: Ai
|
|
559
559
|
});
|
|
560
|
-
const
|
|
560
|
+
const Ci = [
|
|
561
561
|
"AuditionExterne",
|
|
562
562
|
"AuditionParPresidentCommission",
|
|
563
563
|
"AuditionParRapporteur",
|
|
564
564
|
"Ordinaire"
|
|
565
|
-
],
|
|
565
|
+
], ct = e.enum(Ci), hi = ["ODJPR", "ODJSN"], ut = e.enum(hi), _i = [
|
|
566
566
|
"podjReunion_type",
|
|
567
567
|
"podjSeanceConfPres_type"
|
|
568
|
-
],
|
|
568
|
+
], pt = e.enum(_i), ji = ["absent", "excusé", "présent"], mt = e.enum(ji), yi = [
|
|
569
569
|
"discussion générale commune",
|
|
570
570
|
"procédure d'examen simplifiée-Article 103",
|
|
571
571
|
"procédure d'examen simplifiée-Article 106",
|
|
572
572
|
"procédure d'examen simplifiée-Article 107",
|
|
573
573
|
"procédure de législation en commission-Article 107-1"
|
|
574
|
-
],
|
|
574
|
+
], dt = e.enum(yi), Oi = [
|
|
575
575
|
"Deuxième",
|
|
576
576
|
"Première",
|
|
577
577
|
"Troisième",
|
|
578
578
|
"Unique"
|
|
579
|
-
],
|
|
579
|
+
], gt = e.enum(Oi), Ni = [
|
|
580
580
|
"reunionCommission_type",
|
|
581
581
|
"reunionInitParlementaire_type",
|
|
582
582
|
"seance_type"
|
|
583
|
-
],
|
|
583
|
+
], ft = e.enum(Ni), Ri = [
|
|
584
584
|
"Amendements (Art. 88)",
|
|
585
585
|
"Amendements (Art. 91)",
|
|
586
586
|
"Audition",
|
|
@@ -615,175 +615,175 @@ const bi = [
|
|
|
615
615
|
"Table ronde",
|
|
616
616
|
"Vote par scrutin public",
|
|
617
617
|
"Vote solennel"
|
|
618
|
-
],
|
|
618
|
+
], St = e.enum(Ri), Di = [
|
|
619
619
|
"DEP",
|
|
620
620
|
"GA",
|
|
621
621
|
"GE",
|
|
622
622
|
"GEVI",
|
|
623
623
|
"GP",
|
|
624
624
|
"HÉ Aurélien"
|
|
625
|
-
],
|
|
625
|
+
], Ie = e.enum(Di), Ii = [
|
|
626
626
|
"Annulé",
|
|
627
627
|
"Confirmé",
|
|
628
628
|
"Eventuel",
|
|
629
629
|
"Supprimé"
|
|
630
|
-
],
|
|
630
|
+
], Ti = e.enum(Ii), Ei = [
|
|
631
631
|
"IdActeur_type",
|
|
632
632
|
"IdPersonneExterne_type"
|
|
633
|
-
],
|
|
633
|
+
], Pi = e.enum(Ei), vi = e.object({
|
|
634
634
|
creation: e.string(),
|
|
635
635
|
cloture: e.string().nullable()
|
|
636
|
-
}),
|
|
637
|
-
etat:
|
|
638
|
-
chrono:
|
|
639
|
-
}),
|
|
640
|
-
dossierRef:
|
|
641
|
-
}),
|
|
642
|
-
item:
|
|
643
|
-
}),
|
|
644
|
-
"@xsi:type":
|
|
645
|
-
uid:
|
|
646
|
-
cycleDeVie:
|
|
636
|
+
}), Te = e.object({
|
|
637
|
+
etat: Ti,
|
|
638
|
+
chrono: vi
|
|
639
|
+
}), Mi = e.object({
|
|
640
|
+
dossierRef: d(e.string())
|
|
641
|
+
}), Ke = e.object({
|
|
642
|
+
item: d(e.string())
|
|
643
|
+
}), Li = e.object({
|
|
644
|
+
"@xsi:type": pt,
|
|
645
|
+
uid: j(),
|
|
646
|
+
cycleDeVie: Te,
|
|
647
647
|
objet: e.string(),
|
|
648
648
|
demandeurPoint: e.null(),
|
|
649
|
-
procedure:
|
|
649
|
+
procedure: dt.nullable(),
|
|
650
650
|
dossiersLegislatifsRefs: e.union([
|
|
651
|
-
|
|
651
|
+
Mi,
|
|
652
652
|
e.null()
|
|
653
653
|
]),
|
|
654
|
-
typePointODJ:
|
|
654
|
+
typePointODJ: St,
|
|
655
655
|
comiteSecret: e.string(),
|
|
656
656
|
textesAssocies: e.null(),
|
|
657
|
-
natureTravauxODJ:
|
|
658
|
-
dateConfPres:
|
|
659
|
-
dateLettreMinistre:
|
|
660
|
-
}),
|
|
661
|
-
pointODJ:
|
|
662
|
-
}),
|
|
663
|
-
convocationODJ:
|
|
664
|
-
resumeODJ:
|
|
665
|
-
pointsODJ:
|
|
666
|
-
}),
|
|
657
|
+
natureTravauxODJ: ut.optional(),
|
|
658
|
+
dateConfPres: C(),
|
|
659
|
+
dateLettreMinistre: C()
|
|
660
|
+
}), wi = e.object({
|
|
661
|
+
pointODJ: d(Li)
|
|
662
|
+
}), bt = e.object({
|
|
663
|
+
convocationODJ: Ke.nullable(),
|
|
664
|
+
resumeODJ: Ke.nullable(),
|
|
665
|
+
pointsODJ: wi.nullable().optional()
|
|
666
|
+
}), At = e.object({
|
|
667
667
|
nom: e.string().nullable(),
|
|
668
668
|
acteurRef: P()
|
|
669
|
-
}),
|
|
669
|
+
}), Ct = e.object({
|
|
670
670
|
nom: e.string(),
|
|
671
671
|
organeRef: T()
|
|
672
|
-
}), Li = e.object({
|
|
673
|
-
acteur: St.optional(),
|
|
674
|
-
organe: bt.optional()
|
|
675
|
-
}), At = e.object({
|
|
676
|
-
acteur: C(St).optional(),
|
|
677
|
-
organe: bt.optional()
|
|
678
|
-
}), wi = e.object({
|
|
679
|
-
paysRef: C(e.string())
|
|
680
672
|
}), xi = e.object({
|
|
673
|
+
acteur: At.optional(),
|
|
674
|
+
organe: Ct.optional()
|
|
675
|
+
}), ht = e.object({
|
|
676
|
+
acteur: d(At).optional(),
|
|
677
|
+
organe: Ct.optional()
|
|
678
|
+
}), Vi = e.object({
|
|
679
|
+
paysRef: d(e.string())
|
|
680
|
+
}), Fi = e.object({
|
|
681
681
|
estReunionInternationale: e.string(),
|
|
682
|
-
listePays:
|
|
682
|
+
listePays: Vi.nullable(),
|
|
683
683
|
informationsComplementaires: e.string().nullable().optional()
|
|
684
|
-
}),
|
|
684
|
+
}), _t = e.object({
|
|
685
685
|
code: e.string().nullable().optional(),
|
|
686
686
|
libelleCourt: e.string().nullable().optional(),
|
|
687
687
|
libelleLong: e.string().nullable(),
|
|
688
688
|
lieuRef: e.string().nullable().optional()
|
|
689
|
-
}),
|
|
689
|
+
}), jt = e.object({
|
|
690
690
|
acteurRef: P(),
|
|
691
|
-
presence:
|
|
692
|
-
}), Vi = e.object({
|
|
693
|
-
participantInterne: C(ht)
|
|
694
|
-
}), Fi = e.object({
|
|
695
|
-
participantInterne: e.array(ht)
|
|
691
|
+
presence: mt
|
|
696
692
|
}), qi = e.object({
|
|
697
|
-
|
|
693
|
+
participantInterne: d(jt)
|
|
698
694
|
}), Ji = e.object({
|
|
699
|
-
|
|
700
|
-
"#text": e.string()
|
|
695
|
+
participantInterne: e.array(jt)
|
|
701
696
|
}), Xi = e.object({
|
|
702
|
-
|
|
697
|
+
personneAuditionnee: e.array(e.null()).nullable()
|
|
698
|
+
}), $i = e.object({
|
|
699
|
+
"@xsi:type": Pi,
|
|
700
|
+
"#text": e.string()
|
|
701
|
+
}), Ui = e.object({
|
|
702
|
+
civ: K,
|
|
703
703
|
prenom: e.string(),
|
|
704
704
|
nom: e.string(),
|
|
705
|
-
alpha:
|
|
705
|
+
alpha: C(),
|
|
706
706
|
trigramme: e.string().nullable().optional()
|
|
707
|
-
}), $i = e.object({
|
|
708
|
-
uid: Ji,
|
|
709
|
-
ident: Xi,
|
|
710
|
-
dateNais: _().nullable()
|
|
711
|
-
}), Ui = e.object({
|
|
712
|
-
personneAuditionnee: C($i)
|
|
713
707
|
}), Bi = e.object({
|
|
708
|
+
uid: $i,
|
|
709
|
+
ident: Ui,
|
|
710
|
+
dateNais: _().nullable()
|
|
711
|
+
}), Qi = e.object({
|
|
712
|
+
personneAuditionnee: d(Bi)
|
|
713
|
+
}), ki = e.object({
|
|
714
714
|
participantsInternes: e.union([
|
|
715
|
-
|
|
715
|
+
qi,
|
|
716
716
|
e.null()
|
|
717
717
|
]),
|
|
718
718
|
personnesAuditionnees: e.union([
|
|
719
|
-
|
|
719
|
+
Xi,
|
|
720
720
|
e.null()
|
|
721
721
|
])
|
|
722
|
-
}),
|
|
722
|
+
}), zi = e.object({
|
|
723
723
|
participantsInternes: e.union([
|
|
724
|
-
|
|
724
|
+
Ji,
|
|
725
725
|
e.null()
|
|
726
726
|
]),
|
|
727
727
|
personnesAuditionnees: e.union([
|
|
728
|
-
|
|
728
|
+
Qi,
|
|
729
729
|
e.null()
|
|
730
730
|
])
|
|
731
|
-
}),
|
|
731
|
+
}), yt = e.object({
|
|
732
732
|
numSeanceJO: e.string().nullable(),
|
|
733
733
|
idJO: e.string().nullable(),
|
|
734
|
-
quantieme:
|
|
734
|
+
quantieme: gt,
|
|
735
735
|
DateSeance: e.string()
|
|
736
|
-
}),
|
|
736
|
+
}), Gi = e.object({
|
|
737
737
|
"@xmlns": e.string(),
|
|
738
738
|
"@xmlns:xsi": e.string(),
|
|
739
|
-
"@xsi:type":
|
|
740
|
-
uid:
|
|
739
|
+
"@xsi:type": ft,
|
|
740
|
+
uid: j(),
|
|
741
741
|
timeStampDebut: $(),
|
|
742
|
-
timeStampFin:
|
|
743
|
-
lieu:
|
|
744
|
-
cycleDeVie:
|
|
745
|
-
demandeurs:
|
|
742
|
+
timeStampFin: C(),
|
|
743
|
+
lieu: _t.optional(),
|
|
744
|
+
cycleDeVie: Te,
|
|
745
|
+
demandeurs: ht.nullable().optional(),
|
|
746
746
|
organeReuniRef: e.string().nullable(),
|
|
747
|
-
typeReunion:
|
|
748
|
-
demandeur:
|
|
749
|
-
participants:
|
|
747
|
+
typeReunion: Ie.optional(),
|
|
748
|
+
demandeur: xi.nullable().optional(),
|
|
749
|
+
participants: ki.nullable().optional(),
|
|
750
750
|
visioConference: e.string().nullable().optional(),
|
|
751
|
-
ODJ:
|
|
751
|
+
ODJ: bt.nullable().optional(),
|
|
752
752
|
sessionRef: e.string().nullable().optional(),
|
|
753
|
-
ouverturePresse:
|
|
754
|
-
captationVideo:
|
|
753
|
+
ouverturePresse: C(),
|
|
754
|
+
captationVideo: C(),
|
|
755
755
|
compteRenduRef: e.string().nullable().optional(),
|
|
756
|
-
formatReunion:
|
|
757
|
-
infosReunionsInternationale:
|
|
758
|
-
identifiants:
|
|
756
|
+
formatReunion: ct.optional(),
|
|
757
|
+
infosReunionsInternationale: Fi.optional(),
|
|
758
|
+
identifiants: yt.optional()
|
|
759
759
|
});
|
|
760
760
|
e.object({
|
|
761
|
-
reunion:
|
|
761
|
+
reunion: Gi
|
|
762
762
|
});
|
|
763
|
-
const
|
|
764
|
-
uid:
|
|
763
|
+
const Wi = e.object({
|
|
764
|
+
uid: j(),
|
|
765
765
|
timeStampDebut: $(),
|
|
766
|
-
timeStampFin:
|
|
767
|
-
lieu:
|
|
768
|
-
cycleDeVie:
|
|
769
|
-
demandeurs:
|
|
766
|
+
timeStampFin: C(),
|
|
767
|
+
lieu: _t,
|
|
768
|
+
cycleDeVie: Te,
|
|
769
|
+
demandeurs: ht.nullable().optional(),
|
|
770
770
|
organeReuniRef: e.string().nullable(),
|
|
771
|
-
typeReunion:
|
|
772
|
-
"@xmlns:xsi":
|
|
771
|
+
typeReunion: Ie.optional(),
|
|
772
|
+
"@xmlns:xsi": C(),
|
|
773
773
|
demandeur: e.null().optional(),
|
|
774
|
-
participants:
|
|
774
|
+
participants: zi.nullable().optional(),
|
|
775
775
|
sessionRef: e.string().nullable().optional(),
|
|
776
|
-
ouverturePresse:
|
|
777
|
-
ODJ:
|
|
776
|
+
ouverturePresse: C(),
|
|
777
|
+
ODJ: bt.optional(),
|
|
778
778
|
compteRenduRef: e.string().nullable().optional(),
|
|
779
|
-
identifiants:
|
|
780
|
-
}),
|
|
781
|
-
reunion: e.array(
|
|
779
|
+
identifiants: yt.optional()
|
|
780
|
+
}), Zi = e.object({
|
|
781
|
+
reunion: e.array(Wi)
|
|
782
782
|
});
|
|
783
783
|
e.object({
|
|
784
|
-
reunions:
|
|
784
|
+
reunions: Zi
|
|
785
785
|
});
|
|
786
|
-
const
|
|
786
|
+
const Hi = [
|
|
787
787
|
"AN1",
|
|
788
788
|
"AN1-ACIN",
|
|
789
789
|
"AN1-AVCE",
|
|
@@ -1004,20 +1004,20 @@ const Wi = [
|
|
|
1004
1004
|
"SNNLEC-DEBATS-DEC",
|
|
1005
1005
|
"SNNLEC-DEBATS-SEANCE",
|
|
1006
1006
|
"SNNLEC-DEPOT"
|
|
1007
|
-
],
|
|
1007
|
+
], Ot = e.enum(Hi), Ki = [
|
|
1008
1008
|
"accordInternational_Type",
|
|
1009
1009
|
"avisConseilEtat_Type",
|
|
1010
1010
|
"documentEtudeImpact_Type",
|
|
1011
1011
|
"rapportParlementaire_Type",
|
|
1012
1012
|
"texteLoi_Type"
|
|
1013
|
-
],
|
|
1013
|
+
], Se = e.enum(Ki), Yi = [
|
|
1014
1014
|
"auteur",
|
|
1015
1015
|
"cosignataire",
|
|
1016
1016
|
"rapporteur",
|
|
1017
1017
|
"rapporteur général",
|
|
1018
1018
|
"rapporteur pour avis",
|
|
1019
1019
|
"rapporteur spécial"
|
|
1020
|
-
],
|
|
1020
|
+
], be = e.enum(Yi), eo = [
|
|
1021
1021
|
"ACCPRESRP",
|
|
1022
1022
|
"APPART1515",
|
|
1023
1023
|
"APPART341",
|
|
@@ -1060,11 +1060,11 @@ const Wi = [
|
|
|
1060
1060
|
"SUPP",
|
|
1061
1061
|
"SUSPOURS",
|
|
1062
1062
|
"TVXINSTITEUROP"
|
|
1063
|
-
],
|
|
1063
|
+
], Nt = e.enum(eo), to = [
|
|
1064
1064
|
"ADOPTCOM",
|
|
1065
1065
|
"ADOPTSEANCE",
|
|
1066
1066
|
"REJETSEANCE"
|
|
1067
|
-
],
|
|
1067
|
+
], Rt = e.enum(to), no = ["Rectifié"], Dt = e.enum(no), io = [
|
|
1068
1068
|
"Allocution",
|
|
1069
1069
|
"Avis",
|
|
1070
1070
|
"Déclaration",
|
|
@@ -1077,32 +1077,32 @@ const Wi = [
|
|
|
1077
1077
|
"Rapport",
|
|
1078
1078
|
"Rapport d'information",
|
|
1079
1079
|
"Résolution"
|
|
1080
|
-
],
|
|
1081
|
-
|
|
1082
|
-
),
|
|
1080
|
+
], Ee = e.enum(
|
|
1081
|
+
io
|
|
1082
|
+
), oo = [
|
|
1083
1083
|
"Commission",
|
|
1084
1084
|
"Séance",
|
|
1085
1085
|
"Texte Déposé"
|
|
1086
|
-
],
|
|
1086
|
+
], Pe = e.enum(oo), so = [
|
|
1087
1087
|
"DossierCommissionEnquete_Type",
|
|
1088
1088
|
"DossierIniativeExecutif_Type",
|
|
1089
1089
|
"DossierLegislatif_Type",
|
|
1090
1090
|
"DossierMissionControle_Type",
|
|
1091
1091
|
"DossierMissionInformation_Type",
|
|
1092
1092
|
"DossierResolutionAN"
|
|
1093
|
-
],
|
|
1094
|
-
|
|
1095
|
-
),
|
|
1093
|
+
], It = e.enum(
|
|
1094
|
+
so
|
|
1095
|
+
), ao = [
|
|
1096
1096
|
"Budget annexe",
|
|
1097
1097
|
"Budget général",
|
|
1098
1098
|
"Compte de concours financier",
|
|
1099
1099
|
"Compte spécial",
|
|
1100
1100
|
"Première partie"
|
|
1101
|
-
],
|
|
1101
|
+
], Tt = e.enum(ao), ro = [
|
|
1102
1102
|
"mission principale",
|
|
1103
1103
|
"mission secondaire",
|
|
1104
1104
|
"partie de mission"
|
|
1105
|
-
],
|
|
1105
|
+
], Et = e.enum(ro), lo = [
|
|
1106
1106
|
"Adoption_Europe_Type",
|
|
1107
1107
|
"ConclusionEtapeCC_Type",
|
|
1108
1108
|
"ConvocationCongres_Type",
|
|
@@ -1133,374 +1133,374 @@ const Wi = [
|
|
|
1133
1133
|
"SaisieComAvis_Type",
|
|
1134
1134
|
"SaisieComFond_Type",
|
|
1135
1135
|
"SaisineConseilConstit_Type"
|
|
1136
|
-
],
|
|
1136
|
+
], co = e.enum(lo), uo = ["BTA", "TAP"], Pt = e.enum(uo), po = [
|
|
1137
1137
|
"En application de l'article 61§2 de la Constitution"
|
|
1138
|
-
],
|
|
1139
|
-
|
|
1140
|
-
),
|
|
1138
|
+
], vt = e.enum(po), mo = ["JO_LOI_DECRET"], Mt = e.enum(mo), go = ["Dossier absorbé", "Examen commun"], Lt = e.enum(go), fo = ["Décret"], wt = e.enum(
|
|
1139
|
+
fo
|
|
1140
|
+
), Z = e.object({
|
|
1141
1141
|
code: e.string(),
|
|
1142
1142
|
libelle: e.string()
|
|
1143
|
-
}), go = e.object({
|
|
1144
|
-
code: jt,
|
|
1145
|
-
libelle: A(),
|
|
1146
|
-
libelleEdition: A()
|
|
1147
|
-
}), fo = e.object({
|
|
1148
|
-
depot: W,
|
|
1149
|
-
classe: W,
|
|
1150
|
-
espece: W.optional()
|
|
1151
|
-
}), Ee = e.object({
|
|
1152
|
-
famille: fo.nullable(),
|
|
1153
|
-
type: W,
|
|
1154
|
-
sousType: go.nullable(),
|
|
1155
|
-
statutAdoption: Nt.nullable()
|
|
1156
1143
|
}), So = e.object({
|
|
1144
|
+
code: Nt,
|
|
1145
|
+
libelle: C(),
|
|
1146
|
+
libelleEdition: C()
|
|
1147
|
+
}), bo = e.object({
|
|
1148
|
+
depot: Z,
|
|
1149
|
+
classe: Z,
|
|
1150
|
+
espece: Z.optional()
|
|
1151
|
+
}), ve = e.object({
|
|
1152
|
+
famille: bo.nullable(),
|
|
1153
|
+
type: Z,
|
|
1154
|
+
sousType: So.nullable(),
|
|
1155
|
+
statutAdoption: Rt.nullable()
|
|
1156
|
+
}), Ao = e.object({
|
|
1157
1157
|
dateCreation: _(),
|
|
1158
1158
|
dateDepot: _(),
|
|
1159
1159
|
datePublication: _(),
|
|
1160
1160
|
datePublicationWeb: _()
|
|
1161
|
-
}),
|
|
1162
|
-
chrono:
|
|
1163
|
-
}),
|
|
1161
|
+
}), Me = e.object({
|
|
1162
|
+
chrono: Ao
|
|
1163
|
+
}), Le = e.object({
|
|
1164
1164
|
titrePrincipal: e.string(),
|
|
1165
1165
|
titrePrincipalCourt: e.string()
|
|
1166
|
-
}),
|
|
1166
|
+
}), Co = e.object({
|
|
1167
1167
|
acteurRef: P(),
|
|
1168
|
-
qualite:
|
|
1169
|
-
}),
|
|
1168
|
+
qualite: be
|
|
1169
|
+
}), ho = e.object({
|
|
1170
1170
|
organeRef: T()
|
|
1171
|
-
}),
|
|
1172
|
-
acteur:
|
|
1173
|
-
organe:
|
|
1174
|
-
}), Me = e.object({
|
|
1175
|
-
auteur: C(Co)
|
|
1176
|
-
}), Le = e.object({
|
|
1177
|
-
typeCorrection: Ot,
|
|
1178
|
-
niveauCorrection: A()
|
|
1171
|
+
}), _o = e.object({
|
|
1172
|
+
acteur: Co.optional(),
|
|
1173
|
+
organe: ho.optional()
|
|
1179
1174
|
}), we = e.object({
|
|
1180
|
-
|
|
1181
|
-
formule: A(),
|
|
1182
|
-
adoptionConforme: e.string()
|
|
1175
|
+
auteur: d(_o)
|
|
1183
1176
|
}), xe = e.object({
|
|
1177
|
+
typeCorrection: Dt,
|
|
1178
|
+
niveauCorrection: C()
|
|
1179
|
+
}), Ve = e.object({
|
|
1180
|
+
numNotice: C(),
|
|
1181
|
+
formule: C(),
|
|
1182
|
+
adoptionConforme: e.string()
|
|
1183
|
+
}), Fe = e.object({
|
|
1184
1184
|
DIAN: e.string().nullable().optional(),
|
|
1185
1185
|
ISBN: e.string().nullable().optional(),
|
|
1186
1186
|
ISSN: e.string().nullable().optional(),
|
|
1187
1187
|
nbPage: e.string().nullable().optional(),
|
|
1188
1188
|
prix: e.string().nullable()
|
|
1189
|
-
}),
|
|
1189
|
+
}), jo = e.object({
|
|
1190
1190
|
libelleTheme: e.string()
|
|
1191
|
-
}), _o = e.object({
|
|
1192
|
-
"@niveau": e.string(),
|
|
1193
|
-
theme: ho
|
|
1194
|
-
}), le = e.object({
|
|
1195
|
-
themes: _o
|
|
1196
|
-
}), Lt = e.object({
|
|
1197
|
-
organeRef: C(T())
|
|
1198
1191
|
}), yo = e.object({
|
|
1192
|
+
"@niveau": e.string(),
|
|
1193
|
+
theme: jo
|
|
1194
|
+
}), ce = e.object({
|
|
1195
|
+
themes: yo
|
|
1196
|
+
}), xt = e.object({
|
|
1197
|
+
organeRef: d(T())
|
|
1198
|
+
}), Oo = e.object({
|
|
1199
1199
|
acteurRef: P()
|
|
1200
|
-
}),
|
|
1200
|
+
}), No = e.object({
|
|
1201
1201
|
organeRef: T(),
|
|
1202
1202
|
etApparentes: e.string()
|
|
1203
|
-
}),
|
|
1204
|
-
acteur:
|
|
1203
|
+
}), Ro = e.object({
|
|
1204
|
+
acteur: Oo.optional(),
|
|
1205
1205
|
dateCosignature: e.string(),
|
|
1206
1206
|
dateRetraitCosignature: e.string().nullable(),
|
|
1207
1207
|
edite: e.string(),
|
|
1208
|
-
organe:
|
|
1209
|
-
}),
|
|
1210
|
-
coSignataire:
|
|
1211
|
-
}),
|
|
1208
|
+
organe: No.optional()
|
|
1209
|
+
}), Vt = e.object({
|
|
1210
|
+
coSignataire: d(Ro)
|
|
1211
|
+
}), Do = e.object({
|
|
1212
1212
|
amendable: e.string(),
|
|
1213
1213
|
dateLimiteDepot: e.null()
|
|
1214
|
-
}),
|
|
1214
|
+
}), Io = e.object({
|
|
1215
1215
|
organeRef: T(),
|
|
1216
1216
|
amendable: e.string(),
|
|
1217
1217
|
dateLimiteDepot: e.null()
|
|
1218
|
-
}),
|
|
1219
|
-
commission:
|
|
1220
|
-
}),
|
|
1221
|
-
amendementsSeance:
|
|
1222
|
-
amendementsCommission:
|
|
1223
|
-
}),
|
|
1218
|
+
}), To = e.object({
|
|
1219
|
+
commission: d(Io)
|
|
1220
|
+
}), Ft = e.object({
|
|
1221
|
+
amendementsSeance: Do,
|
|
1222
|
+
amendementsCommission: To.optional()
|
|
1223
|
+
}), Eo = e.lazy(
|
|
1224
1224
|
() => e.object({
|
|
1225
|
-
"@xsi:type":
|
|
1226
|
-
uid:
|
|
1225
|
+
"@xsi:type": Se,
|
|
1226
|
+
uid: j(),
|
|
1227
1227
|
legislature: e.string().nullable(),
|
|
1228
|
-
cycleDeVie:
|
|
1228
|
+
cycleDeVie: Me,
|
|
1229
1229
|
denominationStructurelle: e.string(),
|
|
1230
|
-
titres:
|
|
1231
|
-
divisions:
|
|
1230
|
+
titres: Le,
|
|
1231
|
+
divisions: qe.nullable(),
|
|
1232
1232
|
dossierRef: e.string(),
|
|
1233
1233
|
redacteur: e.null(),
|
|
1234
|
-
classification:
|
|
1235
|
-
auteurs:
|
|
1236
|
-
organesReferents:
|
|
1237
|
-
correction:
|
|
1238
|
-
notice:
|
|
1239
|
-
indexation:
|
|
1240
|
-
imprimerie:
|
|
1234
|
+
classification: ve,
|
|
1235
|
+
auteurs: we,
|
|
1236
|
+
organesReferents: xt.nullable().optional(),
|
|
1237
|
+
correction: xe.nullable(),
|
|
1238
|
+
notice: Ve,
|
|
1239
|
+
indexation: ce.nullable(),
|
|
1240
|
+
imprimerie: Fe.nullable(),
|
|
1241
1241
|
coSignataires: e.null().optional(),
|
|
1242
1242
|
depotAmendements: e.null().optional(),
|
|
1243
1243
|
rapportPublie: e.union([e.literal("true"), e.literal("false"), e.literal("undefined")]).optional()
|
|
1244
1244
|
})
|
|
1245
|
-
),
|
|
1246
|
-
division:
|
|
1247
|
-
}),
|
|
1245
|
+
), qe = e.object({
|
|
1246
|
+
division: d(Eo)
|
|
1247
|
+
}), Po = e.object({
|
|
1248
1248
|
dateSuppression: $()
|
|
1249
|
-
}),
|
|
1249
|
+
}), vo = e.object({
|
|
1250
1250
|
"@xmlns": e.string(),
|
|
1251
1251
|
"@xmlns:xsi": e.string(),
|
|
1252
|
-
"@xsi:type":
|
|
1253
|
-
uid:
|
|
1254
|
-
metadatas:
|
|
1255
|
-
}),
|
|
1252
|
+
"@xsi:type": Se,
|
|
1253
|
+
uid: j(),
|
|
1254
|
+
metadatas: Po
|
|
1255
|
+
}), Mo = e.object({
|
|
1256
1256
|
"@xmlns": e.string(),
|
|
1257
1257
|
"@xmlns:xsi": e.string(),
|
|
1258
|
-
"@xsi:type":
|
|
1259
|
-
uid:
|
|
1258
|
+
"@xsi:type": Se,
|
|
1259
|
+
uid: j(),
|
|
1260
1260
|
legislature: e.string().nullable(),
|
|
1261
|
-
cycleDeVie:
|
|
1262
|
-
denominationStructurelle:
|
|
1263
|
-
provenance:
|
|
1264
|
-
titres:
|
|
1265
|
-
divisions:
|
|
1261
|
+
cycleDeVie: Me,
|
|
1262
|
+
denominationStructurelle: Ee,
|
|
1263
|
+
provenance: Pe.optional(),
|
|
1264
|
+
titres: Le,
|
|
1265
|
+
divisions: qe.nullable(),
|
|
1266
1266
|
dossierRef: e.string(),
|
|
1267
1267
|
redacteur: e.null(),
|
|
1268
|
-
classification:
|
|
1269
|
-
auteurs:
|
|
1270
|
-
correction:
|
|
1271
|
-
notice:
|
|
1272
|
-
indexation:
|
|
1273
|
-
imprimerie:
|
|
1274
|
-
coSignataires:
|
|
1275
|
-
depotAmendements:
|
|
1276
|
-
organesReferents:
|
|
1268
|
+
classification: ve,
|
|
1269
|
+
auteurs: we,
|
|
1270
|
+
correction: xe.nullable(),
|
|
1271
|
+
notice: Ve,
|
|
1272
|
+
indexation: ce.nullable(),
|
|
1273
|
+
imprimerie: Fe.nullable(),
|
|
1274
|
+
coSignataires: Vt.nullable().optional(),
|
|
1275
|
+
depotAmendements: Ft.nullable().optional(),
|
|
1276
|
+
organesReferents: xt.nullable().optional(),
|
|
1277
1277
|
rapportPublie: e.union([e.literal("true"), e.literal("false"), e.literal("undefined")]).optional()
|
|
1278
1278
|
});
|
|
1279
1279
|
e.object({
|
|
1280
|
-
document: e.union([
|
|
1280
|
+
document: e.union([Mo, vo])
|
|
1281
1281
|
});
|
|
1282
|
-
const
|
|
1283
|
-
"@xsi:type":
|
|
1284
|
-
uid:
|
|
1282
|
+
const Lo = e.object({
|
|
1283
|
+
"@xsi:type": Se,
|
|
1284
|
+
uid: j(),
|
|
1285
1285
|
legislature: e.string().nullable(),
|
|
1286
|
-
cycleDeVie:
|
|
1287
|
-
denominationStructurelle:
|
|
1288
|
-
provenance:
|
|
1289
|
-
titres:
|
|
1290
|
-
divisions:
|
|
1286
|
+
cycleDeVie: Me,
|
|
1287
|
+
denominationStructurelle: Ee,
|
|
1288
|
+
provenance: Pe.optional(),
|
|
1289
|
+
titres: Le,
|
|
1290
|
+
divisions: qe.nullable(),
|
|
1291
1291
|
dossierRef: e.string(),
|
|
1292
1292
|
redacteur: e.null(),
|
|
1293
|
-
classification:
|
|
1294
|
-
auteurs:
|
|
1295
|
-
correction:
|
|
1296
|
-
notice:
|
|
1297
|
-
indexation:
|
|
1298
|
-
imprimerie:
|
|
1299
|
-
coSignataires:
|
|
1300
|
-
depotAmendements:
|
|
1293
|
+
classification: ve,
|
|
1294
|
+
auteurs: we,
|
|
1295
|
+
correction: xe.nullable(),
|
|
1296
|
+
notice: Ve,
|
|
1297
|
+
indexation: ce.nullable(),
|
|
1298
|
+
imprimerie: Fe.nullable(),
|
|
1299
|
+
coSignataires: Vt.nullable().optional(),
|
|
1300
|
+
depotAmendements: Ft.nullable().optional(),
|
|
1301
1301
|
rapportPublie: e.union([e.literal("true"), e.literal("false"), e.literal("undefined")]).optional()
|
|
1302
|
-
}),
|
|
1303
|
-
document: e.array(
|
|
1304
|
-
}),
|
|
1302
|
+
}), wo = e.object({
|
|
1303
|
+
document: e.array(Lo)
|
|
1304
|
+
}), qt = e.object({
|
|
1305
1305
|
titre: e.string(),
|
|
1306
1306
|
titreChemin: e.string().nullable(),
|
|
1307
1307
|
senatChemin: e.string().nullable()
|
|
1308
|
-
}), Lo = e.object({
|
|
1309
|
-
uid: y()
|
|
1310
|
-
}), wo = e.object({
|
|
1311
|
-
organeRef: Lo
|
|
1312
1308
|
}), xo = e.object({
|
|
1313
|
-
|
|
1309
|
+
uid: j()
|
|
1314
1310
|
}), Vo = e.object({
|
|
1315
|
-
|
|
1316
|
-
mandatRef: e.string()
|
|
1311
|
+
organeRef: xo
|
|
1317
1312
|
}), Fo = e.object({
|
|
1318
|
-
|
|
1319
|
-
}), Fe = e.object({
|
|
1320
|
-
acteurs: Fo.optional(),
|
|
1321
|
-
organes: xo.optional()
|
|
1313
|
+
organe: Vo
|
|
1322
1314
|
}), qo = e.object({
|
|
1323
|
-
acteurRef: A(),
|
|
1324
|
-
organeRef: A()
|
|
1325
|
-
}), Ft = e.object({
|
|
1326
|
-
cause: vt,
|
|
1327
|
-
dossierAbsorbantRef: e.string()
|
|
1328
|
-
}), _e = e.object({
|
|
1329
1315
|
acteurRef: P(),
|
|
1330
|
-
|
|
1331
|
-
etudePLFRef: A()
|
|
1316
|
+
mandatRef: e.string()
|
|
1332
1317
|
}), Jo = e.object({
|
|
1333
|
-
|
|
1334
|
-
}),
|
|
1318
|
+
acteur: d(qo)
|
|
1319
|
+
}), Je = e.object({
|
|
1320
|
+
acteurs: Jo.optional(),
|
|
1321
|
+
organes: Fo.optional()
|
|
1322
|
+
}), Xo = e.object({
|
|
1323
|
+
acteurRef: C(),
|
|
1324
|
+
organeRef: C()
|
|
1325
|
+
}), Jt = e.object({
|
|
1326
|
+
cause: Lt,
|
|
1327
|
+
dossierAbsorbantRef: e.string()
|
|
1328
|
+
}), je = e.object({
|
|
1329
|
+
acteurRef: P(),
|
|
1330
|
+
typeRapporteur: be,
|
|
1331
|
+
etudePLFRef: C()
|
|
1332
|
+
}), $o = e.object({
|
|
1333
|
+
rapporteur: d(je)
|
|
1334
|
+
}), Xt = e.lazy(
|
|
1335
1335
|
() => e.object({
|
|
1336
|
-
typeMission:
|
|
1337
|
-
codeMission:
|
|
1338
|
-
libelleLong:
|
|
1339
|
-
libelleCourt:
|
|
1340
|
-
typeBudget:
|
|
1341
|
-
missions:
|
|
1336
|
+
typeMission: Et,
|
|
1337
|
+
codeMission: C(),
|
|
1338
|
+
libelleLong: _e(),
|
|
1339
|
+
libelleCourt: _e(),
|
|
1340
|
+
typeBudget: Tt,
|
|
1341
|
+
missions: Uo.optional()
|
|
1342
1342
|
})
|
|
1343
|
-
),
|
|
1344
|
-
mission:
|
|
1345
|
-
}),
|
|
1346
|
-
uid:
|
|
1343
|
+
), Uo = e.object({
|
|
1344
|
+
mission: d(Xt)
|
|
1345
|
+
}), Bo = e.object({
|
|
1346
|
+
uid: j(),
|
|
1347
1347
|
organeRef: T(),
|
|
1348
|
-
texteAssocie:
|
|
1349
|
-
rapporteur: e.union([
|
|
1350
|
-
missionMinefi:
|
|
1348
|
+
texteAssocie: C(),
|
|
1349
|
+
rapporteur: e.union([d(je), je]).optional(),
|
|
1350
|
+
missionMinefi: Xt.optional(),
|
|
1351
1351
|
ordreDIQS: e.string(),
|
|
1352
1352
|
ordreCommission: e.string()
|
|
1353
|
-
}),
|
|
1354
|
-
EtudePLF: e.array(
|
|
1353
|
+
}), $t = e.object({
|
|
1354
|
+
EtudePLF: e.array(Bo)
|
|
1355
1355
|
}), z = e.object({
|
|
1356
1356
|
fam_code: e.string(),
|
|
1357
|
-
libelle:
|
|
1358
|
-
}), Uo = e.object({
|
|
1359
|
-
nomCanonique: e.string(),
|
|
1360
|
-
libelleCourt: A()
|
|
1361
|
-
}), Bo = e.object({
|
|
1362
|
-
dateFermeture: e.string().nullable(),
|
|
1363
|
-
dateOuverture: A()
|
|
1357
|
+
libelle: C()
|
|
1364
1358
|
}), Qo = e.object({
|
|
1365
|
-
|
|
1359
|
+
nomCanonique: e.string(),
|
|
1360
|
+
libelleCourt: C()
|
|
1366
1361
|
}), ko = e.object({
|
|
1367
|
-
|
|
1368
|
-
|
|
1362
|
+
dateFermeture: e.string().nullable(),
|
|
1363
|
+
dateOuverture: C()
|
|
1369
1364
|
}), zo = e.object({
|
|
1370
|
-
|
|
1365
|
+
voteRef: d(e.string())
|
|
1371
1366
|
}), Go = e.object({
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1367
|
+
typeTexte: Pt,
|
|
1368
|
+
refTexteAssocie: e.string()
|
|
1369
|
+
}), Wo = e.object({
|
|
1370
|
+
texteAssocie: d(Go)
|
|
1371
|
+
}), Zo = e.object({
|
|
1372
|
+
acteurRef: d(P())
|
|
1373
|
+
}), he = e.object({
|
|
1374
|
+
typeJO: Mt,
|
|
1375
1375
|
dateJO: e.string(),
|
|
1376
1376
|
pageJO: e.null(),
|
|
1377
1377
|
numJO: e.string(),
|
|
1378
|
-
urlLegifrance:
|
|
1379
|
-
referenceNOR:
|
|
1380
|
-
}),
|
|
1378
|
+
urlLegifrance: _e(),
|
|
1379
|
+
referenceNOR: C()
|
|
1380
|
+
}), Ho = e.object({
|
|
1381
1381
|
typeTexteEuropeen: e.string(),
|
|
1382
1382
|
titreTexteEuropeen: e.string()
|
|
1383
|
-
}),
|
|
1383
|
+
}), Ko = e.object({
|
|
1384
1384
|
refJOCE: e.string(),
|
|
1385
1385
|
dateJOCE: e.string()
|
|
1386
|
-
}),
|
|
1387
|
-
typeDoc:
|
|
1386
|
+
}), Yo = e.object({
|
|
1387
|
+
typeDoc: wt,
|
|
1388
1388
|
texteRef: e.string(),
|
|
1389
1389
|
titreDoc: e.string(),
|
|
1390
1390
|
urlDoc: e.string()
|
|
1391
|
-
}),
|
|
1391
|
+
}), es = e.lazy(
|
|
1392
1392
|
() => e.object({
|
|
1393
|
-
"@xsi:type":
|
|
1394
|
-
uid:
|
|
1395
|
-
codeActe:
|
|
1396
|
-
libelleActe:
|
|
1397
|
-
organeRef:
|
|
1393
|
+
"@xsi:type": co,
|
|
1394
|
+
uid: j(),
|
|
1395
|
+
codeActe: Ot,
|
|
1396
|
+
libelleActe: Qo,
|
|
1397
|
+
organeRef: C(),
|
|
1398
1398
|
dateActe: _(),
|
|
1399
|
-
actesLegislatifs:
|
|
1400
|
-
texteAssocie:
|
|
1401
|
-
contributionInternaute:
|
|
1402
|
-
provenance:
|
|
1399
|
+
actesLegislatifs: Xe.nullable().optional(),
|
|
1400
|
+
texteAssocie: C(),
|
|
1401
|
+
contributionInternaute: ko.optional(),
|
|
1402
|
+
provenance: C(),
|
|
1403
1403
|
depotInitialLectureDefinitiveRef: e.union([e.null(), e.string()]).optional(),
|
|
1404
|
-
initiateur:
|
|
1404
|
+
initiateur: Je.optional(),
|
|
1405
1405
|
statutConclusion: z.optional(),
|
|
1406
1406
|
reunionRef: e.string().nullable().optional(),
|
|
1407
1407
|
odjRef: e.string().nullable().optional(),
|
|
1408
1408
|
odSeancejRef: e.null().optional(),
|
|
1409
|
-
voteRefs:
|
|
1410
|
-
textesAssocies:
|
|
1411
|
-
rapporteurs:
|
|
1409
|
+
voteRefs: zo.nullable().optional(),
|
|
1410
|
+
textesAssocies: Wo.optional(),
|
|
1411
|
+
rapporteurs: $o.optional(),
|
|
1412
1412
|
reunion: e.null().optional(),
|
|
1413
1413
|
texteAdopte: e.string().nullable().optional(),
|
|
1414
1414
|
casSaisine: z.optional(),
|
|
1415
1415
|
decision: z.optional(),
|
|
1416
|
-
formuleDecision:
|
|
1417
|
-
initiateurs:
|
|
1418
|
-
motif:
|
|
1419
|
-
urlConclusion:
|
|
1420
|
-
numDecision:
|
|
1421
|
-
anneeDecision:
|
|
1416
|
+
formuleDecision: C(),
|
|
1417
|
+
initiateurs: Xo.nullable().optional(),
|
|
1418
|
+
motif: vt.optional(),
|
|
1419
|
+
urlConclusion: C(),
|
|
1420
|
+
numDecision: C(),
|
|
1421
|
+
anneeDecision: C(),
|
|
1422
1422
|
typeDeclaration: z.optional(),
|
|
1423
1423
|
typeMotionCensure: z.optional(),
|
|
1424
|
-
auteurs:
|
|
1424
|
+
auteurs: Zo.nullable().optional(),
|
|
1425
1425
|
typeMotion: z.optional(),
|
|
1426
|
-
auteurMotion:
|
|
1426
|
+
auteurMotion: C(),
|
|
1427
1427
|
dateRetrait: e.null().optional(),
|
|
1428
|
-
texteLoiRef:
|
|
1429
|
-
infoJO:
|
|
1428
|
+
texteLoiRef: C(),
|
|
1429
|
+
infoJO: he.nullable().optional(),
|
|
1430
1430
|
urlEcheancierLoi: e.string().nullable().optional(),
|
|
1431
|
-
codeLoi:
|
|
1431
|
+
codeLoi: C(),
|
|
1432
1432
|
titreLoi: e.string().nullable().optional(),
|
|
1433
|
-
infoJORect: e.union([
|
|
1434
|
-
texteEuropeen:
|
|
1435
|
-
infoJOCE:
|
|
1433
|
+
infoJORect: e.union([d(he), he]).optional(),
|
|
1434
|
+
texteEuropeen: Ho.optional(),
|
|
1435
|
+
infoJOCE: Ko.optional(),
|
|
1436
1436
|
statutAdoption: z.optional(),
|
|
1437
|
-
urlLegifrance:
|
|
1438
|
-
referenceNOR:
|
|
1439
|
-
texteExterneAssocie:
|
|
1437
|
+
urlLegifrance: C(),
|
|
1438
|
+
referenceNOR: C(),
|
|
1439
|
+
texteExterneAssocie: Yo.optional()
|
|
1440
1440
|
})
|
|
1441
|
-
),
|
|
1442
|
-
acteLegislatif:
|
|
1443
|
-
}),
|
|
1441
|
+
), Xe = e.object({
|
|
1442
|
+
acteLegislatif: d(es)
|
|
1443
|
+
}), ts = e.object({
|
|
1444
1444
|
"@xmlns": e.string(),
|
|
1445
1445
|
"@xmlns:xsi": e.string(),
|
|
1446
|
-
"@xsi:type":
|
|
1447
|
-
uid:
|
|
1446
|
+
"@xsi:type": It,
|
|
1447
|
+
uid: j(),
|
|
1448
1448
|
legislature: e.string(),
|
|
1449
|
-
titreDossier:
|
|
1450
|
-
procedureParlementaire:
|
|
1451
|
-
initiateur:
|
|
1452
|
-
actesLegislatifs:
|
|
1453
|
-
indexation:
|
|
1454
|
-
fusionDossier:
|
|
1455
|
-
PLF:
|
|
1449
|
+
titreDossier: qt,
|
|
1450
|
+
procedureParlementaire: Z,
|
|
1451
|
+
initiateur: Je.nullable(),
|
|
1452
|
+
actesLegislatifs: Xe.nullable(),
|
|
1453
|
+
indexation: ce.optional(),
|
|
1454
|
+
fusionDossier: Jt.nullable(),
|
|
1455
|
+
PLF: $t.optional()
|
|
1456
1456
|
});
|
|
1457
1457
|
e.object({
|
|
1458
|
-
dossierParlementaire:
|
|
1458
|
+
dossierParlementaire: ts
|
|
1459
1459
|
});
|
|
1460
|
-
const
|
|
1461
|
-
"@xsi:type":
|
|
1462
|
-
uid:
|
|
1460
|
+
const ns = e.object({
|
|
1461
|
+
"@xsi:type": It.optional(),
|
|
1462
|
+
uid: j(),
|
|
1463
1463
|
legislature: e.string(),
|
|
1464
|
-
titreDossier:
|
|
1465
|
-
procedureParlementaire:
|
|
1466
|
-
initiateur:
|
|
1467
|
-
actesLegislatifs:
|
|
1468
|
-
indexation:
|
|
1469
|
-
fusionDossier:
|
|
1470
|
-
PLF:
|
|
1471
|
-
}),
|
|
1472
|
-
dossierParlementaire:
|
|
1473
|
-
}),
|
|
1474
|
-
dossier: e.array(
|
|
1475
|
-
}),
|
|
1464
|
+
titreDossier: qt,
|
|
1465
|
+
procedureParlementaire: Z,
|
|
1466
|
+
initiateur: Je.nullable(),
|
|
1467
|
+
actesLegislatifs: Xe,
|
|
1468
|
+
indexation: ce.optional(),
|
|
1469
|
+
fusionDossier: Jt.nullable(),
|
|
1470
|
+
PLF: $t.optional()
|
|
1471
|
+
}), is = e.object({
|
|
1472
|
+
dossierParlementaire: ns
|
|
1473
|
+
}), os = e.object({
|
|
1474
|
+
dossier: e.array(is)
|
|
1475
|
+
}), ss = e.object({
|
|
1476
1476
|
"@xmlns:xsi": e.string(),
|
|
1477
|
-
textesLegislatifs:
|
|
1478
|
-
dossiersLegislatifs:
|
|
1477
|
+
textesLegislatifs: wo,
|
|
1478
|
+
dossiersLegislatifs: os
|
|
1479
1479
|
});
|
|
1480
1480
|
e.object({
|
|
1481
|
-
export:
|
|
1481
|
+
export: ss
|
|
1482
1482
|
});
|
|
1483
|
-
const
|
|
1483
|
+
const as = ["MG", "PAN", "PSE"], Ut = e.enum(as), rs = ["adopté", "rejeté"], Bt = e.enum(rs), ls = ["MOC", "SAT", "SPO", "SPS", "SSG"], Qt = e.enum(ls), cs = [
|
|
1484
1484
|
"l'Assemblée nationale a adopté",
|
|
1485
1485
|
"L'Assemblée nationale n'a pas adopté",
|
|
1486
1486
|
"Le Congrès du Parlement a adopté",
|
|
1487
1487
|
"Le Congrès du Parlement n'a pas adopté"
|
|
1488
|
-
],
|
|
1488
|
+
], $e = e.enum(cs), us = [
|
|
1489
1489
|
"motion de censure",
|
|
1490
1490
|
"scrutin public ordinaire",
|
|
1491
1491
|
"scrutin public solennel",
|
|
1492
1492
|
"scrutin à la tribune",
|
|
1493
1493
|
"Scrutin solennel congrès"
|
|
1494
|
-
],
|
|
1494
|
+
], kt = e.enum(us), ps = ["Congrès", "Hémicycle", "Salons"], zt = e.enum(ps), ms = [
|
|
1495
1495
|
"DecompteDissidentsPositionGroupe",
|
|
1496
1496
|
"DecompteNominatif"
|
|
1497
|
-
],
|
|
1498
|
-
|
|
1499
|
-
),
|
|
1497
|
+
], Gt = e.enum(
|
|
1498
|
+
ms
|
|
1499
|
+
), ds = [
|
|
1500
1500
|
"abstention",
|
|
1501
1501
|
"contre",
|
|
1502
1502
|
"pour"
|
|
1503
|
-
],
|
|
1503
|
+
], Wt = e.enum(ds), gs = [
|
|
1504
1504
|
"Majorité absolue des suffrages exprimés",
|
|
1505
1505
|
"majorité absolue des suffrages exprimés",
|
|
1506
1506
|
"majorité des membres composant l'Assemblée nationale",
|
|
@@ -1508,41 +1508,41 @@ const oa = ["MG", "PAN", "PSE"], Xt = e.enum(oa), aa = ["adopté", "rejeté"], $
|
|
|
1508
1508
|
"majorité des membres composants composant l'Assemblée nationale",
|
|
1509
1509
|
"Majorité requise pour un Congrès",
|
|
1510
1510
|
"Majorité requise pour une motion de censure"
|
|
1511
|
-
],
|
|
1511
|
+
], Zt = e.enum(gs), fs = Bt, Ht = $e, Ss = e.object({
|
|
1512
1512
|
texte: e.string().nullable(),
|
|
1513
1513
|
referenceLegislative: e.null()
|
|
1514
|
-
}),
|
|
1514
|
+
}), bs = e.object({
|
|
1515
1515
|
libelle: e.string(),
|
|
1516
1516
|
referenceLegislative: e.null(),
|
|
1517
1517
|
dossierLegislatif: e.null().optional()
|
|
1518
|
-
}),
|
|
1519
|
-
code:
|
|
1520
|
-
libelle:
|
|
1521
|
-
}),
|
|
1522
|
-
codeTypeVote:
|
|
1523
|
-
libelleTypeVote:
|
|
1524
|
-
typeMajorite:
|
|
1525
|
-
}),
|
|
1518
|
+
}), As = e.object({
|
|
1519
|
+
code: fs,
|
|
1520
|
+
libelle: Ht
|
|
1521
|
+
}), Cs = e.object({
|
|
1522
|
+
codeTypeVote: Qt,
|
|
1523
|
+
libelleTypeVote: kt,
|
|
1524
|
+
typeMajorite: Zt
|
|
1525
|
+
}), hs = e.object({
|
|
1526
1526
|
pour: e.string(),
|
|
1527
1527
|
contre: e.string(),
|
|
1528
1528
|
abstentions: e.string(),
|
|
1529
1529
|
nonVotants: e.string().nullable(),
|
|
1530
1530
|
nonVotantsVolontaires: e.string().optional()
|
|
1531
|
-
}),
|
|
1531
|
+
}), _s = e.object({
|
|
1532
1532
|
nombreVotants: e.string(),
|
|
1533
1533
|
suffragesExprimes: e.string(),
|
|
1534
1534
|
nbrSuffragesRequis: e.string(),
|
|
1535
|
-
annonce:
|
|
1536
|
-
decompte:
|
|
1537
|
-
}),
|
|
1535
|
+
annonce: Ht,
|
|
1536
|
+
decompte: hs
|
|
1537
|
+
}), js = e.object({
|
|
1538
1538
|
acteurRef: P(),
|
|
1539
1539
|
mandatRef: e.string(),
|
|
1540
1540
|
parDelegation: e.string().optional(),
|
|
1541
1541
|
numPlace: e.string().nullable().optional(),
|
|
1542
|
-
causePositionVote:
|
|
1542
|
+
causePositionVote: Ut.optional()
|
|
1543
1543
|
}), E = e.object({
|
|
1544
|
-
votant:
|
|
1545
|
-
}),
|
|
1544
|
+
votant: d(js)
|
|
1545
|
+
}), ys = e.object({
|
|
1546
1546
|
pour: e.string(),
|
|
1547
1547
|
contre: e.string(),
|
|
1548
1548
|
abstention: e.string().optional(),
|
|
@@ -1550,7 +1550,7 @@ const oa = ["MG", "PAN", "PSE"], Xt = e.enum(oa), aa = ["adopté", "rejeté"], $
|
|
|
1550
1550
|
nonVotants: e.string().optional(),
|
|
1551
1551
|
abstentions: e.string().optional(),
|
|
1552
1552
|
nonVotantsVolontaires: e.string().optional()
|
|
1553
|
-
}),
|
|
1553
|
+
}), Os = e.object({
|
|
1554
1554
|
nonVotant: e.null().optional(),
|
|
1555
1555
|
nonVotants: e.union([E, e.string()]).nullable().optional(),
|
|
1556
1556
|
pour: E.nullable().optional(),
|
|
@@ -1559,42 +1559,42 @@ const oa = ["MG", "PAN", "PSE"], Xt = e.enum(oa), aa = ["adopté", "rejeté"], $
|
|
|
1559
1559
|
abstentions: E.nullable().optional(),
|
|
1560
1560
|
pours: E.nullable().optional(),
|
|
1561
1561
|
contres: E.nullable().optional()
|
|
1562
|
-
}),
|
|
1563
|
-
positionMajoritaire:
|
|
1564
|
-
decompteVoix:
|
|
1565
|
-
decompteNominatif:
|
|
1566
|
-
}),
|
|
1562
|
+
}), Ns = e.object({
|
|
1563
|
+
positionMajoritaire: Wt,
|
|
1564
|
+
decompteVoix: ys,
|
|
1565
|
+
decompteNominatif: Os
|
|
1566
|
+
}), Rs = e.object({
|
|
1567
1567
|
organeRef: T(),
|
|
1568
1568
|
nombreMembresGroupe: e.string(),
|
|
1569
|
-
vote:
|
|
1570
|
-
}),
|
|
1571
|
-
groupe:
|
|
1572
|
-
}),
|
|
1569
|
+
vote: Ns
|
|
1570
|
+
}), Ds = e.object({
|
|
1571
|
+
groupe: d(Rs)
|
|
1572
|
+
}), Is = e.object({
|
|
1573
1573
|
organeRef: T(),
|
|
1574
|
-
groupes:
|
|
1575
|
-
}),
|
|
1576
|
-
organe:
|
|
1577
|
-
}),
|
|
1574
|
+
groupes: Ds
|
|
1575
|
+
}), Ts = e.object({
|
|
1576
|
+
organe: Is
|
|
1577
|
+
}), Es = e.object({
|
|
1578
1578
|
nonVotants: E.nullable(),
|
|
1579
1579
|
pour: E.nullable(),
|
|
1580
1580
|
contre: E.nullable(),
|
|
1581
1581
|
abstentions: E.nullable(),
|
|
1582
1582
|
nonVotantsVolontaires: E.nullable()
|
|
1583
|
-
}),
|
|
1584
|
-
nonVotants:
|
|
1583
|
+
}), Ps = e.object({
|
|
1584
|
+
nonVotants: d(E.nullable()).nullable(),
|
|
1585
1585
|
pour: E.nullable().optional(),
|
|
1586
1586
|
contre: E.nullable().optional(),
|
|
1587
|
-
abstentions:
|
|
1588
|
-
nonVotantsVolontaires:
|
|
1587
|
+
abstentions: d(E.nullable()).optional(),
|
|
1588
|
+
nonVotantsVolontaires: d(
|
|
1589
1589
|
E.nullable()
|
|
1590
1590
|
).optional(),
|
|
1591
1591
|
pours: E.nullable().optional(),
|
|
1592
1592
|
contres: E.nullable().optional(),
|
|
1593
|
-
dysfonctionnement:
|
|
1594
|
-
}),
|
|
1593
|
+
dysfonctionnement: Es.optional()
|
|
1594
|
+
}), Kt = e.object({
|
|
1595
1595
|
"@xmlns:xsi": e.string(),
|
|
1596
1596
|
"@xmlns": e.string().optional(),
|
|
1597
|
-
uid:
|
|
1597
|
+
uid: j(),
|
|
1598
1598
|
numero: e.string(),
|
|
1599
1599
|
organeRef: T(),
|
|
1600
1600
|
legislature: e.string(),
|
|
@@ -1602,66 +1602,66 @@ const oa = ["MG", "PAN", "PSE"], Xt = e.enum(oa), aa = ["adopté", "rejeté"], $
|
|
|
1602
1602
|
seanceRef: e.string(),
|
|
1603
1603
|
dateScrutin: $(),
|
|
1604
1604
|
quantiemeJourSeance: e.string(),
|
|
1605
|
-
typeVote:
|
|
1606
|
-
sort:
|
|
1605
|
+
typeVote: Cs,
|
|
1606
|
+
sort: As,
|
|
1607
1607
|
titre: e.string(),
|
|
1608
|
-
demandeur:
|
|
1609
|
-
objet:
|
|
1610
|
-
modePublicationDesVotes:
|
|
1611
|
-
syntheseVote:
|
|
1612
|
-
ventilationVotes:
|
|
1613
|
-
miseAuPoint:
|
|
1614
|
-
lieuVote:
|
|
1608
|
+
demandeur: Ss,
|
|
1609
|
+
objet: bs,
|
|
1610
|
+
modePublicationDesVotes: Gt,
|
|
1611
|
+
syntheseVote: _s,
|
|
1612
|
+
ventilationVotes: Ts,
|
|
1613
|
+
miseAuPoint: Ps.nullable(),
|
|
1614
|
+
lieuVote: zt.optional()
|
|
1615
1615
|
});
|
|
1616
1616
|
e.object({
|
|
1617
|
-
scrutin:
|
|
1617
|
+
scrutin: Kt
|
|
1618
1618
|
});
|
|
1619
|
-
const
|
|
1620
|
-
scrutin:
|
|
1619
|
+
const vs = e.object({
|
|
1620
|
+
scrutin: d(Kt)
|
|
1621
1621
|
});
|
|
1622
1622
|
e.object({
|
|
1623
|
-
scrutins:
|
|
1623
|
+
scrutins: vs
|
|
1624
1624
|
});
|
|
1625
|
-
const
|
|
1625
|
+
const Ms = /^((?<documentType>ACIN|ALCN|AVCE|AVIS|DECL|ETDI|LETT|MESS|MION|PION|PNRE|PRJL|RAPP|RINF|RION)(?<chambre>AN|CG|SN)(?<republique>R\d+)[LS](?<legislature>\d+)(?<etat>B|BTA|BTC|TAP)(?<numero>\d+)(-.*)?)|((?<documentType2>MION)(?<chambre2>AN|SN)(?<republique2>R\d+)[LS](?<legislature2>\d+)-N(?<numero2>\d+))$/, Ls = /^DL(R\d+)(L\d+)N(\d+)$/, ws = /^RU(AN|CG|SN)(R\d+)(L\d+)([AS]\d{4})(IDC|IDFL?|IDS)(\d+)$/, xs = /^VT(AN|CG)(R\d+)(L\d+)V(\d+)$/, Vs = /^CR(S|C)(AN|CG)(R\d+)(L\d+)(S\d+)((?:O|E|D|PO)\d+)(N\d+)$/, Fs = /^QAN(R\d+)(L\d+)Q(E|G|OSD)(\d+)$/, qs = [
|
|
1626
1626
|
"Annulé",
|
|
1627
1627
|
"Confirmé",
|
|
1628
1628
|
"Eventuel",
|
|
1629
1629
|
"Supprimé"
|
|
1630
|
-
],
|
|
1630
|
+
], Js = e.enum(qs), Xs = [
|
|
1631
1631
|
"IdActeur_type",
|
|
1632
1632
|
"IdPersonneExterne_type"
|
|
1633
|
-
],
|
|
1634
|
-
|
|
1635
|
-
),
|
|
1633
|
+
], $s = e.enum(
|
|
1634
|
+
Xs
|
|
1635
|
+
), Us = e.object({
|
|
1636
1636
|
creation: e.union([e.date(), e.iso.datetime({ offset: !0 }).pipe(e.coerce.date())]).meta({ description: "Date de création." }),
|
|
1637
1637
|
cloture: e.union([e.date(), e.iso.datetime({ offset: !0 }).pipe(e.coerce.date())]).optional().meta({ description: "Date de fin." })
|
|
1638
|
-
}),
|
|
1639
|
-
etat:
|
|
1638
|
+
}), Yt = e.object({
|
|
1639
|
+
etat: Js.meta({
|
|
1640
1640
|
description: "La réunion ou le point de l'ordre du est valide si le champ contient la valeur 'Eventuel' ou 'Confirmé'. Si la valeur est 'Annulé' ou 'Supprimé', aucun des champs de la réunion ou de l'ordre du jour n'a de signification définie. Par exemple, si une réunion est 'Annulé' et que le champ concernant l'ordre du jour est présent, il doit être ignoré car son contenu n'est pas nécessairement cohérent."
|
|
1641
1641
|
}),
|
|
1642
|
-
chrono:
|
|
1643
|
-
}),
|
|
1644
|
-
xsiType:
|
|
1642
|
+
chrono: Us
|
|
1643
|
+
}), Bs = e.object({
|
|
1644
|
+
xsiType: pt.meta({
|
|
1645
1645
|
description: "Pour les réunions dont xsiType est 'seance_type', c'est à dire une séance publique, chaque point de l'ordre du jour est fixé par la {@link https://fr.wikipedia.org/wiki/Conf%C3%A9rence_des_pr%C3%A9sidents_de_l%27Assembl%C3%A9e_nationale | conférence des présidents} et a donc la valeur 'podjSeanceConfPres_type' pour le champ xsiType. Dans tout les autres cas la valeur est 'podjReunion_type'"
|
|
1646
1646
|
}),
|
|
1647
|
-
uid:
|
|
1648
|
-
cycleDeVie:
|
|
1647
|
+
uid: j().meta({ description: "Identifiant unique du point ODJ" }),
|
|
1648
|
+
cycleDeVie: Yt.meta({
|
|
1649
1649
|
description: "Cycle de vie du point de l'ordre du jour."
|
|
1650
1650
|
}),
|
|
1651
1651
|
objet: e.string().meta({
|
|
1652
1652
|
description: "Description du point de l'ordre du jour en texte libre."
|
|
1653
1653
|
}),
|
|
1654
|
-
procedure:
|
|
1654
|
+
procedure: dt.optional().meta({
|
|
1655
1655
|
description: "L'article du {@link http://www2.assemblee-nationale.fr/content/download/73698/754101/version/2/file/reglement.pdf | règlement de l'assemblée nationale} qui justifie ce point de l'ordre du jour (par exemple: la {@link http://www2.assemblee-nationale.fr/decouvrir-l-assemblee/textes-de-reference/reglement-de-l-assemblee-nationale/titre-ii/premiere-partie/chapitre-v | procédure d'examen simplifiée})."
|
|
1656
1656
|
}),
|
|
1657
1657
|
dossiersLegislatifsRefs: e.array(e.string()).optional().meta({
|
|
1658
1658
|
description: "Pour les réunions dont xsiType est 'seance_type', c'est à dire une séance publique ou bien 'reunionCommission_type', c'est à dire une commission, liste des identifiants uniques (uid) des {@link DossierParlementaire | dossiers législatifs} dont il sera question."
|
|
1659
1659
|
}),
|
|
1660
|
-
typePointOdj:
|
|
1660
|
+
typePointOdj: St.meta({
|
|
1661
1661
|
description: "Type de point de l'ordre du jour (par exemple: Discussion, Examen, Suite de la discussion, Amendements (Art. 88), etc."
|
|
1662
1662
|
}),
|
|
1663
1663
|
comiteSecret: e.boolean().meta({ description: "Le contenu de ce champ n'est pas défini." }),
|
|
1664
|
-
natureTravauxOdj:
|
|
1664
|
+
natureTravauxOdj: ut.optional().meta({
|
|
1665
1665
|
description: "Vaut ODJPR pour les ordre du jour prioritaires (quel que soit le lieu ou se tient la réunion) et ODJSN pour les ordre du jour des réunions qui se tiennent au Sénat."
|
|
1666
1666
|
}),
|
|
1667
1667
|
dateConfPres: e.union([e.date(), e.iso.date().pipe(e.coerce.date())]).optional().meta({
|
|
@@ -1670,28 +1670,28 @@ const Pa = /^((?<documentType>ACIN|ALCN|AVCE|AVIS|DECL|ETDI|LETT|MESS|MION|PION|
|
|
|
1670
1670
|
dateLettreMinistre: e.union([e.date(), e.iso.date().pipe(e.coerce.date())]).optional().meta({
|
|
1671
1671
|
description: "Pour les réunions dont xsiType est 'seance_type', c'est à dire une séance publique, date de la lettre du premier ministre qui demande l'inscription d'un texte à l'ordre du jour {@link http://www2.assemblee-nationale.fr/decouvrir-l-assemblee/role-et-pouvoirs-de-l-assemblee-nationale/l-organisation-des-travaux-de-l-assemblee-nationale/la-fixation-de-l-ordre-du-jour-et-la-conference-des-presidents | au nom du gouvernement}."
|
|
1672
1672
|
})
|
|
1673
|
-
}),
|
|
1673
|
+
}), Qs = e.object({
|
|
1674
1674
|
convocationOdj: e.array(e.string()).optional().meta({ description: "Texte décrivant l'objet de la réunion." }),
|
|
1675
1675
|
resumeOdj: e.array(e.string()).optional().meta({ description: "Texte court décrivant l'objet de la réunion." }),
|
|
1676
|
-
pointsOdj: e.array(
|
|
1676
|
+
pointsOdj: e.array(Bs).optional().meta({
|
|
1677
1677
|
description: "Liste des points inscrits à l'ordre du jour de la réunion"
|
|
1678
1678
|
})
|
|
1679
|
-
}),
|
|
1679
|
+
}), ks = e.object({
|
|
1680
1680
|
nom: e.string().optional().meta({ description: "Civilité Prénom Nom {@link Acteur | de l'acteur}." }),
|
|
1681
1681
|
acteurRef: P().meta({
|
|
1682
1682
|
description: "Référence à l'acteur"
|
|
1683
1683
|
})
|
|
1684
|
-
}),
|
|
1684
|
+
}), zs = e.object({
|
|
1685
1685
|
nom: e.string().meta({ description: "Nom de l'{@link Organe | organe}" }),
|
|
1686
1686
|
organeRef: T().meta({
|
|
1687
1687
|
description: "Référence à l'organe"
|
|
1688
1688
|
})
|
|
1689
|
-
}),
|
|
1690
|
-
acteurs: e.array(
|
|
1689
|
+
}), Gs = e.object({
|
|
1690
|
+
acteurs: e.array(ks).optional().meta({
|
|
1691
1691
|
description: "Liste des {@link Acteur | personnes} à l'initiative de la réunion."
|
|
1692
1692
|
}),
|
|
1693
|
-
organe:
|
|
1694
|
-
}),
|
|
1693
|
+
organe: zs.optional()
|
|
1694
|
+
}), Ws = e.object({
|
|
1695
1695
|
code: e.string().optional().meta({
|
|
1696
1696
|
description: "Code du lieu de la réunion: S pour sénat, AN pour assemblée nationale, CG pour congrès, SALREU* pour les salles de réunion."
|
|
1697
1697
|
}),
|
|
@@ -1700,45 +1700,45 @@ const Pa = /^((?<documentType>ACIN|ALCN|AVCE|AVIS|DECL|ETDI|LETT|MESS|MION|PION|
|
|
|
1700
1700
|
description: "Nom du lieu de la réunion et une indication sur son addresse."
|
|
1701
1701
|
}),
|
|
1702
1702
|
lieuRef: e.string().optional()
|
|
1703
|
-
}),
|
|
1703
|
+
}), Zs = e.object({
|
|
1704
1704
|
acteurRef: P().meta({
|
|
1705
1705
|
description: "Référence à l'acteur participant"
|
|
1706
1706
|
}),
|
|
1707
|
-
presence:
|
|
1707
|
+
presence: mt.meta({
|
|
1708
1708
|
description: "La valeur est 'absent' ou 'excusé' si la personne n'a pas participé à la réunion, 'présent' sinon."
|
|
1709
1709
|
})
|
|
1710
|
-
}),
|
|
1711
|
-
civ:
|
|
1710
|
+
}), Hs = e.object({
|
|
1711
|
+
civ: K.meta({ description: "Civilité." }),
|
|
1712
1712
|
prenom: e.string().meta({ description: "Prénom." }),
|
|
1713
1713
|
nom: e.string().meta({ description: "Nom de famille." }),
|
|
1714
1714
|
alpha: e.string().optional().meta({ description: "Le contenu de ce champ n'est pas défini." }),
|
|
1715
1715
|
trigramme: e.string().optional().meta({ description: "Le contenu de ce champ n'est pas défini." })
|
|
1716
|
-
}),
|
|
1717
|
-
xsiType:
|
|
1716
|
+
}), Ks = e.object({
|
|
1717
|
+
xsiType: $s.meta({
|
|
1718
1718
|
description: "Type de personne auditionnée (acteur interne ou personne externe)."
|
|
1719
1719
|
}),
|
|
1720
1720
|
uid: e.string().meta({
|
|
1721
1721
|
description: "Identifiant unique de l'{@link Acteur | acteur} ou bien, dans le cas ou il ne s'agit pas d'un acteur, un identifiant unique de personne externe débutant par PE qui est utilisé uniquement dans ce contexte."
|
|
1722
1722
|
}),
|
|
1723
|
-
ident:
|
|
1723
|
+
ident: Hs,
|
|
1724
1724
|
dateNais: e.union([e.date(), e.iso.datetime({ offset: !0 }).pipe(e.coerce.date())]).optional().meta({ description: "Date de naissance." })
|
|
1725
|
-
}),
|
|
1726
|
-
participantsInternes: e.array(
|
|
1727
|
-
personnesAuditionnees: e.array(
|
|
1725
|
+
}), Ys = e.object({
|
|
1726
|
+
participantsInternes: e.array(Zs).optional().meta({ description: "Liste des personnes participant à la réunion." }),
|
|
1727
|
+
personnesAuditionnees: e.array(Ks).optional().meta({
|
|
1728
1728
|
description: "Liste des personnes auditionnées durant la réunion."
|
|
1729
1729
|
})
|
|
1730
|
-
}),
|
|
1730
|
+
}), ea = e.object({
|
|
1731
1731
|
numSeanceJo: e.string().optional().meta({
|
|
1732
1732
|
description: "Numérotation de la séance selon l'ordre du journal officiel."
|
|
1733
1733
|
}),
|
|
1734
1734
|
idJo: e.string().optional().meta({
|
|
1735
1735
|
description: "Identifiant du journal officiel composé de l'année sur quatre chiffres et du numéro de séance (**numSeanceJo**) sur quatre chiffres (exemple: 20190053)."
|
|
1736
1736
|
}),
|
|
1737
|
-
quantieme:
|
|
1737
|
+
quantieme: gt.meta({
|
|
1738
1738
|
description: "Numéro de la séance dans la journée."
|
|
1739
1739
|
}),
|
|
1740
1740
|
dateSeance: e.union([e.date(), e.iso.date().pipe(e.coerce.date())]).meta({ description: "Date à laquelle la séance publique a lieu." })
|
|
1741
|
-
}),
|
|
1741
|
+
}), ta = e.object({
|
|
1742
1742
|
estReunionInternationale: e.boolean().meta({
|
|
1743
1743
|
description: "'false' si la réunion ne concerne pas l'international, 'true' sinon."
|
|
1744
1744
|
}),
|
|
@@ -1746,87 +1746,87 @@ const Pa = /^((?<documentType>ACIN|ALCN|AVCE|AVIS|DECL|ETDI|LETT|MESS|MION|PION|
|
|
|
1746
1746
|
informationsComplementaires: e.string().optional().meta({
|
|
1747
1747
|
description: "Contient parfois le nom de la personne qui organise la réunion."
|
|
1748
1748
|
})
|
|
1749
|
-
}),
|
|
1749
|
+
}), en = e.object({
|
|
1750
1750
|
schemaVersion: e.string().optional().meta({ description: "Le contenu de ce champ n'est pas défini." }),
|
|
1751
|
-
xsiType:
|
|
1752
|
-
uid:
|
|
1751
|
+
xsiType: ft.optional(),
|
|
1752
|
+
uid: j().meta({ description: "Identifiant unique de la réunion" }),
|
|
1753
1753
|
timestampDebut: e.union([e.date(), e.iso.datetime({ offset: !0 }).pipe(e.coerce.date())]).meta({ description: "Date et heure du début de la réunion." }),
|
|
1754
1754
|
timestampFin: e.union([
|
|
1755
1755
|
e.date(),
|
|
1756
1756
|
e.iso.date().pipe(e.coerce.date()),
|
|
1757
1757
|
e.iso.datetime({ offset: !0 }).pipe(e.coerce.date())
|
|
1758
1758
|
]).optional().meta({ description: "Date et heure de la fin de la réunion." }),
|
|
1759
|
-
lieu:
|
|
1759
|
+
lieu: Ws.optional().meta({
|
|
1760
1760
|
description: "Lieu de la réunion."
|
|
1761
1761
|
}),
|
|
1762
|
-
cycleDeVie:
|
|
1762
|
+
cycleDeVie: Yt.meta({
|
|
1763
1763
|
description: "Cycle de vie de la réunion."
|
|
1764
1764
|
}),
|
|
1765
|
-
demandeurs:
|
|
1765
|
+
demandeurs: Gs.optional().meta({
|
|
1766
1766
|
description: "Le cas échéant l'{@link Organe | organe} et/ou les {@link Acteur | acteurs} à l'initiative de la réunion."
|
|
1767
1767
|
}),
|
|
1768
1768
|
organeReuniRef: e.string().optional().meta({
|
|
1769
1769
|
description: "Le cas échéant, l'organe qui se réunit. Ce n'est pas nécessairement identique au demandeur. Par exemple le président de l'assemblée nationale convoque la conférence des présidents."
|
|
1770
1770
|
}),
|
|
1771
|
-
typeReunion:
|
|
1771
|
+
typeReunion: Ie.optional().meta({
|
|
1772
1772
|
description: "Le contenu de ce champ n'est pas défini."
|
|
1773
1773
|
}),
|
|
1774
|
-
participants:
|
|
1774
|
+
participants: Ys.optional(),
|
|
1775
1775
|
sessionRef: e.string().optional(),
|
|
1776
1776
|
ouverturePresse: e.boolean().optional().meta({
|
|
1777
1777
|
description: "'true' si la réunion est accessible à la presse, 'false' sinon"
|
|
1778
1778
|
}),
|
|
1779
|
-
odj:
|
|
1779
|
+
odj: Qs.optional(),
|
|
1780
1780
|
compteRenduRef: e.string().optional().meta({
|
|
1781
1781
|
description: "Identifiant unique du {@link http://data.assemblee-nationale.fr/travaux-parlementaires/debats | compte rendu} d'une séance publique. Uniquement si xsiType égal à 'seance_type'."
|
|
1782
1782
|
}),
|
|
1783
1783
|
transcriptionRef: e.string().optional(),
|
|
1784
|
-
identifiants:
|
|
1784
|
+
identifiants: ea.optional().meta({
|
|
1785
1785
|
description: "Identifiant de la séance publique. Uniquement si xsiType égal à 'seance_type'."
|
|
1786
1786
|
}),
|
|
1787
|
-
formatReunion:
|
|
1787
|
+
formatReunion: ct.optional().meta({
|
|
1788
1788
|
description: "Le contenu de ce champ n'est pas défini."
|
|
1789
1789
|
}),
|
|
1790
|
-
infosReunionsInternationale:
|
|
1790
|
+
infosReunionsInternationale: ta.optional().meta({
|
|
1791
1791
|
description: "Informations sur les personnes et pays concernées par une réunion de commission qui concerne l'international, le cas échéant. Uniquement si xsiType égal à 'reunionCommission_type'."
|
|
1792
1792
|
}),
|
|
1793
1793
|
captationVideo: e.boolean().optional().meta({ description: "Vrai si la réunion est enregistrée en vidéo." }),
|
|
1794
1794
|
visioConference: e.string().optional(),
|
|
1795
1795
|
urlVideo: e.string().optional().meta({ description: "Lien m3u8 de la video de la réunion." }),
|
|
1796
1796
|
timecodeDebutVideo: e.number().optional().meta({ description: "Timecode de début de la vidéo de la réunion." })
|
|
1797
|
-
}),
|
|
1798
|
-
reunions: e.array(
|
|
1797
|
+
}), na = e.object({
|
|
1798
|
+
reunions: e.array(en)
|
|
1799
1799
|
});
|
|
1800
|
-
function
|
|
1801
|
-
const n =
|
|
1800
|
+
function ia(t) {
|
|
1801
|
+
const n = en.safeParse(JSON.parse(t));
|
|
1802
1802
|
if (!n.success)
|
|
1803
|
-
throw new Error(
|
|
1803
|
+
throw new Error(tn("ReunionClean", n.error));
|
|
1804
1804
|
return n.data;
|
|
1805
1805
|
}
|
|
1806
|
-
function
|
|
1807
|
-
const n =
|
|
1806
|
+
function oa(t) {
|
|
1807
|
+
const n = na.safeParse(JSON.parse(t));
|
|
1808
1808
|
if (!n.success)
|
|
1809
|
-
throw new Error(
|
|
1809
|
+
throw new Error(tn("AgendasClean", n.error));
|
|
1810
1810
|
return n.data;
|
|
1811
1811
|
}
|
|
1812
|
-
function
|
|
1812
|
+
function sa(t) {
|
|
1813
1813
|
return JSON.stringify(t, null, 2);
|
|
1814
1814
|
}
|
|
1815
|
-
function
|
|
1815
|
+
function aa(t) {
|
|
1816
1816
|
return JSON.stringify(t, null, 2);
|
|
1817
1817
|
}
|
|
1818
|
-
function
|
|
1819
|
-
const i = n.issues.map((
|
|
1818
|
+
function tn(t, n) {
|
|
1819
|
+
const i = n.issues.map((s) => ` - ${s.path.join(".")}: ${s.message}`).join(`
|
|
1820
1820
|
`);
|
|
1821
1821
|
return `Invalid ${t}:
|
|
1822
1822
|
${i}`;
|
|
1823
1823
|
}
|
|
1824
|
-
const
|
|
1825
|
-
toReunion:
|
|
1826
|
-
reunionToJson:
|
|
1827
|
-
toAgendas:
|
|
1828
|
-
agendasToJson:
|
|
1829
|
-
},
|
|
1824
|
+
const Ue = {
|
|
1825
|
+
toReunion: ia,
|
|
1826
|
+
reunionToJson: sa,
|
|
1827
|
+
toAgendas: oa,
|
|
1828
|
+
agendasToJson: aa
|
|
1829
|
+
}, ra = [
|
|
1830
1830
|
/**
|
|
1831
1831
|
* Accord international
|
|
1832
1832
|
*
|
|
@@ -1857,7 +1857,7 @@ const Xe = {
|
|
|
1857
1857
|
* Legislative text
|
|
1858
1858
|
*/
|
|
1859
1859
|
"texteLoi_Type"
|
|
1860
|
-
],
|
|
1860
|
+
], nn = e.enum(ra), la = [
|
|
1861
1861
|
/**
|
|
1862
1862
|
* Dossier commission d'enquête
|
|
1863
1863
|
*
|
|
@@ -1894,9 +1894,9 @@ const Xe = {
|
|
|
1894
1894
|
* National Assembly resolution dossier
|
|
1895
1895
|
*/
|
|
1896
1896
|
"DossierResolutionAN"
|
|
1897
|
-
],
|
|
1898
|
-
|
|
1899
|
-
),
|
|
1897
|
+
], ca = e.enum(
|
|
1898
|
+
la
|
|
1899
|
+
), ua = [
|
|
1900
1900
|
/**
|
|
1901
1901
|
* Adoption Europe
|
|
1902
1902
|
*
|
|
@@ -2077,35 +2077,35 @@ const Xe = {
|
|
|
2077
2077
|
* Referral to Constitutional Council
|
|
2078
2078
|
*/
|
|
2079
2079
|
"SaisineConseilConstit_Type"
|
|
2080
|
-
],
|
|
2080
|
+
], pa = e.enum(ua), ie = e.object({
|
|
2081
2081
|
/** Code unique pour traitement automatisé. */
|
|
2082
2082
|
code: e.string(),
|
|
2083
2083
|
/** Signification du code. */
|
|
2084
2084
|
libelle: e.string()
|
|
2085
|
-
}),
|
|
2085
|
+
}), ma = e.object({
|
|
2086
2086
|
/** Code du sous-type. */
|
|
2087
|
-
code:
|
|
2087
|
+
code: Nt,
|
|
2088
2088
|
/** Libellé du sous-type. */
|
|
2089
2089
|
libelle: e.string().optional(),
|
|
2090
2090
|
/** Libellé d'édition du sous-type. */
|
|
2091
2091
|
libelleEdition: e.string().optional()
|
|
2092
|
-
}),
|
|
2092
|
+
}), da = e.object({
|
|
2093
2093
|
/** Dépôt. */
|
|
2094
|
-
depot:
|
|
2094
|
+
depot: ie,
|
|
2095
2095
|
/** Classe. */
|
|
2096
|
-
classe:
|
|
2096
|
+
classe: ie,
|
|
2097
2097
|
/** Espèce. */
|
|
2098
|
-
espece:
|
|
2099
|
-
}),
|
|
2098
|
+
espece: ie.optional()
|
|
2099
|
+
}), on = e.object({
|
|
2100
2100
|
/** Famille de classification. */
|
|
2101
|
-
famille:
|
|
2101
|
+
famille: da.optional(),
|
|
2102
2102
|
/** Type de document. */
|
|
2103
|
-
type:
|
|
2103
|
+
type: ie,
|
|
2104
2104
|
/** Sous-type de document. */
|
|
2105
|
-
sousType:
|
|
2105
|
+
sousType: ma.optional(),
|
|
2106
2106
|
/** Statut d'adoption du document. */
|
|
2107
|
-
statutAdoption:
|
|
2108
|
-
}),
|
|
2107
|
+
statutAdoption: Rt.optional()
|
|
2108
|
+
}), ga = e.object({
|
|
2109
2109
|
/** Date de création du document. */
|
|
2110
2110
|
dateCreation: _(),
|
|
2111
2111
|
/** Date de dépôt du document (toujours identique à la date de création). */
|
|
@@ -2114,37 +2114,37 @@ const Xe = {
|
|
|
2114
2114
|
datePublication: _(),
|
|
2115
2115
|
/** Date de première publication sur http://assemblee-nationale.fr */
|
|
2116
2116
|
datePublicationWeb: _()
|
|
2117
|
-
}),
|
|
2117
|
+
}), sn = e.object({
|
|
2118
2118
|
/** Chronologie des dates importantes. */
|
|
2119
|
-
chrono:
|
|
2120
|
-
}),
|
|
2119
|
+
chrono: ga
|
|
2120
|
+
}), an = e.object({
|
|
2121
2121
|
/** Titre du document. Dans le cas d'un projet ou d'une proposition de loi, tel qu'il apparait au début du texte de loi. */
|
|
2122
2122
|
titrePrincipal: e.string(),
|
|
2123
2123
|
/** Version abrégée du titre du document. Dans le cas d'un projet ou d'une proposition de loi il peut être ambigu. */
|
|
2124
2124
|
titrePrincipalCourt: e.string()
|
|
2125
|
-
}),
|
|
2125
|
+
}), fa = e.object({
|
|
2126
2126
|
/** Identifiant unique (uid) de l'auteur. */
|
|
2127
2127
|
acteurRef: e.string(),
|
|
2128
2128
|
/** Titre donné en raison du mandat, similaire à libQualiteSex dans le mandat de l'auteur. */
|
|
2129
|
-
qualite:
|
|
2130
|
-
}),
|
|
2129
|
+
qualite: be
|
|
2130
|
+
}), rn = e.object({
|
|
2131
2131
|
/** Informations sur l'acteur auteur. */
|
|
2132
|
-
acteur:
|
|
2132
|
+
acteur: fa.optional(),
|
|
2133
2133
|
/** Identifiant unique (uid) de l'organe. */
|
|
2134
2134
|
organeRef: e.string().optional()
|
|
2135
|
-
}),
|
|
2135
|
+
}), ln = e.object({
|
|
2136
2136
|
/** Type de correction appliquée au document. */
|
|
2137
|
-
typeCorrection:
|
|
2137
|
+
typeCorrection: Dt,
|
|
2138
2138
|
/** Niveau de correction. */
|
|
2139
2139
|
niveauCorrection: e.string().optional()
|
|
2140
|
-
}),
|
|
2140
|
+
}), cn = e.object({
|
|
2141
2141
|
/** Numéro de bibard du document, c'est à dire les quatre derniers chiffres de l'identifiant unique (uid). */
|
|
2142
2142
|
numNotice: e.string().optional(),
|
|
2143
2143
|
/** Formule associée au document. */
|
|
2144
2144
|
formule: e.string().optional(),
|
|
2145
2145
|
/** Un document est dit conforme lorsqu'il est adopté sans modification par les deux assemblées. */
|
|
2146
2146
|
adoptionConforme: e.boolean()
|
|
2147
|
-
}),
|
|
2147
|
+
}), un = e.object({
|
|
2148
2148
|
/** Numéro DIAN. */
|
|
2149
2149
|
dian: e.string().optional(),
|
|
2150
2150
|
/** Le numéro ISBN (International Standard Book Number) du document imprimé (habituellement null). */
|
|
@@ -2155,23 +2155,23 @@ const Xe = {
|
|
|
2155
2155
|
nbPage: e.string().optional(),
|
|
2156
2156
|
/** Le prix en euros d'un exemplaire papier du document à la boutique de l'assemblée nationale. */
|
|
2157
2157
|
prix: e.string().optional()
|
|
2158
|
-
}),
|
|
2158
|
+
}), Sa = e.object({
|
|
2159
2159
|
/** Mots clés pour l'indexation. */
|
|
2160
2160
|
libelleTheme: e.string()
|
|
2161
|
-
}),
|
|
2161
|
+
}), ba = e.object({
|
|
2162
2162
|
/** Niveau d'indexation (signification non définie). */
|
|
2163
2163
|
"@niveau": e.string(),
|
|
2164
2164
|
/** Thème d'indexation. */
|
|
2165
|
-
theme:
|
|
2166
|
-
}),
|
|
2165
|
+
theme: Sa
|
|
2166
|
+
}), Be = e.object({
|
|
2167
2167
|
/** Collection de thèmes pour l'indexation. */
|
|
2168
|
-
themes:
|
|
2169
|
-
}),
|
|
2168
|
+
themes: ba
|
|
2169
|
+
}), Aa = e.object({
|
|
2170
2170
|
/** Identifiant unique (uid) du groupe politique au sein duquel le co-signataire exerce son mandat. */
|
|
2171
2171
|
organeRef: e.string(),
|
|
2172
2172
|
/** Le co-signataire engage aussi les députés apparentés au groupe politique au sein duquel il exerce son mandat. */
|
|
2173
2173
|
etApparentes: e.boolean()
|
|
2174
|
-
}),
|
|
2174
|
+
}), Ca = e.object({
|
|
2175
2175
|
/** Identifiant unique (uid) du co-signataire. */
|
|
2176
2176
|
acteurRef: e.string().optional(),
|
|
2177
2177
|
/** Date de la co-signature. */
|
|
@@ -2181,129 +2181,129 @@ const Xe = {
|
|
|
2181
2181
|
/** Indique si le co-signataire a été édité. */
|
|
2182
2182
|
edite: e.boolean(),
|
|
2183
2183
|
/** Groupe politique du co-signataire. */
|
|
2184
|
-
organe:
|
|
2185
|
-
}),
|
|
2184
|
+
organe: Aa.optional()
|
|
2185
|
+
}), ha = e.object({
|
|
2186
2186
|
/** Vaut true si le texte peut être amendé, false sinon. */
|
|
2187
2187
|
amendable: e.boolean()
|
|
2188
|
-
}),
|
|
2188
|
+
}), _a = e.object({
|
|
2189
2189
|
/** Identifiant unique (uid) de la commission. */
|
|
2190
2190
|
organeRef: e.string(),
|
|
2191
2191
|
/** Toujours égal à true. */
|
|
2192
2192
|
amendable: e.boolean()
|
|
2193
|
-
}),
|
|
2193
|
+
}), ja = e.object({
|
|
2194
2194
|
/** Détermine si le texte est susceptible d'être amendé lors d'une séance publique. */
|
|
2195
|
-
amendementsSeance:
|
|
2195
|
+
amendementsSeance: ha,
|
|
2196
2196
|
/** Liste des commissions susceptibles d'amender le texte. Si aucune commission ne peut amender le texte, ce champ est omis. */
|
|
2197
|
-
amendementsCommission: e.array(
|
|
2198
|
-
}),
|
|
2197
|
+
amendementsCommission: e.array(_a).optional()
|
|
2198
|
+
}), pn = e.lazy(
|
|
2199
2199
|
() => e.object({
|
|
2200
2200
|
/** Type du document de la division. */
|
|
2201
|
-
xsiType:
|
|
2201
|
+
xsiType: nn,
|
|
2202
2202
|
/** Identifiant unique de la division. */
|
|
2203
|
-
uid:
|
|
2203
|
+
uid: j().meta({ description: "Identifiant unique de la division" }),
|
|
2204
2204
|
/** Numéro de la législature sous laquelle a été créé le dossier. Nombre entier. */
|
|
2205
2205
|
legislature: e.string().optional(),
|
|
2206
2206
|
/** Cycle de vie du document. */
|
|
2207
|
-
cycleDeVie:
|
|
2207
|
+
cycleDeVie: sn,
|
|
2208
2208
|
/** Dénomination structurelle de la division. */
|
|
2209
2209
|
denominationStructurelle: e.string(),
|
|
2210
2210
|
/** Titres de la division. */
|
|
2211
|
-
titres:
|
|
2211
|
+
titres: an,
|
|
2212
2212
|
/** La liste des sous-documents qui composent cette division. */
|
|
2213
|
-
divisions: e.array(
|
|
2213
|
+
divisions: e.array(pn).optional(),
|
|
2214
2214
|
/** Identifiant unique (uid) du dossier parlementaire pour lequel ce document a été créé. */
|
|
2215
2215
|
dossierRef: e.string(),
|
|
2216
2216
|
/** Classification du document. */
|
|
2217
|
-
classification:
|
|
2217
|
+
classification: on,
|
|
2218
2218
|
/** Les auteurs du document. */
|
|
2219
|
-
auteurs: e.array(
|
|
2219
|
+
auteurs: e.array(rn),
|
|
2220
2220
|
/** Liste des identifiants uniques (uid) des organes référents. */
|
|
2221
2221
|
organesReferents: e.array(e.string()).optional(),
|
|
2222
2222
|
/** Correction appliquée au document. */
|
|
2223
|
-
correction:
|
|
2223
|
+
correction: ln.optional(),
|
|
2224
2224
|
/** Notice du document. */
|
|
2225
|
-
notice:
|
|
2225
|
+
notice: cn,
|
|
2226
2226
|
/** Indexation thématique du document. */
|
|
2227
|
-
indexation:
|
|
2227
|
+
indexation: Be.optional(),
|
|
2228
2228
|
/** Informations d'imprimerie. */
|
|
2229
|
-
imprimerie:
|
|
2229
|
+
imprimerie: un.optional(),
|
|
2230
2230
|
/** Indique si le rapport a été publié. */
|
|
2231
2231
|
rapportPublie: e.boolean().optional()
|
|
2232
2232
|
})
|
|
2233
|
-
),
|
|
2233
|
+
), mn = e.object({
|
|
2234
2234
|
/** Version du schéma. */
|
|
2235
2235
|
schemaVersion: e.string().optional(),
|
|
2236
2236
|
/** Type du document. */
|
|
2237
|
-
xsiType:
|
|
2237
|
+
xsiType: nn,
|
|
2238
2238
|
/** Identifiant unique du document. L'URL pour télécharger le contenu a la forme https://git.en-root.org/tricoteuses/data/assemblee-textes/-/tree/master/__legislature__/uid/__uid__.__format__. */
|
|
2239
|
-
uid:
|
|
2239
|
+
uid: j().meta({ description: "Identifiant unique du document" }),
|
|
2240
2240
|
/** Numéro de la législature sous laquelle a été créé le dossier. Nombre entier. */
|
|
2241
2241
|
legislature: e.string().optional(),
|
|
2242
2242
|
/** Cycle de vie du document. */
|
|
2243
|
-
cycleDeVie:
|
|
2243
|
+
cycleDeVie: sn,
|
|
2244
2244
|
/** Dénomination structurelle du document. */
|
|
2245
|
-
denominationStructurelle:
|
|
2245
|
+
denominationStructurelle: Ee,
|
|
2246
2246
|
/** Provenance du document. */
|
|
2247
|
-
provenance:
|
|
2247
|
+
provenance: Pe.optional(),
|
|
2248
2248
|
/** Titres du document. */
|
|
2249
|
-
titres:
|
|
2249
|
+
titres: an,
|
|
2250
2250
|
/** La liste des sous-documents qui composent ce document. */
|
|
2251
|
-
divisions: e.array(
|
|
2251
|
+
divisions: e.array(pn).optional(),
|
|
2252
2252
|
/** Identifiant unique (uid) du dossier parlementaire pour lequel ce document a été créé. */
|
|
2253
2253
|
dossierRef: e.string(),
|
|
2254
2254
|
/** Classification du document. */
|
|
2255
|
-
classification:
|
|
2255
|
+
classification: on,
|
|
2256
2256
|
/** Les auteurs du document. */
|
|
2257
|
-
auteurs: e.array(
|
|
2257
|
+
auteurs: e.array(rn),
|
|
2258
2258
|
/** Correction appliquée au document. */
|
|
2259
|
-
correction:
|
|
2259
|
+
correction: ln.optional(),
|
|
2260
2260
|
/** Notice du document. */
|
|
2261
|
-
notice:
|
|
2261
|
+
notice: cn,
|
|
2262
2262
|
/** Indexation thématique du document. */
|
|
2263
|
-
indexation:
|
|
2263
|
+
indexation: Be.optional(),
|
|
2264
2264
|
/** Informations d'imprimerie. */
|
|
2265
|
-
imprimerie:
|
|
2265
|
+
imprimerie: un.optional(),
|
|
2266
2266
|
/** Les co-signataires du document. */
|
|
2267
|
-
coSignataires: e.array(
|
|
2267
|
+
coSignataires: e.array(Ca).optional(),
|
|
2268
2268
|
/** Liste des organes (commissions ou séance publique) susceptibles d'amender le texte. */
|
|
2269
|
-
depotAmendements:
|
|
2269
|
+
depotAmendements: ja.optional(),
|
|
2270
2270
|
/** Liste des identifiants uniques (uid) des organes référents. */
|
|
2271
2271
|
organesReferents: e.array(e.string()).optional(),
|
|
2272
2272
|
/** Indique si le rapport a été publié. */
|
|
2273
2273
|
rapportPublie: e.boolean().optional()
|
|
2274
|
-
}),
|
|
2274
|
+
}), ya = e.object({
|
|
2275
2275
|
/** Titre du dossier législatif. */
|
|
2276
2276
|
titre: e.string(),
|
|
2277
2277
|
/** Chemin permettant de construire l'URL du dossier législatif sur le site de l'Assemblée nationale: http://www.assemblee-nationale.fr/dyn/__legislature__/dossiers/__titreChemin__ */
|
|
2278
2278
|
titreChemin: e.string().optional(),
|
|
2279
2279
|
/** URL du dossier législatif sur le site du Sénat. */
|
|
2280
2280
|
senatChemin: e.string().optional()
|
|
2281
|
-
}),
|
|
2281
|
+
}), Oa = e.object({
|
|
2282
2282
|
/** Identifiant unique (uid) de l'acteur. */
|
|
2283
2283
|
acteurRef: e.string(),
|
|
2284
2284
|
/** Identifiant unique (uid) du mandat. */
|
|
2285
2285
|
mandatRef: e.string().optional()
|
|
2286
|
-
}),
|
|
2286
|
+
}), dn = e.object({
|
|
2287
2287
|
/** Identifiants uniques (uid) des acteurs et de leurs mandats. */
|
|
2288
|
-
acteurs: e.array(
|
|
2288
|
+
acteurs: e.array(Oa).optional(),
|
|
2289
2289
|
/** Identifiant unique (uid) de l'organe à l'initiative du dossier. */
|
|
2290
2290
|
organeRef: e.string().optional()
|
|
2291
|
-
}),
|
|
2291
|
+
}), Na = e.object({
|
|
2292
2292
|
/** Cause de la fusion du dossier. */
|
|
2293
|
-
cause:
|
|
2293
|
+
cause: Lt,
|
|
2294
2294
|
/** Identifiant unique (uid) du dossier parlementaire absorbant. */
|
|
2295
2295
|
dossierAbsorbantRef: e.string()
|
|
2296
|
-
}),
|
|
2296
|
+
}), gn = e.object({
|
|
2297
2297
|
/** Identifiant unique (uid) de l'acteur rapporteur. */
|
|
2298
2298
|
acteurRef: e.string(),
|
|
2299
2299
|
/** Type de rapporteur (rapporteur, rapporteur spécial, rapporteur pour avis, rapporteur général). */
|
|
2300
|
-
typeRapporteur:
|
|
2300
|
+
typeRapporteur: be,
|
|
2301
2301
|
/** Identifiant unique (uid) de l'étude relative à un projet de loi de finance. */
|
|
2302
2302
|
etudePlfRef: e.string().optional()
|
|
2303
|
-
}),
|
|
2303
|
+
}), fn = e.lazy(
|
|
2304
2304
|
() => e.object({
|
|
2305
2305
|
/** Au premier niveau le type est toujours 'mission principale', au second niveau le type peut être 'mission secondaire' ou 'partie de mission'. */
|
|
2306
|
-
typeMission:
|
|
2306
|
+
typeMission: Et,
|
|
2307
2307
|
/** Code de la mission. */
|
|
2308
2308
|
codeMission: e.string().optional(),
|
|
2309
2309
|
/** Libellé long de la mission. */
|
|
@@ -2311,21 +2311,21 @@ const Xe = {
|
|
|
2311
2311
|
/** Nom de la mission de l'état à laquelle se rapporte l'étude. */
|
|
2312
2312
|
libelleCourt: e.string(),
|
|
2313
2313
|
/** Type de budget. */
|
|
2314
|
-
typeBudget:
|
|
2314
|
+
typeBudget: Tt,
|
|
2315
2315
|
/** Des missions secondaires (ou partie de mission) peuvent subdiviser une mission principale. */
|
|
2316
|
-
missions: e.array(
|
|
2316
|
+
missions: e.array(fn).optional()
|
|
2317
2317
|
})
|
|
2318
|
-
),
|
|
2318
|
+
), Ra = e.object({
|
|
2319
2319
|
/** Identifiant unique de l'étude PLF. */
|
|
2320
|
-
uid:
|
|
2320
|
+
uid: j().meta({ description: "Identifiant unique de l'étude PLF" }),
|
|
2321
2321
|
/** Identifiant unique (uid) de la commission qui réalise l'étude. */
|
|
2322
2322
|
organeRef: e.string(),
|
|
2323
2323
|
/** Identifiant unique (uid) du document. */
|
|
2324
2324
|
texteAssocie: e.string().optional(),
|
|
2325
2325
|
/** Rapporteurs des études du projet de loi de finance. */
|
|
2326
|
-
rapporteurs: e.array(
|
|
2326
|
+
rapporteurs: e.array(gn).optional(),
|
|
2327
2327
|
/** Étude réalisée pour le compte du ministère de l'économie et des finances. */
|
|
2328
|
-
missionMinefi:
|
|
2328
|
+
missionMinefi: fn.optional(),
|
|
2329
2329
|
/** Ordre DIQS (signification non définie). */
|
|
2330
2330
|
ordreDiqs: e.string(),
|
|
2331
2331
|
/** Ordre commission (signification non définie). */
|
|
@@ -2335,24 +2335,24 @@ const Xe = {
|
|
|
2335
2335
|
famCode: e.string(),
|
|
2336
2336
|
/** Signification du code. */
|
|
2337
2337
|
libelle: e.string().optional()
|
|
2338
|
-
}),
|
|
2338
|
+
}), Da = e.object({
|
|
2339
2339
|
/** Nom de l'acte. */
|
|
2340
2340
|
nomCanonique: e.string(),
|
|
2341
2341
|
/** Equivalent du nomCanonique mais plus court. */
|
|
2342
2342
|
libelleCourt: e.string().optional()
|
|
2343
|
-
}),
|
|
2343
|
+
}), Ia = e.object({
|
|
2344
2344
|
/** Date d'ouverture des contributions. */
|
|
2345
2345
|
dateOuverture: e.string().optional(),
|
|
2346
2346
|
/** Date de fermeture des contributions. */
|
|
2347
2347
|
dateFermeture: e.string().optional()
|
|
2348
|
-
}),
|
|
2348
|
+
}), Ta = e.object({
|
|
2349
2349
|
/** BTA pour Bibard du Texte Adopté ou TAP pour Texte Adopté Provisoire. */
|
|
2350
|
-
typeTexte:
|
|
2350
|
+
typeTexte: Pt,
|
|
2351
2351
|
/** Identifiant unique du texte adopté. */
|
|
2352
2352
|
texteAssocieRef: e.string()
|
|
2353
|
-
}),
|
|
2353
|
+
}), Ye = e.object({
|
|
2354
2354
|
/** Type de Journal Officiel. */
|
|
2355
|
-
typeJo:
|
|
2355
|
+
typeJo: Mt,
|
|
2356
2356
|
/** Date de publication au Journal Officiel. */
|
|
2357
2357
|
dateJo: e.string(),
|
|
2358
2358
|
/** Numéro du Journal Officiel. */
|
|
@@ -2361,43 +2361,43 @@ const Xe = {
|
|
|
2361
2361
|
urlLegifrance: e.string().optional(),
|
|
2362
2362
|
/** Numéro NOR attribué au texte promulgué. */
|
|
2363
2363
|
referenceNor: e.string().optional()
|
|
2364
|
-
}),
|
|
2364
|
+
}), Ea = e.object({
|
|
2365
2365
|
/** Type du texte européen (par exemple: Règlement de la Commission). */
|
|
2366
2366
|
typeTexteEuropeen: e.string(),
|
|
2367
2367
|
/** Titre du texte publié dans un numéro du Journal officiel de l'Union européenne. */
|
|
2368
2368
|
titreTexteEuropeen: e.string()
|
|
2369
|
-
}),
|
|
2369
|
+
}), Pa = e.object({
|
|
2370
2370
|
/** Référence du Journal officiel de l'Union européenne, de la forme L suivit d'un numéro. */
|
|
2371
2371
|
refJoce: e.string(),
|
|
2372
2372
|
/** Date de la publication du Journal officiel de l'Union européenne. */
|
|
2373
2373
|
dateJoce: e.string()
|
|
2374
|
-
}),
|
|
2374
|
+
}), va = e.object({
|
|
2375
2375
|
/** Type du document externe (par exemple: Décret). */
|
|
2376
|
-
typeDoc:
|
|
2376
|
+
typeDoc: wt,
|
|
2377
2377
|
/** Référence ou identifiant du texte externe. */
|
|
2378
2378
|
texteRef: e.string(),
|
|
2379
2379
|
/** Titre du document externe. */
|
|
2380
2380
|
titreDoc: e.string(),
|
|
2381
2381
|
/** URL vers le document externe. */
|
|
2382
2382
|
urlDoc: e.string()
|
|
2383
|
-
}),
|
|
2383
|
+
}), Sn = e.lazy(
|
|
2384
2384
|
() => e.object({
|
|
2385
2385
|
/** Type d'acte législatif. */
|
|
2386
|
-
xsiType:
|
|
2386
|
+
xsiType: pa,
|
|
2387
2387
|
/** Identifiant unique de l'acte législatif. */
|
|
2388
|
-
uid:
|
|
2388
|
+
uid: j().meta({
|
|
2389
2389
|
description: "Identifiant unique de l'acte législatif"
|
|
2390
2390
|
}),
|
|
2391
2391
|
/** Code de l'acte législatif dont la valeur dépend de sa place dans la hiérarchie. */
|
|
2392
|
-
codeActe:
|
|
2392
|
+
codeActe: Ot,
|
|
2393
2393
|
/** Nom et code de l'acte législatif. */
|
|
2394
|
-
libelleActe:
|
|
2394
|
+
libelleActe: Da,
|
|
2395
2395
|
/** Identifiant unique (uid) de l'organe à l'origine de l'acte (par exemple: commission, AN, Senat, bureau, groupe politique). */
|
|
2396
2396
|
organeRef: e.string().optional(),
|
|
2397
2397
|
/** Date à laquelle l'acte a débuté. */
|
|
2398
2398
|
dateActe: _(),
|
|
2399
2399
|
/** Liste des actes législatifs inclus. */
|
|
2400
|
-
actesLegislatifs: e.array(
|
|
2400
|
+
actesLegislatifs: e.array(Sn).optional(),
|
|
2401
2401
|
/** Année de la décision. */
|
|
2402
2402
|
anneeDecision: e.string().optional(),
|
|
2403
2403
|
/** Auteur de la motion. */
|
|
@@ -2409,7 +2409,7 @@ const Xe = {
|
|
|
2409
2409
|
/** Code de la loi. */
|
|
2410
2410
|
codeLoi: e.string().optional(),
|
|
2411
2411
|
/** Contributions volontaires recueillies sur Internet pour l'étude d'impact. */
|
|
2412
|
-
contributionInternaute:
|
|
2412
|
+
contributionInternaute: Ia.optional(),
|
|
2413
2413
|
/** Décision prise. */
|
|
2414
2414
|
decision: G.optional(),
|
|
2415
2415
|
/** Identifiant unique (uid) du dépôt initial en lecture définitive. */
|
|
@@ -2417,15 +2417,15 @@ const Xe = {
|
|
|
2417
2417
|
/** Formule de la décision. */
|
|
2418
2418
|
formuleDecision: e.string().optional(),
|
|
2419
2419
|
/** Informations relatives à la publication d'un texte promulgué au journal officiel. */
|
|
2420
|
-
infoJo:
|
|
2420
|
+
infoJo: Ye.optional(),
|
|
2421
2421
|
/** Informations relatives à la publication au Journal officiel de l'Union européenne. */
|
|
2422
|
-
infoJoce:
|
|
2422
|
+
infoJoce: Pa.optional(),
|
|
2423
2423
|
/** Informations relatives à la publication d'une lettre rectificative au journal officiel. */
|
|
2424
|
-
infoJoRect: e.array(
|
|
2424
|
+
infoJoRect: e.array(Ye).optional(),
|
|
2425
2425
|
/** Les acteurs à l'initiative de l'acte et leurs mandats. */
|
|
2426
|
-
initiateur:
|
|
2426
|
+
initiateur: dn.optional(),
|
|
2427
2427
|
/** Motif de l'acte. */
|
|
2428
|
-
motif:
|
|
2428
|
+
motif: vt.optional(),
|
|
2429
2429
|
/** Numéro de la décision. */
|
|
2430
2430
|
numDecision: e.string().optional(),
|
|
2431
2431
|
/** Identifiant unique (uid) du point de l'ordre du jour. */
|
|
@@ -2433,7 +2433,7 @@ const Xe = {
|
|
|
2433
2433
|
/** Identifiant unique (uid) de l'organe de provenance. */
|
|
2434
2434
|
provenanceRef: e.string().optional(),
|
|
2435
2435
|
/** Liste des rapporteurs. */
|
|
2436
|
-
rapporteurs: e.array(
|
|
2436
|
+
rapporteurs: e.array(gn).optional(),
|
|
2437
2437
|
/** Numéro NOR de référence. */
|
|
2438
2438
|
referenceNor: e.string().optional(),
|
|
2439
2439
|
/** Identifiant unique (uid) de la réunion. */
|
|
@@ -2447,13 +2447,13 @@ const Xe = {
|
|
|
2447
2447
|
/** Identifiant unique (uid) du texte associé. */
|
|
2448
2448
|
texteAssocieRef: e.string().optional(),
|
|
2449
2449
|
/** Référence à un texte européen. */
|
|
2450
|
-
texteEuropeen:
|
|
2450
|
+
texteEuropeen: Ea.optional(),
|
|
2451
2451
|
/** Référence à un texte externe associé à la promulgation. */
|
|
2452
|
-
texteExterneAssocie:
|
|
2452
|
+
texteExterneAssocie: va.optional(),
|
|
2453
2453
|
/** Identifiant unique (uid) du texte de loi. */
|
|
2454
2454
|
texteLoiRef: e.string().optional(),
|
|
2455
2455
|
/** Liste des textes associés. */
|
|
2456
|
-
textesAssocies: e.array(
|
|
2456
|
+
textesAssocies: e.array(Ta).optional(),
|
|
2457
2457
|
/** Titre de la loi. */
|
|
2458
2458
|
titreLoi: e.string().optional(),
|
|
2459
2459
|
/** Type de déclaration du gouvernement (par exemple: Art.49.3). */
|
|
@@ -2471,78 +2471,78 @@ const Xe = {
|
|
|
2471
2471
|
/** Liste des identifiants uniques (uid) des votes associés à l'acte législatif. */
|
|
2472
2472
|
voteRefs: e.array(e.string()).optional()
|
|
2473
2473
|
})
|
|
2474
|
-
),
|
|
2474
|
+
), bn = e.object({
|
|
2475
2475
|
/** Version du schéma. */
|
|
2476
2476
|
schemaVersion: e.string().optional(),
|
|
2477
2477
|
/** Type de dossier parlementaire. */
|
|
2478
|
-
xsiType:
|
|
2478
|
+
xsiType: ca.optional(),
|
|
2479
2479
|
/** Identifiant unique du dossier parlementaire. */
|
|
2480
|
-
uid:
|
|
2480
|
+
uid: j().meta({
|
|
2481
2481
|
description: "Identifiant unique du dossier parlementaire"
|
|
2482
2482
|
}),
|
|
2483
2483
|
/** Numéro de la législature sous laquelle a été créé le dossier. Nombre entier. */
|
|
2484
2484
|
legislature: e.string(),
|
|
2485
2485
|
/** Meta information sur le dossier législatif. */
|
|
2486
|
-
titreDossier:
|
|
2486
|
+
titreDossier: ya,
|
|
2487
2487
|
/** Code et libellé de la procédure législative. */
|
|
2488
|
-
procedureParlementaire:
|
|
2488
|
+
procedureParlementaire: ie,
|
|
2489
2489
|
/** Les acteurs à l'initiative du dossier et leurs mandats au sein de l'organe à l'initiative du dossier. */
|
|
2490
|
-
initiateur:
|
|
2490
|
+
initiateur: dn.optional(),
|
|
2491
2491
|
/** Chaque procédure est composée d'une hiérarchie d'actes législatifs. */
|
|
2492
|
-
actesLegislatifs: e.array(
|
|
2492
|
+
actesLegislatifs: e.array(Sn).optional(),
|
|
2493
2493
|
/** Le dossier parlementaire est lié à un autre. */
|
|
2494
|
-
fusionDossier:
|
|
2494
|
+
fusionDossier: Na.optional(),
|
|
2495
2495
|
/** Indexation thématique du dossier. */
|
|
2496
|
-
indexation:
|
|
2496
|
+
indexation: Be.optional(),
|
|
2497
2497
|
/** Liste des études réalisées pour un projet de loi de finances. */
|
|
2498
|
-
plf: e.array(
|
|
2499
|
-
}),
|
|
2498
|
+
plf: e.array(Ra).optional()
|
|
2499
|
+
}), Ma = e.object({
|
|
2500
2500
|
/** Liste des documents législatifs (textes de loi, rapports, etc.). */
|
|
2501
|
-
textesLegislatifs: e.array(
|
|
2501
|
+
textesLegislatifs: e.array(mn),
|
|
2502
2502
|
/** Liste des dossiers parlementaires. */
|
|
2503
|
-
dossiersParlementaires: e.array(
|
|
2503
|
+
dossiersParlementaires: e.array(bn)
|
|
2504
2504
|
});
|
|
2505
|
-
function
|
|
2506
|
-
const n =
|
|
2505
|
+
function La(t) {
|
|
2506
|
+
const n = mn.safeParse(JSON.parse(t));
|
|
2507
2507
|
if (!n.success)
|
|
2508
|
-
throw new Error(
|
|
2508
|
+
throw new Error(Qe("DocumentClean", n.error));
|
|
2509
2509
|
return n.data;
|
|
2510
2510
|
}
|
|
2511
|
-
function
|
|
2512
|
-
const n =
|
|
2511
|
+
function wa(t) {
|
|
2512
|
+
const n = bn.safeParse(JSON.parse(t));
|
|
2513
2513
|
if (!n.success)
|
|
2514
|
-
throw new Error(
|
|
2514
|
+
throw new Error(Qe("DossierParlementaireClean", n.error));
|
|
2515
2515
|
return n.data;
|
|
2516
2516
|
}
|
|
2517
|
-
function
|
|
2518
|
-
const n =
|
|
2517
|
+
function xa(t) {
|
|
2518
|
+
const n = Ma.safeParse(JSON.parse(t));
|
|
2519
2519
|
if (!n.success)
|
|
2520
|
-
throw new Error(
|
|
2520
|
+
throw new Error(Qe("DossiersLegislatifsClean", n.error));
|
|
2521
2521
|
return n.data;
|
|
2522
2522
|
}
|
|
2523
|
-
function
|
|
2523
|
+
function Va(t) {
|
|
2524
2524
|
return JSON.stringify(t, null, 2);
|
|
2525
2525
|
}
|
|
2526
|
-
function
|
|
2526
|
+
function Fa(t) {
|
|
2527
2527
|
return JSON.stringify(t, null, 2);
|
|
2528
2528
|
}
|
|
2529
|
-
function
|
|
2529
|
+
function qa(t) {
|
|
2530
2530
|
return JSON.stringify(t, null, 2);
|
|
2531
2531
|
}
|
|
2532
|
-
function
|
|
2533
|
-
const i = n.issues.map((
|
|
2532
|
+
function Qe(t, n) {
|
|
2533
|
+
const i = n.issues.map((s) => ` - ${s.path.join(".")}: ${s.message}`).join(`
|
|
2534
2534
|
`);
|
|
2535
2535
|
return `Invalid ${t}:
|
|
2536
2536
|
${i}`;
|
|
2537
2537
|
}
|
|
2538
|
-
const
|
|
2539
|
-
toDocument:
|
|
2540
|
-
documentToJson:
|
|
2541
|
-
toDossierParlementaire:
|
|
2542
|
-
dossierParlementaireToJson:
|
|
2543
|
-
toDossiersLegislatifs:
|
|
2544
|
-
dossiersLegislatifsToJson:
|
|
2545
|
-
},
|
|
2538
|
+
const se = {
|
|
2539
|
+
toDocument: La,
|
|
2540
|
+
documentToJson: Va,
|
|
2541
|
+
toDossierParlementaire: wa,
|
|
2542
|
+
dossierParlementaireToJson: Fa,
|
|
2543
|
+
toDossiersLegislatifs: xa,
|
|
2544
|
+
dossiersLegislatifsToJson: qa
|
|
2545
|
+
}, Ja = [
|
|
2546
2546
|
/**
|
|
2547
2547
|
* Question publication in Journal Officiel
|
|
2548
2548
|
*/
|
|
@@ -2555,195 +2555,214 @@ const oe = {
|
|
|
2555
2555
|
* Debate publication in Journal Officiel
|
|
2556
2556
|
*/
|
|
2557
2557
|
"JO_DEBAT"
|
|
2558
|
-
],
|
|
2558
|
+
], Xa = e.enum(Ja), W = e.preprocess((t) => {
|
|
2559
|
+
if (t == null)
|
|
2560
|
+
return;
|
|
2561
|
+
if (typeof t != "string")
|
|
2562
|
+
return t;
|
|
2563
|
+
const n = t.trim();
|
|
2564
|
+
return n === "" ? void 0 : n;
|
|
2565
|
+
}, e.string().optional()), $a = e.object({
|
|
2559
2566
|
numero: e.string().meta({ description: "Numéro de la question." }),
|
|
2560
2567
|
regime: e.string().meta({ description: "Régime." }),
|
|
2561
2568
|
legislature: e.string().meta({ description: "Législature." })
|
|
2562
|
-
}),
|
|
2569
|
+
}), ke = e.object({
|
|
2563
2570
|
organeRef: T().meta({
|
|
2564
2571
|
description: "Référence à l'organe"
|
|
2565
2572
|
}),
|
|
2566
2573
|
abrege: e.string().meta({ description: "Abrégé." }),
|
|
2567
2574
|
developpe: e.string().meta({ description: "Développé." })
|
|
2568
|
-
}),
|
|
2575
|
+
}), Ua = e.object({
|
|
2569
2576
|
acteurRef: P().meta({
|
|
2570
2577
|
description: "Référence à l'acteur"
|
|
2571
2578
|
}),
|
|
2572
2579
|
mandatRef: e.string().meta({ description: "Identifiant unique du {@link Mandat | mandat}." })
|
|
2573
|
-
}),
|
|
2574
|
-
identite:
|
|
2580
|
+
}), Ba = e.object({
|
|
2581
|
+
identite: Ua.meta({
|
|
2575
2582
|
description: "Identité de l'auteur."
|
|
2576
2583
|
}),
|
|
2577
|
-
groupe:
|
|
2584
|
+
groupe: ke.meta({
|
|
2578
2585
|
description: "Groupe politique de l'auteur."
|
|
2579
2586
|
})
|
|
2580
|
-
}),
|
|
2581
|
-
typeJO:
|
|
2587
|
+
}), ue = e.object({
|
|
2588
|
+
typeJO: Xa.optional().meta({
|
|
2582
2589
|
description: "Type de Journal Officiel."
|
|
2583
2590
|
}),
|
|
2584
|
-
dateJO:
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2591
|
+
dateJO: W.meta({
|
|
2592
|
+
description: "Date de publication au Journal Officiel."
|
|
2593
|
+
}),
|
|
2594
|
+
pageJO: W.meta({
|
|
2595
|
+
description: "Page du Journal Officiel."
|
|
2596
|
+
}),
|
|
2597
|
+
numJO: W.meta({
|
|
2598
|
+
description: "Numéro du Journal Officiel."
|
|
2599
|
+
}),
|
|
2600
|
+
urlLegifrance: W.meta({
|
|
2588
2601
|
description: "URL du texte promulgué sur le site https://www.legifrance.gouv.fr/"
|
|
2589
2602
|
}),
|
|
2590
|
-
referenceNOR:
|
|
2603
|
+
referenceNOR: W.meta({
|
|
2591
2604
|
description: "Numéro {@link https://fr.wikipedia.org/wiki/Syst%C3%A8me_NOR | NOR} attribué au texte promulgué."
|
|
2592
2605
|
})
|
|
2593
|
-
}),
|
|
2606
|
+
}), Qa = e.object({
|
|
2594
2607
|
analyse: e.string().optional().meta({ description: "Analyse." })
|
|
2595
|
-
}),
|
|
2608
|
+
}), ka = e.object({
|
|
2596
2609
|
rubrique: e.string().optional().meta({ description: "Rubrique." }),
|
|
2597
|
-
analyses:
|
|
2598
|
-
}),
|
|
2599
|
-
infoJO:
|
|
2610
|
+
analyses: Qa.optional().meta({ description: "Analyses." })
|
|
2611
|
+
}), za = e.object({
|
|
2612
|
+
infoJO: ue.meta({
|
|
2600
2613
|
description: "Informations Journal Officiel."
|
|
2601
2614
|
}),
|
|
2602
|
-
denomination:
|
|
2603
|
-
}),
|
|
2604
|
-
minAttrib: e.array(
|
|
2605
|
-
}),
|
|
2606
|
-
infoJO:
|
|
2615
|
+
denomination: ke.meta({ description: "Dénomination." })
|
|
2616
|
+
}), Ga = e.object({
|
|
2617
|
+
minAttrib: e.array(za).meta({ description: "Attributions ministérielles." })
|
|
2618
|
+
}), An = e.object({
|
|
2619
|
+
infoJO: ue.meta({
|
|
2607
2620
|
description: "Informations Journal Officiel."
|
|
2608
2621
|
}),
|
|
2609
2622
|
texte: e.string().optional().meta({ description: "Texte de la question ou de la réponse." }),
|
|
2610
2623
|
erratum: e.string().optional().meta({ description: "Erratum." })
|
|
2611
|
-
}),
|
|
2612
|
-
texteQuestion:
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
}),
|
|
2624
|
+
}), Wa = e.object({
|
|
2625
|
+
texteQuestion: d(An).meta({
|
|
2626
|
+
description: "Textes de la question."
|
|
2627
|
+
})
|
|
2628
|
+
}), Za = e.object({
|
|
2629
|
+
texteReponse: d(An).meta({
|
|
2630
|
+
description: "Textes de la réponse."
|
|
2631
|
+
})
|
|
2632
|
+
}), Ha = e.object({
|
|
2616
2633
|
codeCloture: e.string().meta({ description: "Code de la clôture." }),
|
|
2617
2634
|
libelleCloture: e.string().meta({ description: "Libellé de la clôture." }),
|
|
2618
|
-
dateCloture:
|
|
2619
|
-
|
|
2635
|
+
dateCloture: W.meta({
|
|
2636
|
+
description: "Date de clôture."
|
|
2637
|
+
}),
|
|
2638
|
+
infoJO: ue.nullish().meta({
|
|
2620
2639
|
description: "Informations Journal Officiel liées à la clôture."
|
|
2621
2640
|
})
|
|
2622
|
-
}),
|
|
2641
|
+
}), Ka = e.object({
|
|
2623
2642
|
dateDepotSignal: e.string().meta({ description: "Date de dépôt du signalement." }),
|
|
2624
|
-
infoJO:
|
|
2643
|
+
infoJO: ue.meta({
|
|
2625
2644
|
description: "Informations Journal Officiel du signalement."
|
|
2626
2645
|
})
|
|
2627
|
-
}),
|
|
2628
|
-
infoJO:
|
|
2646
|
+
}), Ya = e.object({
|
|
2647
|
+
infoJO: ue.meta({
|
|
2629
2648
|
description: "Informations Journal Officiel."
|
|
2630
2649
|
})
|
|
2631
|
-
}),
|
|
2632
|
-
renouvellement: e.array(
|
|
2633
|
-
}),
|
|
2650
|
+
}), er = e.object({
|
|
2651
|
+
renouvellement: e.array(Ya).meta({ description: "Renouvellements." })
|
|
2652
|
+
}), Cn = e.object({
|
|
2634
2653
|
schemaVersion: e.string().optional().meta({ description: "Version du schéma." }),
|
|
2635
|
-
"@xsi:type":
|
|
2654
|
+
"@xsi:type": En.optional().meta({
|
|
2636
2655
|
description: "Type de question (QuestionEcrite_Type, QuestionGouvernement_Type, QuestionOrale_Type)."
|
|
2637
2656
|
}),
|
|
2638
|
-
uid:
|
|
2639
|
-
identifiant:
|
|
2640
|
-
type:
|
|
2657
|
+
uid: j().meta({ description: "Identifiant unique de la question" }),
|
|
2658
|
+
identifiant: $a.meta({ description: "Identifiant." }),
|
|
2659
|
+
type: Tn.meta({
|
|
2641
2660
|
description: "Type de question abrégé (QE, QG, QOSD)."
|
|
2642
2661
|
}),
|
|
2643
|
-
indexationAN:
|
|
2662
|
+
indexationAN: ka.optional().meta({
|
|
2644
2663
|
description: "Indexation Assemblée Nationale."
|
|
2645
2664
|
}),
|
|
2646
|
-
auteur:
|
|
2665
|
+
auteur: Ba.meta({
|
|
2647
2666
|
description: "Auteur de la question."
|
|
2648
2667
|
}),
|
|
2649
|
-
minInt:
|
|
2650
|
-
minAttribs:
|
|
2668
|
+
minInt: ke.meta({ description: "Ministère interrogé." }),
|
|
2669
|
+
minAttribs: Ga.meta({
|
|
2651
2670
|
description: "Attributions ministérielles."
|
|
2652
2671
|
}),
|
|
2653
|
-
textesQuestion:
|
|
2672
|
+
textesQuestion: Wa.optional().meta({
|
|
2654
2673
|
description: "Textes de la question."
|
|
2655
2674
|
}),
|
|
2656
|
-
textesReponse:
|
|
2675
|
+
textesReponse: Za.optional().meta({
|
|
2657
2676
|
description: "Textes de la réponse."
|
|
2658
2677
|
}),
|
|
2659
|
-
cloture:
|
|
2678
|
+
cloture: Ha.optional().meta({
|
|
2660
2679
|
description: "Clôture de la question."
|
|
2661
2680
|
}),
|
|
2662
|
-
signalement:
|
|
2681
|
+
signalement: Ka.optional().meta({
|
|
2663
2682
|
description: "Signalement."
|
|
2664
2683
|
}),
|
|
2665
|
-
renouvellements:
|
|
2684
|
+
renouvellements: er.optional().meta({
|
|
2666
2685
|
description: "Renouvellements."
|
|
2667
2686
|
})
|
|
2668
|
-
}),
|
|
2669
|
-
questions: e.array(
|
|
2687
|
+
}), tr = e.object({
|
|
2688
|
+
questions: e.array(Cn).meta({ description: "Liste des questions." })
|
|
2670
2689
|
});
|
|
2671
|
-
function
|
|
2672
|
-
const n =
|
|
2690
|
+
function nr(t) {
|
|
2691
|
+
const n = Cn.safeParse(JSON.parse(t));
|
|
2673
2692
|
if (!n.success)
|
|
2674
|
-
throw new Error(
|
|
2693
|
+
throw new Error(hn("QuestionClean", n.error));
|
|
2675
2694
|
return n.data;
|
|
2676
2695
|
}
|
|
2677
|
-
function
|
|
2678
|
-
const n =
|
|
2696
|
+
function ir(t) {
|
|
2697
|
+
const n = tr.safeParse(JSON.parse(t));
|
|
2679
2698
|
if (!n.success)
|
|
2680
|
-
throw new Error(
|
|
2699
|
+
throw new Error(hn("QuestionsClean", n.error));
|
|
2681
2700
|
return n.data;
|
|
2682
2701
|
}
|
|
2683
|
-
function
|
|
2702
|
+
function or(t) {
|
|
2684
2703
|
return JSON.stringify(t, null, 2);
|
|
2685
2704
|
}
|
|
2686
|
-
function
|
|
2705
|
+
function sr(t) {
|
|
2687
2706
|
return JSON.stringify(t, null, 2);
|
|
2688
2707
|
}
|
|
2689
|
-
function
|
|
2690
|
-
const i = n.issues.map((
|
|
2708
|
+
function hn(t, n) {
|
|
2709
|
+
const i = n.issues.map((s) => ` - ${s.path.join(".")}: ${s.message}`).join(`
|
|
2691
2710
|
`);
|
|
2692
2711
|
return `Invalid ${t}:
|
|
2693
2712
|
${i}`;
|
|
2694
2713
|
}
|
|
2695
|
-
const
|
|
2696
|
-
toQuestion:
|
|
2697
|
-
questionToJson:
|
|
2698
|
-
toQuestions:
|
|
2699
|
-
questionsToJson:
|
|
2714
|
+
const ze = {
|
|
2715
|
+
toQuestion: nr,
|
|
2716
|
+
questionToJson: or,
|
|
2717
|
+
toQuestions: ir,
|
|
2718
|
+
questionsToJson: sr
|
|
2700
2719
|
};
|
|
2701
|
-
var
|
|
2720
|
+
var A = /* @__PURE__ */ ((t) => (t[t.SingleFile = 0] = "SingleFile", t[t.SegmentedFiles = 1] = "SegmentedFiles", t))(A || {}), M = /* @__PURE__ */ ((t) => (t[t.None = 0] = "None", t[t.ActeursEtOrganes = 1] = "ActeursEtOrganes", t[t.Agendas = 2] = "Agendas", t[t.Amendements = 4] = "Amendements", t[t.DossiersLegislatifs = 8] = "DossiersLegislatifs", t[t.Photos = 16] = "Photos", t[t.Scrutins = 32] = "Scrutins", t[t.Questions = 64] = "Questions", t[t.ComptesRendusSeances = 128] = "ComptesRendusSeances", t[t.ComptesRendusCommissions = 256] = "ComptesRendusCommissions", t[t.All = 511] = "All", t))(M || {});
|
|
2702
2721
|
function* X(t, n = []) {
|
|
2703
2722
|
const i = o.join(t, ...n);
|
|
2704
2723
|
if (r.existsSync(i))
|
|
2705
|
-
for (const
|
|
2706
|
-
if (
|
|
2724
|
+
for (const s of r.readdirSync(i)) {
|
|
2725
|
+
if (s[0] === ".")
|
|
2707
2726
|
continue;
|
|
2708
|
-
const
|
|
2709
|
-
r.statSync(
|
|
2727
|
+
const g = o.join(i, s), S = [...n, s];
|
|
2728
|
+
r.statSync(g).isDirectory() ? yield* X(t, S) : yield S;
|
|
2710
2729
|
}
|
|
2711
2730
|
}
|
|
2712
|
-
const
|
|
2731
|
+
const ar = [
|
|
2713
2732
|
"AdresseMail_Type",
|
|
2714
2733
|
"AdressePostale_Type",
|
|
2715
2734
|
"AdresseSiteWeb_Type",
|
|
2716
2735
|
"AdresseTelephonique_Type"
|
|
2717
|
-
],
|
|
2718
|
-
civ:
|
|
2736
|
+
], rr = e.enum(ar), lr = e.object({
|
|
2737
|
+
civ: K,
|
|
2719
2738
|
prenom: e.string().meta({ description: "Prénom." }),
|
|
2720
2739
|
nom: e.string().meta({ description: "Nom." }),
|
|
2721
2740
|
alpha: e.string().meta({ description: "La signification de ce champ est indéfinie." }),
|
|
2722
2741
|
trigramme: e.string().optional().meta({ description: "La signification de ce champ est indéfinie." })
|
|
2723
|
-
}).meta({ description: "Identité" }),
|
|
2742
|
+
}).meta({ description: "Identité" }), cr = e.object({
|
|
2724
2743
|
dateNais: _().meta({ description: "Date de naissance." }),
|
|
2725
2744
|
villeNais: e.string().optional().meta({ description: "Ville de naissance." }),
|
|
2726
|
-
depNais:
|
|
2745
|
+
depNais: Y.optional().meta({
|
|
2727
2746
|
description: "Département de naissance."
|
|
2728
2747
|
}),
|
|
2729
2748
|
paysNais: e.string().optional().meta({ description: "Pays de naissance." })
|
|
2730
|
-
}),
|
|
2731
|
-
ident:
|
|
2732
|
-
infoNaissance:
|
|
2749
|
+
}), ur = e.object({
|
|
2750
|
+
ident: lr,
|
|
2751
|
+
infoNaissance: cr.optional(),
|
|
2733
2752
|
dateDeces: _().meta({ description: "Date du décès" })
|
|
2734
2753
|
}).meta({
|
|
2735
2754
|
title: "État civil",
|
|
2736
2755
|
description: "L'état civil est la situation de la personne dans la société, résultat d'une procédure écrite d'identification administrative."
|
|
2737
|
-
}),
|
|
2756
|
+
}), pr = e.object({
|
|
2738
2757
|
catSocPro: e.string().optional().meta({ description: "Catégorie socio professionelle de l'INSEE." }),
|
|
2739
|
-
famSocPro:
|
|
2758
|
+
famSocPro: tt.optional().meta({
|
|
2740
2759
|
description: "Famille socio professionelle de l'INSEE."
|
|
2741
2760
|
})
|
|
2742
|
-
}),
|
|
2761
|
+
}), mr = e.object({
|
|
2743
2762
|
libelleCourant: e.string().optional().meta({ description: "Profession." }),
|
|
2744
|
-
socProcInsee:
|
|
2745
|
-
}).meta({ description: "Profession" }),
|
|
2746
|
-
xsiType:
|
|
2763
|
+
socProcInsee: pr.optional()
|
|
2764
|
+
}).meta({ description: "Profession" }), dr = e.object({
|
|
2765
|
+
xsiType: rr,
|
|
2747
2766
|
uid: e.string().meta({ description: "Identifiant unique." }),
|
|
2748
2767
|
type: e.string().meta({
|
|
2749
2768
|
description: "Détermine l'interprétation des champs **adresseDeRattachement** et **valElec**. Voir aussi le champ **typeLibelle**. Nombre entier."
|
|
@@ -2769,7 +2788,7 @@ const or = [
|
|
|
2769
2788
|
}).meta({
|
|
2770
2789
|
title: "Adresse postale et électronique",
|
|
2771
2790
|
description: "Les adresses postales, numéros de téléphones et les adresses électroniques de l'acteur."
|
|
2772
|
-
}),
|
|
2791
|
+
}), gr = e.object({
|
|
2773
2792
|
codeQualite: e.string().optional().meta({
|
|
2774
2793
|
description: "Abrégé de la qualité, unifié entre les {@link CodeTypeOrgane | types d'organes}."
|
|
2775
2794
|
}),
|
|
@@ -2777,7 +2796,7 @@ const or = [
|
|
|
2777
2796
|
libQualiteSex: e.string().optional().meta({
|
|
2778
2797
|
description: "Titre donné en raison du mandat. (par exemple: Sénateur, Vice-Président, Membre, etc.)"
|
|
2779
2798
|
})
|
|
2780
|
-
}),
|
|
2799
|
+
}), fr = e.object({
|
|
2781
2800
|
dateDebut: $().meta({
|
|
2782
2801
|
description: "Date de début de la nomination."
|
|
2783
2802
|
}),
|
|
@@ -2789,12 +2808,12 @@ const or = [
|
|
|
2789
2808
|
})
|
|
2790
2809
|
}).meta({
|
|
2791
2810
|
description: "Personne physique désignée pour remplacer le mandataire si nécessaire."
|
|
2792
|
-
}),
|
|
2793
|
-
region:
|
|
2811
|
+
}), Sr = e.object({
|
|
2812
|
+
region: ge.optional().meta({
|
|
2794
2813
|
description: "Région de la cirsconscription du député. Uniquement si le type de territoire est Métropolitain ou Dom."
|
|
2795
2814
|
}),
|
|
2796
|
-
regionType:
|
|
2797
|
-
departement:
|
|
2815
|
+
regionType: fe.optional(),
|
|
2816
|
+
departement: Y.optional().meta({
|
|
2798
2817
|
description: `Si le type de territoire est Métropolitain ou Dom: {@link https://fr.wikipedia.org/wiki/D%C3%A9partement_fran%C3%A7ais#D%C3%A9nomination_des_d%C3%A9partements | nom du département} de la cirsconscription du député. Si le type de territoire est "Collectivités d'outre-mer et Nouvelle-Calédonie": nom de la collectivité.`
|
|
2799
2818
|
}),
|
|
2800
2819
|
numDepartement: e.string().optional().meta({
|
|
@@ -2803,17 +2822,17 @@ const or = [
|
|
|
2803
2822
|
numCirco: e.string().optional().meta({
|
|
2804
2823
|
description: "Numéro de la {@link https://fr.wikipedia.org/wiki/Circonscriptions_l%C3%A9gislatives_fran%C3%A7aises | circonscription du député}."
|
|
2805
2824
|
})
|
|
2806
|
-
}).meta({ description: "Lieu" }),
|
|
2807
|
-
lieu:
|
|
2825
|
+
}).meta({ description: "Lieu" }), br = e.object({
|
|
2826
|
+
lieu: Sr,
|
|
2808
2827
|
causeMandat: e.string().optional().meta({
|
|
2809
2828
|
description: "Élection ou nommination à l'origine du mandat (par exemple: élections générales, remplacement d'un député nommé au Gouvernement, etc.)"
|
|
2810
2829
|
}),
|
|
2811
2830
|
refCirconscription: e.string().optional().meta({ description: "La signification de ce champ est indéfinie." })
|
|
2812
|
-
}),
|
|
2813
|
-
qualite:
|
|
2831
|
+
}), Ar = e.object({
|
|
2832
|
+
qualite: K.optional(),
|
|
2814
2833
|
prenom: e.string().meta({ description: "Prénom." }),
|
|
2815
2834
|
nom: e.string().meta({ description: "Nom." })
|
|
2816
|
-
}).meta({ description: "Collaborateur" }),
|
|
2835
|
+
}).meta({ description: "Collaborateur" }), Cr = e.object({
|
|
2817
2836
|
datePriseFonction: _().meta({
|
|
2818
2837
|
description: "Date de la prise de fonction."
|
|
2819
2838
|
}),
|
|
@@ -2830,16 +2849,16 @@ const or = [
|
|
|
2830
2849
|
matriculeVote: e.string().optional()
|
|
2831
2850
|
}).meta({
|
|
2832
2851
|
description: "Détails concernant uniquement les {@link https://fr.wikipedia.org/wiki/Mandature | mandats représentatifs}."
|
|
2833
|
-
}),
|
|
2834
|
-
xsiType:
|
|
2835
|
-
uid:
|
|
2852
|
+
}), hr = e.object({
|
|
2853
|
+
xsiType: nt.optional(),
|
|
2854
|
+
uid: j().meta({ description: "Identifiant unique du mandat" }),
|
|
2836
2855
|
acteurRef: P().meta({
|
|
2837
2856
|
description: "Référence à l'acteur"
|
|
2838
2857
|
}),
|
|
2839
2858
|
legislature: e.string().optional().meta({
|
|
2840
2859
|
description: "Numéro de {@link https://fr.wikipedia.org/wiki/Liste_des_l%C3%A9gislatures_fran%C3%A7aises | la législature} sous laquelle a été créé l'organe. Nombre entier."
|
|
2841
2860
|
}),
|
|
2842
|
-
typeOrgane:
|
|
2861
|
+
typeOrgane: le,
|
|
2843
2862
|
dateDebut: $().meta({
|
|
2844
2863
|
description: "Date de début de la nomination de l'acteur."
|
|
2845
2864
|
}),
|
|
@@ -2855,7 +2874,7 @@ const or = [
|
|
|
2855
2874
|
nominPrincipale: e.string().meta({
|
|
2856
2875
|
description: "1 pour le mandat principal, 0 sinon. Si deux mandats pour un même organe coïncident dans le temps (c'est à dire que les intervalles de temps entre leurs dates de début et de fin ont une intersection), alors le mandat principal est celui dont le champ préséance a la plus petite valeur."
|
|
2857
2876
|
}),
|
|
2858
|
-
infosQualite:
|
|
2877
|
+
infosQualite: gr,
|
|
2859
2878
|
organesRefs: e.array(T()).meta({
|
|
2860
2879
|
description: "Identifiants uniques (uid) des {@link Organe | organes} au sein desquels le mandat est exercé."
|
|
2861
2880
|
}),
|
|
@@ -2868,46 +2887,46 @@ const or = [
|
|
|
2868
2887
|
missionPrecedenteRef: e.string().optional().meta({
|
|
2869
2888
|
description: "Identifiant unique (uid) du mandat précédent. Uniquement pour les {@link http://www2.assemblee-nationale.fr/deputes/liste/deputes-en-mission | députés en mission auprès du gouvernement}."
|
|
2870
2889
|
}),
|
|
2871
|
-
suppleant:
|
|
2890
|
+
suppleant: fr.optional().meta({
|
|
2872
2891
|
description: "Personne physique désignée pour remplacer le mandataire si nécessaire."
|
|
2873
2892
|
}),
|
|
2874
|
-
election:
|
|
2875
|
-
mandature:
|
|
2893
|
+
election: br.optional(),
|
|
2894
|
+
mandature: Cr.optional().meta({
|
|
2876
2895
|
description: "Détails concernant uniquement les {@link https://fr.wikipedia.org/wiki/Mandature | mandats représentatifs}."
|
|
2877
2896
|
}),
|
|
2878
|
-
collaborateurs: e.array(
|
|
2897
|
+
collaborateurs: e.array(Ar).optional().meta({
|
|
2879
2898
|
description: "Liste des collaborateurs attachés au {@link https://fr.wikipedia.org/wiki/Mandat_repr%C3%A9sentatif | mandat représentatif}"
|
|
2880
2899
|
})
|
|
2881
2900
|
}).meta({
|
|
2882
2901
|
title: "Mandat",
|
|
2883
2902
|
description: `Une personne physique peut être mandataire d'un mandat représentatif ou bien d'un mandat dit simple, comme par exemple être membre d'une commission. Un {@link https://fr.wikipedia.org/wiki/Mandat_repr%C3%A9sentatif | mandat représentatif} est "une forme de mandat politique qui possède la caractéristique d'être général, libre et non révocable".`
|
|
2884
|
-
}),
|
|
2903
|
+
}), _r = e.object({
|
|
2885
2904
|
chemin: e.string(),
|
|
2886
2905
|
cheminMosaique: e.string(),
|
|
2887
2906
|
hauteur: e.number(),
|
|
2888
2907
|
largeur: e.number(),
|
|
2889
2908
|
xMosaique: e.number(),
|
|
2890
2909
|
yMosaique: e.number()
|
|
2891
|
-
}),
|
|
2910
|
+
}), _n = e.object({
|
|
2892
2911
|
schemaVersion: e.string().optional(),
|
|
2893
|
-
uid:
|
|
2894
|
-
etatCivil:
|
|
2895
|
-
profession:
|
|
2912
|
+
uid: j().meta({ description: "Identifiant unique de l'acteur" }),
|
|
2913
|
+
etatCivil: ur,
|
|
2914
|
+
profession: mr.optional(),
|
|
2896
2915
|
uriHatvp: e.string().optional().meta({
|
|
2897
2916
|
description: "URL de la déclaration d'intérêt de l'acteur sur le site de la Haute Autorité pour la Transparence dans la Vie Publique."
|
|
2898
2917
|
}),
|
|
2899
|
-
adresses: e.array(
|
|
2918
|
+
adresses: e.array(dr).optional().meta({
|
|
2900
2919
|
description: "Les adresses postales, numéros de téléphones et les adresses électroniques de l'acteur."
|
|
2901
2920
|
}),
|
|
2902
|
-
mandats: e.array(
|
|
2921
|
+
mandats: e.array(hr).optional().meta({
|
|
2903
2922
|
description: "Les mandats ({@link https://fr.wikipedia.org/wiki/Mandat_repr%C3%A9sentatif | représentatifs} ou {@link https://fr.wikipedia.org/wiki/Mandat_imp%C3%A9ratif | impératifs}) passés ou présents."
|
|
2904
2923
|
}),
|
|
2905
|
-
photo:
|
|
2906
|
-
deports: e.array(e.lazy(() =>
|
|
2924
|
+
photo: _r.optional(),
|
|
2925
|
+
deports: e.array(e.lazy(() => jn)).optional()
|
|
2907
2926
|
}).meta({
|
|
2908
2927
|
title: "Acteur",
|
|
2909
2928
|
description: "Personne physique ayant été élue ou nommée dans {@link Organe | un organe}."
|
|
2910
|
-
}),
|
|
2929
|
+
}), jr = e.object({
|
|
2911
2930
|
dateDebut: _().meta({
|
|
2912
2931
|
description: "Date de création de l'organe."
|
|
2913
2932
|
}),
|
|
@@ -2920,39 +2939,39 @@ const or = [
|
|
|
2920
2939
|
}).meta({
|
|
2921
2940
|
title: "Début, fin et agrément",
|
|
2922
2941
|
description: "L'intervalle de temps durant lequel un organe existe."
|
|
2923
|
-
}),
|
|
2942
|
+
}), yr = e.object({
|
|
2924
2943
|
secretaire01: e.string().optional().meta({ description: "Civilité Prénom Nom." }),
|
|
2925
2944
|
secretaire02: e.string().optional().meta({ description: "Civilité Prénom Nom." })
|
|
2926
2945
|
}).meta({
|
|
2927
2946
|
description: "Le rôle du secrétaire administratif est d'assister le président dans tous les aspects du fonctionnement du groupe : à ce titre, il est notamment chargé de l'organisation matérielle des activités du groupe (dont les missions et les réceptions) et établit les comptes rendus de ses réunions. Cette définition {@link http://www2.assemblee-nationale.fr/decouvrir-l-assemblee/role-et-pouvoirs-de-l-assemblee-nationale/les-relations-interparlementaires/les-groupes-d-amitie | du secrétaire administratif d'un groupe d'amitié} se rapproche de celle des autres organes ({@link http://www.assemblee-nationale.fr/connaissance/reglement.pdf | Groupes Parlementaires} Article 20, etc.)"
|
|
2928
|
-
}),
|
|
2929
|
-
codeNatureDep:
|
|
2947
|
+
}), Or = e.object({
|
|
2948
|
+
codeNatureDep: et.optional(),
|
|
2930
2949
|
code: e.string().optional(),
|
|
2931
|
-
libelle:
|
|
2932
|
-
}), jr = e.object({
|
|
2933
|
-
type: ge.optional(),
|
|
2934
|
-
libelle: de.optional()
|
|
2950
|
+
libelle: Y.optional()
|
|
2935
2951
|
}), Nr = e.object({
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
}),
|
|
2952
|
+
type: fe.optional(),
|
|
2953
|
+
libelle: ge.optional()
|
|
2954
|
+
}), Rr = e.object({
|
|
2955
|
+
region: Nr,
|
|
2956
|
+
departement: Or
|
|
2957
|
+
}), de = e.lazy(
|
|
2939
2958
|
() => e.object({
|
|
2940
2959
|
schemaVersion: e.string().optional(),
|
|
2941
|
-
xsiType:
|
|
2942
|
-
uid:
|
|
2943
|
-
codeType:
|
|
2960
|
+
xsiType: Ne.optional(),
|
|
2961
|
+
uid: j().meta({ description: "Identifiant unique de l'organe" }),
|
|
2962
|
+
codeType: le,
|
|
2944
2963
|
libelle: e.string().meta({ description: "Nom complet." }),
|
|
2945
2964
|
libelleEdition: e.string().optional().meta({ description: "Le contenu de ce champ n'est pas défini." }),
|
|
2946
2965
|
libelleAbrege: e.string().meta({ description: "Nom court." }),
|
|
2947
2966
|
libelleAbrev: e.string().meta({ description: "Abréviation en majuscule." }),
|
|
2948
|
-
viMoDe:
|
|
2967
|
+
viMoDe: jr.optional(),
|
|
2949
2968
|
organeParentRef: T().optional().meta({
|
|
2950
2969
|
description: "Identifiant unique (uid) de l'organe parent. Le gouvernement est l'organe parent des ministères, secrétariats d'état et du premier ministre. Une commission permanente (.codeType == COMPER) peut être parente d'une mission d'information (.codeType == MISINFO)"
|
|
2951
2970
|
}),
|
|
2952
|
-
organeParent:
|
|
2971
|
+
organeParent: de.optional(),
|
|
2953
2972
|
organePrecedentRef: T().optional(),
|
|
2954
|
-
organePrecedent:
|
|
2955
|
-
regime:
|
|
2973
|
+
organePrecedent: de.optional(),
|
|
2974
|
+
regime: De.optional(),
|
|
2956
2975
|
legislature: e.string().optional().meta({
|
|
2957
2976
|
description: "Numéro de {@link https://fr.wikipedia.org/wiki/Liste_des_l%C3%A9gislatures_fran%C3%A7aises | la législature} sous laquelle a été créé l'organe. Nombre entier."
|
|
2958
2977
|
}),
|
|
@@ -2961,10 +2980,10 @@ const or = [
|
|
|
2961
2980
|
}),
|
|
2962
2981
|
siteInternet: e.string().optional().meta({ description: "Site internet de l'organe." }),
|
|
2963
2982
|
nombreReunionsAnnuelles: e.string().optional().meta({ description: "Nombre de réunions annuelles. Nombre entier." }),
|
|
2964
|
-
secretariat:
|
|
2983
|
+
secretariat: yr.optional(),
|
|
2965
2984
|
numero: e.string().optional(),
|
|
2966
|
-
lieu:
|
|
2967
|
-
positionPolitique:
|
|
2985
|
+
lieu: Rr.optional(),
|
|
2986
|
+
positionPolitique: Re.optional(),
|
|
2968
2987
|
preseance: e.string().optional().meta({
|
|
2969
2988
|
description: "Plus le groupe politique est important, plus la préséance est proche de 1. Nombre entier. Uniquement renseigné pour les groupes politiques (dont le codeType est égal à GP)."
|
|
2970
2989
|
}),
|
|
@@ -2976,94 +2995,99 @@ const or = [
|
|
|
2976
2995
|
title: "Organe",
|
|
2977
2996
|
description: "Il contribue au fonctionnement de l'Etat (par exemple l'Assemblée nationale ou une Délégation parlementaire)"
|
|
2978
2997
|
})
|
|
2979
|
-
),
|
|
2998
|
+
), me = e.object({
|
|
2980
2999
|
code: e.string(),
|
|
2981
3000
|
libelle: e.string()
|
|
2982
|
-
}),
|
|
2983
|
-
type:
|
|
3001
|
+
}), Dr = e.object({
|
|
3002
|
+
type: me,
|
|
2984
3003
|
referenceTextuelle: e.string()
|
|
2985
|
-
}),
|
|
2986
|
-
uid:
|
|
3004
|
+
}), jn = e.object({
|
|
3005
|
+
uid: j().meta({ description: "Identifiant unique du déport" }),
|
|
2987
3006
|
chronotag: e.string(),
|
|
2988
3007
|
legislature: e.string(),
|
|
2989
3008
|
refActeur: P().meta({ description: "Référence à l'acteur" }),
|
|
2990
3009
|
dateCreation: $(),
|
|
2991
3010
|
datePublication: _(),
|
|
2992
|
-
portee:
|
|
2993
|
-
lecture:
|
|
2994
|
-
instance:
|
|
2995
|
-
cible:
|
|
3011
|
+
portee: me,
|
|
3012
|
+
lecture: me,
|
|
3013
|
+
instance: me,
|
|
3014
|
+
cible: Dr,
|
|
2996
3015
|
explication: e.string().optional()
|
|
2997
|
-
}),
|
|
2998
|
-
organes: e.array(
|
|
2999
|
-
acteurs: e.array(
|
|
3016
|
+
}), Ir = e.object({
|
|
3017
|
+
organes: e.array(de),
|
|
3018
|
+
acteurs: e.array(_n)
|
|
3000
3019
|
});
|
|
3001
|
-
function
|
|
3002
|
-
const n =
|
|
3020
|
+
function Tr(t) {
|
|
3021
|
+
const n = _n.safeParse(JSON.parse(t));
|
|
3003
3022
|
if (!n.success)
|
|
3004
|
-
throw new Error(
|
|
3023
|
+
throw new Error(Ae("ActeurClean", n.error));
|
|
3005
3024
|
return n.data;
|
|
3006
3025
|
}
|
|
3007
|
-
function
|
|
3008
|
-
const n =
|
|
3026
|
+
function Er(t) {
|
|
3027
|
+
const n = de.safeParse(JSON.parse(t));
|
|
3009
3028
|
if (!n.success)
|
|
3010
|
-
throw new Error(
|
|
3029
|
+
throw new Error(Ae("OrganeClean", n.error));
|
|
3011
3030
|
return n.data;
|
|
3012
3031
|
}
|
|
3013
|
-
function
|
|
3014
|
-
const n =
|
|
3032
|
+
function Pr(t) {
|
|
3033
|
+
const n = jn.safeParse(JSON.parse(t));
|
|
3015
3034
|
if (!n.success)
|
|
3016
|
-
throw new Error(
|
|
3035
|
+
throw new Error(Ae("DeportClean", n.error));
|
|
3017
3036
|
return n.data;
|
|
3018
3037
|
}
|
|
3019
|
-
function
|
|
3020
|
-
const n =
|
|
3038
|
+
function vr(t) {
|
|
3039
|
+
const n = Ir.safeParse(JSON.parse(t));
|
|
3021
3040
|
if (!n.success)
|
|
3022
|
-
throw new Error(
|
|
3041
|
+
throw new Error(Ae("ActeursEtOrganesClean", n.error));
|
|
3023
3042
|
return n.data;
|
|
3024
3043
|
}
|
|
3025
|
-
function
|
|
3044
|
+
function Mr(t) {
|
|
3026
3045
|
return JSON.stringify(t, null, 2);
|
|
3027
3046
|
}
|
|
3028
|
-
function
|
|
3047
|
+
function Lr(t) {
|
|
3029
3048
|
return JSON.stringify(t, null, 2);
|
|
3030
3049
|
}
|
|
3031
|
-
function
|
|
3050
|
+
function wr(t) {
|
|
3032
3051
|
return JSON.stringify(t, null, 2);
|
|
3033
3052
|
}
|
|
3034
|
-
function
|
|
3053
|
+
function xr(t) {
|
|
3035
3054
|
return JSON.stringify(t, null, 2);
|
|
3036
3055
|
}
|
|
3037
|
-
function
|
|
3038
|
-
const i = n.issues.map((
|
|
3056
|
+
function Ae(t, n) {
|
|
3057
|
+
const i = n.issues.map((s) => ` - ${s.path.join(".")}: ${s.message}`).join(`
|
|
3039
3058
|
`);
|
|
3040
3059
|
return `Invalid ${t}:
|
|
3041
3060
|
${i}`;
|
|
3042
3061
|
}
|
|
3043
3062
|
const ae = {
|
|
3044
|
-
toActeur:
|
|
3045
|
-
acteurToJson:
|
|
3046
|
-
toOrgane:
|
|
3047
|
-
organeToJson:
|
|
3048
|
-
toDeport:
|
|
3049
|
-
deportToJson:
|
|
3050
|
-
toActeursEtOrganes:
|
|
3051
|
-
acteursEtOrganesToJson:
|
|
3052
|
-
},
|
|
3063
|
+
toActeur: Tr,
|
|
3064
|
+
acteurToJson: Mr,
|
|
3065
|
+
toOrgane: Er,
|
|
3066
|
+
organeToJson: Lr,
|
|
3067
|
+
toDeport: Pr,
|
|
3068
|
+
deportToJson: wr,
|
|
3069
|
+
toActeursEtOrganes: vr,
|
|
3070
|
+
acteursEtOrganesToJson: xr
|
|
3071
|
+
}, H = e.lazy(
|
|
3053
3072
|
() => e.object({
|
|
3054
3073
|
_: e.string().optional(),
|
|
3055
3074
|
id_syceron: e.string().optional(),
|
|
3056
3075
|
stime: e.string().optional(),
|
|
3057
3076
|
sup: e.string().optional(),
|
|
3058
|
-
lienAdt: e.array(
|
|
3077
|
+
lienAdt: e.array(H).optional()
|
|
3059
3078
|
}).meta({ description: "Texte de la séance du débat." })
|
|
3060
|
-
),
|
|
3079
|
+
), ye = e.object({
|
|
3061
3080
|
nom: e.string().optional(),
|
|
3062
3081
|
id: e.string().optional(),
|
|
3063
3082
|
qualite: e.string().optional()
|
|
3064
|
-
}).meta({ description: "Orateur de la séance du débat." }),
|
|
3065
|
-
orateur:
|
|
3066
|
-
}),
|
|
3083
|
+
}).meta({ description: "Orateur de la séance du débat." }), Vr = e.object({
|
|
3084
|
+
orateur: d(ye)
|
|
3085
|
+
}), Fr = e.union([
|
|
3086
|
+
Vr,
|
|
3087
|
+
d(ye),
|
|
3088
|
+
ye,
|
|
3089
|
+
e.string()
|
|
3090
|
+
]), Q = e.lazy(
|
|
3067
3091
|
() => e.object({
|
|
3068
3092
|
id_preparation: e.string().optional(),
|
|
3069
3093
|
ordre_absolu_seance: e.string().optional(),
|
|
@@ -3076,11 +3100,11 @@ const ae = {
|
|
|
3076
3100
|
code_style: e.string().optional(),
|
|
3077
3101
|
code_parole: e.string().optional(),
|
|
3078
3102
|
valeur: e.string().optional(),
|
|
3079
|
-
orateurs:
|
|
3080
|
-
texte: e.union([
|
|
3081
|
-
paragraphe:
|
|
3082
|
-
interExtraction:
|
|
3083
|
-
point:
|
|
3103
|
+
orateurs: Fr.optional(),
|
|
3104
|
+
texte: e.union([H, e.string()]).optional(),
|
|
3105
|
+
paragraphe: d(Q).optional(),
|
|
3106
|
+
interExtraction: d(Q).optional(),
|
|
3107
|
+
point: d(Q).optional(),
|
|
3084
3108
|
structure: e.string().optional(),
|
|
3085
3109
|
id_acteur: e.string().optional(),
|
|
3086
3110
|
id_mandat: e.string().optional(),
|
|
@@ -3092,50 +3116,54 @@ const ae = {
|
|
|
3092
3116
|
adt: e.string().optional(),
|
|
3093
3117
|
ssadt: e.string().optional(),
|
|
3094
3118
|
roledebat: e.string().optional(),
|
|
3095
|
-
changementPresidence:
|
|
3119
|
+
changementPresidence: d(Q).optional(),
|
|
3096
3120
|
type_debat: e.string().optional(),
|
|
3097
|
-
decision:
|
|
3121
|
+
decision: Pn.optional().meta({
|
|
3098
3122
|
description: "Décision prise à l'issue du point de débat."
|
|
3099
3123
|
}),
|
|
3100
3124
|
ouvertureSeance: Q.optional(),
|
|
3101
3125
|
qualite: e.string().optional(),
|
|
3102
3126
|
nom_orateur: e.string().optional()
|
|
3103
3127
|
}).meta({ description: "Point de la séance du débat." })
|
|
3104
|
-
),
|
|
3128
|
+
), qr = e.object({
|
|
3105
3129
|
point: Q
|
|
3106
|
-
}),
|
|
3130
|
+
}), Jr = e.object({
|
|
3107
3131
|
journee: e.string(),
|
|
3108
3132
|
session: e.string()
|
|
3109
|
-
}),
|
|
3110
|
-
quantiemes:
|
|
3111
|
-
ouvertureSeance:
|
|
3112
|
-
point:
|
|
3113
|
-
finSeance:
|
|
3114
|
-
paragraphe:
|
|
3115
|
-
}).meta({ description: "Contenu de la séance du débat." }),
|
|
3133
|
+
}), Xr = e.object({
|
|
3134
|
+
quantiemes: Jr,
|
|
3135
|
+
ouvertureSeance: d(Q).optional(),
|
|
3136
|
+
point: d(Q),
|
|
3137
|
+
finSeance: qr.optional(),
|
|
3138
|
+
paragraphe: d(Q).optional()
|
|
3139
|
+
}).meta({ description: "Contenu de la séance du débat." }), $r = e.object({
|
|
3116
3140
|
id_syceron: e.string(),
|
|
3117
3141
|
intitule: e.string().optional(),
|
|
3118
3142
|
sousIntitule: e.string().optional(),
|
|
3119
3143
|
type_debat: e.string().optional()
|
|
3120
|
-
}),
|
|
3144
|
+
}), oe = e.lazy(
|
|
3121
3145
|
() => e.object({
|
|
3122
3146
|
valeur_pts_odj: e.string().optional(),
|
|
3123
|
-
titreStruct:
|
|
3124
|
-
para:
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3147
|
+
titreStruct: $r,
|
|
3148
|
+
para: d(
|
|
3149
|
+
e.union([H, e.string(), e.unknown()])
|
|
3150
|
+
).optional(),
|
|
3151
|
+
sommaire2: d(oe).optional(),
|
|
3152
|
+
sommaire3: d(oe).optional(),
|
|
3153
|
+
presidentSeance: d(H).optional(),
|
|
3128
3154
|
type_debat: e.string().optional()
|
|
3129
3155
|
}).meta({ description: "Sommaire de la séance du débat." })
|
|
3130
|
-
),
|
|
3131
|
-
presidentSeance:
|
|
3156
|
+
), Ur = e.object({
|
|
3157
|
+
presidentSeance: H.meta({
|
|
3132
3158
|
description: "Président de la séance."
|
|
3133
3159
|
}),
|
|
3134
|
-
sommaire1:
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3160
|
+
sommaire1: d(oe).meta({
|
|
3161
|
+
description: "Premier niveau de sommaire."
|
|
3162
|
+
}),
|
|
3163
|
+
sommaire3: d(oe).optional().meta({ description: "Troisième niveau de sommaire." }),
|
|
3164
|
+
sommaire2: d(oe).optional().meta({ description: "Second niveau de sommaire." }),
|
|
3165
|
+
para: d(H).optional().meta({ description: "Paragraphe de texte libre dans le sommaire." })
|
|
3166
|
+
}).meta({ description: "Sommaire de la séance du débat." }), Br = e.object({
|
|
3139
3167
|
dateSeance: e.string(),
|
|
3140
3168
|
dateSeanceJour: e.string(),
|
|
3141
3169
|
numSeanceJour: e.string(),
|
|
@@ -3150,73 +3178,73 @@ const ae = {
|
|
|
3150
3178
|
version: e.string(),
|
|
3151
3179
|
environnement: e.string(),
|
|
3152
3180
|
heureGeneration: e.iso.datetime({ offset: !0 }),
|
|
3153
|
-
sommaire:
|
|
3154
|
-
}).meta({ description: "Données de la séance du débat." }),
|
|
3181
|
+
sommaire: Ur
|
|
3182
|
+
}).meta({ description: "Données de la séance du débat." }), yn = e.object({
|
|
3155
3183
|
schemaVersion: e.string().optional(),
|
|
3156
|
-
uid:
|
|
3184
|
+
uid: j().meta({
|
|
3157
3185
|
description: "Identifiant unique du compte rendu"
|
|
3158
3186
|
}),
|
|
3159
3187
|
seanceRef: e.string(),
|
|
3160
3188
|
sessionRef: e.string(),
|
|
3161
|
-
metadonnees:
|
|
3162
|
-
contenu:
|
|
3189
|
+
metadonnees: Br,
|
|
3190
|
+
contenu: Xr,
|
|
3163
3191
|
videoUrl: e.string().optional(),
|
|
3164
3192
|
videoTimecode: e.number().optional()
|
|
3165
3193
|
}).meta({
|
|
3166
3194
|
title: "Débat",
|
|
3167
3195
|
description: "Compte rendu des débats en séance."
|
|
3168
|
-
}),
|
|
3169
|
-
comptesRendus: e.array(
|
|
3196
|
+
}), Qr = e.object({
|
|
3197
|
+
comptesRendus: e.array(yn)
|
|
3170
3198
|
});
|
|
3171
|
-
function
|
|
3172
|
-
const n =
|
|
3199
|
+
function kr(t) {
|
|
3200
|
+
const n = yn.safeParse(JSON.parse(t));
|
|
3173
3201
|
if (!n.success)
|
|
3174
|
-
throw new Error(
|
|
3202
|
+
throw new Error(On("CompteRenduClean", n.error));
|
|
3175
3203
|
return n.data;
|
|
3176
3204
|
}
|
|
3177
|
-
function
|
|
3178
|
-
const n =
|
|
3205
|
+
function zr(t) {
|
|
3206
|
+
const n = Qr.safeParse(JSON.parse(t));
|
|
3179
3207
|
if (!n.success)
|
|
3180
|
-
throw new Error(
|
|
3208
|
+
throw new Error(On("ComptesRendusClean", n.error));
|
|
3181
3209
|
return n.data;
|
|
3182
3210
|
}
|
|
3183
|
-
function
|
|
3211
|
+
function Gr(t) {
|
|
3184
3212
|
return JSON.stringify(t, null, 2);
|
|
3185
3213
|
}
|
|
3186
|
-
function
|
|
3214
|
+
function Wr(t) {
|
|
3187
3215
|
return JSON.stringify(t, null, 2);
|
|
3188
3216
|
}
|
|
3189
|
-
function
|
|
3190
|
-
const i = n.issues.map((
|
|
3217
|
+
function On(t, n) {
|
|
3218
|
+
const i = n.issues.map((s) => ` - ${s.path.join(".")}: ${s.message}`).join(`
|
|
3191
3219
|
`);
|
|
3192
3220
|
return `Invalid ${t}:
|
|
3193
3221
|
${i}`;
|
|
3194
3222
|
}
|
|
3195
|
-
const
|
|
3196
|
-
toCompteRendu:
|
|
3197
|
-
compteRenduToJson:
|
|
3198
|
-
toComptesRendus:
|
|
3199
|
-
comptesRendusToJson:
|
|
3200
|
-
},
|
|
3223
|
+
const Ge = {
|
|
3224
|
+
toCompteRendu: kr,
|
|
3225
|
+
compteRenduToJson: Gr,
|
|
3226
|
+
toComptesRendus: zr,
|
|
3227
|
+
comptesRendusToJson: Wr
|
|
3228
|
+
}, Zr = e.object({
|
|
3201
3229
|
texte: e.string().optional()
|
|
3202
|
-
}), Wr = e.object({
|
|
3203
|
-
libelle: e.string()
|
|
3204
|
-
}), Zr = e.object({
|
|
3205
|
-
code: $t,
|
|
3206
|
-
libelle: Je
|
|
3207
3230
|
}), Hr = e.object({
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3231
|
+
libelle: e.string()
|
|
3232
|
+
}), Kr = e.object({
|
|
3233
|
+
code: Bt,
|
|
3234
|
+
libelle: $e
|
|
3235
|
+
}), Yr = e.object({
|
|
3236
|
+
codeTypeVote: Qt,
|
|
3237
|
+
libelleTypeVote: kt,
|
|
3238
|
+
typeMajorite: Zt.meta({
|
|
3211
3239
|
description: "La signification de ce champ n'est pas définie."
|
|
3212
3240
|
})
|
|
3213
|
-
}),
|
|
3241
|
+
}), Nn = e.object({
|
|
3214
3242
|
pour: e.string().meta({ description: "Nombre total de votes pour." }),
|
|
3215
3243
|
contre: e.string().meta({ description: "Nombre total de votes contre." }),
|
|
3216
3244
|
abstentions: e.string().optional().meta({ description: "Nombre total d'abstentions." }),
|
|
3217
3245
|
nonVotants: e.string().optional().meta({ description: "Nombre total de non votants" }),
|
|
3218
3246
|
nonVotantsVolontaires: e.string().optional().meta({ description: "Nombre total de non votants volontaires." })
|
|
3219
|
-
}),
|
|
3247
|
+
}), el = e.object({
|
|
3220
3248
|
nombreVotants: e.string().meta({
|
|
3221
3249
|
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}."
|
|
3222
3250
|
}),
|
|
@@ -3224,46 +3252,46 @@ const ke = {
|
|
|
3224
3252
|
nbrSuffragesRequis: e.string().meta({
|
|
3225
3253
|
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}."
|
|
3226
3254
|
}),
|
|
3227
|
-
annonce:
|
|
3228
|
-
decompte:
|
|
3255
|
+
annonce: $e,
|
|
3256
|
+
decompte: Nn
|
|
3229
3257
|
}), w = e.object({
|
|
3230
3258
|
acteurRef: P().meta({ description: "Référence à l'acteur votant" }),
|
|
3231
3259
|
mandatRef: e.string(),
|
|
3232
3260
|
parDelegation: e.boolean().optional(),
|
|
3233
3261
|
numPlace: e.number().optional(),
|
|
3234
|
-
causePositionVote:
|
|
3235
|
-
}),
|
|
3262
|
+
causePositionVote: Ut.optional()
|
|
3263
|
+
}), tl = e.object({
|
|
3236
3264
|
nonVotants: e.array(w).optional(),
|
|
3237
3265
|
pour: e.array(w).optional(),
|
|
3238
3266
|
contre: e.array(w).optional(),
|
|
3239
3267
|
abstentions: e.array(w).optional()
|
|
3240
|
-
}),
|
|
3241
|
-
positionMajoritaire:
|
|
3242
|
-
decompteVoix:
|
|
3243
|
-
decompteNominatif:
|
|
3244
|
-
}),
|
|
3268
|
+
}), nl = e.object({
|
|
3269
|
+
positionMajoritaire: Wt,
|
|
3270
|
+
decompteVoix: Nn,
|
|
3271
|
+
decompteNominatif: tl
|
|
3272
|
+
}), il = e.object({
|
|
3245
3273
|
organeRef: T(),
|
|
3246
3274
|
nombreMembresGroupe: e.string(),
|
|
3247
|
-
vote:
|
|
3248
|
-
}),
|
|
3275
|
+
vote: nl
|
|
3276
|
+
}), ol = e.object({
|
|
3249
3277
|
organeRef: T(),
|
|
3250
|
-
groupes: e.array(
|
|
3251
|
-
}),
|
|
3278
|
+
groupes: e.array(il)
|
|
3279
|
+
}), sl = e.object({
|
|
3252
3280
|
nonVotants: e.array(w).optional(),
|
|
3253
3281
|
pour: e.array(w).optional(),
|
|
3254
3282
|
contre: e.array(w).optional(),
|
|
3255
3283
|
abstentions: e.array(w).optional(),
|
|
3256
3284
|
nonVotantsVolontaires: e.array(w).optional()
|
|
3257
|
-
}),
|
|
3285
|
+
}), al = e.object({
|
|
3258
3286
|
nonVotants: e.array(w).optional(),
|
|
3259
3287
|
pour: e.array(w).optional(),
|
|
3260
3288
|
contre: e.array(w).optional(),
|
|
3261
3289
|
abstentions: e.array(w).optional(),
|
|
3262
3290
|
nonVotantsVolontaires: e.array(w).optional(),
|
|
3263
|
-
dysfonctionnement:
|
|
3264
|
-
}),
|
|
3291
|
+
dysfonctionnement: sl.optional()
|
|
3292
|
+
}), Rn = e.object({
|
|
3265
3293
|
schemaVersion: e.string().optional(),
|
|
3266
|
-
uid:
|
|
3294
|
+
uid: j(),
|
|
3267
3295
|
numero: e.string().meta({
|
|
3268
3296
|
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)."
|
|
3269
3297
|
}),
|
|
@@ -3281,50 +3309,50 @@ const ke = {
|
|
|
3281
3309
|
description: "Date à laquelle le vote a eu lieu."
|
|
3282
3310
|
}),
|
|
3283
3311
|
quantiemeJourSeance: e.string().meta({ description: "Numéro de la séance dans la journée." }),
|
|
3284
|
-
typeVote:
|
|
3285
|
-
sort:
|
|
3312
|
+
typeVote: Yr,
|
|
3313
|
+
sort: Kr,
|
|
3286
3314
|
titre: e.string().meta({ description: "Objet du vote." }),
|
|
3287
|
-
demandeur:
|
|
3288
|
-
objet:
|
|
3289
|
-
modePublicationDesVotes:
|
|
3315
|
+
demandeur: Zr,
|
|
3316
|
+
objet: Hr,
|
|
3317
|
+
modePublicationDesVotes: Gt.meta({
|
|
3290
3318
|
description: "La signification de ce champ n'est pas définie."
|
|
3291
3319
|
}),
|
|
3292
|
-
syntheseVote:
|
|
3293
|
-
ventilationVotes:
|
|
3294
|
-
miseAuPoint:
|
|
3295
|
-
lieuVote:
|
|
3296
|
-
}),
|
|
3297
|
-
scrutins: e.array(
|
|
3320
|
+
syntheseVote: el,
|
|
3321
|
+
ventilationVotes: ol,
|
|
3322
|
+
miseAuPoint: al.optional(),
|
|
3323
|
+
lieuVote: zt.optional()
|
|
3324
|
+
}), rl = e.object({
|
|
3325
|
+
scrutins: e.array(Rn)
|
|
3298
3326
|
});
|
|
3299
|
-
function
|
|
3300
|
-
const n =
|
|
3327
|
+
function ll(t) {
|
|
3328
|
+
const n = Rn.safeParse(JSON.parse(t));
|
|
3301
3329
|
if (!n.success)
|
|
3302
|
-
throw new Error(
|
|
3330
|
+
throw new Error(Dn("ScrutinClean", n.error));
|
|
3303
3331
|
return n.data;
|
|
3304
3332
|
}
|
|
3305
|
-
function
|
|
3306
|
-
const n =
|
|
3333
|
+
function cl(t) {
|
|
3334
|
+
const n = rl.safeParse(JSON.parse(t));
|
|
3307
3335
|
if (!n.success)
|
|
3308
|
-
throw new Error(
|
|
3336
|
+
throw new Error(Dn("ScrutinsClean", n.error));
|
|
3309
3337
|
return n.data;
|
|
3310
3338
|
}
|
|
3311
|
-
function
|
|
3339
|
+
function ul(t) {
|
|
3312
3340
|
return JSON.stringify(t, null, 2);
|
|
3313
3341
|
}
|
|
3314
|
-
function
|
|
3342
|
+
function pl(t) {
|
|
3315
3343
|
return JSON.stringify(t, null, 2);
|
|
3316
3344
|
}
|
|
3317
|
-
function
|
|
3318
|
-
const i = n.issues.map((
|
|
3345
|
+
function Dn(t, n) {
|
|
3346
|
+
const i = n.issues.map((s) => ` - ${s.path.join(".")}: ${s.message}`).join(`
|
|
3319
3347
|
`);
|
|
3320
3348
|
return `Invalid ${t}:
|
|
3321
3349
|
${i}`;
|
|
3322
3350
|
}
|
|
3323
|
-
const
|
|
3324
|
-
toScrutin:
|
|
3325
|
-
scrutinToJson:
|
|
3326
|
-
toScrutins:
|
|
3327
|
-
scrutinsToJson:
|
|
3351
|
+
const We = {
|
|
3352
|
+
toScrutin: ll,
|
|
3353
|
+
scrutinToJson: ul,
|
|
3354
|
+
toScrutins: cl,
|
|
3355
|
+
scrutinsToJson: pl
|
|
3328
3356
|
}, R = {
|
|
3329
3357
|
acteursEtOrganes: [
|
|
3330
3358
|
{
|
|
@@ -3352,8 +3380,8 @@ const ze = {
|
|
|
3352
3380
|
name: "AMO10_deputes_actifs_mandats_actifs_organes_XVII",
|
|
3353
3381
|
ignoreForWeb: !0,
|
|
3354
3382
|
legislature: l.DixSept,
|
|
3355
|
-
repairZip:
|
|
3356
|
-
structure:
|
|
3383
|
+
repairZip: O,
|
|
3384
|
+
structure: A.SegmentedFiles,
|
|
3357
3385
|
title: "Députés actifs et organes de la XVIIème législature",
|
|
3358
3386
|
url: "https://data.assemblee-nationale.fr/static/openData/repository/17/amo/deputes_actifs_mandats_actifs_organes/AMO10_deputes_actifs_mandats_actifs_organes.json.zip"
|
|
3359
3387
|
},
|
|
@@ -3382,8 +3410,8 @@ const ze = {
|
|
|
3382
3410
|
name: "AMO10_deputes_actifs_mandats_actifs_organes_XVI",
|
|
3383
3411
|
ignoreForWeb: !0,
|
|
3384
3412
|
legislature: l.Seize,
|
|
3385
|
-
repairZip:
|
|
3386
|
-
structure:
|
|
3413
|
+
repairZip: O,
|
|
3414
|
+
structure: A.SegmentedFiles,
|
|
3387
3415
|
title: "Députés actifs et organes de la XVIème législature",
|
|
3388
3416
|
url: "https://data.assemblee-nationale.fr/static/openData/repository/16/amo/deputes_actifs_mandats_actifs_organes/AMO10_deputes_actifs_mandats_actifs_organes.json.zip"
|
|
3389
3417
|
},
|
|
@@ -3412,8 +3440,8 @@ const ze = {
|
|
|
3412
3440
|
name: "AMO10_deputes_actifs_mandats_actifs_organes_XV",
|
|
3413
3441
|
ignoreForWeb: !0,
|
|
3414
3442
|
legislature: l.Quinze,
|
|
3415
|
-
repairZip:
|
|
3416
|
-
structure:
|
|
3443
|
+
repairZip: O,
|
|
3444
|
+
structure: A.SegmentedFiles,
|
|
3417
3445
|
title: "Députés actifs et organes de la XVème législature",
|
|
3418
3446
|
url: "https://data.assemblee-nationale.fr/static/openData/repository/15/amo/deputes_actifs_mandats_actifs_organes/AMO10_deputes_actifs_mandats_actifs_organes_XV.json.zip"
|
|
3419
3447
|
},
|
|
@@ -3442,8 +3470,8 @@ const ze = {
|
|
|
3442
3470
|
name: "AMO20_dep_sen_min_tous_mandats_et_organes_XVII",
|
|
3443
3471
|
ignoreForWeb: !0,
|
|
3444
3472
|
legislature: l.DixSept,
|
|
3445
|
-
repairZip:
|
|
3446
|
-
structure:
|
|
3473
|
+
repairZip: O,
|
|
3474
|
+
structure: A.SegmentedFiles,
|
|
3447
3475
|
title: "Acteurs et organes de la XVIIème législature",
|
|
3448
3476
|
url: "https://data.assemblee-nationale.fr/static/openData/repository/17/amo/deputes_senateurs_ministres_legislature/AMO20_dep_sen_min_tous_mandats_et_organes.json.zip"
|
|
3449
3477
|
},
|
|
@@ -3472,8 +3500,8 @@ const ze = {
|
|
|
3472
3500
|
name: "AMO20_dep_sen_min_tous_mandats_et_organes_XVI",
|
|
3473
3501
|
ignoreForWeb: !0,
|
|
3474
3502
|
legislature: l.Seize,
|
|
3475
|
-
repairZip:
|
|
3476
|
-
structure:
|
|
3503
|
+
repairZip: O,
|
|
3504
|
+
structure: A.SegmentedFiles,
|
|
3477
3505
|
title: "Acteurs et organes de la XVIème législature",
|
|
3478
3506
|
url: "https://data.assemblee-nationale.fr/static/openData/repository/16/amo/deputes_senateurs_ministres_legislature/AMO20_dep_sen_min_tous_mandats_et_organes.json.zip"
|
|
3479
3507
|
},
|
|
@@ -3502,8 +3530,8 @@ const ze = {
|
|
|
3502
3530
|
name: "AMO20_dep_sen_min_tous_mandats_et_organes_XV",
|
|
3503
3531
|
ignoreForWeb: !0,
|
|
3504
3532
|
legislature: l.Quinze,
|
|
3505
|
-
repairZip:
|
|
3506
|
-
structure:
|
|
3533
|
+
repairZip: O,
|
|
3534
|
+
structure: A.SegmentedFiles,
|
|
3507
3535
|
title: "Acteurs et organes de la XVème législature",
|
|
3508
3536
|
url: "https://data.assemblee-nationale.fr/static/openData/repository/15/amo/deputes_senateurs_ministres_legislature/AMO20_dep_sen_min_tous_mandats_et_organes_XV.json.zip"
|
|
3509
3537
|
},
|
|
@@ -3522,7 +3550,7 @@ const ze = {
|
|
|
3522
3550
|
name: "AMO20_dep_sen_min_tous_mandats_et_organes_XIV",
|
|
3523
3551
|
ignoreForWeb: !0,
|
|
3524
3552
|
legislature: l.Quatorze,
|
|
3525
|
-
structure:
|
|
3553
|
+
structure: A.SingleFile,
|
|
3526
3554
|
title: "Acteurs et organes de la XIVème législature",
|
|
3527
3555
|
url: "https://data.assemblee-nationale.fr/static/openData/repository/14/amo/deputes_senateurs_ministres_legislatures_XIV/AMO20_dep_sen_min_tous_mandats_et_organes_XIV.json.zip"
|
|
3528
3556
|
},
|
|
@@ -3534,8 +3562,8 @@ const ze = {
|
|
|
3534
3562
|
filename: "AMO30_tous_acteurs_tous_mandats_tous_organes_historique.json",
|
|
3535
3563
|
name: "AMO30_tous_acteurs_tous_mandats_tous_organes_historique",
|
|
3536
3564
|
legislature: l.All,
|
|
3537
|
-
repairZip:
|
|
3538
|
-
structure:
|
|
3565
|
+
repairZip: O,
|
|
3566
|
+
structure: A.SegmentedFiles,
|
|
3539
3567
|
title: "Historique de tous les acteurs et organes depuis la XIème législature",
|
|
3540
3568
|
url: "https://data.assemblee-nationale.fr/static/openData/repository/17/amo/tous_acteurs_mandats_organes_xi_legislature/AMO30_tous_acteurs_tous_mandats_tous_organes_historique.json.zip"
|
|
3541
3569
|
},
|
|
@@ -3612,7 +3640,7 @@ const ze = {
|
|
|
3612
3640
|
o.join(i, "organe")
|
|
3613
3641
|
);
|
|
3614
3642
|
},
|
|
3615
|
-
structure:
|
|
3643
|
+
structure: A.SegmentedFiles,
|
|
3616
3644
|
title: "Députés actifs et organes de la XVIIème législature",
|
|
3617
3645
|
url: "https://data.assemblee-nationale.fr/static/openData/repository/17/amo/deputes_actifs_mandats_actifs_organes_divises/AMO40_deputes_actifs_mandats_actifs_organes_divises.json.zip"
|
|
3618
3646
|
},
|
|
@@ -3657,7 +3685,7 @@ const ze = {
|
|
|
3657
3685
|
o.join(i, "organe")
|
|
3658
3686
|
);
|
|
3659
3687
|
},
|
|
3660
|
-
structure:
|
|
3688
|
+
structure: A.SegmentedFiles,
|
|
3661
3689
|
title: "Députés actifs et organes de la XVIème législature",
|
|
3662
3690
|
url: "https://data.assemblee-nationale.fr/static/openData/repository/16/amo/deputes_actifs_mandats_actifs_organes_divises/AMO40_deputes_actifs_mandats_actifs_organes_divises.json.zip"
|
|
3663
3691
|
},
|
|
@@ -3700,7 +3728,7 @@ const ze = {
|
|
|
3700
3728
|
o.join(i, "organe")
|
|
3701
3729
|
);
|
|
3702
3730
|
},
|
|
3703
|
-
structure:
|
|
3731
|
+
structure: A.SegmentedFiles,
|
|
3704
3732
|
title: "Députés actifs et organes de la XVème législature",
|
|
3705
3733
|
url: "https://data.assemblee-nationale.fr/static/openData/repository/15/amo/deputes_actifs_mandats_actifs_organes_divises/AMO40_deputes_actifs_mandats_actifs_organes_divises_XV.json.zip"
|
|
3706
3734
|
},
|
|
@@ -3736,7 +3764,7 @@ const ze = {
|
|
|
3736
3764
|
o.join(i, "organe")
|
|
3737
3765
|
);
|
|
3738
3766
|
},
|
|
3739
|
-
structure:
|
|
3767
|
+
structure: A.SegmentedFiles,
|
|
3740
3768
|
title: "Acteurs, mandats et organes de la XVIIème législature (fichiers séparés, y compris mandats)",
|
|
3741
3769
|
url: "https://data.assemblee-nationale.fr/static/openData/repository/17/amo/acteurs_mandats_organes_divises/AMO50_acteurs_mandats_organes_divises.json.zip"
|
|
3742
3770
|
},
|
|
@@ -3772,7 +3800,7 @@ const ze = {
|
|
|
3772
3800
|
o.join(i, "organe")
|
|
3773
3801
|
);
|
|
3774
3802
|
},
|
|
3775
|
-
structure:
|
|
3803
|
+
structure: A.SegmentedFiles,
|
|
3776
3804
|
title: "Acteurs, mandats et organes de la XVIème législature (fichiers séparés, y compris mandats)",
|
|
3777
3805
|
url: "https://data.assemblee-nationale.fr/static/openData/repository/16/amo/acteurs_mandats_organes_divises/AMO50_acteurs_mandats_organes_divises.json.zip"
|
|
3778
3806
|
},
|
|
@@ -3808,7 +3836,7 @@ const ze = {
|
|
|
3808
3836
|
o.join(i, "organe")
|
|
3809
3837
|
);
|
|
3810
3838
|
},
|
|
3811
|
-
structure:
|
|
3839
|
+
structure: A.SegmentedFiles,
|
|
3812
3840
|
title: "Acteurs, mandats et organes de la XVème législature (fichiers séparés, y compris mandats)",
|
|
3813
3841
|
url: "https://data.assemblee-nationale.fr/static/openData/repository/15/amo/acteurs_mandats_organes_divises/AMO50_acteurs_mandats_organes_divises_XV.json.zip"
|
|
3814
3842
|
}
|
|
@@ -3818,8 +3846,8 @@ const ze = {
|
|
|
3818
3846
|
filename: "Agenda_XVII.json",
|
|
3819
3847
|
name: "Agenda_XVII",
|
|
3820
3848
|
legislature: l.DixSept,
|
|
3821
|
-
repairZip:
|
|
3822
|
-
structure:
|
|
3849
|
+
repairZip: O,
|
|
3850
|
+
structure: A.SegmentedFiles,
|
|
3823
3851
|
title: "Agenda de la XVIIème législature",
|
|
3824
3852
|
url: "https://data.assemblee-nationale.fr/static/openData/repository/17/vp/reunions/Agenda.json.zip"
|
|
3825
3853
|
},
|
|
@@ -3827,8 +3855,8 @@ const ze = {
|
|
|
3827
3855
|
filename: "Agenda_XVI.json",
|
|
3828
3856
|
name: "Agenda_XVI",
|
|
3829
3857
|
legislature: l.Seize,
|
|
3830
|
-
repairZip:
|
|
3831
|
-
structure:
|
|
3858
|
+
repairZip: O,
|
|
3859
|
+
structure: A.SegmentedFiles,
|
|
3832
3860
|
title: "Agenda de la XVIème législature",
|
|
3833
3861
|
url: "https://data.assemblee-nationale.fr/static/openData/repository/16/vp/reunions/Agenda.json.zip"
|
|
3834
3862
|
},
|
|
@@ -3836,8 +3864,8 @@ const ze = {
|
|
|
3836
3864
|
filename: "Agenda_XV.json",
|
|
3837
3865
|
name: "Agenda_XV",
|
|
3838
3866
|
legislature: l.Quinze,
|
|
3839
|
-
repairZip:
|
|
3840
|
-
structure:
|
|
3867
|
+
repairZip: O,
|
|
3868
|
+
structure: A.SegmentedFiles,
|
|
3841
3869
|
title: "Agenda de la XVème législature",
|
|
3842
3870
|
url: "https://data.assemblee-nationale.fr/static/openData/repository/15/vp/reunions/Agenda_XV.json.zip"
|
|
3843
3871
|
},
|
|
@@ -3845,7 +3873,7 @@ const ze = {
|
|
|
3845
3873
|
filename: "Agenda_XIV.json",
|
|
3846
3874
|
name: "Agenda_XIV",
|
|
3847
3875
|
legislature: l.Quatorze,
|
|
3848
|
-
structure:
|
|
3876
|
+
structure: A.SingleFile,
|
|
3849
3877
|
title: "Agenda de la XIVème législature",
|
|
3850
3878
|
url: "https://data.assemblee-nationale.fr/static/openData/repository/14/vp/reunions/Agenda_XIV.json.zip"
|
|
3851
3879
|
}
|
|
@@ -3855,8 +3883,8 @@ const ze = {
|
|
|
3855
3883
|
filename: "Amendements_XVII.json",
|
|
3856
3884
|
name: "Amendements_XVII",
|
|
3857
3885
|
legislature: l.DixSept,
|
|
3858
|
-
repairZip:
|
|
3859
|
-
structure:
|
|
3886
|
+
repairZip: O,
|
|
3887
|
+
structure: A.SegmentedFiles,
|
|
3860
3888
|
title: "Amendements de la XVIIème législature",
|
|
3861
3889
|
url: "https://data.assemblee-nationale.fr/static/openData/repository/17/loi/amendements_div_legis/Amendements.json.zip"
|
|
3862
3890
|
},
|
|
@@ -3864,8 +3892,8 @@ const ze = {
|
|
|
3864
3892
|
filename: "Amendements_XVI.json",
|
|
3865
3893
|
name: "Amendements_XVI",
|
|
3866
3894
|
legislature: l.Seize,
|
|
3867
|
-
repairZip:
|
|
3868
|
-
structure:
|
|
3895
|
+
repairZip: O,
|
|
3896
|
+
structure: A.SegmentedFiles,
|
|
3869
3897
|
title: "Amendements de la XVIème législature",
|
|
3870
3898
|
url: "https://data.assemblee-nationale.fr/static/openData/repository/16/loi/amendements_div_legis/Amendements.json.zip"
|
|
3871
3899
|
},
|
|
@@ -3873,8 +3901,8 @@ const ze = {
|
|
|
3873
3901
|
filename: "Amendements_XV.json",
|
|
3874
3902
|
name: "Amendements_XV",
|
|
3875
3903
|
legislature: l.Quinze,
|
|
3876
|
-
repairZip:
|
|
3877
|
-
structure:
|
|
3904
|
+
repairZip: O,
|
|
3905
|
+
structure: A.SegmentedFiles,
|
|
3878
3906
|
title: "Amendements de la XVème législature",
|
|
3879
3907
|
url: "https://data.assemblee-nationale.fr/static/openData/repository/15/loi/amendements_legis/Amendements_XV.json.zip"
|
|
3880
3908
|
}
|
|
@@ -3893,8 +3921,8 @@ const ze = {
|
|
|
3893
3921
|
filename: "Dossiers_Legislatifs_XVII.json",
|
|
3894
3922
|
name: "Dossiers_Legislatifs_XVII",
|
|
3895
3923
|
legislature: l.DixSept,
|
|
3896
|
-
repairZip:
|
|
3897
|
-
structure:
|
|
3924
|
+
repairZip: O,
|
|
3925
|
+
structure: A.SegmentedFiles,
|
|
3898
3926
|
title: "Dossiers législatifs de la XVIIème législature",
|
|
3899
3927
|
url: "https://data.assemblee-nationale.fr/static/openData/repository/17/loi/dossiers_legislatifs/Dossiers_Legislatifs.json.zip"
|
|
3900
3928
|
},
|
|
@@ -3902,8 +3930,8 @@ const ze = {
|
|
|
3902
3930
|
filename: "Dossiers_Legislatifs_XVI.json",
|
|
3903
3931
|
name: "Dossiers_Legislatifs_XVI",
|
|
3904
3932
|
legislature: l.Seize,
|
|
3905
|
-
repairZip:
|
|
3906
|
-
structure:
|
|
3933
|
+
repairZip: O,
|
|
3934
|
+
structure: A.SegmentedFiles,
|
|
3907
3935
|
title: "Dossiers législatifs de la XVIème législature",
|
|
3908
3936
|
url: "https://data.assemblee-nationale.fr/static/openData/repository/16/loi/dossiers_legislatifs/Dossiers_Legislatifs.json.zip"
|
|
3909
3937
|
},
|
|
@@ -3911,8 +3939,8 @@ const ze = {
|
|
|
3911
3939
|
filename: "Dossiers_Legislatifs_XV.json",
|
|
3912
3940
|
name: "Dossiers_Legislatifs_XV",
|
|
3913
3941
|
legislature: l.Quinze,
|
|
3914
|
-
repairZip:
|
|
3915
|
-
structure:
|
|
3942
|
+
repairZip: O,
|
|
3943
|
+
structure: A.SegmentedFiles,
|
|
3916
3944
|
title: "Dossiers législatifs de la XVème législature",
|
|
3917
3945
|
url: "https://data.assemblee-nationale.fr/static/openData/repository/15/loi/dossiers_legislatifs/Dossiers_Legislatifs_XV.json.zip"
|
|
3918
3946
|
},
|
|
@@ -3920,7 +3948,7 @@ const ze = {
|
|
|
3920
3948
|
filename: "Dossiers_Legislatifs_XIV.json",
|
|
3921
3949
|
name: "Dossiers_Legislatifs_XIV",
|
|
3922
3950
|
legislature: l.Quatorze,
|
|
3923
|
-
structure:
|
|
3951
|
+
structure: A.SingleFile,
|
|
3924
3952
|
title: "Dossiers législatifs de la XIVème législature",
|
|
3925
3953
|
url: "https://data.assemblee-nationale.fr/static/openData/repository/14/loi/dossiers_legislatifs/Dossiers_Legislatifs_XIV.json.zip"
|
|
3926
3954
|
}
|
|
@@ -3930,8 +3958,8 @@ const ze = {
|
|
|
3930
3958
|
filename: "Scrutins_XVII.json",
|
|
3931
3959
|
name: "Scrutins_XVII",
|
|
3932
3960
|
legislature: l.DixSept,
|
|
3933
|
-
repairZip:
|
|
3934
|
-
structure:
|
|
3961
|
+
repairZip: O,
|
|
3962
|
+
structure: A.SegmentedFiles,
|
|
3935
3963
|
title: "Scrutins de la XVIIème législature",
|
|
3936
3964
|
url: "https://data.assemblee-nationale.fr/static/openData/repository/17/loi/scrutins/Scrutins.json.zip"
|
|
3937
3965
|
},
|
|
@@ -3939,8 +3967,8 @@ const ze = {
|
|
|
3939
3967
|
filename: "Scrutins_XVI.json",
|
|
3940
3968
|
name: "Scrutins_XVI",
|
|
3941
3969
|
legislature: l.Seize,
|
|
3942
|
-
repairZip:
|
|
3943
|
-
structure:
|
|
3970
|
+
repairZip: O,
|
|
3971
|
+
structure: A.SegmentedFiles,
|
|
3944
3972
|
title: "Scrutins de la XVIème législature",
|
|
3945
3973
|
url: "https://data.assemblee-nationale.fr/static/openData/repository/16/loi/scrutins/Scrutins.json.zip"
|
|
3946
3974
|
},
|
|
@@ -3948,8 +3976,8 @@ const ze = {
|
|
|
3948
3976
|
filename: "Scrutins_XV.json",
|
|
3949
3977
|
name: "Scrutins_XV",
|
|
3950
3978
|
legislature: l.Quinze,
|
|
3951
|
-
repairZip:
|
|
3952
|
-
structure:
|
|
3979
|
+
repairZip: O,
|
|
3980
|
+
structure: A.SegmentedFiles,
|
|
3953
3981
|
title: "Scrutins de la XVème législature",
|
|
3954
3982
|
url: "https://data.assemblee-nationale.fr/static/openData/repository/15/loi/scrutins/Scrutins_XV.json.zip"
|
|
3955
3983
|
},
|
|
@@ -3957,7 +3985,7 @@ const ze = {
|
|
|
3957
3985
|
filename: "Scrutins_XIV.json",
|
|
3958
3986
|
name: "Scrutins_XIV",
|
|
3959
3987
|
legislature: l.Quatorze,
|
|
3960
|
-
structure:
|
|
3988
|
+
structure: A.SingleFile,
|
|
3961
3989
|
title: "Scrutins de la XIVème législature",
|
|
3962
3990
|
url: "https://data.assemblee-nationale.fr/static/openData/repository/14/loi/scrutins/Scrutins_XIV.json.zip"
|
|
3963
3991
|
}
|
|
@@ -3967,8 +3995,8 @@ const ze = {
|
|
|
3967
3995
|
filename: "Questions_ecrites_XVII.json",
|
|
3968
3996
|
name: "Questions_ecrites_XVII",
|
|
3969
3997
|
legislature: l.DixSept,
|
|
3970
|
-
repairZip:
|
|
3971
|
-
structure:
|
|
3998
|
+
repairZip: O,
|
|
3999
|
+
structure: A.SegmentedFiles,
|
|
3972
4000
|
title: "Questions écrites de la XVIIème législature",
|
|
3973
4001
|
url: "https://data.assemblee-nationale.fr/static/openData/repository/17/questions/questions_ecrites/Questions_ecrites.json.zip"
|
|
3974
4002
|
},
|
|
@@ -3976,8 +4004,8 @@ const ze = {
|
|
|
3976
4004
|
filename: "Questions_ecrites_XVI.json",
|
|
3977
4005
|
name: "Questions_ecrites_XVI",
|
|
3978
4006
|
legislature: l.Seize,
|
|
3979
|
-
repairZip:
|
|
3980
|
-
structure:
|
|
4007
|
+
repairZip: O,
|
|
4008
|
+
structure: A.SegmentedFiles,
|
|
3981
4009
|
title: "Questions écrites de la XVIème législature",
|
|
3982
4010
|
url: "https://data.assemblee-nationale.fr/static/openData/repository/16/questions/questions_ecrites/Questions_ecrites.json.zip"
|
|
3983
4011
|
},
|
|
@@ -3985,8 +4013,8 @@ const ze = {
|
|
|
3985
4013
|
filename: "Questions_gouvernement_XVII.json",
|
|
3986
4014
|
name: "Questions_gouvernement_XVII",
|
|
3987
4015
|
legislature: l.DixSept,
|
|
3988
|
-
repairZip:
|
|
3989
|
-
structure:
|
|
4016
|
+
repairZip: O,
|
|
4017
|
+
structure: A.SegmentedFiles,
|
|
3990
4018
|
title: "Questions au gouvernement de la XVIIème législature",
|
|
3991
4019
|
url: "https://data.assemblee-nationale.fr/static/openData/repository/17/questions/questions_gouvernement/Questions_gouvernement.json.zip"
|
|
3992
4020
|
},
|
|
@@ -3994,8 +4022,8 @@ const ze = {
|
|
|
3994
4022
|
filename: "Questions_gouvernement_XVI.json",
|
|
3995
4023
|
name: "Questions_gouvernement_XVI",
|
|
3996
4024
|
legislature: l.Seize,
|
|
3997
|
-
repairZip:
|
|
3998
|
-
structure:
|
|
4025
|
+
repairZip: O,
|
|
4026
|
+
structure: A.SegmentedFiles,
|
|
3999
4027
|
title: "Questions au gouvernement de la XVIème législature",
|
|
4000
4028
|
url: "https://data.assemblee-nationale.fr/static/openData/repository/16/questions/questions_gouvernement/Questions_gouvernement.json.zip"
|
|
4001
4029
|
},
|
|
@@ -4003,8 +4031,8 @@ const ze = {
|
|
|
4003
4031
|
filename: "Questions_orales_XVII.json",
|
|
4004
4032
|
name: "Questions_orales_XVII",
|
|
4005
4033
|
legislature: l.DixSept,
|
|
4006
|
-
repairZip:
|
|
4007
|
-
structure:
|
|
4034
|
+
repairZip: O,
|
|
4035
|
+
structure: A.SegmentedFiles,
|
|
4008
4036
|
title: "Questions orales sans débats de la XVIIème législature",
|
|
4009
4037
|
url: "https://data.assemblee-nationale.fr/static/openData/repository/17/questions/questions_orales_sans_debat/Questions_orales_sans_debat.json.zip"
|
|
4010
4038
|
},
|
|
@@ -4012,8 +4040,8 @@ const ze = {
|
|
|
4012
4040
|
filename: "Questions_orales_XVI.json",
|
|
4013
4041
|
name: "Questions_orales_XVI",
|
|
4014
4042
|
legislature: l.Seize,
|
|
4015
|
-
repairZip:
|
|
4016
|
-
structure:
|
|
4043
|
+
repairZip: O,
|
|
4044
|
+
structure: A.SegmentedFiles,
|
|
4017
4045
|
title: "Questions orales sans débats de la XVIème législature",
|
|
4018
4046
|
url: "https://data.assemblee-nationale.fr/static/openData/repository/16/questions/questions_orales_sans_debat/Questions_orales_sans_debat.json.zip"
|
|
4019
4047
|
}
|
|
@@ -4030,7 +4058,7 @@ const ze = {
|
|
|
4030
4058
|
i
|
|
4031
4059
|
);
|
|
4032
4060
|
},
|
|
4033
|
-
structure:
|
|
4061
|
+
structure: A.SegmentedFiles,
|
|
4034
4062
|
title: "Comptes rendus des séances publiques de la XVIIème législature",
|
|
4035
4063
|
url: "https://data.assemblee-nationale.fr/static/openData/repository/17/vp/syceronbrut/syseron.xml.zip"
|
|
4036
4064
|
},
|
|
@@ -4045,7 +4073,7 @@ const ze = {
|
|
|
4045
4073
|
i
|
|
4046
4074
|
);
|
|
4047
4075
|
},
|
|
4048
|
-
structure:
|
|
4076
|
+
structure: A.SegmentedFiles,
|
|
4049
4077
|
title: "Comptes rendus des séances publiques de la XVIème législature",
|
|
4050
4078
|
url: "https://data.assemblee-nationale.fr/static/openData/repository/16/vp/syceronbrut/syseron.xml.zip"
|
|
4051
4079
|
}
|
|
@@ -4055,40 +4083,40 @@ const ze = {
|
|
|
4055
4083
|
filename: "Comptes_Rendus_Commissions_XVII.xml",
|
|
4056
4084
|
name: "Comptes_Rendus_Commissions_XVII",
|
|
4057
4085
|
legislature: l.DixSept,
|
|
4058
|
-
structure:
|
|
4086
|
+
structure: A.SegmentedFiles,
|
|
4059
4087
|
title: "Comptes rendus des commissions de la XVIIème législature"
|
|
4060
4088
|
}
|
|
4061
4089
|
]
|
|
4062
4090
|
};
|
|
4063
|
-
function* k(t, n, i,
|
|
4064
|
-
const
|
|
4091
|
+
function* k(t, n, i, s, g, { log: S = !1, noValidation: b = !1, sinceCommits: p } = {}) {
|
|
4092
|
+
const y = /* @__PURE__ */ new Set();
|
|
4065
4093
|
for (const D of i) {
|
|
4066
|
-
if (D.ignoreForWeb || !
|
|
4094
|
+
if (D.ignoreForWeb || !ml(n, D))
|
|
4067
4095
|
continue;
|
|
4068
|
-
const I = o.join(t, `${D.name}_nettoye`), v = p ? p[D.name] : void 0, J = v ?
|
|
4096
|
+
const I = o.join(t, `${D.name}_nettoye`), v = p ? p[D.name] : void 0, J = v ? He(I, v, {
|
|
4069
4097
|
diffFilter: "AMR"
|
|
4070
4098
|
}) : null;
|
|
4071
|
-
|
|
4099
|
+
S && v && (console.log(
|
|
4072
4100
|
`Filtering files changed since commit ${v} in ${I}`
|
|
4073
4101
|
), console.log(`Found ${J?.size || 0} changed files`));
|
|
4074
|
-
for (const L of X(I,
|
|
4102
|
+
for (const L of X(I, g)) {
|
|
4075
4103
|
if (!L[L.length - 1].endsWith(".json"))
|
|
4076
4104
|
continue;
|
|
4077
4105
|
const x = o.join(I, ...L), V = o.join(...L), F = J?.get(V);
|
|
4078
4106
|
if (J != null && F == null)
|
|
4079
4107
|
continue;
|
|
4080
|
-
|
|
4081
|
-
let
|
|
4082
|
-
const u =
|
|
4083
|
-
|
|
4108
|
+
S && console.log(`Loading file: ${x}…`);
|
|
4109
|
+
let a = r.readFileSync(x, { encoding: "utf8" });
|
|
4110
|
+
const u = b ? JSON.parse(a) : s(a);
|
|
4111
|
+
y.has(u.uid) || (y.add(u.uid), yield {
|
|
4084
4112
|
datasetLegislature: D.legislature,
|
|
4085
4113
|
filePath: x,
|
|
4086
4114
|
item: u,
|
|
4087
4115
|
...F && { gitStatus: F }
|
|
4088
|
-
},
|
|
4116
|
+
}, a = null);
|
|
4089
4117
|
}
|
|
4090
4118
|
if (v) {
|
|
4091
|
-
const L =
|
|
4119
|
+
const L = He(
|
|
4092
4120
|
I,
|
|
4093
4121
|
v,
|
|
4094
4122
|
{
|
|
@@ -4097,506 +4125,506 @@ function* k(t, n, i, a, d, { log: f = !1, noValidation: S = !1, sinceCommits: p
|
|
|
4097
4125
|
);
|
|
4098
4126
|
for (const [B, x] of L.entries()) {
|
|
4099
4127
|
const V = o.join(I, B);
|
|
4100
|
-
|
|
4101
|
-
const
|
|
4128
|
+
S && console.log(`Deleted file: ${V}`);
|
|
4129
|
+
const a = { uid: o.parse(B).name };
|
|
4102
4130
|
yield {
|
|
4103
4131
|
datasetLegislature: D.legislature,
|
|
4104
4132
|
filePath: V,
|
|
4105
|
-
item:
|
|
4133
|
+
item: a,
|
|
4106
4134
|
gitStatus: x
|
|
4107
4135
|
};
|
|
4108
4136
|
}
|
|
4109
4137
|
}
|
|
4110
4138
|
}
|
|
4111
|
-
|
|
4139
|
+
y.clear();
|
|
4112
4140
|
}
|
|
4113
|
-
function
|
|
4141
|
+
function ml(t, n) {
|
|
4114
4142
|
const i = Array.isArray(t) ? t : t !== void 0 ? [t] : [];
|
|
4115
4143
|
return t === void 0 || i.includes(0) || n.legislature === l.All ? !0 : i.includes(n.legislature);
|
|
4116
4144
|
}
|
|
4117
|
-
function*
|
|
4145
|
+
function* yl(t, n, i = {}, s) {
|
|
4118
4146
|
for (const {
|
|
4119
|
-
datasetLegislature:
|
|
4120
|
-
item:
|
|
4121
|
-
filePath:
|
|
4147
|
+
datasetLegislature: g,
|
|
4148
|
+
item: S,
|
|
4149
|
+
filePath: b,
|
|
4122
4150
|
gitStatus: p
|
|
4123
4151
|
} of k(
|
|
4124
4152
|
t,
|
|
4125
4153
|
n,
|
|
4126
|
-
|
|
4154
|
+
s ?? R.acteursEtOrganes,
|
|
4127
4155
|
ae.toActeur,
|
|
4128
4156
|
["acteurs"],
|
|
4129
4157
|
i
|
|
4130
4158
|
))
|
|
4131
4159
|
yield {
|
|
4132
|
-
acteur:
|
|
4133
|
-
datasetLegislature:
|
|
4134
|
-
filePath:
|
|
4160
|
+
acteur: S,
|
|
4161
|
+
datasetLegislature: g,
|
|
4162
|
+
filePath: b,
|
|
4135
4163
|
...p && { gitStatus: p }
|
|
4136
4164
|
};
|
|
4137
4165
|
}
|
|
4138
|
-
function*
|
|
4166
|
+
function* Ol(t, n, i = {}, s) {
|
|
4139
4167
|
for (const {
|
|
4140
|
-
item:
|
|
4141
|
-
datasetLegislature:
|
|
4142
|
-
filePath:
|
|
4168
|
+
item: g,
|
|
4169
|
+
datasetLegislature: S,
|
|
4170
|
+
filePath: b,
|
|
4143
4171
|
gitStatus: p
|
|
4144
4172
|
} of k(
|
|
4145
4173
|
t,
|
|
4146
4174
|
n,
|
|
4147
|
-
|
|
4175
|
+
s ?? R.acteursEtOrganes,
|
|
4148
4176
|
ae.toOrgane,
|
|
4149
4177
|
["organes"],
|
|
4150
4178
|
i
|
|
4151
4179
|
))
|
|
4152
4180
|
yield {
|
|
4153
|
-
organe:
|
|
4154
|
-
datasetLegislature:
|
|
4155
|
-
filePath:
|
|
4181
|
+
organe: g,
|
|
4182
|
+
datasetLegislature: S,
|
|
4183
|
+
filePath: b,
|
|
4156
4184
|
...p && { gitStatus: p }
|
|
4157
4185
|
};
|
|
4158
4186
|
}
|
|
4159
|
-
function*
|
|
4187
|
+
function* Nl(t, n, i = {}, s) {
|
|
4160
4188
|
for (const {
|
|
4161
|
-
datasetLegislature:
|
|
4162
|
-
item:
|
|
4163
|
-
filePath:
|
|
4189
|
+
datasetLegislature: g,
|
|
4190
|
+
item: S,
|
|
4191
|
+
filePath: b,
|
|
4164
4192
|
gitStatus: p
|
|
4165
4193
|
} of k(
|
|
4166
4194
|
t,
|
|
4167
4195
|
n,
|
|
4168
|
-
|
|
4169
|
-
|
|
4196
|
+
s ?? R.amendements,
|
|
4197
|
+
Oe.toAmendement,
|
|
4170
4198
|
[],
|
|
4171
4199
|
i
|
|
4172
4200
|
))
|
|
4173
4201
|
yield {
|
|
4174
|
-
amendement:
|
|
4175
|
-
datasetLegislature:
|
|
4176
|
-
filePath:
|
|
4202
|
+
amendement: S,
|
|
4203
|
+
datasetLegislature: g,
|
|
4204
|
+
filePath: b,
|
|
4177
4205
|
...p && { gitStatus: p }
|
|
4178
4206
|
};
|
|
4179
4207
|
}
|
|
4180
|
-
function*
|
|
4208
|
+
function* Rl(t, n, i = {}, s) {
|
|
4181
4209
|
for (const {
|
|
4182
|
-
item:
|
|
4183
|
-
datasetLegislature:
|
|
4184
|
-
filePath:
|
|
4210
|
+
item: g,
|
|
4211
|
+
datasetLegislature: S,
|
|
4212
|
+
filePath: b,
|
|
4185
4213
|
gitStatus: p
|
|
4186
4214
|
} of k(
|
|
4187
4215
|
t,
|
|
4188
4216
|
n,
|
|
4189
|
-
|
|
4190
|
-
|
|
4217
|
+
s ?? R.dossiersLegislatifs,
|
|
4218
|
+
se.toDocument,
|
|
4191
4219
|
["documents"],
|
|
4192
4220
|
i
|
|
4193
4221
|
))
|
|
4194
4222
|
yield {
|
|
4195
|
-
document:
|
|
4196
|
-
datasetLegislature:
|
|
4197
|
-
filePath:
|
|
4223
|
+
document: g,
|
|
4224
|
+
datasetLegislature: S,
|
|
4225
|
+
filePath: b,
|
|
4198
4226
|
...p && { gitStatus: p }
|
|
4199
4227
|
};
|
|
4200
4228
|
}
|
|
4201
|
-
function*
|
|
4229
|
+
function* Dl(t, n, i = {}, s) {
|
|
4202
4230
|
for (const {
|
|
4203
|
-
item:
|
|
4204
|
-
datasetLegislature:
|
|
4205
|
-
filePath:
|
|
4231
|
+
item: g,
|
|
4232
|
+
datasetLegislature: S,
|
|
4233
|
+
filePath: b,
|
|
4206
4234
|
gitStatus: p
|
|
4207
4235
|
} of k(
|
|
4208
4236
|
t,
|
|
4209
4237
|
n,
|
|
4210
|
-
|
|
4211
|
-
|
|
4238
|
+
s ?? R.dossiersLegislatifs,
|
|
4239
|
+
se.toDossierParlementaire,
|
|
4212
4240
|
["dossiers"],
|
|
4213
4241
|
i
|
|
4214
4242
|
))
|
|
4215
4243
|
yield {
|
|
4216
|
-
dossierParlementaire:
|
|
4217
|
-
datasetLegislature:
|
|
4218
|
-
filePath:
|
|
4244
|
+
dossierParlementaire: g,
|
|
4245
|
+
datasetLegislature: S,
|
|
4246
|
+
filePath: b,
|
|
4219
4247
|
...p && { gitStatus: p }
|
|
4220
4248
|
};
|
|
4221
4249
|
}
|
|
4222
|
-
function*
|
|
4250
|
+
function* Il(t, n, i = {}, s) {
|
|
4223
4251
|
for (const {
|
|
4224
|
-
item:
|
|
4225
|
-
datasetLegislature:
|
|
4226
|
-
filePath:
|
|
4252
|
+
item: g,
|
|
4253
|
+
datasetLegislature: S,
|
|
4254
|
+
filePath: b,
|
|
4227
4255
|
gitStatus: p
|
|
4228
4256
|
} of k(
|
|
4229
4257
|
t,
|
|
4230
4258
|
n,
|
|
4231
|
-
|
|
4232
|
-
|
|
4259
|
+
s ?? R.agendas,
|
|
4260
|
+
Ue.toReunion,
|
|
4233
4261
|
[],
|
|
4234
4262
|
i
|
|
4235
4263
|
))
|
|
4236
4264
|
yield {
|
|
4237
|
-
reunion:
|
|
4238
|
-
datasetLegislature:
|
|
4239
|
-
filePath:
|
|
4265
|
+
reunion: g,
|
|
4266
|
+
datasetLegislature: S,
|
|
4267
|
+
filePath: b,
|
|
4240
4268
|
...p && { gitStatus: p }
|
|
4241
4269
|
};
|
|
4242
4270
|
}
|
|
4243
|
-
function*
|
|
4271
|
+
function* Tl(t, n, i = {}, s) {
|
|
4244
4272
|
for (const {
|
|
4245
|
-
item:
|
|
4246
|
-
datasetLegislature:
|
|
4247
|
-
filePath:
|
|
4273
|
+
item: g,
|
|
4274
|
+
datasetLegislature: S,
|
|
4275
|
+
filePath: b,
|
|
4248
4276
|
gitStatus: p
|
|
4249
4277
|
} of k(
|
|
4250
4278
|
t,
|
|
4251
4279
|
n,
|
|
4252
|
-
|
|
4253
|
-
|
|
4280
|
+
s ?? R.scrutins,
|
|
4281
|
+
We.toScrutin,
|
|
4254
4282
|
[],
|
|
4255
4283
|
i
|
|
4256
4284
|
))
|
|
4257
4285
|
yield {
|
|
4258
|
-
scrutin:
|
|
4259
|
-
datasetLegislature:
|
|
4260
|
-
filePath:
|
|
4286
|
+
scrutin: g,
|
|
4287
|
+
datasetLegislature: S,
|
|
4288
|
+
filePath: b,
|
|
4261
4289
|
...p && { gitStatus: p }
|
|
4262
4290
|
};
|
|
4263
4291
|
}
|
|
4264
|
-
function*
|
|
4292
|
+
function* El(t, n, i = {}, s) {
|
|
4265
4293
|
for (const {
|
|
4266
|
-
item:
|
|
4267
|
-
datasetLegislature:
|
|
4268
|
-
filePath:
|
|
4294
|
+
item: g,
|
|
4295
|
+
datasetLegislature: S,
|
|
4296
|
+
filePath: b,
|
|
4269
4297
|
gitStatus: p
|
|
4270
4298
|
} of k(
|
|
4271
4299
|
t,
|
|
4272
4300
|
n,
|
|
4273
|
-
|
|
4274
|
-
|
|
4301
|
+
s ?? R.questions,
|
|
4302
|
+
ze.toQuestion,
|
|
4275
4303
|
[],
|
|
4276
4304
|
i
|
|
4277
4305
|
))
|
|
4278
4306
|
yield {
|
|
4279
|
-
question:
|
|
4280
|
-
datasetLegislature:
|
|
4281
|
-
filePath:
|
|
4307
|
+
question: g,
|
|
4308
|
+
datasetLegislature: S,
|
|
4309
|
+
filePath: b,
|
|
4282
4310
|
...p && { gitStatus: p }
|
|
4283
4311
|
};
|
|
4284
4312
|
}
|
|
4285
|
-
function*
|
|
4313
|
+
function* Pl(t, n, i = {}, s) {
|
|
4286
4314
|
for (const {
|
|
4287
|
-
item:
|
|
4288
|
-
datasetLegislature:
|
|
4289
|
-
filePath:
|
|
4315
|
+
item: g,
|
|
4316
|
+
datasetLegislature: S,
|
|
4317
|
+
filePath: b,
|
|
4290
4318
|
gitStatus: p
|
|
4291
4319
|
} of k(
|
|
4292
4320
|
t,
|
|
4293
4321
|
n,
|
|
4294
|
-
|
|
4295
|
-
|
|
4322
|
+
s ?? R.comptesRendusSeances.concat(R.comptesRendusCommissions),
|
|
4323
|
+
Ge.toCompteRendu,
|
|
4296
4324
|
[],
|
|
4297
4325
|
i
|
|
4298
4326
|
))
|
|
4299
4327
|
yield {
|
|
4300
|
-
compteRendu:
|
|
4301
|
-
datasetLegislature:
|
|
4302
|
-
filePath:
|
|
4328
|
+
compteRendu: g,
|
|
4329
|
+
datasetLegislature: S,
|
|
4330
|
+
filePath: b,
|
|
4303
4331
|
...p && { gitStatus: p }
|
|
4304
4332
|
};
|
|
4305
4333
|
}
|
|
4306
|
-
function
|
|
4307
|
-
const
|
|
4334
|
+
function vl(t, n, i, { log: s = !1 } = {}) {
|
|
4335
|
+
const g = {}, S = {};
|
|
4308
4336
|
if (n & M.ActeursEtOrganes)
|
|
4309
|
-
for (const
|
|
4310
|
-
if (
|
|
4337
|
+
for (const a of R.acteursEtOrganes) {
|
|
4338
|
+
if (a.ignoreForWeb || i !== l.All && a.legislature !== l.All && i !== a.legislature)
|
|
4311
4339
|
continue;
|
|
4312
4340
|
const u = o.join(
|
|
4313
4341
|
t,
|
|
4314
|
-
|
|
4342
|
+
a.filename.replace(/\.json$/, "_nettoye")
|
|
4315
4343
|
);
|
|
4316
4344
|
for (const m of X(u, ["acteurs"])) {
|
|
4317
4345
|
if (!m[m.length - 1].endsWith(".json"))
|
|
4318
4346
|
continue;
|
|
4319
4347
|
const c = o.join(u, ...m);
|
|
4320
|
-
|
|
4348
|
+
s && console.log(`Loading file: ${c}…`);
|
|
4321
4349
|
const h = r.readFileSync(c, {
|
|
4322
4350
|
encoding: "utf8"
|
|
4323
|
-
}),
|
|
4324
|
-
|
|
4351
|
+
}), f = ae.toActeur(h);
|
|
4352
|
+
g[f.uid] === void 0 && (g[f.uid] = f);
|
|
4325
4353
|
}
|
|
4326
4354
|
for (const m of X(u, ["organes"])) {
|
|
4327
4355
|
if (!m[m.length - 1].endsWith(".json"))
|
|
4328
4356
|
continue;
|
|
4329
4357
|
const c = o.join(u, ...m);
|
|
4330
|
-
|
|
4358
|
+
s && console.log(`Loading file: ${c}…`);
|
|
4331
4359
|
const h = r.readFileSync(c, {
|
|
4332
4360
|
encoding: "utf8"
|
|
4333
|
-
}),
|
|
4334
|
-
f
|
|
4361
|
+
}), f = ae.toOrgane(h);
|
|
4362
|
+
S[f.uid] === void 0 && (S[f.uid] = f);
|
|
4335
4363
|
}
|
|
4336
4364
|
}
|
|
4337
|
-
const
|
|
4365
|
+
const b = {}, p = {}, y = {};
|
|
4338
4366
|
if (n & M.Agendas)
|
|
4339
|
-
for (const
|
|
4340
|
-
if (
|
|
4367
|
+
for (const a of R.agendas) {
|
|
4368
|
+
if (a.ignoreForWeb || i !== l.All && a.legislature !== l.All && i !== a.legislature)
|
|
4341
4369
|
continue;
|
|
4342
4370
|
const u = o.join(
|
|
4343
4371
|
t,
|
|
4344
|
-
|
|
4372
|
+
a.filename.replace(/\.json$/, "_nettoye")
|
|
4345
4373
|
);
|
|
4346
4374
|
for (const m of X(u)) {
|
|
4347
4375
|
if (!m[m.length - 1].endsWith(".json"))
|
|
4348
4376
|
continue;
|
|
4349
4377
|
const c = o.join(u, ...m);
|
|
4350
|
-
|
|
4378
|
+
s && console.log(`Loading file: ${c}…`);
|
|
4351
4379
|
const h = r.readFileSync(c, {
|
|
4352
4380
|
encoding: "utf8"
|
|
4353
|
-
}),
|
|
4354
|
-
|
|
4355
|
-
const q =
|
|
4356
|
-
let
|
|
4357
|
-
|
|
4358
|
-
const
|
|
4359
|
-
if (
|
|
4360
|
-
for (const
|
|
4361
|
-
for (const
|
|
4362
|
-
let
|
|
4363
|
-
|
|
4381
|
+
}), f = Ue.toReunion(h);
|
|
4382
|
+
b[f.uid] === void 0 && (b[f.uid] = f);
|
|
4383
|
+
const q = f.timestampDebut.toISOString().split("T")[0];
|
|
4384
|
+
let ee = p[q];
|
|
4385
|
+
ee === void 0 && (ee = p[q] = []), ee.push(f);
|
|
4386
|
+
const te = f.odj;
|
|
4387
|
+
if (te !== void 0)
|
|
4388
|
+
for (const ne of te.pointsOdj || [])
|
|
4389
|
+
for (const Ze of ne.dossiersLegislatifsRefs || []) {
|
|
4390
|
+
let Ce = y[Ze];
|
|
4391
|
+
Ce === void 0 && (Ce = y[Ze] = []), Ce.push(f);
|
|
4364
4392
|
}
|
|
4365
4393
|
}
|
|
4366
4394
|
}
|
|
4367
4395
|
const D = {};
|
|
4368
4396
|
if (n & M.Amendements)
|
|
4369
|
-
for (const
|
|
4370
|
-
if (
|
|
4397
|
+
for (const a of R.amendements) {
|
|
4398
|
+
if (a.ignoreForWeb || i !== l.All && a.legislature !== l.All && i !== a.legislature)
|
|
4371
4399
|
continue;
|
|
4372
4400
|
const u = o.join(
|
|
4373
4401
|
t,
|
|
4374
|
-
|
|
4402
|
+
a.filename.replace(/\.json$/, "_nettoye")
|
|
4375
4403
|
);
|
|
4376
4404
|
for (const m of X(u)) {
|
|
4377
4405
|
if (!m[m.length - 1].endsWith(".json"))
|
|
4378
4406
|
continue;
|
|
4379
4407
|
const c = o.join(u, ...m);
|
|
4380
|
-
|
|
4408
|
+
s && console.log(`Loading file: ${c}…`);
|
|
4381
4409
|
const h = r.readFileSync(c, {
|
|
4382
4410
|
encoding: "utf8"
|
|
4383
|
-
}),
|
|
4384
|
-
D[
|
|
4411
|
+
}), f = Oe.toAmendement(h);
|
|
4412
|
+
D[f.uid] === void 0 && (D[f.uid] = f);
|
|
4385
4413
|
}
|
|
4386
4414
|
}
|
|
4387
4415
|
const I = {}, v = {}, J = {}, L = {};
|
|
4388
4416
|
if (n & M.DossiersLegislatifs)
|
|
4389
|
-
for (const
|
|
4390
|
-
if (
|
|
4417
|
+
for (const a of R.dossiersLegislatifs) {
|
|
4418
|
+
if (a.ignoreForWeb || i !== l.All && a.legislature !== l.All && i !== a.legislature)
|
|
4391
4419
|
continue;
|
|
4392
4420
|
const u = o.join(
|
|
4393
4421
|
t,
|
|
4394
|
-
|
|
4422
|
+
a.filename.replace(/\.json$/, "_nettoye")
|
|
4395
4423
|
);
|
|
4396
4424
|
for (const m of X(u, ["documents"])) {
|
|
4397
4425
|
if (!m[m.length - 1].endsWith(".json"))
|
|
4398
4426
|
continue;
|
|
4399
4427
|
const c = o.join(u, ...m);
|
|
4400
|
-
|
|
4428
|
+
s && console.log(`Loading file: ${c}…`);
|
|
4401
4429
|
const h = r.readFileSync(c, {
|
|
4402
4430
|
encoding: "utf8"
|
|
4403
|
-
}),
|
|
4404
|
-
I[
|
|
4431
|
+
}), f = se.toDocument(h);
|
|
4432
|
+
I[f.uid] === void 0 && (I[f.uid] = f);
|
|
4405
4433
|
}
|
|
4406
4434
|
for (const m of X(u, ["dossiers"])) {
|
|
4407
4435
|
if (!m[m.length - 1].endsWith(".json"))
|
|
4408
4436
|
continue;
|
|
4409
4437
|
const c = o.join(u, ...m);
|
|
4410
|
-
|
|
4438
|
+
s && console.log(`Loading file: ${c}…`);
|
|
4411
4439
|
const h = r.readFileSync(c, {
|
|
4412
4440
|
encoding: "utf8"
|
|
4413
|
-
}),
|
|
4414
|
-
q.senatChemin && v[q.senatChemin] === void 0 && (v[q.senatChemin] =
|
|
4441
|
+
}), f = se.toDossierParlementaire(h), q = f.titreDossier;
|
|
4442
|
+
q.senatChemin && v[q.senatChemin] === void 0 && (v[q.senatChemin] = f), q.titreChemin && J[q.titreChemin] === void 0 && (J[q.titreChemin] = f), L[f.uid] === void 0 && (L[f.uid] = f);
|
|
4415
4443
|
}
|
|
4416
4444
|
}
|
|
4417
4445
|
let B = {};
|
|
4418
4446
|
if (n & M.Photos) {
|
|
4419
4447
|
{
|
|
4420
|
-
const
|
|
4448
|
+
const a = o.join(
|
|
4421
4449
|
t,
|
|
4422
4450
|
`photos_deputes_${// TODO: Handle Legislature.All.
|
|
4423
4451
|
i === l.All ? l.DixSept : i}`,
|
|
4424
4452
|
"deputes.json"
|
|
4425
4453
|
);
|
|
4426
|
-
if (r.existsSync(
|
|
4427
|
-
|
|
4428
|
-
const u = r.readFileSync(
|
|
4454
|
+
if (r.existsSync(a)) {
|
|
4455
|
+
s && console.log(`Loading file: ${a}`);
|
|
4456
|
+
const u = r.readFileSync(a, { encoding: "utf8" });
|
|
4429
4457
|
Object.assign(B, JSON.parse(u));
|
|
4430
|
-
} else
|
|
4458
|
+
} else s && console.log(`Ignoring missing file: ${a}`);
|
|
4431
4459
|
}
|
|
4432
4460
|
{
|
|
4433
|
-
const
|
|
4461
|
+
const a = o.join(
|
|
4434
4462
|
t,
|
|
4435
4463
|
"photos_senateurs",
|
|
4436
4464
|
"senateurs.json"
|
|
4437
4465
|
);
|
|
4438
|
-
if (r.existsSync(
|
|
4439
|
-
|
|
4440
|
-
const u = r.readFileSync(
|
|
4466
|
+
if (r.existsSync(a)) {
|
|
4467
|
+
s && console.log(`Loading file: ${a}`);
|
|
4468
|
+
const u = r.readFileSync(a, { encoding: "utf8" });
|
|
4441
4469
|
Object.assign(B, JSON.parse(u));
|
|
4442
|
-
} else
|
|
4470
|
+
} else s && console.log(`Ignoring missing file: ${a}`);
|
|
4443
4471
|
}
|
|
4444
4472
|
}
|
|
4445
4473
|
const x = {};
|
|
4446
4474
|
if (n & M.Scrutins)
|
|
4447
|
-
for (const
|
|
4448
|
-
if (
|
|
4475
|
+
for (const a of R.scrutins) {
|
|
4476
|
+
if (a.ignoreForWeb || i !== l.All && a.legislature !== l.All && i !== a.legislature)
|
|
4449
4477
|
continue;
|
|
4450
4478
|
const u = o.join(
|
|
4451
4479
|
t,
|
|
4452
|
-
|
|
4480
|
+
a.filename.replace(/\.json$/, "_nettoye")
|
|
4453
4481
|
);
|
|
4454
4482
|
for (const m of X(u)) {
|
|
4455
4483
|
if (!m[m.length - 1].endsWith(".json"))
|
|
4456
4484
|
continue;
|
|
4457
4485
|
const c = o.join(u, ...m);
|
|
4458
|
-
|
|
4486
|
+
s && console.log(`Loading file: ${c}…`);
|
|
4459
4487
|
const h = r.readFileSync(c, {
|
|
4460
4488
|
encoding: "utf8"
|
|
4461
|
-
}),
|
|
4462
|
-
x[
|
|
4489
|
+
}), f = We.toScrutin(h);
|
|
4490
|
+
x[f.uid] === void 0 && (x[f.uid] = f);
|
|
4463
4491
|
}
|
|
4464
4492
|
}
|
|
4465
4493
|
const V = {};
|
|
4466
4494
|
if (n & M.Questions)
|
|
4467
|
-
for (const
|
|
4468
|
-
if (
|
|
4495
|
+
for (const a of R.questions) {
|
|
4496
|
+
if (a.ignoreForWeb || i !== l.All && a.legislature !== l.All && i !== a.legislature)
|
|
4469
4497
|
continue;
|
|
4470
4498
|
const u = o.join(
|
|
4471
4499
|
t,
|
|
4472
|
-
|
|
4500
|
+
a.filename.replace(/\.json$/, "_nettoye")
|
|
4473
4501
|
);
|
|
4474
4502
|
for (const m of X(u)) {
|
|
4475
4503
|
if (!m[m.length - 1].endsWith(".json"))
|
|
4476
4504
|
continue;
|
|
4477
4505
|
const c = o.join(u, ...m);
|
|
4478
|
-
|
|
4506
|
+
s && console.log(`Loading file: ${c}…`);
|
|
4479
4507
|
const h = r.readFileSync(c, {
|
|
4480
4508
|
encoding: "utf8"
|
|
4481
|
-
}),
|
|
4482
|
-
V[
|
|
4509
|
+
}), f = ze.toQuestion(h);
|
|
4510
|
+
V[f.uid] === void 0 && (V[f.uid] = f);
|
|
4483
4511
|
}
|
|
4484
4512
|
}
|
|
4485
4513
|
const F = {};
|
|
4486
4514
|
if (n & M.ComptesRendusSeances)
|
|
4487
|
-
for (const
|
|
4488
|
-
if (
|
|
4515
|
+
for (const a of R.comptesRendusSeances) {
|
|
4516
|
+
if (a.ignoreForWeb || i !== l.All && a.legislature !== l.All && i !== a.legislature)
|
|
4489
4517
|
continue;
|
|
4490
4518
|
const u = o.join(
|
|
4491
4519
|
t,
|
|
4492
|
-
|
|
4520
|
+
a.filename.replace(/\.json$/, "_nettoye")
|
|
4493
4521
|
);
|
|
4494
4522
|
for (const m of X(u)) {
|
|
4495
4523
|
if (!m[m.length - 1].endsWith(".json"))
|
|
4496
4524
|
continue;
|
|
4497
4525
|
const c = o.join(u, ...m);
|
|
4498
|
-
|
|
4526
|
+
s && console.log(`Loading file: ${c}…`);
|
|
4499
4527
|
const h = r.readFileSync(c, {
|
|
4500
4528
|
encoding: "utf8"
|
|
4501
|
-
}),
|
|
4502
|
-
F[
|
|
4529
|
+
}), f = Ge.toCompteRendu(h);
|
|
4530
|
+
F[f.uid] === void 0 && (F[f.uid] = f);
|
|
4503
4531
|
}
|
|
4504
4532
|
}
|
|
4505
4533
|
return {
|
|
4506
|
-
acteurByUid:
|
|
4534
|
+
acteurByUid: g,
|
|
4507
4535
|
amendementByUid: D,
|
|
4508
4536
|
documentByUid: I,
|
|
4509
4537
|
dossierParlementaireBySenatChemin: v,
|
|
4510
4538
|
dossierParlementaireByTitreChemin: J,
|
|
4511
4539
|
dossierParlementaireByUid: L,
|
|
4512
|
-
organeByUid:
|
|
4540
|
+
organeByUid: S,
|
|
4513
4541
|
photoByUid: B,
|
|
4514
|
-
reunionByUid:
|
|
4542
|
+
reunionByUid: b,
|
|
4515
4543
|
reunionsByDay: p,
|
|
4516
|
-
reunionsByDossierUid:
|
|
4544
|
+
reunionsByDossierUid: y,
|
|
4517
4545
|
scrutinByUid: x,
|
|
4518
4546
|
questionByUid: V,
|
|
4519
4547
|
compteRenduByUid: F
|
|
4520
4548
|
};
|
|
4521
4549
|
}
|
|
4522
|
-
function
|
|
4523
|
-
const
|
|
4550
|
+
function Ml(t, n, i, { log: s = !1 } = {}) {
|
|
4551
|
+
const g = {}, S = {};
|
|
4524
4552
|
if (n & M.ActeursEtOrganes)
|
|
4525
|
-
for (const
|
|
4526
|
-
if (
|
|
4553
|
+
for (const a of R.acteursEtOrganes) {
|
|
4554
|
+
if (a.ignoreForWeb || i !== l.All && a.legislature !== l.All && i !== a.legislature)
|
|
4527
4555
|
continue;
|
|
4528
4556
|
const u = o.join(
|
|
4529
4557
|
t,
|
|
4530
|
-
|
|
4558
|
+
a.filename.replace(/\.json$/, "_nettoye.json")
|
|
4531
4559
|
);
|
|
4532
|
-
|
|
4533
|
-
const m = r.readFileSync(u, { encoding: "utf8" }),
|
|
4534
|
-
for (const c of
|
|
4535
|
-
|
|
4536
|
-
for (const c of
|
|
4537
|
-
|
|
4560
|
+
s && console.log(`Loading file: ${u}`);
|
|
4561
|
+
const m = r.readFileSync(u, { encoding: "utf8" }), N = ae.toActeursEtOrganes(m);
|
|
4562
|
+
for (const c of N.acteurs)
|
|
4563
|
+
g[c.uid] === void 0 && (g[c.uid] = c);
|
|
4564
|
+
for (const c of N.organes)
|
|
4565
|
+
S[c.uid] === void 0 && (S[c.uid] = c);
|
|
4538
4566
|
}
|
|
4539
|
-
const
|
|
4567
|
+
const b = {}, p = {}, y = {};
|
|
4540
4568
|
if (n & M.Agendas)
|
|
4541
|
-
for (const
|
|
4542
|
-
if (
|
|
4569
|
+
for (const a of R.agendas) {
|
|
4570
|
+
if (a.ignoreForWeb || i !== l.All && a.legislature !== l.All && i !== a.legislature)
|
|
4543
4571
|
continue;
|
|
4544
4572
|
const u = o.join(
|
|
4545
4573
|
t,
|
|
4546
|
-
|
|
4574
|
+
a.filename.replace(/\.json$/, "_nettoye.json")
|
|
4547
4575
|
);
|
|
4548
|
-
|
|
4549
|
-
const m = r.readFileSync(u, { encoding: "utf8" }),
|
|
4550
|
-
for (const c of
|
|
4551
|
-
|
|
4576
|
+
s && console.log(`Loading file: ${u}`);
|
|
4577
|
+
const m = r.readFileSync(u, { encoding: "utf8" }), N = Ue.toAgendas(m);
|
|
4578
|
+
for (const c of N.reunions) {
|
|
4579
|
+
b[c.uid] === void 0 && (b[c.uid] = c);
|
|
4552
4580
|
const h = c.timestampDebut.toISOString().split("T")[0];
|
|
4553
|
-
let
|
|
4554
|
-
|
|
4581
|
+
let f = p[h];
|
|
4582
|
+
f === void 0 && (f = p[h] = []), f.push(c);
|
|
4555
4583
|
const q = c.odj;
|
|
4556
4584
|
if (q !== void 0)
|
|
4557
|
-
for (const
|
|
4558
|
-
for (const
|
|
4559
|
-
let
|
|
4560
|
-
|
|
4585
|
+
for (const ee of q.pointsOdj || [])
|
|
4586
|
+
for (const te of ee.dossiersLegislatifsRefs || []) {
|
|
4587
|
+
let ne = y[te];
|
|
4588
|
+
ne === void 0 && (ne = y[te] = []), ne.push(c);
|
|
4561
4589
|
}
|
|
4562
4590
|
}
|
|
4563
4591
|
}
|
|
4564
4592
|
const D = {};
|
|
4565
4593
|
if (n & M.Amendements)
|
|
4566
|
-
for (const
|
|
4567
|
-
if (
|
|
4594
|
+
for (const a of R.amendements) {
|
|
4595
|
+
if (a.ignoreForWeb || i !== l.All && a.legislature !== l.All && i !== a.legislature)
|
|
4568
4596
|
continue;
|
|
4569
4597
|
const u = o.join(
|
|
4570
4598
|
t,
|
|
4571
|
-
|
|
4599
|
+
a.filename.replace(/\.json$/, "_nettoye.json")
|
|
4572
4600
|
);
|
|
4573
|
-
|
|
4574
|
-
const m = r.readFileSync(u, { encoding: "utf8" }),
|
|
4575
|
-
for (const c of
|
|
4601
|
+
s && console.log(`Loading file: ${u}`);
|
|
4602
|
+
const m = r.readFileSync(u, { encoding: "utf8" }), N = Oe.toAmendements(m);
|
|
4603
|
+
for (const c of N.textesLegislatifs)
|
|
4576
4604
|
for (const h of c.amendements)
|
|
4577
4605
|
D[h.uid] === void 0 && (D[h.uid] = h);
|
|
4578
4606
|
}
|
|
4579
4607
|
const I = {}, v = {}, J = {}, L = {};
|
|
4580
4608
|
if (n & M.DossiersLegislatifs)
|
|
4581
|
-
for (const
|
|
4582
|
-
if (
|
|
4609
|
+
for (const a of R.dossiersLegislatifs) {
|
|
4610
|
+
if (a.ignoreForWeb || i !== l.All && a.legislature !== l.All && i !== a.legislature)
|
|
4583
4611
|
continue;
|
|
4584
4612
|
const u = o.join(
|
|
4585
4613
|
t,
|
|
4586
|
-
|
|
4614
|
+
a.filename.replace(/\.json$/, "_nettoye.json")
|
|
4587
4615
|
);
|
|
4588
|
-
|
|
4589
|
-
const m = r.readFileSync(u, { encoding: "utf8" }),
|
|
4590
|
-
for (const c of
|
|
4616
|
+
s && console.log(`Loading file: ${u}`);
|
|
4617
|
+
const m = r.readFileSync(u, { encoding: "utf8" }), N = se.toDossiersLegislatifs(m);
|
|
4618
|
+
for (const c of N.textesLegislatifs)
|
|
4591
4619
|
I[c.uid] === void 0 && (I[c.uid] = c);
|
|
4592
|
-
for (const c of
|
|
4620
|
+
for (const c of N.dossiersParlementaires) {
|
|
4593
4621
|
const h = c.titreDossier;
|
|
4594
4622
|
h.senatChemin && v[h.senatChemin] === void 0 && (v[h.senatChemin] = c), h.titreChemin && J[h.titreChemin] === void 0 && (J[h.titreChemin] = c), L[c.uid] === void 0 && (L[c.uid] = c);
|
|
4595
4623
|
}
|
|
4596
4624
|
}
|
|
4597
4625
|
const B = {};
|
|
4598
4626
|
if (n & M.Photos) {
|
|
4599
|
-
const
|
|
4627
|
+
const a = {};
|
|
4600
4628
|
{
|
|
4601
4629
|
const u = o.join(
|
|
4602
4630
|
t,
|
|
@@ -4605,10 +4633,10 @@ function Pl(t, n, i, { log: a = !1 } = {}) {
|
|
|
4605
4633
|
"deputes.json"
|
|
4606
4634
|
);
|
|
4607
4635
|
if (r.existsSync(u)) {
|
|
4608
|
-
|
|
4636
|
+
s && console.log(`Loading file: ${u}`);
|
|
4609
4637
|
const m = r.readFileSync(u, { encoding: "utf8" });
|
|
4610
|
-
Object.assign(
|
|
4611
|
-
} else
|
|
4638
|
+
Object.assign(a, JSON.parse(m));
|
|
4639
|
+
} else s && console.log(`Ignoring missing file: ${u}`);
|
|
4612
4640
|
}
|
|
4613
4641
|
{
|
|
4614
4642
|
const u = o.join(
|
|
@@ -4617,186 +4645,186 @@ function Pl(t, n, i, { log: a = !1 } = {}) {
|
|
|
4617
4645
|
"senateurs.json"
|
|
4618
4646
|
);
|
|
4619
4647
|
if (r.existsSync(u)) {
|
|
4620
|
-
|
|
4648
|
+
s && console.log(`Loading file: ${u}`);
|
|
4621
4649
|
const m = r.readFileSync(u, { encoding: "utf8" });
|
|
4622
|
-
Object.assign(
|
|
4623
|
-
} else
|
|
4650
|
+
Object.assign(a, JSON.parse(m));
|
|
4651
|
+
} else s && console.log(`Ignoring missing file: ${u}`);
|
|
4624
4652
|
}
|
|
4625
4653
|
}
|
|
4626
4654
|
const x = {};
|
|
4627
4655
|
if (n & M.Scrutins)
|
|
4628
|
-
for (const
|
|
4629
|
-
if (
|
|
4656
|
+
for (const a of R.scrutins) {
|
|
4657
|
+
if (a.ignoreForWeb || i !== l.All && a.legislature !== l.All && i !== a.legislature)
|
|
4630
4658
|
continue;
|
|
4631
4659
|
const u = o.join(
|
|
4632
4660
|
t,
|
|
4633
|
-
|
|
4661
|
+
a.filename.replace(/\.json$/, "_nettoye.json")
|
|
4634
4662
|
);
|
|
4635
|
-
|
|
4636
|
-
const m = r.readFileSync(u, { encoding: "utf8" }),
|
|
4637
|
-
for (const c of
|
|
4663
|
+
s && console.log(`Loading file: ${u}`);
|
|
4664
|
+
const m = r.readFileSync(u, { encoding: "utf8" }), N = We.toScrutins(m);
|
|
4665
|
+
for (const c of N.scrutins)
|
|
4638
4666
|
x[c.uid] === void 0 && (x[c.uid] = c);
|
|
4639
4667
|
}
|
|
4640
4668
|
const V = {};
|
|
4641
4669
|
if (n & M.Questions)
|
|
4642
|
-
for (const
|
|
4643
|
-
if (
|
|
4670
|
+
for (const a of R.questions) {
|
|
4671
|
+
if (a.ignoreForWeb || i !== l.All && a.legislature !== l.All && i !== a.legislature)
|
|
4644
4672
|
continue;
|
|
4645
4673
|
const u = o.join(
|
|
4646
4674
|
t,
|
|
4647
|
-
|
|
4675
|
+
a.filename.replace(/\.json$/, "_nettoye.json")
|
|
4648
4676
|
);
|
|
4649
|
-
|
|
4650
|
-
const m = r.readFileSync(u, { encoding: "utf8" }),
|
|
4651
|
-
for (const c of
|
|
4677
|
+
s && console.log(`Loading file: ${u}`);
|
|
4678
|
+
const m = r.readFileSync(u, { encoding: "utf8" }), N = ze.toQuestions(m);
|
|
4679
|
+
for (const c of N.questions)
|
|
4652
4680
|
V[c.uid] === void 0 && (V[c.uid] = c);
|
|
4653
4681
|
}
|
|
4654
4682
|
const F = {};
|
|
4655
4683
|
if (n & M.ComptesRendusSeances)
|
|
4656
|
-
for (const
|
|
4657
|
-
if (
|
|
4684
|
+
for (const a of R.comptesRendusSeances) {
|
|
4685
|
+
if (a.ignoreForWeb || i !== l.All && a.legislature !== l.All && i !== a.legislature)
|
|
4658
4686
|
continue;
|
|
4659
4687
|
const u = o.join(
|
|
4660
4688
|
t,
|
|
4661
|
-
|
|
4689
|
+
a.filename.replace(/\.json$/, "_nettoye.json")
|
|
4662
4690
|
);
|
|
4663
|
-
|
|
4664
|
-
const m = r.readFileSync(u, { encoding: "utf8" }),
|
|
4665
|
-
for (const c of
|
|
4691
|
+
s && console.log(`Loading file: ${u}`);
|
|
4692
|
+
const m = r.readFileSync(u, { encoding: "utf8" }), N = Ge.toComptesRendus(m);
|
|
4693
|
+
for (const c of N.comptesRendus)
|
|
4666
4694
|
F[c.uid] === void 0 && (F[c.uid] = c);
|
|
4667
4695
|
}
|
|
4668
4696
|
return {
|
|
4669
|
-
acteurByUid:
|
|
4697
|
+
acteurByUid: g,
|
|
4670
4698
|
amendementByUid: D,
|
|
4671
4699
|
documentByUid: I,
|
|
4672
4700
|
dossierParlementaireBySenatChemin: v,
|
|
4673
4701
|
dossierParlementaireByTitreChemin: J,
|
|
4674
4702
|
dossierParlementaireByUid: L,
|
|
4675
|
-
organeByUid:
|
|
4703
|
+
organeByUid: S,
|
|
4676
4704
|
photoByUid: B,
|
|
4677
|
-
reunionByUid:
|
|
4705
|
+
reunionByUid: b,
|
|
4678
4706
|
reunionsByDay: p,
|
|
4679
|
-
reunionsByDossierUid:
|
|
4707
|
+
reunionsByDossierUid: y,
|
|
4680
4708
|
scrutinByUid: x,
|
|
4681
4709
|
questionByUid: V,
|
|
4682
4710
|
compteRenduByUid: F
|
|
4683
4711
|
};
|
|
4684
4712
|
}
|
|
4685
|
-
function
|
|
4686
|
-
const
|
|
4687
|
-
if (!r.pathExistsSync(
|
|
4713
|
+
function Ll(t, n, i) {
|
|
4714
|
+
const s = o.join(t, "Documents"), g = dl(s, n), S = o.join(g, "index.json");
|
|
4715
|
+
if (!r.pathExistsSync(S))
|
|
4688
4716
|
return;
|
|
4689
|
-
const
|
|
4717
|
+
const b = r.readJsonSync(S);
|
|
4690
4718
|
for (const p of i)
|
|
4691
|
-
for (const { filename:
|
|
4692
|
-
if (
|
|
4693
|
-
return { format: p, path: o.join(
|
|
4719
|
+
for (const { filename: y, url: D } of b[p] ?? [])
|
|
4720
|
+
if (y !== void 0)
|
|
4721
|
+
return { format: p, path: o.join(g, y), url: D };
|
|
4694
4722
|
}
|
|
4695
|
-
function
|
|
4696
|
-
const
|
|
4723
|
+
function wl(t, n, { log: i = !1 } = {}) {
|
|
4724
|
+
const s = o.join(
|
|
4697
4725
|
t,
|
|
4698
4726
|
`photos_deputes_${// TODO: Handle Legislature.All.
|
|
4699
4727
|
n === l.All ? l.DixSept : n}`,
|
|
4700
4728
|
"deputes.json"
|
|
4701
4729
|
);
|
|
4702
|
-
i && console.log(`Loading file: ${
|
|
4703
|
-
const
|
|
4704
|
-
return JSON.parse(
|
|
4730
|
+
i && console.log(`Loading file: ${s}`);
|
|
4731
|
+
const g = r.readFileSync(s, { encoding: "utf8" });
|
|
4732
|
+
return JSON.parse(g);
|
|
4705
4733
|
}
|
|
4706
|
-
function
|
|
4734
|
+
function xl(t, { log: n = !1 } = {}) {
|
|
4707
4735
|
const i = o.join(
|
|
4708
4736
|
t,
|
|
4709
4737
|
"photos_senateurs",
|
|
4710
4738
|
"senateurs.json"
|
|
4711
4739
|
);
|
|
4712
4740
|
n && console.log(`Loading file: ${i}`);
|
|
4713
|
-
const
|
|
4714
|
-
return JSON.parse(
|
|
4741
|
+
const s = r.readFileSync(i, { encoding: "utf8" });
|
|
4742
|
+
return JSON.parse(s);
|
|
4715
4743
|
}
|
|
4716
|
-
function
|
|
4717
|
-
const i = n.match(
|
|
4718
|
-
|
|
4744
|
+
function dl(t, n) {
|
|
4745
|
+
const i = n.match(Ms);
|
|
4746
|
+
re.notStrictEqual(
|
|
4719
4747
|
i,
|
|
4720
4748
|
null,
|
|
4721
4749
|
`Unexpected structure for document UID: ${n}`
|
|
4722
4750
|
);
|
|
4723
|
-
const
|
|
4751
|
+
const s = i.groups, g = o.join(
|
|
4724
4752
|
t,
|
|
4725
|
-
|
|
4726
|
-
),
|
|
4727
|
-
f,
|
|
4728
|
-
a.republique ?? a.republique2
|
|
4729
|
-
), p = o.join(
|
|
4753
|
+
s.documentType ?? s.documentType2
|
|
4754
|
+
), S = o.join(g, s.chambre ?? s.chambre2), b = o.join(
|
|
4730
4755
|
S,
|
|
4731
|
-
|
|
4732
|
-
),
|
|
4733
|
-
|
|
4756
|
+
s.republique ?? s.republique2
|
|
4757
|
+
), p = o.join(
|
|
4758
|
+
b,
|
|
4759
|
+
s.legislature ?? s.legislature2
|
|
4760
|
+
), y = s.etat;
|
|
4761
|
+
if (y === void 0)
|
|
4734
4762
|
return r.ensureDirSync(p), o.join(p, n);
|
|
4735
|
-
const D = o.join(p,
|
|
4736
|
-
let I = "000000" + (
|
|
4763
|
+
const D = o.join(p, y);
|
|
4764
|
+
let I = "000000" + (s.numero ?? s.numero2);
|
|
4737
4765
|
I = I.substring(I.length - 6);
|
|
4738
4766
|
const v = o.join(D, I.substring(0, 3));
|
|
4739
4767
|
return r.ensureDirSync(v), o.join(v, n);
|
|
4740
4768
|
}
|
|
4741
|
-
function
|
|
4742
|
-
return
|
|
4769
|
+
function Vl(t, n) {
|
|
4770
|
+
return In(t, n, Ls);
|
|
4743
4771
|
}
|
|
4744
|
-
function
|
|
4745
|
-
const i =
|
|
4746
|
-
|
|
4772
|
+
function Fl(t, n) {
|
|
4773
|
+
const i = ws.exec(n);
|
|
4774
|
+
re.notStrictEqual(
|
|
4747
4775
|
i,
|
|
4748
4776
|
null,
|
|
4749
4777
|
`Unexpected structure for reunion UID: ${n}`
|
|
4750
4778
|
);
|
|
4751
|
-
const
|
|
4752
|
-
let
|
|
4753
|
-
|
|
4754
|
-
const D = o.join(p,
|
|
4779
|
+
const s = o.join(t, i[1]), g = o.join(s, i[2]), S = o.join(g, i[3]), b = o.join(S, i[4]), p = o.join(b, i[5]);
|
|
4780
|
+
let y = "000000000" + i[6];
|
|
4781
|
+
y = y.substring(y.length - 9);
|
|
4782
|
+
const D = o.join(p, y.substring(0, 3)), I = o.join(D, y.substring(3, 3));
|
|
4755
4783
|
return r.ensureDirSync(I), o.join(I, n);
|
|
4756
4784
|
}
|
|
4757
|
-
function
|
|
4758
|
-
const i =
|
|
4759
|
-
|
|
4785
|
+
function ql(t, n) {
|
|
4786
|
+
const i = xs.exec(n);
|
|
4787
|
+
re.notStrictEqual(
|
|
4760
4788
|
i,
|
|
4761
4789
|
null,
|
|
4762
4790
|
`Unexpected structure for scrutin UID: ${n}`
|
|
4763
4791
|
);
|
|
4764
|
-
const
|
|
4765
|
-
let
|
|
4766
|
-
|
|
4767
|
-
const p = o.join(
|
|
4792
|
+
const s = o.join(t, i[1]), g = o.join(s, i[2]), S = o.join(g, i[3]);
|
|
4793
|
+
let b = "000000" + i[4];
|
|
4794
|
+
b = b.substring(b.length - 6);
|
|
4795
|
+
const p = o.join(S, b.substring(0, 3));
|
|
4768
4796
|
return r.ensureDirSync(p), o.join(p, n);
|
|
4769
4797
|
}
|
|
4770
|
-
function
|
|
4771
|
-
return
|
|
4798
|
+
function Jl(t, n) {
|
|
4799
|
+
return In(t, n, Fs);
|
|
4772
4800
|
}
|
|
4773
|
-
function
|
|
4774
|
-
const i =
|
|
4775
|
-
|
|
4801
|
+
function Xl(t, n) {
|
|
4802
|
+
const i = Vs.exec(n);
|
|
4803
|
+
re.notStrictEqual(
|
|
4776
4804
|
i,
|
|
4777
4805
|
null,
|
|
4778
4806
|
`Unexpected structure for object with UID: ${n}`
|
|
4779
4807
|
);
|
|
4780
|
-
const
|
|
4808
|
+
const s = o.join(t, i[2]), g = o.join(s, i[3]), S = o.join(g, i[4]), b = o.join(S, i[5]);
|
|
4781
4809
|
let p = "000000000" + i[7];
|
|
4782
4810
|
p = p.substring(p.length - 9);
|
|
4783
|
-
const
|
|
4811
|
+
const y = o.join(b, p.substring(0, 3)), D = o.join(y, p.substring(3, 3));
|
|
4784
4812
|
return r.ensureDirSync(D), o.join(D, n);
|
|
4785
4813
|
}
|
|
4786
|
-
function
|
|
4787
|
-
const
|
|
4788
|
-
|
|
4789
|
-
|
|
4814
|
+
function In(t, n, i) {
|
|
4815
|
+
const s = i.exec(n);
|
|
4816
|
+
re.notStrictEqual(
|
|
4817
|
+
s,
|
|
4790
4818
|
null,
|
|
4791
4819
|
`Unexpected structure for object with UID: ${n}`
|
|
4792
4820
|
);
|
|
4793
|
-
const
|
|
4794
|
-
let
|
|
4795
|
-
|
|
4796
|
-
const p = o.join(
|
|
4821
|
+
const g = o.join(t, s[1]), S = o.join(g, s[2]);
|
|
4822
|
+
let b = "000000" + s[3];
|
|
4823
|
+
b = b.substring(b.length - 6);
|
|
4824
|
+
const p = o.join(S, b.substring(0, 3));
|
|
4797
4825
|
return r.ensureDirSync(p), o.join(p, n);
|
|
4798
4826
|
}
|
|
4799
|
-
async function
|
|
4827
|
+
async function O(t, n) {
|
|
4800
4828
|
const i = o.join(n, t.filename);
|
|
4801
4829
|
await r.pathExists(i) && await r.remove(i), await r.pathExists(o.join(n, `${t.filename}.temp`, "json")) ? await r.move(
|
|
4802
4830
|
o.join(n, `${t.filename}.temp`, "json"),
|
|
@@ -4804,105 +4832,105 @@ async function N(t, n) {
|
|
|
4804
4832
|
) : await r.mkdir(i);
|
|
4805
4833
|
}
|
|
4806
4834
|
export {
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
|
|
4835
|
+
cs as $,
|
|
4836
|
+
Ni as A,
|
|
4837
|
+
ft as B,
|
|
4838
|
+
K as C,
|
|
4839
|
+
Y as D,
|
|
4840
|
+
Ti as E,
|
|
4841
|
+
tt as F,
|
|
4842
|
+
Ri as G,
|
|
4843
|
+
Di as H,
|
|
4844
|
+
Ie as I,
|
|
4845
|
+
Ei as J,
|
|
4846
|
+
Hi as K,
|
|
4819
4847
|
l as L,
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4853
|
-
|
|
4854
|
-
|
|
4848
|
+
nt as M,
|
|
4849
|
+
ut as N,
|
|
4850
|
+
Ne as O,
|
|
4851
|
+
Re as P,
|
|
4852
|
+
gt as Q,
|
|
4853
|
+
De as R,
|
|
4854
|
+
Ot as S,
|
|
4855
|
+
St as T,
|
|
4856
|
+
Pi as U,
|
|
4857
|
+
as as V,
|
|
4858
|
+
Ut as W,
|
|
4859
|
+
rs as X,
|
|
4860
|
+
Bt as Y,
|
|
4861
|
+
ls as Z,
|
|
4862
|
+
Qt as _,
|
|
4863
|
+
Ln as a,
|
|
4864
|
+
$e as a0,
|
|
4865
|
+
us as a1,
|
|
4866
|
+
kt as a2,
|
|
4867
|
+
ps as a3,
|
|
4868
|
+
zt as a4,
|
|
4869
|
+
ms as a5,
|
|
4870
|
+
Gt as a6,
|
|
4871
|
+
ds as a7,
|
|
4872
|
+
Wt as a8,
|
|
4873
|
+
gs as a9,
|
|
4874
|
+
Ll as aA,
|
|
4875
|
+
wl as aB,
|
|
4876
|
+
xl as aC,
|
|
4877
|
+
dl as aD,
|
|
4878
|
+
Vl as aE,
|
|
4879
|
+
Fl as aF,
|
|
4880
|
+
ql as aG,
|
|
4881
|
+
Jl as aH,
|
|
4882
|
+
Xl as aI,
|
|
4855
4883
|
M as aJ,
|
|
4856
4884
|
X as aK,
|
|
4857
|
-
|
|
4858
|
-
|
|
4859
|
-
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4885
|
+
Zt as aa,
|
|
4886
|
+
Vs as ab,
|
|
4887
|
+
Ms as ac,
|
|
4888
|
+
Ls as ad,
|
|
4889
|
+
Fs as ae,
|
|
4890
|
+
ws as af,
|
|
4891
|
+
xs as ag,
|
|
4892
|
+
qs as ah,
|
|
4893
|
+
Xs as ai,
|
|
4894
|
+
$s as aj,
|
|
4895
|
+
ua as ak,
|
|
4896
|
+
ra as al,
|
|
4897
|
+
la as am,
|
|
4898
|
+
Ja as an,
|
|
4871
4899
|
R as ao,
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
|
|
4885
|
-
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
|
|
4900
|
+
yl as ap,
|
|
4901
|
+
Ol as aq,
|
|
4902
|
+
Nl as ar,
|
|
4903
|
+
Rl as as,
|
|
4904
|
+
Dl as at,
|
|
4905
|
+
Il as au,
|
|
4906
|
+
Tl as av,
|
|
4907
|
+
El as aw,
|
|
4908
|
+
Pl as ax,
|
|
4909
|
+
vl as ay,
|
|
4910
|
+
Ml as az,
|
|
4911
|
+
et as b,
|
|
4912
|
+
Mn as c,
|
|
4913
|
+
vn as d,
|
|
4914
|
+
le as e,
|
|
4915
|
+
wn as f,
|
|
4916
|
+
xn as g,
|
|
4917
|
+
ge as h,
|
|
4918
|
+
$n as i,
|
|
4919
|
+
fe as j,
|
|
4920
|
+
Ii as k,
|
|
4921
|
+
Vn as l,
|
|
4922
|
+
Fn as m,
|
|
4923
|
+
Ci as n,
|
|
4924
|
+
qn as o,
|
|
4925
|
+
Jn as p,
|
|
4926
|
+
ct as q,
|
|
4927
|
+
Xn as r,
|
|
4928
|
+
hi as s,
|
|
4929
|
+
_i as t,
|
|
4930
|
+
pt as u,
|
|
4931
|
+
ji as v,
|
|
4932
|
+
mt as w,
|
|
4933
|
+
yi as x,
|
|
4934
|
+
dt as y,
|
|
4935
|
+
Oi as z
|
|
4908
4936
|
};
|