@openfn/language-dhis2 3.2.0 → 3.2.2

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/ast.json CHANGED
@@ -947,6 +947,14 @@
947
947
  "name": "Function"
948
948
  },
949
949
  "name": "func"
950
+ },
951
+ {
952
+ "title": "returns",
953
+ "description": null,
954
+ "type": {
955
+ "type": "NameExpression",
956
+ "name": "Operation"
957
+ }
950
958
  }
951
959
  ]
952
960
  },
@@ -982,6 +990,14 @@
982
990
  "name": "String"
983
991
  },
984
992
  "name": "path"
993
+ },
994
+ {
995
+ "title": "returns",
996
+ "description": null,
997
+ "type": {
998
+ "type": "NameExpression",
999
+ "name": "Operation"
1000
+ }
985
1001
  }
986
1002
  ]
987
1003
  },
@@ -1060,6 +1076,14 @@
1060
1076
  "name": "String"
1061
1077
  },
1062
1078
  "name": "path"
1079
+ },
1080
+ {
1081
+ "title": "returns",
1082
+ "description": null,
1083
+ "type": {
1084
+ "type": "NameExpression",
1085
+ "name": "Operation"
1086
+ }
1063
1087
  }
1064
1088
  ]
1065
1089
  },
@@ -1095,6 +1119,14 @@
1095
1119
  "name": "String"
1096
1120
  },
1097
1121
  "name": "path"
1122
+ },
1123
+ {
1124
+ "title": "returns",
1125
+ "description": null,
1126
+ "type": {
1127
+ "type": "NameExpression",
1128
+ "name": "Operation"
1129
+ }
1098
1130
  }
1099
1131
  ]
1100
1132
  },
@@ -1140,6 +1172,14 @@
1140
1172
  "name": "Operation"
1141
1173
  },
1142
1174
  "name": "operation"
1175
+ },
1176
+ {
1177
+ "title": "returns",
1178
+ "description": null,
1179
+ "type": {
1180
+ "type": "NameExpression",
1181
+ "name": "Operation"
1182
+ }
1143
1183
  }
1144
1184
  ]
1145
1185
  },
@@ -1185,6 +1225,14 @@
1185
1225
  "name": "Value"
1186
1226
  },
1187
1227
  "name": "value"
1228
+ },
1229
+ {
1230
+ "title": "returns",
1231
+ "description": null,
1232
+ "type": {
1233
+ "type": "NameExpression",
1234
+ "name": "Field"
1235
+ }
1188
1236
  }
1189
1237
  ]
1190
1238
  },
@@ -0,0 +1,42 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "properties": {
4
+ "username": {
5
+ "title": "Username",
6
+ "type": "string",
7
+ "description": "Username",
8
+ "minLength": 1
9
+ },
10
+ "password": {
11
+ "title": "Password",
12
+ "type": "string",
13
+ "description": "Password",
14
+ "writeOnly": true,
15
+ "minLength": 1
16
+ },
17
+ "hostUrl": {
18
+ "title": "Host URL",
19
+ "type": "string",
20
+ "description": "The base DHIS2 instance URL",
21
+ "format": "uri",
22
+ "minLength": 1
23
+ },
24
+ "apiVersion": {
25
+ "title": "API Version",
26
+ "anyOf": [
27
+ {
28
+ "type": "string"
29
+ },
30
+ {
31
+ "type": "null"
32
+ }
33
+ ],
34
+ "placeholder": "38",
35
+ "description": "DHIS2 api version",
36
+ "minLength": 1
37
+ }
38
+ },
39
+ "type": "object",
40
+ "additionalProperties": true,
41
+ "required": ["hostUrl", "password", "username"]
42
+ }
package/dist/index.cjs CHANGED
@@ -25,8 +25,30 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
25
25
  // src/index.js
26
26
  var src_exports = {};
27
27
  __export(src_exports, {
28
- Adaptor: () => Adaptor_exports,
29
- default: () => src_default
28
+ alterState: () => import_language_common3.alterState,
29
+ attr: () => attr,
30
+ create: () => create,
31
+ dataPath: () => import_language_common3.dataPath,
32
+ dataValue: () => import_language_common3.dataValue,
33
+ dateFns: () => import_language_common3.dateFns,
34
+ default: () => src_default,
35
+ destroy: () => destroy,
36
+ discover: () => discover,
37
+ dv: () => dv,
38
+ each: () => import_language_common3.each,
39
+ execute: () => execute,
40
+ field: () => import_language_common3.field,
41
+ fields: () => import_language_common3.fields,
42
+ findAttributeValue: () => findAttributeValue,
43
+ fn: () => import_language_common3.fn,
44
+ get: () => get,
45
+ http: () => import_language_common3.http,
46
+ lastReferenceValue: () => import_language_common3.lastReferenceValue,
47
+ merge: () => import_language_common3.merge,
48
+ patch: () => patch,
49
+ sourceValue: () => import_language_common3.sourceValue,
50
+ update: () => update,
51
+ upsert: () => upsert
30
52
  });
