@sfxcode/nuxt-mongocamp-server 1.9.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.
Files changed (111) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +1 -1
  3. package/dist/runtime/api/.openapi-generator/FILES +20 -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 +1 -1
  7. package/dist/runtime/api/apis/BucketApi.d.ts +1 -1
  8. package/dist/runtime/api/apis/CollectionApi.d.ts +78 -4
  9. package/dist/runtime/api/apis/CollectionApi.js +175 -2
  10. package/dist/runtime/api/apis/DatabaseApi.d.ts +1 -1
  11. package/dist/runtime/api/apis/DocumentApi.d.ts +1 -1
  12. package/dist/runtime/api/apis/FileApi.d.ts +1 -1
  13. package/dist/runtime/api/apis/IndexApi.d.ts +1 -1
  14. package/dist/runtime/api/apis/JobsApi.d.ts +1 -1
  15. package/dist/runtime/api/apis/SystemApi.d.ts +46 -1
  16. package/dist/runtime/api/apis/SystemApi.js +141 -0
  17. package/dist/runtime/api/docs/Capabilities.md +42 -0
  18. package/dist/runtime/api/docs/CapabilityLimits.md +36 -0
  19. package/dist/runtime/api/docs/CollectionApi.md +249 -4
  20. package/dist/runtime/api/docs/CollectionCollation.md +40 -0
  21. package/dist/runtime/api/docs/CollectionOptions.md +46 -0
  22. package/dist/runtime/api/docs/ConnectionStats.md +38 -0
  23. package/dist/runtime/api/docs/CreateCollectionResponse.md +34 -0
  24. package/dist/runtime/api/docs/DocumentApi.md +1 -1
  25. package/dist/runtime/api/docs/OpCounters.md +44 -0
  26. package/dist/runtime/api/docs/ReplicaSetState.md +40 -0
  27. package/dist/runtime/api/docs/SystemApi.md +210 -0
  28. package/dist/runtime/api/docs/SystemInfo.md +36 -0
  29. package/dist/runtime/api/docs/SystemStats.md +42 -0
  30. package/dist/runtime/api/models/BucketInformation.d.ts +1 -1
  31. package/dist/runtime/api/models/Capabilities.d.ts +47 -0
  32. package/dist/runtime/api/models/Capabilities.js +39 -0
  33. package/dist/runtime/api/models/CapabilityLimits.d.ts +34 -0
  34. package/dist/runtime/api/models/CapabilityLimits.js +29 -0
  35. package/dist/runtime/api/models/ClusterInformation.d.ts +1 -1
  36. package/dist/runtime/api/models/ClusterMemberInformation.d.ts +1 -1
  37. package/dist/runtime/api/models/CollectionCollation.d.ts +42 -0
  38. package/dist/runtime/api/models/CollectionCollation.js +32 -0
  39. package/dist/runtime/api/models/CollectionOptions.d.ts +57 -0
  40. package/dist/runtime/api/models/CollectionOptions.js +41 -0
  41. package/dist/runtime/api/models/CollectionPermission.d.ts +1 -1
  42. package/dist/runtime/api/models/CollectionStatus.d.ts +1 -1
  43. package/dist/runtime/api/models/CollectionSummary.d.ts +1 -1
  44. package/dist/runtime/api/models/ConnectionStats.d.ts +38 -0
  45. package/dist/runtime/api/models/ConnectionStats.js +32 -0
  46. package/dist/runtime/api/models/CopyRequest.d.ts +1 -1
  47. package/dist/runtime/api/models/CopyResponse.d.ts +1 -1
  48. package/dist/runtime/api/models/CountResponse.d.ts +1 -1
  49. package/dist/runtime/api/models/CreateCollectionResponse.d.ts +30 -0
  50. package/dist/runtime/api/models/CreateCollectionResponse.js +26 -0
  51. package/dist/runtime/api/models/DatabaseInfo.d.ts +1 -1
  52. package/dist/runtime/api/models/DeleteResponse.d.ts +1 -1
  53. package/dist/runtime/api/models/ErrorDescription.d.ts +1 -1
  54. package/dist/runtime/api/models/FieldInfo.d.ts +1 -1
  55. package/dist/runtime/api/models/FieldTypeCount.d.ts +1 -1
  56. package/dist/runtime/api/models/FileInformation.d.ts +1 -1
  57. package/dist/runtime/api/models/Grant.d.ts +1 -1
  58. package/dist/runtime/api/models/ImportResponse.d.ts +1 -1
  59. package/dist/runtime/api/models/IndexCreateRequest.d.ts +1 -1
  60. package/dist/runtime/api/models/IndexCreateResponse.d.ts +1 -1
  61. package/dist/runtime/api/models/IndexDropResponse.d.ts +1 -1
  62. package/dist/runtime/api/models/IndexInfo.d.ts +1 -1
  63. package/dist/runtime/api/models/IndexKey.d.ts +1 -1
  64. package/dist/runtime/api/models/IndexOptionsRequest.d.ts +1 -1
  65. package/dist/runtime/api/models/IndexUsage.d.ts +1 -1
  66. package/dist/runtime/api/models/InsertError.d.ts +1 -1
  67. package/dist/runtime/api/models/InsertResponse.d.ts +1 -1
  68. package/dist/runtime/api/models/JobConfig.d.ts +1 -1
  69. package/dist/runtime/api/models/JobInformation.d.ts +1 -1
  70. package/dist/runtime/api/models/JsonSchema.d.ts +1 -1
  71. package/dist/runtime/api/models/JsonSchemaDefinition.d.ts +1 -1
  72. package/dist/runtime/api/models/JsonValueAny.d.ts +1 -1
  73. package/dist/runtime/api/models/JsonValueBoolean.d.ts +1 -1
  74. package/dist/runtime/api/models/JsonValueString.d.ts +1 -1
  75. package/dist/runtime/api/models/Login.d.ts +1 -1
  76. package/dist/runtime/api/models/LoginResult.d.ts +1 -1
  77. package/dist/runtime/api/models/MongoAggregateRequest.d.ts +1 -1
  78. package/dist/runtime/api/models/MongoCampConfiguration.d.ts +1 -1
  79. package/dist/runtime/api/models/MongoFindRequest.d.ts +1 -1
  80. package/dist/runtime/api/models/MongoIndex.d.ts +1 -1
  81. package/dist/runtime/api/models/OpCounters.d.ts +50 -0
  82. package/dist/runtime/api/models/OpCounters.js +41 -0
  83. package/dist/runtime/api/models/PasswordUpdateRequest.d.ts +1 -1
  84. package/dist/runtime/api/models/PipelineStage.d.ts +1 -1
  85. package/dist/runtime/api/models/RenameRequest.d.ts +1 -1
  86. package/dist/runtime/api/models/RenameResponse.d.ts +1 -1
  87. package/dist/runtime/api/models/ReplicaSetState.d.ts +42 -0
  88. package/dist/runtime/api/models/ReplicaSetState.js +35 -0
  89. package/dist/runtime/api/models/Role.d.ts +1 -1
  90. package/dist/runtime/api/models/SchemaAnalysis.d.ts +1 -1
  91. package/dist/runtime/api/models/SchemaAnalysisField.d.ts +1 -1
  92. package/dist/runtime/api/models/SchemaAnalysisFieldType.d.ts +1 -1
  93. package/dist/runtime/api/models/SearchRequest.d.ts +1 -1
  94. package/dist/runtime/api/models/SettingsResponse.d.ts +1 -1
  95. package/dist/runtime/api/models/SystemInfo.d.ts +34 -0
  96. package/dist/runtime/api/models/SystemInfo.js +28 -0
  97. package/dist/runtime/api/models/SystemStats.d.ts +49 -0
  98. package/dist/runtime/api/models/SystemStats.js +46 -0
  99. package/dist/runtime/api/models/UpdateFileInformationRequest.d.ts +1 -1
  100. package/dist/runtime/api/models/UpdateRequest.d.ts +1 -1
  101. package/dist/runtime/api/models/UpdateResponse.d.ts +1 -1
  102. package/dist/runtime/api/models/UpdateRoleRequest.d.ts +1 -1
  103. package/dist/runtime/api/models/UserInformation.d.ts +1 -1
  104. package/dist/runtime/api/models/UserProfile.d.ts +1 -1
  105. package/dist/runtime/api/models/Version.d.ts +1 -1
  106. package/dist/runtime/api/models/index.d.ts +10 -0
  107. package/dist/runtime/api/models/index.js +10 -0
  108. package/dist/runtime/api/runtime.d.ts +1 -1
  109. package/dist/runtime/composables/mongocampStorage.d.ts +7 -1
  110. package/dist/runtime/composables/mongocampStorage.js +12 -8
  111. package/package.json +2 -2
