@sfxcode/nuxt-mongocamp-server 1.2.0 → 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/package.json +3 -2
|
@@ -12,21 +12,30 @@ export class IndexApi extends runtime.BaseAPI {
|
|
|
12
12
|
* Create expiring Index by Field for Collection
|
|
13
13
|
*/
|
|
14
14
|
async createExpiringIndexRaw(requestParameters, initOverrides) {
|
|
15
|
-
if (requestParameters
|
|
16
|
-
throw new runtime.RequiredError(
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
if (requestParameters
|
|
22
|
-
throw new runtime.RequiredError(
|
|
15
|
+
if (requestParameters["collectionName"] == null) {
|
|
16
|
+
throw new runtime.RequiredError(
|
|
17
|
+
"collectionName",
|
|
18
|
+
'Required parameter "collectionName" was null or undefined when calling createExpiringIndex().'
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
if (requestParameters["fieldName"] == null) {
|
|
22
|
+
throw new runtime.RequiredError(
|
|
23
|
+
"fieldName",
|
|
24
|
+
'Required parameter "fieldName" was null or undefined when calling createExpiringIndex().'
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
if (requestParameters["duration"] == null) {
|
|
28
|
+
throw new runtime.RequiredError(
|
|
29
|
+
"duration",
|
|
30
|
+
'Required parameter "duration" was null or undefined when calling createExpiringIndex().'
|
|
31
|
+
);
|
|
23
32
|
}
|
|
24
33
|
const queryParameters = {};
|
|
25
|
-
if (requestParameters
|
|
26
|
-
queryParameters["sortAscending"] = requestParameters
|
|
34
|
+
if (requestParameters["sortAscending"] != null) {
|
|
35
|
+
queryParameters["sortAscending"] = requestParameters["sortAscending"];
|
|
27
36
|
}
|
|
28
|
-
if (requestParameters
|
|
29
|
-
queryParameters["name"] = requestParameters
|
|
37
|
+
if (requestParameters["name"] != null) {
|
|
38
|
+
queryParameters["name"] = requestParameters["name"];
|
|
30
39
|
}
|
|
31
40
|
const headerParameters = {};
|
|
32
41
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
@@ -40,10 +49,10 @@ export class IndexApi extends runtime.BaseAPI {
|
|
|
40
49
|
}
|
|
41
50
|
}
|
|
42
51
|
if (this.configuration && this.configuration.apiKey) {
|
|
43
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
52
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
44
53
|
}
|
|
45
54
|
const response = await this.request({
|
|
46
|
-
path: `/mongodb/collections/{collectionName}/index/field/{fieldName}/{duration}/expiring`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters
|
|
55
|
+
path: `/mongodb/collections/{collectionName}/index/field/{fieldName}/{duration}/expiring`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"]))).replace(`{${"fieldName"}}`, encodeURIComponent(String(requestParameters["fieldName"]))).replace(`{${"duration"}}`, encodeURIComponent(String(requestParameters["duration"]))),
|
|
47
56
|
method: "PUT",
|
|
48
57
|
headers: headerParameters,
|
|
49
58
|
query: queryParameters
|
|
@@ -63,11 +72,17 @@ export class IndexApi extends runtime.BaseAPI {
|
|
|
63
72
|
* Create Index for Collection
|
|
64
73
|
*/
|
|
65
74
|
async createIndexRaw(requestParameters, initOverrides) {
|
|
66
|
-
if (requestParameters
|
|
67
|
-
throw new runtime.RequiredError(
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
75
|
+
if (requestParameters["collectionName"] == null) {
|
|
76
|
+
throw new runtime.RequiredError(
|
|
77
|
+
"collectionName",
|
|
78
|
+
'Required parameter "collectionName" was null or undefined when calling createIndex().'
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
if (requestParameters["indexCreateRequest"] == null) {
|
|
82
|
+
throw new runtime.RequiredError(
|
|
83
|
+
"indexCreateRequest",
|
|
84
|
+
'Required parameter "indexCreateRequest" was null or undefined when calling createIndex().'
|
|
85
|
+
);
|
|
71
86
|
}
|
|
72
87
|
const queryParameters = {};
|
|
73
88
|
const headerParameters = {};
|
|
@@ -83,14 +98,14 @@ export class IndexApi extends runtime.BaseAPI {
|
|
|
83
98
|
}
|
|
84
99
|
}
|
|
85
100
|
if (this.configuration && this.configuration.apiKey) {
|
|
86
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
101
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
87
102
|
}
|
|
88
103
|
const response = await this.request({
|
|
89
|
-
path: `/mongodb/collections/{collectionName}/index`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters
|
|
104
|
+
path: `/mongodb/collections/{collectionName}/index`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"]))),
|
|
90
105
|
method: "PUT",
|
|
91
106
|
headers: headerParameters,
|
|
92
107
|
query: queryParameters,
|
|
93
|
-
body: IndexCreateRequestToJSON(requestParameters
|
|
108
|
+
body: IndexCreateRequestToJSON(requestParameters["indexCreateRequest"])
|
|
94
109
|
}, initOverrides);
|
|
95
110
|
return new runtime.JSONApiResponse(response, (jsonValue) => IndexCreateResponseFromJSON(jsonValue));
|
|
96
111
|
}
|
|
@@ -107,15 +122,21 @@ export class IndexApi extends runtime.BaseAPI {
|
|
|
107
122
|
* Create Index by Field for Collection
|
|
108
123
|
*/
|
|
109
124
|
async createIndexForFieldRaw(requestParameters, initOverrides) {
|
|
110
|
-
if (requestParameters
|
|
111
|
-
throw new runtime.RequiredError(
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
125
|
+
if (requestParameters["collectionName"] == null) {
|
|
126
|
+
throw new runtime.RequiredError(
|
|
127
|
+
"collectionName",
|
|
128
|
+
'Required parameter "collectionName" was null or undefined when calling createIndexForField().'
|
|
129
|
+
);
|
|
130
|
+
}
|
|
131
|
+
if (requestParameters["fieldName"] == null) {
|
|
132
|
+
throw new runtime.RequiredError(
|
|
133
|
+
"fieldName",
|
|
134
|
+
'Required parameter "fieldName" was null or undefined when calling createIndexForField().'
|
|
135
|
+
);
|
|
115
136
|
}
|
|
116
137
|
const queryParameters = {};
|
|
117
|
-
if (requestParameters
|
|
118
|
-
queryParameters["sortAscending"] = requestParameters
|
|
138
|
+
if (requestParameters["sortAscending"] != null) {
|
|
139
|
+
queryParameters["sortAscending"] = requestParameters["sortAscending"];
|
|
119
140
|
}
|
|
120
141
|
const headerParameters = {};
|
|
121
142
|
headerParameters["Content-Type"] = "application/json";
|
|
@@ -130,14 +151,14 @@ export class IndexApi extends runtime.BaseAPI {
|
|
|
130
151
|
}
|
|
131
152
|
}
|
|
132
153
|
if (this.configuration && this.configuration.apiKey) {
|
|
133
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
154
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
134
155
|
}
|
|
135
156
|
const response = await this.request({
|
|
136
|
-
path: `/mongodb/collections/{collectionName}/index/field/{fieldName}`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters
|
|
157
|
+
path: `/mongodb/collections/{collectionName}/index/field/{fieldName}`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"]))).replace(`{${"fieldName"}}`, encodeURIComponent(String(requestParameters["fieldName"]))),
|
|
137
158
|
method: "PUT",
|
|
138
159
|
headers: headerParameters,
|
|
139
160
|
query: queryParameters,
|
|
140
|
-
body: IndexOptionsRequestToJSON(requestParameters
|
|
161
|
+
body: IndexOptionsRequestToJSON(requestParameters["indexOptionsRequest"])
|
|
141
162
|
}, initOverrides);
|
|
142
163
|
return new runtime.JSONApiResponse(response, (jsonValue) => IndexCreateResponseFromJSON(jsonValue));
|
|
143
164
|
}
|
|
@@ -154,11 +175,17 @@ export class IndexApi extends runtime.BaseAPI {
|
|
|
154
175
|
* Create text index by field for collection
|
|
155
176
|
*/
|
|
156
177
|
async createTextIndexRaw(requestParameters, initOverrides) {
|
|
157
|
-
if (requestParameters
|
|
158
|
-
throw new runtime.RequiredError(
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
178
|
+
if (requestParameters["collectionName"] == null) {
|
|
179
|
+
throw new runtime.RequiredError(
|
|
180
|
+
"collectionName",
|
|
181
|
+
'Required parameter "collectionName" was null or undefined when calling createTextIndex().'
|
|
182
|
+
);
|
|
183
|
+
}
|
|
184
|
+
if (requestParameters["fieldName"] == null) {
|
|
185
|
+
throw new runtime.RequiredError(
|
|
186
|
+
"fieldName",
|
|
187
|
+
'Required parameter "fieldName" was null or undefined when calling createTextIndex().'
|
|
188
|
+
);
|
|
162
189
|
}
|
|
163
190
|
const queryParameters = {};
|
|
164
191
|
const headerParameters = {};
|
|
@@ -174,14 +201,14 @@ export class IndexApi extends runtime.BaseAPI {
|
|
|
174
201
|
}
|
|
175
202
|
}
|
|
176
203
|
if (this.configuration && this.configuration.apiKey) {
|
|
177
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
204
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
178
205
|
}
|
|
179
206
|
const response = await this.request({
|
|
180
|
-
path: `/mongodb/collections/{collectionName}/index/field/{fieldName}/text`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters
|
|
207
|
+
path: `/mongodb/collections/{collectionName}/index/field/{fieldName}/text`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"]))).replace(`{${"fieldName"}}`, encodeURIComponent(String(requestParameters["fieldName"]))),
|
|
181
208
|
method: "PUT",
|
|
182
209
|
headers: headerParameters,
|
|
183
210
|
query: queryParameters,
|
|
184
|
-
body: IndexOptionsRequestToJSON(requestParameters
|
|
211
|
+
body: IndexOptionsRequestToJSON(requestParameters["indexOptionsRequest"])
|
|
185
212
|
}, initOverrides);
|
|
186
213
|
return new runtime.JSONApiResponse(response, (jsonValue) => IndexCreateResponseFromJSON(jsonValue));
|
|
187
214
|
}
|
|
@@ -198,18 +225,24 @@ export class IndexApi extends runtime.BaseAPI {
|
|
|
198
225
|
* Create Unique Index
|
|
199
226
|
*/
|
|
200
227
|
async createUniqueIndexRaw(requestParameters, initOverrides) {
|
|
201
|
-
if (requestParameters
|
|
202
|
-
throw new runtime.RequiredError(
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
228
|
+
if (requestParameters["collectionName"] == null) {
|
|
229
|
+
throw new runtime.RequiredError(
|
|
230
|
+
"collectionName",
|
|
231
|
+
'Required parameter "collectionName" was null or undefined when calling createUniqueIndex().'
|
|
232
|
+
);
|
|
233
|
+
}
|
|
234
|
+
if (requestParameters["fieldName"] == null) {
|
|
235
|
+
throw new runtime.RequiredError(
|
|
236
|
+
"fieldName",
|
|
237
|
+
'Required parameter "fieldName" was null or undefined when calling createUniqueIndex().'
|
|
238
|
+
);
|
|
206
239
|
}
|
|
207
240
|
const queryParameters = {};
|
|
208
|
-
if (requestParameters
|
|
209
|
-
queryParameters["sortAscending"] = requestParameters
|
|
241
|
+
if (requestParameters["sortAscending"] != null) {
|
|
242
|
+
queryParameters["sortAscending"] = requestParameters["sortAscending"];
|
|
210
243
|
}
|
|
211
|
-
if (requestParameters
|
|
212
|
-
queryParameters["name"] = requestParameters
|
|
244
|
+
if (requestParameters["name"] != null) {
|
|
245
|
+
queryParameters["name"] = requestParameters["name"];
|
|
213
246
|
}
|
|
214
247
|
const headerParameters = {};
|
|
215
248
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
@@ -223,10 +256,10 @@ export class IndexApi extends runtime.BaseAPI {
|
|
|
223
256
|
}
|
|
224
257
|
}
|
|
225
258
|
if (this.configuration && this.configuration.apiKey) {
|
|
226
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
259
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
227
260
|
}
|
|
228
261
|
const response = await this.request({
|
|
229
|
-
path: `/mongodb/collections/{collectionName}/index/field/{fieldName}/unique`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters
|
|
262
|
+
path: `/mongodb/collections/{collectionName}/index/field/{fieldName}/unique`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"]))).replace(`{${"fieldName"}}`, encodeURIComponent(String(requestParameters["fieldName"]))),
|
|
230
263
|
method: "PUT",
|
|
231
264
|
headers: headerParameters,
|
|
232
265
|
query: queryParameters
|
|
@@ -246,11 +279,17 @@ export class IndexApi extends runtime.BaseAPI {
|
|
|
246
279
|
* Delete Index
|
|
247
280
|
*/
|
|
248
281
|
async deleteIndexRaw(requestParameters, initOverrides) {
|
|
249
|
-
if (requestParameters
|
|
250
|
-
throw new runtime.RequiredError(
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
282
|
+
if (requestParameters["collectionName"] == null) {
|
|
283
|
+
throw new runtime.RequiredError(
|
|
284
|
+
"collectionName",
|
|
285
|
+
'Required parameter "collectionName" was null or undefined when calling deleteIndex().'
|
|
286
|
+
);
|
|
287
|
+
}
|
|
288
|
+
if (requestParameters["indexName"] == null) {
|
|
289
|
+
throw new runtime.RequiredError(
|
|
290
|
+
"indexName",
|
|
291
|
+
'Required parameter "indexName" was null or undefined when calling deleteIndex().'
|
|
292
|
+
);
|
|
254
293
|
}
|
|
255
294
|
const queryParameters = {};
|
|
256
295
|
const headerParameters = {};
|
|
@@ -265,10 +304,10 @@ export class IndexApi extends runtime.BaseAPI {
|
|
|
265
304
|
}
|
|
266
305
|
}
|
|
267
306
|
if (this.configuration && this.configuration.apiKey) {
|
|
268
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
307
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
269
308
|
}
|
|
270
309
|
const response = await this.request({
|
|
271
|
-
path: `/mongodb/collections/{collectionName}/index/{indexName}`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters
|
|
310
|
+
path: `/mongodb/collections/{collectionName}/index/{indexName}`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"]))).replace(`{${"indexName"}}`, encodeURIComponent(String(requestParameters["indexName"]))),
|
|
272
311
|
method: "DELETE",
|
|
273
312
|
headers: headerParameters,
|
|
274
313
|
query: queryParameters
|
|
@@ -288,11 +327,17 @@ export class IndexApi extends runtime.BaseAPI {
|
|
|
288
327
|
* Index for Collection
|
|
289
328
|
*/
|
|
290
329
|
async indexRaw(requestParameters, initOverrides) {
|
|
291
|
-
if (requestParameters
|
|
292
|
-
throw new runtime.RequiredError(
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
330
|
+
if (requestParameters["collectionName"] == null) {
|
|
331
|
+
throw new runtime.RequiredError(
|
|
332
|
+
"collectionName",
|
|
333
|
+
'Required parameter "collectionName" was null or undefined when calling index().'
|
|
334
|
+
);
|
|
335
|
+
}
|
|
336
|
+
if (requestParameters["indexName"] == null) {
|
|
337
|
+
throw new runtime.RequiredError(
|
|
338
|
+
"indexName",
|
|
339
|
+
'Required parameter "indexName" was null or undefined when calling index().'
|
|
340
|
+
);
|
|
296
341
|
}
|
|
297
342
|
const queryParameters = {};
|
|
298
343
|
const headerParameters = {};
|
|
@@ -307,10 +352,10 @@ export class IndexApi extends runtime.BaseAPI {
|
|
|
307
352
|
}
|
|
308
353
|
}
|
|
309
354
|
if (this.configuration && this.configuration.apiKey) {
|
|
310
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
355
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
311
356
|
}
|
|
312
357
|
const response = await this.request({
|
|
313
|
-
path: `/mongodb/collections/{collectionName}/index/{indexName}`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters
|
|
358
|
+
path: `/mongodb/collections/{collectionName}/index/{indexName}`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"]))).replace(`{${"indexName"}}`, encodeURIComponent(String(requestParameters["indexName"]))),
|
|
314
359
|
method: "GET",
|
|
315
360
|
headers: headerParameters,
|
|
316
361
|
query: queryParameters
|
|
@@ -330,8 +375,11 @@ export class IndexApi extends runtime.BaseAPI {
|
|
|
330
375
|
* List Indices for Collection
|
|
331
376
|
*/
|
|
332
377
|
async listIndicesRaw(requestParameters, initOverrides) {
|
|
333
|
-
if (requestParameters
|
|
334
|
-
throw new runtime.RequiredError(
|
|
378
|
+
if (requestParameters["collectionName"] == null) {
|
|
379
|
+
throw new runtime.RequiredError(
|
|
380
|
+
"collectionName",
|
|
381
|
+
'Required parameter "collectionName" was null or undefined when calling listIndices().'
|
|
382
|
+
);
|
|
335
383
|
}
|
|
336
384
|
const queryParameters = {};
|
|
337
385
|
const headerParameters = {};
|
|
@@ -346,10 +394,10 @@ export class IndexApi extends runtime.BaseAPI {
|
|
|
346
394
|
}
|
|
347
395
|
}
|
|
348
396
|
if (this.configuration && this.configuration.apiKey) {
|
|
349
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
397
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
350
398
|
}
|
|
351
399
|
const response = await this.request({
|
|
352
|
-
path: `/mongodb/collections/{collectionName}/index`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters
|
|
400
|
+
path: `/mongodb/collections/{collectionName}/index`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"]))),
|
|
353
401
|
method: "GET",
|
|
354
402
|
headers: headerParameters,
|
|
355
403
|
query: queryParameters
|
|
@@ -10,11 +10,17 @@ export class JobsApi extends runtime.BaseAPI {
|
|
|
10
10
|
* Delete Job
|
|
11
11
|
*/
|
|
12
12
|
async deleteJobRaw(requestParameters, initOverrides) {
|
|
13
|
-
if (requestParameters
|
|
14
|
-
throw new runtime.RequiredError(
|
|
13
|
+
if (requestParameters["jobGroup"] == null) {
|
|
14
|
+
throw new runtime.RequiredError(
|
|
15
|
+
"jobGroup",
|
|
16
|
+
'Required parameter "jobGroup" was null or undefined when calling deleteJob().'
|
|
17
|
+
);
|
|
15
18
|
}
|
|
16
|
-
if (requestParameters
|
|
17
|
-
throw new runtime.RequiredError(
|
|
19
|
+
if (requestParameters["jobName"] == null) {
|
|
20
|
+
throw new runtime.RequiredError(
|
|
21
|
+
"jobName",
|
|
22
|
+
'Required parameter "jobName" was null or undefined when calling deleteJob().'
|
|
23
|
+
);
|
|
18
24
|
}
|
|
19
25
|
const queryParameters = {};
|
|
20
26
|
const headerParameters = {};
|
|
@@ -29,10 +35,10 @@ export class JobsApi extends runtime.BaseAPI {
|
|
|
29
35
|
}
|
|
30
36
|
}
|
|
31
37
|
if (this.configuration && this.configuration.apiKey) {
|
|
32
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
38
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
33
39
|
}
|
|
34
40
|
const response = await this.request({
|
|
35
|
-
path: `/system/jobs/{jobGroup}/{jobName}`.replace(`{${"jobGroup"}}`, encodeURIComponent(String(requestParameters
|
|
41
|
+
path: `/system/jobs/{jobGroup}/{jobName}`.replace(`{${"jobGroup"}}`, encodeURIComponent(String(requestParameters["jobGroup"]))).replace(`{${"jobName"}}`, encodeURIComponent(String(requestParameters["jobName"]))),
|
|
36
42
|
method: "DELETE",
|
|
37
43
|
headers: headerParameters,
|
|
38
44
|
query: queryParameters
|
|
@@ -52,11 +58,17 @@ export class JobsApi extends runtime.BaseAPI {
|
|
|
52
58
|
* Execute Job
|
|
53
59
|
*/
|
|
54
60
|
async executeJobRaw(requestParameters, initOverrides) {
|
|
55
|
-
if (requestParameters
|
|
56
|
-
throw new runtime.RequiredError(
|
|
61
|
+
if (requestParameters["jobGroup"] == null) {
|
|
62
|
+
throw new runtime.RequiredError(
|
|
63
|
+
"jobGroup",
|
|
64
|
+
'Required parameter "jobGroup" was null or undefined when calling executeJob().'
|
|
65
|
+
);
|
|
57
66
|
}
|
|
58
|
-
if (requestParameters
|
|
59
|
-
throw new runtime.RequiredError(
|
|
67
|
+
if (requestParameters["jobName"] == null) {
|
|
68
|
+
throw new runtime.RequiredError(
|
|
69
|
+
"jobName",
|
|
70
|
+
'Required parameter "jobName" was null or undefined when calling executeJob().'
|
|
71
|
+
);
|
|
60
72
|
}
|
|
61
73
|
const queryParameters = {};
|
|
62
74
|
const headerParameters = {};
|
|
@@ -71,10 +83,10 @@ export class JobsApi extends runtime.BaseAPI {
|
|
|
71
83
|
}
|
|
72
84
|
}
|
|
73
85
|
if (this.configuration && this.configuration.apiKey) {
|
|
74
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
86
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
75
87
|
}
|
|
76
88
|
const response = await this.request({
|
|
77
|
-
path: `/system/jobs/{jobGroup}/{jobName}`.replace(`{${"jobGroup"}}`, encodeURIComponent(String(requestParameters
|
|
89
|
+
path: `/system/jobs/{jobGroup}/{jobName}`.replace(`{${"jobGroup"}}`, encodeURIComponent(String(requestParameters["jobGroup"]))).replace(`{${"jobName"}}`, encodeURIComponent(String(requestParameters["jobName"]))),
|
|
78
90
|
method: "POST",
|
|
79
91
|
headers: headerParameters,
|
|
80
92
|
query: queryParameters
|
|
@@ -107,7 +119,7 @@ export class JobsApi extends runtime.BaseAPI {
|
|
|
107
119
|
}
|
|
108
120
|
}
|
|
109
121
|
if (this.configuration && this.configuration.apiKey) {
|
|
110
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
122
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
111
123
|
}
|
|
112
124
|
const response = await this.request({
|
|
113
125
|
path: `/system/jobs`,
|
|
@@ -143,7 +155,7 @@ export class JobsApi extends runtime.BaseAPI {
|
|
|
143
155
|
}
|
|
144
156
|
}
|
|
145
157
|
if (this.configuration && this.configuration.apiKey) {
|
|
146
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
158
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
147
159
|
}
|
|
148
160
|
const response = await this.request({
|
|
149
161
|
path: `/system/jobs/classes`,
|
|
@@ -166,8 +178,11 @@ export class JobsApi extends runtime.BaseAPI {
|
|
|
166
178
|
* Register Job
|
|
167
179
|
*/
|
|
168
180
|
async registerJobRaw(requestParameters, initOverrides) {
|
|
169
|
-
if (requestParameters
|
|
170
|
-
throw new runtime.RequiredError(
|
|
181
|
+
if (requestParameters["jobConfig"] == null) {
|
|
182
|
+
throw new runtime.RequiredError(
|
|
183
|
+
"jobConfig",
|
|
184
|
+
'Required parameter "jobConfig" was null or undefined when calling registerJob().'
|
|
185
|
+
);
|
|
171
186
|
}
|
|
172
187
|
const queryParameters = {};
|
|
173
188
|
const headerParameters = {};
|
|
@@ -183,14 +198,14 @@ export class JobsApi extends runtime.BaseAPI {
|
|
|
183
198
|
}
|
|
184
199
|
}
|
|
185
200
|
if (this.configuration && this.configuration.apiKey) {
|
|
186
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
201
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
187
202
|
}
|
|
188
203
|
const response = await this.request({
|
|
189
204
|
path: `/system/jobs`,
|
|
190
205
|
method: "PUT",
|
|
191
206
|
headers: headerParameters,
|
|
192
207
|
query: queryParameters,
|
|
193
|
-
body: JobConfigToJSON(requestParameters
|
|
208
|
+
body: JobConfigToJSON(requestParameters["jobConfig"])
|
|
194
209
|
}, initOverrides);
|
|
195
210
|
return new runtime.JSONApiResponse(response, (jsonValue) => JobInformationFromJSON(jsonValue));
|
|
196
211
|
}
|
|
@@ -207,14 +222,23 @@ export class JobsApi extends runtime.BaseAPI {
|
|
|
207
222
|
* Update Job
|
|
208
223
|
*/
|
|
209
224
|
async updateJobRaw(requestParameters, initOverrides) {
|
|
210
|
-
if (requestParameters
|
|
211
|
-
throw new runtime.RequiredError(
|
|
225
|
+
if (requestParameters["jobGroup"] == null) {
|
|
226
|
+
throw new runtime.RequiredError(
|
|
227
|
+
"jobGroup",
|
|
228
|
+
'Required parameter "jobGroup" was null or undefined when calling updateJob().'
|
|
229
|
+
);
|
|
212
230
|
}
|
|
213
|
-
if (requestParameters
|
|
214
|
-
throw new runtime.RequiredError(
|
|
231
|
+
if (requestParameters["jobName"] == null) {
|
|
232
|
+
throw new runtime.RequiredError(
|
|
233
|
+
"jobName",
|
|
234
|
+
'Required parameter "jobName" was null or undefined when calling updateJob().'
|
|
235
|
+
);
|
|
215
236
|
}
|
|
216
|
-
if (requestParameters
|
|
217
|
-
throw new runtime.RequiredError(
|
|
237
|
+
if (requestParameters["jobConfig"] == null) {
|
|
238
|
+
throw new runtime.RequiredError(
|
|
239
|
+
"jobConfig",
|
|
240
|
+
'Required parameter "jobConfig" was null or undefined when calling updateJob().'
|
|
241
|
+
);
|
|
218
242
|
}
|
|
219
243
|
const queryParameters = {};
|
|
220
244
|
const headerParameters = {};
|
|
@@ -230,14 +254,14 @@ export class JobsApi extends runtime.BaseAPI {
|
|
|
230
254
|
}
|
|
231
255
|
}
|
|
232
256
|
if (this.configuration && this.configuration.apiKey) {
|
|
233
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
257
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
234
258
|
}
|
|
235
259
|
const response = await this.request({
|
|
236
|
-
path: `/system/jobs/{jobGroup}/{jobName}`.replace(`{${"jobGroup"}}`, encodeURIComponent(String(requestParameters
|
|
260
|
+
path: `/system/jobs/{jobGroup}/{jobName}`.replace(`{${"jobGroup"}}`, encodeURIComponent(String(requestParameters["jobGroup"]))).replace(`{${"jobName"}}`, encodeURIComponent(String(requestParameters["jobName"]))),
|
|
237
261
|
method: "PATCH",
|
|
238
262
|
headers: headerParameters,
|
|
239
263
|
query: queryParameters,
|
|
240
|
-
body: JobConfigToJSON(requestParameters
|
|
264
|
+
body: JobConfigToJSON(requestParameters["jobConfig"])
|
|
241
265
|
}, initOverrides);
|
|
242
266
|
return new runtime.JSONApiResponse(response, (jsonValue) => JobInformationFromJSON(jsonValue));
|
|
243
267
|
}
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
export function instanceOfBucketInformation(value) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
if (!("name" in value))
|
|
3
|
+
return false;
|
|
4
|
+
if (!("files" in value))
|
|
5
|
+
return false;
|
|
6
|
+
if (!("size" in value))
|
|
7
|
+
return false;
|
|
8
|
+
if (!("avgObjectSize" in value))
|
|
9
|
+
return false;
|
|
10
|
+
return true;
|
|
8
11
|
}
|
|
9
12
|
export function BucketInformationFromJSON(json) {
|
|
10
13
|
return BucketInformationFromJSONTyped(json, false);
|
|
11
14
|
}
|
|
12
15
|
export function BucketInformationFromJSONTyped(json, ignoreDiscriminator) {
|
|
13
|
-
if (json
|
|
16
|
+
if (json == null) {
|
|
14
17
|
return json;
|
|
15
18
|
}
|
|
16
19
|
return {
|
|
@@ -21,16 +24,13 @@ export function BucketInformationFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
21
24
|
};
|
|
22
25
|
}
|
|
23
26
|
export function BucketInformationToJSON(value) {
|
|
24
|
-
if (value
|
|
25
|
-
return
|
|
26
|
-
}
|
|
27
|
-
if (value === null) {
|
|
28
|
-
return null;
|
|
27
|
+
if (value == null) {
|
|
28
|
+
return value;
|
|
29
29
|
}
|
|
30
30
|
return {
|
|
31
|
-
"name": value
|
|
32
|
-
"files": value
|
|
33
|
-
"size": value
|
|
34
|
-
"avgObjectSize": value
|
|
31
|
+
"name": value["name"],
|
|
32
|
+
"files": value["files"],
|
|
33
|
+
"size": value["size"],
|
|
34
|
+
"avgObjectSize": value["avgObjectSize"]
|
|
35
35
|
};
|
|
36
36
|
}
|
|
@@ -70,7 +70,7 @@ export interface CollectionStatus {
|
|
|
70
70
|
*/
|
|
71
71
|
indexSizes: {
|
|
72
72
|
[key: string]: number;
|
|
73
|
-
}
|
|
73
|
+
};
|
|
74
74
|
/**
|
|
75
75
|
*
|
|
76
76
|
* @type {number}
|
|
@@ -96,7 +96,7 @@ export interface CollectionStatus {
|
|
|
96
96
|
*/
|
|
97
97
|
map: {
|
|
98
98
|
[key: string]: string;
|
|
99
|
-
}
|
|
99
|
+
};
|
|
100
100
|
}
|
|
101
101
|
/**
|
|
102
102
|
* Check if a given object implements the CollectionStatus interface.
|