@uipath/packager-tool-datafabric 1.204.0 → 1.205.0-preview.258

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.
@@ -0,0 +1,31 @@
1
+ import type { IFileSystem } from "@uipath/solutionpackager-tool-core";
2
+ /**
3
+ * `target` with every symlink in its existing prefix resolved. A path that
4
+ * does not exist yet keeps its missing tail lexically, so a new file is judged
5
+ * by the directory it would land in.
6
+ *
7
+ * Walks with `exists`, not by catching: the runtime's `realpath` returns a
8
+ * missing path unchanged rather than throwing. A backend without symlinks
9
+ * (the browser) has no `realpath` and needs none.
10
+ */
11
+ export declare function canonicalPathAsync(target: string, fs: IFileSystem): Promise<string>;
12
+ /** Where `target` and `root` really are, and whether the first is strictly
13
+ * inside the second once symlinks are followed. */
14
+ export declare function resolvesInsideAsync(target: string, root: string, fs: IFileSystem): Promise<{
15
+ inside: boolean;
16
+ resolved: string;
17
+ root: string;
18
+ }>;
19
+ /**
20
+ * Whether the directory entry at `target` is a symbolic link — live OR
21
+ * dangling — judged without following it (`lstat`, via the filesystem's
22
+ * `isSymbolicLink`).
23
+ *
24
+ * The dangling case is the one containment alone misses: the path judges as
25
+ * "missing, inside the solution", and `writeFile` then follows the link and
26
+ * creates its target wherever it points. `lstat` also gets case folding right
27
+ * on its own: on a case-insensitive filesystem it finds a differently-cased
28
+ * entry (which a write would open), and on a case-sensitive one only the
29
+ * exact name. A backend without links (the browser) answers false.
30
+ */
31
+ export declare function isSymlinkEntryAsync(target: string, fs: IFileSystem): Promise<boolean>;
package/dist/index.d.ts CHANGED
@@ -3,10 +3,13 @@ export { ENTITY_VALIDATION_FAILED, EntityProjectTool, } from "./pack/entity-proj
3
3
  export { EntityToolFactory } from "./pack/entity-tool-factory.js";
4
4
  export type { PairFailure, PairFailureCode, PairResult, } from "./pack/verify-pair.js";
5
5
  export { findSolutionRoot, verifyPair } from "./pack/verify-pair.js";
6
+ export { type LocalEntityRef, readSolutionInlineEntities, } from "./resource/local-entities.js";
6
7
  export type { ResourceParseFailure } from "./resource/resource-io.js";
7
8
  export { EntityResourceError, serialize, serializeEntityJson, unwrapResource, updateResourceSchema, wrapEntityJson, } from "./resource/resource-io.js";
8
9
  export type { ResourceFolderRef, ResourceSpec, SolutionResource, UnifiedResourceFile, } from "./resource/unified-resource-file.js";
9
- export { ENTITY_RESOURCE_API_VERSION, ENTITY_RESOURCE_DOC_VERSION, ENTITY_RESOURCE_KIND, ENTITY_RESOURCE_TYPE, entityResourcePath, SOLUTION_FOLDER, } from "./resource/unified-resource-file.js";
10
- export { createEntitySkeleton, SYSTEM_FIELD_TEMPLATES, } from "./schema/create-entity-skeleton.js";
10
+ export { ENTITY_RESOURCE_API_VERSION, ENTITY_RESOURCE_DIR, ENTITY_RESOURCE_DOC_VERSION, ENTITY_RESOURCE_KIND, ENTITY_RESOURCE_TYPE, entityResourcePath, SOLUTION_FOLDER, } from "./resource/unified-resource-file.js";
11
+ export type { AuthoredFieldSpec } from "./schema/author-field.js";
12
+ export { AUTHORABLE_FIELD_TYPES, AuthoredFieldError, authorField, } from "./schema/author-field.js";
13
+ export { createEntitySkeleton, isLocallyAuthored, SYSTEM_FIELD_TEMPLATES, UNASSIGNED_FOLDER_ID, } from "./schema/create-entity-skeleton.js";
11
14
  export type { DiagnosticCode, EntityDiagnostic, ValidateEntityContext, } from "./schema/validate-entity.js";
12
15
  export { DIAGNOSTIC_CODES, validateEntity } from "./schema/validate-entity.js";