import { CountriesResponse , FakeProductsInput , FakeProductsResponse , GuidoInput , GuidoResponse , OasUsersResponse , PriceUpdatesResponse , SetPriceInput , SetPriceResponse , TopProductsResponse , UsersResponse , } from "./models" ; export interface appMockConfig { queries ? : { Countries ? : ( ) => CountriesResponse | undefined ; FakeProducts ? : ( input : FakeProductsInput ) => FakeProductsResponse | undefined ; Guido ? : ( input : GuidoInput ) => GuidoResponse | undefined ; OasUsers ? : ( ) => OasUsersResponse | undefined ; TopProducts ? : ( ) => TopProductsResponse | undefined ; Users ? : ( ) => UsersResponse | undefined ; } ; mutations ? : { SetPrice ? : ( input : SetPriceInput ) => SetPriceResponse | undefined ; } ; subscriptions ? : { PriceUpdates ? : ( ) => PriceUpdatesResponse | undefined ; } ; } export const appMock = ( config ) => { return { queries : config . queries as { [ name ] : ( input : Object ) => Object | undefined ; } , mutations : config . mutations as { [ name ] : ( input : Object ) => Object | undefined ; } , subscriptions : config . subscriptions as { [ name ] : { pollingIntervalMillis : number ; resolver : ( input : Object ) => Object | undefined ; } ; } , } ; } ;