microsoft-graph 2.28.0 → 2.30.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/dist/cjs/operations/driveItem/streamDriveItemContent.d.ts +16 -0
- package/dist/cjs/operations/driveItem/streamDriveItemContent.d.ts.map +1 -0
- package/dist/cjs/operations/driveItem/streamDriveItemContent.js +35 -0
- package/dist/cjs/operations/site/listSites.d.ts +2 -2
- package/dist/cjs/operations/site/listSites.js +2 -2
- package/dist/cjs/operations/site/listSitesAllGeographies.d.ts +17 -0
- package/dist/cjs/operations/site/listSitesAllGeographies.d.ts.map +1 -0
- package/dist/cjs/operations/site/listSitesAllGeographies.js +38 -0
- package/dist/esm/operations/driveItem/streamDriveItemContent.d.ts +16 -0
- package/dist/esm/operations/driveItem/streamDriveItemContent.d.ts.map +1 -0
- package/dist/esm/operations/driveItem/streamDriveItemContent.js +32 -0
- package/dist/esm/operations/site/listSites.d.ts +2 -2
- package/dist/esm/operations/site/listSites.js +2 -2
- package/dist/esm/operations/site/listSitesAllGeographies.d.ts +17 -0
- package/dist/esm/operations/site/listSitesAllGeographies.d.ts.map +1 -0
- package/dist/esm/operations/site/listSitesAllGeographies.js +35 -0
- package/docs/api/README.md +3 -1
- package/docs/api/listSites-1.md +31 -0
- package/docs/api/listSites.md +2 -2
- package/docs/api/streamDriveItemContent.md +35 -0
- package/package.json +53 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stream the content of a drive item as a Node.js readable stream.
|
|
3
|
+
* @module streamDriveItemContent
|
|
4
|
+
* @category Operations
|
|
5
|
+
*/
|
|
6
|
+
import type { DriveItemRef } from "../../models/DriveItem.ts";
|
|
7
|
+
/**
|
|
8
|
+
* Stream the content of a drive item.
|
|
9
|
+
*
|
|
10
|
+
* @param itemRef Reference to the drive item to be streamed.
|
|
11
|
+
* @returns A Node.js readable stream of the drive item content.
|
|
12
|
+
* @throws Error if the download fails or the response is not a stream.
|
|
13
|
+
* @see https://learn.microsoft.com/en-us/graph/api/driveitem-get-content
|
|
14
|
+
*/
|
|
15
|
+
export default function streamDriveItemContent(itemRef: DriveItemRef): Promise<NodeJS.ReadableStream>;
|
|
16
|
+
//# sourceMappingURL=streamDriveItemContent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"streamDriveItemContent.d.ts","sourceRoot":"","sources":["../../../../src/operations/driveItem/streamDriveItemContent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAK9D;;;;;;;GAOG;AACH,wBAA8B,sBAAsB,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,cAAc,CAAC,CAkB1G"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Stream the content of a drive item as a Node.js readable stream.
|
|
4
|
+
* @module streamDriveItemContent
|
|
5
|
+
* @category Operations
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.default = streamDriveItemContent;
|
|
9
|
+
const http_ts_1 = require("../../services/http.js");
|
|
10
|
+
const operationInvoker_ts_1 = require("../../services/operationInvoker.js");
|
|
11
|
+
const templatedPaths_ts_1 = require("../../services/templatedPaths.js");
|
|
12
|
+
/**
|
|
13
|
+
* Stream the content of a drive item.
|
|
14
|
+
*
|
|
15
|
+
* @param itemRef Reference to the drive item to be streamed.
|
|
16
|
+
* @returns A Node.js readable stream of the drive item content.
|
|
17
|
+
* @throws Error if the download fails or the response is not a stream.
|
|
18
|
+
* @see https://learn.microsoft.com/en-us/graph/api/driveitem-get-content
|
|
19
|
+
*/
|
|
20
|
+
async function streamDriveItemContent(itemRef) {
|
|
21
|
+
const url = `${operationInvoker_ts_1.endpoint}${(0, templatedPaths_ts_1.generatePath)("/sites/{site-id}/drives/{drive-id}/items/{item-id}/content", itemRef)}`;
|
|
22
|
+
const accessToken = await itemRef.context.generateAccessToken();
|
|
23
|
+
const response = await (0, http_ts_1.executeHttpRequest)({
|
|
24
|
+
url,
|
|
25
|
+
method: "GET",
|
|
26
|
+
headers: {
|
|
27
|
+
authorization: `Bearer ${accessToken}`,
|
|
28
|
+
},
|
|
29
|
+
responseType: "stream",
|
|
30
|
+
});
|
|
31
|
+
if (!response || typeof response.data?.pipe !== "function") {
|
|
32
|
+
throw new Error("Failed to get a streamable response");
|
|
33
|
+
}
|
|
34
|
+
return response.data;
|
|
35
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* List
|
|
2
|
+
* List sites in your company geography.
|
|
3
3
|
* @module listSites
|
|
4
4
|
* @category Operations
|
|
5
5
|
*/
|
|
@@ -8,7 +8,7 @@ import type { ContextRef } from "../../models/Context.ts";
|
|
|
8
8
|
import type { GraphOperation } from "../../models/GraphOperation.ts";
|
|
9
9
|
import type { SiteRef } from "../../models/Site.ts";
|
|
10
10
|
/**
|
|
11
|
-
* List
|
|
11
|
+
* List sites in your company geography.
|
|
12
12
|
* @param contextRef Reference to the context.
|
|
13
13
|
* @returns Array of sites, each including its metadata and reference information.
|
|
14
14
|
* @see https://learn.microsoft.com/en-us/graph/api/site-list
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* List
|
|
3
|
+
* List sites in your company geography.
|
|
4
4
|
* @module listSites
|
|
5
5
|
* @category Operations
|
|
6
6
|
*/
|
|
@@ -10,7 +10,7 @@ const operationInvoker_ts_1 = require("../../services/operationInvoker.js");
|
|
|
10
10
|
const site_ts_1 = require("../../services/site.js");
|
|
11
11
|
const templatedPaths_ts_1 = require("../../services/templatedPaths.js");
|
|
12
12
|
/**
|
|
13
|
-
* List
|
|
13
|
+
* List sites in your company geography.
|
|
14
14
|
* @param contextRef Reference to the context.
|
|
15
15
|
* @returns Array of sites, each including its metadata and reference information.
|
|
16
16
|
* @see https://learn.microsoft.com/en-us/graph/api/site-list
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* List sites in all company geographies.
|
|
3
|
+
* @module listSites
|
|
4
|
+
* @category Operations
|
|
5
|
+
*/
|
|
6
|
+
import type { Site } from "@microsoft/microsoft-graph-types";
|
|
7
|
+
import type { ContextRef } from "../../models/Context.ts";
|
|
8
|
+
import type { GraphOperation } from "../../models/GraphOperation.ts";
|
|
9
|
+
import type { SiteRef } from "../../models/Site.ts";
|
|
10
|
+
/**
|
|
11
|
+
* List sites in all company geographies.
|
|
12
|
+
* @param contextRef Reference to the context.
|
|
13
|
+
* @returns Array of sites, each including its metadata and reference information.
|
|
14
|
+
* @see https://learn.microsoft.com/en-us/graph/api/site-getallsites
|
|
15
|
+
*/
|
|
16
|
+
export default function listSitesAllGeographies(contextRef: ContextRef): GraphOperation<(Site & SiteRef)[]>;
|
|
17
|
+
//# sourceMappingURL=listSitesAllGeographies.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listSitesAllGeographies.d.ts","sourceRoot":"","sources":["../../../../src/operations/site/listSitesAllGeographies.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,KAAK,EAAU,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAK5D;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,uBAAuB,CAAC,UAAU,EAAE,UAAU,GAAG,cAAc,CAAC,CAAC,IAAI,GAAG,OAAO,CAAC,EAAE,CAAC,CAuB1G"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* List sites in all company geographies.
|
|
4
|
+
* @module listSites
|
|
5
|
+
* @category Operations
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.default = listSitesAllGeographies;
|
|
9
|
+
const operationInvoker_ts_1 = require("../../services/operationInvoker.js");
|
|
10
|
+
const site_ts_1 = require("../../services/site.js");
|
|
11
|
+
const templatedPaths_ts_1 = require("../../services/templatedPaths.js");
|
|
12
|
+
/**
|
|
13
|
+
* List sites in all company geographies.
|
|
14
|
+
* @param contextRef Reference to the context.
|
|
15
|
+
* @returns Array of sites, each including its metadata and reference information.
|
|
16
|
+
* @see https://learn.microsoft.com/en-us/graph/api/site-getallsites
|
|
17
|
+
*/
|
|
18
|
+
function listSitesAllGeographies(contextRef) {
|
|
19
|
+
return (0, operationInvoker_ts_1.operation)({
|
|
20
|
+
context: contextRef.context,
|
|
21
|
+
method: "GET",
|
|
22
|
+
path: (0, templatedPaths_ts_1.generatePath)("/sites/getAllSites", {}),
|
|
23
|
+
headers: {},
|
|
24
|
+
body: null,
|
|
25
|
+
responseTransform: (response) => {
|
|
26
|
+
const list = response;
|
|
27
|
+
const sites = list.value.map((site) => {
|
|
28
|
+
const siteId = site.id;
|
|
29
|
+
const siteRef = (0, site_ts_1.createSiteRef)(contextRef, siteId);
|
|
30
|
+
return {
|
|
31
|
+
...site,
|
|
32
|
+
...siteRef,
|
|
33
|
+
};
|
|
34
|
+
});
|
|
35
|
+
return sites;
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stream the content of a drive item as a Node.js readable stream.
|
|
3
|
+
* @module streamDriveItemContent
|
|
4
|
+
* @category Operations
|
|
5
|
+
*/
|
|
6
|
+
import type { DriveItemRef } from "../../models/DriveItem.ts";
|
|
7
|
+
/**
|
|
8
|
+
* Stream the content of a drive item.
|
|
9
|
+
*
|
|
10
|
+
* @param itemRef Reference to the drive item to be streamed.
|
|
11
|
+
* @returns A Node.js readable stream of the drive item content.
|
|
12
|
+
* @throws Error if the download fails or the response is not a stream.
|
|
13
|
+
* @see https://learn.microsoft.com/en-us/graph/api/driveitem-get-content
|
|
14
|
+
*/
|
|
15
|
+
export default function streamDriveItemContent(itemRef: DriveItemRef): Promise<NodeJS.ReadableStream>;
|
|
16
|
+
//# sourceMappingURL=streamDriveItemContent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"streamDriveItemContent.d.ts","sourceRoot":"","sources":["../../../../src/operations/driveItem/streamDriveItemContent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAK9D;;;;;;;GAOG;AACH,wBAA8B,sBAAsB,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,cAAc,CAAC,CAkB1G"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stream the content of a drive item as a Node.js readable stream.
|
|
3
|
+
* @module streamDriveItemContent
|
|
4
|
+
* @category Operations
|
|
5
|
+
*/
|
|
6
|
+
import { executeHttpRequest } from "../../services/http.js";
|
|
7
|
+
import { endpoint } from "../../services/operationInvoker.js";
|
|
8
|
+
import { generatePath } from "../../services/templatedPaths.js";
|
|
9
|
+
/**
|
|
10
|
+
* Stream the content of a drive item.
|
|
11
|
+
*
|
|
12
|
+
* @param itemRef Reference to the drive item to be streamed.
|
|
13
|
+
* @returns A Node.js readable stream of the drive item content.
|
|
14
|
+
* @throws Error if the download fails or the response is not a stream.
|
|
15
|
+
* @see https://learn.microsoft.com/en-us/graph/api/driveitem-get-content
|
|
16
|
+
*/
|
|
17
|
+
export default async function streamDriveItemContent(itemRef) {
|
|
18
|
+
const url = `${endpoint}${generatePath("/sites/{site-id}/drives/{drive-id}/items/{item-id}/content", itemRef)}`;
|
|
19
|
+
const accessToken = await itemRef.context.generateAccessToken();
|
|
20
|
+
const response = await executeHttpRequest({
|
|
21
|
+
url,
|
|
22
|
+
method: "GET",
|
|
23
|
+
headers: {
|
|
24
|
+
authorization: `Bearer ${accessToken}`,
|
|
25
|
+
},
|
|
26
|
+
responseType: "stream",
|
|
27
|
+
});
|
|
28
|
+
if (!response || typeof response.data?.pipe !== "function") {
|
|
29
|
+
throw new Error("Failed to get a streamable response");
|
|
30
|
+
}
|
|
31
|
+
return response.data;
|
|
32
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* List
|
|
2
|
+
* List sites in your company geography.
|
|
3
3
|
* @module listSites
|
|
4
4
|
* @category Operations
|
|
5
5
|
*/
|
|
@@ -8,7 +8,7 @@ import type { ContextRef } from "../../models/Context.ts";
|
|
|
8
8
|
import type { GraphOperation } from "../../models/GraphOperation.ts";
|
|
9
9
|
import type { SiteRef } from "../../models/Site.ts";
|
|
10
10
|
/**
|
|
11
|
-
* List
|
|
11
|
+
* List sites in your company geography.
|
|
12
12
|
* @param contextRef Reference to the context.
|
|
13
13
|
* @returns Array of sites, each including its metadata and reference information.
|
|
14
14
|
* @see https://learn.microsoft.com/en-us/graph/api/site-list
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* List
|
|
2
|
+
* List sites in your company geography.
|
|
3
3
|
* @module listSites
|
|
4
4
|
* @category Operations
|
|
5
5
|
*/
|
|
@@ -7,7 +7,7 @@ import { operation } from "../../services/operationInvoker.js";
|
|
|
7
7
|
import { createSiteRef } from "../../services/site.js";
|
|
8
8
|
import { generatePath } from "../../services/templatedPaths.js";
|
|
9
9
|
/**
|
|
10
|
-
* List
|
|
10
|
+
* List sites in your company geography.
|
|
11
11
|
* @param contextRef Reference to the context.
|
|
12
12
|
* @returns Array of sites, each including its metadata and reference information.
|
|
13
13
|
* @see https://learn.microsoft.com/en-us/graph/api/site-list
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* List sites in all company geographies.
|
|
3
|
+
* @module listSites
|
|
4
|
+
* @category Operations
|
|
5
|
+
*/
|
|
6
|
+
import type { Site } from "@microsoft/microsoft-graph-types";
|
|
7
|
+
import type { ContextRef } from "../../models/Context.ts";
|
|
8
|
+
import type { GraphOperation } from "../../models/GraphOperation.ts";
|
|
9
|
+
import type { SiteRef } from "../../models/Site.ts";
|
|
10
|
+
/**
|
|
11
|
+
* List sites in all company geographies.
|
|
12
|
+
* @param contextRef Reference to the context.
|
|
13
|
+
* @returns Array of sites, each including its metadata and reference information.
|
|
14
|
+
* @see https://learn.microsoft.com/en-us/graph/api/site-getallsites
|
|
15
|
+
*/
|
|
16
|
+
export default function listSitesAllGeographies(contextRef: ContextRef): GraphOperation<(Site & SiteRef)[]>;
|
|
17
|
+
//# sourceMappingURL=listSitesAllGeographies.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listSitesAllGeographies.d.ts","sourceRoot":"","sources":["../../../../src/operations/site/listSitesAllGeographies.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,KAAK,EAAU,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAK5D;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,uBAAuB,CAAC,UAAU,EAAE,UAAU,GAAG,cAAc,CAAC,CAAC,IAAI,GAAG,OAAO,CAAC,EAAE,CAAC,CAuB1G"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* List sites in all company geographies.
|
|
3
|
+
* @module listSites
|
|
4
|
+
* @category Operations
|
|
5
|
+
*/
|
|
6
|
+
import { operation } from "../../services/operationInvoker.js";
|
|
7
|
+
import { createSiteRef } from "../../services/site.js";
|
|
8
|
+
import { generatePath } from "../../services/templatedPaths.js";
|
|
9
|
+
/**
|
|
10
|
+
* List sites in all company geographies.
|
|
11
|
+
* @param contextRef Reference to the context.
|
|
12
|
+
* @returns Array of sites, each including its metadata and reference information.
|
|
13
|
+
* @see https://learn.microsoft.com/en-us/graph/api/site-getallsites
|
|
14
|
+
*/
|
|
15
|
+
export default function listSitesAllGeographies(contextRef) {
|
|
16
|
+
return operation({
|
|
17
|
+
context: contextRef.context,
|
|
18
|
+
method: "GET",
|
|
19
|
+
path: generatePath("/sites/getAllSites", {}),
|
|
20
|
+
headers: {},
|
|
21
|
+
body: null,
|
|
22
|
+
responseTransform: (response) => {
|
|
23
|
+
const list = response;
|
|
24
|
+
const sites = list.value.map((site) => {
|
|
25
|
+
const siteId = site.id;
|
|
26
|
+
const siteRef = createSiteRef(contextRef, siteId);
|
|
27
|
+
return {
|
|
28
|
+
...site,
|
|
29
|
+
...siteRef,
|
|
30
|
+
};
|
|
31
|
+
});
|
|
32
|
+
return sites;
|
|
33
|
+
},
|
|
34
|
+
});
|
|
35
|
+
}
|
package/docs/api/README.md
CHANGED
|
@@ -93,7 +93,8 @@
|
|
|
93
93
|
| [insertWorkbookCells](insertWorkbookCells.md) | Insert a new blank range at a specified address, shifting existing cells. |
|
|
94
94
|
| [listDriveItemChildren](listDriveItemChildren.md) | Retrieve the metadata for items in a drive or folder. |
|
|
95
95
|
| [listDrives](listDrives.md) | Retrieve the list of accessible Drives in a Site. |
|
|
96
|
-
| [listSites](listSites.md) | List
|
|
96
|
+
| [listSites](listSites.md) | List sites in your company geography. |
|
|
97
|
+
| [listSites](listSites-1.md) | List sites in all company geographies. |
|
|
97
98
|
| [listWorkbookRangeBorders](listWorkbookRangeBorders.md) | List the borders of a range. |
|
|
98
99
|
| [listWorkbookTableColumns](listWorkbookTableColumns.md) | Retrieve a list of columns in a table. |
|
|
99
100
|
| [listWorkbookTableRows](listWorkbookTableRows.md) | Retrieve a list of rows in a table. |
|
|
@@ -107,6 +108,7 @@
|
|
|
107
108
|
| [setWorkbookRangeFill](setWorkbookRangeFill.md) | Update the fill format of a workbook range. |
|
|
108
109
|
| [setWorkbookRangeFont](setWorkbookRangeFont.md) | Update the font format of a workbook range. |
|
|
109
110
|
| [setWorkbookRangeFormat](setWorkbookRangeFormat.md) | Update the general format of a workbook range. |
|
|
111
|
+
| [streamDriveItemContent](streamDriveItemContent.md) | Stream the content of a drive item as a Node.js readable stream. |
|
|
110
112
|
| [unmergeWorkbookRange](unmergeWorkbookRange.md) | Unmerge a merged range of cells in a worksheet. |
|
|
111
113
|
| [updateWorkbookNamedRange](updateWorkbookNamedRange.md) | Update a named range. |
|
|
112
114
|
| [updateWorkbookRange](updateWorkbookRange.md) | Update a range, including values and formatting. |
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
[Microsoft Graph SDK](README.md) / listSites
|
|
2
|
+
|
|
3
|
+
# listSites
|
|
4
|
+
|
|
5
|
+
List sites in all company geographies.
|
|
6
|
+
|
|
7
|
+
## Functions
|
|
8
|
+
|
|
9
|
+
### listSitesAllGeographies()
|
|
10
|
+
|
|
11
|
+
> **listSitesAllGeographies**(`contextRef`): [`GraphOperation`](GraphOperation.md#graphoperation)\<`Site` & [`SiteRef`](Site-1.md#siteref)[]\>
|
|
12
|
+
|
|
13
|
+
Defined in: [src/operations/site/listSitesAllGeographies.ts:21](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/operations/site/listSitesAllGeographies.ts#L21)
|
|
14
|
+
|
|
15
|
+
List sites in all company geographies.
|
|
16
|
+
|
|
17
|
+
#### Parameters
|
|
18
|
+
|
|
19
|
+
| Parameter | Type | Description |
|
|
20
|
+
| ------ | ------ | ------ |
|
|
21
|
+
| `contextRef` | [`ContextRef`](Context-1.md#contextref) | Reference to the context. |
|
|
22
|
+
|
|
23
|
+
#### Returns
|
|
24
|
+
|
|
25
|
+
[`GraphOperation`](GraphOperation.md#graphoperation)\<`Site` & [`SiteRef`](Site-1.md#siteref)[]\>
|
|
26
|
+
|
|
27
|
+
Array of sites, each including its metadata and reference information.
|
|
28
|
+
|
|
29
|
+
#### See
|
|
30
|
+
|
|
31
|
+
https://learn.microsoft.com/en-us/graph/api/site-getallsites
|
package/docs/api/listSites.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# listSites
|
|
4
4
|
|
|
5
|
-
List
|
|
5
|
+
List sites in your company geography.
|
|
6
6
|
|
|
7
7
|
## Functions
|
|
8
8
|
|
|
@@ -12,7 +12,7 @@ List accessible sites.
|
|
|
12
12
|
|
|
13
13
|
Defined in: [src/operations/site/listSites.ts:21](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/operations/site/listSites.ts#L21)
|
|
14
14
|
|
|
15
|
-
List
|
|
15
|
+
List sites in your company geography.
|
|
16
16
|
|
|
17
17
|
#### Parameters
|
|
18
18
|
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
[Microsoft Graph SDK](README.md) / streamDriveItemContent
|
|
2
|
+
|
|
3
|
+
# streamDriveItemContent
|
|
4
|
+
|
|
5
|
+
Stream the content of a drive item as a Node.js readable stream.
|
|
6
|
+
|
|
7
|
+
## Functions
|
|
8
|
+
|
|
9
|
+
### streamDriveItemContent()
|
|
10
|
+
|
|
11
|
+
> **streamDriveItemContent**(`itemRef`): [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<[`ReadableStream`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/4771e16937e188c0e0eca9749d208676f85fefb9/types/node/globals.d.ts#L201)\>
|
|
12
|
+
|
|
13
|
+
Defined in: src/operations/driveItem/streamDriveItemContent.ts:20
|
|
14
|
+
|
|
15
|
+
Stream the content of a drive item.
|
|
16
|
+
|
|
17
|
+
#### Parameters
|
|
18
|
+
|
|
19
|
+
| Parameter | Type | Description |
|
|
20
|
+
| ------ | ------ | ------ |
|
|
21
|
+
| `itemRef` | [`DriveItemRef`](DriveItem-1.md#driveitemref) | Reference to the drive item to be streamed. |
|
|
22
|
+
|
|
23
|
+
#### Returns
|
|
24
|
+
|
|
25
|
+
[`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<[`ReadableStream`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/4771e16937e188c0e0eca9749d208676f85fefb9/types/node/globals.d.ts#L201)\>
|
|
26
|
+
|
|
27
|
+
A Node.js readable stream of the drive item content.
|
|
28
|
+
|
|
29
|
+
#### Throws
|
|
30
|
+
|
|
31
|
+
Error if the download fails or the response is not a stream.
|
|
32
|
+
|
|
33
|
+
#### See
|
|
34
|
+
|
|
35
|
+
https://learn.microsoft.com/en-us/graph/api/driveitem-get-content
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "microsoft-graph",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.30.0",
|
|
4
4
|
"description": "Microsoft GraphAPI SDK for NodeJS",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -30,8 +30,10 @@
|
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@biomejs/biome": "^1.9.4",
|
|
32
32
|
"@microsoft/microsoft-graph-types": "^2.40.0",
|
|
33
|
+
"@types/csv-parse": "^1.1.12",
|
|
33
34
|
"@types/lodash": "^4.17.17",
|
|
34
35
|
"@types/node": "^22.15.21",
|
|
36
|
+
"csv-parse": "^5.6.0",
|
|
35
37
|
"globals": "^16.2.0",
|
|
36
38
|
"npm-check-updates": "^18.0.1",
|
|
37
39
|
"tsx": "^4.19.4",
|
|
@@ -1257,6 +1259,31 @@
|
|
|
1257
1259
|
"require": "./dist/cjs/operations/driveItem/moveDriveItem.js",
|
|
1258
1260
|
"types": "./dist/esm/operations/driveItem/moveDriveItem.d.ts"
|
|
1259
1261
|
},
|
|
1262
|
+
"./streamDriveItemContent": {
|
|
1263
|
+
"import": "./dist/esm/operations/driveItem/streamDriveItemContent.js",
|
|
1264
|
+
"require": "./dist/cjs/operations/driveItem/streamDriveItemContent.js",
|
|
1265
|
+
"types": "./dist/esm/operations/driveItem/streamDriveItemContent.d.ts"
|
|
1266
|
+
},
|
|
1267
|
+
"./dist/cjs/operations/driveItem/streamDriveItemContent.js": {
|
|
1268
|
+
"import": "./dist/esm/operations/driveItem/streamDriveItemContent.js",
|
|
1269
|
+
"require": "./dist/cjs/operations/driveItem/streamDriveItemContent.js",
|
|
1270
|
+
"types": "./dist/esm/operations/driveItem/streamDriveItemContent.d.ts"
|
|
1271
|
+
},
|
|
1272
|
+
"./dist/cjs/operations/driveItem/streamDriveItemContent": {
|
|
1273
|
+
"import": "./dist/esm/operations/driveItem/streamDriveItemContent.js",
|
|
1274
|
+
"require": "./dist/cjs/operations/driveItem/streamDriveItemContent.js",
|
|
1275
|
+
"types": "./dist/esm/operations/driveItem/streamDriveItemContent.d.ts"
|
|
1276
|
+
},
|
|
1277
|
+
"./operations/driveItem/streamDriveItemContent": {
|
|
1278
|
+
"import": "./dist/esm/operations/driveItem/streamDriveItemContent.js",
|
|
1279
|
+
"require": "./dist/cjs/operations/driveItem/streamDriveItemContent.js",
|
|
1280
|
+
"types": "./dist/esm/operations/driveItem/streamDriveItemContent.d.ts"
|
|
1281
|
+
},
|
|
1282
|
+
"./operations/driveItem/streamDriveItemContent.js": {
|
|
1283
|
+
"import": "./dist/esm/operations/driveItem/streamDriveItemContent.js",
|
|
1284
|
+
"require": "./dist/cjs/operations/driveItem/streamDriveItemContent.js",
|
|
1285
|
+
"types": "./dist/esm/operations/driveItem/streamDriveItemContent.d.ts"
|
|
1286
|
+
},
|
|
1260
1287
|
"./getSite": {
|
|
1261
1288
|
"import": "./dist/esm/operations/site/getSite.js",
|
|
1262
1289
|
"require": "./dist/cjs/operations/site/getSite.js",
|
|
@@ -1332,6 +1359,31 @@
|
|
|
1332
1359
|
"require": "./dist/cjs/operations/site/listSites.js",
|
|
1333
1360
|
"types": "./dist/esm/operations/site/listSites.d.ts"
|
|
1334
1361
|
},
|
|
1362
|
+
"./listSitesAllGeographies": {
|
|
1363
|
+
"import": "./dist/esm/operations/site/listSitesAllGeographies.js",
|
|
1364
|
+
"require": "./dist/cjs/operations/site/listSitesAllGeographies.js",
|
|
1365
|
+
"types": "./dist/esm/operations/site/listSitesAllGeographies.d.ts"
|
|
1366
|
+
},
|
|
1367
|
+
"./dist/cjs/operations/site/listSitesAllGeographies.js": {
|
|
1368
|
+
"import": "./dist/esm/operations/site/listSitesAllGeographies.js",
|
|
1369
|
+
"require": "./dist/cjs/operations/site/listSitesAllGeographies.js",
|
|
1370
|
+
"types": "./dist/esm/operations/site/listSitesAllGeographies.d.ts"
|
|
1371
|
+
},
|
|
1372
|
+
"./dist/cjs/operations/site/listSitesAllGeographies": {
|
|
1373
|
+
"import": "./dist/esm/operations/site/listSitesAllGeographies.js",
|
|
1374
|
+
"require": "./dist/cjs/operations/site/listSitesAllGeographies.js",
|
|
1375
|
+
"types": "./dist/esm/operations/site/listSitesAllGeographies.d.ts"
|
|
1376
|
+
},
|
|
1377
|
+
"./operations/site/listSitesAllGeographies": {
|
|
1378
|
+
"import": "./dist/esm/operations/site/listSitesAllGeographies.js",
|
|
1379
|
+
"require": "./dist/cjs/operations/site/listSitesAllGeographies.js",
|
|
1380
|
+
"types": "./dist/esm/operations/site/listSitesAllGeographies.d.ts"
|
|
1381
|
+
},
|
|
1382
|
+
"./operations/site/listSitesAllGeographies.js": {
|
|
1383
|
+
"import": "./dist/esm/operations/site/listSitesAllGeographies.js",
|
|
1384
|
+
"require": "./dist/cjs/operations/site/listSitesAllGeographies.js",
|
|
1385
|
+
"types": "./dist/esm/operations/site/listSitesAllGeographies.d.ts"
|
|
1386
|
+
},
|
|
1335
1387
|
"./searchSites": {
|
|
1336
1388
|
"import": "./dist/esm/operations/site/searchSites.js",
|
|
1337
1389
|
"require": "./dist/cjs/operations/site/searchSites.js",
|