microsoft-graph 2.3.0 → 2.4.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 (281) hide show
  1. package/.vscode/settings.json +2 -1
  2. package/dist/models/WorkbookTableColumnRef.d.ts +6 -0
  3. package/dist/models/WorkbookTableColumnRef.d.ts.map +1 -0
  4. package/dist/models/WorkbookTableColumnRef.js +1 -0
  5. package/dist/operations/drive/createFolder.d.ts +8 -1
  6. package/dist/operations/drive/createFolder.d.ts.map +1 -1
  7. package/dist/operations/drive/createFolder.js +8 -1
  8. package/dist/operations/drive/listDrives.d.ts +7 -1
  9. package/dist/operations/drive/listDrives.d.ts.map +1 -1
  10. package/dist/operations/drive/listDrives.js +7 -1
  11. package/dist/operations/driveItem/deleteDriveItem.d.ts +7 -1
  12. package/dist/operations/driveItem/deleteDriveItem.d.ts.map +1 -1
  13. package/dist/operations/driveItem/deleteDriveItem.js +7 -1
  14. package/dist/operations/driveItem/getDriveItem.d.ts +7 -1
  15. package/dist/operations/driveItem/getDriveItem.d.ts.map +1 -1
  16. package/dist/operations/driveItem/getDriveItem.js +7 -1
  17. package/dist/operations/driveItem/getDriveItem.test.js +2 -2
  18. package/dist/operations/driveItem/getDriveItemByPath.d.ts +8 -1
  19. package/dist/operations/driveItem/getDriveItemByPath.d.ts.map +1 -1
  20. package/dist/operations/driveItem/getDriveItemByPath.js +8 -1
  21. package/dist/operations/driveItem/getDriveItemByPath.test.js +2 -2
  22. package/dist/operations/driveItem/getDriveItemContent.d.ts +8 -1
  23. package/dist/operations/driveItem/getDriveItemContent.d.ts.map +1 -1
  24. package/dist/operations/driveItem/getDriveItemContent.js +8 -1
  25. package/dist/operations/driveItem/getDriveItemContent.test.js +2 -2
  26. package/dist/operations/driveItem/initiateCopyDriveItem.d.ts +9 -1
  27. package/dist/operations/driveItem/initiateCopyDriveItem.d.ts.map +1 -1
  28. package/dist/operations/driveItem/initiateCopyDriveItem.js +9 -1
  29. package/dist/operations/driveItem/initiateCopyDriveItem.test.js +3 -3
  30. package/dist/operations/driveItem/listDriveItems.d.ts +8 -2
  31. package/dist/operations/driveItem/listDriveItems.d.ts.map +1 -1
  32. package/dist/operations/driveItem/listDriveItems.js +8 -3
  33. package/dist/operations/driveItem/listDriveItems.test.js +2 -2
  34. package/dist/operations/site/getSite.d.ts +7 -1
  35. package/dist/operations/site/getSite.d.ts.map +1 -1
  36. package/dist/operations/site/getSite.js +7 -1
  37. package/dist/operations/site/getSiteByName.d.ts +9 -1
  38. package/dist/operations/site/getSiteByName.d.ts.map +1 -1
  39. package/dist/operations/site/getSiteByName.js +9 -1
  40. package/dist/operations/site/listSites.d.ts +7 -1
  41. package/dist/operations/site/listSites.d.ts.map +1 -1
  42. package/dist/operations/site/listSites.js +7 -1
  43. package/dist/operations/site/searchSites.d.ts +8 -1
  44. package/dist/operations/site/searchSites.d.ts.map +1 -1
  45. package/dist/operations/site/searchSites.js +8 -1
  46. package/dist/operations/user/userSendMail.d.ts +10 -1
  47. package/dist/operations/user/userSendMail.d.ts.map +1 -1
  48. package/dist/operations/user/userSendMail.js +10 -1
  49. package/dist/operations/workbook/calculateWorkbook.d.ts +14 -2
  50. package/dist/operations/workbook/calculateWorkbook.d.ts.map +1 -1
  51. package/dist/operations/workbook/calculateWorkbook.js +14 -2
  52. package/dist/operations/workbook/calculateWorkbook.test.js +4 -4
  53. package/dist/operations/workbook/createWorkbook.d.ts +9 -1
  54. package/dist/operations/workbook/createWorkbook.d.ts.map +1 -1
  55. package/dist/operations/workbook/createWorkbook.js +9 -1
  56. package/dist/operations/workbook/createWorkbook.test.js +2 -2
  57. package/dist/operations/workbook/deleteWorkbook.d.ts +7 -1
  58. package/dist/operations/workbook/deleteWorkbook.d.ts.map +1 -1
  59. package/dist/operations/workbook/deleteWorkbook.js +7 -1
  60. package/dist/operations/workbookRange/clearWorkbookRange.d.ts +8 -1
  61. package/dist/operations/workbookRange/clearWorkbookRange.d.ts.map +1 -1
  62. package/dist/operations/workbookRange/clearWorkbookRange.js +8 -1
  63. package/dist/operations/workbookRange/clearWorkbookRange.test.js +3 -3
  64. package/dist/operations/workbookRange/deleteWorkbookRange.d.ts +8 -1
  65. package/dist/operations/workbookRange/deleteWorkbookRange.d.ts.map +1 -1
  66. package/dist/operations/workbookRange/deleteWorkbookRange.js +8 -1
  67. package/dist/operations/workbookRange/deleteWorkbookRange.test.js +3 -3
  68. package/dist/operations/workbookRange/getWorkbookNamedRange.d.ts +7 -1
  69. package/dist/operations/workbookRange/getWorkbookNamedRange.d.ts.map +1 -1
  70. package/dist/operations/workbookRange/getWorkbookNamedRange.js +7 -1
  71. package/dist/operations/workbookRange/getWorkbookRangeFormat.d.ts +7 -1
  72. package/dist/operations/workbookRange/getWorkbookRangeFormat.d.ts.map +1 -1
  73. package/dist/operations/workbookRange/getWorkbookRangeFormat.js +7 -1
  74. package/dist/operations/workbookRange/getWorkbookRangeFormat.test.js +2 -2
  75. package/dist/operations/workbookRange/getWorkbookUsedRange.d.ts +3 -1
  76. package/dist/operations/workbookRange/getWorkbookUsedRange.d.ts.map +1 -1
  77. package/dist/operations/workbookRange/getWorkbookUsedRange.js +3 -1
  78. package/dist/operations/workbookRange/getWorkbookVisibleRange.d.ts +7 -1
  79. package/dist/operations/workbookRange/getWorkbookVisibleRange.d.ts.map +1 -1
  80. package/dist/operations/workbookRange/getWorkbookVisibleRange.js +7 -1
  81. package/dist/operations/workbookRange/getWorkbookVisibleRange.test.js +5 -5
  82. package/dist/operations/workbookRange/getWorkbookWorksheetRange.d.ts +7 -1
  83. package/dist/operations/workbookRange/getWorkbookWorksheetRange.d.ts.map +1 -1
  84. package/dist/operations/workbookRange/getWorkbookWorksheetRange.js +7 -1
  85. package/dist/operations/workbookRange/getWorkbookWorksheetRange.test.js +2 -2
  86. package/dist/operations/workbookRange/insertWorkbookCells.d.ts +9 -1
  87. package/dist/operations/workbookRange/insertWorkbookCells.d.ts.map +1 -1
  88. package/dist/operations/workbookRange/insertWorkbookCells.js +9 -1
  89. package/dist/operations/workbookRange/insertWorkbookCells.test.js +2 -2
  90. package/dist/operations/workbookRange/updateWorkbookNamedRange.d.ts +8 -1
  91. package/dist/operations/workbookRange/updateWorkbookNamedRange.d.ts.map +1 -1
  92. package/dist/operations/workbookRange/updateWorkbookNamedRange.js +8 -1
  93. package/dist/operations/workbookRange/updateWorkbookRange.d.ts +8 -1
  94. package/dist/operations/workbookRange/updateWorkbookRange.d.ts.map +1 -1
  95. package/dist/operations/workbookRange/updateWorkbookRange.js +8 -1
  96. package/dist/operations/workbookRange/updateWorkbookRange.test.js +3 -3
  97. package/dist/operations/workbookSession/closeWorkbookSession.d.ts +8 -1
  98. package/dist/operations/workbookSession/closeWorkbookSession.d.ts.map +1 -1
  99. package/dist/operations/workbookSession/closeWorkbookSession.js +8 -1
  100. package/dist/operations/workbookSession/createWorkbookSession.d.ts +9 -1
  101. package/dist/operations/workbookSession/createWorkbookSession.d.ts.map +1 -1
  102. package/dist/operations/workbookSession/createWorkbookSession.js +9 -1
  103. package/dist/operations/workbookSession/refreshWorkbookSession.d.ts +8 -1
  104. package/dist/operations/workbookSession/refreshWorkbookSession.d.ts.map +1 -1
  105. package/dist/operations/workbookSession/refreshWorkbookSession.js +8 -1
  106. package/dist/operations/workbookTable/applyWorkbookTableColulmnFilter.test.d.ts +2 -0
  107. package/dist/operations/workbookTable/applyWorkbookTableColulmnFilter.test.d.ts.map +1 -0
  108. package/dist/operations/workbookTable/applyWorkbookTableColulmnFilter.test.js +45 -0
  109. package/dist/operations/workbookTable/applyWorkbookTableColumnFilter.d.ts +13 -0
  110. package/dist/operations/workbookTable/applyWorkbookTableColumnFilter.d.ts.map +1 -0
  111. package/dist/operations/workbookTable/applyWorkbookTableColumnFilter.js +25 -0
  112. package/dist/operations/workbookTable/clearWorkbookTableFilters.d.ts +10 -0
  113. package/dist/operations/workbookTable/clearWorkbookTableFilters.d.ts.map +1 -0
  114. package/dist/operations/workbookTable/clearWorkbookTableFilters.js +20 -0
  115. package/dist/operations/workbookTable/clearWorkbookTableFilters.test.d.ts +2 -0
  116. package/dist/operations/workbookTable/clearWorkbookTableFilters.test.d.ts.map +1 -0
  117. package/dist/operations/workbookTable/clearWorkbookTableFilters.test.js +51 -0
  118. package/dist/operations/workbookTable/createWorkbookTable.d.ts +8 -1
  119. package/dist/operations/workbookTable/createWorkbookTable.d.ts.map +1 -1
  120. package/dist/operations/workbookTable/createWorkbookTable.js +8 -1
  121. package/dist/operations/workbookTable/createWorkbookTable.test.js +2 -2
  122. package/dist/operations/workbookTable/getWorkbookTable.d.ts +7 -1
  123. package/dist/operations/workbookTable/getWorkbookTable.d.ts.map +1 -1
  124. package/dist/operations/workbookTable/getWorkbookTable.js +7 -1
  125. package/dist/operations/workbookTable/getWorkbookTable.test.js +2 -2
  126. package/dist/operations/workbookTable/getWorkbookTableBodyRange.d.ts +7 -1
  127. package/dist/operations/workbookTable/getWorkbookTableBodyRange.d.ts.map +1 -1
  128. package/dist/operations/workbookTable/getWorkbookTableBodyRange.js +7 -1
  129. package/dist/operations/workbookTable/getWorkbookTableBodyRange.test.js +3 -3
  130. package/dist/operations/workbookTable/getWorkbookTableBodyVisibleRange.d.ts +13 -0
  131. package/dist/operations/workbookTable/getWorkbookTableBodyVisibleRange.d.ts.map +1 -0
  132. package/dist/operations/workbookTable/getWorkbookTableBodyVisibleRange.js +29 -0
  133. package/dist/operations/workbookTable/getWorkbookTableBodyVisibleRange.test.d.ts +2 -0
  134. package/dist/operations/workbookTable/getWorkbookTableBodyVisibleRange.test.d.ts.map +1 -0
  135. package/dist/operations/workbookTable/getWorkbookTableBodyVisibleRange.test.js +45 -0
  136. package/dist/operations/workbookTable/getWorkbookTableHeaderRange.d.ts +7 -1
  137. package/dist/operations/workbookTable/getWorkbookTableHeaderRange.d.ts.map +1 -1
  138. package/dist/operations/workbookTable/getWorkbookTableHeaderRange.js +7 -1
  139. package/dist/operations/workbookTable/getWorkbookTableHeaderRange.test.js +2 -2
  140. package/dist/operations/workbookTable/listWorkbookTableColumns.d.ts +7 -1
  141. package/dist/operations/workbookTable/listWorkbookTableColumns.d.ts.map +1 -1
  142. package/dist/operations/workbookTable/listWorkbookTableColumns.js +7 -1
  143. package/dist/operations/workbookTable/listWorkbookTableColumns.test.js +2 -2
  144. package/dist/operations/workbookTable/listWorkbookTableRows.d.ts +7 -1
  145. package/dist/operations/workbookTable/listWorkbookTableRows.d.ts.map +1 -1
  146. package/dist/operations/workbookTable/listWorkbookTableRows.js +7 -1
  147. package/dist/operations/workbookTable/listWorkbookTableRows.test.js +2 -2
  148. package/dist/operations/workbookTable/listWorkbookTables.d.ts +7 -1
  149. package/dist/operations/workbookTable/listWorkbookTables.d.ts.map +1 -1
  150. package/dist/operations/workbookTable/listWorkbookTables.js +7 -1
  151. package/dist/operations/workbookTable/listWorkbookTables.test.js +2 -2
  152. package/dist/operations/workbookWorksheet/createWorkbookWorksheet.d.ts +8 -1
  153. package/dist/operations/workbookWorksheet/createWorkbookWorksheet.d.ts.map +1 -1
  154. package/dist/operations/workbookWorksheet/createWorkbookWorksheet.js +8 -1
  155. package/dist/operations/workbookWorksheet/createWorkbookWorksheet.test.js +3 -3
  156. package/dist/operations/workbookWorksheet/deleteWorkbookWorksheet.d.ts +7 -1
  157. package/dist/operations/workbookWorksheet/deleteWorkbookWorksheet.d.ts.map +1 -1
  158. package/dist/operations/workbookWorksheet/deleteWorkbookWorksheet.js +7 -1
  159. package/dist/operations/workbookWorksheet/deleteWorkbookWorksheet.test.js +2 -2
  160. package/dist/operations/workbookWorksheet/getWorkbookWorksheetUsedRange.d.ts +13 -0
  161. package/dist/operations/workbookWorksheet/getWorkbookWorksheetUsedRange.d.ts.map +1 -0
  162. package/dist/operations/workbookWorksheet/getWorkbookWorksheetUsedRange.js +33 -0
  163. package/dist/operations/workbookWorksheet/getWorkbookWorksheetUsedRange.test.d.ts +2 -0
  164. package/dist/operations/workbookWorksheet/getWorkbookWorksheetUsedRange.test.d.ts.map +1 -0
  165. package/dist/operations/workbookWorksheet/getWorkbookWorksheetUsedRange.test.js +54 -0
  166. package/dist/operations/workbookWorksheet/getWorkbookWorksheetUsedVisibleRange.d.ts +13 -0
  167. package/dist/operations/workbookWorksheet/getWorkbookWorksheetUsedVisibleRange.d.ts.map +1 -0
  168. package/dist/operations/workbookWorksheet/getWorkbookWorksheetUsedVisibleRange.js +29 -0
  169. package/dist/operations/workbookWorksheet/getWorkbookWorksheetUsedVisibleRange.test.d.ts +2 -0
  170. package/dist/operations/workbookWorksheet/getWorkbookWorksheetUsedVisibleRange.test.d.ts.map +1 -0
  171. package/dist/operations/workbookWorksheet/getWorkbookWorksheetUsedVisibleRange.test.js +37 -0
  172. package/dist/operations/workbookWorksheet/listWorkbookWorksheets.d.ts +7 -1
  173. package/dist/operations/workbookWorksheet/listWorkbookWorksheets.d.ts.map +1 -1
  174. package/dist/operations/workbookWorksheet/listWorkbookWorksheets.js +7 -1
  175. package/dist/operations/workbookWorksheet/listWorkbookWorksheets.test.js +3 -3
  176. package/dist/operations/workbookWorksheet/updateWorkbookWorksheet.d.ts +11 -1
  177. package/dist/operations/workbookWorksheet/updateWorkbookWorksheet.d.ts.map +1 -1
  178. package/dist/operations/workbookWorksheet/updateWorkbookWorksheet.js +11 -1
  179. package/dist/operations/workbookWorksheet/updateWorkbookWorksheet.test.js +3 -3
  180. package/dist/services/accessToken.d.ts +9 -1
  181. package/dist/services/accessToken.d.ts.map +1 -1
  182. package/dist/services/accessToken.js +9 -1
  183. package/dist/services/addressManipulation.d.ts +67 -0
  184. package/dist/services/addressManipulation.d.ts.map +1 -1
  185. package/dist/services/addressManipulation.js +67 -0
  186. package/dist/services/addressOffset.d.ts +20 -0
  187. package/dist/services/addressOffset.d.ts.map +1 -1
  188. package/dist/services/addressOffset.js +20 -0
  189. package/dist/services/context.d.ts +19 -2
  190. package/dist/services/context.d.ts.map +1 -1
  191. package/dist/services/context.js +19 -2
  192. package/dist/services/drive.d.ts +12 -1
  193. package/dist/services/drive.d.ts.map +1 -1
  194. package/dist/services/drive.js +12 -1
  195. package/dist/services/driveItem.d.ts +13 -1
  196. package/dist/services/driveItem.d.ts.map +1 -1
  197. package/dist/services/driveItem.js +13 -1
  198. package/dist/services/environmentVariable.d.ts +13 -0
  199. package/dist/services/environmentVariable.d.ts.map +1 -1
  200. package/dist/services/environmentVariable.js +13 -0
  201. package/dist/services/httpAgent.d.ts +5 -0
  202. package/dist/services/httpAgent.d.ts.map +1 -1
  203. package/dist/services/httpAgent.js +5 -0
  204. package/dist/services/httpStatus.d.ts +15 -0
  205. package/dist/services/httpStatus.d.ts.map +1 -1
  206. package/dist/services/httpStatus.js +15 -0
  207. package/dist/services/operationId.d.ts +10 -0
  208. package/dist/services/operationId.d.ts.map +1 -1
  209. package/dist/services/operationId.js +10 -0
  210. package/dist/services/random.d.ts +5 -0
  211. package/dist/services/random.d.ts.map +1 -1
  212. package/dist/services/random.js +5 -0
  213. package/dist/services/sharepointUrl.d.ts +6 -1
  214. package/dist/services/sharepointUrl.d.ts.map +1 -1
  215. package/dist/services/sharepointUrl.js +6 -1
  216. package/dist/services/site.d.ts +12 -1
  217. package/dist/services/site.d.ts.map +1 -1
  218. package/dist/services/site.js +12 -1
  219. package/dist/services/sleep.d.ts +5 -0
  220. package/dist/services/sleep.d.ts.map +1 -1
  221. package/dist/services/sleep.js +5 -0
  222. package/dist/services/stringCaseConversion.d.ts +5 -0
  223. package/dist/services/stringCaseConversion.d.ts.map +1 -1
  224. package/dist/services/stringCaseConversion.js +5 -0
  225. package/dist/services/templatedPaths.d.ts +7 -1
  226. package/dist/services/templatedPaths.d.ts.map +1 -1
  227. package/dist/services/templatedPaths.js +7 -1
  228. package/dist/services/temporaryFiles.d.ts +5 -0
  229. package/dist/services/temporaryFiles.d.ts.map +1 -1
  230. package/dist/services/temporaryFiles.js +5 -0
  231. package/dist/services/workbookRange.d.ts +6 -0
  232. package/dist/services/workbookRange.d.ts.map +1 -1
  233. package/dist/services/workbookRange.js +6 -0
  234. package/dist/services/workbookTable.d.ts +7 -0
  235. package/dist/services/workbookTable.d.ts.map +1 -1
  236. package/dist/services/workbookTable.js +7 -0
  237. package/dist/services/workbookTableColumn.d.ts +12 -0
  238. package/dist/services/workbookTableColumn.d.ts.map +1 -0
  239. package/dist/services/workbookTableColumn.js +22 -0
  240. package/dist/services/workbookWorksheet.d.ts +12 -0
  241. package/dist/services/workbookWorksheet.d.ts.map +1 -1
  242. package/dist/services/workbookWorksheet.js +12 -0
  243. package/dist/tasks/createWorkbookAndStartSession.d.ts +7 -1
  244. package/dist/tasks/createWorkbookAndStartSession.d.ts.map +1 -1
  245. package/dist/tasks/createWorkbookAndStartSession.js +7 -1
  246. package/dist/tasks/deleteDriveItemWithRetry.d.ts +6 -1
  247. package/dist/tasks/deleteDriveItemWithRetry.d.ts.map +1 -1
  248. package/dist/tasks/deleteDriveItemWithRetry.js +6 -1
  249. package/dist/tasks/downloadDriveItemContent.d.ts +7 -1
  250. package/dist/tasks/downloadDriveItemContent.d.ts.map +1 -1
  251. package/dist/tasks/downloadDriveItemContent.js +7 -1
  252. package/dist/tasks/getRangeLastUsedCell.d.ts +7 -1
  253. package/dist/tasks/getRangeLastUsedCell.d.ts.map +1 -1
  254. package/dist/tasks/getRangeLastUsedCell.js +7 -1
  255. package/dist/tasks/getRangeLastUsedCell.test.js +4 -4
  256. package/dist/tasks/getWorkbookTableVisibleBody.d.ts +1 -1
  257. package/dist/tasks/getWorkbookTableVisibleBody.d.ts.map +1 -1
  258. package/dist/tasks/getWorkbookTableVisibleBody.js +1 -1
  259. package/dist/tasks/getWorkbookWorksheetByName.d.ts +8 -1
  260. package/dist/tasks/getWorkbookWorksheetByName.d.ts.map +1 -1
  261. package/dist/tasks/getWorkbookWorksheetByName.js +8 -1
  262. package/dist/tasks/safeDeleteWorkbook.d.ts +7 -1
  263. package/dist/tasks/safeDeleteWorkbook.d.ts.map +1 -1
  264. package/dist/tasks/safeDeleteWorkbook.js +7 -1
  265. package/dist/tasks/setColumnHidden.d.ts +7 -1
  266. package/dist/tasks/setColumnHidden.d.ts.map +1 -1
  267. package/dist/tasks/setColumnHidden.js +7 -1
  268. package/dist/tasks/setColumnHidden.test.js +2 -2
  269. package/dist/tasks/setRowHidden.d.ts +7 -1
  270. package/dist/tasks/setRowHidden.d.ts.map +1 -1
  271. package/dist/tasks/setRowHidden.js +7 -1
  272. package/dist/tasks/setRowHidden.test.js +2 -2
  273. package/dist/tasks/setWorkbookTableBodyVisibleRows.d.ts +9 -1
  274. package/dist/tasks/setWorkbookTableBodyVisibleRows.d.ts.map +1 -1
  275. package/dist/tasks/setWorkbookTableBodyVisibleRows.js +23 -16
  276. package/dist/tasks/setWorkbookTableBodyVisibleRows.test.js +10 -8
  277. package/dist/tasks/tryDeleteDriveItem.d.ts +9 -0
  278. package/dist/tasks/tryDeleteDriveItem.d.ts.map +1 -0
  279. package/dist/tasks/tryDeleteDriveItem.js +16 -0
  280. package/docs/findingSiteDriveId.md +21 -0
  281. package/package.json +33 -1
