@openfn/language-gmail 2.0.15 → 2.1.1
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 +49 -0
- package/dist/index.cjs +3 -0
- package/dist/index.js +3 -0
- package/package.json +2 -2
- package/types/Adaptor.d.ts +1 -1
package/ast.json
CHANGED
|
@@ -739,6 +739,55 @@
|
|
|
739
739
|
]
|
|
740
740
|
},
|
|
741
741
|
"valid": false
|
|
742
|
+
},
|
|
743
|
+
{
|
|
744
|
+
"name": "log",
|
|
745
|
+
"params": [
|
|
746
|
+
"args"
|
|
747
|
+
],
|
|
748
|
+
"docs": {
|
|
749
|
+
"description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.",
|
|
750
|
+
"tags": [
|
|
751
|
+
{
|
|
752
|
+
"title": "public",
|
|
753
|
+
"description": null,
|
|
754
|
+
"type": null
|
|
755
|
+
},
|
|
756
|
+
{
|
|
757
|
+
"title": "function",
|
|
758
|
+
"description": null,
|
|
759
|
+
"name": null
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
"title": "example",
|
|
763
|
+
"description": "log('Patient List::', $.patients);",
|
|
764
|
+
"caption": "Log values from state"
|
|
765
|
+
},
|
|
766
|
+
{
|
|
767
|
+
"title": "example",
|
|
768
|
+
"description": "fn((state) => {\n console.log(state.data);\n return state;\n})",
|
|
769
|
+
"caption": "Use console.log inside a callback or fn block"
|
|
770
|
+
},
|
|
771
|
+
{
|
|
772
|
+
"title": "param",
|
|
773
|
+
"description": "A value or message to display in the logs",
|
|
774
|
+
"type": {
|
|
775
|
+
"type": "NameExpression",
|
|
776
|
+
"name": "any"
|
|
777
|
+
},
|
|
778
|
+
"name": "args"
|
|
779
|
+
},
|
|
780
|
+
{
|
|
781
|
+
"title": "returns",
|
|
782
|
+
"description": null,
|
|
783
|
+
"type": {
|
|
784
|
+
"type": "NameExpression",
|
|
785
|
+
"name": "Operation"
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
]
|
|
789
|
+
},
|
|
790
|
+
"valid": true
|
|
742
791
|
}
|
|
743
792
|
]
|
|
744
793
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -39,6 +39,7 @@ __export(src_exports, {
|
|
|
39
39
|
fnIf: () => import_language_common2.fnIf,
|
|
40
40
|
getContentsFromMessages: () => getContentsFromMessages,
|
|
41
41
|
lastReferenceValue: () => import_language_common2.lastReferenceValue,
|
|
42
|
+
log: () => import_language_common2.log,
|
|
42
43
|
merge: () => import_language_common2.merge,
|
|
43
44
|
sendMessage: () => sendMessage,
|
|
44
45
|
sourceValue: () => import_language_common2.sourceValue
|
|
@@ -61,6 +62,7 @@ __export(Adaptor_exports, {
|
|
|
61
62
|
fnIf: () => import_language_common2.fnIf,
|
|
62
63
|
getContentsFromMessages: () => getContentsFromMessages,
|
|
63
64
|
lastReferenceValue: () => import_language_common2.lastReferenceValue,
|
|
65
|
+
log: () => import_language_common2.log,
|
|
64
66
|
merge: () => import_language_common2.merge,
|
|
65
67
|
sendMessage: () => sendMessage,
|
|
66
68
|
sourceValue: () => import_language_common2.sourceValue
|
|
@@ -462,6 +464,7 @@ var src_default = Adaptor_exports;
|
|
|
462
464
|
fnIf,
|
|
463
465
|
getContentsFromMessages,
|
|
464
466
|
lastReferenceValue,
|
|
467
|
+
log,
|
|
465
468
|
merge,
|
|
466
469
|
sendMessage,
|
|
467
470
|
sourceValue
|
package/dist/index.js
CHANGED
|
@@ -20,6 +20,7 @@ __export(Adaptor_exports, {
|
|
|
20
20
|
fnIf: () => fnIf,
|
|
21
21
|
getContentsFromMessages: () => getContentsFromMessages,
|
|
22
22
|
lastReferenceValue: () => lastReferenceValue,
|
|
23
|
+
log: () => log,
|
|
23
24
|
merge: () => merge,
|
|
24
25
|
sendMessage: () => sendMessage,
|
|
25
26
|
sourceValue: () => sourceValue
|
|
@@ -321,6 +322,7 @@ import {
|
|
|
321
322
|
fn,
|
|
322
323
|
fnIf,
|
|
323
324
|
lastReferenceValue,
|
|
325
|
+
log,
|
|
324
326
|
merge,
|
|
325
327
|
sourceValue
|
|
326
328
|
} from "@openfn/language-common";
|
|
@@ -441,6 +443,7 @@ export {
|
|
|
441
443
|
fnIf,
|
|
442
444
|
getContentsFromMessages,
|
|
443
445
|
lastReferenceValue,
|
|
446
|
+
log,
|
|
444
447
|
merge,
|
|
445
448
|
sendMessage,
|
|
446
449
|
sourceValue
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfn/language-gmail",
|
|
3
3
|
"label": "Gmail",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.1.1",
|
|
5
5
|
"badge": "Community",
|
|
6
6
|
"description": "OpenFn gmail adaptor",
|
|
7
7
|
"type": "module",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"googleapis": "171.4.0",
|
|
26
26
|
"jszip": "^3.10.1",
|
|
27
|
-
"@openfn/language-common": "3.3.
|
|
27
|
+
"@openfn/language-common": "3.3.3"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"assertion-error": "2.0.0",
|
package/types/Adaptor.d.ts
CHANGED
|
@@ -115,4 +115,4 @@ export type SendMessageOptions = {
|
|
|
115
115
|
content: string | Buffer;
|
|
116
116
|
}>;
|
|
117
117
|
};
|
|
118
|
-
export { alterState, combine, cursor, dataPath, dataValue, each, field, fields, fn, fnIf, lastReferenceValue, merge, sourceValue } from "@openfn/language-common";
|
|
118
|
+
export { alterState, combine, cursor, dataPath, dataValue, each, field, fields, fn, fnIf, lastReferenceValue, log, merge, sourceValue } from "@openfn/language-common";
|