import { appModuleProvider } from '@baseplate-dev/fastify-generators';
import { createGeneratorTask, createProviderType } from '@baseplate-dev/sync';
const localAuthCoreAuthModulePaths = createProviderType('local-auth-core-auth-module-paths');
const localAuthCoreAuthModulePathsTask = createGeneratorTask({
    dependencies: { appModule: appModuleProvider },
    exports: {
        localAuthCoreAuthModulePaths: localAuthCoreAuthModulePaths.export(),
    },
    run({ appModule }) {
        const moduleRoot = appModule.getModuleFolder();
        return {
            providers: {
                localAuthCoreAuthModulePaths: {
                    authRoleEnum: `${moduleRoot}/schema/auth-role.enum.ts`,
                    cookieSigner: `${moduleRoot}/utils/cookie-signer.ts`,
                    queuesCleanupAuthVerification: `${moduleRoot}/queues/cleanup-auth-verification.queue.ts`,
                    schemaUserSessionMutations: `${moduleRoot}/schema/user-session.mutations.ts`,
                    schemaUserSessionPayloadObjectType: `${moduleRoot}/schema/user-session-payload.object-type.ts`,
                    schemaUserSessionQueries: `${moduleRoot}/schema/user-session.queries.ts`,
                    servicesAuthVerification: `${moduleRoot}/services/auth-verification.service.ts`,
                    sessionCookie: `${moduleRoot}/utils/session-cookie.ts`,
                    userRolesMutations: `${moduleRoot}/schema/user-roles.mutations.ts`,
                    userRolesService: `${moduleRoot}/services/user-roles.service.ts`,
                    userSessionConstants: `${moduleRoot}/constants/user-session.constants.ts`,
                    userSessionService: `${moduleRoot}/services/user-session.service.ts`,
                    verifyRequestOrigin: `${moduleRoot}/utils/verify-request-origin.ts`,
                },
            },
        };
    },
});
export const LOCAL_AUTH_CORE_AUTH_MODULE_PATHS = {
    provider: localAuthCoreAuthModulePaths,
    task: localAuthCoreAuthModulePathsTask,
};
//# sourceMappingURL=template-paths.js.map