@sfxcode/nuxt-mongocamp-server 1.8.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/dist/module.json +2 -2
- package/dist/module.mjs +1 -1
- 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 +107 -4
- package/dist/runtime/api/apis/CollectionApi.js +58 -38
- 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 +3 -2
- package/dist/runtime/api/apis/SystemApi.js +5 -3
- package/dist/runtime/api/docs/CollectionApi.md +2 -2
- package/dist/runtime/api/docs/CollectionStatus.md +1 -1
- 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/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 +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/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/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/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/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 +3 -3
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* mongocamp-library
|
|
3
3
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.8.
|
|
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,131 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime.js';
|
|
13
|
-
import type
|
|
13
|
+
import { type IndexCreateRequest } from '../models/IndexCreateRequest.js';
|
|
14
|
+
import { type IndexCreateResponse } from '../models/IndexCreateResponse.js';
|
|
15
|
+
import { type IndexDropResponse } from '../models/IndexDropResponse.js';
|
|
16
|
+
import { type IndexInfo } from '../models/IndexInfo.js';
|
|
17
|
+
import { type IndexOptionsRequest } from '../models/IndexOptionsRequest.js';
|
|
18
|
+
import { type IndexUsage } from '../models/IndexUsage.js';
|
|
19
|
+
import { type MongoIndex } from '../models/MongoIndex.js';
|
|
14
20
|
export interface CreateExpiringIndexRequest {
|
|
21
|
+
/**
|
|
22
|
+
* The name of your MongoDb Collection
|
|
23
|
+
*/
|
|
15
24
|
collectionName: string;
|
|
25
|
+
/**
|
|
26
|
+
* The field Name for your index
|
|
27
|
+
*/
|
|
16
28
|
fieldName: string;
|
|
29
|
+
/**
|
|
30
|
+
* Expiring Duration in format 15d (https://www.scala-lang.org/api/2.13.7/scala/concurrent/duration/Duration.html)
|
|
31
|
+
*/
|
|
17
32
|
duration: string;
|
|
33
|
+
/**
|
|
34
|
+
* Sort your index ascending
|
|
35
|
+
*/
|
|
18
36
|
sortAscending?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Name for your index
|
|
39
|
+
*/
|
|
19
40
|
name?: string;
|
|
20
41
|
}
|
|
21
42
|
export interface CreateIndexRequest {
|
|
43
|
+
/**
|
|
44
|
+
* The name of your MongoDb Collection
|
|
45
|
+
*/
|
|
22
46
|
collectionName: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
*/
|
|
23
50
|
indexCreateRequest: IndexCreateRequest;
|
|
24
51
|
}
|
|
25
52
|
export interface CreateIndexForFieldRequest {
|
|
53
|
+
/**
|
|
54
|
+
* The name of your MongoDb Collection
|
|
55
|
+
*/
|
|
26
56
|
collectionName: string;
|
|
57
|
+
/**
|
|
58
|
+
* The field Name for your index
|
|
59
|
+
*/
|
|
27
60
|
fieldName: string;
|
|
61
|
+
/**
|
|
62
|
+
* Sort your index ascending
|
|
63
|
+
*/
|
|
28
64
|
sortAscending?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
*/
|
|
29
68
|
indexOptionsRequest?: IndexOptionsRequest;
|
|
30
69
|
}
|
|
31
70
|
export interface CreateTextIndexRequest {
|
|
71
|
+
/**
|
|
72
|
+
* The name of your MongoDb Collection
|
|
73
|
+
*/
|
|
32
74
|
collectionName: string;
|
|
75
|
+
/**
|
|
76
|
+
* The field Name for your index
|
|
77
|
+
*/
|
|
33
78
|
fieldName: string;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
*/
|
|
34
82
|
indexOptionsRequest?: IndexOptionsRequest;
|
|
35
83
|
}
|
|
36
84
|
export interface CreateUniqueIndexRequest {
|
|
85
|
+
/**
|
|
86
|
+
* The name of your MongoDb Collection
|
|
87
|
+
*/
|
|
37
88
|
collectionName: string;
|
|
89
|
+
/**
|
|
90
|
+
* The field Name for your index
|
|
91
|
+
*/
|
|
38
92
|
fieldName: string;
|
|
93
|
+
/**
|
|
94
|
+
* Sort your index ascending
|
|
95
|
+
*/
|
|
39
96
|
sortAscending?: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* Name for your index
|
|
99
|
+
*/
|
|
40
100
|
name?: string;
|
|
41
101
|
}
|
|
42
102
|
export interface DeleteIndexRequest {
|
|
103
|
+
/**
|
|
104
|
+
* The name of your MongoDb Collection
|
|
105
|
+
*/
|
|
43
106
|
collectionName: string;
|
|
107
|
+
/**
|
|
108
|
+
* The name of your Index
|
|
109
|
+
*/
|
|
44
110
|
indexName: string;
|
|
45
111
|
}
|
|
46
112
|
export interface IndexRequest {
|
|
113
|
+
/**
|
|
114
|
+
* The name of your MongoDb Collection
|
|
115
|
+
*/
|
|
47
116
|
collectionName: string;
|
|
117
|
+
/**
|
|
118
|
+
* The name of your Index
|
|
119
|
+
*/
|
|
48
120
|
indexName: string;
|
|
49
121
|
}
|
|
50
122
|
export interface IndexDetailsRequest {
|
|
123
|
+
/**
|
|
124
|
+
* The name of your MongoDb Collection
|
|
125
|
+
*/
|
|
51
126
|
collectionName: string;
|
|
52
127
|
}
|
|
53
128
|
export interface IndexStatsRequest {
|
|
129
|
+
/**
|
|
130
|
+
* The name of your MongoDb Collection
|
|
131
|
+
*/
|
|
54
132
|
collectionName: string;
|
|
55
133
|
}
|
|
56
134
|
export interface ListIndicesRequest {
|
|
135
|
+
/**
|
|
136
|
+
* The name of your MongoDb Collection
|
|
137
|
+
*/
|
|
57
138
|
collectionName: string;
|
|
58
139
|
}
|
|
59
140
|
/**
|
|
@@ -1,13 +1,25 @@
|
|
|
1
1
|
import * as runtime from "../runtime.js";
|
|
2
2
|
import {
|
|
3
|
-
IndexCreateRequestToJSON
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
IndexCreateRequestToJSON
|
|
4
|
+
} from "../models/IndexCreateRequest.js";
|
|
5
|
+
import {
|
|
6
|
+
IndexCreateResponseFromJSON
|
|
7
|
+
} from "../models/IndexCreateResponse.js";
|
|
8
|
+
import {
|
|
9
|
+
IndexDropResponseFromJSON
|
|
10
|
+
} from "../models/IndexDropResponse.js";
|
|
11
|
+
import {
|
|
12
|
+
IndexInfoFromJSON
|
|
13
|
+
} from "../models/IndexInfo.js";
|
|
14
|
+
import {
|
|
15
|
+
IndexOptionsRequestToJSON
|
|
16
|
+
} from "../models/IndexOptionsRequest.js";
|
|
17
|
+
import {
|
|
18
|
+
IndexUsageFromJSON
|
|
19
|
+
} from "../models/IndexUsage.js";
|
|
20
|
+
import {
|
|
9
21
|
MongoIndexFromJSON
|
|
10
|
-
} from "../models/
|
|
22
|
+
} from "../models/MongoIndex.js";
|
|
11
23
|
export class IndexApi extends runtime.BaseAPI {
|
|
12
24
|
/**
|
|
13
25
|
* Creates request options for createExpiringIndex without sending the request
|
|
@@ -40,7 +52,7 @@ export class IndexApi extends runtime.BaseAPI {
|
|
|
40
52
|
}
|
|
41
53
|
const headerParameters = {};
|
|
42
54
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
43
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
55
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
44
56
|
}
|
|
45
57
|
if (this.configuration && this.configuration.accessToken) {
|
|
46
58
|
const token = this.configuration.accessToken;
|
|
@@ -53,9 +65,9 @@ export class IndexApi extends runtime.BaseAPI {
|
|
|
53
65
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
54
66
|
}
|
|
55
67
|
let urlPath = `/mongodb/collections/{collectionName}/index/field/{fieldName}/{duration}/expiring`;
|
|
56
|
-
urlPath = urlPath.replace(
|
|
57
|
-
urlPath = urlPath.replace(
|
|
58
|
-
urlPath = urlPath.replace(
|
|
68
|
+
urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
|
|
69
|
+
urlPath = urlPath.replace("{fieldName}", encodeURIComponent(String(requestParameters["fieldName"])));
|
|
70
|
+
urlPath = urlPath.replace("{duration}", encodeURIComponent(String(requestParameters["duration"])));
|
|
59
71
|
return {
|
|
60
72
|
path: urlPath,
|
|
61
73
|
method: "PUT",
|
|
@@ -100,7 +112,7 @@ export class IndexApi extends runtime.BaseAPI {
|
|
|
100
112
|
const headerParameters = {};
|
|
101
113
|
headerParameters["Content-Type"] = "application/json";
|
|
102
114
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
103
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
115
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
104
116
|
}
|
|
105
117
|
if (this.configuration && this.configuration.accessToken) {
|
|
106
118
|
const token = this.configuration.accessToken;
|
|
@@ -113,7 +125,7 @@ export class IndexApi extends runtime.BaseAPI {
|
|
|
113
125
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
114
126
|
}
|
|
115
127
|
let urlPath = `/mongodb/collections/{collectionName}/index`;
|
|
116
|
-
urlPath = urlPath.replace(
|
|
128
|
+
urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
|
|
117
129
|
return {
|
|
118
130
|
path: urlPath,
|
|
119
131
|
method: "PUT",
|
|
@@ -162,7 +174,7 @@ export class IndexApi extends runtime.BaseAPI {
|
|
|
162
174
|
const headerParameters = {};
|
|
163
175
|
headerParameters["Content-Type"] = "application/json";
|
|
164
176
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
165
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
177
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
166
178
|
}
|
|
167
179
|
if (this.configuration && this.configuration.accessToken) {
|
|
168
180
|
const token = this.configuration.accessToken;
|
|
@@ -175,8 +187,8 @@ export class IndexApi extends runtime.BaseAPI {
|
|
|
175
187
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
176
188
|
}
|
|
177
189
|
let urlPath = `/mongodb/collections/{collectionName}/index/field/{fieldName}`;
|
|
178
|
-
urlPath = urlPath.replace(
|
|
179
|
-
urlPath = urlPath.replace(
|
|
190
|
+
urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
|
|
191
|
+
urlPath = urlPath.replace("{fieldName}", encodeURIComponent(String(requestParameters["fieldName"])));
|
|
180
192
|
return {
|
|
181
193
|
path: urlPath,
|
|
182
194
|
method: "PUT",
|
|
@@ -222,7 +234,7 @@ export class IndexApi extends runtime.BaseAPI {
|
|
|
222
234
|
const headerParameters = {};
|
|
223
235
|
headerParameters["Content-Type"] = "application/json";
|
|
224
236
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
225
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
237
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
226
238
|
}
|
|
227
239
|
if (this.configuration && this.configuration.accessToken) {
|
|
228
240
|
const token = this.configuration.accessToken;
|
|
@@ -235,8 +247,8 @@ export class IndexApi extends runtime.BaseAPI {
|
|
|
235
247
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
236
248
|
}
|
|
237
249
|
let urlPath = `/mongodb/collections/{collectionName}/index/field/{fieldName}/text`;
|
|
238
|
-
urlPath = urlPath.replace(
|
|
239
|
-
urlPath = urlPath.replace(
|
|
250
|
+
urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
|
|
251
|
+
urlPath = urlPath.replace("{fieldName}", encodeURIComponent(String(requestParameters["fieldName"])));
|
|
240
252
|
return {
|
|
241
253
|
path: urlPath,
|
|
242
254
|
method: "PUT",
|
|
@@ -287,7 +299,7 @@ export class IndexApi extends runtime.BaseAPI {
|
|
|
287
299
|
}
|
|
288
300
|
const headerParameters = {};
|
|
289
301
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
290
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
302
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
291
303
|
}
|
|
292
304
|
if (this.configuration && this.configuration.accessToken) {
|
|
293
305
|
const token = this.configuration.accessToken;
|
|
@@ -300,8 +312,8 @@ export class IndexApi extends runtime.BaseAPI {
|
|
|
300
312
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
301
313
|
}
|
|
302
314
|
let urlPath = `/mongodb/collections/{collectionName}/index/field/{fieldName}/unique`;
|
|
303
|
-
urlPath = urlPath.replace(
|
|
304
|
-
urlPath = urlPath.replace(
|
|
315
|
+
urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
|
|
316
|
+
urlPath = urlPath.replace("{fieldName}", encodeURIComponent(String(requestParameters["fieldName"])));
|
|
305
317
|
return {
|
|
306
318
|
path: urlPath,
|
|
307
319
|
method: "PUT",
|
|
@@ -345,7 +357,7 @@ export class IndexApi extends runtime.BaseAPI {
|
|
|
345
357
|
const queryParameters = {};
|
|
346
358
|
const headerParameters = {};
|
|
347
359
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
348
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
360
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
349
361
|
}
|
|
350
362
|
if (this.configuration && this.configuration.accessToken) {
|
|
351
363
|
const token = this.configuration.accessToken;
|
|
@@ -358,8 +370,8 @@ export class IndexApi extends runtime.BaseAPI {
|
|
|
358
370
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
359
371
|
}
|
|
360
372
|
let urlPath = `/mongodb/collections/{collectionName}/index/{indexName}`;
|
|
361
|
-
urlPath = urlPath.replace(
|
|
362
|
-
urlPath = urlPath.replace(
|
|
373
|
+
urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
|
|
374
|
+
urlPath = urlPath.replace("{indexName}", encodeURIComponent(String(requestParameters["indexName"])));
|
|
363
375
|
return {
|
|
364
376
|
path: urlPath,
|
|
365
377
|
method: "DELETE",
|
|
@@ -403,7 +415,7 @@ export class IndexApi extends runtime.BaseAPI {
|
|
|
403
415
|
const queryParameters = {};
|
|
404
416
|
const headerParameters = {};
|
|
405
417
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
406
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
418
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
407
419
|
}
|
|
408
420
|
if (this.configuration && this.configuration.accessToken) {
|
|
409
421
|
const token = this.configuration.accessToken;
|
|
@@ -416,8 +428,8 @@ export class IndexApi extends runtime.BaseAPI {
|
|
|
416
428
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
417
429
|
}
|
|
418
430
|
let urlPath = `/mongodb/collections/{collectionName}/index/{indexName}`;
|
|
419
|
-
urlPath = urlPath.replace(
|
|
420
|
-
urlPath = urlPath.replace(
|
|
431
|
+
urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
|
|
432
|
+
urlPath = urlPath.replace("{indexName}", encodeURIComponent(String(requestParameters["indexName"])));
|
|
421
433
|
return {
|
|
422
434
|
path: urlPath,
|
|
423
435
|
method: "GET",
|
|
@@ -455,7 +467,7 @@ export class IndexApi extends runtime.BaseAPI {
|
|
|
455
467
|
const queryParameters = {};
|
|
456
468
|
const headerParameters = {};
|
|
457
469
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
458
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
470
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
459
471
|
}
|
|
460
472
|
if (this.configuration && this.configuration.accessToken) {
|
|
461
473
|
const token = this.configuration.accessToken;
|
|
@@ -468,7 +480,7 @@ export class IndexApi extends runtime.BaseAPI {
|
|
|
468
480
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
469
481
|
}
|
|
470
482
|
let urlPath = `/mongodb/collections/{collectionName}/index/details`;
|
|
471
|
-
urlPath = urlPath.replace(
|
|
483
|
+
urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
|
|
472
484
|
return {
|
|
473
485
|
path: urlPath,
|
|
474
486
|
method: "GET",
|
|
@@ -506,7 +518,7 @@ export class IndexApi extends runtime.BaseAPI {
|
|
|
506
518
|
const queryParameters = {};
|
|
507
519
|
const headerParameters = {};
|
|
508
520
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
509
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
521
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
510
522
|
}
|
|
511
523
|
if (this.configuration && this.configuration.accessToken) {
|
|
512
524
|
const token = this.configuration.accessToken;
|
|
@@ -519,7 +531,7 @@ export class IndexApi extends runtime.BaseAPI {
|
|
|
519
531
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
520
532
|
}
|
|
521
533
|
let urlPath = `/mongodb/collections/{collectionName}/index/stats`;
|
|
522
|
-
urlPath = urlPath.replace(
|
|
534
|
+
urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
|
|
523
535
|
return {
|
|
524
536
|
path: urlPath,
|
|
525
537
|
method: "GET",
|
|
@@ -557,7 +569,7 @@ export class IndexApi extends runtime.BaseAPI {
|
|
|
557
569
|
const queryParameters = {};
|
|
558
570
|
const headerParameters = {};
|
|
559
571
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
560
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
572
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
561
573
|
}
|
|
562
574
|
if (this.configuration && this.configuration.accessToken) {
|
|
563
575
|
const token = this.configuration.accessToken;
|
|
@@ -570,7 +582,7 @@ export class IndexApi extends runtime.BaseAPI {
|
|
|
570
582
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
571
583
|
}
|
|
572
584
|
let urlPath = `/mongodb/collections/{collectionName}/index`;
|
|
573
|
-
urlPath = urlPath.replace(
|
|
585
|
+
urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
|
|
574
586
|
return {
|
|
575
587
|
path: urlPath,
|
|
576
588
|
method: "GET",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* mongocamp-library
|
|
3
3
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.8.
|
|
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,21 +10,47 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime.js';
|
|
13
|
-
import type
|
|
13
|
+
import { type JobConfig } from '../models/JobConfig.js';
|
|
14
|
+
import { type JobInformation } from '../models/JobInformation.js';
|
|
15
|
+
import { type JsonValueBoolean } from '../models/JsonValueBoolean.js';
|
|
14
16
|
export interface DeleteJobRequest {
|
|
17
|
+
/**
|
|
18
|
+
* Group Name of the Job
|
|
19
|
+
*/
|
|
15
20
|
jobGroup: string;
|
|
21
|
+
/**
|
|
22
|
+
* Name of the Job
|
|
23
|
+
*/
|
|
16
24
|
jobName: string;
|
|
17
25
|
}
|
|
18
26
|
export interface ExecuteJobRequest {
|
|
27
|
+
/**
|
|
28
|
+
* Group Name of the Job
|
|
29
|
+
*/
|
|
19
30
|
jobGroup: string;
|
|
31
|
+
/**
|
|
32
|
+
* Name of the Job
|
|
33
|
+
*/
|
|
20
34
|
jobName: string;
|
|
21
35
|
}
|
|
22
36
|
export interface RegisterJobRequest {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
23
40
|
jobConfig: JobConfig;
|
|
24
41
|
}
|
|
25
42
|
export interface UpdateJobRequest {
|
|
43
|
+
/**
|
|
44
|
+
* Group Name of the Job
|
|
45
|
+
*/
|
|
26
46
|
jobGroup: string;
|
|
47
|
+
/**
|
|
48
|
+
* Name of the Job
|
|
49
|
+
*/
|
|
27
50
|
jobName: string;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
*/
|
|
28
54
|
jobConfig: JobConfig;
|
|
29
55
|
}
|
|
30
56
|
/**
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import * as runtime from "../runtime.js";
|
|
2
2
|
import {
|
|
3
|
-
JobConfigToJSON
|
|
4
|
-
|
|
3
|
+
JobConfigToJSON
|
|
4
|
+
} from "../models/JobConfig.js";
|
|
5
|
+
import {
|
|
6
|
+
JobInformationFromJSON
|
|
7
|
+
} from "../models/JobInformation.js";
|
|
8
|
+
import {
|
|
5
9
|
JsonValueBooleanFromJSON
|
|
6
|
-
} from "../models/
|
|
10
|
+
} from "../models/JsonValueBoolean.js";
|
|
7
11
|
export class JobsApi extends runtime.BaseAPI {
|
|
8
12
|
/**
|
|
9
13
|
* Creates request options for deleteJob without sending the request
|
|
@@ -24,7 +28,7 @@ export class JobsApi extends runtime.BaseAPI {
|
|
|
24
28
|
const queryParameters = {};
|
|
25
29
|
const headerParameters = {};
|
|
26
30
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
27
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
31
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
28
32
|
}
|
|
29
33
|
if (this.configuration && this.configuration.accessToken) {
|
|
30
34
|
const token = this.configuration.accessToken;
|
|
@@ -37,8 +41,8 @@ export class JobsApi extends runtime.BaseAPI {
|
|
|
37
41
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
38
42
|
}
|
|
39
43
|
let urlPath = `/system/jobs/{jobGroup}/{jobName}`;
|
|
40
|
-
urlPath = urlPath.replace(
|
|
41
|
-
urlPath = urlPath.replace(
|
|
44
|
+
urlPath = urlPath.replace("{jobGroup}", encodeURIComponent(String(requestParameters["jobGroup"])));
|
|
45
|
+
urlPath = urlPath.replace("{jobName}", encodeURIComponent(String(requestParameters["jobName"])));
|
|
42
46
|
return {
|
|
43
47
|
path: urlPath,
|
|
44
48
|
method: "DELETE",
|
|
@@ -82,7 +86,7 @@ export class JobsApi extends runtime.BaseAPI {
|
|
|
82
86
|
const queryParameters = {};
|
|
83
87
|
const headerParameters = {};
|
|
84
88
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
85
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
89
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
86
90
|
}
|
|
87
91
|
if (this.configuration && this.configuration.accessToken) {
|
|
88
92
|
const token = this.configuration.accessToken;
|
|
@@ -95,8 +99,8 @@ export class JobsApi extends runtime.BaseAPI {
|
|
|
95
99
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
96
100
|
}
|
|
97
101
|
let urlPath = `/system/jobs/{jobGroup}/{jobName}`;
|
|
98
|
-
urlPath = urlPath.replace(
|
|
99
|
-
urlPath = urlPath.replace(
|
|
102
|
+
urlPath = urlPath.replace("{jobGroup}", encodeURIComponent(String(requestParameters["jobGroup"])));
|
|
103
|
+
urlPath = urlPath.replace("{jobName}", encodeURIComponent(String(requestParameters["jobName"])));
|
|
100
104
|
return {
|
|
101
105
|
path: urlPath,
|
|
102
106
|
method: "POST",
|
|
@@ -128,7 +132,7 @@ export class JobsApi extends runtime.BaseAPI {
|
|
|
128
132
|
const queryParameters = {};
|
|
129
133
|
const headerParameters = {};
|
|
130
134
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
131
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
135
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
132
136
|
}
|
|
133
137
|
if (this.configuration && this.configuration.accessToken) {
|
|
134
138
|
const token = this.configuration.accessToken;
|
|
@@ -172,7 +176,7 @@ export class JobsApi extends runtime.BaseAPI {
|
|
|
172
176
|
const queryParameters = {};
|
|
173
177
|
const headerParameters = {};
|
|
174
178
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
175
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
179
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
176
180
|
}
|
|
177
181
|
if (this.configuration && this.configuration.accessToken) {
|
|
178
182
|
const token = this.configuration.accessToken;
|
|
@@ -223,7 +227,7 @@ export class JobsApi extends runtime.BaseAPI {
|
|
|
223
227
|
const headerParameters = {};
|
|
224
228
|
headerParameters["Content-Type"] = "application/json";
|
|
225
229
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
226
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
230
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
227
231
|
}
|
|
228
232
|
if (this.configuration && this.configuration.accessToken) {
|
|
229
233
|
const token = this.configuration.accessToken;
|
|
@@ -287,7 +291,7 @@ export class JobsApi extends runtime.BaseAPI {
|
|
|
287
291
|
const headerParameters = {};
|
|
288
292
|
headerParameters["Content-Type"] = "application/json";
|
|
289
293
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
290
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
294
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
291
295
|
}
|
|
292
296
|
if (this.configuration && this.configuration.accessToken) {
|
|
293
297
|
const token = this.configuration.accessToken;
|
|
@@ -300,8 +304,8 @@ export class JobsApi extends runtime.BaseAPI {
|
|
|
300
304
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
301
305
|
}
|
|
302
306
|
let urlPath = `/system/jobs/{jobGroup}/{jobName}`;
|
|
303
|
-
urlPath = urlPath.replace(
|
|
304
|
-
urlPath = urlPath.replace(
|
|
307
|
+
urlPath = urlPath.replace("{jobGroup}", encodeURIComponent(String(requestParameters["jobGroup"])));
|
|
308
|
+
urlPath = urlPath.replace("{jobName}", encodeURIComponent(String(requestParameters["jobName"])));
|
|
305
309
|
return {
|
|
306
310
|
path: urlPath,
|
|
307
311
|
method: "PATCH",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* mongocamp-library
|
|
3
3
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.8.
|
|
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,7 +10,8 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime.js';
|
|
13
|
-
import type
|
|
13
|
+
import { type ClusterInformation } from '../models/ClusterInformation.js';
|
|
14
|
+
import { type Version } from '../models/Version.js';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
16
17
|
*/
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as runtime from "../runtime.js";
|
|
2
2
|
import {
|
|
3
|
-
ClusterInformationFromJSON
|
|
3
|
+
ClusterInformationFromJSON
|
|
4
|
+
} from "../models/ClusterInformation.js";
|
|
5
|
+
import {
|
|
4
6
|
VersionFromJSON
|
|
5
|
-
} from "../models/
|
|
7
|
+
} from "../models/Version.js";
|
|
6
8
|
export class SystemApi extends runtime.BaseAPI {
|
|
7
9
|
/**
|
|
8
10
|
* Creates request options for version without sending the request
|
|
@@ -42,7 +44,7 @@ export class SystemApi extends runtime.BaseAPI {
|
|
|
42
44
|
const queryParameters = {};
|
|
43
45
|
const headerParameters = {};
|
|
44
46
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
45
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
47
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
46
48
|
}
|
|
47
49
|
if (this.configuration && this.configuration.accessToken) {
|
|
48
50
|
const token = this.configuration.accessToken;
|
|
@@ -23,7 +23,7 @@ All URIs are relative to *http://localhost*
|
|
|
23
23
|
|
|
24
24
|
## aggregate
|
|
25
25
|
|
|
26
|
-
> Array<{ [key: string]: any; }> aggregate(collectionName, mongoAggregateRequest, rowsPerPage, page, filter, extendedJson)
|
|
26
|
+
> Array<{ [key: string]: any | null; }> aggregate(collectionName, mongoAggregateRequest, rowsPerPage, page, filter, extendedJson)
|
|
27
27
|
|
|
28
28
|
Aggregate in Collection
|
|
29
29
|
|
|
@@ -92,7 +92,7 @@ example().catch(console.error);
|
|
|
92
92
|
|
|
93
93
|
### Return type
|
|
94
94
|
|
|
95
|
-
**Array<{ [key: string]: any; }>**
|
|
95
|
+
**Array<{ [key: string]: any | null; }>**
|
|
96
96
|
|
|
97
97
|
### Authorization
|
|
98
98
|
|