This commit is contained in:
Asier Isayas 2025-03-24 16:23:48 -04:00
parent ca641b2ff5
commit 0559ec5cb1

View File

@ -226,7 +226,15 @@ export const Values = (inputOptions: InputOptions): PropertyDecorator => {
*/ */
export const IsDisplayable = (): ClassDecorator => { export const IsDisplayable = (): ClassDecorator => {
return (target) => { return (target) => {
buildSmartUiDescriptor(target.name, target.prototype); let targetName: string;
console.log(target.prototype)
console.log(target.toString())
if (target.toString().includes(SelfServeType.materializedviewsbuilder)) {
targetName = SelfServeType.materializedviewsbuilder;
} else if (target instanceof Function) {
targetName = target.constructor.name;
}
buildSmartUiDescriptor(targetName, target.prototype);
}; };
}; };
@ -238,8 +246,10 @@ export const IsDisplayable = (): ClassDecorator => {
export const RefreshOptions = (refreshParams: RefreshParams): ClassDecorator => { export const RefreshOptions = (refreshParams: RefreshParams): ClassDecorator => {
console.log(refreshParams) console.log(refreshParams)
return (target) => { return (target) => {
console.log(target.prototype);
console.log(target.toString())
let targetName: string; let targetName: string;
if (target.constructor.toString().includes(SelfServeType.materializedviewsbuilder)) { if (target.toString().includes(SelfServeType.materializedviewsbuilder)) {
targetName = SelfServeType.materializedviewsbuilder; targetName = SelfServeType.materializedviewsbuilder;
} else if (target instanceof Function) { } else if (target instanceof Function) {
targetName = target.constructor.name; targetName = target.constructor.name;