microsoft-graph 3.9.5 → 3.9.6
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 +2 -1
- package/dist/cjs/operations/driveItem/streamDriveItemContent.d.ts.map +1 -1
- package/dist/esm/operations/driveItem/streamDriveItemContent.d.ts +2 -1
- package/dist/esm/operations/driveItem/streamDriveItemContent.d.ts.map +1 -1
- package/docs/api/streamDriveItemContent.md +3 -3
- package/package.json +1 -1
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* @module streamDriveItemContent
|
|
4
4
|
* @category Operations
|
|
5
5
|
*/
|
|
6
|
+
import type { Readable } from "node:stream";
|
|
6
7
|
import type { DriveItemRef } from "../../models/DriveItem.ts";
|
|
7
8
|
/**
|
|
8
9
|
* Stream the content of a drive item.
|
|
@@ -12,5 +13,5 @@ import type { DriveItemRef } from "../../models/DriveItem.ts";
|
|
|
12
13
|
* @throws Error if the download fails or the response is not a stream.
|
|
13
14
|
* @see https://learn.microsoft.com/en-us/graph/api/driveitem-get-content
|
|
14
15
|
*/
|
|
15
|
-
export default function streamDriveItemContent(itemRef: DriveItemRef): Promise<
|
|
16
|
+
export default function streamDriveItemContent(itemRef: DriveItemRef): Promise<Readable>;
|
|
16
17
|
//# sourceMappingURL=streamDriveItemContent.d.ts.map
|
|
@@ -1 +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,
|
|
1
|
+
{"version":3,"file":"streamDriveItemContent.d.ts","sourceRoot":"","sources":["../../../../src/operations/driveItem/streamDriveItemContent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAK9D;;;;;;;GAOG;AACH,wBAA8B,sBAAsB,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,QAAQ,CAAC,CAe7F"}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* @module streamDriveItemContent
|
|
4
4
|
* @category Operations
|
|
5
5
|
*/
|
|
6
|
+
import type { Readable } from "node:stream";
|
|
6
7
|
import type { DriveItemRef } from "../../models/DriveItem.ts";
|
|
7
8
|
/**
|
|
8
9
|
* Stream the content of a drive item.
|
|
@@ -12,5 +13,5 @@ import type { DriveItemRef } from "../../models/DriveItem.ts";
|
|
|
12
13
|
* @throws Error if the download fails or the response is not a stream.
|
|
13
14
|
* @see https://learn.microsoft.com/en-us/graph/api/driveitem-get-content
|
|
14
15
|
*/
|
|
15
|
-
export default function streamDriveItemContent(itemRef: DriveItemRef): Promise<
|
|
16
|
+
export default function streamDriveItemContent(itemRef: DriveItemRef): Promise<Readable>;
|
|
16
17
|
//# sourceMappingURL=streamDriveItemContent.d.ts.map
|
|
@@ -1 +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,
|
|
1
|
+
{"version":3,"file":"streamDriveItemContent.d.ts","sourceRoot":"","sources":["../../../../src/operations/driveItem/streamDriveItemContent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAK9D;;;;;;;GAOG;AACH,wBAA8B,sBAAsB,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,QAAQ,CAAC,CAe7F"}
|
|
@@ -8,9 +8,9 @@ Stream the content of a drive item as a Node.js readable stream.
|
|
|
8
8
|
|
|
9
9
|
### streamDriveItemContent()
|
|
10
10
|
|
|
11
|
-
> **streamDriveItemContent**(`itemRef`): [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<[`
|
|
11
|
+
> **streamDriveItemContent**(`itemRef`): [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<[`Readable`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/node/stream.d.ts#L68)\>
|
|
12
12
|
|
|
13
|
-
Defined in: [src/operations/driveItem/streamDriveItemContent.ts:
|
|
13
|
+
Defined in: [src/operations/driveItem/streamDriveItemContent.ts:21](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/operations/driveItem/streamDriveItemContent.ts#L21)
|
|
14
14
|
|
|
15
15
|
Stream the content of a drive item.
|
|
16
16
|
|
|
@@ -22,7 +22,7 @@ Stream the content of a drive item.
|
|
|
22
22
|
|
|
23
23
|
#### Returns
|
|
24
24
|
|
|
25
|
-
[`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<[`
|
|
25
|
+
[`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<[`Readable`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/node/stream.d.ts#L68)\>
|
|
26
26
|
|
|
27
27
|
A Node.js readable stream of the drive item content.
|
|
28
28
|
|