arangojs 10.0.0-alpha.0 → 10.0.0-rc.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 (225) hide show
  1. package/CHANGELOG.md +185 -77
  2. package/README.md +51 -16
  3. package/administration.d.ts.map +1 -1
  4. package/analyzers.d.ts.map +1 -1
  5. package/cjs/administration.d.ts.map +1 -1
  6. package/cjs/administration.js +0 -1
  7. package/cjs/administration.js.map +1 -1
  8. package/cjs/analyzers.d.ts.map +1 -1
  9. package/cjs/analyzers.js +3 -3
  10. package/cjs/analyzers.js.map +1 -1
  11. package/cjs/aql.js.map +1 -1
  12. package/cjs/collections.d.ts +6 -6
  13. package/cjs/collections.d.ts.map +1 -1
  14. package/cjs/collections.js +31 -31
  15. package/cjs/collections.js.map +1 -1
  16. package/cjs/configuration.d.ts +181 -0
  17. package/cjs/configuration.d.ts.map +1 -0
  18. package/cjs/configuration.js +12 -0
  19. package/cjs/configuration.js.map +1 -0
  20. package/cjs/connection.d.ts +201 -222
  21. package/cjs/connection.d.ts.map +1 -1
  22. package/cjs/connection.js +356 -129
  23. package/cjs/connection.js.map +1 -1
  24. package/cjs/cursors.d.ts +1 -1
  25. package/cjs/cursors.d.ts.map +1 -1
  26. package/cjs/cursors.js +5 -5
  27. package/cjs/cursors.js.map +1 -1
  28. package/cjs/databases.d.ts +11 -18
  29. package/cjs/databases.d.ts.map +1 -1
  30. package/cjs/databases.js +116 -111
  31. package/cjs/databases.js.map +1 -1
  32. package/cjs/documents.d.ts.map +1 -1
  33. package/cjs/documents.js.map +1 -1
  34. package/cjs/errors.d.ts +41 -26
  35. package/cjs/errors.d.ts.map +1 -1
  36. package/cjs/errors.js +83 -95
  37. package/cjs/errors.js.map +1 -1
  38. package/cjs/foxx-manifest.d.ts.map +1 -1
  39. package/cjs/foxx-manifest.js.map +1 -1
  40. package/cjs/graphs.d.ts.map +1 -1
  41. package/cjs/graphs.js +38 -26
  42. package/cjs/graphs.js.map +1 -1
  43. package/cjs/index.d.ts +3 -3
  44. package/cjs/index.d.ts.map +1 -1
  45. package/cjs/index.js.map +1 -1
  46. package/cjs/indexes.d.ts +17 -8
  47. package/cjs/indexes.d.ts.map +1 -1
  48. package/cjs/indexes.js.map +1 -1
  49. package/cjs/jobs.d.ts.map +1 -1
  50. package/cjs/jobs.js +4 -4
  51. package/cjs/jobs.js.map +1 -1
  52. package/cjs/lib/util.d.ts +50 -0
  53. package/cjs/lib/util.d.ts.map +1 -0
  54. package/cjs/lib/util.js +114 -0
  55. package/cjs/lib/util.js.map +1 -0
  56. package/cjs/lib/{linkedList.d.ts → x3-linkedlist.d.ts} +1 -1
  57. package/cjs/lib/x3-linkedlist.d.ts.map +1 -0
  58. package/cjs/lib/{linkedList.js → x3-linkedlist.js} +1 -1
  59. package/cjs/lib/x3-linkedlist.js.map +1 -0
  60. package/cjs/logs.js.map +1 -1
  61. package/cjs/queries.js.map +1 -1
  62. package/cjs/routes.d.ts +18 -18
  63. package/cjs/routes.d.ts.map +1 -1
  64. package/cjs/routes.js +57 -42
  65. package/cjs/routes.js.map +1 -1
  66. package/cjs/services.d.ts.map +1 -1
  67. package/cjs/services.js.map +1 -1
  68. package/cjs/transactions.d.ts +3 -3
  69. package/cjs/transactions.d.ts.map +1 -1
  70. package/cjs/transactions.js +3 -3
  71. package/cjs/transactions.js.map +1 -1
  72. package/cjs/users.js.map +1 -1
  73. package/cjs/views.d.ts +2 -2
  74. package/cjs/views.d.ts.map +1 -1
  75. package/cjs/views.js +6 -6
  76. package/cjs/views.js.map +1 -1
  77. package/collections.d.ts +6 -6
  78. package/collections.d.ts.map +1 -1
  79. package/configuration.d.ts +181 -0
  80. package/configuration.d.ts.map +1 -0
  81. package/connection.d.ts +201 -222
  82. package/connection.d.ts.map +1 -1
  83. package/cursors.d.ts +1 -1
  84. package/cursors.d.ts.map +1 -1
  85. package/databases.d.ts +11 -18
  86. package/databases.d.ts.map +1 -1
  87. package/documents.d.ts.map +1 -1
  88. package/errors.d.ts +41 -26
  89. package/errors.d.ts.map +1 -1
  90. package/esm/administration.d.ts.map +1 -1
  91. package/esm/administration.js +0 -1
  92. package/esm/administration.js.map +1 -1
  93. package/esm/analyzers.d.ts.map +1 -1
  94. package/esm/analyzers.js +3 -3
  95. package/esm/analyzers.js.map +1 -1
  96. package/esm/aql.js.map +1 -1
  97. package/esm/collections.d.ts +6 -6
  98. package/esm/collections.d.ts.map +1 -1
  99. package/esm/collections.js +31 -31
  100. package/esm/collections.js.map +1 -1
  101. package/esm/configuration.d.ts +181 -0
  102. package/esm/configuration.d.ts.map +1 -0
  103. package/esm/configuration.js +8 -0
  104. package/esm/configuration.js.map +1 -0
  105. package/esm/connection.d.ts +201 -222
  106. package/esm/connection.d.ts.map +1 -1
  107. package/esm/connection.js +351 -126
  108. package/esm/connection.js.map +1 -1
  109. package/esm/cursors.d.ts +1 -1
  110. package/esm/cursors.d.ts.map +1 -1
  111. package/esm/cursors.js +3 -3
  112. package/esm/cursors.js.map +1 -1
  113. package/esm/databases.d.ts +11 -18
  114. package/esm/databases.d.ts.map +1 -1
  115. package/esm/databases.js +116 -111
  116. package/esm/databases.js.map +1 -1
  117. package/esm/documents.d.ts.map +1 -1
  118. package/esm/documents.js.map +1 -1
  119. package/esm/errors.d.ts +41 -26
  120. package/esm/errors.d.ts.map +1 -1
  121. package/esm/errors.js +59 -95
  122. package/esm/errors.js.map +1 -1
  123. package/esm/foxx-manifest.d.ts.map +1 -1
  124. package/esm/foxx-manifest.js.map +1 -1
  125. package/esm/graphs.d.ts.map +1 -1
  126. package/esm/graphs.js +38 -26
  127. package/esm/graphs.js.map +1 -1
  128. package/esm/index.d.ts +3 -3
  129. package/esm/index.d.ts.map +1 -1
  130. package/esm/index.js.map +1 -1
  131. package/esm/indexes.d.ts +17 -8
  132. package/esm/indexes.d.ts.map +1 -1
  133. package/esm/indexes.js.map +1 -1
  134. package/esm/jobs.d.ts.map +1 -1
  135. package/esm/jobs.js +4 -4
  136. package/esm/jobs.js.map +1 -1
  137. package/esm/lib/util.d.ts +50 -0
  138. package/esm/lib/util.d.ts.map +1 -0
  139. package/esm/lib/util.js +105 -0
  140. package/esm/lib/util.js.map +1 -0
  141. package/{lib/linkedList.d.ts → esm/lib/x3-linkedlist.d.ts} +1 -1
  142. package/esm/lib/x3-linkedlist.d.ts.map +1 -0
  143. package/esm/lib/{linkedList.js → x3-linkedlist.js} +1 -1
  144. package/esm/lib/x3-linkedlist.js.map +1 -0
  145. package/esm/logs.js.map +1 -1
  146. package/esm/queries.js.map +1 -1
  147. package/esm/routes.d.ts +18 -18
  148. package/esm/routes.d.ts.map +1 -1
  149. package/esm/routes.js +34 -42
  150. package/esm/routes.js.map +1 -1
  151. package/esm/services.d.ts.map +1 -1
  152. package/esm/services.js.map +1 -1
  153. package/esm/transactions.d.ts +3 -3
  154. package/esm/transactions.d.ts.map +1 -1
  155. package/esm/transactions.js +3 -3
  156. package/esm/transactions.js.map +1 -1
  157. package/esm/users.js.map +1 -1
  158. package/esm/views.d.ts +2 -2
  159. package/esm/views.d.ts.map +1 -1
  160. package/esm/views.js +6 -6
  161. package/esm/views.js.map +1 -1
  162. package/foxx-manifest.d.ts.map +1 -1
  163. package/graphs.d.ts.map +1 -1
  164. package/index.d.ts +3 -3
  165. package/index.d.ts.map +1 -1
  166. package/indexes.d.ts +17 -8
  167. package/indexes.d.ts.map +1 -1
  168. package/jobs.d.ts.map +1 -1
  169. package/lib/util.d.ts +50 -0
  170. package/lib/util.d.ts.map +1 -0
  171. package/{esm/lib/linkedList.d.ts → lib/x3-linkedlist.d.ts} +1 -1
  172. package/lib/x3-linkedlist.d.ts.map +1 -0
  173. package/package.json +10 -2
  174. package/routes.d.ts +18 -18
  175. package/routes.d.ts.map +1 -1
  176. package/services.d.ts.map +1 -1
  177. package/transactions.d.ts +3 -3
  178. package/transactions.d.ts.map +1 -1
  179. package/views.d.ts +2 -2
  180. package/views.d.ts.map +1 -1
  181. package/cjs/lib/joinPath.d.ts +0 -11
  182. package/cjs/lib/joinPath.d.ts.map +0 -1
  183. package/cjs/lib/joinPath.js +0 -23
  184. package/cjs/lib/joinPath.js.map +0 -1
  185. package/cjs/lib/linkedList.d.ts.map +0 -1
  186. package/cjs/lib/linkedList.js.map +0 -1
  187. package/cjs/lib/mergeHeaders.d.ts +0 -12
  188. package/cjs/lib/mergeHeaders.d.ts.map +0 -1
  189. package/cjs/lib/mergeHeaders.js +0 -22
  190. package/cjs/lib/mergeHeaders.js.map +0 -1
  191. package/cjs/lib/normalizeUrl.d.ts +0 -11
  192. package/cjs/lib/normalizeUrl.d.ts.map +0 -1
  193. package/cjs/lib/normalizeUrl.js +0 -23
  194. package/cjs/lib/normalizeUrl.js.map +0 -1
  195. package/cjs/lib/request.d.ts +0 -57
  196. package/cjs/lib/request.d.ts.map +0 -1
  197. package/cjs/lib/request.js +0 -116
  198. package/cjs/lib/request.js.map +0 -1
  199. package/esm/lib/joinPath.d.ts +0 -11
  200. package/esm/lib/joinPath.d.ts.map +0 -1
  201. package/esm/lib/joinPath.js +0 -19
  202. package/esm/lib/joinPath.js.map +0 -1
  203. package/esm/lib/linkedList.d.ts.map +0 -1
  204. package/esm/lib/linkedList.js.map +0 -1
  205. package/esm/lib/mergeHeaders.d.ts +0 -12
  206. package/esm/lib/mergeHeaders.d.ts.map +0 -1
  207. package/esm/lib/mergeHeaders.js +0 -18
  208. package/esm/lib/mergeHeaders.js.map +0 -1
  209. package/esm/lib/normalizeUrl.d.ts +0 -11
  210. package/esm/lib/normalizeUrl.d.ts.map +0 -1
  211. package/esm/lib/normalizeUrl.js +0 -19
  212. package/esm/lib/normalizeUrl.js.map +0 -1
  213. package/esm/lib/request.d.ts +0 -57
  214. package/esm/lib/request.d.ts.map +0 -1
  215. package/esm/lib/request.js +0 -112
  216. package/esm/lib/request.js.map +0 -1
  217. package/lib/joinPath.d.ts +0 -11
  218. package/lib/joinPath.d.ts.map +0 -1
  219. package/lib/linkedList.d.ts.map +0 -1
  220. package/lib/mergeHeaders.d.ts +0 -12
  221. package/lib/mergeHeaders.d.ts.map +0 -1
  222. package/lib/normalizeUrl.d.ts +0 -11
  223. package/lib/normalizeUrl.d.ts.map +0 -1
  224. package/lib/request.d.ts +0 -57
  225. package/lib/request.d.ts.map +0 -1
