import got, { Response as GotResponse } from 'got'
import { omit } from 'lodash'
import validator from 'validator'
-import { buildAbsoluteFixturePath, buildUUID, pick, wait } from '@shared/core-utils'
+import { buildAbsoluteFixturePath, pick, wait } from '@shared/core-utils'
+import { buildUUID } from '@shared/extra-utils'
import {
HttpStatusCode,
ResultList,
// ---------------------------------------------------------------------------
- view (options: OverrideCommandOptions & {
- id: number | string
- xForwardedFor?: string
- }) {
- const { id, xForwardedFor } = options
- const path = '/api/v1/videos/' + id + '/views'
-
- return this.postBodyRequest({
- ...options,
-
- path,
- xForwardedFor,
- implicitToken: false,
- defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204
- })
- }
-
rate (options: OverrideCommandOptions & {
id: number | string
rating: UserVideoRateType