@tricoteuses/assemblee 2.5.21 → 2.5.22

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.
@@ -1,6 +1,5 @@
1
1
  import { Subdivision } from '../types/dossiers_legislatifs';
2
2
  export declare function parseTexte(assembleeUrl: string, page: string): {
3
- error: null;
4
3
  subdivisions: Subdivision[];
5
4
  url: string;
6
5
  };
package/lib/parsers.js CHANGED
@@ -10126,7 +10126,7 @@ function q1(e, u) {
10126
10126
  niveauRelatif: i.length,
10127
10127
  titres: T,
10128
10128
  alineas: p
10129
- }), { error: null, subdivisions: n, url: e };
10129
+ }), { subdivisions: n, url: e };
10130
10130
  }
10131
10131
  function Na(e, u) {
10132
10132
  const t = q0(e, u?.in);
@@ -113,17 +113,11 @@
113
113
  "type": "boolean"
114
114
  },
115
115
  "subdivisions": {
116
- "anyOf": [
117
- {
118
- "type": "array",
119
- "items": {
120
- "$ref": "#/definitions/Subdivision"
121
- }
122
- },
123
- {
124
- "type": "null"
125
- }
126
- ]
116
+ "type": "array",
117
+ "items": {
118
+ "$ref": "#/definitions/Subdivision"
119
+ },
120
+ "description": "Découpage du texte en articles, etc Ce champ ne fait pas partie des données fournies par l'Assemblée nationale mais est ajouté par Tricoteuses dans les dépôts enrichis."
127
121
  }
128
122
  },
129
123
  "required": [
@@ -1,5 +1,5 @@
1
- import { Document } from '../types/dossiers_legislatifs';
2
1
  import { Reunion } from '../types/agendas';
2
+ import { Document } from '../types/dossiers_legislatifs';
3
3
  type CommonOptions = {
4
4
  dataDir?: string;
5
5
  legislature: number;
@@ -566,7 +566,11 @@ export interface Document {
566
566
  depotAmendements?: DepotAmendements;
567
567
  organesReferents?: string[];
568
568
  rapportPublie?: boolean;
569
- subdivisions?: Subdivision[] | null;
569
+ /**
570
+ * Découpage du texte en articles, etc
571
+ * Ce champ ne fait pas partie des données fournies par l'Assemblée nationale mais est ajouté par Tricoteuses dans les dépôts enrichis.
572
+ */
573
+ subdivisions?: Subdivision[];
570
574
  }
571
575
  export declare enum TypeDocument {
572
576
  AccordInternationalType = "accordInternational_Type",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tricoteuses/assemblee",
3
- "version": "2.5.21",
3
+ "version": "2.5.22",
4
4
  "description": "Retrieve, clean up & handle French Assemblée nationale's open data",
5
5
  "keywords": [
6
6
  "Assemblée nationale",