@sfxcode/nuxt-mongocamp-server 1.7.0 → 1.9.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 (133) hide show
  1. package/README.md +8 -0
  2. package/dist/module.json +2 -2
  3. package/dist/module.mjs +1 -1
  4. package/dist/runtime/api/.openapi-generator/FILES +18 -0
  5. package/dist/runtime/api/.openapi-generator/VERSION +1 -1
  6. package/dist/runtime/api/apis/AdminApi.d.ts +65 -2
  7. package/dist/runtime/api/apis/AdminApi.js +39 -27
  8. package/dist/runtime/api/apis/ApplicationApi.d.ts +17 -2
  9. package/dist/runtime/api/apis/ApplicationApi.js +17 -11
  10. package/dist/runtime/api/apis/AuthApi.d.ts +17 -2
  11. package/dist/runtime/api/apis/AuthApi.js +27 -15
  12. package/dist/runtime/api/apis/BucketApi.d.ts +12 -2
  13. package/dist/runtime/api/apis/BucketApi.js +11 -9
  14. package/dist/runtime/api/apis/CollectionApi.d.ts +163 -4
  15. package/dist/runtime/api/apis/CollectionApi.js +230 -27
  16. package/dist/runtime/api/apis/DatabaseApi.d.ts +12 -2
  17. package/dist/runtime/api/apis/DatabaseApi.js +12 -10
  18. package/dist/runtime/api/apis/DocumentApi.d.ts +223 -15
  19. package/dist/runtime/api/apis/DocumentApi.js +194 -35
  20. package/dist/runtime/api/apis/FileApi.d.ts +78 -4
  21. package/dist/runtime/api/apis/FileApi.js +34 -24
  22. package/dist/runtime/api/apis/IndexApi.d.ts +100 -2
  23. package/dist/runtime/api/apis/IndexApi.js +95 -31
  24. package/dist/runtime/api/apis/JobsApi.d.ts +28 -2
  25. package/dist/runtime/api/apis/JobsApi.js +19 -15
  26. package/dist/runtime/api/apis/SystemApi.d.ts +3 -2
  27. package/dist/runtime/api/apis/SystemApi.js +5 -3
  28. package/dist/runtime/api/docs/CollectionApi.md +254 -2
  29. package/dist/runtime/api/docs/CollectionStatus.md +1 -1
  30. package/dist/runtime/api/docs/CopyRequest.md +40 -0
  31. package/dist/runtime/api/docs/CopyResponse.md +38 -0
  32. package/dist/runtime/api/docs/DatabaseInfo.md +1 -1
  33. package/dist/runtime/api/docs/DocumentApi.md +210 -19
  34. package/dist/runtime/api/docs/FieldInfo.md +36 -0
  35. package/dist/runtime/api/docs/FieldTypeCount.md +36 -0
  36. package/dist/runtime/api/docs/FileInformation.md +1 -1
  37. package/dist/runtime/api/docs/ImportResponse.md +42 -0
  38. package/dist/runtime/api/docs/IndexApi.md +78 -0
  39. package/dist/runtime/api/docs/IndexCreateRequest.md +2 -0
  40. package/dist/runtime/api/docs/IndexInfo.md +54 -0
  41. package/dist/runtime/api/docs/IndexKey.md +36 -0
  42. package/dist/runtime/api/docs/IndexOptionsRequest.md +10 -0
  43. package/dist/runtime/api/docs/IndexUsage.md +1 -1
  44. package/dist/runtime/api/docs/JsonSchemaDefinition.md +1 -1
  45. package/dist/runtime/api/docs/MongoFindRequest.md +3 -3
  46. package/dist/runtime/api/docs/MongoIndex.md +3 -3
  47. package/dist/runtime/api/docs/RenameRequest.md +36 -0
  48. package/dist/runtime/api/docs/RenameResponse.md +34 -0
  49. package/dist/runtime/api/docs/SettingsResponse.md +1 -1
  50. package/dist/runtime/api/docs/UpdateFileInformationRequest.md +1 -1
  51. package/dist/runtime/api/docs/UpdateRequest.md +2 -2
  52. package/dist/runtime/api/models/BucketInformation.d.ts +1 -9
  53. package/dist/runtime/api/models/ClusterInformation.d.ts +1 -5
  54. package/dist/runtime/api/models/ClusterMemberInformation.d.ts +1 -11
  55. package/dist/runtime/api/models/CollectionPermission.d.ts +1 -9
  56. package/dist/runtime/api/models/CollectionStatus.d.ts +2 -28
  57. package/dist/runtime/api/models/CollectionStatus.js +3 -2
  58. package/dist/runtime/api/models/CollectionSummary.d.ts +1 -19
  59. package/dist/runtime/api/models/CopyRequest.d.ts +42 -0
  60. package/dist/runtime/api/models/CopyRequest.js +32 -0
  61. package/dist/runtime/api/models/CopyResponse.d.ts +38 -0
  62. package/dist/runtime/api/models/CopyResponse.js +32 -0
  63. package/dist/runtime/api/models/CountResponse.d.ts +1 -3
  64. package/dist/runtime/api/models/DatabaseInfo.d.ts +2 -12
  65. package/dist/runtime/api/models/DatabaseInfo.js +3 -2
  66. package/dist/runtime/api/models/DeleteResponse.d.ts +1 -5
  67. package/dist/runtime/api/models/ErrorDescription.d.ts +1 -7
  68. package/dist/runtime/api/models/FieldInfo.d.ts +35 -0
  69. package/dist/runtime/api/models/FieldInfo.js +32 -0
  70. package/dist/runtime/api/models/FieldTypeCount.d.ts +34 -0
  71. package/dist/runtime/api/models/FieldTypeCount.js +29 -0
  72. package/dist/runtime/api/models/FileInformation.d.ts +2 -14
  73. package/dist/runtime/api/models/FileInformation.js +4 -3
  74. package/dist/runtime/api/models/Grant.d.ts +1 -11
  75. package/dist/runtime/api/models/ImportResponse.d.ts +47 -0
  76. package/dist/runtime/api/models/ImportResponse.js +41 -0
  77. package/dist/runtime/api/models/IndexCreateRequest.d.ts +7 -6
  78. package/dist/runtime/api/models/IndexCreateRequest.js +9 -4
  79. package/dist/runtime/api/models/IndexCreateResponse.d.ts +1 -3
  80. package/dist/runtime/api/models/IndexDropResponse.d.ts +1 -3
  81. package/dist/runtime/api/models/IndexInfo.d.ts +77 -0
  82. package/dist/runtime/api/models/IndexInfo.js +54 -0
  83. package/dist/runtime/api/models/IndexKey.d.ts +34 -0
  84. package/dist/runtime/api/models/IndexKey.js +29 -0
  85. package/dist/runtime/api/models/IndexOptionsRequest.d.ts +27 -17
  86. package/dist/runtime/api/models/IndexOptionsRequest.js +12 -2
  87. package/dist/runtime/api/models/IndexUsage.d.ts +2 -10
  88. package/dist/runtime/api/models/IndexUsage.js +3 -2
  89. package/dist/runtime/api/models/InsertError.d.ts +1 -7
  90. package/dist/runtime/api/models/InsertResponse.d.ts +1 -9
  91. package/dist/runtime/api/models/JobConfig.d.ts +1 -13
  92. package/dist/runtime/api/models/JobInformation.d.ts +1 -19
  93. package/dist/runtime/api/models/JobInformation.js +5 -4
  94. package/dist/runtime/api/models/JsonSchema.d.ts +1 -7
  95. package/dist/runtime/api/models/JsonSchemaDefinition.d.ts +2 -12
  96. package/dist/runtime/api/models/JsonValueAny.d.ts +1 -3
  97. package/dist/runtime/api/models/JsonValueBoolean.d.ts +1 -3
  98. package/dist/runtime/api/models/JsonValueString.d.ts +1 -3
  99. package/dist/runtime/api/models/Login.d.ts +1 -5
  100. package/dist/runtime/api/models/LoginResult.d.ts +1 -7
  101. package/dist/runtime/api/models/LoginResult.js +3 -2
  102. package/dist/runtime/api/models/MongoAggregateRequest.d.ts +1 -5
  103. package/dist/runtime/api/models/MongoCampConfiguration.d.ts +1 -11
  104. package/dist/runtime/api/models/MongoFindRequest.d.ts +4 -10
  105. package/dist/runtime/api/models/MongoIndex.d.ts +4 -28
  106. package/dist/runtime/api/models/MongoIndex.js +3 -2
  107. package/dist/runtime/api/models/PasswordUpdateRequest.d.ts +1 -3
  108. package/dist/runtime/api/models/PipelineStage.d.ts +1 -5
  109. package/dist/runtime/api/models/RenameRequest.d.ts +34 -0
  110. package/dist/runtime/api/models/RenameRequest.js +28 -0
  111. package/dist/runtime/api/models/RenameResponse.d.ts +30 -0
  112. package/dist/runtime/api/models/RenameResponse.js +26 -0
  113. package/dist/runtime/api/models/Role.d.ts +1 -7
  114. package/dist/runtime/api/models/SchemaAnalysis.d.ts +1 -9
  115. package/dist/runtime/api/models/SchemaAnalysisField.d.ts +1 -13
  116. package/dist/runtime/api/models/SchemaAnalysisFieldType.d.ts +1 -7
  117. package/dist/runtime/api/models/SearchRequest.d.ts +1 -7
  118. package/dist/runtime/api/models/SettingsResponse.d.ts +2 -10
  119. package/dist/runtime/api/models/UpdateFileInformationRequest.d.ts +2 -6
  120. package/dist/runtime/api/models/UpdateRequest.d.ts +3 -7
  121. package/dist/runtime/api/models/UpdateResponse.d.ts +1 -9
  122. package/dist/runtime/api/models/UpdateRoleRequest.d.ts +1 -5
  123. package/dist/runtime/api/models/UserInformation.d.ts +1 -9
  124. package/dist/runtime/api/models/UserProfile.d.ts +1 -11
  125. package/dist/runtime/api/models/Version.d.ts +1 -7
  126. package/dist/runtime/api/models/Version.js +3 -2
  127. package/dist/runtime/api/models/index.d.ts +9 -0
  128. package/dist/runtime/api/models/index.js +9 -0
  129. package/dist/runtime/api/runtime.d.ts +35 -2
  130. package/dist/runtime/api/runtime.js +84 -4
  131. package/dist/runtime/composables/mongocampApiFiles.d.ts +1 -1
  132. package/dist/runtime/composables/mongocampStorage.d.ts +1 -1
  133. package/package.json +4 -4
