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.
Files changed (249) hide show
  1. package/.vscode/settings.json +8 -1
  2. package/dist/cjs/errors/BadRequestError.d.ts +9 -0
  3. package/dist/cjs/errors/BadRequestError.d.ts.map +1 -0
  4. package/dist/cjs/errors/BadRequestError.js +14 -0
  5. package/dist/cjs/errors/BandwidthLimitExceededError.d.ts +9 -0
  6. package/dist/cjs/errors/BandwidthLimitExceededError.d.ts.map +1 -0
  7. package/dist/cjs/errors/BandwidthLimitExceededError.js +14 -0
  8. package/dist/cjs/errors/ConflictError.d.ts +10 -0
  9. package/dist/cjs/errors/ConflictError.d.ts.map +1 -0
  10. package/dist/cjs/errors/ConflictError.js +15 -0
  11. package/dist/cjs/errors/ForbiddenError.d.ts +11 -0
  12. package/dist/cjs/errors/ForbiddenError.d.ts.map +1 -0
  13. package/dist/cjs/errors/ForbiddenError.js +16 -0
  14. package/dist/cjs/errors/GatewayTimeoutError.d.ts +9 -0
  15. package/dist/cjs/errors/GatewayTimeoutError.d.ts.map +1 -0
  16. package/dist/cjs/errors/GatewayTimeoutError.js +14 -0
  17. package/dist/cjs/errors/GoneError.d.ts +9 -0
  18. package/dist/cjs/errors/GoneError.d.ts.map +1 -0
  19. package/dist/cjs/errors/GoneError.js +14 -0
  20. package/dist/cjs/errors/InsufficientStorageError.d.ts +9 -0
  21. package/dist/cjs/errors/InsufficientStorageError.d.ts.map +1 -0
  22. package/dist/cjs/errors/InsufficientStorageError.js +14 -0
  23. package/dist/cjs/errors/InternalServerError.d.ts +9 -0
  24. package/dist/cjs/errors/InternalServerError.d.ts.map +1 -0
  25. package/dist/cjs/errors/InternalServerError.js +14 -0
  26. package/dist/cjs/errors/LengthRequiredError.d.ts +9 -0
  27. package/dist/cjs/errors/LengthRequiredError.d.ts.map +1 -0
  28. package/dist/cjs/errors/LengthRequiredError.js +14 -0
  29. package/dist/cjs/errors/LockedError.d.ts +9 -0
  30. package/dist/cjs/errors/LockedError.d.ts.map +1 -0
  31. package/dist/cjs/errors/LockedError.js +14 -0
  32. package/dist/cjs/errors/MethodNotAllowedError.d.ts +9 -0
  33. package/dist/cjs/errors/MethodNotAllowedError.d.ts.map +1 -0
  34. package/dist/cjs/errors/MethodNotAllowedError.js +14 -0
  35. package/dist/cjs/errors/NotAcceptableError.d.ts +9 -0
  36. package/dist/cjs/errors/NotAcceptableError.d.ts.map +1 -0
  37. package/dist/cjs/errors/NotAcceptableError.js +14 -0
  38. package/dist/cjs/errors/PaymentRequiredError.d.ts +9 -0
  39. package/dist/cjs/errors/PaymentRequiredError.d.ts.map +1 -0
  40. package/dist/cjs/errors/PaymentRequiredError.js +14 -0
  41. package/dist/cjs/errors/PreconditionFailedError.d.ts +9 -0
  42. package/dist/cjs/errors/PreconditionFailedError.d.ts.map +1 -0
  43. package/dist/cjs/errors/PreconditionFailedError.js +14 -0
  44. package/dist/cjs/errors/RequestEntityTooLargeError.d.ts +9 -0
  45. package/dist/cjs/errors/RequestEntityTooLargeError.d.ts.map +1 -0
  46. package/dist/cjs/errors/RequestEntityTooLargeError.js +14 -0
  47. package/dist/cjs/errors/RequestFailedError.d.ts +1 -2
  48. package/dist/cjs/errors/RequestFailedError.d.ts.map +1 -1
  49. package/dist/cjs/errors/RequestFailedError.js +1 -8
  50. package/dist/cjs/errors/RequestedRangeNotSatisfiableError.d.ts +9 -0
  51. package/dist/cjs/errors/RequestedRangeNotSatisfiableError.d.ts.map +1 -0
  52. package/dist/cjs/errors/RequestedRangeNotSatisfiableError.js +14 -0
  53. package/dist/cjs/errors/ServiceUnavailableError.d.ts +9 -0
  54. package/dist/cjs/errors/ServiceUnavailableError.d.ts.map +1 -0
  55. package/dist/cjs/errors/ServiceUnavailableError.js +14 -0
  56. package/dist/cjs/errors/TooManyRequestsError.d.ts +9 -0
  57. package/dist/cjs/errors/TooManyRequestsError.d.ts.map +1 -0
  58. package/dist/cjs/errors/TooManyRequestsError.js +14 -0
  59. package/dist/cjs/errors/UnauthorizedError.d.ts +9 -0
  60. package/dist/cjs/errors/UnauthorizedError.d.ts.map +1 -0
  61. package/dist/cjs/errors/UnauthorizedError.js +14 -0
  62. package/dist/cjs/errors/UnprocessableEntityError.d.ts +9 -0
  63. package/dist/cjs/errors/UnprocessableEntityError.d.ts.map +1 -0
  64. package/dist/cjs/errors/UnprocessableEntityError.js +14 -0
  65. package/dist/cjs/errors/UnsupportedMediaTypeError.d.ts +9 -0
  66. package/dist/cjs/errors/UnsupportedMediaTypeError.d.ts.map +1 -0
  67. package/dist/cjs/errors/UnsupportedMediaTypeError.js +14 -0
  68. package/dist/cjs/operations/driveItem/getDriveItemByPath.d.ts.map +1 -1
  69. package/dist/cjs/operations/driveItem/getDriveItemByPath.js +7 -0
  70. package/dist/cjs/operations/driveItem/getDriveItemContent.js +1 -1
  71. package/dist/cjs/operations/driveItem/streamDriveItemContent.d.ts.map +1 -1
  72. package/dist/cjs/operations/driveItem/streamDriveItemContent.js +4 -0
  73. package/dist/cjs/services/drive.d.ts +0 -2
  74. package/dist/cjs/services/drive.d.ts.map +1 -1
  75. package/dist/cjs/services/drive.js +3 -8
  76. package/dist/cjs/services/httpStatus.d.ts +130 -3
  77. package/dist/cjs/services/httpStatus.d.ts.map +1 -1
  78. package/dist/cjs/services/httpStatus.js +206 -6
  79. package/dist/cjs/services/objectMapping.d.ts +100 -0
  80. package/dist/cjs/services/objectMapping.d.ts.map +1 -0
  81. package/dist/cjs/services/objectMapping.js +143 -0
  82. package/dist/cjs/services/operationInvoker.d.ts +20 -3
  83. package/dist/cjs/services/operationInvoker.d.ts.map +1 -1
  84. package/dist/cjs/services/operationInvoker.js +192 -57
  85. package/dist/cjs/tasks/insertWorkbookRangeRow.d.ts +2 -2
  86. package/dist/cjs/tasks/insertWorkbookRangeRow.js +2 -2
  87. package/dist/cjs/tasks/insertWorkbookRangeRows.d.ts +3 -3
  88. package/dist/cjs/tasks/insertWorkbookRangeRows.js +3 -3
  89. package/dist/cjs/tasks/iterateWorkbookRangeRows.d.ts +1 -1
  90. package/dist/cjs/tasks/iterateWorkbookRangeRows.js +1 -1
  91. package/dist/cjs/tasks/readWorkbookRangeFirstRow.d.ts +2 -2
  92. package/dist/cjs/tasks/readWorkbookRangeFirstRow.js +2 -2
  93. package/dist/cjs/tasks/readWorkbookRangeRows.d.ts +2 -2
  94. package/dist/cjs/tasks/readWorkbookRangeRows.js +2 -2
  95. package/dist/cjs/tasks/updateWorkbookRangeFirstRow.d.ts +3 -3
  96. package/dist/cjs/tasks/updateWorkbookRangeFirstRow.js +3 -3
  97. package/dist/cjs/tasks/updateWorkbookRangeRows.d.ts +15 -6
  98. package/dist/cjs/tasks/updateWorkbookRangeRows.d.ts.map +1 -1
  99. package/dist/cjs/tasks/updateWorkbookRangeRows.js +16 -7
  100. package/dist/esm/errors/BadRequestError.d.ts +9 -0
  101. package/dist/esm/errors/BadRequestError.d.ts.map +1 -0
  102. package/dist/esm/errors/BadRequestError.js +11 -0
  103. package/dist/esm/errors/BandwidthLimitExceededError.d.ts +9 -0
  104. package/dist/esm/errors/BandwidthLimitExceededError.d.ts.map +1 -0
  105. package/dist/esm/errors/BandwidthLimitExceededError.js +11 -0
  106. package/dist/esm/errors/ConflictError.d.ts +10 -0
  107. package/dist/esm/errors/ConflictError.d.ts.map +1 -0
  108. package/dist/esm/errors/ConflictError.js +12 -0
  109. package/dist/esm/errors/ForbiddenError.d.ts +11 -0
  110. package/dist/esm/errors/ForbiddenError.d.ts.map +1 -0
  111. package/dist/esm/errors/ForbiddenError.js +13 -0
  112. package/dist/esm/errors/GatewayTimeoutError.d.ts +9 -0
  113. package/dist/esm/errors/GatewayTimeoutError.d.ts.map +1 -0
  114. package/dist/esm/errors/GatewayTimeoutError.js +11 -0
  115. package/dist/esm/errors/GoneError.d.ts +9 -0
  116. package/dist/esm/errors/GoneError.d.ts.map +1 -0
  117. package/dist/esm/errors/GoneError.js +11 -0
  118. package/dist/esm/errors/InsufficientStorageError.d.ts +9 -0
  119. package/dist/esm/errors/InsufficientStorageError.d.ts.map +1 -0
  120. package/dist/esm/errors/InsufficientStorageError.js +11 -0
  121. package/dist/esm/errors/InternalServerError.d.ts +9 -0
  122. package/dist/esm/errors/InternalServerError.d.ts.map +1 -0
  123. package/dist/esm/errors/InternalServerError.js +11 -0
  124. package/dist/esm/errors/LengthRequiredError.d.ts +9 -0
  125. package/dist/esm/errors/LengthRequiredError.d.ts.map +1 -0
  126. package/dist/esm/errors/LengthRequiredError.js +11 -0
  127. package/dist/esm/errors/LockedError.d.ts +9 -0
  128. package/dist/esm/errors/LockedError.d.ts.map +1 -0
  129. package/dist/esm/errors/LockedError.js +11 -0
  130. package/dist/esm/errors/MethodNotAllowedError.d.ts +9 -0
  131. package/dist/esm/errors/MethodNotAllowedError.d.ts.map +1 -0
  132. package/dist/esm/errors/MethodNotAllowedError.js +11 -0
  133. package/dist/esm/errors/NotAcceptableError.d.ts +9 -0
  134. package/dist/esm/errors/NotAcceptableError.d.ts.map +1 -0
  135. package/dist/esm/errors/NotAcceptableError.js +11 -0
  136. package/dist/esm/errors/PaymentRequiredError.d.ts +9 -0
  137. package/dist/esm/errors/PaymentRequiredError.d.ts.map +1 -0
  138. package/dist/esm/errors/PaymentRequiredError.js +11 -0
  139. package/dist/esm/errors/PreconditionFailedError.d.ts +9 -0
  140. package/dist/esm/errors/PreconditionFailedError.d.ts.map +1 -0
  141. package/dist/esm/errors/PreconditionFailedError.js +11 -0
  142. package/dist/esm/errors/RequestEntityTooLargeError.d.ts +9 -0
  143. package/dist/esm/errors/RequestEntityTooLargeError.d.ts.map +1 -0
  144. package/dist/esm/errors/RequestEntityTooLargeError.js +11 -0
  145. package/dist/esm/errors/RequestFailedError.d.ts +1 -2
  146. package/dist/esm/errors/RequestFailedError.d.ts.map +1 -1
  147. package/dist/esm/errors/RequestFailedError.js +1 -8
  148. package/dist/esm/errors/RequestedRangeNotSatisfiableError.d.ts +9 -0
  149. package/dist/esm/errors/RequestedRangeNotSatisfiableError.d.ts.map +1 -0
  150. package/dist/esm/errors/RequestedRangeNotSatisfiableError.js +11 -0
  151. package/dist/esm/errors/ServiceUnavailableError.d.ts +9 -0
  152. package/dist/esm/errors/ServiceUnavailableError.d.ts.map +1 -0
  153. package/dist/esm/errors/ServiceUnavailableError.js +11 -0
  154. package/dist/esm/errors/TooManyRequestsError.d.ts +9 -0
  155. package/dist/esm/errors/TooManyRequestsError.d.ts.map +1 -0
  156. package/dist/esm/errors/TooManyRequestsError.js +11 -0
  157. package/dist/esm/errors/UnauthorizedError.d.ts +9 -0
  158. package/dist/esm/errors/UnauthorizedError.d.ts.map +1 -0
  159. package/dist/esm/errors/UnauthorizedError.js +11 -0
  160. package/dist/esm/errors/UnprocessableEntityError.d.ts +9 -0
  161. package/dist/esm/errors/UnprocessableEntityError.d.ts.map +1 -0
  162. package/dist/esm/errors/UnprocessableEntityError.js +11 -0
  163. package/dist/esm/errors/UnsupportedMediaTypeError.d.ts +9 -0
  164. package/dist/esm/errors/UnsupportedMediaTypeError.d.ts.map +1 -0
  165. package/dist/esm/errors/UnsupportedMediaTypeError.js +11 -0
  166. package/dist/esm/operations/driveItem/getDriveItemByPath.d.ts.map +1 -1
  167. package/dist/esm/operations/driveItem/getDriveItemByPath.js +4 -0
  168. package/dist/esm/operations/driveItem/getDriveItemContent.js +2 -2
  169. package/dist/esm/operations/driveItem/streamDriveItemContent.d.ts.map +1 -1
  170. package/dist/esm/operations/driveItem/streamDriveItemContent.js +5 -1
  171. package/dist/esm/services/drive.d.ts +0 -2
  172. package/dist/esm/services/drive.d.ts.map +1 -1
  173. package/dist/esm/services/drive.js +4 -9
  174. package/dist/esm/services/httpStatus.d.ts +130 -3
  175. package/dist/esm/services/httpStatus.d.ts.map +1 -1
  176. package/dist/esm/services/httpStatus.js +182 -3
  177. package/dist/esm/services/objectMapping.d.ts +100 -0
  178. package/dist/esm/services/objectMapping.d.ts.map +1 -0
  179. package/dist/esm/services/objectMapping.js +132 -0
  180. package/dist/esm/services/operationInvoker.d.ts +20 -3
  181. package/dist/esm/services/operationInvoker.d.ts.map +1 -1
  182. package/dist/esm/services/operationInvoker.js +192 -58
  183. package/dist/esm/tasks/insertWorkbookRangeRow.d.ts +2 -2
  184. package/dist/esm/tasks/insertWorkbookRangeRow.js +2 -2
  185. package/dist/esm/tasks/insertWorkbookRangeRows.d.ts +3 -3
  186. package/dist/esm/tasks/insertWorkbookRangeRows.js +3 -3
  187. package/dist/esm/tasks/iterateWorkbookRangeRows.d.ts +1 -1
  188. package/dist/esm/tasks/iterateWorkbookRangeRows.js +1 -1
  189. package/dist/esm/tasks/readWorkbookRangeFirstRow.d.ts +2 -2
  190. package/dist/esm/tasks/readWorkbookRangeFirstRow.js +2 -2
  191. package/dist/esm/tasks/readWorkbookRangeRows.d.ts +2 -2
  192. package/dist/esm/tasks/readWorkbookRangeRows.js +2 -2
  193. package/dist/esm/tasks/updateWorkbookRangeFirstRow.d.ts +3 -3
  194. package/dist/esm/tasks/updateWorkbookRangeFirstRow.js +3 -3
  195. package/dist/esm/tasks/updateWorkbookRangeRows.d.ts +15 -6
  196. package/dist/esm/tasks/updateWorkbookRangeRows.d.ts.map +1 -1
  197. package/dist/esm/tasks/updateWorkbookRangeRows.js +16 -7
  198. package/docs/api/BadRequestError.md +191 -0
  199. package/docs/api/BandwidthLimitExceededError.md +191 -0
  200. package/docs/api/ConflictError.md +195 -0
  201. package/docs/api/ForbiddenError.md +193 -0
  202. package/docs/api/GatewayTimeoutError.md +191 -0
  203. package/docs/api/GoneError.md +191 -0
  204. package/docs/api/InsufficientStorageError.md +191 -0
  205. package/docs/api/InternalServerError.md +191 -0
  206. package/docs/api/LengthRequiredError.md +191 -0
  207. package/docs/api/LockedError.md +191 -0
  208. package/docs/api/MethodNotAllowedError.md +191 -0
  209. package/docs/api/NotAcceptableError.md +191 -0
  210. package/docs/api/PaymentRequiredError.md +191 -0
  211. package/docs/api/PreconditionFailedError.md +191 -0
  212. package/docs/api/README.md +30 -10
  213. package/docs/api/RequestEntityTooLargeError.md +191 -0
  214. package/docs/api/RequestFailedError.md +1 -19
  215. package/docs/api/RequestedRangeNotSatisfiableError.md +191 -0
  216. package/docs/api/ServiceUnavailableError.md +191 -0
  217. package/docs/api/TooManyRequestsError.md +191 -0
  218. package/docs/api/UnauthorizedError.md +191 -0
  219. package/docs/api/UnprocessableEntityError.md +191 -0
  220. package/docs/api/UnsupportedMediaTypeError.md +191 -0
  221. package/docs/api/drive.md +20 -0
  222. package/docs/api/getDriveItemByPath.md +1 -1
  223. package/docs/api/httpStatus.md +475 -12
  224. package/docs/api/{insertRow.md → insertWorkbookRangeRow.md} +3 -3
  225. package/docs/api/{insertRows.md → insertWorkbookRangeRows.md} +5 -5
  226. package/docs/api/{iterateRows.md → iterateWorkbookRangeRows.md} +2 -2
  227. package/docs/api/objectMapping.md +225 -0
  228. package/docs/api/operationInvoker.md +50 -27
  229. package/docs/api/{readFirstRow.md → readWorkbookRangeFirstRow.md} +3 -3
  230. package/docs/api/{readRows.md → readWorkbookRangeRows.md} +4 -4
  231. package/docs/api/streamDriveItemContent.md +1 -1
  232. package/docs/api/{updateFirstRow.md → updateWorkbookRangeFirstRow.md} +4 -4
  233. package/docs/api/{updateRows.md → updateWorkbookRangeRows.md} +19 -10
  234. package/docs/api/writeWorkbookRows.md +1 -1
  235. package/package.json +551 -51
  236. package/dist/cjs/models/DataSource.d.ts +0 -49
  237. package/dist/cjs/models/DataSource.d.ts.map +0 -1
  238. package/dist/cjs/models/DataSource.js +0 -8
  239. package/dist/cjs/services/dataSource.d.ts +0 -69
  240. package/dist/cjs/services/dataSource.d.ts.map +0 -1
  241. package/dist/cjs/services/dataSource.js +0 -193
  242. package/dist/esm/models/DataSource.d.ts +0 -49
  243. package/dist/esm/models/DataSource.d.ts.map +0 -1
  244. package/dist/esm/models/DataSource.js +0 -7
  245. package/dist/esm/services/dataSource.d.ts +0 -69
  246. package/dist/esm/services/dataSource.d.ts.map +0 -1
  247. package/dist/esm/services/dataSource.js +0 -182
  248. package/docs/api/DataSource-1.md +0 -191
  249. 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:36](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/services/operationInvoker.ts#L36)
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
- Define a operation.
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
- #### Remarks
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:50](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/services/operationInvoker.ts#L50)
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
- #### Remarks
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:59](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/services/operationInvoker.ts#L59)
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
- | ...`operations` | `T` |
109
+ | `responseCode` | `number` |
110
+ | `message` | `string` |
88
111
 
89
112
  #### Returns
90
113
 
91
- [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<[`OperationResponse`](GraphOperation.md#operationresponse)\<`T`\>\>
114
+ `never`
@@ -1,6 +1,6 @@
1
- [Microsoft Graph SDK](README.md) / readFirstRow
1
+ [Microsoft Graph SDK](README.md) / readWorkbookRangeFirstRow
2
2
 
3
- # readFirstRow
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 readFirstRow(rangeRef);
39
+ const firstRow = await readWorkbookRangeFirstRow(rangeRef);
40
40
  ```
@@ -1,6 +1,6 @@
1
- [Microsoft Graph SDK](README.md) / readRows
1
+ [Microsoft Graph SDK](README.md) / readWorkbookRangeRows
2
2
 
3
- # readRows
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](iterateRows.md#iterateworkbookrangerows) for more efficient memory usage.
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 readRows(rangeRef);
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:20](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/operations/driveItem/streamDriveItemContent.ts#L20)
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) / updateFirstRow
1
+ [Microsoft Graph SDK](README.md) / updateWorkbookRangeFirstRow
2
2
 
3
- # updateFirstRow
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 updateFirstRow(rangeRef, [{ value: 1 }, { value: 2 }]);
38
+ await updateWorkbookRangeFirstRow(rangeRef, [{ value: 1 }, { value: 2 }]);
39
39
 
40
40
  // Advanced example with cell formatting:
41
- await updateRows(rangeRef, [
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) / updateRows
1
+ [Microsoft Graph SDK](README.md) / updateWorkbookRangeRows
2
2
 
3
- # updateRows
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:44](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/tasks/updateWorkbookRangeRows.ts#L44)
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` | [`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`\> \| `AsyncIterable`\<[`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. |
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 updateRows(rangeRef, [
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 updateRows(rangeRef, [
47
- [{ value: "Column A", style: { alignment: { horizontal: "Right" }, font: { bold: true } } }, { value: "Column B", style: { alignment: { horizontal: "Right" }, font: { bold: true } } }],
48
- [{ value: 1, format: accountingCellFormat }, { value: "A" }],
49
- [{ value: 2, format: accountingCellFormat }, { value: "B" }],
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` | [`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`\> \| `AsyncIterable`\<[`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. |
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