@uipath/solutionpackager-tool-core 0.0.26

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.
Files changed (112) hide show
  1. package/README.md +308 -0
  2. package/dist/filesystem/file-system.d.ts +1 -0
  3. package/dist/filesystem/file-system.js +0 -0
  4. package/dist/filesystem/index.d.ts +5 -0
  5. package/dist/filesystem/index.js +3 -0
  6. package/dist/filesystem/path.d.ts +53 -0
  7. package/dist/filesystem/path.js +47 -0
  8. package/dist/filesystem/temporary-storage-service.d.ts +31 -0
  9. package/dist/filesystem/temporary-storage-service.js +46 -0
  10. package/dist/filesystem/zip-service.d.ts +25 -0
  11. package/dist/filesystem/zip-service.js +41 -0
  12. package/dist/i18n/i18n-manager.d.ts +128 -0
  13. package/dist/i18n/i18n-manager.js +104 -0
  14. package/dist/i18n/index.d.ts +15 -0
  15. package/dist/i18n/index.js +34 -0
  16. package/dist/i18n/locales/de.d.ts +37 -0
  17. package/dist/i18n/locales/de.js +38 -0
  18. package/dist/i18n/locales/en.d.ts +43 -0
  19. package/dist/i18n/locales/en.js +38 -0
  20. package/dist/i18n/locales/es-MX.d.ts +37 -0
  21. package/dist/i18n/locales/es-MX.js +38 -0
  22. package/dist/i18n/locales/es.d.ts +37 -0
  23. package/dist/i18n/locales/es.js +38 -0
  24. package/dist/i18n/locales/fr.d.ts +37 -0
  25. package/dist/i18n/locales/fr.js +38 -0
  26. package/dist/i18n/locales/ja.d.ts +37 -0
  27. package/dist/i18n/locales/ja.js +38 -0
  28. package/dist/i18n/locales/ko.d.ts +37 -0
  29. package/dist/i18n/locales/ko.js +38 -0
  30. package/dist/i18n/locales/pt-BR.d.ts +37 -0
  31. package/dist/i18n/locales/pt-BR.js +38 -0
  32. package/dist/i18n/locales/pt.d.ts +37 -0
  33. package/dist/i18n/locales/pt.js +38 -0
  34. package/dist/i18n/locales/ro.d.ts +37 -0
  35. package/dist/i18n/locales/ro.js +38 -0
  36. package/dist/i18n/locales/ru.d.ts +37 -0
  37. package/dist/i18n/locales/ru.js +38 -0
  38. package/dist/i18n/locales/tr.d.ts +37 -0
  39. package/dist/i18n/locales/tr.js +38 -0
  40. package/dist/i18n/locales/zh-CN.d.ts +37 -0
  41. package/dist/i18n/locales/zh-CN.js +38 -0
  42. package/dist/i18n/locales/zh-TW.d.ts +37 -0
  43. package/dist/i18n/locales/zh-TW.js +38 -0
  44. package/dist/i18n/locales/zu.d.ts +37 -0
  45. package/dist/i18n/locales/zu.js +38 -0
  46. package/dist/i18n/translation-service.d.ts +61 -0
  47. package/dist/i18n/translation-service.js +29 -0
  48. package/dist/i18n/types.d.ts +61 -0
  49. package/dist/i18n/types.js +20 -0
  50. package/dist/index.d.ts +5 -0
  51. package/dist/index.js +5 -0
  52. package/dist/models/build-configuration.d.ts +7 -0
  53. package/dist/models/build-configuration.js +6 -0
  54. package/dist/models/connection-info.d.ts +26 -0
  55. package/dist/models/connection-info.js +9 -0
  56. package/dist/models/index.d.ts +18 -0
  57. package/dist/models/index.js +8 -0
  58. package/dist/models/log-message.d.ts +28 -0
  59. package/dist/models/log-message.js +48 -0
  60. package/dist/models/nuget-constants.d.ts +34 -0
  61. package/dist/models/nuget-constants.js +10 -0
  62. package/dist/models/nuget-feed-model.d.ts +25 -0
  63. package/dist/models/nuget-feed-model.js +0 -0
  64. package/dist/models/nuget-package-info.d.ts +63 -0
  65. package/dist/models/nuget-package-info.js +0 -0
  66. package/dist/models/package-info.d.ts +29 -0
  67. package/dist/models/package-info.js +0 -0
  68. package/dist/models/project-options.d.ts +126 -0
  69. package/dist/models/project-options.js +7 -0
  70. package/dist/models/project-type.d.ts +21 -0
  71. package/dist/models/project-type.js +16 -0
  72. package/dist/models/solution-options.d.ts +72 -0
  73. package/dist/models/solution-options.js +0 -0
  74. package/dist/models/target-frameworks.d.ts +7 -0
  75. package/dist/models/target-frameworks.js +6 -0
  76. package/dist/models/tool-error-code.d.ts +18 -0
  77. package/dist/models/tool-error-code.js +7 -0
  78. package/dist/models/tool-result.d.ts +31 -0
  79. package/dist/models/tool-result.js +21 -0
  80. package/dist/models/uipath-project.d.ts +26 -0
  81. package/dist/models/uipath-project.js +0 -0
  82. package/dist/models/uipath-solution.d.ts +14 -0
  83. package/dist/models/uipath-solution.js +0 -0
  84. package/dist/package-descriptor/entry-points-file-model.d.ts +26 -0
  85. package/dist/package-descriptor/entry-points-file-model.js +0 -0
  86. package/dist/package-descriptor/index.d.ts +5 -0
  87. package/dist/package-descriptor/index.js +1 -0
  88. package/dist/package-descriptor/operate-file-model.d.ts +38 -0
  89. package/dist/package-descriptor/operate-file-model.js +0 -0
  90. package/dist/package-descriptor/package-descriptor-file-model.d.ts +12 -0
  91. package/dist/package-descriptor/package-descriptor-file-model.js +0 -0
  92. package/dist/package-descriptor/project-bindings-file-model.d.ts +82 -0
  93. package/dist/package-descriptor/project-bindings-file-model.js +7 -0
  94. package/dist/services/index.d.ts +10 -0
  95. package/dist/services/index.js +4 -0
  96. package/dist/services/nuget-packager.d.ts +39 -0
  97. package/dist/services/nuget-packager.js +105 -0
  98. package/dist/services/project-operation-context.d.ts +37 -0
  99. package/dist/services/project-operation-context.js +0 -0
  100. package/dist/services/project-tool-factory.d.ts +21 -0
  101. package/dist/services/project-tool-factory.js +0 -0
  102. package/dist/services/project-tool.d.ts +32 -0
  103. package/dist/services/project-tool.js +27 -0
  104. package/dist/services/solution-tool-factory.d.ts +14 -0
  105. package/dist/services/solution-tool-factory.js +0 -0
  106. package/dist/services/solution-tool.d.ts +32 -0
  107. package/dist/services/solution-tool.js +27 -0
  108. package/dist/services/tool-logger.d.ts +44 -0
  109. package/dist/services/tool-logger.js +0 -0
  110. package/dist/services/tools-factory-repository.d.ts +84 -0
  111. package/dist/services/tools-factory-repository.js +34 -0
  112. package/package.json +45 -0
