From bf54587a3e2ad9c2c186828f2a5682b91ee2cc00 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 17 Dec 2021 09:29:23 +0100 Subject: shared/ typescript types dir server-commands --- shared/extra-utils/overviews/index.ts | 1 - shared/extra-utils/overviews/overviews-command.ts | 23 ----------------------- 2 files changed, 24 deletions(-) delete mode 100644 shared/extra-utils/overviews/index.ts delete mode 100644 shared/extra-utils/overviews/overviews-command.ts (limited to 'shared/extra-utils/overviews') diff --git a/shared/extra-utils/overviews/index.ts b/shared/extra-utils/overviews/index.ts deleted file mode 100644 index e19551907..000000000 --- a/shared/extra-utils/overviews/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './overviews-command' diff --git a/shared/extra-utils/overviews/overviews-command.ts b/shared/extra-utils/overviews/overviews-command.ts deleted file mode 100644 index 06b4892d2..000000000 --- a/shared/extra-utils/overviews/overviews-command.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { HttpStatusCode, VideosOverview } from '@shared/models' -import { AbstractCommand, OverrideCommandOptions } from '../shared' - -export class OverviewsCommand extends AbstractCommand { - - getVideos (options: OverrideCommandOptions & { - page: number - }) { - const { page } = options - const path = '/api/v1/overviews/videos' - - const query = { page } - - return this.getRequestBody({ - ...options, - - path, - query, - implicitToken: false, - defaultExpectedStatus: HttpStatusCode.OK_200 - }) - } -} -- cgit v1.2.3