[**European Parliament MCP Server API v1.3.9**](../../../../README.md)

***

[European Parliament MCP Server API](../../../../modules.md) / [clients/ep/jsonLdHelpers](../README.md) / mapDocumentType

# Function: mapDocumentType()

> **mapDocumentType**(`rawType`): [`DocumentType`](../../../../types/ep/document/type-aliases/DocumentType.md)

Defined in: [clients/ep/jsonLdHelpers.ts:221](https://github.com/Hack23/European-Parliament-MCP-Server/blob/main/src/clients/ep/jsonLdHelpers.ts#L221)

Maps a raw work-type string to a valid DocumentType.

## Parameters

### rawType

`string`

Raw type string from EP API

## Returns

[`DocumentType`](../../../../types/ep/document/type-aliases/DocumentType.md)

Valid DocumentType
