2022-05-14 22:31:53 +01:00
|
|
|
import { SSHKey } from '@definitions/user/models';
|
|
|
|
|
2022-05-07 21:52:58 +01:00
|
|
|
export default class Transformers {
|
2022-05-14 22:31:53 +01:00
|
|
|
static toSSHKey (data: Record<any, any>): SSHKey {
|
|
|
|
return {
|
|
|
|
name: data.name,
|
|
|
|
publicKey: data.public_key,
|
|
|
|
fingerprint: data.fingerprint,
|
|
|
|
createdAt: new Date(data.created_at),
|
|
|
|
};
|
|
|
|
}
|
2022-05-07 21:52:58 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export class MetaTransformers {
|
|
|
|
}
|