@openfn/language-msgraph 0.7.15 → 0.8.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 +54 -0
- package/dist/index.cjs +3 -0
- package/dist/index.js +4 -1
- package/package.json +3 -3
- package/types/Adaptor.d.ts +1 -1
package/ast.json
CHANGED
|
@@ -1104,6 +1104,60 @@
|
|
|
1104
1104
|
]
|
|
1105
1105
|
},
|
|
1106
1106
|
"valid": false
|
|
1107
|
+
},
|
|
1108
|
+
{
|
|
1109
|
+
"name": "as",
|
|
1110
|
+
"params": [
|
|
1111
|
+
"key",
|
|
1112
|
+
"operation"
|
|
1113
|
+
],
|
|
1114
|
+
"docs": {
|
|
1115
|
+
"description": "Run an operation and save the result to a custom key in state instead of overwriting state.data.",
|
|
1116
|
+
"tags": [
|
|
1117
|
+
{
|
|
1118
|
+
"title": "public",
|
|
1119
|
+
"description": null,
|
|
1120
|
+
"type": null
|
|
1121
|
+
},
|
|
1122
|
+
{
|
|
1123
|
+
"title": "function",
|
|
1124
|
+
"description": null,
|
|
1125
|
+
"name": null
|
|
1126
|
+
},
|
|
1127
|
+
{
|
|
1128
|
+
"title": "example",
|
|
1129
|
+
"description": "as('cceData', collections.get('cce-data-dhis2', { key: `*:*:${$.syncedAt}*` }));",
|
|
1130
|
+
"caption": "Fetch cce-data from collections and store them under state.cceData"
|
|
1131
|
+
},
|
|
1132
|
+
{
|
|
1133
|
+
"title": "param",
|
|
1134
|
+
"description": "The state key to assign the result of the operation to.",
|
|
1135
|
+
"type": {
|
|
1136
|
+
"type": "NameExpression",
|
|
1137
|
+
"name": "string"
|
|
1138
|
+
},
|
|
1139
|
+
"name": "key"
|
|
1140
|
+
},
|
|
1141
|
+
{
|
|
1142
|
+
"title": "param",
|
|
1143
|
+
"description": " An operation that returns a new state object with a `data` property",
|
|
1144
|
+
"type": {
|
|
1145
|
+
"type": "NameExpression",
|
|
1146
|
+
"name": "function"
|
|
1147
|
+
},
|
|
1148
|
+
"name": "operation"
|
|
1149
|
+
},
|
|
1150
|
+
{
|
|
1151
|
+
"title": "returns",
|
|
1152
|
+
"description": null,
|
|
1153
|
+
"type": {
|
|
1154
|
+
"type": "NameExpression",
|
|
1155
|
+
"name": "Operation"
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1158
|
+
]
|
|
1159
|
+
},
|
|
1160
|
+
"valid": true
|
|
1107
1161
|
}
|
|
1108
1162
|
]
|
|
1109
1163
|
}
|
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
|
+
as: () => import_language_common3.as,
|
|
28
29
|
create: () => create,
|
|
29
30
|
cursor: () => import_language_common3.cursor,
|
|
30
31
|
dataPath: () => import_language_common3.dataPath,
|
|
@@ -54,6 +55,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
54
55
|
// src/Adaptor.js
|
|
55
56
|
var Adaptor_exports = {};
|
|
56
57
|
__export(Adaptor_exports, {
|
|
58
|
+
as: () => import_language_common3.as,
|
|
57
59
|
create: () => create,
|
|
58
60
|
cursor: () => import_language_common3.cursor,
|
|
59
61
|
dataPath: () => import_language_common3.dataPath,
|
|
@@ -417,6 +419,7 @@ function uploadFile(resource, data, callback) {
|
|
|
417
419
|
var src_default = Adaptor_exports;
|
|
418
420
|
// Annotate the CommonJS export names for ESM import in node:
|
|
419
421
|
0 && (module.exports = {
|
|
422
|
+
as,
|
|
420
423
|
create,
|
|
421
424
|
cursor,
|
|
422
425
|
dataPath,
|
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
|
+
as: () => as,
|
|
10
11
|
create: () => create,
|
|
11
12
|
cursor: () => cursor,
|
|
12
13
|
dataPath: () => dataPath,
|
|
@@ -188,7 +189,8 @@ import {
|
|
|
188
189
|
lastReferenceValue,
|
|
189
190
|
merge,
|
|
190
191
|
sourceValue,
|
|
191
|
-
parseCsv
|
|
192
|
+
parseCsv,
|
|
193
|
+
as
|
|
192
194
|
} from "@openfn/language-common";
|
|
193
195
|
function execute(...operations) {
|
|
194
196
|
const initialState = {
|
|
@@ -386,6 +388,7 @@ function uploadFile(resource, data, callback) {
|
|
|
386
388
|
// src/index.js
|
|
387
389
|
var src_default = Adaptor_exports;
|
|
388
390
|
export {
|
|
391
|
+
as,
|
|
389
392
|
create,
|
|
390
393
|
cursor,
|
|
391
394
|
dataPath,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfn/language-msgraph",
|
|
3
3
|
"label": "Microsoft Graph",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.8.1",
|
|
5
5
|
"description": "Microsoft Graph Language Pack for OpenFn",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"configuration-schema.json"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"undici": "^5.
|
|
24
|
+
"undici": "^5.29.0",
|
|
25
25
|
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.0/xlsx-0.20.0.tgz",
|
|
26
|
-
"@openfn/language-common": "
|
|
26
|
+
"@openfn/language-common": "3.0.1"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"assertion-error": "2.0.0",
|
package/types/Adaptor.d.ts
CHANGED
|
@@ -121,4 +121,4 @@ export function uploadFile(resource: {
|
|
|
121
121
|
onConflict?: string;
|
|
122
122
|
}, data: any, callback: Function): Operation;
|
|
123
123
|
export { request, sheetToBuffer } from "./Utils";
|
|
124
|
-
export { cursor, dataPath, dataValue, dateFns, each, field, fields, fn, fnIf, lastReferenceValue, merge, sourceValue, parseCsv } from "@openfn/language-common";
|
|
124
|
+
export { cursor, dataPath, dataValue, dateFns, each, field, fields, fn, fnIf, lastReferenceValue, merge, sourceValue, parseCsv, as } from "@openfn/language-common";
|