2024-10-29 00:49:10 +07:00
|
|
|
import { PrismaService } from '../prisma.service';
|
2024-10-30 20:06:58 +07:00
|
|
|
import {
|
|
|
|
PrismaCreateProcess,
|
|
|
|
PrismaDeleteProcess,
|
|
|
|
PrismaPaginationProcess,
|
|
|
|
PrismaReadProcess,
|
|
|
|
PrismaUpdateProcess,
|
|
|
|
} from '../processes';
|
2024-10-29 00:59:35 +07:00
|
|
|
import { PrismaListProcess } from '../processes/list.process';
|
2024-10-29 00:49:10 +07:00
|
|
|
|
|
|
|
export interface PrismaModuleOptions {
|
|
|
|
delegate: (prisma: PrismaService) => any;
|
2024-10-30 20:06:58 +07:00
|
|
|
processCreate?: typeof PrismaCreateProcess;
|
|
|
|
processDelete?: typeof PrismaDeleteProcess;
|
|
|
|
processList?: typeof PrismaListProcess;
|
|
|
|
processPagination?: typeof PrismaPaginationProcess;
|
|
|
|
processRead?: typeof PrismaReadProcess;
|
|
|
|
processUpdate?: typeof PrismaUpdateProcess;
|
2024-10-29 00:49:10 +07:00
|
|
|
}
|