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

60 lines (59 loc) 1.84 kB
/** * This file should be your main import to use Prisma. Through it you get access to all the models, enums, and input types. * * 🟢 You can import this file directly. */ import * as runtime from "@prisma/client/runtime/client"; import * as $Enums from "./enums"; import * as $Class from "./internal/class"; import * as Prisma from "./internal/prismaNamespace"; export * as $Enums from './enums'; /** * ## Prisma Client * * Type-safe database client for TypeScript * @example * ``` * const prisma = new PrismaClient() * // Fetch zero or more Webhooks * const webhooks = await prisma.webhook.findMany() * ``` * * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client). */ export declare const PrismaClient: $Class.PrismaClientConstructor; export type PrismaClient<ClientOptions extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions, Log = $Class.LogOptions<ClientOptions>, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = $Class.PrismaClient<ClientOptions, Log, ExtArgs>; export { Prisma }; /** * Model Webhook * */ export type Webhook = Prisma.WebhookModel; /** * Model WebhookLog * */ export type WebhookLog = Prisma.WebhookLogModel; /** * Model WebhookUser * */ export type WebhookUser = Prisma.WebhookUserModel; /** * Model migrations_webhook * */ export type migrations_webhook = Prisma.migrations_webhookModel; export type WebhookRole = $Enums.WebhookRole; export declare const WebhookRole: { readonly Admin: "Admin"; readonly User: "User"; }; export type WebhookStatus = $Enums.WebhookStatus; export declare const WebhookStatus: { readonly Pending: "Pending"; readonly Process: "Process"; readonly Success: "Success"; readonly Error: "Error"; readonly Timeout: "Timeout"; };