diff --git a/codbex-employees/codbex-employees.edm b/codbex-employees/codbex-employees.edm index 0140d52..d2fa42e 100644 --- a/codbex-employees/codbex-employees.edm +++ b/codbex-employees/codbex-employees.edm @@ -27,19 +27,19 @@ - + - + - + - + @@ -71,5 +71,5 @@ - + \ No newline at end of file diff --git a/codbex-employees/codbex-employees.gen b/codbex-employees/codbex-employees.gen index a93ef4e..d784342 100644 --- a/codbex-employees/codbex-employees.gen +++ b/codbex-employees/codbex-employees.gen @@ -4,13 +4,36 @@ "brandUrl": "https://www.codbex.com/", "title": "Employees Management Module", "description": "Managing Employees Data", + "fileName": "codbex-employees", + "genFolderName": "codbex-employees", + "dataSource": "DefaultDB", + "roles": [ + { + "entityName": "Employee", + "roleRead": "codbex-employees.Employees.EmployeeReadOnly", + "roleWrite": "codbex-employees.Employees.EmployeeFullAccess" + }, + { + "entityName": "Gender", + "roleRead": "codbex-employees.EmployeesSettings.GenderReadOnly", + "roleWrite": "codbex-employees.EmployeesSettings.GenderFullAccess" + }, + { + "entityName": "MartialStatus", + "roleRead": "codbex-employees.EmployeesSettings.MartialStatusReadOnly", + "roleWrite": "codbex-employees.EmployeesSettings.MartialStatusFullAccess" + }, + { + "entityName": "Contact", + "roleRead": "codbex-employees.Employees.ContactReadOnly", + "roleWrite": "codbex-employees.Employees.ContactFullAccess" + } + ], + "tprefix": "codbex-employees-model", "projectName": "codbex-employees", "workspaceName": "workspace", "filePath": "codbex-employees.model", "templateId": "template-application-angular-v2/template/template.js", - "fileName": "codbex-employees", - "genFolderName": "codbex-employees", - "dataSource": "DefaultDB", "perspectives": { "Employees": { "views": [ @@ -61,29 +84,6 @@ "role": "" } }, - "roles": [ - { - "entityName": "Employee", - "roleRead": "codbex-employees.Employees.EmployeeReadOnly", - "roleWrite": "codbex-employees.Employees.EmployeeFullAccess" - }, - { - "entityName": "Gender", - "roleRead": "codbex-employees.EmployeesSettings.GenderReadOnly", - "roleWrite": "codbex-employees.EmployeesSettings.GenderFullAccess" - }, - { - "entityName": "MartialStatus", - "roleRead": "codbex-employees.EmployeesSettings.MartialStatusReadOnly", - "roleWrite": "codbex-employees.EmployeesSettings.MartialStatusFullAccess" - }, - { - "entityName": "Contact", - "roleRead": "codbex-employees.Employees.ContactReadOnly", - "roleWrite": "codbex-employees.Employees.ContactFullAccess" - } - ], - "tprefix": "codbex-employees-model", "models": [ { "properties": [ diff --git a/codbex-employees/codbex-employees.model b/codbex-employees/codbex-employees.model index e0e14f7..e67a0cf 100644 --- a/codbex-employees/codbex-employees.model +++ b/codbex-employees/codbex-employees.model @@ -185,7 +185,7 @@ "relationshipName": "Employee_Gender", "relationshipEntityName": "Gender", "relationshipEntityPerspectiveName": "Settings", - "relationshipEntityPerspectiveLabel": "Entities" + "relationshipEntityPerspectiveLabel": "Settings" }, { "auditType": "NONE", @@ -205,7 +205,7 @@ "relationshipName": "Employee_MartialStatus", "relationshipEntityName": "MartialStatus", "relationshipEntityPerspectiveName": "Settings", - "relationshipEntityPerspectiveLabel": "Entities" + "relationshipEntityPerspectiveLabel": "Settings" }, { "auditType": "NONE", @@ -486,7 +486,7 @@ "name": "Gender", "perspectiveHeader": "", "perspectiveIcon": "/services/web/resources/unicons/copy.svg", - "perspectiveLabel": "Entities", + "perspectiveLabel": "Settings", "perspectiveName": "Settings", "perspectiveNavId": "", "perspectiveOrder": "100", @@ -548,7 +548,7 @@ "name": "MartialStatus", "perspectiveHeader": "", "perspectiveIcon": "/services/web/resources/unicons/copy.svg", - "perspectiveLabel": "Entities", + "perspectiveLabel": "Settings", "perspectiveName": "Settings", "perspectiveNavId": "", "perspectiveOrder": "100", diff --git a/codbex-employees/gen/codbex-employees/api/Employees/AddressController.ts b/codbex-employees/gen/codbex-employees/api/Employees/AddressController.ts index 3e5c8f8..5bec98f 100644 --- a/codbex-employees/gen/codbex-employees/api/Employees/AddressController.ts +++ b/codbex-employees/gen/codbex-employees/api/Employees/AddressController.ts @@ -51,7 +51,7 @@ class AddressController { try { this.validateEntity(entity); entity.Id = this.repository.create(entity) as any; - response.setHeader('Content-Location', '/services/ts/codbex-employees/gen/codbex-employees/api/Employees/AddressService.ts/' + entity.Id); + response.setHeader('Content-Location', '/services/ts/codbex-employees/gen/codbex-employees/api/Employees/AddressController.ts/' + entity.Id); response.setStatus(response.CREATED); return entity; } catch (error: any) { diff --git a/codbex-employees/gen/codbex-employees/api/Employees/ContactController.ts b/codbex-employees/gen/codbex-employees/api/Employees/ContactController.ts index f7d6dd5..dd83c29 100644 --- a/codbex-employees/gen/codbex-employees/api/Employees/ContactController.ts +++ b/codbex-employees/gen/codbex-employees/api/Employees/ContactController.ts @@ -55,7 +55,7 @@ class ContactController { this.checkPermissions('write'); this.validateEntity(entity); entity.Id = this.repository.create(entity) as any; - response.setHeader('Content-Location', '/services/ts/codbex-employees/gen/codbex-employees/api/Employees/ContactService.ts/' + entity.Id); + response.setHeader('Content-Location', '/services/ts/codbex-employees/gen/codbex-employees/api/Employees/ContactController.ts/' + entity.Id); response.setStatus(response.CREATED); return entity; } catch (error: any) { diff --git a/codbex-employees/gen/codbex-employees/api/Employees/EmployeeController.ts b/codbex-employees/gen/codbex-employees/api/Employees/EmployeeController.ts index c21a083..22f1ea8 100644 --- a/codbex-employees/gen/codbex-employees/api/Employees/EmployeeController.ts +++ b/codbex-employees/gen/codbex-employees/api/Employees/EmployeeController.ts @@ -44,7 +44,7 @@ class EmployeeController { this.checkPermissions('write'); this.validateEntity(entity); entity.Id = this.repository.create(entity) as any; - response.setHeader('Content-Location', '/services/ts/codbex-employees/gen/codbex-employees/api/Employees/EmployeeService.ts/' + entity.Id); + response.setHeader('Content-Location', '/services/ts/codbex-employees/gen/codbex-employees/api/Employees/EmployeeController.ts/' + entity.Id); response.setStatus(response.CREATED); return entity; } catch (error: any) { diff --git a/codbex-employees/gen/codbex-employees/api/Settings/GenderController.ts b/codbex-employees/gen/codbex-employees/api/Settings/GenderController.ts index c132b4c..9e18024 100644 --- a/codbex-employees/gen/codbex-employees/api/Settings/GenderController.ts +++ b/codbex-employees/gen/codbex-employees/api/Settings/GenderController.ts @@ -44,7 +44,7 @@ class GenderController { this.checkPermissions('write'); this.validateEntity(entity); entity.Id = this.repository.create(entity) as any; - response.setHeader('Content-Location', '/services/ts/codbex-employees/gen/codbex-employees/api/Settings/GenderService.ts/' + entity.Id); + response.setHeader('Content-Location', '/services/ts/codbex-employees/gen/codbex-employees/api/Settings/GenderController.ts/' + entity.Id); response.setStatus(response.CREATED); return entity; } catch (error: any) { diff --git a/codbex-employees/gen/codbex-employees/api/Settings/MartialStatusController.ts b/codbex-employees/gen/codbex-employees/api/Settings/MartialStatusController.ts index 6fb9c52..61aef4c 100644 --- a/codbex-employees/gen/codbex-employees/api/Settings/MartialStatusController.ts +++ b/codbex-employees/gen/codbex-employees/api/Settings/MartialStatusController.ts @@ -44,7 +44,7 @@ class MartialStatusController { this.checkPermissions('write'); this.validateEntity(entity); entity.Id = this.repository.create(entity) as any; - response.setHeader('Content-Location', '/services/ts/codbex-employees/gen/codbex-employees/api/Settings/MartialStatusService.ts/' + entity.Id); + response.setHeader('Content-Location', '/services/ts/codbex-employees/gen/codbex-employees/api/Settings/MartialStatusController.ts/' + entity.Id); response.setStatus(response.CREATED); return entity; } catch (error: any) { diff --git a/codbex-employees/package.json b/codbex-employees/package.json index 9e8625a..ee7aa0e 100644 --- a/codbex-employees/package.json +++ b/codbex-employees/package.json @@ -12,7 +12,7 @@ "build": "tsc" }, "dependencies": { - "@codbex/codbex-countries": "^1.0.0", - "@codbex/codbex-cities": "^1.0.1" + "@codbex/codbex-countries": "^1.2.0", + "@codbex/codbex-cities": "^1.1.0" } -} +} \ No newline at end of file diff --git a/codbex-employees/project.json b/codbex-employees/project.json index f2ce704..b3028c4 100644 --- a/codbex-employees/project.json +++ b/codbex-employees/project.json @@ -1,33 +1,3 @@ { - "guid": "codbex-employees", - "dependencies": [ - { - "guid": "codbex-countries", - "type": "git", - "url": "https://github.com/codbex/codbex-countries.git", - "branch": "main" - }, - { - "guid": "codbex-cities", - "type": "git", - "url": "https://github.com/codbex/codbex-cities.git", - "branch": "main" - } - ], - "actions": [ - { - "name": "Build TypeScript", - "commands": [ - { - "os": "unix", - "command": "tsc" - }, - { - "os": "windows", - "command": "cmd /c tsc" - } - ], - "registry": "true" - } - ] + "guid": "codbex-employees" } \ No newline at end of file diff --git a/codbex-employees/tsconfig.json b/codbex-employees/tsconfig.json deleted file mode 100644 index 9b957e3..0000000 --- a/codbex-employees/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "ESNext", - "target": "ES6", - "moduleResolution": "Node", - "baseUrl": "../", - "lib": [ - "ESNext", - "DOM" - ], - "paths": { - "sdk/*": [ - "./modules/src/*" - ], - "/*": [ - "./*" - ] - }, - "types": [ - "../modules/types" - ] - } -} \ No newline at end of file