@openfn/language-dhis2 3.2.4 → 3.2.6

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/README.md CHANGED
@@ -24,18 +24,12 @@ the main
24
24
  [Adaptor docs](https://docs.openfn.org/adaptors/packages/dhis2-docs#modules)
25
25
  page.
26
26
 
27
- ## Sample State
28
-
29
- ```json
30
- {
31
- "configuration": {
32
- "username": "admin",
33
- "password": "district",
34
- "hostUrl": "https://play.dhis2.org/2.36.6"
35
- },
36
- "data": { "a": 1, "b": 2 }
37
- }
38
- ```
27
+ ### Configuration
28
+
29
+ View all the required and optional properties for `state.configuration` in the
30
+ official
31
+ [configuration-schema](https://docs.openfn.org/adaptors/packages/dhis2-configuration-schema/)
32
+ definition.
39
33
 
40
34
  ## Development
41
35
 
@@ -5,21 +5,30 @@
5
5
  "title": "Username",
6
6
  "type": "string",
7
7
  "description": "Username",
8
- "minLength": 1
8
+ "minLength": 1,
9
+ "examples": [
10
+ "admin"
11
+ ]
9
12
  },
10
13
  "password": {
11
14
  "title": "Password",
12
15
  "type": "string",
13
16
  "description": "Password",
14
17
  "writeOnly": true,
15
- "minLength": 1
18
+ "minLength": 1,
19
+ "examples": [
20
+ "@some(!)Password"
21
+ ]
16
22
  },
17
23
  "hostUrl": {
18
24
  "title": "Host URL",
19
25
  "type": "string",
20
26
  "description": "The base DHIS2 instance URL",
21
27
  "format": "uri",
22
- "minLength": 1
28
+ "minLength": 1,
29
+ "examples": [
30
+ "https://play.dhis2.org/2.36.6"
31
+ ]
23
32
  },
24
33
  "apiVersion": {
25
34
  "title": "API Version",
@@ -33,10 +42,17 @@
33
42
  ],
34
43
  "placeholder": "38",
35
44
  "description": "DHIS2 api version",
36
- "minLength": 1
45
+ "minLength": 1,
46
+ "examples": [
47
+ "v2"
48
+ ]
37
49
  }
38
50
  },
39
51
  "type": "object",
40
52
  "additionalProperties": true,
41
- "required": ["hostUrl", "password", "username"]
42
- }
53
+ "required": [
54
+ "hostUrl",
55
+ "password",
56
+ "username"
57
+ ]
58
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfn/language-dhis2",
3
- "version": "3.2.4",
3
+ "version": "3.2.6",
4
4
  "description": "DHIS2 Language Pack for OpenFn",
5
5
  "homepage": "https://docs.openfn.org",
6
6
  "repository": {