Update Protospack Name and Network Config

This commit is contained in:
Victor Radael
2022-08-02 11:47:13 -03:00
parent 00687dc84e
commit 4e6883a404
19 changed files with 180 additions and 72 deletions
@@ -32,6 +32,8 @@ export class NetworkConfigDto {
created_at: string;
@ApiProperty()
updated_at: string;
@ApiProperty()
network_type_id: string;
}
export class NetworkConfigNoSecrets extends OmitType(NetworkConfigDto, [
'secret_id',
@@ -58,10 +60,27 @@ export class FindNetworkConfigByidRes {
@ApiProperty()
network_config: NetworkConfigNoSecrets;
}
export class FindNetworkConfigByidDetails extends PickType(NetworkConfigDto, [
'id',
'name',
'description',
'type',
'network_type_id',
'customer_name',
]) {
@ApiProperty()
properties: NetworkConfigOpenVpnProperties | string;
}
export class FindNetworkConfigByidDetailsRes {
@ApiProperty()
network_config: FindNetworkConfigByidDetails;
}
export class CreateNetworkConfigReq extends PickType(NetworkConfigDto, [
'name',
'description',
'type',
'network_type_id',
]) {
@ApiProperty()
properties: NetworkConfigOpenVpnProperties;