Create types JorfArticleMetaArticle & LegiArticleMetaArticle

This commit is contained in:
Emmanuel 2024-12-15 23:49:03 +01:00
parent 2eefefbda5
commit 51296d01af
4 changed files with 22 additions and 15 deletions

View file

@ -39,6 +39,7 @@ export {
type JorfArticle, type JorfArticle,
type JorfArticleEtat, type JorfArticleEtat,
type JorfArticleLienArticleOrigine, type JorfArticleLienArticleOrigine,
type JorfArticleMetaArticle,
type JorfArticleNature, type JorfArticleNature,
type JorfArticleOrigine, type JorfArticleOrigine,
type JorfArticleTexteNature, type JorfArticleTexteNature,
@ -97,6 +98,7 @@ export {
type LegiArticleLienArticleOrigine, type LegiArticleLienArticleOrigine,
type LegiArticleLienNature, type LegiArticleLienNature,
type LegiArticleLienType, type LegiArticleLienType,
type LegiArticleMetaArticle,
type LegiArticleNature, type LegiArticleNature,
type LegiArticleOrigine, type LegiArticleOrigine,
type LegiArticleTexteNature, type LegiArticleTexteNature,

View file

@ -68,14 +68,7 @@ export interface JorfArticle {
URL: string URL: string
} }
META_SPEC: { META_SPEC: {
META_ARTICLE: { META_ARTICLE: JorfArticleMetaArticle
DATE_DEBUT: string
DATE_FIN: string
/// Mots-clés
MCS_ART?: { MC: string[] }
NUM?: string
TYPE?: JorfArticleType
}
} }
} }
VERSIONS: { VERSIONS: {
@ -98,6 +91,15 @@ export type JorfArticleEtat = (typeof allJorfArticleEtats)[number]
export type JorfArticleLienArticleOrigine = export type JorfArticleLienArticleOrigine =
(typeof allJorfArticleLienArticleOrigines)[number] (typeof allJorfArticleLienArticleOrigines)[number]
export interface JorfArticleMetaArticle {
DATE_DEBUT: string
DATE_FIN: string
/// Mots-clés
MCS_ART?: { MC: string[] }
NUM?: string
TYPE?: JorfArticleType
}
export type JorfArticleNature = (typeof allJorfArticleNatures)[number] export type JorfArticleNature = (typeof allJorfArticleNatures)[number]
export type JorfArticleOrigine = (typeof allJorfArticleOrigines)[number] export type JorfArticleOrigine = (typeof allJorfArticleOrigines)[number]

View file

@ -37,13 +37,7 @@ export interface LegiArticle {
URL: string URL: string
} }
META_SPEC: { META_SPEC: {
META_ARTICLE: { META_ARTICLE: LegiArticleMetaArticle
DATE_DEBUT: string
DATE_FIN: string
ETAT?: LegiArticleEtat
NUM?: string
TYPE?: LegiArticleType
}
} }
} }
NOTA?: { NOTA?: {
@ -85,6 +79,14 @@ export type LegiArticleLienNature = (typeof allLegiArticleLienNatures)[number]
export type LegiArticleLienType = (typeof allLegiArticleLienTypes)[number] export type LegiArticleLienType = (typeof allLegiArticleLienTypes)[number]
export interface LegiArticleMetaArticle {
DATE_DEBUT: string
DATE_FIN: string
ETAT?: LegiArticleEtat
NUM?: string
TYPE?: LegiArticleType
}
export type LegiArticleNature = (typeof allLegiArticleNatures)[number] export type LegiArticleNature = (typeof allLegiArticleNatures)[number]
export type LegiArticleOrigine = (typeof allLegiArticleOrigines)[number] export type LegiArticleOrigine = (typeof allLegiArticleOrigines)[number]

View file

@ -19,6 +19,7 @@ import type {
} from "$lib/legal/jorf" } from "$lib/legal/jorf"
import type { import type {
LegiArticle, LegiArticle,
LegiArticleMetaArticle,
LegiArticleTm, LegiArticleTm,
LegiSectionTa, LegiSectionTa,
LegiSectionTaLienArt, LegiSectionTaLienArt,