@uipath/traces-tool 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +9 -0
- package/dist/tool.js +4201 -0
- package/package.json +41 -0
package/dist/tool.js
ADDED
|
@@ -0,0 +1,4201 @@
|
|
|
1
|
+
// package.json
|
|
2
|
+
var package_default = {
|
|
3
|
+
name: "@uipath/traces-tool",
|
|
4
|
+
version: "0.1.0",
|
|
5
|
+
description: "Fetch LLM Observability traces for UiPath jobs",
|
|
6
|
+
private: false,
|
|
7
|
+
keywords: [
|
|
8
|
+
"cli-tool"
|
|
9
|
+
],
|
|
10
|
+
type: "module",
|
|
11
|
+
main: "./dist/tool.js",
|
|
12
|
+
exports: {
|
|
13
|
+
".": "./dist/tool.js"
|
|
14
|
+
},
|
|
15
|
+
bin: {
|
|
16
|
+
"traces-tool": "./dist/index.js"
|
|
17
|
+
},
|
|
18
|
+
files: [
|
|
19
|
+
"dist"
|
|
20
|
+
],
|
|
21
|
+
scripts: {
|
|
22
|
+
build: "bun build ./src/tool.ts --outdir dist --format esm --target node --external commander --external @uipath/common --external @uipath/auth && bun build ./src/index.ts --outdir dist --format esm --target node --external '*/tool.js' --external commander --external @uipath/common --external @uipath/auth",
|
|
23
|
+
package: "bun run build && bun pm pack",
|
|
24
|
+
lint: "biome check .",
|
|
25
|
+
"lint:fix": "biome check --write .",
|
|
26
|
+
test: "vitest run",
|
|
27
|
+
"test:coverage": "vitest run --coverage"
|
|
28
|
+
},
|
|
29
|
+
peerDependencies: {
|
|
30
|
+
commander: "^14.0.3",
|
|
31
|
+
"@uipath/common": "^0.1.7",
|
|
32
|
+
"@uipath/auth": "^0.1.6"
|
|
33
|
+
},
|
|
34
|
+
devDependencies: {
|
|
35
|
+
"@uipath/orchestrator-sdk": "workspace:*",
|
|
36
|
+
"@types/node": "^25.5.0",
|
|
37
|
+
typescript: "^5"
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
// src/commands/spans.ts
|
|
42
|
+
import {
|
|
43
|
+
catchError as catchError2,
|
|
44
|
+
extractErrorMessage,
|
|
45
|
+
OutputFormatter,
|
|
46
|
+
processContext
|
|
47
|
+
} from "@uipath/common";
|
|
48
|
+
|
|
49
|
+
// src/services/traces-service.ts
|
|
50
|
+
import { getLoginStatusAsync as getLoginStatusAsync2 } from "@uipath/auth";
|
|
51
|
+
import { catchError } from "@uipath/common";
|
|
52
|
+
|
|
53
|
+
// ../orchestrator-sdk/generated/src/runtime.ts
|
|
54
|
+
var BASE_PATH = "https://alpha.uipath.com/uipattycyrhx/abizon_1/orchestrator_".replace(/\/+$/, "");
|
|
55
|
+
|
|
56
|
+
class Configuration {
|
|
57
|
+
configuration;
|
|
58
|
+
constructor(configuration = {}) {
|
|
59
|
+
this.configuration = configuration;
|
|
60
|
+
}
|
|
61
|
+
set config(configuration) {
|
|
62
|
+
this.configuration = configuration;
|
|
63
|
+
}
|
|
64
|
+
get basePath() {
|
|
65
|
+
return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH;
|
|
66
|
+
}
|
|
67
|
+
get fetchApi() {
|
|
68
|
+
return this.configuration.fetchApi;
|
|
69
|
+
}
|
|
70
|
+
get middleware() {
|
|
71
|
+
return this.configuration.middleware || [];
|
|
72
|
+
}
|
|
73
|
+
get queryParamsStringify() {
|
|
74
|
+
return this.configuration.queryParamsStringify || querystring;
|
|
75
|
+
}
|
|
76
|
+
get username() {
|
|
77
|
+
return this.configuration.username;
|
|
78
|
+
}
|
|
79
|
+
get password() {
|
|
80
|
+
return this.configuration.password;
|
|
81
|
+
}
|
|
82
|
+
get apiKey() {
|
|
83
|
+
const apiKey = this.configuration.apiKey;
|
|
84
|
+
if (apiKey) {
|
|
85
|
+
return typeof apiKey === "function" ? apiKey : () => apiKey;
|
|
86
|
+
}
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
get accessToken() {
|
|
90
|
+
const accessToken = this.configuration.accessToken;
|
|
91
|
+
if (accessToken) {
|
|
92
|
+
return typeof accessToken === "function" ? accessToken : async () => accessToken;
|
|
93
|
+
}
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
get headers() {
|
|
97
|
+
return this.configuration.headers;
|
|
98
|
+
}
|
|
99
|
+
get credentials() {
|
|
100
|
+
return this.configuration.credentials;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
var DefaultConfig = new Configuration;
|
|
104
|
+
|
|
105
|
+
class BaseAPI {
|
|
106
|
+
configuration;
|
|
107
|
+
static jsonRegex = new RegExp("^(:?application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$", "i");
|
|
108
|
+
middleware;
|
|
109
|
+
constructor(configuration = DefaultConfig) {
|
|
110
|
+
this.configuration = configuration;
|
|
111
|
+
this.middleware = configuration.middleware;
|
|
112
|
+
}
|
|
113
|
+
withMiddleware(...middlewares) {
|
|
114
|
+
const next = this.clone();
|
|
115
|
+
next.middleware = next.middleware.concat(...middlewares);
|
|
116
|
+
return next;
|
|
117
|
+
}
|
|
118
|
+
withPreMiddleware(...preMiddlewares) {
|
|
119
|
+
const middlewares = preMiddlewares.map((pre) => ({ pre }));
|
|
120
|
+
return this.withMiddleware(...middlewares);
|
|
121
|
+
}
|
|
122
|
+
withPostMiddleware(...postMiddlewares) {
|
|
123
|
+
const middlewares = postMiddlewares.map((post) => ({ post }));
|
|
124
|
+
return this.withMiddleware(...middlewares);
|
|
125
|
+
}
|
|
126
|
+
isJsonMime(mime) {
|
|
127
|
+
if (!mime) {
|
|
128
|
+
return false;
|
|
129
|
+
}
|
|
130
|
+
return BaseAPI.jsonRegex.test(mime);
|
|
131
|
+
}
|
|
132
|
+
async request(context, initOverrides) {
|
|
133
|
+
const { url, init } = await this.createFetchParams(context, initOverrides);
|
|
134
|
+
const response = await this.fetchApi(url, init);
|
|
135
|
+
if (response && (response.status >= 200 && response.status < 300)) {
|
|
136
|
+
return response;
|
|
137
|
+
}
|
|
138
|
+
throw new ResponseError(response, "Response returned an error code");
|
|
139
|
+
}
|
|
140
|
+
async createFetchParams(context, initOverrides) {
|
|
141
|
+
let url = this.configuration.basePath + context.path;
|
|
142
|
+
if (context.query !== undefined && Object.keys(context.query).length !== 0) {
|
|
143
|
+
url += "?" + this.configuration.queryParamsStringify(context.query);
|
|
144
|
+
}
|
|
145
|
+
const headers = Object.assign({}, this.configuration.headers, context.headers);
|
|
146
|
+
Object.keys(headers).forEach((key) => headers[key] === undefined ? delete headers[key] : {});
|
|
147
|
+
const initOverrideFn = typeof initOverrides === "function" ? initOverrides : async () => initOverrides;
|
|
148
|
+
const initParams = {
|
|
149
|
+
method: context.method,
|
|
150
|
+
headers,
|
|
151
|
+
body: context.body,
|
|
152
|
+
credentials: this.configuration.credentials
|
|
153
|
+
};
|
|
154
|
+
const overriddenInit = {
|
|
155
|
+
...initParams,
|
|
156
|
+
...await initOverrideFn({
|
|
157
|
+
init: initParams,
|
|
158
|
+
context
|
|
159
|
+
})
|
|
160
|
+
};
|
|
161
|
+
let body;
|
|
162
|
+
if (isFormData(overriddenInit.body) || overriddenInit.body instanceof URLSearchParams || isBlob(overriddenInit.body)) {
|
|
163
|
+
body = overriddenInit.body;
|
|
164
|
+
} else if (this.isJsonMime(headers["Content-Type"])) {
|
|
165
|
+
body = JSON.stringify(overriddenInit.body);
|
|
166
|
+
} else {
|
|
167
|
+
body = overriddenInit.body;
|
|
168
|
+
}
|
|
169
|
+
const init = {
|
|
170
|
+
...overriddenInit,
|
|
171
|
+
body
|
|
172
|
+
};
|
|
173
|
+
return { url, init };
|
|
174
|
+
}
|
|
175
|
+
fetchApi = async (url, init) => {
|
|
176
|
+
let fetchParams = { url, init };
|
|
177
|
+
for (const middleware of this.middleware) {
|
|
178
|
+
if (middleware.pre) {
|
|
179
|
+
fetchParams = await middleware.pre({
|
|
180
|
+
fetch: this.fetchApi,
|
|
181
|
+
...fetchParams
|
|
182
|
+
}) || fetchParams;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
let response = undefined;
|
|
186
|
+
try {
|
|
187
|
+
response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init);
|
|
188
|
+
} catch (e) {
|
|
189
|
+
for (const middleware of this.middleware) {
|
|
190
|
+
if (middleware.onError) {
|
|
191
|
+
response = await middleware.onError({
|
|
192
|
+
fetch: this.fetchApi,
|
|
193
|
+
url: fetchParams.url,
|
|
194
|
+
init: fetchParams.init,
|
|
195
|
+
error: e,
|
|
196
|
+
response: response ? response.clone() : undefined
|
|
197
|
+
}) || response;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
if (response === undefined) {
|
|
201
|
+
if (e instanceof Error) {
|
|
202
|
+
throw new FetchError(e, "The request failed and the interceptors did not return an alternative response");
|
|
203
|
+
} else {
|
|
204
|
+
throw e;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
for (const middleware of this.middleware) {
|
|
209
|
+
if (middleware.post) {
|
|
210
|
+
response = await middleware.post({
|
|
211
|
+
fetch: this.fetchApi,
|
|
212
|
+
url: fetchParams.url,
|
|
213
|
+
init: fetchParams.init,
|
|
214
|
+
response: response.clone()
|
|
215
|
+
}) || response;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
return response;
|
|
219
|
+
};
|
|
220
|
+
clone() {
|
|
221
|
+
const constructor = this.constructor;
|
|
222
|
+
const next = new constructor(this.configuration);
|
|
223
|
+
next.middleware = this.middleware.slice();
|
|
224
|
+
return next;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
function isBlob(value) {
|
|
228
|
+
return typeof Blob !== "undefined" && value instanceof Blob;
|
|
229
|
+
}
|
|
230
|
+
function isFormData(value) {
|
|
231
|
+
return typeof FormData !== "undefined" && value instanceof FormData;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
class ResponseError extends Error {
|
|
235
|
+
response;
|
|
236
|
+
name = "ResponseError";
|
|
237
|
+
constructor(response, msg) {
|
|
238
|
+
super(msg);
|
|
239
|
+
this.response = response;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
class FetchError extends Error {
|
|
244
|
+
cause;
|
|
245
|
+
name = "FetchError";
|
|
246
|
+
constructor(cause, msg) {
|
|
247
|
+
super(msg);
|
|
248
|
+
this.cause = cause;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
class RequiredError extends Error {
|
|
253
|
+
field;
|
|
254
|
+
name = "RequiredError";
|
|
255
|
+
constructor(field, msg) {
|
|
256
|
+
super(msg);
|
|
257
|
+
this.field = field;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
function querystring(params, prefix = "") {
|
|
261
|
+
return Object.keys(params).map((key) => querystringSingleKey(key, params[key], prefix)).filter((part) => part.length > 0).join("&");
|
|
262
|
+
}
|
|
263
|
+
function querystringSingleKey(key, value, keyPrefix = "") {
|
|
264
|
+
const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key);
|
|
265
|
+
if (value instanceof Array) {
|
|
266
|
+
const multiValue = value.map((singleValue) => encodeURIComponent(String(singleValue))).join(`&${encodeURIComponent(fullKey)}=`);
|
|
267
|
+
return `${encodeURIComponent(fullKey)}=${multiValue}`;
|
|
268
|
+
}
|
|
269
|
+
if (value instanceof Set) {
|
|
270
|
+
const valueAsArray = Array.from(value);
|
|
271
|
+
return querystringSingleKey(key, valueAsArray, keyPrefix);
|
|
272
|
+
}
|
|
273
|
+
if (value instanceof Date) {
|
|
274
|
+
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`;
|
|
275
|
+
}
|
|
276
|
+
if (value instanceof Object) {
|
|
277
|
+
return querystring(value, fullKey);
|
|
278
|
+
}
|
|
279
|
+
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
|
|
280
|
+
}
|
|
281
|
+
function mapValues(data, fn) {
|
|
282
|
+
const result = {};
|
|
283
|
+
for (const key of Object.keys(data)) {
|
|
284
|
+
result[key] = fn(data[key]);
|
|
285
|
+
}
|
|
286
|
+
return result;
|
|
287
|
+
}
|
|
288
|
+
class JSONApiResponse {
|
|
289
|
+
raw;
|
|
290
|
+
transformer;
|
|
291
|
+
constructor(raw, transformer = (jsonValue) => jsonValue) {
|
|
292
|
+
this.raw = raw;
|
|
293
|
+
this.transformer = transformer;
|
|
294
|
+
}
|
|
295
|
+
async value() {
|
|
296
|
+
return this.transformer(await this.raw.json());
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
class VoidApiResponse {
|
|
301
|
+
raw;
|
|
302
|
+
constructor(raw) {
|
|
303
|
+
this.raw = raw;
|
|
304
|
+
}
|
|
305
|
+
async value() {
|
|
306
|
+
return;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
class TextApiResponse {
|
|
310
|
+
raw;
|
|
311
|
+
constructor(raw) {
|
|
312
|
+
this.raw = raw;
|
|
313
|
+
}
|
|
314
|
+
async value() {
|
|
315
|
+
return await this.raw.text();
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
// ../orchestrator-sdk/generated/src/models/SimpleFolderDto.ts
|
|
320
|
+
function SimpleFolderDtoFromJSON(json) {
|
|
321
|
+
return SimpleFolderDtoFromJSONTyped(json, false);
|
|
322
|
+
}
|
|
323
|
+
function SimpleFolderDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
324
|
+
if (json == null) {
|
|
325
|
+
return json;
|
|
326
|
+
}
|
|
327
|
+
return {
|
|
328
|
+
displayName: json["DisplayName"] == null ? undefined : json["DisplayName"],
|
|
329
|
+
fullyQualifiedName: json["FullyQualifiedName"] == null ? undefined : json["FullyQualifiedName"],
|
|
330
|
+
id: json["Id"] == null ? undefined : json["Id"]
|
|
331
|
+
};
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
// ../orchestrator-sdk/generated/src/models/AgentSettings.ts
|
|
335
|
+
function AgentSettingsFromJSON(json) {
|
|
336
|
+
return AgentSettingsFromJSONTyped(json, false);
|
|
337
|
+
}
|
|
338
|
+
function AgentSettingsFromJSONTyped(json, ignoreDiscriminator) {
|
|
339
|
+
if (json == null) {
|
|
340
|
+
return json;
|
|
341
|
+
}
|
|
342
|
+
return {
|
|
343
|
+
memory: json["Memory"] == null ? undefined : json["Memory"]
|
|
344
|
+
};
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
// ../orchestrator-sdk/generated/src/models/TagDto.ts
|
|
348
|
+
function TagDtoFromJSON(json) {
|
|
349
|
+
return TagDtoFromJSONTyped(json, false);
|
|
350
|
+
}
|
|
351
|
+
function TagDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
352
|
+
if (json == null) {
|
|
353
|
+
return json;
|
|
354
|
+
}
|
|
355
|
+
return {
|
|
356
|
+
name: json["Name"],
|
|
357
|
+
displayName: json["DisplayName"] == null ? undefined : json["DisplayName"],
|
|
358
|
+
value: json["Value"] == null ? undefined : json["Value"],
|
|
359
|
+
displayValue: json["DisplayValue"] == null ? undefined : json["DisplayValue"]
|
|
360
|
+
};
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
// ../orchestrator-sdk/generated/src/models/ArgumentMetadata.ts
|
|
364
|
+
function ArgumentMetadataFromJSON(json) {
|
|
365
|
+
return ArgumentMetadataFromJSONTyped(json, false);
|
|
366
|
+
}
|
|
367
|
+
function ArgumentMetadataFromJSONTyped(json, ignoreDiscriminator) {
|
|
368
|
+
if (json == null) {
|
|
369
|
+
return json;
|
|
370
|
+
}
|
|
371
|
+
return {
|
|
372
|
+
input: json["Input"] == null ? undefined : json["Input"],
|
|
373
|
+
output: json["Output"] == null ? undefined : json["Output"]
|
|
374
|
+
};
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
// ../orchestrator-sdk/generated/src/models/AutopilotForRobotsSettingsDto.ts
|
|
378
|
+
function AutopilotForRobotsSettingsDtoFromJSON(json) {
|
|
379
|
+
return AutopilotForRobotsSettingsDtoFromJSONTyped(json, false);
|
|
380
|
+
}
|
|
381
|
+
function AutopilotForRobotsSettingsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
382
|
+
if (json == null) {
|
|
383
|
+
return json;
|
|
384
|
+
}
|
|
385
|
+
return {
|
|
386
|
+
enabled: json["Enabled"] == null ? undefined : json["Enabled"],
|
|
387
|
+
healingEnabled: json["HealingEnabled"] == null ? undefined : json["HealingEnabled"]
|
|
388
|
+
};
|
|
389
|
+
}
|
|
390
|
+
function AutopilotForRobotsSettingsDtoToJSON(json) {
|
|
391
|
+
return AutopilotForRobotsSettingsDtoToJSONTyped(json, false);
|
|
392
|
+
}
|
|
393
|
+
function AutopilotForRobotsSettingsDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
394
|
+
if (value == null) {
|
|
395
|
+
return value;
|
|
396
|
+
}
|
|
397
|
+
return {
|
|
398
|
+
Enabled: value["enabled"],
|
|
399
|
+
HealingEnabled: value["healingEnabled"]
|
|
400
|
+
};
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
// ../orchestrator-sdk/generated/src/models/BaseRoleDto.ts
|
|
404
|
+
function BaseRoleDtoFromJSON(json) {
|
|
405
|
+
return BaseRoleDtoFromJSONTyped(json, false);
|
|
406
|
+
}
|
|
407
|
+
function BaseRoleDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
408
|
+
if (json == null) {
|
|
409
|
+
return json;
|
|
410
|
+
}
|
|
411
|
+
return {
|
|
412
|
+
name: json["Name"] == null ? undefined : json["Name"],
|
|
413
|
+
id: json["Id"] == null ? undefined : json["Id"]
|
|
414
|
+
};
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
// ../orchestrator-sdk/generated/src/models/NameValueDto.ts
|
|
418
|
+
function NameValueDtoFromJSON(json) {
|
|
419
|
+
return NameValueDtoFromJSONTyped(json, false);
|
|
420
|
+
}
|
|
421
|
+
function NameValueDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
422
|
+
if (json == null) {
|
|
423
|
+
return json;
|
|
424
|
+
}
|
|
425
|
+
return {
|
|
426
|
+
name: json["Name"] == null ? undefined : json["Name"],
|
|
427
|
+
value: json["Value"] == null ? undefined : json["Value"]
|
|
428
|
+
};
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
// ../orchestrator-sdk/generated/src/models/ResourceOverwriteDto.ts
|
|
432
|
+
function ResourceOverwriteDtoFromJSON(json) {
|
|
433
|
+
return ResourceOverwriteDtoFromJSONTyped(json, false);
|
|
434
|
+
}
|
|
435
|
+
function ResourceOverwriteDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
436
|
+
if (json == null) {
|
|
437
|
+
return json;
|
|
438
|
+
}
|
|
439
|
+
return {
|
|
440
|
+
properties2: json["Properties2"] == null ? undefined : json["Properties2"].map(NameValueDtoFromJSON),
|
|
441
|
+
resourceType: json["ResourceType"],
|
|
442
|
+
resourceKey: json["ResourceKey"],
|
|
443
|
+
entityId: json["EntityId"] == null ? undefined : json["EntityId"],
|
|
444
|
+
properties: json["Properties"] == null ? undefined : json["Properties"],
|
|
445
|
+
entityDisplayName: json["EntityDisplayName"] == null ? undefined : json["EntityDisplayName"],
|
|
446
|
+
entityFolderId: json["EntityFolderId"] == null ? undefined : json["EntityFolderId"]
|
|
447
|
+
};
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
// ../orchestrator-sdk/generated/src/models/VideoRecordingSettingsDto.ts
|
|
451
|
+
function VideoRecordingSettingsDtoFromJSON(json) {
|
|
452
|
+
return VideoRecordingSettingsDtoFromJSONTyped(json, false);
|
|
453
|
+
}
|
|
454
|
+
function VideoRecordingSettingsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
455
|
+
if (json == null) {
|
|
456
|
+
return json;
|
|
457
|
+
}
|
|
458
|
+
return {
|
|
459
|
+
videoRecordingType: json["VideoRecordingType"] == null ? undefined : json["VideoRecordingType"],
|
|
460
|
+
queueItemVideoRecordingType: json["QueueItemVideoRecordingType"] == null ? undefined : json["QueueItemVideoRecordingType"],
|
|
461
|
+
maxDurationSeconds: json["MaxDurationSeconds"] == null ? undefined : json["MaxDurationSeconds"]
|
|
462
|
+
};
|
|
463
|
+
}
|
|
464
|
+
function VideoRecordingSettingsDtoToJSON(json) {
|
|
465
|
+
return VideoRecordingSettingsDtoToJSONTyped(json, false);
|
|
466
|
+
}
|
|
467
|
+
function VideoRecordingSettingsDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
468
|
+
if (value == null) {
|
|
469
|
+
return value;
|
|
470
|
+
}
|
|
471
|
+
return {
|
|
472
|
+
VideoRecordingType: value["videoRecordingType"],
|
|
473
|
+
QueueItemVideoRecordingType: value["queueItemVideoRecordingType"],
|
|
474
|
+
MaxDurationSeconds: value["maxDurationSeconds"]
|
|
475
|
+
};
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
// ../orchestrator-sdk/generated/src/models/TestAutomationJobDto.ts
|
|
479
|
+
function TestAutomationJobDtoToJSON(json) {
|
|
480
|
+
return TestAutomationJobDtoToJSONTyped(json, false);
|
|
481
|
+
}
|
|
482
|
+
function TestAutomationJobDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
483
|
+
if (value == null) {
|
|
484
|
+
return value;
|
|
485
|
+
}
|
|
486
|
+
return {
|
|
487
|
+
key: value["key"],
|
|
488
|
+
releaseId: value["releaseId"],
|
|
489
|
+
releaseVersionId: value["releaseVersionId"],
|
|
490
|
+
inputArguments: value["inputArguments"],
|
|
491
|
+
entryPointPath: value["entryPointPath"],
|
|
492
|
+
robotId: value["robotId"],
|
|
493
|
+
runtimeType: value["runtimeType"],
|
|
494
|
+
machineId: value["machineId"],
|
|
495
|
+
hostMachineName: value["hostMachineName"],
|
|
496
|
+
serviceUserName: value["serviceUserName"],
|
|
497
|
+
remoteControlAccess: value["remoteControlAccess"],
|
|
498
|
+
autopilotForRobots: AutopilotForRobotsSettingsDtoToJSON(value["autopilotForRobots"]),
|
|
499
|
+
videoRecordingSettings: VideoRecordingSettingsDtoToJSON(value["videoRecordingSettings"])
|
|
500
|
+
};
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
// ../orchestrator-sdk/generated/src/models/CreateTestAutomationJobsRequest.ts
|
|
504
|
+
function CreateTestAutomationJobsRequestToJSON(json) {
|
|
505
|
+
return CreateTestAutomationJobsRequestToJSONTyped(json, false);
|
|
506
|
+
}
|
|
507
|
+
function CreateTestAutomationJobsRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
508
|
+
if (value == null) {
|
|
509
|
+
return value;
|
|
510
|
+
}
|
|
511
|
+
return {
|
|
512
|
+
batchExecutionKey: value["batchExecutionKey"],
|
|
513
|
+
jobs: value["jobs"] == null ? undefined : value["jobs"].map(TestAutomationJobDtoToJSON)
|
|
514
|
+
};
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
// ../orchestrator-sdk/generated/src/models/CurrentUserFolderDto.ts
|
|
518
|
+
function CurrentUserFolderDtoFromJSON(json) {
|
|
519
|
+
return CurrentUserFolderDtoFromJSONTyped(json, false);
|
|
520
|
+
}
|
|
521
|
+
function CurrentUserFolderDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
522
|
+
if (json == null) {
|
|
523
|
+
return json;
|
|
524
|
+
}
|
|
525
|
+
return {
|
|
526
|
+
key: json["Key"] == null ? undefined : json["Key"],
|
|
527
|
+
displayName: json["DisplayName"] == null ? undefined : json["DisplayName"],
|
|
528
|
+
fullyQualifiedName: json["FullyQualifiedName"] == null ? undefined : json["FullyQualifiedName"],
|
|
529
|
+
description: json["Description"] == null ? undefined : json["Description"],
|
|
530
|
+
folderType: json["FolderType"] == null ? undefined : json["FolderType"],
|
|
531
|
+
parentId: json["ParentId"] == null ? undefined : json["ParentId"],
|
|
532
|
+
parentKey: json["ParentKey"] == null ? undefined : json["ParentKey"],
|
|
533
|
+
id: json["Id"] == null ? undefined : json["Id"]
|
|
534
|
+
};
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
// ../orchestrator-sdk/generated/src/models/UserJobDto.ts
|
|
538
|
+
function UserJobDtoFromJSON(json) {
|
|
539
|
+
return UserJobDtoFromJSONTyped(json, false);
|
|
540
|
+
}
|
|
541
|
+
function UserJobDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
542
|
+
if (json == null) {
|
|
543
|
+
return json;
|
|
544
|
+
}
|
|
545
|
+
return {
|
|
546
|
+
key: json["key"] == null ? undefined : json["key"],
|
|
547
|
+
packageId: json["packageId"] == null ? undefined : json["packageId"],
|
|
548
|
+
processName: json["processName"] == null ? undefined : json["processName"],
|
|
549
|
+
packageVersion: json["packageVersion"] == null ? undefined : json["packageVersion"],
|
|
550
|
+
processKey: json["processKey"] == null ? undefined : json["processKey"],
|
|
551
|
+
state: json["state"] == null ? undefined : json["state"],
|
|
552
|
+
startTime: json["startTime"] == null ? undefined : new Date(json["startTime"]),
|
|
553
|
+
endTime: json["endTime"] == null ? undefined : new Date(json["endTime"]),
|
|
554
|
+
creationTime: json["creationTime"] == null ? undefined : new Date(json["creationTime"]),
|
|
555
|
+
folderId: json["folderId"] == null ? undefined : json["folderId"],
|
|
556
|
+
fullyQualifiedFolderName: json["fullyQualifiedFolderName"] == null ? undefined : json["fullyQualifiedFolderName"],
|
|
557
|
+
source: json["source"] == null ? undefined : json["source"],
|
|
558
|
+
info: json["info"] == null ? undefined : json["info"],
|
|
559
|
+
hasVideoRecorded: json["hasVideoRecorded"] == null ? undefined : json["hasVideoRecorded"],
|
|
560
|
+
hostMachineName: json["hostMachineName"] == null ? undefined : json["hostMachineName"],
|
|
561
|
+
outputArguments: json["outputArguments"] == null ? undefined : json["outputArguments"],
|
|
562
|
+
id: json["id"] == null ? undefined : json["id"]
|
|
563
|
+
};
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
// ../orchestrator-sdk/generated/src/models/CursorPaginationResultOfUserJobDto.ts
|
|
567
|
+
function CursorPaginationResultOfUserJobDtoFromJSON(json) {
|
|
568
|
+
return CursorPaginationResultOfUserJobDtoFromJSONTyped(json, false);
|
|
569
|
+
}
|
|
570
|
+
function CursorPaginationResultOfUserJobDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
571
|
+
if (json == null) {
|
|
572
|
+
return json;
|
|
573
|
+
}
|
|
574
|
+
return {
|
|
575
|
+
count: json["count"] == null ? undefined : json["count"],
|
|
576
|
+
result: json["result"] == null ? undefined : json["result"].map(UserJobDtoFromJSON),
|
|
577
|
+
nextCursor: json["nextCursor"] == null ? undefined : json["nextCursor"],
|
|
578
|
+
prevCursor: json["prevCursor"] == null ? undefined : json["prevCursor"]
|
|
579
|
+
};
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
// ../orchestrator-sdk/generated/src/models/FolderRolesDto.ts
|
|
583
|
+
function FolderRolesDtoToJSON(json) {
|
|
584
|
+
return FolderRolesDtoToJSONTyped(json, false);
|
|
585
|
+
}
|
|
586
|
+
function FolderRolesDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
587
|
+
if (value == null) {
|
|
588
|
+
return value;
|
|
589
|
+
}
|
|
590
|
+
return {
|
|
591
|
+
FolderId: value["folderId"],
|
|
592
|
+
RoleIds: value["roleIds"]
|
|
593
|
+
};
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
// ../orchestrator-sdk/generated/src/models/DomainUserAssignmentDto.ts
|
|
597
|
+
function DomainUserAssignmentDtoToJSON(json) {
|
|
598
|
+
return DomainUserAssignmentDtoToJSONTyped(json, false);
|
|
599
|
+
}
|
|
600
|
+
function DomainUserAssignmentDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
601
|
+
if (value == null) {
|
|
602
|
+
return value;
|
|
603
|
+
}
|
|
604
|
+
return {
|
|
605
|
+
Domain: value["domain"],
|
|
606
|
+
UserName: value["userName"],
|
|
607
|
+
DirectoryIdentifier: value["directoryIdentifier"],
|
|
608
|
+
UserType: value["userType"],
|
|
609
|
+
RolesPerFolder: value["rolesPerFolder"] == null ? undefined : value["rolesPerFolder"].map(FolderRolesDtoToJSON)
|
|
610
|
+
};
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
// ../orchestrator-sdk/generated/src/models/EntityCountDto.ts
|
|
614
|
+
function EntityCountDtoFromJSON(json) {
|
|
615
|
+
return EntityCountDtoFromJSONTyped(json, false);
|
|
616
|
+
}
|
|
617
|
+
function EntityCountDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
618
|
+
if (json == null) {
|
|
619
|
+
return json;
|
|
620
|
+
}
|
|
621
|
+
return {
|
|
622
|
+
type: json["Type"] == null ? undefined : json["Type"],
|
|
623
|
+
name: json["Name"] == null ? undefined : json["Name"],
|
|
624
|
+
count: json["Count"] == null ? undefined : json["Count"]
|
|
625
|
+
};
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
// ../orchestrator-sdk/generated/src/models/EntityHasExecutionMedia.ts
|
|
629
|
+
function EntityHasExecutionMediaFromJSON(json) {
|
|
630
|
+
return EntityHasExecutionMediaFromJSONTyped(json, false);
|
|
631
|
+
}
|
|
632
|
+
function EntityHasExecutionMediaFromJSONTyped(json, ignoreDiscriminator) {
|
|
633
|
+
if (json == null) {
|
|
634
|
+
return json;
|
|
635
|
+
}
|
|
636
|
+
return {
|
|
637
|
+
hasScreenshotsRecorded: json["hasScreenshotsRecorded"] == null ? undefined : json["hasScreenshotsRecorded"],
|
|
638
|
+
hasVideoRecorded: json["hasVideoRecorded"] == null ? undefined : json["hasVideoRecorded"]
|
|
639
|
+
};
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
// ../orchestrator-sdk/generated/src/models/EntitySummaryDto.ts
|
|
643
|
+
function EntitySummaryDtoFromJSON(json) {
|
|
644
|
+
return EntitySummaryDtoFromJSONTyped(json, false);
|
|
645
|
+
}
|
|
646
|
+
function EntitySummaryDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
647
|
+
if (json == null) {
|
|
648
|
+
return json;
|
|
649
|
+
}
|
|
650
|
+
return {
|
|
651
|
+
deletableEntities: json["DeletableEntities"] == null ? undefined : json["DeletableEntities"].map(EntityCountDtoFromJSON),
|
|
652
|
+
stoppableJobs: json["StoppableJobs"] == null ? undefined : json["StoppableJobs"].map(EntityCountDtoFromJSON),
|
|
653
|
+
personalWorkspaceStatus: json["PersonalWorkspaceStatus"] == null ? undefined : json["PersonalWorkspaceStatus"],
|
|
654
|
+
isPwOrphan: json["IsPwOrphan"] == null ? undefined : json["IsPwOrphan"],
|
|
655
|
+
id: json["Id"] == null ? undefined : json["Id"]
|
|
656
|
+
};
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
// ../orchestrator-sdk/generated/src/models/EntryPointDataVariationDto.ts
|
|
660
|
+
function EntryPointDataVariationDtoFromJSON(json) {
|
|
661
|
+
return EntryPointDataVariationDtoFromJSONTyped(json, false);
|
|
662
|
+
}
|
|
663
|
+
function EntryPointDataVariationDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
664
|
+
if (json == null) {
|
|
665
|
+
return json;
|
|
666
|
+
}
|
|
667
|
+
return {
|
|
668
|
+
content: json["Content"] == null ? undefined : json["Content"],
|
|
669
|
+
contentType: json["ContentType"] == null ? undefined : json["ContentType"],
|
|
670
|
+
id: json["Id"] == null ? undefined : json["Id"]
|
|
671
|
+
};
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
// ../orchestrator-sdk/generated/src/models/EntryPointDto.ts
|
|
675
|
+
function EntryPointDtoFromJSON(json) {
|
|
676
|
+
return EntryPointDtoFromJSONTyped(json, false);
|
|
677
|
+
}
|
|
678
|
+
function EntryPointDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
679
|
+
if (json == null) {
|
|
680
|
+
return json;
|
|
681
|
+
}
|
|
682
|
+
return {
|
|
683
|
+
uniqueId: json["UniqueId"] == null ? undefined : json["UniqueId"],
|
|
684
|
+
path: json["Path"] == null ? undefined : json["Path"],
|
|
685
|
+
inputArguments: json["InputArguments"] == null ? undefined : json["InputArguments"],
|
|
686
|
+
outputArguments: json["OutputArguments"] == null ? undefined : json["OutputArguments"],
|
|
687
|
+
dataVariation: json["DataVariation"] == null ? undefined : EntryPointDataVariationDtoFromJSON(json["DataVariation"]),
|
|
688
|
+
id: json["Id"] == null ? undefined : json["Id"]
|
|
689
|
+
};
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
// ../orchestrator-sdk/generated/src/models/SimpleRobotDto.ts
|
|
693
|
+
function SimpleRobotDtoFromJSON(json) {
|
|
694
|
+
return SimpleRobotDtoFromJSONTyped(json, false);
|
|
695
|
+
}
|
|
696
|
+
function SimpleRobotDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
697
|
+
if (json == null) {
|
|
698
|
+
return json;
|
|
699
|
+
}
|
|
700
|
+
return {
|
|
701
|
+
licenseKey: json["LicenseKey"] == null ? undefined : json["LicenseKey"],
|
|
702
|
+
machineName: json["MachineName"] == null ? undefined : json["MachineName"],
|
|
703
|
+
machineId: json["MachineId"] == null ? undefined : json["MachineId"],
|
|
704
|
+
name: json["Name"],
|
|
705
|
+
username: json["Username"] == null ? undefined : json["Username"],
|
|
706
|
+
externalName: json["ExternalName"] == null ? undefined : json["ExternalName"],
|
|
707
|
+
description: json["Description"] == null ? undefined : json["Description"],
|
|
708
|
+
type: json["Type"],
|
|
709
|
+
hostingType: json["HostingType"],
|
|
710
|
+
provisionType: json["ProvisionType"] == null ? undefined : json["ProvisionType"],
|
|
711
|
+
password: json["Password"] == null ? undefined : json["Password"],
|
|
712
|
+
credentialStoreId: json["CredentialStoreId"] == null ? undefined : json["CredentialStoreId"],
|
|
713
|
+
userId: json["UserId"] == null ? undefined : json["UserId"],
|
|
714
|
+
enabled: json["Enabled"] == null ? undefined : json["Enabled"],
|
|
715
|
+
credentialType: json["CredentialType"] == null ? undefined : json["CredentialType"],
|
|
716
|
+
environments: json["Environments"] == null ? undefined : json["Environments"].map(EnvironmentDtoFromJSON),
|
|
717
|
+
robotEnvironments: json["RobotEnvironments"] == null ? undefined : json["RobotEnvironments"],
|
|
718
|
+
executionSettings: json["ExecutionSettings"] == null ? undefined : json["ExecutionSettings"],
|
|
719
|
+
isExternalLicensed: json["IsExternalLicensed"] == null ? undefined : json["IsExternalLicensed"],
|
|
720
|
+
limitConcurrentExecution: json["LimitConcurrentExecution"] == null ? undefined : json["LimitConcurrentExecution"],
|
|
721
|
+
lastModificationTime: json["LastModificationTime"] == null ? undefined : new Date(json["LastModificationTime"]),
|
|
722
|
+
lastModifierUserId: json["LastModifierUserId"] == null ? undefined : json["LastModifierUserId"],
|
|
723
|
+
creationTime: json["CreationTime"] == null ? undefined : new Date(json["CreationTime"]),
|
|
724
|
+
creatorUserId: json["CreatorUserId"] == null ? undefined : json["CreatorUserId"],
|
|
725
|
+
id: json["Id"] == null ? undefined : json["Id"]
|
|
726
|
+
};
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
// ../orchestrator-sdk/generated/src/models/EnvironmentDto.ts
|
|
730
|
+
function EnvironmentDtoFromJSON(json) {
|
|
731
|
+
return EnvironmentDtoFromJSONTyped2(json, false);
|
|
732
|
+
}
|
|
733
|
+
function EnvironmentDtoFromJSONTyped2(json, ignoreDiscriminator) {
|
|
734
|
+
if (json == null) {
|
|
735
|
+
return json;
|
|
736
|
+
}
|
|
737
|
+
return {
|
|
738
|
+
name: json["name"],
|
|
739
|
+
description: json["description"] == null ? undefined : json["description"],
|
|
740
|
+
robots: json["robots"] == null ? undefined : json["robots"].map(SimpleRobotDtoFromJSON),
|
|
741
|
+
type: json["type"] == null ? undefined : json["type"],
|
|
742
|
+
id: json["id"] == null ? undefined : json["id"]
|
|
743
|
+
};
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
// ../orchestrator-sdk/generated/src/models/UpdatePolicyDto.ts
|
|
747
|
+
function UpdatePolicyDtoFromJSON(json) {
|
|
748
|
+
return UpdatePolicyDtoFromJSONTyped(json, false);
|
|
749
|
+
}
|
|
750
|
+
function UpdatePolicyDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
751
|
+
if (json == null) {
|
|
752
|
+
return json;
|
|
753
|
+
}
|
|
754
|
+
return {
|
|
755
|
+
type: json["Type"] == null ? undefined : json["Type"],
|
|
756
|
+
specificVersion: json["SpecificVersion"] == null ? undefined : json["SpecificVersion"]
|
|
757
|
+
};
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
// ../orchestrator-sdk/generated/src/models/ExportModel.ts
|
|
761
|
+
function ExportModelFromJSON(json) {
|
|
762
|
+
return ExportModelFromJSONTyped(json, false);
|
|
763
|
+
}
|
|
764
|
+
function ExportModelFromJSONTyped(json, ignoreDiscriminator) {
|
|
765
|
+
if (json == null) {
|
|
766
|
+
return json;
|
|
767
|
+
}
|
|
768
|
+
return {
|
|
769
|
+
id: json["Id"] == null ? undefined : json["Id"],
|
|
770
|
+
name: json["Name"] == null ? undefined : json["Name"],
|
|
771
|
+
type: json["Type"] == null ? undefined : json["Type"],
|
|
772
|
+
status: json["Status"] == null ? undefined : json["Status"],
|
|
773
|
+
requestedAt: json["RequestedAt"] == null ? undefined : new Date(json["RequestedAt"]),
|
|
774
|
+
executedAt: json["ExecutedAt"] == null ? undefined : new Date(json["ExecutedAt"]),
|
|
775
|
+
size: json["Size"] == null ? undefined : json["Size"]
|
|
776
|
+
};
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
// ../orchestrator-sdk/generated/src/models/ExtendedFolderDto.ts
|
|
780
|
+
function ExtendedFolderDtoFromJSON(json) {
|
|
781
|
+
return ExtendedFolderDtoFromJSONTyped(json, false);
|
|
782
|
+
}
|
|
783
|
+
function ExtendedFolderDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
784
|
+
if (json == null) {
|
|
785
|
+
return json;
|
|
786
|
+
}
|
|
787
|
+
return {
|
|
788
|
+
isSelectable: json["IsSelectable"] == null ? undefined : json["IsSelectable"],
|
|
789
|
+
hasChildren: json["HasChildren"] == null ? undefined : json["HasChildren"],
|
|
790
|
+
level: json["Level"] == null ? undefined : json["Level"],
|
|
791
|
+
key: json["Key"] == null ? undefined : json["Key"],
|
|
792
|
+
displayName: json["DisplayName"],
|
|
793
|
+
fullyQualifiedName: json["FullyQualifiedName"] == null ? undefined : json["FullyQualifiedName"],
|
|
794
|
+
description: json["Description"] == null ? undefined : json["Description"],
|
|
795
|
+
folderType: json["FolderType"] == null ? undefined : json["FolderType"],
|
|
796
|
+
isPersonal: json["IsPersonal"] == null ? undefined : json["IsPersonal"],
|
|
797
|
+
provisionType: json["ProvisionType"] == null ? undefined : json["ProvisionType"],
|
|
798
|
+
permissionModel: json["PermissionModel"] == null ? undefined : json["PermissionModel"],
|
|
799
|
+
parentId: json["ParentId"] == null ? undefined : json["ParentId"],
|
|
800
|
+
parentKey: json["ParentKey"] == null ? undefined : json["ParentKey"],
|
|
801
|
+
feedType: json["FeedType"] == null ? undefined : json["FeedType"],
|
|
802
|
+
id: json["Id"] == null ? undefined : json["Id"]
|
|
803
|
+
};
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
// ../orchestrator-sdk/generated/src/models/MachineVpnSettingsDto.ts
|
|
807
|
+
function MachineVpnSettingsDtoFromJSON(json) {
|
|
808
|
+
return MachineVpnSettingsDtoFromJSONTyped(json, false);
|
|
809
|
+
}
|
|
810
|
+
function MachineVpnSettingsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
811
|
+
if (json == null) {
|
|
812
|
+
return json;
|
|
813
|
+
}
|
|
814
|
+
return {
|
|
815
|
+
cidr: json["cidr"] == null ? undefined : json["cidr"]
|
|
816
|
+
};
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
// ../orchestrator-sdk/generated/src/models/MaintenanceWindowDto.ts
|
|
820
|
+
function MaintenanceWindowDtoFromJSON(json) {
|
|
821
|
+
return MaintenanceWindowDtoFromJSONTyped(json, false);
|
|
822
|
+
}
|
|
823
|
+
function MaintenanceWindowDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
824
|
+
if (json == null) {
|
|
825
|
+
return json;
|
|
826
|
+
}
|
|
827
|
+
return {
|
|
828
|
+
enabled: json["enabled"] == null ? undefined : json["enabled"],
|
|
829
|
+
jobStopStrategy: json["jobStopStrategy"] == null ? undefined : json["jobStopStrategy"],
|
|
830
|
+
cronExpression: json["cronExpression"] == null ? undefined : json["cronExpression"],
|
|
831
|
+
timezoneId: json["timezoneId"] == null ? undefined : json["timezoneId"],
|
|
832
|
+
duration: json["duration"] == null ? undefined : json["duration"],
|
|
833
|
+
nextExecutionTime: json["nextExecutionTime"] == null ? undefined : new Date(json["nextExecutionTime"])
|
|
834
|
+
};
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
// ../orchestrator-sdk/generated/src/models/UpdateInfoDto.ts
|
|
838
|
+
function UpdateInfoDtoFromJSON(json) {
|
|
839
|
+
return UpdateInfoDtoFromJSONTyped(json, false);
|
|
840
|
+
}
|
|
841
|
+
function UpdateInfoDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
842
|
+
if (json == null) {
|
|
843
|
+
return json;
|
|
844
|
+
}
|
|
845
|
+
return {
|
|
846
|
+
updateStatus: json["updateStatus"] == null ? undefined : json["updateStatus"],
|
|
847
|
+
reason: json["reason"] == null ? undefined : json["reason"],
|
|
848
|
+
targetUpdateVersion: json["targetUpdateVersion"] == null ? undefined : json["targetUpdateVersion"],
|
|
849
|
+
isCommunity: json["isCommunity"] == null ? undefined : json["isCommunity"],
|
|
850
|
+
statusInfo: json["statusInfo"] == null ? undefined : json["statusInfo"]
|
|
851
|
+
};
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
// ../orchestrator-sdk/generated/src/models/MachinesRobotVersionDto.ts
|
|
855
|
+
function MachinesRobotVersionDtoFromJSON(json) {
|
|
856
|
+
return MachinesRobotVersionDtoFromJSONTyped(json, false);
|
|
857
|
+
}
|
|
858
|
+
function MachinesRobotVersionDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
859
|
+
if (json == null) {
|
|
860
|
+
return json;
|
|
861
|
+
}
|
|
862
|
+
return {
|
|
863
|
+
count: json["Count"] == null ? undefined : json["Count"],
|
|
864
|
+
version: json["Version"] == null ? undefined : json["Version"],
|
|
865
|
+
machineId: json["MachineId"] == null ? undefined : json["MachineId"]
|
|
866
|
+
};
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
// ../orchestrator-sdk/generated/src/models/RobotUserDto.ts
|
|
870
|
+
function RobotUserDtoFromJSON(json) {
|
|
871
|
+
return RobotUserDtoFromJSONTyped(json, false);
|
|
872
|
+
}
|
|
873
|
+
function RobotUserDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
874
|
+
if (json == null) {
|
|
875
|
+
return json;
|
|
876
|
+
}
|
|
877
|
+
return {
|
|
878
|
+
userName: json["UserName"] == null ? undefined : json["UserName"],
|
|
879
|
+
robotId: json["RobotId"],
|
|
880
|
+
hasTriggers: json["HasTriggers"] == null ? undefined : json["HasTriggers"]
|
|
881
|
+
};
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
// ../orchestrator-sdk/generated/src/models/UserRoleDto.ts
|
|
885
|
+
function UserRoleDtoFromJSON(json) {
|
|
886
|
+
return UserRoleDtoFromJSONTyped(json, false);
|
|
887
|
+
}
|
|
888
|
+
function UserRoleDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
889
|
+
if (json == null) {
|
|
890
|
+
return json;
|
|
891
|
+
}
|
|
892
|
+
return {
|
|
893
|
+
userId: json["UserId"] == null ? undefined : json["UserId"],
|
|
894
|
+
roleId: json["RoleId"] == null ? undefined : json["RoleId"],
|
|
895
|
+
userName: json["UserName"] == null ? undefined : json["UserName"],
|
|
896
|
+
roleName: json["RoleName"] == null ? undefined : json["RoleName"],
|
|
897
|
+
roleType: json["RoleType"] == null ? undefined : json["RoleType"],
|
|
898
|
+
id: json["Id"] == null ? undefined : json["Id"]
|
|
899
|
+
};
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
// ../orchestrator-sdk/generated/src/models/FolderDto.ts
|
|
903
|
+
function FolderDtoFromJSON(json) {
|
|
904
|
+
return FolderDtoFromJSONTyped(json, false);
|
|
905
|
+
}
|
|
906
|
+
function FolderDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
907
|
+
if (json == null) {
|
|
908
|
+
return json;
|
|
909
|
+
}
|
|
910
|
+
return {
|
|
911
|
+
key: json["Key"] == null ? undefined : json["Key"],
|
|
912
|
+
displayName: json["DisplayName"],
|
|
913
|
+
fullyQualifiedName: json["FullyQualifiedName"] == null ? undefined : json["FullyQualifiedName"],
|
|
914
|
+
description: json["Description"] == null ? undefined : json["Description"],
|
|
915
|
+
folderType: json["FolderType"] == null ? undefined : json["FolderType"],
|
|
916
|
+
isPersonal: json["IsPersonal"] == null ? undefined : json["IsPersonal"],
|
|
917
|
+
provisionType: json["ProvisionType"] == null ? undefined : json["ProvisionType"],
|
|
918
|
+
permissionModel: json["PermissionModel"] == null ? undefined : json["PermissionModel"],
|
|
919
|
+
parentId: json["ParentId"] == null ? undefined : json["ParentId"],
|
|
920
|
+
parentKey: json["ParentKey"] == null ? undefined : json["ParentKey"],
|
|
921
|
+
feedType: json["FeedType"] == null ? undefined : json["FeedType"],
|
|
922
|
+
id: json["Id"] == null ? undefined : json["Id"]
|
|
923
|
+
};
|
|
924
|
+
}
|
|
925
|
+
function FolderDtoToJSON(json) {
|
|
926
|
+
return FolderDtoToJSONTyped(json, false);
|
|
927
|
+
}
|
|
928
|
+
function FolderDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
929
|
+
if (value == null) {
|
|
930
|
+
return value;
|
|
931
|
+
}
|
|
932
|
+
return {
|
|
933
|
+
Key: value["key"],
|
|
934
|
+
DisplayName: value["displayName"],
|
|
935
|
+
FullyQualifiedName: value["fullyQualifiedName"],
|
|
936
|
+
Description: value["description"],
|
|
937
|
+
FolderType: value["folderType"],
|
|
938
|
+
ProvisionType: value["provisionType"],
|
|
939
|
+
PermissionModel: value["permissionModel"],
|
|
940
|
+
ParentId: value["parentId"],
|
|
941
|
+
ParentKey: value["parentKey"],
|
|
942
|
+
FeedType: value["feedType"],
|
|
943
|
+
Id: value["id"]
|
|
944
|
+
};
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
// ../orchestrator-sdk/generated/src/models/FireTriggersForTasksRequest.ts
|
|
948
|
+
function FireTriggersForTasksRequestToJSON(json) {
|
|
949
|
+
return FireTriggersForTasksRequestToJSONTyped(json, false);
|
|
950
|
+
}
|
|
951
|
+
function FireTriggersForTasksRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
952
|
+
if (value == null) {
|
|
953
|
+
return value;
|
|
954
|
+
}
|
|
955
|
+
return {
|
|
956
|
+
identifiers: value["identifiers"]
|
|
957
|
+
};
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
// ../orchestrator-sdk/generated/src/models/Folder.ts
|
|
961
|
+
function FolderFromJSON(json) {
|
|
962
|
+
return FolderFromJSONTyped(json, false);
|
|
963
|
+
}
|
|
964
|
+
function FolderFromJSONTyped(json, ignoreDiscriminator) {
|
|
965
|
+
if (json == null) {
|
|
966
|
+
return json;
|
|
967
|
+
}
|
|
968
|
+
return {
|
|
969
|
+
id: json["id"] == null ? undefined : json["id"],
|
|
970
|
+
key: json["key"] == null ? undefined : json["key"],
|
|
971
|
+
path: json["path"] == null ? undefined : json["path"],
|
|
972
|
+
timestamp: json["timestamp"] == null ? undefined : new Date(json["timestamp"]),
|
|
973
|
+
type: json["type"] == null ? undefined : json["type"],
|
|
974
|
+
fullyQualifiedName: json["fullyQualifiedName"] == null ? undefined : json["fullyQualifiedName"],
|
|
975
|
+
displayName: json["displayName"] == null ? undefined : json["displayName"],
|
|
976
|
+
description: json["description"] == null ? undefined : json["description"],
|
|
977
|
+
isDeleted: json["isDeleted"] == null ? undefined : json["isDeleted"]
|
|
978
|
+
};
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
// ../orchestrator-sdk/generated/src/models/FolderAssignDomainUserRequest.ts
|
|
982
|
+
function FolderAssignDomainUserRequestToJSON(json) {
|
|
983
|
+
return FolderAssignDomainUserRequestToJSONTyped(json, false);
|
|
984
|
+
}
|
|
985
|
+
function FolderAssignDomainUserRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
986
|
+
if (value == null) {
|
|
987
|
+
return value;
|
|
988
|
+
}
|
|
989
|
+
return {
|
|
990
|
+
assignment: DomainUserAssignmentDtoToJSON(value["assignment"])
|
|
991
|
+
};
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
// ../orchestrator-sdk/generated/src/models/MachineAssignmentsDto.ts
|
|
995
|
+
function MachineAssignmentsDtoToJSON(json) {
|
|
996
|
+
return MachineAssignmentsDtoToJSONTyped(json, false);
|
|
997
|
+
}
|
|
998
|
+
function MachineAssignmentsDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
999
|
+
if (value == null) {
|
|
1000
|
+
return value;
|
|
1001
|
+
}
|
|
1002
|
+
return {
|
|
1003
|
+
MachineIds: value["machineIds"],
|
|
1004
|
+
FolderIds: value["folderIds"]
|
|
1005
|
+
};
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
// ../orchestrator-sdk/generated/src/models/FolderAssignMachinesRequest.ts
|
|
1009
|
+
function FolderAssignMachinesRequestToJSON(json) {
|
|
1010
|
+
return FolderAssignMachinesRequestToJSONTyped(json, false);
|
|
1011
|
+
}
|
|
1012
|
+
function FolderAssignMachinesRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1013
|
+
if (value == null) {
|
|
1014
|
+
return value;
|
|
1015
|
+
}
|
|
1016
|
+
return {
|
|
1017
|
+
assignments: MachineAssignmentsDtoToJSON(value["assignments"])
|
|
1018
|
+
};
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
// ../orchestrator-sdk/generated/src/models/UserAssignmentsDto.ts
|
|
1022
|
+
function UserAssignmentsDtoToJSON(json) {
|
|
1023
|
+
return UserAssignmentsDtoToJSONTyped(json, false);
|
|
1024
|
+
}
|
|
1025
|
+
function UserAssignmentsDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1026
|
+
if (value == null) {
|
|
1027
|
+
return value;
|
|
1028
|
+
}
|
|
1029
|
+
return {
|
|
1030
|
+
UserIds: value["userIds"],
|
|
1031
|
+
RolesPerFolder: value["rolesPerFolder"] == null ? undefined : value["rolesPerFolder"].map(FolderRolesDtoToJSON)
|
|
1032
|
+
};
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
// ../orchestrator-sdk/generated/src/models/FolderAssignUsersRequest.ts
|
|
1036
|
+
function FolderAssignUsersRequestToJSON(json) {
|
|
1037
|
+
return FolderAssignUsersRequestToJSONTyped(json, false);
|
|
1038
|
+
}
|
|
1039
|
+
function FolderAssignUsersRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1040
|
+
if (value == null) {
|
|
1041
|
+
return value;
|
|
1042
|
+
}
|
|
1043
|
+
return {
|
|
1044
|
+
assignments: UserAssignmentsDtoToJSON(value["assignments"])
|
|
1045
|
+
};
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
// ../orchestrator-sdk/generated/src/models/SimpleUserEntityDto.ts
|
|
1049
|
+
function SimpleUserEntityDtoFromJSON(json) {
|
|
1050
|
+
return SimpleUserEntityDtoFromJSONTyped(json, false);
|
|
1051
|
+
}
|
|
1052
|
+
function SimpleUserEntityDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1053
|
+
if (json == null) {
|
|
1054
|
+
return json;
|
|
1055
|
+
}
|
|
1056
|
+
return {
|
|
1057
|
+
key: json["Key"] == null ? undefined : json["Key"],
|
|
1058
|
+
userName: json["UserName"] == null ? undefined : json["UserName"],
|
|
1059
|
+
isInherited: json["IsInherited"] == null ? undefined : json["IsInherited"],
|
|
1060
|
+
assignedToFolderIds: json["AssignedToFolderIds"] == null ? undefined : json["AssignedToFolderIds"],
|
|
1061
|
+
mayHaveAttended: json["MayHaveAttended"] == null ? undefined : json["MayHaveAttended"],
|
|
1062
|
+
mayHaveUnattended: json["MayHaveUnattended"] == null ? undefined : json["MayHaveUnattended"],
|
|
1063
|
+
type: json["Type"] == null ? undefined : json["Type"],
|
|
1064
|
+
source: json["Source"] == null ? undefined : json["Source"],
|
|
1065
|
+
isActive: json["IsActive"] == null ? undefined : json["IsActive"],
|
|
1066
|
+
id: json["Id"] == null ? undefined : json["Id"]
|
|
1067
|
+
};
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
// ../orchestrator-sdk/generated/src/models/RoleUsersDto.ts
|
|
1071
|
+
function RoleUsersDtoFromJSON(json) {
|
|
1072
|
+
return RoleUsersDtoFromJSONTyped(json, false);
|
|
1073
|
+
}
|
|
1074
|
+
function RoleUsersDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1075
|
+
if (json == null) {
|
|
1076
|
+
return json;
|
|
1077
|
+
}
|
|
1078
|
+
return {
|
|
1079
|
+
name: json["Name"] == null ? undefined : json["Name"],
|
|
1080
|
+
users: json["Users"] == null ? undefined : json["Users"].map(SimpleUserEntityDtoFromJSON),
|
|
1081
|
+
id: json["Id"] == null ? undefined : json["Id"]
|
|
1082
|
+
};
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1085
|
+
// ../orchestrator-sdk/generated/src/models/FolderAssignmentsDto.ts
|
|
1086
|
+
function FolderAssignmentsDtoFromJSON(json) {
|
|
1087
|
+
return FolderAssignmentsDtoFromJSONTyped(json, false);
|
|
1088
|
+
}
|
|
1089
|
+
function FolderAssignmentsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1090
|
+
if (json == null) {
|
|
1091
|
+
return json;
|
|
1092
|
+
}
|
|
1093
|
+
return {
|
|
1094
|
+
folder: json["Folder"] == null ? undefined : SimpleFolderDtoFromJSON(json["Folder"]),
|
|
1095
|
+
roles: json["Roles"] == null ? undefined : json["Roles"].map(RoleUsersDtoFromJSON)
|
|
1096
|
+
};
|
|
1097
|
+
}
|
|
1098
|
+
|
|
1099
|
+
// ../orchestrator-sdk/generated/src/models/FolderIdentifier.ts
|
|
1100
|
+
function FolderIdentifierFromJSON(json) {
|
|
1101
|
+
return FolderIdentifierFromJSONTyped(json, false);
|
|
1102
|
+
}
|
|
1103
|
+
function FolderIdentifierFromJSONTyped(json, ignoreDiscriminator) {
|
|
1104
|
+
if (json == null) {
|
|
1105
|
+
return json;
|
|
1106
|
+
}
|
|
1107
|
+
return {
|
|
1108
|
+
id: json["id"] == null ? undefined : json["id"],
|
|
1109
|
+
key: json["key"] == null ? undefined : json["key"],
|
|
1110
|
+
path: json["path"] == null ? undefined : json["path"]
|
|
1111
|
+
};
|
|
1112
|
+
}
|
|
1113
|
+
|
|
1114
|
+
// ../orchestrator-sdk/generated/src/models/FolderMachineInheritDto.ts
|
|
1115
|
+
function FolderMachineInheritDtoToJSON(json) {
|
|
1116
|
+
return FolderMachineInheritDtoToJSONTyped(json, false);
|
|
1117
|
+
}
|
|
1118
|
+
function FolderMachineInheritDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1119
|
+
if (value == null) {
|
|
1120
|
+
return value;
|
|
1121
|
+
}
|
|
1122
|
+
return {
|
|
1123
|
+
MachineId: value["machineId"],
|
|
1124
|
+
FolderId: value["folderId"],
|
|
1125
|
+
InheritEnabled: value["inheritEnabled"]
|
|
1126
|
+
};
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1129
|
+
// ../orchestrator-sdk/generated/src/models/FolderMachineRobotsDto.ts
|
|
1130
|
+
function FolderMachineRobotsDtoToJSON(json) {
|
|
1131
|
+
return FolderMachineRobotsDtoToJSONTyped(json, false);
|
|
1132
|
+
}
|
|
1133
|
+
function FolderMachineRobotsDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1134
|
+
if (value == null) {
|
|
1135
|
+
return value;
|
|
1136
|
+
}
|
|
1137
|
+
return {
|
|
1138
|
+
MachineId: value["machineId"],
|
|
1139
|
+
FolderId: value["folderId"],
|
|
1140
|
+
AddedRobotIds: value["addedRobotIds"],
|
|
1141
|
+
RemovedRobotIds: value["removedRobotIds"]
|
|
1142
|
+
};
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
// ../orchestrator-sdk/generated/src/models/FolderUpdateNameDescriptionRequest.ts
|
|
1146
|
+
function FolderUpdateNameDescriptionRequestToJSON(json) {
|
|
1147
|
+
return FolderUpdateNameDescriptionRequestToJSONTyped(json, false);
|
|
1148
|
+
}
|
|
1149
|
+
function FolderUpdateNameDescriptionRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1150
|
+
if (value == null) {
|
|
1151
|
+
return value;
|
|
1152
|
+
}
|
|
1153
|
+
return {
|
|
1154
|
+
name: value["name"],
|
|
1155
|
+
description: value["description"]
|
|
1156
|
+
};
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
// ../orchestrator-sdk/generated/src/models/JobErrorDto.ts
|
|
1160
|
+
function JobErrorDtoFromJSON(json) {
|
|
1161
|
+
return JobErrorDtoFromJSONTyped(json, false);
|
|
1162
|
+
}
|
|
1163
|
+
function JobErrorDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1164
|
+
if (json == null) {
|
|
1165
|
+
return json;
|
|
1166
|
+
}
|
|
1167
|
+
return {
|
|
1168
|
+
code: json["code"] == null ? undefined : json["code"],
|
|
1169
|
+
title: json["title"] == null ? undefined : json["title"],
|
|
1170
|
+
detail: json["detail"] == null ? undefined : json["detail"],
|
|
1171
|
+
category: json["category"] == null ? undefined : json["category"],
|
|
1172
|
+
status: json["status"] == null ? undefined : json["status"],
|
|
1173
|
+
timestamp: json["timestamp"] == null ? undefined : new Date(json["timestamp"])
|
|
1174
|
+
};
|
|
1175
|
+
}
|
|
1176
|
+
function JobErrorDtoToJSON(json) {
|
|
1177
|
+
return JobErrorDtoToJSONTyped(json, false);
|
|
1178
|
+
}
|
|
1179
|
+
function JobErrorDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1180
|
+
if (value == null) {
|
|
1181
|
+
return value;
|
|
1182
|
+
}
|
|
1183
|
+
return {
|
|
1184
|
+
code: value["code"],
|
|
1185
|
+
title: value["title"],
|
|
1186
|
+
detail: value["detail"],
|
|
1187
|
+
category: value["category"],
|
|
1188
|
+
status: value["status"],
|
|
1189
|
+
timestamp: value["timestamp"] == null ? value["timestamp"] : value["timestamp"].toISOString()
|
|
1190
|
+
};
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
// ../orchestrator-sdk/generated/src/models/ForceStopJobsRequest.ts
|
|
1194
|
+
function ForceStopJobsRequestToJSON(json) {
|
|
1195
|
+
return ForceStopJobsRequestToJSONTyped(json, false);
|
|
1196
|
+
}
|
|
1197
|
+
function ForceStopJobsRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1198
|
+
if (value == null) {
|
|
1199
|
+
return value;
|
|
1200
|
+
}
|
|
1201
|
+
return {
|
|
1202
|
+
jobKeys: value["jobKeys"],
|
|
1203
|
+
info: value["info"],
|
|
1204
|
+
runtimeErrorCode: value["runtimeErrorCode"],
|
|
1205
|
+
error: JobErrorDtoToJSON(value["error"]),
|
|
1206
|
+
setFaulted: value["setFaulted"]
|
|
1207
|
+
};
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
// ../orchestrator-sdk/generated/src/models/HierarchyJobDto.ts
|
|
1211
|
+
function HierarchyJobDtoFromJSON(json) {
|
|
1212
|
+
return HierarchyJobDtoFromJSONTyped(json, false);
|
|
1213
|
+
}
|
|
1214
|
+
function HierarchyJobDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1215
|
+
if (json == null) {
|
|
1216
|
+
return json;
|
|
1217
|
+
}
|
|
1218
|
+
return {
|
|
1219
|
+
key: json["key"] == null ? undefined : json["key"],
|
|
1220
|
+
parentJobKey: json["parentJobKey"] == null ? undefined : json["parentJobKey"],
|
|
1221
|
+
processType: json["processType"] == null ? undefined : json["processType"],
|
|
1222
|
+
state: json["state"] == null ? undefined : json["state"],
|
|
1223
|
+
startTime: json["startTime"] == null ? undefined : new Date(json["startTime"]),
|
|
1224
|
+
endTime: json["endTime"] == null ? undefined : new Date(json["endTime"]),
|
|
1225
|
+
machineName: json["machineName"] == null ? undefined : json["machineName"],
|
|
1226
|
+
hostMachineName: json["hostMachineName"] == null ? undefined : json["hostMachineName"],
|
|
1227
|
+
priority: json["priority"] == null ? undefined : json["priority"],
|
|
1228
|
+
specificPriorityValue: json["specificPriorityValue"] == null ? undefined : json["specificPriorityValue"],
|
|
1229
|
+
runtimeType: json["runtimeType"] == null ? undefined : json["runtimeType"],
|
|
1230
|
+
type: json["type"] == null ? undefined : json["type"],
|
|
1231
|
+
serverlessJobType: json["serverlessJobType"] == null ? undefined : json["serverlessJobType"],
|
|
1232
|
+
entryPointPath: json["entryPointPath"] == null ? undefined : json["entryPointPath"],
|
|
1233
|
+
source: json["source"] == null ? undefined : json["source"],
|
|
1234
|
+
sourceType: json["sourceType"] == null ? undefined : json["sourceType"],
|
|
1235
|
+
folderKey: json["folderKey"] == null ? undefined : json["folderKey"],
|
|
1236
|
+
folderName: json["folderName"] == null ? undefined : json["folderName"],
|
|
1237
|
+
releaseName: json["releaseName"] == null ? undefined : json["releaseName"],
|
|
1238
|
+
releaseKey: json["releaseKey"] == null ? undefined : json["releaseKey"]
|
|
1239
|
+
};
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
// ../orchestrator-sdk/generated/src/models/JobArgumentsSchemaDto.ts
|
|
1243
|
+
function JobArgumentsSchemaDtoFromJSON(json) {
|
|
1244
|
+
return JobArgumentsSchemaDtoFromJSONTyped(json, false);
|
|
1245
|
+
}
|
|
1246
|
+
function JobArgumentsSchemaDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1247
|
+
if (json == null) {
|
|
1248
|
+
return json;
|
|
1249
|
+
}
|
|
1250
|
+
return {
|
|
1251
|
+
inputArguments: json["InputArguments"] == null ? undefined : json["InputArguments"],
|
|
1252
|
+
outputArguments: json["OutputArguments"] == null ? undefined : json["OutputArguments"],
|
|
1253
|
+
inputArgumentsJsonSchema: json["InputArgumentsJsonSchema"] == null ? undefined : json["InputArgumentsJsonSchema"],
|
|
1254
|
+
outputArgumentsJsonSchema: json["OutputArgumentsJsonSchema"] == null ? undefined : json["OutputArgumentsJsonSchema"]
|
|
1255
|
+
};
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
// ../orchestrator-sdk/generated/src/models/JobAttachmentDto.ts
|
|
1259
|
+
function JobAttachmentDtoToJSON(json) {
|
|
1260
|
+
return JobAttachmentDtoToJSONTyped(json, false);
|
|
1261
|
+
}
|
|
1262
|
+
function JobAttachmentDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1263
|
+
if (value == null) {
|
|
1264
|
+
return value;
|
|
1265
|
+
}
|
|
1266
|
+
return {
|
|
1267
|
+
attachmentId: value["attachmentId"],
|
|
1268
|
+
jobKey: value["jobKey"],
|
|
1269
|
+
category: value["category"],
|
|
1270
|
+
attachmentName: value["attachmentName"],
|
|
1271
|
+
lastModificationTime: value["lastModificationTime"] == null ? value["lastModificationTime"] : value["lastModificationTime"].toISOString(),
|
|
1272
|
+
lastModifierUserId: value["lastModifierUserId"],
|
|
1273
|
+
creationTime: value["creationTime"] == null ? value["creationTime"] : value["creationTime"].toISOString(),
|
|
1274
|
+
creatorUserId: value["creatorUserId"],
|
|
1275
|
+
id: value["id"]
|
|
1276
|
+
};
|
|
1277
|
+
}
|
|
1278
|
+
|
|
1279
|
+
// ../orchestrator-sdk/generated/src/models/ReleaseVersionDto.ts
|
|
1280
|
+
function ReleaseVersionDtoFromJSON(json) {
|
|
1281
|
+
return ReleaseVersionDtoFromJSONTyped(json, false);
|
|
1282
|
+
}
|
|
1283
|
+
function ReleaseVersionDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1284
|
+
if (json == null) {
|
|
1285
|
+
return json;
|
|
1286
|
+
}
|
|
1287
|
+
return {
|
|
1288
|
+
releaseId: json["ReleaseId"],
|
|
1289
|
+
versionNumber: json["VersionNumber"],
|
|
1290
|
+
creationTime: json["CreationTime"] == null ? undefined : new Date(json["CreationTime"]),
|
|
1291
|
+
releaseName: json["ReleaseName"] == null ? undefined : json["ReleaseName"],
|
|
1292
|
+
id: json["Id"] == null ? undefined : json["Id"]
|
|
1293
|
+
};
|
|
1294
|
+
}
|
|
1295
|
+
|
|
1296
|
+
// ../orchestrator-sdk/generated/src/models/ProcessSettingsDto.ts
|
|
1297
|
+
function ProcessSettingsDtoFromJSON(json) {
|
|
1298
|
+
return ProcessSettingsDtoFromJSONTyped(json, false);
|
|
1299
|
+
}
|
|
1300
|
+
function ProcessSettingsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1301
|
+
if (json == null) {
|
|
1302
|
+
return json;
|
|
1303
|
+
}
|
|
1304
|
+
return {
|
|
1305
|
+
errorRecordingEnabled: json["ErrorRecordingEnabled"] == null ? undefined : json["ErrorRecordingEnabled"],
|
|
1306
|
+
duration: json["Duration"] == null ? undefined : json["Duration"],
|
|
1307
|
+
frequency: json["Frequency"] == null ? undefined : json["Frequency"],
|
|
1308
|
+
quality: json["Quality"] == null ? undefined : json["Quality"],
|
|
1309
|
+
autoStartProcess: json["AutoStartProcess"] == null ? undefined : json["AutoStartProcess"],
|
|
1310
|
+
alwaysRunning: json["AlwaysRunning"] == null ? undefined : json["AlwaysRunning"],
|
|
1311
|
+
autopilotForRobots: json["AutopilotForRobots"] == null ? undefined : AutopilotForRobotsSettingsDtoFromJSON(json["AutopilotForRobots"]),
|
|
1312
|
+
agentSettings: json["AgentSettings"] == null ? undefined : AgentSettingsFromJSON(json["AgentSettings"]),
|
|
1313
|
+
runMode: json["RunMode"] == null ? undefined : json["RunMode"]
|
|
1314
|
+
};
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1317
|
+
// ../orchestrator-sdk/generated/src/models/SimpleReleaseDto.ts
|
|
1318
|
+
function SimpleReleaseDtoFromJSON(json) {
|
|
1319
|
+
return SimpleReleaseDtoFromJSONTyped(json, false);
|
|
1320
|
+
}
|
|
1321
|
+
function SimpleReleaseDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1322
|
+
if (json == null) {
|
|
1323
|
+
return json;
|
|
1324
|
+
}
|
|
1325
|
+
return {
|
|
1326
|
+
key: json["Key"] == null ? undefined : json["Key"],
|
|
1327
|
+
processKey: json["ProcessKey"],
|
|
1328
|
+
processVersion: json["ProcessVersion"],
|
|
1329
|
+
projectKey: json["ProjectKey"] == null ? undefined : json["ProjectKey"],
|
|
1330
|
+
isLatestVersion: json["IsLatestVersion"] == null ? undefined : json["IsLatestVersion"],
|
|
1331
|
+
isProcessDeleted: json["IsProcessDeleted"] == null ? undefined : json["IsProcessDeleted"],
|
|
1332
|
+
description: json["Description"] == null ? undefined : json["Description"],
|
|
1333
|
+
name: json["Name"],
|
|
1334
|
+
environmentId: json["EnvironmentId"] == null ? undefined : json["EnvironmentId"],
|
|
1335
|
+
environmentName: json["EnvironmentName"] == null ? undefined : json["EnvironmentName"],
|
|
1336
|
+
environment: json["Environment"] == null ? undefined : EnvironmentDtoFromJSON(json["Environment"]),
|
|
1337
|
+
entryPointId: json["EntryPointId"] == null ? undefined : json["EntryPointId"],
|
|
1338
|
+
entryPointPath: json["EntryPointPath"] == null ? undefined : json["EntryPointPath"],
|
|
1339
|
+
entryPoint: json["EntryPoint"] == null ? undefined : EntryPointDtoFromJSON(json["EntryPoint"]),
|
|
1340
|
+
inputArguments: json["InputArguments"] == null ? undefined : json["InputArguments"],
|
|
1341
|
+
environmentVariables: json["EnvironmentVariables"] == null ? undefined : json["EnvironmentVariables"],
|
|
1342
|
+
processType: json["ProcessType"] == null ? undefined : json["ProcessType"],
|
|
1343
|
+
supportsMultipleEntryPoints: json["SupportsMultipleEntryPoints"] == null ? undefined : json["SupportsMultipleEntryPoints"],
|
|
1344
|
+
requiresUserInteraction: json["RequiresUserInteraction"] == null ? undefined : json["RequiresUserInteraction"],
|
|
1345
|
+
isConversational: json["IsConversational"] == null ? undefined : json["IsConversational"],
|
|
1346
|
+
slug: json["Slug"] == null ? undefined : json["Slug"],
|
|
1347
|
+
minRequiredRobotVersion: json["MinRequiredRobotVersion"] == null ? undefined : json["MinRequiredRobotVersion"],
|
|
1348
|
+
isAttended: json["IsAttended"] == null ? undefined : json["IsAttended"],
|
|
1349
|
+
isCompiled: json["IsCompiled"] == null ? undefined : json["IsCompiled"],
|
|
1350
|
+
automationHubIdeaUrl: json["AutomationHubIdeaUrl"] == null ? undefined : json["AutomationHubIdeaUrl"],
|
|
1351
|
+
currentVersion: json["CurrentVersion"] == null ? undefined : ReleaseVersionDtoFromJSON(json["CurrentVersion"]),
|
|
1352
|
+
releaseVersions: json["ReleaseVersions"] == null ? undefined : json["ReleaseVersions"].map(ReleaseVersionDtoFromJSON),
|
|
1353
|
+
arguments: json["Arguments"] == null ? undefined : ArgumentMetadataFromJSON(json["Arguments"]),
|
|
1354
|
+
processSettings: json["ProcessSettings"] == null ? undefined : ProcessSettingsDtoFromJSON(json["ProcessSettings"]),
|
|
1355
|
+
videoRecordingSettings: json["VideoRecordingSettings"] == null ? undefined : VideoRecordingSettingsDtoFromJSON(json["VideoRecordingSettings"]),
|
|
1356
|
+
autoUpdate: json["AutoUpdate"] == null ? undefined : json["AutoUpdate"],
|
|
1357
|
+
hiddenForAttendedUser: json["HiddenForAttendedUser"] == null ? undefined : json["HiddenForAttendedUser"],
|
|
1358
|
+
feedId: json["FeedId"] == null ? undefined : json["FeedId"],
|
|
1359
|
+
jobPriority: json["JobPriority"] == null ? undefined : json["JobPriority"],
|
|
1360
|
+
specificPriorityValue: json["SpecificPriorityValue"] == null ? undefined : json["SpecificPriorityValue"],
|
|
1361
|
+
folderKey: json["FolderKey"] == null ? undefined : json["FolderKey"],
|
|
1362
|
+
organizationUnitId: json["OrganizationUnitId"] == null ? undefined : json["OrganizationUnitId"],
|
|
1363
|
+
organizationUnitFullyQualifiedName: json["OrganizationUnitFullyQualifiedName"] == null ? undefined : json["OrganizationUnitFullyQualifiedName"],
|
|
1364
|
+
targetFramework: json["TargetFramework"] == null ? undefined : json["TargetFramework"],
|
|
1365
|
+
robotSize: json["RobotSize"] == null ? undefined : json["RobotSize"],
|
|
1366
|
+
tags: json["Tags"] == null ? undefined : json["Tags"].map(TagDtoFromJSON),
|
|
1367
|
+
resourceOverwrites: json["ResourceOverwrites"] == null ? undefined : json["ResourceOverwrites"].map(ResourceOverwriteDtoFromJSON),
|
|
1368
|
+
autoCreateConnectedTriggers: json["AutoCreateConnectedTriggers"] == null ? undefined : json["AutoCreateConnectedTriggers"],
|
|
1369
|
+
remoteControlAccess: json["RemoteControlAccess"] == null ? undefined : json["RemoteControlAccess"],
|
|
1370
|
+
targetRuntime: json["TargetRuntime"] == null ? undefined : json["TargetRuntime"],
|
|
1371
|
+
publisherLicense: json["PublisherLicense"] == null ? undefined : json["PublisherLicense"],
|
|
1372
|
+
lastModificationTime: json["LastModificationTime"] == null ? undefined : new Date(json["LastModificationTime"]),
|
|
1373
|
+
lastModifierUserId: json["LastModifierUserId"] == null ? undefined : json["LastModifierUserId"],
|
|
1374
|
+
creationTime: json["CreationTime"] == null ? undefined : new Date(json["CreationTime"]),
|
|
1375
|
+
creatorUserId: json["CreatorUserId"] == null ? undefined : json["CreatorUserId"],
|
|
1376
|
+
id: json["Id"] == null ? undefined : json["Id"]
|
|
1377
|
+
};
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1380
|
+
// ../orchestrator-sdk/generated/src/models/MachineDto.ts
|
|
1381
|
+
function MachineDtoFromJSON(json) {
|
|
1382
|
+
return MachineDtoFromJSONTyped(json, false);
|
|
1383
|
+
}
|
|
1384
|
+
function MachineDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1385
|
+
if (json == null) {
|
|
1386
|
+
return json;
|
|
1387
|
+
}
|
|
1388
|
+
return {
|
|
1389
|
+
licenseKey: json["LicenseKey"] == null ? undefined : json["LicenseKey"],
|
|
1390
|
+
name: json["Name"],
|
|
1391
|
+
description: json["Description"] == null ? undefined : json["Description"],
|
|
1392
|
+
type: json["Type"] == null ? undefined : json["Type"],
|
|
1393
|
+
scope: json["Scope"] == null ? undefined : json["Scope"],
|
|
1394
|
+
nonProductionSlots: json["NonProductionSlots"] == null ? undefined : json["NonProductionSlots"],
|
|
1395
|
+
unattendedSlots: json["UnattendedSlots"] == null ? undefined : json["UnattendedSlots"],
|
|
1396
|
+
headlessSlots: json["HeadlessSlots"] == null ? undefined : json["HeadlessSlots"],
|
|
1397
|
+
testAutomationSlots: json["TestAutomationSlots"] == null ? undefined : json["TestAutomationSlots"],
|
|
1398
|
+
hostingSlots: json["HostingSlots"] == null ? undefined : json["HostingSlots"],
|
|
1399
|
+
appTestSlots: json["AppTestSlots"] == null ? undefined : json["AppTestSlots"],
|
|
1400
|
+
performanceTestSlots: json["PerformanceTestSlots"] == null ? undefined : json["PerformanceTestSlots"],
|
|
1401
|
+
automationCloudSlots: json["AutomationCloudSlots"] == null ? undefined : json["AutomationCloudSlots"],
|
|
1402
|
+
automationCloudTestAutomationSlots: json["AutomationCloudTestAutomationSlots"] == null ? undefined : json["AutomationCloudTestAutomationSlots"],
|
|
1403
|
+
key: json["Key"] == null ? undefined : json["Key"],
|
|
1404
|
+
endpointDetectionStatus: json["EndpointDetectionStatus"] == null ? undefined : json["EndpointDetectionStatus"],
|
|
1405
|
+
robotVersions: json["RobotVersions"] == null ? undefined : json["RobotVersions"].map(MachinesRobotVersionDtoFromJSON),
|
|
1406
|
+
robotUsers: json["RobotUsers"] == null ? undefined : json["RobotUsers"].map(RobotUserDtoFromJSON),
|
|
1407
|
+
automationType: json["AutomationType"] == null ? undefined : json["AutomationType"],
|
|
1408
|
+
targetFramework: json["TargetFramework"] == null ? undefined : json["TargetFramework"],
|
|
1409
|
+
serverlessLicensingModel: json["ServerlessLicensingModel"] == null ? undefined : json["ServerlessLicensingModel"],
|
|
1410
|
+
updatePolicy: json["UpdatePolicy"] == null ? undefined : UpdatePolicyDtoFromJSON(json["UpdatePolicy"]),
|
|
1411
|
+
clientSecret: json["ClientSecret"] == null ? undefined : json["ClientSecret"],
|
|
1412
|
+
tags: json["Tags"] == null ? undefined : json["Tags"].map(TagDtoFromJSON),
|
|
1413
|
+
maintenanceWindow: json["MaintenanceWindow"] == null ? undefined : MaintenanceWindowDtoFromJSON(json["MaintenanceWindow"]),
|
|
1414
|
+
vpnSettings: json["VpnSettings"] == null ? undefined : MachineVpnSettingsDtoFromJSON(json["VpnSettings"]),
|
|
1415
|
+
machineSettings: json["MachineSettings"] == null ? undefined : json["MachineSettings"],
|
|
1416
|
+
id: json["Id"] == null ? undefined : json["Id"]
|
|
1417
|
+
};
|
|
1418
|
+
}
|
|
1419
|
+
|
|
1420
|
+
// ../orchestrator-sdk/generated/src/models/JobDto.ts
|
|
1421
|
+
function JobDtoFromJSON(json) {
|
|
1422
|
+
return JobDtoFromJSONTyped(json, false);
|
|
1423
|
+
}
|
|
1424
|
+
function JobDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1425
|
+
if (json == null) {
|
|
1426
|
+
return json;
|
|
1427
|
+
}
|
|
1428
|
+
return {
|
|
1429
|
+
key: json["Key"] == null ? undefined : json["Key"],
|
|
1430
|
+
startTime: json["StartTime"] == null ? undefined : new Date(json["StartTime"]),
|
|
1431
|
+
endTime: json["EndTime"] == null ? undefined : new Date(json["EndTime"]),
|
|
1432
|
+
state: json["State"] == null ? undefined : json["State"],
|
|
1433
|
+
subState: json["SubState"] == null ? undefined : json["SubState"],
|
|
1434
|
+
jobPriority: json["JobPriority"] == null ? undefined : json["JobPriority"],
|
|
1435
|
+
specificPriorityValue: json["SpecificPriorityValue"] == null ? undefined : json["SpecificPriorityValue"],
|
|
1436
|
+
robot: json["Robot"] == null ? undefined : SimpleRobotDtoFromJSON(json["Robot"]),
|
|
1437
|
+
release: json["Release"] == null ? undefined : SimpleReleaseDtoFromJSON(json["Release"]),
|
|
1438
|
+
resourceOverwrites: json["ResourceOverwrites"] == null ? undefined : json["ResourceOverwrites"],
|
|
1439
|
+
source: json["Source"] == null ? undefined : json["Source"],
|
|
1440
|
+
sourceType: json["SourceType"] == null ? undefined : json["SourceType"],
|
|
1441
|
+
batchExecutionKey: json["BatchExecutionKey"] == null ? undefined : json["BatchExecutionKey"],
|
|
1442
|
+
info: json["Info"] == null ? undefined : json["Info"],
|
|
1443
|
+
creationTime: json["CreationTime"] == null ? undefined : new Date(json["CreationTime"]),
|
|
1444
|
+
startingScheduleId: json["StartingScheduleId"] == null ? undefined : json["StartingScheduleId"],
|
|
1445
|
+
releaseName: json["ReleaseName"] == null ? undefined : json["ReleaseName"],
|
|
1446
|
+
type: json["Type"] == null ? undefined : json["Type"],
|
|
1447
|
+
inputArguments: json["InputArguments"] == null ? undefined : json["InputArguments"],
|
|
1448
|
+
inputFile: json["InputFile"] == null ? undefined : json["InputFile"],
|
|
1449
|
+
environmentVariables: json["EnvironmentVariables"] == null ? undefined : json["EnvironmentVariables"],
|
|
1450
|
+
outputArguments: json["OutputArguments"] == null ? undefined : json["OutputArguments"],
|
|
1451
|
+
outputFile: json["OutputFile"] == null ? undefined : json["OutputFile"],
|
|
1452
|
+
hostMachineName: json["HostMachineName"] == null ? undefined : json["HostMachineName"],
|
|
1453
|
+
hasMediaRecorded: json["HasMediaRecorded"] == null ? undefined : json["HasMediaRecorded"],
|
|
1454
|
+
hasVideoRecorded: json["HasVideoRecorded"] == null ? undefined : json["HasVideoRecorded"],
|
|
1455
|
+
persistenceId: json["PersistenceId"] == null ? undefined : json["PersistenceId"],
|
|
1456
|
+
resumeVersion: json["ResumeVersion"] == null ? undefined : json["ResumeVersion"],
|
|
1457
|
+
stopStrategy: json["StopStrategy"] == null ? undefined : json["StopStrategy"],
|
|
1458
|
+
runtimeType: json["RuntimeType"] == null ? undefined : json["RuntimeType"],
|
|
1459
|
+
requiresUserInteraction: json["RequiresUserInteraction"] == null ? undefined : json["RequiresUserInteraction"],
|
|
1460
|
+
releaseVersionId: json["ReleaseVersionId"] == null ? undefined : json["ReleaseVersionId"],
|
|
1461
|
+
entryPointPath: json["EntryPointPath"] == null ? undefined : json["EntryPointPath"],
|
|
1462
|
+
organizationUnitId: json["OrganizationUnitId"] == null ? undefined : json["OrganizationUnitId"],
|
|
1463
|
+
organizationUnitFullyQualifiedName: json["OrganizationUnitFullyQualifiedName"] == null ? undefined : json["OrganizationUnitFullyQualifiedName"],
|
|
1464
|
+
folderKey: json["FolderKey"] == null ? undefined : json["FolderKey"],
|
|
1465
|
+
reference: json["Reference"] == null ? undefined : json["Reference"],
|
|
1466
|
+
processType: json["ProcessType"] == null ? undefined : json["ProcessType"],
|
|
1467
|
+
targetRuntime: json["TargetRuntime"] == null ? undefined : json["TargetRuntime"],
|
|
1468
|
+
machine: json["Machine"] == null ? undefined : MachineDtoFromJSON(json["Machine"]),
|
|
1469
|
+
profilingOptions: json["ProfilingOptions"] == null ? undefined : json["ProfilingOptions"],
|
|
1470
|
+
resumeOnSameContext: json["ResumeOnSameContext"] == null ? undefined : json["ResumeOnSameContext"],
|
|
1471
|
+
localSystemAccount: json["LocalSystemAccount"] == null ? undefined : json["LocalSystemAccount"],
|
|
1472
|
+
orchestratorUserIdentity: json["OrchestratorUserIdentity"] == null ? undefined : json["OrchestratorUserIdentity"],
|
|
1473
|
+
remoteControlAccess: json["RemoteControlAccess"] == null ? undefined : json["RemoteControlAccess"],
|
|
1474
|
+
startingTriggerId: json["StartingTriggerId"] == null ? undefined : json["StartingTriggerId"],
|
|
1475
|
+
maxExpectedRunningTimeSeconds: json["MaxExpectedRunningTimeSeconds"] == null ? undefined : json["MaxExpectedRunningTimeSeconds"],
|
|
1476
|
+
serverlessJobType: json["ServerlessJobType"] == null ? undefined : json["ServerlessJobType"],
|
|
1477
|
+
parentJobKey: json["ParentJobKey"] == null ? undefined : json["ParentJobKey"],
|
|
1478
|
+
resumeTime: json["ResumeTime"] == null ? undefined : new Date(json["ResumeTime"]),
|
|
1479
|
+
lastModificationTime: json["LastModificationTime"] == null ? undefined : new Date(json["LastModificationTime"]),
|
|
1480
|
+
jobError: json["JobError"] == null ? undefined : JobErrorDtoFromJSON(json["JobError"]),
|
|
1481
|
+
errorCode: json["ErrorCode"] == null ? undefined : json["ErrorCode"],
|
|
1482
|
+
fpsProperties: json["FpsProperties"] == null ? undefined : json["FpsProperties"],
|
|
1483
|
+
traceId: json["TraceId"] == null ? undefined : json["TraceId"],
|
|
1484
|
+
parentSpanId: json["ParentSpanId"] == null ? undefined : json["ParentSpanId"],
|
|
1485
|
+
rootSpanId: json["RootSpanId"] == null ? undefined : json["RootSpanId"],
|
|
1486
|
+
autopilotForRobots: json["AutopilotForRobots"] == null ? undefined : AutopilotForRobotsSettingsDtoFromJSON(json["AutopilotForRobots"]),
|
|
1487
|
+
fpsContext: json["FpsContext"] == null ? undefined : json["FpsContext"],
|
|
1488
|
+
autoHealStatus: json["AutoHealStatus"] == null ? undefined : json["AutoHealStatus"],
|
|
1489
|
+
id: json["Id"] == null ? undefined : json["Id"]
|
|
1490
|
+
};
|
|
1491
|
+
}
|
|
1492
|
+
|
|
1493
|
+
// ../orchestrator-sdk/generated/src/models/JobMachineInfraTargetDto.ts
|
|
1494
|
+
function JobMachineInfraTargetDtoToJSON(json) {
|
|
1495
|
+
return JobMachineInfraTargetDtoToJSONTyped(json, false);
|
|
1496
|
+
}
|
|
1497
|
+
function JobMachineInfraTargetDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1498
|
+
if (value == null) {
|
|
1499
|
+
return value;
|
|
1500
|
+
}
|
|
1501
|
+
return {
|
|
1502
|
+
MachineTemplateName: value["machineTemplateName"],
|
|
1503
|
+
HostMachineName: value["hostMachineName"],
|
|
1504
|
+
ServiceUserName: value["serviceUserName"]
|
|
1505
|
+
};
|
|
1506
|
+
}
|
|
1507
|
+
|
|
1508
|
+
// ../orchestrator-sdk/generated/src/models/JobStateChangeDto.ts
|
|
1509
|
+
function JobStateChangeDtoFromJSON(json) {
|
|
1510
|
+
return JobStateChangeDtoFromJSONTyped(json, false);
|
|
1511
|
+
}
|
|
1512
|
+
function JobStateChangeDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1513
|
+
if (json == null) {
|
|
1514
|
+
return json;
|
|
1515
|
+
}
|
|
1516
|
+
return {
|
|
1517
|
+
jobId: json["jobId"] == null ? undefined : json["jobId"],
|
|
1518
|
+
creationTime: json["creationTime"] == null ? undefined : new Date(json["creationTime"]),
|
|
1519
|
+
state: json["state"] == null ? undefined : json["state"],
|
|
1520
|
+
previousState: json["previousState"] == null ? undefined : json["previousState"],
|
|
1521
|
+
subState: json["subState"] == null ? undefined : json["subState"],
|
|
1522
|
+
resumeItemKey: json["resumeItemKey"] == null ? undefined : json["resumeItemKey"],
|
|
1523
|
+
resumeItemType: json["resumeItemType"] == null ? undefined : json["resumeItemType"]
|
|
1524
|
+
};
|
|
1525
|
+
}
|
|
1526
|
+
|
|
1527
|
+
// ../orchestrator-sdk/generated/src/models/JobStatusOutputInfo.ts
|
|
1528
|
+
function JobStatusOutputInfoFromJSON(json) {
|
|
1529
|
+
return JobStatusOutputInfoFromJSONTyped(json, false);
|
|
1530
|
+
}
|
|
1531
|
+
function JobStatusOutputInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1532
|
+
if (json == null) {
|
|
1533
|
+
return json;
|
|
1534
|
+
}
|
|
1535
|
+
return {
|
|
1536
|
+
id: json["id"] == null ? undefined : json["id"],
|
|
1537
|
+
key: json["key"] == null ? undefined : json["key"],
|
|
1538
|
+
state: json["state"] == null ? undefined : json["state"],
|
|
1539
|
+
startTime: json["startTime"] == null ? undefined : new Date(json["startTime"]),
|
|
1540
|
+
endTime: json["endTime"] == null ? undefined : new Date(json["endTime"]),
|
|
1541
|
+
creationTime: json["creationTime"] == null ? undefined : new Date(json["creationTime"]),
|
|
1542
|
+
hostMachineName: json["hostMachineName"] == null ? undefined : json["hostMachineName"],
|
|
1543
|
+
organizationUnitId: json["organizationUnitId"] == null ? undefined : json["organizationUnitId"],
|
|
1544
|
+
startingTriggerId: json["startingTriggerId"] == null ? undefined : json["startingTriggerId"],
|
|
1545
|
+
outputArguments: json["outputArguments"] == null ? undefined : json["outputArguments"],
|
|
1546
|
+
info: json["info"] == null ? undefined : json["info"],
|
|
1547
|
+
parentOperationId: json["parentOperationId"] == null ? undefined : json["parentOperationId"],
|
|
1548
|
+
runtimeErrorCode: json["runtimeErrorCode"] == null ? undefined : json["runtimeErrorCode"],
|
|
1549
|
+
targetFramework: json["targetFramework"] == null ? undefined : json["targetFramework"],
|
|
1550
|
+
processName: json["processName"] == null ? undefined : json["processName"],
|
|
1551
|
+
processVersion: json["processVersion"] == null ? undefined : json["processVersion"],
|
|
1552
|
+
folderFullyQualifiedName: json["folderFullyQualifiedName"] == null ? undefined : json["folderFullyQualifiedName"],
|
|
1553
|
+
folderPath: json["folderPath"] == null ? undefined : json["folderPath"],
|
|
1554
|
+
creatorUserKey: json["creatorUserKey"] == null ? undefined : json["creatorUserKey"]
|
|
1555
|
+
};
|
|
1556
|
+
}
|
|
1557
|
+
|
|
1558
|
+
// ../orchestrator-sdk/generated/src/models/JobsHaveExecutionMediaRequest.ts
|
|
1559
|
+
function JobsHaveExecutionMediaRequestToJSON(json) {
|
|
1560
|
+
return JobsHaveExecutionMediaRequestToJSONTyped(json, false);
|
|
1561
|
+
}
|
|
1562
|
+
function JobsHaveExecutionMediaRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1563
|
+
if (value == null) {
|
|
1564
|
+
return value;
|
|
1565
|
+
}
|
|
1566
|
+
return {
|
|
1567
|
+
jobIds: value["jobIds"],
|
|
1568
|
+
format: value["format"]
|
|
1569
|
+
};
|
|
1570
|
+
}
|
|
1571
|
+
|
|
1572
|
+
// ../orchestrator-sdk/generated/src/models/MachineFolderDto.ts
|
|
1573
|
+
function MachineFolderDtoFromJSON(json) {
|
|
1574
|
+
return MachineFolderDtoFromJSONTyped(json, false);
|
|
1575
|
+
}
|
|
1576
|
+
function MachineFolderDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1577
|
+
if (json == null) {
|
|
1578
|
+
return json;
|
|
1579
|
+
}
|
|
1580
|
+
return {
|
|
1581
|
+
licenseKey: json["LicenseKey"] == null ? undefined : json["LicenseKey"],
|
|
1582
|
+
name: json["Name"],
|
|
1583
|
+
description: json["Description"] == null ? undefined : json["Description"],
|
|
1584
|
+
type: json["Type"] == null ? undefined : json["Type"],
|
|
1585
|
+
scope: json["Scope"] == null ? undefined : json["Scope"],
|
|
1586
|
+
nonProductionSlots: json["NonProductionSlots"] == null ? undefined : json["NonProductionSlots"],
|
|
1587
|
+
unattendedSlots: json["UnattendedSlots"] == null ? undefined : json["UnattendedSlots"],
|
|
1588
|
+
headlessSlots: json["HeadlessSlots"] == null ? undefined : json["HeadlessSlots"],
|
|
1589
|
+
testAutomationSlots: json["TestAutomationSlots"] == null ? undefined : json["TestAutomationSlots"],
|
|
1590
|
+
hostingSlots: json["HostingSlots"] == null ? undefined : json["HostingSlots"],
|
|
1591
|
+
appTestSlots: json["AppTestSlots"] == null ? undefined : json["AppTestSlots"],
|
|
1592
|
+
performanceTestSlots: json["PerformanceTestSlots"] == null ? undefined : json["PerformanceTestSlots"],
|
|
1593
|
+
automationCloudSlots: json["AutomationCloudSlots"] == null ? undefined : json["AutomationCloudSlots"],
|
|
1594
|
+
automationCloudTestAutomationSlots: json["AutomationCloudTestAutomationSlots"] == null ? undefined : json["AutomationCloudTestAutomationSlots"],
|
|
1595
|
+
key: json["Key"] == null ? undefined : json["Key"],
|
|
1596
|
+
endpointDetectionStatus: json["EndpointDetectionStatus"] == null ? undefined : json["EndpointDetectionStatus"],
|
|
1597
|
+
robotVersions: json["RobotVersions"] == null ? undefined : json["RobotVersions"].map(MachinesRobotVersionDtoFromJSON),
|
|
1598
|
+
robotUsers: json["RobotUsers"] == null ? undefined : json["RobotUsers"].map(RobotUserDtoFromJSON),
|
|
1599
|
+
automationType: json["AutomationType"] == null ? undefined : json["AutomationType"],
|
|
1600
|
+
targetFramework: json["TargetFramework"] == null ? undefined : json["TargetFramework"],
|
|
1601
|
+
serverlessLicensingModel: json["ServerlessLicensingModel"] == null ? undefined : json["ServerlessLicensingModel"],
|
|
1602
|
+
updatePolicy: json["UpdatePolicy"] == null ? undefined : UpdatePolicyDtoFromJSON(json["UpdatePolicy"]),
|
|
1603
|
+
clientSecret: json["ClientSecret"] == null ? undefined : json["ClientSecret"],
|
|
1604
|
+
tags: json["Tags"] == null ? undefined : json["Tags"].map(TagDtoFromJSON),
|
|
1605
|
+
maintenanceWindow: json["MaintenanceWindow"] == null ? undefined : MaintenanceWindowDtoFromJSON(json["MaintenanceWindow"]),
|
|
1606
|
+
vpnSettings: json["VpnSettings"] == null ? undefined : MachineVpnSettingsDtoFromJSON(json["VpnSettings"]),
|
|
1607
|
+
machineSettings: json["MachineSettings"] == null ? undefined : json["MachineSettings"],
|
|
1608
|
+
id: json["Id"] == null ? undefined : json["Id"],
|
|
1609
|
+
isAssignedToFolder: json["IsAssignedToFolder"] == null ? undefined : json["IsAssignedToFolder"],
|
|
1610
|
+
hasMachineRobots: json["HasMachineRobots"] == null ? undefined : json["HasMachineRobots"],
|
|
1611
|
+
isInherited: json["IsInherited"] == null ? undefined : json["IsInherited"],
|
|
1612
|
+
propagateToSubFolders: json["PropagateToSubFolders"] == null ? undefined : json["PropagateToSubFolders"],
|
|
1613
|
+
inheritedFromFolderName: json["InheritedFromFolderName"] == null ? undefined : json["InheritedFromFolderName"],
|
|
1614
|
+
updateInfo: json["UpdateInfo"] == null ? undefined : UpdateInfoDtoFromJSON(json["UpdateInfo"])
|
|
1615
|
+
};
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1618
|
+
// ../orchestrator-sdk/generated/src/models/MachineRobotDto.ts
|
|
1619
|
+
function MachineRobotDtoToJSON(json) {
|
|
1620
|
+
return MachineRobotDtoToJSONTyped(json, false);
|
|
1621
|
+
}
|
|
1622
|
+
function MachineRobotDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1623
|
+
if (value == null) {
|
|
1624
|
+
return value;
|
|
1625
|
+
}
|
|
1626
|
+
return {
|
|
1627
|
+
MachineId: value["machineId"],
|
|
1628
|
+
MachineName: value["machineName"],
|
|
1629
|
+
RobotId: value["robotId"],
|
|
1630
|
+
RobotUserName: value["robotUserName"]
|
|
1631
|
+
};
|
|
1632
|
+
}
|
|
1633
|
+
|
|
1634
|
+
// ../orchestrator-sdk/generated/src/models/MachinesFolderAssociationsDto.ts
|
|
1635
|
+
function MachinesFolderAssociationsDtoToJSON(json) {
|
|
1636
|
+
return MachinesFolderAssociationsDtoToJSONTyped(json, false);
|
|
1637
|
+
}
|
|
1638
|
+
function MachinesFolderAssociationsDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1639
|
+
if (value == null) {
|
|
1640
|
+
return value;
|
|
1641
|
+
}
|
|
1642
|
+
return {
|
|
1643
|
+
FolderId: value["folderId"],
|
|
1644
|
+
AddedMachineIds: value["addedMachineIds"],
|
|
1645
|
+
RemovedMachineIds: value["removedMachineIds"]
|
|
1646
|
+
};
|
|
1647
|
+
}
|
|
1648
|
+
|
|
1649
|
+
// ../orchestrator-sdk/generated/src/models/MoveFolderMachineChange.ts
|
|
1650
|
+
function MoveFolderMachineChangeFromJSON(json) {
|
|
1651
|
+
return MoveFolderMachineChangeFromJSONTyped(json, false);
|
|
1652
|
+
}
|
|
1653
|
+
function MoveFolderMachineChangeFromJSONTyped(json, ignoreDiscriminator) {
|
|
1654
|
+
if (json == null) {
|
|
1655
|
+
return json;
|
|
1656
|
+
}
|
|
1657
|
+
return {
|
|
1658
|
+
machineId: json["MachineId"] == null ? undefined : json["MachineId"],
|
|
1659
|
+
machineName: json["MachineName"] == null ? undefined : json["MachineName"],
|
|
1660
|
+
oldMachineFolderState: json["OldMachineFolderState"] == null ? undefined : json["OldMachineFolderState"],
|
|
1661
|
+
newMachineFolderState: json["NewMachineFolderState"] == null ? undefined : json["NewMachineFolderState"]
|
|
1662
|
+
};
|
|
1663
|
+
}
|
|
1664
|
+
|
|
1665
|
+
// ../orchestrator-sdk/generated/src/models/ODataValueOfIEnumerableOfExtendedFolderDto.ts
|
|
1666
|
+
function ODataValueOfIEnumerableOfExtendedFolderDtoFromJSON(json) {
|
|
1667
|
+
return ODataValueOfIEnumerableOfExtendedFolderDtoFromJSONTyped(json, false);
|
|
1668
|
+
}
|
|
1669
|
+
function ODataValueOfIEnumerableOfExtendedFolderDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1670
|
+
if (json == null) {
|
|
1671
|
+
return json;
|
|
1672
|
+
}
|
|
1673
|
+
return {
|
|
1674
|
+
value: json["value"] == null ? undefined : json["value"].map(ExtendedFolderDtoFromJSON)
|
|
1675
|
+
};
|
|
1676
|
+
}
|
|
1677
|
+
|
|
1678
|
+
// ../orchestrator-sdk/generated/src/models/ODataValueOfIEnumerableOfFolderDto.ts
|
|
1679
|
+
function ODataValueOfIEnumerableOfFolderDtoFromJSON(json) {
|
|
1680
|
+
return ODataValueOfIEnumerableOfFolderDtoFromJSONTyped(json, false);
|
|
1681
|
+
}
|
|
1682
|
+
function ODataValueOfIEnumerableOfFolderDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1683
|
+
if (json == null) {
|
|
1684
|
+
return json;
|
|
1685
|
+
}
|
|
1686
|
+
return {
|
|
1687
|
+
value: json["value"] == null ? undefined : json["value"].map(FolderDtoFromJSON)
|
|
1688
|
+
};
|
|
1689
|
+
}
|
|
1690
|
+
|
|
1691
|
+
// ../orchestrator-sdk/generated/src/models/ODataValueOfIEnumerableOfJobDto.ts
|
|
1692
|
+
function ODataValueOfIEnumerableOfJobDtoFromJSON(json) {
|
|
1693
|
+
return ODataValueOfIEnumerableOfJobDtoFromJSONTyped(json, false);
|
|
1694
|
+
}
|
|
1695
|
+
function ODataValueOfIEnumerableOfJobDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1696
|
+
if (json == null) {
|
|
1697
|
+
return json;
|
|
1698
|
+
}
|
|
1699
|
+
return {
|
|
1700
|
+
value: json["value"] == null ? undefined : json["value"].map(JobDtoFromJSON)
|
|
1701
|
+
};
|
|
1702
|
+
}
|
|
1703
|
+
|
|
1704
|
+
// ../orchestrator-sdk/generated/src/models/ODataValueOfIEnumerableOfMachineFolderDto.ts
|
|
1705
|
+
function ODataValueOfIEnumerableOfMachineFolderDtoFromJSON(json) {
|
|
1706
|
+
return ODataValueOfIEnumerableOfMachineFolderDtoFromJSONTyped(json, false);
|
|
1707
|
+
}
|
|
1708
|
+
function ODataValueOfIEnumerableOfMachineFolderDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1709
|
+
if (json == null) {
|
|
1710
|
+
return json;
|
|
1711
|
+
}
|
|
1712
|
+
return {
|
|
1713
|
+
value: json["value"] == null ? undefined : json["value"].map(MachineFolderDtoFromJSON)
|
|
1714
|
+
};
|
|
1715
|
+
}
|
|
1716
|
+
|
|
1717
|
+
// ../orchestrator-sdk/generated/src/models/ODataValueOfIEnumerableOfMoveFolderMachineChange.ts
|
|
1718
|
+
function ODataValueOfIEnumerableOfMoveFolderMachineChangeFromJSON(json) {
|
|
1719
|
+
return ODataValueOfIEnumerableOfMoveFolderMachineChangeFromJSONTyped(json, false);
|
|
1720
|
+
}
|
|
1721
|
+
function ODataValueOfIEnumerableOfMoveFolderMachineChangeFromJSONTyped(json, ignoreDiscriminator) {
|
|
1722
|
+
if (json == null) {
|
|
1723
|
+
return json;
|
|
1724
|
+
}
|
|
1725
|
+
return {
|
|
1726
|
+
value: json["value"] == null ? undefined : json["value"].map(MoveFolderMachineChangeFromJSON)
|
|
1727
|
+
};
|
|
1728
|
+
}
|
|
1729
|
+
|
|
1730
|
+
// ../orchestrator-sdk/generated/src/models/ODataValueOfIEnumerableOfRobotUserDto.ts
|
|
1731
|
+
function ODataValueOfIEnumerableOfRobotUserDtoFromJSON(json) {
|
|
1732
|
+
return ODataValueOfIEnumerableOfRobotUserDtoFromJSONTyped(json, false);
|
|
1733
|
+
}
|
|
1734
|
+
function ODataValueOfIEnumerableOfRobotUserDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1735
|
+
if (json == null) {
|
|
1736
|
+
return json;
|
|
1737
|
+
}
|
|
1738
|
+
return {
|
|
1739
|
+
value: json["value"] == null ? undefined : json["value"].map(RobotUserDtoFromJSON)
|
|
1740
|
+
};
|
|
1741
|
+
}
|
|
1742
|
+
|
|
1743
|
+
// ../orchestrator-sdk/generated/src/models/RunningJobForSessisonDto.ts
|
|
1744
|
+
function RunningJobForSessisonDtoFromJSON(json) {
|
|
1745
|
+
return RunningJobForSessisonDtoFromJSONTyped(json, false);
|
|
1746
|
+
}
|
|
1747
|
+
function RunningJobForSessisonDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1748
|
+
if (json == null) {
|
|
1749
|
+
return json;
|
|
1750
|
+
}
|
|
1751
|
+
return {
|
|
1752
|
+
releaseName: json["ReleaseName"] == null ? undefined : json["ReleaseName"],
|
|
1753
|
+
robotName: json["RobotName"] == null ? undefined : json["RobotName"],
|
|
1754
|
+
hostMachineName: json["HostMachineName"] == null ? undefined : json["HostMachineName"],
|
|
1755
|
+
state: json["State"] == null ? undefined : json["State"],
|
|
1756
|
+
runtimeType: json["RuntimeType"] == null ? undefined : json["RuntimeType"],
|
|
1757
|
+
fullyQualifiedFolderName: json["FullyQualifiedFolderName"] == null ? undefined : json["FullyQualifiedFolderName"],
|
|
1758
|
+
folderKey: json["FolderKey"] == null ? undefined : json["FolderKey"],
|
|
1759
|
+
jobKey: json["JobKey"] == null ? undefined : json["JobKey"],
|
|
1760
|
+
organizationUnitId: json["OrganizationUnitId"] == null ? undefined : json["OrganizationUnitId"],
|
|
1761
|
+
id: json["Id"] == null ? undefined : json["Id"]
|
|
1762
|
+
};
|
|
1763
|
+
}
|
|
1764
|
+
|
|
1765
|
+
// ../orchestrator-sdk/generated/src/models/ODataValueOfIEnumerableOfRunningJobForSessisonDto.ts
|
|
1766
|
+
function ODataValueOfIEnumerableOfRunningJobForSessisonDtoFromJSON(json) {
|
|
1767
|
+
return ODataValueOfIEnumerableOfRunningJobForSessisonDtoFromJSONTyped(json, false);
|
|
1768
|
+
}
|
|
1769
|
+
function ODataValueOfIEnumerableOfRunningJobForSessisonDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1770
|
+
if (json == null) {
|
|
1771
|
+
return json;
|
|
1772
|
+
}
|
|
1773
|
+
return {
|
|
1774
|
+
value: json["value"] == null ? undefined : json["value"].map(RunningJobForSessisonDtoFromJSON)
|
|
1775
|
+
};
|
|
1776
|
+
}
|
|
1777
|
+
|
|
1778
|
+
// ../orchestrator-sdk/generated/src/models/SearchUserDto.ts
|
|
1779
|
+
function SearchUserDtoFromJSON(json) {
|
|
1780
|
+
return SearchUserDtoFromJSONTyped(json, false);
|
|
1781
|
+
}
|
|
1782
|
+
function SearchUserDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1783
|
+
if (json == null) {
|
|
1784
|
+
return json;
|
|
1785
|
+
}
|
|
1786
|
+
return {
|
|
1787
|
+
userName: json["UserName"] == null ? undefined : json["UserName"],
|
|
1788
|
+
userRoles: json["UserRoles"] == null ? undefined : json["UserRoles"].map(UserRoleDtoFromJSON),
|
|
1789
|
+
rolesList: json["RolesList"] == null ? undefined : json["RolesList"],
|
|
1790
|
+
id: json["Id"] == null ? undefined : json["Id"]
|
|
1791
|
+
};
|
|
1792
|
+
}
|
|
1793
|
+
|
|
1794
|
+
// ../orchestrator-sdk/generated/src/models/ODataValueOfIEnumerableOfSearchUserDto.ts
|
|
1795
|
+
function ODataValueOfIEnumerableOfSearchUserDtoFromJSON(json) {
|
|
1796
|
+
return ODataValueOfIEnumerableOfSearchUserDtoFromJSONTyped(json, false);
|
|
1797
|
+
}
|
|
1798
|
+
function ODataValueOfIEnumerableOfSearchUserDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1799
|
+
if (json == null) {
|
|
1800
|
+
return json;
|
|
1801
|
+
}
|
|
1802
|
+
return {
|
|
1803
|
+
value: json["value"] == null ? undefined : json["value"].map(SearchUserDtoFromJSON)
|
|
1804
|
+
};
|
|
1805
|
+
}
|
|
1806
|
+
|
|
1807
|
+
// ../orchestrator-sdk/generated/src/models/UserRolesChangesDto.ts
|
|
1808
|
+
function UserRolesChangesDtoFromJSON(json) {
|
|
1809
|
+
return UserRolesChangesDtoFromJSONTyped(json, false);
|
|
1810
|
+
}
|
|
1811
|
+
function UserRolesChangesDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1812
|
+
if (json == null) {
|
|
1813
|
+
return json;
|
|
1814
|
+
}
|
|
1815
|
+
return {
|
|
1816
|
+
userName: json["UserName"] == null ? undefined : json["UserName"],
|
|
1817
|
+
oldRoles: json["OldRoles"] == null ? undefined : json["OldRoles"].map(BaseRoleDtoFromJSON),
|
|
1818
|
+
newRoles: json["NewRoles"] == null ? undefined : json["NewRoles"].map(BaseRoleDtoFromJSON)
|
|
1819
|
+
};
|
|
1820
|
+
}
|
|
1821
|
+
|
|
1822
|
+
// ../orchestrator-sdk/generated/src/models/ODataValueOfIEnumerableOfUserRolesChangesDto.ts
|
|
1823
|
+
function ODataValueOfIEnumerableOfUserRolesChangesDtoFromJSON(json) {
|
|
1824
|
+
return ODataValueOfIEnumerableOfUserRolesChangesDtoFromJSONTyped(json, false);
|
|
1825
|
+
}
|
|
1826
|
+
function ODataValueOfIEnumerableOfUserRolesChangesDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1827
|
+
if (json == null) {
|
|
1828
|
+
return json;
|
|
1829
|
+
}
|
|
1830
|
+
return {
|
|
1831
|
+
value: json["value"] == null ? undefined : json["value"].map(UserRolesChangesDtoFromJSON)
|
|
1832
|
+
};
|
|
1833
|
+
}
|
|
1834
|
+
|
|
1835
|
+
// ../orchestrator-sdk/generated/src/models/UserEntityDto.ts
|
|
1836
|
+
function UserEntityDtoFromJSON(json) {
|
|
1837
|
+
return UserEntityDtoFromJSONTyped(json, false);
|
|
1838
|
+
}
|
|
1839
|
+
function UserEntityDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1840
|
+
if (json == null) {
|
|
1841
|
+
return json;
|
|
1842
|
+
}
|
|
1843
|
+
return {
|
|
1844
|
+
fullName: json["FullName"] == null ? undefined : json["FullName"],
|
|
1845
|
+
authenticationSource: json["AuthenticationSource"] == null ? undefined : json["AuthenticationSource"],
|
|
1846
|
+
key: json["Key"] == null ? undefined : json["Key"],
|
|
1847
|
+
userName: json["UserName"] == null ? undefined : json["UserName"],
|
|
1848
|
+
isInherited: json["IsInherited"] == null ? undefined : json["IsInherited"],
|
|
1849
|
+
assignedToFolderIds: json["AssignedToFolderIds"] == null ? undefined : json["AssignedToFolderIds"],
|
|
1850
|
+
mayHaveAttended: json["MayHaveAttended"] == null ? undefined : json["MayHaveAttended"],
|
|
1851
|
+
mayHaveUnattended: json["MayHaveUnattended"] == null ? undefined : json["MayHaveUnattended"],
|
|
1852
|
+
type: json["Type"] == null ? undefined : json["Type"],
|
|
1853
|
+
source: json["Source"] == null ? undefined : json["Source"],
|
|
1854
|
+
isActive: json["IsActive"] == null ? undefined : json["IsActive"],
|
|
1855
|
+
id: json["Id"] == null ? undefined : json["Id"]
|
|
1856
|
+
};
|
|
1857
|
+
}
|
|
1858
|
+
|
|
1859
|
+
// ../orchestrator-sdk/generated/src/models/SimpleRoleDto.ts
|
|
1860
|
+
function SimpleRoleDtoFromJSON(json) {
|
|
1861
|
+
return SimpleRoleDtoFromJSONTyped(json, false);
|
|
1862
|
+
}
|
|
1863
|
+
function SimpleRoleDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1864
|
+
if (json == null) {
|
|
1865
|
+
return json;
|
|
1866
|
+
}
|
|
1867
|
+
return {
|
|
1868
|
+
origin: json["Origin"] == null ? undefined : json["Origin"],
|
|
1869
|
+
roleType: json["RoleType"] == null ? undefined : json["RoleType"],
|
|
1870
|
+
inheritedFromFolder: json["InheritedFromFolder"] == null ? undefined : SimpleFolderDtoFromJSON(json["InheritedFromFolder"]),
|
|
1871
|
+
name: json["Name"] == null ? undefined : json["Name"],
|
|
1872
|
+
id: json["Id"] == null ? undefined : json["Id"]
|
|
1873
|
+
};
|
|
1874
|
+
}
|
|
1875
|
+
|
|
1876
|
+
// ../orchestrator-sdk/generated/src/models/UserRolesDto.ts
|
|
1877
|
+
function UserRolesDtoFromJSON(json) {
|
|
1878
|
+
return UserRolesDtoFromJSONTyped(json, false);
|
|
1879
|
+
}
|
|
1880
|
+
function UserRolesDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1881
|
+
if (json == null) {
|
|
1882
|
+
return json;
|
|
1883
|
+
}
|
|
1884
|
+
return {
|
|
1885
|
+
userEntity: json["UserEntity"] == null ? undefined : UserEntityDtoFromJSON(json["UserEntity"]),
|
|
1886
|
+
roles: json["Roles"] == null ? undefined : json["Roles"].map(SimpleRoleDtoFromJSON),
|
|
1887
|
+
hasAlertsEnabled: json["HasAlertsEnabled"] == null ? undefined : json["HasAlertsEnabled"],
|
|
1888
|
+
id: json["Id"] == null ? undefined : json["Id"]
|
|
1889
|
+
};
|
|
1890
|
+
}
|
|
1891
|
+
|
|
1892
|
+
// ../orchestrator-sdk/generated/src/models/ODataValueOfIEnumerableOfUserRolesDto.ts
|
|
1893
|
+
function ODataValueOfIEnumerableOfUserRolesDtoFromJSON(json) {
|
|
1894
|
+
return ODataValueOfIEnumerableOfUserRolesDtoFromJSONTyped(json, false);
|
|
1895
|
+
}
|
|
1896
|
+
function ODataValueOfIEnumerableOfUserRolesDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1897
|
+
if (json == null) {
|
|
1898
|
+
return json;
|
|
1899
|
+
}
|
|
1900
|
+
return {
|
|
1901
|
+
value: json["value"] == null ? undefined : json["value"].map(UserRolesDtoFromJSON)
|
|
1902
|
+
};
|
|
1903
|
+
}
|
|
1904
|
+
|
|
1905
|
+
// ../orchestrator-sdk/generated/src/models/PageResultDtoOfCurrentUserFolderDto.ts
|
|
1906
|
+
function PageResultDtoOfCurrentUserFolderDtoFromJSON(json) {
|
|
1907
|
+
return PageResultDtoOfCurrentUserFolderDtoFromJSONTyped(json, false);
|
|
1908
|
+
}
|
|
1909
|
+
function PageResultDtoOfCurrentUserFolderDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1910
|
+
if (json == null) {
|
|
1911
|
+
return json;
|
|
1912
|
+
}
|
|
1913
|
+
return {
|
|
1914
|
+
pageItems: json["PageItems"] == null ? undefined : json["PageItems"].map(CurrentUserFolderDtoFromJSON),
|
|
1915
|
+
count: json["Count"] == null ? undefined : json["Count"]
|
|
1916
|
+
};
|
|
1917
|
+
}
|
|
1918
|
+
|
|
1919
|
+
// ../orchestrator-sdk/generated/src/models/RemoveMachinesFromFolderRequest.ts
|
|
1920
|
+
function RemoveMachinesFromFolderRequestToJSON(json) {
|
|
1921
|
+
return RemoveMachinesFromFolderRequestToJSONTyped(json, false);
|
|
1922
|
+
}
|
|
1923
|
+
function RemoveMachinesFromFolderRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1924
|
+
if (value == null) {
|
|
1925
|
+
return value;
|
|
1926
|
+
}
|
|
1927
|
+
return {
|
|
1928
|
+
machineIds: value["machineIds"]
|
|
1929
|
+
};
|
|
1930
|
+
}
|
|
1931
|
+
|
|
1932
|
+
// ../orchestrator-sdk/generated/src/models/RemoveUserByKeyFromFolderRequest.ts
|
|
1933
|
+
function RemoveUserByKeyFromFolderRequestToJSON(json) {
|
|
1934
|
+
return RemoveUserByKeyFromFolderRequestToJSONTyped(json, false);
|
|
1935
|
+
}
|
|
1936
|
+
function RemoveUserByKeyFromFolderRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1937
|
+
if (value == null) {
|
|
1938
|
+
return value;
|
|
1939
|
+
}
|
|
1940
|
+
return {
|
|
1941
|
+
userKey: value["userKey"]
|
|
1942
|
+
};
|
|
1943
|
+
}
|
|
1944
|
+
|
|
1945
|
+
// ../orchestrator-sdk/generated/src/models/RemoveUserFromFolderRequest.ts
|
|
1946
|
+
function RemoveUserFromFolderRequestToJSON(json) {
|
|
1947
|
+
return RemoveUserFromFolderRequestToJSONTyped(json, false);
|
|
1948
|
+
}
|
|
1949
|
+
function RemoveUserFromFolderRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1950
|
+
if (value == null) {
|
|
1951
|
+
return value;
|
|
1952
|
+
}
|
|
1953
|
+
return {
|
|
1954
|
+
userId: value["userId"]
|
|
1955
|
+
};
|
|
1956
|
+
}
|
|
1957
|
+
|
|
1958
|
+
// ../orchestrator-sdk/generated/src/models/ResourcePaginationResultOfFolder.ts
|
|
1959
|
+
function ResourcePaginationResultOfFolderFromJSON(json) {
|
|
1960
|
+
return ResourcePaginationResultOfFolderFromJSONTyped(json, false);
|
|
1961
|
+
}
|
|
1962
|
+
function ResourcePaginationResultOfFolderFromJSONTyped(json, ignoreDiscriminator) {
|
|
1963
|
+
if (json == null) {
|
|
1964
|
+
return json;
|
|
1965
|
+
}
|
|
1966
|
+
return {
|
|
1967
|
+
count: json["count"] == null ? undefined : json["count"],
|
|
1968
|
+
data: json["data"] == null ? undefined : json["data"].map(FolderFromJSON),
|
|
1969
|
+
cursor: json["cursor"] == null ? undefined : json["cursor"]
|
|
1970
|
+
};
|
|
1971
|
+
}
|
|
1972
|
+
|
|
1973
|
+
// ../orchestrator-sdk/generated/src/models/RestartJobRequest.ts
|
|
1974
|
+
function RestartJobRequestToJSON(json) {
|
|
1975
|
+
return RestartJobRequestToJSONTyped(json, false);
|
|
1976
|
+
}
|
|
1977
|
+
function RestartJobRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1978
|
+
if (value == null) {
|
|
1979
|
+
return value;
|
|
1980
|
+
}
|
|
1981
|
+
return {
|
|
1982
|
+
jobId: value["jobId"]
|
|
1983
|
+
};
|
|
1984
|
+
}
|
|
1985
|
+
|
|
1986
|
+
// ../orchestrator-sdk/generated/src/models/ResumeJobRequest.ts
|
|
1987
|
+
function ResumeJobRequestToJSON(json) {
|
|
1988
|
+
return ResumeJobRequestToJSONTyped(json, false);
|
|
1989
|
+
}
|
|
1990
|
+
function ResumeJobRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1991
|
+
if (value == null) {
|
|
1992
|
+
return value;
|
|
1993
|
+
}
|
|
1994
|
+
return {
|
|
1995
|
+
jobKey: value["jobKey"],
|
|
1996
|
+
fpsProperties: value["fpsProperties"],
|
|
1997
|
+
inputArguments: value["inputArguments"]
|
|
1998
|
+
};
|
|
1999
|
+
}
|
|
2000
|
+
|
|
2001
|
+
// ../orchestrator-sdk/generated/src/models/RootFolderDto.ts
|
|
2002
|
+
function RootFolderDtoFromJSON(json) {
|
|
2003
|
+
return RootFolderDtoFromJSONTyped(json, false);
|
|
2004
|
+
}
|
|
2005
|
+
function RootFolderDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
2006
|
+
if (json == null) {
|
|
2007
|
+
return json;
|
|
2008
|
+
}
|
|
2009
|
+
return {
|
|
2010
|
+
key: json["key"] == null ? undefined : json["key"]
|
|
2011
|
+
};
|
|
2012
|
+
}
|
|
2013
|
+
|
|
2014
|
+
// ../orchestrator-sdk/generated/src/models/StartProcessDto.ts
|
|
2015
|
+
function StartProcessDtoToJSON(json) {
|
|
2016
|
+
return StartProcessDtoToJSONTyped(json, false);
|
|
2017
|
+
}
|
|
2018
|
+
function StartProcessDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2019
|
+
if (value == null) {
|
|
2020
|
+
return value;
|
|
2021
|
+
}
|
|
2022
|
+
return {
|
|
2023
|
+
ReleaseKey: value["releaseKey"],
|
|
2024
|
+
ReleaseName: value["releaseName"],
|
|
2025
|
+
Strategy: value["strategy"],
|
|
2026
|
+
RobotIds: value["robotIds"],
|
|
2027
|
+
MachineSessionIds: value["machineSessionIds"],
|
|
2028
|
+
NoOfRobots: value["noOfRobots"],
|
|
2029
|
+
JobsCount: value["jobsCount"],
|
|
2030
|
+
Source: value["source"],
|
|
2031
|
+
JobPriority: value["jobPriority"],
|
|
2032
|
+
SpecificPriorityValue: value["specificPriorityValue"],
|
|
2033
|
+
RuntimeType: value["runtimeType"],
|
|
2034
|
+
InputArguments: value["inputArguments"],
|
|
2035
|
+
InputFile: value["inputFile"],
|
|
2036
|
+
EnvironmentVariables: value["environmentVariables"],
|
|
2037
|
+
Reference: value["reference"],
|
|
2038
|
+
MachineRobots: value["machineRobots"] == null ? undefined : value["machineRobots"].map(MachineRobotDtoToJSON),
|
|
2039
|
+
Attachments: value["attachments"] == null ? undefined : value["attachments"].map(JobAttachmentDtoToJSON),
|
|
2040
|
+
TargetFramework: value["targetFramework"],
|
|
2041
|
+
ResumeOnSameContext: value["resumeOnSameContext"],
|
|
2042
|
+
BatchExecutionKey: value["batchExecutionKey"],
|
|
2043
|
+
RequiresUserInteraction: value["requiresUserInteraction"],
|
|
2044
|
+
StopProcessExpression: value["stopProcessExpression"],
|
|
2045
|
+
StopStrategy: value["stopStrategy"],
|
|
2046
|
+
KillProcessExpression: value["killProcessExpression"],
|
|
2047
|
+
RemoteControlAccess: value["remoteControlAccess"],
|
|
2048
|
+
AlertPendingExpression: value["alertPendingExpression"],
|
|
2049
|
+
AlertRunningExpression: value["alertRunningExpression"],
|
|
2050
|
+
RunAsMe: value["runAsMe"],
|
|
2051
|
+
ParentOperationId: value["parentOperationId"],
|
|
2052
|
+
AutopilotForRobots: AutopilotForRobotsSettingsDtoToJSON(value["autopilotForRobots"]),
|
|
2053
|
+
ProfilingOptions: value["profilingOptions"],
|
|
2054
|
+
FpsContext: value["fpsContext"],
|
|
2055
|
+
FpsProperties: value["fpsProperties"],
|
|
2056
|
+
TraceId: value["traceId"],
|
|
2057
|
+
ParentSpanId: value["parentSpanId"],
|
|
2058
|
+
RootSpanId: value["rootSpanId"],
|
|
2059
|
+
EntryPointPath: value["entryPointPath"],
|
|
2060
|
+
TargetRuntime: value["targetRuntime"],
|
|
2061
|
+
VideoRecordingSettings: VideoRecordingSettingsDtoToJSON(value["videoRecordingSettings"]),
|
|
2062
|
+
MachineInfraTarget: JobMachineInfraTargetDtoToJSON(value["machineInfraTarget"])
|
|
2063
|
+
};
|
|
2064
|
+
}
|
|
2065
|
+
|
|
2066
|
+
// ../orchestrator-sdk/generated/src/models/StartJobsRequest.ts
|
|
2067
|
+
function StartJobsRequestToJSON(json) {
|
|
2068
|
+
return StartJobsRequestToJSONTyped(json, false);
|
|
2069
|
+
}
|
|
2070
|
+
function StartJobsRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2071
|
+
if (value == null) {
|
|
2072
|
+
return value;
|
|
2073
|
+
}
|
|
2074
|
+
return {
|
|
2075
|
+
startInfo: StartProcessDtoToJSON(value["startInfo"])
|
|
2076
|
+
};
|
|
2077
|
+
}
|
|
2078
|
+
|
|
2079
|
+
// ../orchestrator-sdk/generated/src/models/StopJobRequest.ts
|
|
2080
|
+
function StopJobRequestToJSON(json) {
|
|
2081
|
+
return StopJobRequestToJSONTyped(json, false);
|
|
2082
|
+
}
|
|
2083
|
+
function StopJobRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2084
|
+
if (value == null) {
|
|
2085
|
+
return value;
|
|
2086
|
+
}
|
|
2087
|
+
return {
|
|
2088
|
+
strategy: value["strategy"]
|
|
2089
|
+
};
|
|
2090
|
+
}
|
|
2091
|
+
|
|
2092
|
+
// ../orchestrator-sdk/generated/src/models/StopJobsRequest.ts
|
|
2093
|
+
function StopJobsRequestToJSON(json) {
|
|
2094
|
+
return StopJobsRequestToJSONTyped(json, false);
|
|
2095
|
+
}
|
|
2096
|
+
function StopJobsRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2097
|
+
if (value == null) {
|
|
2098
|
+
return value;
|
|
2099
|
+
}
|
|
2100
|
+
return {
|
|
2101
|
+
strategy: value["strategy"],
|
|
2102
|
+
jobIds: value["jobIds"]
|
|
2103
|
+
};
|
|
2104
|
+
}
|
|
2105
|
+
|
|
2106
|
+
// ../orchestrator-sdk/generated/src/models/UpdateMachinesToFolderAssociationsRequest.ts
|
|
2107
|
+
function UpdateMachinesToFolderAssociationsRequestToJSON(json) {
|
|
2108
|
+
return UpdateMachinesToFolderAssociationsRequestToJSONTyped(json, false);
|
|
2109
|
+
}
|
|
2110
|
+
function UpdateMachinesToFolderAssociationsRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2111
|
+
if (value == null) {
|
|
2112
|
+
return value;
|
|
2113
|
+
}
|
|
2114
|
+
return {
|
|
2115
|
+
associations: MachinesFolderAssociationsDtoToJSON(value["associations"])
|
|
2116
|
+
};
|
|
2117
|
+
}
|
|
2118
|
+
|
|
2119
|
+
// ../orchestrator-sdk/generated/src/models/UserRoleAssignmentsDto.ts
|
|
2120
|
+
function UserRoleAssignmentsDtoFromJSON(json) {
|
|
2121
|
+
return UserRoleAssignmentsDtoFromJSONTyped(json, false);
|
|
2122
|
+
}
|
|
2123
|
+
function UserRoleAssignmentsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
2124
|
+
if (json == null) {
|
|
2125
|
+
return json;
|
|
2126
|
+
}
|
|
2127
|
+
return {
|
|
2128
|
+
tenantRoles: json["TenantRoles"] == null ? undefined : json["TenantRoles"].map(RoleUsersDtoFromJSON),
|
|
2129
|
+
pageItems: json["PageItems"] == null ? undefined : json["PageItems"].map(FolderAssignmentsDtoFromJSON),
|
|
2130
|
+
count: json["Count"] == null ? undefined : json["Count"],
|
|
2131
|
+
id: json["Id"] == null ? undefined : json["Id"]
|
|
2132
|
+
};
|
|
2133
|
+
}
|
|
2134
|
+
|
|
2135
|
+
// ../orchestrator-sdk/generated/src/models/ValidationResultDto.ts
|
|
2136
|
+
function ValidationResultDtoFromJSON(json) {
|
|
2137
|
+
return ValidationResultDtoFromJSONTyped(json, false);
|
|
2138
|
+
}
|
|
2139
|
+
function ValidationResultDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
2140
|
+
if (json == null) {
|
|
2141
|
+
return json;
|
|
2142
|
+
}
|
|
2143
|
+
return {
|
|
2144
|
+
isValid: json["IsValid"] == null ? undefined : json["IsValid"],
|
|
2145
|
+
errors: json["Errors"] == null ? undefined : json["Errors"],
|
|
2146
|
+
errorCodes: json["ErrorCodes"] == null ? undefined : json["ErrorCodes"]
|
|
2147
|
+
};
|
|
2148
|
+
}
|
|
2149
|
+
|
|
2150
|
+
// ../orchestrator-sdk/generated/src/apis/FoldersApi.ts
|
|
2151
|
+
class FoldersApi extends BaseAPI {
|
|
2152
|
+
async foldersAssignDirectoryUserRaw(requestParameters, initOverrides) {
|
|
2153
|
+
const queryParameters = {};
|
|
2154
|
+
const headerParameters = {};
|
|
2155
|
+
headerParameters["Content-Type"] = "application/json;odata.metadata=minimal;odata.streaming=true";
|
|
2156
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2157
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
2158
|
+
}
|
|
2159
|
+
let urlPath = `/odata/Folders/UiPath.Server.Configuration.OData.AssignDirectoryUser`;
|
|
2160
|
+
const response = await this.request({
|
|
2161
|
+
path: urlPath,
|
|
2162
|
+
method: "POST",
|
|
2163
|
+
headers: headerParameters,
|
|
2164
|
+
query: queryParameters,
|
|
2165
|
+
body: FolderAssignDomainUserRequestToJSON(requestParameters["body"])
|
|
2166
|
+
}, initOverrides);
|
|
2167
|
+
return new VoidApiResponse(response);
|
|
2168
|
+
}
|
|
2169
|
+
async foldersAssignDirectoryUser(requestParameters = {}, initOverrides) {
|
|
2170
|
+
await this.foldersAssignDirectoryUserRaw(requestParameters, initOverrides);
|
|
2171
|
+
}
|
|
2172
|
+
async foldersAssignDomainUserRaw(requestParameters, initOverrides) {
|
|
2173
|
+
const queryParameters = {};
|
|
2174
|
+
const headerParameters = {};
|
|
2175
|
+
headerParameters["Content-Type"] = "application/json;odata.metadata=minimal;odata.streaming=true";
|
|
2176
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2177
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
2178
|
+
}
|
|
2179
|
+
let urlPath = `/odata/Folders/UiPath.Server.Configuration.OData.AssignDomainUser`;
|
|
2180
|
+
const response = await this.request({
|
|
2181
|
+
path: urlPath,
|
|
2182
|
+
method: "POST",
|
|
2183
|
+
headers: headerParameters,
|
|
2184
|
+
query: queryParameters,
|
|
2185
|
+
body: FolderAssignDomainUserRequestToJSON(requestParameters["body"])
|
|
2186
|
+
}, initOverrides);
|
|
2187
|
+
return new VoidApiResponse(response);
|
|
2188
|
+
}
|
|
2189
|
+
async foldersAssignDomainUser(requestParameters = {}, initOverrides) {
|
|
2190
|
+
await this.foldersAssignDomainUserRaw(requestParameters, initOverrides);
|
|
2191
|
+
}
|
|
2192
|
+
async foldersAssignMachinesRaw(requestParameters, initOverrides) {
|
|
2193
|
+
const queryParameters = {};
|
|
2194
|
+
const headerParameters = {};
|
|
2195
|
+
headerParameters["Content-Type"] = "application/json;odata.metadata=minimal;odata.streaming=true";
|
|
2196
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2197
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
2198
|
+
}
|
|
2199
|
+
let urlPath = `/odata/Folders/UiPath.Server.Configuration.OData.AssignMachines`;
|
|
2200
|
+
const response = await this.request({
|
|
2201
|
+
path: urlPath,
|
|
2202
|
+
method: "POST",
|
|
2203
|
+
headers: headerParameters,
|
|
2204
|
+
query: queryParameters,
|
|
2205
|
+
body: FolderAssignMachinesRequestToJSON(requestParameters["body"])
|
|
2206
|
+
}, initOverrides);
|
|
2207
|
+
return new VoidApiResponse(response);
|
|
2208
|
+
}
|
|
2209
|
+
async foldersAssignMachines(requestParameters = {}, initOverrides) {
|
|
2210
|
+
await this.foldersAssignMachinesRaw(requestParameters, initOverrides);
|
|
2211
|
+
}
|
|
2212
|
+
async foldersAssignUsersRaw(requestParameters, initOverrides) {
|
|
2213
|
+
const queryParameters = {};
|
|
2214
|
+
const headerParameters = {};
|
|
2215
|
+
headerParameters["Content-Type"] = "application/json;odata.metadata=minimal;odata.streaming=true";
|
|
2216
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2217
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
2218
|
+
}
|
|
2219
|
+
let urlPath = `/odata/Folders/UiPath.Server.Configuration.OData.AssignUsers`;
|
|
2220
|
+
const response = await this.request({
|
|
2221
|
+
path: urlPath,
|
|
2222
|
+
method: "POST",
|
|
2223
|
+
headers: headerParameters,
|
|
2224
|
+
query: queryParameters,
|
|
2225
|
+
body: FolderAssignUsersRequestToJSON(requestParameters["body"])
|
|
2226
|
+
}, initOverrides);
|
|
2227
|
+
return new VoidApiResponse(response);
|
|
2228
|
+
}
|
|
2229
|
+
async foldersAssignUsers(requestParameters = {}, initOverrides) {
|
|
2230
|
+
await this.foldersAssignUsersRaw(requestParameters, initOverrides);
|
|
2231
|
+
}
|
|
2232
|
+
async foldersDeleteByIdRaw(requestParameters, initOverrides) {
|
|
2233
|
+
if (requestParameters["key"] == null) {
|
|
2234
|
+
throw new RequiredError("key", 'Required parameter "key" was null or undefined when calling foldersDeleteById().');
|
|
2235
|
+
}
|
|
2236
|
+
const queryParameters = {};
|
|
2237
|
+
const headerParameters = {};
|
|
2238
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2239
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
2240
|
+
}
|
|
2241
|
+
let urlPath = `/odata/Folders({key})`;
|
|
2242
|
+
urlPath = urlPath.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"])));
|
|
2243
|
+
const response = await this.request({
|
|
2244
|
+
path: urlPath,
|
|
2245
|
+
method: "DELETE",
|
|
2246
|
+
headers: headerParameters,
|
|
2247
|
+
query: queryParameters
|
|
2248
|
+
}, initOverrides);
|
|
2249
|
+
return new VoidApiResponse(response);
|
|
2250
|
+
}
|
|
2251
|
+
async foldersDeleteById(requestParameters, initOverrides) {
|
|
2252
|
+
await this.foldersDeleteByIdRaw(requestParameters, initOverrides);
|
|
2253
|
+
}
|
|
2254
|
+
async foldersDeleteByKeyRaw(requestParameters, initOverrides) {
|
|
2255
|
+
const queryParameters = {};
|
|
2256
|
+
if (requestParameters["key"] != null) {
|
|
2257
|
+
queryParameters["key"] = requestParameters["key"];
|
|
2258
|
+
}
|
|
2259
|
+
const headerParameters = {};
|
|
2260
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2261
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
2262
|
+
}
|
|
2263
|
+
let urlPath = `/api/Folders/DeleteByKey`;
|
|
2264
|
+
const response = await this.request({
|
|
2265
|
+
path: urlPath,
|
|
2266
|
+
method: "DELETE",
|
|
2267
|
+
headers: headerParameters,
|
|
2268
|
+
query: queryParameters
|
|
2269
|
+
}, initOverrides);
|
|
2270
|
+
return new VoidApiResponse(response);
|
|
2271
|
+
}
|
|
2272
|
+
async foldersDeleteByKey(requestParameters = {}, initOverrides) {
|
|
2273
|
+
await this.foldersDeleteByKeyRaw(requestParameters, initOverrides);
|
|
2274
|
+
}
|
|
2275
|
+
async foldersGetRaw(requestParameters, initOverrides) {
|
|
2276
|
+
const queryParameters = {};
|
|
2277
|
+
if (requestParameters["$select"] != null) {
|
|
2278
|
+
queryParameters["$select"] = requestParameters["$select"];
|
|
2279
|
+
}
|
|
2280
|
+
if (requestParameters["$expand"] != null) {
|
|
2281
|
+
queryParameters["$expand"] = requestParameters["$expand"];
|
|
2282
|
+
}
|
|
2283
|
+
if (requestParameters["$filter"] != null) {
|
|
2284
|
+
queryParameters["$filter"] = requestParameters["$filter"];
|
|
2285
|
+
}
|
|
2286
|
+
if (requestParameters["$orderby"] != null) {
|
|
2287
|
+
queryParameters["$orderby"] = requestParameters["$orderby"];
|
|
2288
|
+
}
|
|
2289
|
+
if (requestParameters["$top"] != null) {
|
|
2290
|
+
queryParameters["$top"] = requestParameters["$top"];
|
|
2291
|
+
}
|
|
2292
|
+
if (requestParameters["$skip"] != null) {
|
|
2293
|
+
queryParameters["$skip"] = requestParameters["$skip"];
|
|
2294
|
+
}
|
|
2295
|
+
if (requestParameters["$count"] != null) {
|
|
2296
|
+
queryParameters["$count"] = requestParameters["$count"];
|
|
2297
|
+
}
|
|
2298
|
+
const headerParameters = {};
|
|
2299
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2300
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
2301
|
+
}
|
|
2302
|
+
let urlPath = `/odata/Folders`;
|
|
2303
|
+
const response = await this.request({
|
|
2304
|
+
path: urlPath,
|
|
2305
|
+
method: "GET",
|
|
2306
|
+
headers: headerParameters,
|
|
2307
|
+
query: queryParameters
|
|
2308
|
+
}, initOverrides);
|
|
2309
|
+
return new JSONApiResponse(response, (jsonValue) => ODataValueOfIEnumerableOfFolderDtoFromJSON(jsonValue));
|
|
2310
|
+
}
|
|
2311
|
+
async foldersGet(requestParameters = {}, initOverrides) {
|
|
2312
|
+
const response = await this.foldersGetRaw(requestParameters, initOverrides);
|
|
2313
|
+
return await response.value();
|
|
2314
|
+
}
|
|
2315
|
+
async foldersGetAllFoldersRaw(requestParameters, initOverrides) {
|
|
2316
|
+
const queryParameters = {};
|
|
2317
|
+
if (requestParameters["limit"] != null) {
|
|
2318
|
+
queryParameters["limit"] = requestParameters["limit"];
|
|
2319
|
+
}
|
|
2320
|
+
if (requestParameters["cursor"] != null) {
|
|
2321
|
+
queryParameters["cursor"] = requestParameters["cursor"];
|
|
2322
|
+
}
|
|
2323
|
+
if (requestParameters["deletionMaxAge"] != null) {
|
|
2324
|
+
queryParameters["deletionMaxAge"] = requestParameters["deletionMaxAge"].toISOString();
|
|
2325
|
+
}
|
|
2326
|
+
const headerParameters = {};
|
|
2327
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2328
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
2329
|
+
}
|
|
2330
|
+
let urlPath = `/api/Folders/GetAllFolders`;
|
|
2331
|
+
const response = await this.request({
|
|
2332
|
+
path: urlPath,
|
|
2333
|
+
method: "GET",
|
|
2334
|
+
headers: headerParameters,
|
|
2335
|
+
query: queryParameters
|
|
2336
|
+
}, initOverrides);
|
|
2337
|
+
return new JSONApiResponse(response, (jsonValue) => ResourcePaginationResultOfFolderFromJSON(jsonValue));
|
|
2338
|
+
}
|
|
2339
|
+
async foldersGetAllFolders(requestParameters = {}, initOverrides) {
|
|
2340
|
+
const response = await this.foldersGetAllFoldersRaw(requestParameters, initOverrides);
|
|
2341
|
+
return await response.value();
|
|
2342
|
+
}
|
|
2343
|
+
async foldersGetAllFoldersByTenantkeyRaw(requestParameters, initOverrides) {
|
|
2344
|
+
if (requestParameters["tenantKey"] == null) {
|
|
2345
|
+
throw new RequiredError("tenantKey", 'Required parameter "tenantKey" was null or undefined when calling foldersGetAllFoldersByTenantkey().');
|
|
2346
|
+
}
|
|
2347
|
+
const queryParameters = {};
|
|
2348
|
+
if (requestParameters["limit"] != null) {
|
|
2349
|
+
queryParameters["limit"] = requestParameters["limit"];
|
|
2350
|
+
}
|
|
2351
|
+
if (requestParameters["cursor"] != null) {
|
|
2352
|
+
queryParameters["cursor"] = requestParameters["cursor"];
|
|
2353
|
+
}
|
|
2354
|
+
if (requestParameters["deletionMaxAge"] != null) {
|
|
2355
|
+
queryParameters["deletionMaxAge"] = requestParameters["deletionMaxAge"].toISOString();
|
|
2356
|
+
}
|
|
2357
|
+
const headerParameters = {};
|
|
2358
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2359
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
2360
|
+
}
|
|
2361
|
+
let urlPath = `/api/Folders/GetAllFolders/{tenantKey}`;
|
|
2362
|
+
urlPath = urlPath.replace(`{${"tenantKey"}}`, encodeURIComponent(String(requestParameters["tenantKey"])));
|
|
2363
|
+
const response = await this.request({
|
|
2364
|
+
path: urlPath,
|
|
2365
|
+
method: "GET",
|
|
2366
|
+
headers: headerParameters,
|
|
2367
|
+
query: queryParameters
|
|
2368
|
+
}, initOverrides);
|
|
2369
|
+
return new JSONApiResponse(response, (jsonValue) => ResourcePaginationResultOfFolderFromJSON(jsonValue));
|
|
2370
|
+
}
|
|
2371
|
+
async foldersGetAllFoldersByTenantkey(requestParameters, initOverrides) {
|
|
2372
|
+
const response = await this.foldersGetAllFoldersByTenantkeyRaw(requestParameters, initOverrides);
|
|
2373
|
+
return await response.value();
|
|
2374
|
+
}
|
|
2375
|
+
async foldersGetAllForCurrentUserRaw(requestParameters, initOverrides) {
|
|
2376
|
+
const queryParameters = {};
|
|
2377
|
+
if (requestParameters["take"] != null) {
|
|
2378
|
+
queryParameters["take"] = requestParameters["take"];
|
|
2379
|
+
}
|
|
2380
|
+
if (requestParameters["skip"] != null) {
|
|
2381
|
+
queryParameters["skip"] = requestParameters["skip"];
|
|
2382
|
+
}
|
|
2383
|
+
const headerParameters = {};
|
|
2384
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2385
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
2386
|
+
}
|
|
2387
|
+
let urlPath = `/api/Folders/GetAllForCurrentUser`;
|
|
2388
|
+
const response = await this.request({
|
|
2389
|
+
path: urlPath,
|
|
2390
|
+
method: "GET",
|
|
2391
|
+
headers: headerParameters,
|
|
2392
|
+
query: queryParameters
|
|
2393
|
+
}, initOverrides);
|
|
2394
|
+
return new JSONApiResponse(response, (jsonValue) => PageResultDtoOfCurrentUserFolderDtoFromJSON(jsonValue));
|
|
2395
|
+
}
|
|
2396
|
+
async foldersGetAllForCurrentUser(requestParameters = {}, initOverrides) {
|
|
2397
|
+
const response = await this.foldersGetAllForCurrentUserRaw(requestParameters, initOverrides);
|
|
2398
|
+
return await response.value();
|
|
2399
|
+
}
|
|
2400
|
+
async foldersGetAllRolesForUserByUsernameAndSkipAndTakeRaw(requestParameters, initOverrides) {
|
|
2401
|
+
if (requestParameters["username"] == null) {
|
|
2402
|
+
throw new RequiredError("username", 'Required parameter "username" was null or undefined when calling foldersGetAllRolesForUserByUsernameAndSkipAndTake().');
|
|
2403
|
+
}
|
|
2404
|
+
if (requestParameters["skip"] == null) {
|
|
2405
|
+
throw new RequiredError("skip", 'Required parameter "skip" was null or undefined when calling foldersGetAllRolesForUserByUsernameAndSkipAndTake().');
|
|
2406
|
+
}
|
|
2407
|
+
if (requestParameters["take"] == null) {
|
|
2408
|
+
throw new RequiredError("take", 'Required parameter "take" was null or undefined when calling foldersGetAllRolesForUserByUsernameAndSkipAndTake().');
|
|
2409
|
+
}
|
|
2410
|
+
const queryParameters = {};
|
|
2411
|
+
if (requestParameters["type"] != null) {
|
|
2412
|
+
queryParameters["type"] = requestParameters["type"];
|
|
2413
|
+
}
|
|
2414
|
+
if (requestParameters["searchText"] != null) {
|
|
2415
|
+
queryParameters["searchText"] = requestParameters["searchText"];
|
|
2416
|
+
}
|
|
2417
|
+
if (requestParameters["$select"] != null) {
|
|
2418
|
+
queryParameters["$select"] = requestParameters["$select"];
|
|
2419
|
+
}
|
|
2420
|
+
if (requestParameters["$expand"] != null) {
|
|
2421
|
+
queryParameters["$expand"] = requestParameters["$expand"];
|
|
2422
|
+
}
|
|
2423
|
+
const headerParameters = {};
|
|
2424
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2425
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
2426
|
+
}
|
|
2427
|
+
let urlPath = `/odata/Folders/UiPath.Server.Configuration.OData.GetAllRolesForUser(username='{username}',skip={skip},take={take})`;
|
|
2428
|
+
urlPath = urlPath.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters["username"])));
|
|
2429
|
+
urlPath = urlPath.replace(`{${"skip"}}`, encodeURIComponent(String(requestParameters["skip"])));
|
|
2430
|
+
urlPath = urlPath.replace(`{${"take"}}`, encodeURIComponent(String(requestParameters["take"])));
|
|
2431
|
+
const response = await this.request({
|
|
2432
|
+
path: urlPath,
|
|
2433
|
+
method: "GET",
|
|
2434
|
+
headers: headerParameters,
|
|
2435
|
+
query: queryParameters
|
|
2436
|
+
}, initOverrides);
|
|
2437
|
+
return new JSONApiResponse(response, (jsonValue) => UserRoleAssignmentsDtoFromJSON(jsonValue));
|
|
2438
|
+
}
|
|
2439
|
+
async foldersGetAllRolesForUserByUsernameAndSkipAndTake(requestParameters, initOverrides) {
|
|
2440
|
+
const response = await this.foldersGetAllRolesForUserByUsernameAndSkipAndTakeRaw(requestParameters, initOverrides);
|
|
2441
|
+
return await response.value();
|
|
2442
|
+
}
|
|
2443
|
+
async foldersGetByIdRaw(requestParameters, initOverrides) {
|
|
2444
|
+
if (requestParameters["key"] == null) {
|
|
2445
|
+
throw new RequiredError("key", 'Required parameter "key" was null or undefined when calling foldersGetById().');
|
|
2446
|
+
}
|
|
2447
|
+
const queryParameters = {};
|
|
2448
|
+
if (requestParameters["$select"] != null) {
|
|
2449
|
+
queryParameters["$select"] = requestParameters["$select"];
|
|
2450
|
+
}
|
|
2451
|
+
if (requestParameters["$expand"] != null) {
|
|
2452
|
+
queryParameters["$expand"] = requestParameters["$expand"];
|
|
2453
|
+
}
|
|
2454
|
+
const headerParameters = {};
|
|
2455
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2456
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
2457
|
+
}
|
|
2458
|
+
let urlPath = `/odata/Folders({key})`;
|
|
2459
|
+
urlPath = urlPath.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"])));
|
|
2460
|
+
const response = await this.request({
|
|
2461
|
+
path: urlPath,
|
|
2462
|
+
method: "GET",
|
|
2463
|
+
headers: headerParameters,
|
|
2464
|
+
query: queryParameters
|
|
2465
|
+
}, initOverrides);
|
|
2466
|
+
return new JSONApiResponse(response, (jsonValue) => FolderDtoFromJSON(jsonValue));
|
|
2467
|
+
}
|
|
2468
|
+
async foldersGetById(requestParameters, initOverrides) {
|
|
2469
|
+
const response = await this.foldersGetByIdRaw(requestParameters, initOverrides);
|
|
2470
|
+
return await response.value();
|
|
2471
|
+
}
|
|
2472
|
+
async foldersGetByKeyByIdentifierRaw(requestParameters, initOverrides) {
|
|
2473
|
+
if (requestParameters["identifier"] == null) {
|
|
2474
|
+
throw new RequiredError("identifier", 'Required parameter "identifier" was null or undefined when calling foldersGetByKeyByIdentifier().');
|
|
2475
|
+
}
|
|
2476
|
+
const queryParameters = {};
|
|
2477
|
+
if (requestParameters["$select"] != null) {
|
|
2478
|
+
queryParameters["$select"] = requestParameters["$select"];
|
|
2479
|
+
}
|
|
2480
|
+
if (requestParameters["$expand"] != null) {
|
|
2481
|
+
queryParameters["$expand"] = requestParameters["$expand"];
|
|
2482
|
+
}
|
|
2483
|
+
if (requestParameters["$filter"] != null) {
|
|
2484
|
+
queryParameters["$filter"] = requestParameters["$filter"];
|
|
2485
|
+
}
|
|
2486
|
+
if (requestParameters["$orderby"] != null) {
|
|
2487
|
+
queryParameters["$orderby"] = requestParameters["$orderby"];
|
|
2488
|
+
}
|
|
2489
|
+
if (requestParameters["$top"] != null) {
|
|
2490
|
+
queryParameters["$top"] = requestParameters["$top"];
|
|
2491
|
+
}
|
|
2492
|
+
if (requestParameters["$skip"] != null) {
|
|
2493
|
+
queryParameters["$skip"] = requestParameters["$skip"];
|
|
2494
|
+
}
|
|
2495
|
+
if (requestParameters["$count"] != null) {
|
|
2496
|
+
queryParameters["$count"] = requestParameters["$count"];
|
|
2497
|
+
}
|
|
2498
|
+
const headerParameters = {};
|
|
2499
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2500
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
2501
|
+
}
|
|
2502
|
+
let urlPath = `/odata/Folders/UiPath.Server.Configuration.OData.GetByKey(identifier={identifier})`;
|
|
2503
|
+
urlPath = urlPath.replace(`{${"identifier"}}`, encodeURIComponent(String(requestParameters["identifier"])));
|
|
2504
|
+
const response = await this.request({
|
|
2505
|
+
path: urlPath,
|
|
2506
|
+
method: "GET",
|
|
2507
|
+
headers: headerParameters,
|
|
2508
|
+
query: queryParameters
|
|
2509
|
+
}, initOverrides);
|
|
2510
|
+
return new JSONApiResponse(response, (jsonValue) => FolderDtoFromJSON(jsonValue));
|
|
2511
|
+
}
|
|
2512
|
+
async foldersGetByKeyByIdentifier(requestParameters, initOverrides) {
|
|
2513
|
+
const response = await this.foldersGetByKeyByIdentifierRaw(requestParameters, initOverrides);
|
|
2514
|
+
return await response.value();
|
|
2515
|
+
}
|
|
2516
|
+
async foldersGetEntitiesSummaryByFolderidRaw(requestParameters, initOverrides) {
|
|
2517
|
+
if (requestParameters["folderId"] == null) {
|
|
2518
|
+
throw new RequiredError("folderId", 'Required parameter "folderId" was null or undefined when calling foldersGetEntitiesSummaryByFolderid().');
|
|
2519
|
+
}
|
|
2520
|
+
const queryParameters = {};
|
|
2521
|
+
if (requestParameters["includeShared"] != null) {
|
|
2522
|
+
queryParameters["includeShared"] = requestParameters["includeShared"];
|
|
2523
|
+
}
|
|
2524
|
+
if (requestParameters["$select"] != null) {
|
|
2525
|
+
queryParameters["$select"] = requestParameters["$select"];
|
|
2526
|
+
}
|
|
2527
|
+
if (requestParameters["$expand"] != null) {
|
|
2528
|
+
queryParameters["$expand"] = requestParameters["$expand"];
|
|
2529
|
+
}
|
|
2530
|
+
const headerParameters = {};
|
|
2531
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2532
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
2533
|
+
}
|
|
2534
|
+
let urlPath = `/odata/Folders/UiPath.Server.Configuration.OData.GetEntitiesSummary(folderId={folderId})`;
|
|
2535
|
+
urlPath = urlPath.replace(`{${"folderId"}}`, encodeURIComponent(String(requestParameters["folderId"])));
|
|
2536
|
+
const response = await this.request({
|
|
2537
|
+
path: urlPath,
|
|
2538
|
+
method: "GET",
|
|
2539
|
+
headers: headerParameters,
|
|
2540
|
+
query: queryParameters
|
|
2541
|
+
}, initOverrides);
|
|
2542
|
+
return new JSONApiResponse(response, (jsonValue) => EntitySummaryDtoFromJSON(jsonValue));
|
|
2543
|
+
}
|
|
2544
|
+
async foldersGetEntitiesSummaryByFolderid(requestParameters, initOverrides) {
|
|
2545
|
+
const response = await this.foldersGetEntitiesSummaryByFolderidRaw(requestParameters, initOverrides);
|
|
2546
|
+
return await response.value();
|
|
2547
|
+
}
|
|
2548
|
+
async foldersGetFolderByFqnRaw(requestParameters, initOverrides) {
|
|
2549
|
+
const queryParameters = {};
|
|
2550
|
+
if (requestParameters["fullyQualifiedName"] != null) {
|
|
2551
|
+
queryParameters["fullyQualifiedName"] = requestParameters["fullyQualifiedName"];
|
|
2552
|
+
}
|
|
2553
|
+
const headerParameters = {};
|
|
2554
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2555
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
2556
|
+
}
|
|
2557
|
+
let urlPath = `/api/Folders/GetFolderByFqn`;
|
|
2558
|
+
const response = await this.request({
|
|
2559
|
+
path: urlPath,
|
|
2560
|
+
method: "GET",
|
|
2561
|
+
headers: headerParameters,
|
|
2562
|
+
query: queryParameters
|
|
2563
|
+
}, initOverrides);
|
|
2564
|
+
return new JSONApiResponse(response, (jsonValue) => FolderIdentifierFromJSON(jsonValue));
|
|
2565
|
+
}
|
|
2566
|
+
async foldersGetFolderByFqn(requestParameters = {}, initOverrides) {
|
|
2567
|
+
const response = await this.foldersGetFolderByFqnRaw(requestParameters, initOverrides);
|
|
2568
|
+
return await response.value();
|
|
2569
|
+
}
|
|
2570
|
+
async foldersGetFolderByKeyByFolderkeyRaw(requestParameters, initOverrides) {
|
|
2571
|
+
if (requestParameters["folderKey"] == null) {
|
|
2572
|
+
throw new RequiredError("folderKey", 'Required parameter "folderKey" was null or undefined when calling foldersGetFolderByKeyByFolderkey().');
|
|
2573
|
+
}
|
|
2574
|
+
const queryParameters = {};
|
|
2575
|
+
const headerParameters = {};
|
|
2576
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2577
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
2578
|
+
}
|
|
2579
|
+
let urlPath = `/api/Folders/GetFolderByKey/{folderKey}`;
|
|
2580
|
+
urlPath = urlPath.replace(`{${"folderKey"}}`, encodeURIComponent(String(requestParameters["folderKey"])));
|
|
2581
|
+
const response = await this.request({
|
|
2582
|
+
path: urlPath,
|
|
2583
|
+
method: "GET",
|
|
2584
|
+
headers: headerParameters,
|
|
2585
|
+
query: queryParameters
|
|
2586
|
+
}, initOverrides);
|
|
2587
|
+
return new JSONApiResponse(response, (jsonValue) => FolderIdentifierFromJSON(jsonValue));
|
|
2588
|
+
}
|
|
2589
|
+
async foldersGetFolderByKeyByFolderkey(requestParameters, initOverrides) {
|
|
2590
|
+
const response = await this.foldersGetFolderByKeyByFolderkeyRaw(requestParameters, initOverrides);
|
|
2591
|
+
return await response.value();
|
|
2592
|
+
}
|
|
2593
|
+
async foldersGetFoldersPageByExpandedparentidsAndSkipAndTakeRaw(requestParameters, initOverrides) {
|
|
2594
|
+
if (requestParameters["skip"] == null) {
|
|
2595
|
+
throw new RequiredError("skip", 'Required parameter "skip" was null or undefined when calling foldersGetFoldersPageByExpandedparentidsAndSkipAndTake().');
|
|
2596
|
+
}
|
|
2597
|
+
if (requestParameters["take"] == null) {
|
|
2598
|
+
throw new RequiredError("take", 'Required parameter "take" was null or undefined when calling foldersGetFoldersPageByExpandedparentidsAndSkipAndTake().');
|
|
2599
|
+
}
|
|
2600
|
+
if (requestParameters["expandedParentIds"] == null) {
|
|
2601
|
+
throw new RequiredError("expandedParentIds", 'Required parameter "expandedParentIds" was null or undefined when calling foldersGetFoldersPageByExpandedparentidsAndSkipAndTake().');
|
|
2602
|
+
}
|
|
2603
|
+
const queryParameters = {};
|
|
2604
|
+
if (requestParameters["$select"] != null) {
|
|
2605
|
+
queryParameters["$select"] = requestParameters["$select"];
|
|
2606
|
+
}
|
|
2607
|
+
if (requestParameters["$expand"] != null) {
|
|
2608
|
+
queryParameters["$expand"] = requestParameters["$expand"];
|
|
2609
|
+
}
|
|
2610
|
+
if (requestParameters["$filter"] != null) {
|
|
2611
|
+
queryParameters["$filter"] = requestParameters["$filter"];
|
|
2612
|
+
}
|
|
2613
|
+
if (requestParameters["$orderby"] != null) {
|
|
2614
|
+
queryParameters["$orderby"] = requestParameters["$orderby"];
|
|
2615
|
+
}
|
|
2616
|
+
if (requestParameters["$count"] != null) {
|
|
2617
|
+
queryParameters["$count"] = requestParameters["$count"];
|
|
2618
|
+
}
|
|
2619
|
+
const headerParameters = {};
|
|
2620
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2621
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
2622
|
+
}
|
|
2623
|
+
let urlPath = `/odata/Folders/UiPath.Server.Configuration.OData.GetFoldersPage(skip={skip},take={take},expandedParentIds=[{expandedParentIds}])`;
|
|
2624
|
+
urlPath = urlPath.replace(`{${"skip"}}`, encodeURIComponent(String(requestParameters["skip"])));
|
|
2625
|
+
urlPath = urlPath.replace(`{${"take"}}`, encodeURIComponent(String(requestParameters["take"])));
|
|
2626
|
+
urlPath = urlPath.replace(`{${"expandedParentIds"}}`, encodeURIComponent(String(requestParameters["expandedParentIds"])));
|
|
2627
|
+
const response = await this.request({
|
|
2628
|
+
path: urlPath,
|
|
2629
|
+
method: "GET",
|
|
2630
|
+
headers: headerParameters,
|
|
2631
|
+
query: queryParameters
|
|
2632
|
+
}, initOverrides);
|
|
2633
|
+
return new JSONApiResponse(response, (jsonValue) => ODataValueOfIEnumerableOfExtendedFolderDtoFromJSON(jsonValue));
|
|
2634
|
+
}
|
|
2635
|
+
async foldersGetFoldersPageByExpandedparentidsAndSkipAndTake(requestParameters, initOverrides) {
|
|
2636
|
+
const response = await this.foldersGetFoldersPageByExpandedparentidsAndSkipAndTakeRaw(requestParameters, initOverrides);
|
|
2637
|
+
return await response.value();
|
|
2638
|
+
}
|
|
2639
|
+
async foldersGetHeightOfSubtreeByIdRaw(requestParameters, initOverrides) {
|
|
2640
|
+
if (requestParameters["key"] == null) {
|
|
2641
|
+
throw new RequiredError("key", 'Required parameter "key" was null or undefined when calling foldersGetHeightOfSubtreeById().');
|
|
2642
|
+
}
|
|
2643
|
+
const queryParameters = {};
|
|
2644
|
+
if (requestParameters["$select"] != null) {
|
|
2645
|
+
queryParameters["$select"] = requestParameters["$select"];
|
|
2646
|
+
}
|
|
2647
|
+
if (requestParameters["$expand"] != null) {
|
|
2648
|
+
queryParameters["$expand"] = requestParameters["$expand"];
|
|
2649
|
+
}
|
|
2650
|
+
const headerParameters = {};
|
|
2651
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2652
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
2653
|
+
}
|
|
2654
|
+
let urlPath = `/odata/Folders({key})/UiPath.Server.Configuration.OData.GetHeightOfSubtree`;
|
|
2655
|
+
urlPath = urlPath.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"])));
|
|
2656
|
+
const response = await this.request({
|
|
2657
|
+
path: urlPath,
|
|
2658
|
+
method: "GET",
|
|
2659
|
+
headers: headerParameters,
|
|
2660
|
+
query: queryParameters
|
|
2661
|
+
}, initOverrides);
|
|
2662
|
+
if (this.isJsonMime(response.headers.get("content-type"))) {
|
|
2663
|
+
return new JSONApiResponse(response);
|
|
2664
|
+
} else {
|
|
2665
|
+
return new TextApiResponse(response);
|
|
2666
|
+
}
|
|
2667
|
+
}
|
|
2668
|
+
async foldersGetHeightOfSubtreeById(requestParameters, initOverrides) {
|
|
2669
|
+
const response = await this.foldersGetHeightOfSubtreeByIdRaw(requestParameters, initOverrides);
|
|
2670
|
+
return await response.value();
|
|
2671
|
+
}
|
|
2672
|
+
async foldersGetMachineRobotsByFolderidAndMachineidRaw(requestParameters, initOverrides) {
|
|
2673
|
+
if (requestParameters["folderId"] == null) {
|
|
2674
|
+
throw new RequiredError("folderId", 'Required parameter "folderId" was null or undefined when calling foldersGetMachineRobotsByFolderidAndMachineid().');
|
|
2675
|
+
}
|
|
2676
|
+
if (requestParameters["machineId"] == null) {
|
|
2677
|
+
throw new RequiredError("machineId", 'Required parameter "machineId" was null or undefined when calling foldersGetMachineRobotsByFolderidAndMachineid().');
|
|
2678
|
+
}
|
|
2679
|
+
const queryParameters = {};
|
|
2680
|
+
if (requestParameters["$select"] != null) {
|
|
2681
|
+
queryParameters["$select"] = requestParameters["$select"];
|
|
2682
|
+
}
|
|
2683
|
+
if (requestParameters["$expand"] != null) {
|
|
2684
|
+
queryParameters["$expand"] = requestParameters["$expand"];
|
|
2685
|
+
}
|
|
2686
|
+
if (requestParameters["$filter"] != null) {
|
|
2687
|
+
queryParameters["$filter"] = requestParameters["$filter"];
|
|
2688
|
+
}
|
|
2689
|
+
if (requestParameters["$orderby"] != null) {
|
|
2690
|
+
queryParameters["$orderby"] = requestParameters["$orderby"];
|
|
2691
|
+
}
|
|
2692
|
+
if (requestParameters["$top"] != null) {
|
|
2693
|
+
queryParameters["$top"] = requestParameters["$top"];
|
|
2694
|
+
}
|
|
2695
|
+
if (requestParameters["$skip"] != null) {
|
|
2696
|
+
queryParameters["$skip"] = requestParameters["$skip"];
|
|
2697
|
+
}
|
|
2698
|
+
if (requestParameters["$count"] != null) {
|
|
2699
|
+
queryParameters["$count"] = requestParameters["$count"];
|
|
2700
|
+
}
|
|
2701
|
+
const headerParameters = {};
|
|
2702
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2703
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
2704
|
+
}
|
|
2705
|
+
let urlPath = `/odata/Folders/UiPath.Server.Configuration.OData.GetMachineRobots(folderId={folderId},machineId={machineId})`;
|
|
2706
|
+
urlPath = urlPath.replace(`{${"folderId"}}`, encodeURIComponent(String(requestParameters["folderId"])));
|
|
2707
|
+
urlPath = urlPath.replace(`{${"machineId"}}`, encodeURIComponent(String(requestParameters["machineId"])));
|
|
2708
|
+
const response = await this.request({
|
|
2709
|
+
path: urlPath,
|
|
2710
|
+
method: "GET",
|
|
2711
|
+
headers: headerParameters,
|
|
2712
|
+
query: queryParameters
|
|
2713
|
+
}, initOverrides);
|
|
2714
|
+
return new JSONApiResponse(response, (jsonValue) => ODataValueOfIEnumerableOfRobotUserDtoFromJSON(jsonValue));
|
|
2715
|
+
}
|
|
2716
|
+
async foldersGetMachineRobotsByFolderidAndMachineid(requestParameters, initOverrides) {
|
|
2717
|
+
const response = await this.foldersGetMachineRobotsByFolderidAndMachineidRaw(requestParameters, initOverrides);
|
|
2718
|
+
return await response.value();
|
|
2719
|
+
}
|
|
2720
|
+
async foldersGetMachinesForFolderByKeyRaw(requestParameters, initOverrides) {
|
|
2721
|
+
if (requestParameters["key"] == null) {
|
|
2722
|
+
throw new RequiredError("key", 'Required parameter "key" was null or undefined when calling foldersGetMachinesForFolderByKey().');
|
|
2723
|
+
}
|
|
2724
|
+
const queryParameters = {};
|
|
2725
|
+
if (requestParameters["$select"] != null) {
|
|
2726
|
+
queryParameters["$select"] = requestParameters["$select"];
|
|
2727
|
+
}
|
|
2728
|
+
if (requestParameters["$expand"] != null) {
|
|
2729
|
+
queryParameters["$expand"] = requestParameters["$expand"];
|
|
2730
|
+
}
|
|
2731
|
+
if (requestParameters["$filter"] != null) {
|
|
2732
|
+
queryParameters["$filter"] = requestParameters["$filter"];
|
|
2733
|
+
}
|
|
2734
|
+
if (requestParameters["$orderby"] != null) {
|
|
2735
|
+
queryParameters["$orderby"] = requestParameters["$orderby"];
|
|
2736
|
+
}
|
|
2737
|
+
if (requestParameters["$top"] != null) {
|
|
2738
|
+
queryParameters["$top"] = requestParameters["$top"];
|
|
2739
|
+
}
|
|
2740
|
+
if (requestParameters["$skip"] != null) {
|
|
2741
|
+
queryParameters["$skip"] = requestParameters["$skip"];
|
|
2742
|
+
}
|
|
2743
|
+
if (requestParameters["$count"] != null) {
|
|
2744
|
+
queryParameters["$count"] = requestParameters["$count"];
|
|
2745
|
+
}
|
|
2746
|
+
const headerParameters = {};
|
|
2747
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2748
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
2749
|
+
}
|
|
2750
|
+
let urlPath = `/odata/Folders/UiPath.Server.Configuration.OData.GetMachinesForFolder(key={key})`;
|
|
2751
|
+
urlPath = urlPath.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"])));
|
|
2752
|
+
const response = await this.request({
|
|
2753
|
+
path: urlPath,
|
|
2754
|
+
method: "GET",
|
|
2755
|
+
headers: headerParameters,
|
|
2756
|
+
query: queryParameters
|
|
2757
|
+
}, initOverrides);
|
|
2758
|
+
return new JSONApiResponse(response, (jsonValue) => ODataValueOfIEnumerableOfMachineFolderDtoFromJSON(jsonValue));
|
|
2759
|
+
}
|
|
2760
|
+
async foldersGetMachinesForFolderByKey(requestParameters, initOverrides) {
|
|
2761
|
+
const response = await this.foldersGetMachinesForFolderByKeyRaw(requestParameters, initOverrides);
|
|
2762
|
+
return await response.value();
|
|
2763
|
+
}
|
|
2764
|
+
async foldersGetMoveFolderMachinesChangesRaw(requestParameters, initOverrides) {
|
|
2765
|
+
const queryParameters = {};
|
|
2766
|
+
if (requestParameters["folderId"] != null) {
|
|
2767
|
+
queryParameters["folderId"] = requestParameters["folderId"];
|
|
2768
|
+
}
|
|
2769
|
+
if (requestParameters["targetParentId"] != null) {
|
|
2770
|
+
queryParameters["targetParentId"] = requestParameters["targetParentId"];
|
|
2771
|
+
}
|
|
2772
|
+
if (requestParameters["$select"] != null) {
|
|
2773
|
+
queryParameters["$select"] = requestParameters["$select"];
|
|
2774
|
+
}
|
|
2775
|
+
if (requestParameters["$expand"] != null) {
|
|
2776
|
+
queryParameters["$expand"] = requestParameters["$expand"];
|
|
2777
|
+
}
|
|
2778
|
+
if (requestParameters["$filter"] != null) {
|
|
2779
|
+
queryParameters["$filter"] = requestParameters["$filter"];
|
|
2780
|
+
}
|
|
2781
|
+
if (requestParameters["$orderby"] != null) {
|
|
2782
|
+
queryParameters["$orderby"] = requestParameters["$orderby"];
|
|
2783
|
+
}
|
|
2784
|
+
if (requestParameters["$count"] != null) {
|
|
2785
|
+
queryParameters["$count"] = requestParameters["$count"];
|
|
2786
|
+
}
|
|
2787
|
+
const headerParameters = {};
|
|
2788
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2789
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
2790
|
+
}
|
|
2791
|
+
let urlPath = `/odata/Folders/UiPath.Server.Configuration.OData.GetMoveFolderMachinesChanges`;
|
|
2792
|
+
const response = await this.request({
|
|
2793
|
+
path: urlPath,
|
|
2794
|
+
method: "GET",
|
|
2795
|
+
headers: headerParameters,
|
|
2796
|
+
query: queryParameters
|
|
2797
|
+
}, initOverrides);
|
|
2798
|
+
return new JSONApiResponse(response, (jsonValue) => ODataValueOfIEnumerableOfMoveFolderMachineChangeFromJSON(jsonValue));
|
|
2799
|
+
}
|
|
2800
|
+
async foldersGetMoveFolderMachinesChanges(requestParameters = {}, initOverrides) {
|
|
2801
|
+
const response = await this.foldersGetMoveFolderMachinesChangesRaw(requestParameters, initOverrides);
|
|
2802
|
+
return await response.value();
|
|
2803
|
+
}
|
|
2804
|
+
async foldersGetRootFolderByFolderkeyRaw(requestParameters, initOverrides) {
|
|
2805
|
+
if (requestParameters["folderKey"] == null) {
|
|
2806
|
+
throw new RequiredError("folderKey", 'Required parameter "folderKey" was null or undefined when calling foldersGetRootFolderByFolderkey().');
|
|
2807
|
+
}
|
|
2808
|
+
const queryParameters = {};
|
|
2809
|
+
const headerParameters = {};
|
|
2810
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2811
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
2812
|
+
}
|
|
2813
|
+
let urlPath = `/api/Folders/GetRootFolder/{folderKey}`;
|
|
2814
|
+
urlPath = urlPath.replace(`{${"folderKey"}}`, encodeURIComponent(String(requestParameters["folderKey"])));
|
|
2815
|
+
const response = await this.request({
|
|
2816
|
+
path: urlPath,
|
|
2817
|
+
method: "GET",
|
|
2818
|
+
headers: headerParameters,
|
|
2819
|
+
query: queryParameters
|
|
2820
|
+
}, initOverrides);
|
|
2821
|
+
return new JSONApiResponse(response, (jsonValue) => RootFolderDtoFromJSON(jsonValue));
|
|
2822
|
+
}
|
|
2823
|
+
async foldersGetRootFolderByFolderkey(requestParameters, initOverrides) {
|
|
2824
|
+
const response = await this.foldersGetRootFolderByFolderkeyRaw(requestParameters, initOverrides);
|
|
2825
|
+
return await response.value();
|
|
2826
|
+
}
|
|
2827
|
+
async foldersGetSubfoldersWithAssignedMachineRaw(requestParameters, initOverrides) {
|
|
2828
|
+
const queryParameters = {};
|
|
2829
|
+
if (requestParameters["rootFolderId"] != null) {
|
|
2830
|
+
queryParameters["rootFolderId"] = requestParameters["rootFolderId"];
|
|
2831
|
+
}
|
|
2832
|
+
if (requestParameters["machineId"] != null) {
|
|
2833
|
+
queryParameters["machineId"] = requestParameters["machineId"];
|
|
2834
|
+
}
|
|
2835
|
+
if (requestParameters["$select"] != null) {
|
|
2836
|
+
queryParameters["$select"] = requestParameters["$select"];
|
|
2837
|
+
}
|
|
2838
|
+
if (requestParameters["$expand"] != null) {
|
|
2839
|
+
queryParameters["$expand"] = requestParameters["$expand"];
|
|
2840
|
+
}
|
|
2841
|
+
if (requestParameters["$filter"] != null) {
|
|
2842
|
+
queryParameters["$filter"] = requestParameters["$filter"];
|
|
2843
|
+
}
|
|
2844
|
+
if (requestParameters["$orderby"] != null) {
|
|
2845
|
+
queryParameters["$orderby"] = requestParameters["$orderby"];
|
|
2846
|
+
}
|
|
2847
|
+
if (requestParameters["$top"] != null) {
|
|
2848
|
+
queryParameters["$top"] = requestParameters["$top"];
|
|
2849
|
+
}
|
|
2850
|
+
if (requestParameters["$skip"] != null) {
|
|
2851
|
+
queryParameters["$skip"] = requestParameters["$skip"];
|
|
2852
|
+
}
|
|
2853
|
+
if (requestParameters["$count"] != null) {
|
|
2854
|
+
queryParameters["$count"] = requestParameters["$count"];
|
|
2855
|
+
}
|
|
2856
|
+
const headerParameters = {};
|
|
2857
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2858
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
2859
|
+
}
|
|
2860
|
+
let urlPath = `/odata/Folders/UiPath.Server.Configuration.OData.GetSubfoldersWithAssignedMachine`;
|
|
2861
|
+
const response = await this.request({
|
|
2862
|
+
path: urlPath,
|
|
2863
|
+
method: "GET",
|
|
2864
|
+
headers: headerParameters,
|
|
2865
|
+
query: queryParameters
|
|
2866
|
+
}, initOverrides);
|
|
2867
|
+
return new JSONApiResponse(response, (jsonValue) => ODataValueOfIEnumerableOfFolderDtoFromJSON(jsonValue));
|
|
2868
|
+
}
|
|
2869
|
+
async foldersGetSubfoldersWithAssignedMachine(requestParameters = {}, initOverrides) {
|
|
2870
|
+
const response = await this.foldersGetSubfoldersWithAssignedMachineRaw(requestParameters, initOverrides);
|
|
2871
|
+
return await response.value();
|
|
2872
|
+
}
|
|
2873
|
+
async foldersGetUserRolesChangesByFolderidRaw(requestParameters, initOverrides) {
|
|
2874
|
+
if (requestParameters["folderId"] == null) {
|
|
2875
|
+
throw new RequiredError("folderId", 'Required parameter "folderId" was null or undefined when calling foldersGetUserRolesChangesByFolderid().');
|
|
2876
|
+
}
|
|
2877
|
+
const queryParameters = {};
|
|
2878
|
+
if (requestParameters["targetParentId"] != null) {
|
|
2879
|
+
queryParameters["targetParentId"] = requestParameters["targetParentId"];
|
|
2880
|
+
}
|
|
2881
|
+
if (requestParameters["$select"] != null) {
|
|
2882
|
+
queryParameters["$select"] = requestParameters["$select"];
|
|
2883
|
+
}
|
|
2884
|
+
if (requestParameters["$expand"] != null) {
|
|
2885
|
+
queryParameters["$expand"] = requestParameters["$expand"];
|
|
2886
|
+
}
|
|
2887
|
+
if (requestParameters["$filter"] != null) {
|
|
2888
|
+
queryParameters["$filter"] = requestParameters["$filter"];
|
|
2889
|
+
}
|
|
2890
|
+
if (requestParameters["$orderby"] != null) {
|
|
2891
|
+
queryParameters["$orderby"] = requestParameters["$orderby"];
|
|
2892
|
+
}
|
|
2893
|
+
if (requestParameters["$count"] != null) {
|
|
2894
|
+
queryParameters["$count"] = requestParameters["$count"];
|
|
2895
|
+
}
|
|
2896
|
+
const headerParameters = {};
|
|
2897
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2898
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
2899
|
+
}
|
|
2900
|
+
let urlPath = `/odata/Folders/UiPath.Server.Configuration.OData.GetUserRolesChanges(folderId={folderId})`;
|
|
2901
|
+
urlPath = urlPath.replace(`{${"folderId"}}`, encodeURIComponent(String(requestParameters["folderId"])));
|
|
2902
|
+
const response = await this.request({
|
|
2903
|
+
path: urlPath,
|
|
2904
|
+
method: "GET",
|
|
2905
|
+
headers: headerParameters,
|
|
2906
|
+
query: queryParameters
|
|
2907
|
+
}, initOverrides);
|
|
2908
|
+
return new JSONApiResponse(response, (jsonValue) => ODataValueOfIEnumerableOfUserRolesChangesDtoFromJSON(jsonValue));
|
|
2909
|
+
}
|
|
2910
|
+
async foldersGetUserRolesChangesByFolderid(requestParameters, initOverrides) {
|
|
2911
|
+
const response = await this.foldersGetUserRolesChangesByFolderidRaw(requestParameters, initOverrides);
|
|
2912
|
+
return await response.value();
|
|
2913
|
+
}
|
|
2914
|
+
async foldersGetUsersForFolderByKeyAndIncludeinheritedRaw(requestParameters, initOverrides) {
|
|
2915
|
+
if (requestParameters["key"] == null) {
|
|
2916
|
+
throw new RequiredError("key", 'Required parameter "key" was null or undefined when calling foldersGetUsersForFolderByKeyAndIncludeinherited().');
|
|
2917
|
+
}
|
|
2918
|
+
if (requestParameters["includeInherited"] == null) {
|
|
2919
|
+
throw new RequiredError("includeInherited", 'Required parameter "includeInherited" was null or undefined when calling foldersGetUsersForFolderByKeyAndIncludeinherited().');
|
|
2920
|
+
}
|
|
2921
|
+
const queryParameters = {};
|
|
2922
|
+
if (requestParameters["includeAlertsEnabled"] != null) {
|
|
2923
|
+
queryParameters["includeAlertsEnabled"] = requestParameters["includeAlertsEnabled"];
|
|
2924
|
+
}
|
|
2925
|
+
if (requestParameters["$select"] != null) {
|
|
2926
|
+
queryParameters["$select"] = requestParameters["$select"];
|
|
2927
|
+
}
|
|
2928
|
+
if (requestParameters["$expand"] != null) {
|
|
2929
|
+
queryParameters["$expand"] = requestParameters["$expand"];
|
|
2930
|
+
}
|
|
2931
|
+
if (requestParameters["$filter"] != null) {
|
|
2932
|
+
queryParameters["$filter"] = requestParameters["$filter"];
|
|
2933
|
+
}
|
|
2934
|
+
if (requestParameters["$orderby"] != null) {
|
|
2935
|
+
queryParameters["$orderby"] = requestParameters["$orderby"];
|
|
2936
|
+
}
|
|
2937
|
+
if (requestParameters["$top"] != null) {
|
|
2938
|
+
queryParameters["$top"] = requestParameters["$top"];
|
|
2939
|
+
}
|
|
2940
|
+
if (requestParameters["$skip"] != null) {
|
|
2941
|
+
queryParameters["$skip"] = requestParameters["$skip"];
|
|
2942
|
+
}
|
|
2943
|
+
if (requestParameters["$count"] != null) {
|
|
2944
|
+
queryParameters["$count"] = requestParameters["$count"];
|
|
2945
|
+
}
|
|
2946
|
+
const headerParameters = {};
|
|
2947
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2948
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
2949
|
+
}
|
|
2950
|
+
let urlPath = `/odata/Folders/UiPath.Server.Configuration.OData.GetUsersForFolder(key={key},includeInherited={includeInherited})`;
|
|
2951
|
+
urlPath = urlPath.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"])));
|
|
2952
|
+
urlPath = urlPath.replace(`{${"includeInherited"}}`, encodeURIComponent(String(requestParameters["includeInherited"])));
|
|
2953
|
+
const response = await this.request({
|
|
2954
|
+
path: urlPath,
|
|
2955
|
+
method: "GET",
|
|
2956
|
+
headers: headerParameters,
|
|
2957
|
+
query: queryParameters
|
|
2958
|
+
}, initOverrides);
|
|
2959
|
+
return new JSONApiResponse(response, (jsonValue) => ODataValueOfIEnumerableOfUserRolesDtoFromJSON(jsonValue));
|
|
2960
|
+
}
|
|
2961
|
+
async foldersGetUsersForFolderByKeyAndIncludeinherited(requestParameters, initOverrides) {
|
|
2962
|
+
const response = await this.foldersGetUsersForFolderByKeyAndIncludeinheritedRaw(requestParameters, initOverrides);
|
|
2963
|
+
return await response.value();
|
|
2964
|
+
}
|
|
2965
|
+
async foldersGetUsersToAssignByFolderidRaw(requestParameters, initOverrides) {
|
|
2966
|
+
if (requestParameters["folderId"] == null) {
|
|
2967
|
+
throw new RequiredError("folderId", 'Required parameter "folderId" was null or undefined when calling foldersGetUsersToAssignByFolderid().');
|
|
2968
|
+
}
|
|
2969
|
+
const queryParameters = {};
|
|
2970
|
+
if (requestParameters["$select"] != null) {
|
|
2971
|
+
queryParameters["$select"] = requestParameters["$select"];
|
|
2972
|
+
}
|
|
2973
|
+
if (requestParameters["$expand"] != null) {
|
|
2974
|
+
queryParameters["$expand"] = requestParameters["$expand"];
|
|
2975
|
+
}
|
|
2976
|
+
if (requestParameters["$filter"] != null) {
|
|
2977
|
+
queryParameters["$filter"] = requestParameters["$filter"];
|
|
2978
|
+
}
|
|
2979
|
+
if (requestParameters["$orderby"] != null) {
|
|
2980
|
+
queryParameters["$orderby"] = requestParameters["$orderby"];
|
|
2981
|
+
}
|
|
2982
|
+
if (requestParameters["$top"] != null) {
|
|
2983
|
+
queryParameters["$top"] = requestParameters["$top"];
|
|
2984
|
+
}
|
|
2985
|
+
if (requestParameters["$skip"] != null) {
|
|
2986
|
+
queryParameters["$skip"] = requestParameters["$skip"];
|
|
2987
|
+
}
|
|
2988
|
+
if (requestParameters["$count"] != null) {
|
|
2989
|
+
queryParameters["$count"] = requestParameters["$count"];
|
|
2990
|
+
}
|
|
2991
|
+
const headerParameters = {};
|
|
2992
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2993
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
2994
|
+
}
|
|
2995
|
+
let urlPath = `/odata/Folders/UiPath.Server.Configuration.OData.GetUsersToAssign(folderId={folderId})`;
|
|
2996
|
+
urlPath = urlPath.replace(`{${"folderId"}}`, encodeURIComponent(String(requestParameters["folderId"])));
|
|
2997
|
+
const response = await this.request({
|
|
2998
|
+
path: urlPath,
|
|
2999
|
+
method: "GET",
|
|
3000
|
+
headers: headerParameters,
|
|
3001
|
+
query: queryParameters
|
|
3002
|
+
}, initOverrides);
|
|
3003
|
+
return new JSONApiResponse(response, (jsonValue) => ODataValueOfIEnumerableOfSearchUserDtoFromJSON(jsonValue));
|
|
3004
|
+
}
|
|
3005
|
+
async foldersGetUsersToAssignByFolderid(requestParameters, initOverrides) {
|
|
3006
|
+
const response = await this.foldersGetUsersToAssignByFolderidRaw(requestParameters, initOverrides);
|
|
3007
|
+
return await response.value();
|
|
3008
|
+
}
|
|
3009
|
+
async foldersMoveFolderByFolderidRaw(requestParameters, initOverrides) {
|
|
3010
|
+
if (requestParameters["folderId"] == null) {
|
|
3011
|
+
throw new RequiredError("folderId", 'Required parameter "folderId" was null or undefined when calling foldersMoveFolderByFolderid().');
|
|
3012
|
+
}
|
|
3013
|
+
const queryParameters = {};
|
|
3014
|
+
if (requestParameters["targetParentId"] != null) {
|
|
3015
|
+
queryParameters["targetParentId"] = requestParameters["targetParentId"];
|
|
3016
|
+
}
|
|
3017
|
+
const headerParameters = {};
|
|
3018
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3019
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
3020
|
+
}
|
|
3021
|
+
let urlPath = `/odata/Folders({folderId})/UiPath.Server.Configuration.OData.MoveFolder`;
|
|
3022
|
+
urlPath = urlPath.replace(`{${"folderId"}}`, encodeURIComponent(String(requestParameters["folderId"])));
|
|
3023
|
+
const response = await this.request({
|
|
3024
|
+
path: urlPath,
|
|
3025
|
+
method: "PUT",
|
|
3026
|
+
headers: headerParameters,
|
|
3027
|
+
query: queryParameters
|
|
3028
|
+
}, initOverrides);
|
|
3029
|
+
return new VoidApiResponse(response);
|
|
3030
|
+
}
|
|
3031
|
+
async foldersMoveFolderByFolderid(requestParameters, initOverrides) {
|
|
3032
|
+
await this.foldersMoveFolderByFolderidRaw(requestParameters, initOverrides);
|
|
3033
|
+
}
|
|
3034
|
+
async foldersPatchNameDescriptionRaw(requestParameters, initOverrides) {
|
|
3035
|
+
const queryParameters = {};
|
|
3036
|
+
if (requestParameters["key"] != null) {
|
|
3037
|
+
queryParameters["key"] = requestParameters["key"];
|
|
3038
|
+
}
|
|
3039
|
+
const headerParameters = {};
|
|
3040
|
+
headerParameters["Content-Type"] = "application/json";
|
|
3041
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3042
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
3043
|
+
}
|
|
3044
|
+
let urlPath = `/api/Folders/PatchNameDescription`;
|
|
3045
|
+
const response = await this.request({
|
|
3046
|
+
path: urlPath,
|
|
3047
|
+
method: "PATCH",
|
|
3048
|
+
headers: headerParameters,
|
|
3049
|
+
query: queryParameters,
|
|
3050
|
+
body: FolderUpdateNameDescriptionRequestToJSON(requestParameters["body"])
|
|
3051
|
+
}, initOverrides);
|
|
3052
|
+
return new VoidApiResponse(response);
|
|
3053
|
+
}
|
|
3054
|
+
async foldersPatchNameDescription(requestParameters = {}, initOverrides) {
|
|
3055
|
+
await this.foldersPatchNameDescriptionRaw(requestParameters, initOverrides);
|
|
3056
|
+
}
|
|
3057
|
+
async foldersPostRaw(requestParameters, initOverrides) {
|
|
3058
|
+
const queryParameters = {};
|
|
3059
|
+
const headerParameters = {};
|
|
3060
|
+
headerParameters["Content-Type"] = "application/json;odata.metadata=minimal;odata.streaming=true";
|
|
3061
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3062
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
3063
|
+
}
|
|
3064
|
+
let urlPath = `/odata/Folders`;
|
|
3065
|
+
const response = await this.request({
|
|
3066
|
+
path: urlPath,
|
|
3067
|
+
method: "POST",
|
|
3068
|
+
headers: headerParameters,
|
|
3069
|
+
query: queryParameters,
|
|
3070
|
+
body: FolderDtoToJSON(requestParameters["body"])
|
|
3071
|
+
}, initOverrides);
|
|
3072
|
+
return new JSONApiResponse(response, (jsonValue) => FolderDtoFromJSON(jsonValue));
|
|
3073
|
+
}
|
|
3074
|
+
async foldersPost(requestParameters = {}, initOverrides) {
|
|
3075
|
+
const response = await this.foldersPostRaw(requestParameters, initOverrides);
|
|
3076
|
+
return await response.value();
|
|
3077
|
+
}
|
|
3078
|
+
async foldersProvisionSAPSystemFolderRaw(initOverrides) {
|
|
3079
|
+
const queryParameters = {};
|
|
3080
|
+
const headerParameters = {};
|
|
3081
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3082
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
3083
|
+
}
|
|
3084
|
+
let urlPath = `/api/Folders/ProvisionSAPSystemFolder`;
|
|
3085
|
+
const response = await this.request({
|
|
3086
|
+
path: urlPath,
|
|
3087
|
+
method: "POST",
|
|
3088
|
+
headers: headerParameters,
|
|
3089
|
+
query: queryParameters
|
|
3090
|
+
}, initOverrides);
|
|
3091
|
+
return new VoidApiResponse(response);
|
|
3092
|
+
}
|
|
3093
|
+
async foldersProvisionSAPSystemFolder(initOverrides) {
|
|
3094
|
+
await this.foldersProvisionSAPSystemFolderRaw(initOverrides);
|
|
3095
|
+
}
|
|
3096
|
+
async foldersPutByIdRaw(requestParameters, initOverrides) {
|
|
3097
|
+
if (requestParameters["key"] == null) {
|
|
3098
|
+
throw new RequiredError("key", 'Required parameter "key" was null or undefined when calling foldersPutById().');
|
|
3099
|
+
}
|
|
3100
|
+
const queryParameters = {};
|
|
3101
|
+
const headerParameters = {};
|
|
3102
|
+
headerParameters["Content-Type"] = "application/json;odata.metadata=minimal;odata.streaming=true";
|
|
3103
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3104
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
3105
|
+
}
|
|
3106
|
+
let urlPath = `/odata/Folders({key})`;
|
|
3107
|
+
urlPath = urlPath.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"])));
|
|
3108
|
+
const response = await this.request({
|
|
3109
|
+
path: urlPath,
|
|
3110
|
+
method: "PUT",
|
|
3111
|
+
headers: headerParameters,
|
|
3112
|
+
query: queryParameters,
|
|
3113
|
+
body: FolderDtoToJSON(requestParameters["body"])
|
|
3114
|
+
}, initOverrides);
|
|
3115
|
+
return new JSONApiResponse(response, (jsonValue) => FolderDtoFromJSON(jsonValue));
|
|
3116
|
+
}
|
|
3117
|
+
async foldersPutById(requestParameters, initOverrides) {
|
|
3118
|
+
const response = await this.foldersPutByIdRaw(requestParameters, initOverrides);
|
|
3119
|
+
return await response.value();
|
|
3120
|
+
}
|
|
3121
|
+
async foldersRemoveMachinesFromFolderByIdRaw(requestParameters, initOverrides) {
|
|
3122
|
+
if (requestParameters["key"] == null) {
|
|
3123
|
+
throw new RequiredError("key", 'Required parameter "key" was null or undefined when calling foldersRemoveMachinesFromFolderById().');
|
|
3124
|
+
}
|
|
3125
|
+
const queryParameters = {};
|
|
3126
|
+
const headerParameters = {};
|
|
3127
|
+
headerParameters["Content-Type"] = "application/json;odata.metadata=minimal;odata.streaming=true";
|
|
3128
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3129
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
3130
|
+
}
|
|
3131
|
+
let urlPath = `/odata/Folders({key})/UiPath.Server.Configuration.OData.RemoveMachinesFromFolder`;
|
|
3132
|
+
urlPath = urlPath.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"])));
|
|
3133
|
+
const response = await this.request({
|
|
3134
|
+
path: urlPath,
|
|
3135
|
+
method: "POST",
|
|
3136
|
+
headers: headerParameters,
|
|
3137
|
+
query: queryParameters,
|
|
3138
|
+
body: RemoveMachinesFromFolderRequestToJSON(requestParameters["body"])
|
|
3139
|
+
}, initOverrides);
|
|
3140
|
+
return new VoidApiResponse(response);
|
|
3141
|
+
}
|
|
3142
|
+
async foldersRemoveMachinesFromFolderById(requestParameters, initOverrides) {
|
|
3143
|
+
await this.foldersRemoveMachinesFromFolderByIdRaw(requestParameters, initOverrides);
|
|
3144
|
+
}
|
|
3145
|
+
async foldersRemoveUserFromFolderByIdRaw(requestParameters, initOverrides) {
|
|
3146
|
+
if (requestParameters["key"] == null) {
|
|
3147
|
+
throw new RequiredError("key", 'Required parameter "key" was null or undefined when calling foldersRemoveUserFromFolderById().');
|
|
3148
|
+
}
|
|
3149
|
+
const queryParameters = {};
|
|
3150
|
+
const headerParameters = {};
|
|
3151
|
+
headerParameters["Content-Type"] = "application/json;odata.metadata=minimal;odata.streaming=true";
|
|
3152
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3153
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
3154
|
+
}
|
|
3155
|
+
let urlPath = `/odata/Folders({key})/UiPath.Server.Configuration.OData.RemoveUserFromFolder`;
|
|
3156
|
+
urlPath = urlPath.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"])));
|
|
3157
|
+
const response = await this.request({
|
|
3158
|
+
path: urlPath,
|
|
3159
|
+
method: "POST",
|
|
3160
|
+
headers: headerParameters,
|
|
3161
|
+
query: queryParameters,
|
|
3162
|
+
body: RemoveUserFromFolderRequestToJSON(requestParameters["body"])
|
|
3163
|
+
}, initOverrides);
|
|
3164
|
+
return new VoidApiResponse(response);
|
|
3165
|
+
}
|
|
3166
|
+
async foldersRemoveUserFromFolderById(requestParameters, initOverrides) {
|
|
3167
|
+
await this.foldersRemoveUserFromFolderByIdRaw(requestParameters, initOverrides);
|
|
3168
|
+
}
|
|
3169
|
+
async foldersRemoveUserFromFolderByKeyRaw(requestParameters, initOverrides) {
|
|
3170
|
+
if (requestParameters["key"] == null) {
|
|
3171
|
+
throw new RequiredError("key", 'Required parameter "key" was null or undefined when calling foldersRemoveUserFromFolderByKey().');
|
|
3172
|
+
}
|
|
3173
|
+
const queryParameters = {};
|
|
3174
|
+
const headerParameters = {};
|
|
3175
|
+
headerParameters["Content-Type"] = "application/json;odata.metadata=minimal;odata.streaming=true";
|
|
3176
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3177
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
3178
|
+
}
|
|
3179
|
+
let urlPath = `/odata/Folders({key})/UiPath.Server.Configuration.OData.RemoveUserFromFolderByKey`;
|
|
3180
|
+
urlPath = urlPath.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"])));
|
|
3181
|
+
const response = await this.request({
|
|
3182
|
+
path: urlPath,
|
|
3183
|
+
method: "POST",
|
|
3184
|
+
headers: headerParameters,
|
|
3185
|
+
query: queryParameters,
|
|
3186
|
+
body: RemoveUserByKeyFromFolderRequestToJSON(requestParameters["body"])
|
|
3187
|
+
}, initOverrides);
|
|
3188
|
+
return new VoidApiResponse(response);
|
|
3189
|
+
}
|
|
3190
|
+
async foldersRemoveUserFromFolderByKey(requestParameters, initOverrides) {
|
|
3191
|
+
await this.foldersRemoveUserFromFolderByKeyRaw(requestParameters, initOverrides);
|
|
3192
|
+
}
|
|
3193
|
+
async foldersSetMachineRobotsRaw(requestParameters, initOverrides) {
|
|
3194
|
+
const queryParameters = {};
|
|
3195
|
+
const headerParameters = {};
|
|
3196
|
+
headerParameters["Content-Type"] = "application/json;odata.metadata=minimal;odata.streaming=true";
|
|
3197
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3198
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
3199
|
+
}
|
|
3200
|
+
let urlPath = `/odata/Folders/UiPath.Server.Configuration.OData.SetMachineRobots`;
|
|
3201
|
+
const response = await this.request({
|
|
3202
|
+
path: urlPath,
|
|
3203
|
+
method: "POST",
|
|
3204
|
+
headers: headerParameters,
|
|
3205
|
+
query: queryParameters,
|
|
3206
|
+
body: FolderMachineRobotsDtoToJSON(requestParameters["body"])
|
|
3207
|
+
}, initOverrides);
|
|
3208
|
+
return new VoidApiResponse(response);
|
|
3209
|
+
}
|
|
3210
|
+
async foldersSetMachineRobots(requestParameters = {}, initOverrides) {
|
|
3211
|
+
await this.foldersSetMachineRobotsRaw(requestParameters, initOverrides);
|
|
3212
|
+
}
|
|
3213
|
+
async foldersToggleFolderMachineInheritRaw(requestParameters, initOverrides) {
|
|
3214
|
+
const queryParameters = {};
|
|
3215
|
+
const headerParameters = {};
|
|
3216
|
+
headerParameters["Content-Type"] = "application/json;odata.metadata=minimal;odata.streaming=true";
|
|
3217
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3218
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
3219
|
+
}
|
|
3220
|
+
let urlPath = `/odata/Folders/UiPath.Server.Configuration.OData.ToggleFolderMachineInherit`;
|
|
3221
|
+
const response = await this.request({
|
|
3222
|
+
path: urlPath,
|
|
3223
|
+
method: "POST",
|
|
3224
|
+
headers: headerParameters,
|
|
3225
|
+
query: queryParameters,
|
|
3226
|
+
body: FolderMachineInheritDtoToJSON(requestParameters["body"])
|
|
3227
|
+
}, initOverrides);
|
|
3228
|
+
return new VoidApiResponse(response);
|
|
3229
|
+
}
|
|
3230
|
+
async foldersToggleFolderMachineInherit(requestParameters = {}, initOverrides) {
|
|
3231
|
+
await this.foldersToggleFolderMachineInheritRaw(requestParameters, initOverrides);
|
|
3232
|
+
}
|
|
3233
|
+
async foldersUpdateMachinesToFolderAssociationsRaw(requestParameters, initOverrides) {
|
|
3234
|
+
const queryParameters = {};
|
|
3235
|
+
const headerParameters = {};
|
|
3236
|
+
headerParameters["Content-Type"] = "application/json;odata.metadata=minimal;odata.streaming=true";
|
|
3237
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3238
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
3239
|
+
}
|
|
3240
|
+
let urlPath = `/odata/Folders/UiPath.Server.Configuration.OData.UpdateMachinesToFolderAssociations`;
|
|
3241
|
+
const response = await this.request({
|
|
3242
|
+
path: urlPath,
|
|
3243
|
+
method: "POST",
|
|
3244
|
+
headers: headerParameters,
|
|
3245
|
+
query: queryParameters,
|
|
3246
|
+
body: UpdateMachinesToFolderAssociationsRequestToJSON(requestParameters["body"])
|
|
3247
|
+
}, initOverrides);
|
|
3248
|
+
return new VoidApiResponse(response);
|
|
3249
|
+
}
|
|
3250
|
+
async foldersUpdateMachinesToFolderAssociations(requestParameters = {}, initOverrides) {
|
|
3251
|
+
await this.foldersUpdateMachinesToFolderAssociationsRaw(requestParameters, initOverrides);
|
|
3252
|
+
}
|
|
3253
|
+
}
|
|
3254
|
+
|
|
3255
|
+
// ../orchestrator-sdk/generated/src/apis/JobsApi.ts
|
|
3256
|
+
class JobsApi extends BaseAPI {
|
|
3257
|
+
async jobsCreateTestAutomationJobsRaw(requestParameters, initOverrides) {
|
|
3258
|
+
const queryParameters = {};
|
|
3259
|
+
const headerParameters = {};
|
|
3260
|
+
headerParameters["Content-Type"] = "application/json";
|
|
3261
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3262
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
3263
|
+
}
|
|
3264
|
+
let urlPath = `/api/Jobs/CreateTestAutomationJobs`;
|
|
3265
|
+
const response = await this.request({
|
|
3266
|
+
path: urlPath,
|
|
3267
|
+
method: "POST",
|
|
3268
|
+
headers: headerParameters,
|
|
3269
|
+
query: queryParameters,
|
|
3270
|
+
body: CreateTestAutomationJobsRequestToJSON(requestParameters["body"])
|
|
3271
|
+
}, initOverrides);
|
|
3272
|
+
return new JSONApiResponse(response, (jsonValue) => jsonValue.map(JobDtoFromJSON));
|
|
3273
|
+
}
|
|
3274
|
+
async jobsCreateTestAutomationJobs(requestParameters = {}, initOverrides) {
|
|
3275
|
+
const response = await this.jobsCreateTestAutomationJobsRaw(requestParameters, initOverrides);
|
|
3276
|
+
return await response.value();
|
|
3277
|
+
}
|
|
3278
|
+
async jobsExportRaw(requestParameters, initOverrides) {
|
|
3279
|
+
const queryParameters = {};
|
|
3280
|
+
if (requestParameters["$select"] != null) {
|
|
3281
|
+
queryParameters["$select"] = requestParameters["$select"];
|
|
3282
|
+
}
|
|
3283
|
+
if (requestParameters["$expand"] != null) {
|
|
3284
|
+
queryParameters["$expand"] = requestParameters["$expand"];
|
|
3285
|
+
}
|
|
3286
|
+
if (requestParameters["$filter"] != null) {
|
|
3287
|
+
queryParameters["$filter"] = requestParameters["$filter"];
|
|
3288
|
+
}
|
|
3289
|
+
if (requestParameters["$orderby"] != null) {
|
|
3290
|
+
queryParameters["$orderby"] = requestParameters["$orderby"];
|
|
3291
|
+
}
|
|
3292
|
+
if (requestParameters["$top"] != null) {
|
|
3293
|
+
queryParameters["$top"] = requestParameters["$top"];
|
|
3294
|
+
}
|
|
3295
|
+
if (requestParameters["$skip"] != null) {
|
|
3296
|
+
queryParameters["$skip"] = requestParameters["$skip"];
|
|
3297
|
+
}
|
|
3298
|
+
if (requestParameters["$count"] != null) {
|
|
3299
|
+
queryParameters["$count"] = requestParameters["$count"];
|
|
3300
|
+
}
|
|
3301
|
+
const headerParameters = {};
|
|
3302
|
+
if (requestParameters["xUIPATHOrganizationUnitId"] != null) {
|
|
3303
|
+
headerParameters["X-UIPATH-OrganizationUnitId"] = String(requestParameters["xUIPATHOrganizationUnitId"]);
|
|
3304
|
+
}
|
|
3305
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3306
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
3307
|
+
}
|
|
3308
|
+
let urlPath = `/odata/Jobs/UiPath.Server.Configuration.OData.Export`;
|
|
3309
|
+
const response = await this.request({
|
|
3310
|
+
path: urlPath,
|
|
3311
|
+
method: "POST",
|
|
3312
|
+
headers: headerParameters,
|
|
3313
|
+
query: queryParameters
|
|
3314
|
+
}, initOverrides);
|
|
3315
|
+
return new JSONApiResponse(response, (jsonValue) => ExportModelFromJSON(jsonValue));
|
|
3316
|
+
}
|
|
3317
|
+
async jobsExport(requestParameters = {}, initOverrides) {
|
|
3318
|
+
const response = await this.jobsExportRaw(requestParameters, initOverrides);
|
|
3319
|
+
return await response.value();
|
|
3320
|
+
}
|
|
3321
|
+
async jobsFireTriggersForTasksRaw(requestParameters, initOverrides) {
|
|
3322
|
+
const queryParameters = {};
|
|
3323
|
+
const headerParameters = {};
|
|
3324
|
+
headerParameters["Content-Type"] = "application/json;odata.metadata=minimal;odata.streaming=true";
|
|
3325
|
+
if (requestParameters["xUIPATHOrganizationUnitId"] != null) {
|
|
3326
|
+
headerParameters["X-UIPATH-OrganizationUnitId"] = String(requestParameters["xUIPATHOrganizationUnitId"]);
|
|
3327
|
+
}
|
|
3328
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3329
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
3330
|
+
}
|
|
3331
|
+
let urlPath = `/odata/Jobs/UiPath.Server.Configuration.OData.FireTriggersForTasks`;
|
|
3332
|
+
const response = await this.request({
|
|
3333
|
+
path: urlPath,
|
|
3334
|
+
method: "POST",
|
|
3335
|
+
headers: headerParameters,
|
|
3336
|
+
query: queryParameters,
|
|
3337
|
+
body: FireTriggersForTasksRequestToJSON(requestParameters["body"])
|
|
3338
|
+
}, initOverrides);
|
|
3339
|
+
return new VoidApiResponse(response);
|
|
3340
|
+
}
|
|
3341
|
+
async jobsFireTriggersForTasks(requestParameters = {}, initOverrides) {
|
|
3342
|
+
await this.jobsFireTriggersForTasksRaw(requestParameters, initOverrides);
|
|
3343
|
+
}
|
|
3344
|
+
async jobsForceStopJobsRaw(requestParameters, initOverrides) {
|
|
3345
|
+
const queryParameters = {};
|
|
3346
|
+
if (requestParameters["$select"] != null) {
|
|
3347
|
+
queryParameters["$select"] = requestParameters["$select"];
|
|
3348
|
+
}
|
|
3349
|
+
if (requestParameters["$expand"] != null) {
|
|
3350
|
+
queryParameters["$expand"] = requestParameters["$expand"];
|
|
3351
|
+
}
|
|
3352
|
+
if (requestParameters["$filter"] != null) {
|
|
3353
|
+
queryParameters["$filter"] = requestParameters["$filter"];
|
|
3354
|
+
}
|
|
3355
|
+
if (requestParameters["$orderby"] != null) {
|
|
3356
|
+
queryParameters["$orderby"] = requestParameters["$orderby"];
|
|
3357
|
+
}
|
|
3358
|
+
if (requestParameters["$count"] != null) {
|
|
3359
|
+
queryParameters["$count"] = requestParameters["$count"];
|
|
3360
|
+
}
|
|
3361
|
+
const headerParameters = {};
|
|
3362
|
+
headerParameters["Content-Type"] = "application/json;odata.metadata=minimal;odata.streaming=true";
|
|
3363
|
+
if (requestParameters["xUIPATHOrganizationUnitId"] != null) {
|
|
3364
|
+
headerParameters["X-UIPATH-OrganizationUnitId"] = String(requestParameters["xUIPATHOrganizationUnitId"]);
|
|
3365
|
+
}
|
|
3366
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3367
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
3368
|
+
}
|
|
3369
|
+
let urlPath = `/odata/Jobs/UiPath.Server.Configuration.OData.ForceStopJobs`;
|
|
3370
|
+
const response = await this.request({
|
|
3371
|
+
path: urlPath,
|
|
3372
|
+
method: "POST",
|
|
3373
|
+
headers: headerParameters,
|
|
3374
|
+
query: queryParameters,
|
|
3375
|
+
body: ForceStopJobsRequestToJSON(requestParameters["body"])
|
|
3376
|
+
}, initOverrides);
|
|
3377
|
+
return new JSONApiResponse(response, (jsonValue) => ODataValueOfIEnumerableOfJobDtoFromJSON(jsonValue));
|
|
3378
|
+
}
|
|
3379
|
+
async jobsForceStopJobs(requestParameters = {}, initOverrides) {
|
|
3380
|
+
const response = await this.jobsForceStopJobsRaw(requestParameters, initOverrides);
|
|
3381
|
+
return await response.value();
|
|
3382
|
+
}
|
|
3383
|
+
async jobsGetRaw(requestParameters, initOverrides) {
|
|
3384
|
+
const queryParameters = {};
|
|
3385
|
+
if (requestParameters["mandatoryPermissions"] != null) {
|
|
3386
|
+
queryParameters["mandatoryPermissions"] = requestParameters["mandatoryPermissions"];
|
|
3387
|
+
}
|
|
3388
|
+
if (requestParameters["atLeastOnePermissions"] != null) {
|
|
3389
|
+
queryParameters["atLeastOnePermissions"] = requestParameters["atLeastOnePermissions"];
|
|
3390
|
+
}
|
|
3391
|
+
if (requestParameters["$select"] != null) {
|
|
3392
|
+
queryParameters["$select"] = requestParameters["$select"];
|
|
3393
|
+
}
|
|
3394
|
+
if (requestParameters["$expand"] != null) {
|
|
3395
|
+
queryParameters["$expand"] = requestParameters["$expand"];
|
|
3396
|
+
}
|
|
3397
|
+
if (requestParameters["$filter"] != null) {
|
|
3398
|
+
queryParameters["$filter"] = requestParameters["$filter"];
|
|
3399
|
+
}
|
|
3400
|
+
if (requestParameters["$orderby"] != null) {
|
|
3401
|
+
queryParameters["$orderby"] = requestParameters["$orderby"];
|
|
3402
|
+
}
|
|
3403
|
+
if (requestParameters["$top"] != null) {
|
|
3404
|
+
queryParameters["$top"] = requestParameters["$top"];
|
|
3405
|
+
}
|
|
3406
|
+
if (requestParameters["$skip"] != null) {
|
|
3407
|
+
queryParameters["$skip"] = requestParameters["$skip"];
|
|
3408
|
+
}
|
|
3409
|
+
if (requestParameters["$count"] != null) {
|
|
3410
|
+
queryParameters["$count"] = requestParameters["$count"];
|
|
3411
|
+
}
|
|
3412
|
+
const headerParameters = {};
|
|
3413
|
+
if (requestParameters["xUIPATHOrganizationUnitId"] != null) {
|
|
3414
|
+
headerParameters["X-UIPATH-OrganizationUnitId"] = String(requestParameters["xUIPATHOrganizationUnitId"]);
|
|
3415
|
+
}
|
|
3416
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3417
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
3418
|
+
}
|
|
3419
|
+
let urlPath = `/odata/Jobs`;
|
|
3420
|
+
const response = await this.request({
|
|
3421
|
+
path: urlPath,
|
|
3422
|
+
method: "GET",
|
|
3423
|
+
headers: headerParameters,
|
|
3424
|
+
query: queryParameters
|
|
3425
|
+
}, initOverrides);
|
|
3426
|
+
return new JSONApiResponse(response, (jsonValue) => ODataValueOfIEnumerableOfJobDtoFromJSON(jsonValue));
|
|
3427
|
+
}
|
|
3428
|
+
async jobsGet(requestParameters = {}, initOverrides) {
|
|
3429
|
+
const response = await this.jobsGetRaw(requestParameters, initOverrides);
|
|
3430
|
+
return await response.value();
|
|
3431
|
+
}
|
|
3432
|
+
async jobsGetArgumentsSchemaByKeyByIdentifierRaw(requestParameters, initOverrides) {
|
|
3433
|
+
if (requestParameters["identifier"] == null) {
|
|
3434
|
+
throw new RequiredError("identifier", 'Required parameter "identifier" was null or undefined when calling jobsGetArgumentsSchemaByKeyByIdentifier().');
|
|
3435
|
+
}
|
|
3436
|
+
const queryParameters = {};
|
|
3437
|
+
if (requestParameters["$select"] != null) {
|
|
3438
|
+
queryParameters["$select"] = requestParameters["$select"];
|
|
3439
|
+
}
|
|
3440
|
+
if (requestParameters["$expand"] != null) {
|
|
3441
|
+
queryParameters["$expand"] = requestParameters["$expand"];
|
|
3442
|
+
}
|
|
3443
|
+
const headerParameters = {};
|
|
3444
|
+
if (requestParameters["xUIPATHOrganizationUnitId"] != null) {
|
|
3445
|
+
headerParameters["X-UIPATH-OrganizationUnitId"] = String(requestParameters["xUIPATHOrganizationUnitId"]);
|
|
3446
|
+
}
|
|
3447
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3448
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
3449
|
+
}
|
|
3450
|
+
let urlPath = `/odata/Jobs/UiPath.Server.Configuration.OData.GetArgumentsSchemaByKey(identifier={identifier})`;
|
|
3451
|
+
urlPath = urlPath.replace(`{${"identifier"}}`, encodeURIComponent(String(requestParameters["identifier"])));
|
|
3452
|
+
const response = await this.request({
|
|
3453
|
+
path: urlPath,
|
|
3454
|
+
method: "GET",
|
|
3455
|
+
headers: headerParameters,
|
|
3456
|
+
query: queryParameters
|
|
3457
|
+
}, initOverrides);
|
|
3458
|
+
return new JSONApiResponse(response, (jsonValue) => JobArgumentsSchemaDtoFromJSON(jsonValue));
|
|
3459
|
+
}
|
|
3460
|
+
async jobsGetArgumentsSchemaByKeyByIdentifier(requestParameters, initOverrides) {
|
|
3461
|
+
const response = await this.jobsGetArgumentsSchemaByKeyByIdentifierRaw(requestParameters, initOverrides);
|
|
3462
|
+
return await response.value();
|
|
3463
|
+
}
|
|
3464
|
+
async jobsGetByIdRaw(requestParameters, initOverrides) {
|
|
3465
|
+
if (requestParameters["key"] == null) {
|
|
3466
|
+
throw new RequiredError("key", 'Required parameter "key" was null or undefined when calling jobsGetById().');
|
|
3467
|
+
}
|
|
3468
|
+
const queryParameters = {};
|
|
3469
|
+
if (requestParameters["$select"] != null) {
|
|
3470
|
+
queryParameters["$select"] = requestParameters["$select"];
|
|
3471
|
+
}
|
|
3472
|
+
if (requestParameters["$expand"] != null) {
|
|
3473
|
+
queryParameters["$expand"] = requestParameters["$expand"];
|
|
3474
|
+
}
|
|
3475
|
+
const headerParameters = {};
|
|
3476
|
+
if (requestParameters["xUIPATHOrganizationUnitId"] != null) {
|
|
3477
|
+
headerParameters["X-UIPATH-OrganizationUnitId"] = String(requestParameters["xUIPATHOrganizationUnitId"]);
|
|
3478
|
+
}
|
|
3479
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3480
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
3481
|
+
}
|
|
3482
|
+
let urlPath = `/odata/Jobs({key})`;
|
|
3483
|
+
urlPath = urlPath.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"])));
|
|
3484
|
+
const response = await this.request({
|
|
3485
|
+
path: urlPath,
|
|
3486
|
+
method: "GET",
|
|
3487
|
+
headers: headerParameters,
|
|
3488
|
+
query: queryParameters
|
|
3489
|
+
}, initOverrides);
|
|
3490
|
+
return new JSONApiResponse(response, (jsonValue) => JobDtoFromJSON(jsonValue));
|
|
3491
|
+
}
|
|
3492
|
+
async jobsGetById(requestParameters, initOverrides) {
|
|
3493
|
+
const response = await this.jobsGetByIdRaw(requestParameters, initOverrides);
|
|
3494
|
+
return await response.value();
|
|
3495
|
+
}
|
|
3496
|
+
async jobsGetByKeyByIdentifierRaw(requestParameters, initOverrides) {
|
|
3497
|
+
if (requestParameters["identifier"] == null) {
|
|
3498
|
+
throw new RequiredError("identifier", 'Required parameter "identifier" was null or undefined when calling jobsGetByKeyByIdentifier().');
|
|
3499
|
+
}
|
|
3500
|
+
const queryParameters = {};
|
|
3501
|
+
if (requestParameters["$select"] != null) {
|
|
3502
|
+
queryParameters["$select"] = requestParameters["$select"];
|
|
3503
|
+
}
|
|
3504
|
+
if (requestParameters["$expand"] != null) {
|
|
3505
|
+
queryParameters["$expand"] = requestParameters["$expand"];
|
|
3506
|
+
}
|
|
3507
|
+
const headerParameters = {};
|
|
3508
|
+
if (requestParameters["xUIPATHOrganizationUnitId"] != null) {
|
|
3509
|
+
headerParameters["X-UIPATH-OrganizationUnitId"] = String(requestParameters["xUIPATHOrganizationUnitId"]);
|
|
3510
|
+
}
|
|
3511
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3512
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
3513
|
+
}
|
|
3514
|
+
let urlPath = `/odata/Jobs/UiPath.Server.Configuration.OData.GetByKey(identifier={identifier})`;
|
|
3515
|
+
urlPath = urlPath.replace(`{${"identifier"}}`, encodeURIComponent(String(requestParameters["identifier"])));
|
|
3516
|
+
const response = await this.request({
|
|
3517
|
+
path: urlPath,
|
|
3518
|
+
method: "GET",
|
|
3519
|
+
headers: headerParameters,
|
|
3520
|
+
query: queryParameters
|
|
3521
|
+
}, initOverrides);
|
|
3522
|
+
return new JSONApiResponse(response, (jsonValue) => JobDtoFromJSON(jsonValue));
|
|
3523
|
+
}
|
|
3524
|
+
async jobsGetByKeyByIdentifier(requestParameters, initOverrides) {
|
|
3525
|
+
const response = await this.jobsGetByKeyByIdentifierRaw(requestParameters, initOverrides);
|
|
3526
|
+
return await response.value();
|
|
3527
|
+
}
|
|
3528
|
+
async jobsGetJobGraphRaw(requestParameters, initOverrides) {
|
|
3529
|
+
if (requestParameters["jobKey"] == null) {
|
|
3530
|
+
throw new RequiredError("jobKey", 'Required parameter "jobKey" was null or undefined when calling jobsGetJobGraph().');
|
|
3531
|
+
}
|
|
3532
|
+
const queryParameters = {};
|
|
3533
|
+
if (requestParameters["jobKey"] != null) {
|
|
3534
|
+
queryParameters["jobKey"] = requestParameters["jobKey"];
|
|
3535
|
+
}
|
|
3536
|
+
const headerParameters = {};
|
|
3537
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3538
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
3539
|
+
}
|
|
3540
|
+
let urlPath = `/api/Jobs/GetJobGraph`;
|
|
3541
|
+
const response = await this.request({
|
|
3542
|
+
path: urlPath,
|
|
3543
|
+
method: "GET",
|
|
3544
|
+
headers: headerParameters,
|
|
3545
|
+
query: queryParameters
|
|
3546
|
+
}, initOverrides);
|
|
3547
|
+
return new JSONApiResponse(response, (jsonValue) => jsonValue.map(HierarchyJobDtoFromJSON));
|
|
3548
|
+
}
|
|
3549
|
+
async jobsGetJobGraph(requestParameters, initOverrides) {
|
|
3550
|
+
const response = await this.jobsGetJobGraphRaw(requestParameters, initOverrides);
|
|
3551
|
+
return await response.value();
|
|
3552
|
+
}
|
|
3553
|
+
async jobsGetJobInfoRaw(requestParameters, initOverrides) {
|
|
3554
|
+
const queryParameters = {};
|
|
3555
|
+
if (requestParameters["jobKey"] != null) {
|
|
3556
|
+
queryParameters["jobKey"] = requestParameters["jobKey"];
|
|
3557
|
+
}
|
|
3558
|
+
const headerParameters = {};
|
|
3559
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3560
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
3561
|
+
}
|
|
3562
|
+
let urlPath = `/api/Jobs/GetJobInfo`;
|
|
3563
|
+
const response = await this.request({
|
|
3564
|
+
path: urlPath,
|
|
3565
|
+
method: "GET",
|
|
3566
|
+
headers: headerParameters,
|
|
3567
|
+
query: queryParameters
|
|
3568
|
+
}, initOverrides);
|
|
3569
|
+
return new JSONApiResponse(response, (jsonValue) => JobStatusOutputInfoFromJSON(jsonValue));
|
|
3570
|
+
}
|
|
3571
|
+
async jobsGetJobInfo(requestParameters = {}, initOverrides) {
|
|
3572
|
+
const response = await this.jobsGetJobInfoRaw(requestParameters, initOverrides);
|
|
3573
|
+
return await response.value();
|
|
3574
|
+
}
|
|
3575
|
+
async jobsGetJobStateHistoryRaw(requestParameters, initOverrides) {
|
|
3576
|
+
if (requestParameters["jobKey"] == null) {
|
|
3577
|
+
throw new RequiredError("jobKey", 'Required parameter "jobKey" was null or undefined when calling jobsGetJobStateHistory().');
|
|
3578
|
+
}
|
|
3579
|
+
const queryParameters = {};
|
|
3580
|
+
if (requestParameters["jobKey"] != null) {
|
|
3581
|
+
queryParameters["jobKey"] = requestParameters["jobKey"];
|
|
3582
|
+
}
|
|
3583
|
+
const headerParameters = {};
|
|
3584
|
+
if (requestParameters["xUIPATHOrganizationUnitId"] != null) {
|
|
3585
|
+
headerParameters["X-UIPATH-OrganizationUnitId"] = String(requestParameters["xUIPATHOrganizationUnitId"]);
|
|
3586
|
+
}
|
|
3587
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3588
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
3589
|
+
}
|
|
3590
|
+
let urlPath = `/api/Jobs/GetJobStateHistory`;
|
|
3591
|
+
const response = await this.request({
|
|
3592
|
+
path: urlPath,
|
|
3593
|
+
method: "GET",
|
|
3594
|
+
headers: headerParameters,
|
|
3595
|
+
query: queryParameters
|
|
3596
|
+
}, initOverrides);
|
|
3597
|
+
return new JSONApiResponse(response, (jsonValue) => jsonValue.map(JobStateChangeDtoFromJSON));
|
|
3598
|
+
}
|
|
3599
|
+
async jobsGetJobStateHistory(requestParameters, initOverrides) {
|
|
3600
|
+
const response = await this.jobsGetJobStateHistoryRaw(requestParameters, initOverrides);
|
|
3601
|
+
return await response.value();
|
|
3602
|
+
}
|
|
3603
|
+
async jobsGetRunningJobsByMachineByMachineidAndHostmachinenameRaw(requestParameters, initOverrides) {
|
|
3604
|
+
if (requestParameters["machineId"] == null) {
|
|
3605
|
+
throw new RequiredError("machineId", 'Required parameter "machineId" was null or undefined when calling jobsGetRunningJobsByMachineByMachineidAndHostmachinename().');
|
|
3606
|
+
}
|
|
3607
|
+
if (requestParameters["hostMachineName"] == null) {
|
|
3608
|
+
throw new RequiredError("hostMachineName", 'Required parameter "hostMachineName" was null or undefined when calling jobsGetRunningJobsByMachineByMachineidAndHostmachinename().');
|
|
3609
|
+
}
|
|
3610
|
+
const queryParameters = {};
|
|
3611
|
+
if (requestParameters["serviceUserName"] != null) {
|
|
3612
|
+
queryParameters["serviceUserName"] = requestParameters["serviceUserName"];
|
|
3613
|
+
}
|
|
3614
|
+
if (requestParameters["$select"] != null) {
|
|
3615
|
+
queryParameters["$select"] = requestParameters["$select"];
|
|
3616
|
+
}
|
|
3617
|
+
if (requestParameters["$expand"] != null) {
|
|
3618
|
+
queryParameters["$expand"] = requestParameters["$expand"];
|
|
3619
|
+
}
|
|
3620
|
+
if (requestParameters["$filter"] != null) {
|
|
3621
|
+
queryParameters["$filter"] = requestParameters["$filter"];
|
|
3622
|
+
}
|
|
3623
|
+
if (requestParameters["$orderby"] != null) {
|
|
3624
|
+
queryParameters["$orderby"] = requestParameters["$orderby"];
|
|
3625
|
+
}
|
|
3626
|
+
if (requestParameters["$top"] != null) {
|
|
3627
|
+
queryParameters["$top"] = requestParameters["$top"];
|
|
3628
|
+
}
|
|
3629
|
+
if (requestParameters["$skip"] != null) {
|
|
3630
|
+
queryParameters["$skip"] = requestParameters["$skip"];
|
|
3631
|
+
}
|
|
3632
|
+
if (requestParameters["$count"] != null) {
|
|
3633
|
+
queryParameters["$count"] = requestParameters["$count"];
|
|
3634
|
+
}
|
|
3635
|
+
const headerParameters = {};
|
|
3636
|
+
if (requestParameters["xUIPATHOrganizationUnitId"] != null) {
|
|
3637
|
+
headerParameters["X-UIPATH-OrganizationUnitId"] = String(requestParameters["xUIPATHOrganizationUnitId"]);
|
|
3638
|
+
}
|
|
3639
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3640
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
3641
|
+
}
|
|
3642
|
+
let urlPath = `/odata/Jobs/UiPath.Server.Configuration.OData.GetRunningJobsByMachine(machineId={machineId},hostMachineName='{hostMachineName}')`;
|
|
3643
|
+
urlPath = urlPath.replace(`{${"machineId"}}`, encodeURIComponent(String(requestParameters["machineId"])));
|
|
3644
|
+
urlPath = urlPath.replace(`{${"hostMachineName"}}`, encodeURIComponent(String(requestParameters["hostMachineName"])));
|
|
3645
|
+
const response = await this.request({
|
|
3646
|
+
path: urlPath,
|
|
3647
|
+
method: "GET",
|
|
3648
|
+
headers: headerParameters,
|
|
3649
|
+
query: queryParameters
|
|
3650
|
+
}, initOverrides);
|
|
3651
|
+
return new JSONApiResponse(response, (jsonValue) => ODataValueOfIEnumerableOfRunningJobForSessisonDtoFromJSON(jsonValue));
|
|
3652
|
+
}
|
|
3653
|
+
async jobsGetRunningJobsByMachineByMachineidAndHostmachinename(requestParameters, initOverrides) {
|
|
3654
|
+
const response = await this.jobsGetRunningJobsByMachineByMachineidAndHostmachinenameRaw(requestParameters, initOverrides);
|
|
3655
|
+
return await response.value();
|
|
3656
|
+
}
|
|
3657
|
+
async jobsGetUserJobsRaw(requestParameters, initOverrides) {
|
|
3658
|
+
const queryParameters = {};
|
|
3659
|
+
if (requestParameters["packageId"] != null) {
|
|
3660
|
+
queryParameters["packageId"] = requestParameters["packageId"];
|
|
3661
|
+
}
|
|
3662
|
+
if (requestParameters["processKey"] != null) {
|
|
3663
|
+
queryParameters["processKey"] = requestParameters["processKey"];
|
|
3664
|
+
}
|
|
3665
|
+
if (requestParameters["fromStartTime"] != null) {
|
|
3666
|
+
queryParameters["fromStartTime"] = requestParameters["fromStartTime"].toISOString();
|
|
3667
|
+
}
|
|
3668
|
+
if (requestParameters["limit"] != null) {
|
|
3669
|
+
queryParameters["limit"] = requestParameters["limit"];
|
|
3670
|
+
}
|
|
3671
|
+
if (requestParameters["targetFramework"] != null) {
|
|
3672
|
+
queryParameters["targetFramework"] = requestParameters["targetFramework"];
|
|
3673
|
+
}
|
|
3674
|
+
if (requestParameters["orderDirection"] != null) {
|
|
3675
|
+
queryParameters["orderDirection"] = requestParameters["orderDirection"];
|
|
3676
|
+
}
|
|
3677
|
+
if (requestParameters["cursor"] != null) {
|
|
3678
|
+
queryParameters["cursor"] = requestParameters["cursor"];
|
|
3679
|
+
}
|
|
3680
|
+
if (requestParameters["jobState"] != null) {
|
|
3681
|
+
queryParameters["jobState"] = requestParameters["jobState"];
|
|
3682
|
+
}
|
|
3683
|
+
const headerParameters = {};
|
|
3684
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3685
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
3686
|
+
}
|
|
3687
|
+
let urlPath = `/api/Jobs/GetUserJobs`;
|
|
3688
|
+
const response = await this.request({
|
|
3689
|
+
path: urlPath,
|
|
3690
|
+
method: "GET",
|
|
3691
|
+
headers: headerParameters,
|
|
3692
|
+
query: queryParameters
|
|
3693
|
+
}, initOverrides);
|
|
3694
|
+
return new JSONApiResponse(response, (jsonValue) => CursorPaginationResultOfUserJobDtoFromJSON(jsonValue));
|
|
3695
|
+
}
|
|
3696
|
+
async jobsGetUserJobs(requestParameters = {}, initOverrides) {
|
|
3697
|
+
const response = await this.jobsGetUserJobsRaw(requestParameters, initOverrides);
|
|
3698
|
+
return await response.value();
|
|
3699
|
+
}
|
|
3700
|
+
async jobsHaveExecutionMediaRaw(requestParameters, initOverrides) {
|
|
3701
|
+
const queryParameters = {};
|
|
3702
|
+
const headerParameters = {};
|
|
3703
|
+
headerParameters["Content-Type"] = "application/json";
|
|
3704
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3705
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
3706
|
+
}
|
|
3707
|
+
let urlPath = `/api/Jobs/HaveExecutionMedia`;
|
|
3708
|
+
const response = await this.request({
|
|
3709
|
+
path: urlPath,
|
|
3710
|
+
method: "POST",
|
|
3711
|
+
headers: headerParameters,
|
|
3712
|
+
query: queryParameters,
|
|
3713
|
+
body: JobsHaveExecutionMediaRequestToJSON(requestParameters["body"])
|
|
3714
|
+
}, initOverrides);
|
|
3715
|
+
return new JSONApiResponse(response, (jsonValue) => mapValues(jsonValue, EntityHasExecutionMediaFromJSON));
|
|
3716
|
+
}
|
|
3717
|
+
async jobsHaveExecutionMedia(requestParameters = {}, initOverrides) {
|
|
3718
|
+
const response = await this.jobsHaveExecutionMediaRaw(requestParameters, initOverrides);
|
|
3719
|
+
return await response.value();
|
|
3720
|
+
}
|
|
3721
|
+
async jobsRestartJobRaw(requestParameters, initOverrides) {
|
|
3722
|
+
const queryParameters = {};
|
|
3723
|
+
if (requestParameters["$select"] != null) {
|
|
3724
|
+
queryParameters["$select"] = requestParameters["$select"];
|
|
3725
|
+
}
|
|
3726
|
+
if (requestParameters["$expand"] != null) {
|
|
3727
|
+
queryParameters["$expand"] = requestParameters["$expand"];
|
|
3728
|
+
}
|
|
3729
|
+
const headerParameters = {};
|
|
3730
|
+
headerParameters["Content-Type"] = "application/json;odata.metadata=minimal;odata.streaming=true";
|
|
3731
|
+
if (requestParameters["xUIPATHOrganizationUnitId"] != null) {
|
|
3732
|
+
headerParameters["X-UIPATH-OrganizationUnitId"] = String(requestParameters["xUIPATHOrganizationUnitId"]);
|
|
3733
|
+
}
|
|
3734
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3735
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
3736
|
+
}
|
|
3737
|
+
let urlPath = `/odata/Jobs/UiPath.Server.Configuration.OData.RestartJob`;
|
|
3738
|
+
const response = await this.request({
|
|
3739
|
+
path: urlPath,
|
|
3740
|
+
method: "POST",
|
|
3741
|
+
headers: headerParameters,
|
|
3742
|
+
query: queryParameters,
|
|
3743
|
+
body: RestartJobRequestToJSON(requestParameters["body"])
|
|
3744
|
+
}, initOverrides);
|
|
3745
|
+
return new JSONApiResponse(response, (jsonValue) => JobDtoFromJSON(jsonValue));
|
|
3746
|
+
}
|
|
3747
|
+
async jobsRestartJob(requestParameters = {}, initOverrides) {
|
|
3748
|
+
const response = await this.jobsRestartJobRaw(requestParameters, initOverrides);
|
|
3749
|
+
return await response.value();
|
|
3750
|
+
}
|
|
3751
|
+
async jobsResumeJobRaw(requestParameters, initOverrides) {
|
|
3752
|
+
const queryParameters = {};
|
|
3753
|
+
if (requestParameters["$select"] != null) {
|
|
3754
|
+
queryParameters["$select"] = requestParameters["$select"];
|
|
3755
|
+
}
|
|
3756
|
+
if (requestParameters["$expand"] != null) {
|
|
3757
|
+
queryParameters["$expand"] = requestParameters["$expand"];
|
|
3758
|
+
}
|
|
3759
|
+
const headerParameters = {};
|
|
3760
|
+
headerParameters["Content-Type"] = "application/json;odata.metadata=minimal;odata.streaming=true";
|
|
3761
|
+
if (requestParameters["xUIPATHOrganizationUnitId"] != null) {
|
|
3762
|
+
headerParameters["X-UIPATH-OrganizationUnitId"] = String(requestParameters["xUIPATHOrganizationUnitId"]);
|
|
3763
|
+
}
|
|
3764
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3765
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
3766
|
+
}
|
|
3767
|
+
let urlPath = `/odata/Jobs/UiPath.Server.Configuration.OData.ResumeJob`;
|
|
3768
|
+
const response = await this.request({
|
|
3769
|
+
path: urlPath,
|
|
3770
|
+
method: "POST",
|
|
3771
|
+
headers: headerParameters,
|
|
3772
|
+
query: queryParameters,
|
|
3773
|
+
body: ResumeJobRequestToJSON(requestParameters["body"])
|
|
3774
|
+
}, initOverrides);
|
|
3775
|
+
return new JSONApiResponse(response, (jsonValue) => JobDtoFromJSON(jsonValue));
|
|
3776
|
+
}
|
|
3777
|
+
async jobsResumeJob(requestParameters = {}, initOverrides) {
|
|
3778
|
+
const response = await this.jobsResumeJobRaw(requestParameters, initOverrides);
|
|
3779
|
+
return await response.value();
|
|
3780
|
+
}
|
|
3781
|
+
async jobsStartJobsRaw(requestParameters, initOverrides) {
|
|
3782
|
+
const queryParameters = {};
|
|
3783
|
+
if (requestParameters["$select"] != null) {
|
|
3784
|
+
queryParameters["$select"] = requestParameters["$select"];
|
|
3785
|
+
}
|
|
3786
|
+
if (requestParameters["$expand"] != null) {
|
|
3787
|
+
queryParameters["$expand"] = requestParameters["$expand"];
|
|
3788
|
+
}
|
|
3789
|
+
if (requestParameters["$filter"] != null) {
|
|
3790
|
+
queryParameters["$filter"] = requestParameters["$filter"];
|
|
3791
|
+
}
|
|
3792
|
+
if (requestParameters["$orderby"] != null) {
|
|
3793
|
+
queryParameters["$orderby"] = requestParameters["$orderby"];
|
|
3794
|
+
}
|
|
3795
|
+
if (requestParameters["$count"] != null) {
|
|
3796
|
+
queryParameters["$count"] = requestParameters["$count"];
|
|
3797
|
+
}
|
|
3798
|
+
const headerParameters = {};
|
|
3799
|
+
headerParameters["Content-Type"] = "application/json;odata.metadata=minimal;odata.streaming=true";
|
|
3800
|
+
if (requestParameters["xUIPATHOrganizationUnitId"] != null) {
|
|
3801
|
+
headerParameters["X-UIPATH-OrganizationUnitId"] = String(requestParameters["xUIPATHOrganizationUnitId"]);
|
|
3802
|
+
}
|
|
3803
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3804
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
3805
|
+
}
|
|
3806
|
+
let urlPath = `/odata/Jobs/UiPath.Server.Configuration.OData.StartJobs`;
|
|
3807
|
+
const response = await this.request({
|
|
3808
|
+
path: urlPath,
|
|
3809
|
+
method: "POST",
|
|
3810
|
+
headers: headerParameters,
|
|
3811
|
+
query: queryParameters,
|
|
3812
|
+
body: StartJobsRequestToJSON(requestParameters["body"])
|
|
3813
|
+
}, initOverrides);
|
|
3814
|
+
return new JSONApiResponse(response, (jsonValue) => ODataValueOfIEnumerableOfJobDtoFromJSON(jsonValue));
|
|
3815
|
+
}
|
|
3816
|
+
async jobsStartJobs(requestParameters = {}, initOverrides) {
|
|
3817
|
+
const response = await this.jobsStartJobsRaw(requestParameters, initOverrides);
|
|
3818
|
+
return await response.value();
|
|
3819
|
+
}
|
|
3820
|
+
async jobsStopJobByIdRaw(requestParameters, initOverrides) {
|
|
3821
|
+
if (requestParameters["key"] == null) {
|
|
3822
|
+
throw new RequiredError("key", 'Required parameter "key" was null or undefined when calling jobsStopJobById().');
|
|
3823
|
+
}
|
|
3824
|
+
const queryParameters = {};
|
|
3825
|
+
const headerParameters = {};
|
|
3826
|
+
headerParameters["Content-Type"] = "application/json;odata.metadata=minimal;odata.streaming=true";
|
|
3827
|
+
if (requestParameters["xUIPATHOrganizationUnitId"] != null) {
|
|
3828
|
+
headerParameters["X-UIPATH-OrganizationUnitId"] = String(requestParameters["xUIPATHOrganizationUnitId"]);
|
|
3829
|
+
}
|
|
3830
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3831
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
3832
|
+
}
|
|
3833
|
+
let urlPath = `/odata/Jobs({key})/UiPath.Server.Configuration.OData.StopJob`;
|
|
3834
|
+
urlPath = urlPath.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"])));
|
|
3835
|
+
const response = await this.request({
|
|
3836
|
+
path: urlPath,
|
|
3837
|
+
method: "POST",
|
|
3838
|
+
headers: headerParameters,
|
|
3839
|
+
query: queryParameters,
|
|
3840
|
+
body: StopJobRequestToJSON(requestParameters["body"])
|
|
3841
|
+
}, initOverrides);
|
|
3842
|
+
return new VoidApiResponse(response);
|
|
3843
|
+
}
|
|
3844
|
+
async jobsStopJobById(requestParameters, initOverrides) {
|
|
3845
|
+
await this.jobsStopJobByIdRaw(requestParameters, initOverrides);
|
|
3846
|
+
}
|
|
3847
|
+
async jobsStopJobTreeByIdRaw(requestParameters, initOverrides) {
|
|
3848
|
+
if (requestParameters["key"] == null) {
|
|
3849
|
+
throw new RequiredError("key", 'Required parameter "key" was null or undefined when calling jobsStopJobTreeById().');
|
|
3850
|
+
}
|
|
3851
|
+
const queryParameters = {};
|
|
3852
|
+
const headerParameters = {};
|
|
3853
|
+
headerParameters["Content-Type"] = "application/json;odata.metadata=minimal;odata.streaming=true";
|
|
3854
|
+
if (requestParameters["xUIPATHOrganizationUnitId"] != null) {
|
|
3855
|
+
headerParameters["X-UIPATH-OrganizationUnitId"] = String(requestParameters["xUIPATHOrganizationUnitId"]);
|
|
3856
|
+
}
|
|
3857
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3858
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
3859
|
+
}
|
|
3860
|
+
let urlPath = `/odata/Jobs({key})/UiPath.Server.Configuration.OData.StopJobTree`;
|
|
3861
|
+
urlPath = urlPath.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"])));
|
|
3862
|
+
const response = await this.request({
|
|
3863
|
+
path: urlPath,
|
|
3864
|
+
method: "POST",
|
|
3865
|
+
headers: headerParameters,
|
|
3866
|
+
query: queryParameters,
|
|
3867
|
+
body: StopJobRequestToJSON(requestParameters["body"])
|
|
3868
|
+
}, initOverrides);
|
|
3869
|
+
return new VoidApiResponse(response);
|
|
3870
|
+
}
|
|
3871
|
+
async jobsStopJobTreeById(requestParameters, initOverrides) {
|
|
3872
|
+
await this.jobsStopJobTreeByIdRaw(requestParameters, initOverrides);
|
|
3873
|
+
}
|
|
3874
|
+
async jobsStopJobTreeByKeyRaw(requestParameters, initOverrides) {
|
|
3875
|
+
const queryParameters = {};
|
|
3876
|
+
if (requestParameters["parentJobKey"] != null) {
|
|
3877
|
+
queryParameters["parentJobKey"] = requestParameters["parentJobKey"];
|
|
3878
|
+
}
|
|
3879
|
+
const headerParameters = {};
|
|
3880
|
+
headerParameters["Content-Type"] = "application/json";
|
|
3881
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3882
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
3883
|
+
}
|
|
3884
|
+
let urlPath = `/api/Jobs/StopJobTreeByKey`;
|
|
3885
|
+
const response = await this.request({
|
|
3886
|
+
path: urlPath,
|
|
3887
|
+
method: "POST",
|
|
3888
|
+
headers: headerParameters,
|
|
3889
|
+
query: queryParameters,
|
|
3890
|
+
body: StopJobRequestToJSON(requestParameters["body"])
|
|
3891
|
+
}, initOverrides);
|
|
3892
|
+
return new VoidApiResponse(response);
|
|
3893
|
+
}
|
|
3894
|
+
async jobsStopJobTreeByKey(requestParameters = {}, initOverrides) {
|
|
3895
|
+
await this.jobsStopJobTreeByKeyRaw(requestParameters, initOverrides);
|
|
3896
|
+
}
|
|
3897
|
+
async jobsStopJobsRaw(requestParameters, initOverrides) {
|
|
3898
|
+
const queryParameters = {};
|
|
3899
|
+
const headerParameters = {};
|
|
3900
|
+
headerParameters["Content-Type"] = "application/json;odata.metadata=minimal;odata.streaming=true";
|
|
3901
|
+
if (requestParameters["xUIPATHOrganizationUnitId"] != null) {
|
|
3902
|
+
headerParameters["X-UIPATH-OrganizationUnitId"] = String(requestParameters["xUIPATHOrganizationUnitId"]);
|
|
3903
|
+
}
|
|
3904
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3905
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
3906
|
+
}
|
|
3907
|
+
let urlPath = `/odata/Jobs/UiPath.Server.Configuration.OData.StopJobs`;
|
|
3908
|
+
const response = await this.request({
|
|
3909
|
+
path: urlPath,
|
|
3910
|
+
method: "POST",
|
|
3911
|
+
headers: headerParameters,
|
|
3912
|
+
query: queryParameters,
|
|
3913
|
+
body: StopJobsRequestToJSON(requestParameters["body"])
|
|
3914
|
+
}, initOverrides);
|
|
3915
|
+
return new VoidApiResponse(response);
|
|
3916
|
+
}
|
|
3917
|
+
async jobsStopJobs(requestParameters = {}, initOverrides) {
|
|
3918
|
+
await this.jobsStopJobsRaw(requestParameters, initOverrides);
|
|
3919
|
+
}
|
|
3920
|
+
async jobsValidateDynamicJobRaw(requestParameters, initOverrides) {
|
|
3921
|
+
const queryParameters = {};
|
|
3922
|
+
if (requestParameters["$select"] != null) {
|
|
3923
|
+
queryParameters["$select"] = requestParameters["$select"];
|
|
3924
|
+
}
|
|
3925
|
+
if (requestParameters["$expand"] != null) {
|
|
3926
|
+
queryParameters["$expand"] = requestParameters["$expand"];
|
|
3927
|
+
}
|
|
3928
|
+
const headerParameters = {};
|
|
3929
|
+
headerParameters["Content-Type"] = "application/json;odata.metadata=minimal;odata.streaming=true";
|
|
3930
|
+
if (requestParameters["xUIPATHOrganizationUnitId"] != null) {
|
|
3931
|
+
headerParameters["X-UIPATH-OrganizationUnitId"] = String(requestParameters["xUIPATHOrganizationUnitId"]);
|
|
3932
|
+
}
|
|
3933
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3934
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
3935
|
+
}
|
|
3936
|
+
let urlPath = `/odata/Jobs/UiPath.Server.Configuration.OData.ValidateDynamicJob`;
|
|
3937
|
+
const response = await this.request({
|
|
3938
|
+
path: urlPath,
|
|
3939
|
+
method: "POST",
|
|
3940
|
+
headers: headerParameters,
|
|
3941
|
+
query: queryParameters,
|
|
3942
|
+
body: StartJobsRequestToJSON(requestParameters["body"])
|
|
3943
|
+
}, initOverrides);
|
|
3944
|
+
return new JSONApiResponse(response, (jsonValue) => ValidationResultDtoFromJSON(jsonValue));
|
|
3945
|
+
}
|
|
3946
|
+
async jobsValidateDynamicJob(requestParameters = {}, initOverrides) {
|
|
3947
|
+
const response = await this.jobsValidateDynamicJobRaw(requestParameters, initOverrides);
|
|
3948
|
+
return await response.value();
|
|
3949
|
+
}
|
|
3950
|
+
async jobsValidateExistingJobByIdRaw(requestParameters, initOverrides) {
|
|
3951
|
+
if (requestParameters["key"] == null) {
|
|
3952
|
+
throw new RequiredError("key", 'Required parameter "key" was null or undefined when calling jobsValidateExistingJobById().');
|
|
3953
|
+
}
|
|
3954
|
+
const queryParameters = {};
|
|
3955
|
+
if (requestParameters["$select"] != null) {
|
|
3956
|
+
queryParameters["$select"] = requestParameters["$select"];
|
|
3957
|
+
}
|
|
3958
|
+
if (requestParameters["$expand"] != null) {
|
|
3959
|
+
queryParameters["$expand"] = requestParameters["$expand"];
|
|
3960
|
+
}
|
|
3961
|
+
const headerParameters = {};
|
|
3962
|
+
if (requestParameters["xUIPATHOrganizationUnitId"] != null) {
|
|
3963
|
+
headerParameters["X-UIPATH-OrganizationUnitId"] = String(requestParameters["xUIPATHOrganizationUnitId"]);
|
|
3964
|
+
}
|
|
3965
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3966
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
3967
|
+
}
|
|
3968
|
+
let urlPath = `/odata/Jobs({key})/UiPath.Server.Configuration.OData.ValidateExistingJob`;
|
|
3969
|
+
urlPath = urlPath.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"])));
|
|
3970
|
+
const response = await this.request({
|
|
3971
|
+
path: urlPath,
|
|
3972
|
+
method: "POST",
|
|
3973
|
+
headers: headerParameters,
|
|
3974
|
+
query: queryParameters
|
|
3975
|
+
}, initOverrides);
|
|
3976
|
+
return new JSONApiResponse(response, (jsonValue) => ValidationResultDtoFromJSON(jsonValue));
|
|
3977
|
+
}
|
|
3978
|
+
async jobsValidateExistingJobById(requestParameters, initOverrides) {
|
|
3979
|
+
const response = await this.jobsValidateExistingJobByIdRaw(requestParameters, initOverrides);
|
|
3980
|
+
return await response.value();
|
|
3981
|
+
}
|
|
3982
|
+
}
|
|
3983
|
+
// ../orchestrator-sdk/src/client-factory.ts
|
|
3984
|
+
import { getLoginStatusAsync } from "@uipath/auth";
|
|
3985
|
+
async function createOrchestratorConfig(options) {
|
|
3986
|
+
const status = await getLoginStatusAsync({
|
|
3987
|
+
ensureTokenValidityMinutes: options?.loginValidity
|
|
3988
|
+
});
|
|
3989
|
+
if (status.loginStatus !== "Logged in" || !status.baseUrl || !status.accessToken) {
|
|
3990
|
+
const message = status.hint ? `Not logged in. ${status.hint}` : "Not logged in. Run 'uip login' first.";
|
|
3991
|
+
throw new Error(message);
|
|
3992
|
+
}
|
|
3993
|
+
const tenantName = options?.tenant || status.tenantName;
|
|
3994
|
+
if (!tenantName) {
|
|
3995
|
+
throw new Error("Tenant not provided and UIPATH_TENANT_NAME not set. Please provide a tenant argument or set UIPATH_TENANT_NAME.");
|
|
3996
|
+
}
|
|
3997
|
+
if (!status.organizationId) {
|
|
3998
|
+
throw new Error("Organization ID not available from login status. Please ensure you are logged in with an organization context.");
|
|
3999
|
+
}
|
|
4000
|
+
const orchestratorBasePath = `${status.baseUrl}/${status.organizationId}/${tenantName}/orchestrator_`;
|
|
4001
|
+
const headers = {
|
|
4002
|
+
Authorization: `Bearer ${status.accessToken}`
|
|
4003
|
+
};
|
|
4004
|
+
if (options?.folderId) {
|
|
4005
|
+
headers["X-UIPATH-OrganizationUnitId"] = options.folderId;
|
|
4006
|
+
} else if (options?.folderKey && options?.folderPath) {
|
|
4007
|
+
throw new Error("Provide either folderKey or folderPath, not both.");
|
|
4008
|
+
} else if (options?.folderKey) {
|
|
4009
|
+
headers["X-UIPATH-FolderKey"] = options.folderKey;
|
|
4010
|
+
} else if (options?.folderPath) {
|
|
4011
|
+
headers["X-UIPATH-FolderPath"] = options.folderPath;
|
|
4012
|
+
}
|
|
4013
|
+
return new Configuration({
|
|
4014
|
+
basePath: orchestratorBasePath,
|
|
4015
|
+
headers
|
|
4016
|
+
});
|
|
4017
|
+
}
|
|
4018
|
+
async function createApiClient(ApiClass, options) {
|
|
4019
|
+
const config = await createOrchestratorConfig(options);
|
|
4020
|
+
return new ApiClass(config);
|
|
4021
|
+
}
|
|
4022
|
+
// ../orchestrator-sdk/src/folder-resolver.ts
|
|
4023
|
+
var UUID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
4024
|
+
async function resolveFolder(input, options) {
|
|
4025
|
+
if (!input?.folderPath && !input?.folderKey) {
|
|
4026
|
+
return;
|
|
4027
|
+
}
|
|
4028
|
+
const config = await createOrchestratorConfig(options);
|
|
4029
|
+
const foldersApi = new FoldersApi(config);
|
|
4030
|
+
if (input.folderKey) {
|
|
4031
|
+
if (!UUID_REGEX.test(input.folderKey)) {
|
|
4032
|
+
throw new Error(`Invalid folder key: '${input.folderKey}'. Expected a UUID (e.g. '12345678-1234-1234-1234-123456789abc').`);
|
|
4033
|
+
}
|
|
4034
|
+
return resolveByKey(foldersApi, input.folderKey);
|
|
4035
|
+
}
|
|
4036
|
+
return resolveByPath(foldersApi, input.folderPath);
|
|
4037
|
+
}
|
|
4038
|
+
async function resolveByKey(foldersApi, folderKey) {
|
|
4039
|
+
const folder = await foldersApi.foldersGetByKeyByIdentifier({
|
|
4040
|
+
identifier: folderKey
|
|
4041
|
+
});
|
|
4042
|
+
if (!folder?.id || !folder.key || !folder.fullyQualifiedName || !folder.displayName) {
|
|
4043
|
+
throw new Error(`Folder not found: '${folderKey}'.`);
|
|
4044
|
+
}
|
|
4045
|
+
return {
|
|
4046
|
+
id: folder.id,
|
|
4047
|
+
key: folder.key,
|
|
4048
|
+
path: folder.fullyQualifiedName,
|
|
4049
|
+
displayName: folder.displayName
|
|
4050
|
+
};
|
|
4051
|
+
}
|
|
4052
|
+
async function resolveByPath(foldersApi, folderPath) {
|
|
4053
|
+
const response = await foldersApi.foldersGet({
|
|
4054
|
+
$filter: `FullyQualifiedName eq '${folderPath.replace(/'/g, "''")}'`,
|
|
4055
|
+
$top: 1
|
|
4056
|
+
});
|
|
4057
|
+
const folder = response.value?.[0];
|
|
4058
|
+
if (!folder?.id || !folder.key || !folder.fullyQualifiedName || !folder.displayName) {
|
|
4059
|
+
throw new Error(`Folder not found: '${folderPath}'.`);
|
|
4060
|
+
}
|
|
4061
|
+
return {
|
|
4062
|
+
id: folder.id,
|
|
4063
|
+
key: folder.key,
|
|
4064
|
+
path: folder.fullyQualifiedName,
|
|
4065
|
+
displayName: folder.displayName
|
|
4066
|
+
};
|
|
4067
|
+
}
|
|
4068
|
+
// ../orchestrator-sdk/src/scripts/generate-sdk.ts
|
|
4069
|
+
import { join } from "node:path";
|
|
4070
|
+
var OUTPUT_DIR = join(process.cwd(), "generated");
|
|
4071
|
+
var TEMP_DIR = join(process.cwd(), "temp");
|
|
4072
|
+
var GENRATE_DIR = join(process.cwd(), "swagger");
|
|
4073
|
+
if (false) {}
|
|
4074
|
+
// src/services/traces-service.ts
|
|
4075
|
+
var GUID_RE = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
4076
|
+
var TRACE_ID_RE = /^([0-9a-f]{32}|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$/i;
|
|
4077
|
+
async function getTraceIdForJob(jobKey, options) {
|
|
4078
|
+
if (!GUID_RE.test(jobKey)) {
|
|
4079
|
+
throw new Error(`Invalid job key format: ${jobKey}`);
|
|
4080
|
+
}
|
|
4081
|
+
const folder = await resolveFolder({ folderPath: options.folderPath, folderKey: options.folderKey }, { tenant: options.tenant });
|
|
4082
|
+
const [apiError, api] = await catchError(createApiClient(JobsApi, {
|
|
4083
|
+
tenant: options.tenant,
|
|
4084
|
+
folderId: folder?.id.toString()
|
|
4085
|
+
}));
|
|
4086
|
+
if (apiError) {
|
|
4087
|
+
throw new Error(apiError.message);
|
|
4088
|
+
}
|
|
4089
|
+
const [jobsError, response] = await catchError(api.jobsGet({
|
|
4090
|
+
$filter: `Key eq ${jobKey}`,
|
|
4091
|
+
$top: 1
|
|
4092
|
+
}));
|
|
4093
|
+
if (jobsError) {
|
|
4094
|
+
throw new Error(jobsError.message);
|
|
4095
|
+
}
|
|
4096
|
+
if (!response.value || response.value.length === 0) {
|
|
4097
|
+
throw new Error(`Job not found: ${jobKey}`);
|
|
4098
|
+
}
|
|
4099
|
+
const job = response.value[0];
|
|
4100
|
+
if (!job.traceId) {
|
|
4101
|
+
throw new Error(`Job ${jobKey} has no associated trace ID`);
|
|
4102
|
+
}
|
|
4103
|
+
return job.traceId;
|
|
4104
|
+
}
|
|
4105
|
+
async function getSpansForTrace(traceId, options) {
|
|
4106
|
+
const [loginError, loginStatus] = await catchError(getLoginStatusAsync2());
|
|
4107
|
+
if (loginError) {
|
|
4108
|
+
throw new Error(loginError.message);
|
|
4109
|
+
}
|
|
4110
|
+
if (loginStatus.loginStatus !== "Logged in" || !loginStatus.baseUrl) {
|
|
4111
|
+
throw new Error("Not logged in. Run 'uip login' first.");
|
|
4112
|
+
}
|
|
4113
|
+
const tenantName = options.tenant || loginStatus.tenantName;
|
|
4114
|
+
if (!tenantName || !loginStatus.organizationId) {
|
|
4115
|
+
throw new Error("Missing tenant or organization info.");
|
|
4116
|
+
}
|
|
4117
|
+
if (!TRACE_ID_RE.test(traceId)) {
|
|
4118
|
+
throw new Error(`Invalid trace ID format: ${traceId}. Must be a 32-char hex string or GUID.`);
|
|
4119
|
+
}
|
|
4120
|
+
const traceIdNoHyphens = traceId.replaceAll("-", "");
|
|
4121
|
+
const url = `${loginStatus.baseUrl}/${loginStatus.organizationId}/${encodeURIComponent(tenantName)}/llmopstenant_/api/Traces/v2/spans/otel?traceId=${encodeURIComponent(traceIdNoHyphens)}`;
|
|
4122
|
+
const response = await fetch(url, {
|
|
4123
|
+
method: "GET",
|
|
4124
|
+
headers: {
|
|
4125
|
+
Authorization: `Bearer ${loginStatus.accessToken ?? ""}`,
|
|
4126
|
+
"Content-Type": "application/json",
|
|
4127
|
+
Accept: "application/json"
|
|
4128
|
+
}
|
|
4129
|
+
});
|
|
4130
|
+
if (response.status === 404) {
|
|
4131
|
+
throw new Error(`No spans found for trace ${traceId}`);
|
|
4132
|
+
}
|
|
4133
|
+
if (!response.ok) {
|
|
4134
|
+
const errorText = await response.text();
|
|
4135
|
+
throw new Error(`Traces API failed: ${response.status} ${response.statusText} - ${errorText}`);
|
|
4136
|
+
}
|
|
4137
|
+
const parsed = await response.json();
|
|
4138
|
+
const data = Array.isArray(parsed) ? parsed : parsed.Spans ?? [];
|
|
4139
|
+
return data;
|
|
4140
|
+
}
|
|
4141
|
+
|
|
4142
|
+
// src/commands/spans.ts
|
|
4143
|
+
var registerSpansCommand = (program) => {
|
|
4144
|
+
const spans = program.command("spans").description("Manage LLM Observability spans");
|
|
4145
|
+
spans.command("get").description("Get all spans by trace ID, or by job key as an alternative").argument("[trace-id]", "Trace ID (32-char hex or GUID format)").option("--job-key <guid>", "Orchestrator job key (GUID) — alternative to trace-id").option("-t, --tenant <name>", "Tenant name (optional, defaults to authenticated tenant)").option("--folder-path <path>", "Orchestrator folder path").option("--folder-key <guid>", "Orchestrator folder key (GUID)").trackedAction(processContext, async (traceId, options) => {
|
|
4146
|
+
let resolvedTraceId;
|
|
4147
|
+
if (options.jobKey) {
|
|
4148
|
+
const [traceIdError, tid] = await catchError2(getTraceIdForJob(options.jobKey, options));
|
|
4149
|
+
if (traceIdError) {
|
|
4150
|
+
OutputFormatter.error({
|
|
4151
|
+
Result: "Failure",
|
|
4152
|
+
Message: "Error retrieving trace ID for job",
|
|
4153
|
+
Instructions: await extractErrorMessage(traceIdError)
|
|
4154
|
+
});
|
|
4155
|
+
processContext.exit(1);
|
|
4156
|
+
return;
|
|
4157
|
+
}
|
|
4158
|
+
resolvedTraceId = tid;
|
|
4159
|
+
} else if (traceId) {
|
|
4160
|
+
resolvedTraceId = traceId;
|
|
4161
|
+
} else {
|
|
4162
|
+
OutputFormatter.error({
|
|
4163
|
+
Result: "Failure",
|
|
4164
|
+
Message: "Missing required argument",
|
|
4165
|
+
Instructions: "Provide either a trace-id argument or --job-key option"
|
|
4166
|
+
});
|
|
4167
|
+
processContext.exit(1);
|
|
4168
|
+
return;
|
|
4169
|
+
}
|
|
4170
|
+
const [spansError, spans2] = await catchError2(getSpansForTrace(resolvedTraceId, options));
|
|
4171
|
+
if (spansError) {
|
|
4172
|
+
OutputFormatter.error({
|
|
4173
|
+
Result: "Failure",
|
|
4174
|
+
Message: "Error retrieving spans for trace",
|
|
4175
|
+
Instructions: await extractErrorMessage(spansError)
|
|
4176
|
+
});
|
|
4177
|
+
processContext.exit(1);
|
|
4178
|
+
return;
|
|
4179
|
+
}
|
|
4180
|
+
OutputFormatter.success({
|
|
4181
|
+
Result: "Success",
|
|
4182
|
+
Code: "TraceSpans",
|
|
4183
|
+
Data: spans2
|
|
4184
|
+
});
|
|
4185
|
+
});
|
|
4186
|
+
};
|
|
4187
|
+
|
|
4188
|
+
// src/tool.ts
|
|
4189
|
+
var metadata = {
|
|
4190
|
+
name: "traces-tool",
|
|
4191
|
+
version: package_default.version,
|
|
4192
|
+
description: "Fetch LLM Observability traces for UiPath jobs",
|
|
4193
|
+
commandPrefix: "traces"
|
|
4194
|
+
};
|
|
4195
|
+
var registerCommands = async (program) => {
|
|
4196
|
+
registerSpansCommand(program);
|
|
4197
|
+
};
|
|
4198
|
+
export {
|
|
4199
|
+
registerCommands,
|
|
4200
|
+
metadata
|
|
4201
|
+
};
|