import requests

from ..models import Integration
from . import IntegrationParser


class TypeUnknownParser(IntegrationParser):
    """
    Parse invocations to a APIGateway resource with an unknown integration type
    """

    def invoke(
        self, request: requests.PreparedRequest, integration: Integration
    ) -> tuple[int, str | bytes]:
        _type = integration.integration_type
        raise NotImplementedError(f"The {_type} type has not been implemented")
