@uipath/ontology-tool 1.207.0-preview.396 → 1.207.0-preview.399

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.
@@ -6,7 +6,7 @@ import {
6
6
  getSdkUserAgentToken,
7
7
  addSdkUserAgentHeader,
8
8
  installSdkUserAgentHeader
9
- } from "./tool-b4rxpt4h.js";
9
+ } from "./tool-h4pkhvp6.js";
10
10
  import"./tool-nycpvpet.js";
11
11
  import {
12
12
  JsonSerializerFactory2,
@@ -19,7 +19,7 @@ import {
19
19
  resolveSessionIdentity,
20
20
  getLoginStatusAsync,
21
21
  getAuthContext
22
- } from "./tool-1y1ef6qy.js";
22
+ } from "./tool-nvpjb84n.js";
23
23
  // ../packager/packager-core/src/i18n/types.ts
24
24
  function isPluralForm(value) {
25
25
  return typeof value === "object" && value !== null && "other" in value;
package/dist/index.js CHANGED
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env bun
2
2
  import {
3
3
  Command
4
- } from "./tool-b4rxpt4h.js";
4
+ } from "./tool-h4pkhvp6.js";
5
5
  import"./tool-nycpvpet.js";
6
- import"./tool-vajrgdtr.js";
6
+ import"./tool-x0p94b19.js";
7
7
  import {
8
8
  metadata2,
9
9
  registerCommands2
10
- } from "./tool-w4x39zpe.js";
11
- import"./tool-5ybsrypf.js";
10
+ } from "./tool-m5bj5t4t.js";
11
+ import"./tool-ps5fq9wp.js";
12
12
 
13
13
  // src/index.ts
14
14
  var program = new Command;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getFileSystem,
3
3
  logger
4
- } from "./tool-b4rxpt4h.js";
4
+ } from "./tool-h4pkhvp6.js";
5
5
  import"./tool-nycpvpet.js";
