@uipath/vertical-solutions-tool 1.206.0-preview.289 → 1.206.0-preview.292
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-service-ygm2vshj.js → deploy-service-qjtmndt2.js} +7 -7
- package/dist/{deployment-search-z47mfq65.js → deployment-search-dkyknay0.js} +3 -3
- package/dist/{index-1kp6ff3e.js → index-mc2ssajr.js} +2 -2
- package/dist/index.js +2 -2
- package/dist/{job-commands-pcm2kgdn.js → job-commands-78hxyn16.js} +2 -2
- package/dist/{resume-service-kkdtkv8m.js → resume-service-0ewym6qb.js} +43 -18
- package/dist/{seed-service-vkc9jqbt.js → seed-service-s4g2ahx7.js} +111 -39
- package/dist/{service-errors-va9zkx5c.js → service-errors-d676wjbq.js} +2 -2
- package/dist/{solution-deployments-n988mzka.js → solution-deployments-rhbtxgvp.js} +1 -1
- package/dist/{templates-1hnft0re.js → templates-e6e63pp8.js} +1 -1
- package/dist/{tool-677fbvpr.js → tool-0s7qk6sd.js} +1 -1
- package/dist/{tool-vzyrptnq.js → tool-1nt064np.js} +1 -1
- package/dist/{tool-0dtjjcrs.js → tool-3sfryx36.js} +1 -1
- package/dist/{tool-74nk0wy7.js → tool-7mv4vfwf.js} +61 -29
- package/dist/{tool-sk983vwn.js → tool-b1kvqt6c.js} +15 -15
- package/dist/{tool-rtszgma4.js → tool-fe49q8ky.js} +2 -1
- package/dist/{tool-behqwe32.js → tool-namz7fy0.js} +1 -1
- package/dist/{tool-10pepzve.js → tool-wmcj8yqy.js} +3 -3
- package/dist/{tool-9ma60ffy.js → tool-zzaymeh8.js} +22 -2
- package/dist/tool.js +2 -2
- package/dist/{watch-job-61egp025.js → watch-job-k8ey05fg.js} +3 -3
- package/package.json +2 -2
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
failure,
|
|
28
28
|
missingOption,
|
|
29
29
|
invalidOption
|
|
30
|
-
} from "./tool-
|
|
30
|
+
} from "./tool-fe49q8ky.js";
|
|
31
31
|
import {
|
|
32
32
|
writeProgress2,
|
|
33
33
|
writeWarning2,
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
normalizeVersions,
|
|
43
43
|
getManifest,
|
|
44
44
|
listAllFolders
|
|
45
|
-
} from "./tool-
|
|
45
|
+
} from "./tool-zzaymeh8.js";
|
|
46
46
|
import {
|
|
47
47
|
SolutionDeploymentsError2,
|
|
48
48
|
newestDeployment2,
|
|
@@ -50,10 +50,10 @@ import {
|
|
|
50
50
|
isInstalledDeployment2,
|
|
51
51
|
listDeploymentsNamed2,
|
|
52
52
|
solutionNameFromManifest2
|
|
53
|
-
} from "./tool-
|
|
53
|
+
} from "./tool-wmcj8yqy.js";
|
|
54
54
|
import {
|
|
55
55
|
toDeployFailure2
|
|
56
|
-
} from "./tool-
|
|
56
|
+
} from "./tool-0s7qk6sd.js";
|
|
57
57
|
import {
|
|
58
58
|
describePauseKind,
|
|
59
59
|
pauseInstructions,
|
|
@@ -61,17 +61,17 @@ import {
|
|
|
61
61
|
rejectSeedWithoutWait,
|
|
62
62
|
finalizeSucceededJob,
|
|
63
63
|
stoppedWatching
|
|
64
|
-
} from "./tool-
|
|
64
|
+
} from "./tool-7mv4vfwf.js";
|
|
65
65
|
import {
|
|
66
66
|
withCapacityRetry,
|
|
67
67
|
watchOptionsFrom2,
|
|
68
68
|
watchDeployJob2
|
|
69
|
-
} from "./tool-
|
|
69
|
+
} from "./tool-1nt064np.js";
|
|
70
70
|
import {
|
|
71
71
|
rejectBlankOptions,
|
|
72
72
|
readServiceUrl2,
|
|
73
73
|
credentialsFailure2
|
|
74
|
-
} from "./tool-
|
|
74
|
+
} from "./tool-namz7fy0.js";
|
|
75
75
|
import {
|
|
76
76
|
createVssConfig
|
|
77
77
|
} from "./tool-79txfskd.js";
|
|
@@ -2354,7 +2354,7 @@ var package_default2 = {
|
|
|
2354
2354
|
name: "@uipath/solution-sdk",
|
|
2355
2355
|
author: "UiPath",
|
|
2356
2356
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
2357
|
-
version: "1.206.0-preview.
|
|
2357
|
+
version: "1.206.0-preview.292",
|
|
2358
2358
|
repository: {
|
|
2359
2359
|
type: "git",
|
|
2360
2360
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -2419,7 +2419,7 @@ var package_default2 = {
|
|
|
2419
2419
|
"@uipath/filesystem": "workspace:*",
|
|
2420
2420
|
"@uipath/orchestrator-sdk": "workspace:*",
|
|
2421
2421
|
"@uipath/pipelines-sdk": "workspace:*",
|
|
2422
|
-
"@uipath/resource-builder-sdk": "
|
|
2422
|
+
"@uipath/resource-builder-sdk": "2026.11.0-alpha0531-4969",
|
|
2423
2423
|
"@uipath/solutionpackager-tool-core": "workspace:*",
|
|
2424
2424
|
"@uipath/studioweb-sdk": "workspace:*",
|
|
2425
2425
|
"@types/node": "^25.5.2",
|
|
@@ -2651,4 +2651,4 @@ export {
|
|
|
2651
2651
|
searchDeploymentsPage
|
|
2652
2652
|
};
|
|
2653
2653
|
|
|
2654
|
-
//# debugId=
|
|
2654
|
+
//# debugId=9114339A4840F54264756E2164756E21
|
|
@@ -538,7 +538,7 @@ var package_default = {
|
|
|
538
538
|
name: "@uipath/integrationservice-sdk",
|
|
539
539
|
author: "UiPath",
|
|
540
540
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
541
|
-
version: "1.206.0-preview.
|
|
541
|
+
version: "1.206.0-preview.292",
|
|
542
542
|
repository: {
|
|
543
543
|
type: "git",
|
|
544
544
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -6410,4 +6410,4 @@ export {
|
|
|
6410
6410
|
normalizeConnectionStatus
|
|
6411
6411
|
};
|
|
6412
6412
|
|
|
6413
|
-
//# debugId=
|
|
6413
|
+
//# debugId=2DF71835A646542864756E2164756E21
|
package/dist/index.js
CHANGED
|
@@ -6,11 +6,11 @@ import"./tool-4g168x1b.js";
|
|
|
6
6
|
import {
|
|
7
7
|
metadata2,
|
|
8
8
|
registerCommands2
|
|
9
|
-
} from "./tool-
|
|
9
|
+
} from "./tool-b1kvqt6c.js";
|
|
10
10
|
import"./tool-rdw16anj.js";
|
|
11
11
|
import"./tool-g0kkseyf.js";
|
|
12
12
|
import"./tool-f0jjp878.js";
|
|
13
|
-
import"./tool-
|
|
13
|
+
import"./tool-fe49q8ky.js";
|
|
14
14
|
|
|
15
15
|
// src/index.ts
|
|
16
16
|
var program = new Command;
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
credentialsFailure2,
|
|
5
5
|
exitIfCallerAborted2,
|
|
6
6
|
emitFailure2
|
|
7
|
-
} from "./tool-
|
|
7
|
+
} from "./tool-namz7fy0.js";
|
|
8
8
|
import"./tool-79txfskd.js";
|
|
9
9
|
import"./tool-rdw16anj.js";
|
|
10
|
-
import"./tool-
|
|
10
|
+
import"./tool-fe49q8ky.js";
|
|
11
11
|
import"./tool-xvdr2bbv.js";
|
|
12
12
|
export {
|
|
13
13
|
credentialsFailure2 as credentialsFailure,
|
|
@@ -11,12 +11,13 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
getManifest,
|
|
13
13
|
packageDir,
|
|
14
|
-
readSeedContext
|
|
15
|
-
|
|
14
|
+
readSeedContext,
|
|
15
|
+
dataFabricScope
|
|
16
|
+
} from "./tool-zzaymeh8.js";
|
|
16
17
|
import"./tool-rdw16anj.js";
|
|
17
18
|
import {
|
|
18
19
|
failure
|
|
19
|
-
} from "./tool-
|
|
20
|
+
} from "./tool-fe49q8ky.js";
|
|
20
21
|
import {
|
|
21
22
|
writeProgress2,
|
|
22
23
|
writeWarning2,
|
|
@@ -27,7 +28,7 @@ import {
|
|
|
27
28
|
rejectBlankOptions,
|
|
28
29
|
readServiceUrl2,
|
|
29
30
|
credentialsFailure2
|
|
30
|
-
} from "./tool-
|
|
31
|
+
} from "./tool-namz7fy0.js";
|
|
31
32
|
import {
|
|
32
33
|
describePauseKind,
|
|
33
34
|
pauseInstructions,
|
|
@@ -35,6 +36,7 @@ import {
|
|
|
35
36
|
pauseErrorCode,
|
|
36
37
|
namedJob,
|
|
37
38
|
FOLDER_SCOPE_UNKNOWN_NOTE,
|
|
39
|
+
INVALID_SCOPE_NOTE,
|
|
38
40
|
FOLDER_PLACEHOLDER,
|
|
39
41
|
seedCommandFor,
|
|
40
42
|
seedYesFlag,
|
|
@@ -44,17 +46,17 @@ import {
|
|
|
44
46
|
prepareWorkspaceWithoutManifest,
|
|
45
47
|
finalizeSucceededJob,
|
|
46
48
|
stoppedWatching
|
|
47
|
-
} from "./tool-
|
|
49
|
+
} from "./tool-7mv4vfwf.js";
|
|
48
50
|
import {
|
|
49
51
|
finishedJobConflict2,
|
|
50
52
|
knownJobStatus2,
|
|
51
53
|
toDeployFailure2
|
|
52
|
-
} from "./tool-
|
|
54
|
+
} from "./tool-0s7qk6sd.js";
|
|
53
55
|
import {
|
|
54
56
|
withCapacityRetry,
|
|
55
57
|
watchOptionsFrom2,
|
|
56
58
|
watchDeployJob2
|
|
57
|
-
} from "./tool-
|
|
59
|
+
} from "./tool-1nt064np.js";
|
|
58
60
|
import {
|
|
59
61
|
createVssConfig
|
|
60
62
|
} from "./tool-79txfskd.js";
|
|
@@ -74,11 +76,14 @@ async function finishedJobSeedAdvice(config, finished, options) {
|
|
|
74
76
|
return "The job carries no package name or version, so the workspace for it cannot be " + "named. Seed it with: uip vss deploy seed --package-name <name> " + `--package-version <version>${routingFlags(options)}${seedYesFlag(options)}`;
|
|
75
77
|
}
|
|
76
78
|
const scope = await finishedJobSeedScope(config, job, options.signal);
|
|
77
|
-
const [stateError, state] = await catchError(() => workspaceState(job, scope.
|
|
79
|
+
const [stateError, state] = await catchError(() => workspaceState(job, scope.comparesFolders));
|
|
78
80
|
if (state?.kind === "linked") {
|
|
79
81
|
const hint = linkedOutHint(job, scope.folderKey, options, state.target, scope.flag);
|
|
80
82
|
return `${state.message} ${hint}${scope.note}`;
|
|
81
83
|
}
|
|
84
|
+
if (state?.kind === "stale" && state.otherInstall === true && scope.tenantLevel === true && job.installedFolderKey !== undefined) {
|
|
85
|
+
return otherInstallWithheld(state.recordedFolderKey, job, options);
|
|
86
|
+
}
|
|
82
87
|
const unread = stateError === undefined ? "" : ` The seed workspace could not be read (${stateError.message}), so whether it holds` + " this install's files is unknown: check it, or add --refresh to replace them.";
|
|
83
88
|
const command = seedCommandFor(job, scope.folderKey, options) + scope.flag + (state?.kind === "stale" ? " --refresh" : "") + seedYesFlag(options) + scope.note + folderDoubt(scope, state, job) + unread;
|
|
84
89
|
if (state?.kind === "file") {
|
|
@@ -86,6 +91,11 @@ async function finishedJobSeedAdvice(config, finished, options) {
|
|
|
86
91
|
}
|
|
87
92
|
return `Seed on its own with: ${command}`;
|
|
88
93
|
}
|
|
94
|
+
function otherInstallWithheld(recordedFolderKey, job, options) {
|
|
95
|
+
const dir = packageDir(job.packageName);
|
|
96
|
+
const installed = String(job.installedFolderKey);
|
|
97
|
+
return `The seed workspace ${dir} was filled in for the install in folder ` + `${String(recordedFolderKey)}, but this job installed into folder ${installed}. The ` + "package's Data Fabric entities are tenant-level, and its %{Solution...}% cells resolve " + "against the folder the workspace records, so a seed now would write the other " + "install's resource ids into any cell that names the solution. No seed command is " + `offered: set "folderKey" in ${dir}/.seed-context.json to ${installed}, then run ` + `${seedCommandFor(job, undefined, options)}${seedYesFlag(options)} without --refresh.`;
|
|
98
|
+
}
|
|
89
99
|
function folderDoubt(scope, state, job) {
|
|
90
100
|
if (state?.kind !== "current")
|
|
91
101
|
return "";
|
|
@@ -107,26 +117,40 @@ async function finishedJobSeedScope(config, job, signal) {
|
|
|
107
117
|
folderKey: undefined,
|
|
108
118
|
flag: "",
|
|
109
119
|
note: FOLDER_SCOPE_UNKNOWN_NOTE,
|
|
110
|
-
tenantLevel: undefined
|
|
120
|
+
tenantLevel: undefined,
|
|
121
|
+
comparesFolders: false
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
const scope = dataFabricScope(manifest);
|
|
125
|
+
if (scope.kind === "invalid") {
|
|
126
|
+
return {
|
|
127
|
+
folderKey: undefined,
|
|
128
|
+
flag: "",
|
|
129
|
+
note: INVALID_SCOPE_NOTE,
|
|
130
|
+
tenantLevel: undefined,
|
|
131
|
+
comparesFolders: false
|
|
111
132
|
};
|
|
112
133
|
}
|
|
113
|
-
const tenantLevel =
|
|
134
|
+
const tenantLevel = scope.kind === "tenant";
|
|
135
|
+
const comparesFolders = !tenantLevel || scope.declared;
|
|
114
136
|
if (!job.installedFolderKey) {
|
|
115
137
|
return {
|
|
116
138
|
folderKey: undefined,
|
|
117
139
|
flag: tenantLevel ? "" : FOLDER_PLACEHOLDER,
|
|
118
140
|
note: "",
|
|
119
|
-
tenantLevel
|
|
141
|
+
tenantLevel,
|
|
142
|
+
comparesFolders
|
|
120
143
|
};
|
|
121
144
|
}
|
|
122
145
|
return {
|
|
123
146
|
folderKey: tenantLevel ? undefined : job.installedFolderKey,
|
|
124
147
|
flag: "",
|
|
125
148
|
note: "",
|
|
126
|
-
tenantLevel
|
|
149
|
+
tenantLevel,
|
|
150
|
+
comparesFolders
|
|
127
151
|
};
|
|
128
152
|
}
|
|
129
|
-
async function workspaceState(job,
|
|
153
|
+
async function workspaceState(job, comparesFolders) {
|
|
130
154
|
const linked = await linkedOutWorkspace(job.packageName);
|
|
131
155
|
if (linked)
|
|
132
156
|
return { kind: "linked", ...linked };
|
|
@@ -137,11 +161,12 @@ async function workspaceState(job, tenantLevel) {
|
|
|
137
161
|
if (!stats.isDirectory())
|
|
138
162
|
return { kind: "file", dir };
|
|
139
163
|
const context = await readSeedContext(dir);
|
|
140
|
-
const sameFolder =
|
|
141
|
-
const
|
|
164
|
+
const sameFolder = !comparesFolders || job.installedFolderKey === undefined || !context?.folderKey || context.folderKey.toLowerCase() === job.installedFolderKey.toLowerCase();
|
|
165
|
+
const sameVersion = context?.packageName.trim().toLowerCase() === job.packageName.trim().toLowerCase() && context.packageVersion === job.packageVersion;
|
|
142
166
|
return {
|
|
143
|
-
kind:
|
|
144
|
-
...context?.folderKey ? { recordedFolderKey: context.folderKey } : {}
|
|
167
|
+
kind: sameVersion && sameFolder ? "current" : "stale",
|
|
168
|
+
...context?.folderKey ? { recordedFolderKey: context.folderKey } : {},
|
|
169
|
+
...sameVersion && !sameFolder ? { otherInstall: true } : {}
|
|
145
170
|
};
|
|
146
171
|
}
|
|
147
172
|
|
|
@@ -334,4 +359,4 @@ export {
|
|
|
334
359
|
runResume
|
|
335
360
|
};
|
|
336
361
|
|
|
337
|
-
//# debugId=
|
|
362
|
+
//# debugId=16DC84AD1D93570364756E2164756E21
|
|
@@ -25,6 +25,7 @@ import {
|
|
|
25
25
|
writeSeedContext,
|
|
26
26
|
removeSeedContext,
|
|
27
27
|
readSeedContext,
|
|
28
|
+
dataFabricScope,
|
|
28
29
|
BatchResponseSchema,
|
|
29
30
|
WrittenRecordSchema,
|
|
30
31
|
FailureRecordSchema,
|
|
@@ -39,13 +40,13 @@ import {
|
|
|
39
40
|
buildEntityPlan,
|
|
40
41
|
withOptionalClears,
|
|
41
42
|
readSeedFile
|
|
42
|
-
} from "./tool-
|
|
43
|
+
} from "./tool-zzaymeh8.js";
|
|
43
44
|
import"./tool-zy3q6qnn.js";
|
|
44
45
|
import"./tool-rdw16anj.js";
|
|
45
46
|
import {
|
|
46
47
|
failure,
|
|
47
48
|
invalidOption
|
|
48
|
-
} from "./tool-
|
|
49
|
+
} from "./tool-fe49q8ky.js";
|
|
49
50
|
import {
|
|
50
51
|
writeProgress2,
|
|
51
52
|
writeWarning2,
|
|
@@ -60,20 +61,20 @@ import {
|
|
|
60
61
|
isDotSegment,
|
|
61
62
|
segmentNameProblem,
|
|
62
63
|
refreshSeedTemplates2
|
|
63
|
-
} from "./tool-
|
|
64
|
+
} from "./tool-3sfryx36.js";
|
|
64
65
|
import {
|
|
65
66
|
solutionNameFromManifest2,
|
|
66
67
|
resolveInstalledFolder2,
|
|
67
68
|
listDeploymentsOfSolution2
|
|
68
|
-
} from "./tool-
|
|
69
|
+
} from "./tool-wmcj8yqy.js";
|
|
69
70
|
import {
|
|
70
71
|
rejectBlankOptions,
|
|
71
72
|
readServiceUrl2
|
|
72
|
-
} from "./tool-
|
|
73
|
+
} from "./tool-namz7fy0.js";
|
|
73
74
|
import"./tool-f0jjp878.js";
|
|
74
75
|
import {
|
|
75
76
|
toDeployFailure2
|
|
76
|
-
} from "./tool-
|
|
77
|
+
} from "./tool-0s7qk6sd.js";
|
|
77
78
|
import {
|
|
78
79
|
isLoopbackHost,
|
|
79
80
|
createVssConfig
|
|
@@ -106,7 +107,11 @@ function checkContextTenant(context, config, options) {
|
|
|
106
107
|
}
|
|
107
108
|
return;
|
|
108
109
|
}
|
|
109
|
-
|
|
110
|
+
const deployedTo = `${context.organizationName ?? context.organizationId ?? "?"} / ${context.tenantName ?? context.tenantId ?? "?"}`;
|
|
111
|
+
return failure("invalid-option", `This seed workspace was written by a deploy into ${deployedTo}, not the ` + `organization and tenant you are logged in to (${config.organizationName ?? "?"} / ` + `${config.tenantName ?? "?"}).`, `Log in to ${deployedTo} with ${loginCommand(context, sameOrg && sameOrgName)}, then ` + "run the same command again. A folder-scoped package can instead be seeded into " + "this tenant on purpose with --folder-key <guid> or --folder-path <path>; a package " + 'whose manifest declares dataFabric.scope "tenant" refuses both.', { result: RESULTS.ValidationError });
|
|
112
|
+
}
|
|
113
|
+
function loginCommand(context, sameOrg) {
|
|
114
|
+
return sameOrg && context.tenantName ? `uip login tenant set ${shellQuote(context.tenantName)}` : "uip login";
|
|
110
115
|
}
|
|
111
116
|
function sameId(recorded, live) {
|
|
112
117
|
return !recorded || !live || recorded === live;
|
|
@@ -118,20 +123,55 @@ function comparable(recorded, live) {
|
|
|
118
123
|
return Boolean(recorded) && Boolean(live);
|
|
119
124
|
}
|
|
120
125
|
|
|
126
|
+
// src/services/seed-run/retry-command.ts
|
|
127
|
+
function seedRetryCommand(options) {
|
|
128
|
+
const flag = (name, value) => value === undefined ? "" : ` ${name} ${shellQuote(value)}`;
|
|
129
|
+
return "uip vss deploy seed" + flag("--dir", options.dir) + flag("--package-name", options.packageName) + flag("--package-version", options.packageVersion) + flag("--folder-key", options.folderKey) + flag("--folder-path", options.folderPath) + routingFlags(options) + (options.yes === true ? " --yes" : "");
|
|
130
|
+
}
|
|
131
|
+
|
|
121
132
|
// src/services/seed-run/folder-scope.ts
|
|
122
|
-
async function resolveFolderKey(config, manifest, context, options, explicitFolder) {
|
|
133
|
+
async function resolveFolderKey(config, manifest, context, options, explicitFolder, workspaceDir = ".") {
|
|
123
134
|
if (explicitFolder !== undefined) {
|
|
124
|
-
return {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
135
|
+
return {
|
|
136
|
+
ok: true,
|
|
137
|
+
folderKey: explicitFolder,
|
|
138
|
+
solutionFolderKey: explicitFolder
|
|
139
|
+
};
|
|
128
140
|
}
|
|
129
141
|
const deployed = context?.packageVersion === options.packageVersion ? context : undefined;
|
|
142
|
+
const scope = dataFabricScope(manifest);
|
|
143
|
+
if (scope.kind === "tenant") {
|
|
144
|
+
if (!scope.declared)
|
|
145
|
+
return { ok: true, folderKey: undefined };
|
|
146
|
+
const bound = options.deployedInstall;
|
|
147
|
+
if (bound === undefined) {
|
|
148
|
+
return {
|
|
149
|
+
ok: true,
|
|
150
|
+
folderKey: undefined,
|
|
151
|
+
...deployed?.folderKey ? { solutionFolderKey: deployed.folderKey } : {}
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
const installed = bound.folderKey;
|
|
155
|
+
const recorded = deployed?.folderKey || undefined;
|
|
156
|
+
if (recorded !== undefined && recorded.toLowerCase() !== installed?.toLowerCase()) {
|
|
157
|
+
return claimedByOtherInstall(recorded, installed, options, workspaceDir);
|
|
158
|
+
}
|
|
159
|
+
return {
|
|
160
|
+
ok: true,
|
|
161
|
+
folderKey: undefined,
|
|
162
|
+
...installed ? { solutionFolderKey: installed } : {}
|
|
163
|
+
};
|
|
164
|
+
}
|
|
130
165
|
if (deployed?.folderKey) {
|
|
131
166
|
writeProgress2("Scoping Data Fabric calls to the solution folder recorded at deploy time (from the seed context).");
|
|
132
|
-
return {
|
|
167
|
+
return {
|
|
168
|
+
ok: true,
|
|
169
|
+
folderKey: deployed.folderKey,
|
|
170
|
+
solutionFolderKey: deployed.folderKey
|
|
171
|
+
};
|
|
133
172
|
}
|
|
134
|
-
|
|
173
|
+
const installed = await resolveInstalledFolderKey(config, manifest, deployed, options);
|
|
174
|
+
return installed.ok ? { ...installed, solutionFolderKey: installed.folderKey } : installed;
|
|
135
175
|
}
|
|
136
176
|
async function resolveInstalledFolderKey(config, manifest, context, options) {
|
|
137
177
|
const solutionName = solutionNameFromManifest2(manifest);
|
|
@@ -162,10 +202,25 @@ async function resolveInstalledFolderKey(config, manifest, context, options) {
|
|
|
162
202
|
}
|
|
163
203
|
return needsFolderKey(`No installed deployment was found for solution "${solutionName}".`);
|
|
164
204
|
}
|
|
165
|
-
function
|
|
166
|
-
|
|
205
|
+
function checkSeedScope(manifest, options, packageName) {
|
|
206
|
+
const scope = dataFabricScope(manifest);
|
|
207
|
+
if (scope.kind === "invalid") {
|
|
208
|
+
return failure("invalid-option", `The manifest of ${packageName} declares dataFabric.scope "${scope.value}", ` + 'which is neither "tenant" nor "folder", so nothing was seeded.', `Fix dataFabric.scope in the package's manifest.json to "tenant" or "folder" ` + "and publish the package again.", {
|
|
209
|
+
result: RESULTS.ValidationError,
|
|
210
|
+
errorCode: "invalid_argument",
|
|
211
|
+
retry: "RetryWillNotFix"
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
if (scope.kind !== "tenant")
|
|
167
215
|
return;
|
|
216
|
+
if (scope.declared) {
|
|
217
|
+
const flag = options.folderPath !== undefined ? "--folder-path" : options.folderKey !== undefined ? "--folder-key" : undefined;
|
|
218
|
+
if (flag === undefined)
|
|
219
|
+
return;
|
|
220
|
+
return invalidSeedOption(`${flag} cannot be used with ${packageName}: its Data Fabric entities are ` + 'tenant-level (the manifest declares dataFabric.scope "tenant"), not inside a folder.', `Drop ${flag} to seed the tenant-level entities.`);
|
|
168
221
|
}
|
|
222
|
+
if (options.folderPath === undefined)
|
|
223
|
+
return;
|
|
169
224
|
return invalidSeedOption(`--folder-path cannot be used with ${packageName}: its ` + "Data Fabric entities are tenant-level (the manifest declares dataFabric.schemaFilename), " + "not inside a solution folder.", "Drop --folder-path to seed the tenant-level entities. To scope the run into a folder " + "on purpose, pass that folder's key with --folder-key <guid>.");
|
|
170
225
|
}
|
|
171
226
|
async function explicitFolderKey(config, options) {
|
|
@@ -202,19 +257,18 @@ function invalidSeedOption(message, instructions) {
|
|
|
202
257
|
function needsFolderKey(why) {
|
|
203
258
|
return failure("missing-option", `The folder to seed into could not be determined. ${why}`, "Pass --folder-key <guid> with the key of the folder the solution installed into (the " + "Solution folder under the deploy target in Orchestrator), or re-deploy the package — a " + "deploy records the folder in the seed context.", { result: RESULTS.ValidationError, errorCode: "invalid_argument" });
|
|
204
259
|
}
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
return "uip vss deploy seed" + flag("--dir", options.dir) + flag("--package-name", options.packageName) + flag("--package-version", options.packageVersion) + flag("--folder-key", options.folderKey) + flag("--folder-path", options.folderPath) + routingFlags(options) + (options.yes === true ? " --yes" : "");
|
|
260
|
+
function claimedByOtherInstall(recordedFolderKey, installedFolderKey, options, workspaceDir) {
|
|
261
|
+
const thisInstall = installedFolderKey === undefined ? "this deploy's install folder is not known" : `this deploy installed into folder ${installedFolderKey}`;
|
|
262
|
+
const target = installedFolderKey ?? "the key of the folder this deploy installed into (the Solution folder under the " + "deploy target in Orchestrator)";
|
|
263
|
+
return failure("other-install", `Not seeding: the seed workspace records folder ${recordedFolderKey}, another install ` + `of this version, and ${thisInstall}. The package's %{Solution...}% cells would ` + "name the other install's resources.", `Set "folderKey" in ${workspaceDir}/.seed-context.json to ${target}, or leave it ` + `as it is to seed the other install, then run: ${seedRetryCommand(options)}`);
|
|
210
264
|
}
|
|
211
265
|
|
|
212
266
|
// src/services/seed-run/refresh.ts
|
|
213
267
|
async function refreshAndScope(input) {
|
|
214
268
|
const { config, context, packageName, packageVersion, options } = input;
|
|
215
|
-
const
|
|
216
|
-
if (
|
|
217
|
-
return
|
|
269
|
+
const refused = checkSeedScope(input.manifest, options, packageName);
|
|
270
|
+
if (refused)
|
|
271
|
+
return refused;
|
|
218
272
|
const explicit = await explicitFolderKey(config, {
|
|
219
273
|
...options,
|
|
220
274
|
packageVersion
|
|
@@ -225,7 +279,7 @@ async function refreshAndScope(input) {
|
|
|
225
279
|
const refreshed = await refreshIfAsked({ ...input, explicitFolder });
|
|
226
280
|
if (!refreshed.ok)
|
|
227
281
|
return refreshed;
|
|
228
|
-
const scope = await resolveFolderKey(config, input.manifest, context, { ...options, packageVersion }, explicitFolder);
|
|
282
|
+
const scope = await resolveFolderKey(config, input.manifest, context, { ...options, packageVersion }, explicitFolder, input.workspaceDir);
|
|
229
283
|
const folderKey = scope.ok ? scope.folderKey : undefined;
|
|
230
284
|
if (!refreshed.refreshed && folderKey !== undefined) {
|
|
231
285
|
warnIfFilledForAnotherFolder(context?.folderKey, folderKey);
|
|
@@ -244,7 +298,7 @@ async function refreshAndScope(input) {
|
|
|
244
298
|
tenantName: config.tenantName,
|
|
245
299
|
folderKey: sameInstall ? folderKey ?? context?.folderKey : folderKey,
|
|
246
300
|
...sameInstall && context?.deploymentName !== undefined ? { deploymentName: context.deploymentName } : {}
|
|
247
|
-
},
|
|
301
|
+
}, dataFabricScope(input.manifest));
|
|
248
302
|
}
|
|
249
303
|
return scope;
|
|
250
304
|
}
|
|
@@ -295,7 +349,7 @@ function oldTemplatesKept(packageName, packageVersion, context) {
|
|
|
295
349
|
function noWorkspaceCreated(packageName, packageVersion) {
|
|
296
350
|
return failure("service-error", `Could not create the seed workspace for ${packageName} ${packageVersion}: ` + "the seed templates could not be downloaded or written.", RETRY_AFTER_FIXING, { errorCode: "server_error", retry: "RetryLater" });
|
|
297
351
|
}
|
|
298
|
-
async function recordRefreshedContext(workspaceDir, options, context,
|
|
352
|
+
async function recordRefreshedContext(workspaceDir, options, context, scope) {
|
|
299
353
|
const [error] = await catchError(writeSeedContext(context, workspaceDir));
|
|
300
354
|
if (!error) {
|
|
301
355
|
writeProgress2(`Recorded ${context.packageName} ${context.packageVersion} in .seed-context.json.`);
|
|
@@ -303,7 +357,7 @@ async function recordRefreshedContext(workspaceDir, options, context, tenantLeve
|
|
|
303
357
|
}
|
|
304
358
|
const [removeError] = await catchError(removeSeedContext(workspaceDir));
|
|
305
359
|
const stale = removeError ? ` The previous .seed-context.json could not be removed either (${removeError.message}), ` + "so do not run 'uip vss deploy seed' without arguments." : "";
|
|
306
|
-
const again = `uip vss deploy seed --package-name ${shellQuote(context.packageName)}` + ` --package-version ${shellQuote(context.packageVersion)}` + (isDefaultWorkspace(workspaceDir, context.packageName) ? "" : ` --dir ${shellQuote(workspaceDir)}`) + folderAdvice(context.folderKey,
|
|
360
|
+
const again = `uip vss deploy seed --package-name ${shellQuote(context.packageName)}` + ` --package-version ${shellQuote(context.packageVersion)}` + (isDefaultWorkspace(workspaceDir, context.packageName) ? "" : ` --dir ${shellQuote(workspaceDir)}`) + folderAdvice(context.folderKey, scope) + routingFlags(options) + (options.yes === true ? " --yes" : "") + " --refresh";
|
|
307
361
|
writeWarning2(`Could not update .seed-context.json: ${error.message}.${stale} The workspace holds ` + `${context.packageName} ${context.packageVersion}'s templates, not yet filled in. ` + `Fix that, then run: ${again} — before you fill the CSVs in, since --refresh ` + "replaces them. A run without it refuses these files as an unknown version.");
|
|
308
362
|
}
|
|
309
363
|
function isDefaultWorkspace(workspaceDir, packageName) {
|
|
@@ -312,10 +366,12 @@ function isDefaultWorkspace(workspaceDir, packageName) {
|
|
|
312
366
|
return false;
|
|
313
367
|
return fs.path.resolve(workspaceDir) === fs.path.resolve(packageDir(packageName));
|
|
314
368
|
}
|
|
315
|
-
function folderAdvice(folderKey,
|
|
369
|
+
function folderAdvice(folderKey, scope) {
|
|
370
|
+
if (scope.kind === "tenant" && scope.declared)
|
|
371
|
+
return "";
|
|
316
372
|
if (folderKey)
|
|
317
373
|
return ` --folder-key ${shellQuote(folderKey)}`;
|
|
318
|
-
return
|
|
374
|
+
return scope.kind === "tenant" ? "" : " --folder-key <key>";
|
|
319
375
|
}
|
|
320
376
|
async function refreshTemplates(input, fallback) {
|
|
321
377
|
const [error, download] = await catchError(downloadSeedTemplates2(input.config, input.packageName, input.packageVersion, input.options.signal));
|
|
@@ -455,7 +511,7 @@ async function readConnections(config, folderKey, signal) {
|
|
|
455
511
|
createConnectionsConfig,
|
|
456
512
|
folderOverride,
|
|
457
513
|
normalizeConnectionStatus
|
|
458
|
-
} = await import("./index-
|
|
514
|
+
} = await import("./index-mc2ssajr.js");
|
|
459
515
|
const api = new ConnectionsApi(await createConnectionsConfig({ tenant: config.tenantName }));
|
|
460
516
|
const scoped = folderOverride(folderKey);
|
|
461
517
|
const connections = [];
|
|
@@ -903,7 +959,7 @@ function buildExpressionContext(input, lookup, solution) {
|
|
|
903
959
|
tenantId: input.config.tenantId,
|
|
904
960
|
tenantName: input.config.tenantName,
|
|
905
961
|
folderKey: input.folderKey,
|
|
906
|
-
solutionFolderKey: input.folderKey,
|
|
962
|
+
solutionFolderKey: input.solutionFolderKey ?? input.folderKey,
|
|
907
963
|
solutionFolderPath: solution.folderPath,
|
|
908
964
|
solutionFolderId: textOf(folder?.id),
|
|
909
965
|
solutionParentFolderId: textOf(folder?.parentId),
|
|
@@ -1732,6 +1788,7 @@ async function connectSeedSdk(input) {
|
|
|
1732
1788
|
return { ok: true, sdk };
|
|
1733
1789
|
}
|
|
1734
1790
|
var SOLUTION_RESOURCE = /%\{\s*(?:Solution\.(?!Folder(?:Path|Key)\s*\}%)|UIPATH_FOLDER_ID\s*\}%)/;
|
|
1791
|
+
var ANY_SOLUTION_EXPRESSION = /%\{\s*(?:Solution\.|UIPATH_FOLDER_(?:ID|PATH)\s*\}%)/;
|
|
1735
1792
|
var SOLUTION_COLLECTION = /%\{\s*Solution\.(Processes|Assets|StorageBuckets|Connections)\[/g;
|
|
1736
1793
|
function namedCollections(files) {
|
|
1737
1794
|
const wanted = new Set;
|
|
@@ -1745,12 +1802,17 @@ function namedCollections(files) {
|
|
|
1745
1802
|
return wanted;
|
|
1746
1803
|
}
|
|
1747
1804
|
async function readSolution(input, read) {
|
|
1748
|
-
|
|
1805
|
+
const solutionFolderKey = solutionFolderOf(input);
|
|
1806
|
+
if (solutionFolderKey === undefined) {
|
|
1807
|
+
if (isDeclaredTenant(input) && read.files.some((file) => ANY_SOLUTION_EXPRESSION.test(file.csv))) {
|
|
1808
|
+
writeWarning2("The seed files name the solution's resources (%{Solution...}%), but the " + "folder the solution installed into is not known, so those cells are left " + `empty. Set "folderKey" in .seed-context.json to that folder's key (the ` + "Solution folder under the deploy target in Orchestrator), then seed again.");
|
|
1809
|
+
}
|
|
1749
1810
|
return {};
|
|
1811
|
+
}
|
|
1750
1812
|
if (!read.files.some((file) => SOLUTION_RESOURCE.test(file.csv))) {
|
|
1751
1813
|
return { folderPath: await findSolutionFolderPath(input) };
|
|
1752
1814
|
}
|
|
1753
|
-
const resources = await readSolutionResources(input.config,
|
|
1815
|
+
const resources = await readSolutionResources(input.config, solutionFolderKey, namedCollections(read.files), input.options.signal);
|
|
1754
1816
|
for (const warning of resources.warnings)
|
|
1755
1817
|
writeWarning2(warning);
|
|
1756
1818
|
return {
|
|
@@ -1758,12 +1820,20 @@ async function readSolution(input, read) {
|
|
|
1758
1820
|
resources
|
|
1759
1821
|
};
|
|
1760
1822
|
}
|
|
1823
|
+
function solutionFolderOf(input) {
|
|
1824
|
+
return input.solutionFolderKey ?? input.folderKey;
|
|
1825
|
+
}
|
|
1761
1826
|
async function findSolutionFolderPath(input) {
|
|
1762
|
-
|
|
1827
|
+
const solutionFolderKey = solutionFolderOf(input);
|
|
1828
|
+
if (solutionFolderKey === undefined)
|
|
1763
1829
|
return;
|
|
1764
|
-
const [, path] = await catchError(findFolderPath(input.config,
|
|
1830
|
+
const [, path] = await catchError(findFolderPath(input.config, solutionFolderKey, input.options.signal));
|
|
1765
1831
|
return path;
|
|
1766
1832
|
}
|
|
1833
|
+
function isDeclaredTenant(input) {
|
|
1834
|
+
const scope = dataFabricScope(input.manifest);
|
|
1835
|
+
return scope.kind === "tenant" && scope.declared;
|
|
1836
|
+
}
|
|
1767
1837
|
function printSeedTarget(input, read, solutionFolderPath) {
|
|
1768
1838
|
const fs = getFileSystem2();
|
|
1769
1839
|
const scope = input.folderKey ? `solution folder ${solutionFolderPath ?? input.folderKey}` : "tenant-level entities";
|
|
@@ -1781,8 +1851,9 @@ Seeding workspace: ${fs.path.resolve(input.workspaceDir)}`);
|
|
|
1781
1851
|
async function resolveLiveSchema(input, sdk, files) {
|
|
1782
1852
|
const where = input.folderKey ? `folder scope ${input.folderKey}` : "the tenant-level schema";
|
|
1783
1853
|
const [lookupError, lookup] = await catchError(loadLiveEntities(sdk, input.folderKey));
|
|
1854
|
+
const declaredTenant = isDeclaredTenant(input);
|
|
1784
1855
|
if (lookupError || !lookup) {
|
|
1785
|
-
return failure("service-error", `Could not read the Data Fabric schema: ${lookupError?.message ?? "unknown error"}`, input.folderKey === undefined ? "If the package provisions its entities inside the solution folder, pass --folder-key." : "Check that --folder-key names the folder the solution was installed into.");
|
|
1856
|
+
return failure("service-error", `Could not read the Data Fabric schema: ${lookupError?.message ?? "unknown error"}`, declaredTenant ? 'The manifest declares dataFabric.scope "tenant", so the entities are read at ' + "tenant level. Check that this login can read the tenant's Data Fabric " + "entities (a tenant role with Data Fabric read access), then run the same command again." : input.folderKey === undefined ? "If the package provisions its entities inside the solution folder, pass --folder-key." : "Check that --folder-key names the folder the solution was installed into.");
|
|
1786
1857
|
}
|
|
1787
1858
|
const entityFor = (file) => lookup.byName.get(file.entityName.toLowerCase());
|
|
1788
1859
|
const federated = files.filter((file) => entityFor(file)?.isFederated === true).map((file) => file.entityName);
|
|
@@ -1795,7 +1866,7 @@ async function resolveLiveSchema(input, sdk, files) {
|
|
|
1795
1866
|
});
|
|
1796
1867
|
const missing = files.filter((file) => entityFor(file) === undefined).map((file) => file.entityName);
|
|
1797
1868
|
if (present.length === 0) {
|
|
1798
|
-
return failure("service-error", `None of the seeding entities exist in ${where}: ${missing.join(", ")}.`, input.folderKey === undefined ? "New-structure packages provision entities inside the installed solution folder. " + "Re-deploy the package (the deploy records the folder in .seed-context.json) " + "or pass --folder-key <guid>." : `Folder ${input.folderKey} shows none of these entities to this login. Either the ` + "solution installed elsewhere — it installs into its own child folder under the " + "target; check 'uip solution deploy list' for the installed folder — or this login " + "has no role in that folder: an external application needs a folder role with " + "Data Fabric permissions there (the built-in Automation User role is enough).");
|
|
1869
|
+
return failure("service-error", `None of the seeding entities exist in ${where}: ${missing.join(", ")}.`, declaredTenant ? 'The manifest declares dataFabric.scope "tenant", so they are looked for at ' + `tenant level in ${input.config.tenantName ?? "this tenant"}. Check that the ` + "deploy created them there and that this login can see tenant-level Data " + "Fabric entities. If they live inside the solution folder instead, the package's " + "manifest has the wrong scope: fix it and publish the package again." : input.folderKey === undefined ? "New-structure packages provision entities inside the installed solution folder. " + "Re-deploy the package (the deploy records the folder in .seed-context.json) " + "or pass --folder-key <guid>." : `Folder ${input.folderKey} shows none of these entities to this login. Either the ` + "solution installed elsewhere — it installs into its own child folder under the " + "target; check 'uip solution deploy list' for the installed folder — or this login " + "has no role in that folder: an external application needs a folder role with " + "Data Fabric permissions there (the built-in Automation User role is enough).");
|
|
1799
1870
|
}
|
|
1800
1871
|
if (missing.length > 0) {
|
|
1801
1872
|
writeWarning2(`Skipping entities missing from ${where}: ${missing.join(", ")}`);
|
|
@@ -1936,6 +2007,7 @@ async function runSeedLocked(options, deps, located) {
|
|
|
1936
2007
|
entityNames,
|
|
1937
2008
|
workspaceDir,
|
|
1938
2009
|
folderKey: scope.folderKey,
|
|
2010
|
+
solutionFolderKey: scope.solutionFolderKey,
|
|
1939
2011
|
options,
|
|
1940
2012
|
deps,
|
|
1941
2013
|
pickedWorkspace: located.picked === true
|
|
@@ -2000,4 +2072,4 @@ export {
|
|
|
2000
2072
|
runSeed
|
|
2001
2073
|
};
|
|
2002
2074
|
|
|
2003
|
-
//# debugId=
|
|
2075
|
+
//# debugId=F508304C04D20A4D64756E2164756E21
|
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
finishedJobConflict2,
|
|
3
3
|
knownJobStatus2,
|
|
4
4
|
toDeployFailure2
|
|
5
|
-
} from "./tool-
|
|
5
|
+
} from "./tool-0s7qk6sd.js";
|
|
6
6
|
import"./tool-zy3q6qnn.js";
|
|
7
|
-
import"./tool-
|
|
7
|
+
import"./tool-fe49q8ky.js";
|
|
8
8
|
import"./tool-f0jjp878.js";
|
|
9
9
|
import"./tool-xvdr2bbv.js";
|
|
10
10
|
export {
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
failure,
|
|
9
9
|
invalidOption
|
|
10
|
-
} from "./tool-
|
|
10
|
+
} from "./tool-fe49q8ky.js";
|
|
11
11
|
import {
|
|
12
12
|
writeProgress2,
|
|
13
13
|
writeWarning2
|
|
@@ -21,9 +21,12 @@ import {
|
|
|
21
21
|
insideSeedRoot,
|
|
22
22
|
acquireSeedWorkspaceLock,
|
|
23
23
|
removeSeedContext,
|
|
24
|
+
readSeedContext,
|
|
25
|
+
dataFabricScope,
|
|
26
|
+
isTenantLevel,
|
|
24
27
|
readStrategy,
|
|
25
28
|
readSeedFile
|
|
26
|
-
} from "./tool-
|
|
29
|
+
} from "./tool-zzaymeh8.js";
|
|
27
30
|
import {
|
|
28
31
|
shellQuote,
|
|
29
32
|
routingFlags
|
|
@@ -62,6 +65,7 @@ function namedJob(job) {
|
|
|
62
65
|
return { ...job, packageName, packageVersion };
|
|
63
66
|
}
|
|
64
67
|
var FOLDER_SCOPE_UNKNOWN_NOTE = ". Pass --folder-key <key of the folder the solution installed into> only if " + "the package's entities are folder-scoped.";
|
|
68
|
+
var INVALID_SCOPE_NOTE = `. The package's manifest declares a dataFabric.scope that is neither "tenant" ` + 'nor "folder", so that seed is refused until the package is fixed and published again.';
|
|
65
69
|
var FOLDER_PLACEHOLDER = " --folder-key <key of the folder the solution installed into>";
|
|
66
70
|
function seedCommandFor(job, folderKey, routing, unknownFolder) {
|
|
67
71
|
return seedCommand(job, folderKey, routing, undefined, unknownFolder);
|
|
@@ -92,17 +96,18 @@ function linkedOutHint(job, installedFolderKey, options, target, folderFlag = ""
|
|
|
92
96
|
function deploymentNameOf(input) {
|
|
93
97
|
return input.job.deploymentName ?? input.deploymentName;
|
|
94
98
|
}
|
|
95
|
-
async function prepareSeedWorkspace(input, installedFolderKey, folderUnknown = false, folderAdvice = FOLDER_PLACEHOLDER) {
|
|
99
|
+
async function prepareSeedWorkspace(input, installedFolderKey, folderUnknown = false, folderAdvice = FOLDER_PLACEHOLDER, tenantLevel = false, boundToInstall = false) {
|
|
96
100
|
const { job, options } = input;
|
|
97
101
|
const showPlaceholder = folderUnknown && folderAdvice === FOLDER_PLACEHOLDER;
|
|
98
102
|
const folder = showPlaceholder ? FOLDER_PLACEHOLDER : "";
|
|
99
|
-
const commandKey = folderUnknown ? undefined : installedFolderKey;
|
|
103
|
+
const commandKey = folderUnknown || tenantLevel ? undefined : installedFolderKey;
|
|
100
104
|
const base = seedCommandFor(job, commandKey, options, showPlaceholder);
|
|
101
|
-
const
|
|
102
|
-
const usable = await usableWorkspaceDir(input, commandKey,
|
|
105
|
+
const command = `${base} --refresh${seedYesFlag(options)}`;
|
|
106
|
+
const usable = await usableWorkspaceDir(input, commandKey, command, folder);
|
|
103
107
|
if (usable.dir === undefined)
|
|
104
108
|
return usable;
|
|
105
109
|
const workspaceDir = usable.dir;
|
|
110
|
+
const retry = boundToInstall ? await notingOtherInstall(job, installedFolderKey, command, workspaceDir) : command;
|
|
106
111
|
const fs = getFileSystem2();
|
|
107
112
|
const [mkdirError] = typeof fs.mkdir === "function" ? await catchError(fs.mkdir(workspaceDir)) : [undefined];
|
|
108
113
|
if (mkdirError) {
|
|
@@ -128,6 +133,7 @@ async function prepareSeedWorkspace(input, installedFolderKey, folderUnknown = f
|
|
|
128
133
|
workspaceDir,
|
|
129
134
|
installedFolderKey,
|
|
130
135
|
retry,
|
|
136
|
+
command,
|
|
131
137
|
folder
|
|
132
138
|
});
|
|
133
139
|
} finally {
|
|
@@ -138,7 +144,7 @@ async function writeTemplates(input, target) {
|
|
|
138
144
|
const { job, config, options } = input;
|
|
139
145
|
const { retry } = target;
|
|
140
146
|
const { downloadSeedTemplates } = await import("./seed-templates-j9f3qtkt.js");
|
|
141
|
-
const { refreshSeedTemplates } = await import("./templates-
|
|
147
|
+
const { refreshSeedTemplates } = await import("./templates-e6e63pp8.js");
|
|
142
148
|
const [downloadError, download] = await catchError(downloadSeedTemplates(config, job.packageName, job.packageVersion, options.signal));
|
|
143
149
|
if (downloadError || !download) {
|
|
144
150
|
writeWarning2(`Could not download the seed templates: ${downloadError?.message ?? "unknown error"}. Try again with: ${retry}`);
|
|
@@ -156,17 +162,28 @@ async function writeTemplates(input, target) {
|
|
|
156
162
|
}
|
|
157
163
|
for (const warning of extracted.warnings)
|
|
158
164
|
writeWarning2(warning);
|
|
159
|
-
const recorded = await recordDeployContext(input, target.installedFolderKey, extracted.dir,
|
|
160
|
-
const next = recorded ? `uip vss deploy seed${routingFlags(options)}${target.folder}${seedYesFlag(options)}` :
|
|
165
|
+
const recorded = await recordDeployContext(input, target.installedFolderKey, extracted.dir, target.command);
|
|
166
|
+
const next = recorded ? `uip vss deploy seed${routingFlags(options)}${target.folder}${seedYesFlag(options)}` : target.command;
|
|
161
167
|
const written = `Seed templates: ${extracted.written.length} file(s) written to ${extracted.dir}` + (replacing ? " (previous files replaced)" : "");
|
|
162
168
|
writeProgress2(recorded ? `${written} — fill them in, then run: ${next}` : `${written}. The seed context could not be written, so run ${next} FIRST, before you` + " fill them in — it replaces the files, and without it a later run refuses them" + " as an unknown version.");
|
|
163
169
|
return recorded ? { dir: extracted.dir } : {
|
|
164
170
|
dir: extracted.dir,
|
|
165
|
-
seedHint: `Seed Data Fabric data with: ${
|
|
166
|
-
pushWith:
|
|
171
|
+
seedHint: `Seed Data Fabric data with: ${target.command}`,
|
|
172
|
+
pushWith: target.command,
|
|
167
173
|
refreshFirst: true
|
|
168
174
|
};
|
|
169
175
|
}
|
|
176
|
+
async function notingOtherInstall(job, installedFolderKey, command, workspaceDir) {
|
|
177
|
+
const [error, context] = await catchError(readSeedContext(workspaceDir));
|
|
178
|
+
if (error || !context?.folderKey)
|
|
179
|
+
return command;
|
|
180
|
+
const sameVersion = context.packageName.trim().toLowerCase() === job.packageName.trim().toLowerCase() && context.packageVersion === job.packageVersion;
|
|
181
|
+
if (!sameVersion || context.folderKey.toLowerCase() === installedFolderKey?.toLowerCase()) {
|
|
182
|
+
return command;
|
|
183
|
+
}
|
|
184
|
+
const target = installedFolderKey ?? "the key of the folder this deploy installed into (the Solution folder under the deploy target in Orchestrator)";
|
|
185
|
+
return `set "folderKey" in ${workspaceDir}/.seed-context.json to ${target} (it records folder ${context.folderKey}, another install of this version, and --refresh keeps that folder), check that the refresh succeeds before the seed runs, then run: ` + command;
|
|
186
|
+
}
|
|
170
187
|
async function holdsUserFiles(dir) {
|
|
171
188
|
const [error, entries] = await catchError(getFileSystem2().readdir(dir));
|
|
172
189
|
if (error || !entries)
|
|
@@ -203,7 +220,7 @@ async function linkedOutWorkspace(packageName) {
|
|
|
203
220
|
}
|
|
204
221
|
async function recordDeployContext(input, installedFolderKey, workspaceDir, command) {
|
|
205
222
|
const { job, config } = input;
|
|
206
|
-
const { recordSeedContext } = await import("./seed-service-
|
|
223
|
+
const { recordSeedContext } = await import("./seed-service-s4g2ahx7.js");
|
|
207
224
|
const [contextError] = await catchError(recordSeedContext({
|
|
208
225
|
packageName: job.packageName,
|
|
209
226
|
packageVersion: job.packageVersion,
|
|
@@ -224,24 +241,25 @@ async function recordDeployContext(input, installedFolderKey, workspaceDir, comm
|
|
|
224
241
|
}
|
|
225
242
|
|
|
226
243
|
// src/services/post-deploy/installed-folder.ts
|
|
227
|
-
async function resolveInstalledFolder(input) {
|
|
244
|
+
async function resolveInstalledFolder(input, tenantLevel = false) {
|
|
245
|
+
const found = (key, path) => writeProgress2(tenantLevel ? ` Solution installed in folder ${path ?? key} (${key}); its Data Fabric entities are tenant-level.` : ` Data Fabric entities live in folder ${path ?? key} (${key}).`);
|
|
228
246
|
if (input.job.installedFolderKey) {
|
|
229
247
|
const key = input.job.installedFolderKey;
|
|
230
248
|
const [, path] = await catchError(findFolderPath(input.config, key, input.options.signal));
|
|
231
|
-
|
|
249
|
+
found(key, path);
|
|
232
250
|
return { key, path };
|
|
233
251
|
}
|
|
234
252
|
const {
|
|
235
253
|
listDeploymentsOfSolution,
|
|
236
254
|
resolveInstalledFolder: resolveFromDeployments,
|
|
237
255
|
solutionNameFromManifest
|
|
238
|
-
} = await import("./solution-deployments-
|
|
256
|
+
} = await import("./solution-deployments-rhbtxgvp.js");
|
|
239
257
|
const solutionName = solutionNameFromManifest(input.manifest);
|
|
240
258
|
if (!solutionName)
|
|
241
259
|
return;
|
|
242
260
|
const [listError, deployments] = await catchError(listDeploymentsOfSolution(input.config, solutionName, input.options.signal, deploymentNameOf(input)));
|
|
243
261
|
if (listError || !deployments) {
|
|
244
|
-
writeWarning2(`Could not read the installed solution's folder: ${listError?.message ?? "unknown error"}. Seeding may need --folder-key
|
|
262
|
+
writeWarning2(`Could not read the installed solution's folder: ${listError?.message ?? "unknown error"}. ${tenantLevel ? "Seed cells that name the solution's resources (%{Solution...}%) will be left empty." : "Seeding may need --folder-key."}`);
|
|
245
263
|
return;
|
|
246
264
|
}
|
|
247
265
|
const resolved = resolveFromDeployments({
|
|
@@ -255,7 +273,7 @@ async function resolveInstalledFolder(input) {
|
|
|
255
273
|
return;
|
|
256
274
|
const [, ownPath] = await catchError(findFolderPath(input.config, resolved.folderKey, input.options.signal));
|
|
257
275
|
const path = ownPath ?? undefined;
|
|
258
|
-
|
|
276
|
+
found(resolved.folderKey, path);
|
|
259
277
|
return { key: resolved.folderKey, path };
|
|
260
278
|
}
|
|
261
279
|
|
|
@@ -298,11 +316,11 @@ async function wantsSeeding(options, offer, deps, pushWith, refreshFirst) {
|
|
|
298
316
|
writeProgress2(refreshFirst ? `Skipped. Run ${pushWith} before editing the files under ${offer.workspaceDir} — it replaces them.` : `Skipped. Edit the files under ${offer.workspaceDir}, then push with: ${pushWith}`);
|
|
299
317
|
return false;
|
|
300
318
|
}
|
|
301
|
-
async function runOfferedSeed(input, folderKey, workspaceDir, hint, templatesAreCurrent = false) {
|
|
319
|
+
async function runOfferedSeed(input, folderKey, workspaceDir, hint, templatesAreCurrent = false, deployedInstall) {
|
|
302
320
|
const { job, options, deps } = input;
|
|
303
321
|
const yes = options.seed === true ? options.yes : undefined;
|
|
304
322
|
const retry = seedCommandFor(job, folderKey, options) + (templatesAreCurrent ? " --refresh" : "") + (yes ? " --yes" : "");
|
|
305
|
-
const { runSeed } = await import("./seed-service-
|
|
323
|
+
const { runSeed } = await import("./seed-service-s4g2ahx7.js");
|
|
306
324
|
const [seedError, seeded] = await catchError(runSeed({
|
|
307
325
|
packageName: job.packageName,
|
|
308
326
|
packageVersion: job.packageVersion,
|
|
@@ -312,12 +330,18 @@ async function runOfferedSeed(input, folderKey, workspaceDir, hint, templatesAre
|
|
|
312
330
|
loginValidity: options.loginValidity,
|
|
313
331
|
tenant: options.tenant,
|
|
314
332
|
signal: options.signal,
|
|
315
|
-
...templatesAreCurrent ? { templatesAreCurrent: true } : {}
|
|
333
|
+
...templatesAreCurrent ? { templatesAreCurrent: true } : {},
|
|
334
|
+
...deployedInstall === undefined ? {} : { deployedInstall }
|
|
316
335
|
}, deps.seed));
|
|
317
336
|
if (seedError || !seeded) {
|
|
318
337
|
writeWarning2(`Seeding did not complete: ${seedError instanceof Error ? seedError.message : String(seedError)}. Retry with: ${retry}`);
|
|
319
338
|
return { seedWorkspace: workspaceDir, seedHint: hint };
|
|
320
339
|
}
|
|
340
|
+
if (!seeded.ok && seeded.reason === "other-install") {
|
|
341
|
+
writeWarning2(seeded.message);
|
|
342
|
+
writeWarning2(seeded.instructions);
|
|
343
|
+
return { seedWorkspace: workspaceDir, seedHint: seeded.instructions };
|
|
344
|
+
}
|
|
321
345
|
if (!seeded.ok) {
|
|
322
346
|
writeWarning2(`Seeding did not complete — fix the reported issue, then retry with: ${retry}`);
|
|
323
347
|
if (seeded.instructions)
|
|
@@ -352,9 +376,15 @@ async function finalizeSucceededJob(input) {
|
|
|
352
376
|
const seedingEntities = Object.keys(manifest.dataFabric?.seeding ?? {});
|
|
353
377
|
if (seedingEntities.length === 0)
|
|
354
378
|
return {};
|
|
379
|
+
const scope = dataFabricScope(manifest);
|
|
380
|
+
if (scope.kind === "invalid") {
|
|
381
|
+
return {
|
|
382
|
+
seedHint: "This package seeds Data Fabric data, but its manifest declares " + `dataFabric.scope "${scope.value}", which is neither "tenant" nor "folder", so ` + "no seed workspace was prepared. Fix dataFabric.scope in the package's " + "manifest.json and publish the package again, then seed it."
|
|
383
|
+
};
|
|
384
|
+
}
|
|
355
385
|
const job = namedJob(input.job);
|
|
356
386
|
if (!job) {
|
|
357
|
-
const folder = manifest
|
|
387
|
+
const folder = isTenantLevel(manifest) ? "" : FOLDER_PLACEHOLDER;
|
|
358
388
|
return {
|
|
359
389
|
seedHint: "This package seeds Data Fabric data, but the job the service answered with " + "carries no package name or version, so no seed workspace was prepared. Seed " + "it with: uip vss deploy seed --package-name <name> --package-version <version>" + `${folder}${routingFlags(options)}${seedYesFlag(options)}`
|
|
360
390
|
};
|
|
@@ -366,19 +396,21 @@ async function finalizeSucceededJob(input) {
|
|
|
366
396
|
}
|
|
367
397
|
async function prepareAndOffer(input) {
|
|
368
398
|
const { job, manifest, options } = input;
|
|
369
|
-
const
|
|
370
|
-
const
|
|
399
|
+
const scope = dataFabricScope(manifest);
|
|
400
|
+
const tenantLevel = scope.kind === "tenant";
|
|
401
|
+
const bound = tenantLevel && scope.declared;
|
|
402
|
+
const installed = tenantLevel && !scope.declared ? undefined : await resolveInstalledFolder(input, tenantLevel);
|
|
371
403
|
const folderUnknown = !tenantLevel && !installed;
|
|
372
|
-
const prepared = await prepareSeedWorkspace(input, installed?.key, folderUnknown);
|
|
404
|
+
const prepared = await prepareSeedWorkspace(input, installed?.key, folderUnknown, undefined, tenantLevel, bound);
|
|
373
405
|
const workspaceDir = prepared.dir;
|
|
374
|
-
const
|
|
406
|
+
const folderKey = tenantLevel ? undefined : installed?.key;
|
|
407
|
+
const hint = prepared.seedHint ?? `Seed Data Fabric data with: ${seedCommandFor(job, folderKey, options)}` + (folderUnknown ? FOLDER_PLACEHOLDER : "") + seedYesFlag(options);
|
|
375
408
|
if (workspaceDir === undefined)
|
|
376
409
|
return { seedHint: hint };
|
|
377
410
|
if (folderUnknown) {
|
|
378
411
|
writeWarning2("Not offering to seed: the folder the solution installed into is not known. " + "Find it in Orchestrator (the Solution folder under the deploy target) and pass it as --folder-key.");
|
|
379
412
|
return { seedWorkspace: workspaceDir, seedHint: hint };
|
|
380
413
|
}
|
|
381
|
-
const folderKey = installed?.key;
|
|
382
414
|
const offer = await describeSeedOffer(workspaceDir, manifest, input.config, folderKey, installed?.path);
|
|
383
415
|
const [askError, wanted] = await catchError(wantsSeeding(options, offer, input.deps, prepared.pushWith ?? `uip vss deploy seed${routingFlags(options)}`, prepared.refreshFirst === true));
|
|
384
416
|
if (askError || !wanted) {
|
|
@@ -387,7 +419,7 @@ async function prepareAndOffer(input) {
|
|
|
387
419
|
}
|
|
388
420
|
return { seedWorkspace: workspaceDir, seedHint: hint };
|
|
389
421
|
}
|
|
390
|
-
return runOfferedSeed(input, folderKey, workspaceDir, hint, prepared.pushWith !== undefined);
|
|
422
|
+
return runOfferedSeed(input, folderKey, workspaceDir, hint, prepared.pushWith !== undefined, bound ? { folderKey: installed?.key } : undefined);
|
|
391
423
|
}
|
|
392
424
|
function withholdForUnusableNames(unusable) {
|
|
393
425
|
const names = unusable.map((name) => JSON.stringify(name)).join(", ");
|
|
@@ -427,6 +459,6 @@ function jobStateAtTimeout(job) {
|
|
|
427
459
|
return "The job is still running.";
|
|
428
460
|
}
|
|
429
461
|
|
|
430
|
-
export { describePauseKind, pauseInstructions, pauseRetry, pauseErrorCode, namedJob, FOLDER_SCOPE_UNKNOWN_NOTE, FOLDER_PLACEHOLDER, seedCommandFor, seedYesFlag, rejectSeedWithoutWait, linkedOutHint, linkedOutWorkspace, prepareWorkspaceWithoutManifest, finalizeSucceededJob, stoppedWatching };
|
|
462
|
+
export { describePauseKind, pauseInstructions, pauseRetry, pauseErrorCode, namedJob, FOLDER_SCOPE_UNKNOWN_NOTE, INVALID_SCOPE_NOTE, FOLDER_PLACEHOLDER, seedCommandFor, seedYesFlag, rejectSeedWithoutWait, linkedOutHint, linkedOutWorkspace, prepareWorkspaceWithoutManifest, finalizeSucceededJob, stoppedWatching };
|
|
431
463
|
|
|
432
|
-
//# debugId=
|
|
464
|
+
//# debugId=040D8E63282542D364756E2164756E21
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
} from "./tool-f0jjp878.js";
|
|
33
33
|
import {
|
|
34
34
|
failure
|
|
35
|
-
} from "./tool-
|
|
35
|
+
} from "./tool-fe49q8ky.js";
|
|
36
36
|
import {
|
|
37
37
|
shellQuote,
|
|
38
38
|
routingFlags
|
|
@@ -171,7 +171,7 @@ var package_default = {
|
|
|
171
171
|
name: "@uipath/vertical-solutions-tool",
|
|
172
172
|
author: "UiPath",
|
|
173
173
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
174
|
-
version: "1.206.0-preview.
|
|
174
|
+
version: "1.206.0-preview.292",
|
|
175
175
|
description: "Scaffold, generate and deploy Vertical Solution projects.",
|
|
176
176
|
private: false,
|
|
177
177
|
repository: {
|
|
@@ -5447,7 +5447,7 @@ var CANCEL_EXAMPLES = [
|
|
|
5447
5447
|
}
|
|
5448
5448
|
];
|
|
5449
5449
|
var cancel = async (jobId, options) => {
|
|
5450
|
-
const { emitFailure, exitIfCallerAborted, resolveConfigOrFail } = await import("./job-commands-
|
|
5450
|
+
const { emitFailure, exitIfCallerAborted, resolveConfigOrFail } = await import("./job-commands-78hxyn16.js");
|
|
5451
5451
|
if (options.yes !== true) {
|
|
5452
5452
|
emitFailure(failure("missing-option", `Confirmation is required to cancel deploy job ${forDisplay(jobId)} — steps already applied are not rolled back.`, "Re-run with --yes to confirm.", {
|
|
5453
5453
|
result: RESULTS.ValidationError,
|
|
@@ -5458,12 +5458,12 @@ var cancel = async (jobId, options) => {
|
|
|
5458
5458
|
const config = await resolveConfigOrFail(options);
|
|
5459
5459
|
if (!config)
|
|
5460
5460
|
return;
|
|
5461
|
-
const { requestCancel } = await import("./watch-job-
|
|
5461
|
+
const { requestCancel } = await import("./watch-job-k8ey05fg.js");
|
|
5462
5462
|
const [error, job] = await catchError(requestCancel(config, jobId, processContext.pollSignal));
|
|
5463
5463
|
if (error || !job) {
|
|
5464
5464
|
if (exitIfCallerAborted(error))
|
|
5465
5465
|
return;
|
|
5466
|
-
const { finishedJobConflict, knownJobStatus, toDeployFailure } = await import("./service-errors-
|
|
5466
|
+
const { finishedJobConflict, knownJobStatus, toDeployFailure } = await import("./service-errors-d676wjbq.js");
|
|
5467
5467
|
const finished = finishedJobConflict(error, "cancel");
|
|
5468
5468
|
if (finished) {
|
|
5469
5469
|
const [settleError, settled] = await catchError(settleConflict(config, jobId, knownJobStatus(finished.status), options));
|
|
@@ -5569,9 +5569,9 @@ var RESUME_EXAMPLES = [
|
|
|
5569
5569
|
}
|
|
5570
5570
|
];
|
|
5571
5571
|
var resume = async (jobId, options) => {
|
|
5572
|
-
const { runResume } = await import("./resume-service-
|
|
5572
|
+
const { runResume } = await import("./resume-service-0ewym6qb.js");
|
|
5573
5573
|
const { confirmSeed, createWatchPrompts, seedPrompts } = await import("./prompts-zhmhcp9a.js");
|
|
5574
|
-
const { emitFailure } = await import("./job-commands-
|
|
5574
|
+
const { emitFailure } = await import("./job-commands-78hxyn16.js");
|
|
5575
5575
|
const result = await runResume(jobId, { ...options, signal: processContext.pollSignal }, { watch: createWatchPrompts(), seed: seedPrompts, confirmSeed });
|
|
5576
5576
|
if (!result.ok) {
|
|
5577
5577
|
emitFailure(result);
|
|
@@ -5656,8 +5656,8 @@ var SEED_EXAMPLES = [
|
|
|
5656
5656
|
}
|
|
5657
5657
|
];
|
|
5658
5658
|
var seed = async (options) => {
|
|
5659
|
-
const { runSeed } = await import("./seed-service-
|
|
5660
|
-
const { emitFailure, exitIfCallerAborted } = await import("./job-commands-
|
|
5659
|
+
const { runSeed } = await import("./seed-service-s4g2ahx7.js");
|
|
5660
|
+
const { emitFailure, exitIfCallerAborted } = await import("./job-commands-78hxyn16.js");
|
|
5661
5661
|
const { seedPrompts } = await import("./prompts-zhmhcp9a.js");
|
|
5662
5662
|
const [error, result] = await catchError(runSeed({ ...options, signal: processContext.pollSignal }, seedPrompts));
|
|
5663
5663
|
const stopped = error ?? (result?.ok === false ? result : undefined);
|
|
@@ -5697,7 +5697,7 @@ var seed = async (options) => {
|
|
|
5697
5697
|
});
|
|
5698
5698
|
};
|
|
5699
5699
|
var registerDeploySeedCommand = (program) => {
|
|
5700
|
-
program.command("seed").description("Load Data Fabric records from the local seed workspace. Idempotent: rows an earlier run inserted are journaled and updated rather than duplicated.").option("--package-name <name>", "Package whose seed workspace to use. Defaults to the one the last deploy recorded.").option("--package-version <version>", "Package version whose schema the seed files are validated against. Defaults to the recorded one, which is used only for the package that recorded it. With --package-name, creates a missing seed workspace from that version's templates.").option("--dir <path>", "Folder holding the seed CSVs. Defaults to ./seeding/<package-name>.").option("--folder-path <path>", "Folder scoping the Data Fabric entities, by path (for example Shared/Lending/LoanSetup). Needed when the solution provisions them inside its own folder; refused for a package whose entities are tenant-level.").option("--folder-key <guid>",
|
|
5700
|
+
program.command("seed").description("Load Data Fabric records from the local seed workspace. Idempotent: rows an earlier run inserted are journaled and updated rather than duplicated.").option("--package-name <name>", "Package whose seed workspace to use. Defaults to the one the last deploy recorded.").option("--package-version <version>", "Package version whose schema the seed files are validated against. Defaults to the recorded one, which is used only for the package that recorded it. With --package-name, creates a missing seed workspace from that version's templates.").option("--dir <path>", "Folder holding the seed CSVs. Defaults to ./seeding/<package-name>.").option("--folder-path <path>", "Folder scoping the Data Fabric entities, by path (for example Shared/Lending/LoanSetup). Needed when the solution provisions them inside its own folder; refused for a package whose entities are tenant-level.").option("--folder-key <guid>", 'The same folder by key. Use either this or --folder-path. Refused for a package whose manifest declares dataFabric.scope "tenant".').option("-y, --yes", "Seed every entity without asking (required in a non-interactive terminal)").option("--refresh", "Re-download the seed templates before seeding, preserving the retry journal").addOption(createLoginValidityOption()).addOption(createHiddenServiceUrlOption()).addOption(createHiddenDeprecatedTenantOption()).examples(SEED_EXAMPLES).trackedAction(processContext, seed);
|
|
5701
5701
|
};
|
|
5702
5702
|
|
|
5703
5703
|
// src/commands/deploy-status.ts
|
|
@@ -5719,7 +5719,7 @@ var STATUS_EXAMPLES = [
|
|
|
5719
5719
|
}
|
|
5720
5720
|
];
|
|
5721
5721
|
var status = async (jobId, options) => {
|
|
5722
|
-
const { emitFailure, exitIfCallerAborted, resolveConfigOrFail } = await import("./job-commands-
|
|
5722
|
+
const { emitFailure, exitIfCallerAborted, resolveConfigOrFail } = await import("./job-commands-78hxyn16.js");
|
|
5723
5723
|
const config = await resolveConfigOrFail(options);
|
|
5724
5724
|
if (!config)
|
|
5725
5725
|
return;
|
|
@@ -5729,7 +5729,7 @@ var status = async (jobId, options) => {
|
|
|
5729
5729
|
if (error || !job) {
|
|
5730
5730
|
if (exitIfCallerAborted(error))
|
|
5731
5731
|
return;
|
|
5732
|
-
const { toDeployFailure } = await import("./service-errors-
|
|
5732
|
+
const { toDeployFailure } = await import("./service-errors-d676wjbq.js");
|
|
5733
5733
|
const failure = toDeployFailure(error, `Could not read job ${jobId}`, {
|
|
5734
5734
|
notFound: "job",
|
|
5735
5735
|
jobId,
|
|
@@ -5837,7 +5837,7 @@ var DEPLOY_EXAMPLES = [
|
|
|
5837
5837
|
}
|
|
5838
5838
|
];
|
|
5839
5839
|
var deploy = async (options) => {
|
|
5840
|
-
const { runDeploy } = await import("./deploy-service-
|
|
5840
|
+
const { runDeploy } = await import("./deploy-service-qjtmndt2.js");
|
|
5841
5841
|
const {
|
|
5842
5842
|
configurationPrompts,
|
|
5843
5843
|
confirmProceed,
|
|
@@ -5855,7 +5855,7 @@ var deploy = async (options) => {
|
|
|
5855
5855
|
confirmSeed
|
|
5856
5856
|
});
|
|
5857
5857
|
if (!result.ok) {
|
|
5858
|
-
const { emitFailure } = await import("./job-commands-
|
|
5858
|
+
const { emitFailure } = await import("./job-commands-78hxyn16.js");
|
|
5859
5859
|
emitFailure(result);
|
|
5860
5860
|
return;
|
|
5861
5861
|
}
|
|
@@ -6072,4 +6072,4 @@ var registerCommands2 = async (program) => {
|
|
|
6072
6072
|
|
|
6073
6073
|
export { metadata2, registerCommands2 };
|
|
6074
6074
|
|
|
6075
|
-
//# debugId=
|
|
6075
|
+
//# debugId=7ED997FB50295D4564756E2164756E21
|
|
@@ -17,6 +17,7 @@ var REASON_ENVELOPE = {
|
|
|
17
17
|
"blocked-major-upgrade": v("invalid_argument"),
|
|
18
18
|
"ambiguous-deployment": v("invalid_argument"),
|
|
19
19
|
"name-conflict": v("invalid_argument"),
|
|
20
|
+
"other-install": v("invalid_argument"),
|
|
20
21
|
"tenant-resources-declared": f("invalid_argument"),
|
|
21
22
|
declined: f("unknown_error"),
|
|
22
23
|
"not-entitled": f("permission_denied"),
|
|
@@ -70,4 +71,4 @@ function invalidOption(message, instructions) {
|
|
|
70
71
|
|
|
71
72
|
export { failure, missingOption, invalidOption };
|
|
72
73
|
|
|
73
|
-
//# debugId=
|
|
74
|
+
//# debugId=9E5F4A77108691F764756E2164756E21
|
|
@@ -63,7 +63,7 @@ var DEPLOYMENT_PAGE_SIZE = 100;
|
|
|
63
63
|
var MAX_DEPLOYMENT_PAGES = 100;
|
|
64
64
|
async function listSolutionDeployments(config, signal, packageName) {
|
|
65
65
|
const auth = await solutionAuth(config);
|
|
66
|
-
const { searchDeployments } = await import("./deployment-search-
|
|
66
|
+
const { searchDeployments } = await import("./deployment-search-dkyknay0.js");
|
|
67
67
|
const [error, raw] = await catchError(searchDeployments(auth, {
|
|
68
68
|
orderByColumn: "startTime",
|
|
69
69
|
orderByDirection: "Descending",
|
|
@@ -79,7 +79,7 @@ async function listSolutionDeployments(config, signal, packageName) {
|
|
|
79
79
|
var NAMED_DEPLOYMENT_PAGE_SIZE = 50;
|
|
80
80
|
async function listDeploymentsNamed2(config, name, signal) {
|
|
81
81
|
const auth = await solutionAuth(config);
|
|
82
|
-
const { searchDeploymentsPage } = await import("./deployment-search-
|
|
82
|
+
const { searchDeploymentsPage } = await import("./deployment-search-dkyknay0.js");
|
|
83
83
|
const wanted = name.toLowerCase();
|
|
84
84
|
const readAll = async (filter) => {
|
|
85
85
|
const rows = [];
|
|
@@ -120,7 +120,7 @@ async function toSolutionDeploymentsError(error) {
|
|
|
120
120
|
const {
|
|
121
121
|
DeploymentSearchNeedsUserSessionError,
|
|
122
122
|
DeploymentSearchTruncatedError
|
|
123
|
-
} = await import("./deployment-search-
|
|
123
|
+
} = await import("./deployment-search-dkyknay0.js");
|
|
124
124
|
if (error instanceof DeploymentSearchNeedsUserSessionError) {
|
|
125
125
|
return new SolutionDeploymentsError2("Could not list solution deployments: this tenant's Automation Solutions search reads user logins only, and this login is an application.", "permission_denied", { refusal: "needs-user-session" });
|
|
126
126
|
}
|
|
@@ -191,6 +191,7 @@ var PackageManifestSchema = looseObject({
|
|
|
191
191
|
}).optional().catch(undefined),
|
|
192
192
|
dataFabric: looseObject({
|
|
193
193
|
schemaFilename: unknown().optional(),
|
|
194
|
+
scope: unknown().optional(),
|
|
194
195
|
seeding: SeedingSchema
|
|
195
196
|
}).optional().catch(undefined),
|
|
196
197
|
storageBuckets: TenantSectionSchema,
|
|
@@ -1024,6 +1025,25 @@ async function readAllPages(what, fetchPage) {
|
|
|
1024
1025
|
return rows;
|
|
1025
1026
|
}
|
|
1026
1027
|
|
|
1028
|
+
// src/services/seed-run/df-scope.ts
|
|
1029
|
+
function dataFabricScope(manifest) {
|
|
1030
|
+
const declared = manifest.dataFabric?.scope;
|
|
1031
|
+
if (declared !== undefined && declared !== null) {
|
|
1032
|
+
const value = typeof declared === "string" ? declared.trim().toLowerCase() : "";
|
|
1033
|
+
if (value === "tenant" || value === "folder") {
|
|
1034
|
+
return { kind: value, declared: true };
|
|
1035
|
+
}
|
|
1036
|
+
return { kind: "invalid", value: describe(declared) };
|
|
1037
|
+
}
|
|
1038
|
+
return manifest.dataFabric?.schemaFilename ? { kind: "tenant", declared: false } : { kind: "folder", declared: false };
|
|
1039
|
+
}
|
|
1040
|
+
function isTenantLevel(manifest) {
|
|
1041
|
+
return dataFabricScope(manifest).kind === "tenant";
|
|
1042
|
+
}
|
|
1043
|
+
function describe(value) {
|
|
1044
|
+
return typeof value === "string" ? value : JSON.stringify(value) ?? "";
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1027
1047
|
// src/services/seed/sdk-schemas.ts
|
|
1028
1048
|
var flag = boolean().optional().catch(undefined);
|
|
1029
1049
|
var TypeNameSchema = union([string(), looseObject({ name: optionalText })]).optional().catch(undefined);
|
|
@@ -2887,6 +2907,6 @@ async function seedFileLinkProblem(fs, workspaceDir, path) {
|
|
|
2887
2907
|
return ownFile ? undefined : "The file is a link to another file in the seed workspace; " + "refusing to read it — that file's rows would be seeded as " + "this entity's. Replace the link with the file itself.";
|
|
2888
2908
|
}
|
|
2889
2909
|
|
|
2890
|
-
export { configKeyProblem, listVerticals, listPackages, listPackageVersions, normalizeVersions, getManifest, findFolderPath, orchestratorApi, listAllFolders, listFolderDtos, readAllPages, SEED_ROOT_DIR, tempPathFor, isPreservedWorkspaceFile, seedRoot, reservedOnThisPlatform, packageNameProblem, entityNameProblem, packageDir, errorCode, workspaceRoot, isCaseInsensitiveDisk, namesSeedRoot, isInsideWorkspace, isMissingOrNotADirectory, isDanglingLink, resolveSeedDir, insideSeedRoot, acquireSeedWorkspaceLock, readJournal, writeJournal, writeSeedContext, removeSeedContext, readSeedContext, BatchResponseSchema, WrittenRecordSchema, FailureRecordSchema, needsExpandedRecords, loadLiveEntities, loadChoiceSetValues, loadLiveRecords, journalEntity, putOwn, fieldMap, readStrategy, buildEntityPlan, withOptionalClears, readSeedFile };
|
|
2910
|
+
export { configKeyProblem, listVerticals, listPackages, listPackageVersions, normalizeVersions, getManifest, findFolderPath, orchestratorApi, listAllFolders, listFolderDtos, readAllPages, SEED_ROOT_DIR, tempPathFor, isPreservedWorkspaceFile, seedRoot, reservedOnThisPlatform, packageNameProblem, entityNameProblem, packageDir, errorCode, workspaceRoot, isCaseInsensitiveDisk, namesSeedRoot, isInsideWorkspace, isMissingOrNotADirectory, isDanglingLink, resolveSeedDir, insideSeedRoot, acquireSeedWorkspaceLock, readJournal, writeJournal, writeSeedContext, removeSeedContext, readSeedContext, dataFabricScope, isTenantLevel, BatchResponseSchema, WrittenRecordSchema, FailureRecordSchema, needsExpandedRecords, loadLiveEntities, loadChoiceSetValues, loadLiveRecords, journalEntity, putOwn, fieldMap, readStrategy, buildEntityPlan, withOptionalClears, readSeedFile };
|
|
2891
2911
|
|
|
2892
|
-
//# debugId=
|
|
2912
|
+
//# debugId=E8FD1737BD04A9F864756E2164756E21
|
package/dist/tool.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
metadata2,
|
|
3
3
|
registerCommands2
|
|
4
|
-
} from "./tool-
|
|
4
|
+
} from "./tool-b1kvqt6c.js";
|
|
5
5
|
import"./tool-g0kkseyf.js";
|
|
6
6
|
import"./tool-4g168x1b.js";
|
|
7
7
|
import"./tool-rdw16anj.js";
|
|
8
|
-
import"./tool-
|
|
8
|
+
import"./tool-fe49q8ky.js";
|
|
9
9
|
import"./tool-f0jjp878.js";
|
|
10
10
|
import"./tool-xvdr2bbv.js";
|
|
11
11
|
export {
|
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
watchOptionsFrom2,
|
|
3
3
|
watchDeployJob2,
|
|
4
4
|
requestCancel2
|
|
5
|
-
} from "./tool-
|
|
5
|
+
} from "./tool-1nt064np.js";
|
|
6
6
|
import"./tool-pw4d1k4y.js";
|
|
7
7
|
import"./tool-79txfskd.js";
|
|
8
|
-
import"./tool-
|
|
8
|
+
import"./tool-0s7qk6sd.js";
|
|
9
9
|
import"./tool-tk4508vc.js";
|
|
10
10
|
import"./tool-zy3q6qnn.js";
|
|
11
11
|
import"./tool-rdw16anj.js";
|
|
12
|
-
import"./tool-
|
|
12
|
+
import"./tool-fe49q8ky.js";
|
|
13
13
|
import"./tool-f0jjp878.js";
|
|
14
14
|
import"./tool-xvdr2bbv.js";
|
|
15
15
|
export {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@uipath/vertical-solutions-tool",
|
|
3
3
|
"author": "UiPath",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
|
-
"version": "1.206.0-preview.
|
|
5
|
+
"version": "1.206.0-preview.292",
|
|
6
6
|
"description": "Scaffold, generate and deploy Vertical Solution projects.",
|
|
7
7
|
"private": false,
|
|
8
8
|
"repository": {
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"files": [
|
|
36
36
|
"dist"
|
|
37
37
|
],
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "40d037aa9ed3a9a333eba4780cecfb83996f2749"
|
|
39
39
|
}
|