31
53
  module.exports = __toCommonJS(src_exports);
32
54
 
@@ -428,5 +450,27 @@ function dv(dataElement, value) {
428
450
  var src_default = Adaptor_exports;
429
451
  // Annotate the CommonJS export names for ESM import in node:
430
452
  0 && (module.exports = {
431
- Adaptor
453
+ alterState,
454
+ attr,
455
+ create,
456
+ dataPath,
457
+ dataValue,
458
+ dateFns,
459
+ destroy,
460
+ discover,
461
+ dv,
462
+ each,
463
+ execute,
464
+ field,
465
+ fields,
466
+ findAttributeValue,
467
+ fn,
468
+ get,
469
+ http,
470
+ lastReferenceValue,
471
+ merge,
472
+ patch,
473
+ sourceValue,
474
+ update,
475
+ upsert
432
476
  });
package/dist/index.js CHANGED
@@ -417,6 +417,28 @@ function dv(dataElement, value) {
417
417
  // src/index.js
418
418
  var src_default = Adaptor_exports;
419
419
  export {
420
- Adaptor_exports as Adaptor,
421
- src_default as default
420
+ alterState,
421
+ attr,
422
+ create,
423
+ dataPath,
424
+ dataValue,
425
+ dateFns,
426
+ src_default as default,
427
+ destroy,
428
+ discover,
429
+ dv,
430
+ each,
431
+ execute,
432
+ field,
433
+ fields,
434
+ findAttributeValue,
435
+ fn,
436
+ get,
437
+ http,
438
+ lastReferenceValue,
439
+ merge,
440
+ patch,
441
+ sourceValue,
442
+ update,
443
+ upsert
422
444
  };
package/package.json CHANGED
@@ -1,13 +1,16 @@
1
1
  {
2
2
  "name": "@openfn/language-dhis2",
3
- "version": "3.2.0",
3
+ "version": "3.2.2",
4
4
  "description": "DHIS2 Language Pack for OpenFn",
5
5
  "homepage": "https://docs.openfn.org",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/openfn/adaptors.git"
9
9
  },
10
- "main": "dist/index.cjs",
10
+ "exports": {
11
+ "import": "./dist/index.js",
12
+ "require": "./dist/index.cjs"
13
+ },
11
14
  "types": "types/index.d.ts",
12
15
  "author": "Open Function Group",
13
16
  "license": "LGPLv3",
@@ -18,25 +21,26 @@
18
21
  "configuration-schema.json"
19
22
  ],
20
23
  "dependencies": {
21
- "@openfn/buildtools": "^1.0.1",
22
- "@openfn/language-common": "1.6.2",
24
+ "@openfn/buildtools": "^1.0.2",
25
+ "@openfn/language-common": "^1.7.4",
23
26
  "axios": "^0.24.0",
24
27
  "lodash": "^4.17.19",
25
28
  "qs": "^6.10.3"
26
29
  },
27
30
  "devDependencies": {
28
- "@openfn/simple-ast": "^0.4.0",
29
- "assertion-error": "^1.0.1",
30
- "chai": "^3.4.0",
31
- "chai-http": "^4.3.0",
32
- "deep-eql": "^0.1.3",
31
+ "@openfn/buildtools": "^1.0.2",
32
+ "@openfn/simple-ast": "0.4.1",
33
+ "assertion-error": "2.0.0",
34
+ "chai": "4.3.6",
35
+ "chai-http": "4.3.0",
36
+ "deep-eql": "4.1.1",
33
37
  "esno": "^0.16.3",
34
- "mocha": "^7.1.1",
35
- "nock": "^13.0.5",
36
- "rimraf": "^3.0.2",
37
- "sinon": "^1.17.2"
38
+ "mocha": "7.2.0",
39
+ "nock": "13.2.9",
40
+ "rimraf": "3.0.2"
38
41
  },
39
42
  "type": "module",
43
+ "main": "dist/index.cjs",
40
44
  "scripts": {
41
45
  "build": "pnpm clean && build-adaptor dhis2",
42
46
  "clean": "rimraf dist types docs",