diff --git a/frontend/services/dto/application.ts b/frontend/services/dto/application.ts new file mode 100644 index 0000000..9010486 --- /dev/null +++ b/frontend/services/dto/application.ts @@ -0,0 +1,46 @@ +type LogFile = { + id?: number + label: string + path: string +} + +type Environment = { + id?: number + '@id'?: string + name: string + containerName: string + deployScriptPath: string + maintenanceFilePath: string + appUrl?: string + logFiles: LogFile[] + maintenance: boolean +} + +type EnvironmentWrite = { + name: string + containerName: string + deployScriptPath: string + maintenanceFilePath: string + appUrl?: string + logFiles: LogFile[] +} + +type Application = { + id?: number + '@id'?: string + slug: string + name: string + registryImage: string + description?: string + giteaUrl?: string + createdAt?: string + environments?: Environment[] +} + +type ApplicationWrite = { + name: string + slug: string + registryImage: string + description?: string + giteaUrl?: string +} diff --git a/frontend/services/dto/managed-application.ts b/frontend/services/dto/managed-application.ts deleted file mode 100644 index d24ae6b..0000000 --- a/frontend/services/dto/managed-application.ts +++ /dev/null @@ -1,10 +0,0 @@ -export type ManagedApplication = { - slug: string - name: string - maintenance: boolean -} - -export type ManagedApplicationCollection = { - 'hydra:member'?: ManagedApplication[] - member?: ManagedApplication[] -}