@sfxcode/nuxt-mongocamp-server 1.1.2 → 1.2.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 +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/api/apis/AdminApi.mjs +99 -63
- package/dist/runtime/api/apis/ApplicationApi.mjs +22 -13
- package/dist/runtime/api/apis/AuthApi.mjs +19 -13
- package/dist/runtime/api/apis/BucketApi.mjs +22 -13
- package/dist/runtime/api/apis/CollectionApi.mjs +97 -64
- package/dist/runtime/api/apis/DatabaseApi.mjs +23 -14
- package/dist/runtime/api/apis/DocumentApi.d.ts +5 -5
- package/dist/runtime/api/apis/DocumentApi.mjs +151 -91
- package/dist/runtime/api/apis/FileApi.mjs +119 -74
- package/dist/runtime/api/apis/IndexApi.mjs +117 -69
- package/dist/runtime/api/apis/JobsApi.mjs +51 -27
- package/dist/runtime/api/models/BucketInformation.mjs +16 -16
- package/dist/runtime/api/models/CollectionStatus.d.ts +2 -2
- package/dist/runtime/api/models/CollectionStatus.mjs +43 -34
- package/dist/runtime/api/models/DatabaseInfo.d.ts +1 -1
- package/dist/runtime/api/models/DatabaseInfo.mjs +19 -18
- package/dist/runtime/api/models/DeleteResponse.mjs +10 -12
- package/dist/runtime/api/models/ErrorDescription.mjs +13 -14
- package/dist/runtime/api/models/FileInformation.d.ts +1 -1
- package/dist/runtime/api/models/FileInformation.mjs +22 -20
- package/dist/runtime/api/models/Grant.mjs +19 -18
- package/dist/runtime/api/models/IndexCreateRequest.d.ts +1 -1
- package/dist/runtime/api/models/IndexCreateRequest.mjs +9 -13
- package/dist/runtime/api/models/IndexCreateResponse.mjs +7 -10
- package/dist/runtime/api/models/IndexDropResponse.mjs +7 -10
- package/dist/runtime/api/models/IndexOptionsRequest.mjs +20 -25
- package/dist/runtime/api/models/InsertResponse.mjs +9 -13
- package/dist/runtime/api/models/JobConfig.mjs +22 -20
- package/dist/runtime/api/models/JobInformation.mjs +28 -27
- package/dist/runtime/api/models/JsonSchema.d.ts +1 -1
- package/dist/runtime/api/models/JsonSchema.mjs +14 -20
- package/dist/runtime/api/models/JsonSchemaDefinition.d.ts +1 -1
- package/dist/runtime/api/models/JsonSchemaDefinition.mjs +18 -19
- package/dist/runtime/api/models/JsonValueAny.mjs +7 -10
- package/dist/runtime/api/models/JsonValueBoolean.mjs +7 -10
- package/dist/runtime/api/models/JsonValueString.mjs +7 -10
- package/dist/runtime/api/models/Login.mjs +10 -12
- package/dist/runtime/api/models/LoginResult.mjs +13 -14
- package/dist/runtime/api/models/MongoAggregateRequest.mjs +9 -13
- package/dist/runtime/api/models/MongoCampConfiguration.mjs +19 -18
- package/dist/runtime/api/models/MongoFindRequest.d.ts +3 -3
- package/dist/runtime/api/models/MongoFindRequest.mjs +13 -14
- package/dist/runtime/api/models/MongoIndex.d.ts +3 -3
- package/dist/runtime/api/models/MongoIndex.mjs +39 -33
- package/dist/runtime/api/models/PasswordUpdateRequest.mjs +7 -10
- package/dist/runtime/api/models/PipelineStage.mjs +10 -12
- package/dist/runtime/api/models/Role.mjs +12 -15
- package/dist/runtime/api/models/SchemaAnalysis.mjs +15 -17
- package/dist/runtime/api/models/SchemaAnalysisField.mjs +20 -21
- package/dist/runtime/api/models/SchemaAnalysisFieldType.mjs +13 -14
- package/dist/runtime/api/models/SettingsResponse.d.ts +1 -1
- package/dist/runtime/api/models/SettingsResponse.mjs +13 -17
- package/dist/runtime/api/models/UpdateFileInformationRequest.d.ts +1 -1
- package/dist/runtime/api/models/UpdateFileInformationRequest.mjs +8 -13
- package/dist/runtime/api/models/UpdateRequest.d.ts +2 -2
- package/dist/runtime/api/models/UpdateRequest.mjs +10 -12
- package/dist/runtime/api/models/UpdateResponse.mjs +15 -17
- package/dist/runtime/api/models/UpdateRoleRequest.mjs +9 -13
- package/dist/runtime/api/models/UserInformation.mjs +14 -17
- package/dist/runtime/api/models/UserProfile.mjs +16 -19
- package/dist/runtime/api/models/Version.mjs +13 -14
- package/dist/runtime/api/runtime.d.ts +2 -3
- package/dist/runtime/api/runtime.mjs +0 -4
- package/dist/runtime/composables/mongocampAuth.mjs +2 -0
- package/package.json +29 -18
|
@@ -9,8 +9,11 @@ export class BucketApi extends runtime.BaseAPI {
|
|
|
9
9
|
* Clear Bucket
|
|
10
10
|
*/
|
|
11
11
|
async clearBucketRaw(requestParameters, initOverrides) {
|
|
12
|
-
if (requestParameters
|
|
13
|
-
throw new runtime.RequiredError(
|
|
12
|
+
if (requestParameters["bucketName"] == null) {
|
|
13
|
+
throw new runtime.RequiredError(
|
|
14
|
+
"bucketName",
|
|
15
|
+
'Required parameter "bucketName" was null or undefined when calling clearBucket().'
|
|
16
|
+
);
|
|
14
17
|
}
|
|
15
18
|
const queryParameters = {};
|
|
16
19
|
const headerParameters = {};
|
|
@@ -25,10 +28,10 @@ export class BucketApi extends runtime.BaseAPI {
|
|
|
25
28
|
}
|
|
26
29
|
}
|
|
27
30
|
if (this.configuration && this.configuration.apiKey) {
|
|
28
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
31
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
29
32
|
}
|
|
30
33
|
const response = await this.request({
|
|
31
|
-
path: `/mongodb/buckets/{bucketName}/clear`.replace(`{${"bucketName"}}`, encodeURIComponent(String(requestParameters
|
|
34
|
+
path: `/mongodb/buckets/{bucketName}/clear`.replace(`{${"bucketName"}}`, encodeURIComponent(String(requestParameters["bucketName"]))),
|
|
32
35
|
method: "DELETE",
|
|
33
36
|
headers: headerParameters,
|
|
34
37
|
query: queryParameters
|
|
@@ -48,8 +51,11 @@ export class BucketApi extends runtime.BaseAPI {
|
|
|
48
51
|
* Delete Bucket
|
|
49
52
|
*/
|
|
50
53
|
async deleteBucketRaw(requestParameters, initOverrides) {
|
|
51
|
-
if (requestParameters
|
|
52
|
-
throw new runtime.RequiredError(
|
|
54
|
+
if (requestParameters["bucketName"] == null) {
|
|
55
|
+
throw new runtime.RequiredError(
|
|
56
|
+
"bucketName",
|
|
57
|
+
'Required parameter "bucketName" was null or undefined when calling deleteBucket().'
|
|
58
|
+
);
|
|
53
59
|
}
|
|
54
60
|
const queryParameters = {};
|
|
55
61
|
const headerParameters = {};
|
|
@@ -64,10 +70,10 @@ export class BucketApi extends runtime.BaseAPI {
|
|
|
64
70
|
}
|
|
65
71
|
}
|
|
66
72
|
if (this.configuration && this.configuration.apiKey) {
|
|
67
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
73
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
68
74
|
}
|
|
69
75
|
const response = await this.request({
|
|
70
|
-
path: `/mongodb/buckets/{bucketName}`.replace(`{${"bucketName"}}`, encodeURIComponent(String(requestParameters
|
|
76
|
+
path: `/mongodb/buckets/{bucketName}`.replace(`{${"bucketName"}}`, encodeURIComponent(String(requestParameters["bucketName"]))),
|
|
71
77
|
method: "DELETE",
|
|
72
78
|
headers: headerParameters,
|
|
73
79
|
query: queryParameters
|
|
@@ -87,8 +93,11 @@ export class BucketApi extends runtime.BaseAPI {
|
|
|
87
93
|
* Bucket Information
|
|
88
94
|
*/
|
|
89
95
|
async getBucketRaw(requestParameters, initOverrides) {
|
|
90
|
-
if (requestParameters
|
|
91
|
-
throw new runtime.RequiredError(
|
|
96
|
+
if (requestParameters["bucketName"] == null) {
|
|
97
|
+
throw new runtime.RequiredError(
|
|
98
|
+
"bucketName",
|
|
99
|
+
'Required parameter "bucketName" was null or undefined when calling getBucket().'
|
|
100
|
+
);
|
|
92
101
|
}
|
|
93
102
|
const queryParameters = {};
|
|
94
103
|
const headerParameters = {};
|
|
@@ -103,10 +112,10 @@ export class BucketApi extends runtime.BaseAPI {
|
|
|
103
112
|
}
|
|
104
113
|
}
|
|
105
114
|
if (this.configuration && this.configuration.apiKey) {
|
|
106
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
115
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
107
116
|
}
|
|
108
117
|
const response = await this.request({
|
|
109
|
-
path: `/mongodb/buckets/{bucketName}`.replace(`{${"bucketName"}}`, encodeURIComponent(String(requestParameters
|
|
118
|
+
path: `/mongodb/buckets/{bucketName}`.replace(`{${"bucketName"}}`, encodeURIComponent(String(requestParameters["bucketName"]))),
|
|
110
119
|
method: "GET",
|
|
111
120
|
headers: headerParameters,
|
|
112
121
|
query: queryParameters
|
|
@@ -139,7 +148,7 @@ export class BucketApi extends runtime.BaseAPI {
|
|
|
139
148
|
}
|
|
140
149
|
}
|
|
141
150
|
if (this.configuration && this.configuration.apiKey) {
|
|
142
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
151
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
143
152
|
}
|
|
144
153
|
const response = await this.request({
|
|
145
154
|
path: `/mongodb/buckets`,
|
|
@@ -12,18 +12,24 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
12
12
|
* Aggregate in Collection
|
|
13
13
|
*/
|
|
14
14
|
async aggregateRaw(requestParameters, initOverrides) {
|
|
15
|
-
if (requestParameters
|
|
16
|
-
throw new runtime.RequiredError(
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
if (requestParameters["collectionName"] == null) {
|
|
16
|
+
throw new runtime.RequiredError(
|
|
17
|
+
"collectionName",
|
|
18
|
+
'Required parameter "collectionName" was null or undefined when calling aggregate().'
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
if (requestParameters["mongoAggregateRequest"] == null) {
|
|
22
|
+
throw new runtime.RequiredError(
|
|
23
|
+
"mongoAggregateRequest",
|
|
24
|
+
'Required parameter "mongoAggregateRequest" was null or undefined when calling aggregate().'
|
|
25
|
+
);
|
|
20
26
|
}
|
|
21
27
|
const queryParameters = {};
|
|
22
|
-
if (requestParameters
|
|
23
|
-
queryParameters["rowsPerPage"] = requestParameters
|
|
28
|
+
if (requestParameters["rowsPerPage"] != null) {
|
|
29
|
+
queryParameters["rowsPerPage"] = requestParameters["rowsPerPage"];
|
|
24
30
|
}
|
|
25
|
-
if (requestParameters
|
|
26
|
-
queryParameters["page"] = requestParameters
|
|
31
|
+
if (requestParameters["page"] != null) {
|
|
32
|
+
queryParameters["page"] = requestParameters["page"];
|
|
27
33
|
}
|
|
28
34
|
const headerParameters = {};
|
|
29
35
|
headerParameters["Content-Type"] = "application/json";
|
|
@@ -38,14 +44,14 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
38
44
|
}
|
|
39
45
|
}
|
|
40
46
|
if (this.configuration && this.configuration.apiKey) {
|
|
41
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
47
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
42
48
|
}
|
|
43
49
|
const response = await this.request({
|
|
44
|
-
path: `/mongodb/collections/{collectionName}/aggregate`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters
|
|
50
|
+
path: `/mongodb/collections/{collectionName}/aggregate`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"]))),
|
|
45
51
|
method: "POST",
|
|
46
52
|
headers: headerParameters,
|
|
47
53
|
query: queryParameters,
|
|
48
|
-
body: MongoAggregateRequestToJSON(requestParameters
|
|
54
|
+
body: MongoAggregateRequestToJSON(requestParameters["mongoAggregateRequest"])
|
|
49
55
|
}, initOverrides);
|
|
50
56
|
return new runtime.JSONApiResponse(response);
|
|
51
57
|
}
|
|
@@ -62,8 +68,11 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
62
68
|
* Clear Collection
|
|
63
69
|
*/
|
|
64
70
|
async clearCollectionRaw(requestParameters, initOverrides) {
|
|
65
|
-
if (requestParameters
|
|
66
|
-
throw new runtime.RequiredError(
|
|
71
|
+
if (requestParameters["collectionName"] == null) {
|
|
72
|
+
throw new runtime.RequiredError(
|
|
73
|
+
"collectionName",
|
|
74
|
+
'Required parameter "collectionName" was null or undefined when calling clearCollection().'
|
|
75
|
+
);
|
|
67
76
|
}
|
|
68
77
|
const queryParameters = {};
|
|
69
78
|
const headerParameters = {};
|
|
@@ -78,10 +87,10 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
78
87
|
}
|
|
79
88
|
}
|
|
80
89
|
if (this.configuration && this.configuration.apiKey) {
|
|
81
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
90
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
82
91
|
}
|
|
83
92
|
const response = await this.request({
|
|
84
|
-
path: `/mongodb/collections/{collectionName}/clear`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters
|
|
93
|
+
path: `/mongodb/collections/{collectionName}/clear`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"]))),
|
|
85
94
|
method: "DELETE",
|
|
86
95
|
headers: headerParameters,
|
|
87
96
|
query: queryParameters
|
|
@@ -101,8 +110,11 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
101
110
|
* Delete Collection
|
|
102
111
|
*/
|
|
103
112
|
async deleteCollectionRaw(requestParameters, initOverrides) {
|
|
104
|
-
if (requestParameters
|
|
105
|
-
throw new runtime.RequiredError(
|
|
113
|
+
if (requestParameters["collectionName"] == null) {
|
|
114
|
+
throw new runtime.RequiredError(
|
|
115
|
+
"collectionName",
|
|
116
|
+
'Required parameter "collectionName" was null or undefined when calling deleteCollection().'
|
|
117
|
+
);
|
|
106
118
|
}
|
|
107
119
|
const queryParameters = {};
|
|
108
120
|
const headerParameters = {};
|
|
@@ -117,10 +129,10 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
117
129
|
}
|
|
118
130
|
}
|
|
119
131
|
if (this.configuration && this.configuration.apiKey) {
|
|
120
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
132
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
121
133
|
}
|
|
122
134
|
const response = await this.request({
|
|
123
|
-
path: `/mongodb/collections/{collectionName}`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters
|
|
135
|
+
path: `/mongodb/collections/{collectionName}`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"]))),
|
|
124
136
|
method: "DELETE",
|
|
125
137
|
headers: headerParameters,
|
|
126
138
|
query: queryParameters
|
|
@@ -140,18 +152,24 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
140
152
|
* Distinct in Collection
|
|
141
153
|
*/
|
|
142
154
|
async distinctRaw(requestParameters, initOverrides) {
|
|
143
|
-
if (requestParameters
|
|
144
|
-
throw new runtime.RequiredError(
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
155
|
+
if (requestParameters["collectionName"] == null) {
|
|
156
|
+
throw new runtime.RequiredError(
|
|
157
|
+
"collectionName",
|
|
158
|
+
'Required parameter "collectionName" was null or undefined when calling distinct().'
|
|
159
|
+
);
|
|
160
|
+
}
|
|
161
|
+
if (requestParameters["field"] == null) {
|
|
162
|
+
throw new runtime.RequiredError(
|
|
163
|
+
"field",
|
|
164
|
+
'Required parameter "field" was null or undefined when calling distinct().'
|
|
165
|
+
);
|
|
148
166
|
}
|
|
149
167
|
const queryParameters = {};
|
|
150
|
-
if (requestParameters
|
|
151
|
-
queryParameters["rowsPerPage"] = requestParameters
|
|
168
|
+
if (requestParameters["rowsPerPage"] != null) {
|
|
169
|
+
queryParameters["rowsPerPage"] = requestParameters["rowsPerPage"];
|
|
152
170
|
}
|
|
153
|
-
if (requestParameters
|
|
154
|
-
queryParameters["page"] = requestParameters
|
|
171
|
+
if (requestParameters["page"] != null) {
|
|
172
|
+
queryParameters["page"] = requestParameters["page"];
|
|
155
173
|
}
|
|
156
174
|
const headerParameters = {};
|
|
157
175
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
@@ -165,10 +183,10 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
165
183
|
}
|
|
166
184
|
}
|
|
167
185
|
if (this.configuration && this.configuration.apiKey) {
|
|
168
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
186
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
169
187
|
}
|
|
170
188
|
const response = await this.request({
|
|
171
|
-
path: `/mongodb/collections/{collectionName}/distinct/{field}`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters
|
|
189
|
+
path: `/mongodb/collections/{collectionName}/distinct/{field}`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"]))).replace(`{${"field"}}`, encodeURIComponent(String(requestParameters["field"]))),
|
|
172
190
|
method: "POST",
|
|
173
191
|
headers: headerParameters,
|
|
174
192
|
query: queryParameters
|
|
@@ -188,12 +206,15 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
188
206
|
* Collection Fields
|
|
189
207
|
*/
|
|
190
208
|
async getCollectionFieldsRaw(requestParameters, initOverrides) {
|
|
191
|
-
if (requestParameters
|
|
192
|
-
throw new runtime.RequiredError(
|
|
209
|
+
if (requestParameters["collectionName"] == null) {
|
|
210
|
+
throw new runtime.RequiredError(
|
|
211
|
+
"collectionName",
|
|
212
|
+
'Required parameter "collectionName" was null or undefined when calling getCollectionFields().'
|
|
213
|
+
);
|
|
193
214
|
}
|
|
194
215
|
const queryParameters = {};
|
|
195
|
-
if (requestParameters
|
|
196
|
-
queryParameters["sample size"] = requestParameters
|
|
216
|
+
if (requestParameters["sampleSize"] != null) {
|
|
217
|
+
queryParameters["sample size"] = requestParameters["sampleSize"];
|
|
197
218
|
}
|
|
198
219
|
const headerParameters = {};
|
|
199
220
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
@@ -207,10 +228,10 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
207
228
|
}
|
|
208
229
|
}
|
|
209
230
|
if (this.configuration && this.configuration.apiKey) {
|
|
210
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
231
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
211
232
|
}
|
|
212
233
|
const response = await this.request({
|
|
213
|
-
path: `/mongodb/collections/{collectionName}/fields`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters
|
|
234
|
+
path: `/mongodb/collections/{collectionName}/fields`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"]))),
|
|
214
235
|
method: "GET",
|
|
215
236
|
headers: headerParameters,
|
|
216
237
|
query: queryParameters
|
|
@@ -230,12 +251,15 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
230
251
|
* Collection Information
|
|
231
252
|
*/
|
|
232
253
|
async getCollectionInformationRaw(requestParameters, initOverrides) {
|
|
233
|
-
if (requestParameters
|
|
234
|
-
throw new runtime.RequiredError(
|
|
254
|
+
if (requestParameters["collectionName"] == null) {
|
|
255
|
+
throw new runtime.RequiredError(
|
|
256
|
+
"collectionName",
|
|
257
|
+
'Required parameter "collectionName" was null or undefined when calling getCollectionInformation().'
|
|
258
|
+
);
|
|
235
259
|
}
|
|
236
260
|
const queryParameters = {};
|
|
237
|
-
if (requestParameters
|
|
238
|
-
queryParameters["includeDetails"] = requestParameters
|
|
261
|
+
if (requestParameters["includeDetails"] != null) {
|
|
262
|
+
queryParameters["includeDetails"] = requestParameters["includeDetails"];
|
|
239
263
|
}
|
|
240
264
|
const headerParameters = {};
|
|
241
265
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
@@ -249,10 +273,10 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
249
273
|
}
|
|
250
274
|
}
|
|
251
275
|
if (this.configuration && this.configuration.apiKey) {
|
|
252
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
276
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
253
277
|
}
|
|
254
278
|
const response = await this.request({
|
|
255
|
-
path: `/mongodb/collections/{collectionName}`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters
|
|
279
|
+
path: `/mongodb/collections/{collectionName}`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"]))),
|
|
256
280
|
method: "GET",
|
|
257
281
|
headers: headerParameters,
|
|
258
282
|
query: queryParameters
|
|
@@ -272,15 +296,18 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
272
296
|
* Collection Fields
|
|
273
297
|
*/
|
|
274
298
|
async getJsonSchemaRaw(requestParameters, initOverrides) {
|
|
275
|
-
if (requestParameters
|
|
276
|
-
throw new runtime.RequiredError(
|
|
299
|
+
if (requestParameters["collectionName"] == null) {
|
|
300
|
+
throw new runtime.RequiredError(
|
|
301
|
+
"collectionName",
|
|
302
|
+
'Required parameter "collectionName" was null or undefined when calling getJsonSchema().'
|
|
303
|
+
);
|
|
277
304
|
}
|
|
278
305
|
const queryParameters = {};
|
|
279
|
-
if (requestParameters
|
|
280
|
-
queryParameters["sampleSize"] = requestParameters
|
|
306
|
+
if (requestParameters["sampleSize"] != null) {
|
|
307
|
+
queryParameters["sampleSize"] = requestParameters["sampleSize"];
|
|
281
308
|
}
|
|
282
|
-
if (requestParameters
|
|
283
|
-
queryParameters["deepth"] = requestParameters
|
|
309
|
+
if (requestParameters["deepth"] != null) {
|
|
310
|
+
queryParameters["deepth"] = requestParameters["deepth"];
|
|
284
311
|
}
|
|
285
312
|
const headerParameters = {};
|
|
286
313
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
@@ -294,10 +321,10 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
294
321
|
}
|
|
295
322
|
}
|
|
296
323
|
if (this.configuration && this.configuration.apiKey) {
|
|
297
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
324
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
298
325
|
}
|
|
299
326
|
const response = await this.request({
|
|
300
|
-
path: `/mongodb/collections/{collectionName}/schema`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters
|
|
327
|
+
path: `/mongodb/collections/{collectionName}/schema`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"]))),
|
|
301
328
|
method: "GET",
|
|
302
329
|
headers: headerParameters,
|
|
303
330
|
query: queryParameters
|
|
@@ -317,15 +344,18 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
317
344
|
* Collection Fields
|
|
318
345
|
*/
|
|
319
346
|
async getSchemaAnalysisRaw(requestParameters, initOverrides) {
|
|
320
|
-
if (requestParameters
|
|
321
|
-
throw new runtime.RequiredError(
|
|
347
|
+
if (requestParameters["collectionName"] == null) {
|
|
348
|
+
throw new runtime.RequiredError(
|
|
349
|
+
"collectionName",
|
|
350
|
+
'Required parameter "collectionName" was null or undefined when calling getSchemaAnalysis().'
|
|
351
|
+
);
|
|
322
352
|
}
|
|
323
353
|
const queryParameters = {};
|
|
324
|
-
if (requestParameters
|
|
325
|
-
queryParameters["sampleSize"] = requestParameters
|
|
354
|
+
if (requestParameters["sampleSize"] != null) {
|
|
355
|
+
queryParameters["sampleSize"] = requestParameters["sampleSize"];
|
|
326
356
|
}
|
|
327
|
-
if (requestParameters
|
|
328
|
-
queryParameters["deepth"] = requestParameters
|
|
357
|
+
if (requestParameters["deepth"] != null) {
|
|
358
|
+
queryParameters["deepth"] = requestParameters["deepth"];
|
|
329
359
|
}
|
|
330
360
|
const headerParameters = {};
|
|
331
361
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
@@ -339,10 +369,10 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
339
369
|
}
|
|
340
370
|
}
|
|
341
371
|
if (this.configuration && this.configuration.apiKey) {
|
|
342
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
372
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
343
373
|
}
|
|
344
374
|
const response = await this.request({
|
|
345
|
-
path: `/mongodb/collections/{collectionName}/schema/analysis`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters
|
|
375
|
+
path: `/mongodb/collections/{collectionName}/schema/analysis`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"]))),
|
|
346
376
|
method: "GET",
|
|
347
377
|
headers: headerParameters,
|
|
348
378
|
query: queryParameters
|
|
@@ -375,7 +405,7 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
375
405
|
}
|
|
376
406
|
}
|
|
377
407
|
if (this.configuration && this.configuration.apiKey) {
|
|
378
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
408
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
379
409
|
}
|
|
380
410
|
const response = await this.request({
|
|
381
411
|
path: `/mongodb/collections`,
|
|
@@ -398,8 +428,11 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
398
428
|
* List of Collections
|
|
399
429
|
*/
|
|
400
430
|
async listCollectionsByDatabaseRaw(requestParameters, initOverrides) {
|
|
401
|
-
if (requestParameters
|
|
402
|
-
throw new runtime.RequiredError(
|
|
431
|
+
if (requestParameters["databaseName"] == null) {
|
|
432
|
+
throw new runtime.RequiredError(
|
|
433
|
+
"databaseName",
|
|
434
|
+
'Required parameter "databaseName" was null or undefined when calling listCollectionsByDatabase().'
|
|
435
|
+
);
|
|
403
436
|
}
|
|
404
437
|
const queryParameters = {};
|
|
405
438
|
const headerParameters = {};
|
|
@@ -414,10 +447,10 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
414
447
|
}
|
|
415
448
|
}
|
|
416
449
|
if (this.configuration && this.configuration.apiKey) {
|
|
417
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
450
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
418
451
|
}
|
|
419
452
|
const response = await this.request({
|
|
420
|
-
path: `/mongodb/databases/{databaseName}/collections`.replace(`{${"databaseName"}}`, encodeURIComponent(String(requestParameters
|
|
453
|
+
path: `/mongodb/databases/{databaseName}/collections`.replace(`{${"databaseName"}}`, encodeURIComponent(String(requestParameters["databaseName"]))),
|
|
421
454
|
method: "GET",
|
|
422
455
|
headers: headerParameters,
|
|
423
456
|
query: queryParameters
|
|
@@ -22,7 +22,7 @@ export class DatabaseApi extends runtime.BaseAPI {
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
if (this.configuration && this.configuration.apiKey) {
|
|
25
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
25
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
26
26
|
}
|
|
27
27
|
const response = await this.request({
|
|
28
28
|
path: `/mongodb/databases/infos`,
|
|
@@ -45,8 +45,11 @@ export class DatabaseApi extends runtime.BaseAPI {
|
|
|
45
45
|
* Delete Database
|
|
46
46
|
*/
|
|
47
47
|
async deleteDatabaseRaw(requestParameters, initOverrides) {
|
|
48
|
-
if (requestParameters
|
|
49
|
-
throw new runtime.RequiredError(
|
|
48
|
+
if (requestParameters["databaseName"] == null) {
|
|
49
|
+
throw new runtime.RequiredError(
|
|
50
|
+
"databaseName",
|
|
51
|
+
'Required parameter "databaseName" was null or undefined when calling deleteDatabase().'
|
|
52
|
+
);
|
|
50
53
|
}
|
|
51
54
|
const queryParameters = {};
|
|
52
55
|
const headerParameters = {};
|
|
@@ -61,10 +64,10 @@ export class DatabaseApi extends runtime.BaseAPI {
|
|
|
61
64
|
}
|
|
62
65
|
}
|
|
63
66
|
if (this.configuration && this.configuration.apiKey) {
|
|
64
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
67
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
65
68
|
}
|
|
66
69
|
const response = await this.request({
|
|
67
|
-
path: `/mongodb/databases/{databaseName}`.replace(`{${"databaseName"}}`, encodeURIComponent(String(requestParameters
|
|
70
|
+
path: `/mongodb/databases/{databaseName}`.replace(`{${"databaseName"}}`, encodeURIComponent(String(requestParameters["databaseName"]))),
|
|
68
71
|
method: "DELETE",
|
|
69
72
|
headers: headerParameters,
|
|
70
73
|
query: queryParameters
|
|
@@ -84,8 +87,11 @@ export class DatabaseApi extends runtime.BaseAPI {
|
|
|
84
87
|
* Database Infos of selected Database
|
|
85
88
|
*/
|
|
86
89
|
async getDatabaseInfoRaw(requestParameters, initOverrides) {
|
|
87
|
-
if (requestParameters
|
|
88
|
-
throw new runtime.RequiredError(
|
|
90
|
+
if (requestParameters["databaseName"] == null) {
|
|
91
|
+
throw new runtime.RequiredError(
|
|
92
|
+
"databaseName",
|
|
93
|
+
'Required parameter "databaseName" was null or undefined when calling getDatabaseInfo().'
|
|
94
|
+
);
|
|
89
95
|
}
|
|
90
96
|
const queryParameters = {};
|
|
91
97
|
const headerParameters = {};
|
|
@@ -100,10 +106,10 @@ export class DatabaseApi extends runtime.BaseAPI {
|
|
|
100
106
|
}
|
|
101
107
|
}
|
|
102
108
|
if (this.configuration && this.configuration.apiKey) {
|
|
103
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
109
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
104
110
|
}
|
|
105
111
|
const response = await this.request({
|
|
106
|
-
path: `/mongodb/databases/{databaseName}`.replace(`{${"databaseName"}}`, encodeURIComponent(String(requestParameters
|
|
112
|
+
path: `/mongodb/databases/{databaseName}`.replace(`{${"databaseName"}}`, encodeURIComponent(String(requestParameters["databaseName"]))),
|
|
107
113
|
method: "GET",
|
|
108
114
|
headers: headerParameters,
|
|
109
115
|
query: queryParameters
|
|
@@ -123,8 +129,11 @@ export class DatabaseApi extends runtime.BaseAPI {
|
|
|
123
129
|
* List of Collections
|
|
124
130
|
*/
|
|
125
131
|
async listCollectionsByDatabaseRaw(requestParameters, initOverrides) {
|
|
126
|
-
if (requestParameters
|
|
127
|
-
throw new runtime.RequiredError(
|
|
132
|
+
if (requestParameters["databaseName"] == null) {
|
|
133
|
+
throw new runtime.RequiredError(
|
|
134
|
+
"databaseName",
|
|
135
|
+
'Required parameter "databaseName" was null or undefined when calling listCollectionsByDatabase().'
|
|
136
|
+
);
|
|
128
137
|
}
|
|
129
138
|
const queryParameters = {};
|
|
130
139
|
const headerParameters = {};
|
|
@@ -139,10 +148,10 @@ export class DatabaseApi extends runtime.BaseAPI {
|
|
|
139
148
|
}
|
|
140
149
|
}
|
|
141
150
|
if (this.configuration && this.configuration.apiKey) {
|
|
142
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
151
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
143
152
|
}
|
|
144
153
|
const response = await this.request({
|
|
145
|
-
path: `/mongodb/databases/{databaseName}/collections`.replace(`{${"databaseName"}}`, encodeURIComponent(String(requestParameters
|
|
154
|
+
path: `/mongodb/databases/{databaseName}/collections`.replace(`{${"databaseName"}}`, encodeURIComponent(String(requestParameters["databaseName"]))),
|
|
146
155
|
method: "GET",
|
|
147
156
|
headers: headerParameters,
|
|
148
157
|
query: queryParameters
|
|
@@ -175,7 +184,7 @@ export class DatabaseApi extends runtime.BaseAPI {
|
|
|
175
184
|
}
|
|
176
185
|
}
|
|
177
186
|
if (this.configuration && this.configuration.apiKey) {
|
|
178
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
187
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
179
188
|
}
|
|
180
189
|
const response = await this.request({
|
|
181
190
|
path: `/mongodb/databases`,
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { DeleteResponse, InsertResponse, MongoFindRequest, UpdateResponse } from '../models/index';
|
|
13
|
+
import type { DeleteResponse, InsertResponse, MongoFindRequest, UpdateRequest, UpdateResponse } from '../models/index';
|
|
14
14
|
export interface DeleteRequest {
|
|
15
15
|
collectionName: string;
|
|
16
16
|
documentId: string;
|
|
@@ -19,7 +19,7 @@ export interface DeleteManyRequest {
|
|
|
19
19
|
collectionName: string;
|
|
20
20
|
requestBody: {
|
|
21
21
|
[key: string]: string;
|
|
22
|
-
}
|
|
22
|
+
};
|
|
23
23
|
}
|
|
24
24
|
export interface FindRequest {
|
|
25
25
|
collectionName: string;
|
|
@@ -35,7 +35,7 @@ export interface InsertRequest {
|
|
|
35
35
|
collectionName: string;
|
|
36
36
|
requestBody: {
|
|
37
37
|
[key: string]: string;
|
|
38
|
-
}
|
|
38
|
+
};
|
|
39
39
|
}
|
|
40
40
|
export interface InsertManyRequest {
|
|
41
41
|
collectionName: string;
|
|
@@ -56,14 +56,14 @@ export interface UpdateRequest {
|
|
|
56
56
|
documentId: string;
|
|
57
57
|
requestBody: {
|
|
58
58
|
[key: string]: string;
|
|
59
|
-
}
|
|
59
|
+
};
|
|
60
60
|
}
|
|
61
61
|
export interface UpdateDocumentPartialRequest {
|
|
62
62
|
collectionName: string;
|
|
63
63
|
documentId: string;
|
|
64
64
|
requestBody: {
|
|
65
65
|
[key: string]: string;
|
|
66
|
-
}
|
|
66
|
+
};
|
|
67
67
|
}
|
|
68
68
|
export interface UpdateManyRequest {
|
|
69
69
|
collectionName: string;
|