@sfxcode/nuxt-mongocamp-server 1.2.7 → 1.2.9
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 +3 -3
- package/dist/module.mjs +3 -3
- package/dist/runtime/api/.openapi-generator/FILES +50 -0
- package/dist/runtime/api/.openapi-generator/VERSION +1 -1
- package/dist/runtime/api/apis/AdminApi.js +32 -12
- package/dist/runtime/api/apis/ApplicationApi.js +12 -5
- package/dist/runtime/api/apis/AuthApi.js +16 -8
- package/dist/runtime/api/apis/BucketApi.js +11 -4
- package/dist/runtime/api/apis/CollectionApi.js +30 -10
- package/dist/runtime/api/apis/DatabaseApi.js +13 -5
- package/dist/runtime/api/apis/DocumentApi.js +34 -10
- package/dist/runtime/api/apis/FileApi.js +25 -7
- package/dist/runtime/api/apis/IndexApi.js +31 -8
- package/dist/runtime/api/apis/InformationApi.js +2 -1
- package/dist/runtime/api/apis/JobsApi.js +18 -6
- package/dist/runtime/api/docs/AdminApi.md +972 -0
- package/dist/runtime/api/docs/ApplicationApi.md +387 -0
- package/dist/runtime/api/docs/AuthApi.md +577 -0
- package/dist/runtime/api/docs/BucketApi.md +312 -0
- package/dist/runtime/api/docs/BucketInformation.md +40 -0
- package/dist/runtime/api/docs/CollectionApi.md +822 -0
- package/dist/runtime/api/docs/CollectionStatus.md +58 -0
- package/dist/runtime/api/docs/DatabaseApi.md +382 -0
- package/dist/runtime/api/docs/DatabaseInfo.md +42 -0
- package/dist/runtime/api/docs/DeleteResponse.md +36 -0
- package/dist/runtime/api/docs/DocumentApi.md +850 -0
- package/dist/runtime/api/docs/ErrorDescription.md +38 -0
- package/dist/runtime/api/docs/FileApi.md +606 -0
- package/dist/runtime/api/docs/FileInformation.md +44 -0
- package/dist/runtime/api/docs/Grant.md +42 -0
- package/dist/runtime/api/docs/IndexApi.md +682 -0
- package/dist/runtime/api/docs/IndexCreateRequest.md +36 -0
- package/dist/runtime/api/docs/IndexCreateResponse.md +34 -0
- package/dist/runtime/api/docs/IndexDropResponse.md +34 -0
- package/dist/runtime/api/docs/IndexOptionsRequest.md +48 -0
- package/dist/runtime/api/docs/InformationApi.md +69 -0
- package/dist/runtime/api/docs/InsertResponse.md +36 -0
- package/dist/runtime/api/docs/JobConfig.md +44 -0
- package/dist/runtime/api/docs/JobInformation.md +50 -0
- package/dist/runtime/api/docs/JobsApi.md +474 -0
- package/dist/runtime/api/docs/JsonSchema.md +38 -0
- package/dist/runtime/api/docs/JsonSchemaDefinition.md +42 -0
- package/dist/runtime/api/docs/JsonValueAny.md +34 -0
- package/dist/runtime/api/docs/JsonValueBoolean.md +34 -0
- package/dist/runtime/api/docs/JsonValueString.md +34 -0
- package/dist/runtime/api/docs/Login.md +36 -0
- package/dist/runtime/api/docs/LoginResult.md +38 -0
- package/dist/runtime/api/docs/MongoAggregateRequest.md +36 -0
- package/dist/runtime/api/docs/MongoCampConfiguration.md +42 -0
- package/dist/runtime/api/docs/MongoFindRequest.md +38 -0
- package/dist/runtime/api/docs/MongoIndex.md +56 -0
- package/dist/runtime/api/docs/PasswordUpdateRequest.md +34 -0
- package/dist/runtime/api/docs/PipelineStage.md +36 -0
- package/dist/runtime/api/docs/Role.md +38 -0
- package/dist/runtime/api/docs/SchemaAnalysis.md +40 -0
- package/dist/runtime/api/docs/SchemaAnalysisField.md +44 -0
- package/dist/runtime/api/docs/SchemaAnalysisFieldType.md +38 -0
- package/dist/runtime/api/docs/SettingsResponse.md +40 -0
- package/dist/runtime/api/docs/UpdateFileInformationRequest.md +36 -0
- package/dist/runtime/api/docs/UpdateRequest.md +36 -0
- package/dist/runtime/api/docs/UpdateResponse.md +40 -0
- package/dist/runtime/api/docs/UpdateRoleRequest.md +36 -0
- package/dist/runtime/api/docs/UserInformation.md +40 -0
- package/dist/runtime/api/docs/UserProfile.md +42 -0
- package/dist/runtime/api/docs/Version.md +38 -0
- package/dist/runtime/api/models/JobInformation.js +2 -2
- package/dist/runtime/composables/mongocampApi.d.ts +11 -1
- package/dist/runtime/composables/mongocampApi.js +12 -14
- package/dist/runtime/composables/mongocampAuth.d.ts +3 -3
- package/package.json +14 -14
|
@@ -0,0 +1,474 @@
|
|
|
1
|
+
# JobsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
| [**deleteJob**](JobsApi.md#deletejob) | **DELETE** /system/jobs/{jobGroup}/{jobName} | Delete Job |
|
|
8
|
+
| [**executeJob**](JobsApi.md#executejob) | **POST** /system/jobs/{jobGroup}/{jobName} | Execute Job |
|
|
9
|
+
| [**jobsList**](JobsApi.md#jobslist) | **GET** /system/jobs | Registered Jobs |
|
|
10
|
+
| [**possibleJobsList**](JobsApi.md#possiblejobslist) | **GET** /system/jobs/classes | Possible Jobs |
|
|
11
|
+
| [**registerJob**](JobsApi.md#registerjob) | **PUT** /system/jobs | Register Job |
|
|
12
|
+
| [**updateJob**](JobsApi.md#updatejob) | **PATCH** /system/jobs/{jobGroup}/{jobName} | Update Job |
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## deleteJob
|
|
17
|
+
|
|
18
|
+
> JsonValueBoolean deleteJob(jobGroup, jobName)
|
|
19
|
+
|
|
20
|
+
Delete Job
|
|
21
|
+
|
|
22
|
+
Delete Job and reload all Job Information
|
|
23
|
+
|
|
24
|
+
### Example
|
|
25
|
+
|
|
26
|
+
```ts
|
|
27
|
+
import {
|
|
28
|
+
Configuration,
|
|
29
|
+
JobsApi,
|
|
30
|
+
} from '';
|
|
31
|
+
import type { DeleteJobRequest } from '';
|
|
32
|
+
|
|
33
|
+
async function example() {
|
|
34
|
+
console.log("🚀 Testing SDK...");
|
|
35
|
+
const config = new Configuration({
|
|
36
|
+
// To configure HTTP basic authorization: httpAuth1
|
|
37
|
+
username: "YOUR USERNAME",
|
|
38
|
+
password: "YOUR PASSWORD",
|
|
39
|
+
// Configure HTTP bearer authorization: httpAuth
|
|
40
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
41
|
+
// To configure API key authorization: apiKeyAuth
|
|
42
|
+
apiKey: "YOUR API KEY",
|
|
43
|
+
});
|
|
44
|
+
const api = new JobsApi(config);
|
|
45
|
+
|
|
46
|
+
const body = {
|
|
47
|
+
// string | Group Name of the Job
|
|
48
|
+
jobGroup: jobGroup_example,
|
|
49
|
+
// string | Name of the Job
|
|
50
|
+
jobName: jobName_example,
|
|
51
|
+
} satisfies DeleteJobRequest;
|
|
52
|
+
|
|
53
|
+
try {
|
|
54
|
+
const data = await api.deleteJob(body);
|
|
55
|
+
console.log(data);
|
|
56
|
+
} catch (error) {
|
|
57
|
+
console.error(error);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// Run the test
|
|
62
|
+
example().catch(console.error);
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### Parameters
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
| Name | Type | Description | Notes |
|
|
69
|
+
|------------- | ------------- | ------------- | -------------|
|
|
70
|
+
| **jobGroup** | `string` | Group Name of the Job | [Defaults to `'Default'`] |
|
|
71
|
+
| **jobName** | `string` | Name of the Job | [Defaults to `undefined`] |
|
|
72
|
+
|
|
73
|
+
### Return type
|
|
74
|
+
|
|
75
|
+
[**JsonValueBoolean**](JsonValueBoolean.md)
|
|
76
|
+
|
|
77
|
+
### Authorization
|
|
78
|
+
|
|
79
|
+
[httpAuth1](../README.md#httpAuth1), [httpAuth](../README.md#httpAuth), [apiKeyAuth](../README.md#apiKeyAuth)
|
|
80
|
+
|
|
81
|
+
### HTTP request headers
|
|
82
|
+
|
|
83
|
+
- **Content-Type**: Not defined
|
|
84
|
+
- **Accept**: `application/json`
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
### HTTP response details
|
|
88
|
+
| Status code | Description | Response headers |
|
|
89
|
+
|-------------|-------------|------------------|
|
|
90
|
+
| **200** | | - |
|
|
91
|
+
| **0** | | * x-error-code - Error Code <br> * x-error-message - Message of the MongoCampException <br> * x-error-additional-info - Additional information for the MongoCampException <br> |
|
|
92
|
+
|
|
93
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
## executeJob
|
|
97
|
+
|
|
98
|
+
> JsonValueBoolean executeJob(jobGroup, jobName)
|
|
99
|
+
|
|
100
|
+
Execute Job
|
|
101
|
+
|
|
102
|
+
Execute scheduled Job manually
|
|
103
|
+
|
|
104
|
+
### Example
|
|
105
|
+
|
|
106
|
+
```ts
|
|
107
|
+
import {
|
|
108
|
+
Configuration,
|
|
109
|
+
JobsApi,
|
|
110
|
+
} from '';
|
|
111
|
+
import type { ExecuteJobRequest } from '';
|
|
112
|
+
|
|
113
|
+
async function example() {
|
|
114
|
+
console.log("🚀 Testing SDK...");
|
|
115
|
+
const config = new Configuration({
|
|
116
|
+
// To configure HTTP basic authorization: httpAuth1
|
|
117
|
+
username: "YOUR USERNAME",
|
|
118
|
+
password: "YOUR PASSWORD",
|
|
119
|
+
// Configure HTTP bearer authorization: httpAuth
|
|
120
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
121
|
+
// To configure API key authorization: apiKeyAuth
|
|
122
|
+
apiKey: "YOUR API KEY",
|
|
123
|
+
});
|
|
124
|
+
const api = new JobsApi(config);
|
|
125
|
+
|
|
126
|
+
const body = {
|
|
127
|
+
// string | Group Name of the Job
|
|
128
|
+
jobGroup: jobGroup_example,
|
|
129
|
+
// string | Name of the Job
|
|
130
|
+
jobName: jobName_example,
|
|
131
|
+
} satisfies ExecuteJobRequest;
|
|
132
|
+
|
|
133
|
+
try {
|
|
134
|
+
const data = await api.executeJob(body);
|
|
135
|
+
console.log(data);
|
|
136
|
+
} catch (error) {
|
|
137
|
+
console.error(error);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
// Run the test
|
|
142
|
+
example().catch(console.error);
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
### Parameters
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
| Name | Type | Description | Notes |
|
|
149
|
+
|------------- | ------------- | ------------- | -------------|
|
|
150
|
+
| **jobGroup** | `string` | Group Name of the Job | [Defaults to `'Default'`] |
|
|
151
|
+
| **jobName** | `string` | Name of the Job | [Defaults to `undefined`] |
|
|
152
|
+
|
|
153
|
+
### Return type
|
|
154
|
+
|
|
155
|
+
[**JsonValueBoolean**](JsonValueBoolean.md)
|
|
156
|
+
|
|
157
|
+
### Authorization
|
|
158
|
+
|
|
159
|
+
[httpAuth1](../README.md#httpAuth1), [httpAuth](../README.md#httpAuth), [apiKeyAuth](../README.md#apiKeyAuth)
|
|
160
|
+
|
|
161
|
+
### HTTP request headers
|
|
162
|
+
|
|
163
|
+
- **Content-Type**: Not defined
|
|
164
|
+
- **Accept**: `application/json`
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
### HTTP response details
|
|
168
|
+
| Status code | Description | Response headers |
|
|
169
|
+
|-------------|-------------|------------------|
|
|
170
|
+
| **200** | | - |
|
|
171
|
+
| **0** | | * x-error-code - Error Code <br> * x-error-message - Message of the MongoCampException <br> * x-error-additional-info - Additional information for the MongoCampException <br> |
|
|
172
|
+
|
|
173
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
## jobsList
|
|
177
|
+
|
|
178
|
+
> Array<JobInformation> jobsList()
|
|
179
|
+
|
|
180
|
+
Registered Jobs
|
|
181
|
+
|
|
182
|
+
Returns the List of all registered Jobs with full information
|
|
183
|
+
|
|
184
|
+
### Example
|
|
185
|
+
|
|
186
|
+
```ts
|
|
187
|
+
import {
|
|
188
|
+
Configuration,
|
|
189
|
+
JobsApi,
|
|
190
|
+
} from '';
|
|
191
|
+
import type { JobsListRequest } from '';
|
|
192
|
+
|
|
193
|
+
async function example() {
|
|
194
|
+
console.log("🚀 Testing SDK...");
|
|
195
|
+
const config = new Configuration({
|
|
196
|
+
// To configure HTTP basic authorization: httpAuth1
|
|
197
|
+
username: "YOUR USERNAME",
|
|
198
|
+
password: "YOUR PASSWORD",
|
|
199
|
+
// Configure HTTP bearer authorization: httpAuth
|
|
200
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
201
|
+
// To configure API key authorization: apiKeyAuth
|
|
202
|
+
apiKey: "YOUR API KEY",
|
|
203
|
+
});
|
|
204
|
+
const api = new JobsApi(config);
|
|
205
|
+
|
|
206
|
+
try {
|
|
207
|
+
const data = await api.jobsList();
|
|
208
|
+
console.log(data);
|
|
209
|
+
} catch (error) {
|
|
210
|
+
console.error(error);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
// Run the test
|
|
215
|
+
example().catch(console.error);
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
### Parameters
|
|
219
|
+
|
|
220
|
+
This endpoint does not need any parameter.
|
|
221
|
+
|
|
222
|
+
### Return type
|
|
223
|
+
|
|
224
|
+
[**Array<JobInformation>**](JobInformation.md)
|
|
225
|
+
|
|
226
|
+
### Authorization
|
|
227
|
+
|
|
228
|
+
[httpAuth1](../README.md#httpAuth1), [httpAuth](../README.md#httpAuth), [apiKeyAuth](../README.md#apiKeyAuth)
|
|
229
|
+
|
|
230
|
+
### HTTP request headers
|
|
231
|
+
|
|
232
|
+
- **Content-Type**: Not defined
|
|
233
|
+
- **Accept**: `application/json`
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
### HTTP response details
|
|
237
|
+
| Status code | Description | Response headers |
|
|
238
|
+
|-------------|-------------|------------------|
|
|
239
|
+
| **200** | | - |
|
|
240
|
+
| **0** | | * x-error-code - Error Code <br> * x-error-message - Message of the MongoCampException <br> * x-error-additional-info - Additional information for the MongoCampException <br> |
|
|
241
|
+
|
|
242
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
## possibleJobsList
|
|
246
|
+
|
|
247
|
+
> Array<string> possibleJobsList()
|
|
248
|
+
|
|
249
|
+
Possible Jobs
|
|
250
|
+
|
|
251
|
+
Returns the List of possible job classes
|
|
252
|
+
|
|
253
|
+
### Example
|
|
254
|
+
|
|
255
|
+
```ts
|
|
256
|
+
import {
|
|
257
|
+
Configuration,
|
|
258
|
+
JobsApi,
|
|
259
|
+
} from '';
|
|
260
|
+
import type { PossibleJobsListRequest } from '';
|
|
261
|
+
|
|
262
|
+
async function example() {
|
|
263
|
+
console.log("🚀 Testing SDK...");
|
|
264
|
+
const config = new Configuration({
|
|
265
|
+
// To configure HTTP basic authorization: httpAuth1
|
|
266
|
+
username: "YOUR USERNAME",
|
|
267
|
+
password: "YOUR PASSWORD",
|
|
268
|
+
// Configure HTTP bearer authorization: httpAuth
|
|
269
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
270
|
+
// To configure API key authorization: apiKeyAuth
|
|
271
|
+
apiKey: "YOUR API KEY",
|
|
272
|
+
});
|
|
273
|
+
const api = new JobsApi(config);
|
|
274
|
+
|
|
275
|
+
try {
|
|
276
|
+
const data = await api.possibleJobsList();
|
|
277
|
+
console.log(data);
|
|
278
|
+
} catch (error) {
|
|
279
|
+
console.error(error);
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
// Run the test
|
|
284
|
+
example().catch(console.error);
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
### Parameters
|
|
288
|
+
|
|
289
|
+
This endpoint does not need any parameter.
|
|
290
|
+
|
|
291
|
+
### Return type
|
|
292
|
+
|
|
293
|
+
**Array<string>**
|
|
294
|
+
|
|
295
|
+
### Authorization
|
|
296
|
+
|
|
297
|
+
[httpAuth1](../README.md#httpAuth1), [httpAuth](../README.md#httpAuth), [apiKeyAuth](../README.md#apiKeyAuth)
|
|
298
|
+
|
|
299
|
+
### HTTP request headers
|
|
300
|
+
|
|
301
|
+
- **Content-Type**: Not defined
|
|
302
|
+
- **Accept**: `application/json`
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
### HTTP response details
|
|
306
|
+
| Status code | Description | Response headers |
|
|
307
|
+
|-------------|-------------|------------------|
|
|
308
|
+
| **200** | | - |
|
|
309
|
+
| **0** | | * x-error-code - Error Code <br> * x-error-message - Message of the MongoCampException <br> * x-error-additional-info - Additional information for the MongoCampException <br> |
|
|
310
|
+
|
|
311
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
## registerJob
|
|
315
|
+
|
|
316
|
+
> JobInformation registerJob(jobConfig)
|
|
317
|
+
|
|
318
|
+
Register Job
|
|
319
|
+
|
|
320
|
+
Register an Job and return the JobInformation with next schedule information
|
|
321
|
+
|
|
322
|
+
### Example
|
|
323
|
+
|
|
324
|
+
```ts
|
|
325
|
+
import {
|
|
326
|
+
Configuration,
|
|
327
|
+
JobsApi,
|
|
328
|
+
} from '';
|
|
329
|
+
import type { RegisterJobRequest } from '';
|
|
330
|
+
|
|
331
|
+
async function example() {
|
|
332
|
+
console.log("🚀 Testing SDK...");
|
|
333
|
+
const config = new Configuration({
|
|
334
|
+
// To configure HTTP basic authorization: httpAuth1
|
|
335
|
+
username: "YOUR USERNAME",
|
|
336
|
+
password: "YOUR PASSWORD",
|
|
337
|
+
// Configure HTTP bearer authorization: httpAuth
|
|
338
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
339
|
+
// To configure API key authorization: apiKeyAuth
|
|
340
|
+
apiKey: "YOUR API KEY",
|
|
341
|
+
});
|
|
342
|
+
const api = new JobsApi(config);
|
|
343
|
+
|
|
344
|
+
const body = {
|
|
345
|
+
// JobConfig
|
|
346
|
+
jobConfig: ...,
|
|
347
|
+
} satisfies RegisterJobRequest;
|
|
348
|
+
|
|
349
|
+
try {
|
|
350
|
+
const data = await api.registerJob(body);
|
|
351
|
+
console.log(data);
|
|
352
|
+
} catch (error) {
|
|
353
|
+
console.error(error);
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
// Run the test
|
|
358
|
+
example().catch(console.error);
|
|
359
|
+
```
|
|
360
|
+
|
|
361
|
+
### Parameters
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
| Name | Type | Description | Notes |
|
|
365
|
+
|------------- | ------------- | ------------- | -------------|
|
|
366
|
+
| **jobConfig** | [JobConfig](JobConfig.md) | | |
|
|
367
|
+
|
|
368
|
+
### Return type
|
|
369
|
+
|
|
370
|
+
[**JobInformation**](JobInformation.md)
|
|
371
|
+
|
|
372
|
+
### Authorization
|
|
373
|
+
|
|
374
|
+
[httpAuth1](../README.md#httpAuth1), [httpAuth](../README.md#httpAuth), [apiKeyAuth](../README.md#apiKeyAuth)
|
|
375
|
+
|
|
376
|
+
### HTTP request headers
|
|
377
|
+
|
|
378
|
+
- **Content-Type**: `application/json`
|
|
379
|
+
- **Accept**: `application/json`, `text/plain`
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
### HTTP response details
|
|
383
|
+
| Status code | Description | Response headers |
|
|
384
|
+
|-------------|-------------|------------------|
|
|
385
|
+
| **200** | | - |
|
|
386
|
+
| **400** | Invalid value for: body | - |
|
|
387
|
+
| **0** | | * x-error-code - Error Code <br> * x-error-message - Message of the MongoCampException <br> * x-error-additional-info - Additional information for the MongoCampException <br> |
|
|
388
|
+
|
|
389
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
## updateJob
|
|
393
|
+
|
|
394
|
+
> JobInformation updateJob(jobGroup, jobName, jobConfig)
|
|
395
|
+
|
|
396
|
+
Update Job
|
|
397
|
+
|
|
398
|
+
Add Job and get JobInformation back
|
|
399
|
+
|
|
400
|
+
### Example
|
|
401
|
+
|
|
402
|
+
```ts
|
|
403
|
+
import {
|
|
404
|
+
Configuration,
|
|
405
|
+
JobsApi,
|
|
406
|
+
} from '';
|
|
407
|
+
import type { UpdateJobRequest } from '';
|
|
408
|
+
|
|
409
|
+
async function example() {
|
|
410
|
+
console.log("🚀 Testing SDK...");
|
|
411
|
+
const config = new Configuration({
|
|
412
|
+
// To configure HTTP basic authorization: httpAuth1
|
|
413
|
+
username: "YOUR USERNAME",
|
|
414
|
+
password: "YOUR PASSWORD",
|
|
415
|
+
// Configure HTTP bearer authorization: httpAuth
|
|
416
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
417
|
+
// To configure API key authorization: apiKeyAuth
|
|
418
|
+
apiKey: "YOUR API KEY",
|
|
419
|
+
});
|
|
420
|
+
const api = new JobsApi(config);
|
|
421
|
+
|
|
422
|
+
const body = {
|
|
423
|
+
// string | Group Name of the Job
|
|
424
|
+
jobGroup: jobGroup_example,
|
|
425
|
+
// string | Name of the Job
|
|
426
|
+
jobName: jobName_example,
|
|
427
|
+
// JobConfig
|
|
428
|
+
jobConfig: ...,
|
|
429
|
+
} satisfies UpdateJobRequest;
|
|
430
|
+
|
|
431
|
+
try {
|
|
432
|
+
const data = await api.updateJob(body);
|
|
433
|
+
console.log(data);
|
|
434
|
+
} catch (error) {
|
|
435
|
+
console.error(error);
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
// Run the test
|
|
440
|
+
example().catch(console.error);
|
|
441
|
+
```
|
|
442
|
+
|
|
443
|
+
### Parameters
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
| Name | Type | Description | Notes |
|
|
447
|
+
|------------- | ------------- | ------------- | -------------|
|
|
448
|
+
| **jobGroup** | `string` | Group Name of the Job | [Defaults to `'Default'`] |
|
|
449
|
+
| **jobName** | `string` | Name of the Job | [Defaults to `undefined`] |
|
|
450
|
+
| **jobConfig** | [JobConfig](JobConfig.md) | | |
|
|
451
|
+
|
|
452
|
+
### Return type
|
|
453
|
+
|
|
454
|
+
[**JobInformation**](JobInformation.md)
|
|
455
|
+
|
|
456
|
+
### Authorization
|
|
457
|
+
|
|
458
|
+
[httpAuth1](../README.md#httpAuth1), [httpAuth](../README.md#httpAuth), [apiKeyAuth](../README.md#apiKeyAuth)
|
|
459
|
+
|
|
460
|
+
### HTTP request headers
|
|
461
|
+
|
|
462
|
+
- **Content-Type**: `application/json`
|
|
463
|
+
- **Accept**: `application/json`, `text/plain`
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
### HTTP response details
|
|
467
|
+
| Status code | Description | Response headers |
|
|
468
|
+
|-------------|-------------|------------------|
|
|
469
|
+
| **200** | | - |
|
|
470
|
+
| **400** | Invalid value for: body | - |
|
|
471
|
+
| **0** | | * x-error-code - Error Code <br> * x-error-message - Message of the MongoCampException <br> * x-error-additional-info - Additional information for the MongoCampException <br> |
|
|
472
|
+
|
|
473
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
474
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
# JsonSchema
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`$schema` | string
|
|
10
|
+
`$ref` | string
|
|
11
|
+
`definitions` | [{ [key: string]: JsonSchemaDefinition; }](JsonSchemaDefinition.md)
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import type { JsonSchema } from ''
|
|
17
|
+
|
|
18
|
+
// TODO: Update the object below with actual values
|
|
19
|
+
const example = {
|
|
20
|
+
"$schema": null,
|
|
21
|
+
"$ref": null,
|
|
22
|
+
"definitions": null,
|
|
23
|
+
} satisfies JsonSchema
|
|
24
|
+
|
|
25
|
+
console.log(example)
|
|
26
|
+
|
|
27
|
+
// Convert the instance to a JSON string
|
|
28
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
+
console.log(exampleJSON)
|
|
30
|
+
|
|
31
|
+
// Parse the JSON string back to an object
|
|
32
|
+
const exampleParsed = JSON.parse(exampleJSON) as JsonSchema
|
|
33
|
+
console.log(exampleParsed)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
|
+
|
|
38
|
+
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
# JsonSchemaDefinition
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`type` | string
|
|
10
|
+
`title` | string
|
|
11
|
+
`additionalProperties` | boolean
|
|
12
|
+
`required` | Array<string>
|
|
13
|
+
`properties` | { [key: string]: { [key: string]: string; }; }
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { JsonSchemaDefinition } from ''
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"type": null,
|
|
23
|
+
"title": null,
|
|
24
|
+
"additionalProperties": null,
|
|
25
|
+
"required": null,
|
|
26
|
+
"properties": null,
|
|
27
|
+
} satisfies JsonSchemaDefinition
|
|
28
|
+
|
|
29
|
+
console.log(example)
|
|
30
|
+
|
|
31
|
+
// Convert the instance to a JSON string
|
|
32
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
33
|
+
console.log(exampleJSON)
|
|
34
|
+
|
|
35
|
+
// Parse the JSON string back to an object
|
|
36
|
+
const exampleParsed = JSON.parse(exampleJSON) as JsonSchemaDefinition
|
|
37
|
+
console.log(exampleParsed)
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
41
|
+
|
|
42
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# JsonValueAny
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`value` | string
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { JsonValueAny } from ''
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"value": null,
|
|
19
|
+
} satisfies JsonValueAny
|
|
20
|
+
|
|
21
|
+
console.log(example)
|
|
22
|
+
|
|
23
|
+
// Convert the instance to a JSON string
|
|
24
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
+
console.log(exampleJSON)
|
|
26
|
+
|
|
27
|
+
// Parse the JSON string back to an object
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as JsonValueAny
|
|
29
|
+
console.log(exampleParsed)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
+
|
|
34
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# JsonValueBoolean
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`value` | boolean
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { JsonValueBoolean } from ''
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"value": null,
|
|
19
|
+
} satisfies JsonValueBoolean
|
|
20
|
+
|
|
21
|
+
console.log(example)
|
|
22
|
+
|
|
23
|
+
// Convert the instance to a JSON string
|
|
24
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
+
console.log(exampleJSON)
|
|
26
|
+
|
|
27
|
+
// Parse the JSON string back to an object
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as JsonValueBoolean
|
|
29
|
+
console.log(exampleParsed)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
+
|
|
34
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# JsonValueString
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`value` | string
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { JsonValueString } from ''
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"value": null,
|
|
19
|
+
} satisfies JsonValueString
|
|
20
|
+
|
|
21
|
+
console.log(example)
|
|
22
|
+
|
|
23
|
+
// Convert the instance to a JSON string
|
|
24
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
+
console.log(exampleJSON)
|
|
26
|
+
|
|
27
|
+
// Parse the JSON string back to an object
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as JsonValueString
|
|
29
|
+
console.log(exampleParsed)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
+
|
|
34
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# Login
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`userId` | string
|
|
10
|
+
`password` | string
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { Login } from ''
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"userId": null,
|
|
20
|
+
"password": null,
|
|
21
|
+
} satisfies Login
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as Login
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|