microsoft-graph 3.9.6 → 3.9.8
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/models/AccessToken.d.ts +1 -1
- package/dist/cjs/models/AccessToken.d.ts.map +1 -1
- package/dist/cjs/models/AzureApplicationCredentials.d.ts +4 -4
- package/dist/cjs/models/AzureApplicationCredentials.d.ts.map +1 -1
- package/dist/cjs/models/Cell.d.ts +1 -1
- package/dist/cjs/models/Cell.d.ts.map +1 -1
- package/dist/cjs/models/Color.d.ts +1 -1
- package/dist/cjs/models/Color.d.ts.map +1 -1
- package/dist/cjs/models/Column.d.ts +2 -2
- package/dist/cjs/models/Column.d.ts.map +1 -1
- package/dist/cjs/models/ConflictBehavior.d.ts +13 -0
- package/dist/cjs/models/ConflictBehavior.d.ts.map +1 -0
- package/dist/cjs/models/ConflictBehavior.js +7 -0
- package/dist/cjs/models/Drive.d.ts +2 -2
- package/dist/cjs/models/Drive.d.ts.map +1 -1
- package/dist/cjs/models/DriveItem.d.ts +3 -3
- package/dist/cjs/models/DriveItem.d.ts.map +1 -1
- package/dist/cjs/models/FontName.d.ts +1 -1
- package/dist/cjs/models/FontName.d.ts.map +1 -1
- package/dist/cjs/models/HostName.d.ts +1 -1
- package/dist/cjs/models/HostName.d.ts.map +1 -1
- package/dist/cjs/models/Http.d.ts +2 -2
- package/dist/cjs/models/Http.d.ts.map +1 -1
- package/dist/cjs/models/Row.d.ts +2 -2
- package/dist/cjs/models/Row.d.ts.map +1 -1
- package/dist/cjs/models/Site.d.ts +2 -2
- package/dist/cjs/models/Site.d.ts.map +1 -1
- package/dist/cjs/models/WorkbookNamedRange.d.ts +1 -1
- package/dist/cjs/models/WorkbookNamedRange.d.ts.map +1 -1
- package/dist/cjs/models/WorkbookPivotTable.d.ts +1 -1
- package/dist/cjs/models/WorkbookPivotTable.d.ts.map +1 -1
- package/dist/cjs/models/WorkbookSession.d.ts +1 -1
- package/dist/cjs/models/WorkbookSession.d.ts.map +1 -1
- package/dist/cjs/models/WorkbookTable.d.ts +1 -1
- package/dist/cjs/models/WorkbookTable.d.ts.map +1 -1
- package/dist/cjs/models/WorkbookWorksheet.d.ts +2 -2
- package/dist/cjs/models/WorkbookWorksheet.d.ts.map +1 -1
- package/dist/cjs/operations/drive/createFolder.d.ts +8 -1
- package/dist/cjs/operations/drive/createFolder.d.ts.map +1 -1
- package/dist/cjs/operations/drive/createFolder.js +3 -2
- package/dist/cjs/operations/driveItem/createDriveItemContent.d.ts +2 -1
- package/dist/cjs/operations/driveItem/createDriveItemContent.d.ts.map +1 -1
- package/dist/cjs/operations/driveItem/createDriveItemContent.js +4 -1
- package/dist/cjs/tasks/tryGetDriveItemByPath.d.ts +3 -3
- package/dist/cjs/tasks/tryGetDriveItemByPath.d.ts.map +1 -1
- package/dist/cjs/tasks/tryGetDriveItemByPath.js +4 -4
- package/dist/esm/models/AccessToken.d.ts +1 -1
- package/dist/esm/models/AccessToken.d.ts.map +1 -1
- package/dist/esm/models/AzureApplicationCredentials.d.ts +4 -4
- package/dist/esm/models/AzureApplicationCredentials.d.ts.map +1 -1
- package/dist/esm/models/Cell.d.ts +1 -1
- package/dist/esm/models/Cell.d.ts.map +1 -1
- package/dist/esm/models/Color.d.ts +1 -1
- package/dist/esm/models/Color.d.ts.map +1 -1
- package/dist/esm/models/Column.d.ts +2 -2
- package/dist/esm/models/Column.d.ts.map +1 -1
- package/dist/esm/models/ConflictBehavior.d.ts +13 -0
- package/dist/esm/models/ConflictBehavior.d.ts.map +1 -0
- package/dist/esm/models/ConflictBehavior.js +6 -0
- package/dist/esm/models/Drive.d.ts +2 -2
- package/dist/esm/models/Drive.d.ts.map +1 -1
- package/dist/esm/models/DriveItem.d.ts +3 -3
- package/dist/esm/models/DriveItem.d.ts.map +1 -1
- package/dist/esm/models/FontName.d.ts +1 -1
- package/dist/esm/models/FontName.d.ts.map +1 -1
- package/dist/esm/models/HostName.d.ts +1 -1
- package/dist/esm/models/HostName.d.ts.map +1 -1
- package/dist/esm/models/Http.d.ts +2 -2
- package/dist/esm/models/Http.d.ts.map +1 -1
- package/dist/esm/models/Row.d.ts +2 -2
- package/dist/esm/models/Row.d.ts.map +1 -1
- package/dist/esm/models/Site.d.ts +2 -2
- package/dist/esm/models/Site.d.ts.map +1 -1
- package/dist/esm/models/WorkbookNamedRange.d.ts +1 -1
- package/dist/esm/models/WorkbookNamedRange.d.ts.map +1 -1
- package/dist/esm/models/WorkbookPivotTable.d.ts +1 -1
- package/dist/esm/models/WorkbookPivotTable.d.ts.map +1 -1
- package/dist/esm/models/WorkbookSession.d.ts +1 -1
- package/dist/esm/models/WorkbookSession.d.ts.map +1 -1
- package/dist/esm/models/WorkbookTable.d.ts +1 -1
- package/dist/esm/models/WorkbookTable.d.ts.map +1 -1
- package/dist/esm/models/WorkbookWorksheet.d.ts +2 -2
- package/dist/esm/models/WorkbookWorksheet.d.ts.map +1 -1
- package/dist/esm/operations/drive/createFolder.d.ts +8 -1
- package/dist/esm/operations/drive/createFolder.d.ts.map +1 -1
- package/dist/esm/operations/drive/createFolder.js +3 -2
- package/dist/esm/operations/driveItem/createDriveItemContent.d.ts +2 -1
- package/dist/esm/operations/driveItem/createDriveItemContent.d.ts.map +1 -1
- package/dist/esm/operations/driveItem/createDriveItemContent.js +4 -1
- package/dist/esm/tasks/tryGetDriveItemByPath.d.ts +3 -3
- package/dist/esm/tasks/tryGetDriveItemByPath.d.ts.map +1 -1
- package/dist/esm/tasks/tryGetDriveItemByPath.js +4 -4
- package/docs/api/AccessToken.md +1 -1
- package/docs/api/AzureApplicationCredentials.md +4 -4
- package/docs/api/Cell.md +1 -1
- package/docs/api/Color.md +1 -1
- package/docs/api/Column.md +2 -2
- package/docs/api/ConflictBehavior.md +18 -0
- package/docs/api/Drive-1.md +2 -2
- package/docs/api/DriveItem-1.md +3 -3
- package/docs/api/FontName.md +1 -1
- package/docs/api/HostName.md +1 -1
- package/docs/api/Http-1.md +2 -2
- package/docs/api/README.md +1 -0
- package/docs/api/Row.md +2 -2
- package/docs/api/Site-1.md +2 -2
- package/docs/api/WorkbookNamedRange.md +1 -1
- package/docs/api/WorkbookPivotTable-1.md +1 -1
- package/docs/api/WorkbookSession.md +1 -1
- package/docs/api/WorkbookTable-1.md +1 -1
- package/docs/api/WorkbookWorksheet-1.md +2 -2
- package/docs/api/createDriveItemContent.md +7 -7
- package/docs/api/createFolder.md +19 -2
- package/docs/api/tryGetDriveItemByPath.md +3 -3
- package/package.json +11 -1
package/docs/api/Site-1.md
CHANGED
|
@@ -18,7 +18,7 @@ Identifier for a site.
|
|
|
18
18
|
|
|
19
19
|
##### \_\_brand
|
|
20
20
|
|
|
21
|
-
> **\_\_brand**: `
|
|
21
|
+
> `readonly` **\_\_brand**: unique `symbol`
|
|
22
22
|
|
|
23
23
|
***
|
|
24
24
|
|
|
@@ -34,7 +34,7 @@ Name of a site.
|
|
|
34
34
|
|
|
35
35
|
##### \_\_brand
|
|
36
36
|
|
|
37
|
-
> **\_\_brand**: `
|
|
37
|
+
> `readonly` **\_\_brand**: unique `symbol`
|
|
38
38
|
|
|
39
39
|
***
|
|
40
40
|
|
|
@@ -18,7 +18,7 @@ Identifier for a worksheet in a workbook.
|
|
|
18
18
|
|
|
19
19
|
##### \_\_brand
|
|
20
20
|
|
|
21
|
-
> **\_\_brand**: `
|
|
21
|
+
> `readonly` **\_\_brand**: unique `symbol`
|
|
22
22
|
|
|
23
23
|
***
|
|
24
24
|
|
|
@@ -34,7 +34,7 @@ Name of a worksheet in a workbook.
|
|
|
34
34
|
|
|
35
35
|
##### \_\_brand
|
|
36
36
|
|
|
37
|
-
> **\_\_brand**: `
|
|
37
|
+
> `readonly` **\_\_brand**: unique `symbol`
|
|
38
38
|
|
|
39
39
|
***
|
|
40
40
|
|
|
@@ -8,7 +8,7 @@ Creates a new drive item in the specified parent drive or folder using a stream
|
|
|
8
8
|
|
|
9
9
|
### CreateDriveItemContentOptions
|
|
10
10
|
|
|
11
|
-
Defined in: [src/operations/driveItem/createDriveItemContent.ts:
|
|
11
|
+
Defined in: [src/operations/driveItem/createDriveItemContent.ts:44](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/operations/driveItem/createDriveItemContent.ts#L44)
|
|
12
12
|
|
|
13
13
|
Options for creating a drive item with content upload.
|
|
14
14
|
|
|
@@ -16,9 +16,9 @@ Options for creating a drive item with content upload.
|
|
|
16
16
|
|
|
17
17
|
##### conflictBehavior?
|
|
18
18
|
|
|
19
|
-
> `optional` **conflictBehavior**: `
|
|
19
|
+
> `optional` **conflictBehavior**: [`ConflictBehavior`](ConflictBehavior.md#conflictbehavior)
|
|
20
20
|
|
|
21
|
-
Defined in: [src/operations/driveItem/createDriveItemContent.ts:
|
|
21
|
+
Defined in: [src/operations/driveItem/createDriveItemContent.ts:45](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/operations/driveItem/createDriveItemContent.ts#L45)
|
|
22
22
|
|
|
23
23
|
Optional. Specifies how to handle conflicts if the file already exists. Can be 'fail', 'replace', or 'rename'.
|
|
24
24
|
|
|
@@ -26,13 +26,13 @@ Optional. Specifies how to handle conflicts if the file already exists. Can be '
|
|
|
26
26
|
|
|
27
27
|
> `optional` **maxChunkSize**: `number`
|
|
28
28
|
|
|
29
|
-
Defined in: [src/operations/driveItem/createDriveItemContent.ts:
|
|
29
|
+
Defined in: [src/operations/driveItem/createDriveItemContent.ts:46](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/operations/driveItem/createDriveItemContent.ts#L46)
|
|
30
30
|
|
|
31
31
|
##### progress()?
|
|
32
32
|
|
|
33
33
|
> `optional` **progress**: (`bytes`) => `void`
|
|
34
34
|
|
|
35
|
-
Defined in: [src/operations/driveItem/createDriveItemContent.ts:
|
|
35
|
+
Defined in: [src/operations/driveItem/createDriveItemContent.ts:47](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/operations/driveItem/createDriveItemContent.ts#L47)
|
|
36
36
|
|
|
37
37
|
Optional. Callback function called with the number of bytes uploaded after each chunk.
|
|
38
38
|
|
|
@@ -52,7 +52,7 @@ Optional. Callback function called with the number of bytes uploaded after each
|
|
|
52
52
|
|
|
53
53
|
> `const` **chunkSizeMultiple**: `number`
|
|
54
54
|
|
|
55
|
-
Defined in: [src/operations/driveItem/createDriveItemContent.ts:
|
|
55
|
+
Defined in: [src/operations/driveItem/createDriveItemContent.ts:24](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/operations/driveItem/createDriveItemContent.ts#L24)
|
|
56
56
|
|
|
57
57
|
The required chunk size multiple for upload sessions.
|
|
58
58
|
|
|
@@ -70,7 +70,7 @@ https://learn.microsoft.com/en-us/graph/api/driveitem-createuploadsession
|
|
|
70
70
|
|
|
71
71
|
> **createDriveItemContent**(`parentRef`, `itemPath`, `contentStream`, `contentLength`, `options`): [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<`DriveItem` & [`SiteRef`](Site-1.md#siteref) & `object` & `object`\>
|
|
72
72
|
|
|
73
|
-
Defined in: [src/operations/driveItem/createDriveItemContent.ts:
|
|
73
|
+
Defined in: [src/operations/driveItem/createDriveItemContent.ts:64](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/operations/driveItem/createDriveItemContent.ts#L64)
|
|
74
74
|
|
|
75
75
|
Creates a new drive item in the specified parent drive or folder using a stream as content.
|
|
76
76
|
|
package/docs/api/createFolder.md
CHANGED
|
@@ -4,13 +4,29 @@
|
|
|
4
4
|
|
|
5
5
|
Create a folder in the root of a drive, or in a folder. If it already exists do nothing.
|
|
6
6
|
|
|
7
|
+
## Interfaces
|
|
8
|
+
|
|
9
|
+
### CreateDriveItemOptions
|
|
10
|
+
|
|
11
|
+
Defined in: [src/operations/drive/createFolder.ts:19](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/operations/drive/createFolder.ts#L19)
|
|
12
|
+
|
|
13
|
+
Options for creating a folder.
|
|
14
|
+
|
|
15
|
+
#### Properties
|
|
16
|
+
|
|
17
|
+
##### conflictBehavior?
|
|
18
|
+
|
|
19
|
+
> `optional` **conflictBehavior**: [`ConflictBehavior`](ConflictBehavior.md#conflictbehavior)
|
|
20
|
+
|
|
21
|
+
Defined in: [src/operations/drive/createFolder.ts:20](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/operations/drive/createFolder.ts#L20)
|
|
22
|
+
|
|
7
23
|
## Functions
|
|
8
24
|
|
|
9
25
|
### createFolder()
|
|
10
26
|
|
|
11
|
-
> **createFolder**(`parentRef`, `folderName`): [`GraphOperation`](GraphOperation.md#graphoperation)\<`DriveItem` & [`SiteRef`](Site-1.md#siteref) & `object` & `object`\>
|
|
27
|
+
> **createFolder**(`parentRef`, `folderName`, `options`): [`GraphOperation`](GraphOperation.md#graphoperation)\<`DriveItem` & [`SiteRef`](Site-1.md#siteref) & `object` & `object`\>
|
|
12
28
|
|
|
13
|
-
Defined in: [src/operations/drive/createFolder.ts:
|
|
29
|
+
Defined in: [src/operations/drive/createFolder.ts:30](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/operations/drive/createFolder.ts#L30)
|
|
14
30
|
|
|
15
31
|
Create a folder in the root of a drive, or in a folder. If it already exists do nothing.
|
|
16
32
|
|
|
@@ -20,6 +36,7 @@ Create a folder in the root of a drive, or in a folder. If it already exists do
|
|
|
20
36
|
| ------ | ------ | ------ |
|
|
21
37
|
| `parentRef` | [`DriveRef`](Drive-1.md#driveref) \| [`DriveItemRef`](DriveItem-1.md#driveitemref) | Reference to the parent drive or folder where the folder will be created. |
|
|
22
38
|
| `folderName` | `string` | Name of the folder to be created. |
|
|
39
|
+
| `options` | [`CreateDriveItemOptions`](#createdriveitemoptions) | - |
|
|
23
40
|
|
|
24
41
|
#### Returns
|
|
25
42
|
|
|
@@ -8,18 +8,18 @@ Attempts to retrieve the metadata for an item in a drive by file path, returning
|
|
|
8
8
|
|
|
9
9
|
### tryGetDriveItemByPath()
|
|
10
10
|
|
|
11
|
-
> **tryGetDriveItemByPath**(`
|
|
11
|
+
> **tryGetDriveItemByPath**(`parentRef`, `itemPath`): [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<`null` \| `DriveItem` & [`SiteRef`](Site-1.md#siteref) & `object` & `object`\>
|
|
12
12
|
|
|
13
13
|
Defined in: [src/tasks/tryGetDriveItemByPath.ts:20](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/tasks/tryGetDriveItemByPath.ts#L20)
|
|
14
14
|
|
|
15
|
-
Attempts to retrieve the metadata for an item in a drive by file path.
|
|
15
|
+
Attempts to retrieve the metadata for an item in a drive or folder by file path.
|
|
16
16
|
Returns null if the item does not exist (NotFoundError).
|
|
17
17
|
|
|
18
18
|
#### Parameters
|
|
19
19
|
|
|
20
20
|
| Parameter | Type | Description |
|
|
21
21
|
| ------ | ------ | ------ |
|
|
22
|
-
| `
|
|
22
|
+
| `parentRef` | [`DriveRef`](Drive-1.md#driveref) \| [`DriveItemRef`](DriveItem-1.md#driveitemref) | Reference to the drive or folder containing the item. |
|
|
23
23
|
| `itemPath` | [`DriveItemPath`](DriveItem-1.md#driveitempath) | Path of the item within the drive. |
|
|
24
24
|
|
|
25
25
|
#### Returns
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "microsoft-graph",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.8",
|
|
4
4
|
"description": "Microsoft GraphAPI SDK for NodeJS",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -477,6 +477,16 @@
|
|
|
477
477
|
"require": "./dist/cjs/models/Column.js",
|
|
478
478
|
"types": "./dist/esm/models/Column.d.ts"
|
|
479
479
|
},
|
|
480
|
+
"./ConflictBehavior": {
|
|
481
|
+
"import": "./dist/esm/models/ConflictBehavior.js",
|
|
482
|
+
"require": "./dist/cjs/models/ConflictBehavior.js",
|
|
483
|
+
"types": "./dist/esm/models/ConflictBehavior.d.ts"
|
|
484
|
+
},
|
|
485
|
+
"./dist/cjs/models/ConflictBehavior": {
|
|
486
|
+
"import": "./dist/esm/models/ConflictBehavior.js",
|
|
487
|
+
"require": "./dist/cjs/models/ConflictBehavior.js",
|
|
488
|
+
"types": "./dist/esm/models/ConflictBehavior.d.ts"
|
|
489
|
+
},
|
|
480
490
|
"./Context": {
|
|
481
491
|
"import": "./dist/esm/models/Context.js",
|
|
482
492
|
"require": "./dist/cjs/models/Context.js",
|