package/CHANGELOG.md CHANGED
@@ -14,7 +14,7 @@ This driver uses semantic versioning:
14
14
  - A change in the major version (e.g. 1.Y.Z -> 2.0.0) indicates _breaking_
15
15
  changes that require changes in your code to upgrade.
16
16
 
17
- ## [10.0.0-alpha.0] - 2024-11-28
17
+ ## [10.0.0-rc.0] - 2024-12-10
18
18
 
19
19
  This is a major release and breaks backwards compatibility.
20
20
 
@@ -35,9 +35,72 @@ for upgrading your code to arangojs v10.
35
35
 
36
36
  ### Changed
37
37
 
38
- - Changed `QueueTimeMetrics` type to an interface
38
+ - Closing a connection now closes all open requests
39
39
 
40
- - Changed `CursorExtras` and `CursorStats` interfaces to types
40
+ Previously in certain situations only the most recent request would be
41
+ closed per server. Note that this still merely aborts the requests but
42
+ does not guarantee the underlying connections are closed as these are
43
+ handled by Node.js or the browser natively. need to be installed
44
+ otherwise.
45
+
46
+ - Moved fetch-specific `config` options from into `config.fetchOptions`
47
+
48
+ The following options were moved: `credentials`, `headers` and `keepalive`.
49
+
50
+ #### Error handling
51
+
52
+ - Errors encountered before a request completes are now wrapped in a
53
+ `NetworkError` or a subclass thereof
54
+
55
+ This should help making it easier to diagnose network issues and distinguish
56
+ the relevant error conditions.
57
+
58
+ The originating error can still be accessed using the `cause` property of the
59
+ `NetworkError` error.
60
+
61
+ - `HttpError` now extends the `NetworkError` class
62
+
63
+ This allows treating all non-`ArangoError` errors as one category of errors,
64
+ even when there is no server response available.
65
+
66
+ - `db.waitForPropagation` now throws a `PropagationTimeoutError` error when
67
+ invoked with a `timeout` option and the timeout duration is exceeded
68
+
69
+ The method would previously throw the most recent error encountered while
70
+ waiting for replication. The originating error can still be accessed using
71
+ the `cause` property of the `PropagationTimeoutError` error.
72
+
73
+ - `db.waitForPropagation` now respects the `timeout` option more strictly
74
+
75
+ Previously the method would only time out if the timeout duration was
76
+ exceeded after the most recent request failed. Now the timeout is
77
+ recalculated and passed on to each request, preventing it from exceeding
78
+ the specified duration.
79
+
80
+ If the propagation timed out due to an underlying request exceeding the
81
+ timeout duration, the `cause` property of the `PropagationTimeoutError`
82
+ error will be a `ResponseTimeoutError` error.
83
+
84
+ - `config.beforeRequest` and `config.afterResponse` callbacks can now return
85
+ promises
86
+
87
+ If the callback returns a promise, it will be awaited before the request
88
+ and response cycle proceeds. If either callback throws an error or returns
89
+ a promise that is rejected, that error will be thrown instead.
90
+
91
+ - `config.afterResponse` callback signature changed
92
+
93
+ The callback signature previously used the internal `ArangojsResponse` type.
94
+ The new signature uses the `Response` type of the Fetch API with an
95
+ additional `request` property to more accurately represent the actual value
96
+ it receives as the `parsedBody` property will never be present.
97
+
98
+ - `response` property on `ArangoError` is now optional
99
+
100
+ This property should always be present but this allows using the error in
101
+ situations where a response might not be available.
102
+
103
+ #### General type changes
41
104
 
