microsoft-graph 2.34.1 → 2.36.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/.vscode/settings.json +8 -1
- package/dist/cjs/errors/BadRequestError.d.ts +9 -0
- package/dist/cjs/errors/BadRequestError.d.ts.map +1 -0
- package/dist/cjs/errors/BadRequestError.js +14 -0
- package/dist/cjs/errors/BandwidthLimitExceededError.d.ts +9 -0
- package/dist/cjs/errors/BandwidthLimitExceededError.d.ts.map +1 -0
- package/dist/cjs/errors/BandwidthLimitExceededError.js +14 -0
- package/dist/cjs/errors/ConflictError.d.ts +10 -0
- package/dist/cjs/errors/ConflictError.d.ts.map +1 -0
- package/dist/cjs/errors/ConflictError.js +15 -0
- package/dist/cjs/errors/ForbiddenError.d.ts +11 -0
- package/dist/cjs/errors/ForbiddenError.d.ts.map +1 -0
- package/dist/cjs/errors/ForbiddenError.js +16 -0
- package/dist/cjs/errors/GatewayTimeoutError.d.ts +9 -0
- package/dist/cjs/errors/GatewayTimeoutError.d.ts.map +1 -0
- package/dist/cjs/errors/GatewayTimeoutError.js +14 -0
- package/dist/cjs/errors/GoneError.d.ts +9 -0
- package/dist/cjs/errors/GoneError.d.ts.map +1 -0
- package/dist/cjs/errors/GoneError.js +14 -0
- package/dist/cjs/errors/InsufficientStorageError.d.ts +9 -0
- package/dist/cjs/errors/InsufficientStorageError.d.ts.map +1 -0
- package/dist/cjs/errors/InsufficientStorageError.js +14 -0
- package/dist/cjs/errors/InternalServerError.d.ts +9 -0
- package/dist/cjs/errors/InternalServerError.d.ts.map +1 -0
- package/dist/cjs/errors/InternalServerError.js +14 -0
- package/dist/cjs/errors/LengthRequiredError.d.ts +9 -0
- package/dist/cjs/errors/LengthRequiredError.d.ts.map +1 -0
- package/dist/cjs/errors/LengthRequiredError.js +14 -0
- package/dist/cjs/errors/LockedError.d.ts +9 -0
- package/dist/cjs/errors/LockedError.d.ts.map +1 -0
- package/dist/cjs/errors/LockedError.js +14 -0
- package/dist/cjs/errors/MethodNotAllowedError.d.ts +9 -0
- package/dist/cjs/errors/MethodNotAllowedError.d.ts.map +1 -0
- package/dist/cjs/errors/MethodNotAllowedError.js +14 -0
- package/dist/cjs/errors/NotAcceptableError.d.ts +9 -0
- package/dist/cjs/errors/NotAcceptableError.d.ts.map +1 -0
- package/dist/cjs/errors/NotAcceptableError.js +14 -0
- package/dist/cjs/errors/PaymentRequiredError.d.ts +9 -0
- package/dist/cjs/errors/PaymentRequiredError.d.ts.map +1 -0
- package/dist/cjs/errors/PaymentRequiredError.js +14 -0
- package/dist/cjs/errors/PreconditionFailedError.d.ts +9 -0
- package/dist/cjs/errors/PreconditionFailedError.d.ts.map +1 -0
- package/dist/cjs/errors/PreconditionFailedError.js +14 -0
- package/dist/cjs/errors/RequestEntityTooLargeError.d.ts +9 -0
- package/dist/cjs/errors/RequestEntityTooLargeError.d.ts.map +1 -0
- package/dist/cjs/errors/RequestEntityTooLargeError.js +14 -0
- package/dist/cjs/errors/RequestFailedError.d.ts +1 -2
- package/dist/cjs/errors/RequestFailedError.d.ts.map +1 -1
- package/dist/cjs/errors/RequestFailedError.js +1 -8
- package/dist/cjs/errors/RequestedRangeNotSatisfiableError.d.ts +9 -0
- package/dist/cjs/errors/RequestedRangeNotSatisfiableError.d.ts.map +1 -0
- package/dist/cjs/errors/RequestedRangeNotSatisfiableError.js +14 -0
- package/dist/cjs/errors/ServiceUnavailableError.d.ts +9 -0
- package/dist/cjs/errors/ServiceUnavailableError.d.ts.map +1 -0
- package/dist/cjs/errors/ServiceUnavailableError.js +14 -0
- package/dist/cjs/errors/TooManyRequestsError.d.ts +9 -0
- package/dist/cjs/errors/TooManyRequestsError.d.ts.map +1 -0
- package/dist/cjs/errors/TooManyRequestsError.js +14 -0
- package/dist/cjs/errors/UnauthorizedError.d.ts +9 -0
- package/dist/cjs/errors/UnauthorizedError.d.ts.map +1 -0
- package/dist/cjs/errors/UnauthorizedError.js +14 -0
- package/dist/cjs/errors/UnprocessableEntityError.d.ts +9 -0
- package/dist/cjs/errors/UnprocessableEntityError.d.ts.map +1 -0
- package/dist/cjs/errors/UnprocessableEntityError.js +14 -0
- package/dist/cjs/errors/UnsupportedMediaTypeError.d.ts +9 -0
- package/dist/cjs/errors/UnsupportedMediaTypeError.d.ts.map +1 -0
- package/dist/cjs/errors/UnsupportedMediaTypeError.js +14 -0
- package/dist/cjs/operations/driveItem/getDriveItemByPath.d.ts.map +1 -1
- package/dist/cjs/operations/driveItem/getDriveItemByPath.js +7 -0
- package/dist/cjs/operations/driveItem/getDriveItemContent.js +1 -1
- package/dist/cjs/operations/driveItem/streamDriveItemContent.d.ts.map +1 -1
- package/dist/cjs/operations/driveItem/streamDriveItemContent.js +4 -0
- package/dist/cjs/services/drive.d.ts +0 -2
- package/dist/cjs/services/drive.d.ts.map +1 -1
- package/dist/cjs/services/drive.js +3 -8
- package/dist/cjs/services/httpStatus.d.ts +130 -3
- package/dist/cjs/services/httpStatus.d.ts.map +1 -1
- package/dist/cjs/services/httpStatus.js +206 -6
- package/dist/cjs/services/objectMapping.d.ts +100 -0
- package/dist/cjs/services/objectMapping.d.ts.map +1 -0
- package/dist/cjs/services/objectMapping.js +143 -0
- package/dist/cjs/services/operationInvoker.d.ts +20 -3
- package/dist/cjs/services/operationInvoker.d.ts.map +1 -1
- package/dist/cjs/services/operationInvoker.js +192 -57
- package/dist/cjs/tasks/insertWorkbookRangeRow.d.ts +2 -2
- package/dist/cjs/tasks/insertWorkbookRangeRow.js +2 -2
- package/dist/cjs/tasks/insertWorkbookRangeRows.d.ts +3 -3
- package/dist/cjs/tasks/insertWorkbookRangeRows.js +3 -3
- package/dist/cjs/tasks/iterateWorkbookRangeRows.d.ts +1 -1
- package/dist/cjs/tasks/iterateWorkbookRangeRows.js +1 -1
- package/dist/cjs/tasks/readWorkbookRangeFirstRow.d.ts +2 -2
- package/dist/cjs/tasks/readWorkbookRangeFirstRow.js +2 -2
- package/dist/cjs/tasks/readWorkbookRangeRows.d.ts +2 -2
- package/dist/cjs/tasks/readWorkbookRangeRows.js +2 -2
- package/dist/cjs/tasks/updateWorkbookRangeFirstRow.d.ts +3 -3
- package/dist/cjs/tasks/updateWorkbookRangeFirstRow.js +3 -3
- package/dist/cjs/tasks/updateWorkbookRangeRows.d.ts +15 -6
- package/dist/cjs/tasks/updateWorkbookRangeRows.d.ts.map +1 -1
- package/dist/cjs/tasks/updateWorkbookRangeRows.js +16 -7
- package/dist/esm/errors/BadRequestError.d.ts +9 -0
- package/dist/esm/errors/BadRequestError.d.ts.map +1 -0
- package/dist/esm/errors/BadRequestError.js +11 -0
- package/dist/esm/errors/BandwidthLimitExceededError.d.ts +9 -0
- package/dist/esm/errors/BandwidthLimitExceededError.d.ts.map +1 -0
- package/dist/esm/errors/BandwidthLimitExceededError.js +11 -0
- package/dist/esm/errors/ConflictError.d.ts +10 -0
- package/dist/esm/errors/ConflictError.d.ts.map +1 -0
- package/dist/esm/errors/ConflictError.js +12 -0
- package/dist/esm/errors/ForbiddenError.d.ts +11 -0
- package/dist/esm/errors/ForbiddenError.d.ts.map +1 -0
- package/dist/esm/errors/ForbiddenError.js +13 -0
- package/dist/esm/errors/GatewayTimeoutError.d.ts +9 -0
- package/dist/esm/errors/GatewayTimeoutError.d.ts.map +1 -0
- package/dist/esm/errors/GatewayTimeoutError.js +11 -0
- package/dist/esm/errors/GoneError.d.ts +9 -0
- package/dist/esm/errors/GoneError.d.ts.map +1 -0
- package/dist/esm/errors/GoneError.js +11 -0
- package/dist/esm/errors/InsufficientStorageError.d.ts +9 -0
- package/dist/esm/errors/InsufficientStorageError.d.ts.map +1 -0
- package/dist/esm/errors/InsufficientStorageError.js +11 -0
- package/dist/esm/errors/InternalServerError.d.ts +9 -0
- package/dist/esm/errors/InternalServerError.d.ts.map +1 -0
- package/dist/esm/errors/InternalServerError.js +11 -0
- package/dist/esm/errors/LengthRequiredError.d.ts +9 -0
- package/dist/esm/errors/LengthRequiredError.d.ts.map +1 -0
- package/dist/esm/errors/LengthRequiredError.js +11 -0
- package/dist/esm/errors/LockedError.d.ts +9 -0
- package/dist/esm/errors/LockedError.d.ts.map +1 -0
- package/dist/esm/errors/LockedError.js +11 -0
- package/dist/esm/errors/MethodNotAllowedError.d.ts +9 -0
- package/dist/esm/errors/MethodNotAllowedError.d.ts.map +1 -0
- package/dist/esm/errors/MethodNotAllowedError.js +11 -0
- package/dist/esm/errors/NotAcceptableError.d.ts +9 -0
- package/dist/esm/errors/NotAcceptableError.d.ts.map +1 -0
- package/dist/esm/errors/NotAcceptableError.js +11 -0
- package/dist/esm/errors/PaymentRequiredError.d.ts +9 -0
- package/dist/esm/errors/PaymentRequiredError.d.ts.map +1 -0
- package/dist/esm/errors/PaymentRequiredError.js +11 -0
- package/dist/esm/errors/PreconditionFailedError.d.ts +9 -0
- package/dist/esm/errors/PreconditionFailedError.d.ts.map +1 -0
- package/dist/esm/errors/PreconditionFailedError.js +11 -0
- package/dist/esm/errors/RequestEntityTooLargeError.d.ts +9 -0
- package/dist/esm/errors/RequestEntityTooLargeError.d.ts.map +1 -0
- package/dist/esm/errors/RequestEntityTooLargeError.js +11 -0
- package/dist/esm/errors/RequestFailedError.d.ts +1 -2
- package/dist/esm/errors/RequestFailedError.d.ts.map +1 -1
- package/dist/esm/errors/RequestFailedError.js +1 -8
- package/dist/esm/errors/RequestedRangeNotSatisfiableError.d.ts +9 -0
- package/dist/esm/errors/RequestedRangeNotSatisfiableError.d.ts.map +1 -0
- package/dist/esm/errors/RequestedRangeNotSatisfiableError.js +11 -0
- package/dist/esm/errors/ServiceUnavailableError.d.ts +9 -0
- package/dist/esm/errors/ServiceUnavailableError.d.ts.map +1 -0
- package/dist/esm/errors/ServiceUnavailableError.js +11 -0
- package/dist/esm/errors/TooManyRequestsError.d.ts +9 -0
- package/dist/esm/errors/TooManyRequestsError.d.ts.map +1 -0
- package/dist/esm/errors/TooManyRequestsError.js +11 -0
- package/dist/esm/errors/UnauthorizedError.d.ts +9 -0
- package/dist/esm/errors/UnauthorizedError.d.ts.map +1 -0
- package/dist/esm/errors/UnauthorizedError.js +11 -0
- package/dist/esm/errors/UnprocessableEntityError.d.ts +9 -0
- package/dist/esm/errors/UnprocessableEntityError.d.ts.map +1 -0
- package/dist/esm/errors/UnprocessableEntityError.js +11 -0
- package/dist/esm/errors/UnsupportedMediaTypeError.d.ts +9 -0
- package/dist/esm/errors/UnsupportedMediaTypeError.d.ts.map +1 -0
- package/dist/esm/errors/UnsupportedMediaTypeError.js +11 -0
- package/dist/esm/operations/driveItem/getDriveItemByPath.d.ts.map +1 -1
- package/dist/esm/operations/driveItem/getDriveItemByPath.js +4 -0
- package/dist/esm/operations/driveItem/getDriveItemContent.js +2 -2
- package/dist/esm/operations/driveItem/streamDriveItemContent.d.ts.map +1 -1
- package/dist/esm/operations/driveItem/streamDriveItemContent.js +5 -1
- package/dist/esm/services/drive.d.ts +0 -2
- package/dist/esm/services/drive.d.ts.map +1 -1
- package/dist/esm/services/drive.js +4 -9
- package/dist/esm/services/httpStatus.d.ts +130 -3
- package/dist/esm/services/httpStatus.d.ts.map +1 -1
- package/dist/esm/services/httpStatus.js +182 -3
- package/dist/esm/services/objectMapping.d.ts +100 -0
- package/dist/esm/services/objectMapping.d.ts.map +1 -0
- package/dist/esm/services/objectMapping.js +132 -0
- package/dist/esm/services/operationInvoker.d.ts +20 -3
- package/dist/esm/services/operationInvoker.d.ts.map +1 -1
- package/dist/esm/services/operationInvoker.js +192 -58
- package/dist/esm/tasks/insertWorkbookRangeRow.d.ts +2 -2
- package/dist/esm/tasks/insertWorkbookRangeRow.js +2 -2
- package/dist/esm/tasks/insertWorkbookRangeRows.d.ts +3 -3
- package/dist/esm/tasks/insertWorkbookRangeRows.js +3 -3
- package/dist/esm/tasks/iterateWorkbookRangeRows.d.ts +1 -1
- package/dist/esm/tasks/iterateWorkbookRangeRows.js +1 -1
- package/dist/esm/tasks/readWorkbookRangeFirstRow.d.ts +2 -2
- package/dist/esm/tasks/readWorkbookRangeFirstRow.js +2 -2
- package/dist/esm/tasks/readWorkbookRangeRows.d.ts +2 -2
- package/dist/esm/tasks/readWorkbookRangeRows.js +2 -2
- package/dist/esm/tasks/updateWorkbookRangeFirstRow.d.ts +3 -3
- package/dist/esm/tasks/updateWorkbookRangeFirstRow.js +3 -3
- package/dist/esm/tasks/updateWorkbookRangeRows.d.ts +15 -6
- package/dist/esm/tasks/updateWorkbookRangeRows.d.ts.map +1 -1
- package/dist/esm/tasks/updateWorkbookRangeRows.js +16 -7
- package/docs/api/BadRequestError.md +191 -0
- package/docs/api/BandwidthLimitExceededError.md +191 -0
- package/docs/api/ConflictError.md +195 -0
- package/docs/api/ForbiddenError.md +193 -0
- package/docs/api/GatewayTimeoutError.md +191 -0
- package/docs/api/GoneError.md +191 -0
- package/docs/api/InsufficientStorageError.md +191 -0
- package/docs/api/InternalServerError.md +191 -0
- package/docs/api/LengthRequiredError.md +191 -0
- package/docs/api/LockedError.md +191 -0
- package/docs/api/MethodNotAllowedError.md +191 -0
- package/docs/api/NotAcceptableError.md +191 -0
- package/docs/api/PaymentRequiredError.md +191 -0
- package/docs/api/PreconditionFailedError.md +191 -0
- package/docs/api/README.md +30 -10
- package/docs/api/RequestEntityTooLargeError.md +191 -0
- package/docs/api/RequestFailedError.md +1 -19
- package/docs/api/RequestedRangeNotSatisfiableError.md +191 -0
- package/docs/api/ServiceUnavailableError.md +191 -0
- package/docs/api/TooManyRequestsError.md +191 -0
- package/docs/api/UnauthorizedError.md +191 -0
- package/docs/api/UnprocessableEntityError.md +191 -0
- package/docs/api/UnsupportedMediaTypeError.md +191 -0
- package/docs/api/drive.md +20 -0
- package/docs/api/getDriveItemByPath.md +1 -1
- package/docs/api/httpStatus.md +475 -12
- package/docs/api/{insertRow.md → insertWorkbookRangeRow.md} +3 -3
- package/docs/api/{insertRows.md → insertWorkbookRangeRows.md} +5 -5
- package/docs/api/{iterateRows.md → iterateWorkbookRangeRows.md} +2 -2
- package/docs/api/objectMapping.md +225 -0
- package/docs/api/operationInvoker.md +50 -27
- package/docs/api/{readFirstRow.md → readWorkbookRangeFirstRow.md} +3 -3
- package/docs/api/{readRows.md → readWorkbookRangeRows.md} +4 -4
- package/docs/api/streamDriveItemContent.md +1 -1
- package/docs/api/{updateFirstRow.md → updateWorkbookRangeFirstRow.md} +4 -4
- package/docs/api/{updateRows.md → updateWorkbookRangeRows.md} +19 -10
- package/docs/api/writeWorkbookRows.md +1 -1
- package/package.json +551 -51
- package/dist/cjs/models/DataSource.d.ts +0 -49
- package/dist/cjs/models/DataSource.d.ts.map +0 -1
- package/dist/cjs/models/DataSource.js +0 -8
- package/dist/cjs/services/dataSource.d.ts +0 -69
- package/dist/cjs/services/dataSource.d.ts.map +0 -1
- package/dist/cjs/services/dataSource.js +0 -193
- package/dist/esm/models/DataSource.d.ts +0 -49
- package/dist/esm/models/DataSource.d.ts.map +0 -1
- package/dist/esm/models/DataSource.js +0 -7
- package/dist/esm/services/dataSource.d.ts +0 -69
- package/dist/esm/services/dataSource.d.ts.map +0 -1
- package/dist/esm/services/dataSource.js +0 -182
- package/docs/api/DataSource-1.md +0 -191
- package/docs/api/dataSource.md +0 -204
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
[Microsoft Graph SDK](README.md) / objectMapping
|
|
2
|
+
|
|
3
|
+
# objectMapping
|
|
4
|
+
|
|
5
|
+
Automated conversion of rows to objects and vice versa based on defined mapping rules.
|
|
6
|
+
|
|
7
|
+
## Type Aliases
|
|
8
|
+
|
|
9
|
+
### ObjectMapping\<T\>
|
|
10
|
+
|
|
11
|
+
> **ObjectMapping**\<`T`\> = `{ [K in keyof T]-?: { columnPattern: RegExp; decode?: (cell: Cell) => T[K]; encode?: (prop: T[K]) => Cell } }`
|
|
12
|
+
|
|
13
|
+
Defined in: [src/services/objectMapping.ts:16](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/services/objectMapping.ts#L16)
|
|
14
|
+
|
|
15
|
+
Defines rules for mapping between spreadsheet rows and object properties.
|
|
16
|
+
|
|
17
|
+
#### Type Parameters
|
|
18
|
+
|
|
19
|
+
| Type Parameter | Description |
|
|
20
|
+
| ------ | ------ |
|
|
21
|
+
| `T` | Object type to map to/from. |
|
|
22
|
+
|
|
23
|
+
***
|
|
24
|
+
|
|
25
|
+
### ResolvedObjectMapping\<T\>
|
|
26
|
+
|
|
27
|
+
> **ResolvedObjectMapping**\<`T`\> = `{ [K in keyof T]-?: { columnOffset: ColumnOffset; decode: (cell: Cell) => T[K]; encode: (prop: T[K]) => Cell } }`
|
|
28
|
+
|
|
29
|
+
Defined in: [src/services/objectMapping.ts:50](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/services/objectMapping.ts#L50)
|
|
30
|
+
|
|
31
|
+
Resolved mapping from object properties to column offsets and encode/decode functions.
|
|
32
|
+
|
|
33
|
+
#### Type Parameters
|
|
34
|
+
|
|
35
|
+
| Type Parameter | Description |
|
|
36
|
+
| ------ | ------ |
|
|
37
|
+
| `T` | Object type being mapped. |
|
|
38
|
+
|
|
39
|
+
## Functions
|
|
40
|
+
|
|
41
|
+
### createObjectMapping()
|
|
42
|
+
|
|
43
|
+
> **createObjectMapping**\<`T`\>(`headerRow`, `rules`): [`ResolvedObjectMapping`](#resolvedobjectmapping)\<`T`\>
|
|
44
|
+
|
|
45
|
+
Defined in: [src/services/objectMapping.ts:86](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/services/objectMapping.ts#L86)
|
|
46
|
+
|
|
47
|
+
Creates a mapping from a header row to object properties based on provided rules.
|
|
48
|
+
|
|
49
|
+
#### Type Parameters
|
|
50
|
+
|
|
51
|
+
| Type Parameter | Description |
|
|
52
|
+
| ------ | ------ |
|
|
53
|
+
| `T` | The object type being mapped. |
|
|
54
|
+
|
|
55
|
+
#### Parameters
|
|
56
|
+
|
|
57
|
+
| Parameter | Type | Description |
|
|
58
|
+
| ------ | ------ | ------ |
|
|
59
|
+
| `headerRow` | ([`Cell`](Cell.md#cell) \| [`ColumnName`](Column.md#columnname))[] | The header row, used to determine column offsets. |
|
|
60
|
+
| `rules` | [`ObjectMapping`](#objectmapping)\<`T`\> | The mapping rules for converting cells to object properties. |
|
|
61
|
+
|
|
62
|
+
#### Returns
|
|
63
|
+
|
|
64
|
+
[`ResolvedObjectMapping`](#resolvedobjectmapping)\<`T`\>
|
|
65
|
+
|
|
66
|
+
The resolved mapping for use in row/object conversion.
|
|
67
|
+
|
|
68
|
+
#### Throws
|
|
69
|
+
|
|
70
|
+
If a column matching a pattern is not found in the header row.
|
|
71
|
+
|
|
72
|
+
***
|
|
73
|
+
|
|
74
|
+
### objectsToRows()
|
|
75
|
+
|
|
76
|
+
> **objectsToRows**\<`T`\>(`objects`, `mapping`): `AsyncIterable`\<[`Partial`](https://www.typescriptlang.org/docs/handbook/utility-types.html#partialtype)\<[`Cell`](Cell.md#cell)\>[]\>
|
|
77
|
+
|
|
78
|
+
Defined in: [src/services/objectMapping.ts:146](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/services/objectMapping.ts#L146)
|
|
79
|
+
|
|
80
|
+
Converts objects to spreadsheet rows using a provided mapping.
|
|
81
|
+
|
|
82
|
+
#### Type Parameters
|
|
83
|
+
|
|
84
|
+
| Type Parameter | Description |
|
|
85
|
+
| ------ | ------ |
|
|
86
|
+
| `T` | The object type to convert. |
|
|
87
|
+
|
|
88
|
+
#### Parameters
|
|
89
|
+
|
|
90
|
+
| Parameter | Type | Description |
|
|
91
|
+
| ------ | ------ | ------ |
|
|
92
|
+
| `objects` | [`Iterable`](https://www.typescriptlang.org/docs/handbook/iterators-and-generators.html#iterable-interface)\<`T`, `any`, `any`\> \| `AsyncIterable`\<`T`, `any`, `any`\> | Iterable or async iterable of objects. |
|
|
93
|
+
| `mapping` | [`ResolvedObjectMapping`](#resolvedobjectmapping)\<`T`\> | The resolved mapping for object/row conversion. |
|
|
94
|
+
|
|
95
|
+
#### Returns
|
|
96
|
+
|
|
97
|
+
`AsyncIterable`\<[`Partial`](https://www.typescriptlang.org/docs/handbook/utility-types.html#partialtype)\<[`Cell`](Cell.md#cell)\>[]\>
|
|
98
|
+
|
|
99
|
+
#### Yields
|
|
100
|
+
|
|
101
|
+
Arrays of partial cells, one for each object.
|
|
102
|
+
|
|
103
|
+
***
|
|
104
|
+
|
|
105
|
+
### objectToRow()
|
|
106
|
+
|
|
107
|
+
> **objectToRow**\<`T`\>(`record`, `mapper`): [`Partial`](https://www.typescriptlang.org/docs/handbook/utility-types.html#partialtype)\<[`Cell`](Cell.md#cell)\>[]
|
|
108
|
+
|
|
109
|
+
Defined in: [src/services/objectMapping.ts:184](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/services/objectMapping.ts#L184)
|
|
110
|
+
|
|
111
|
+
Converts an object to a row of cells using the provided mapping.
|
|
112
|
+
|
|
113
|
+
#### Type Parameters
|
|
114
|
+
|
|
115
|
+
| Type Parameter | Description |
|
|
116
|
+
| ------ | ------ |
|
|
117
|
+
| `T` | The object type to convert. |
|
|
118
|
+
|
|
119
|
+
#### Parameters
|
|
120
|
+
|
|
121
|
+
| Parameter | Type | Description |
|
|
122
|
+
| ------ | ------ | ------ |
|
|
123
|
+
| `record` | `T` | The object to convert. |
|
|
124
|
+
| `mapper` | [`ResolvedObjectMapping`](#resolvedobjectmapping)\<`T`\> | The resolved mapping for object/row conversion. |
|
|
125
|
+
|
|
126
|
+
#### Returns
|
|
127
|
+
|
|
128
|
+
[`Partial`](https://www.typescriptlang.org/docs/handbook/utility-types.html#partialtype)\<[`Cell`](Cell.md#cell)\>[]
|
|
129
|
+
|
|
130
|
+
An array of partial cells representing the row.
|
|
131
|
+
|
|
132
|
+
***
|
|
133
|
+
|
|
134
|
+
### rowsToObjects()
|
|
135
|
+
|
|
136
|
+
> **rowsToObjects**\<`T`\>(`rows`, `mapping`): `AsyncIterable`\<`T`\>
|
|
137
|
+
|
|
138
|
+
Defined in: [src/services/objectMapping.ts:133](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/services/objectMapping.ts#L133)
|
|
139
|
+
|
|
140
|
+
Converts spreadsheet rows to objects using a provided mapping.
|
|
141
|
+
|
|
142
|
+
#### Type Parameters
|
|
143
|
+
|
|
144
|
+
| Type Parameter | Description |
|
|
145
|
+
| ------ | ------ |
|
|
146
|
+
| `T` | The object type to yield. |
|
|
147
|
+
|
|
148
|
+
#### Parameters
|
|
149
|
+
|
|
150
|
+
| Parameter | Type | Description |
|
|
151
|
+
| ------ | ------ | ------ |
|
|
152
|
+
| `rows` | [`Iterable`](https://www.typescriptlang.org/docs/handbook/iterators-and-generators.html#iterable-interface)\<[`Cell`](Cell.md#cell)[], `any`, `any`\> \| `AsyncIterable`\<[`Cell`](Cell.md#cell)[], `any`, `any`\> | Iterable or async iterable of cell arrays (rows). |
|
|
153
|
+
| `mapping` | [`ResolvedObjectMapping`](#resolvedobjectmapping)\<`T`\> | The resolved mapping for row/object conversion. |
|
|
154
|
+
|
|
155
|
+
#### Returns
|
|
156
|
+
|
|
157
|
+
`AsyncIterable`\<`T`\>
|
|
158
|
+
|
|
159
|
+
#### Yields
|
|
160
|
+
|
|
161
|
+
Objects of type T, one for each row.
|
|
162
|
+
|
|
163
|
+
***
|
|
164
|
+
|
|
165
|
+
### rowsToObjectsWithHeader()
|
|
166
|
+
|
|
167
|
+
> **rowsToObjectsWithHeader**\<`T`\>(`rows`, `rules`): `AsyncIterable`\<`T`\>
|
|
168
|
+
|
|
169
|
+
Defined in: [src/services/objectMapping.ts:65](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/services/objectMapping.ts#L65)
|
|
170
|
+
|
|
171
|
+
Converts spreadsheet rows to objects using the first row as a header.
|
|
172
|
+
|
|
173
|
+
#### Type Parameters
|
|
174
|
+
|
|
175
|
+
| Type Parameter | Description |
|
|
176
|
+
| ------ | ------ |
|
|
177
|
+
| `T` | The object type to yield. |
|
|
178
|
+
|
|
179
|
+
#### Parameters
|
|
180
|
+
|
|
181
|
+
| Parameter | Type | Description |
|
|
182
|
+
| ------ | ------ | ------ |
|
|
183
|
+
| `rows` | [`Iterable`](https://www.typescriptlang.org/docs/handbook/iterators-and-generators.html#iterable-interface)\<[`Cell`](Cell.md#cell)[], `any`, `any`\> \| `AsyncIterable`\<[`Cell`](Cell.md#cell)[], `any`, `any`\> | Iterable or async iterable of cell arrays (rows). |
|
|
184
|
+
| `rules` | [`ObjectMapping`](#objectmapping)\<`T`\> | Mapping rules for converting columns to object properties. |
|
|
185
|
+
|
|
186
|
+
#### Returns
|
|
187
|
+
|
|
188
|
+
`AsyncIterable`\<`T`\>
|
|
189
|
+
|
|
190
|
+
#### Yields
|
|
191
|
+
|
|
192
|
+
Objects of type T, one for each data row.
|
|
193
|
+
|
|
194
|
+
***
|
|
195
|
+
|
|
196
|
+
### rowToObject()
|
|
197
|
+
|
|
198
|
+
> **rowToObject**\<`T`\>(`cells`, `rules`): `T`
|
|
199
|
+
|
|
200
|
+
Defined in: [src/services/objectMapping.ts:160](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/services/objectMapping.ts#L160)
|
|
201
|
+
|
|
202
|
+
Converts a row of cells to an object using the provided mapping.
|
|
203
|
+
|
|
204
|
+
#### Type Parameters
|
|
205
|
+
|
|
206
|
+
| Type Parameter | Description |
|
|
207
|
+
| ------ | ------ |
|
|
208
|
+
| `T` | The object type to return. |
|
|
209
|
+
|
|
210
|
+
#### Parameters
|
|
211
|
+
|
|
212
|
+
| Parameter | Type | Description |
|
|
213
|
+
| ------ | ------ | ------ |
|
|
214
|
+
| `cells` | [`Cell`](Cell.md#cell)[] | The array of cells representing a row. |
|
|
215
|
+
| `rules` | [`ResolvedObjectMapping`](#resolvedobjectmapping)\<`T`\> | The resolved mapping for row/object conversion. |
|
|
216
|
+
|
|
217
|
+
#### Returns
|
|
218
|
+
|
|
219
|
+
`T`
|
|
220
|
+
|
|
221
|
+
The object of type T.
|
|
222
|
+
|
|
223
|
+
#### Throws
|
|
224
|
+
|
|
225
|
+
If a required column is missing in the row.
|
|
@@ -10,29 +10,29 @@ Invoke operations, potentially as parallel or sequential batches.
|
|
|
10
10
|
|
|
11
11
|
> **operation**\<`T`\>(`definition`): [`GraphOperation`](GraphOperation.md#graphoperation)\<`T`\>
|
|
12
12
|
|
|
13
|
-
Defined in: [src/services/operationInvoker.ts:
|
|
13
|
+
Defined in: [src/services/operationInvoker.ts:90](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/services/operationInvoker.ts#L90)
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
Defines a Graph operation.
|
|
16
|
+
|
|
17
|
+
Operations can be awaited to execute independently, or passed with others as arguments to [parallel](#parallel) or [sequential](#sequential) to execute as part of a batch.
|
|
16
18
|
|
|
17
19
|
#### Type Parameters
|
|
18
20
|
|
|
19
|
-
| Type Parameter |
|
|
20
|
-
| ------ |
|
|
21
|
-
| `T` |
|
|
21
|
+
| Type Parameter | Description |
|
|
22
|
+
| ------ | ------ |
|
|
23
|
+
| `T` | The response type of the operation. |
|
|
22
24
|
|
|
23
25
|
#### Parameters
|
|
24
26
|
|
|
25
|
-
| Parameter | Type |
|
|
26
|
-
| ------ | ------ |
|
|
27
|
-
| `definition` | [`GraphOperationDefinition`](GraphOperation.md#graphoperationdefinition)\<`T`\> |
|
|
27
|
+
| Parameter | Type | Description |
|
|
28
|
+
| ------ | ------ | ------ |
|
|
29
|
+
| `definition` | [`GraphOperationDefinition`](GraphOperation.md#graphoperationdefinition)\<`T`\> | Definition of the Graph operation. |
|
|
28
30
|
|
|
29
31
|
#### Returns
|
|
30
32
|
|
|
31
33
|
[`GraphOperation`](GraphOperation.md#graphoperation)\<`T`\>
|
|
32
34
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
Operations can be `await`d to execute independently, or passed with others as arguments to `parallel` or `sequential` to execute as part of a batch.
|
|
35
|
+
GraphOperation instance.
|
|
36
36
|
|
|
37
37
|
***
|
|
38
38
|
|
|
@@ -40,29 +40,29 @@ Operations can be `await`d to execute independently, or passed with others as ar
|
|
|
40
40
|
|
|
41
41
|
> **parallel**\<`T`\>(...`operations`): [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<[`OperationResponse`](GraphOperation.md#operationresponse)\<`T`\>\>
|
|
42
42
|
|
|
43
|
-
Defined in: [src/services/operationInvoker.ts:
|
|
43
|
+
Defined in: [src/services/operationInvoker.ts:109](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/services/operationInvoker.ts#L109)
|
|
44
44
|
|
|
45
45
|
Execute a batch of GraphAPI operations in parallel.
|
|
46
46
|
|
|
47
|
+
Provides the best performance for batch operations, however only useful if operations can logically be performed at the same time.
|
|
48
|
+
|
|
47
49
|
#### Type Parameters
|
|
48
50
|
|
|
49
|
-
| Type Parameter |
|
|
50
|
-
| ------ |
|
|
51
|
-
| `T` *extends* [`GraphOperation`](GraphOperation.md#graphoperation)\<`unknown`\>[] |
|
|
51
|
+
| Type Parameter | Description |
|
|
52
|
+
| ------ | ------ |
|
|
53
|
+
| `T` *extends* [`GraphOperation`](GraphOperation.md#graphoperation)\<`unknown`\>[] | Tuple of GraphOperation types. |
|
|
52
54
|
|
|
53
55
|
#### Parameters
|
|
54
56
|
|
|
55
|
-
| Parameter | Type |
|
|
56
|
-
| ------ | ------ |
|
|
57
|
-
| ...`operations` | `T` |
|
|
57
|
+
| Parameter | Type | Description |
|
|
58
|
+
| ------ | ------ | ------ |
|
|
59
|
+
| ...`operations` | `T` | Operations to execute in parallel. |
|
|
58
60
|
|
|
59
61
|
#### Returns
|
|
60
62
|
|
|
61
63
|
[`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<[`OperationResponse`](GraphOperation.md#operationresponse)\<`T`\>\>
|
|
62
64
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
Provides the best performance for batch operations, however only useful if operations can logically be performed at the same time.
|
|
65
|
+
The responses for each operation, in the same order.
|
|
66
66
|
|
|
67
67
|
***
|
|
68
68
|
|
|
@@ -70,22 +70,45 @@ Provides the best performance for batch operations, however only useful if opera
|
|
|
70
70
|
|
|
71
71
|
> **sequential**\<`T`\>(...`operations`): [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<[`OperationResponse`](GraphOperation.md#operationresponse)\<`T`\>\>
|
|
72
72
|
|
|
73
|
-
Defined in: [src/services/operationInvoker.ts:
|
|
73
|
+
Defined in: [src/services/operationInvoker.ts:124](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/services/operationInvoker.ts#L124)
|
|
74
74
|
|
|
75
75
|
Execute a batch of GraphAPI operations sequentially.
|
|
76
76
|
|
|
77
|
+
Each operation is dependent on the previous operation in the batch.
|
|
78
|
+
|
|
77
79
|
#### Type Parameters
|
|
78
80
|
|
|
79
|
-
| Type Parameter |
|
|
80
|
-
| ------ |
|
|
81
|
-
| `T` *extends* [`GraphOperation`](GraphOperation.md#graphoperation)\<`unknown`\>[] |
|
|
81
|
+
| Type Parameter | Description |
|
|
82
|
+
| ------ | ------ |
|
|
83
|
+
| `T` *extends* [`GraphOperation`](GraphOperation.md#graphoperation)\<`unknown`\>[] | Tuple of GraphOperation types. |
|
|
84
|
+
|
|
85
|
+
#### Parameters
|
|
86
|
+
|
|
87
|
+
| Parameter | Type | Description |
|
|
88
|
+
| ------ | ------ | ------ |
|
|
89
|
+
| ...`operations` | `T` | Operations to execute sequentially. |
|
|
90
|
+
|
|
91
|
+
#### Returns
|
|
92
|
+
|
|
93
|
+
[`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<[`OperationResponse`](GraphOperation.md#operationresponse)\<`T`\>\>
|
|
94
|
+
|
|
95
|
+
The responses for each operation, in the same order.
|
|
96
|
+
|
|
97
|
+
***
|
|
98
|
+
|
|
99
|
+
### throwException()
|
|
100
|
+
|
|
101
|
+
> **throwException**(`responseCode`, `message`): `never`
|
|
102
|
+
|
|
103
|
+
Defined in: [src/services/operationInvoker.ts:329](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/services/operationInvoker.ts#L329)
|
|
82
104
|
|
|
83
105
|
#### Parameters
|
|
84
106
|
|
|
85
107
|
| Parameter | Type |
|
|
86
108
|
| ------ | ------ |
|
|
87
|
-
|
|
|
109
|
+
| `responseCode` | `number` |
|
|
110
|
+
| `message` | `string` |
|
|
88
111
|
|
|
89
112
|
#### Returns
|
|
90
113
|
|
|
91
|
-
|
|
114
|
+
`never`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
[Microsoft Graph SDK](README.md) /
|
|
1
|
+
[Microsoft Graph SDK](README.md) / readWorkbookRangeFirstRow
|
|
2
2
|
|
|
3
|
-
#
|
|
3
|
+
# readWorkbookRangeFirstRow
|
|
4
4
|
|
|
5
5
|
**`Experimental`**
|
|
6
6
|
|
|
@@ -36,5 +36,5 @@ Particularly useful for reading header rows.
|
|
|
36
36
|
#### Example
|
|
37
37
|
|
|
38
38
|
```ts
|
|
39
|
-
const firstRow = await
|
|
39
|
+
const firstRow = await readWorkbookRangeFirstRow(rangeRef);
|
|
40
40
|
```
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
[Microsoft Graph SDK](README.md) /
|
|
1
|
+
[Microsoft Graph SDK](README.md) / readWorkbookRangeRows
|
|
2
2
|
|
|
3
|
-
#
|
|
3
|
+
# readWorkbookRangeRows
|
|
4
4
|
|
|
5
5
|
**`Experimental`**
|
|
6
6
|
|
|
@@ -31,10 +31,10 @@ A promise that resolves to an array of rows, each containing an array of cells.
|
|
|
31
31
|
|
|
32
32
|
#### Remarks
|
|
33
33
|
|
|
34
|
-
Where practical, prefer using [iterateWorkbookRangeRows](
|
|
34
|
+
Where practical, prefer using [iterateWorkbookRangeRows](iterateWorkbookRangeRows.md#iterateworkbookrangerows) for more efficient memory usage.
|
|
35
35
|
|
|
36
36
|
#### Example
|
|
37
37
|
|
|
38
38
|
```ts
|
|
39
|
-
const rows = await
|
|
39
|
+
const rows = await readWorkbookRangeRows(rangeRef);
|
|
40
40
|
```
|
|
@@ -10,7 +10,7 @@ Stream the content of a drive item as a Node.js readable stream.
|
|
|
10
10
|
|
|
11
11
|
> **streamDriveItemContent**(`itemRef`): [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<[`ReadableStream`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/4771e16937e188c0e0eca9749d208676f85fefb9/types/node/globals.d.ts#L201)\>
|
|
12
12
|
|
|
13
|
-
Defined in: [src/operations/driveItem/streamDriveItemContent.ts:
|
|
13
|
+
Defined in: [src/operations/driveItem/streamDriveItemContent.ts:21](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/operations/driveItem/streamDriveItemContent.ts#L21)
|
|
14
14
|
|
|
15
15
|
Stream the content of a drive item.
|
|
16
16
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
[Microsoft Graph SDK](README.md) /
|
|
1
|
+
[Microsoft Graph SDK](README.md) / updateWorkbookRangeFirstRow
|
|
2
2
|
|
|
3
|
-
#
|
|
3
|
+
# updateWorkbookRangeFirstRow
|
|
4
4
|
|
|
5
5
|
**`Experimental`**
|
|
6
6
|
|
|
@@ -35,10 +35,10 @@ Defined in: [src/tasks/updateWorkbookRangeFirstRow.ts:28](https://github.com/Fut
|
|
|
35
35
|
|
|
36
36
|
```ts
|
|
37
37
|
// Basic example:
|
|
38
|
-
await
|
|
38
|
+
await updateWorkbookRangeFirstRow(rangeRef, [{ value: 1 }, { value: 2 }]);
|
|
39
39
|
|
|
40
40
|
// Advanced example with cell formatting:
|
|
41
|
-
await
|
|
41
|
+
await updateWorkbookRangeFirstRow(rangeRef, [
|
|
42
42
|
{ value: "Column A", style: { alignment: { horizontal: "Right" }, font: { bold: true } } },
|
|
43
43
|
{ value: "Column B", style: { alignment: { horizontal: "Right" }, font: { bold: true } } }
|
|
44
44
|
]);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
[Microsoft Graph SDK](README.md) /
|
|
1
|
+
[Microsoft Graph SDK](README.md) / updateWorkbookRangeRows
|
|
2
2
|
|
|
3
|
-
#
|
|
3
|
+
# updateWorkbookRangeRows
|
|
4
4
|
|
|
5
5
|
**`Experimental`**
|
|
6
6
|
|
|
@@ -12,7 +12,7 @@ Update rows in a given workbook range.
|
|
|
12
12
|
|
|
13
13
|
> **updateWorkbookRangeRows**(`originRef`, `cells`, `maxCellsPerOperation`): [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<`void`\>
|
|
14
14
|
|
|
15
|
-
Defined in: [src/tasks/updateWorkbookRangeRows.ts:
|
|
15
|
+
Defined in: [src/tasks/updateWorkbookRangeRows.ts:54](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/tasks/updateWorkbookRangeRows.ts#L54)
|
|
16
16
|
|
|
17
17
|
**`Experimental`**
|
|
18
18
|
|
|
@@ -21,7 +21,7 @@ Defined in: [src/tasks/updateWorkbookRangeRows.ts:44](https://github.com/Future-
|
|
|
21
21
|
| Parameter | Type | Default value | Description |
|
|
22
22
|
| ------ | ------ | ------ | ------ |
|
|
23
23
|
| `originRef` | [`WorkbookRangeRef`](WorkbookRange-1.md#workbookrangeref) | `undefined` | Reference to the workbook range to update. Only the upper-left cell is used as an origin point. |
|
|
24
|
-
| `cells` |
|
|
24
|
+
| `cells` | `AsyncIterable`\<[`Partial`](https://www.typescriptlang.org/docs/handbook/utility-types.html#partialtype)\<[`Cell`](Cell.md#cell)\>[], `any`, `any`\> \| [`Iterable`](https://www.typescriptlang.org/docs/handbook/iterators-and-generators.html#iterable-interface)\<[`Partial`](https://www.typescriptlang.org/docs/handbook/utility-types.html#partialtype)\<[`Cell`](Cell.md#cell)\>[], `any`, `any`\> | `undefined` | Array of arrays of cells to update in the specified range. |
|
|
25
25
|
| `maxCellsPerOperation` | `null` \| `number` | `null` | Prescribe max cells to retrieve per operation. `null` automatically determines value. DO NOT SET EXCEPT FOR ADVANCED TUNING. |
|
|
26
26
|
|
|
27
27
|
#### Returns
|
|
@@ -36,16 +36,25 @@ Defined in: [src/tasks/updateWorkbookRangeRows.ts:44](https://github.com/Future-
|
|
|
36
36
|
|
|
37
37
|
```ts
|
|
38
38
|
// Basic example:
|
|
39
|
-
await
|
|
39
|
+
await updateWorkbookRangeRows(rangeRef, [
|
|
40
40
|
[{ value: 1 }, { value: 2 }],
|
|
41
41
|
[{ value: 3 }, { value: 4 }],
|
|
42
42
|
[{ value: 5 }, { value: 6 }],
|
|
43
43
|
]);
|
|
44
44
|
|
|
45
45
|
// Advanced example with cell formatting:
|
|
46
|
-
await
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
]
|
|
46
|
+
await updateWorkbookRangeRows(rangeRef, [
|
|
47
|
+
[
|
|
48
|
+
{ value: "Column A", alignment: { horizontal: "Right" }, font: { bold: true, color: "#ffffff" as Color }, fill: { color: "#000000" as Color } },
|
|
49
|
+
{ value: "Column B", alignment: { horizontal: "Right" }, font: { bold: true, color: "#ffffff" as Color }, fill: { color: "#000000" as Color } },
|
|
50
|
+
],
|
|
51
|
+
[
|
|
52
|
+
{ value: 1, format: accountingCellFormat },
|
|
53
|
+
{ value: "A" },
|
|
54
|
+
],
|
|
55
|
+
[
|
|
56
|
+
{ value: 2, format: accountingCellFormat },
|
|
57
|
+
{ value: "B" }],
|
|
58
|
+
],
|
|
59
|
+
);
|
|
51
60
|
```
|
|
@@ -19,7 +19,7 @@ Write rows to a workbook range.
|
|
|
19
19
|
| Parameter | Type | Default value | Description |
|
|
20
20
|
| ------ | ------ | ------ | ------ |
|
|
21
21
|
| `originRef` | [`WorkbookRangeRef`](WorkbookRange-1.md#workbookrangeref) | `undefined` | The reference to the workbook range where rows will be written. Only the upper-left is used as an origin point. |
|
|
22
|
-
| `rows` |
|
|
22
|
+
| `rows` | `AsyncIterable`\<[`Partial`](https://www.typescriptlang.org/docs/handbook/utility-types.html#partialtype)\<[`Cell`](Cell.md#cell)\>[], `any`, `any`\> \| [`Iterable`](https://www.typescriptlang.org/docs/handbook/iterators-and-generators.html#iterable-interface)\<[`Partial`](https://www.typescriptlang.org/docs/handbook/utility-types.html#partialtype)\<[`Cell`](Cell.md#cell)\>[], `any`, `any`\> | `undefined` | An iterable or async iterable of rows to write. Each row is an array of cells. |
|
|
23
23
|
| `overwriteMaxRowsPerChunk` | `null` \| `number` | `null` | Overwrite the number of rows per underlying request. DO NOT SET EXCEPT FOR ADVANCED TUNING. |
|
|
24
24
|
|
|
25
25
|
#### Returns
|