This repository was archived by the owner on Jun 22, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +59
-2
lines changed
Expand file tree Collapse file tree 6 files changed +59
-2
lines changed Original file line number Diff line number Diff line change 1+ import ConflictingEntityError from './ConflictingEntityError' ;
2+ import MissingEntityError from './MissingEntityError' ;
3+
4+ export default {
5+ ConflictingEntityError,
6+ MissingEntityError,
7+ } ;
Original file line number Diff line number Diff line change 1+ import * as errors from './errors' ;
2+ import * as signatures from './signatures' ;
3+ import * as tests from './tests' ;
4+ import * as types from './types' ;
5+ import * as utils from './utils' ;
6+
7+ export default {
8+ errors,
9+ signatures,
10+ tests,
11+ types,
12+ utils,
13+ } ;
Original file line number Diff line number Diff line change 1+ import CountEntities from './CountEntities' ;
2+ import CreateEntity from './CreateEntity' ;
3+ import GetEntities from './GetEntities' ;
4+ import GetEntity from './GetEntity' ;
5+ import OverwriteEntity from './OverwriteEntity' ;
6+ import PatchEntity from './PatchEntity' ;
7+ import RemoveEntities from './RemoveEntities' ;
8+ import RemoveEntity from './RemoveEntity' ;
9+
10+ export type CountEntitiesSignature < Entity > = CountEntities < Entity > ;
11+ export type CreateEntitySignature < Entity > = CreateEntity < Entity > ;
12+ export type GetEntitiesSignature < Entity > = GetEntities < Entity > ;
13+ export type GetEntitySignature < Id , Entity > = GetEntity < Id , Entity > ;
14+ export type OverwriteEntitySignature < Id , Entity > = OverwriteEntity < Id , Entity > ;
15+ export type PatchEntitySignature < Id , Entity > = PatchEntity < Id , Entity > ;
16+ export type RemoveEntitiesSignature < Entity > = RemoveEntities < Entity > ;
17+ export type RemoveEntitySignature < Id > = RemoveEntity < Id > ;
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ import removeEntitiesTest from './removeEntities/test';
1010import removeEntityTest from './removeEntity/test' ;
1111import { TestEntity , TestId } from './utils/testEntity' ;
1212
13- export default ( facade : Facade < TestId , TestEntity > ) => {
14- describe ( 'entityFacade ' , ( ) => {
13+ export const facadeTest = ( facade : Facade < TestId , TestEntity > ) => {
14+ describe ( 'facade ' , ( ) => {
1515 beforeEach ( async ( ) => {
1616 await facade . removeEntities ( { filter : { } } ) ;
1717 } ) ;
Original file line number Diff line number Diff line change 1+ import CursorType from './Cursor' ;
2+ import FilterType from './Filter' ;
3+ import PaginationType from './Pagination' ;
4+ import SortType from './Sort' ;
5+
6+ export type Cursor = CursorType ;
7+ export type Filter < Entity > = FilterType < Entity > ;
8+ export type Paginatior = PaginationType ;
9+ export type Sort < Entity > = SortType < Entity > ;
Original file line number Diff line number Diff line change 1+ // tslint:disable-next-line:no-unused
2+ import { AndFilter , NotFilter , OrFilter } from '../types/Filter' ;
3+ // tslint:disable-next-line:no-unused
4+ import Pagination from '../types/Pagination' ;
5+ import createCursorFromEntity from './createCursorFromEntity/createCursorFromEntity' ;
6+ import createPaginationFilter from './createPaginationFilter/createPaginationFilter' ;
7+
8+ export default {
9+ createCursorFromEntity,
10+ createPaginationFilter,
11+ } ;
You can’t perform that action at this time.
0 commit comments