Files
bigcapital/packages/server/src/services/Attachments/AttachmentTransformer.ts
2024-05-26 21:59:39 +02:00

20 lines
404 B
TypeScript

import { Transformer } from '@/lib/Transformer/Transformer';
export class AttachmentTransformer extends Transformer {
/**
* Exclude attributes.
* @returns {string[]}
*/
public excludeAttributes = (): string[] => {
return ['*'];
};
/**
* Includeded attributes.
* @returns {string[]}
*/
public includeAttributes = (): string[] => {
return ['extension', 'key'];
};
}