Mutualize META_TEXTE_CHRONICLE, etc betwenn textelr & texte_version

This commit is contained in:
Emmanuel 2024-12-22 23:38:12 +01:00
parent d84a130bab
commit d25080c09f
10 changed files with 337 additions and 686 deletions

View file

@ -0,0 +1,95 @@
import {
auditDateIso8601String,
auditEmptyToNull,
auditFunction,
auditInteger,
auditNullish,
auditNumber,
auditRequire,
auditSwitch,
auditTrimString,
type Audit,
} from "@auditors/core"
export function auditMetaTexteChronicle(
audit: Audit,
dataUnknown: unknown,
): [unknown, unknown] {
if (dataUnknown == null) {
return [dataUnknown, null]
}
if (typeof dataUnknown !== "object") {
return audit.unexpectedType(dataUnknown, "object")
}
const data = { ...dataUnknown }
const errors: { [key: string]: unknown } = {}
const remainingKeys = new Set(Object.keys(data))
for (const key of ["CID"]) {
audit.attribute(
data,
key,
true,
errors,
remainingKeys,
auditTrimString,
auditEmptyToNull,
auditRequire,
)
}
for (const key of ["DATE_PUBLI", "DATE_TEXTE"]) {
audit.attribute(
data,
key,
true,
errors,
remainingKeys,
auditFunction((date) => date.replace(/^11992-12-27$/, "1992-12-27")),
auditDateIso8601String,
auditRequire,
)
}
for (const key of ["NOR", "NUM"]) {
audit.attribute(
data,
key,
true,
errors,
remainingKeys,
auditSwitch(
[auditNumber, auditFunction((num) => num.toString())],
[auditTrimString, auditEmptyToNull],
),
)
}
for (const key of [
"NUM_PARUTION",
"NUM_SEQUENCE",
"PAGE_DEB_PUBLI",
"PAGE_FIN_PUBLI",
]) {
audit.attribute(
data,
key,
true,
errors,
remainingKeys,
auditSwitch(
[auditNumber, auditInteger],
[auditTrimString, auditEmptyToNull, auditNullish],
),
)
}
audit.attribute(
data,
"ORIGINE_PUBLI",
true,
errors,
remainingKeys,
auditTrimString,
auditEmptyToNull,
)
return audit.reduceRemaining(data, errors, remainingKeys)
}

View file

