@uipath/solutionpackager-tool-core 0.0.26 → 0.0.31
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/dist/i18n/i18n-manager.d.ts +1 -0
- package/dist/i18n/locales/de.d.ts +3 -0
- package/dist/i18n/locales/en.d.ts +3 -0
- package/dist/i18n/locales/es-MX.d.ts +3 -0
- package/dist/i18n/locales/es.d.ts +3 -0
- package/dist/i18n/locales/fr.d.ts +3 -0
- package/dist/i18n/locales/ja.d.ts +3 -0
- package/dist/i18n/locales/ko.d.ts +3 -0
- package/dist/i18n/locales/pt-BR.d.ts +3 -0
- package/dist/i18n/locales/pt.d.ts +3 -0
- package/dist/i18n/locales/ro.d.ts +3 -0
- package/dist/i18n/locales/ru.d.ts +3 -0
- package/dist/i18n/locales/tr.d.ts +3 -0
- package/dist/i18n/locales/zh-CN.d.ts +3 -0
- package/dist/i18n/locales/zh-TW.d.ts +3 -0
- package/dist/i18n/locales/zu.d.ts +3 -0
- package/dist/index.js +1359 -5
- package/dist/models/connection-info.d.ts +4 -0
- package/dist/models/project-type.d.ts +1 -0
- package/dist/models/tool-error-code.d.ts +1 -0
- package/dist/services/project-operation-context.d.ts +4 -0
- package/dist/services/tools-factory-repository.d.ts +1 -1
- package/package.json +13 -7
- package/dist/filesystem/file-system.js +0 -0
- package/dist/filesystem/index.js +0 -3
- package/dist/filesystem/path.js +0 -47
- package/dist/filesystem/temporary-storage-service.js +0 -46
- package/dist/filesystem/zip-service.js +0 -41
- package/dist/i18n/i18n-manager.js +0 -104
- package/dist/i18n/index.js +0 -34
- package/dist/i18n/locales/de.js +0 -38
- package/dist/i18n/locales/en.js +0 -38
- package/dist/i18n/locales/es-MX.js +0 -38
- package/dist/i18n/locales/es.js +0 -38
- package/dist/i18n/locales/fr.js +0 -38
- package/dist/i18n/locales/ja.js +0 -38
- package/dist/i18n/locales/ko.js +0 -38
- package/dist/i18n/locales/pt-BR.js +0 -38
- package/dist/i18n/locales/pt.js +0 -38
- package/dist/i18n/locales/ro.js +0 -38
- package/dist/i18n/locales/ru.js +0 -38
- package/dist/i18n/locales/tr.js +0 -38
- package/dist/i18n/locales/zh-CN.js +0 -38
- package/dist/i18n/locales/zh-TW.js +0 -38
- package/dist/i18n/locales/zu.js +0 -38
- package/dist/i18n/translation-service.js +0 -29
- package/dist/i18n/types.js +0 -20
- package/dist/models/build-configuration.js +0 -6
- package/dist/models/connection-info.js +0 -9
- package/dist/models/index.js +0 -8
- package/dist/models/log-message.js +0 -48
- package/dist/models/nuget-constants.js +0 -10
- package/dist/models/nuget-feed-model.js +0 -0
- package/dist/models/nuget-package-info.js +0 -0
- package/dist/models/package-info.js +0 -0
- package/dist/models/project-options.js +0 -7
- package/dist/models/project-type.js +0 -16
- package/dist/models/solution-options.js +0 -0
- package/dist/models/target-frameworks.js +0 -6
- package/dist/models/tool-error-code.js +0 -7
- package/dist/models/tool-result.js +0 -21
- package/dist/models/uipath-project.js +0 -0
- package/dist/models/uipath-solution.js +0 -0
- package/dist/package-descriptor/entry-points-file-model.js +0 -0
- package/dist/package-descriptor/index.js +0 -1
- package/dist/package-descriptor/operate-file-model.js +0 -0
- package/dist/package-descriptor/package-descriptor-file-model.js +0 -0
- package/dist/package-descriptor/project-bindings-file-model.js +0 -7
- package/dist/services/index.js +0 -4
- package/dist/services/nuget-packager.js +0 -105
- package/dist/services/project-operation-context.js +0 -0
- package/dist/services/project-tool-factory.js +0 -0
- package/dist/services/project-tool.js +0 -27
- package/dist/services/solution-tool-factory.js +0 -0
- package/dist/services/solution-tool.js +0 -27
- package/dist/services/tool-logger.js +0 -0
- package/dist/services/tools-factory-repository.js +0 -34
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
const pt_BR = {
|
|
2
|
-
toolCore: {
|
|
3
|
-
errors: {
|
|
4
|
-
internal: "Internal error: {message}",
|
|
5
|
-
fileNotFound: "File not found: {path}",
|
|
6
|
-
fileReadFailed: "Failed to read file: {path}",
|
|
7
|
-
fileWriteFailed: "Failed to write file: {path}",
|
|
8
|
-
directoryNotFound: "Directory not found: {path}",
|
|
9
|
-
invalidPath: "{path} is not a valid path",
|
|
10
|
-
operationCanceled: "Operation was canceled",
|
|
11
|
-
invalidParameter: "Invalid parameter: {parameter}"
|
|
12
|
-
},
|
|
13
|
-
progress: {
|
|
14
|
-
copying: "Copying files...",
|
|
15
|
-
building: "Building project...",
|
|
16
|
-
packaging: "Creating package...",
|
|
17
|
-
validating: "Validating...",
|
|
18
|
-
analyzing: "Analyzing...",
|
|
19
|
-
restoring: "Restoring dependencies..."
|
|
20
|
-
},
|
|
21
|
-
validation: {
|
|
22
|
-
requiredField: "{field} is required",
|
|
23
|
-
invalidValue: "Invalid value for {field}",
|
|
24
|
-
pathNotFound: "Path not found: {path}",
|
|
25
|
-
fileRequired: "File is required: {path}",
|
|
26
|
-
directoryRequired: "Directory is required: {path}"
|
|
27
|
-
},
|
|
28
|
-
info: {
|
|
29
|
-
operationComplete: "Operation completed successfully",
|
|
30
|
-
filesProcessed: {
|
|
31
|
-
zero: "No files processed",
|
|
32
|
-
one: "{count} file processed",
|
|
33
|
-
other: "{count} files processed"
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
export { pt_BR };
|
package/dist/i18n/locales/pt.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
const pt = {
|
|
2
|
-
toolCore: {
|
|
3
|
-
errors: {
|
|
4
|
-
internal: "Internal error: {message}",
|
|
5
|
-
fileNotFound: "File not found: {path}",
|
|
6
|
-
fileReadFailed: "Failed to read file: {path}",
|
|
7
|
-
fileWriteFailed: "Failed to write file: {path}",
|
|
8
|
-
directoryNotFound: "Directory not found: {path}",
|
|
9
|
-
invalidPath: "{path} is not a valid path",
|
|
10
|
-
operationCanceled: "Operation was canceled",
|
|
11
|
-
invalidParameter: "Invalid parameter: {parameter}"
|
|
12
|
-
},
|
|
13
|
-
progress: {
|
|
14
|
-
copying: "Copying files...",
|
|
15
|
-
building: "Building project...",
|
|
16
|
-
packaging: "Creating package...",
|
|
17
|
-
validating: "Validating...",
|
|
18
|
-
analyzing: "Analyzing...",
|
|
19
|
-
restoring: "Restoring dependencies..."
|
|
20
|
-
},
|
|
21
|
-
validation: {
|
|
22
|
-
requiredField: "{field} is required",
|
|
23
|
-
invalidValue: "Invalid value for {field}",
|
|
24
|
-
pathNotFound: "Path not found: {path}",
|
|
25
|
-
fileRequired: "File is required: {path}",
|
|
26
|
-
directoryRequired: "Directory is required: {path}"
|
|
27
|
-
},
|
|
28
|
-
info: {
|
|
29
|
-
operationComplete: "Operation completed successfully",
|
|
30
|
-
filesProcessed: {
|
|
31
|
-
zero: "No files processed",
|
|
32
|
-
one: "{count} file processed",
|
|
33
|
-
other: "{count} files processed"
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
export { pt };
|
package/dist/i18n/locales/ro.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
const ro = {
|
|
2
|
-
toolCore: {
|
|
3
|
-
errors: {
|
|
4
|
-
internal: "Internal error: {message}",
|
|
5
|
-
fileNotFound: "File not found: {path}",
|
|
6
|
-
fileReadFailed: "Failed to read file: {path}",
|
|
7
|
-
fileWriteFailed: "Failed to write file: {path}",
|
|
8
|
-
directoryNotFound: "Directory not found: {path}",
|
|
9
|
-
invalidPath: "{path} is not a valid path",
|
|
10
|
-
operationCanceled: "Operation was canceled",
|
|
11
|
-
invalidParameter: "Invalid parameter: {parameter}"
|
|
12
|
-
},
|
|
13
|
-
progress: {
|
|
14
|
-
copying: "Copying files...",
|
|
15
|
-
building: "Building project...",
|
|
16
|
-
packaging: "Creating package...",
|
|
17
|
-
validating: "Validating...",
|
|
18
|
-
analyzing: "Analyzing...",
|
|
19
|
-
restoring: "Restoring dependencies..."
|
|
20
|
-
},
|
|
21
|
-
validation: {
|
|
22
|
-
requiredField: "{field} is required",
|
|
23
|
-
invalidValue: "Invalid value for {field}",
|
|
24
|
-
pathNotFound: "Path not found: {path}",
|
|
25
|
-
fileRequired: "File is required: {path}",
|
|
26
|
-
directoryRequired: "Directory is required: {path}"
|
|
27
|
-
},
|
|
28
|
-
info: {
|
|
29
|
-
operationComplete: "Operation completed successfully",
|
|
30
|
-
filesProcessed: {
|
|
31
|
-
zero: "No files processed",
|
|
32
|
-
one: "{count} file processed",
|
|
33
|
-
other: "{count} files processed"
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
export { ro };
|
package/dist/i18n/locales/ru.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
const ru = {
|
|
2
|
-
toolCore: {
|
|
3
|
-
errors: {
|
|
4
|
-
internal: "Internal error: {message}",
|
|
5
|
-
fileNotFound: "File not found: {path}",
|
|
6
|
-
fileReadFailed: "Failed to read file: {path}",
|
|
7
|
-
fileWriteFailed: "Failed to write file: {path}",
|
|
8
|
-
directoryNotFound: "Directory not found: {path}",
|
|
9
|
-
invalidPath: "{path} is not a valid path",
|
|
10
|
-
operationCanceled: "Operation was canceled",
|
|
11
|
-
invalidParameter: "Invalid parameter: {parameter}"
|
|
12
|
-
},
|
|
13
|
-
progress: {
|
|
14
|
-
copying: "Copying files...",
|
|
15
|
-
building: "Building project...",
|
|
16
|
-
packaging: "Creating package...",
|
|
17
|
-
validating: "Validating...",
|
|
18
|
-
analyzing: "Analyzing...",
|
|
19
|
-
restoring: "Restoring dependencies..."
|
|
20
|
-
},
|
|
21
|
-
validation: {
|
|
22
|
-
requiredField: "{field} is required",
|
|
23
|
-
invalidValue: "Invalid value for {field}",
|
|
24
|
-
pathNotFound: "Path not found: {path}",
|
|
25
|
-
fileRequired: "File is required: {path}",
|
|
26
|
-
directoryRequired: "Directory is required: {path}"
|
|
27
|
-
},
|
|
28
|
-
info: {
|
|
29
|
-
operationComplete: "Operation completed successfully",
|
|
30
|
-
filesProcessed: {
|
|
31
|
-
zero: "No files processed",
|
|
32
|
-
one: "{count} file processed",
|
|
33
|
-
other: "{count} files processed"
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
export { ru };
|
package/dist/i18n/locales/tr.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
const tr = {
|
|
2
|
-
toolCore: {
|
|
3
|
-
errors: {
|
|
4
|
-
internal: "Internal error: {message}",
|
|
5
|
-
fileNotFound: "File not found: {path}",
|
|
6
|
-
fileReadFailed: "Failed to read file: {path}",
|
|
7
|
-
fileWriteFailed: "Failed to write file: {path}",
|
|
8
|
-
directoryNotFound: "Directory not found: {path}",
|
|
9
|
-
invalidPath: "{path} is not a valid path",
|
|
10
|
-
operationCanceled: "Operation was canceled",
|
|
11
|
-
invalidParameter: "Invalid parameter: {parameter}"
|
|
12
|
-
},
|
|
13
|
-
progress: {
|
|
14
|
-
copying: "Copying files...",
|
|
15
|
-
building: "Building project...",
|
|
16
|
-
packaging: "Creating package...",
|
|
17
|
-
validating: "Validating...",
|
|
18
|
-
analyzing: "Analyzing...",
|
|
19
|
-
restoring: "Restoring dependencies..."
|
|
20
|
-
},
|
|
21
|
-
validation: {
|
|
22
|
-
requiredField: "{field} is required",
|
|
23
|
-
invalidValue: "Invalid value for {field}",
|
|
24
|
-
pathNotFound: "Path not found: {path}",
|
|
25
|
-
fileRequired: "File is required: {path}",
|
|
26
|
-
directoryRequired: "Directory is required: {path}"
|
|
27
|
-
},
|
|
28
|
-
info: {
|
|
29
|
-
operationComplete: "Operation completed successfully",
|
|
30
|
-
filesProcessed: {
|
|
31
|
-
zero: "No files processed",
|
|
32
|
-
one: "{count} file processed",
|
|
33
|
-
other: "{count} files processed"
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
export { tr };
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
const zh_CN = {
|
|
2
|
-
toolCore: {
|
|
3
|
-
errors: {
|
|
4
|
-
internal: "Internal error: {message}",
|
|
5
|
-
fileNotFound: "File not found: {path}",
|
|
6
|
-
fileReadFailed: "Failed to read file: {path}",
|
|
7
|
-
fileWriteFailed: "Failed to write file: {path}",
|
|
8
|
-
directoryNotFound: "Directory not found: {path}",
|
|
9
|
-
invalidPath: "{path} is not a valid path",
|
|
10
|
-
operationCanceled: "Operation was canceled",
|
|
11
|
-
invalidParameter: "Invalid parameter: {parameter}"
|
|
12
|
-
},
|
|
13
|
-
progress: {
|
|
14
|
-
copying: "Copying files...",
|
|
15
|
-
building: "Building project...",
|
|
16
|
-
packaging: "Creating package...",
|
|
17
|
-
validating: "Validating...",
|
|
18
|
-
analyzing: "Analyzing...",
|
|
19
|
-
restoring: "Restoring dependencies..."
|
|
20
|
-
},
|
|
21
|
-
validation: {
|
|
22
|
-
requiredField: "{field} is required",
|
|
23
|
-
invalidValue: "Invalid value for {field}",
|
|
24
|
-
pathNotFound: "Path not found: {path}",
|
|
25
|
-
fileRequired: "File is required: {path}",
|
|
26
|
-
directoryRequired: "Directory is required: {path}"
|
|
27
|
-
},
|
|
28
|
-
info: {
|
|
29
|
-
operationComplete: "Operation completed successfully",
|
|
30
|
-
filesProcessed: {
|
|
31
|
-
zero: "No files processed",
|
|
32
|
-
one: "{count} file processed",
|
|
33
|
-
other: "{count} files processed"
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
export { zh_CN };
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
const zh_TW = {
|
|
2
|
-
toolCore: {
|
|
3
|
-
errors: {
|
|
4
|
-
internal: "Internal error: {message}",
|
|
5
|
-
fileNotFound: "File not found: {path}",
|
|
6
|
-
fileReadFailed: "Failed to read file: {path}",
|
|
7
|
-
fileWriteFailed: "Failed to write file: {path}",
|
|
8
|
-
directoryNotFound: "Directory not found: {path}",
|
|
9
|
-
invalidPath: "{path} is not a valid path",
|
|
10
|
-
operationCanceled: "Operation was canceled",
|
|
11
|
-
invalidParameter: "Invalid parameter: {parameter}"
|
|
12
|
-
},
|
|
13
|
-
progress: {
|
|
14
|
-
copying: "Copying files...",
|
|
15
|
-
building: "Building project...",
|
|
16
|
-
packaging: "Creating package...",
|
|
17
|
-
validating: "Validating...",
|
|
18
|
-
analyzing: "Analyzing...",
|
|
19
|
-
restoring: "Restoring dependencies..."
|
|
20
|
-
},
|
|
21
|
-
validation: {
|
|
22
|
-
requiredField: "{field} is required",
|
|
23
|
-
invalidValue: "Invalid value for {field}",
|
|
24
|
-
pathNotFound: "Path not found: {path}",
|
|
25
|
-
fileRequired: "File is required: {path}",
|
|
26
|
-
directoryRequired: "Directory is required: {path}"
|
|
27
|
-
},
|
|
28
|
-
info: {
|
|
29
|
-
operationComplete: "Operation completed successfully",
|
|
30
|
-
filesProcessed: {
|
|
31
|
-
zero: "No files processed",
|
|
32
|
-
one: "{count} file processed",
|
|
33
|
-
other: "{count} files processed"
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
export { zh_TW };
|
package/dist/i18n/locales/zu.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
const zu = {
|
|
2
|
-
toolCore: {
|
|
3
|
-
errors: {
|
|
4
|
-
internal: "Internal error: {message}",
|
|
5
|
-
fileNotFound: "File not found: {path}",
|
|
6
|
-
fileReadFailed: "Failed to read file: {path}",
|
|
7
|
-
fileWriteFailed: "Failed to write file: {path}",
|
|
8
|
-
directoryNotFound: "Directory not found: {path}",
|
|
9
|
-
invalidPath: "{path} is not a valid path",
|
|
10
|
-
operationCanceled: "Operation was canceled",
|
|
11
|
-
invalidParameter: "Invalid parameter: {parameter}"
|
|
12
|
-
},
|
|
13
|
-
progress: {
|
|
14
|
-
copying: "Copying files...",
|
|
15
|
-
building: "Building project...",
|
|
16
|
-
packaging: "Creating package...",
|
|
17
|
-
validating: "Validating...",
|
|
18
|
-
analyzing: "Analyzing...",
|
|
19
|
-
restoring: "Restoring dependencies..."
|
|
20
|
-
},
|
|
21
|
-
validation: {
|
|
22
|
-
requiredField: "{field} is required",
|
|
23
|
-
invalidValue: "Invalid value for {field}",
|
|
24
|
-
pathNotFound: "Path not found: {path}",
|
|
25
|
-
fileRequired: "File is required: {path}",
|
|
26
|
-
directoryRequired: "Directory is required: {path}"
|
|
27
|
-
},
|
|
28
|
-
info: {
|
|
29
|
-
operationComplete: "Operation completed successfully",
|
|
30
|
-
filesProcessed: {
|
|
31
|
-
zero: "No files processed",
|
|
32
|
-
one: "{count} file processed",
|
|
33
|
-
other: "{count} files processed"
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
export { zu };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { I18nManager } from "./i18n-manager.js";
|
|
2
|
-
class TranslationService {
|
|
3
|
-
static instance;
|
|
4
|
-
currentLocale = "en";
|
|
5
|
-
static getInstance() {
|
|
6
|
-
if (!TranslationService.instance) TranslationService.instance = new TranslationService();
|
|
7
|
-
return TranslationService.instance;
|
|
8
|
-
}
|
|
9
|
-
setLocale(locale) {
|
|
10
|
-
this.currentLocale = I18nManager.setLocale(locale);
|
|
11
|
-
}
|
|
12
|
-
getLocale() {
|
|
13
|
-
return this.currentLocale;
|
|
14
|
-
}
|
|
15
|
-
t(key, params) {
|
|
16
|
-
return I18nManager.t(key, params, this.currentLocale);
|
|
17
|
-
}
|
|
18
|
-
tLocale(key, locale, params) {
|
|
19
|
-
return I18nManager.t(key, params, locale);
|
|
20
|
-
}
|
|
21
|
-
has(key) {
|
|
22
|
-
return I18nManager.has(key, this.currentLocale);
|
|
23
|
-
}
|
|
24
|
-
getAvailableLocales() {
|
|
25
|
-
return I18nManager.getAvailableLocales();
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
const translate = TranslationService.getInstance();
|
|
29
|
-
export { TranslationService, translate };
|
package/dist/i18n/types.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
function isPluralForm(value) {
|
|
2
|
-
return "object" == typeof value && null !== value && "other" in value;
|
|
3
|
-
}
|
|
4
|
-
function selectPluralForm(forms, count) {
|
|
5
|
-
if (0 === count && void 0 !== forms.zero) return forms.zero;
|
|
6
|
-
if (1 === count && void 0 !== forms.one) return forms.one;
|
|
7
|
-
if (2 === count && void 0 !== forms.two) return forms.two;
|
|
8
|
-
if (void 0 !== forms.few) {
|
|
9
|
-
const mod10 = count % 10;
|
|
10
|
-
const mod100 = count % 100;
|
|
11
|
-
if (mod10 >= 2 && mod10 <= 4 && (mod100 < 10 || mod100 >= 20)) return forms.few;
|
|
12
|
-
}
|
|
13
|
-
if (void 0 !== forms.many) {
|
|
14
|
-
const mod10 = count % 10;
|
|
15
|
-
const mod100 = count % 100;
|
|
16
|
-
if (0 === count || 0 === mod10 && 0 !== mod100 || mod10 >= 5 && mod10 <= 9 || mod100 >= 11 && mod100 <= 14) return forms.many;
|
|
17
|
-
}
|
|
18
|
-
return forms.other;
|
|
19
|
-
}
|
|
20
|
-
export { isPluralForm, selectPluralForm };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
var build_configuration_BuildConfiguration = /*#__PURE__*/ function(BuildConfiguration) {
|
|
2
|
-
BuildConfiguration["Debug"] = "Debug";
|
|
3
|
-
BuildConfiguration["Release"] = "Release";
|
|
4
|
-
return BuildConfiguration;
|
|
5
|
-
}({});
|
|
6
|
-
export { build_configuration_BuildConfiguration as BuildConfiguration };
|
package/dist/models/index.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { BuildConfiguration } from "./build-configuration.js";
|
|
2
|
-
export { toRelativeUrl } from "./connection-info.js";
|
|
3
|
-
export { LogLevel, LogMessage } from "./log-message.js";
|
|
4
|
-
export { NugetConstants } from "./nuget-constants.js";
|
|
5
|
-
export { ProjectTypes } from "./project-type.js";
|
|
6
|
-
export { TargetFramework } from "./target-frameworks.js";
|
|
7
|
-
export { ToolErrorCodes } from "./tool-error-code.js";
|
|
8
|
-
export { ToolResult } from "./tool-result.js";
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
var log_message_LogLevel = /*#__PURE__*/ function(LogLevel) {
|
|
2
|
-
LogLevel["Debug"] = "Debug";
|
|
3
|
-
LogLevel["Info"] = "Information";
|
|
4
|
-
LogLevel["Warn"] = "Warning";
|
|
5
|
-
LogLevel["Error"] = "Error";
|
|
6
|
-
return LogLevel;
|
|
7
|
-
}({});
|
|
8
|
-
class LogMessage {
|
|
9
|
-
message;
|
|
10
|
-
logLevel;
|
|
11
|
-
source;
|
|
12
|
-
sourceTarget;
|
|
13
|
-
progress;
|
|
14
|
-
code;
|
|
15
|
-
filePath;
|
|
16
|
-
line;
|
|
17
|
-
id;
|
|
18
|
-
timestamp;
|
|
19
|
-
constructor(message, logLevel, options){
|
|
20
|
-
this.message = message;
|
|
21
|
-
this.logLevel = logLevel;
|
|
22
|
-
this.source = options?.source;
|
|
23
|
-
this.sourceTarget = options?.sourceTarget;
|
|
24
|
-
this.progress = options?.progress;
|
|
25
|
-
this.code = options?.code;
|
|
26
|
-
this.filePath = options?.filePath;
|
|
27
|
-
this.line = options?.line;
|
|
28
|
-
this.id = options?.id;
|
|
29
|
-
this.timestamp = new Date();
|
|
30
|
-
}
|
|
31
|
-
toFormattedString() {
|
|
32
|
-
const parts = [];
|
|
33
|
-
parts.push(`[${this.timestamp.toISOString()}]`);
|
|
34
|
-
parts.push(`[${String(this.logLevel).toUpperCase()}]`);
|
|
35
|
-
if (this.source) parts.push(`[${this.source}]`);
|
|
36
|
-
if (this.sourceTarget) parts.push(`[${this.sourceTarget}]`);
|
|
37
|
-
const locationParts = [];
|
|
38
|
-
if (this.filePath) locationParts.push(this.filePath);
|
|
39
|
-
if (this.line) locationParts.push(`Line:${this.line}`);
|
|
40
|
-
if (this.id) locationParts.push(`Id:${this.id}`);
|
|
41
|
-
if (locationParts.length > 0) parts.push(`(${locationParts.join("")})`);
|
|
42
|
-
if (this.code) parts.push(`[${this.code}]`);
|
|
43
|
-
if (this.progress || 0 === this.progress) parts.push(`${this.progress}%`);
|
|
44
|
-
parts.push(this.message);
|
|
45
|
-
return parts.join(" ");
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
export { LogMessage, log_message_LogLevel as LogLevel };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
const NugetConstants = {
|
|
2
|
-
OutputFolderName: "bundle",
|
|
3
|
-
ContentFolderName: "content",
|
|
4
|
-
OperateFileName: "operate.json",
|
|
5
|
-
EntryPointsFileName: "entry-points.json",
|
|
6
|
-
PackageDescriptorFileName: "package-descriptor.json",
|
|
7
|
-
BindingsV2FileName: "bindings_v2.json",
|
|
8
|
-
BindingsFileId: "bindings.json"
|
|
9
|
-
};
|
|
10
|
-
export { NugetConstants };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,7 +0,0 @@
|
|
|
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 };
|
|
@@ -1,16 +0,0 @@
|
|
|
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 };
|
|
File without changes
|
|
@@ -1,7 +0,0 @@
|
|
|
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 };
|
|
@@ -1,21 +0,0 @@
|
|
|
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 };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { createDefaultBindingsVersion } from "./project-bindings-file-model.js";
|
|
File without changes
|
|
File without changes
|
package/dist/services/index.js
DELETED