@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
|
@@ -1,13 +1,25 @@
|
|
|
1
1
|
import * as runtime from "../runtime.js";
|
|
2
2
|
import {
|
|
3
|
-
CollectionPermissionFromJSON
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
CollectionPermissionFromJSON
|
|
4
|
+
} from "../models/CollectionPermission.js";
|
|
5
|
+
import {
|
|
6
|
+
JsonValueBooleanFromJSON
|
|
7
|
+
} from "../models/JsonValueBoolean.js";
|
|
8
|
+
import {
|
|
9
|
+
JsonValueStringFromJSON
|
|
10
|
+
} from "../models/JsonValueString.js";
|
|
11
|
+
import {
|
|
12
|
+
LoginToJSON
|
|
13
|
+
} from "../models/Login.js";
|
|
14
|
+
import {
|
|
15
|
+
LoginResultFromJSON
|
|
16
|
+
} from "../models/LoginResult.js";
|
|
17
|
+
import {
|
|
18
|
+
PasswordUpdateRequestToJSON
|
|
19
|
+
} from "../models/PasswordUpdateRequest.js";
|
|
20
|
+
import {
|
|
9
21
|
UserProfileFromJSON
|
|
10
|
-
} from "../models/
|
|
22
|
+
} from "../models/UserProfile.js";
|
|
11
23
|
export class AuthApi extends runtime.BaseAPI {
|
|
12
24
|
/**
|
|
13
25
|
* Creates request options for generateNewApiKey without sending the request
|
|
@@ -16,7 +28,7 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
16
28
|
const queryParameters = {};
|
|
17
29
|
const headerParameters = {};
|
|
18
30
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
19
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
31
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
20
32
|
}
|
|
21
33
|
if (this.configuration && this.configuration.accessToken) {
|
|
22
34
|
const token = this.configuration.accessToken;
|
|
@@ -60,7 +72,7 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
60
72
|
const queryParameters = {};
|
|
61
73
|
const headerParameters = {};
|
|
62
74
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
63
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
75
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
64
76
|
}
|
|
65
77
|
if (this.configuration && this.configuration.accessToken) {
|
|
66
78
|
const token = this.configuration.accessToken;
|
|
@@ -143,7 +155,7 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
143
155
|
const queryParameters = {};
|
|
144
156
|
const headerParameters = {};
|
|
145
157
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
146
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
158
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
147
159
|
}
|
|
148
160
|
if (this.configuration && this.configuration.accessToken) {
|
|
149
161
|
const token = this.configuration.accessToken;
|
|
@@ -187,7 +199,7 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
187
199
|
const queryParameters = {};
|
|
188
200
|
const headerParameters = {};
|
|
189
201
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
190
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
202
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
191
203
|
}
|
|
192
204
|
if (this.configuration && this.configuration.accessToken) {
|
|
193
205
|
const token = this.configuration.accessToken;
|
|
@@ -231,7 +243,7 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
231
243
|
const queryParameters = {};
|
|
232
244
|
const headerParameters = {};
|
|
233
245
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
234
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
246
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
235
247
|
}
|
|
236
248
|
if (this.configuration && this.configuration.accessToken) {
|
|
237
249
|
const token = this.configuration.accessToken;
|
|
@@ -282,7 +294,7 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
282
294
|
const headerParameters = {};
|
|
283
295
|
headerParameters["Content-Type"] = "application/json";
|
|
284
296
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
285
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
297
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
286
298
|
}
|
|
287
299
|
if (this.configuration && this.configuration.accessToken) {
|
|
288
300
|
const token = this.configuration.accessToken;
|
|
@@ -330,7 +342,7 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
330
342
|
}
|
|
331
343
|
const headerParameters = {};
|
|
332
344
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
333
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
345
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
334
346
|
}
|
|
335
347
|
if (this.configuration && this.configuration.accessToken) {
|
|
336
348
|
const token = this.configuration.accessToken;
|
|
@@ -374,7 +386,7 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
374
386
|
const queryParameters = {};
|
|
375
387
|
const headerParameters = {};
|
|
376
388
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
377
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
389
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
378
390
|
}
|
|
379
391
|
if (this.configuration && this.configuration.accessToken) {
|
|
380
392
|
const token = this.configuration.accessToken;
|
|
@@ -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).
|
|
@@ -10,14 +10,24 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime.js';
|
|
13
|
-
import type
|
|
13
|
+
import { type BucketInformation } from '../models/BucketInformation.js';
|
|
14
|
+
import { type JsonValueBoolean } from '../models/JsonValueBoolean.js';
|
|
14
15
|
export interface ClearBucketRequest {
|
|
16
|
+
/**
|
|
17
|
+
* The name of your MongoDb Collection
|
|
18
|
+
*/
|
|
15
19
|
bucketName: string;
|
|
16
20
|
}
|
|
17
21
|
export interface DeleteBucketRequest {
|
|
22
|
+
/**
|
|
23
|
+
* The name of your MongoDb Collection
|
|
24
|
+
*/
|
|
18
25
|
bucketName: string;
|
|
19
26
|
}
|
|
20
27
|
export interface GetBucketRequest {
|
|
28
|
+
/**
|
|
29
|
+
* The name of your MongoDb Collection
|
|
30
|
+
*/
|
|
21
31
|
bucketName: string;
|
|
22
32
|
}
|
|
23
33
|
/**
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as runtime from "../runtime.js";
|
|
2
2
|
import {
|
|
3
|
-
BucketInformationFromJSON
|
|
3
|
+
BucketInformationFromJSON
|
|
4
|
+
} from "../models/BucketInformation.js";
|
|
5
|
+
import {
|
|
4
6
|
JsonValueBooleanFromJSON
|
|
5
|
-
} from "../models/
|
|
7
|
+
} from "../models/JsonValueBoolean.js";
|
|
6
8
|
export class BucketApi extends runtime.BaseAPI {
|
|
7
9
|
/**
|
|
8
10
|
* Creates request options for clearBucket without sending the request
|
|
@@ -17,7 +19,7 @@ export class BucketApi extends runtime.BaseAPI {
|
|
|
17
19
|
const queryParameters = {};
|
|
18
20
|
const headerParameters = {};
|
|
19
21
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
20
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
22
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
21
23
|
}
|
|
22
24
|
if (this.configuration && this.configuration.accessToken) {
|
|
23
25
|
const token = this.configuration.accessToken;
|
|
@@ -30,7 +32,7 @@ export class BucketApi extends runtime.BaseAPI {
|
|
|
30
32
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
31
33
|
}
|
|
32
34
|
let urlPath = `/mongodb/buckets/{bucketName}/clear`;
|
|
33
|
-
urlPath = urlPath.replace(
|
|
35
|
+
urlPath = urlPath.replace("{bucketName}", encodeURIComponent(String(requestParameters["bucketName"])));
|
|
34
36
|
return {
|
|
35
37
|
path: urlPath,
|
|
36
38
|
method: "DELETE",
|
|
@@ -68,7 +70,7 @@ export class BucketApi extends runtime.BaseAPI {
|
|
|
68
70
|
const queryParameters = {};
|
|
69
71
|
const headerParameters = {};
|
|
70
72
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
71
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
73
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
72
74
|
}
|
|
73
75
|
if (this.configuration && this.configuration.accessToken) {
|
|
74
76
|
const token = this.configuration.accessToken;
|
|
@@ -81,7 +83,7 @@ export class BucketApi extends runtime.BaseAPI {
|
|
|
81
83
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
82
84
|
}
|
|
83
85
|
let urlPath = `/mongodb/buckets/{bucketName}`;
|
|
84
|
-
urlPath = urlPath.replace(
|
|
86
|
+
urlPath = urlPath.replace("{bucketName}", encodeURIComponent(String(requestParameters["bucketName"])));
|
|
85
87
|
return {
|
|
86
88
|
path: urlPath,
|
|
87
89
|
method: "DELETE",
|
|
@@ -119,7 +121,7 @@ export class BucketApi extends runtime.BaseAPI {
|
|
|
119
121
|
const queryParameters = {};
|
|
120
122
|
const headerParameters = {};
|
|
121
123
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
122
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
124
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
123
125
|
}
|
|
124
126
|
if (this.configuration && this.configuration.accessToken) {
|
|
125
127
|
const token = this.configuration.accessToken;
|
|
@@ -132,7 +134,7 @@ export class BucketApi extends runtime.BaseAPI {
|
|
|
132
134
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
133
135
|
}
|
|
134
136
|
let urlPath = `/mongodb/buckets/{bucketName}`;
|
|
135
|
-
urlPath = urlPath.replace(
|
|
137
|
+
urlPath = urlPath.replace("{bucketName}", encodeURIComponent(String(requestParameters["bucketName"])));
|
|
136
138
|
return {
|
|
137
139
|
path: urlPath,
|
|
138
140
|
method: "GET",
|
|
@@ -164,7 +166,7 @@ export class BucketApi extends runtime.BaseAPI {
|
|
|
164
166
|
const queryParameters = {};
|
|
165
167
|
const headerParameters = {};
|
|
166
168
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
167
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
169
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
168
170
|
}
|
|
169
171
|
if (this.configuration && this.configuration.accessToken) {
|
|
170
172
|
const token = this.configuration.accessToken;
|
|
@@ -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).
|
|
@@ -10,62 +10,197 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime.js';
|
|
13
|
-
import
|
|
13
|
+
import { type CollectionOptions } from '../models/CollectionOptions.js';
|
|
14
|
+
import { type CollectionStatus } from '../models/CollectionStatus.js';
|
|
15
|
+
import { type CollectionSummary } from '../models/CollectionSummary.js';
|
|
16
|
+
import { type CopyRequest } from '../models/CopyRequest.js';
|
|
17
|
+
import { type CopyResponse } from '../models/CopyResponse.js';
|
|
18
|
+
import { type CreateCollectionResponse } from '../models/CreateCollectionResponse.js';
|
|
19
|
+
import { type FieldInfo } from '../models/FieldInfo.js';
|
|
20
|
+
import { type JsonSchema } from '../models/JsonSchema.js';
|
|
21
|
+
import { type JsonValueBoolean } from '../models/JsonValueBoolean.js';
|
|
22
|
+
import { type MongoAggregateRequest } from '../models/MongoAggregateRequest.js';
|
|
23
|
+
import { type RenameRequest } from '../models/RenameRequest.js';
|
|
24
|
+
import { type RenameResponse } from '../models/RenameResponse.js';
|
|
25
|
+
import { type SchemaAnalysis } from '../models/SchemaAnalysis.js';
|
|
14
26
|
export interface AggregateRequest {
|
|
27
|
+
/**
|
|
28
|
+
* The name of your MongoDb Collection
|
|
29
|
+
*/
|
|
15
30
|
collectionName: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
16
34
|
mongoAggregateRequest: MongoAggregateRequest;
|
|
35
|
+
/**
|
|
36
|
+
* Count elements per page
|
|
37
|
+
*/
|
|
17
38
|
rowsPerPage?: number;
|
|
39
|
+
/**
|
|
40
|
+
* Requested page of the ResultSets
|
|
41
|
+
*/
|
|
18
42
|
page?: number;
|
|
43
|
+
/**
|
|
44
|
+
* Filter Query like on the list of documents, applied as the first stage of the pipeline. Not possible for a pipeline that starts with $geoNear, $search or $vectorSearch.
|
|
45
|
+
*/
|
|
19
46
|
filter?: string;
|
|
47
|
+
/**
|
|
48
|
+
* relaxed or canonical: the documents with the types of their values as MongoDB Extended JSON ({"$oid": ...}, {"$date": ...}, {"$numberDecimal": ...}, canonical also {"$numberInt": ...}, {"$numberLong": ...} and {"$numberDouble": ...}). Without the parameter the documents are returned as before.
|
|
49
|
+
*/
|
|
20
50
|
extendedJson?: string;
|
|
21
51
|
}
|
|
22
52
|
export interface ClearCollectionRequest {
|
|
53
|
+
/**
|
|
54
|
+
* The name of your MongoDb Collection
|
|
55
|
+
*/
|
|
23
56
|
collectionName: string;
|
|
24
57
|
}
|
|
25
58
|
export interface CopyCollectionRequest {
|
|
59
|
+
/**
|
|
60
|
+
* The name of your MongoDb Collection
|
|
61
|
+
*/
|
|
26
62
|
collectionName: string;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
*/
|
|
27
66
|
copyRequest: CopyRequest;
|
|
28
67
|
}
|
|
68
|
+
export interface CreateCollectionRequest {
|
|
69
|
+
/**
|
|
70
|
+
* The name of your MongoDb Collection
|
|
71
|
+
*/
|
|
72
|
+
collectionName: string;
|
|
73
|
+
/**
|
|
74
|
+
* The options of the new Collection, all of them are optional
|
|
75
|
+
*/
|
|
76
|
+
collectionOptions?: CollectionOptions;
|
|
77
|
+
}
|
|
29
78
|
export interface DeleteCollectionRequest {
|
|
79
|
+
/**
|
|
80
|
+
* The name of your MongoDb Collection
|
|
81
|
+
*/
|
|
30
82
|
collectionName: string;
|
|
31
83
|
}
|
|
32
84
|
export interface DistinctRequest {
|
|
85
|
+
/**
|
|
86
|
+
* The name of your MongoDb Collection
|
|
87
|
+
*/
|
|
33
88
|
collectionName: string;
|
|
89
|
+
/**
|
|
90
|
+
* The field for your distinct Request.
|
|
91
|
+
*/
|
|
34
92
|
field: string;
|
|
93
|
+
/**
|
|
94
|
+
* Count elements per page
|
|
95
|
+
*/
|
|
35
96
|
rowsPerPage?: number;
|
|
97
|
+
/**
|
|
98
|
+
* Requested page of the ResultSets
|
|
99
|
+
*/
|
|
36
100
|
page?: number;
|
|
37
101
|
}
|
|
38
102
|
export interface GetCollectionFieldsRequest {
|
|
103
|
+
/**
|
|
104
|
+
* The name of your MongoDb Collection
|
|
105
|
+
*/
|
|
39
106
|
collectionName: string;
|
|
107
|
+
/**
|
|
108
|
+
* Use sample size greater 0 (e.g. 1000) for better performance on big collections
|
|
109
|
+
*/
|
|
40
110
|
sampleSize?: number;
|
|
41
111
|
}
|
|
42
112
|
export interface GetCollectionInformationRequest {
|
|
113
|
+
/**
|
|
114
|
+
* The name of your MongoDb Collection
|
|
115
|
+
*/
|
|
43
116
|
collectionName: string;
|
|
117
|
+
/**
|
|
118
|
+
* Include all details for the Collection
|
|
119
|
+
*/
|
|
44
120
|
includeDetails?: boolean;
|
|
45
121
|
}
|
|
122
|
+
export interface GetCollectionOptionsRequest {
|
|
123
|
+
/**
|
|
124
|
+
* The name of your MongoDb Collection
|
|
125
|
+
*/
|
|
126
|
+
collectionName: string;
|
|
127
|
+
}
|
|
46
128
|
export interface GetFieldDetailsRequest {
|
|
129
|
+
/**
|
|
130
|
+
* The name of your MongoDb Collection
|
|
131
|
+
*/
|
|
47
132
|
collectionName: string;
|
|
133
|
+
/**
|
|
134
|
+
* Number of documents that are analysed, 1000 by default. A greater sample is more exact and slower on big collections.
|
|
135
|
+
*/
|
|
48
136
|
sampleSize?: number;
|
|
137
|
+
/**
|
|
138
|
+
* How deep should the objects extracted
|
|
139
|
+
*/
|
|
49
140
|
depth?: number;
|
|
50
141
|
}
|
|
51
142
|
export interface GetJsonSchemaRequest {
|
|
143
|
+
/**
|
|
144
|
+
* The name of your MongoDb Collection
|
|
145
|
+
*/
|
|
52
146
|
collectionName: string;
|
|
147
|
+
/**
|
|
148
|
+
* Use sample size greater 0 (e.g. 5000) for better performance on big collections
|
|
149
|
+
*/
|
|
53
150
|
sampleSize?: number;
|
|
151
|
+
/**
|
|
152
|
+
* How deep should the objects extracted
|
|
153
|
+
*/
|
|
54
154
|
deepth?: number;
|
|
55
155
|
}
|
|
56
156
|
export interface GetSchemaAnalysisRequest {
|
|
157
|
+
/**
|
|
158
|
+
* The name of your MongoDb Collection
|
|
159
|
+
*/
|
|
57
160
|
collectionName: string;
|
|
161
|
+
/**
|
|
162
|
+
* Use sample size greater 0 (e.g. 5000) for better performance on big collections
|
|
163
|
+
*/
|
|
58
164
|
sampleSize?: number;
|
|
165
|
+
/**
|
|
166
|
+
* How deep should the objects extracted
|
|
167
|
+
*/
|
|
59
168
|
deepth?: number;
|
|
60
169
|
}
|
|
61
170
|
export interface ListCollectionInformationRequest {
|
|
171
|
+
/**
|
|
172
|
+
* Only the Collections with these names, by default all Collections that the user may read. With `database` the names are the names inside that database (`locations`), the full name (`geodata:locations`) of that database is accepted too.
|
|
173
|
+
*/
|
|
62
174
|
name?: Array<string>;
|
|
175
|
+
/**
|
|
176
|
+
* The Collections of this database, by default the default database. The names in the answer are the full names (`geodata:locations`), as they are used in the paths of the other routes.
|
|
177
|
+
*/
|
|
178
|
+
database?: string;
|
|
63
179
|
}
|
|
64
180
|
export interface ListCollectionsByDatabaseRequest {
|
|
181
|
+
/**
|
|
182
|
+
* Name of your Database
|
|
183
|
+
*/
|
|
65
184
|
databaseName: string;
|
|
66
185
|
}
|
|
186
|
+
export interface ModifyCollectionOptionsRequest {
|
|
187
|
+
/**
|
|
188
|
+
* The name of your MongoDb Collection
|
|
189
|
+
*/
|
|
190
|
+
collectionName: string;
|
|
191
|
+
/**
|
|
192
|
+
*
|
|
193
|
+
*/
|
|
194
|
+
collectionOptions: CollectionOptions;
|
|
195
|
+
}
|
|
67
196
|
export interface RenameCollectionRequest {
|
|
197
|
+
/**
|
|
198
|
+
* The name of your MongoDb Collection
|
|
199
|
+
*/
|
|
68
200
|
collectionName: string;
|
|
201
|
+
/**
|
|
202
|
+
*
|
|
203
|
+
*/
|
|
69
204
|
renameRequest: RenameRequest;
|
|
70
205
|
}
|
|
71
206
|
/**
|
|
@@ -81,14 +216,14 @@ export declare class CollectionApi extends runtime.BaseAPI {
|
|
|
81
216
|
* Aggregate in Collection
|
|
82
217
|
*/
|
|
83
218
|
aggregateRaw(requestParameters: AggregateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<{
|
|
84
|
-
[key: string]: any;
|
|
219
|
+
[key: string]: any | null;
|
|
85
220
|
}>>>;
|
|
86
221
|
/**
|
|
87
222
|
* Aggregate in a given Collection. The value of a stage is any JSON value. Operators that run JavaScript on the database server or write to collections (`$function`, `$accumulator`, `$where`, `$out`, `$merge`, `$currentOp`, `$listSessions`, `$collStats`, `$indexStats` by default, configured with AGGREGATION_STAGES_DENIED) are refused with 403.
|
|
88
223
|
* Aggregate in Collection
|
|
89
224
|
*/
|
|
90
225
|
aggregate(requestParameters: AggregateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<{
|
|
91
|
-
[key: string]: any;
|
|
226
|
+
[key: string]: any | null;
|
|
92
227
|
}>>;
|
|
93
228
|
/**
|
|
94
229
|
* Creates request options for clearCollection without sending the request
|
|
@@ -118,6 +253,20 @@ export declare class CollectionApi extends runtime.BaseAPI {
|
|
|
118
253
|
* Copy Collection
|
|
119
254
|
*/
|
|
120
255
|
copyCollection(requestParameters: CopyCollectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CopyResponse>;
|
|
256
|
+
/**
|
|
257
|
+
* Creates request options for createCollection without sending the request
|
|
258
|
+
*/
|
|
259
|
+
createCollectionRequestOpts(requestParameters: CreateCollectionRequest): Promise<runtime.RequestOpts>;
|
|
260
|
+
/**
|
|
261
|
+
* Create a Collection with options: capped (`capped`, `sizeInBytes`, `maxDocuments`), a validator (`validator`, `validationLevel` off, moderate or strict, `validationAction` error or warn) and a collation. Without a body an empty Collection is created. The administrate grant for the name is needed; a name of another database is `database:name`. An existing Collection is a conflict (409), reserved names (system collections, the prefix of the server, the collections of a bucket) and options that do not fit are 400.
|
|
262
|
+
* Create Collection
|
|
263
|
+
*/
|
|
264
|
+
createCollectionRaw(requestParameters: CreateCollectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateCollectionResponse>>;
|
|
265
|
+
/**
|
|
266
|
+
* Create a Collection with options: capped (`capped`, `sizeInBytes`, `maxDocuments`), a validator (`validator`, `validationLevel` off, moderate or strict, `validationAction` error or warn) and a collation. Without a body an empty Collection is created. The administrate grant for the name is needed; a name of another database is `database:name`. An existing Collection is a conflict (409), reserved names (system collections, the prefix of the server, the collections of a bucket) and options that do not fit are 400.
|
|
267
|
+
* Create Collection
|
|
268
|
+
*/
|
|
269
|
+
createCollection(requestParameters: CreateCollectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateCollectionResponse>;
|
|
121
270
|
/**
|
|
122
271
|
* Creates request options for deleteCollection without sending the request
|
|
123
272
|
*/
|
|
@@ -174,6 +323,20 @@ export declare class CollectionApi extends runtime.BaseAPI {
|
|
|
174
323
|
* Collection Information
|
|
175
324
|
*/
|
|
176
325
|
getCollectionInformation(requestParameters: GetCollectionInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectionStatus>;
|
|
326
|
+
/**
|
|
327
|
+
* Creates request options for getCollectionOptions without sending the request
|
|
328
|
+
*/
|
|
329
|
+
getCollectionOptionsRequestOpts(requestParameters: GetCollectionOptionsRequest): Promise<runtime.RequestOpts>;
|
|
330
|
+
/**
|
|
331
|
+
* The options of a Collection: capped, the validator with its level and action, the collation. 404 for a Collection that does not exist.
|
|
332
|
+
* Collection Options
|
|
333
|
+
*/
|
|
334
|
+
getCollectionOptionsRaw(requestParameters: GetCollectionOptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectionOptions>>;
|
|
335
|
+
/**
|
|
336
|
+
* The options of a Collection: capped, the validator with its level and action, the collation. 404 for a Collection that does not exist.
|
|
337
|
+
* Collection Options
|
|
338
|
+
*/
|
|
339
|
+
getCollectionOptions(requestParameters: GetCollectionOptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectionOptions>;
|
|
177
340
|
/**
|
|
178
341
|
* Creates request options for getFieldDetails without sending the request
|
|
179
342
|
*/
|
|
@@ -221,12 +384,12 @@ export declare class CollectionApi extends runtime.BaseAPI {
|
|
|
221
384
|
*/
|
|
222
385
|
listCollectionInformationRequestOpts(requestParameters: ListCollectionInformationRequest): Promise<runtime.RequestOpts>;
|
|
223
386
|
/**
|
|
224
|
-
* The numbers of all Collections of the default database that the user may read in one request (count, size, storage size, average size of a document, number and size of the indices). A Collection without statistics, for example a view, is listed with available false.
|
|
387
|
+
* The numbers of all Collections of the default database (or of the database in `database`) that the user may read in one request (count, size, storage size, average size of a document, number and size of the indices). A Collection without statistics, for example a view, is listed with available false. A database that does not exist is a 404 for an administrator and an empty list for every other user: they cannot find out which databases exist.
|
|
225
388
|
* Information of all Collections
|
|
226
389
|
*/
|
|
227
390
|
listCollectionInformationRaw(requestParameters: ListCollectionInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<CollectionSummary>>>;
|
|
228
391
|
/**
|
|
229
|
-
* The numbers of all Collections of the default database that the user may read in one request (count, size, storage size, average size of a document, number and size of the indices). A Collection without statistics, for example a view, is listed with available false.
|
|
392
|
+
* The numbers of all Collections of the default database (or of the database in `database`) that the user may read in one request (count, size, storage size, average size of a document, number and size of the indices). A Collection without statistics, for example a view, is listed with available false. A database that does not exist is a 404 for an administrator and an empty list for every other user: they cannot find out which databases exist.
|
|
230
393
|
* Information of all Collections
|
|
231
394
|
*/
|
|
232
395
|
listCollectionInformation(requestParameters?: ListCollectionInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<CollectionSummary>>;
|
|
@@ -258,6 +421,20 @@ export declare class CollectionApi extends runtime.BaseAPI {
|
|
|
258
421
|
* List of Collections
|
|
259
422
|
*/
|
|
260
423
|
listCollectionsByDatabase(requestParameters: ListCollectionsByDatabaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<string>>;
|
|
424
|
+
/**
|
|
425
|
+
* Creates request options for modifyCollectionOptions without sending the request
|
|
426
|
+
*/
|
|
427
|
+
modifyCollectionOptionsRequestOpts(requestParameters: ModifyCollectionOptionsRequest): Promise<runtime.RequestOpts>;
|
|
428
|
+
/**
|
|
429
|
+
* Change the validator, the validationLevel and the validationAction of a Collection (collMod), the answer is the options after the change. A capped Collection and the collation cannot be changed after the creation (400). The administrate grant is needed.
|
|
430
|
+
* Change the Validation of a Collection
|
|
431
|
+
*/
|
|
432
|
+
modifyCollectionOptionsRaw(requestParameters: ModifyCollectionOptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectionOptions>>;
|
|
433
|
+
/**
|
|
434
|
+
* Change the validator, the validationLevel and the validationAction of a Collection (collMod), the answer is the options after the change. A capped Collection and the collation cannot be changed after the creation (400). The administrate grant is needed.
|
|
435
|
+
* Change the Validation of a Collection
|
|
436
|
+
*/
|
|
437
|
+
modifyCollectionOptions(requestParameters: ModifyCollectionOptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectionOptions>;
|
|
261
438
|
/**
|
|
262
439
|
* Creates request options for renameCollection without sending the request
|
|
263
440
|
*/
|