diff --git a/frontend/src/hooks/api/sshHost/types.ts b/frontend/src/hooks/api/sshHost/types.ts index 8451be4d3..e92ddeaa8 100644 --- a/frontend/src/hooks/api/sshHost/types.ts +++ b/frontend/src/hooks/api/sshHost/types.ts @@ -20,14 +20,13 @@ export type TSshHost = { hostCertTtl: string; loginMappings: TLoginMapping[]; }; - export type TCreateSshHostDTO = { projectId: string; hostname: string; alias?: string; userCertTtl?: string; hostCertTtl?: string; - loginMappings: TLoginMapping[]; + loginMappings: Omit[]; }; export type TUpdateSshHostDTO = { @@ -36,7 +35,7 @@ export type TUpdateSshHostDTO = { alias?: string; userCertTtl?: string; hostCertTtl?: string; - loginMappings?: TLoginMapping[]; + loginMappings?: Omit[]; }; export type TDeleteSshHostDTO = { diff --git a/frontend/src/hooks/api/sshHostGroup/types.ts b/frontend/src/hooks/api/sshHostGroup/types.ts index 24f36f5ab..6e193c8b6 100644 --- a/frontend/src/hooks/api/sshHostGroup/types.ts +++ b/frontend/src/hooks/api/sshHostGroup/types.ts @@ -4,19 +4,19 @@ export type TSshHostGroup = { id: string; projectId: string; name: string; - loginMappings: TLoginMapping[]; + loginMappings: Omit[]; }; export type TCreateSshHostGroupDTO = { projectId: string; name: string; - loginMappings: TLoginMapping[]; + loginMappings: Omit[]; }; export type TUpdateSshHostGroupDTO = { sshHostGroupId: string; name?: string; - loginMappings?: TLoginMapping[]; + loginMappings?: Omit[]; }; export type TDeleteSshHostGroupDTO = {