@uipath/solution-tool 1.205.0-preview.277 → 1.206.0-preview.279
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/{archive-extract-x35t9ktj.js → archive-extract-136rn3ja.js} +13 -15
- package/dist/{cleanup-command-service-dwbrt6d9.js → cleanup-command-service-ejakyhea.js} +34 -31
- package/dist/deploy-delete-service-r7abfh28.js +23 -0
- package/dist/deploy-run-service-rnthz10q.js +23 -0
- package/dist/{deploy-status-service-xw2nzh7m.js → deploy-status-service-6my5vm61.js} +72 -62
- package/dist/deploy.js +35 -37
- package/dist/deployment-search-gfm907tx.js +54 -0
- package/dist/{embedded-file-reader-z4becc02.js → embedded-file-reader-0228j82a.js} +1 -4
- package/dist/feed-resolver-14crsx5y.js +27 -0
- package/dist/feed-scope-failure-67cyybn0.js +20 -0
- package/dist/feed-session-g94q2bjc.js +23 -0
- package/dist/first-party-service-n3vva2m4.js +8 -0
- package/dist/governance-options-t20vsznh.js +19 -0
- package/dist/index-aspmac9f.js +24 -0
- package/dist/index-ddk6v1ej.js +60 -0
- package/dist/{index-sby22td6.js → index-nzr4mx5p.js} +2 -22
- package/dist/index-qq4kre7a.js +93 -0
- package/dist/index-t262f2xv.js +16 -0
- package/dist/index.js +33 -34
- package/dist/init.js +18 -21
- package/dist/{jmespath-231m3hyn.js → jmespath-ab6tdc42.js} +1 -1
- package/dist/{js-yaml-88tdqrtd.js → js-yaml-a2bk27p6.js} +1 -3
- package/dist/{list-zckdhv0c.js → list-jntan9tx.js} +23 -23
- package/dist/models/pack-command-types.d.ts +3 -1
- package/dist/node-kwzcw5ex.js +25 -0
- package/dist/pack-command-service-pwaeha7y.js +29 -0
- package/dist/{pack-project-erd95bt1.js → pack-project-ztt1hfrs.js} +33 -40
- package/dist/pack.js +26 -30
- package/dist/package-id-4tsg5jsb.js +11 -0
- package/dist/{packager-tool-d3cmmbw1.js → packager-tool-1bz9h5ca.js} +11 -11
- package/dist/{packager-tool-gs3f3tf7.js → packager-tool-1ctvbx0h.js} +1 -1
- package/dist/{packager-tool-r1jvvm8y.js → packager-tool-55ztfccd.js} +176 -196
- package/dist/{packager-tool-wrg41m7t.js → packager-tool-95y24705.js} +37 -39
- package/dist/{packager-tool-bkjqza3a.js → packager-tool-9j8e5q1z.js} +184 -33
- package/dist/{packager-tool-tx834spe.js → packager-tool-9vrwpgt3.js} +757 -309
- package/dist/packager-tool-a6va4gc5.js +1178 -0
- package/dist/{packager-tool-pbmqk39a.js → packager-tool-a7s0gbxs.js} +33 -28
- package/dist/{packager-tool-47wzvqw0.js → packager-tool-aws5w512.js} +6 -6
- package/dist/{packager-tool-97rcgwvv.js → packager-tool-bs1jn1yn.js} +331 -55
- package/dist/packager-tool-c64hqa8n.js +106 -0
- package/dist/{packager-tool-5ddtwzva.js → packager-tool-ca5ngmqv.js} +12 -12
- package/dist/{packager-tool-6kz1pv9f.js → packager-tool-d1texmvn.js} +828 -338
- package/dist/{packager-tool-1de529jm.js → packager-tool-epsr41wx.js} +12 -3
- package/dist/packager-tool-f84z7nds.js +130 -0
- package/dist/{packager-tool-8ptbmmmp.js → packager-tool-fp46ebde.js} +147 -76
- package/dist/packager-tool-fqs6hdcy.js +290 -0
- package/dist/{packager-tool-3bwnkjdq.js → packager-tool-fx4ws49n.js} +12 -12
- package/dist/{packager-tool-6ybywxxn.js → packager-tool-m07vyk89.js} +371 -221
- package/dist/{packager-tool-hsya909c.js → packager-tool-nrhqgr4z.js} +273 -255
- package/dist/{packager-tool-61pwb567.js → packager-tool-ppj5f4y7.js} +6 -7
- package/dist/{packager-tool-qqbt4b44.js → packager-tool-pyt9fvty.js} +51 -48
- package/dist/packager-tool-q5d9df2q.js +74 -0
- package/dist/{packager-tool-ph7fg1aa.js → packager-tool-q8ryk6q9.js} +122 -89
- package/dist/{packager-tool-t8gh825q.js → packager-tool-qf8753ee.js} +53 -41
- package/dist/{packager-tool-60af1hw2.js → packager-tool-qzcd5c9s.js} +3 -3
- package/dist/packager-tool-resolver-td3bhccd.js +20 -0
- package/dist/{packager-tool-dfrk01gn.js → packager-tool-rj2d1g0w.js} +154 -154
- package/dist/{packager-tool-a4bs7wtm.js → packager-tool-snm6s7b5.js} +15 -15
- package/dist/{packager-tool-43ahv5mn.js → packager-tool-t39pjz7n.js} +35 -18
- package/dist/{packager-tool-f2hsb9ta.js → packager-tool-t3a48ys5.js} +305 -657
- package/dist/{packager-tool-cjjk2ek2.js → packager-tool-t3ahzjh1.js} +356 -298
- package/dist/{packager-tool-v1f5e8t9.js → packager-tool-vgrswa8p.js} +53 -8
- package/dist/packager-tool-vrtabg73.js +2307 -0
- package/dist/{packager-tool-gmwva4yv.js → packager-tool-vx2c68sb.js} +2 -2
- package/dist/{packager-tool-4pkzxkty.js → packager-tool-vx39dhvn.js} +65 -35
- package/dist/{packager-tool-zn76tbxc.js → packager-tool-w34wyhwf.js} +13 -15
- package/dist/packager-tool-w8bcwfd3.js +280 -0
- package/dist/{packager-tool-3gwrcgrc.js → packager-tool-wm0h0wa1.js} +18 -18
- package/dist/{packager-tool-b2nhscfk.js → packager-tool-wm8nj6e9.js} +18 -18
- package/dist/{packager-tool-amhyxzz6.js → packager-tool-x33sdw6n.js} +16 -16
- package/dist/{packager-tool-wy4fx250.js → packager-tool-yetmzme9.js} +89 -30
- package/dist/{packager-tool-6tyyvhh0.js → packager-tool-z5r49ky9.js} +75 -9
- package/dist/packager-tool.js +6 -7
- package/dist/prepare-solution-resources-pwnyvtza.js +26 -0
- package/dist/{project-command-utils-t6pmpvq3.js → project-command-utils-zcmbecfy.js} +23 -26
- package/dist/project-contributions-kh9yftvg.js +27 -0
- package/dist/publish.js +17 -17
- package/dist/resource-mutations-mfn5k1hb.js +27 -0
- package/dist/{resource-version-lookup-0e3e2j58.js → resource-version-lookup-6ejh1hwd.js} +20 -23
- package/dist/resource.js +13 -16
- package/dist/{restore-command-service-2g02d7s1.js → restore-command-service-n880dxre.js} +37 -34
- package/dist/{run-service-6necpy9s.js → run-service-4vhn6mtb.js} +144 -66
- package/dist/services/deploy-activate-service.d.ts +2 -1
- package/dist/services/deployment-search-client.d.ts +2 -1
- package/dist/services/deployment-search.d.ts +39 -0
- package/dist/services/feed-resolver.d.ts +13 -1
- package/dist/services/feed-selection.d.ts +8 -5
- package/dist/services/feed-session.d.ts +34 -0
- package/dist/services/install-run.d.ts +92 -0
- package/dist/services/prepare-solution-resources.d.ts +11 -2
- package/dist/services/project-contributions.d.ts +2 -0
- package/dist/services/project-identity-telemetry.d.ts +3 -0
- package/dist/services/publish-service.d.ts +20 -3
- package/dist/services/solution-identity.d.ts +18 -0
- package/dist/ship-telemetry-bkf3800w.js +16 -0
- package/dist/solution-auth-jxcgd2m0.js +10 -0
- package/dist/solution-identity-92h2fbpa.js +19 -0
- package/dist/templates/AGENTS.md +27 -29
- package/dist/tool.js +32 -33
- package/package.json +2 -2
- package/dist/deploy-delete-service-7py597ng.js +0 -25
- package/dist/deploy-run-service-446bssn0.js +0 -25
- package/dist/deployment-search-qyd6dv0m.js +0 -55
- package/dist/feed-resolver-va10c73n.js +0 -28
- package/dist/feed-scope-failure-3yxfg1x7.js +0 -19
- package/dist/feed-session-7xqphdrg.js +0 -17
- package/dist/first-party-service-sd8yaf73.js +0 -27
- package/dist/governance-options-8snbrbt1.js +0 -32
- package/dist/index-dqa169gp.js +0 -25
- package/dist/index-fcwmbjap.js +0 -667
- package/dist/index-prm27bvm.js +0 -138
- package/dist/node-9hdy9st1.js +0 -86
- package/dist/pack-command-service-tr3z33gz.js +0 -35
- package/dist/package-id-kdkapmn2.js +0 -13
- package/dist/packager-tool-53w8skv5.js +0 -262
- package/dist/packager-tool-5edvzz80.js +0 -543
- package/dist/packager-tool-6d3fx89p.js +0 -171
- package/dist/packager-tool-d8ng7mex.js +0 -68
- package/dist/packager-tool-gdtpsdn7.js +0 -342
- package/dist/packager-tool-mq5pc4zr.js +0 -418
- package/dist/packager-tool-qw47eyw7.js +0 -43
- package/dist/packager-tool-resolver-994z3jkj.js +0 -23
- package/dist/packager-tool-rg3xgn9a.js +0 -182
- package/dist/packager-tool-sxjehksx.js +0 -5367
- package/dist/packager-tool-yrdyppjd.js +0 -188
- package/dist/prepare-solution-resources-m1djfj62.js +0 -29
- package/dist/project-contributions-79ndycrx.js +0 -32
- package/dist/resource-mutations-c3krjqze.js +0 -36
- package/dist/ship-telemetry-myes7ak5.js +0 -21
- package/dist/solution-auth-aead70sw.js +0 -11
- /package/dist/{packager-tool-act5r386.js → packager-tool-2pxe2r4j.js} +0 -0
- /package/dist/{packager-tool-kkfb5kgn.js → packager-tool-vrqbbh01.js} +0 -0
|
@@ -0,0 +1,1178 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getSdkUserAgentToken,
|
|
3
|
+
installSdkUserAgentHeader
|
|
4
|
+
} from "./packager-tool-m07vyk89.js";
|
|
5
|
+
|
|
6
|
+
// ../solution-sdk/generated/src/runtime.ts
|
|
7
|
+
var BASE_PATH = "https://alpha.uipath.com/uipattycyrhx/abizon_1/automationsolutions_".replace(/\/+$/, "");
|
|
8
|
+
|
|
9
|
+
class Configuration3 {
|
|
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 Configuration3;
|
|
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
|
+
function querystring(params, prefix = "") {
|
|
214
|
+
return Object.keys(params).map((key) => querystringSingleKey(key, params[key], prefix)).filter((part) => part.length > 0).join("&");
|
|
215
|
+
}
|
|
216
|
+
function querystringSingleKey(key, value, keyPrefix = "") {
|
|
217
|
+
const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key);
|
|
218
|
+
if (value instanceof Array) {
|
|
219
|
+
const multiValue = value.map((singleValue) => encodeURIComponent(String(singleValue))).join(`&${encodeURIComponent(fullKey)}=`);
|
|
220
|
+
return `${encodeURIComponent(fullKey)}=${multiValue}`;
|
|
221
|
+
}
|
|
222
|
+
if (value instanceof Set) {
|
|
223
|
+
const valueAsArray = Array.from(value);
|
|
224
|
+
return querystringSingleKey(key, valueAsArray, keyPrefix);
|
|
225
|
+
}
|
|
226
|
+
if (value instanceof Date) {
|
|
227
|
+
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`;
|
|
228
|
+
}
|
|
229
|
+
if (value instanceof Object) {
|
|
230
|
+
return querystring(value, fullKey);
|
|
231
|
+
}
|
|
232
|
+
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
|
|
233
|
+
}
|
|
234
|
+
class JSONApiResponse {
|
|
235
|
+
raw;
|
|
236
|
+
transformer;
|
|
237
|
+
constructor(raw, transformer = (jsonValue) => jsonValue) {
|
|
238
|
+
this.raw = raw;
|
|
239
|
+
this.transformer = transformer;
|
|
240
|
+
}
|
|
241
|
+
async value() {
|
|
242
|
+
return this.transformer(await this.raw.json());
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
class VoidApiResponse {
|
|
247
|
+
raw;
|
|
248
|
+
constructor(raw) {
|
|
249
|
+
this.raw = raw;
|
|
250
|
+
}
|
|
251
|
+
async value() {
|
|
252
|
+
return;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
// ../solution-sdk/package.json
|
|
256
|
+
var package_default = {
|
|
257
|
+
name: "@uipath/solution-sdk",
|
|
258
|
+
author: "UiPath",
|
|
259
|
+
license: "SEE LICENSE IN LICENSE.txt",
|
|
260
|
+
version: "1.206.0-preview.279",
|
|
261
|
+
repository: {
|
|
262
|
+
type: "git",
|
|
263
|
+
url: "https://github.com/UiPath/cli.git",
|
|
264
|
+
directory: "packages/solution-sdk"
|
|
265
|
+
},
|
|
266
|
+
publishConfig: {
|
|
267
|
+
registry: "https://npm.pkg.github.com/@uipath"
|
|
268
|
+
},
|
|
269
|
+
keywords: [
|
|
270
|
+
"uipath",
|
|
271
|
+
"solution",
|
|
272
|
+
"sdk"
|
|
273
|
+
],
|
|
274
|
+
type: "module",
|
|
275
|
+
main: "./dist/index.js",
|
|
276
|
+
types: "./dist/src/index.d.ts",
|
|
277
|
+
exports: {
|
|
278
|
+
".": {
|
|
279
|
+
types: "./dist/src/index.d.ts",
|
|
280
|
+
default: "./dist/index.js"
|
|
281
|
+
},
|
|
282
|
+
"./resources": {
|
|
283
|
+
types: "./dist/src/resources/index.d.ts",
|
|
284
|
+
default: "./dist/resources/index.js"
|
|
285
|
+
},
|
|
286
|
+
"./auth": {
|
|
287
|
+
types: "./dist/src/solution-auth.d.ts",
|
|
288
|
+
default: "./dist/solution-auth.js"
|
|
289
|
+
},
|
|
290
|
+
"./deployments": {
|
|
291
|
+
types: "./dist/src/deployment-search.d.ts",
|
|
292
|
+
default: "./dist/deployment-search.js"
|
|
293
|
+
},
|
|
294
|
+
"./packages": {
|
|
295
|
+
types: "./dist/src/package-search.d.ts",
|
|
296
|
+
default: "./dist/package-search.js"
|
|
297
|
+
},
|
|
298
|
+
"./project-context": {
|
|
299
|
+
types: "./dist/src/project-context.d.ts",
|
|
300
|
+
default: "./dist/project-context.js"
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
bin: {
|
|
304
|
+
"generate-sdk": "./dist/scripts/generate-sdk.js"
|
|
305
|
+
},
|
|
306
|
+
files: [
|
|
307
|
+
"dist"
|
|
308
|
+
],
|
|
309
|
+
private: false,
|
|
310
|
+
scripts: {
|
|
311
|
+
build: "bun build ./src/index.ts ./src/resources/index.ts ./src/solution-auth.ts ./src/deployment-search.ts ./src/package-search.ts ./src/project-context.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",
|
|
312
|
+
generate: "bun run src/scripts/generate-sdk.ts",
|
|
313
|
+
lint: "biome check .",
|
|
314
|
+
test: "vitest run",
|
|
315
|
+
"test:coverage": "vitest run --coverage",
|
|
316
|
+
typecheck: "tsc --noEmit"
|
|
317
|
+
},
|
|
318
|
+
devDependencies: {
|
|
319
|
+
"@openapitools/openapi-generator-cli": "^2.31.1",
|
|
320
|
+
"@uipath/auth": "workspace:*",
|
|
321
|
+
"@uipath/common": "workspace:*",
|
|
322
|
+
"@uipath/filesystem": "workspace:*",
|
|
323
|
+
"@uipath/orchestrator-sdk": "workspace:*",
|
|
324
|
+
"@uipath/pipelines-sdk": "workspace:*",
|
|
325
|
+
"@uipath/resource-builder-sdk": "2025.11.0-alpha6584-4367",
|
|
326
|
+
"@uipath/solutionpackager-tool-core": "workspace:*",
|
|
327
|
+
"@uipath/studioweb-sdk": "workspace:*",
|
|
328
|
+
"@types/node": "^25.5.2",
|
|
329
|
+
fflate: "^0.8.2",
|
|
330
|
+
ignore: "^5.3.2",
|
|
331
|
+
typescript: "^7.0.2"
|
|
332
|
+
}
|
|
333
|
+
};
|
|
334
|
+
|
|
335
|
+
// ../solution-sdk/src/user-agent.ts
|
|
336
|
+
var SDK_USER_AGENT = getSdkUserAgentToken(package_default);
|
|
337
|
+
installSdkUserAgentHeader(BaseAPI, SDK_USER_AGENT);
|
|
338
|
+
|
|
339
|
+
// ../solution-sdk/generated/src/models/DeploymentActivationStatus.ts
|
|
340
|
+
var DeploymentActivationStatus2 = {
|
|
341
|
+
None: "None",
|
|
342
|
+
Active: "Active",
|
|
343
|
+
Inactive: "Inactive",
|
|
344
|
+
ActivationFailed: "ActivationFailed",
|
|
345
|
+
DeactivationFailed: "DeactivationFailed",
|
|
346
|
+
ReadyToActivate: "ReadyToActivate",
|
|
347
|
+
NeedsSetupToActivate: "NeedsSetupToActivate"
|
|
348
|
+
};
|
|
349
|
+
function DeploymentActivationStatusFromJSON(json) {
|
|
350
|
+
return DeploymentActivationStatusFromJSONTyped(json, false);
|
|
351
|
+
}
|
|
352
|
+
function DeploymentActivationStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
353
|
+
return json;
|
|
354
|
+
}
|
|
355
|
+
function DeploymentActivationStatusToJSON(value) {
|
|
356
|
+
return value;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
// ../solution-sdk/generated/src/models/WorkflowAction.ts
|
|
360
|
+
var WorkflowAction2 = {
|
|
361
|
+
Install: "Install",
|
|
362
|
+
Activate: "Activate",
|
|
363
|
+
Uninstall: "Uninstall",
|
|
364
|
+
Upgrade: "Upgrade",
|
|
365
|
+
Delete: "Delete",
|
|
366
|
+
SetupActivation: "SetupActivation"
|
|
367
|
+
};
|
|
368
|
+
function WorkflowActionFromJSON(json) {
|
|
369
|
+
return WorkflowActionFromJSONTyped(json, false);
|
|
370
|
+
}
|
|
371
|
+
function WorkflowActionFromJSONTyped(json, ignoreDiscriminator) {
|
|
372
|
+
return json;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
// ../solution-sdk/generated/src/models/DeploymentOperationStatus.ts
|
|
376
|
+
var DeploymentOperationStatus2 = {
|
|
377
|
+
Draft: "Draft",
|
|
378
|
+
Successful: "Successful",
|
|
379
|
+
Failed: "Failed",
|
|
380
|
+
InProgress: "InProgress",
|
|
381
|
+
FailedRollback: "FailedRollback"
|
|
382
|
+
};
|
|
383
|
+
function DeploymentOperationStatusFromJSON(json) {
|
|
384
|
+
return DeploymentOperationStatusFromJSONTyped(json, false);
|
|
385
|
+
}
|
|
386
|
+
function DeploymentOperationStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
387
|
+
return json;
|
|
388
|
+
}
|
|
389
|
+
function DeploymentOperationStatusToJSON(value) {
|
|
390
|
+
return value;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
// ../solution-sdk/generated/src/models/SolutionDeploymentAction.ts
|
|
394
|
+
var SolutionDeploymentAction2 = {
|
|
395
|
+
Install: "Install",
|
|
396
|
+
Uninstall: "Uninstall",
|
|
397
|
+
Upgrade: "Upgrade",
|
|
398
|
+
Rollback: "Rollback",
|
|
399
|
+
Activate: "Activate"
|
|
400
|
+
};
|
|
401
|
+
// ../solution-sdk/generated/src/models/OverwriteType.ts
|
|
402
|
+
function OverwriteTypeToJSON(value) {
|
|
403
|
+
return value;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
// ../solution-sdk/generated/src/models/Overwrite.ts
|
|
407
|
+
function OverwriteToJSON(json) {
|
|
408
|
+
return OverwriteToJSONTyped(json, false);
|
|
409
|
+
}
|
|
410
|
+
function OverwriteToJSONTyped(value, ignoreDiscriminator = false) {
|
|
411
|
+
if (value == null) {
|
|
412
|
+
return value;
|
|
413
|
+
}
|
|
414
|
+
return {
|
|
415
|
+
resourceKey: value["resourceKey"],
|
|
416
|
+
resourceName: value["resourceName"],
|
|
417
|
+
folderKey: value["folderKey"],
|
|
418
|
+
folderFullyQualifiedName: value["folderFullyQualifiedName"],
|
|
419
|
+
folderPath: value["folderPath"],
|
|
420
|
+
type: OverwriteTypeToJSON(value["type"])
|
|
421
|
+
};
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
// ../solution-sdk/generated/src/models/ResourceOverwrite.ts
|
|
425
|
+
function ResourceOverwriteToJSON(json) {
|
|
426
|
+
return ResourceOverwriteToJSONTyped(json, false);
|
|
427
|
+
}
|
|
428
|
+
function ResourceOverwriteToJSONTyped(value, ignoreDiscriminator = false) {
|
|
429
|
+
if (value == null) {
|
|
430
|
+
return value;
|
|
431
|
+
}
|
|
432
|
+
return {
|
|
433
|
+
solutionResourceKey: value["solutionResourceKey"],
|
|
434
|
+
reprovisioningIndex: value["reprovisioningIndex"],
|
|
435
|
+
overwrite: OverwriteToJSON(value["overwrite"])
|
|
436
|
+
};
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
// ../solution-sdk/generated/src/models/RuntimeSetup.ts
|
|
440
|
+
function RuntimeSetupFromJSON(json) {
|
|
441
|
+
return RuntimeSetupFromJSONTyped(json, false);
|
|
442
|
+
}
|
|
443
|
+
function RuntimeSetupFromJSONTyped(json, ignoreDiscriminator) {
|
|
444
|
+
if (json == null) {
|
|
445
|
+
return json;
|
|
446
|
+
}
|
|
447
|
+
return {
|
|
448
|
+
requireServerlessTemplate: json["requireServerlessTemplate"]
|
|
449
|
+
};
|
|
450
|
+
}
|
|
451
|
+
function RuntimeSetupToJSON(json) {
|
|
452
|
+
return RuntimeSetupToJSONTyped(json, false);
|
|
453
|
+
}
|
|
454
|
+
function RuntimeSetupToJSONTyped(value, ignoreDiscriminator = false) {
|
|
455
|
+
if (value == null) {
|
|
456
|
+
return value;
|
|
457
|
+
}
|
|
458
|
+
return {
|
|
459
|
+
requireServerlessTemplate: value["requireServerlessTemplate"]
|
|
460
|
+
};
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
// ../solution-sdk/generated/src/models/DeploymentAutoRequest.ts
|
|
464
|
+
function DeploymentAutoRequestToJSON(json) {
|
|
465
|
+
return DeploymentAutoRequestToJSONTyped(json, false);
|
|
466
|
+
}
|
|
467
|
+
function DeploymentAutoRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
468
|
+
if (value == null) {
|
|
469
|
+
return value;
|
|
470
|
+
}
|
|
471
|
+
return {
|
|
472
|
+
packageVersionKey: value["packageVersionKey"],
|
|
473
|
+
folderFQN: value["folderFQN"],
|
|
474
|
+
overwrites: value["overwrites"].map(ResourceOverwriteToJSON),
|
|
475
|
+
runtimeSetup: RuntimeSetupToJSON(value["runtimeSetup"])
|
|
476
|
+
};
|
|
477
|
+
}
|
|
478
|
+
// ../solution-sdk/generated/src/models/DeploymentDto.ts
|
|
479
|
+
function DeploymentDtoFromJSON(json) {
|
|
480
|
+
return DeploymentDtoFromJSONTyped(json, false);
|
|
481
|
+
}
|
|
482
|
+
function DeploymentDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
483
|
+
if (json == null) {
|
|
484
|
+
return json;
|
|
485
|
+
}
|
|
486
|
+
return {
|
|
487
|
+
packageName: json["packageName"],
|
|
488
|
+
deploymentName: json["deploymentName"]
|
|
489
|
+
};
|
|
490
|
+
}
|
|
491
|
+
// ../solution-sdk/generated/src/models/DeploymentOperation.ts
|
|
492
|
+
function DeploymentOperationFromJSON(json) {
|
|
493
|
+
return DeploymentOperationFromJSONTyped(json, false);
|
|
494
|
+
}
|
|
495
|
+
function DeploymentOperationFromJSONTyped(json, ignoreDiscriminator) {
|
|
496
|
+
return json;
|
|
497
|
+
}
|
|
498
|
+
function DeploymentOperationToJSON(value) {
|
|
499
|
+
return value;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
// ../solution-sdk/generated/src/models/PackageVersionOrigin.ts
|
|
503
|
+
function PackageVersionOriginFromJSON(json) {
|
|
504
|
+
return PackageVersionOriginFromJSONTyped(json, false);
|
|
505
|
+
}
|
|
506
|
+
function PackageVersionOriginFromJSONTyped(json, ignoreDiscriminator) {
|
|
507
|
+
return json;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
// ../solution-sdk/generated/src/models/DeploymentUpgradeType.ts
|
|
511
|
+
function DeploymentUpgradeTypeFromJSON(json) {
|
|
512
|
+
return DeploymentUpgradeTypeFromJSONTyped(json, false);
|
|
513
|
+
}
|
|
514
|
+
function DeploymentUpgradeTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
515
|
+
return json;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
// ../solution-sdk/generated/src/models/DeploymentStatus.ts
|
|
519
|
+
function DeploymentStatusFromJSON(json) {
|
|
520
|
+
return DeploymentStatusFromJSONTyped(json, false);
|
|
521
|
+
}
|
|
522
|
+
function DeploymentStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
523
|
+
return json;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
// ../solution-sdk/generated/src/models/DeploymentItemDto.ts
|
|
527
|
+
function DeploymentItemDtoFromJSON(json) {
|
|
528
|
+
return DeploymentItemDtoFromJSONTyped(json, false);
|
|
529
|
+
}
|
|
530
|
+
function DeploymentItemDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
531
|
+
if (json == null) {
|
|
532
|
+
return json;
|
|
533
|
+
}
|
|
534
|
+
return {
|
|
535
|
+
key: json["key"],
|
|
536
|
+
installDeploymentKey: json["installDeploymentKey"],
|
|
537
|
+
name: json["name"],
|
|
538
|
+
configurationKey: json["configurationKey"],
|
|
539
|
+
packageVersionKey: json["packageVersionKey"],
|
|
540
|
+
packageKey: json["packageKey"],
|
|
541
|
+
packageName: json["packageName"],
|
|
542
|
+
packageVersion: json["packageVersion"],
|
|
543
|
+
currentPackageVersion: json["currentPackageVersion"] == null ? undefined : json["currentPackageVersion"],
|
|
544
|
+
targetPackageVersion: json["targetPackageVersion"] == null ? undefined : json["targetPackageVersion"],
|
|
545
|
+
folderPath: json["folderPath"] == null ? undefined : json["folderPath"],
|
|
546
|
+
installedRootFolderKey: json["installedRootFolderKey"] == null ? undefined : json["installedRootFolderKey"],
|
|
547
|
+
installedRootFolderName: json["installedRootFolderName"] == null ? undefined : json["installedRootFolderName"],
|
|
548
|
+
packageVersionOrigin: PackageVersionOriginFromJSON(json["packageVersionOrigin"]),
|
|
549
|
+
deploymentCreationTime: new Date(json["deploymentCreationTime"]),
|
|
550
|
+
status: DeploymentStatusFromJSON(json["status"]),
|
|
551
|
+
startTime: json["startTime"] == null ? undefined : new Date(json["startTime"]),
|
|
552
|
+
endTime: json["endTime"] == null ? undefined : new Date(json["endTime"]),
|
|
553
|
+
upgradeType: json["upgradeType"] == null ? undefined : DeploymentUpgradeTypeFromJSON(json["upgradeType"]),
|
|
554
|
+
operation: DeploymentOperationFromJSON(json["operation"]),
|
|
555
|
+
operationStatus: DeploymentOperationStatusFromJSON(json["operationStatus"]),
|
|
556
|
+
activationStatus: DeploymentActivationStatusFromJSON(json["activationStatus"]),
|
|
557
|
+
instanceId: json["instanceId"] == null ? undefined : json["instanceId"],
|
|
558
|
+
newPackageVersionAvailable: json["newPackageVersionAvailable"] == null ? undefined : json["newPackageVersionAvailable"],
|
|
559
|
+
packageVersionDescription: json["packageVersionDescription"] == null ? undefined : json["packageVersionDescription"],
|
|
560
|
+
packageVersionReleaseNotes: json["packageVersionReleaseNotes"] == null ? undefined : json["packageVersionReleaseNotes"],
|
|
561
|
+
authorName: json["authorName"],
|
|
562
|
+
previousDeploymentKey: json["previousDeploymentKey"] == null ? undefined : json["previousDeploymentKey"],
|
|
563
|
+
runtimeSetup: json["runtimeSetup"] == null ? undefined : RuntimeSetupFromJSON(json["runtimeSetup"]),
|
|
564
|
+
actions: json["actions"].map(WorkflowActionFromJSON)
|
|
565
|
+
};
|
|
566
|
+
}
|
|
567
|
+
// ../solution-sdk/generated/src/models/DeploymentRequest.ts
|
|
568
|
+
function DeploymentRequestToJSON(json) {
|
|
569
|
+
return DeploymentRequestToJSONTyped(json, false);
|
|
570
|
+
}
|
|
571
|
+
function DeploymentRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
572
|
+
if (value == null) {
|
|
573
|
+
return value;
|
|
574
|
+
}
|
|
575
|
+
return {
|
|
576
|
+
configurationKey: value["configurationKey"],
|
|
577
|
+
deploymentName: value["deploymentName"],
|
|
578
|
+
installationFolderKey: value["installationFolderKey"],
|
|
579
|
+
pathFullyQualifiedName: value["pathFullyQualifiedName"],
|
|
580
|
+
solutionRootFolderName: value["solutionRootFolderName"],
|
|
581
|
+
forceActivate: value["forceActivate"],
|
|
582
|
+
runtimeSetup: RuntimeSetupToJSON(value["runtimeSetup"])
|
|
583
|
+
};
|
|
584
|
+
}
|
|
585
|
+
// ../solution-sdk/generated/src/models/DeploymentResourceValidationAction.ts
|
|
586
|
+
function DeploymentResourceValidationActionFromJSON(json) {
|
|
587
|
+
return DeploymentResourceValidationActionFromJSONTyped(json, false);
|
|
588
|
+
}
|
|
589
|
+
function DeploymentResourceValidationActionFromJSONTyped(json, ignoreDiscriminator) {
|
|
590
|
+
return json;
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
// ../solution-sdk/generated/src/models/ResetConfigurationSource.ts
|
|
594
|
+
function ResetConfigurationSourceFromJSON(json) {
|
|
595
|
+
return ResetConfigurationSourceFromJSONTyped(json, false);
|
|
596
|
+
}
|
|
597
|
+
function ResetConfigurationSourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
598
|
+
return json;
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
// ../solution-sdk/generated/src/models/DeploymentUpgradeState.ts
|
|
602
|
+
function DeploymentUpgradeStateFromJSON(json) {
|
|
603
|
+
return DeploymentUpgradeStateFromJSONTyped(json, false);
|
|
604
|
+
}
|
|
605
|
+
function DeploymentUpgradeStateFromJSONTyped(json, ignoreDiscriminator) {
|
|
606
|
+
return json;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
// ../solution-sdk/generated/src/models/DeploymentResourceReplacementDto.ts
|
|
610
|
+
function DeploymentResourceReplacementDtoFromJSON(json) {
|
|
611
|
+
return DeploymentResourceReplacementDtoFromJSONTyped(json, false);
|
|
612
|
+
}
|
|
613
|
+
function DeploymentResourceReplacementDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
614
|
+
if (json == null) {
|
|
615
|
+
return json;
|
|
616
|
+
}
|
|
617
|
+
return {
|
|
618
|
+
serviceResourceKey: json["serviceResourceKey"],
|
|
619
|
+
serviceResourceName: json["serviceResourceName"],
|
|
620
|
+
serviceFolderPath: json["serviceFolderPath"] == null ? undefined : json["serviceFolderPath"],
|
|
621
|
+
solutionResourceKey: json["solutionResourceKey"]
|
|
622
|
+
};
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
// ../solution-sdk/generated/src/models/FolderInfo.ts
|
|
626
|
+
function FolderInfoFromJSON(json) {
|
|
627
|
+
return FolderInfoFromJSONTyped(json, false);
|
|
628
|
+
}
|
|
629
|
+
function FolderInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
630
|
+
if (json == null) {
|
|
631
|
+
return json;
|
|
632
|
+
}
|
|
633
|
+
return {
|
|
634
|
+
fullyQualifiedName: json["fullyQualifiedName"],
|
|
635
|
+
path: json["path"] == null ? undefined : json["path"],
|
|
636
|
+
folderKey: json["folderKey"] == null ? undefined : json["folderKey"]
|
|
637
|
+
};
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
// ../solution-sdk/generated/src/models/DeploymentResourceInfo.ts
|
|
641
|
+
function DeploymentResourceInfoFromJSON(json) {
|
|
642
|
+
return DeploymentResourceInfoFromJSONTyped(json, false);
|
|
643
|
+
}
|
|
644
|
+
function DeploymentResourceInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
645
|
+
if (json == null) {
|
|
646
|
+
return json;
|
|
647
|
+
}
|
|
648
|
+
return {
|
|
649
|
+
key: json["key"],
|
|
650
|
+
name: json["name"],
|
|
651
|
+
kind: json["kind"],
|
|
652
|
+
type: json["type"] == null ? undefined : json["type"],
|
|
653
|
+
apiVersion: json["apiVersion"],
|
|
654
|
+
folders: json["folders"].map(FolderInfoFromJSON),
|
|
655
|
+
requiresConfiguration: json["requiresConfiguration"],
|
|
656
|
+
isOverridable: json["isOverridable"],
|
|
657
|
+
hasWarnings: json["hasWarnings"],
|
|
658
|
+
upgradeState: json["upgradeState"] == null ? undefined : DeploymentUpgradeStateFromJSON(json["upgradeState"]),
|
|
659
|
+
upgradeConfigurationSource: json["upgradeConfigurationSource"] == null ? undefined : ResetConfigurationSourceFromJSON(json["upgradeConfigurationSource"]),
|
|
660
|
+
resourceReplacement: json["resourceReplacement"] == null ? undefined : DeploymentResourceReplacementDtoFromJSON(json["resourceReplacement"]),
|
|
661
|
+
selectedAction: json["selectedAction"] == null ? undefined : DeploymentResourceValidationActionFromJSON(json["selectedAction"])
|
|
662
|
+
};
|
|
663
|
+
}
|
|
664
|
+
// ../solution-sdk/generated/src/models/DeploymentResourceValidationErrorKind.ts
|
|
665
|
+
function DeploymentResourceValidationErrorKindFromJSON(json) {
|
|
666
|
+
return DeploymentResourceValidationErrorKindFromJSONTyped(json, false);
|
|
667
|
+
}
|
|
668
|
+
function DeploymentResourceValidationErrorKindFromJSONTyped(json, ignoreDiscriminator) {
|
|
669
|
+
return json;
|
|
670
|
+
}
|
|
671
|
+
// ../solution-sdk/generated/src/models/DeploymentResourceValidationErrorLevel.ts
|
|
672
|
+
function DeploymentResourceValidationErrorLevelFromJSON(json) {
|
|
673
|
+
return DeploymentResourceValidationErrorLevelFromJSONTyped(json, false);
|
|
674
|
+
}
|
|
675
|
+
function DeploymentResourceValidationErrorLevelFromJSONTyped(json, ignoreDiscriminator) {
|
|
676
|
+
return json;
|
|
677
|
+
}
|
|
678
|
+
// ../solution-sdk/generated/src/models/DeploymentType.ts
|
|
679
|
+
function DeploymentTypeFromJSON(json) {
|
|
680
|
+
return DeploymentTypeFromJSONTyped(json, false);
|
|
681
|
+
}
|
|
682
|
+
function DeploymentTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
683
|
+
return json;
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
// ../solution-sdk/generated/src/models/DeploymentSearchItemDto2.ts
|
|
687
|
+
function DeploymentSearchItemDto2FromJSON(json) {
|
|
688
|
+
return DeploymentSearchItemDto2FromJSONTyped(json, false);
|
|
689
|
+
}
|
|
690
|
+
function DeploymentSearchItemDto2FromJSONTyped(json, ignoreDiscriminator) {
|
|
691
|
+
if (json == null) {
|
|
692
|
+
return json;
|
|
693
|
+
}
|
|
694
|
+
return {
|
|
695
|
+
key: json["key"],
|
|
696
|
+
installDeploymentKey: json["installDeploymentKey"],
|
|
697
|
+
instanceId: json["instanceId"] == null ? undefined : json["instanceId"],
|
|
698
|
+
configurationKey: json["configurationKey"],
|
|
699
|
+
packageVersionKey: json["packageVersionKey"],
|
|
700
|
+
packageKey: json["packageKey"],
|
|
701
|
+
packageName: json["packageName"],
|
|
702
|
+
packageVersion: json["packageVersion"],
|
|
703
|
+
currentPackageVersion: json["currentPackageVersion"] == null ? undefined : json["currentPackageVersion"],
|
|
704
|
+
targetPackageVersion: json["targetPackageVersion"] == null ? undefined : json["targetPackageVersion"],
|
|
705
|
+
packageVersionOrigin: PackageVersionOriginFromJSON(json["packageVersionOrigin"]),
|
|
706
|
+
folderPath: json["folderPath"] == null ? undefined : json["folderPath"],
|
|
707
|
+
installedRootFolderKey: json["installedRootFolderKey"] == null ? undefined : json["installedRootFolderKey"],
|
|
708
|
+
installedRootFolderName: json["installedRootFolderName"] == null ? undefined : json["installedRootFolderName"],
|
|
709
|
+
deploymentCreationTime: new Date(json["deploymentCreationTime"]),
|
|
710
|
+
startTime: json["startTime"] == null ? undefined : new Date(json["startTime"]),
|
|
711
|
+
endTime: json["endTime"] == null ? undefined : new Date(json["endTime"]),
|
|
712
|
+
actions: json["actions"].map(WorkflowActionFromJSON),
|
|
713
|
+
name: json["name"],
|
|
714
|
+
type: DeploymentTypeFromJSON(json["type"]),
|
|
715
|
+
operation: DeploymentOperationFromJSON(json["operation"]),
|
|
716
|
+
operationStatus: DeploymentOperationStatusFromJSON(json["operationStatus"]),
|
|
717
|
+
activationStatus: DeploymentActivationStatusFromJSON(json["activationStatus"]),
|
|
718
|
+
newPackageVersionAvailable: json["newPackageVersionAvailable"] == null ? undefined : json["newPackageVersionAvailable"],
|
|
719
|
+
packageVersionDescription: json["packageVersionDescription"] == null ? undefined : json["packageVersionDescription"],
|
|
720
|
+
packageVersionReleaseNotes: json["packageVersionReleaseNotes"] == null ? undefined : json["packageVersionReleaseNotes"],
|
|
721
|
+
authorName: json["authorName"],
|
|
722
|
+
previousDeploymentKey: json["previousDeploymentKey"] == null ? undefined : json["previousDeploymentKey"],
|
|
723
|
+
previousInstanceId: json["previousInstanceId"] == null ? undefined : json["previousInstanceId"]
|
|
724
|
+
};
|
|
725
|
+
}
|
|
726
|
+
// ../solution-sdk/generated/src/models/ServiceMessage.ts
|
|
727
|
+
function ServiceMessageFromJSON(json) {
|
|
728
|
+
return ServiceMessageFromJSONTyped(json, false);
|
|
729
|
+
}
|
|
730
|
+
function ServiceMessageFromJSONTyped(json, ignoreDiscriminator) {
|
|
731
|
+
if (json == null) {
|
|
732
|
+
return json;
|
|
733
|
+
}
|
|
734
|
+
return {
|
|
735
|
+
resource: json["resource"],
|
|
736
|
+
text: json["text"],
|
|
737
|
+
parameters: json["parameters"],
|
|
738
|
+
errorCode: json["errorCode"] == null ? undefined : json["errorCode"]
|
|
739
|
+
};
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
// ../solution-sdk/generated/src/models/ResourceValidationError.ts
|
|
743
|
+
function ResourceValidationErrorFromJSON(json) {
|
|
744
|
+
return ResourceValidationErrorFromJSONTyped(json, false);
|
|
745
|
+
}
|
|
746
|
+
function ResourceValidationErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
747
|
+
if (json == null) {
|
|
748
|
+
return json;
|
|
749
|
+
}
|
|
750
|
+
return {
|
|
751
|
+
resource: json["resource"],
|
|
752
|
+
text: json["text"],
|
|
753
|
+
parameters: json["parameters"],
|
|
754
|
+
errorCode: json["errorCode"] == null ? undefined : json["errorCode"],
|
|
755
|
+
kind: DeploymentResourceValidationErrorKindFromJSON(json["kind"]),
|
|
756
|
+
level: DeploymentResourceValidationErrorLevelFromJSON(json["level"]),
|
|
757
|
+
propertyName: json["propertyName"] == null ? undefined : json["propertyName"],
|
|
758
|
+
allowedActions: json["allowedActions"].map(DeploymentResourceValidationActionFromJSON)
|
|
759
|
+
};
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
// ../solution-sdk/generated/src/models/ResourceValidationDto.ts
|
|
763
|
+
function ResourceValidationDtoFromJSON(json) {
|
|
764
|
+
return ResourceValidationDtoFromJSONTyped(json, false);
|
|
765
|
+
}
|
|
766
|
+
function ResourceValidationDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
767
|
+
if (json == null) {
|
|
768
|
+
return json;
|
|
769
|
+
}
|
|
770
|
+
return {
|
|
771
|
+
key: json["key"],
|
|
772
|
+
name: json["name"],
|
|
773
|
+
kind: json["kind"],
|
|
774
|
+
serviceName: json["serviceName"],
|
|
775
|
+
type: json["type"] == null ? undefined : json["type"],
|
|
776
|
+
errors: json["errors"].map(ResourceValidationErrorFromJSON)
|
|
777
|
+
};
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
// ../solution-sdk/generated/src/models/DeploymentValidationResultDto.ts
|
|
781
|
+
function DeploymentValidationResultDtoFromJSON(json) {
|
|
782
|
+
return DeploymentValidationResultDtoFromJSONTyped(json, false);
|
|
783
|
+
}
|
|
784
|
+
function DeploymentValidationResultDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
785
|
+
if (json == null) {
|
|
786
|
+
return json;
|
|
787
|
+
}
|
|
788
|
+
return {
|
|
789
|
+
success: json["success"] == null ? undefined : json["success"],
|
|
790
|
+
validationErrors: json["validationErrors"].map(ServiceMessageFromJSON),
|
|
791
|
+
resourceValidationErrors: json["resourceValidationErrors"].map(ResourceValidationDtoFromJSON)
|
|
792
|
+
};
|
|
793
|
+
}
|
|
794
|
+
// ../solution-sdk/generated/src/models/OrderByDirection.ts
|
|
795
|
+
function OrderByDirectionToJSON(value) {
|
|
796
|
+
return value;
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
// ../solution-sdk/generated/src/models/DeploymentsSearchRequest2.ts
|
|
800
|
+
function DeploymentsSearchRequest2ToJSON(json) {
|
|
801
|
+
return DeploymentsSearchRequest2ToJSONTyped(json, false);
|
|
802
|
+
}
|
|
803
|
+
function DeploymentsSearchRequest2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
804
|
+
if (value == null) {
|
|
805
|
+
return value;
|
|
806
|
+
}
|
|
807
|
+
return {
|
|
808
|
+
orderByColumn: value["orderByColumn"],
|
|
809
|
+
orderByDirection: OrderByDirectionToJSON(value["orderByDirection"]),
|
|
810
|
+
searchTerm: value["searchTerm"],
|
|
811
|
+
skip: value["skip"],
|
|
812
|
+
take: value["take"],
|
|
813
|
+
operationStatuses: value["operationStatuses"].map(DeploymentOperationStatusToJSON),
|
|
814
|
+
operation: DeploymentOperationToJSON(value["operation"]),
|
|
815
|
+
activationStatuses: value["activationStatuses"].map(DeploymentActivationStatusToJSON),
|
|
816
|
+
packageName: value["packageName"],
|
|
817
|
+
packageVersion: value["packageVersion"],
|
|
818
|
+
currentPackageVersion: value["currentPackageVersion"],
|
|
819
|
+
targetPackageVersion: value["targetPackageVersion"],
|
|
820
|
+
targetFolderName: value["targetFolderName"],
|
|
821
|
+
packageVersionKey: value["packageVersionKey"]
|
|
822
|
+
};
|
|
823
|
+
}
|
|
824
|
+
// ../solution-sdk/generated/src/models/ExtendedPackageVersionState.ts
|
|
825
|
+
function ExtendedPackageVersionStateFromJSON(json) {
|
|
826
|
+
return ExtendedPackageVersionStateFromJSONTyped(json, false);
|
|
827
|
+
}
|
|
828
|
+
function ExtendedPackageVersionStateFromJSONTyped(json, ignoreDiscriminator) {
|
|
829
|
+
return json;
|
|
830
|
+
}
|
|
831
|
+
// ../solution-sdk/generated/src/models/PackageInfo.ts
|
|
832
|
+
function PackageInfoFromJSON(json) {
|
|
833
|
+
return PackageInfoFromJSONTyped(json, false);
|
|
834
|
+
}
|
|
835
|
+
function PackageInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
836
|
+
if (json == null) {
|
|
837
|
+
return json;
|
|
838
|
+
}
|
|
839
|
+
return {
|
|
840
|
+
key: json["key"],
|
|
841
|
+
name: json["name"],
|
|
842
|
+
latestVersion: json["latestVersion"],
|
|
843
|
+
packageVersionKey: json["packageVersionKey"],
|
|
844
|
+
authorName: json["authorName"],
|
|
845
|
+
authorEmail: json["authorEmail"] == null ? undefined : json["authorEmail"],
|
|
846
|
+
publishDate: new Date(json["publishDate"]),
|
|
847
|
+
description: json["description"] == null ? undefined : json["description"],
|
|
848
|
+
releaseNotes: json["releaseNotes"] == null ? undefined : json["releaseNotes"],
|
|
849
|
+
state: ExtendedPackageVersionStateFromJSON(json["state"]),
|
|
850
|
+
solutionRootFolderName: json["solutionRootFolderName"],
|
|
851
|
+
hasUpgradeableDeployments: json["hasUpgradeableDeployments"]
|
|
852
|
+
};
|
|
853
|
+
}
|
|
854
|
+
// ../solution-sdk/generated/src/models/PageInfoDtoOfDeploymentResourceInfo.ts
|
|
855
|
+
function PageInfoDtoOfDeploymentResourceInfoFromJSON(json) {
|
|
856
|
+
return PageInfoDtoOfDeploymentResourceInfoFromJSONTyped(json, false);
|
|
857
|
+
}
|
|
858
|
+
function PageInfoDtoOfDeploymentResourceInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
859
|
+
if (json == null) {
|
|
860
|
+
return json;
|
|
861
|
+
}
|
|
862
|
+
return {
|
|
863
|
+
count: json["count"],
|
|
864
|
+
values: json["values"].map(DeploymentResourceInfoFromJSON)
|
|
865
|
+
};
|
|
866
|
+
}
|
|
867
|
+
// ../solution-sdk/generated/src/models/PageInfoDtoOfDeploymentSearchItemDto2.ts
|
|
868
|
+
function PageInfoDtoOfDeploymentSearchItemDto2FromJSON(json) {
|
|
869
|
+
return PageInfoDtoOfDeploymentSearchItemDto2FromJSONTyped(json, false);
|
|
870
|
+
}
|
|
871
|
+
function PageInfoDtoOfDeploymentSearchItemDto2FromJSONTyped(json, ignoreDiscriminator) {
|
|
872
|
+
if (json == null) {
|
|
873
|
+
return json;
|
|
874
|
+
}
|
|
875
|
+
return {
|
|
876
|
+
count: json["count"],
|
|
877
|
+
values: json["values"].map(DeploymentSearchItemDto2FromJSON)
|
|
878
|
+
};
|
|
879
|
+
}
|
|
880
|
+
// ../solution-sdk/generated/src/models/PageInfoDtoOfPackageInfo.ts
|
|
881
|
+
function PageInfoDtoOfPackageInfoFromJSON(json) {
|
|
882
|
+
return PageInfoDtoOfPackageInfoFromJSONTyped(json, false);
|
|
883
|
+
}
|
|
884
|
+
function PageInfoDtoOfPackageInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
885
|
+
if (json == null) {
|
|
886
|
+
return json;
|
|
887
|
+
}
|
|
888
|
+
return {
|
|
889
|
+
count: json["count"],
|
|
890
|
+
values: json["values"].map(PackageInfoFromJSON)
|
|
891
|
+
};
|
|
892
|
+
}
|
|
893
|
+
// ../solution-sdk/generated/src/models/SearchFilter.ts
|
|
894
|
+
function SearchFilterToJSON(json) {
|
|
895
|
+
return SearchFilterToJSONTyped(json, false);
|
|
896
|
+
}
|
|
897
|
+
function SearchFilterToJSONTyped(value, ignoreDiscriminator = false) {
|
|
898
|
+
if (value == null) {
|
|
899
|
+
return value;
|
|
900
|
+
}
|
|
901
|
+
return {
|
|
902
|
+
skip: value["skip"],
|
|
903
|
+
take: value["take"],
|
|
904
|
+
orderByColumn: value["orderByColumn"],
|
|
905
|
+
orderByDirection: OrderByDirectionToJSON(value["orderByDirection"]),
|
|
906
|
+
searchTerm: value["searchTerm"]
|
|
907
|
+
};
|
|
908
|
+
}
|
|
909
|
+
// ../solution-sdk/generated/src/apis/DeploymentsApi.ts
|
|
910
|
+
class DeploymentsApi2 extends BaseAPI {
|
|
911
|
+
async deploymentsDeleteRaw(requestParameters, initOverrides) {
|
|
912
|
+
if (requestParameters["deploymentKey"] == null) {
|
|
913
|
+
throw new RequiredError("deploymentKey", 'Required parameter "deploymentKey" was null or undefined when calling deploymentsDelete().');
|
|
914
|
+
}
|
|
915
|
+
const queryParameters = {};
|
|
916
|
+
const headerParameters = {};
|
|
917
|
+
if (requestParameters["xUipathAsVersion"] != null) {
|
|
918
|
+
headerParameters["x-uipath-as-version"] = String(requestParameters["xUipathAsVersion"]);
|
|
919
|
+
}
|
|
920
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
921
|
+
const token = this.configuration.accessToken;
|
|
922
|
+
const tokenString = await token("Bearer", []);
|
|
923
|
+
if (tokenString) {
|
|
924
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
let urlPath = `/api/deployments/{deploymentKey}`;
|
|
928
|
+
urlPath = urlPath.replace(`{${"deploymentKey"}}`, encodeURIComponent(String(requestParameters["deploymentKey"])));
|
|
929
|
+
const response = await this.request({
|
|
930
|
+
path: urlPath,
|
|
931
|
+
method: "DELETE",
|
|
932
|
+
headers: headerParameters,
|
|
933
|
+
query: queryParameters
|
|
934
|
+
}, initOverrides);
|
|
935
|
+
return new VoidApiResponse(response);
|
|
936
|
+
}
|
|
937
|
+
async deploymentsDelete(requestParameters, initOverrides) {
|
|
938
|
+
await this.deploymentsDeleteRaw(requestParameters, initOverrides);
|
|
939
|
+
}
|
|
940
|
+
async deploymentsDeployRaw(requestParameters, initOverrides) {
|
|
941
|
+
if (requestParameters["deploymentAutoRequest"] == null) {
|
|
942
|
+
throw new RequiredError("deploymentAutoRequest", 'Required parameter "deploymentAutoRequest" was null or undefined when calling deploymentsDeploy().');
|
|
943
|
+
}
|
|
944
|
+
const queryParameters = {};
|
|
945
|
+
const headerParameters = {};
|
|
946
|
+
headerParameters["Content-Type"] = "application/json";
|
|
947
|
+
if (requestParameters["xUIPATHFolderKey"] != null) {
|
|
948
|
+
headerParameters["X-UIPATH-FolderKey"] = String(requestParameters["xUIPATHFolderKey"]);
|
|
949
|
+
}
|
|
950
|
+
if (requestParameters["xUipathAsVersion"] != null) {
|
|
951
|
+
headerParameters["x-uipath-as-version"] = String(requestParameters["xUipathAsVersion"]);
|
|
952
|
+
}
|
|
953
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
954
|
+
const token = this.configuration.accessToken;
|
|
955
|
+
const tokenString = await token("Bearer", []);
|
|
956
|
+
if (tokenString) {
|
|
957
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
958
|
+
}
|
|
959
|
+
}
|
|
960
|
+
let urlPath = `/api/deployments/deploy`;
|
|
961
|
+
const response = await this.request({
|
|
962
|
+
path: urlPath,
|
|
963
|
+
method: "POST",
|
|
964
|
+
headers: headerParameters,
|
|
965
|
+
query: queryParameters,
|
|
966
|
+
body: DeploymentAutoRequestToJSON(requestParameters["deploymentAutoRequest"])
|
|
967
|
+
}, initOverrides);
|
|
968
|
+
return new JSONApiResponse(response, (jsonValue) => DeploymentDtoFromJSON(jsonValue));
|
|
969
|
+
}
|
|
970
|
+
async deploymentsDeploy(requestParameters, initOverrides) {
|
|
971
|
+
const response = await this.deploymentsDeployRaw(requestParameters, initOverrides);
|
|
972
|
+
return await response.value();
|
|
973
|
+
}
|
|
974
|
+
async deploymentsGetByKeyRaw(requestParameters, initOverrides) {
|
|
975
|
+
if (requestParameters["deploymentKey"] == null) {
|
|
976
|
+
throw new RequiredError("deploymentKey", 'Required parameter "deploymentKey" was null or undefined when calling deploymentsGetByKey().');
|
|
977
|
+
}
|
|
978
|
+
const queryParameters = {};
|
|
979
|
+
const headerParameters = {};
|
|
980
|
+
if (requestParameters["xUipathAsVersion"] != null) {
|
|
981
|
+
headerParameters["x-uipath-as-version"] = String(requestParameters["xUipathAsVersion"]);
|
|
982
|
+
}
|
|
983
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
984
|
+
const token = this.configuration.accessToken;
|
|
985
|
+
const tokenString = await token("Bearer", []);
|
|
986
|
+
if (tokenString) {
|
|
987
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
988
|
+
}
|
|
989
|
+
}
|
|
990
|
+
let urlPath = `/api/deployments/{deploymentKey}`;
|
|
991
|
+
urlPath = urlPath.replace(`{${"deploymentKey"}}`, encodeURIComponent(String(requestParameters["deploymentKey"])));
|
|
992
|
+
const response = await this.request({
|
|
993
|
+
path: urlPath,
|
|
994
|
+
method: "GET",
|
|
995
|
+
headers: headerParameters,
|
|
996
|
+
query: queryParameters
|
|
997
|
+
}, initOverrides);
|
|
998
|
+
return new JSONApiResponse(response, (jsonValue) => DeploymentItemDtoFromJSON(jsonValue));
|
|
999
|
+
}
|
|
1000
|
+
async deploymentsGetByKey(requestParameters, initOverrides) {
|
|
1001
|
+
const response = await this.deploymentsGetByKeyRaw(requestParameters, initOverrides);
|
|
1002
|
+
return await response.value();
|
|
1003
|
+
}
|
|
1004
|
+
async deploymentsGetDeploymentResourcesRaw(requestParameters, initOverrides) {
|
|
1005
|
+
if (requestParameters["deploymentKey"] == null) {
|
|
1006
|
+
throw new RequiredError("deploymentKey", 'Required parameter "deploymentKey" was null or undefined when calling deploymentsGetDeploymentResources().');
|
|
1007
|
+
}
|
|
1008
|
+
const queryParameters = {};
|
|
1009
|
+
if (requestParameters["folderKey"] != null) {
|
|
1010
|
+
queryParameters["folderKey"] = requestParameters["folderKey"];
|
|
1011
|
+
}
|
|
1012
|
+
if (requestParameters["kind"] != null) {
|
|
1013
|
+
queryParameters["kind"] = requestParameters["kind"];
|
|
1014
|
+
}
|
|
1015
|
+
if (requestParameters["skip"] != null) {
|
|
1016
|
+
queryParameters["skip"] = requestParameters["skip"];
|
|
1017
|
+
}
|
|
1018
|
+
if (requestParameters["take"] != null) {
|
|
1019
|
+
queryParameters["take"] = requestParameters["take"];
|
|
1020
|
+
}
|
|
1021
|
+
const headerParameters = {};
|
|
1022
|
+
if (requestParameters["xUipathAsVersion"] != null) {
|
|
1023
|
+
headerParameters["x-uipath-as-version"] = String(requestParameters["xUipathAsVersion"]);
|
|
1024
|
+
}
|
|
1025
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1026
|
+
const token = this.configuration.accessToken;
|
|
1027
|
+
const tokenString = await token("Bearer", []);
|
|
1028
|
+
if (tokenString) {
|
|
1029
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1030
|
+
}
|
|
1031
|
+
}
|
|
1032
|
+
let urlPath = `/api/deployments/{deploymentKey}/resources`;
|
|
1033
|
+
urlPath = urlPath.replace(`{${"deploymentKey"}}`, encodeURIComponent(String(requestParameters["deploymentKey"])));
|
|
1034
|
+
const response = await this.request({
|
|
1035
|
+
path: urlPath,
|
|
1036
|
+
method: "GET",
|
|
1037
|
+
headers: headerParameters,
|
|
1038
|
+
query: queryParameters
|
|
1039
|
+
}, initOverrides);
|
|
1040
|
+
return new JSONApiResponse(response, (jsonValue) => PageInfoDtoOfDeploymentResourceInfoFromJSON(jsonValue));
|
|
1041
|
+
}
|
|
1042
|
+
async deploymentsGetDeploymentResources(requestParameters, initOverrides) {
|
|
1043
|
+
const response = await this.deploymentsGetDeploymentResourcesRaw(requestParameters, initOverrides);
|
|
1044
|
+
return await response.value();
|
|
1045
|
+
}
|
|
1046
|
+
async deploymentsGetValidationResultRaw(requestParameters, initOverrides) {
|
|
1047
|
+
if (requestParameters["deploymentKey"] == null) {
|
|
1048
|
+
throw new RequiredError("deploymentKey", 'Required parameter "deploymentKey" was null or undefined when calling deploymentsGetValidationResult().');
|
|
1049
|
+
}
|
|
1050
|
+
const queryParameters = {};
|
|
1051
|
+
if (requestParameters["deploymentAction"] != null) {
|
|
1052
|
+
queryParameters["deploymentAction"] = requestParameters["deploymentAction"];
|
|
1053
|
+
}
|
|
1054
|
+
const headerParameters = {};
|
|
1055
|
+
if (requestParameters["xUipathAsVersion"] != null) {
|
|
1056
|
+
headerParameters["x-uipath-as-version"] = String(requestParameters["xUipathAsVersion"]);
|
|
1057
|
+
}
|
|
1058
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1059
|
+
const token = this.configuration.accessToken;
|
|
1060
|
+
const tokenString = await token("Bearer", []);
|
|
1061
|
+
if (tokenString) {
|
|
1062
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1063
|
+
}
|
|
1064
|
+
}
|
|
1065
|
+
let urlPath = `/api/deployments/{deploymentKey}/validation-result`;
|
|
1066
|
+
urlPath = urlPath.replace(`{${"deploymentKey"}}`, encodeURIComponent(String(requestParameters["deploymentKey"])));
|
|
1067
|
+
const response = await this.request({
|
|
1068
|
+
path: urlPath,
|
|
1069
|
+
method: "GET",
|
|
1070
|
+
headers: headerParameters,
|
|
1071
|
+
query: queryParameters
|
|
1072
|
+
}, initOverrides);
|
|
1073
|
+
return new JSONApiResponse(response, (jsonValue) => DeploymentValidationResultDtoFromJSON(jsonValue));
|
|
1074
|
+
}
|
|
1075
|
+
async deploymentsGetValidationResult(requestParameters, initOverrides) {
|
|
1076
|
+
const response = await this.deploymentsGetValidationResultRaw(requestParameters, initOverrides);
|
|
1077
|
+
return await response.value();
|
|
1078
|
+
}
|
|
1079
|
+
async deploymentsPostRaw(requestParameters, initOverrides) {
|
|
1080
|
+
if (requestParameters["deploymentRequest"] == null) {
|
|
1081
|
+
throw new RequiredError("deploymentRequest", 'Required parameter "deploymentRequest" was null or undefined when calling deploymentsPost().');
|
|
1082
|
+
}
|
|
1083
|
+
const queryParameters = {};
|
|
1084
|
+
const headerParameters = {};
|
|
1085
|
+
headerParameters["Content-Type"] = "application/json";
|
|
1086
|
+
if (requestParameters["xUipathAsVersion"] != null) {
|
|
1087
|
+
headerParameters["x-uipath-as-version"] = String(requestParameters["xUipathAsVersion"]);
|
|
1088
|
+
}
|
|
1089
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1090
|
+
const token = this.configuration.accessToken;
|
|
1091
|
+
const tokenString = await token("Bearer", []);
|
|
1092
|
+
if (tokenString) {
|
|
1093
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
let urlPath = `/api/deployments`;
|
|
1097
|
+
const response = await this.request({
|
|
1098
|
+
path: urlPath,
|
|
1099
|
+
method: "POST",
|
|
1100
|
+
headers: headerParameters,
|
|
1101
|
+
query: queryParameters,
|
|
1102
|
+
body: DeploymentRequestToJSON(requestParameters["deploymentRequest"])
|
|
1103
|
+
}, initOverrides);
|
|
1104
|
+
return new JSONApiResponse(response, (jsonValue) => DeploymentItemDtoFromJSON(jsonValue));
|
|
1105
|
+
}
|
|
1106
|
+
async deploymentsPost(requestParameters, initOverrides) {
|
|
1107
|
+
const response = await this.deploymentsPostRaw(requestParameters, initOverrides);
|
|
1108
|
+
return await response.value();
|
|
1109
|
+
}
|
|
1110
|
+
}
|
|
1111
|
+
// ../solution-sdk/generated/src/apis/SearchApi.ts
|
|
1112
|
+
class SearchApi extends BaseAPI {
|
|
1113
|
+
async searchSearchDeployments22Raw(requestParameters, initOverrides) {
|
|
1114
|
+
if (requestParameters["deploymentsSearchRequest2"] == null) {
|
|
1115
|
+
throw new RequiredError("deploymentsSearchRequest2", 'Required parameter "deploymentsSearchRequest2" was null or undefined when calling searchSearchDeployments22().');
|
|
1116
|
+
}
|
|
1117
|
+
const queryParameters = {};
|
|
1118
|
+
const headerParameters = {};
|
|
1119
|
+
headerParameters["Content-Type"] = "application/json";
|
|
1120
|
+
if (requestParameters["xUipathAsVersion"] != null) {
|
|
1121
|
+
headerParameters["x-uipath-as-version"] = String(requestParameters["xUipathAsVersion"]);
|
|
1122
|
+
}
|
|
1123
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1124
|
+
const token = this.configuration.accessToken;
|
|
1125
|
+
const tokenString = await token("Bearer", []);
|
|
1126
|
+
if (tokenString) {
|
|
1127
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1128
|
+
}
|
|
1129
|
+
}
|
|
1130
|
+
let urlPath = `/api/v3/search/deployments`;
|
|
1131
|
+
const response = await this.request({
|
|
1132
|
+
path: urlPath,
|
|
1133
|
+
method: "POST",
|
|
1134
|
+
headers: headerParameters,
|
|
1135
|
+
query: queryParameters,
|
|
1136
|
+
body: DeploymentsSearchRequest2ToJSON(requestParameters["deploymentsSearchRequest2"])
|
|
1137
|
+
}, initOverrides);
|
|
1138
|
+
return new JSONApiResponse(response, (jsonValue) => PageInfoDtoOfDeploymentSearchItemDto2FromJSON(jsonValue));
|
|
1139
|
+
}
|
|
1140
|
+
async searchSearchDeployments22(requestParameters, initOverrides) {
|
|
1141
|
+
const response = await this.searchSearchDeployments22Raw(requestParameters, initOverrides);
|
|
1142
|
+
return await response.value();
|
|
1143
|
+
}
|
|
1144
|
+
async searchSearchPackagesRaw(requestParameters, initOverrides) {
|
|
1145
|
+
if (requestParameters["searchFilter"] == null) {
|
|
1146
|
+
throw new RequiredError("searchFilter", 'Required parameter "searchFilter" was null or undefined when calling searchSearchPackages().');
|
|
1147
|
+
}
|
|
1148
|
+
const queryParameters = {};
|
|
1149
|
+
const headerParameters = {};
|
|
1150
|
+
headerParameters["Content-Type"] = "application/json";
|
|
1151
|
+
if (requestParameters["xUipathAsVersion"] != null) {
|
|
1152
|
+
headerParameters["x-uipath-as-version"] = String(requestParameters["xUipathAsVersion"]);
|
|
1153
|
+
}
|
|
1154
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1155
|
+
const token = this.configuration.accessToken;
|
|
1156
|
+
const tokenString = await token("Bearer", []);
|
|
1157
|
+
if (tokenString) {
|
|
1158
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1159
|
+
}
|
|
1160
|
+
}
|
|
1161
|
+
let urlPath = `/api/search/packages`;
|
|
1162
|
+
const response = await this.request({
|
|
1163
|
+
path: urlPath,
|
|
1164
|
+
method: "POST",
|
|
1165
|
+
headers: headerParameters,
|
|
1166
|
+
query: queryParameters,
|
|
1167
|
+
body: SearchFilterToJSON(requestParameters["searchFilter"])
|
|
1168
|
+
}, initOverrides);
|
|
1169
|
+
return new JSONApiResponse(response, (jsonValue) => PageInfoDtoOfPackageInfoFromJSON(jsonValue));
|
|
1170
|
+
}
|
|
1171
|
+
async searchSearchPackages(requestParameters, initOverrides) {
|
|
1172
|
+
const response = await this.searchSearchPackagesRaw(requestParameters, initOverrides);
|
|
1173
|
+
return await response.value();
|
|
1174
|
+
}
|
|
1175
|
+
}
|
|
1176
|
+
export { Configuration3, ResponseError, SDK_USER_AGENT, DeploymentActivationStatus2, WorkflowAction2, DeploymentOperationStatus2, DeploymentSearchItemDto2FromJSON, PackageInfoFromJSON, SolutionDeploymentAction2, DeploymentsApi2, SearchApi };
|
|
1177
|
+
|
|
1178
|
+
//# debugId=A4943AC754FBB11564756E2164756E21
|