@uipath/platform-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 ADDED
@@ -0,0 +1,46 @@
1
+ # @uipath/platform-tool
2
+
3
+ `uip` tool for organization-level UiPath platform resources, mostly licensing:
4
+ tenant allocations, user bundles, group allocation rules, consumables, user
5
+ usage and top-ups, and folder outcome billing. It adds the `uip platform`
6
+ command group. Page: [docs/tools/platform.md](../../docs/tools/platform.md).
7
+
8
+ ## Commands
9
+
10
+ | Command | Purpose |
11
+ | --- | --- |
12
+ | `tenants licenses get <tenant-key>` | Allocated, available and consumed quantities per product for a tenant |
13
+ | `tenants licenses set <tenant-key> --input <path>` | Apply a JSON delta (`[{"code":"UNATT","quantity":5}]`), overlaid by product code |
14
+ | `tenants folder-outcome-billing get <tenant-id> <folder-key>` | Show whether outcome billing is on for a folder |
15
+ | `tenants folder-outcome-billing set <tenant-id> <folder-key> --enabled <bool>` | Turn outcome billing on or off for a folder |
16
+ | `users licenses get <user>` / `set <user> --input <path>` | User bundle leases for one directory user (name or email prefix, one match) |
17
+ | `users licenses available` | Account-level user-bundle totals and what is left |
18
+ | `users usage list` / `get [user]` | Per-user license consumption; `get` with no user shows your own |
19
+ | `users top-ups create <user>` / `get <job-id>` / `request` | Grant a top-up (admin), check the grant job, or ask admins for one |
20
+ | `groups rules get` / `details <group>` / `set <group> --input <path>` | Group license-allocation rules and quotas |
21
+ | `licenses summary` | Organization license summary: robots, user bundles, consumables |
22
+ | `licenses consumables get` | Consumables report; `--mode summary`, `daily` or `folders` |
23
+
24
+ All commands except `licenses consumables get` take
25
+ `--organization <account-id>` to target another organization than the one
26
+ you logged in to.
27
+
28
+ ## Examples
29
+
30
+ ```bash
31
+ uip platform licenses summary --output json
32
+ uip platform tenants licenses get <tenant-key>
33
+ uip platform tenants licenses set <tenant-key> --input ./delta.json
34
+ uip platform users licenses get "jane.doe@example.com"
35
+ uip platform groups rules set "RPA Developers" --input ./group-rule.json
36
+ uip platform users top-ups create "jane.doe@example.com" --wait
37
+ uip platform licenses consumables get --mode daily --tenant default --unit AIU \
38
+ --start-date 2025-01-01 --end-date 2025-01-31
39
+ ```
40
+
41
+ ## Authentication
42
+
43
+ Run `uip login` first. The organization id and name come from the login; a
44
+ login that lacks the organization name fails with a hint to log in again.
45
+ Reading or changing other users, groups and tenants needs admin rights;
46
+ `users usage get` with no user and `users top-ups request` act on yourself.
@@ -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
- apps,
630
- open_default as default,
631
- openApp
611
+ open_default as default
632
612
  };
633
613
 
634
- //# debugId=42C9AEC59ECC644E64756E2164756E21
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
- metadata,
5
- registerCommands
6
- } from "./tool-yn5h8ekg.js";
7
- import"./tool-1de529jm.js";
4
+ metadata2,
5
+ registerCommands2
6
+ } from "./tool-hcyjrc82.js";
8
7
 
9
8
  // src/index.ts
10
9
  var program = new Command;
11
- program.name(metadata.commandPrefix).description(metadata.description).version(metadata.version);
12
- await registerCommands(program);
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=A9AF5D9DCB90B50764756E2164756E21
14
+ //# debugId=E617823BB0C0DA9964756E2164756E21
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __commonJS
3
- } from "./tool-1de529jm.js";
3
+ } from "./tool-epsr41wx.js";
4
4
 
5
5
  // ../../node_modules/jmespath/jmespath.js
6
6
  var require_jmespath = __commonJS(function(exports) {
@@ -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=9FA8E718B2F80BEA64756E2164756E21
3151
+ //# debugId=41DC6971B94BC54964756E2164756E21
@@ -18,7 +18,7 @@ var __toESM = (mod, isNodeMode, target) => {
18
18
  return cached;
19
19
  }
20
20
  target = mod != null ? __create(__getProtoOf(mod)) : {};
21
- const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
21
+ const to = isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
22
22
  if (mod && typeof mod === "object" || typeof mod === "function") {
23
23
  for (let key of __getOwnPropNames(mod))
24
24
  if (!__hasOwnProp.call(to, key))
@@ -32,8 +32,17 @@ var __toESM = (mod, isNodeMode, target) => {
32
32
  return to;
33
33
  };
34
34
  var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
35
+ var __exportCjs = (target, getters, setters) => {
36
+ for (var name in getters)
37
+ __defProp(target, name, {
38
+ get: getters[name],
39
+ set: setters[name],
40
+ enumerable: true,
41
+ configurable: true
42
+ });
43
+ };
35
44
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
36
45
 
37
- export { __toESM, __commonJS, __require };
46
+ export { __toESM, __commonJS, __exportCjs, __require };
38
47
 
39
- //# debugId=4A15A0D6FCDB684764756E2164756E21
48
+ //# debugId=6692E9B4C735B07364756E2164756E21