@openfn/language-maximo 0.4.1 → 0.5.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 CHANGED
@@ -45,6 +45,59 @@
45
45
  },
46
46
  "valid": true
47
47
  },
48
+ {
49
+ "name": "fnIf",
50
+ "params": [
51
+ "condition",
52
+ "operation"
53
+ ],
54
+ "docs": {
55
+ "description": "A custom operation that will only execute the function if the condition returns true",
56
+ "tags": [
57
+ {
58
+ "title": "public",
59
+ "description": null,
60
+ "type": null
61
+ },
62
+ {
63
+ "title": "example",
64
+ "description": "fnIf((state) => state?.data?.name, get(\"https://example.com\"));"
65
+ },
66
+ {
67
+ "title": "function",
68
+ "description": null,
69
+ "name": null
70
+ },
71
+ {
72
+ "title": "param",
73
+ "description": "The condition that returns true",
74
+ "type": {
75
+ "type": "NameExpression",
76
+ "name": "Boolean"
77
+ },
78
+ "name": "condition"
79
+ },
80
+ {
81
+ "title": "param",
82
+ "description": "The operation needed to be executed.",
83
+ "type": {
84
+ "type": "NameExpression",
85
+ "name": "Operation"
86
+ },
87
+ "name": "operation"
88
+ },
89
+ {
90
+ "title": "returns",
91
+ "description": null,
92
+ "type": {
93
+ "type": "NameExpression",
94
+ "name": "Operation"
95
+ }
96
+ }
97
+ ]
98
+ },
99
+ "valid": true
100
+ },
48
101
  {
49
102
  "name": "sourceValue",
50
103
  "params": [
package/dist/index.cjs CHANGED
@@ -36,6 +36,7 @@ __export(src_exports, {
36
36
  field: () => import_language_common2.field,
37
37
  fields: () => import_language_common2.fields,
38
38
  fn: () => import_language_common2.fn,
39
+ fnIf: () => import_language_common2.fnIf,
39
40
  lastReferenceValue: () => import_language_common2.lastReferenceValue,
40
41
  merge: () => import_language_common2.merge,
41
42
  sourceValue: () => import_language_common2.sourceValue,
@@ -57,6 +58,7 @@ __export(Adaptor_exports, {
57
58
  field: () => import_language_common2.field,
58
59
  fields: () => import_language_common2.fields,
59
60
  fn: () => import_language_common2.fn,
61
+ fnIf: () => import_language_common2.fnIf,
60
62
  lastReferenceValue: () => import_language_common2.lastReferenceValue,
61
63
  merge: () => import_language_common2.merge,
62
64
  sourceValue: () => import_language_common2.sourceValue,
@@ -300,6 +302,7 @@ var src_default = Adaptor_exports;
300
302
  field,
301
303
  fields,
302
304
  fn,
305
+ fnIf,
303
306
  lastReferenceValue,
304
307
  merge,
305
308
  sourceValue,
package/dist/index.js CHANGED
@@ -17,6 +17,7 @@ __export(Adaptor_exports, {
17
17
  field: () => field,
18
18
  fields: () => fields,
19
19
  fn: () => fn,
20
+ fnIf: () => fnIf,
20
21
  lastReferenceValue: () => lastReferenceValue,
21
22
  merge: () => merge,
22
23
  sourceValue: () => sourceValue,
@@ -36,6 +37,7 @@ import {
36
37
  fields,
37
38
  sourceValue,
38
39
  fn,
40
+ fnIf,
39
41
  alterState,
40
42
  each,
41
43
  merge,
@@ -274,6 +276,7 @@ export {
274
276
  field,
275
277
  fields,
276
278
  fn,
279
+ fnIf,
277
280
  lastReferenceValue,
278
281
  merge,
279
282
  sourceValue,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfn/language-maximo",
3
- "version": "0.4.1",
3
+ "version": "0.5.0",
4
4
  "description": "An IBM Maximo EAM Language Pack for OpenFn",
5
5
  "main": "dist/index.cjs",
6
6
  "author": "Open Function Group",
@@ -12,13 +12,12 @@
12
12
  "configuration-schema.json"
13
13
  ],
14
14
  "dependencies": {
15
- "@openfn/language-common": "^1.8.1",
15
+ "@openfn/language-common": "^1.14.0",
16
16
  "base-64": "^0.1.0",
17
17
  "request": "^2.88.2",
18
18
  "utf8": "^2.1.2"
19
19
  },
20
20
  "devDependencies": {
21
- "@openfn/buildtools": "^1.0.2",
22
21
  "@openfn/simple-ast": "0.4.1",
23
22
  "assertion-error": "^2.0.0",
24
23
  "babel-cli": "^6.26.0",
@@ -50,4 +50,4 @@ export function update(params: object): Operation;
50
50
  * @returns {Operation}
51
51
  */
52
52
  export function update75(params: object): Operation;
53
- export { field, fields, sourceValue, fn, alterState, each, merge, dataPath, dataValue, lastReferenceValue } from "@openfn/language-common";
53
+ export { field, fields, sourceValue, fn, fnIf, alterState, each, merge, dataPath, dataValue, lastReferenceValue } from "@openfn/language-common";