@sfxcode/nuxt-mongocamp-server 1.3.0 → 1.4.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 +5 -4
- package/dist/runtime/api/.openapi-generator/VERSION +1 -1
- package/dist/runtime/api/apis/AdminApi.d.ts +48 -0
- package/dist/runtime/api/apis/AdminApi.js +144 -60
- package/dist/runtime/api/apis/ApplicationApi.d.ts +20 -0
- package/dist/runtime/api/apis/ApplicationApi.js +60 -25
- package/dist/runtime/api/apis/AuthApi.d.ts +32 -0
- package/dist/runtime/api/apis/AuthApi.js +96 -40
- package/dist/runtime/api/apis/BucketApi.d.ts +16 -0
- package/dist/runtime/api/apis/BucketApi.js +48 -20
- package/dist/runtime/api/apis/CollectionApi.d.ts +40 -0
- package/dist/runtime/api/apis/CollectionApi.js +120 -50
- package/dist/runtime/api/apis/DatabaseApi.d.ts +20 -0
- package/dist/runtime/api/apis/DatabaseApi.js +60 -25
- package/dist/runtime/api/apis/DocumentApi.d.ts +40 -0
- package/dist/runtime/api/apis/DocumentApi.js +120 -50
- package/dist/runtime/api/apis/FileApi.d.ts +28 -0
- package/dist/runtime/api/apis/FileApi.js +84 -35
- package/dist/runtime/api/apis/IndexApi.d.ts +32 -0
- package/dist/runtime/api/apis/IndexApi.js +96 -40
- package/dist/runtime/api/apis/InformationApi.d.ts +4 -0
- package/dist/runtime/api/apis/InformationApi.js +12 -5
- package/dist/runtime/api/apis/JobsApi.d.ts +24 -0
- package/dist/runtime/api/apis/JobsApi.js +72 -30
- package/dist/runtime/api/runtime.js +12 -0
- package/package.json +13 -13
|
@@ -8,10 +8,9 @@ import {
|
|
|
8
8
|
} from "../models/index.js";
|
|
9
9
|
export class IndexApi extends runtime.BaseAPI {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
* Create expiring Index by Field for Collection
|
|
11
|
+
* Creates request options for createExpiringIndex without sending the request
|
|
13
12
|
*/
|
|
14
|
-
async
|
|
13
|
+
async createExpiringIndexRequestOpts(requestParameters) {
|
|
15
14
|
if (requestParameters["collectionName"] == null) {
|
|
16
15
|
throw new runtime.RequiredError(
|
|
17
16
|
"collectionName",
|
|
@@ -55,12 +54,20 @@ export class IndexApi extends runtime.BaseAPI {
|
|
|
55
54
|
urlPath = urlPath.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"])));
|
|
56
55
|
urlPath = urlPath.replace(`{${"fieldName"}}`, encodeURIComponent(String(requestParameters["fieldName"])));
|
|
57
56
|
urlPath = urlPath.replace(`{${"duration"}}`, encodeURIComponent(String(requestParameters["duration"])));
|
|
58
|
-
|
|
57
|
+
return {
|
|
59
58
|
path: urlPath,
|
|
60
59
|
method: "PUT",
|
|
61
60
|
headers: headerParameters,
|
|
62
61
|
query: queryParameters
|
|
63
|
-
}
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Create expiring Index by Field for given Collection
|
|
66
|
+
* Create expiring Index by Field for Collection
|
|
67
|
+
*/
|
|
68
|
+
async createExpiringIndexRaw(requestParameters, initOverrides) {
|
|
69
|
+
const requestOptions = await this.createExpiringIndexRequestOpts(requestParameters);
|
|
70
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
64
71
|
return new runtime.JSONApiResponse(response, (jsonValue) => IndexCreateResponseFromJSON(jsonValue));
|
|
65
72
|
}
|
|
66
73
|
/**
|
|
@@ -72,10 +79,9 @@ export class IndexApi extends runtime.BaseAPI {
|
|
|
72
79
|
return await response.value();
|
|
73
80
|
}
|
|
74
81
|
/**
|
|
75
|
-
*
|
|
76
|
-
* Create Index for Collection
|
|
82
|
+
* Creates request options for createIndex without sending the request
|
|
77
83
|
*/
|
|
78
|
-
async
|
|
84
|
+
async createIndexRequestOpts(requestParameters) {
|
|
79
85
|
if (requestParameters["collectionName"] == null) {
|
|
80
86
|
throw new runtime.RequiredError(
|
|
81
87
|
"collectionName",
|
|
@@ -106,13 +112,21 @@ export class IndexApi extends runtime.BaseAPI {
|
|
|
106
112
|
}
|
|
107
113
|
let urlPath = `/mongodb/collections/{collectionName}/index`;
|
|
108
114
|
urlPath = urlPath.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"])));
|
|
109
|
-
|
|
115
|
+
return {
|
|
110
116
|
path: urlPath,
|
|
111
117
|
method: "PUT",
|
|
112
118
|
headers: headerParameters,
|
|
113
119
|
query: queryParameters,
|
|
114
120
|
body: IndexCreateRequestToJSON(requestParameters["indexCreateRequest"])
|
|
115
|
-
}
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Create Index for given Collection
|
|
125
|
+
* Create Index for Collection
|
|
126
|
+
*/
|
|
127
|
+
async createIndexRaw(requestParameters, initOverrides) {
|
|
128
|
+
const requestOptions = await this.createIndexRequestOpts(requestParameters);
|
|
129
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
116
130
|
return new runtime.JSONApiResponse(response, (jsonValue) => IndexCreateResponseFromJSON(jsonValue));
|
|
117
131
|
}
|
|
118
132
|
/**
|
|
@@ -124,10 +138,9 @@ export class IndexApi extends runtime.BaseAPI {
|
|
|
124
138
|
return await response.value();
|
|
125
139
|
}
|
|
126
140
|
/**
|
|
127
|
-
*
|
|
128
|
-
* Create Index by Field for Collection
|
|
141
|
+
* Creates request options for createIndexForField without sending the request
|
|
129
142
|
*/
|
|
130
|
-
async
|
|
143
|
+
async createIndexForFieldRequestOpts(requestParameters) {
|
|
131
144
|
if (requestParameters["collectionName"] == null) {
|
|
132
145
|
throw new runtime.RequiredError(
|
|
133
146
|
"collectionName",
|
|
@@ -162,13 +175,21 @@ export class IndexApi extends runtime.BaseAPI {
|
|
|
162
175
|
let urlPath = `/mongodb/collections/{collectionName}/index/field/{fieldName}`;
|
|
163
176
|
urlPath = urlPath.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"])));
|
|
164
177
|
urlPath = urlPath.replace(`{${"fieldName"}}`, encodeURIComponent(String(requestParameters["fieldName"])));
|
|
165
|
-
|
|
178
|
+
return {
|
|
166
179
|
path: urlPath,
|
|
167
180
|
method: "PUT",
|
|
168
181
|
headers: headerParameters,
|
|
169
182
|
query: queryParameters,
|
|
170
183
|
body: IndexOptionsRequestToJSON(requestParameters["indexOptionsRequest"])
|
|
171
|
-
}
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Create Index by Field for given Collection
|
|
188
|
+
* Create Index by Field for Collection
|
|
189
|
+
*/
|
|
190
|
+
async createIndexForFieldRaw(requestParameters, initOverrides) {
|
|
191
|
+
const requestOptions = await this.createIndexForFieldRequestOpts(requestParameters);
|
|
192
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
172
193
|
return new runtime.JSONApiResponse(response, (jsonValue) => IndexCreateResponseFromJSON(jsonValue));
|
|
173
194
|
}
|
|
174
195
|
/**
|
|
@@ -180,10 +201,9 @@ export class IndexApi extends runtime.BaseAPI {
|
|
|
180
201
|
return await response.value();
|
|
181
202
|
}
|
|
182
203
|
/**
|
|
183
|
-
*
|
|
184
|
-
* Create text index by field for collection
|
|
204
|
+
* Creates request options for createTextIndex without sending the request
|
|
185
205
|
*/
|
|
186
|
-
async
|
|
206
|
+
async createTextIndexRequestOpts(requestParameters) {
|
|
187
207
|
if (requestParameters["collectionName"] == null) {
|
|
188
208
|
throw new runtime.RequiredError(
|
|
189
209
|
"collectionName",
|
|
@@ -215,13 +235,21 @@ export class IndexApi extends runtime.BaseAPI {
|
|
|
215
235
|
let urlPath = `/mongodb/collections/{collectionName}/index/field/{fieldName}/text`;
|
|
216
236
|
urlPath = urlPath.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"])));
|
|
217
237
|
urlPath = urlPath.replace(`{${"fieldName"}}`, encodeURIComponent(String(requestParameters["fieldName"])));
|
|
218
|
-
|
|
238
|
+
return {
|
|
219
239
|
path: urlPath,
|
|
220
240
|
method: "PUT",
|
|
221
241
|
headers: headerParameters,
|
|
222
242
|
query: queryParameters,
|
|
223
243
|
body: IndexOptionsRequestToJSON(requestParameters["indexOptionsRequest"])
|
|
224
|
-
}
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* Create text index by field for given collection
|
|
248
|
+
* Create text index by field for collection
|
|
249
|
+
*/
|
|
250
|
+
async createTextIndexRaw(requestParameters, initOverrides) {
|
|
251
|
+
const requestOptions = await this.createTextIndexRequestOpts(requestParameters);
|
|
252
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
225
253
|
return new runtime.JSONApiResponse(response, (jsonValue) => IndexCreateResponseFromJSON(jsonValue));
|
|
226
254
|
}
|
|
227
255
|
/**
|
|
@@ -233,10 +261,9 @@ export class IndexApi extends runtime.BaseAPI {
|
|
|
233
261
|
return await response.value();
|
|
234
262
|
}
|
|
235
263
|
/**
|
|
236
|
-
*
|
|
237
|
-
* Create Unique Index
|
|
264
|
+
* Creates request options for createUniqueIndex without sending the request
|
|
238
265
|
*/
|
|
239
|
-
async
|
|
266
|
+
async createUniqueIndexRequestOpts(requestParameters) {
|
|
240
267
|
if (requestParameters["collectionName"] == null) {
|
|
241
268
|
throw new runtime.RequiredError(
|
|
242
269
|
"collectionName",
|
|
@@ -273,12 +300,20 @@ export class IndexApi extends runtime.BaseAPI {
|
|
|
273
300
|
let urlPath = `/mongodb/collections/{collectionName}/index/field/{fieldName}/unique`;
|
|
274
301
|
urlPath = urlPath.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"])));
|
|
275
302
|
urlPath = urlPath.replace(`{${"fieldName"}}`, encodeURIComponent(String(requestParameters["fieldName"])));
|
|
276
|
-
|
|
303
|
+
return {
|
|
277
304
|
path: urlPath,
|
|
278
305
|
method: "PUT",
|
|
279
306
|
headers: headerParameters,
|
|
280
307
|
query: queryParameters
|
|
281
|
-
}
|
|
308
|
+
};
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* Create Unique Index by Field for given Collection
|
|
312
|
+
* Create Unique Index
|
|
313
|
+
*/
|
|
314
|
+
async createUniqueIndexRaw(requestParameters, initOverrides) {
|
|
315
|
+
const requestOptions = await this.createUniqueIndexRequestOpts(requestParameters);
|
|
316
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
282
317
|
return new runtime.JSONApiResponse(response, (jsonValue) => IndexCreateResponseFromJSON(jsonValue));
|
|
283
318
|
}
|
|
284
319
|
/**
|
|
@@ -290,10 +325,9 @@ export class IndexApi extends runtime.BaseAPI {
|
|
|
290
325
|
return await response.value();
|
|
291
326
|
}
|
|
292
327
|
/**
|
|
293
|
-
*
|
|
294
|
-
* Delete Index
|
|
328
|
+
* Creates request options for deleteIndex without sending the request
|
|
295
329
|
*/
|
|
296
|
-
async
|
|
330
|
+
async deleteIndexRequestOpts(requestParameters) {
|
|
297
331
|
if (requestParameters["collectionName"] == null) {
|
|
298
332
|
throw new runtime.RequiredError(
|
|
299
333
|
"collectionName",
|
|
@@ -324,12 +358,20 @@ export class IndexApi extends runtime.BaseAPI {
|
|
|
324
358
|
let urlPath = `/mongodb/collections/{collectionName}/index/{indexName}`;
|
|
325
359
|
urlPath = urlPath.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"])));
|
|
326
360
|
urlPath = urlPath.replace(`{${"indexName"}}`, encodeURIComponent(String(requestParameters["indexName"])));
|
|
327
|
-
|
|
361
|
+
return {
|
|
328
362
|
path: urlPath,
|
|
329
363
|
method: "DELETE",
|
|
330
364
|
headers: headerParameters,
|
|
331
365
|
query: queryParameters
|
|
332
|
-
}
|
|
366
|
+
};
|
|
367
|
+
}
|
|
368
|
+
/**
|
|
369
|
+
* Delete Index by Name for given Collection
|
|
370
|
+
* Delete Index
|
|
371
|
+
*/
|
|
372
|
+
async deleteIndexRaw(requestParameters, initOverrides) {
|
|
373
|
+
const requestOptions = await this.deleteIndexRequestOpts(requestParameters);
|
|
374
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
333
375
|
return new runtime.JSONApiResponse(response, (jsonValue) => IndexDropResponseFromJSON(jsonValue));
|
|
334
376
|
}
|
|
335
377
|
/**
|
|
@@ -341,10 +383,9 @@ export class IndexApi extends runtime.BaseAPI {
|
|
|
341
383
|
return await response.value();
|
|
342
384
|
}
|
|
343
385
|
/**
|
|
344
|
-
*
|
|
345
|
-
* Index for Collection
|
|
386
|
+
* Creates request options for index without sending the request
|
|
346
387
|
*/
|
|
347
|
-
async
|
|
388
|
+
async indexRequestOpts(requestParameters) {
|
|
348
389
|
if (requestParameters["collectionName"] == null) {
|
|
349
390
|
throw new runtime.RequiredError(
|
|
350
391
|
"collectionName",
|
|
@@ -375,12 +416,20 @@ export class IndexApi extends runtime.BaseAPI {
|
|
|
375
416
|
let urlPath = `/mongodb/collections/{collectionName}/index/{indexName}`;
|
|
376
417
|
urlPath = urlPath.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"])));
|
|
377
418
|
urlPath = urlPath.replace(`{${"indexName"}}`, encodeURIComponent(String(requestParameters["indexName"])));
|
|
378
|
-
|
|
419
|
+
return {
|
|
379
420
|
path: urlPath,
|
|
380
421
|
method: "GET",
|
|
381
422
|
headers: headerParameters,
|
|
382
423
|
query: queryParameters
|
|
383
|
-
}
|
|
424
|
+
};
|
|
425
|
+
}
|
|
426
|
+
/**
|
|
427
|
+
* Index by Name for given Collection
|
|
428
|
+
* Index for Collection
|
|
429
|
+
*/
|
|
430
|
+
async indexRaw(requestParameters, initOverrides) {
|
|
431
|
+
const requestOptions = await this.indexRequestOpts(requestParameters);
|
|
432
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
384
433
|
return new runtime.JSONApiResponse(response, (jsonValue) => MongoIndexFromJSON(jsonValue));
|
|
385
434
|
}
|
|
386
435
|
/**
|
|
@@ -392,10 +441,9 @@ export class IndexApi extends runtime.BaseAPI {
|
|
|
392
441
|
return await response.value();
|
|
393
442
|
}
|
|
394
443
|
/**
|
|
395
|
-
*
|
|
396
|
-
* List Indices for Collection
|
|
444
|
+
* Creates request options for listIndices without sending the request
|
|
397
445
|
*/
|
|
398
|
-
async
|
|
446
|
+
async listIndicesRequestOpts(requestParameters) {
|
|
399
447
|
if (requestParameters["collectionName"] == null) {
|
|
400
448
|
throw new runtime.RequiredError(
|
|
401
449
|
"collectionName",
|
|
@@ -419,12 +467,20 @@ export class IndexApi extends runtime.BaseAPI {
|
|
|
419
467
|
}
|
|
420
468
|
let urlPath = `/mongodb/collections/{collectionName}/index`;
|
|
421
469
|
urlPath = urlPath.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"])));
|
|
422
|
-
|
|
470
|
+
return {
|
|
423
471
|
path: urlPath,
|
|
424
472
|
method: "GET",
|
|
425
473
|
headers: headerParameters,
|
|
426
474
|
query: queryParameters
|
|
427
|
-
}
|
|
475
|
+
};
|
|
476
|
+
}
|
|
477
|
+
/**
|
|
478
|
+
* List all Indices for given Collection
|
|
479
|
+
* List Indices for Collection
|
|
480
|
+
*/
|
|
481
|
+
async listIndicesRaw(requestParameters, initOverrides) {
|
|
482
|
+
const requestOptions = await this.listIndicesRequestOpts(requestParameters);
|
|
483
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
428
484
|
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(MongoIndexFromJSON));
|
|
429
485
|
}
|
|
430
486
|
/**
|
|
@@ -15,6 +15,10 @@ import type { Version } from '../models/index.js';
|
|
|
15
15
|
*
|
|
16
16
|
*/
|
|
17
17
|
export declare class InformationApi extends runtime.BaseAPI {
|
|
18
|
+
/**
|
|
19
|
+
* Creates request options for version without sending the request
|
|
20
|
+
*/
|
|
21
|
+
versionRequestOpts(): Promise<runtime.RequestOpts>;
|
|
18
22
|
/**
|
|
19
23
|
* Version Info of the MongoCamp API
|
|
20
24
|
* Version Information
|
|
@@ -4,19 +4,26 @@ import {
|
|
|
4
4
|
} from "../models/index.js";
|
|
5
5
|
export class InformationApi extends runtime.BaseAPI {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
* Version Information
|
|
7
|
+
* Creates request options for version without sending the request
|
|
9
8
|
*/
|
|
10
|
-
async
|
|
9
|
+
async versionRequestOpts() {
|
|
11
10
|
const queryParameters = {};
|
|
12
11
|
const headerParameters = {};
|
|
13
12
|
let urlPath = `/version`;
|
|
14
|
-
|
|
13
|
+
return {
|
|
15
14
|
path: urlPath,
|
|
16
15
|
method: "GET",
|
|
17
16
|
headers: headerParameters,
|
|
18
17
|
query: queryParameters
|
|
19
|
-
}
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Version Info of the MongoCamp API
|
|
22
|
+
* Version Information
|
|
23
|
+
*/
|
|
24
|
+
async versionRaw(initOverrides) {
|
|
25
|
+
const requestOptions = await this.versionRequestOpts();
|
|
26
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
20
27
|
return new runtime.JSONApiResponse(response, (jsonValue) => VersionFromJSON(jsonValue));
|
|
21
28
|
}
|
|
22
29
|
/**
|
|
@@ -31,6 +31,10 @@ export interface UpdateJobRequest {
|
|
|
31
31
|
*
|
|
32
32
|
*/
|
|
33
33
|
export declare class JobsApi extends runtime.BaseAPI {
|
|
34
|
+
/**
|
|
35
|
+
* Creates request options for deleteJob without sending the request
|
|
36
|
+
*/
|
|
37
|
+
deleteJobRequestOpts(requestParameters: DeleteJobRequest): Promise<runtime.RequestOpts>;
|
|
34
38
|
/**
|
|
35
39
|
* Delete Job and reload all Job Information
|
|
36
40
|
* Delete Job
|
|
@@ -41,6 +45,10 @@ export declare class JobsApi extends runtime.BaseAPI {
|
|
|
41
45
|
* Delete Job
|
|
42
46
|
*/
|
|
43
47
|
deleteJob(requestParameters: DeleteJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JsonValueBoolean>;
|
|
48
|
+
/**
|
|
49
|
+
* Creates request options for executeJob without sending the request
|
|
50
|
+
*/
|
|
51
|
+
executeJobRequestOpts(requestParameters: ExecuteJobRequest): Promise<runtime.RequestOpts>;
|
|
44
52
|
/**
|
|
45
53
|
* Execute scheduled Job manually
|
|
46
54
|
* Execute Job
|
|
@@ -51,6 +59,10 @@ export declare class JobsApi extends runtime.BaseAPI {
|
|
|
51
59
|
* Execute Job
|
|
52
60
|
*/
|
|
53
61
|
executeJob(requestParameters: ExecuteJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JsonValueBoolean>;
|
|
62
|
+
/**
|
|
63
|
+
* Creates request options for jobsList without sending the request
|
|
64
|
+
*/
|
|
65
|
+
jobsListRequestOpts(): Promise<runtime.RequestOpts>;
|
|
54
66
|
/**
|
|
55
67
|
* Returns the List of all registered Jobs with full information
|
|
56
68
|
* Registered Jobs
|
|
@@ -61,6 +73,10 @@ export declare class JobsApi extends runtime.BaseAPI {
|
|
|
61
73
|
* Registered Jobs
|
|
62
74
|
*/
|
|
63
75
|
jobsList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<JobInformation>>;
|
|
76
|
+
/**
|
|
77
|
+
* Creates request options for possibleJobsList without sending the request
|
|
78
|
+
*/
|
|
79
|
+
possibleJobsListRequestOpts(): Promise<runtime.RequestOpts>;
|
|
64
80
|
/**
|
|
65
81
|
* Returns the List of possible job classes
|
|
66
82
|
* Possible Jobs
|
|
@@ -71,6 +87,10 @@ export declare class JobsApi extends runtime.BaseAPI {
|
|
|
71
87
|
* Possible Jobs
|
|
72
88
|
*/
|
|
73
89
|
possibleJobsList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<string>>;
|
|
90
|
+
/**
|
|
91
|
+
* Creates request options for registerJob without sending the request
|
|
92
|
+
*/
|
|
93
|
+
registerJobRequestOpts(requestParameters: RegisterJobRequest): Promise<runtime.RequestOpts>;
|
|
74
94
|
/**
|
|
75
95
|
* Register an Job and return the JobInformation with next schedule information
|
|
76
96
|
* Register Job
|
|
@@ -81,6 +101,10 @@ export declare class JobsApi extends runtime.BaseAPI {
|
|
|
81
101
|
* Register Job
|
|
82
102
|
*/
|
|
83
103
|
registerJob(requestParameters: RegisterJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JobInformation>;
|
|
104
|
+
/**
|
|
105
|
+
* Creates request options for updateJob without sending the request
|
|
106
|
+
*/
|
|
107
|
+
updateJobRequestOpts(requestParameters: UpdateJobRequest): Promise<runtime.RequestOpts>;
|
|
84
108
|
/**
|
|
85
109
|
* Add Job and get JobInformation back
|
|
86
110
|
* Update Job
|
|
@@ -6,10 +6,9 @@ import {
|
|
|
6
6
|
} from "../models/index.js";
|
|
7
7
|
export class JobsApi extends runtime.BaseAPI {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
* Delete Job
|
|
9
|
+
* Creates request options for deleteJob without sending the request
|
|
11
10
|
*/
|
|
12
|
-
async
|
|
11
|
+
async deleteJobRequestOpts(requestParameters) {
|
|
13
12
|
if (requestParameters["jobGroup"] == null) {
|
|
14
13
|
throw new runtime.RequiredError(
|
|
15
14
|
"jobGroup",
|
|
@@ -40,12 +39,20 @@ export class JobsApi extends runtime.BaseAPI {
|
|
|
40
39
|
let urlPath = `/system/jobs/{jobGroup}/{jobName}`;
|
|
41
40
|
urlPath = urlPath.replace(`{${"jobGroup"}}`, encodeURIComponent(String(requestParameters["jobGroup"])));
|
|
42
41
|
urlPath = urlPath.replace(`{${"jobName"}}`, encodeURIComponent(String(requestParameters["jobName"])));
|
|
43
|
-
|
|
42
|
+
return {
|
|
44
43
|
path: urlPath,
|
|
45
44
|
method: "DELETE",
|
|
46
45
|
headers: headerParameters,
|
|
47
46
|
query: queryParameters
|
|
48
|
-
}
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Delete Job and reload all Job Information
|
|
51
|
+
* Delete Job
|
|
52
|
+
*/
|
|
53
|
+
async deleteJobRaw(requestParameters, initOverrides) {
|
|
54
|
+
const requestOptions = await this.deleteJobRequestOpts(requestParameters);
|
|
55
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
49
56
|
return new runtime.JSONApiResponse(response, (jsonValue) => JsonValueBooleanFromJSON(jsonValue));
|
|
50
57
|
}
|
|
51
58
|
/**
|
|
@@ -57,10 +64,9 @@ export class JobsApi extends runtime.BaseAPI {
|
|
|
57
64
|
return await response.value();
|
|
58
65
|
}
|
|
59
66
|
/**
|
|
60
|
-
*
|
|
61
|
-
* Execute Job
|
|
67
|
+
* Creates request options for executeJob without sending the request
|
|
62
68
|
*/
|
|
63
|
-
async
|
|
69
|
+
async executeJobRequestOpts(requestParameters) {
|
|
64
70
|
if (requestParameters["jobGroup"] == null) {
|
|
65
71
|
throw new runtime.RequiredError(
|
|
66
72
|
"jobGroup",
|
|
@@ -91,12 +97,20 @@ export class JobsApi extends runtime.BaseAPI {
|
|
|
91
97
|
let urlPath = `/system/jobs/{jobGroup}/{jobName}`;
|
|
92
98
|
urlPath = urlPath.replace(`{${"jobGroup"}}`, encodeURIComponent(String(requestParameters["jobGroup"])));
|
|
93
99
|
urlPath = urlPath.replace(`{${"jobName"}}`, encodeURIComponent(String(requestParameters["jobName"])));
|
|
94
|
-
|
|
100
|
+
return {
|
|
95
101
|
path: urlPath,
|
|
96
102
|
method: "POST",
|
|
97
103
|
headers: headerParameters,
|
|
98
104
|
query: queryParameters
|
|
99
|
-
}
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Execute scheduled Job manually
|
|
109
|
+
* Execute Job
|
|
110
|
+
*/
|
|
111
|
+
async executeJobRaw(requestParameters, initOverrides) {
|
|
112
|
+
const requestOptions = await this.executeJobRequestOpts(requestParameters);
|
|
113
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
100
114
|
return new runtime.JSONApiResponse(response, (jsonValue) => JsonValueBooleanFromJSON(jsonValue));
|
|
101
115
|
}
|
|
102
116
|
/**
|
|
@@ -108,10 +122,9 @@ export class JobsApi extends runtime.BaseAPI {
|
|
|
108
122
|
return await response.value();
|
|
109
123
|
}
|
|
110
124
|
/**
|
|
111
|
-
*
|
|
112
|
-
* Registered Jobs
|
|
125
|
+
* Creates request options for jobsList without sending the request
|
|
113
126
|
*/
|
|
114
|
-
async
|
|
127
|
+
async jobsListRequestOpts() {
|
|
115
128
|
const queryParameters = {};
|
|
116
129
|
const headerParameters = {};
|
|
117
130
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
@@ -128,12 +141,20 @@ export class JobsApi extends runtime.BaseAPI {
|
|
|
128
141
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
129
142
|
}
|
|
130
143
|
let urlPath = `/system/jobs`;
|
|
131
|
-
|
|
144
|
+
return {
|
|
132
145
|
path: urlPath,
|
|
133
146
|
method: "GET",
|
|
134
147
|
headers: headerParameters,
|
|
135
148
|
query: queryParameters
|
|
136
|
-
}
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Returns the List of all registered Jobs with full information
|
|
153
|
+
* Registered Jobs
|
|
154
|
+
*/
|
|
155
|
+
async jobsListRaw(initOverrides) {
|
|
156
|
+
const requestOptions = await this.jobsListRequestOpts();
|
|
157
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
137
158
|
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(JobInformationFromJSON));
|
|
138
159
|
}
|
|
139
160
|
/**
|
|
@@ -145,10 +166,9 @@ export class JobsApi extends runtime.BaseAPI {
|
|
|
145
166
|
return await response.value();
|
|
146
167
|
}
|
|
147
168
|
/**
|
|
148
|
-
*
|
|
149
|
-
* Possible Jobs
|
|
169
|
+
* Creates request options for possibleJobsList without sending the request
|
|
150
170
|
*/
|
|
151
|
-
async
|
|
171
|
+
async possibleJobsListRequestOpts() {
|
|
152
172
|
const queryParameters = {};
|
|
153
173
|
const headerParameters = {};
|
|
154
174
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
@@ -165,12 +185,20 @@ export class JobsApi extends runtime.BaseAPI {
|
|
|
165
185
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
166
186
|
}
|
|
167
187
|
let urlPath = `/system/jobs/classes`;
|
|
168
|
-
|
|
188
|
+
return {
|
|
169
189
|
path: urlPath,
|
|
170
190
|
method: "GET",
|
|
171
191
|
headers: headerParameters,
|
|
172
192
|
query: queryParameters
|
|
173
|
-
}
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Returns the List of possible job classes
|
|
197
|
+
* Possible Jobs
|
|
198
|
+
*/
|
|
199
|
+
async possibleJobsListRaw(initOverrides) {
|
|
200
|
+
const requestOptions = await this.possibleJobsListRequestOpts();
|
|
201
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
174
202
|
return new runtime.JSONApiResponse(response);
|
|
175
203
|
}
|
|
176
204
|
/**
|
|
@@ -182,10 +210,9 @@ export class JobsApi extends runtime.BaseAPI {
|
|
|
182
210
|
return await response.value();
|
|
183
211
|
}
|
|
184
212
|
/**
|
|
185
|
-
*
|
|
186
|
-
* Register Job
|
|
213
|
+
* Creates request options for registerJob without sending the request
|
|
187
214
|
*/
|
|
188
|
-
async
|
|
215
|
+
async registerJobRequestOpts(requestParameters) {
|
|
189
216
|
if (requestParameters["jobConfig"] == null) {
|
|
190
217
|
throw new runtime.RequiredError(
|
|
191
218
|
"jobConfig",
|
|
@@ -209,13 +236,21 @@ export class JobsApi extends runtime.BaseAPI {
|
|
|
209
236
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
210
237
|
}
|
|
211
238
|
let urlPath = `/system/jobs`;
|
|
212
|
-
|
|
239
|
+
return {
|
|
213
240
|
path: urlPath,
|
|
214
241
|
method: "PUT",
|
|
215
242
|
headers: headerParameters,
|
|
216
243
|
query: queryParameters,
|
|
217
244
|
body: JobConfigToJSON(requestParameters["jobConfig"])
|
|
218
|
-
}
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* Register an Job and return the JobInformation with next schedule information
|
|
249
|
+
* Register Job
|
|
250
|
+
*/
|
|
251
|
+
async registerJobRaw(requestParameters, initOverrides) {
|
|
252
|
+
const requestOptions = await this.registerJobRequestOpts(requestParameters);
|
|
253
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
219
254
|
return new runtime.JSONApiResponse(response, (jsonValue) => JobInformationFromJSON(jsonValue));
|
|
220
255
|
}
|
|
221
256
|
/**
|
|
@@ -227,10 +262,9 @@ export class JobsApi extends runtime.BaseAPI {
|
|
|
227
262
|
return await response.value();
|
|
228
263
|
}
|
|
229
264
|
/**
|
|
230
|
-
*
|
|
231
|
-
* Update Job
|
|
265
|
+
* Creates request options for updateJob without sending the request
|
|
232
266
|
*/
|
|
233
|
-
async
|
|
267
|
+
async updateJobRequestOpts(requestParameters) {
|
|
234
268
|
if (requestParameters["jobGroup"] == null) {
|
|
235
269
|
throw new runtime.RequiredError(
|
|
236
270
|
"jobGroup",
|
|
@@ -268,13 +302,21 @@ export class JobsApi extends runtime.BaseAPI {
|
|
|
268
302
|
let urlPath = `/system/jobs/{jobGroup}/{jobName}`;
|
|
269
303
|
urlPath = urlPath.replace(`{${"jobGroup"}}`, encodeURIComponent(String(requestParameters["jobGroup"])));
|
|
270
304
|
urlPath = urlPath.replace(`{${"jobName"}}`, encodeURIComponent(String(requestParameters["jobName"])));
|
|
271
|
-
|
|
305
|
+
return {
|
|
272
306
|
path: urlPath,
|
|
273
307
|
method: "PATCH",
|
|
274
308
|
headers: headerParameters,
|
|
275
309
|
query: queryParameters,
|
|
276
310
|
body: JobConfigToJSON(requestParameters["jobConfig"])
|
|
277
|
-
}
|
|
311
|
+
};
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* Add Job and get JobInformation back
|
|
315
|
+
* Update Job
|
|
316
|
+
*/
|
|
317
|
+
async updateJobRaw(requestParameters, initOverrides) {
|
|
318
|
+
const requestOptions = await this.updateJobRequestOpts(requestParameters);
|
|
319
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
278
320
|
return new runtime.JSONApiResponse(response, (jsonValue) => JobInformationFromJSON(jsonValue));
|
|
279
321
|
}
|
|
280
322
|
/**
|
|
@@ -192,6 +192,10 @@ export class ResponseError extends Error {
|
|
|
192
192
|
constructor(response, msg) {
|
|
193
193
|
super(msg);
|
|
194
194
|
this.response = response;
|
|
195
|
+
const actualProto = new.target.prototype;
|
|
196
|
+
if (Object.setPrototypeOf) {
|
|
197
|
+
Object.setPrototypeOf(this, actualProto);
|
|
198
|
+
}
|
|
195
199
|
}
|
|
196
200
|
name = "ResponseError";
|
|
197
201
|
}
|
|
@@ -199,6 +203,10 @@ export class FetchError extends Error {
|
|
|
199
203
|
constructor(cause, msg) {
|
|
200
204
|
super(msg);
|
|
201
205
|
this.cause = cause;
|
|
206
|
+
const actualProto = new.target.prototype;
|
|
207
|
+
if (Object.setPrototypeOf) {
|
|
208
|
+
Object.setPrototypeOf(this, actualProto);
|
|
209
|
+
}
|
|
202
210
|
}
|
|
203
211
|
name = "FetchError";
|
|
204
212
|
}
|
|
@@ -206,6 +214,10 @@ export class RequiredError extends Error {
|
|
|
206
214
|
constructor(field, msg) {
|
|
207
215
|
super(msg);
|
|
208
216
|
this.field = field;
|
|
217
|
+
const actualProto = new.target.prototype;
|
|
218
|
+
if (Object.setPrototypeOf) {
|
|
219
|
+
Object.setPrototypeOf(this, actualProto);
|
|
220
|
+
}
|
|
209
221
|
}
|
|
210
222
|
name = "RequiredError";
|
|
211
223
|
}
|