42
105
  - Changed `GraphVertexCollection` and `GraphEdgeCollection` generic types to
43
106
  take separate `EntryResultType` and `EntryInputType` type parameters
@@ -48,13 +111,43 @@ for upgrading your code to arangojs v10.
48
111
 
49
112
  These type parameters are used to narrow the the returned collection type.
50
113
 
51
- - Renamed `db.listServiceScripts` method to `db.getServiceScripts`
52
- - Renamed `db.listHotBackups` method to `db.getHotBackups`
53
- - Renamed `db.getLogMessages` method to `db.listLogMessages`
54
- - Renamed `db.listFunctions` method to `db.listUserFunctions`
55
- - Renamed `db.createFunction` method to `db.createUserFunction`
56
- - Renamed `db.dropFunction` method to `db.dropUserFunction`
57
- - Changed `db.removeUser` method to return `void`
114
+ - Changed `db.removeUser` method return type to `Promise<void>`
115
+
116
+ The previous return type served no purpose.
117
+
118
+ - Changed `QueueTimeMetrics` type to an interface
119
+
120
+ - Changed `CursorExtras` and `CursorStats` interfaces to types
121
+
122
+ #### Low-level request/route changes
123
+
124
+ - Renamed `path` option to `pathname` in `RequestOptions` type
125
+
126
+ This affects the `db.waitForPropagation` and `route.request` methods.
127
+
128
+ - Removed `basePath` option from `RequestOptions` type
129
+
130
+ This affects the `db.waitForPropagation` and `route.request` methods.
131
+
132
+ - Renamed `route.path` property to `route.pathname`
133
+
134
+ #### Renamed methods
135
+
136
+ - Renamed various methods for consistency:
137
+
138
+ Methods that return an array now follow the `listNouns` pattern, methods that
139
+ return a "list of nouns" wrapped in an object have been renamed to follow the
140
+ `getNouns` pattern to avoid confusion:
141
+
142
+ - `db.listServiceScripts` -> `db.getServiceScripts`
143
+ - `db.listHotBackups` -> `db.getHotBackups`
144
+ - `db.listFunctions` -> `db.listUserFunctions`
145
+ - `db.getLogMessages` -> `db.listLogMessages`
146
+
147
+ - Renamed AQL user function management methods:
148
+
149
+ - `db.createFunction` -> `db.createUserFunction`
150
+ - `db.dropFunction` -> `db.dropUserFunction`
58
151
 
59
152
  #### Module renaming
60
153
 
@@ -73,13 +166,18 @@ for upgrading your code to arangojs v10.
73
166
  - `arangojs/transaction` -> `arangojs/transactions`
74
167
  - `arangojs/view` -> `arangojs/views`
75
168
 
169
+ - Moved internal utility functions to new `arangojs/lib/util` module
170
+
171
+ These methods are all still marked as internal and should not be used
172
+ directly.
173
+
76
174
  #### Moved types
77
175
 
78
176
  - Moved document related types from `arangojs/collection` module to
79
177
  `arangojs/documents` module
80
178
 
81
179
  The following types were moved: `DocumentOperationFailure`,
82
- `DocumentOperationMetadata`, `DocumentExistsOptions`,
180
+ `DocumentOperationMetadata`, `DocumentExistsOptions`,
83
181
  `CollectionReadOptions`, `CollectionBatchReadOptions`,
84
182
  `CollectionInsertOptions`, `CollectionReplaceOptions`,
85
183
  `CollectionUpdateOptions`, `CollectionRemoveOptions`,
@@ -141,6 +239,20 @@ for upgrading your code to arangojs v10.
141
239
 
142
240
  The following types were moved: `QueueTimeMetrics` and `VersionInfo`.
143
241
 
