Skip to content

Commit

Permalink
fix: update types to export
Browse files Browse the repository at this point in the history
  • Loading branch information
marconneves committed Nov 6, 2024
1 parent 16b47e9 commit 591188e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 6 deletions.
6 changes: 0 additions & 6 deletions sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,3 @@ func (c *Sdk) HeathCheck() (*string, error) {

return &healCheckResponse, nil
}

type CreateServerDTO = server.CreateServerDTO
type UpdateServerDTO = server.UpdateServerDTO

type UpdateDatabaseDTO = database.UpdateDatabaseDTO
type CreateDatabasePostgresDTO = database.CreateDatabasePostgresDTO
22 changes: 22 additions & 0 deletions types.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package coolify_sdk

import (
database "github.com/marconneves/coolify-sdk-go/database"
server "github.com/marconneves/coolify-sdk-go/server"
)

type CreateServerDTO = server.CreateServerDTO
type CreateServerResponse = server.CreateServerResponse
type UpdateServerDTO = server.UpdateServerDTO
type Server = server.Server
type Proxy = server.Proxy
type Settings = server.Settings
type Resource = server.Resource

type UpdateDatabaseDTO = database.UpdateDatabaseDTO
type CreateDatabasePostgresDTO = database.CreateDatabasePostgresDTO
type CreateDatabasePostgresResponse = database.CreateDatabasePostgresResponse
type CreateDatabaseRedisDTO = database.CreateDatabaseRedisDTO
type CreateDatabaseRedisResponse = database.CreateDatabaseRedisResponse
type Database = database.Database
type Destination = database.Destination

0 comments on commit 591188e

Please sign in to comment.