import { A_HttpServerRequestMethod } from "@adaas/a-server/server/A-HttpServer.types"; import { A_SERVER_CONSTANTS__A_HttpChannel_Lifecycle } from "./A-Http.channel.constants"; export type A_SERVER_CONSTANTS__A_HttpChannel_LifecycleNames = typeof A_SERVER_CONSTANTS__A_HttpChannel_Lifecycle[keyof typeof A_SERVER_CONSTANTS__A_HttpChannel_Lifecycle]; export type A_SERVER_TYPES__HttpChannelSendParams = any> = { /** * HTTP Method */ method: A_HttpServerRequestMethod, /** * Request URL */ url: string, /** * Request Body or Query Parameters */ data?: any, /** * Request Configuration */ config?: Partial>, } export type A_SERVER_TYPES__HttpChannelRequestParams = any> = { /** * HTTP Method */ method: A_HttpServerRequestMethod, /** * Request URL */ url: string, /** * Request Body or Query Parameters */ data?: any, /** * Request Configuration */ config?: Partial>, } export type A_SERVER_TYPES__HttpChannelRequestConfig = any> = { /** * Response Type */ responseType: "json" | "text" | "blob"; /** * Request Headers */ headers: Record; /** * Query Parameters */ params: Record; /** * Metadata */ meta: M; /** * Throw on Error */ throwOnError: boolean; };