@openfn/language-maximo 0.5.32 → 0.6.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
@@ -466,6 +466,49 @@
466
466
  },
467
467
  "valid": true
468
468
  },
469
+ {
470
+ "name": "combine",
471
+ "params": [
472
+ "operations"
473
+ ],
474
+ "docs": {
475
+ "description": "Combines two operations into one",
476
+ "tags": [
477
+ {
478
+ "title": "public",
479
+ "description": null,
480
+ "type": null
481
+ },
482
+ {
483
+ "title": "function",
484
+ "description": null,
485
+ "name": null
486
+ },
487
+ {
488
+ "title": "example",
489
+ "description": "combine(\n create('foo'),\n delete('bar')\n)"
490
+ },
491
+ {
492
+ "title": "param",
493
+ "description": "Operations to be performed.",
494
+ "type": {
495
+ "type": "NameExpression",
496
+ "name": "Operations"
497
+ },
498
+ "name": "operations"
499
+ },
500
+ {
501
+ "title": "returns",
502
+ "description": null,
503
+ "type": {
504
+ "type": "NameExpression",
505
+ "name": "Operation"
506
+ }
507
+ }
508
+ ]
509
+ },
510
+ "valid": true
511
+ },
469
512
  {
470
513
  "name": "field",
471
514
  "params": [
@@ -619,6 +662,55 @@
619
662
  ]
620
663
  },
621
664
  "valid": true
665
+ },
666
+ {
667
+ "name": "log",
668
+ "params": [
669
+ "args"
670
+ ],
671
+ "docs": {
672
+ "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.",
673
+ "tags": [
674
+ {
675
+ "title": "public",
676
+ "description": null,
677
+ "type": null
678
+ },
679
+ {
680
+ "title": "function",
681
+ "description": null,
682
+ "name": null
683
+ },
684
+ {
685
+ "title": "example",
686
+ "description": "log('Patient List::', $.patients);",
687
+ "caption": "Log values from state"
688
+ },
689
+ {
690
+ "title": "example",
691
+ "description": "fn((state) => {\n console.log(state.data);\n return state;\n})",
692
+ "caption": "Use console.log inside a callback or fn block"
693
+ },
694
+ {
695
+ "title": "param",
696
+ "description": "A value or message to display in the logs",
697
+ "type": {
698
+ "type": "NameExpression",
699
+ "name": "any"
700
+ },
701
+ "name": "args"
702
+ },
703
+ {
704
+ "title": "returns",
705
+ "description": null,
706
+ "type": {
707
+ "type": "NameExpression",
708
+ "name": "Operation"
709
+ }
710
+ }
711
+ ]
712
+ },
713
+ "valid": true
622
714
  }
623
715
  ]
624
716
  }
package/dist/index.cjs CHANGED
@@ -26,6 +26,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
26
26
  var src_exports = {};
