2022-05-14 21:31:53 +00:00
|
|
|
import { SSHKey } from '@definitions/user/models';
|
|
|
|
|
2022-05-07 20:52:58 +00:00
|
|
|
export default class Transformers {
|
2022-05-14 21:31:53 +00: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 20:52:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export class MetaTransformers {
|
|
|
|
}
|