@uipath/codedapp-tool 1.205.0-preview.284 → 1.206.0-preview.282
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/README.md +48 -0
- package/dist/{browser-strategy-6atc7v8s.js → browser-strategy-z97p0ezf.js} +5 -6
- package/dist/{embedded-file-reader-r66242ey.js → embedded-file-reader-0228j82a.js} +1 -4
- package/dist/first-party-service-ahcc6xc6.js +8 -0
- package/dist/{index-0k30knwv.js → index-0py5k2e9.js} +177 -2055
- package/dist/index-c3zcyvwz.js +20 -0
- package/dist/index-cw1j9s6d.js +3176 -0
- package/dist/{index-h8cph72k.js → index-nzr4mx5p.js} +2 -22
- package/dist/index-z2qk2qn6.js +24 -0
- package/dist/index.js +14 -17
- package/dist/{jmespath-e4a59c8w.js → jmespath-wwym30dp.js} +1 -1
- package/dist/{js-yaml-87cdx6bm.js → js-yaml-a2bk27p6.js} +1 -3
- package/dist/{node-strategy-myagr1zp.js → node-strategy-fk02jqd8.js} +9 -12
- package/dist/{packager-tool-5ebgtev7.js → packager-tool-06tdd0p9.js} +3168 -3092
- package/dist/{packager-tool-je2re4j6.js → packager-tool-0ajs8pnk.js} +53 -8
- package/dist/{packager-tool-vc19fcdp.js → packager-tool-19x86hb2.js} +3 -21
- package/dist/{packager-tool-0gctz400.js → packager-tool-2rwzcase.js} +2 -5
- package/dist/{packager-tool-s8h46737.js → packager-tool-3ss96mpk.js} +82 -709
- package/dist/{packager-tool-d94wjncg.js → packager-tool-5t7c439j.js} +97 -97
- package/dist/{packager-tool-1yh8g550.js → packager-tool-6an893wm.js} +12 -3
- package/dist/packager-tool-8pm90w77.js +6640 -0
- package/dist/{packager-tool-cmfktvbt.js → packager-tool-h9q8znad.js} +885 -439
- package/dist/{packager-tool-ahrmbx21.js → packager-tool-hzve3h1v.js} +1676 -1451
- package/dist/{packager-tool-gdtpsdn7.js → packager-tool-mm1x18d6.js} +223 -28
- package/dist/{packager-tool-qa9gftnj.js → packager-tool-xd2w5pct.js} +3 -3
- package/dist/packager-tool.js +7 -8
- package/dist/tool.js +13 -16
- package/package.json +2 -2
- package/dist/first-party-service-srxaftkn.js +0 -27
- package/dist/index-78bnpdqb.js +0 -3177
- package/dist/index-kmp9fmhb.js +0 -25
- package/dist/index-wbp18pm0.js +0 -157
- package/dist/packager-tool-53w8skv5.js +0 -262
- package/dist/packager-tool-m7tmga2c.js +0 -20538
- /package/dist/{packager-tool-yc4kw997.js → packager-tool-1qg04b7q.js} +0 -0
package/dist/index-kmp9fmhb.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CAMEL_CASE_ENUM_PROPERTIES,
|
|
3
|
-
JsonSerializer,
|
|
4
|
-
JsonSerializerFactory,
|
|
5
|
-
JsonSerializerNames,
|
|
6
|
-
JsonSerializerProxy,
|
|
7
|
-
PASCAL_CASE_ENUM_PROPERTIES,
|
|
8
|
-
RESOURCE_BUILDER_PASCAL_CASE_PROPERTIES,
|
|
9
|
-
SHARED_CORE_ABSTRACTIONS_PASCAL_CASE_PROPERTIES,
|
|
10
|
-
StreamSerializer
|
|
11
|
-
} from "./packager-tool-gdtpsdn7.js";
|
|
12
|
-
import"./packager-tool-1yh8g550.js";
|
|
13
|
-
export {
|
|
14
|
-
CAMEL_CASE_ENUM_PROPERTIES,
|
|
15
|
-
JsonSerializer,
|
|
16
|
-
JsonSerializerFactory,
|
|
17
|
-
JsonSerializerNames,
|
|
18
|
-
JsonSerializerProxy,
|
|
19
|
-
PASCAL_CASE_ENUM_PROPERTIES,
|
|
20
|
-
RESOURCE_BUILDER_PASCAL_CASE_PROPERTIES,
|
|
21
|
-
SHARED_CORE_ABSTRACTIONS_PASCAL_CASE_PROPERTIES,
|
|
22
|
-
StreamSerializer
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
//# debugId=A79DD62A6A37B41864756E2164756E21
|
package/dist/index-wbp18pm0.js
DELETED
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
AUTH_FLOW_ENV_VAR,
|
|
3
|
-
AuthProfileValidationError,
|
|
4
|
-
ClientCredentialsAuthenticationError,
|
|
5
|
-
CredentialSource,
|
|
6
|
-
DEFAULT_AUTH_FILENAME,
|
|
7
|
-
DEFAULT_AUTH_PROFILE,
|
|
8
|
-
DEFAULT_ENV_FILENAME,
|
|
9
|
-
ENFORCE_ROBOT_AUTH_VAR,
|
|
10
|
-
ENV_AUTH_ENABLE_VAR,
|
|
11
|
-
ENV_AUTH_VARS,
|
|
12
|
-
EnvAuthConfigError,
|
|
13
|
-
FederatedCredentialsAuthenticationError,
|
|
14
|
-
INVALID_TENANT_CODE,
|
|
15
|
-
InvalidBaseUrlError,
|
|
16
|
-
InvalidTenantError,
|
|
17
|
-
JWT_BEARER_ASSERTION_TYPE,
|
|
18
|
-
TENANT_SELECTION_REQUIRED_CODE,
|
|
19
|
-
TenantSelectionError,
|
|
20
|
-
TenantSelectionRequiredError,
|
|
21
|
-
TokenRefreshOAuthError,
|
|
22
|
-
authProfileExistsAsync,
|
|
23
|
-
authenticate,
|
|
24
|
-
clearActiveAuthProfile,
|
|
25
|
-
clearRefreshBreaker,
|
|
26
|
-
clientCredentialsLogin,
|
|
27
|
-
deleteAuthProfileAsync,
|
|
28
|
-
describeAuthProfilesAsync,
|
|
29
|
-
federatedCredentialsLogin,
|
|
30
|
-
fetchTenantsAndOrganizations,
|
|
31
|
-
getActiveAuthProfile,
|
|
32
|
-
getActiveAuthProfileFilePath,
|
|
33
|
-
getAuthContext,
|
|
34
|
-
getAuthEnv,
|
|
35
|
-
getAuthProfilesRootPath,
|
|
36
|
-
getLoginStatusAsync,
|
|
37
|
-
getLoginStatusWithDeps,
|
|
38
|
-
interactiveLogin,
|
|
39
|
-
interactiveLoginWithDeps,
|
|
40
|
-
isEnvAuthEnabled,
|
|
41
|
-
isRobotAuthEnforced,
|
|
42
|
-
isTenantSelectionError,
|
|
43
|
-
isTokenRefreshOAuthFailure,
|
|
44
|
-
listAuthProfileNamesAsync,
|
|
45
|
-
loadEnvFileAsync,
|
|
46
|
-
loadRefreshBreaker,
|
|
47
|
-
logout,
|
|
48
|
-
logoutWithDeps,
|
|
49
|
-
normalizeAuthProfileName,
|
|
50
|
-
parseAuthFlow,
|
|
51
|
-
parseJWT,
|
|
52
|
-
readAuthFromEnv,
|
|
53
|
-
readTokenScopes,
|
|
54
|
-
refreshAccessToken,
|
|
55
|
-
refreshTokenFingerprint,
|
|
56
|
-
registerRobotClientLoader,
|
|
57
|
-
resolveAuthProfileDirPath,
|
|
58
|
-
resolveAuthProfileFilePath,
|
|
59
|
-
resolveEnvFileLocationAsync,
|
|
60
|
-
resolveEnvFilePathAsync,
|
|
61
|
-
resolveSessionIdentity,
|
|
62
|
-
runWithAuthProfile,
|
|
63
|
-
saveEnvFileAsync,
|
|
64
|
-
saveRefreshBreaker,
|
|
65
|
-
selectTenantWithDeps,
|
|
66
|
-
setActiveAuthProfile,
|
|
67
|
-
setAuthFileConfig
|
|
68
|
-
} from "./packager-tool-s8h46737.js";
|
|
69
|
-
import {
|
|
70
|
-
isBrowser,
|
|
71
|
-
isNode
|
|
72
|
-
} from "./packager-tool-0gctz400.js";
|
|
73
|
-
import"./packager-tool-qa9gftnj.js";
|
|
74
|
-
import"./packager-tool-je2re4j6.js";
|
|
75
|
-
import {
|
|
76
|
-
AUTH_CANCELLED_ERROR_CODE,
|
|
77
|
-
AUTH_RECLAIMED_ERROR_CODE,
|
|
78
|
-
AUTH_TIMEOUT_ERROR_CODE,
|
|
79
|
-
DEFAULT_AUTH_TIMEOUT_MS
|
|
80
|
-
} from "./packager-tool-yc4kw997.js";
|
|
81
|
-
import"./packager-tool-1yh8g550.js";
|
|
82
|
-
export {
|
|
83
|
-
AUTH_CANCELLED_ERROR_CODE,
|
|
84
|
-
AUTH_FLOW_ENV_VAR,
|
|
85
|
-
AUTH_RECLAIMED_ERROR_CODE,
|
|
86
|
-
AUTH_TIMEOUT_ERROR_CODE,
|
|
87
|
-
AuthProfileValidationError,
|
|
88
|
-
ClientCredentialsAuthenticationError,
|
|
89
|
-
CredentialSource,
|
|
90
|
-
DEFAULT_AUTH_FILENAME,
|
|
91
|
-
DEFAULT_AUTH_PROFILE,
|
|
92
|
-
DEFAULT_AUTH_TIMEOUT_MS,
|
|
93
|
-
DEFAULT_ENV_FILENAME,
|
|
94
|
-
ENFORCE_ROBOT_AUTH_VAR,
|
|
95
|
-
ENV_AUTH_ENABLE_VAR,
|
|
96
|
-
ENV_AUTH_VARS,
|
|
97
|
-
EnvAuthConfigError,
|
|
98
|
-
FederatedCredentialsAuthenticationError,
|
|
99
|
-
INVALID_TENANT_CODE,
|
|
100
|
-
InvalidBaseUrlError,
|
|
101
|
-
InvalidTenantError,
|
|
102
|
-
JWT_BEARER_ASSERTION_TYPE,
|
|
103
|
-
TENANT_SELECTION_REQUIRED_CODE,
|
|
104
|
-
TenantSelectionError,
|
|
105
|
-
TenantSelectionRequiredError,
|
|
106
|
-
TokenRefreshOAuthError,
|
|
107
|
-
authProfileExistsAsync,
|
|
108
|
-
authenticate,
|
|
109
|
-
clearActiveAuthProfile,
|
|
110
|
-
clearRefreshBreaker,
|
|
111
|
-
clientCredentialsLogin,
|
|
112
|
-
deleteAuthProfileAsync,
|
|
113
|
-
describeAuthProfilesAsync,
|
|
114
|
-
federatedCredentialsLogin,
|
|
115
|
-
fetchTenantsAndOrganizations,
|
|
116
|
-
getActiveAuthProfile,
|
|
117
|
-
getActiveAuthProfileFilePath,
|
|
118
|
-
getAuthContext,
|
|
119
|
-
getAuthEnv,
|
|
120
|
-
getAuthProfilesRootPath,
|
|
121
|
-
getLoginStatusAsync,
|
|
122
|
-
getLoginStatusWithDeps,
|
|
123
|
-
interactiveLogin,
|
|
124
|
-
interactiveLoginWithDeps,
|
|
125
|
-
isBrowser,
|
|
126
|
-
isEnvAuthEnabled,
|
|
127
|
-
isNode,
|
|
128
|
-
isRobotAuthEnforced,
|
|
129
|
-
isTenantSelectionError,
|
|
130
|
-
isTokenRefreshOAuthFailure,
|
|
131
|
-
listAuthProfileNamesAsync,
|
|
132
|
-
loadEnvFileAsync,
|
|
133
|
-
loadRefreshBreaker,
|
|
134
|
-
logout,
|
|
135
|
-
logoutWithDeps,
|
|
136
|
-
normalizeAuthProfileName,
|
|
137
|
-
parseAuthFlow,
|
|
138
|
-
parseJWT,
|
|
139
|
-
readAuthFromEnv,
|
|
140
|
-
readTokenScopes,
|
|
141
|
-
refreshAccessToken,
|
|
142
|
-
refreshTokenFingerprint,
|
|
143
|
-
registerRobotClientLoader,
|
|
144
|
-
resolveAuthProfileDirPath,
|
|
145
|
-
resolveAuthProfileFilePath,
|
|
146
|
-
resolveEnvFileLocationAsync,
|
|
147
|
-
resolveEnvFilePathAsync,
|
|
148
|
-
resolveSessionIdentity,
|
|
149
|
-
runWithAuthProfile,
|
|
150
|
-
saveEnvFileAsync,
|
|
151
|
-
saveRefreshBreaker,
|
|
152
|
-
selectTenantWithDeps,
|
|
153
|
-
setActiveAuthProfile,
|
|
154
|
-
setAuthFileConfig
|
|
155
|
-
};
|
|
156
|
-
|
|
157
|
-
//# debugId=DC7911E6798428D864756E2164756E21
|
|
@@ -1,262 +0,0 @@
|
|
|
1
|
-
// ../../node_modules/@uipath/resource-builder-sdk/dist/clients/generated/first-party-service.js
|
|
2
|
-
var first_party_service_DeploymentAction = /* @__PURE__ */ function(DeploymentAction) {
|
|
3
|
-
DeploymentAction["Install"] = "Install";
|
|
4
|
-
DeploymentAction["Link"] = "Link";
|
|
5
|
-
DeploymentAction["Uninstall"] = "Uninstall";
|
|
6
|
-
DeploymentAction["Unlink"] = "Unlink";
|
|
7
|
-
DeploymentAction["Merge"] = "Merge";
|
|
8
|
-
DeploymentAction["UseExisting"] = "UseExisting";
|
|
9
|
-
DeploymentAction["Activate"] = "Activate";
|
|
10
|
-
return DeploymentAction;
|
|
11
|
-
}({});
|
|
12
|
-
var first_party_service_SolutionDeploymentAction = /* @__PURE__ */ function(SolutionDeploymentAction) {
|
|
13
|
-
SolutionDeploymentAction["Install"] = "Install";
|
|
14
|
-
SolutionDeploymentAction["Uninstall"] = "Uninstall";
|
|
15
|
-
SolutionDeploymentAction["Upgrade"] = "Upgrade";
|
|
16
|
-
SolutionDeploymentAction["Rollback"] = "Rollback";
|
|
17
|
-
SolutionDeploymentAction["Activate"] = "Activate";
|
|
18
|
-
return SolutionDeploymentAction;
|
|
19
|
-
}({});
|
|
20
|
-
var first_party_service_SolutionStatus = /* @__PURE__ */ function(SolutionStatus) {
|
|
21
|
-
SolutionStatus["Installed"] = "Installed";
|
|
22
|
-
SolutionStatus["Uninstalled"] = "Uninstalled";
|
|
23
|
-
SolutionStatus["Installing"] = "Installing";
|
|
24
|
-
SolutionStatus["Uninstalling"] = "Uninstalling";
|
|
25
|
-
SolutionStatus["InstallError"] = "InstallError";
|
|
26
|
-
SolutionStatus["UninstallError"] = "UninstallError";
|
|
27
|
-
SolutionStatus["Unknown"] = "Unknown";
|
|
28
|
-
return SolutionStatus;
|
|
29
|
-
}({});
|
|
30
|
-
var first_party_service_QueryOptions = /* @__PURE__ */ function(QueryOptions) {
|
|
31
|
-
QueryOptions["Contains"] = "Contains";
|
|
32
|
-
QueryOptions["Equals"] = "Equals";
|
|
33
|
-
return QueryOptions;
|
|
34
|
-
}({});
|
|
35
|
-
var first_party_service_DeploymentResourceValidationErrorLevel = /* @__PURE__ */ function(DeploymentResourceValidationErrorLevel) {
|
|
36
|
-
DeploymentResourceValidationErrorLevel["Error"] = "Error";
|
|
37
|
-
DeploymentResourceValidationErrorLevel["Warning"] = "Warning";
|
|
38
|
-
DeploymentResourceValidationErrorLevel["Info"] = "Info";
|
|
39
|
-
return DeploymentResourceValidationErrorLevel;
|
|
40
|
-
}({});
|
|
41
|
-
var first_party_service_DeploymentResourceValidationErrorKind = /* @__PURE__ */ function(DeploymentResourceValidationErrorKind) {
|
|
42
|
-
DeploymentResourceValidationErrorKind["Conflict"] = "Conflict";
|
|
43
|
-
DeploymentResourceValidationErrorKind["ConfigurationError"] = "ConfigurationError";
|
|
44
|
-
return DeploymentResourceValidationErrorKind;
|
|
45
|
-
}({});
|
|
46
|
-
var first_party_service_DeploymentResourceValidationAction = /* @__PURE__ */ function(DeploymentResourceValidationAction) {
|
|
47
|
-
DeploymentResourceValidationAction["RenameExisting"] = "RenameExisting";
|
|
48
|
-
DeploymentResourceValidationAction["RenameInSolution"] = "RenameInSolution";
|
|
49
|
-
DeploymentResourceValidationAction["UseExisting"] = "UseExisting";
|
|
50
|
-
DeploymentResourceValidationAction["FixConfiguration"] = "FixConfiguration";
|
|
51
|
-
DeploymentResourceValidationAction["Delete"] = "Delete";
|
|
52
|
-
DeploymentResourceValidationAction["SkipDelete"] = "SkipDelete";
|
|
53
|
-
DeploymentResourceValidationAction["MergeConfiguration"] = "MergeConfiguration";
|
|
54
|
-
DeploymentResourceValidationAction["Replace"] = "Replace";
|
|
55
|
-
return DeploymentResourceValidationAction;
|
|
56
|
-
}({});
|
|
57
|
-
var first_party_service_ContentType = /* @__PURE__ */ function(ContentType) {
|
|
58
|
-
ContentType["Json"] = "application/json";
|
|
59
|
-
ContentType["JsonApi"] = "application/vnd.api+json";
|
|
60
|
-
ContentType["FormData"] = "multipart/form-data";
|
|
61
|
-
ContentType["UrlEncoded"] = "application/x-www-form-urlencoded";
|
|
62
|
-
ContentType["Text"] = "text/plain";
|
|
63
|
-
return ContentType;
|
|
64
|
-
}({});
|
|
65
|
-
|
|
66
|
-
class HttpClient {
|
|
67
|
-
encodeQueryParam(key, value) {
|
|
68
|
-
const encodedKey = encodeURIComponent(key);
|
|
69
|
-
return `${encodedKey}=${encodeURIComponent(typeof value == "number" ? value : `${value}`)}`;
|
|
70
|
-
}
|
|
71
|
-
addQueryParam(query, key) {
|
|
72
|
-
return this.encodeQueryParam(key, query[key]);
|
|
73
|
-
}
|
|
74
|
-
addArrayQueryParam(query, key) {
|
|
75
|
-
const value = query[key];
|
|
76
|
-
return value.map((v) => this.encodeQueryParam(key, v)).join("&");
|
|
77
|
-
}
|
|
78
|
-
toQueryString(rawQuery) {
|
|
79
|
-
const query = rawQuery || {};
|
|
80
|
-
const keys = Object.keys(query).filter((key) => query[key] !== undefined);
|
|
81
|
-
return keys.map((key) => Array.isArray(query[key]) ? this.addArrayQueryParam(query, key) : this.addQueryParam(query, key)).join("&");
|
|
82
|
-
}
|
|
83
|
-
addQueryParams(rawQuery) {
|
|
84
|
-
const queryString = this.toQueryString(rawQuery);
|
|
85
|
-
return queryString ? `?${queryString}` : "";
|
|
86
|
-
}
|
|
87
|
-
mergeRequestParams(params1, params2) {
|
|
88
|
-
return {
|
|
89
|
-
...this.baseApiParams,
|
|
90
|
-
...params1,
|
|
91
|
-
...params2 || {},
|
|
92
|
-
headers: {
|
|
93
|
-
...this.baseApiParams.headers || {},
|
|
94
|
-
...params1.headers || {},
|
|
95
|
-
...params2 && params2.headers || {}
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
constructor(apiConfig = {}) {
|
|
100
|
-
this.baseUrl = "https://localhost:7008";
|
|
101
|
-
this.securityData = null;
|
|
102
|
-
this.abortControllers = new Map;
|
|
103
|
-
this.customFetch = (...fetchParams) => fetch(...fetchParams);
|
|
104
|
-
this.baseApiParams = {
|
|
105
|
-
credentials: "same-origin",
|
|
106
|
-
headers: {},
|
|
107
|
-
redirect: "follow",
|
|
108
|
-
referrerPolicy: "no-referrer"
|
|
109
|
-
};
|
|
110
|
-
this.setSecurityData = (data) => {
|
|
111
|
-
this.securityData = data;
|
|
112
|
-
};
|
|
113
|
-
this.contentFormatters = {
|
|
114
|
-
["application/json"]: (input) => input !== null && (typeof input == "object" || typeof input == "string") ? JSON.stringify(input) : input,
|
|
115
|
-
["application/vnd.api+json"]: (input) => input !== null && (typeof input == "object" || typeof input == "string") ? JSON.stringify(input) : input,
|
|
116
|
-
["text/plain"]: (input) => input !== null && typeof input != "string" ? JSON.stringify(input) : input,
|
|
117
|
-
["multipart/form-data"]: (input) => {
|
|
118
|
-
if (input instanceof FormData)
|
|
119
|
-
return input;
|
|
120
|
-
return Object.keys(input || {}).reduce((formData, key) => {
|
|
121
|
-
const property = input[key];
|
|
122
|
-
formData.append(key, property instanceof Blob ? property : typeof property == "object" && property !== null ? JSON.stringify(property) : `${property}`);
|
|
123
|
-
return formData;
|
|
124
|
-
}, new FormData);
|
|
125
|
-
},
|
|
126
|
-
["application/x-www-form-urlencoded"]: (input) => this.toQueryString(input)
|
|
127
|
-
};
|
|
128
|
-
this.createAbortSignal = (cancelToken) => {
|
|
129
|
-
if (this.abortControllers.has(cancelToken)) {
|
|
130
|
-
const abortController2 = this.abortControllers.get(cancelToken);
|
|
131
|
-
if (abortController2)
|
|
132
|
-
return abortController2.signal;
|
|
133
|
-
return;
|
|
134
|
-
}
|
|
135
|
-
const abortController = new AbortController;
|
|
136
|
-
this.abortControllers.set(cancelToken, abortController);
|
|
137
|
-
return abortController.signal;
|
|
138
|
-
};
|
|
139
|
-
this.abortRequest = (cancelToken) => {
|
|
140
|
-
const abortController = this.abortControllers.get(cancelToken);
|
|
141
|
-
if (abortController) {
|
|
142
|
-
abortController.abort();
|
|
143
|
-
this.abortControllers.delete(cancelToken);
|
|
144
|
-
}
|
|
145
|
-
};
|
|
146
|
-
this.request = async ({ body, secure, path, type, query, format, baseUrl, cancelToken, ...params }) => {
|
|
147
|
-
const secureParams = (typeof secure == "boolean" ? secure : this.baseApiParams.secure) && this.securityWorker && await this.securityWorker(this.securityData) || {};
|
|
148
|
-
const requestParams = this.mergeRequestParams(params, secureParams);
|
|
149
|
-
const queryString = query && this.toQueryString(query);
|
|
150
|
-
const payloadFormatter = this.contentFormatters[type || "application/json"];
|
|
151
|
-
const responseFormat = format || requestParams.format;
|
|
152
|
-
return this.customFetch(`${baseUrl || this.baseUrl || ""}${path}${queryString ? `?${queryString}` : ""}`, {
|
|
153
|
-
...requestParams,
|
|
154
|
-
headers: {
|
|
155
|
-
...requestParams.headers || {},
|
|
156
|
-
...type && type !== "multipart/form-data" ? {
|
|
157
|
-
"Content-Type": type
|
|
158
|
-
} : {}
|
|
159
|
-
},
|
|
160
|
-
signal: (cancelToken ? this.createAbortSignal(cancelToken) : requestParams.signal) || null,
|
|
161
|
-
body: body == null ? null : payloadFormatter(body)
|
|
162
|
-
}).then(async (response) => {
|
|
163
|
-
const r = response;
|
|
164
|
-
r.data = null;
|
|
165
|
-
r.error = null;
|
|
166
|
-
const responseToParse = responseFormat ? response.clone() : response;
|
|
167
|
-
const data = responseFormat ? await responseToParse[responseFormat]().then((data2) => {
|
|
168
|
-
if (r.ok)
|
|
169
|
-
r.data = data2;
|
|
170
|
-
else
|
|
171
|
-
r.error = data2;
|
|
172
|
-
return r;
|
|
173
|
-
}).catch((e) => {
|
|
174
|
-
r.error = e;
|
|
175
|
-
return r;
|
|
176
|
-
}) : r;
|
|
177
|
-
if (cancelToken)
|
|
178
|
-
this.abortControllers.delete(cancelToken);
|
|
179
|
-
if (!response.ok)
|
|
180
|
-
throw data;
|
|
181
|
-
return data.data;
|
|
182
|
-
});
|
|
183
|
-
};
|
|
184
|
-
Object.assign(this, apiConfig);
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
class FirstPartyServiceApi extends HttpClient {
|
|
189
|
-
constructor(...args) {
|
|
190
|
-
super(...args), this.v2 = {
|
|
191
|
-
automationSolutionsGetMetadata: (params = {}) => this.request({
|
|
192
|
-
path: "/v2/automationsolutions/metadata",
|
|
193
|
-
method: "GET",
|
|
194
|
-
...params
|
|
195
|
-
}),
|
|
196
|
-
automationSolutionsHeadMetadata: (params = {}) => this.request({
|
|
197
|
-
path: "/v2/automationsolutions/metadata",
|
|
198
|
-
method: "HEAD",
|
|
199
|
-
...params
|
|
200
|
-
}),
|
|
201
|
-
automationSolutionsSetState: (data, query, params = {}) => this.request({
|
|
202
|
-
path: "/v2/automationsolutions",
|
|
203
|
-
method: "PATCH",
|
|
204
|
-
query,
|
|
205
|
-
body: data,
|
|
206
|
-
type: "application/json",
|
|
207
|
-
...params
|
|
208
|
-
}),
|
|
209
|
-
automationSolutionsInstall: (data, query, params = {}) => this.request({
|
|
210
|
-
path: "/v2/automationsolutions",
|
|
211
|
-
method: "PUT",
|
|
212
|
-
query,
|
|
213
|
-
body: data,
|
|
214
|
-
format: "json",
|
|
215
|
-
...params
|
|
216
|
-
}),
|
|
217
|
-
automationSolutionsUninstall: (data, query, params = {}) => this.request({
|
|
218
|
-
path: "/v2/automationsolutions",
|
|
219
|
-
method: "DELETE",
|
|
220
|
-
query,
|
|
221
|
-
body: data,
|
|
222
|
-
type: "application/json",
|
|
223
|
-
format: "json",
|
|
224
|
-
...params
|
|
225
|
-
}),
|
|
226
|
-
automationSolutionsExport: (data, params = {}) => this.request({
|
|
227
|
-
path: "/v2/automationsolutions/export",
|
|
228
|
-
method: "POST",
|
|
229
|
-
body: data,
|
|
230
|
-
type: "application/json",
|
|
231
|
-
format: "json",
|
|
232
|
-
...params
|
|
233
|
-
}),
|
|
234
|
-
automationSolutionsGetTranslations: (query, params = {}) => this.request({
|
|
235
|
-
path: "/v2/automationsolutions/translations",
|
|
236
|
-
method: "GET",
|
|
237
|
-
query,
|
|
238
|
-
format: "json",
|
|
239
|
-
...params
|
|
240
|
-
}),
|
|
241
|
-
automationSolutionsValidate: (data, query, params = {}) => this.request({
|
|
242
|
-
path: "/v2/automationsolutions/validate",
|
|
243
|
-
method: "POST",
|
|
244
|
-
query,
|
|
245
|
-
body: data,
|
|
246
|
-
type: "application/json",
|
|
247
|
-
format: "json",
|
|
248
|
-
...params
|
|
249
|
-
}),
|
|
250
|
-
automationSolutionsLookup: (query, params = {}) => this.request({
|
|
251
|
-
path: "/v2/automationsolutions/lookup",
|
|
252
|
-
method: "GET",
|
|
253
|
-
query,
|
|
254
|
-
format: "json",
|
|
255
|
-
...params
|
|
256
|
-
})
|
|
257
|
-
};
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
export { first_party_service_DeploymentAction, first_party_service_SolutionDeploymentAction, first_party_service_SolutionStatus, first_party_service_QueryOptions, first_party_service_DeploymentResourceValidationErrorLevel, first_party_service_DeploymentResourceValidationErrorKind, first_party_service_DeploymentResourceValidationAction, first_party_service_ContentType, HttpClient, FirstPartyServiceApi };
|
|
261
|
-
|
|
262
|
-
//# debugId=AC88CC622210E15664756E2164756E21
|