@@ -0,0 +1,126 @@
1
+ import type { NugetPackageInfo } from "./nuget-package-info.js";
2
+ /**
3
+ * Rules configuration file type enum
4
+ */
5
+ export declare enum RulesConfigFileType {
6
+ Default = "Default",
7
+ AutomationOps = "AutomationOps",
8
+ Studio = "Studio"
9
+ }
10
+ /**
11
+ * Project options
12
+ */
13
+ export interface IProjectOptions {
14
+ /**
15
+ * Path to the project folder.
16
+ */
17
+ projectPath: string;
18
+ /**
19
+ * Whether to exclude configured sources
20
+ */
21
+ excludeConfiguredSources: boolean;
22
+ /**
23
+ * Path to NuGet sources configuration file
24
+ */
25
+ nuGetSourcesConfigPath?: string;
26
+ /**
27
+ * Log level for the operation
28
+ */
29
+ logLevel?: string;
30
+ }
31
+ /**
32
+ * Project restore options
33
+ */
34
+ export interface IProjectRestoreOptions extends IProjectOptions {
35
+ /**
36
+ * Output directory path
37
+ */
38
+ outputPath?: string;
39
+ }
40
+ /**
41
+ * Project validate options
42
+ */
43
+ export interface IProjectValidateOptions extends IProjectOptions {
44
+ /**
45
+ * Whether to skip analysis
46
+ */
47
+ skipAnalyze: boolean;
48
+ /**
49
+ * Default severity level
50
+ */
51
+ defaultSeverity?: string;
52
+ /**
53
+ * Path to detailed log file
54
+ */
55
+ detailedLogPath?: string;
56
+ /**
57
+ * Path to policy file
58
+ */
59
+ policyFilePath?: string;
60
+ /**
61
+ * Policy file type
62
+ */
63
+ policyFileType?: RulesConfigFileType;
64
+ }
65
+ /**
66
+ * Project build options
67
+ */
68
+ export interface IProjectBuildOptions extends IProjectOptions {
69
+ /**
70
+ * Whether to skip analysis
71
+ */
72
+ skipAnalyze: boolean;
73
+ /**
74
+ * Whether to skip validation
75
+ */
76
+ skipValidate: boolean;
77
+ /**
78
+ * Project storage identifier
79
+ */
80
+ projectStorageId?: string;
81
+ /**
82
+ * Path to detailed log file
83
+ */
84
+ detailedLogPath?: string;
85
+ /**
86
+ * Path to policy file
87
+ */
88
+ policyFilePath?: string;
89
+ /**
90
+ * Policy file type
91
+ */
92
+ policyFileType?: string;
93
+ /**
94
+ * Output directory path
95
+ */
96
+ outputPath: string;
97
+ /**
98
+ * Output type
99
+ */
100
+ outputType?: string;
101
+ /**
102
+ * Project type
103
+ */
104
+ projectType: string;
105
+ }
106
+ /**
107
+ * Project pack options
108
+ */
109
+ export interface IProjectPackOptions extends IProjectBuildOptions {
110
+ /**
111
+ * NuGet package information
112
+ */
113
+ package: NugetPackageInfo;
114
+ /**
115
+ * Whether to skip dependency optimization
116
+ */
117
+ skipDependencyOptimization: boolean;
118
+ /**
119
+ * Whether to include sources
120
+ */
121
+ includeSources: boolean;
122
+ /**
123
+ * Whether to split packages
124
+ */
125
+ splitPackages: boolean;
126
+ }
@@ -0,0 +1,7 @@
1
+ var project_options_RulesConfigFileType = /*#__PURE__*/ function(RulesConfigFileType) {
2
+ RulesConfigFileType["Default"] = "Default";
3
+ RulesConfigFileType["AutomationOps"] = "AutomationOps";
4
+ RulesConfigFileType["Studio"] = "Studio";
5
+ return RulesConfigFileType;
6
+ }({});
7
+ export { project_options_RulesConfigFileType as RulesConfigFileType };
@@ -0,0 +1,21 @@
1
+ /**
2
+ * UiPath project type enum
3
+ */
4
+ export declare enum ProjectTypes {
5
+ Agent = "Agent",
6
+ Api = "Api",
7
+ Connector = "Connector",
8
+ CaseManagement = "CaseManagement",
9
+ Flow = "Flow",
10
+ Function = "Function",
11
+ ProcessOrchestration = "ProcessOrchestration",
12
+ Process = "Process",
13
+ Library = "Library",
14
+ WebApp = "WebApp",
15
+ Tests = "Tests",
16
+ AppV2 = "AppV2"
17
+ }
18
+ /**
19
+ * UiPath project types (extensible with custom strings)
20
+ */
21
+ export type ProjectType = ProjectTypes | string;
@@ -0,0 +1,16 @@
1
+ var project_type_ProjectTypes = /*#__PURE__*/ function(ProjectTypes) {
2
+ ProjectTypes["Agent"] = "Agent";
3
+ ProjectTypes["Api"] = "Api";
4
+ ProjectTypes["Connector"] = "Connector";
5
+ ProjectTypes["CaseManagement"] = "CaseManagement";
6
+ ProjectTypes["Flow"] = "Flow";
7
+ ProjectTypes["Function"] = "Function";
8
+ ProjectTypes["ProcessOrchestration"] = "ProcessOrchestration";
9
+ ProjectTypes["Process"] = "Process";
10
+ ProjectTypes["Library"] = "Library";
11
+ ProjectTypes["WebApp"] = "WebApp";
12
+ ProjectTypes["Tests"] = "Tests";
13
+ ProjectTypes["AppV2"] = "AppV2";
14
+ return ProjectTypes;
15
+ }({});
16
+ export { project_type_ProjectTypes as ProjectTypes };
@@ -0,0 +1,72 @@
1
+ import type { BuildConfiguration } from "./build-configuration.js";
2
+ import type { ConnectionInfo } from "./connection-info.js";
3
+ import type { PackageInfo } from "./package-info.js";
4
+ /**
5
+ * Solution options
6
+ */
7
+ export interface ISolutionOptions {
8
+ /**
9
+ * Path to the solution file
10
+ */
11
+ solutionFilePath: string;
12
+ }
13
+ /**
14
+ * Solution restore options
15
+ */
16
+ export interface ISolutionRestoreOptions extends ISolutionOptions {
17
+ /**
18
+ * Output directory path
19
+ */
20
+ outputPath: string;
21
+ /**
22
+ * Build configuration (Debug or Release)
23
+ */
24
+ configuration: BuildConfiguration;
25
+ /**
26
+ * Projects to build
27
+ */
28
+ projectsToBuild: string[];
29
+ /**
30
+ * Connection information for restore
31
+ */
32
+ connection?: ConnectionInfo;
33
+ }
34
+ /**
35
+ * Solution validate options
36
+ */
37
+ export interface ISolutionValidateOptions extends ISolutionOptions {
38
+ /**
39
+ * Package version to validate
40
+ */
41
+ packageVersion?: string;
42
+ }
43
+ /**
44
+ * Solution build options
45
+ */
46
+ export interface ISolutionBuildOptions extends ISolutionRestoreOptions {
47
+ /**
48
+ * Output directory path
49
+ */
50
+ outputPath: string;
51
+ /**
52
+ * Build configuration (Debug or Release)
53
+ */
54
+ configuration: BuildConfiguration;
55
+ /**
56
+ * Projects to build
57
+ */
58
+ projectsToBuild: string[];
59
+ /**
60
+ * Package information
61
+ */
62
+ package: PackageInfo;
63
+ /**
64
+ * Publish identifier
65
+ */
66
+ publishId?: string;
67
+ }
68
+ /**
69
+ * Solution pack options
70
+ */
71
+ export interface ISolutionPackOptions extends ISolutionBuildOptions {
72
+ }
File without changes
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Target framework for UiPath packages
3
+ */
4
+ export declare enum TargetFramework {
5
+ Portable = "Portable",
6
+ Windows = "Windows"
7
+ }
@@ -0,0 +1,6 @@
1
+ var target_frameworks_TargetFramework = /*#__PURE__*/ function(TargetFramework) {
2
+ TargetFramework["Portable"] = "Portable";
3
+ TargetFramework["Windows"] = "Windows";
4
+ return TargetFramework;
5
+ }({});
6
+ export { target_frameworks_TargetFramework as TargetFramework };
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Tool error code enum
3
+ */
4
+ export declare enum ToolErrorCodes {
5
+ Success = "SUCCESS",
6
+ InternalError = "INTERNAL_ERROR",
7
+ Canceled = "CANCELED"
8
+ }
9
+ /**
10
+ * Base tool error codes (extensible with custom strings)
11
+ * Tools can extend this type with their own error codes:
12
+ *
13
+ * @example
14
+ * ```typescript
15
+ * export type MyToolErrorCode = ToolErrorCode | 'COMPILATION_FAILED' | 'VALIDATION_ERROR';
16
+ * ```
17
+ */
18
+ export type ToolErrorCode = ToolErrorCodes | string;
@@ -0,0 +1,7 @@
1
+ var tool_error_code_ToolErrorCodes = /*#__PURE__*/ function(ToolErrorCodes) {
2
+ ToolErrorCodes["Success"] = "SUCCESS";
3
+ ToolErrorCodes["InternalError"] = "INTERNAL_ERROR";
4
+ ToolErrorCodes["Canceled"] = "CANCELED";
5
+ return ToolErrorCodes;
6
+ }({});
7
+ export { tool_error_code_ToolErrorCodes as ToolErrorCodes };
@@ -0,0 +1,31 @@
1
+ import type { ToolErrorCode } from "./tool-error-code.js";
2
+ /**
3
+ * Tool execution result
4
+ */
5
+ export declare class ToolResult {
6
+ /**
7
+ * Error code indicating the result status
8
+ */
9
+ errorCode: ToolErrorCode;
10
+ /**
11
+ * Optional message
12
+ */
13
+ message?: string;
14
+ /**
15
+ * List of packages produced
16
+ */
17
+ packages: string[];
18
+ constructor(errorCode: ToolErrorCode, message?: string, packages?: string[]);
19
+ /**
20
+ * Indicates whether the result represents a successful operation
21
+ */
22
+ get isSuccess(): boolean;
23
+ /**
24
+ * Create a success result
25
+ */
26
+ static success(): ToolResult;
27
+ /**
28
+ * Create an error result
29
+ */
30
+ static error(errorCode: ToolErrorCode, message?: string): ToolResult;
31
+ }
@@ -0,0 +1,21 @@
1
+ import { ToolErrorCodes } from "./tool-error-code.js";
2
+ class ToolResult {
3
+ errorCode;
4
+ message;
5
+ packages;
6
+ constructor(errorCode, message, packages = []){
7
+ this.errorCode = errorCode;
8
+ this.message = message;
9
+ this.packages = packages;
10
+ }
11
+ get isSuccess() {
12
+ return this.errorCode === ToolErrorCodes.Success;
13
+ }
14
+ static success() {
15
+ return new ToolResult(ToolErrorCodes.Success);
16
+ }
17
+ static error(errorCode, message) {
18
+ return new ToolResult(errorCode, message);
19
+ }
20
+ }
21
+ export { ToolResult };
@@ -0,0 +1,26 @@
1
+ import type { ProjectType } from "./project-type.js";
2
+ /**
3
+ * Represents a UiPath project within a solution .uipx file
4
+ */
5
+ export interface UiPathProject {
6
+ /**
7
+ * The type of project (Api, Library, Process, etc.)
8
+ */
9
+ Type: ProjectType;
10
+ /**
11
+ * Relative path to the project file
12
+ */
13
+ ProjectRelativePath: string;
14
+ /**
15
+ * Unique identifier for the project
16
+ */
17
+ Id: string;
18
+ /**
19
+ * Absolute path to the project folder - to be set after loading the solution, not present in the .uipx file
20
+ */
21
+ ProjectPath?: string;
22
+ /**
23
+ * Storage identifier for the project - to be set after loading the solution, not present in the .uipx file
24
+ */
25
+ StorageId?: string;
26
+ }
File without changes
@@ -0,0 +1,14 @@
1
+ import type { UiPathProject } from "./uipath-project.js";
2
+ /**
3
+ * Represents a UiPath solution containing multiple projects
4
+ */
5
+ export interface UiPathSolution {
6
+ /**
7
+ * Unique identifier for the solution
8
+ */
9
+ SolutionId: string;
10
+ /**
11
+ * Array of projects contained in this solution
12
+ */
13
+ Projects: UiPathProject[];
14
+ }
File without changes
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Entry point information
3
+ */
4
+ export interface EntryPointModel {
5
+ /**
6
+ * Path to the entry point file
7
+ */
8
+ filePath: string;
9
+ /**
10
+ * Unique path identifier
11
+ */
12
+ uniqueId?: string;
13
+ /**
14
+ * Display name
15
+ */
16
+ displayName?: string;
17
+ }
18
+ /**
19
+ * Model for entrypoints.json file
20
+ */
21
+ export interface EntryPointsFileModel {
22
+ /**
23
+ * List of entry points
24
+ */
25
+ entryPoints: EntryPointModel[];
26
+ }
@@ -0,0 +1,5 @@
1
+ export type { EntryPointModel, EntryPointsFileModel, } from "./entry-points-file-model.js";
2
+ export type { OperateFileModel, RuntimeOptionsModel, } from "./operate-file-model.js";
3
+ export type { PackageDescriptorFileModel } from "./package-descriptor-file-model.js";
4
+ export type { BindingsVersion, ProjectBindingsFileModel, PropertyBinding, ResourceBinding, } from "./project-bindings-file-model.js";
5
+ export { createDefaultBindingsVersion } from "./project-bindings-file-model.js";
@@ -0,0 +1 @@
1
+ export { createDefaultBindingsVersion } from "./project-bindings-file-model.js";
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Runtime options for the operate file
3
+ */
4
+ export interface RuntimeOptionsModel {
5
+ /**
6
+ * Whether the process requires user interaction
7
+ */
8
+ requiresUserInteraction: boolean;
9
+ /**
10
+ * Whether the process is attended
11
+ */
12
+ isAttended: boolean;
13
+ }
14
+ /**
15
+ * Model for operate.json file
16
+ */
17
+ export interface OperateFileModel {
18
+ /**
19
+ * Project identifier
20
+ */
21
+ projectId: string;
22
+ /**
23
+ * Main entry point file path
24
+ */
25
+ main: string;
26
+ /**
27
+ * Content type (project type)
28
+ */
29
+ contentType: string;
30
+ /**
31
+ * Target framework
32
+ */
33
+ targetFramework: string;
34
+ /**
35
+ * Runtime options
36
+ */
37
+ runtimeOptions: RuntimeOptionsModel;
38
+ }
File without changes
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Model for package-descriptor.json file
3
+ * Maps file identifiers to their relative paths
4
+ */
5
+ export interface PackageDescriptorFileModel {
6
+ /**
7
+ * Map of file identifiers to relative paths
8
+ * Key: file identifier (e.g., 'operate.json', 'entrypoints.json', 'bindings')
9
+ * Value: relative path to the file from the package root
10
+ */
11
+ files: Record<string, string>;
12
+ }
@@ -0,0 +1,82 @@
1
+ /**
2
+ * Version information for bindings file
3
+ */
4
+ export interface BindingsVersion {
5
+ major: number;
6
+ minor: number;
7
+ }
8
+ /**
9
+ * Property binding for resource values
10
+ */
11
+ export interface PropertyBinding {
12
+ /**
13
+ * Default value for the property
14
+ */
15
+ defaultValue?: string;
16
+ /**
17
+ * Whether the value is an expression
18
+ */
19
+ isExpression: boolean;
20
+ /**
21
+ * Display name for the property
22
+ */
23
+ displayName?: string;
24
+ /**
25
+ * Description of the property
26
+ */
27
+ description?: string;
28
+ }
29
+ /**
30
+ * Resource binding definition
31
+ */
32
+ export interface ResourceBinding {
33
+ /**
34
+ * Resource type/name
35
+ */
36
+ resource?: string;
37
+ /**
38
+ * Resource key
39
+ */
40
+ key?: string;
41
+ /**
42
+ * Unique identifier for the binding
43
+ */
44
+ id?: string;
45
+ /**
46
+ * Purpose of the resource binding
47
+ */
48
+ purpose?: string;
49
+ /**
50
+ * Description of the resource binding
51
+ */
52
+ description?: string;
53
+ /**
54
+ * Value properties - keys are contract names
55
+ */
56
+ value?: Record<string, PropertyBinding>;
57
+ /**
58
+ * Metadata properties
59
+ */
60
+ metadata?: Record<string, PropertyBinding>;
61
+ /**
62
+ * Path of the workflow where this resource binding is referenced
63
+ */
64
+ workflowRelativePath?: string;
65
+ }
66
+ /**
67
+ * Model for bindings-v2.json file (project bindings)
68
+ */
69
+ export interface ProjectBindingsFileModel {
70
+ /**
71
+ * Version of the bindings format (default: 2.0)
72
+ */
73
+ version: BindingsVersion;
74
+ /**
75
+ * List of resource bindings
76
+ */
77
+ resources?: ResourceBinding[];
78
+ }
79
+ /**
80
+ * Create default bindings version (2.0)
81
+ */
82
+ export declare function createDefaultBindingsVersion(): BindingsVersion;
@@ -0,0 +1,7 @@
1
+ function createDefaultBindingsVersion() {
2
+ return {
3
+ major: 2,
4
+ minor: 0
5
+ };
6
+ }
7
+ export { createDefaultBindingsVersion };
@@ -0,0 +1,10 @@
1
+ export type { INugetPackager, NugetPackagerResult } from "./nuget-packager.js";
2
+ export { NugetPackager } from "./nuget-packager.js";
3
+ export type { ProjectOperationContext } from "./project-operation-context.js";
4
+ export { ProjectTool } from "./project-tool.js";
5
+ export type { IProjectToolFactory } from "./project-tool-factory.js";
6
+ export { SolutionTool } from "./solution-tool.js";
7
+ export type { ISolutionToolFactory } from "./solution-tool-factory.js";
8
+ export type { IToolLogger, LogOptions } from "./tool-logger.js";
9
+ export type { IToolsFactoryRepository, IToolsFactoryRepositoryConfigurator, } from "./tools-factory-repository.js";
10
+ export { ToolsFactoryRepository, toolsFactoryRepository, } from "./tools-factory-repository.js";
@@ -0,0 +1,4 @@
1
+ export { NugetPackager } from "./nuget-packager.js";
2
+ export { ProjectTool } from "./project-tool.js";
3
+ export { SolutionTool } from "./solution-tool.js";
4
+ export { ToolsFactoryRepository, toolsFactoryRepository } from "./tools-factory-repository.js";
@@ -0,0 +1,39 @@
1
+ import type { IFileSystem } from "../filesystem/file-system.js";
2
+ import type { NugetPackageInfo } from "../models/nuget-package-info.js";
3
+ /**
4
+ * Result of a NuGet pack operation
5
+ */
6
+ export interface NugetPackagerResult {
7
+ /**
8
+ * Full path to the created .nupkg file
9
+ */
10
+ outputPath: string;
11
+ }
12
+ /**
13
+ * Interface for NuGet packager service
14
+ */
15
+ export interface INugetPackager {
16
+ /**
17
+ * Pack a directory into a .nupkg file
18
+ * @param rootPath - Root directory path to pack
19
+ * @param packageInfo - NuGet package metadata
20
+ * @param outputPath - Path where to write the .nupkg file
21
+ * @returns The full path to the created .nupkg file
22
+ */
23
+ packAsync(rootPath: string, packageInfo: NugetPackageInfo, outputPath: string): Promise<NugetPackagerResult>;
24
+ }
25
+ /**
26
+ * NuGet packager service - creates .nupkg files from directories
27
+ */
28
+ export declare class NugetPackager implements INugetPackager {
29
+ private readonly fileSystem;
30
+ constructor(fileSystem: IFileSystem);
31
+ /**
32
+ * Pack a directory into a .nupkg file
33
+ * @param rootPath - Root directory path to pack
34
+ * @param packageInfo - NuGet package metadata
35
+ * @param outputPath - Path where to write the .nupkg file
36
+ * @returns The full path to the created .nupkg file
37
+ */
38
+ packAsync(rootPath: string, packageInfo: NugetPackageInfo, outputPath: string): Promise<NugetPackagerResult>;
39
+ }