@@ -11,6 +11,7 @@
11
11
  "cSpell.words": [
12
12
  "Entra",
13
13
  "FSAI",
14
- "msgraph"
14
+ "msgraph",
15
+ "sourcedoc"
15
16
  ],
16
17
  }
@@ -0,0 +1,6 @@
1
+ import type { ColumnAddress } from "./Address.ts";
2
+ import type { WorkbookTableRef } from "./WorkbookTableRef.ts";
3
+ export type WorkbookTableColumnRef = WorkbookTableRef & {
4
+ column: ColumnAddress;
5
+ };
6
+ //# sourceMappingURL=WorkbookTableColumnRef.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WorkbookTableColumnRef.d.ts","sourceRoot":"","sources":["../../src/models/WorkbookTableColumnRef.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE9D,MAAM,MAAM,sBAAsB,GAAG,gBAAgB,GAAG;IACvD,MAAM,EAAE,aAAa,CAAC;CACtB,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -2,6 +2,13 @@ import type { DriveItem } from "@microsoft/microsoft-graph-types";
2
2
  import type { DriveItemRef } from "../../models/DriveItemRef.ts";
3
3
  import type { DriveRef } from "../../models/DriveRef.ts";
4
4
  import type { GraphOperation } from "../../models/GraphOperation.ts";
