microsoft-graph 2.0.0 → 2.2.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 (223) hide show
  1. package/.github/workflows/check.yml +23 -0
  2. package/.vscode/settings.json +8 -2
  3. package/LICENCE.md +96 -325
  4. package/biome.jsonc +16 -46
  5. package/dist/docs/getItem.js +11 -0
  6. package/dist/errors/EnvironmentVariableMissingError.d.ts.map +1 -1
  7. package/dist/errors/InvalidArgumentError.d.ts.map +1 -1
  8. package/dist/errors/NeverError.d.ts +4 -0
  9. package/dist/errors/NeverError.d.ts.map +1 -0
  10. package/dist/errors/NeverError.js +6 -0
  11. package/dist/errors/RequestFailedError.d.ts +1 -2
  12. package/dist/errors/RequestFailedError.d.ts.map +1 -1
  13. package/dist/errors/RequestFailedError.js +5 -13
  14. package/dist/graphApi.d.ts +6 -5
  15. package/dist/graphApi.d.ts.map +1 -1
  16. package/dist/graphApi.js +118 -75
  17. package/dist/microsoftGraph/errors/BadTemplateError.js +6 -0
  18. package/dist/microsoftGraph/errors/InvalidArgumentError.js +6 -0
  19. package/dist/microsoftGraph/errors/RequestFailedError.js +6 -0
  20. package/dist/microsoftGraph/graphApi.js +49 -0
  21. package/dist/microsoftGraph/helpers/openSite.js +12 -0
  22. package/dist/microsoftGraph/helpers/openWorkbook.js +23 -0
  23. package/dist/microsoftGraph/helpers/openWorksheet.js +7 -0
  24. package/dist/microsoftGraph/models/AccessToken.js +1 -0
  25. package/dist/microsoftGraph/models/DriveId.js +1 -0
  26. package/dist/microsoftGraph/models/DriveItemId.js +1 -0
  27. package/dist/microsoftGraph/models/DriveItemPath.js +1 -0
  28. package/dist/microsoftGraph/models/DriveItemRef.js +1 -0
  29. package/dist/microsoftGraph/models/DriveRef.js +1 -0
  30. package/dist/microsoftGraph/models/GraphOperation.js +1 -0
  31. package/dist/microsoftGraph/models/GraphOptions.js +1 -0
  32. package/dist/microsoftGraph/models/HostName.js +1 -0
  33. package/dist/microsoftGraph/models/Scope.js +1 -0
  34. package/dist/microsoftGraph/models/SiteId.js +1 -0
  35. package/dist/microsoftGraph/models/SiteName.js +1 -0
  36. package/dist/microsoftGraph/models/SiteRef.js +1 -0
  37. package/dist/microsoftGraph/models/WorkbookNamedRangeRef.js +1 -0
  38. package/dist/microsoftGraph/models/WorkbookRangeAddress.js +1 -0
  39. package/dist/microsoftGraph/models/WorkbookRangeName.js +1 -0
  40. package/dist/microsoftGraph/models/WorkbookRangeRef.js +1 -0
  41. package/dist/microsoftGraph/models/WorkbookRef.js +1 -0
  42. package/dist/microsoftGraph/models/WorkbookSessionId.js +1 -0
  43. package/dist/microsoftGraph/models/WorkbookWorksheetId.js +1 -0
  44. package/dist/microsoftGraph/models/WorkbookWorksheetRef.js +1 -0
  45. package/dist/microsoftGraph/models/regenerate-dtos.js +68 -0
  46. package/dist/microsoftGraph/operations/drive/createFolder.js +17 -0
  47. package/dist/microsoftGraph/operations/drive/listDrives.js +11 -0
  48. package/dist/microsoftGraph/operations/driveItem/copyDriveItem.js +20 -0
  49. package/dist/microsoftGraph/operations/driveItem/deleteDriveItem.js +11 -0
  50. package/dist/microsoftGraph/operations/driveItem/getDriveItem.js +11 -0
  51. package/dist/microsoftGraph/operations/driveItem/getDriveItemByPath.js +11 -0
  52. package/dist/microsoftGraph/operations/driveItem/listDriveItems.js +11 -0
  53. package/dist/microsoftGraph/operations/site/getSite.js +11 -0
  54. package/dist/microsoftGraph/operations/site/getSiteByName.js +11 -0
  55. package/dist/microsoftGraph/operations/site/listSites.js +11 -0
  56. package/dist/microsoftGraph/operations/site/searchSites.js +11 -0
  57. package/dist/microsoftGraph/operations/workbook/createWorkbook.js +14 -0
  58. package/dist/microsoftGraph/operations/workbook/deleteWorkbook.js +5 -0
  59. package/dist/microsoftGraph/operations/workbookRange/clearWorkbookRange.js +16 -0
  60. package/dist/microsoftGraph/operations/workbookRange/deleteWorkbookRange.js +16 -0
  61. package/dist/microsoftGraph/operations/workbookRange/getWorkbookNamedRange.js +13 -0
  62. package/dist/microsoftGraph/operations/workbookRange/getWorkbookRange.js +13 -0
  63. package/dist/microsoftGraph/operations/workbookRange/getWorkbookUsedRange.js +13 -0
  64. package/dist/microsoftGraph/operations/workbookRange/insertWorkbookCells.js +16 -0
  65. package/dist/microsoftGraph/operations/workbookRange/updateWorkbookNamedRange.js +14 -0
  66. package/dist/microsoftGraph/operations/workbookRange/updateWorkbookRange.js +14 -0
  67. package/dist/microsoftGraph/operations/workbookSession/closeWorkbookSession.js +17 -0
  68. package/dist/microsoftGraph/operations/workbookSession/createWorkbookSession.js +15 -0
  69. package/dist/microsoftGraph/operations/workbookSession/refreshWorkbookSession.js +18 -0
  70. package/dist/microsoftGraph/operations/workbookWorksheet/createWorkbookWorksheet.js +16 -0
  71. package/dist/microsoftGraph/operations/workbookWorksheet/deleteWorkbookWorksheet.js +13 -0
  72. package/dist/microsoftGraph/operations/workbookWorksheet/listWorkbookWorksheets.js +13 -0
  73. package/dist/microsoftGraph/operations/workbookWorksheet/updateWorkbookWorksheet.js +14 -0
  74. package/dist/microsoftGraph/services/accessToken.js +12 -0
  75. package/dist/microsoftGraph/services/configuration.js +20 -0
  76. package/dist/microsoftGraph/services/sharepointUrl.js +23 -0
  77. package/dist/microsoftGraph/services/stringCaseConversion.js +3 -0
  78. package/dist/microsoftGraph/services/templatedPaths.js +19 -0
  79. package/dist/models/AccessToken.d.ts.map +1 -1
  80. package/dist/models/ClientId.d.ts.map +1 -1
  81. package/dist/models/ClientSecret.d.ts.map +1 -1
  82. package/dist/models/Context.d.ts.map +1 -1
  83. package/dist/models/ContextId.d.ts.map +1 -1
  84. package/dist/models/ContextRef.d.ts.map +1 -1
  85. package/dist/models/DriveId.d.ts.map +1 -1
  86. package/dist/models/DriveItemId.d.ts.map +1 -1
  87. package/dist/models/DriveItemPath.d.ts.map +1 -1
  88. package/dist/models/DriveItemRef.d.ts.map +1 -1
  89. package/dist/models/DriveRef.d.ts.map +1 -1
  90. package/dist/models/GraphOperation.d.ts.map +1 -1
  91. package/dist/models/GraphOperationDefinition.d.ts.map +1 -1
  92. package/dist/models/HostName.d.ts.map +1 -1
  93. package/dist/models/HttpProxy.d.ts.map +1 -1
  94. package/dist/models/Scope.d.ts.map +1 -1
  95. package/dist/models/SiteId.d.ts.map +1 -1
  96. package/dist/models/SiteName.d.ts.map +1 -1
  97. package/dist/models/SiteRef.d.ts.map +1 -1
  98. package/dist/models/TenantId.d.ts.map +1 -1
  99. package/dist/models/WorkbookNamedRangeRef.d.ts.map +1 -1
  100. package/dist/models/WorkbookRangeAddress.d.ts.map +1 -1
  101. package/dist/models/WorkbookRangeName.d.ts.map +1 -1
  102. package/dist/models/WorkbookRangeRef.d.ts.map +1 -1
  103. package/dist/models/WorkbookRef.d.ts.map +1 -1
  104. package/dist/models/WorkbookSessionId.d.ts.map +1 -1
  105. package/dist/models/WorkbookTableId.d.ts.map +1 -1
  106. package/dist/models/WorkbookTableRef.d.ts.map +1 -1
  107. package/dist/models/WorkbookWorksheetId.d.ts.map +1 -1
  108. package/dist/models/WorkbookWorksheetName.d.ts.map +1 -1
  109. package/dist/models/WorkbookWorksheetRef.d.ts.map +1 -1
  110. package/dist/operations/drive/createFolder.d.ts.map +1 -1
  111. package/dist/operations/drive/createFolder.js +3 -3
  112. package/dist/operations/drive/createFolder.test.js +2 -2
  113. package/dist/operations/drive/listDrives.d.ts.map +1 -1
  114. package/dist/operations/drive/listDrives.js +4 -4
  115. package/dist/operations/driveItem/deleteDriveItem.js +1 -1
  116. package/dist/operations/driveItem/deleteDriveItem.test.js +2 -2
  117. package/dist/operations/driveItem/getDriveItem.js +3 -3
  118. package/dist/operations/driveItem/getDriveItem.test.js +2 -2
  119. package/dist/operations/driveItem/getDriveItemByPath.js +3 -3
  120. package/dist/operations/driveItem/getDriveItemByPath.test.js +2 -2
  121. package/dist/operations/driveItem/getDriveItemContent.d.ts.map +1 -1
  122. package/dist/operations/driveItem/getDriveItemContent.js +3 -3
  123. package/dist/operations/driveItem/getDriveItemContent.test.js +1 -3
  124. package/dist/operations/driveItem/initiateCopyDriveItem.js +1 -1
  125. package/dist/operations/driveItem/initiateCopyDriveItem.test.js +2 -2
  126. package/dist/operations/driveItem/listDriveItems.d.ts.map +1 -1
  127. package/dist/operations/driveItem/listDriveItems.js +3 -3
  128. package/dist/operations/driveItem/listDriveItems.test.js +1 -1
  129. package/dist/operations/site/getSite.js +3 -3
  130. package/dist/operations/site/getSiteByName.js +2 -2
  131. package/dist/operations/site/listSites.js +3 -3
  132. package/dist/operations/site/listSites.test.js +1 -1
  133. package/dist/operations/site/searchSites.js +3 -3
  134. package/dist/operations/user/userSendMail.js +2 -3
  135. package/dist/operations/workbook/calculateWorkbook.d.ts.map +1 -1
  136. package/dist/operations/workbook/calculateWorkbook.js +2 -2
  137. package/dist/operations/workbook/calculateWorkbook.test.js +3 -3
  138. package/dist/operations/workbook/createWorkbook.js +3 -3
  139. package/dist/operations/workbook/deleteWorkbook.d.ts.map +1 -1
  140. package/dist/operations/workbookRange/clearWorkbookRange.d.ts.map +1 -1
  141. package/dist/operations/workbookRange/clearWorkbookRange.js +2 -2
  142. package/dist/operations/workbookRange/clearWorkbookRange.test.js +21 -9
  143. package/dist/operations/workbookRange/deleteWorkbookRange.d.ts.map +1 -1
  144. package/dist/operations/workbookRange/deleteWorkbookRange.js +2 -2
  145. package/dist/operations/workbookRange/deleteWorkbookRange.test.js +21 -9
  146. package/dist/operations/workbookRange/getWorkbookNamedRange.js +3 -3
  147. package/dist/operations/workbookRange/getWorkbookUsedRange.js +3 -3
  148. package/dist/operations/workbookRange/getWorkbookUsedRange.test.js +14 -8
  149. package/dist/operations/workbookRange/getWorkbookVisibleRange.d.ts.map +1 -1
  150. package/dist/operations/workbookRange/getWorkbookVisibleRange.js +4 -3
  151. package/dist/operations/workbookRange/getWorkbookVisibleRange.test.js +21 -15
  152. package/dist/operations/workbookRange/insertWorkbookCells.d.ts.map +1 -1
  153. package/dist/operations/workbookRange/insertWorkbookCells.js +4 -4
  154. package/dist/operations/workbookRange/insertWorkbookCells.test.js +3 -3
  155. package/dist/operations/workbookRange/updateWorkbookNamedRange.js +1 -1
  156. package/dist/operations/workbookRange/updateWorkbookRange.js +3 -3
  157. package/dist/operations/workbookRange/updateWorkbookRange.test.js +13 -7
  158. package/dist/operations/workbookSession/closeWorkbookSession.js +1 -1
  159. package/dist/operations/workbookSession/createWorkbookSession.js +5 -5
  160. package/dist/operations/workbookSession/refreshWorkbookSession.js +1 -1
  161. package/dist/operations/workbookTable/createWorkbookTable.js +4 -4
  162. package/dist/operations/workbookTable/createWorkbookTable.test.js +2 -2
  163. package/dist/operations/workbookTable/getWorkbookTable.js +3 -3
  164. package/dist/operations/workbookTable/getWorkbookTable.test.js +2 -2
  165. package/dist/operations/workbookTable/getWorkbookTableBodyRange.js +3 -3
  166. package/dist/operations/workbookTable/getWorkbookTableBodyRange.test.js +4 -4
  167. package/dist/operations/workbookTable/getWorkbookTableHeaderRange.js +3 -3
  168. package/dist/operations/workbookTable/getWorkbookTableHeaderRange.test.js +3 -3
  169. package/dist/operations/workbookTable/listWorkbookTableColumns.js +2 -2
  170. package/dist/operations/workbookTable/listWorkbookTableColumns.test.js +2 -2
  171. package/dist/operations/workbookTable/listWorkbookTableRows.js +2 -2
  172. package/dist/operations/workbookTable/listWorkbookTableRows.test.js +2 -2
  173. package/dist/operations/workbookTable/listWorkbookTables.js +3 -3
  174. package/dist/operations/workbookTable/listWorkbookTables.test.js +2 -2
  175. package/dist/operations/workbookWorksheet/createWorkbookWorksheet.js +4 -4
  176. package/dist/operations/workbookWorksheet/createWorkbookWorksheet.test.js +3 -3
  177. package/dist/operations/workbookWorksheet/deleteWorkbookWorksheet.d.ts.map +1 -1
  178. package/dist/operations/workbookWorksheet/deleteWorkbookWorksheet.js +1 -1
  179. package/dist/operations/workbookWorksheet/deleteWorkbookWorksheet.test.js +3 -3
  180. package/dist/operations/workbookWorksheet/getWorkbookWorksheetRange.js +3 -3
  181. package/dist/operations/workbookWorksheet/getWorkbookWorksheetRange.test.js +7 -4
  182. package/dist/operations/workbookWorksheet/listWorkbookWorksheets.js +3 -3
  183. package/dist/operations/workbookWorksheet/listWorkbookWorksheets.test.js +5 -5
  184. package/dist/operations/workbookWorksheet/updateWorkbookWorksheet.d.ts.map +1 -1
  185. package/dist/operations/workbookWorksheet/updateWorkbookWorksheet.js +3 -3
  186. package/dist/operations/workbookWorksheet/updateWorkbookWorksheet.test.js +3 -3
  187. package/dist/services/context.d.ts.map +1 -1
  188. package/dist/services/context.js +2 -2
  189. package/dist/services/drive.d.ts.map +1 -1
  190. package/dist/services/driveItem.d.ts.map +1 -1
  191. package/dist/services/driveItem.js +2 -6
  192. package/dist/services/httpStatus.d.ts +1 -0
  193. package/dist/services/httpStatus.d.ts.map +1 -1
  194. package/dist/services/httpStatus.js +3 -0
  195. package/dist/services/random.js +2 -2
  196. package/dist/services/sharepointUrl.test.js +6 -6
  197. package/dist/services/site.js +2 -2
  198. package/dist/services/sleep.js +1 -1
  199. package/dist/services/templatedPaths.d.ts.map +1 -1
  200. package/dist/services/workbookRange.d.ts.map +1 -1
  201. package/dist/services/workbookRange.js +1 -1
  202. package/dist/services/workbookTable.d.ts.map +1 -1
  203. package/dist/services/workbookTable.js +1 -1
  204. package/dist/services/workbookWorksheet.d.ts.map +1 -1
  205. package/dist/services/workbookWorksheet.js +1 -1
  206. package/dist/tasks/createWorkbookAndStartSession.js +1 -1
  207. package/dist/tasks/getRangeLastUsedCell.d.ts.map +1 -1
  208. package/dist/tasks/getRangeLastUsedCell.js +1 -1
  209. package/dist/tasks/getRangeLastUsedCell.test.js +9 -9
  210. package/dist/tasks/getWorkbookTableVisibleBody.test.js +21 -21
  211. package/dist/tasks/getWorkbookWorksheetRefByName.js +1 -1
  212. package/dist/tasks/safeDeleteWorkbook.d.ts +4 -0
  213. package/dist/tasks/safeDeleteWorkbook.d.ts.map +1 -0
  214. package/dist/tasks/safeDeleteWorkbook.js +9 -0
  215. package/dist/tasks/setColumnHidden.js +1 -2
  216. package/dist/tasks/setColumnHidden.test.js +5 -5
  217. package/dist/tasks/setRowHidden.js +1 -2
  218. package/dist/tasks/setRowHidden.test.js +5 -5
  219. package/dist/tsconfig.tsbuildinfo +1 -0
  220. package/docs/lockedWorkbook.md +2 -0
  221. package/docs/pivotTables.md +9 -0
  222. package/docs/requestRetrying.md +3 -0
  223. package/package.json +512 -3
