@uipath/solution-tool 1.201.0-preview.115 → 1.201.0-preview.121
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/deploy.js +6 -4
- package/dist/index.js +12 -9
- package/dist/init.d.ts +6 -8
- package/dist/init.js +5 -4
- package/dist/list-kbscmb2k.js +378 -0
- package/dist/pack.js +5 -4
- package/dist/{packager-tool-9x8dbxbn.js → packager-tool-112c30jx.js} +177 -110
- package/dist/{packager-tool-arbagkf2.js → packager-tool-550smwcc.js} +423 -1652
- package/dist/{packager-tool-85x8cje1.js → packager-tool-67ssxgph.js} +1 -1
- package/dist/{packager-tool-c84z58bt.js → packager-tool-95fz7yd0.js} +10 -6
- package/dist/{packager-tool-r9n45rjm.js → packager-tool-bcpknnr8.js} +2526 -6655
- package/dist/packager-tool-fzwxq48d.js +4225 -0
- package/dist/{packager-tool-ngh4qwjv.js → packager-tool-krd5v2r5.js} +6 -4
- package/dist/{packager-tool-y35nbbkm.js → packager-tool-nkgvv7yh.js} +13 -8
- package/dist/{packager-tool-n49qbf8m.js → packager-tool-v33bpncw.js} +80 -16
- package/dist/packager-tool-va301fjh.js +1477 -0
- package/dist/packager-tool-yktm4v4r.js +67 -0
- package/dist/publish.js +6 -4
- package/dist/resource.d.ts +2 -3
- package/dist/resource.js +4 -3
- package/dist/services/deployment-search.d.ts +1 -1
- package/dist/tool.js +12 -9
- package/package.json +2 -2
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import {
|
|
2
|
+
catchError,
|
|
3
|
+
getAuthContext
|
|
4
|
+
} from "./packager-tool-bcpknnr8.js";
|
|
5
|
+
|
|
6
|
+
// src/services/studio-web-auth-middleware.ts
|
|
7
|
+
var studioWebAuthByCommand = new WeakMap;
|
|
8
|
+
function useStudioWebAuth(command, options = {}) {
|
|
9
|
+
const { shouldResolve, ...authOptions } = options;
|
|
10
|
+
return command.hook("preAction", async (thisCommand, actionCommand) => {
|
|
11
|
+
if (shouldResolve && !shouldResolve(thisCommand, actionCommand)) {
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
const commandOptions = actionCommand.opts();
|
|
15
|
+
const [error, auth] = await catchError(resolveStudioWebAuthContext({
|
|
16
|
+
...authOptions,
|
|
17
|
+
loginValidity: commandOptions.loginValidity,
|
|
18
|
+
tenant: commandOptions.tenant
|
|
19
|
+
}));
|
|
20
|
+
studioWebAuthByCommand.set(actionCommand, error ? { error } : { auth });
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
function getStudioWebAuth(command) {
|
|
24
|
+
const state = studioWebAuthByCommand.get(command);
|
|
25
|
+
if (!state) {
|
|
26
|
+
throw new Error("Studio Web auth middleware was not registered for this command.");
|
|
27
|
+
}
|
|
28
|
+
if (state.error) {
|
|
29
|
+
throw state.error;
|
|
30
|
+
}
|
|
31
|
+
return state.auth;
|
|
32
|
+
}
|
|
33
|
+
function getStudioWebAuthWithOrganizationId(command) {
|
|
34
|
+
const auth = getStudioWebAuth(command);
|
|
35
|
+
if (!auth.organizationId) {
|
|
36
|
+
throw new Error("Organization ID not available. Ensure you are logged in with an organization context.");
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
...auth,
|
|
40
|
+
organizationId: auth.organizationId
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
async function resolveStudioWebAuthContext(options) {
|
|
44
|
+
if (Number.isNaN(options.loginValidity)) {
|
|
45
|
+
throw new Error(`Invalid --login-validity value: ${options.loginValidity}`);
|
|
46
|
+
}
|
|
47
|
+
const ctx = await getAuthContext({
|
|
48
|
+
tenant: options.tenant,
|
|
49
|
+
ensureTokenValidityMinutes: options.loginValidity,
|
|
50
|
+
requireOrganizationId: options.requireOrganizationId,
|
|
51
|
+
requireOrganizationName: options.requireOrganizationName,
|
|
52
|
+
requireTenantId: options.requireTenantId,
|
|
53
|
+
requireTenantName: options.requireTenantName
|
|
54
|
+
});
|
|
55
|
+
return {
|
|
56
|
+
accessToken: ctx.accessToken,
|
|
57
|
+
baseUrl: ctx.baseUrl,
|
|
58
|
+
organizationId: ctx.organizationId,
|
|
59
|
+
organizationName: ctx.organizationName,
|
|
60
|
+
tenantId: ctx.tenantId,
|
|
61
|
+
tenantName: ctx.tenantName
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export { useStudioWebAuth, getStudioWebAuth, getStudioWebAuthWithOrganizationId };
|
|
66
|
+
|
|
67
|
+
//# debugId=704B27897C03B52964756E2164756E21
|
package/dist/publish.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
publishSolutionAsync
|
|
3
|
-
} from "./packager-tool-
|
|
4
|
-
import"./packager-tool-
|
|
5
|
-
import"./packager-tool-
|
|
3
|
+
} from "./packager-tool-95fz7yd0.js";
|
|
4
|
+
import"./packager-tool-va301fjh.js";
|
|
5
|
+
import"./packager-tool-550smwcc.js";
|
|
6
|
+
import"./packager-tool-fzwxq48d.js";
|
|
7
|
+
import"./packager-tool-bcpknnr8.js";
|
|
6
8
|
import"./packager-tool-9qecd4wb.js";
|
|
7
9
|
import"./packager-tool-7eva0peq.js";
|
|
8
10
|
import"./packager-tool-5arsyj36.js";
|
|
@@ -12,4 +14,4 @@ export {
|
|
|
12
14
|
publishSolutionAsync
|
|
13
15
|
};
|
|
14
16
|
|
|
15
|
-
//# debugId=
|
|
17
|
+
//# debugId=DA463E68D9A9E64264756E2164756E21
|
package/dist/resource.d.ts
CHANGED
|
@@ -3,9 +3,8 @@
|
|
|
3
3
|
* SDK consumers (the VS Code extension's deploy/upload prep). Returns a tagged
|
|
4
4
|
* `ResourceRefreshResult`. Mirrors `./init` / `./pack` / `./publish` / `./deploy`.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* entry or its exports breaks it with no compile error.
|
|
6
|
+
* Peer tools do not go through here — they import the engine straight from
|
|
7
|
+
* `@uipath/solution-sdk/resources`, which is where it lives.
|
|
9
8
|
*/
|
|
10
9
|
export type { ResourceRefreshFailure, ResourceRefreshFailureReason, ResourceRefreshOptions, ResourceRefreshResult, ResourceRefreshSuccess, } from "@uipath/solution-sdk/resources";
|
|
11
10
|
export { resourceRefreshAsync } from "@uipath/solution-sdk/resources";
|
package/dist/resource.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resourceRefreshAsync
|
|
3
|
-
} from "./packager-tool-
|
|
3
|
+
} from "./packager-tool-krd5v2r5.js";
|
|
4
4
|
import"./packager-tool-vpr77gre.js";
|
|
5
|
-
import"./packager-tool-
|
|
5
|
+
import"./packager-tool-fzwxq48d.js";
|
|
6
|
+
import"./packager-tool-bcpknnr8.js";
|
|
6
7
|
import"./packager-tool-9qecd4wb.js";
|
|
7
8
|
import"./packager-tool-7eva0peq.js";
|
|
8
9
|
import"./packager-tool-5arsyj36.js";
|
|
@@ -12,4 +13,4 @@ export {
|
|
|
12
13
|
resourceRefreshAsync
|
|
13
14
|
};
|
|
14
15
|
|
|
15
|
-
//# debugId=
|
|
16
|
+
//# debugId=EF371AE5DDFD388A64756E2164756E21
|
|
@@ -8,7 +8,7 @@ import type { DeploymentOperationStatus, DeploymentSearchItemDto2, InitOverrideF
|
|
|
8
8
|
* Throws on transport / server errors. Use {@link findDeploymentBestEffort}
|
|
9
9
|
* when you want a best-effort lookup that swallows failures.
|
|
10
10
|
*/
|
|
11
|
-
export declare function findDeploymentByName(auth: SolutionAuthContext, deploymentName: string): Promise<DeploymentSearchItemDto2 | undefined>;
|
|
11
|
+
export declare function findDeploymentByName(auth: SolutionAuthContext, deploymentName: string, scope?: InitOverrideFunction): Promise<DeploymentSearchItemDto2 | undefined>;
|
|
12
12
|
/**
|
|
13
13
|
* Best-effort lookup of the deployment that blocks a redeploy of `packageName`.
|
|
14
14
|
* Pages `searchSearchDeployments22` by substring like {@link findDeploymentByName},
|
package/dist/tool.js
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
metadata,
|
|
3
3
|
registerCommands
|
|
4
|
-
} from "./packager-tool-
|
|
5
|
-
import"./packager-tool-
|
|
6
|
-
import"./packager-tool-
|
|
7
|
-
import"./packager-tool-
|
|
4
|
+
} from "./packager-tool-112c30jx.js";
|
|
5
|
+
import"./packager-tool-yktm4v4r.js";
|
|
6
|
+
import"./packager-tool-v33bpncw.js";
|
|
7
|
+
import"./packager-tool-67ssxgph.js";
|
|
8
|
+
import"./packager-tool-nkgvv7yh.js";
|
|
8
9
|
import"./packager-tool-9vehmnke.js";
|
|
9
|
-
import"./packager-tool-
|
|
10
|
-
import"./packager-tool-
|
|
11
|
-
import"./packager-tool-
|
|
10
|
+
import"./packager-tool-95fz7yd0.js";
|
|
11
|
+
import"./packager-tool-va301fjh.js";
|
|
12
|
+
import"./packager-tool-550smwcc.js";
|
|
13
|
+
import"./packager-tool-krd5v2r5.js";
|
|
12
14
|
import"./packager-tool-vpr77gre.js";
|
|
13
|
-
import"./packager-tool-
|
|
15
|
+
import"./packager-tool-fzwxq48d.js";
|
|
16
|
+
import"./packager-tool-bcpknnr8.js";
|
|
14
17
|
import"./packager-tool-9qecd4wb.js";
|
|
15
18
|
import"./packager-tool-7eva0peq.js";
|
|
16
19
|
import"./packager-tool-5arsyj36.js";
|
|
@@ -21,4 +24,4 @@ export {
|
|
|
21
24
|
metadata
|
|
22
25
|
};
|
|
23
26
|
|
|
24
|
-
//# debugId=
|
|
27
|
+
//# debugId=DF4E0430A569A00964756E2164756E21
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/solution-tool",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "1.201.0-preview.
|
|
4
|
+
"version": "1.201.0-preview.121",
|
|
5
5
|
"description": "Create, pack, publish, and deploy UiPath Automation Solutions.",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"dist"
|
|
48
48
|
],
|
|
49
49
|
"private": false,
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "c70ccfc0b12e637441d67df1d212b71d7784b5f8"
|
|
51
51
|
}
|