@incubateur-ademe/nosgestesclimat 3.3.3 → 3.3.4

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.
Files changed (2) hide show
  1. package/index.d.ts +9 -3
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Rule, RuleNode, Evaluation, Situation } from 'publicodes'
1
+ import { Evaluation, Rule, RuleNode, Situation } from 'publicodes'
2
2
  // This file is generated on package build
3
3
  import { DottedName } from './dottedNames'
4
4
 
@@ -70,7 +70,14 @@ export type SupportedRegion = Record<string, RegionParams>
70
70
 
71
71
  export type SupportedRegions = Record<RegionCode, SupportedRegion>
72
72
 
73
- export type NGCRule = Rule & {
73
+ export type NGCRule = Omit<
74
+ Rule,
75
+ 'formule' | 'question' | 'références' | 'valeur'
76
+ > & {
77
+ formule?: Rule['formule'] | number
78
+ question?: Rule['question'] | null
79
+ références?: Rule['références'] | string[]
80
+ valeur?: Rule['valeur'] | number
74
81
  abréviation?: string
75
82
  mosaique?: MosaiqueNode
76
83
  type?: string
@@ -78,7 +85,6 @@ export type NGCRule = Rule & {
78
85
  icônes?: string
79
86
  sévérité?: string
80
87
  dottedName?: DottedName
81
- question?: string
82
88
  plus?: boolean
83
89
  aide?: string
84
90
  inactif?: string
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incubateur-ademe/nosgestesclimat",
3
- "version": "3.3.3",
3
+ "version": "3.3.4",
4
4
  "description": "Le modèle de calcul d'empreinte climat individuelle de consommation",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",