27
27
  __export(src_exports, {
28
28
  alterState: () => import_language_common2.alterState,
29
+ combine: () => import_language_common2.combine,
29
30
  create: () => create,
30
31
  dataPath: () => import_language_common2.dataPath,
31
32
  dataValue: () => import_language_common2.dataValue,
@@ -38,6 +39,7 @@ __export(src_exports, {
38
39
  fn: () => import_language_common2.fn,
39
40
  fnIf: () => import_language_common2.fnIf,
40
41
  lastReferenceValue: () => import_language_common2.lastReferenceValue,
42
+ log: () => import_language_common2.log,
41
43
  merge: () => import_language_common2.merge,
42
44
  sourceValue: () => import_language_common2.sourceValue,
43
45
  update: () => update,
@@ -49,6 +51,7 @@ module.exports = __toCommonJS(src_exports);
49
51
  var Adaptor_exports = {};
50
52
  __export(Adaptor_exports, {
51
53
  alterState: () => import_language_common2.alterState,
54
+ combine: () => import_language_common2.combine,
52
55
  create: () => create,
53
56
  dataPath: () => import_language_common2.dataPath,
54
57
  dataValue: () => import_language_common2.dataValue,
@@ -60,6 +63,7 @@ __export(Adaptor_exports, {
60
63
  fn: () => import_language_common2.fn,
61
64
  fnIf: () => import_language_common2.fnIf,
62
65
  lastReferenceValue: () => import_language_common2.lastReferenceValue,
66
+ log: () => import_language_common2.log,
63
67
  merge: () => import_language_common2.merge,
64
68
  sourceValue: () => import_language_common2.sourceValue,
65
69
  update: () => update,
@@ -298,6 +302,7 @@ var src_default = Adaptor_exports;
298
302
  // Annotate the CommonJS export names for ESM import in node:
299
303
  0 && (module.exports = {
300
304
  alterState,
305
+ combine,
301
306
  create,
302
307
  dataPath,
303
308
  dataValue,
@@ -309,6 +314,7 @@ var src_default = Adaptor_exports;
309
314
  fn,
310
315
  fnIf,
311
316
  lastReferenceValue,
317
+ log,
312
318
  merge,
313
319
  sourceValue,
314
320
  update,
package/dist/index.js CHANGED
@@ -8,6 +8,7 @@ var __export = (target, all) => {
8
8
  var Adaptor_exports = {};
9
9
  __export(Adaptor_exports, {
10
10
  alterState: () => alterState,
11
+ combine: () => combine,
11
12
  create: () => create,
12
13
  dataPath: () => dataPath,
13
14
  dataValue: () => dataValue,
@@ -19,6 +20,7 @@ __export(Adaptor_exports, {
19
20
  fn: () => fn,
20
21
  fnIf: () => fnIf,
21
22
  lastReferenceValue: () => lastReferenceValue,
23
+ log: () => log,
22
24
  merge: () => merge,
23
25
  sourceValue: () => sourceValue,
24
26
  update: () => update,
@@ -31,17 +33,19 @@ import { resolve as resolveUrl } from "url";
31
33
  import base64 from "base-64";
32
34
  import utf8 from "utf8";
33
35
  import {
36
+ alterState,
37
+ combine,
38
+ dataPath,
39
+ dataValue,
40
+ each,
34
41
  field,
35
42
  fields,
36
- sourceValue,
37
43
  fn,
38
44
  fnIf,
39
- alterState,
40
- each,
45
+ lastReferenceValue,
46
+ log,
41
47
  merge,
42
- dataPath,
43
- dataValue,
44
- lastReferenceValue
48
+ sourceValue
45
49
  } from "@openfn/language-common";
46
50
  function execute(...operations) {
47
51
  const initialState = {
@@ -268,6 +272,7 @@ function update75(params) {
268
272
  var src_default = Adaptor_exports;
269
273
  export {
270
274
  alterState,
275
+ combine,
271
276
  create,
272
277
  dataPath,
273
278
  dataValue,
@@ -280,6 +285,7 @@ export {
280
285
  fn,
281
286
  fnIf,
282
287
  lastReferenceValue,
288
+ log,
283
289
  merge,
284
290
  sourceValue,
285
291
  update,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@openfn/language-maximo",
3
3
  "label": "Maximo",
4
- "version": "0.5.32",
4
+ "version": "0.6.0",
5
5
  "description": "OpenFn adaptor for IBM Maximo EAM",
6
6
  "main": "dist/index.cjs",
7
7
  "author": "Open Function Group",
@@ -16,7 +16,7 @@
16
16
  "base-64": "^0.1.0",
17
17
  "request": "^2.88.2",
18
18
  "utf8": "^2.1.2",
19
- "@openfn/language-common": "3.3.1"
19
+ "@openfn/language-common": "3.3.2"
20
20
  },
21
21
  "devDependencies": {
22
22
  "assertion-error": "^2.0.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, fnIf, alterState, each, merge, dataPath, dataValue, lastReferenceValue } from "@openfn/language-common";
53
+ export { alterState, combine, dataPath, dataValue, each, field, fields, fn, fnIf, lastReferenceValue, log, merge, sourceValue } from "@openfn/language-common";