IntegrationContext
interface IntegrationContext<CLIENT = any, CONFIG = any, API extends ApiMethods = any, EXTENDED_API = any> extends MiddlewareContext<API, CONFIG, CLIENT> {
api: API;
client: CLIENT;
config: CONFIG;
createHttpError: (options: CreateHttpErrorOptions) => HttpError;
extendedApi: EXTENDED_API;
}Properties
| Name | Required | Type | Description |
|---|---|---|---|
api | Required | API | This property is deprecated and will be removed in the next major version. |
client | Required | CLIENT | |
config | Required | CONFIG | |
createHttpError | Required | (options: CreateHttpErrorOptions) => HttpError | Factory function for creating HTTP errors with proper status codes. Use this instead of throwing regular Error instances to ensure proper HTTP responses. |
extendedApi | Required | EXTENDED_API |
Referenced Types
- ApiMethods
- MiddlewareContext
HttpError