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

46 lines (45 loc) 2.07 kB
import { PrismaToolsService } from '@nestjs-mod/prisma-tools'; import { TranslatesService } from 'nestjs-translates'; import { WebhookUser } from '../generated/rest-dto/webhook-user.entity'; import { PrismaClient } from '../generated/prisma-client'; import { WebhookToolsService } from '../services/webhook-tools.service'; import { FindManyWebhookLogArgs } from '../types/find-many-webhook-log-args'; export declare class WebhookLogsController { private readonly prismaClient; private readonly prismaToolsService; private readonly webhookToolsService; private readonly translatesService; constructor(prismaClient: PrismaClient, prismaToolsService: PrismaToolsService, webhookToolsService: WebhookToolsService, translatesService: TranslatesService); findManyLogs(externalTenantId: string, webhookUser: WebhookUser, args: FindManyWebhookLogArgs): Promise<{ webhookLogs: { id: string; request: import("@prisma/client/runtime/client").JsonValue; responseStatus: string; response: import("@prisma/client/runtime/client").JsonValue | null; webhookStatus: import("../webhook.prisma-sdk").WebhookStatus; webhookId: string; externalTenantId: string; createdAt: Date; updatedAt: Date; }[]; meta: { totalResults: number; curPage: number; perPage: number; }; }>; deleteOne(externalTenantId: string, webhookUser: WebhookUser, id: string, locale: string): Promise<{ message: string; }>; findOne(externalTenantId: string, webhookUser: WebhookUser, id: string): Promise<{ id: string; request: import("@prisma/client/runtime/client").JsonValue; responseStatus: string; response: import("@prisma/client/runtime/client").JsonValue | null; webhookStatus: import("../webhook.prisma-sdk").WebhookStatus; webhookId: string; externalTenantId: string; createdAt: Date; updatedAt: Date; }>; }