@sfxcode/nuxt-mongocamp-server 1.6.3 → 1.7.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 (87) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +1 -1
  3. package/dist/runtime/api/.openapi-generator/FILES +12 -0
  4. package/dist/runtime/api/apis/AdminApi.d.ts +1 -1
  5. package/dist/runtime/api/apis/ApplicationApi.d.ts +1 -1
  6. package/dist/runtime/api/apis/AuthApi.d.ts +19 -2
  7. package/dist/runtime/api/apis/AuthApi.js +48 -0
  8. package/dist/runtime/api/apis/BucketApi.d.ts +1 -1
  9. package/dist/runtime/api/apis/CollectionApi.d.ts +22 -4
  10. package/dist/runtime/api/apis/CollectionApi.js +53 -2
  11. package/dist/runtime/api/apis/DatabaseApi.d.ts +1 -1
  12. package/dist/runtime/api/apis/DocumentApi.d.ts +47 -2
  13. package/dist/runtime/api/apis/DocumentApi.js +130 -0
  14. package/dist/runtime/api/apis/FileApi.d.ts +1 -1
  15. package/dist/runtime/api/apis/IndexApi.d.ts +19 -2
  16. package/dist/runtime/api/apis/IndexApi.js +52 -0
  17. package/dist/runtime/api/apis/JobsApi.d.ts +1 -1
  18. package/dist/runtime/api/apis/SystemApi.d.ts +1 -1
  19. package/dist/runtime/api/docs/AuthApi.md +78 -0
  20. package/dist/runtime/api/docs/CollectionApi.md +83 -2
  21. package/dist/runtime/api/docs/CollectionPermission.md +40 -0
  22. package/dist/runtime/api/docs/CollectionSummary.md +50 -0
  23. package/dist/runtime/api/docs/CountResponse.md +34 -0
  24. package/dist/runtime/api/docs/DocumentApi.md +183 -5
  25. package/dist/runtime/api/docs/IndexApi.md +78 -0
  26. package/dist/runtime/api/docs/IndexUsage.md +40 -0
  27. package/dist/runtime/api/docs/InsertError.md +38 -0
  28. package/dist/runtime/api/docs/InsertResponse.md +4 -0
  29. package/dist/runtime/api/docs/SearchRequest.md +38 -0
  30. package/dist/runtime/api/models/BucketInformation.d.ts +1 -1
  31. package/dist/runtime/api/models/ClusterInformation.d.ts +1 -1
  32. package/dist/runtime/api/models/ClusterMemberInformation.d.ts +1 -1
  33. package/dist/runtime/api/models/CollectionPermission.d.ts +50 -0
  34. package/dist/runtime/api/models/CollectionPermission.js +35 -0
  35. package/dist/runtime/api/models/CollectionStatus.d.ts +1 -1
  36. package/dist/runtime/api/models/CollectionSummary.d.ts +80 -0
  37. package/dist/runtime/api/models/CollectionSummary.js +50 -0
  38. package/dist/runtime/api/models/CountResponse.d.ts +32 -0
  39. package/dist/runtime/api/models/CountResponse.js +26 -0
  40. package/dist/runtime/api/models/DatabaseInfo.d.ts +1 -1
  41. package/dist/runtime/api/models/DeleteResponse.d.ts +1 -1
  42. package/dist/runtime/api/models/ErrorDescription.d.ts +1 -1
  43. package/dist/runtime/api/models/FileInformation.d.ts +1 -1
  44. package/dist/runtime/api/models/Grant.d.ts +1 -1
  45. package/dist/runtime/api/models/IndexCreateRequest.d.ts +1 -1
  46. package/dist/runtime/api/models/IndexCreateResponse.d.ts +1 -1
  47. package/dist/runtime/api/models/IndexDropResponse.d.ts +1 -1
  48. package/dist/runtime/api/models/IndexOptionsRequest.d.ts +1 -1
  49. package/dist/runtime/api/models/IndexUsage.d.ts +52 -0
  50. package/dist/runtime/api/models/IndexUsage.js +35 -0
  51. package/dist/runtime/api/models/InsertError.d.ts +44 -0
  52. package/dist/runtime/api/models/InsertError.js +32 -0
  53. package/dist/runtime/api/models/InsertResponse.d.ts +14 -1
  54. package/dist/runtime/api/models/InsertResponse.js +10 -2
  55. package/dist/runtime/api/models/JobConfig.d.ts +1 -1
  56. package/dist/runtime/api/models/JobInformation.d.ts +1 -1
  57. package/dist/runtime/api/models/JsonSchema.d.ts +1 -1
  58. package/dist/runtime/api/models/JsonSchemaDefinition.d.ts +1 -1
  59. package/dist/runtime/api/models/JsonValueAny.d.ts +1 -1
  60. package/dist/runtime/api/models/JsonValueBoolean.d.ts +1 -1
  61. package/dist/runtime/api/models/JsonValueString.d.ts +1 -1
  62. package/dist/runtime/api/models/Login.d.ts +1 -1
  63. package/dist/runtime/api/models/LoginResult.d.ts +1 -1
  64. package/dist/runtime/api/models/MongoAggregateRequest.d.ts +1 -1
  65. package/dist/runtime/api/models/MongoCampConfiguration.d.ts +1 -1
  66. package/dist/runtime/api/models/MongoFindRequest.d.ts +1 -1
  67. package/dist/runtime/api/models/MongoIndex.d.ts +1 -1
  68. package/dist/runtime/api/models/PasswordUpdateRequest.d.ts +1 -1
  69. package/dist/runtime/api/models/PipelineStage.d.ts +1 -1
  70. package/dist/runtime/api/models/Role.d.ts +1 -1
  71. package/dist/runtime/api/models/SchemaAnalysis.d.ts +1 -1
  72. package/dist/runtime/api/models/SchemaAnalysisField.d.ts +1 -1
  73. package/dist/runtime/api/models/SchemaAnalysisFieldType.d.ts +1 -1
  74. package/dist/runtime/api/models/SearchRequest.d.ts +44 -0
  75. package/dist/runtime/api/models/SearchRequest.js +29 -0
  76. package/dist/runtime/api/models/SettingsResponse.d.ts +1 -1
  77. package/dist/runtime/api/models/UpdateFileInformationRequest.d.ts +1 -1
  78. package/dist/runtime/api/models/UpdateRequest.d.ts +1 -1
  79. package/dist/runtime/api/models/UpdateResponse.d.ts +1 -1
  80. package/dist/runtime/api/models/UpdateRoleRequest.d.ts +1 -1
  81. package/dist/runtime/api/models/UserInformation.d.ts +1 -1
  82. package/dist/runtime/api/models/UserProfile.d.ts +1 -1
  83. package/dist/runtime/api/models/Version.d.ts +1 -1
  84. package/dist/runtime/api/models/index.d.ts +6 -0
  85. package/dist/runtime/api/models/index.js +6 -0
  86. package/dist/runtime/api/runtime.d.ts +1 -1
  87. package/package.json +7 -7