@@ -0,0 +1,34 @@
1
+
2
+ # CreateCollectionResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `name` | string
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { CreateCollectionResponse } from ''
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "name": null,
19
+ } satisfies CreateCollectionResponse
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as CreateCollectionResponse
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
@@ -652,7 +652,7 @@ async function example() {
652
652
  // string | The name of your MongoDb Collection
653
653
  collectionName: collectionName_example,
654
654
  // { [key: string]: any | null; } | JSON Representation for your Document.
655
- requestBody: {"key1":"value","key2":true,"key3":{"creationDate":"2026-11-12T19:00:42.728Z"}},
655
+ requestBody: {"key1":"value","key2":true,"key3":{"creationDate":"2026-11-13T05:11:19.838Z"}},
656
656
  } satisfies InsertRequest;
657
657
 
658
658
  try {
@@ -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&lt;number&gt;
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.8.2
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).
@@ -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
+ }
@@ -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.8.2
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).
@@ -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.8.2
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).
@@ -0,0 +1,42 @@
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 CollectionCollation
16
+ */
17
+ export interface CollectionCollation {
18
+ /**
19
+ *
20
+ */
21
+ locale: string;
22
+ /**
23
+ *
24
+ */
25
+ strength?: number;
26
+ /**
27
+ *
28
+ */
29
+ caseLevel?: boolean;
30
+ /**
31
+ *
32
+ */
33
+ numericOrdering?: boolean;
34
+ }
35
+ /**
36
+ * Check if a given object implements the CollectionCollation interface.
37
+ */
38
+ export declare function instanceOfCollectionCollation(value: object): value is CollectionCollation;
39
+ export declare function CollectionCollationFromJSON(json: any): CollectionCollation;
40
+ export declare function CollectionCollationFromJSONTyped(json: any, ignoreDiscriminator: boolean): CollectionCollation;
41
+ export declare function CollectionCollationToJSON(json: any): CollectionCollation;
42
+ export declare function CollectionCollationToJSONTyped(value?: CollectionCollation | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,32 @@
1
+ export function instanceOfCollectionCollation(value) {
2
+ if (!("locale" in value) || value["locale"] === void 0) return false;
3
+ return true;
4
+ }
5
+ export function CollectionCollationFromJSON(json) {
6
+ return CollectionCollationFromJSONTyped(json, false);
7
+ }
8
+ export function CollectionCollationFromJSONTyped(json, ignoreDiscriminator) {
9
+ if (json == null) {
10
+ return json;
11
+ }
12
+ return {
13
+ "locale": json["locale"],
14
+ "strength": json["strength"] == null ? void 0 : json["strength"],
15
+ "caseLevel": json["caseLevel"] == null ? void 0 : json["caseLevel"],
16
+ "numericOrdering": json["numericOrdering"] == null ? void 0 : json["numericOrdering"]
17
+ };
18
+ }
19
+ export function CollectionCollationToJSON(json) {
20
+ return CollectionCollationToJSONTyped(json, false);
21
+ }
22
+ export function CollectionCollationToJSONTyped(value, ignoreDiscriminator = false) {
23
+ if (value == null) {
24
+ return value;
25
+ }
26
+ return {
27
+ "locale": value["locale"],
28
+ "strength": value["strength"],
29
+ "caseLevel": value["caseLevel"],
30
+ "numericOrdering": value["numericOrdering"]
31
+ };
32
+ }