{
  "name": "youtube",
  "label": "YouTube",
  "description": "Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.",
  "version": "0.0.0",
  "infoUrl": "https://www.youtube.com/",
  "maintainer": "Kendraio",
  "supportUrl": "http://kendra.io",
  "database": [],
  "dashboard": {
    "icon": "attach_money",
    "label": "YouTube",
    "workflowId": "dashboard"
  },
  "workflow": [
    {
      "title": "YouTube dashboard",
      "workflowId": "dashboard",
      "config": "configs/dashboard.json"
    }
  ],
  "forms": [
    {
      "formId": "basic",
      "title": "SIMPLEs - Edit Video",
      "jsonSchema": "schemas/youtube-edit-video-basic.json",
      "uiSchema": "forms/youtube-edit-video-basic-ui.json"
    },
    {
      "formId": "advanced",
      "title": "Edit Video Advanced",
      "jsonSchema": "schemas/youtube-edit-video-advanced.schema.json",
      "uiSchema": "forms/youtube-edit-video-advanced.ui.json"
    }
  ],
  "upload": {
    "enabled": true
  },
  "tags": [
    "music",
    "video",
    "streaming"
  ],
  "attachments": {
    "configs/dashboard.json": {
      "title": "YouTube dashboard",
      "blocks": [
        {
          "type": "message",
          "message": "TODO"
        }
      ]
    },
    "forms/youtube-edit-video-advanced.ui.json": {
      "recordingDate": {
        "ui:placeholder": "Enter the Video Title",
        "ui:widget": "datepicker"
      },
      "location": {
        "ui:placeholder": "Enter the Country",
        "ui:widget": "countries"
      }
    },
    "forms/youtube-edit-video-basic-ui.json": {
      "title": {
        "ui:disabled": false,
        "ui:placeholder": "Enter the Video Title-1"
      },
      "description": {
        "ui:disabled": false,
        "ui:placeholder": "Enter your First Name"
      },
      "videoId": {
        "ui:widget": "videoviewer"
      },
      "tags": {
        "ui:widget": "tags"
      },
      "visibility": {
        "ui:widget": "visibility"
      },
      "playlist": {
        "ui:widget": "playlist"
      }
    },
    "schemas/youtube-edit-video-advanced.schema.json": {
      "definitions": {
        "largeEnum": {
          "type": "string",
          "enum": [
            "Film & Animation",
            "Cars & Vehicles",
            "Music",
            "Pets & Animals",
            "Sport",
            "Travel & Events",
            "Gaming",
            "People & Blogs",
            "Comedy",
            "Entertainment",
            "News & Politics",
            "How-to & Style",
            "Education",
            "Science & Technology",
            "Nonprofits & Activism"
          ]
        }
      },
      "title": "Edit Video Advanced",
      "description": "YouTube Advanced Form",
      "type": "object",
      "properties": {
        "recordingDate": {
          "title": "Recording Date",
          "type": "string"
        },
        "Licencerightsownership": {
          "type": "string",
          "title": "Licence and rights ownership",
          "enum": [
            "Standard YouTube Licence",
            "Creative Commons – Attribution"
          ]
        },
        "location": {
          "type": "string",
          "title": "Video Locaton"
        },
        "syndication": {
          "title": "Syndication",
          "type": "string"
        },
        "category": {
          "type": "string",
          "title": "Category",
          "$ref": "#/definitions/largeEnum"
        },
        "category2": {
          "type": "string",
          "title": "Category 2",
          "$ref": "#/definitions/largeEnum"
        },
        "language": {
          "type": "string",
          "title": "Video Language",
          "enum": [
            "United Kingdom",
            "United States",
            "Germany",
            "..needs finishing.."
          ],
          "decription": "To manage other languages, go to transcriptions"
        },
        "subtitles": {
          "type": "number",
          "title": "Original video language, subtitles and CC"
        },
        "allowComments": {
          "type": "boolean",
          "title": "Allow comments"
        },
        "commentOptions": {
          "type": "string",
          "title": "Comment Options",
          "enum": [
            "Allow all Comments",
            "Hold all Comments for review",
            "Hold potentially inappropriate comments for review"
          ]
        },
        "commentSort": {
          "type": "string",
          "title": "Sort Comments",
          "enum": [
            "Top",
            "Newest"
          ]
        },
        "canViewRatings": {
          "type": "boolean",
          "title": "Users can view ratings for this video"
        },
        "ageRestriction": {
          "type": "boolean",
          "title": "Enable age restriction"
        },
        "publishToSubs": {
          "type": "boolean",
          "title": "Publish to the Subscriptions feed and allow notifications to subscribers"
        },
        "containsPromo": {
          "type": "boolean",
          "title": "This video contains paid promotion such as paid product placement, sponsorships or endorsement"
        },
        "helpInform": {
          "type": "boolean",
          "title": "Help me to inform viewers of paid promotion by adding a disclosure to this video. Additional disclosures for this video may be required under applicable laws"
        },
        "allowEmbed": {
          "type": "boolean",
          "title": "Allow embedding"
        }
      }
    },
    "schemas/youtube-edit-video-basic.json": {
      "definitions": {
        "largeEnum": {
          "type": "typeahead",
          "enum": [
            "Film & Animation",
            "Cars & Vehicles",
            "Music",
            "Pets & Animals",
            "Sport",
            "Travel & Events",
            "Gaming",
            "People & Blogs",
            "Comedy",
            "Entertainment",
            "News & Politics",
            "How-to & Style",
            "Education",
            "Science & Technology",
            "Nonprofits & Activism"
          ]
        }
      },
      "title": "SIMPLEs - Edit Video",
      "description": "This form allows you to edit your video",
      "type": "object",
      "required": [
        "title"
      ],
      "additionalProperties": {
        "type": "string"
      },
      "properties": {
        "videoId": {
          "title": "Video -SIMPL",
          "description": "this is a video viewer",
          "type": "string"
        },
        "title": {
          "title": "Title",
          "description": "",
          "type": "string",
          "minLength": 4,
          "maxLength": 100,
          "pattern": "^(\\([0-9]{3}\\))?[0-9]{3}-[0-9]{4}$"
        },
        "description": {
          "type": "money",
          "title": "Bio",
          "minLength": 2,
          "maxLength": 5000,
          "default": 3451,
          "bollock": "bollock"
        },
        "visibility": {
          "type": "object",
          "title": "Visibility "
        },
        "playlist": {
          "type": "object",
          "title": "Playlists"
        },
        "listOfStrings": {
          "type": "array",
          "title": "My Dates List",
          "items": {
            "type": "datepicker",
            "default": "Enter your new ID here"
          }
        },
        "skills": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 5
          }
        }
      },
      "dependencies": {
        "title": {
          "properties": {
            "tags": {
              "type": "tags",
              "title": "Now that you've entered a title you may add your Tags"
            }
          }
        }
      }
    }
  }
}