Improvements

This commit is contained in:
ricardo
2020-08-11 16:07:23 -04:00
parent 1e81b7d54f
commit 8c24858f99
5 changed files with 515 additions and 156 deletions

View File

@@ -15,6 +15,11 @@ export const channelOperations = [
},
},
options: [
{
name: 'Get',
value: 'get',
description: 'Retrieve a channel',
},
{
name: 'Get All',
value: 'getAll',
@@ -45,10 +50,6 @@ export const channelFields = [
name: 'part',
type: 'multiOptions',
options: [
{
name: 'Audit Details',
value: 'auditDetails',
},
{
name: 'Branding Settings',
value: 'brandingSettings',
@@ -186,13 +187,6 @@ export const channelFields = [
default: false,
description: `Set this parameter's value to true to instruct the API to only return channels managed by the content owner that the onBehalfOfContentOwner parameter specifies`,
},
{
displayName: 'Mine',
name: 'mine',
type: 'boolean',
default: false,
description: `This parameter can only be used in a properly authorized request. Set this parameter's value to true to instruct the API to only return channels owned by the authenticated user.`,
},
],
},
{
@@ -232,6 +226,82 @@ export const channelFields = [
],
},
/* -------------------------------------------------------------------------- */
/* channel:get */
/* -------------------------------------------------------------------------- */
{
displayName: 'Channel ID',
name: 'channelId',
type: 'string',
required: true,
displayOptions: {
show: {
operation: [
'get',
],
resource: [
'channel',
],
},
},
default: '',
},
{
displayName: 'Fields',
name: 'part',
type: 'multiOptions',
options: [
{
name: 'Branding Settings',
value: 'brandingSettings',
},
{
name: 'Content Details',
value: 'contentDetails',
},
{
name: 'Content Owner Details',
value: 'contentOwnerDetails',
},
{
name: 'ID',
value: 'id',
},
{
name: 'Localizations',
value: 'localizations',
},
{
name: 'Snippet',
value: 'snippet',
},
{
name: 'Statistics',
value: 'statistics',
},
{
name: 'Status',
value: 'status',
},
{
name: 'Topic Details',
value: 'topicDetails',
},
],
required: true,
displayOptions: {
show: {
operation: [
'get',
],
resource: [
'channel',
],
},
},
description: 'The fields parameter specifies a comma-separated list of one or more channel resource properties that the API response will include.',
default: ''
},
/* -------------------------------------------------------------------------- */
/* channel:update */
/* -------------------------------------------------------------------------- */
{