microsoft-graph 1.0.4 → 1.0.5
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/errors/BadTemplateError.d.ts +4 -0
- package/dist/errors/EnvironmentVariableMissingError.d.ts +4 -0
- package/dist/errors/InvalidArgumentError.d.ts +7 -0
- package/dist/errors/ProtocolError.d.ts +5 -0
- package/dist/errors/RequestFailedError.d.ts +6 -0
- package/dist/graphApi.d.ts +15 -0
- package/dist/index.d.ts +2 -0
- package/dist/models/AccessToken.d.ts +4 -0
- package/dist/models/DriveId.d.ts +4 -0
- package/dist/models/DriveItemId.d.ts +4 -0
- package/dist/models/DriveItemPath.d.ts +4 -0
- package/dist/models/DriveItemRef.d.ts +6 -0
- package/dist/models/DriveRef.d.ts +6 -0
- package/dist/models/GraphOperation.d.ts +25 -0
- package/dist/models/GraphOperationDefinition.d.ts +20 -0
- package/dist/models/HostName.d.ts +4 -0
- package/dist/models/Scope.d.ts +4 -0
- package/dist/models/SiteId.d.ts +4 -0
- package/dist/models/SiteName.d.ts +4 -0
- package/dist/models/SiteRef.d.ts +5 -0
- package/dist/models/WorkbookNamedRangeRef.d.ts +6 -0
- package/dist/models/WorkbookRangeAddress.d.ts +10 -0
- package/dist/models/WorkbookRangeName.d.ts +4 -0
- package/dist/models/WorkbookRangeRef.d.ts +6 -0
- package/dist/models/WorkbookRef.d.ts +6 -0
- package/dist/models/WorkbookSessionId.d.ts +4 -0
- package/dist/models/WorkbookTableId.d.ts +4 -0
- package/dist/models/WorkbookTableRef.d.ts +6 -0
- package/dist/models/WorkbookWorksheetId.d.ts +4 -0
- package/dist/models/WorkbookWorksheetName.d.ts +4 -0
- package/dist/models/WorkbookWorksheetRef.d.ts +6 -0
- package/dist/operations/drive/createFolder.d.ts +7 -0
- package/dist/operations/drive/createFolder.test.d.ts +2 -0
- package/dist/operations/drive/listDrives.d.ts +7 -0
- package/dist/operations/drive/listDrives.test.d.ts +2 -0
- package/dist/operations/driveItem/copyDriveItem.d.ts +5 -0
- package/dist/operations/driveItem/copyDriveItem.test.d.ts +2 -0
- package/dist/operations/driveItem/deleteDriveItem.d.ts +5 -0
- package/dist/operations/driveItem/deleteDriveItem.test.d.ts +2 -0
- package/dist/operations/driveItem/getDriveItem.d.ts +6 -0
- package/dist/operations/driveItem/getDriveItem.test.d.ts +2 -0
- package/dist/operations/driveItem/getDriveItemByPath.d.ts +8 -0
- package/dist/operations/driveItem/getDriveItemByPath.test.d.ts +2 -0
- package/dist/operations/driveItem/getDriveItemContent.d.ts +4 -0
- package/dist/operations/driveItem/getDriveItemContent.test.d.ts +2 -0
- package/dist/operations/driveItem/listDriveItems.d.ts +12 -0
- package/dist/operations/driveItem/listDriveItems.test.d.ts +2 -0
- package/dist/operations/site/getSite.d.ts +6 -0
- package/dist/operations/site/getSite.test.d.ts +2 -0
- package/dist/operations/site/getSiteByName.d.ts +8 -0
- package/dist/operations/site/getSiteByName.test.d.ts +2 -0
- package/dist/operations/site/listSites.d.ts +6 -0
- package/dist/operations/site/listSites.test.d.ts +2 -0
- package/dist/operations/site/searchSites.d.ts +6 -0
- package/dist/operations/site/searchSites.test.d.ts +2 -0
- package/dist/operations/workbook/calculateWorkbook.d.ts +7 -0
- package/dist/operations/workbook/calculateWorkbook.test.d.ts +2 -0
- package/dist/operations/workbook/createWorkbook.d.ts +8 -0
- package/dist/operations/workbook/createWorkbook.test.d.ts +2 -0
- package/dist/operations/workbook/deleteWorkbook.d.ts +5 -0
- package/dist/operations/workbookRange/clearWorkbookRange.d.ts +5 -0
- package/dist/operations/workbookRange/clearWorkbookRange.test.d.ts +2 -0
- package/dist/operations/workbookRange/deleteWorkbookRange.d.ts +5 -0
- package/dist/operations/workbookRange/deleteWorkbookRange.test.d.ts +2 -0
- package/dist/operations/workbookRange/getWorkbookNamedRange.d.ts +6 -0
- package/dist/operations/workbookRange/getWorkbookUsedRange.d.ts +7 -0
- package/dist/operations/workbookRange/getWorkbookUsedRange.test.d.ts +2 -0
- package/dist/operations/workbookRange/getWorkbookVisibleRange.d.ts +6 -0
- package/dist/operations/workbookRange/getWorkbookVisibleRange.test.d.ts +2 -0
- package/dist/operations/workbookRange/insertWorkbookCells.d.ts +8 -0
- package/dist/operations/workbookRange/insertWorkbookCells.test.d.ts +2 -0
- package/dist/operations/workbookRange/updateWorkbookNamedRange.d.ts +6 -0
- package/dist/operations/workbookRange/updateWorkbookRange.d.ts +6 -0
- package/dist/operations/workbookRange/updateWorkbookRange.test.d.ts +2 -0
- package/dist/operations/workbookSession/closeWorkbookSession.d.ts +5 -0
- package/dist/operations/workbookSession/createWorkbookSession.d.ts +6 -0
- package/dist/operations/workbookSession/refreshWorkbookSession.d.ts +5 -0
- package/dist/operations/workbookTable/createWorkbookTable.d.ts +7 -0
- package/dist/operations/workbookTable/createWorkbookTable.test.d.ts +2 -0
- package/dist/operations/workbookTable/getWorkbookTable.d.ts +6 -0
- package/dist/operations/workbookTable/getWorkbookTable.test.d.ts +2 -0
- package/dist/operations/workbookTable/getWorkbookTableBodyRange.d.ts +7 -0
- package/dist/operations/workbookTable/getWorkbookTableBodyRange.test.d.ts +2 -0
- package/dist/operations/workbookTable/getWorkbookTableHeaderRange.d.ts +7 -0
- package/dist/operations/workbookTable/getWorkbookTableHeaderRange.test.d.ts +2 -0
- package/dist/operations/workbookTable/listWorkbookTableColumns.d.ts +6 -0
- package/dist/operations/workbookTable/listWorkbookTableColumns.test.d.ts +2 -0
- package/dist/operations/workbookTable/listWorkbookTableRows.d.ts +6 -0
- package/dist/operations/workbookTable/listWorkbookTableRows.test.d.ts +2 -0
- package/dist/operations/workbookTable/listWorkbookTables.d.ts +7 -0
- package/dist/operations/workbookTable/listWorkbookTables.test.d.ts +2 -0
- package/dist/operations/workbookWorksheet/createWorkbookWorksheet.d.ts +8 -0
- package/dist/operations/workbookWorksheet/createWorkbookWorksheet.test.d.ts +2 -0
- package/dist/operations/workbookWorksheet/deleteWorkbookWorksheet.d.ts +5 -0
- package/dist/operations/workbookWorksheet/deleteWorkbookWorksheet.test.d.ts +2 -0
- package/dist/operations/workbookWorksheet/getWorkbookWorksheetRange.d.ts +6 -0
- package/dist/operations/workbookWorksheet/getWorkbookWorksheetRange.test.d.ts +2 -0
- package/dist/operations/workbookWorksheet/listWorkbookWorksheets.d.ts +7 -0
- package/dist/operations/workbookWorksheet/listWorkbookWorksheets.test.d.ts +2 -0
- package/dist/operations/workbookWorksheet/updateWorkbookWorksheet.d.ts +10 -0
- package/dist/operations/workbookWorksheet/updateWorkbookWorksheet.test.d.ts +2 -0
- package/dist/services/accessToken.d.ts +5 -0
- package/dist/services/address.d.ts +2 -0
- package/dist/services/configuration.d.ts +7 -0
- package/dist/services/drive.d.ts +6 -0
- package/dist/services/driveItem.d.ts +10 -0
- package/dist/services/driveItem.test.d.ts +2 -0
- package/dist/services/httpAgent.d.ts +3 -0
- package/dist/services/httpStatus.d.ts +2 -0
- package/dist/services/operationId.d.ts +3 -0
- package/dist/services/sharepointUrl.d.ts +10 -0
- package/dist/services/sharepointUrl.test.d.ts +2 -0
- package/dist/services/site.d.ts +5 -0
- package/dist/services/sleep.d.ts +2 -0
- package/dist/services/stringCaseConversion.d.ts +2 -0
- package/dist/services/stringCaseConversion.test.d.ts +2 -0
- package/dist/services/templatedPaths.d.ts +4 -0
- package/dist/services/templatedPaths.test.d.ts +2 -0
- package/dist/services/temporaryFiles.d.ts +3 -0
- package/dist/services/workbookRange.d.ts +5 -0
- package/dist/services/workbookRangeAddress.d.ts +3 -0
- package/dist/services/workbookTable.d.ts +5 -0
- package/dist/services/workbookWorksheet.d.ts +6 -0
- package/dist/tasks/createWorkbookAndStartSession.d.ts +6 -0
- package/dist/tasks/deleteDriveItemWithRetry.d.ts +3 -0
- package/dist/tasks/downloadDriveItemContent.d.ts +3 -0
- package/dist/tasks/endSessionAndDeleteWorkbook.d.ts +3 -0
- package/dist/tasks/getRangeLastUsedCell.d.ts +8 -0
- package/dist/tasks/getRangeLastUsedCell.test.d.ts +2 -0
- package/dist/tasks/getWorkbookTableVisibleBody.d.ts +4 -0
- package/dist/tasks/getWorkbookTableVisibleBody.test.d.ts +2 -0
- package/dist/tasks/getWorkbookWorksheetRefByName.d.ts +5 -0
- package/dist/tasks/setColumnHidden.d.ts +3 -0
- package/dist/tasks/setColumnHidden.test.d.ts +2 -0
- package/dist/tasks/setRowHidden.d.ts +3 -0
- package/dist/tasks/setRowHidden.test.d.ts +2 -0
- package/package.json +1 -1
- package/update-exports.ts +58 -0
- package/vitest.config.ts +20 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { WorkbookRange } from "@microsoft/microsoft-graph-types";
|
|
2
|
+
import type { GraphOperation } from "../../models/GraphOperation.ts";
|
|
3
|
+
import type { WorkbookRangeRef } from "../../models/WorkbookRangeRef.ts";
|
|
4
|
+
import type { WorkbookTableRef } from "../../models/WorkbookTableRef.ts";
|
|
5
|
+
/** Retrieve the data body range of a table. @see https://learn.microsoft.com/en-us/graph/api/table-databodyrange */
|
|
6
|
+
export default function getWorkbookTableBodyRange(tableRef: WorkbookTableRef): GraphOperation<WorkbookRange & WorkbookRangeRef>;
|
|
7
|
+
//# sourceMappingURL=getWorkbookTableBodyRange.d.ts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { WorkbookRange } from "@microsoft/microsoft-graph-types";
|
|
2
|
+
import type { GraphOperation } from "../../models/GraphOperation.ts";
|
|
3
|
+
import type { WorkbookRangeRef } from "../../models/WorkbookRangeRef.ts";
|
|
4
|
+
import type { WorkbookTableRef } from "../../models/WorkbookTableRef.ts";
|
|
5
|
+
/** Retrieve the header row range of a table. @see https://learn.microsoft.com/en-us/graph/api/table-headerrowrange */
|
|
6
|
+
export default function getWorkbookTableHeaderRange(tableRef: WorkbookTableRef): GraphOperation<WorkbookRange & WorkbookRangeRef>;
|
|
7
|
+
//# sourceMappingURL=getWorkbookTableHeaderRange.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { WorkbookTableColumn } from "@microsoft/microsoft-graph-types";
|
|
2
|
+
import type { GraphOperation } from "../../models/GraphOperation.ts";
|
|
3
|
+
import type { WorkbookTableRef } from "../../models/WorkbookTableRef.ts";
|
|
4
|
+
/** Retrieve a list of columns in a table. @see https://learn.microsoft.com/en-us/graph/api/tablecolumn-list */
|
|
5
|
+
export default function listWorkbookTableColumns(tableRef: WorkbookTableRef): GraphOperation<WorkbookTableColumn[]>;
|
|
6
|
+
//# sourceMappingURL=listWorkbookTableColumns.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { WorkbookTableRow } from "@microsoft/microsoft-graph-types";
|
|
2
|
+
import type { GraphOperation } from "../../models/GraphOperation.ts";
|
|
3
|
+
import type { WorkbookTableRef } from "../../models/WorkbookTableRef.ts";
|
|
4
|
+
/** Retrieve a list of rows in a table. @see https://learn.microsoft.com/en-us/graph/api/tablerow-list */
|
|
5
|
+
export default function listWorkbookTableRows(tableRef: WorkbookTableRef): GraphOperation<WorkbookTableRow[]>;
|
|
6
|
+
//# sourceMappingURL=listWorkbookTableRows.d.ts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { WorkbookTable } from "@microsoft/microsoft-graph-types";
|
|
2
|
+
import type { GraphOperation } from "../../models/GraphOperation.ts";
|
|
3
|
+
import type { WorkbookRef } from "../../models/WorkbookRef.ts";
|
|
4
|
+
import type { WorkbookWorksheetRef } from "../../models/WorkbookWorksheetRef.ts";
|
|
5
|
+
/** Retrieve a list of tables in a worksheet. @see https://learn.microsoft.com/en-us/graph/api/worksheet-list-tables */
|
|
6
|
+
export default function listWorkbookTables(worksheetRef: WorkbookWorksheetRef): GraphOperation<(WorkbookTable & WorkbookRef)[]>;
|
|
7
|
+
//# sourceMappingURL=listWorkbookTables.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { WorkbookWorksheet } from "@microsoft/microsoft-graph-types";
|
|
2
|
+
import type { GraphOperation } from "../../models/GraphOperation.ts";
|
|
3
|
+
import type { WorkbookRef } from "../../models/WorkbookRef.ts";
|
|
4
|
+
import type { WorkbookWorksheetName } from "../../models/WorkbookWorksheetName.ts";
|
|
5
|
+
import type { WorkbookWorksheetRef } from "../../models/WorkbookWorksheetRef.ts";
|
|
6
|
+
/** Create a new worksheet, optionally with a defined name. @see https://learn.microsoft.com/en-us/graph/api/worksheetcollection-add */
|
|
7
|
+
export default function createWorkbookWorksheet(workbookRef: WorkbookRef, name?: WorkbookWorksheetName): GraphOperation<WorkbookWorksheet & WorkbookWorksheetRef>;
|
|
8
|
+
//# sourceMappingURL=createWorkbookWorksheet.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { GraphOperation } from "../../models/GraphOperation.ts";
|
|
2
|
+
import type { WorkbookWorksheetRef } from "../../models/WorkbookWorksheetRef.ts";
|
|
3
|
+
/** Permanently delete a worksheet. @see https://learn.microsoft.com/en-us/graph/api/worksheet-delete */
|
|
4
|
+
export default function deleteWorkbookWorksheet(worksheetRef: WorkbookWorksheetRef): GraphOperation<void>;
|
|
5
|
+
//# sourceMappingURL=deleteWorkbookWorksheet.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { WorkbookRange } from "@microsoft/microsoft-graph-types";
|
|
2
|
+
import type { GraphOperation } from "../../models/GraphOperation.ts";
|
|
3
|
+
import type { WorkbookRangeRef } from "../../models/WorkbookRangeRef.ts";
|
|
4
|
+
/** Fetch a range, including values and formatting. @see https://learn.microsoft.com/en-us/graph/api/range-get */
|
|
5
|
+
export default function getWorkbookWorksheetRange(rangeRef: WorkbookRangeRef): GraphOperation<WorkbookRange & WorkbookRangeRef>;
|
|
6
|
+
//# sourceMappingURL=getWorkbookWorksheetRange.d.ts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { WorkbookWorksheet } from "@microsoft/microsoft-graph-types";
|
|
2
|
+
import type { GraphOperation } from "../../models/GraphOperation.ts";
|
|
3
|
+
import type { WorkbookRef } from "../../models/WorkbookRef.ts";
|
|
4
|
+
import type { WorkbookWorksheetRef } from "../../models/WorkbookWorksheetRef.ts";
|
|
5
|
+
/** Retrieve a list of worksheets. @see https://learn.microsoft.com/en-us/graph/api/worksheet-list */
|
|
6
|
+
export default function listWorkbookWorksheets(workbookRef: WorkbookRef): GraphOperation<(WorkbookWorksheet & WorkbookWorksheetRef)[]>;
|
|
7
|
+
//# sourceMappingURL=listWorkbookWorksheets.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { WorkbookWorksheet } from "@microsoft/microsoft-graph-types";
|
|
2
|
+
import type { GraphOperation } from "../../models/GraphOperation.ts";
|
|
3
|
+
import type { WorkbookWorksheetRef } from "../../models/WorkbookWorksheetRef.ts";
|
|
4
|
+
/** Update the name, position and/or visibility of a worksheet. @see https://learn.microsoft.com/en-us/graph/api/worksheet-update */
|
|
5
|
+
export default function updateWorkbookWorksheet(worksheetRef: WorkbookWorksheetRef, updates: {
|
|
6
|
+
name?: string;
|
|
7
|
+
position?: number;
|
|
8
|
+
visibility?: "Visible" | "Hidden" | "VeryHidden";
|
|
9
|
+
}): GraphOperation<WorkbookWorksheet & WorkbookWorksheetRef>;
|
|
10
|
+
//# sourceMappingURL=updateWorkbookWorksheet.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { AccessToken } from "../models/AccessToken.ts";
|
|
2
|
+
import type { Scope } from "../models/Scope.ts";
|
|
3
|
+
/** Get an access token for a given scope. If an unexpired one is cached it will be returned, otherwise requests a new one. */
|
|
4
|
+
export declare function getCurrentAccessToken(scope: Scope): Promise<AccessToken>;
|
|
5
|
+
//# sourceMappingURL=accessToken.d.ts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const azureTenantIdEnv: () => string;
|
|
2
|
+
export declare const azureClientIdEnv: () => string;
|
|
3
|
+
export declare const azureClientSecretEnv: () => string;
|
|
4
|
+
export declare const defaultSiteIdEnv: () => string;
|
|
5
|
+
export declare const defaultDriveIdEnv: () => string;
|
|
6
|
+
export declare const httpProxyEnv: () => string;
|
|
7
|
+
//# sourceMappingURL=configuration.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { DriveId } from "../models/DriveId.ts";
|
|
2
|
+
import type { DriveRef } from "../models/DriveRef.ts";
|
|
3
|
+
import type { SiteRef } from "../models/SiteRef.ts";
|
|
4
|
+
export declare function driveRef(siteRef: SiteRef, driveId: DriveId | undefined): DriveRef;
|
|
5
|
+
export declare function getDefaultDriveRef(): DriveRef;
|
|
6
|
+
//# sourceMappingURL=drive.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { DriveItemId } from "../models/DriveItemId.ts";
|
|
2
|
+
import type { DriveItemPath } from "../models/DriveItemPath.ts";
|
|
3
|
+
import type { DriveItemRef } from "../models/DriveItemRef.ts";
|
|
4
|
+
import type { DriveRef } from "../models/DriveRef.ts";
|
|
5
|
+
export declare const workbookFileExtension = "xlsx";
|
|
6
|
+
export declare const rootDriveItemPath: DriveItemPath;
|
|
7
|
+
/** Create a drive item path from a given set of segments. Ie ["a","b"] => "/a/b" */
|
|
8
|
+
export declare function driveItemPath(...segments: string[]): DriveItemPath;
|
|
9
|
+
export declare function driveItemRef(driveRef: DriveRef, itemId: DriveItemId | undefined): DriveItemRef;
|
|
10
|
+
//# sourceMappingURL=driveItem.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { DriveItemId } from "../models/DriveItemId.ts";
|
|
2
|
+
import type { HostName } from "../models/HostName.ts";
|
|
3
|
+
import type { SiteName } from "../models/SiteName.ts";
|
|
4
|
+
/** Get the site name and item path from a given SharePoint document URL. (ie https://msftfuturesecureai.sharepoint.com/sites/FSAI-MQG/_layouts/15/doc.aspx?sourcedoc={500ff055-1e0f-4c2e-8b32-d167fba4778b} */
|
|
5
|
+
export declare function parseSharepointUrl(url: URL): {
|
|
6
|
+
hostName: HostName;
|
|
7
|
+
siteName: SiteName;
|
|
8
|
+
itemId: DriveItemId;
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=sharepointUrl.d.ts.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { GraphPath } from "../models/GraphOperation.ts";
|
|
2
|
+
/** Create a GraphAPI path based on a given template and arguments. Escaping is automatically handeld */
|
|
3
|
+
export declare function generatePath(template: string, args: Record<string, string | undefined>): GraphPath;
|
|
4
|
+
//# sourceMappingURL=templatedPaths.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { WorkbookRangeAddressUnderlying } from "../models/WorkbookRangeAddress.ts";
|
|
2
|
+
import type { WorkbookRangeRef } from "../models/WorkbookRangeRef.ts";
|
|
3
|
+
import type { WorkbookWorksheetRef } from "../models/WorkbookWorksheetRef.ts";
|
|
4
|
+
export declare function workbookRangeRef(worksheetRef: WorkbookWorksheetRef, address: WorkbookRangeAddressUnderlying): WorkbookRangeRef;
|
|
5
|
+
//# sourceMappingURL=workbookRange.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { WorkbookTableId } from "../models/WorkbookTableId.ts";
|
|
2
|
+
import type { WorkbookTableRef } from "../models/WorkbookTableRef.ts";
|
|
3
|
+
import type { WorkbookWorksheetRef } from "../models/WorkbookWorksheetRef.ts";
|
|
4
|
+
export declare function workbookTableRef(worksheetRef: WorkbookWorksheetRef, tableId: WorkbookTableId | undefined): WorkbookTableRef;
|
|
5
|
+
//# sourceMappingURL=workbookTable.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { WorkbookRef } from "../models/WorkbookRef.ts";
|
|
2
|
+
import type { WorkbookWorksheetId } from "../models/WorkbookWorksheetId.ts";
|
|
3
|
+
import type { WorkbookWorksheetRef } from "../models/WorkbookWorksheetRef.ts";
|
|
4
|
+
export declare const defaultWorkbookWorksheetId: WorkbookWorksheetId;
|
|
5
|
+
export declare function workbookWorksheetRef(workbookRef: WorkbookRef, worksheetId: WorkbookWorksheetId | undefined): WorkbookWorksheetRef;
|
|
6
|
+
//# sourceMappingURL=workbookWorksheet.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Workbook } from "@microsoft/microsoft-graph-types";
|
|
2
|
+
import type { DriveItemPath } from "../models/DriveItemPath.ts";
|
|
3
|
+
import type { DriveRef } from "../models/DriveRef.ts";
|
|
4
|
+
import type { WorkbookRef } from "../models/WorkbookRef.ts";
|
|
5
|
+
export default function createWorkbookAndStartSession(driveRef: DriveRef, itemPath: DriveItemPath): Promise<Workbook & WorkbookRef>;
|
|
6
|
+
//# sourceMappingURL=createWorkbookAndStartSession.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { WorkbookRangeRef } from "../models/WorkbookRangeRef.ts";
|
|
2
|
+
export default function getRangeLastUsedCell(rangeRef: WorkbookRangeRef): Promise<{
|
|
3
|
+
value: string | number | boolean | null;
|
|
4
|
+
address: string;
|
|
5
|
+
rowIndex: number;
|
|
6
|
+
columnIndex: number;
|
|
7
|
+
} | null>;
|
|
8
|
+
//# sourceMappingURL=getRangeLastUsedCell.d.ts.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { WorkbookRangeView } from "@microsoft/microsoft-graph-types";
|
|
2
|
+
import type { WorkbookTableRef } from "../models/WorkbookTableRef.ts";
|
|
3
|
+
export declare function getWorkbookTableVisibleBody(tableRef: WorkbookTableRef): Promise<WorkbookRangeView>;
|
|
4
|
+
//# sourceMappingURL=getWorkbookTableVisibleBody.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { WorkbookWorksheet } from "@microsoft/microsoft-graph-types";
|
|
2
|
+
import type { WorkbookRef } from "../models/WorkbookRef.ts";
|
|
3
|
+
import type { WorkbookWorksheetRef } from "../models/WorkbookWorksheetRef.ts";
|
|
4
|
+
export default function getWorkbookWorksheetByName(workbookRef: WorkbookRef, name: string): Promise<WorkbookWorksheet & WorkbookWorksheetRef>;
|
|
5
|
+
//# sourceMappingURL=getWorkbookWorksheetRefByName.d.ts.map
|
package/package.json
CHANGED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { readdirSync, readFileSync, statSync, writeFileSync } from 'fs';
|
|
2
|
+
import { join } from 'path';
|
|
3
|
+
|
|
4
|
+
const distDir = './dist';
|
|
5
|
+
const pkgPath = './package.json';
|
|
6
|
+
const pkg = JSON.parse(readFileSync(pkgPath, 'utf-8'));
|
|
7
|
+
|
|
8
|
+
const exportsMap = {
|
|
9
|
+
".": {
|
|
10
|
+
import: "./dist/index.js",
|
|
11
|
+
types: "./dist/index.d.ts"
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
function isTestFile(fileName) {
|
|
16
|
+
return (
|
|
17
|
+
fileName.endsWith('.test.js') ||
|
|
18
|
+
fileName.endsWith('.spec.js')
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function isTestDir(path) {
|
|
23
|
+
return /\/(__tests__|__mocks__)(\/|$)/.test(path.replace(/\\/g, '/'));
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function walk(dir, currentRelPath = '') {
|
|
27
|
+
const entries = readdirSync(dir);
|
|
28
|
+
|
|
29
|
+
for (const entry of entries) {
|
|
30
|
+
const fullPath = join(dir, entry);
|
|
31
|
+
const stats = statSync(fullPath);
|
|
32
|
+
const relPath = join(currentRelPath, entry);
|
|
33
|
+
|
|
34
|
+
if (stats.isDirectory()) {
|
|
35
|
+
if (!isTestDir(relPath)) {
|
|
36
|
+
walk(fullPath, relPath);
|
|
37
|
+
}
|
|
38
|
+
} else if (
|
|
39
|
+
entry.endsWith('.js') &&
|
|
40
|
+
entry !== 'index.js' &&
|
|
41
|
+
!isTestFile(entry) &&
|
|
42
|
+
!isTestDir(relPath)
|
|
43
|
+
) {
|
|
44
|
+
const exportPath = './' + relPath.replace(/\.js$/, '').replace(/\\/g, '/');
|
|
45
|
+
exportsMap[exportPath] = {
|
|
46
|
+
import: `./dist/${relPath.replace(/\\/g, '/')}`,
|
|
47
|
+
types: `./dist/${relPath.replace(/\.js$/, '.d.ts').replace(/\\/g, '/')}`
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
walk(distDir);
|
|
54
|
+
|
|
55
|
+
pkg.exports = exportsMap;
|
|
56
|
+
|
|
57
|
+
writeFileSync(pkgPath, JSON.stringify(pkg, null, 2) + "\n");
|
|
58
|
+
console.log("✅ package.json exports updated with", Object.keys(exportsMap).length, "entries");
|
package/vitest.config.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { defineConfig } from "vitest/config";
|
|
2
|
+
|
|
3
|
+
export default defineConfig({
|
|
4
|
+
test: {
|
|
5
|
+
environment: "node",
|
|
6
|
+
watch: false,
|
|
7
|
+
include: ["src/**/*.test.ts"],
|
|
8
|
+
maxConcurrency: 1, // Avoid API throttling
|
|
9
|
+
retry: 2,
|
|
10
|
+
poolOptions: {
|
|
11
|
+
threads: {
|
|
12
|
+
maxThreads: 1,// Avoid API throttling
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
sequence: {
|
|
16
|
+
concurrent: false,
|
|
17
|
+
},
|
|
18
|
+
testTimeout: 10000,
|
|
19
|
+
},
|
|
20
|
+
});
|