function addVideoChannel (
url: string,
token: string,
- accountId: number,
+ accountId: number | string,
videoChannelAttributesArg: VideoChannelAttributes,
expectedStatus = 200
) {
function updateVideoChannel (
url: string,
token: string,
- accountId: number,
- channelId: number,
+ accountId: number | string,
+ channelId: number | string,
attributes: VideoChannelAttributes,
expectedStatus = 204
) {
.expect(expectedStatus)
}
-function deleteVideoChannel (url: string, token: string, accountId: number, channelId: number, expectedStatus = 204) {
+function deleteVideoChannel (url: string, token: string, accountId: number | string, channelId: number | string, expectedStatus = 204) {
const path = '/api/v1/accounts/' + accountId + '/video-channels/' + channelId
return request(url)
.expect(expectedStatus)
}
-function getVideoChannel (url: string, accountId: number, channelId: number) {
+function getVideoChannel (url: string, accountId: number | string, channelId: number | string) {
const path = '/api/v1/accounts/' + accountId + '/video-channels/' + channelId
return request(url)