@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
15 lines (14 loc) • 554 B
TypeScript
import { CreateWebhookUserDto } from '../generated/rest-dto/create-webhook-user.dto';
import { PrismaClient } from '../generated/prisma-client';
export declare class WebhookUsersService {
private readonly prismaClient;
constructor(prismaClient: PrismaClient);
createUserIfNotExists(user: Omit<CreateWebhookUserDto, 'id'>): Promise<{
id: string;
externalTenantId: string;
createdAt: Date;
updatedAt: Date;
externalUserId: string;
userRole: import("../webhook.prisma-sdk").WebhookRole;
}>;
}