@openfisca/json-model
Version:
Library to handle informations extracted in JSON or YAML format from OpenFisca parameters, variables, etc
22 lines (21 loc) • 3.7 kB
TypeScript
export { AstTransformer, AstVisitor, extractFromFormulaAst, openfiscaAstFromFormulaPythonAst, xlsxFormulaFromOpenfiscaAst, type OpenfiscaAstClass, type OpenfiscaAstFormula, type OpenfiscaAstNode, type PythonAstAdd, type PythonAstAssign, type PythonAstAttribute, type PythonAstBinOp, type PythonAstCall, type PythonAstClass, type PythonAstConstant, type PythonAstDel, type PythonAstDelete, type PythonAstFunctionDef, type PythonAstLoad, type PythonAstName, type PythonAstNode, type PythonAstNodeBase, type PythonAstReturn, type PythonAstStore, } from "./ast";
export { auditCustomizationByName, auditDecompositionByName, } from "./auditors/decompositions";
export { auditDate, auditInstant } from "./auditors/periods";
export { auditEditableParameter } from "./auditors/parameters/editable";
export { convertEditableParameterToRaw } from "./auditors/parameters/editable_to_raw";
export { auditRawParameterToEditable } from "./auditors/parameters/raw_to_editable";
export { auditSituation } from "./auditors/situations";
export { auditUnits } from "./auditors/units";
export { auditWaterfall } from "./auditors/waterfalls";
export type { Customization, CustomizationByName, Decomposition, DecompositionByName, DecompositionOptions, DecompositionReference, VariablesCustomization, VariablesOptions, WaterfallCustomization, WaterfallOptions, } from "./decompositions";
export { getRolePersonsIdKey, isAdultRole, isChildRole, iterFlattenedRole, iterSubRole, type Entity, type EntityBase, type EntityByKey, type GroupEntity, type PersonEntity, type Role, type RoleBase, } from "./entities";
export { jsonReplacer, type JsonValue } from "./json";
export type { Metadata, PackageMetadata, ReformMetadata } from "./metadata";
export { accessParameterFromIds, bracketsFromScaleByInstant, improveParameter, isAmountScaleParameter, isRateScaleParameter, isVectorialNodeParameter, iterParameterAncestors, mergeParameters, mergeReferences, newParameterRepositoryUrl, ParameterClass, parameterLastReviewOrChange, parameterWithoutChildren, patchParameter, scaleByInstantFromBrackets, scaleParameterUsesBase, ScaleType, ValueType, walkParameters, type AmountBracket, type AmountBracketAtInstant, type Bracket, type BracketAtInstant, type BracketValueAtInstant, type LinearAverageRateScaleParameter, type MarginalAmountScaleParameter, type MarginalRateScaleParameter, type MaybeBooleanValue, type MaybeNumberValue, type MaybeStringArrayValue, type MaybeStringByStringValue, type NodeParameter, type NumberValue, type OfficialJournalDatesByInstant, type Parameter, type ParameterBase, type ParameterWithAncestors, type RateBracket, type RateBracketAtInstant, type ScaleAtInstant, type ScaleParameter, type SingleAmountScaleParameter, type ValueAtInstant, type ValueParameter, } from "./parameters";
export { dateRegExp, Instant, instantRegExp, Period, sortValueByInstantDescending, type PeriodUnit, } from "./periods";
export type { Reference, ReferencesByInstant } from "./references";
export { getPopulationReservedKeys, type Population, type PopulationWithoutId, type Situation, } from "./situations";
export { getUnitAtDate, getUnitLabel, getUnitShortLabel, labelFromUnit, pluralizationCategories, shortLabelFromUnit, type ChangingUnit, type ConstantUnit, type PluralizationCategory, type Unit, } from "./units";
export { getVariableFormula, getVariableLatestFormulaDate, newFormulaRepositoryUrl, newVariableRepositoryUrl, type Formula, type InputByVariableName, type Percentile, type Variable, type VariableByName, type VariableValue, type VariableValues, } from "./variables";
export { rawParameterFromYaml, unitsFromYaml, yamlFromRawParameter, } from "./yaml";
export type { Waterfall } from "./waterfalls";