@uipath/pm-tool 1.205.0-preview.277 → 1.206.0-preview.279
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -0
- package/dist/{index-sby22td6.js → index-nzr4mx5p.js} +2 -22
- package/dist/index.js +6 -7
- package/dist/{jmespath-231m3hyn.js → jmespath-ab6tdc42.js} +1 -1
- package/dist/{js-yaml-88tdqrtd.js → js-yaml-a2bk27p6.js} +1 -3
- package/dist/{tool-cm7evk0c.js → tool-4th1vs7x.js} +1524 -703
- package/dist/{tool-1de529jm.js → tool-epsr41wx.js} +12 -3
- package/dist/tool.js +6 -7
- package/package.json +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# @uipath/pm-tool
|
|
2
|
+
|
|
3
|
+
`uip` tool for UiPath Process Mining. It adds the `uip pm` command group:
|
|
4
|
+
create process apps from templates, upload data and run ingestions, edit and
|
|
5
|
+
run the dbt transformations, edit the app model and dashboards, and query
|
|
6
|
+
the data (aggregates, conformance, root-cause analysis). Full page:
|
|
7
|
+
[docs/tools/pm.md](../../docs/tools/pm.md).
|
|
8
|
+
|
|
9
|
+
## Commands
|
|
10
|
+
|
|
11
|
+
| Group | Purpose |
|
|
12
|
+
| --- | --- |
|
|
13
|
+
| `apps` | List, get, create, delete and publish process apps; `changes`, `publications`; `data-model`, `model` (fields, dashboards, metrics) and `data-mapping` |
|
|
14
|
+
| `app-types` | List app templates and get a template version's app model |
|
|
15
|
+
| `files` | Upload a data file to an app (chunked blob upload) |
|
|
16
|
+
| `ingestions` | Start an ingestion (or load the template's sample data), cancel it, read its logs |
|
|
17
|
+
| `transformations` | List, get, create and update dbt files; `run`, `apply`, `cancel`, `status`, `logs` |
|
|
18
|
+
| `query` | `run`, `details`, `rca`, `insights`, `info`, `layout`, `percentile` |
|
|
19
|
+
| `conformance` | Conformance rate, activities, transitions, deviations; upload a BPMN reference model |
|
|
20
|
+
| `deviations` | List, accept and stop accepting deviations |
|
|
21
|
+
| `simulations` | List saved simulations |
|
|
22
|
+
|
|
23
|
+
Most commands take `--stage dev|published`. Writes that replace a file or
|
|
24
|
+
model are ETag-safe: run the matching `get` first and pass its ETag as
|
|
25
|
+
`--etag`.
|
|
26
|
+
|
|
27
|
+
## Examples
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
uip pm app-types list
|
|
31
|
+
uip pm apps create "Purchase to Pay" --type <app-type-key>
|
|
32
|
+
uip pm files upload <app-id> ./events.csv
|
|
33
|
+
uip pm ingestions create <app-id> --wait
|
|
34
|
+
uip pm transformations get <app-id> <path> --destination ./model.sql
|
|
35
|
+
uip pm transformations update <app-id> <path> --file ./model.sql --etag <etag>
|
|
36
|
+
uip pm transformations run <app-id> --wait
|
|
37
|
+
uip pm apps publish <app-id>
|
|
38
|
+
uip pm query info <app-id>
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Authentication
|
|
42
|
+
|
|
43
|
+
Run `uip login` first. The login must carry an organization and tenant name,
|
|
44
|
+
and the tenant must have Process Mining enabled.
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import"./tool-1de529jm.js";
|
|
2
|
-
|
|
3
1
|
// ../../node_modules/open/index.js
|
|
4
2
|
import process7 from "node:process";
|
|
5
3
|
import path from "node:path";
|
|
@@ -548,22 +546,6 @@ var open = (target, options) => {
|
|
|
548
546
|
target
|
|
549
547
|
});
|
|
550
548
|
};
|
|
551
|
-
var openApp = (name, options) => {
|
|
552
|
-
if (typeof name !== "string" && !Array.isArray(name)) {
|
|
553
|
-
throw new TypeError("Expected a valid `name`");
|
|
554
|
-
}
|
|
555
|
-
const { arguments: appArguments = [] } = options ?? {};
|
|
556
|
-
if (appArguments !== undefined && appArguments !== null && !Array.isArray(appArguments)) {
|
|
557
|
-
throw new TypeError("Expected `appArguments` as Array type");
|
|
558
|
-
}
|
|
559
|
-
return baseOpen({
|
|
560
|
-
...options,
|
|
561
|
-
app: {
|
|
562
|
-
name,
|
|
563
|
-
arguments: appArguments
|
|
564
|
-
}
|
|
565
|
-
});
|
|
566
|
-
};
|
|
567
549
|
function detectArchBinary(binary) {
|
|
568
550
|
if (typeof binary === "string" || Array.isArray(binary)) {
|
|
569
551
|
return binary;
|
|
@@ -626,9 +608,7 @@ defineLazyProperty(apps, "safari", () => detectPlatformBinary({
|
|
|
626
608
|
}));
|
|
627
609
|
var open_default = open;
|
|
628
610
|
export {
|
|
629
|
-
|
|
630
|
-
open_default as default,
|
|
631
|
-
openApp
|
|
611
|
+
open_default as default
|
|
632
612
|
};
|
|
633
613
|
|
|
634
|
-
//# debugId=
|
|
614
|
+
//# debugId=6F288C058A3A412164756E2164756E21
|
package/dist/index.js
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
Command,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
} from "./tool-
|
|
7
|
-
import"./tool-1de529jm.js";
|
|
4
|
+
metadata2,
|
|
5
|
+
registerCommands2
|
|
6
|
+
} from "./tool-4th1vs7x.js";
|
|
8
7
|
|
|
9
8
|
// src/index.ts
|
|
10
9
|
var program = new Command;
|
|
11
|
-
program.name(
|
|
12
|
-
await
|
|
10
|
+
program.name(metadata2.commandPrefix).description(metadata2.description).version(metadata2.version);
|
|
11
|
+
await registerCommands2(program);
|
|
13
12
|
program.parse(process.argv);
|
|
14
13
|
|
|
15
|
-
//# debugId=
|
|
14
|
+
//# debugId=E617823BB0C0DA9964756E2164756E21
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import"./tool-1de529jm.js";
|
|
2
|
-
|
|
3
1
|
// ../../node_modules/js-yaml/dist/js-yaml.mjs
|
|
4
2
|
function getDefaultExportFromCjs(x) {
|
|
5
3
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
@@ -3150,4 +3148,4 @@ export {
|
|
|
3150
3148
|
types
|
|
3151
3149
|
};
|
|
3152
3150
|
|
|
3153
|
-
//# debugId=
|
|
3151
|
+
//# debugId=41DC6971B94BC54964756E2164756E21
|