@uipath/solution-sdk 1.206.0-preview.310 → 1.206.0-preview.311
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.
|
@@ -303,7 +303,7 @@ var package_default = {
|
|
|
303
303
|
name: "@uipath/solution-sdk",
|
|
304
304
|
author: "UiPath",
|
|
305
305
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
306
|
-
version: "1.206.0-preview.
|
|
306
|
+
version: "1.206.0-preview.311",
|
|
307
307
|
repository: {
|
|
308
308
|
type: "git",
|
|
309
309
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -3006,4 +3006,4 @@ class SettingsApi2 extends BaseAPI2 {
|
|
|
3006
3006
|
}
|
|
3007
3007
|
export { BASE_PATH2, Configuration3, DefaultConfig2, BaseAPI2, ResponseError2, FetchError2, RequiredError2, COLLECTION_FORMATS2, querystring2, exists2, mapValues2, canConsumeForm2, JSONApiResponse2, VoidApiResponse2, BlobApiResponse2, TextApiResponse2, SDK_USER_AGENT2, instanceOfResponseDictionaryDto2, ResponseDictionaryDtoFromJSON2, ResponseDictionaryDtoFromJSONTyped2, ResponseDictionaryDtoToJSON2, ResponseDictionaryDtoToJSONTyped2, instanceOfBlobFileAccessDto2, BlobFileAccessDtoFromJSON2, BlobFileAccessDtoFromJSONTyped2, BlobFileAccessDtoToJSON2, BlobFileAccessDtoToJSONTyped2, instanceOfCreateConfigurationCommand2, CreateConfigurationCommandFromJSON2, CreateConfigurationCommandFromJSONTyped2, CreateConfigurationCommandToJSON2, CreateConfigurationCommandToJSONTyped2, DeploymentActivationStatus2, instanceOfDeploymentActivationStatus2, DeploymentActivationStatusFromJSON2, DeploymentActivationStatusFromJSONTyped2, DeploymentActivationStatusToJSON2, DeploymentActivationStatusToJSONTyped2, OverwriteType2, instanceOfOverwriteType2, OverwriteTypeFromJSON2, OverwriteTypeFromJSONTyped2, OverwriteTypeToJSON2, OverwriteTypeToJSONTyped2, instanceOfOverwrite2, OverwriteFromJSON2, OverwriteFromJSONTyped2, OverwriteToJSON2, OverwriteToJSONTyped2, instanceOfResourceOverwrite2, ResourceOverwriteFromJSON2, ResourceOverwriteFromJSONTyped2, ResourceOverwriteToJSON2, ResourceOverwriteToJSONTyped2, instanceOfRuntimeSetup2, RuntimeSetupFromJSON2, RuntimeSetupFromJSONTyped2, RuntimeSetupToJSON2, RuntimeSetupToJSONTyped2, instanceOfDeploymentAutoRequest2, DeploymentAutoRequestFromJSON2, DeploymentAutoRequestFromJSONTyped2, DeploymentAutoRequestToJSON2, DeploymentAutoRequestToJSONTyped2, instanceOfDeploymentDto2, DeploymentDtoFromJSON2, DeploymentDtoFromJSONTyped2, DeploymentDtoToJSON2, DeploymentDtoToJSONTyped2, WorkflowAction2, instanceOfWorkflowAction2, WorkflowActionFromJSON2, WorkflowActionFromJSONTyped2, WorkflowActionToJSON2, WorkflowActionToJSONTyped2, DeploymentOperation2, instanceOfDeploymentOperation2, DeploymentOperationFromJSON2, DeploymentOperationFromJSONTyped2, DeploymentOperationToJSON2, DeploymentOperationToJSONTyped2, PackageVersionOrigin2, instanceOfPackageVersionOrigin2, PackageVersionOriginFromJSON2, PackageVersionOriginFromJSONTyped2, PackageVersionOriginToJSON2, PackageVersionOriginToJSONTyped2, DeploymentOperationStatus2, instanceOfDeploymentOperationStatus2, DeploymentOperationStatusFromJSON2, DeploymentOperationStatusFromJSONTyped2, DeploymentOperationStatusToJSON2, DeploymentOperationStatusToJSONTyped2, DeploymentUpgradeType2, instanceOfDeploymentUpgradeType2, DeploymentUpgradeTypeFromJSON2, DeploymentUpgradeTypeFromJSONTyped2, DeploymentUpgradeTypeToJSON2, DeploymentUpgradeTypeToJSONTyped2, DeploymentStatus2, instanceOfDeploymentStatus2, DeploymentStatusFromJSON2, DeploymentStatusFromJSONTyped2, DeploymentStatusToJSON2, DeploymentStatusToJSONTyped2, instanceOfDeploymentItemDto2, DeploymentItemDtoFromJSON2, DeploymentItemDtoFromJSONTyped2, DeploymentItemDtoToJSON2, DeploymentItemDtoToJSONTyped2, instanceOfDeploymentRequest2, DeploymentRequestFromJSON2, DeploymentRequestFromJSONTyped2, DeploymentRequestToJSON2, DeploymentRequestToJSONTyped2, DeploymentResourceValidationAction2, instanceOfDeploymentResourceValidationAction2, DeploymentResourceValidationActionFromJSON2, DeploymentResourceValidationActionFromJSONTyped2, DeploymentResourceValidationActionToJSON2, DeploymentResourceValidationActionToJSONTyped2, ResetConfigurationSource2, instanceOfResetConfigurationSource2, ResetConfigurationSourceFromJSON2, ResetConfigurationSourceFromJSONTyped2, ResetConfigurationSourceToJSON2, ResetConfigurationSourceToJSONTyped2, DeploymentUpgradeState2, instanceOfDeploymentUpgradeState2, DeploymentUpgradeStateFromJSON2, DeploymentUpgradeStateFromJSONTyped2, DeploymentUpgradeStateToJSON2, DeploymentUpgradeStateToJSONTyped2, instanceOfDeploymentResourceReplacementDto2, DeploymentResourceReplacementDtoFromJSON2, DeploymentResourceReplacementDtoFromJSONTyped2, DeploymentResourceReplacementDtoToJSON2, DeploymentResourceReplacementDtoToJSONTyped2, instanceOfFolderInfo2, FolderInfoFromJSON2, FolderInfoFromJSONTyped2, FolderInfoToJSON2, FolderInfoToJSONTyped2, instanceOfDeploymentResourceInfo2, DeploymentResourceInfoFromJSON2, DeploymentResourceInfoFromJSONTyped2, DeploymentResourceInfoToJSON2, DeploymentResourceInfoToJSONTyped2, DeploymentResourceValidationErrorKind2, instanceOfDeploymentResourceValidationErrorKind2, DeploymentResourceValidationErrorKindFromJSON2, DeploymentResourceValidationErrorKindFromJSONTyped2, DeploymentResourceValidationErrorKindToJSON2, DeploymentResourceValidationErrorKindToJSONTyped2, DeploymentResourceValidationErrorLevel2, instanceOfDeploymentResourceValidationErrorLevel2, DeploymentResourceValidationErrorLevelFromJSON2, DeploymentResourceValidationErrorLevelFromJSONTyped2, DeploymentResourceValidationErrorLevelToJSON2, DeploymentResourceValidationErrorLevelToJSONTyped2, DeploymentType2, instanceOfDeploymentType2, DeploymentTypeFromJSON2, DeploymentTypeFromJSONTyped2, DeploymentTypeToJSON2, DeploymentTypeToJSONTyped2, instanceOfDeploymentSearchItemDto22, DeploymentSearchItemDto2FromJSON2, DeploymentSearchItemDto2FromJSONTyped2, DeploymentSearchItemDto2ToJSON2, DeploymentSearchItemDto2ToJSONTyped2, instanceOfServiceMessage2, ServiceMessageFromJSON2, ServiceMessageFromJSONTyped2, ServiceMessageToJSON2, ServiceMessageToJSONTyped2, instanceOfResourceValidationError2, ResourceValidationErrorFromJSON2, ResourceValidationErrorFromJSONTyped2, ResourceValidationErrorToJSON2, ResourceValidationErrorToJSONTyped2, instanceOfResourceValidationDto2, ResourceValidationDtoFromJSON2, ResourceValidationDtoFromJSONTyped2, ResourceValidationDtoToJSON2, ResourceValidationDtoToJSONTyped2, instanceOfDeploymentValidationResultDto2, DeploymentValidationResultDtoFromJSON2, DeploymentValidationResultDtoFromJSONTyped2, DeploymentValidationResultDtoToJSON2, DeploymentValidationResultDtoToJSONTyped2, OrderByDirection2, instanceOfOrderByDirection2, OrderByDirectionFromJSON2, OrderByDirectionFromJSONTyped2, OrderByDirectionToJSON2, OrderByDirectionToJSONTyped2, instanceOfDeploymentsSearchRequest22, DeploymentsSearchRequest2FromJSON2, DeploymentsSearchRequest2FromJSONTyped2, DeploymentsSearchRequest2ToJSON2, DeploymentsSearchRequest2ToJSONTyped2, ExtendedPackageVersionState2, instanceOfExtendedPackageVersionState2, ExtendedPackageVersionStateFromJSON2, ExtendedPackageVersionStateFromJSONTyped2, ExtendedPackageVersionStateToJSON2, ExtendedPackageVersionStateToJSONTyped2, instanceOfLocationDto2, LocationDtoFromJSON2, LocationDtoFromJSONTyped2, LocationDtoToJSON2, LocationDtoToJSONTyped2, instanceOfPackageInfo2, PackageInfoFromJSON2, PackageInfoFromJSONTyped2, PackageInfoToJSON2, PackageInfoToJSONTyped2, instanceOfResourceStats2, ResourceStatsFromJSON2, ResourceStatsFromJSONTyped2, ResourceStatsToJSON2, ResourceStatsToJSONTyped2, instanceOfPackageVersionResourceDto2, PackageVersionResourceDtoFromJSON2, PackageVersionResourceDtoFromJSONTyped2, PackageVersionResourceDtoToJSON2, PackageVersionResourceDtoToJSONTyped2, instanceOfPackageVersionComponentsDto2, PackageVersionComponentsDtoFromJSON2, PackageVersionComponentsDtoFromJSONTyped2, PackageVersionComponentsDtoToJSON2, PackageVersionComponentsDtoToJSONTyped2, instanceOfPackageVersionInfoDto2, PackageVersionInfoDtoFromJSON2, PackageVersionInfoDtoFromJSONTyped2, PackageVersionInfoDtoToJSON2, PackageVersionInfoDtoToJSONTyped2, instanceOfPageInfoDtoOfDeploymentResourceInfo2, PageInfoDtoOfDeploymentResourceInfoFromJSON2, PageInfoDtoOfDeploymentResourceInfoFromJSONTyped2, PageInfoDtoOfDeploymentResourceInfoToJSON2, PageInfoDtoOfDeploymentResourceInfoToJSONTyped2, instanceOfPageInfoDtoOfDeploymentSearchItemDto22, PageInfoDtoOfDeploymentSearchItemDto2FromJSON2, PageInfoDtoOfDeploymentSearchItemDto2FromJSONTyped2, PageInfoDtoOfDeploymentSearchItemDto2ToJSON2, PageInfoDtoOfDeploymentSearchItemDto2ToJSONTyped2, instanceOfPageInfoDtoOfPackageInfo2, PageInfoDtoOfPackageInfoFromJSON2, PageInfoDtoOfPackageInfoFromJSONTyped2, PageInfoDtoOfPackageInfoToJSON2, PageInfoDtoOfPackageInfoToJSONTyped2, instanceOfProblemDetails2, ProblemDetailsFromJSON2, ProblemDetailsFromJSONTyped2, ProblemDetailsToJSON2, ProblemDetailsToJSONTyped2, instanceOfProjectCreateRequest2, ProjectCreateRequestFromJSON2, ProjectCreateRequestFromJSONTyped2, ProjectCreateRequestToJSON2, ProjectCreateRequestToJSONTyped2, ProjectImportStatus2, instanceOfProjectImportStatus2, ProjectImportStatusFromJSON2, ProjectImportStatusFromJSONTyped2, ProjectImportStatusToJSON2, ProjectImportStatusToJSONTyped2, instanceOfProjectDto2, ProjectDtoFromJSON2, ProjectDtoFromJSONTyped2, ProjectDtoToJSON2, ProjectDtoToJSONTyped2, instanceOfSearchFilter2, SearchFilterFromJSON2, SearchFilterFromJSONTyped2, SearchFilterToJSON2, SearchFilterToJSONTyped2, SolutionDeploymentAction2, instanceOfSolutionDeploymentAction2, SolutionDeploymentActionFromJSON2, SolutionDeploymentActionFromJSONTyped2, SolutionDeploymentActionToJSON2, SolutionDeploymentActionToJSONTyped2, ConfigurationsApi2, DeploymentsApi2, PackagesApi2, ProjectsApi2, SearchApi2, SettingsApi2 };
|
|
3008
3008
|
|
|
3009
|
-
//# debugId=
|
|
3009
|
+
//# debugId=6A41BA14788A6C2764756E2164756E21
|
package/dist/index.js
CHANGED
package/dist/package-search.js
CHANGED
package/dist/resources/index.js
CHANGED
|
@@ -19987,9 +19987,30 @@ function toCatalogReference(reference) {
|
|
|
19987
19987
|
};
|
|
19988
19988
|
}
|
|
19989
19989
|
async function exportResourceDefinitionAsync(importer, reference) {
|
|
19990
|
-
const payload = await importer.exportResourceAsync(reference);
|
|
19990
|
+
const [error, payload] = await catchError(importer.exportResourceAsync(reference));
|
|
19991
|
+
if (error) {
|
|
19992
|
+
throw withExportStatus(error);
|
|
19993
|
+
}
|
|
19991
19994
|
return payload.resourceDefinitions.find((d) => d.key === reference.key);
|
|
19992
19995
|
}
|
|
19996
|
+
|
|
19997
|
+
class ResourceExportError extends Error {
|
|
19998
|
+
status;
|
|
19999
|
+
constructor(message, status, cause) {
|
|
20000
|
+
super(message, { cause });
|
|
20001
|
+
this.status = status;
|
|
20002
|
+
this.name = "ResourceExportError";
|
|
20003
|
+
}
|
|
20004
|
+
}
|
|
20005
|
+
function withExportStatus(error) {
|
|
20006
|
+
if (!(error instanceof Error) || !("exceptionData" in error)) {
|
|
20007
|
+
return error;
|
|
20008
|
+
}
|
|
20009
|
+
const data = error.exceptionData;
|
|
20010
|
+
const text = typeof data === "object" && data !== null ? data.errorMessage : undefined;
|
|
20011
|
+
const match = typeof text === "string" ? /^HTTP (\d{3})\b/.exec(text) : null;
|
|
20012
|
+
return match ? new ResourceExportError(error.message, Number(match[1]), error) : error;
|
|
20013
|
+
}
|
|
19993
20014
|
function readSpecProperty(spec, name) {
|
|
19994
20015
|
if (!spec) {
|
|
19995
20016
|
return;
|
|
@@ -21427,6 +21448,7 @@ export {
|
|
|
21427
21448
|
EntryPointSpecEnhancer,
|
|
21428
21449
|
MAX_RESOURCE_NAME_LENGTH,
|
|
21429
21450
|
ProjectManifestError,
|
|
21451
|
+
ResourceExportError,
|
|
21430
21452
|
addProjectArtifactsToSolutionAsync,
|
|
21431
21453
|
applyEntryPointEnhancementAsync,
|
|
21432
21454
|
assertSolutionManifest,
|
|
@@ -21485,4 +21507,4 @@ export {
|
|
|
21485
21507
|
writeSolutionFile
|
|
21486
21508
|
};
|
|
21487
21509
|
|
|
21488
|
-
//# debugId=
|
|
21510
|
+
//# debugId=6C403C92F34B54FE64756E2164756E21
|
|
@@ -31,8 +31,19 @@ export declare function toCatalogReference(reference: CatalogReference): Resourc
|
|
|
31
31
|
/**
|
|
32
32
|
* The export carries the resource plus its transitive dependencies, so the
|
|
33
33
|
* definition is picked by key; `undefined` when the export holds none for it.
|
|
34
|
+
* A service's HTTP answer comes back as a {@link ResourceExportError}, so
|
|
35
|
+
* `extractErrorDetails` classifies it by its status.
|
|
34
36
|
*/
|
|
35
37
|
export declare function exportResourceDefinitionAsync(importer: IImportResourceHelper, reference: ResourceReferenceModel): Promise<EnhancedResourceDefinition | undefined>;
|
|
38
|
+
/**
|
|
39
|
+
* An export the owning service answered with an HTTP error. `status` is what
|
|
40
|
+
* `extractErrorDetails` reads, so a 404 is `not_found` and a 429 or 5xx can be
|
|
41
|
+
* retried. The SDK's own error stays as `cause`.
|
|
42
|
+
*/
|
|
43
|
+
export declare class ResourceExportError extends Error {
|
|
44
|
+
readonly status: number;
|
|
45
|
+
constructor(message: string, status: number, cause: unknown);
|
|
46
|
+
}
|
|
36
47
|
/** Reads a spec property by exact name, falling back to a case-insensitive match. */
|
|
37
48
|
export declare function readSpecProperty(spec: Record<string, unknown> | null | undefined, name: string): unknown;
|
|
38
49
|
/** Same row shape as `uip or packages entry-points`; the schemas stay JSON strings. */
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@uipath/solution-sdk",
|
|
3
3
|
"author": "UiPath",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
|
-
"version": "1.206.0-preview.
|
|
5
|
+
"version": "1.206.0-preview.311",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "https://github.com/UiPath/cli.git",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"dist"
|
|
53
53
|
],
|
|
54
54
|
"private": false,
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "562a7f94aae12bb340f2b18932e8809c3d76a3e0"
|
|
56
56
|
}
|