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

20 lines (19 loc) 873 B
import { KeyvService } from '@nestjs-mod/keyv'; import { PrismaClient } from '../generated/prisma-client'; import { WebhookStaticEnvironments } from '../webhook.environments'; export declare class WebhookCacheService { private readonly prismaClient; private readonly webhookStaticEnvironments; private readonly keyvService; constructor(prismaClient: PrismaClient, webhookStaticEnvironments: WebhookStaticEnvironments, keyvService: KeyvService); clearCacheByExternalUserId(externalUserId: string): Promise<void>; getCachedUserByExternalUserId(externalUserId: string, externalTenantId?: string): Promise<{ id: string; externalTenantId: string; createdAt: Date; updatedAt: Date; externalUserId: string; userRole: import("../webhook.prisma-sdk").WebhookRole; } | null>; private getUserCacheKey; }