microsoft-graph 2.13.1 → 2.14.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/tasks/tryCloseWorkbookSession.d.ts +9 -0
- package/dist/cjs/tasks/tryCloseWorkbookSession.d.ts.map +1 -0
- package/dist/cjs/tasks/tryCloseWorkbookSession.js +18 -0
- package/dist/esm/tasks/tryCloseWorkbookSession.d.ts +9 -0
- package/dist/esm/tasks/tryCloseWorkbookSession.d.ts.map +1 -0
- package/dist/esm/tasks/tryCloseWorkbookSession.js +15 -0
- package/package.json +26 -1
- package/update-exports.ts +2 -2
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { WorkbookRef } from "../models/WorkbookRef.ts";
|
|
2
|
+
/**
|
|
3
|
+
* Try and close a workbook session. Do not error if not possible
|
|
4
|
+
*
|
|
5
|
+
* @param workbookRef - A reference to the workbook, optionally including session information. The session ID is required.
|
|
6
|
+
* @returns true if the session was closed, false if it was not possible to close the session.
|
|
7
|
+
**/
|
|
8
|
+
export default function closeWorkbookSession(workbookRef: WorkbookRef): Promise<boolean>;
|
|
9
|
+
//# sourceMappingURL=tryCloseWorkbookSession.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tryCloseWorkbookSession.d.ts","sourceRoot":"","sources":["../../../src/tasks/tryCloseWorkbookSession.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D;;;;;IAKI;AACJ,wBAA8B,oBAAoB,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,CAO7F"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = closeWorkbookSession;
|
|
4
|
+
/**
|
|
5
|
+
* Try and close a workbook session. Do not error if not possible
|
|
6
|
+
*
|
|
7
|
+
* @param workbookRef - A reference to the workbook, optionally including session information. The session ID is required.
|
|
8
|
+
* @returns true if the session was closed, false if it was not possible to close the session.
|
|
9
|
+
**/
|
|
10
|
+
async function closeWorkbookSession(workbookRef) {
|
|
11
|
+
try {
|
|
12
|
+
await closeWorkbookSession(workbookRef);
|
|
13
|
+
return true;
|
|
14
|
+
}
|
|
15
|
+
catch (_) {
|
|
16
|
+
return false;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { WorkbookRef } from "../models/WorkbookRef.ts";
|
|
2
|
+
/**
|
|
3
|
+
* Try and close a workbook session. Do not error if not possible
|
|
4
|
+
*
|
|
5
|
+
* @param workbookRef - A reference to the workbook, optionally including session information. The session ID is required.
|
|
6
|
+
* @returns true if the session was closed, false if it was not possible to close the session.
|
|
7
|
+
**/
|
|
8
|
+
export default function closeWorkbookSession(workbookRef: WorkbookRef): Promise<boolean>;
|
|
9
|
+
//# sourceMappingURL=tryCloseWorkbookSession.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tryCloseWorkbookSession.d.ts","sourceRoot":"","sources":["../../../src/tasks/tryCloseWorkbookSession.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D;;;;;IAKI;AACJ,wBAA8B,oBAAoB,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,CAO7F"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Try and close a workbook session. Do not error if not possible
|
|
3
|
+
*
|
|
4
|
+
* @param workbookRef - A reference to the workbook, optionally including session information. The session ID is required.
|
|
5
|
+
* @returns true if the session was closed, false if it was not possible to close the session.
|
|
6
|
+
**/
|
|
7
|
+
export default async function closeWorkbookSession(workbookRef) {
|
|
8
|
+
try {
|
|
9
|
+
await closeWorkbookSession(workbookRef);
|
|
10
|
+
return true;
|
|
11
|
+
}
|
|
12
|
+
catch (_) {
|
|
13
|
+
return false;
|
|
14
|
+
}
|
|
15
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "microsoft-graph",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.14.0",
|
|
4
4
|
"description": "Microsoft GraphAPI SDK for NodeJS",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -3642,6 +3642,31 @@
|
|
|
3642
3642
|
"require": "./dist/cjs/tasks/setWorkbookTableBodyVisibleRows.js",
|
|
3643
3643
|
"types": "./dist/esm/tasks/setWorkbookTableBodyVisibleRows.d.ts"
|
|
3644
3644
|
},
|
|
3645
|
+
"./tryCloseWorkbookSession": {
|
|
3646
|
+
"import": "./dist/esm/tasks/tryCloseWorkbookSession.js",
|
|
3647
|
+
"require": "./dist/cjs/tasks/tryCloseWorkbookSession.js",
|
|
3648
|
+
"types": "./dist/esm/tasks/tryCloseWorkbookSession.d.ts"
|
|
3649
|
+
},
|
|
3650
|
+
"./dist/cjs/tasks/tryCloseWorkbookSession.js": {
|
|
3651
|
+
"import": "./dist/esm/tasks/tryCloseWorkbookSession.js",
|
|
3652
|
+
"require": "./dist/cjs/tasks/tryCloseWorkbookSession.js",
|
|
3653
|
+
"types": "./dist/esm/tasks/tryCloseWorkbookSession.d.ts"
|
|
3654
|
+
},
|
|
3655
|
+
"./dist/cjs/tasks/tryCloseWorkbookSession": {
|
|
3656
|
+
"import": "./dist/esm/tasks/tryCloseWorkbookSession.js",
|
|
3657
|
+
"require": "./dist/cjs/tasks/tryCloseWorkbookSession.js",
|
|
3658
|
+
"types": "./dist/esm/tasks/tryCloseWorkbookSession.d.ts"
|
|
3659
|
+
},
|
|
3660
|
+
"./tasks/tryCloseWorkbookSession": {
|
|
3661
|
+
"import": "./dist/esm/tasks/tryCloseWorkbookSession.js",
|
|
3662
|
+
"require": "./dist/cjs/tasks/tryCloseWorkbookSession.js",
|
|
3663
|
+
"types": "./dist/esm/tasks/tryCloseWorkbookSession.d.ts"
|
|
3664
|
+
},
|
|
3665
|
+
"./tasks/tryCloseWorkbookSession.js": {
|
|
3666
|
+
"import": "./dist/esm/tasks/tryCloseWorkbookSession.js",
|
|
3667
|
+
"require": "./dist/cjs/tasks/tryCloseWorkbookSession.js",
|
|
3668
|
+
"types": "./dist/esm/tasks/tryCloseWorkbookSession.d.ts"
|
|
3669
|
+
},
|
|
3645
3670
|
"./tryDeleteDriveItem": {
|
|
3646
3671
|
"import": "./dist/esm/tasks/tryDeleteDriveItem.js",
|
|
3647
3672
|
"require": "./dist/cjs/tasks/tryDeleteDriveItem.js",
|
package/update-exports.ts
CHANGED
|
@@ -70,8 +70,8 @@ function exportsWalk(dir: string, exportsMap, currentRelPath = ""): void {
|
|
|
70
70
|
}`,
|
|
71
71
|
};
|
|
72
72
|
|
|
73
|
-
exportsMap[`./${basename(entry, extname(entry))}`] = target;
|
|
74
|
-
exportsMap[cjsRequire] = target; // Workaround for legacy CJS support
|
|
73
|
+
exportsMap[`./${basename(entry, extname(entry))}`] = target; // Workaround for legacy CJS support
|
|
74
|
+
exportsMap[cjsRequire] = target; // Workaround for legacy CJS support TODO: Remove in next major version since extensions aren't required
|
|
75
75
|
exportsMap[`./${join(dirname(cjsRequire), basename(cjsRequire, extname(cjsRequire)))}`] = target; // Workaround for legacy CJS support
|
|
76
76
|
exportsMap[`./${join(dirname(relPath), basename(relPath, extname(relPath)))}`] = target; // TODO: Remove in next major version
|
|
77
77
|
exportsMap[`./${relPath}`] = target; // TODO: Remove in next major version
|