@@ -0,0 +1,23 @@
1
+ name: Biome check
2
+
3
+ on:
4
+ pull_request:
5
+ branches: [main]
6
+ paths:
7
+ - '**/*.ts'
8
+ - '**/*.js'
9
+ - 'biome.json'
10
+ jobs:
11
+ biome:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - name: Checkout
15
+ uses: actions/checkout@v3
16
+ - name: Set up Node.js
17
+ uses: actions/setup-node@v3
18
+ with:
19
+ node-version: 23
20
+ - name: Install packages
21
+ run: npm clean-install --include dev --no-audit --no-fund
22
+ - name: Run Biome check
23
+ run: npm run check || exit 1
@@ -1,10 +1,16 @@
1
1
  {
2
- "editor.formatOnSave": true,
3
2
  "[typescript]": {
4
- "editor.defaultFormatter": "vscode.typescript-language-features"
3
+ "editor.defaultFormatter": "biomejs.biome"
4
+ },
5
+ "[json]": {
6
+ "editor.defaultFormatter": "biomejs.biome"
7
+ },
8
+ "[jsonc]": {
9
+ "editor.defaultFormatter": "biomejs.biome"
5
10
  },
6
11
  "cSpell.words": [
7
12
  "Entra",
13
+ "FSAI",
8
14
  "msgraph"
9
15
  ],
10
16
  }
