@uipath/packager-tool-functions 0.0.8 → 1.196.0

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,40 @@
1
+ export const EXCLUDED_NAMES = new Set([
2
+ "agent.json",
3
+ "project.uiproj",
4
+ "bindings.json",
5
+ "entry-points.json",
6
+ ".DS_Store",
7
+ "Thumbs.db",
8
+ ]);
9
+
10
+ export const EXCLUDED_DIRECTORIES = new Set([
11
+ "evaluations",
12
+ "evals",
13
+ ".function-builder",
14
+ "node_modules",
15
+ "__pycache__",
16
+ ".pytest_cache",
17
+ ".venv",
18
+ "venv",
19
+ "env",
20
+ ".git",
21
+ ".vscode",
22
+ ".idea",
23
+ ".local",
24
+ ]);
25
+
26
+ export const CONTENT_TYPE = "function";
27
+ export const TARGET_RUNTIME = "python";
28
+ export const UIPATH_JSON_FILE_NAME = "uipath.json";
29
+ export const BINDINGS_SOURCE_FILE_NAME = "bindings.json";
30
+ export const BINDINGS_VERSION = "2.0";
31
+ export const ENTRY_POINT_TYPE = "function";
32
+
33
+ const SCHEMA_BASE_URL = "https://cloud.uipath.com/draft/2024-12";
34
+
35
+ export const SCHEMAS = {
36
+ Bindings: `${SCHEMA_BASE_URL}/bindings`,
37
+ EntryPoint: `${SCHEMA_BASE_URL}/entry-point`,
38
+ Operate: `${SCHEMA_BASE_URL}/operate`,
39
+ PackageDescriptor: `${SCHEMA_BASE_URL}/package-descriptor`,
40
+ } as const;
@@ -0,0 +1 @@
1
+ export { buildPyFunctionsPackage } from "./build-py-functions-package.js";
package/src/types.ts ADDED
@@ -0,0 +1,24 @@
1
+ import type { IFileSystem } from "@uipath/solutionpackager-tool-core";
2
+
3
+ export const Languages = {
4
+ JavaScript: "javascript",
5
+ Python: "python",
6
+ } as const;
7
+
8
+ export type Language = (typeof Languages)[keyof typeof Languages];
9
+
10
+ export const LanguageLabels: Record<Language, string> = {
11
+ [Languages.JavaScript]: "JS/TS",
12
+ [Languages.Python]: "Python",
13
+ };
14
+
15
+ export interface BuildPackageOptions {
16
+ projectPath: string;
17
+ outputPath: string;
18
+ projectStorageId: string;
19
+ }
20
+
21
+ export type BuildPackageFn = (
22
+ fileSystem: IFileSystem,
23
+ options: BuildPackageOptions,
24
+ ) => Promise<void>;