@sfxcode/nuxt-mongocamp-server 1.2.8 → 1.2.9

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 (68) hide show
  1. package/dist/module.json +3 -3
  2. package/dist/module.mjs +3 -3
  3. package/dist/runtime/api/.openapi-generator/FILES +50 -0
  4. package/dist/runtime/api/.openapi-generator/VERSION +1 -1
  5. package/dist/runtime/api/apis/AdminApi.js +32 -12
  6. package/dist/runtime/api/apis/ApplicationApi.js +12 -5
  7. package/dist/runtime/api/apis/AuthApi.js +16 -8
  8. package/dist/runtime/api/apis/BucketApi.js +11 -4
  9. package/dist/runtime/api/apis/CollectionApi.js +30 -10
  10. package/dist/runtime/api/apis/DatabaseApi.js +13 -5
  11. package/dist/runtime/api/apis/DocumentApi.js +34 -10
  12. package/dist/runtime/api/apis/FileApi.js +25 -7
  13. package/dist/runtime/api/apis/IndexApi.js +31 -8
  14. package/dist/runtime/api/apis/InformationApi.js +2 -1
  15. package/dist/runtime/api/apis/JobsApi.js +18 -6
  16. package/dist/runtime/api/docs/AdminApi.md +972 -0
  17. package/dist/runtime/api/docs/ApplicationApi.md +387 -0
  18. package/dist/runtime/api/docs/AuthApi.md +577 -0
  19. package/dist/runtime/api/docs/BucketApi.md +312 -0
  20. package/dist/runtime/api/docs/BucketInformation.md +40 -0
  21. package/dist/runtime/api/docs/CollectionApi.md +822 -0
  22. package/dist/runtime/api/docs/CollectionStatus.md +58 -0
  23. package/dist/runtime/api/docs/DatabaseApi.md +382 -0
  24. package/dist/runtime/api/docs/DatabaseInfo.md +42 -0
  25. package/dist/runtime/api/docs/DeleteResponse.md +36 -0
  26. package/dist/runtime/api/docs/DocumentApi.md +850 -0
  27. package/dist/runtime/api/docs/ErrorDescription.md +38 -0
  28. package/dist/runtime/api/docs/FileApi.md +606 -0
  29. package/dist/runtime/api/docs/FileInformation.md +44 -0
  30. package/dist/runtime/api/docs/Grant.md +42 -0
  31. package/dist/runtime/api/docs/IndexApi.md +682 -0
  32. package/dist/runtime/api/docs/IndexCreateRequest.md +36 -0
  33. package/dist/runtime/api/docs/IndexCreateResponse.md +34 -0
  34. package/dist/runtime/api/docs/IndexDropResponse.md +34 -0
  35. package/dist/runtime/api/docs/IndexOptionsRequest.md +48 -0
  36. package/dist/runtime/api/docs/InformationApi.md +69 -0
  37. package/dist/runtime/api/docs/InsertResponse.md +36 -0
  38. package/dist/runtime/api/docs/JobConfig.md +44 -0
  39. package/dist/runtime/api/docs/JobInformation.md +50 -0
  40. package/dist/runtime/api/docs/JobsApi.md +474 -0
  41. package/dist/runtime/api/docs/JsonSchema.md +38 -0
  42. package/dist/runtime/api/docs/JsonSchemaDefinition.md +42 -0
  43. package/dist/runtime/api/docs/JsonValueAny.md +34 -0
  44. package/dist/runtime/api/docs/JsonValueBoolean.md +34 -0
  45. package/dist/runtime/api/docs/JsonValueString.md +34 -0
  46. package/dist/runtime/api/docs/Login.md +36 -0
  47. package/dist/runtime/api/docs/LoginResult.md +38 -0
  48. package/dist/runtime/api/docs/MongoAggregateRequest.md +36 -0
  49. package/dist/runtime/api/docs/MongoCampConfiguration.md +42 -0
  50. package/dist/runtime/api/docs/MongoFindRequest.md +38 -0
  51. package/dist/runtime/api/docs/MongoIndex.md +56 -0
  52. package/dist/runtime/api/docs/PasswordUpdateRequest.md +34 -0
  53. package/dist/runtime/api/docs/PipelineStage.md +36 -0
  54. package/dist/runtime/api/docs/Role.md +38 -0
  55. package/dist/runtime/api/docs/SchemaAnalysis.md +40 -0
  56. package/dist/runtime/api/docs/SchemaAnalysisField.md +44 -0
  57. package/dist/runtime/api/docs/SchemaAnalysisFieldType.md +38 -0
  58. package/dist/runtime/api/docs/SettingsResponse.md +40 -0
  59. package/dist/runtime/api/docs/UpdateFileInformationRequest.md +36 -0
  60. package/dist/runtime/api/docs/UpdateRequest.md +36 -0
  61. package/dist/runtime/api/docs/UpdateResponse.md +40 -0
  62. package/dist/runtime/api/docs/UpdateRoleRequest.md +36 -0
  63. package/dist/runtime/api/docs/UserInformation.md +40 -0
  64. package/dist/runtime/api/docs/UserProfile.md +42 -0
  65. package/dist/runtime/api/docs/Version.md +38 -0
  66. package/dist/runtime/api/models/JobInformation.js +2 -2
  67. package/dist/runtime/composables/mongocampAuth.d.ts +3 -3
  68. package/package.json +14 -14
@@ -0,0 +1,387 @@
1
+ # ApplicationApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**getConfig**](ApplicationApi.md#getconfig) | **GET** /system/configurations/{configurationKey} | Configuration for configurationKey |
8
+ | [**listConfigurations**](ApplicationApi.md#listconfigurations) | **GET** /system/configurations | List Configurations |
9
+ | [**settings**](ApplicationApi.md#settings) | **GET** /system/settings | System Settings |
10
+ | [**shutdown**](ApplicationApi.md#shutdown) | **DELETE** /system | Shutdown MongoCamp |
11
+ | [**updateConfiguration**](ApplicationApi.md#updateconfiguration) | **PATCH** /system/configurations/{configurationKey} | Update Configuration |
12
+
13
+
14
+
15
+ ## getConfig
16
+
17
+ > MongoCampConfiguration getConfig(configurationKey)
18
+
19
+ Configuration for configurationKey
20
+
21
+ Get Configuration for key
22
+
23
+ ### Example
24
+
25
+ ```ts
26
+ import {
27
+ Configuration,
28
+ ApplicationApi,
29
+ } from '';
30
+ import type { GetConfigRequest } 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 ApplicationApi(config);
44
+
45
+ const body = {
46
+ // string | configurationKey to get
47
+ configurationKey: configurationKey_example,
48
+ } satisfies GetConfigRequest;
49
+
50
+ try {
51
+ const data = await api.getConfig(body);
52
+ console.log(data);
53
+ } catch (error) {
54
+ console.error(error);
55
+ }
56
+ }
57
+
58
+ // Run the test
59
+ example().catch(console.error);
60
+ ```
61
+
62
+ ### Parameters
63
+
64
+
65
+ | Name | Type | Description | Notes |
66
+ |------------- | ------------- | ------------- | -------------|
67
+ | **configurationKey** | `string` | configurationKey to get | [Defaults to `undefined`] |
68
+
69
+ ### Return type
70
+
71
+ [**MongoCampConfiguration**](MongoCampConfiguration.md)
72
+
73
+ ### Authorization
74
+
75
+ [httpAuth1](../README.md#httpAuth1), [httpAuth](../README.md#httpAuth), [apiKeyAuth](../README.md#apiKeyAuth)
76
+
77
+ ### HTTP request headers
78
+
79
+ - **Content-Type**: Not defined
80
+ - **Accept**: `application/json`
81
+
82
+
83
+ ### HTTP response details
84
+ | Status code | Description | Response headers |
85
+ |-------------|-------------|------------------|
86
+ | **200** | | - |
87
+ | **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> |
88
+
89
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
90
+
91
+
92
+ ## listConfigurations
93
+
94
+ > Array&lt;MongoCampConfiguration&gt; listConfigurations()
95
+
96
+ List Configurations
97
+
98
+ List all Configurations or filtered
99
+
100
+ ### Example
101
+
102
+ ```ts
103
+ import {
104
+ Configuration,
105
+ ApplicationApi,
106
+ } from '';
107
+ import type { ListConfigurationsRequest } from '';
108
+
109
+ async function example() {
110
+ console.log("🚀 Testing SDK...");
111
+ const config = new Configuration({
112
+ // To configure HTTP basic authorization: httpAuth1
113
+ username: "YOUR USERNAME",
114
+ password: "YOUR PASSWORD",
115
+ // Configure HTTP bearer authorization: httpAuth
116
+ accessToken: "YOUR BEARER TOKEN",
117
+ // To configure API key authorization: apiKeyAuth
118
+ apiKey: "YOUR API KEY",
119
+ });
120
+ const api = new ApplicationApi(config);
121
+
122
+ try {
123
+ const data = await api.listConfigurations();
124
+ console.log(data);
125
+ } catch (error) {
126
+ console.error(error);
127
+ }
128
+ }
129
+
130
+ // Run the test
131
+ example().catch(console.error);
132
+ ```
133
+
134
+ ### Parameters
135
+
136
+ This endpoint does not need any parameter.
137
+
138
+ ### Return type
139
+
140
+ [**Array&lt;MongoCampConfiguration&gt;**](MongoCampConfiguration.md)
141
+
142
+ ### Authorization
143
+
144
+ [httpAuth1](../README.md#httpAuth1), [httpAuth](../README.md#httpAuth), [apiKeyAuth](../README.md#apiKeyAuth)
145
+
146
+ ### HTTP request headers
147
+
148
+ - **Content-Type**: Not defined
149
+ - **Accept**: `application/json`
150
+
151
+
152
+ ### HTTP response details
153
+ | Status code | Description | Response headers |
154
+ |-------------|-------------|------------------|
155
+ | **200** | | - |
156
+ | **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> |
157
+
158
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
159
+
160
+
161
+ ## settings
162
+
163
+ > SettingsResponse settings()
164
+
165
+ System Settings
166
+
167
+ Returns the Settings of the running MongoCamp Application.
168
+
169
+ ### Example
170
+
171
+ ```ts
172
+ import {
173
+ Configuration,
174
+ ApplicationApi,
175
+ } from '';
176
+ import type { SettingsRequest } from '';
177
+
178
+ async function example() {
179
+ console.log("🚀 Testing SDK...");
180
+ const config = new Configuration({
181
+ // To configure HTTP basic authorization: httpAuth1
182
+ username: "YOUR USERNAME",
183
+ password: "YOUR PASSWORD",
184
+ // Configure HTTP bearer authorization: httpAuth
185
+ accessToken: "YOUR BEARER TOKEN",
186
+ // To configure API key authorization: apiKeyAuth
187
+ apiKey: "YOUR API KEY",
188
+ });
189
+ const api = new ApplicationApi(config);
190
+
191
+ try {
192
+ const data = await api.settings();
193
+ console.log(data);
194
+ } catch (error) {
195
+ console.error(error);
196
+ }
197
+ }
198
+
199
+ // Run the test
200
+ example().catch(console.error);
201
+ ```
202
+
203
+ ### Parameters
204
+
205
+ This endpoint does not need any parameter.
206
+
207
+ ### Return type
208
+
209
+ [**SettingsResponse**](SettingsResponse.md)
210
+
211
+ ### Authorization
212
+
213
+ [httpAuth1](../README.md#httpAuth1), [httpAuth](../README.md#httpAuth), [apiKeyAuth](../README.md#apiKeyAuth)
214
+
215
+ ### HTTP request headers
216
+
217
+ - **Content-Type**: Not defined
218
+ - **Accept**: `application/json`
219
+
220
+
221
+ ### HTTP response details
222
+ | Status code | Description | Response headers |
223
+ |-------------|-------------|------------------|
224
+ | **200** | | - |
225
+ | **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> |
226
+
227
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
228
+
229
+
230
+ ## shutdown
231
+
232
+ > JsonValueBoolean shutdown(force)
233
+
234
+ Shutdown MongoCamp
235
+
236
+ Shutdown the running MongoCamp Application. CLI Mode will automatically restart the Application.
237
+
238
+ ### Example
239
+
240
+ ```ts
241
+ import {
242
+ Configuration,
243
+ ApplicationApi,
244
+ } from '';
245
+ import type { ShutdownRequest } from '';
246
+
247
+ async function example() {
248
+ console.log("🚀 Testing SDK...");
249
+ const config = new Configuration({
250
+ // To configure HTTP basic authorization: httpAuth1
251
+ username: "YOUR USERNAME",
252
+ password: "YOUR PASSWORD",
253
+ // Configure HTTP bearer authorization: httpAuth
254
+ accessToken: "YOUR BEARER TOKEN",
255
+ // To configure API key authorization: apiKeyAuth
256
+ apiKey: "YOUR API KEY",
257
+ });
258
+ const api = new ApplicationApi(config);
259
+
260
+ const body = {
261
+ // boolean | Shutdown Server and don`t send reboot event. (optional)
262
+ force: true,
263
+ } satisfies ShutdownRequest;
264
+
265
+ try {
266
+ const data = await api.shutdown(body);
267
+ console.log(data);
268
+ } catch (error) {
269
+ console.error(error);
270
+ }
271
+ }
272
+
273
+ // Run the test
274
+ example().catch(console.error);
275
+ ```
276
+
277
+ ### Parameters
278
+
279
+
280
+ | Name | Type | Description | Notes |
281
+ |------------- | ------------- | ------------- | -------------|
282
+ | **force** | `boolean` | Shutdown Server and don&#x60;t send reboot event. | [Optional] [Defaults to `false`] |
283
+
284
+ ### Return type
285
+
286
+ [**JsonValueBoolean**](JsonValueBoolean.md)
287
+
288
+ ### Authorization
289
+
290
+ [httpAuth1](../README.md#httpAuth1), [httpAuth](../README.md#httpAuth), [apiKeyAuth](../README.md#apiKeyAuth)
291
+
292
+ ### HTTP request headers
293
+
294
+ - **Content-Type**: Not defined
295
+ - **Accept**: `application/json`, `text/plain`
296
+
297
+
298
+ ### HTTP response details
299
+ | Status code | Description | Response headers |
300
+ |-------------|-------------|------------------|
301
+ | **200** | | - |
302
+ | **400** | Invalid value for: query parameter force | - |
303
+ | **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> |
304
+
305
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
306
+
307
+
308
+ ## updateConfiguration
309
+
310
+ > JsonValueBoolean updateConfiguration(configurationKey, jsonValueAny)
311
+
312
+ Update Configuration
313
+
314
+ Update Configuration with the value
315
+
316
+ ### Example
317
+
318
+ ```ts
319
+ import {
320
+ Configuration,
321
+ ApplicationApi,
322
+ } from '';
323
+ import type { UpdateConfigurationRequest } from '';
324
+
325
+ async function example() {
326
+ console.log("🚀 Testing SDK...");
327
+ const config = new Configuration({
328
+ // To configure HTTP basic authorization: httpAuth1
329
+ username: "YOUR USERNAME",
330
+ password: "YOUR PASSWORD",
331
+ // Configure HTTP bearer authorization: httpAuth
332
+ accessToken: "YOUR BEARER TOKEN",
333
+ // To configure API key authorization: apiKeyAuth
334
+ apiKey: "YOUR API KEY",
335
+ });
336
+ const api = new ApplicationApi(config);
337
+
338
+ const body = {
339
+ // string | configurationKey to edit
340
+ configurationKey: configurationKey_example,
341
+ // JsonValueAny
342
+ jsonValueAny: ...,
343
+ } satisfies UpdateConfigurationRequest;
344
+
345
+ try {
346
+ const data = await api.updateConfiguration(body);
347
+ console.log(data);
348
+ } catch (error) {
349
+ console.error(error);
350
+ }
351
+ }
352
+
353
+ // Run the test
354
+ example().catch(console.error);
355
+ ```
356
+
357
+ ### Parameters
358
+
359
+
360
+ | Name | Type | Description | Notes |
361
+ |------------- | ------------- | ------------- | -------------|
362
+ | **configurationKey** | `string` | configurationKey to edit | [Defaults to `undefined`] |
363
+ | **jsonValueAny** | [JsonValueAny](JsonValueAny.md) | | |
364
+
365
+ ### Return type
366
+
367
+ [**JsonValueBoolean**](JsonValueBoolean.md)
368
+
369
+ ### Authorization
370
+
371
+ [httpAuth1](../README.md#httpAuth1), [httpAuth](../README.md#httpAuth), [apiKeyAuth](../README.md#apiKeyAuth)
372
+
373
+ ### HTTP request headers
374
+
375
+ - **Content-Type**: `application/json`
376
+ - **Accept**: `application/json`, `text/plain`
377
+
378
+
379
+ ### HTTP response details
380
+ | Status code | Description | Response headers |
381
+ |-------------|-------------|------------------|
382
+ | **200** | | - |
383
+ | **400** | Invalid value for: body | - |
384
+ | **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> |
385
+
386
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
387
+