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

44 lines (43 loc) 1.91 kB
import { PrismaToolsService } from '@nestjs-mod/prisma-tools'; import { TranslatesService } from 'nestjs-translates'; import { PrismaClient } from '../generated/prisma-client'; import { WebhookUser } from '../generated/rest-dto/webhook-user.entity'; import { FindManyWebhookLogArgs } from '../types/find-many-webhook-log-args'; export declare class WebhookLogsController { private readonly prismaClient; private readonly prismaToolsService; private readonly translatesService; constructor(prismaClient: PrismaClient, prismaToolsService: PrismaToolsService, 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; }>; }