{
  "entryFile": "src/app.ts",
  "noImplicitAdditionalProperties": "throw-on-extras",
  "controllerPathGlobs": ["src/controllers/**/*Controller.ts"],
  "spec": {
    "outputDirectory": "src",
    "specVersion": 3,
    "spec": {
      "info": {
        "title": "bma-ehr-organization - API",
        "version": "0.0.1",
        "description": "ระบบโครงสร้างอัตรากำลัง",
        "license": {
          "name": "by Frappet",
          "url": "https://frappet.com"
        }
      },
      "basePath": "/"
    },
    "securityDefinitions": {
      "bearerAuth": {
        "type": "apiKey",
        "name": "Authorization",
        "description": "Keycloak Bearer Token",
        "in": "header"
      }
    },
    "tags": [
      {
        "name": "Organization",
        "description": "โครงสร้างส่วนอื่น ๆ"
      },
      {
        "name": "OrgRoot",
        "description": "โครงสร้างระดับ root"
      },
      {
        "name": "OrgChild1",
        "description": "โครงสร้างระดับ 1"
      },
      {
        "name": "OrgChild2",
        "description": "โครงสร้างระดับ 2"
      },
      {
        "name": "OrgChild3",
        "description": "โครงสร้างระดับ 3"
      },
      {
        "name": "OrgChild4",
        "description": "โครงสร้างระดับ 4"
      },
      {
        "name": "Position",
        "description": "ตำแหน่ง"
      },
      {
        "name": "PosType",
        "description": "ประเภทตำแหน่ง"
      },
      {
        "name": "PosLevel",
        "description": "ระดับตำแหน่ง"
      },
      {
        "name": "PosExecutive",
        "description": "ตำแหน่งทางการบริหาร"
      },
      {
        "name": "Prefix",
        "description": "คำนำหน้า"
      },
      {
        "name": "Rank",
        "description": "ยศ"
      },
      {
        "name": "BloodGroup",
        "description": "กลุ่มเลือด"
      },
      {
        "name": "Gender",
        "description": "เพศ"
      },
      {
        "name": "Religion",
        "description": "ศาสนา"
      },
      {
        "name": "Relationship",
        "description": "สถานภาพ"
      },
      {
        "name": "EducationLevel",
        "description": "ระดับการศึกษา"
      },
      {
        "name": "OrganizationUnauthorize",
        "description": "โครงสร้างส่วนอื่น ๆ (Unauthorize)"
      },
      {
        "name": "Employee",
        "description": "ตำแหน่งลูกจ้างประจำ"
      },
      {
        "name": "EmployeePosType",
        "description": "กลุ่มงานลูกจ้างประจำ"
      },
      {
        "name": "EmployeePosLevel",
        "description": "ระดับชั้นงานลูกจ้างประจำ"
      },
      {
        "name": "InsigniaType",
        "description": "ลำดับชั้นเครื่องราชอิสริยาภรณ์"
      },
      {
        "name": "Insignia",
        "description": "เครื่องราชอิสริยาภรณ์"
      }
    ]
  },
  "routes": {
    "routesDir": "src/",
    "authenticationModule": "src/middlewares/auth.ts"
  }
}
