@sfxcode/nuxt-mongocamp-server 1.2.8 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/dist/module.d.mts +1 -0
  2. package/dist/module.json +3 -3
  3. package/dist/module.mjs +4 -3
  4. package/dist/runtime/api/.openapi-generator/FILES +50 -0
  5. package/dist/runtime/api/.openapi-generator/VERSION +1 -1
  6. package/dist/runtime/api/apis/AdminApi.js +32 -12
  7. package/dist/runtime/api/apis/ApplicationApi.js +12 -5
  8. package/dist/runtime/api/apis/AuthApi.js +16 -8
  9. package/dist/runtime/api/apis/BucketApi.js +11 -4
  10. package/dist/runtime/api/apis/CollectionApi.js +30 -10
  11. package/dist/runtime/api/apis/DatabaseApi.js +13 -5
  12. package/dist/runtime/api/apis/DocumentApi.js +34 -10
  13. package/dist/runtime/api/apis/FileApi.js +25 -7
  14. package/dist/runtime/api/apis/IndexApi.js +31 -8
  15. package/dist/runtime/api/apis/InformationApi.js +2 -1
  16. package/dist/runtime/api/apis/JobsApi.js +18 -6
  17. package/dist/runtime/api/docs/AdminApi.md +972 -0
  18. package/dist/runtime/api/docs/ApplicationApi.md +387 -0
  19. package/dist/runtime/api/docs/AuthApi.md +577 -0
  20. package/dist/runtime/api/docs/BucketApi.md +312 -0
  21. package/dist/runtime/api/docs/BucketInformation.md +40 -0
  22. package/dist/runtime/api/docs/CollectionApi.md +822 -0
  23. package/dist/runtime/api/docs/CollectionStatus.md +58 -0
  24. package/dist/runtime/api/docs/DatabaseApi.md +382 -0
  25. package/dist/runtime/api/docs/DatabaseInfo.md +42 -0
  26. package/dist/runtime/api/docs/DeleteResponse.md +36 -0
  27. package/dist/runtime/api/docs/DocumentApi.md +850 -0
  28. package/dist/runtime/api/docs/ErrorDescription.md +38 -0
  29. package/dist/runtime/api/docs/FileApi.md +606 -0
  30. package/dist/runtime/api/docs/FileInformation.md +44 -0
  31. package/dist/runtime/api/docs/Grant.md +42 -0
  32. package/dist/runtime/api/docs/IndexApi.md +682 -0
  33. package/dist/runtime/api/docs/IndexCreateRequest.md +36 -0
  34. package/dist/runtime/api/docs/IndexCreateResponse.md +34 -0
  35. package/dist/runtime/api/docs/IndexDropResponse.md +34 -0
  36. package/dist/runtime/api/docs/IndexOptionsRequest.md +48 -0
  37. package/dist/runtime/api/docs/InformationApi.md +69 -0
  38. package/dist/runtime/api/docs/InsertResponse.md +36 -0
  39. package/dist/runtime/api/docs/JobConfig.md +44 -0
  40. package/dist/runtime/api/docs/JobInformation.md +50 -0
  41. package/dist/runtime/api/docs/JobsApi.md +474 -0
  42. package/dist/runtime/api/docs/JsonSchema.md +38 -0
  43. package/dist/runtime/api/docs/JsonSchemaDefinition.md +42 -0
  44. package/dist/runtime/api/docs/JsonValueAny.md +34 -0
  45. package/dist/runtime/api/docs/JsonValueBoolean.md +34 -0
  46. package/dist/runtime/api/docs/JsonValueString.md +34 -0
  47. package/dist/runtime/api/docs/Login.md +36 -0
  48. package/dist/runtime/api/docs/LoginResult.md +38 -0
  49. package/dist/runtime/api/docs/MongoAggregateRequest.md +36 -0
  50. package/dist/runtime/api/docs/MongoCampConfiguration.md +42 -0
  51. package/dist/runtime/api/docs/MongoFindRequest.md +38 -0
  52. package/dist/runtime/api/docs/MongoIndex.md +56 -0
  53. package/dist/runtime/api/docs/PasswordUpdateRequest.md +34 -0
  54. package/dist/runtime/api/docs/PipelineStage.md +36 -0
  55. package/dist/runtime/api/docs/Role.md +38 -0
  56. package/dist/runtime/api/docs/SchemaAnalysis.md +40 -0
  57. package/dist/runtime/api/docs/SchemaAnalysisField.md +44 -0
  58. package/dist/runtime/api/docs/SchemaAnalysisFieldType.md +38 -0
  59. package/dist/runtime/api/docs/SettingsResponse.md +40 -0
  60. package/dist/runtime/api/docs/UpdateFileInformationRequest.md +36 -0
  61. package/dist/runtime/api/docs/UpdateRequest.md +36 -0
  62. package/dist/runtime/api/docs/UpdateResponse.md +40 -0
  63. package/dist/runtime/api/docs/UpdateRoleRequest.md +36 -0
  64. package/dist/runtime/api/docs/UserInformation.md +40 -0
  65. package/dist/runtime/api/docs/UserProfile.md +42 -0
  66. package/dist/runtime/api/docs/Version.md +38 -0
  67. package/dist/runtime/api/models/JobInformation.js +2 -2
  68. package/dist/runtime/composables/mongocampAuth.d.ts +3 -3
  69. package/dist/types.d.mts +2 -0
  70. package/package.json +16 -16
