@pipedream/sharepoint 0.3.1 → 0.3.3
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/actions/create-item/create-item.mjs +1 -1
- package/actions/create-list/create-list.mjs +1 -1
- package/actions/download-file/download-file.mjs +6 -1
- package/actions/update-item/update-item.mjs +1 -1
- package/package.json +2 -2
- package/sharepoint.app.mjs +7 -1
- package/sources/new-list-item/new-list-item.mjs +1 -1
- package/sources/updated-list-item/updated-list-item.mjs +1 -1
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "sharepoint-create-item",
|
|
5
5
|
name: "Create Item",
|
|
6
6
|
description: "Create a new item in Microsoft Sharepoint. [See the documentation](https://learn.microsoft.com/en-us/graph/api/listitem-create?view=graph-rest-1.0&tabs=http)",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.5",
|
|
8
8
|
type: "action",
|
|
9
9
|
props: {
|
|
10
10
|
sharepoint,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "sharepoint-create-list",
|
|
5
5
|
name: "Create List",
|
|
6
6
|
description: "Create a new list in Microsoft Sharepoint. [See the documentation](https://learn.microsoft.com/en-us/graph/api/list-create?view=graph-rest-1.0&tabs=http)",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.5",
|
|
8
8
|
type: "action",
|
|
9
9
|
props: {
|
|
10
10
|
sharepoint,
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
key: "sharepoint-download-file",
|
|
6
6
|
name: "Download File",
|
|
7
7
|
description: "Download a Microsoft Sharepoint file to the /tmp directory. [See the documentation](https://learn.microsoft.com/en-us/graph/api/driveitem-get-content?view=graph-rest-1.0&tabs=http)",
|
|
8
|
-
version: "0.0.
|
|
8
|
+
version: "0.0.4",
|
|
9
9
|
type: "action",
|
|
10
10
|
props: {
|
|
11
11
|
sharepoint,
|
|
@@ -39,6 +39,11 @@ export default {
|
|
|
39
39
|
label: "Filename",
|
|
40
40
|
description: "The filename to save the downloaded file as in the `/tmp` directory",
|
|
41
41
|
},
|
|
42
|
+
syncDir: {
|
|
43
|
+
type: "dir",
|
|
44
|
+
accessMode: "write",
|
|
45
|
+
sync: true,
|
|
46
|
+
},
|
|
42
47
|
},
|
|
43
48
|
async run({ $ }) {
|
|
44
49
|
const response = await this.sharepoint.getFile({
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
key: "sharepoint-update-item",
|
|
6
6
|
name: "Update Item",
|
|
7
7
|
description: "Updates an existing item in Microsoft Sharepoint. [See the documentation](https://learn.microsoft.com/en-us/graph/api/listitem-update?view=graph-rest-1.0&tabs=http)",
|
|
8
|
-
version: "0.0.
|
|
8
|
+
version: "0.0.4",
|
|
9
9
|
type: "action",
|
|
10
10
|
props: {
|
|
11
11
|
sharepoint,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pipedream/sharepoint",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "Pipedream Microsoft Sharepoint Online Components",
|
|
5
5
|
"main": "sharepoint.app.mjs",
|
|
6
6
|
"keywords": [
|
|
@@ -13,6 +13,6 @@
|
|
|
13
13
|
"access": "public"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@pipedream/platform": "^3.0
|
|
16
|
+
"@pipedream/platform": "^3.1.0"
|
|
17
17
|
}
|
|
18
18
|
}
|
package/sharepoint.app.mjs
CHANGED
|
@@ -14,7 +14,7 @@ export default {
|
|
|
14
14
|
url: prevContext.nextLink,
|
|
15
15
|
}
|
|
16
16
|
: {};
|
|
17
|
-
const response = await this.
|
|
17
|
+
const response = await this.listAllSites(args);
|
|
18
18
|
const options = response.value?.map(({
|
|
19
19
|
id: value, displayName: label,
|
|
20
20
|
}) => ({
|
|
@@ -205,6 +205,12 @@ export default {
|
|
|
205
205
|
...args,
|
|
206
206
|
});
|
|
207
207
|
},
|
|
208
|
+
listAllSites(args = {}) {
|
|
209
|
+
return this._makeRequest({
|
|
210
|
+
path: "/sites?search=*",
|
|
211
|
+
...args,
|
|
212
|
+
});
|
|
213
|
+
},
|
|
208
214
|
listLists({
|
|
209
215
|
siteId, ...args
|
|
210
216
|
}) {
|