microsoft-graph 3.2.3 → 3.3.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/.editorconfig +1 -1
- package/.vscode/settings.json +1 -8
- package/biome.jsonc +16 -17
- package/dist/cjs/models/AzureApplicationCredentials.d.ts.map +1 -1
- package/dist/cjs/models/AzureApplicationCredentials.js +5 -1
- package/dist/cjs/models/Cell.d.ts.map +1 -1
- package/dist/cjs/models/Drive.d.ts.map +1 -1
- package/dist/cjs/models/Drive.js +5 -1
- package/dist/cjs/models/DriveItem.d.ts.map +1 -1
- package/dist/cjs/models/DriveItem.js +5 -1
- package/dist/cjs/models/Http.d.ts.map +1 -1
- package/dist/cjs/models/Http.js +0 -1
- package/dist/cjs/models/Site.d.ts.map +1 -1
- package/dist/cjs/models/Site.js +5 -1
- package/dist/cjs/models/Workbook.d.ts.map +1 -1
- package/dist/cjs/models/Workbook.js +5 -1
- package/dist/cjs/models/WorkbookNamedRange.d.ts.map +1 -1
- package/dist/cjs/models/WorkbookNamedRange.js +5 -1
- package/dist/cjs/models/WorkbookPivotTable.d.ts.map +1 -1
- package/dist/cjs/models/WorkbookPivotTable.js +5 -1
- package/dist/cjs/models/WorkbookRange.d.ts.map +1 -1
- package/dist/cjs/models/WorkbookRange.js +5 -1
- package/dist/cjs/models/WorkbookSession.d.ts.map +1 -1
- package/dist/cjs/models/WorkbookSession.js +5 -1
- package/dist/cjs/models/WorkbookTable.d.ts.map +1 -1
- package/dist/cjs/models/WorkbookTable.js +5 -1
- package/dist/cjs/models/WorkbookWorksheet.d.ts.map +1 -1
- package/dist/cjs/models/WorkbookWorksheet.js +5 -1
- package/dist/cjs/operations/driveItem/streamDriveItemContent.d.ts.map +1 -1
- package/dist/cjs/operations/driveItem/streamDriveItemContent.js +1 -0
- package/dist/cjs/services/context.d.ts.map +1 -1
- package/dist/cjs/services/context.js +0 -1
- package/dist/cjs/services/iteration.d.ts +1 -1
- package/dist/cjs/services/iteration.d.ts.map +1 -1
- package/dist/cjs/services/iteration.js +2 -2
- package/dist/cjs/services/objectMapping.js +3 -3
- package/dist/cjs/services/operationInvoker.d.ts.map +1 -1
- package/dist/cjs/services/operationInvoker.js +0 -1
- package/dist/cjs/tasks/iterateWorkbookRangeRows.d.ts +4 -2
- package/dist/cjs/tasks/iterateWorkbookRangeRows.d.ts.map +1 -1
- package/dist/cjs/tasks/iterateWorkbookRangeRows.js +11 -4
- package/dist/esm/models/AzureApplicationCredentials.d.ts.map +1 -1
- package/dist/esm/models/AzureApplicationCredentials.js +5 -1
- package/dist/esm/models/Cell.d.ts.map +1 -1
- package/dist/esm/models/Drive.d.ts.map +1 -1
- package/dist/esm/models/Drive.js +5 -1
- package/dist/esm/models/DriveItem.d.ts.map +1 -1
- package/dist/esm/models/DriveItem.js +5 -1
- package/dist/esm/models/Http.d.ts.map +1 -1
- package/dist/esm/models/Http.js +0 -1
- package/dist/esm/models/Site.d.ts.map +1 -1
- package/dist/esm/models/Site.js +5 -1
- package/dist/esm/models/Workbook.d.ts.map +1 -1
- package/dist/esm/models/Workbook.js +5 -1
- package/dist/esm/models/WorkbookNamedRange.d.ts.map +1 -1
- package/dist/esm/models/WorkbookNamedRange.js +5 -1
- package/dist/esm/models/WorkbookPivotTable.d.ts.map +1 -1
- package/dist/esm/models/WorkbookPivotTable.js +5 -1
- package/dist/esm/models/WorkbookRange.d.ts.map +1 -1
- package/dist/esm/models/WorkbookRange.js +5 -1
- package/dist/esm/models/WorkbookSession.d.ts.map +1 -1
- package/dist/esm/models/WorkbookSession.js +5 -1
- package/dist/esm/models/WorkbookTable.d.ts.map +1 -1
- package/dist/esm/models/WorkbookTable.js +5 -1
- package/dist/esm/models/WorkbookWorksheet.d.ts.map +1 -1
- package/dist/esm/models/WorkbookWorksheet.js +5 -1
- package/dist/esm/operations/driveItem/streamDriveItemContent.d.ts.map +1 -1
- package/dist/esm/operations/driveItem/streamDriveItemContent.js +1 -0
- package/dist/esm/services/context.d.ts.map +1 -1
- package/dist/esm/services/context.js +0 -1
- package/dist/esm/services/iteration.d.ts +1 -1
- package/dist/esm/services/iteration.d.ts.map +1 -1
- package/dist/esm/services/iteration.js +2 -2
- package/dist/esm/services/objectMapping.js +3 -3
- package/dist/esm/services/operationInvoker.d.ts.map +1 -1
- package/dist/esm/services/operationInvoker.js +0 -1
- package/dist/esm/tasks/iterateWorkbookRangeRows.d.ts +4 -2
- package/dist/esm/tasks/iterateWorkbookRangeRows.d.ts.map +1 -1
- package/dist/esm/tasks/iterateWorkbookRangeRows.js +12 -5
- package/docs/api/AzureApplicationCredentials-1.md +4 -4
- package/docs/api/Cell.md +31 -31
- package/docs/api/Drive-1.md +3 -3
- package/docs/api/DriveItem-1.md +3 -3
- package/docs/api/Http-1.md +6 -6
- package/docs/api/Iteration.md +7 -5
- package/docs/api/Site-1.md +5 -5
- package/docs/api/Workbook.md +1 -1
- package/docs/api/WorkbookNamedRange.md +2 -2
- package/docs/api/WorkbookPivotTable-1.md +2 -2
- package/docs/api/WorkbookRange-1.md +1 -1
- package/docs/api/WorkbookSession.md +1 -1
- package/docs/api/WorkbookTable-1.md +3 -3
- package/docs/api/WorkbookWorksheet-1.md +3 -3
- package/docs/api/context.md +4 -4
- package/docs/api/iterateWorkbookRangeRows.md +9 -8
- package/docs/api/operationInvoker.md +1 -1
- package/package.json +1907 -1907
- package/update-exports.ts +2 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkbookRange.d.ts","sourceRoot":"","sources":["../../../src/models/WorkbookRange.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WorkbookRange.d.ts","sourceRoot":"","sources":["../../../src/models/WorkbookRange.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAEnE;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,GAAG;IACrD,OAAO,EAAE,OAAO,CAAC;CACjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkbookSession.d.ts","sourceRoot":"","sources":["../../../src/models/WorkbookSession.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WorkbookSession.d.ts","sourceRoot":"","sources":["../../../src/models/WorkbookSession.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG;IACxC,OAAO,EAAE,mBAAmB,CAAC;CAC7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkbookTable.d.ts","sourceRoot":"","sources":["../../../src/models/WorkbookTable.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WorkbookTable.d.ts","sourceRoot":"","sources":["../../../src/models/WorkbookTable.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAEnE;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG;IACtC,OAAO,EAAE,iBAAiB,CAAC;CAC3B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,GAAG;IACrD,OAAO,EAAE,eAAe,CAAC;CACzB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,gBAAgB,GAAG;IACvD,MAAM,EAAE,UAAU,CAAC;CACnB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkbookWorksheet.d.ts","sourceRoot":"","sources":["../../../src/models/WorkbookWorksheet.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WorkbookWorksheet.d.ts","sourceRoot":"","sources":["../../../src/models/WorkbookWorksheet.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG;IAC1C,OAAO,EAAE,qBAAqB,CAAC;CAC/B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG;IAC5C,OAAO,EAAE,uBAAuB,CAAC;CACjC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,WAAW,GAAG;IAChD,WAAW,EAAE,mBAAmB,CAAC;CACjC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"streamDriveItemContent.d.ts","sourceRoot":"","sources":["../../../../src/operations/driveItem/streamDriveItemContent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAM9D;;;;;;;GAOG;AACH,wBAA8B,sBAAsB,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,cAAc,CAAC,
|
|
1
|
+
{"version":3,"file":"streamDriveItemContent.d.ts","sourceRoot":"","sources":["../../../../src/operations/driveItem/streamDriveItemContent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAM9D;;;;;;;GAOG;AACH,wBAA8B,sBAAsB,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,cAAc,CAAC,CAuB1G"}
|
|
@@ -16,6 +16,7 @@ import { generatePath } from "../../services/templatedPaths.js";
|
|
|
16
16
|
* @see https://learn.microsoft.com/en-us/graph/api/driveitem-get-content
|
|
17
17
|
*/
|
|
18
18
|
export default async function streamDriveItemContent(itemRef) {
|
|
19
|
+
// TODO: Rename to getDriveItemContent at next breaking update
|
|
19
20
|
const url = `${endpoint}${generatePath("/sites/{site-id}/drives/{drive-id}/items/{item-id}/content", itemRef)}`;
|
|
20
21
|
const accessToken = await itemRef.context.generateAccessToken();
|
|
21
22
|
const response = await executeHttpRequest({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/services/context.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,0CAA0C,CAAC;AACvH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAOvD,2DAA2D;AAC3D,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,aAAa,EAAE,QAAQ,EAAE,aAAa,EAAE,YAAY,EAAE,iBAAiB,EAAE,KAAK,GAAE,KAAoB,GAAG,UAAU,CAMpK;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,WAAW,EAAE,WAAW,GAAG,UAAU,
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/services/context.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,0CAA0C,CAAC;AACvH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAOvD,2DAA2D;AAC3D,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,aAAa,EAAE,QAAQ,EAAE,aAAa,EAAE,YAAY,EAAE,iBAAiB,EAAE,KAAK,GAAE,KAAoB,GAAG,UAAU,CAMpK;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,WAAW,EAAE,WAAW,GAAG,UAAU,CAI7E;AAED,6DAA6D;AAC7D,wBAAgB,aAAa,CAAC,oBAAoB,EAAE,oBAAoB,GAAG,UAAU,CAQpF;AAED,gJAAgJ;AAChJ,wBAAgB,gCAAgC,IAAI,UAAU,CAM7D;AAED;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,UAAU,CAEjD;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,aAAa,EAAE,QAAQ,EAAE,aAAa,EAAE,YAAY,EAAE,iBAAiB,GAAG,UAAU,CAEtH"}
|
|
@@ -19,7 +19,6 @@ export function createClientSecretContext(tenantId, clientId, clientSecret, scop
|
|
|
19
19
|
* @remarks You must manually handle renewal of the access token with this approach.
|
|
20
20
|
*/
|
|
21
21
|
export function createAccessTokenContext(accessToken) {
|
|
22
|
-
// biome-ignore lint/suspicious/useAwait: Not applicable here, as we are creating a context that returns a static access token.
|
|
23
22
|
return createContext(async () => {
|
|
24
23
|
return accessToken;
|
|
25
24
|
});
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
* @param iterable
|
|
9
9
|
* @returns Array of items collected from the iterable.
|
|
10
10
|
*/
|
|
11
|
-
export declare function iterateToArray<T>(iterable: AsyncIterable<T
|
|
11
|
+
export declare function iterateToArray<T, U = T>(iterable: AsyncIterable<T>, converter?: (item: T) => U): Promise<U[]>;
|
|
12
12
|
//# sourceMappingURL=iteration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iteration.d.ts","sourceRoot":"","sources":["../../../src/services/iteration.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;GAIG;AACH,wBAAsB,cAAc,CAAC,CAAC,EAAE,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"iteration.d.ts","sourceRoot":"","sources":["../../../src/services/iteration.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;GAIG;AACH,wBAAsB,cAAc,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC,CAMnH"}
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
* @param iterable
|
|
9
9
|
* @returns Array of items collected from the iterable.
|
|
10
10
|
*/
|
|
11
|
-
export async function iterateToArray(iterable) {
|
|
11
|
+
export async function iterateToArray(iterable, converter) {
|
|
12
12
|
const result = [];
|
|
13
13
|
for await (const item of iterable) {
|
|
14
|
-
result.push(item);
|
|
14
|
+
result.push(converter ? converter(item) : item);
|
|
15
15
|
}
|
|
16
16
|
return result;
|
|
17
17
|
}
|
|
@@ -42,7 +42,7 @@ export function createObjectMapping(headerRow, rules) {
|
|
|
42
42
|
const headStrings = headerRow.map((c) => (typeof c === "object" ? c.text : c));
|
|
43
43
|
const resolved = {};
|
|
44
44
|
for (const key in rules) {
|
|
45
|
-
if (!Object.
|
|
45
|
+
if (!Object.hasOwn(rules, key)) {
|
|
46
46
|
continue;
|
|
47
47
|
}
|
|
48
48
|
const rule = rules[key];
|
|
@@ -107,7 +107,7 @@ export async function* objectsToRows(objects, mapping) {
|
|
|
107
107
|
export function rowToObject(cells, rules) {
|
|
108
108
|
const record = {};
|
|
109
109
|
for (const key in rules) {
|
|
110
|
-
if (!Object.
|
|
110
|
+
if (!Object.hasOwn(rules, key)) {
|
|
111
111
|
continue;
|
|
112
112
|
}
|
|
113
113
|
const rule = rules[key];
|
|
@@ -129,7 +129,7 @@ export function rowToObject(cells, rules) {
|
|
|
129
129
|
export function objectToRow(record, mapper) {
|
|
130
130
|
const row = [];
|
|
131
131
|
for (const key in mapper) {
|
|
132
|
-
if (!Object.
|
|
132
|
+
if (!Object.hasOwn(mapper, key)) {
|
|
133
133
|
continue;
|
|
134
134
|
}
|
|
135
135
|
const { columnOffset, encode } = mapper[key];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operationInvoker.d.ts","sourceRoot":"","sources":["../../../src/services/operationInvoker.ts"],"names":[],"mappings":"AAmCA,OAAO,KAAK,EAAE,cAAc,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAiC/G;;;GAGG;AACH,eAAO,MAAM,QAAQ,qCAAqC,CAAC;AAE3D;;;GAGG;AACH,eAAO,MAAM,aAAa,4CAAuB,CAAC;AAElD;;;;;;;;GAQG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,UAAU,EAAE,wBAAwB,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAQvF;AAED;;;;;;;;GAQG;AACH,wBAAsB,QAAQ,CAAC,CAAC,SAAS,cAAc,CAAC,OAAO,CAAC,EAAE,EAAE,GAAG,UAAU,EAAE,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAInH;AAED;;;;;;;;GAQG;AACH,wBAAsB,UAAU,CAAC,CAAC,SAAS,cAAc,CAAC,OAAO,CAAC,EAAE,EAAE,GAAG,UAAU,EAAE,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAOrH;
|
|
1
|
+
{"version":3,"file":"operationInvoker.d.ts","sourceRoot":"","sources":["../../../src/services/operationInvoker.ts"],"names":[],"mappings":"AAmCA,OAAO,KAAK,EAAE,cAAc,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAiC/G;;;GAGG;AACH,eAAO,MAAM,QAAQ,qCAAqC,CAAC;AAE3D;;;GAGG;AACH,eAAO,MAAM,aAAa,4CAAuB,CAAC;AAElD;;;;;;;;GAQG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,UAAU,EAAE,wBAAwB,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAQvF;AAED;;;;;;;;GAQG;AACH,wBAAsB,QAAQ,CAAC,CAAC,SAAS,cAAc,CAAC,OAAO,CAAC,EAAE,EAAE,GAAG,UAAU,EAAE,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAInH;AAED;;;;;;;;GAQG;AACH,wBAAsB,UAAU,CAAC,CAAC,SAAS,cAAc,CAAC,OAAO,CAAC,EAAE,EAAE,GAAG,UAAU,EAAE,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAOrH;AAqMD,wBAAgB,cAAc,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,KAAK,CAwE3E"}
|
|
@@ -239,7 +239,6 @@ function handleResponseError(response, errorLog, attempts, operationIndex = null
|
|
|
239
239
|
message += `\n${errorLog}`;
|
|
240
240
|
throwException(response.status, message);
|
|
241
241
|
}
|
|
242
|
-
// biome-ignore lint/complexity/noExcessiveCognitiveComplexity: Simple enough
|
|
243
242
|
export function throwException(responseCode, message) {
|
|
244
243
|
if (isHttpBadRequest(responseCode)) {
|
|
245
244
|
throw new BadRequestError(message);
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* @category Tasks
|
|
5
5
|
* @experimental
|
|
6
6
|
*/
|
|
7
|
+
import type { RowAddress } from "../models/Address.ts";
|
|
7
8
|
import type { Cell, CellScope } from "../models/Cell.ts";
|
|
8
9
|
import type { RowOffset } from "../models/Row.ts";
|
|
9
10
|
import type { WorkbookRangeRef } from "../models/WorkbookRange.ts";
|
|
@@ -16,6 +17,7 @@ import type { WorkbookRangeRef } from "../models/WorkbookRange.ts";
|
|
|
16
17
|
*/
|
|
17
18
|
export type IteratedRow = {
|
|
18
19
|
cells: Cell[];
|
|
20
|
+
address: RowAddress;
|
|
19
21
|
offset: RowOffset;
|
|
20
22
|
isFirst: boolean;
|
|
21
23
|
isLast: boolean;
|
|
@@ -27,8 +29,8 @@ export type IteratedRow = {
|
|
|
27
29
|
* @param maxCellsPerOperation Prescribe max cells to retrieve per operation. `null` automatically determines value. DO NOT SET EXCEPT FOR ADVANCED TUNING.
|
|
28
30
|
* @experimental
|
|
29
31
|
* @example
|
|
30
|
-
* for await (const {
|
|
31
|
-
* console.log(
|
|
32
|
+
* for await (const { cells } of iterateRows(rangeRef)) {
|
|
33
|
+
* console.log(cells);
|
|
32
34
|
* }
|
|
33
35
|
*/
|
|
34
36
|
export declare function iterateWorkbookRangeRows(rangeRef: WorkbookRangeRef, scope?: Partial<CellScope>, maxCellsPerOperation?: number | null): AsyncIterable<IteratedRow>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iterateWorkbookRangeRows.d.ts","sourceRoot":"","sources":["../../../src/tasks/iterateWorkbookRangeRows.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"iterateWorkbookRangeRows.d.ts","sourceRoot":"","sources":["../../../src/tasks/iterateWorkbookRangeRows.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,KAAK,EAAE,IAAI,EAAuC,SAAS,EAA6D,MAAM,mBAAmB,CAAC;AAIzJ,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAWnE;;;;;;GAMG;AACH,MAAM,MAAM,WAAW,GAAG;IACzB,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,OAAO,EAAE,UAAU,CAAC;IACpB,MAAM,EAAE,SAAS,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF;;;;;;;;;;GAUG;AACH,wBAAuB,wBAAwB,CAAC,QAAQ,EAAE,gBAAgB,EAAE,KAAK,GAAE,OAAO,CAAC,SAAS,CAAoB,EAAE,oBAAoB,GAAE,MAAM,GAAG,IAAW,GAAG,aAAa,CAAC,WAAW,CAAC,CAuDhM"}
|
|
@@ -10,7 +10,8 @@ import getWorkbookRangeFill from "../operations/workbookRange/getWorkbookRangeFi
|
|
|
10
10
|
import getWorkbookRangeFont from "../operations/workbookRange/getWorkbookRangeFont.js";
|
|
11
11
|
import getWorkbookWorksheetRange from "../operations/workbookRange/getWorkbookWorksheetRange.js";
|
|
12
12
|
import listWorkbookRangeBorders from "../operations/workbookRange/listWorkbookRangeBorders.js";
|
|
13
|
-
import { countAddressColumns, countAddressRows, subRange } from "../services/addressManipulation.js";
|
|
13
|
+
import { countAddressColumns, countAddressRows, decomposeAddress, subRange } from "../services/addressManipulation.js";
|
|
14
|
+
import { rowAddressToOffset, rowOffsetToAddress } from "../services/addressOffset.js";
|
|
14
15
|
import { maxCellsPerRequest } from "../services/batch.js";
|
|
15
16
|
import { defaultCellScope } from "../services/cell.js";
|
|
16
17
|
/**
|
|
@@ -20,8 +21,8 @@ import { defaultCellScope } from "../services/cell.js";
|
|
|
20
21
|
* @param maxCellsPerOperation Prescribe max cells to retrieve per operation. `null` automatically determines value. DO NOT SET EXCEPT FOR ADVANCED TUNING.
|
|
21
22
|
* @experimental
|
|
22
23
|
* @example
|
|
23
|
-
* for await (const {
|
|
24
|
-
* console.log(
|
|
24
|
+
* for await (const { cells } of iterateRows(rangeRef)) {
|
|
25
|
+
* console.log(cells);
|
|
25
26
|
* }
|
|
26
27
|
*/
|
|
27
28
|
export async function* iterateWorkbookRangeRows(rangeRef, scope = defaultCellScope, maxCellsPerOperation = null) {
|
|
@@ -29,6 +30,9 @@ export async function* iterateWorkbookRangeRows(rangeRef, scope = defaultCellSco
|
|
|
29
30
|
const totalRowCount = countAddressRows(rangeRef.address);
|
|
30
31
|
const maxRowsPerOperation = calculateMaxRowsPerOperation(totalColumnCount, maxCellsPerOperation);
|
|
31
32
|
const rangeSelect = scopeToRangeSelect(scope);
|
|
33
|
+
// Calculate the absolute row offset from the top of the sheet
|
|
34
|
+
const { startRow } = decomposeAddress(rangeRef.address);
|
|
35
|
+
const absoluteStartRowOffset = rowAddressToOffset(startRow);
|
|
32
36
|
for (let operationRowStart = 0; operationRowStart < totalRowCount; operationRowStart += maxRowsPerOperation) {
|
|
33
37
|
const operationRowCount = Math.min(maxRowsPerOperation, totalRowCount - operationRowStart);
|
|
34
38
|
const operationRangeRef = subRange(rangeRef, operationRowStart, operationRowCount);
|
|
@@ -55,12 +59,15 @@ export async function* iterateWorkbookRangeRows(rangeRef, scope = defaultCellSco
|
|
|
55
59
|
font,
|
|
56
60
|
});
|
|
57
61
|
}
|
|
58
|
-
|
|
62
|
+
// Calculate the absolute offset from the top of the sheet
|
|
63
|
+
const offset = (absoluteStartRowOffset + operationRowStart + operationRowOffset);
|
|
64
|
+
const address = rowOffsetToAddress(offset);
|
|
59
65
|
const isFirst = offset === 0;
|
|
60
|
-
const isLast = offset === totalRowCount - 1;
|
|
66
|
+
const isLast = offset === absoluteStartRowOffset + totalRowCount - 1;
|
|
61
67
|
yield {
|
|
62
68
|
cells,
|
|
63
69
|
offset,
|
|
70
|
+
address,
|
|
64
71
|
isFirst,
|
|
65
72
|
isLast,
|
|
66
73
|
};
|
|
@@ -10,7 +10,7 @@ Credentials used to authenticate an application with Azure.
|
|
|
10
10
|
|
|
11
11
|
> **AzureClientId** = `string` & `object`
|
|
12
12
|
|
|
13
|
-
Defined in: [src/models/AzureApplicationCredentials.ts:
|
|
13
|
+
Defined in: [src/models/AzureApplicationCredentials.ts:10](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/AzureApplicationCredentials.ts#L10)
|
|
14
14
|
|
|
15
15
|
Application Client ID to authenticate with Azure.
|
|
16
16
|
|
|
@@ -26,7 +26,7 @@ Application Client ID to authenticate with Azure.
|
|
|
26
26
|
|
|
27
27
|
> **AzureClientSecret** = `string` & `object`
|
|
28
28
|
|
|
29
|
-
Defined in: [src/models/AzureApplicationCredentials.ts:
|
|
29
|
+
Defined in: [src/models/AzureApplicationCredentials.ts:17](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/AzureApplicationCredentials.ts#L17)
|
|
30
30
|
|
|
31
31
|
Application Client secret to authenticate with Azure.
|
|
32
32
|
|
|
@@ -42,7 +42,7 @@ Application Client secret to authenticate with Azure.
|
|
|
42
42
|
|
|
43
43
|
> **AzureTenantId** = `string` & `object`
|
|
44
44
|
|
|
45
|
-
Defined in: [src/models/AzureApplicationCredentials.ts:
|
|
45
|
+
Defined in: [src/models/AzureApplicationCredentials.ts:24](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/AzureApplicationCredentials.ts#L24)
|
|
46
46
|
|
|
47
47
|
ID of tenant in Azure.
|
|
48
48
|
|
|
@@ -58,7 +58,7 @@ ID of tenant in Azure.
|
|
|
58
58
|
|
|
59
59
|
> **Scope** = `string` & `object`
|
|
60
60
|
|
|
61
|
-
Defined in: [src/models/AzureApplicationCredentials.ts:
|
|
61
|
+
Defined in: [src/models/AzureApplicationCredentials.ts:32](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/AzureApplicationCredentials.ts#L32)
|
|
62
62
|
|
|
63
63
|
Scope for which the access token is requested.
|
|
64
64
|
|
package/docs/api/Cell.md
CHANGED
|
@@ -27,23 +27,23 @@ Contrary to common expectation, while a cell does contain a single value, it als
|
|
|
27
27
|
| `alignment.vertical?` | [`CellVerticalAlignment`](#cellverticalalignment) | - | [src/models/Cell.ts:48](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/Cell.ts#L48) |
|
|
28
28
|
| `alignment.wrapText?` | `boolean` | - | [src/models/Cell.ts:49](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/Cell.ts#L49) |
|
|
29
29
|
| <a id="borders"></a> `borders` | `object` | **`Experimental`** Borders around the cell. | [src/models/Cell.ts:56](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/Cell.ts#L56) |
|
|
30
|
-
| `borders.diagonalDown?` | [`Border`](Border.md#border) | - | [src/models/Cell.ts:
|
|
31
|
-
| `borders.diagonalUp?` | [`Border`](Border.md#border) | - | [src/models/Cell.ts:
|
|
32
|
-
| `borders.edgeBottom?` | [`Border`](Border.md#border) | - | [src/models/Cell.ts:
|
|
33
|
-
| `borders.edgeLeft?` | [`Border`](Border.md#border) | - | [src/models/Cell.ts:
|
|
34
|
-
| `borders.edgeRight?` | [`Border`](Border.md#border) | - | [src/models/Cell.ts:
|
|
35
|
-
| `borders.edgeTop?` | [`Border`](Border.md#border) | - | [src/models/Cell.ts:
|
|
36
|
-
| `borders.insideHorizontal?` | [`Border`](Border.md#border) | - | [src/models/Cell.ts:
|
|
37
|
-
| `borders.insideVertical?` | [`Border`](Border.md#border) | - | [src/models/Cell.ts:
|
|
38
|
-
| <a id="fill"></a> `fill` | `object` | **`Experimental`** Fill color of the cell. | [src/models/Cell.ts:
|
|
39
|
-
| `fill.color?` | [`Color`](Color.md#color) | - | [src/models/Cell.ts:
|
|
40
|
-
| <a id="font"></a> `font` | `object` | **`Experimental`** Font settings for the cell. | [src/models/Cell.ts:
|
|
41
|
-
| `font.bold?` | `boolean` | - | [src/models/Cell.ts:
|
|
42
|
-
| `font.color?` | [`Color`](Color.md#color) | - | [src/models/Cell.ts:
|
|
43
|
-
| `font.italic?` | `boolean` | - | [src/models/Cell.ts:
|
|
44
|
-
| `font.name?` | [`FontName`](FontName.md#fontname) | - | [src/models/Cell.ts:
|
|
45
|
-
| `font.size?` | `number` | - | [src/models/Cell.ts:
|
|
46
|
-
| `font.underline?` | [`CellUnderline`](#cellunderline) | - | [src/models/Cell.ts:
|
|
30
|
+
| `borders.diagonalDown?` | [`Border`](Border.md#border) | - | [src/models/Cell.ts:64](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/Cell.ts#L64) |
|
|
31
|
+
| `borders.diagonalUp?` | [`Border`](Border.md#border) | - | [src/models/Cell.ts:65](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/Cell.ts#L65) |
|
|
32
|
+
| `borders.edgeBottom?` | [`Border`](Border.md#border) | - | [src/models/Cell.ts:59](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/Cell.ts#L59) |
|
|
33
|
+
| `borders.edgeLeft?` | [`Border`](Border.md#border) | - | [src/models/Cell.ts:60](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/Cell.ts#L60) |
|
|
34
|
+
| `borders.edgeRight?` | [`Border`](Border.md#border) | - | [src/models/Cell.ts:61](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/Cell.ts#L61) |
|
|
35
|
+
| `borders.edgeTop?` | [`Border`](Border.md#border) | - | [src/models/Cell.ts:58](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/Cell.ts#L58) |
|
|
36
|
+
| `borders.insideHorizontal?` | [`Border`](Border.md#border) | - | [src/models/Cell.ts:63](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/Cell.ts#L63) |
|
|
37
|
+
| `borders.insideVertical?` | [`Border`](Border.md#border) | - | [src/models/Cell.ts:62](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/Cell.ts#L62) |
|
|
38
|
+
| <a id="fill"></a> `fill` | `object` | **`Experimental`** Fill color of the cell. | [src/models/Cell.ts:72](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/Cell.ts#L72) |
|
|
39
|
+
| `fill.color?` | [`Color`](Color.md#color) | - | [src/models/Cell.ts:73](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/Cell.ts#L73) |
|
|
40
|
+
| <a id="font"></a> `font` | `object` | **`Experimental`** Font settings for the cell. | [src/models/Cell.ts:79](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/Cell.ts#L79) |
|
|
41
|
+
| `font.bold?` | `boolean` | - | [src/models/Cell.ts:83](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/Cell.ts#L83) |
|
|
42
|
+
| `font.color?` | [`Color`](Color.md#color) | - | [src/models/Cell.ts:82](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/Cell.ts#L82) |
|
|
43
|
+
| `font.italic?` | `boolean` | - | [src/models/Cell.ts:84](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/Cell.ts#L84) |
|
|
44
|
+
| `font.name?` | [`FontName`](FontName.md#fontname) | - | [src/models/Cell.ts:80](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/Cell.ts#L80) |
|
|
45
|
+
| `font.size?` | `number` | - | [src/models/Cell.ts:81](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/Cell.ts#L81) |
|
|
46
|
+
| `font.underline?` | [`CellUnderline`](#cellunderline) | - | [src/models/Cell.ts:85](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/Cell.ts#L85) |
|
|
47
47
|
| <a id="format"></a> `format` | [`CellFormat`](#cellformat-1) | Formatting that is applied to the value to derive the text representation. | [src/models/Cell.ts:30](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/Cell.ts#L30) |
|
|
48
48
|
| <a id="merge"></a> `merge` | `object` | **`Experimental`** Number of cell merges (WRITE ONLY). **Remarks** Due to API limitations, this value is never populated when reading a cell, but it can be set when writing a cell. | [src/models/Cell.ts:37](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/Cell.ts#L37) |
|
|
49
49
|
| `merge.down?` | `number` | - | [src/models/Cell.ts:39](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/Cell.ts#L39) |
|
|
@@ -57,7 +57,7 @@ Contrary to common expectation, while a cell does contain a single value, it als
|
|
|
57
57
|
|
|
58
58
|
> **CellFormat** = `string` & `object`
|
|
59
59
|
|
|
60
|
-
Defined in: [src/models/Cell.ts:
|
|
60
|
+
Defined in: [src/models/Cell.ts:105](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/Cell.ts#L105)
|
|
61
61
|
|
|
62
62
|
Format to be applied to a cell value to convert it to text to display to the user.
|
|
63
63
|
|
|
@@ -77,7 +77,7 @@ Format to be applied to a cell value to convert it to text to display to the use
|
|
|
77
77
|
|
|
78
78
|
> **CellHorizontalAlignment** = `"General"` \| `"Left"` \| `"Center"` \| `"Right"` \| `"Fill"` \| `"Justify"` \| `"CenterAcrossSelection"` \| `"Distributed"`
|
|
79
79
|
|
|
80
|
-
Defined in: [src/models/Cell.ts:
|
|
80
|
+
Defined in: [src/models/Cell.ts:135](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/Cell.ts#L135)
|
|
81
81
|
|
|
82
82
|
***
|
|
83
83
|
|
|
@@ -85,7 +85,7 @@ Defined in: [src/models/Cell.ts:134](https://github.com/Future-Secure-AI/microso
|
|
|
85
85
|
|
|
86
86
|
> **CellScope** = `object`
|
|
87
87
|
|
|
88
|
-
Defined in: [src/models/Cell.ts:
|
|
88
|
+
Defined in: [src/models/Cell.ts:112](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/Cell.ts#L112)
|
|
89
89
|
|
|
90
90
|
The amount of detail that we're reading from a cell.
|
|
91
91
|
|
|
@@ -93,13 +93,13 @@ The amount of detail that we're reading from a cell.
|
|
|
93
93
|
|
|
94
94
|
| Property | Type | Description | Defined in |
|
|
95
95
|
| ------ | ------ | ------ | ------ |
|
|
96
|
-
| <a id="alignment-1"></a> `alignment` | `boolean` | Content position with the cell. VERY EXPENSIVE (+1 op per cell) | [src/models/Cell.ts:
|
|
97
|
-
| <a id="border"></a> `border` | `boolean` | Cell borders. VERY EXPENSIVE (+1 op per cell) | [src/models/Cell.ts:
|
|
98
|
-
| <a id="fill-1"></a> `fill` | `boolean` | Background fill style. VERY EXPENSIVE (+1 op per cell) | [src/models/Cell.ts:
|
|
99
|
-
| <a id="font-1"></a> `font` | `boolean` | Text style. VERY EXPENSIVE (+1 op per cell) | [src/models/Cell.ts:
|
|
100
|
-
| <a id="format-1"></a> `format` | `boolean` | Logic used to format values to text. CHEAP (+1 op per 10K cells, no additional call op `values` or `text`) | [src/models/Cell.ts:
|
|
101
|
-
| <a id="text-1"></a> `text` | `boolean` | Formatted value, as presented to the user. CHEAP (+1 op per 10K cells, no additional call op `values` or `format`) | [src/models/Cell.ts:
|
|
102
|
-
| <a id="value-1"></a> `value` | `boolean` | Raw cell value. CHEAP (+1 op per 10K cells, no additional op with `text` or `format`) | [src/models/Cell.ts:
|
|
96
|
+
| <a id="alignment-1"></a> `alignment` | `boolean` | Content position with the cell. VERY EXPENSIVE (+1 op per cell) | [src/models/Cell.ts:123](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/Cell.ts#L123) |
|
|
97
|
+
| <a id="border"></a> `border` | `boolean` | Cell borders. VERY EXPENSIVE (+1 op per cell) | [src/models/Cell.ts:126](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/Cell.ts#L126) |
|
|
98
|
+
| <a id="fill-1"></a> `fill` | `boolean` | Background fill style. VERY EXPENSIVE (+1 op per cell) | [src/models/Cell.ts:129](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/Cell.ts#L129) |
|
|
99
|
+
| <a id="font-1"></a> `font` | `boolean` | Text style. VERY EXPENSIVE (+1 op per cell) | [src/models/Cell.ts:132](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/Cell.ts#L132) |
|
|
100
|
+
| <a id="format-1"></a> `format` | `boolean` | Logic used to format values to text. CHEAP (+1 op per 10K cells, no additional call op `values` or `text`) | [src/models/Cell.ts:120](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/Cell.ts#L120) |
|
|
101
|
+
| <a id="text-1"></a> `text` | `boolean` | Formatted value, as presented to the user. CHEAP (+1 op per 10K cells, no additional call op `values` or `format`) | [src/models/Cell.ts:117](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/Cell.ts#L117) |
|
|
102
|
+
| <a id="value-1"></a> `value` | `boolean` | Raw cell value. CHEAP (+1 op per 10K cells, no additional op with `text` or `format`) | [src/models/Cell.ts:114](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/Cell.ts#L114) |
|
|
103
103
|
|
|
104
104
|
***
|
|
105
105
|
|
|
@@ -107,7 +107,7 @@ The amount of detail that we're reading from a cell.
|
|
|
107
107
|
|
|
108
108
|
> **CellText** = `string`
|
|
109
109
|
|
|
110
|
-
Defined in: [src/models/Cell.ts:
|
|
110
|
+
Defined in: [src/models/Cell.ts:99](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/Cell.ts#L99)
|
|
111
111
|
|
|
112
112
|
Text content of a cell in a worksheet.
|
|
113
113
|
|
|
@@ -121,7 +121,7 @@ This is a string that represents the text displayed in the cell, which may diffe
|
|
|
121
121
|
|
|
122
122
|
> **CellUnderline** = `"None"` \| `"Single"` \| `"Double"` \| `"SingleAccountant"` \| `"DoubleAccountant"`
|
|
123
123
|
|
|
124
|
-
Defined in: [src/models/Cell.ts:
|
|
124
|
+
Defined in: [src/models/Cell.ts:139](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/Cell.ts#L139)
|
|
125
125
|
|
|
126
126
|
***
|
|
127
127
|
|
|
@@ -129,7 +129,7 @@ Defined in: [src/models/Cell.ts:138](https://github.com/Future-Secure-AI/microso
|
|
|
129
129
|
|
|
130
130
|
> **CellValue** = `string` \| `number` \| `boolean`
|
|
131
131
|
|
|
132
|
-
Defined in: [src/models/Cell.ts:
|
|
132
|
+
Defined in: [src/models/Cell.ts:93](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/Cell.ts#L93)
|
|
133
133
|
|
|
134
134
|
CellValue represents the value of a cell in a spreadsheet.
|
|
135
135
|
|
|
@@ -143,4 +143,4 @@ CellValue represents the value of a cell in a spreadsheet.
|
|
|
143
143
|
|
|
144
144
|
> **CellVerticalAlignment** = `"Top"` \| `"Center"` \| `"Bottom"` \| `"Justify"` \| `"Distributed"`
|
|
145
145
|
|
|
146
|
-
Defined in: [src/models/Cell.ts:
|
|
146
|
+
Defined in: [src/models/Cell.ts:137](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/Cell.ts#L137)
|
package/docs/api/Drive-1.md
CHANGED
|
@@ -10,7 +10,7 @@ Drive pointers.
|
|
|
10
10
|
|
|
11
11
|
> **DriveId** = `string` & `object`
|
|
12
12
|
|
|
13
|
-
Defined in: [src/models/Drive.ts:
|
|
13
|
+
Defined in: [src/models/Drive.ts:12](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/Drive.ts#L12)
|
|
14
14
|
|
|
15
15
|
Identifier for a drive.
|
|
16
16
|
|
|
@@ -26,7 +26,7 @@ Identifier for a drive.
|
|
|
26
26
|
|
|
27
27
|
> **DriveName** = `string` & `object`
|
|
28
28
|
|
|
29
|
-
Defined in: [src/models/Drive.ts:
|
|
29
|
+
Defined in: [src/models/Drive.ts:26](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/Drive.ts#L26)
|
|
30
30
|
|
|
31
31
|
Name of a drive.
|
|
32
32
|
|
|
@@ -42,7 +42,7 @@ Name of a drive.
|
|
|
42
42
|
|
|
43
43
|
> **DriveRef** = [`SiteRef`](Site-1.md#siteref) & `object`
|
|
44
44
|
|
|
45
|
-
Defined in: [src/models/Drive.ts:
|
|
45
|
+
Defined in: [src/models/Drive.ts:19](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/Drive.ts#L19)
|
|
46
46
|
|
|
47
47
|
Reference to a drive.
|
|
48
48
|
|
package/docs/api/DriveItem-1.md
CHANGED
|
@@ -10,7 +10,7 @@ Drive item pointers.
|
|
|
10
10
|
|
|
11
11
|
> **DriveItemId** = `string` & `object`
|
|
12
12
|
|
|
13
|
-
Defined in: [src/models/DriveItem.ts:
|
|
13
|
+
Defined in: [src/models/DriveItem.ts:12](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/DriveItem.ts#L12)
|
|
14
14
|
|
|
15
15
|
Unique identifier of an item in a drive.
|
|
16
16
|
|
|
@@ -26,7 +26,7 @@ Unique identifier of an item in a drive.
|
|
|
26
26
|
|
|
27
27
|
> **DriveItemPath** = `string` & `object`
|
|
28
28
|
|
|
29
|
-
Defined in: [src/models/DriveItem.ts:
|
|
29
|
+
Defined in: [src/models/DriveItem.ts:19](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/DriveItem.ts#L19)
|
|
30
30
|
|
|
31
31
|
Path of an item in a drive.
|
|
32
32
|
|
|
@@ -42,7 +42,7 @@ Path of an item in a drive.
|
|
|
42
42
|
|
|
43
43
|
> **DriveItemRef** = [`DriveRef`](Drive-1.md#driveref) & `object`
|
|
44
44
|
|
|
45
|
-
Defined in: [src/models/DriveItem.ts:
|
|
45
|
+
Defined in: [src/models/DriveItem.ts:26](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/DriveItem.ts#L26)
|
|
46
46
|
|
|
47
47
|
Reference to a drive item.
|
|
48
48
|
|
package/docs/api/Http-1.md
CHANGED
|
@@ -10,7 +10,7 @@ HTTP models for handling HTTP requests and responses.
|
|
|
10
10
|
|
|
11
11
|
> **HttpHeaders** = `object`
|
|
12
12
|
|
|
13
|
-
Defined in: [src/models/Http.ts:
|
|
13
|
+
Defined in: [src/models/Http.ts:12](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/Http.ts#L12)
|
|
14
14
|
|
|
15
15
|
HTTP headers used in requests and responses.
|
|
16
16
|
|
|
@@ -18,8 +18,8 @@ HTTP headers used in requests and responses.
|
|
|
18
18
|
|
|
19
19
|
| Property | Type | Defined in |
|
|
20
20
|
| ------ | ------ | ------ |
|
|
21
|
-
| <a id="content-type"></a> `content-type?` | `string` | [src/models/Http.ts:
|
|
22
|
-
| <a id="workbook-session-id"></a> `workbook-session-id?` | [`WorkbookSessionId`](WorkbookSession.md#workbooksessionid) | [src/models/Http.ts:
|
|
21
|
+
| <a id="content-type"></a> `content-type?` | `string` | [src/models/Http.ts:14](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/Http.ts#L14) |
|
|
22
|
+
| <a id="workbook-session-id"></a> `workbook-session-id?` | [`WorkbookSessionId`](WorkbookSession.md#workbooksessionid) | [src/models/Http.ts:13](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/Http.ts#L13) |
|
|
23
23
|
|
|
24
24
|
***
|
|
25
25
|
|
|
@@ -27,7 +27,7 @@ HTTP headers used in requests and responses.
|
|
|
27
27
|
|
|
28
28
|
> **HttpMethod** = `"GET"` \| `"POST"` \| `"PUT"` \| `"PATCH"` \| `"DELETE"`
|
|
29
29
|
|
|
30
|
-
Defined in: [src/models/Http.ts:
|
|
30
|
+
Defined in: [src/models/Http.ts:18](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/Http.ts#L18)
|
|
31
31
|
|
|
32
32
|
HTTP methods used in requests.
|
|
33
33
|
|
|
@@ -37,7 +37,7 @@ HTTP methods used in requests.
|
|
|
37
37
|
|
|
38
38
|
> **HttpPath** = `string` & `object`
|
|
39
39
|
|
|
40
|
-
Defined in: [src/models/Http.ts:
|
|
40
|
+
Defined in: [src/models/Http.ts:21](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/Http.ts#L21)
|
|
41
41
|
|
|
42
42
|
HTTP path used in requests
|
|
43
43
|
|
|
@@ -53,7 +53,7 @@ HTTP path used in requests
|
|
|
53
53
|
|
|
54
54
|
> **HttpProxy** = `string` & `object`
|
|
55
55
|
|
|
56
|
-
Defined in: [src/models/Http.ts:
|
|
56
|
+
Defined in: [src/models/Http.ts:26](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/Http.ts#L26)
|
|
57
57
|
|
|
58
58
|
HTTP proxy used to route requests
|
|
59
59
|
|
package/docs/api/Iteration.md
CHANGED
|
@@ -8,7 +8,7 @@ Utilities for iterating over AsyncIterables.
|
|
|
8
8
|
|
|
9
9
|
### iterateToArray()
|
|
10
10
|
|
|
11
|
-
> **iterateToArray**\<`T`\>(`iterable`): [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<`
|
|
11
|
+
> **iterateToArray**\<`T`, `U`\>(`iterable`, `converter?`): [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<`U`[]\>
|
|
12
12
|
|
|
13
13
|
Defined in: [src/services/iteration.ts:12](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/services/iteration.ts#L12)
|
|
14
14
|
|
|
@@ -16,18 +16,20 @@ Iterate over an AsyncIterable and collect all items into an array.
|
|
|
16
16
|
|
|
17
17
|
#### Type Parameters
|
|
18
18
|
|
|
19
|
-
| Type Parameter |
|
|
20
|
-
| ------ |
|
|
21
|
-
| `T` |
|
|
19
|
+
| Type Parameter | Default type |
|
|
20
|
+
| ------ | ------ |
|
|
21
|
+
| `T` | - |
|
|
22
|
+
| `U` | `T` |
|
|
22
23
|
|
|
23
24
|
#### Parameters
|
|
24
25
|
|
|
25
26
|
| Parameter | Type | Description |
|
|
26
27
|
| ------ | ------ | ------ |
|
|
27
28
|
| `iterable` | `AsyncIterable`\<`T`\> | |
|
|
29
|
+
| `converter?` | (`item`) => `U` | - |
|
|
28
30
|
|
|
29
31
|
#### Returns
|
|
30
32
|
|
|
31
|
-
[`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<`
|
|
33
|
+
[`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<`U`[]\>
|
|
32
34
|
|
|
33
35
|
Array of items collected from the iterable.
|
package/docs/api/Site-1.md
CHANGED
|
@@ -10,7 +10,7 @@ Pointers to a site.
|
|
|
10
10
|
|
|
11
11
|
> **SiteId** = `string` & `object`
|
|
12
12
|
|
|
13
|
-
Defined in: [src/models/Site.ts:
|
|
13
|
+
Defined in: [src/models/Site.ts:12](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/Site.ts#L12)
|
|
14
14
|
|
|
15
15
|
Identifier for a site.
|
|
16
16
|
|
|
@@ -26,7 +26,7 @@ Identifier for a site.
|
|
|
26
26
|
|
|
27
27
|
> **SiteName** = `string` & `object`
|
|
28
28
|
|
|
29
|
-
Defined in: [src/models/Site.ts:
|
|
29
|
+
Defined in: [src/models/Site.ts:19](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/Site.ts#L19)
|
|
30
30
|
|
|
31
31
|
Name of a site.
|
|
32
32
|
|
|
@@ -42,7 +42,7 @@ Name of a site.
|
|
|
42
42
|
|
|
43
43
|
> **SiteRef** = `object`
|
|
44
44
|
|
|
45
|
-
Defined in: [src/models/Site.ts:
|
|
45
|
+
Defined in: [src/models/Site.ts:26](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/Site.ts#L26)
|
|
46
46
|
|
|
47
47
|
Reference to a site.
|
|
48
48
|
|
|
@@ -50,5 +50,5 @@ Reference to a site.
|
|
|
50
50
|
|
|
51
51
|
| Property | Type | Defined in |
|
|
52
52
|
| ------ | ------ | ------ |
|
|
53
|
-
| <a id="context"></a> `context` | [`Context`](Context-1.md#context) | [src/models/Site.ts:
|
|
54
|
-
| <a id="siteid-1"></a> `siteId` | [`SiteId`](#siteid) | [src/models/Site.ts:
|
|
53
|
+
| <a id="context"></a> `context` | [`Context`](Context-1.md#context) | [src/models/Site.ts:27](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/Site.ts#L27) |
|
|
54
|
+
| <a id="siteid-1"></a> `siteId` | [`SiteId`](#siteid) | [src/models/Site.ts:28](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/Site.ts#L28) |
|
package/docs/api/Workbook.md
CHANGED
|
@@ -10,7 +10,7 @@ Pointers to a workbook.
|
|
|
10
10
|
|
|
11
11
|
> **WorkbookRef** = [`DriveItemRef`](DriveItem-1.md#driveitemref) & `object`
|
|
12
12
|
|
|
13
|
-
Defined in: [src/models/Workbook.ts:
|
|
13
|
+
Defined in: [src/models/Workbook.ts:13](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/models/Workbook.ts#L13)
|
|
14
14
|
|
|
15
15
|
Reference to a workbook.
|
|
16
16
|
|