4230: added functionality for new interior generation (#156)

* added functionality for new interior generation

* update

* fixes
This commit is contained in:
Arwid Thornström
2023-09-12 11:26:17 +02:00
committed by GitHub
parent a51cbca616
commit 91d6aa1d1a
6 changed files with 65 additions and 19 deletions
+3 -3
View File
@@ -1,10 +1,10 @@
import { InteriorAPI } from '../datasources/interior-api';
import { InteriorsFilterInput } from '../types/interior-types';
import { InteriorsInput } from '../types/interior-types';
const Interior = {};
async function getInteriors(_, args: InteriorsFilterInput, { dataSources }) {
return (<InteriorAPI>dataSources.interiorApi).getInteriors(args.filter);
async function getInteriors(_, args: InteriorsInput, { dataSources }) {
return (<InteriorAPI>dataSources.interiorApi).getInteriors(args.input);
}
export const interiorTypeDefs = { Interior };