242
+ - Moved configuration related types to new `arangojs/config` module
243
+
244
+ The following types were moved: `Config`, `LoadBalancingStrategy`,
245
+ `BasicAuthCredentials` and `BearerAuthCredentials`.
246
+
247
+ - Moved `ArangoErrorResponse` type to `arangojs/connection` module
248
+
249
+ The type is now also no longer marked as internal.
250
+
251
+ - Moved configuration related types to new `arangojs/configuration` module
252
+
253
+ The following types were moved: `ConfigOptions`, `LoadBalancingStrategy`,
254
+ `BasicAuthCredentials` and `BearerAuthCredentials`.
255
+
144
256
  #### Renamed types
145
257
 
146
258
  - Renamed `Index` types to `IndexDescription` for consistency
@@ -164,21 +276,42 @@ for upgrading your code to arangojs v10.
164
276
 
165
277
  - Renamed various types for consistency:
166
278
 
279
+ Types representing an instance of a specific entity type in ArangoDB like a
280
+ collection, graph or query now follow the `NounDescription` naming pattern:
281
+
167
282
  - `AqlUserFunction` -> `UserFunctionDescription`
168
283
  - `CollectionMetadata` -> `CollectionDescription`
169
284
  - `DatabaseInfo` -> `DatabaseDescription`
170
285
  - `GraphInfo` -> `GraphDescription`
171
286
  - `ServiceInfo` -> `ServiceDescription`
172
287
  - `QueryInfo` -> `QueryDescription`
288
+ - `TransactionDetails` -> `TransactionDescription`
289
+
290
+ Note that the `TransactionDescription` type used by `db.listTransactions`
291
+ is slightly different from the `TransactionInfo` type used by methods of
292
+ `Transaction` objects due to implementation details of ArangoDB.
293
+
294
+ Types representing general information rather than an instance of something
295
+ now generally follow the `NounInfo` naming pattern, whereas types
296
+ representing the result of an operation generally follow the `NounResult`
297
+ or `VerbNounResult` naming pattern:
298
+
173
299
  - `QueryTracking` -> `QueryTrackingInfo`
174
- - `TransactionDetails` -> `TransactionInfo`
300
+ - `CollectionImportResult` -> `ImportDocumentsResult`
301
+ - `CollectionEdgesResult` -> `DocumentEdgesResult`
302
+
303
+ Types for options passed to methods now generally follow the `NounOptions`,
304
+ `VerbNounOptions` or `VerbNounAttributeOptions` naming patterns:
305
+
306
+ - `Config` -> `ConfigOptions`
175
307
  - `TransactionCollections` -> `TransactionCollectionOptions`
176
308
  - `CreateDatabaseUser` -> `CreateDatabaseUserOptions`
177
-
178
- - Index operations:
179
- - `IndexListOptions` -> `ListIndexesOptions`
309
+ - `CollectionDropOptions` -> `DropCollectionOptions`
310
+ - `CollectionTruncateOptions` -> `TruncateCollectionOptions`
311
+ - `IndexListOptions` -> `ListIndexesOptions`
180
312
 
181
313
  - Collection document operations:
314
+
182
315
  - `DocumentExistsOptions` -> `DocumentExistsOptions`
183
316
  - `CollectionReadOptions` -> `ReadDocumentOptions`
184
317
  - `CollectionBatchReadOptions` -> `BulkReadDocumentsOptions`
@@ -188,10 +321,9 @@ for upgrading your code to arangojs v10.
188
321
  - `CollectionRemoveOptions` -> `RemoveDocumentOptions`
189
322
  - `CollectionImportOptions` -> `ImportDocumentsOptions`
190
323
  - `CollectionEdgesOptions` -> `DocumentEdgesOptions`
191
- - `CollectionImportResult` -> `ImportDocumentsResult`
192
- - `CollectionEdgesResult` -> `DocumentEdgesResult`
193
324
 
194
325
  - Graph collection document operation:
326
+
195
327
  - `GraphCollectionReadOptions` -> `ReadGraphDocumentOptions`
196
328
  - `GraphCollectionInsertOptions` -> `CreateGraphDocumentOptions`
197
329
  - `GraphCollectionReplaceOptions` -> `ReplaceGraphDocumentOptions`
@@ -199,6 +331,7 @@ for upgrading your code to arangojs v10.
199
331
  - `ViewPatchPropertiesOptions` -> `UpdateViewPropertiesOptions`
200
332
 
201
333
  - View operations:
334
+
202
335
  - `ArangoSearchViewPatchPropertiesOptions` -> `UpdateArangoSearchViewPropertiesOptions`
203
336
  - `SearchAliasViewPatchPropertiesOptions` -> `UpdateSearchAliasViewPropertiesOptions`
204
337
  - `SearchAliasViewPatchIndexOptions` -> `UpdateSearchAliasViewIndexOptions`
@@ -217,67 +350,36 @@ for upgrading your code to arangojs v10.
217
350
  - `ObjectWithId` (in `documents` module) -> `ObjectWithDocumentId`
218
351
  - `ObjectWithKey` (in `documents` module) -> `ObjectWithDocumentKey`
219
352
 
220
- #### Error handling
221
-
222
- - Errors encountered before a request completes are now wrapped in a
223
- `NetworkError` or a subclass thereof
224
-
225
- This should help making it easier to diagnose network issues and distinguish
226
- the relevant error conditions.
227
-
228
- The originating error can still be accessed using the `cause` property of the
229
- `NetworkError` error.
230
-
231
- - `HttpError` now extends the `NetworkError` class
232
-
233
- This allows treating all non-`ArangoError` errors as one category of errors,
234
- even when there is no server response available.
235
-
236
- - `db.waitForPropagation` now throws a `PropagationTimeoutError` error when
237
- invoked with a `timeout` option and the timeout duration is exceeded
238
-
239
- The method would previously throw the most recent error encountered while
240
- waiting for replication. The originating error can still be accessed using
241
- the `cause` property of the `PropagationTimeoutError` error.
242
-
243
- - `db.waitForPropagation` now respects the `timeout` option more strictly
244
-
245
- Previously the method would only time out if the timeout duration was
246
- exceeded after the most recent request failed. Now the timeout is
247
- recalculated and passed on to each request, preventing it from exceeding
248
- the specified duration.
249
-
250
- If the propagation timed out due to an underlying request exceeding the
251
- timeout duration, the `cause` property of the `PropagationTimeoutError`
252
- error will be a `ResponseTimeoutError` error.
253
-
254
- - `config.beforeRequest` and `config.afterResponse` callbacks can now return
255
- promises
353
+ ### Added
256
354
 
257
- If the callback returns a promise, it will be awaited before the request
258
- and response cycle proceeds. If either callback throws an error or returns
259
- a promise that is rejected, that error will be thrown instead.
355
+ - Restored support for Unix domain sockets
260
356
 
261
- - `config.afterResponse` callback signature changed
357
+ Using Unix domain sockets requires the `undici` library to be installed.
262
358
 
