UNPKG

@nestjs-mod/webhook

Version:

Webhook module with an error filter, guard, controller, database migrations and rest-sdk for work with module from other nodejs appliaction

989 lines (988 loc) 27.3 kB
/** * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { Configuration } from './configuration'; import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import type { RequestArgs } from './base'; import { BaseAPI } from './base'; /** * * @export * @interface CreateWebhookDto */ export interface CreateWebhookDto { /** * * @type {string} * @memberof CreateWebhookDto */ 'eventName': string; /** * * @type {string} * @memberof CreateWebhookDto */ 'endpoint': string; /** * * @type {boolean} * @memberof CreateWebhookDto */ 'enabled': boolean; /** * * @type {object} * @memberof CreateWebhookDto */ 'headers'?: object | null; /** * * @type {number} * @memberof CreateWebhookDto */ 'requestTimeout'?: number | null; /** * * @type {string} * @memberof CreateWebhookDto */ 'workUntilDate'?: string | null; } /** * * @export * @interface FindManyResponseMeta */ export interface FindManyResponseMeta { /** * * @type {number} * @memberof FindManyResponseMeta */ 'curPage'?: number; /** * * @type {number} * @memberof FindManyResponseMeta */ 'perPage'?: number; /** * * @type {number} * @memberof FindManyResponseMeta */ 'totalResults': number; } /** * * @export * @interface FindManyWebhookLogResponse */ export interface FindManyWebhookLogResponse { /** * * @type {Array<WebhookLog>} * @memberof FindManyWebhookLogResponse */ 'webhookLogs': Array<WebhookLog>; /** * * @type {FindManyResponseMeta} * @memberof FindManyWebhookLogResponse */ 'meta': FindManyResponseMeta; } /** * * @export * @interface FindManyWebhookResponse */ export interface FindManyWebhookResponse { /** * * @type {Array<Webhook>} * @memberof FindManyWebhookResponse */ 'webhooks': Array<Webhook>; /** * * @type {FindManyResponseMeta} * @memberof FindManyWebhookResponse */ 'meta': FindManyResponseMeta; } /** * * @export * @interface StatusResponse */ export interface StatusResponse { /** * * @type {string} * @memberof StatusResponse */ 'message': string; } /** * * @export * @interface UpdateWebhookDto */ export interface UpdateWebhookDto { /** * * @type {string} * @memberof UpdateWebhookDto */ 'eventName'?: string; /** * * @type {string} * @memberof UpdateWebhookDto */ 'endpoint'?: string; /** * * @type {boolean} * @memberof UpdateWebhookDto */ 'enabled'?: boolean; /** * * @type {object} * @memberof UpdateWebhookDto */ 'headers'?: object | null; /** * * @type {number} * @memberof UpdateWebhookDto */ 'requestTimeout'?: number | null; /** * * @type {string} * @memberof UpdateWebhookDto */ 'workUntilDate'?: string | null; } /** * * @export * @interface Webhook */ export interface Webhook { /** * * @type {string} * @memberof Webhook */ 'id': string; /** * * @type {string} * @memberof Webhook */ 'eventName': string; /** * * @type {string} * @memberof Webhook */ 'endpoint': string; /** * * @type {boolean} * @memberof Webhook */ 'enabled': boolean; /** * * @type {object} * @memberof Webhook */ 'headers': object | null; /** * * @type {number} * @memberof Webhook */ 'requestTimeout': number | null; /** * * @type {string} * @memberof Webhook */ 'externalTenantId': string; /** * * @type {string} * @memberof Webhook */ 'createdBy': string; /** * * @type {string} * @memberof Webhook */ 'updatedBy': string; /** * * @type {string} * @memberof Webhook */ 'createdAt': string; /** * * @type {string} * @memberof Webhook */ 'updatedAt': string; /** * * @type {string} * @memberof Webhook */ 'workUntilDate': string | null; /** * * @type {WebhookUser} * @memberof Webhook */ 'WebhookUser_Webhook_createdByToWebhookUser'?: WebhookUser; /** * * @type {WebhookUser} * @memberof Webhook */ 'WebhookUser_Webhook_updatedByToWebhookUser'?: WebhookUser; /** * * @type {Array<WebhookLog>} * @memberof Webhook */ 'WebhookLog'?: Array<WebhookLog>; } /** * * @export * @interface WebhookEntities */ export interface WebhookEntities { /** * * @type {WebhookScalarFieldEnum} * @memberof WebhookEntities */ 'Webhook': WebhookScalarFieldEnum; /** * * @type {WebhookLogScalarFieldEnum} * @memberof WebhookEntities */ 'WebhookLog': WebhookLogScalarFieldEnum; /** * * @type {WebhookUserScalarFieldEnum} * @memberof WebhookEntities */ 'WebhookUser': WebhookUserScalarFieldEnum; } /** * * @export * @interface WebhookError */ export interface WebhookError { /** * Webhook error (WEBHOOK-000), Tenant ID not set (WEBHOOK-003), User ID not set (WEBHOOK-002), Forbidden (WEBHOOK-001), User not found (WEBHOOK-004), Event not found (WEBHOOK-005) * @type {string} * @memberof WebhookError */ 'message': string; /** * * @type {WebhookErrorEnum} * @memberof WebhookError */ 'code': WebhookErrorEnum; /** * * @type {object} * @memberof WebhookError */ 'metadata'?: object; } /** * * @export * @enum {string} */ export declare const WebhookErrorEnum: { readonly Webhook000: "WEBHOOK-000"; readonly Webhook001: "WEBHOOK-001"; readonly Webhook002: "WEBHOOK-002"; readonly Webhook003: "WEBHOOK-003"; readonly Webhook004: "WEBHOOK-004"; readonly Webhook005: "WEBHOOK-005"; }; export type WebhookErrorEnum = typeof WebhookErrorEnum[keyof typeof WebhookErrorEnum]; /** * * @export * @interface WebhookEvent */ export interface WebhookEvent { /** * * @type {string} * @memberof WebhookEvent */ 'eventName': string; /** * * @type {string} * @memberof WebhookEvent */ 'description': string; /** * * @type {object} * @memberof WebhookEvent */ 'example': object; } /** * * @export * @interface WebhookLog */ export interface WebhookLog { /** * * @type {string} * @memberof WebhookLog */ 'id': string; /** * * @type {object} * @memberof WebhookLog */ 'request': object; /** * * @type {string} * @memberof WebhookLog */ 'responseStatus': string; /** * * @type {object} * @memberof WebhookLog */ 'response': object | null; /** * * @type {WebhookStatus} * @memberof WebhookLog */ 'webhookStatus': WebhookStatus; /** * * @type {string} * @memberof WebhookLog */ 'webhookId': string; /** * * @type {string} * @memberof WebhookLog */ 'externalTenantId': string; /** * * @type {string} * @memberof WebhookLog */ 'createdAt': string; /** * * @type {string} * @memberof WebhookLog */ 'updatedAt': string; /** * * @type {Webhook} * @memberof WebhookLog */ 'Webhook'?: Webhook; } /** * * @export * @enum {string} */ export declare const WebhookLogScalarFieldEnum: { readonly Id: "id"; readonly Request: "request"; readonly ResponseStatus: "responseStatus"; readonly Response: "response"; readonly WebhookStatus: "webhookStatus"; readonly WebhookId: "webhookId"; readonly ExternalTenantId: "externalTenantId"; readonly CreatedAt: "createdAt"; readonly UpdatedAt: "updatedAt"; }; export type WebhookLogScalarFieldEnum = typeof WebhookLogScalarFieldEnum[keyof typeof WebhookLogScalarFieldEnum]; /** * * @export * @interface WebhookLogsControllerFindManyLogs400Response */ export interface WebhookLogsControllerFindManyLogs400Response { /** * Webhook error (WEBHOOK-000), Tenant ID not set (WEBHOOK-003), User ID not set (WEBHOOK-002), Forbidden (WEBHOOK-001), User not found (WEBHOOK-004), Event not found (WEBHOOK-005) * @type {string} * @memberof WebhookLogsControllerFindManyLogs400Response */ 'message': string; /** * * @type {WebhookErrorEnum} * @memberof WebhookLogsControllerFindManyLogs400Response */ 'code': WebhookErrorEnum; /** * * @type {object} * @memberof WebhookLogsControllerFindManyLogs400Response */ 'metadata'?: object; } /** * * @export * @enum {string} */ export declare const WebhookRole: { readonly Admin: "Admin"; readonly User: "User"; }; export type WebhookRole = typeof WebhookRole[keyof typeof WebhookRole]; /** * * @export * @enum {string} */ export declare const WebhookScalarFieldEnum: { readonly Id: "id"; readonly EventName: "eventName"; readonly Endpoint: "endpoint"; readonly Enabled: "enabled"; readonly Headers: "headers"; readonly RequestTimeout: "requestTimeout"; readonly ExternalTenantId: "externalTenantId"; readonly CreatedBy: "createdBy"; readonly UpdatedBy: "updatedBy"; readonly CreatedAt: "createdAt"; readonly UpdatedAt: "updatedAt"; readonly WorkUntilDate: "workUntilDate"; }; export type WebhookScalarFieldEnum = typeof WebhookScalarFieldEnum[keyof typeof WebhookScalarFieldEnum]; /** * * @export * @enum {string} */ export declare const WebhookStatus: { readonly Pending: "Pending"; readonly Process: "Process"; readonly Success: "Success"; readonly Error: "Error"; readonly Timeout: "Timeout"; }; export type WebhookStatus = typeof WebhookStatus[keyof typeof WebhookStatus]; /** * * @export * @interface WebhookTestRequestResponse */ export interface WebhookTestRequestResponse { /** * * @type {object} * @memberof WebhookTestRequestResponse */ 'request': object; /** * * @type {string} * @memberof WebhookTestRequestResponse */ 'responseStatus': string; /** * * @type {object} * @memberof WebhookTestRequestResponse */ 'response': object | null; /** * * @type {WebhookStatus} * @memberof WebhookTestRequestResponse */ 'webhookStatus': WebhookStatus; } /** * * @export * @interface WebhookUser */ export interface WebhookUser { /** * * @type {string} * @memberof WebhookUser */ 'id': string; /** * * @type {string} * @memberof WebhookUser */ 'externalTenantId': string; /** * * @type {string} * @memberof WebhookUser */ 'externalUserId': string; /** * * @type {WebhookRole} * @memberof WebhookUser */ 'userRole': WebhookRole; /** * * @type {string} * @memberof WebhookUser */ 'createdAt': string; /** * * @type {string} * @memberof WebhookUser */ 'updatedAt': string; /** * * @type {Array<Webhook>} * @memberof WebhookUser */ 'Webhook_Webhook_createdByToWebhookUser'?: Array<Webhook>; /** * * @type {Array<Webhook>} * @memberof WebhookUser */ 'Webhook_Webhook_updatedByToWebhookUser'?: Array<Webhook>; } /** * * @export * @enum {string} */ export declare const WebhookUserScalarFieldEnum: { readonly Id: "id"; readonly ExternalTenantId: "externalTenantId"; readonly ExternalUserId: "externalUserId"; readonly UserRole: "userRole"; readonly CreatedAt: "createdAt"; readonly UpdatedAt: "updatedAt"; }; export type WebhookUserScalarFieldEnum = typeof WebhookUserScalarFieldEnum[keyof typeof WebhookUserScalarFieldEnum]; /** * WebhookApi - axios parameter creator * @export */ export declare const WebhookApiAxiosParamCreator: (configuration?: Configuration) => { /** * * @param {CreateWebhookDto} createWebhookDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ webhookControllerCreateOne: (createWebhookDto: CreateWebhookDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>; /** * * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ webhookControllerDeleteOne: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>; /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ webhookControllerEvents: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>; /** * * @param {number} [curPage] * @param {number} [perPage] * @param {string} [searchText] * @param {string} [sort] * @param {string} [tenantId] * @param {*} [options] Override http request option. * @throws {RequiredError} */ webhookControllerFindMany: (curPage?: number, perPage?: number, searchText?: string, sort?: string, tenantId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>; /** * * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ webhookControllerFindOne: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>; /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ webhookControllerProfile: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>; /** * * @param {CreateWebhookDto} createWebhookDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ webhookControllerTestRequest: (createWebhookDto: CreateWebhookDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>; /** * * @param {string} id * @param {UpdateWebhookDto} updateWebhookDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ webhookControllerUpdateOne: (id: string, updateWebhookDto: UpdateWebhookDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>; /** * * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ webhookLogsControllerDeleteOne: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>; /** * * @param {string} webhookId * @param {number} [curPage] * @param {number} [perPage] * @param {string} [searchText] * @param {string} [sort] * @param {*} [options] Override http request option. * @throws {RequiredError} */ webhookLogsControllerFindManyLogs: (webhookId: string, curPage?: number, perPage?: number, searchText?: string, sort?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>; /** * * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ webhookLogsControllerFindOne: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>; }; /** * WebhookApi - functional programming interface * @export */ export declare const WebhookApiFp: (configuration?: Configuration) => { /** * * @param {CreateWebhookDto} createWebhookDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ webhookControllerCreateOne(createWebhookDto: CreateWebhookDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Webhook>>; /** * * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ webhookControllerDeleteOne(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StatusResponse>>; /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ webhookControllerEvents(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<WebhookEvent>>>; /** * * @param {number} [curPage] * @param {number} [perPage] * @param {string} [searchText] * @param {string} [sort] * @param {string} [tenantId] * @param {*} [options] Override http request option. * @throws {RequiredError} */ webhookControllerFindMany(curPage?: number, perPage?: number, searchText?: string, sort?: string, tenantId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FindManyWebhookResponse>>; /** * * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ webhookControllerFindOne(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Webhook>>; /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ webhookControllerProfile(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WebhookUser>>; /** * * @param {CreateWebhookDto} createWebhookDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ webhookControllerTestRequest(createWebhookDto: CreateWebhookDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WebhookTestRequestResponse>>; /** * * @param {string} id * @param {UpdateWebhookDto} updateWebhookDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ webhookControllerUpdateOne(id: string, updateWebhookDto: UpdateWebhookDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Webhook>>; /** * * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ webhookLogsControllerDeleteOne(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StatusResponse>>; /** * * @param {string} webhookId * @param {number} [curPage] * @param {number} [perPage] * @param {string} [searchText] * @param {string} [sort] * @param {*} [options] Override http request option. * @throws {RequiredError} */ webhookLogsControllerFindManyLogs(webhookId: string, curPage?: number, perPage?: number, searchText?: string, sort?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FindManyWebhookLogResponse>>; /** * * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ webhookLogsControllerFindOne(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WebhookLog>>; }; /** * WebhookApi - factory interface * @export */ export declare const WebhookApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * * @param {CreateWebhookDto} createWebhookDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ webhookControllerCreateOne(createWebhookDto: CreateWebhookDto, options?: RawAxiosRequestConfig): AxiosPromise<Webhook>; /** * * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ webhookControllerDeleteOne(id: string, options?: RawAxiosRequestConfig): AxiosPromise<StatusResponse>; /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ webhookControllerEvents(options?: RawAxiosRequestConfig): AxiosPromise<Array<WebhookEvent>>; /** * * @param {number} [curPage] * @param {number} [perPage] * @param {string} [searchText] * @param {string} [sort] * @param {string} [tenantId] * @param {*} [options] Override http request option. * @throws {RequiredError} */ webhookControllerFindMany(curPage?: number, perPage?: number, searchText?: string, sort?: string, tenantId?: string, options?: RawAxiosRequestConfig): AxiosPromise<FindManyWebhookResponse>; /** * * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ webhookControllerFindOne(id: string, options?: RawAxiosRequestConfig): AxiosPromise<Webhook>; /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ webhookControllerProfile(options?: RawAxiosRequestConfig): AxiosPromise<WebhookUser>; /** * * @param {CreateWebhookDto} createWebhookDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ webhookControllerTestRequest(createWebhookDto: CreateWebhookDto, options?: RawAxiosRequestConfig): AxiosPromise<WebhookTestRequestResponse>; /** * * @param {string} id * @param {UpdateWebhookDto} updateWebhookDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ webhookControllerUpdateOne(id: string, updateWebhookDto: UpdateWebhookDto, options?: RawAxiosRequestConfig): AxiosPromise<Webhook>; /** * * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ webhookLogsControllerDeleteOne(id: string, options?: RawAxiosRequestConfig): AxiosPromise<StatusResponse>; /** * * @param {string} webhookId * @param {number} [curPage] * @param {number} [perPage] * @param {string} [searchText] * @param {string} [sort] * @param {*} [options] Override http request option. * @throws {RequiredError} */ webhookLogsControllerFindManyLogs(webhookId: string, curPage?: number, perPage?: number, searchText?: string, sort?: string, options?: RawAxiosRequestConfig): AxiosPromise<FindManyWebhookLogResponse>; /** * * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ webhookLogsControllerFindOne(id: string, options?: RawAxiosRequestConfig): AxiosPromise<WebhookLog>; }; /** * WebhookApi - object-oriented interface * @export * @class WebhookApi * @extends {BaseAPI} */ export declare class WebhookApi extends BaseAPI { /** * * @param {CreateWebhookDto} createWebhookDto * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof WebhookApi */ webhookControllerCreateOne(createWebhookDto: CreateWebhookDto, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Webhook, any>>; /** * * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof WebhookApi */ webhookControllerDeleteOne(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<StatusResponse, any>>; /** * * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof WebhookApi */ webhookControllerEvents(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WebhookEvent[], any>>; /** * * @param {number} [curPage] * @param {number} [perPage] * @param {string} [searchText] * @param {string} [sort] * @param {string} [tenantId] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof WebhookApi */ webhookControllerFindMany(curPage?: number, perPage?: number, searchText?: string, sort?: string, tenantId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<FindManyWebhookResponse, any>>; /** * * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof WebhookApi */ webhookControllerFindOne(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Webhook, any>>; /** * * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof WebhookApi */ webhookControllerProfile(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WebhookUser, any>>; /** * * @param {CreateWebhookDto} createWebhookDto * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof WebhookApi */ webhookControllerTestRequest(createWebhookDto: CreateWebhookDto, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WebhookTestRequestResponse, any>>; /** * * @param {string} id * @param {UpdateWebhookDto} updateWebhookDto * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof WebhookApi */ webhookControllerUpdateOne(id: string, updateWebhookDto: UpdateWebhookDto, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Webhook, any>>; /** * * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof WebhookApi */ webhookLogsControllerDeleteOne(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<StatusResponse, any>>; /** * * @param {string} webhookId * @param {number} [curPage] * @param {number} [perPage] * @param {string} [searchText] * @param {string} [sort] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof WebhookApi */ webhookLogsControllerFindManyLogs(webhookId: string, curPage?: number, perPage?: number, searchText?: string, sort?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<FindManyWebhookLogResponse, any>>; /** * * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof WebhookApi */ webhookLogsControllerFindOne(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WebhookLog, any>>; }