@uipath/data-fabric-tool 1.199.0 → 1.201.0-preview.115
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/browser-strategy-yccf8mtd.js +99 -0
- package/dist/getMachineId-bsd-wfkxpxjv.js +38 -0
- package/dist/getMachineId-darwin-9asn4zy6.js +38 -0
- package/dist/getMachineId-linux-62t6m027.js +31 -0
- package/dist/getMachineId-unsupported-dfrzeqc3.js +21 -0
- package/dist/getMachineId-win-zgvrp5q3.js +40 -0
- package/dist/index-2fj08e7n.js +2058 -0
- package/dist/index-w03qc9m8.js +634 -0
- package/dist/index.js +14 -2148
- package/dist/js-yaml-4ypbq2tt.js +3145 -0
- package/dist/node-strategy-12qfy0nv.js +348 -0
- package/dist/tool-0v6na3yp.js +37 -0
- package/dist/tool-5arsyj36.js +11 -0
- package/dist/tool-7eva0peq.js +265 -0
- package/dist/tool-9qecd4wb.js +14 -0
- package/dist/tool-cyfkvxhw.js +23350 -0
- package/dist/tool-h1k9mjs9.js +17 -0
- package/dist/tool-r6rhp5ep.js +1487 -0
- package/dist/tool.js +10 -48431
- package/package.json +2 -2
- package/src/commands/choice-sets.spec.ts +44 -0
- package/src/commands/choice-sets.ts +39 -2
- package/src/commands/entities.spec.ts +70 -8
- package/src/commands/entities.ts +40 -17
- package/src/commands/records.spec.ts +29 -0
- package/src/commands/records.ts +12 -1
- package/src/utils/validate.spec.ts +279 -12
- package/src/utils/validate.ts +694 -40
- package/tests/entities-lifecycle.e2e.test.ts +9 -8
- package/tests/performance.e2e.test.ts +32 -0
|
@@ -397,21 +397,21 @@ describe("df entities — entities lifecycle", () => {
|
|
|
397
397
|
"create",
|
|
398
398
|
name,
|
|
399
399
|
"--body",
|
|
400
|
-
'{"fields":[{"fieldName":"
|
|
400
|
+
'{"fields":[{"fieldName":"oldColumn","type":"STRING"}]}',
|
|
401
401
|
]);
|
|
402
402
|
const id: string = created.Data.Id;
|
|
403
403
|
try {
|
|
404
404
|
const schema = cli(["entities", "get", id]);
|
|
405
405
|
const oldField = (schema.Data.Fields as Json[]).find(
|
|
406
|
-
(f) => f.Name === "
|
|
406
|
+
(f) => f.Name === "oldColumn",
|
|
407
407
|
);
|
|
408
|
-
if (!oldField) throw new Error("scratch missing '
|
|
408
|
+
if (!oldField) throw new Error("scratch missing 'oldColumn'");
|
|
409
409
|
const body = JSON.stringify({
|
|
410
410
|
addFields: [{ fieldName: "status", type: "STRING" }],
|
|
411
411
|
updateFields: [
|
|
412
412
|
{ id: oldField.Id, displayName: "Old Column" },
|
|
413
413
|
],
|
|
414
|
-
removeFields: [{ fieldName: "
|
|
414
|
+
removeFields: [{ fieldName: "oldColumn" }],
|
|
415
415
|
});
|
|
416
416
|
const updated = cli([
|
|
417
417
|
"entities",
|
|
@@ -426,7 +426,7 @@ describe("df entities — entities lifecycle", () => {
|
|
|
426
426
|
expect(updated.Result).toBe("Success");
|
|
427
427
|
expect(updated.Code).toBe("EntityUpdated");
|
|
428
428
|
expect(updated.Data.Id).toBe(id);
|
|
429
|
-
expect(updated.Data.RemovedFields).toContain("
|
|
429
|
+
expect(updated.Data.RemovedFields).toContain("oldColumn");
|
|
430
430
|
expect(updated.Data.Reason).toBe("S9 composition test");
|
|
431
431
|
} finally {
|
|
432
432
|
runDf([
|
|
@@ -482,9 +482,10 @@ describe("df entities — entities lifecycle", () => {
|
|
|
482
482
|
"update",
|
|
483
483
|
"pre-network",
|
|
484
484
|
"--body",
|
|
485
|
-
'{"addFields":[{"fieldName":"
|
|
485
|
+
'{"addFields":[{"fieldName":"duplicate","type":"STRING"},{"fieldName":"DUPLICATE","type":"STRING"}]}',
|
|
486
486
|
],
|
|
487
|
-
message:
|
|
487
|
+
message:
|
|
488
|
+
"Duplicate field name 'DUPLICATE' (case-insensitive)",
|
|
488
489
|
},
|
|
489
490
|
{
|
|
490
491
|
label: "addFields ∩ removeFields conflict",
|
|
@@ -515,7 +516,7 @@ describe("df entities — entities lifecycle", () => {
|
|
|
515
516
|
it(
|
|
516
517
|
"S11: update refuses removeFields without --yes and --reason",
|
|
517
518
|
() => {
|
|
518
|
-
const body = '{"removeFields":[{"fieldName":"
|
|
519
|
+
const body = '{"removeFields":[{"fieldName":"oldColumn"}]}';
|
|
519
520
|
|
|
520
521
|
const noFlags = expectFailure(
|
|
521
522
|
runDf(["entities", "update", "pre-network", "--body", body]),
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { describe, it } from "vitest";
|
|
2
|
+
import {
|
|
3
|
+
type E2EManifest,
|
|
4
|
+
MANIFEST_PATH,
|
|
5
|
+
} from "../../../tests/e2e-shared/global-setup";
|
|
6
|
+
import {
|
|
7
|
+
assertHelpCommandDuration,
|
|
8
|
+
EXEC_TIMEOUT,
|
|
9
|
+
readManifest,
|
|
10
|
+
} from "../../../tests/e2e-shared/helpers";
|
|
11
|
+
|
|
12
|
+
const HELP_BUDGET_MS = 1_000;
|
|
13
|
+
|
|
14
|
+
const manifest = readManifest<E2EManifest>(MANIFEST_PATH);
|
|
15
|
+
const projectDir = manifest.sharedInstall.tempDir;
|
|
16
|
+
|
|
17
|
+
// Performance budgets are unreliable on Windows CI runners; skip there.
|
|
18
|
+
describe.skipIf(process.platform === "win32")("data-fabric performance", () => {
|
|
19
|
+
it(
|
|
20
|
+
`uip df -h completes within ${HELP_BUDGET_MS}ms`,
|
|
21
|
+
() => {
|
|
22
|
+
assertHelpCommandDuration({
|
|
23
|
+
projectDir,
|
|
24
|
+
packageName: "@uipath/data-fabric-tool",
|
|
25
|
+
args: "df -h",
|
|
26
|
+
thresholdMs: HELP_BUDGET_MS,
|
|
27
|
+
testFileUrl: import.meta.url,
|
|
28
|
+
});
|
|
29
|
+
},
|
|
30
|
+
EXEC_TIMEOUT,
|
|
31
|
+
);
|
|
32
|
+
});
|