@tricoteuses/senat 2.10.5 → 2.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/lib/databases.d.ts +1 -28
  2. package/lib/databases.js +0 -6
  3. package/lib/datasets.d.ts +6 -0
  4. package/lib/datasets.js +233 -0
  5. package/lib/model/ameli.d.ts +31 -143
  6. package/lib/model/ameli.js +102 -95
  7. package/lib/model/debats.d.ts +13 -51
  8. package/lib/model/documents.d.ts +2 -0
  9. package/lib/model/documents.js +37 -0
  10. package/lib/model/dosleg.d.ts +9 -104
  11. package/lib/model/dosleg.js +76 -108
  12. package/lib/model/index.d.ts +4 -2
  13. package/lib/model/index.js +4 -2
  14. package/lib/model/questions.d.ts +10 -458
  15. package/lib/model/scrutins.d.ts +3 -0
  16. package/lib/model/scrutins.js +74 -0
  17. package/lib/model/sens.d.ts +28 -1002
  18. package/lib/model/sens.js +65 -33
  19. package/lib/raw_types/ameli.d.ts +778 -1521
  20. package/lib/raw_types/ameli.js +5 -345
  21. package/lib/raw_types/db.d.ts +11389 -0
  22. package/lib/raw_types/db.js +5 -0
  23. package/lib/raw_types/debats.d.ts +163 -306
  24. package/lib/raw_types/debats.js +5 -84
  25. package/lib/raw_types/dosleg.d.ts +1349 -2293
  26. package/lib/raw_types/dosleg.js +5 -550
  27. package/lib/raw_types/questions.d.ts +374 -519
  28. package/lib/raw_types/questions.js +5 -84
  29. package/lib/raw_types/senat.d.ts +11389 -0
  30. package/lib/raw_types/senat.js +5 -0
  31. package/lib/raw_types/sens.d.ts +6729 -12571
  32. package/lib/raw_types/sens.js +5 -2944
  33. package/lib/raw_types_schemats/ameli.d.ts +2 -2
  34. package/lib/raw_types_schemats/debats.d.ts +2 -2
  35. package/lib/raw_types_schemats/dosleg.d.ts +2 -2
  36. package/lib/raw_types_schemats/questions.d.ts +2 -2
  37. package/lib/raw_types_schemats/sens.d.ts +2 -2
  38. package/lib/scripts/convert_data.js +37 -31
  39. package/lib/scripts/retrieve_open_data.js +35 -1
  40. package/package.json +10 -10
@@ -1,128 +1,135 @@
1
1
  import { jsonArrayFrom } from "kysely/helpers/postgres";
2
- import { dbAmeli } from "../databases";
2
+ import { dbSenat } from "../databases";
3
3
  import { concat, toDateString } from "./util";
4
4
  function auteurs(amendementId) {
5
- return jsonArrayFrom(dbAmeli
6
- .selectFrom("amdsen")
7
- .leftJoin("sen_ameli", "amdsen.senid", "sen_ameli.entid")
8
- .leftJoin("grppol_ameli", "amdsen.grpid", "grppol_ameli.entid")
9
- .where("amdsen.amdid", "=", amendementId)
5
+ return jsonArrayFrom(dbSenat
6
+ .selectFrom("ameli.amdsen")
7
+ .leftJoin("ameli.sen_ameli", "ameli.amdsen.senid", "ameli.sen_ameli.entid")
8
+ .leftJoin("ameli.grppol_ameli", "ameli.amdsen.grpid", "ameli.grppol_ameli.entid")
9
+ .where("ameli.amdsen.amdid", "=", amendementId)
10
10
  .select([
11
- "amdsen.prenomuse as prenom",
12
- "amdsen.hom as homonyme",
13
- "amdsen.nomuse as nom",
14
- "amdsen.qua as qualite",
15
- "amdsen.rng as rang",
16
- "sen_ameli.mat as matricule",
17
- "amdsen.grpid as groupe_politique_id",
18
- "grppol_ameli.cod as group_politique_code",
19
- "grppol_ameli.libcou as groupe_politique_libelle_court",
20
- "grppol_ameli.lilcou as groupe_politique_libelle",
11
+ "ameli.amdsen.prenomuse as prenom",
12
+ "ameli.amdsen.hom as homonyme",
13
+ "ameli.amdsen.nomuse as nom",
14
+ "ameli.amdsen.qua as qualite",
15
+ "ameli.amdsen.rng as rang",
16
+ "ameli.sen_ameli.mat as matricule",
17
+ "ameli.amdsen.grpid as groupe_politique_id",
18
+ "ameli.grppol_ameli.cod as group_politique_code",
19
+ "ameli.grppol_ameli.libcou as groupe_politique_libelle_court",
20
+ "ameli.grppol_ameli.lilcou as groupe_politique_libelle",
21
21
  ])
22
- .orderBy("amdsen.rng asc"));
22
+ .orderBy("ameli.amdsen.rng asc"));
23
23
  }
