@openfn/language-dhis2 8.0.13 → 8.1.1
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 +92 -0
- package/dist/index.cjs +6 -0
- package/dist/index.js +6 -0
- package/package.json +4 -4
- package/types/Adaptor.d.ts +1 -1
package/ast.json
CHANGED
|
@@ -834,6 +834,49 @@
|
|
|
834
834
|
},
|
|
835
835
|
"valid": true
|
|
836
836
|
},
|
|
837
|
+
{
|
|
838
|
+
"name": "combine",
|
|
839
|
+
"params": [
|
|
840
|
+
"operations"
|
|
841
|
+
],
|
|
842
|
+
"docs": {
|
|
843
|
+
"description": "Combines two operations into one",
|
|
844
|
+
"tags": [
|
|
845
|
+
{
|
|
846
|
+
"title": "public",
|
|
847
|
+
"description": null,
|
|
848
|
+
"type": null
|
|
849
|
+
},
|
|
850
|
+
{
|
|
851
|
+
"title": "function",
|
|
852
|
+
"description": null,
|
|
853
|
+
"name": null
|
|
854
|
+
},
|
|
855
|
+
{
|
|
856
|
+
"title": "example",
|
|
857
|
+
"description": "combine(\n create('foo'),\n delete('bar')\n)"
|
|
858
|
+
},
|
|
859
|
+
{
|
|
860
|
+
"title": "param",
|
|
861
|
+
"description": "Operations to be performed.",
|
|
862
|
+
"type": {
|
|
863
|
+
"type": "NameExpression",
|
|
864
|
+
"name": "Operations"
|
|
865
|
+
},
|
|
866
|
+
"name": "operations"
|
|
867
|
+
},
|
|
868
|
+
{
|
|
869
|
+
"title": "returns",
|
|
870
|
+
"description": null,
|
|
871
|
+
"type": {
|
|
872
|
+
"type": "NameExpression",
|
|
873
|
+
"name": "Operation"
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
]
|
|
877
|
+
},
|
|
878
|
+
"valid": true
|
|
879
|
+
},
|
|
837
880
|
{
|
|
838
881
|
"name": "field",
|
|
839
882
|
"params": [
|
|
@@ -1151,6 +1194,55 @@
|
|
|
1151
1194
|
},
|
|
1152
1195
|
"valid": false
|
|
1153
1196
|
},
|
|
1197
|
+
{
|
|
1198
|
+
"name": "log",
|
|
1199
|
+
"params": [
|
|
1200
|
+
"args"
|
|
1201
|
+
],
|
|
1202
|
+
"docs": {
|
|
1203
|
+
"description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.",
|
|
1204
|
+
"tags": [
|
|
1205
|
+
{
|
|
1206
|
+
"title": "public",
|
|
1207
|
+
"description": null,
|
|
1208
|
+
"type": null
|
|
1209
|
+
},
|
|
1210
|
+
{
|
|
1211
|
+
"title": "function",
|
|
1212
|
+
"description": null,
|
|
1213
|
+
"name": null
|
|
1214
|
+
},
|
|
1215
|
+
{
|
|
1216
|
+
"title": "example",
|
|
1217
|
+
"description": "log('Patient List::', $.patients);",
|
|
1218
|
+
"caption": "Log values from state"
|
|
1219
|
+
},
|
|
1220
|
+
{
|
|
1221
|
+
"title": "example",
|
|
1222
|
+
"description": "fn((state) => {\n console.log(state.data);\n return state;\n})",
|
|
1223
|
+
"caption": "Use console.log inside a callback or fn block"
|
|
1224
|
+
},
|
|
1225
|
+
{
|
|
1226
|
+
"title": "param",
|
|
1227
|
+
"description": "A value or message to display in the logs",
|
|
1228
|
+
"type": {
|
|
1229
|
+
"type": "NameExpression",
|
|
1230
|
+
"name": "any"
|
|
1231
|
+
},
|
|
1232
|
+
"name": "args"
|
|
1233
|
+
},
|
|
1234
|
+
{
|
|
1235
|
+
"title": "returns",
|
|
1236
|
+
"description": null,
|
|
1237
|
+
"type": {
|
|
1238
|
+
"type": "NameExpression",
|
|
1239
|
+
"name": "Operation"
|
|
1240
|
+
}
|
|
1241
|
+
}
|
|
1242
|
+
]
|
|
1243
|
+
},
|
|
1244
|
+
"valid": true
|
|
1245
|
+
},
|
|
1154
1246
|
{
|
|
1155
1247
|
"name": "as",
|
|
1156
1248
|
"params": [
|
package/dist/index.cjs
CHANGED
|
@@ -27,6 +27,7 @@ var src_exports = {};
|
|
|
27
27
|
__export(src_exports, {
|
|
28
28
|
alterState: () => import_language_common3.alterState,
|
|
29
29
|
as: () => import_language_common3.as,
|
|
30
|
+
combine: () => import_language_common3.combine,
|
|
30
31
|
create: () => create,
|
|
31
32
|
cursor: () => import_language_common3.cursor,
|
|
32
33
|
dataPath: () => import_language_common3.dataPath,
|
|
@@ -44,6 +45,7 @@ __export(src_exports, {
|
|
|
44
45
|
group: () => import_language_common3.group,
|
|
45
46
|
http: () => http_exports,
|
|
46
47
|
lastReferenceValue: () => import_language_common3.lastReferenceValue,
|
|
48
|
+
log: () => import_language_common3.log,
|
|
47
49
|
map: () => import_language_common3.map,
|
|
48
50
|
merge: () => import_language_common3.merge,
|
|
49
51
|
metadata: () => metadata_default,
|
|
@@ -288,6 +290,7 @@ var Adaptor_exports = {};
|
|
|
288
290
|
__export(Adaptor_exports, {
|
|
289
291
|
alterState: () => import_language_common3.alterState,
|
|
290
292
|
as: () => import_language_common3.as,
|
|
293
|
+
combine: () => import_language_common3.combine,
|
|
291
294
|
create: () => create,
|
|
292
295
|
cursor: () => import_language_common3.cursor,
|
|
293
296
|
dataPath: () => import_language_common3.dataPath,
|
|
@@ -303,6 +306,7 @@ __export(Adaptor_exports, {
|
|
|
303
306
|
get: () => get,
|
|
304
307
|
group: () => import_language_common3.group,
|
|
305
308
|
lastReferenceValue: () => import_language_common3.lastReferenceValue,
|
|
309
|
+
log: () => import_language_common3.log,
|
|
306
310
|
map: () => import_language_common3.map,
|
|
307
311
|
merge: () => import_language_common3.merge,
|
|
308
312
|
sourceValue: () => import_language_common3.sourceValue,
|
|
@@ -723,6 +727,7 @@ var src_default = Adaptor_exports;
|
|
|
723
727
|
0 && (module.exports = {
|
|
724
728
|
alterState,
|
|
725
729
|
as,
|
|
730
|
+
combine,
|
|
726
731
|
create,
|
|
727
732
|
cursor,
|
|
728
733
|
dataPath,
|
|
@@ -739,6 +744,7 @@ var src_default = Adaptor_exports;
|
|
|
739
744
|
group,
|
|
740
745
|
http,
|
|
741
746
|
lastReferenceValue,
|
|
747
|
+
log,
|
|
742
748
|
map,
|
|
743
749
|
merge,
|
|
744
750
|
metadata,
|
package/dist/index.js
CHANGED
|
@@ -241,6 +241,7 @@ var Adaptor_exports = {};
|
|
|
241
241
|
__export(Adaptor_exports, {
|
|
242
242
|
alterState: () => alterState,
|
|
243
243
|
as: () => as,
|
|
244
|
+
combine: () => combine,
|
|
244
245
|
create: () => create,
|
|
245
246
|
cursor: () => cursor,
|
|
246
247
|
dataPath: () => dataPath,
|
|
@@ -256,6 +257,7 @@ __export(Adaptor_exports, {
|
|
|
256
257
|
get: () => get,
|
|
257
258
|
group: () => group,
|
|
258
259
|
lastReferenceValue: () => lastReferenceValue,
|
|
260
|
+
log: () => log,
|
|
259
261
|
map: () => map,
|
|
260
262
|
merge: () => merge,
|
|
261
263
|
sourceValue: () => sourceValue,
|
|
@@ -267,6 +269,7 @@ import { expandReferences, throwError } from "@openfn/language-common/util";
|
|
|
267
269
|
import {
|
|
268
270
|
alterState,
|
|
269
271
|
as,
|
|
272
|
+
combine,
|
|
270
273
|
cursor,
|
|
271
274
|
dataPath,
|
|
272
275
|
dataValue,
|
|
@@ -278,6 +281,7 @@ import {
|
|
|
278
281
|
fnIf,
|
|
279
282
|
group,
|
|
280
283
|
lastReferenceValue,
|
|
284
|
+
log,
|
|
281
285
|
map,
|
|
282
286
|
merge,
|
|
283
287
|
sourceValue
|
|
@@ -692,6 +696,7 @@ var src_default = Adaptor_exports;
|
|
|
692
696
|
export {
|
|
693
697
|
alterState,
|
|
694
698
|
as,
|
|
699
|
+
combine,
|
|
695
700
|
create,
|
|
696
701
|
cursor,
|
|
697
702
|
dataPath,
|
|
@@ -709,6 +714,7 @@ export {
|
|
|
709
714
|
group,
|
|
710
715
|
http_exports as http,
|
|
711
716
|
lastReferenceValue,
|
|
717
|
+
log,
|
|
712
718
|
map,
|
|
713
719
|
merge,
|
|
714
720
|
metadata_default as metadata,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfn/language-dhis2",
|
|
3
3
|
"label": "DHIS2",
|
|
4
|
-
"version": "8.
|
|
4
|
+
"version": "8.1.1",
|
|
5
5
|
"description": "OpenFn adaptor for DHIS2",
|
|
6
6
|
"homepage": "https://docs.openfn.org",
|
|
7
7
|
"repository": {
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"configuration-schema.json"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"axios": "^1.
|
|
29
|
+
"axios": "^1.15.2",
|
|
30
30
|
"lodash": "^4.18.1",
|
|
31
|
-
"qs": "^6.
|
|
32
|
-
"@openfn/language-common": "3.3.
|
|
31
|
+
"qs": "^6.15.2",
|
|
32
|
+
"@openfn/language-common": "3.3.3"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"assertion-error": "2.0.0",
|
package/types/Adaptor.d.ts
CHANGED
|
@@ -365,4 +365,4 @@ export type RequestOptions = {
|
|
|
365
365
|
*/
|
|
366
366
|
apiVersion?: string;
|
|
367
367
|
};
|
|
368
|
-
export { alterState, as, cursor, dataPath, dataValue, dateFns, each, field, fields, fn, fnIf, group, lastReferenceValue, map, merge, sourceValue } from "@openfn/language-common";
|
|
368
|
+
export { alterState, as, combine, cursor, dataPath, dataValue, dateFns, each, field, fields, fn, fnIf, group, lastReferenceValue, log, map, merge, sourceValue } from "@openfn/language-common";
|