5
- /** Create folder if it doesn't exist, and return the folder. Use a `DriveRef` to create in root or `DriveItemRef` to create in a subfolder. @see https://learn.microsoft.com/en-us/graph/api/driveitem-post-children */
5
+ /**
6
+ * Create a folder in the root of a drive, or in a folder. If it already exists do nothing.
7
+ *
8
+ * @param parentRef - A reference to the parent drive or folder where the folder will be created.
9
+ * @param folderName - The name of the folder to be created.
10
+ * @returns The newly created folder, including its metadata and reference information.
11
+ * @see https://learn.microsoft.com/en-us/graph/api/driveitem-post-children
12
+ */
6
13
  export default function createFolder(parentRef: DriveRef | DriveItemRef, folderName: string): GraphOperation<DriveItem & DriveItemRef>;
7
14
  //# sourceMappingURL=createFolder.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createFolder.d.ts","sourceRoot":"","sources":["../../../src/operations/drive/createFolder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAGlE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAIrE,wNAAwN;AACxN,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,SAAS,EAAE,QAAQ,GAAG,YAAY,EAAE,UAAU,EAAE,MAAM,GAAG,cAAc,CAAC,SAAS,GAAG,YAAY,CAAC,CAyBrI"}
1
+ {"version":3,"file":"createFolder.d.ts","sourceRoot":"","sources":["../../../src/operations/drive/createFolder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAGlE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAIrE;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,SAAS,EAAE,QAAQ,GAAG,YAAY,EAAE,UAAU,EAAE,MAAM,GAAG,cAAc,CAAC,SAAS,GAAG,YAAY,CAAC,CAyBrI"}
@@ -1,7 +1,14 @@
1
1
  import { operation } from "../../graphApi.js";
2
2
  import { createDriveItemRef } from "../../services/driveItem.js";
3
3
  import { generatePath } from "../../services/templatedPaths.js";
4
- /** Create folder if it doesn't exist, and return the folder. Use a `DriveRef` to create in root or `DriveItemRef` to create in a subfolder. @see https://learn.microsoft.com/en-us/graph/api/driveitem-post-children */
4
+ /**
5
+ * Create a folder in the root of a drive, or in a folder. If it already exists do nothing.
6
+ *
7
+ * @param parentRef - A reference to the parent drive or folder where the folder will be created.
8
+ * @param folderName - The name of the folder to be created.
9
+ * @returns The newly created folder, including its metadata and reference information.
10
+ * @see https://learn.microsoft.com/en-us/graph/api/driveitem-post-children
11
+ */
5
12
  export default function createFolder(parentRef, folderName) {
6
13
  const pathSegment = parentRef.itemId ? "items/{item-id}" : "root";
7
14
  return operation({
@@ -2,6 +2,12 @@ import type { DriveItem } from "@microsoft/microsoft-graph-types";
2
2
  import type { DriveRef } from "../../models/DriveRef.ts";
3
3
  import type { GraphOperation } from "../../models/GraphOperation.ts";
4
4
  import type { SiteRef } from "../../models/SiteRef.ts";
5
- /** Retrieve the list of Drive resources available for a Site. @see https://learn.microsoft.com/en-us/graph/api/drive-list */
5
+ /**
6
+ * Retrieve the list of accessible Drives in a Site.
7
+ *
8
+ * @param siteRef - A reference to the site.
9
+ * @returns An array of drives available for the specified site, each including its metadata and reference information.
10
+ * @see https://learn.microsoft.com/en-us/graph/api/drive-list
11
+ */
6
12
  export default function listDrives(siteRef: SiteRef): GraphOperation<(DriveItem & DriveRef)[]>;
7
13
  //# sourceMappingURL=listDrives.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"listDrives.d.ts","sourceRoot":"","sources":["../../../src/operations/drive/listDrives.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAGlE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAIvD,6HAA6H;AAC7H,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,cAAc,CAAC,CAAC,SAAS,GAAG,QAAQ,CAAC,EAAE,CAAC,CAkB7F"}
1
+ {"version":3,"file":"listDrives.d.ts","sourceRoot":"","sources":["../../../src/operations/drive/listDrives.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAGlE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAIvD;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,cAAc,CAAC,CAAC,SAAS,GAAG,QAAQ,CAAC,EAAE,CAAC,CAkB7F"}
@@ -1,7 +1,13 @@
1
1
  import { operation } from "../../graphApi.js";
2
2
  import { createDriveRef } from "../../services/drive.js";
3
3
  import { generatePath } from "../../services/templatedPaths.js";
4
- /** Retrieve the list of Drive resources available for a Site. @see https://learn.microsoft.com/en-us/graph/api/drive-list */
4
+ /**
5
+ * Retrieve the list of accessible Drives in a Site.
6
+ *
7
+ * @param siteRef - A reference to the site.
8
+ * @returns An array of drives available for the specified site, each including its metadata and reference information.
9
+ * @see https://learn.microsoft.com/en-us/graph/api/drive-list
10
+ */
5
11
  export default function listDrives(siteRef) {
6
12
  return operation({
7
13
  contextId: siteRef.contextId,
@@ -1,5 +1,11 @@
1
1
  import type { DriveItemRef } from "../../models/DriveItemRef.ts";
2
2
  import type { GraphOperation } from "../../models/GraphOperation.ts";
3
- /** Delete an item. @see https://learn.microsoft.com/en-us/graph/api/driveitem-delete */
3
+ /**
4
+ * Delete an item from a drive.
5
+ *
6
+ * @param itemRef - A reference to the drive item to be deleted.
7
+ * @returns Nothing.
8
+ * @see https://learn.microsoft.com/en-us/graph/api/driveitem-delete
9
+ */
4
10
  export default function deleteDriveItem(itemRef: DriveItemRef): GraphOperation<void>;
5
11
  //# sourceMappingURL=deleteDriveItem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"deleteDriveItem.d.ts","sourceRoot":"","sources":["../../../src/operations/driveItem/deleteDriveItem.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAGrE,wFAAwF;AACxF,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,OAAO,EAAE,YAAY,GAAG,cAAc,CAAC,IAAI,CAAC,CASnF"}
1
+ {"version":3,"file":"deleteDriveItem.d.ts","sourceRoot":"","sources":["../../../src/operations/driveItem/deleteDriveItem.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAGrE;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,OAAO,EAAE,YAAY,GAAG,cAAc,CAAC,IAAI,CAAC,CASnF"}
@@ -1,6 +1,12 @@
1
1
  import { operation } from "../../graphApi.js";
2
2
  import { generatePath } from "../../services/templatedPaths.js";
3
- /** Delete an item. @see https://learn.microsoft.com/en-us/graph/api/driveitem-delete */
3
+ /**
4
+ * Delete an item from a drive.
5
+ *
6
+ * @param itemRef - A reference to the drive item to be deleted.
7
+ * @returns Nothing.
8
+ * @see https://learn.microsoft.com/en-us/graph/api/driveitem-delete
9
+ */
4
10
  export default function deleteDriveItem(itemRef) {
5
11
  return operation({
6
12
  contextId: itemRef.contextId,
@@ -1,6 +1,12 @@
1
1
  import type { DriveItem } from "@microsoft/microsoft-graph-types";
2
2
  import type { DriveItemRef } from "../../models/DriveItemRef.ts";
3
3
  import type { GraphOperation } from "../../models/GraphOperation.ts";
4
- /** Retrieve the metadata for an item in a drive. @see https://learn.microsoft.com/en-us/graph/api/driveitem-get */
4
+ /**
5
+ * Retrieve the metadata for an item in a drive.
6
+ *
7
+ * @param itemRef - A reference to the drive item.
8
+ * @returns The metadata of the specified drive item, including its reference information.
9
+ * @see https://learn.microsoft.com/en-us/graph/api/driveitem-get
10
+ */
5
11
  export default function getDriveItem(itemRef: DriveItemRef): GraphOperation<DriveItem & DriveItemRef>;
6
12
  //# sourceMappingURL=getDriveItem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getDriveItem.d.ts","sourceRoot":"","sources":["../../../src/operations/driveItem/getDriveItem.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAElE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAGrE,mHAAmH;AACnH,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,OAAO,EAAE,YAAY,GAAG,cAAc,CAAC,SAAS,GAAG,YAAY,CAAC,CAgBpG"}
1
+ {"version":3,"file":"getDriveItem.d.ts","sourceRoot":"","sources":["../../../src/operations/driveItem/getDriveItem.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAElE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAGrE;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,OAAO,EAAE,YAAY,GAAG,cAAc,CAAC,SAAS,GAAG,YAAY,CAAC,CAgBpG"}
@@ -1,6 +1,12 @@
1
1
  import { operation } from "../../graphApi.js";
2
2
  import { generatePath } from "../../services/templatedPaths.js";
3
- /** Retrieve the metadata for an item in a drive. @see https://learn.microsoft.com/en-us/graph/api/driveitem-get */
3
+ /**
4
+ * Retrieve the metadata for an item in a drive.
5
+ *
6
+ * @param itemRef - A reference to the drive item.
7
+ * @returns The metadata of the specified drive item, including its reference information.
8
+ * @see https://learn.microsoft.com/en-us/graph/api/driveitem-get
9
+ */
4
10
  export default function getDriveItem(itemRef) {
5
11
  return operation({
6
12
  contextId: itemRef.contextId,
@@ -1,7 +1,7 @@
1
1
  import { describe, expect, it } from "vitest";
2
2
  import { getDefaultDriveRef } from "../../services/drive.js";
3
3
  import { generateTempFileName } from "../../services/temporaryFiles.js";
4
- import deleteDriveItemWithRetry from "../../tasks/deleteDriveItemWithRetry.js";
4
+ import tryDeleteDriveItem from "../../tasks/tryDeleteDriveItem.js";
5
5
  import createFolder from "../drive/createFolder.js";
6
6
  import getDriveItem from "./getDriveItem.js";
7
7
  describe("getDriveItem", () => {
@@ -12,7 +12,7 @@ describe("getDriveItem", () => {
12
12
  const retrievedFolder = await getDriveItem(folder);
13
13
  expect(retrievedFolder.id).toBe(folder.id);
14
14
  expect(retrievedFolder.name).toBe(folderName);
15
- await deleteDriveItemWithRetry(folder);
15
+ await tryDeleteDriveItem(folder);
16
16
  });
17
17
  it("throws an error when trying to retrieve a non-existent item", async () => {
18
18
  const nonExistentItemRef = {
@@ -3,6 +3,13 @@ import type { DriveItemPath } from "../../models/DriveItemPath.ts";
3
3
  import type { DriveItemRef } from "../../models/DriveItemRef.ts";
4
4
  import type { DriveRef } from "../../models/DriveRef.ts";
5
5
  import type { GraphOperation } from "../../models/GraphOperation.ts";
6
- /** Retrieve the metadata for an item in a drive by file path. If the target file is moved this will cease working. @see https://learn.microsoft.com/en-us/graph/api/driveitem-get */
6
+ /**
7
+ * Retrieve the metadata for an item in a drive by file path.
8
+ *
9
+ * @param driveRef - A reference to the drive containing the item.
10
+ * @param itemPath - The file path of the item within the drive.
11
+ * @returns The metadata of the specified drive item, including its reference information.
12
+ * @see https://learn.microsoft.com/en-us/graph/api/driveitem-get
13
+ */
7
14
  export default function getDriveItemByPath(driveRef: DriveRef, itemPath: DriveItemPath): GraphOperation<DriveItem & DriveItemRef>;
8
15
  //# sourceMappingURL=getDriveItemByPath.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getDriveItemByPath.d.ts","sourceRoot":"","sources":["../../../src/operations/driveItem/getDriveItemByPath.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAGlE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAIrE,qLAAqL;AACrL,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,aAAa,GAAG,cAAc,CAAC,SAAS,GAAG,YAAY,CAAC,CAiBhI"}
1
+ {"version":3,"file":"getDriveItemByPath.d.ts","sourceRoot":"","sources":["../../../src/operations/driveItem/getDriveItemByPath.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAGlE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAIrE;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,aAAa,GAAG,cAAc,CAAC,SAAS,GAAG,YAAY,CAAC,CAiBhI"}
@@ -1,7 +1,14 @@
1
1
  import { operation } from "../../graphApi.js";
2
2
  import { createDriveItemRef } from "../../services/driveItem.js";
3
3
  import { generatePath } from "../../services/templatedPaths.js";
4
- /** Retrieve the metadata for an item in a drive by file path. If the target file is moved this will cease working. @see https://learn.microsoft.com/en-us/graph/api/driveitem-get */
4
+ /**
5
+ * Retrieve the metadata for an item in a drive by file path.
6
+ *
7
+ * @param driveRef - A reference to the drive containing the item.
8
+ * @param itemPath - The file path of the item within the drive.
9
+ * @returns The metadata of the specified drive item, including its reference information.
10
+ * @see https://learn.microsoft.com/en-us/graph/api/driveitem-get
11
+ */
5
12
  export default function getDriveItemByPath(driveRef, itemPath) {
6
13
  return operation({
7
14
  contextId: driveRef.contextId,
@@ -2,7 +2,7 @@ import { describe, expect, it } from "vitest";
2
2
  import { getDefaultDriveRef } from "../../services/drive.js";
3
3
  import { driveItemPath } from "../../services/driveItem.js";
4
4
  import { generateTempFileName } from "../../services/temporaryFiles.js";
5
- import deleteDriveItemWithRetry from "../../tasks/deleteDriveItemWithRetry.js";
5
+ import tryDeleteDriveItem from "../../tasks/tryDeleteDriveItem.js";
6
6
  import createFolder from "../drive/createFolder.js";
7
7
  import getDriveItemByPath from "./getDriveItemByPath.js";
8
8
  describe("getDriveItemByPath", () => {
@@ -13,7 +13,7 @@ describe("getDriveItemByPath", () => {
13
13
  const retrievedFolder = await getDriveItemByPath(getDefaultDriveRef(), folderPath);
14
14
  expect(retrievedFolder.id).toBe(folder.id);
15
15
  expect(retrievedFolder.name).toBe(folderName);
16
- await deleteDriveItemWithRetry(folder);
16
+ await tryDeleteDriveItem(folder);
17
17
  });
18
18
  it("throws an error when trying to retrieve a non-existent item by path", async () => {
19
19
  const nonExistentItemPath = driveItemPath("non-existent-item-path");
@@ -1,4 +1,11 @@
1
1
  import type { DriveItemRef } from "../../models/DriveItemRef.ts";
2
- /** Download drive item. @see https://learn.microsoft.com/en-us/graph/api/driveitem-get-content */
2
+ /**
3
+ * Download the content of a drive item.
4
+ *
5
+ * @param itemRef - A reference to the drive item to be downloaded.
6
+ * @returns The content of the drive item as an ArrayBuffer.
7
+ * @throws Error if the download fails.
8
+ * @see https://learn.microsoft.com/en-us/graph/api/driveitem-get-content
9
+ */
3
10
  export default function getDriveItemContent(itemRef: DriveItemRef): Promise<ArrayBuffer>;
4
11
  //# sourceMappingURL=getDriveItemContent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getDriveItemContent.d.ts","sourceRoot":"","sources":["../../../src/operations/driveItem/getDriveItemContent.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAMjE,kGAAkG;AAClG,wBAA8B,mBAAmB,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,WAAW,CAAC,CAmB7F"}
1
+ {"version":3,"file":"getDriveItemContent.d.ts","sourceRoot":"","sources":["../../../src/operations/driveItem/getDriveItemContent.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAMjE;;;;;;;GAOG;AACH,wBAA8B,mBAAmB,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,WAAW,CAAC,CAmB7F"}
@@ -4,7 +4,14 @@ import { getCurrentAccessToken } from "../../services/accessToken.js";
4
4
  import { getContext } from "../../services/context.js";
5
5
  import { tryGetHttpAgent } from "../../services/httpAgent.js";
6
6
  import { generatePath } from "../../services/templatedPaths.js";
7
- /** Download drive item. @see https://learn.microsoft.com/en-us/graph/api/driveitem-get-content */
7
+ /**
8
+ * Download the content of a drive item.
9
+ *
10
+ * @param itemRef - A reference to the drive item to be downloaded.
11
+ * @returns The content of the drive item as an ArrayBuffer.
12
+ * @throws Error if the download fails.
13
+ * @see https://learn.microsoft.com/en-us/graph/api/driveitem-get-content
14
+ */
8
15
  export default async function getDriveItemContent(itemRef) {
9
16
  // Note this method doesn't match the standard pattern since the batching library doesn't support non-JSON return types, and there appears to be no value in adding support.
10
17
  const url = `${endpoint}${generatePath("/sites/{site-id}/drives/{drive-id}/items/{item-id}/content", itemRef)}`;
@@ -4,7 +4,7 @@ import { createDriveItemRef, driveItemPath } from "../../services/driveItem.js";
4
4
  import { generateTempFileName } from "../../services/temporaryFiles.js";
5
5
  import { createWorkbookRangeRef } from "../../services/workbookRange.js";
6
6
  import { createWorkbookWorksheetRef, defaultWorkbookWorksheetId } from "../../services/workbookWorksheet.js";
7
- import deleteDriveItemWithRetry from "../../tasks/deleteDriveItemWithRetry.js";
7
+ import tryDeleteDriveItem from "../../tasks/tryDeleteDriveItem.js";
8
8
  import calculateWorkbook from "../workbook/calculateWorkbook.js";
9
9
  import createWorkbook from "../workbook/createWorkbook.js";
10
10
  import updateWorkbookRange from "../workbookRange/updateWorkbookRange.js";
@@ -25,7 +25,7 @@ describe("getDriveItemContent", () => {
25
25
  expect(content.byteLength).toBeGreaterThan(0);
26
26
  }
27
27
  finally {
28
- await deleteDriveItemWithRetry(workbook);
28
+ await tryDeleteDriveItem(workbook);
29
29
  }
30
30
  });
31
31
  it("throws an error when trying to download a non-existent item", async () => {
@@ -1,5 +1,13 @@
1
1
  import type { DriveItemRef } from "../../models/DriveItemRef.ts";
2
2
  import type { GraphOperation } from "../../models/GraphOperation.ts";
3
- /** Initiate an asynchronous copy of an item. NOTE: The copied file may not be immediately available and polling is required. @see https://learn.microsoft.com/en-us/graph/api/driveitem-copy */
3
+ /**
4
+ * Initiate an asynchronous copy of an item. NOTE: The copied file may not be immediately available and polling is required.
5
+ *
6
+ * @param srcFileRef - A reference to the source file to be copied.
7
+ * @param dstFolderRef - A reference to the destination folder.
8
+ * @param dstFileName - The name of the copied file.
9
+ * @returns Nothing. The copied file may not be immediately available, and polling is required.
10
+ * @see https://learn.microsoft.com/en-us/graph/api/driveitem-copy
11
+ */
4
12
  export default function initiateCopyDriveItem(srcFileRef: DriveItemRef, dstFolderRef: DriveItemRef, dstFileName: string): GraphOperation<void>;
5
13
  //# sourceMappingURL=initiateCopyDriveItem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"initiateCopyDriveItem.d.ts","sourceRoot":"","sources":["../../../src/operations/driveItem/initiateCopyDriveItem.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAGrE,gMAAgM;AAChM,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,GAAG,cAAc,CAAC,IAAI,CAAC,CAkB7I"}
1
+ {"version":3,"file":"initiateCopyDriveItem.d.ts","sourceRoot":"","sources":["../../../src/operations/driveItem/initiateCopyDriveItem.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAGrE;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,GAAG,cAAc,CAAC,IAAI,CAAC,CAkB7I"}
@@ -1,6 +1,14 @@
1
1
  import { operation } from "../../graphApi.js";
2
2
  import { generatePath } from "../../services/templatedPaths.js";
3
- /** Initiate an asynchronous copy of an item. NOTE: The copied file may not be immediately available and polling is required. @see https://learn.microsoft.com/en-us/graph/api/driveitem-copy */
3
+ /**
4
+ * Initiate an asynchronous copy of an item. NOTE: The copied file may not be immediately available and polling is required.
5
+ *
6
+ * @param srcFileRef - A reference to the source file to be copied.
7
+ * @param dstFolderRef - A reference to the destination folder.
8
+ * @param dstFileName - The name of the copied file.
9
+ * @returns Nothing. The copied file may not be immediately available, and polling is required.
10
+ * @see https://learn.microsoft.com/en-us/graph/api/driveitem-copy
11
+ */
4
12
  export default function initiateCopyDriveItem(srcFileRef, dstFolderRef, dstFileName) {
5
13
  return operation({
6
14
  contextId: srcFileRef.contextId,
@@ -2,7 +2,7 @@ import { describe, expect, it } from "vitest";
2
2
  import { getDefaultDriveRef } from "../../services/drive.js";
3
3
  import { driveItemPath } from "../../services/driveItem.js";
4
4
  import { generateTempFileName } from "../../services/temporaryFiles.js";
5
- import deleteDriveItemWithRetry from "../../tasks/deleteDriveItemWithRetry.js";
5
+ import tryDeleteDriveItem from "../../tasks/tryDeleteDriveItem.js";
6
6
  import createFolder from "../drive/createFolder.js";
7
7
  import getDriveItemByPath from "./getDriveItemByPath.js";
8
8
  import initiateCopyDriveItem from "./initiateCopyDriveItem.js";
@@ -21,8 +21,8 @@ describe("initiateCopyDriveItem", () => {
21
21
  expect(copyFolder.webUrl?.endsWith(copyPath)).toBeTruthy();
22
22
  }
23
23
  finally {
24
- await deleteDriveItemWithRetry(srcFolder);
25
- await deleteDriveItemWithRetry(dstFolder);
24
+ await tryDeleteDriveItem(srcFolder);
25
+ await tryDeleteDriveItem(dstFolder);
26
26
  }
27
27
  });
28
28
  });
@@ -7,6 +7,12 @@ export type ListDriveItemResponse = {
7
7
  value: DriveItem[];
8
8
  "@odata.nextLink"?: string;
9
9
  };
10
- /** Retrieve the metadata for items in a drive by file path. Use a `DriveRef` to reference a drive root or `DriveItemRef` for a subfolder. @see https://learn.microsoft.com/en-us/graph/api/driveitem-list-children */
11
- export default function listDriveItems(parentRef?: DriveRef | DriveItemRef): GraphOperation<(DriveItem & DriveItemRef)[]>;
10
+ /**
11
+ * Retrieve the metadata for items in a drive or folder.
12
+ *
13
+ * @param parentRef - A reference to the parent drive or folder. Defaults to the root drive.
14
+ * @returns An array of drive items, each including its metadata and reference information.
15
+ * @see https://learn.microsoft.com/en-us/graph/api/driveitem-list-children
16
+ */
17
+ export default function listDriveItems(parentRef: DriveRef | DriveItemRef): GraphOperation<(DriveItem & DriveItemRef)[]>;
12
18
  //# sourceMappingURL=listDriveItems.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"listDriveItems.d.ts","sourceRoot":"","sources":["../../../src/operations/driveItem/listDriveItems.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAGlE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAKrE,MAAM,MAAM,qBAAqB,GAAG;IACnC,gBAAgB,EAAE,MAAM,CAAC;IACzB,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF,sNAAsN;AACtN,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,SAAS,GAAE,QAAQ,GAAG,YAAmC,GAAG,cAAc,CAAC,CAAC,SAAS,GAAG,YAAY,CAAC,EAAE,CAAC,CAwB9I"}
1
+ {"version":3,"file":"listDriveItems.d.ts","sourceRoot":"","sources":["../../../src/operations/driveItem/listDriveItems.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAGlE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAIrE,MAAM,MAAM,qBAAqB,GAAG;IACnC,gBAAgB,EAAE,MAAM,CAAC;IACzB,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,SAAS,EAAE,QAAQ,GAAG,YAAY,GAAG,cAAc,CAAC,CAAC,SAAS,GAAG,YAAY,CAAC,EAAE,CAAC,CAwBvH"}
@@ -1,9 +1,14 @@
1
1
  import { operation } from "../../graphApi.js";
2
- import { getDefaultDriveRef } from "../../services/drive.js";
3
2
  import { createDriveItemRef } from "../../services/driveItem.js";
4
3
  import { generatePath } from "../../services/templatedPaths.js";
5
- /** Retrieve the metadata for items in a drive by file path. Use a `DriveRef` to reference a drive root or `DriveItemRef` for a subfolder. @see https://learn.microsoft.com/en-us/graph/api/driveitem-list-children */
6
- export default function listDriveItems(parentRef = getDefaultDriveRef()) {
4
+ /**
5
+ * Retrieve the metadata for items in a drive or folder.
6
+ *
7
+ * @param parentRef - A reference to the parent drive or folder. Defaults to the root drive.
8
+ * @returns An array of drive items, each including its metadata and reference information.
9
+ * @see https://learn.microsoft.com/en-us/graph/api/driveitem-list-children
10
+ */
11
+ export default function listDriveItems(parentRef) {
7
12
  const pathSegment = parentRef.itemId ? "items/{item-id}" : "root";
8
13
  return operation({
9
14
  contextId: parentRef.contextId,
@@ -1,7 +1,7 @@
1
1
  import { describe, expect, it } from "vitest";
2
2
  import { getDefaultDriveRef } from "../../services/drive.js";
3
3
  import { generateTempFileName } from "../../services/temporaryFiles.js";
4
- import deleteDriveItemWithRetry from "../../tasks/deleteDriveItemWithRetry.js";
4
+ import tryDeleteDriveItem from "../../tasks/tryDeleteDriveItem.js";
5
5
  import createFolder from "../drive/createFolder.js";
6
6
  import listDriveItems from "./listDriveItems.js";
7
7
  describe("listDriveItems", () => {
@@ -18,7 +18,7 @@ describe("listDriveItems", () => {
18
18
  expect(items).toBeInstanceOf(Array);
19
19
  }
20
20
  finally {
21
- await deleteDriveItemWithRetry(folder);
21
+ await tryDeleteDriveItem(folder);
22
22
  }
23
23
  });
24
24
  });
@@ -1,6 +1,12 @@
1
1
  import type { Site } from "@microsoft/microsoft-graph-types";
2
2
  import type { GraphOperation } from "../../models/GraphOperation.ts";
3
3
  import type { SiteRef } from "../../models/SiteRef.ts";
4
- /** Retrieve properties for a site resource. @see https://learn.microsoft.com/en-us/graph/api/site-get */
4
+ /**
5
+ * Retrieve properties for a site resource.
6
+ *
7
+ * @param siteRef - A reference to the site.
8
+ * @returns The specified site, including its metadata and reference information.
9
+ * @see https://learn.microsoft.com/en-us/graph/api/site-get
10
+ */
5
11
  export default function getSite(siteRef: SiteRef): GraphOperation<Site & SiteRef>;
6
12
  //# sourceMappingURL=getSite.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getSite.d.ts","sourceRoot":"","sources":["../../../src/operations/site/getSite.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAGvD,yGAAyG;AACzG,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,cAAc,CAAC,IAAI,GAAG,OAAO,CAAC,CAehF"}
1
+ {"version":3,"file":"getSite.d.ts","sourceRoot":"","sources":["../../../src/operations/site/getSite.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAGvD;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,cAAc,CAAC,IAAI,GAAG,OAAO,CAAC,CAehF"}
@@ -1,6 +1,12 @@
1
1
  import { operation } from "../../graphApi.js";
2
2
  import { generatePath } from "../../services/templatedPaths.js";
3
- /** Retrieve properties for a site resource. @see https://learn.microsoft.com/en-us/graph/api/site-get */
3
+ /**
4
+ * Retrieve properties for a site resource.
5
+ *
6
+ * @param siteRef - A reference to the site.
7
+ * @returns The specified site, including its metadata and reference information.
8
+ * @see https://learn.microsoft.com/en-us/graph/api/site-get
9
+ */
4
10
  export default function getSite(siteRef) {
5
11
  return operation({
6
12
  contextId: siteRef.contextId,
@@ -4,6 +4,14 @@ import type { GraphOperation } from "../../models/GraphOperation.ts";
4
4
  import type { HostName } from "../../models/HostName.ts";
5
5
  import type { SiteName } from "../../models/SiteName.ts";
6
6
  import type { SiteRef } from "../../models/SiteRef.ts";
7
- /** Get site by name. @see https://learn.microsoft.com/en-us/graph/api/site-getbypath */
7
+ /**
8
+ * Get a site by its name.
9
+ *
10
+ * @param contextRef - A reference to the context.
11
+ * @param hostName - The host name of the site.
12
+ * @param siteName - The name of the site.
13
+ * @returns The specified site, including its metadata and reference information.
14
+ * @see https://learn.microsoft.com/en-us/graph/api/site-getbypath
15
+ */
8
16
  export default function getSiteByName(contextRef: ContextRef, hostName: HostName, siteName: SiteName): GraphOperation<Site & SiteRef>;
9
17
  //# sourceMappingURL=getSiteByName.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getSiteByName.d.ts","sourceRoot":"","sources":["../../../src/operations/site/getSiteByName.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AAE7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAIvD,wFAAwF;AACxF,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,GAAG,cAAc,CAAC,IAAI,GAAG,OAAO,CAAC,CAiBpI"}
1
+ {"version":3,"file":"getSiteByName.d.ts","sourceRoot":"","sources":["../../../src/operations/site/getSiteByName.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AAE7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAIvD;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,GAAG,cAAc,CAAC,IAAI,GAAG,OAAO,CAAC,CAiBpI"}
@@ -1,7 +1,15 @@
1
1
  import { operation } from "../../graphApi.js";
2
2
  import { createSiteRef } from "../../services/site.js";
3
3
  import { generatePath } from "../../services/templatedPaths.js";
4
- /** Get site by name. @see https://learn.microsoft.com/en-us/graph/api/site-getbypath */
4
+ /**
5
+ * Get a site by its name.
6
+ *
7
+ * @param contextRef - A reference to the context.
8
+ * @param hostName - The host name of the site.
9
+ * @param siteName - The name of the site.
10
+ * @returns The specified site, including its metadata and reference information.
11
+ * @see https://learn.microsoft.com/en-us/graph/api/site-getbypath
12
+ */
5
13
  export default function getSiteByName(contextRef, hostName, siteName) {
6
14
  return operation({
7
15
  contextId: contextRef.contextId,
@@ -2,6 +2,12 @@ import type { Site } from "@microsoft/microsoft-graph-types";
2
2
  import type { ContextRef } from "../../models/ContextRef.ts";
3
3
  import type { GraphOperation } from "../../models/GraphOperation.ts";
4
4
  import type { SiteRef } from "../../models/SiteRef.ts";
5
- /** List sites that are available. @see https://learn.microsoft.com/en-us/graph/api/site-list */
5
+ /**
6
+ * List accessible sites.
7
+ *
8
+ * @param contextRef - A reference to the context.
9
+ * @returns An array of sites, each including its metadata and reference information.
10
+ * @see https://learn.microsoft.com/en-us/graph/api/site-list
11
+ */
6
12
  export default function listSites(contextRef: ContextRef): GraphOperation<(Site & SiteRef)[]>;
7
13
  //# sourceMappingURL=listSites.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"listSites.d.ts","sourceRoot":"","sources":["../../../src/operations/site/listSites.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AAE7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAErE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAIvD,gGAAgG;AAChG,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,UAAU,EAAE,UAAU,GAAG,cAAc,CAAC,CAAC,IAAI,GAAG,OAAO,CAAC,EAAE,CAAC,CAuB5F"}
1
+ {"version":3,"file":"listSites.d.ts","sourceRoot":"","sources":["../../../src/operations/site/listSites.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AAE7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAErE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAIvD;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,UAAU,EAAE,UAAU,GAAG,cAAc,CAAC,CAAC,IAAI,GAAG,OAAO,CAAC,EAAE,CAAC,CAuB5F"}
@@ -1,7 +1,13 @@
1
1
  import { operation } from "../../graphApi.js";
2
2
  import { createSiteRef } from "../../services/site.js";
3
3
  import { generatePath } from "../../services/templatedPaths.js";
4
- /** List sites that are available. @see https://learn.microsoft.com/en-us/graph/api/site-list */
4
+ /**
5
+ * List accessible sites.
6
+ *
7
+ * @param contextRef - A reference to the context.
8
+ * @returns An array of sites, each including its metadata and reference information.
9
+ * @see https://learn.microsoft.com/en-us/graph/api/site-list
10
+ */
5
11
  export default function listSites(contextRef) {
6
12
  return operation({
7
13
  contextId: contextRef.contextId,
@@ -2,6 +2,13 @@ import type { Site } from "@microsoft/microsoft-graph-types";
2
2
  import type { ContextRef } from "../../models/ContextRef.ts";
3
3
  import type { GraphOperation } from "../../models/GraphOperation.ts";
4
4
  import type { SiteRef } from "../../models/SiteRef.ts";
5
- /** Find accessible sites that match keywords provided. @see https://learn.microsoft.com/en-us/graph/api/site-search */
5
+ /**
6
+ * Find accessible sites that match the provided keywords.
7
+ *
8
+ * @param contextRef - A reference to the context.
9
+ * @param search - The search keywords to find matching sites.
10
+ * @returns An array of sites that match the search criteria, each including its metadata and reference information.
11
+ * @see https://learn.microsoft.com/en-us/graph/api/site-search
12
+ */
6
13
  export default function searchSites(contextRef: ContextRef, search: string): GraphOperation<(Site & SiteRef)[]>;
7
14
  //# sourceMappingURL=searchSites.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"searchSites.d.ts","sourceRoot":"","sources":["../../../src/operations/site/searchSites.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AAE7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAErE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAIvD,uHAAuH;AACvH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,GAAG,cAAc,CAAC,CAAC,IAAI,GAAG,OAAO,CAAC,EAAE,CAAC,CAuB9G"}
1
+ {"version":3,"file":"searchSites.d.ts","sourceRoot":"","sources":["../../../src/operations/site/searchSites.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AAE7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAErE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAIvD;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,GAAG,cAAc,CAAC,CAAC,IAAI,GAAG,OAAO,CAAC,EAAE,CAAC,CAuB9G"}
@@ -1,7 +1,14 @@
1
1
  import { operation } from "../../graphApi.js";
2
2
  import { createSiteRef } from "../../services/site.js";
3
3
  import { generatePath } from "../../services/templatedPaths.js";
4
- /** Find accessible sites that match keywords provided. @see https://learn.microsoft.com/en-us/graph/api/site-search */
4
+ /**
5
+ * Find accessible sites that match the provided keywords.
6
+ *
7
+ * @param contextRef - A reference to the context.
8
+ * @param search - The search keywords to find matching sites.
9
+ * @returns An array of sites that match the search criteria, each including its metadata and reference information.
10
+ * @see https://learn.microsoft.com/en-us/graph/api/site-search
11
+ */
5
12
  export default function searchSites(contextRef, search) {
6
13
  return operation({
7
14
  contextId: contextRef.contextId,
@@ -1,6 +1,15 @@
1
1
  import type { Message } from "@microsoft/microsoft-graph-types";
2
2
  import type { ContextRef } from "../../models/ContextRef.ts";
3
3
  import type { GraphOperation } from "../../models/GraphOperation.ts";
4
- /** Send an email from the current or a specified user. @see https://learn.microsoft.com/en-us/graph/api/user-sendmail */
4
+ /**
5
+ * Send an email.
6
+ *
7
+ * @param contextRef - A reference to the context.
8
+ * @param sender - The email address of the sender or NULL for the current user. Must match a valid email address in this tenant.
9
+ * @param message - The email message to be sent.
10
+ * @returns Nothing.
11
+ * @throws InvalidArgumentError if the sender email address does not match the required pattern.
12
+ * @see https://learn.microsoft.com/en-us/graph/api/user-sendmail
13
+ */
5
14
  export default function userSendMail(contextRef: ContextRef, sender: string | null, message: Message): GraphOperation<void>;
6
15
  //# sourceMappingURL=userSendMail.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"userSendMail.d.ts","sourceRoot":"","sources":["../../../src/operations/user/userSendMail.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAGhE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAa,MAAM,gCAAgC,CAAC;AAMhF,yHAAyH;AACzH,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,EAAE,OAAO,EAAE,OAAO,GAAG,cAAc,CAAC,IAAI,CAAC,CAmB1H"}
1
+ {"version":3,"file":"userSendMail.d.ts","sourceRoot":"","sources":["../../../src/operations/user/userSendMail.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAGhE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAa,MAAM,gCAAgC,CAAC;AAMhF;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,EAAE,OAAO,EAAE,OAAO,GAAG,cAAc,CAAC,IAAI,CAAC,CAmB1H"}