@openfn/language-godata 3.5.0 → 3.5.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 +41 -36
- package/package.json +2 -2
package/ast.json
CHANGED
|
@@ -861,15 +861,15 @@
|
|
|
861
861
|
"description": null,
|
|
862
862
|
"type": null
|
|
863
863
|
},
|
|
864
|
-
{
|
|
865
|
-
"title": "example",
|
|
866
|
-
"description": "fn(state => {\n // do some things to state\n return state;\n});"
|
|
867
|
-
},
|
|
868
864
|
{
|
|
869
865
|
"title": "function",
|
|
870
866
|
"description": null,
|
|
871
867
|
"name": null
|
|
872
868
|
},
|
|
869
|
+
{
|
|
870
|
+
"title": "example",
|
|
871
|
+
"description": "fn(state => {\n // do some things to state\n return state;\n});"
|
|
872
|
+
},
|
|
873
873
|
{
|
|
874
874
|
"title": "param",
|
|
875
875
|
"description": "is the function",
|
|
@@ -905,15 +905,15 @@
|
|
|
905
905
|
"description": null,
|
|
906
906
|
"type": null
|
|
907
907
|
},
|
|
908
|
-
{
|
|
909
|
-
"title": "example",
|
|
910
|
-
"description": "fnIf((state) => state?.data?.name, get(\"https://example.com\"));"
|
|
911
|
-
},
|
|
912
908
|
{
|
|
913
909
|
"title": "function",
|
|
914
910
|
"description": null,
|
|
915
911
|
"name": null
|
|
916
912
|
},
|
|
913
|
+
{
|
|
914
|
+
"title": "example",
|
|
915
|
+
"description": "fnIf((state) => state?.data?.name, get(\"https://example.com\"));"
|
|
916
|
+
},
|
|
917
917
|
{
|
|
918
918
|
"title": "param",
|
|
919
919
|
"description": "The condition that returns true",
|
|
@@ -957,15 +957,15 @@
|
|
|
957
957
|
"description": null,
|
|
958
958
|
"type": null
|
|
959
959
|
},
|
|
960
|
-
{
|
|
961
|
-
"title": "example",
|
|
962
|
-
"description": "sourceValue('$.key')"
|
|
963
|
-
},
|
|
964
960
|
{
|
|
965
961
|
"title": "function",
|
|
966
962
|
"description": null,
|
|
967
963
|
"name": null
|
|
968
964
|
},
|
|
965
|
+
{
|
|
966
|
+
"title": "example",
|
|
967
|
+
"description": "sourceValue('$.key')"
|
|
968
|
+
},
|
|
969
969
|
{
|
|
970
970
|
"title": "param",
|
|
971
971
|
"description": "JSONPath referencing a point in `state`.",
|
|
@@ -1000,15 +1000,15 @@
|
|
|
1000
1000
|
"description": null,
|
|
1001
1001
|
"type": null
|
|
1002
1002
|
},
|
|
1003
|
-
{
|
|
1004
|
-
"title": "example",
|
|
1005
|
-
"description": "dataPath('key')"
|
|
1006
|
-
},
|
|
1007
1003
|
{
|
|
1008
1004
|
"title": "function",
|
|
1009
1005
|
"description": null,
|
|
1010
1006
|
"name": null
|
|
1011
1007
|
},
|
|
1008
|
+
{
|
|
1009
|
+
"title": "example",
|
|
1010
|
+
"description": "dataPath('key')"
|
|
1011
|
+
},
|
|
1012
1012
|
{
|
|
1013
1013
|
"title": "param",
|
|
1014
1014
|
"description": "JSONPath referencing a point in `data`.",
|
|
@@ -1043,15 +1043,15 @@
|
|
|
1043
1043
|
"description": null,
|
|
1044
1044
|
"type": null
|
|
1045
1045
|
},
|
|
1046
|
-
{
|
|
1047
|
-
"title": "example",
|
|
1048
|
-
"description": "dataValue('key')"
|
|
1049
|
-
},
|
|
1050
1046
|
{
|
|
1051
1047
|
"title": "function",
|
|
1052
1048
|
"description": null,
|
|
1053
1049
|
"name": null
|
|
1054
1050
|
},
|
|
1051
|
+
{
|
|
1052
|
+
"title": "example",
|
|
1053
|
+
"description": "dataValue('key')"
|
|
1054
|
+
},
|
|
1055
1055
|
{
|
|
1056
1056
|
"title": "param",
|
|
1057
1057
|
"description": "JSONPath referencing a point in `data`.",
|
|
@@ -1086,15 +1086,15 @@
|
|
|
1086
1086
|
"description": null,
|
|
1087
1087
|
"type": null
|
|
1088
1088
|
},
|
|
1089
|
-
{
|
|
1090
|
-
"title": "example",
|
|
1091
|
-
"description": "lastReferenceValue('key')"
|
|
1092
|
-
},
|
|
1093
1089
|
{
|
|
1094
1090
|
"title": "function",
|
|
1095
1091
|
"description": null,
|
|
1096
1092
|
"name": null
|
|
1097
1093
|
},
|
|
1094
|
+
{
|
|
1095
|
+
"title": "example",
|
|
1096
|
+
"description": "lastReferenceValue('key')"
|
|
1097
|
+
},
|
|
1098
1098
|
{
|
|
1099
1099
|
"title": "param",
|
|
1100
1100
|
"description": "JSONPath referencing a point in `references`.",
|
|
@@ -1130,15 +1130,15 @@
|
|
|
1130
1130
|
"description": null,
|
|
1131
1131
|
"type": null
|
|
1132
1132
|
},
|
|
1133
|
-
{
|
|
1134
|
-
"title": "example",
|
|
1135
|
-
"description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)"
|
|
1136
|
-
},
|
|
1137
1133
|
{
|
|
1138
1134
|
"title": "function",
|
|
1139
1135
|
"description": null,
|
|
1140
1136
|
"name": null
|
|
1141
1137
|
},
|
|
1138
|
+
{
|
|
1139
|
+
"title": "example",
|
|
1140
|
+
"description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)"
|
|
1141
|
+
},
|
|
1142
1142
|
{
|
|
1143
1143
|
"title": "param",
|
|
1144
1144
|
"description": "JSONPath referencing a point in `state`.",
|
|
@@ -1183,15 +1183,15 @@
|
|
|
1183
1183
|
"description": null,
|
|
1184
1184
|
"type": null
|
|
1185
1185
|
},
|
|
1186
|
-
{
|
|
1187
|
-
"title": "example",
|
|
1188
|
-
"description": "field('destination_field_name__c', 'value')"
|
|
1189
|
-
},
|
|
1190
1186
|
{
|
|
1191
1187
|
"title": "function",
|
|
1192
1188
|
"description": null,
|
|
1193
1189
|
"name": null
|
|
1194
1190
|
},
|
|
1191
|
+
{
|
|
1192
|
+
"title": "example",
|
|
1193
|
+
"description": "field('destination_field_name__c', 'value')"
|
|
1194
|
+
},
|
|
1195
1195
|
{
|
|
1196
1196
|
"title": "param",
|
|
1197
1197
|
"description": "Name of the field",
|
|
@@ -1235,15 +1235,15 @@
|
|
|
1235
1235
|
"description": null,
|
|
1236
1236
|
"type": null
|
|
1237
1237
|
},
|
|
1238
|
-
{
|
|
1239
|
-
"title": "example",
|
|
1240
|
-
"description": "fields(list_of_fields)"
|
|
1241
|
-
},
|
|
1242
1238
|
{
|
|
1243
1239
|
"title": "function",
|
|
1244
1240
|
"description": null,
|
|
1245
1241
|
"name": null
|
|
1246
1242
|
},
|
|
1243
|
+
{
|
|
1244
|
+
"title": "example",
|
|
1245
|
+
"description": "fields(list_of_fields)"
|
|
1246
|
+
},
|
|
1247
1247
|
{
|
|
1248
1248
|
"title": "param",
|
|
1249
1249
|
"description": "a list of fields",
|
|
@@ -1288,6 +1288,11 @@
|
|
|
1288
1288
|
"description": null,
|
|
1289
1289
|
"name": null
|
|
1290
1290
|
},
|
|
1291
|
+
{
|
|
1292
|
+
"title": "public",
|
|
1293
|
+
"description": null,
|
|
1294
|
+
"type": null
|
|
1295
|
+
},
|
|
1291
1296
|
{
|
|
1292
1297
|
"title": "param",
|
|
1293
1298
|
"description": null,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfn/language-godata",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.1",
|
|
4
4
|
"description": "An OpenFn adaptor for use with the WHO's GoData API",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"author": "Open Function Group",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
],
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"axios": "^0.21.2",
|
|
16
|
-
"@openfn/language-common": "^
|
|
16
|
+
"@openfn/language-common": "^2.0.0"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"assertion-error": "^1.0.1",
|