File tree Expand file tree Collapse file tree
utils/client-management/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { Client } from 'utils' ;
2- import { AppDependencies } from '.' ;
2+ import { AppDependencies } from './types ' ;
33
44export type DeleteClientCommandParameters = Pick < Client , 'clientId' > & {
55 deleteMetadata ?: boolean ;
Original file line number Diff line number Diff line change 11import { Client } from 'utils' ;
2- import { AppDependencies } from '.' ;
2+ import { AppDependencies } from './types ' ;
33
44export type GetClientCommandParameters = Pick < Client , 'clientId' > ;
55
Original file line number Diff line number Diff line change 1- import { Domain } from '../domain' ;
2- import { Infrastructure } from '../infra' ;
31import { createDeleteClientCommand } from './delete-client' ;
42import { createGetClientCommand } from './get-client' ;
53import { createListClientsCommand } from './list-clients' ;
64import { createPutClientCommand } from './put-client' ;
7-
8- export type AppDependencies = {
9- domain : Domain ;
10- infra : Infrastructure ;
11- } ;
5+ import { AppDependencies } from './types' ;
126
137export function createApp ( dependencies : AppDependencies ) {
148 return {
Original file line number Diff line number Diff line change 11import { Client } from 'utils' ;
2- import { AppDependencies } from '.' ;
2+ import { AppDependencies } from './types ' ;
33
44export function createListClientsCommand ( { infra } : AppDependencies ) {
55 return async function listClientsCommand ( options ?: {
Original file line number Diff line number Diff line change 11import { Client } from 'utils' ;
22import { CreateClientParameters } from '../domain/client' ;
3- import { AppDependencies } from '.' ;
3+ import { AppDependencies } from './types ' ;
44
55export type PutClientCommandParameters = CreateClientParameters ;
66
Original file line number Diff line number Diff line change 1+ import { Domain } from '../domain' ;
2+ import { Infrastructure } from '../infra' ;
3+
4+ export type AppDependencies = {
5+ domain : Domain ;
6+ infra : Infrastructure ;
7+ } ;
Original file line number Diff line number Diff line change 1- export class BaseException extends Error {
2- constructor ( message ?: string ) {
3- super ( message ) ;
4- }
5- }
1+ export class BaseException extends Error { }
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export type Infrastructure = {
1515
1616export function createInfra ( {
1717 config,
18- logger,
18+ logger : _logger ,
1919 parameterStore,
2020} : Dependencies ) : Infrastructure {
2121 const clientRepository = new ClientRepository ( { config, parameterStore } ) ;
You can’t perform that action at this time.
0 commit comments