From 7968359bfed6b4fbcfbfa3cbe0dec92a0ea6facb Mon Sep 17 00:00:00 2001 From: Matthieu Haineault Date: Thu, 13 Nov 2025 15:34:48 -0500 Subject: [PATCH] clean(imports): module import cleaning --- docs/swagger/swagger-spec.json | 84 +++++++++---------- src/app.module.ts | 2 + .../identity-and-account.module.ts | 6 -- 3 files changed, 44 insertions(+), 48 deletions(-) diff --git a/docs/swagger/swagger-spec.json b/docs/swagger/swagger-spec.json index 2cb7982..28fa9d9 100644 --- a/docs/swagger/swagger-spec.json +++ b/docs/swagger/swagger-spec.json @@ -15,6 +15,48 @@ ] } }, + "/auth/v1/login": { + "get": { + "operationId": "AuthController_login", + "parameters": [], + "responses": { + "200": { + "description": "" + } + }, + "tags": [ + "Auth" + ] + } + }, + "/auth/callback": { + "get": { + "operationId": "AuthController_loginCallback", + "parameters": [], + "responses": { + "200": { + "description": "" + } + }, + "tags": [ + "Auth" + ] + } + }, + "/auth/me": { + "get": { + "operationId": "AuthController_getProfile", + "parameters": [], + "responses": { + "200": { + "description": "" + } + }, + "tags": [ + "Auth" + ] + } + }, "/notifications/summary": { "get": { "operationId": "NotificationsController_summary", @@ -521,48 +563,6 @@ ] } }, - "/auth/v1/login": { - "get": { - "operationId": "AuthController_login", - "parameters": [], - "responses": { - "200": { - "description": "" - } - }, - "tags": [ - "Auth" - ] - } - }, - "/auth/callback": { - "get": { - "operationId": "AuthController_loginCallback", - "parameters": [], - "responses": { - "200": { - "description": "" - } - }, - "tags": [ - "Auth" - ] - } - }, - "/auth/me": { - "get": { - "operationId": "AuthController_getProfile", - "parameters": [], - "responses": { - "200": { - "description": "" - } - }, - "tags": [ - "Auth" - ] - } - }, "/employees/profile": { "get": { "operationId": "EmployeesController_findOneProfile", diff --git a/src/app.module.ts b/src/app.module.ts index 717c52e..e03505c 100644 --- a/src/app.module.ts +++ b/src/app.module.ts @@ -10,10 +10,12 @@ import { APP_FILTER, APP_PIPE } from '@nestjs/core'; import { HttpExceptionFilter } from './common/filters/http-exception.filter'; import { ValidationError } from 'class-validator'; import { TimeAndAttendanceModule } from 'src/time-and-attendance/time-and-attendance.module'; +import { AuthenticationModule } from 'src/identity-and-account/authentication/auth.module'; import { IdentityAndAccountModule } from 'src/identity-and-account/identity-and-account.module'; @Module({ imports: [ + AuthenticationModule, ConfigModule.forRoot({ isGlobal: true }), ScheduleModule.forRoot(), //cronjobs NotificationsModule, diff --git a/src/identity-and-account/identity-and-account.module.ts b/src/identity-and-account/identity-and-account.module.ts index 979160d..32c8c69 100644 --- a/src/identity-and-account/identity-and-account.module.ts +++ b/src/identity-and-account/identity-and-account.module.ts @@ -1,7 +1,4 @@ import { Module } from "@nestjs/common"; -import { AuthModuleOptions } from "@nestjs/passport"; -import { AuthController } from "src/identity-and-account/authentication/controllers/auth.controller"; -import { AuthentikAuthService } from "src/identity-and-account/authentication/services/authentik-auth.service"; import { EmployeesController } from "src/identity-and-account/employees/controllers/employees.controller"; import { EmployeesModule } from "src/identity-and-account/employees/employees.module"; import { EmployeesArchivalService } from "src/identity-and-account/employees/services/employees-archival.service"; @@ -17,15 +14,12 @@ import { UsersModule } from "src/identity-and-account/users-management/users.mod UsersModule, EmployeesModule, PreferencesModule, - AuthModuleOptions, ], controllers: [ - AuthController, EmployeesController, PreferencesController, ], providers: [ - AuthentikAuthService, EmployeesArchivalService, EmployeesService, PreferencesService,