@tricoteuses/assemblee 3.2.13 → 3.2.15
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/LICENSE.md +38 -38
- package/README.md +153 -153
- package/lib/cleaners.js +2 -2
- package/lib/datasets.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/{loaders-IUehTy2k.js → loaders-Bqy18Qs1.js} +1 -1
- package/lib/loaders.js +1 -1
- package/lib/open_data/artifacts.d.ts +37 -0
- package/lib/open_data/artifacts.test.d.ts +1 -0
- package/lib/schemas/raw/questions.d.ts +34 -34
- package/lib/scripts/monitor_open_data_updates.d.ts +22 -0
- package/lib/scripts/monitor_open_data_updates.test.d.ts +1 -0
- package/lib/scripts/retrieve_open_data.d.ts +38 -19
- package/lib/scripts/retrieve_open_data.test.d.ts +1 -0
- package/lib/{scrutins-CiEVPprJ.js → scrutins-D1qWLlRT.js} +1 -1
- package/package.json +135 -134
|
@@ -107,7 +107,7 @@ export declare const InfoJoRawSchema: z.ZodObject<{
|
|
|
107
107
|
JO_QUESTION: "JO_QUESTION";
|
|
108
108
|
JO_DEBAT: "JO_DEBAT";
|
|
109
109
|
}>>;
|
|
110
|
-
dateJO: z.
|
|
110
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
111
111
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
112
112
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
113
113
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -142,7 +142,7 @@ export declare const MinAttribElementRawSchema: z.ZodObject<{
|
|
|
142
142
|
JO_QUESTION: "JO_QUESTION";
|
|
143
143
|
JO_DEBAT: "JO_DEBAT";
|
|
144
144
|
}>>;
|
|
145
|
-
dateJO: z.
|
|
145
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
146
146
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
147
147
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
148
148
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -166,7 +166,7 @@ export declare const MinAttribsRawSchema: z.ZodObject<{
|
|
|
166
166
|
JO_QUESTION: "JO_QUESTION";
|
|
167
167
|
JO_DEBAT: "JO_DEBAT";
|
|
168
168
|
}>>;
|
|
169
|
-
dateJO: z.
|
|
169
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
170
170
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
171
171
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
172
172
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -190,7 +190,7 @@ export declare const TexteQuestionRawSchema: z.ZodObject<{
|
|
|
190
190
|
JO_QUESTION: "JO_QUESTION";
|
|
191
191
|
JO_DEBAT: "JO_DEBAT";
|
|
192
192
|
}>>;
|
|
193
|
-
dateJO: z.
|
|
193
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
194
194
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
195
195
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
196
196
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -211,7 +211,7 @@ export declare const TextesQuestionRawSchema: z.ZodObject<{
|
|
|
211
211
|
JO_QUESTION: "JO_QUESTION";
|
|
212
212
|
JO_DEBAT: "JO_DEBAT";
|
|
213
213
|
}>>;
|
|
214
|
-
dateJO: z.
|
|
214
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
215
215
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
216
216
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
217
217
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -233,7 +233,7 @@ export declare const TextesReponseRawSchema: z.ZodObject<{
|
|
|
233
233
|
JO_QUESTION: "JO_QUESTION";
|
|
234
234
|
JO_DEBAT: "JO_DEBAT";
|
|
235
235
|
}>>;
|
|
236
|
-
dateJO: z.
|
|
236
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
237
237
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
238
238
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
239
239
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -257,7 +257,7 @@ export declare const ClotureRawSchema: z.ZodObject<{
|
|
|
257
257
|
JO_QUESTION: "JO_QUESTION";
|
|
258
258
|
JO_DEBAT: "JO_DEBAT";
|
|
259
259
|
}>>;
|
|
260
|
-
dateJO: z.
|
|
260
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
261
261
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
262
262
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
263
263
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -276,7 +276,7 @@ export declare const SignalementRawSchema: z.ZodObject<{
|
|
|
276
276
|
JO_QUESTION: "JO_QUESTION";
|
|
277
277
|
JO_DEBAT: "JO_DEBAT";
|
|
278
278
|
}>>;
|
|
279
|
-
dateJO: z.
|
|
279
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
280
280
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
281
281
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
282
282
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -294,7 +294,7 @@ export declare const RenouvellementRawSchema: z.ZodObject<{
|
|
|
294
294
|
JO_QUESTION: "JO_QUESTION";
|
|
295
295
|
JO_DEBAT: "JO_DEBAT";
|
|
296
296
|
}>>;
|
|
297
|
-
dateJO: z.
|
|
297
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
298
298
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
299
299
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
300
300
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -313,7 +313,7 @@ export declare const RenouvellementRawsSchema: z.ZodObject<{
|
|
|
313
313
|
JO_QUESTION: "JO_QUESTION";
|
|
314
314
|
JO_DEBAT: "JO_DEBAT";
|
|
315
315
|
}>>;
|
|
316
|
-
dateJO: z.
|
|
316
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
317
317
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
318
318
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
319
319
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -375,7 +375,7 @@ export declare const QuestionRawSchema: z.ZodObject<{
|
|
|
375
375
|
JO_QUESTION: "JO_QUESTION";
|
|
376
376
|
JO_DEBAT: "JO_DEBAT";
|
|
377
377
|
}>>;
|
|
378
|
-
dateJO: z.
|
|
378
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
379
379
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
380
380
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
381
381
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -396,7 +396,7 @@ export declare const QuestionRawSchema: z.ZodObject<{
|
|
|
396
396
|
JO_QUESTION: "JO_QUESTION";
|
|
397
397
|
JO_DEBAT: "JO_DEBAT";
|
|
398
398
|
}>>;
|
|
399
|
-
dateJO: z.
|
|
399
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
400
400
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
401
401
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
402
402
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -414,7 +414,7 @@ export declare const QuestionRawSchema: z.ZodObject<{
|
|
|
414
414
|
JO_QUESTION: "JO_QUESTION";
|
|
415
415
|
JO_DEBAT: "JO_DEBAT";
|
|
416
416
|
}>>;
|
|
417
|
-
dateJO: z.
|
|
417
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
418
418
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
419
419
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
420
420
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -434,7 +434,7 @@ export declare const QuestionRawSchema: z.ZodObject<{
|
|
|
434
434
|
JO_QUESTION: "JO_QUESTION";
|
|
435
435
|
JO_DEBAT: "JO_DEBAT";
|
|
436
436
|
}>>;
|
|
437
|
-
dateJO: z.
|
|
437
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
438
438
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
439
439
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
440
440
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -449,7 +449,7 @@ export declare const QuestionRawSchema: z.ZodObject<{
|
|
|
449
449
|
JO_QUESTION: "JO_QUESTION";
|
|
450
450
|
JO_DEBAT: "JO_DEBAT";
|
|
451
451
|
}>>;
|
|
452
|
-
dateJO: z.
|
|
452
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
453
453
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
454
454
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
455
455
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -464,7 +464,7 @@ export declare const QuestionRawSchema: z.ZodObject<{
|
|
|
464
464
|
JO_QUESTION: "JO_QUESTION";
|
|
465
465
|
JO_DEBAT: "JO_DEBAT";
|
|
466
466
|
}>>;
|
|
467
|
-
dateJO: z.
|
|
467
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
468
468
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
469
469
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
470
470
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -528,7 +528,7 @@ export declare const QuestionWrapperRawSchema: z.ZodObject<{
|
|
|
528
528
|
JO_QUESTION: "JO_QUESTION";
|
|
529
529
|
JO_DEBAT: "JO_DEBAT";
|
|
530
530
|
}>>;
|
|
531
|
-
dateJO: z.
|
|
531
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
532
532
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
533
533
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
534
534
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -549,7 +549,7 @@ export declare const QuestionWrapperRawSchema: z.ZodObject<{
|
|
|
549
549
|
JO_QUESTION: "JO_QUESTION";
|
|
550
550
|
JO_DEBAT: "JO_DEBAT";
|
|
551
551
|
}>>;
|
|
552
|
-
dateJO: z.
|
|
552
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
553
553
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
554
554
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
555
555
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -567,7 +567,7 @@ export declare const QuestionWrapperRawSchema: z.ZodObject<{
|
|
|
567
567
|
JO_QUESTION: "JO_QUESTION";
|
|
568
568
|
JO_DEBAT: "JO_DEBAT";
|
|
569
569
|
}>>;
|
|
570
|
-
dateJO: z.
|
|
570
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
571
571
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
572
572
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
573
573
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -587,7 +587,7 @@ export declare const QuestionWrapperRawSchema: z.ZodObject<{
|
|
|
587
587
|
JO_QUESTION: "JO_QUESTION";
|
|
588
588
|
JO_DEBAT: "JO_DEBAT";
|
|
589
589
|
}>>;
|
|
590
|
-
dateJO: z.
|
|
590
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
591
591
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
592
592
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
593
593
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -602,7 +602,7 @@ export declare const QuestionWrapperRawSchema: z.ZodObject<{
|
|
|
602
602
|
JO_QUESTION: "JO_QUESTION";
|
|
603
603
|
JO_DEBAT: "JO_DEBAT";
|
|
604
604
|
}>>;
|
|
605
|
-
dateJO: z.
|
|
605
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
606
606
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
607
607
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
608
608
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -617,7 +617,7 @@ export declare const QuestionWrapperRawSchema: z.ZodObject<{
|
|
|
617
617
|
JO_QUESTION: "JO_QUESTION";
|
|
618
618
|
JO_DEBAT: "JO_DEBAT";
|
|
619
619
|
}>>;
|
|
620
|
-
dateJO: z.
|
|
620
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
621
621
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
622
622
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
623
623
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -682,7 +682,7 @@ export declare const QuestionsClassRawSchema: z.ZodObject<{
|
|
|
682
682
|
JO_QUESTION: "JO_QUESTION";
|
|
683
683
|
JO_DEBAT: "JO_DEBAT";
|
|
684
684
|
}>>;
|
|
685
|
-
dateJO: z.
|
|
685
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
686
686
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
687
687
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
688
688
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -703,7 +703,7 @@ export declare const QuestionsClassRawSchema: z.ZodObject<{
|
|
|
703
703
|
JO_QUESTION: "JO_QUESTION";
|
|
704
704
|
JO_DEBAT: "JO_DEBAT";
|
|
705
705
|
}>>;
|
|
706
|
-
dateJO: z.
|
|
706
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
707
707
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
708
708
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
709
709
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -721,7 +721,7 @@ export declare const QuestionsClassRawSchema: z.ZodObject<{
|
|
|
721
721
|
JO_QUESTION: "JO_QUESTION";
|
|
722
722
|
JO_DEBAT: "JO_DEBAT";
|
|
723
723
|
}>>;
|
|
724
|
-
dateJO: z.
|
|
724
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
725
725
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
726
726
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
727
727
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -741,7 +741,7 @@ export declare const QuestionsClassRawSchema: z.ZodObject<{
|
|
|
741
741
|
JO_QUESTION: "JO_QUESTION";
|
|
742
742
|
JO_DEBAT: "JO_DEBAT";
|
|
743
743
|
}>>;
|
|
744
|
-
dateJO: z.
|
|
744
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
745
745
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
746
746
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
747
747
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -756,7 +756,7 @@ export declare const QuestionsClassRawSchema: z.ZodObject<{
|
|
|
756
756
|
JO_QUESTION: "JO_QUESTION";
|
|
757
757
|
JO_DEBAT: "JO_DEBAT";
|
|
758
758
|
}>>;
|
|
759
|
-
dateJO: z.
|
|
759
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
760
760
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
761
761
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
762
762
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -771,7 +771,7 @@ export declare const QuestionsClassRawSchema: z.ZodObject<{
|
|
|
771
771
|
JO_QUESTION: "JO_QUESTION";
|
|
772
772
|
JO_DEBAT: "JO_DEBAT";
|
|
773
773
|
}>>;
|
|
774
|
-
dateJO: z.
|
|
774
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
775
775
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
776
776
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
777
777
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -837,7 +837,7 @@ export declare const QuestionsRawSchema: z.ZodObject<{
|
|
|
837
837
|
JO_QUESTION: "JO_QUESTION";
|
|
838
838
|
JO_DEBAT: "JO_DEBAT";
|
|
839
839
|
}>>;
|
|
840
|
-
dateJO: z.
|
|
840
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
841
841
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
842
842
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
843
843
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -858,7 +858,7 @@ export declare const QuestionsRawSchema: z.ZodObject<{
|
|
|
858
858
|
JO_QUESTION: "JO_QUESTION";
|
|
859
859
|
JO_DEBAT: "JO_DEBAT";
|
|
860
860
|
}>>;
|
|
861
|
-
dateJO: z.
|
|
861
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
862
862
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
863
863
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
864
864
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -876,7 +876,7 @@ export declare const QuestionsRawSchema: z.ZodObject<{
|
|
|
876
876
|
JO_QUESTION: "JO_QUESTION";
|
|
877
877
|
JO_DEBAT: "JO_DEBAT";
|
|
878
878
|
}>>;
|
|
879
|
-
dateJO: z.
|
|
879
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
880
880
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
881
881
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
882
882
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -896,7 +896,7 @@ export declare const QuestionsRawSchema: z.ZodObject<{
|
|
|
896
896
|
JO_QUESTION: "JO_QUESTION";
|
|
897
897
|
JO_DEBAT: "JO_DEBAT";
|
|
898
898
|
}>>;
|
|
899
|
-
dateJO: z.
|
|
899
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
900
900
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
901
901
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
902
902
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -911,7 +911,7 @@ export declare const QuestionsRawSchema: z.ZodObject<{
|
|
|
911
911
|
JO_QUESTION: "JO_QUESTION";
|
|
912
912
|
JO_DEBAT: "JO_DEBAT";
|
|
913
913
|
}>>;
|
|
914
|
-
dateJO: z.
|
|
914
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
915
915
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
916
916
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
917
917
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -926,7 +926,7 @@ export declare const QuestionsRawSchema: z.ZodObject<{
|
|
|
926
926
|
JO_QUESTION: "JO_QUESTION";
|
|
927
927
|
JO_DEBAT: "JO_DEBAT";
|
|
928
928
|
}>>;
|
|
929
|
-
dateJO: z.
|
|
929
|
+
dateJO: z.ZodPreprocess<z.ZodOptional<z.ZodDate>>;
|
|
930
930
|
pageJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
931
931
|
numJO: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
932
932
|
urlLegifrance: z.ZodNullable<z.ZodPipe<z.ZodPreprocess<z.ZodOptional<z.ZodString>> & z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodTransform<string, string>>>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Dataset } from '../datasets.js';
|
|
2
|
+
export interface MonitoredDataset {
|
|
3
|
+
category: string;
|
|
4
|
+
dataset: Dataset;
|
|
5
|
+
legislature: number;
|
|
6
|
+
seedSlots: string[];
|
|
7
|
+
}
|
|
8
|
+
interface PendingUpdate {
|
|
9
|
+
expiresAt: string;
|
|
10
|
+
pipelineId?: number;
|
|
11
|
+
versionKey: string;
|
|
12
|
+
}
|
|
13
|
+
export interface DatasetState {
|
|
14
|
+
observations: string[];
|
|
15
|
+
pending?: PendingUpdate;
|
|
16
|
+
seenOrigins: string[];
|
|
17
|
+
}
|
|
18
|
+
export declare function buildMonitoredDatasets(): MonitoredDataset[];
|
|
19
|
+
export declare function isDatasetDue(monitored: MonitoredDataset, datasetState: DatasetState, now: Date): boolean;
|
|
20
|
+
export declare function delayBeforeDeadline(delay: number, deadline: number, now?: number): number;
|
|
21
|
+
export declare function scheduledPipelineIsStale(maxStartDelayMinutes: number, pipelineSource?: string | undefined, pipelineCreatedAt?: string | undefined, now?: number): boolean;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
1
2
|
import { Dataset } from '../datasets.js';
|
|
2
3
|
type ProcessDatasetArguments = {
|
|
3
4
|
dataset: Dataset;
|
|
@@ -5,90 +6,108 @@ type ProcessDatasetArguments = {
|
|
|
5
6
|
options: Options;
|
|
6
7
|
};
|
|
7
8
|
declare const retrieveOpenDataParser: import('zod-opts').Parser<{
|
|
9
|
+
dataset: {
|
|
10
|
+
description: string;
|
|
11
|
+
type: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
12
|
+
};
|
|
8
13
|
fetch: {
|
|
9
14
|
alias: string;
|
|
10
15
|
description: string;
|
|
11
|
-
type:
|
|
16
|
+
type: z.ZodDefault<z.ZodBoolean>;
|
|
17
|
+
};
|
|
18
|
+
"manifest-dir": {
|
|
19
|
+
description: string;
|
|
20
|
+
type: z.ZodOptional<z.ZodString>;
|
|
21
|
+
};
|
|
22
|
+
"only-if-new": {
|
|
23
|
+
description: string;
|
|
24
|
+
type: z.ZodDefault<z.ZodBoolean>;
|
|
25
|
+
};
|
|
26
|
+
"probe-count": {
|
|
27
|
+
description: string;
|
|
28
|
+
type: z.ZodDefault<z.ZodNumber>;
|
|
12
29
|
};
|
|
13
30
|
categories: {
|
|
14
31
|
alias: string;
|
|
15
32
|
description: string;
|
|
16
|
-
type:
|
|
33
|
+
type: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
17
34
|
};
|
|
18
35
|
legislature: {
|
|
19
36
|
alias: string;
|
|
20
37
|
description: string;
|
|
21
|
-
type:
|
|
38
|
+
type: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
22
39
|
};
|
|
23
40
|
silent: {
|
|
24
41
|
alias: string;
|
|
25
42
|
description: string;
|
|
26
|
-
type:
|
|
43
|
+
type: z.ZodDefault<z.ZodBoolean>;
|
|
27
44
|
};
|
|
28
45
|
verbose: {
|
|
29
46
|
alias: string;
|
|
30
47
|
description: string;
|
|
31
|
-
type:
|
|
48
|
+
type: z.ZodDefault<z.ZodBoolean>;
|
|
32
49
|
};
|
|
33
50
|
"only-recent": {
|
|
34
51
|
description: string;
|
|
35
|
-
type:
|
|
52
|
+
type: z.ZodOptional<z.ZodNumber>;
|
|
36
53
|
};
|
|
37
54
|
skipReindent: {
|
|
38
55
|
description: string;
|
|
39
|
-
type:
|
|
56
|
+
type: z.ZodDefault<z.ZodBoolean>;
|
|
40
57
|
};
|
|
41
58
|
keepDir: {
|
|
42
59
|
description: string;
|
|
43
|
-
type:
|
|
60
|
+
type: z.ZodDefault<z.ZodBoolean>;
|
|
44
61
|
};
|
|
45
62
|
clone: {
|
|
46
63
|
alias: string;
|
|
47
64
|
description: string;
|
|
48
|
-
type:
|
|
65
|
+
type: z.ZodOptional<z.ZodString>;
|
|
49
66
|
};
|
|
50
67
|
commit: {
|
|
51
68
|
alias: string;
|
|
52
69
|
description: string;
|
|
53
|
-
type:
|
|
70
|
+
type: z.ZodDefault<z.ZodBoolean>;
|
|
54
71
|
};
|
|
55
72
|
remote: {
|
|
56
73
|
alias: string;
|
|
57
74
|
description: string;
|
|
58
|
-
type:
|
|
75
|
+
type: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
59
76
|
};
|
|
60
77
|
pull: {
|
|
61
78
|
alias: string;
|
|
62
79
|
description: string;
|
|
63
|
-
type:
|
|
80
|
+
type: z.ZodDefault<z.ZodBoolean>;
|
|
64
81
|
};
|
|
65
82
|
fetchDocuments: {
|
|
66
83
|
description: string;
|
|
67
|
-
type:
|
|
84
|
+
type: z.ZodDefault<z.ZodBoolean>;
|
|
68
85
|
};
|
|
69
86
|
parseDocuments: {
|
|
70
87
|
description: string;
|
|
71
|
-
type:
|
|
88
|
+
type: z.ZodDefault<z.ZodBoolean>;
|
|
72
89
|
};
|
|
73
90
|
format: {
|
|
74
91
|
alias: string;
|
|
75
92
|
description: string;
|
|
76
|
-
type:
|
|
93
|
+
type: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
77
94
|
};
|
|
78
95
|
fetchVideos: {
|
|
79
96
|
description: string;
|
|
80
|
-
type:
|
|
97
|
+
type: z.ZodDefault<z.ZodBoolean>;
|
|
81
98
|
};
|
|
82
99
|
fetchCrCommissions: {
|
|
83
100
|
description: string;
|
|
84
|
-
type:
|
|
101
|
+
type: z.ZodDefault<z.ZodBoolean>;
|
|
85
102
|
};
|
|
86
103
|
}, [{
|
|
87
104
|
description: string;
|
|
88
|
-
type:
|
|
105
|
+
type: z.ZodString;
|
|
89
106
|
name: "dataDir";
|
|
90
107
|
}]>;
|
|
91
108
|
type Options = ReturnType<typeof retrieveOpenDataParser.parse>;
|
|
109
|
+
export declare function publishDataset(stagedDataPath: string, dataPath: string, partZipPath: string | undefined, zipPath: string): Promise<void>;
|
|
110
|
+
export declare function recoverPublication(dataPath: string): Promise<void>;
|
|
92
111
|
/**
|
|
93
112
|
* Processes a dataset by fetching, unzipping, and converting files from XML to JSON format.
|
|
94
113
|
*
|
|
@@ -97,5 +116,5 @@ type Options = ReturnType<typeof retrieveOpenDataParser.parse>;
|
|
|
97
116
|
* @param {any} options - Options to control the processing behavior, such as fetching and silent mode.
|
|
98
117
|
* @returns {Promise<void>} A promise that resolves when the dataset processing is complete.
|
|
99
118
|
*/
|
|
100
|
-
export declare function processDataset({ dataset, dataDir, options
|
|
119
|
+
export declare function processDataset({ dataset, dataDir, options, }: ProcessDatasetArguments): Promise<void>;
|
|
101
120
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -917,7 +917,7 @@ var Tr = [
|
|
|
917
917
|
groupe: Mr
|
|
918
918
|
}), I = l.object({
|
|
919
919
|
typeJO: Ar.nullable(),
|
|
920
|
-
dateJO:
|
|
920
|
+
dateJO: n().describe("Date de publication au Journal Officiel"),
|
|
921
921
|
pageJO: c().nullable(),
|
|
922
922
|
numJO: c().nullable(),
|
|
923
923
|
urlLegifrance: c().nullable(),
|