@uipath/flow-tool 1.202.3-preview.220 → 1.202.3-preview.239
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/THIRD-PARTY-NOTICES.md +6 -6
- package/dist/{authoring-pcye34qx.js → authoring-q7s2m8yg.js} +2 -2
- package/dist/{binding-service-q2xfpk9j.js → binding-service-a23vq66d.js} +14 -14
- package/dist/{connector-service-9zcjxzs7.js → connector-service-p7w5sjas.js} +13 -13
- package/dist/{debug-conversation-trigger-v1y2qv1f.js → debug-conversation-trigger-bk05a7q0.js} +4 -4
- package/dist/{debug-http-client-h7jy3qqz.js → debug-http-client-khnffj2k.js} +2 -2
- package/dist/{debug-service-ac7917a1.js → debug-service-54dcevm4.js} +3 -3
- package/dist/{edge-service-cwz1q73c.js → edge-service-qqmssd99.js} +3 -3
- package/dist/{flow-api-6fpe10gr.js → flow-api-2vpy9ef6.js} +7 -7
- package/dist/{flow-debug-service-wmn398ry.js → flow-debug-service-5x1k42n1.js} +19 -19
- package/dist/{flow-eval-node-target-dkwzpfr1.js → flow-eval-node-target-6m6xwc5d.js} +3 -3
- package/dist/{flow-eval-run-service-exhzb43n.js → flow-eval-run-service-nxr35hh4.js} +20 -20
- package/dist/{flow-eval-service-dxawhw7p.js → flow-eval-service-9hdqz07w.js} +8 -8
- package/dist/{flow-init-service-sajyg69q.js → flow-init-service-2yx9xtkp.js} +6 -6
- package/dist/{flow-io-agtbnx2g.js → flow-io-rsn1faqk.js} +3 -3
- package/dist/{flow-migrate-service-85vtsp8r.js → flow-migrate-service-8pa4s9zv.js} +3 -3
- package/dist/{flow-pack-service-nycp617s.js → flow-pack-service-wxfjhz79.js} +18 -18
- package/dist/{flow-validate-service-xpg3d9e9.js → flow-validate-service-bxabhtd1.js} +19 -19
- package/dist/{governance-fetcher-d1papfxk.js → governance-fetcher-c71z08v1.js} +4 -4
- package/dist/{hitl-service-jm6a6f87.js → hitl-service-qmp4yhz8.js} +3 -3
- package/dist/{index-yafxj14e.js → index-720dq2g5.js} +4 -4
- package/dist/{index-905y71k1.js → index-8271k2c4.js} +3 -3
- package/dist/{index-1kgxzh8x.js → index-fpffryav.js} +4 -2
- package/dist/{index-v41cvhh2.js → index-nnmqyaz1.js} +3 -3
- package/dist/index.js +11 -11
- package/dist/init.js +6 -6
- package/dist/{input-reader-jxc80cb4.js → input-reader-gtj002h1.js} +1 -1
- package/dist/{node-service-rk7gva9b.js → node-service-pznrc77p.js} +14 -14
- package/dist/{node-4zg3zkyp.js → node-spq9yzk5.js} +225 -8
- package/dist/{node-sync-service-p53vb2dt.js → node-sync-service-7g2znex0.js} +4 -4
- package/dist/{packager-tool-ev3eqh67.js → packager-tool-17qcjk80.js} +1 -1
- package/dist/{packager-tool-wr21ermn.js → packager-tool-5ztfhy10.js} +76 -76
- package/dist/{packager-tool-f0kd5kq4.js → packager-tool-6ex3hqp8.js} +8 -2
- package/dist/{packager-tool-7r1e9358.js → packager-tool-718at02a.js} +224 -7
- package/dist/{packager-tool-w2rw29hv.js → packager-tool-aa1tt1qg.js} +1 -1
- package/dist/{packager-tool-4szfgdpj.js → packager-tool-b9rjxzeg.js} +1 -1
- package/dist/{packager-tool-srw6xxhc.js → packager-tool-c28v1km5.js} +1 -1
- package/dist/{packager-tool-vkte63a3.js → packager-tool-c9z3dnms.js} +4 -4
- package/dist/{packager-tool-7rfcdcdv.js → packager-tool-ecnptbbd.js} +9 -9
- package/dist/{packager-tool-rnshrbw9.js → packager-tool-fxj0kz8p.js} +2 -2
- package/dist/{packager-tool-ktsy8sdp.js → packager-tool-gkbtpbj8.js} +2 -2
- package/dist/{packager-tool-m83z5pwe.js → packager-tool-gv725f0e.js} +2 -2
- package/dist/{packager-tool-j9a7re2m.js → packager-tool-hecr5pj8.js} +2 -2
- package/dist/{packager-tool-fjn49drj.js → packager-tool-hwxh3376.js} +1 -1
- package/dist/{packager-tool-p85j3j0w.js → packager-tool-j7sv0mv7.js} +2 -2
- package/dist/{packager-tool-nq6t6fb5.js → packager-tool-j88sv8md.js} +1 -1
- package/dist/{packager-tool-y9cesjhp.js → packager-tool-m5y1k9nx.js} +10 -10
- package/dist/{packager-tool-7d196188.js → packager-tool-mbtbr447.js} +4 -4
- package/dist/{packager-tool-0wsv3mhn.js → packager-tool-mx3evs1d.js} +3 -3
- package/dist/{packager-tool-c3r450eh.js → packager-tool-p83excfd.js} +1 -1
- package/dist/{packager-tool-4mjk4zyp.js → packager-tool-qbrqxay1.js} +1 -1
- package/dist/{packager-tool-14kseyk1.js → packager-tool-qqmfc231.js} +4 -4
- package/dist/{packager-tool-78bac9x2.js → packager-tool-t70q8dqx.js} +3 -3
- package/dist/{packager-tool-43fcgay4.js → packager-tool-v9j4ewhg.js} +2 -2
- package/dist/{packager-tool-cym1kt31.js → packager-tool-vwcsexa9.js} +1 -1
- package/dist/{packager-tool-ht6x0243.js → packager-tool-yzvvccqt.js} +5 -5
- package/dist/{packager-tool-f5bxchzm.js → packager-tool-zs2a5q9n.js} +4 -4
- package/dist/packager-tool.js +2 -2
- package/dist/{shared-utils-39xxzak4.js → shared-utils-fgg7nc5c.js} +1 -1
- package/dist/{tidy-service-fdtn89w4.js → tidy-service-9vt8x3kg.js} +4 -4
- package/dist/tool.js +11 -11
- package/dist/validation.js +19 -19
- package/dist/{variable-service-x9f3qvp8.js → variable-service-1m6etmyf.js} +3 -3
- package/dist/{wait-for-flow-job-v6vk5dd6.js → wait-for-flow-job-zytzx42v.js} +7 -7
- package/package.json +2 -2
|
@@ -700,6 +700,12 @@ var resolveSessionIdentity = (accessToken, authFlow) => {
|
|
|
700
700
|
identity.clientId = clientId;
|
|
701
701
|
return identity;
|
|
702
702
|
};
|
|
703
|
+
var pickScopes = (claims) => {
|
|
704
|
+
const raw = claims?.scope;
|
|
705
|
+
const scopes = Array.isArray(raw) ? raw.filter((entry) => asString(entry) !== undefined) : typeof raw === "string" ? raw.split(/\s+/).filter(Boolean) : [];
|
|
706
|
+
return scopes.length > 0 ? scopes : undefined;
|
|
707
|
+
};
|
|
708
|
+
var readTokenScopes = (accessToken) => accessToken ? pickScopes(decodeClaims(accessToken)) : undefined;
|
|
703
709
|
|
|
704
710
|
// ../auth/src/envAuth.ts
|
|
705
711
|
var ENV_AUTH_ENABLE_VAR = "UIPATH_CLI_ENABLE_ENV_AUTH";
|
|
@@ -2322,6 +2328,6 @@ var authenticate = async ({
|
|
|
2322
2328
|
});
|
|
2323
2329
|
};
|
|
2324
2330
|
|
|
2325
|
-
export { setAuthFileConfig, InvalidBaseUrlError, DEFAULT_AUTH_PROFILE, AuthProfileValidationError, normalizeAuthProfileName, setActiveAuthProfile, clearActiveAuthProfile, getActiveAuthProfile, runWithAuthProfile, resolveAuthProfileFilePath, getActiveAuthProfileFilePath, parseJWT, parseAuthFlow, resolveSessionIdentity, ENV_AUTH_ENABLE_VAR, ENFORCE_ROBOT_AUTH_VAR, ENV_AUTH_VARS, EnvAuthConfigError, isEnvAuthEnabled, isRobotAuthEnforced, readAuthFromEnv, refreshTokenFingerprint, loadRefreshBreaker, saveRefreshBreaker, clearRefreshBreaker, registerRobotClientLoader, TokenRefreshOAuthError, isTokenRefreshOAuthFailure, refreshAccessToken, AUTH_FLOW_ENV_VAR, DEFAULT_AUTH_FILENAME, DEFAULT_ENV_FILENAME, resolveEnvFileLocationAsync, resolveEnvFilePathAsync, loadEnvFileAsync, saveEnvFileAsync, CredentialSource, getLoginStatusAsync, getLoginStatusWithDeps, getAuthContext, getAuthEnv, ClientCredentialsAuthenticationError, clientCredentialsLogin, JWT_BEARER_ASSERTION_TYPE, FederatedCredentialsAuthenticationError, federatedCredentialsLogin, fetchTenantsAndOrganizations, TENANT_SELECTION_REQUIRED_CODE, INVALID_TENANT_CODE, TenantSelectionError, TenantSelectionRequiredError, InvalidTenantError, isTenantSelectionError, selectTenantWithDeps, interactiveLoginWithDeps, interactiveLogin, logoutWithDeps, logout, authenticate };
|
|
2331
|
+
export { setAuthFileConfig, InvalidBaseUrlError, DEFAULT_AUTH_PROFILE, AuthProfileValidationError, normalizeAuthProfileName, setActiveAuthProfile, clearActiveAuthProfile, getActiveAuthProfile, runWithAuthProfile, resolveAuthProfileFilePath, getActiveAuthProfileFilePath, parseJWT, parseAuthFlow, resolveSessionIdentity, readTokenScopes, ENV_AUTH_ENABLE_VAR, ENFORCE_ROBOT_AUTH_VAR, ENV_AUTH_VARS, EnvAuthConfigError, isEnvAuthEnabled, isRobotAuthEnforced, readAuthFromEnv, refreshTokenFingerprint, loadRefreshBreaker, saveRefreshBreaker, clearRefreshBreaker, registerRobotClientLoader, TokenRefreshOAuthError, isTokenRefreshOAuthFailure, refreshAccessToken, AUTH_FLOW_ENV_VAR, DEFAULT_AUTH_FILENAME, DEFAULT_ENV_FILENAME, resolveEnvFileLocationAsync, resolveEnvFilePathAsync, loadEnvFileAsync, saveEnvFileAsync, CredentialSource, getLoginStatusAsync, getLoginStatusWithDeps, getAuthContext, getAuthEnv, ClientCredentialsAuthenticationError, clientCredentialsLogin, JWT_BEARER_ASSERTION_TYPE, FederatedCredentialsAuthenticationError, federatedCredentialsLogin, fetchTenantsAndOrganizations, TENANT_SELECTION_REQUIRED_CODE, INVALID_TENANT_CODE, TenantSelectionError, TenantSelectionRequiredError, InvalidTenantError, isTenantSelectionError, selectTenantWithDeps, interactiveLoginWithDeps, interactiveLogin, logoutWithDeps, logout, authenticate };
|
|
2326
2332
|
|
|
2327
|
-
//# debugId=
|
|
2333
|
+
//# debugId=6C4EA19C625C8CDD64756E2164756E21
|
|
@@ -4569,7 +4569,165 @@ class FilterImplicitLimitError extends Error {
|
|
|
4569
4569
|
this.instructions = "Pass --limit <n> to choose how many records the filter applies to. " + "To filter over all records, pass the command's maximum accepted --limit (see the option's description in --help).";
|
|
4570
4570
|
}
|
|
4571
4571
|
}
|
|
4572
|
-
function
|
|
4572
|
+
function countRecords(data) {
|
|
4573
|
+
if (Array.isArray(data))
|
|
4574
|
+
return data.length;
|
|
4575
|
+
return data == null ? 0 : 1;
|
|
4576
|
+
}
|
|
4577
|
+
function availableFields(data) {
|
|
4578
|
+
const records = Array.isArray(data) ? data : [data];
|
|
4579
|
+
const keys = new Set;
|
|
4580
|
+
for (const record of records) {
|
|
4581
|
+
if (record && typeof record === "object" && !Array.isArray(record)) {
|
|
4582
|
+
for (const key of Object.keys(record))
|
|
4583
|
+
keys.add(key);
|
|
4584
|
+
}
|
|
4585
|
+
}
|
|
4586
|
+
return [...keys];
|
|
4587
|
+
}
|
|
4588
|
+
function decodeQuotedIdentifier(whole, inner) {
|
|
4589
|
+
const [error, decoded] = catchError(() => JSON.parse(whole));
|
|
4590
|
+
if (!error && typeof decoded === "string")
|
|
4591
|
+
return decoded;
|
|
4592
|
+
return inner.replace(/\\(.)/g, "$1");
|
|
4593
|
+
}
|
|
4594
|
+
function referencedFields(filter) {
|
|
4595
|
+
const top = new Set;
|
|
4596
|
+
const nested = new Set;
|
|
4597
|
+
const withoutValueLiterals = filter.replace(/'(?:\\.|[^'\\])*'/g, " ").replace(/`(?:\\.|[^`\\])*`/g, " ");
|
|
4598
|
+
const isPathTail = (text, index) => text[index - 1] === "." && /[A-Za-z0-9_"]/.test(text[index - 2] ?? "");
|
|
4599
|
+
const quoted = [];
|
|
4600
|
+
const withoutLiterals = withoutValueLiterals.replace(/"((?:\\.|[^"\\])*)"/g, (whole, name, index) => {
|
|
4601
|
+
const isAlias = /^\s*:/.test(withoutValueLiterals.slice(index + whole.length));
|
|
4602
|
+
if (!isAlias) {
|
|
4603
|
+
quoted.push({
|
|
4604
|
+
name: decodeQuotedIdentifier(whole, name),
|
|
4605
|
+
index,
|
|
4606
|
+
tail: isPathTail(withoutValueLiterals, index)
|
|
4607
|
+
});
|
|
4608
|
+
}
|
|
4609
|
+
return `"${" ".repeat(whole.length - 2)}"`;
|
|
4610
|
+
});
|
|
4611
|
+
const descent = /[A-Za-z0-9_"]\s*[.[]/.exec(withoutLiterals);
|
|
4612
|
+
const rootEnd = descent ? descent.index + 1 : Number.POSITIVE_INFINITY;
|
|
4613
|
+
const place = (name, index, tail) => {
|
|
4614
|
+
if (tail || index >= rootEnd)
|
|
4615
|
+
nested.add(name);
|
|
4616
|
+
else
|
|
4617
|
+
top.add(name);
|
|
4618
|
+
};
|
|
4619
|
+
for (const entry of quoted)
|
|
4620
|
+
place(entry.name, entry.index, entry.tail);
|
|
4621
|
+
const identifiers = withoutLiterals.matchAll(/([A-Za-z_][A-Za-z0-9_]*)(\s*[:(])?/g);
|
|
4622
|
+
const reserved = new Set(["true", "false", "null", "and", "or", "not"]);
|
|
4623
|
+
for (const match of identifiers) {
|
|
4624
|
+
const [, name, trailing] = match;
|
|
4625
|
+
if (trailing || reserved.has(name))
|
|
4626
|
+
continue;
|
|
4627
|
+
place(name, match.index, isPathTail(withoutLiterals, match.index));
|
|
4628
|
+
}
|
|
4629
|
+
return {
|
|
4630
|
+
top: [...top],
|
|
4631
|
+
nested: [...nested].filter((name) => !top.has(name)),
|
|
4632
|
+
hasPredicate: /\[\s*\?/.test(withoutValueLiterals)
|
|
4633
|
+
};
|
|
4634
|
+
}
|
|
4635
|
+
function appearsBelowTopLevel(data, name) {
|
|
4636
|
+
let budget = 2000;
|
|
4637
|
+
const visit = (value, depth) => {
|
|
4638
|
+
if (budget-- <= 0 || depth > 4)
|
|
4639
|
+
return false;
|
|
4640
|
+
if (value === null || typeof value !== "object")
|
|
4641
|
+
return false;
|
|
4642
|
+
if (Array.isArray(value))
|
|
4643
|
+
return value.some((entry) => visit(entry, depth));
|
|
4644
|
+
const record = value;
|
|
4645
|
+
if (depth > 0 && Object.hasOwn(record, name))
|
|
4646
|
+
return true;
|
|
4647
|
+
return Object.values(record).some((entry) => visit(entry, depth + 1));
|
|
4648
|
+
};
|
|
4649
|
+
return visit(data, 0);
|
|
4650
|
+
}
|
|
4651
|
+
function alwaysNullKeys(records) {
|
|
4652
|
+
const objects = records.filter((r) => r != null && typeof r === "object" && !Array.isArray(r));
|
|
4653
|
+
if (objects.length === 0 || objects.length !== records.length)
|
|
4654
|
+
return [];
|
|
4655
|
+
const keys = [...new Set(objects.flatMap((o) => Object.keys(o)))];
|
|
4656
|
+
if (keys.length === 0)
|
|
4657
|
+
return [];
|
|
4658
|
+
const nullKeys = keys.filter((key) => objects.every((record) => record[key] === null));
|
|
4659
|
+
return nullKeys.length === keys.length ? nullKeys : [];
|
|
4660
|
+
}
|
|
4661
|
+
function carriesOnlyNulls(value) {
|
|
4662
|
+
if (value === null)
|
|
4663
|
+
return true;
|
|
4664
|
+
if (Array.isArray(value)) {
|
|
4665
|
+
return value.length > 0 && value.every(carriesOnlyNulls);
|
|
4666
|
+
}
|
|
4667
|
+
if (typeof value === "object" && value !== undefined) {
|
|
4668
|
+
const values = Object.values(value);
|
|
4669
|
+
return values.length > 0 && values.every(carriesOnlyNulls);
|
|
4670
|
+
}
|
|
4671
|
+
return false;
|
|
4672
|
+
}
|
|
4673
|
+
function nameList(names, cap2 = 12) {
|
|
4674
|
+
const shown = names.slice(0, cap2).map((n) => `\`${n}\``);
|
|
4675
|
+
const rest = names.length - shown.length;
|
|
4676
|
+
return shown.join(", ") + (rest > 0 ? `, and ${rest} more` : "");
|
|
4677
|
+
}
|
|
4678
|
+
function buildFilterWarning(filter, data, outcome) {
|
|
4679
|
+
const present = availableFields(data);
|
|
4680
|
+
const refs = referencedFields(filter);
|
|
4681
|
+
const unknown = refs.top.filter((name) => !present.includes(name) && !appearsBelowTopLevel(data, name));
|
|
4682
|
+
const unchecked = refs.nested.filter((name) => !present.includes(name));
|
|
4683
|
+
const count = countRecords(data);
|
|
4684
|
+
const scope = `${count} record(s)`;
|
|
4685
|
+
const isNotAField = (names) => `${nameList(names)} ${names.length === 1 ? "is not a field" : "are not fields"} on the ${scope} it read`;
|
|
4686
|
+
const soundness = unchecked.length > 0 ? `${nameList(unchecked)} ${unchecked.length === 1 ? "reads" : "read"} below the top level, so ${unchecked.length === 1 ? "it was" : "they were"} not checked against the record keys` : refs.top.length > 0 ? "every field it names exists" : "";
|
|
4687
|
+
const withSoundness = (base) => soundness ? `${base}, and ${soundness}` : base;
|
|
4688
|
+
let detail;
|
|
4689
|
+
let lede;
|
|
4690
|
+
if (outcome.kind === "null-elements") {
|
|
4691
|
+
lede = "returned only null values";
|
|
4692
|
+
const projected = `all ${outcome.count} of the elements it projected are null`;
|
|
4693
|
+
if (unknown.length > 0) {
|
|
4694
|
+
detail = `${projected}, because ${isNotAField(unknown)}`;
|
|
4695
|
+
} else if (unchecked.length > 0) {
|
|
4696
|
+
detail = withSoundness(projected);
|
|
4697
|
+
} else {
|
|
4698
|
+
detail = `${projected}, and every field it names exists — a multi-select list ` + `(\`[A, B]\`) reads each entry against \`Data\` itself, so on a list ` + `result use \`[].[A, B]\` or \`[].{a: A, b: B}\` to read the records`;
|
|
4699
|
+
}
|
|
4700
|
+
} else if (outcome.kind === "null-rows") {
|
|
4701
|
+
lede = "returned only null values";
|
|
4702
|
+
const projected = `every value it projected is null on all ${outcome.count} row(s)`;
|
|
4703
|
+
detail = unknown.length > 0 ? `${projected}, because ${isNotAField(unknown)}` : withSoundness(projected);
|
|
4704
|
+
} else if (outcome.kind === "null-values") {
|
|
4705
|
+
lede = "returned only null values";
|
|
4706
|
+
const projected = `every key it projected (${nameList(outcome.keys)}) is null`;
|
|
4707
|
+
const sameSet = unknown.length === outcome.keys.length && outcome.keys.every((k) => unknown.includes(k));
|
|
4708
|
+
if (sameSet) {
|
|
4709
|
+
detail = `${isNotAField(outcome.keys)}, so every key it projected is null`;
|
|
4710
|
+
} else if (unknown.length > 0) {
|
|
4711
|
+
detail = `${projected}, because ${isNotAField(unknown)}`;
|
|
4712
|
+
} else {
|
|
4713
|
+
detail = withSoundness(`${projected} on all ${scope}`);
|
|
4714
|
+
}
|
|
4715
|
+
} else {
|
|
4716
|
+
lede = "returned nothing";
|
|
4717
|
+
if (unknown.length > 0) {
|
|
4718
|
+
detail = isNotAField(unknown);
|
|
4719
|
+
} else {
|
|
4720
|
+
const selection = refs.hasPredicate ? "no record matched" : "the expression resolved to no value";
|
|
4721
|
+
detail = withSoundness(`${selection} — it read ${scope}`);
|
|
4722
|
+
}
|
|
4723
|
+
}
|
|
4724
|
+
const fields = present.length > 0 ? ` Available fields: ${nameList(present)}.` : "";
|
|
4725
|
+
return `--output-filter ${JSON.stringify(filter)} ${lede}: ${detail}.${fields}`;
|
|
4726
|
+
}
|
|
4727
|
+
function appendWarning(existing, note) {
|
|
4728
|
+
return existing ? `${existing} ${note}` : note;
|
|
4729
|
+
}
|
|
4730
|
+
function applyFilter(data, filter, onWarning) {
|
|
4573
4731
|
const codec = requireJmespath();
|
|
4574
4732
|
let result;
|
|
4575
4733
|
try {
|
|
@@ -4577,9 +4735,34 @@ function applyFilter(data, filter) {
|
|
|
4577
4735
|
} catch (err) {
|
|
4578
4736
|
throw new FilterEvaluationError(filter, err);
|
|
4579
4737
|
}
|
|
4580
|
-
|
|
4738
|
+
const inputCount = countRecords(data);
|
|
4739
|
+
const warn = (outcome) => {
|
|
4740
|
+
if (inputCount === 0)
|
|
4741
|
+
return;
|
|
4742
|
+
const note = buildFilterWarning(filter, data, outcome);
|
|
4743
|
+
getOutputSink().writeErr(`[WARN] ${note}
|
|
4744
|
+
`);
|
|
4745
|
+
onWarning?.(note);
|
|
4746
|
+
};
|
|
4747
|
+
const warnIfAllNull = (records) => {
|
|
4748
|
+
const keys = alwaysNullKeys(records);
|
|
4749
|
+
if (keys.length > 0)
|
|
4750
|
+
warn({ kind: "null-values", keys });
|
|
4751
|
+
};
|
|
4752
|
+
if (result == null) {
|
|
4753
|
+
warn({ kind: "empty" });
|
|
4581
4754
|
return [];
|
|
4755
|
+
}
|
|
4582
4756
|
if (Array.isArray(result)) {
|
|
4757
|
+
if (result.length === 0) {
|
|
4758
|
+
warn({ kind: "empty" });
|
|
4759
|
+
} else if (result.every((entry) => entry === null)) {
|
|
4760
|
+
warn({ kind: "null-elements", count: result.length });
|
|
4761
|
+
} else if (result.every((entry) => Array.isArray(entry)) && carriesOnlyNulls(result)) {
|
|
4762
|
+
warn({ kind: "null-rows", count: result.length });
|
|
4763
|
+
} else {
|
|
4764
|
+
warnIfAllNull(result);
|
|
4765
|
+
}
|
|
4583
4766
|
if (result.length > 0 && typeof result[0] !== "object") {
|
|
4584
4767
|
const fieldMatch = filter.match(/\.(\w+)$/);
|
|
4585
4768
|
const key = fieldMatch ? fieldMatch[1] : "Value";
|
|
@@ -4587,10 +4770,30 @@ function applyFilter(data, filter) {
|
|
|
4587
4770
|
}
|
|
4588
4771
|
return result;
|
|
4589
4772
|
}
|
|
4590
|
-
if (typeof result === "object")
|
|
4773
|
+
if (typeof result === "object") {
|
|
4774
|
+
warnIfAllNull([result]);
|
|
4591
4775
|
return result;
|
|
4776
|
+
}
|
|
4592
4777
|
return { Value: result };
|
|
4593
4778
|
}
|
|
4779
|
+
function filterFailureData(envelope) {
|
|
4780
|
+
const filter = getOutputFilter();
|
|
4781
|
+
const data = envelope.Data;
|
|
4782
|
+
if (!filter || data == null)
|
|
4783
|
+
return;
|
|
4784
|
+
let note;
|
|
4785
|
+
const [filterError, filtered] = catchError(() => applyFilter(data, filter, (n) => {
|
|
4786
|
+
note = n;
|
|
4787
|
+
}));
|
|
4788
|
+
if (filterError) {
|
|
4789
|
+
envelope.Warning = appendWarning(envelope.Warning, `--output-filter was not applied, so Data is shown in full: ${filterError.message}`);
|
|
4790
|
+
return;
|
|
4791
|
+
}
|
|
4792
|
+
envelope.Data = filtered;
|
|
4793
|
+
if (note) {
|
|
4794
|
+
envelope.Warning = appendWarning(envelope.Warning, note);
|
|
4795
|
+
}
|
|
4796
|
+
}
|
|
4594
4797
|
function defaultErrorCodeForResult(result) {
|
|
4595
4798
|
switch (result) {
|
|
4596
4799
|
case RESULTS.AuthenticationError:
|
|
@@ -4673,8 +4876,14 @@ var OutputFormatter;
|
|
|
4673
4876
|
}
|
|
4674
4877
|
const filter = getOutputFilter();
|
|
4675
4878
|
if (filter) {
|
|
4676
|
-
|
|
4879
|
+
let note;
|
|
4880
|
+
const filtered = applyFilter(data.Data, filter, (n) => {
|
|
4881
|
+
note = n;
|
|
4882
|
+
});
|
|
4677
4883
|
data.Data = normalize ? normalizeDataKeys(filtered, verbatim, subtrees && { refs: subtrees.refs, mode: "skip" }) : filtered;
|
|
4884
|
+
if (note) {
|
|
4885
|
+
data.Warning = appendWarning(data.Warning, note);
|
|
4886
|
+
}
|
|
4678
4887
|
}
|
|
4679
4888
|
logOutput(normalizeOutputKeys(data), getOutputFormat(), options?.tableRowStyle);
|
|
4680
4889
|
}
|
|
@@ -4702,6 +4911,7 @@ var OutputFormatter;
|
|
|
4702
4911
|
delete envelope.TelemetryErrorClass;
|
|
4703
4912
|
delete envelope.TelemetryTerminalOutcome;
|
|
4704
4913
|
delete envelope.TelemetryTerminalSignal;
|
|
4914
|
+
filterFailureData(envelope);
|
|
4705
4915
|
if (!suppressTelemetry) {
|
|
4706
4916
|
telemetry.trackEvent(CommonTelemetryEvents.Error, {
|
|
4707
4917
|
result: data.Result,
|
|
@@ -4750,13 +4960,20 @@ var OutputFormatter;
|
|
|
4750
4960
|
OutputFormatter.log = log;
|
|
4751
4961
|
function formatToString(data) {
|
|
4752
4962
|
const filter = getOutputFilter();
|
|
4963
|
+
const envelope = data;
|
|
4753
4964
|
if ("Data" in data && data.Data != null) {
|
|
4754
4965
|
data.Data = normalizeDataKeys(data.Data);
|
|
4755
4966
|
if (filter) {
|
|
4756
|
-
|
|
4967
|
+
let note;
|
|
4968
|
+
data.Data = normalizeDataKeys(applyFilter(data.Data, filter, (n) => {
|
|
4969
|
+
note = n;
|
|
4970
|
+
}));
|
|
4971
|
+
if (note) {
|
|
4972
|
+
envelope.Warning = appendWarning(envelope.Warning, note);
|
|
4973
|
+
}
|
|
4757
4974
|
}
|
|
4758
4975
|
}
|
|
4759
|
-
const output = normalizeOutputKeys(
|
|
4976
|
+
const output = normalizeOutputKeys(envelope);
|
|
4760
4977
|
const lines = [];
|
|
4761
4978
|
const sink = getOutputSink();
|
|
4762
4979
|
printOutput(output, getOutputFormat(), (msg) => {
|
|
@@ -6249,4 +6466,4 @@ function trackShipSucceeded(payload) {
|
|
|
6249
6466
|
var factorySlot = singleton("PackagerFactoryProvider");
|
|
6250
6467
|
export { catchError, extractErrorMessage, extractErrorMessageSync, appendOption, ATTACHMENT_INSTRUCTIONS, ATTACHMENT_UPLOAD_INSTRUCTIONS, parseAttachmentSpec, resolveAttachmentInputs, logger, getOutputFormat, getOutputFormatExplicit, RESULTS, EXIT_CODES, Pagination, OutputFormatter, summarizePlatformBody, InvalidArgumentError, Command, isPreviewBuild, processContext, UIPATH_HOME_DIR, DEFAULT_PAGE_SIZE, hashContent, instructionsFor, isGuid, createHiddenDeprecatedTenantOption, parseLimit, parseOffset, parseBoundedInt, registerPackageMetadataOptions, mapPackageMetadataOptions, msToDuration, PollOutcome, ErrorDecision, MIN_INTERVAL_MS, pollUntil, isTerminalStatus, isFailureStatus, ScreenLogger, getSdkUserAgentToken, addSdkUserAgentHeader, installSdkUserAgentHeader, unsupportedSolutionProjectType, readStdin, splitPackagedName, trackShipSucceeded };
|
|
6251
6468
|
|
|
6252
|
-
//# debugId=
|
|
6469
|
+
//# debugId=F11EE40DF065663564756E2164756E21
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseJsonInputOrFile
|
|
3
|
-
} from "./packager-tool-
|
|
3
|
+
} from "./packager-tool-aa1tt1qg.js";
|
|
4
4
|
import {
|
|
5
5
|
JobsApi,
|
|
6
6
|
ReleasesApi,
|
|
7
7
|
createOrchestratorConfig,
|
|
8
8
|
resolveFolder
|
|
9
|
-
} from "./packager-tool-
|
|
9
|
+
} from "./packager-tool-j7sv0mv7.js";
|
|
10
10
|
import {
|
|
11
11
|
getPersonalFolderKey
|
|
12
|
-
} from "./packager-tool-
|
|
12
|
+
} from "./packager-tool-gv725f0e.js";
|
|
13
13
|
import {
|
|
14
14
|
ErrorDecision,
|
|
15
15
|
MIN_INTERVAL_MS,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
logger,
|
|
19
19
|
pollUntil,
|
|
20
20
|
processContext
|
|
21
|
-
} from "./packager-tool-
|
|
21
|
+
} from "./packager-tool-718at02a.js";
|
|
22
22
|
|
|
23
23
|
// src/services/http-client.ts
|
|
24
24
|
function buildCommonHeaders(config, options) {
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveJsonInput
|
|
3
|
-
} from "./packager-tool-
|
|
3
|
+
} from "./packager-tool-aa1tt1qg.js";
|
|
4
4
|
import {
|
|
5
5
|
DEBUG_MODE_MAP,
|
|
6
6
|
SIMULATION_MODE_MAP,
|
|
7
7
|
beginDebugSession,
|
|
8
8
|
createDebugInstance,
|
|
9
9
|
getPersonalFolderKey
|
|
10
|
-
} from "./packager-tool-
|
|
10
|
+
} from "./packager-tool-gv725f0e.js";
|
|
11
11
|
import {
|
|
12
12
|
debugPimsGet,
|
|
13
13
|
debugPimsPatch,
|
|
14
14
|
debugPimsPost,
|
|
15
15
|
debugPimsPut
|
|
16
|
-
} from "./packager-tool-
|
|
16
|
+
} from "./packager-tool-vwcsexa9.js";
|
|
17
17
|
import {
|
|
18
18
|
getAuthContext,
|
|
19
19
|
getLoginStatusAsync
|
|
20
|
-
} from "./packager-tool-
|
|
20
|
+
} from "./packager-tool-6ex3hqp8.js";
|
|
21
21
|
import {
|
|
22
22
|
DEFAULT_PAGE_SIZE,
|
|
23
23
|
EXIT_CODES,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
parseLimit,
|
|
35
35
|
parseOffset,
|
|
36
36
|
processContext
|
|
37
|
-
} from "./packager-tool-
|
|
37
|
+
} from "./packager-tool-718at02a.js";
|
|
38
38
|
import {
|
|
39
39
|
getFileSystem
|
|
40
40
|
} from "./packager-tool-0v3s8r01.js";
|
|
@@ -268,7 +268,7 @@ Subcommands:
|
|
|
268
268
|
}
|
|
269
269
|
];
|
|
270
270
|
registry.command("pull").description(`Pull and sync node data from ${commandPrefix} registry (login first for full registry)`).option("-f, --force", "Force refresh, ignore cache").examples(pullExamples).trackedAction(processContext, async (options) => {
|
|
271
|
-
const { pullNodes } = await import("./node-sync-service-
|
|
271
|
+
const { pullNodes } = await import("./node-sync-service-7g2znex0.js");
|
|
272
272
|
const [error, result] = await catchError(pullNodes({
|
|
273
273
|
force: options.force
|
|
274
274
|
}));
|
|
@@ -314,7 +314,7 @@ In-solution (--local):
|
|
|
314
314
|
processContext.exit(1);
|
|
315
315
|
return;
|
|
316
316
|
}
|
|
317
|
-
const { listNodes } = await import("./node-sync-service-
|
|
317
|
+
const { listNodes } = await import("./node-sync-service-7g2znex0.js");
|
|
318
318
|
const [error, tenantNodes] = await catchError(listNodes({ local: options.local }));
|
|
319
319
|
if (error) {
|
|
320
320
|
OutputFormatter.error({
|
|
@@ -422,7 +422,7 @@ In-solution (--local):
|
|
|
422
422
|
searchNodeSummariesWithAvailability,
|
|
423
423
|
searchNodes,
|
|
424
424
|
searchNodesWithFilters
|
|
425
|
-
} = await import("./node-sync-service-
|
|
425
|
+
} = await import("./node-sync-service-7g2znex0.js");
|
|
426
426
|
if (options.local) {
|
|
427
427
|
const [searchError2, results2] = await catchError(parsedFilters ? searchNodesWithFilters(keyword, parsedFilters, {
|
|
428
428
|
local: true
|
|
@@ -482,7 +482,7 @@ Examples:
|
|
|
482
482
|
|
|
483
483
|
In-solution (--local):
|
|
484
484
|
cd MySolution/MyFlow && ${cmd} get <node-type> --local`).argument("<node-type>", `Node type identifier — get it from '${cmd} search'`).option("--connection-id <id>", "Connection ID for Integration Service connector node enrichment. Required for connector trigger nodes; optional for connector activity nodes.").option("--local", "Get node from in-solution projects only (requires .uipx in CWD, parent, or grandparent)").examples(getExamples).trackedAction(processContext, async (nodeType, options) => {
|
|
485
|
-
const { getNodeEnriched } = await import("./node-sync-service-
|
|
485
|
+
const { getNodeEnriched } = await import("./node-sync-service-7g2znex0.js");
|
|
486
486
|
const [error, result] = await catchError(getNodeEnriched(nodeType, options.connectionId, {
|
|
487
487
|
local: options.local
|
|
488
488
|
}));
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createFlowRefResolver,
|
|
3
3
|
resolveAndMigrateWorkflow
|
|
4
|
-
} from "./packager-tool-
|
|
4
|
+
} from "./packager-tool-v9j4ewhg.js";
|
|
5
5
|
import {
|
|
6
6
|
catchError,
|
|
7
7
|
logger
|
|
8
|
-
} from "./packager-tool-
|
|
8
|
+
} from "./packager-tool-718at02a.js";
|
|
9
9
|
import {
|
|
10
10
|
getFileSystem
|
|
11
11
|
} from "./packager-tool-0v3s8r01.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
var package_default = {
|
|
3
3
|
name: "@uipath/flow-tool",
|
|
4
4
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
5
|
-
version: "1.202.3-preview.
|
|
5
|
+
version: "1.202.3-preview.239",
|
|
6
6
|
description: "Create, debug, and run UiPath Flow projects and jobs.",
|
|
7
7
|
private: false,
|
|
8
8
|
repository: {
|
|
@@ -74,4 +74,4 @@ var package_default = {
|
|
|
74
74
|
|
|
75
75
|
export { package_default };
|
|
76
76
|
|
|
77
|
-
//# debugId=
|
|
77
|
+
//# debugId=742CE86616E9014C64756E2164756E21
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
orchestratorGet,
|
|
7
7
|
orchestratorPost,
|
|
8
8
|
studioWebPost
|
|
9
|
-
} from "./packager-tool-
|
|
9
|
+
} from "./packager-tool-vwcsexa9.js";
|
|
10
10
|
import {
|
|
11
11
|
RESULTS,
|
|
12
12
|
catchError,
|
|
13
13
|
logger
|
|
14
|
-
} from "./packager-tool-
|
|
14
|
+
} from "./packager-tool-718at02a.js";
|
|
15
15
|
|
|
16
16
|
// ../maestro-sdk/src/debug-service.ts
|
|
17
17
|
import { randomUUID } from "node:crypto";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
collectAgentInputLeaves,
|
|
6
6
|
isInlineAgentNodeType
|
|
7
|
-
} from "./packager-tool-
|
|
7
|
+
} from "./packager-tool-v9j4ewhg.js";
|
|
8
8
|
import {
|
|
9
9
|
catchError
|
|
10
|
-
} from "./packager-tool-
|
|
10
|
+
} from "./packager-tool-718at02a.js";
|
|
11
11
|
|
|
12
12
|
// src/services/flow-eval-node-target.ts
|
|
13
13
|
function findFlowNode(flowContent, nodeId) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getAuthContext
|
|
3
|
-
} from "./packager-tool-
|
|
3
|
+
} from "./packager-tool-6ex3hqp8.js";
|
|
4
4
|
import {
|
|
5
5
|
addSdkUserAgentHeader,
|
|
6
6
|
extractErrorMessage,
|
|
7
7
|
getSdkUserAgentToken,
|
|
8
8
|
installSdkUserAgentHeader
|
|
9
|
-
} from "./packager-tool-
|
|
9
|
+
} from "./packager-tool-718at02a.js";
|
|
10
10
|
|
|
11
11
|
// ../orchestrator-sdk/generated/src/runtime.ts
|
|
12
12
|
var BASE_PATH = "https://alpha.uipath.com/uipattycyrhx/abizon_1/orchestrator_".replace(/\/+$/, "");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
UI_ONLY_NODE_TYPES
|
|
3
|
-
} from "./packager-tool-
|
|
3
|
+
} from "./packager-tool-hwxh3376.js";
|
|
4
4
|
import {
|
|
5
5
|
checkForwardMigration
|
|
6
|
-
} from "./packager-tool-
|
|
6
|
+
} from "./packager-tool-j88sv8md.js";
|
|
7
7
|
import {
|
|
8
8
|
crossNodeBindingValidator,
|
|
9
9
|
isConnectorTriggerType,
|
|
@@ -26,36 +26,36 @@ import {
|
|
|
26
26
|
collectNodeBindingResourceKeys,
|
|
27
27
|
isProcessNode,
|
|
28
28
|
resolveProcessTarget
|
|
29
|
-
} from "./packager-tool-
|
|
29
|
+
} from "./packager-tool-zs2a5q9n.js";
|
|
30
30
|
import {
|
|
31
31
|
loadRegistry
|
|
32
|
-
} from "./packager-tool-
|
|
32
|
+
} from "./packager-tool-ecnptbbd.js";
|
|
33
33
|
import {
|
|
34
34
|
validateIntSvcNode
|
|
35
|
-
} from "./packager-tool-
|
|
35
|
+
} from "./packager-tool-yzvvccqt.js";
|
|
36
36
|
import {
|
|
37
37
|
getLoginStatusAsync
|
|
38
|
-
} from "./packager-tool-
|
|
38
|
+
} from "./packager-tool-6ex3hqp8.js";
|
|
39
39
|
import {
|
|
40
40
|
findNearestParentUipxFile,
|
|
41
41
|
readSolutionManifest
|
|
42
|
-
} from "./packager-tool-
|
|
42
|
+
} from "./packager-tool-c28v1km5.js";
|
|
43
43
|
import {
|
|
44
44
|
resolveProjectFlowFile
|
|
45
|
-
} from "./packager-tool-
|
|
45
|
+
} from "./packager-tool-fxj0kz8p.js";
|
|
46
46
|
import {
|
|
47
47
|
canonicalAgentInputPath,
|
|
48
48
|
collectAgentInputLeaves,
|
|
49
49
|
createFlowRefResolver,
|
|
50
50
|
resolveWorkflowRefs
|
|
51
|
-
} from "./packager-tool-
|
|
51
|
+
} from "./packager-tool-v9j4ewhg.js";
|
|
52
52
|
import {
|
|
53
53
|
OutputFormatter,
|
|
54
54
|
RESULTS,
|
|
55
55
|
catchError,
|
|
56
56
|
extractErrorMessageSync,
|
|
57
57
|
logger
|
|
58
|
-
} from "./packager-tool-
|
|
58
|
+
} from "./packager-tool-718at02a.js";
|
|
59
59
|
import {
|
|
60
60
|
getFileSystem
|
|
61
61
|
} from "./packager-tool-0v3s8r01.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
prepareProjectLocation,
|
|
3
3
|
tryRegisterProjectInParentSolution
|
|
4
|
-
} from "./packager-tool-
|
|
4
|
+
} from "./packager-tool-c28v1km5.js";
|
|
5
5
|
import {
|
|
6
6
|
writeFlowWorkflow
|
|
7
|
-
} from "./packager-tool-
|
|
7
|
+
} from "./packager-tool-fxj0kz8p.js";
|
|
8
8
|
import {
|
|
9
9
|
createWorkflow
|
|
10
10
|
} from "./packager-tool-eezmqmky.js";
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./packager-tool-eypvc2kv.js";
|
|
18
18
|
import {
|
|
19
19
|
catchError
|
|
20
|
-
} from "./packager-tool-
|
|
20
|
+
} from "./packager-tool-718at02a.js";
|
|
21
21
|
import {
|
|
22
22
|
getFileSystem
|
|
23
23
|
} from "./packager-tool-0v3s8r01.js";
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
|
|
31
31
|
// src/services/project-artifacts.ts
|
|
32
32
|
async function ensureProjectArtifacts(args) {
|
|
33
|
-
const { addProjectArtifactsToSolutionAsync } = await import("./index-
|
|
33
|
+
const { addProjectArtifactsToSolutionAsync } = await import("./index-720dq2g5.js");
|
|
34
34
|
return addProjectArtifactsToSolutionAsync(args);
|
|
35
35
|
}
|
|
36
36
|
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ensureDirectory
|
|
3
|
-
} from "./packager-tool-
|
|
3
|
+
} from "./packager-tool-qbrqxay1.js";
|
|
4
4
|
import {
|
|
5
5
|
buildInlineAgentContract,
|
|
6
6
|
isInlineAgentNodeType,
|
|
7
7
|
operateRuntimeOptions,
|
|
8
8
|
readInlineAgentSource
|
|
9
|
-
} from "./packager-tool-
|
|
9
|
+
} from "./packager-tool-v9j4ewhg.js";
|
|
10
10
|
import {
|
|
11
11
|
withRuntimeProfile
|
|
12
12
|
} from "./packager-tool-3bra2c4j.js";
|
|
13
13
|
import {
|
|
14
14
|
catchError,
|
|
15
15
|
logger
|
|
16
|
-
} from "./packager-tool-
|
|
16
|
+
} from "./packager-tool-718at02a.js";
|
|
17
17
|
import {
|
|
18
18
|
EntryPointType,
|
|
19
19
|
ProjectType,
|