Skip to content

Instantly share code, notes, and snippets.

@eob
Created December 23, 2016 23:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eob/41f7359401dec081661f80ff32046a93 to your computer and use it in GitHub Desktop.
Save eob/41f7359401dec081661f80ff32046a93 to your computer and use it in GitHub Desktop.
interface Token {
service: "github"
token: string
}
interface User {
username: string
}
interface Status {
status : "Waiting" | "Running" | "Complete" | "Error"
message: string
}
interface S3Endpoint {
bucket: string
pathPrefix: string
}
interface GithubEndpoint {
url: string
branch: string
// Whatever you need to put here
}
interface GithubService {
cloneRepo(fromRepo: GithubEndpoint, toUser:User, withName:string)
getCloneStatus(user: User, withName: string) : Status
pushS3(s3Endpoint: S3Endpoint, toRepository: GithubEndpoint, onlyChangesSince?: date)
}
interface DocumentConversionService {
docxToMarkdown(pathToDocx: string, pathForMarkdownFile: string, destinationMarkdownName: string, pathToMarkdownAssets: string)
gdocToMarkdown(pathToDocx: string, pathForGDocFile: string, destinationMarkdownName: string, pathToMarkdownAssets: string)
}
interface DnsService {
githubPagesSetCname(repo: GithubEndpoint, cname: string)
route53SetGithub(
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment