@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,1908 @@
|
|
|
1
|
+
import {
|
|
2
|
+
catchError,
|
|
3
|
+
getSdkUserAgentToken,
|
|
4
|
+
httpStatusOf,
|
|
5
|
+
installSdkUserAgentHeader
|
|
6
|
+
} from "./index-enc2hqq5.js";
|
|
7
|
+
import {
|
|
8
|
+
resolveSessionIdentity
|
|
9
|
+
} from "./index-hkexw5er.js";
|
|
10
|
+
|
|
11
|
+
// ../pipelines-sdk/generated/src/runtime.ts
|
|
12
|
+
var BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
|
13
|
+
|
|
14
|
+
class Configuration {
|
|
15
|
+
configuration;
|
|
16
|
+
constructor(configuration = {}) {
|
|
17
|
+
this.configuration = configuration;
|
|
18
|
+
}
|
|
19
|
+
set config(configuration) {
|
|
20
|
+
this.configuration = configuration;
|
|
21
|
+
}
|
|
22
|
+
get basePath() {
|
|
23
|
+
return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH;
|
|
24
|
+
}
|
|
25
|
+
get fetchApi() {
|
|
26
|
+
return this.configuration.fetchApi;
|
|
27
|
+
}
|
|
28
|
+
get middleware() {
|
|
29
|
+
return this.configuration.middleware || [];
|
|
30
|
+
}
|
|
31
|
+
get queryParamsStringify() {
|
|
32
|
+
return this.configuration.queryParamsStringify || querystring;
|
|
33
|
+
}
|
|
34
|
+
get username() {
|
|
35
|
+
return this.configuration.username;
|
|
36
|
+
}
|
|
37
|
+
get password() {
|
|
38
|
+
return this.configuration.password;
|
|
39
|
+
}
|
|
40
|
+
get apiKey() {
|
|
41
|
+
const apiKey = this.configuration.apiKey;
|
|
42
|
+
if (apiKey) {
|
|
43
|
+
return typeof apiKey === "function" ? apiKey : () => apiKey;
|
|
44
|
+
}
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
get accessToken() {
|
|
48
|
+
const accessToken = this.configuration.accessToken;
|
|
49
|
+
if (accessToken) {
|
|
50
|
+
return typeof accessToken === "function" ? accessToken : async () => accessToken;
|
|
51
|
+
}
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
get headers() {
|
|
55
|
+
return this.configuration.headers;
|
|
56
|
+
}
|
|
57
|
+
get credentials() {
|
|
58
|
+
return this.configuration.credentials;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
var DefaultConfig = new Configuration;
|
|
62
|
+
|
|
63
|
+
class BaseAPI {
|
|
64
|
+
configuration;
|
|
65
|
+
static jsonRegex = new RegExp("^(:?application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$", "i");
|
|
66
|
+
middleware;
|
|
67
|
+
constructor(configuration = DefaultConfig) {
|
|
68
|
+
this.configuration = configuration;
|
|
69
|
+
this.middleware = configuration.middleware;
|
|
70
|
+
}
|
|
71
|
+
withMiddleware(...middlewares) {
|
|
72
|
+
const next = this.clone();
|
|
73
|
+
next.middleware = next.middleware.concat(...middlewares);
|
|
74
|
+
return next;
|
|
75
|
+
}
|
|
76
|
+
withPreMiddleware(...preMiddlewares) {
|
|
77
|
+
const middlewares = preMiddlewares.map((pre) => ({ pre }));
|
|
78
|
+
return this.withMiddleware(...middlewares);
|
|
79
|
+
}
|
|
80
|
+
withPostMiddleware(...postMiddlewares) {
|
|
81
|
+
const middlewares = postMiddlewares.map((post) => ({ post }));
|
|
82
|
+
return this.withMiddleware(...middlewares);
|
|
83
|
+
}
|
|
84
|
+
isJsonMime(mime) {
|
|
85
|
+
if (!mime) {
|
|
86
|
+
return false;
|
|
87
|
+
}
|
|
88
|
+
return BaseAPI.jsonRegex.test(mime);
|
|
89
|
+
}
|
|
90
|
+
async request(context, initOverrides) {
|
|
91
|
+
const { url, init } = await this.createFetchParams(context, initOverrides);
|
|
92
|
+
const response = await this.fetchApi(url, init);
|
|
93
|
+
if (response && (response.status >= 200 && response.status < 300)) {
|
|
94
|
+
return response;
|
|
95
|
+
}
|
|
96
|
+
throw new ResponseError(response, "Response returned an error code");
|
|
97
|
+
}
|
|
98
|
+
async createFetchParams(context, initOverrides) {
|
|
99
|
+
let url = this.configuration.basePath + context.path;
|
|
100
|
+
if (context.query !== undefined && Object.keys(context.query).length !== 0) {
|
|
101
|
+
url += "?" + this.configuration.queryParamsStringify(context.query);
|
|
102
|
+
}
|
|
103
|
+
const headers = Object.assign({}, this.configuration.headers, context.headers);
|
|
104
|
+
Object.keys(headers).forEach((key) => headers[key] === undefined ? delete headers[key] : {});
|
|
105
|
+
const initOverrideFn = typeof initOverrides === "function" ? initOverrides : async () => initOverrides;
|
|
106
|
+
const initParams = {
|
|
107
|
+
method: context.method,
|
|
108
|
+
headers,
|
|
109
|
+
body: context.body,
|
|
110
|
+
credentials: this.configuration.credentials
|
|
111
|
+
};
|
|
112
|
+
const overriddenInit = {
|
|
113
|
+
...initParams,
|
|
114
|
+
...await initOverrideFn({
|
|
115
|
+
init: initParams,
|
|
116
|
+
context
|
|
117
|
+
})
|
|
118
|
+
};
|
|
119
|
+
let body;
|
|
120
|
+
if (isFormData(overriddenInit.body) || overriddenInit.body instanceof URLSearchParams || isBlob(overriddenInit.body)) {
|
|
121
|
+
body = overriddenInit.body;
|
|
122
|
+
} else if (this.isJsonMime(headers["Content-Type"])) {
|
|
123
|
+
body = JSON.stringify(overriddenInit.body);
|
|
124
|
+
} else {
|
|
125
|
+
body = overriddenInit.body;
|
|
126
|
+
}
|
|
127
|
+
const init = {
|
|
128
|
+
...overriddenInit,
|
|
129
|
+
body
|
|
130
|
+
};
|
|
131
|
+
return { url, init };
|
|
132
|
+
}
|
|
133
|
+
fetchApi = async (url, init) => {
|
|
134
|
+
let fetchParams = { url, init };
|
|
135
|
+
for (const middleware of this.middleware) {
|
|
136
|
+
if (middleware.pre) {
|
|
137
|
+
fetchParams = await middleware.pre({
|
|
138
|
+
fetch: this.fetchApi,
|
|
139
|
+
...fetchParams
|
|
140
|
+
}) || fetchParams;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
let response = undefined;
|
|
144
|
+
try {
|
|
145
|
+
response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init);
|
|
146
|
+
} catch (e) {
|
|
147
|
+
for (const middleware of this.middleware) {
|
|
148
|
+
if (middleware.onError) {
|
|
149
|
+
response = await middleware.onError({
|
|
150
|
+
fetch: this.fetchApi,
|
|
151
|
+
url: fetchParams.url,
|
|
152
|
+
init: fetchParams.init,
|
|
153
|
+
error: e,
|
|
154
|
+
response: response ? response.clone() : undefined
|
|
155
|
+
}) || response;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
if (response === undefined) {
|
|
159
|
+
if (e instanceof Error) {
|
|
160
|
+
throw new FetchError(e, "The request failed and the interceptors did not return an alternative response");
|
|
161
|
+
} else {
|
|
162
|
+
throw e;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
for (const middleware of this.middleware) {
|
|
167
|
+
if (middleware.post) {
|
|
168
|
+
response = await middleware.post({
|
|
169
|
+
fetch: this.fetchApi,
|
|
170
|
+
url: fetchParams.url,
|
|
171
|
+
init: fetchParams.init,
|
|
172
|
+
response: response.clone()
|
|
173
|
+
}) || response;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
return response;
|
|
177
|
+
};
|
|
178
|
+
clone() {
|
|
179
|
+
const constructor = this.constructor;
|
|
180
|
+
const next = new constructor(this.configuration);
|
|
181
|
+
next.middleware = this.middleware.slice();
|
|
182
|
+
return next;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
function isBlob(value) {
|
|
186
|
+
return typeof Blob !== "undefined" && value instanceof Blob;
|
|
187
|
+
}
|
|
188
|
+
function isFormData(value) {
|
|
189
|
+
return typeof FormData !== "undefined" && value instanceof FormData;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
class ResponseError extends Error {
|
|
193
|
+
response;
|
|
194
|
+
name = "ResponseError";
|
|
195
|
+
constructor(response, msg) {
|
|
196
|
+
super(msg);
|
|
197
|
+
this.response = response;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
class FetchError extends Error {
|
|
202
|
+
cause;
|
|
203
|
+
name = "FetchError";
|
|
204
|
+
constructor(cause, msg) {
|
|
205
|
+
super(msg);
|
|
206
|
+
this.cause = cause;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
class RequiredError extends Error {
|
|
211
|
+
field;
|
|
212
|
+
name = "RequiredError";
|
|
213
|
+
constructor(field, msg) {
|
|
214
|
+
super(msg);
|
|
215
|
+
this.field = field;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
function querystring(params, prefix = "") {
|
|
219
|
+
return Object.keys(params).map((key) => querystringSingleKey(key, params[key], prefix)).filter((part) => part.length > 0).join("&");
|
|
220
|
+
}
|
|
221
|
+
function querystringSingleKey(key, value, keyPrefix = "") {
|
|
222
|
+
const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key);
|
|
223
|
+
if (value instanceof Array) {
|
|
224
|
+
const multiValue = value.map((singleValue) => encodeURIComponent(String(singleValue))).join(`&${encodeURIComponent(fullKey)}=`);
|
|
225
|
+
return `${encodeURIComponent(fullKey)}=${multiValue}`;
|
|
226
|
+
}
|
|
227
|
+
if (value instanceof Set) {
|
|
228
|
+
const valueAsArray = Array.from(value);
|
|
229
|
+
return querystringSingleKey(key, valueAsArray, keyPrefix);
|
|
230
|
+
}
|
|
231
|
+
if (value instanceof Date) {
|
|
232
|
+
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`;
|
|
233
|
+
}
|
|
234
|
+
if (value instanceof Object) {
|
|
235
|
+
return querystring(value, fullKey);
|
|
236
|
+
}
|
|
237
|
+
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
|
|
238
|
+
}
|
|
239
|
+
class JSONApiResponse {
|
|
240
|
+
raw;
|
|
241
|
+
transformer;
|
|
242
|
+
constructor(raw, transformer = (jsonValue) => jsonValue) {
|
|
243
|
+
this.raw = raw;
|
|
244
|
+
this.transformer = transformer;
|
|
245
|
+
}
|
|
246
|
+
async value() {
|
|
247
|
+
return this.transformer(await this.raw.json());
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
class VoidApiResponse {
|
|
252
|
+
raw;
|
|
253
|
+
constructor(raw) {
|
|
254
|
+
this.raw = raw;
|
|
255
|
+
}
|
|
256
|
+
async value() {
|
|
257
|
+
return;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
class BlobApiResponse {
|
|
262
|
+
raw;
|
|
263
|
+
constructor(raw) {
|
|
264
|
+
this.raw = raw;
|
|
265
|
+
}
|
|
266
|
+
async value() {
|
|
267
|
+
return await this.raw.blob();
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
class TextApiResponse {
|
|
272
|
+
raw;
|
|
273
|
+
constructor(raw) {
|
|
274
|
+
this.raw = raw;
|
|
275
|
+
}
|
|
276
|
+
async value() {
|
|
277
|
+
return await this.raw.text();
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
// ../pipelines-sdk/generated/src/models/BaseResourceIdentifier.ts
|
|
282
|
+
function BaseResourceIdentifierFromJSON(json) {
|
|
283
|
+
return BaseResourceIdentifierFromJSONTyped(json, false);
|
|
284
|
+
}
|
|
285
|
+
function BaseResourceIdentifierFromJSONTyped(json, ignoreDiscriminator) {
|
|
286
|
+
if (json == null) {
|
|
287
|
+
return json;
|
|
288
|
+
}
|
|
289
|
+
return {
|
|
290
|
+
kind: json["kind"],
|
|
291
|
+
key: json["key"],
|
|
292
|
+
type: json["type"] == null ? undefined : json["type"]
|
|
293
|
+
};
|
|
294
|
+
}
|
|
295
|
+
// ../pipelines-sdk/generated/src/models/ResponseDictionaryDto.ts
|
|
296
|
+
function ResponseDictionaryDtoFromJSON(json) {
|
|
297
|
+
return ResponseDictionaryDtoFromJSONTyped(json, false);
|
|
298
|
+
}
|
|
299
|
+
function ResponseDictionaryDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
300
|
+
if (json == null) {
|
|
301
|
+
return json;
|
|
302
|
+
}
|
|
303
|
+
return {
|
|
304
|
+
keys: json["keys"] == null ? undefined : json["keys"],
|
|
305
|
+
values: json["values"] == null ? undefined : json["values"]
|
|
306
|
+
};
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
// ../pipelines-sdk/generated/src/models/BlobFileAccessDto.ts
|
|
310
|
+
function BlobFileAccessDtoFromJSON(json) {
|
|
311
|
+
return BlobFileAccessDtoFromJSONTyped(json, false);
|
|
312
|
+
}
|
|
313
|
+
function BlobFileAccessDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
314
|
+
if (json == null) {
|
|
315
|
+
return json;
|
|
316
|
+
}
|
|
317
|
+
return {
|
|
318
|
+
uri: json["uri"],
|
|
319
|
+
verb: json["verb"],
|
|
320
|
+
headers: json["headers"] == null ? undefined : ResponseDictionaryDtoFromJSON(json["headers"])
|
|
321
|
+
};
|
|
322
|
+
}
|
|
323
|
+
// ../pipelines-sdk/generated/src/models/DeploymentActivateResponse.ts
|
|
324
|
+
function DeploymentActivateResponseFromJSON(json) {
|
|
325
|
+
return DeploymentActivateResponseFromJSONTyped(json, false);
|
|
326
|
+
}
|
|
327
|
+
function DeploymentActivateResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
328
|
+
if (json == null) {
|
|
329
|
+
return json;
|
|
330
|
+
}
|
|
331
|
+
return {
|
|
332
|
+
instanceId: json["instanceId"] == null ? undefined : json["instanceId"]
|
|
333
|
+
};
|
|
334
|
+
}
|
|
335
|
+
// ../pipelines-sdk/generated/src/models/DeploymentActivationStatus.ts
|
|
336
|
+
function DeploymentActivationStatusFromJSON(json) {
|
|
337
|
+
return DeploymentActivationStatusFromJSONTyped(json, false);
|
|
338
|
+
}
|
|
339
|
+
function DeploymentActivationStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
340
|
+
return json;
|
|
341
|
+
}
|
|
342
|
+
function DeploymentActivationStatusToJSON(value) {
|
|
343
|
+
return value;
|
|
344
|
+
}
|
|
345
|
+
// ../pipelines-sdk/generated/src/models/DeploymentOperation.ts
|
|
346
|
+
function DeploymentOperationFromJSON(json) {
|
|
347
|
+
return DeploymentOperationFromJSONTyped(json, false);
|
|
348
|
+
}
|
|
349
|
+
function DeploymentOperationFromJSONTyped(json, ignoreDiscriminator) {
|
|
350
|
+
return json;
|
|
351
|
+
}
|
|
352
|
+
function DeploymentOperationToJSON(value) {
|
|
353
|
+
return value;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
// ../pipelines-sdk/generated/src/models/DeploymentOperationStatus.ts
|
|
357
|
+
function DeploymentOperationStatusFromJSON(json) {
|
|
358
|
+
return DeploymentOperationStatusFromJSONTyped(json, false);
|
|
359
|
+
}
|
|
360
|
+
function DeploymentOperationStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
361
|
+
return json;
|
|
362
|
+
}
|
|
363
|
+
function DeploymentOperationStatusToJSON(value) {
|
|
364
|
+
return value;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
// ../pipelines-sdk/generated/src/models/DeploymentStatus.ts
|
|
368
|
+
function DeploymentStatusFromJSON(json) {
|
|
369
|
+
return DeploymentStatusFromJSONTyped(json, false);
|
|
370
|
+
}
|
|
371
|
+
function DeploymentStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
372
|
+
return json;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
// ../pipelines-sdk/generated/src/models/DeploymentInfoDto.ts
|
|
376
|
+
function DeploymentInfoDtoFromJSON(json) {
|
|
377
|
+
return DeploymentInfoDtoFromJSONTyped(json, false);
|
|
378
|
+
}
|
|
379
|
+
function DeploymentInfoDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
380
|
+
if (json == null) {
|
|
381
|
+
return json;
|
|
382
|
+
}
|
|
383
|
+
return {
|
|
384
|
+
deploymentKey: json["deploymentKey"],
|
|
385
|
+
installDeploymentKey: json["installDeploymentKey"],
|
|
386
|
+
deploymentName: json["deploymentName"],
|
|
387
|
+
packageName: json["packageName"],
|
|
388
|
+
packageVersion: json["packageVersion"] == null ? undefined : json["packageVersion"],
|
|
389
|
+
targetPackageVersion: json["targetPackageVersion"] == null ? undefined : json["targetPackageVersion"],
|
|
390
|
+
packageVersionKey: json["packageVersionKey"],
|
|
391
|
+
status: DeploymentStatusFromJSON(json["status"]),
|
|
392
|
+
operation: DeploymentOperationFromJSON(json["operation"]),
|
|
393
|
+
operationStatus: DeploymentOperationStatusFromJSON(json["operationStatus"]),
|
|
394
|
+
locationKey: json["locationKey"] == null ? undefined : json["locationKey"],
|
|
395
|
+
installedRootFolderKey: json["installedRootFolderKey"] == null ? undefined : json["installedRootFolderKey"]
|
|
396
|
+
};
|
|
397
|
+
}
|
|
398
|
+
// ../pipelines-sdk/generated/src/models/DeploymentPreActivateStepDto.ts
|
|
399
|
+
function DeploymentPreActivateStepDtoFromJSON(json) {
|
|
400
|
+
return DeploymentPreActivateStepDtoFromJSONTyped(json, false);
|
|
401
|
+
}
|
|
402
|
+
function DeploymentPreActivateStepDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
403
|
+
if (json == null) {
|
|
404
|
+
return json;
|
|
405
|
+
}
|
|
406
|
+
return {
|
|
407
|
+
serviceName: json["serviceName"],
|
|
408
|
+
step: json["step"],
|
|
409
|
+
description: json["description"],
|
|
410
|
+
link: json["link"],
|
|
411
|
+
stepCode: json["stepCode"] == null ? undefined : json["stepCode"],
|
|
412
|
+
resourceKey: json["resourceKey"] == null ? undefined : json["resourceKey"],
|
|
413
|
+
resourceName: json["resourceName"] == null ? undefined : json["resourceName"],
|
|
414
|
+
kind: json["kind"] == null ? undefined : json["kind"],
|
|
415
|
+
folderPaths: json["folderPaths"] == null ? undefined : json["folderPaths"]
|
|
416
|
+
};
|
|
417
|
+
}
|
|
418
|
+
// ../pipelines-sdk/generated/src/models/DeploymentPreActivateStepsDto.ts
|
|
419
|
+
function DeploymentPreActivateStepsDtoFromJSON(json) {
|
|
420
|
+
return DeploymentPreActivateStepsDtoFromJSONTyped(json, false);
|
|
421
|
+
}
|
|
422
|
+
function DeploymentPreActivateStepsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
423
|
+
if (json == null) {
|
|
424
|
+
return json;
|
|
425
|
+
}
|
|
426
|
+
return {
|
|
427
|
+
steps: json["steps"].map(DeploymentPreActivateStepDtoFromJSON)
|
|
428
|
+
};
|
|
429
|
+
}
|
|
430
|
+
// ../pipelines-sdk/generated/src/models/DeploymentResourceValidationAction.ts
|
|
431
|
+
function DeploymentResourceValidationActionFromJSON(json) {
|
|
432
|
+
return DeploymentResourceValidationActionFromJSONTyped(json, false);
|
|
433
|
+
}
|
|
434
|
+
function DeploymentResourceValidationActionFromJSONTyped(json, ignoreDiscriminator) {
|
|
435
|
+
return json;
|
|
436
|
+
}
|
|
437
|
+
// ../pipelines-sdk/generated/src/models/DeploymentResourceValidationErrorKind.ts
|
|
438
|
+
function DeploymentResourceValidationErrorKindFromJSON(json) {
|
|
439
|
+
return DeploymentResourceValidationErrorKindFromJSONTyped(json, false);
|
|
440
|
+
}
|
|
441
|
+
function DeploymentResourceValidationErrorKindFromJSONTyped(json, ignoreDiscriminator) {
|
|
442
|
+
return json;
|
|
443
|
+
}
|
|
444
|
+
// ../pipelines-sdk/generated/src/models/DeploymentResourceValidationErrorLevel.ts
|
|
445
|
+
function DeploymentResourceValidationErrorLevelFromJSON(json) {
|
|
446
|
+
return DeploymentResourceValidationErrorLevelFromJSONTyped(json, false);
|
|
447
|
+
}
|
|
448
|
+
function DeploymentResourceValidationErrorLevelFromJSONTyped(json, ignoreDiscriminator) {
|
|
449
|
+
return json;
|
|
450
|
+
}
|
|
451
|
+
// ../pipelines-sdk/generated/src/models/ServiceMessage.ts
|
|
452
|
+
function ServiceMessageFromJSON(json) {
|
|
453
|
+
return ServiceMessageFromJSONTyped(json, false);
|
|
454
|
+
}
|
|
455
|
+
function ServiceMessageFromJSONTyped(json, ignoreDiscriminator) {
|
|
456
|
+
if (json == null) {
|
|
457
|
+
return json;
|
|
458
|
+
}
|
|
459
|
+
return {
|
|
460
|
+
resource: json["resource"],
|
|
461
|
+
text: json["text"],
|
|
462
|
+
parameters: json["parameters"],
|
|
463
|
+
errorCode: json["errorCode"] == null ? undefined : json["errorCode"]
|
|
464
|
+
};
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
// ../pipelines-sdk/generated/src/models/DeploymentRunResponse.ts
|
|
468
|
+
function DeploymentRunResponseFromJSON(json) {
|
|
469
|
+
return DeploymentRunResponseFromJSONTyped(json, false);
|
|
470
|
+
}
|
|
471
|
+
function DeploymentRunResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
472
|
+
if (json == null) {
|
|
473
|
+
return json;
|
|
474
|
+
}
|
|
475
|
+
return {
|
|
476
|
+
instanceId: json["instanceId"] == null ? undefined : json["instanceId"],
|
|
477
|
+
scheduled: json["scheduled"],
|
|
478
|
+
errors: json["errors"].map(ServiceMessageFromJSON),
|
|
479
|
+
complete: json["complete"]
|
|
480
|
+
};
|
|
481
|
+
}
|
|
482
|
+
// ../pipelines-sdk/generated/src/models/ResourceInstallError.ts
|
|
483
|
+
function ResourceInstallErrorFromJSON(json) {
|
|
484
|
+
return ResourceInstallErrorFromJSONTyped(json, false);
|
|
485
|
+
}
|
|
486
|
+
function ResourceInstallErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
487
|
+
if (json == null) {
|
|
488
|
+
return json;
|
|
489
|
+
}
|
|
490
|
+
return {
|
|
491
|
+
kind: json["kind"] == null ? undefined : json["kind"],
|
|
492
|
+
type: json["type"] == null ? undefined : json["type"],
|
|
493
|
+
key: json["key"] == null ? undefined : json["key"],
|
|
494
|
+
folderKey: json["folderKey"] == null ? undefined : json["folderKey"],
|
|
495
|
+
name: json["name"] == null ? undefined : json["name"],
|
|
496
|
+
text: json["text"]
|
|
497
|
+
};
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
// ../pipelines-sdk/generated/src/models/DeploymentRunServiceStatus.ts
|
|
501
|
+
function DeploymentRunServiceStatusFromJSON(json) {
|
|
502
|
+
return DeploymentRunServiceStatusFromJSONTyped(json, false);
|
|
503
|
+
}
|
|
504
|
+
function DeploymentRunServiceStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
505
|
+
if (json == null) {
|
|
506
|
+
return json;
|
|
507
|
+
}
|
|
508
|
+
return {
|
|
509
|
+
serviceName: json["serviceName"],
|
|
510
|
+
status: DeploymentStatusFromJSON(json["status"]),
|
|
511
|
+
updateDate: json["updateDate"] == null ? undefined : new Date(json["updateDate"]),
|
|
512
|
+
serviceErrorMessages: json["serviceErrorMessages"].map(ResourceInstallErrorFromJSON),
|
|
513
|
+
errorMessage: json["errorMessage"] == null ? undefined : json["errorMessage"],
|
|
514
|
+
activationStatus: json["activationStatus"] == null ? undefined : DeploymentActivationStatusFromJSON(json["activationStatus"])
|
|
515
|
+
};
|
|
516
|
+
}
|
|
517
|
+
// ../pipelines-sdk/generated/src/models/WorkflowAction.ts
|
|
518
|
+
function WorkflowActionFromJSON(json) {
|
|
519
|
+
return WorkflowActionFromJSONTyped(json, false);
|
|
520
|
+
}
|
|
521
|
+
function WorkflowActionFromJSONTyped(json, ignoreDiscriminator) {
|
|
522
|
+
return json;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
// ../pipelines-sdk/generated/src/models/WorkflowError.ts
|
|
526
|
+
function WorkflowErrorFromJSON(json) {
|
|
527
|
+
return WorkflowErrorFromJSONTyped(json, false);
|
|
528
|
+
}
|
|
529
|
+
function WorkflowErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
530
|
+
if (json == null) {
|
|
531
|
+
return json;
|
|
532
|
+
}
|
|
533
|
+
return {
|
|
534
|
+
errorMessage: json["errorMessage"],
|
|
535
|
+
serviceMessage: json["serviceMessage"] == null ? undefined : json["serviceMessage"],
|
|
536
|
+
exceptionTrace: json["exceptionTrace"] == null ? undefined : json["exceptionTrace"],
|
|
537
|
+
serviceName: json["serviceName"] == null ? undefined : json["serviceName"]
|
|
538
|
+
};
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
// ../pipelines-sdk/generated/src/models/PackageVersionOrigin.ts
|
|
542
|
+
function PackageVersionOriginFromJSON(json) {
|
|
543
|
+
return PackageVersionOriginFromJSONTyped(json, false);
|
|
544
|
+
}
|
|
545
|
+
function PackageVersionOriginFromJSONTyped(json, ignoreDiscriminator) {
|
|
546
|
+
return json;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
// ../pipelines-sdk/generated/src/models/DeploymentRunStatus.ts
|
|
550
|
+
function DeploymentRunStatusFromJSON(json) {
|
|
551
|
+
return DeploymentRunStatusFromJSONTyped(json, false);
|
|
552
|
+
}
|
|
553
|
+
function DeploymentRunStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
554
|
+
if (json == null) {
|
|
555
|
+
return json;
|
|
556
|
+
}
|
|
557
|
+
return {
|
|
558
|
+
deploymentKey: json["deploymentKey"],
|
|
559
|
+
installDeploymentKey: json["installDeploymentKey"],
|
|
560
|
+
deploymentName: json["deploymentName"],
|
|
561
|
+
configurationKey: json["configurationKey"],
|
|
562
|
+
installedRootFolderKey: json["installedRootFolderKey"] == null ? undefined : json["installedRootFolderKey"],
|
|
563
|
+
packageName: json["packageName"],
|
|
564
|
+
packageVersion: json["packageVersion"],
|
|
565
|
+
packageVersionOrigin: PackageVersionOriginFromJSON(json["packageVersionOrigin"]),
|
|
566
|
+
packageVersionKey: json["packageVersionKey"],
|
|
567
|
+
status: DeploymentStatusFromJSON(json["status"]),
|
|
568
|
+
authorName: json["authorName"],
|
|
569
|
+
startDate: new Date(json["startDate"]),
|
|
570
|
+
endDate: json["endDate"] == null ? undefined : new Date(json["endDate"]),
|
|
571
|
+
errorMessage: json["errorMessage"] == null ? undefined : json["errorMessage"].map(WorkflowErrorFromJSON),
|
|
572
|
+
actions: json["actions"].map(WorkflowActionFromJSON),
|
|
573
|
+
operation: DeploymentOperationFromJSON(json["operation"]),
|
|
574
|
+
services: json["services"].map(DeploymentRunServiceStatusFromJSON),
|
|
575
|
+
supportsAutomaticActivation: json["supportsAutomaticActivation"],
|
|
576
|
+
businessOwnerKey: json["businessOwnerKey"] == null ? undefined : json["businessOwnerKey"],
|
|
577
|
+
businessOwnerName: json["businessOwnerName"] == null ? undefined : json["businessOwnerName"],
|
|
578
|
+
activationStatus: json["activationStatus"] == null ? undefined : DeploymentActivationStatusFromJSON(json["activationStatus"]),
|
|
579
|
+
operationStatus: json["operationStatus"] == null ? undefined : DeploymentOperationStatusFromJSON(json["operationStatus"])
|
|
580
|
+
};
|
|
581
|
+
}
|
|
582
|
+
// ../pipelines-sdk/generated/src/models/DeploymentScheduleErrorDto.ts
|
|
583
|
+
function DeploymentScheduleErrorDtoFromJSON(json) {
|
|
584
|
+
return DeploymentScheduleErrorDtoFromJSONTyped(json, false);
|
|
585
|
+
}
|
|
586
|
+
function DeploymentScheduleErrorDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
587
|
+
if (json == null) {
|
|
588
|
+
return json;
|
|
589
|
+
}
|
|
590
|
+
return {
|
|
591
|
+
errorText: json["errorText"],
|
|
592
|
+
errorCode: json["errorCode"] == null ? undefined : json["errorCode"]
|
|
593
|
+
};
|
|
594
|
+
}
|
|
595
|
+
// ../pipelines-sdk/generated/src/models/DeploymentType.ts
|
|
596
|
+
function DeploymentTypeFromJSON(json) {
|
|
597
|
+
return DeploymentTypeFromJSONTyped(json, false);
|
|
598
|
+
}
|
|
599
|
+
function DeploymentTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
600
|
+
return json;
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
// ../pipelines-sdk/generated/src/models/DeploymentUpgradeType.ts
|
|
604
|
+
function DeploymentUpgradeTypeFromJSON(json) {
|
|
605
|
+
return DeploymentUpgradeTypeFromJSONTyped(json, false);
|
|
606
|
+
}
|
|
607
|
+
function DeploymentUpgradeTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
608
|
+
return json;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
// ../pipelines-sdk/generated/src/models/RuntimeProfile.ts
|
|
612
|
+
function RuntimeProfileFromJSON(json) {
|
|
613
|
+
return RuntimeProfileFromJSONTyped(json, false);
|
|
614
|
+
}
|
|
615
|
+
function RuntimeProfileFromJSONTyped(json, ignoreDiscriminator) {
|
|
616
|
+
return json;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
// ../pipelines-sdk/generated/src/models/RuntimeSetup.ts
|
|
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
|
+
runtimeProfile: json["runtimeProfile"] == null ? undefined : RuntimeProfileFromJSON(json["runtimeProfile"])
|
|
630
|
+
};
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
// ../pipelines-sdk/generated/src/models/DeploymentSearchItemDto.ts
|
|
634
|
+
function DeploymentSearchItemDtoFromJSON(json) {
|
|
635
|
+
return DeploymentSearchItemDtoFromJSONTyped(json, false);
|
|
636
|
+
}
|
|
637
|
+
function DeploymentSearchItemDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
638
|
+
if (json == null) {
|
|
639
|
+
return json;
|
|
640
|
+
}
|
|
641
|
+
return {
|
|
642
|
+
key: json["key"],
|
|
643
|
+
installDeploymentKey: json["installDeploymentKey"],
|
|
644
|
+
instanceId: json["instanceId"] == null ? undefined : json["instanceId"],
|
|
645
|
+
configurationKey: json["configurationKey"],
|
|
646
|
+
packageVersionKey: json["packageVersionKey"],
|
|
647
|
+
packageKey: json["packageKey"],
|
|
648
|
+
packageName: json["packageName"],
|
|
649
|
+
packageVersion: json["packageVersion"],
|
|
650
|
+
currentPackageVersion: json["currentPackageVersion"] == null ? undefined : json["currentPackageVersion"],
|
|
651
|
+
targetPackageVersion: json["targetPackageVersion"] == null ? undefined : json["targetPackageVersion"],
|
|
652
|
+
packageVersionOrigin: PackageVersionOriginFromJSON(json["packageVersionOrigin"]),
|
|
653
|
+
folderPath: json["folderPath"] == null ? undefined : json["folderPath"],
|
|
654
|
+
installedRootFolderKey: json["installedRootFolderKey"] == null ? undefined : json["installedRootFolderKey"],
|
|
655
|
+
installedRootFolderName: json["installedRootFolderName"] == null ? undefined : json["installedRootFolderName"],
|
|
656
|
+
deploymentCreationTime: new Date(json["deploymentCreationTime"]),
|
|
657
|
+
startTime: json["startTime"] == null ? undefined : new Date(json["startTime"]),
|
|
658
|
+
endTime: json["endTime"] == null ? undefined : new Date(json["endTime"]),
|
|
659
|
+
actions: json["actions"].map(WorkflowActionFromJSON),
|
|
660
|
+
name: json["name"],
|
|
661
|
+
type: DeploymentTypeFromJSON(json["type"]),
|
|
662
|
+
operation: DeploymentOperationFromJSON(json["operation"]),
|
|
663
|
+
previousOperation: json["previousOperation"] == null ? undefined : DeploymentOperationFromJSON(json["previousOperation"]),
|
|
664
|
+
operationStatus: DeploymentOperationStatusFromJSON(json["operationStatus"]),
|
|
665
|
+
activationStatus: DeploymentActivationStatusFromJSON(json["activationStatus"]),
|
|
666
|
+
newPackageVersionAvailable: json["newPackageVersionAvailable"] == null ? undefined : json["newPackageVersionAvailable"],
|
|
667
|
+
packageVersionDescription: json["packageVersionDescription"] == null ? undefined : json["packageVersionDescription"],
|
|
668
|
+
packageVersionReleaseNotes: json["packageVersionReleaseNotes"] == null ? undefined : json["packageVersionReleaseNotes"],
|
|
669
|
+
authorName: json["authorName"],
|
|
670
|
+
upgradeType: json["upgradeType"] == null ? undefined : DeploymentUpgradeTypeFromJSON(json["upgradeType"]),
|
|
671
|
+
status: DeploymentStatusFromJSON(json["status"]),
|
|
672
|
+
runtimeSetup: json["runtimeSetup"] == null ? undefined : RuntimeSetupFromJSON(json["runtimeSetup"]),
|
|
673
|
+
packageAndDeploy: json["packageAndDeploy"],
|
|
674
|
+
hasMultipleVersions: json["hasMultipleVersions"] == null ? undefined : json["hasMultipleVersions"],
|
|
675
|
+
rootFolderKey: json["rootFolderKey"] == null ? undefined : json["rootFolderKey"],
|
|
676
|
+
businessOwnerKey: json["businessOwnerKey"] == null ? undefined : json["businessOwnerKey"],
|
|
677
|
+
businessOwnerName: json["businessOwnerName"] == null ? undefined : json["businessOwnerName"],
|
|
678
|
+
previousUpgradeType: json["previousUpgradeType"] == null ? undefined : DeploymentUpgradeTypeFromJSON(json["previousUpgradeType"]),
|
|
679
|
+
previousDeploymentKey: json["previousDeploymentKey"] == null ? undefined : json["previousDeploymentKey"],
|
|
680
|
+
previousInstanceId: json["previousInstanceId"] == null ? undefined : json["previousInstanceId"],
|
|
681
|
+
isActivationSetupOnSameSession: json["isActivationSetupOnSameSession"],
|
|
682
|
+
pauseBeforeRun: json["pauseBeforeRun"] == null ? undefined : json["pauseBeforeRun"],
|
|
683
|
+
autoActivate: json["autoActivate"] == null ? undefined : json["autoActivate"],
|
|
684
|
+
installationFolderKey: json["installationFolderKey"] == null ? undefined : json["installationFolderKey"]
|
|
685
|
+
};
|
|
686
|
+
}
|
|
687
|
+
// ../pipelines-sdk/generated/src/models/DeploymentValidationErrorType.ts
|
|
688
|
+
function DeploymentValidationErrorTypeFromJSON(json) {
|
|
689
|
+
return DeploymentValidationErrorTypeFromJSONTyped(json, false);
|
|
690
|
+
}
|
|
691
|
+
function DeploymentValidationErrorTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
692
|
+
return json;
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
// ../pipelines-sdk/generated/src/models/DeploymentValidationErrorDto.ts
|
|
696
|
+
function DeploymentValidationErrorDtoFromJSON(json) {
|
|
697
|
+
return DeploymentValidationErrorDtoFromJSONTyped(json, false);
|
|
698
|
+
}
|
|
699
|
+
function DeploymentValidationErrorDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
700
|
+
if (json == null) {
|
|
701
|
+
return json;
|
|
702
|
+
}
|
|
703
|
+
return {
|
|
704
|
+
errorType: DeploymentValidationErrorTypeFromJSON(json["errorType"]),
|
|
705
|
+
errorKind: json["errorKind"] == null ? undefined : DeploymentResourceValidationErrorKindFromJSON(json["errorKind"]),
|
|
706
|
+
text: json["text"] == null ? undefined : json["text"],
|
|
707
|
+
errorCode: json["errorCode"] == null ? undefined : json["errorCode"],
|
|
708
|
+
parameters: json["parameters"],
|
|
709
|
+
key: json["key"] == null ? undefined : json["key"],
|
|
710
|
+
resource: json["resource"] == null ? undefined : json["resource"],
|
|
711
|
+
name: json["name"] == null ? undefined : json["name"],
|
|
712
|
+
kind: json["kind"] == null ? undefined : json["kind"],
|
|
713
|
+
type: json["type"] == null ? undefined : json["type"],
|
|
714
|
+
serviceName: json["serviceName"] == null ? undefined : json["serviceName"],
|
|
715
|
+
level: DeploymentResourceValidationErrorLevelFromJSON(json["level"]),
|
|
716
|
+
propertyName: json["propertyName"] == null ? undefined : json["propertyName"],
|
|
717
|
+
folderPaths: json["folderPaths"] == null ? undefined : json["folderPaths"]
|
|
718
|
+
};
|
|
719
|
+
}
|
|
720
|
+
// ../pipelines-sdk/generated/src/models/ExtendedPackageVersionState.ts
|
|
721
|
+
function ExtendedPackageVersionStateFromJSON(json) {
|
|
722
|
+
return ExtendedPackageVersionStateFromJSONTyped(json, false);
|
|
723
|
+
}
|
|
724
|
+
function ExtendedPackageVersionStateFromJSONTyped(json, ignoreDiscriminator) {
|
|
725
|
+
return json;
|
|
726
|
+
}
|
|
727
|
+
// ../pipelines-sdk/generated/src/models/FolderInfo.ts
|
|
728
|
+
function FolderInfoFromJSON(json) {
|
|
729
|
+
return FolderInfoFromJSONTyped(json, false);
|
|
730
|
+
}
|
|
731
|
+
function FolderInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
732
|
+
if (json == null) {
|
|
733
|
+
return json;
|
|
734
|
+
}
|
|
735
|
+
return {
|
|
736
|
+
fullyQualifiedName: json["fullyQualifiedName"],
|
|
737
|
+
path: json["path"] == null ? undefined : json["path"],
|
|
738
|
+
folderKey: json["folderKey"] == null ? undefined : json["folderKey"],
|
|
739
|
+
serviceFolderKey: json["serviceFolderKey"] == null ? undefined : json["serviceFolderKey"]
|
|
740
|
+
};
|
|
741
|
+
}
|
|
742
|
+
// ../pipelines-sdk/generated/src/models/OrderByDirection.ts
|
|
743
|
+
function OrderByDirectionToJSON(value) {
|
|
744
|
+
return value;
|
|
745
|
+
}
|
|
746
|
+
// ../pipelines-sdk/generated/src/models/PackageInfo.ts
|
|
747
|
+
function PackageInfoFromJSON(json) {
|
|
748
|
+
return PackageInfoFromJSONTyped(json, false);
|
|
749
|
+
}
|
|
750
|
+
function PackageInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
751
|
+
if (json == null) {
|
|
752
|
+
return json;
|
|
753
|
+
}
|
|
754
|
+
return {
|
|
755
|
+
key: json["key"],
|
|
756
|
+
name: json["name"],
|
|
757
|
+
latestVersion: json["latestVersion"],
|
|
758
|
+
packageVersionKey: json["packageVersionKey"],
|
|
759
|
+
authorName: json["authorName"],
|
|
760
|
+
authorEmail: json["authorEmail"] == null ? undefined : json["authorEmail"],
|
|
761
|
+
publishDate: new Date(json["publishDate"]),
|
|
762
|
+
description: json["description"] == null ? undefined : json["description"],
|
|
763
|
+
releaseNotes: json["releaseNotes"] == null ? undefined : json["releaseNotes"],
|
|
764
|
+
state: ExtendedPackageVersionStateFromJSON(json["state"]),
|
|
765
|
+
allowDownload: json["allowDownload"] == null ? undefined : json["allowDownload"],
|
|
766
|
+
solutionRootFolderName: json["solutionRootFolderName"],
|
|
767
|
+
hasUpgradeableDeployments: json["hasUpgradeableDeployments"],
|
|
768
|
+
hasMultipleVersions: json["hasMultipleVersions"] == null ? undefined : json["hasMultipleVersions"]
|
|
769
|
+
};
|
|
770
|
+
}
|
|
771
|
+
// ../pipelines-sdk/generated/src/models/ResourceTaskStatus.ts
|
|
772
|
+
function ResourceTaskStatusFromJSON(json) {
|
|
773
|
+
return ResourceTaskStatusFromJSONTyped(json, false);
|
|
774
|
+
}
|
|
775
|
+
function ResourceTaskStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
776
|
+
return json;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
// ../pipelines-sdk/generated/src/models/PackagePublishResult.ts
|
|
780
|
+
function PackagePublishResultFromJSON(json) {
|
|
781
|
+
return PackagePublishResultFromJSONTyped(json, false);
|
|
782
|
+
}
|
|
783
|
+
function PackagePublishResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
784
|
+
if (json == null) {
|
|
785
|
+
return json;
|
|
786
|
+
}
|
|
787
|
+
return {
|
|
788
|
+
status: ResourceTaskStatusFromJSON(json["status"]),
|
|
789
|
+
packageName: json["packageName"],
|
|
790
|
+
packageVersionKey: json["packageVersionKey"] == null ? undefined : json["packageVersionKey"]
|
|
791
|
+
};
|
|
792
|
+
}
|
|
793
|
+
// ../pipelines-sdk/generated/src/models/ResourceStats.ts
|
|
794
|
+
function ResourceStatsFromJSON(json) {
|
|
795
|
+
return ResourceStatsFromJSONTyped(json, false);
|
|
796
|
+
}
|
|
797
|
+
function ResourceStatsFromJSONTyped(json, ignoreDiscriminator) {
|
|
798
|
+
if (json == null) {
|
|
799
|
+
return json;
|
|
800
|
+
}
|
|
801
|
+
return {
|
|
802
|
+
count: json["count"],
|
|
803
|
+
kind: json["kind"],
|
|
804
|
+
serviceName: json["serviceName"]
|
|
805
|
+
};
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
// ../pipelines-sdk/generated/src/models/PackageVersionResourceDto.ts
|
|
809
|
+
function PackageVersionResourceDtoFromJSON(json) {
|
|
810
|
+
return PackageVersionResourceDtoFromJSONTyped(json, false);
|
|
811
|
+
}
|
|
812
|
+
function PackageVersionResourceDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
813
|
+
if (json == null) {
|
|
814
|
+
return json;
|
|
815
|
+
}
|
|
816
|
+
return {
|
|
817
|
+
key: json["key"],
|
|
818
|
+
name: json["name"],
|
|
819
|
+
kind: json["kind"],
|
|
820
|
+
type: json["type"] == null ? undefined : json["type"],
|
|
821
|
+
apiVersion: json["apiVersion"],
|
|
822
|
+
folders: json["folders"].map(FolderInfoFromJSON)
|
|
823
|
+
};
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
// ../pipelines-sdk/generated/src/models/PackageVersionComponentsDto.ts
|
|
827
|
+
function PackageVersionComponentsDtoFromJSON(json) {
|
|
828
|
+
return PackageVersionComponentsDtoFromJSONTyped(json, false);
|
|
829
|
+
}
|
|
830
|
+
function PackageVersionComponentsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
831
|
+
if (json == null) {
|
|
832
|
+
return json;
|
|
833
|
+
}
|
|
834
|
+
return {
|
|
835
|
+
count: json["count"],
|
|
836
|
+
resources: json["resources"].map(PackageVersionResourceDtoFromJSON),
|
|
837
|
+
stats: json["stats"].map(ResourceStatsFromJSON)
|
|
838
|
+
};
|
|
839
|
+
}
|
|
840
|
+
// ../pipelines-sdk/generated/src/models/ResourceTagDto.ts
|
|
841
|
+
function ResourceTagDtoFromJSON(json) {
|
|
842
|
+
return ResourceTagDtoFromJSONTyped(json, false);
|
|
843
|
+
}
|
|
844
|
+
function ResourceTagDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
845
|
+
if (json == null) {
|
|
846
|
+
return json;
|
|
847
|
+
}
|
|
848
|
+
return {
|
|
849
|
+
name: json["name"],
|
|
850
|
+
value: json["value"] == null ? undefined : json["value"]
|
|
851
|
+
};
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
// ../pipelines-sdk/generated/src/models/PackageVersionInfoDto.ts
|
|
855
|
+
function PackageVersionInfoDtoFromJSON(json) {
|
|
856
|
+
return PackageVersionInfoDtoFromJSONTyped(json, false);
|
|
857
|
+
}
|
|
858
|
+
function PackageVersionInfoDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
859
|
+
if (json == null) {
|
|
860
|
+
return json;
|
|
861
|
+
}
|
|
862
|
+
return {
|
|
863
|
+
key: json["key"],
|
|
864
|
+
packageName: json["packageName"],
|
|
865
|
+
packageVersion: json["packageVersion"],
|
|
866
|
+
publishDate: new Date(json["publishDate"]),
|
|
867
|
+
authorName: json["authorName"],
|
|
868
|
+
authorEmail: json["authorEmail"] == null ? undefined : json["authorEmail"],
|
|
869
|
+
description: json["description"] == null ? undefined : json["description"],
|
|
870
|
+
releaseNotes: json["releaseNotes"] == null ? undefined : json["releaseNotes"],
|
|
871
|
+
state: ExtendedPackageVersionStateFromJSON(json["state"]),
|
|
872
|
+
allowDownload: json["allowDownload"] == null ? undefined : json["allowDownload"],
|
|
873
|
+
solutionRootFolderName: json["solutionRootFolderName"],
|
|
874
|
+
locationKey: json["locationKey"] == null ? undefined : json["locationKey"],
|
|
875
|
+
components: json["components"] == null ? undefined : PackageVersionComponentsDtoFromJSON(json["components"]),
|
|
876
|
+
tags: json["tags"] == null ? undefined : json["tags"].map(ResourceTagDtoFromJSON)
|
|
877
|
+
};
|
|
878
|
+
}
|
|
879
|
+
// ../pipelines-sdk/generated/src/models/PackageVersionInfoExtendedDto.ts
|
|
880
|
+
function PackageVersionInfoExtendedDtoFromJSON(json) {
|
|
881
|
+
return PackageVersionInfoExtendedDtoFromJSONTyped(json, false);
|
|
882
|
+
}
|
|
883
|
+
function PackageVersionInfoExtendedDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
884
|
+
if (json == null) {
|
|
885
|
+
return json;
|
|
886
|
+
}
|
|
887
|
+
return {
|
|
888
|
+
key: json["key"],
|
|
889
|
+
packageName: json["packageName"],
|
|
890
|
+
packageVersion: json["packageVersion"],
|
|
891
|
+
publishDate: new Date(json["publishDate"]),
|
|
892
|
+
authorName: json["authorName"],
|
|
893
|
+
authorEmail: json["authorEmail"] == null ? undefined : json["authorEmail"],
|
|
894
|
+
description: json["description"] == null ? undefined : json["description"],
|
|
895
|
+
releaseNotes: json["releaseNotes"] == null ? undefined : json["releaseNotes"],
|
|
896
|
+
state: ExtendedPackageVersionStateFromJSON(json["state"]),
|
|
897
|
+
allowDownload: json["allowDownload"] == null ? undefined : json["allowDownload"],
|
|
898
|
+
solutionRootFolderName: json["solutionRootFolderName"],
|
|
899
|
+
locationKey: json["locationKey"] == null ? undefined : json["locationKey"],
|
|
900
|
+
components: json["components"] == null ? undefined : PackageVersionComponentsDtoFromJSON(json["components"]),
|
|
901
|
+
tags: json["tags"] == null ? undefined : json["tags"].map(ResourceTagDtoFromJSON),
|
|
902
|
+
lastOperation: DeploymentOperationFromJSON(json["lastOperation"]),
|
|
903
|
+
lastOperationStatus: DeploymentOperationStatusFromJSON(json["lastOperationStatus"]),
|
|
904
|
+
lastOperationInstanceId: json["lastOperationInstanceId"] == null ? undefined : json["lastOperationInstanceId"]
|
|
905
|
+
};
|
|
906
|
+
}
|
|
907
|
+
// ../pipelines-sdk/generated/src/models/PageInfoDtoOfDeploymentSearchItemDto.ts
|
|
908
|
+
function PageInfoDtoOfDeploymentSearchItemDtoFromJSON(json) {
|
|
909
|
+
return PageInfoDtoOfDeploymentSearchItemDtoFromJSONTyped(json, false);
|
|
910
|
+
}
|
|
911
|
+
function PageInfoDtoOfDeploymentSearchItemDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
912
|
+
if (json == null) {
|
|
913
|
+
return json;
|
|
914
|
+
}
|
|
915
|
+
return {
|
|
916
|
+
count: json["count"],
|
|
917
|
+
values: json["values"].map(DeploymentSearchItemDtoFromJSON)
|
|
918
|
+
};
|
|
919
|
+
}
|
|
920
|
+
// ../pipelines-sdk/generated/src/models/PageInfoDtoOfPackageInfo.ts
|
|
921
|
+
function PageInfoDtoOfPackageInfoFromJSON(json) {
|
|
922
|
+
return PageInfoDtoOfPackageInfoFromJSONTyped(json, false);
|
|
923
|
+
}
|
|
924
|
+
function PageInfoDtoOfPackageInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
925
|
+
if (json == null) {
|
|
926
|
+
return json;
|
|
927
|
+
}
|
|
928
|
+
return {
|
|
929
|
+
count: json["count"],
|
|
930
|
+
values: json["values"].map(PackageInfoFromJSON)
|
|
931
|
+
};
|
|
932
|
+
}
|
|
933
|
+
// ../pipelines-sdk/generated/src/models/PipelineDeploymentConflictErrorDto.ts
|
|
934
|
+
function PipelineDeploymentConflictErrorDtoFromJSON(json) {
|
|
935
|
+
return PipelineDeploymentConflictErrorDtoFromJSONTyped(json, false);
|
|
936
|
+
}
|
|
937
|
+
function PipelineDeploymentConflictErrorDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
938
|
+
if (json == null) {
|
|
939
|
+
return json;
|
|
940
|
+
}
|
|
941
|
+
return {
|
|
942
|
+
kind: json["kind"],
|
|
943
|
+
name: json["name"],
|
|
944
|
+
resourceKey: json["resourceKey"],
|
|
945
|
+
errorType: json["errorType"] == null ? undefined : DeploymentValidationErrorTypeFromJSON(json["errorType"]),
|
|
946
|
+
errorText: json["errorText"],
|
|
947
|
+
errorCode: json["errorCode"] == null ? undefined : json["errorCode"],
|
|
948
|
+
conflictFixingActions: json["conflictFixingActions"].map(DeploymentResourceValidationActionFromJSON)
|
|
949
|
+
};
|
|
950
|
+
}
|
|
951
|
+
// ../pipelines-sdk/generated/src/models/PipelineDeploymentValidationErrorDto.ts
|
|
952
|
+
function PipelineDeploymentValidationErrorDtoFromJSON(json) {
|
|
953
|
+
return PipelineDeploymentValidationErrorDtoFromJSONTyped(json, false);
|
|
954
|
+
}
|
|
955
|
+
function PipelineDeploymentValidationErrorDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
956
|
+
if (json == null) {
|
|
957
|
+
return json;
|
|
958
|
+
}
|
|
959
|
+
return {
|
|
960
|
+
kind: json["kind"],
|
|
961
|
+
name: json["name"],
|
|
962
|
+
resourceKey: json["resourceKey"],
|
|
963
|
+
errorType: json["errorType"] == null ? undefined : DeploymentValidationErrorTypeFromJSON(json["errorType"]),
|
|
964
|
+
errorText: json["errorText"],
|
|
965
|
+
errorCode: json["errorCode"] == null ? undefined : json["errorCode"]
|
|
966
|
+
};
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
// ../pipelines-sdk/generated/src/models/PipelineDeploymentValidationResultDto.ts
|
|
970
|
+
function PipelineDeploymentValidationResultDtoFromJSON(json) {
|
|
971
|
+
return PipelineDeploymentValidationResultDtoFromJSONTyped(json, false);
|
|
972
|
+
}
|
|
973
|
+
function PipelineDeploymentValidationResultDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
974
|
+
if (json == null) {
|
|
975
|
+
return json;
|
|
976
|
+
}
|
|
977
|
+
return {
|
|
978
|
+
success: json["success"] == null ? undefined : json["success"],
|
|
979
|
+
validationErrors: json["validationErrors"].map(PipelineDeploymentValidationErrorDtoFromJSON),
|
|
980
|
+
conflictErrors: json["conflictErrors"].map(PipelineDeploymentConflictErrorDtoFromJSON)
|
|
981
|
+
};
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
// ../pipelines-sdk/generated/src/models/PipelineDeploymentStatus.ts
|
|
985
|
+
function PipelineDeploymentStatusFromJSON(json) {
|
|
986
|
+
return PipelineDeploymentStatusFromJSONTyped(json, false);
|
|
987
|
+
}
|
|
988
|
+
function PipelineDeploymentStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
989
|
+
return json;
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
// ../pipelines-sdk/generated/src/models/PipelineDeploymentResult.ts
|
|
993
|
+
function PipelineDeploymentResultFromJSON(json) {
|
|
994
|
+
return PipelineDeploymentResultFromJSONTyped(json, false);
|
|
995
|
+
}
|
|
996
|
+
function PipelineDeploymentResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
997
|
+
if (json == null) {
|
|
998
|
+
return json;
|
|
999
|
+
}
|
|
1000
|
+
return {
|
|
1001
|
+
status: PipelineDeploymentStatusFromJSON(json["status"]),
|
|
1002
|
+
validationResult: PipelineDeploymentValidationResultDtoFromJSON(json["validationResult"]),
|
|
1003
|
+
deploymentResult: json["deploymentResult"] == null ? undefined : DeploymentRunStatusFromJSON(json["deploymentResult"]),
|
|
1004
|
+
deploymentKey: json["deploymentKey"],
|
|
1005
|
+
configurationKey: json["configurationKey"],
|
|
1006
|
+
instanceId: json["instanceId"] == null ? undefined : json["instanceId"],
|
|
1007
|
+
conflictFixingErrors: json["conflictFixingErrors"].map(PipelineDeploymentValidationErrorDtoFromJSON),
|
|
1008
|
+
deploymentScheduleErrors: json["deploymentScheduleErrors"].map(DeploymentScheduleErrorDtoFromJSON)
|
|
1009
|
+
};
|
|
1010
|
+
}
|
|
1011
|
+
// ../pipelines-sdk/generated/src/models/PipelineDeploymentResultRef.ts
|
|
1012
|
+
function PipelineDeploymentResultRefFromJSON(json) {
|
|
1013
|
+
return PipelineDeploymentResultRefFromJSONTyped(json, false);
|
|
1014
|
+
}
|
|
1015
|
+
function PipelineDeploymentResultRefFromJSONTyped(json, ignoreDiscriminator) {
|
|
1016
|
+
if (json == null) {
|
|
1017
|
+
return json;
|
|
1018
|
+
}
|
|
1019
|
+
return {
|
|
1020
|
+
pipelineDeploymentId: json["pipelineDeploymentId"]
|
|
1021
|
+
};
|
|
1022
|
+
}
|
|
1023
|
+
// ../pipelines-sdk/generated/src/models/SolutionDeploymentAction.ts
|
|
1024
|
+
function SolutionDeploymentActionFromJSON(json) {
|
|
1025
|
+
return SolutionDeploymentActionFromJSONTyped(json, false);
|
|
1026
|
+
}
|
|
1027
|
+
function SolutionDeploymentActionFromJSONTyped(json, ignoreDiscriminator) {
|
|
1028
|
+
return json;
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
// ../pipelines-sdk/generated/src/models/PipelineDeploymentValidationResult.ts
|
|
1032
|
+
function PipelineDeploymentValidationResultFromJSON(json) {
|
|
1033
|
+
return PipelineDeploymentValidationResultFromJSONTyped(json, false);
|
|
1034
|
+
}
|
|
1035
|
+
function PipelineDeploymentValidationResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
1036
|
+
if (json == null) {
|
|
1037
|
+
return json;
|
|
1038
|
+
}
|
|
1039
|
+
return {
|
|
1040
|
+
deploymentAction: SolutionDeploymentActionFromJSON(json["deploymentAction"]),
|
|
1041
|
+
success: json["success"] == null ? undefined : json["success"],
|
|
1042
|
+
validationErrors: json["validationErrors"].map(DeploymentValidationErrorDtoFromJSON)
|
|
1043
|
+
};
|
|
1044
|
+
}
|
|
1045
|
+
// ../pipelines-sdk/generated/src/models/PipelineDeploymentsSearchRequest.ts
|
|
1046
|
+
function PipelineDeploymentsSearchRequestToJSON(json) {
|
|
1047
|
+
return PipelineDeploymentsSearchRequestToJSONTyped(json, false);
|
|
1048
|
+
}
|
|
1049
|
+
function PipelineDeploymentsSearchRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1050
|
+
if (value == null) {
|
|
1051
|
+
return value;
|
|
1052
|
+
}
|
|
1053
|
+
return {
|
|
1054
|
+
orderByColumn: value["orderByColumn"],
|
|
1055
|
+
orderByDirection: OrderByDirectionToJSON(value["orderByDirection"]),
|
|
1056
|
+
searchTerm: value["searchTerm"],
|
|
1057
|
+
skip: value["skip"],
|
|
1058
|
+
take: value["take"],
|
|
1059
|
+
deploymentName: value["deploymentName"],
|
|
1060
|
+
operationStatuses: value["operationStatuses"] == null ? undefined : value["operationStatuses"].map(DeploymentOperationStatusToJSON),
|
|
1061
|
+
operation: DeploymentOperationToJSON(value["operation"]),
|
|
1062
|
+
activationStatuses: value["activationStatuses"] == null ? undefined : value["activationStatuses"].map(DeploymentActivationStatusToJSON),
|
|
1063
|
+
packageName: value["packageName"],
|
|
1064
|
+
packageVersion: value["packageVersion"],
|
|
1065
|
+
currentPackageVersion: value["currentPackageVersion"],
|
|
1066
|
+
targetPackageVersion: value["targetPackageVersion"],
|
|
1067
|
+
targetFolderName: value["targetFolderName"],
|
|
1068
|
+
packageVersionKey: value["packageVersionKey"],
|
|
1069
|
+
businessOwnerKey: value["businessOwnerKey"]
|
|
1070
|
+
};
|
|
1071
|
+
}
|
|
1072
|
+
// ../pipelines-sdk/generated/src/models/PipelinePackagesSearchRequest.ts
|
|
1073
|
+
function PipelinePackagesSearchRequestToJSON(json) {
|
|
1074
|
+
return PipelinePackagesSearchRequestToJSONTyped(json, false);
|
|
1075
|
+
}
|
|
1076
|
+
function PipelinePackagesSearchRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1077
|
+
if (value == null) {
|
|
1078
|
+
return value;
|
|
1079
|
+
}
|
|
1080
|
+
return {
|
|
1081
|
+
orderByColumn: value["orderByColumn"],
|
|
1082
|
+
orderByDirection: OrderByDirectionToJSON(value["orderByDirection"]),
|
|
1083
|
+
searchTerm: value["searchTerm"],
|
|
1084
|
+
skip: value["skip"],
|
|
1085
|
+
take: value["take"]
|
|
1086
|
+
};
|
|
1087
|
+
}
|
|
1088
|
+
// ../pipelines-sdk/generated/src/models/SolutionProjectSyncStatus.ts
|
|
1089
|
+
function SolutionProjectSyncStatusFromJSON(json) {
|
|
1090
|
+
return SolutionProjectSyncStatusFromJSONTyped(json, false);
|
|
1091
|
+
}
|
|
1092
|
+
function SolutionProjectSyncStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
1093
|
+
return json;
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
// ../pipelines-sdk/generated/src/models/SolutionProjectSyncErrorDto.ts
|
|
1097
|
+
function SolutionProjectSyncErrorDtoFromJSON(json) {
|
|
1098
|
+
return SolutionProjectSyncErrorDtoFromJSONTyped(json, false);
|
|
1099
|
+
}
|
|
1100
|
+
function SolutionProjectSyncErrorDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1101
|
+
if (json == null) {
|
|
1102
|
+
return json;
|
|
1103
|
+
}
|
|
1104
|
+
return {
|
|
1105
|
+
serviceName: json["serviceName"],
|
|
1106
|
+
resourceIdentifiers: json["resourceIdentifiers"].map(BaseResourceIdentifierFromJSON),
|
|
1107
|
+
errorMessage: json["errorMessage"]
|
|
1108
|
+
};
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
// ../pipelines-sdk/generated/src/models/ProjectSynchronizationDto.ts
|
|
1112
|
+
function ProjectSynchronizationDtoFromJSON(json) {
|
|
1113
|
+
return ProjectSynchronizationDtoFromJSONTyped(json, false);
|
|
1114
|
+
}
|
|
1115
|
+
function ProjectSynchronizationDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1116
|
+
if (json == null) {
|
|
1117
|
+
return json;
|
|
1118
|
+
}
|
|
1119
|
+
return {
|
|
1120
|
+
projectName: json["projectName"],
|
|
1121
|
+
syncErrors: json["syncErrors"].map(SolutionProjectSyncErrorDtoFromJSON),
|
|
1122
|
+
status: SolutionProjectSyncStatusFromJSON(json["status"])
|
|
1123
|
+
};
|
|
1124
|
+
}
|
|
1125
|
+
// ../pipelines-sdk/generated/src/models/PublishProjectRequest.ts
|
|
1126
|
+
function PublishProjectRequestToJSON(json) {
|
|
1127
|
+
return PublishProjectRequestToJSONTyped(json, false);
|
|
1128
|
+
}
|
|
1129
|
+
function PublishProjectRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1130
|
+
if (value == null) {
|
|
1131
|
+
return value;
|
|
1132
|
+
}
|
|
1133
|
+
return {
|
|
1134
|
+
packageName: value["packageName"],
|
|
1135
|
+
packageVersion: value["packageVersion"],
|
|
1136
|
+
description: value["description"],
|
|
1137
|
+
releaseNotes: value["releaseNotes"],
|
|
1138
|
+
solutionRootFolderName: value["solutionRootFolderName"]
|
|
1139
|
+
};
|
|
1140
|
+
}
|
|
1141
|
+
// ../pipelines-sdk/generated/src/models/SyncOption.ts
|
|
1142
|
+
function SyncOptionToJSON(value) {
|
|
1143
|
+
return value;
|
|
1144
|
+
}
|
|
1145
|
+
// ../pipelines-sdk/generated/src/models/SyncProjectOptions.ts
|
|
1146
|
+
function SyncProjectOptionsToJSON(json) {
|
|
1147
|
+
return SyncProjectOptionsToJSONTyped(json, false);
|
|
1148
|
+
}
|
|
1149
|
+
function SyncProjectOptionsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1150
|
+
if (value == null) {
|
|
1151
|
+
return value;
|
|
1152
|
+
}
|
|
1153
|
+
return {
|
|
1154
|
+
syncOption: SyncOptionToJSON(value["syncOption"]),
|
|
1155
|
+
autoRemoveDeletedResources: value["autoRemoveDeletedResources"]
|
|
1156
|
+
};
|
|
1157
|
+
}
|
|
1158
|
+
// ../pipelines-sdk/generated/src/apis/PipelinesApi.ts
|
|
1159
|
+
class PipelinesApi extends BaseAPI {
|
|
1160
|
+
async pipelinesAcknowledgeResourcePermanentDeletionRaw(requestParameters, initOverrides) {
|
|
1161
|
+
if (requestParameters["deploymentName"] == null) {
|
|
1162
|
+
throw new RequiredError("deploymentName", 'Required parameter "deploymentName" was null or undefined when calling pipelinesAcknowledgeResourcePermanentDeletion().');
|
|
1163
|
+
}
|
|
1164
|
+
if (requestParameters["resourceKey"] == null) {
|
|
1165
|
+
throw new RequiredError("resourceKey", 'Required parameter "resourceKey" was null or undefined when calling pipelinesAcknowledgeResourcePermanentDeletion().');
|
|
1166
|
+
}
|
|
1167
|
+
const queryParameters = {};
|
|
1168
|
+
if (requestParameters["acknowledged"] != null) {
|
|
1169
|
+
queryParameters["acknowledged"] = requestParameters["acknowledged"];
|
|
1170
|
+
}
|
|
1171
|
+
const headerParameters = {};
|
|
1172
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1173
|
+
const token = this.configuration.accessToken;
|
|
1174
|
+
const tokenString = await token("Bearer", []);
|
|
1175
|
+
if (tokenString) {
|
|
1176
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1177
|
+
}
|
|
1178
|
+
}
|
|
1179
|
+
let urlPath = `/v1/pipelines/deployments/{deploymentName}/resources/{resourceKey}/acknowledge-permanent-deletion`;
|
|
1180
|
+
urlPath = urlPath.replace(`{${"deploymentName"}}`, encodeURIComponent(String(requestParameters["deploymentName"])));
|
|
1181
|
+
urlPath = urlPath.replace(`{${"resourceKey"}}`, encodeURIComponent(String(requestParameters["resourceKey"])));
|
|
1182
|
+
const response = await this.request({
|
|
1183
|
+
path: urlPath,
|
|
1184
|
+
method: "PATCH",
|
|
1185
|
+
headers: headerParameters,
|
|
1186
|
+
query: queryParameters
|
|
1187
|
+
}, initOverrides);
|
|
1188
|
+
return new VoidApiResponse(response);
|
|
1189
|
+
}
|
|
1190
|
+
async pipelinesAcknowledgeResourcePermanentDeletion(requestParameters, initOverrides) {
|
|
1191
|
+
await this.pipelinesAcknowledgeResourcePermanentDeletionRaw(requestParameters, initOverrides);
|
|
1192
|
+
}
|
|
1193
|
+
async pipelinesActivateRaw(requestParameters, initOverrides) {
|
|
1194
|
+
if (requestParameters["deploymentName"] == null) {
|
|
1195
|
+
throw new RequiredError("deploymentName", 'Required parameter "deploymentName" was null or undefined when calling pipelinesActivate().');
|
|
1196
|
+
}
|
|
1197
|
+
const queryParameters = {};
|
|
1198
|
+
const headerParameters = {};
|
|
1199
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1200
|
+
const token = this.configuration.accessToken;
|
|
1201
|
+
const tokenString = await token("Bearer", []);
|
|
1202
|
+
if (tokenString) {
|
|
1203
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1206
|
+
let urlPath = `/v1/pipelines/deployments/{deploymentName}/activate`;
|
|
1207
|
+
urlPath = urlPath.replace(`{${"deploymentName"}}`, encodeURIComponent(String(requestParameters["deploymentName"])));
|
|
1208
|
+
const response = await this.request({
|
|
1209
|
+
path: urlPath,
|
|
1210
|
+
method: "POST",
|
|
1211
|
+
headers: headerParameters,
|
|
1212
|
+
query: queryParameters
|
|
1213
|
+
}, initOverrides);
|
|
1214
|
+
return new JSONApiResponse(response, (jsonValue) => DeploymentActivateResponseFromJSON(jsonValue));
|
|
1215
|
+
}
|
|
1216
|
+
async pipelinesActivate(requestParameters, initOverrides) {
|
|
1217
|
+
const response = await this.pipelinesActivateRaw(requestParameters, initOverrides);
|
|
1218
|
+
return await response.value();
|
|
1219
|
+
}
|
|
1220
|
+
async pipelinesDeleteDeploymentByKeyRaw(requestParameters, initOverrides) {
|
|
1221
|
+
if (requestParameters["deploymentKey"] == null) {
|
|
1222
|
+
throw new RequiredError("deploymentKey", 'Required parameter "deploymentKey" was null or undefined when calling pipelinesDeleteDeploymentByKey().');
|
|
1223
|
+
}
|
|
1224
|
+
const queryParameters = {};
|
|
1225
|
+
const headerParameters = {};
|
|
1226
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1227
|
+
const token = this.configuration.accessToken;
|
|
1228
|
+
const tokenString = await token("Bearer", []);
|
|
1229
|
+
if (tokenString) {
|
|
1230
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1231
|
+
}
|
|
1232
|
+
}
|
|
1233
|
+
let urlPath = `/v1/pipelines/deployments/{deploymentKey}`;
|
|
1234
|
+
urlPath = urlPath.replace(`{${"deploymentKey"}}`, encodeURIComponent(String(requestParameters["deploymentKey"])));
|
|
1235
|
+
const response = await this.request({
|
|
1236
|
+
path: urlPath,
|
|
1237
|
+
method: "DELETE",
|
|
1238
|
+
headers: headerParameters,
|
|
1239
|
+
query: queryParameters
|
|
1240
|
+
}, initOverrides);
|
|
1241
|
+
return new VoidApiResponse(response);
|
|
1242
|
+
}
|
|
1243
|
+
async pipelinesDeleteDeploymentByKey(requestParameters, initOverrides) {
|
|
1244
|
+
await this.pipelinesDeleteDeploymentByKeyRaw(requestParameters, initOverrides);
|
|
1245
|
+
}
|
|
1246
|
+
async pipelinesGetDeploymentByKeyRaw(requestParameters, initOverrides) {
|
|
1247
|
+
if (requestParameters["key"] == null) {
|
|
1248
|
+
throw new RequiredError("key", 'Required parameter "key" was null or undefined when calling pipelinesGetDeploymentByKey().');
|
|
1249
|
+
}
|
|
1250
|
+
const queryParameters = {};
|
|
1251
|
+
const headerParameters = {};
|
|
1252
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1253
|
+
const token = this.configuration.accessToken;
|
|
1254
|
+
const tokenString = await token("Bearer", []);
|
|
1255
|
+
if (tokenString) {
|
|
1256
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1257
|
+
}
|
|
1258
|
+
}
|
|
1259
|
+
let urlPath = `/v1/pipelines/deployments/by-key/{key}`;
|
|
1260
|
+
urlPath = urlPath.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"])));
|
|
1261
|
+
const response = await this.request({
|
|
1262
|
+
path: urlPath,
|
|
1263
|
+
method: "GET",
|
|
1264
|
+
headers: headerParameters,
|
|
1265
|
+
query: queryParameters
|
|
1266
|
+
}, initOverrides);
|
|
1267
|
+
return new JSONApiResponse(response, (jsonValue) => DeploymentInfoDtoFromJSON(jsonValue));
|
|
1268
|
+
}
|
|
1269
|
+
async pipelinesGetDeploymentByKey(requestParameters, initOverrides) {
|
|
1270
|
+
const response = await this.pipelinesGetDeploymentByKeyRaw(requestParameters, initOverrides);
|
|
1271
|
+
return await response.value();
|
|
1272
|
+
}
|
|
1273
|
+
async pipelinesGetDeploymentInstanceStatusRaw(requestParameters, initOverrides) {
|
|
1274
|
+
if (requestParameters["instanceId"] == null) {
|
|
1275
|
+
throw new RequiredError("instanceId", 'Required parameter "instanceId" was null or undefined when calling pipelinesGetDeploymentInstanceStatus().');
|
|
1276
|
+
}
|
|
1277
|
+
const queryParameters = {};
|
|
1278
|
+
const headerParameters = {};
|
|
1279
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1280
|
+
const token = this.configuration.accessToken;
|
|
1281
|
+
const tokenString = await token("Bearer", []);
|
|
1282
|
+
if (tokenString) {
|
|
1283
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1284
|
+
}
|
|
1285
|
+
}
|
|
1286
|
+
let urlPath = `/v1/pipelines/deployments/{instanceId}/status`;
|
|
1287
|
+
urlPath = urlPath.replace(`{${"instanceId"}}`, encodeURIComponent(String(requestParameters["instanceId"])));
|
|
1288
|
+
const response = await this.request({
|
|
1289
|
+
path: urlPath,
|
|
1290
|
+
method: "GET",
|
|
1291
|
+
headers: headerParameters,
|
|
1292
|
+
query: queryParameters
|
|
1293
|
+
}, initOverrides);
|
|
1294
|
+
return new JSONApiResponse(response, (jsonValue) => DeploymentRunStatusFromJSON(jsonValue));
|
|
1295
|
+
}
|
|
1296
|
+
async pipelinesGetDeploymentInstanceStatus(requestParameters, initOverrides) {
|
|
1297
|
+
const response = await this.pipelinesGetDeploymentInstanceStatusRaw(requestParameters, initOverrides);
|
|
1298
|
+
return await response.value();
|
|
1299
|
+
}
|
|
1300
|
+
async pipelinesGetDeploymentValidationResultRaw(requestParameters, initOverrides) {
|
|
1301
|
+
if (requestParameters["deploymentName"] == null) {
|
|
1302
|
+
throw new RequiredError("deploymentName", 'Required parameter "deploymentName" was null or undefined when calling pipelinesGetDeploymentValidationResult().');
|
|
1303
|
+
}
|
|
1304
|
+
const queryParameters = {};
|
|
1305
|
+
if (requestParameters["deploymentAction"] != null) {
|
|
1306
|
+
queryParameters["deploymentAction"] = requestParameters["deploymentAction"];
|
|
1307
|
+
}
|
|
1308
|
+
if (requestParameters["errorKind"] != null) {
|
|
1309
|
+
queryParameters["errorKind"] = requestParameters["errorKind"];
|
|
1310
|
+
}
|
|
1311
|
+
const headerParameters = {};
|
|
1312
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1313
|
+
const token = this.configuration.accessToken;
|
|
1314
|
+
const tokenString = await token("Bearer", []);
|
|
1315
|
+
if (tokenString) {
|
|
1316
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1317
|
+
}
|
|
1318
|
+
}
|
|
1319
|
+
let urlPath = `/v1/pipelines/deployments/{deploymentName}/validation-result`;
|
|
1320
|
+
urlPath = urlPath.replace(`{${"deploymentName"}}`, encodeURIComponent(String(requestParameters["deploymentName"])));
|
|
1321
|
+
const response = await this.request({
|
|
1322
|
+
path: urlPath,
|
|
1323
|
+
method: "GET",
|
|
1324
|
+
headers: headerParameters,
|
|
1325
|
+
query: queryParameters
|
|
1326
|
+
}, initOverrides);
|
|
1327
|
+
return new JSONApiResponse(response, (jsonValue) => PipelineDeploymentValidationResultFromJSON(jsonValue));
|
|
1328
|
+
}
|
|
1329
|
+
async pipelinesGetDeploymentValidationResult(requestParameters, initOverrides) {
|
|
1330
|
+
const response = await this.pipelinesGetDeploymentValidationResultRaw(requestParameters, initOverrides);
|
|
1331
|
+
return await response.value();
|
|
1332
|
+
}
|
|
1333
|
+
async pipelinesGetPackagePublishStatusRaw(requestParameters, initOverrides) {
|
|
1334
|
+
if (requestParameters["packageName"] == null) {
|
|
1335
|
+
throw new RequiredError("packageName", 'Required parameter "packageName" was null or undefined when calling pipelinesGetPackagePublishStatus().');
|
|
1336
|
+
}
|
|
1337
|
+
if (requestParameters["packageVersion"] == null) {
|
|
1338
|
+
throw new RequiredError("packageVersion", 'Required parameter "packageVersion" was null or undefined when calling pipelinesGetPackagePublishStatus().');
|
|
1339
|
+
}
|
|
1340
|
+
const queryParameters = {};
|
|
1341
|
+
const headerParameters = {};
|
|
1342
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1343
|
+
const token = this.configuration.accessToken;
|
|
1344
|
+
const tokenString = await token("Bearer", []);
|
|
1345
|
+
if (tokenString) {
|
|
1346
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1347
|
+
}
|
|
1348
|
+
}
|
|
1349
|
+
let urlPath = `/v1/pipelines/packages/{packageName}/publish-status/{packageVersion}`;
|
|
1350
|
+
urlPath = urlPath.replace(`{${"packageName"}}`, encodeURIComponent(String(requestParameters["packageName"])));
|
|
1351
|
+
urlPath = urlPath.replace(`{${"packageVersion"}}`, encodeURIComponent(String(requestParameters["packageVersion"])));
|
|
1352
|
+
const response = await this.request({
|
|
1353
|
+
path: urlPath,
|
|
1354
|
+
method: "GET",
|
|
1355
|
+
headers: headerParameters,
|
|
1356
|
+
query: queryParameters
|
|
1357
|
+
}, initOverrides);
|
|
1358
|
+
return new JSONApiResponse(response, (jsonValue) => PackagePublishResultFromJSON(jsonValue));
|
|
1359
|
+
}
|
|
1360
|
+
async pipelinesGetPackagePublishStatus(requestParameters, initOverrides) {
|
|
1361
|
+
const response = await this.pipelinesGetPackagePublishStatusRaw(requestParameters, initOverrides);
|
|
1362
|
+
return await response.value();
|
|
1363
|
+
}
|
|
1364
|
+
async pipelinesGetPackageVersionRaw(requestParameters, initOverrides) {
|
|
1365
|
+
if (requestParameters["packageName"] == null) {
|
|
1366
|
+
throw new RequiredError("packageName", 'Required parameter "packageName" was null or undefined when calling pipelinesGetPackageVersion().');
|
|
1367
|
+
}
|
|
1368
|
+
const queryParameters = {};
|
|
1369
|
+
if (requestParameters["packageVersion"] != null) {
|
|
1370
|
+
queryParameters["packageVersion"] = requestParameters["packageVersion"];
|
|
1371
|
+
}
|
|
1372
|
+
const headerParameters = {};
|
|
1373
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1374
|
+
const token = this.configuration.accessToken;
|
|
1375
|
+
const tokenString = await token("Bearer", []);
|
|
1376
|
+
if (tokenString) {
|
|
1377
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1378
|
+
}
|
|
1379
|
+
}
|
|
1380
|
+
let urlPath = `/v1/pipelines/packages/{packageName}`;
|
|
1381
|
+
urlPath = urlPath.replace(`{${"packageName"}}`, encodeURIComponent(String(requestParameters["packageName"])));
|
|
1382
|
+
const response = await this.request({
|
|
1383
|
+
path: urlPath,
|
|
1384
|
+
method: "GET",
|
|
1385
|
+
headers: headerParameters,
|
|
1386
|
+
query: queryParameters
|
|
1387
|
+
}, initOverrides);
|
|
1388
|
+
return new JSONApiResponse(response, (jsonValue) => PackageVersionInfoExtendedDtoFromJSON(jsonValue));
|
|
1389
|
+
}
|
|
1390
|
+
async pipelinesGetPackageVersion(requestParameters, initOverrides) {
|
|
1391
|
+
const response = await this.pipelinesGetPackageVersionRaw(requestParameters, initOverrides);
|
|
1392
|
+
return await response.value();
|
|
1393
|
+
}
|
|
1394
|
+
async pipelinesGetPipelineDeploymentStatusRaw(requestParameters, initOverrides) {
|
|
1395
|
+
if (requestParameters["pipelineDeploymentId"] == null) {
|
|
1396
|
+
throw new RequiredError("pipelineDeploymentId", 'Required parameter "pipelineDeploymentId" was null or undefined when calling pipelinesGetPipelineDeploymentStatus().');
|
|
1397
|
+
}
|
|
1398
|
+
const queryParameters = {};
|
|
1399
|
+
const headerParameters = {};
|
|
1400
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1401
|
+
const token = this.configuration.accessToken;
|
|
1402
|
+
const tokenString = await token("Bearer", []);
|
|
1403
|
+
if (tokenString) {
|
|
1404
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1405
|
+
}
|
|
1406
|
+
}
|
|
1407
|
+
let urlPath = `/v1/pipelines/deployments/{pipelineDeploymentId}/deployment-status`;
|
|
1408
|
+
urlPath = urlPath.replace(`{${"pipelineDeploymentId"}}`, encodeURIComponent(String(requestParameters["pipelineDeploymentId"])));
|
|
1409
|
+
const response = await this.request({
|
|
1410
|
+
path: urlPath,
|
|
1411
|
+
method: "GET",
|
|
1412
|
+
headers: headerParameters,
|
|
1413
|
+
query: queryParameters
|
|
1414
|
+
}, initOverrides);
|
|
1415
|
+
return new JSONApiResponse(response, (jsonValue) => PipelineDeploymentResultFromJSON(jsonValue));
|
|
1416
|
+
}
|
|
1417
|
+
async pipelinesGetPipelineDeploymentStatus(requestParameters, initOverrides) {
|
|
1418
|
+
const response = await this.pipelinesGetPipelineDeploymentStatusRaw(requestParameters, initOverrides);
|
|
1419
|
+
return await response.value();
|
|
1420
|
+
}
|
|
1421
|
+
async pipelinesGetPreActivateStepsRaw(requestParameters, initOverrides) {
|
|
1422
|
+
if (requestParameters["deploymentName"] == null) {
|
|
1423
|
+
throw new RequiredError("deploymentName", 'Required parameter "deploymentName" was null or undefined when calling pipelinesGetPreActivateSteps().');
|
|
1424
|
+
}
|
|
1425
|
+
const queryParameters = {};
|
|
1426
|
+
const headerParameters = {};
|
|
1427
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1428
|
+
const token = this.configuration.accessToken;
|
|
1429
|
+
const tokenString = await token("Bearer", []);
|
|
1430
|
+
if (tokenString) {
|
|
1431
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1432
|
+
}
|
|
1433
|
+
}
|
|
1434
|
+
let urlPath = `/v1/pipelines/deployments/{deploymentName}/pre-activate-steps`;
|
|
1435
|
+
urlPath = urlPath.replace(`{${"deploymentName"}}`, encodeURIComponent(String(requestParameters["deploymentName"])));
|
|
1436
|
+
const response = await this.request({
|
|
1437
|
+
path: urlPath,
|
|
1438
|
+
method: "GET",
|
|
1439
|
+
headers: headerParameters,
|
|
1440
|
+
query: queryParameters
|
|
1441
|
+
}, initOverrides);
|
|
1442
|
+
return new JSONApiResponse(response, (jsonValue) => DeploymentPreActivateStepsDtoFromJSON(jsonValue));
|
|
1443
|
+
}
|
|
1444
|
+
async pipelinesGetPreActivateSteps(requestParameters, initOverrides) {
|
|
1445
|
+
const response = await this.pipelinesGetPreActivateStepsRaw(requestParameters, initOverrides);
|
|
1446
|
+
return await response.value();
|
|
1447
|
+
}
|
|
1448
|
+
async pipelinesGetProjectSyncStatusRaw(requestParameters, initOverrides) {
|
|
1449
|
+
if (requestParameters["projectName"] == null) {
|
|
1450
|
+
throw new RequiredError("projectName", 'Required parameter "projectName" was null or undefined when calling pipelinesGetProjectSyncStatus().');
|
|
1451
|
+
}
|
|
1452
|
+
const queryParameters = {};
|
|
1453
|
+
const headerParameters = {};
|
|
1454
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1455
|
+
const token = this.configuration.accessToken;
|
|
1456
|
+
const tokenString = await token("Bearer", []);
|
|
1457
|
+
if (tokenString) {
|
|
1458
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1459
|
+
}
|
|
1460
|
+
}
|
|
1461
|
+
let urlPath = `/v1/pipelines/projects/{projectName}/sync-status`;
|
|
1462
|
+
urlPath = urlPath.replace(`{${"projectName"}}`, encodeURIComponent(String(requestParameters["projectName"])));
|
|
1463
|
+
const response = await this.request({
|
|
1464
|
+
path: urlPath,
|
|
1465
|
+
method: "GET",
|
|
1466
|
+
headers: headerParameters,
|
|
1467
|
+
query: queryParameters
|
|
1468
|
+
}, initOverrides);
|
|
1469
|
+
return new JSONApiResponse(response, (jsonValue) => ProjectSynchronizationDtoFromJSON(jsonValue));
|
|
1470
|
+
}
|
|
1471
|
+
async pipelinesGetProjectSyncStatus(requestParameters, initOverrides) {
|
|
1472
|
+
const response = await this.pipelinesGetProjectSyncStatusRaw(requestParameters, initOverrides);
|
|
1473
|
+
return await response.value();
|
|
1474
|
+
}
|
|
1475
|
+
async pipelinesGetSolutionPackageConfigurationRaw(requestParameters, initOverrides) {
|
|
1476
|
+
if (requestParameters["packageName"] == null) {
|
|
1477
|
+
throw new RequiredError("packageName", 'Required parameter "packageName" was null or undefined when calling pipelinesGetSolutionPackageConfiguration().');
|
|
1478
|
+
}
|
|
1479
|
+
if (requestParameters["format"] == null) {
|
|
1480
|
+
throw new RequiredError("format", 'Required parameter "format" was null or undefined when calling pipelinesGetSolutionPackageConfiguration().');
|
|
1481
|
+
}
|
|
1482
|
+
const queryParameters = {};
|
|
1483
|
+
if (requestParameters["packageVersion"] != null) {
|
|
1484
|
+
queryParameters["packageVersion"] = requestParameters["packageVersion"];
|
|
1485
|
+
}
|
|
1486
|
+
const headerParameters = {};
|
|
1487
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1488
|
+
const token = this.configuration.accessToken;
|
|
1489
|
+
const tokenString = await token("Bearer", []);
|
|
1490
|
+
if (tokenString) {
|
|
1491
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1492
|
+
}
|
|
1493
|
+
}
|
|
1494
|
+
let urlPath = `/v1/pipelines/packages/{packageName}/config.{format}`;
|
|
1495
|
+
urlPath = urlPath.replace(`{${"packageName"}}`, encodeURIComponent(String(requestParameters["packageName"])));
|
|
1496
|
+
urlPath = urlPath.replace(`{${"format"}}`, encodeURIComponent(String(requestParameters["format"])));
|
|
1497
|
+
const response = await this.request({
|
|
1498
|
+
path: urlPath,
|
|
1499
|
+
method: "GET",
|
|
1500
|
+
headers: headerParameters,
|
|
1501
|
+
query: queryParameters
|
|
1502
|
+
}, initOverrides);
|
|
1503
|
+
if (this.isJsonMime(response.headers.get("content-type"))) {
|
|
1504
|
+
return new JSONApiResponse(response);
|
|
1505
|
+
} else {
|
|
1506
|
+
return new TextApiResponse(response);
|
|
1507
|
+
}
|
|
1508
|
+
}
|
|
1509
|
+
async pipelinesGetSolutionPackageConfiguration(requestParameters, initOverrides) {
|
|
1510
|
+
const response = await this.pipelinesGetSolutionPackageConfigurationRaw(requestParameters, initOverrides);
|
|
1511
|
+
return await response.value();
|
|
1512
|
+
}
|
|
1513
|
+
async pipelinesInstallRaw(requestParameters, initOverrides) {
|
|
1514
|
+
if (requestParameters["deploymentName"] == null) {
|
|
1515
|
+
throw new RequiredError("deploymentName", 'Required parameter "deploymentName" was null or undefined when calling pipelinesInstall().');
|
|
1516
|
+
}
|
|
1517
|
+
if (requestParameters["packageName"] == null) {
|
|
1518
|
+
throw new RequiredError("packageName", 'Required parameter "packageName" was null or undefined when calling pipelinesInstall().');
|
|
1519
|
+
}
|
|
1520
|
+
if (requestParameters["packageVersion"] == null) {
|
|
1521
|
+
throw new RequiredError("packageVersion", 'Required parameter "packageVersion" was null or undefined when calling pipelinesInstall().');
|
|
1522
|
+
}
|
|
1523
|
+
if (requestParameters["solutionRootFolderName"] == null) {
|
|
1524
|
+
throw new RequiredError("solutionRootFolderName", 'Required parameter "solutionRootFolderName" was null or undefined when calling pipelinesInstall().');
|
|
1525
|
+
}
|
|
1526
|
+
const queryParameters = {};
|
|
1527
|
+
if (requestParameters["folderFullyQualifiedName"] != null) {
|
|
1528
|
+
queryParameters["folderFullyQualifiedName"] = requestParameters["folderFullyQualifiedName"];
|
|
1529
|
+
}
|
|
1530
|
+
const headerParameters = {};
|
|
1531
|
+
headerParameters["Content-Type"] = "application/json";
|
|
1532
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1533
|
+
const token = this.configuration.accessToken;
|
|
1534
|
+
const tokenString = await token("Bearer", []);
|
|
1535
|
+
if (tokenString) {
|
|
1536
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1537
|
+
}
|
|
1538
|
+
}
|
|
1539
|
+
let urlPath = `/v1/pipelines/deployments/{deploymentName}/deploy-from-package/{packageName}/{packageVersion}/to-folder/{solutionRootFolderName}`;
|
|
1540
|
+
urlPath = urlPath.replace(`{${"deploymentName"}}`, encodeURIComponent(String(requestParameters["deploymentName"])));
|
|
1541
|
+
urlPath = urlPath.replace(`{${"packageName"}}`, encodeURIComponent(String(requestParameters["packageName"])));
|
|
1542
|
+
urlPath = urlPath.replace(`{${"packageVersion"}}`, encodeURIComponent(String(requestParameters["packageVersion"])));
|
|
1543
|
+
urlPath = urlPath.replace(`{${"solutionRootFolderName"}}`, encodeURIComponent(String(requestParameters["solutionRootFolderName"])));
|
|
1544
|
+
const response = await this.request({
|
|
1545
|
+
path: urlPath,
|
|
1546
|
+
method: "POST",
|
|
1547
|
+
headers: headerParameters,
|
|
1548
|
+
query: queryParameters,
|
|
1549
|
+
body: requestParameters["body"]
|
|
1550
|
+
}, initOverrides);
|
|
1551
|
+
return new JSONApiResponse(response, (jsonValue) => PipelineDeploymentResultRefFromJSON(jsonValue));
|
|
1552
|
+
}
|
|
1553
|
+
async pipelinesInstall(requestParameters, initOverrides) {
|
|
1554
|
+
const response = await this.pipelinesInstallRaw(requestParameters, initOverrides);
|
|
1555
|
+
return await response.value();
|
|
1556
|
+
}
|
|
1557
|
+
async pipelinesPackageDeleteRaw(requestParameters, initOverrides) {
|
|
1558
|
+
if (requestParameters["packageName"] == null) {
|
|
1559
|
+
throw new RequiredError("packageName", 'Required parameter "packageName" was null or undefined when calling pipelinesPackageDelete().');
|
|
1560
|
+
}
|
|
1561
|
+
if (requestParameters["packageVersion"] == null) {
|
|
1562
|
+
throw new RequiredError("packageVersion", 'Required parameter "packageVersion" was null or undefined when calling pipelinesPackageDelete().');
|
|
1563
|
+
}
|
|
1564
|
+
const queryParameters = {};
|
|
1565
|
+
const headerParameters = {};
|
|
1566
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1567
|
+
const token = this.configuration.accessToken;
|
|
1568
|
+
const tokenString = await token("Bearer", []);
|
|
1569
|
+
if (tokenString) {
|
|
1570
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1571
|
+
}
|
|
1572
|
+
}
|
|
1573
|
+
let urlPath = `/v1/pipelines/packages/{packageName}/{packageVersion}`;
|
|
1574
|
+
urlPath = urlPath.replace(`{${"packageName"}}`, encodeURIComponent(String(requestParameters["packageName"])));
|
|
1575
|
+
urlPath = urlPath.replace(`{${"packageVersion"}}`, encodeURIComponent(String(requestParameters["packageVersion"])));
|
|
1576
|
+
const response = await this.request({
|
|
1577
|
+
path: urlPath,
|
|
1578
|
+
method: "DELETE",
|
|
1579
|
+
headers: headerParameters,
|
|
1580
|
+
query: queryParameters
|
|
1581
|
+
}, initOverrides);
|
|
1582
|
+
return new VoidApiResponse(response);
|
|
1583
|
+
}
|
|
1584
|
+
async pipelinesPackageDelete(requestParameters, initOverrides) {
|
|
1585
|
+
await this.pipelinesPackageDeleteRaw(requestParameters, initOverrides);
|
|
1586
|
+
}
|
|
1587
|
+
async pipelinesPackageDownloadRaw(requestParameters, initOverrides) {
|
|
1588
|
+
if (requestParameters["packageName"] == null) {
|
|
1589
|
+
throw new RequiredError("packageName", 'Required parameter "packageName" was null or undefined when calling pipelinesPackageDownload().');
|
|
1590
|
+
}
|
|
1591
|
+
const queryParameters = {};
|
|
1592
|
+
if (requestParameters["packageVersion"] != null) {
|
|
1593
|
+
queryParameters["packageVersion"] = requestParameters["packageVersion"];
|
|
1594
|
+
}
|
|
1595
|
+
const headerParameters = {};
|
|
1596
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1597
|
+
const token = this.configuration.accessToken;
|
|
1598
|
+
const tokenString = await token("Bearer", []);
|
|
1599
|
+
if (tokenString) {
|
|
1600
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1601
|
+
}
|
|
1602
|
+
}
|
|
1603
|
+
let urlPath = `/v1/pipelines/packages/{packageName}/download`;
|
|
1604
|
+
urlPath = urlPath.replace(`{${"packageName"}}`, encodeURIComponent(String(requestParameters["packageName"])));
|
|
1605
|
+
const response = await this.request({
|
|
1606
|
+
path: urlPath,
|
|
1607
|
+
method: "GET",
|
|
1608
|
+
headers: headerParameters,
|
|
1609
|
+
query: queryParameters
|
|
1610
|
+
}, initOverrides);
|
|
1611
|
+
return new JSONApiResponse(response, (jsonValue) => BlobFileAccessDtoFromJSON(jsonValue));
|
|
1612
|
+
}
|
|
1613
|
+
async pipelinesPackageDownload(requestParameters, initOverrides) {
|
|
1614
|
+
const response = await this.pipelinesPackageDownloadRaw(requestParameters, initOverrides);
|
|
1615
|
+
return await response.value();
|
|
1616
|
+
}
|
|
1617
|
+
async pipelinesPackageUploadRaw(requestParameters, initOverrides) {
|
|
1618
|
+
const queryParameters = {};
|
|
1619
|
+
if (requestParameters["locationKey"] != null) {
|
|
1620
|
+
queryParameters["locationKey"] = requestParameters["locationKey"];
|
|
1621
|
+
}
|
|
1622
|
+
const headerParameters = {};
|
|
1623
|
+
headerParameters["Content-Type"] = "application/zip";
|
|
1624
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1625
|
+
const token = this.configuration.accessToken;
|
|
1626
|
+
const tokenString = await token("Bearer", []);
|
|
1627
|
+
if (tokenString) {
|
|
1628
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1629
|
+
}
|
|
1630
|
+
}
|
|
1631
|
+
let urlPath = `/v2/pipelines/packages`;
|
|
1632
|
+
const response = await this.request({
|
|
1633
|
+
path: urlPath,
|
|
1634
|
+
method: "POST",
|
|
1635
|
+
headers: headerParameters,
|
|
1636
|
+
query: queryParameters,
|
|
1637
|
+
body: requestParameters["body"]
|
|
1638
|
+
}, initOverrides);
|
|
1639
|
+
return new JSONApiResponse(response, (jsonValue) => PackageVersionInfoDtoFromJSON(jsonValue));
|
|
1640
|
+
}
|
|
1641
|
+
async pipelinesPackageUpload(requestParameters = {}, initOverrides) {
|
|
1642
|
+
const response = await this.pipelinesPackageUploadRaw(requestParameters, initOverrides);
|
|
1643
|
+
return await response.value();
|
|
1644
|
+
}
|
|
1645
|
+
async pipelinesPublishProjectRaw(requestParameters, initOverrides) {
|
|
1646
|
+
if (requestParameters["projectName"] == null) {
|
|
1647
|
+
throw new RequiredError("projectName", 'Required parameter "projectName" was null or undefined when calling pipelinesPublishProject().');
|
|
1648
|
+
}
|
|
1649
|
+
if (requestParameters["publishProjectRequest"] == null) {
|
|
1650
|
+
throw new RequiredError("publishProjectRequest", 'Required parameter "publishProjectRequest" was null or undefined when calling pipelinesPublishProject().');
|
|
1651
|
+
}
|
|
1652
|
+
const queryParameters = {};
|
|
1653
|
+
const headerParameters = {};
|
|
1654
|
+
headerParameters["Content-Type"] = "application/json";
|
|
1655
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1656
|
+
const token = this.configuration.accessToken;
|
|
1657
|
+
const tokenString = await token("Bearer", []);
|
|
1658
|
+
if (tokenString) {
|
|
1659
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1660
|
+
}
|
|
1661
|
+
}
|
|
1662
|
+
let urlPath = `/v1/pipelines/projects/{projectName}/publish`;
|
|
1663
|
+
urlPath = urlPath.replace(`{${"projectName"}}`, encodeURIComponent(String(requestParameters["projectName"])));
|
|
1664
|
+
const response = await this.request({
|
|
1665
|
+
path: urlPath,
|
|
1666
|
+
method: "POST",
|
|
1667
|
+
headers: headerParameters,
|
|
1668
|
+
query: queryParameters,
|
|
1669
|
+
body: PublishProjectRequestToJSON(requestParameters["publishProjectRequest"])
|
|
1670
|
+
}, initOverrides);
|
|
1671
|
+
return new BlobApiResponse(response);
|
|
1672
|
+
}
|
|
1673
|
+
async pipelinesPublishProject(requestParameters, initOverrides) {
|
|
1674
|
+
const response = await this.pipelinesPublishProjectRaw(requestParameters, initOverrides);
|
|
1675
|
+
return await response.value();
|
|
1676
|
+
}
|
|
1677
|
+
async pipelinesSearchDeploymentsRaw(requestParameters, initOverrides) {
|
|
1678
|
+
if (requestParameters["pipelineDeploymentsSearchRequest"] == null) {
|
|
1679
|
+
throw new RequiredError("pipelineDeploymentsSearchRequest", 'Required parameter "pipelineDeploymentsSearchRequest" was null or undefined when calling pipelinesSearchDeployments().');
|
|
1680
|
+
}
|
|
1681
|
+
const queryParameters = {};
|
|
1682
|
+
const headerParameters = {};
|
|
1683
|
+
headerParameters["Content-Type"] = "application/json";
|
|
1684
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1685
|
+
const token = this.configuration.accessToken;
|
|
1686
|
+
const tokenString = await token("Bearer", []);
|
|
1687
|
+
if (tokenString) {
|
|
1688
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1689
|
+
}
|
|
1690
|
+
}
|
|
1691
|
+
let urlPath = `/v1/pipelines/deployments/search`;
|
|
1692
|
+
const response = await this.request({
|
|
1693
|
+
path: urlPath,
|
|
1694
|
+
method: "POST",
|
|
1695
|
+
headers: headerParameters,
|
|
1696
|
+
query: queryParameters,
|
|
1697
|
+
body: PipelineDeploymentsSearchRequestToJSON(requestParameters["pipelineDeploymentsSearchRequest"])
|
|
1698
|
+
}, initOverrides);
|
|
1699
|
+
return new JSONApiResponse(response, (jsonValue) => PageInfoDtoOfDeploymentSearchItemDtoFromJSON(jsonValue));
|
|
1700
|
+
}
|
|
1701
|
+
async pipelinesSearchDeployments(requestParameters, initOverrides) {
|
|
1702
|
+
const response = await this.pipelinesSearchDeploymentsRaw(requestParameters, initOverrides);
|
|
1703
|
+
return await response.value();
|
|
1704
|
+
}
|
|
1705
|
+
async pipelinesSearchPackagesRaw(requestParameters, initOverrides) {
|
|
1706
|
+
if (requestParameters["pipelinePackagesSearchRequest"] == null) {
|
|
1707
|
+
throw new RequiredError("pipelinePackagesSearchRequest", 'Required parameter "pipelinePackagesSearchRequest" was null or undefined when calling pipelinesSearchPackages().');
|
|
1708
|
+
}
|
|
1709
|
+
const queryParameters = {};
|
|
1710
|
+
const headerParameters = {};
|
|
1711
|
+
headerParameters["Content-Type"] = "application/json";
|
|
1712
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1713
|
+
const token = this.configuration.accessToken;
|
|
1714
|
+
const tokenString = await token("Bearer", []);
|
|
1715
|
+
if (tokenString) {
|
|
1716
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1717
|
+
}
|
|
1718
|
+
}
|
|
1719
|
+
let urlPath = `/v1/pipelines/packages/search`;
|
|
1720
|
+
const response = await this.request({
|
|
1721
|
+
path: urlPath,
|
|
1722
|
+
method: "POST",
|
|
1723
|
+
headers: headerParameters,
|
|
1724
|
+
query: queryParameters,
|
|
1725
|
+
body: PipelinePackagesSearchRequestToJSON(requestParameters["pipelinePackagesSearchRequest"])
|
|
1726
|
+
}, initOverrides);
|
|
1727
|
+
return new JSONApiResponse(response, (jsonValue) => PageInfoDtoOfPackageInfoFromJSON(jsonValue));
|
|
1728
|
+
}
|
|
1729
|
+
async pipelinesSearchPackages(requestParameters, initOverrides) {
|
|
1730
|
+
const response = await this.pipelinesSearchPackagesRaw(requestParameters, initOverrides);
|
|
1731
|
+
return await response.value();
|
|
1732
|
+
}
|
|
1733
|
+
async pipelinesSyncProjectRaw(requestParameters, initOverrides) {
|
|
1734
|
+
if (requestParameters["projectName"] == null) {
|
|
1735
|
+
throw new RequiredError("projectName", 'Required parameter "projectName" was null or undefined when calling pipelinesSyncProject().');
|
|
1736
|
+
}
|
|
1737
|
+
if (requestParameters["syncProjectOptions"] == null) {
|
|
1738
|
+
throw new RequiredError("syncProjectOptions", 'Required parameter "syncProjectOptions" was null or undefined when calling pipelinesSyncProject().');
|
|
1739
|
+
}
|
|
1740
|
+
const queryParameters = {};
|
|
1741
|
+
const headerParameters = {};
|
|
1742
|
+
headerParameters["Content-Type"] = "application/json";
|
|
1743
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1744
|
+
const token = this.configuration.accessToken;
|
|
1745
|
+
const tokenString = await token("Bearer", []);
|
|
1746
|
+
if (tokenString) {
|
|
1747
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1748
|
+
}
|
|
1749
|
+
}
|
|
1750
|
+
let urlPath = `/v1/pipelines/projects/{projectName}/sync`;
|
|
1751
|
+
urlPath = urlPath.replace(`{${"projectName"}}`, encodeURIComponent(String(requestParameters["projectName"])));
|
|
1752
|
+
const response = await this.request({
|
|
1753
|
+
path: urlPath,
|
|
1754
|
+
method: "POST",
|
|
1755
|
+
headers: headerParameters,
|
|
1756
|
+
query: queryParameters,
|
|
1757
|
+
body: SyncProjectOptionsToJSON(requestParameters["syncProjectOptions"])
|
|
1758
|
+
}, initOverrides);
|
|
1759
|
+
return new BlobApiResponse(response);
|
|
1760
|
+
}
|
|
1761
|
+
async pipelinesSyncProject(requestParameters, initOverrides) {
|
|
1762
|
+
const response = await this.pipelinesSyncProjectRaw(requestParameters, initOverrides);
|
|
1763
|
+
return await response.value();
|
|
1764
|
+
}
|
|
1765
|
+
async pipelinesUninstallRaw(requestParameters, initOverrides) {
|
|
1766
|
+
if (requestParameters["deploymentName"] == null) {
|
|
1767
|
+
throw new RequiredError("deploymentName", 'Required parameter "deploymentName" was null or undefined when calling pipelinesUninstall().');
|
|
1768
|
+
}
|
|
1769
|
+
const queryParameters = {};
|
|
1770
|
+
if (requestParameters["forceUninstall"] != null) {
|
|
1771
|
+
queryParameters["forceUninstall"] = requestParameters["forceUninstall"];
|
|
1772
|
+
}
|
|
1773
|
+
const headerParameters = {};
|
|
1774
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1775
|
+
const token = this.configuration.accessToken;
|
|
1776
|
+
const tokenString = await token("Bearer", []);
|
|
1777
|
+
if (tokenString) {
|
|
1778
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1779
|
+
}
|
|
1780
|
+
}
|
|
1781
|
+
let urlPath = `/v1/pipelines/deployments/{deploymentName}/uninstall`;
|
|
1782
|
+
urlPath = urlPath.replace(`{${"deploymentName"}}`, encodeURIComponent(String(requestParameters["deploymentName"])));
|
|
1783
|
+
const response = await this.request({
|
|
1784
|
+
path: urlPath,
|
|
1785
|
+
method: "POST",
|
|
1786
|
+
headers: headerParameters,
|
|
1787
|
+
query: queryParameters
|
|
1788
|
+
}, initOverrides);
|
|
1789
|
+
return new JSONApiResponse(response, (jsonValue) => DeploymentRunResponseFromJSON(jsonValue));
|
|
1790
|
+
}
|
|
1791
|
+
async pipelinesUninstall(requestParameters, initOverrides) {
|
|
1792
|
+
const response = await this.pipelinesUninstallRaw(requestParameters, initOverrides);
|
|
1793
|
+
return await response.value();
|
|
1794
|
+
}
|
|
1795
|
+
}
|
|
1796
|
+
// ../pipelines-sdk/package.json
|
|
1797
|
+
var package_default = {
|
|
1798
|
+
name: "@uipath/pipelines-sdk",
|
|
1799
|
+
author: "UiPath",
|
|
1800
|
+
license: "SEE LICENSE IN LICENSE.txt",
|
|
1801
|
+
version: "1.205.0",
|
|
1802
|
+
description: "Generated TypeScript client for UiPath Pipelines API (CI/CD deployment lifecycle)",
|
|
1803
|
+
repository: {
|
|
1804
|
+
type: "git",
|
|
1805
|
+
url: "https://github.com/UiPath/cli.git",
|
|
1806
|
+
directory: "packages/pipelines-sdk"
|
|
1807
|
+
},
|
|
1808
|
+
publishConfig: {
|
|
1809
|
+
registry: "https://npm.pkg.github.com/@uipath"
|
|
1810
|
+
},
|
|
1811
|
+
keywords: [
|
|
1812
|
+
"uipath",
|
|
1813
|
+
"pipelines",
|
|
1814
|
+
"sdk"
|
|
1815
|
+
],
|
|
1816
|
+
type: "module",
|
|
1817
|
+
main: "./dist/index.js",
|
|
1818
|
+
types: "./dist/src/index.d.ts",
|
|
1819
|
+
exports: {
|
|
1820
|
+
".": {
|
|
1821
|
+
types: "./dist/src/index.d.ts",
|
|
1822
|
+
default: "./dist/index.js"
|
|
1823
|
+
}
|
|
1824
|
+
},
|
|
1825
|
+
bin: {
|
|
1826
|
+
"generate-pipelines-sdk": "./dist/scripts/generate-sdk.js"
|
|
1827
|
+
},
|
|
1828
|
+
files: [
|
|
1829
|
+
"dist"
|
|
1830
|
+
],
|
|
1831
|
+
private: true,
|
|
1832
|
+
scripts: {
|
|
1833
|
+
build: "bun build ./src/index.ts --outdir dist --format esm --target node --sourcemap=linked && bun build ./src/scripts/generate-sdk.ts --outdir dist/scripts --format esm --target node --sourcemap=linked && tsc -p tsconfig.build.json --noCheck",
|
|
1834
|
+
generate: "bun run src/scripts/generate-sdk.ts",
|
|
1835
|
+
lint: "biome check .",
|
|
1836
|
+
test: "vitest run",
|
|
1837
|
+
"test:coverage": "vitest run --coverage"
|
|
1838
|
+
},
|
|
1839
|
+
devDependencies: {
|
|
1840
|
+
"@openapitools/openapi-generator-cli": "^2.31.1",
|
|
1841
|
+
"@types/node": "^25.5.2",
|
|
1842
|
+
"@uipath/common": "workspace:*",
|
|
1843
|
+
typescript: "^7.0.2"
|
|
1844
|
+
}
|
|
1845
|
+
};
|
|
1846
|
+
|
|
1847
|
+
// ../pipelines-sdk/src/user-agent.ts
|
|
1848
|
+
var SDK_USER_AGENT = getSdkUserAgentToken(package_default);
|
|
1849
|
+
installSdkUserAgentHeader(BaseAPI, SDK_USER_AGENT);
|
|
1850
|
+
// src/pipelines-route.ts
|
|
1851
|
+
async function isMissingPipelinesRoute(error) {
|
|
1852
|
+
const status = httpStatusOf(error);
|
|
1853
|
+
if (status === 405) {
|
|
1854
|
+
return true;
|
|
1855
|
+
}
|
|
1856
|
+
if (status !== 404 || !error || typeof error !== "object") {
|
|
1857
|
+
return false;
|
|
1858
|
+
}
|
|
1859
|
+
if (!("response" in error)) {
|
|
1860
|
+
return true;
|
|
1861
|
+
}
|
|
1862
|
+
const response = error.response;
|
|
1863
|
+
if (!(response instanceof Response)) {
|
|
1864
|
+
return false;
|
|
1865
|
+
}
|
|
1866
|
+
const [readError, body] = await catchError((async () => response.clone().text())());
|
|
1867
|
+
if (readError) {
|
|
1868
|
+
return false;
|
|
1869
|
+
}
|
|
1870
|
+
return body.trim() === "";
|
|
1871
|
+
}
|
|
1872
|
+
function isApplicationSession(auth) {
|
|
1873
|
+
const identity = auth.identity ?? resolveSessionIdentity(auth.accessToken);
|
|
1874
|
+
return identity?.type === "Application";
|
|
1875
|
+
}
|
|
1876
|
+
function notAPage(route, what, options) {
|
|
1877
|
+
return new Error(`${route} answered with ${what}.`, options);
|
|
1878
|
+
}
|
|
1879
|
+
function parseSearchPage(body, route, kind) {
|
|
1880
|
+
if (!body || typeof body !== "object" || Array.isArray(body)) {
|
|
1881
|
+
throw notAPage(route, `a body that is not a page of ${kind.plural}`);
|
|
1882
|
+
}
|
|
1883
|
+
const values = "values" in body ? body.values : undefined;
|
|
1884
|
+
if (values !== undefined && values !== null && !Array.isArray(values)) {
|
|
1885
|
+
throw notAPage(route, `\`values\` that is not a list of ${kind.plural}`);
|
|
1886
|
+
}
|
|
1887
|
+
const rows = Array.isArray(values) ? values : [];
|
|
1888
|
+
const count = "count" in body && typeof body.count === "number" && body.count >= 0 ? body.count : undefined;
|
|
1889
|
+
return { count, values: rows.map((row) => parseRow(row, route, kind)) };
|
|
1890
|
+
}
|
|
1891
|
+
function parseRow(row, route, kind) {
|
|
1892
|
+
const what = `a row that is not a ${kind.singular}`;
|
|
1893
|
+
if (!row || typeof row !== "object" || Array.isArray(row)) {
|
|
1894
|
+
throw notAPage(route, what);
|
|
1895
|
+
}
|
|
1896
|
+
if (kind.isRow && !kind.isRow(row)) {
|
|
1897
|
+
throw notAPage(route, what);
|
|
1898
|
+
}
|
|
1899
|
+
const [error, parsed] = catchError(() => kind.fromJSON(row));
|
|
1900
|
+
if (error) {
|
|
1901
|
+
throw notAPage(route, what, { cause: error });
|
|
1902
|
+
}
|
|
1903
|
+
return parsed;
|
|
1904
|
+
}
|
|
1905
|
+
|
|
1906
|
+
export { Configuration, PipelinesApi, isMissingPipelinesRoute, isApplicationSession, parseSearchPage };
|
|
1907
|
+
|
|
1908
|
+
//# debugId=0A9FAD35085C1DD364756E2164756E21
|