microsoft-graph 2.3.0 → 2.3.1
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/.vscode/settings.json +2 -1
- package/dist/operations/drive/createFolder.d.ts +8 -1
- package/dist/operations/drive/createFolder.d.ts.map +1 -1
- package/dist/operations/drive/createFolder.js +8 -1
- package/dist/operations/drive/listDrives.d.ts +7 -1
- package/dist/operations/drive/listDrives.d.ts.map +1 -1
- package/dist/operations/drive/listDrives.js +7 -1
- package/dist/operations/driveItem/deleteDriveItem.d.ts +7 -1
- package/dist/operations/driveItem/deleteDriveItem.d.ts.map +1 -1
- package/dist/operations/driveItem/deleteDriveItem.js +7 -1
- package/dist/operations/driveItem/getDriveItem.d.ts +7 -1
- package/dist/operations/driveItem/getDriveItem.d.ts.map +1 -1
- package/dist/operations/driveItem/getDriveItem.js +7 -1
- package/dist/operations/driveItem/getDriveItemByPath.d.ts +8 -1
- package/dist/operations/driveItem/getDriveItemByPath.d.ts.map +1 -1
- package/dist/operations/driveItem/getDriveItemByPath.js +8 -1
- package/dist/operations/driveItem/getDriveItemContent.d.ts +8 -1
- package/dist/operations/driveItem/getDriveItemContent.d.ts.map +1 -1
- package/dist/operations/driveItem/getDriveItemContent.js +8 -1
- package/dist/operations/driveItem/initiateCopyDriveItem.d.ts +9 -1
- package/dist/operations/driveItem/initiateCopyDriveItem.d.ts.map +1 -1
- package/dist/operations/driveItem/initiateCopyDriveItem.js +9 -1
- package/dist/operations/driveItem/listDriveItems.d.ts +8 -2
- package/dist/operations/driveItem/listDriveItems.d.ts.map +1 -1
- package/dist/operations/driveItem/listDriveItems.js +8 -3
- package/dist/operations/site/getSite.d.ts +7 -1
- package/dist/operations/site/getSite.d.ts.map +1 -1
- package/dist/operations/site/getSite.js +7 -1
- package/dist/operations/site/getSiteByName.d.ts +9 -1
- package/dist/operations/site/getSiteByName.d.ts.map +1 -1
- package/dist/operations/site/getSiteByName.js +9 -1
- package/dist/operations/site/listSites.d.ts +7 -1
- package/dist/operations/site/listSites.d.ts.map +1 -1
- package/dist/operations/site/listSites.js +7 -1
- package/dist/operations/site/searchSites.d.ts +8 -1
- package/dist/operations/site/searchSites.d.ts.map +1 -1
- package/dist/operations/site/searchSites.js +8 -1
- package/dist/operations/user/userSendMail.d.ts +10 -1
- package/dist/operations/user/userSendMail.d.ts.map +1 -1
- package/dist/operations/user/userSendMail.js +10 -1
- package/dist/operations/workbook/calculateWorkbook.d.ts +14 -2
- package/dist/operations/workbook/calculateWorkbook.d.ts.map +1 -1
- package/dist/operations/workbook/calculateWorkbook.js +14 -2
- package/dist/operations/workbook/createWorkbook.d.ts +9 -1
- package/dist/operations/workbook/createWorkbook.d.ts.map +1 -1
- package/dist/operations/workbook/createWorkbook.js +9 -1
- package/dist/operations/workbook/deleteWorkbook.d.ts +7 -1
- package/dist/operations/workbook/deleteWorkbook.d.ts.map +1 -1
- package/dist/operations/workbook/deleteWorkbook.js +7 -1
- package/dist/operations/workbookRange/clearWorkbookRange.d.ts +8 -1
- package/dist/operations/workbookRange/clearWorkbookRange.d.ts.map +1 -1
- package/dist/operations/workbookRange/clearWorkbookRange.js +8 -1
- package/dist/operations/workbookRange/deleteWorkbookRange.d.ts +8 -1
- package/dist/operations/workbookRange/deleteWorkbookRange.d.ts.map +1 -1
- package/dist/operations/workbookRange/deleteWorkbookRange.js +8 -1
- package/dist/operations/workbookRange/getWorkbookNamedRange.d.ts +7 -1
- package/dist/operations/workbookRange/getWorkbookNamedRange.d.ts.map +1 -1
- package/dist/operations/workbookRange/getWorkbookNamedRange.js +7 -1
- package/dist/operations/workbookRange/getWorkbookRangeFormat.d.ts +7 -1
- package/dist/operations/workbookRange/getWorkbookRangeFormat.d.ts.map +1 -1
- package/dist/operations/workbookRange/getWorkbookRangeFormat.js +7 -1
- package/dist/operations/workbookRange/getWorkbookUsedRange.d.ts +7 -1
- package/dist/operations/workbookRange/getWorkbookUsedRange.d.ts.map +1 -1
- package/dist/operations/workbookRange/getWorkbookUsedRange.js +7 -1
- package/dist/operations/workbookRange/getWorkbookVisibleRange.d.ts +7 -1
- package/dist/operations/workbookRange/getWorkbookVisibleRange.d.ts.map +1 -1
- package/dist/operations/workbookRange/getWorkbookVisibleRange.js +7 -1
- package/dist/operations/workbookRange/getWorkbookWorksheetRange.d.ts +7 -1
- package/dist/operations/workbookRange/getWorkbookWorksheetRange.d.ts.map +1 -1
- package/dist/operations/workbookRange/getWorkbookWorksheetRange.js +7 -1
- package/dist/operations/workbookRange/insertWorkbookCells.d.ts +9 -1
- package/dist/operations/workbookRange/insertWorkbookCells.d.ts.map +1 -1
- package/dist/operations/workbookRange/insertWorkbookCells.js +9 -1
- package/dist/operations/workbookRange/updateWorkbookNamedRange.d.ts +8 -1
- package/dist/operations/workbookRange/updateWorkbookNamedRange.d.ts.map +1 -1
- package/dist/operations/workbookRange/updateWorkbookNamedRange.js +8 -1
- package/dist/operations/workbookRange/updateWorkbookRange.d.ts +8 -1
- package/dist/operations/workbookRange/updateWorkbookRange.d.ts.map +1 -1
- package/dist/operations/workbookRange/updateWorkbookRange.js +8 -1
- package/dist/operations/workbookSession/closeWorkbookSession.d.ts +8 -1
- package/dist/operations/workbookSession/closeWorkbookSession.d.ts.map +1 -1
- package/dist/operations/workbookSession/closeWorkbookSession.js +8 -1
- package/dist/operations/workbookSession/createWorkbookSession.d.ts +9 -1
- package/dist/operations/workbookSession/createWorkbookSession.d.ts.map +1 -1
- package/dist/operations/workbookSession/createWorkbookSession.js +9 -1
- package/dist/operations/workbookSession/refreshWorkbookSession.d.ts +8 -1
- package/dist/operations/workbookSession/refreshWorkbookSession.d.ts.map +1 -1
- package/dist/operations/workbookSession/refreshWorkbookSession.js +8 -1
- package/dist/operations/workbookTable/createWorkbookTable.d.ts +8 -1
- package/dist/operations/workbookTable/createWorkbookTable.d.ts.map +1 -1
- package/dist/operations/workbookTable/createWorkbookTable.js +8 -1
- package/dist/operations/workbookTable/getWorkbookTable.d.ts +7 -1
- package/dist/operations/workbookTable/getWorkbookTable.d.ts.map +1 -1
- package/dist/operations/workbookTable/getWorkbookTable.js +7 -1
- package/dist/operations/workbookTable/getWorkbookTableBodyRange.d.ts +7 -1
- package/dist/operations/workbookTable/getWorkbookTableBodyRange.d.ts.map +1 -1
- package/dist/operations/workbookTable/getWorkbookTableBodyRange.js +7 -1
- package/dist/operations/workbookTable/getWorkbookTableHeaderRange.d.ts +7 -1
- package/dist/operations/workbookTable/getWorkbookTableHeaderRange.d.ts.map +1 -1
- package/dist/operations/workbookTable/getWorkbookTableHeaderRange.js +7 -1
- package/dist/operations/workbookTable/listWorkbookTableColumns.d.ts +7 -1
- package/dist/operations/workbookTable/listWorkbookTableColumns.d.ts.map +1 -1
- package/dist/operations/workbookTable/listWorkbookTableColumns.js +7 -1
- package/dist/operations/workbookTable/listWorkbookTableRows.d.ts +7 -1
- package/dist/operations/workbookTable/listWorkbookTableRows.d.ts.map +1 -1
- package/dist/operations/workbookTable/listWorkbookTableRows.js +7 -1
- package/dist/operations/workbookTable/listWorkbookTables.d.ts +7 -1
- package/dist/operations/workbookTable/listWorkbookTables.d.ts.map +1 -1
- package/dist/operations/workbookTable/listWorkbookTables.js +7 -1
- package/dist/operations/workbookWorksheet/createWorkbookWorksheet.d.ts +8 -1
- package/dist/operations/workbookWorksheet/createWorkbookWorksheet.d.ts.map +1 -1
- package/dist/operations/workbookWorksheet/createWorkbookWorksheet.js +8 -1
- package/dist/operations/workbookWorksheet/deleteWorkbookWorksheet.d.ts +7 -1
- package/dist/operations/workbookWorksheet/deleteWorkbookWorksheet.d.ts.map +1 -1
- package/dist/operations/workbookWorksheet/deleteWorkbookWorksheet.js +7 -1
- package/dist/operations/workbookWorksheet/listWorkbookWorksheets.d.ts +7 -1
- package/dist/operations/workbookWorksheet/listWorkbookWorksheets.d.ts.map +1 -1
- package/dist/operations/workbookWorksheet/listWorkbookWorksheets.js +7 -1
- package/dist/operations/workbookWorksheet/updateWorkbookWorksheet.d.ts +11 -1
- package/dist/operations/workbookWorksheet/updateWorkbookWorksheet.d.ts.map +1 -1
- package/dist/operations/workbookWorksheet/updateWorkbookWorksheet.js +11 -1
- package/dist/services/accessToken.d.ts +9 -1
- package/dist/services/accessToken.d.ts.map +1 -1
- package/dist/services/accessToken.js +9 -1
- package/dist/services/addressManipulation.d.ts +67 -0
- package/dist/services/addressManipulation.d.ts.map +1 -1
- package/dist/services/addressManipulation.js +67 -0
- package/dist/services/addressOffset.d.ts +20 -0
- package/dist/services/addressOffset.d.ts.map +1 -1
- package/dist/services/addressOffset.js +20 -0
- package/dist/services/context.d.ts +19 -2
- package/dist/services/context.d.ts.map +1 -1
- package/dist/services/context.js +19 -2
- package/dist/services/drive.d.ts +12 -1
- package/dist/services/drive.d.ts.map +1 -1
- package/dist/services/drive.js +12 -1
- package/dist/services/driveItem.d.ts +13 -1
- package/dist/services/driveItem.d.ts.map +1 -1
- package/dist/services/driveItem.js +13 -1
- package/dist/services/environmentVariable.d.ts +13 -0
- package/dist/services/environmentVariable.d.ts.map +1 -1
- package/dist/services/environmentVariable.js +13 -0
- package/dist/services/httpAgent.d.ts +5 -0
- package/dist/services/httpAgent.d.ts.map +1 -1
- package/dist/services/httpAgent.js +5 -0
- package/dist/services/httpStatus.d.ts +15 -0
- package/dist/services/httpStatus.d.ts.map +1 -1
- package/dist/services/httpStatus.js +15 -0
- package/dist/services/operationId.d.ts +10 -0
- package/dist/services/operationId.d.ts.map +1 -1
- package/dist/services/operationId.js +10 -0
- package/dist/services/random.d.ts +5 -0
- package/dist/services/random.d.ts.map +1 -1
- package/dist/services/random.js +5 -0
- package/dist/services/sharepointUrl.d.ts +6 -1
- package/dist/services/sharepointUrl.d.ts.map +1 -1
- package/dist/services/sharepointUrl.js +6 -1
- package/dist/services/site.d.ts +12 -1
- package/dist/services/site.d.ts.map +1 -1
- package/dist/services/site.js +12 -1
- package/dist/services/sleep.d.ts +5 -0
- package/dist/services/sleep.d.ts.map +1 -1
- package/dist/services/sleep.js +5 -0
- package/dist/services/stringCaseConversion.d.ts +5 -0
- package/dist/services/stringCaseConversion.d.ts.map +1 -1
- package/dist/services/stringCaseConversion.js +5 -0
- package/dist/services/templatedPaths.d.ts +7 -1
- package/dist/services/templatedPaths.d.ts.map +1 -1
- package/dist/services/templatedPaths.js +7 -1
- package/dist/services/temporaryFiles.d.ts +5 -0
- package/dist/services/temporaryFiles.d.ts.map +1 -1
- package/dist/services/temporaryFiles.js +5 -0
- package/dist/services/workbookRange.d.ts +6 -0
- package/dist/services/workbookRange.d.ts.map +1 -1
- package/dist/services/workbookRange.js +6 -0
- package/dist/services/workbookTable.d.ts +7 -0
- package/dist/services/workbookTable.d.ts.map +1 -1
- package/dist/services/workbookTable.js +7 -0
- package/dist/services/workbookWorksheet.d.ts +12 -0
- package/dist/services/workbookWorksheet.d.ts.map +1 -1
- package/dist/services/workbookWorksheet.js +12 -0
- package/dist/tasks/createWorkbookAndStartSession.d.ts +7 -1
- package/dist/tasks/createWorkbookAndStartSession.d.ts.map +1 -1
- package/dist/tasks/createWorkbookAndStartSession.js +7 -1
- package/dist/tasks/deleteDriveItemWithRetry.d.ts +6 -1
- package/dist/tasks/deleteDriveItemWithRetry.d.ts.map +1 -1
- package/dist/tasks/deleteDriveItemWithRetry.js +6 -1
- package/dist/tasks/downloadDriveItemContent.d.ts +7 -1
- package/dist/tasks/downloadDriveItemContent.d.ts.map +1 -1
- package/dist/tasks/downloadDriveItemContent.js +7 -1
- package/dist/tasks/getRangeLastUsedCell.d.ts +7 -1
- package/dist/tasks/getRangeLastUsedCell.d.ts.map +1 -1
- package/dist/tasks/getRangeLastUsedCell.js +7 -1
- package/dist/tasks/getWorkbookTableVisibleBody.d.ts +6 -1
- package/dist/tasks/getWorkbookTableVisibleBody.d.ts.map +1 -1
- package/dist/tasks/getWorkbookTableVisibleBody.js +6 -1
- package/dist/tasks/getWorkbookWorksheetByName.d.ts +8 -1
- package/dist/tasks/getWorkbookWorksheetByName.d.ts.map +1 -1
- package/dist/tasks/getWorkbookWorksheetByName.js +8 -1
- package/dist/tasks/safeDeleteWorkbook.d.ts +7 -1
- package/dist/tasks/safeDeleteWorkbook.d.ts.map +1 -1
- package/dist/tasks/safeDeleteWorkbook.js +7 -1
- package/dist/tasks/setColumnHidden.d.ts +7 -1
- package/dist/tasks/setColumnHidden.d.ts.map +1 -1
- package/dist/tasks/setColumnHidden.js +7 -1
- package/dist/tasks/setRowHidden.d.ts +7 -1
- package/dist/tasks/setRowHidden.d.ts.map +1 -1
- package/dist/tasks/setRowHidden.js +7 -1
- package/dist/tasks/setWorkbookTableBodyVisibleRows.d.ts +9 -1
- package/dist/tasks/setWorkbookTableBodyVisibleRows.d.ts.map +1 -1
- package/dist/tasks/setWorkbookTableBodyVisibleRows.js +23 -16
- package/dist/tasks/setWorkbookTableBodyVisibleRows.test.js +2 -0
- package/package.json +1 -1
package/.vscode/settings.json
CHANGED
|
@@ -2,6 +2,13 @@ import type { DriveItem } from "@microsoft/microsoft-graph-types";
|
|
|
2
2
|
import type { DriveItemRef } from "../../models/DriveItemRef.ts";
|
|
3
3
|
import type { DriveRef } from "../../models/DriveRef.ts";
|
|
4
4
|
import type { GraphOperation } from "../../models/GraphOperation.ts";
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* Create a folder in the root of a drive, or in a folder. If it already exists do nothing.
|
|
7
|
+
*
|
|
8
|
+
* @param parentRef - A reference to the parent drive or folder where the folder will be created.
|
|
9
|
+
* @param folderName - The name of the folder to be created.
|
|
10
|
+
* @returns The newly created folder, including its metadata and reference information.
|
|
11
|
+
* @see https://learn.microsoft.com/en-us/graph/api/driveitem-post-children
|
|
12
|
+
*/
|
|
6
13
|
export default function createFolder(parentRef: DriveRef | DriveItemRef, folderName: string): GraphOperation<DriveItem & DriveItemRef>;
|
|
7
14
|
//# sourceMappingURL=createFolder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createFolder.d.ts","sourceRoot":"","sources":["../../../src/operations/drive/createFolder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAGlE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAIrE
|
|
1
|
+
{"version":3,"file":"createFolder.d.ts","sourceRoot":"","sources":["../../../src/operations/drive/createFolder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAGlE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAIrE;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,SAAS,EAAE,QAAQ,GAAG,YAAY,EAAE,UAAU,EAAE,MAAM,GAAG,cAAc,CAAC,SAAS,GAAG,YAAY,CAAC,CAyBrI"}
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import { operation } from "../../graphApi.js";
|
|
2
2
|
import { createDriveItemRef } from "../../services/driveItem.js";
|
|
3
3
|
import { generatePath } from "../../services/templatedPaths.js";
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* Create a folder in the root of a drive, or in a folder. If it already exists do nothing.
|
|
6
|
+
*
|
|
7
|
+
* @param parentRef - A reference to the parent drive or folder where the folder will be created.
|
|
8
|
+
* @param folderName - The name of the folder to be created.
|
|
9
|
+
* @returns The newly created folder, including its metadata and reference information.
|
|
10
|
+
* @see https://learn.microsoft.com/en-us/graph/api/driveitem-post-children
|
|
11
|
+
*/
|
|
5
12
|
export default function createFolder(parentRef, folderName) {
|
|
6
13
|
const pathSegment = parentRef.itemId ? "items/{item-id}" : "root";
|
|
7
14
|
return operation({
|
|
@@ -2,6 +2,12 @@ import type { DriveItem } from "@microsoft/microsoft-graph-types";
|
|
|
2
2
|
import type { DriveRef } from "../../models/DriveRef.ts";
|
|
3
3
|
import type { GraphOperation } from "../../models/GraphOperation.ts";
|
|
4
4
|
import type { SiteRef } from "../../models/SiteRef.ts";
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* Retrieve the list of accessible Drives in a Site.
|
|
7
|
+
*
|
|
8
|
+
* @param siteRef - A reference to the site.
|
|
9
|
+
* @returns An array of drives available for the specified site, each including its metadata and reference information.
|
|
10
|
+
* @see https://learn.microsoft.com/en-us/graph/api/drive-list
|
|
11
|
+
*/
|
|
6
12
|
export default function listDrives(siteRef: SiteRef): GraphOperation<(DriveItem & DriveRef)[]>;
|
|
7
13
|
//# sourceMappingURL=listDrives.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listDrives.d.ts","sourceRoot":"","sources":["../../../src/operations/drive/listDrives.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAGlE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAIvD
|
|
1
|
+
{"version":3,"file":"listDrives.d.ts","sourceRoot":"","sources":["../../../src/operations/drive/listDrives.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAGlE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAIvD;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,cAAc,CAAC,CAAC,SAAS,GAAG,QAAQ,CAAC,EAAE,CAAC,CAkB7F"}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { operation } from "../../graphApi.js";
|
|
2
2
|
import { createDriveRef } from "../../services/drive.js";
|
|
3
3
|
import { generatePath } from "../../services/templatedPaths.js";
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* Retrieve the list of accessible Drives in a Site.
|
|
6
|
+
*
|
|
7
|
+
* @param siteRef - A reference to the site.
|
|
8
|
+
* @returns An array of drives available for the specified site, each including its metadata and reference information.
|
|
9
|
+
* @see https://learn.microsoft.com/en-us/graph/api/drive-list
|
|
10
|
+
*/
|
|
5
11
|
export default function listDrives(siteRef) {
|
|
6
12
|
return operation({
|
|
7
13
|
contextId: siteRef.contextId,
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import type { DriveItemRef } from "../../models/DriveItemRef.ts";
|
|
2
2
|
import type { GraphOperation } from "../../models/GraphOperation.ts";
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* Delete an item from a drive.
|
|
5
|
+
*
|
|
6
|
+
* @param itemRef - A reference to the drive item to be deleted.
|
|
7
|
+
* @returns Nothing.
|
|
8
|
+
* @see https://learn.microsoft.com/en-us/graph/api/driveitem-delete
|
|
9
|
+
*/
|
|
4
10
|
export default function deleteDriveItem(itemRef: DriveItemRef): GraphOperation<void>;
|
|
5
11
|
//# sourceMappingURL=deleteDriveItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deleteDriveItem.d.ts","sourceRoot":"","sources":["../../../src/operations/driveItem/deleteDriveItem.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAGrE
|
|
1
|
+
{"version":3,"file":"deleteDriveItem.d.ts","sourceRoot":"","sources":["../../../src/operations/driveItem/deleteDriveItem.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAGrE;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,OAAO,EAAE,YAAY,GAAG,cAAc,CAAC,IAAI,CAAC,CASnF"}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { operation } from "../../graphApi.js";
|
|
2
2
|
import { generatePath } from "../../services/templatedPaths.js";
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* Delete an item from a drive.
|
|
5
|
+
*
|
|
6
|
+
* @param itemRef - A reference to the drive item to be deleted.
|
|
7
|
+
* @returns Nothing.
|
|
8
|
+
* @see https://learn.microsoft.com/en-us/graph/api/driveitem-delete
|
|
9
|
+
*/
|
|
4
10
|
export default function deleteDriveItem(itemRef) {
|
|
5
11
|
return operation({
|
|
6
12
|
contextId: itemRef.contextId,
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import type { DriveItem } from "@microsoft/microsoft-graph-types";
|
|
2
2
|
import type { DriveItemRef } from "../../models/DriveItemRef.ts";
|
|
3
3
|
import type { GraphOperation } from "../../models/GraphOperation.ts";
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* Retrieve the metadata for an item in a drive.
|
|
6
|
+
*
|
|
7
|
+
* @param itemRef - A reference to the drive item.
|
|
8
|
+
* @returns The metadata of the specified drive item, including its reference information.
|
|
9
|
+
* @see https://learn.microsoft.com/en-us/graph/api/driveitem-get
|
|
10
|
+
*/
|
|
5
11
|
export default function getDriveItem(itemRef: DriveItemRef): GraphOperation<DriveItem & DriveItemRef>;
|
|
6
12
|
//# sourceMappingURL=getDriveItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDriveItem.d.ts","sourceRoot":"","sources":["../../../src/operations/driveItem/getDriveItem.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAElE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAGrE
|
|
1
|
+
{"version":3,"file":"getDriveItem.d.ts","sourceRoot":"","sources":["../../../src/operations/driveItem/getDriveItem.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAElE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAGrE;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,OAAO,EAAE,YAAY,GAAG,cAAc,CAAC,SAAS,GAAG,YAAY,CAAC,CAgBpG"}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { operation } from "../../graphApi.js";
|
|
2
2
|
import { generatePath } from "../../services/templatedPaths.js";
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* Retrieve the metadata for an item in a drive.
|
|
5
|
+
*
|
|
6
|
+
* @param itemRef - A reference to the drive item.
|
|
7
|
+
* @returns The metadata of the specified drive item, including its reference information.
|
|
8
|
+
* @see https://learn.microsoft.com/en-us/graph/api/driveitem-get
|
|
9
|
+
*/
|
|
4
10
|
export default function getDriveItem(itemRef) {
|
|
5
11
|
return operation({
|
|
6
12
|
contextId: itemRef.contextId,
|
|
@@ -3,6 +3,13 @@ import type { DriveItemPath } from "../../models/DriveItemPath.ts";
|
|
|
3
3
|
import type { DriveItemRef } from "../../models/DriveItemRef.ts";
|
|
4
4
|
import type { DriveRef } from "../../models/DriveRef.ts";
|
|
5
5
|
import type { GraphOperation } from "../../models/GraphOperation.ts";
|
|
6
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* Retrieve the metadata for an item in a drive by file path.
|
|
8
|
+
*
|
|
9
|
+
* @param driveRef - A reference to the drive containing the item.
|
|
10
|
+
* @param itemPath - The file path of the item within the drive.
|
|
11
|
+
* @returns The metadata of the specified drive item, including its reference information.
|
|
12
|
+
* @see https://learn.microsoft.com/en-us/graph/api/driveitem-get
|
|
13
|
+
*/
|
|
7
14
|
export default function getDriveItemByPath(driveRef: DriveRef, itemPath: DriveItemPath): GraphOperation<DriveItem & DriveItemRef>;
|
|
8
15
|
//# sourceMappingURL=getDriveItemByPath.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDriveItemByPath.d.ts","sourceRoot":"","sources":["../../../src/operations/driveItem/getDriveItemByPath.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAGlE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAIrE
|
|
1
|
+
{"version":3,"file":"getDriveItemByPath.d.ts","sourceRoot":"","sources":["../../../src/operations/driveItem/getDriveItemByPath.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAGlE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAIrE;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,aAAa,GAAG,cAAc,CAAC,SAAS,GAAG,YAAY,CAAC,CAiBhI"}
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import { operation } from "../../graphApi.js";
|
|
2
2
|
import { createDriveItemRef } from "../../services/driveItem.js";
|
|
3
3
|
import { generatePath } from "../../services/templatedPaths.js";
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* Retrieve the metadata for an item in a drive by file path.
|
|
6
|
+
*
|
|
7
|
+
* @param driveRef - A reference to the drive containing the item.
|
|
8
|
+
* @param itemPath - The file path of the item within the drive.
|
|
9
|
+
* @returns The metadata of the specified drive item, including its reference information.
|
|
10
|
+
* @see https://learn.microsoft.com/en-us/graph/api/driveitem-get
|
|
11
|
+
*/
|
|
5
12
|
export default function getDriveItemByPath(driveRef, itemPath) {
|
|
6
13
|
return operation({
|
|
7
14
|
contextId: driveRef.contextId,
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import type { DriveItemRef } from "../../models/DriveItemRef.ts";
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* Download the content of a drive item.
|
|
4
|
+
*
|
|
5
|
+
* @param itemRef - A reference to the drive item to be downloaded.
|
|
6
|
+
* @returns The content of the drive item as an ArrayBuffer.
|
|
7
|
+
* @throws Error if the download fails.
|
|
8
|
+
* @see https://learn.microsoft.com/en-us/graph/api/driveitem-get-content
|
|
9
|
+
*/
|
|
3
10
|
export default function getDriveItemContent(itemRef: DriveItemRef): Promise<ArrayBuffer>;
|
|
4
11
|
//# sourceMappingURL=getDriveItemContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDriveItemContent.d.ts","sourceRoot":"","sources":["../../../src/operations/driveItem/getDriveItemContent.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAMjE
|
|
1
|
+
{"version":3,"file":"getDriveItemContent.d.ts","sourceRoot":"","sources":["../../../src/operations/driveItem/getDriveItemContent.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAMjE;;;;;;;GAOG;AACH,wBAA8B,mBAAmB,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,WAAW,CAAC,CAmB7F"}
|
|
@@ -4,7 +4,14 @@ import { getCurrentAccessToken } from "../../services/accessToken.js";
|
|
|
4
4
|
import { getContext } from "../../services/context.js";
|
|
5
5
|
import { tryGetHttpAgent } from "../../services/httpAgent.js";
|
|
6
6
|
import { generatePath } from "../../services/templatedPaths.js";
|
|
7
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* Download the content of a drive item.
|
|
9
|
+
*
|
|
10
|
+
* @param itemRef - A reference to the drive item to be downloaded.
|
|
11
|
+
* @returns The content of the drive item as an ArrayBuffer.
|
|
12
|
+
* @throws Error if the download fails.
|
|
13
|
+
* @see https://learn.microsoft.com/en-us/graph/api/driveitem-get-content
|
|
14
|
+
*/
|
|
8
15
|
export default async function getDriveItemContent(itemRef) {
|
|
9
16
|
// Note this method doesn't match the standard pattern since the batching library doesn't support non-JSON return types, and there appears to be no value in adding support.
|
|
10
17
|
const url = `${endpoint}${generatePath("/sites/{site-id}/drives/{drive-id}/items/{item-id}/content", itemRef)}`;
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import type { DriveItemRef } from "../../models/DriveItemRef.ts";
|
|
2
2
|
import type { GraphOperation } from "../../models/GraphOperation.ts";
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* Initiate an asynchronous copy of an item. NOTE: The copied file may not be immediately available and polling is required.
|
|
5
|
+
*
|
|
6
|
+
* @param srcFileRef - A reference to the source file to be copied.
|
|
7
|
+
* @param dstFolderRef - A reference to the destination folder.
|
|
8
|
+
* @param dstFileName - The name of the copied file.
|
|
9
|
+
* @returns Nothing. The copied file may not be immediately available, and polling is required.
|
|
10
|
+
* @see https://learn.microsoft.com/en-us/graph/api/driveitem-copy
|
|
11
|
+
*/
|
|
4
12
|
export default function initiateCopyDriveItem(srcFileRef: DriveItemRef, dstFolderRef: DriveItemRef, dstFileName: string): GraphOperation<void>;
|
|
5
13
|
//# sourceMappingURL=initiateCopyDriveItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initiateCopyDriveItem.d.ts","sourceRoot":"","sources":["../../../src/operations/driveItem/initiateCopyDriveItem.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAGrE
|
|
1
|
+
{"version":3,"file":"initiateCopyDriveItem.d.ts","sourceRoot":"","sources":["../../../src/operations/driveItem/initiateCopyDriveItem.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAGrE;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,GAAG,cAAc,CAAC,IAAI,CAAC,CAkB7I"}
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { operation } from "../../graphApi.js";
|
|
2
2
|
import { generatePath } from "../../services/templatedPaths.js";
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* Initiate an asynchronous copy of an item. NOTE: The copied file may not be immediately available and polling is required.
|
|
5
|
+
*
|
|
6
|
+
* @param srcFileRef - A reference to the source file to be copied.
|
|
7
|
+
* @param dstFolderRef - A reference to the destination folder.
|
|
8
|
+
* @param dstFileName - The name of the copied file.
|
|
9
|
+
* @returns Nothing. The copied file may not be immediately available, and polling is required.
|
|
10
|
+
* @see https://learn.microsoft.com/en-us/graph/api/driveitem-copy
|
|
11
|
+
*/
|
|
4
12
|
export default function initiateCopyDriveItem(srcFileRef, dstFolderRef, dstFileName) {
|
|
5
13
|
return operation({
|
|
6
14
|
contextId: srcFileRef.contextId,
|
|
@@ -7,6 +7,12 @@ export type ListDriveItemResponse = {
|
|
|
7
7
|
value: DriveItem[];
|
|
8
8
|
"@odata.nextLink"?: string;
|
|
9
9
|
};
|
|
10
|
-
/**
|
|
11
|
-
|
|
10
|
+
/**
|
|
11
|
+
* Retrieve the metadata for items in a drive or folder.
|
|
12
|
+
*
|
|
13
|
+
* @param parentRef - A reference to the parent drive or folder. Defaults to the root drive.
|
|
14
|
+
* @returns An array of drive items, each including its metadata and reference information.
|
|
15
|
+
* @see https://learn.microsoft.com/en-us/graph/api/driveitem-list-children
|
|
16
|
+
*/
|
|
17
|
+
export default function listDriveItems(parentRef: DriveRef | DriveItemRef): GraphOperation<(DriveItem & DriveItemRef)[]>;
|
|
12
18
|
//# sourceMappingURL=listDriveItems.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listDriveItems.d.ts","sourceRoot":"","sources":["../../../src/operations/driveItem/listDriveItems.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAGlE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"listDriveItems.d.ts","sourceRoot":"","sources":["../../../src/operations/driveItem/listDriveItems.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAGlE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAIrE,MAAM,MAAM,qBAAqB,GAAG;IACnC,gBAAgB,EAAE,MAAM,CAAC;IACzB,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,SAAS,EAAE,QAAQ,GAAG,YAAY,GAAG,cAAc,CAAC,CAAC,SAAS,GAAG,YAAY,CAAC,EAAE,CAAC,CAwBvH"}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { operation } from "../../graphApi.js";
|
|
2
|
-
import { getDefaultDriveRef } from "../../services/drive.js";
|
|
3
2
|
import { createDriveItemRef } from "../../services/driveItem.js";
|
|
4
3
|
import { generatePath } from "../../services/templatedPaths.js";
|
|
5
|
-
/**
|
|
6
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Retrieve the metadata for items in a drive or folder.
|
|
6
|
+
*
|
|
7
|
+
* @param parentRef - A reference to the parent drive or folder. Defaults to the root drive.
|
|
8
|
+
* @returns An array of drive items, each including its metadata and reference information.
|
|
9
|
+
* @see https://learn.microsoft.com/en-us/graph/api/driveitem-list-children
|
|
10
|
+
*/
|
|
11
|
+
export default function listDriveItems(parentRef) {
|
|
7
12
|
const pathSegment = parentRef.itemId ? "items/{item-id}" : "root";
|
|
8
13
|
return operation({
|
|
9
14
|
contextId: parentRef.contextId,
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import type { Site } from "@microsoft/microsoft-graph-types";
|
|
2
2
|
import type { GraphOperation } from "../../models/GraphOperation.ts";
|
|
3
3
|
import type { SiteRef } from "../../models/SiteRef.ts";
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* Retrieve properties for a site resource.
|
|
6
|
+
*
|
|
7
|
+
* @param siteRef - A reference to the site.
|
|
8
|
+
* @returns The specified site, including its metadata and reference information.
|
|
9
|
+
* @see https://learn.microsoft.com/en-us/graph/api/site-get
|
|
10
|
+
*/
|
|
5
11
|
export default function getSite(siteRef: SiteRef): GraphOperation<Site & SiteRef>;
|
|
6
12
|
//# sourceMappingURL=getSite.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSite.d.ts","sourceRoot":"","sources":["../../../src/operations/site/getSite.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAGvD
|
|
1
|
+
{"version":3,"file":"getSite.d.ts","sourceRoot":"","sources":["../../../src/operations/site/getSite.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAGvD;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,cAAc,CAAC,IAAI,GAAG,OAAO,CAAC,CAehF"}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { operation } from "../../graphApi.js";
|
|
2
2
|
import { generatePath } from "../../services/templatedPaths.js";
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* Retrieve properties for a site resource.
|
|
5
|
+
*
|
|
6
|
+
* @param siteRef - A reference to the site.
|
|
7
|
+
* @returns The specified site, including its metadata and reference information.
|
|
8
|
+
* @see https://learn.microsoft.com/en-us/graph/api/site-get
|
|
9
|
+
*/
|
|
4
10
|
export default function getSite(siteRef) {
|
|
5
11
|
return operation({
|
|
6
12
|
contextId: siteRef.contextId,
|
|
@@ -4,6 +4,14 @@ import type { GraphOperation } from "../../models/GraphOperation.ts";
|
|
|
4
4
|
import type { HostName } from "../../models/HostName.ts";
|
|
5
5
|
import type { SiteName } from "../../models/SiteName.ts";
|
|
6
6
|
import type { SiteRef } from "../../models/SiteRef.ts";
|
|
7
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* Get a site by its name.
|
|
9
|
+
*
|
|
10
|
+
* @param contextRef - A reference to the context.
|
|
11
|
+
* @param hostName - The host name of the site.
|
|
12
|
+
* @param siteName - The name of the site.
|
|
13
|
+
* @returns The specified site, including its metadata and reference information.
|
|
14
|
+
* @see https://learn.microsoft.com/en-us/graph/api/site-getbypath
|
|
15
|
+
*/
|
|
8
16
|
export default function getSiteByName(contextRef: ContextRef, hostName: HostName, siteName: SiteName): GraphOperation<Site & SiteRef>;
|
|
9
17
|
//# sourceMappingURL=getSiteByName.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSiteByName.d.ts","sourceRoot":"","sources":["../../../src/operations/site/getSiteByName.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AAE7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAIvD
|
|
1
|
+
{"version":3,"file":"getSiteByName.d.ts","sourceRoot":"","sources":["../../../src/operations/site/getSiteByName.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AAE7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAIvD;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,GAAG,cAAc,CAAC,IAAI,GAAG,OAAO,CAAC,CAiBpI"}
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import { operation } from "../../graphApi.js";
|
|
2
2
|
import { createSiteRef } from "../../services/site.js";
|
|
3
3
|
import { generatePath } from "../../services/templatedPaths.js";
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* Get a site by its name.
|
|
6
|
+
*
|
|
7
|
+
* @param contextRef - A reference to the context.
|
|
8
|
+
* @param hostName - The host name of the site.
|
|
9
|
+
* @param siteName - The name of the site.
|
|
10
|
+
* @returns The specified site, including its metadata and reference information.
|
|
11
|
+
* @see https://learn.microsoft.com/en-us/graph/api/site-getbypath
|
|
12
|
+
*/
|
|
5
13
|
export default function getSiteByName(contextRef, hostName, siteName) {
|
|
6
14
|
return operation({
|
|
7
15
|
contextId: contextRef.contextId,
|
|
@@ -2,6 +2,12 @@ import type { Site } from "@microsoft/microsoft-graph-types";
|
|
|
2
2
|
import type { ContextRef } from "../../models/ContextRef.ts";
|
|
3
3
|
import type { GraphOperation } from "../../models/GraphOperation.ts";
|
|
4
4
|
import type { SiteRef } from "../../models/SiteRef.ts";
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* List accessible sites.
|
|
7
|
+
*
|
|
8
|
+
* @param contextRef - A reference to the context.
|
|
9
|
+
* @returns An array of sites, each including its metadata and reference information.
|
|
10
|
+
* @see https://learn.microsoft.com/en-us/graph/api/site-list
|
|
11
|
+
*/
|
|
6
12
|
export default function listSites(contextRef: ContextRef): GraphOperation<(Site & SiteRef)[]>;
|
|
7
13
|
//# sourceMappingURL=listSites.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listSites.d.ts","sourceRoot":"","sources":["../../../src/operations/site/listSites.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AAE7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAErE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAIvD
|
|
1
|
+
{"version":3,"file":"listSites.d.ts","sourceRoot":"","sources":["../../../src/operations/site/listSites.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AAE7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAErE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAIvD;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,UAAU,EAAE,UAAU,GAAG,cAAc,CAAC,CAAC,IAAI,GAAG,OAAO,CAAC,EAAE,CAAC,CAuB5F"}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { operation } from "../../graphApi.js";
|
|
2
2
|
import { createSiteRef } from "../../services/site.js";
|
|
3
3
|
import { generatePath } from "../../services/templatedPaths.js";
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* List accessible sites.
|
|
6
|
+
*
|
|
7
|
+
* @param contextRef - A reference to the context.
|
|
8
|
+
* @returns An array of sites, each including its metadata and reference information.
|
|
9
|
+
* @see https://learn.microsoft.com/en-us/graph/api/site-list
|
|
10
|
+
*/
|
|
5
11
|
export default function listSites(contextRef) {
|
|
6
12
|
return operation({
|
|
7
13
|
contextId: contextRef.contextId,
|
|
@@ -2,6 +2,13 @@ import type { Site } from "@microsoft/microsoft-graph-types";
|
|
|
2
2
|
import type { ContextRef } from "../../models/ContextRef.ts";
|
|
3
3
|
import type { GraphOperation } from "../../models/GraphOperation.ts";
|
|
4
4
|
import type { SiteRef } from "../../models/SiteRef.ts";
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* Find accessible sites that match the provided keywords.
|
|
7
|
+
*
|
|
8
|
+
* @param contextRef - A reference to the context.
|
|
9
|
+
* @param search - The search keywords to find matching sites.
|
|
10
|
+
* @returns An array of sites that match the search criteria, each including its metadata and reference information.
|
|
11
|
+
* @see https://learn.microsoft.com/en-us/graph/api/site-search
|
|
12
|
+
*/
|
|
6
13
|
export default function searchSites(contextRef: ContextRef, search: string): GraphOperation<(Site & SiteRef)[]>;
|
|
7
14
|
//# sourceMappingURL=searchSites.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"searchSites.d.ts","sourceRoot":"","sources":["../../../src/operations/site/searchSites.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AAE7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAErE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAIvD
|
|
1
|
+
{"version":3,"file":"searchSites.d.ts","sourceRoot":"","sources":["../../../src/operations/site/searchSites.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AAE7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAErE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAIvD;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,GAAG,cAAc,CAAC,CAAC,IAAI,GAAG,OAAO,CAAC,EAAE,CAAC,CAuB9G"}
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import { operation } from "../../graphApi.js";
|
|
2
2
|
import { createSiteRef } from "../../services/site.js";
|
|
3
3
|
import { generatePath } from "../../services/templatedPaths.js";
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* Find accessible sites that match the provided keywords.
|
|
6
|
+
*
|
|
7
|
+
* @param contextRef - A reference to the context.
|
|
8
|
+
* @param search - The search keywords to find matching sites.
|
|
9
|
+
* @returns An array of sites that match the search criteria, each including its metadata and reference information.
|
|
10
|
+
* @see https://learn.microsoft.com/en-us/graph/api/site-search
|
|
11
|
+
*/
|
|
5
12
|
export default function searchSites(contextRef, search) {
|
|
6
13
|
return operation({
|
|
7
14
|
contextId: contextRef.contextId,
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import type { Message } from "@microsoft/microsoft-graph-types";
|
|
2
2
|
import type { ContextRef } from "../../models/ContextRef.ts";
|
|
3
3
|
import type { GraphOperation } from "../../models/GraphOperation.ts";
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* Send an email.
|
|
6
|
+
*
|
|
7
|
+
* @param contextRef - A reference to the context.
|
|
8
|
+
* @param sender - The email address of the sender or NULL for the current user. Must match a valid email address in this tenant.
|
|
9
|
+
* @param message - The email message to be sent.
|
|
10
|
+
* @returns Nothing.
|
|
11
|
+
* @throws InvalidArgumentError if the sender email address does not match the required pattern.
|
|
12
|
+
* @see https://learn.microsoft.com/en-us/graph/api/user-sendmail
|
|
13
|
+
*/
|
|
5
14
|
export default function userSendMail(contextRef: ContextRef, sender: string | null, message: Message): GraphOperation<void>;
|
|
6
15
|
//# sourceMappingURL=userSendMail.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userSendMail.d.ts","sourceRoot":"","sources":["../../../src/operations/user/userSendMail.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAGhE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAa,MAAM,gCAAgC,CAAC;AAMhF
|
|
1
|
+
{"version":3,"file":"userSendMail.d.ts","sourceRoot":"","sources":["../../../src/operations/user/userSendMail.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAGhE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAa,MAAM,gCAAgC,CAAC;AAMhF;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,EAAE,OAAO,EAAE,OAAO,GAAG,cAAc,CAAC,IAAI,CAAC,CAmB1H"}
|
|
@@ -2,7 +2,16 @@ import InvalidArgumentError from "../../errors/InvalidArgumentError.js";
|
|
|
2
2
|
import { operation } from "../../graphApi.js";
|
|
3
3
|
// Overview of SendMail process: https://learn.microsoft.com/en-us/graph/outlook-things-to-know-about-send-mail
|
|
4
4
|
const emailPattern = /^[a-zA-Z0-9._\-@]+$/; // Basic, but intended just to avoid URL escaping issues
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* Send an email.
|
|
7
|
+
*
|
|
8
|
+
* @param contextRef - A reference to the context.
|
|
9
|
+
* @param sender - The email address of the sender or NULL for the current user. Must match a valid email address in this tenant.
|
|
10
|
+
* @param message - The email message to be sent.
|
|
11
|
+
* @returns Nothing.
|
|
12
|
+
* @throws InvalidArgumentError if the sender email address does not match the required pattern.
|
|
13
|
+
* @see https://learn.microsoft.com/en-us/graph/api/user-sendmail
|
|
14
|
+
*/
|
|
6
15
|
export default function userSendMail(contextRef, sender, message) {
|
|
7
16
|
if (sender && !emailPattern.test(sender)) {
|
|
8
17
|
throw new InvalidArgumentError(`Invalid email address. Must match pattern '${emailPattern}'`);
|
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
import type { GraphOperation } from "../../models/GraphOperation.ts";
|
|
2
2
|
import type { WorkbookRef } from "../../models/WorkbookRef.ts";
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* Recalculate a workbook.
|
|
5
|
+
*
|
|
6
|
+
* @param workbookRef - A reference to the workbook to be recalculated.
|
|
7
|
+
* @param calculationType - The type of recalculation to perform. Can be "Recalculate", "Full", or "FullRebuild". Defaults to "Recalculate".
|
|
8
|
+
* @returns Nothing.
|
|
9
|
+
* @see https://learn.microsoft.com/en-us/graph/api/workbookapplication-calculate
|
|
10
|
+
*/
|
|
4
11
|
export default function calculateWorkbook(workbookRef: WorkbookRef, calculationType?: "Recalculate" | "Full" | "FullRebuild"): GraphOperation<void>;
|
|
5
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated Use calculateWorkbook instead.
|
|
14
|
+
*
|
|
15
|
+
* @param workbookRef - A reference to the workbook to be recalculated.
|
|
16
|
+
* @returns Nothing.
|
|
17
|
+
*/
|
|
6
18
|
export declare function recalculateWorkbook(workbookRef: WorkbookRef): GraphOperation<void>;
|
|
7
19
|
//# sourceMappingURL=calculateWorkbook.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calculateWorkbook.d.ts","sourceRoot":"","sources":["../../../src/operations/workbook/calculateWorkbook.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAG/D
|
|
1
|
+
{"version":3,"file":"calculateWorkbook.d.ts","sourceRoot":"","sources":["../../../src/operations/workbook/calculateWorkbook.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAG/D;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,WAAW,EAAE,WAAW,EAAE,eAAe,GAAE,aAAa,GAAG,MAAM,GAAG,aAA6B,GAAG,cAAc,CAAC,IAAI,CAAC,CAajK;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,WAAW,GAAG,cAAc,CAAC,IAAI,CAAC,CAElF"}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { operation } from "../../graphApi.js";
|
|
2
2
|
import { generatePath } from "../../services/templatedPaths.js";
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* Recalculate a workbook.
|
|
5
|
+
*
|
|
6
|
+
* @param workbookRef - A reference to the workbook to be recalculated.
|
|
7
|
+
* @param calculationType - The type of recalculation to perform. Can be "Recalculate", "Full", or "FullRebuild". Defaults to "Recalculate".
|
|
8
|
+
* @returns Nothing.
|
|
9
|
+
* @see https://learn.microsoft.com/en-us/graph/api/workbookapplication-calculate
|
|
10
|
+
*/
|
|
4
11
|
export default function calculateWorkbook(workbookRef, calculationType = "Recalculate") {
|
|
5
12
|
return operation({
|
|
6
13
|
contextId: workbookRef.contextId,
|
|
@@ -15,7 +22,12 @@ export default function calculateWorkbook(workbookRef, calculationType = "Recalc
|
|
|
15
22
|
responseTransform: () => undefined,
|
|
16
23
|
});
|
|
17
24
|
}
|
|
18
|
-
/**
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated Use calculateWorkbook instead.
|
|
27
|
+
*
|
|
28
|
+
* @param workbookRef - A reference to the workbook to be recalculated.
|
|
29
|
+
* @returns Nothing.
|
|
30
|
+
*/
|
|
19
31
|
export function recalculateWorkbook(workbookRef) {
|
|
20
32
|
return calculateWorkbook(workbookRef, "Recalculate");
|
|
21
33
|
}
|
|
@@ -4,6 +4,14 @@ import type { DriveItemRef } from "../../models/DriveItemRef.ts";
|
|
|
4
4
|
import type { DriveRef } from "../../models/DriveRef.ts";
|
|
5
5
|
import type { GraphOperation } from "../../models/GraphOperation.ts";
|
|
6
6
|
import type { WorkbookRef } from "../../models/WorkbookRef.ts";
|
|
7
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* Create a new blank workbook.
|
|
9
|
+
*
|
|
10
|
+
* @param parentRef - A reference to the parent drive or folder where the workbook will be created.
|
|
11
|
+
* @param itemPath - The path (including the filename) for the new workbook. Must end with `.xlsx`.
|
|
12
|
+
* @returns The newly created workbook, including its metadata and reference information.
|
|
13
|
+
* @throws InvalidArgumentError if the item path does not end with `.xlsx`.
|
|
14
|
+
* @see https://learn.microsoft.com/en-us/graph/api/driveitem-put-content
|
|
15
|
+
*/
|
|
8
16
|
export default function createWorkbook(parentRef: DriveRef | DriveItemRef, itemPath: DriveItemPath): GraphOperation<DriveItem & WorkbookRef>;
|
|
9
17
|
//# sourceMappingURL=createWorkbook.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createWorkbook.d.ts","sourceRoot":"","sources":["../../../src/operations/workbook/createWorkbook.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAIlE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAI/D
|
|
1
|
+
{"version":3,"file":"createWorkbook.d.ts","sourceRoot":"","sources":["../../../src/operations/workbook/createWorkbook.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAIlE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAI/D;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,SAAS,EAAE,QAAQ,GAAG,YAAY,EAAE,QAAQ,EAAE,aAAa,GAAG,cAAc,CAAC,SAAS,GAAG,WAAW,CAAC,CAyB3I"}
|