cht-conf 6.1.1 → 6.3.0

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ # [6.3.0](https://github.com/medic/cht-conf/compare/v6.2.0...v6.3.0) (2026-04-27)
2
+
3
+
4
+ ### Features
5
+
6
+ * **#10766:** support `collapsed` in contact summary card ([#812](https://github.com/medic/cht-conf/issues/812)) ([8b3f34a](https://github.com/medic/cht-conf/commit/8b3f34a3b58ffbd2c58c0e28f15dbc87e6d1e572)), closes [#10766](https://github.com/medic/cht-conf/issues/10766)
7
+
8
+ # [6.2.0](https://github.com/medic/cht-conf/compare/v6.1.1...v6.2.0) (2026-04-18)
9
+
10
+
11
+ ### Features
12
+
13
+ * **#10240:** allow limit_count_to_goal in target configuration schema ([#800](https://github.com/medic/cht-conf/issues/800)) ([7c6ec4f](https://github.com/medic/cht-conf/commit/7c6ec4fffb1a4721b309e7510b86e8ac9a7e745d)), closes [#10240](https://github.com/medic/cht-conf/issues/10240) [medic/cht-core#10772](https://github.com/medic/cht-core/issues/10772)
14
+
1
15
  ## [6.1.1](https://github.com/medic/cht-conf/compare/v6.1.0...v6.1.1) (2026-04-10)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cht-conf",
3
- "version": "6.1.1",
3
+ "version": "6.3.0",
4
4
  "description": "Configure CHT deployments",
5
5
  "main": "./src/lib/main.js",
6
6
  "engines": {
@@ -122,10 +122,14 @@ function addCard(card, context, r) {
122
122
  card.modifyContext(context, r);
123
123
  }
124
124
 
125
- return {
125
+ const summary = {
126
126
  label: card.label,
127
127
  fields: fields,
128
128
  };
129
+ if (card.collapsed !== undefined) {
130
+ summary.collapsed = card.collapsed;
131
+ }
132
+ return summary;
129
133
  }
130
134
 
131
135
  module.exports = emitter;
@@ -82,6 +82,7 @@ const TargetSchema = joi.array().items(
82
82
  .optional()
83
83
  .error(targetError('idType should be either "report" or "contact" or "function(contact, report)"')),
84
84
  aggregate: joi.boolean().optional(),
85
+ limit_count_to_goal: joi.boolean().optional(),
85
86
  })
86
87
  )
87
88
  .unique('id')
@@ -51,6 +51,7 @@ module.exports = projectDir => {
51
51
  'dhis',
52
52
  'visible',
53
53
  'aggregate',
54
+ 'limit_count_to_goal',
54
55
  ])),
55
56
  };
56
57
  };