@@ -5,12 +5,14 @@ All URIs are relative to *http://localhost*
5
5
  | Method | HTTP request | Description |
6
6
  |------------- | ------------- | -------------|
7
7
  | [**_delete**](DocumentApi.md#_delete) | **DELETE** /mongodb/collections/{collectionName}/documents/{documentId} | Delete Document from Collection |
8
+ | [**countDocuments**](DocumentApi.md#countdocuments) | **GET** /mongodb/collections/{collectionName}/documents/count | Count Documents in Collection |
8
9
  | [**deleteMany**](DocumentApi.md#deletemany) | **DELETE** /mongodb/collections/{collectionName}/documents/many/delete | Delete Many in Collection |
9
10
  | [**find**](DocumentApi.md#find) | **POST** /mongodb/collections/{collectionName}/documents | Documents in Collection |
10
11
  | [**getDocument**](DocumentApi.md#getdocument) | **GET** /mongodb/collections/{collectionName}/documents/{documentId} | Document from Collection |
11
12
  | [**insert**](DocumentApi.md#insert) | **PUT** /mongodb/collections/{collectionName}/documents | Insert Document |
12
13
  | [**insertMany**](DocumentApi.md#insertmany) | **PUT** /mongodb/collections/{collectionName}/documents/many/insert | Insert many Documents |
13
14
  | [**listDocuments**](DocumentApi.md#listdocuments) | **GET** /mongodb/collections/{collectionName}/documents | Documents in Collection |
15
+ | [**searchDocuments**](DocumentApi.md#searchdocuments) | **POST** /mongodb/collections/{collectionName}/documents/search | Search Documents in Collection |
14
16
  | [**update**](DocumentApi.md#update) | **PATCH** /mongodb/collections/{collectionName}/documents/{documentId} | Update Document in Collection |
15
17
  | [**updateDocumentPartial**](DocumentApi.md#updatedocumentpartial) | **PATCH** /mongodb/collections/{collectionName}/documents/{documentId}/partial | Update Document Parts in Collection |
16
18
  | [**updateMany**](DocumentApi.md#updatemany) | **PATCH** /mongodb/collections/{collectionName}/documents/many/update | Update many in Collection |
@@ -97,9 +99,89 @@ example().catch(console.error);
97
99
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
98
100
 
99
101
 
102
+ ## countDocuments
103
+
104
+ > CountResponse countDocuments(collectionName, filter)
105
+
106
+ Count Documents in Collection
107
+
108
+ Count the Documents of the given Collection that match the filter without loading them
109
+
110
+ ### Example
111
+
112
+ ```ts
113
+ import {
114
+ Configuration,
115
+ DocumentApi,
116
+ } from '';
117
+ import type { CountDocumentsRequest } from '';
118
+
119
+ async function example() {
120
+ console.log("🚀 Testing SDK...");
121
+ const config = new Configuration({
122
+ // To configure HTTP basic authorization: httpAuth1
123
+ username: "YOUR USERNAME",
124
+ password: "YOUR PASSWORD",
125
+ // Configure HTTP bearer authorization: httpAuth
126
+ accessToken: "YOUR BEARER TOKEN",
127
+ // To configure API key authorization: apiKeyAuth
128
+ apiKey: "YOUR API KEY",
129
+ });
130
+ const api = new DocumentApi(config);
131
+
132
+ const body = {
133
+ // string | The name of your MongoDb Collection
134
+ collectionName: collectionName_example,
135
+ // string | Filter Query like on the list of documents, by default all documents are counted (optional)
136
+ filter: filter_example,
137
+ } satisfies CountDocumentsRequest;
138
+
139
+ try {
140
+ const data = await api.countDocuments(body);
141
+ console.log(data);
142
+ } catch (error) {
143
+ console.error(error);
144
+ }
145
+ }
146
+
147
+ // Run the test
148
+ example().catch(console.error);
149
+ ```
150
+
151
+ ### Parameters
152
+
153
+
154
+ | Name | Type | Description | Notes |
155
+ |------------- | ------------- | ------------- | -------------|
156
+ | **collectionName** | `string` | The name of your MongoDb Collection | [Defaults to `undefined`] |
157
+ | **filter** | `string` | Filter Query like on the list of documents, by default all documents are counted | [Optional] [Defaults to `undefined`] |
158
+
159
+ ### Return type
160
+
161
+ [**CountResponse**](CountResponse.md)
162
+
163
+ ### Authorization
164
+
165
+ [httpAuth1](../README.md#httpAuth1), [httpAuth](../README.md#httpAuth), [apiKeyAuth](../README.md#apiKeyAuth)
166
+
167
+ ### HTTP request headers
168
+
169
+ - **Content-Type**: Not defined
170
+ - **Accept**: `application/json`
171
+
172
+
173
+ ### HTTP response details
174
+ | Status code | Description | Response headers |
175
+ |-------------|-------------|------------------|
176
+ | **200** | | - |
177
+ | **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> |
178
+
179
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
180
+
181
+
100
182
  ## deleteMany
101
183
 
102
- > DeleteResponse deleteMany(collectionName, requestBody, matchAll)
184
+ > DeleteResponse deleteMany(collectionName, requestBody, matchAll, filter)
103
185
 
104
186
  Delete Many in Collection
105
187
 
@@ -134,6 +216,8 @@ async function example() {
134
216
  requestBody: Object,
135
217
  // boolean | Allow an empty filter, that matches all documents of the collection (optional)
136
218
  matchAll: true,
219
+ // 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)
220
+ filter: filter_example,
137
221
  } satisfies DeleteManyRequest;
138
222
 
139
223
  try {
@@ -156,6 +240,7 @@ example().catch(console.error);
156
240
  | **collectionName** | `string` | The name of your MongoDb Collection | [Defaults to `undefined`] |
157
241
  | **requestBody** | `{ [key: string]: any; }` | | |
158
242
  | **matchAll** | `boolean` | Allow an empty filter, that matches all documents of the collection | [Optional] [Defaults to `false`] |
243
+ | **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`] |
159
244
 
160
245
  ### Return type
161
246
 
@@ -382,7 +467,7 @@ async function example() {
382
467
  // string | The name of your MongoDb Collection
383
468
  collectionName: collectionName_example,
384
469
  // { [key: string]: any; } | JSON Representation for your Document.
385
- requestBody: {"key1":"value","key2":true,"key3":{"creationDate":"2026-11-02T05:03:40.430Z"}},
470
+ requestBody: {"key1":"value","key2":true,"key3":{"creationDate":"2026-11-06T06:04:09.291Z"}},
386
471
  } satisfies InsertRequest;
387
472
 
388
473
  try {
@@ -431,7 +516,7 @@ example().catch(console.error);
431
516
 
432
517
  ## insertMany
433
518
 
434
- > InsertResponse insertMany(collectionName, requestBody)
519
+ > InsertResponse insertMany(collectionName, ordered, requestBody)
435
520
 
436
521
  Insert many Documents
437
522
 
@@ -462,6 +547,8 @@ async function example() {
462
547
  const body = {
463
548
  // string | The name of your MongoDb Collection
464
549
  collectionName: collectionName_example,
550
+ // 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
+ ordered: true,
465
552
  // Array<{ [key: string]: any; }> (optional)
466
553
  requestBody: ...,
467
554
  } satisfies InsertManyRequest;
@@ -484,6 +571,7 @@ example().catch(console.error);
484
571
  | Name | Type | Description | Notes |
485
572
  |------------- | ------------- | ------------- | -------------|
486
573
  | **collectionName** | `string` | The name of your MongoDb Collection | [Defaults to `undefined`] |
574
+ | **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`] |
487
575
  | **requestBody** | `Array<{ [key: string]: any; }>` | | [Optional] |
488
576
 
489
577
  ### Return type
@@ -504,7 +592,7 @@ example().catch(console.error);
504
592
  | Status code | Description | Response headers |
505
593
  |-------------|-------------|------------------|
506
594
  | **200** | | - |
507
- | **400** | Invalid value for: body | - |
595
+ | **400** | Invalid value for: body, Invalid value for: query parameter ordered | - |
508
596
  | **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> |
509
597
 
510
598
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
@@ -603,6 +691,93 @@ example().catch(console.error);
603
691
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
604
692
 
605
693
 
694
+ ## searchDocuments
695
+
696
+ > Array&lt;{ [key: string]: any; }&gt; searchDocuments(collectionName, searchRequest, rowsPerPage, page)
697
+
698
+ Search Documents in Collection
699
+
700
+ The list of documents with the parameters in the request body: for filters that are too long for the URL (a URL of more than 2048 characters is refused by the server before the request is handled, without CORS headers). The filter is a Lucene query like in the list, the answer and the pagination headers are the same.
701
+
702
+ ### Example
703
+
704
+ ```ts
705
+ import {
706
+ Configuration,
707
+ DocumentApi,
708
+ } from '';
709
+ import type { SearchDocumentsRequest } from '';
710
+
711
+ async function example() {
712
+ console.log("🚀 Testing SDK...");
713
+ const config = new Configuration({
714
+ // To configure HTTP basic authorization: httpAuth1
715
+ username: "YOUR USERNAME",
716
+ password: "YOUR PASSWORD",
717
+ // Configure HTTP bearer authorization: httpAuth
718
+ accessToken: "YOUR BEARER TOKEN",
719
+ // To configure API key authorization: apiKeyAuth
720
+ apiKey: "YOUR API KEY",
721
+ });
722
+ const api = new DocumentApi(config);
723
+
724
+ const body = {
725
+ // string | The name of your MongoDb Collection
726
+ collectionName: collectionName_example,
727
+ // SearchRequest
728
+ searchRequest: {"filter":"name:John AND age:[18 TO 65]","sort":["-age"],"projection":["name","age"]},
729
+ // number | Count elements per page (optional)
730
+ rowsPerPage: 100,
731
+ // number | Requested page of the ResultSets (optional)
732
+ page: 1,
733
+ } satisfies SearchDocumentsRequest;
734
+
735
+ try {
736
+ const data = await api.searchDocuments(body);
737
+ console.log(data);
738
+ } catch (error) {
739
+ console.error(error);
740
+ }
741
+ }
742
+
743
+ // Run the test
744
+ example().catch(console.error);
745
+ ```
746
+
747
+ ### Parameters
748
+
749
+
750
+ | Name | Type | Description | Notes |
751
+ |------------- | ------------- | ------------- | -------------|
752
+ | **collectionName** | `string` | The name of your MongoDb Collection | [Defaults to `undefined`] |
753
+ | **searchRequest** | [SearchRequest](SearchRequest.md) | | |
754
+ | **rowsPerPage** | `number` | Count elements per page | [Optional] [Defaults to `undefined`] |
755
+ | **page** | `number` | Requested page of the ResultSets | [Optional] [Defaults to `undefined`] |
756
+
757
+ ### Return type
758
+
759
+ **Array<{ [key: string]: any; }>**
760
+
761
+ ### Authorization
762
+
763
+ [httpAuth1](../README.md#httpAuth1), [httpAuth](../README.md#httpAuth), [apiKeyAuth](../README.md#apiKeyAuth)
764
+
765
+ ### HTTP request headers
766
+
767
+ - **Content-Type**: `application/json`
768
+ - **Accept**: `application/json`, `text/plain`
769
+
770
+
771
+ ### HTTP response details
772
+ | Status code | Description | Response headers |
773
+ |-------------|-------------|------------------|
774
+ | **200** | | * x-pagination-count-rows - count all elements <br> * x-pagination-rows-per-page - Count elements per page <br> * x-pagination-current-page - Current page <br> * x-pagination-count-pages - Count pages <br> |
775
+ | **400** | Invalid value for: body, Invalid value for: query parameter rowsPerPage, Invalid value for: query parameter page | - |
776
+ | **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> |
777
+
778
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
779
+
780
+
606
781
  ## update
607
782
 
608
783
  > UpdateResponse update(collectionName, documentId, requestBody)
@@ -773,7 +948,7 @@ example().catch(console.error);
773
948
 
774
949
  ## updateMany
775
950
 
776
- > UpdateResponse updateMany(collectionName, updateRequest, matchAll)
951
+ > UpdateResponse updateMany(collectionName, updateRequest, matchAll, filter)
777
952
 
778
953
  Update many in Collection
779
954
 
@@ -808,6 +983,8 @@ async function example() {
808
983
  updateRequest: ...,
809
984
  // boolean | Allow an empty filter, that matches all documents of the collection (optional)
810
985
  matchAll: true,
986
+ // 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)
987
+ filter: filter_example,
811
988
  } satisfies UpdateManyRequest;
812
989
 
813
990
  try {
@@ -830,6 +1007,7 @@ example().catch(console.error);
830
1007
  | **collectionName** | `string` | The name of your MongoDb Collection | [Defaults to `undefined`] |
831
1008
  | **updateRequest** | [UpdateRequest](UpdateRequest.md) | | |
832
1009
  | **matchAll** | `boolean` | Allow an empty filter, that matches all documents of the collection | [Optional] [Defaults to `false`] |
1010
+ | **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`] |
833
1011
 
834
1012
  ### Return type
835
1013
 
@@ -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
+ | [**indexStats**](IndexApi.md#indexstats) | **GET** /mongodb/collections/{collectionName}/index/stats | Index usage for Collection |
14
15
  | [**listIndices**](IndexApi.md#listindices) | **GET** /mongodb/collections/{collectionName}/index | List Indices for Collection |
15
16
 
16
17
 
@@ -604,6 +605,83 @@ example().catch(console.error);
604
605
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
605
606
 
606
607
 
608
+ ## indexStats
609
+
610
+ > Array&lt;IndexUsage&gt; indexStats(collectionName)
611
+
612
+ Index usage for Collection
613
+
614
+ How often every Index of the given Collection was used since the counting started. Replaces the aggregation stage $indexStats, which is denied by default because its result contains the address of the database server.
615
+
616
+ ### Example
617
+
618
+ ```ts
619
+ import {
620
+ Configuration,
621
+ IndexApi,
622
+ } from '';
623
+ import type { IndexStatsRequest } from '';
624
+
625
+ async function example() {
626
+ console.log("🚀 Testing SDK...");
627
+ const config = new Configuration({
628
+ // To configure HTTP basic authorization: httpAuth1
629
+ username: "YOUR USERNAME",
630
+ password: "YOUR PASSWORD",
631
+ // Configure HTTP bearer authorization: httpAuth
632
+ accessToken: "YOUR BEARER TOKEN",
633
+ // To configure API key authorization: apiKeyAuth
634
+ apiKey: "YOUR API KEY",
635
+ });
636
+ const api = new IndexApi(config);
637
+
638
+ const body = {
639
+ // string | The name of your MongoDb Collection
640
+ collectionName: collectionName_example,
641
+ } satisfies IndexStatsRequest;
642
+
643
+ try {
644
+ const data = await api.indexStats(body);
645
+ console.log(data);
646
+ } catch (error) {
647
+ console.error(error);
648
+ }
649
+ }
650
+
651
+ // Run the test
652
+ example().catch(console.error);
653
+ ```
654
+
655
+ ### Parameters
656
+
657
+
658
+ | Name | Type | Description | Notes |
659
+ |------------- | ------------- | ------------- | -------------|
660
+ | **collectionName** | `string` | The name of your MongoDb Collection | [Defaults to `undefined`] |
661
+
662
+ ### Return type
663
+
664
+ [**Array&lt;IndexUsage&gt;**](IndexUsage.md)
665
+
666
+ ### Authorization
667
+
668
+ [httpAuth1](../README.md#httpAuth1), [httpAuth](../README.md#httpAuth), [apiKeyAuth](../README.md#apiKeyAuth)
669
+
670
+ ### HTTP request headers
671
+
672
+ - **Content-Type**: Not defined
673
+ - **Accept**: `application/json`
674
+
675
+
676
+ ### HTTP response details
677
+ | Status code | Description | Response headers |
678
+ |-------------|-------------|------------------|
679
+ | **200** | | - |
680
+ | **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> |
681
+
682
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
683
+
684
+
607
685
  ## listIndices
608
686
 
609
687
  > Array&lt;MongoIndex&gt; listIndices(collectionName)
@@ -0,0 +1,40 @@
1
+
2
+ # IndexUsage
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `name` | string
10
+ `key` | { [key: string]: any; }
11
+ `ops` | number
12
+ `since` | Date
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { IndexUsage } from ''
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "name": null,
22
+ "key": null,
23
+ "ops": null,
24
+ "since": null,
25
+ } satisfies IndexUsage
26
+
27
+ console.log(example)
28
+
29
+ // Convert the instance to a JSON string
30
+ const exampleJSON: string = JSON.stringify(example)
31
+ console.log(exampleJSON)
32
+
33
+ // Parse the JSON string back to an object
34
+ const exampleParsed = JSON.parse(exampleJSON) as IndexUsage
35
+ console.log(exampleParsed)
36
+ ```
37
+
38
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
39
+
40
+
@@ -0,0 +1,38 @@
1
+
2
+ # InsertError
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `index` | number
10
+ `code` | number
11
+ `message` | string
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { InsertError } from ''
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "index": null,
21
+ "code": null,
22
+ "message": null,
23
+ } satisfies InsertError
24
+
25
+ console.log(example)
26
+
27
+ // Convert the instance to a JSON string
28
+ const exampleJSON: string = JSON.stringify(example)
29
+ console.log(exampleJSON)
30
+
31
+ // Parse the JSON string back to an object
32
+ const exampleParsed = JSON.parse(exampleJSON) as InsertError
33
+ console.log(exampleParsed)
34
+ ```
35
+
36
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
37
+
38
+
@@ -8,6 +8,8 @@ Name | Type
8
8
  ------------ | -------------
9
9
  `wasAcknowledged` | boolean
10
10
  `insertedIds` | Array&lt;string&gt;
11
+ `insertedCount` | number
12
+ `errors` | [Array&lt;InsertError&gt;](InsertError.md)
11
13
 
12
14
  ## Example
13
15
 
@@ -18,6 +20,8 @@ import type { InsertResponse } from ''
18
20
  const example = {
19
21
  "wasAcknowledged": null,
20
22
  "insertedIds": null,
23
+ "insertedCount": null,
24
+ "errors": null,
21
25
  } satisfies InsertResponse
22
26
 
23
27
  console.log(example)
@@ -0,0 +1,38 @@
1
+
2
+ # SearchRequest
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `filter` | string
10
+ `sort` | Array&lt;string&gt;
11
+ `projection` | Array&lt;string&gt;
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { SearchRequest } from ''
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "filter": null,
21
+ "sort": null,
22
+ "projection": null,
23
+ } satisfies SearchRequest
24
+
25
+ console.log(example)
26
+
27
+ // Convert the instance to a JSON string
28
+ const exampleJSON: string = JSON.stringify(example)
29
+ console.log(exampleJSON)
30
+
31
+ // Parse the JSON string back to an object
32
+ const exampleParsed = JSON.parse(exampleJSON) as SearchRequest
33
+ console.log(exampleParsed)
34
+ ```
35
+
36
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
37
+
38
+
@@ -2,7 +2,7 @@
2
2
  * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.6.3
5
+ * The version of the OpenAPI document: 1.7.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.6.3
5
+ * The version of the OpenAPI document: 1.7.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.6.3
5
+ * The version of the OpenAPI document: 1.7.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,50 @@
1
+ /**
2
+ * mongocamp-library
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.7.1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface CollectionPermission
16
+ */
17
+ export interface CollectionPermission {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CollectionPermission
22
+ */
23
+ name: string;
24
+ /**
25
+ *
26
+ * @type {boolean}
27
+ * @memberof CollectionPermission
28
+ */
29
+ read: boolean;
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof CollectionPermission
34
+ */
35
+ write: boolean;
36
+ /**
37
+ *
38
+ * @type {boolean}
39
+ * @memberof CollectionPermission
40
+ */
41
+ administrate: boolean;
42
+ }
43
+ /**
44
+ * Check if a given object implements the CollectionPermission interface.
45
+ */
46
+ export declare function instanceOfCollectionPermission(value: object): value is CollectionPermission;
47
+ export declare function CollectionPermissionFromJSON(json: any): CollectionPermission;
48
+ export declare function CollectionPermissionFromJSONTyped(json: any, ignoreDiscriminator: boolean): CollectionPermission;
49
+ export declare function CollectionPermissionToJSON(json: any): CollectionPermission;
50
+ export declare function CollectionPermissionToJSONTyped(value?: CollectionPermission | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,35 @@
1
+ export function instanceOfCollectionPermission(value) {
2
+ if (!("name" in value) || value["name"] === void 0) return false;
3
+ if (!("read" in value) || value["read"] === void 0) return false;
4
+ if (!("write" in value) || value["write"] === void 0) return false;
5
+ if (!("administrate" in value) || value["administrate"] === void 0) return false;
6
+ return true;
7
+ }
8
+ export function CollectionPermissionFromJSON(json) {
9
+ return CollectionPermissionFromJSONTyped(json, false);
10
+ }
11
+ export function CollectionPermissionFromJSONTyped(json, ignoreDiscriminator) {
12
+ if (json == null) {
13
+ return json;
14
+ }
15
+ return {
16
+ "name": json["name"],
17
+ "read": json["read"],
18
+ "write": json["write"],
19
+ "administrate": json["administrate"]
20
+ };
21
+ }
22
+ export function CollectionPermissionToJSON(json) {
23
+ return CollectionPermissionToJSONTyped(json, false);
24
+ }
25
+ export function CollectionPermissionToJSONTyped(value, ignoreDiscriminator = false) {
26
+ if (value == null) {
27
+ return value;
28
+ }
29
+ return {
30
+ "name": value["name"],
31
+ "read": value["read"],
32
+ "write": value["write"],
33
+ "administrate": value["administrate"]
34
+ };
35
+ }
@@ -2,7 +2,7 @@
2
2
  * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.6.3
5
+ * The version of the OpenAPI document: 1.7.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).