24
- const findAllQuery = dbAmeli
25
- .selectFrom("amd")
26
- .leftJoin("sub", "amd.subid", "sub.id")
27
- .leftJoin("typsub", "sub.typid", "typsub.id")
28
- .leftJoin("typrect", "amd.typrectid", "typrect.id")
29
- .leftJoin("txt_ameli", "amd.txtid", "txt_ameli.id")
30
- .leftJoin("etatxt", "txt_ameli.txtetaid", "etatxt.id")
31
- .leftJoin("ses", "txt_ameli.sesdepid", "ses.id")
32
- .leftJoin("typses", "typses.id", "ses.typid")
33
- .leftJoin("nat", "txt_ameli.natid", "nat.id")
34
- .leftJoin("lec_ameli", "txt_ameli.lecid", "lec_ameli.id")
35
- .leftJoin("mot", "amd.motid", "mot.id")
36
- .leftJoin("avicom", "amd.avcid", "avicom.id")
37
- .leftJoin("avigvt", "amd.avgid", "avigvt.id")
38
- .leftJoin("sor", "amd.sorid", "sor.id")
39
- .leftJoin("irr", "amd.irrid", "irr.id")
40
- .leftJoin("grppol_ameli", "amd.nomentid", "grppol_ameli.entid")
41
- .leftJoin("com_ameli", "amd.nomentid", "com_ameli.entid")
42
- .leftJoin("cab", "amd.nomentid", "cab.entid")
24
+ const findAllAmendementsQuery = dbSenat
25
+ .selectFrom("ameli.amd")
26
+ .leftJoin("ameli.sub", "ameli.amd.subid", "ameli.sub.id")
27
+ .leftJoin("ameli.typsub", "ameli.sub.typid", "ameli.typsub.id")
28
+ .leftJoin("ameli.typrect", "ameli.amd.typrectid", "ameli.typrect.id")
29
+ .leftJoin("ameli.txt_ameli", "ameli.amd.txtid", "ameli.txt_ameli.id")
30
+ .leftJoin("ameli.etatxt", "ameli.txt_ameli.txtetaid", "ameli.etatxt.id")
31
+ .leftJoin("ameli.ses", "ameli.txt_ameli.sesdepid", "ameli.ses.id")
32
+ .leftJoin("ameli.typses", "ameli.typses.id", "ameli.ses.typid")
33
+ .leftJoin("ameli.nat", "ameli.txt_ameli.natid", "ameli.nat.id")
34
+ .leftJoin("ameli.lec_ameli", "ameli.txt_ameli.lecid", "ameli.lec_ameli.id")
35
+ .leftJoin("ameli.mot", "ameli.amd.motid", "ameli.mot.id")
36
+ .leftJoin("ameli.avicom", "ameli.amd.avcid", "ameli.avicom.id")
37
+ .leftJoin("ameli.avigvt", "ameli.amd.avgid", "ameli.avigvt.id")
38
+ .leftJoin("ameli.sor", "ameli.amd.sorid", "ameli.sor.id")
39
+ .leftJoin("ameli.irr", "ameli.amd.irrid", "ameli.irr.id")
40
+ .leftJoin("ameli.grppol_ameli", "ameli.amd.nomentid", "ameli.grppol_ameli.entid")
41
+ .leftJoin("ameli.com_ameli", "ameli.amd.nomentid", "ameli.com_ameli.entid")
42
+ .leftJoin("ameli.cab", "ameli.amd.nomentid", "ameli.cab.entid")
43
+ .leftJoin("dosleg.amescr", "ameli.amd.num", "dosleg.amescr.amescrnum")
43
44
  .select(({ eb, ref, val }) => [
44
- "ses.ann as session",
45
- "ses.lil as session_libelle",
46
- "typses.lib as type_session",
47
- "txt_ameli.doslegsignet as signet_dossier_legislatif",
48
- "nat.libcourt as nature_texte",
49
- "nat.lib as nature_texte_libelle",
50
- "txt_ameli.numabs as numero_texte",
51
- "txt_ameli.numado as numero_adoption_texte",
52
- "txt_ameli.int as intitule_texte",
53
- "etatxt.lic as etat_texte",
54
- "etatxt.lib as etat_texte_libelle",
55
- "etatxt.txttyp as type_texte",
56
- "lec_ameli.lib as lecture",
45
+ "ameli.ses.ann as session",
46
+ "ameli.ses.lil as session_libelle",
47
+ "ameli.typses.lib as type_session",
48
+ "ameli.txt_ameli.doslegsignet as signet_dossier_legislatif",
49
+ "ameli.nat.libcourt as nature_texte",
50
+ "ameli.nat.lib as nature_texte_libelle",
51
+ "ameli.txt_ameli.numabs as numero_texte",
52
+ "ameli.txt_ameli.numado as numero_adoption_texte",
53
+ "ameli.txt_ameli.int as intitule_texte",
54
+ "ameli.etatxt.lic as etat_texte",
55
+ "ameli.etatxt.lib as etat_texte_libelle",
56
+ "ameli.etatxt.txttyp as type_texte",
57
+ "ameli.lec_ameli.lib as lecture",
57
58
  eb
58
59
  .case()
59
- .when("amd.typ", "=", "A")
60
+ .when("ameli.amd.typ", "=", "A")
60
61
  .then(val("Amendement"))
61
- .when("amd.typ", "=", "M")
62
+ .when("ameli.amd.typ", "=", "M")
62
63
  .then(val("Motion"))
63
- .when("amd.typ", "=", "S")
64
+ .when("ameli.amd.typ", "=", "S")
64
65
  .then(val("Sous-amendement"))
65
66
  .else("")
66
67
  .end()
67
68
  .as("nature"),
68
- "amd.id as id",
69
- "amd.amdperid as parent_id",
70
- "amd.amdrendusim as rendu_similaire_id",
71
- "amd.ideid as identique_id",
72
- "amd.discomid as discussion_commune_id",
73
- "amd.num as numero",
74
- "amd.numabs as numero_absolu",
75
- "amd.ord as ordre",
76
- "amd.accgou as accepte_gouvernement",
77
- "sub.lib as subdivision_libelle",
78
- "sub.lic as subdivision_libelle_court",
79
- "sub.pos as subdivision_position_texte",
80
- "sub.posder as subdivision_position_discussion",
81
- "sub.merid as subdivision_mere_id",
82
- "sub.sig as subdivision_signet",
83
- "sub.comdelid as subdivision_commission_id",
84
- "sub.dupl as subdivision_dupliquee",
85
- "typsub.lib as subdivision_type",
86
- "amd.alinea as alinea",
87
- "amd.commentprobleme as commentaire_probleme",
88
- "amd.obs as observations",
89
- "amd.mot as observations_additionnelles",
90
- toDateString(ref("amd.datdep")).as("date_depot"),
91
- "amd.dis as dispositif",
92
- "amd.obj as objet",
93
- "typrect.lib as type_rectification",
94
- "mot.lib as motion_libelle",
69
+ "ameli.amd.id as id",
70
+ "ameli.amd.amdperid as parent_id",
71
+ "ameli.amd.amdrendusim as rendu_similaire_id",
72
+ "ameli.amd.ideid as identique_id",
73
+ "ameli.amd.discomid as discussion_commune_id",
74
+ "ameli.amd.num as numero",
75
+ "ameli.amd.numabs as numero_absolu",
76
+ "ameli.amd.ord as ordre",
77
+ "ameli.amd.accgou as accepte_gouvernement",
78
+ "dosleg.amescr.scrnum as scrutin_id",
79
+ "ameli.sub.lib as subdivision_libelle",
80
+ "ameli.sub.lic as subdivision_libelle_court",
81
+ "ameli.sub.pos as subdivision_position_texte",
82
+ "ameli.sub.posder as subdivision_position_discussion",
83
+ "ameli.sub.merid as subdivision_mere_id",
84
+ "ameli.sub.sig as subdivision_signet",
85
+ "ameli.sub.comdelid as subdivision_commission_id",
86
+ "ameli.sub.dupl as subdivision_dupliquee",
87
+ "ameli.typsub.lib as subdivision_type",
88
+ "ameli.amd.alinea as alinea",
89
+ "ameli.amd.commentprobleme as commentaire_probleme",
90
+ "ameli.amd.obs as observations",
91
+ "ameli.amd.mot as observations_additionnelles",
92
+ toDateString(ref("ameli.amd.datdep")).as("date_depot"),
93
+ "ameli.amd.dis as dispositif",
94
+ "ameli.amd.obj as objet",
95
+ "ameli.typrect.lib as type_rectification",
96
+ "ameli.mot.lib as motion_libelle",
95
97
  eb
96
98
  .case()
97
- .when("amd.etaid", "=", 7)
99
+ .when("ameli.amd.etaid", "=", 7)
98
100
  .then(val("Diffusé"))
99
- .when("amd.etaid", "=", 8)
101
+ .when("ameli.amd.etaid", "=", 8)
100
102
  .then(val("Retiré avant réunion ou séance"))
101
- .when("amd.etaid", "=", 9)
103
+ .when("ameli.amd.etaid", "=", 9)
102
104
  .then(val("Examiné en commission ou séance"))
103
- .when("amd.etaid", "=", 10)
105
+ .when("ameli.amd.etaid", "=", 10)
104
106
  .then(val("Irrecevable"))
105
- .when("amd.etaid", "=", 11)
107
+ .when("ameli.amd.etaid", "=", 11)
106
108
  .then(val("Irrecevable"))
107
109
  .else("")
108
110
  .end()
109
111
  .as("etat"),
110
- "avicom.lib as avis_commission",
111
- "avigvt.lib as avis_gouvernement",
112
- eb.fn.coalesce("sor.lib", "irr.libirr").as("sort"),
113
- "amd.rev as revision",
114
- concat(val("https://www.senat.fr/amendements/"), ref("ses.lil"), val("/"), ref("txt_ameli.numabs"), val("/Amdt_"), ref("amd.numabs"), val(".html")).as("url"),
115
- "grppol_ameli.lilcou as au_nom_de_groupe_politique",
116
- "com_ameli.lil as au_nom_de_commission",
112
+ "ameli.avicom.lib as avis_commission",
113
+ "ameli.avigvt.lib as avis_gouvernement",
114
+ eb.fn.coalesce("ameli.sor.lib", "ameli.irr.libirr").as("sort"),
115
+ "ameli.amd.rev as revision",
116
+ concat(val("https://www.senat.fr/amendements/"), ref("ameli.ses.lil"), val("/"), ref("ameli.txt_ameli.numabs"), val("/Amdt_"), ref("ameli.amd.numabs"), val(".html")).as("url"),
117
+ "ameli.grppol_ameli.lilcou as au_nom_de_groupe_politique",
118
+ "ameli.com_ameli.lil as au_nom_de_commission",
117
119
  eb
118
120
  .case()
119
- .when("cab.entid", "is not", null)
121
+ .when("ameli.cab.entid", "is not", null)
120
122
  .then(true)
121
123
  .else(false)
122
124
  .end()
123
125
  .as("auteur_est_gouvernement"),
124
- auteurs(ref("amd.id")).as("auteurs"),
126
+ auteurs(ref("ameli.amd.id")).as("auteurs")
125
127
  ]);