package/LICENCE.md CHANGED
@@ -1,360 +1,131 @@
1
- Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International
2
- Public License
3
-
4
- By exercising the Licensed Rights (defined below), You accept and agree
5
- to be bound by the terms and conditions of this Creative Commons
6
- Attribution-NonCommercial-ShareAlike 4.0 International Public License
7
- ("Public License"). To the extent this Public License may be
8
- interpreted as a contract, You are granted the Licensed Rights in
9
- consideration of Your acceptance of these terms and conditions, and the
10
- Licensor grants You such rights in consideration of benefits the
11
- Licensor receives from making the Licensed Material available under
12
- these terms and conditions.
13
-
14
-
15
- Section 1 -- Definitions.
16
-
17
- a. Adapted Material means material subject to Copyright and Similar
18
- Rights that is derived from or based upon the Licensed Material
19
- and in which the Licensed Material is translated, altered,
20
- arranged, transformed, or otherwise modified in a manner requiring
21
- permission under the Copyright and Similar Rights held by the
22
- Licensor. For purposes of this Public License, where the Licensed
23
- Material is a musical work, performance, or sound recording,
24
- Adapted Material is always produced where the Licensed Material is
25
- synched in timed relation with a moving image.
26
-
27
- b. Adapter's License means the license You apply to Your Copyright
28
- and Similar Rights in Your contributions to Adapted Material in
29
- accordance with the terms and conditions of this Public License.
30
-
31
- c. BY-NC-SA Compatible License means a license listed at
32
- creativecommons.org/compatiblelicenses, approved by Creative
33
- Commons as essentially the equivalent of this Public License.
34
-
35
- d. Copyright and Similar Rights means copyright and/or similar rights
36
- closely related to copyright including, without limitation,
37
- performance, broadcast, sound recording, and Sui Generis Database
38
- Rights, without regard to how the rights are labeled or
39
- categorized. For purposes of this Public License, the rights
40
- specified in Section 2(b)(1)-(2) are not Copyright and Similar
41
- Rights.
42
-
43
- e. Effective Technological Measures means those measures that, in the
44
- absence of proper authority, may not be circumvented under laws
45
- fulfilling obligations under Article 11 of the WIPO Copyright
46
- Treaty adopted on December 20, 1996, and/or similar international
47
- agreements.
48
-
49
- f. Exceptions and Limitations means fair use, fair dealing, and/or
50
- any other exception or limitation to Copyright and Similar Rights
51
- that applies to Your use of the Licensed Material.
52
-
53
- g. License Elements means the license attributes listed in the name
54
- of a Creative Commons Public License. The License Elements of this
55
- Public License are Attribution, NonCommercial, and ShareAlike.
56
-
57
- h. Licensed Material means the artistic or literary work, database,
58
- or other material to which the Licensor applied this Public
59
- License.
60
-
61
- i. Licensed Rights means the rights granted to You subject to the
62
- terms and conditions of this Public License, which are limited to
63
- all Copyright and Similar Rights that apply to Your use of the
64
- Licensed Material and that the Licensor has authority to license.
65
-
66
- j. Licensor means the individual(s) or entity(ies) granting rights
67
- under this Public License.
68
-
69
- k. NonCommercial means not primarily intended for or directed towards
70
- commercial advantage or monetary compensation. For purposes of
71
- this Public License, the exchange of the Licensed Material for
72
- other material subject to Copyright and Similar Rights by digital
73
- file-sharing or similar means is NonCommercial provided there is
74
- no payment of monetary compensation in connection with the
75
- exchange.
76
-
77
- l. Share means to provide material to the public by any means or
78
- process that requires permission under the Licensed Rights, such
79
- as reproduction, public display, public performance, distribution,
80
- dissemination, communication, or importation, and to make material
81
- available to the public including in ways that members of the
82
- public may access the material from a place and at a time
83
- individually chosen by them.
84
-
85
- m. Sui Generis Database Rights means rights other than copyright
86
- resulting from Directive 96/9/EC of the European Parliament and of
87
- the Council of 11 March 1996 on the legal protection of databases,
88
- as amended and/or succeeded, as well as other essentially
89
- equivalent rights anywhere in the world.
90
-
91
- n. You means the individual or entity exercising the Licensed Rights
92
- under this Public License. Your has a corresponding meaning.
93
-
94
-
95
- Section 2 -- Scope.
96
-
97
- a. License grant.
98
-
99
- 1. Subject to the terms and conditions of this Public License,
100
- the Licensor hereby grants You a worldwide, royalty-free,
101
- non-sublicensable, non-exclusive, irrevocable license to
102
- exercise the Licensed Rights in the Licensed Material to:
103
-
104
- a. reproduce and Share the Licensed Material, in whole or
105
- in part, for NonCommercial purposes only; and
106
-
107
- b. produce, reproduce, and Share Adapted Material for
108
- NonCommercial purposes only.
109
-
110
- 2. Exceptions and Limitations. For the avoidance of doubt, where
111
- Exceptions and Limitations apply to Your use, this Public
112
- License does not apply, and You do not need to comply with
113
- its terms and conditions.
114
-
115
- 3. Term. The term of this Public License is specified in Section
116
- 6(a).
117
-
118
- 4. Media and formats; technical modifications allowed. The
119
- Licensor authorizes You to exercise the Licensed Rights in
120
- all media and formats whether now known or hereafter created,
121
- and to make technical modifications necessary to do so. The
122
- Licensor waives and/or agrees not to assert any right or
123
- authority to forbid You from making technical modifications
124
- necessary to exercise the Licensed Rights, including
125
- technical modifications necessary to circumvent Effective
126
- Technological Measures. For purposes of this Public License,
127
- simply making modifications authorized by this Section 2(a)
128
- (4) never produces Adapted Material.
129
-
130
- 5. Downstream recipients.
131
-
132
- a. Offer from the Licensor -- Licensed Material. Every
133
- recipient of the Licensed Material automatically
134
- receives an offer from the Licensor to exercise the
135
- Licensed Rights under the terms and conditions of this
136
- Public License.
137
-
138
- b. Additional offer from the Licensor -- Adapted Material.
139
- Every recipient of Adapted Material from You
140
- automatically receives an offer from the Licensor to
141
- exercise the Licensed Rights in the Adapted Material
142
- under the conditions of the Adapter's License You apply.
143
-
144
- c. No downstream restrictions. You may not offer or impose
145
- any additional or different terms or conditions on, or
146
- apply any Effective Technological Measures to, the
147
- Licensed Material if doing so restricts exercise of the
148
- Licensed Rights by any recipient of the Licensed
149
- Material.
150
-
151
- 6. No endorsement. Nothing in this Public License constitutes or
152
- may be construed as permission to assert or imply that You
153
- are, or that Your use of the Licensed Material is, connected
154
- with, or sponsored, endorsed, or granted official status by,
155
- the Licensor or others designated to receive attribution as
156
- provided in Section 3(a)(1)(A)(i).
157
-
158
- b. Other rights.
159
-
160
- 1. Moral rights, such as the right of integrity, are not
161
- licensed under this Public License, nor are publicity,
162
- privacy, and/or other similar personality rights; however, to
163
- the extent possible, the Licensor waives and/or agrees not to
164
- assert any such rights held by the Licensor to the limited
165
- extent necessary to allow You to exercise the Licensed
166
- Rights, but not otherwise.
167
-
168
- 2. Patent and trademark rights are not licensed under this
169
- Public License.
170
-
171
- 3. To the extent possible, the Licensor waives any right to
172
- collect royalties from You for the exercise of the Licensed
173
- Rights, whether directly or through a collecting society
174
- under any voluntary or waivable statutory or compulsory
175
- licensing scheme. In all other cases the Licensor expressly
176
- reserves any right to collect such royalties, including when
177
- the Licensed Material is used other than for NonCommercial
178
- purposes.
179
-
180
-
181
- Section 3 -- License Conditions.
182
-
183
- Your exercise of the Licensed Rights is expressly made subject to the
184
- following conditions.
185
-
186
- a. Attribution.
187
-
188
- 1. If You Share the Licensed Material (including in modified
189
- form), You must:
190
-
191
- a. retain the following if it is supplied by the Licensor
192
- with the Licensed Material:
193
-
194
- i. identification of the creator(s) of the Licensed
195
- Material and any others designated to receive
196
- attribution, in any reasonable manner requested by
197
- the Licensor (including by pseudonym if
198
- designated);
199
-
200
- ii. a copyright notice;
201
-
202
- iii. a notice that refers to this Public License;
203
-
204
- iv. a notice that refers to the disclaimer of
205
- warranties;
206
-
207
- v. a URI or hyperlink to the Licensed Material to the
208
- extent reasonably practicable;
209
-
210
- b. indicate if You modified the Licensed Material and
211
- retain an indication of any previous modifications; and
212
-
213
- c. indicate the Licensed Material is licensed under this
214
- Public License, and include the text of, or the URI or
215
- hyperlink to, this Public License.
216
-
217
- 2. You may satisfy the conditions in Section 3(a)(1) in any
218
- reasonable manner based on the medium, means, and context in
219
- which You Share the Licensed Material. For example, it may be
220
- reasonable to satisfy the conditions by providing a URI or
221
- hyperlink to a resource that includes the required
222
- information.
223
- 3. If requested by the Licensor, You must remove any of the
224
- information required by Section 3(a)(1)(A) to the extent
225
- reasonably practicable.
226
-
227
- b. ShareAlike.
1
+ # PolyForm Noncommercial License 1.0.0
228
2
 
