@openfn/language-hubtel 1.0.21 → 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
@@ -416,6 +416,49 @@
416
416
  },
417
417
  "valid": true
418
418
  },
419
+ {
420
+ "name": "combine",
421
+ "params": [
422
+ "operations"
423
+ ],
424
+ "docs": {
425
+ "description": "Combines two operations into one",
426
+ "tags": [
427
+ {
428
+ "title": "public",
429
+ "description": null,
430
+ "type": null
431
+ },
432
+ {
433
+ "title": "function",
434
+ "description": null,
435
+ "name": null
436
+ },
437
+ {
438
+ "title": "example",
439
+ "description": "combine(\n create('foo'),\n delete('bar')\n)"
440
+ },
441
+ {
442
+ "title": "param",
443
+ "description": "Operations to be performed.",
444
+ "type": {
445
+ "type": "NameExpression",
446
+ "name": "Operations"
447
+ },
448
+ "name": "operations"
449
+ },
450
+ {
451
+ "title": "returns",
452
+ "description": null,
453
+ "type": {
454
+ "type": "NameExpression",
455
+ "name": "Operation"
456
+ }
457
+ }
458
+ ]
459
+ },
460
+ "valid": true
461
+ },
419
462
  {
420
463
  "name": "field",
421
464
  "params": [
@@ -655,6 +698,55 @@
655
698
  ]
656
699
  },
657
700
  "valid": false
701
+ },
702
+ {
703
+ "name": "log",
704
+ "params": [
705
+ "args"
706
+ ],
707
+ "docs": {
708
+ "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.",
709
+ "tags": [
710
+ {
711
+ "title": "public",
712
+ "description": null,
713
+ "type": null
714
+ },
715
+ {
716
+ "title": "function",
717
+ "description": null,
718
+ "name": null
719
+ },
720
+ {
721
+ "title": "example",
722
+ "description": "log('Patient List::', $.patients);",
723
+ "caption": "Log values from state"
724
+ },
725
+ {
726
+ "title": "example",
727
+ "description": "fn((state) => {\n console.log(state.data);\n return state;\n})",
728
+ "caption": "Use console.log inside a callback or fn block"
729
+ },
730
+ {
731
+ "title": "param",
732
+ "description": "A value or message to display in the logs",
733
+ "type": {
734
+ "type": "NameExpression",
735
+ "name": "any"
736
+ },
737
+ "name": "args"
738
+ },
739
+ {
740
+ "title": "returns",
741
+ "description": null,
742
+ "type": {
743
+ "type": "NameExpression",
744
+ "name": "Operation"
745
+ }
746
+ }
747
+ ]
748
+ },
749
+ "valid": true
658
750
  }
659
751
  ]
660
752
  }
package/dist/index.cjs CHANGED
@@ -25,6 +25,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
25
25
  // src/index.js
26
26
  var src_exports = {};
27
27
  __export(src_exports, {
28
+ combine: () => import_language_common2.combine,
28
29
  cursor: () => import_language_common2.cursor,
29
30
  dataPath: () => import_language_common2.dataPath,
30
31
  dataValue: () => import_language_common2.dataValue,
@@ -35,6 +36,7 @@ __export(src_exports, {
35
36
  fields: () => import_language_common2.fields,
36
37
  fn: () => import_language_common2.fn,
37
38
  lastReferenceValue: () => import_language_common2.lastReferenceValue,
39
+ log: () => import_language_common2.log,
38
40
  merge: () => import_language_common2.merge,
39
41
  request: () => request2,
40
42
  sendSMS: () => sendSMS,
@@ -45,6 +47,7 @@ module.exports = __toCommonJS(src_exports);
45
47
  // src/Adaptor.js
46
48
  var Adaptor_exports = {};
47
49
  __export(Adaptor_exports, {
50
+ combine: () => import_language_common2.combine,
48
51
  cursor: () => import_language_common2.cursor,
49
52
  dataPath: () => import_language_common2.dataPath,
50
53
  dataValue: () => import_language_common2.dataValue,
@@ -54,6 +57,7 @@ __export(Adaptor_exports, {
54
57
  fields: () => import_language_common2.fields,
55
58
  fn: () => import_language_common2.fn,
56
59
  lastReferenceValue: () => import_language_common2.lastReferenceValue,
60
+ log: () => import_language_common2.log,
57
61
  merge: () => import_language_common2.merge,
58
62
  request: () => request2,
59
63
  sendSMS: () => sendSMS,
@@ -121,6 +125,7 @@ function request2(method, path, body, options = {}) {
121
125
  var src_default = Adaptor_exports;
122
126
  // Annotate the CommonJS export names for ESM import in node:
123
127
  0 && (module.exports = {
128
+ combine,
124
129
  cursor,
125
130
  dataPath,
126
131
  dataValue,
@@ -130,6 +135,7 @@ var src_default = Adaptor_exports;
130
135
  fields,
131
136
  fn,
132
137
  lastReferenceValue,
138
+ log,
133
139
  merge,
134
140
  request,
135
141
  sendSMS,
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,6 +17,7 @@ __export(Adaptor_exports, {
16
17
  fields: () => fields,
17
18
  fn: () => fn,
18
19
  lastReferenceValue: () => lastReferenceValue,
20
+ log: () => log,
19
21
  merge: () => merge,
20
22
  request: () => request2,
21
23
  sendSMS: () => sendSMS,
@@ -64,15 +66,17 @@ var request = (configuration = {}, method, path, options) => {
64
66
 
65
67
  // src/Adaptor.js
66
68
  import {
69
+ combine,
70
+ cursor,
67
71
  dataPath,
68
72
  dataValue,
69
73
  dateFns,
70
- cursor,
71
74
  each,
72
75
  field,
73
76
  fields,
74
77
  fn,
75
78
  lastReferenceValue,
79
+ log,
76
80
  merge,
77
81
  sourceValue
78
82
  } from "@openfn/language-common";
@@ -98,6 +102,7 @@ function request2(method, path, body, options = {}) {
98
102
  // src/index.js
99
103
  var src_default = Adaptor_exports;
100
104
  export {
105
+ combine,
101
106
  cursor,
102
107
  dataPath,
103
108
  dataValue,
@@ -108,6 +113,7 @@ export {
108
113
  fields,
109
114
  fn,
110
115
  lastReferenceValue,
116
+ log,
111
117
  merge,
112
118
  request2 as request,
113
119
  sendSMS,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@openfn/language-hubtel",
3
3
  "label": "Hubtel",
4
- "version": "1.0.21",
4
+ "version": "1.1.0",
5
5
  "description": "OpenFn adaptor for Hubtel",
6
6
  "type": "module",
7
7
  "exports": {
@@ -49,4 +49,4 @@ export type HttpState = {
49
49
  * Options provided to the HTTP request
50
50
  */
51
51
  export type RequestOptions = any;
52
- export { dataPath, dataValue, dateFns, cursor, each, field, fields, fn, lastReferenceValue, merge, sourceValue } from "@openfn/language-common";
52
+ export { combine, cursor, dataPath, dataValue, dateFns, each, field, fields, fn, lastReferenceValue, log, merge, sourceValue } from "@openfn/language-common";