263
- The callback signature previously used the internal `ArangojsResponse` type.
264
- The new signature uses the `Response` type of the Fetch API with an
265
- additional `request` property to more accurately represent the actual value
266
- it receives as the `parsedBody` property will never be present.
359
+ - Restored support for `config.agentOptions`
267
360
 
268
- - `response` property on `ArangoError` is now optional
361
+ The `config.agentOptions` option can now be used to create a custom `undici`
362
+ agent if the `undici` library is installed.
269
363
 
270
- This property should always be present but this allows using the error in
271
- situations where a response might not be available.
364
+ - Added `config.fetchOptions` option
272
365
 
273
- ### Added
366
+ This option can now be used to specify default options for the `fetch`
367
+ function used by arangojs like `headers`, `credentials`, `keepalive` and
368
+ `redirect`.
274
369
 
275
370
  - Added `BatchCursor#itemsView` property and `BatchCursorItemsView` interface
276
371
 
277
372
  This property provides a low-level interface for consuming the items of the
278
373
  cursor and is used by the regular item-wise `Cursor` class internally.
279
374
 
280
- - Added `onError` option to `Config` (DE-955)
375
+ - Added `ProcessedResponse` type
376
+
377
+ This type replaces the previously internal `ArangojsResponse` type and
378
+ extends the native `Response` type with additional properties.
379
+
380
+ #### Error handling
381
+
382
+ - Added `config.onError` option (DE-955)
281
383
 
282
384
  This option can be used to specify a callback function that will be invoked
283
385
  whenever a request results in an error. Unlike `afterResponse`, this callback
@@ -288,6 +390,22 @@ for upgrading your code to arangojs v10.
288
390
  If the `onError` callback throws an error or returns a promise that is
289
391
  rejected, that error will be thrown instead.
290
392
 