229
- In addition to the conditions in Section 3(a), if You Share
230
- Adapted Material You produce, the following conditions also apply.
3
+ <https://polyformproject.org/licenses/noncommercial/1.0.0>
231
4
 
232
- 1. The Adapter's License You apply must be a Creative Commons
233
- license with the same License Elements, this version or
234
- later, or a BY-NC-SA Compatible License.
5
+ ## Acceptance
235
6
 
236
- 2. You must include the text of, or the URI or hyperlink to, the
237
- Adapter's License You apply. You may satisfy this condition
238
- in any reasonable manner based on the medium, means, and
239
- context in which You Share Adapted Material.
7
+ In order to get any license under these terms, you must agree
8
+ to them as both strict obligations and conditions to all
9
+ your licenses.
240
10
 
241
- 3. You may not offer or impose any additional or different terms
242
- or conditions on, or apply any Effective Technological
243
- Measures to, Adapted Material that restrict exercise of the
244
- rights granted under the Adapter's License You apply.
11
+ ## Copyright License
245
12
 
13
+ The licensor grants you a copyright license for the
14
+ software to do everything you might do with the software
15
+ that would otherwise infringe the licensor's copyright
16
+ in it for any permitted purpose. However, you may
17
+ only distribute the software according to [Distribution
18
+ License](#distribution-license) and make changes or new works
19
+ based on the software according to [Changes and New Works
20
+ License](#changes-and-new-works-license).
246
21
 
247
- Section 4 -- Sui Generis Database Rights.
22
+ ## Distribution License
248
23
 
249
- Where the Licensed Rights include Sui Generis Database Rights that
250
- apply to Your use of the Licensed Material:
24
+ The licensor grants you an additional copyright license
25
+ to distribute copies of the software. Your license
26
+ to distribute covers distributing the software with
27
+ changes and new works permitted by [Changes and New Works
28
+ License](#changes-and-new-works-license).
251
29
 
252
- a. for the avoidance of doubt, Section 2(a)(1) grants You the right
253
- to extract, reuse, reproduce, and Share all or a substantial
254
- portion of the contents of the database for NonCommercial purposes
255
- only;
30
+ ## Notices
256
31
 
257
- b. if You include all or a substantial portion of the database
258
- contents in a database in which You have Sui Generis Database
259
- Rights, then the database in which You have Sui Generis Database
260
- Rights (but not its individual contents) is Adapted Material,
261
- including for purposes of Section 3(b); and
32
+ You must ensure that anyone who gets a copy of any part of
33
+ the software from you also gets a copy of these terms or the
34
+ URL for them above, as well as copies of any plain-text lines
35
+ beginning with `Required Notice:` that the licensor provided
36
+ with the software. For example:
262
37
 
263
- c. You must comply with the conditions in Section 3(a) if You Share
264
- all or a substantial portion of the contents of the database.
38
+ > Required Notice: Copyright Yoyodyne, Inc. (http://example.com)
265
39
 
266
- For the avoidance of doubt, this Section 4 supplements and does not
267
- replace Your obligations under this Public License where the Licensed
268
- Rights include other Copyright and Similar Rights.
40
+ ## Changes and New Works License
269
41
 
42
+ The licensor grants you an additional copyright license to
43
+ make changes and new works based on the software for any
44
+ permitted purpose.
270
45
 
271
- Section 5 -- Disclaimer of Warranties and Limitation of Liability.
46
+ ## Patent License
272
47
 
273
- a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
274
- EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
275
- AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
276
- ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
277
- IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
278
- WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
279
- PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
280
- ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
281
- KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
282
- ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
48
+ The licensor grants you a patent license for the software that
49
+ covers patent claims the licensor can license, or becomes able
50
+ to license, that you would infringe by using the software.
283
51
 
284
- b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
285
- TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
286
- NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
287
- INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
288
- COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
289
- USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
290
- ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
291
- DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
292
- IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
52
+ ## Noncommercial Purposes
293
53
 
294
- c. The disclaimer of warranties and limitation of liability provided
295
- above shall be interpreted in a manner that, to the extent
296
- possible, most closely approximates an absolute disclaimer and
297
- waiver of all liability.
54
+ Any noncommercial purpose is a permitted purpose.
298
55
 
56
+ ## Personal Uses
299
57
 
300
- Section 6 -- Term and Termination.
58
+ Personal use for research, experiment, and testing for
59
+ the benefit of public knowledge, personal study, private
60
+ entertainment, hobby projects, amateur pursuits, or religious
61
+ observance, without any anticipated commercial application,
62
+ is use for a permitted purpose.
301
63
 
302
- a. This Public License applies for the term of the Copyright and
303
- Similar Rights licensed here. However, if You fail to comply with
304
- this Public License, then Your rights under this Public License
305
- terminate automatically.
64
+ ## Noncommercial Organizations
306
65
 
307
- b. Where Your right to use the Licensed Material has terminated under
308
- Section 6(a), it reinstates:
66
+ Use by any charitable organization, educational institution,
67
+ public research organization, public safety or health
68
+ organization, environmental protection organization,
69
+ or government institution is use for a permitted purpose
70
+ regardless of the source of funding or obligations resulting
71
+ from the funding.
309
72
 
310
- 1. automatically as of the date the violation is cured, provided
311
- it is cured within 30 days of Your discovery of the
312
- violation; or
73
+ ## Fair Use
313
74
 
314
- 2. upon express reinstatement by the Licensor.
75
+ You may have "fair use" rights for the software under the
76
+ law. These terms do not limit them.
315
77
 
316
- For the avoidance of doubt, this Section 6(b) does not affect any
317
- right the Licensor may have to seek remedies for Your violations
318
- of this Public License.
78
+ ## No Other Rights
319
79
 
320
- c. For the avoidance of doubt, the Licensor may also offer the
321
- Licensed Material under separate terms or conditions or stop
322
- distributing the Licensed Material at any time; however, doing so
323
- will not terminate this Public License.
80
+ These terms do not allow you to sublicense or transfer any of
81
+ your licenses to anyone else, or prevent the licensor from
82
+ granting licenses to anyone else. These terms do not imply
83
+ any other licenses.
324
84
 
325
- d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
326
- License.
85
+ ## Patent Defense
327
86
 
87
+ If you make any written claim that the software infringes or
88
+ contributes to infringement of any patent, your patent license
89
+ for the software granted under these terms ends immediately. If
90
+ your company makes such a claim, your patent license ends
91
+ immediately for work on behalf of your company.
328
92
 
329
- Section 7 -- Other Terms and Conditions.
93
+ ## Violations
330
94
 
331
- a. The Licensor shall not be bound by any additional or different
332
- terms or conditions communicated by You unless expressly agreed.
95
+ The first time you are notified in writing that you have
96
+ violated any of these terms, or done anything with the software
97
+ not covered by your licenses, your licenses can nonetheless
98
+ continue if you come into full compliance with these terms,
99
+ and take practical steps to correct past violations, within
100
+ 32 days of receiving notice. Otherwise, all your licenses
101
+ end immediately.
333
102
 
334
- b. Any arrangements, understandings, or agreements regarding the
335
- Licensed Material not stated herein are separate from and
336
- independent of the terms and conditions of this Public License.
103
+ ## No Liability
337
104
 
105
+ ***As far as the law allows, the software comes as is, without
106
+ any warranty or condition, and the licensor will not be liable
107
+ to you for any damages arising out of these terms or the use
108
+ or nature of the software, under any kind of legal claim.***
338
109
 
339
- Section 8 -- Interpretation.
110
+ ## Definitions
340
111
 
341
- a. For the avoidance of doubt, this Public License does not, and
342
- shall not be interpreted to, reduce, limit, restrict, or impose
343
- conditions on any use of the Licensed Material that could lawfully
344
- be made without permission under this Public License.
112
+ The **licensor** is the individual or entity offering these
113
+ terms, and the **software** is the software the licensor makes
114
+ available under these terms.
345
115
 
346
- b. To the extent possible, if any provision of this Public License is
347
- deemed unenforceable, it shall be automatically reformed to the
348
- minimum extent necessary to make it enforceable. If the provision
349
- cannot be reformed, it shall be severed from this Public License
350
- without affecting the enforceability of the remaining terms and
351
- conditions.
116
+ **You** refers to the individual or entity agreeing to these
117
+ terms.
352
118
 
353
- c. No term or condition of this Public License will be waived and no
354
- failure to comply consented to unless expressly agreed to by the
355
- Licensor.
119
+ **Your company** is any legal entity, sole proprietorship,
120
+ or other kind of organization that you work for, plus all
121
+ organizations that have control over, are under the control of,
122
+ or are under common control with that organization. **Control**
123
+ means ownership of substantially all the assets of an entity,
124
+ or the power to direct its management and policies by vote,
125
+ contract, or otherwise. Control can be direct or indirect.
356
126
 
357
- d. Nothing in this Public License constitutes or may be interpreted
358
- as a limitation upon, or waiver of, any privileges and immunities
359
- that apply to the Licensor or You, including from the legal
360
- processes of any jurisdiction or authority.
127
+ **Your licenses** are all the licenses granted to you for the
128
+ software under these terms.
129
+
130
+ **Use** means anything you do with the software requiring one
131
+ of your licenses.
package/biome.jsonc CHANGED
@@ -7,77 +7,47 @@
7
7
  "defaultBranch": "main"
8
8
  },
9
9
  "files": {
10
- "ignoreUnknown": true,
11
10
  "include": ["src/*.ts"],
12
11
  "maxSize": 2097152 // 2MB to cover generated models
13
12
  },
14
13
  "formatter": {
15
- "enabled": false
14
+ "lineWidth": 320 // We have large monitors these days, 80 characters is crazy
16
15
  },
17
16
  "organizeImports": {
18
- "enabled": false // VSCode and Biome organize imports differently
17
+ "enabled": false // VSCode and Biome organize imports differently, and really, who cares
19
18
  },
20
19
  "linter": {
21
- "enabled": true,
22
20
  "rules": {
23
- "all": true
21
+ "all": true // Maximize consistency
24
22
  },
25
23
  "include": ["src/*.ts"]
26
24
  },
27
- "javascript": {
28
- "globals": ["exports"]
29
- },
30
25
  "overrides": [
31
26
  {
32
27
  "include": ["*.ts"],
33
- "linter":{
28
+ "linter": {
34
29
  "rules": {
35
- "correctness":{
36
- "noNodejsModules": "off"
30
+ "correctness": {
31
+ "noNodejsModules": "off" // We are in a Node environment, and need these
32
+ },
33
+ "style": {
34
+ "noDefaultExport": "off" // We are using this to discourage large files in some cases.
35
+ },
36
+ "suspicious": {
37
+ "noConsole": "off" // Logging is to be done through the logger, not directly to console\
37
38
  }
38
39
  }
39
40
  }
40
41
  },
41
42
  {
42
43
  "include": ["*.test.ts"],
43
- "linter":{
44
+ "linter": {
44
45
  "rules": {
45
- "suspicious":{
46
- "noConsole": "off"
46
+ "suspicious": {
47
+ "noConsole": "off" // Test can log to console, as the logger is impractical here.
47
48
  }
48
49
  }
49
50
  }
50
- },
51
- {
52
- "include": ["src/operations/*.ts", "src/errors/*.ts", "src/tasks/*.ts"],
53
- "linter":{
54
- "rules": {
55
- "style":{
56
- "noDefaultExport": "off"
57
- }
58
- }
59
- }
60
- },
61
- {
62
- "include": ["src/models/Dto.d.ts"],
63
- "linter": {
64
- "rules": {
65
- "style": {
66
- "useNamingConvention": "off",
67
- "noNamespace": "off",
68
- "useFilenamingConvention": "off"
69
- },
70
- "correctness": {
71
- "noUnusedVariables": "off"
72
- },
73
- "complexity":{
74
- "noBannedTypes": "off"
75
- },
76
- "suspicious": {
77
- "noEmptyInterface": "off"
78
- }
79
- }
80
- }
81
51
  }
82
- ]
52
+ ]
83
53
  }
@@ -0,0 +1,11 @@
1
+ import { generatePath } from "../src/microsoftGraph/services/templatedPaths.js";
2
+ /** Retrieve the metadata for an item in a drive. @see https://learn.microsoft.com/en-us/graph/api/driveitem-get */
3
+ export default function getItem(itemRef, opts) {
4
+ return {
5
+ method: "GET",
6
+ path: generatePath(`/sites/{site-id}/drives/{drive-id}/items/{item-id}`, itemRef),
7
+ headers: {},
8
+ body: null,
9
+ dependsOn: opts?.dependsOn,
10
+ };
11
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"EnvironmentVariableMissingError.d.ts","sourceRoot":"","sources":["../../src/errors/EnvironmentVariableMissingError.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,OAAO,+BAAgC,SAAQ,KAAK;gBAC3C,GAAG,EAAE,MAAM;CAIjC"}
1
+ {"version":3,"file":"EnvironmentVariableMissingError.d.ts","sourceRoot":"","sources":["../../src/errors/EnvironmentVariableMissingError.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,OAAO,+BAAgC,SAAQ,KAAK;gBAC9C,GAAG,EAAE,MAAM;CAI9B"}
@@ -1 +1 @@
1
- {"version":3,"file":"InvalidArgumentError.d.ts","sourceRoot":"","sources":["../../src/errors/InvalidArgumentError.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,OAAO,oBAAqB,SAAQ,KAAK;gBACnC,OAAO,EAAE,MAAM;WAKpB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI;WAM9E,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI;WAMjE,YAAY,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI;CAMjE"}
1
+ {"version":3,"file":"InvalidArgumentError.d.ts","sourceRoot":"","sources":["../../src/errors/InvalidArgumentError.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,OAAO,oBAAqB,SAAQ,KAAK;gBACnC,OAAO,EAAE,MAAM;WAKpB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI;WAM9E,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI;WAMjE,YAAY,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI;CAKjE"}
@@ -0,0 +1,4 @@
1
+ export default class NeverError extends Error {
2
+ constructor(message: string);
3
+ }
4
+ //# sourceMappingURL=NeverError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NeverError.d.ts","sourceRoot":"","sources":["../../src/errors/NeverError.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,KAAK;gBACzB,OAAO,EAAE,MAAM;CAIlC"}
@@ -0,0 +1,6 @@
1
+ export default class NeverError extends Error {
2
+ constructor(message) {
3
+ super(message);
4
+ this.name = "NeverError";
5
+ }
6
+ }
@@ -1,6 +1,5 @@
1
1
  export default class RequestFailedError extends Error {
2
2
  constructor(message: string);
3
- static throwIfNotOkBatch(status: number, ops: unknown, error: unknown): void;
4
- static throwIfNotOkOperation(status: number, index: number, op: unknown, error: unknown): void;
3
+ static throw(message: string, request: unknown, response?: unknown): never;
5
4
  }
6
5
  //# sourceMappingURL=RequestFailedError.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RequestFailedError.d.ts","sourceRoot":"","sources":["../../src/errors/RequestFailedError.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,KAAK;gBACjC,OAAO,EAAE,MAAM;WAKpB,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI;WAUrE,qBAAqB,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI;CASrG"}
1
+ {"version":3,"file":"RequestFailedError.d.ts","sourceRoot":"","sources":["../../src/errors/RequestFailedError.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,KAAK;gBACjC,OAAO,EAAE,MAAM;WAKpB,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,OAAO,GAAG,KAAK;CAOjF"}