@tricoteuses/assemblee 1.3.1 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/loaders.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  export { EnabledDatasets } from "./datasets";
2
2
  import { EnabledDatasets } from "./datasets";
3
- import type { DocumentFileInfos } from "./dossiers_legislatifs";
4
3
  export { walkDir } from "./file_systems";
5
4
  import { Acteur, Organe, Photo } from "./types/acteurs_et_organes";
6
5
  import { Reunion } from "./types/agendas";
@@ -116,15 +115,17 @@ export declare function loadAssembleeDataFromBigFiles(dataDir: string, enabledDa
116
115
  log?: boolean | undefined;
117
116
  }): Data;
118
117
  /**
119
- * Read a document or a division of a document from file system
118
+ * Read infos of a document or a division of a document from file system
120
119
  *
121
120
  * @param dataDir
122
121
  * @param uid UID of a document or a division
123
122
  * @param formats requested formats of the document in decreasing preference order
124
123
  */
125
- export declare function loadAssembleeDocumentFileInfos(dataDir: string, uid: string, formats: DocumentUrlFormat[]): (DocumentFileInfos & {
124
+ export declare function loadAssembleeDocumentFile(dataDir: string, uid: string, formats: DocumentUrlFormat[]): {
126
125
  format: DocumentUrlFormat;
127
- }) | undefined;
126
+ path: string;
127
+ url: string;
128
+ } | undefined;
128
129
  export declare function loadAssembleePhotosDeputes(dataDir: string, legislature: Legislature, { log }?: {
129
130
  log?: boolean | undefined;
130
131
  }): {