@sfxcode/nuxt-mongocamp-server 1.5.1 → 1.6.3
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.
- package/README.md +3 -3
- package/dist/module.d.mts +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +5 -1
- package/dist/runtime/api/.openapi-generator/FILES +6 -2
- package/dist/runtime/api/apis/AdminApi.d.ts +1 -1
- package/dist/runtime/api/apis/ApplicationApi.d.ts +1 -1
- package/dist/runtime/api/apis/AuthApi.d.ts +3 -3
- package/dist/runtime/api/apis/AuthApi.js +2 -2
- package/dist/runtime/api/apis/BucketApi.d.ts +1 -1
- package/dist/runtime/api/apis/CollectionApi.d.ts +7 -7
- package/dist/runtime/api/apis/CollectionApi.js +2 -2
- package/dist/runtime/api/apis/DatabaseApi.d.ts +1 -1
- package/dist/runtime/api/apis/DocumentApi.d.ts +14 -12
- package/dist/runtime/api/apis/DocumentApi.js +6 -0
- package/dist/runtime/api/apis/FileApi.d.ts +1 -1
- package/dist/runtime/api/apis/IndexApi.d.ts +1 -1
- package/dist/runtime/api/apis/JobsApi.d.ts +1 -1
- package/dist/runtime/api/apis/{InformationApi.d.ts → SystemApi.d.ts} +17 -3
- package/dist/runtime/api/apis/SystemApi.js +82 -0
- package/dist/runtime/api/apis/index.d.ts +1 -1
- package/dist/runtime/api/apis/index.js +1 -1
- package/dist/runtime/api/docs/AdminApi.md +2 -2
- package/dist/runtime/api/docs/AuthApi.md +1 -1
- package/dist/runtime/api/docs/ClusterInformation.md +36 -0
- package/dist/runtime/api/docs/ClusterMemberInformation.md +42 -0
- package/dist/runtime/api/docs/CollectionApi.md +5 -5
- package/dist/runtime/api/docs/CollectionStatus.md +1 -1
- package/dist/runtime/api/docs/DatabaseInfo.md +1 -1
- package/dist/runtime/api/docs/DocumentApi.md +28 -22
- package/dist/runtime/api/docs/FileApi.md +2 -2
- package/dist/runtime/api/docs/FileInformation.md +1 -1
- package/dist/runtime/api/docs/IndexApi.md +2 -2
- package/dist/runtime/api/docs/JsonSchemaDefinition.md +1 -1
- package/dist/runtime/api/docs/JsonValueAny.md +1 -1
- package/dist/runtime/api/docs/MongoCampConfiguration.md +1 -1
- package/dist/runtime/api/docs/MongoFindRequest.md +3 -3
- package/dist/runtime/api/docs/MongoIndex.md +3 -3
- package/dist/runtime/api/docs/PipelineStage.md +1 -1
- package/dist/runtime/api/docs/SettingsResponse.md +1 -1
- package/dist/runtime/api/docs/SystemApi.md +139 -0
- package/dist/runtime/api/docs/UpdateFileInformationRequest.md +1 -1
- package/dist/runtime/api/docs/UpdateRequest.md +2 -2
- package/dist/runtime/api/models/BucketInformation.d.ts +1 -1
- package/dist/runtime/api/models/ClusterInformation.d.ts +39 -0
- package/dist/runtime/api/models/ClusterInformation.js +32 -0
- package/dist/runtime/api/models/ClusterMemberInformation.d.ts +56 -0
- package/dist/runtime/api/models/ClusterMemberInformation.js +38 -0
- package/dist/runtime/api/models/CollectionStatus.d.ts +3 -3
- package/dist/runtime/api/models/DatabaseInfo.d.ts +3 -3
- package/dist/runtime/api/models/DeleteResponse.d.ts +1 -1
- package/dist/runtime/api/models/ErrorDescription.d.ts +1 -1
- package/dist/runtime/api/models/FileInformation.d.ts +3 -3
- package/dist/runtime/api/models/Grant.d.ts +1 -1
- package/dist/runtime/api/models/IndexCreateRequest.d.ts +1 -1
- package/dist/runtime/api/models/IndexCreateResponse.d.ts +1 -1
- package/dist/runtime/api/models/IndexDropResponse.d.ts +1 -1
- package/dist/runtime/api/models/IndexOptionsRequest.d.ts +1 -1
- package/dist/runtime/api/models/InsertResponse.d.ts +1 -1
- package/dist/runtime/api/models/JobConfig.d.ts +1 -1
- package/dist/runtime/api/models/JobInformation.d.ts +2 -2
- package/dist/runtime/api/models/JobInformation.js +1 -2
- package/dist/runtime/api/models/JsonSchema.d.ts +1 -1
- package/dist/runtime/api/models/JsonSchemaDefinition.d.ts +3 -3
- package/dist/runtime/api/models/JsonValueAny.d.ts +3 -3
- package/dist/runtime/api/models/JsonValueBoolean.d.ts +1 -1
- package/dist/runtime/api/models/JsonValueString.d.ts +1 -1
- package/dist/runtime/api/models/Login.d.ts +1 -1
- package/dist/runtime/api/models/LoginResult.d.ts +1 -1
- package/dist/runtime/api/models/MongoAggregateRequest.d.ts +1 -1
- package/dist/runtime/api/models/MongoCampConfiguration.d.ts +3 -3
- package/dist/runtime/api/models/MongoFindRequest.d.ts +7 -7
- package/dist/runtime/api/models/MongoIndex.d.ts +7 -7
- package/dist/runtime/api/models/PasswordUpdateRequest.d.ts +1 -1
- package/dist/runtime/api/models/PipelineStage.d.ts +3 -3
- package/dist/runtime/api/models/Role.d.ts +1 -1
- package/dist/runtime/api/models/SchemaAnalysis.d.ts +1 -1
- package/dist/runtime/api/models/SchemaAnalysisField.d.ts +1 -1
- package/dist/runtime/api/models/SchemaAnalysisFieldType.d.ts +1 -1
- package/dist/runtime/api/models/SettingsResponse.d.ts +3 -3
- package/dist/runtime/api/models/UpdateFileInformationRequest.d.ts +3 -3
- package/dist/runtime/api/models/UpdateRequest.d.ts +5 -5
- package/dist/runtime/api/models/UpdateResponse.d.ts +1 -1
- package/dist/runtime/api/models/UpdateRoleRequest.d.ts +1 -1
- package/dist/runtime/api/models/UserInformation.d.ts +1 -1
- package/dist/runtime/api/models/UserProfile.d.ts +1 -1
- package/dist/runtime/api/models/Version.d.ts +1 -1
- package/dist/runtime/api/models/index.d.ts +2 -0
- package/dist/runtime/api/models/index.js +2 -0
- package/dist/runtime/api/runtime.d.ts +1 -1
- package/dist/runtime/composables/mongocampApi.d.ts +1 -1
- package/dist/runtime/composables/mongocampApi.js +16 -1
- package/dist/runtime/composables/mongocampApiCollection.d.ts +2 -2
- package/dist/runtime/composables/mongocampAuth.js +1 -6
- package/dist/runtime/composables/mongocampSearch.d.ts +3 -3
- package/dist/runtime/composables/mongocampStorage.d.ts +1 -1
- package/dist/runtime/composables/mongocampStorage.js +3 -1
- package/dist/runtime/composables/mongocampUser.d.ts +2 -2
- package/dist/runtime/composables/mongocampUser.js +4 -2
- package/dist/runtime/server/composables/mongocampApi.d.ts +1 -1
- package/dist/runtime/server/composables/mongocampServerApi.d.ts +1 -1
- package/dist/runtime/utils/createMongocampApis.d.ts +2 -2
- package/dist/runtime/utils/createMongocampApis.js +2 -2
- package/package.json +13 -13
- package/dist/runtime/api/apis/InformationApi.js +0 -37
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
# ClusterMemberInformation
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`name` | string
|
|
10
|
+
`siteMaster` | boolean
|
|
11
|
+
`siteAddress` | boolean
|
|
12
|
+
`multicast` | boolean
|
|
13
|
+
`coordinator` | boolean
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { ClusterMemberInformation } from ''
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"name": null,
|
|
23
|
+
"siteMaster": null,
|
|
24
|
+
"siteAddress": null,
|
|
25
|
+
"multicast": null,
|
|
26
|
+
"coordinator": null,
|
|
27
|
+
} satisfies ClusterMemberInformation
|
|
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 ClusterMemberInformation
|
|
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
|
+
|
|
@@ -19,11 +19,11 @@ All URIs are relative to *http://localhost*
|
|
|
19
19
|
|
|
20
20
|
## aggregate
|
|
21
21
|
|
|
22
|
-
> Array<{ [key: string]:
|
|
22
|
+
> Array<{ [key: string]: any; }> aggregate(collectionName, mongoAggregateRequest, rowsPerPage, page)
|
|
23
23
|
|
|
24
24
|
Aggregate in Collection
|
|
25
25
|
|
|
26
|
-
Aggregate in a given Collection
|
|
26
|
+
Aggregate in a given Collection. The value of a stage is any JSON value. Operators that run JavaScript on the database server or write to collections (`$function`, `$accumulator`, `$where`, `$out`, `$merge`, `$currentOp`, `$listSessions` by default, configured with AGGREGATION_STAGES_DENIED) are refused with 403.
|
|
27
27
|
|
|
28
28
|
### Example
|
|
29
29
|
|
|
@@ -82,7 +82,7 @@ example().catch(console.error);
|
|
|
82
82
|
|
|
83
83
|
### Return type
|
|
84
84
|
|
|
85
|
-
**Array<{ [key: string]:
|
|
85
|
+
**Array<{ [key: string]: any; }>**
|
|
86
86
|
|
|
87
87
|
### Authorization
|
|
88
88
|
|
|
@@ -260,7 +260,7 @@ example().catch(console.error);
|
|
|
260
260
|
|
|
261
261
|
## distinct
|
|
262
262
|
|
|
263
|
-
> Array<
|
|
263
|
+
> Array<any> distinct(collectionName, field, rowsPerPage, page)
|
|
264
264
|
|
|
265
265
|
Distinct in Collection
|
|
266
266
|
|
|
@@ -323,7 +323,7 @@ example().catch(console.error);
|
|
|
323
323
|
|
|
324
324
|
### Return type
|
|
325
325
|
|
|
326
|
-
**Array<
|
|
326
|
+
**Array<any>**
|
|
327
327
|
|
|
328
328
|
### Authorization
|
|
329
329
|
|
|
@@ -99,7 +99,7 @@ example().catch(console.error);
|
|
|
99
99
|
|
|
100
100
|
## deleteMany
|
|
101
101
|
|
|
102
|
-
> DeleteResponse deleteMany(collectionName, requestBody)
|
|
102
|
+
> DeleteResponse deleteMany(collectionName, requestBody, matchAll)
|
|
103
103
|
|
|
104
104
|
Delete Many in Collection
|
|
105
105
|
|
|
@@ -130,8 +130,10 @@ async function example() {
|
|
|
130
130
|
const body = {
|
|
131
131
|
// string | The name of your MongoDb Collection
|
|
132
132
|
collectionName: collectionName_example,
|
|
133
|
-
// { [key: string]:
|
|
133
|
+
// { [key: string]: any; }
|
|
134
134
|
requestBody: Object,
|
|
135
|
+
// boolean | Allow an empty filter, that matches all documents of the collection (optional)
|
|
136
|
+
matchAll: true,
|
|
135
137
|
} satisfies DeleteManyRequest;
|
|
136
138
|
|
|
137
139
|
try {
|
|
@@ -152,7 +154,8 @@ example().catch(console.error);
|
|
|
152
154
|
| Name | Type | Description | Notes |
|
|
153
155
|
|------------- | ------------- | ------------- | -------------|
|
|
154
156
|
| **collectionName** | `string` | The name of your MongoDb Collection | [Defaults to `undefined`] |
|
|
155
|
-
| **requestBody** | `{ [key: string]:
|
|
157
|
+
| **requestBody** | `{ [key: string]: any; }` | | |
|
|
158
|
+
| **matchAll** | `boolean` | Allow an empty filter, that matches all documents of the collection | [Optional] [Defaults to `false`] |
|
|
156
159
|
|
|
157
160
|
### Return type
|
|
158
161
|
|
|
@@ -172,7 +175,7 @@ example().catch(console.error);
|
|
|
172
175
|
| Status code | Description | Response headers |
|
|
173
176
|
|-------------|-------------|------------------|
|
|
174
177
|
| **200** | | - |
|
|
175
|
-
| **400** | Invalid value for: body | - |
|
|
178
|
+
| **400** | Invalid value for: body, Invalid value for: query parameter matchAll | - |
|
|
176
179
|
| **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> |
|
|
177
180
|
|
|
178
181
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
@@ -180,7 +183,7 @@ example().catch(console.error);
|
|
|
180
183
|
|
|
181
184
|
## find
|
|
182
185
|
|
|
183
|
-
> Array<{ [key: string]:
|
|
186
|
+
> Array<{ [key: string]: any; }> find(collectionName, mongoFindRequest, rowsPerPage, page)
|
|
184
187
|
|
|
185
188
|
Documents in Collection
|
|
186
189
|
|
|
@@ -243,7 +246,7 @@ example().catch(console.error);
|
|
|
243
246
|
|
|
244
247
|
### Return type
|
|
245
248
|
|
|
246
|
-
**Array<{ [key: string]:
|
|
249
|
+
**Array<{ [key: string]: any; }>**
|
|
247
250
|
|
|
248
251
|
### Authorization
|
|
249
252
|
|
|
@@ -267,7 +270,7 @@ example().catch(console.error);
|
|
|
267
270
|
|
|
268
271
|
## getDocument
|
|
269
272
|
|
|
270
|
-
> { [key: string]:
|
|
273
|
+
> { [key: string]: any; } getDocument(collectionName, documentId)
|
|
271
274
|
|
|
272
275
|
Document from Collection
|
|
273
276
|
|
|
@@ -324,7 +327,7 @@ example().catch(console.error);
|
|
|
324
327
|
|
|
325
328
|
### Return type
|
|
326
329
|
|
|
327
|
-
**{ [key: string]:
|
|
330
|
+
**{ [key: string]: any; }**
|
|
328
331
|
|
|
329
332
|
### Authorization
|
|
330
333
|
|
|
@@ -378,8 +381,8 @@ async function example() {
|
|
|
378
381
|
const body = {
|
|
379
382
|
// string | The name of your MongoDb Collection
|
|
380
383
|
collectionName: collectionName_example,
|
|
381
|
-
// { [key: string]:
|
|
382
|
-
requestBody: {"key1":"value","key2":true,"key3":{"creationDate":"
|
|
384
|
+
// { [key: string]: any; } | JSON Representation for your Document.
|
|
385
|
+
requestBody: {"key1":"value","key2":true,"key3":{"creationDate":"2026-11-02T05:03:40.430Z"}},
|
|
383
386
|
} satisfies InsertRequest;
|
|
384
387
|
|
|
385
388
|
try {
|
|
@@ -400,7 +403,7 @@ example().catch(console.error);
|
|
|
400
403
|
| Name | Type | Description | Notes |
|
|
401
404
|
|------------- | ------------- | ------------- | -------------|
|
|
402
405
|
| **collectionName** | `string` | The name of your MongoDb Collection | [Defaults to `undefined`] |
|
|
403
|
-
| **requestBody** | `{ [key: string]:
|
|
406
|
+
| **requestBody** | `{ [key: string]: any; }` | JSON Representation for your Document. | |
|
|
404
407
|
|
|
405
408
|
### Return type
|
|
406
409
|
|
|
@@ -459,7 +462,7 @@ async function example() {
|
|
|
459
462
|
const body = {
|
|
460
463
|
// string | The name of your MongoDb Collection
|
|
461
464
|
collectionName: collectionName_example,
|
|
462
|
-
// Array<{ [key: string]:
|
|
465
|
+
// Array<{ [key: string]: any; }> (optional)
|
|
463
466
|
requestBody: ...,
|
|
464
467
|
} satisfies InsertManyRequest;
|
|
465
468
|
|
|
@@ -481,7 +484,7 @@ example().catch(console.error);
|
|
|
481
484
|
| Name | Type | Description | Notes |
|
|
482
485
|
|------------- | ------------- | ------------- | -------------|
|
|
483
486
|
| **collectionName** | `string` | The name of your MongoDb Collection | [Defaults to `undefined`] |
|
|
484
|
-
| **requestBody** | `Array<{ [key: string]:
|
|
487
|
+
| **requestBody** | `Array<{ [key: string]: any; }>` | | [Optional] |
|
|
485
488
|
|
|
486
489
|
### Return type
|
|
487
490
|
|
|
@@ -509,7 +512,7 @@ example().catch(console.error);
|
|
|
509
512
|
|
|
510
513
|
## listDocuments
|
|
511
514
|
|
|
512
|
-
> Array<{ [key: string]:
|
|
515
|
+
> Array<{ [key: string]: any; }> listDocuments(collectionName, filter, sort, projection, rowsPerPage, page)
|
|
513
516
|
|
|
514
517
|
Documents in Collection
|
|
515
518
|
|
|
@@ -578,7 +581,7 @@ example().catch(console.error);
|
|
|
578
581
|
|
|
579
582
|
### Return type
|
|
580
583
|
|
|
581
|
-
**Array<{ [key: string]:
|
|
584
|
+
**Array<{ [key: string]: any; }>**
|
|
582
585
|
|
|
583
586
|
### Authorization
|
|
584
587
|
|
|
@@ -594,7 +597,7 @@ example().catch(console.error);
|
|
|
594
597
|
| Status code | Description | Response headers |
|
|
595
598
|
|-------------|-------------|------------------|
|
|
596
599
|
| **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> |
|
|
597
|
-
| **400** | Invalid value for: query parameter
|
|
600
|
+
| **400** | Invalid value for: query parameter rowsPerPage, Invalid value for: query parameter page | - |
|
|
598
601
|
| **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> |
|
|
599
602
|
|
|
600
603
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
@@ -635,7 +638,7 @@ async function example() {
|
|
|
635
638
|
collectionName: collectionName_example,
|
|
636
639
|
// string | DocumentId to update
|
|
637
640
|
documentId: documentId_example,
|
|
638
|
-
// { [key: string]:
|
|
641
|
+
// { [key: string]: any; }
|
|
639
642
|
requestBody: Object,
|
|
640
643
|
} satisfies UpdateRequest;
|
|
641
644
|
|
|
@@ -658,7 +661,7 @@ example().catch(console.error);
|
|
|
658
661
|
|------------- | ------------- | ------------- | -------------|
|
|
659
662
|
| **collectionName** | `string` | The name of your MongoDb Collection | [Defaults to `undefined`] |
|
|
660
663
|
| **documentId** | `string` | DocumentId to update | [Defaults to `undefined`] |
|
|
661
|
-
| **requestBody** | `{ [key: string]:
|
|
664
|
+
| **requestBody** | `{ [key: string]: any; }` | | |
|
|
662
665
|
|
|
663
666
|
### Return type
|
|
664
667
|
|
|
@@ -719,7 +722,7 @@ async function example() {
|
|
|
719
722
|
collectionName: collectionName_example,
|
|
720
723
|
// string | DocumentId to update
|
|
721
724
|
documentId: documentId_example,
|
|
722
|
-
// { [key: string]:
|
|
725
|
+
// { [key: string]: any; }
|
|
723
726
|
requestBody: Object,
|
|
724
727
|
} satisfies UpdateDocumentPartialRequest;
|
|
725
728
|
|
|
@@ -742,7 +745,7 @@ example().catch(console.error);
|
|
|
742
745
|
|------------- | ------------- | ------------- | -------------|
|
|
743
746
|
| **collectionName** | `string` | The name of your MongoDb Collection | [Defaults to `undefined`] |
|
|
744
747
|
| **documentId** | `string` | DocumentId to update | [Defaults to `undefined`] |
|
|
745
|
-
| **requestBody** | `{ [key: string]:
|
|
748
|
+
| **requestBody** | `{ [key: string]: any; }` | | |
|
|
746
749
|
|
|
747
750
|
### Return type
|
|
748
751
|
|
|
@@ -770,7 +773,7 @@ example().catch(console.error);
|
|
|
770
773
|
|
|
771
774
|
## updateMany
|
|
772
775
|
|
|
773
|
-
> UpdateResponse updateMany(collectionName, updateRequest)
|
|
776
|
+
> UpdateResponse updateMany(collectionName, updateRequest, matchAll)
|
|
774
777
|
|
|
775
778
|
Update many in Collection
|
|
776
779
|
|
|
@@ -803,6 +806,8 @@ async function example() {
|
|
|
803
806
|
collectionName: collectionName_example,
|
|
804
807
|
// UpdateRequest
|
|
805
808
|
updateRequest: ...,
|
|
809
|
+
// boolean | Allow an empty filter, that matches all documents of the collection (optional)
|
|
810
|
+
matchAll: true,
|
|
806
811
|
} satisfies UpdateManyRequest;
|
|
807
812
|
|
|
808
813
|
try {
|
|
@@ -824,6 +829,7 @@ example().catch(console.error);
|
|
|
824
829
|
|------------- | ------------- | ------------- | -------------|
|
|
825
830
|
| **collectionName** | `string` | The name of your MongoDb Collection | [Defaults to `undefined`] |
|
|
826
831
|
| **updateRequest** | [UpdateRequest](UpdateRequest.md) | | |
|
|
832
|
+
| **matchAll** | `boolean` | Allow an empty filter, that matches all documents of the collection | [Optional] [Defaults to `false`] |
|
|
827
833
|
|
|
828
834
|
### Return type
|
|
829
835
|
|
|
@@ -843,7 +849,7 @@ example().catch(console.error);
|
|
|
843
849
|
| Status code | Description | Response headers |
|
|
844
850
|
|-------------|-------------|------------------|
|
|
845
851
|
| **200** | | - |
|
|
846
|
-
| **400** | Invalid value for: body | - |
|
|
852
|
+
| **400** | Invalid value for: body, Invalid value for: query parameter matchAll | - |
|
|
847
853
|
| **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> |
|
|
848
854
|
|
|
849
855
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
@@ -422,7 +422,7 @@ example().catch(console.error);
|
|
|
422
422
|
| Status code | Description | Response headers |
|
|
423
423
|
|-------------|-------------|------------------|
|
|
424
424
|
| **200** | | - |
|
|
425
|
-
| **400** | Invalid value for: body
|
|
425
|
+
| **400** | Invalid value for: body | - |
|
|
426
426
|
| **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> |
|
|
427
427
|
|
|
428
428
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
@@ -515,7 +515,7 @@ example().catch(console.error);
|
|
|
515
515
|
| Status code | Description | Response headers |
|
|
516
516
|
|-------------|-------------|------------------|
|
|
517
517
|
| **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> |
|
|
518
|
-
| **400** | Invalid value for: query parameter
|
|
518
|
+
| **400** | Invalid value for: query parameter rowsPerPage, Invalid value for: query parameter page | - |
|
|
519
519
|
| **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> |
|
|
520
520
|
|
|
521
521
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
@@ -99,7 +99,7 @@ example().catch(console.error);
|
|
|
99
99
|
| Status code | Description | Response headers |
|
|
100
100
|
|-------------|-------------|------------------|
|
|
101
101
|
| **200** | | - |
|
|
102
|
-
| **400** | Invalid value for: query parameter sortAscending
|
|
102
|
+
| **400** | Invalid value for: query parameter sortAscending | - |
|
|
103
103
|
| **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> |
|
|
104
104
|
|
|
105
105
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
@@ -438,7 +438,7 @@ example().catch(console.error);
|
|
|
438
438
|
| Status code | Description | Response headers |
|
|
439
439
|
|-------------|-------------|------------------|
|
|
440
440
|
| **200** | | - |
|
|
441
|
-
| **400** | Invalid value for: query parameter sortAscending
|
|
441
|
+
| **400** | Invalid value for: query parameter sortAscending | - |
|
|
442
442
|
| **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> |
|
|
443
443
|
|
|
444
444
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`filter` | { [key: string]:
|
|
10
|
-
`sort` | { [key: string]:
|
|
11
|
-
`projection` | { [key: string]:
|
|
9
|
+
`filter` | { [key: string]: any; }
|
|
10
|
+
`sort` | { [key: string]: any; }
|
|
11
|
+
`projection` | { [key: string]: any; }
|
|
12
12
|
|
|
13
13
|
## Example
|
|
14
14
|
|
|
@@ -11,13 +11,13 @@ Name | Type
|
|
|
11
11
|
`unique` | boolean
|
|
12
12
|
`version` | number
|
|
13
13
|
`namespace` | string
|
|
14
|
-
`keys` | { [key: string]:
|
|
15
|
-
`weights` | { [key: string]:
|
|
14
|
+
`keys` | { [key: string]: any; }
|
|
15
|
+
`weights` | { [key: string]: any; }
|
|
16
16
|
`expire` | boolean
|
|
17
17
|
`expireAfterSeconds` | number
|
|
18
18
|
`text` | boolean
|
|
19
19
|
`fetched` | Date
|
|
20
|
-
`map` | { [key: string]:
|
|
20
|
+
`map` | { [key: string]: any; }
|
|
21
21
|
|
|
22
22
|
## Example
|
|
23
23
|
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
# SystemApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
| [**version**](SystemApi.md#version) | **GET** /version | Version Information |
|
|
8
|
+
| [**viewCluster**](SystemApi.md#viewcluster) | **GET** /system/cluster | Registered Jobs |
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
## version
|
|
13
|
+
|
|
14
|
+
> Version version()
|
|
15
|
+
|
|
16
|
+
Version Information
|
|
17
|
+
|
|
18
|
+
Version Info of the MongoCamp API
|
|
19
|
+
|
|
20
|
+
### Example
|
|
21
|
+
|
|
22
|
+
```ts
|
|
23
|
+
import {
|
|
24
|
+
Configuration,
|
|
25
|
+
SystemApi,
|
|
26
|
+
} from '';
|
|
27
|
+
import type { VersionRequest } from '';
|
|
28
|
+
|
|
29
|
+
async function example() {
|
|
30
|
+
console.log("🚀 Testing SDK...");
|
|
31
|
+
const api = new SystemApi();
|
|
32
|
+
|
|
33
|
+
try {
|
|
34
|
+
const data = await api.version();
|
|
35
|
+
console.log(data);
|
|
36
|
+
} catch (error) {
|
|
37
|
+
console.error(error);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// Run the test
|
|
42
|
+
example().catch(console.error);
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Parameters
|
|
46
|
+
|
|
47
|
+
This endpoint does not need any parameter.
|
|
48
|
+
|
|
49
|
+
### Return type
|
|
50
|
+
|
|
51
|
+
[**Version**](Version.md)
|
|
52
|
+
|
|
53
|
+
### Authorization
|
|
54
|
+
|
|
55
|
+
No authorization required
|
|
56
|
+
|
|
57
|
+
### HTTP request headers
|
|
58
|
+
|
|
59
|
+
- **Content-Type**: Not defined
|
|
60
|
+
- **Accept**: `application/json`
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
### HTTP response details
|
|
64
|
+
| Status code | Description | Response headers |
|
|
65
|
+
|-------------|-------------|------------------|
|
|
66
|
+
| **200** | | - |
|
|
67
|
+
| **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> |
|
|
68
|
+
|
|
69
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
## viewCluster
|
|
73
|
+
|
|
74
|
+
> ClusterInformation viewCluster()
|
|
75
|
+
|
|
76
|
+
Registered Jobs
|
|
77
|
+
|
|
78
|
+
Returns the List of all registered Jobs with full information
|
|
79
|
+
|
|
80
|
+
### Example
|
|
81
|
+
|
|
82
|
+
```ts
|
|
83
|
+
import {
|
|
84
|
+
Configuration,
|
|
85
|
+
SystemApi,
|
|
86
|
+
} from '';
|
|
87
|
+
import type { ViewClusterRequest } from '';
|
|
88
|
+
|
|
89
|
+
async function example() {
|
|
90
|
+
console.log("🚀 Testing SDK...");
|
|
91
|
+
const config = new Configuration({
|
|
92
|
+
// To configure HTTP basic authorization: httpAuth1
|
|
93
|
+
username: "YOUR USERNAME",
|
|
94
|
+
password: "YOUR PASSWORD",
|
|
95
|
+
// Configure HTTP bearer authorization: httpAuth
|
|
96
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
97
|
+
// To configure API key authorization: apiKeyAuth
|
|
98
|
+
apiKey: "YOUR API KEY",
|
|
99
|
+
});
|
|
100
|
+
const api = new SystemApi(config);
|
|
101
|
+
|
|
102
|
+
try {
|
|
103
|
+
const data = await api.viewCluster();
|
|
104
|
+
console.log(data);
|
|
105
|
+
} catch (error) {
|
|
106
|
+
console.error(error);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// Run the test
|
|
111
|
+
example().catch(console.error);
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
### Parameters
|
|
115
|
+
|
|
116
|
+
This endpoint does not need any parameter.
|
|
117
|
+
|
|
118
|
+
### Return type
|
|
119
|
+
|
|
120
|
+
[**ClusterInformation**](ClusterInformation.md)
|
|
121
|
+
|
|
122
|
+
### Authorization
|
|
123
|
+
|
|
124
|
+
[httpAuth1](../README.md#httpAuth1), [httpAuth](../README.md#httpAuth), [apiKeyAuth](../README.md#apiKeyAuth)
|
|
125
|
+
|
|
126
|
+
### HTTP request headers
|
|
127
|
+
|
|
128
|
+
- **Content-Type**: Not defined
|
|
129
|
+
- **Accept**: `application/json`
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
### HTTP response details
|
|
133
|
+
| Status code | Description | Response headers |
|
|
134
|
+
|-------------|-------------|------------------|
|
|
135
|
+
| **200** | | - |
|
|
136
|
+
| **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> |
|
|
137
|
+
|
|
138
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
139
|
+
|
|
@@ -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.
|
|
5
|
+
* The version of the OpenAPI document: 1.6.3
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -0,0 +1,39 @@
|
|
|
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.6.3
|
|
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
|
+
import type { ClusterMemberInformation } from './ClusterMemberInformation.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ClusterInformation
|
|
17
|
+
*/
|
|
18
|
+
export interface ClusterInformation {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ClusterMemberInformation>}
|
|
22
|
+
* @memberof ClusterInformation
|
|
23
|
+
*/
|
|
24
|
+
members?: Array<ClusterMemberInformation>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {ClusterMemberInformation}
|
|
28
|
+
* @memberof ClusterInformation
|
|
29
|
+
*/
|
|
30
|
+
coordinator: ClusterMemberInformation;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the ClusterInformation interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfClusterInformation(value: object): value is ClusterInformation;
|
|
36
|
+
export declare function ClusterInformationFromJSON(json: any): ClusterInformation;
|
|
37
|
+
export declare function ClusterInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClusterInformation;
|
|
38
|
+
export declare function ClusterInformationToJSON(json: any): ClusterInformation;
|
|
39
|
+
export declare function ClusterInformationToJSONTyped(value?: ClusterInformation | null, ignoreDiscriminator?: boolean): any;
|