6
6
  import {
7
7
  ONTOLOGY_RESOURCE_KIND,
@@ -195,7 +195,7 @@ function linkOf(field) {
195
195
  return;
196
196
  }
197
197
  async function readLocalEntityColumnsAsync(solutionFolder) {
198
- const { inlineEntityGetAsync, inlineEntityListAllAsync } = await import("./inline-zz6vvray.js");
198
+ const { inlineEntityGetAsync, inlineEntityListAllAsync } = await import("./inline-jvjvnb90.js");
199
199
  const rows = await inlineEntityListAllAsync({ cwd: solutionFolder });
200
200
  const columns = [];
201
201
  const withProject = (await Promise.all(rows.filter((row) => row.projectName !== undefined).map(projectEntityNamesAsync))).flat();
@@ -402,7 +402,7 @@ async function findResourceFileAsync(solutionFolder, key) {
402
402
 
403
403
  // ../packager/packager-tool-ontology/src/inline/solution-session.ts
404
404
  async function openSolutionSessionAsync(solutionFolder, options = {}) {
405
- const { createLocalResource, createResourceBuilderServices } = await import("./index-s5xhee2c.js");
405
+ const { createLocalResource, createResourceBuilderServices } = await import("./index-9hbfe67f.js");
406
406
  const { ErrorCodes } = await import("./index-n58agv5e.js");
407
407
  const services = await createResourceBuilderServices();
408
408
  const builder = await services.getSolutionBuilder(solutionFolder, options.readOnly === true);
@@ -609,7 +609,7 @@ async function removeHalfCreatedAsync(session, created, original) {
609
609
  }
610
610
  }
611
611
  async function ontologyCreateAsync(name, init, options = {}) {
612
- const { validateResourceName } = await import("./index-s5xhee2c.js");
612
+ const { validateResourceName } = await import("./index-9hbfe67f.js");
613
613
  const valid = validateResourceName(name, { optionName: "<Name>" });
614
614
  if (!valid.ok) {
615
615
  throw new OntologyInlineError(valid.message, valid.instructions, "InvalidOntologyName");
@@ -2,7 +2,7 @@ import {
2
2
  getFileSystem,
3
3
  catchError,
4
4
  validateNameFormat
5
- } from "./tool-b4rxpt4h.js";
5
+ } from "./tool-h4pkhvp6.js";
6
6
  import"./tool-nycpvpet.js";
7
7
 
8
8
  // ../packager/packager-tool-datafabric/src/canonical-path.ts
@@ -2,17 +2,17 @@ import {
2
2
  catchError,
3
3
  OutputFormatter,
4
4
  reportFailure
5
- } from "./tool-b4rxpt4h.js";
5
+ } from "./tool-h4pkhvp6.js";
6
6
  import"./tool-nycpvpet.js";
7
7
  import {
8
8
  failWithDomainCode,
9
9
  succeed,
10
10
  listWindow
11
- } from "./tool-vajrgdtr.js";
11
+ } from "./tool-x0p94b19.js";
12
12
  import {
13
13
  isOntologyServiceMissing,
14
14
  ontologyNotSupported
15
- } from "./tool-sgrs0rhy.js";
15
+ } from "./tool-9vgp1bfa.js";
16
16
 
17
17
  // src/utils/ontology-live.ts
18
18
  var folderLabel = (folder) => ("folderKey" in folder) ? folder.folderKey : folder.folderPath;
@@ -25,7 +25,7 @@ var liveSummary = (item, folder) => ({
25
25
  });
26
26
  var failNotSupported = (code, error) => OutputFormatter.error({ Code: code, ...ontologyNotSupported(error) });
27
27
  async function listLiveOntologies(folder, window = {}) {
28
- const { connectOrFail } = await import("./sdk-client-knfd9z5r.js");
28
+ const { connectOrFail } = await import("./sdk-client-9794mvw7.js");
29
29
  const svc = await connectOrFail();
30
30
  if (!svc)
31
31
  return;
@@ -44,7 +44,7 @@ async function listLiveOntologies(folder, window = {}) {
44
44
  var notFound = (name, folder) => failWithDomainCode("OntologyNotFound", `No ontology '${name}' in folder '${folderLabel(folder)}'`, "folderKey" in folder ? "Check the folder key and the deployed name (the new name if the deploy used RenameInSolution). 'uip ont list --folder-key <key>' lists what is there." : "Check the folder path and the deployed name (the new name if the deploy used RenameInSolution). 'uip ont list --folder-path <path>' lists what is there.");
45
45
  var isNotFoundError = (error) => error.statusCode === 404 || error.status === 404;
46
46
  async function getLiveOntology(name, folder) {
47
- const { connectOrFail } = await import("./sdk-client-knfd9z5r.js");
47
+ const { connectOrFail } = await import("./sdk-client-9794mvw7.js");
48
48
  const svc = await connectOrFail();
49
49
  if (!svc)
50
50
  return;
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  getLoginStatusAsync
3
- } from "./tool-1y1ef6qy.js";
3
+ } from "./tool-nvpjb84n.js";
4
4
  import {
5
5
  catchError,
6
6
  reportFailure
7
- } from "./tool-b4rxpt4h.js";
7
+ } from "./tool-h4pkhvp6.js";
8
8
  import"./tool-nycpvpet.js";
9
9
  import {
10
10
  require_src
11
11
  } from "./tool-4b88bsfh.js";
12
12
  import {
13
13
  failNotLoggedIn
14
- } from "./tool-5ybsrypf.js";
14
+ } from "./tool-ps5fq9wp.js";
15
15
  import {
16
16
  __toESM,
17
17
  __commonJS,
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  RESULTS,
3
3
  extractErrorDetails
4
- } from "./tool-b4rxpt4h.js";
4
+ } from "./tool-h4pkhvp6.js";
5
5
  import"./tool-nycpvpet.js";
6
6
  import {
7
7
  isOntologyServiceMissing,
8
8
  ontologyNotSupported
9
- } from "./tool-sgrs0rhy.js";
9
+ } from "./tool-9vgp1bfa.js";
10
10
 
11
11
  // src/utils/service-validation.ts
12
12
  class ServiceValidationError extends Error {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  notSupportedFailure
3
- } from "./tool-b4rxpt4h.js";
3
+ } from "./tool-h4pkhvp6.js";
4
4
 