393
+ - Added support for `config.fetchOptions.redirect` option ([#613](https://github.com/arangodb/arangojs/issues/613))
394
+
395
+ This option can now be used to specify the redirect mode for requests.
396
+
397
+ When set to `"manual"`, arangojs will throw an `HttpError` wrapping the
398
+ redirect response instead of automatically following redirects.
399
+
400
+ Note that when set to `"error"`, the native fetch API will throw a
401
+ non-specific error (usually a `TypeError`) that arangojs will wrap in a
402
+ `FetchFailedError` instead.
403
+
404
+ - Added optional `ArangoError#request` property
405
+
406
+ This property is always present if the error has a `response` property. In
407
+ normal use this should always be the case.
408
+
291
409
  - Added `NetworkError` class
292
410
 
293
411
  This is the common base class for all errors (including `HttpError`) that
@@ -328,16 +446,6 @@ for upgrading your code to arangojs v10.
328
446
  `cause` property. This error is only thrown when `db.waitForPropagation`
329
447
  is invoked with a `timeout` option and the timeout duration is exceeded.
330
448
 
331
- - Added `ProcessedResponse` type
332
-
333
- This type replaces the previously internal `ArangojsResponse` type and
334
- extends the native `Response` type with additional properties.
335
-
336
- - Added optional `ArangoError#request` property
337
-
338
- This property is always present if the error has a `response` property. In
339
- normal use this should always be the case.
340
-
341
449
  ## [9.2.0] - 2024-11-27
342
450
 
343
451
  ### Added
@@ -2288,7 +2396,7 @@ For a detailed list of changes between pre-release versions of v7 see the
2288
2396
 
2289
2397
  Graph methods now only return the relevant part of the response body.
2290
2398
 
2291
- [10.0.0-alpha.0]: https://github.com/arangodb/arangojs/compare/v9.2.0...v10.0.0-alpha.0
2399
+ [10.0.0-rc.0]: https://github.com/arangodb/arangojs/compare/v9.2.0...v10.0.0-rc.0
2292
2400
  [9.2.0]: https://github.com/arangodb/arangojs/compare/v9.1.0...v9.2.0
2293
2401
  [9.1.0]: https://github.com/arangodb/arangojs/compare/v9.0.0...v9.1.0
2294
2402
  [9.0.0]: https://github.com/arangodb/arangojs/compare/v8.8.1...v9.0.0
package/README.md CHANGED
@@ -255,7 +255,7 @@ allowing arangojs to provide more meaningful stack traces at the cost of an
255
255
  impact to performance even when no error occurs.
256
256
 
257
257
  ```diff
258
- const { Database } = require("arangojs");
258
+ import { Database } from "arangojs";
259
259
 
260
260
  const db = new Database({
261
261
  url: ARANGODB_SERVER,
@@ -269,15 +269,48 @@ that do not support the `stack` property on error objects, this option will
269
269
  still impact performance but not result in any additional information becoming
270
270
  available.
271
271
 
272
+ ### Unix domain sockets
273
+
274
+ If you want to use Unix domain sockets, you need to install the `undici` module,
275
+ which is an optional peer dependency of arangojs.
276
+
277
+ ```sh
278
+ npm install --save undici
279
+ ```
280
+
281
+ If the `undici` module is not installed and arangojs attempts to make a request
282
+ over a Unix domain socket, the request will fail with a plain `Error` with a
283
+ message indicating that the `undici` module is unavailable.
284
+
272
285
  ### Node.js with self-signed HTTPS certificates
273
286
 
274
- If you need to support self-signed HTTPS certificates in Node.js, you may have
275
- to override the global fetch agent. At the time of this writing, there is no
276
- official way to do this for the native `fetch` implementation in Node.js.
287
+ If you need to support self-signed HTTPS certificates in Node.js, you will need
288
+ to install the `undici` module, which is an optional peer dependency of
289
+ arangojs.
290
+
291
+ ```sh
292
+ npm install --save undici
293
+ ```
294
+
295
+ You can instruct arangojs to use the `undici` module by setting the
296
+ `config.agentOptions` option:
297
+
298
+ ```diff
299
+ import { Database } from "arangojs";
300
+
301
+ const db = new Database({
302
+ url: ARANGODB_SERVER,
303
+ + agentOptions: {
304
+ + ca: [
305
+ + fs.readFileSync(".ssl/sub.class1.server.ca.pem"),
306
+ + fs.readFileSync(".ssl/ca.pem"),
307
+ + ],
308
+ + },
309
+ });
310
+ ```
277
311
 
278
- However as Node.js uses the `undici` module for its `fetch` implementation
279
- internally, you can override the global agent by adding `undici` as a
280
- dependency to your project and using its `setGlobalDispatcher` as follows:
312
+ To override the global fetch agent instead, you can use the `undici` module's
313
+ `setGlobalDispatcher` method as follows:
281
314
 
282
315
  ```js
283
316
  import { Agent, setGlobalDispatcher } from "undici";
@@ -293,20 +326,22 @@ setGlobalDispatcher(
293
326
  ```
294
327
 
295
328
  Although this is **strongly discouraged**, it's also possible to disable
296
- HTTPS certificate validation entirely, but note this has
329
+ HTTPS certificate validation entirely this way, but note this has
297
330
  **extremely dangerous** security implications:
298
331
 
299
- ```js
300
- import { Agent, setGlobalDispatcher } from "undici";
332
+ ```diff
333
+ import { Database } from "arangojs";
301
334
 
302
- setGlobalDispatcher(
303
- new Agent({
304
- rejectUnauthorized: false,
305
- })
306
- );
335
+ const db = new Database({
336
+ url: ARANGODB_SERVER,
337
+ + agentOptions: {
338
+ + rejectUnauthorized: false,
339
+ + },
340
+ });
307
341
  ```
308
342
 
309
- This is a [known limitation](https://github.com/orgs/nodejs/discussions/44038#discussioncomment-5701073)
343
+ The requirement to use the `undici` module to override these settings is a
344
+ [known limitation](https://github.com/orgs/nodejs/discussions/44038#discussioncomment-5701073)
310
345
  of Node.js at the time of this writing.
311
346
 
312
347
  When using arangojs in the browser, self-signed HTTPS certificates need to
@@ -1 +1 @@
1
- {"version":3,"file":"administration.d.ts","sourceRoot":"","sources":["../src/administration.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,EAAE,WA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QACV;;;;;;WAMG;QACH,IAAI,EAAE,QAAQ,CAAC;KAChB,CAAC;CACH,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,UAAU,EAAE;QACV;;;;;;WAMG;QACH,IAAI,EAAE,SAAS,CAAC;QAChB;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;QAC7C;;WAEG;QACH,MAAM,EAAE,MAAM,CAAC;QACf;;WAEG;QACH,YAAY,EAAE,MAAM,CAAC;QACrB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAClB;;WAEG;QACH,MAAM,EAAE;YACN;;eAEG;YACH,WAAW,EAAE,MAAM,CAAC;YACpB;;eAEG;YACH,MAAM,EAAE,MAAM,CAAC;YACf;;eAEG;YACH,OAAO,EAAE,MAAM,CAAC;YAChB;;eAEG;YACH,WAAW,EAAE,MAAM,CAAC;YACpB;;eAEG;YACH,SAAS,EAAE,MAAM,CAAC;YAClB;;eAEG;YACH,OAAO,EAAE,MAAM,CAAC;SACjB,CAAA;KACF,CAAC;IACF;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC3B,CAAC;AAEF;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,SAAS,IAAI,MAAM,GAAG,SAAS,CAAC;IAChC;;;;OAIG;IACH,SAAS,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC;IAChC;;;OAGG;IACH,MAAM,IAAI,MAAM,CAAC;CAClB"}
1
+ {"version":3,"file":"administration.d.ts","sourceRoot":"","sources":["../src/administration.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,MAAM,EAAE,M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H,MAAM,MAAM,uBAAuB,GAAG;IACpC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,UAAU,EAAE;QACV;;;;;;WAMG;QACH,IAAI,EAAE,QAAQ,CAAC;KAChB,CAAC;CACH,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,UAAU,EAAE;QACV;;;;;;WAMG;QACH,IAAI,EAAE,SAAS,CAAC;QAChB;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;QAC7C;;WAEG;QACH,MAAM,EAAE,MAAM,CAAC;QACf;;WAEG;QACH,YAAY,EAAE,MAAM,CAAC;QACrB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAClB;;WAEG;QACH,MAAM,EAAE;YACN;;eAEG;YACH,WAAW,EAAE,MAAM,CAAC;YACpB;;eAEG;YACH,MAAM,EAAE,MAAM,CAAC;YACf;;eAEG;YACH,OAAO,EAAE,MAAM,CAAC;YAChB;;eAEG;YACH,WAAW,EAAE,MAAM,CAAC;YACpB;;eAEG;YACH,SAAS,EAAE,MAAM,CAAC;YAClB;;eAEG;YACH,OAAO,EAAE,MAAM,CAAC;SACjB,CAAA;KACF,CAAC;IACF;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC3B,CAAC;AAEF;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,SAAS,IAAI,MAAM,GAAG,SAAS,CAAC;IAChC;;;;OAIG;IACH,SAAS,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC;IAChC;;;OAGG;IACH,MAAM,IAAI,MAAM,CAAC;CAClB"}
1
+ {"version":3,"file":"administration.d.ts","sourceRoot":"","sources":["../../src/administration.ts"],"names":[],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
9
9
  * @packageDocumentation
10
10
  */
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- ;
13
12
  //# sourceMappingURL=administration.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"administration.js","sourceRoot":"","sources":["../../src/administration.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;AAqVF,CAAC","sourcesContent":["/**\n * ```ts\n * import type { VersionInfo } from \"arangojs/administration\";\n * ```\n *\n * The \"administration\" module provides types for database administration.\n *\n * @packageDocumentation\n */\n\n/**\n * Result of retrieving database version information.\n */\nexport type VersionInfo = {\n /**\n * Value identifying the server type, i.e. `\"arango\"`.\n */\n server: string;\n /**\n * ArangoDB license type or \"edition\".\n */\n license: \"community\" | \"enterprise\";\n /**\n * ArangoDB server version.\n */\n version: string;\n /**\n * Additional information about the ArangoDB server.\n */\n details?: { [key: string]: string };\n};\n\n/**\n * Information about the storage engine.\n */\nexport type EngineInfo = {\n /**\n * Endianness of the storage engine.\n */\n endianness?: \"little\" | \"big\";\n /**\n * Name of the storage engine.\n */\n name: string;\n /**\n * Features supported by the storage engine.\n */\n supports?: {\n /**\n * Index types supported by the storage engine.\n */\n indexes?: string[];\n /**\n * Aliases supported by the storage engine.\n */\n aliases?: {\n /**\n * Index type aliases supported by the storage engine.\n */\n indexes?: Record<string, string>;\n }\n };\n};\n\n/**\n * Information about the server status.\n */\nexport type ServerStatusInformation = {\n /**\n * (Cluster Coordinators and DB-Servers only.) The address of the server.\n */\n address?: string;\n /**\n * (Cluster Coordinators and DB-Servers only.) Information about the Agency.\n */\n agency?: {\n /**\n * Information about the communication with the Agency.\n */\n agencyComm: {\n /**\n * A list of possible Agency endpoints.\n */\n endpoints: string[];\n };\n };\n /**\n * (Cluster Agents only.) Information about the Agents.\n */\n agent?: {\n /**\n * The endpoint of the queried Agent.\n */\n endpoint: string;\n /**\n * Server ID of the queried Agent.\n */\n id: string;\n /**\n * Server ID of the leading Agent.\n */\n leaderId: string;\n /**\n * Whether the queried Agent is the leader.\n */\n leading: boolean;\n /**\n * The current term number.\n */\n term: number;\n };\n /**\n * (Cluster Coordinators only.) Information about the Coordinators.\n */\n coordinator?: {\n /**\n * The server ID of the Coordinator that is the Foxx master.\n */\n foxxmaster: string[];\n /**\n * Whether the queried Coordinator is the Foxx master.\n */\n isFoxxmaster: boolean[];\n };\n /**\n * Whether the Foxx API is enabled.\n */\n foxxApi: boolean;\n /**\n * A host identifier defined by the HOST or NODE_NAME environment variable, \n * or a fallback value using a machine identifier or the cluster/Agency address.\n */\n host: string;\n /**\n * A hostname defined by the HOSTNAME environment variable.\n */\n hostname?: string;\n /**\n * ArangoDB Edition.\n */\n license: \"community\" | \"enterprise\";\n /**\n * Server operation mode.\n * \n * @deprecated use `operationMode` instead\n */\n mode: \"server\" | \"console\";\n /**\n * Server operation mode.\n */\n operationMode: \"server\" | \"console\";\n /**\n * The process ID of arangod.\n */\n pid: number;\n /**\n * Server type.\n */\n server: \"arango\";\n /**\n * Information about the server status.\n */\n serverInfo: {\n /**\n * Whether the maintenance mode is enabled.\n */\n maintenance: boolean;\n /**\n * (Cluster only.) The persisted ID.\n */\n persistedId?: string;\n /**\n * Startup and recovery information.\n */\n progress: {\n /**\n * Internal name of the feature that is currently being prepared, started, stopped or unprepared.\n */\n feature: string;\n /**\n * Name of the lifecycle phase the instance is currently in.\n */\n phase: string;\n /**\n * Current recovery sequence number value.\n */\n recoveryTick: number;\n };\n /**\n * Whether writes are disabled.\n */\n readOnly: boolean;\n /**\n * (Cluster only.) The reboot ID. Changes on every restart.\n */\n rebootId?: number;\n /**\n * Either \"SINGLE\", \"COORDINATOR\", \"PRIMARY\" (DB-Server), or \"AGENT\"\n */\n role: \"SINGLE\" | \"COORDINATOR\" | \"PRIMARY\" | \"AGENT\";\n /**\n * (Cluster Coordinators and DB-Servers only.) The server ID.\n */\n serverId?: string;\n /**\n * (Cluster Coordinators and DB-Servers only.) Either \"STARTUP\", \"SERVING\",\n * or \"SHUTDOWN\".\n */\n state?: \"STARTUP\" | \"SERVING\" | \"SHUTDOWN\";\n /**\n * The server version string.\n */\n version: string;\n /**\n * Whether writes are enabled.\n * \n * @deprecated Use `readOnly` instead.\n */\n writeOpsEnabled: boolean;\n };\n};\n\n/**\n * Server availability.\n *\n * - `\"default\"`: The server is operational.\n * \n * - `\"readonly\"`: The server is in read-only mode.\n * \n * - `false`: The server is not available.\n */\nexport type ServerAvailability = \"default\" | \"readonly\" | false;\n\n/**\n * Single server deployment information for support purposes.\n */\nexport type SingleServerSupportInfo = {\n /**\n * ISO 8601 datetime string of when the information was requested.\n */\n date: string;\n /**\n * Information about the deployment.\n */\n deployment: {\n /**\n * Deployment mode:\n * \n * - `\"single\"`: A single server deployment.\n * \n * - `\"cluster\"`: A cluster deployment.\n */\n type: \"single\";\n };\n};\n\n/**\n * Cluster deployment information for support purposes.\n */\nexport type ClusterSupportInfo = {\n /**\n * ISO 8601 datetime string of when the information was requested.\n */\n date: string;\n /**\n * Information about the deployment.\n */\n deployment: {\n /**\n * Deployment mode:\n * \n * - `\"single\"`: A single server deployment.\n * \n * - `\"cluster\"`: A cluster deployment.\n */\n type: \"cluster\";\n /**\n * Information about the servers in the cluster.\n */\n servers: Record<string, Record<string, any>>;\n /**\n * Number of agents in the cluster.\n */\n agents: number;\n /**\n * Number of coordinators in the cluster.\n */\n coordinators: number;\n /**\n * Number of DB-Servers in the cluster.\n */\n dbServers: number;\n /**\n * Information about the shards in the cluster.\n */\n shards: {\n /**\n * Number of collections in the cluster.\n */\n collections: number;\n /**\n * Number of shards in the cluster.\n */\n shards: number;\n /**\n * Number of leaders in the cluster.\n */\n leaders: number;\n /**\n * Number of real leaders in the cluster.\n */\n realLeaders: number;\n /**\n * Number of followers in the cluster.\n */\n followers: number;\n /**\n * Number of servers in the cluster.\n */\n servers: number;\n }\n };\n /**\n * (Cluster only.) Information about the ArangoDB instance as well as the\n * host machine.\n */\n host: Record<string, any>;\n};\n\n/**\n * An object providing methods for accessing queue time metrics of the most\n * recently received server responses if the server supports this feature.\n */\nexport interface QueueTimeMetrics {\n /**\n * Returns the queue time of the most recently received response in seconds.\n */\n getLatest(): number | undefined;\n /**\n * Returns a list of the most recently received queue time values as tuples\n * of the timestamp of the response being processed in milliseconds and the\n * queue time in seconds.\n */\n getValues(): [number, number][];\n /**\n * Returns the average queue time of the most recently received responses\n * in seconds.\n */\n getAvg(): number;\n};\n"]}
1
+ {"version":3,"file":"administration.js","sourceRoot":"","sources":["../../src/administration.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG","sourcesContent":["/**\n * ```ts\n * import type { VersionInfo } from \"arangojs/administration\";\n * ```\n *\n * The \"administration\" module provides types for database administration.\n *\n * @packageDocumentation\n */\n\n/**\n * Result of retrieving database version information.\n */\nexport type VersionInfo = {\n /**\n * Value identifying the server type, i.e. `\"arango\"`.\n */\n server: string;\n /**\n * ArangoDB license type or \"edition\".\n */\n license: \"community\" | \"enterprise\";\n /**\n * ArangoDB server version.\n */\n version: string;\n /**\n * Additional information about the ArangoDB server.\n */\n details?: { [key: string]: string };\n};\n\n/**\n * Information about the storage engine.\n */\nexport type EngineInfo = {\n /**\n * Endianness of the storage engine.\n */\n endianness?: \"little\" | \"big\";\n /**\n * Name of the storage engine.\n */\n name: string;\n /**\n * Features supported by the storage engine.\n */\n supports?: {\n /**\n * Index types supported by the storage engine.\n */\n indexes?: string[];\n /**\n * Aliases supported by the storage engine.\n */\n aliases?: {\n /**\n * Index type aliases supported by the storage engine.\n */\n indexes?: Record<string, string>;\n };\n };\n};\n\n/**\n * Information about the server status.\n */\nexport type ServerStatusInformation = {\n /**\n * (Cluster Coordinators and DB-Servers only.) The address of the server.\n */\n address?: string;\n /**\n * (Cluster Coordinators and DB-Servers only.) Information about the Agency.\n */\n agency?: {\n /**\n * Information about the communication with the Agency.\n */\n agencyComm: {\n /**\n * A list of possible Agency endpoints.\n */\n endpoints: string[];\n };\n };\n /**\n * (Cluster Agents only.) Information about the Agents.\n */\n agent?: {\n /**\n * The endpoint of the queried Agent.\n */\n endpoint: string;\n /**\n * Server ID of the queried Agent.\n */\n id: string;\n /**\n * Server ID of the leading Agent.\n */\n leaderId: string;\n /**\n * Whether the queried Agent is the leader.\n */\n leading: boolean;\n /**\n * The current term number.\n */\n term: number;\n };\n /**\n * (Cluster Coordinators only.) Information about the Coordinators.\n */\n coordinator?: {\n /**\n * The server ID of the Coordinator that is the Foxx master.\n */\n foxxmaster: string[];\n /**\n * Whether the queried Coordinator is the Foxx master.\n */\n isFoxxmaster: boolean[];\n };\n /**\n * Whether the Foxx API is enabled.\n */\n foxxApi: boolean;\n /**\n * A host identifier defined by the HOST or NODE_NAME environment variable,\n * or a fallback value using a machine identifier or the cluster/Agency address.\n */\n host: string;\n /**\n * A hostname defined by the HOSTNAME environment variable.\n */\n hostname?: string;\n /**\n * ArangoDB Edition.\n */\n license: \"community\" | \"enterprise\";\n /**\n * Server operation mode.\n *\n * @deprecated use `operationMode` instead\n */\n mode: \"server\" | \"console\";\n /**\n * Server operation mode.\n */\n operationMode: \"server\" | \"console\";\n /**\n * The process ID of arangod.\n */\n pid: number;\n /**\n * Server type.\n */\n server: \"arango\";\n /**\n * Information about the server status.\n */\n serverInfo: {\n /**\n * Whether the maintenance mode is enabled.\n */\n maintenance: boolean;\n /**\n * (Cluster only.) The persisted ID.\n */\n persistedId?: string;\n /**\n * Startup and recovery information.\n */\n progress: {\n /**\n * Internal name of the feature that is currently being prepared, started, stopped or unprepared.\n */\n feature: string;\n /**\n * Name of the lifecycle phase the instance is currently in.\n */\n phase: string;\n /**\n * Current recovery sequence number value.\n */\n recoveryTick: number;\n };\n /**\n * Whether writes are disabled.\n */\n readOnly: boolean;\n /**\n * (Cluster only.) The reboot ID. Changes on every restart.\n */\n rebootId?: number;\n /**\n * Either \"SINGLE\", \"COORDINATOR\", \"PRIMARY\" (DB-Server), or \"AGENT\"\n */\n role: \"SINGLE\" | \"COORDINATOR\" | \"PRIMARY\" | \"AGENT\";\n /**\n * (Cluster Coordinators and DB-Servers only.) The server ID.\n */\n serverId?: string;\n /**\n * (Cluster Coordinators and DB-Servers only.) Either \"STARTUP\", \"SERVING\",\n * or \"SHUTDOWN\".\n */\n state?: \"STARTUP\" | \"SERVING\" | \"SHUTDOWN\";\n /**\n * The server version string.\n */\n version: string;\n /**\n * Whether writes are enabled.\n *\n * @deprecated Use `readOnly` instead.\n */\n writeOpsEnabled: boolean;\n };\n};\n\n/**\n * Server availability.\n *\n * - `\"default\"`: The server is operational.\n *\n * - `\"readonly\"`: The server is in read-only mode.\n *\n * - `false`: The server is not available.\n */\nexport type ServerAvailability = \"default\" | \"readonly\" | false;\n\n/**\n * Single server deployment information for support purposes.\n */\nexport type SingleServerSupportInfo = {\n /**\n * ISO 8601 datetime string of when the information was requested.\n */\n date: string;\n /**\n * Information about the deployment.\n */\n deployment: {\n /**\n * Deployment mode:\n *\n * - `\"single\"`: A single server deployment.\n *\n * - `\"cluster\"`: A cluster deployment.\n */\n type: \"single\";\n };\n};\n\n/**\n * Cluster deployment information for support purposes.\n */\nexport type ClusterSupportInfo = {\n /**\n * ISO 8601 datetime string of when the information was requested.\n */\n date: string;\n /**\n * Information about the deployment.\n */\n deployment: {\n /**\n * Deployment mode:\n *\n * - `\"single\"`: A single server deployment.\n *\n * - `\"cluster\"`: A cluster deployment.\n */\n type: \"cluster\";\n /**\n * Information about the servers in the cluster.\n */\n servers: Record<string, Record<string, any>>;\n /**\n * Number of agents in the cluster.\n */\n agents: number;\n /**\n * Number of coordinators in the cluster.\n */\n coordinators: number;\n /**\n * Number of DB-Servers in the cluster.\n */\n dbServers: number;\n /**\n * Information about the shards in the cluster.\n */\n shards: {\n /**\n * Number of collections in the cluster.\n */\n collections: number;\n /**\n * Number of shards in the cluster.\n */\n shards: number;\n /**\n * Number of leaders in the cluster.\n */\n leaders: number;\n /**\n * Number of real leaders in the cluster.\n */\n realLeaders: number;\n /**\n * Number of followers in the cluster.\n */\n followers: number;\n /**\n * Number of servers in the cluster.\n */\n servers: number;\n };\n };\n /**\n * (Cluster only.) Information about the ArangoDB instance as well as the\n * host machine.\n */\n host: Record<string, any>;\n};\n\n/**\n * An object providing methods for accessing queue time metrics of the most\n * recently received server responses if the server supports this feature.\n */\nexport interface QueueTimeMetrics {\n /**\n * Returns the queue time of the most recently received response in seconds.\n */\n getLatest(): number | undefined;\n /**\n * Returns a list of the most recently received queue time values as tuples\n * of the timestamp of the response being processed in milliseconds and the\n * queue time in seconds.\n */\n getValues(): [number, number][];\n /**\n * Returns the average queue time of the most recently received responses\n * in seconds.\n */\n getAvg(): number;\n}\n"]}