@openfn/language-googlehealthcare 1.1.16 → 1.2.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
@@ -438,6 +438,49 @@
438
438
  },
439
439
  "valid": true
440
440
  },
441
+ {
442
+ "name": "combine",
443
+ "params": [
444
+ "operations"
445
+ ],
446
+ "docs": {
447
+ "description": "Combines two operations into one",
448
+ "tags": [
449
+ {
450
+ "title": "public",
451
+ "description": null,
452
+ "type": null
453
+ },
454
+ {
455
+ "title": "function",
456
+ "description": null,
457
+ "name": null
458
+ },
459
+ {
460
+ "title": "example",
461
+ "description": "combine(\n create('foo'),\n delete('bar')\n)"
462
+ },
463
+ {
464
+ "title": "param",
465
+ "description": "Operations to be performed.",
466
+ "type": {
467
+ "type": "NameExpression",
468
+ "name": "Operations"
469
+ },
470
+ "name": "operations"
471
+ },
472
+ {
473
+ "title": "returns",
474
+ "description": null,
475
+ "type": {
476
+ "type": "NameExpression",
477
+ "name": "Operation"
478
+ }
479
+ }
480
+ ]
481
+ },
482
+ "valid": true
483
+ },
441
484
  {
442
485
  "name": "field",
443
486
  "params": [
@@ -591,6 +634,55 @@
591
634
  ]
592
635
  },
593
636
  "valid": true
637
+ },
638
+ {
639
+ "name": "log",
640
+ "params": [
641
+ "args"
642
+ ],
643
+ "docs": {
644
+ "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.",
645
+ "tags": [
646
+ {
647
+ "title": "public",
648
+ "description": null,
649
+ "type": null
650
+ },
651
+ {
652
+ "title": "function",
653
+ "description": null,
654
+ "name": null
655
+ },
656
+ {
657
+ "title": "example",
658
+ "description": "log('Patient List::', $.patients);",
659
+ "caption": "Log values from state"
660
+ },
661
+ {
662
+ "title": "example",
663
+ "description": "fn((state) => {\n console.log(state.data);\n return state;\n})",
664
+ "caption": "Use console.log inside a callback or fn block"
665
+ },
666
+ {
667
+ "title": "param",
668
+ "description": "A value or message to display in the logs",
669
+ "type": {
670
+ "type": "NameExpression",
671
+ "name": "any"
672
+ },
673
+ "name": "args"
674
+ },
675
+ {
676
+ "title": "returns",
677
+ "description": null,
678
+ "type": {
679
+ "type": "NameExpression",
680
+ "name": "Operation"
681
+ }
682
+ }
683
+ ]
684
+ },
685
+ "valid": true
594
686
  }
595
687
  ]
596
688
  }
package/dist/index.cjs CHANGED
@@ -19,6 +19,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
19
19
  // src/index.js
20
20
  var src_exports = {};
