@sfxcode/nuxt-mongocamp-server 1.7.0 → 1.9.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.
- package/README.md +8 -0
- package/dist/module.json +2 -2
- package/dist/module.mjs +1 -1
- package/dist/runtime/api/.openapi-generator/FILES +18 -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 +163 -4
- package/dist/runtime/api/apis/CollectionApi.js +230 -27
- 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 +223 -15
- package/dist/runtime/api/apis/DocumentApi.js +194 -35
- 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 +100 -2
- package/dist/runtime/api/apis/IndexApi.js +95 -31
- 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 +3 -2
- package/dist/runtime/api/apis/SystemApi.js +5 -3
- package/dist/runtime/api/docs/CollectionApi.md +254 -2
- package/dist/runtime/api/docs/CollectionStatus.md +1 -1
- package/dist/runtime/api/docs/CopyRequest.md +40 -0
- package/dist/runtime/api/docs/CopyResponse.md +38 -0
- package/dist/runtime/api/docs/DatabaseInfo.md +1 -1
- package/dist/runtime/api/docs/DocumentApi.md +210 -19
- package/dist/runtime/api/docs/FieldInfo.md +36 -0
- package/dist/runtime/api/docs/FieldTypeCount.md +36 -0
- package/dist/runtime/api/docs/FileInformation.md +1 -1
- package/dist/runtime/api/docs/ImportResponse.md +42 -0
- package/dist/runtime/api/docs/IndexApi.md +78 -0
- package/dist/runtime/api/docs/IndexCreateRequest.md +2 -0
- package/dist/runtime/api/docs/IndexInfo.md +54 -0
- package/dist/runtime/api/docs/IndexKey.md +36 -0
- package/dist/runtime/api/docs/IndexOptionsRequest.md +10 -0
- 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/RenameRequest.md +36 -0
- package/dist/runtime/api/docs/RenameResponse.md +34 -0
- package/dist/runtime/api/docs/SettingsResponse.md +1 -1
- 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/ClusterInformation.d.ts +1 -5
- package/dist/runtime/api/models/ClusterMemberInformation.d.ts +1 -11
- 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/CopyRequest.d.ts +42 -0
- package/dist/runtime/api/models/CopyRequest.js +32 -0
- package/dist/runtime/api/models/CopyResponse.d.ts +38 -0
- package/dist/runtime/api/models/CopyResponse.js +32 -0
- package/dist/runtime/api/models/CountResponse.d.ts +1 -3
- 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 +35 -0
- package/dist/runtime/api/models/FieldInfo.js +32 -0
- package/dist/runtime/api/models/FieldTypeCount.d.ts +34 -0
- package/dist/runtime/api/models/FieldTypeCount.js +29 -0
- 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 +47 -0
- package/dist/runtime/api/models/ImportResponse.js +41 -0
- package/dist/runtime/api/models/IndexCreateRequest.d.ts +7 -6
- package/dist/runtime/api/models/IndexCreateRequest.js +9 -4
- 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 +77 -0
- package/dist/runtime/api/models/IndexInfo.js +54 -0
- package/dist/runtime/api/models/IndexKey.d.ts +34 -0
- package/dist/runtime/api/models/IndexKey.js +29 -0
- package/dist/runtime/api/models/IndexOptionsRequest.d.ts +27 -17
- package/dist/runtime/api/models/IndexOptionsRequest.js +12 -2
- 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/PasswordUpdateRequest.d.ts +1 -3
- package/dist/runtime/api/models/PipelineStage.d.ts +1 -5
- package/dist/runtime/api/models/RenameRequest.d.ts +34 -0
- package/dist/runtime/api/models/RenameRequest.js +28 -0
- package/dist/runtime/api/models/RenameResponse.d.ts +30 -0
- package/dist/runtime/api/models/RenameResponse.js +26 -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/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 +9 -0
- package/dist/runtime/api/models/index.js +9 -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 +1 -1
- 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.8.2
|
|
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.8.2
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -10,50 +10,167 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime.js';
|
|
13
|
-
import type
|
|
13
|
+
import { type CollectionStatus } from '../models/CollectionStatus.js';
|
|
14
|
+
import { type CollectionSummary } from '../models/CollectionSummary.js';
|
|
15
|
+
import { type CopyRequest } from '../models/CopyRequest.js';
|
|
16
|
+
import { type CopyResponse } from '../models/CopyResponse.js';
|
|
17
|
+
import { type FieldInfo } from '../models/FieldInfo.js';
|
|
18
|
+
import { type JsonSchema } from '../models/JsonSchema.js';
|
|
19
|
+
import { type JsonValueBoolean } from '../models/JsonValueBoolean.js';
|
|
20
|
+
import { type MongoAggregateRequest } from '../models/MongoAggregateRequest.js';
|
|
21
|
+
import { type RenameRequest } from '../models/RenameRequest.js';
|
|
22
|
+
import { type RenameResponse } from '../models/RenameResponse.js';
|
|
23
|
+
import { type SchemaAnalysis } from '../models/SchemaAnalysis.js';
|
|
14
24
|
export interface AggregateRequest {
|
|
25
|
+
/**
|
|
26
|
+
* The name of your MongoDb Collection
|
|
27
|
+
*/
|
|
15
28
|
collectionName: string;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
16
32
|
mongoAggregateRequest: MongoAggregateRequest;
|
|
33
|
+
/**
|
|
34
|
+
* Count elements per page
|
|
35
|
+
*/
|
|
17
36
|
rowsPerPage?: number;
|
|
37
|
+
/**
|
|
38
|
+
* Requested page of the ResultSets
|
|
39
|
+
*/
|
|
18
40
|
page?: number;
|
|
41
|
+
/**
|
|
42
|
+
* 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.
|
|
43
|
+
*/
|
|
19
44
|
filter?: string;
|
|
45
|
+
/**
|
|
46
|
+
* 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.
|
|
47
|
+
*/
|
|
48
|
+
extendedJson?: string;
|
|
20
49
|
}
|
|
21
50
|
export interface ClearCollectionRequest {
|
|
51
|
+
/**
|
|
52
|
+
* The name of your MongoDb Collection
|
|
53
|
+
*/
|
|
22
54
|
collectionName: string;
|
|
23
55
|
}
|
|
56
|
+
export interface CopyCollectionRequest {
|
|
57
|
+
/**
|
|
58
|
+
* The name of your MongoDb Collection
|
|
59
|
+
*/
|
|
60
|
+
collectionName: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
*/
|
|
64
|
+
copyRequest: CopyRequest;
|
|
65
|
+
}
|
|
24
66
|
export interface DeleteCollectionRequest {
|
|
67
|
+
/**
|
|
68
|
+
* The name of your MongoDb Collection
|
|
69
|
+
*/
|
|
25
70
|
collectionName: string;
|
|
26
71
|
}
|
|
27
72
|
export interface DistinctRequest {
|
|
73
|
+
/**
|
|
74
|
+
* The name of your MongoDb Collection
|
|
75
|
+
*/
|
|
28
76
|
collectionName: string;
|
|
77
|
+
/**
|
|
78
|
+
* The field for your distinct Request.
|
|
79
|
+
*/
|
|
29
80
|
field: string;
|
|
81
|
+
/**
|
|
82
|
+
* Count elements per page
|
|
83
|
+
*/
|
|
30
84
|
rowsPerPage?: number;
|
|
85
|
+
/**
|
|
86
|
+
* Requested page of the ResultSets
|
|
87
|
+
*/
|
|
31
88
|
page?: number;
|
|
32
89
|
}
|
|
33
90
|
export interface GetCollectionFieldsRequest {
|
|
91
|
+
/**
|
|
92
|
+
* The name of your MongoDb Collection
|
|
93
|
+
*/
|
|
34
94
|
collectionName: string;
|
|
95
|
+
/**
|
|
96
|
+
* Use sample size greater 0 (e.g. 1000) for better performance on big collections
|
|
97
|
+
*/
|
|
35
98
|
sampleSize?: number;
|
|
36
99
|
}
|
|
37
100
|
export interface GetCollectionInformationRequest {
|
|
101
|
+
/**
|
|
102
|
+
* The name of your MongoDb Collection
|
|
103
|
+
*/
|
|
38
104
|
collectionName: string;
|
|
105
|
+
/**
|
|
106
|
+
* Include all details for the Collection
|
|
107
|
+
*/
|
|
39
108
|
includeDetails?: boolean;
|
|
40
109
|
}
|
|
110
|
+
export interface GetFieldDetailsRequest {
|
|
111
|
+
/**
|
|
112
|
+
* The name of your MongoDb Collection
|
|
113
|
+
*/
|
|
114
|
+
collectionName: string;
|
|
115
|
+
/**
|
|
116
|
+
* Number of documents that are analysed, 1000 by default. A greater sample is more exact and slower on big collections.
|
|
117
|
+
*/
|
|
118
|
+
sampleSize?: number;
|
|
119
|
+
/**
|
|
120
|
+
* How deep should the objects extracted
|
|
121
|
+
*/
|
|
122
|
+
depth?: number;
|
|
123
|
+
}
|
|
41
124
|
export interface GetJsonSchemaRequest {
|
|
125
|
+
/**
|
|
126
|
+
* The name of your MongoDb Collection
|
|
127
|
+
*/
|
|
42
128
|
collectionName: string;
|
|
129
|
+
/**
|
|
130
|
+
* Use sample size greater 0 (e.g. 5000) for better performance on big collections
|
|
131
|
+
*/
|
|
43
132
|
sampleSize?: number;
|
|
133
|
+
/**
|
|
134
|
+
* How deep should the objects extracted
|
|
135
|
+
*/
|
|
44
136
|
deepth?: number;
|
|
45
137
|
}
|
|
46
138
|
export interface GetSchemaAnalysisRequest {
|
|
139
|
+
/**
|
|
140
|
+
* The name of your MongoDb Collection
|
|
141
|
+
*/
|
|
47
142
|
collectionName: string;
|
|
143
|
+
/**
|
|
144
|
+
* Use sample size greater 0 (e.g. 5000) for better performance on big collections
|
|
145
|
+
*/
|
|
48
146
|
sampleSize?: number;
|
|
147
|
+
/**
|
|
148
|
+
* How deep should the objects extracted
|
|
149
|
+
*/
|
|
49
150
|
deepth?: number;
|
|
50
151
|
}
|
|
51
152
|
export interface ListCollectionInformationRequest {
|
|
153
|
+
/**
|
|
154
|
+
* Only the Collections with these names, by default all Collections that the user may read
|
|
155
|
+
*/
|
|
52
156
|
name?: Array<string>;
|
|
53
157
|
}
|
|
54
158
|
export interface ListCollectionsByDatabaseRequest {
|
|
159
|
+
/**
|
|
160
|
+
* Name of your Database
|
|
161
|
+
*/
|
|
55
162
|
databaseName: string;
|
|
56
163
|
}
|
|
164
|
+
export interface RenameCollectionRequest {
|
|
165
|
+
/**
|
|
166
|
+
* The name of your MongoDb Collection
|
|
167
|
+
*/
|
|
168
|
+
collectionName: string;
|
|
169
|
+
/**
|
|
170
|
+
*
|
|
171
|
+
*/
|
|
172
|
+
renameRequest: RenameRequest;
|
|
173
|
+
}
|
|
57
174
|
/**
|
|
58
175
|
*
|
|
59
176
|
*/
|
|
@@ -67,14 +184,14 @@ export declare class CollectionApi extends runtime.BaseAPI {
|
|
|
67
184
|
* Aggregate in Collection
|
|
68
185
|
*/
|
|
69
186
|
aggregateRaw(requestParameters: AggregateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<{
|
|
70
|
-
[key: string]: any;
|
|
187
|
+
[key: string]: any | null;
|
|
71
188
|
}>>>;
|
|
72
189
|
/**
|
|
73
190
|
* 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.
|
|
74
191
|
* Aggregate in Collection
|
|
75
192
|
*/
|
|
76
193
|
aggregate(requestParameters: AggregateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<{
|
|
77
|
-
[key: string]: any;
|
|
194
|
+
[key: string]: any | null;
|
|
78
195
|
}>>;
|
|
79
196
|
/**
|
|
80
197
|
* Creates request options for clearCollection without sending the request
|
|
@@ -90,6 +207,20 @@ export declare class CollectionApi extends runtime.BaseAPI {
|
|
|
90
207
|
* Clear Collection
|
|
91
208
|
*/
|
|
92
209
|
clearCollection(requestParameters: ClearCollectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JsonValueBoolean>;
|
|
210
|
+
/**
|
|
211
|
+
* Creates request options for copyCollection without sending the request
|
|
212
|
+
*/
|
|
213
|
+
copyCollectionRequestOpts(requestParameters: CopyCollectionRequest): Promise<runtime.RequestOpts>;
|
|
214
|
+
/**
|
|
215
|
+
* Copy a Collection in the database, optionally only the documents that match a Lucene filter, with its indices (withIndexes, true by default). The target is a name in the database of the Collection. The read grant for the Collection and the write grant for the target are needed. An existing target is a conflict (409), unless dropTarget is true and the user has the administrate grant for it: it is replaced when the copy is complete. The copy is made in one request, a big collection takes its time.
|
|
216
|
+
* Copy Collection
|
|
217
|
+
*/
|
|
218
|
+
copyCollectionRaw(requestParameters: CopyCollectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CopyResponse>>;
|
|
219
|
+
/**
|
|
220
|
+
* Copy a Collection in the database, optionally only the documents that match a Lucene filter, with its indices (withIndexes, true by default). The target is a name in the database of the Collection. The read grant for the Collection and the write grant for the target are needed. An existing target is a conflict (409), unless dropTarget is true and the user has the administrate grant for it: it is replaced when the copy is complete. The copy is made in one request, a big collection takes its time.
|
|
221
|
+
* Copy Collection
|
|
222
|
+
*/
|
|
223
|
+
copyCollection(requestParameters: CopyCollectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CopyResponse>;
|
|
93
224
|
/**
|
|
94
225
|
* Creates request options for deleteCollection without sending the request
|
|
95
226
|
*/
|
|
@@ -146,6 +277,20 @@ export declare class CollectionApi extends runtime.BaseAPI {
|
|
|
146
277
|
* Collection Information
|
|
147
278
|
*/
|
|
148
279
|
getCollectionInformation(requestParameters: GetCollectionInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectionStatus>;
|
|
280
|
+
/**
|
|
281
|
+
* Creates request options for getFieldDetails without sending the request
|
|
282
|
+
*/
|
|
283
|
+
getFieldDetailsRequestOpts(requestParameters: GetFieldDetailsRequest): Promise<runtime.RequestOpts>;
|
|
284
|
+
/**
|
|
285
|
+
* All fields of a collection as a flat list, one entry per path (`address.city`, `tags[]` for the elements of an array) with the types of the values and how often every type was found in the analysed documents.
|
|
286
|
+
* Fields of a Collection with types
|
|
287
|
+
*/
|
|
288
|
+
getFieldDetailsRaw(requestParameters: GetFieldDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<FieldInfo>>>;
|
|
289
|
+
/**
|
|
290
|
+
* All fields of a collection as a flat list, one entry per path (`address.city`, `tags[]` for the elements of an array) with the types of the values and how often every type was found in the analysed documents.
|
|
291
|
+
* Fields of a Collection with types
|
|
292
|
+
*/
|
|
293
|
+
getFieldDetails(requestParameters: GetFieldDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<FieldInfo>>;
|
|
149
294
|
/**
|
|
150
295
|
* Creates request options for getJsonSchema without sending the request
|
|
151
296
|
*/
|
|
@@ -216,4 +361,18 @@ export declare class CollectionApi extends runtime.BaseAPI {
|
|
|
216
361
|
* List of Collections
|
|
217
362
|
*/
|
|
218
363
|
listCollectionsByDatabase(requestParameters: ListCollectionsByDatabaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<string>>;
|
|
364
|
+
/**
|
|
365
|
+
* Creates request options for renameCollection without sending the request
|
|
366
|
+
*/
|
|
367
|
+
renameCollectionRequestOpts(requestParameters: RenameCollectionRequest): Promise<runtime.RequestOpts>;
|
|
368
|
+
/**
|
|
369
|
+
* Rename a Collection in the database, with its Documents and Indices. The target is a name in the database of the Collection. The administrate grant for the Collection and the write grant for the target are needed. An existing target is a conflict (409), unless dropTarget is true and the user has the administrate grant for it: it is replaced then.
|
|
370
|
+
* Rename Collection
|
|
371
|
+
*/
|
|
372
|
+
renameCollectionRaw(requestParameters: RenameCollectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RenameResponse>>;
|
|
373
|
+
/**
|
|
374
|
+
* Rename a Collection in the database, with its Documents and Indices. The target is a name in the database of the Collection. The administrate grant for the Collection and the write grant for the target are needed. An existing target is a conflict (409), unless dropTarget is true and the user has the administrate grant for it: it is replaced then.
|
|
375
|
+
* Rename Collection
|
|
376
|
+
*/
|
|
377
|
+
renameCollection(requestParameters: RenameCollectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RenameResponse>;
|
|
219
378
|
}
|