UNPKG

@nestjs-mod/webhook-afat

Version:

Webhook UI components and tools for AFAT (Angular, Formly, Antd, Transloco) and rest-sdk for work with backend of this module from Angular appliaction

32 lines (31 loc) 1.27 kB
import { WebhookLogInterface } from '../generated/rest-sdk'; import * as i0 from "@angular/core"; export interface WebhookLogModel extends Partial<Omit<WebhookLogInterface, 'createdAt' | 'updatedAt' | 'request' | 'response'>> { request?: string | null; response?: string | null; createdAt?: Date | null; updatedAt?: Date | null; } export declare class WebhookLogMapperService { toModel(item?: WebhookLogInterface): WebhookLogModel; toForm(model: WebhookLogModel): { request?: string | null; response?: string | null; createdAt?: Date | null; updatedAt?: Date | null; id?: string | undefined; webhookId?: string | undefined; externalTenantId?: string | undefined; responseStatus?: string | undefined; webhookStatus?: import("../generated/rest-sdk").WebhookStatusInterface | undefined; Webhook?: import("../generated/rest-sdk").WebhookInterface | undefined; }; toJson(data: WebhookLogModel): { responseStatus: string; webhookStatus: string; request: any; response: any; }; static ɵfac: i0.ɵɵFactoryDeclaration<WebhookLogMapperService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<WebhookLogMapperService>; }