feat(data-fabric): tag DF service requests with x-uipath-source - #694
feat(data-fabric): tag DF service requests with x-uipath-source#694AditiGoyalUipath wants to merge 2 commits into
Conversation
Set x-uipath-source: uipath-typescript-sdk on every request from the four DataFabric services (Entities, ChoiceSets, Directory, Roles) via BaseService's constructor headers arg, so the DF backend can distinguish SDK-originated traffic. Unit tests assert the header lands on the ApiClient config. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Review summaryTwo issues found: 1. Missing 2. Hardcoded header name string in all four test files (choicesets.test.ts#L61) |
…alue constant Tag UIPATH_SOURCE with @internal (matches CONVERSATIONAL_SURFACE_* pattern) so TypeDoc excludes it from public docs, and extract the 'uipath-typescript-sdk' value to UIPATH_TYPESCRIPT_SDK. Update the four DF service constructors and their unit tests to reference the constants instead of hardcoding the strings. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
✅ No issues found. Checked for bugs and CLAUDE.md compliance. |
|



Set x-uipath-source: uipath-typescript-sdk on every request from the four DataFabric services (Entities, ChoiceSets, Directory, Roles) via BaseService's constructor headers arg, so the DF backend can distinguish SDK-originated traffic. Unit tests assert the header lands on the ApiClient config.