import { Logger } from '@nestjs/common'; import { Sequelize } from 'sequelize-typescript'; import { SeederModuleOptions, More } from '.'; export declare class SeederService { options: Partial; private model; private con; private seed; private seedData; log: Logger; private data; constructor(options: Partial); /** * @author Yoni Calsin * @description This is the main method to create a seed! * @param connection Sequelize * @param seed Object | Function * @param seedData More */ onSeedInit(connection: Sequelize, seed: any, seedData: More): Promise; /** * @author Yoni Calsin * @description Check if the object exists ! * @param where More */ private isUnique; /** * @author Gabriel Vieira * @description Check if the table is empty */ private verifyIfTableIsEmpty; /** * @author Yoni Calsin * @description Create the object if it does not exist, and display a success message ! * @param item More */ private createItem; /** * @author Yoni Calsin * @description This function executes all the creation and alteration code of all the objects ! */ private initialized; }