Type Definitions
-
Field
-
A Field describes a YAML field's properties.
Properties:
Name Type Description namestring Name of the field typestring Basic data type of the field. is_requiredboolean Whether the field is required. is_arrayboolean Whether the field has an array of values. formatstring Special formatting rules to use for the field. specialstring | Array.<string> Special tags governing how the field is rendered in the Workshop Builder Tool valueany | Array.<any> Value for the field. keystring Key used to retrieve the field in the template metadata. -
File
-
A File represents a single file on a GitHub repository.
Properties:
Name Type Description urlstring GitHub URL of the file. pathstring Portion of the file's url after the repository route. remoteContentstring Content of the file on GitHub. contentstring Content of the file in the Workshop Builder Tool memory. shastring SHA-1 hash of the last file state. busyFlagboolean Whether the File is locked for editing due to ongoing backend activity. hasChangedboolean Whether the content differs from the remoteContent. yamlObject YAML portion of the content decomposed into an object. yamlParseErrorstring | null Most recent error when trying to parse the file YAML. bodystring Non-YAML portion of the content. -
GHBuildStatus
-
Properties:
Name Type Description created_atstring A date string giving the time the build was created. statusstring A string describing the status of the build. errorObject An object describing the error with the build, if any. -
Repository
-
A Repository represents a complete GitHub repository.
Properties:
Name Type Attributes Description urlstring GitHub URL of the repository. topicsArray.<string> GitHub tags for the repository. isMainboolean Whether this repository is the repository being built by the Workshop Builder Tool. namestring Repository name on GitHub. ownerLoginstring Repository owner login name on GitHub. configFile Configuration file _config.yml. filesArray.<File> Files in the repository. episodesArray.<File> Episode files in the repository. episode_templateFile <optional>
Template for new episodes. busyFlagboolean Whether the repository is being modified or saved to GitHub. extraFilesObject.<string, (File|Array.<File>)> Additional non-episode files that can be customised. -
returnResponse(error, response) → {void}
-
Callback to return the results of the API interaction to the client. Returns a status of 500 if error is set, otherwise returns the status given in response.
Parameters:
Name Type Description errorError An error encountered while using the API. responseObject HTTPResponse-like object returned to the client. Returns:
void -
Schedule
-
Properties:
Name Type Description daysArray.<ScheduleDay> The days in the schedule. unassignedItemsArray.<File> The episodes not assigned to any day. -
ScheduleDay
-
Properties:
Name Type Description numberNumber The number of the day in the schedule. itemsArray.<File> The episodes occurring on the day. -
StoreContext
-
The context provided to store actions within VueX operations.
Properties:
Name Type Attributes Description stateObject <optional>
Current store state. gettersObject <optional>
Current store getters. commitObject <optional>
Current store mutations. rootSateObject <optional>
Current root store state. rootGettersObject <optional>
Current root store getters. -
Template
-
A GitHub Template repository. Templates are used to create new repositories. When a repository is created form a template, the files from the template are copied, but the git history is not.
Properties:
Name Type Description urlstring GitHub URL of the repository. topicsArray.<string> GitHub tags for the repository. namestring Repository name on GitHub. ownerLoginstring Repository owner login name on GitHub. descriptionstring Repository description on GitHub.