Skip to content

Commit 82dd059

Browse files
CCM-13135: fixing more lint issues
1 parent 7b49b7d commit 82dd059

8 files changed

Lines changed: 14 additions & 17 deletions

File tree

utils/client-management/src/app/delete-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Client } from 'utils';
2-
import { AppDependencies } from '.';
2+
import { AppDependencies } from './types';
33

44
export type DeleteClientCommandParameters = Pick<Client, 'clientId'> & {
55
deleteMetadata?: boolean;

utils/client-management/src/app/get-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Client } from 'utils';
2-
import { AppDependencies } from '.';
2+
import { AppDependencies } from './types';
33

44
export type GetClientCommandParameters = Pick<Client, 'clientId'>;
55

utils/client-management/src/app/index.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
1-
import { Domain } from '../domain';
2-
import { Infrastructure } from '../infra';
31
import { createDeleteClientCommand } from './delete-client';
42
import { createGetClientCommand } from './get-client';
53
import { createListClientsCommand } from './list-clients';
64
import { createPutClientCommand } from './put-client';
7-
8-
export type AppDependencies = {
9-
domain: Domain;
10-
infra: Infrastructure;
11-
};
5+
import { AppDependencies } from './types';
126

137
export function createApp(dependencies: AppDependencies) {
148
return {

utils/client-management/src/app/list-clients.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Client } from 'utils';
2-
import { AppDependencies } from '.';
2+
import { AppDependencies } from './types';
33

44
export function createListClientsCommand({ infra }: AppDependencies) {
55
return async function listClientsCommand(options?: {

utils/client-management/src/app/put-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Client } from 'utils';
22
import { CreateClientParameters } from '../domain/client';
3-
import { AppDependencies } from '.';
3+
import { AppDependencies } from './types';
44

55
export type PutClientCommandParameters = CreateClientParameters;
66

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { Domain } from '../domain';
2+
import { Infrastructure } from '../infra';
3+
4+
export type AppDependencies = {
5+
domain: Domain;
6+
infra: Infrastructure;
7+
};
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
export class BaseException extends Error {
2-
constructor(message?: string) {
3-
super(message);
4-
}
5-
}
1+
export class BaseException extends Error {}

utils/client-management/src/infra/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export type Infrastructure = {
1515

1616
export function createInfra({
1717
config,
18-
logger,
18+
logger: _logger,
1919
parameterStore,
2020
}: Dependencies): Infrastructure {
2121
const clientRepository = new ClientRepository({ config, parameterStore });

0 commit comments

Comments
 (0)