Created
December 23, 2016 23:30
-
-
Save eob/41f7359401dec081661f80ff32046a93 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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