From 77728520720917039462cf7b2816f1b05050f014 Mon Sep 17 00:00:00 2001 From: tivmof Date: Thu, 24 Apr 2025 15:06:42 +0000 Subject: [PATCH] feat: Adding roles --- .../gen/codbex-uoms/dao/Settings/DimensionRepository.ts | 6 +++--- codbex-uoms/gen/codbex-uoms/dao/Settings/UoMRepository.ts | 6 +++--- .../gen/codbex-uoms/ui/Settings/Dimension/controller.js | 4 ++-- codbex-uoms/gen/codbex-uoms/ui/Settings/UoM/controller.js | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/codbex-uoms/gen/codbex-uoms/dao/Settings/DimensionRepository.ts b/codbex-uoms/gen/codbex-uoms/dao/Settings/DimensionRepository.ts index 1fb1d05..95fd94d 100644 --- a/codbex-uoms/gen/codbex-uoms/dao/Settings/DimensionRepository.ts +++ b/codbex-uoms/gen/codbex-uoms/dao/Settings/DimensionRepository.ts @@ -58,7 +58,7 @@ export interface DimensionEntityOptions { }, $select?: (keyof DimensionEntity)[], $sort?: string | (keyof DimensionEntity)[], - $order?: 'asc' | 'desc', + $order?: 'ASC' | 'DESC', $offset?: number, $limit?: number, } @@ -107,10 +107,10 @@ export class DimensionRepository { private readonly dao; constructor(dataSource = "DefaultDB") { - this.dao = daoApi.create(DimensionRepository.DEFINITION, null, dataSource); + this.dao = daoApi.create(DimensionRepository.DEFINITION, undefined, dataSource); } - public findAll(options?: DimensionEntityOptions): DimensionEntity[] { + public findAll(options: DimensionEntityOptions = {}): DimensionEntity[] { return this.dao.list(options); } diff --git a/codbex-uoms/gen/codbex-uoms/dao/Settings/UoMRepository.ts b/codbex-uoms/gen/codbex-uoms/dao/Settings/UoMRepository.ts index 2fe6ad5..9c2aea1 100644 --- a/codbex-uoms/gen/codbex-uoms/dao/Settings/UoMRepository.ts +++ b/codbex-uoms/gen/codbex-uoms/dao/Settings/UoMRepository.ts @@ -113,7 +113,7 @@ export interface UoMEntityOptions { }, $select?: (keyof UoMEntity)[], $sort?: string | (keyof UoMEntity)[], - $order?: 'asc' | 'desc', + $order?: 'ASC' | 'DESC', $offset?: number, $limit?: number, } @@ -191,10 +191,10 @@ export class UoMRepository { private readonly dao; constructor(dataSource = "DefaultDB") { - this.dao = daoApi.create(UoMRepository.DEFINITION, null, dataSource); + this.dao = daoApi.create(UoMRepository.DEFINITION, undefined, dataSource); } - public findAll(options?: UoMEntityOptions): UoMEntity[] { + public findAll(options: UoMEntityOptions = {}): UoMEntity[] { return this.dao.list(options).map((e: UoMEntity) => { EntityUtils.setBoolean(e, "Base"); return e; diff --git a/codbex-uoms/gen/codbex-uoms/ui/Settings/Dimension/controller.js b/codbex-uoms/gen/codbex-uoms/ui/Settings/Dimension/controller.js index 78a18d7..d0c9916 100644 --- a/codbex-uoms/gen/codbex-uoms/ui/Settings/Dimension/controller.js +++ b/codbex-uoms/gen/codbex-uoms/ui/Settings/Dimension/controller.js @@ -114,9 +114,9 @@ angular.module('page', ['blimpKit', 'platformView', 'EntityService']) }); }; - $scope.openFilter = (entity) => { + $scope.openFilter = () => { Dialogs.showWindow({ - id: 'Dimension-details', + id: 'Dimension-filter', params: { entity: $scope.filterEntity, }, diff --git a/codbex-uoms/gen/codbex-uoms/ui/Settings/UoM/controller.js b/codbex-uoms/gen/codbex-uoms/ui/Settings/UoM/controller.js index f87d209..aeb3d0e 100644 --- a/codbex-uoms/gen/codbex-uoms/ui/Settings/UoM/controller.js +++ b/codbex-uoms/gen/codbex-uoms/ui/Settings/UoM/controller.js @@ -115,9 +115,9 @@ angular.module('page', ['blimpKit', 'platformView', 'EntityService']) }); }; - $scope.openFilter = (entity) => { + $scope.openFilter = () => { Dialogs.showWindow({ - id: 'UoM-details', + id: 'UoM-filter', params: { entity: $scope.filterEntity, optionsDimension: $scope.optionsDimension,