@tricoteuses/assemblee 2.5.25 → 2.5.27

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/datasets.d.ts CHANGED
@@ -17,6 +17,7 @@ export interface Datasets {
17
17
  scrutins: Dataset[];
18
18
  questions: Dataset[];
19
19
  comptesRendusSeances: Dataset[];
20
+ comptesRendusCommissions: Dataset[];
20
21
  }
21
22
  export declare enum DatasetStructure {
22
23
  SingleFile = 0,
@@ -32,7 +33,8 @@ export declare enum EnabledDatasets {
32
33
  Scrutins = 32,
33
34
  Questions = 64,
34
35
  ComptesRendusSeances = 128,
35
- All = 255
36
+ ComptesRendusCommissions = 256,
37
+ All = 511
36
38
  }
37
39
  export declare const datasets: Datasets;
38
40
  export declare function getDatasets(): any;
package/lib/git.js CHANGED
@@ -117,9 +117,7 @@ function B(t, o, e = {}) {
117
117
  }
118
118
  return f;
119
119
  } catch {
120
- return console.error(
121
- `Error getting changed files since commit ${o}`
122
- ), /* @__PURE__ */ new Map();
120
+ return console.error(`Error getting changed files since commit ${o}`), /* @__PURE__ */ new Map();
123
121
  }
124
122
  }
125
123
  export {
package/lib/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { c as B, t as x, g as _, m as Q, a as s, b as X, d as V, e as z, f as J, h as Z, i as K, l as ee, j as te, k as ne, w as re, n as U, o as k, p as ie, q as C } from "./parse-Ccs6wcUg.js";
2
- import { C as O } from "./datasets-BCg11CdK.js";
3
- import { n as mt, G as gt, b as pt, a as yt, c as ht, H as Rt, I as xt, D as Tt, o as Dt, p as wt, E as St, F as vt, f as bt, L as At, J as Et, K as Ot, O as Ct, U as Mt, M as _t, N as Pt, g as Lt, h as Nt, V as It, P as Bt, i as Ut, j as kt, q as Yt, r as qt, Q as Ft, R as jt, d as $t, k as Wt, S as Ht, s as Gt, t as Qt, u as Xt, v as Vt, w as zt, x as Jt, B as Zt, W as Kt, T as en, y as tn, e as nn, l as rn, A as on, m as an, z as sn, X as un, a1 as cn, Y as fn, Z as dn, _ as ln, $ as mn, a0 as gn } from "./datasets-BCg11CdK.js";
2
+ import { C as O } from "./datasets-CYS3pymi.js";
3
+ import { n as mt, G as gt, b as pt, a as yt, c as ht, H as Rt, I as xt, D as Tt, o as Dt, p as wt, E as St, F as vt, f as bt, L as At, J as Et, K as Ot, O as Ct, U as Mt, M as _t, N as Pt, g as Lt, h as Nt, V as It, P as Bt, i as Ut, j as kt, q as Yt, r as qt, Q as Ft, R as jt, d as $t, k as Wt, S as Ht, s as Gt, t as Qt, u as Xt, v as Vt, w as zt, x as Jt, B as Zt, W as Kt, T as en, y as tn, e as nn, l as rn, A as on, m as an, z as sn, X as un, a1 as cn, Y as fn, Z as dn, _ as ln, $ as mn, a0 as gn } from "./datasets-CYS3pymi.js";
4
4
  import { A as yn, a as hn, C as Rn, b as xn, c as Tn, D as Dn, E as wn, d as Sn, S as vn, T as bn, e as An, f as En, g as On } from "./amendements-40Z7OJLT.js";
5
5
  var Y = /* @__PURE__ */ ((e) => (e.Amendements = "amendements", e))(Y || {});
6
6
  const Qe = Object.values(Y);
package/lib/loaders.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { EnabledDatasets } from './datasets';
1
+ import { EnabledDatasets, Dataset } from './datasets';
2
2
  import { Acteur, Organe, Photo } from './types/acteurs_et_organes';
3
3
  import { Reunion } from './types/agendas';
4
4
  import { Amendement } from './types/amendements';
@@ -54,65 +54,60 @@ export interface Data {
54
54
  [uid: string]: CompteRendu;
55
55
  };
56
56
  }
