@uipath/solution-sdk 1.197.0 → 1.198.0-preview.101

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.
@@ -3,7 +3,8 @@ export * from "../generated/src/index.js";
3
3
  export { buildSolutionPackageFromDir, bundleSolution, resolveSolutionDir, } from "./bundle-service";
4
4
  export type { ParentSolutionDiscovery, ProjectSolutionRegistration, RegisterProjectOptions, } from "./solution-file";
5
5
  export { findNearestParentUipxFile, findSolutionFile, isProjectRegisteredInSolution, normalizeProjectType, readSolutionManifest, readUipxFile, toPortableRelativePath, tryRegisterProjectInParentSolution, updateSolutionFile, updateUipxSolutionId, } from "./solution-file";
6
- export type { BundleResult, SolutionImportResponse, StudioWebConfig, UipxFile, UipxProject, } from "./types";
6
+ export { getStudioWebSolutionProjects } from "./solution-info";
7
+ export type { BundleResult, SolutionImportResponse, StudioWebConfig, StudioWebSolutionProject, UipxFile, UipxProject, } from "./types";
7
8
  export { importSolution, overwriteSolution, solutionExistsOnStudioWeb, uploadOrOverwriteSolution, } from "./upload-service";
8
9
  export { SDK_USER_AGENT } from "./user-agent.js";
9
10
  export { collectFiles, createZipFromDir } from "./zip-utils";
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Read solution metadata from UiPath Studio Web.
3
+ */
4
+ import type { StudioWebConfig, StudioWebSolutionProject } from "./types";
5
+ /**
6
+ * Fetch the projects of a Studio Web solution
7
+ * (`Solution_GetSolution` → `GET /api/Solution/{solutionId}`).
8
+ *
9
+ * Each project carries both the cloud project `id` and the design-time
10
+ * `designId` (the `Projects[].Id` written to the local `.uipx` manifest), so
11
+ * callers can map a local design-time ID to the real Studio Web project ID.
12
+ *
13
+ * Returns `undefined` when the solution does not exist (404) so callers can
14
+ * produce a targeted error. Throws on any other non-2xx status.
15
+ */
16
+ export declare function getStudioWebSolutionProjects(config: StudioWebConfig, organizationName: string, solutionId: string): Promise<StudioWebSolutionProject[] | undefined>;
@@ -16,6 +16,15 @@ export interface SolutionImportResponse {
16
16
  name: string;
17
17
  }>;
18
18
  }
19
+ /** A project of a Studio Web solution, as returned by Solution_GetSolution. */
20
+ export interface StudioWebSolutionProject {
21
+ /** Cloud (Studio Web) project ID. */
22
+ id: string;
23
+ /** Design-time ID — matches `Projects[].Id` in the local .uipx manifest. */
24
+ designId?: string;
25
+ name?: string;
26
+ projectType?: string;
27
+ }
19
28
  /** A project entry inside a .uipx file. */
20
29
  export interface UipxProject {
21
30
  Type: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@uipath/solution-sdk",
3
3
  "license": "MIT",
4
- "version": "1.197.0",
4
+ "version": "1.198.0-preview.101",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/UiPath/cli.git",
@@ -31,5 +31,5 @@
31
31
  "dist"
32
32
  ],
33
33
  "private": false,
34
- "gitHead": "56f68b263cec4ea1f2a39d738bd99ecf52f88fea"
34
+ "gitHead": "07ef94915524cc0105bfe5cbee232efbb7f8f92c"
35
35
  }