21
21
  __export(src_exports, {
22
+ combine: () => import_language_common2.combine,
22
23
  createFhirResource: () => createFhirResource,
23
24
  dataPath: () => import_language_common2.dataPath,
24
25
  dataValue: () => import_language_common2.dataValue,
@@ -31,6 +32,7 @@ __export(src_exports, {
31
32
  fn: () => import_language_common2.fn,
32
33
  fnIf: () => import_language_common2.fnIf,
33
34
  lastReferenceValue: () => import_language_common2.lastReferenceValue,
35
+ log: () => import_language_common2.log,
34
36
  merge: () => import_language_common2.merge,
35
37
  request: () => request,
36
38
  sourceValue: () => import_language_common2.sourceValue
@@ -40,6 +42,7 @@ module.exports = __toCommonJS(src_exports);
40
42
  // src/Adaptor.js
41
43
  var Adaptor_exports = {};
42
44
  __export(Adaptor_exports, {
45
+ combine: () => import_language_common2.combine,
43
46
  createFhirResource: () => createFhirResource,
44
47
  dataPath: () => import_language_common2.dataPath,
45
48
  dataValue: () => import_language_common2.dataValue,
@@ -51,6 +54,7 @@ __export(Adaptor_exports, {
51
54
  fn: () => import_language_common2.fn,
52
55
  fnIf: () => import_language_common2.fnIf,
53
56
  lastReferenceValue: () => import_language_common2.lastReferenceValue,
57
+ log: () => import_language_common2.log,
54
58
  merge: () => import_language_common2.merge,
55
59
  request: () => request,
56
60
  sourceValue: () => import_language_common2.sourceValue
@@ -187,6 +191,7 @@ function createFhirResource(fhirStore, resource, callback) {
187
191
  var src_default = Adaptor_exports;
188
192
  // Annotate the CommonJS export names for ESM import in node:
189
193
  0 && (module.exports = {
194
+ combine,
190
195
  createFhirResource,
191
196
  dataPath,
192
197
  dataValue,
@@ -198,6 +203,7 @@ var src_default = Adaptor_exports;
198
203
  fn,
199
204
  fnIf,
200
205
  lastReferenceValue,
206
+ log,
201
207
  merge,
202
208
  request,
203
209
  sourceValue
package/dist/index.js CHANGED
@@ -7,6 +7,7 @@ var __export = (target, all) => {
7
7
  // src/Adaptor.js
8
8
  var Adaptor_exports = {};
9
9
  __export(Adaptor_exports, {
10
+ combine: () => combine,
10
11
  createFhirResource: () => createFhirResource,
11
12
  dataPath: () => dataPath,
12
13
  dataValue: () => dataValue,
@@ -18,6 +19,7 @@ __export(Adaptor_exports, {
18
19
  fn: () => fn,
19
20
  fnIf: () => fnIf,
20
21
  lastReferenceValue: () => lastReferenceValue,
22
+ log: () => log,
21
23
  merge: () => merge,
22
24
  request: () => request,
23
25
  sourceValue: () => sourceValue
@@ -96,6 +98,7 @@ function isEmpty(obj) {
96
98
 
97
99
  // src/Adaptor.js
98
100
  import {
101
+ combine,
99
102
  dataPath,
100
103
  dataValue,
101
104
  dateFns,
@@ -105,6 +108,7 @@ import {
105
108
  fn,
106
109
  fnIf,
107
110
  lastReferenceValue,
111
+ log,
108
112
  merge,
109
113
  sourceValue
110
114
  } from "@openfn/language-common";
@@ -171,6 +175,7 @@ function createFhirResource(fhirStore, resource, callback) {
171
175
  // src/index.js
172
176
  var src_default = Adaptor_exports;
173
177
  export {
178
+ combine,
174
179
  createFhirResource,
175
180
  dataPath,
176
181
  dataValue,
@@ -183,6 +188,7 @@ export {
183
188
  fn,
184
189
  fnIf,
185
190
  lastReferenceValue,
191
+ log,
186
192
  merge,
187
193
  request,
188
194
  sourceValue
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@openfn/language-googlehealthcare",
3
3
  "label": "Google Health Care",
4
- "version": "1.1.16",
4
+ "version": "1.2.0",
5
5
  "description": "A Google Health Care language package for use with Open Function",
6
6
  "type": "module",
7
7
  "exports": {
@@ -21,7 +21,7 @@
21
21
  "configuration-schema.json"
22
22
  ],
23
23
  "dependencies": {
24
- "@openfn/language-common": "3.3.1"
24
+ "@openfn/language-common": "3.3.2"
25
25
  },
26
26
  "devDependencies": {
27
27
  "assertion-error": "2.0.0",
@@ -73,4 +73,4 @@ export function createFhirResource(fhirStore?: {
73
73
  fhirStoreId: string;
74
74
  }, resource: object, callback: Function): Operation;
75
75
  export { request } from "./Utils.js";
76
- export { dataPath, dataValue, dateFns, each, field, fields, fn, fnIf, lastReferenceValue, merge, sourceValue } from "@openfn/language-common";
76
+ export { combine, dataPath, dataValue, dateFns, each, field, fields, fn, fnIf, lastReferenceValue, log, merge, sourceValue } from "@openfn/language-common";