57
- export declare function iterLoadAssembleeActeurs(dataDir: string, legislature: Legislature, options?: {}): Generator<{
57
+ export declare function iterLoadAssembleeActeurs(dataDir: string, legislature: Legislature, options?: {}, customDatasets?: Dataset[]): Generator<{
58
58
  acteur: Acteur;
59
59
  datasetLegislature: Legislature;
60
60
  filePath: string;
61
61
  gitStatus?: "A" | "M" | "D" | "R" | "C" | "T" | "U";
62
62
  }, void, unknown>;
63
- export declare function iterLoadAssembleeOrganes(dataDir: string, legislature: Legislature, options?: {}): Generator<{
63
+ export declare function iterLoadAssembleeOrganes(dataDir: string, legislature: Legislature, options?: {}, customDatasets?: Dataset[]): Generator<{
64
64
  organe: Organe;
65
65
  datasetLegislature: Legislature;
66
66
  filePath: string;
67
67
  gitStatus?: "A" | "M" | "D" | "R" | "C" | "T" | "U";
68
68
  }, void, unknown>;
69
- export declare function iterLoadAssembleeAmendements(dataDir: string, legislature: Legislature, options?: {}): Generator<{
69
+ export declare function iterLoadAssembleeAmendements(dataDir: string, legislature: Legislature, options?: {}, customDatasets?: Dataset[]): Generator<{
70
70
  amendement: Amendement;
71
71
  datasetLegislature: Legislature;
72
72
  filePath: string;
73
73
  gitStatus?: "A" | "M" | "D" | "R" | "C" | "T" | "U";
74
74
  }, void, unknown>;
75
- export declare function iterLoadAssembleeDocuments(dataDir: string, legislature: Legislature, options?: {}): Generator<{
75
+ export declare function iterLoadAssembleeDocuments(dataDir: string, legislature: Legislature, options?: {}, customDatasets?: Dataset[]): Generator<{
76
76
  document: Document;
77
77
  datasetLegislature: Legislature;
78
78
  filePath: string;
79
79
  gitStatus?: "A" | "M" | "D" | "R" | "C" | "T" | "U";
80
80
  }, void, unknown>;
81
- export declare function iterLoadAssembleeDossiersParlementaires(dataDir: string, legislature: Legislature, options?: {}): Generator<{
81
+ export declare function iterLoadAssembleeDossiersParlementaires(dataDir: string, legislature: Legislature, options?: {}, customDatasets?: Dataset[]): Generator<{
82
82
  dossierParlementaire: DossierParlementaire;
83
83
  datasetLegislature: Legislature;
84
84
  filePath: string;
85
85
  gitStatus?: "A" | "M" | "D" | "R" | "C" | "T" | "U";
86
86
  }, void, unknown>;
87
- export declare function iterLoadAssembleeReunions(dataDir: string, legislature: Legislature, options?: {}): Generator<{
87
+ export declare function iterLoadAssembleeReunions(dataDir: string, legislature: Legislature, options?: {}, customDatasets?: Dataset[]): Generator<{
88
88
  reunion: Reunion;
89
89
  datasetLegislature: Legislature;
90
90
  filePath: string;
91
91
  gitStatus?: "A" | "M" | "D" | "R" | "C" | "T" | "U";
92
92
  }, void, unknown>;
93
- export declare function iterLoadAssembleeScrutins(dataDir: string, legislature: Legislature, options?: {}): Generator<{
93
+ export declare function iterLoadAssembleeScrutins(dataDir: string, legislature: Legislature, options?: {}, customDatasets?: Dataset[]): Generator<{
94
94
  scrutin: Scrutin;
95
95
  datasetLegislature: Legislature;
96
96
  filePath: string;
97
97
  gitStatus?: "A" | "M" | "D" | "R" | "C" | "T" | "U";
98
98
  }, void, unknown>;
99
- export declare function iterLoadAssembleeQuestions(dataDir: string, legislature: Legislature, options?: {}): Generator<{
99
+ export declare function iterLoadAssembleeQuestions(dataDir: string, legislature: Legislature, options?: {}, customDatasets?: Dataset[]): Generator<{
100
100
  question: Question;
101
101
  datasetLegislature: Legislature;
102
102
  filePath: string;
103
103
  gitStatus?: "A" | "M" | "D" | "R" | "C" | "T" | "U";
104
104
  }, void, unknown>;
105
- export declare function iterLoadAssembleeComptesRendus(dataDir: string, legislature: Legislature, options?: {}): Generator<{
105
+ export declare function iterLoadAssembleeComptesRendus(dataDir: string, legislature: Legislature, options?: {}, customDatasets?: Dataset[]): Generator<{
106
106
  compteRendu: CompteRendu;
107
107
  datasetLegislature: Legislature;
108
108
  filePath: string;
109
109
  gitStatus?: "A" | "M" | "D" | "R" | "C" | "T" | "U";
110
110
  }, void, unknown>;
111
- export declare function iterLoadAssembleeComptesRendusCommissions(dataDir: string, legislature: Legislature, {}?: {}): Generator<{
112
- compteRendu: CompteRendu;
113
- datasetLegislature: Legislature;
114
- filePath: string;
115
- }, void, unknown>;
116
111
  export declare function loadAssembleeData(dataDir: string, enabledDatasets: EnabledDatasets, legislature: Legislature, { log }?: {
117
112
  log?: boolean | undefined;
118
113
  }): Data;