@uipath/solution-sdk 1.204.0 → 1.205.0-preview.258
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/THIRD-PARTY-NOTICES.md +2 -2
- package/dist/deployment-search.js +182 -0
- package/dist/{embedded-file-reader-rf2g1kfj.js → embedded-file-reader-z4becc02.js} +2 -2
- package/dist/index-78paj2kz.js +1908 -0
- package/dist/index-cs3g624n.js +28 -0
- package/dist/index-eav127tv.js +3004 -0
- package/dist/{index-fb21bjwj.js → index-enc2hqq5.js} +255 -1409
- package/dist/{index-6gp5j7j5.js → index-hkexw5er.js} +193 -118
- package/dist/{index-g0hcxnae.js → index-y4vgqz1w.js} +11 -1
- package/dist/index-zmneg45c.js +1184 -0
- package/dist/index.js +1551 -4214
- package/dist/package-search.js +105 -0
- package/dist/resources/index.js +1183 -1177
- package/dist/solution-auth.js +4 -3
- package/dist/src/deployment-search.d.ts +104 -0
- package/dist/src/legacy-deployment-search-v3.d.ts +24 -0
- package/dist/src/legacy-package-search.d.ts +25 -0
- package/dist/src/package-search.d.ts +41 -0
- package/dist/src/pipelines-route.d.ts +43 -0
- package/dist/src/resources/index.d.ts +3 -0
- package/dist/src/resources/providers/artefact-pair-binding-provider.d.ts +4 -0
- package/dist/src/resources/services/catalog-lookup-failure.d.ts +50 -0
- package/dist/src/resources/services/remote-resources.d.ts +2 -0
- package/dist/src/resources/services/resource-configurations.d.ts +44 -0
- package/dist/src/resources/services/resource-lookup.d.ts +29 -0
- package/dist/src/resources/services/resource-refresh-service.d.ts +13 -0
- package/dist/src/resources/services/sync-resources-from-bindings.d.ts +43 -6
- package/dist/src/zip-utils.d.ts +5 -0
- package/package.json +10 -2
|
@@ -0,0 +1,3004 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getSdkUserAgentToken,
|
|
3
|
+
installSdkUserAgentHeader
|
|
4
|
+
} from "./index-enc2hqq5.js";
|
|
5
|
+
|
|
6
|
+
// generated/src/runtime.ts
|
|
7
|
+
var BASE_PATH = "https://alpha.uipath.com/uipattycyrhx/abizon_1/automationsolutions_".replace(/\/+$/, "");
|
|
8
|
+
|
|
9
|
+
class Configuration {
|
|
10
|
+
configuration;
|
|
11
|
+
constructor(configuration = {}) {
|
|
12
|
+
this.configuration = configuration;
|
|
13
|
+
}
|
|
14
|
+
set config(configuration) {
|
|
15
|
+
this.configuration = configuration;
|
|
16
|
+
}
|
|
17
|
+
get basePath() {
|
|
18
|
+
return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH;
|
|
19
|
+
}
|
|
20
|
+
get fetchApi() {
|
|
21
|
+
return this.configuration.fetchApi;
|
|
22
|
+
}
|
|
23
|
+
get middleware() {
|
|
24
|
+
return this.configuration.middleware || [];
|
|
25
|
+
}
|
|
26
|
+
get queryParamsStringify() {
|
|
27
|
+
return this.configuration.queryParamsStringify || querystring;
|
|
28
|
+
}
|
|
29
|
+
get username() {
|
|
30
|
+
return this.configuration.username;
|
|
31
|
+
}
|
|
32
|
+
get password() {
|
|
33
|
+
return this.configuration.password;
|
|
34
|
+
}
|
|
35
|
+
get apiKey() {
|
|
36
|
+
const apiKey = this.configuration.apiKey;
|
|
37
|
+
if (apiKey) {
|
|
38
|
+
return typeof apiKey === "function" ? apiKey : () => apiKey;
|
|
39
|
+
}
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
get accessToken() {
|
|
43
|
+
const accessToken = this.configuration.accessToken;
|
|
44
|
+
if (accessToken) {
|
|
45
|
+
return typeof accessToken === "function" ? accessToken : async () => accessToken;
|
|
46
|
+
}
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
get headers() {
|
|
50
|
+
return this.configuration.headers;
|
|
51
|
+
}
|
|
52
|
+
get credentials() {
|
|
53
|
+
return this.configuration.credentials;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
var DefaultConfig = new Configuration;
|
|
57
|
+
|
|
58
|
+
class BaseAPI {
|
|
59
|
+
configuration;
|
|
60
|
+
static jsonRegex = new RegExp("^(:?application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$", "i");
|
|
61
|
+
middleware;
|
|
62
|
+
constructor(configuration = DefaultConfig) {
|
|
63
|
+
this.configuration = configuration;
|
|
64
|
+
this.middleware = configuration.middleware;
|
|
65
|
+
}
|
|
66
|
+
withMiddleware(...middlewares) {
|
|
67
|
+
const next = this.clone();
|
|
68
|
+
next.middleware = next.middleware.concat(...middlewares);
|
|
69
|
+
return next;
|
|
70
|
+
}
|
|
71
|
+
withPreMiddleware(...preMiddlewares) {
|
|
72
|
+
const middlewares = preMiddlewares.map((pre) => ({ pre }));
|
|
73
|
+
return this.withMiddleware(...middlewares);
|
|
74
|
+
}
|
|
75
|
+
withPostMiddleware(...postMiddlewares) {
|
|
76
|
+
const middlewares = postMiddlewares.map((post) => ({ post }));
|
|
77
|
+
return this.withMiddleware(...middlewares);
|
|
78
|
+
}
|
|
79
|
+
isJsonMime(mime) {
|
|
80
|
+
if (!mime) {
|
|
81
|
+
return false;
|
|
82
|
+
}
|
|
83
|
+
return BaseAPI.jsonRegex.test(mime);
|
|
84
|
+
}
|
|
85
|
+
async request(context, initOverrides) {
|
|
86
|
+
const { url, init } = await this.createFetchParams(context, initOverrides);
|
|
87
|
+
const response = await this.fetchApi(url, init);
|
|
88
|
+
if (response && (response.status >= 200 && response.status < 300)) {
|
|
89
|
+
return response;
|
|
90
|
+
}
|
|
91
|
+
throw new ResponseError(response, "Response returned an error code");
|
|
92
|
+
}
|
|
93
|
+
async createFetchParams(context, initOverrides) {
|
|
94
|
+
let url = this.configuration.basePath + context.path;
|
|
95
|
+
if (context.query !== undefined && Object.keys(context.query).length !== 0) {
|
|
96
|
+
url += "?" + this.configuration.queryParamsStringify(context.query);
|
|
97
|
+
}
|
|
98
|
+
const headers = Object.assign({}, this.configuration.headers, context.headers);
|
|
99
|
+
Object.keys(headers).forEach((key) => headers[key] === undefined ? delete headers[key] : {});
|
|
100
|
+
const initOverrideFn = typeof initOverrides === "function" ? initOverrides : async () => initOverrides;
|
|
101
|
+
const initParams = {
|
|
102
|
+
method: context.method,
|
|
103
|
+
headers,
|
|
104
|
+
body: context.body,
|
|
105
|
+
credentials: this.configuration.credentials
|
|
106
|
+
};
|
|
107
|
+
const overriddenInit = {
|
|
108
|
+
...initParams,
|
|
109
|
+
...await initOverrideFn({
|
|
110
|
+
init: initParams,
|
|
111
|
+
context
|
|
112
|
+
})
|
|
113
|
+
};
|
|
114
|
+
let body;
|
|
115
|
+
if (isFormData(overriddenInit.body) || overriddenInit.body instanceof URLSearchParams || isBlob(overriddenInit.body)) {
|
|
116
|
+
body = overriddenInit.body;
|
|
117
|
+
} else if (this.isJsonMime(headers["Content-Type"])) {
|
|
118
|
+
body = JSON.stringify(overriddenInit.body);
|
|
119
|
+
} else {
|
|
120
|
+
body = overriddenInit.body;
|
|
121
|
+
}
|
|
122
|
+
const init = {
|
|
123
|
+
...overriddenInit,
|
|
124
|
+
body
|
|
125
|
+
};
|
|
126
|
+
return { url, init };
|
|
127
|
+
}
|
|
128
|
+
fetchApi = async (url, init) => {
|
|
129
|
+
let fetchParams = { url, init };
|
|
130
|
+
for (const middleware of this.middleware) {
|
|
131
|
+
if (middleware.pre) {
|
|
132
|
+
fetchParams = await middleware.pre({
|
|
133
|
+
fetch: this.fetchApi,
|
|
134
|
+
...fetchParams
|
|
135
|
+
}) || fetchParams;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
let response = undefined;
|
|
139
|
+
try {
|
|
140
|
+
response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init);
|
|
141
|
+
} catch (e) {
|
|
142
|
+
for (const middleware of this.middleware) {
|
|
143
|
+
if (middleware.onError) {
|
|
144
|
+
response = await middleware.onError({
|
|
145
|
+
fetch: this.fetchApi,
|
|
146
|
+
url: fetchParams.url,
|
|
147
|
+
init: fetchParams.init,
|
|
148
|
+
error: e,
|
|
149
|
+
response: response ? response.clone() : undefined
|
|
150
|
+
}) || response;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
if (response === undefined) {
|
|
154
|
+
if (e instanceof Error) {
|
|
155
|
+
throw new FetchError(e, "The request failed and the interceptors did not return an alternative response");
|
|
156
|
+
} else {
|
|
157
|
+
throw e;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
for (const middleware of this.middleware) {
|
|
162
|
+
if (middleware.post) {
|
|
163
|
+
response = await middleware.post({
|
|
164
|
+
fetch: this.fetchApi,
|
|
165
|
+
url: fetchParams.url,
|
|
166
|
+
init: fetchParams.init,
|
|
167
|
+
response: response.clone()
|
|
168
|
+
}) || response;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
return response;
|
|
172
|
+
};
|
|
173
|
+
clone() {
|
|
174
|
+
const constructor = this.constructor;
|
|
175
|
+
const next = new constructor(this.configuration);
|
|
176
|
+
next.middleware = this.middleware.slice();
|
|
177
|
+
return next;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
function isBlob(value) {
|
|
181
|
+
return typeof Blob !== "undefined" && value instanceof Blob;
|
|
182
|
+
}
|
|
183
|
+
function isFormData(value) {
|
|
184
|
+
return typeof FormData !== "undefined" && value instanceof FormData;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
class ResponseError extends Error {
|
|
188
|
+
response;
|
|
189
|
+
name = "ResponseError";
|
|
190
|
+
constructor(response, msg) {
|
|
191
|
+
super(msg);
|
|
192
|
+
this.response = response;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
class FetchError extends Error {
|
|
197
|
+
cause;
|
|
198
|
+
name = "FetchError";
|
|
199
|
+
constructor(cause, msg) {
|
|
200
|
+
super(msg);
|
|
201
|
+
this.cause = cause;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
class RequiredError extends Error {
|
|
206
|
+
field;
|
|
207
|
+
name = "RequiredError";
|
|
208
|
+
constructor(field, msg) {
|
|
209
|
+
super(msg);
|
|
210
|
+
this.field = field;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
var COLLECTION_FORMATS = {
|
|
214
|
+
csv: ",",
|
|
215
|
+
ssv: " ",
|
|
216
|
+
tsv: "\t",
|
|
217
|
+
pipes: "|"
|
|
218
|
+
};
|
|
219
|
+
function querystring(params, prefix = "") {
|
|
220
|
+
return Object.keys(params).map((key) => querystringSingleKey(key, params[key], prefix)).filter((part) => part.length > 0).join("&");
|
|
221
|
+
}
|
|
222
|
+
function querystringSingleKey(key, value, keyPrefix = "") {
|
|
223
|
+
const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key);
|
|
224
|
+
if (value instanceof Array) {
|
|
225
|
+
const multiValue = value.map((singleValue) => encodeURIComponent(String(singleValue))).join(`&${encodeURIComponent(fullKey)}=`);
|
|
226
|
+
return `${encodeURIComponent(fullKey)}=${multiValue}`;
|
|
227
|
+
}
|
|
228
|
+
if (value instanceof Set) {
|
|
229
|
+
const valueAsArray = Array.from(value);
|
|
230
|
+
return querystringSingleKey(key, valueAsArray, keyPrefix);
|
|
231
|
+
}
|
|
232
|
+
if (value instanceof Date) {
|
|
233
|
+
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`;
|
|
234
|
+
}
|
|
235
|
+
if (value instanceof Object) {
|
|
236
|
+
return querystring(value, fullKey);
|
|
237
|
+
}
|
|
238
|
+
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
|
|
239
|
+
}
|
|
240
|
+
function exists(json, key) {
|
|
241
|
+
const value = json[key];
|
|
242
|
+
return value !== null && value !== undefined;
|
|
243
|
+
}
|
|
244
|
+
function mapValues(data, fn) {
|
|
245
|
+
const result = {};
|
|
246
|
+
for (const key of Object.keys(data)) {
|
|
247
|
+
result[key] = fn(data[key]);
|
|
248
|
+
}
|
|
249
|
+
return result;
|
|
250
|
+
}
|
|
251
|
+
function canConsumeForm(consumes) {
|
|
252
|
+
for (const consume of consumes) {
|
|
253
|
+
if (consume.contentType === "multipart/form-data") {
|
|
254
|
+
return true;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
return false;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
class JSONApiResponse {
|
|
261
|
+
raw;
|
|
262
|
+
transformer;
|
|
263
|
+
constructor(raw, transformer = (jsonValue) => jsonValue) {
|
|
264
|
+
this.raw = raw;
|
|
265
|
+
this.transformer = transformer;
|
|
266
|
+
}
|
|
267
|
+
async value() {
|
|
268
|
+
return this.transformer(await this.raw.json());
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
class VoidApiResponse {
|
|
273
|
+
raw;
|
|
274
|
+
constructor(raw) {
|
|
275
|
+
this.raw = raw;
|
|
276
|
+
}
|
|
277
|
+
async value() {
|
|
278
|
+
return;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
class BlobApiResponse {
|
|
283
|
+
raw;
|
|
284
|
+
constructor(raw) {
|
|
285
|
+
this.raw = raw;
|
|
286
|
+
}
|
|
287
|
+
async value() {
|
|
288
|
+
return await this.raw.blob();
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
class TextApiResponse {
|
|
293
|
+
raw;
|
|
294
|
+
constructor(raw) {
|
|
295
|
+
this.raw = raw;
|
|
296
|
+
}
|
|
297
|
+
async value() {
|
|
298
|
+
return await this.raw.text();
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
// package.json
|
|
302
|
+
var package_default = {
|
|
303
|
+
name: "@uipath/solution-sdk",
|
|
304
|
+
author: "UiPath",
|
|
305
|
+
license: "SEE LICENSE IN LICENSE.txt",
|
|
306
|
+
version: "1.205.0-preview.258",
|
|
307
|
+
repository: {
|
|
308
|
+
type: "git",
|
|
309
|
+
url: "https://github.com/UiPath/cli.git",
|
|
310
|
+
directory: "packages/solution-sdk"
|
|
311
|
+
},
|
|
312
|
+
publishConfig: {
|
|
313
|
+
registry: "https://npm.pkg.github.com/@uipath"
|
|
314
|
+
},
|
|
315
|
+
keywords: [
|
|
316
|
+
"uipath",
|
|
317
|
+
"solution",
|
|
318
|
+
"sdk"
|
|
319
|
+
],
|
|
320
|
+
type: "module",
|
|
321
|
+
main: "./dist/index.js",
|
|
322
|
+
types: "./dist/src/index.d.ts",
|
|
323
|
+
exports: {
|
|
324
|
+
".": {
|
|
325
|
+
types: "./dist/src/index.d.ts",
|
|
326
|
+
default: "./dist/index.js"
|
|
327
|
+
},
|
|
328
|
+
"./resources": {
|
|
329
|
+
types: "./dist/src/resources/index.d.ts",
|
|
330
|
+
default: "./dist/resources/index.js"
|
|
331
|
+
},
|
|
332
|
+
"./auth": {
|
|
333
|
+
types: "./dist/src/solution-auth.d.ts",
|
|
334
|
+
default: "./dist/solution-auth.js"
|
|
335
|
+
},
|
|
336
|
+
"./deployments": {
|
|
337
|
+
types: "./dist/src/deployment-search.d.ts",
|
|
338
|
+
default: "./dist/deployment-search.js"
|
|
339
|
+
},
|
|
340
|
+
"./packages": {
|
|
341
|
+
types: "./dist/src/package-search.d.ts",
|
|
342
|
+
default: "./dist/package-search.js"
|
|
343
|
+
}
|
|
344
|
+
},
|
|
345
|
+
bin: {
|
|
346
|
+
"generate-sdk": "./dist/scripts/generate-sdk.js"
|
|
347
|
+
},
|
|
348
|
+
files: [
|
|
349
|
+
"dist"
|
|
350
|
+
],
|
|
351
|
+
private: false,
|
|
352
|
+
scripts: {
|
|
353
|
+
build: "bun build ./src/index.ts ./src/resources/index.ts ./src/solution-auth.ts ./src/deployment-search.ts ./src/package-search.ts --outdir dist --format esm --target node --splitting --sourcemap=linked && bun build ./src/scripts/generate-sdk.ts --outdir dist/scripts --format esm --target node --sourcemap=linked && tsc -p tsconfig.build.json --noCheck",
|
|
354
|
+
generate: "bun run src/scripts/generate-sdk.ts",
|
|
355
|
+
lint: "biome check .",
|
|
356
|
+
test: "vitest run",
|
|
357
|
+
"test:coverage": "vitest run --coverage"
|
|
358
|
+
},
|
|
359
|
+
devDependencies: {
|
|
360
|
+
"@openapitools/openapi-generator-cli": "^2.31.1",
|
|
361
|
+
"@uipath/auth": "workspace:*",
|
|
362
|
+
"@uipath/common": "workspace:*",
|
|
363
|
+
"@uipath/filesystem": "workspace:*",
|
|
364
|
+
"@uipath/orchestrator-sdk": "workspace:*",
|
|
365
|
+
"@uipath/pipelines-sdk": "workspace:*",
|
|
366
|
+
"@uipath/resource-builder-sdk": "2025.11.0-alpha6584-4367",
|
|
367
|
+
"@uipath/solutionpackager-tool-core": "workspace:*",
|
|
368
|
+
"@uipath/studioweb-sdk": "workspace:*",
|
|
369
|
+
"@types/node": "^25.5.2",
|
|
370
|
+
fflate: "^0.8.2",
|
|
371
|
+
ignore: "^5.3.2",
|
|
372
|
+
typescript: "^7.0.2"
|
|
373
|
+
}
|
|
374
|
+
};
|
|
375
|
+
|
|
376
|
+
// src/user-agent.ts
|
|
377
|
+
var SDK_USER_AGENT = getSdkUserAgentToken(package_default);
|
|
378
|
+
installSdkUserAgentHeader(BaseAPI, SDK_USER_AGENT);
|
|
379
|
+
|
|
380
|
+
// generated/src/models/ResponseDictionaryDto.ts
|
|
381
|
+
function instanceOfResponseDictionaryDto(value) {
|
|
382
|
+
return true;
|
|
383
|
+
}
|
|
384
|
+
function ResponseDictionaryDtoFromJSON(json) {
|
|
385
|
+
return ResponseDictionaryDtoFromJSONTyped(json, false);
|
|
386
|
+
}
|
|
387
|
+
function ResponseDictionaryDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
388
|
+
if (json == null) {
|
|
389
|
+
return json;
|
|
390
|
+
}
|
|
391
|
+
return {
|
|
392
|
+
keys: json["keys"] == null ? undefined : json["keys"],
|
|
393
|
+
values: json["values"] == null ? undefined : json["values"]
|
|
394
|
+
};
|
|
395
|
+
}
|
|
396
|
+
function ResponseDictionaryDtoToJSON(json) {
|
|
397
|
+
return ResponseDictionaryDtoToJSONTyped(json, false);
|
|
398
|
+
}
|
|
399
|
+
function ResponseDictionaryDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
400
|
+
if (value == null) {
|
|
401
|
+
return value;
|
|
402
|
+
}
|
|
403
|
+
return {
|
|
404
|
+
keys: value["keys"],
|
|
405
|
+
values: value["values"]
|
|
406
|
+
};
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
// generated/src/models/BlobFileAccessDto.ts
|
|
410
|
+
function instanceOfBlobFileAccessDto(value) {
|
|
411
|
+
if (!("uri" in value) || value["uri"] === undefined)
|
|
412
|
+
return false;
|
|
413
|
+
if (!("verb" in value) || value["verb"] === undefined)
|
|
414
|
+
return false;
|
|
415
|
+
return true;
|
|
416
|
+
}
|
|
417
|
+
function BlobFileAccessDtoFromJSON(json) {
|
|
418
|
+
return BlobFileAccessDtoFromJSONTyped(json, false);
|
|
419
|
+
}
|
|
420
|
+
function BlobFileAccessDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
421
|
+
if (json == null) {
|
|
422
|
+
return json;
|
|
423
|
+
}
|
|
424
|
+
return {
|
|
425
|
+
uri: json["uri"],
|
|
426
|
+
verb: json["verb"],
|
|
427
|
+
headers: json["headers"] == null ? undefined : ResponseDictionaryDtoFromJSON(json["headers"])
|
|
428
|
+
};
|
|
429
|
+
}
|
|
430
|
+
function BlobFileAccessDtoToJSON(json) {
|
|
431
|
+
return BlobFileAccessDtoToJSONTyped(json, false);
|
|
432
|
+
}
|
|
433
|
+
function BlobFileAccessDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
434
|
+
if (value == null) {
|
|
435
|
+
return value;
|
|
436
|
+
}
|
|
437
|
+
return {
|
|
438
|
+
uri: value["uri"],
|
|
439
|
+
verb: value["verb"],
|
|
440
|
+
headers: ResponseDictionaryDtoToJSON(value["headers"])
|
|
441
|
+
};
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
// generated/src/models/CreateConfigurationCommand.ts
|
|
445
|
+
function instanceOfCreateConfigurationCommand(value) {
|
|
446
|
+
if (!("packageVersionKey" in value) || value["packageVersionKey"] === undefined)
|
|
447
|
+
return false;
|
|
448
|
+
return true;
|
|
449
|
+
}
|
|
450
|
+
function CreateConfigurationCommandFromJSON(json) {
|
|
451
|
+
return CreateConfigurationCommandFromJSONTyped(json, false);
|
|
452
|
+
}
|
|
453
|
+
function CreateConfigurationCommandFromJSONTyped(json, ignoreDiscriminator) {
|
|
454
|
+
if (json == null) {
|
|
455
|
+
return json;
|
|
456
|
+
}
|
|
457
|
+
return {
|
|
458
|
+
packageVersionKey: json["packageVersionKey"],
|
|
459
|
+
name: json["name"] == null ? undefined : json["name"]
|
|
460
|
+
};
|
|
461
|
+
}
|
|
462
|
+
function CreateConfigurationCommandToJSON(json) {
|
|
463
|
+
return CreateConfigurationCommandToJSONTyped(json, false);
|
|
464
|
+
}
|
|
465
|
+
function CreateConfigurationCommandToJSONTyped(value, ignoreDiscriminator = false) {
|
|
466
|
+
if (value == null) {
|
|
467
|
+
return value;
|
|
468
|
+
}
|
|
469
|
+
return {
|
|
470
|
+
packageVersionKey: value["packageVersionKey"],
|
|
471
|
+
name: value["name"]
|
|
472
|
+
};
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
// generated/src/models/DeploymentActivationStatus.ts
|
|
476
|
+
var DeploymentActivationStatus = {
|
|
477
|
+
None: "None",
|
|
478
|
+
Active: "Active",
|
|
479
|
+
Inactive: "Inactive",
|
|
480
|
+
ActivationFailed: "ActivationFailed",
|
|
481
|
+
DeactivationFailed: "DeactivationFailed",
|
|
482
|
+
ReadyToActivate: "ReadyToActivate",
|
|
483
|
+
NeedsSetupToActivate: "NeedsSetupToActivate"
|
|
484
|
+
};
|
|
485
|
+
function instanceOfDeploymentActivationStatus(value) {
|
|
486
|
+
for (const key in DeploymentActivationStatus) {
|
|
487
|
+
if (Object.prototype.hasOwnProperty.call(DeploymentActivationStatus, key)) {
|
|
488
|
+
if (DeploymentActivationStatus[key] === value) {
|
|
489
|
+
return true;
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
return false;
|
|
494
|
+
}
|
|
495
|
+
function DeploymentActivationStatusFromJSON(json) {
|
|
496
|
+
return DeploymentActivationStatusFromJSONTyped(json, false);
|
|
497
|
+
}
|
|
498
|
+
function DeploymentActivationStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
499
|
+
return json;
|
|
500
|
+
}
|
|
501
|
+
function DeploymentActivationStatusToJSON(value) {
|
|
502
|
+
return value;
|
|
503
|
+
}
|
|
504
|
+
function DeploymentActivationStatusToJSONTyped(value, ignoreDiscriminator) {
|
|
505
|
+
return value;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
// generated/src/models/OverwriteType.ts
|
|
509
|
+
var OverwriteType = {
|
|
510
|
+
Install: "Install",
|
|
511
|
+
Reference: "Reference"
|
|
512
|
+
};
|
|
513
|
+
function instanceOfOverwriteType(value) {
|
|
514
|
+
for (const key in OverwriteType) {
|
|
515
|
+
if (Object.prototype.hasOwnProperty.call(OverwriteType, key)) {
|
|
516
|
+
if (OverwriteType[key] === value) {
|
|
517
|
+
return true;
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
return false;
|
|
522
|
+
}
|
|
523
|
+
function OverwriteTypeFromJSON(json) {
|
|
524
|
+
return OverwriteTypeFromJSONTyped(json, false);
|
|
525
|
+
}
|
|
526
|
+
function OverwriteTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
527
|
+
return json;
|
|
528
|
+
}
|
|
529
|
+
function OverwriteTypeToJSON(value) {
|
|
530
|
+
return value;
|
|
531
|
+
}
|
|
532
|
+
function OverwriteTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
533
|
+
return value;
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
// generated/src/models/Overwrite.ts
|
|
537
|
+
function instanceOfOverwrite(value) {
|
|
538
|
+
if (!("resourceKey" in value) || value["resourceKey"] === undefined)
|
|
539
|
+
return false;
|
|
540
|
+
if (!("resourceName" in value) || value["resourceName"] === undefined)
|
|
541
|
+
return false;
|
|
542
|
+
if (!("type" in value) || value["type"] === undefined)
|
|
543
|
+
return false;
|
|
544
|
+
return true;
|
|
545
|
+
}
|
|
546
|
+
function OverwriteFromJSON(json) {
|
|
547
|
+
return OverwriteFromJSONTyped(json, false);
|
|
548
|
+
}
|
|
549
|
+
function OverwriteFromJSONTyped(json, ignoreDiscriminator) {
|
|
550
|
+
if (json == null) {
|
|
551
|
+
return json;
|
|
552
|
+
}
|
|
553
|
+
return {
|
|
554
|
+
resourceKey: json["resourceKey"],
|
|
555
|
+
resourceName: json["resourceName"],
|
|
556
|
+
folderKey: json["folderKey"] == null ? undefined : json["folderKey"],
|
|
557
|
+
folderFullyQualifiedName: json["folderFullyQualifiedName"] == null ? undefined : json["folderFullyQualifiedName"],
|
|
558
|
+
folderPath: json["folderPath"] == null ? undefined : json["folderPath"],
|
|
559
|
+
type: OverwriteTypeFromJSON(json["type"])
|
|
560
|
+
};
|
|
561
|
+
}
|
|
562
|
+
function OverwriteToJSON(json) {
|
|
563
|
+
return OverwriteToJSONTyped(json, false);
|
|
564
|
+
}
|
|
565
|
+
function OverwriteToJSONTyped(value, ignoreDiscriminator = false) {
|
|
566
|
+
if (value == null) {
|
|
567
|
+
return value;
|
|
568
|
+
}
|
|
569
|
+
return {
|
|
570
|
+
resourceKey: value["resourceKey"],
|
|
571
|
+
resourceName: value["resourceName"],
|
|
572
|
+
folderKey: value["folderKey"],
|
|
573
|
+
folderFullyQualifiedName: value["folderFullyQualifiedName"],
|
|
574
|
+
folderPath: value["folderPath"],
|
|
575
|
+
type: OverwriteTypeToJSON(value["type"])
|
|
576
|
+
};
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
// generated/src/models/ResourceOverwrite.ts
|
|
580
|
+
function instanceOfResourceOverwrite(value) {
|
|
581
|
+
if (!("solutionResourceKey" in value) || value["solutionResourceKey"] === undefined)
|
|
582
|
+
return false;
|
|
583
|
+
if (!("reprovisioningIndex" in value) || value["reprovisioningIndex"] === undefined)
|
|
584
|
+
return false;
|
|
585
|
+
return true;
|
|
586
|
+
}
|
|
587
|
+
function ResourceOverwriteFromJSON(json) {
|
|
588
|
+
return ResourceOverwriteFromJSONTyped(json, false);
|
|
589
|
+
}
|
|
590
|
+
function ResourceOverwriteFromJSONTyped(json, ignoreDiscriminator) {
|
|
591
|
+
if (json == null) {
|
|
592
|
+
return json;
|
|
593
|
+
}
|
|
594
|
+
return {
|
|
595
|
+
solutionResourceKey: json["solutionResourceKey"],
|
|
596
|
+
reprovisioningIndex: json["reprovisioningIndex"],
|
|
597
|
+
overwrite: json["overwrite"] == null ? undefined : OverwriteFromJSON(json["overwrite"])
|
|
598
|
+
};
|
|
599
|
+
}
|
|
600
|
+
function ResourceOverwriteToJSON(json) {
|
|
601
|
+
return ResourceOverwriteToJSONTyped(json, false);
|
|
602
|
+
}
|
|
603
|
+
function ResourceOverwriteToJSONTyped(value, ignoreDiscriminator = false) {
|
|
604
|
+
if (value == null) {
|
|
605
|
+
return value;
|
|
606
|
+
}
|
|
607
|
+
return {
|
|
608
|
+
solutionResourceKey: value["solutionResourceKey"],
|
|
609
|
+
reprovisioningIndex: value["reprovisioningIndex"],
|
|
610
|
+
overwrite: OverwriteToJSON(value["overwrite"])
|
|
611
|
+
};
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
// generated/src/models/RuntimeSetup.ts
|
|
615
|
+
function instanceOfRuntimeSetup(value) {
|
|
616
|
+
if (!("requireServerlessTemplate" in value) || value["requireServerlessTemplate"] === undefined)
|
|
617
|
+
return false;
|
|
618
|
+
return true;
|
|
619
|
+
}
|
|
620
|
+
function RuntimeSetupFromJSON(json) {
|
|
621
|
+
return RuntimeSetupFromJSONTyped(json, false);
|
|
622
|
+
}
|
|
623
|
+
function RuntimeSetupFromJSONTyped(json, ignoreDiscriminator) {
|
|
624
|
+
if (json == null) {
|
|
625
|
+
return json;
|
|
626
|
+
}
|
|
627
|
+
return {
|
|
628
|
+
requireServerlessTemplate: json["requireServerlessTemplate"]
|
|
629
|
+
};
|
|
630
|
+
}
|
|
631
|
+
function RuntimeSetupToJSON(json) {
|
|
632
|
+
return RuntimeSetupToJSONTyped(json, false);
|
|
633
|
+
}
|
|
634
|
+
function RuntimeSetupToJSONTyped(value, ignoreDiscriminator = false) {
|
|
635
|
+
if (value == null) {
|
|
636
|
+
return value;
|
|
637
|
+
}
|
|
638
|
+
return {
|
|
639
|
+
requireServerlessTemplate: value["requireServerlessTemplate"]
|
|
640
|
+
};
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
// generated/src/models/DeploymentAutoRequest.ts
|
|
644
|
+
function instanceOfDeploymentAutoRequest(value) {
|
|
645
|
+
if (!("packageVersionKey" in value) || value["packageVersionKey"] === undefined)
|
|
646
|
+
return false;
|
|
647
|
+
if (!("overwrites" in value) || value["overwrites"] === undefined)
|
|
648
|
+
return false;
|
|
649
|
+
return true;
|
|
650
|
+
}
|
|
651
|
+
function DeploymentAutoRequestFromJSON(json) {
|
|
652
|
+
return DeploymentAutoRequestFromJSONTyped(json, false);
|
|
653
|
+
}
|
|
654
|
+
function DeploymentAutoRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
655
|
+
if (json == null) {
|
|
656
|
+
return json;
|
|
657
|
+
}
|
|
658
|
+
return {
|
|
659
|
+
packageVersionKey: json["packageVersionKey"],
|
|
660
|
+
folderFQN: json["folderFQN"] == null ? undefined : json["folderFQN"],
|
|
661
|
+
overwrites: json["overwrites"].map(ResourceOverwriteFromJSON),
|
|
662
|
+
runtimeSetup: json["runtimeSetup"] == null ? undefined : RuntimeSetupFromJSON(json["runtimeSetup"])
|
|
663
|
+
};
|
|
664
|
+
}
|
|
665
|
+
function DeploymentAutoRequestToJSON(json) {
|
|
666
|
+
return DeploymentAutoRequestToJSONTyped(json, false);
|
|
667
|
+
}
|
|
668
|
+
function DeploymentAutoRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
669
|
+
if (value == null) {
|
|
670
|
+
return value;
|
|
671
|
+
}
|
|
672
|
+
return {
|
|
673
|
+
packageVersionKey: value["packageVersionKey"],
|
|
674
|
+
folderFQN: value["folderFQN"],
|
|
675
|
+
overwrites: value["overwrites"].map(ResourceOverwriteToJSON),
|
|
676
|
+
runtimeSetup: RuntimeSetupToJSON(value["runtimeSetup"])
|
|
677
|
+
};
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
// generated/src/models/DeploymentDto.ts
|
|
681
|
+
function instanceOfDeploymentDto(value) {
|
|
682
|
+
if (!("packageName" in value) || value["packageName"] === undefined)
|
|
683
|
+
return false;
|
|
684
|
+
if (!("deploymentName" in value) || value["deploymentName"] === undefined)
|
|
685
|
+
return false;
|
|
686
|
+
return true;
|
|
687
|
+
}
|
|
688
|
+
function DeploymentDtoFromJSON(json) {
|
|
689
|
+
return DeploymentDtoFromJSONTyped(json, false);
|
|
690
|
+
}
|
|
691
|
+
function DeploymentDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
692
|
+
if (json == null) {
|
|
693
|
+
return json;
|
|
694
|
+
}
|
|
695
|
+
return {
|
|
696
|
+
packageName: json["packageName"],
|
|
697
|
+
deploymentName: json["deploymentName"]
|
|
698
|
+
};
|
|
699
|
+
}
|
|
700
|
+
function DeploymentDtoToJSON(json) {
|
|
701
|
+
return DeploymentDtoToJSONTyped(json, false);
|
|
702
|
+
}
|
|
703
|
+
function DeploymentDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
704
|
+
if (value == null) {
|
|
705
|
+
return value;
|
|
706
|
+
}
|
|
707
|
+
return {
|
|
708
|
+
packageName: value["packageName"],
|
|
709
|
+
deploymentName: value["deploymentName"]
|
|
710
|
+
};
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
// generated/src/models/WorkflowAction.ts
|
|
714
|
+
var WorkflowAction = {
|
|
715
|
+
Install: "Install",
|
|
716
|
+
Activate: "Activate",
|
|
717
|
+
Uninstall: "Uninstall",
|
|
718
|
+
Upgrade: "Upgrade",
|
|
719
|
+
Delete: "Delete",
|
|
720
|
+
SetupActivation: "SetupActivation"
|
|
721
|
+
};
|
|
722
|
+
function instanceOfWorkflowAction(value) {
|
|
723
|
+
for (const key in WorkflowAction) {
|
|
724
|
+
if (Object.prototype.hasOwnProperty.call(WorkflowAction, key)) {
|
|
725
|
+
if (WorkflowAction[key] === value) {
|
|
726
|
+
return true;
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
return false;
|
|
731
|
+
}
|
|
732
|
+
function WorkflowActionFromJSON(json) {
|
|
733
|
+
return WorkflowActionFromJSONTyped(json, false);
|
|
734
|
+
}
|
|
735
|
+
function WorkflowActionFromJSONTyped(json, ignoreDiscriminator) {
|
|
736
|
+
return json;
|
|
737
|
+
}
|
|
738
|
+
function WorkflowActionToJSON(value) {
|
|
739
|
+
return value;
|
|
740
|
+
}
|
|
741
|
+
function WorkflowActionToJSONTyped(value, ignoreDiscriminator) {
|
|
742
|
+
return value;
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
// generated/src/models/DeploymentOperation.ts
|
|
746
|
+
var DeploymentOperation = {
|
|
747
|
+
Install: "Install",
|
|
748
|
+
Uninstall: "Uninstall",
|
|
749
|
+
VersionChange: "VersionChange",
|
|
750
|
+
ConfigurationChange: "ConfigurationChange",
|
|
751
|
+
Rollback: "Rollback",
|
|
752
|
+
ActivationSetup: "ActivationSetup"
|
|
753
|
+
};
|
|
754
|
+
function instanceOfDeploymentOperation(value) {
|
|
755
|
+
for (const key in DeploymentOperation) {
|
|
756
|
+
if (Object.prototype.hasOwnProperty.call(DeploymentOperation, key)) {
|
|
757
|
+
if (DeploymentOperation[key] === value) {
|
|
758
|
+
return true;
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
return false;
|
|
763
|
+
}
|
|
764
|
+
function DeploymentOperationFromJSON(json) {
|
|
765
|
+
return DeploymentOperationFromJSONTyped(json, false);
|
|
766
|
+
}
|
|
767
|
+
function DeploymentOperationFromJSONTyped(json, ignoreDiscriminator) {
|
|
768
|
+
return json;
|
|
769
|
+
}
|
|
770
|
+
function DeploymentOperationToJSON(value) {
|
|
771
|
+
return value;
|
|
772
|
+
}
|
|
773
|
+
function DeploymentOperationToJSONTyped(value, ignoreDiscriminator) {
|
|
774
|
+
return value;
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
// generated/src/models/PackageVersionOrigin.ts
|
|
778
|
+
var PackageVersionOrigin = {
|
|
779
|
+
SolutionBuilder: "SolutionBuilder",
|
|
780
|
+
Accelerators: "Accelerators",
|
|
781
|
+
CiCd: "CiCd",
|
|
782
|
+
Studio: "Studio"
|
|
783
|
+
};
|
|
784
|
+
function instanceOfPackageVersionOrigin(value) {
|
|
785
|
+
for (const key in PackageVersionOrigin) {
|
|
786
|
+
if (Object.prototype.hasOwnProperty.call(PackageVersionOrigin, key)) {
|
|
787
|
+
if (PackageVersionOrigin[key] === value) {
|
|
788
|
+
return true;
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
return false;
|
|
793
|
+
}
|
|
794
|
+
function PackageVersionOriginFromJSON(json) {
|
|
795
|
+
return PackageVersionOriginFromJSONTyped(json, false);
|
|
796
|
+
}
|
|
797
|
+
function PackageVersionOriginFromJSONTyped(json, ignoreDiscriminator) {
|
|
798
|
+
return json;
|
|
799
|
+
}
|
|
800
|
+
function PackageVersionOriginToJSON(value) {
|
|
801
|
+
return value;
|
|
802
|
+
}
|
|
803
|
+
function PackageVersionOriginToJSONTyped(value, ignoreDiscriminator) {
|
|
804
|
+
return value;
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
// generated/src/models/DeploymentOperationStatus.ts
|
|
808
|
+
var DeploymentOperationStatus = {
|
|
809
|
+
Draft: "Draft",
|
|
810
|
+
Successful: "Successful",
|
|
811
|
+
Failed: "Failed",
|
|
812
|
+
InProgress: "InProgress",
|
|
813
|
+
FailedRollback: "FailedRollback"
|
|
814
|
+
};
|
|
815
|
+
function instanceOfDeploymentOperationStatus(value) {
|
|
816
|
+
for (const key in DeploymentOperationStatus) {
|
|
817
|
+
if (Object.prototype.hasOwnProperty.call(DeploymentOperationStatus, key)) {
|
|
818
|
+
if (DeploymentOperationStatus[key] === value) {
|
|
819
|
+
return true;
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
return false;
|
|
824
|
+
}
|
|
825
|
+
function DeploymentOperationStatusFromJSON(json) {
|
|
826
|
+
return DeploymentOperationStatusFromJSONTyped(json, false);
|
|
827
|
+
}
|
|
828
|
+
function DeploymentOperationStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
829
|
+
return json;
|
|
830
|
+
}
|
|
831
|
+
function DeploymentOperationStatusToJSON(value) {
|
|
832
|
+
return value;
|
|
833
|
+
}
|
|
834
|
+
function DeploymentOperationStatusToJSONTyped(value, ignoreDiscriminator) {
|
|
835
|
+
return value;
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
// generated/src/models/DeploymentUpgradeType.ts
|
|
839
|
+
var DeploymentUpgradeType = {
|
|
840
|
+
ConfigChange: "ConfigChange",
|
|
841
|
+
VersionChange: "VersionChange",
|
|
842
|
+
UpgradeRollback: "UpgradeRollback",
|
|
843
|
+
ActivationSetup: "ActivationSetup"
|
|
844
|
+
};
|
|
845
|
+
function instanceOfDeploymentUpgradeType(value) {
|
|
846
|
+
for (const key in DeploymentUpgradeType) {
|
|
847
|
+
if (Object.prototype.hasOwnProperty.call(DeploymentUpgradeType, key)) {
|
|
848
|
+
if (DeploymentUpgradeType[key] === value) {
|
|
849
|
+
return true;
|
|
850
|
+
}
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
return false;
|
|
854
|
+
}
|
|
855
|
+
function DeploymentUpgradeTypeFromJSON(json) {
|
|
856
|
+
return DeploymentUpgradeTypeFromJSONTyped(json, false);
|
|
857
|
+
}
|
|
858
|
+
function DeploymentUpgradeTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
859
|
+
return json;
|
|
860
|
+
}
|
|
861
|
+
function DeploymentUpgradeTypeToJSON(value) {
|
|
862
|
+
return value;
|
|
863
|
+
}
|
|
864
|
+
function DeploymentUpgradeTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
865
|
+
return value;
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
// generated/src/models/DeploymentStatus.ts
|
|
869
|
+
var DeploymentStatus = {
|
|
870
|
+
SuccessfulInstall: "SuccessfulInstall",
|
|
871
|
+
SuccessfulUninstall: "SuccessfulUninstall",
|
|
872
|
+
InstallProgress: "InstallProgress",
|
|
873
|
+
UninstallProgress: "UninstallProgress",
|
|
874
|
+
FailedInstall: "FailedInstall",
|
|
875
|
+
FailedUninstall: "FailedUninstall",
|
|
876
|
+
Draft: "Draft",
|
|
877
|
+
SuccessfulActivate: "SuccessfulActivate",
|
|
878
|
+
FailedActivate: "FailedActivate",
|
|
879
|
+
ActivateProgress: "ActivateProgress"
|
|
880
|
+
};
|
|
881
|
+
function instanceOfDeploymentStatus(value) {
|
|
882
|
+
for (const key in DeploymentStatus) {
|
|
883
|
+
if (Object.prototype.hasOwnProperty.call(DeploymentStatus, key)) {
|
|
884
|
+
if (DeploymentStatus[key] === value) {
|
|
885
|
+
return true;
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
return false;
|
|
890
|
+
}
|
|
891
|
+
function DeploymentStatusFromJSON(json) {
|
|
892
|
+
return DeploymentStatusFromJSONTyped(json, false);
|
|
893
|
+
}
|
|
894
|
+
function DeploymentStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
895
|
+
return json;
|
|
896
|
+
}
|
|
897
|
+
function DeploymentStatusToJSON(value) {
|
|
898
|
+
return value;
|
|
899
|
+
}
|
|
900
|
+
function DeploymentStatusToJSONTyped(value, ignoreDiscriminator) {
|
|
901
|
+
return value;
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
// generated/src/models/DeploymentItemDto.ts
|
|
905
|
+
function instanceOfDeploymentItemDto(value) {
|
|
906
|
+
if (!("key" in value) || value["key"] === undefined)
|
|
907
|
+
return false;
|
|
908
|
+
if (!("installDeploymentKey" in value) || value["installDeploymentKey"] === undefined)
|
|
909
|
+
return false;
|
|
910
|
+
if (!("name" in value) || value["name"] === undefined)
|
|
911
|
+
return false;
|
|
912
|
+
if (!("configurationKey" in value) || value["configurationKey"] === undefined)
|
|
913
|
+
return false;
|
|
914
|
+
if (!("packageVersionKey" in value) || value["packageVersionKey"] === undefined)
|
|
915
|
+
return false;
|
|
916
|
+
if (!("packageKey" in value) || value["packageKey"] === undefined)
|
|
917
|
+
return false;
|
|
918
|
+
if (!("packageName" in value) || value["packageName"] === undefined)
|
|
919
|
+
return false;
|
|
920
|
+
if (!("packageVersion" in value) || value["packageVersion"] === undefined)
|
|
921
|
+
return false;
|
|
922
|
+
if (!("packageVersionOrigin" in value) || value["packageVersionOrigin"] === undefined)
|
|
923
|
+
return false;
|
|
924
|
+
if (!("deploymentCreationTime" in value) || value["deploymentCreationTime"] === undefined)
|
|
925
|
+
return false;
|
|
926
|
+
if (!("status" in value) || value["status"] === undefined)
|
|
927
|
+
return false;
|
|
928
|
+
if (!("operation" in value) || value["operation"] === undefined)
|
|
929
|
+
return false;
|
|
930
|
+
if (!("operationStatus" in value) || value["operationStatus"] === undefined)
|
|
931
|
+
return false;
|
|
932
|
+
if (!("activationStatus" in value) || value["activationStatus"] === undefined)
|
|
933
|
+
return false;
|
|
934
|
+
if (!("authorName" in value) || value["authorName"] === undefined)
|
|
935
|
+
return false;
|
|
936
|
+
if (!("actions" in value) || value["actions"] === undefined)
|
|
937
|
+
return false;
|
|
938
|
+
return true;
|
|
939
|
+
}
|
|
940
|
+
function DeploymentItemDtoFromJSON(json) {
|
|
941
|
+
return DeploymentItemDtoFromJSONTyped(json, false);
|
|
942
|
+
}
|
|
943
|
+
function DeploymentItemDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
944
|
+
if (json == null) {
|
|
945
|
+
return json;
|
|
946
|
+
}
|
|
947
|
+
return {
|
|
948
|
+
key: json["key"],
|
|
949
|
+
installDeploymentKey: json["installDeploymentKey"],
|
|
950
|
+
name: json["name"],
|
|
951
|
+
configurationKey: json["configurationKey"],
|
|
952
|
+
packageVersionKey: json["packageVersionKey"],
|
|
953
|
+
packageKey: json["packageKey"],
|
|
954
|
+
packageName: json["packageName"],
|
|
955
|
+
packageVersion: json["packageVersion"],
|
|
956
|
+
currentPackageVersion: json["currentPackageVersion"] == null ? undefined : json["currentPackageVersion"],
|
|
957
|
+
targetPackageVersion: json["targetPackageVersion"] == null ? undefined : json["targetPackageVersion"],
|
|
958
|
+
folderPath: json["folderPath"] == null ? undefined : json["folderPath"],
|
|
959
|
+
installedRootFolderKey: json["installedRootFolderKey"] == null ? undefined : json["installedRootFolderKey"],
|
|
960
|
+
installedRootFolderName: json["installedRootFolderName"] == null ? undefined : json["installedRootFolderName"],
|
|
961
|
+
packageVersionOrigin: PackageVersionOriginFromJSON(json["packageVersionOrigin"]),
|
|
962
|
+
deploymentCreationTime: new Date(json["deploymentCreationTime"]),
|
|
963
|
+
status: DeploymentStatusFromJSON(json["status"]),
|
|
964
|
+
startTime: json["startTime"] == null ? undefined : new Date(json["startTime"]),
|
|
965
|
+
endTime: json["endTime"] == null ? undefined : new Date(json["endTime"]),
|
|
966
|
+
upgradeType: json["upgradeType"] == null ? undefined : DeploymentUpgradeTypeFromJSON(json["upgradeType"]),
|
|
967
|
+
operation: DeploymentOperationFromJSON(json["operation"]),
|
|
968
|
+
operationStatus: DeploymentOperationStatusFromJSON(json["operationStatus"]),
|
|
969
|
+
activationStatus: DeploymentActivationStatusFromJSON(json["activationStatus"]),
|
|
970
|
+
instanceId: json["instanceId"] == null ? undefined : json["instanceId"],
|
|
971
|
+
newPackageVersionAvailable: json["newPackageVersionAvailable"] == null ? undefined : json["newPackageVersionAvailable"],
|
|
972
|
+
packageVersionDescription: json["packageVersionDescription"] == null ? undefined : json["packageVersionDescription"],
|
|
973
|
+
packageVersionReleaseNotes: json["packageVersionReleaseNotes"] == null ? undefined : json["packageVersionReleaseNotes"],
|
|
974
|
+
authorName: json["authorName"],
|
|
975
|
+
previousDeploymentKey: json["previousDeploymentKey"] == null ? undefined : json["previousDeploymentKey"],
|
|
976
|
+
runtimeSetup: json["runtimeSetup"] == null ? undefined : RuntimeSetupFromJSON(json["runtimeSetup"]),
|
|
977
|
+
actions: json["actions"].map(WorkflowActionFromJSON)
|
|
978
|
+
};
|
|
979
|
+
}
|
|
980
|
+
function DeploymentItemDtoToJSON(json) {
|
|
981
|
+
return DeploymentItemDtoToJSONTyped(json, false);
|
|
982
|
+
}
|
|
983
|
+
function DeploymentItemDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
984
|
+
if (value == null) {
|
|
985
|
+
return value;
|
|
986
|
+
}
|
|
987
|
+
return {
|
|
988
|
+
key: value["key"],
|
|
989
|
+
installDeploymentKey: value["installDeploymentKey"],
|
|
990
|
+
name: value["name"],
|
|
991
|
+
configurationKey: value["configurationKey"],
|
|
992
|
+
packageVersionKey: value["packageVersionKey"],
|
|
993
|
+
packageKey: value["packageKey"],
|
|
994
|
+
packageName: value["packageName"],
|
|
995
|
+
packageVersion: value["packageVersion"],
|
|
996
|
+
currentPackageVersion: value["currentPackageVersion"],
|
|
997
|
+
targetPackageVersion: value["targetPackageVersion"],
|
|
998
|
+
folderPath: value["folderPath"],
|
|
999
|
+
installedRootFolderKey: value["installedRootFolderKey"],
|
|
1000
|
+
installedRootFolderName: value["installedRootFolderName"],
|
|
1001
|
+
packageVersionOrigin: PackageVersionOriginToJSON(value["packageVersionOrigin"]),
|
|
1002
|
+
deploymentCreationTime: value["deploymentCreationTime"].toISOString(),
|
|
1003
|
+
status: DeploymentStatusToJSON(value["status"]),
|
|
1004
|
+
startTime: value["startTime"] == null ? value["startTime"] : value["startTime"].toISOString(),
|
|
1005
|
+
endTime: value["endTime"] == null ? value["endTime"] : value["endTime"].toISOString(),
|
|
1006
|
+
upgradeType: DeploymentUpgradeTypeToJSON(value["upgradeType"]),
|
|
1007
|
+
operation: DeploymentOperationToJSON(value["operation"]),
|
|
1008
|
+
operationStatus: DeploymentOperationStatusToJSON(value["operationStatus"]),
|
|
1009
|
+
activationStatus: DeploymentActivationStatusToJSON(value["activationStatus"]),
|
|
1010
|
+
instanceId: value["instanceId"],
|
|
1011
|
+
newPackageVersionAvailable: value["newPackageVersionAvailable"],
|
|
1012
|
+
packageVersionDescription: value["packageVersionDescription"],
|
|
1013
|
+
packageVersionReleaseNotes: value["packageVersionReleaseNotes"],
|
|
1014
|
+
authorName: value["authorName"],
|
|
1015
|
+
previousDeploymentKey: value["previousDeploymentKey"],
|
|
1016
|
+
runtimeSetup: RuntimeSetupToJSON(value["runtimeSetup"]),
|
|
1017
|
+
actions: value["actions"].map(WorkflowActionToJSON)
|
|
1018
|
+
};
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
// generated/src/models/DeploymentRequest.ts
|
|
1022
|
+
function instanceOfDeploymentRequest(value) {
|
|
1023
|
+
if (!("configurationKey" in value) || value["configurationKey"] === undefined)
|
|
1024
|
+
return false;
|
|
1025
|
+
if (!("deploymentName" in value) || value["deploymentName"] === undefined)
|
|
1026
|
+
return false;
|
|
1027
|
+
return true;
|
|
1028
|
+
}
|
|
1029
|
+
function DeploymentRequestFromJSON(json) {
|
|
1030
|
+
return DeploymentRequestFromJSONTyped(json, false);
|
|
1031
|
+
}
|
|
1032
|
+
function DeploymentRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
1033
|
+
if (json == null) {
|
|
1034
|
+
return json;
|
|
1035
|
+
}
|
|
1036
|
+
return {
|
|
1037
|
+
configurationKey: json["configurationKey"],
|
|
1038
|
+
deploymentName: json["deploymentName"],
|
|
1039
|
+
installationFolderKey: json["installationFolderKey"] == null ? undefined : json["installationFolderKey"],
|
|
1040
|
+
pathFullyQualifiedName: json["pathFullyQualifiedName"] == null ? undefined : json["pathFullyQualifiedName"],
|
|
1041
|
+
solutionRootFolderName: json["solutionRootFolderName"] == null ? undefined : json["solutionRootFolderName"],
|
|
1042
|
+
forceActivate: json["forceActivate"] == null ? undefined : json["forceActivate"],
|
|
1043
|
+
runtimeSetup: json["runtimeSetup"] == null ? undefined : RuntimeSetupFromJSON(json["runtimeSetup"])
|
|
1044
|
+
};
|
|
1045
|
+
}
|
|
1046
|
+
function DeploymentRequestToJSON(json) {
|
|
1047
|
+
return DeploymentRequestToJSONTyped(json, false);
|
|
1048
|
+
}
|
|
1049
|
+
function DeploymentRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1050
|
+
if (value == null) {
|
|
1051
|
+
return value;
|
|
1052
|
+
}
|
|
1053
|
+
return {
|
|
1054
|
+
configurationKey: value["configurationKey"],
|
|
1055
|
+
deploymentName: value["deploymentName"],
|
|
1056
|
+
installationFolderKey: value["installationFolderKey"],
|
|
1057
|
+
pathFullyQualifiedName: value["pathFullyQualifiedName"],
|
|
1058
|
+
solutionRootFolderName: value["solutionRootFolderName"],
|
|
1059
|
+
forceActivate: value["forceActivate"],
|
|
1060
|
+
runtimeSetup: RuntimeSetupToJSON(value["runtimeSetup"])
|
|
1061
|
+
};
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
// generated/src/models/DeploymentResourceValidationAction.ts
|
|
1065
|
+
var DeploymentResourceValidationAction = {
|
|
1066
|
+
RenameExisting: "RenameExisting",
|
|
1067
|
+
RenameInSolution: "RenameInSolution",
|
|
1068
|
+
UseExisting: "UseExisting",
|
|
1069
|
+
FixConfiguration: "FixConfiguration",
|
|
1070
|
+
Delete: "Delete",
|
|
1071
|
+
SkipDelete: "SkipDelete",
|
|
1072
|
+
MergeConfiguration: "MergeConfiguration",
|
|
1073
|
+
Replace: "Replace"
|
|
1074
|
+
};
|
|
1075
|
+
function instanceOfDeploymentResourceValidationAction(value) {
|
|
1076
|
+
for (const key in DeploymentResourceValidationAction) {
|
|
1077
|
+
if (Object.prototype.hasOwnProperty.call(DeploymentResourceValidationAction, key)) {
|
|
1078
|
+
if (DeploymentResourceValidationAction[key] === value) {
|
|
1079
|
+
return true;
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
return false;
|
|
1084
|
+
}
|
|
1085
|
+
function DeploymentResourceValidationActionFromJSON(json) {
|
|
1086
|
+
return DeploymentResourceValidationActionFromJSONTyped(json, false);
|
|
1087
|
+
}
|
|
1088
|
+
function DeploymentResourceValidationActionFromJSONTyped(json, ignoreDiscriminator) {
|
|
1089
|
+
return json;
|
|
1090
|
+
}
|
|
1091
|
+
function DeploymentResourceValidationActionToJSON(value) {
|
|
1092
|
+
return value;
|
|
1093
|
+
}
|
|
1094
|
+
function DeploymentResourceValidationActionToJSONTyped(value, ignoreDiscriminator) {
|
|
1095
|
+
return value;
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
// generated/src/models/ResetConfigurationSource.ts
|
|
1099
|
+
var ResetConfigurationSource = {
|
|
1100
|
+
Package: "Package",
|
|
1101
|
+
PreviousDeployment: "PreviousDeployment"
|
|
1102
|
+
};
|
|
1103
|
+
function instanceOfResetConfigurationSource(value) {
|
|
1104
|
+
for (const key in ResetConfigurationSource) {
|
|
1105
|
+
if (Object.prototype.hasOwnProperty.call(ResetConfigurationSource, key)) {
|
|
1106
|
+
if (ResetConfigurationSource[key] === value) {
|
|
1107
|
+
return true;
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
1110
|
+
}
|
|
1111
|
+
return false;
|
|
1112
|
+
}
|
|
1113
|
+
function ResetConfigurationSourceFromJSON(json) {
|
|
1114
|
+
return ResetConfigurationSourceFromJSONTyped(json, false);
|
|
1115
|
+
}
|
|
1116
|
+
function ResetConfigurationSourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
1117
|
+
return json;
|
|
1118
|
+
}
|
|
1119
|
+
function ResetConfigurationSourceToJSON(value) {
|
|
1120
|
+
return value;
|
|
1121
|
+
}
|
|
1122
|
+
function ResetConfigurationSourceToJSONTyped(value, ignoreDiscriminator) {
|
|
1123
|
+
return value;
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
// generated/src/models/DeploymentUpgradeState.ts
|
|
1127
|
+
var DeploymentUpgradeState = {
|
|
1128
|
+
Unchanged: "Unchanged",
|
|
1129
|
+
Updated: "Updated",
|
|
1130
|
+
New: "New",
|
|
1131
|
+
Removed: "Removed"
|
|
1132
|
+
};
|
|
1133
|
+
function instanceOfDeploymentUpgradeState(value) {
|
|
1134
|
+
for (const key in DeploymentUpgradeState) {
|
|
1135
|
+
if (Object.prototype.hasOwnProperty.call(DeploymentUpgradeState, key)) {
|
|
1136
|
+
if (DeploymentUpgradeState[key] === value) {
|
|
1137
|
+
return true;
|
|
1138
|
+
}
|
|
1139
|
+
}
|
|
1140
|
+
}
|
|
1141
|
+
return false;
|
|
1142
|
+
}
|
|
1143
|
+
function DeploymentUpgradeStateFromJSON(json) {
|
|
1144
|
+
return DeploymentUpgradeStateFromJSONTyped(json, false);
|
|
1145
|
+
}
|
|
1146
|
+
function DeploymentUpgradeStateFromJSONTyped(json, ignoreDiscriminator) {
|
|
1147
|
+
return json;
|
|
1148
|
+
}
|
|
1149
|
+
function DeploymentUpgradeStateToJSON(value) {
|
|
1150
|
+
return value;
|
|
1151
|
+
}
|
|
1152
|
+
function DeploymentUpgradeStateToJSONTyped(value, ignoreDiscriminator) {
|
|
1153
|
+
return value;
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
// generated/src/models/DeploymentResourceReplacementDto.ts
|
|
1157
|
+
function instanceOfDeploymentResourceReplacementDto(value) {
|
|
1158
|
+
if (!("serviceResourceKey" in value) || value["serviceResourceKey"] === undefined)
|
|
1159
|
+
return false;
|
|
1160
|
+
if (!("serviceResourceName" in value) || value["serviceResourceName"] === undefined)
|
|
1161
|
+
return false;
|
|
1162
|
+
if (!("solutionResourceKey" in value) || value["solutionResourceKey"] === undefined)
|
|
1163
|
+
return false;
|
|
1164
|
+
return true;
|
|
1165
|
+
}
|
|
1166
|
+
function DeploymentResourceReplacementDtoFromJSON(json) {
|
|
1167
|
+
return DeploymentResourceReplacementDtoFromJSONTyped(json, false);
|
|
1168
|
+
}
|
|
1169
|
+
function DeploymentResourceReplacementDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1170
|
+
if (json == null) {
|
|
1171
|
+
return json;
|
|
1172
|
+
}
|
|
1173
|
+
return {
|
|
1174
|
+
serviceResourceKey: json["serviceResourceKey"],
|
|
1175
|
+
serviceResourceName: json["serviceResourceName"],
|
|
1176
|
+
serviceFolderPath: json["serviceFolderPath"] == null ? undefined : json["serviceFolderPath"],
|
|
1177
|
+
solutionResourceKey: json["solutionResourceKey"]
|
|
1178
|
+
};
|
|
1179
|
+
}
|
|
1180
|
+
function DeploymentResourceReplacementDtoToJSON(json) {
|
|
1181
|
+
return DeploymentResourceReplacementDtoToJSONTyped(json, false);
|
|
1182
|
+
}
|
|
1183
|
+
function DeploymentResourceReplacementDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1184
|
+
if (value == null) {
|
|
1185
|
+
return value;
|
|
1186
|
+
}
|
|
1187
|
+
return {
|
|
1188
|
+
serviceResourceKey: value["serviceResourceKey"],
|
|
1189
|
+
serviceResourceName: value["serviceResourceName"],
|
|
1190
|
+
serviceFolderPath: value["serviceFolderPath"],
|
|
1191
|
+
solutionResourceKey: value["solutionResourceKey"]
|
|
1192
|
+
};
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
// generated/src/models/FolderInfo.ts
|
|
1196
|
+
function instanceOfFolderInfo(value) {
|
|
1197
|
+
if (!("fullyQualifiedName" in value) || value["fullyQualifiedName"] === undefined)
|
|
1198
|
+
return false;
|
|
1199
|
+
return true;
|
|
1200
|
+
}
|
|
1201
|
+
function FolderInfoFromJSON(json) {
|
|
1202
|
+
return FolderInfoFromJSONTyped(json, false);
|
|
1203
|
+
}
|
|
1204
|
+
function FolderInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1205
|
+
if (json == null) {
|
|
1206
|
+
return json;
|
|
1207
|
+
}
|
|
1208
|
+
return {
|
|
1209
|
+
fullyQualifiedName: json["fullyQualifiedName"],
|
|
1210
|
+
path: json["path"] == null ? undefined : json["path"],
|
|
1211
|
+
folderKey: json["folderKey"] == null ? undefined : json["folderKey"]
|
|
1212
|
+
};
|
|
1213
|
+
}
|
|
1214
|
+
function FolderInfoToJSON(json) {
|
|
1215
|
+
return FolderInfoToJSONTyped(json, false);
|
|
1216
|
+
}
|
|
1217
|
+
function FolderInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1218
|
+
if (value == null) {
|
|
1219
|
+
return value;
|
|
1220
|
+
}
|
|
1221
|
+
return {
|
|
1222
|
+
fullyQualifiedName: value["fullyQualifiedName"],
|
|
1223
|
+
path: value["path"],
|
|
1224
|
+
folderKey: value["folderKey"]
|
|
1225
|
+
};
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1228
|
+
// generated/src/models/DeploymentResourceInfo.ts
|
|
1229
|
+
function instanceOfDeploymentResourceInfo(value) {
|
|
1230
|
+
if (!("key" in value) || value["key"] === undefined)
|
|
1231
|
+
return false;
|
|
1232
|
+
if (!("name" in value) || value["name"] === undefined)
|
|
1233
|
+
return false;
|
|
1234
|
+
if (!("kind" in value) || value["kind"] === undefined)
|
|
1235
|
+
return false;
|
|
1236
|
+
if (!("apiVersion" in value) || value["apiVersion"] === undefined)
|
|
1237
|
+
return false;
|
|
1238
|
+
if (!("folders" in value) || value["folders"] === undefined)
|
|
1239
|
+
return false;
|
|
1240
|
+
if (!("requiresConfiguration" in value) || value["requiresConfiguration"] === undefined)
|
|
1241
|
+
return false;
|
|
1242
|
+
if (!("isOverridable" in value) || value["isOverridable"] === undefined)
|
|
1243
|
+
return false;
|
|
1244
|
+
if (!("hasWarnings" in value) || value["hasWarnings"] === undefined)
|
|
1245
|
+
return false;
|
|
1246
|
+
return true;
|
|
1247
|
+
}
|
|
1248
|
+
function DeploymentResourceInfoFromJSON(json) {
|
|
1249
|
+
return DeploymentResourceInfoFromJSONTyped(json, false);
|
|
1250
|
+
}
|
|
1251
|
+
function DeploymentResourceInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1252
|
+
if (json == null) {
|
|
1253
|
+
return json;
|
|
1254
|
+
}
|
|
1255
|
+
return {
|
|
1256
|
+
key: json["key"],
|
|
1257
|
+
name: json["name"],
|
|
1258
|
+
kind: json["kind"],
|
|
1259
|
+
type: json["type"] == null ? undefined : json["type"],
|
|
1260
|
+
apiVersion: json["apiVersion"],
|
|
1261
|
+
folders: json["folders"].map(FolderInfoFromJSON),
|
|
1262
|
+
requiresConfiguration: json["requiresConfiguration"],
|
|
1263
|
+
isOverridable: json["isOverridable"],
|
|
1264
|
+
hasWarnings: json["hasWarnings"],
|
|
1265
|
+
upgradeState: json["upgradeState"] == null ? undefined : DeploymentUpgradeStateFromJSON(json["upgradeState"]),
|
|
1266
|
+
upgradeConfigurationSource: json["upgradeConfigurationSource"] == null ? undefined : ResetConfigurationSourceFromJSON(json["upgradeConfigurationSource"]),
|
|
1267
|
+
resourceReplacement: json["resourceReplacement"] == null ? undefined : DeploymentResourceReplacementDtoFromJSON(json["resourceReplacement"]),
|
|
1268
|
+
selectedAction: json["selectedAction"] == null ? undefined : DeploymentResourceValidationActionFromJSON(json["selectedAction"])
|
|
1269
|
+
};
|
|
1270
|
+
}
|
|
1271
|
+
function DeploymentResourceInfoToJSON(json) {
|
|
1272
|
+
return DeploymentResourceInfoToJSONTyped(json, false);
|
|
1273
|
+
}
|
|
1274
|
+
function DeploymentResourceInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1275
|
+
if (value == null) {
|
|
1276
|
+
return value;
|
|
1277
|
+
}
|
|
1278
|
+
return {
|
|
1279
|
+
key: value["key"],
|
|
1280
|
+
name: value["name"],
|
|
1281
|
+
kind: value["kind"],
|
|
1282
|
+
type: value["type"],
|
|
1283
|
+
apiVersion: value["apiVersion"],
|
|
1284
|
+
folders: value["folders"].map(FolderInfoToJSON),
|
|
1285
|
+
requiresConfiguration: value["requiresConfiguration"],
|
|
1286
|
+
isOverridable: value["isOverridable"],
|
|
1287
|
+
hasWarnings: value["hasWarnings"],
|
|
1288
|
+
upgradeState: DeploymentUpgradeStateToJSON(value["upgradeState"]),
|
|
1289
|
+
upgradeConfigurationSource: ResetConfigurationSourceToJSON(value["upgradeConfigurationSource"]),
|
|
1290
|
+
resourceReplacement: DeploymentResourceReplacementDtoToJSON(value["resourceReplacement"]),
|
|
1291
|
+
selectedAction: DeploymentResourceValidationActionToJSON(value["selectedAction"])
|
|
1292
|
+
};
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
// generated/src/models/DeploymentResourceValidationErrorKind.ts
|
|
1296
|
+
var DeploymentResourceValidationErrorKind = {
|
|
1297
|
+
Conflict: "Conflict",
|
|
1298
|
+
ConfigurationError: "ConfigurationError"
|
|
1299
|
+
};
|
|
1300
|
+
function instanceOfDeploymentResourceValidationErrorKind(value) {
|
|
1301
|
+
for (const key in DeploymentResourceValidationErrorKind) {
|
|
1302
|
+
if (Object.prototype.hasOwnProperty.call(DeploymentResourceValidationErrorKind, key)) {
|
|
1303
|
+
if (DeploymentResourceValidationErrorKind[key] === value) {
|
|
1304
|
+
return true;
|
|
1305
|
+
}
|
|
1306
|
+
}
|
|
1307
|
+
}
|
|
1308
|
+
return false;
|
|
1309
|
+
}
|
|
1310
|
+
function DeploymentResourceValidationErrorKindFromJSON(json) {
|
|
1311
|
+
return DeploymentResourceValidationErrorKindFromJSONTyped(json, false);
|
|
1312
|
+
}
|
|
1313
|
+
function DeploymentResourceValidationErrorKindFromJSONTyped(json, ignoreDiscriminator) {
|
|
1314
|
+
return json;
|
|
1315
|
+
}
|
|
1316
|
+
function DeploymentResourceValidationErrorKindToJSON(value) {
|
|
1317
|
+
return value;
|
|
1318
|
+
}
|
|
1319
|
+
function DeploymentResourceValidationErrorKindToJSONTyped(value, ignoreDiscriminator) {
|
|
1320
|
+
return value;
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
// generated/src/models/DeploymentResourceValidationErrorLevel.ts
|
|
1324
|
+
var DeploymentResourceValidationErrorLevel = {
|
|
1325
|
+
Error: "Error",
|
|
1326
|
+
Warning: "Warning",
|
|
1327
|
+
Info: "Info"
|
|
1328
|
+
};
|
|
1329
|
+
function instanceOfDeploymentResourceValidationErrorLevel(value) {
|
|
1330
|
+
for (const key in DeploymentResourceValidationErrorLevel) {
|
|
1331
|
+
if (Object.prototype.hasOwnProperty.call(DeploymentResourceValidationErrorLevel, key)) {
|
|
1332
|
+
if (DeploymentResourceValidationErrorLevel[key] === value) {
|
|
1333
|
+
return true;
|
|
1334
|
+
}
|
|
1335
|
+
}
|
|
1336
|
+
}
|
|
1337
|
+
return false;
|
|
1338
|
+
}
|
|
1339
|
+
function DeploymentResourceValidationErrorLevelFromJSON(json) {
|
|
1340
|
+
return DeploymentResourceValidationErrorLevelFromJSONTyped(json, false);
|
|
1341
|
+
}
|
|
1342
|
+
function DeploymentResourceValidationErrorLevelFromJSONTyped(json, ignoreDiscriminator) {
|
|
1343
|
+
return json;
|
|
1344
|
+
}
|
|
1345
|
+
function DeploymentResourceValidationErrorLevelToJSON(value) {
|
|
1346
|
+
return value;
|
|
1347
|
+
}
|
|
1348
|
+
function DeploymentResourceValidationErrorLevelToJSONTyped(value, ignoreDiscriminator) {
|
|
1349
|
+
return value;
|
|
1350
|
+
}
|
|
1351
|
+
|
|
1352
|
+
// generated/src/models/DeploymentType.ts
|
|
1353
|
+
var DeploymentType = {
|
|
1354
|
+
Managed: "Managed",
|
|
1355
|
+
Unmanaged: "Unmanaged"
|
|
1356
|
+
};
|
|
1357
|
+
function instanceOfDeploymentType(value) {
|
|
1358
|
+
for (const key in DeploymentType) {
|
|
1359
|
+
if (Object.prototype.hasOwnProperty.call(DeploymentType, key)) {
|
|
1360
|
+
if (DeploymentType[key] === value) {
|
|
1361
|
+
return true;
|
|
1362
|
+
}
|
|
1363
|
+
}
|
|
1364
|
+
}
|
|
1365
|
+
return false;
|
|
1366
|
+
}
|
|
1367
|
+
function DeploymentTypeFromJSON(json) {
|
|
1368
|
+
return DeploymentTypeFromJSONTyped(json, false);
|
|
1369
|
+
}
|
|
1370
|
+
function DeploymentTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
1371
|
+
return json;
|
|
1372
|
+
}
|
|
1373
|
+
function DeploymentTypeToJSON(value) {
|
|
1374
|
+
return value;
|
|
1375
|
+
}
|
|
1376
|
+
function DeploymentTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
1377
|
+
return value;
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1380
|
+
// generated/src/models/DeploymentSearchItemDto2.ts
|
|
1381
|
+
function instanceOfDeploymentSearchItemDto2(value) {
|
|
1382
|
+
if (!("key" in value) || value["key"] === undefined)
|
|
1383
|
+
return false;
|
|
1384
|
+
if (!("installDeploymentKey" in value) || value["installDeploymentKey"] === undefined)
|
|
1385
|
+
return false;
|
|
1386
|
+
if (!("configurationKey" in value) || value["configurationKey"] === undefined)
|
|
1387
|
+
return false;
|
|
1388
|
+
if (!("packageVersionKey" in value) || value["packageVersionKey"] === undefined)
|
|
1389
|
+
return false;
|
|
1390
|
+
if (!("packageKey" in value) || value["packageKey"] === undefined)
|
|
1391
|
+
return false;
|
|
1392
|
+
if (!("packageName" in value) || value["packageName"] === undefined)
|
|
1393
|
+
return false;
|
|
1394
|
+
if (!("packageVersion" in value) || value["packageVersion"] === undefined)
|
|
1395
|
+
return false;
|
|
1396
|
+
if (!("packageVersionOrigin" in value) || value["packageVersionOrigin"] === undefined)
|
|
1397
|
+
return false;
|
|
1398
|
+
if (!("deploymentCreationTime" in value) || value["deploymentCreationTime"] === undefined)
|
|
1399
|
+
return false;
|
|
1400
|
+
if (!("actions" in value) || value["actions"] === undefined)
|
|
1401
|
+
return false;
|
|
1402
|
+
if (!("name" in value) || value["name"] === undefined)
|
|
1403
|
+
return false;
|
|
1404
|
+
if (!("type" in value) || value["type"] === undefined)
|
|
1405
|
+
return false;
|
|
1406
|
+
if (!("operation" in value) || value["operation"] === undefined)
|
|
1407
|
+
return false;
|
|
1408
|
+
if (!("operationStatus" in value) || value["operationStatus"] === undefined)
|
|
1409
|
+
return false;
|
|
1410
|
+
if (!("activationStatus" in value) || value["activationStatus"] === undefined)
|
|
1411
|
+
return false;
|
|
1412
|
+
if (!("authorName" in value) || value["authorName"] === undefined)
|
|
1413
|
+
return false;
|
|
1414
|
+
return true;
|
|
1415
|
+
}
|
|
1416
|
+
function DeploymentSearchItemDto2FromJSON(json) {
|
|
1417
|
+
return DeploymentSearchItemDto2FromJSONTyped(json, false);
|
|
1418
|
+
}
|
|
1419
|
+
function DeploymentSearchItemDto2FromJSONTyped(json, ignoreDiscriminator) {
|
|
1420
|
+
if (json == null) {
|
|
1421
|
+
return json;
|
|
1422
|
+
}
|
|
1423
|
+
return {
|
|
1424
|
+
key: json["key"],
|
|
1425
|
+
installDeploymentKey: json["installDeploymentKey"],
|
|
1426
|
+
instanceId: json["instanceId"] == null ? undefined : json["instanceId"],
|
|
1427
|
+
configurationKey: json["configurationKey"],
|
|
1428
|
+
packageVersionKey: json["packageVersionKey"],
|
|
1429
|
+
packageKey: json["packageKey"],
|
|
1430
|
+
packageName: json["packageName"],
|
|
1431
|
+
packageVersion: json["packageVersion"],
|
|
1432
|
+
currentPackageVersion: json["currentPackageVersion"] == null ? undefined : json["currentPackageVersion"],
|
|
1433
|
+
targetPackageVersion: json["targetPackageVersion"] == null ? undefined : json["targetPackageVersion"],
|
|
1434
|
+
packageVersionOrigin: PackageVersionOriginFromJSON(json["packageVersionOrigin"]),
|
|
1435
|
+
folderPath: json["folderPath"] == null ? undefined : json["folderPath"],
|
|
1436
|
+
installedRootFolderKey: json["installedRootFolderKey"] == null ? undefined : json["installedRootFolderKey"],
|
|
1437
|
+
installedRootFolderName: json["installedRootFolderName"] == null ? undefined : json["installedRootFolderName"],
|
|
1438
|
+
deploymentCreationTime: new Date(json["deploymentCreationTime"]),
|
|
1439
|
+
startTime: json["startTime"] == null ? undefined : new Date(json["startTime"]),
|
|
1440
|
+
endTime: json["endTime"] == null ? undefined : new Date(json["endTime"]),
|
|
1441
|
+
actions: json["actions"].map(WorkflowActionFromJSON),
|
|
1442
|
+
name: json["name"],
|
|
1443
|
+
type: DeploymentTypeFromJSON(json["type"]),
|
|
1444
|
+
operation: DeploymentOperationFromJSON(json["operation"]),
|
|
1445
|
+
operationStatus: DeploymentOperationStatusFromJSON(json["operationStatus"]),
|
|
1446
|
+
activationStatus: DeploymentActivationStatusFromJSON(json["activationStatus"]),
|
|
1447
|
+
newPackageVersionAvailable: json["newPackageVersionAvailable"] == null ? undefined : json["newPackageVersionAvailable"],
|
|
1448
|
+
packageVersionDescription: json["packageVersionDescription"] == null ? undefined : json["packageVersionDescription"],
|
|
1449
|
+
packageVersionReleaseNotes: json["packageVersionReleaseNotes"] == null ? undefined : json["packageVersionReleaseNotes"],
|
|
1450
|
+
authorName: json["authorName"],
|
|
1451
|
+
previousDeploymentKey: json["previousDeploymentKey"] == null ? undefined : json["previousDeploymentKey"],
|
|
1452
|
+
previousInstanceId: json["previousInstanceId"] == null ? undefined : json["previousInstanceId"]
|
|
1453
|
+
};
|
|
1454
|
+
}
|
|
1455
|
+
function DeploymentSearchItemDto2ToJSON(json) {
|
|
1456
|
+
return DeploymentSearchItemDto2ToJSONTyped(json, false);
|
|
1457
|
+
}
|
|
1458
|
+
function DeploymentSearchItemDto2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1459
|
+
if (value == null) {
|
|
1460
|
+
return value;
|
|
1461
|
+
}
|
|
1462
|
+
return {
|
|
1463
|
+
key: value["key"],
|
|
1464
|
+
installDeploymentKey: value["installDeploymentKey"],
|
|
1465
|
+
instanceId: value["instanceId"],
|
|
1466
|
+
configurationKey: value["configurationKey"],
|
|
1467
|
+
packageVersionKey: value["packageVersionKey"],
|
|
1468
|
+
packageKey: value["packageKey"],
|
|
1469
|
+
packageName: value["packageName"],
|
|
1470
|
+
packageVersion: value["packageVersion"],
|
|
1471
|
+
currentPackageVersion: value["currentPackageVersion"],
|
|
1472
|
+
targetPackageVersion: value["targetPackageVersion"],
|
|
1473
|
+
packageVersionOrigin: PackageVersionOriginToJSON(value["packageVersionOrigin"]),
|
|
1474
|
+
folderPath: value["folderPath"],
|
|
1475
|
+
installedRootFolderKey: value["installedRootFolderKey"],
|
|
1476
|
+
installedRootFolderName: value["installedRootFolderName"],
|
|
1477
|
+
deploymentCreationTime: value["deploymentCreationTime"].toISOString(),
|
|
1478
|
+
startTime: value["startTime"] == null ? value["startTime"] : value["startTime"].toISOString(),
|
|
1479
|
+
endTime: value["endTime"] == null ? value["endTime"] : value["endTime"].toISOString(),
|
|
1480
|
+
actions: value["actions"].map(WorkflowActionToJSON),
|
|
1481
|
+
name: value["name"],
|
|
1482
|
+
type: DeploymentTypeToJSON(value["type"]),
|
|
1483
|
+
operation: DeploymentOperationToJSON(value["operation"]),
|
|
1484
|
+
operationStatus: DeploymentOperationStatusToJSON(value["operationStatus"]),
|
|
1485
|
+
activationStatus: DeploymentActivationStatusToJSON(value["activationStatus"]),
|
|
1486
|
+
newPackageVersionAvailable: value["newPackageVersionAvailable"],
|
|
1487
|
+
packageVersionDescription: value["packageVersionDescription"],
|
|
1488
|
+
packageVersionReleaseNotes: value["packageVersionReleaseNotes"],
|
|
1489
|
+
authorName: value["authorName"],
|
|
1490
|
+
previousDeploymentKey: value["previousDeploymentKey"],
|
|
1491
|
+
previousInstanceId: value["previousInstanceId"]
|
|
1492
|
+
};
|
|
1493
|
+
}
|
|
1494
|
+
|
|
1495
|
+
// generated/src/models/ServiceMessage.ts
|
|
1496
|
+
function instanceOfServiceMessage(value) {
|
|
1497
|
+
if (!("resource" in value) || value["resource"] === undefined)
|
|
1498
|
+
return false;
|
|
1499
|
+
if (!("text" in value) || value["text"] === undefined)
|
|
1500
|
+
return false;
|
|
1501
|
+
if (!("parameters" in value) || value["parameters"] === undefined)
|
|
1502
|
+
return false;
|
|
1503
|
+
return true;
|
|
1504
|
+
}
|
|
1505
|
+
function ServiceMessageFromJSON(json) {
|
|
1506
|
+
return ServiceMessageFromJSONTyped(json, false);
|
|
1507
|
+
}
|
|
1508
|
+
function ServiceMessageFromJSONTyped(json, ignoreDiscriminator) {
|
|
1509
|
+
if (json == null) {
|
|
1510
|
+
return json;
|
|
1511
|
+
}
|
|
1512
|
+
return {
|
|
1513
|
+
resource: json["resource"],
|
|
1514
|
+
text: json["text"],
|
|
1515
|
+
parameters: json["parameters"],
|
|
1516
|
+
errorCode: json["errorCode"] == null ? undefined : json["errorCode"]
|
|
1517
|
+
};
|
|
1518
|
+
}
|
|
1519
|
+
function ServiceMessageToJSON(json) {
|
|
1520
|
+
return ServiceMessageToJSONTyped(json, false);
|
|
1521
|
+
}
|
|
1522
|
+
function ServiceMessageToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1523
|
+
if (value == null) {
|
|
1524
|
+
return value;
|
|
1525
|
+
}
|
|
1526
|
+
return {
|
|
1527
|
+
resource: value["resource"],
|
|
1528
|
+
text: value["text"],
|
|
1529
|
+
parameters: value["parameters"],
|
|
1530
|
+
errorCode: value["errorCode"]
|
|
1531
|
+
};
|
|
1532
|
+
}
|
|
1533
|
+
|
|
1534
|
+
// generated/src/models/ResourceValidationError.ts
|
|
1535
|
+
function instanceOfResourceValidationError(value) {
|
|
1536
|
+
if (!("resource" in value) || value["resource"] === undefined)
|
|
1537
|
+
return false;
|
|
1538
|
+
if (!("text" in value) || value["text"] === undefined)
|
|
1539
|
+
return false;
|
|
1540
|
+
if (!("parameters" in value) || value["parameters"] === undefined)
|
|
1541
|
+
return false;
|
|
1542
|
+
if (!("kind" in value) || value["kind"] === undefined)
|
|
1543
|
+
return false;
|
|
1544
|
+
if (!("level" in value) || value["level"] === undefined)
|
|
1545
|
+
return false;
|
|
1546
|
+
if (!("allowedActions" in value) || value["allowedActions"] === undefined)
|
|
1547
|
+
return false;
|
|
1548
|
+
return true;
|
|
1549
|
+
}
|
|
1550
|
+
function ResourceValidationErrorFromJSON(json) {
|
|
1551
|
+
return ResourceValidationErrorFromJSONTyped(json, false);
|
|
1552
|
+
}
|
|
1553
|
+
function ResourceValidationErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
1554
|
+
if (json == null) {
|
|
1555
|
+
return json;
|
|
1556
|
+
}
|
|
1557
|
+
return {
|
|
1558
|
+
resource: json["resource"],
|
|
1559
|
+
text: json["text"],
|
|
1560
|
+
parameters: json["parameters"],
|
|
1561
|
+
errorCode: json["errorCode"] == null ? undefined : json["errorCode"],
|
|
1562
|
+
kind: DeploymentResourceValidationErrorKindFromJSON(json["kind"]),
|
|
1563
|
+
level: DeploymentResourceValidationErrorLevelFromJSON(json["level"]),
|
|
1564
|
+
propertyName: json["propertyName"] == null ? undefined : json["propertyName"],
|
|
1565
|
+
allowedActions: json["allowedActions"].map(DeploymentResourceValidationActionFromJSON)
|
|
1566
|
+
};
|
|
1567
|
+
}
|
|
1568
|
+
function ResourceValidationErrorToJSON(json) {
|
|
1569
|
+
return ResourceValidationErrorToJSONTyped(json, false);
|
|
1570
|
+
}
|
|
1571
|
+
function ResourceValidationErrorToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1572
|
+
if (value == null) {
|
|
1573
|
+
return value;
|
|
1574
|
+
}
|
|
1575
|
+
return {
|
|
1576
|
+
resource: value["resource"],
|
|
1577
|
+
text: value["text"],
|
|
1578
|
+
parameters: value["parameters"],
|
|
1579
|
+
errorCode: value["errorCode"],
|
|
1580
|
+
kind: DeploymentResourceValidationErrorKindToJSON(value["kind"]),
|
|
1581
|
+
level: DeploymentResourceValidationErrorLevelToJSON(value["level"]),
|
|
1582
|
+
propertyName: value["propertyName"],
|
|
1583
|
+
allowedActions: value["allowedActions"].map(DeploymentResourceValidationActionToJSON)
|
|
1584
|
+
};
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1587
|
+
// generated/src/models/ResourceValidationDto.ts
|
|
1588
|
+
function instanceOfResourceValidationDto(value) {
|
|
1589
|
+
if (!("key" in value) || value["key"] === undefined)
|
|
1590
|
+
return false;
|
|
1591
|
+
if (!("name" in value) || value["name"] === undefined)
|
|
1592
|
+
return false;
|
|
1593
|
+
if (!("kind" in value) || value["kind"] === undefined)
|
|
1594
|
+
return false;
|
|
1595
|
+
if (!("serviceName" in value) || value["serviceName"] === undefined)
|
|
1596
|
+
return false;
|
|
1597
|
+
if (!("errors" in value) || value["errors"] === undefined)
|
|
1598
|
+
return false;
|
|
1599
|
+
return true;
|
|
1600
|
+
}
|
|
1601
|
+
function ResourceValidationDtoFromJSON(json) {
|
|
1602
|
+
return ResourceValidationDtoFromJSONTyped(json, false);
|
|
1603
|
+
}
|
|
1604
|
+
function ResourceValidationDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1605
|
+
if (json == null) {
|
|
1606
|
+
return json;
|
|
1607
|
+
}
|
|
1608
|
+
return {
|
|
1609
|
+
key: json["key"],
|
|
1610
|
+
name: json["name"],
|
|
1611
|
+
kind: json["kind"],
|
|
1612
|
+
serviceName: json["serviceName"],
|
|
1613
|
+
type: json["type"] == null ? undefined : json["type"],
|
|
1614
|
+
errors: json["errors"].map(ResourceValidationErrorFromJSON)
|
|
1615
|
+
};
|
|
1616
|
+
}
|
|
1617
|
+
function ResourceValidationDtoToJSON(json) {
|
|
1618
|
+
return ResourceValidationDtoToJSONTyped(json, false);
|
|
1619
|
+
}
|
|
1620
|
+
function ResourceValidationDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1621
|
+
if (value == null) {
|
|
1622
|
+
return value;
|
|
1623
|
+
}
|
|
1624
|
+
return {
|
|
1625
|
+
key: value["key"],
|
|
1626
|
+
name: value["name"],
|
|
1627
|
+
kind: value["kind"],
|
|
1628
|
+
serviceName: value["serviceName"],
|
|
1629
|
+
type: value["type"],
|
|
1630
|
+
errors: value["errors"].map(ResourceValidationErrorToJSON)
|
|
1631
|
+
};
|
|
1632
|
+
}
|
|
1633
|
+
|
|
1634
|
+
// generated/src/models/DeploymentValidationResultDto.ts
|
|
1635
|
+
function instanceOfDeploymentValidationResultDto(value) {
|
|
1636
|
+
if (!("validationErrors" in value) || value["validationErrors"] === undefined)
|
|
1637
|
+
return false;
|
|
1638
|
+
if (!("resourceValidationErrors" in value) || value["resourceValidationErrors"] === undefined)
|
|
1639
|
+
return false;
|
|
1640
|
+
return true;
|
|
1641
|
+
}
|
|
1642
|
+
function DeploymentValidationResultDtoFromJSON(json) {
|
|
1643
|
+
return DeploymentValidationResultDtoFromJSONTyped(json, false);
|
|
1644
|
+
}
|
|
1645
|
+
function DeploymentValidationResultDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1646
|
+
if (json == null) {
|
|
1647
|
+
return json;
|
|
1648
|
+
}
|
|
1649
|
+
return {
|
|
1650
|
+
success: json["success"] == null ? undefined : json["success"],
|
|
1651
|
+
validationErrors: json["validationErrors"].map(ServiceMessageFromJSON),
|
|
1652
|
+
resourceValidationErrors: json["resourceValidationErrors"].map(ResourceValidationDtoFromJSON)
|
|
1653
|
+
};
|
|
1654
|
+
}
|
|
1655
|
+
function DeploymentValidationResultDtoToJSON(json) {
|
|
1656
|
+
return DeploymentValidationResultDtoToJSONTyped(json, false);
|
|
1657
|
+
}
|
|
1658
|
+
function DeploymentValidationResultDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1659
|
+
if (value == null) {
|
|
1660
|
+
return value;
|
|
1661
|
+
}
|
|
1662
|
+
return {
|
|
1663
|
+
success: value["success"],
|
|
1664
|
+
validationErrors: value["validationErrors"].map(ServiceMessageToJSON),
|
|
1665
|
+
resourceValidationErrors: value["resourceValidationErrors"].map(ResourceValidationDtoToJSON)
|
|
1666
|
+
};
|
|
1667
|
+
}
|
|
1668
|
+
|
|
1669
|
+
// generated/src/models/OrderByDirection.ts
|
|
1670
|
+
var OrderByDirection = {
|
|
1671
|
+
Ascending: "Ascending",
|
|
1672
|
+
Descending: "Descending"
|
|
1673
|
+
};
|
|
1674
|
+
function instanceOfOrderByDirection(value) {
|
|
1675
|
+
for (const key in OrderByDirection) {
|
|
1676
|
+
if (Object.prototype.hasOwnProperty.call(OrderByDirection, key)) {
|
|
1677
|
+
if (OrderByDirection[key] === value) {
|
|
1678
|
+
return true;
|
|
1679
|
+
}
|
|
1680
|
+
}
|
|
1681
|
+
}
|
|
1682
|
+
return false;
|
|
1683
|
+
}
|
|
1684
|
+
function OrderByDirectionFromJSON(json) {
|
|
1685
|
+
return OrderByDirectionFromJSONTyped(json, false);
|
|
1686
|
+
}
|
|
1687
|
+
function OrderByDirectionFromJSONTyped(json, ignoreDiscriminator) {
|
|
1688
|
+
return json;
|
|
1689
|
+
}
|
|
1690
|
+
function OrderByDirectionToJSON(value) {
|
|
1691
|
+
return value;
|
|
1692
|
+
}
|
|
1693
|
+
function OrderByDirectionToJSONTyped(value, ignoreDiscriminator) {
|
|
1694
|
+
return value;
|
|
1695
|
+
}
|
|
1696
|
+
|
|
1697
|
+
// generated/src/models/DeploymentsSearchRequest2.ts
|
|
1698
|
+
function instanceOfDeploymentsSearchRequest2(value) {
|
|
1699
|
+
if (!("operationStatuses" in value) || value["operationStatuses"] === undefined)
|
|
1700
|
+
return false;
|
|
1701
|
+
if (!("activationStatuses" in value) || value["activationStatuses"] === undefined)
|
|
1702
|
+
return false;
|
|
1703
|
+
return true;
|
|
1704
|
+
}
|
|
1705
|
+
function DeploymentsSearchRequest2FromJSON(json) {
|
|
1706
|
+
return DeploymentsSearchRequest2FromJSONTyped(json, false);
|
|
1707
|
+
}
|
|
1708
|
+
function DeploymentsSearchRequest2FromJSONTyped(json, ignoreDiscriminator) {
|
|
1709
|
+
if (json == null) {
|
|
1710
|
+
return json;
|
|
1711
|
+
}
|
|
1712
|
+
return {
|
|
1713
|
+
orderByColumn: json["orderByColumn"] == null ? undefined : json["orderByColumn"],
|
|
1714
|
+
orderByDirection: json["orderByDirection"] == null ? undefined : OrderByDirectionFromJSON(json["orderByDirection"]),
|
|
1715
|
+
searchTerm: json["searchTerm"] == null ? undefined : json["searchTerm"],
|
|
1716
|
+
skip: json["skip"] == null ? undefined : json["skip"],
|
|
1717
|
+
take: json["take"] == null ? undefined : json["take"],
|
|
1718
|
+
operationStatuses: json["operationStatuses"].map(DeploymentOperationStatusFromJSON),
|
|
1719
|
+
operation: json["operation"] == null ? undefined : DeploymentOperationFromJSON(json["operation"]),
|
|
1720
|
+
activationStatuses: json["activationStatuses"].map(DeploymentActivationStatusFromJSON),
|
|
1721
|
+
packageName: json["packageName"] == null ? undefined : json["packageName"],
|
|
1722
|
+
packageVersion: json["packageVersion"] == null ? undefined : json["packageVersion"],
|
|
1723
|
+
currentPackageVersion: json["currentPackageVersion"] == null ? undefined : json["currentPackageVersion"],
|
|
1724
|
+
targetPackageVersion: json["targetPackageVersion"] == null ? undefined : json["targetPackageVersion"],
|
|
1725
|
+
targetFolderName: json["targetFolderName"] == null ? undefined : json["targetFolderName"],
|
|
1726
|
+
packageVersionKey: json["packageVersionKey"] == null ? undefined : json["packageVersionKey"]
|
|
1727
|
+
};
|
|
1728
|
+
}
|
|
1729
|
+
function DeploymentsSearchRequest2ToJSON(json) {
|
|
1730
|
+
return DeploymentsSearchRequest2ToJSONTyped(json, false);
|
|
1731
|
+
}
|
|
1732
|
+
function DeploymentsSearchRequest2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1733
|
+
if (value == null) {
|
|
1734
|
+
return value;
|
|
1735
|
+
}
|
|
1736
|
+
return {
|
|
1737
|
+
orderByColumn: value["orderByColumn"],
|
|
1738
|
+
orderByDirection: OrderByDirectionToJSON(value["orderByDirection"]),
|
|
1739
|
+
searchTerm: value["searchTerm"],
|
|
1740
|
+
skip: value["skip"],
|
|
1741
|
+
take: value["take"],
|
|
1742
|
+
operationStatuses: value["operationStatuses"].map(DeploymentOperationStatusToJSON),
|
|
1743
|
+
operation: DeploymentOperationToJSON(value["operation"]),
|
|
1744
|
+
activationStatuses: value["activationStatuses"].map(DeploymentActivationStatusToJSON),
|
|
1745
|
+
packageName: value["packageName"],
|
|
1746
|
+
packageVersion: value["packageVersion"],
|
|
1747
|
+
currentPackageVersion: value["currentPackageVersion"],
|
|
1748
|
+
targetPackageVersion: value["targetPackageVersion"],
|
|
1749
|
+
targetFolderName: value["targetFolderName"],
|
|
1750
|
+
packageVersionKey: value["packageVersionKey"]
|
|
1751
|
+
};
|
|
1752
|
+
}
|
|
1753
|
+
|
|
1754
|
+
// generated/src/models/ExtendedPackageVersionState.ts
|
|
1755
|
+
var ExtendedPackageVersionState = {
|
|
1756
|
+
Pending: "Pending",
|
|
1757
|
+
Ready: "Ready",
|
|
1758
|
+
Failed: "Failed",
|
|
1759
|
+
Active: "Active"
|
|
1760
|
+
};
|
|
1761
|
+
function instanceOfExtendedPackageVersionState(value) {
|
|
1762
|
+
for (const key in ExtendedPackageVersionState) {
|
|
1763
|
+
if (Object.prototype.hasOwnProperty.call(ExtendedPackageVersionState, key)) {
|
|
1764
|
+
if (ExtendedPackageVersionState[key] === value) {
|
|
1765
|
+
return true;
|
|
1766
|
+
}
|
|
1767
|
+
}
|
|
1768
|
+
}
|
|
1769
|
+
return false;
|
|
1770
|
+
}
|
|
1771
|
+
function ExtendedPackageVersionStateFromJSON(json) {
|
|
1772
|
+
return ExtendedPackageVersionStateFromJSONTyped(json, false);
|
|
1773
|
+
}
|
|
1774
|
+
function ExtendedPackageVersionStateFromJSONTyped(json, ignoreDiscriminator) {
|
|
1775
|
+
return json;
|
|
1776
|
+
}
|
|
1777
|
+
function ExtendedPackageVersionStateToJSON(value) {
|
|
1778
|
+
return value;
|
|
1779
|
+
}
|
|
1780
|
+
function ExtendedPackageVersionStateToJSONTyped(value, ignoreDiscriminator) {
|
|
1781
|
+
return value;
|
|
1782
|
+
}
|
|
1783
|
+
|
|
1784
|
+
// generated/src/models/LocationDto.ts
|
|
1785
|
+
function instanceOfLocationDto(value) {
|
|
1786
|
+
if (!("name" in value) || value["name"] === undefined)
|
|
1787
|
+
return false;
|
|
1788
|
+
if (!("key" in value) || value["key"] === undefined)
|
|
1789
|
+
return false;
|
|
1790
|
+
if (!("isPersonalWorkspace" in value) || value["isPersonalWorkspace"] === undefined)
|
|
1791
|
+
return false;
|
|
1792
|
+
return true;
|
|
1793
|
+
}
|
|
1794
|
+
function LocationDtoFromJSON(json) {
|
|
1795
|
+
return LocationDtoFromJSONTyped(json, false);
|
|
1796
|
+
}
|
|
1797
|
+
function LocationDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1798
|
+
if (json == null) {
|
|
1799
|
+
return json;
|
|
1800
|
+
}
|
|
1801
|
+
return {
|
|
1802
|
+
name: json["name"],
|
|
1803
|
+
key: json["key"],
|
|
1804
|
+
isPersonalWorkspace: json["isPersonalWorkspace"]
|
|
1805
|
+
};
|
|
1806
|
+
}
|
|
1807
|
+
function LocationDtoToJSON(json) {
|
|
1808
|
+
return LocationDtoToJSONTyped(json, false);
|
|
1809
|
+
}
|
|
1810
|
+
function LocationDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1811
|
+
if (value == null) {
|
|
1812
|
+
return value;
|
|
1813
|
+
}
|
|
1814
|
+
return {
|
|
1815
|
+
name: value["name"],
|
|
1816
|
+
key: value["key"],
|
|
1817
|
+
isPersonalWorkspace: value["isPersonalWorkspace"]
|
|
1818
|
+
};
|
|
1819
|
+
}
|
|
1820
|
+
|
|
1821
|
+
// generated/src/models/PackageInfo.ts
|
|
1822
|
+
function instanceOfPackageInfo(value) {
|
|
1823
|
+
if (!("key" in value) || value["key"] === undefined)
|
|
1824
|
+
return false;
|
|
1825
|
+
if (!("name" in value) || value["name"] === undefined)
|
|
1826
|
+
return false;
|
|
1827
|
+
if (!("latestVersion" in value) || value["latestVersion"] === undefined)
|
|
1828
|
+
return false;
|
|
1829
|
+
if (!("packageVersionKey" in value) || value["packageVersionKey"] === undefined)
|
|
1830
|
+
return false;
|
|
1831
|
+
if (!("authorName" in value) || value["authorName"] === undefined)
|
|
1832
|
+
return false;
|
|
1833
|
+
if (!("publishDate" in value) || value["publishDate"] === undefined)
|
|
1834
|
+
return false;
|
|
1835
|
+
if (!("state" in value) || value["state"] === undefined)
|
|
1836
|
+
return false;
|
|
1837
|
+
if (!("solutionRootFolderName" in value) || value["solutionRootFolderName"] === undefined)
|
|
1838
|
+
return false;
|
|
1839
|
+
if (!("hasUpgradeableDeployments" in value) || value["hasUpgradeableDeployments"] === undefined)
|
|
1840
|
+
return false;
|
|
1841
|
+
return true;
|
|
1842
|
+
}
|
|
1843
|
+
function PackageInfoFromJSON(json) {
|
|
1844
|
+
return PackageInfoFromJSONTyped(json, false);
|
|
1845
|
+
}
|
|
1846
|
+
function PackageInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1847
|
+
if (json == null) {
|
|
1848
|
+
return json;
|
|
1849
|
+
}
|
|
1850
|
+
return {
|
|
1851
|
+
key: json["key"],
|
|
1852
|
+
name: json["name"],
|
|
1853
|
+
latestVersion: json["latestVersion"],
|
|
1854
|
+
packageVersionKey: json["packageVersionKey"],
|
|
1855
|
+
authorName: json["authorName"],
|
|
1856
|
+
authorEmail: json["authorEmail"] == null ? undefined : json["authorEmail"],
|
|
1857
|
+
publishDate: new Date(json["publishDate"]),
|
|
1858
|
+
description: json["description"] == null ? undefined : json["description"],
|
|
1859
|
+
releaseNotes: json["releaseNotes"] == null ? undefined : json["releaseNotes"],
|
|
1860
|
+
state: ExtendedPackageVersionStateFromJSON(json["state"]),
|
|
1861
|
+
solutionRootFolderName: json["solutionRootFolderName"],
|
|
1862
|
+
hasUpgradeableDeployments: json["hasUpgradeableDeployments"]
|
|
1863
|
+
};
|
|
1864
|
+
}
|
|
1865
|
+
function PackageInfoToJSON(json) {
|
|
1866
|
+
return PackageInfoToJSONTyped(json, false);
|
|
1867
|
+
}
|
|
1868
|
+
function PackageInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1869
|
+
if (value == null) {
|
|
1870
|
+
return value;
|
|
1871
|
+
}
|
|
1872
|
+
return {
|
|
1873
|
+
key: value["key"],
|
|
1874
|
+
name: value["name"],
|
|
1875
|
+
latestVersion: value["latestVersion"],
|
|
1876
|
+
packageVersionKey: value["packageVersionKey"],
|
|
1877
|
+
authorName: value["authorName"],
|
|
1878
|
+
authorEmail: value["authorEmail"],
|
|
1879
|
+
publishDate: value["publishDate"].toISOString(),
|
|
1880
|
+
description: value["description"],
|
|
1881
|
+
releaseNotes: value["releaseNotes"],
|
|
1882
|
+
state: ExtendedPackageVersionStateToJSON(value["state"]),
|
|
1883
|
+
solutionRootFolderName: value["solutionRootFolderName"],
|
|
1884
|
+
hasUpgradeableDeployments: value["hasUpgradeableDeployments"]
|
|
1885
|
+
};
|
|
1886
|
+
}
|
|
1887
|
+
|
|
1888
|
+
// generated/src/models/ResourceStats.ts
|
|
1889
|
+
function instanceOfResourceStats(value) {
|
|
1890
|
+
if (!("count" in value) || value["count"] === undefined)
|
|
1891
|
+
return false;
|
|
1892
|
+
if (!("kind" in value) || value["kind"] === undefined)
|
|
1893
|
+
return false;
|
|
1894
|
+
if (!("serviceName" in value) || value["serviceName"] === undefined)
|
|
1895
|
+
return false;
|
|
1896
|
+
return true;
|
|
1897
|
+
}
|
|
1898
|
+
function ResourceStatsFromJSON(json) {
|
|
1899
|
+
return ResourceStatsFromJSONTyped(json, false);
|
|
1900
|
+
}
|
|
1901
|
+
function ResourceStatsFromJSONTyped(json, ignoreDiscriminator) {
|
|
1902
|
+
if (json == null) {
|
|
1903
|
+
return json;
|
|
1904
|
+
}
|
|
1905
|
+
return {
|
|
1906
|
+
count: json["count"],
|
|
1907
|
+
kind: json["kind"],
|
|
1908
|
+
serviceName: json["serviceName"]
|
|
1909
|
+
};
|
|
1910
|
+
}
|
|
1911
|
+
function ResourceStatsToJSON(json) {
|
|
1912
|
+
return ResourceStatsToJSONTyped(json, false);
|
|
1913
|
+
}
|
|
1914
|
+
function ResourceStatsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1915
|
+
if (value == null) {
|
|
1916
|
+
return value;
|
|
1917
|
+
}
|
|
1918
|
+
return {
|
|
1919
|
+
count: value["count"],
|
|
1920
|
+
kind: value["kind"],
|
|
1921
|
+
serviceName: value["serviceName"]
|
|
1922
|
+
};
|
|
1923
|
+
}
|
|
1924
|
+
|
|
1925
|
+
// generated/src/models/PackageVersionResourceDto.ts
|
|
1926
|
+
function instanceOfPackageVersionResourceDto(value) {
|
|
1927
|
+
if (!("key" in value) || value["key"] === undefined)
|
|
1928
|
+
return false;
|
|
1929
|
+
if (!("name" in value) || value["name"] === undefined)
|
|
1930
|
+
return false;
|
|
1931
|
+
if (!("kind" in value) || value["kind"] === undefined)
|
|
1932
|
+
return false;
|
|
1933
|
+
if (!("apiVersion" in value) || value["apiVersion"] === undefined)
|
|
1934
|
+
return false;
|
|
1935
|
+
if (!("folders" in value) || value["folders"] === undefined)
|
|
1936
|
+
return false;
|
|
1937
|
+
return true;
|
|
1938
|
+
}
|
|
1939
|
+
function PackageVersionResourceDtoFromJSON(json) {
|
|
1940
|
+
return PackageVersionResourceDtoFromJSONTyped(json, false);
|
|
1941
|
+
}
|
|
1942
|
+
function PackageVersionResourceDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1943
|
+
if (json == null) {
|
|
1944
|
+
return json;
|
|
1945
|
+
}
|
|
1946
|
+
return {
|
|
1947
|
+
key: json["key"],
|
|
1948
|
+
name: json["name"],
|
|
1949
|
+
kind: json["kind"],
|
|
1950
|
+
type: json["type"] == null ? undefined : json["type"],
|
|
1951
|
+
apiVersion: json["apiVersion"],
|
|
1952
|
+
folders: json["folders"].map(FolderInfoFromJSON)
|
|
1953
|
+
};
|
|
1954
|
+
}
|
|
1955
|
+
function PackageVersionResourceDtoToJSON(json) {
|
|
1956
|
+
return PackageVersionResourceDtoToJSONTyped(json, false);
|
|
1957
|
+
}
|
|
1958
|
+
function PackageVersionResourceDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1959
|
+
if (value == null) {
|
|
1960
|
+
return value;
|
|
1961
|
+
}
|
|
1962
|
+
return {
|
|
1963
|
+
key: value["key"],
|
|
1964
|
+
name: value["name"],
|
|
1965
|
+
kind: value["kind"],
|
|
1966
|
+
type: value["type"],
|
|
1967
|
+
apiVersion: value["apiVersion"],
|
|
1968
|
+
folders: value["folders"].map(FolderInfoToJSON)
|
|
1969
|
+
};
|
|
1970
|
+
}
|
|
1971
|
+
|
|
1972
|
+
// generated/src/models/PackageVersionComponentsDto.ts
|
|
1973
|
+
function instanceOfPackageVersionComponentsDto(value) {
|
|
1974
|
+
if (!("count" in value) || value["count"] === undefined)
|
|
1975
|
+
return false;
|
|
1976
|
+
if (!("resources" in value) || value["resources"] === undefined)
|
|
1977
|
+
return false;
|
|
1978
|
+
if (!("stats" in value) || value["stats"] === undefined)
|
|
1979
|
+
return false;
|
|
1980
|
+
return true;
|
|
1981
|
+
}
|
|
1982
|
+
function PackageVersionComponentsDtoFromJSON(json) {
|
|
1983
|
+
return PackageVersionComponentsDtoFromJSONTyped(json, false);
|
|
1984
|
+
}
|
|
1985
|
+
function PackageVersionComponentsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1986
|
+
if (json == null) {
|
|
1987
|
+
return json;
|
|
1988
|
+
}
|
|
1989
|
+
return {
|
|
1990
|
+
count: json["count"],
|
|
1991
|
+
resources: json["resources"].map(PackageVersionResourceDtoFromJSON),
|
|
1992
|
+
stats: json["stats"].map(ResourceStatsFromJSON)
|
|
1993
|
+
};
|
|
1994
|
+
}
|
|
1995
|
+
function PackageVersionComponentsDtoToJSON(json) {
|
|
1996
|
+
return PackageVersionComponentsDtoToJSONTyped(json, false);
|
|
1997
|
+
}
|
|
1998
|
+
function PackageVersionComponentsDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1999
|
+
if (value == null) {
|
|
2000
|
+
return value;
|
|
2001
|
+
}
|
|
2002
|
+
return {
|
|
2003
|
+
count: value["count"],
|
|
2004
|
+
resources: value["resources"].map(PackageVersionResourceDtoToJSON),
|
|
2005
|
+
stats: value["stats"].map(ResourceStatsToJSON)
|
|
2006
|
+
};
|
|
2007
|
+
}
|
|
2008
|
+
|
|
2009
|
+
// generated/src/models/PackageVersionInfoDto.ts
|
|
2010
|
+
function instanceOfPackageVersionInfoDto(value) {
|
|
2011
|
+
if (!("key" in value) || value["key"] === undefined)
|
|
2012
|
+
return false;
|
|
2013
|
+
if (!("packageName" in value) || value["packageName"] === undefined)
|
|
2014
|
+
return false;
|
|
2015
|
+
if (!("packageVersion" in value) || value["packageVersion"] === undefined)
|
|
2016
|
+
return false;
|
|
2017
|
+
if (!("publishDate" in value) || value["publishDate"] === undefined)
|
|
2018
|
+
return false;
|
|
2019
|
+
if (!("authorName" in value) || value["authorName"] === undefined)
|
|
2020
|
+
return false;
|
|
2021
|
+
if (!("state" in value) || value["state"] === undefined)
|
|
2022
|
+
return false;
|
|
2023
|
+
if (!("solutionRootFolderName" in value) || value["solutionRootFolderName"] === undefined)
|
|
2024
|
+
return false;
|
|
2025
|
+
return true;
|
|
2026
|
+
}
|
|
2027
|
+
function PackageVersionInfoDtoFromJSON(json) {
|
|
2028
|
+
return PackageVersionInfoDtoFromJSONTyped(json, false);
|
|
2029
|
+
}
|
|
2030
|
+
function PackageVersionInfoDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
2031
|
+
if (json == null) {
|
|
2032
|
+
return json;
|
|
2033
|
+
}
|
|
2034
|
+
return {
|
|
2035
|
+
key: json["key"],
|
|
2036
|
+
packageName: json["packageName"],
|
|
2037
|
+
packageVersion: json["packageVersion"],
|
|
2038
|
+
publishDate: new Date(json["publishDate"]),
|
|
2039
|
+
authorName: json["authorName"],
|
|
2040
|
+
authorEmail: json["authorEmail"] == null ? undefined : json["authorEmail"],
|
|
2041
|
+
description: json["description"] == null ? undefined : json["description"],
|
|
2042
|
+
releaseNotes: json["releaseNotes"] == null ? undefined : json["releaseNotes"],
|
|
2043
|
+
state: ExtendedPackageVersionStateFromJSON(json["state"]),
|
|
2044
|
+
solutionRootFolderName: json["solutionRootFolderName"],
|
|
2045
|
+
locationKey: json["locationKey"] == null ? undefined : json["locationKey"],
|
|
2046
|
+
components: json["components"] == null ? undefined : PackageVersionComponentsDtoFromJSON(json["components"])
|
|
2047
|
+
};
|
|
2048
|
+
}
|
|
2049
|
+
function PackageVersionInfoDtoToJSON(json) {
|
|
2050
|
+
return PackageVersionInfoDtoToJSONTyped(json, false);
|
|
2051
|
+
}
|
|
2052
|
+
function PackageVersionInfoDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2053
|
+
if (value == null) {
|
|
2054
|
+
return value;
|
|
2055
|
+
}
|
|
2056
|
+
return {
|
|
2057
|
+
key: value["key"],
|
|
2058
|
+
packageName: value["packageName"],
|
|
2059
|
+
packageVersion: value["packageVersion"],
|
|
2060
|
+
publishDate: value["publishDate"].toISOString(),
|
|
2061
|
+
authorName: value["authorName"],
|
|
2062
|
+
authorEmail: value["authorEmail"],
|
|
2063
|
+
description: value["description"],
|
|
2064
|
+
releaseNotes: value["releaseNotes"],
|
|
2065
|
+
state: ExtendedPackageVersionStateToJSON(value["state"]),
|
|
2066
|
+
solutionRootFolderName: value["solutionRootFolderName"],
|
|
2067
|
+
locationKey: value["locationKey"],
|
|
2068
|
+
components: PackageVersionComponentsDtoToJSON(value["components"])
|
|
2069
|
+
};
|
|
2070
|
+
}
|
|
2071
|
+
|
|
2072
|
+
// generated/src/models/PageInfoDtoOfDeploymentResourceInfo.ts
|
|
2073
|
+
function instanceOfPageInfoDtoOfDeploymentResourceInfo(value) {
|
|
2074
|
+
if (!("count" in value) || value["count"] === undefined)
|
|
2075
|
+
return false;
|
|
2076
|
+
if (!("values" in value) || value["values"] === undefined)
|
|
2077
|
+
return false;
|
|
2078
|
+
return true;
|
|
2079
|
+
}
|
|
2080
|
+
function PageInfoDtoOfDeploymentResourceInfoFromJSON(json) {
|
|
2081
|
+
return PageInfoDtoOfDeploymentResourceInfoFromJSONTyped(json, false);
|
|
2082
|
+
}
|
|
2083
|
+
function PageInfoDtoOfDeploymentResourceInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
2084
|
+
if (json == null) {
|
|
2085
|
+
return json;
|
|
2086
|
+
}
|
|
2087
|
+
return {
|
|
2088
|
+
count: json["count"],
|
|
2089
|
+
values: json["values"].map(DeploymentResourceInfoFromJSON)
|
|
2090
|
+
};
|
|
2091
|
+
}
|
|
2092
|
+
function PageInfoDtoOfDeploymentResourceInfoToJSON(json) {
|
|
2093
|
+
return PageInfoDtoOfDeploymentResourceInfoToJSONTyped(json, false);
|
|
2094
|
+
}
|
|
2095
|
+
function PageInfoDtoOfDeploymentResourceInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2096
|
+
if (value == null) {
|
|
2097
|
+
return value;
|
|
2098
|
+
}
|
|
2099
|
+
return {
|
|
2100
|
+
count: value["count"],
|
|
2101
|
+
values: value["values"].map(DeploymentResourceInfoToJSON)
|
|
2102
|
+
};
|
|
2103
|
+
}
|
|
2104
|
+
|
|
2105
|
+
// generated/src/models/PageInfoDtoOfDeploymentSearchItemDto2.ts
|
|
2106
|
+
function instanceOfPageInfoDtoOfDeploymentSearchItemDto2(value) {
|
|
2107
|
+
if (!("count" in value) || value["count"] === undefined)
|
|
2108
|
+
return false;
|
|
2109
|
+
if (!("values" in value) || value["values"] === undefined)
|
|
2110
|
+
return false;
|
|
2111
|
+
return true;
|
|
2112
|
+
}
|
|
2113
|
+
function PageInfoDtoOfDeploymentSearchItemDto2FromJSON(json) {
|
|
2114
|
+
return PageInfoDtoOfDeploymentSearchItemDto2FromJSONTyped(json, false);
|
|
2115
|
+
}
|
|
2116
|
+
function PageInfoDtoOfDeploymentSearchItemDto2FromJSONTyped(json, ignoreDiscriminator) {
|
|
2117
|
+
if (json == null) {
|
|
2118
|
+
return json;
|
|
2119
|
+
}
|
|
2120
|
+
return {
|
|
2121
|
+
count: json["count"],
|
|
2122
|
+
values: json["values"].map(DeploymentSearchItemDto2FromJSON)
|
|
2123
|
+
};
|
|
2124
|
+
}
|
|
2125
|
+
function PageInfoDtoOfDeploymentSearchItemDto2ToJSON(json) {
|
|
2126
|
+
return PageInfoDtoOfDeploymentSearchItemDto2ToJSONTyped(json, false);
|
|
2127
|
+
}
|
|
2128
|
+
function PageInfoDtoOfDeploymentSearchItemDto2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2129
|
+
if (value == null) {
|
|
2130
|
+
return value;
|
|
2131
|
+
}
|
|
2132
|
+
return {
|
|
2133
|
+
count: value["count"],
|
|
2134
|
+
values: value["values"].map(DeploymentSearchItemDto2ToJSON)
|
|
2135
|
+
};
|
|
2136
|
+
}
|
|
2137
|
+
|
|
2138
|
+
// generated/src/models/PageInfoDtoOfPackageInfo.ts
|
|
2139
|
+
function instanceOfPageInfoDtoOfPackageInfo(value) {
|
|
2140
|
+
if (!("count" in value) || value["count"] === undefined)
|
|
2141
|
+
return false;
|
|
2142
|
+
if (!("values" in value) || value["values"] === undefined)
|
|
2143
|
+
return false;
|
|
2144
|
+
return true;
|
|
2145
|
+
}
|
|
2146
|
+
function PageInfoDtoOfPackageInfoFromJSON(json) {
|
|
2147
|
+
return PageInfoDtoOfPackageInfoFromJSONTyped(json, false);
|
|
2148
|
+
}
|
|
2149
|
+
function PageInfoDtoOfPackageInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
2150
|
+
if (json == null) {
|
|
2151
|
+
return json;
|
|
2152
|
+
}
|
|
2153
|
+
return {
|
|
2154
|
+
count: json["count"],
|
|
2155
|
+
values: json["values"].map(PackageInfoFromJSON)
|
|
2156
|
+
};
|
|
2157
|
+
}
|
|
2158
|
+
function PageInfoDtoOfPackageInfoToJSON(json) {
|
|
2159
|
+
return PageInfoDtoOfPackageInfoToJSONTyped(json, false);
|
|
2160
|
+
}
|
|
2161
|
+
function PageInfoDtoOfPackageInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2162
|
+
if (value == null) {
|
|
2163
|
+
return value;
|
|
2164
|
+
}
|
|
2165
|
+
return {
|
|
2166
|
+
count: value["count"],
|
|
2167
|
+
values: value["values"].map(PackageInfoToJSON)
|
|
2168
|
+
};
|
|
2169
|
+
}
|
|
2170
|
+
|
|
2171
|
+
// generated/src/models/ProblemDetails.ts
|
|
2172
|
+
function instanceOfProblemDetails(value) {
|
|
2173
|
+
return true;
|
|
2174
|
+
}
|
|
2175
|
+
function ProblemDetailsFromJSON(json) {
|
|
2176
|
+
return ProblemDetailsFromJSONTyped(json, false);
|
|
2177
|
+
}
|
|
2178
|
+
function ProblemDetailsFromJSONTyped(json, ignoreDiscriminator) {
|
|
2179
|
+
if (json == null) {
|
|
2180
|
+
return json;
|
|
2181
|
+
}
|
|
2182
|
+
return {
|
|
2183
|
+
...json,
|
|
2184
|
+
type: json["type"] == null ? undefined : json["type"],
|
|
2185
|
+
title: json["title"] == null ? undefined : json["title"],
|
|
2186
|
+
status: json["status"] == null ? undefined : json["status"],
|
|
2187
|
+
detail: json["detail"] == null ? undefined : json["detail"],
|
|
2188
|
+
instance: json["instance"] == null ? undefined : json["instance"]
|
|
2189
|
+
};
|
|
2190
|
+
}
|
|
2191
|
+
function ProblemDetailsToJSON(json) {
|
|
2192
|
+
return ProblemDetailsToJSONTyped(json, false);
|
|
2193
|
+
}
|
|
2194
|
+
function ProblemDetailsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2195
|
+
if (value == null) {
|
|
2196
|
+
return value;
|
|
2197
|
+
}
|
|
2198
|
+
return {
|
|
2199
|
+
...value,
|
|
2200
|
+
type: value["type"],
|
|
2201
|
+
title: value["title"],
|
|
2202
|
+
status: value["status"],
|
|
2203
|
+
detail: value["detail"],
|
|
2204
|
+
instance: value["instance"]
|
|
2205
|
+
};
|
|
2206
|
+
}
|
|
2207
|
+
|
|
2208
|
+
// generated/src/models/ProjectCreateRequest.ts
|
|
2209
|
+
function instanceOfProjectCreateRequest(value) {
|
|
2210
|
+
if (!("name" in value) || value["name"] === undefined)
|
|
2211
|
+
return false;
|
|
2212
|
+
return true;
|
|
2213
|
+
}
|
|
2214
|
+
function ProjectCreateRequestFromJSON(json) {
|
|
2215
|
+
return ProjectCreateRequestFromJSONTyped(json, false);
|
|
2216
|
+
}
|
|
2217
|
+
function ProjectCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
2218
|
+
if (json == null) {
|
|
2219
|
+
return json;
|
|
2220
|
+
}
|
|
2221
|
+
return {
|
|
2222
|
+
name: json["name"],
|
|
2223
|
+
description: json["description"] == null ? undefined : json["description"]
|
|
2224
|
+
};
|
|
2225
|
+
}
|
|
2226
|
+
function ProjectCreateRequestToJSON(json) {
|
|
2227
|
+
return ProjectCreateRequestToJSONTyped(json, false);
|
|
2228
|
+
}
|
|
2229
|
+
function ProjectCreateRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2230
|
+
if (value == null) {
|
|
2231
|
+
return value;
|
|
2232
|
+
}
|
|
2233
|
+
return {
|
|
2234
|
+
name: value["name"],
|
|
2235
|
+
description: value["description"]
|
|
2236
|
+
};
|
|
2237
|
+
}
|
|
2238
|
+
|
|
2239
|
+
// generated/src/models/ProjectImportStatus.ts
|
|
2240
|
+
var ProjectImportStatus = {
|
|
2241
|
+
InProgress: "InProgress",
|
|
2242
|
+
Completed: "Completed",
|
|
2243
|
+
Failed: "Failed",
|
|
2244
|
+
NotApplicable: "NotApplicable"
|
|
2245
|
+
};
|
|
2246
|
+
function instanceOfProjectImportStatus(value) {
|
|
2247
|
+
for (const key in ProjectImportStatus) {
|
|
2248
|
+
if (Object.prototype.hasOwnProperty.call(ProjectImportStatus, key)) {
|
|
2249
|
+
if (ProjectImportStatus[key] === value) {
|
|
2250
|
+
return true;
|
|
2251
|
+
}
|
|
2252
|
+
}
|
|
2253
|
+
}
|
|
2254
|
+
return false;
|
|
2255
|
+
}
|
|
2256
|
+
function ProjectImportStatusFromJSON(json) {
|
|
2257
|
+
return ProjectImportStatusFromJSONTyped(json, false);
|
|
2258
|
+
}
|
|
2259
|
+
function ProjectImportStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
2260
|
+
return json;
|
|
2261
|
+
}
|
|
2262
|
+
function ProjectImportStatusToJSON(value) {
|
|
2263
|
+
return value;
|
|
2264
|
+
}
|
|
2265
|
+
function ProjectImportStatusToJSONTyped(value, ignoreDiscriminator) {
|
|
2266
|
+
return value;
|
|
2267
|
+
}
|
|
2268
|
+
|
|
2269
|
+
// generated/src/models/ProjectDto.ts
|
|
2270
|
+
function instanceOfProjectDto(value) {
|
|
2271
|
+
if (!("key" in value) || value["key"] === undefined)
|
|
2272
|
+
return false;
|
|
2273
|
+
if (!("name" in value) || value["name"] === undefined)
|
|
2274
|
+
return false;
|
|
2275
|
+
if (!("isEmpty" in value) || value["isEmpty"] === undefined)
|
|
2276
|
+
return false;
|
|
2277
|
+
if (!("importStatus" in value) || value["importStatus"] === undefined)
|
|
2278
|
+
return false;
|
|
2279
|
+
return true;
|
|
2280
|
+
}
|
|
2281
|
+
function ProjectDtoFromJSON(json) {
|
|
2282
|
+
return ProjectDtoFromJSONTyped(json, false);
|
|
2283
|
+
}
|
|
2284
|
+
function ProjectDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
2285
|
+
if (json == null) {
|
|
2286
|
+
return json;
|
|
2287
|
+
}
|
|
2288
|
+
return {
|
|
2289
|
+
key: json["key"],
|
|
2290
|
+
name: json["name"],
|
|
2291
|
+
description: json["description"] == null ? undefined : json["description"],
|
|
2292
|
+
solutionRootFolderName: json["solutionRootFolderName"] == null ? undefined : json["solutionRootFolderName"],
|
|
2293
|
+
isEmpty: json["isEmpty"],
|
|
2294
|
+
originatedPackageVersionKey: json["originatedPackageVersionKey"] == null ? undefined : json["originatedPackageVersionKey"],
|
|
2295
|
+
latestPublishedPackageVersionKey: json["latestPublishedPackageVersionKey"] == null ? undefined : json["latestPublishedPackageVersionKey"],
|
|
2296
|
+
importStatus: ProjectImportStatusFromJSON(json["importStatus"])
|
|
2297
|
+
};
|
|
2298
|
+
}
|
|
2299
|
+
function ProjectDtoToJSON(json) {
|
|
2300
|
+
return ProjectDtoToJSONTyped(json, false);
|
|
2301
|
+
}
|
|
2302
|
+
function ProjectDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2303
|
+
if (value == null) {
|
|
2304
|
+
return value;
|
|
2305
|
+
}
|
|
2306
|
+
return {
|
|
2307
|
+
key: value["key"],
|
|
2308
|
+
name: value["name"],
|
|
2309
|
+
description: value["description"],
|
|
2310
|
+
solutionRootFolderName: value["solutionRootFolderName"],
|
|
2311
|
+
isEmpty: value["isEmpty"],
|
|
2312
|
+
originatedPackageVersionKey: value["originatedPackageVersionKey"],
|
|
2313
|
+
latestPublishedPackageVersionKey: value["latestPublishedPackageVersionKey"],
|
|
2314
|
+
importStatus: ProjectImportStatusToJSON(value["importStatus"])
|
|
2315
|
+
};
|
|
2316
|
+
}
|
|
2317
|
+
|
|
2318
|
+
// generated/src/models/SearchFilter.ts
|
|
2319
|
+
function instanceOfSearchFilter(value) {
|
|
2320
|
+
return true;
|
|
2321
|
+
}
|
|
2322
|
+
function SearchFilterFromJSON(json) {
|
|
2323
|
+
return SearchFilterFromJSONTyped(json, false);
|
|
2324
|
+
}
|
|
2325
|
+
function SearchFilterFromJSONTyped(json, ignoreDiscriminator) {
|
|
2326
|
+
if (json == null) {
|
|
2327
|
+
return json;
|
|
2328
|
+
}
|
|
2329
|
+
return {
|
|
2330
|
+
skip: json["skip"] == null ? undefined : json["skip"],
|
|
2331
|
+
take: json["take"] == null ? undefined : json["take"],
|
|
2332
|
+
orderByColumn: json["orderByColumn"] == null ? undefined : json["orderByColumn"],
|
|
2333
|
+
orderByDirection: json["orderByDirection"] == null ? undefined : OrderByDirectionFromJSON(json["orderByDirection"]),
|
|
2334
|
+
searchTerm: json["searchTerm"] == null ? undefined : json["searchTerm"]
|
|
2335
|
+
};
|
|
2336
|
+
}
|
|
2337
|
+
function SearchFilterToJSON(json) {
|
|
2338
|
+
return SearchFilterToJSONTyped(json, false);
|
|
2339
|
+
}
|
|
2340
|
+
function SearchFilterToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2341
|
+
if (value == null) {
|
|
2342
|
+
return value;
|
|
2343
|
+
}
|
|
2344
|
+
return {
|
|
2345
|
+
skip: value["skip"],
|
|
2346
|
+
take: value["take"],
|
|
2347
|
+
orderByColumn: value["orderByColumn"],
|
|
2348
|
+
orderByDirection: OrderByDirectionToJSON(value["orderByDirection"]),
|
|
2349
|
+
searchTerm: value["searchTerm"]
|
|
2350
|
+
};
|
|
2351
|
+
}
|
|
2352
|
+
|
|
2353
|
+
// generated/src/models/SolutionDeploymentAction.ts
|
|
2354
|
+
var SolutionDeploymentAction = {
|
|
2355
|
+
Install: "Install",
|
|
2356
|
+
Uninstall: "Uninstall",
|
|
2357
|
+
Upgrade: "Upgrade",
|
|
2358
|
+
Rollback: "Rollback",
|
|
2359
|
+
Activate: "Activate"
|
|
2360
|
+
};
|
|
2361
|
+
function instanceOfSolutionDeploymentAction(value) {
|
|
2362
|
+
for (const key in SolutionDeploymentAction) {
|
|
2363
|
+
if (Object.prototype.hasOwnProperty.call(SolutionDeploymentAction, key)) {
|
|
2364
|
+
if (SolutionDeploymentAction[key] === value) {
|
|
2365
|
+
return true;
|
|
2366
|
+
}
|
|
2367
|
+
}
|
|
2368
|
+
}
|
|
2369
|
+
return false;
|
|
2370
|
+
}
|
|
2371
|
+
function SolutionDeploymentActionFromJSON(json) {
|
|
2372
|
+
return SolutionDeploymentActionFromJSONTyped(json, false);
|
|
2373
|
+
}
|
|
2374
|
+
function SolutionDeploymentActionFromJSONTyped(json, ignoreDiscriminator) {
|
|
2375
|
+
return json;
|
|
2376
|
+
}
|
|
2377
|
+
function SolutionDeploymentActionToJSON(value) {
|
|
2378
|
+
return value;
|
|
2379
|
+
}
|
|
2380
|
+
function SolutionDeploymentActionToJSONTyped(value, ignoreDiscriminator) {
|
|
2381
|
+
return value;
|
|
2382
|
+
}
|
|
2383
|
+
// generated/src/apis/ConfigurationsApi.ts
|
|
2384
|
+
class ConfigurationsApi extends BaseAPI {
|
|
2385
|
+
async configurationsPostRaw(requestParameters, initOverrides) {
|
|
2386
|
+
if (requestParameters["createConfigurationCommand"] == null) {
|
|
2387
|
+
throw new RequiredError("createConfigurationCommand", 'Required parameter "createConfigurationCommand" was null or undefined when calling configurationsPost().');
|
|
2388
|
+
}
|
|
2389
|
+
const queryParameters = {};
|
|
2390
|
+
const headerParameters = {};
|
|
2391
|
+
headerParameters["Content-Type"] = "application/json";
|
|
2392
|
+
if (requestParameters["xUipathAsVersion"] != null) {
|
|
2393
|
+
headerParameters["x-uipath-as-version"] = String(requestParameters["xUipathAsVersion"]);
|
|
2394
|
+
}
|
|
2395
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2396
|
+
const token = this.configuration.accessToken;
|
|
2397
|
+
const tokenString = await token("Bearer", []);
|
|
2398
|
+
if (tokenString) {
|
|
2399
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2400
|
+
}
|
|
2401
|
+
}
|
|
2402
|
+
let urlPath = `/api/configurations`;
|
|
2403
|
+
const response = await this.request({
|
|
2404
|
+
path: urlPath,
|
|
2405
|
+
method: "POST",
|
|
2406
|
+
headers: headerParameters,
|
|
2407
|
+
query: queryParameters,
|
|
2408
|
+
body: CreateConfigurationCommandToJSON(requestParameters["createConfigurationCommand"])
|
|
2409
|
+
}, initOverrides);
|
|
2410
|
+
if (this.isJsonMime(response.headers.get("content-type"))) {
|
|
2411
|
+
return new JSONApiResponse(response);
|
|
2412
|
+
} else {
|
|
2413
|
+
return new TextApiResponse(response);
|
|
2414
|
+
}
|
|
2415
|
+
}
|
|
2416
|
+
async configurationsPost(requestParameters, initOverrides) {
|
|
2417
|
+
const response = await this.configurationsPostRaw(requestParameters, initOverrides);
|
|
2418
|
+
return await response.value();
|
|
2419
|
+
}
|
|
2420
|
+
}
|
|
2421
|
+
|
|
2422
|
+
// generated/src/apis/DeploymentsApi.ts
|
|
2423
|
+
class DeploymentsApi extends BaseAPI {
|
|
2424
|
+
async deploymentsDeleteRaw(requestParameters, initOverrides) {
|
|
2425
|
+
if (requestParameters["deploymentKey"] == null) {
|
|
2426
|
+
throw new RequiredError("deploymentKey", 'Required parameter "deploymentKey" was null or undefined when calling deploymentsDelete().');
|
|
2427
|
+
}
|
|
2428
|
+
const queryParameters = {};
|
|
2429
|
+
const headerParameters = {};
|
|
2430
|
+
if (requestParameters["xUipathAsVersion"] != null) {
|
|
2431
|
+
headerParameters["x-uipath-as-version"] = String(requestParameters["xUipathAsVersion"]);
|
|
2432
|
+
}
|
|
2433
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2434
|
+
const token = this.configuration.accessToken;
|
|
2435
|
+
const tokenString = await token("Bearer", []);
|
|
2436
|
+
if (tokenString) {
|
|
2437
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2438
|
+
}
|
|
2439
|
+
}
|
|
2440
|
+
let urlPath = `/api/deployments/{deploymentKey}`;
|
|
2441
|
+
urlPath = urlPath.replace(`{${"deploymentKey"}}`, encodeURIComponent(String(requestParameters["deploymentKey"])));
|
|
2442
|
+
const response = await this.request({
|
|
2443
|
+
path: urlPath,
|
|
2444
|
+
method: "DELETE",
|
|
2445
|
+
headers: headerParameters,
|
|
2446
|
+
query: queryParameters
|
|
2447
|
+
}, initOverrides);
|
|
2448
|
+
return new VoidApiResponse(response);
|
|
2449
|
+
}
|
|
2450
|
+
async deploymentsDelete(requestParameters, initOverrides) {
|
|
2451
|
+
await this.deploymentsDeleteRaw(requestParameters, initOverrides);
|
|
2452
|
+
}
|
|
2453
|
+
async deploymentsDeployRaw(requestParameters, initOverrides) {
|
|
2454
|
+
if (requestParameters["deploymentAutoRequest"] == null) {
|
|
2455
|
+
throw new RequiredError("deploymentAutoRequest", 'Required parameter "deploymentAutoRequest" was null or undefined when calling deploymentsDeploy().');
|
|
2456
|
+
}
|
|
2457
|
+
const queryParameters = {};
|
|
2458
|
+
const headerParameters = {};
|
|
2459
|
+
headerParameters["Content-Type"] = "application/json";
|
|
2460
|
+
if (requestParameters["xUIPATHFolderKey"] != null) {
|
|
2461
|
+
headerParameters["X-UIPATH-FolderKey"] = String(requestParameters["xUIPATHFolderKey"]);
|
|
2462
|
+
}
|
|
2463
|
+
if (requestParameters["xUipathAsVersion"] != null) {
|
|
2464
|
+
headerParameters["x-uipath-as-version"] = String(requestParameters["xUipathAsVersion"]);
|
|
2465
|
+
}
|
|
2466
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2467
|
+
const token = this.configuration.accessToken;
|
|
2468
|
+
const tokenString = await token("Bearer", []);
|
|
2469
|
+
if (tokenString) {
|
|
2470
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2471
|
+
}
|
|
2472
|
+
}
|
|
2473
|
+
let urlPath = `/api/deployments/deploy`;
|
|
2474
|
+
const response = await this.request({
|
|
2475
|
+
path: urlPath,
|
|
2476
|
+
method: "POST",
|
|
2477
|
+
headers: headerParameters,
|
|
2478
|
+
query: queryParameters,
|
|
2479
|
+
body: DeploymentAutoRequestToJSON(requestParameters["deploymentAutoRequest"])
|
|
2480
|
+
}, initOverrides);
|
|
2481
|
+
return new JSONApiResponse(response, (jsonValue) => DeploymentDtoFromJSON(jsonValue));
|
|
2482
|
+
}
|
|
2483
|
+
async deploymentsDeploy(requestParameters, initOverrides) {
|
|
2484
|
+
const response = await this.deploymentsDeployRaw(requestParameters, initOverrides);
|
|
2485
|
+
return await response.value();
|
|
2486
|
+
}
|
|
2487
|
+
async deploymentsGetByKeyRaw(requestParameters, initOverrides) {
|
|
2488
|
+
if (requestParameters["deploymentKey"] == null) {
|
|
2489
|
+
throw new RequiredError("deploymentKey", 'Required parameter "deploymentKey" was null or undefined when calling deploymentsGetByKey().');
|
|
2490
|
+
}
|
|
2491
|
+
const queryParameters = {};
|
|
2492
|
+
const headerParameters = {};
|
|
2493
|
+
if (requestParameters["xUipathAsVersion"] != null) {
|
|
2494
|
+
headerParameters["x-uipath-as-version"] = String(requestParameters["xUipathAsVersion"]);
|
|
2495
|
+
}
|
|
2496
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2497
|
+
const token = this.configuration.accessToken;
|
|
2498
|
+
const tokenString = await token("Bearer", []);
|
|
2499
|
+
if (tokenString) {
|
|
2500
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2501
|
+
}
|
|
2502
|
+
}
|
|
2503
|
+
let urlPath = `/api/deployments/{deploymentKey}`;
|
|
2504
|
+
urlPath = urlPath.replace(`{${"deploymentKey"}}`, encodeURIComponent(String(requestParameters["deploymentKey"])));
|
|
2505
|
+
const response = await this.request({
|
|
2506
|
+
path: urlPath,
|
|
2507
|
+
method: "GET",
|
|
2508
|
+
headers: headerParameters,
|
|
2509
|
+
query: queryParameters
|
|
2510
|
+
}, initOverrides);
|
|
2511
|
+
return new JSONApiResponse(response, (jsonValue) => DeploymentItemDtoFromJSON(jsonValue));
|
|
2512
|
+
}
|
|
2513
|
+
async deploymentsGetByKey(requestParameters, initOverrides) {
|
|
2514
|
+
const response = await this.deploymentsGetByKeyRaw(requestParameters, initOverrides);
|
|
2515
|
+
return await response.value();
|
|
2516
|
+
}
|
|
2517
|
+
async deploymentsGetDeploymentResourcesRaw(requestParameters, initOverrides) {
|
|
2518
|
+
if (requestParameters["deploymentKey"] == null) {
|
|
2519
|
+
throw new RequiredError("deploymentKey", 'Required parameter "deploymentKey" was null or undefined when calling deploymentsGetDeploymentResources().');
|
|
2520
|
+
}
|
|
2521
|
+
const queryParameters = {};
|
|
2522
|
+
if (requestParameters["folderKey"] != null) {
|
|
2523
|
+
queryParameters["folderKey"] = requestParameters["folderKey"];
|
|
2524
|
+
}
|
|
2525
|
+
if (requestParameters["kind"] != null) {
|
|
2526
|
+
queryParameters["kind"] = requestParameters["kind"];
|
|
2527
|
+
}
|
|
2528
|
+
if (requestParameters["skip"] != null) {
|
|
2529
|
+
queryParameters["skip"] = requestParameters["skip"];
|
|
2530
|
+
}
|
|
2531
|
+
if (requestParameters["take"] != null) {
|
|
2532
|
+
queryParameters["take"] = requestParameters["take"];
|
|
2533
|
+
}
|
|
2534
|
+
const headerParameters = {};
|
|
2535
|
+
if (requestParameters["xUipathAsVersion"] != null) {
|
|
2536
|
+
headerParameters["x-uipath-as-version"] = String(requestParameters["xUipathAsVersion"]);
|
|
2537
|
+
}
|
|
2538
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2539
|
+
const token = this.configuration.accessToken;
|
|
2540
|
+
const tokenString = await token("Bearer", []);
|
|
2541
|
+
if (tokenString) {
|
|
2542
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2543
|
+
}
|
|
2544
|
+
}
|
|
2545
|
+
let urlPath = `/api/deployments/{deploymentKey}/resources`;
|
|
2546
|
+
urlPath = urlPath.replace(`{${"deploymentKey"}}`, encodeURIComponent(String(requestParameters["deploymentKey"])));
|
|
2547
|
+
const response = await this.request({
|
|
2548
|
+
path: urlPath,
|
|
2549
|
+
method: "GET",
|
|
2550
|
+
headers: headerParameters,
|
|
2551
|
+
query: queryParameters
|
|
2552
|
+
}, initOverrides);
|
|
2553
|
+
return new JSONApiResponse(response, (jsonValue) => PageInfoDtoOfDeploymentResourceInfoFromJSON(jsonValue));
|
|
2554
|
+
}
|
|
2555
|
+
async deploymentsGetDeploymentResources(requestParameters, initOverrides) {
|
|
2556
|
+
const response = await this.deploymentsGetDeploymentResourcesRaw(requestParameters, initOverrides);
|
|
2557
|
+
return await response.value();
|
|
2558
|
+
}
|
|
2559
|
+
async deploymentsGetValidationResultRaw(requestParameters, initOverrides) {
|
|
2560
|
+
if (requestParameters["deploymentKey"] == null) {
|
|
2561
|
+
throw new RequiredError("deploymentKey", 'Required parameter "deploymentKey" was null or undefined when calling deploymentsGetValidationResult().');
|
|
2562
|
+
}
|
|
2563
|
+
const queryParameters = {};
|
|
2564
|
+
if (requestParameters["deploymentAction"] != null) {
|
|
2565
|
+
queryParameters["deploymentAction"] = requestParameters["deploymentAction"];
|
|
2566
|
+
}
|
|
2567
|
+
const headerParameters = {};
|
|
2568
|
+
if (requestParameters["xUipathAsVersion"] != null) {
|
|
2569
|
+
headerParameters["x-uipath-as-version"] = String(requestParameters["xUipathAsVersion"]);
|
|
2570
|
+
}
|
|
2571
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2572
|
+
const token = this.configuration.accessToken;
|
|
2573
|
+
const tokenString = await token("Bearer", []);
|
|
2574
|
+
if (tokenString) {
|
|
2575
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2576
|
+
}
|
|
2577
|
+
}
|
|
2578
|
+
let urlPath = `/api/deployments/{deploymentKey}/validation-result`;
|
|
2579
|
+
urlPath = urlPath.replace(`{${"deploymentKey"}}`, encodeURIComponent(String(requestParameters["deploymentKey"])));
|
|
2580
|
+
const response = await this.request({
|
|
2581
|
+
path: urlPath,
|
|
2582
|
+
method: "GET",
|
|
2583
|
+
headers: headerParameters,
|
|
2584
|
+
query: queryParameters
|
|
2585
|
+
}, initOverrides);
|
|
2586
|
+
return new JSONApiResponse(response, (jsonValue) => DeploymentValidationResultDtoFromJSON(jsonValue));
|
|
2587
|
+
}
|
|
2588
|
+
async deploymentsGetValidationResult(requestParameters, initOverrides) {
|
|
2589
|
+
const response = await this.deploymentsGetValidationResultRaw(requestParameters, initOverrides);
|
|
2590
|
+
return await response.value();
|
|
2591
|
+
}
|
|
2592
|
+
async deploymentsPostRaw(requestParameters, initOverrides) {
|
|
2593
|
+
if (requestParameters["deploymentRequest"] == null) {
|
|
2594
|
+
throw new RequiredError("deploymentRequest", 'Required parameter "deploymentRequest" was null or undefined when calling deploymentsPost().');
|
|
2595
|
+
}
|
|
2596
|
+
const queryParameters = {};
|
|
2597
|
+
const headerParameters = {};
|
|
2598
|
+
headerParameters["Content-Type"] = "application/json";
|
|
2599
|
+
if (requestParameters["xUipathAsVersion"] != null) {
|
|
2600
|
+
headerParameters["x-uipath-as-version"] = String(requestParameters["xUipathAsVersion"]);
|
|
2601
|
+
}
|
|
2602
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2603
|
+
const token = this.configuration.accessToken;
|
|
2604
|
+
const tokenString = await token("Bearer", []);
|
|
2605
|
+
if (tokenString) {
|
|
2606
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2607
|
+
}
|
|
2608
|
+
}
|
|
2609
|
+
let urlPath = `/api/deployments`;
|
|
2610
|
+
const response = await this.request({
|
|
2611
|
+
path: urlPath,
|
|
2612
|
+
method: "POST",
|
|
2613
|
+
headers: headerParameters,
|
|
2614
|
+
query: queryParameters,
|
|
2615
|
+
body: DeploymentRequestToJSON(requestParameters["deploymentRequest"])
|
|
2616
|
+
}, initOverrides);
|
|
2617
|
+
return new JSONApiResponse(response, (jsonValue) => DeploymentItemDtoFromJSON(jsonValue));
|
|
2618
|
+
}
|
|
2619
|
+
async deploymentsPost(requestParameters, initOverrides) {
|
|
2620
|
+
const response = await this.deploymentsPostRaw(requestParameters, initOverrides);
|
|
2621
|
+
return await response.value();
|
|
2622
|
+
}
|
|
2623
|
+
}
|
|
2624
|
+
|
|
2625
|
+
// generated/src/apis/PackagesApi.ts
|
|
2626
|
+
class PackagesApi extends BaseAPI {
|
|
2627
|
+
async packagesDeletePackageRaw(requestParameters, initOverrides) {
|
|
2628
|
+
if (requestParameters["packageKey"] == null) {
|
|
2629
|
+
throw new RequiredError("packageKey", 'Required parameter "packageKey" was null or undefined when calling packagesDeletePackage().');
|
|
2630
|
+
}
|
|
2631
|
+
const queryParameters = {};
|
|
2632
|
+
const headerParameters = {};
|
|
2633
|
+
if (requestParameters["xUipathAsVersion"] != null) {
|
|
2634
|
+
headerParameters["x-uipath-as-version"] = String(requestParameters["xUipathAsVersion"]);
|
|
2635
|
+
}
|
|
2636
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2637
|
+
const token = this.configuration.accessToken;
|
|
2638
|
+
const tokenString = await token("Bearer", []);
|
|
2639
|
+
if (tokenString) {
|
|
2640
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2641
|
+
}
|
|
2642
|
+
}
|
|
2643
|
+
let urlPath = `/api/packages/{packageKey}`;
|
|
2644
|
+
urlPath = urlPath.replace(`{${"packageKey"}}`, encodeURIComponent(String(requestParameters["packageKey"])));
|
|
2645
|
+
const response = await this.request({
|
|
2646
|
+
path: urlPath,
|
|
2647
|
+
method: "DELETE",
|
|
2648
|
+
headers: headerParameters,
|
|
2649
|
+
query: queryParameters
|
|
2650
|
+
}, initOverrides);
|
|
2651
|
+
return new VoidApiResponse(response);
|
|
2652
|
+
}
|
|
2653
|
+
async packagesDeletePackage(requestParameters, initOverrides) {
|
|
2654
|
+
await this.packagesDeletePackageRaw(requestParameters, initOverrides);
|
|
2655
|
+
}
|
|
2656
|
+
async packagesDeleteVersionRaw(requestParameters, initOverrides) {
|
|
2657
|
+
if (requestParameters["packageVersionKey"] == null) {
|
|
2658
|
+
throw new RequiredError("packageVersionKey", 'Required parameter "packageVersionKey" was null or undefined when calling packagesDeleteVersion().');
|
|
2659
|
+
}
|
|
2660
|
+
const queryParameters = {};
|
|
2661
|
+
const headerParameters = {};
|
|
2662
|
+
if (requestParameters["xUipathAsVersion"] != null) {
|
|
2663
|
+
headerParameters["x-uipath-as-version"] = String(requestParameters["xUipathAsVersion"]);
|
|
2664
|
+
}
|
|
2665
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2666
|
+
const token = this.configuration.accessToken;
|
|
2667
|
+
const tokenString = await token("Bearer", []);
|
|
2668
|
+
if (tokenString) {
|
|
2669
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2670
|
+
}
|
|
2671
|
+
}
|
|
2672
|
+
let urlPath = `/api/packages/versions/{packageVersionKey}`;
|
|
2673
|
+
urlPath = urlPath.replace(`{${"packageVersionKey"}}`, encodeURIComponent(String(requestParameters["packageVersionKey"])));
|
|
2674
|
+
const response = await this.request({
|
|
2675
|
+
path: urlPath,
|
|
2676
|
+
method: "DELETE",
|
|
2677
|
+
headers: headerParameters,
|
|
2678
|
+
query: queryParameters
|
|
2679
|
+
}, initOverrides);
|
|
2680
|
+
return new VoidApiResponse(response);
|
|
2681
|
+
}
|
|
2682
|
+
async packagesDeleteVersion(requestParameters, initOverrides) {
|
|
2683
|
+
await this.packagesDeleteVersionRaw(requestParameters, initOverrides);
|
|
2684
|
+
}
|
|
2685
|
+
async packagesDownloadRaw(requestParameters, initOverrides) {
|
|
2686
|
+
if (requestParameters["packageVersionKey"] == null) {
|
|
2687
|
+
throw new RequiredError("packageVersionKey", 'Required parameter "packageVersionKey" was null or undefined when calling packagesDownload().');
|
|
2688
|
+
}
|
|
2689
|
+
const queryParameters = {};
|
|
2690
|
+
const headerParameters = {};
|
|
2691
|
+
if (requestParameters["xUipathAsVersion"] != null) {
|
|
2692
|
+
headerParameters["x-uipath-as-version"] = String(requestParameters["xUipathAsVersion"]);
|
|
2693
|
+
}
|
|
2694
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2695
|
+
const token = this.configuration.accessToken;
|
|
2696
|
+
const tokenString = await token("Bearer", []);
|
|
2697
|
+
if (tokenString) {
|
|
2698
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2699
|
+
}
|
|
2700
|
+
}
|
|
2701
|
+
let urlPath = `/api/packages/{packageVersionKey}/download`;
|
|
2702
|
+
urlPath = urlPath.replace(`{${"packageVersionKey"}}`, encodeURIComponent(String(requestParameters["packageVersionKey"])));
|
|
2703
|
+
const response = await this.request({
|
|
2704
|
+
path: urlPath,
|
|
2705
|
+
method: "GET",
|
|
2706
|
+
headers: headerParameters,
|
|
2707
|
+
query: queryParameters
|
|
2708
|
+
}, initOverrides);
|
|
2709
|
+
return new JSONApiResponse(response, (jsonValue) => BlobFileAccessDtoFromJSON(jsonValue));
|
|
2710
|
+
}
|
|
2711
|
+
async packagesDownload(requestParameters, initOverrides) {
|
|
2712
|
+
const response = await this.packagesDownloadRaw(requestParameters, initOverrides);
|
|
2713
|
+
return await response.value();
|
|
2714
|
+
}
|
|
2715
|
+
async packagesGetPackageRaw(requestParameters, initOverrides) {
|
|
2716
|
+
if (requestParameters["packageKey"] == null) {
|
|
2717
|
+
throw new RequiredError("packageKey", 'Required parameter "packageKey" was null or undefined when calling packagesGetPackage().');
|
|
2718
|
+
}
|
|
2719
|
+
const queryParameters = {};
|
|
2720
|
+
const headerParameters = {};
|
|
2721
|
+
if (requestParameters["xUipathAsVersion"] != null) {
|
|
2722
|
+
headerParameters["x-uipath-as-version"] = String(requestParameters["xUipathAsVersion"]);
|
|
2723
|
+
}
|
|
2724
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2725
|
+
const token = this.configuration.accessToken;
|
|
2726
|
+
const tokenString = await token("Bearer", []);
|
|
2727
|
+
if (tokenString) {
|
|
2728
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2729
|
+
}
|
|
2730
|
+
}
|
|
2731
|
+
let urlPath = `/api/packages/{packageKey}`;
|
|
2732
|
+
urlPath = urlPath.replace(`{${"packageKey"}}`, encodeURIComponent(String(requestParameters["packageKey"])));
|
|
2733
|
+
const response = await this.request({
|
|
2734
|
+
path: urlPath,
|
|
2735
|
+
method: "GET",
|
|
2736
|
+
headers: headerParameters,
|
|
2737
|
+
query: queryParameters
|
|
2738
|
+
}, initOverrides);
|
|
2739
|
+
return new JSONApiResponse(response, (jsonValue) => PackageInfoFromJSON(jsonValue));
|
|
2740
|
+
}
|
|
2741
|
+
async packagesGetPackage(requestParameters, initOverrides) {
|
|
2742
|
+
const response = await this.packagesGetPackageRaw(requestParameters, initOverrides);
|
|
2743
|
+
return await response.value();
|
|
2744
|
+
}
|
|
2745
|
+
async packagesGetPublishLocationsRaw(requestParameters, initOverrides) {
|
|
2746
|
+
const queryParameters = {};
|
|
2747
|
+
const headerParameters = {};
|
|
2748
|
+
if (requestParameters["xUipathAsVersion"] != null) {
|
|
2749
|
+
headerParameters["x-uipath-as-version"] = String(requestParameters["xUipathAsVersion"]);
|
|
2750
|
+
}
|
|
2751
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2752
|
+
const token = this.configuration.accessToken;
|
|
2753
|
+
const tokenString = await token("Bearer", []);
|
|
2754
|
+
if (tokenString) {
|
|
2755
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2756
|
+
}
|
|
2757
|
+
}
|
|
2758
|
+
let urlPath = `/api/packages/publish-locations`;
|
|
2759
|
+
const response = await this.request({
|
|
2760
|
+
path: urlPath,
|
|
2761
|
+
method: "GET",
|
|
2762
|
+
headers: headerParameters,
|
|
2763
|
+
query: queryParameters
|
|
2764
|
+
}, initOverrides);
|
|
2765
|
+
return new JSONApiResponse(response, (jsonValue) => jsonValue.map(LocationDtoFromJSON));
|
|
2766
|
+
}
|
|
2767
|
+
async packagesGetPublishLocations(requestParameters = {}, initOverrides) {
|
|
2768
|
+
const response = await this.packagesGetPublishLocationsRaw(requestParameters, initOverrides);
|
|
2769
|
+
return await response.value();
|
|
2770
|
+
}
|
|
2771
|
+
async packagesGetVersionRaw(requestParameters, initOverrides) {
|
|
2772
|
+
if (requestParameters["packageVersionKey"] == null) {
|
|
2773
|
+
throw new RequiredError("packageVersionKey", 'Required parameter "packageVersionKey" was null or undefined when calling packagesGetVersion().');
|
|
2774
|
+
}
|
|
2775
|
+
const queryParameters = {};
|
|
2776
|
+
const headerParameters = {};
|
|
2777
|
+
if (requestParameters["xUipathAsVersion"] != null) {
|
|
2778
|
+
headerParameters["x-uipath-as-version"] = String(requestParameters["xUipathAsVersion"]);
|
|
2779
|
+
}
|
|
2780
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2781
|
+
const token = this.configuration.accessToken;
|
|
2782
|
+
const tokenString = await token("Bearer", []);
|
|
2783
|
+
if (tokenString) {
|
|
2784
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2785
|
+
}
|
|
2786
|
+
}
|
|
2787
|
+
let urlPath = `/api/packages/versions/{packageVersionKey}`;
|
|
2788
|
+
urlPath = urlPath.replace(`{${"packageVersionKey"}}`, encodeURIComponent(String(requestParameters["packageVersionKey"])));
|
|
2789
|
+
const response = await this.request({
|
|
2790
|
+
path: urlPath,
|
|
2791
|
+
method: "GET",
|
|
2792
|
+
headers: headerParameters,
|
|
2793
|
+
query: queryParameters
|
|
2794
|
+
}, initOverrides);
|
|
2795
|
+
return new JSONApiResponse(response, (jsonValue) => PackageVersionInfoDtoFromJSON(jsonValue));
|
|
2796
|
+
}
|
|
2797
|
+
async packagesGetVersion(requestParameters, initOverrides) {
|
|
2798
|
+
const response = await this.packagesGetVersionRaw(requestParameters, initOverrides);
|
|
2799
|
+
return await response.value();
|
|
2800
|
+
}
|
|
2801
|
+
async packagesUploadRaw(requestParameters, initOverrides) {
|
|
2802
|
+
const queryParameters = {};
|
|
2803
|
+
if (requestParameters["locationKey"] != null) {
|
|
2804
|
+
queryParameters["locationKey"] = requestParameters["locationKey"];
|
|
2805
|
+
}
|
|
2806
|
+
const headerParameters = {};
|
|
2807
|
+
headerParameters["Content-Type"] = "application/zip";
|
|
2808
|
+
if (requestParameters["xUipathAsVersion"] != null) {
|
|
2809
|
+
headerParameters["x-uipath-as-version"] = String(requestParameters["xUipathAsVersion"]);
|
|
2810
|
+
}
|
|
2811
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2812
|
+
const token = this.configuration.accessToken;
|
|
2813
|
+
const tokenString = await token("Bearer", []);
|
|
2814
|
+
if (tokenString) {
|
|
2815
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2816
|
+
}
|
|
2817
|
+
}
|
|
2818
|
+
let urlPath = `/api/packages/upload`;
|
|
2819
|
+
const response = await this.request({
|
|
2820
|
+
path: urlPath,
|
|
2821
|
+
method: "POST",
|
|
2822
|
+
headers: headerParameters,
|
|
2823
|
+
query: queryParameters,
|
|
2824
|
+
body: requestParameters["body"]
|
|
2825
|
+
}, initOverrides);
|
|
2826
|
+
if (this.isJsonMime(response.headers.get("content-type"))) {
|
|
2827
|
+
return new JSONApiResponse(response);
|
|
2828
|
+
} else {
|
|
2829
|
+
return new TextApiResponse(response);
|
|
2830
|
+
}
|
|
2831
|
+
}
|
|
2832
|
+
async packagesUpload(requestParameters = {}, initOverrides) {
|
|
2833
|
+
const response = await this.packagesUploadRaw(requestParameters, initOverrides);
|
|
2834
|
+
return await response.value();
|
|
2835
|
+
}
|
|
2836
|
+
}
|
|
2837
|
+
|
|
2838
|
+
// generated/src/apis/ProjectsApi.ts
|
|
2839
|
+
class ProjectsApi extends BaseAPI {
|
|
2840
|
+
async projectsPostRaw(requestParameters, initOverrides) {
|
|
2841
|
+
if (requestParameters["projectCreateRequest"] == null) {
|
|
2842
|
+
throw new RequiredError("projectCreateRequest", 'Required parameter "projectCreateRequest" was null or undefined when calling projectsPost().');
|
|
2843
|
+
}
|
|
2844
|
+
const queryParameters = {};
|
|
2845
|
+
const headerParameters = {};
|
|
2846
|
+
headerParameters["Content-Type"] = "application/json";
|
|
2847
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2848
|
+
const token = this.configuration.accessToken;
|
|
2849
|
+
const tokenString = await token("Bearer", []);
|
|
2850
|
+
if (tokenString) {
|
|
2851
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2852
|
+
}
|
|
2853
|
+
}
|
|
2854
|
+
let urlPath = `/api/v1/projects`;
|
|
2855
|
+
const response = await this.request({
|
|
2856
|
+
path: urlPath,
|
|
2857
|
+
method: "POST",
|
|
2858
|
+
headers: headerParameters,
|
|
2859
|
+
query: queryParameters,
|
|
2860
|
+
body: ProjectCreateRequestToJSON(requestParameters["projectCreateRequest"])
|
|
2861
|
+
}, initOverrides);
|
|
2862
|
+
return new JSONApiResponse(response, (jsonValue) => ProjectDtoFromJSON(jsonValue));
|
|
2863
|
+
}
|
|
2864
|
+
async projectsPost(requestParameters, initOverrides) {
|
|
2865
|
+
const response = await this.projectsPostRaw(requestParameters, initOverrides);
|
|
2866
|
+
return await response.value();
|
|
2867
|
+
}
|
|
2868
|
+
async projectsPost2Raw(requestParameters, initOverrides) {
|
|
2869
|
+
if (requestParameters["projectCreateRequest"] == null) {
|
|
2870
|
+
throw new RequiredError("projectCreateRequest", 'Required parameter "projectCreateRequest" was null or undefined when calling projectsPost2().');
|
|
2871
|
+
}
|
|
2872
|
+
const queryParameters = {};
|
|
2873
|
+
const headerParameters = {};
|
|
2874
|
+
headerParameters["Content-Type"] = "application/json";
|
|
2875
|
+
if (requestParameters["xUipathAsVersion"] != null) {
|
|
2876
|
+
headerParameters["x-uipath-as-version"] = String(requestParameters["xUipathAsVersion"]);
|
|
2877
|
+
}
|
|
2878
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2879
|
+
const token = this.configuration.accessToken;
|
|
2880
|
+
const tokenString = await token("Bearer", []);
|
|
2881
|
+
if (tokenString) {
|
|
2882
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2883
|
+
}
|
|
2884
|
+
}
|
|
2885
|
+
let urlPath = `/api/projects`;
|
|
2886
|
+
const response = await this.request({
|
|
2887
|
+
path: urlPath,
|
|
2888
|
+
method: "POST",
|
|
2889
|
+
headers: headerParameters,
|
|
2890
|
+
query: queryParameters,
|
|
2891
|
+
body: ProjectCreateRequestToJSON(requestParameters["projectCreateRequest"])
|
|
2892
|
+
}, initOverrides);
|
|
2893
|
+
return new JSONApiResponse(response, (jsonValue) => ProjectDtoFromJSON(jsonValue));
|
|
2894
|
+
}
|
|
2895
|
+
async projectsPost2(requestParameters, initOverrides) {
|
|
2896
|
+
const response = await this.projectsPost2Raw(requestParameters, initOverrides);
|
|
2897
|
+
return await response.value();
|
|
2898
|
+
}
|
|
2899
|
+
}
|
|
2900
|
+
|
|
2901
|
+
// generated/src/apis/SearchApi.ts
|
|
2902
|
+
class SearchApi extends BaseAPI {
|
|
2903
|
+
async searchSearchDeployments22Raw(requestParameters, initOverrides) {
|
|
2904
|
+
if (requestParameters["deploymentsSearchRequest2"] == null) {
|
|
2905
|
+
throw new RequiredError("deploymentsSearchRequest2", 'Required parameter "deploymentsSearchRequest2" was null or undefined when calling searchSearchDeployments22().');
|
|
2906
|
+
}
|
|
2907
|
+
const queryParameters = {};
|
|
2908
|
+
const headerParameters = {};
|
|
2909
|
+
headerParameters["Content-Type"] = "application/json";
|
|
2910
|
+
if (requestParameters["xUipathAsVersion"] != null) {
|
|
2911
|
+
headerParameters["x-uipath-as-version"] = String(requestParameters["xUipathAsVersion"]);
|
|
2912
|
+
}
|
|
2913
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2914
|
+
const token = this.configuration.accessToken;
|
|
2915
|
+
const tokenString = await token("Bearer", []);
|
|
2916
|
+
if (tokenString) {
|
|
2917
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2918
|
+
}
|
|
2919
|
+
}
|
|
2920
|
+
let urlPath = `/api/v3/search/deployments`;
|
|
2921
|
+
const response = await this.request({
|
|
2922
|
+
path: urlPath,
|
|
2923
|
+
method: "POST",
|
|
2924
|
+
headers: headerParameters,
|
|
2925
|
+
query: queryParameters,
|
|
2926
|
+
body: DeploymentsSearchRequest2ToJSON(requestParameters["deploymentsSearchRequest2"])
|
|
2927
|
+
}, initOverrides);
|
|
2928
|
+
return new JSONApiResponse(response, (jsonValue) => PageInfoDtoOfDeploymentSearchItemDto2FromJSON(jsonValue));
|
|
2929
|
+
}
|
|
2930
|
+
async searchSearchDeployments22(requestParameters, initOverrides) {
|
|
2931
|
+
const response = await this.searchSearchDeployments22Raw(requestParameters, initOverrides);
|
|
2932
|
+
return await response.value();
|
|
2933
|
+
}
|
|
2934
|
+
async searchSearchPackagesRaw(requestParameters, initOverrides) {
|
|
2935
|
+
if (requestParameters["searchFilter"] == null) {
|
|
2936
|
+
throw new RequiredError("searchFilter", 'Required parameter "searchFilter" was null or undefined when calling searchSearchPackages().');
|
|
2937
|
+
}
|
|
2938
|
+
const queryParameters = {};
|
|
2939
|
+
const headerParameters = {};
|
|
2940
|
+
headerParameters["Content-Type"] = "application/json";
|
|
2941
|
+
if (requestParameters["xUipathAsVersion"] != null) {
|
|
2942
|
+
headerParameters["x-uipath-as-version"] = String(requestParameters["xUipathAsVersion"]);
|
|
2943
|
+
}
|
|
2944
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2945
|
+
const token = this.configuration.accessToken;
|
|
2946
|
+
const tokenString = await token("Bearer", []);
|
|
2947
|
+
if (tokenString) {
|
|
2948
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2949
|
+
}
|
|
2950
|
+
}
|
|
2951
|
+
let urlPath = `/api/search/packages`;
|
|
2952
|
+
const response = await this.request({
|
|
2953
|
+
path: urlPath,
|
|
2954
|
+
method: "POST",
|
|
2955
|
+
headers: headerParameters,
|
|
2956
|
+
query: queryParameters,
|
|
2957
|
+
body: SearchFilterToJSON(requestParameters["searchFilter"])
|
|
2958
|
+
}, initOverrides);
|
|
2959
|
+
return new JSONApiResponse(response, (jsonValue) => PageInfoDtoOfPackageInfoFromJSON(jsonValue));
|
|
2960
|
+
}
|
|
2961
|
+
async searchSearchPackages(requestParameters, initOverrides) {
|
|
2962
|
+
const response = await this.searchSearchPackagesRaw(requestParameters, initOverrides);
|
|
2963
|
+
return await response.value();
|
|
2964
|
+
}
|
|
2965
|
+
}
|
|
2966
|
+
|
|
2967
|
+
// generated/src/apis/SettingsApi.ts
|
|
2968
|
+
class SettingsApi extends BaseAPI {
|
|
2969
|
+
async settingsGetSettingsRaw(requestParameters, initOverrides) {
|
|
2970
|
+
const queryParameters = {};
|
|
2971
|
+
if (requestParameters["nameSpace"] != null) {
|
|
2972
|
+
queryParameters["nameSpace"] = requestParameters["nameSpace"];
|
|
2973
|
+
}
|
|
2974
|
+
if (requestParameters["ngVersion"] != null) {
|
|
2975
|
+
queryParameters["ngVersion"] = requestParameters["ngVersion"];
|
|
2976
|
+
}
|
|
2977
|
+
const headerParameters = {};
|
|
2978
|
+
if (requestParameters["xUipathAsVersion"] != null) {
|
|
2979
|
+
headerParameters["x-uipath-as-version"] = String(requestParameters["xUipathAsVersion"]);
|
|
2980
|
+
}
|
|
2981
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2982
|
+
const token = this.configuration.accessToken;
|
|
2983
|
+
const tokenString = await token("Bearer", []);
|
|
2984
|
+
if (tokenString) {
|
|
2985
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2986
|
+
}
|
|
2987
|
+
}
|
|
2988
|
+
let urlPath = `/api/settings`;
|
|
2989
|
+
const response = await this.request({
|
|
2990
|
+
path: urlPath,
|
|
2991
|
+
method: "GET",
|
|
2992
|
+
headers: headerParameters,
|
|
2993
|
+
query: queryParameters
|
|
2994
|
+
}, initOverrides);
|
|
2995
|
+
return new JSONApiResponse(response);
|
|
2996
|
+
}
|
|
2997
|
+
async settingsGetSettings(requestParameters = {}, initOverrides) {
|
|
2998
|
+
const response = await this.settingsGetSettingsRaw(requestParameters, initOverrides);
|
|
2999
|
+
return await response.value();
|
|
3000
|
+
}
|
|
3001
|
+
}
|
|
3002
|
+
export { BASE_PATH, Configuration, DefaultConfig, BaseAPI, ResponseError, FetchError, RequiredError, COLLECTION_FORMATS, querystring, exists, mapValues, canConsumeForm, JSONApiResponse, VoidApiResponse, BlobApiResponse, TextApiResponse, SDK_USER_AGENT, instanceOfResponseDictionaryDto, ResponseDictionaryDtoFromJSON, ResponseDictionaryDtoFromJSONTyped, ResponseDictionaryDtoToJSON, ResponseDictionaryDtoToJSONTyped, instanceOfBlobFileAccessDto, BlobFileAccessDtoFromJSON, BlobFileAccessDtoFromJSONTyped, BlobFileAccessDtoToJSON, BlobFileAccessDtoToJSONTyped, instanceOfCreateConfigurationCommand, CreateConfigurationCommandFromJSON, CreateConfigurationCommandFromJSONTyped, CreateConfigurationCommandToJSON, CreateConfigurationCommandToJSONTyped, DeploymentActivationStatus, instanceOfDeploymentActivationStatus, DeploymentActivationStatusFromJSON, DeploymentActivationStatusFromJSONTyped, DeploymentActivationStatusToJSON, DeploymentActivationStatusToJSONTyped, OverwriteType, instanceOfOverwriteType, OverwriteTypeFromJSON, OverwriteTypeFromJSONTyped, OverwriteTypeToJSON, OverwriteTypeToJSONTyped, instanceOfOverwrite, OverwriteFromJSON, OverwriteFromJSONTyped, OverwriteToJSON, OverwriteToJSONTyped, instanceOfResourceOverwrite, ResourceOverwriteFromJSON, ResourceOverwriteFromJSONTyped, ResourceOverwriteToJSON, ResourceOverwriteToJSONTyped, instanceOfRuntimeSetup, RuntimeSetupFromJSON, RuntimeSetupFromJSONTyped, RuntimeSetupToJSON, RuntimeSetupToJSONTyped, instanceOfDeploymentAutoRequest, DeploymentAutoRequestFromJSON, DeploymentAutoRequestFromJSONTyped, DeploymentAutoRequestToJSON, DeploymentAutoRequestToJSONTyped, instanceOfDeploymentDto, DeploymentDtoFromJSON, DeploymentDtoFromJSONTyped, DeploymentDtoToJSON, DeploymentDtoToJSONTyped, WorkflowAction, instanceOfWorkflowAction, WorkflowActionFromJSON, WorkflowActionFromJSONTyped, WorkflowActionToJSON, WorkflowActionToJSONTyped, DeploymentOperation, instanceOfDeploymentOperation, DeploymentOperationFromJSON, DeploymentOperationFromJSONTyped, DeploymentOperationToJSON, DeploymentOperationToJSONTyped, PackageVersionOrigin, instanceOfPackageVersionOrigin, PackageVersionOriginFromJSON, PackageVersionOriginFromJSONTyped, PackageVersionOriginToJSON, PackageVersionOriginToJSONTyped, DeploymentOperationStatus, instanceOfDeploymentOperationStatus, DeploymentOperationStatusFromJSON, DeploymentOperationStatusFromJSONTyped, DeploymentOperationStatusToJSON, DeploymentOperationStatusToJSONTyped, DeploymentUpgradeType, instanceOfDeploymentUpgradeType, DeploymentUpgradeTypeFromJSON, DeploymentUpgradeTypeFromJSONTyped, DeploymentUpgradeTypeToJSON, DeploymentUpgradeTypeToJSONTyped, DeploymentStatus, instanceOfDeploymentStatus, DeploymentStatusFromJSON, DeploymentStatusFromJSONTyped, DeploymentStatusToJSON, DeploymentStatusToJSONTyped, instanceOfDeploymentItemDto, DeploymentItemDtoFromJSON, DeploymentItemDtoFromJSONTyped, DeploymentItemDtoToJSON, DeploymentItemDtoToJSONTyped, instanceOfDeploymentRequest, DeploymentRequestFromJSON, DeploymentRequestFromJSONTyped, DeploymentRequestToJSON, DeploymentRequestToJSONTyped, DeploymentResourceValidationAction, instanceOfDeploymentResourceValidationAction, DeploymentResourceValidationActionFromJSON, DeploymentResourceValidationActionFromJSONTyped, DeploymentResourceValidationActionToJSON, DeploymentResourceValidationActionToJSONTyped, ResetConfigurationSource, instanceOfResetConfigurationSource, ResetConfigurationSourceFromJSON, ResetConfigurationSourceFromJSONTyped, ResetConfigurationSourceToJSON, ResetConfigurationSourceToJSONTyped, DeploymentUpgradeState, instanceOfDeploymentUpgradeState, DeploymentUpgradeStateFromJSON, DeploymentUpgradeStateFromJSONTyped, DeploymentUpgradeStateToJSON, DeploymentUpgradeStateToJSONTyped, instanceOfDeploymentResourceReplacementDto, DeploymentResourceReplacementDtoFromJSON, DeploymentResourceReplacementDtoFromJSONTyped, DeploymentResourceReplacementDtoToJSON, DeploymentResourceReplacementDtoToJSONTyped, instanceOfFolderInfo, FolderInfoFromJSON, FolderInfoFromJSONTyped, FolderInfoToJSON, FolderInfoToJSONTyped, instanceOfDeploymentResourceInfo, DeploymentResourceInfoFromJSON, DeploymentResourceInfoFromJSONTyped, DeploymentResourceInfoToJSON, DeploymentResourceInfoToJSONTyped, DeploymentResourceValidationErrorKind, instanceOfDeploymentResourceValidationErrorKind, DeploymentResourceValidationErrorKindFromJSON, DeploymentResourceValidationErrorKindFromJSONTyped, DeploymentResourceValidationErrorKindToJSON, DeploymentResourceValidationErrorKindToJSONTyped, DeploymentResourceValidationErrorLevel, instanceOfDeploymentResourceValidationErrorLevel, DeploymentResourceValidationErrorLevelFromJSON, DeploymentResourceValidationErrorLevelFromJSONTyped, DeploymentResourceValidationErrorLevelToJSON, DeploymentResourceValidationErrorLevelToJSONTyped, DeploymentType, instanceOfDeploymentType, DeploymentTypeFromJSON, DeploymentTypeFromJSONTyped, DeploymentTypeToJSON, DeploymentTypeToJSONTyped, instanceOfDeploymentSearchItemDto2, DeploymentSearchItemDto2FromJSON, DeploymentSearchItemDto2FromJSONTyped, DeploymentSearchItemDto2ToJSON, DeploymentSearchItemDto2ToJSONTyped, instanceOfServiceMessage, ServiceMessageFromJSON, ServiceMessageFromJSONTyped, ServiceMessageToJSON, ServiceMessageToJSONTyped, instanceOfResourceValidationError, ResourceValidationErrorFromJSON, ResourceValidationErrorFromJSONTyped, ResourceValidationErrorToJSON, ResourceValidationErrorToJSONTyped, instanceOfResourceValidationDto, ResourceValidationDtoFromJSON, ResourceValidationDtoFromJSONTyped, ResourceValidationDtoToJSON, ResourceValidationDtoToJSONTyped, instanceOfDeploymentValidationResultDto, DeploymentValidationResultDtoFromJSON, DeploymentValidationResultDtoFromJSONTyped, DeploymentValidationResultDtoToJSON, DeploymentValidationResultDtoToJSONTyped, OrderByDirection, instanceOfOrderByDirection, OrderByDirectionFromJSON, OrderByDirectionFromJSONTyped, OrderByDirectionToJSON, OrderByDirectionToJSONTyped, instanceOfDeploymentsSearchRequest2, DeploymentsSearchRequest2FromJSON, DeploymentsSearchRequest2FromJSONTyped, DeploymentsSearchRequest2ToJSON, DeploymentsSearchRequest2ToJSONTyped, ExtendedPackageVersionState, instanceOfExtendedPackageVersionState, ExtendedPackageVersionStateFromJSON, ExtendedPackageVersionStateFromJSONTyped, ExtendedPackageVersionStateToJSON, ExtendedPackageVersionStateToJSONTyped, instanceOfLocationDto, LocationDtoFromJSON, LocationDtoFromJSONTyped, LocationDtoToJSON, LocationDtoToJSONTyped, instanceOfPackageInfo, PackageInfoFromJSON, PackageInfoFromJSONTyped, PackageInfoToJSON, PackageInfoToJSONTyped, instanceOfResourceStats, ResourceStatsFromJSON, ResourceStatsFromJSONTyped, ResourceStatsToJSON, ResourceStatsToJSONTyped, instanceOfPackageVersionResourceDto, PackageVersionResourceDtoFromJSON, PackageVersionResourceDtoFromJSONTyped, PackageVersionResourceDtoToJSON, PackageVersionResourceDtoToJSONTyped, instanceOfPackageVersionComponentsDto, PackageVersionComponentsDtoFromJSON, PackageVersionComponentsDtoFromJSONTyped, PackageVersionComponentsDtoToJSON, PackageVersionComponentsDtoToJSONTyped, instanceOfPackageVersionInfoDto, PackageVersionInfoDtoFromJSON, PackageVersionInfoDtoFromJSONTyped, PackageVersionInfoDtoToJSON, PackageVersionInfoDtoToJSONTyped, instanceOfPageInfoDtoOfDeploymentResourceInfo, PageInfoDtoOfDeploymentResourceInfoFromJSON, PageInfoDtoOfDeploymentResourceInfoFromJSONTyped, PageInfoDtoOfDeploymentResourceInfoToJSON, PageInfoDtoOfDeploymentResourceInfoToJSONTyped, instanceOfPageInfoDtoOfDeploymentSearchItemDto2, PageInfoDtoOfDeploymentSearchItemDto2FromJSON, PageInfoDtoOfDeploymentSearchItemDto2FromJSONTyped, PageInfoDtoOfDeploymentSearchItemDto2ToJSON, PageInfoDtoOfDeploymentSearchItemDto2ToJSONTyped, instanceOfPageInfoDtoOfPackageInfo, PageInfoDtoOfPackageInfoFromJSON, PageInfoDtoOfPackageInfoFromJSONTyped, PageInfoDtoOfPackageInfoToJSON, PageInfoDtoOfPackageInfoToJSONTyped, instanceOfProblemDetails, ProblemDetailsFromJSON, ProblemDetailsFromJSONTyped, ProblemDetailsToJSON, ProblemDetailsToJSONTyped, instanceOfProjectCreateRequest, ProjectCreateRequestFromJSON, ProjectCreateRequestFromJSONTyped, ProjectCreateRequestToJSON, ProjectCreateRequestToJSONTyped, ProjectImportStatus, instanceOfProjectImportStatus, ProjectImportStatusFromJSON, ProjectImportStatusFromJSONTyped, ProjectImportStatusToJSON, ProjectImportStatusToJSONTyped, instanceOfProjectDto, ProjectDtoFromJSON, ProjectDtoFromJSONTyped, ProjectDtoToJSON, ProjectDtoToJSONTyped, instanceOfSearchFilter, SearchFilterFromJSON, SearchFilterFromJSONTyped, SearchFilterToJSON, SearchFilterToJSONTyped, SolutionDeploymentAction, instanceOfSolutionDeploymentAction, SolutionDeploymentActionFromJSON, SolutionDeploymentActionFromJSONTyped, SolutionDeploymentActionToJSON, SolutionDeploymentActionToJSONTyped, ConfigurationsApi, DeploymentsApi, PackagesApi, ProjectsApi, SearchApi, SettingsApi };
|
|
3003
|
+
|
|
3004
|
+
//# debugId=5BB3DD29BE63638564756E2164756E21
|