@ -4,7 +4,6 @@ import {
auditEmptyToNull, auditEmptyToNull,
auditFunction, auditFunction,
auditHttpUrl, auditHttpUrl,
auditInteger,
auditNullish, auditNullish,
auditNumber, auditNumber,
auditOptions, auditOptions,
@ -17,11 +16,13 @@ import {
import { import {
allJorfTexteVersionLienNatures, allJorfTexteVersionLienNatures,
allJorfTexteVersionLienTypes, allJorfTexteVersionLienTypes,
allJorfTexteVersionNatures, allJorfTexteNatures,
allJorfTexteVersionOrigines, allJorfTexteOrigines,
allSens, allSens,
} from "$lib/legal" } from "$lib/legal"
import { auditMetaTexteChronicle } from "./texte"
export const jorfTexteVersionStats: { export const jorfTexteVersionStats: {
countByLienNature: { [nature: string]: number } countByLienNature: { [nature: string]: number }
countByLienType: { [type: string]: number } countByLienType: { [type: string]: number }
@ -548,7 +549,7 @@ function auditMetaCommun(
// (jorfTexteVersionStats.countByNature[nature] ?? 0) + 1 // (jorfTexteVersionStats.countByNature[nature] ?? 0) + 1
// return nature // return nature
// }), // }),
auditOptions(allJorfTexteVersionNatures), auditOptions(allJorfTexteNatures),
) )
audit.attribute( audit.attribute(
data, data,
@ -563,7 +564,7 @@ function auditMetaCommun(
// (jorfTexteVersionStats.countByOrigine[origine] ?? 0) + 1 // (jorfTexteVersionStats.countByOrigine[origine] ?? 0) + 1
// return origine // return origine
// }), // }),
auditOptions(allJorfTexteVersionOrigines), auditOptions(allJorfTexteOrigines),
auditRequire, auditRequire,
) )
@ -604,89 +605,6 @@ function auditMetaSpec(audit: Audit, dataUnknown: unknown): [unknown, unknown] {
return audit.reduceRemaining(data, errors, remainingKeys) return audit.reduceRemaining(data, errors, remainingKeys)
} }
function auditMetaTexteChronicle(
audit: Audit,
dataUnknown: unknown,
): [unknown, unknown] {
if (dataUnknown == null) {
return [dataUnknown, null]
}
if (typeof dataUnknown !== "object") {
return audit.unexpectedType(dataUnknown, "object")
}
const data = { ...dataUnknown }
const errors: { [key: string]: unknown } = {}
const remainingKeys = new Set(Object.keys(data))
for (const key of ["CID"]) {
audit.attribute(
data,
key,
true,
errors,
remainingKeys,
auditTrimString,
auditEmptyToNull,
auditRequire,
)
}
for (const key of ["DATE_PUBLI", "DATE_TEXTE"]) {
audit.attribute(
data,
key,
true,
errors,
remainingKeys,
auditFunction((date) => date.replace(/^11992-12-27$/, "1992-12-27")),
auditDateIso8601String,
auditRequire,
)
}
for (const key of ["NOR", "NUM"]) {
audit.attribute(
data,
key,
true,
errors,
remainingKeys,
auditSwitch(
[auditNumber, auditFunction((num) => num.toString())],
[auditTrimString, auditEmptyToNull],
),
)
}
for (const key of [
"NUM_PARUTION",
"NUM_SEQUENCE",
"PAGE_DEB_PUBLI",
"PAGE_FIN_PUBLI",
]) {
audit.attribute(
data,
key,
true,
errors,
remainingKeys,
auditSwitch(
[auditNumber, auditInteger],
[auditTrimString, auditEmptyToNull, auditNullish],
),
)
}
audit.attribute(
data,
"ORIGINE_PUBLI",
true,
errors,
remainingKeys,
auditTrimString,
auditEmptyToNull,
)
return audit.reduceRemaining(data, errors, remainingKeys)
}
function auditMetaTexteVersion( function auditMetaTexteVersion(
audit: Audit, audit: Audit,
dataUnknown: unknown, dataUnknown: unknown,

View file

@ -20,10 +20,12 @@ import {
allJorfTextelrLienArtEtats, allJorfTextelrLienArtEtats,
// allJorfTextelrLienArtNatures, // allJorfTextelrLienArtNatures,
allJorfTextelrLienArtOrigines, allJorfTextelrLienArtOrigines,
allJorfTextelrNatures, allJorfTexteNatures,
allJorfTextelrOrigines, allJorfTexteOrigines,
} from "$lib/legal" } from "$lib/legal"
import { auditMetaTexteChronicle } from "./texte"
export const jorfTextelrStats: { export const jorfTextelrStats: {
countByEtat: { [etat: string]: number } countByEtat: { [etat: string]: number }
countByLienArtEtat: { [etat: string]: number } countByLienArtEtat: { [etat: string]: number }
@ -427,7 +429,7 @@ function auditMetaCommun(
// (jorfTextelrStats.countByNature[nature] ?? 0) + 1 // (jorfTextelrStats.countByNature[nature] ?? 0) + 1
// return nature // return nature
// }), // }),
auditOptions(allJorfTextelrNatures), auditOptions(allJorfTexteNatures),
) )
audit.attribute( audit.attribute(
data, data,
@ -442,7 +444,7 @@ function auditMetaCommun(
// (jorfTextelrStats.countByOrigine[origine] ?? 0) + 1 // (jorfTextelrStats.countByOrigine[origine] ?? 0) + 1
// return origine // return origine
// }), // }),
auditOptions(allJorfTextelrOrigines), auditOptions(allJorfTexteOrigines),
auditRequire, auditRequire,
) )
@ -474,89 +476,6 @@ function auditMetaSpec(audit: Audit, dataUnknown: unknown): [unknown, unknown] {
return audit.reduceRemaining(data, errors, remainingKeys) return audit.reduceRemaining(data, errors, remainingKeys)
} }
function auditMetaTexteChronicle(
audit: Audit,
dataUnknown: unknown,
): [unknown, unknown] {
if (dataUnknown == null) {
return [dataUnknown, null]
}
if (typeof dataUnknown !== "object") {
return audit.unexpectedType(dataUnknown, "object")
}
const data = { ...dataUnknown }
const errors: { [key: string]: unknown } = {}
const remainingKeys = new Set(Object.keys(data))
for (const key of ["CID"]) {
audit.attribute(
data,
key,
true,
errors,
remainingKeys,
auditTrimString,
auditEmptyToNull,
auditRequire,
)
}
for (const key of ["DATE_PUBLI", "DATE_TEXTE"]) {
audit.attribute(
data,
key,
true,
errors,
remainingKeys,
auditFunction((date) => date.replace(/^11992-12-27$/, "1992-12-27")),
auditDateIso8601String,
auditRequire,
)
}
for (const key of ["NOR", "NUM"]) {
audit.attribute(
data,
key,
true,
errors,
remainingKeys,
auditSwitch(
[auditNumber, auditFunction((num) => num.toString())],
[auditTrimString, auditEmptyToNull],
),
)
}
for (const key of [
"NUM_PARUTION",
"NUM_SEQUENCE",
"PAGE_DEB_PUBLI",
"PAGE_FIN_PUBLI",
]) {
audit.attribute(
data,
key,
true,
errors,
remainingKeys,
auditSwitch(
[auditNumber, auditInteger],
[auditTrimString, auditEmptyToNull, auditNullish],
),
)
}
audit.attribute(
data,
"ORIGINE_PUBLI",
true,
errors,
remainingKeys,
auditTrimString,
auditEmptyToNull,
)
return audit.reduceRemaining(data, errors, remainingKeys)
}
function auditStruct(audit: Audit, dataUnknown: unknown): [unknown, unknown] { function auditStruct(audit: Audit, dataUnknown: unknown): [unknown, unknown] {
if (dataUnknown == null) { if (dataUnknown == null) {
return [dataUnknown, null] return [dataUnknown, null]

View file

@ -0,0 +1,136 @@
import {
auditCleanArray,
auditDateIso8601String,
auditEmptyToNull,
auditFunction,
auditInteger,
auditNullish,
auditNumber,
auditRequire,
auditSwitch,
auditTrimString,
type Audit,
} from "@auditors/core"
export function auditMetaTexteChronicle(
audit: Audit,
dataUnknown: unknown,
): [unknown, unknown] {
if (dataUnknown == null) {
return [dataUnknown, null]
}
if (typeof dataUnknown !== "object") {
return audit.unexpectedType(dataUnknown, "object")
}
const data = { ...dataUnknown }
const errors: { [key: string]: unknown } = {}
const remainingKeys = new Set(Object.keys(data))
for (const key of ["CID"]) {
audit.attribute(
data,
key,
true,
errors,
remainingKeys,
auditTrimString,
auditEmptyToNull,
auditRequire,
)
}
for (const key of ["DATE_PUBLI", "DATE_TEXTE", "DERNIERE_MODIFICATION"]) {
audit.attribute(
data,
key,
true,
errors,
remainingKeys,
auditFunction((date) => date.replace(/^11992-12-27$/, "1992-12-27")),
auditDateIso8601String,
auditRequire,
)
}
for (const key of ["NOR", "NUM"]) {
audit.attribute(
data,
key,
true,
errors,
remainingKeys,
auditSwitch(
[auditNumber, auditFunction((num) => num.toString())],
[auditTrimString, auditEmptyToNull],
),
)
}
for (const key of [
"NUM_PARUTION",
"NUM_SEQUENCE",
"PAGE_DEB_PUBLI",
"PAGE_FIN_PUBLI",
]) {
audit.attribute(
data,
key,
true,
errors,
remainingKeys,
auditSwitch(
[auditNumber, auditInteger],
[auditTrimString, auditEmptyToNull, auditNullish],
),
)
}
audit.attribute(
data,
"ORIGINE_PUBLI",
true,
errors,
remainingKeys,
auditTrimString,
auditEmptyToNull,
)
audit.attribute(
data,
"VERSIONS_A_VENIR",
true,
errors,
remainingKeys,
auditSwitch(
[auditTrimString, auditEmptyToNull, auditNullish],
auditVersionsAVenir,
),
)
return audit.reduceRemaining(data, errors, remainingKeys)
}
function auditVersionsAVenir(
audit: Audit,
dataUnknown: unknown,
): [unknown, unknown] {
if (dataUnknown == null) {
return [dataUnknown, null]
}
if (typeof dataUnknown !== "object") {
return audit.unexpectedType(dataUnknown, "object")
}
const data = { ...dataUnknown }
const errors: { [key: string]: unknown } = {}
const remainingKeys = new Set(Object.keys(data))
audit.attribute(
data,
"VERSION_A_VENIR",
true,
errors,
remainingKeys,
auditFunction((date) => (Array.isArray(date) ? date : [date])),
auditCleanArray(auditDateIso8601String, auditRequire),
auditRequire,
)
return audit.reduceRemaining(data, errors, remainingKeys)
}

View file

@ -4,7 +4,6 @@ import {
auditEmptyToNull, auditEmptyToNull,
auditFunction, auditFunction,
auditHttpUrl, auditHttpUrl,
auditInteger,
auditNullish, auditNullish,
auditNumber, auditNumber,
auditOptions, auditOptions,
@ -15,13 +14,14 @@ import {
} from "@auditors/core" } from "@auditors/core"
import { import {
allLegiTexteVersionEtats, allLegiTexteEtats,
allLegiTexteVersionLienNatures, allLegiTexteVersionLienNatures,
allLegiTexteVersionLienTypes, allLegiTexteVersionLienTypes,
allLegiTexteVersionNatures, allLegiTexteNatures,
allLegiTexteVersionOrigines, allLegiTexteOrigines,
allSens, allSens,
} from "$lib/legal" } from "$lib/legal"
import { auditMetaTexteChronicle } from "./texte"
export const legiTexteVersionStats: { export const legiTexteVersionStats: {
countByEtat: { [etat: string]: number } countByEtat: { [etat: string]: number }
@ -415,7 +415,7 @@ function auditMetaCommun(
// (legiTexteVersionStats.countByNature[nature] ?? 0) + 1 // (legiTexteVersionStats.countByNature[nature] ?? 0) + 1
// return nature // return nature
// }), // }),
auditOptions(allLegiTexteVersionNatures), auditOptions(allLegiTexteNatures),
) )
audit.attribute( audit.attribute(
data, data,
@ -430,7 +430,7 @@ function auditMetaCommun(
// (legiTexteVersionStats.countByOrigine[origine] ?? 0) + 1 // (legiTexteVersionStats.countByOrigine[origine] ?? 0) + 1
// return origine // return origine
// }), // }),
auditOptions(allLegiTexteVersionOrigines), auditOptions(allLegiTexteOrigines),
auditRequire, auditRequire,
) )
@ -471,100 +471,6 @@ function auditMetaSpec(audit: Audit, dataUnknown: unknown): [unknown, unknown] {
return audit.reduceRemaining(data, errors, remainingKeys) return audit.reduceRemaining(data, errors, remainingKeys)
} }
function auditMetaTexteChronicle(
audit: Audit,
dataUnknown: unknown,
): [unknown, unknown] {
if (dataUnknown == null) {
return [dataUnknown, null]
}
if (typeof dataUnknown !== "object") {
return audit.unexpectedType(dataUnknown, "object")
}
const data = { ...dataUnknown }
const errors: { [key: string]: unknown } = {}
const remainingKeys = new Set(Object.keys(data))
for (const key of ["CID"]) {
audit.attribute(
data,
key,
true,
errors,
remainingKeys,
auditTrimString,
auditEmptyToNull,
auditRequire,
)
}
for (const key of ["DATE_PUBLI", "DATE_TEXTE", "DERNIERE_MODIFICATION"]) {
audit.attribute(
data,
key,
true,
errors,
remainingKeys,
auditFunction((date) => date.replace(/^11992-12-27$/, "1992-12-27")),
auditDateIso8601String,
auditRequire,
)
}
for (const key of ["NOR", "NUM"]) {
audit.attribute(
data,
key,
true,
errors,
remainingKeys,
auditSwitch(
[auditNumber, auditFunction((num) => num.toString())],
[auditTrimString, auditEmptyToNull],
),
)
}
for (const key of [
"NUM_PARUTION",
"NUM_SEQUENCE",
"PAGE_DEB_PUBLI",
"PAGE_FIN_PUBLI",
]) {
audit.attribute(
data,
key,
true,
errors,
remainingKeys,
auditSwitch(
[auditNumber, auditInteger],
[auditTrimString, auditEmptyToNull, auditNullish],
),
)
}
audit.attribute(
data,
"ORIGINE_PUBLI",
true,
errors,
remainingKeys,
auditTrimString,
auditEmptyToNull,
)
audit.attribute(
data,
"VERSIONS_A_VENIR",
true,
errors,
remainingKeys,
auditSwitch(
[auditTrimString, auditEmptyToNull, auditNullish],
auditVersionsAVenir,
),
)
return audit.reduceRemaining(data, errors, remainingKeys)
}
function auditMetaTexteVersion( function auditMetaTexteVersion(
audit: Audit, audit: Audit,
dataUnknown: unknown, dataUnknown: unknown,
@ -616,7 +522,7 @@ function auditMetaTexteVersion(
// (legiTexteVersionStats.countByEtat[etat] ?? 0) + 1 // (legiTexteVersionStats.countByEtat[etat] ?? 0) + 1
// return etat // return etat
// }), // }),
auditOptions(allLegiTexteVersionEtats), auditOptions(allLegiTexteEtats),
) )
audit.attribute( audit.attribute(
data, data,
@ -766,32 +672,3 @@ function auditVisas(audit: Audit, dataUnknown: unknown): [unknown, unknown] {
return audit.reduceRemaining(data, errors, remainingKeys) return audit.reduceRemaining(data, errors, remainingKeys)
} }
function auditVersionsAVenir(
audit: Audit,
dataUnknown: unknown,
): [unknown, unknown] {
if (dataUnknown == null) {
return [dataUnknown, null]
}
if (typeof dataUnknown !== "object") {
return audit.unexpectedType(dataUnknown, "object")
}
const data = { ...dataUnknown }
const errors: { [key: string]: unknown } = {}
const remainingKeys = new Set(Object.keys(data))
audit.attribute(
data,
"VERSION_A_VENIR",
true,
errors,
remainingKeys,
auditFunction((date) => (Array.isArray(date) ? date : [date])),
auditCleanArray(auditDateIso8601String, auditRequire),
auditRequire,
)
return audit.reduceRemaining(data, errors, remainingKeys)
}

View file

@ -15,14 +15,16 @@ import {
} from "@auditors/core" } from "@auditors/core"
import { import {
allLegiTextelrEtats, allLegiTexteEtats,
allLegiTextelrLienArtEtats, allLegiTextelrLienArtEtats,
allLegiTextelrLienArtOrigines, allLegiTextelrLienArtOrigines,
allLegiTextelrLienSectionTaEtats, allLegiTextelrLienSectionTaEtats,
allLegiTextelrNatures, allLegiTexteNatures,
allLegiTextelrOrigines, allLegiTexteOrigines,
} from "$lib/legal" } from "$lib/legal"
import { auditMetaTexteChronicle } from "./texte"
export const legiTextelrStats: { export const legiTextelrStats: {
countByEtat: { [etat: string]: number } countByEtat: { [etat: string]: number }
countByLienArtEtat: { [etat: string]: number } countByLienArtEtat: { [etat: string]: number }
@ -390,7 +392,7 @@ function auditMetaCommun(
// (legiTextelrStats.countByNature[nature] ?? 0) + 1 // (legiTextelrStats.countByNature[nature] ?? 0) + 1
// return nature // return nature
// }), // }),
auditOptions(allLegiTextelrNatures), auditOptions(allLegiTexteNatures),
) )
audit.attribute( audit.attribute(
data, data,
@ -405,7 +407,7 @@ function auditMetaCommun(
// (legiTextelrStats.countByOrigine[origine] ?? 0) + 1 // (legiTextelrStats.countByOrigine[origine] ?? 0) + 1
// return origine // return origine
// }), // }),
auditOptions(allLegiTextelrOrigines), auditOptions(allLegiTexteOrigines),
auditRequire, auditRequire,
) )
@ -437,100 +439,6 @@ function auditMetaSpec(audit: Audit, dataUnknown: unknown): [unknown, unknown] {
return audit.reduceRemaining(data, errors, remainingKeys) return audit.reduceRemaining(data, errors, remainingKeys)
} }
function auditMetaTexteChronicle(
audit: Audit,
dataUnknown: unknown,
): [unknown, unknown] {
if (dataUnknown == null) {
return [dataUnknown, null]
}
if (typeof dataUnknown !== "object") {
return audit.unexpectedType(dataUnknown, "object")
}
const data = { ...dataUnknown }
const errors: { [key: string]: unknown } = {}
const remainingKeys = new Set(Object.keys(data))
for (const key of ["CID"]) {
audit.attribute(
data,
key,
true,
errors,
remainingKeys,
auditTrimString,
auditEmptyToNull,
auditRequire,
)
}
for (const key of ["DATE_PUBLI", "DATE_TEXTE", "DERNIERE_MODIFICATION"]) {
audit.attribute(
data,
key,
true,
errors,
remainingKeys,
auditFunction((date) => date.replace(/^11992-12-27$/, "1992-12-27")),
auditDateIso8601String,
auditRequire,
)
}
for (const key of ["NOR", "NUM"]) {
audit.attribute(
data,
key,
true,
errors,
remainingKeys,
auditSwitch(
[auditNumber, auditFunction((num) => num.toString())],
[auditTrimString, auditEmptyToNull],
),
)
}
for (const key of [
"NUM_PARUTION",
"NUM_SEQUENCE",
"PAGE_DEB_PUBLI",
"PAGE_FIN_PUBLI",
]) {
audit.attribute(
data,
key,
true,
errors,
remainingKeys,
auditSwitch(
[auditNumber, auditInteger],
[auditTrimString, auditEmptyToNull, auditNullish],
),
)
}
audit.attribute(
data,
"ORIGINE_PUBLI",
true,
errors,
remainingKeys,
auditTrimString,
auditEmptyToNull,
)
audit.attribute(
data,
"VERSIONS_A_VENIR",
true,
errors,
remainingKeys,
auditSwitch(
[auditTrimString, auditEmptyToNull, auditNullish],
auditVersionsAVenir,
),
)
return audit.reduceRemaining(data, errors, remainingKeys)
}
function auditStruct(audit: Audit, dataUnknown: unknown): [unknown, unknown] { function auditStruct(audit: Audit, dataUnknown: unknown): [unknown, unknown] {
if (dataUnknown == null) { if (dataUnknown == null) {
return [dataUnknown, null] return [dataUnknown, null]
@ -590,7 +498,7 @@ function auditVersion(audit: Audit, dataUnknown: unknown): [unknown, unknown] {
// (legiTextelrStats.countByEtat[etat] ?? 0) + 1 // (legiTextelrStats.countByEtat[etat] ?? 0) + 1
// return etat // return etat
// }), // }),
auditOptions(allLegiTextelrEtats), auditOptions(allLegiTexteEtats),
) )
audit.attribute( audit.attribute(
data, data,
@ -630,32 +538,3 @@ function auditVersions(audit: Audit, dataUnknown: unknown): [unknown, unknown] {
return audit.reduceRemaining(data, errors, remainingKeys) return audit.reduceRemaining(data, errors, remainingKeys)
} }
function auditVersionsAVenir(
audit: Audit,
dataUnknown: unknown,
): [unknown, unknown] {
if (dataUnknown == null) {
return [dataUnknown, null]
}
if (typeof dataUnknown !== "object") {
return audit.unexpectedType(dataUnknown, "object")
}
const data = { ...dataUnknown }
const errors: { [key: string]: unknown } = {}
const remainingKeys = new Set(Object.keys(data))
audit.attribute(
data,
"VERSION_A_VENIR",
true,
errors,
remainingKeys,
auditFunction((date) => (Array.isArray(date) ? date : [date])),
auditCleanArray(auditDateIso8601String, auditRequire),
auditRequire,
)
return audit.reduceRemaining(data, errors, remainingKeys)
}

View file

@ -26,12 +26,10 @@ export {
allJorfTextelrLienArtEtats, allJorfTextelrLienArtEtats,
allJorfTextelrLienArtNatures, allJorfTextelrLienArtNatures,
allJorfTextelrLienArtOrigines, allJorfTextelrLienArtOrigines,
allJorfTextelrNatures, allJorfTexteNatures,
allJorfTextelrOrigines, allJorfTexteOrigines,
allJorfTexteVersionLienNatures, allJorfTexteVersionLienNatures,
allJorfTexteVersionLienTypes, allJorfTexteVersionLienTypes,
allJorfTexteVersionNatures,
allJorfTexteVersionOrigines,
allLegiArticleEtats, allLegiArticleEtats,
allLegiArticleLienArticleOrigines, allLegiArticleLienArticleOrigines,
allLegiArticleLienNatures, allLegiArticleLienNatures,
@ -43,17 +41,14 @@ export {
allLegiSectionTaLienArtOrigines, allLegiSectionTaLienArtOrigines,
allLegiSectionTaLienSectionTaEtats, allLegiSectionTaLienSectionTaEtats,
allLegiSectionTaTexteNatures, allLegiSectionTaTexteNatures,
allLegiTextelrEtats, allLegiTexteEtats,
allLegiTextelrLienArtEtats, allLegiTextelrLienArtEtats,
allLegiTextelrLienArtOrigines, allLegiTextelrLienArtOrigines,
allLegiTextelrLienSectionTaEtats, allLegiTextelrLienSectionTaEtats,
allLegiTextelrNatures, allLegiTexteNatures,
allLegiTextelrOrigines, allLegiTexteOrigines,
allLegiTexteVersionEtats,
allLegiTexteVersionLienNatures, allLegiTexteVersionLienNatures,
allLegiTexteVersionLienTypes, allLegiTexteVersionLienTypes,
allLegiTexteVersionNatures,
allLegiTexteVersionOrigines,
allSens, allSens,
type DossierLegislatif, type DossierLegislatif,
type DossierLegislatifType, type DossierLegislatifType,
@ -69,6 +64,7 @@ export {
type JorfArticleOrigine, type JorfArticleOrigine,
type JorfArticleTexteNature, type JorfArticleTexteNature,
type JorfArticleType, type JorfArticleType,
type JorfMetaTexteChronicle,
type JorfSectionTa, type JorfSectionTa,
type JorfSectionTaLienArtEtat, type JorfSectionTaLienArtEtat,
type JorfSectionTaTexteNature, type JorfSectionTaTexteNature,
@ -77,14 +73,12 @@ export {
type JorfTextelrLienArtEtat, type JorfTextelrLienArtEtat,
type JorfTextelrLienArtNature, type JorfTextelrLienArtNature,
type JorfTextelrLienArtOrigine, type JorfTextelrLienArtOrigine,
type JorfTextelrNature, type JorfTexteNature,
type JorfTextelrOrigine, type JorfTexteOrigine,
type JorfTexteVersion, type JorfTexteVersion,
type JorfTexteVersionLien, type JorfTexteVersionLien,
type JorfTexteVersionLienNature, type JorfTexteVersionLienNature,
type JorfTexteVersionLienType, type JorfTexteVersionLienType,
type JorfTexteVersionNature,
type JorfTexteVersionOrigine,
type LegiArticle, type LegiArticle,
type LegiArticleEtat, type LegiArticleEtat,
type LegiArticleLien, type LegiArticleLien,
@ -94,23 +88,21 @@ export {
type LegiArticleOrigine, type LegiArticleOrigine,
type LegiArticleTexteNature, type LegiArticleTexteNature,
type LegiArticleType, type LegiArticleType,
type LegiMetaTexteChronicle,
type LegiSectionTa, type LegiSectionTa,
type LegiSectionTaLienArtEtat, type LegiSectionTaLienArtEtat,
type LegiSectionTaTexteNature, type LegiSectionTaTexteNature,
type LegiTextelr, type LegiTextelr,
type LegiTextelrEtat, type LegiTexteEtat,
type LegiTextelrLienArtEtat, type LegiTextelrLienArtEtat,
type LegiTextelrLienArtOrigine, type LegiTextelrLienArtOrigine,
type LegiTextelrLienSectionTaEtat, type LegiTextelrLienSectionTaEtat,
type LegiTextelrNature, type LegiTexteNature,
type LegiTextelrOrigine, type LegiTexteOrigine,
type LegiTexteVersion, type LegiTexteVersion,
type LegiTexteVersionEtat,
type LegiTexteVersionLien, type LegiTexteVersionLien,
type LegiTexteVersionLienNature, type LegiTexteVersionLienNature,
type LegiTexteVersionLienType, type LegiTexteVersionLienType,
type LegiTexteVersionNature,
type LegiTexteVersionOrigine,
type Sens, type Sens,
} from "./legal" } from "./legal"

View file

@ -27,12 +27,10 @@ export {
allJorfTextelrLienArtEtats, allJorfTextelrLienArtEtats,
allJorfTextelrLienArtNatures, allJorfTextelrLienArtNatures,
allJorfTextelrLienArtOrigines, allJorfTextelrLienArtOrigines,
allJorfTextelrNatures, allJorfTexteNatures,
allJorfTextelrOrigines, allJorfTexteOrigines,
allJorfTexteVersionLienNatures, allJorfTexteVersionLienNatures,
allJorfTexteVersionLienTypes, allJorfTexteVersionLienTypes,
allJorfTexteVersionNatures,
allJorfTexteVersionOrigines,
type Jo, type Jo,
type JoNature, type JoNature,
type JoOrigine, type JoOrigine,
@ -45,6 +43,7 @@ export {
type JorfArticleTexteNature, type JorfArticleTexteNature,
type JorfArticleType, type JorfArticleType,
type JorfSectionTa, type JorfSectionTa,
type JorfMetaTexteChronicle,
type JorfSectionTaLienArt, type JorfSectionTaLienArt,
type JorfSectionTaLienArtEtat, type JorfSectionTaLienArtEtat,
type JorfSectionTaLienSectionTa, type JorfSectionTaLienSectionTa,
@ -58,15 +57,13 @@ export {
type JorfTextelrLienArtNature, type JorfTextelrLienArtNature,
type JorfTextelrLienArtOrigine, type JorfTextelrLienArtOrigine,
type JorfTextelrLienSectionTa, type JorfTextelrLienSectionTa,
type JorfTextelrNature, type JorfTexteNature,
type JorfTextelrOrigine, type JorfTexteOrigine,
type JorfTextelrStructure, type JorfTextelrStructure,
type JorfTexteVersion, type JorfTexteVersion,
type JorfTexteVersionLien, type JorfTexteVersionLien,
type JorfTexteVersionLienNature, type JorfTexteVersionLienNature,
type JorfTexteVersionLienType, type JorfTexteVersionLienType,
type JorfTexteVersionNature,
type JorfTexteVersionOrigine,
} from "./jorf" } from "./jorf"
export { export {
allLegiArticleEtats, allLegiArticleEtats,
@ -81,17 +78,14 @@ export {
allLegiSectionTaLienArtOrigines, allLegiSectionTaLienArtOrigines,
allLegiSectionTaLienSectionTaEtats, allLegiSectionTaLienSectionTaEtats,
allLegiSectionTaTexteNatures, allLegiSectionTaTexteNatures,
allLegiTextelrEtats, allLegiTexteEtats,
allLegiTextelrLienArtEtats, allLegiTextelrLienArtEtats,
allLegiTextelrLienArtOrigines, allLegiTextelrLienArtOrigines,
allLegiTextelrLienSectionTaEtats, allLegiTextelrLienSectionTaEtats,
allLegiTextelrNatures, allLegiTexteNatures,
allLegiTextelrOrigines, allLegiTexteOrigines,
allLegiTexteVersionEtats,
allLegiTexteVersionLienNatures, allLegiTexteVersionLienNatures,
allLegiTexteVersionLienTypes, allLegiTexteVersionLienTypes,
allLegiTexteVersionNatures,
allLegiTexteVersionOrigines,
type LegiArticle, type LegiArticle,
type LegiArticleEtat, type LegiArticleEtat,
type LegiArticleLien, type LegiArticleLien,
@ -103,6 +97,7 @@ export {
type LegiArticleOrigine, type LegiArticleOrigine,
type LegiArticleTexteNature, type LegiArticleTexteNature,
type LegiArticleType, type LegiArticleType,
type LegiMetaTexteChronicle,
type LegiSectionTa, type LegiSectionTa,
type LegiSectionTaLienArt, type LegiSectionTaLienArt,
type LegiSectionTaLienArtEtat, type LegiSectionTaLienArtEtat,
@ -111,22 +106,19 @@ export {
type LegiSectionTaStructure, type LegiSectionTaStructure,
type LegiSectionTaTexteNature, type LegiSectionTaTexteNature,
type LegiTextelr, type LegiTextelr,
type LegiTextelrEtat, type LegiTexteEtat,
type LegiTextelrLienArt, type LegiTextelrLienArt,
type LegiTextelrLienArtEtat, type LegiTextelrLienArtEtat,
type LegiTextelrLienArtOrigine, type LegiTextelrLienArtOrigine,
type LegiTextelrLienSectionTa, type LegiTextelrLienSectionTa,
type LegiTextelrLienSectionTaEtat, type LegiTextelrLienSectionTaEtat,
type LegiTextelrNature, type LegiTexteNature,
type LegiTextelrOrigine, type LegiTexteOrigine,
type LegiTextelrStructure, type LegiTextelrStructure,
type LegiTexteVersion, type LegiTexteVersion,
type LegiTexteVersionEtat,
type LegiTexteVersionLien, type LegiTexteVersionLien,
type LegiTexteVersionLienNature, type LegiTexteVersionLienNature,
type LegiTexteVersionLienType, type LegiTexteVersionLienType,
type LegiTexteVersionNature,
type LegiTexteVersionOrigine,
} from "./legi" } from "./legi"
export { allSens, type Sens } from "./shared" export { allSens, type Sens } from "./shared"

View file

@ -119,6 +119,19 @@ export interface JorfArticleTm {
export type JorfArticleType = (typeof allJorfArticleTypes)[number] export type JorfArticleType = (typeof allJorfArticleTypes)[number]
export interface JorfMetaTexteChronicle {
CID: string
DATE_PUBLI: string
DATE_TEXTE: string
NOR?: string
NUM?: string
NUM_PARUTION?: number
NUM_SEQUENCE?: number
ORIGINE_PUBLI?: string
PAGE_DEB_PUBLI?: number
PAGE_FIN_PUBLI?: number
}
// Section Texte Article // Section Texte Article
// Correspond à un niveau d'une table des matières // Correspond à un niveau d'une table des matières
export interface JorfSectionTa { export interface JorfSectionTa {
@ -207,23 +220,12 @@ export interface JorfTextelr {
} }
ID: string ID: string
ID_ELI?: string ID_ELI?: string
NATURE?: JorfTextelrNature NATURE?: JorfTexteNature
ORIGINE: JorfTextelrOrigine ORIGINE: JorfTexteOrigine
URL: string URL: string
} }
META_SPEC: { META_SPEC: {
META_TEXTE_CHRONICLE: { META_TEXTE_CHRONICLE: JorfMetaTexteChronicle
CID: string
DATE_PUBLI: string
DATE_TEXTE: string
NOR?: string
NUM?: string
NUM_PARUTION?: number
NUM_SEQUENCE?: number
ORIGINE_PUBLI?: string
PAGE_DEB_PUBLI?: number
PAGE_FIN_PUBLI?: number
}
} }
} }
STRUCT?: JorfTextelrStructure STRUCT?: JorfTextelrStructure
@ -260,9 +262,9 @@ export type JorfTextelrLienArtNature =
export type JorfTextelrLienArtOrigine = export type JorfTextelrLienArtOrigine =
(typeof allJorfTextelrLienArtOrigines)[number] (typeof allJorfTextelrLienArtOrigines)[number]
export type JorfTextelrNature = (typeof allJorfTextelrNatures)[number] export type JorfTexteNature = (typeof allJorfTexteNatures)[number]
export type JorfTextelrOrigine = (typeof allJorfTextelrOrigines)[number] export type JorfTexteOrigine = (typeof allJorfTexteOrigines)[number]
export interface JorfTextelrLienSectionTa { export interface JorfTextelrLienSectionTa {
"#text"?: string "#text"?: string
@ -302,23 +304,12 @@ export interface JorfTexteVersion {
} }
ID: string ID: string
ID_ELI?: string ID_ELI?: string
NATURE?: JorfTexteVersionNature NATURE?: JorfTexteNature
ORIGINE: JorfTexteVersionOrigine ORIGINE: JorfTexteOrigine
URL: string URL: string
} }
META_SPEC: { META_SPEC: {
META_TEXTE_CHRONICLE: { META_TEXTE_CHRONICLE: JorfMetaTexteChronicle
CID: string
DATE_PUBLI: string
DATE_TEXTE: string
NOR?: string
NUM?: string
NUM_PARUTION?: number
NUM_SEQUENCE?: number
ORIGINE_PUBLI?: string
PAGE_DEB_PUBLI?: number
PAGE_FIN_PUBLI?: number
}
META_TEXTE_VERSION: { META_TEXTE_VERSION: {
AUTORITE?: string AUTORITE?: string
DATE_DEBUT: string DATE_DEBUT: string
@ -376,11 +367,6 @@ export type JorfTexteVersionLienNature =
export type JorfTexteVersionLienType = export type JorfTexteVersionLienType =
(typeof allJorfTexteVersionLienTypes)[number] (typeof allJorfTexteVersionLienTypes)[number]
export type JorfTexteVersionNature = (typeof allJorfTexteVersionNatures)[number]
export type JorfTexteVersionOrigine =
(typeof allJorfTexteVersionOrigines)[number]
/// Table des matières (TM) d'un Journal officiel /// Table des matières (TM) d'un Journal officiel
export interface JoTm { export interface JoTm {
"@niv": number "@niv": number
@ -546,7 +532,7 @@ export const allJorfTextelrLienArtNatures = [] as const
export const allJorfTextelrLienArtOrigines = ["JORF"] as const export const allJorfTextelrLienArtOrigines = ["JORF"] as const
export const allJorfTextelrNatures = [ export const allJorfTexteNatures = [
"ABROGATION", // 8 "ABROGATION", // 8
"Accord multilatéral", // 1 "Accord multilatéral", // 1
"ACCORD_FONCTION_PUBLIQUE", // 4 "ACCORD_FONCTION_PUBLIQUE", // 4
@ -637,7 +623,7 @@ export const allJorfTextelrNatures = [
"VOCABULAIRE", // 169 "VOCABULAIRE", // 169
] as const ] as const
export const allJorfTextelrOrigines = ["JORF"] as const export const allJorfTexteOrigines = ["JORF"] as const
export const allJorfTexteVersionLienNatures = [ export const allJorfTexteVersionLienNatures = [
"ABROGATION", // 5 "ABROGATION", // 5
@ -824,96 +810,3 @@ export const allJorfTexteVersionLienTypes = [
"TXT_ASSOCIE", // 11821 "TXT_ASSOCIE", // 11821
"TXT_SOURCE", // 81350 "TXT_SOURCE", // 81350
] as const ] as const
export const allJorfTexteVersionNatures = [
"ABROGATION", // 8
"Accord multilatéral", // 1
"ACCORD_FONCTION_PUBLIQUE", // 4
"ACCORD", // 46
"ACTE", // 3
"ADDITIF", // 131
"ANNEXE", // 1
"ANNONCES", // 756
"ARRANGEMENT", // 1
"ARRET", // 65
"ARRETE", // 615239
"ARRETEAVIS", // 1
"ARRETEEURO", // 14
"ARRETEURO", // 556
"ATTESTATION", // 1
"AVENANT", // 186
"AVIS", // 97999
"AVISEURO", // 4618
"CANDIDAT", // 2
"CHARTE", // 1
"CIRCULAIRE", // 3532
"CITATION", // 494
"CODE", // 58
"COMMUNIQUE", // 17
"COMPLEMENT", // 2
"COMPOSITION", // 9
"CONSTITUTION", // 4
"CONTRAT", // 2
"CONVENTION", // 151
"DATE", // 1
"DECISION_CC", // 96
"DECISION_EURO", // 550
"DECISION", // 67164
"DECLARATION", // 20
"DECLARATIONEURO", // 18
"DECRET_LOI", // 660
"DECRET", // 209363
"DELEGATION", // 1
"DELIBERATION", // 3993
"DELIBERATIONEURO", // 36
"DEUXIEME", // 5
"DIRECTIVE_EURO", // 4249
"DIRECTIVE", // 13
"DISPOSITIONS", // 1
"ELECTION", // 1
"ELECTIONDUPRESIDENTDELAREPUBLIQU", // 2
"EXEQUATUR", // 174
"INFORMATION", // 106
"INFORMATIONEURO", // 1
"INFORMATIONS_CESE", // 285
"INFORMATIONS_DIVERSES", // 524
"INFORMATIONS_PARLEMENTAIRES", // 6042
"INSTRUCTION", // 158
"INSTRUCTIONEURO", // 524
"LETTRE", // 13
"LETTREEURO", // 15
"LISTE", // 5552
"LOI_CONSTIT", // 12
"LOI_ORGANIQUE", // 105
"LOI_PROGRAMME", // 2
"LOI", // 12859
"MEMOIRE", // 63
"MESSAGE", // 2
"MODIFICATION", // 497
"NOTE", // 3
"OBSERVATION", // 288
"ORDONNANCE", // 3282
"PREMIER", // 1
"PROCLAMATION", // 3
"PROJET", // 3
"PROPOSITION", // 6
"PROTOCOLE", // 16
"PUBLICATION", // 2
"RAPPORT", // 1968
"RECOMMANDATION", // 126
"RECTIFICATIF", // 3
"REGLEMENT", // 902
"REGLEMENTEUROPEEN", // 571
"RELEVE", // 3
"REMISE", // 121
"RESULTATS", // 14479
"SAISINE", // 392
"SENATUS", // 2
"SUSPENSION", // 1
"TABLEAU", // 1092
"TRAITE", // 5
"TROISIEME", // 2
"VOCABULAIRE", // 169
] as const
export const allJorfTexteVersionOrigines = ["JORF"] as const

View file

@ -136,6 +136,23 @@ export interface LegiSectionTa {
TITRE_TA?: string // Titre de la section (peut contenir des sauts de lignes à remplacer par des espaces) TITRE_TA?: string // Titre de la section (peut contenir des sauts de lignes à remplacer par des espaces)
} }
export interface LegiMetaTexteChronicle {
CID: string
DATE_PUBLI: string
DATE_TEXTE: string
DERNIERE_MODIFICATION: string
NOR?: string
NUM?: string
NUM_PARUTION?: number
NUM_SEQUENCE?: number
ORIGINE_PUBLI?: string
PAGE_DEB_PUBLI?: number
PAGE_FIN_PUBLI?: number
VERSIONS_A_VENIR?: {
VERSION_A_VENIR: string[]
}
}
export interface LegiSectionTaLienArt { export interface LegiSectionTaLienArt {
"@debut": string "@debut": string
"@etat"?: LegiSectionTaLienArtEtat "@etat"?: LegiSectionTaLienArtEtat
@ -190,33 +207,18 @@ export interface LegiTextelr {
META_COMMUN: { META_COMMUN: {
ANCIEN_ID?: string ANCIEN_ID?: string
ID: string ID: string
NATURE?: LegiTextelrNature NATURE?: LegiTexteNature
ORIGINE: LegiTextelrOrigine ORIGINE: LegiTexteOrigine
URL: string URL: string
} }
META_SPEC: { META_SPEC: {
META_TEXTE_CHRONICLE: { META_TEXTE_CHRONICLE: LegiMetaTexteChronicle
CID: string
DATE_PUBLI: string
DATE_TEXTE: string
DERNIERE_MODIFICATION: string
NOR?: string
NUM?: string
NUM_PARUTION?: number
NUM_SEQUENCE?: number
ORIGINE_PUBLI?: string
PAGE_DEB_PUBLI?: number
PAGE_FIN_PUBLI?: number
VERSIONS_A_VENIR?: {
VERSION_A_VENIR: string[]
}
}
} }
} }
STRUCT?: LegiTextelrStructure STRUCT?: LegiTextelrStructure
VERSIONS: { VERSIONS: {
VERSION: Array<{ VERSION: Array<{
"@etat"?: LegiTextelrEtat "@etat"?: LegiTexteEtat
LIEN_TXT: { LIEN_TXT: {
"@debut": string "@debut": string
"@fin": string "@fin": string
@ -227,7 +229,7 @@ export interface LegiTextelr {
} }
} }
export type LegiTextelrEtat = (typeof allLegiTextelrEtats)[number] export type LegiTexteEtat = (typeof allLegiTexteEtats)[number]
export interface LegiTextelrLienArt { export interface LegiTextelrLienArt {
"@debut": string "@debut": string
@ -258,9 +260,9 @@ export interface LegiTextelrLienSectionTa {
export type LegiTextelrLienSectionTaEtat = export type LegiTextelrLienSectionTaEtat =
(typeof allLegiTextelrLienSectionTaEtats)[number] (typeof allLegiTextelrLienSectionTaEtats)[number]
export type LegiTextelrNature = (typeof allLegiTextelrNatures)[number] export type LegiTexteNature = (typeof allLegiTexteNatures)[number]
export type LegiTextelrOrigine = (typeof allLegiTextelrOrigines)[number] export type LegiTexteOrigine = (typeof allLegiTexteOrigines)[number]
// Structure du LegiTextelr // Structure du LegiTextelr
// Premier niveau de table des matières // Premier niveau de table des matières
@ -281,32 +283,17 @@ export interface LegiTexteVersion {
} }
ID: string ID: string
ID_ELI?: string ID_ELI?: string
NATURE?: LegiTexteVersionNature NATURE?: LegiTexteNature
ORIGINE: LegiTexteVersionOrigine ORIGINE: LegiTexteOrigine
URL: string URL: string
} }
META_SPEC: { META_SPEC: {
META_TEXTE_CHRONICLE: { META_TEXTE_CHRONICLE: LegiMetaTexteChronicle
CID: string
DATE_PUBLI: string
DATE_TEXTE: string
DERNIERE_MODIFICATION: string
NOR?: string
NUM?: string
NUM_PARUTION?: number
NUM_SEQUENCE?: number
ORIGINE_PUBLI?: string
PAGE_DEB_PUBLI?: number
PAGE_FIN_PUBLI?: number
VERSIONS_A_VENIR?: {
VERSION_A_VENIR: string[]
}
}
META_TEXTE_VERSION: { META_TEXTE_VERSION: {
AUTORITE?: string AUTORITE?: string
DATE_DEBUT?: string DATE_DEBUT?: string
DATE_FIN?: string DATE_FIN?: string
ETAT?: LegiTexteVersionEtat ETAT?: LegiTexteEtat
LIENS?: { LIENS?: {
LIEN: Array<LegiTexteVersionLien> LIEN: Array<LegiTexteVersionLien>
} }
@ -337,8 +324,6 @@ export interface LegiTexteVersion {
} }
} }
export type LegiTexteVersionEtat = (typeof allLegiTexteVersionEtats)[number]
export interface LegiTexteVersionLien { export interface LegiTexteVersionLien {
"#text"?: string "#text"?: string
"@cidtexte"?: string // Present if and only if @id is present "@cidtexte"?: string // Present if and only if @id is present
@ -358,11 +343,6 @@ export type LegiTexteVersionLienNature =
export type LegiTexteVersionLienType = export type LegiTexteVersionLienType =
(typeof allLegiTexteVersionLienTypes)[number] (typeof allLegiTexteVersionLienTypes)[number]
export type LegiTexteVersionNature = (typeof allLegiTexteVersionNatures)[number]
export type LegiTexteVersionOrigine =
(typeof allLegiTexteVersionOrigines)[number]
export const allLegiArticleEtats = [ export const allLegiArticleEtats = [
"ABROGE_DIFF", // 16233 "ABROGE_DIFF", // 16233
"ABROGE", // 341353 "ABROGE", // 341353
@ -521,7 +501,7 @@ export const allLegiSectionTaTexteNatures = [
"ORDONNANCE", // 4639 "ORDONNANCE", // 4639
] as const ] as const
export const allLegiTextelrEtats = [ export const allLegiTexteEtats = [
"ABROGE_DIFF", // 1897 "ABROGE_DIFF", // 1897
"ABROGE", // 24375 "ABROGE", // 24375
"ANNULE", // 210 "ANNULE", // 210
@ -558,11 +538,12 @@ export const allLegiTextelrLienSectionTaEtats = [
"VIGUEUR", // 48481 "VIGUEUR", // 48481
] as const ] as const
export const allLegiTextelrNatures = [ export const allLegiTexteNatures = [
"ACCORD_FONCTION_PUBLIQUE", // 4 "ACCORD_FONCTION_PUBLIQUE", // 4
"ARRETE", // 77686 "ARRETE", // 77686
"AVIS", // 12 "AVIS", // 12
"CODE", // 114 "CODE", // 114
"CIRCULAIRE",
"CONSTITUTION", // 3 "CONSTITUTION", // 3
"CONVENTION", // 1 "CONVENTION", // 1
"DECISION", // 12 "DECISION", // 12
@ -576,18 +557,7 @@ export const allLegiTextelrNatures = [
"ORDONNANCE", // 1520 "ORDONNANCE", // 1520
] as const ] as const
export const allLegiTextelrOrigines = ["LEGI"] as const export const allLegiTexteOrigines = ["LEGI"] as const
export const allLegiTexteVersionEtats = [
"ABROGE_DIFF", // 1712
"ABROGE", // 23360
"ANNULE", // 205
"MODIFIE_MORT_NE", // 36
"MODIFIE", // 3833
"PERIME", // 3601
"VIGUEUR_DIFF", // 2073
"VIGUEUR", // 101189
] as const
export const allLegiTexteVersionLienNatures = [ export const allLegiTexteVersionLienNatures = [
"ACCORD_FONCTION_PUBLIQUE", "ACCORD_FONCTION_PUBLIQUE",
@ -643,23 +613,3 @@ export const allLegiTexteVersionLienTypes = [
"TXT_ASSOCIE", // 4469 "TXT_ASSOCIE", // 4469
"TXT_SOURCE", // 19858 "TXT_SOURCE", // 19858
] as const ] as const
export const allLegiTexteVersionNatures = [
"ACCORD_FONCTION_PUBLIQUE", // 4
"ARRETE", // 77680
"AVIS", // 12
"CODE", // 114
"CONSTITUTION", // 3
"CONVENTION", // 1
"DECISION", // 12
"DECLARATION", // 1
"DECRET_LOI", // 35
"DECRET", // 53030
"DELIBERATION", // 11
"LOI_CONSTIT", // 19
"LOI_ORGANIQUE", // 111
"LOI", // 3457
"ORDONNANCE", // 1520
] as const
export const allLegiTexteVersionOrigines = ["LEGI"] as const