@@ -7,8 +7,10 @@ All URIs are relative to *http://localhost*
7
7
  | [**_delete**](DocumentApi.md#_delete) | **DELETE** /mongodb/collections/{collectionName}/documents/{documentId} | Delete Document from Collection |
8
8
  | [**countDocuments**](DocumentApi.md#countdocuments) | **GET** /mongodb/collections/{collectionName}/documents/count | Count Documents in Collection |
9
9
  | [**deleteMany**](DocumentApi.md#deletemany) | **DELETE** /mongodb/collections/{collectionName}/documents/many/delete | Delete Many in Collection |
10
+ | [**exportDocuments**](DocumentApi.md#exportdocuments) | **GET** /mongodb/collections/{collectionName}/documents/export | Export Documents of a Collection |
10
11
  | [**find**](DocumentApi.md#find) | **POST** /mongodb/collections/{collectionName}/documents | Documents in Collection |
11
12
  | [**getDocument**](DocumentApi.md#getdocument) | **GET** /mongodb/collections/{collectionName}/documents/{documentId} | Document from Collection |
13
+ | [**importDocuments**](DocumentApi.md#importdocuments) | **POST** /mongodb/collections/{collectionName}/documents/import | Import Documents into a Collection |
12
14
  | [**insert**](DocumentApi.md#insert) | **PUT** /mongodb/collections/{collectionName}/documents | Insert Document |
13
15
  | [**insertMany**](DocumentApi.md#insertmany) | **PUT** /mongodb/collections/{collectionName}/documents/many/insert | Insert many Documents |
14
16
  | [**listDocuments**](DocumentApi.md#listdocuments) | **GET** /mongodb/collections/{collectionName}/documents | Documents in Collection |
@@ -212,7 +214,7 @@ async function example() {
212
214
  const body = {
213
215
  // string | The name of your MongoDb Collection
214
216
  collectionName: collectionName_example,
215
- // { [key: string]: any; }
217
+ // { [key: string]: any | null; }
216
218
  requestBody: Object,
217
219
  // boolean | Allow an empty filter, that matches all documents of the collection (optional)
218
220
  matchAll: true,
@@ -238,7 +240,7 @@ example().catch(console.error);
238
240
  | Name | Type | Description | Notes |
239
241
  |------------- | ------------- | ------------- | -------------|
240
242
  | **collectionName** | `string` | The name of your MongoDb Collection | [Defaults to `undefined`] |
241
- | **requestBody** | `{ [key: string]: any; }` | | |
243
+ | **requestBody** | `{ [key: string]: any | null; }` | | |
242
244
  | **matchAll** | `boolean` | Allow an empty filter, that matches all documents of the collection | [Optional] [Defaults to `false`] |
243
245
  | **filter** | `string` | Filter Query like on the list of documents, as an alternative to the filter of the request body. Use only one of both. | [Optional] [Defaults to `undefined`] |
244
246
 
@@ -266,9 +268,105 @@ example().catch(console.error);
266
268
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
267
269
 
268
270
 
271
+ ## exportDocuments
272
+
273
+ > string exportDocuments(collectionName, format, filter, sort, projection, limit, extendedJson)
274
+
275
+ Export Documents of a Collection
276
+
277
+ Download the documents of a Collection as a stream: ndjson (one JSON document per line), json (one array) or csv (a header line, nested values as JSON, a text with a comma, a quote or a line break in quotes). The documents are written while the database delivers them, the memory of the server does not depend on the size of the Collection. The columns of a csv export are the fields of `projection`, by default the fields of the first 1000 documents. With extendedJson the types of the values are explicit. A failure while the stream is running ends the stream, the status is 200 by then.
278
+
279
+ ### Example
280
+
281
+ ```ts
282
+ import {
283
+ Configuration,
284
+ DocumentApi,
285
+ } from '';
286
+ import type { ExportDocumentsRequest } from '';
287
+
288
+ async function example() {
289
+ console.log("🚀 Testing SDK...");
290
+ const config = new Configuration({
291
+ // To configure HTTP basic authorization: httpAuth1
292
+ username: "YOUR USERNAME",
293
+ password: "YOUR PASSWORD",
294
+ // Configure HTTP bearer authorization: httpAuth
295
+ accessToken: "YOUR BEARER TOKEN",
296
+ // To configure API key authorization: apiKeyAuth
297
+ apiKey: "YOUR API KEY",
298
+ });
299
+ const api = new DocumentApi(config);
300
+
301
+ const body = {
302
+ // string | The name of your MongoDb Collection
303
+ collectionName: collectionName_example,
304
+ // string | ndjson (one JSON document per line), json (one array) or csv (optional)
305
+ format: format_example,
306
+ // string | Filter Query like on the list of documents, by default all documents are exported (optional)
307
+ filter: filter_example,
308
+ // Array<string> | Sorting like on the list of documents, a leading - sorts descending (optional)
309
+ sort: ...,
310
+ // Array<string> | The fields to export, for csv they are the columns in this order (optional)
311
+ projection: ...,
312
+ // number | The greatest number of documents, by default all (optional)
313
+ limit: 56,
314
+ // string | relaxed or canonical: the documents with the types of their values as MongoDB Extended JSON ({\"$oid\": ...}, {\"$date\": ...}, {\"$numberDecimal\": ...}, canonical also {\"$numberInt\": ...}, {\"$numberLong\": ...} and {\"$numberDouble\": ...}). Without the parameter the documents are returned as before. (optional)
315
+ extendedJson: extendedJson_example,
316
+ } satisfies ExportDocumentsRequest;
317
+
318
+ try {
319
+ const data = await api.exportDocuments(body);
320
+ console.log(data);
321
+ } catch (error) {
322
+ console.error(error);
323
+ }
324
+ }
325
+
326
+ // Run the test
327
+ example().catch(console.error);
328
+ ```
329
+
330
+ ### Parameters
331
+
332
+
333
+ | Name | Type | Description | Notes |
334
+ |------------- | ------------- | ------------- | -------------|
335
+ | **collectionName** | `string` | The name of your MongoDb Collection | [Defaults to `undefined`] |
336
+ | **format** | `string` | ndjson (one JSON document per line), json (one array) or csv | [Optional] [Defaults to `&#39;ndjson&#39;`] |
337
+ | **filter** | `string` | Filter Query like on the list of documents, by default all documents are exported | [Optional] [Defaults to `undefined`] |
338
+ | **sort** | `Array<string>` | Sorting like on the list of documents, a leading - sorts descending | [Optional] |
339
+ | **projection** | `Array<string>` | The fields to export, for csv they are the columns in this order | [Optional] |
340
+ | **limit** | `number` | The greatest number of documents, by default all | [Optional] [Defaults to `undefined`] |
341
+ | **extendedJson** | `string` | relaxed or canonical: the documents with the types of their values as MongoDB Extended JSON ({\&quot;$oid\&quot;: ...}, {\&quot;$date\&quot;: ...}, {\&quot;$numberDecimal\&quot;: ...}, canonical also {\&quot;$numberInt\&quot;: ...}, {\&quot;$numberLong\&quot;: ...} and {\&quot;$numberDouble\&quot;: ...}). Without the parameter the documents are returned as before. | [Optional] [Defaults to `undefined`] |
342
+
343
+ ### Return type
344
+
345
+ **string**
346
+
347
+ ### Authorization
348
+
349
+ [httpAuth1](../README.md#httpAuth1), [httpAuth](../README.md#httpAuth), [apiKeyAuth](../README.md#apiKeyAuth)
350
+
351
+ ### HTTP request headers
352
+
353
+ - **Content-Type**: Not defined
354
+ - **Accept**: `text/plain`, `application/json`
355
+
356
+
357
+ ### HTTP response details
358
+ | Status code | Description | Response headers |
359
+ |-------------|-------------|------------------|
360
+ | **200** | | * Content-Disposition - <br> |
361
+ | **400** | Invalid value for: query parameter limit | - |
362
+ | **0** | | * x-error-code - Error Code <br> * x-error-message - Message of the MongoCampException <br> * x-error-additional-info - Additional information for the MongoCampException <br> |
363
+
364
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
365
+
366
+
269
367
  ## find
270
368
 
271
- > Array&lt;{ [key: string]: any; }&gt; find(collectionName, mongoFindRequest, rowsPerPage, page)
369
+ > Array&lt;{ [key: string]: any | null; }&gt; find(collectionName, mongoFindRequest, rowsPerPage, page, extendedJson)
272
370
 
273
371
  Documents in Collection
274
372
 
@@ -305,6 +403,8 @@ async function example() {
305
403
  rowsPerPage: 100,
306
404
  // number | Requested page of the ResultSets (optional)
307
405
  page: 1,
406
+ // string | relaxed or canonical: the documents with the types of their values as MongoDB Extended JSON ({\"$oid\": ...}, {\"$date\": ...}, {\"$numberDecimal\": ...}, canonical also {\"$numberInt\": ...}, {\"$numberLong\": ...} and {\"$numberDouble\": ...}). Without the parameter the documents are returned as before. (optional)
407
+ extendedJson: extendedJson_example,
308
408
  } satisfies FindRequest;
309
409
 
310
410
  try {
@@ -328,10 +428,11 @@ example().catch(console.error);
328
428
  | **mongoFindRequest** | [MongoFindRequest](MongoFindRequest.md) | | |
329
429
  | **rowsPerPage** | `number` | Count elements per page | [Optional] [Defaults to `undefined`] |
330
430
  | **page** | `number` | Requested page of the ResultSets | [Optional] [Defaults to `undefined`] |
431
+ | **extendedJson** | `string` | relaxed or canonical: the documents with the types of their values as MongoDB Extended JSON ({\&quot;$oid\&quot;: ...}, {\&quot;$date\&quot;: ...}, {\&quot;$numberDecimal\&quot;: ...}, canonical also {\&quot;$numberInt\&quot;: ...}, {\&quot;$numberLong\&quot;: ...} and {\&quot;$numberDouble\&quot;: ...}). Without the parameter the documents are returned as before. | [Optional] [Defaults to `undefined`] |
331
432
 
332
433
  ### Return type
333
434
 
334
- **Array<{ [key: string]: any; }>**
435
+ **Array<{ [key: string]: any | null; }>**
335
436
 
336
437
  ### Authorization
337
438
 
@@ -355,7 +456,7 @@ example().catch(console.error);
355
456
 
356
457
  ## getDocument
357
458
 
358
- > { [key: string]: any; } getDocument(collectionName, documentId)
459
+ > { [key: string]: any | null; } getDocument(collectionName, documentId, extendedJson)
359
460
 
360
461
  Document from Collection
361
462
 
@@ -388,6 +489,8 @@ async function example() {
388
489
  collectionName: collectionName_example,
389
490
  // string | DocumentId to read
390
491
  documentId: documentId_example,
492
+ // string | relaxed or canonical: the documents with the types of their values as MongoDB Extended JSON ({\"$oid\": ...}, {\"$date\": ...}, {\"$numberDecimal\": ...}, canonical also {\"$numberInt\": ...}, {\"$numberLong\": ...} and {\"$numberDouble\": ...}). Without the parameter the documents are returned as before. (optional)
493
+ extendedJson: extendedJson_example,
391
494
  } satisfies GetDocumentRequest;
392
495
 
393
496
  try {
@@ -409,10 +512,11 @@ example().catch(console.error);
409
512
  |------------- | ------------- | ------------- | -------------|
410
513
  | **collectionName** | `string` | The name of your MongoDb Collection | [Defaults to `undefined`] |
411
514
  | **documentId** | `string` | DocumentId to read | [Defaults to `undefined`] |
515
+ | **extendedJson** | `string` | relaxed or canonical: the documents with the types of their values as MongoDB Extended JSON ({\&quot;$oid\&quot;: ...}, {\&quot;$date\&quot;: ...}, {\&quot;$numberDecimal\&quot;: ...}, canonical also {\&quot;$numberInt\&quot;: ...}, {\&quot;$numberLong\&quot;: ...} and {\&quot;$numberDouble\&quot;: ...}). Without the parameter the documents are returned as before. | [Optional] [Defaults to `undefined`] |
412
516
 
413
517
  ### Return type
414
518
 
415
- **{ [key: string]: any; }**
519
+ **{ [key: string]: any | null; }**
416
520
 
417
521
  ### Authorization
418
522
 
@@ -433,6 +537,87 @@ example().catch(console.error);
433
537
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
434
538
 
435
539
 
540
+ ## importDocuments
541
+
542
+ > ImportResponse importDocuments(collectionName, body)
543
+
544
+ Import Documents into a Collection
545
+
546
+ Store the documents of the request body: one JSON document per line (NDJSON, as written by the export). A line is read like a document in the body of an insert (Extended JSON wrappers, dates). The body is read as a stream and the documents are stored in batches without ordering, a line that cannot be stored does not stop the others: the answer counts what was read, stored and failed and names the first failed lines (&#x60;errors&#x60;, &#x60;index&#x60; is the number of the line). The size of the body is limited by IMPORT_MAX_BYTES (413 above), there is no time limit.
547
+
548
+ ### Example
549
+
550
+ ```ts
551
+ import {
552
+ Configuration,
553
+ DocumentApi,
554
+ } from '';
555
+ import type { ImportDocumentsRequest } from '';
556
+
557
+ async function example() {
558
+ console.log("🚀 Testing SDK...");
559
+ const config = new Configuration({
560
+ // To configure HTTP basic authorization: httpAuth1
561
+ username: "YOUR USERNAME",
562
+ password: "YOUR PASSWORD",
563
+ // Configure HTTP bearer authorization: httpAuth
564
+ accessToken: "YOUR BEARER TOKEN",
565
+ // To configure API key authorization: apiKeyAuth
566
+ apiKey: "YOUR API KEY",
567
+ });
568
+ const api = new DocumentApi(config);
569
+
570
+ const body = {
571
+ // string | The name of your MongoDb Collection
572
+ collectionName: collectionName_example,
573
+ // string
574
+ body: body_example,
575
+ } satisfies ImportDocumentsRequest;
576
+
577
+ try {
578
+ const data = await api.importDocuments(body);
579
+ console.log(data);
580
+ } catch (error) {
581
+ console.error(error);
582
+ }
583
+ }
584
+
585
+ // Run the test
586
+ example().catch(console.error);
587
+ ```
588
+
589
+ ### Parameters
590
+
591
+
592
+ | Name | Type | Description | Notes |
593
+ |------------- | ------------- | ------------- | -------------|
594
+ | **collectionName** | `string` | The name of your MongoDb Collection | [Defaults to `undefined`] |
595
+ | **body** | `string` | | |
596
+
597
+ ### Return type
598
+
599
+ [**ImportResponse**](ImportResponse.md)
600
+
601
+ ### Authorization
602
+
603
+ [httpAuth1](../README.md#httpAuth1), [httpAuth](../README.md#httpAuth), [apiKeyAuth](../README.md#apiKeyAuth)
604
+
605
+ ### HTTP request headers
606
+
607
+ - **Content-Type**: `text/plain`
608
+ - **Accept**: `application/json`, `text/plain`
609
+
610
+
611
+ ### HTTP response details
612
+ | Status code | Description | Response headers |
613
+ |-------------|-------------|------------------|
614
+ | **200** | | - |
615
+ | **400** | Invalid value for: body | - |
616
+ | **0** | | * x-error-code - Error Code <br> * x-error-message - Message of the MongoCampException <br> * x-error-additional-info - Additional information for the MongoCampException <br> |
617
+
618
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
619
+
620
+
436
621
  ## insert
437
622
 
438
623
  > InsertResponse insert(collectionName, requestBody)
@@ -466,8 +651,8 @@ async function example() {
466
651
  const body = {
467
652
  // string | The name of your MongoDb Collection
468
653
  collectionName: collectionName_example,
469
- // { [key: string]: any; } | JSON Representation for your Document.
470
- requestBody: {"key1":"value","key2":true,"key3":{"creationDate":"2026-11-06T06:04:09.291Z"}},
654
+ // { [key: string]: any | null; } | JSON Representation for your Document.
655
+ requestBody: {"key1":"value","key2":true,"key3":{"creationDate":"2026-11-12T19:00:42.728Z"}},
471
656
  } satisfies InsertRequest;
472
657
 
473
658
  try {
@@ -488,7 +673,7 @@ example().catch(console.error);
488
673
  | Name | Type | Description | Notes |
489
674
  |------------- | ------------- | ------------- | -------------|
490
675
  | **collectionName** | `string` | The name of your MongoDb Collection | [Defaults to `undefined`] |
491
- | **requestBody** | `{ [key: string]: any; }` | JSON Representation for your Document. | |
676
+ | **requestBody** | `{ [key: string]: any | null; }` | JSON Representation for your Document. | |
492
677
 
493
678
  ### Return type
494
679
 
@@ -549,7 +734,7 @@ async function example() {
549
734
  collectionName: collectionName_example,
550
735
  // boolean | true (default): the insert stops at the first document that fails (answer 409 for a duplicate key). false: all documents that can be stored are stored, the others are listed in `errors` of the answer. (optional)
551
736
  ordered: true,
552
- // Array<{ [key: string]: any; }> (optional)
737
+ // Array<{ [key: string]: any | null; }> (optional)
553
738
  requestBody: ...,
554
739
  } satisfies InsertManyRequest;
555
740
 
@@ -572,7 +757,7 @@ example().catch(console.error);
572
757
  |------------- | ------------- | ------------- | -------------|
573
758
  | **collectionName** | `string` | The name of your MongoDb Collection | [Defaults to `undefined`] |
574
759
  | **ordered** | `boolean` | true (default): the insert stops at the first document that fails (answer 409 for a duplicate key). false: all documents that can be stored are stored, the others are listed in &#x60;errors&#x60; of the answer. | [Optional] [Defaults to `true`] |
575
- | **requestBody** | `Array<{ [key: string]: any; }>` | | [Optional] |
760
+ | **requestBody** | `Array<{ [key: string]: any | null; }>` | | [Optional] |
576
761
 
577
762
  ### Return type
578
763
 
@@ -600,7 +785,7 @@ example().catch(console.error);
600
785
 
601
786
  ## listDocuments
602
787
 
603
- > Array&lt;{ [key: string]: any; }&gt; listDocuments(collectionName, filter, sort, projection, rowsPerPage, page)
788
+ > Array&lt;{ [key: string]: any | null; }&gt; listDocuments(collectionName, filter, sort, projection, rowsPerPage, page, extendedJson)
604
789
 
605
790
  Documents in Collection
606
791
 
@@ -641,6 +826,8 @@ async function example() {
641
826
  rowsPerPage: 100,
642
827
  // number | Requested page of the ResultSets (optional)
643
828
  page: 1,
829
+ // string | relaxed or canonical: the documents with the types of their values as MongoDB Extended JSON ({\"$oid\": ...}, {\"$date\": ...}, {\"$numberDecimal\": ...}, canonical also {\"$numberInt\": ...}, {\"$numberLong\": ...} and {\"$numberDouble\": ...}). Without the parameter the documents are returned as before. (optional)
830
+ extendedJson: extendedJson_example,
644
831
  } satisfies ListDocumentsRequest;
645
832
 
646
833
  try {
@@ -666,10 +853,11 @@ example().catch(console.error);
666
853
  | **projection** | `Array<string>` | MongoDB projection | [Optional] |
667
854
  | **rowsPerPage** | `number` | Count elements per page | [Optional] [Defaults to `undefined`] |
668
855
  | **page** | `number` | Requested page of the ResultSets | [Optional] [Defaults to `undefined`] |
856
+ | **extendedJson** | `string` | relaxed or canonical: the documents with the types of their values as MongoDB Extended JSON ({\&quot;$oid\&quot;: ...}, {\&quot;$date\&quot;: ...}, {\&quot;$numberDecimal\&quot;: ...}, canonical also {\&quot;$numberInt\&quot;: ...}, {\&quot;$numberLong\&quot;: ...} and {\&quot;$numberDouble\&quot;: ...}). Without the parameter the documents are returned as before. | [Optional] [Defaults to `undefined`] |
669
857
 
670
858
  ### Return type
671
859
 
672
- **Array<{ [key: string]: any; }>**
860
+ **Array<{ [key: string]: any | null; }>**
673
861
 
674
862
  ### Authorization
675
863
 
@@ -693,7 +881,7 @@ example().catch(console.error);
693
881
 
694
882
  ## searchDocuments
695
883
 
696
- > Array&lt;{ [key: string]: any; }&gt; searchDocuments(collectionName, searchRequest, rowsPerPage, page)
884
+ > Array&lt;{ [key: string]: any | null; }&gt; searchDocuments(collectionName, searchRequest, rowsPerPage, page, extendedJson)
697
885
 
698
886
  Search Documents in Collection
699
887
 
@@ -730,6 +918,8 @@ async function example() {
730
918
  rowsPerPage: 100,
731
919
  // number | Requested page of the ResultSets (optional)
732
920
  page: 1,
921
+ // string | relaxed or canonical: the documents with the types of their values as MongoDB Extended JSON ({\"$oid\": ...}, {\"$date\": ...}, {\"$numberDecimal\": ...}, canonical also {\"$numberInt\": ...}, {\"$numberLong\": ...} and {\"$numberDouble\": ...}). Without the parameter the documents are returned as before. (optional)
922
+ extendedJson: extendedJson_example,
733
923
  } satisfies SearchDocumentsRequest;
734
924
 
735
925
  try {
@@ -753,10 +943,11 @@ example().catch(console.error);
753
943
  | **searchRequest** | [SearchRequest](SearchRequest.md) | | |
754
944
  | **rowsPerPage** | `number` | Count elements per page | [Optional] [Defaults to `undefined`] |
755
945
  | **page** | `number` | Requested page of the ResultSets | [Optional] [Defaults to `undefined`] |
946
+ | **extendedJson** | `string` | relaxed or canonical: the documents with the types of their values as MongoDB Extended JSON ({\&quot;$oid\&quot;: ...}, {\&quot;$date\&quot;: ...}, {\&quot;$numberDecimal\&quot;: ...}, canonical also {\&quot;$numberInt\&quot;: ...}, {\&quot;$numberLong\&quot;: ...} and {\&quot;$numberDouble\&quot;: ...}). Without the parameter the documents are returned as before. | [Optional] [Defaults to `undefined`] |
756
947
 
757
948
  ### Return type
758
949
 
759
- **Array<{ [key: string]: any; }>**
950
+ **Array<{ [key: string]: any | null; }>**
760
951
 
761
952
  ### Authorization
762
953
 
@@ -813,7 +1004,7 @@ async function example() {
813
1004
  collectionName: collectionName_example,
814
1005
  // string | DocumentId to update
815
1006
  documentId: documentId_example,
816
- // { [key: string]: any; }
1007
+ // { [key: string]: any | null; }
817
1008
  requestBody: Object,
818
1009
  } satisfies UpdateRequest;
819
1010
 
@@ -836,7 +1027,7 @@ example().catch(console.error);
836
1027
  |------------- | ------------- | ------------- | -------------|
837
1028
  | **collectionName** | `string` | The name of your MongoDb Collection | [Defaults to `undefined`] |
838
1029
  | **documentId** | `string` | DocumentId to update | [Defaults to `undefined`] |
839
- | **requestBody** | `{ [key: string]: any; }` | | |
1030
+ | **requestBody** | `{ [key: string]: any | null; }` | | |
840
1031
 
841
1032
  ### Return type
842
1033
 
@@ -897,7 +1088,7 @@ async function example() {
897
1088
  collectionName: collectionName_example,
898
1089
  // string | DocumentId to update
899
1090
  documentId: documentId_example,
900
- // { [key: string]: any; }
1091
+ // { [key: string]: any | null; }
901
1092
  requestBody: Object,
902
1093
  } satisfies UpdateDocumentPartialRequest;
903
1094
 
@@ -920,7 +1111,7 @@ example().catch(console.error);
920
1111
  |------------- | ------------- | ------------- | -------------|
921
1112
  | **collectionName** | `string` | The name of your MongoDb Collection | [Defaults to `undefined`] |
922
1113
  | **documentId** | `string` | DocumentId to update | [Defaults to `undefined`] |
923
- | **requestBody** | `{ [key: string]: any; }` | | |
1114
+ | **requestBody** | `{ [key: string]: any | null; }` | | |
924
1115
 
925
1116
  ### Return type
926
1117
 
@@ -0,0 +1,36 @@
1
+
2
+ # FieldInfo
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `path` | string
10
+ `types` | [Array&lt;FieldTypeCount&gt;](FieldTypeCount.md)
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { FieldInfo } from ''
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "path": null,
20
+ "types": null,
21
+ } satisfies FieldInfo
22
+
23
+ console.log(example)
24
+
25
+ // Convert the instance to a JSON string
26
+ const exampleJSON: string = JSON.stringify(example)
27
+ console.log(exampleJSON)
28
+
29
+ // Parse the JSON string back to an object
30
+ const exampleParsed = JSON.parse(exampleJSON) as FieldInfo
31
+ console.log(exampleParsed)
32
+ ```
33
+
34
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
+
36
+
@@ -0,0 +1,36 @@
1
+
2
+ # FieldTypeCount
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `type` | string
10
+ `count` | number
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { FieldTypeCount } from ''
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "type": null,
20
+ "count": null,
21
+ } satisfies FieldTypeCount
22
+
23
+ console.log(example)
24
+
25
+ // Convert the instance to a JSON string
26
+ const exampleJSON: string = JSON.stringify(example)
27
+ console.log(exampleJSON)
28
+
29
+ // Parse the JSON string back to an object
30
+ const exampleParsed = JSON.parse(exampleJSON) as FieldTypeCount
31
+ console.log(exampleParsed)
32
+ ```
33
+
34
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
+
36
+
@@ -11,7 +11,7 @@ Name | Type
11
11
  `length` | number
12
12
  `chunkSize` | number
13
13
  `uploadDate` | Date
14
- `metadata` | { [key: string]: any; }
14
+ `metadata` | { [key: string]: any | null; }
15
15
 
16
16
  ## Example
17
17
 
@@ -0,0 +1,42 @@
1
+
2
+ # ImportResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `read` | number
10
+ `inserted` | number
11
+ `failed` | number
12
+ `errors` | [Array&lt;InsertError&gt;](InsertError.md)
13
+ `errorsTruncated` | boolean
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { ImportResponse } from ''
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "read": null,
23
+ "inserted": null,
24
+ "failed": null,
25
+ "errors": null,
26
+ "errorsTruncated": null,
27
+ } satisfies ImportResponse
28
+
29
+ console.log(example)
30
+
31
+ // Convert the instance to a JSON string
32
+ const exampleJSON: string = JSON.stringify(example)
33
+ console.log(exampleJSON)
34
+
35
+ // Parse the JSON string back to an object
36
+ const exampleParsed = JSON.parse(exampleJSON) as ImportResponse
37
+ console.log(exampleParsed)
38
+ ```
39
+
40
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
41
+
42
+
@@ -11,6 +11,7 @@ All URIs are relative to *http://localhost*
11
11
  | [**createUniqueIndex**](IndexApi.md#createuniqueindex) | **PUT** /mongodb/collections/{collectionName}/index/field/{fieldName}/unique | Create Unique Index |
12
12
  | [**deleteIndex**](IndexApi.md#deleteindex) | **DELETE** /mongodb/collections/{collectionName}/index/{indexName} | Delete Index |
13
13
  | [**index**](IndexApi.md#index) | **GET** /mongodb/collections/{collectionName}/index/{indexName} | Index for Collection |
14
+ | [**indexDetails**](IndexApi.md#indexdetails) | **GET** /mongodb/collections/{collectionName}/index/details | Indices with details for Collection |
14
15
  | [**indexStats**](IndexApi.md#indexstats) | **GET** /mongodb/collections/{collectionName}/index/stats | Index usage for Collection |
15
16
  | [**listIndices**](IndexApi.md#listindices) | **GET** /mongodb/collections/{collectionName}/index | List Indices for Collection |
16
17
 
@@ -605,6 +606,83 @@ example().catch(console.error);
605
606
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
606
607
 
607
608
 
609
+ ## indexDetails
610
+
611
+ > Array&lt;IndexInfo&gt; indexDetails(collectionName)
612
+
613
+ Indices with details for Collection
614
+
615
+ All Indices of the given Collection as the database reports them: the keys in the order of the index (&#x60;direction&#x60; is 1, -1 or the type of the key, a text index lists its fields), unique, sparse, hidden, partial filter, collation, weights, default language and expiration.
616
+
617
+ ### Example
618
+
619
+ ```ts
620
+ import {
621
+ Configuration,
622
+ IndexApi,
623
+ } from '';
624
+ import type { IndexDetailsRequest } from '';
625
+
626
+ async function example() {
627
+ console.log("🚀 Testing SDK...");
628
+ const config = new Configuration({
629
+ // To configure HTTP basic authorization: httpAuth1
630
+ username: "YOUR USERNAME",
631
+ password: "YOUR PASSWORD",
632
+ // Configure HTTP bearer authorization: httpAuth
633
+ accessToken: "YOUR BEARER TOKEN",
634
+ // To configure API key authorization: apiKeyAuth
635
+ apiKey: "YOUR API KEY",
636
+ });
637
+ const api = new IndexApi(config);
638
+
639
+ const body = {
640
+ // string | The name of your MongoDb Collection
641
+ collectionName: collectionName_example,
642
+ } satisfies IndexDetailsRequest;
643
+
644
+ try {
645
+ const data = await api.indexDetails(body);
646
+ console.log(data);
647
+ } catch (error) {
648
+ console.error(error);
649
+ }
650
+ }
651
+
652
+ // Run the test
653
+ example().catch(console.error);
654
+ ```
655
+
656
+ ### Parameters
657
+
658
+
659
+ | Name | Type | Description | Notes |
660
+ |------------- | ------------- | ------------- | -------------|
661
+ | **collectionName** | `string` | The name of your MongoDb Collection | [Defaults to `undefined`] |
662
+
663
+ ### Return type
664
+
665
+ [**Array&lt;IndexInfo&gt;**](IndexInfo.md)
666
+
667
+ ### Authorization
668
+
669
+ [httpAuth1](../README.md#httpAuth1), [httpAuth](../README.md#httpAuth), [apiKeyAuth](../README.md#apiKeyAuth)
670
+
671
+ ### HTTP request headers
672
+
673
+ - **Content-Type**: Not defined
674
+ - **Accept**: `application/json`
675
+
676
+
677
+ ### HTTP response details
678
+ | Status code | Description | Response headers |
679
+ |-------------|-------------|------------------|
680
+ | **200** | | - |
681
+ | **0** | | * x-error-code - Error Code <br> * x-error-message - Message of the MongoCampException <br> * x-error-additional-info - Additional information for the MongoCampException <br> |
682
+
683
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
684
+
685
+
608
686
  ## indexStats
609
687
 
610
688
  > Array&lt;IndexUsage&gt; indexStats(collectionName)
@@ -8,6 +8,7 @@ Name | Type
8
8
  ------------ | -------------
9
9
  `keys` | { [key: string]: number; }
10
10
  `indexOptionsRequest` | [IndexOptionsRequest](IndexOptionsRequest.md)
11
+ `orderedKeys` | [Array&lt;IndexKey&gt;](IndexKey.md)
11
12
 
12
13
  ## Example
13
14
 
@@ -18,6 +19,7 @@ import type { IndexCreateRequest } from ''
18
19
  const example = {
19
20
  "keys": null,
20
21
  "indexOptionsRequest": null,
22
+ "orderedKeys": null,
21
23
  } satisfies IndexCreateRequest
22
24
 
23
25
  console.log(example)