@sfxcode/nuxt-mongocamp-server 1.8.0 → 1.9.1
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/dist/module.json +2 -2
- package/dist/module.mjs +1 -1
- package/dist/runtime/api/.openapi-generator/FILES +20 -0
- package/dist/runtime/api/.openapi-generator/VERSION +1 -1
- package/dist/runtime/api/apis/AdminApi.d.ts +65 -2
- package/dist/runtime/api/apis/AdminApi.js +39 -27
- package/dist/runtime/api/apis/ApplicationApi.d.ts +17 -2
- package/dist/runtime/api/apis/ApplicationApi.js +17 -11
- package/dist/runtime/api/apis/AuthApi.d.ts +17 -2
- package/dist/runtime/api/apis/AuthApi.js +27 -15
- package/dist/runtime/api/apis/BucketApi.d.ts +12 -2
- package/dist/runtime/api/apis/BucketApi.js +11 -9
- package/dist/runtime/api/apis/CollectionApi.d.ts +183 -6
- package/dist/runtime/api/apis/CollectionApi.js +233 -40
- package/dist/runtime/api/apis/DatabaseApi.d.ts +12 -2
- package/dist/runtime/api/apis/DatabaseApi.js +12 -10
- package/dist/runtime/api/apis/DocumentApi.d.ts +178 -15
- package/dist/runtime/api/apis/DocumentApi.js +54 -40
- package/dist/runtime/api/apis/FileApi.d.ts +78 -4
- package/dist/runtime/api/apis/FileApi.js +34 -24
- package/dist/runtime/api/apis/IndexApi.d.ts +83 -2
- package/dist/runtime/api/apis/IndexApi.js +46 -34
- package/dist/runtime/api/apis/JobsApi.d.ts +28 -2
- package/dist/runtime/api/apis/JobsApi.js +19 -15
- package/dist/runtime/api/apis/SystemApi.d.ts +48 -2
- package/dist/runtime/api/apis/SystemApi.js +146 -3
- package/dist/runtime/api/docs/Capabilities.md +42 -0
- package/dist/runtime/api/docs/CapabilityLimits.md +36 -0
- package/dist/runtime/api/docs/CollectionApi.md +251 -6
- package/dist/runtime/api/docs/CollectionCollation.md +40 -0
- package/dist/runtime/api/docs/CollectionOptions.md +46 -0
- package/dist/runtime/api/docs/CollectionStatus.md +1 -1
- package/dist/runtime/api/docs/ConnectionStats.md +38 -0
- package/dist/runtime/api/docs/CreateCollectionResponse.md +34 -0
- package/dist/runtime/api/docs/DatabaseInfo.md +1 -1
- package/dist/runtime/api/docs/DocumentApi.md +19 -19
- package/dist/runtime/api/docs/FileInformation.md +1 -1
- package/dist/runtime/api/docs/IndexInfo.md +3 -3
- package/dist/runtime/api/docs/IndexOptionsRequest.md +2 -2
- package/dist/runtime/api/docs/IndexUsage.md +1 -1
- package/dist/runtime/api/docs/JsonSchemaDefinition.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/OpCounters.md +44 -0
- package/dist/runtime/api/docs/ReplicaSetState.md +40 -0
- package/dist/runtime/api/docs/SettingsResponse.md +1 -1
- package/dist/runtime/api/docs/SystemApi.md +210 -0
- package/dist/runtime/api/docs/SystemInfo.md +36 -0
- package/dist/runtime/api/docs/SystemStats.md +42 -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 -9
- package/dist/runtime/api/models/Capabilities.d.ts +47 -0
- package/dist/runtime/api/models/Capabilities.js +39 -0
- package/dist/runtime/api/models/CapabilityLimits.d.ts +34 -0
- package/dist/runtime/api/models/CapabilityLimits.js +29 -0
- package/dist/runtime/api/models/ClusterInformation.d.ts +1 -5
- package/dist/runtime/api/models/ClusterMemberInformation.d.ts +1 -11
- package/dist/runtime/api/models/CollectionCollation.d.ts +42 -0
- package/dist/runtime/api/models/CollectionCollation.js +32 -0
- package/dist/runtime/api/models/CollectionOptions.d.ts +57 -0
- package/dist/runtime/api/models/CollectionOptions.js +41 -0
- package/dist/runtime/api/models/CollectionPermission.d.ts +1 -9
- package/dist/runtime/api/models/CollectionStatus.d.ts +2 -28
- package/dist/runtime/api/models/CollectionStatus.js +3 -2
- package/dist/runtime/api/models/CollectionSummary.d.ts +1 -19
- package/dist/runtime/api/models/ConnectionStats.d.ts +38 -0
- package/dist/runtime/api/models/ConnectionStats.js +32 -0
- package/dist/runtime/api/models/CopyRequest.d.ts +1 -9
- package/dist/runtime/api/models/CopyResponse.d.ts +1 -7
- package/dist/runtime/api/models/CountResponse.d.ts +1 -3
- package/dist/runtime/api/models/CreateCollectionResponse.d.ts +30 -0
- package/dist/runtime/api/models/CreateCollectionResponse.js +26 -0
- package/dist/runtime/api/models/DatabaseInfo.d.ts +2 -12
- package/dist/runtime/api/models/DatabaseInfo.js +3 -2
- package/dist/runtime/api/models/DeleteResponse.d.ts +1 -5
- package/dist/runtime/api/models/ErrorDescription.d.ts +1 -7
- package/dist/runtime/api/models/FieldInfo.d.ts +1 -5
- package/dist/runtime/api/models/FieldTypeCount.d.ts +1 -5
- package/dist/runtime/api/models/FileInformation.d.ts +2 -14
- package/dist/runtime/api/models/FileInformation.js +4 -3
- package/dist/runtime/api/models/Grant.d.ts +1 -11
- package/dist/runtime/api/models/ImportResponse.d.ts +1 -11
- package/dist/runtime/api/models/IndexCreateRequest.d.ts +1 -7
- package/dist/runtime/api/models/IndexCreateResponse.d.ts +1 -3
- package/dist/runtime/api/models/IndexDropResponse.d.ts +1 -3
- package/dist/runtime/api/models/IndexInfo.d.ts +4 -26
- package/dist/runtime/api/models/IndexKey.d.ts +1 -5
- package/dist/runtime/api/models/IndexOptionsRequest.d.ts +3 -29
- package/dist/runtime/api/models/IndexUsage.d.ts +2 -10
- package/dist/runtime/api/models/IndexUsage.js +3 -2
- package/dist/runtime/api/models/InsertError.d.ts +1 -7
- package/dist/runtime/api/models/InsertResponse.d.ts +1 -9
- package/dist/runtime/api/models/JobConfig.d.ts +1 -13
- package/dist/runtime/api/models/JobInformation.d.ts +1 -19
- package/dist/runtime/api/models/JobInformation.js +5 -4
- package/dist/runtime/api/models/JsonSchema.d.ts +1 -7
- package/dist/runtime/api/models/JsonSchemaDefinition.d.ts +2 -12
- package/dist/runtime/api/models/JsonValueAny.d.ts +1 -3
- package/dist/runtime/api/models/JsonValueBoolean.d.ts +1 -3
- package/dist/runtime/api/models/JsonValueString.d.ts +1 -3
- package/dist/runtime/api/models/Login.d.ts +1 -5
- package/dist/runtime/api/models/LoginResult.d.ts +1 -7
- package/dist/runtime/api/models/LoginResult.js +3 -2
- package/dist/runtime/api/models/MongoAggregateRequest.d.ts +1 -5
- package/dist/runtime/api/models/MongoCampConfiguration.d.ts +1 -11
- package/dist/runtime/api/models/MongoFindRequest.d.ts +4 -10
- package/dist/runtime/api/models/MongoIndex.d.ts +4 -28
- package/dist/runtime/api/models/MongoIndex.js +3 -2
- package/dist/runtime/api/models/OpCounters.d.ts +50 -0
- package/dist/runtime/api/models/OpCounters.js +41 -0
- package/dist/runtime/api/models/PasswordUpdateRequest.d.ts +1 -3
- package/dist/runtime/api/models/PipelineStage.d.ts +1 -5
- package/dist/runtime/api/models/RenameRequest.d.ts +1 -5
- package/dist/runtime/api/models/RenameResponse.d.ts +1 -3
- package/dist/runtime/api/models/ReplicaSetState.d.ts +42 -0
- package/dist/runtime/api/models/ReplicaSetState.js +35 -0
- package/dist/runtime/api/models/Role.d.ts +1 -7
- package/dist/runtime/api/models/SchemaAnalysis.d.ts +1 -9
- package/dist/runtime/api/models/SchemaAnalysisField.d.ts +1 -13
- package/dist/runtime/api/models/SchemaAnalysisFieldType.d.ts +1 -7
- package/dist/runtime/api/models/SearchRequest.d.ts +1 -7
- package/dist/runtime/api/models/SettingsResponse.d.ts +2 -10
- package/dist/runtime/api/models/SystemInfo.d.ts +34 -0
- package/dist/runtime/api/models/SystemInfo.js +28 -0
- package/dist/runtime/api/models/SystemStats.d.ts +49 -0
- package/dist/runtime/api/models/SystemStats.js +46 -0
- package/dist/runtime/api/models/UpdateFileInformationRequest.d.ts +2 -6
- package/dist/runtime/api/models/UpdateRequest.d.ts +3 -7
- package/dist/runtime/api/models/UpdateResponse.d.ts +1 -9
- package/dist/runtime/api/models/UpdateRoleRequest.d.ts +1 -5
- package/dist/runtime/api/models/UserInformation.d.ts +1 -9
- package/dist/runtime/api/models/UserProfile.d.ts +1 -11
- package/dist/runtime/api/models/Version.d.ts +1 -7
- package/dist/runtime/api/models/Version.js +3 -2
- package/dist/runtime/api/models/index.d.ts +10 -0
- package/dist/runtime/api/models/index.js +10 -0
- package/dist/runtime/api/runtime.d.ts +35 -2
- package/dist/runtime/api/runtime.js +84 -4
- package/dist/runtime/composables/mongocampApiFiles.d.ts +1 -1
- package/dist/runtime/composables/mongocampStorage.d.ts +7 -1
- package/dist/runtime/composables/mongocampStorage.js +12 -8
- package/package.json +4 -4
|
@@ -11,9 +11,9 @@ Name | Type
|
|
|
11
11
|
`unique` | boolean
|
|
12
12
|
`sparse` | boolean
|
|
13
13
|
`hidden` | boolean
|
|
14
|
-
`partialFilterExpression` | { [key: string]: any; }
|
|
15
|
-
`collation` | { [key: string]: any; }
|
|
16
|
-
`weights` | { [key: string]: any; }
|
|
14
|
+
`partialFilterExpression` | { [key: string]: any | null; }
|
|
15
|
+
`collation` | { [key: string]: any | null; }
|
|
16
|
+
`weights` | { [key: string]: any | null; }
|
|
17
17
|
`defaultLanguage` | string
|
|
18
18
|
`expireAfterSeconds` | number
|
|
19
19
|
`version` | number
|
|
@@ -16,9 +16,9 @@ Name | Type
|
|
|
16
16
|
`min` | number
|
|
17
17
|
`sparse` | boolean
|
|
18
18
|
`hidden` | boolean
|
|
19
|
-
`partialFilterExpression` | { [key: string]: any; }
|
|
19
|
+
`partialFilterExpression` | { [key: string]: any | null; }
|
|
20
20
|
`weights` | { [key: string]: number; }
|
|
21
|
-
`collation` | { [key: string]: any; }
|
|
21
|
+
`collation` | { [key: string]: any | null; }
|
|
22
22
|
|
|
23
23
|
## Example
|
|
24
24
|
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`filter` | { [key: string]: any; }
|
|
10
|
-
`sort` | { [key: string]: any; }
|
|
11
|
-
`projection` | { [key: string]: any; }
|
|
9
|
+
`filter` | { [key: string]: any | null; }
|
|
10
|
+
`sort` | { [key: string]: any | null; }
|
|
11
|
+
`projection` | { [key: string]: any | null; }
|
|
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]: any; }
|
|
15
|
-
`weights` | { [key: string]: any; }
|
|
14
|
+
`keys` | { [key: string]: any | null; }
|
|
15
|
+
`weights` | { [key: string]: any | null; }
|
|
16
16
|
`expire` | boolean
|
|
17
17
|
`expireAfterSeconds` | number
|
|
18
18
|
`text` | boolean
|
|
19
19
|
`fetched` | Date
|
|
20
|
-
`map` | { [key: string]: any; }
|
|
20
|
+
`map` | { [key: string]: any | null; }
|
|
21
21
|
|
|
22
22
|
## Example
|
|
23
23
|
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
|
|
2
|
+
# OpCounters
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`insert` | number
|
|
10
|
+
`query` | number
|
|
11
|
+
`update` | number
|
|
12
|
+
`_delete` | number
|
|
13
|
+
`getmore` | number
|
|
14
|
+
`command` | number
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import type { OpCounters } from ''
|
|
20
|
+
|
|
21
|
+
// TODO: Update the object below with actual values
|
|
22
|
+
const example = {
|
|
23
|
+
"insert": null,
|
|
24
|
+
"query": null,
|
|
25
|
+
"update": null,
|
|
26
|
+
"_delete": null,
|
|
27
|
+
"getmore": null,
|
|
28
|
+
"command": null,
|
|
29
|
+
} satisfies OpCounters
|
|
30
|
+
|
|
31
|
+
console.log(example)
|
|
32
|
+
|
|
33
|
+
// Convert the instance to a JSON string
|
|
34
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
35
|
+
console.log(exampleJSON)
|
|
36
|
+
|
|
37
|
+
// Parse the JSON string back to an object
|
|
38
|
+
const exampleParsed = JSON.parse(exampleJSON) as OpCounters
|
|
39
|
+
console.log(exampleParsed)
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
43
|
+
|
|
44
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
|
|
2
|
+
# ReplicaSetState
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`name` | string
|
|
10
|
+
`state` | string
|
|
11
|
+
`memberCount` | number
|
|
12
|
+
`healthyMembers` | number
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import type { ReplicaSetState } from ''
|
|
18
|
+
|
|
19
|
+
// TODO: Update the object below with actual values
|
|
20
|
+
const example = {
|
|
21
|
+
"name": null,
|
|
22
|
+
"state": null,
|
|
23
|
+
"memberCount": null,
|
|
24
|
+
"healthyMembers": null,
|
|
25
|
+
} satisfies ReplicaSetState
|
|
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 ReplicaSetState
|
|
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
|
+
|
|
@@ -4,11 +4,221 @@ All URIs are relative to *http://localhost*
|
|
|
4
4
|
|
|
5
5
|
| Method | HTTP request | Description |
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
+
| [**systemCapabilities**](SystemApi.md#systemcapabilities) | **GET** /system/capabilities | System Capabilities |
|
|
8
|
+
| [**systemInfo**](SystemApi.md#systeminfo) | **GET** /system/info | System Information |
|
|
9
|
+
| [**systemStats**](SystemApi.md#systemstats) | **GET** /system/stats | System Statistics |
|
|
7
10
|
| [**version**](SystemApi.md#version) | **GET** /version | Version Information |
|
|
8
11
|
| [**viewCluster**](SystemApi.md#viewcluster) | **GET** /system/cluster | Registered Jobs |
|
|
9
12
|
|
|
10
13
|
|
|
11
14
|
|
|
15
|
+
## systemCapabilities
|
|
16
|
+
|
|
17
|
+
> Capabilities systemCapabilities()
|
|
18
|
+
|
|
19
|
+
System Capabilities
|
|
20
|
+
|
|
21
|
+
What this server can do, for every logged in user: the names of the features, the major version of MongoDB, the limits (size of an import, status of a request without the grant) and the operators that an aggregation refuses. A server that has no such route is an older version.
|
|
22
|
+
|
|
23
|
+
### Example
|
|
24
|
+
|
|
25
|
+
```ts
|
|
26
|
+
import {
|
|
27
|
+
Configuration,
|
|
28
|
+
SystemApi,
|
|
29
|
+
} from '';
|
|
30
|
+
import type { SystemCapabilitiesRequest } from '';
|
|
31
|
+
|
|
32
|
+
async function example() {
|
|
33
|
+
console.log("🚀 Testing SDK...");
|
|
34
|
+
const config = new Configuration({
|
|
35
|
+
// To configure HTTP basic authorization: httpAuth1
|
|
36
|
+
username: "YOUR USERNAME",
|
|
37
|
+
password: "YOUR PASSWORD",
|
|
38
|
+
// Configure HTTP bearer authorization: httpAuth
|
|
39
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
40
|
+
// To configure API key authorization: apiKeyAuth
|
|
41
|
+
apiKey: "YOUR API KEY",
|
|
42
|
+
});
|
|
43
|
+
const api = new SystemApi(config);
|
|
44
|
+
|
|
45
|
+
try {
|
|
46
|
+
const data = await api.systemCapabilities();
|
|
47
|
+
console.log(data);
|
|
48
|
+
} catch (error) {
|
|
49
|
+
console.error(error);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// Run the test
|
|
54
|
+
example().catch(console.error);
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### Parameters
|
|
58
|
+
|
|
59
|
+
This endpoint does not need any parameter.
|
|
60
|
+
|
|
61
|
+
### Return type
|
|
62
|
+
|
|
63
|
+
[**Capabilities**](Capabilities.md)
|
|
64
|
+
|
|
65
|
+
### Authorization
|
|
66
|
+
|
|
67
|
+
[httpAuth1](../README.md#httpAuth1), [httpAuth](../README.md#httpAuth), [apiKeyAuth](../README.md#apiKeyAuth)
|
|
68
|
+
|
|
69
|
+
### HTTP request headers
|
|
70
|
+
|
|
71
|
+
- **Content-Type**: Not defined
|
|
72
|
+
- **Accept**: `application/json`
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
### HTTP response details
|
|
76
|
+
| Status code | Description | Response headers |
|
|
77
|
+
|-------------|-------------|------------------|
|
|
78
|
+
| **200** | | - |
|
|
79
|
+
| **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> |
|
|
80
|
+
|
|
81
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
## systemInfo
|
|
85
|
+
|
|
86
|
+
> SystemInfo systemInfo()
|
|
87
|
+
|
|
88
|
+
System Information
|
|
89
|
+
|
|
90
|
+
Information about the system the server is connected to: the version of the MongoDB server
|
|
91
|
+
|
|
92
|
+
### Example
|
|
93
|
+
|
|
94
|
+
```ts
|
|
95
|
+
import {
|
|
96
|
+
Configuration,
|
|
97
|
+
SystemApi,
|
|
98
|
+
} from '';
|
|
99
|
+
import type { SystemInfoRequest } from '';
|
|
100
|
+
|
|
101
|
+
async function example() {
|
|
102
|
+
console.log("🚀 Testing SDK...");
|
|
103
|
+
const config = new Configuration({
|
|
104
|
+
// To configure HTTP basic authorization: httpAuth1
|
|
105
|
+
username: "YOUR USERNAME",
|
|
106
|
+
password: "YOUR PASSWORD",
|
|
107
|
+
// Configure HTTP bearer authorization: httpAuth
|
|
108
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
109
|
+
// To configure API key authorization: apiKeyAuth
|
|
110
|
+
apiKey: "YOUR API KEY",
|
|
111
|
+
});
|
|
112
|
+
const api = new SystemApi(config);
|
|
113
|
+
|
|
114
|
+
try {
|
|
115
|
+
const data = await api.systemInfo();
|
|
116
|
+
console.log(data);
|
|
117
|
+
} catch (error) {
|
|
118
|
+
console.error(error);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
// Run the test
|
|
123
|
+
example().catch(console.error);
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
### Parameters
|
|
127
|
+
|
|
128
|
+
This endpoint does not need any parameter.
|
|
129
|
+
|
|
130
|
+
### Return type
|
|
131
|
+
|
|
132
|
+
[**SystemInfo**](SystemInfo.md)
|
|
133
|
+
|
|
134
|
+
### Authorization
|
|
135
|
+
|
|
136
|
+
[httpAuth1](../README.md#httpAuth1), [httpAuth](../README.md#httpAuth), [apiKeyAuth](../README.md#apiKeyAuth)
|
|
137
|
+
|
|
138
|
+
### HTTP request headers
|
|
139
|
+
|
|
140
|
+
- **Content-Type**: Not defined
|
|
141
|
+
- **Accept**: `application/json`
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
### HTTP response details
|
|
145
|
+
| Status code | Description | Response headers |
|
|
146
|
+
|-------------|-------------|------------------|
|
|
147
|
+
| **200** | | - |
|
|
148
|
+
| **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> |
|
|
149
|
+
|
|
150
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
## systemStats
|
|
154
|
+
|
|
155
|
+
> SystemStats systemStats()
|
|
156
|
+
|
|
157
|
+
System Statistics
|
|
158
|
+
|
|
159
|
+
The numbers of the database server for a server overview: uptime, connections, operation counters (totals since the start of the database server) and the state of the replica set. A database user without the role clusterMonitor gives partial true and no uptime, connections and counters; a server that is not part of a replica set has no replicaSet. No host names or addresses.
|
|
160
|
+
|
|
161
|
+
### Example
|
|
162
|
+
|
|
163
|
+
```ts
|
|
164
|
+
import {
|
|
165
|
+
Configuration,
|
|
166
|
+
SystemApi,
|
|
167
|
+
} from '';
|
|
168
|
+
import type { SystemStatsRequest } from '';
|
|
169
|
+
|
|
170
|
+
async function example() {
|
|
171
|
+
console.log("🚀 Testing SDK...");
|
|
172
|
+
const config = new Configuration({
|
|
173
|
+
// To configure HTTP basic authorization: httpAuth1
|
|
174
|
+
username: "YOUR USERNAME",
|
|
175
|
+
password: "YOUR PASSWORD",
|
|
176
|
+
// Configure HTTP bearer authorization: httpAuth
|
|
177
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
178
|
+
// To configure API key authorization: apiKeyAuth
|
|
179
|
+
apiKey: "YOUR API KEY",
|
|
180
|
+
});
|
|
181
|
+
const api = new SystemApi(config);
|
|
182
|
+
|
|
183
|
+
try {
|
|
184
|
+
const data = await api.systemStats();
|
|
185
|
+
console.log(data);
|
|
186
|
+
} catch (error) {
|
|
187
|
+
console.error(error);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
// Run the test
|
|
192
|
+
example().catch(console.error);
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
### Parameters
|
|
196
|
+
|
|
197
|
+
This endpoint does not need any parameter.
|
|
198
|
+
|
|
199
|
+
### Return type
|
|
200
|
+
|
|
201
|
+
[**SystemStats**](SystemStats.md)
|
|
202
|
+
|
|
203
|
+
### Authorization
|
|
204
|
+
|
|
205
|
+
[httpAuth1](../README.md#httpAuth1), [httpAuth](../README.md#httpAuth), [apiKeyAuth](../README.md#apiKeyAuth)
|
|
206
|
+
|
|
207
|
+
### HTTP request headers
|
|
208
|
+
|
|
209
|
+
- **Content-Type**: Not defined
|
|
210
|
+
- **Accept**: `application/json`
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
### HTTP response details
|
|
214
|
+
| Status code | Description | Response headers |
|
|
215
|
+
|-------------|-------------|------------------|
|
|
216
|
+
| **200** | | - |
|
|
217
|
+
| **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> |
|
|
218
|
+
|
|
219
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
220
|
+
|
|
221
|
+
|
|
12
222
|
## version
|
|
13
223
|
|
|
14
224
|
> Version version()
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# SystemInfo
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`mongoDbVersion` | string
|
|
10
|
+
`mongoDbVersionArray` | Array<number>
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { SystemInfo } from ''
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"mongoDbVersion": null,
|
|
20
|
+
"mongoDbVersionArray": null,
|
|
21
|
+
} satisfies SystemInfo
|
|
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 SystemInfo
|
|
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,42 @@
|
|
|
1
|
+
|
|
2
|
+
# SystemStats
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`uptimeSeconds` | number
|
|
10
|
+
`connections` | [ConnectionStats](ConnectionStats.md)
|
|
11
|
+
`opcounters` | [OpCounters](OpCounters.md)
|
|
12
|
+
`replicaSet` | [ReplicaSetState](ReplicaSetState.md)
|
|
13
|
+
`partial` | boolean
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { SystemStats } from ''
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"uptimeSeconds": null,
|
|
23
|
+
"connections": null,
|
|
24
|
+
"opcounters": null,
|
|
25
|
+
"replicaSet": null,
|
|
26
|
+
"partial": null,
|
|
27
|
+
} satisfies SystemStats
|
|
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 SystemStats
|
|
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
|
+
|
|
@@ -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.9.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -17,26 +17,18 @@
|
|
|
17
17
|
export interface BucketInformation {
|
|
18
18
|
/**
|
|
19
19
|
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof BucketInformation
|
|
22
20
|
*/
|
|
23
21
|
name: string;
|
|
24
22
|
/**
|
|
25
23
|
*
|
|
26
|
-
* @type {number}
|
|
27
|
-
* @memberof BucketInformation
|
|
28
24
|
*/
|
|
29
25
|
files: number;
|
|
30
26
|
/**
|
|
31
27
|
*
|
|
32
|
-
* @type {number}
|
|
33
|
-
* @memberof BucketInformation
|
|
34
28
|
*/
|
|
35
29
|
size: number;
|
|
36
30
|
/**
|
|
37
31
|
*
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof BucketInformation
|
|
40
32
|
*/
|
|
41
33
|
avgObjectSize: number;
|
|
42
34
|
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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.9.0
|
|
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 { CapabilityLimits } from './CapabilityLimits.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface Capabilities
|
|
17
|
+
*/
|
|
18
|
+
export interface Capabilities {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
serverVersion: string;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
mongoDbMajor?: number;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
features?: Array<string>;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
limits: CapabilityLimits;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
*/
|
|
38
|
+
aggregationStagesDenied?: Array<string>;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the Capabilities interface.
|
|
42
|
+
*/
|
|
43
|
+
export declare function instanceOfCapabilities(value: object): value is Capabilities;
|
|
44
|
+
export declare function CapabilitiesFromJSON(json: any): Capabilities;
|
|
45
|
+
export declare function CapabilitiesFromJSONTyped(json: any, ignoreDiscriminator: boolean): Capabilities;
|
|
46
|
+
export declare function CapabilitiesToJSON(json: any): Capabilities;
|
|
47
|
+
export declare function CapabilitiesToJSONTyped(value?: Capabilities | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CapabilityLimitsFromJSON,
|
|
3
|
+
CapabilityLimitsToJSON
|
|
4
|
+
} from "./CapabilityLimits.js";
|
|
5
|
+
export function instanceOfCapabilities(value) {
|
|
6
|
+
if (!("serverVersion" in value) || value["serverVersion"] === void 0) return false;
|
|
7
|
+
if (!("limits" in value) || value["limits"] === void 0) return false;
|
|
8
|
+
return true;
|
|
9
|
+
}
|
|
10
|
+
export function CapabilitiesFromJSON(json) {
|
|
11
|
+
return CapabilitiesFromJSONTyped(json, false);
|
|
12
|
+
}
|
|
13
|
+
export function CapabilitiesFromJSONTyped(json, ignoreDiscriminator) {
|
|
14
|
+
if (json == null) {
|
|
15
|
+
return json;
|
|
16
|
+
}
|
|
17
|
+
return {
|
|
18
|
+
"serverVersion": json["serverVersion"],
|
|
19
|
+
"mongoDbMajor": json["mongoDbMajor"] == null ? void 0 : json["mongoDbMajor"],
|
|
20
|
+
"features": json["features"] == null ? void 0 : json["features"],
|
|
21
|
+
"limits": CapabilityLimitsFromJSON(json["limits"]),
|
|
22
|
+
"aggregationStagesDenied": json["aggregationStagesDenied"] == null ? void 0 : json["aggregationStagesDenied"]
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export function CapabilitiesToJSON(json) {
|
|
26
|
+
return CapabilitiesToJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function CapabilitiesToJSONTyped(value, ignoreDiscriminator = false) {
|
|
29
|
+
if (value == null) {
|
|
30
|
+
return value;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
"serverVersion": value["serverVersion"],
|
|
34
|
+
"mongoDbMajor": value["mongoDbMajor"],
|
|
35
|
+
"features": value["features"],
|
|
36
|
+
"limits": CapabilityLimitsToJSON(value["limits"]),
|
|
37
|
+
"aggregationStagesDenied": value["aggregationStagesDenied"]
|
|
38
|
+
};
|
|
39
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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.9.0
|
|
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 CapabilityLimits
|
|
16
|
+
*/
|
|
17
|
+
export interface CapabilityLimits {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
importMaxBytes: number;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
grantDeniedStatus: number;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Check if a given object implements the CapabilityLimits interface.
|
|
29
|
+
*/
|
|
30
|
+
export declare function instanceOfCapabilityLimits(value: object): value is CapabilityLimits;
|
|
31
|
+
export declare function CapabilityLimitsFromJSON(json: any): CapabilityLimits;
|
|
32
|
+
export declare function CapabilityLimitsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CapabilityLimits;
|
|
33
|
+
export declare function CapabilityLimitsToJSON(json: any): CapabilityLimits;
|
|
34
|
+
export declare function CapabilityLimitsToJSONTyped(value?: CapabilityLimits | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export function instanceOfCapabilityLimits(value) {
|
|
2
|
+
if (!("importMaxBytes" in value) || value["importMaxBytes"] === void 0) return false;
|
|
3
|
+
if (!("grantDeniedStatus" in value) || value["grantDeniedStatus"] === void 0) return false;
|
|
4
|
+
return true;
|
|
5
|
+
}
|
|
6
|
+
export function CapabilityLimitsFromJSON(json) {
|
|
7
|
+
return CapabilityLimitsFromJSONTyped(json, false);
|
|
8
|
+
}
|
|
9
|
+
export function CapabilityLimitsFromJSONTyped(json, ignoreDiscriminator) {
|
|
10
|
+
if (json == null) {
|
|
11
|
+
return json;
|
|
12
|
+
}
|
|
13
|
+
return {
|
|
14
|
+
"importMaxBytes": json["importMaxBytes"],
|
|
15
|
+
"grantDeniedStatus": json["grantDeniedStatus"]
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export function CapabilityLimitsToJSON(json) {
|
|
19
|
+
return CapabilityLimitsToJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
export function CapabilityLimitsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
22
|
+
if (value == null) {
|
|
23
|
+
return value;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
"importMaxBytes": value["importMaxBytes"],
|
|
27
|
+
"grantDeniedStatus": value["grantDeniedStatus"]
|
|
28
|
+
};
|
|
29
|
+
}
|