microsoft-graph 2.20.0 → 2.20.2

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.
@@ -1,13 +1,14 @@
1
1
  import type { Workbook } from "@microsoft/microsoft-graph-types";
2
2
  import type { DriveItemPath } from "../models/DriveItemPath.ts";
3
+ import type { DriveItemRef } from "../models/DriveItemRef.ts";
3
4
  import type { DriveRef } from "../models/DriveRef.ts";
4
5
  import type { WorkbookRef } from "../models/WorkbookRef.ts";
5
6
  /**
6
7
  * Create a new workbook and open a session for that workbook in a single operation.
7
8
  *
8
- * @param driveRef - A reference to the drive where the workbook will be created.
9
+ * @param parentRef - A reference to the drive or driveItem where the workbook will be created.
9
10
  * @param itemPath - The path of the new workbook within the drive.
10
11
  * @returns The created workbook and session details.
11
12
  */
12
- export default function createWorkbookAndStartSession(driveRef: DriveRef, itemPath: DriveItemPath): Promise<Workbook & WorkbookRef>;
13
+ export default function createWorkbookAndStartSession(parentRef: DriveRef | DriveItemRef, itemPath: DriveItemPath): Promise<Workbook & WorkbookRef>;
13
14
  //# sourceMappingURL=createWorkbookAndStartSession.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createWorkbookAndStartSession.d.ts","sourceRoot":"","sources":["../../../src/tasks/createWorkbookAndStartSession.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAI5D;;;;;;GAMG;AACH,wBAA8B,6BAA6B,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,GAAG,WAAW,CAAC,CAQxI"}
1
+ {"version":3,"file":"createWorkbookAndStartSession.d.ts","sourceRoot":"","sources":["../../../src/tasks/createWorkbookAndStartSession.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAI5D;;;;;;GAMG;AACH,wBAA8B,6BAA6B,CAAC,SAAS,EAAE,QAAQ,GAAG,YAAY,EAAE,QAAQ,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,GAAG,WAAW,CAAC,CAQxJ"}
@@ -9,12 +9,12 @@ const createWorkbookSession_ts_1 = __importDefault(require("../operations/workbo
9
9
  /**
10
10
  * Create a new workbook and open a session for that workbook in a single operation.
11
11
  *
12
- * @param driveRef - A reference to the drive where the workbook will be created.
12
+ * @param parentRef - A reference to the drive or driveItem where the workbook will be created.
13
13
  * @param itemPath - The path of the new workbook within the drive.
14
14
  * @returns The created workbook and session details.
15
15
  */
16
- async function createWorkbookAndStartSession(driveRef, itemPath) {
17
- const workbook = await (0, createWorkbook_ts_1.default)(driveRef, itemPath);
16
+ async function createWorkbookAndStartSession(parentRef, itemPath) {
17
+ const workbook = await (0, createWorkbook_ts_1.default)(parentRef, itemPath);
18
18
  const workbookRef = await (0, createWorkbookSession_ts_1.default)(workbook);
19
19
  return {
20
20
  ...workbook,
@@ -6,5 +6,5 @@ import type { WorkbookRangeRef } from "../models/WorkbookRangeRef.ts";
6
6
  * @param rows An iterable or async iterable of rows to write. Each row is an array of cells.
7
7
  * @param overrideMaxRowsPerUnderlyingRead Optional maximum number of rows to write in a single underlying read. If not provided, it will be automatically calculated based on a safe value.
8
8
  */
9
- export declare function writeWorkbookRows(originRef: WorkbookRangeRef, rows: Iterable<Partial<Cell>[]> | AsyncIterable<Partial<Cell>[]>, overrideMaxRowsPerUnderlyingRead?: number | null): Promise<void>;
9
+ export default function writeWorkbookRows(originRef: WorkbookRangeRef, rows: Iterable<Partial<Cell>[]> | AsyncIterable<Partial<Cell>[]>, overrideMaxRowsPerUnderlyingRead?: number | null): Promise<void>;
10
10
  //# sourceMappingURL=writeWorkbookRows.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"writeWorkbookRows.d.ts","sourceRoot":"","sources":["../../../src/tasks/writeWorkbookRows.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAMtE;;;;;GAKG;AACH,wBAAsB,iBAAiB,CAAC,SAAS,EAAE,gBAAgB,EAAE,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,aAAa,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,gCAAgC,GAAE,MAAM,GAAG,IAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAuB5M"}
1
+ {"version":3,"file":"writeWorkbookRows.d.ts","sourceRoot":"","sources":["../../../src/tasks/writeWorkbookRows.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAMtE;;;;;GAKG;AACH,wBAA8B,iBAAiB,CAAC,SAAS,EAAE,gBAAgB,EAAE,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,aAAa,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,gCAAgC,GAAE,MAAM,GAAG,IAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAuBpN"}
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.writeWorkbookRows = writeWorkbookRows;
6
+ exports.default = writeWorkbookRows;
7
7
  const InvalidArgumentError_ts_1 = __importDefault(require("../errors/InvalidArgumentError.js"));
8
8
  const updateWorkbookRange_ts_1 = __importDefault(require("../operations/workbookRange/updateWorkbookRange.js"));
9
9
  const batch_ts_1 = require("../services/batch.js");
@@ -1,13 +1,14 @@
1
1
  import type { Workbook } from "@microsoft/microsoft-graph-types";
2
2
  import type { DriveItemPath } from "../models/DriveItemPath.ts";
3
+ import type { DriveItemRef } from "../models/DriveItemRef.ts";
3
4
  import type { DriveRef } from "../models/DriveRef.ts";
4
5
  import type { WorkbookRef } from "../models/WorkbookRef.ts";
5
6
  /**
6
7
  * Create a new workbook and open a session for that workbook in a single operation.
7
8
  *
8
- * @param driveRef - A reference to the drive where the workbook will be created.
9
+ * @param parentRef - A reference to the drive or driveItem where the workbook will be created.
9
10
  * @param itemPath - The path of the new workbook within the drive.
10
11
  * @returns The created workbook and session details.
11
12
  */
12
- export default function createWorkbookAndStartSession(driveRef: DriveRef, itemPath: DriveItemPath): Promise<Workbook & WorkbookRef>;
13
+ export default function createWorkbookAndStartSession(parentRef: DriveRef | DriveItemRef, itemPath: DriveItemPath): Promise<Workbook & WorkbookRef>;
13
14
  //# sourceMappingURL=createWorkbookAndStartSession.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createWorkbookAndStartSession.d.ts","sourceRoot":"","sources":["../../../src/tasks/createWorkbookAndStartSession.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAI5D;;;;;;GAMG;AACH,wBAA8B,6BAA6B,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,GAAG,WAAW,CAAC,CAQxI"}
1
+ {"version":3,"file":"createWorkbookAndStartSession.d.ts","sourceRoot":"","sources":["../../../src/tasks/createWorkbookAndStartSession.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAI5D;;;;;;GAMG;AACH,wBAA8B,6BAA6B,CAAC,SAAS,EAAE,QAAQ,GAAG,YAAY,EAAE,QAAQ,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,GAAG,WAAW,CAAC,CAQxJ"}
@@ -3,12 +3,12 @@ import createWorkbookSession from "../operations/workbookSession/createWorkbookS
3
3
  /**
4
4
  * Create a new workbook and open a session for that workbook in a single operation.
5
5
  *
6
- * @param driveRef - A reference to the drive where the workbook will be created.
6
+ * @param parentRef - A reference to the drive or driveItem where the workbook will be created.
7
7
  * @param itemPath - The path of the new workbook within the drive.
8
8
  * @returns The created workbook and session details.
9
9
  */
10
- export default async function createWorkbookAndStartSession(driveRef, itemPath) {
11
- const workbook = await createWorkbook(driveRef, itemPath);
10
+ export default async function createWorkbookAndStartSession(parentRef, itemPath) {
11
+ const workbook = await createWorkbook(parentRef, itemPath);
12
12
  const workbookRef = await createWorkbookSession(workbook);
13
13
  return {
14
14
  ...workbook,
@@ -6,5 +6,5 @@ import type { WorkbookRangeRef } from "../models/WorkbookRangeRef.ts";
6
6
  * @param rows An iterable or async iterable of rows to write. Each row is an array of cells.
7
7
  * @param overrideMaxRowsPerUnderlyingRead Optional maximum number of rows to write in a single underlying read. If not provided, it will be automatically calculated based on a safe value.
8
8
  */
9
- export declare function writeWorkbookRows(originRef: WorkbookRangeRef, rows: Iterable<Partial<Cell>[]> | AsyncIterable<Partial<Cell>[]>, overrideMaxRowsPerUnderlyingRead?: number | null): Promise<void>;
9
+ export default function writeWorkbookRows(originRef: WorkbookRangeRef, rows: Iterable<Partial<Cell>[]> | AsyncIterable<Partial<Cell>[]>, overrideMaxRowsPerUnderlyingRead?: number | null): Promise<void>;
10
10
  //# sourceMappingURL=writeWorkbookRows.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"writeWorkbookRows.d.ts","sourceRoot":"","sources":["../../../src/tasks/writeWorkbookRows.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAMtE;;;;;GAKG;AACH,wBAAsB,iBAAiB,CAAC,SAAS,EAAE,gBAAgB,EAAE,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,aAAa,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,gCAAgC,GAAE,MAAM,GAAG,IAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAuB5M"}
1
+ {"version":3,"file":"writeWorkbookRows.d.ts","sourceRoot":"","sources":["../../../src/tasks/writeWorkbookRows.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAMtE;;;;;GAKG;AACH,wBAA8B,iBAAiB,CAAC,SAAS,EAAE,gBAAgB,EAAE,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,aAAa,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,gCAAgC,GAAE,MAAM,GAAG,IAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAuBpN"}
@@ -9,7 +9,7 @@ import { createWorkbookRangeRef } from "../services/workbookRange.js";
9
9
  * @param rows An iterable or async iterable of rows to write. Each row is an array of cells.
10
10
  * @param overrideMaxRowsPerUnderlyingRead Optional maximum number of rows to write in a single underlying read. If not provided, it will be automatically calculated based on a safe value.
11
11
  */
12
- export async function writeWorkbookRows(originRef, rows, overrideMaxRowsPerUnderlyingRead = null) {
12
+ export default async function writeWorkbookRows(originRef, rows, overrideMaxRowsPerUnderlyingRead = null) {
13
13
  let maxRowsPerUnderlyingRead = overrideMaxRowsPerUnderlyingRead;
14
14
  let cellsPerRow = null;
15
15
  let rowsCompleted = 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microsoft-graph",
3
- "version": "2.20.0",
3
+ "version": "2.20.2",
4
4
  "description": "Microsoft GraphAPI SDK for NodeJS",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",