Skip to content

Commit 01ffd1c

Browse files
committed
refactor(providers): use WireAuthType alias in AddProviderDialog helper
Address S1 from sdd-verify report (one-line cleanup): the wireAuthType() helper at AddProviderDialog.vue:144 was returning the inline union 'apiKey' | 'oauth' instead of the WireAuthType alias added in commit 616d1d5. Now imports and returns the alias from @/lib/api for consistency with the rest of the wire-format type surface. Type-only change; structurally identical alias. Validation: vue-tsc clean (only pre-existing ChartContainer error), vitest 83/83 pass, pnpm run build clean.
1 parent e9576eb commit 01ffd1c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

apps/rook/dashboard/src/components/AddProviderDialog.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ import type {
4444
CreateProviderRequest,
4545
ProviderConnectionResponse,
4646
UpdateProviderRequest,
47+
WireAuthType,
4748
} from '@/lib/api'
4849
4950
type DialogMode = 'create' | 'edit'
@@ -141,7 +142,7 @@ const canSave = computed(
141142
// ---------------------------------------------------------------------------
142143
143144
/** Internal `apikey` → wire `apiKey` (backend enum uses camelCase). */
144-
function wireAuthType(a: AuthType): 'apiKey' | 'oauth' {
145+
function wireAuthType(a: AuthType): WireAuthType {
145146
return a === 'apikey' ? 'apiKey' : 'oauth'
146147
}
147148

0 commit comments

Comments
 (0)