microsoft-graph 2.31.1 → 2.32.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/services/cell.d.ts +12 -0
- package/dist/cjs/services/cell.d.ts.map +1 -0
- package/dist/cjs/services/cell.js +25 -0
- package/dist/cjs/services/dataSource.js +2 -2
- package/dist/cjs/tasks/iterateRows.d.ts.map +1 -1
- package/dist/cjs/tasks/iterateRows.js +2 -2
- package/dist/cjs/tasks/readFirstRow.d.ts +18 -0
- package/dist/cjs/tasks/readFirstRow.d.ts.map +1 -0
- package/dist/cjs/tasks/readFirstRow.js +31 -0
- package/dist/cjs/tasks/readRows.d.ts +20 -0
- package/dist/cjs/tasks/readRows.d.ts.map +1 -0
- package/dist/cjs/tasks/readRows.js +28 -0
- package/dist/esm/services/cell.d.ts +12 -0
- package/dist/esm/services/cell.d.ts.map +1 -0
- package/dist/esm/services/cell.js +22 -0
- package/dist/esm/services/dataSource.js +1 -1
- package/dist/esm/tasks/iterateRows.d.ts.map +1 -1
- package/dist/esm/tasks/iterateRows.js +2 -2
- package/dist/esm/tasks/readFirstRow.d.ts +18 -0
- package/dist/esm/tasks/readFirstRow.d.ts.map +1 -0
- package/dist/esm/tasks/readFirstRow.js +25 -0
- package/dist/esm/tasks/readRows.d.ts +20 -0
- package/dist/esm/tasks/readRows.d.ts.map +1 -0
- package/dist/esm/tasks/readRows.js +25 -0
- package/docs/api/CellFormat.md +8 -32
- package/docs/api/README.md +3 -1
- package/docs/api/iterateRows.md +7 -7
- package/docs/api/readFirstRow.md +40 -0
- package/docs/api/readRows.md +40 -0
- package/package.json +71 -21
- package/dist/cjs/services/cellFormat.d.ts +0 -15
- package/dist/cjs/services/cellFormat.d.ts.map +0 -1
- package/dist/cjs/services/cellFormat.js +0 -16
- package/dist/esm/services/cellFormat.d.ts +0 -15
- package/dist/esm/services/cellFormat.d.ts.map +0 -1
- package/dist/esm/services/cellFormat.js +0 -13
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cell utilities.
|
|
3
|
+
* @module CellFormat
|
|
4
|
+
* @category Services
|
|
5
|
+
*/
|
|
6
|
+
import type { CellFormat, CellScope } from "../models/Cell.ts";
|
|
7
|
+
export declare const generalCellFormat: CellFormat;
|
|
8
|
+
export declare const textCellFormat: CellFormat;
|
|
9
|
+
export declare const numberCellFormat: CellFormat;
|
|
10
|
+
export declare const accountingCellFormat: CellFormat;
|
|
11
|
+
export declare const defaultCellScope: CellScope;
|
|
12
|
+
//# sourceMappingURL=cell.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cell.d.ts","sourceRoot":"","sources":["../../../src/services/cell.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE/D,eAAO,MAAM,iBAAiB,EAAgB,UAAU,CAAC;AACzD,eAAO,MAAM,cAAc,EAAU,UAAU,CAAC;AAChD,eAAO,MAAM,gBAAgB,EAAiB,UAAU,CAAC;AACzD,eAAO,MAAM,oBAAoB,EAA2D,UAAU,CAAC;AAMvG,eAAO,MAAM,gBAAgB,EAAE,SAQ9B,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Cell utilities.
|
|
4
|
+
* @module CellFormat
|
|
5
|
+
* @category Services
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.defaultCellScope = exports.accountingCellFormat = exports.numberCellFormat = exports.textCellFormat = exports.generalCellFormat = void 0;
|
|
9
|
+
exports.generalCellFormat = "General";
|
|
10
|
+
exports.textCellFormat = "@";
|
|
11
|
+
exports.numberCellFormat = "#,##0.00";
|
|
12
|
+
exports.accountingCellFormat = '_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)';
|
|
13
|
+
// export const currencyCellFormat = "$#,##0.00" as CellFormat;
|
|
14
|
+
// export const percentageCellFormat = "0.00%" as CellFormat;
|
|
15
|
+
// export const dateShortCellFormat = "dd/mm/yyyy" as CellFormat;
|
|
16
|
+
// export const timeCellFormat = "h:mm:ss AM/PM" as CellFormat;
|
|
17
|
+
exports.defaultCellScope = {
|
|
18
|
+
values: true,
|
|
19
|
+
text: true,
|
|
20
|
+
format: true,
|
|
21
|
+
alignment: false,
|
|
22
|
+
borders: false,
|
|
23
|
+
fill: false,
|
|
24
|
+
font: false,
|
|
25
|
+
};
|
|
@@ -25,7 +25,7 @@ const getWorkbookWorksheetUsedRangeRef_ts_1 = __importDefault(require("../operat
|
|
|
25
25
|
const readWorkbookRows_ts_1 = __importDefault(require("../tasks/readWorkbookRows.js"));
|
|
26
26
|
const addressManipulation_ts_1 = require("./addressManipulation.js");
|
|
27
27
|
const cartesianAddress_ts_1 = require("./cartesianAddress.js");
|
|
28
|
-
const
|
|
28
|
+
const cell_ts_1 = require("./cell.js");
|
|
29
29
|
/**
|
|
30
30
|
* Define a datasource from an entire worksheet.
|
|
31
31
|
* @template T Type of the record, extending RecordBase.
|
|
@@ -173,7 +173,7 @@ function recordToRow(record, source) {
|
|
|
173
173
|
return {
|
|
174
174
|
value: cell.value ?? "",
|
|
175
175
|
text: cell.text ?? (cell.value ?? "").toString(),
|
|
176
|
-
format: cell.format ??
|
|
176
|
+
format: cell.format ?? cell_ts_1.generalCellFormat,
|
|
177
177
|
style: {
|
|
178
178
|
merge: {},
|
|
179
179
|
alignment: {},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iterateRows.d.ts","sourceRoot":"","sources":["../../../src/tasks/iterateRows.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,KAAK,EAAE,IAAI,EAAuC,SAAS,EAAwE,MAAM,mBAAmB,CAAC;AAIpK,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"iterateRows.d.ts","sourceRoot":"","sources":["../../../src/tasks/iterateRows.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,KAAK,EAAE,IAAI,EAAuC,SAAS,EAAwE,MAAM,mBAAmB,CAAC;AAIpK,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAUnE;;;;;;GAMG;AACH,MAAM,MAAM,WAAW,GAAG;IACzB,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,MAAM,EAAE,SAAS,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,wBAAuB,WAAW,CAAC,QAAQ,EAAE,gBAAgB,EAAE,KAAK,GAAE,OAAO,CAAC,SAAS,CAAoB,EAAE,oBAAoB,GAAE,MAAM,GAAG,IAAW,GAAG,aAAa,CAAC,WAAW,CAAC,CAwCnL"}
|
|
@@ -18,7 +18,7 @@ const getWorkbookWorksheetRange_ts_1 = __importDefault(require("../operations/wo
|
|
|
18
18
|
const listWorkbookRangeBorders_ts_1 = __importDefault(require("../operations/workbookRange/listWorkbookRangeBorders.js"));
|
|
19
19
|
const addressManipulation_ts_1 = require("../services/addressManipulation.js");
|
|
20
20
|
const batch_ts_1 = require("../services/batch.js");
|
|
21
|
-
const
|
|
21
|
+
const cell_ts_1 = require("../services/cell.js");
|
|
22
22
|
/**
|
|
23
23
|
* Iterate over the rows in a given worksheet range.
|
|
24
24
|
* @param rangeRef Reference to the workbook range to iterate over.
|
|
@@ -31,7 +31,7 @@ const defaultScope = { values: true, text: true, format: true };
|
|
|
31
31
|
* console.log(row);
|
|
32
32
|
* }
|
|
33
33
|
*/
|
|
34
|
-
async function* iterateRows(rangeRef, scope =
|
|
34
|
+
async function* iterateRows(rangeRef, scope = cell_ts_1.defaultCellScope, maxCellsPerOperation = null) {
|
|
35
35
|
const totalColumnCount = (0, addressManipulation_ts_1.countAddressColumns)(rangeRef.address);
|
|
36
36
|
const totalRowCount = (0, addressManipulation_ts_1.countAddressRows)(rangeRef.address);
|
|
37
37
|
const maxRowsPerOperation = calculateMaxRowsPerOperation(totalColumnCount, maxCellsPerOperation);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Read the first row from a given workbook range.
|
|
3
|
+
* @module readFirstRow
|
|
4
|
+
* @category Tasks
|
|
5
|
+
* @experimental
|
|
6
|
+
*/
|
|
7
|
+
import type { Cell } from "../models/Cell.ts";
|
|
8
|
+
import type { WorkbookRangeRef } from "../models/WorkbookRange.ts";
|
|
9
|
+
/** * Read the first row from a given workbook range.
|
|
10
|
+
* @param rangeRef Reference to the workbook range to read.
|
|
11
|
+
* @param scope Amount of detail to include for each cell.
|
|
12
|
+
* @returns A promise that resolves to an array of cells in the first row.
|
|
13
|
+
* @remarks Particularly useful for reading header rows.
|
|
14
|
+
* @example
|
|
15
|
+
* const firstRow = await readFirstRow(rangeRef);
|
|
16
|
+
*/
|
|
17
|
+
export default function readFirstRow(rangeRef: WorkbookRangeRef, scope?: import("../models/Cell.ts").CellScope): Promise<Cell[]>;
|
|
18
|
+
//# sourceMappingURL=readFirstRow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readFirstRow.d.ts","sourceRoot":"","sources":["../../../src/tasks/readFirstRow.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAKnE;;;;;;;GAOG;AACH,wBAA8B,YAAY,CAAC,QAAQ,EAAE,gBAAgB,EAAE,KAAK,wCAAmB,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC,CAQhH"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Read the first row from a given workbook range.
|
|
4
|
+
* @module readFirstRow
|
|
5
|
+
* @category Tasks
|
|
6
|
+
* @experimental
|
|
7
|
+
*/
|
|
8
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.default = readFirstRow;
|
|
13
|
+
const InvalidArgumentError_ts_1 = __importDefault(require("../errors/InvalidArgumentError.js"));
|
|
14
|
+
const addressManipulation_ts_1 = require("../services/addressManipulation.js");
|
|
15
|
+
const cell_ts_1 = require("../services/cell.js");
|
|
16
|
+
const iterateRows_ts_1 = require("./iterateRows.js");
|
|
17
|
+
/** * Read the first row from a given workbook range.
|
|
18
|
+
* @param rangeRef Reference to the workbook range to read.
|
|
19
|
+
* @param scope Amount of detail to include for each cell.
|
|
20
|
+
* @returns A promise that resolves to an array of cells in the first row.
|
|
21
|
+
* @remarks Particularly useful for reading header rows.
|
|
22
|
+
* @example
|
|
23
|
+
* const firstRow = await readFirstRow(rangeRef);
|
|
24
|
+
*/
|
|
25
|
+
async function readFirstRow(rangeRef, scope = cell_ts_1.defaultCellScope) {
|
|
26
|
+
const firstRowRef = (0, addressManipulation_ts_1.subRange)(rangeRef, 0, 1);
|
|
27
|
+
for await (const { cells } of (0, iterateRows_ts_1.iterateRows)(firstRowRef, scope)) {
|
|
28
|
+
return cells;
|
|
29
|
+
}
|
|
30
|
+
throw new InvalidArgumentError_ts_1.default("No rows in the specified range.");
|
|
31
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Read all rows from a given workbook range.
|
|
3
|
+
* @module readRows
|
|
4
|
+
* @category Tasks
|
|
5
|
+
* @experimental
|
|
6
|
+
*/
|
|
7
|
+
import type { Cell } from "../models/Cell.ts";
|
|
8
|
+
import type { WorkbookRangeRef } from "../models/WorkbookRange.ts";
|
|
9
|
+
/**
|
|
10
|
+
* Read all rows from a given workbook range.
|
|
11
|
+
* @param rangeRef Reference to the workbook range to read.
|
|
12
|
+
* @param scope Amount of detail to include for each cell.
|
|
13
|
+
* @returns A promise that resolves to an array of rows, each containing an array of cells.
|
|
14
|
+
* @remarks Where practical, prefer using {@link iterateRows} for more efficient memory usage.
|
|
15
|
+
* @experimental
|
|
16
|
+
* @example
|
|
17
|
+
* const rows = await readRows(rangeRef);
|
|
18
|
+
*/
|
|
19
|
+
export default function readRows(rangeRef: WorkbookRangeRef, scope?: import("../models/Cell.ts").CellScope): Promise<Cell[][]>;
|
|
20
|
+
//# sourceMappingURL=readRows.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readRows.d.ts","sourceRoot":"","sources":["../../../src/tasks/readRows.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAInE;;;;;;;;;GASG;AACH,wBAA8B,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,EAAE,KAAK,wCAAmB,GAAG,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAO9G"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Read all rows from a given workbook range.
|
|
4
|
+
* @module readRows
|
|
5
|
+
* @category Tasks
|
|
6
|
+
* @experimental
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.default = readRows;
|
|
10
|
+
const cell_ts_1 = require("../services/cell.js");
|
|
11
|
+
const iterateRows_ts_1 = require("./iterateRows.js");
|
|
12
|
+
/**
|
|
13
|
+
* Read all rows from a given workbook range.
|
|
14
|
+
* @param rangeRef Reference to the workbook range to read.
|
|
15
|
+
* @param scope Amount of detail to include for each cell.
|
|
16
|
+
* @returns A promise that resolves to an array of rows, each containing an array of cells.
|
|
17
|
+
* @remarks Where practical, prefer using {@link iterateRows} for more efficient memory usage.
|
|
18
|
+
* @experimental
|
|
19
|
+
* @example
|
|
20
|
+
* const rows = await readRows(rangeRef);
|
|
21
|
+
*/
|
|
22
|
+
async function readRows(rangeRef, scope = cell_ts_1.defaultCellScope) {
|
|
23
|
+
const rows = [];
|
|
24
|
+
for await (const { cells } of (0, iterateRows_ts_1.iterateRows)(rangeRef, scope)) {
|
|
25
|
+
rows.push(cells);
|
|
26
|
+
}
|
|
27
|
+
return rows;
|
|
28
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cell utilities.
|
|
3
|
+
* @module CellFormat
|
|
4
|
+
* @category Services
|
|
5
|
+
*/
|
|
6
|
+
import type { CellFormat, CellScope } from "../models/Cell.ts";
|
|
7
|
+
export declare const generalCellFormat: CellFormat;
|
|
8
|
+
export declare const textCellFormat: CellFormat;
|
|
9
|
+
export declare const numberCellFormat: CellFormat;
|
|
10
|
+
export declare const accountingCellFormat: CellFormat;
|
|
11
|
+
export declare const defaultCellScope: CellScope;
|
|
12
|
+
//# sourceMappingURL=cell.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cell.d.ts","sourceRoot":"","sources":["../../../src/services/cell.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE/D,eAAO,MAAM,iBAAiB,EAAgB,UAAU,CAAC;AACzD,eAAO,MAAM,cAAc,EAAU,UAAU,CAAC;AAChD,eAAO,MAAM,gBAAgB,EAAiB,UAAU,CAAC;AACzD,eAAO,MAAM,oBAAoB,EAA2D,UAAU,CAAC;AAMvG,eAAO,MAAM,gBAAgB,EAAE,SAQ9B,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cell utilities.
|
|
3
|
+
* @module CellFormat
|
|
4
|
+
* @category Services
|
|
5
|
+
*/
|
|
6
|
+
export const generalCellFormat = "General";
|
|
7
|
+
export const textCellFormat = "@";
|
|
8
|
+
export const numberCellFormat = "#,##0.00";
|
|
9
|
+
export const accountingCellFormat = '_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)';
|
|
10
|
+
// export const currencyCellFormat = "$#,##0.00" as CellFormat;
|
|
11
|
+
// export const percentageCellFormat = "0.00%" as CellFormat;
|
|
12
|
+
// export const dateShortCellFormat = "dd/mm/yyyy" as CellFormat;
|
|
13
|
+
// export const timeCellFormat = "h:mm:ss AM/PM" as CellFormat;
|
|
14
|
+
export const defaultCellScope = {
|
|
15
|
+
values: true,
|
|
16
|
+
text: true,
|
|
17
|
+
format: true,
|
|
18
|
+
alignment: false,
|
|
19
|
+
borders: false,
|
|
20
|
+
fill: false,
|
|
21
|
+
font: false,
|
|
22
|
+
};
|
|
@@ -14,7 +14,7 @@ import getWorkbookWorksheetUsedRangeRef from "../operations/workbookWorksheet/ge
|
|
|
14
14
|
import readWorkbookRows from "../tasks/readWorkbookRows.js";
|
|
15
15
|
import { countAddressRows, subRange, superRange } from "./addressManipulation.js";
|
|
16
16
|
import { addressToCartesian } from "./cartesianAddress.js";
|
|
17
|
-
import { generalCellFormat } from "./
|
|
17
|
+
import { generalCellFormat } from "./cell.js";
|
|
18
18
|
/**
|
|
19
19
|
* Define a datasource from an entire worksheet.
|
|
20
20
|
* @template T Type of the record, extending RecordBase.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iterateRows.d.ts","sourceRoot":"","sources":["../../../src/tasks/iterateRows.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,KAAK,EAAE,IAAI,EAAuC,SAAS,EAAwE,MAAM,mBAAmB,CAAC;AAIpK,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"iterateRows.d.ts","sourceRoot":"","sources":["../../../src/tasks/iterateRows.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,KAAK,EAAE,IAAI,EAAuC,SAAS,EAAwE,MAAM,mBAAmB,CAAC;AAIpK,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAUnE;;;;;;GAMG;AACH,MAAM,MAAM,WAAW,GAAG;IACzB,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,MAAM,EAAE,SAAS,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,wBAAuB,WAAW,CAAC,QAAQ,EAAE,gBAAgB,EAAE,KAAK,GAAE,OAAO,CAAC,SAAS,CAAoB,EAAE,oBAAoB,GAAE,MAAM,GAAG,IAAW,GAAG,aAAa,CAAC,WAAW,CAAC,CAwCnL"}
|
|
@@ -12,7 +12,7 @@ import getWorkbookWorksheetRange from "../operations/workbookRange/getWorkbookWo
|
|
|
12
12
|
import listWorkbookRangeBorders from "../operations/workbookRange/listWorkbookRangeBorders.js";
|
|
13
13
|
import { countAddressColumns, countAddressRows, subRange } from "../services/addressManipulation.js";
|
|
14
14
|
import { maxCellsPerRequest } from "../services/batch.js";
|
|
15
|
-
|
|
15
|
+
import { defaultCellScope } from "../services/cell.js";
|
|
16
16
|
/**
|
|
17
17
|
* Iterate over the rows in a given worksheet range.
|
|
18
18
|
* @param rangeRef Reference to the workbook range to iterate over.
|
|
@@ -25,7 +25,7 @@ const defaultScope = { values: true, text: true, format: true };
|
|
|
25
25
|
* console.log(row);
|
|
26
26
|
* }
|
|
27
27
|
*/
|
|
28
|
-
export async function* iterateRows(rangeRef, scope =
|
|
28
|
+
export async function* iterateRows(rangeRef, scope = defaultCellScope, maxCellsPerOperation = null) {
|
|
29
29
|
const totalColumnCount = countAddressColumns(rangeRef.address);
|
|
30
30
|
const totalRowCount = countAddressRows(rangeRef.address);
|
|
31
31
|
const maxRowsPerOperation = calculateMaxRowsPerOperation(totalColumnCount, maxCellsPerOperation);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Read the first row from a given workbook range.
|
|
3
|
+
* @module readFirstRow
|
|
4
|
+
* @category Tasks
|
|
5
|
+
* @experimental
|
|
6
|
+
*/
|
|
7
|
+
import type { Cell } from "../models/Cell.ts";
|
|
8
|
+
import type { WorkbookRangeRef } from "../models/WorkbookRange.ts";
|
|
9
|
+
/** * Read the first row from a given workbook range.
|
|
10
|
+
* @param rangeRef Reference to the workbook range to read.
|
|
11
|
+
* @param scope Amount of detail to include for each cell.
|
|
12
|
+
* @returns A promise that resolves to an array of cells in the first row.
|
|
13
|
+
* @remarks Particularly useful for reading header rows.
|
|
14
|
+
* @example
|
|
15
|
+
* const firstRow = await readFirstRow(rangeRef);
|
|
16
|
+
*/
|
|
17
|
+
export default function readFirstRow(rangeRef: WorkbookRangeRef, scope?: import("../models/Cell.ts").CellScope): Promise<Cell[]>;
|
|
18
|
+
//# sourceMappingURL=readFirstRow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readFirstRow.d.ts","sourceRoot":"","sources":["../../../src/tasks/readFirstRow.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAKnE;;;;;;;GAOG;AACH,wBAA8B,YAAY,CAAC,QAAQ,EAAE,gBAAgB,EAAE,KAAK,wCAAmB,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC,CAQhH"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Read the first row from a given workbook range.
|
|
3
|
+
* @module readFirstRow
|
|
4
|
+
* @category Tasks
|
|
5
|
+
* @experimental
|
|
6
|
+
*/
|
|
7
|
+
import InvalidArgumentError from "../errors/InvalidArgumentError.js";
|
|
8
|
+
import { subRange } from "../services/addressManipulation.js";
|
|
9
|
+
import { defaultCellScope } from "../services/cell.js";
|
|
10
|
+
import { iterateRows } from "./iterateRows.js";
|
|
11
|
+
/** * Read the first row from a given workbook range.
|
|
12
|
+
* @param rangeRef Reference to the workbook range to read.
|
|
13
|
+
* @param scope Amount of detail to include for each cell.
|
|
14
|
+
* @returns A promise that resolves to an array of cells in the first row.
|
|
15
|
+
* @remarks Particularly useful for reading header rows.
|
|
16
|
+
* @example
|
|
17
|
+
* const firstRow = await readFirstRow(rangeRef);
|
|
18
|
+
*/
|
|
19
|
+
export default async function readFirstRow(rangeRef, scope = defaultCellScope) {
|
|
20
|
+
const firstRowRef = subRange(rangeRef, 0, 1);
|
|
21
|
+
for await (const { cells } of iterateRows(firstRowRef, scope)) {
|
|
22
|
+
return cells;
|
|
23
|
+
}
|
|
24
|
+
throw new InvalidArgumentError("No rows in the specified range.");
|
|
25
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Read all rows from a given workbook range.
|
|
3
|
+
* @module readRows
|
|
4
|
+
* @category Tasks
|
|
5
|
+
* @experimental
|
|
6
|
+
*/
|
|
7
|
+
import type { Cell } from "../models/Cell.ts";
|
|
8
|
+
import type { WorkbookRangeRef } from "../models/WorkbookRange.ts";
|
|
9
|
+
/**
|
|
10
|
+
* Read all rows from a given workbook range.
|
|
11
|
+
* @param rangeRef Reference to the workbook range to read.
|
|
12
|
+
* @param scope Amount of detail to include for each cell.
|
|
13
|
+
* @returns A promise that resolves to an array of rows, each containing an array of cells.
|
|
14
|
+
* @remarks Where practical, prefer using {@link iterateRows} for more efficient memory usage.
|
|
15
|
+
* @experimental
|
|
16
|
+
* @example
|
|
17
|
+
* const rows = await readRows(rangeRef);
|
|
18
|
+
*/
|
|
19
|
+
export default function readRows(rangeRef: WorkbookRangeRef, scope?: import("../models/Cell.ts").CellScope): Promise<Cell[][]>;
|
|
20
|
+
//# sourceMappingURL=readRows.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readRows.d.ts","sourceRoot":"","sources":["../../../src/tasks/readRows.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAInE;;;;;;;;;GASG;AACH,wBAA8B,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,EAAE,KAAK,wCAAmB,GAAG,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAO9G"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Read all rows from a given workbook range.
|
|
3
|
+
* @module readRows
|
|
4
|
+
* @category Tasks
|
|
5
|
+
* @experimental
|
|
6
|
+
*/
|
|
7
|
+
import { defaultCellScope } from "../services/cell.js";
|
|
8
|
+
import { iterateRows } from "./iterateRows.js";
|
|
9
|
+
/**
|
|
10
|
+
* Read all rows from a given workbook range.
|
|
11
|
+
* @param rangeRef Reference to the workbook range to read.
|
|
12
|
+
* @param scope Amount of detail to include for each cell.
|
|
13
|
+
* @returns A promise that resolves to an array of rows, each containing an array of cells.
|
|
14
|
+
* @remarks Where practical, prefer using {@link iterateRows} for more efficient memory usage.
|
|
15
|
+
* @experimental
|
|
16
|
+
* @example
|
|
17
|
+
* const rows = await readRows(rangeRef);
|
|
18
|
+
*/
|
|
19
|
+
export default async function readRows(rangeRef, scope = defaultCellScope) {
|
|
20
|
+
const rows = [];
|
|
21
|
+
for await (const { cells } of iterateRows(rangeRef, scope)) {
|
|
22
|
+
rows.push(cells);
|
|
23
|
+
}
|
|
24
|
+
return rows;
|
|
25
|
+
}
|
package/docs/api/CellFormat.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# CellFormat
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Cell utilities.
|
|
6
6
|
|
|
7
7
|
## Variables
|
|
8
8
|
|
|
@@ -10,23 +10,15 @@ Spreadsheet number format constants for Microsoft Graph API.
|
|
|
10
10
|
|
|
11
11
|
> `const` **accountingCellFormat**: [`CellFormat`](Cell.md#cellformat-1)
|
|
12
12
|
|
|
13
|
-
Defined in:
|
|
13
|
+
Defined in: src/services/cell.ts:12
|
|
14
14
|
|
|
15
15
|
***
|
|
16
16
|
|
|
17
|
-
###
|
|
17
|
+
### defaultCellScope
|
|
18
18
|
|
|
19
|
-
> `const` **
|
|
19
|
+
> `const` **defaultCellScope**: [`CellScope`](Cell.md#cellscope)
|
|
20
20
|
|
|
21
|
-
Defined in:
|
|
22
|
-
|
|
23
|
-
***
|
|
24
|
-
|
|
25
|
-
### dateShortCellFormat
|
|
26
|
-
|
|
27
|
-
> `const` **dateShortCellFormat**: [`CellFormat`](Cell.md#cellformat-1)
|
|
28
|
-
|
|
29
|
-
Defined in: [src/services/cellFormat.ts:14](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/services/cellFormat.ts#L14)
|
|
21
|
+
Defined in: src/services/cell.ts:18
|
|
30
22
|
|
|
31
23
|
***
|
|
32
24
|
|
|
@@ -34,7 +26,7 @@ Defined in: [src/services/cellFormat.ts:14](https://github.com/Future-Secure-AI/
|
|
|
34
26
|
|
|
35
27
|
> `const` **generalCellFormat**: [`CellFormat`](Cell.md#cellformat-1)
|
|
36
28
|
|
|
37
|
-
Defined in:
|
|
29
|
+
Defined in: src/services/cell.ts:9
|
|
38
30
|
|
|
39
31
|
***
|
|
40
32
|
|
|
@@ -42,15 +34,7 @@ Defined in: [src/services/cellFormat.ts:9](https://github.com/Future-Secure-AI/m
|
|
|
42
34
|
|
|
43
35
|
> `const` **numberCellFormat**: [`CellFormat`](Cell.md#cellformat-1)
|
|
44
36
|
|
|
45
|
-
Defined in:
|
|
46
|
-
|
|
47
|
-
***
|
|
48
|
-
|
|
49
|
-
### percentageCellFormat
|
|
50
|
-
|
|
51
|
-
> `const` **percentageCellFormat**: [`CellFormat`](Cell.md#cellformat-1)
|
|
52
|
-
|
|
53
|
-
Defined in: [src/services/cellFormat.ts:13](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/services/cellFormat.ts#L13)
|
|
37
|
+
Defined in: src/services/cell.ts:11
|
|
54
38
|
|
|
55
39
|
***
|
|
56
40
|
|
|
@@ -58,12 +42,4 @@ Defined in: [src/services/cellFormat.ts:13](https://github.com/Future-Secure-AI/
|
|
|
58
42
|
|
|
59
43
|
> `const` **textCellFormat**: [`CellFormat`](Cell.md#cellformat-1)
|
|
60
44
|
|
|
61
|
-
Defined in:
|
|
62
|
-
|
|
63
|
-
***
|
|
64
|
-
|
|
65
|
-
### timeCellFormat
|
|
66
|
-
|
|
67
|
-
> `const` **timeCellFormat**: [`CellFormat`](Cell.md#cellformat-1)
|
|
68
|
-
|
|
69
|
-
Defined in: [src/services/cellFormat.ts:15](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/services/cellFormat.ts#L15)
|
|
45
|
+
Defined in: src/services/cell.ts:10
|
package/docs/api/README.md
CHANGED
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
| [azureApplicationCredentials](azureApplicationCredentials.md) | Azure application credential helpers for authentication and token management. |
|
|
125
125
|
| [batch](batch.md) | Constants and helpers for batching Microsoft Graph API requests. |
|
|
126
126
|
| [cartesianAddress](cartesianAddress.md) | Utilities for converting between A1 addresses and Cartesian coordinates. |
|
|
127
|
-
| [CellFormat](CellFormat.md) |
|
|
127
|
+
| [CellFormat](CellFormat.md) | Cell utilities. |
|
|
128
128
|
| [context](context.md) | Context creation and management utilities for Microsoft Graph API authentication. |
|
|
129
129
|
| [dataSource](dataSource.md) | Tooling for easily creating, updating, and deleting items in a worksheet or range. |
|
|
130
130
|
| [drive](drive.md) | Utilities for working with Microsoft Graph Drive references and operations. |
|
|
@@ -158,6 +158,8 @@
|
|
|
158
158
|
| [getWorkbookWorksheetByName](getWorkbookWorksheetByName-1.md) | Get a worksheet by its name. |
|
|
159
159
|
| [iterateRows](iterateRows.md) | Iterate over the rows in a given worksheet range. |
|
|
160
160
|
| [listDriveItems](listDriveItems.md) | List drive items in a drive or a drive item. |
|
|
161
|
+
| [readFirstRow](readFirstRow.md) | Read the first row from a given workbook range. |
|
|
162
|
+
| [readRows](readRows.md) | Read all rows from a given workbook range. |
|
|
161
163
|
| [readWorkbookRows](readWorkbookRows.md) | Iterates over the rows in a given worksheet range. |
|
|
162
164
|
| [safeDeleteWorkbook](safeDeleteWorkbook.md) | Safely delete a workbook by first closing any open sessions and then deleting it. |
|
|
163
165
|
| [setColumnHidden](setColumnHidden.md) | Set one or more columns visibility. |
|
package/docs/api/iterateRows.md
CHANGED
|
@@ -12,7 +12,7 @@ Iterate over the rows in a given worksheet range.
|
|
|
12
12
|
|
|
13
13
|
> **IteratedRow** = `object`
|
|
14
14
|
|
|
15
|
-
Defined in: [src/tasks/iterateRows.ts:
|
|
15
|
+
Defined in: [src/tasks/iterateRows.ts:33](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/tasks/iterateRows.ts#L33)
|
|
16
16
|
|
|
17
17
|
**`Experimental`**
|
|
18
18
|
|
|
@@ -22,10 +22,10 @@ Represents a row yielded by the [iterateRows](#iteraterows) generator.
|
|
|
22
22
|
|
|
23
23
|
| Property | Type | Description | Defined in |
|
|
24
24
|
| ------ | ------ | ------ | ------ |
|
|
25
|
-
| <a id="cells"></a> `cells` | [`Cell`](Cell.md#cell)[] | Array of cells in the row, each containing value, text, format, and optionally style information depending on the scope. | [src/tasks/iterateRows.ts:
|
|
26
|
-
| <a id="isfirst"></a> `isFirst` | `boolean` | If this is the first row in the iteration. | [src/tasks/iterateRows.ts:
|
|
27
|
-
| <a id="islast"></a> `isLast` | `boolean` | If this is the last row in the iteration. | [src/tasks/iterateRows.ts:
|
|
28
|
-
| <a id="offset"></a> `offset` | [`RowOffset`](Row.md#rowoffset) | Zero-based offset of the row within the original range. | [src/tasks/iterateRows.ts:
|
|
25
|
+
| <a id="cells"></a> `cells` | [`Cell`](Cell.md#cell)[] | Array of cells in the row, each containing value, text, format, and optionally style information depending on the scope. | [src/tasks/iterateRows.ts:34](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/tasks/iterateRows.ts#L34) |
|
|
26
|
+
| <a id="isfirst"></a> `isFirst` | `boolean` | If this is the first row in the iteration. | [src/tasks/iterateRows.ts:36](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/tasks/iterateRows.ts#L36) |
|
|
27
|
+
| <a id="islast"></a> `isLast` | `boolean` | If this is the last row in the iteration. | [src/tasks/iterateRows.ts:37](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/tasks/iterateRows.ts#L37) |
|
|
28
|
+
| <a id="offset"></a> `offset` | [`RowOffset`](Row.md#rowoffset) | Zero-based offset of the row within the original range. | [src/tasks/iterateRows.ts:35](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/tasks/iterateRows.ts#L35) |
|
|
29
29
|
|
|
30
30
|
## Functions
|
|
31
31
|
|
|
@@ -33,7 +33,7 @@ Represents a row yielded by the [iterateRows](#iteraterows) generator.
|
|
|
33
33
|
|
|
34
34
|
> **iterateRows**(`rangeRef`, `scope`, `maxCellsPerOperation`): `AsyncIterable`\<[`IteratedRow`](#iteratedrow)\>
|
|
35
35
|
|
|
36
|
-
Defined in: [src/tasks/iterateRows.ts:
|
|
36
|
+
Defined in: [src/tasks/iterateRows.ts:52](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/tasks/iterateRows.ts#L52)
|
|
37
37
|
|
|
38
38
|
**`Experimental`**
|
|
39
39
|
|
|
@@ -42,7 +42,7 @@ Defined in: [src/tasks/iterateRows.ts:53](https://github.com/Future-Secure-AI/mi
|
|
|
42
42
|
| Parameter | Type | Default value | Description |
|
|
43
43
|
| ------ | ------ | ------ | ------ |
|
|
44
44
|
| `rangeRef` | [`WorkbookRangeRef`](WorkbookRange-1.md#workbookrangeref) | `undefined` | Reference to the workbook range to iterate over. |
|
|
45
|
-
| `scope` | [`Partial`](https://www.typescriptlang.org/docs/handbook/utility-types.html#partialtype)\<[`CellScope`](Cell.md#cellscope)\> | `
|
|
45
|
+
| `scope` | [`Partial`](https://www.typescriptlang.org/docs/handbook/utility-types.html#partialtype)\<[`CellScope`](Cell.md#cellscope)\> | `defaultCellScope` | Amount of detail to include for each cell. |
|
|
46
46
|
| `maxCellsPerOperation` | `null` \| `number` | `null` | Prescribe max cells to retrieve per operation. `null` automatically determines value. DO NOT SET EXCEPT FOR ADVANCED TUNING. |
|
|
47
47
|
|
|
48
48
|
#### Returns
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
[Microsoft Graph SDK](README.md) / readFirstRow
|
|
2
|
+
|
|
3
|
+
# readFirstRow
|
|
4
|
+
|
|
5
|
+
**`Experimental`**
|
|
6
|
+
|
|
7
|
+
Read the first row from a given workbook range.
|
|
8
|
+
|
|
9
|
+
## Functions
|
|
10
|
+
|
|
11
|
+
### readFirstRow()
|
|
12
|
+
|
|
13
|
+
> **readFirstRow**(`rangeRef`, `scope`): [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<[`Cell`](Cell.md#cell)[]\>
|
|
14
|
+
|
|
15
|
+
Defined in: src/tasks/readFirstRow.ts:23
|
|
16
|
+
|
|
17
|
+
**`Experimental`**
|
|
18
|
+
|
|
19
|
+
#### Parameters
|
|
20
|
+
|
|
21
|
+
| Parameter | Type | Default value | Description |
|
|
22
|
+
| ------ | ------ | ------ | ------ |
|
|
23
|
+
| `rangeRef` | [`WorkbookRangeRef`](WorkbookRange-1.md#workbookrangeref) | `undefined` | Reference to the workbook range to read. |
|
|
24
|
+
| `scope` | [`CellScope`](Cell.md#cellscope) | `defaultCellScope` | Amount of detail to include for each cell. |
|
|
25
|
+
|
|
26
|
+
#### Returns
|
|
27
|
+
|
|
28
|
+
[`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<[`Cell`](Cell.md#cell)[]\>
|
|
29
|
+
|
|
30
|
+
A promise that resolves to an array of cells in the first row.
|
|
31
|
+
|
|
32
|
+
#### Remarks
|
|
33
|
+
|
|
34
|
+
Particularly useful for reading header rows.
|
|
35
|
+
|
|
36
|
+
#### Example
|
|
37
|
+
|
|
38
|
+
```ts
|
|
39
|
+
const firstRow = await readFirstRow(rangeRef);
|
|
40
|
+
```
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
[Microsoft Graph SDK](README.md) / readRows
|
|
2
|
+
|
|
3
|
+
# readRows
|
|
4
|
+
|
|
5
|
+
**`Experimental`**
|
|
6
|
+
|
|
7
|
+
Read all rows from a given workbook range.
|
|
8
|
+
|
|
9
|
+
## Functions
|
|
10
|
+
|
|
11
|
+
### readRows()
|
|
12
|
+
|
|
13
|
+
> **readRows**(`rangeRef`, `scope`): [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<[`Cell`](Cell.md#cell)[][]\>
|
|
14
|
+
|
|
15
|
+
Defined in: src/tasks/readRows.ts:23
|
|
16
|
+
|
|
17
|
+
**`Experimental`**
|
|
18
|
+
|
|
19
|
+
#### Parameters
|
|
20
|
+
|
|
21
|
+
| Parameter | Type | Default value | Description |
|
|
22
|
+
| ------ | ------ | ------ | ------ |
|
|
23
|
+
| `rangeRef` | [`WorkbookRangeRef`](WorkbookRange-1.md#workbookrangeref) | `undefined` | Reference to the workbook range to read. |
|
|
24
|
+
| `scope` | [`CellScope`](Cell.md#cellscope) | `defaultCellScope` | Amount of detail to include for each cell. |
|
|
25
|
+
|
|
26
|
+
#### Returns
|
|
27
|
+
|
|
28
|
+
[`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<[`Cell`](Cell.md#cell)[][]\>
|
|
29
|
+
|
|
30
|
+
A promise that resolves to an array of rows, each containing an array of cells.
|
|
31
|
+
|
|
32
|
+
#### Remarks
|
|
33
|
+
|
|
34
|
+
Where practical, prefer using [iterateRows](iterateRows.md#iteraterows) for more efficient memory usage.
|
|
35
|
+
|
|
36
|
+
#### Example
|
|
37
|
+
|
|
38
|
+
```ts
|
|
39
|
+
const rows = await readRows(rangeRef);
|
|
40
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "microsoft-graph",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.32.0",
|
|
4
4
|
"description": "Microsoft GraphAPI SDK for NodeJS",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -2734,30 +2734,30 @@
|
|
|
2734
2734
|
"require": "./dist/cjs/services/cartesianAddress.js",
|
|
2735
2735
|
"types": "./dist/esm/services/cartesianAddress.d.ts"
|
|
2736
2736
|
},
|
|
2737
|
-
"./
|
|
2738
|
-
"import": "./dist/esm/services/
|
|
2739
|
-
"require": "./dist/cjs/services/
|
|
2740
|
-
"types": "./dist/esm/services/
|
|
2737
|
+
"./cell": {
|
|
2738
|
+
"import": "./dist/esm/services/cell.js",
|
|
2739
|
+
"require": "./dist/cjs/services/cell.js",
|
|
2740
|
+
"types": "./dist/esm/services/cell.d.ts"
|
|
2741
2741
|
},
|
|
2742
|
-
"./dist/cjs/services/
|
|
2743
|
-
"import": "./dist/esm/services/
|
|
2744
|
-
"require": "./dist/cjs/services/
|
|
2745
|
-
"types": "./dist/esm/services/
|
|
2742
|
+
"./dist/cjs/services/cell.js": {
|
|
2743
|
+
"import": "./dist/esm/services/cell.js",
|
|
2744
|
+
"require": "./dist/cjs/services/cell.js",
|
|
2745
|
+
"types": "./dist/esm/services/cell.d.ts"
|
|
2746
2746
|
},
|
|
2747
|
-
"./dist/cjs/services/
|
|
2748
|
-
"import": "./dist/esm/services/
|
|
2749
|
-
"require": "./dist/cjs/services/
|
|
2750
|
-
"types": "./dist/esm/services/
|
|
2747
|
+
"./dist/cjs/services/cell": {
|
|
2748
|
+
"import": "./dist/esm/services/cell.js",
|
|
2749
|
+
"require": "./dist/cjs/services/cell.js",
|
|
2750
|
+
"types": "./dist/esm/services/cell.d.ts"
|
|
2751
2751
|
},
|
|
2752
|
-
"./services/
|
|
2753
|
-
"import": "./dist/esm/services/
|
|
2754
|
-
"require": "./dist/cjs/services/
|
|
2755
|
-
"types": "./dist/esm/services/
|
|
2752
|
+
"./services/cell": {
|
|
2753
|
+
"import": "./dist/esm/services/cell.js",
|
|
2754
|
+
"require": "./dist/cjs/services/cell.js",
|
|
2755
|
+
"types": "./dist/esm/services/cell.d.ts"
|
|
2756
2756
|
},
|
|
2757
|
-
"./services/
|
|
2758
|
-
"import": "./dist/esm/services/
|
|
2759
|
-
"require": "./dist/cjs/services/
|
|
2760
|
-
"types": "./dist/esm/services/
|
|
2757
|
+
"./services/cell.js": {
|
|
2758
|
+
"import": "./dist/esm/services/cell.js",
|
|
2759
|
+
"require": "./dist/cjs/services/cell.js",
|
|
2760
|
+
"types": "./dist/esm/services/cell.d.ts"
|
|
2761
2761
|
},
|
|
2762
2762
|
"./context": {
|
|
2763
2763
|
"import": "./dist/esm/services/context.js",
|
|
@@ -3579,6 +3579,56 @@
|
|
|
3579
3579
|
"require": "./dist/cjs/tasks/listDriveItems.js",
|
|
3580
3580
|
"types": "./dist/esm/tasks/listDriveItems.d.ts"
|
|
3581
3581
|
},
|
|
3582
|
+
"./readFirstRow": {
|
|
3583
|
+
"import": "./dist/esm/tasks/readFirstRow.js",
|
|
3584
|
+
"require": "./dist/cjs/tasks/readFirstRow.js",
|
|
3585
|
+
"types": "./dist/esm/tasks/readFirstRow.d.ts"
|
|
3586
|
+
},
|
|
3587
|
+
"./dist/cjs/tasks/readFirstRow.js": {
|
|
3588
|
+
"import": "./dist/esm/tasks/readFirstRow.js",
|
|
3589
|
+
"require": "./dist/cjs/tasks/readFirstRow.js",
|
|
3590
|
+
"types": "./dist/esm/tasks/readFirstRow.d.ts"
|
|
3591
|
+
},
|
|
3592
|
+
"./dist/cjs/tasks/readFirstRow": {
|
|
3593
|
+
"import": "./dist/esm/tasks/readFirstRow.js",
|
|
3594
|
+
"require": "./dist/cjs/tasks/readFirstRow.js",
|
|
3595
|
+
"types": "./dist/esm/tasks/readFirstRow.d.ts"
|
|
3596
|
+
},
|
|
3597
|
+
"./tasks/readFirstRow": {
|
|
3598
|
+
"import": "./dist/esm/tasks/readFirstRow.js",
|
|
3599
|
+
"require": "./dist/cjs/tasks/readFirstRow.js",
|
|
3600
|
+
"types": "./dist/esm/tasks/readFirstRow.d.ts"
|
|
3601
|
+
},
|
|
3602
|
+
"./tasks/readFirstRow.js": {
|
|
3603
|
+
"import": "./dist/esm/tasks/readFirstRow.js",
|
|
3604
|
+
"require": "./dist/cjs/tasks/readFirstRow.js",
|
|
3605
|
+
"types": "./dist/esm/tasks/readFirstRow.d.ts"
|
|
3606
|
+
},
|
|
3607
|
+
"./readRows": {
|
|
3608
|
+
"import": "./dist/esm/tasks/readRows.js",
|
|
3609
|
+
"require": "./dist/cjs/tasks/readRows.js",
|
|
3610
|
+
"types": "./dist/esm/tasks/readRows.d.ts"
|
|
3611
|
+
},
|
|
3612
|
+
"./dist/cjs/tasks/readRows.js": {
|
|
3613
|
+
"import": "./dist/esm/tasks/readRows.js",
|
|
3614
|
+
"require": "./dist/cjs/tasks/readRows.js",
|
|
3615
|
+
"types": "./dist/esm/tasks/readRows.d.ts"
|
|
3616
|
+
},
|
|
3617
|
+
"./dist/cjs/tasks/readRows": {
|
|
3618
|
+
"import": "./dist/esm/tasks/readRows.js",
|
|
3619
|
+
"require": "./dist/cjs/tasks/readRows.js",
|
|
3620
|
+
"types": "./dist/esm/tasks/readRows.d.ts"
|
|
3621
|
+
},
|
|
3622
|
+
"./tasks/readRows": {
|
|
3623
|
+
"import": "./dist/esm/tasks/readRows.js",
|
|
3624
|
+
"require": "./dist/cjs/tasks/readRows.js",
|
|
3625
|
+
"types": "./dist/esm/tasks/readRows.d.ts"
|
|
3626
|
+
},
|
|
3627
|
+
"./tasks/readRows.js": {
|
|
3628
|
+
"import": "./dist/esm/tasks/readRows.js",
|
|
3629
|
+
"require": "./dist/cjs/tasks/readRows.js",
|
|
3630
|
+
"types": "./dist/esm/tasks/readRows.d.ts"
|
|
3631
|
+
},
|
|
3582
3632
|
"./readWorkbookRows": {
|
|
3583
3633
|
"import": "./dist/esm/tasks/readWorkbookRows.js",
|
|
3584
3634
|
"require": "./dist/cjs/tasks/readWorkbookRows.js",
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Spreadsheet number format constants for Microsoft Graph API.
|
|
3
|
-
* @module CellFormat
|
|
4
|
-
* @category Services
|
|
5
|
-
*/
|
|
6
|
-
import type { CellFormat } from "../models/Cell.ts";
|
|
7
|
-
export declare const generalCellFormat: CellFormat;
|
|
8
|
-
export declare const numberCellFormat: CellFormat;
|
|
9
|
-
export declare const currencyCellFormat: CellFormat;
|
|
10
|
-
export declare const accountingCellFormat: CellFormat;
|
|
11
|
-
export declare const percentageCellFormat: CellFormat;
|
|
12
|
-
export declare const dateShortCellFormat: CellFormat;
|
|
13
|
-
export declare const timeCellFormat: CellFormat;
|
|
14
|
-
export declare const textCellFormat: CellFormat;
|
|
15
|
-
//# sourceMappingURL=cellFormat.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cellFormat.d.ts","sourceRoot":"","sources":["../../../src/services/cellFormat.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,eAAO,MAAM,iBAAiB,EAAgB,UAAU,CAAC;AACzD,eAAO,MAAM,gBAAgB,EAAiB,UAAU,CAAC;AACzD,eAAO,MAAM,kBAAkB,EAAkB,UAAU,CAAC;AAC5D,eAAO,MAAM,oBAAoB,EAA2D,UAAU,CAAC;AACvG,eAAO,MAAM,oBAAoB,EAAc,UAAU,CAAC;AAC1D,eAAO,MAAM,mBAAmB,EAAmB,UAAU,CAAC;AAC9D,eAAO,MAAM,cAAc,EAAsB,UAAU,CAAC;AAC5D,eAAO,MAAM,cAAc,EAAU,UAAU,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Spreadsheet number format constants for Microsoft Graph API.
|
|
4
|
-
* @module CellFormat
|
|
5
|
-
* @category Services
|
|
6
|
-
*/
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.textCellFormat = exports.timeCellFormat = exports.dateShortCellFormat = exports.percentageCellFormat = exports.accountingCellFormat = exports.currencyCellFormat = exports.numberCellFormat = exports.generalCellFormat = void 0;
|
|
9
|
-
exports.generalCellFormat = "General";
|
|
10
|
-
exports.numberCellFormat = "#,##0.00";
|
|
11
|
-
exports.currencyCellFormat = "$#,##0.00";
|
|
12
|
-
exports.accountingCellFormat = '_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)';
|
|
13
|
-
exports.percentageCellFormat = "0.00%";
|
|
14
|
-
exports.dateShortCellFormat = "dd/mm/yyyy";
|
|
15
|
-
exports.timeCellFormat = "h:mm:ss AM/PM";
|
|
16
|
-
exports.textCellFormat = "@";
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Spreadsheet number format constants for Microsoft Graph API.
|
|
3
|
-
* @module CellFormat
|
|
4
|
-
* @category Services
|
|
5
|
-
*/
|
|
6
|
-
import type { CellFormat } from "../models/Cell.ts";
|
|
7
|
-
export declare const generalCellFormat: CellFormat;
|
|
8
|
-
export declare const numberCellFormat: CellFormat;
|
|
9
|
-
export declare const currencyCellFormat: CellFormat;
|
|
10
|
-
export declare const accountingCellFormat: CellFormat;
|
|
11
|
-
export declare const percentageCellFormat: CellFormat;
|
|
12
|
-
export declare const dateShortCellFormat: CellFormat;
|
|
13
|
-
export declare const timeCellFormat: CellFormat;
|
|
14
|
-
export declare const textCellFormat: CellFormat;
|
|
15
|
-
//# sourceMappingURL=cellFormat.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cellFormat.d.ts","sourceRoot":"","sources":["../../../src/services/cellFormat.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,eAAO,MAAM,iBAAiB,EAAgB,UAAU,CAAC;AACzD,eAAO,MAAM,gBAAgB,EAAiB,UAAU,CAAC;AACzD,eAAO,MAAM,kBAAkB,EAAkB,UAAU,CAAC;AAC5D,eAAO,MAAM,oBAAoB,EAA2D,UAAU,CAAC;AACvG,eAAO,MAAM,oBAAoB,EAAc,UAAU,CAAC;AAC1D,eAAO,MAAM,mBAAmB,EAAmB,UAAU,CAAC;AAC9D,eAAO,MAAM,cAAc,EAAsB,UAAU,CAAC;AAC5D,eAAO,MAAM,cAAc,EAAU,UAAU,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Spreadsheet number format constants for Microsoft Graph API.
|
|
3
|
-
* @module CellFormat
|
|
4
|
-
* @category Services
|
|
5
|
-
*/
|
|
6
|
-
export const generalCellFormat = "General";
|
|
7
|
-
export const numberCellFormat = "#,##0.00";
|
|
8
|
-
export const currencyCellFormat = "$#,##0.00";
|
|
9
|
-
export const accountingCellFormat = '_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)';
|
|
10
|
-
export const percentageCellFormat = "0.00%";
|
|
11
|
-
export const dateShortCellFormat = "dd/mm/yyyy";
|
|
12
|
-
export const timeCellFormat = "h:mm:ss AM/PM";
|
|
13
|
-
export const textCellFormat = "@";
|