Service-specific parameters extending CommonServiceParams
The type of the API request object
The type of the raw API response object
The type of the parsed response returned to the caller
Builds the API request from the provided parameters.
The service call parameters
The constructed API request object
OptionalgetDetermines the API version to use for the service call.
Parses the successful API response into the expected return type.
The raw API response received from the server
The original service call parameters
The parsed response object
OptionalparseParses an API error response before propagating it to the caller.
OptionalrequestConfiguration for validating request parameters.
Sends the constructed request to the API server.
The request object to send
Custom TomTom headers to include in the request
A promise resolving to the parsed fetch response
Template interface defining the lifecycle methods for any service implementation.
Remarks
This type provides a standardized structure for implementing service calls, including request building, validation, sending, response parsing, and error handling.