Skip to content

Commit

Permalink
fix(facade): rename configs of resource to master_data, namespace rem…
Browse files Browse the repository at this point in the history
…apping not required!
  • Loading branch information
Gerald Baulig committed Aug 21, 2024
1 parent b2a058d commit c766148
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
5 changes: 4 additions & 1 deletion packages/acs-client/src/acs/decorators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ import {
} from './resolver';
import { cfg } from '../config';
import { _ } from '../utils';
import { Filter_Operation, Filter_ValueType } from '@restorecommerce/rc-grpc-clients/dist/generated-server/io/restorecommerce/filter';
import {
Filter_Operation,
Filter_ValueType
} from '@restorecommerce/rc-grpc-clients/dist/generated-server/io/restorecommerce/filter';

/* eslint-disable prefer-arrow-functions/prefer-arrow-functions */
export type DatabaseProvider = 'arangoDB' | 'postgres';
Expand Down
6 changes: 0 additions & 6 deletions packages/facade/src/gql/protos/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,6 @@ export const decodeBufferFields = (items: any[], bufferFields: string[]): any =>
}
};

interface EnumMetaData {
name: string;
number: number;
options?: any;
}

/**
* recursively find the id and updates the object with given value, this function
* also takes care to handle if there is an array at any position in the path
Expand Down
4 changes: 1 addition & 3 deletions packages/facade/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { createLogger } from '@restorecommerce/logger';
import { type Logger } from 'winston';
import { createLogger, type Logger } from '@restorecommerce/logger';
import { type Server, ServerResponse } from 'node:http';

import Koa from 'koa';
Expand Down Expand Up @@ -30,7 +29,6 @@ import { setUseSubscriptions } from './gql/protos/utils.js';
import bodyParser from 'koa-bodyparser';
import cors from '@koa/cors';
import graphqlUploadKoa from 'graphql-upload/graphqlUploadKoa.mjs';
import helmet from 'koa-helmet';
import Router from 'koa-router';

export * from './modules/index.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/facade/src/interfaces.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type Koa from 'koa';
import { type Logger } from 'winston';
import { type Logger } from '@restorecommerce/logger';
import { type Server } from 'node:http';
import { type AddressInfo } from 'node:net';

Expand Down
2 changes: 1 addition & 1 deletion packages/facade/src/modules/master_data/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export interface ResourceConfig {
}

export interface ResourceContext extends FacadeContext {
resource: {
master_data: {
client: ResourceSrvGrpcClient;
};
}
Expand Down
7 changes: 6 additions & 1 deletion packages/facade/src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import { type ExtractModuleContext, type Facade, type FacadeModule, type FacadeModuleFactory } from './interfaces.js';
import {
type ExtractModuleContext,
type Facade,
type FacadeModule,
type FacadeModuleFactory,
} from './interfaces.js';

export type FacadeModuleFactoryCb<TConfig, TModule extends FacadeModule> = (facade: Facade<[TModule]>, config: TConfig) => void;

Expand Down

0 comments on commit c766148

Please sign in to comment.