@openfn/language-intuit 1.0.20 → 1.1.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
@@ -281,6 +281,49 @@
281
281
  },
282
282
  "valid": true
283
283
  },
284
+ {
285
+ "name": "combine",
286
+ "params": [
287
+ "operations"
288
+ ],
289
+ "docs": {
290
+ "description": "Combines two operations into one",
291
+ "tags": [
292
+ {
293
+ "title": "public",
294
+ "description": null,
295
+ "type": null
296
+ },
297
+ {
298
+ "title": "function",
299
+ "description": null,
300
+ "name": null
301
+ },
302
+ {
303
+ "title": "example",
304
+ "description": "combine(\n create('foo'),\n delete('bar')\n)"
305
+ },
306
+ {
307
+ "title": "param",
308
+ "description": "Operations to be performed.",
309
+ "type": {
310
+ "type": "NameExpression",
311
+ "name": "Operations"
312
+ },
313
+ "name": "operations"
314
+ },
315
+ {
316
+ "title": "returns",
317
+ "description": null,
318
+ "type": {
319
+ "type": "NameExpression",
320
+ "name": "Operation"
321
+ }
322
+ }
323
+ ]
324
+ },
325
+ "valid": true
326
+ },
284
327
  {
285
328
  "name": "field",
286
329
  "params": [
@@ -520,6 +563,55 @@
520
563
  ]
521
564
  },
522
565
  "valid": false
566
+ },
567
+ {
568
+ "name": "log",
569
+ "params": [
570
+ "args"
571
+ ],
572
+ "docs": {
573
+ "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.",
574
+ "tags": [
575
+ {
576
+ "title": "public",
577
+ "description": null,
578
+ "type": null
579
+ },
580
+ {
581
+ "title": "function",
582
+ "description": null,
583
+ "name": null
584
+ },
585
+ {
586
+ "title": "example",
587
+ "description": "log('Patient List::', $.patients);",
588
+ "caption": "Log values from state"
589
+ },
590
+ {
591
+ "title": "example",
592
+ "description": "fn((state) => {\n console.log(state.data);\n return state;\n})",
593
+ "caption": "Use console.log inside a callback or fn block"
594
+ },
595
+ {
596
+ "title": "param",
597
+ "description": "A value or message to display in the logs",
598
+ "type": {
599
+ "type": "NameExpression",
600
+ "name": "any"
601
+ },
602
+ "name": "args"
603
+ },
604
+ {
605
+ "title": "returns",
606
+ "description": null,
607
+ "type": {
608
+ "type": "NameExpression",
609
+ "name": "Operation"
610
+ }
611
+ }
612
+ ]
613
+ },
614
+ "valid": true
523
615
  }
524
616
  ]
525
617
  }
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_common.combine,
22
23
  cursor: () => import_language_common.cursor,
23
24
  dataPath: () => import_language_common.dataPath,
24
25
  dataValue: () => import_language_common.dataValue,
@@ -30,6 +31,7 @@ __export(src_exports, {
30
31
  fn: () => import_language_common.fn,
31
32
  http: () => http_exports,
32
33
  lastReferenceValue: () => import_language_common.lastReferenceValue,
34
+ log: () => import_language_common.log,
33
35
  merge: () => import_language_common.merge,
34
36
  sourceValue: () => import_language_common.sourceValue
35
37
  });
@@ -38,6 +40,7 @@ module.exports = __toCommonJS(src_exports);
38
40
  // src/Adaptor.js
39
41
  var Adaptor_exports = {};
40
42
  __export(Adaptor_exports, {
43
+ combine: () => import_language_common.combine,
41
44
  cursor: () => import_language_common.cursor,
42
45
  dataPath: () => import_language_common.dataPath,
43
46
  dataValue: () => import_language_common.dataValue,
@@ -47,6 +50,7 @@ __export(Adaptor_exports, {
47
50
  fields: () => import_language_common.fields,
48
51
  fn: () => import_language_common.fn,
49
52
  lastReferenceValue: () => import_language_common.lastReferenceValue,
53
+ log: () => import_language_common.log,
50
54
  merge: () => import_language_common.merge,
51
55
  sourceValue: () => import_language_common.sourceValue
52
56
  });
@@ -133,6 +137,7 @@ function post(path, data, options = {}) {
133
137
  var src_default = Adaptor_exports;
134
138
  // Annotate the CommonJS export names for ESM import in node:
135
139
  0 && (module.exports = {
140
+ combine,
136
141
  cursor,
137
142
  dataPath,
138
143
  dataValue,
@@ -143,6 +148,7 @@ var src_default = Adaptor_exports;
143
148
  fn,
144
149
  http,
145
150
  lastReferenceValue,
151
+ log,
146
152
  merge,
147
153
  sourceValue
148
154
  });
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
  cursor: () => cursor,
11
12
  dataPath: () => dataPath,
12
13
  dataValue: () => dataValue,
@@ -16,19 +17,22 @@ __export(Adaptor_exports, {
16
17
  fields: () => fields,
17
18
  fn: () => fn,
18
19
  lastReferenceValue: () => lastReferenceValue,
20
+ log: () => log,
19
21
  merge: () => merge,
20
22
  sourceValue: () => sourceValue
21
23
  });
22
24
  import {
25
+ combine,
26
+ cursor,
23
27
  dataPath,
24
28
  dataValue,
25
29
  dateFns,
26
- cursor,
27
30
  each,
28
31
  field,
29
32
  fields,
30
33
  fn,
31
34
  lastReferenceValue,
35
+ log,
32
36
  merge,
33
37
  sourceValue
34
38
  } from "@openfn/language-common";
@@ -116,6 +120,7 @@ function post(path, data, options = {}) {
116
120
  // src/index.js
117
121
  var src_default = Adaptor_exports;
118
122
  export {
123
+ combine,
119
124
  cursor,
120
125
  dataPath,
121
126
  dataValue,
@@ -127,6 +132,7 @@ export {
127
132
  fn,
128
133
  http_exports as http,
129
134
  lastReferenceValue,
135
+ log,
130
136
  merge,
131
137
  sourceValue
132
138
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@openfn/language-intuit",
3
3
  "label": "Intuit",
4
- "version": "1.0.20",
4
+ "version": "1.1.0",
5
5
  "description": "OpenFn adaptor for Intuit (QuickBooks)",
6
6
  "type": "module",
7
7
  "exports": {
@@ -1 +1 @@
1
- export { dataPath, dataValue, dateFns, cursor, each, field, fields, fn, lastReferenceValue, merge, sourceValue } from "@openfn/language-common";
1
+ export { combine, cursor, dataPath, dataValue, dateFns, each, field, fields, fn, lastReferenceValue, log, merge, sourceValue } from "@openfn/language-common";