Created interfaces to make it easier to find usage of variables

This commit is contained in:
Kasra Bigdeli
2018-12-02 16:23:37 -08:00
parent ff351aac6c
commit 357669d724
2 changed files with 15 additions and 12 deletions
@@ -1 +1 @@
{"version":3,"file":"AppDefinition.js","sourceRoot":"","sources":["../../src/models/AppDefinition.ts"],"names":[],"mappings":"AAsCA,MAAe,kBAAkB;CA4BhC;AAED,MAAM,OAAQ,SAAQ,kBAAkB;CAQvC;AAED,MAAM,YAAa,SAAQ,kBAAkB;CAQ5C"}
{"version":3,"file":"AppDefinition.js","sourceRoot":"","sources":["../../src/models/AppDefinition.ts"],"names":[],"mappings":"AAkDA,MAAe,kBAAkB;CAmBhC;AAED,MAAM,OAAQ,SAAQ,kBAAkB;CAQvC;AAED,MAAM,YAAa,SAAQ,kBAAkB;CAQ5C"}
+14 -11
View File
@@ -36,6 +36,18 @@ interface RepoInfoEncrypted {
passwordEncrypted: string
}
interface IAppVersion {
version: number
deployedImageName?: string // empty if the deploy is not completed
timeStamp: string
gitHash: string | undefined // TODO make sure we are capturing the right git hash
}
interface IAppCustomDomain {
publicDomain: string
hasSsl: boolean
}
abstract class IAppDefinitionBase {
public deployedVersion: number
public notExposeAsWebApp: boolean
@@ -48,22 +60,13 @@ abstract class IAppDefinitionBase {
public preDeployFunction?: string
public customNginxConfig?: string
public networks: string[]
public customDomain: {
publicDomain: string
hasSsl: boolean
}[]
public customDomain: IAppCustomDomain[]
public ports: IAppPort[]
public volumes: IAppVolume[]
public envVars: IAppEnvVar[]
public versions: {
version: number
deployedImageName?: string // empty if the deploy is not completed
timeStamp: string
gitHash: string | undefined // TODO make sure we are capturing the right git hash
}[]
public versions: IAppVersion[]
}
class IAppDef extends IAppDefinitionBase {