@@ -0,0 +1,312 @@
1
+ # BucketApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**clearBucket**](BucketApi.md#clearbucket) | **DELETE** /mongodb/buckets/{bucketName}/clear | Clear Bucket |
8
+ | [**deleteBucket**](BucketApi.md#deletebucket) | **DELETE** /mongodb/buckets/{bucketName} | Delete Bucket |
9
+ | [**getBucket**](BucketApi.md#getbucket) | **GET** /mongodb/buckets/{bucketName} | Bucket Information |
10
+ | [**listBuckets**](BucketApi.md#listbuckets) | **GET** /mongodb/buckets | List of Buckets |
11
+
12
+
13
+
14
+ ## clearBucket
15
+
16
+ > JsonValueBoolean clearBucket(bucketName)
17
+
18
+ Clear Bucket
19
+
20
+ Delete all Files in Bucket
21
+
22
+ ### Example
23
+
24
+ ```ts
25
+ import {
26
+ Configuration,
27
+ BucketApi,
28
+ } from '';
29
+ import type { ClearBucketRequest } from '';
30
+
31
+ async function example() {
32
+ console.log("🚀 Testing SDK...");
33
+ const config = new Configuration({
34
+ // To configure HTTP basic authorization: httpAuth1
35
+ username: "YOUR USERNAME",
36
+ password: "YOUR PASSWORD",
37
+ // Configure HTTP bearer authorization: httpAuth
38
+ accessToken: "YOUR BEARER TOKEN",
39
+ // To configure API key authorization: apiKeyAuth
40
+ apiKey: "YOUR API KEY",
41
+ });
42
+ const api = new BucketApi(config);
43
+
44
+ const body = {
45
+ // string | The name of your MongoDb Collection
46
+ bucketName: bucketName_example,
47
+ } satisfies ClearBucketRequest;
48
+
49
+ try {
50
+ const data = await api.clearBucket(body);
51
+ console.log(data);
52
+ } catch (error) {
53
+ console.error(error);
54
+ }
55
+ }
56
+
57
+ // Run the test
58
+ example().catch(console.error);
59
+ ```
60
+
61
+ ### Parameters
62
+
63
+
64
+ | Name | Type | Description | Notes |
65
+ |------------- | ------------- | ------------- | -------------|
66
+ | **bucketName** | `string` | The name of your MongoDb Collection | [Defaults to `undefined`] |
67
+
68
+ ### Return type
69
+
70
+ [**JsonValueBoolean**](JsonValueBoolean.md)
71
+
72
+ ### Authorization
73
+
74
+ [httpAuth1](../README.md#httpAuth1), [httpAuth](../README.md#httpAuth), [apiKeyAuth](../README.md#apiKeyAuth)
75
+
76
+ ### HTTP request headers
77
+
78
+ - **Content-Type**: Not defined
79
+ - **Accept**: `application/json`
80
+
81
+
82
+ ### HTTP response details
83
+ | Status code | Description | Response headers |
84
+ |-------------|-------------|------------------|
85
+ | **200** | | - |
86
+ | **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> |
87
+
88
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
89
+
90
+
91
+ ## deleteBucket
92
+
93
+ > JsonValueBoolean deleteBucket(bucketName)
94
+
95
+ Delete Bucket
96
+
97
+ Delete a given Bucket
98
+
99
+ ### Example
100
+
101
+ ```ts
102
+ import {
103
+ Configuration,
104
+ BucketApi,
105
+ } from '';
106
+ import type { DeleteBucketRequest } from '';
107
+
108
+ async function example() {
109
+ console.log("🚀 Testing SDK...");
110
+ const config = new Configuration({
111
+ // To configure HTTP basic authorization: httpAuth1
112
+ username: "YOUR USERNAME",
113
+ password: "YOUR PASSWORD",
114
+ // Configure HTTP bearer authorization: httpAuth
115
+ accessToken: "YOUR BEARER TOKEN",
116
+ // To configure API key authorization: apiKeyAuth
117
+ apiKey: "YOUR API KEY",
118
+ });
119
+ const api = new BucketApi(config);
120
+
121
+ const body = {
122
+ // string | The name of your MongoDb Collection
123
+ bucketName: bucketName_example,
124
+ } satisfies DeleteBucketRequest;
125
+
126
+ try {
127
+ const data = await api.deleteBucket(body);
128
+ console.log(data);
129
+ } catch (error) {
130
+ console.error(error);
131
+ }
132
+ }
133
+
134
+ // Run the test
135
+ example().catch(console.error);
136
+ ```
137
+
138
+ ### Parameters
139
+
140
+
141
+ | Name | Type | Description | Notes |
142
+ |------------- | ------------- | ------------- | -------------|
143
+ | **bucketName** | `string` | The name of your MongoDb Collection | [Defaults to `undefined`] |
144
+
145
+ ### Return type
146
+
147
+ [**JsonValueBoolean**](JsonValueBoolean.md)
148
+
149
+ ### Authorization
150
+
151
+ [httpAuth1](../README.md#httpAuth1), [httpAuth](../README.md#httpAuth), [apiKeyAuth](../README.md#apiKeyAuth)
152
+
153
+ ### HTTP request headers
154
+
155
+ - **Content-Type**: Not defined
156
+ - **Accept**: `application/json`
157
+
158
+
159
+ ### HTTP response details
160
+ | Status code | Description | Response headers |
161
+ |-------------|-------------|------------------|
162
+ | **200** | | - |
163
+ | **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> |
164
+
165
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
166
+
167
+
168
+ ## getBucket
169
+
170
+ > BucketInformation getBucket(bucketName)
171
+
172
+ Bucket Information
173
+
174
+ All Information about a single Bucket
175
+
176
+ ### Example
177
+
178
+ ```ts
179
+ import {
180
+ Configuration,
181
+ BucketApi,
182
+ } from '';
183
+ import type { GetBucketRequest } from '';
184
+
185
+ async function example() {
186
+ console.log("🚀 Testing SDK...");
187
+ const config = new Configuration({
188
+ // To configure HTTP basic authorization: httpAuth1
189
+ username: "YOUR USERNAME",
190
+ password: "YOUR PASSWORD",
191
+ // Configure HTTP bearer authorization: httpAuth
192
+ accessToken: "YOUR BEARER TOKEN",
193
+ // To configure API key authorization: apiKeyAuth
194
+ apiKey: "YOUR API KEY",
195
+ });
196
+ const api = new BucketApi(config);
197
+
198
+ const body = {
199
+ // string | The name of your MongoDb Collection
200
+ bucketName: bucketName_example,
201
+ } satisfies GetBucketRequest;
202
+
203
+ try {
204
+ const data = await api.getBucket(body);
205
+ console.log(data);
206
+ } catch (error) {
207
+ console.error(error);
208
+ }
209
+ }
210
+
211
+ // Run the test
212
+ example().catch(console.error);
213
+ ```
214
+
215
+ ### Parameters
216
+
217
+
218
+ | Name | Type | Description | Notes |
219
+ |------------- | ------------- | ------------- | -------------|
220
+ | **bucketName** | `string` | The name of your MongoDb Collection | [Defaults to `undefined`] |
221
+
222
+ ### Return type
223
+
224
+ [**BucketInformation**](BucketInformation.md)
225
+
226
+ ### Authorization
227
+
228
+ [httpAuth1](../README.md#httpAuth1), [httpAuth](../README.md#httpAuth), [apiKeyAuth](../README.md#apiKeyAuth)
229
+
230
+ ### HTTP request headers
231
+
232
+ - **Content-Type**: Not defined
233
+ - **Accept**: `application/json`
234
+
235
+
236
+ ### HTTP response details
237
+ | Status code | Description | Response headers |
238
+ |-------------|-------------|------------------|
239
+ | **200** | | - |
240
+ | **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> |
241
+
242
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
243
+
244
+
245
+ ## listBuckets
246
+
247
+ > Array&lt;string&gt; listBuckets()
248
+
249
+ List of Buckets
250
+
251
+ List of all Buckets of the default database
252
+
253
+ ### Example
254
+
255
+ ```ts
256
+ import {
257
+ Configuration,
258
+ BucketApi,
259
+ } from '';
260
+ import type { ListBucketsRequest } from '';
261
+
262
+ async function example() {
263
+ console.log("🚀 Testing SDK...");
264
+ const config = new Configuration({
265
+ // To configure HTTP basic authorization: httpAuth1
266
+ username: "YOUR USERNAME",
267
+ password: "YOUR PASSWORD",
268
+ // Configure HTTP bearer authorization: httpAuth
269
+ accessToken: "YOUR BEARER TOKEN",
270
+ // To configure API key authorization: apiKeyAuth
271
+ apiKey: "YOUR API KEY",
272
+ });
273
+ const api = new BucketApi(config);
274
+
275
+ try {
276
+ const data = await api.listBuckets();
277
+ console.log(data);
278
+ } catch (error) {
279
+ console.error(error);
280
+ }
281
+ }
282
+
283
+ // Run the test
284
+ example().catch(console.error);
285
+ ```
286
+
287
+ ### Parameters
288
+
289
+ This endpoint does not need any parameter.
290
+
291
+ ### Return type
292
+
293
+ **Array<string>**
294
+
295
+ ### Authorization
296
+
297
+ [httpAuth1](../README.md#httpAuth1), [httpAuth](../README.md#httpAuth), [apiKeyAuth](../README.md#apiKeyAuth)
298
+
299
+ ### HTTP request headers
300
+
301
+ - **Content-Type**: Not defined
302
+ - **Accept**: `application/json`
303
+
304
+
305
+ ### HTTP response details
306
+ | Status code | Description | Response headers |
307
+ |-------------|-------------|------------------|
308
+ | **200** | | - |
309
+ | **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> |
310
+
311
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
312
+
@@ -0,0 +1,40 @@
1
+
2
+ # BucketInformation
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `name` | string
10
+ `files` | number
11
+ `size` | number
12
+ `avgObjectSize` | number
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { BucketInformation } from ''
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "name": null,
22
+ "files": null,
23
+ "size": null,
24
+ "avgObjectSize": null,
25
+ } satisfies BucketInformation
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 BucketInformation
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
+