Files
infisical/frontend/src/hooks/api/pam/maps.ts
T
Fang-Pen Lin cc6f0e79dd Add mysql stuff
Add missing mysql types

Add missing mysql import

Add more mysql stuff

Add mysql options

Add missing mysql stuff

Update more for mysql stuff

Fix wrong psql stuff

Add mysql as deps

Use mysql2 driver

Add missing mysql stuff

Fix mysql form

Fix db conn details schema

Add more missing stuff for mysql

Add more missing stuff

Add TODO

Refactor

refactor

Refactor code

Refactor

Connect only for mysql

Upgrade mysql2

Try built in approach

Rename the field

Make ssl default

Clean up

Remove dev code

Add todo

Rename the right one

Fix linter

Add missing await

Fix linter issue

Fix linter complains

Fix linter complains

Fix more linters

Fix more linter issues

Fix linter issues

Fix linters

# Conflicts:
#	backend/src/ee/routes/v1/pam-resource-routers/pam-resource-router.ts
#	backend/src/ee/services/pam-resource/pam-resource-fns.ts
#	frontend/src/pages/pam/PamAccountsPage/components/PamAccountForm/PamAccountForm.tsx

# Conflicts:
#	frontend/src/pages/pam/PamAccountsPage/components/PamAccessAccountModal.tsx
2025-10-24 12:29:21 -07:00

13 lines
508 B
TypeScript

import { PamResourceType } from "./enums";
export const PAM_RESOURCE_TYPE_MAP: Record<
PamResourceType,
{ name: string; image: string; size?: number }
> = {
[PamResourceType.Postgres]: { name: "PostgreSQL", image: "Postgres.png" },
[PamResourceType.MySQL]: { name: "MySQL", image: "MySql.png" },
[PamResourceType.RDP]: { name: "RDP", image: "RDP.png" },
[PamResourceType.SSH]: { name: "SSH", image: "SSH.png" },
[PamResourceType.Kubernetes]: { name: "Kubernetes", image: "Kubernetes.png" }
};