5
5
  // src/utils/service-support.ts
6
6
  var NON_JSON = /^Server returned non-JSON response \(\d{3} ([^)]*)\): (.*)$/s;
@@ -2317,8 +2317,10 @@ function pseudonymize(input) {
2317
2317
  // ../common/src/singleton.ts
2318
2318
  var PREFIX = "@uipath/common/";
2319
2319
  var _g = globalThis;
2320
- function singleton(ctorOrName) {
2321
- const name = typeof ctorOrName === "string" ? ctorOrName : ctorOrName.name;
2320
+ function singleton(name) {
2321
+ if (typeof name !== "string") {
2322
+ throw new TypeError("singleton() takes a string name. A class name is not stable across bundles.");
2323
+ }
2322
2324
  const key = Symbol.for(PREFIX + name);
2323
2325
  return {
2324
2326
  get(fallback) {
@@ -3779,7 +3781,7 @@ class SimpleLogger {
3779
3781
  }
3780
3782
  };
3781
3783
  }
3782
- var loggerSingleton = singleton(SimpleLogger);
3784
+ var loggerSingleton = singleton("SimpleLogger");
3783
3785
  var logger = SimpleLogger.getInstance();
3784
3786
  function getLogFilePath() {
3785
3787
  return logger.getLogFilePath();
@@ -7099,4 +7101,4 @@ var shippedKeysSlot = singleton("ShipSucceededDedupeKeys");
7099
7101
  var factorySlot = singleton("PackagerFactoryProvider");
7100
7102
  export { getFileSystem, catchError, RESULTS, extractErrorDetails, notSupportedFailure, Command, Option, logger, Pagination, OutputFormatter, processContext, validateNameFormat, isGuid, parseLimit, parseOffset, reportFailure, getSdkUserAgentToken, addSdkUserAgentHeader, installSdkUserAgentHeader };
7101
7103
 
7102
- //# debugId=C264AE30676F8C3264756E2164756E21
7104
+ //# debugId=0F08920B5FC18D5864756E2164756E21
@@ -4,7 +4,7 @@ import {
4
4
  Option,
5
5
  OutputFormatter,
6
6
  processContext
7
- } from "./tool-b4rxpt4h.js";
7
+ } from "./tool-h4pkhvp6.js";
8
8
  import {
9
9
  failWithDomainCode,
10
10
  failLocalRequired,
@@ -18,16 +18,16 @@ import {
18
18
  run,
19
19
  addListWindowOptions,
20
20
  listWindow
21
- } from "./tool-vajrgdtr.js";
21
+ } from "./tool-x0p94b19.js";
22
22
  import {
23
23
  failInvalidArgument
24
- } from "./tool-5ybsrypf.js";
24
+ } from "./tool-ps5fq9wp.js";
25
25
  // package.json
26
26
  var package_default = {
27
27
  name: "@uipath/ontology-tool",
28
28
  author: "UiPath",
29
29
  license: "SEE LICENSE IN LICENSE.txt",
30
- version: "1.207.0-preview.396",
30
+ version: "1.207.0-preview.399",
31
31
  description: "Check UiPath ontology artifact files locally.",
32
32
  private: false,
33
33
  repository: {
@@ -396,7 +396,7 @@ var registerOntologyCommands = (program) => {
396
396
  if (!scope)
397
397
  return;
398
398
  if (scope !== "local") {
399
- const { getLiveOntology } = await import("./ontology-live-tnvyfnh3.js");
399
+ const { getLiveOntology } = await import("./ontology-live-txahb1ma.js");
400
400
  return getLiveOntology(name, scope);
401
401
  }
402
402
  const result = await run((lib) => lib.ontologyGetAsync(name, inSolution(options)));
@@ -408,7 +408,7 @@ var registerOntologyCommands = (program) => {
408
408
  if (!scope)
409
409
  return;
410
410
  if (scope !== "local") {
411
- const { listLiveOntologies } = await import("./ontology-live-tnvyfnh3.js");
411
+ const { listLiveOntologies } = await import("./ontology-live-txahb1ma.js");
412
412
  return listLiveOntologies(scope, options);
413
413
  }
414
414
  const result = await run((lib) => lib.ontologyListAsync(inSolution(options)));
@@ -451,14 +451,14 @@ var entryOf = (name, violations, serviceValidation) => ({
451
451
  });
452
452
  var needsService = (result) => !hasError(result.violations);
453
453
  async function withServiceResultsAsync(results, localEntries) {
454
- const { connectOrFail } = await import("./sdk-client-knfd9z5r.js");
454
+ const { connectOrFail } = await import("./sdk-client-9794mvw7.js");
455
455
  const service = await connectOrFail(undefined, (hint) => {
456
456
  failWithEntries("ServiceValidationUnavailable", "Not logged in; the ontology service check could not run", `${hint} Run 'uip login'; validation always needs the ontology service.`, "authentication_required", localEntries, RESULTS.AuthenticationError);
457
457
  });
458
458
  if (!service)
459
459
  return;
460
460
  const { ARTIFACT_TYPE_INFO } = await import("./index-54ywa7rb.js");
461
- const sv = await import("./service-validation-rqjc3a9f.js");
461
+ const sv = await import("./service-validation-gsb8bs1r.js");
462
462
  const serviceViolations = async (artifact) => {
463
463
  const result = await sv.validateArtifactContent({
464
464
  fileName: artifact.fileName,
@@ -556,4 +556,4 @@ var registerCommands2 = async (program) => {
556
556
 
557
557
  export { metadata2, registerCommands2 };
558
558
 
559
- //# debugId=A12EB9C7B7327F8F64756E2164756E21
559
+ //# debugId=1FE0A15526BD6E0564756E2164756E21
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getFileSystem
3
- } from "./tool-b4rxpt4h.js";
3
+ } from "./tool-h4pkhvp6.js";
4
4
  import {
5
5
  __require
6
6
  } from "./tool-epsr41wx.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  RESULTS,
3
3
  OutputFormatter
4
- } from "./tool-b4rxpt4h.js";
4
+ } from "./tool-h4pkhvp6.js";
5
5
 
6
6
  // src/utils/output.ts
7
7
  function failNotLoggedIn(message, instructions) {
@@ -5,7 +5,7 @@ import {
5
5
  parseLimit,
6
6
  parseOffset,
7
7
  reportFailure
8
- } from "./tool-b4rxpt4h.js";
8
+ } from "./tool-h4pkhvp6.js";
9
9
 
10
10
  // src/utils/ontology-output.ts
11
11
  var NOT_FOUND = new Set([
@@ -101,7 +101,7 @@ var inSolution = (options) => ({
101
101
  solutionFolder: options.solutionFolder
102
102
  });
103
103
  async function run(call) {
104
- const lib = await import("./inline-jqd3vt3r.js");
104
+ const lib = await import("./inline-1x4zr37q.js");
105
105
  try {
106
106
  return { value: await call(lib) };
107
107
  } catch (error) {
package/dist/tool.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  metadata2,
3
3
  registerCommands2
4
- } from "./tool-w4x39zpe.js";
5
- import"./tool-5ybsrypf.js";
6
- import"./tool-vajrgdtr.js";
7
- import"./tool-b4rxpt4h.js";
4
+ } from "./tool-m5bj5t4t.js";
5
+ import"./tool-ps5fq9wp.js";
6
+ import"./tool-x0p94b19.js";
7
+ import"./tool-h4pkhvp6.js";
8
8
  import"./tool-nycpvpet.js";
9
9
  export {
10
10
  metadata2 as metadata,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@uipath/ontology-tool",
3
3
  "author": "UiPath",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
- "version": "1.207.0-preview.396",
5
+ "version": "1.207.0-preview.399",
6
6
  "description": "Check UiPath ontology artifact files locally.",
7
7
  "private": false,
8
8
  "repository": {
@@ -27,5 +27,5 @@
27
27
  "files": [
28
28
  "dist"
29
29
  ],
30
- "gitHead": "84db055b46dc1f4bf3e2cf9e02eecd3bc0d06a13"
30
+ "gitHead": "040ed6e68e4b6e5268c0efc17f67d7309de8c630"
31
31
  }