Skip to content

fix(docs): generate the Integration Service API reference pages - #762

Merged
vnaren23 merged 1 commit into
mainfrom
fix/is-docs-nav
Sep 18, 2026
Merged

vnaren23 merged 1 commit into
mainfrom
fix/is-docs-nav

Conversation

@ninja-shreyash

@ninja-shreyash ninja-shreyash commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

The Connections section of the API reference is empty. The three pages linked from mkdocs.yml:215-218 (ConnectorsServiceModel, ConnectionsServiceModel, ElementsServiceModel) all 404.

TypeDoc runs off src/index.ts only, and nothing there reached src/models/integration-service/, so those pages were never generated. Users from the same release works because src/index.ts already exports ./models/platform.

Changes

  • Add src/models/integration-service/index.ts and export it from src/index.ts, same as models/platform. Models only, services stay subpath-only. This is the docs fix.
  • Declare ConnectionState once in src/models/common/types.ts, beside the existing JobState. Integration Service and conversational-agent each had their own copy with identical values (Enabled, Disabled, Expired, Failed), which collided with TS2308 once the models reached the root barrel.
  • Each domain's models barrel re-exports the shared enum, and the subpaths pick it up through the export * they already have. Tests import it from the models path, alongside the response types they already take from there.
  • The Integration Service barrel now exports the models barrel instead of listing the eight model files individually, so the list lives in one place.

No breaking change. ConnectionState keeps its name and values, @uipath/uipath-typescript/connections and @uipath/uipath-typescript/conversational-agent both still export it as a value, and the published api/enumerations/ConnectionState page keeps working. It is now also importable from the root without ambiguity.

Verification

typedoc generates all three pages plus a single ConnectionState enum page, typecheck clean, oxlint 0 errors, test:unit 2873 passing, build clean, docs:validate matches main. Checked in dist that ConnectionState is exported from /connections, /conversational-agent and the root, and that ConnectionGetResponse, ConnectorGetResponse, ElementObject and ExecuteResult survive the barrel swap.

Please merge before #760 (1.7.2 bump), so the pages go live with that release.

Context: Slack thread where this duplicate name was raised.

Follow-ups, not here

  • Nothing fails CI when mkdocs.yml links a page TypeDoc skips. Either set strict: true or add the API pages to an llmstxt section.
  • tsconfig.json is include: ['src/**/*'] with tests excluded, so typecheck never validates test-file imports, and roughly 70 type errors have accumulated in the integration suite (mostly tests/integration/shared/maestro/).
  • execute() is missing from release-metadata.json (per the bot on chore: bump version to 1.7.2 #760). The generator only walks *ServiceModel interfaces, and execute() is a standalone function.
  • Field and LogicalOperator are also declared twice (data-fabric and document-understanding), coexisting only because DU framework is root-exported as a namespace.

@ninja-shreyash
ninja-shreyash requested a review from a team September 18, 2026 09:50
@claude

claude Bot commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

✅ No issues found. Checked for bugs and CLAUDE.md compliance.

@claude

claude Bot commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

✅ No issues found. Checked for bugs and CLAUDE.md compliance.

@claude

claude Bot commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

✅ No issues found. Checked for bugs and CLAUDE.md compliance.

Comment thread tests/utils/mocks/integration-service.ts Outdated
@claude

claude Bot commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

✅ No issues found. Checked for bugs and CLAUDE.md compliance.

1 similar comment
@claude

claude Bot commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

✅ No issues found. Checked for bugs and CLAUDE.md compliance.

The Connections nav section pointed at three pages TypeDoc never emitted,
so every entry under it 404'd. TypeDoc runs off a single entry point,
src/index.ts, which never reached src/models/integration-service: the
directory had no barrel and no export line. Add the barrel and export it,
mirroring models/platform, whose barrel is why the Users pages from the
same release do render.

Exporting it collided with the identically-shaped ConnectionState enum in
conversational-agent (TS2308), so declare that enum once in
models/common/types.ts beside JobState and re-export it from each domain's
connections.types.ts, the way jobs.types.ts re-exports StopStrategy. Both
subpaths still export it as a value and the published
api/enumerations/ConnectionState page is unchanged, so nothing breaks for
consumers.

The Integration Service barrel now exports the models barrel instead of
listing the eight model files individually.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@claude

claude Bot commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

✅ No issues found. Checked for bugs and CLAUDE.md compliance.

@vnaren23
vnaren23 merged commit 1ac309a into main Sep 18, 2026
14 of 16 checks passed
@vnaren23
vnaren23 deleted the fix/is-docs-nav branch September 18, 2026 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants