diff --git a/src/queryBuilder.ts b/src/queryBuilder.ts deleted file mode 100644 index 7bc4fc8..0000000 --- a/src/queryBuilder.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { Client } from './client'; -import { Card } from './classes/card'; -import { Set } from './classes/set'; -import { Query } from './interfaces/query'; - -export class QueryBuilder { - static all(type: {new (): T}): Promise { - const t = new type(); - const params: Query[] = [{ - name: 'pageSize', - value: 250, - }]; - - return Client.get(t.resource(), params); - } - - static find(type: {new (): T}, id: string): Promise { - const t = new type(); - - return Client.get(t.resource(), id); - } - - static where(type: {new (): T}, params: Query[]): Promise { - const t = new type(); - - return Client.get(t.resource(), params); - } -} \ No newline at end of file