Merge branch 'cleanPackages' into 'main'
Clean packages See merge request v3/service/auth!46
This commit is contained in:
commit
8b8cda0d01
File diff suppressed because it is too large
Load Diff
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@mobicoop/auth",
|
"name": "@mobicoop/auth",
|
||||||
"version": "0.3.1",
|
"version": "0.4.0",
|
||||||
"description": "Mobicoop V3 Auth Service",
|
"description": "Mobicoop V3 Auth Service",
|
||||||
"author": "sbriat",
|
"author": "sbriat",
|
||||||
"private": true,
|
"private": true,
|
||||||
|
@ -30,14 +30,11 @@
|
||||||
"migrate:deploy": "npx prisma migrate deploy"
|
"migrate:deploy": "npx prisma migrate deploy"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@automapper/classes": "^8.7.7",
|
|
||||||
"@automapper/core": "^8.7.7",
|
|
||||||
"@automapper/nestjs": "^8.7.7",
|
|
||||||
"@golevelup/nestjs-rabbitmq": "^3.4.0",
|
"@golevelup/nestjs-rabbitmq": "^3.4.0",
|
||||||
"@grpc/grpc-js": "^1.8.0",
|
"@grpc/grpc-js": "^1.8.0",
|
||||||
"@grpc/proto-loader": "^0.7.4",
|
"@grpc/proto-loader": "^0.7.4",
|
||||||
"@mobicoop/ddd-library": "^0.3.0",
|
"@mobicoop/ddd-library": "^0.3.0",
|
||||||
"@mobicoop/health-module": "^1.1.0",
|
"@mobicoop/health-module": "^2.0.0",
|
||||||
"@mobicoop/message-broker-module": "^1.2.0",
|
"@mobicoop/message-broker-module": "^1.2.0",
|
||||||
"@nestjs/axios": "^1.0.1",
|
"@nestjs/axios": "^1.0.1",
|
||||||
"@nestjs/common": "^9.0.0",
|
"@nestjs/common": "^9.0.0",
|
||||||
|
|
|
@ -2,7 +2,11 @@ import { Module } from '@nestjs/common';
|
||||||
import { ConfigModule } from '@nestjs/config';
|
import { ConfigModule } from '@nestjs/config';
|
||||||
import { AuthenticationModule } from '@modules/authentication/authentication.module';
|
import { AuthenticationModule } from '@modules/authentication/authentication.module';
|
||||||
import { EventEmitterModule } from '@nestjs/event-emitter';
|
import { EventEmitterModule } from '@nestjs/event-emitter';
|
||||||
import { HealthModule, HealthModuleOptions } from '@mobicoop/health-module';
|
import {
|
||||||
|
HealthModule,
|
||||||
|
HealthModuleOptions,
|
||||||
|
HealthRepositoryPort,
|
||||||
|
} from '@mobicoop/health-module';
|
||||||
import { AuthorizationModule } from '@modules/authorization/authorization.module';
|
import { AuthorizationModule } from '@modules/authorization/authorization.module';
|
||||||
import {
|
import {
|
||||||
AUTHENTICATION_REPOSITORY,
|
AUTHENTICATION_REPOSITORY,
|
||||||
|
@ -10,7 +14,6 @@ import {
|
||||||
} from '@modules/authentication/authentication.di-tokens';
|
} from '@modules/authentication/authentication.di-tokens';
|
||||||
import { MESSAGE_PUBLISHER } from './modules/messager/messager.di-tokens';
|
import { MESSAGE_PUBLISHER } from './modules/messager/messager.di-tokens';
|
||||||
import { MessagePublisherPort } from '@mobicoop/ddd-library';
|
import { MessagePublisherPort } from '@mobicoop/ddd-library';
|
||||||
import { ICheckRepository } from '@mobicoop/health-module/dist/core/domain/types/health.types';
|
|
||||||
import { MessagerModule } from './modules/messager/messager.module';
|
import { MessagerModule } from './modules/messager/messager.module';
|
||||||
|
|
||||||
@Module({
|
@Module({
|
||||||
|
@ -25,13 +28,22 @@ import { MessagerModule } from './modules/messager/messager.module';
|
||||||
MESSAGE_PUBLISHER,
|
MESSAGE_PUBLISHER,
|
||||||
],
|
],
|
||||||
useFactory: async (
|
useFactory: async (
|
||||||
authenticationRepository: ICheckRepository,
|
authenticationRepository: HealthRepositoryPort,
|
||||||
usernameRepository: ICheckRepository,
|
usernameRepository: HealthRepositoryPort,
|
||||||
messagePublisher: MessagePublisherPort,
|
messagePublisher: MessagePublisherPort,
|
||||||
): Promise<HealthModuleOptions> => ({
|
): Promise<HealthModuleOptions> => ({
|
||||||
serviceName: 'auth',
|
serviceName: 'auth',
|
||||||
criticalLoggingKey: 'logging.auth.health.crit',
|
criticalLoggingKey: 'logging.auth.health.crit',
|
||||||
checkRepositories: [authenticationRepository, usernameRepository],
|
checkRepositories: [
|
||||||
|
{
|
||||||
|
name: 'AuthenticationRepository',
|
||||||
|
repository: authenticationRepository,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'UsernameRepository',
|
||||||
|
repository: usernameRepository,
|
||||||
|
},
|
||||||
|
],
|
||||||
messagePublisher,
|
messagePublisher,
|
||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
|
|
Loading…
Reference in New Issue