@openfn/language-hive 0.2.1 → 0.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/ast.json +53 -0
- package/dist/index.cjs +3 -0
- package/dist/index.js +3 -0
- package/package.json +2 -2
- package/types/Adaptor.d.ts +1 -1
package/ast.json
CHANGED
|
@@ -110,6 +110,59 @@
|
|
|
110
110
|
},
|
|
111
111
|
"valid": true
|
|
112
112
|
},
|
|
113
|
+
{
|
|
114
|
+
"name": "fnIf",
|
|
115
|
+
"params": [
|
|
116
|
+
"condition",
|
|
117
|
+
"operation"
|
|
118
|
+
],
|
|
119
|
+
"docs": {
|
|
120
|
+
"description": "A custom operation that will only execute the function if the condition returns true",
|
|
121
|
+
"tags": [
|
|
122
|
+
{
|
|
123
|
+
"title": "public",
|
|
124
|
+
"description": null,
|
|
125
|
+
"type": null
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"title": "example",
|
|
129
|
+
"description": "fnIf((state) => state?.data?.name, get(\"https://example.com\"));"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"title": "function",
|
|
133
|
+
"description": null,
|
|
134
|
+
"name": null
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"title": "param",
|
|
138
|
+
"description": "The condition that returns true",
|
|
139
|
+
"type": {
|
|
140
|
+
"type": "NameExpression",
|
|
141
|
+
"name": "Boolean"
|
|
142
|
+
},
|
|
143
|
+
"name": "condition"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"title": "param",
|
|
147
|
+
"description": "The operation needed to be executed.",
|
|
148
|
+
"type": {
|
|
149
|
+
"type": "NameExpression",
|
|
150
|
+
"name": "Operation"
|
|
151
|
+
},
|
|
152
|
+
"name": "operation"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"title": "returns",
|
|
156
|
+
"description": null,
|
|
157
|
+
"type": {
|
|
158
|
+
"type": "NameExpression",
|
|
159
|
+
"name": "Operation"
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
]
|
|
163
|
+
},
|
|
164
|
+
"valid": true
|
|
165
|
+
},
|
|
113
166
|
{
|
|
114
167
|
"name": "sourceValue",
|
|
115
168
|
"params": [
|
package/dist/index.cjs
CHANGED
|
@@ -34,6 +34,7 @@ __export(src_exports, {
|
|
|
34
34
|
field: () => import_language_common2.field,
|
|
35
35
|
fields: () => import_language_common2.fields,
|
|
36
36
|
fn: () => import_language_common2.fn,
|
|
37
|
+
fnIf: () => import_language_common2.fnIf,
|
|
37
38
|
lastReferenceValue: () => import_language_common2.lastReferenceValue,
|
|
38
39
|
merge: () => import_language_common2.merge,
|
|
39
40
|
parseCsv: () => import_language_common2.parseCsv,
|
|
@@ -53,6 +54,7 @@ __export(Adaptor_exports, {
|
|
|
53
54
|
field: () => import_language_common2.field,
|
|
54
55
|
fields: () => import_language_common2.fields,
|
|
55
56
|
fn: () => import_language_common2.fn,
|
|
57
|
+
fnIf: () => import_language_common2.fnIf,
|
|
56
58
|
lastReferenceValue: () => import_language_common2.lastReferenceValue,
|
|
57
59
|
merge: () => import_language_common2.merge,
|
|
58
60
|
parseCsv: () => import_language_common2.parseCsv,
|
|
@@ -145,6 +147,7 @@ var src_default = Adaptor_exports;
|
|
|
145
147
|
field,
|
|
146
148
|
fields,
|
|
147
149
|
fn,
|
|
150
|
+
fnIf,
|
|
148
151
|
lastReferenceValue,
|
|
149
152
|
merge,
|
|
150
153
|
parseCsv,
|
package/dist/index.js
CHANGED
|
@@ -15,6 +15,7 @@ __export(Adaptor_exports, {
|
|
|
15
15
|
field: () => field,
|
|
16
16
|
fields: () => fields,
|
|
17
17
|
fn: () => fn,
|
|
18
|
+
fnIf: () => fnIf,
|
|
18
19
|
lastReferenceValue: () => lastReferenceValue,
|
|
19
20
|
merge: () => merge,
|
|
20
21
|
parseCsv: () => parseCsv,
|
|
@@ -35,6 +36,7 @@ import {
|
|
|
35
36
|
field,
|
|
36
37
|
fields,
|
|
37
38
|
fn,
|
|
39
|
+
fnIf,
|
|
38
40
|
parseCsv,
|
|
39
41
|
lastReferenceValue,
|
|
40
42
|
merge,
|
|
@@ -122,6 +124,7 @@ export {
|
|
|
122
124
|
field,
|
|
123
125
|
fields,
|
|
124
126
|
fn,
|
|
127
|
+
fnIf,
|
|
125
128
|
lastReferenceValue,
|
|
126
129
|
merge,
|
|
127
130
|
parseCsv,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfn/language-hive",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "An Apache HIVE adaptor for OpenFn",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"configuration-schema.json"
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@openfn/language-common": "^1.
|
|
22
|
+
"@openfn/language-common": "^1.14.0",
|
|
23
23
|
"hive-driver": "0.2.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
package/types/Adaptor.d.ts
CHANGED
|
@@ -24,4 +24,4 @@ export function execute(...operations: Operations): Operation;
|
|
|
24
24
|
* @returns {Operation}
|
|
25
25
|
*/
|
|
26
26
|
export function query(qs: string, options: object, callback: Function): Operation;
|
|
27
|
-
export { dataPath, dataValue, dateFns, each, field, fields, fn, parseCsv, lastReferenceValue, merge, sourceValue } from "@openfn/language-common";
|
|
27
|
+
export { dataPath, dataValue, dateFns, each, field, fields, fn, fnIf, parseCsv, lastReferenceValue, merge, sourceValue } from "@openfn/language-common";
|