126
- export function findAll() {
127
- return findAllQuery.stream();
128
+ export function findAllAmendements(fromSession) {
129
+ if (fromSession !== undefined) {
130
+ return findAllAmendementsQuery
131
+ .where("ameli.ses.ann", ">=", fromSession)
132
+ .stream();
133
+ }
134
+ return findAllAmendementsQuery.stream();
128
135
  }
@@ -1,81 +1,43 @@
1
1
  import { InferResult } from "kysely";
2
2
  export type DebatResult = InferResult<typeof findAllQuery>[0];
3
- declare const findAllQuery: import("kysely").SelectQueryBuilder<import("../databases").SenatDb, "debats", {
3
+ declare const findAllQuery: import("kysely").SelectQueryBuilder<any, "debats", {
4
+ [x: string]: any;
4
5
  id: string;
5
6
  date_seance: string;
6
- numero: number | null;
7
- url: string | null;
8
- etat_synchronisation: string | null;
9
7
  sections: {
10
- id: number | null;
11
- numero: string | null;
12
- objet: string | null;
13
- url: string | null;
14
- type: string | null;
15
- categorie: string | null;
8
+ [x: string]: any;
16
9
  interventions: {
17
- id: number | null;
18
- auteur_code: string;
19
- fonction_intervenant: string | null;
20
- url: string | null;
21
- analyse: string | null;
10
+ [x: string]: any;
22
11
  }[];
23
- lecture_id: string;
24
12
  }[];
25
13
  sections_divers: {
26
- type: string | null;
27
- categorie: string | null;
28
- libelle: string | null;
29
- objet: string | null;
14
+ [x: string]: any;
30
15
  interventions: {
31
- id: number | null;
32
- auteur_code: string;
33
- fonction_intervenant: string | null;
34
- url: string | null;
35
- analyse: string | null;
16
+ [x: string]: any;
36
17
  }[];
37
18
  }[];
38
19
  lectures: {
39
- id: string;
20
+ id: any;
40
21
  }[];
41
22
  }>;
42
23
  export declare function findAll(): AsyncIterableIterator<{
24
+ [x: string]: any;
43
25
  id: string;
44
26
  date_seance: string;
45
- numero: number | null;
46
- url: string | null;
47
- etat_synchronisation: string | null;
48
27
  sections: {
49
- id: number | null;
50
- numero: string | null;
51
- objet: string | null;
52
- url: string | null;
53
- type: string | null;
54
- categorie: string | null;
28
+ [x: string]: any;
55
29
  interventions: {
56
- id: number | null;
57
- auteur_code: string;
58
- fonction_intervenant: string | null;
59
- url: string | null;
60
- analyse: string | null;
30
+ [x: string]: any;
61
31
  }[];
62
- lecture_id: string;
63
32
  }[];
64
33
  sections_divers: {
65
- type: string | null;
66
- categorie: string | null;
67
- libelle: string | null;
68
- objet: string | null;
34
+ [x: string]: any;
69
35
  interventions: {
70
- id: number | null;
71
- auteur_code: string;
72
- fonction_intervenant: string | null;
73
- url: string | null;
74
- analyse: string | null;
36
+ [x: string]: any;
75
37
  }[];
76
38
  }[];
77
39
  lectures: {
78
- id: string;
40
+ id: any;
79
41
  }[];
80
42
  }>;
81
43
  export {};
@@ -0,0 +1,2 @@
1
+ export declare function findSenatTexteUrls(sessions?: number[]): any;
2
+ export declare function findSenatRapportUrls(sessions?: number[]): any;
@@ -0,0 +1,37 @@
1
+ import { dbSenat } from "../databases";
2
+ import { rtrim } from "./util";
3
+ export function findSenatTexteUrls(sessions = []) {
4
+ return dbSenat
5
+ .withSchema("dosleg")
6
+ .selectFrom("texte")
7
+ .where("texurl", "is not", null)
8
+ .where("typurl", "=", "I")
9
+ .$if(sessions.length > 0, (qb) => qb.where("sesann", "in", sessions))
10
+ .select(({ eb, ref }) => [
11
+ "sesann as session",
12
+ rtrim(ref("texurl")).as("url"),
13
+ eb
14
+ .case()
15
+ .when("oritxtcod", "=", "1")
16
+ .then(true)
17
+ .else(false)
18
+ .end()
19
+ .as("hasExposeDesMotifs"),
20
+ ])
21
+ .$narrowType()
22
+ .stream();
23
+ }
24
+ export function findSenatRapportUrls(sessions = []) {
25
+ return dbSenat
26
+ .withSchema("dosleg")
27
+ .selectFrom("rap")
28
+ .where("rapurl", "is not", null)
29
+ .where("typurl", "=", "I")
30
+ .$if(sessions.length > 0, (qb) => qb.where("sesann", "in", sessions))
31
+ .select(({ ref }) => [
32
+ "sesann as session",
33
+ rtrim(ref("rapurl")).as("url"),
34
+ ])
35
+ .$narrowType()
36
+ .stream();
37
+ }
@@ -1,113 +1,18 @@
1
1
  import { InferResult, SelectQueryBuilder } from "kysely";
2
2
  declare const findAllDossiersQuery: SelectQueryBuilder<any, any, any>;
3
3
  export declare function findAllDossiers(): AsyncIterableIterator<DossierLegislatifResult>;
4
- export declare function findAllScrutins(): AsyncIterableIterator<{
5
- numero: number;
6
- votes: {
7
- matricule_votant: string;
8
- matricule_delegant: string | null;
9
- position: string | null;
10
- statut_votant: string | null;
11
- titre_votant: string | null;
12
- }[];
13
- session: number;
14
- date_scrutin: string;
15
- date_scrutin_effective: string;
16
- lecture_id: string | null;
17
- intitule: string | null;
18
- note: string | null;
19
- nombre_majorite: number | null;
20
- nombre_majorite_seance: number | null;
21
- nombre_votants: number | null;
22
- nombre_votants_seance: number | null;
23
- nombre_suffrages: number | null;
24
- nombre_suffrages_seance: number | null;
25
- nombre_contre: number | null;
26
- nombre_contre_seance: number | null;
27
- nombre_pour: number | null;
28
- nombre_pour_seance: number | null;
29
- }>;
30
- export declare function findSenatTexteUrls(sessions?: number[]): AsyncIterableIterator<{
31
- session: number | null | undefined;
32
- url: string;
33
- hasExposeDesMotifs: boolean;
34
- }>;
35
- export declare function findSenatRapportUrls(sessions?: number[]): AsyncIterableIterator<{
36
- url: string;
37
- session: number | null | undefined;
38
- }>;
39
- declare const findAuteursQuery: SelectQueryBuilder<{
40
- amescr: import("../raw_types/dosleg").Amescr;
41
- ass: import("../raw_types/dosleg").Ass;
42
- aud: import("../raw_types/dosleg").Aud;
43
- auteur: import("../raw_types/dosleg").Auteur;
44
- ble: import("../raw_types/dosleg").Ble;
45
- catrap: import("../raw_types/dosleg").Catrap;
46
- corscr: import("../raw_types/dosleg").Corscr;
47
- date_seance: import("../raw_types/dosleg").DateSeance;
48
- deccoc: import("../raw_types/dosleg").Deccoc;
49
- denrap: import("../raw_types/dosleg").Denrap;
50
- doc: import("../raw_types/dosleg").Doc;
51
- docatt: import("../raw_types/dosleg").Docatt;
52
- docsea: import("../raw_types/dosleg").Docsea;
53
- ecr: import("../raw_types/dosleg").Ecr;
54
- etaloi: import("../raw_types/dosleg").Etaloi;
55
- evtsea: import("../raw_types/dosleg").Evtsea;
56
- forpub: import("../raw_types/dosleg").Forpub;
57
- gen: import("../raw_types/dosleg").Gen;
58
- lecass: import("../raw_types/dosleg").Lecass;
59
- lecassrap: import("../raw_types/dosleg").Lecassrap;
60
- lecture: import("../raw_types/dosleg").Lecture;
61
- lnkrap: import("../raw_types/dosleg").Lnkrap;
62
- loi: import("../raw_types/dosleg").Loi;
63
- loithe: import("../raw_types/dosleg").Loithe;
64
- natloi: import("../raw_types/dosleg").Natloi;
65
- org: import("../raw_types/dosleg").Org;
66
- orgnomhis: import("../raw_types/dosleg").Orgnomhis;
67
- orippr: import("../raw_types/dosleg").Orippr;
68
- oritxt: import("../raw_types/dosleg").Oritxt;
69
- posvot: import("../raw_types/dosleg").Posvot;
70
- qua: import("../raw_types/dosleg").Qua;
71
- rap: import("../raw_types/dosleg").Rap;
72
- raporg: import("../raw_types/dosleg").Raporg;
73
- rapthe: import("../raw_types/dosleg").Rapthe;
74
- rolsig: import("../raw_types/dosleg").Rolsig;
75
- scr: import("../raw_types/dosleg").Scr;
76
- ses: import("../raw_types/dosleg").Ses;
77
- stavot: import("../raw_types/dosleg").Stavot;
78
- texte: import("../raw_types/dosleg").Texte;
79
- texte_ancien: import("../raw_types/dosleg").TexteAncien;
80
- the: import("../raw_types/dosleg").The;
81
- titsen: import("../raw_types/dosleg").Titsen;
82
- typatt: import("../raw_types/dosleg").Typatt;
83
- typaut: import("../raw_types/dosleg").Typaut;
84
- typdoc: import("../raw_types/dosleg").Typdoc;
85
- typevtsea: import("../raw_types/dosleg").Typevtsea;
86
- typlec: import("../raw_types/dosleg").Typlec;
87
- typloi: import("../raw_types/dosleg").Typloi;
88
- typorg: import("../raw_types/dosleg").Typorg;
89
- typrap: import("../raw_types/dosleg").Typrap;
90
- typtxt: import("../raw_types/dosleg").Typtxt;
91
- typurl: import("../raw_types/dosleg").Typurl;
92
- votsen: import("../raw_types/dosleg").Votsen;
93
- }, "auteur", {
94
- code: string;
95
- nom: string;
96
- prenom: string | null;
97
- matricule: string | null;
4
+ declare const findAuteursQuery: SelectQueryBuilder<any, "dosleg.auteur", {
5
+ code: any;
6
+ nom: any;
7
+ prenom: any;
8
+ matricule: any;
98
9
  }>;
99
10
  export declare function findAuteurs(): Promise<{
100
- code: string;
101
- nom: string;
102
- prenom: string | null;
103
- matricule: string | null;
11
+ code: any;
12
+ nom: any;
13
+ prenom: any;
14
+ matricule: any;
104
15
  }[]>;
105
- export declare function findAuteur(auteurCode: string): Promise<{
106
- code: string;
107
- nom: string;
108
- prenom: string | null;
109
- matricule: string | null;
110
- } | undefined>;
111
16
  export type DossierLegislatifResult = InferResult<typeof findAllDossiersQuery>[0];
112
17
  export type AuteurResult = InferResult<typeof findAuteursQuery>[0];
113
18
  export {};