Create types JorfArticleMetaArticle & LegiArticleMetaArticle
This commit is contained in:
parent
2eefefbda5
commit
51296d01af
4 changed files with 22 additions and 15 deletions
|
@ -39,6 +39,7 @@ export {
|
|||
type JorfArticle,
|
||||
type JorfArticleEtat,
|
||||
type JorfArticleLienArticleOrigine,
|
||||
type JorfArticleMetaArticle,
|
||||
type JorfArticleNature,
|
||||
type JorfArticleOrigine,
|
||||
type JorfArticleTexteNature,
|
||||
|
@ -97,6 +98,7 @@ export {
|
|||
type LegiArticleLienArticleOrigine,
|
||||
type LegiArticleLienNature,
|
||||
type LegiArticleLienType,
|
||||
type LegiArticleMetaArticle,
|
||||
type LegiArticleNature,
|
||||
type LegiArticleOrigine,
|
||||
type LegiArticleTexteNature,
|
||||
|
|
|
@ -68,14 +68,7 @@ export interface JorfArticle {
|
|||
URL: string
|
||||
}
|
||||
META_SPEC: {
|
||||
META_ARTICLE: {
|
||||
DATE_DEBUT: string
|
||||
DATE_FIN: string
|
||||
/// Mots-clés
|
||||
MCS_ART?: { MC: string[] }
|
||||
NUM?: string
|
||||
TYPE?: JorfArticleType
|
||||
}
|
||||
META_ARTICLE: JorfArticleMetaArticle
|
||||
}
|
||||
}
|
||||
VERSIONS: {
|
||||
|
@ -98,6 +91,15 @@ export type JorfArticleEtat = (typeof allJorfArticleEtats)[number]
|
|||
export type JorfArticleLienArticleOrigine =
|
||||
(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 JorfArticleOrigine = (typeof allJorfArticleOrigines)[number]
|
||||
|
|
|
@ -37,13 +37,7 @@ export interface LegiArticle {
|
|||
URL: string
|
||||
}
|
||||
META_SPEC: {
|
||||
META_ARTICLE: {
|
||||
DATE_DEBUT: string
|
||||
DATE_FIN: string
|
||||
ETAT?: LegiArticleEtat
|
||||
NUM?: string
|
||||
TYPE?: LegiArticleType
|
||||
}
|
||||
META_ARTICLE: LegiArticleMetaArticle
|
||||
}
|
||||
}
|
||||
NOTA?: {
|
||||
|
@ -85,6 +79,14 @@ export type LegiArticleLienNature = (typeof allLegiArticleLienNatures)[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 LegiArticleOrigine = (typeof allLegiArticleOrigines)[number]
|
||||
|
|
|
@ -19,6 +19,7 @@ import type {
|
|||
} from "$lib/legal/jorf"
|
||||
import type {
|
||||
LegiArticle,
|
||||
LegiArticleMetaArticle,
|
||||
LegiArticleTm,
|
||||
LegiSectionTa,
|
||||
LegiSectionTaLienArt,
|
||||
|
|
Loading…
Reference in a new issue