feat: models default views

This commit is contained in:
Ahmed Bouhuolia
2025-06-17 20:53:13 +02:00
parent f624cf7ae6
commit 437bcb8854
39 changed files with 286 additions and 275 deletions

View File

@@ -0,0 +1,12 @@
import { Transformer } from '../Transformer/Transformer';
import { View } from './models/View.model';
export class GetResourceViewTransformer extends Transformer {
public includeAttributes = (): string[] => {
return ['name'];
};
name(view: View) {
return this.context.i18n.t(view.name);
}
}