From d8f385262e2dbf8fa2df2ad6be8262696312bde6 Mon Sep 17 00:00:00 2001 From: TIVMOF Date: Mon, 28 Oct 2024 15:18:44 +0000 Subject: [PATCH] feat: Some restructuring --- dirigible-bank-server/api/BankService.ts | 0 .../data/bank-account-statuses.csv | 0 .../data/bank-account-types.csv | 0 .../data/bank-accounts.csv | 0 .../data/card-types.csv | 0 .../data/cards.csv | 0 dirigible-bank-server/data/countries.csv | 250 + dirigible-bank-server/data/currencies.csv | 166 + .../data/dirigible-bank-server.csvim | 0 .../data/users.csv | 0 .../dirigible-bank-server.edm | 94 + .../{edm.gen => dirigible-bank-server.gen} | 1139 ++-- ...{edm.model => dirigible-bank-server.model} | 753 +-- dirigible-bank-server/edm.edm | 93 - .../gen/dao/Countries/Country.extensionpoint | 4 - .../dao/Currencies/Currency.extensionpoint | 4 - .../api/bankAccount/BankAccountsService.ts | 2 +- .../api/cards/CardsService.ts | 5 +- .../api/entities/BankAccountStatusService.ts | 2 +- .../api/entities/BankAccountTypeService.ts | 2 +- .../api/entities/CardTypeService.ts | 2 +- .../api/entities}/CountryService.ts | 6 +- .../api/entities}/CurrencyService.ts | 18 +- .../api/transactions/TransactionsService.ts | 2 +- .../api/users/UsersService.ts | 2 +- .../api/utils/ForbiddenError.ts | 0 .../api/utils/HttpUtils.ts | 0 .../api/utils/ValidationError.ts | 0 .../bankAccount/BankAccounts.extensionpoint | 0 .../dao/bankAccount/BankAccountsRepository.ts | 24 +- .../dao/cards/Cards.extensionpoint | 0 .../dao/cards/CardsRepository.ts | 52 +- .../entities/BankAccountStatus.extensionpoint | 0 .../entities/BankAccountStatusRepository.ts | 24 +- .../entities/BankAccountType.extensionpoint | 0 .../dao/entities/BankAccountTypeRepository.ts | 24 +- .../dao/entities/CardType.extensionpoint | 0 .../dao/entities/CardTypeRepository.ts | 24 +- .../dao/entities/Country.extensionpoint | 4 + .../dao/entities}/CountryRepository.ts | 28 +- .../dao/entities/Currency.extensionpoint | 4 + .../dao/entities}/CurrencyRepository.ts | 26 +- .../transactions/Transactions.extensionpoint | 0 .../transactions/TransactionsRepository.ts | 24 +- .../dao/users/Users.extensionpoint | 0 .../dao/users/UsersRepository.ts | 52 +- .../dao/utils/EntityUtils.ts | 0 .../dirigible-bank-server.openapi | 5688 +++++++++++++++++ .../{ => dirigible-bank-server}/index.html | 10 +- .../odata/dirigible-bank-server.odata | 0 .../schema/dirigible-bank-server.schema | 256 +- .../ui/bankAccount/BankAccounts/controller.js | 64 +- .../BankAccounts/dialog-filter/controller.js | 50 +- .../BankAccounts/dialog-filter/index.html | 53 +- .../BankAccounts/dialog-filter/view.extension | 5 + .../BankAccounts/dialog-filter/view.js | 2 +- .../BankAccounts/dialog-window/controller.js | 31 +- .../BankAccounts/dialog-window/index.html | 22 +- .../BankAccounts/dialog-window/view.extension | 1 + .../BankAccounts/dialog-window/view.js | 2 +- .../ui/bankAccount/BankAccounts/index.html | 4 +- .../BankAccounts/tile-portal.extension | 1 + .../bankAccount/BankAccounts/tile.extension | 1 + .../ui/bankAccount/BankAccounts/tile.js | 8 +- .../bankAccount/BankAccounts/view.extension | 1 + .../ui/bankAccount/BankAccounts/view.js | 2 +- .../ui/bankAccount}/index.html | 49 +- .../bankAccount/perspective-portal.extension | 1 + .../ui/bankAccount/perspective.extension | 1 + .../ui/bankAccount/perspective.js | 18 + .../ui/cards/Cards/controller.js | 78 +- .../cards/Cards/dialog-filter/controller.js | 43 +- .../ui/cards/Cards/dialog-filter/index.html | 75 +- .../cards/Cards}/dialog-filter/view.extension | 2 +- .../ui/cards/Cards/dialog-filter/view.js | 2 +- .../cards/Cards/dialog-window/controller.js | 26 +- .../ui/cards/Cards/dialog-window/index.html | 60 +- .../cards/Cards/dialog-window/view.extension | 1 + .../ui/cards/Cards/dialog-window/view.js | 2 +- .../ui/cards/Cards/index.html | 10 +- .../ui/cards/Cards/tile-portal.extension | 1 + .../ui/cards/Cards/tile.extension | 1 + .../ui/cards/Cards/tile.js | 8 +- .../ui/cards/Cards/view.extension | 1 + .../ui/cards/Cards/view.js | 2 +- .../ui/cards}/index.html | 49 +- .../ui/cards/perspective-portal.extension | 1 + .../ui/cards/perspective.extension | 1 + .../ui/cards/perspective.js | 10 +- .../entities/BankAccountStatus/controller.js | 54 +- .../dialog-filter/controller.js | 22 +- .../dialog-filter/index.html | 32 +- .../dialog-filter/view.extension | 5 + .../BankAccountStatus/dialog-filter/view.js | 2 +- .../dialog-window/controller.js | 19 +- .../dialog-window/index.html | 22 +- .../dialog-window/view.extension | 1 + .../BankAccountStatus/dialog-window/view.js | 2 +- .../ui/entities/BankAccountStatus/index.html | 4 +- .../BankAccountStatus/tile-portal.extension | 1 + .../entities/BankAccountStatus/tile.extension | 1 + .../ui/entities/BankAccountStatus/tile.js | 8 +- .../entities/BankAccountStatus/view.extension | 1 + .../ui/entities/BankAccountStatus/view.js | 2 +- .../ui/entities/BankAccountType/controller.js | 54 +- .../dialog-filter/controller.js | 22 +- .../BankAccountType/dialog-filter/index.html | 32 +- .../dialog-filter/view.extension | 5 + .../BankAccountType/dialog-filter/view.js | 2 +- .../dialog-window/controller.js | 19 +- .../BankAccountType}/dialog-window/index.html | 22 +- .../dialog-window/view.extension | 1 + .../BankAccountType/dialog-window/view.js | 2 +- .../ui/entities/BankAccountType}/index.html | 4 +- .../BankAccountType/tile-portal.extension | 1 + .../entities/BankAccountType/tile.extension | 1 + .../ui/entities/BankAccountType/tile.js | 8 +- .../entities/BankAccountType/view.extension | 1 + .../ui/entities/BankAccountType/view.js | 2 +- .../ui/entities/CardType/controller.js | 54 +- .../CardType/dialog-filter/controller.js | 22 +- .../CardType/dialog-filter/index.html | 32 +- .../CardType}/dialog-filter/view.extension | 2 +- .../entities/CardType/dialog-filter/view.js | 2 +- .../CardType/dialog-window/controller.js | 19 +- .../CardType}/dialog-window/index.html | 22 +- .../CardType/dialog-window/view.extension | 1 + .../entities/CardType/dialog-window/view.js | 2 +- .../ui/entities/CardType}/index.html | 4 +- .../entities/CardType/tile-portal.extension | 1 + .../ui/entities/CardType/tile.extension | 1 + .../ui/entities/CardType/tile.js | 8 +- .../ui/entities/CardType/view.extension | 1 + .../ui/entities/CardType/view.js | 2 +- .../ui/entities/Country/controller.js | 163 + .../Country/dialog-filter/controller.js | 74 + .../entities/Country/dialog-filter/index.html | 126 + .../Country}/dialog-filter/view.extension | 2 +- .../ui/entities/Country/dialog-filter/view.js | 17 + .../Country/dialog-window/controller.js | 68 + .../entities/Country/dialog-window/index.html | 135 + .../Country/dialog-window/view.extension | 1 + .../ui/entities/Country/dialog-window/view.js | 17 + .../ui/entities/Country/index.html | 77 + .../ui/entities/Country/tile-portal.extension | 1 + .../ui/entities/Country/tile.extension | 1 + .../ui/entities/Country/tile.js | 19 + .../ui/entities/Country/view.extension | 1 + .../ui/entities/Country/view.js | 19 + .../ui/entities/Currency/controller.js | 163 + .../Currency/dialog-filter/controller.js | 80 + .../Currency/dialog-filter/index.html | 164 + .../Currency/dialog-filter/view.extension | 5 + .../entities/Currency/dialog-filter/view.js | 17 + .../Currency/dialog-window/controller.js | 68 + .../Currency/dialog-window/index.html | 179 + .../Currency/dialog-window/view.extension | 1 + .../entities/Currency/dialog-window/view.js | 17 + .../ui/entities/Currency/index.html | 81 + .../entities/Currency/tile-portal.extension | 1 + .../ui/entities/Currency/tile.extension | 1 + .../ui/entities/Currency/tile.js | 19 + .../ui/entities/Currency/view.extension | 1 + .../ui/entities/Currency/view.js | 19 + .../ui/entities}/index.html | 49 +- .../ui/entities/perspective-portal.extension | 1 + .../ui/entities/perspective.extension | 1 + .../ui/entities}/perspective.js | 10 +- .../ui/launchpad/Home/controller.js | 167 + .../ui/launchpad/Home/index.html | 203 + .../ui/launchpad/Home/styles.css | 99 + .../ui/launchpad/Home/tiles.js | 95 + .../ui/launchpad/Home/view.extension | 2 +- .../ui/launchpad/Home/view.js | 2 +- .../ui/launchpad/dialog-window.extensionpoint | 0 .../ui/launchpad/menu-help.extension | 5 + .../ui/launchpad/menu-help.js | 6 +- .../ui/launchpad/menu.extensionpoint | 0 .../ui/launchpad/perspective.extension | 1 + .../ui/launchpad/perspective.extensionpoint | 0 .../ui/launchpad}/perspective.js | 10 +- .../ui/launchpad/tile.extensionpoint | 0 .../ui/launchpad/view.extensionpoint | 0 .../transactions/Transactions/controller.js | 58 +- .../Transactions/dialog-filter/controller.js | 42 +- .../Transactions/dialog-filter/index.html | 41 +- .../Transactions/dialog-filter/view.extension | 5 + .../Transactions/dialog-filter/view.js | 2 +- .../Transactions/dialog-window/controller.js | 27 +- .../Transactions/dialog-window/index.html | 22 +- .../Transactions/dialog-window/view.extension | 1 + .../Transactions/dialog-window/view.js | 2 +- .../ui/transactions/Transactions/index.html | 4 +- .../Transactions/tile-portal.extension | 1 + .../transactions/Transactions/tile.extension | 1 + .../ui/transactions/Transactions/tile.js | 8 +- .../transactions/Transactions/view.extension | 1 + .../ui/transactions/Transactions/view.js | 2 +- .../ui/transactions/index.html | 79 + .../transactions/perspective-portal.extension | 1 + .../ui/transactions/perspective.extension | 1 + .../ui/transactions/perspective.js | 18 + .../ui/users/Users/controller.js | 56 +- .../users/Users/dialog-filter/controller.js | 30 +- .../ui/users/Users/dialog-filter/index.html | 76 +- .../users/Users}/dialog-filter/view.extension | 2 +- .../ui/users/Users/dialog-filter/view.js | 2 +- .../users/Users/dialog-window/controller.js | 21 +- .../ui/users/Users/dialog-window/index.html | 54 +- .../users/Users/dialog-window/view.extension | 1 + .../ui/users/Users/dialog-window/view.js | 2 +- .../ui/users/Users/index.html | 8 +- .../ui/users/Users/tile-portal.extension | 1 + .../ui/users/Users/tile.extension | 1 + .../ui/users/Users/tile.js | 8 +- .../ui/users/Users/view.extension | 1 + .../ui/users/Users/view.js | 2 +- .../ui/users}/index.html | 49 +- .../ui/users/perspective-portal.extension | 1 + .../ui/users/perspective.extension | 1 + .../ui/users}/perspective.js | 10 +- .../BankAccounts/dialog-window/view.extension | 1 - .../BankAccounts/tile-portal.extension | 1 - .../bankAccount/BankAccounts/tile.extension | 1 - .../bankAccount/BankAccounts/view.extension | 1 - .../bankAccount/perspective-portal.extension | 1 - .../gen/ui/bankAccount/perspective.extension | 1 - .../cards/Cards/dialog-window/view.extension | 1 - .../gen/ui/cards/Cards/tile-portal.extension | 1 - .../gen/ui/cards/Cards/tile.extension | 1 - .../gen/ui/cards/Cards/view.extension | 1 - .../gen/ui/cards/perspective-portal.extension | 1 - .../gen/ui/cards/perspective.extension | 1 - .../gen/ui/custom-action-dialog/controller.js | 14 - .../custom-action.extensionpoint | 4 - .../gen/ui/custom-action-dialog/index.html | 25 - .../ui/custom-action-dialog/view.extension | 5 - .../gen/ui/custom-action-dialog/view.js | 16 - .../dialog-window/view.extension | 1 - .../BankAccountStatus/tile-portal.extension | 1 - .../entities/BankAccountStatus/tile.extension | 1 - .../entities/BankAccountStatus/view.extension | 1 - .../dialog-window/view.extension | 1 - .../BankAccountType/tile-portal.extension | 1 - .../entities/BankAccountType/tile.extension | 1 - .../entities/BankAccountType/view.extension | 1 - .../CardType/dialog-filter/view.extension | 5 - .../CardType/dialog-window/view.extension | 1 - .../entities/CardType/tile-portal.extension | 1 - .../gen/ui/entities/CardType/tile.extension | 1 - .../gen/ui/entities/CardType/view.extension | 1 - .../ui/entities/perspective-portal.extension | 1 - .../gen/ui/entities/perspective.extension | 1 - .../gen/ui/launchpad/Home/controller.js | 30 - .../gen/ui/launchpad/Home/index.html | 83 - .../gen/ui/launchpad/Home/tiles.js | 61 - .../gen/ui/launchpad/menu-help.extension | 1 - .../gen/ui/launchpad/perspective.extension | 1 - .../Transactions/dialog-filter/view.extension | 5 - .../Transactions/dialog-window/view.extension | 1 - .../Transactions/tile-portal.extension | 1 - .../transactions/Transactions/tile.extension | 1 - .../transactions/Transactions/view.extension | 1 - .../transactions/perspective-portal.extension | 1 - .../gen/ui/transactions/perspective.extension | 1 - .../gen/ui/transactions/perspective.js | 18 - .../users/Users/dialog-filter/view.extension | 5 - .../users/Users/dialog-window/view.extension | 1 - .../gen/ui/users/Users/tile-portal.extension | 1 - .../gen/ui/users/Users/tile.extension | 1 - .../gen/ui/users/Users/view.extension | 1 - dirigible-bank-server/gen/ui/users/index.html | 62 - .../gen/ui/users/perspective-portal.extension | 1 - .../gen/ui/users/perspective.extension | 1 - .../gen/ui/users/perspective.js | 18 - dirigible-bank-server/project.json | 15 +- dirigible-bank-server/tsconfig.json | 6 +- 277 files changed, 10333 insertions(+), 2907 deletions(-) create mode 100644 dirigible-bank-server/api/BankService.ts rename dirigible-bank-server-data/BankAccountStatuses.csv => dirigible-bank-server/data/bank-account-statuses.csv (100%) rename dirigible-bank-server-data/BankAccountTypes.csv => dirigible-bank-server/data/bank-account-types.csv (100%) rename dirigible-bank-server-data/BankAccounts.csv => dirigible-bank-server/data/bank-accounts.csv (100%) rename dirigible-bank-server-data/CardTypes.csv => dirigible-bank-server/data/card-types.csv (100%) rename dirigible-bank-server-data/Cards.csv => dirigible-bank-server/data/cards.csv (100%) create mode 100644 dirigible-bank-server/data/countries.csv create mode 100644 dirigible-bank-server/data/currencies.csv rename dirigible-bank-server-data/dirigible-bank-server-data.csvim => dirigible-bank-server/data/dirigible-bank-server.csvim (100%) rename dirigible-bank-server-data/Users.csv => dirigible-bank-server/data/users.csv (100%) create mode 100644 dirigible-bank-server/dirigible-bank-server.edm rename dirigible-bank-server/{edm.gen => dirigible-bank-server.gen} (76%) rename dirigible-bank-server/{edm.model => dirigible-bank-server.model} (57%) delete mode 100644 dirigible-bank-server/edm.edm delete mode 100644 dirigible-bank-server/gen/dao/Countries/Country.extensionpoint delete mode 100644 dirigible-bank-server/gen/dao/Currencies/Currency.extensionpoint rename dirigible-bank-server/gen/{ => dirigible-bank-server}/api/bankAccount/BankAccountsService.ts (97%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/api/cards/CardsService.ts (94%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/api/entities/BankAccountStatusService.ts (97%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/api/entities/BankAccountTypeService.ts (97%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/api/entities/CardTypeService.ts (97%) rename dirigible-bank-server/gen/{api/Countries => dirigible-bank-server/api/entities}/CountryService.ts (95%) rename dirigible-bank-server/gen/{api/Currencies => dirigible-bank-server/api/entities}/CurrencyService.ts (90%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/api/transactions/TransactionsService.ts (97%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/api/users/UsersService.ts (98%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/api/utils/ForbiddenError.ts (100%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/api/utils/HttpUtils.ts (100%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/api/utils/ValidationError.ts (100%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/dao/bankAccount/BankAccounts.extensionpoint (100%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/dao/bankAccount/BankAccountsRepository.ts (93%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/dao/cards/Cards.extensionpoint (100%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/dao/cards/CardsRepository.ts (86%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/dao/entities/BankAccountStatus.extensionpoint (100%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/dao/entities/BankAccountStatusRepository.ts (89%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/dao/entities/BankAccountType.extensionpoint (100%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/dao/entities/BankAccountTypeRepository.ts (88%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/dao/entities/CardType.extensionpoint (100%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/dao/entities/CardTypeRepository.ts (89%) create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/dao/entities/Country.extensionpoint rename dirigible-bank-server/gen/{dao/Countries => dirigible-bank-server/dao/entities}/CountryRepository.ts (89%) create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/dao/entities/Currency.extensionpoint rename dirigible-bank-server/gen/{dao/Currencies => dirigible-bank-server/dao/entities}/CurrencyRepository.ts (91%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/dao/transactions/Transactions.extensionpoint (100%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/dao/transactions/TransactionsRepository.ts (91%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/dao/users/Users.extensionpoint (100%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/dao/users/UsersRepository.ts (93%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/dao/utils/EntityUtils.ts (100%) create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/dirigible-bank-server.openapi rename dirigible-bank-server/gen/{ => dirigible-bank-server}/index.html (88%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/odata/dirigible-bank-server.odata (100%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/schema/dirigible-bank-server.schema (69%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/bankAccount/BankAccounts/controller.js (80%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/bankAccount/BankAccounts/dialog-filter/controller.js (52%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/bankAccount/BankAccounts/dialog-filter/index.html (80%) create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/dialog-filter/view.extension rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/bankAccount/BankAccounts/dialog-filter/view.js (74%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/bankAccount/BankAccounts/dialog-window/controller.js (65%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/bankAccount/BankAccounts/dialog-window/index.html (91%) create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/dialog-window/view.extension rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/bankAccount/BankAccounts/dialog-window/view.js (74%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/bankAccount/BankAccounts/index.html (97%) create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/tile-portal.extension create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/tile.extension rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/bankAccount/BankAccounts/tile.js (57%) create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/view.extension rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/bankAccount/BankAccounts/view.js (77%) rename dirigible-bank-server/gen/{ui/entities => dirigible-bank-server/ui/bankAccount}/index.html (53%) create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/perspective-portal.extension create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/perspective.extension create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/perspective.js rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/cards/Cards/controller.js (70%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/cards/Cards/dialog-filter/controller.js (51%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/cards/Cards/dialog-filter/index.html (73%) rename dirigible-bank-server/gen/{ui/entities/BankAccountType => dirigible-bank-server/ui/cards/Cards}/dialog-filter/view.extension (56%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/cards/Cards/dialog-filter/view.js (75%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/cards/Cards/dialog-window/controller.js (68%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/cards/Cards/dialog-window/index.html (75%) create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/dialog-window/view.extension rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/cards/Cards/dialog-window/view.js (75%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/cards/Cards/index.html (93%) create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/tile-portal.extension create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/tile.extension rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/cards/Cards/tile.js (56%) create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/view.extension rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/cards/Cards/view.js (78%) rename dirigible-bank-server/gen/{ui/transactions => dirigible-bank-server/ui/cards}/index.html (54%) create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/cards/perspective-portal.extension create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/cards/perspective.extension rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/cards/perspective.js (58%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/entities/BankAccountStatus/controller.js (75%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/entities/BankAccountStatus/dialog-filter/controller.js (56%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/entities/BankAccountStatus/dialog-filter/index.html (71%) create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/dialog-filter/view.extension rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/entities/BankAccountStatus/dialog-filter/view.js (74%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/entities/BankAccountStatus/dialog-window/controller.js (75%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/entities/BankAccountStatus/dialog-window/index.html (78%) create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/dialog-window/view.extension rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/entities/BankAccountStatus/dialog-window/view.js (74%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/entities/BankAccountStatus/index.html (96%) create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/tile-portal.extension create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/tile.extension rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/entities/BankAccountStatus/tile.js (58%) create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/view.extension rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/entities/BankAccountStatus/view.js (77%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/entities/BankAccountType/controller.js (75%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/entities/BankAccountType/dialog-filter/controller.js (56%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/entities/BankAccountType/dialog-filter/index.html (71%) create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/dialog-filter/view.extension rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/entities/BankAccountType/dialog-filter/view.js (74%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/entities/BankAccountType/dialog-window/controller.js (75%) rename dirigible-bank-server/gen/{ui/entities/CardType => dirigible-bank-server/ui/entities/BankAccountType}/dialog-window/index.html (78%) create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/dialog-window/view.extension rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/entities/BankAccountType/dialog-window/view.js (74%) rename dirigible-bank-server/gen/{ui/entities/CardType => dirigible-bank-server/ui/entities/BankAccountType}/index.html (96%) create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/tile-portal.extension create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/tile.extension rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/entities/BankAccountType/tile.js (58%) create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/view.extension rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/entities/BankAccountType/view.js (77%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/entities/CardType/controller.js (75%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/entities/CardType/dialog-filter/controller.js (56%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/entities/CardType/dialog-filter/index.html (71%) rename dirigible-bank-server/gen/{ui/entities/BankAccountStatus => dirigible-bank-server/ui/entities/CardType}/dialog-filter/view.extension (55%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/entities/CardType/dialog-filter/view.js (74%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/entities/CardType/dialog-window/controller.js (74%) rename dirigible-bank-server/gen/{ui/entities/BankAccountType => dirigible-bank-server/ui/entities/CardType}/dialog-window/index.html (78%) create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/dialog-window/view.extension rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/entities/CardType/dialog-window/view.js (74%) rename dirigible-bank-server/gen/{ui/entities/BankAccountType => dirigible-bank-server/ui/entities/CardType}/index.html (96%) create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/tile-portal.extension create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/tile.extension rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/entities/CardType/tile.js (57%) create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/view.extension rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/entities/CardType/view.js (78%) create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/controller.js create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/dialog-filter/controller.js create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/dialog-filter/index.html rename dirigible-bank-server/gen/{ui/cards/Cards => dirigible-bank-server/ui/entities/Country}/dialog-filter/view.extension (55%) create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/dialog-filter/view.js create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/dialog-window/controller.js create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/dialog-window/index.html create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/dialog-window/view.extension create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/dialog-window/view.js create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/index.html create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/tile-portal.extension create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/tile.extension create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/tile.js create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/view.extension create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/view.js create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/controller.js create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/dialog-filter/controller.js create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/dialog-filter/index.html create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/dialog-filter/view.extension create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/dialog-filter/view.js create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/dialog-window/controller.js create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/dialog-window/index.html create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/dialog-window/view.extension create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/dialog-window/view.js create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/index.html create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/tile-portal.extension create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/tile.extension create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/tile.js create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/view.extension create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/view.js rename dirigible-bank-server/gen/{ui/cards => dirigible-bank-server/ui/entities}/index.html (53%) create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/entities/perspective-portal.extension create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/entities/perspective.extension rename dirigible-bank-server/gen/{ui/launchpad => dirigible-bank-server/ui/entities}/perspective.js (58%) create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/launchpad/Home/controller.js create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/launchpad/Home/index.html create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/launchpad/Home/styles.css create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/launchpad/Home/tiles.js rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/launchpad/Home/view.extension (56%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/launchpad/Home/view.js (79%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/launchpad/dialog-window.extensionpoint (100%) create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/launchpad/menu-help.extension rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/launchpad/menu-help.js (96%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/launchpad/menu.extensionpoint (100%) create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/launchpad/perspective.extension rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/launchpad/perspective.extensionpoint (100%) rename dirigible-bank-server/gen/{ui/entities => dirigible-bank-server/ui/launchpad}/perspective.js (60%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/launchpad/tile.extensionpoint (100%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/launchpad/view.extensionpoint (100%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/transactions/Transactions/controller.js (78%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/transactions/Transactions/dialog-filter/controller.js (52%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/transactions/Transactions/dialog-filter/index.html (77%) create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/dialog-filter/view.extension rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/transactions/Transactions/dialog-filter/view.js (74%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/transactions/Transactions/dialog-window/controller.js (69%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/transactions/Transactions/dialog-window/index.html (88%) create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/dialog-window/view.extension rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/transactions/Transactions/dialog-window/view.js (74%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/transactions/Transactions/index.html (96%) create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/tile-portal.extension create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/tile.extension rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/transactions/Transactions/tile.js (57%) create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/view.extension rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/transactions/Transactions/view.js (77%) create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/index.html create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/perspective-portal.extension create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/perspective.extension create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/perspective.js rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/users/Users/controller.js (78%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/users/Users/dialog-filter/controller.js (63%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/users/Users/dialog-filter/index.html (81%) rename dirigible-bank-server/gen/{ui/bankAccount/BankAccounts => dirigible-bank-server/ui/users/Users}/dialog-filter/view.extension (56%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/users/Users/dialog-filter/view.js (75%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/users/Users/dialog-window/controller.js (72%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/users/Users/dialog-window/index.html (93%) create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/dialog-window/view.extension rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/users/Users/dialog-window/view.js (75%) rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/users/Users/index.html (97%) create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/tile-portal.extension create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/tile.extension rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/users/Users/tile.js (56%) create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/view.extension rename dirigible-bank-server/gen/{ => dirigible-bank-server}/ui/users/Users/view.js (78%) rename dirigible-bank-server/gen/{ui/bankAccount => dirigible-bank-server/ui/users}/index.html (54%) create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/users/perspective-portal.extension create mode 100644 dirigible-bank-server/gen/dirigible-bank-server/ui/users/perspective.extension rename dirigible-bank-server/gen/{ui/bankAccount => dirigible-bank-server/ui/users}/perspective.js (58%) delete mode 100644 dirigible-bank-server/gen/ui/bankAccount/BankAccounts/dialog-window/view.extension delete mode 100644 dirigible-bank-server/gen/ui/bankAccount/BankAccounts/tile-portal.extension delete mode 100644 dirigible-bank-server/gen/ui/bankAccount/BankAccounts/tile.extension delete mode 100644 dirigible-bank-server/gen/ui/bankAccount/BankAccounts/view.extension delete mode 100644 dirigible-bank-server/gen/ui/bankAccount/perspective-portal.extension delete mode 100644 dirigible-bank-server/gen/ui/bankAccount/perspective.extension delete mode 100644 dirigible-bank-server/gen/ui/cards/Cards/dialog-window/view.extension delete mode 100644 dirigible-bank-server/gen/ui/cards/Cards/tile-portal.extension delete mode 100644 dirigible-bank-server/gen/ui/cards/Cards/tile.extension delete mode 100644 dirigible-bank-server/gen/ui/cards/Cards/view.extension delete mode 100644 dirigible-bank-server/gen/ui/cards/perspective-portal.extension delete mode 100644 dirigible-bank-server/gen/ui/cards/perspective.extension delete mode 100644 dirigible-bank-server/gen/ui/custom-action-dialog/controller.js delete mode 100644 dirigible-bank-server/gen/ui/custom-action-dialog/custom-action.extensionpoint delete mode 100644 dirigible-bank-server/gen/ui/custom-action-dialog/index.html delete mode 100644 dirigible-bank-server/gen/ui/custom-action-dialog/view.extension delete mode 100644 dirigible-bank-server/gen/ui/custom-action-dialog/view.js delete mode 100644 dirigible-bank-server/gen/ui/entities/BankAccountStatus/dialog-window/view.extension delete mode 100644 dirigible-bank-server/gen/ui/entities/BankAccountStatus/tile-portal.extension delete mode 100644 dirigible-bank-server/gen/ui/entities/BankAccountStatus/tile.extension delete mode 100644 dirigible-bank-server/gen/ui/entities/BankAccountStatus/view.extension delete mode 100644 dirigible-bank-server/gen/ui/entities/BankAccountType/dialog-window/view.extension delete mode 100644 dirigible-bank-server/gen/ui/entities/BankAccountType/tile-portal.extension delete mode 100644 dirigible-bank-server/gen/ui/entities/BankAccountType/tile.extension delete mode 100644 dirigible-bank-server/gen/ui/entities/BankAccountType/view.extension delete mode 100644 dirigible-bank-server/gen/ui/entities/CardType/dialog-filter/view.extension delete mode 100644 dirigible-bank-server/gen/ui/entities/CardType/dialog-window/view.extension delete mode 100644 dirigible-bank-server/gen/ui/entities/CardType/tile-portal.extension delete mode 100644 dirigible-bank-server/gen/ui/entities/CardType/tile.extension delete mode 100644 dirigible-bank-server/gen/ui/entities/CardType/view.extension delete mode 100644 dirigible-bank-server/gen/ui/entities/perspective-portal.extension delete mode 100644 dirigible-bank-server/gen/ui/entities/perspective.extension delete mode 100644 dirigible-bank-server/gen/ui/launchpad/Home/controller.js delete mode 100644 dirigible-bank-server/gen/ui/launchpad/Home/index.html delete mode 100644 dirigible-bank-server/gen/ui/launchpad/Home/tiles.js delete mode 100644 dirigible-bank-server/gen/ui/launchpad/menu-help.extension delete mode 100644 dirigible-bank-server/gen/ui/launchpad/perspective.extension delete mode 100644 dirigible-bank-server/gen/ui/transactions/Transactions/dialog-filter/view.extension delete mode 100644 dirigible-bank-server/gen/ui/transactions/Transactions/dialog-window/view.extension delete mode 100644 dirigible-bank-server/gen/ui/transactions/Transactions/tile-portal.extension delete mode 100644 dirigible-bank-server/gen/ui/transactions/Transactions/tile.extension delete mode 100644 dirigible-bank-server/gen/ui/transactions/Transactions/view.extension delete mode 100644 dirigible-bank-server/gen/ui/transactions/perspective-portal.extension delete mode 100644 dirigible-bank-server/gen/ui/transactions/perspective.extension delete mode 100644 dirigible-bank-server/gen/ui/transactions/perspective.js delete mode 100644 dirigible-bank-server/gen/ui/users/Users/dialog-filter/view.extension delete mode 100644 dirigible-bank-server/gen/ui/users/Users/dialog-window/view.extension delete mode 100644 dirigible-bank-server/gen/ui/users/Users/tile-portal.extension delete mode 100644 dirigible-bank-server/gen/ui/users/Users/tile.extension delete mode 100644 dirigible-bank-server/gen/ui/users/Users/view.extension delete mode 100644 dirigible-bank-server/gen/ui/users/index.html delete mode 100644 dirigible-bank-server/gen/ui/users/perspective-portal.extension delete mode 100644 dirigible-bank-server/gen/ui/users/perspective.extension delete mode 100644 dirigible-bank-server/gen/ui/users/perspective.js diff --git a/dirigible-bank-server/api/BankService.ts b/dirigible-bank-server/api/BankService.ts new file mode 100644 index 0000000..e69de29 diff --git a/dirigible-bank-server-data/BankAccountStatuses.csv b/dirigible-bank-server/data/bank-account-statuses.csv similarity index 100% rename from dirigible-bank-server-data/BankAccountStatuses.csv rename to dirigible-bank-server/data/bank-account-statuses.csv diff --git a/dirigible-bank-server-data/BankAccountTypes.csv b/dirigible-bank-server/data/bank-account-types.csv similarity index 100% rename from dirigible-bank-server-data/BankAccountTypes.csv rename to dirigible-bank-server/data/bank-account-types.csv diff --git a/dirigible-bank-server-data/BankAccounts.csv b/dirigible-bank-server/data/bank-accounts.csv similarity index 100% rename from dirigible-bank-server-data/BankAccounts.csv rename to dirigible-bank-server/data/bank-accounts.csv diff --git a/dirigible-bank-server-data/CardTypes.csv b/dirigible-bank-server/data/card-types.csv similarity index 100% rename from dirigible-bank-server-data/CardTypes.csv rename to dirigible-bank-server/data/card-types.csv diff --git a/dirigible-bank-server-data/Cards.csv b/dirigible-bank-server/data/cards.csv similarity index 100% rename from dirigible-bank-server-data/Cards.csv rename to dirigible-bank-server/data/cards.csv diff --git a/dirigible-bank-server/data/countries.csv b/dirigible-bank-server/data/countries.csv new file mode 100644 index 0000000..7d286b5 --- /dev/null +++ b/dirigible-bank-server/data/countries.csv @@ -0,0 +1,250 @@ +COUNTRY_ID,COUNTRY_NAME,COUNTRY_CODE2,COUNTRY_CODE3,COUNTRY_NUMERIC +1,Afghanistan,AF,AFG,004 +2,Albania,AL,ALB,008 +3,Algeria,DZ,DZA,012 +4,American Samoa,AS,ASM,016 +5,Andorra,AD,AND,020 +6,Angola,AO,AGO,024 +7,Anguilla,AI,AIA,660 +8,Antarctica,AQ,ATA,010 +9,Antigua and Barbuda,AG,ATG,028 +10,Argentina,AR,ARG,032 +11,Armenia,AM,ARM,051 +12,Aruba,AW,ABW,533 +13,Australia,AU,AUS,036 +14,Austria,AT,AUT,040 +15,Azerbaijan,AZ,AZE,031 +16,Bahamas (the),BS,BHS,044 +17,Bahrain,BH,BHR,048 +18,Bangladesh,BD,BGD,050 +19,Barbados,BB,BRB,052 +20,Belarus,BY,BLR,112 +21,Belgium,BE,BEL,056 +22,Belize,BZ,BLZ,084 +23,Benin,BJ,BEN,204 +24,Bermuda,BM,BMU,060 +25,Bhutan,BT,BTN,064 +26,Bolivia (Plurinational State of),BO,BOL,068 +27,"Bonaire, Sint Eustatius and Saba",BQ,BES,535 +28,Bosnia and Herzegovina,BA,BIH,070 +29,Botswana,BW,BWA,072 +30,Bouvet Island,BV,BVT,074 +31,Brazil,BR,BRA,076 +32,British Indian Ocean Territory (the),IO,IOT,086 +33,Brunei Darussalam,BN,BRN,096 +34,Bulgaria,BG,BGR,100 +35,Burkina Faso,BF,BFA,854 +36,Burundi,BI,BDI,108 +37,Cabo Verde,CV,CPV,132 +38,Cambodia,KH,KHM,116 +39,Cameroon,CM,CMR,120 +40,Canada,CA,CAN,124 +41,Cayman Islands (the),KY,CYM,136 +42,Central African Republic (the),CF,CAF,140 +43,Chad,TD,TCD,148 +44,Chile,CL,CHL,152 +45,China,CN,CHN,156 +46,Christmas Island,CX,CXR,162 +47,Cocos (Keeling) Islands (the),CC,CCK,166 +48,Colombia,CO,COL,170 +49,Comoros (the),KM,COM,174 +50,Congo (the Democratic Republic of the),CD,COD,180 +51,Congo (the),CG,COG,178 +52,Cook Islands (the),CK,COK,184 +53,Costa Rica,CR,CRI,188 +54,Croatia,HR,HRV,191 +55,Cuba,CU,CUB,192 +56,Curaçao,CW,CUW,531 +57,Cyprus,CY,CYP,196 +58,Czechia,CZ,CZE,203 +59,Côte d'Ivoire,CI,CIV,384 +60,Denmark,DK,DNK,208 +61,Djibouti,DJ,DJI,262 +62,Dominica,DM,DMA,212 +63,Dominican Republic (the),DO,DOM,214 +64,Ecuador,EC,ECU,218 +65,Egypt,EG,EGY,818 +66,El Salvador,SV,SLV,222 +67,Equatorial Guinea,GQ,GNQ,226 +68,Eritrea,ER,ERI,232 +69,Estonia,EE,EST,233 +70,Eswatini,SZ,SWZ,748 +71,Ethiopia,ET,ETH,231 +72,Falkland Islands (the) [Malvinas],FK,FLK,238 +73,Faroe Islands (the),FO,FRO,234 +74,Fiji,FJ,FJI,242 +75,Finland,FI,FIN,246 +76,France,FR,FRA,250 +77,French Guiana,GF,GUF,254 +78,French Polynesia,PF,PYF,258 +79,French Southern Territories (the),TF,ATF,260 +80,Gabon,GA,GAB,266 +81,Gambia (the),GM,GMB,270 +82,Georgia,GE,GEO,268 +83,Germany,DE,DEU,276 +84,Ghana,GH,GHA,288 +85,Gibraltar,GI,GIB,292 +86,Greece,GR,GRC,300 +87,Greenland,GL,GRL,304 +88,Grenada,GD,GRD,308 +89,Guadeloupe,GP,GLP,312 +90,Guam,GU,GUM,316 +91,Guatemala,GT,GTM,320 +92,Guernsey,GG,GGY,831 +93,Guinea,GN,GIN,324 +94,Guinea-Bissau,GW,GNB,624 +95,Guyana,GY,GUY,328 +96,Haiti,HT,HTI,332 +97,Heard Island and McDonald Islands,HM,HMD,334 +98,Holy See (the),VA,VAT,336 +99,Honduras,HN,HND,340 +100,Hong Kong,HK,HKG,344 +101,Hungary,HU,HUN,348 +102,Iceland,IS,ISL,352 +103,India,IN,IND,356 +104,Indonesia,ID,IDN,360 +105,Iran (Islamic Republic of),IR,IRN,364 +106,Iraq,IQ,IRQ,368 +107,Ireland,IE,IRL,372 +108,Isle of Man,IM,IMN,833 +109,Israel,IL,ISR,376 +110,Italy,IT,ITA,380 +111,Jamaica,JM,JAM,388 +112,Japan,JP,JPN,392 +113,Jersey,JE,JEY,832 +114,Jordan,JO,JOR,400 +115,Kazakhstan,KZ,KAZ,398 +116,Kenya,KE,KEN,404 +117,Kiribati,KI,KIR,296 +118,Korea (the Democratic People's Republic of),KP,PRK,408 +119,Korea (the Republic of),KR,KOR,410 +120,Kuwait,KW,KWT,414 +121,Kyrgyzstan,KG,KGZ,417 +122,Lao People's Democratic Republic (the),LA,LAO,418 +123,Latvia,LV,LVA,428 +124,Lebanon,LB,LBN,422 +125,Lesotho,LS,LSO,426 +126,Liberia,LR,LBR,430 +127,Libya,LY,LBY,434 +128,Liechtenstein,LI,LIE,438 +129,Lithuania,LT,LTU,440 +130,Luxembourg,LU,LUX,442 +131,Macao,MO,MAC,446 +132,Madagascar,MG,MDG,450 +133,Malawi,MW,MWI,454 +134,Malaysia,MY,MYS,458 +135,Maldives,MV,MDV,462 +136,Mali,ML,MLI,466 +137,Malta,MT,MLT,470 +138,Marshall Islands (the),MH,MHL,584 +139,Martinique,MQ,MTQ,474 +140,Mauritania,MR,MRT,478 +141,Mauritius,MU,MUS,480 +142,Mayotte,YT,MYT,175 +143,Mexico,MX,MEX,484 +144,Micronesia (Federated States of),FM,FSM,583 +145,Moldova (the Republic of),MD,MDA,498 +146,Monaco,MC,MCO,492 +147,Mongolia,MN,MNG,496 +148,Montenegro,ME,MNE,499 +149,Montserrat,MS,MSR,500 +150,Morocco,MA,MAR,504 +151,Mozambique,MZ,MOZ,508 +152,Myanmar,MM,MMR,104 +153,Namibia,NA,NAM,516 +154,Nauru,NR,NRU,520 +155,Nepal,NP,NPL,524 +156,Netherlands (the),NL,NLD,528 +157,New Caledonia,NC,NCL,540 +158,New Zealand,NZ,NZL,554 +159,Nicaragua,NI,NIC,558 +160,Niger (the),NE,NER,562 +161,Nigeria,NG,NGA,566 +162,Niue,NU,NIU,570 +163,Norfolk Island,NF,NFK,574 +164,North Macedonia,MK,MKD,807 +165,Northern Mariana Islands (the),MP,MNP,580 +166,Norway,NO,NOR,578 +167,Oman,OM,OMN,512 +168,Pakistan,PK,PAK,586 +169,Palau,PW,PLW,585 +170,"Palestine, State of",PS,PSE,275 +171,Panama,PA,PAN,591 +172,Papua New Guinea,PG,PNG,598 +173,Paraguay,PY,PRY,600 +174,Peru,PE,PER,604 +175,Philippines (the),PH,PHL,608 +176,Pitcairn,PN,PCN,612 +177,Poland,PL,POL,616 +178,Portugal,PT,PRT,620 +179,Puerto Rico,PR,PRI,630 +180,Qatar,QA,QAT,634 +181,Romania,RO,ROU,642 +182,Russian Federation (the),RU,RUS,643 +183,Rwanda,RW,RWA,646 +184,Réunion,RE,REU,638 +185,Saint Barthélemy,BL,BLM,652 +186,"Saint Helena, Ascension and Tristan da Cunha",SH,SHN,654 +187,Saint Kitts and Nevis,KN,KNA,659 +188,Saint Lucia,LC,LCA,662 +189,Saint Martin (French part),MF,MAF,663 +190,Saint Pierre and Miquelon,PM,SPM,666 +191,Saint Vincent and the Grenadines,VC,VCT,670 +192,Samoa,WS,WSM,882 +193,San Marino,SM,SMR,674 +194,Sao Tome and Principe,ST,STP,678 +195,Saudi Arabia,SA,SAU,682 +196,Senegal,SN,SEN,686 +197,Serbia,RS,SRB,688 +198,Seychelles,SC,SYC,690 +199,Sierra Leone,SL,SLE,694 +200,Singapore,SG,SGP,702 +201,Sint Maarten (Dutch part),SX,SXM,534 +202,Slovakia,SK,SVK,703 +203,Slovenia,SI,SVN,705 +204,Solomon Islands,SB,SLB,090 +205,Somalia,SO,SOM,706 +206,South Africa,ZA,ZAF,710 +207,South Georgia and the South Sandwich Islands,GS,SGS,239 +208,South Sudan,SS,SSD,728 +209,Spain,ES,ESP,724 +210,Sri Lanka,LK,LKA,144 +211,Sudan (the),SD,SDN,729 +212,Suriname,SR,SUR,740 +213,Svalbard and Jan Mayen,SJ,SJM,744 +214,Sweden,SE,SWE,752 +215,Switzerland,CH,CHE,756 +216,Syrian Arab Republic (the),SY,SYR,760 +217,Taiwan (Province of China),TW,TWN,158 +218,Tajikistan,TJ,TJK,762 +219,"Tanzania, the United Republic of",TZ,TZA,834 +220,Thailand,TH,THA,764 +221,Timor-Leste,TL,TLS,626 +222,Togo,TG,TGO,768 +223,Tokelau,TK,TKL,772 +224,Tonga,TO,TON,776 +225,Trinidad and Tobago,TT,TTO,780 +226,Tunisia,TN,TUN,788 +227,Turkey,TR,TUR,792 +228,Turkmenistan,TM,TKM,795 +229,Turks and Caicos Islands (the),TC,TCA,796 +230,Tuvalu,TV,TUV,798 +231,Uganda,UG,UGA,800 +232,Ukraine,UA,UKR,804 +233,United Arab Emirates (the),AE,ARE,784 +234,United Kingdom of Great Britain and Northern Ireland (the),GB,GBR,826 +235,United States Minor Outlying Islands (the),UM,UMI,581 +236,United States of America (the),US,USA,840 +237,Uruguay,UY,URY,858 +238,Uzbekistan,UZ,UZB,860 +239,Vanuatu,VU,VUT,548 +240,Venezuela (Bolivarian Republic of),VE,VEN,862 +241,Viet Nam,VN,VNM,704 +242,Virgin Islands (British),VG,VGB,092 +243,Virgin Islands (U.S.),VI,VIR,850 +244,Wallis and Futuna,WF,WLF,876 +245,Western Sahara*,EH,ESH,732 +246,Yemen,YE,YEM,887 +247,Zambia,ZM,ZMB,894 +248,Zimbabwe,ZW,ZWE,716 +249,Åland Islands,AX,ALA,248 \ No newline at end of file diff --git a/dirigible-bank-server/data/currencies.csv b/dirigible-bank-server/data/currencies.csv new file mode 100644 index 0000000..34771b0 --- /dev/null +++ b/dirigible-bank-server/data/currencies.csv @@ -0,0 +1,166 @@ +CURRENCY_ID,CURRENCY_CODE,CURRENCY_NAME,CURRENCY_NUMERIC,CURRENCY_ROUNDING,CURRENCY_BASE,CURRENCY_RATE +1,AFN,Afghani,971,2,0,-1 +2,EUR,Euro,978,2,1,1 +3,ALL,Lek,008,2,0,-1 +4,DZD,Algerian Dinar,012,2,0,-1 +5,USD,US Dollar,840,2,1,-1 +6,AOA,Kwanza,973,2,0,-1 +7,XCD,East Caribbean Dollar,951,2,0,-1 +8,ARS,Argentine Peso,032,2,0,-1 +9,AMD,Armenian Dram,051,2,0,-1 +10,AWG,Aruban Florin,533,2,0,-1 +11,AUD,Australian Dollar,036,2,0,-1 +12,AZN,Azerbaijan Manat,944,2,0,-1 +13,BSD,Bahamian Dollar,044,2,0,-1 +14,BHD,Bahraini Dinar,048,3,0,-1 +15,BDT,Taka,050,2,0,-1 +16,BBD,Barbados Dollar,052,2,0,-1 +17,BYN,Belarusian Ruble,933,2,0,-1 +18,BZD,Belize Dollar,084,2,0,-1 +19,XOF,CFA Franc BCEAO,952,0,0,-1 +20,BMD,Bermudian Dollar,060,2,0,-1 +21,INR,Indian Rupee,356,2,0,-1 +22,BTN,Ngultrum,064,2,0,-1 +23,BOB,Boliviano,068,2,0,-1 +24,BOV,Mvdol,984,2,0,-1 +25,BAM,Convertible Mark,977,2,0,-1 +26,BWP,Pula,072,2,0,-1 +27,NOK,Norwegian Krone,578,2,0,-1 +28,BRL,Brazilian Real,986,2,0,-1 +29,BND,Brunei Dollar,096,2,0,-1 +30,BGN,Bulgarian Lev,975,2,1,1.95583 +31,BIF,Burundi Franc,108,0,0,-1 +32,CVE,Cabo Verde Escudo,132,2,0,-1 +33,KHR,Riel,116,2,0,-1 +34,CAD,Canadian Dollar,124,2,0,-1 +35,KYD,Cayman Islands Dollar,136,2,0,-1 +36,XAF,CFA Franc BEAC,950,0,0,-1 +37,CLP,Chilean Peso,152,0,0,-1 +38,CLF,Unidad de Fomento,990,4,0,-1 +39,CNY,Yuan Renminbi,156,2,0,-1 +40,COP,Colombian Peso,170,2,0,-1 +41,COU,Unidad de Valor Real,970,2,0,-1 +42,KMF,Comorian Franc ,174,0,0,-1 +43,CDF,Congolese Franc,976,2,0,-1 +44,NZD,New Zealand Dollar,554,2,0,-1 +45,CRC,Costa Rican Colon,188,2,0,-1 +46,HRK,Kuna,191,2,0,-1 +47,CUP,Cuban Peso,192,2,0,-1 +48,CUC,Peso Convertible,931,2,0,-1 +49,ANG,Netherlands Antillean Guilder,532,2,0,-1 +50,CZK,Czech Koruna,203,2,0,-1 +51,DKK,Danish Krone,208,2,0,-1 +52,DJF,Djibouti Franc,262,0,0,-1 +53,DOP,Dominican Peso,214,2,0,-1 +54,EGP,Egyptian Pound,818,2,0,-1 +55,SVC,El Salvador Colon,222,2,0,-1 +56,ERN,Nakfa,232,2,0,-1 +57,SZL,Lilangeni,748,2,0,-1 +58,ETB,Ethiopian Birr,230,2,0,-1 +59,FKP,Falkland Islands Pound,238,2,0,-1 +60,FJD,Fiji Dollar,242,2,0,-1 +61,XPF,CFP Franc,953,0,0,-1 +62,GMD,Dalasi,270,2,0,-1 +63,GEL,Lari,981,2,0,-1 +64,GHS,Ghana Cedi,936,2,0,-1 +65,GIP,Gibraltar Pound,292,2,0,-1 +66,GTQ,Quetzal,320,2,0,-1 +67,GBP,Pound Sterling,826,2,0,-1 +68,GNF,Guinean Franc,324,0,0,-1 +69,GYD,Guyana Dollar,328,2,0,-1 +70,HTG,Gourde,332,2,0,-1 +71,HNL,Lempira,340,2,0,-1 +72,HKD,Hong Kong Dollar,344,2,0,-1 +73,HUF,Forint,348,2,0,-1 +74,ISK,Iceland Krona,352,0,0,-1 +75,IDR,Rupiah,360,2,0,-1 +76,IRR,Iranian Rial,364,2,0,-1 +77,IQD,Iraqi Dinar,368,3,0,-1 +78,ILS,New Israeli Sheqel,376,2,0,-1 +79,JMD,Jamaican Dollar,388,2,0,-1 +80,JPY,Yen,392,0,0,-1 +81,JOD,Jordanian Dinar,400,3,0,-1 +82,KZT,Tenge,398,2,0,-1 +83,KES,Kenyan Shilling,404,2,0,-1 +84,KPW,North Korean Won,408,2,0,-1 +85,KRW,Won,410,0,0,-1 +86,KWD,Kuwaiti Dinar,414,3,0,-1 +87,KGS,Som,417,2,0,-1 +88,LAK,Lao Kip,418,2,0,-1 +89,LBP,Lebanese Pound,422,2,0,-1 +90,LSL,Loti,426,2,0,-1 +91,ZAR,Rand,710,2,0,-1 +92,LRD,Liberian Dollar,430,2,0,-1 +93,LYD,Libyan Dinar,434,3,0,-1 +94,CHF,Swiss Franc,756,2,1,-1 +95,MOP,Pataca,446,2,0,-1 +96,MKD,Denar,807,2,0,-1 +97,MGA,Malagasy Ariary,969,2,0,-1 +98,MWK,Malawi Kwacha,454,2,0,-1 +99,MYR,Malaysian Ringgit,458,2,0,-1 +100,MVR,Rufiyaa,462,2,0,-1 +101,MRU,Ouguiya,929,2,0,-1 +102,MUR,Mauritius Rupee,480,2,0,-1 +103,MXN,Mexican Peso,484,2,0,-1 +104,MXV,Mexican Unidad de Inversion (UDI),979,2,0,-1 +105,MDL,Moldovan Leu,498,2,0,-1 +106,MNT,Tugrik,496,2,0,-1 +107,MAD,Moroccan Dirham,504,2,0,-1 +108,MZN,Mozambique Metical,943,2,0,-1 +109,MMK,Kyat,104,2,0,-1 +110,NAD,Namibia Dollar,516,2,0,-1 +111,NPR,Nepalese Rupee,524,2,0,-1 +112,NIO,Cordoba Oro,558,2,0,-1 +113,NGN,Naira,566,2,0,-1 +114,OMR,Rial Omani,512,3,0,-1 +115,PKR,Pakistan Rupee,586,2,0,-1 +116,PAB,Balboa,590,2,0,-1 +117,PGK,Kina,598,2,0,-1 +118,PYG,Guarani,600,0,0,-1 +119,PEN,Sol,604,2,0,-1 +120,PHP,Philippine Peso,608,2,0,-1 +121,PLN,Zloty,985,2,0,-1 +122,QAR,Qatari Rial,634,2,0,-1 +123,RON,Romanian Leu,946,2,0,-1 +124,RUB,Russian Ruble,643,2,0,-1 +125,RWF,Rwanda Franc,646,0,0,-1 +126,SHP,Saint Helena Pound,654,2,0,-1 +127,WST,Tala,882,2,0,-1 +128,STN,Dobra,930,2,0,-1 +129,SAR,Saudi Riyal,682,2,0,-1 +130,RSD,Serbian Dinar,941,2,0,-1 +131,SCR,Seychelles Rupee,690,2,0,-1 +132,SLL,Leone,694,2,0,-1 +133,SGD,Singapore Dollar,702,2,0,-1 +134,SBD,Solomon Islands Dollar,090,2,0,-1 +135,SOS,Somali Shilling,706,2,0,-1 +136,SSP,South Sudanese Pound,728,2,0,-1 +137,LKR,Sri Lanka Rupee,144,2,0,-1 +138,SDG,Sudanese Pound,938,2,0,-1 +139,SRD,Surinam Dollar,968,2,0,-1 +140,SEK,Swedish Krona,752,2,0,-1 +141,SYP,Syrian Pound,760,2,0,-1 +142,TWD,New Taiwan Dollar,901,2,0,-1 +143,TJS,Somoni,972,2,0,-1 +144,TZS,Tanzanian Shilling,834,2,0,-1 +145,THB,Baht,764,2,0,-1 +146,TOP,Pa’anga,776,2,0,-1 +147,TTD,Trinidad and Tobago Dollar,780,2,0,-1 +148,TND,Tunisian Dinar,788,3,0,-1 +149,TRY,Turkish Lira,949,2,0,-1 +150,TMT,Turkmenistan New Manat,934,2,0,-1 +151,UGX,Uganda Shilling,800,0,0,-1 +152,UAH,Hryvnia,980,2,0,-1 +153,AED,UAE Dirham,784,2,0,-1 +154,USN,US Dollar (Next day),997,2,0,-1 +155,UYU,Peso Uruguayo,858,2,0,-1 +156,UYI,Uruguay Peso en Unidades Indexadas (UI),940,0,0,-1 +157,UYW,Unidad Previsional,927,4,0,-1 +158,UZS,Uzbekistan Sum,860,2,0,-1 +159,VUV,Vatu,548,0,0,-1 +160,VES,Bolívar Soberano,928,2,0,-1 +161,VED,Bolívar Soberano,926,2,0,-1 +162,VND,Dong,704,0,0,-1 +163,YER,Yemeni Rial,886,2,0,-1 +164,ZMW,Zambian Kwacha,967,2,0,-1 +165,ZWL,Zimbabwe Dollar,932,2,0,-1 \ No newline at end of file diff --git a/dirigible-bank-server-data/dirigible-bank-server-data.csvim b/dirigible-bank-server/data/dirigible-bank-server.csvim similarity index 100% rename from dirigible-bank-server-data/dirigible-bank-server-data.csvim rename to dirigible-bank-server/data/dirigible-bank-server.csvim diff --git a/dirigible-bank-server-data/Users.csv b/dirigible-bank-server/data/users.csv similarity index 100% rename from dirigible-bank-server-data/Users.csv rename to dirigible-bank-server/data/users.csv diff --git a/dirigible-bank-server/dirigible-bank-server.edm b/dirigible-bank-server/dirigible-bank-server.edm new file mode 100644 index 0000000..e2cdbaa --- /dev/null +++ b/dirigible-bank-server/dirigible-bank-server.edm @@ -0,0 +1,94 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + users/services/web/resources/unicons/user-circle.svg40 + bankAccount/services/web/resources/unicons/chart-line.svg60 + cards/services/web/resources/unicons/credit-card.svg80 + transactions/services/web/resources/unicons/bill.svg90 + Settings/services/web/resources/unicons/wrench.svg110 + + + + + \ No newline at end of file diff --git a/dirigible-bank-server/edm.gen b/dirigible-bank-server/dirigible-bank-server.gen similarity index 76% rename from dirigible-bank-server/edm.gen rename to dirigible-bank-server/dirigible-bank-server.gen index cbaa6dc..792b381 100644 --- a/dirigible-bank-server/edm.gen +++ b/dirigible-bank-server/dirigible-bank-server.gen @@ -1,13 +1,16 @@ { - "tablePrefix": "PI_", - "brand": "Proper Invas Bank", + "brand": "Proper Invest Bank", "brandUrl": "https://github.com/TIVMOF/online_bank", "title": "PI Smart Server", - "description": "Server", + "description": "Bank Account Management Application", "projectName": "dirigible-bank-server", "workspaceName": "workspace", - "filePath": "edm.model", + "filePath": "dirigible-bank-server.model", "templateId": "template-application-angular/template/template.js", + "fileName": "dirigible-bank-server", + "genFolderName": "dirigible-bank-server", + "dataSource": "DefaultDB", + "tablePrefix": "", "perspectives": { "users": { "views": [ @@ -43,7 +46,9 @@ "views": [ "BankAccountType", "BankAccountStatus", - "CardType" + "CardType", + "Currency", + "Country" ], "name": "entities", "label": "entities", @@ -51,26 +56,6 @@ "icon": "/services/web/resources/unicons/copy.svg", "role": "" }, - "Currencies": { - "views": [ - "Currency" - ], - "name": "Currencies", - "label": "Currencies", - "order": "990", - "icon": "/services/web/resources/unicons/dollar-alt.svg", - "role": "" - }, - "Countries": { - "views": [ - "Country" - ], - "name": "Countries", - "label": "Countries", - "order": "100", - "icon": "/services/web/resources/unicons/globe.svg", - "role": "" - }, "transactions": { "views": [ "Transactions" @@ -86,23 +71,20 @@ { "properties": [ { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", "dataAutoIncrement": true, - "dataLength": "0", "dataName": "USERS_ID", "dataNullable": true, "dataPrimaryKey": true, "dataType": "INTEGER", - "dataUnique": false, - "isCalculatedProperty": false, - "isRequiredProperty": false, "name": "Id", "widgetIsMajor": true, "widgetLength": "20", "widgetSize": "", "widgetType": "TEXTBOX", "dataNotNull": false, + "dataUnique": false, + "isRequiredProperty": false, + "isCalculatedProperty": false, "widgetLabel": "Id", "widgetDropdownUrl": "", "dataTypeJava": "int", @@ -110,18 +92,10 @@ "inputRule": "" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": false, "dataLength": "255", "dataName": "USERS_FNAME", "dataNullable": false, - "dataPrecision": "NaN", - "dataPrimaryKey": false, - "dataScale": "NaN", "dataType": "VARCHAR", - "dataUnique": false, - "isCalculatedProperty": false, "isRequiredProperty": true, "name": "FName", "widgetIsMajor": true, @@ -129,6 +103,10 @@ "widgetSize": "", "widgetType": "TEXTBOX", "dataNotNull": true, + "dataAutoIncrement": false, + "dataPrimaryKey": false, + "dataUnique": false, + "isCalculatedProperty": false, "widgetLabel": "FName", "widgetDropdownUrl": "", "dataTypeJava": "string", @@ -138,18 +116,10 @@ "inputRule": "" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": false, "dataLength": "255", "dataName": "USERS_LNAME", "dataNullable": false, - "dataPrecision": "NaN", - "dataPrimaryKey": false, - "dataScale": "NaN", "dataType": "VARCHAR", - "dataUnique": false, - "isCalculatedProperty": false, "isRequiredProperty": true, "name": "LName", "widgetIsMajor": true, @@ -157,6 +127,10 @@ "widgetSize": "", "widgetType": "TEXTBOX", "dataNotNull": true, + "dataAutoIncrement": false, + "dataPrimaryKey": false, + "dataUnique": false, + "isCalculatedProperty": false, "widgetLabel": "LName", "widgetDropdownUrl": "", "dataTypeJava": "string", @@ -166,18 +140,11 @@ "inputRule": "" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": false, "dataLength": "700", "dataName": "USERS_EMAIL", "dataNullable": false, - "dataPrecision": "NaN", - "dataPrimaryKey": false, - "dataScale": "NaN", "dataType": "VARCHAR", "dataUnique": true, - "isCalculatedProperty": false, "isRequiredProperty": true, "name": "Email", "widgetIsMajor": true, @@ -185,6 +152,9 @@ "widgetSize": "", "widgetType": "EMAIL", "dataNotNull": true, + "dataAutoIncrement": false, + "dataPrimaryKey": false, + "isCalculatedProperty": false, "widgetLabel": "Email", "widgetDropdownUrl": "", "dataTypeJava": "string", @@ -194,18 +164,10 @@ "inputRule": "" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": false, "dataLength": "255", "dataName": "USERS_PASSWORD", "dataNullable": false, - "dataPrecision": "NaN", - "dataPrimaryKey": false, - "dataScale": "NaN", "dataType": "VARCHAR", - "dataUnique": false, - "isCalculatedProperty": false, "isRequiredProperty": true, "name": "Password", "widgetIsMajor": true, @@ -213,6 +175,10 @@ "widgetSize": "", "widgetType": "TEXTBOX", "dataNotNull": true, + "dataAutoIncrement": false, + "dataPrimaryKey": false, + "dataUnique": false, + "isCalculatedProperty": false, "widgetLabel": "Password", "widgetDropdownUrl": "", "dataTypeJava": "string", @@ -222,25 +188,21 @@ "inputRule": "" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": false, "dataLength": "20", "dataName": "USERS_PHONE", "dataNullable": false, - "dataPrecision": "NaN", - "dataPrimaryKey": false, - "dataScale": "NaN", "dataType": "VARCHAR", "dataUnique": true, - "isCalculatedProperty": false, - "isRequiredProperty": false, "name": "Phone", "widgetIsMajor": true, "widgetLength": "20", "widgetSize": "", "widgetType": "TEL", "dataNotNull": true, + "dataAutoIncrement": false, + "dataPrimaryKey": false, + "isRequiredProperty": false, + "isCalculatedProperty": false, "widgetLabel": "Phone", "widgetDropdownUrl": "", "dataTypeJava": "string", @@ -250,49 +212,11 @@ "inputRule": "" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": false, - "dataLength": "0", - "dataName": "USERS_COUNTRY", - "dataNullable": true, - "dataPrecision": "NaN", - "dataPrimaryKey": false, - "dataScale": "NaN", - "dataType": "INTEGER", - "dataUnique": false, - "isCalculatedProperty": false, - "isRequiredProperty": false, - "name": "Country", - "widgetDropDownKey": "Id", - "widgetDropDownValue": "Name", - "widgetIsMajor": true, - "widgetLength": "20", - "widgetSize": "", - "widgetType": "DROPDOWN", - "relationshipName": "Users_Country", - "relationshipEntityName": "Country", - "relationshipEntityPerspectiveName": "Countries", - "dataNotNull": false, - "widgetLabel": "Country", - "widgetDropdownUrl": "\"/services/ts/codbex-countries/gen/api/Countries/CountryService.ts\"", - "dataTypeJava": "int", - "dataTypeTypescript": "number", - "inputRule": "" - }, - { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": false, "dataLength": "900", "dataName": "USERS_USERNAME", "dataNullable": false, - "dataPrecision": "NaN", - "dataPrimaryKey": false, - "dataScale": "NaN", "dataType": "VARCHAR", "dataUnique": true, - "isCalculatedProperty": false, "isRequiredProperty": true, "name": "Username", "widgetIsMajor": true, @@ -300,6 +224,9 @@ "widgetSize": "", "widgetType": "TEXTBOX", "dataNotNull": true, + "dataAutoIncrement": false, + "dataPrimaryKey": false, + "isCalculatedProperty": false, "widgetLabel": "Username", "widgetDropdownUrl": "", "dataTypeJava": "string", @@ -307,15 +234,42 @@ "minLength": 0, "maxLength": 20, "inputRule": "" + }, + { + "dataName": "USERS_COUNTRY", + "dataNullable": true, + "dataType": "INTEGER", + "name": "Country", + "widgetDropDownKey": "Id", + "widgetDropDownValue": "Name", + "widgetIsMajor": true, + "widgetLength": "20", + "widgetSize": "", + "widgetType": "DROPDOWN", + "relationshipName": "Users_Country", + "relationshipEntityName": "Country", + "relationshipEntityPerspectiveName": "entities", + "relationshipEntityPerspectiveLabel": "Entities", + "dataNotNull": false, + "dataAutoIncrement": false, + "dataPrimaryKey": false, + "dataUnique": false, + "isRequiredProperty": false, + "isCalculatedProperty": false, + "widgetLabel": "Country", + "widgetDropdownUrl": "/services/ts/dirigible-bank-server/gen/dirigible-bank-server/api/entities/CountryService.ts", + "dataTypeJava": "int", + "dataTypeTypescript": "number", + "inputRule": "" } ], "caption": "Manage entity Users", - "dataCount": "SELECT COUNT(*) AS COUNT FROM \"PI_USERS\"", + "dataCount": "SELECT COUNT(*) AS COUNT FROM \"USERS\"", "dataName": "USERS", "dataQuery": "", - "disableGeneration": "false", "feedPassword": "YWRtaW4=", "feedUsername": "YWRtaW4=", + "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "layoutType": "MANAGE", "menuIndex": "100", @@ -324,18 +278,15 @@ "name": "Users", "navigationPath": "/Home", "perspectiveIcon": "/services/web/resources/unicons/user-circle.svg", + "perspectiveLabel": "Users", "perspectiveName": "users", "perspectiveOrder": "40", "perspectiveRole": "", "title": "Users", "tooltip": "Users", "type": "PRIMARY", - "referencedProjections": [ - { - "name": "Country", - "project": "codbex-countries" - } - ], + "dataSource": "DefaultDB", + "referencedProjections": [], "primaryKeys": [ "Id" ], @@ -345,23 +296,20 @@ { "properties": [ { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", "dataAutoIncrement": true, - "dataLength": "0", "dataName": "BANKACCOUNTS_ID", "dataNullable": true, "dataPrimaryKey": true, "dataType": "INTEGER", - "dataUnique": false, - "isCalculatedProperty": false, - "isRequiredProperty": false, "name": "Id", "widgetIsMajor": true, "widgetLength": "20", "widgetSize": "", "widgetType": "TEXTBOX", "dataNotNull": false, + "dataUnique": false, + "isRequiredProperty": false, + "isCalculatedProperty": false, "widgetLabel": "Id", "widgetDropdownUrl": "", "dataTypeJava": "int", @@ -369,18 +317,9 @@ "inputRule": "" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": false, - "dataLength": "NaN", "dataName": "BANKACCOUNTS_AMOUNT", "dataNullable": false, - "dataPrecision": "NaN", - "dataPrimaryKey": false, - "dataScale": "NaN", "dataType": "DOUBLE", - "dataUnique": false, - "isCalculatedProperty": false, "isRequiredProperty": true, "name": "Amount", "widgetIsMajor": true, @@ -388,6 +327,10 @@ "widgetSize": "", "widgetType": "NUMBER", "dataNotNull": true, + "dataAutoIncrement": false, + "dataPrimaryKey": false, + "dataUnique": false, + "isCalculatedProperty": false, "widgetLabel": "Amount", "widgetDropdownUrl": "", "dataTypeJava": "double", @@ -395,18 +338,11 @@ "inputRule": "" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": false, "dataLength": "20", "dataName": "BANKACCOUNTS_PROPERTY3", "dataNullable": false, - "dataPrecision": "NaN", - "dataPrimaryKey": false, - "dataScale": "NaN", "dataType": "VARCHAR", "dataUnique": true, - "isCalculatedProperty": false, "isRequiredProperty": true, "name": "IBAN", "widgetIsMajor": true, @@ -414,6 +350,9 @@ "widgetSize": "", "widgetType": "TEXTBOX", "dataNotNull": true, + "dataAutoIncrement": false, + "dataPrimaryKey": false, + "isCalculatedProperty": false, "widgetLabel": "IBAN", "widgetDropdownUrl": "", "dataTypeJava": "string", @@ -423,19 +362,9 @@ "inputRule": "" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": false, - "dataLength": "0", "dataName": "BANKACCOUNTS_USERS", "dataNullable": true, - "dataPrecision": "NaN", - "dataPrimaryKey": false, - "dataScale": "NaN", "dataType": "INTEGER", - "dataUnique": false, - "isCalculatedProperty": false, - "isRequiredProperty": false, "name": "Users", "widgetDropDownKey": "Id", "widgetDropDownValue": "FName", @@ -446,27 +375,23 @@ "relationshipName": "BankAccounts_Users", "relationshipEntityName": "Users", "relationshipEntityPerspectiveName": "users", + "relationshipEntityPerspectiveLabel": "Entities", "dataNotNull": false, + "dataAutoIncrement": false, + "dataPrimaryKey": false, + "dataUnique": false, + "isRequiredProperty": false, + "isCalculatedProperty": false, "widgetLabel": "Users", - "widgetDropdownUrl": "\"/services/ts/dirigible-bank-server/gen/api/users/UsersService.ts\"", + "widgetDropdownUrl": "/services/ts/dirigible-bank-server/gen/dirigible-bank-server/api/users/UsersService.ts", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": false, - "dataLength": "0", "dataName": "BANKACCOUNTS_BANKACCOUNTTYPE", "dataNullable": true, - "dataPrecision": "NaN", - "dataPrimaryKey": false, - "dataScale": "NaN", "dataType": "INTEGER", - "dataUnique": false, - "isCalculatedProperty": false, - "isRequiredProperty": false, "name": "BankAccountType", "widgetDropDownKey": "Id", "widgetDropDownValue": "Name", @@ -477,27 +402,23 @@ "relationshipName": "BankAccounts_BankAccountType", "relationshipEntityName": "BankAccountType", "relationshipEntityPerspectiveName": "entities", + "relationshipEntityPerspectiveLabel": "Entities", "dataNotNull": false, + "dataAutoIncrement": false, + "dataPrimaryKey": false, + "dataUnique": false, + "isRequiredProperty": false, + "isCalculatedProperty": false, "widgetLabel": "BankAccountType", - "widgetDropdownUrl": "\"/services/ts/dirigible-bank-server/gen/api/entities/BankAccountTypeService.ts\"", + "widgetDropdownUrl": "/services/ts/dirigible-bank-server/gen/dirigible-bank-server/api/entities/BankAccountTypeService.ts", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": false, - "dataLength": "0", "dataName": "BANKACCOUNTS_BANKACCOUNTSTATUS", "dataNullable": true, - "dataPrecision": "NaN", - "dataPrimaryKey": false, - "dataScale": "NaN", "dataType": "INTEGER", - "dataUnique": false, - "isCalculatedProperty": false, - "isRequiredProperty": false, "name": "BankAccountStatus", "widgetDropDownKey": "Id", "widgetDropDownValue": "Name", @@ -508,33 +429,34 @@ "relationshipName": "BankAccounts_BankAccountStatus", "relationshipEntityName": "BankAccountStatus", "relationshipEntityPerspectiveName": "entities", + "relationshipEntityPerspectiveLabel": "Entities", "dataNotNull": false, + "dataAutoIncrement": false, + "dataPrimaryKey": false, + "dataUnique": false, + "isRequiredProperty": false, + "isCalculatedProperty": false, "widgetLabel": "BankAccountStatus", - "widgetDropdownUrl": "\"/services/ts/dirigible-bank-server/gen/api/entities/BankAccountStatusService.ts\"", + "widgetDropdownUrl": "/services/ts/dirigible-bank-server/gen/dirigible-bank-server/api/entities/BankAccountStatusService.ts", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": false, - "dataLength": "20", "dataName": "BANKACCOUNTS_CREATIONDATE", "dataNullable": false, - "dataPrecision": "NaN", - "dataPrimaryKey": false, - "dataScale": "NaN", "dataType": "DATE", - "dataUnique": false, - "isCalculatedProperty": false, - "isRequiredProperty": false, "name": "CreationDate", "widgetIsMajor": true, "widgetLength": "20", "widgetSize": "", "widgetType": "DATE", "dataNotNull": true, + "dataAutoIncrement": false, + "dataPrimaryKey": false, + "dataUnique": false, + "isRequiredProperty": false, + "isCalculatedProperty": false, "widgetLabel": "CreationDate", "widgetDropdownUrl": "", "dataTypeJava": "date", @@ -543,44 +465,41 @@ "inputRule": "" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": false, - "dataLength": "0", "dataName": "BANKACCOUNTS_CURRENCY", "dataNullable": true, - "dataPrecision": "NaN", - "dataPrimaryKey": false, - "dataScale": "NaN", "dataType": "INTEGER", - "dataUnique": false, - "isCalculatedProperty": false, - "isRequiredProperty": false, "name": "Currency", + "widgetDropDownDependsOn": "", "widgetDropDownKey": "Id", - "widgetDropDownValue": "Name", + "widgetDropDownValue": "Code", "widgetIsMajor": true, "widgetLength": "20", "widgetSize": "", "widgetType": "DROPDOWN", "relationshipName": "BankAccounts_Currency", "relationshipEntityName": "Currency", - "relationshipEntityPerspectiveName": "Currencies", + "relationshipEntityPerspectiveName": "entities", + "relationshipEntityPerspectiveLabel": "Entities", "dataNotNull": false, + "dataAutoIncrement": false, + "dataPrimaryKey": false, + "dataUnique": false, + "isRequiredProperty": false, + "isCalculatedProperty": false, "widgetLabel": "Currency", - "widgetDropdownUrl": "\"/services/ts/codbex-currencies/gen/api/Currencies/CurrencyService.ts\"", + "widgetDropdownUrl": "/services/ts/dirigible-bank-server/gen/dirigible-bank-server/api/entities/CurrencyService.ts", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" } ], "caption": "Manage entity BankAccounts", - "dataCount": "SELECT COUNT(*) AS COUNT FROM \"PI_BANKACCOUNTS\"", + "dataCount": "SELECT COUNT(*) AS COUNT FROM \"BANKACCOUNTS\"", "dataName": "BANKACCOUNTS", "dataQuery": "", - "disableGeneration": "false", "feedPassword": "YWRtaW4=", "feedUsername": "YWRtaW4=", + "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "layoutType": "MANAGE", "menuIndex": "100", @@ -589,18 +508,15 @@ "name": "BankAccounts", "navigationPath": "/Home", "perspectiveIcon": "/services/web/resources/unicons/chart-line.svg", + "perspectiveLabel": "Bank Accounts", "perspectiveName": "bankAccount", "perspectiveOrder": "60", "perspectiveRole": "", "title": "BankAccounts", "tooltip": "BankAccounts", "type": "PRIMARY", - "referencedProjections": [ - { - "name": "Currency", - "project": "codbex-currencies" - } - ], + "dataSource": "DefaultDB", + "referencedProjections": [], "primaryKeys": [ "Id" ], @@ -611,73 +527,32 @@ { "properties": [ { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", "dataAutoIncrement": true, - "dataLength": "0", "dataName": "CARDS_ID", "dataNullable": true, "dataPrimaryKey": true, "dataType": "INTEGER", - "dataUnique": false, - "isCalculatedProperty": false, - "isRequiredProperty": false, "name": "Id", "widgetIsMajor": true, "widgetLength": "20", "widgetSize": "", "widgetType": "TEXTBOX", "dataNotNull": false, - "widgetLabel": "Id", - "widgetDropdownUrl": "", - "dataTypeJava": "int", - "dataTypeTypescript": "number", - "inputRule": "" - }, - { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": false, - "dataLength": "0", - "dataName": "CARDS_USERS", - "dataNullable": true, - "dataPrecision": "NaN", - "dataPrimaryKey": false, - "dataScale": "NaN", - "dataType": "INTEGER", "dataUnique": false, + "isRequiredProperty": false, "isCalculatedProperty": false, - "isRequiredProperty": true, - "name": "Users", - "widgetDropDownKey": "Id", - "widgetDropDownValue": "FName", - "widgetIsMajor": true, - "widgetLength": "20", - "widgetSize": "", - "widgetType": "DROPDOWN", - "relationshipName": "Cards_Users", - "relationshipEntityName": "Users", - "relationshipEntityPerspectiveName": "users", - "dataNotNull": false, - "widgetLabel": "Users", - "widgetDropdownUrl": "\"/services/ts/dirigible-bank-server/gen/api/users/UsersService.ts\"", + "widgetLabel": "Id", + "widgetDropdownUrl": "", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": false, "dataLength": "255", "dataName": "CARDS_CARDNUMBER", "dataNullable": false, - "dataPrecision": "NaN", - "dataPrimaryKey": false, - "dataScale": "NaN", "dataType": "VARCHAR", "dataUnique": true, - "isCalculatedProperty": false, "isRequiredProperty": true, "name": "CardNumber", "widgetIsMajor": true, @@ -685,6 +560,9 @@ "widgetSize": "", "widgetType": "TEXTBOX", "dataNotNull": true, + "dataAutoIncrement": false, + "dataPrimaryKey": false, + "isCalculatedProperty": false, "widgetLabel": "CardNumber", "widgetDropdownUrl": "", "dataTypeJava": "string", @@ -694,18 +572,9 @@ "inputRule": "" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": false, - "dataLength": "20", "dataName": "CARDS_EXPIRATIONDATE", "dataNullable": true, - "dataPrecision": "NaN", - "dataPrimaryKey": false, - "dataScale": "NaN", "dataType": "DATE", - "dataUnique": false, - "isCalculatedProperty": false, "isRequiredProperty": true, "name": "ExpirationDate", "widgetIsMajor": true, @@ -713,6 +582,10 @@ "widgetSize": "", "widgetType": "DATE", "dataNotNull": false, + "dataAutoIncrement": false, + "dataPrimaryKey": false, + "dataUnique": false, + "isCalculatedProperty": false, "widgetLabel": "ExpirationDate", "widgetDropdownUrl": "", "dataTypeJava": "date", @@ -721,18 +594,9 @@ "inputRule": "" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": false, - "dataLength": "0", "dataName": "CARDS_CARDTYPE", "dataNullable": false, - "dataPrecision": "NaN", - "dataPrimaryKey": false, - "dataScale": "NaN", "dataType": "INTEGER", - "dataUnique": false, - "isCalculatedProperty": false, "isRequiredProperty": true, "name": "CardType", "widgetDropDownKey": "Id", @@ -744,63 +608,92 @@ "relationshipName": "Cards_CardType", "relationshipEntityName": "CardType", "relationshipEntityPerspectiveName": "entities", + "relationshipEntityPerspectiveLabel": "Entities", "dataNotNull": true, + "dataAutoIncrement": false, + "dataPrimaryKey": false, + "dataUnique": false, + "isCalculatedProperty": false, "widgetLabel": "CardType", - "widgetDropdownUrl": "\"/services/ts/dirigible-bank-server/gen/api/entities/CardTypeService.ts\"", + "widgetDropdownUrl": "/services/ts/dirigible-bank-server/gen/dirigible-bank-server/api/entities/CardTypeService.ts", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" - } - ], - "caption": "Manage entity Cards", - "dataCount": "SELECT COUNT(*) AS COUNT FROM \"PI_CARDS\"", - "dataName": "CARDS", - "dataQuery": "", - "disableGeneration": "false", - "feedPassword": "YWRtaW4=", - "feedUsername": "YWRtaW4=", - "icon": "/services/web/resources/unicons/file.svg", - "layoutType": "MANAGE", - "menuIndex": "100", - "menuKey": "cards", + }, + { + "dataName": "CARDS_BANKACCOUNTS", + "dataNullable": true, + "dataType": "INTEGER", + "name": "BankAccounts", + "widgetIsMajor": true, + "widgetLength": "20", + "widgetSize": "", + "widgetType": "TEXTBOX", + "relationshipName": "Cards_BankAccounts", + "relationshipEntityName": "BankAccounts", + "relationshipEntityPerspectiveName": "bankAccount", + "relationshipEntityPerspectiveLabel": "Entities", + "dataNotNull": false, + "dataAutoIncrement": false, + "dataPrimaryKey": false, + "dataUnique": false, + "isRequiredProperty": false, + "isCalculatedProperty": false, + "widgetLabel": "BankAccounts", + "widgetDropdownUrl": "", + "dataTypeJava": "int", + "dataTypeTypescript": "number", + "inputRule": "" + } + ], + "caption": "Manage entity Cards", + "dataCount": "SELECT COUNT(*) AS COUNT FROM \"CARDS\"", + "dataName": "CARDS", + "dataQuery": "", + "feedPassword": "YWRtaW4=", + "feedUsername": "YWRtaW4=", + "generateReport": "false", + "icon": "/services/web/resources/unicons/file.svg", + "layoutType": "MANAGE", + "menuIndex": "100", + "menuKey": "cards", "menuLabel": "Cards", "name": "Cards", "navigationPath": "/Home", "perspectiveIcon": "/services/web/resources/unicons/credit-card.svg", + "perspectiveLabel": "Cards", "perspectiveName": "cards", "perspectiveOrder": "80", "perspectiveRole": "", "title": "Cards", "tooltip": "Cards", "type": "PRIMARY", + "dataSource": "DefaultDB", "referencedProjections": [], "primaryKeys": [ "Id" ], "primaryKeysString": "Id", - "hasDropdowns": true, - "hasDates": true + "hasDates": true, + "hasDropdowns": true }, { "properties": [ { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", "dataAutoIncrement": true, - "dataLength": "0", "dataName": "BANKACCOUNTTYPE_ID", "dataNullable": true, "dataPrimaryKey": true, "dataType": "INTEGER", - "dataUnique": false, - "isCalculatedProperty": false, - "isRequiredProperty": false, "name": "Id", "widgetIsMajor": true, "widgetLength": "20", "widgetSize": "", "widgetType": "TEXTBOX", "dataNotNull": false, + "dataUnique": false, + "isRequiredProperty": false, + "isCalculatedProperty": false, "widgetLabel": "Id", "widgetDropdownUrl": "", "dataTypeJava": "int", @@ -808,25 +701,21 @@ "inputRule": "" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": false, "dataLength": "255", "dataName": "BANKACCOUNTTYPE_NAME", "dataNullable": false, - "dataPrecision": "NaN", - "dataPrimaryKey": false, - "dataScale": "NaN", "dataType": "VARCHAR", - "dataUnique": false, - "isCalculatedProperty": false, - "isRequiredProperty": false, "name": "Name", "widgetIsMajor": true, "widgetLength": "20", "widgetSize": "", "widgetType": "TEXTBOX", "dataNotNull": true, + "dataAutoIncrement": false, + "dataPrimaryKey": false, + "dataUnique": false, + "isRequiredProperty": false, + "isCalculatedProperty": false, "widgetLabel": "Name", "widgetDropdownUrl": "", "dataTypeJava": "string", @@ -837,10 +726,10 @@ } ], "caption": "Manage entity BankAccountType", - "dataCount": "SELECT COUNT(*) AS COUNT FROM \"PI_BANKACCOUNTTYPE\"", + "dataCount": "SELECT COUNT(*) AS COUNT FROM \"BANKACCOUNTTYPE\"", "dataName": "BANKACCOUNTTYPE", "dataQuery": "", - "disableGeneration": "false", + "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "layoutType": "MANAGE", "menuIndex": "100", @@ -849,12 +738,14 @@ "name": "BankAccountType", "navigationPath": "/Home", "perspectiveIcon": "/services/web/resources/unicons/copy.svg", + "perspectiveLabel": "Entities", "perspectiveName": "entities", "perspectiveOrder": "100", "perspectiveRole": "", "title": "BankAccountType", "tooltip": "BankAccountType", "type": "PRIMARY", + "dataSource": "DefaultDB", "referencedProjections": [], "primaryKeys": [ "Id" @@ -864,23 +755,20 @@ { "properties": [ { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", "dataAutoIncrement": true, - "dataLength": "0", "dataName": "BANKACCOUNTSTATUS_ID", "dataNullable": true, "dataPrimaryKey": true, "dataType": "INTEGER", - "dataUnique": false, - "isCalculatedProperty": false, - "isRequiredProperty": false, "name": "Id", "widgetIsMajor": true, "widgetLength": "20", "widgetSize": "", "widgetType": "TEXTBOX", "dataNotNull": false, + "dataUnique": false, + "isRequiredProperty": false, + "isCalculatedProperty": false, "widgetLabel": "Id", "widgetDropdownUrl": "", "dataTypeJava": "int", @@ -888,18 +776,10 @@ "inputRule": "" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": false, "dataLength": "255", "dataName": "BANKACCOUNTSTATUS_NAME", "dataNullable": false, - "dataPrecision": "NaN", - "dataPrimaryKey": false, - "dataScale": "NaN", "dataType": "VARCHAR", - "dataUnique": false, - "isCalculatedProperty": false, "isRequiredProperty": true, "name": "Name", "widgetIsMajor": true, @@ -907,6 +787,10 @@ "widgetSize": "", "widgetType": "TEXTBOX", "dataNotNull": true, + "dataAutoIncrement": false, + "dataPrimaryKey": false, + "dataUnique": false, + "isCalculatedProperty": false, "widgetLabel": "Name", "widgetDropdownUrl": "", "dataTypeJava": "string", @@ -917,10 +801,10 @@ } ], "caption": "Manage entity BankAccountStatus", - "dataCount": "SELECT COUNT(*) AS COUNT FROM \"PI_BANKACCOUNTSTATUS\"", + "dataCount": "SELECT COUNT(*) AS COUNT FROM \"BANKACCOUNTSTATUS\"", "dataName": "BANKACCOUNTSTATUS", "dataQuery": "", - "disableGeneration": "false", + "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "layoutType": "MANAGE", "menuIndex": "100", @@ -929,12 +813,14 @@ "name": "BankAccountStatus", "navigationPath": "/Home", "perspectiveIcon": "/services/web/resources/unicons/copy.svg", + "perspectiveLabel": "Entities", "perspectiveName": "entities", "perspectiveOrder": "100", "perspectiveRole": "", "title": "BankAccountStatus", "tooltip": "BankAccountStatus", "type": "PRIMARY", + "dataSource": "DefaultDB", "referencedProjections": [], "primaryKeys": [ "Id" @@ -944,23 +830,20 @@ { "properties": [ { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", "dataAutoIncrement": true, - "dataLength": "0", "dataName": "CARDTYPE_ID", "dataNullable": true, "dataPrimaryKey": true, "dataType": "INTEGER", - "dataUnique": false, - "isCalculatedProperty": false, - "isRequiredProperty": false, "name": "Id", "widgetIsMajor": true, "widgetLength": "20", "widgetSize": "", "widgetType": "TEXTBOX", "dataNotNull": false, + "dataUnique": false, + "isRequiredProperty": false, + "isCalculatedProperty": false, "widgetLabel": "Id", "widgetDropdownUrl": "", "dataTypeJava": "int", @@ -968,25 +851,21 @@ "inputRule": "" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": false, "dataLength": "255", "dataName": "CARDTYPE_NAME", "dataNullable": true, - "dataPrecision": "NaN", - "dataPrimaryKey": false, - "dataScale": "NaN", "dataType": "VARCHAR", - "dataUnique": false, - "isCalculatedProperty": false, - "isRequiredProperty": false, "name": "Name", "widgetIsMajor": true, "widgetLength": "20", "widgetSize": "", "widgetType": "TEXTBOX", "dataNotNull": false, + "dataAutoIncrement": false, + "dataPrimaryKey": false, + "dataUnique": false, + "isRequiredProperty": false, + "isCalculatedProperty": false, "widgetLabel": "Name", "widgetDropdownUrl": "", "dataTypeJava": "string", @@ -997,10 +876,10 @@ } ], "caption": "Manage entity CardType", - "dataCount": "SELECT COUNT(*) AS COUNT FROM \"PI_CARDTYPE\"", + "dataCount": "SELECT COUNT(*) AS COUNT FROM \"CARDTYPE\"", "dataName": "CARDTYPE", "dataQuery": "", - "disableGeneration": "false", + "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "layoutType": "MANAGE", "menuIndex": "100", @@ -1009,12 +888,14 @@ "name": "CardType", "navigationPath": "/Home", "perspectiveIcon": "/services/web/resources/unicons/copy.svg", + "perspectiveLabel": "Entities", "perspectiveName": "entities", "perspectiveOrder": "100", "perspectiveRole": "", "title": "CardType", "tooltip": "CardType", "type": "PRIMARY", + "dataSource": "DefaultDB", "referencedProjections": [], "primaryKeys": [ "Id" @@ -1024,23 +905,20 @@ { "properties": [ { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", "dataAutoIncrement": true, - "dataLength": "0", - "dataName": "CURRENCY_ID", + "dataName": "TRANSACTIONS_ID", "dataNullable": true, "dataPrimaryKey": true, "dataType": "INTEGER", - "dataUnique": false, - "isCalculatedProperty": false, - "isRequiredProperty": false, "name": "Id", "widgetIsMajor": true, "widgetLength": "20", "widgetSize": "", "widgetType": "TEXTBOX", "dataNotNull": false, + "dataUnique": false, + "isRequiredProperty": false, + "isCalculatedProperty": false, "widgetLabel": "Id", "widgetDropdownUrl": "", "dataTypeJava": "int", @@ -1048,215 +926,151 @@ "inputRule": "" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": false, - "dataLength": "3", - "dataName": "CURRENCY_CODE", + "dataName": "TRANSACTIONS_RECIEVER", "dataNullable": true, - "dataPrecision": "NaN", + "dataType": "INTEGER", + "name": "Reciever", + "widgetDropDownKey": "Id", + "widgetDropDownValue": "IBAN", + "widgetIsMajor": true, + "widgetLength": "20", + "widgetSize": "", + "widgetType": "DROPDOWN", + "relationshipName": "Transactions_BankAccounts", + "relationshipEntityName": "BankAccounts", + "relationshipEntityPerspectiveName": "bankAccount", + "relationshipEntityPerspectiveLabel": "Entities", + "dataNotNull": false, + "dataAutoIncrement": false, "dataPrimaryKey": false, - "dataScale": "NaN", - "dataType": "VARCHAR", "dataUnique": false, - "isCalculatedProperty": false, "isRequiredProperty": false, - "name": "Code", - "widgetIsMajor": true, - "widgetLength": "3", - "widgetSize": "fd-col-md--2 fd-col--3", - "widgetType": "TEXTBOX", - "dataNotNull": false, - "widgetLabel": "Code", - "widgetDropdownUrl": "", - "dataTypeJava": "string", - "dataTypeTypescript": "string", - "minLength": 0, - "maxLength": 3, + "isCalculatedProperty": false, + "widgetLabel": "Reciever", + "widgetDropdownUrl": "/services/ts/dirigible-bank-server/gen/dirigible-bank-server/api/bankAccount/BankAccountsService.ts", + "dataTypeJava": "int", + "dataTypeTypescript": "number", "inputRule": "" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": false, - "dataLength": "127", - "dataName": "CURRENCY_NAME", + "dataName": "TRANSACTIONS_SENDER", "dataNullable": true, - "dataPrecision": "NaN", - "dataPrimaryKey": false, - "dataScale": "NaN", - "dataType": "VARCHAR", - "dataUnique": false, - "isCalculatedProperty": false, - "isRequiredProperty": false, - "name": "Name", + "dataType": "INTEGER", + "name": "Sender", + "widgetDropDownKey": "Id", + "widgetDropDownValue": "IBAN", "widgetIsMajor": true, "widgetLength": "20", - "widgetSize": "fd-col-md--6 fd-col--9", - "widgetType": "TEXTBOX", + "widgetSize": "", + "widgetType": "DROPDOWN", + "relationshipName": "Transactions_BankAccounts", + "relationshipEntityName": "BankAccounts", + "relationshipEntityPerspectiveName": "bankAccount", + "relationshipEntityPerspectiveLabel": "Entities", "dataNotNull": false, - "widgetLabel": "Name", - "widgetDropdownUrl": "", - "dataTypeJava": "string", - "dataTypeTypescript": "string", - "minLength": 0, - "maxLength": 20, - "inputRule": "" - }, - { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", "dataAutoIncrement": false, - "dataLength": "3", - "dataName": "CURRENCY_NUMERIC", - "dataNullable": true, - "dataPrecision": "NaN", "dataPrimaryKey": false, - "dataScale": "NaN", - "dataType": "VARCHAR", "dataUnique": false, - "isCalculatedProperty": false, "isRequiredProperty": false, - "name": "Numeric", - "widgetIsMajor": true, - "widgetLength": "3", - "widgetSize": "fd-col-md--2 fd-col--3", - "widgetType": "TEXTBOX", - "dataNotNull": false, - "widgetLabel": "Numeric", - "widgetDropdownUrl": "", - "dataTypeJava": "string", - "dataTypeTypescript": "string", - "minLength": 0, - "maxLength": 3, + "isCalculatedProperty": false, + "widgetLabel": "Sender", + "widgetDropdownUrl": "/services/ts/dirigible-bank-server/gen/dirigible-bank-server/api/bankAccount/BankAccountsService.ts", + "dataTypeJava": "int", + "dataTypeTypescript": "number", "inputRule": "" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": false, - "dataLength": "20", - "dataName": "CURRENCY_ROUNDING", + "dataName": "TRANSACTIONS_AMOUNT", "dataNullable": true, - "dataPrecision": "NaN", - "dataPrimaryKey": false, - "dataScale": "NaN", - "dataType": "INTEGER", - "dataUnique": false, - "isCalculatedProperty": false, - "isRequiredProperty": false, - "name": "Rounding", + "dataType": "DOUBLE", + "isRequiredProperty": true, + "name": "Amount", "widgetIsMajor": true, "widgetLength": "20", - "widgetSize": "fd-col-md--2 fd-col--3", - "widgetType": "NUMBER", + "widgetSize": "", + "widgetType": "TEXTBOX", "dataNotNull": false, - "widgetLabel": "Rounding", + "dataAutoIncrement": false, + "dataPrimaryKey": false, + "dataUnique": false, + "isCalculatedProperty": false, + "widgetLabel": "Amount", "widgetDropdownUrl": "", - "dataTypeJava": "int", + "dataTypeJava": "double", "dataTypeTypescript": "number", "inputRule": "" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": false, - "dataLength": "20", - "dataName": "CURRENCY_BASE", + "dataName": "TRANSACTIONS_DATE", "dataNullable": true, - "dataPrecision": "NaN", - "dataPrimaryKey": false, - "dataScale": "NaN", - "dataType": "BOOLEAN", - "dataUnique": false, - "isCalculatedProperty": false, - "isRequiredProperty": false, - "name": "Base", + "dataType": "DATE", + "name": "Date", "widgetIsMajor": true, "widgetLength": "20", "widgetSize": "", - "widgetType": "CHECKBOX", + "widgetType": "TEXTBOX", "dataNotNull": false, - "widgetLabel": "Base", - "widgetDropdownUrl": "", - "dataTypeJava": "boolean", - "dataTypeTypescript": "boolean", - "inputRule": "" - }, - { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", "dataAutoIncrement": false, - "dataLength": "20", - "dataName": "CURRENCY_RATE", - "dataNullable": true, - "dataPrecision": "NaN", "dataPrimaryKey": false, - "dataScale": "NaN", - "dataType": "DOUBLE", "dataUnique": false, - "isCalculatedProperty": false, "isRequiredProperty": false, - "name": "Rate", - "widgetIsMajor": true, - "widgetLength": "20", - "widgetSize": "fd-col-md--4 fd-col--6", - "widgetType": "NUMBER", - "dataNotNull": false, - "widgetLabel": "Rate", + "isCalculatedProperty": false, + "widgetLabel": "Date", "widgetDropdownUrl": "", - "dataTypeJava": "double", - "dataTypeTypescript": "number", + "dataTypeJava": "date", + "dataTypeTypescript": "Date", + "isDateType": true, "inputRule": "" } ], - "caption": "Manage entity Currency", - "dataCount": "SELECT COUNT(*) AS COUNT FROM \"PI_CURRENCY\"", - "dataName": "CURRENCY", + "caption": "Manage entity Transactions", + "dataCount": "SELECT COUNT(*) AS COUNT FROM \"TRANSACTIONS\"", + "dataName": "TRANSACTIONS", "dataQuery": "", - "disableGeneration": "false", + "feedPassword": "YWRtaW4=", + "feedUsername": "YWRtaW4=", + "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "layoutType": "MANAGE", "menuIndex": "100", - "menuKey": "currency", - "menuLabel": "Currency", - "name": "Currency", + "menuKey": "transactions", + "menuLabel": "Transactions", + "name": "Transactions", "navigationPath": "/Home", - "perspectiveIcon": "/services/web/resources/unicons/dollar-alt.svg", - "perspectiveName": "Currencies", - "perspectiveOrder": "990", + "perspectiveIcon": "/services/web/resources/unicons/bill.svg", + "perspectiveLabel": "Transactions", + "perspectiveName": "transactions", + "perspectiveOrder": "90", "perspectiveRole": "", - "projectionReferencedEntity": "Currency", - "projectionReferencedModel": "/workspace/codbex-currencies/codbex-currencies.model", - "title": "Currency", - "tooltip": "Currency", - "type": "PROJECTION", + "title": "Transactions", + "tooltip": "Transactions", + "type": "PRIMARY", + "dataSource": "DefaultDB", "referencedProjections": [], "primaryKeys": [ "Id" ], - "primaryKeysString": "Id" + "primaryKeysString": "Id", + "hasDropdowns": true, + "hasDates": true }, { "properties": [ { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", "dataAutoIncrement": true, - "dataLength": "0", - "dataName": "COUNTRY_ID", + "dataName": "CURRENCY_ID", "dataNullable": true, "dataPrimaryKey": true, "dataType": "INTEGER", - "dataUnique": false, - "isCalculatedProperty": false, - "isRequiredProperty": false, "name": "Id", "widgetIsMajor": true, "widgetLength": "20", "widgetSize": "", "widgetType": "TEXTBOX", "dataNotNull": false, + "dataUnique": false, + "isRequiredProperty": false, + "isCalculatedProperty": false, "widgetLabel": "Id", "widgetDropdownUrl": "", "dataTypeJava": "int", @@ -1264,26 +1078,22 @@ "inputRule": "" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": false, - "dataLength": "255", - "dataName": "COUNTRY_NAME", + "dataLength": "20", + "dataName": "CURRENCY_CODE", "dataNullable": true, - "dataPrecision": "NaN", - "dataPrimaryKey": false, - "dataScale": "NaN", "dataType": "VARCHAR", - "dataUnique": true, - "isCalculatedProperty": false, - "isRequiredProperty": false, - "name": "Name", + "name": "Code", "widgetIsMajor": true, "widgetLength": "20", - "widgetSize": "fd-col-md--4 fd-col--6", + "widgetSize": "", "widgetType": "TEXTBOX", "dataNotNull": false, - "widgetLabel": "Name", + "dataAutoIncrement": false, + "dataPrimaryKey": false, + "dataUnique": false, + "isRequiredProperty": false, + "isCalculatedProperty": false, + "widgetLabel": "Code", "widgetDropdownUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", @@ -1292,111 +1102,138 @@ "inputRule": "" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": false, - "dataLength": "2", - "dataName": "COUNTRY_CODE2", + "dataLength": "200", + "dataName": "CURRENCY_NAME", "dataNullable": true, - "dataPrecision": "NaN", - "dataPrimaryKey": false, - "dataScale": "NaN", - "dataType": "CHAR", - "dataUnique": true, - "isCalculatedProperty": false, - "isRequiredProperty": false, - "name": "Code2", + "dataType": "VARCHAR", + "name": "Name", "widgetIsMajor": true, - "widgetLength": "20", - "widgetSize": "fd-col-md--2 fd-col--3", + "widgetLength": "200", + "widgetSize": "", "widgetType": "TEXTBOX", "dataNotNull": false, - "widgetLabel": "Code2", + "dataAutoIncrement": false, + "dataPrimaryKey": false, + "dataUnique": false, + "isRequiredProperty": false, + "isCalculatedProperty": false, + "widgetLabel": "Name", "widgetDropdownUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, - "maxLength": 2, + "maxLength": 200, "inputRule": "" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": false, - "dataLength": "3", - "dataName": "COUNTRY_CODE3", + "dataLength": "20", + "dataName": "CURRENCY_NUMERIC", "dataNullable": true, - "dataPrecision": "NaN", - "dataPrimaryKey": false, - "dataScale": "NaN", - "dataType": "CHAR", - "dataUnique": true, - "isCalculatedProperty": false, - "isRequiredProperty": false, - "name": "Code3", + "dataType": "VARCHAR", + "name": "Numeric", "widgetIsMajor": true, "widgetLength": "20", - "widgetSize": "fd-col-md--2 fd-col--3", + "widgetSize": "", "widgetType": "TEXTBOX", "dataNotNull": false, - "widgetLabel": "Code3", + "dataAutoIncrement": false, + "dataPrimaryKey": false, + "dataUnique": false, + "isRequiredProperty": false, + "isCalculatedProperty": false, + "widgetLabel": "Numeric", "widgetDropdownUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, - "maxLength": 3, + "maxLength": 20, "inputRule": "" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": false, - "dataLength": "3", - "dataName": "COUNTRY_NUMERIC", + "dataName": "CURRENCY_ROUNDING", "dataNullable": true, - "dataPrecision": "NaN", + "dataType": "INTEGER", + "name": "Rounding", + "widgetIsMajor": true, + "widgetLength": "20", + "widgetSize": "", + "widgetType": "TEXTBOX", + "dataNotNull": false, + "dataAutoIncrement": false, "dataPrimaryKey": false, - "dataScale": "NaN", - "dataType": "CHAR", - "dataUnique": true, + "dataUnique": false, + "isRequiredProperty": false, "isCalculatedProperty": false, + "widgetLabel": "Rounding", + "widgetDropdownUrl": "", + "dataTypeJava": "int", + "dataTypeTypescript": "number", + "inputRule": "" + }, + { + "dataName": "CURRENCY_BASE", + "dataNullable": true, + "dataType": "BOOLEAN", + "name": "Base", + "widgetIsMajor": true, + "widgetLength": "20", + "widgetSize": "", + "widgetType": "TEXTBOX", + "dataNotNull": false, + "dataAutoIncrement": false, + "dataPrimaryKey": false, + "dataUnique": false, "isRequiredProperty": false, - "name": "Numeric", + "isCalculatedProperty": false, + "widgetLabel": "Base", + "widgetDropdownUrl": "", + "dataTypeJava": "boolean", + "dataTypeTypescript": "boolean", + "inputRule": "" + }, + { + "dataName": "CURRENCY_RATE", + "dataNullable": true, + "dataType": "DOUBLE", + "name": "Rate", "widgetIsMajor": true, "widgetLength": "20", - "widgetSize": "fd-col-md--2 fd-col--3", + "widgetSize": "", "widgetType": "TEXTBOX", "dataNotNull": false, - "widgetLabel": "Numeric", + "dataAutoIncrement": false, + "dataPrimaryKey": false, + "dataUnique": false, + "isRequiredProperty": false, + "isCalculatedProperty": false, + "widgetLabel": "Rate", "widgetDropdownUrl": "", - "dataTypeJava": "string", - "dataTypeTypescript": "string", - "minLength": 0, - "maxLength": 3, + "dataTypeJava": "double", + "dataTypeTypescript": "number", "inputRule": "" } ], - "caption": "Manage entity Country", - "dataCount": "SELECT COUNT(*) AS COUNT FROM \"PI_COUNTRY\"", - "dataName": "COUNTRY", + "caption": "Manage entity Currency", + "dataCount": "SELECT COUNT(*) AS COUNT FROM \"CURRENCY\"", + "dataName": "CURRENCY", "dataQuery": "", - "disableGeneration": "false", + "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "layoutType": "MANAGE", "menuIndex": "100", - "menuKey": "country", - "menuLabel": "Country", - "name": "Country", + "menuKey": "currency", + "menuLabel": "Currency", + "name": "Currency", "navigationPath": "/Home", - "perspectiveIcon": "/services/web/resources/unicons/globe.svg", - "perspectiveName": "Countries", + "perspectiveIcon": "/services/web/resources/unicons/copy.svg", + "perspectiveLabel": "Entities", + "perspectiveName": "entities", "perspectiveOrder": "100", "perspectiveRole": "", - "projectionReferencedEntity": "Country", - "projectionReferencedModel": "/workspace/codbex-countries/codbex-countries.model", - "title": "Country", - "tooltip": "Country", - "type": "PROJECTION", + "title": "Currency", + "tooltip": "Currency", + "type": "PRIMARY", + "dataSource": "DefaultDB", "referencedProjections": [], "primaryKeys": [ "Id" @@ -1406,23 +1243,20 @@ { "properties": [ { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", "dataAutoIncrement": true, - "dataLength": "0", - "dataName": "TRANSACTIONS_ID", + "dataName": "COUNTRY_ID", "dataNullable": true, "dataPrimaryKey": true, "dataType": "INTEGER", - "dataUnique": false, - "isCalculatedProperty": false, - "isRequiredProperty": false, "name": "Id", "widgetIsMajor": true, "widgetLength": "20", "widgetSize": "", "widgetType": "TEXTBOX", "dataNotNull": false, + "dataUnique": false, + "isRequiredProperty": false, + "isCalculatedProperty": false, "widgetLabel": "Id", "widgetDropdownUrl": "", "dataTypeJava": "int", @@ -1430,149 +1264,128 @@ "inputRule": "" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": false, - "dataLength": "0", - "dataName": "TRANSACTIONS_RECIEVER", + "dataLength": "255", + "dataName": "COUNTRY_NAME", "dataNullable": true, - "dataPrecision": "NaN", - "dataPrimaryKey": false, - "dataScale": "NaN", - "dataType": "INTEGER", - "dataUnique": false, - "isCalculatedProperty": false, - "isRequiredProperty": false, - "name": "Reciever", - "widgetDropDownKey": "Id", - "widgetDropDownValue": "IBAN", + "dataType": "VARCHAR", + "name": "Name", "widgetIsMajor": true, - "widgetLength": "20", + "widgetLength": "255", "widgetSize": "", - "widgetType": "DROPDOWN", - "relationshipName": "Transactions_BankAccounts", - "relationshipEntityName": "BankAccounts", - "relationshipEntityPerspectiveName": "bankAccount", + "widgetType": "TEXTBOX", "dataNotNull": false, - "widgetLabel": "Reciever", - "widgetDropdownUrl": "\"/services/ts/dirigible-bank-server/gen/api/bankAccount/BankAccountsService.ts\"", - "dataTypeJava": "int", - "dataTypeTypescript": "number", - "inputRule": "" - }, - { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", "dataAutoIncrement": false, - "dataLength": "0", - "dataName": "TRANSACTIONS_SENDER", - "dataNullable": true, - "dataPrecision": "NaN", "dataPrimaryKey": false, - "dataScale": "NaN", - "dataType": "INTEGER", "dataUnique": false, - "isCalculatedProperty": false, "isRequiredProperty": false, - "name": "Sender", - "widgetDropDownKey": "Id", - "widgetDropDownValue": "IBAN", + "isCalculatedProperty": false, + "widgetLabel": "Name", + "widgetDropdownUrl": "", + "dataTypeJava": "string", + "dataTypeTypescript": "string", + "minLength": 0, + "maxLength": 255, + "inputRule": "" + }, + { + "dataLength": "2", + "dataName": "COUNTRY_CODE2", + "dataNullable": true, + "dataType": "CHAR", + "name": "Code2", "widgetIsMajor": true, "widgetLength": "20", "widgetSize": "", - "widgetType": "DROPDOWN", - "relationshipName": "Transactions_BankAccounts", - "relationshipEntityName": "BankAccounts", - "relationshipEntityPerspectiveName": "bankAccount", + "widgetType": "TEXTBOX", "dataNotNull": false, - "widgetLabel": "Sender", - "widgetDropdownUrl": "\"/services/ts/dirigible-bank-server/gen/api/bankAccount/BankAccountsService.ts\"", - "dataTypeJava": "int", - "dataTypeTypescript": "number", - "inputRule": "" - }, - { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", "dataAutoIncrement": false, - "dataLength": "20", - "dataName": "TRANSACTIONS_AMOUNT", - "dataNullable": true, - "dataPrecision": "NaN", "dataPrimaryKey": false, - "dataScale": "NaN", - "dataType": "DOUBLE", "dataUnique": false, + "isRequiredProperty": false, "isCalculatedProperty": false, - "isRequiredProperty": true, - "name": "Amount", + "widgetLabel": "Code2", + "widgetDropdownUrl": "", + "dataTypeJava": "string", + "dataTypeTypescript": "string", + "minLength": 0, + "maxLength": 2, + "inputRule": "" + }, + { + "dataLength": "3", + "dataName": "COUNTRY_CODE3", + "dataNullable": true, + "dataType": "VARCHAR", + "name": "Code3", "widgetIsMajor": true, "widgetLength": "20", "widgetSize": "", "widgetType": "TEXTBOX", "dataNotNull": false, - "widgetLabel": "Amount", + "dataAutoIncrement": false, + "dataPrimaryKey": false, + "dataUnique": false, + "isRequiredProperty": false, + "isCalculatedProperty": false, + "widgetLabel": "Code3", "widgetDropdownUrl": "", - "dataTypeJava": "double", - "dataTypeTypescript": "number", + "dataTypeJava": "string", + "dataTypeTypescript": "string", + "minLength": 0, + "maxLength": 3, "inputRule": "" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": false, - "dataLength": "20", - "dataName": "TRANSACTIONS_DATE", + "dataLength": "3", + "dataName": "COUNTRY_NUMERIC", "dataNullable": true, - "dataPrecision": "NaN", - "dataPrimaryKey": false, - "dataScale": "NaN", - "dataType": "DATE", - "dataUnique": false, - "isCalculatedProperty": false, - "isRequiredProperty": false, - "name": "Date", + "dataType": "CHAR", + "name": "Numeric", "widgetIsMajor": true, "widgetLength": "20", "widgetSize": "", "widgetType": "TEXTBOX", "dataNotNull": false, - "widgetLabel": "Date", + "dataAutoIncrement": false, + "dataPrimaryKey": false, + "dataUnique": false, + "isRequiredProperty": false, + "isCalculatedProperty": false, + "widgetLabel": "Numeric", "widgetDropdownUrl": "", - "dataTypeJava": "date", - "dataTypeTypescript": "Date", - "isDateType": true, + "dataTypeJava": "string", + "dataTypeTypescript": "string", + "minLength": 0, + "maxLength": 3, "inputRule": "" } ], - "caption": "Manage entity Transactions", - "dataCount": "SELECT COUNT(*) AS COUNT FROM \"PI_TRANSACTIONS\"", - "dataName": "TRANSACTIONS", + "caption": "Manage entity Country", + "dataCount": "SELECT COUNT(*) AS COUNT FROM \"COUNTRY\"", + "dataName": "COUNTRY", "dataQuery": "", - "disableGeneration": "false", - "feedPassword": "YWRtaW4=", - "feedUsername": "YWRtaW4=", + "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "layoutType": "MANAGE", "menuIndex": "100", - "menuKey": "transactions", - "menuLabel": "Transactions", - "name": "Transactions", + "menuKey": "country", + "menuLabel": "Country", + "name": "Country", "navigationPath": "/Home", - "perspectiveIcon": "/services/web/resources/unicons/bill.svg", - "perspectiveName": "transactions", - "perspectiveOrder": "90", + "perspectiveIcon": "/services/web/resources/unicons/copy.svg", + "perspectiveLabel": "Entities", + "perspectiveName": "entities", + "perspectiveOrder": "100", "perspectiveRole": "", - "title": "Transactions", - "tooltip": "Transactions", + "title": "Country", + "tooltip": "Country", "type": "PRIMARY", + "dataSource": "DefaultDB", "referencedProjections": [], "primaryKeys": [ "Id" ], - "primaryKeysString": "Id", - "hasDropdowns": true, - "hasDates": true + "primaryKeysString": "Id" } ] } \ No newline at end of file diff --git a/dirigible-bank-server/edm.model b/dirigible-bank-server/dirigible-bank-server.model similarity index 57% rename from dirigible-bank-server/edm.model rename to dirigible-bank-server/dirigible-bank-server.model index 4a0ddcc..e932d6d 100644 --- a/dirigible-bank-server/edm.model +++ b/dirigible-bank-server/dirigible-bank-server.model @@ -4,17 +4,11 @@ { "properties": [ { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", "dataAutoIncrement": "true", - "dataLength": "0", "dataName": "USERS_ID", "dataNullable": "true", "dataPrimaryKey": "true", "dataType": "INTEGER", - "dataUnique": "false", - "isCalculatedProperty": "false", - "isRequiredProperty": "false", "name": "Id", "widgetIsMajor": "true", "widgetLength": "20", @@ -22,18 +16,10 @@ "widgetType": "TEXTBOX" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": "false", "dataLength": "255", "dataName": "USERS_FNAME", "dataNullable": "false", - "dataPrecision": "NaN", - "dataPrimaryKey": "false", - "dataScale": "NaN", "dataType": "VARCHAR", - "dataUnique": "false", - "isCalculatedProperty": "false", "isRequiredProperty": "true", "name": "FName", "widgetIsMajor": "true", @@ -42,18 +28,10 @@ "widgetType": "TEXTBOX" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": "false", "dataLength": "255", "dataName": "USERS_LNAME", "dataNullable": "false", - "dataPrecision": "NaN", - "dataPrimaryKey": "false", - "dataScale": "NaN", "dataType": "VARCHAR", - "dataUnique": "false", - "isCalculatedProperty": "false", "isRequiredProperty": "true", "name": "LName", "widgetIsMajor": "true", @@ -62,18 +40,11 @@ "widgetType": "TEXTBOX" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": "false", "dataLength": "700", "dataName": "USERS_EMAIL", "dataNullable": "false", - "dataPrecision": "NaN", - "dataPrimaryKey": "false", - "dataScale": "NaN", "dataType": "VARCHAR", "dataUnique": "true", - "isCalculatedProperty": "false", "isRequiredProperty": "true", "name": "Email", "widgetIsMajor": "true", @@ -82,18 +53,10 @@ "widgetType": "EMAIL" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": "false", "dataLength": "255", "dataName": "USERS_PASSWORD", "dataNullable": "false", - "dataPrecision": "NaN", - "dataPrimaryKey": "false", - "dataScale": "NaN", "dataType": "VARCHAR", - "dataUnique": "false", - "isCalculatedProperty": "false", "isRequiredProperty": "true", "name": "Password", "widgetIsMajor": "true", @@ -102,19 +65,11 @@ "widgetType": "TEXTBOX" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": "false", "dataLength": "20", "dataName": "USERS_PHONE", "dataNullable": "false", - "dataPrecision": "NaN", - "dataPrimaryKey": "false", - "dataScale": "NaN", "dataType": "VARCHAR", "dataUnique": "true", - "isCalculatedProperty": "false", - "isRequiredProperty": "false", "name": "Phone", "widgetIsMajor": "true", "widgetLength": "20", @@ -122,19 +77,22 @@ "widgetType": "TEL" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": "false", - "dataLength": "0", + "dataLength": "900", + "dataName": "USERS_USERNAME", + "dataNullable": "false", + "dataType": "VARCHAR", + "dataUnique": "true", + "isRequiredProperty": "true", + "name": "Username", + "widgetIsMajor": "true", + "widgetLength": "20", + "widgetSize": "", + "widgetType": "TEXTBOX" + }, + { "dataName": "USERS_COUNTRY", "dataNullable": "true", - "dataPrecision": "NaN", - "dataPrimaryKey": "false", - "dataScale": "NaN", "dataType": "INTEGER", - "dataUnique": "false", - "isCalculatedProperty": "false", - "isRequiredProperty": "false", "name": "Country", "widgetDropDownKey": "Id", "widgetDropDownValue": "Name", @@ -144,44 +102,26 @@ "widgetType": "DROPDOWN", "relationshipName": "Users_Country", "relationshipEntityName": "Country", - "relationshipEntityPerspectiveName": "Countries" - }, - { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": "false", - "dataLength": "900", - "dataName": "USERS_USERNAME", - "dataNullable": "false", - "dataPrecision": "NaN", - "dataPrimaryKey": "false", - "dataScale": "NaN", - "dataType": "VARCHAR", - "dataUnique": "true", - "isCalculatedProperty": "false", - "isRequiredProperty": "true", - "name": "Username", - "widgetIsMajor": "true", - "widgetLength": "20", - "widgetSize": "", - "widgetType": "TEXTBOX" + "relationshipEntityPerspectiveName": "Settings", + "relationshipEntityPerspectiveLabel": "Entities" } ], "caption": "Manage entity Users", "dataCount": "SELECT COUNT(*) AS COUNT FROM \"${tablePrefix}USERS\"", "dataName": "USERS", "dataQuery": "", - "disableGeneration": "false", "feedPassword": "YWRtaW4=", "feedUsername": "YWRtaW4=", + "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", - "layoutType": "MANAGE", + "layoutType": "MANAGE_MASTER", "menuIndex": "100", "menuKey": "users", "menuLabel": "Users", "name": "Users", "navigationPath": "/Home", "perspectiveIcon": "/services/web/resources/unicons/user-circle.svg", + "perspectiveLabel": "Users", "perspectiveName": "users", "perspectiveOrder": "40", "perspectiveRole": "", @@ -192,17 +132,11 @@ { "properties": [ { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", "dataAutoIncrement": "true", - "dataLength": "0", "dataName": "BANKACCOUNTS_ID", "dataNullable": "true", "dataPrimaryKey": "true", "dataType": "INTEGER", - "dataUnique": "false", - "isCalculatedProperty": "false", - "isRequiredProperty": "false", "name": "Id", "widgetIsMajor": "true", "widgetLength": "20", @@ -210,18 +144,9 @@ "widgetType": "TEXTBOX" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": "false", - "dataLength": "NaN", "dataName": "BANKACCOUNTS_AMOUNT", "dataNullable": "false", - "dataPrecision": "NaN", - "dataPrimaryKey": "false", - "dataScale": "NaN", "dataType": "DOUBLE", - "dataUnique": "false", - "isCalculatedProperty": "false", "isRequiredProperty": "true", "name": "Amount", "widgetIsMajor": "true", @@ -230,18 +155,11 @@ "widgetType": "NUMBER" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": "false", "dataLength": "20", "dataName": "BANKACCOUNTS_PROPERTY3", "dataNullable": "false", - "dataPrecision": "NaN", - "dataPrimaryKey": "false", - "dataScale": "NaN", "dataType": "VARCHAR", "dataUnique": "true", - "isCalculatedProperty": "false", "isRequiredProperty": "true", "name": "IBAN", "widgetIsMajor": "true", @@ -250,19 +168,9 @@ "widgetType": "TEXTBOX" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": "false", - "dataLength": "0", "dataName": "BANKACCOUNTS_USERS", "dataNullable": "true", - "dataPrecision": "NaN", - "dataPrimaryKey": "false", - "dataScale": "NaN", "dataType": "INTEGER", - "dataUnique": "false", - "isCalculatedProperty": "false", - "isRequiredProperty": "false", "name": "Users", "widgetDropDownKey": "Id", "widgetDropDownValue": "FName", @@ -272,22 +180,13 @@ "widgetType": "DROPDOWN", "relationshipName": "BankAccounts_Users", "relationshipEntityName": "Users", - "relationshipEntityPerspectiveName": "users" + "relationshipEntityPerspectiveName": "users", + "relationshipEntityPerspectiveLabel": "Entities" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": "false", - "dataLength": "0", "dataName": "BANKACCOUNTS_BANKACCOUNTTYPE", "dataNullable": "true", - "dataPrecision": "NaN", - "dataPrimaryKey": "false", - "dataScale": "NaN", "dataType": "INTEGER", - "dataUnique": "false", - "isCalculatedProperty": "false", - "isRequiredProperty": "false", "name": "BankAccountType", "widgetDropDownKey": "Id", "widgetDropDownValue": "Name", @@ -297,22 +196,13 @@ "widgetType": "DROPDOWN", "relationshipName": "BankAccounts_BankAccountType", "relationshipEntityName": "BankAccountType", - "relationshipEntityPerspectiveName": "entities" + "relationshipEntityPerspectiveName": "Settings", + "relationshipEntityPerspectiveLabel": "Entities" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": "false", - "dataLength": "0", "dataName": "BANKACCOUNTS_BANKACCOUNTSTATUS", "dataNullable": "true", - "dataPrecision": "NaN", - "dataPrimaryKey": "false", - "dataScale": "NaN", "dataType": "INTEGER", - "dataUnique": "false", - "isCalculatedProperty": "false", - "isRequiredProperty": "false", "name": "BankAccountStatus", "widgetDropDownKey": "Id", "widgetDropDownValue": "Name", @@ -322,22 +212,13 @@ "widgetType": "DROPDOWN", "relationshipName": "BankAccounts_BankAccountStatus", "relationshipEntityName": "BankAccountStatus", - "relationshipEntityPerspectiveName": "entities" + "relationshipEntityPerspectiveName": "Settings", + "relationshipEntityPerspectiveLabel": "Entities" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": "false", - "dataLength": "20", "dataName": "BANKACCOUNTS_CREATIONDATE", "dataNullable": "false", - "dataPrecision": "NaN", - "dataPrimaryKey": "false", - "dataScale": "NaN", "dataType": "DATE", - "dataUnique": "false", - "isCalculatedProperty": "false", - "isRequiredProperty": "false", "name": "CreationDate", "widgetIsMajor": "true", "widgetLength": "20", @@ -345,46 +226,39 @@ "widgetType": "DATE" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": "false", - "dataLength": "0", "dataName": "BANKACCOUNTS_CURRENCY", "dataNullable": "true", - "dataPrecision": "NaN", - "dataPrimaryKey": "false", - "dataScale": "NaN", "dataType": "INTEGER", - "dataUnique": "false", - "isCalculatedProperty": "false", - "isRequiredProperty": "false", "name": "Currency", + "widgetDropDownDependsOn": "", "widgetDropDownKey": "Id", - "widgetDropDownValue": "Name", + "widgetDropDownValue": "Code", "widgetIsMajor": "true", "widgetLength": "20", "widgetSize": "", "widgetType": "DROPDOWN", "relationshipName": "BankAccounts_Currency", "relationshipEntityName": "Currency", - "relationshipEntityPerspectiveName": "Currencies" + "relationshipEntityPerspectiveName": "Settings", + "relationshipEntityPerspectiveLabel": "Entities" } ], "caption": "Manage entity BankAccounts", "dataCount": "SELECT COUNT(*) AS COUNT FROM \"${tablePrefix}BANKACCOUNTS\"", "dataName": "BANKACCOUNTS", "dataQuery": "", - "disableGeneration": "false", "feedPassword": "YWRtaW4=", "feedUsername": "YWRtaW4=", + "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", - "layoutType": "MANAGE", + "layoutType": "MANAGE_MASTER", "menuIndex": "100", "menuKey": "bankaccounts", "menuLabel": "BankAccounts", "name": "BankAccounts", "navigationPath": "/Home", "perspectiveIcon": "/services/web/resources/unicons/chart-line.svg", + "perspectiveLabel": "Bank Accounts", "perspectiveName": "bankAccount", "perspectiveOrder": "60", "perspectiveRole": "", @@ -395,17 +269,11 @@ { "properties": [ { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", "dataAutoIncrement": "true", - "dataLength": "0", "dataName": "CARDS_ID", "dataNullable": "true", "dataPrimaryKey": "true", "dataType": "INTEGER", - "dataUnique": "false", - "isCalculatedProperty": "false", - "isRequiredProperty": "false", "name": "Id", "widgetIsMajor": "true", "widgetLength": "20", @@ -413,43 +281,11 @@ "widgetType": "TEXTBOX" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": "false", - "dataLength": "0", - "dataName": "CARDS_USERS", - "dataNullable": "true", - "dataPrecision": "NaN", - "dataPrimaryKey": "false", - "dataScale": "NaN", - "dataType": "INTEGER", - "dataUnique": "false", - "isCalculatedProperty": "false", - "isRequiredProperty": "true", - "name": "Users", - "widgetDropDownKey": "Id", - "widgetDropDownValue": "FName", - "widgetIsMajor": "true", - "widgetLength": "20", - "widgetSize": "", - "widgetType": "DROPDOWN", - "relationshipName": "Cards_Users", - "relationshipEntityName": "Users", - "relationshipEntityPerspectiveName": "users" - }, - { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": "false", "dataLength": "255", "dataName": "CARDS_CARDNUMBER", "dataNullable": "false", - "dataPrecision": "NaN", - "dataPrimaryKey": "false", - "dataScale": "NaN", "dataType": "VARCHAR", "dataUnique": "true", - "isCalculatedProperty": "false", "isRequiredProperty": "true", "name": "CardNumber", "widgetIsMajor": "true", @@ -458,18 +294,9 @@ "widgetType": "TEXTBOX" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": "false", - "dataLength": "20", "dataName": "CARDS_EXPIRATIONDATE", "dataNullable": "true", - "dataPrecision": "NaN", - "dataPrimaryKey": "false", - "dataScale": "NaN", "dataType": "DATE", - "dataUnique": "false", - "isCalculatedProperty": "false", "isRequiredProperty": "true", "name": "ExpirationDate", "widgetIsMajor": "true", @@ -478,18 +305,9 @@ "widgetType": "DATE" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": "false", - "dataLength": "0", "dataName": "CARDS_CARDTYPE", "dataNullable": "false", - "dataPrecision": "NaN", - "dataPrimaryKey": "false", - "dataScale": "NaN", "dataType": "INTEGER", - "dataUnique": "false", - "isCalculatedProperty": "false", "isRequiredProperty": "true", "name": "CardType", "widgetDropDownKey": "Id", @@ -500,24 +318,40 @@ "widgetType": "DROPDOWN", "relationshipName": "Cards_CardType", "relationshipEntityName": "CardType", - "relationshipEntityPerspectiveName": "entities" + "relationshipEntityPerspectiveName": "Settings", + "relationshipEntityPerspectiveLabel": "Entities" + }, + { + "dataName": "CARDS_BANKACCOUNTS", + "dataNullable": "true", + "dataType": "INTEGER", + "name": "BankAccounts", + "widgetIsMajor": "true", + "widgetLength": "20", + "widgetSize": "", + "widgetType": "TEXTBOX", + "relationshipName": "Cards_BankAccounts", + "relationshipEntityName": "BankAccounts", + "relationshipEntityPerspectiveName": "bankAccount", + "relationshipEntityPerspectiveLabel": "Entities" } ], "caption": "Manage entity Cards", "dataCount": "SELECT COUNT(*) AS COUNT FROM \"${tablePrefix}CARDS\"", "dataName": "CARDS", "dataQuery": "", - "disableGeneration": "false", "feedPassword": "YWRtaW4=", "feedUsername": "YWRtaW4=", + "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", - "layoutType": "MANAGE", + "layoutType": "MANAGE_MASTER", "menuIndex": "100", "menuKey": "cards", "menuLabel": "Cards", "name": "Cards", "navigationPath": "/Home", "perspectiveIcon": "/services/web/resources/unicons/credit-card.svg", + "perspectiveLabel": "Cards", "perspectiveName": "cards", "perspectiveOrder": "80", "perspectiveRole": "", @@ -528,17 +362,11 @@ { "properties": [ { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", "dataAutoIncrement": "true", - "dataLength": "0", "dataName": "BANKACCOUNTTYPE_ID", "dataNullable": "true", "dataPrimaryKey": "true", "dataType": "INTEGER", - "dataUnique": "false", - "isCalculatedProperty": "false", - "isRequiredProperty": "false", "name": "Id", "widgetIsMajor": "true", "widgetLength": "20", @@ -546,19 +374,10 @@ "widgetType": "TEXTBOX" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": "false", "dataLength": "255", "dataName": "BANKACCOUNTTYPE_NAME", "dataNullable": "false", - "dataPrecision": "NaN", - "dataPrimaryKey": "false", - "dataScale": "NaN", "dataType": "VARCHAR", - "dataUnique": "false", - "isCalculatedProperty": "false", - "isRequiredProperty": "false", "name": "Name", "widgetIsMajor": "true", "widgetLength": "20", @@ -570,7 +389,9 @@ "dataCount": "SELECT COUNT(*) AS COUNT FROM \"${tablePrefix}BANKACCOUNTTYPE\"", "dataName": "BANKACCOUNTTYPE", "dataQuery": "", - "disableGeneration": "false", + "feedPassword": "YWRtaW4=", + "feedUsername": "YWRtaW4=", + "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "layoutType": "MANAGE", "menuIndex": "100", @@ -578,28 +399,23 @@ "menuLabel": "BankAccountType", "name": "BankAccountType", "navigationPath": "/Home", - "perspectiveIcon": "/services/web/resources/unicons/copy.svg", - "perspectiveName": "entities", - "perspectiveOrder": "100", + "perspectiveIcon": "/services/web/resources/unicons/wrench.svg", + "perspectiveLabel": "Settings", + "perspectiveName": "Settings", + "perspectiveOrder": "110", "perspectiveRole": "", "title": "BankAccountType", "tooltip": "BankAccountType", - "type": "PRIMARY" + "type": "SETTING" }, { "properties": [ { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", "dataAutoIncrement": "true", - "dataLength": "0", "dataName": "BANKACCOUNTSTATUS_ID", "dataNullable": "true", "dataPrimaryKey": "true", "dataType": "INTEGER", - "dataUnique": "false", - "isCalculatedProperty": "false", - "isRequiredProperty": "false", "name": "Id", "widgetIsMajor": "true", "widgetLength": "20", @@ -607,18 +423,10 @@ "widgetType": "TEXTBOX" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": "false", "dataLength": "255", "dataName": "BANKACCOUNTSTATUS_NAME", "dataNullable": "false", - "dataPrecision": "NaN", - "dataPrimaryKey": "false", - "dataScale": "NaN", "dataType": "VARCHAR", - "dataUnique": "false", - "isCalculatedProperty": "false", "isRequiredProperty": "true", "name": "Name", "widgetIsMajor": "true", @@ -631,7 +439,9 @@ "dataCount": "SELECT COUNT(*) AS COUNT FROM \"${tablePrefix}BANKACCOUNTSTATUS\"", "dataName": "BANKACCOUNTSTATUS", "dataQuery": "", - "disableGeneration": "false", + "feedPassword": "YWRtaW4=", + "feedUsername": "YWRtaW4=", + "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "layoutType": "MANAGE", "menuIndex": "100", @@ -639,28 +449,23 @@ "menuLabel": "BankAccountStatus", "name": "BankAccountStatus", "navigationPath": "/Home", - "perspectiveIcon": "/services/web/resources/unicons/copy.svg", - "perspectiveName": "entities", - "perspectiveOrder": "100", + "perspectiveIcon": "/services/web/resources/unicons/wrench.svg", + "perspectiveLabel": "Settings", + "perspectiveName": "Settings", + "perspectiveOrder": "110", "perspectiveRole": "", "title": "BankAccountStatus", "tooltip": "BankAccountStatus", - "type": "PRIMARY" + "type": "SETTING" }, { "properties": [ { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", "dataAutoIncrement": "true", - "dataLength": "0", "dataName": "CARDTYPE_ID", "dataNullable": "true", "dataPrimaryKey": "true", "dataType": "INTEGER", - "dataUnique": "false", - "isCalculatedProperty": "false", - "isRequiredProperty": "false", "name": "Id", "widgetIsMajor": "true", "widgetLength": "20", @@ -668,19 +473,10 @@ "widgetType": "TEXTBOX" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": "false", "dataLength": "255", "dataName": "CARDTYPE_NAME", "dataNullable": "true", - "dataPrecision": "NaN", - "dataPrimaryKey": "false", - "dataScale": "NaN", "dataType": "VARCHAR", - "dataUnique": "false", - "isCalculatedProperty": "false", - "isRequiredProperty": "false", "name": "Name", "widgetIsMajor": "true", "widgetLength": "20", @@ -692,7 +488,9 @@ "dataCount": "SELECT COUNT(*) AS COUNT FROM \"${tablePrefix}CARDTYPE\"", "dataName": "CARDTYPE", "dataQuery": "", - "disableGeneration": "false", + "feedPassword": "YWRtaW4=", + "feedUsername": "YWRtaW4=", + "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "layoutType": "MANAGE", "menuIndex": "100", @@ -700,28 +498,114 @@ "menuLabel": "CardType", "name": "CardType", "navigationPath": "/Home", - "perspectiveIcon": "/services/web/resources/unicons/copy.svg", - "perspectiveName": "entities", - "perspectiveOrder": "100", + "perspectiveIcon": "/services/web/resources/unicons/wrench.svg", + "perspectiveLabel": "Settings", + "perspectiveName": "Settings", + "perspectiveOrder": "110", "perspectiveRole": "", "title": "CardType", "tooltip": "CardType", + "type": "SETTING" + }, + { + "properties": [ + { + "dataAutoIncrement": "true", + "dataName": "TRANSACTIONS_ID", + "dataNullable": "true", + "dataPrimaryKey": "true", + "dataType": "INTEGER", + "name": "Id", + "widgetIsMajor": "true", + "widgetLength": "20", + "widgetSize": "", + "widgetType": "TEXTBOX" + }, + { + "dataName": "TRANSACTIONS_RECIEVER", + "dataNullable": "true", + "dataType": "INTEGER", + "name": "Reciever", + "widgetDropDownKey": "Id", + "widgetDropDownValue": "IBAN", + "widgetIsMajor": "true", + "widgetLength": "20", + "widgetSize": "", + "widgetType": "DROPDOWN", + "relationshipName": "Transactions_BankAccounts", + "relationshipEntityName": "BankAccounts", + "relationshipEntityPerspectiveName": "bankAccount", + "relationshipEntityPerspectiveLabel": "Entities" + }, + { + "dataName": "TRANSACTIONS_SENDER", + "dataNullable": "true", + "dataType": "INTEGER", + "name": "Sender", + "widgetDropDownKey": "Id", + "widgetDropDownValue": "IBAN", + "widgetIsMajor": "true", + "widgetLength": "20", + "widgetSize": "", + "widgetType": "DROPDOWN", + "relationshipName": "Transactions_BankAccounts", + "relationshipEntityName": "BankAccounts", + "relationshipEntityPerspectiveName": "bankAccount", + "relationshipEntityPerspectiveLabel": "Entities" + }, + { + "dataName": "TRANSACTIONS_AMOUNT", + "dataNullable": "true", + "dataType": "DOUBLE", + "isRequiredProperty": "true", + "name": "Amount", + "widgetIsMajor": "true", + "widgetLength": "20", + "widgetSize": "", + "widgetType": "TEXTBOX" + }, + { + "dataName": "TRANSACTIONS_DATE", + "dataNullable": "true", + "dataType": "DATE", + "name": "Date", + "widgetIsMajor": "true", + "widgetLength": "20", + "widgetSize": "", + "widgetType": "TEXTBOX" + } + ], + "caption": "Manage entity Transactions", + "dataCount": "SELECT COUNT(*) AS COUNT FROM \"${tablePrefix}TRANSACTIONS\"", + "dataName": "TRANSACTIONS", + "dataQuery": "", + "feedPassword": "YWRtaW4=", + "feedUsername": "YWRtaW4=", + "generateReport": "false", + "icon": "/services/web/resources/unicons/file.svg", + "layoutType": "MANAGE_MASTER", + "menuIndex": "100", + "menuKey": "transactions", + "menuLabel": "Transactions", + "name": "Transactions", + "navigationPath": "/Home", + "perspectiveIcon": "/services/web/resources/unicons/bill.svg", + "perspectiveLabel": "Transactions", + "perspectiveName": "transactions", + "perspectiveOrder": "90", + "perspectiveRole": "", + "title": "Transactions", + "tooltip": "Transactions", "type": "PRIMARY" }, { "properties": [ { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", "dataAutoIncrement": "true", - "dataLength": "0", "dataName": "CURRENCY_ID", "dataNullable": "true", "dataPrimaryKey": "true", "dataType": "INTEGER", - "dataUnique": "false", - "isCalculatedProperty": "false", - "isRequiredProperty": "false", "name": "Id", "widgetIsMajor": "true", "widgetLength": "20", @@ -729,131 +613,76 @@ "widgetType": "TEXTBOX" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": "false", - "dataLength": "3", + "dataLength": "20", "dataName": "CURRENCY_CODE", "dataNullable": "true", - "dataPrecision": "NaN", - "dataPrimaryKey": "false", - "dataScale": "NaN", "dataType": "VARCHAR", - "dataUnique": "false", - "isCalculatedProperty": "false", - "isRequiredProperty": "false", "name": "Code", "widgetIsMajor": "true", - "widgetLength": "3", - "widgetSize": "fd-col-md--2 fd-col--3", + "widgetLength": "20", + "widgetSize": "", "widgetType": "TEXTBOX" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": "false", - "dataLength": "127", + "dataLength": "200", "dataName": "CURRENCY_NAME", "dataNullable": "true", - "dataPrecision": "NaN", - "dataPrimaryKey": "false", - "dataScale": "NaN", "dataType": "VARCHAR", - "dataUnique": "false", - "isCalculatedProperty": "false", - "isRequiredProperty": "false", "name": "Name", "widgetIsMajor": "true", - "widgetLength": "20", - "widgetSize": "fd-col-md--6 fd-col--9", + "widgetLength": "200", + "widgetSize": "", "widgetType": "TEXTBOX" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": "false", - "dataLength": "3", + "dataLength": "20", "dataName": "CURRENCY_NUMERIC", "dataNullable": "true", - "dataPrecision": "NaN", - "dataPrimaryKey": "false", - "dataScale": "NaN", "dataType": "VARCHAR", - "dataUnique": "false", - "isCalculatedProperty": "false", - "isRequiredProperty": "false", "name": "Numeric", "widgetIsMajor": "true", - "widgetLength": "3", - "widgetSize": "fd-col-md--2 fd-col--3", + "widgetLength": "20", + "widgetSize": "", "widgetType": "TEXTBOX" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": "false", - "dataLength": "20", "dataName": "CURRENCY_ROUNDING", "dataNullable": "true", - "dataPrecision": "NaN", - "dataPrimaryKey": "false", - "dataScale": "NaN", "dataType": "INTEGER", - "dataUnique": "false", - "isCalculatedProperty": "false", - "isRequiredProperty": "false", "name": "Rounding", "widgetIsMajor": "true", "widgetLength": "20", - "widgetSize": "fd-col-md--2 fd-col--3", - "widgetType": "NUMBER" + "widgetSize": "", + "widgetType": "TEXTBOX" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": "false", - "dataLength": "20", "dataName": "CURRENCY_BASE", "dataNullable": "true", - "dataPrecision": "NaN", - "dataPrimaryKey": "false", - "dataScale": "NaN", "dataType": "BOOLEAN", - "dataUnique": "false", - "isCalculatedProperty": "false", - "isRequiredProperty": "false", "name": "Base", "widgetIsMajor": "true", "widgetLength": "20", "widgetSize": "", - "widgetType": "CHECKBOX" + "widgetType": "TEXTBOX" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": "false", - "dataLength": "20", "dataName": "CURRENCY_RATE", "dataNullable": "true", - "dataPrecision": "NaN", - "dataPrimaryKey": "false", - "dataScale": "NaN", "dataType": "DOUBLE", - "dataUnique": "false", - "isCalculatedProperty": "false", - "isRequiredProperty": "false", "name": "Rate", "widgetIsMajor": "true", "widgetLength": "20", - "widgetSize": "fd-col-md--4 fd-col--6", - "widgetType": "NUMBER" + "widgetSize": "", + "widgetType": "TEXTBOX" } ], "caption": "Manage entity Currency", "dataCount": "SELECT COUNT(*) AS COUNT FROM \"${tablePrefix}CURRENCY\"", "dataName": "CURRENCY", "dataQuery": "", - "disableGeneration": "false", + "feedPassword": "YWRtaW4=", + "feedUsername": "YWRtaW4=", + "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "layoutType": "MANAGE", "menuIndex": "100", @@ -861,30 +690,23 @@ "menuLabel": "Currency", "name": "Currency", "navigationPath": "/Home", - "perspectiveIcon": "/services/web/resources/unicons/dollar-alt.svg", - "perspectiveName": "Currencies", - "perspectiveOrder": "990", + "perspectiveIcon": "/services/web/resources/unicons/wrench.svg", + "perspectiveLabel": "Settings", + "perspectiveName": "Settings", + "perspectiveOrder": "110", "perspectiveRole": "", - "projectionReferencedEntity": "Currency", - "projectionReferencedModel": "/workspace/codbex-currencies/codbex-currencies.model", "title": "Currency", "tooltip": "Currency", - "type": "PROJECTION" + "type": "SETTING" }, { "properties": [ { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", "dataAutoIncrement": "true", - "dataLength": "0", "dataName": "COUNTRY_ID", "dataNullable": "true", "dataPrimaryKey": "true", "dataType": "INTEGER", - "dataUnique": "false", - "isCalculatedProperty": "false", - "isRequiredProperty": "false", "name": "Id", "widgetIsMajor": "true", "widgetLength": "20", @@ -892,83 +714,47 @@ "widgetType": "TEXTBOX" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": "false", "dataLength": "255", "dataName": "COUNTRY_NAME", "dataNullable": "true", - "dataPrecision": "NaN", - "dataPrimaryKey": "false", - "dataScale": "NaN", "dataType": "VARCHAR", - "dataUnique": "true", - "isCalculatedProperty": "false", - "isRequiredProperty": "false", "name": "Name", "widgetIsMajor": "true", - "widgetLength": "20", - "widgetSize": "fd-col-md--4 fd-col--6", + "widgetLength": "255", + "widgetSize": "", "widgetType": "TEXTBOX" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": "false", "dataLength": "2", "dataName": "COUNTRY_CODE2", "dataNullable": "true", - "dataPrecision": "NaN", - "dataPrimaryKey": "false", - "dataScale": "NaN", "dataType": "CHAR", - "dataUnique": "true", - "isCalculatedProperty": "false", - "isRequiredProperty": "false", "name": "Code2", "widgetIsMajor": "true", "widgetLength": "20", - "widgetSize": "fd-col-md--2 fd-col--3", + "widgetSize": "", "widgetType": "TEXTBOX" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": "false", "dataLength": "3", "dataName": "COUNTRY_CODE3", "dataNullable": "true", - "dataPrecision": "NaN", - "dataPrimaryKey": "false", - "dataScale": "NaN", - "dataType": "CHAR", - "dataUnique": "true", - "isCalculatedProperty": "false", - "isRequiredProperty": "false", + "dataType": "VARCHAR", "name": "Code3", "widgetIsMajor": "true", "widgetLength": "20", - "widgetSize": "fd-col-md--2 fd-col--3", + "widgetSize": "", "widgetType": "TEXTBOX" }, { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": "false", "dataLength": "3", "dataName": "COUNTRY_NUMERIC", "dataNullable": "true", - "dataPrecision": "NaN", - "dataPrimaryKey": "false", - "dataScale": "NaN", "dataType": "CHAR", - "dataUnique": "true", - "isCalculatedProperty": "false", - "isRequiredProperty": "false", "name": "Numeric", "widgetIsMajor": "true", "widgetLength": "20", - "widgetSize": "fd-col-md--2 fd-col--3", + "widgetSize": "", "widgetType": "TEXTBOX" } ], @@ -976,7 +762,9 @@ "dataCount": "SELECT COUNT(*) AS COUNT FROM \"${tablePrefix}COUNTRY\"", "dataName": "COUNTRY", "dataQuery": "", - "disableGeneration": "false", + "feedPassword": "YWRtaW4=", + "feedUsername": "YWRtaW4=", + "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "layoutType": "MANAGE", "menuIndex": "100", @@ -984,148 +772,14 @@ "menuLabel": "Country", "name": "Country", "navigationPath": "/Home", - "perspectiveIcon": "/services/web/resources/unicons/globe.svg", - "perspectiveName": "Countries", - "perspectiveOrder": "100", + "perspectiveIcon": "/services/web/resources/unicons/wrench.svg", + "perspectiveLabel": "Settings", + "perspectiveName": "Settings", + "perspectiveOrder": "110", "perspectiveRole": "", - "projectionReferencedEntity": "Country", - "projectionReferencedModel": "/workspace/codbex-countries/codbex-countries.model", "title": "Country", "tooltip": "Country", - "type": "PROJECTION" - }, - { - "properties": [ - { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": "true", - "dataLength": "0", - "dataName": "TRANSACTIONS_ID", - "dataNullable": "true", - "dataPrimaryKey": "true", - "dataType": "INTEGER", - "dataUnique": "false", - "isCalculatedProperty": "false", - "isRequiredProperty": "false", - "name": "Id", - "widgetIsMajor": "true", - "widgetLength": "20", - "widgetSize": "", - "widgetType": "TEXTBOX" - }, - { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": "false", - "dataLength": "0", - "dataName": "TRANSACTIONS_RECIEVER", - "dataNullable": "true", - "dataPrecision": "NaN", - "dataPrimaryKey": "false", - "dataScale": "NaN", - "dataType": "INTEGER", - "dataUnique": "false", - "isCalculatedProperty": "false", - "isRequiredProperty": "false", - "name": "Reciever", - "widgetDropDownKey": "Id", - "widgetDropDownValue": "IBAN", - "widgetIsMajor": "true", - "widgetLength": "20", - "widgetSize": "", - "widgetType": "DROPDOWN", - "relationshipName": "Transactions_BankAccounts", - "relationshipEntityName": "BankAccounts", - "relationshipEntityPerspectiveName": "bankAccount" - }, - { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": "false", - "dataLength": "0", - "dataName": "TRANSACTIONS_SENDER", - "dataNullable": "true", - "dataPrecision": "NaN", - "dataPrimaryKey": "false", - "dataScale": "NaN", - "dataType": "INTEGER", - "dataUnique": "false", - "isCalculatedProperty": "false", - "isRequiredProperty": "false", - "name": "Sender", - "widgetDropDownKey": "Id", - "widgetDropDownValue": "IBAN", - "widgetIsMajor": "true", - "widgetLength": "20", - "widgetSize": "", - "widgetType": "DROPDOWN", - "relationshipName": "Transactions_BankAccounts", - "relationshipEntityName": "BankAccounts", - "relationshipEntityPerspectiveName": "bankAccount" - }, - { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": "false", - "dataLength": "20", - "dataName": "TRANSACTIONS_AMOUNT", - "dataNullable": "true", - "dataPrecision": "NaN", - "dataPrimaryKey": "false", - "dataScale": "NaN", - "dataType": "DOUBLE", - "dataUnique": "false", - "isCalculatedProperty": "false", - "isRequiredProperty": "true", - "name": "Amount", - "widgetIsMajor": "true", - "widgetLength": "20", - "widgetSize": "", - "widgetType": "TEXTBOX" - }, - { - "calculatedPropertyExpressionCreate": "", - "calculatedPropertyExpressionUpdate": "", - "dataAutoIncrement": "false", - "dataLength": "20", - "dataName": "TRANSACTIONS_DATE", - "dataNullable": "true", - "dataPrecision": "NaN", - "dataPrimaryKey": "false", - "dataScale": "NaN", - "dataType": "DATE", - "dataUnique": "false", - "isCalculatedProperty": "false", - "isRequiredProperty": "false", - "name": "Date", - "widgetIsMajor": "true", - "widgetLength": "20", - "widgetSize": "", - "widgetType": "TEXTBOX" - } - ], - "caption": "Manage entity Transactions", - "dataCount": "SELECT COUNT(*) AS COUNT FROM \"${tablePrefix}TRANSACTIONS\"", - "dataName": "TRANSACTIONS", - "dataQuery": "", - "disableGeneration": "false", - "feedPassword": "YWRtaW4=", - "feedUsername": "YWRtaW4=", - "icon": "/services/web/resources/unicons/file.svg", - "layoutType": "MANAGE", - "menuIndex": "100", - "menuKey": "transactions", - "menuLabel": "Transactions", - "name": "Transactions", - "navigationPath": "/Home", - "perspectiveIcon": "/services/web/resources/unicons/bill.svg", - "perspectiveName": "transactions", - "perspectiveOrder": "90", - "perspectiveRole": "", - "title": "Transactions", - "tooltip": "Transactions", - "type": "PRIMARY" + "type": "SETTING" } ], "perspectives": [ @@ -1156,6 +810,13 @@ "icon": "/services/web/resources/unicons/bill.svg", "order": "90", "role": {} + }, + { + "name": "Settings", + "label": "Settings", + "icon": "/services/web/resources/unicons/wrench.svg", + "order": "110", + "role": {} } ], "navigations": [] diff --git a/dirigible-bank-server/edm.edm b/dirigible-bank-server/edm.edm deleted file mode 100644 index 9d8b07f..0000000 --- a/dirigible-bank-server/edm.edm +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - users/services/web/resources/unicons/user-circle.svg40 - bankAccount/services/web/resources/unicons/chart-line.svg60 - cards/services/web/resources/unicons/credit-card.svg80 - transactions/services/web/resources/unicons/bill.svg90 - - - - - \ No newline at end of file diff --git a/dirigible-bank-server/gen/dao/Countries/Country.extensionpoint b/dirigible-bank-server/gen/dao/Countries/Country.extensionpoint deleted file mode 100644 index dba2946..0000000 --- a/dirigible-bank-server/gen/dao/Countries/Country.extensionpoint +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "dirigible-bank-server-Countries-Country", - "description": "Extension Point for the dirigible-bank-server-Countries-Country entity" -} \ No newline at end of file diff --git a/dirigible-bank-server/gen/dao/Currencies/Currency.extensionpoint b/dirigible-bank-server/gen/dao/Currencies/Currency.extensionpoint deleted file mode 100644 index eac3a71..0000000 --- a/dirigible-bank-server/gen/dao/Currencies/Currency.extensionpoint +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "dirigible-bank-server-Currencies-Currency", - "description": "Extension Point for the dirigible-bank-server-Currencies-Currency entity" -} \ No newline at end of file diff --git a/dirigible-bank-server/gen/api/bankAccount/BankAccountsService.ts b/dirigible-bank-server/gen/dirigible-bank-server/api/bankAccount/BankAccountsService.ts similarity index 97% rename from dirigible-bank-server/gen/api/bankAccount/BankAccountsService.ts rename to dirigible-bank-server/gen/dirigible-bank-server/api/bankAccount/BankAccountsService.ts index f37cdf8..3d19376 100644 --- a/dirigible-bank-server/gen/api/bankAccount/BankAccountsService.ts +++ b/dirigible-bank-server/gen/dirigible-bank-server/api/bankAccount/BankAccountsService.ts @@ -30,7 +30,7 @@ class BankAccountsService { try { this.validateEntity(entity); entity.Id = this.repository.create(entity); - response.setHeader("Content-Location", "/services/ts/dirigible-bank-server/gen/api/bankAccount/BankAccountsService.ts/" + entity.Id); + response.setHeader("Content-Location", "/services/ts/dirigible-bank-server/gen/dirigible-bank-server/api/bankAccount/BankAccountsService.ts/" + entity.Id); response.setStatus(response.CREATED); return entity; } catch (error: any) { diff --git a/dirigible-bank-server/gen/api/cards/CardsService.ts b/dirigible-bank-server/gen/dirigible-bank-server/api/cards/CardsService.ts similarity index 94% rename from dirigible-bank-server/gen/api/cards/CardsService.ts rename to dirigible-bank-server/gen/dirigible-bank-server/api/cards/CardsService.ts index d2cc482..57ba045 100644 --- a/dirigible-bank-server/gen/api/cards/CardsService.ts +++ b/dirigible-bank-server/gen/dirigible-bank-server/api/cards/CardsService.ts @@ -30,7 +30,7 @@ class CardsService { try { this.validateEntity(entity); entity.Id = this.repository.create(entity); - response.setHeader("Content-Location", "/services/ts/dirigible-bank-server/gen/api/cards/CardsService.ts/" + entity.Id); + response.setHeader("Content-Location", "/services/ts/dirigible-bank-server/gen/dirigible-bank-server/api/cards/CardsService.ts/" + entity.Id); response.setStatus(response.CREATED); return entity; } catch (error: any) { @@ -119,9 +119,6 @@ class CardsService { } private validateEntity(entity: any): void { - if (entity.Users === null || entity.Users === undefined) { - throw new ValidationError(`The 'Users' property is required, provide a valid value`); - } if (entity.CardNumber === null || entity.CardNumber === undefined) { throw new ValidationError(`The 'CardNumber' property is required, provide a valid value`); } diff --git a/dirigible-bank-server/gen/api/entities/BankAccountStatusService.ts b/dirigible-bank-server/gen/dirigible-bank-server/api/entities/BankAccountStatusService.ts similarity index 97% rename from dirigible-bank-server/gen/api/entities/BankAccountStatusService.ts rename to dirigible-bank-server/gen/dirigible-bank-server/api/entities/BankAccountStatusService.ts index 195e215..0b4c5ae 100644 --- a/dirigible-bank-server/gen/api/entities/BankAccountStatusService.ts +++ b/dirigible-bank-server/gen/dirigible-bank-server/api/entities/BankAccountStatusService.ts @@ -30,7 +30,7 @@ class BankAccountStatusService { try { this.validateEntity(entity); entity.Id = this.repository.create(entity); - response.setHeader("Content-Location", "/services/ts/dirigible-bank-server/gen/api/entities/BankAccountStatusService.ts/" + entity.Id); + response.setHeader("Content-Location", "/services/ts/dirigible-bank-server/gen/dirigible-bank-server/api/entities/BankAccountStatusService.ts/" + entity.Id); response.setStatus(response.CREATED); return entity; } catch (error: any) { diff --git a/dirigible-bank-server/gen/api/entities/BankAccountTypeService.ts b/dirigible-bank-server/gen/dirigible-bank-server/api/entities/BankAccountTypeService.ts similarity index 97% rename from dirigible-bank-server/gen/api/entities/BankAccountTypeService.ts rename to dirigible-bank-server/gen/dirigible-bank-server/api/entities/BankAccountTypeService.ts index 336acb1..a7537b5 100644 --- a/dirigible-bank-server/gen/api/entities/BankAccountTypeService.ts +++ b/dirigible-bank-server/gen/dirigible-bank-server/api/entities/BankAccountTypeService.ts @@ -30,7 +30,7 @@ class BankAccountTypeService { try { this.validateEntity(entity); entity.Id = this.repository.create(entity); - response.setHeader("Content-Location", "/services/ts/dirigible-bank-server/gen/api/entities/BankAccountTypeService.ts/" + entity.Id); + response.setHeader("Content-Location", "/services/ts/dirigible-bank-server/gen/dirigible-bank-server/api/entities/BankAccountTypeService.ts/" + entity.Id); response.setStatus(response.CREATED); return entity; } catch (error: any) { diff --git a/dirigible-bank-server/gen/api/entities/CardTypeService.ts b/dirigible-bank-server/gen/dirigible-bank-server/api/entities/CardTypeService.ts similarity index 97% rename from dirigible-bank-server/gen/api/entities/CardTypeService.ts rename to dirigible-bank-server/gen/dirigible-bank-server/api/entities/CardTypeService.ts index 12a8036..cd49685 100644 --- a/dirigible-bank-server/gen/api/entities/CardTypeService.ts +++ b/dirigible-bank-server/gen/dirigible-bank-server/api/entities/CardTypeService.ts @@ -30,7 +30,7 @@ class CardTypeService { try { this.validateEntity(entity); entity.Id = this.repository.create(entity); - response.setHeader("Content-Location", "/services/ts/dirigible-bank-server/gen/api/entities/CardTypeService.ts/" + entity.Id); + response.setHeader("Content-Location", "/services/ts/dirigible-bank-server/gen/dirigible-bank-server/api/entities/CardTypeService.ts/" + entity.Id); response.setStatus(response.CREATED); return entity; } catch (error: any) { diff --git a/dirigible-bank-server/gen/api/Countries/CountryService.ts b/dirigible-bank-server/gen/dirigible-bank-server/api/entities/CountryService.ts similarity index 95% rename from dirigible-bank-server/gen/api/Countries/CountryService.ts rename to dirigible-bank-server/gen/dirigible-bank-server/api/entities/CountryService.ts index ccfef7e..7d8f0f4 100644 --- a/dirigible-bank-server/gen/api/Countries/CountryService.ts +++ b/dirigible-bank-server/gen/dirigible-bank-server/api/entities/CountryService.ts @@ -1,10 +1,10 @@ import { Controller, Get, Post, Put, Delete, response } from "sdk/http" import { Extensions } from "sdk/extensions" -import { CountryRepository, CountryEntityOptions } from "../../dao/Countries/CountryRepository"; +import { CountryRepository, CountryEntityOptions } from "../../dao/entities/CountryRepository"; import { ValidationError } from "../utils/ValidationError"; import { HttpUtils } from "../utils/HttpUtils"; -const validationModules = await Extensions.loadExtensionModules("dirigible-bank-server-Countries-Country", ["validate"]); +const validationModules = await Extensions.loadExtensionModules("dirigible-bank-server-entities-Country", ["validate"]); @Controller class CountryService { @@ -30,7 +30,7 @@ class CountryService { try { this.validateEntity(entity); entity.Id = this.repository.create(entity); - response.setHeader("Content-Location", "/services/ts/dirigible-bank-server/gen/api/Countries/CountryService.ts/" + entity.Id); + response.setHeader("Content-Location", "/services/ts/dirigible-bank-server/gen/dirigible-bank-server/api/entities/CountryService.ts/" + entity.Id); response.setStatus(response.CREATED); return entity; } catch (error: any) { diff --git a/dirigible-bank-server/gen/api/Currencies/CurrencyService.ts b/dirigible-bank-server/gen/dirigible-bank-server/api/entities/CurrencyService.ts similarity index 90% rename from dirigible-bank-server/gen/api/Currencies/CurrencyService.ts rename to dirigible-bank-server/gen/dirigible-bank-server/api/entities/CurrencyService.ts index f245238..3a07477 100644 --- a/dirigible-bank-server/gen/api/Currencies/CurrencyService.ts +++ b/dirigible-bank-server/gen/dirigible-bank-server/api/entities/CurrencyService.ts @@ -1,10 +1,10 @@ import { Controller, Get, Post, Put, Delete, response } from "sdk/http" import { Extensions } from "sdk/extensions" -import { CurrencyRepository, CurrencyEntityOptions } from "../../dao/Currencies/CurrencyRepository"; +import { CurrencyRepository, CurrencyEntityOptions } from "../../dao/entities/CurrencyRepository"; import { ValidationError } from "../utils/ValidationError"; import { HttpUtils } from "../utils/HttpUtils"; -const validationModules = await Extensions.loadExtensionModules("dirigible-bank-server-Currencies-Currency", ["validate"]); +const validationModules = await Extensions.loadExtensionModules("dirigible-bank-server-entities-Currency", ["validate"]); @Controller class CurrencyService { @@ -30,7 +30,7 @@ class CurrencyService { try { this.validateEntity(entity); entity.Id = this.repository.create(entity); - response.setHeader("Content-Location", "/services/ts/dirigible-bank-server/gen/api/Currencies/CurrencyService.ts/" + entity.Id); + response.setHeader("Content-Location", "/services/ts/dirigible-bank-server/gen/dirigible-bank-server/api/entities/CurrencyService.ts/" + entity.Id); response.setStatus(response.CREATED); return entity; } catch (error: any) { @@ -119,14 +119,14 @@ class CurrencyService { } private validateEntity(entity: any): void { - if (entity.Code?.length > 3) { - throw new ValidationError(`The 'Code' exceeds the maximum length of [3] characters`); + if (entity.Code?.length > 20) { + throw new ValidationError(`The 'Code' exceeds the maximum length of [20] characters`); } - if (entity.Name?.length > 127) { - throw new ValidationError(`The 'Name' exceeds the maximum length of [127] characters`); + if (entity.Name?.length > 200) { + throw new ValidationError(`The 'Name' exceeds the maximum length of [200] characters`); } - if (entity.Numeric?.length > 3) { - throw new ValidationError(`The 'Numeric' exceeds the maximum length of [3] characters`); + if (entity.Numeric?.length > 20) { + throw new ValidationError(`The 'Numeric' exceeds the maximum length of [20] characters`); } for (const next of validationModules) { next.validate(entity); diff --git a/dirigible-bank-server/gen/api/transactions/TransactionsService.ts b/dirigible-bank-server/gen/dirigible-bank-server/api/transactions/TransactionsService.ts similarity index 97% rename from dirigible-bank-server/gen/api/transactions/TransactionsService.ts rename to dirigible-bank-server/gen/dirigible-bank-server/api/transactions/TransactionsService.ts index 3c23669..f74c597 100644 --- a/dirigible-bank-server/gen/api/transactions/TransactionsService.ts +++ b/dirigible-bank-server/gen/dirigible-bank-server/api/transactions/TransactionsService.ts @@ -30,7 +30,7 @@ class TransactionsService { try { this.validateEntity(entity); entity.Id = this.repository.create(entity); - response.setHeader("Content-Location", "/services/ts/dirigible-bank-server/gen/api/transactions/TransactionsService.ts/" + entity.Id); + response.setHeader("Content-Location", "/services/ts/dirigible-bank-server/gen/dirigible-bank-server/api/transactions/TransactionsService.ts/" + entity.Id); response.setStatus(response.CREATED); return entity; } catch (error: any) { diff --git a/dirigible-bank-server/gen/api/users/UsersService.ts b/dirigible-bank-server/gen/dirigible-bank-server/api/users/UsersService.ts similarity index 98% rename from dirigible-bank-server/gen/api/users/UsersService.ts rename to dirigible-bank-server/gen/dirigible-bank-server/api/users/UsersService.ts index 2cb0ddd..ab46cb3 100644 --- a/dirigible-bank-server/gen/api/users/UsersService.ts +++ b/dirigible-bank-server/gen/dirigible-bank-server/api/users/UsersService.ts @@ -30,7 +30,7 @@ class UsersService { try { this.validateEntity(entity); entity.Id = this.repository.create(entity); - response.setHeader("Content-Location", "/services/ts/dirigible-bank-server/gen/api/users/UsersService.ts/" + entity.Id); + response.setHeader("Content-Location", "/services/ts/dirigible-bank-server/gen/dirigible-bank-server/api/users/UsersService.ts/" + entity.Id); response.setStatus(response.CREATED); return entity; } catch (error: any) { diff --git a/dirigible-bank-server/gen/api/utils/ForbiddenError.ts b/dirigible-bank-server/gen/dirigible-bank-server/api/utils/ForbiddenError.ts similarity index 100% rename from dirigible-bank-server/gen/api/utils/ForbiddenError.ts rename to dirigible-bank-server/gen/dirigible-bank-server/api/utils/ForbiddenError.ts diff --git a/dirigible-bank-server/gen/api/utils/HttpUtils.ts b/dirigible-bank-server/gen/dirigible-bank-server/api/utils/HttpUtils.ts similarity index 100% rename from dirigible-bank-server/gen/api/utils/HttpUtils.ts rename to dirigible-bank-server/gen/dirigible-bank-server/api/utils/HttpUtils.ts diff --git a/dirigible-bank-server/gen/api/utils/ValidationError.ts b/dirigible-bank-server/gen/dirigible-bank-server/api/utils/ValidationError.ts similarity index 100% rename from dirigible-bank-server/gen/api/utils/ValidationError.ts rename to dirigible-bank-server/gen/dirigible-bank-server/api/utils/ValidationError.ts diff --git a/dirigible-bank-server/gen/dao/bankAccount/BankAccounts.extensionpoint b/dirigible-bank-server/gen/dirigible-bank-server/dao/bankAccount/BankAccounts.extensionpoint similarity index 100% rename from dirigible-bank-server/gen/dao/bankAccount/BankAccounts.extensionpoint rename to dirigible-bank-server/gen/dirigible-bank-server/dao/bankAccount/BankAccounts.extensionpoint diff --git a/dirigible-bank-server/gen/dao/bankAccount/BankAccountsRepository.ts b/dirigible-bank-server/gen/dirigible-bank-server/dao/bankAccount/BankAccountsRepository.ts similarity index 93% rename from dirigible-bank-server/gen/dao/bankAccount/BankAccountsRepository.ts rename to dirigible-bank-server/gen/dirigible-bank-server/dao/bankAccount/BankAccountsRepository.ts index fab3350..ed8c9ac 100644 --- a/dirigible-bank-server/gen/dao/bankAccount/BankAccountsRepository.ts +++ b/dirigible-bank-server/gen/dirigible-bank-server/dao/bankAccount/BankAccountsRepository.ts @@ -120,10 +120,14 @@ interface BankAccountsEntityEvent { } } +interface BankAccountsUpdateEntityEvent extends BankAccountsEntityEvent { + readonly previousEntity: BankAccountsEntity; +} + export class BankAccountsRepository { private static readonly DEFINITION = { - table: "PI_BANKACCOUNTS", + table: "BANKACCOUNTS", properties: [ { name: "Id", @@ -175,7 +179,7 @@ export class BankAccountsRepository { private readonly dao; - constructor(dataSource?: string) { + constructor(dataSource = "DefaultDB") { this.dao = daoApi.create(BankAccountsRepository.DEFINITION, null, dataSource); } @@ -197,7 +201,7 @@ export class BankAccountsRepository { const id = this.dao.insert(entity); this.triggerEvent({ operation: "create", - table: "PI_BANKACCOUNTS", + table: "BANKACCOUNTS", entity: entity, key: { name: "Id", @@ -210,11 +214,13 @@ export class BankAccountsRepository { public update(entity: BankAccountsUpdateEntity): void { // EntityUtils.setLocalDate(entity, "CreationDate"); + const previousEntity = this.findById(entity.Id); this.dao.update(entity); this.triggerEvent({ operation: "update", - table: "PI_BANKACCOUNTS", + table: "BANKACCOUNTS", entity: entity, + previousEntity: previousEntity, key: { name: "Id", column: "BANKACCOUNTS_ID", @@ -243,7 +249,7 @@ export class BankAccountsRepository { this.dao.remove(id); this.triggerEvent({ operation: "delete", - table: "PI_BANKACCOUNTS", + table: "BANKACCOUNTS", entity: entity, key: { name: "Id", @@ -258,7 +264,7 @@ export class BankAccountsRepository { } public customDataCount(): number { - const resultSet = query.execute('SELECT COUNT(*) AS COUNT FROM "PI_BANKACCOUNTS"'); + const resultSet = query.execute('SELECT COUNT(*) AS COUNT FROM "BANKACCOUNTS"'); if (resultSet !== null && resultSet[0] !== null) { if (resultSet[0].COUNT !== undefined && resultSet[0].COUNT !== null) { return resultSet[0].COUNT; @@ -269,7 +275,7 @@ export class BankAccountsRepository { return 0; } - private async triggerEvent(data: BankAccountsEntityEvent) { + private async triggerEvent(data: BankAccountsEntityEvent | BankAccountsUpdateEntityEvent) { const triggerExtensions = await extensions.loadExtensionModules("dirigible-bank-server-bankAccount-BankAccounts", ["trigger"]); triggerExtensions.forEach(triggerExtension => { try { @@ -278,6 +284,6 @@ export class BankAccountsRepository { console.error(error); } }); - producer.topic("dirigible-bank-server/bankAccount/BankAccounts").send(JSON.stringify(data)); + producer.topic("dirigible-bank-server-bankAccount-BankAccounts").send(JSON.stringify(data)); } -} \ No newline at end of file +} diff --git a/dirigible-bank-server/gen/dao/cards/Cards.extensionpoint b/dirigible-bank-server/gen/dirigible-bank-server/dao/cards/Cards.extensionpoint similarity index 100% rename from dirigible-bank-server/gen/dao/cards/Cards.extensionpoint rename to dirigible-bank-server/gen/dirigible-bank-server/dao/cards/Cards.extensionpoint diff --git a/dirigible-bank-server/gen/dao/cards/CardsRepository.ts b/dirigible-bank-server/gen/dirigible-bank-server/dao/cards/CardsRepository.ts similarity index 86% rename from dirigible-bank-server/gen/dao/cards/CardsRepository.ts rename to dirigible-bank-server/gen/dirigible-bank-server/dao/cards/CardsRepository.ts index e82abe0..e4b231b 100644 --- a/dirigible-bank-server/gen/dao/cards/CardsRepository.ts +++ b/dirigible-bank-server/gen/dirigible-bank-server/dao/cards/CardsRepository.ts @@ -6,17 +6,17 @@ import { EntityUtils } from "../utils/EntityUtils"; export interface CardsEntity { readonly Id: number; - Users?: number; CardNumber: string; ExpirationDate?: Date; CardType: number; + BankAccounts?: number; } export interface CardsCreateEntity { - readonly Users?: number; readonly CardNumber: string; readonly ExpirationDate?: Date; readonly CardType: number; + readonly BankAccounts?: number; } export interface CardsUpdateEntity extends CardsCreateEntity { @@ -27,52 +27,52 @@ export interface CardsEntityOptions { $filter?: { equals?: { Id?: number | number[]; - Users?: number | number[]; CardNumber?: string | string[]; ExpirationDate?: Date | Date[]; CardType?: number | number[]; + BankAccounts?: number | number[]; }; notEquals?: { Id?: number | number[]; - Users?: number | number[]; CardNumber?: string | string[]; ExpirationDate?: Date | Date[]; CardType?: number | number[]; + BankAccounts?: number | number[]; }; contains?: { Id?: number; - Users?: number; CardNumber?: string; ExpirationDate?: Date; CardType?: number; + BankAccounts?: number; }; greaterThan?: { Id?: number; - Users?: number; CardNumber?: string; ExpirationDate?: Date; CardType?: number; + BankAccounts?: number; }; greaterThanOrEqual?: { Id?: number; - Users?: number; CardNumber?: string; ExpirationDate?: Date; CardType?: number; + BankAccounts?: number; }; lessThan?: { Id?: number; - Users?: number; CardNumber?: string; ExpirationDate?: Date; CardType?: number; + BankAccounts?: number; }; lessThanOrEqual?: { Id?: number; - Users?: number; CardNumber?: string; ExpirationDate?: Date; CardType?: number; + BankAccounts?: number; }; }, $select?: (keyof CardsEntity)[], @@ -93,10 +93,14 @@ interface CardsEntityEvent { } } +interface CardsUpdateEntityEvent extends CardsEntityEvent { + readonly previousEntity: CardsEntity; +} + export class CardsRepository { private static readonly DEFINITION = { - table: "PI_CARDS", + table: "CARDS", properties: [ { name: "Id", @@ -105,11 +109,6 @@ export class CardsRepository { id: true, autoIncrement: true, }, - { - name: "Users", - column: "CARDS_USERS", - type: "INTEGER", - }, { name: "CardNumber", column: "CARDS_CARDNUMBER", @@ -126,13 +125,18 @@ export class CardsRepository { column: "CARDS_CARDTYPE", type: "INTEGER", required: true + }, + { + name: "BankAccounts", + column: "CARDS_BANKACCOUNTS", + type: "INTEGER", } ] }; private readonly dao; - constructor(dataSource?: string) { + constructor(dataSource = "DefaultDB") { this.dao = daoApi.create(CardsRepository.DEFINITION, null, dataSource); } @@ -154,7 +158,7 @@ export class CardsRepository { const id = this.dao.insert(entity); this.triggerEvent({ operation: "create", - table: "PI_CARDS", + table: "CARDS", entity: entity, key: { name: "Id", @@ -167,11 +171,13 @@ export class CardsRepository { public update(entity: CardsUpdateEntity): void { // EntityUtils.setLocalDate(entity, "ExpirationDate"); + const previousEntity = this.findById(entity.Id); this.dao.update(entity); this.triggerEvent({ operation: "update", - table: "PI_CARDS", + table: "CARDS", entity: entity, + previousEntity: previousEntity, key: { name: "Id", column: "CARDS_ID", @@ -200,7 +206,7 @@ export class CardsRepository { this.dao.remove(id); this.triggerEvent({ operation: "delete", - table: "PI_CARDS", + table: "CARDS", entity: entity, key: { name: "Id", @@ -215,7 +221,7 @@ export class CardsRepository { } public customDataCount(): number { - const resultSet = query.execute('SELECT COUNT(*) AS COUNT FROM "PI_CARDS"'); + const resultSet = query.execute('SELECT COUNT(*) AS COUNT FROM "CARDS"'); if (resultSet !== null && resultSet[0] !== null) { if (resultSet[0].COUNT !== undefined && resultSet[0].COUNT !== null) { return resultSet[0].COUNT; @@ -226,7 +232,7 @@ export class CardsRepository { return 0; } - private async triggerEvent(data: CardsEntityEvent) { + private async triggerEvent(data: CardsEntityEvent | CardsUpdateEntityEvent) { const triggerExtensions = await extensions.loadExtensionModules("dirigible-bank-server-cards-Cards", ["trigger"]); triggerExtensions.forEach(triggerExtension => { try { @@ -235,6 +241,6 @@ export class CardsRepository { console.error(error); } }); - producer.topic("dirigible-bank-server/cards/Cards").send(JSON.stringify(data)); + producer.topic("dirigible-bank-server-cards-Cards").send(JSON.stringify(data)); } -} \ No newline at end of file +} diff --git a/dirigible-bank-server/gen/dao/entities/BankAccountStatus.extensionpoint b/dirigible-bank-server/gen/dirigible-bank-server/dao/entities/BankAccountStatus.extensionpoint similarity index 100% rename from dirigible-bank-server/gen/dao/entities/BankAccountStatus.extensionpoint rename to dirigible-bank-server/gen/dirigible-bank-server/dao/entities/BankAccountStatus.extensionpoint diff --git a/dirigible-bank-server/gen/dao/entities/BankAccountStatusRepository.ts b/dirigible-bank-server/gen/dirigible-bank-server/dao/entities/BankAccountStatusRepository.ts similarity index 89% rename from dirigible-bank-server/gen/dao/entities/BankAccountStatusRepository.ts rename to dirigible-bank-server/gen/dirigible-bank-server/dao/entities/BankAccountStatusRepository.ts index cf68ab2..a63f747 100644 --- a/dirigible-bank-server/gen/dao/entities/BankAccountStatusRepository.ts +++ b/dirigible-bank-server/gen/dirigible-bank-server/dao/entities/BankAccountStatusRepository.ts @@ -65,10 +65,14 @@ interface BankAccountStatusEntityEvent { } } +interface BankAccountStatusUpdateEntityEvent extends BankAccountStatusEntityEvent { + readonly previousEntity: BankAccountStatusEntity; +} + export class BankAccountStatusRepository { private static readonly DEFINITION = { - table: "PI_BANKACCOUNTSTATUS", + table: "BANKACCOUNTSTATUS", properties: [ { name: "Id", @@ -88,7 +92,7 @@ export class BankAccountStatusRepository { private readonly dao; - constructor(dataSource?: string) { + constructor(dataSource = "DefaultDB") { this.dao = daoApi.create(BankAccountStatusRepository.DEFINITION, null, dataSource); } @@ -105,7 +109,7 @@ export class BankAccountStatusRepository { const id = this.dao.insert(entity); this.triggerEvent({ operation: "create", - table: "PI_BANKACCOUNTSTATUS", + table: "BANKACCOUNTSTATUS", entity: entity, key: { name: "Id", @@ -117,11 +121,13 @@ export class BankAccountStatusRepository { } public update(entity: BankAccountStatusUpdateEntity): void { + const previousEntity = this.findById(entity.Id); this.dao.update(entity); this.triggerEvent({ operation: "update", - table: "PI_BANKACCOUNTSTATUS", + table: "BANKACCOUNTSTATUS", entity: entity, + previousEntity: previousEntity, key: { name: "Id", column: "BANKACCOUNTSTATUS_ID", @@ -150,7 +156,7 @@ export class BankAccountStatusRepository { this.dao.remove(id); this.triggerEvent({ operation: "delete", - table: "PI_BANKACCOUNTSTATUS", + table: "BANKACCOUNTSTATUS", entity: entity, key: { name: "Id", @@ -165,7 +171,7 @@ export class BankAccountStatusRepository { } public customDataCount(): number { - const resultSet = query.execute('SELECT COUNT(*) AS COUNT FROM "PI_BANKACCOUNTSTATUS"'); + const resultSet = query.execute('SELECT COUNT(*) AS COUNT FROM "BANKACCOUNTSTATUS"'); if (resultSet !== null && resultSet[0] !== null) { if (resultSet[0].COUNT !== undefined && resultSet[0].COUNT !== null) { return resultSet[0].COUNT; @@ -176,7 +182,7 @@ export class BankAccountStatusRepository { return 0; } - private async triggerEvent(data: BankAccountStatusEntityEvent) { + private async triggerEvent(data: BankAccountStatusEntityEvent | BankAccountStatusUpdateEntityEvent) { const triggerExtensions = await extensions.loadExtensionModules("dirigible-bank-server-entities-BankAccountStatus", ["trigger"]); triggerExtensions.forEach(triggerExtension => { try { @@ -185,6 +191,6 @@ export class BankAccountStatusRepository { console.error(error); } }); - producer.topic("dirigible-bank-server/entities/BankAccountStatus").send(JSON.stringify(data)); + producer.topic("dirigible-bank-server-entities-BankAccountStatus").send(JSON.stringify(data)); } -} \ No newline at end of file +} diff --git a/dirigible-bank-server/gen/dao/entities/BankAccountType.extensionpoint b/dirigible-bank-server/gen/dirigible-bank-server/dao/entities/BankAccountType.extensionpoint similarity index 100% rename from dirigible-bank-server/gen/dao/entities/BankAccountType.extensionpoint rename to dirigible-bank-server/gen/dirigible-bank-server/dao/entities/BankAccountType.extensionpoint diff --git a/dirigible-bank-server/gen/dao/entities/BankAccountTypeRepository.ts b/dirigible-bank-server/gen/dirigible-bank-server/dao/entities/BankAccountTypeRepository.ts similarity index 88% rename from dirigible-bank-server/gen/dao/entities/BankAccountTypeRepository.ts rename to dirigible-bank-server/gen/dirigible-bank-server/dao/entities/BankAccountTypeRepository.ts index 90928fa..bdebde8 100644 --- a/dirigible-bank-server/gen/dao/entities/BankAccountTypeRepository.ts +++ b/dirigible-bank-server/gen/dirigible-bank-server/dao/entities/BankAccountTypeRepository.ts @@ -65,10 +65,14 @@ interface BankAccountTypeEntityEvent { } } +interface BankAccountTypeUpdateEntityEvent extends BankAccountTypeEntityEvent { + readonly previousEntity: BankAccountTypeEntity; +} + export class BankAccountTypeRepository { private static readonly DEFINITION = { - table: "PI_BANKACCOUNTTYPE", + table: "BANKACCOUNTTYPE", properties: [ { name: "Id", @@ -88,7 +92,7 @@ export class BankAccountTypeRepository { private readonly dao; - constructor(dataSource?: string) { + constructor(dataSource = "DefaultDB") { this.dao = daoApi.create(BankAccountTypeRepository.DEFINITION, null, dataSource); } @@ -105,7 +109,7 @@ export class BankAccountTypeRepository { const id = this.dao.insert(entity); this.triggerEvent({ operation: "create", - table: "PI_BANKACCOUNTTYPE", + table: "BANKACCOUNTTYPE", entity: entity, key: { name: "Id", @@ -117,11 +121,13 @@ export class BankAccountTypeRepository { } public update(entity: BankAccountTypeUpdateEntity): void { + const previousEntity = this.findById(entity.Id); this.dao.update(entity); this.triggerEvent({ operation: "update", - table: "PI_BANKACCOUNTTYPE", + table: "BANKACCOUNTTYPE", entity: entity, + previousEntity: previousEntity, key: { name: "Id", column: "BANKACCOUNTTYPE_ID", @@ -150,7 +156,7 @@ export class BankAccountTypeRepository { this.dao.remove(id); this.triggerEvent({ operation: "delete", - table: "PI_BANKACCOUNTTYPE", + table: "BANKACCOUNTTYPE", entity: entity, key: { name: "Id", @@ -165,7 +171,7 @@ export class BankAccountTypeRepository { } public customDataCount(): number { - const resultSet = query.execute('SELECT COUNT(*) AS COUNT FROM "PI_BANKACCOUNTTYPE"'); + const resultSet = query.execute('SELECT COUNT(*) AS COUNT FROM "BANKACCOUNTTYPE"'); if (resultSet !== null && resultSet[0] !== null) { if (resultSet[0].COUNT !== undefined && resultSet[0].COUNT !== null) { return resultSet[0].COUNT; @@ -176,7 +182,7 @@ export class BankAccountTypeRepository { return 0; } - private async triggerEvent(data: BankAccountTypeEntityEvent) { + private async triggerEvent(data: BankAccountTypeEntityEvent | BankAccountTypeUpdateEntityEvent) { const triggerExtensions = await extensions.loadExtensionModules("dirigible-bank-server-entities-BankAccountType", ["trigger"]); triggerExtensions.forEach(triggerExtension => { try { @@ -185,6 +191,6 @@ export class BankAccountTypeRepository { console.error(error); } }); - producer.topic("dirigible-bank-server/entities/BankAccountType").send(JSON.stringify(data)); + producer.topic("dirigible-bank-server-entities-BankAccountType").send(JSON.stringify(data)); } -} \ No newline at end of file +} diff --git a/dirigible-bank-server/gen/dao/entities/CardType.extensionpoint b/dirigible-bank-server/gen/dirigible-bank-server/dao/entities/CardType.extensionpoint similarity index 100% rename from dirigible-bank-server/gen/dao/entities/CardType.extensionpoint rename to dirigible-bank-server/gen/dirigible-bank-server/dao/entities/CardType.extensionpoint diff --git a/dirigible-bank-server/gen/dao/entities/CardTypeRepository.ts b/dirigible-bank-server/gen/dirigible-bank-server/dao/entities/CardTypeRepository.ts similarity index 89% rename from dirigible-bank-server/gen/dao/entities/CardTypeRepository.ts rename to dirigible-bank-server/gen/dirigible-bank-server/dao/entities/CardTypeRepository.ts index c470581..8f5c271 100644 --- a/dirigible-bank-server/gen/dao/entities/CardTypeRepository.ts +++ b/dirigible-bank-server/gen/dirigible-bank-server/dao/entities/CardTypeRepository.ts @@ -65,10 +65,14 @@ interface CardTypeEntityEvent { } } +interface CardTypeUpdateEntityEvent extends CardTypeEntityEvent { + readonly previousEntity: CardTypeEntity; +} + export class CardTypeRepository { private static readonly DEFINITION = { - table: "PI_CARDTYPE", + table: "CARDTYPE", properties: [ { name: "Id", @@ -87,7 +91,7 @@ export class CardTypeRepository { private readonly dao; - constructor(dataSource?: string) { + constructor(dataSource = "DefaultDB") { this.dao = daoApi.create(CardTypeRepository.DEFINITION, null, dataSource); } @@ -104,7 +108,7 @@ export class CardTypeRepository { const id = this.dao.insert(entity); this.triggerEvent({ operation: "create", - table: "PI_CARDTYPE", + table: "CARDTYPE", entity: entity, key: { name: "Id", @@ -116,11 +120,13 @@ export class CardTypeRepository { } public update(entity: CardTypeUpdateEntity): void { + const previousEntity = this.findById(entity.Id); this.dao.update(entity); this.triggerEvent({ operation: "update", - table: "PI_CARDTYPE", + table: "CARDTYPE", entity: entity, + previousEntity: previousEntity, key: { name: "Id", column: "CARDTYPE_ID", @@ -149,7 +155,7 @@ export class CardTypeRepository { this.dao.remove(id); this.triggerEvent({ operation: "delete", - table: "PI_CARDTYPE", + table: "CARDTYPE", entity: entity, key: { name: "Id", @@ -164,7 +170,7 @@ export class CardTypeRepository { } public customDataCount(): number { - const resultSet = query.execute('SELECT COUNT(*) AS COUNT FROM "PI_CARDTYPE"'); + const resultSet = query.execute('SELECT COUNT(*) AS COUNT FROM "CARDTYPE"'); if (resultSet !== null && resultSet[0] !== null) { if (resultSet[0].COUNT !== undefined && resultSet[0].COUNT !== null) { return resultSet[0].COUNT; @@ -175,7 +181,7 @@ export class CardTypeRepository { return 0; } - private async triggerEvent(data: CardTypeEntityEvent) { + private async triggerEvent(data: CardTypeEntityEvent | CardTypeUpdateEntityEvent) { const triggerExtensions = await extensions.loadExtensionModules("dirigible-bank-server-entities-CardType", ["trigger"]); triggerExtensions.forEach(triggerExtension => { try { @@ -184,6 +190,6 @@ export class CardTypeRepository { console.error(error); } }); - producer.topic("dirigible-bank-server/entities/CardType").send(JSON.stringify(data)); + producer.topic("dirigible-bank-server-entities-CardType").send(JSON.stringify(data)); } -} \ No newline at end of file +} diff --git a/dirigible-bank-server/gen/dirigible-bank-server/dao/entities/Country.extensionpoint b/dirigible-bank-server/gen/dirigible-bank-server/dao/entities/Country.extensionpoint new file mode 100644 index 0000000..fecd8e3 --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/dao/entities/Country.extensionpoint @@ -0,0 +1,4 @@ +{ + "name": "dirigible-bank-server-entities-Country", + "description": "Extension Point for the dirigible-bank-server-entities-Country entity" +} \ No newline at end of file diff --git a/dirigible-bank-server/gen/dao/Countries/CountryRepository.ts b/dirigible-bank-server/gen/dirigible-bank-server/dao/entities/CountryRepository.ts similarity index 89% rename from dirigible-bank-server/gen/dao/Countries/CountryRepository.ts rename to dirigible-bank-server/gen/dirigible-bank-server/dao/entities/CountryRepository.ts index 15ebad6..693b2f1 100644 --- a/dirigible-bank-server/gen/dao/Countries/CountryRepository.ts +++ b/dirigible-bank-server/gen/dirigible-bank-server/dao/entities/CountryRepository.ts @@ -92,10 +92,14 @@ interface CountryEntityEvent { } } +interface CountryUpdateEntityEvent extends CountryEntityEvent { + readonly previousEntity: CountryEntity; +} + export class CountryRepository { private static readonly DEFINITION = { - table: "PI_COUNTRY", + table: "COUNTRY", properties: [ { name: "Id", @@ -117,7 +121,7 @@ export class CountryRepository { { name: "Code3", column: "COUNTRY_CODE3", - type: "CHAR", + type: "VARCHAR", }, { name: "Numeric", @@ -129,7 +133,7 @@ export class CountryRepository { private readonly dao; - constructor(dataSource?: string) { + constructor(dataSource = "DefaultDB") { this.dao = daoApi.create(CountryRepository.DEFINITION, null, dataSource); } @@ -146,7 +150,7 @@ export class CountryRepository { const id = this.dao.insert(entity); this.triggerEvent({ operation: "create", - table: "PI_COUNTRY", + table: "COUNTRY", entity: entity, key: { name: "Id", @@ -158,11 +162,13 @@ export class CountryRepository { } public update(entity: CountryUpdateEntity): void { + const previousEntity = this.findById(entity.Id); this.dao.update(entity); this.triggerEvent({ operation: "update", - table: "PI_COUNTRY", + table: "COUNTRY", entity: entity, + previousEntity: previousEntity, key: { name: "Id", column: "COUNTRY_ID", @@ -191,7 +197,7 @@ export class CountryRepository { this.dao.remove(id); this.triggerEvent({ operation: "delete", - table: "PI_COUNTRY", + table: "COUNTRY", entity: entity, key: { name: "Id", @@ -206,7 +212,7 @@ export class CountryRepository { } public customDataCount(): number { - const resultSet = query.execute('SELECT COUNT(*) AS COUNT FROM "PI_COUNTRY"'); + const resultSet = query.execute('SELECT COUNT(*) AS COUNT FROM "COUNTRY"'); if (resultSet !== null && resultSet[0] !== null) { if (resultSet[0].COUNT !== undefined && resultSet[0].COUNT !== null) { return resultSet[0].COUNT; @@ -217,8 +223,8 @@ export class CountryRepository { return 0; } - private async triggerEvent(data: CountryEntityEvent) { - const triggerExtensions = await extensions.loadExtensionModules("dirigible-bank-server-Countries-Country", ["trigger"]); + private async triggerEvent(data: CountryEntityEvent | CountryUpdateEntityEvent) { + const triggerExtensions = await extensions.loadExtensionModules("dirigible-bank-server-entities-Country", ["trigger"]); triggerExtensions.forEach(triggerExtension => { try { triggerExtension.trigger(data); @@ -226,6 +232,6 @@ export class CountryRepository { console.error(error); } }); - producer.topic("dirigible-bank-server/Countries/Country").send(JSON.stringify(data)); + producer.topic("dirigible-bank-server-entities-Country").send(JSON.stringify(data)); } -} \ No newline at end of file +} diff --git a/dirigible-bank-server/gen/dirigible-bank-server/dao/entities/Currency.extensionpoint b/dirigible-bank-server/gen/dirigible-bank-server/dao/entities/Currency.extensionpoint new file mode 100644 index 0000000..47e93fc --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/dao/entities/Currency.extensionpoint @@ -0,0 +1,4 @@ +{ + "name": "dirigible-bank-server-entities-Currency", + "description": "Extension Point for the dirigible-bank-server-entities-Currency entity" +} \ No newline at end of file diff --git a/dirigible-bank-server/gen/dao/Currencies/CurrencyRepository.ts b/dirigible-bank-server/gen/dirigible-bank-server/dao/entities/CurrencyRepository.ts similarity index 91% rename from dirigible-bank-server/gen/dao/Currencies/CurrencyRepository.ts rename to dirigible-bank-server/gen/dirigible-bank-server/dao/entities/CurrencyRepository.ts index f61985a..a84b20a 100644 --- a/dirigible-bank-server/gen/dao/Currencies/CurrencyRepository.ts +++ b/dirigible-bank-server/gen/dirigible-bank-server/dao/entities/CurrencyRepository.ts @@ -111,10 +111,14 @@ interface CurrencyEntityEvent { } } +interface CurrencyUpdateEntityEvent extends CurrencyEntityEvent { + readonly previousEntity: CurrencyEntity; +} + export class CurrencyRepository { private static readonly DEFINITION = { - table: "PI_CURRENCY", + table: "CURRENCY", properties: [ { name: "Id", @@ -158,7 +162,7 @@ export class CurrencyRepository { private readonly dao; - constructor(dataSource?: string) { + constructor(dataSource = "DefaultDB") { this.dao = daoApi.create(CurrencyRepository.DEFINITION, null, dataSource); } @@ -180,7 +184,7 @@ export class CurrencyRepository { const id = this.dao.insert(entity); this.triggerEvent({ operation: "create", - table: "PI_CURRENCY", + table: "CURRENCY", entity: entity, key: { name: "Id", @@ -193,11 +197,13 @@ export class CurrencyRepository { public update(entity: CurrencyUpdateEntity): void { EntityUtils.setBoolean(entity, "Base"); + const previousEntity = this.findById(entity.Id); this.dao.update(entity); this.triggerEvent({ operation: "update", - table: "PI_CURRENCY", + table: "CURRENCY", entity: entity, + previousEntity: previousEntity, key: { name: "Id", column: "CURRENCY_ID", @@ -226,7 +232,7 @@ export class CurrencyRepository { this.dao.remove(id); this.triggerEvent({ operation: "delete", - table: "PI_CURRENCY", + table: "CURRENCY", entity: entity, key: { name: "Id", @@ -241,7 +247,7 @@ export class CurrencyRepository { } public customDataCount(): number { - const resultSet = query.execute('SELECT COUNT(*) AS COUNT FROM "PI_CURRENCY"'); + const resultSet = query.execute('SELECT COUNT(*) AS COUNT FROM "CURRENCY"'); if (resultSet !== null && resultSet[0] !== null) { if (resultSet[0].COUNT !== undefined && resultSet[0].COUNT !== null) { return resultSet[0].COUNT; @@ -252,8 +258,8 @@ export class CurrencyRepository { return 0; } - private async triggerEvent(data: CurrencyEntityEvent) { - const triggerExtensions = await extensions.loadExtensionModules("dirigible-bank-server-Currencies-Currency", ["trigger"]); + private async triggerEvent(data: CurrencyEntityEvent | CurrencyUpdateEntityEvent) { + const triggerExtensions = await extensions.loadExtensionModules("dirigible-bank-server-entities-Currency", ["trigger"]); triggerExtensions.forEach(triggerExtension => { try { triggerExtension.trigger(data); @@ -261,6 +267,6 @@ export class CurrencyRepository { console.error(error); } }); - producer.topic("dirigible-bank-server/Currencies/Currency").send(JSON.stringify(data)); + producer.topic("dirigible-bank-server-entities-Currency").send(JSON.stringify(data)); } -} \ No newline at end of file +} diff --git a/dirigible-bank-server/gen/dao/transactions/Transactions.extensionpoint b/dirigible-bank-server/gen/dirigible-bank-server/dao/transactions/Transactions.extensionpoint similarity index 100% rename from dirigible-bank-server/gen/dao/transactions/Transactions.extensionpoint rename to dirigible-bank-server/gen/dirigible-bank-server/dao/transactions/Transactions.extensionpoint diff --git a/dirigible-bank-server/gen/dao/transactions/TransactionsRepository.ts b/dirigible-bank-server/gen/dirigible-bank-server/dao/transactions/TransactionsRepository.ts similarity index 91% rename from dirigible-bank-server/gen/dao/transactions/TransactionsRepository.ts rename to dirigible-bank-server/gen/dirigible-bank-server/dao/transactions/TransactionsRepository.ts index cf27cef..1f199e5 100644 --- a/dirigible-bank-server/gen/dao/transactions/TransactionsRepository.ts +++ b/dirigible-bank-server/gen/dirigible-bank-server/dao/transactions/TransactionsRepository.ts @@ -93,10 +93,14 @@ interface TransactionsEntityEvent { } } +interface TransactionsUpdateEntityEvent extends TransactionsEntityEvent { + readonly previousEntity: TransactionsEntity; +} + export class TransactionsRepository { private static readonly DEFINITION = { - table: "PI_TRANSACTIONS", + table: "TRANSACTIONS", properties: [ { name: "Id", @@ -130,7 +134,7 @@ export class TransactionsRepository { private readonly dao; - constructor(dataSource?: string) { + constructor(dataSource = "DefaultDB") { this.dao = daoApi.create(TransactionsRepository.DEFINITION, null, dataSource); } @@ -152,7 +156,7 @@ export class TransactionsRepository { const id = this.dao.insert(entity); this.triggerEvent({ operation: "create", - table: "PI_TRANSACTIONS", + table: "TRANSACTIONS", entity: entity, key: { name: "Id", @@ -165,11 +169,13 @@ export class TransactionsRepository { public update(entity: TransactionsUpdateEntity): void { // EntityUtils.setLocalDate(entity, "Date"); + const previousEntity = this.findById(entity.Id); this.dao.update(entity); this.triggerEvent({ operation: "update", - table: "PI_TRANSACTIONS", + table: "TRANSACTIONS", entity: entity, + previousEntity: previousEntity, key: { name: "Id", column: "TRANSACTIONS_ID", @@ -198,7 +204,7 @@ export class TransactionsRepository { this.dao.remove(id); this.triggerEvent({ operation: "delete", - table: "PI_TRANSACTIONS", + table: "TRANSACTIONS", entity: entity, key: { name: "Id", @@ -213,7 +219,7 @@ export class TransactionsRepository { } public customDataCount(): number { - const resultSet = query.execute('SELECT COUNT(*) AS COUNT FROM "PI_TRANSACTIONS"'); + const resultSet = query.execute('SELECT COUNT(*) AS COUNT FROM "TRANSACTIONS"'); if (resultSet !== null && resultSet[0] !== null) { if (resultSet[0].COUNT !== undefined && resultSet[0].COUNT !== null) { return resultSet[0].COUNT; @@ -224,7 +230,7 @@ export class TransactionsRepository { return 0; } - private async triggerEvent(data: TransactionsEntityEvent) { + private async triggerEvent(data: TransactionsEntityEvent | TransactionsUpdateEntityEvent) { const triggerExtensions = await extensions.loadExtensionModules("dirigible-bank-server-transactions-Transactions", ["trigger"]); triggerExtensions.forEach(triggerExtension => { try { @@ -233,6 +239,6 @@ export class TransactionsRepository { console.error(error); } }); - producer.topic("dirigible-bank-server/transactions/Transactions").send(JSON.stringify(data)); + producer.topic("dirigible-bank-server-transactions-Transactions").send(JSON.stringify(data)); } -} \ No newline at end of file +} diff --git a/dirigible-bank-server/gen/dao/users/Users.extensionpoint b/dirigible-bank-server/gen/dirigible-bank-server/dao/users/Users.extensionpoint similarity index 100% rename from dirigible-bank-server/gen/dao/users/Users.extensionpoint rename to dirigible-bank-server/gen/dirigible-bank-server/dao/users/Users.extensionpoint diff --git a/dirigible-bank-server/gen/dao/users/UsersRepository.ts b/dirigible-bank-server/gen/dirigible-bank-server/dao/users/UsersRepository.ts similarity index 93% rename from dirigible-bank-server/gen/dao/users/UsersRepository.ts rename to dirigible-bank-server/gen/dirigible-bank-server/dao/users/UsersRepository.ts index 1029c45..52d49d6 100644 --- a/dirigible-bank-server/gen/dao/users/UsersRepository.ts +++ b/dirigible-bank-server/gen/dirigible-bank-server/dao/users/UsersRepository.ts @@ -10,8 +10,8 @@ export interface UsersEntity { Email: string; Password: string; Phone: string; - Country?: number; Username: string; + Country?: number; } export interface UsersCreateEntity { @@ -20,8 +20,8 @@ export interface UsersCreateEntity { readonly Email: string; readonly Password: string; readonly Phone: string; - readonly Country?: number; readonly Username: string; + readonly Country?: number; } export interface UsersUpdateEntity extends UsersCreateEntity { @@ -37,8 +37,8 @@ export interface UsersEntityOptions { Email?: string | string[]; Password?: string | string[]; Phone?: string | string[]; - Country?: number | number[]; Username?: string | string[]; + Country?: number | number[]; }; notEquals?: { Id?: number | number[]; @@ -47,8 +47,8 @@ export interface UsersEntityOptions { Email?: string | string[]; Password?: string | string[]; Phone?: string | string[]; - Country?: number | number[]; Username?: string | string[]; + Country?: number | number[]; }; contains?: { Id?: number; @@ -57,8 +57,8 @@ export interface UsersEntityOptions { Email?: string; Password?: string; Phone?: string; - Country?: number; Username?: string; + Country?: number; }; greaterThan?: { Id?: number; @@ -67,8 +67,8 @@ export interface UsersEntityOptions { Email?: string; Password?: string; Phone?: string; - Country?: number; Username?: string; + Country?: number; }; greaterThanOrEqual?: { Id?: number; @@ -77,8 +77,8 @@ export interface UsersEntityOptions { Email?: string; Password?: string; Phone?: string; - Country?: number; Username?: string; + Country?: number; }; lessThan?: { Id?: number; @@ -87,8 +87,8 @@ export interface UsersEntityOptions { Email?: string; Password?: string; Phone?: string; - Country?: number; Username?: string; + Country?: number; }; lessThanOrEqual?: { Id?: number; @@ -97,8 +97,8 @@ export interface UsersEntityOptions { Email?: string; Password?: string; Phone?: string; - Country?: number; Username?: string; + Country?: number; }; }, $select?: (keyof UsersEntity)[], @@ -119,10 +119,14 @@ interface UsersEntityEvent { } } +interface UsersUpdateEntityEvent extends UsersEntityEvent { + readonly previousEntity: UsersEntity; +} + export class UsersRepository { private static readonly DEFINITION = { - table: "PI_USERS", + table: "USERS", properties: [ { name: "Id", @@ -161,23 +165,23 @@ export class UsersRepository { type: "VARCHAR", required: true }, - { - name: "Country", - column: "USERS_COUNTRY", - type: "INTEGER", - }, { name: "Username", column: "USERS_USERNAME", type: "VARCHAR", required: true + }, + { + name: "Country", + column: "USERS_COUNTRY", + type: "INTEGER", } ] }; private readonly dao; - constructor(dataSource?: string) { + constructor(dataSource = "DefaultDB") { this.dao = daoApi.create(UsersRepository.DEFINITION, null, dataSource); } @@ -194,7 +198,7 @@ export class UsersRepository { const id = this.dao.insert(entity); this.triggerEvent({ operation: "create", - table: "PI_USERS", + table: "USERS", entity: entity, key: { name: "Id", @@ -206,11 +210,13 @@ export class UsersRepository { } public update(entity: UsersUpdateEntity): void { + const previousEntity = this.findById(entity.Id); this.dao.update(entity); this.triggerEvent({ operation: "update", - table: "PI_USERS", + table: "USERS", entity: entity, + previousEntity: previousEntity, key: { name: "Id", column: "USERS_ID", @@ -239,7 +245,7 @@ export class UsersRepository { this.dao.remove(id); this.triggerEvent({ operation: "delete", - table: "PI_USERS", + table: "USERS", entity: entity, key: { name: "Id", @@ -254,7 +260,7 @@ export class UsersRepository { } public customDataCount(): number { - const resultSet = query.execute('SELECT COUNT(*) AS COUNT FROM "PI_USERS"'); + const resultSet = query.execute('SELECT COUNT(*) AS COUNT FROM "USERS"'); if (resultSet !== null && resultSet[0] !== null) { if (resultSet[0].COUNT !== undefined && resultSet[0].COUNT !== null) { return resultSet[0].COUNT; @@ -265,7 +271,7 @@ export class UsersRepository { return 0; } - private async triggerEvent(data: UsersEntityEvent) { + private async triggerEvent(data: UsersEntityEvent | UsersUpdateEntityEvent) { const triggerExtensions = await extensions.loadExtensionModules("dirigible-bank-server-users-Users", ["trigger"]); triggerExtensions.forEach(triggerExtension => { try { @@ -274,6 +280,6 @@ export class UsersRepository { console.error(error); } }); - producer.topic("dirigible-bank-server/users/Users").send(JSON.stringify(data)); + producer.topic("dirigible-bank-server-users-Users").send(JSON.stringify(data)); } -} \ No newline at end of file +} diff --git a/dirigible-bank-server/gen/dao/utils/EntityUtils.ts b/dirigible-bank-server/gen/dirigible-bank-server/dao/utils/EntityUtils.ts similarity index 100% rename from dirigible-bank-server/gen/dao/utils/EntityUtils.ts rename to dirigible-bank-server/gen/dirigible-bank-server/dao/utils/EntityUtils.ts diff --git a/dirigible-bank-server/gen/dirigible-bank-server/dirigible-bank-server.openapi b/dirigible-bank-server/gen/dirigible-bank-server/dirigible-bank-server.openapi new file mode 100644 index 0000000..3c58ab2 --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/dirigible-bank-server.openapi @@ -0,0 +1,5688 @@ +openapi: 3.0.3 +info: + title: PI Smart Server - OpenAPI 3.0 + version: 1.0.0 + description: Bank Account Management Application +externalDocs: + description: Find out more about Eclipse Dirigible + url: https://dirigible.io +servers: + - url: /services/ts +tags: + - name: users + - name: bankAccount + - name: cards + - name: entities + - name: entities + - name: entities + - name: transactions + - name: entities + - name: entities +paths: + /dirigible-bank-server/gen/dirigible-bank-server/api/users/UsersService.ts: + get: + summary: List Users + parameters: + - in: query + name: $limit + description: The number of records to be returned _(both `$limit` and `$offset` should be provided)_. + required: false + allowReserved: true + schema: + type: integer + allowEmptyValue: true + - in: query + name: $offset + description: The number of records to skip _(both `$limit` and `$offset` should be provided)_. + required: false + allowReserved: true + schema: + type: integer + allowEmptyValue: true + tags: + - users + responses: + 200: + description: Successful Request + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Users' + 400: + description: Bad Request Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + post: + summary: Create Users + tags: + - users + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Users' + required: true + responses: + 201: + description: Successful Request + content: + application/json: + schema: + $ref: '#/components/schemas/Users' + 400: + description: Bad Request Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /dirigible-bank-server/gen/dirigible-bank-server/api/users/UsersService.ts/{id}: + get: + summary: Get Users by Id + parameters: + - in: path + name: id + description: The Id of the entity. + required: true + schema: + type: string + tags: + - users + responses: + 200: + description: Successful Request + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Users' + 404: + description: Entity Not Found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + put: + summary: Update Users by Id + parameters: + - in: path + name: id + description: The Id of the entity. + required: true + schema: + type: string + tags: + - users + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Users' + required: true + responses: + 200: + description: Successful Request + content: + application/json: + schema: + $ref: '#/components/schemas/Users' + 400: + description: Bad Request Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 404: + description: Entity Not Found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + delete: + summary: Delete Users by Id + parameters: + - in: path + name: id + description: The Id of the entity. + required: true + schema: + type: string + tags: + - users + responses: + 204: + description: Successful Request + 404: + description: Entity Not Found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /dirigible-bank-server/gen/dirigible-bank-server/api/users/UsersService.ts/count: + get: + summary: Count the number of Users + tags: + - users + responses: + 200: + description: Successful Request + content: + application/json: + schema: + type: integer + example: 100 + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + post: + summary: Count the number of Users by UsersFilterOptions + tags: + - users + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UsersFilterOptions' + examples: + countWithMultipleCriteria: + summary: Count with multiple criteria + value: + $filter: + notEquals: + Id: 33 + contains: + FName: "abcd" + LName: "abcd" + Email: "abcd" + Password: "abcd" + Phone: "abcd" + Username: "abcd" + greaterThan: + Id: 0 + lessThanOrEqual: + Id: 100 + countWithEquals: + summary: Count with Equals + value: + $filter: + equals: + Id: 0 + countWithNotEquals: + summary: Count with Not Equals + value: + $filter: + notEquals: + Id: 0 + countWithContains: + summary: Count with Contains + value: + $filter: + contains: + FName: "abcd" + LName: "abcd" + Email: "abcd" + Password: "abcd" + Phone: "abcd" + Username: "abcd" + countWithGreaterThan: + summary: Count with Greater Than + value: + $filter: + greaterThan: + Id: 0 + countWithGreaterThanOrEqual: + summary: Count with Greater Than Or Equal + value: + $filter: + greaterThanOrEqual: + Id: 0 + countWithLessThan: + summary: Count with Less Than + value: + $filter: + lessThan: + Id: 0 + countWithLessThanOrEqual: + summary: Count with Less Than Or Equal + value: + $filter: + lessThanOrEqual: + Id: 0 + required: true + responses: + 200: + description: Successful Request + content: + application/json: + schema: + type: integer + example: 100 + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /dirigible-bank-server/gen/dirigible-bank-server/api/users/UsersService.ts/search: + post: + summary: Search Users by UsersFilterOptions + tags: + - users + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UsersFilterOptions' + examples: + searchWithMultipleCriteria: + summary: Search with multiple criteria + value: + $filter: + notEquals: + Id: 33 + contains: + FName: "abcd" + LName: "abcd" + Email: "abcd" + Password: "abcd" + Phone: "abcd" + Username: "abcd" + greaterThan: + Id: 0 + lessThanOrEqual: + Id: 100 + searchWithEquals: + summary: Search with Equals + value: + $filter: + equals: + Id: 0 + searchWithNotEquals: + summary: Search with Not Equals + value: + $filter: + notEquals: + Id: 0 + searchWithContains: + summary: Search with Contains + value: + $filter: + contains: + FName: "abcd" + LName: "abcd" + Email: "abcd" + Password: "abcd" + Phone: "abcd" + Username: "abcd" + searchWithGreaterThan: + summary: Search with Greater Than + value: + $filter: + greaterThan: + Id: 0 + searchWithGreaterThanOrEqual: + summary: Search with Greater Than Or Equal + value: + $filter: + greaterThanOrEqual: + Id: 0 + searchWithLessThan: + summary: Search with Less Than + value: + $filter: + lessThan: + Id: 0 + searchWithLessThanOrEqual: + summary: Search with Less Than Or Equal + value: + $filter: + lessThanOrEqual: + Id: 0 + required: true + responses: + 200: + description: Successful Request + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Users' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /dirigible-bank-server/gen/dirigible-bank-server/api/bankAccount/BankAccountsService.ts: + get: + summary: List BankAccounts + parameters: + - in: query + name: $limit + description: The number of records to be returned _(both `$limit` and `$offset` should be provided)_. + required: false + allowReserved: true + schema: + type: integer + allowEmptyValue: true + - in: query + name: $offset + description: The number of records to skip _(both `$limit` and `$offset` should be provided)_. + required: false + allowReserved: true + schema: + type: integer + allowEmptyValue: true + tags: + - bankAccount + responses: + 200: + description: Successful Request + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/BankAccounts' + 400: + description: Bad Request Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + post: + summary: Create BankAccounts + tags: + - bankAccount + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/BankAccounts' + required: true + responses: + 201: + description: Successful Request + content: + application/json: + schema: + $ref: '#/components/schemas/BankAccounts' + 400: + description: Bad Request Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /dirigible-bank-server/gen/dirigible-bank-server/api/bankAccount/BankAccountsService.ts/{id}: + get: + summary: Get BankAccounts by Id + parameters: + - in: path + name: id + description: The Id of the entity. + required: true + schema: + type: string + tags: + - bankAccount + responses: + 200: + description: Successful Request + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/BankAccounts' + 404: + description: Entity Not Found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + put: + summary: Update BankAccounts by Id + parameters: + - in: path + name: id + description: The Id of the entity. + required: true + schema: + type: string + tags: + - bankAccount + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/BankAccounts' + required: true + responses: + 200: + description: Successful Request + content: + application/json: + schema: + $ref: '#/components/schemas/BankAccounts' + 400: + description: Bad Request Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 404: + description: Entity Not Found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + delete: + summary: Delete BankAccounts by Id + parameters: + - in: path + name: id + description: The Id of the entity. + required: true + schema: + type: string + tags: + - bankAccount + responses: + 204: + description: Successful Request + 404: + description: Entity Not Found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /dirigible-bank-server/gen/dirigible-bank-server/api/bankAccount/BankAccountsService.ts/count: + get: + summary: Count the number of BankAccounts + tags: + - bankAccount + responses: + 200: + description: Successful Request + content: + application/json: + schema: + type: integer + example: 100 + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + post: + summary: Count the number of BankAccounts by BankAccountsFilterOptions + tags: + - bankAccount + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/BankAccountsFilterOptions' + examples: + countWithMultipleCriteria: + summary: Count with multiple criteria + value: + $filter: + notEquals: + Id: 33 + contains: + IBAN: "abcd" + greaterThan: + Id: 0 + lessThanOrEqual: + Id: 100 + countWithEquals: + summary: Count with Equals + value: + $filter: + equals: + Id: 0 + countWithNotEquals: + summary: Count with Not Equals + value: + $filter: + notEquals: + Id: 0 + countWithContains: + summary: Count with Contains + value: + $filter: + contains: + IBAN: "abcd" + countWithGreaterThan: + summary: Count with Greater Than + value: + $filter: + greaterThan: + Id: 0 + countWithGreaterThanOrEqual: + summary: Count with Greater Than Or Equal + value: + $filter: + greaterThanOrEqual: + Id: 0 + countWithLessThan: + summary: Count with Less Than + value: + $filter: + lessThan: + Id: 0 + countWithLessThanOrEqual: + summary: Count with Less Than Or Equal + value: + $filter: + lessThanOrEqual: + Id: 0 + required: true + responses: + 200: + description: Successful Request + content: + application/json: + schema: + type: integer + example: 100 + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /dirigible-bank-server/gen/dirigible-bank-server/api/bankAccount/BankAccountsService.ts/search: + post: + summary: Search BankAccounts by BankAccountsFilterOptions + tags: + - bankAccount + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/BankAccountsFilterOptions' + examples: + searchWithMultipleCriteria: + summary: Search with multiple criteria + value: + $filter: + notEquals: + Id: 33 + contains: + IBAN: "abcd" + greaterThan: + Id: 0 + lessThanOrEqual: + Id: 100 + searchWithEquals: + summary: Search with Equals + value: + $filter: + equals: + Id: 0 + searchWithNotEquals: + summary: Search with Not Equals + value: + $filter: + notEquals: + Id: 0 + searchWithContains: + summary: Search with Contains + value: + $filter: + contains: + IBAN: "abcd" + searchWithGreaterThan: + summary: Search with Greater Than + value: + $filter: + greaterThan: + Id: 0 + searchWithGreaterThanOrEqual: + summary: Search with Greater Than Or Equal + value: + $filter: + greaterThanOrEqual: + Id: 0 + searchWithLessThan: + summary: Search with Less Than + value: + $filter: + lessThan: + Id: 0 + searchWithLessThanOrEqual: + summary: Search with Less Than Or Equal + value: + $filter: + lessThanOrEqual: + Id: 0 + required: true + responses: + 200: + description: Successful Request + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/BankAccounts' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /dirigible-bank-server/gen/dirigible-bank-server/api/cards/CardsService.ts: + get: + summary: List Cards + parameters: + - in: query + name: $limit + description: The number of records to be returned _(both `$limit` and `$offset` should be provided)_. + required: false + allowReserved: true + schema: + type: integer + allowEmptyValue: true + - in: query + name: $offset + description: The number of records to skip _(both `$limit` and `$offset` should be provided)_. + required: false + allowReserved: true + schema: + type: integer + allowEmptyValue: true + tags: + - cards + responses: + 200: + description: Successful Request + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Cards' + 400: + description: Bad Request Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + post: + summary: Create Cards + tags: + - cards + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Cards' + required: true + responses: + 201: + description: Successful Request + content: + application/json: + schema: + $ref: '#/components/schemas/Cards' + 400: + description: Bad Request Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /dirigible-bank-server/gen/dirigible-bank-server/api/cards/CardsService.ts/{id}: + get: + summary: Get Cards by Id + parameters: + - in: path + name: id + description: The Id of the entity. + required: true + schema: + type: string + tags: + - cards + responses: + 200: + description: Successful Request + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Cards' + 404: + description: Entity Not Found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + put: + summary: Update Cards by Id + parameters: + - in: path + name: id + description: The Id of the entity. + required: true + schema: + type: string + tags: + - cards + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Cards' + required: true + responses: + 200: + description: Successful Request + content: + application/json: + schema: + $ref: '#/components/schemas/Cards' + 400: + description: Bad Request Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 404: + description: Entity Not Found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + delete: + summary: Delete Cards by Id + parameters: + - in: path + name: id + description: The Id of the entity. + required: true + schema: + type: string + tags: + - cards + responses: + 204: + description: Successful Request + 404: + description: Entity Not Found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /dirigible-bank-server/gen/dirigible-bank-server/api/cards/CardsService.ts/count: + get: + summary: Count the number of Cards + tags: + - cards + responses: + 200: + description: Successful Request + content: + application/json: + schema: + type: integer + example: 100 + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + post: + summary: Count the number of Cards by CardsFilterOptions + tags: + - cards + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CardsFilterOptions' + examples: + countWithMultipleCriteria: + summary: Count with multiple criteria + value: + $filter: + notEquals: + Id: 33 + contains: + CardNumber: "abcd" + greaterThan: + Id: 0 + lessThanOrEqual: + Id: 100 + countWithEquals: + summary: Count with Equals + value: + $filter: + equals: + Id: 0 + countWithNotEquals: + summary: Count with Not Equals + value: + $filter: + notEquals: + Id: 0 + countWithContains: + summary: Count with Contains + value: + $filter: + contains: + CardNumber: "abcd" + countWithGreaterThan: + summary: Count with Greater Than + value: + $filter: + greaterThan: + Id: 0 + countWithGreaterThanOrEqual: + summary: Count with Greater Than Or Equal + value: + $filter: + greaterThanOrEqual: + Id: 0 + countWithLessThan: + summary: Count with Less Than + value: + $filter: + lessThan: + Id: 0 + countWithLessThanOrEqual: + summary: Count with Less Than Or Equal + value: + $filter: + lessThanOrEqual: + Id: 0 + required: true + responses: + 200: + description: Successful Request + content: + application/json: + schema: + type: integer + example: 100 + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /dirigible-bank-server/gen/dirigible-bank-server/api/cards/CardsService.ts/search: + post: + summary: Search Cards by CardsFilterOptions + tags: + - cards + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CardsFilterOptions' + examples: + searchWithMultipleCriteria: + summary: Search with multiple criteria + value: + $filter: + notEquals: + Id: 33 + contains: + CardNumber: "abcd" + greaterThan: + Id: 0 + lessThanOrEqual: + Id: 100 + searchWithEquals: + summary: Search with Equals + value: + $filter: + equals: + Id: 0 + searchWithNotEquals: + summary: Search with Not Equals + value: + $filter: + notEquals: + Id: 0 + searchWithContains: + summary: Search with Contains + value: + $filter: + contains: + CardNumber: "abcd" + searchWithGreaterThan: + summary: Search with Greater Than + value: + $filter: + greaterThan: + Id: 0 + searchWithGreaterThanOrEqual: + summary: Search with Greater Than Or Equal + value: + $filter: + greaterThanOrEqual: + Id: 0 + searchWithLessThan: + summary: Search with Less Than + value: + $filter: + lessThan: + Id: 0 + searchWithLessThanOrEqual: + summary: Search with Less Than Or Equal + value: + $filter: + lessThanOrEqual: + Id: 0 + required: true + responses: + 200: + description: Successful Request + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Cards' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /dirigible-bank-server/gen/dirigible-bank-server/api/entities/BankAccountTypeService.ts: + get: + summary: List BankAccountType + parameters: + - in: query + name: $limit + description: The number of records to be returned _(both `$limit` and `$offset` should be provided)_. + required: false + allowReserved: true + schema: + type: integer + allowEmptyValue: true + - in: query + name: $offset + description: The number of records to skip _(both `$limit` and `$offset` should be provided)_. + required: false + allowReserved: true + schema: + type: integer + allowEmptyValue: true + tags: + - entities + responses: + 200: + description: Successful Request + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/BankAccountType' + 400: + description: Bad Request Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + post: + summary: Create BankAccountType + tags: + - entities + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/BankAccountType' + required: true + responses: + 201: + description: Successful Request + content: + application/json: + schema: + $ref: '#/components/schemas/BankAccountType' + 400: + description: Bad Request Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /dirigible-bank-server/gen/dirigible-bank-server/api/entities/BankAccountTypeService.ts/{id}: + get: + summary: Get BankAccountType by Id + parameters: + - in: path + name: id + description: The Id of the entity. + required: true + schema: + type: string + tags: + - entities + responses: + 200: + description: Successful Request + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/BankAccountType' + 404: + description: Entity Not Found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + put: + summary: Update BankAccountType by Id + parameters: + - in: path + name: id + description: The Id of the entity. + required: true + schema: + type: string + tags: + - entities + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/BankAccountType' + required: true + responses: + 200: + description: Successful Request + content: + application/json: + schema: + $ref: '#/components/schemas/BankAccountType' + 400: + description: Bad Request Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 404: + description: Entity Not Found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + delete: + summary: Delete BankAccountType by Id + parameters: + - in: path + name: id + description: The Id of the entity. + required: true + schema: + type: string + tags: + - entities + responses: + 204: + description: Successful Request + 404: + description: Entity Not Found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /dirigible-bank-server/gen/dirigible-bank-server/api/entities/BankAccountTypeService.ts/count: + get: + summary: Count the number of BankAccountType + tags: + - entities + responses: + 200: + description: Successful Request + content: + application/json: + schema: + type: integer + example: 100 + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + post: + summary: Count the number of BankAccountType by BankAccountTypeFilterOptions + tags: + - entities + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/BankAccountTypeFilterOptions' + examples: + countWithMultipleCriteria: + summary: Count with multiple criteria + value: + $filter: + notEquals: + Id: 33 + contains: + Name: "abcd" + greaterThan: + Id: 0 + lessThanOrEqual: + Id: 100 + countWithEquals: + summary: Count with Equals + value: + $filter: + equals: + Id: 0 + countWithNotEquals: + summary: Count with Not Equals + value: + $filter: + notEquals: + Id: 0 + countWithContains: + summary: Count with Contains + value: + $filter: + contains: + Name: "abcd" + countWithGreaterThan: + summary: Count with Greater Than + value: + $filter: + greaterThan: + Id: 0 + countWithGreaterThanOrEqual: + summary: Count with Greater Than Or Equal + value: + $filter: + greaterThanOrEqual: + Id: 0 + countWithLessThan: + summary: Count with Less Than + value: + $filter: + lessThan: + Id: 0 + countWithLessThanOrEqual: + summary: Count with Less Than Or Equal + value: + $filter: + lessThanOrEqual: + Id: 0 + required: true + responses: + 200: + description: Successful Request + content: + application/json: + schema: + type: integer + example: 100 + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /dirigible-bank-server/gen/dirigible-bank-server/api/entities/BankAccountTypeService.ts/search: + post: + summary: Search BankAccountType by BankAccountTypeFilterOptions + tags: + - entities + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/BankAccountTypeFilterOptions' + examples: + searchWithMultipleCriteria: + summary: Search with multiple criteria + value: + $filter: + notEquals: + Id: 33 + contains: + Name: "abcd" + greaterThan: + Id: 0 + lessThanOrEqual: + Id: 100 + searchWithEquals: + summary: Search with Equals + value: + $filter: + equals: + Id: 0 + searchWithNotEquals: + summary: Search with Not Equals + value: + $filter: + notEquals: + Id: 0 + searchWithContains: + summary: Search with Contains + value: + $filter: + contains: + Name: "abcd" + searchWithGreaterThan: + summary: Search with Greater Than + value: + $filter: + greaterThan: + Id: 0 + searchWithGreaterThanOrEqual: + summary: Search with Greater Than Or Equal + value: + $filter: + greaterThanOrEqual: + Id: 0 + searchWithLessThan: + summary: Search with Less Than + value: + $filter: + lessThan: + Id: 0 + searchWithLessThanOrEqual: + summary: Search with Less Than Or Equal + value: + $filter: + lessThanOrEqual: + Id: 0 + required: true + responses: + 200: + description: Successful Request + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/BankAccountType' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /dirigible-bank-server/gen/dirigible-bank-server/api/entities/BankAccountStatusService.ts: + get: + summary: List BankAccountStatus + parameters: + - in: query + name: $limit + description: The number of records to be returned _(both `$limit` and `$offset` should be provided)_. + required: false + allowReserved: true + schema: + type: integer + allowEmptyValue: true + - in: query + name: $offset + description: The number of records to skip _(both `$limit` and `$offset` should be provided)_. + required: false + allowReserved: true + schema: + type: integer + allowEmptyValue: true + tags: + - entities + responses: + 200: + description: Successful Request + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/BankAccountStatus' + 400: + description: Bad Request Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + post: + summary: Create BankAccountStatus + tags: + - entities + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/BankAccountStatus' + required: true + responses: + 201: + description: Successful Request + content: + application/json: + schema: + $ref: '#/components/schemas/BankAccountStatus' + 400: + description: Bad Request Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /dirigible-bank-server/gen/dirigible-bank-server/api/entities/BankAccountStatusService.ts/{id}: + get: + summary: Get BankAccountStatus by Id + parameters: + - in: path + name: id + description: The Id of the entity. + required: true + schema: + type: string + tags: + - entities + responses: + 200: + description: Successful Request + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/BankAccountStatus' + 404: + description: Entity Not Found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + put: + summary: Update BankAccountStatus by Id + parameters: + - in: path + name: id + description: The Id of the entity. + required: true + schema: + type: string + tags: + - entities + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/BankAccountStatus' + required: true + responses: + 200: + description: Successful Request + content: + application/json: + schema: + $ref: '#/components/schemas/BankAccountStatus' + 400: + description: Bad Request Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 404: + description: Entity Not Found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + delete: + summary: Delete BankAccountStatus by Id + parameters: + - in: path + name: id + description: The Id of the entity. + required: true + schema: + type: string + tags: + - entities + responses: + 204: + description: Successful Request + 404: + description: Entity Not Found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /dirigible-bank-server/gen/dirigible-bank-server/api/entities/BankAccountStatusService.ts/count: + get: + summary: Count the number of BankAccountStatus + tags: + - entities + responses: + 200: + description: Successful Request + content: + application/json: + schema: + type: integer + example: 100 + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + post: + summary: Count the number of BankAccountStatus by BankAccountStatusFilterOptions + tags: + - entities + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/BankAccountStatusFilterOptions' + examples: + countWithMultipleCriteria: + summary: Count with multiple criteria + value: + $filter: + notEquals: + Id: 33 + contains: + Name: "abcd" + greaterThan: + Id: 0 + lessThanOrEqual: + Id: 100 + countWithEquals: + summary: Count with Equals + value: + $filter: + equals: + Id: 0 + countWithNotEquals: + summary: Count with Not Equals + value: + $filter: + notEquals: + Id: 0 + countWithContains: + summary: Count with Contains + value: + $filter: + contains: + Name: "abcd" + countWithGreaterThan: + summary: Count with Greater Than + value: + $filter: + greaterThan: + Id: 0 + countWithGreaterThanOrEqual: + summary: Count with Greater Than Or Equal + value: + $filter: + greaterThanOrEqual: + Id: 0 + countWithLessThan: + summary: Count with Less Than + value: + $filter: + lessThan: + Id: 0 + countWithLessThanOrEqual: + summary: Count with Less Than Or Equal + value: + $filter: + lessThanOrEqual: + Id: 0 + required: true + responses: + 200: + description: Successful Request + content: + application/json: + schema: + type: integer + example: 100 + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /dirigible-bank-server/gen/dirigible-bank-server/api/entities/BankAccountStatusService.ts/search: + post: + summary: Search BankAccountStatus by BankAccountStatusFilterOptions + tags: + - entities + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/BankAccountStatusFilterOptions' + examples: + searchWithMultipleCriteria: + summary: Search with multiple criteria + value: + $filter: + notEquals: + Id: 33 + contains: + Name: "abcd" + greaterThan: + Id: 0 + lessThanOrEqual: + Id: 100 + searchWithEquals: + summary: Search with Equals + value: + $filter: + equals: + Id: 0 + searchWithNotEquals: + summary: Search with Not Equals + value: + $filter: + notEquals: + Id: 0 + searchWithContains: + summary: Search with Contains + value: + $filter: + contains: + Name: "abcd" + searchWithGreaterThan: + summary: Search with Greater Than + value: + $filter: + greaterThan: + Id: 0 + searchWithGreaterThanOrEqual: + summary: Search with Greater Than Or Equal + value: + $filter: + greaterThanOrEqual: + Id: 0 + searchWithLessThan: + summary: Search with Less Than + value: + $filter: + lessThan: + Id: 0 + searchWithLessThanOrEqual: + summary: Search with Less Than Or Equal + value: + $filter: + lessThanOrEqual: + Id: 0 + required: true + responses: + 200: + description: Successful Request + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/BankAccountStatus' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /dirigible-bank-server/gen/dirigible-bank-server/api/entities/CardTypeService.ts: + get: + summary: List CardType + parameters: + - in: query + name: $limit + description: The number of records to be returned _(both `$limit` and `$offset` should be provided)_. + required: false + allowReserved: true + schema: + type: integer + allowEmptyValue: true + - in: query + name: $offset + description: The number of records to skip _(both `$limit` and `$offset` should be provided)_. + required: false + allowReserved: true + schema: + type: integer + allowEmptyValue: true + tags: + - entities + responses: + 200: + description: Successful Request + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/CardType' + 400: + description: Bad Request Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + post: + summary: Create CardType + tags: + - entities + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CardType' + required: true + responses: + 201: + description: Successful Request + content: + application/json: + schema: + $ref: '#/components/schemas/CardType' + 400: + description: Bad Request Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /dirigible-bank-server/gen/dirigible-bank-server/api/entities/CardTypeService.ts/{id}: + get: + summary: Get CardType by Id + parameters: + - in: path + name: id + description: The Id of the entity. + required: true + schema: + type: string + tags: + - entities + responses: + 200: + description: Successful Request + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/CardType' + 404: + description: Entity Not Found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + put: + summary: Update CardType by Id + parameters: + - in: path + name: id + description: The Id of the entity. + required: true + schema: + type: string + tags: + - entities + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CardType' + required: true + responses: + 200: + description: Successful Request + content: + application/json: + schema: + $ref: '#/components/schemas/CardType' + 400: + description: Bad Request Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 404: + description: Entity Not Found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + delete: + summary: Delete CardType by Id + parameters: + - in: path + name: id + description: The Id of the entity. + required: true + schema: + type: string + tags: + - entities + responses: + 204: + description: Successful Request + 404: + description: Entity Not Found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /dirigible-bank-server/gen/dirigible-bank-server/api/entities/CardTypeService.ts/count: + get: + summary: Count the number of CardType + tags: + - entities + responses: + 200: + description: Successful Request + content: + application/json: + schema: + type: integer + example: 100 + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + post: + summary: Count the number of CardType by CardTypeFilterOptions + tags: + - entities + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CardTypeFilterOptions' + examples: + countWithMultipleCriteria: + summary: Count with multiple criteria + value: + $filter: + notEquals: + Id: 33 + contains: + Name: "abcd" + greaterThan: + Id: 0 + lessThanOrEqual: + Id: 100 + countWithEquals: + summary: Count with Equals + value: + $filter: + equals: + Id: 0 + countWithNotEquals: + summary: Count with Not Equals + value: + $filter: + notEquals: + Id: 0 + countWithContains: + summary: Count with Contains + value: + $filter: + contains: + Name: "abcd" + countWithGreaterThan: + summary: Count with Greater Than + value: + $filter: + greaterThan: + Id: 0 + countWithGreaterThanOrEqual: + summary: Count with Greater Than Or Equal + value: + $filter: + greaterThanOrEqual: + Id: 0 + countWithLessThan: + summary: Count with Less Than + value: + $filter: + lessThan: + Id: 0 + countWithLessThanOrEqual: + summary: Count with Less Than Or Equal + value: + $filter: + lessThanOrEqual: + Id: 0 + required: true + responses: + 200: + description: Successful Request + content: + application/json: + schema: + type: integer + example: 100 + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /dirigible-bank-server/gen/dirigible-bank-server/api/entities/CardTypeService.ts/search: + post: + summary: Search CardType by CardTypeFilterOptions + tags: + - entities + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CardTypeFilterOptions' + examples: + searchWithMultipleCriteria: + summary: Search with multiple criteria + value: + $filter: + notEquals: + Id: 33 + contains: + Name: "abcd" + greaterThan: + Id: 0 + lessThanOrEqual: + Id: 100 + searchWithEquals: + summary: Search with Equals + value: + $filter: + equals: + Id: 0 + searchWithNotEquals: + summary: Search with Not Equals + value: + $filter: + notEquals: + Id: 0 + searchWithContains: + summary: Search with Contains + value: + $filter: + contains: + Name: "abcd" + searchWithGreaterThan: + summary: Search with Greater Than + value: + $filter: + greaterThan: + Id: 0 + searchWithGreaterThanOrEqual: + summary: Search with Greater Than Or Equal + value: + $filter: + greaterThanOrEqual: + Id: 0 + searchWithLessThan: + summary: Search with Less Than + value: + $filter: + lessThan: + Id: 0 + searchWithLessThanOrEqual: + summary: Search with Less Than Or Equal + value: + $filter: + lessThanOrEqual: + Id: 0 + required: true + responses: + 200: + description: Successful Request + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/CardType' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /dirigible-bank-server/gen/dirigible-bank-server/api/transactions/TransactionsService.ts: + get: + summary: List Transactions + parameters: + - in: query + name: $limit + description: The number of records to be returned _(both `$limit` and `$offset` should be provided)_. + required: false + allowReserved: true + schema: + type: integer + allowEmptyValue: true + - in: query + name: $offset + description: The number of records to skip _(both `$limit` and `$offset` should be provided)_. + required: false + allowReserved: true + schema: + type: integer + allowEmptyValue: true + tags: + - transactions + responses: + 200: + description: Successful Request + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Transactions' + 400: + description: Bad Request Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + post: + summary: Create Transactions + tags: + - transactions + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Transactions' + required: true + responses: + 201: + description: Successful Request + content: + application/json: + schema: + $ref: '#/components/schemas/Transactions' + 400: + description: Bad Request Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /dirigible-bank-server/gen/dirigible-bank-server/api/transactions/TransactionsService.ts/{id}: + get: + summary: Get Transactions by Id + parameters: + - in: path + name: id + description: The Id of the entity. + required: true + schema: + type: string + tags: + - transactions + responses: + 200: + description: Successful Request + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Transactions' + 404: + description: Entity Not Found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + put: + summary: Update Transactions by Id + parameters: + - in: path + name: id + description: The Id of the entity. + required: true + schema: + type: string + tags: + - transactions + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Transactions' + required: true + responses: + 200: + description: Successful Request + content: + application/json: + schema: + $ref: '#/components/schemas/Transactions' + 400: + description: Bad Request Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 404: + description: Entity Not Found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + delete: + summary: Delete Transactions by Id + parameters: + - in: path + name: id + description: The Id of the entity. + required: true + schema: + type: string + tags: + - transactions + responses: + 204: + description: Successful Request + 404: + description: Entity Not Found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /dirigible-bank-server/gen/dirigible-bank-server/api/transactions/TransactionsService.ts/count: + get: + summary: Count the number of Transactions + tags: + - transactions + responses: + 200: + description: Successful Request + content: + application/json: + schema: + type: integer + example: 100 + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + post: + summary: Count the number of Transactions by TransactionsFilterOptions + tags: + - transactions + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/TransactionsFilterOptions' + examples: + countWithMultipleCriteria: + summary: Count with multiple criteria + value: + $filter: + notEquals: + Id: 33 + greaterThan: + Id: 0 + lessThanOrEqual: + Id: 100 + countWithEquals: + summary: Count with Equals + value: + $filter: + equals: + Id: 0 + countWithNotEquals: + summary: Count with Not Equals + value: + $filter: + notEquals: + Id: 0 + countWithGreaterThan: + summary: Count with Greater Than + value: + $filter: + greaterThan: + Id: 0 + countWithGreaterThanOrEqual: + summary: Count with Greater Than Or Equal + value: + $filter: + greaterThanOrEqual: + Id: 0 + countWithLessThan: + summary: Count with Less Than + value: + $filter: + lessThan: + Id: 0 + countWithLessThanOrEqual: + summary: Count with Less Than Or Equal + value: + $filter: + lessThanOrEqual: + Id: 0 + required: true + responses: + 200: + description: Successful Request + content: + application/json: + schema: + type: integer + example: 100 + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /dirigible-bank-server/gen/dirigible-bank-server/api/transactions/TransactionsService.ts/search: + post: + summary: Search Transactions by TransactionsFilterOptions + tags: + - transactions + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/TransactionsFilterOptions' + examples: + searchWithMultipleCriteria: + summary: Search with multiple criteria + value: + $filter: + notEquals: + Id: 33 + greaterThan: + Id: 0 + lessThanOrEqual: + Id: 100 + searchWithEquals: + summary: Search with Equals + value: + $filter: + equals: + Id: 0 + searchWithNotEquals: + summary: Search with Not Equals + value: + $filter: + notEquals: + Id: 0 + searchWithGreaterThan: + summary: Search with Greater Than + value: + $filter: + greaterThan: + Id: 0 + searchWithGreaterThanOrEqual: + summary: Search with Greater Than Or Equal + value: + $filter: + greaterThanOrEqual: + Id: 0 + searchWithLessThan: + summary: Search with Less Than + value: + $filter: + lessThan: + Id: 0 + searchWithLessThanOrEqual: + summary: Search with Less Than Or Equal + value: + $filter: + lessThanOrEqual: + Id: 0 + required: true + responses: + 200: + description: Successful Request + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Transactions' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /dirigible-bank-server/gen/dirigible-bank-server/api/entities/CurrencyService.ts: + get: + summary: List Currency + parameters: + - in: query + name: $limit + description: The number of records to be returned _(both `$limit` and `$offset` should be provided)_. + required: false + allowReserved: true + schema: + type: integer + allowEmptyValue: true + - in: query + name: $offset + description: The number of records to skip _(both `$limit` and `$offset` should be provided)_. + required: false + allowReserved: true + schema: + type: integer + allowEmptyValue: true + tags: + - entities + responses: + 200: + description: Successful Request + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Currency' + 400: + description: Bad Request Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + post: + summary: Create Currency + tags: + - entities + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Currency' + required: true + responses: + 201: + description: Successful Request + content: + application/json: + schema: + $ref: '#/components/schemas/Currency' + 400: + description: Bad Request Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /dirigible-bank-server/gen/dirigible-bank-server/api/entities/CurrencyService.ts/{id}: + get: + summary: Get Currency by Id + parameters: + - in: path + name: id + description: The Id of the entity. + required: true + schema: + type: string + tags: + - entities + responses: + 200: + description: Successful Request + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Currency' + 404: + description: Entity Not Found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + put: + summary: Update Currency by Id + parameters: + - in: path + name: id + description: The Id of the entity. + required: true + schema: + type: string + tags: + - entities + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Currency' + required: true + responses: + 200: + description: Successful Request + content: + application/json: + schema: + $ref: '#/components/schemas/Currency' + 400: + description: Bad Request Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 404: + description: Entity Not Found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + delete: + summary: Delete Currency by Id + parameters: + - in: path + name: id + description: The Id of the entity. + required: true + schema: + type: string + tags: + - entities + responses: + 204: + description: Successful Request + 404: + description: Entity Not Found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /dirigible-bank-server/gen/dirigible-bank-server/api/entities/CurrencyService.ts/count: + get: + summary: Count the number of Currency + tags: + - entities + responses: + 200: + description: Successful Request + content: + application/json: + schema: + type: integer + example: 100 + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + post: + summary: Count the number of Currency by CurrencyFilterOptions + tags: + - entities + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CurrencyFilterOptions' + examples: + countWithMultipleCriteria: + summary: Count with multiple criteria + value: + $filter: + notEquals: + Id: 33 + contains: + Code: "abcd" + Name: "abcd" + Numeric: "abcd" + greaterThan: + Id: 0 + lessThanOrEqual: + Id: 100 + countWithEquals: + summary: Count with Equals + value: + $filter: + equals: + Id: 0 + countWithNotEquals: + summary: Count with Not Equals + value: + $filter: + notEquals: + Id: 0 + countWithContains: + summary: Count with Contains + value: + $filter: + contains: + Code: "abcd" + Name: "abcd" + Numeric: "abcd" + countWithGreaterThan: + summary: Count with Greater Than + value: + $filter: + greaterThan: + Id: 0 + countWithGreaterThanOrEqual: + summary: Count with Greater Than Or Equal + value: + $filter: + greaterThanOrEqual: + Id: 0 + countWithLessThan: + summary: Count with Less Than + value: + $filter: + lessThan: + Id: 0 + countWithLessThanOrEqual: + summary: Count with Less Than Or Equal + value: + $filter: + lessThanOrEqual: + Id: 0 + required: true + responses: + 200: + description: Successful Request + content: + application/json: + schema: + type: integer + example: 100 + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /dirigible-bank-server/gen/dirigible-bank-server/api/entities/CurrencyService.ts/search: + post: + summary: Search Currency by CurrencyFilterOptions + tags: + - entities + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CurrencyFilterOptions' + examples: + searchWithMultipleCriteria: + summary: Search with multiple criteria + value: + $filter: + notEquals: + Id: 33 + contains: + Code: "abcd" + Name: "abcd" + Numeric: "abcd" + greaterThan: + Id: 0 + lessThanOrEqual: + Id: 100 + searchWithEquals: + summary: Search with Equals + value: + $filter: + equals: + Id: 0 + searchWithNotEquals: + summary: Search with Not Equals + value: + $filter: + notEquals: + Id: 0 + searchWithContains: + summary: Search with Contains + value: + $filter: + contains: + Code: "abcd" + Name: "abcd" + Numeric: "abcd" + searchWithGreaterThan: + summary: Search with Greater Than + value: + $filter: + greaterThan: + Id: 0 + searchWithGreaterThanOrEqual: + summary: Search with Greater Than Or Equal + value: + $filter: + greaterThanOrEqual: + Id: 0 + searchWithLessThan: + summary: Search with Less Than + value: + $filter: + lessThan: + Id: 0 + searchWithLessThanOrEqual: + summary: Search with Less Than Or Equal + value: + $filter: + lessThanOrEqual: + Id: 0 + required: true + responses: + 200: + description: Successful Request + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Currency' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /dirigible-bank-server/gen/dirigible-bank-server/api/entities/CountryService.ts: + get: + summary: List Country + parameters: + - in: query + name: $limit + description: The number of records to be returned _(both `$limit` and `$offset` should be provided)_. + required: false + allowReserved: true + schema: + type: integer + allowEmptyValue: true + - in: query + name: $offset + description: The number of records to skip _(both `$limit` and `$offset` should be provided)_. + required: false + allowReserved: true + schema: + type: integer + allowEmptyValue: true + tags: + - entities + responses: + 200: + description: Successful Request + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Country' + 400: + description: Bad Request Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + post: + summary: Create Country + tags: + - entities + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Country' + required: true + responses: + 201: + description: Successful Request + content: + application/json: + schema: + $ref: '#/components/schemas/Country' + 400: + description: Bad Request Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /dirigible-bank-server/gen/dirigible-bank-server/api/entities/CountryService.ts/{id}: + get: + summary: Get Country by Id + parameters: + - in: path + name: id + description: The Id of the entity. + required: true + schema: + type: string + tags: + - entities + responses: + 200: + description: Successful Request + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Country' + 404: + description: Entity Not Found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + put: + summary: Update Country by Id + parameters: + - in: path + name: id + description: The Id of the entity. + required: true + schema: + type: string + tags: + - entities + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Country' + required: true + responses: + 200: + description: Successful Request + content: + application/json: + schema: + $ref: '#/components/schemas/Country' + 400: + description: Bad Request Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 404: + description: Entity Not Found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + delete: + summary: Delete Country by Id + parameters: + - in: path + name: id + description: The Id of the entity. + required: true + schema: + type: string + tags: + - entities + responses: + 204: + description: Successful Request + 404: + description: Entity Not Found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /dirigible-bank-server/gen/dirigible-bank-server/api/entities/CountryService.ts/count: + get: + summary: Count the number of Country + tags: + - entities + responses: + 200: + description: Successful Request + content: + application/json: + schema: + type: integer + example: 100 + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + post: + summary: Count the number of Country by CountryFilterOptions + tags: + - entities + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CountryFilterOptions' + examples: + countWithMultipleCriteria: + summary: Count with multiple criteria + value: + $filter: + notEquals: + Id: 33 + contains: + Name: "abcd" + Code2: "abcd" + Code3: "abcd" + Numeric: "abcd" + greaterThan: + Id: 0 + lessThanOrEqual: + Id: 100 + countWithEquals: + summary: Count with Equals + value: + $filter: + equals: + Id: 0 + countWithNotEquals: + summary: Count with Not Equals + value: + $filter: + notEquals: + Id: 0 + countWithContains: + summary: Count with Contains + value: + $filter: + contains: + Name: "abcd" + Code2: "abcd" + Code3: "abcd" + Numeric: "abcd" + countWithGreaterThan: + summary: Count with Greater Than + value: + $filter: + greaterThan: + Id: 0 + countWithGreaterThanOrEqual: + summary: Count with Greater Than Or Equal + value: + $filter: + greaterThanOrEqual: + Id: 0 + countWithLessThan: + summary: Count with Less Than + value: + $filter: + lessThan: + Id: 0 + countWithLessThanOrEqual: + summary: Count with Less Than Or Equal + value: + $filter: + lessThanOrEqual: + Id: 0 + required: true + responses: + 200: + description: Successful Request + content: + application/json: + schema: + type: integer + example: 100 + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /dirigible-bank-server/gen/dirigible-bank-server/api/entities/CountryService.ts/search: + post: + summary: Search Country by CountryFilterOptions + tags: + - entities + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CountryFilterOptions' + examples: + searchWithMultipleCriteria: + summary: Search with multiple criteria + value: + $filter: + notEquals: + Id: 33 + contains: + Name: "abcd" + Code2: "abcd" + Code3: "abcd" + Numeric: "abcd" + greaterThan: + Id: 0 + lessThanOrEqual: + Id: 100 + searchWithEquals: + summary: Search with Equals + value: + $filter: + equals: + Id: 0 + searchWithNotEquals: + summary: Search with Not Equals + value: + $filter: + notEquals: + Id: 0 + searchWithContains: + summary: Search with Contains + value: + $filter: + contains: + Name: "abcd" + Code2: "abcd" + Code3: "abcd" + Numeric: "abcd" + searchWithGreaterThan: + summary: Search with Greater Than + value: + $filter: + greaterThan: + Id: 0 + searchWithGreaterThanOrEqual: + summary: Search with Greater Than Or Equal + value: + $filter: + greaterThanOrEqual: + Id: 0 + searchWithLessThan: + summary: Search with Less Than + value: + $filter: + lessThan: + Id: 0 + searchWithLessThanOrEqual: + summary: Search with Less Than Or Equal + value: + $filter: + lessThanOrEqual: + Id: 0 + required: true + responses: + 200: + description: Successful Request + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Country' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' +components: + schemas: + Users: + type: object + required: + - FName + - LName + - Email + - Password + - Username + properties: + Id: + type: integer + format: int32 + FName: + type: string + minLength: 0 + maxLength: 255 + LName: + type: string + minLength: 0 + maxLength: 255 + Email: + type: string + minLength: 0 + maxLength: 700 + Password: + type: string + minLength: 0 + maxLength: 255 + Phone: + type: string + minLength: 0 + maxLength: 20 + Username: + type: string + minLength: 0 + maxLength: 900 + Country: + type: integer + format: int32 + UsersFilterOptions: + type: object + properties: + $filter: + type: object + properties: + equals: + type: object + properties: + Id: + oneOf: + - type: integer + format: int32 + - type: array + items: + type: integer + format: int32 + FName: + oneOf: + - type: string + minLength: 0 + maxLength: 255 + - type: array + items: + type: string + format: double + minLength: 0 + maxLength: 255 + LName: + oneOf: + - type: string + minLength: 0 + maxLength: 255 + - type: array + items: + type: string + format: double + minLength: 0 + maxLength: 255 + Email: + oneOf: + - type: string + minLength: 0 + maxLength: 700 + - type: array + items: + type: string + format: double + minLength: 0 + maxLength: 700 + Password: + oneOf: + - type: string + minLength: 0 + maxLength: 255 + - type: array + items: + type: string + format: double + minLength: 0 + maxLength: 255 + Phone: + oneOf: + - type: string + minLength: 0 + maxLength: 20 + - type: array + items: + type: string + format: double + minLength: 0 + maxLength: 20 + Username: + oneOf: + - type: string + minLength: 0 + maxLength: 900 + - type: array + items: + type: string + format: double + minLength: 0 + maxLength: 900 + Country: + oneOf: + - type: integer + format: int32 + - type: array + items: + type: integer + format: int32 + notEquals: + type: object + properties: + Id: + oneOf: + - type: integer + format: int32 + - type: array + items: + type: integer + format: int32 + FName: + oneOf: + - type: string + minLength: 0 + maxLength: 255 + - type: array + items: + type: string + format: double + minLength: 0 + maxLength: 255 + LName: + oneOf: + - type: string + minLength: 0 + maxLength: 255 + - type: array + items: + type: string + format: double + minLength: 0 + maxLength: 255 + Email: + oneOf: + - type: string + minLength: 0 + maxLength: 700 + - type: array + items: + type: string + format: double + minLength: 0 + maxLength: 700 + Password: + oneOf: + - type: string + minLength: 0 + maxLength: 255 + - type: array + items: + type: string + format: double + minLength: 0 + maxLength: 255 + Phone: + oneOf: + - type: string + minLength: 0 + maxLength: 20 + - type: array + items: + type: string + format: double + minLength: 0 + maxLength: 20 + Username: + oneOf: + - type: string + minLength: 0 + maxLength: 900 + - type: array + items: + type: string + format: double + minLength: 0 + maxLength: 900 + Country: + oneOf: + - type: integer + format: int32 + - type: array + items: + type: integer + format: int32 + contains: + type: object + properties: + Id: + FName: + type: string + minLength: 0 + maxLength: 255 + LName: + type: string + minLength: 0 + maxLength: 255 + Email: + type: string + minLength: 0 + maxLength: 700 + Password: + type: string + minLength: 0 + maxLength: 255 + Phone: + type: string + minLength: 0 + maxLength: 20 + Username: + type: string + minLength: 0 + maxLength: 900 + Country: + greaterThan: + type: object + properties: + Id: + type: integer + format: int32 + FName: + type: string + minLength: 0 + maxLength: 255 + LName: + type: string + minLength: 0 + maxLength: 255 + Email: + type: string + minLength: 0 + maxLength: 700 + Password: + type: string + minLength: 0 + maxLength: 255 + Phone: + type: string + minLength: 0 + maxLength: 20 + Username: + type: string + minLength: 0 + maxLength: 900 + Country: + type: integer + format: int32 + greaterThanOrEqual: + type: object + properties: + Id: + type: integer + format: int32 + FName: + type: string + minLength: 0 + maxLength: 255 + LName: + type: string + minLength: 0 + maxLength: 255 + Email: + type: string + minLength: 0 + maxLength: 700 + Password: + type: string + minLength: 0 + maxLength: 255 + Phone: + type: string + minLength: 0 + maxLength: 20 + Username: + type: string + minLength: 0 + maxLength: 900 + Country: + type: integer + format: int32 + lessThan: + type: object + properties: + Id: + type: integer + format: int32 + FName: + type: string + minLength: 0 + maxLength: 255 + LName: + type: string + minLength: 0 + maxLength: 255 + Email: + type: string + minLength: 0 + maxLength: 700 + Password: + type: string + minLength: 0 + maxLength: 255 + Phone: + type: string + minLength: 0 + maxLength: 20 + Username: + type: string + minLength: 0 + maxLength: 900 + Country: + type: integer + format: int32 + lessThanOrEqual: + type: object + properties: + Id: + type: integer + format: int32 + FName: + type: string + minLength: 0 + maxLength: 255 + LName: + type: string + minLength: 0 + maxLength: 255 + Email: + type: string + minLength: 0 + maxLength: 700 + Password: + type: string + minLength: 0 + maxLength: 255 + Phone: + type: string + minLength: 0 + maxLength: 20 + Username: + type: string + minLength: 0 + maxLength: 900 + Country: + type: integer + format: int32 + $select: + type: array + example: ["Id", "FName", "LName", "Email", "Password", "Phone", "Username", "Country"] + items: + type: string + $sort: + - type: string + example: "Id,FName,LName,Email,Password,Phone,Username,Country" + $order: + type: string + enum: ["asc", "desc"] + example: "asc" + $offset: + type: integer + example: 0 + $limit: + type: integer + example: 10 + BankAccounts: + type: object + required: + - Amount + - IBAN + properties: + Id: + type: integer + format: int32 + Amount: + type: number + format: double + IBAN: + type: string + minLength: 0 + maxLength: 20 + Users: + type: integer + format: int32 + BankAccountType: + type: integer + format: int32 + BankAccountStatus: + type: integer + format: int32 + CreationDate: + Currency: + type: integer + format: int32 + BankAccountsFilterOptions: + type: object + properties: + $filter: + type: object + properties: + equals: + type: object + properties: + Id: + oneOf: + - type: integer + format: int32 + - type: array + items: + type: integer + format: int32 + Amount: + oneOf: + - type: number + format: double + - type: array + items: + type: number + format: double + IBAN: + oneOf: + - type: string + minLength: 0 + maxLength: 20 + - type: array + items: + type: string + format: double + minLength: 0 + maxLength: 20 + Users: + oneOf: + - type: integer + format: int32 + - type: array + items: + type: integer + format: int32 + BankAccountType: + oneOf: + - type: integer + format: int32 + - type: array + items: + type: integer + format: int32 + BankAccountStatus: + oneOf: + - type: integer + format: int32 + - type: array + items: + type: integer + format: int32 + CreationDate: + oneOf: + Currency: + oneOf: + - type: integer + format: int32 + - type: array + items: + type: integer + format: int32 + notEquals: + type: object + properties: + Id: + oneOf: + - type: integer + format: int32 + - type: array + items: + type: integer + format: int32 + Amount: + oneOf: + - type: number + format: double + - type: array + items: + type: number + format: double + IBAN: + oneOf: + - type: string + minLength: 0 + maxLength: 20 + - type: array + items: + type: string + format: double + minLength: 0 + maxLength: 20 + Users: + oneOf: + - type: integer + format: int32 + - type: array + items: + type: integer + format: int32 + BankAccountType: + oneOf: + - type: integer + format: int32 + - type: array + items: + type: integer + format: int32 + BankAccountStatus: + oneOf: + - type: integer + format: int32 + - type: array + items: + type: integer + format: int32 + CreationDate: + oneOf: + Currency: + oneOf: + - type: integer + format: int32 + - type: array + items: + type: integer + format: int32 + contains: + type: object + properties: + Id: + Amount: + IBAN: + type: string + minLength: 0 + maxLength: 20 + Users: + BankAccountType: + BankAccountStatus: + CreationDate: + Currency: + greaterThan: + type: object + properties: + Id: + type: integer + format: int32 + Amount: + type: number + format: double + IBAN: + type: string + minLength: 0 + maxLength: 20 + Users: + type: integer + format: int32 + BankAccountType: + type: integer + format: int32 + BankAccountStatus: + type: integer + format: int32 + CreationDate: + Currency: + type: integer + format: int32 + greaterThanOrEqual: + type: object + properties: + Id: + type: integer + format: int32 + Amount: + type: number + format: double + IBAN: + type: string + minLength: 0 + maxLength: 20 + Users: + type: integer + format: int32 + BankAccountType: + type: integer + format: int32 + BankAccountStatus: + type: integer + format: int32 + CreationDate: + Currency: + type: integer + format: int32 + lessThan: + type: object + properties: + Id: + type: integer + format: int32 + Amount: + type: number + format: double + IBAN: + type: string + minLength: 0 + maxLength: 20 + Users: + type: integer + format: int32 + BankAccountType: + type: integer + format: int32 + BankAccountStatus: + type: integer + format: int32 + CreationDate: + Currency: + type: integer + format: int32 + lessThanOrEqual: + type: object + properties: + Id: + type: integer + format: int32 + Amount: + type: number + format: double + IBAN: + type: string + minLength: 0 + maxLength: 20 + Users: + type: integer + format: int32 + BankAccountType: + type: integer + format: int32 + BankAccountStatus: + type: integer + format: int32 + CreationDate: + Currency: + type: integer + format: int32 + $select: + type: array + example: ["Id", "Amount", "IBAN", "Users", "BankAccountType", "BankAccountStatus", "CreationDate", "Currency"] + items: + type: string + $sort: + - type: string + example: "Id,Amount,IBAN,Users,BankAccountType,BankAccountStatus,CreationDate,Currency" + $order: + type: string + enum: ["asc", "desc"] + example: "asc" + $offset: + type: integer + example: 0 + $limit: + type: integer + example: 10 + Cards: + type: object + required: + - CardNumber + - ExpirationDate + - CardType + properties: + Id: + type: integer + format: int32 + CardNumber: + type: string + minLength: 0 + maxLength: 255 + ExpirationDate: + CardType: + type: integer + format: int32 + BankAccounts: + type: integer + format: int32 + CardsFilterOptions: + type: object + properties: + $filter: + type: object + properties: + equals: + type: object + properties: + Id: + oneOf: + - type: integer + format: int32 + - type: array + items: + type: integer + format: int32 + CardNumber: + oneOf: + - type: string + minLength: 0 + maxLength: 255 + - type: array + items: + type: string + format: double + minLength: 0 + maxLength: 255 + ExpirationDate: + oneOf: + CardType: + oneOf: + - type: integer + format: int32 + - type: array + items: + type: integer + format: int32 + BankAccounts: + oneOf: + - type: integer + format: int32 + - type: array + items: + type: integer + format: int32 + notEquals: + type: object + properties: + Id: + oneOf: + - type: integer + format: int32 + - type: array + items: + type: integer + format: int32 + CardNumber: + oneOf: + - type: string + minLength: 0 + maxLength: 255 + - type: array + items: + type: string + format: double + minLength: 0 + maxLength: 255 + ExpirationDate: + oneOf: + CardType: + oneOf: + - type: integer + format: int32 + - type: array + items: + type: integer + format: int32 + BankAccounts: + oneOf: + - type: integer + format: int32 + - type: array + items: + type: integer + format: int32 + contains: + type: object + properties: + Id: + CardNumber: + type: string + minLength: 0 + maxLength: 255 + ExpirationDate: + CardType: + BankAccounts: + greaterThan: + type: object + properties: + Id: + type: integer + format: int32 + CardNumber: + type: string + minLength: 0 + maxLength: 255 + ExpirationDate: + CardType: + type: integer + format: int32 + BankAccounts: + type: integer + format: int32 + greaterThanOrEqual: + type: object + properties: + Id: + type: integer + format: int32 + CardNumber: + type: string + minLength: 0 + maxLength: 255 + ExpirationDate: + CardType: + type: integer + format: int32 + BankAccounts: + type: integer + format: int32 + lessThan: + type: object + properties: + Id: + type: integer + format: int32 + CardNumber: + type: string + minLength: 0 + maxLength: 255 + ExpirationDate: + CardType: + type: integer + format: int32 + BankAccounts: + type: integer + format: int32 + lessThanOrEqual: + type: object + properties: + Id: + type: integer + format: int32 + CardNumber: + type: string + minLength: 0 + maxLength: 255 + ExpirationDate: + CardType: + type: integer + format: int32 + BankAccounts: + type: integer + format: int32 + $select: + type: array + example: ["Id", "CardNumber", "ExpirationDate", "CardType", "BankAccounts"] + items: + type: string + $sort: + - type: string + example: "Id,CardNumber,ExpirationDate,CardType,BankAccounts" + $order: + type: string + enum: ["asc", "desc"] + example: "asc" + $offset: + type: integer + example: 0 + $limit: + type: integer + example: 10 + BankAccountType: + type: object + required: + properties: + Id: + type: integer + format: int32 + Name: + type: string + minLength: 0 + maxLength: 255 + BankAccountTypeFilterOptions: + type: object + properties: + $filter: + type: object + properties: + equals: + type: object + properties: + Id: + oneOf: + - type: integer + format: int32 + - type: array + items: + type: integer + format: int32 + Name: + oneOf: + - type: string + minLength: 0 + maxLength: 255 + - type: array + items: + type: string + format: double + minLength: 0 + maxLength: 255 + notEquals: + type: object + properties: + Id: + oneOf: + - type: integer + format: int32 + - type: array + items: + type: integer + format: int32 + Name: + oneOf: + - type: string + minLength: 0 + maxLength: 255 + - type: array + items: + type: string + format: double + minLength: 0 + maxLength: 255 + contains: + type: object + properties: + Id: + Name: + type: string + minLength: 0 + maxLength: 255 + greaterThan: + type: object + properties: + Id: + type: integer + format: int32 + Name: + type: string + minLength: 0 + maxLength: 255 + greaterThanOrEqual: + type: object + properties: + Id: + type: integer + format: int32 + Name: + type: string + minLength: 0 + maxLength: 255 + lessThan: + type: object + properties: + Id: + type: integer + format: int32 + Name: + type: string + minLength: 0 + maxLength: 255 + lessThanOrEqual: + type: object + properties: + Id: + type: integer + format: int32 + Name: + type: string + minLength: 0 + maxLength: 255 + $select: + type: array + example: ["Id", "Name"] + items: + type: string + $sort: + - type: string + example: "Id,Name" + $order: + type: string + enum: ["asc", "desc"] + example: "asc" + $offset: + type: integer + example: 0 + $limit: + type: integer + example: 10 + BankAccountStatus: + type: object + required: + - Name + properties: + Id: + type: integer + format: int32 + Name: + type: string + minLength: 0 + maxLength: 255 + BankAccountStatusFilterOptions: + type: object + properties: + $filter: + type: object + properties: + equals: + type: object + properties: + Id: + oneOf: + - type: integer + format: int32 + - type: array + items: + type: integer + format: int32 + Name: + oneOf: + - type: string + minLength: 0 + maxLength: 255 + - type: array + items: + type: string + format: double + minLength: 0 + maxLength: 255 + notEquals: + type: object + properties: + Id: + oneOf: + - type: integer + format: int32 + - type: array + items: + type: integer + format: int32 + Name: + oneOf: + - type: string + minLength: 0 + maxLength: 255 + - type: array + items: + type: string + format: double + minLength: 0 + maxLength: 255 + contains: + type: object + properties: + Id: + Name: + type: string + minLength: 0 + maxLength: 255 + greaterThan: + type: object + properties: + Id: + type: integer + format: int32 + Name: + type: string + minLength: 0 + maxLength: 255 + greaterThanOrEqual: + type: object + properties: + Id: + type: integer + format: int32 + Name: + type: string + minLength: 0 + maxLength: 255 + lessThan: + type: object + properties: + Id: + type: integer + format: int32 + Name: + type: string + minLength: 0 + maxLength: 255 + lessThanOrEqual: + type: object + properties: + Id: + type: integer + format: int32 + Name: + type: string + minLength: 0 + maxLength: 255 + $select: + type: array + example: ["Id", "Name"] + items: + type: string + $sort: + - type: string + example: "Id,Name" + $order: + type: string + enum: ["asc", "desc"] + example: "asc" + $offset: + type: integer + example: 0 + $limit: + type: integer + example: 10 + CardType: + type: object + required: + properties: + Id: + type: integer + format: int32 + Name: + type: string + minLength: 0 + maxLength: 255 + CardTypeFilterOptions: + type: object + properties: + $filter: + type: object + properties: + equals: + type: object + properties: + Id: + oneOf: + - type: integer + format: int32 + - type: array + items: + type: integer + format: int32 + Name: + oneOf: + - type: string + minLength: 0 + maxLength: 255 + - type: array + items: + type: string + format: double + minLength: 0 + maxLength: 255 + notEquals: + type: object + properties: + Id: + oneOf: + - type: integer + format: int32 + - type: array + items: + type: integer + format: int32 + Name: + oneOf: + - type: string + minLength: 0 + maxLength: 255 + - type: array + items: + type: string + format: double + minLength: 0 + maxLength: 255 + contains: + type: object + properties: + Id: + Name: + type: string + minLength: 0 + maxLength: 255 + greaterThan: + type: object + properties: + Id: + type: integer + format: int32 + Name: + type: string + minLength: 0 + maxLength: 255 + greaterThanOrEqual: + type: object + properties: + Id: + type: integer + format: int32 + Name: + type: string + minLength: 0 + maxLength: 255 + lessThan: + type: object + properties: + Id: + type: integer + format: int32 + Name: + type: string + minLength: 0 + maxLength: 255 + lessThanOrEqual: + type: object + properties: + Id: + type: integer + format: int32 + Name: + type: string + minLength: 0 + maxLength: 255 + $select: + type: array + example: ["Id", "Name"] + items: + type: string + $sort: + - type: string + example: "Id,Name" + $order: + type: string + enum: ["asc", "desc"] + example: "asc" + $offset: + type: integer + example: 0 + $limit: + type: integer + example: 10 + Transactions: + type: object + required: + - Amount + properties: + Id: + type: integer + format: int32 + Reciever: + type: integer + format: int32 + Sender: + type: integer + format: int32 + Amount: + type: number + format: double + Date: + TransactionsFilterOptions: + type: object + properties: + $filter: + type: object + properties: + equals: + type: object + properties: + Id: + oneOf: + - type: integer + format: int32 + - type: array + items: + type: integer + format: int32 + Reciever: + oneOf: + - type: integer + format: int32 + - type: array + items: + type: integer + format: int32 + Sender: + oneOf: + - type: integer + format: int32 + - type: array + items: + type: integer + format: int32 + Amount: + oneOf: + - type: number + format: double + - type: array + items: + type: number + format: double + Date: + oneOf: + notEquals: + type: object + properties: + Id: + oneOf: + - type: integer + format: int32 + - type: array + items: + type: integer + format: int32 + Reciever: + oneOf: + - type: integer + format: int32 + - type: array + items: + type: integer + format: int32 + Sender: + oneOf: + - type: integer + format: int32 + - type: array + items: + type: integer + format: int32 + Amount: + oneOf: + - type: number + format: double + - type: array + items: + type: number + format: double + Date: + oneOf: + contains: + type: object + properties: + Id: + Reciever: + Sender: + Amount: + Date: + greaterThan: + type: object + properties: + Id: + type: integer + format: int32 + Reciever: + type: integer + format: int32 + Sender: + type: integer + format: int32 + Amount: + type: number + format: double + Date: + greaterThanOrEqual: + type: object + properties: + Id: + type: integer + format: int32 + Reciever: + type: integer + format: int32 + Sender: + type: integer + format: int32 + Amount: + type: number + format: double + Date: + lessThan: + type: object + properties: + Id: + type: integer + format: int32 + Reciever: + type: integer + format: int32 + Sender: + type: integer + format: int32 + Amount: + type: number + format: double + Date: + lessThanOrEqual: + type: object + properties: + Id: + type: integer + format: int32 + Reciever: + type: integer + format: int32 + Sender: + type: integer + format: int32 + Amount: + type: number + format: double + Date: + $select: + type: array + example: ["Id", "Reciever", "Sender", "Amount", "Date"] + items: + type: string + $sort: + - type: string + example: "Id,Reciever,Sender,Amount,Date" + $order: + type: string + enum: ["asc", "desc"] + example: "asc" + $offset: + type: integer + example: 0 + $limit: + type: integer + example: 10 + Currency: + type: object + required: + properties: + Id: + type: integer + format: int32 + Code: + type: string + minLength: 0 + maxLength: 20 + Name: + type: string + minLength: 0 + maxLength: 200 + Numeric: + type: string + minLength: 0 + maxLength: 20 + Rounding: + type: integer + format: int32 + Base: + type: boolean + Rate: + type: number + format: double + CurrencyFilterOptions: + type: object + properties: + $filter: + type: object + properties: + equals: + type: object + properties: + Id: + oneOf: + - type: integer + format: int32 + - type: array + items: + type: integer + format: int32 + Code: + oneOf: + - type: string + minLength: 0 + maxLength: 20 + - type: array + items: + type: string + format: double + minLength: 0 + maxLength: 20 + Name: + oneOf: + - type: string + minLength: 0 + maxLength: 200 + - type: array + items: + type: string + format: double + minLength: 0 + maxLength: 200 + Numeric: + oneOf: + - type: string + minLength: 0 + maxLength: 20 + - type: array + items: + type: string + format: double + minLength: 0 + maxLength: 20 + Rounding: + oneOf: + - type: integer + format: int32 + - type: array + items: + type: integer + format: int32 + Base: + oneOf: + - type: boolean + - type: array + items: + type: boolean + Rate: + oneOf: + - type: number + format: double + - type: array + items: + type: number + format: double + notEquals: + type: object + properties: + Id: + oneOf: + - type: integer + format: int32 + - type: array + items: + type: integer + format: int32 + Code: + oneOf: + - type: string + minLength: 0 + maxLength: 20 + - type: array + items: + type: string + format: double + minLength: 0 + maxLength: 20 + Name: + oneOf: + - type: string + minLength: 0 + maxLength: 200 + - type: array + items: + type: string + format: double + minLength: 0 + maxLength: 200 + Numeric: + oneOf: + - type: string + minLength: 0 + maxLength: 20 + - type: array + items: + type: string + format: double + minLength: 0 + maxLength: 20 + Rounding: + oneOf: + - type: integer + format: int32 + - type: array + items: + type: integer + format: int32 + Base: + oneOf: + - type: boolean + - type: array + items: + type: boolean + Rate: + oneOf: + - type: number + format: double + - type: array + items: + type: number + format: double + contains: + type: object + properties: + Id: + Code: + type: string + minLength: 0 + maxLength: 20 + Name: + type: string + minLength: 0 + maxLength: 200 + Numeric: + type: string + minLength: 0 + maxLength: 20 + Rounding: + Base: + Rate: + greaterThan: + type: object + properties: + Id: + type: integer + format: int32 + Code: + type: string + minLength: 0 + maxLength: 20 + Name: + type: string + minLength: 0 + maxLength: 200 + Numeric: + type: string + minLength: 0 + maxLength: 20 + Rounding: + type: integer + format: int32 + Base: + Rate: + type: number + format: double + greaterThanOrEqual: + type: object + properties: + Id: + type: integer + format: int32 + Code: + type: string + minLength: 0 + maxLength: 20 + Name: + type: string + minLength: 0 + maxLength: 200 + Numeric: + type: string + minLength: 0 + maxLength: 20 + Rounding: + type: integer + format: int32 + Base: + Rate: + type: number + format: double + lessThan: + type: object + properties: + Id: + type: integer + format: int32 + Code: + type: string + minLength: 0 + maxLength: 20 + Name: + type: string + minLength: 0 + maxLength: 200 + Numeric: + type: string + minLength: 0 + maxLength: 20 + Rounding: + type: integer + format: int32 + Base: + Rate: + type: number + format: double + lessThanOrEqual: + type: object + properties: + Id: + type: integer + format: int32 + Code: + type: string + minLength: 0 + maxLength: 20 + Name: + type: string + minLength: 0 + maxLength: 200 + Numeric: + type: string + minLength: 0 + maxLength: 20 + Rounding: + type: integer + format: int32 + Base: + Rate: + type: number + format: double + $select: + type: array + example: ["Id", "Code", "Name", "Numeric", "Rounding", "Base", "Rate"] + items: + type: string + $sort: + - type: string + example: "Id,Code,Name,Numeric,Rounding,Base,Rate" + $order: + type: string + enum: ["asc", "desc"] + example: "asc" + $offset: + type: integer + example: 0 + $limit: + type: integer + example: 10 + Country: + type: object + required: + properties: + Id: + type: integer + format: int32 + Name: + type: string + minLength: 0 + maxLength: 255 + Code2: + type: string + minLength: 0 + maxLength: 2 + Code3: + type: string + minLength: 0 + maxLength: 3 + Numeric: + type: string + minLength: 0 + maxLength: 3 + CountryFilterOptions: + type: object + properties: + $filter: + type: object + properties: + equals: + type: object + properties: + Id: + oneOf: + - type: integer + format: int32 + - type: array + items: + type: integer + format: int32 + Name: + oneOf: + - type: string + minLength: 0 + maxLength: 255 + - type: array + items: + type: string + format: double + minLength: 0 + maxLength: 255 + Code2: + oneOf: + - type: string + minLength: 0 + maxLength: 2 + - type: array + items: + type: string + format: double + minLength: 0 + maxLength: 2 + Code3: + oneOf: + - type: string + minLength: 0 + maxLength: 3 + - type: array + items: + type: string + format: double + minLength: 0 + maxLength: 3 + Numeric: + oneOf: + - type: string + minLength: 0 + maxLength: 3 + - type: array + items: + type: string + format: double + minLength: 0 + maxLength: 3 + notEquals: + type: object + properties: + Id: + oneOf: + - type: integer + format: int32 + - type: array + items: + type: integer + format: int32 + Name: + oneOf: + - type: string + minLength: 0 + maxLength: 255 + - type: array + items: + type: string + format: double + minLength: 0 + maxLength: 255 + Code2: + oneOf: + - type: string + minLength: 0 + maxLength: 2 + - type: array + items: + type: string + format: double + minLength: 0 + maxLength: 2 + Code3: + oneOf: + - type: string + minLength: 0 + maxLength: 3 + - type: array + items: + type: string + format: double + minLength: 0 + maxLength: 3 + Numeric: + oneOf: + - type: string + minLength: 0 + maxLength: 3 + - type: array + items: + type: string + format: double + minLength: 0 + maxLength: 3 + contains: + type: object + properties: + Id: + Name: + type: string + minLength: 0 + maxLength: 255 + Code2: + type: string + minLength: 0 + maxLength: 2 + Code3: + type: string + minLength: 0 + maxLength: 3 + Numeric: + type: string + minLength: 0 + maxLength: 3 + greaterThan: + type: object + properties: + Id: + type: integer + format: int32 + Name: + type: string + minLength: 0 + maxLength: 255 + Code2: + type: string + minLength: 0 + maxLength: 2 + Code3: + type: string + minLength: 0 + maxLength: 3 + Numeric: + type: string + minLength: 0 + maxLength: 3 + greaterThanOrEqual: + type: object + properties: + Id: + type: integer + format: int32 + Name: + type: string + minLength: 0 + maxLength: 255 + Code2: + type: string + minLength: 0 + maxLength: 2 + Code3: + type: string + minLength: 0 + maxLength: 3 + Numeric: + type: string + minLength: 0 + maxLength: 3 + lessThan: + type: object + properties: + Id: + type: integer + format: int32 + Name: + type: string + minLength: 0 + maxLength: 255 + Code2: + type: string + minLength: 0 + maxLength: 2 + Code3: + type: string + minLength: 0 + maxLength: 3 + Numeric: + type: string + minLength: 0 + maxLength: 3 + lessThanOrEqual: + type: object + properties: + Id: + type: integer + format: int32 + Name: + type: string + minLength: 0 + maxLength: 255 + Code2: + type: string + minLength: 0 + maxLength: 2 + Code3: + type: string + minLength: 0 + maxLength: 3 + Numeric: + type: string + minLength: 0 + maxLength: 3 + $select: + type: array + example: ["Id", "Name", "Code2", "Code3", "Numeric"] + items: + type: string + $sort: + - type: string + example: "Id,Name,Code2,Code3,Numeric" + $order: + type: string + enum: ["asc", "desc"] + example: "asc" + $offset: + type: integer + example: 0 + $limit: + type: integer + example: 10 + Error: + type: object + properties: + code: + type: integer + message: + type: string \ No newline at end of file diff --git a/dirigible-bank-server/gen/index.html b/dirigible-bank-server/gen/dirigible-bank-server/index.html similarity index 88% rename from dirigible-bank-server/gen/index.html rename to dirigible-bank-server/gen/dirigible-bank-server/index.html index 6d354c6..289fb71 100644 --- a/dirigible-bank-server/gen/index.html +++ b/dirigible-bank-server/gen/dirigible-bank-server/index.html @@ -1,7 +1,9 @@ @@ -35,7 +37,7 @@ angular.module('app', ['ngResource', 'ideLayout', 'ideUI']) .constant('branding', { name: 'PI Smart Server', - brand: 'Proper Invas Bank', + brand: 'Proper Invest Bank', brandUrl: 'https://github.com/TIVMOF/online_bank', icons: { faviconIco: '/services/web/ide-branding/images/favicon.ico', diff --git a/dirigible-bank-server/gen/odata/dirigible-bank-server.odata b/dirigible-bank-server/gen/dirigible-bank-server/odata/dirigible-bank-server.odata similarity index 100% rename from dirigible-bank-server/gen/odata/dirigible-bank-server.odata rename to dirigible-bank-server/gen/dirigible-bank-server/odata/dirigible-bank-server.odata diff --git a/dirigible-bank-server/gen/schema/dirigible-bank-server.schema b/dirigible-bank-server/gen/dirigible-bank-server/schema/dirigible-bank-server.schema similarity index 69% rename from dirigible-bank-server/gen/schema/dirigible-bank-server.schema rename to dirigible-bank-server/gen/dirigible-bank-server/schema/dirigible-bank-server.schema index 9af8b32..e8a6712 100644 --- a/dirigible-bank-server/gen/schema/dirigible-bank-server.schema +++ b/dirigible-bank-server/gen/dirigible-bank-server/schema/dirigible-bank-server.schema @@ -2,12 +2,11 @@ "schema": { "structures": [ { - "name": "PI_USERS", + "name": "USERS", "type": "TABLE", "columns": [ { "type": "INTEGER", - "length": 0, "primaryKey": true, "identity": true, "nullable": true, @@ -16,62 +15,46 @@ { "type": "VARCHAR", "length": 255, - "precision": "NaN", - "scale": "NaN", "name": "USERS_FNAME" }, { "type": "VARCHAR", "length": 255, - "precision": "NaN", - "scale": "NaN", "name": "USERS_LNAME" }, { "type": "VARCHAR", "length": 700, - "precision": "NaN", - "scale": "NaN", "name": "USERS_EMAIL" }, { "type": "VARCHAR", "length": 255, - "precision": "NaN", - "scale": "NaN", "name": "USERS_PASSWORD" }, { "type": "VARCHAR", "length": 20, - "precision": "NaN", - "scale": "NaN", "name": "USERS_PHONE" }, - { - "type": "INTEGER", - "length": 0, - "precision": "NaN", - "scale": "NaN", - "nullable": true, - "name": "USERS_COUNTRY" - }, { "type": "VARCHAR", "length": 900, - "precision": "NaN", - "scale": "NaN", "name": "USERS_USERNAME" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "USERS_COUNTRY" } ] }, { - "name": "PI_BANKACCOUNTS", + "name": "BANKACCOUNTS", "type": "TABLE", "columns": [ { "type": "INTEGER", - "length": 0, "primaryKey": true, "identity": true, "nullable": true, @@ -79,110 +62,77 @@ }, { "type": "DOUBLE", - "length": NaN, - "precision": "NaN", - "scale": "NaN", "name": "BANKACCOUNTS_AMOUNT" }, { "type": "VARCHAR", "length": 20, - "precision": "NaN", - "scale": "NaN", "name": "BANKACCOUNTS_PROPERTY3" }, { "type": "INTEGER", - "length": 0, - "precision": "NaN", - "scale": "NaN", "nullable": true, "name": "BANKACCOUNTS_USERS" }, { "type": "INTEGER", - "length": 0, - "precision": "NaN", - "scale": "NaN", "nullable": true, "name": "BANKACCOUNTS_BANKACCOUNTTYPE" }, { "type": "INTEGER", - "length": 0, - "precision": "NaN", - "scale": "NaN", "nullable": true, "name": "BANKACCOUNTS_BANKACCOUNTSTATUS" }, { "type": "DATE", - "length": 20, - "precision": "NaN", - "scale": "NaN", "name": "BANKACCOUNTS_CREATIONDATE" }, { "type": "INTEGER", - "length": 0, - "precision": "NaN", - "scale": "NaN", "nullable": true, "name": "BANKACCOUNTS_CURRENCY" } ] }, { - "name": "PI_CARDS", + "name": "CARDS", "type": "TABLE", "columns": [ { "type": "INTEGER", - "length": 0, "primaryKey": true, "identity": true, "nullable": true, "name": "CARDS_ID" }, - { - "type": "INTEGER", - "length": 0, - "precision": "NaN", - "scale": "NaN", - "nullable": true, - "name": "CARDS_USERS" - }, { "type": "VARCHAR", "length": 255, - "precision": "NaN", - "scale": "NaN", "name": "CARDS_CARDNUMBER" }, { "type": "DATE", - "length": 20, - "precision": "NaN", - "scale": "NaN", "nullable": true, "name": "CARDS_EXPIRATIONDATE" }, { "type": "INTEGER", - "length": 0, - "precision": "NaN", - "scale": "NaN", "name": "CARDS_CARDTYPE" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "CARDS_BANKACCOUNTS" } ] }, { - "name": "PI_BANKACCOUNTTYPE", + "name": "BANKACCOUNTTYPE", "type": "TABLE", "columns": [ { "type": "INTEGER", - "length": 0, "primaryKey": true, "identity": true, "nullable": true, @@ -191,19 +141,16 @@ { "type": "VARCHAR", "length": 255, - "precision": "NaN", - "scale": "NaN", "name": "BANKACCOUNTTYPE_NAME" } ] }, { - "name": "PI_BANKACCOUNTSTATUS", + "name": "BANKACCOUNTSTATUS", "type": "TABLE", "columns": [ { "type": "INTEGER", - "length": 0, "primaryKey": true, "identity": true, "nullable": true, @@ -212,19 +159,16 @@ { "type": "VARCHAR", "length": 255, - "precision": "NaN", - "scale": "NaN", "name": "BANKACCOUNTSTATUS_NAME" } ] }, { - "name": "PI_CARDTYPE", + "name": "CARDTYPE", "type": "TABLE", "columns": [ { "type": "INTEGER", - "length": 0, "primaryKey": true, "identity": true, "nullable": true, @@ -233,20 +177,50 @@ { "type": "VARCHAR", "length": 255, - "precision": "NaN", - "scale": "NaN", "nullable": true, "name": "CARDTYPE_NAME" } ] }, { - "name": "PI_CURRENCY", + "name": "TRANSACTIONS", + "type": "TABLE", + "columns": [ + { + "type": "INTEGER", + "primaryKey": true, + "identity": true, + "nullable": true, + "name": "TRANSACTIONS_ID" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "TRANSACTIONS_RECIEVER" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "TRANSACTIONS_SENDER" + }, + { + "type": "DOUBLE", + "nullable": true, + "name": "TRANSACTIONS_AMOUNT" + }, + { + "type": "DATE", + "nullable": true, + "name": "TRANSACTIONS_DATE" + } + ] + }, + { + "name": "CURRENCY", "type": "TABLE", "columns": [ { "type": "INTEGER", - "length": 0, "primaryKey": true, "identity": true, "nullable": true, @@ -254,61 +228,45 @@ }, { "type": "VARCHAR", - "length": 3, - "precision": "NaN", - "scale": "NaN", + "length": 20, "nullable": true, "name": "CURRENCY_CODE" }, { "type": "VARCHAR", - "length": 127, - "precision": "NaN", - "scale": "NaN", + "length": 200, "nullable": true, "name": "CURRENCY_NAME" }, { "type": "VARCHAR", - "length": 3, - "precision": "NaN", - "scale": "NaN", + "length": 20, "nullable": true, "name": "CURRENCY_NUMERIC" }, { "type": "INTEGER", - "length": 20, - "precision": "NaN", - "scale": "NaN", "nullable": true, "name": "CURRENCY_ROUNDING" }, { "type": "BOOLEAN", - "length": 20, - "precision": "NaN", - "scale": "NaN", "nullable": true, "name": "CURRENCY_BASE" }, { "type": "DOUBLE", - "length": 20, - "precision": "NaN", - "scale": "NaN", "nullable": true, "name": "CURRENCY_RATE" } ] }, { - "name": "PI_COUNTRY", + "name": "COUNTRY", "type": "TABLE", "columns": [ { "type": "INTEGER", - "length": 0, "primaryKey": true, "identity": true, "nullable": true, @@ -317,162 +275,108 @@ { "type": "VARCHAR", "length": 255, - "precision": "NaN", - "scale": "NaN", "nullable": true, "name": "COUNTRY_NAME" }, { "type": "CHAR", "length": 2, - "precision": "NaN", - "scale": "NaN", "nullable": true, "name": "COUNTRY_CODE2" }, { - "type": "CHAR", + "type": "VARCHAR", "length": 3, - "precision": "NaN", - "scale": "NaN", "nullable": true, "name": "COUNTRY_CODE3" }, { "type": "CHAR", "length": 3, - "precision": "NaN", - "scale": "NaN", "nullable": true, "name": "COUNTRY_NUMERIC" } ] }, - { - "name": "PI_TRANSACTIONS", - "type": "TABLE", - "columns": [ - { - "type": "INTEGER", - "length": 0, - "primaryKey": true, - "identity": true, - "nullable": true, - "name": "TRANSACTIONS_ID" - }, - { - "type": "INTEGER", - "length": 0, - "precision": "NaN", - "scale": "NaN", - "nullable": true, - "name": "TRANSACTIONS_RECIEVER" - }, - { - "type": "INTEGER", - "length": 0, - "precision": "NaN", - "scale": "NaN", - "nullable": true, - "name": "TRANSACTIONS_SENDER" - }, - { - "type": "DOUBLE", - "length": 20, - "precision": "NaN", - "scale": "NaN", - "nullable": true, - "name": "TRANSACTIONS_AMOUNT" - }, - { - "type": "DATE", - "length": 20, - "precision": "NaN", - "scale": "NaN", - "nullable": true, - "name": "TRANSACTIONS_DATE" - } - ] - }, { "name": "Users_Country", "type": "foreignKey", - "table": "PI_USERS", + "table": "USERS", "constraintName": "Users_Country", "columns": "USERS_COUNTRY", - "referencedTable": "PI_COUNTRY", + "referencedTable": "COUNTRY", "referencedColumns": "COUNTRY_ID" }, { "name": "BankAccounts_Users", "type": "foreignKey", - "table": "PI_BANKACCOUNTS", + "table": "BANKACCOUNTS", "constraintName": "BankAccounts_Users", "columns": "BANKACCOUNTS_USERS", - "referencedTable": "PI_USERS", + "referencedTable": "USERS", "referencedColumns": "USERS_ID" }, { "name": "BankAccounts_BankAccountType", "type": "foreignKey", - "table": "PI_BANKACCOUNTS", + "table": "BANKACCOUNTS", "constraintName": "BankAccounts_BankAccountType", "columns": "BANKACCOUNTS_BANKACCOUNTTYPE", - "referencedTable": "PI_BANKACCOUNTTYPE", + "referencedTable": "BANKACCOUNTTYPE", "referencedColumns": "BANKACCOUNTTYPE_ID" }, { "name": "BankAccounts_BankAccountStatus", "type": "foreignKey", - "table": "PI_BANKACCOUNTS", + "table": "BANKACCOUNTS", "constraintName": "BankAccounts_BankAccountStatus", "columns": "BANKACCOUNTS_BANKACCOUNTSTATUS", - "referencedTable": "PI_BANKACCOUNTSTATUS", + "referencedTable": "BANKACCOUNTSTATUS", "referencedColumns": "BANKACCOUNTSTATUS_ID" }, { "name": "BankAccounts_Currency", "type": "foreignKey", - "table": "PI_BANKACCOUNTS", + "table": "BANKACCOUNTS", "constraintName": "BankAccounts_Currency", "columns": "BANKACCOUNTS_CURRENCY", - "referencedTable": "PI_CURRENCY", + "referencedTable": "CURRENCY", "referencedColumns": "CURRENCY_ID" }, - { - "name": "Cards_Users", - "type": "foreignKey", - "table": "PI_CARDS", - "constraintName": "Cards_Users", - "columns": "CARDS_USERS", - "referencedTable": "PI_USERS", - "referencedColumns": "USERS_ID" - }, { "name": "Cards_CardType", "type": "foreignKey", - "table": "PI_CARDS", + "table": "CARDS", "constraintName": "Cards_CardType", "columns": "CARDS_CARDTYPE", - "referencedTable": "PI_CARDTYPE", + "referencedTable": "CARDTYPE", "referencedColumns": "CARDTYPE_ID" }, + { + "name": "Cards_BankAccounts", + "type": "foreignKey", + "table": "CARDS", + "constraintName": "Cards_BankAccounts", + "columns": "CARDS_BANKACCOUNTS", + "referencedTable": "BANKACCOUNTS", + "referencedColumns": "BANKACCOUNTS_ID" + }, { "name": "Transactions_BankAccounts", "type": "foreignKey", - "table": "PI_TRANSACTIONS", + "table": "TRANSACTIONS", "constraintName": "Transactions_BankAccounts", "columns": "TRANSACTIONS_RECIEVER", - "referencedTable": "PI_BANKACCOUNTS", + "referencedTable": "BANKACCOUNTS", "referencedColumns": "BANKACCOUNTS_ID" }, { "name": "Transactions_BankAccounts", "type": "foreignKey", - "table": "PI_TRANSACTIONS", + "table": "TRANSACTIONS", "constraintName": "Transactions_BankAccounts", "columns": "TRANSACTIONS_SENDER", - "referencedTable": "PI_BANKACCOUNTS", + "referencedTable": "BANKACCOUNTS", "referencedColumns": "BANKACCOUNTS_ID" } ] diff --git a/dirigible-bank-server/gen/ui/bankAccount/BankAccounts/controller.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/controller.js similarity index 80% rename from dirigible-bank-server/gen/ui/bankAccount/BankAccounts/controller.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/controller.js index a8bace2..702d7ec 100644 --- a/dirigible-bank-server/gen/ui/bankAccount/BankAccounts/controller.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/controller.js @@ -3,36 +3,40 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) messageHubProvider.eventIdPrefix = 'dirigible-bank-server.bankAccount.BankAccounts'; }]) .config(["entityApiProvider", function (entityApiProvider) { - entityApiProvider.baseUrl = "/services/ts/dirigible-bank-server/gen/api/bankAccount/BankAccountsService.ts"; + entityApiProvider.baseUrl = "/services/ts/dirigible-bank-server/gen/dirigible-bank-server/api/bankAccount/BankAccountsService.ts"; }]) - .controller('PageController', ['$scope', '$http', 'messageHub', 'entityApi', function ($scope, $http, messageHub, entityApi) { + .controller('PageController', ['$scope', '$http', 'messageHub', 'entityApi', 'Extensions', function ($scope, $http, messageHub, entityApi, Extensions) { + + $scope.dataPage = 1; + $scope.dataCount = 0; + $scope.dataLimit = 20; //-----------------Custom Actions-------------------// - $http.get("/services/js/resources-core/services/custom-actions.js?extensionPoint=dirigible-bank-server-custom-action").then(function (response) { - $scope.pageActions = response.data.filter(e => e.perspective === "bankAccount" && e.view === "BankAccounts" && (e.type === "page" || e.type === undefined)); - $scope.entityActions = response.data.filter(e => e.perspective === "bankAccount" && e.view === "BankAccounts" && e.type === "entity"); + Extensions.get('dialogWindow', 'dirigible-bank-server-custom-action').then(function (response) { + $scope.pageActions = response.filter(e => e.perspective === "bankAccount" && e.view === "BankAccounts" && (e.type === "page" || e.type === undefined)); + $scope.entityActions = response.filter(e => e.perspective === "bankAccount" && e.view === "BankAccounts" && e.type === "entity"); }); - $scope.triggerPageAction = function (actionId) { - for (const next of $scope.pageActions) { - if (next.id === actionId) { - messageHub.showDialogWindow("dirigible-bank-server-custom-action", { - src: next.link, - }); - break; - } - } + $scope.triggerPageAction = function (action) { + messageHub.showDialogWindow( + action.id, + {}, + null, + true, + action + ); }; - $scope.triggerEntityAction = function (actionId, selectedEntity) { - for (const next of $scope.entityActions) { - if (next.id === actionId) { - messageHub.showDialogWindow("dirigible-bank-server-custom-action", { - src: `${next.link}?id=${selectedEntity.Id}`, - }); - break; - } - } + $scope.triggerEntityAction = function (action) { + messageHub.showDialogWindow( + action.id, + { + id: $scope.entity.Id + }, + null, + true, + action + ); }; //-----------------Custom Actions-------------------// @@ -70,7 +74,9 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) messageHub.showAlertError("BankAccounts", `Unable to count BankAccounts: '${response.message}'`); return; } - $scope.dataCount = response.data; + if (response.data) { + $scope.dataCount = response.data; + } let offset = (pageNumber - 1) * $scope.dataLimit; let limit = $scope.dataLimit; let request; @@ -184,7 +190,7 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) $scope.optionsCurrency = []; - $http.get("/services/ts/dirigible-bank-server/gen/api/users/UsersService.ts").then(function (response) { + $http.get("/services/ts/dirigible-bank-server/gen/dirigible-bank-server/api/users/UsersService.ts").then(function (response) { $scope.optionsUsers = response.data.map(e => { return { value: e.Id, @@ -193,7 +199,7 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) }); }); - $http.get("/services/ts/dirigible-bank-server/gen/api/entities/BankAccountTypeService.ts").then(function (response) { + $http.get("/services/ts/dirigible-bank-server/gen/dirigible-bank-server/api/entities/BankAccountTypeService.ts").then(function (response) { $scope.optionsBankAccountType = response.data.map(e => { return { value: e.Id, @@ -202,7 +208,7 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) }); }); - $http.get("/services/ts/dirigible-bank-server/gen/api/entities/BankAccountStatusService.ts").then(function (response) { + $http.get("/services/ts/dirigible-bank-server/gen/dirigible-bank-server/api/entities/BankAccountStatusService.ts").then(function (response) { $scope.optionsBankAccountStatus = response.data.map(e => { return { value: e.Id, @@ -211,11 +217,11 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) }); }); - $http.get("/services/ts/codbex-currencies/gen/api/Currencies/CurrencyService.ts").then(function (response) { + $http.get("/services/ts/dirigible-bank-server/gen/dirigible-bank-server/api/entities/CurrencyService.ts").then(function (response) { $scope.optionsCurrency = response.data.map(e => { return { value: e.Id, - text: e.Name + text: e.Code } }); }); diff --git a/dirigible-bank-server/gen/ui/bankAccount/BankAccounts/dialog-filter/controller.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/dialog-filter/controller.js similarity index 52% rename from dirigible-bank-server/gen/ui/bankAccount/BankAccounts/dialog-filter/controller.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/dialog-filter/controller.js index 46c6b1e..5e343c4 100644 --- a/dirigible-bank-server/gen/ui/bankAccount/BankAccounts/dialog-filter/controller.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/dialog-filter/controller.js @@ -1,35 +1,29 @@ -angular.module('page', ["ideUI", "ideView", "entityApi"]) +angular.module('page', ["ideUI", "ideView"]) .config(["messageHubProvider", function (messageHubProvider) { messageHubProvider.eventIdPrefix = 'dirigible-bank-server.bankAccount.BankAccounts'; }]) - .config(["entityApiProvider", function (entityApiProvider) { - entityApiProvider.baseUrl = "/services/ts/dirigible-bank-server/gen/api/bankAccount/BankAccountsService.ts"; - }]) - .controller('PageController', ['$scope', 'messageHub', 'entityApi', function ($scope, messageHub, entityApi) { + .controller('PageController', ['$scope', 'messageHub', 'ViewParameters', function ($scope, messageHub, ViewParameters) { $scope.entity = {}; $scope.forms = { details: {}, }; - if (window != null && window.frameElement != null && window.frameElement.hasAttribute("data-parameters")) { - let dataParameters = window.frameElement.getAttribute("data-parameters"); - if (dataParameters) { - let params = JSON.parse(dataParameters); - if (params?.entity?.CreationDateFrom) { - params.entity.CreationDateFrom = new Date(params.entity.CreationDateFrom); - } - if (params?.entity?.CreationDateTo) { - params.entity.CreationDateTo = new Date(params.entity.CreationDateTo); - } - $scope.entity = params.entity ?? {}; - $scope.selectedMainEntityKey = params.selectedMainEntityKey; - $scope.selectedMainEntityId = params.selectedMainEntityId; - $scope.optionsUsers = params.optionsUsers; - $scope.optionsBankAccountType = params.optionsBankAccountType; - $scope.optionsBankAccountStatus = params.optionsBankAccountStatus; - $scope.optionsCurrency = params.optionsCurrency; + let params = ViewParameters.get(); + if (Object.keys(params).length) { + if (params?.entity?.CreationDateFrom) { + params.entity.CreationDateFrom = new Date(params.entity.CreationDateFrom); + } + if (params?.entity?.CreationDateTo) { + params.entity.CreationDateTo = new Date(params.entity.CreationDateTo); } + $scope.entity = params.entity ?? {}; + $scope.selectedMainEntityKey = params.selectedMainEntityKey; + $scope.selectedMainEntityId = params.selectedMainEntityId; + $scope.optionsUsers = params.optionsUsers; + $scope.optionsBankAccountType = params.optionsBankAccountType; + $scope.optionsBankAccountStatus = params.optionsBankAccountStatus; + $scope.optionsCurrency = params.optionsCurrency; } $scope.filter = function () { @@ -52,22 +46,22 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) } }, }; - if (entity.Id) { + if (entity.Id !== undefined) { filter.$filter.equals.Id = entity.Id; } - if (entity.Amount) { + if (entity.Amount !== undefined) { filter.$filter.equals.Amount = entity.Amount; } if (entity.IBAN) { filter.$filter.contains.IBAN = entity.IBAN; } - if (entity.Users) { + if (entity.Users !== undefined) { filter.$filter.equals.Users = entity.Users; } - if (entity.BankAccountType) { + if (entity.BankAccountType !== undefined) { filter.$filter.equals.BankAccountType = entity.BankAccountType; } - if (entity.BankAccountStatus) { + if (entity.BankAccountStatus !== undefined) { filter.$filter.equals.BankAccountStatus = entity.BankAccountStatus; } if (entity.CreationDateFrom) { @@ -76,7 +70,7 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) if (entity.CreationDateTo) { filter.$filter.lessThanOrEqual.CreationDate = entity.CreationDateTo; } - if (entity.Currency) { + if (entity.Currency !== undefined) { filter.$filter.equals.Currency = entity.Currency; } messageHub.postMessage("entitySearch", { diff --git a/dirigible-bank-server/gen/ui/bankAccount/BankAccounts/dialog-filter/index.html b/dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/dialog-filter/index.html similarity index 80% rename from dirigible-bank-server/gen/ui/bankAccount/BankAccounts/dialog-filter/index.html rename to dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/dialog-filter/index.html index a07853b..bb104dd 100644 --- a/dirigible-bank-server/gen/ui/bankAccount/BankAccounts/dialog-filter/index.html +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/dialog-filter/index.html @@ -25,17 +25,16 @@ - +
- Amount + Amount
@@ -44,14 +43,13 @@
- IBAN + IBAN
- Users + Users
@@ -79,13 +76,12 @@
- BankAccountType + BankAccountType
@@ -94,13 +90,12 @@
- BankAccountStatus + BankAccountStatus
@@ -109,14 +104,13 @@
- From CreationDate + From CreationDate
@@ -124,14 +118,13 @@
- To CreationDate + To CreationDate
@@ -141,13 +134,12 @@
- Currency + Currency
@@ -158,20 +150,19 @@ -
-
- - - - - -
-
+ + + + + + + + + + + + + diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/dialog-filter/view.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/dialog-filter/view.extension new file mode 100644 index 0000000..7e29a99 --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/dialog-filter/view.extension @@ -0,0 +1,5 @@ +{ + "module": "dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/dialog-filter/view.js", + "extensionPoint": "dirigible-bank-server-dialog-window", + "description": "dirigible-bank-server - Application Dialog Window" +} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/bankAccount/BankAccounts/dialog-filter/view.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/dialog-filter/view.js similarity index 74% rename from dirigible-bank-server/gen/ui/bankAccount/BankAccounts/dialog-filter/view.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/dialog-filter/view.js index 6b77443..4c5d4c3 100644 --- a/dirigible-bank-server/gen/ui/bankAccount/BankAccounts/dialog-filter/view.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/dialog-filter/view.js @@ -6,7 +6,7 @@ const viewData = { id: "BankAccounts-filter", label: "BankAccounts Filter", - link: "/services/web/dirigible-bank-server/gen/ui/bankAccount/BankAccounts/dialog-filter/index.html", + link: "/services/web/dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/dialog-filter/index.html", perspectiveName: "bankAccount", }; diff --git a/dirigible-bank-server/gen/ui/bankAccount/BankAccounts/dialog-window/controller.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/dialog-window/controller.js similarity index 65% rename from dirigible-bank-server/gen/ui/bankAccount/BankAccounts/dialog-window/controller.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/dialog-window/controller.js index 5e95c8c..0a8401d 100644 --- a/dirigible-bank-server/gen/ui/bankAccount/BankAccounts/dialog-window/controller.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/dialog-window/controller.js @@ -3,9 +3,9 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) messageHubProvider.eventIdPrefix = 'dirigible-bank-server.bankAccount.BankAccounts'; }]) .config(["entityApiProvider", function (entityApiProvider) { - entityApiProvider.baseUrl = "/services/ts/dirigible-bank-server/gen/api/bankAccount/BankAccountsService.ts"; + entityApiProvider.baseUrl = "/services/ts/dirigible-bank-server/gen/dirigible-bank-server/api/bankAccount/BankAccountsService.ts"; }]) - .controller('PageController', ['$scope', 'messageHub', 'entityApi', function ($scope, messageHub, entityApi) { + .controller('PageController', ['$scope', 'messageHub', 'ViewParameters', 'entityApi', function ($scope, messageHub, ViewParameters, entityApi) { $scope.entity = {}; $scope.forms = { @@ -18,22 +18,19 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) }; $scope.action = 'select'; - if (window != null && window.frameElement != null && window.frameElement.hasAttribute("data-parameters")) { - let dataParameters = window.frameElement.getAttribute("data-parameters"); - if (dataParameters) { - let params = JSON.parse(dataParameters); - $scope.action = params.action; - if (params.entity.CreationDate) { - params.entity.CreationDate = new Date(params.entity.CreationDate); - } - $scope.entity = params.entity; - $scope.selectedMainEntityKey = params.selectedMainEntityKey; - $scope.selectedMainEntityId = params.selectedMainEntityId; - $scope.optionsUsers = params.optionsUsers; - $scope.optionsBankAccountType = params.optionsBankAccountType; - $scope.optionsBankAccountStatus = params.optionsBankAccountStatus; - $scope.optionsCurrency = params.optionsCurrency; + let params = ViewParameters.get(); + if (Object.keys(params).length) { + $scope.action = params.action; + if (params.entity.CreationDate) { + params.entity.CreationDate = new Date(params.entity.CreationDate); } + $scope.entity = params.entity; + $scope.selectedMainEntityKey = params.selectedMainEntityKey; + $scope.selectedMainEntityId = params.selectedMainEntityId; + $scope.optionsUsers = params.optionsUsers; + $scope.optionsBankAccountType = params.optionsBankAccountType; + $scope.optionsBankAccountStatus = params.optionsBankAccountStatus; + $scope.optionsCurrency = params.optionsCurrency; } $scope.create = function () { diff --git a/dirigible-bank-server/gen/ui/bankAccount/BankAccounts/dialog-window/index.html b/dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/dialog-window/index.html similarity index 91% rename from dirigible-bank-server/gen/ui/bankAccount/BankAccounts/dialog-window/index.html rename to dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/dialog-window/index.html index 99fa89d..fb15e1c 100644 --- a/dirigible-bank-server/gen/ui/bankAccount/BankAccounts/dialog-window/index.html +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/dialog-window/index.html @@ -25,7 +25,7 @@
- +
@@ -151,16 +151,16 @@ -
-
- - - -
-
+ + + + + + + + + + diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/dialog-window/view.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/dialog-window/view.extension new file mode 100644 index 0000000..1a77cae --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/dialog-window/view.extension @@ -0,0 +1 @@ +{"module":"dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/dialog-window/view.js","extensionPoint":"dirigible-bank-server-dialog-window","description":"dirigible-bank-server - Application Dialog Window"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/bankAccount/BankAccounts/dialog-window/view.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/dialog-window/view.js similarity index 74% rename from dirigible-bank-server/gen/ui/bankAccount/BankAccounts/dialog-window/view.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/dialog-window/view.js index 0cf1175..cc86d49 100644 --- a/dirigible-bank-server/gen/ui/bankAccount/BankAccounts/dialog-window/view.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/dialog-window/view.js @@ -6,7 +6,7 @@ const viewData = { id: "BankAccounts-details", label: "BankAccounts", - link: "/services/web/dirigible-bank-server/gen/ui/bankAccount/BankAccounts/dialog-window/index.html", + link: "/services/web/dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/dialog-window/index.html", perspectiveName: "bankAccount", }; diff --git a/dirigible-bank-server/gen/ui/bankAccount/BankAccounts/index.html b/dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/index.html similarity index 97% rename from dirigible-bank-server/gen/ui/bankAccount/BankAccounts/index.html rename to dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/index.html index 1e28280..39ba1bb 100644 --- a/dirigible-bank-server/gen/ui/bankAccount/BankAccounts/index.html +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/index.html @@ -19,7 +19,7 @@ Items ({{dataCount}}) - + @@ -70,7 +70,7 @@ - + diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/tile-portal.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/tile-portal.extension new file mode 100644 index 0000000..1e93ffd --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/tile-portal.extension @@ -0,0 +1 @@ +{"module":"dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/tile.js","extensionPoint":"portal-tile","description":"dirigible-bank-server - Application Tile"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/tile.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/tile.extension new file mode 100644 index 0000000..1ef3b9e --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/tile.extension @@ -0,0 +1 @@ +{"module":"dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/tile.js","extensionPoint":"dirigible-bank-server-tile","description":"dirigible-bank-server - Application Tile"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/bankAccount/BankAccounts/tile.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/tile.js similarity index 57% rename from dirigible-bank-server/gen/ui/bankAccount/BankAccounts/tile.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/tile.js index 7cd2ddc..8e1fea8 100644 --- a/dirigible-bank-server/gen/ui/bankAccount/BankAccounts/tile.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/tile.js @@ -5,12 +5,14 @@ */ exports.getTile = function () { return { - group: "bankAccount", + group: "dirigible-bank-server", name: "BankAccounts", caption: "Manage entity BankAccounts", tooltip: "BankAccounts", - // icon: "file-o", - location: "/services/web/dirigible-bank-server/gen/ui/bankAccount/index.html", + type: "PRIMARY", + report: "false", + icon: "/services/web/resources/unicons/file.svg", + location: "/services/web/dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/index.html", order: "100", groupOrder: "60", }; diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/view.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/view.extension new file mode 100644 index 0000000..6e4fa81 --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/view.extension @@ -0,0 +1 @@ +{"module":"dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/view.js","extensionPoint":"dirigible-bank-server-view","description":"dirigible-bank-server - Application View"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/bankAccount/BankAccounts/view.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/view.js similarity index 77% rename from dirigible-bank-server/gen/ui/bankAccount/BankAccounts/view.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/view.js index ee1ead9..d327343 100644 --- a/dirigible-bank-server/gen/ui/bankAccount/BankAccounts/view.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/view.js @@ -8,7 +8,7 @@ const viewData = { label: "BankAccounts", factory: "frame", region: "center", - link: "/services/web/dirigible-bank-server/gen/ui/bankAccount/BankAccounts/index.html", + link: "/services/web/dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/BankAccounts/index.html", perspectiveName: "bankAccount", }; diff --git a/dirigible-bank-server/gen/ui/entities/index.html b/dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/index.html similarity index 53% rename from dirigible-bank-server/gen/ui/entities/index.html rename to dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/index.html index 6d0bae9..af88c78 100644 --- a/dirigible-bank-server/gen/ui/entities/index.html +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/index.html @@ -1,7 +1,9 @@ @@ -23,16 +25,22 @@ - + + + {{state.busyText}} + + + Encounterd an error while loading + diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/perspective-portal.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/perspective-portal.extension new file mode 100644 index 0000000..3a831f7 --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/perspective-portal.extension @@ -0,0 +1 @@ +{"module":"dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/perspective.js","extensionPoint":"portal","description":"dirigible-bank-server - Perspective - bankAccount"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/perspective.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/perspective.extension new file mode 100644 index 0000000..a0b44d9 --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/perspective.extension @@ -0,0 +1 @@ +{"module":"dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/perspective.js","extensionPoint":"dirigible-bank-server","description":"dirigible-bank-server - Perspective - bankAccount"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/perspective.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/perspective.js new file mode 100644 index 0000000..162b34a --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/perspective.js @@ -0,0 +1,18 @@ +/* + * Generated by Eclipse Dirigible based on model and template. + * + * Do not modify the content as it may be re-generated again. + */ +const perspectiveData = { + id: 'bankAccount', + name: 'Bank Accounts', + link: '/services/web/dirigible-bank-server/gen/dirigible-bank-server/ui/bankAccount/index.html', + order: 60, + icon: '/services/web/resources/unicons/chart-line.svg', +}; + +if (typeof exports !== 'undefined') { + exports.getPerspective = function () { + return perspectiveData; + } +} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/cards/Cards/controller.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/controller.js similarity index 70% rename from dirigible-bank-server/gen/ui/cards/Cards/controller.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/controller.js index 4ef6dfb..708b96b 100644 --- a/dirigible-bank-server/gen/ui/cards/Cards/controller.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/controller.js @@ -3,36 +3,40 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) messageHubProvider.eventIdPrefix = 'dirigible-bank-server.cards.Cards'; }]) .config(["entityApiProvider", function (entityApiProvider) { - entityApiProvider.baseUrl = "/services/ts/dirigible-bank-server/gen/api/cards/CardsService.ts"; + entityApiProvider.baseUrl = "/services/ts/dirigible-bank-server/gen/dirigible-bank-server/api/cards/CardsService.ts"; }]) - .controller('PageController', ['$scope', '$http', 'messageHub', 'entityApi', function ($scope, $http, messageHub, entityApi) { + .controller('PageController', ['$scope', '$http', 'messageHub', 'entityApi', 'Extensions', function ($scope, $http, messageHub, entityApi, Extensions) { + + $scope.dataPage = 1; + $scope.dataCount = 0; + $scope.dataLimit = 20; //-----------------Custom Actions-------------------// - $http.get("/services/js/resources-core/services/custom-actions.js?extensionPoint=dirigible-bank-server-custom-action").then(function (response) { - $scope.pageActions = response.data.filter(e => e.perspective === "cards" && e.view === "Cards" && (e.type === "page" || e.type === undefined)); - $scope.entityActions = response.data.filter(e => e.perspective === "cards" && e.view === "Cards" && e.type === "entity"); + Extensions.get('dialogWindow', 'dirigible-bank-server-custom-action').then(function (response) { + $scope.pageActions = response.filter(e => e.perspective === "cards" && e.view === "Cards" && (e.type === "page" || e.type === undefined)); + $scope.entityActions = response.filter(e => e.perspective === "cards" && e.view === "Cards" && e.type === "entity"); }); - $scope.triggerPageAction = function (actionId) { - for (const next of $scope.pageActions) { - if (next.id === actionId) { - messageHub.showDialogWindow("dirigible-bank-server-custom-action", { - src: next.link, - }); - break; - } - } + $scope.triggerPageAction = function (action) { + messageHub.showDialogWindow( + action.id, + {}, + null, + true, + action + ); }; - $scope.triggerEntityAction = function (actionId, selectedEntity) { - for (const next of $scope.entityActions) { - if (next.id === actionId) { - messageHub.showDialogWindow("dirigible-bank-server-custom-action", { - src: `${next.link}?id=${selectedEntity.Id}`, - }); - break; - } - } + $scope.triggerEntityAction = function (action) { + messageHub.showDialogWindow( + action.id, + { + id: $scope.entity.Id + }, + null, + true, + action + ); }; //-----------------Custom Actions-------------------// @@ -70,7 +74,9 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) messageHub.showAlertError("Cards", `Unable to count Cards: '${response.message}'`); return; } - $scope.dataCount = response.data; + if (response.data) { + $scope.dataCount = response.data; + } let offset = (pageNumber - 1) * $scope.dataLimit; let limit = $scope.dataLimit; let request; @@ -108,7 +114,6 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) messageHub.showDialogWindow("Cards-details", { action: "select", entity: entity, - optionsUsers: $scope.optionsUsers, optionsCardType: $scope.optionsCardType, }); }; @@ -116,7 +121,6 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) $scope.openFilter = function (entity) { messageHub.showDialogWindow("Cards-filter", { entity: $scope.filterEntity, - optionsUsers: $scope.optionsUsers, optionsCardType: $scope.optionsCardType, }); }; @@ -126,7 +130,6 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) messageHub.showDialogWindow("Cards-details", { action: "create", entity: {}, - optionsUsers: $scope.optionsUsers, optionsCardType: $scope.optionsCardType, }, null, false); }; @@ -135,7 +138,6 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) messageHub.showDialogWindow("Cards-details", { action: "update", entity: entity, - optionsUsers: $scope.optionsUsers, optionsCardType: $scope.optionsCardType, }, null, false); }; @@ -170,20 +172,10 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) }; //----------------Dropdowns-----------------// - $scope.optionsUsers = []; $scope.optionsCardType = []; - $http.get("/services/ts/dirigible-bank-server/gen/api/users/UsersService.ts").then(function (response) { - $scope.optionsUsers = response.data.map(e => { - return { - value: e.Id, - text: e.FName - } - }); - }); - - $http.get("/services/ts/dirigible-bank-server/gen/api/entities/CardTypeService.ts").then(function (response) { + $http.get("/services/ts/dirigible-bank-server/gen/dirigible-bank-server/api/entities/CardTypeService.ts").then(function (response) { $scope.optionsCardType = response.data.map(e => { return { value: e.Id, @@ -192,14 +184,6 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) }); }); - $scope.optionsUsersValue = function (optionKey) { - for (let i = 0; i < $scope.optionsUsers.length; i++) { - if ($scope.optionsUsers[i].value === optionKey) { - return $scope.optionsUsers[i].text; - } - } - return null; - }; $scope.optionsCardTypeValue = function (optionKey) { for (let i = 0; i < $scope.optionsCardType.length; i++) { if ($scope.optionsCardType[i].value === optionKey) { diff --git a/dirigible-bank-server/gen/ui/cards/Cards/dialog-filter/controller.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/dialog-filter/controller.js similarity index 51% rename from dirigible-bank-server/gen/ui/cards/Cards/dialog-filter/controller.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/dialog-filter/controller.js index 70af5c9..cfdf938 100644 --- a/dirigible-bank-server/gen/ui/cards/Cards/dialog-filter/controller.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/dialog-filter/controller.js @@ -1,33 +1,26 @@ -angular.module('page', ["ideUI", "ideView", "entityApi"]) +angular.module('page', ["ideUI", "ideView"]) .config(["messageHubProvider", function (messageHubProvider) { messageHubProvider.eventIdPrefix = 'dirigible-bank-server.cards.Cards'; }]) - .config(["entityApiProvider", function (entityApiProvider) { - entityApiProvider.baseUrl = "/services/ts/dirigible-bank-server/gen/api/cards/CardsService.ts"; - }]) - .controller('PageController', ['$scope', 'messageHub', 'entityApi', function ($scope, messageHub, entityApi) { + .controller('PageController', ['$scope', 'messageHub', 'ViewParameters', function ($scope, messageHub, ViewParameters) { $scope.entity = {}; $scope.forms = { details: {}, }; - if (window != null && window.frameElement != null && window.frameElement.hasAttribute("data-parameters")) { - let dataParameters = window.frameElement.getAttribute("data-parameters"); - if (dataParameters) { - let params = JSON.parse(dataParameters); - if (params?.entity?.ExpirationDateFrom) { - params.entity.ExpirationDateFrom = new Date(params.entity.ExpirationDateFrom); - } - if (params?.entity?.ExpirationDateTo) { - params.entity.ExpirationDateTo = new Date(params.entity.ExpirationDateTo); - } - $scope.entity = params.entity ?? {}; - $scope.selectedMainEntityKey = params.selectedMainEntityKey; - $scope.selectedMainEntityId = params.selectedMainEntityId; - $scope.optionsUsers = params.optionsUsers; - $scope.optionsCardType = params.optionsCardType; + let params = ViewParameters.get(); + if (Object.keys(params).length) { + if (params?.entity?.ExpirationDateFrom) { + params.entity.ExpirationDateFrom = new Date(params.entity.ExpirationDateFrom); + } + if (params?.entity?.ExpirationDateTo) { + params.entity.ExpirationDateTo = new Date(params.entity.ExpirationDateTo); } + $scope.entity = params.entity ?? {}; + $scope.selectedMainEntityKey = params.selectedMainEntityKey; + $scope.selectedMainEntityId = params.selectedMainEntityId; + $scope.optionsCardType = params.optionsCardType; } $scope.filter = function () { @@ -50,12 +43,9 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) } }, }; - if (entity.Id) { + if (entity.Id !== undefined) { filter.$filter.equals.Id = entity.Id; } - if (entity.Users) { - filter.$filter.equals.Users = entity.Users; - } if (entity.CardNumber) { filter.$filter.contains.CardNumber = entity.CardNumber; } @@ -65,9 +55,12 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) if (entity.ExpirationDateTo) { filter.$filter.lessThanOrEqual.ExpirationDate = entity.ExpirationDateTo; } - if (entity.CardType) { + if (entity.CardType !== undefined) { filter.$filter.equals.CardType = entity.CardType; } + if (entity.BankAccounts !== undefined) { + filter.$filter.equals.BankAccounts = entity.BankAccounts; + } messageHub.postMessage("entitySearch", { entity: entity, filter: filter diff --git a/dirigible-bank-server/gen/ui/cards/Cards/dialog-filter/index.html b/dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/dialog-filter/index.html similarity index 73% rename from dirigible-bank-server/gen/ui/cards/Cards/dialog-filter/index.html rename to dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/dialog-filter/index.html index d532aab..25cedc3 100644 --- a/dirigible-bank-server/gen/ui/cards/Cards/dialog-filter/index.html +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/dialog-filter/index.html @@ -25,33 +25,17 @@
- +
- Users -
-
- - -
-
- -
- CardNumber + CardNumber
- From ExpirationDate + From ExpirationDate
@@ -79,14 +62,13 @@
- To ExpirationDate + To ExpirationDate
@@ -96,37 +78,54 @@
- CardType + CardType
+ +
+ BankAccounts +
+
+ + + + Incorrect Input + +
+
-
-
- - - - - -
-
+ + + + + + + + + + + + + diff --git a/dirigible-bank-server/gen/ui/entities/BankAccountType/dialog-filter/view.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/dialog-filter/view.extension similarity index 56% rename from dirigible-bank-server/gen/ui/entities/BankAccountType/dialog-filter/view.extension rename to dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/dialog-filter/view.extension index 57a7546..1281ab3 100644 --- a/dirigible-bank-server/gen/ui/entities/BankAccountType/dialog-filter/view.extension +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/dialog-filter/view.extension @@ -1,5 +1,5 @@ { - "module": "dirigible-bank-server/gen/ui/entities/BankAccountType/dialog-filter/view.js", + "module": "dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/dialog-filter/view.js", "extensionPoint": "dirigible-bank-server-dialog-window", "description": "dirigible-bank-server - Application Dialog Window" } \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/cards/Cards/dialog-filter/view.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/dialog-filter/view.js similarity index 75% rename from dirigible-bank-server/gen/ui/cards/Cards/dialog-filter/view.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/dialog-filter/view.js index ff5c33e..4ef184c 100644 --- a/dirigible-bank-server/gen/ui/cards/Cards/dialog-filter/view.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/dialog-filter/view.js @@ -6,7 +6,7 @@ const viewData = { id: "Cards-filter", label: "Cards Filter", - link: "/services/web/dirigible-bank-server/gen/ui/cards/Cards/dialog-filter/index.html", + link: "/services/web/dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/dialog-filter/index.html", perspectiveName: "cards", }; diff --git a/dirigible-bank-server/gen/ui/cards/Cards/dialog-window/controller.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/dialog-window/controller.js similarity index 68% rename from dirigible-bank-server/gen/ui/cards/Cards/dialog-window/controller.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/dialog-window/controller.js index 4f2b704..6706ed7 100644 --- a/dirigible-bank-server/gen/ui/cards/Cards/dialog-window/controller.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/dialog-window/controller.js @@ -3,9 +3,9 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) messageHubProvider.eventIdPrefix = 'dirigible-bank-server.cards.Cards'; }]) .config(["entityApiProvider", function (entityApiProvider) { - entityApiProvider.baseUrl = "/services/ts/dirigible-bank-server/gen/api/cards/CardsService.ts"; + entityApiProvider.baseUrl = "/services/ts/dirigible-bank-server/gen/dirigible-bank-server/api/cards/CardsService.ts"; }]) - .controller('PageController', ['$scope', 'messageHub', 'entityApi', function ($scope, messageHub, entityApi) { + .controller('PageController', ['$scope', 'messageHub', 'ViewParameters', 'entityApi', function ($scope, messageHub, ViewParameters, entityApi) { $scope.entity = {}; $scope.forms = { @@ -18,20 +18,16 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) }; $scope.action = 'select'; - if (window != null && window.frameElement != null && window.frameElement.hasAttribute("data-parameters")) { - let dataParameters = window.frameElement.getAttribute("data-parameters"); - if (dataParameters) { - let params = JSON.parse(dataParameters); - $scope.action = params.action; - if (params.entity.ExpirationDate) { - params.entity.ExpirationDate = new Date(params.entity.ExpirationDate); - } - $scope.entity = params.entity; - $scope.selectedMainEntityKey = params.selectedMainEntityKey; - $scope.selectedMainEntityId = params.selectedMainEntityId; - $scope.optionsUsers = params.optionsUsers; - $scope.optionsCardType = params.optionsCardType; + let params = ViewParameters.get(); + if (Object.keys(params).length) { + $scope.action = params.action; + if (params.entity.ExpirationDate) { + params.entity.ExpirationDate = new Date(params.entity.ExpirationDate); } + $scope.entity = params.entity; + $scope.selectedMainEntityKey = params.selectedMainEntityKey; + $scope.selectedMainEntityId = params.selectedMainEntityId; + $scope.optionsCardType = params.optionsCardType; } $scope.create = function () { diff --git a/dirigible-bank-server/gen/ui/cards/Cards/dialog-window/index.html b/dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/dialog-window/index.html similarity index 75% rename from dirigible-bank-server/gen/ui/cards/Cards/dialog-window/index.html rename to dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/dialog-window/index.html index e62daeb..0d49163 100644 --- a/dirigible-bank-server/gen/ui/cards/Cards/dialog-window/index.html +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/dialog-window/index.html @@ -25,24 +25,8 @@
- + - -
- Users -
-
- - -
-
CardNumber @@ -99,20 +83,42 @@
+ +
+ BankAccounts +
+
+ + + + The value doesn't match the required pattern '' + +
+
-
-
- - - -
-
+ + + + + + + + + + diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/dialog-window/view.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/dialog-window/view.extension new file mode 100644 index 0000000..5e9c165 --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/dialog-window/view.extension @@ -0,0 +1 @@ +{"module":"dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/dialog-window/view.js","extensionPoint":"dirigible-bank-server-dialog-window","description":"dirigible-bank-server - Application Dialog Window"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/cards/Cards/dialog-window/view.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/dialog-window/view.js similarity index 75% rename from dirigible-bank-server/gen/ui/cards/Cards/dialog-window/view.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/dialog-window/view.js index 636fcd4..14884e7 100644 --- a/dirigible-bank-server/gen/ui/cards/Cards/dialog-window/view.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/dialog-window/view.js @@ -6,7 +6,7 @@ const viewData = { id: "Cards-details", label: "Cards", - link: "/services/web/dirigible-bank-server/gen/ui/cards/Cards/dialog-window/index.html", + link: "/services/web/dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/dialog-window/index.html", perspectiveName: "cards", }; diff --git a/dirigible-bank-server/gen/ui/cards/Cards/index.html b/dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/index.html similarity index 93% rename from dirigible-bank-server/gen/ui/cards/Cards/index.html rename to dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/index.html index 30fbccd..018524f 100644 --- a/dirigible-bank-server/gen/ui/cards/Cards/index.html +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/index.html @@ -19,7 +19,7 @@ Items ({{dataCount}}) - + @@ -28,10 +28,10 @@ - + @@ -41,9 +41,6 @@ - + - + @@ -53,10 +53,10 @@ + -
Users CardNumber ExpirationDate CardTypeBankAccounts
- {{optionsUsersValue(next.Users)}} - {{next.CardNumber}} @@ -51,6 +48,7 @@ {{optionsCardTypeValue(next.CardType)}} {{next.BankAccounts}} @@ -60,7 +58,7 @@ - + diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/tile-portal.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/tile-portal.extension new file mode 100644 index 0000000..d1b064c --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/tile-portal.extension @@ -0,0 +1 @@ +{"module":"dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/tile.js","extensionPoint":"portal-tile","description":"dirigible-bank-server - Application Tile"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/tile.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/tile.extension new file mode 100644 index 0000000..e96747b --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/tile.extension @@ -0,0 +1 @@ +{"module":"dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/tile.js","extensionPoint":"dirigible-bank-server-tile","description":"dirigible-bank-server - Application Tile"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/cards/Cards/tile.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/tile.js similarity index 56% rename from dirigible-bank-server/gen/ui/cards/Cards/tile.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/tile.js index bc730a4..6260dfc 100644 --- a/dirigible-bank-server/gen/ui/cards/Cards/tile.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/tile.js @@ -5,12 +5,14 @@ */ exports.getTile = function () { return { - group: "cards", + group: "dirigible-bank-server", name: "Cards", caption: "Manage entity Cards", tooltip: "Cards", - // icon: "file-o", - location: "/services/web/dirigible-bank-server/gen/ui/cards/index.html", + type: "PRIMARY", + report: "false", + icon: "/services/web/resources/unicons/file.svg", + location: "/services/web/dirigible-bank-server/gen/dirigible-bank-server/ui/cards/index.html", order: "100", groupOrder: "80", }; diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/view.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/view.extension new file mode 100644 index 0000000..d34ce75 --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/view.extension @@ -0,0 +1 @@ +{"module":"dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/view.js","extensionPoint":"dirigible-bank-server-view","description":"dirigible-bank-server - Application View"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/cards/Cards/view.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/view.js similarity index 78% rename from dirigible-bank-server/gen/ui/cards/Cards/view.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/view.js index 90e9432..1610e84 100644 --- a/dirigible-bank-server/gen/ui/cards/Cards/view.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/view.js @@ -8,7 +8,7 @@ const viewData = { label: "Cards", factory: "frame", region: "center", - link: "/services/web/dirigible-bank-server/gen/ui/cards/Cards/index.html", + link: "/services/web/dirigible-bank-server/gen/dirigible-bank-server/ui/cards/Cards/index.html", perspectiveName: "cards", }; diff --git a/dirigible-bank-server/gen/ui/transactions/index.html b/dirigible-bank-server/gen/dirigible-bank-server/ui/cards/index.html similarity index 54% rename from dirigible-bank-server/gen/ui/transactions/index.html rename to dirigible-bank-server/gen/dirigible-bank-server/ui/cards/index.html index 862cc9d..7ba83bb 100644 --- a/dirigible-bank-server/gen/ui/transactions/index.html +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/cards/index.html @@ -1,7 +1,9 @@ @@ -23,16 +25,22 @@ - + + + {{state.busyText}} + + + Encounterd an error while loading + diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/cards/perspective-portal.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/cards/perspective-portal.extension new file mode 100644 index 0000000..7c4fbd6 --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/cards/perspective-portal.extension @@ -0,0 +1 @@ +{"module":"dirigible-bank-server/gen/dirigible-bank-server/ui/cards/perspective.js","extensionPoint":"portal","description":"dirigible-bank-server - Perspective - cards"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/cards/perspective.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/cards/perspective.extension new file mode 100644 index 0000000..ea0acfb --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/cards/perspective.extension @@ -0,0 +1 @@ +{"module":"dirigible-bank-server/gen/dirigible-bank-server/ui/cards/perspective.js","extensionPoint":"dirigible-bank-server","description":"dirigible-bank-server - Perspective - cards"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/cards/perspective.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/cards/perspective.js similarity index 58% rename from dirigible-bank-server/gen/ui/cards/perspective.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/cards/perspective.js index 14227e8..d2eac3b 100644 --- a/dirigible-bank-server/gen/ui/cards/perspective.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/cards/perspective.js @@ -4,11 +4,11 @@ * Do not modify the content as it may be re-generated again. */ const perspectiveData = { - id: "cards", - name: "cards", - link: "/services/web/dirigible-bank-server/gen/ui/cards/index.html", - order: "80", - icon: "/services/web/resources/unicons/credit-card.svg", + id: 'cards', + name: 'Cards', + link: '/services/web/dirigible-bank-server/gen/dirigible-bank-server/ui/cards/index.html', + order: 80, + icon: '/services/web/resources/unicons/credit-card.svg', }; if (typeof exports !== 'undefined') { diff --git a/dirigible-bank-server/gen/ui/entities/BankAccountStatus/controller.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/controller.js similarity index 75% rename from dirigible-bank-server/gen/ui/entities/BankAccountStatus/controller.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/controller.js index 5f0a2d3..89bf64f 100644 --- a/dirigible-bank-server/gen/ui/entities/BankAccountStatus/controller.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/controller.js @@ -3,36 +3,40 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) messageHubProvider.eventIdPrefix = 'dirigible-bank-server.entities.BankAccountStatus'; }]) .config(["entityApiProvider", function (entityApiProvider) { - entityApiProvider.baseUrl = "/services/ts/dirigible-bank-server/gen/api/entities/BankAccountStatusService.ts"; + entityApiProvider.baseUrl = "/services/ts/dirigible-bank-server/gen/dirigible-bank-server/api/entities/BankAccountStatusService.ts"; }]) - .controller('PageController', ['$scope', '$http', 'messageHub', 'entityApi', function ($scope, $http, messageHub, entityApi) { + .controller('PageController', ['$scope', 'messageHub', 'entityApi', 'Extensions', function ($scope, messageHub, entityApi, Extensions) { + + $scope.dataPage = 1; + $scope.dataCount = 0; + $scope.dataLimit = 20; //-----------------Custom Actions-------------------// - $http.get("/services/js/resources-core/services/custom-actions.js?extensionPoint=dirigible-bank-server-custom-action").then(function (response) { - $scope.pageActions = response.data.filter(e => e.perspective === "entities" && e.view === "BankAccountStatus" && (e.type === "page" || e.type === undefined)); - $scope.entityActions = response.data.filter(e => e.perspective === "entities" && e.view === "BankAccountStatus" && e.type === "entity"); + Extensions.get('dialogWindow', 'dirigible-bank-server-custom-action').then(function (response) { + $scope.pageActions = response.filter(e => e.perspective === "entities" && e.view === "BankAccountStatus" && (e.type === "page" || e.type === undefined)); + $scope.entityActions = response.filter(e => e.perspective === "entities" && e.view === "BankAccountStatus" && e.type === "entity"); }); - $scope.triggerPageAction = function (actionId) { - for (const next of $scope.pageActions) { - if (next.id === actionId) { - messageHub.showDialogWindow("dirigible-bank-server-custom-action", { - src: next.link, - }); - break; - } - } + $scope.triggerPageAction = function (action) { + messageHub.showDialogWindow( + action.id, + {}, + null, + true, + action + ); }; - $scope.triggerEntityAction = function (actionId, selectedEntity) { - for (const next of $scope.entityActions) { - if (next.id === actionId) { - messageHub.showDialogWindow("dirigible-bank-server-custom-action", { - src: `${next.link}?id=${selectedEntity.Id}`, - }); - break; - } - } + $scope.triggerEntityAction = function (action) { + messageHub.showDialogWindow( + action.id, + { + id: $scope.entity.Id + }, + null, + true, + action + ); }; //-----------------Custom Actions-------------------// @@ -70,7 +74,9 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) messageHub.showAlertError("BankAccountStatus", `Unable to count BankAccountStatus: '${response.message}'`); return; } - $scope.dataCount = response.data; + if (response.data) { + $scope.dataCount = response.data; + } let offset = (pageNumber - 1) * $scope.dataLimit; let limit = $scope.dataLimit; let request; diff --git a/dirigible-bank-server/gen/ui/entities/BankAccountStatus/dialog-filter/controller.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/dialog-filter/controller.js similarity index 56% rename from dirigible-bank-server/gen/ui/entities/BankAccountStatus/dialog-filter/controller.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/dialog-filter/controller.js index e076a5c..4476d03 100644 --- a/dirigible-bank-server/gen/ui/entities/BankAccountStatus/dialog-filter/controller.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/dialog-filter/controller.js @@ -1,25 +1,19 @@ -angular.module('page', ["ideUI", "ideView", "entityApi"]) +angular.module('page', ["ideUI", "ideView"]) .config(["messageHubProvider", function (messageHubProvider) { messageHubProvider.eventIdPrefix = 'dirigible-bank-server.entities.BankAccountStatus'; }]) - .config(["entityApiProvider", function (entityApiProvider) { - entityApiProvider.baseUrl = "/services/ts/dirigible-bank-server/gen/api/entities/BankAccountStatusService.ts"; - }]) - .controller('PageController', ['$scope', 'messageHub', 'entityApi', function ($scope, messageHub, entityApi) { + .controller('PageController', ['$scope', 'messageHub', 'ViewParameters', function ($scope, messageHub, ViewParameters) { $scope.entity = {}; $scope.forms = { details: {}, }; - if (window != null && window.frameElement != null && window.frameElement.hasAttribute("data-parameters")) { - let dataParameters = window.frameElement.getAttribute("data-parameters"); - if (dataParameters) { - let params = JSON.parse(dataParameters); - $scope.entity = params.entity ?? {}; - $scope.selectedMainEntityKey = params.selectedMainEntityKey; - $scope.selectedMainEntityId = params.selectedMainEntityId; - } + let params = ViewParameters.get(); + if (Object.keys(params).length) { + $scope.entity = params.entity ?? {}; + $scope.selectedMainEntityKey = params.selectedMainEntityKey; + $scope.selectedMainEntityId = params.selectedMainEntityId; } $scope.filter = function () { @@ -42,7 +36,7 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) } }, }; - if (entity.Id) { + if (entity.Id !== undefined) { filter.$filter.equals.Id = entity.Id; } if (entity.Name) { diff --git a/dirigible-bank-server/gen/ui/entities/BankAccountStatus/dialog-filter/index.html b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/dialog-filter/index.html similarity index 71% rename from dirigible-bank-server/gen/ui/entities/BankAccountStatus/dialog-filter/index.html rename to dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/dialog-filter/index.html index 0953e71..9fad91f 100644 --- a/dirigible-bank-server/gen/ui/entities/BankAccountStatus/dialog-filter/index.html +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/dialog-filter/index.html @@ -25,18 +25,17 @@ - +
- Name + Name
-
-
- - - - - -
-
+ + + + + + + + + + + + + diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/dialog-filter/view.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/dialog-filter/view.extension new file mode 100644 index 0000000..607a302 --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/dialog-filter/view.extension @@ -0,0 +1,5 @@ +{ + "module": "dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/dialog-filter/view.js", + "extensionPoint": "dirigible-bank-server-dialog-window", + "description": "dirigible-bank-server - Application Dialog Window" +} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/entities/BankAccountStatus/dialog-filter/view.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/dialog-filter/view.js similarity index 74% rename from dirigible-bank-server/gen/ui/entities/BankAccountStatus/dialog-filter/view.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/dialog-filter/view.js index b813e6d..fa818ac 100644 --- a/dirigible-bank-server/gen/ui/entities/BankAccountStatus/dialog-filter/view.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/dialog-filter/view.js @@ -6,7 +6,7 @@ const viewData = { id: "BankAccountStatus-filter", label: "BankAccountStatus Filter", - link: "/services/web/dirigible-bank-server/gen/ui/entities/BankAccountStatus/dialog-filter/index.html", + link: "/services/web/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/dialog-filter/index.html", perspectiveName: "entities", }; diff --git a/dirigible-bank-server/gen/ui/entities/BankAccountStatus/dialog-window/controller.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/dialog-window/controller.js similarity index 75% rename from dirigible-bank-server/gen/ui/entities/BankAccountStatus/dialog-window/controller.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/dialog-window/controller.js index 4b6e2c2..91de03f 100644 --- a/dirigible-bank-server/gen/ui/entities/BankAccountStatus/dialog-window/controller.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/dialog-window/controller.js @@ -3,9 +3,9 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) messageHubProvider.eventIdPrefix = 'dirigible-bank-server.entities.BankAccountStatus'; }]) .config(["entityApiProvider", function (entityApiProvider) { - entityApiProvider.baseUrl = "/services/ts/dirigible-bank-server/gen/api/entities/BankAccountStatusService.ts"; + entityApiProvider.baseUrl = "/services/ts/dirigible-bank-server/gen/dirigible-bank-server/api/entities/BankAccountStatusService.ts"; }]) - .controller('PageController', ['$scope', 'messageHub', 'entityApi', function ($scope, messageHub, entityApi) { + .controller('PageController', ['$scope', 'messageHub', 'ViewParameters', 'entityApi', function ($scope, messageHub, ViewParameters, entityApi) { $scope.entity = {}; $scope.forms = { @@ -18,15 +18,12 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) }; $scope.action = 'select'; - if (window != null && window.frameElement != null && window.frameElement.hasAttribute("data-parameters")) { - let dataParameters = window.frameElement.getAttribute("data-parameters"); - if (dataParameters) { - let params = JSON.parse(dataParameters); - $scope.action = params.action; - $scope.entity = params.entity; - $scope.selectedMainEntityKey = params.selectedMainEntityKey; - $scope.selectedMainEntityId = params.selectedMainEntityId; - } + let params = ViewParameters.get(); + if (Object.keys(params).length) { + $scope.action = params.action; + $scope.entity = params.entity; + $scope.selectedMainEntityKey = params.selectedMainEntityKey; + $scope.selectedMainEntityId = params.selectedMainEntityId; } $scope.create = function () { diff --git a/dirigible-bank-server/gen/ui/entities/BankAccountStatus/dialog-window/index.html b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/dialog-window/index.html similarity index 78% rename from dirigible-bank-server/gen/ui/entities/BankAccountStatus/dialog-window/index.html rename to dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/dialog-window/index.html index 9ccf6a0..1591fcd 100644 --- a/dirigible-bank-server/gen/ui/entities/BankAccountStatus/dialog-window/index.html +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/dialog-window/index.html @@ -25,7 +25,7 @@
- +
@@ -53,16 +53,16 @@ -
-
- - - -
-
+ + + + + + + + + + diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/dialog-window/view.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/dialog-window/view.extension new file mode 100644 index 0000000..efe05ea --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/dialog-window/view.extension @@ -0,0 +1 @@ +{"module":"dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/dialog-window/view.js","extensionPoint":"dirigible-bank-server-dialog-window","description":"dirigible-bank-server - Application Dialog Window"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/entities/BankAccountStatus/dialog-window/view.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/dialog-window/view.js similarity index 74% rename from dirigible-bank-server/gen/ui/entities/BankAccountStatus/dialog-window/view.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/dialog-window/view.js index c465eed..31238d3 100644 --- a/dirigible-bank-server/gen/ui/entities/BankAccountStatus/dialog-window/view.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/dialog-window/view.js @@ -6,7 +6,7 @@ const viewData = { id: "BankAccountStatus-details", label: "BankAccountStatus", - link: "/services/web/dirigible-bank-server/gen/ui/entities/BankAccountStatus/dialog-window/index.html", + link: "/services/web/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/dialog-window/index.html", perspectiveName: "entities", }; diff --git a/dirigible-bank-server/gen/ui/entities/BankAccountStatus/index.html b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/index.html similarity index 96% rename from dirigible-bank-server/gen/ui/entities/BankAccountStatus/index.html rename to dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/index.html index cf0e843..a1c758b 100644 --- a/dirigible-bank-server/gen/ui/entities/BankAccountStatus/index.html +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/index.html @@ -19,7 +19,7 @@ Items ({{dataCount}}) - + @@ -48,7 +48,7 @@ - + diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/tile-portal.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/tile-portal.extension new file mode 100644 index 0000000..9c370c3 --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/tile-portal.extension @@ -0,0 +1 @@ +{"module":"dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/tile.js","extensionPoint":"portal-tile","description":"dirigible-bank-server - Application Tile"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/tile.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/tile.extension new file mode 100644 index 0000000..bacfa37 --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/tile.extension @@ -0,0 +1 @@ +{"module":"dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/tile.js","extensionPoint":"dirigible-bank-server-tile","description":"dirigible-bank-server - Application Tile"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/entities/BankAccountStatus/tile.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/tile.js similarity index 58% rename from dirigible-bank-server/gen/ui/entities/BankAccountStatus/tile.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/tile.js index 3939edb..3f14043 100644 --- a/dirigible-bank-server/gen/ui/entities/BankAccountStatus/tile.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/tile.js @@ -5,12 +5,14 @@ */ exports.getTile = function () { return { - group: "entities", + group: "dirigible-bank-server", name: "BankAccountStatus", caption: "Manage entity BankAccountStatus", tooltip: "BankAccountStatus", - // icon: "file-o", - location: "/services/web/dirigible-bank-server/gen/ui/entities/index.html", + type: "PRIMARY", + report: "false", + icon: "/services/web/resources/unicons/file.svg", + location: "/services/web/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/index.html", order: "100", groupOrder: "100", }; diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/view.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/view.extension new file mode 100644 index 0000000..49f4686 --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/view.extension @@ -0,0 +1 @@ +{"module":"dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/view.js","extensionPoint":"dirigible-bank-server-view","description":"dirigible-bank-server - Application View"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/entities/BankAccountStatus/view.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/view.js similarity index 77% rename from dirigible-bank-server/gen/ui/entities/BankAccountStatus/view.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/view.js index 721c3d5..e4e3767 100644 --- a/dirigible-bank-server/gen/ui/entities/BankAccountStatus/view.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/view.js @@ -8,7 +8,7 @@ const viewData = { label: "BankAccountStatus", factory: "frame", region: "center", - link: "/services/web/dirigible-bank-server/gen/ui/entities/BankAccountStatus/index.html", + link: "/services/web/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountStatus/index.html", perspectiveName: "entities", }; diff --git a/dirigible-bank-server/gen/ui/entities/BankAccountType/controller.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/controller.js similarity index 75% rename from dirigible-bank-server/gen/ui/entities/BankAccountType/controller.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/controller.js index d5a26ad..5075573 100644 --- a/dirigible-bank-server/gen/ui/entities/BankAccountType/controller.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/controller.js @@ -3,36 +3,40 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) messageHubProvider.eventIdPrefix = 'dirigible-bank-server.entities.BankAccountType'; }]) .config(["entityApiProvider", function (entityApiProvider) { - entityApiProvider.baseUrl = "/services/ts/dirigible-bank-server/gen/api/entities/BankAccountTypeService.ts"; + entityApiProvider.baseUrl = "/services/ts/dirigible-bank-server/gen/dirigible-bank-server/api/entities/BankAccountTypeService.ts"; }]) - .controller('PageController', ['$scope', '$http', 'messageHub', 'entityApi', function ($scope, $http, messageHub, entityApi) { + .controller('PageController', ['$scope', 'messageHub', 'entityApi', 'Extensions', function ($scope, messageHub, entityApi, Extensions) { + + $scope.dataPage = 1; + $scope.dataCount = 0; + $scope.dataLimit = 20; //-----------------Custom Actions-------------------// - $http.get("/services/js/resources-core/services/custom-actions.js?extensionPoint=dirigible-bank-server-custom-action").then(function (response) { - $scope.pageActions = response.data.filter(e => e.perspective === "entities" && e.view === "BankAccountType" && (e.type === "page" || e.type === undefined)); - $scope.entityActions = response.data.filter(e => e.perspective === "entities" && e.view === "BankAccountType" && e.type === "entity"); + Extensions.get('dialogWindow', 'dirigible-bank-server-custom-action').then(function (response) { + $scope.pageActions = response.filter(e => e.perspective === "entities" && e.view === "BankAccountType" && (e.type === "page" || e.type === undefined)); + $scope.entityActions = response.filter(e => e.perspective === "entities" && e.view === "BankAccountType" && e.type === "entity"); }); - $scope.triggerPageAction = function (actionId) { - for (const next of $scope.pageActions) { - if (next.id === actionId) { - messageHub.showDialogWindow("dirigible-bank-server-custom-action", { - src: next.link, - }); - break; - } - } + $scope.triggerPageAction = function (action) { + messageHub.showDialogWindow( + action.id, + {}, + null, + true, + action + ); }; - $scope.triggerEntityAction = function (actionId, selectedEntity) { - for (const next of $scope.entityActions) { - if (next.id === actionId) { - messageHub.showDialogWindow("dirigible-bank-server-custom-action", { - src: `${next.link}?id=${selectedEntity.Id}`, - }); - break; - } - } + $scope.triggerEntityAction = function (action) { + messageHub.showDialogWindow( + action.id, + { + id: $scope.entity.Id + }, + null, + true, + action + ); }; //-----------------Custom Actions-------------------// @@ -70,7 +74,9 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) messageHub.showAlertError("BankAccountType", `Unable to count BankAccountType: '${response.message}'`); return; } - $scope.dataCount = response.data; + if (response.data) { + $scope.dataCount = response.data; + } let offset = (pageNumber - 1) * $scope.dataLimit; let limit = $scope.dataLimit; let request; diff --git a/dirigible-bank-server/gen/ui/entities/BankAccountType/dialog-filter/controller.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/dialog-filter/controller.js similarity index 56% rename from dirigible-bank-server/gen/ui/entities/BankAccountType/dialog-filter/controller.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/dialog-filter/controller.js index f756faa..8ec781a 100644 --- a/dirigible-bank-server/gen/ui/entities/BankAccountType/dialog-filter/controller.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/dialog-filter/controller.js @@ -1,25 +1,19 @@ -angular.module('page', ["ideUI", "ideView", "entityApi"]) +angular.module('page', ["ideUI", "ideView"]) .config(["messageHubProvider", function (messageHubProvider) { messageHubProvider.eventIdPrefix = 'dirigible-bank-server.entities.BankAccountType'; }]) - .config(["entityApiProvider", function (entityApiProvider) { - entityApiProvider.baseUrl = "/services/ts/dirigible-bank-server/gen/api/entities/BankAccountTypeService.ts"; - }]) - .controller('PageController', ['$scope', 'messageHub', 'entityApi', function ($scope, messageHub, entityApi) { + .controller('PageController', ['$scope', 'messageHub', 'ViewParameters', function ($scope, messageHub, ViewParameters) { $scope.entity = {}; $scope.forms = { details: {}, }; - if (window != null && window.frameElement != null && window.frameElement.hasAttribute("data-parameters")) { - let dataParameters = window.frameElement.getAttribute("data-parameters"); - if (dataParameters) { - let params = JSON.parse(dataParameters); - $scope.entity = params.entity ?? {}; - $scope.selectedMainEntityKey = params.selectedMainEntityKey; - $scope.selectedMainEntityId = params.selectedMainEntityId; - } + let params = ViewParameters.get(); + if (Object.keys(params).length) { + $scope.entity = params.entity ?? {}; + $scope.selectedMainEntityKey = params.selectedMainEntityKey; + $scope.selectedMainEntityId = params.selectedMainEntityId; } $scope.filter = function () { @@ -42,7 +36,7 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) } }, }; - if (entity.Id) { + if (entity.Id !== undefined) { filter.$filter.equals.Id = entity.Id; } if (entity.Name) { diff --git a/dirigible-bank-server/gen/ui/entities/BankAccountType/dialog-filter/index.html b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/dialog-filter/index.html similarity index 71% rename from dirigible-bank-server/gen/ui/entities/BankAccountType/dialog-filter/index.html rename to dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/dialog-filter/index.html index a96533d..c4b812f 100644 --- a/dirigible-bank-server/gen/ui/entities/BankAccountType/dialog-filter/index.html +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/dialog-filter/index.html @@ -25,18 +25,17 @@
- +
- Name + Name
-
-
- - - - - -
-
+ + + + + + + + + + + + + diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/dialog-filter/view.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/dialog-filter/view.extension new file mode 100644 index 0000000..4d5a6ba --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/dialog-filter/view.extension @@ -0,0 +1,5 @@ +{ + "module": "dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/dialog-filter/view.js", + "extensionPoint": "dirigible-bank-server-dialog-window", + "description": "dirigible-bank-server - Application Dialog Window" +} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/entities/BankAccountType/dialog-filter/view.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/dialog-filter/view.js similarity index 74% rename from dirigible-bank-server/gen/ui/entities/BankAccountType/dialog-filter/view.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/dialog-filter/view.js index 0a48b14..390435f 100644 --- a/dirigible-bank-server/gen/ui/entities/BankAccountType/dialog-filter/view.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/dialog-filter/view.js @@ -6,7 +6,7 @@ const viewData = { id: "BankAccountType-filter", label: "BankAccountType Filter", - link: "/services/web/dirigible-bank-server/gen/ui/entities/BankAccountType/dialog-filter/index.html", + link: "/services/web/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/dialog-filter/index.html", perspectiveName: "entities", }; diff --git a/dirigible-bank-server/gen/ui/entities/BankAccountType/dialog-window/controller.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/dialog-window/controller.js similarity index 75% rename from dirigible-bank-server/gen/ui/entities/BankAccountType/dialog-window/controller.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/dialog-window/controller.js index faccf5d..8c142a2 100644 --- a/dirigible-bank-server/gen/ui/entities/BankAccountType/dialog-window/controller.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/dialog-window/controller.js @@ -3,9 +3,9 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) messageHubProvider.eventIdPrefix = 'dirigible-bank-server.entities.BankAccountType'; }]) .config(["entityApiProvider", function (entityApiProvider) { - entityApiProvider.baseUrl = "/services/ts/dirigible-bank-server/gen/api/entities/BankAccountTypeService.ts"; + entityApiProvider.baseUrl = "/services/ts/dirigible-bank-server/gen/dirigible-bank-server/api/entities/BankAccountTypeService.ts"; }]) - .controller('PageController', ['$scope', 'messageHub', 'entityApi', function ($scope, messageHub, entityApi) { + .controller('PageController', ['$scope', 'messageHub', 'ViewParameters', 'entityApi', function ($scope, messageHub, ViewParameters, entityApi) { $scope.entity = {}; $scope.forms = { @@ -18,15 +18,12 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) }; $scope.action = 'select'; - if (window != null && window.frameElement != null && window.frameElement.hasAttribute("data-parameters")) { - let dataParameters = window.frameElement.getAttribute("data-parameters"); - if (dataParameters) { - let params = JSON.parse(dataParameters); - $scope.action = params.action; - $scope.entity = params.entity; - $scope.selectedMainEntityKey = params.selectedMainEntityKey; - $scope.selectedMainEntityId = params.selectedMainEntityId; - } + let params = ViewParameters.get(); + if (Object.keys(params).length) { + $scope.action = params.action; + $scope.entity = params.entity; + $scope.selectedMainEntityKey = params.selectedMainEntityKey; + $scope.selectedMainEntityId = params.selectedMainEntityId; } $scope.create = function () { diff --git a/dirigible-bank-server/gen/ui/entities/CardType/dialog-window/index.html b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/dialog-window/index.html similarity index 78% rename from dirigible-bank-server/gen/ui/entities/CardType/dialog-window/index.html rename to dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/dialog-window/index.html index 6389a32..06b03a0 100644 --- a/dirigible-bank-server/gen/ui/entities/CardType/dialog-window/index.html +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/dialog-window/index.html @@ -25,7 +25,7 @@
- +
@@ -53,16 +53,16 @@ -
-
- - - -
-
+ + + + + + + + + + diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/dialog-window/view.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/dialog-window/view.extension new file mode 100644 index 0000000..a6d1050 --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/dialog-window/view.extension @@ -0,0 +1 @@ +{"module":"dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/dialog-window/view.js","extensionPoint":"dirigible-bank-server-dialog-window","description":"dirigible-bank-server - Application Dialog Window"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/entities/BankAccountType/dialog-window/view.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/dialog-window/view.js similarity index 74% rename from dirigible-bank-server/gen/ui/entities/BankAccountType/dialog-window/view.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/dialog-window/view.js index 2699ef0..d9e2319 100644 --- a/dirigible-bank-server/gen/ui/entities/BankAccountType/dialog-window/view.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/dialog-window/view.js @@ -6,7 +6,7 @@ const viewData = { id: "BankAccountType-details", label: "BankAccountType", - link: "/services/web/dirigible-bank-server/gen/ui/entities/BankAccountType/dialog-window/index.html", + link: "/services/web/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/dialog-window/index.html", perspectiveName: "entities", }; diff --git a/dirigible-bank-server/gen/ui/entities/CardType/index.html b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/index.html similarity index 96% rename from dirigible-bank-server/gen/ui/entities/CardType/index.html rename to dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/index.html index cf0e843..a1c758b 100644 --- a/dirigible-bank-server/gen/ui/entities/CardType/index.html +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/index.html @@ -19,7 +19,7 @@ Items ({{dataCount}}) - + @@ -48,7 +48,7 @@ - + diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/tile-portal.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/tile-portal.extension new file mode 100644 index 0000000..f287ded --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/tile-portal.extension @@ -0,0 +1 @@ +{"module":"dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/tile.js","extensionPoint":"portal-tile","description":"dirigible-bank-server - Application Tile"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/tile.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/tile.extension new file mode 100644 index 0000000..335b3e6 --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/tile.extension @@ -0,0 +1 @@ +{"module":"dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/tile.js","extensionPoint":"dirigible-bank-server-tile","description":"dirigible-bank-server - Application Tile"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/entities/BankAccountType/tile.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/tile.js similarity index 58% rename from dirigible-bank-server/gen/ui/entities/BankAccountType/tile.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/tile.js index bbf4419..203070b 100644 --- a/dirigible-bank-server/gen/ui/entities/BankAccountType/tile.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/tile.js @@ -5,12 +5,14 @@ */ exports.getTile = function () { return { - group: "entities", + group: "dirigible-bank-server", name: "BankAccountType", caption: "Manage entity BankAccountType", tooltip: "BankAccountType", - // icon: "file-o", - location: "/services/web/dirigible-bank-server/gen/ui/entities/index.html", + type: "PRIMARY", + report: "false", + icon: "/services/web/resources/unicons/file.svg", + location: "/services/web/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/index.html", order: "100", groupOrder: "100", }; diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/view.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/view.extension new file mode 100644 index 0000000..b70883e --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/view.extension @@ -0,0 +1 @@ +{"module":"dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/view.js","extensionPoint":"dirigible-bank-server-view","description":"dirigible-bank-server - Application View"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/entities/BankAccountType/view.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/view.js similarity index 77% rename from dirigible-bank-server/gen/ui/entities/BankAccountType/view.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/view.js index b3c58df..097cec3 100644 --- a/dirigible-bank-server/gen/ui/entities/BankAccountType/view.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/view.js @@ -8,7 +8,7 @@ const viewData = { label: "BankAccountType", factory: "frame", region: "center", - link: "/services/web/dirigible-bank-server/gen/ui/entities/BankAccountType/index.html", + link: "/services/web/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/BankAccountType/index.html", perspectiveName: "entities", }; diff --git a/dirigible-bank-server/gen/ui/entities/CardType/controller.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/controller.js similarity index 75% rename from dirigible-bank-server/gen/ui/entities/CardType/controller.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/controller.js index f21650f..d6197c4 100644 --- a/dirigible-bank-server/gen/ui/entities/CardType/controller.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/controller.js @@ -3,36 +3,40 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) messageHubProvider.eventIdPrefix = 'dirigible-bank-server.entities.CardType'; }]) .config(["entityApiProvider", function (entityApiProvider) { - entityApiProvider.baseUrl = "/services/ts/dirigible-bank-server/gen/api/entities/CardTypeService.ts"; + entityApiProvider.baseUrl = "/services/ts/dirigible-bank-server/gen/dirigible-bank-server/api/entities/CardTypeService.ts"; }]) - .controller('PageController', ['$scope', '$http', 'messageHub', 'entityApi', function ($scope, $http, messageHub, entityApi) { + .controller('PageController', ['$scope', 'messageHub', 'entityApi', 'Extensions', function ($scope, messageHub, entityApi, Extensions) { + + $scope.dataPage = 1; + $scope.dataCount = 0; + $scope.dataLimit = 20; //-----------------Custom Actions-------------------// - $http.get("/services/js/resources-core/services/custom-actions.js?extensionPoint=dirigible-bank-server-custom-action").then(function (response) { - $scope.pageActions = response.data.filter(e => e.perspective === "entities" && e.view === "CardType" && (e.type === "page" || e.type === undefined)); - $scope.entityActions = response.data.filter(e => e.perspective === "entities" && e.view === "CardType" && e.type === "entity"); + Extensions.get('dialogWindow', 'dirigible-bank-server-custom-action').then(function (response) { + $scope.pageActions = response.filter(e => e.perspective === "entities" && e.view === "CardType" && (e.type === "page" || e.type === undefined)); + $scope.entityActions = response.filter(e => e.perspective === "entities" && e.view === "CardType" && e.type === "entity"); }); - $scope.triggerPageAction = function (actionId) { - for (const next of $scope.pageActions) { - if (next.id === actionId) { - messageHub.showDialogWindow("dirigible-bank-server-custom-action", { - src: next.link, - }); - break; - } - } + $scope.triggerPageAction = function (action) { + messageHub.showDialogWindow( + action.id, + {}, + null, + true, + action + ); }; - $scope.triggerEntityAction = function (actionId, selectedEntity) { - for (const next of $scope.entityActions) { - if (next.id === actionId) { - messageHub.showDialogWindow("dirigible-bank-server-custom-action", { - src: `${next.link}?id=${selectedEntity.Id}`, - }); - break; - } - } + $scope.triggerEntityAction = function (action) { + messageHub.showDialogWindow( + action.id, + { + id: $scope.entity.Id + }, + null, + true, + action + ); }; //-----------------Custom Actions-------------------// @@ -70,7 +74,9 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) messageHub.showAlertError("CardType", `Unable to count CardType: '${response.message}'`); return; } - $scope.dataCount = response.data; + if (response.data) { + $scope.dataCount = response.data; + } let offset = (pageNumber - 1) * $scope.dataLimit; let limit = $scope.dataLimit; let request; diff --git a/dirigible-bank-server/gen/ui/entities/CardType/dialog-filter/controller.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/dialog-filter/controller.js similarity index 56% rename from dirigible-bank-server/gen/ui/entities/CardType/dialog-filter/controller.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/dialog-filter/controller.js index 210b779..74d5a7f 100644 --- a/dirigible-bank-server/gen/ui/entities/CardType/dialog-filter/controller.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/dialog-filter/controller.js @@ -1,25 +1,19 @@ -angular.module('page', ["ideUI", "ideView", "entityApi"]) +angular.module('page', ["ideUI", "ideView"]) .config(["messageHubProvider", function (messageHubProvider) { messageHubProvider.eventIdPrefix = 'dirigible-bank-server.entities.CardType'; }]) - .config(["entityApiProvider", function (entityApiProvider) { - entityApiProvider.baseUrl = "/services/ts/dirigible-bank-server/gen/api/entities/CardTypeService.ts"; - }]) - .controller('PageController', ['$scope', 'messageHub', 'entityApi', function ($scope, messageHub, entityApi) { + .controller('PageController', ['$scope', 'messageHub', 'ViewParameters', function ($scope, messageHub, ViewParameters) { $scope.entity = {}; $scope.forms = { details: {}, }; - if (window != null && window.frameElement != null && window.frameElement.hasAttribute("data-parameters")) { - let dataParameters = window.frameElement.getAttribute("data-parameters"); - if (dataParameters) { - let params = JSON.parse(dataParameters); - $scope.entity = params.entity ?? {}; - $scope.selectedMainEntityKey = params.selectedMainEntityKey; - $scope.selectedMainEntityId = params.selectedMainEntityId; - } + let params = ViewParameters.get(); + if (Object.keys(params).length) { + $scope.entity = params.entity ?? {}; + $scope.selectedMainEntityKey = params.selectedMainEntityKey; + $scope.selectedMainEntityId = params.selectedMainEntityId; } $scope.filter = function () { @@ -42,7 +36,7 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) } }, }; - if (entity.Id) { + if (entity.Id !== undefined) { filter.$filter.equals.Id = entity.Id; } if (entity.Name) { diff --git a/dirigible-bank-server/gen/ui/entities/CardType/dialog-filter/index.html b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/dialog-filter/index.html similarity index 71% rename from dirigible-bank-server/gen/ui/entities/CardType/dialog-filter/index.html rename to dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/dialog-filter/index.html index 2b66b61..db4ab32 100644 --- a/dirigible-bank-server/gen/ui/entities/CardType/dialog-filter/index.html +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/dialog-filter/index.html @@ -25,18 +25,17 @@
- +
- Name + Name
-
-
- - - - - -
-
+ + + + + + + + + + + + + diff --git a/dirigible-bank-server/gen/ui/entities/BankAccountStatus/dialog-filter/view.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/dialog-filter/view.extension similarity index 55% rename from dirigible-bank-server/gen/ui/entities/BankAccountStatus/dialog-filter/view.extension rename to dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/dialog-filter/view.extension index bc2cb10..4b01be1 100644 --- a/dirigible-bank-server/gen/ui/entities/BankAccountStatus/dialog-filter/view.extension +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/dialog-filter/view.extension @@ -1,5 +1,5 @@ { - "module": "dirigible-bank-server/gen/ui/entities/BankAccountStatus/dialog-filter/view.js", + "module": "dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/dialog-filter/view.js", "extensionPoint": "dirigible-bank-server-dialog-window", "description": "dirigible-bank-server - Application Dialog Window" } \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/entities/CardType/dialog-filter/view.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/dialog-filter/view.js similarity index 74% rename from dirigible-bank-server/gen/ui/entities/CardType/dialog-filter/view.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/dialog-filter/view.js index bbdfb0d..f71ef6c 100644 --- a/dirigible-bank-server/gen/ui/entities/CardType/dialog-filter/view.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/dialog-filter/view.js @@ -6,7 +6,7 @@ const viewData = { id: "CardType-filter", label: "CardType Filter", - link: "/services/web/dirigible-bank-server/gen/ui/entities/CardType/dialog-filter/index.html", + link: "/services/web/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/dialog-filter/index.html", perspectiveName: "entities", }; diff --git a/dirigible-bank-server/gen/ui/entities/CardType/dialog-window/controller.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/dialog-window/controller.js similarity index 74% rename from dirigible-bank-server/gen/ui/entities/CardType/dialog-window/controller.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/dialog-window/controller.js index f73cc99..8db0e94 100644 --- a/dirigible-bank-server/gen/ui/entities/CardType/dialog-window/controller.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/dialog-window/controller.js @@ -3,9 +3,9 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) messageHubProvider.eventIdPrefix = 'dirigible-bank-server.entities.CardType'; }]) .config(["entityApiProvider", function (entityApiProvider) { - entityApiProvider.baseUrl = "/services/ts/dirigible-bank-server/gen/api/entities/CardTypeService.ts"; + entityApiProvider.baseUrl = "/services/ts/dirigible-bank-server/gen/dirigible-bank-server/api/entities/CardTypeService.ts"; }]) - .controller('PageController', ['$scope', 'messageHub', 'entityApi', function ($scope, messageHub, entityApi) { + .controller('PageController', ['$scope', 'messageHub', 'ViewParameters', 'entityApi', function ($scope, messageHub, ViewParameters, entityApi) { $scope.entity = {}; $scope.forms = { @@ -18,15 +18,12 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) }; $scope.action = 'select'; - if (window != null && window.frameElement != null && window.frameElement.hasAttribute("data-parameters")) { - let dataParameters = window.frameElement.getAttribute("data-parameters"); - if (dataParameters) { - let params = JSON.parse(dataParameters); - $scope.action = params.action; - $scope.entity = params.entity; - $scope.selectedMainEntityKey = params.selectedMainEntityKey; - $scope.selectedMainEntityId = params.selectedMainEntityId; - } + let params = ViewParameters.get(); + if (Object.keys(params).length) { + $scope.action = params.action; + $scope.entity = params.entity; + $scope.selectedMainEntityKey = params.selectedMainEntityKey; + $scope.selectedMainEntityId = params.selectedMainEntityId; } $scope.create = function () { diff --git a/dirigible-bank-server/gen/ui/entities/BankAccountType/dialog-window/index.html b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/dialog-window/index.html similarity index 78% rename from dirigible-bank-server/gen/ui/entities/BankAccountType/dialog-window/index.html rename to dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/dialog-window/index.html index 6389a32..06b03a0 100644 --- a/dirigible-bank-server/gen/ui/entities/BankAccountType/dialog-window/index.html +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/dialog-window/index.html @@ -25,7 +25,7 @@
- +
@@ -53,16 +53,16 @@ -
-
- - - -
-
+ + + + + + + + + + diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/dialog-window/view.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/dialog-window/view.extension new file mode 100644 index 0000000..ea769cb --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/dialog-window/view.extension @@ -0,0 +1 @@ +{"module":"dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/dialog-window/view.js","extensionPoint":"dirigible-bank-server-dialog-window","description":"dirigible-bank-server - Application Dialog Window"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/entities/CardType/dialog-window/view.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/dialog-window/view.js similarity index 74% rename from dirigible-bank-server/gen/ui/entities/CardType/dialog-window/view.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/dialog-window/view.js index 585e918..9f6f2a2 100644 --- a/dirigible-bank-server/gen/ui/entities/CardType/dialog-window/view.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/dialog-window/view.js @@ -6,7 +6,7 @@ const viewData = { id: "CardType-details", label: "CardType", - link: "/services/web/dirigible-bank-server/gen/ui/entities/CardType/dialog-window/index.html", + link: "/services/web/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/dialog-window/index.html", perspectiveName: "entities", }; diff --git a/dirigible-bank-server/gen/ui/entities/BankAccountType/index.html b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/index.html similarity index 96% rename from dirigible-bank-server/gen/ui/entities/BankAccountType/index.html rename to dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/index.html index cf0e843..a1c758b 100644 --- a/dirigible-bank-server/gen/ui/entities/BankAccountType/index.html +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/index.html @@ -19,7 +19,7 @@ Items ({{dataCount}}) - + @@ -48,7 +48,7 @@ - + diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/tile-portal.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/tile-portal.extension new file mode 100644 index 0000000..08e1639 --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/tile-portal.extension @@ -0,0 +1 @@ +{"module":"dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/tile.js","extensionPoint":"portal-tile","description":"dirigible-bank-server - Application Tile"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/tile.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/tile.extension new file mode 100644 index 0000000..0a5d800 --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/tile.extension @@ -0,0 +1 @@ +{"module":"dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/tile.js","extensionPoint":"dirigible-bank-server-tile","description":"dirigible-bank-server - Application Tile"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/entities/CardType/tile.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/tile.js similarity index 57% rename from dirigible-bank-server/gen/ui/entities/CardType/tile.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/tile.js index 9fc61d8..10357a3 100644 --- a/dirigible-bank-server/gen/ui/entities/CardType/tile.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/tile.js @@ -5,12 +5,14 @@ */ exports.getTile = function () { return { - group: "entities", + group: "dirigible-bank-server", name: "CardType", caption: "Manage entity CardType", tooltip: "CardType", - // icon: "file-o", - location: "/services/web/dirigible-bank-server/gen/ui/entities/index.html", + type: "PRIMARY", + report: "false", + icon: "/services/web/resources/unicons/file.svg", + location: "/services/web/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/index.html", order: "100", groupOrder: "100", }; diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/view.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/view.extension new file mode 100644 index 0000000..9bc38de --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/view.extension @@ -0,0 +1 @@ +{"module":"dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/view.js","extensionPoint":"dirigible-bank-server-view","description":"dirigible-bank-server - Application View"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/entities/CardType/view.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/view.js similarity index 78% rename from dirigible-bank-server/gen/ui/entities/CardType/view.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/view.js index 6c60a4e..79d6ad4 100644 --- a/dirigible-bank-server/gen/ui/entities/CardType/view.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/view.js @@ -8,7 +8,7 @@ const viewData = { label: "CardType", factory: "frame", region: "center", - link: "/services/web/dirigible-bank-server/gen/ui/entities/CardType/index.html", + link: "/services/web/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/CardType/index.html", perspectiveName: "entities", }; diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/controller.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/controller.js new file mode 100644 index 0000000..afe4b01 --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/controller.js @@ -0,0 +1,163 @@ +angular.module('page', ["ideUI", "ideView", "entityApi"]) + .config(["messageHubProvider", function (messageHubProvider) { + messageHubProvider.eventIdPrefix = 'dirigible-bank-server.entities.Country'; + }]) + .config(["entityApiProvider", function (entityApiProvider) { + entityApiProvider.baseUrl = "/services/ts/dirigible-bank-server/gen/dirigible-bank-server/api/entities/CountryService.ts"; + }]) + .controller('PageController', ['$scope', 'messageHub', 'entityApi', 'Extensions', function ($scope, messageHub, entityApi, Extensions) { + + $scope.dataPage = 1; + $scope.dataCount = 0; + $scope.dataLimit = 20; + + //-----------------Custom Actions-------------------// + Extensions.get('dialogWindow', 'dirigible-bank-server-custom-action').then(function (response) { + $scope.pageActions = response.filter(e => e.perspective === "entities" && e.view === "Country" && (e.type === "page" || e.type === undefined)); + $scope.entityActions = response.filter(e => e.perspective === "entities" && e.view === "Country" && e.type === "entity"); + }); + + $scope.triggerPageAction = function (action) { + messageHub.showDialogWindow( + action.id, + {}, + null, + true, + action + ); + }; + + $scope.triggerEntityAction = function (action) { + messageHub.showDialogWindow( + action.id, + { + id: $scope.entity.Id + }, + null, + true, + action + ); + }; + //-----------------Custom Actions-------------------// + + function resetPagination() { + $scope.dataPage = 1; + $scope.dataCount = 0; + $scope.dataLimit = 20; + } + resetPagination(); + + //-----------------Events-------------------// + messageHub.onDidReceiveMessage("entityCreated", function (msg) { + $scope.loadPage($scope.dataPage, $scope.filter); + }); + + messageHub.onDidReceiveMessage("entityUpdated", function (msg) { + $scope.loadPage($scope.dataPage, $scope.filter); + }); + + messageHub.onDidReceiveMessage("entitySearch", function (msg) { + resetPagination(); + $scope.filter = msg.data.filter; + $scope.filterEntity = msg.data.entity; + $scope.loadPage($scope.dataPage, $scope.filter); + }); + //-----------------Events-------------------// + + $scope.loadPage = function (pageNumber, filter) { + if (!filter && $scope.filter) { + filter = $scope.filter; + } + $scope.dataPage = pageNumber; + entityApi.count(filter).then(function (response) { + if (response.status != 200) { + messageHub.showAlertError("Country", `Unable to count Country: '${response.message}'`); + return; + } + if (response.data) { + $scope.dataCount = response.data; + } + let offset = (pageNumber - 1) * $scope.dataLimit; + let limit = $scope.dataLimit; + let request; + if (filter) { + filter.$offset = offset; + filter.$limit = limit; + request = entityApi.search(filter); + } else { + request = entityApi.list(offset, limit); + } + request.then(function (response) { + if (response.status != 200) { + messageHub.showAlertError("Country", `Unable to list/filter Country: '${response.message}'`); + return; + } + $scope.data = response.data; + }); + }); + }; + $scope.loadPage($scope.dataPage, $scope.filter); + + $scope.selectEntity = function (entity) { + $scope.selectedEntity = entity; + }; + + $scope.openDetails = function (entity) { + $scope.selectedEntity = entity; + messageHub.showDialogWindow("Country-details", { + action: "select", + entity: entity, + }); + }; + + $scope.openFilter = function (entity) { + messageHub.showDialogWindow("Country-filter", { + entity: $scope.filterEntity, + }); + }; + + $scope.createEntity = function () { + $scope.selectedEntity = null; + messageHub.showDialogWindow("Country-details", { + action: "create", + entity: {}, + }, null, false); + }; + + $scope.updateEntity = function (entity) { + messageHub.showDialogWindow("Country-details", { + action: "update", + entity: entity, + }, null, false); + }; + + $scope.deleteEntity = function (entity) { + let id = entity.Id; + messageHub.showDialogAsync( + 'Delete Country?', + `Are you sure you want to delete Country? This action cannot be undone.`, + [{ + id: "delete-btn-yes", + type: "emphasized", + label: "Yes", + }, + { + id: "delete-btn-no", + type: "normal", + label: "No", + }], + ).then(function (msg) { + if (msg.data === "delete-btn-yes") { + entityApi.delete(id).then(function (response) { + if (response.status != 204) { + messageHub.showAlertError("Country", `Unable to delete Country: '${response.message}'`); + return; + } + $scope.loadPage($scope.dataPage, $scope.filter); + messageHub.postMessage("clearDetails"); + }); + } + }); + }; + + }]); diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/dialog-filter/controller.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/dialog-filter/controller.js new file mode 100644 index 0000000..dfa2c0a --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/dialog-filter/controller.js @@ -0,0 +1,74 @@ +angular.module('page', ["ideUI", "ideView"]) + .config(["messageHubProvider", function (messageHubProvider) { + messageHubProvider.eventIdPrefix = 'dirigible-bank-server.entities.Country'; + }]) + .controller('PageController', ['$scope', 'messageHub', 'ViewParameters', function ($scope, messageHub, ViewParameters) { + + $scope.entity = {}; + $scope.forms = { + details: {}, + }; + + let params = ViewParameters.get(); + if (Object.keys(params).length) { + $scope.entity = params.entity ?? {}; + $scope.selectedMainEntityKey = params.selectedMainEntityKey; + $scope.selectedMainEntityId = params.selectedMainEntityId; + } + + $scope.filter = function () { + let entity = $scope.entity; + const filter = { + $filter: { + equals: { + }, + notEquals: { + }, + contains: { + }, + greaterThan: { + }, + greaterThanOrEqual: { + }, + lessThan: { + }, + lessThanOrEqual: { + } + }, + }; + if (entity.Id !== undefined) { + filter.$filter.equals.Id = entity.Id; + } + if (entity.Name) { + filter.$filter.contains.Name = entity.Name; + } + if (entity.Code2) { + filter.$filter.contains.Code2 = entity.Code2; + } + if (entity.Code3) { + filter.$filter.contains.Code3 = entity.Code3; + } + if (entity.Numeric) { + filter.$filter.contains.Numeric = entity.Numeric; + } + messageHub.postMessage("entitySearch", { + entity: entity, + filter: filter + }); + $scope.cancel(); + }; + + $scope.resetFilter = function () { + $scope.entity = {}; + $scope.filter(); + }; + + $scope.cancel = function () { + messageHub.closeDialogWindow("Country-filter"); + }; + + $scope.clearErrorMessage = function () { + $scope.errorMessage = null; + }; + + }]); \ No newline at end of file diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/dialog-filter/index.html b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/dialog-filter/index.html new file mode 100644 index 0000000..f9b18be --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/dialog-filter/index.html @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + +
+ Name +
+
+ + + + Incorrect Input + +
+
+ +
+ Code2 +
+
+ + + + Incorrect Input + +
+
+ +
+ Code3 +
+
+ + + + Incorrect Input + +
+
+ +
+ Numeric +
+
+ + + + Incorrect Input + +
+
+
+
+
+ + + + + + + + + + + + + + + + + + diff --git a/dirigible-bank-server/gen/ui/cards/Cards/dialog-filter/view.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/dialog-filter/view.extension similarity index 55% rename from dirigible-bank-server/gen/ui/cards/Cards/dialog-filter/view.extension rename to dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/dialog-filter/view.extension index 096ad50..02e26ea 100644 --- a/dirigible-bank-server/gen/ui/cards/Cards/dialog-filter/view.extension +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/dialog-filter/view.extension @@ -1,5 +1,5 @@ { - "module": "dirigible-bank-server/gen/ui/cards/Cards/dialog-filter/view.js", + "module": "dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/dialog-filter/view.js", "extensionPoint": "dirigible-bank-server-dialog-window", "description": "dirigible-bank-server - Application Dialog Window" } \ No newline at end of file diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/dialog-filter/view.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/dialog-filter/view.js new file mode 100644 index 0000000..03f1c9d --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/dialog-filter/view.js @@ -0,0 +1,17 @@ +/* + * Generated by Eclipse Dirigible based on model and template. + * + * Do not modify the content as it may be re-generated again. + */ +const viewData = { + id: "Country-filter", + label: "Country Filter", + link: "/services/web/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/dialog-filter/index.html", + perspectiveName: "entities", +}; + +if (typeof exports !== 'undefined') { + exports.getDialogWindow = function () { + return viewData; + } +} \ No newline at end of file diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/dialog-window/controller.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/dialog-window/controller.js new file mode 100644 index 0000000..a1b35ae --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/dialog-window/controller.js @@ -0,0 +1,68 @@ +angular.module('page', ["ideUI", "ideView", "entityApi"]) + .config(["messageHubProvider", function (messageHubProvider) { + messageHubProvider.eventIdPrefix = 'dirigible-bank-server.entities.Country'; + }]) + .config(["entityApiProvider", function (entityApiProvider) { + entityApiProvider.baseUrl = "/services/ts/dirigible-bank-server/gen/dirigible-bank-server/api/entities/CountryService.ts"; + }]) + .controller('PageController', ['$scope', 'messageHub', 'ViewParameters', 'entityApi', function ($scope, messageHub, ViewParameters, entityApi) { + + $scope.entity = {}; + $scope.forms = { + details: {}, + }; + $scope.formHeaders = { + select: "Country Details", + create: "Create Country", + update: "Update Country" + }; + $scope.action = 'select'; + + let params = ViewParameters.get(); + if (Object.keys(params).length) { + $scope.action = params.action; + $scope.entity = params.entity; + $scope.selectedMainEntityKey = params.selectedMainEntityKey; + $scope.selectedMainEntityId = params.selectedMainEntityId; + } + + $scope.create = function () { + let entity = $scope.entity; + entity[$scope.selectedMainEntityKey] = $scope.selectedMainEntityId; + entityApi.create(entity).then(function (response) { + if (response.status != 201) { + $scope.errorMessage = `Unable to create Country: '${response.message}'`; + return; + } + messageHub.postMessage("entityCreated", response.data); + $scope.cancel(); + messageHub.showAlertSuccess("Country", "Country successfully created"); + }); + }; + + $scope.update = function () { + let id = $scope.entity.Id; + let entity = $scope.entity; + entity[$scope.selectedMainEntityKey] = $scope.selectedMainEntityId; + entityApi.update(id, entity).then(function (response) { + if (response.status != 200) { + $scope.errorMessage = `Unable to update Country: '${response.message}'`; + return; + } + messageHub.postMessage("entityUpdated", response.data); + $scope.cancel(); + messageHub.showAlertSuccess("Country", "Country successfully updated"); + }); + }; + + $scope.cancel = function () { + $scope.entity = {}; + $scope.action = 'select'; + messageHub.closeDialogWindow("Country-details"); + }; + + $scope.clearErrorMessage = function () { + $scope.errorMessage = null; + }; + + }]); \ No newline at end of file diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/dialog-window/index.html b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/dialog-window/index.html new file mode 100644 index 0000000..4b2b9ea --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/dialog-window/index.html @@ -0,0 +1,135 @@ + + + + + + + + + + + + + + + + + + + + + + + +
+ Name +
+
+ + + + The value doesn't match the required pattern '' + +
+
+ +
+ Code2 +
+
+ + + + The value doesn't match the required pattern '' + +
+
+ +
+ Code3 +
+
+ + + + The value doesn't match the required pattern '' + +
+
+ +
+ Numeric +
+
+ + + + The value doesn't match the required pattern '' + +
+
+
+
+
+ + + + + + + + + + + + + + + diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/dialog-window/view.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/dialog-window/view.extension new file mode 100644 index 0000000..e939d6b --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/dialog-window/view.extension @@ -0,0 +1 @@ +{"module":"dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/dialog-window/view.js","extensionPoint":"dirigible-bank-server-dialog-window","description":"dirigible-bank-server - Application Dialog Window"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/dialog-window/view.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/dialog-window/view.js new file mode 100644 index 0000000..7f8bb24 --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/dialog-window/view.js @@ -0,0 +1,17 @@ +/* + * Generated by Eclipse Dirigible based on model and template. + * + * Do not modify the content as it may be re-generated again. + */ +const viewData = { + id: "Country-details", + label: "Country", + link: "/services/web/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/dialog-window/index.html", + perspectiveName: "entities", +}; + +if (typeof exports !== 'undefined') { + exports.getDialogWindow = function () { + return viewData; + } +} \ No newline at end of file diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/index.html b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/index.html new file mode 100644 index 0000000..15faf87 --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/index.html @@ -0,0 +1,77 @@ + + + + + + + + + + + + + + + + + + Items ({{dataCount}}) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameCode2Code3Numeric
No data available.
{{next.Name}}{{next.Code2}}{{next.Code3}}{{next.Numeric}} + + + + + + + + + + + + + + +
+
+ + + + + + diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/tile-portal.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/tile-portal.extension new file mode 100644 index 0000000..f599ded --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/tile-portal.extension @@ -0,0 +1 @@ +{"module":"dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/tile.js","extensionPoint":"portal-tile","description":"dirigible-bank-server - Application Tile"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/tile.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/tile.extension new file mode 100644 index 0000000..f245da4 --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/tile.extension @@ -0,0 +1 @@ +{"module":"dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/tile.js","extensionPoint":"dirigible-bank-server-tile","description":"dirigible-bank-server - Application Tile"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/tile.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/tile.js new file mode 100644 index 0000000..a853a9f --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/tile.js @@ -0,0 +1,19 @@ +/* + * Generated by Eclipse Dirigible based on model and template. + * + * Do not modify the content as it may be re-generated again. + */ +exports.getTile = function () { + return { + group: "dirigible-bank-server", + name: "Country", + caption: "Manage entity Country", + tooltip: "Country", + type: "PRIMARY", + report: "false", + icon: "/services/web/resources/unicons/file.svg", + location: "/services/web/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/index.html", + order: "100", + groupOrder: "100", + }; +}; diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/view.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/view.extension new file mode 100644 index 0000000..dc48a6a --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/view.extension @@ -0,0 +1 @@ +{"module":"dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/view.js","extensionPoint":"dirigible-bank-server-view","description":"dirigible-bank-server - Application View"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/view.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/view.js new file mode 100644 index 0000000..8a4c0f1 --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/view.js @@ -0,0 +1,19 @@ +/* + * Generated by Eclipse Dirigible based on model and template. + * + * Do not modify the content as it may be re-generated again. + */ +const viewData = { + id: "Country", + label: "Country", + factory: "frame", + region: "center", + link: "/services/web/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Country/index.html", + perspectiveName: "entities", +}; + +if (typeof exports !== 'undefined') { + exports.getView = function () { + return viewData; + } +} diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/controller.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/controller.js new file mode 100644 index 0000000..259b82b --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/controller.js @@ -0,0 +1,163 @@ +angular.module('page', ["ideUI", "ideView", "entityApi"]) + .config(["messageHubProvider", function (messageHubProvider) { + messageHubProvider.eventIdPrefix = 'dirigible-bank-server.entities.Currency'; + }]) + .config(["entityApiProvider", function (entityApiProvider) { + entityApiProvider.baseUrl = "/services/ts/dirigible-bank-server/gen/dirigible-bank-server/api/entities/CurrencyService.ts"; + }]) + .controller('PageController', ['$scope', 'messageHub', 'entityApi', 'Extensions', function ($scope, messageHub, entityApi, Extensions) { + + $scope.dataPage = 1; + $scope.dataCount = 0; + $scope.dataLimit = 20; + + //-----------------Custom Actions-------------------// + Extensions.get('dialogWindow', 'dirigible-bank-server-custom-action').then(function (response) { + $scope.pageActions = response.filter(e => e.perspective === "entities" && e.view === "Currency" && (e.type === "page" || e.type === undefined)); + $scope.entityActions = response.filter(e => e.perspective === "entities" && e.view === "Currency" && e.type === "entity"); + }); + + $scope.triggerPageAction = function (action) { + messageHub.showDialogWindow( + action.id, + {}, + null, + true, + action + ); + }; + + $scope.triggerEntityAction = function (action) { + messageHub.showDialogWindow( + action.id, + { + id: $scope.entity.Id + }, + null, + true, + action + ); + }; + //-----------------Custom Actions-------------------// + + function resetPagination() { + $scope.dataPage = 1; + $scope.dataCount = 0; + $scope.dataLimit = 20; + } + resetPagination(); + + //-----------------Events-------------------// + messageHub.onDidReceiveMessage("entityCreated", function (msg) { + $scope.loadPage($scope.dataPage, $scope.filter); + }); + + messageHub.onDidReceiveMessage("entityUpdated", function (msg) { + $scope.loadPage($scope.dataPage, $scope.filter); + }); + + messageHub.onDidReceiveMessage("entitySearch", function (msg) { + resetPagination(); + $scope.filter = msg.data.filter; + $scope.filterEntity = msg.data.entity; + $scope.loadPage($scope.dataPage, $scope.filter); + }); + //-----------------Events-------------------// + + $scope.loadPage = function (pageNumber, filter) { + if (!filter && $scope.filter) { + filter = $scope.filter; + } + $scope.dataPage = pageNumber; + entityApi.count(filter).then(function (response) { + if (response.status != 200) { + messageHub.showAlertError("Currency", `Unable to count Currency: '${response.message}'`); + return; + } + if (response.data) { + $scope.dataCount = response.data; + } + let offset = (pageNumber - 1) * $scope.dataLimit; + let limit = $scope.dataLimit; + let request; + if (filter) { + filter.$offset = offset; + filter.$limit = limit; + request = entityApi.search(filter); + } else { + request = entityApi.list(offset, limit); + } + request.then(function (response) { + if (response.status != 200) { + messageHub.showAlertError("Currency", `Unable to list/filter Currency: '${response.message}'`); + return; + } + $scope.data = response.data; + }); + }); + }; + $scope.loadPage($scope.dataPage, $scope.filter); + + $scope.selectEntity = function (entity) { + $scope.selectedEntity = entity; + }; + + $scope.openDetails = function (entity) { + $scope.selectedEntity = entity; + messageHub.showDialogWindow("Currency-details", { + action: "select", + entity: entity, + }); + }; + + $scope.openFilter = function (entity) { + messageHub.showDialogWindow("Currency-filter", { + entity: $scope.filterEntity, + }); + }; + + $scope.createEntity = function () { + $scope.selectedEntity = null; + messageHub.showDialogWindow("Currency-details", { + action: "create", + entity: {}, + }, null, false); + }; + + $scope.updateEntity = function (entity) { + messageHub.showDialogWindow("Currency-details", { + action: "update", + entity: entity, + }, null, false); + }; + + $scope.deleteEntity = function (entity) { + let id = entity.Id; + messageHub.showDialogAsync( + 'Delete Currency?', + `Are you sure you want to delete Currency? This action cannot be undone.`, + [{ + id: "delete-btn-yes", + type: "emphasized", + label: "Yes", + }, + { + id: "delete-btn-no", + type: "normal", + label: "No", + }], + ).then(function (msg) { + if (msg.data === "delete-btn-yes") { + entityApi.delete(id).then(function (response) { + if (response.status != 204) { + messageHub.showAlertError("Currency", `Unable to delete Currency: '${response.message}'`); + return; + } + $scope.loadPage($scope.dataPage, $scope.filter); + messageHub.postMessage("clearDetails"); + }); + } + }); + }; + + }]); diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/dialog-filter/controller.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/dialog-filter/controller.js new file mode 100644 index 0000000..5080e99 --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/dialog-filter/controller.js @@ -0,0 +1,80 @@ +angular.module('page', ["ideUI", "ideView"]) + .config(["messageHubProvider", function (messageHubProvider) { + messageHubProvider.eventIdPrefix = 'dirigible-bank-server.entities.Currency'; + }]) + .controller('PageController', ['$scope', 'messageHub', 'ViewParameters', function ($scope, messageHub, ViewParameters) { + + $scope.entity = {}; + $scope.forms = { + details: {}, + }; + + let params = ViewParameters.get(); + if (Object.keys(params).length) { + $scope.entity = params.entity ?? {}; + $scope.selectedMainEntityKey = params.selectedMainEntityKey; + $scope.selectedMainEntityId = params.selectedMainEntityId; + } + + $scope.filter = function () { + let entity = $scope.entity; + const filter = { + $filter: { + equals: { + }, + notEquals: { + }, + contains: { + }, + greaterThan: { + }, + greaterThanOrEqual: { + }, + lessThan: { + }, + lessThanOrEqual: { + } + }, + }; + if (entity.Id !== undefined) { + filter.$filter.equals.Id = entity.Id; + } + if (entity.Code) { + filter.$filter.contains.Code = entity.Code; + } + if (entity.Name) { + filter.$filter.contains.Name = entity.Name; + } + if (entity.Numeric) { + filter.$filter.contains.Numeric = entity.Numeric; + } + if (entity.Rounding !== undefined) { + filter.$filter.equals.Rounding = entity.Rounding; + } + if (entity.Base !== undefined && entity.isBaseIndeterminate === false) { + filter.$filter.equals.Base = entity.Base; + } + if (entity.Rate !== undefined) { + filter.$filter.equals.Rate = entity.Rate; + } + messageHub.postMessage("entitySearch", { + entity: entity, + filter: filter + }); + $scope.cancel(); + }; + + $scope.resetFilter = function () { + $scope.entity = {}; + $scope.filter(); + }; + + $scope.cancel = function () { + messageHub.closeDialogWindow("Currency-filter"); + }; + + $scope.clearErrorMessage = function () { + $scope.errorMessage = null; + }; + + }]); \ No newline at end of file diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/dialog-filter/index.html b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/dialog-filter/index.html new file mode 100644 index 0000000..850eb97 --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/dialog-filter/index.html @@ -0,0 +1,164 @@ + + + + + + + + + + + + + + + + + + + + + + + +
+ Code +
+
+ + + + Incorrect Input + +
+
+ +
+ Name +
+
+ + + + Incorrect Input + +
+
+ +
+ Numeric +
+
+ + + + Incorrect Input + +
+
+ +
+ Rounding +
+
+ + + + Incorrect Input + +
+
+ +
+ Base +
+
+ + + + Incorrect Input + +
+
+ +
+ Rate +
+
+ + + + Incorrect Input + +
+
+
+
+
+ + + + + + + + + + + + + + + + + + diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/dialog-filter/view.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/dialog-filter/view.extension new file mode 100644 index 0000000..d8f5300 --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/dialog-filter/view.extension @@ -0,0 +1,5 @@ +{ + "module": "dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/dialog-filter/view.js", + "extensionPoint": "dirigible-bank-server-dialog-window", + "description": "dirigible-bank-server - Application Dialog Window" +} \ No newline at end of file diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/dialog-filter/view.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/dialog-filter/view.js new file mode 100644 index 0000000..2edfa00 --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/dialog-filter/view.js @@ -0,0 +1,17 @@ +/* + * Generated by Eclipse Dirigible based on model and template. + * + * Do not modify the content as it may be re-generated again. + */ +const viewData = { + id: "Currency-filter", + label: "Currency Filter", + link: "/services/web/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/dialog-filter/index.html", + perspectiveName: "entities", +}; + +if (typeof exports !== 'undefined') { + exports.getDialogWindow = function () { + return viewData; + } +} \ No newline at end of file diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/dialog-window/controller.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/dialog-window/controller.js new file mode 100644 index 0000000..1877270 --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/dialog-window/controller.js @@ -0,0 +1,68 @@ +angular.module('page', ["ideUI", "ideView", "entityApi"]) + .config(["messageHubProvider", function (messageHubProvider) { + messageHubProvider.eventIdPrefix = 'dirigible-bank-server.entities.Currency'; + }]) + .config(["entityApiProvider", function (entityApiProvider) { + entityApiProvider.baseUrl = "/services/ts/dirigible-bank-server/gen/dirigible-bank-server/api/entities/CurrencyService.ts"; + }]) + .controller('PageController', ['$scope', 'messageHub', 'ViewParameters', 'entityApi', function ($scope, messageHub, ViewParameters, entityApi) { + + $scope.entity = {}; + $scope.forms = { + details: {}, + }; + $scope.formHeaders = { + select: "Currency Details", + create: "Create Currency", + update: "Update Currency" + }; + $scope.action = 'select'; + + let params = ViewParameters.get(); + if (Object.keys(params).length) { + $scope.action = params.action; + $scope.entity = params.entity; + $scope.selectedMainEntityKey = params.selectedMainEntityKey; + $scope.selectedMainEntityId = params.selectedMainEntityId; + } + + $scope.create = function () { + let entity = $scope.entity; + entity[$scope.selectedMainEntityKey] = $scope.selectedMainEntityId; + entityApi.create(entity).then(function (response) { + if (response.status != 201) { + $scope.errorMessage = `Unable to create Currency: '${response.message}'`; + return; + } + messageHub.postMessage("entityCreated", response.data); + $scope.cancel(); + messageHub.showAlertSuccess("Currency", "Currency successfully created"); + }); + }; + + $scope.update = function () { + let id = $scope.entity.Id; + let entity = $scope.entity; + entity[$scope.selectedMainEntityKey] = $scope.selectedMainEntityId; + entityApi.update(id, entity).then(function (response) { + if (response.status != 200) { + $scope.errorMessage = `Unable to update Currency: '${response.message}'`; + return; + } + messageHub.postMessage("entityUpdated", response.data); + $scope.cancel(); + messageHub.showAlertSuccess("Currency", "Currency successfully updated"); + }); + }; + + $scope.cancel = function () { + $scope.entity = {}; + $scope.action = 'select'; + messageHub.closeDialogWindow("Currency-details"); + }; + + $scope.clearErrorMessage = function () { + $scope.errorMessage = null; + }; + + }]); \ No newline at end of file diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/dialog-window/index.html b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/dialog-window/index.html new file mode 100644 index 0000000..bd8b08c --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/dialog-window/index.html @@ -0,0 +1,179 @@ + + + + + + + + + + + + + + + + + + + + + + + +
+ Code +
+
+ + + + The value doesn't match the required pattern '' + +
+
+ +
+ Name +
+
+ + + + The value doesn't match the required pattern '' + +
+
+ +
+ Numeric +
+
+ + + + The value doesn't match the required pattern '' + +
+
+ +
+ Rounding +
+
+ + + + The value doesn't match the required pattern '' + +
+
+ +
+ Base +
+
+ + + + The value doesn't match the required pattern '' + +
+
+ +
+ Rate +
+
+ + + + The value doesn't match the required pattern '' + +
+
+
+
+
+ + + + + + + + + + + + + + + diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/dialog-window/view.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/dialog-window/view.extension new file mode 100644 index 0000000..2b0e4ba --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/dialog-window/view.extension @@ -0,0 +1 @@ +{"module":"dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/dialog-window/view.js","extensionPoint":"dirigible-bank-server-dialog-window","description":"dirigible-bank-server - Application Dialog Window"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/dialog-window/view.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/dialog-window/view.js new file mode 100644 index 0000000..ae9e72c --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/dialog-window/view.js @@ -0,0 +1,17 @@ +/* + * Generated by Eclipse Dirigible based on model and template. + * + * Do not modify the content as it may be re-generated again. + */ +const viewData = { + id: "Currency-details", + label: "Currency", + link: "/services/web/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/dialog-window/index.html", + perspectiveName: "entities", +}; + +if (typeof exports !== 'undefined') { + exports.getDialogWindow = function () { + return viewData; + } +} \ No newline at end of file diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/index.html b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/index.html new file mode 100644 index 0000000..22406ca --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/index.html @@ -0,0 +1,81 @@ + + + + + + + + + + + + + + + + + + Items ({{dataCount}}) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeNameNumericRoundingBaseRate
No data available.
{{next.Code}}{{next.Name}}{{next.Numeric}}{{next.Rounding}}{{next.Base}}{{next.Rate}} + + + + + + + + + + + + + + +
+
+ + + + + + diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/tile-portal.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/tile-portal.extension new file mode 100644 index 0000000..05b8bbd --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/tile-portal.extension @@ -0,0 +1 @@ +{"module":"dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/tile.js","extensionPoint":"portal-tile","description":"dirigible-bank-server - Application Tile"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/tile.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/tile.extension new file mode 100644 index 0000000..3b4c122 --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/tile.extension @@ -0,0 +1 @@ +{"module":"dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/tile.js","extensionPoint":"dirigible-bank-server-tile","description":"dirigible-bank-server - Application Tile"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/tile.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/tile.js new file mode 100644 index 0000000..f040e4c --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/tile.js @@ -0,0 +1,19 @@ +/* + * Generated by Eclipse Dirigible based on model and template. + * + * Do not modify the content as it may be re-generated again. + */ +exports.getTile = function () { + return { + group: "dirigible-bank-server", + name: "Currency", + caption: "Manage entity Currency", + tooltip: "Currency", + type: "PRIMARY", + report: "false", + icon: "/services/web/resources/unicons/file.svg", + location: "/services/web/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/index.html", + order: "100", + groupOrder: "100", + }; +}; diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/view.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/view.extension new file mode 100644 index 0000000..7ee5ef9 --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/view.extension @@ -0,0 +1 @@ +{"module":"dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/view.js","extensionPoint":"dirigible-bank-server-view","description":"dirigible-bank-server - Application View"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/view.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/view.js new file mode 100644 index 0000000..8788228 --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/view.js @@ -0,0 +1,19 @@ +/* + * Generated by Eclipse Dirigible based on model and template. + * + * Do not modify the content as it may be re-generated again. + */ +const viewData = { + id: "Currency", + label: "Currency", + factory: "frame", + region: "center", + link: "/services/web/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/Currency/index.html", + perspectiveName: "entities", +}; + +if (typeof exports !== 'undefined') { + exports.getView = function () { + return viewData; + } +} diff --git a/dirigible-bank-server/gen/ui/cards/index.html b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/index.html similarity index 53% rename from dirigible-bank-server/gen/ui/cards/index.html rename to dirigible-bank-server/gen/dirigible-bank-server/ui/entities/index.html index 4901d26..002eb77 100644 --- a/dirigible-bank-server/gen/ui/cards/index.html +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/index.html @@ -1,7 +1,9 @@ @@ -23,16 +25,22 @@ - + + + {{state.busyText}} + + + Encounterd an error while loading + diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/perspective-portal.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/perspective-portal.extension new file mode 100644 index 0000000..c171c1f --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/perspective-portal.extension @@ -0,0 +1 @@ +{"module":"dirigible-bank-server/gen/dirigible-bank-server/ui/entities/perspective.js","extensionPoint":"portal","description":"dirigible-bank-server - Perspective - entities"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/perspective.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/perspective.extension new file mode 100644 index 0000000..6f5fce4 --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/perspective.extension @@ -0,0 +1 @@ +{"module":"dirigible-bank-server/gen/dirigible-bank-server/ui/entities/perspective.js","extensionPoint":"dirigible-bank-server","description":"dirigible-bank-server - Perspective - entities"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/launchpad/perspective.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/perspective.js similarity index 58% rename from dirigible-bank-server/gen/ui/launchpad/perspective.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/entities/perspective.js index ae923d8..b344080 100644 --- a/dirigible-bank-server/gen/ui/launchpad/perspective.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/perspective.js @@ -4,11 +4,11 @@ * Do not modify the content as it may be re-generated again. */ const perspectiveData = { - id: "home", - name: "Home", - link: "/services/web/dirigible-bank-server/gen/index.html", - order: "1", - icon: "/services/web/resources/unicons/estate.svg", + id: 'entities', + name: 'Entities', + link: '/services/web/dirigible-bank-server/gen/dirigible-bank-server/ui/entities/index.html', + order: 100, + icon: '/services/web/resources/unicons/copy.svg', }; if (typeof exports !== 'undefined') { diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/launchpad/Home/controller.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/launchpad/Home/controller.js new file mode 100644 index 0000000..fcac928 --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/launchpad/Home/controller.js @@ -0,0 +1,167 @@ +/* + * Generated by Eclipse Dirigible based on model and template. + * + * Do not modify the content as it may be re-generated again. + */ +angular.module('page', ['ideUI', 'ideView', 'entityApi']) + .config(['messageHubProvider', function (messageHubProvider) { + messageHubProvider.eventIdPrefix = 'dirigible-bank-server.launchpad.Home'; + }]) + .config(['entityApiProvider', function (entityApiProvider) { + entityApiProvider.baseUrl = '/services/js/dirigible-bank-server/gen/dirigible-bank-server/ui/launchpad/Home/tiles.js'; + }]) + .controller('PageController', ['$scope', 'messageHub', 'entityApi', '$document', function ($scope, messageHub, entityApi, $document) { + const favoritesStoreId = 'DIRIGIBLE.dirigible-bank-server.favorites'; + $scope.state = { + isBusy: true, + error: false, + busyText: 'Loading...', + }; + $scope.modules = []; + $scope.referenceData = []; + $scope.favorites = []; + $scope.hasFavorites = false; + $scope.editMode = false; + $scope.favIcons = { + 'report': 'sap-icon--vertical-bar-chart', + 'entity': 'sap-icon--form', + 'setting': 'sap-icon--settings' + }; + + $scope.openView = function (location, name) { + messageHub.postMessage('openView', { + location: (name ? `${location.substring(0, location.indexOf('/gen/ui/'))}/gen/ui/Reports/index.html?${name}` : location) + }); + }; + + $scope.toggleEditMode = function () { + $scope.editMode = !$scope.editMode; + }; + + function saveFavorites() { + let favorites = []; + for (let i = 0; i < $scope.favorites.length; i++) { + favorites.push($scope.favorites[i].id); + } + localStorage.setItem(favoritesStoreId, JSON.stringify(favorites)); + } + + $scope.removeFavorite = function (pos) { + $scope.favorites.splice(pos, 1); + saveFavorites(); + $scope.hasFavorites = $scope.favorites.length > 0; + if ($scope.favorites.length === 0) $scope.editMode = false; + }; + + $scope.toggleFavorite = function (module, type, name, location, caption) { + const id = `${module}.${type}.${name}`; + if (!$scope.favorites.some((elem, pos) => { + if (elem.id === id) { + $scope.favorites.splice(pos, 1); + return true + } return false; + })) { + $scope.favorites.push({ + id: id, + type: type, + name: name, + location: location, + caption: caption, + }); + } + saveFavorites(); + $scope.hasFavorites = $scope.favorites.length > 0; + }; + + $scope.isFavorite = function (module, type, name) { + const id = `${module}.${type}.${name}`; + if ($scope.favorites.some(e => e.id === id)) { + return true; + } return false; + }; + + entityApi.list().then(function (response) { + if (response.status != 200) { + messageHub.showAlertError('Home', `Unable to get Home Launchpad: '${response.message}'`); + $scope.state.isBusy = false; + $scope.state.error = true; + return; + } + + $scope.modules = response.data.modules.filter(module => (module.name !== 'Reports')); + for (let i = 0; i < response.data.referenceData.length; i++) { + $scope.referenceData.push(...response.data.referenceData[i].settings); + } + + const storedFavorites = JSON.parse(localStorage.getItem(favoritesStoreId) || '[]'); + for (let mi = 0; mi < $scope.modules.length; mi++) { + for (let ei = 0; ei < $scope.modules[mi].entities.length; ei++) { + const id = `${$scope.modules[mi].name}.entity.${$scope.modules[mi].entities[ei].name}`; + const index = storedFavorites.indexOf(id); + if (index > -1) { + storedFavorites[index] = { + id: id, + type: 'entity', + name: $scope.modules[mi].entities[ei].name, + location: $scope.modules[mi].entities[ei].location, + caption: $scope.modules[mi].entities[ei].caption, + }; + } + } + for (let ri = 0; ri < $scope.modules[mi].reports.length; ri++) { + const id = `${$scope.modules[mi].name}.report.${$scope.modules[mi].reports[ri].name}`; + const index = storedFavorites.indexOf(id); + if (index > -1) { + storedFavorites[index] = { + id: id, + type: 'report', + name: $scope.modules[mi].reports[ri].name, + location: $scope.modules[mi].reports[ri].location, + caption: $scope.modules[mi].reports[ri].caption, + }; + } + } + for (let ri = 0; ri < $scope.modules[mi].settings.length; ri++) { + const id = `${$scope.modules[mi].name}.setting.${$scope.modules[mi].settings[ri].name}`; + const index = storedFavorites.indexOf(id); + if (index > -1) { + storedFavorites[index] = { + id: id, + type: 'setting', + name: $scope.modules[mi].settings[ri].name, + location: $scope.modules[mi].settings[ri].location, + caption: $scope.modules[mi].settings[ri].caption, + }; + } + } + } + $scope.favorites = storedFavorites.filter(fav => (typeof fav !== 'string')); + $scope.hasFavorites = $scope.favorites.length > 0; + saveFavorites(); + $scope.state.isBusy = false; + }, function (error) { + console.error(error); + $scope.state.error = true; + }); + + function favoriteOrderChange(evt) { + const elem = $scope.favorites.splice(evt.oldIndex, 1)[0]; + $scope.$apply(function () { + $scope.favorites.splice(evt.newIndex, 0, elem); + }); + saveFavorites(); + } + + angular.element($document[0]).ready(function () { + Sortable.create($document[0].getElementById('favorites'), { + group: { + name: 'favorites', + put: false + }, + animation: 200, + onEnd: favoriteOrderChange, + onMove: () => $scope.editMode + }); + }); + }]); + diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/launchpad/Home/index.html b/dirigible-bank-server/gen/dirigible-bank-server/ui/launchpad/Home/index.html new file mode 100644 index 0000000..94c38c0 --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/launchpad/Home/index.html @@ -0,0 +1,203 @@ + + + + + + + + + + + + + + + + + + + + +
+
+

PI Smart Server

+
+

Bank Account Management Application

+ +
+
General +
+
+ + + + + Process Inbox + Execute user tasks from running processes + + + + + + + + Documents Storage + Browse and manage documents + + + +
+ + +
Favorites
+ + + +
+
+ + + + + + + {{fav.name}} + {{fav.caption}} + + + +
+ + +
Modules
+ + + + + + + + + + + + +
+
+
+
+
+
+ {{::module.name}} +
+ + + + + + + +
+ + + + +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + +
Entities
No entities +
+ {{::entity.name}} + + + +
+
+ + + + + + + + + + + + + + + + + +
Reports
No reports +
+ {{::report.name}} + + + +
+
+
+
+
+
+
+
+
+ + {{state.busyText}} + + + Error while initializing launchpad + + + + diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/launchpad/Home/styles.css b/dirigible-bank-server/gen/dirigible-bank-server/ui/launchpad/Home/styles.css new file mode 100644 index 0000000..ae6a001 --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/launchpad/Home/styles.css @@ -0,0 +1,99 @@ +/** + * Generated by Eclipse Dirigible based on model and template. + * + * Do not modify the content as it may be re-generated again. + */ +.wrap-list { + align-self: start; + flex-wrap: wrap; + padding-top: 1rem; + padding-bottom: 1rem; +} + +.wrap-list>* { + width: auto; +} + +.fd-card__header:only-child, +.fd-card__header:last-child { + border: none; + border-radius: var(--fdCard_Border_Radius, .25rem); +} + +.card-table-column { + flex: 1 1 0; + width: 0; +} + +.card-table { + max-height: calc(100% - 2.75rem); + min-height: auto; + height: 100%; +} + +.card-table>* { + flex: 1; +} + +.hbox-menu-item:not(:last-child) { + border-bottom: solid 0.0625rem var(--sapGroup_TitleBorderColor, #d9d9d9); +} + +.hbox-menu-item>button { + margin-right: .25rem; +} + +.hbox-menu-item>li { + width: 100%; +} + +.module-header { + height: 2.5rem; + padding: 0 .5rem .25rem; + overflow: visible; +} + +.fd-avatar[dg-size="s"]>i { + font-size: 2rem; +} + +.fd-col { + height: 18rem; + max-width: 100%; + min-width: 100%; +} + +@media (min-width: 1200px) { + .fd-col { + max-width: 50%; + min-width: 50%; + } +} + +@media (min-width: 1600px) { + .fd-col { + max-width: 33.333333333%; + min-width: 33.333333333%; + } +} + +@media (min-width: 2560px) { + .fd-col { + max-width: 25%; + min-width: 25%; + } +} + +@media (min-width: 3000px) { + .fd-col { + max-width: 20%; + min-width: 20%; + } +} + +@media (min-width: 3800px) { + .fd-col { + max-width: 16.666666667%; + min-width: 16.666666667%; + } +} \ No newline at end of file diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/launchpad/Home/tiles.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/launchpad/Home/tiles.js new file mode 100644 index 0000000..68b2b1b --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/launchpad/Home/tiles.js @@ -0,0 +1,95 @@ +/* + * Generated by Eclipse Dirigible based on model and template. + * + * Do not modify the content as it may be re-generated again. + */ +import { response } from "sdk/http"; +import { extensions } from "sdk/extensions"; +import { user } from "sdk/security"; + +let tiles = {}; + +let tileExtensions = await extensions.loadExtensionModules("dirigible-bank-server-tile"); +for (let i = 0; i < tileExtensions?.length; i++) { + let tile = tileExtensions[i].getTile(); + + let hasRoles = true; + if (tile.roles && Array.isArray(tile.roles)) { + for (const next of tile.roles) { + if (!user.isInRole(next)) { + hasRoles = false; + break; + } + } + } + + if (!tile || (tile.role && !user.isInRole(tile.role)) || !hasRoles) { + continue; + } + if (!tiles[tile.group]) { + tiles[tile.group] = { + entities: [], + reports: [], + settings: [] + }; + } + if (tile.type === 'REPORT' || tile.report === 'true' || tile.report === true) { + tiles[tile.group].reports.push({ + name: tile.name, + location: tile.location, + caption: tile.caption, + tooltip: tile.tooltip, + project: tile.project, + type: tile.type, + group: tile.group, + report: tile.report, + icon: tile.icon, + order: parseInt(tile.order), + groupOrder: parseInt(tile.groupOrder) + }); + } else if (tile.type === 'SETTING') { + tiles[tile.group].settings.push({ + name: tile.name, + location: tile.location, + caption: tile.caption, + tooltip: tile.tooltip, + project: tile.project, + type: tile.type, + group: tile.group, + report: tile.report, + icon: tile.icon, + order: parseInt(tile.order), + groupOrder: parseInt(tile.groupOrder) + }); + } else { + tiles[tile.group].entities.push({ + name: tile.name, + location: tile.location, + caption: tile.caption, + tooltip: tile.tooltip, + project: tile.project, + type: tile.type, + group: tile.group, + report: tile.report, + icon: tile.icon, + order: parseInt(tile.order), + groupOrder: parseInt(tile.groupOrder) + }); + } +} + +let modules = []; +let referenceData = []; +for (const [key, group] of Object.entries(tiles)) { + if (!group.entities.length && !group.reports.length && group.settings.length) { + group.settings.sort((a, b) => a.order - b.order); + referenceData.push({ name: key, settings: group.settings }); + } else { + group.entities.sort((a, b) => a.order - b.order); + group.reports.sort((a, b) => a.order - b.order); + group.settings.sort((a, b) => a.order - b.order); + modules.push({ name: key, ...group }); + } +} +response.setContentType("application/json"); +response.println(JSON.stringify({ modules: modules, referenceData: referenceData })); \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/launchpad/Home/view.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/launchpad/Home/view.extension similarity index 56% rename from dirigible-bank-server/gen/ui/launchpad/Home/view.extension rename to dirigible-bank-server/gen/dirigible-bank-server/ui/launchpad/Home/view.extension index 46e6d82..37d0700 100644 --- a/dirigible-bank-server/gen/ui/launchpad/Home/view.extension +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/launchpad/Home/view.extension @@ -1,5 +1,5 @@ { - "module": "dirigible-bank-server/gen/ui/launchpad/Home/view.js", + "module": "dirigible-bank-server/gen/dirigible-bank-server/ui/launchpad/Home/view.js", "extensionPoint": "dirigible-bank-server-view", "description": "dirigible-bank-server - Application View" } \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/launchpad/Home/view.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/launchpad/Home/view.js similarity index 79% rename from dirigible-bank-server/gen/ui/launchpad/Home/view.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/launchpad/Home/view.js index 40643dd..d01ebe8 100644 --- a/dirigible-bank-server/gen/ui/launchpad/Home/view.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/launchpad/Home/view.js @@ -8,7 +8,7 @@ const viewData = { label: "Home Launchpad", factory: "frame", region: "center", - link: "/services/web/dirigible-bank-server/gen/ui/launchpad/Home/index.html", + link: "/services/web/dirigible-bank-server/gen/dirigible-bank-server/ui/launchpad/Home/index.html", isLaunchpad: true, }; diff --git a/dirigible-bank-server/gen/ui/launchpad/dialog-window.extensionpoint b/dirigible-bank-server/gen/dirigible-bank-server/ui/launchpad/dialog-window.extensionpoint similarity index 100% rename from dirigible-bank-server/gen/ui/launchpad/dialog-window.extensionpoint rename to dirigible-bank-server/gen/dirigible-bank-server/ui/launchpad/dialog-window.extensionpoint diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/launchpad/menu-help.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/launchpad/menu-help.extension new file mode 100644 index 0000000..f97d76c --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/launchpad/menu-help.extension @@ -0,0 +1,5 @@ +{ + "module": "dirigible-bank-server/gen/dirigible-bank-server/ui/launchpad/menu-help.js", + "extensionPoint": "dirigible-bank-server-menu", + "description": "dirigible-bank-server - Application Menu" +} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/launchpad/menu-help.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/launchpad/menu-help.js similarity index 96% rename from dirigible-bank-server/gen/ui/launchpad/menu-help.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/launchpad/menu-help.js index 76750e4..9051c09 100644 --- a/dirigible-bank-server/gen/ui/launchpad/menu-help.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/launchpad/menu-help.js @@ -4,6 +4,8 @@ * Do not modify the content as it may be re-generated again. */ +import { Configurations as config } from "sdk/core"; + const defaultMenuItems = [ { label: "Applications Portal", @@ -49,9 +51,7 @@ const defaultMenuItems = [ } ]; -let config = dirigibleRequire("core/configurations"); - -exports.getMenu = function () { +export function getMenu() { let menu = { label: "Help", order: 900, diff --git a/dirigible-bank-server/gen/ui/launchpad/menu.extensionpoint b/dirigible-bank-server/gen/dirigible-bank-server/ui/launchpad/menu.extensionpoint similarity index 100% rename from dirigible-bank-server/gen/ui/launchpad/menu.extensionpoint rename to dirigible-bank-server/gen/dirigible-bank-server/ui/launchpad/menu.extensionpoint diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/launchpad/perspective.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/launchpad/perspective.extension new file mode 100644 index 0000000..af56c62 --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/launchpad/perspective.extension @@ -0,0 +1 @@ +{"module":"dirigible-bank-server/gen/dirigible-bank-server/ui/launchpad/perspective.js","extensionPoint":"dirigible-bank-server","description":"dirigible-bank-server - Application Perspective"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/launchpad/perspective.extensionpoint b/dirigible-bank-server/gen/dirigible-bank-server/ui/launchpad/perspective.extensionpoint similarity index 100% rename from dirigible-bank-server/gen/ui/launchpad/perspective.extensionpoint rename to dirigible-bank-server/gen/dirigible-bank-server/ui/launchpad/perspective.extensionpoint diff --git a/dirigible-bank-server/gen/ui/entities/perspective.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/launchpad/perspective.js similarity index 60% rename from dirigible-bank-server/gen/ui/entities/perspective.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/launchpad/perspective.js index 5e0557a..a682d50 100644 --- a/dirigible-bank-server/gen/ui/entities/perspective.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/launchpad/perspective.js @@ -4,11 +4,11 @@ * Do not modify the content as it may be re-generated again. */ const perspectiveData = { - id: "entities", - name: "entities", - link: "/services/web/dirigible-bank-server/gen/ui/entities/index.html", - order: "100", - icon: "/services/web/resources/unicons/copy.svg", + id: 'home', + name: 'Home', + link: '/services/web/dirigible-bank-server/gen/dirigible-bank-server/index.html', + icon: '/services/web/resources/unicons/estate.svg', + order: 1, }; if (typeof exports !== 'undefined') { diff --git a/dirigible-bank-server/gen/ui/launchpad/tile.extensionpoint b/dirigible-bank-server/gen/dirigible-bank-server/ui/launchpad/tile.extensionpoint similarity index 100% rename from dirigible-bank-server/gen/ui/launchpad/tile.extensionpoint rename to dirigible-bank-server/gen/dirigible-bank-server/ui/launchpad/tile.extensionpoint diff --git a/dirigible-bank-server/gen/ui/launchpad/view.extensionpoint b/dirigible-bank-server/gen/dirigible-bank-server/ui/launchpad/view.extensionpoint similarity index 100% rename from dirigible-bank-server/gen/ui/launchpad/view.extensionpoint rename to dirigible-bank-server/gen/dirigible-bank-server/ui/launchpad/view.extensionpoint diff --git a/dirigible-bank-server/gen/ui/transactions/Transactions/controller.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/controller.js similarity index 78% rename from dirigible-bank-server/gen/ui/transactions/Transactions/controller.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/controller.js index 69c427b..a981bbf 100644 --- a/dirigible-bank-server/gen/ui/transactions/Transactions/controller.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/controller.js @@ -3,36 +3,40 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) messageHubProvider.eventIdPrefix = 'dirigible-bank-server.transactions.Transactions'; }]) .config(["entityApiProvider", function (entityApiProvider) { - entityApiProvider.baseUrl = "/services/ts/dirigible-bank-server/gen/api/transactions/TransactionsService.ts"; + entityApiProvider.baseUrl = "/services/ts/dirigible-bank-server/gen/dirigible-bank-server/api/transactions/TransactionsService.ts"; }]) - .controller('PageController', ['$scope', '$http', 'messageHub', 'entityApi', function ($scope, $http, messageHub, entityApi) { + .controller('PageController', ['$scope', '$http', 'messageHub', 'entityApi', 'Extensions', function ($scope, $http, messageHub, entityApi, Extensions) { + + $scope.dataPage = 1; + $scope.dataCount = 0; + $scope.dataLimit = 20; //-----------------Custom Actions-------------------// - $http.get("/services/js/resources-core/services/custom-actions.js?extensionPoint=dirigible-bank-server-custom-action").then(function (response) { - $scope.pageActions = response.data.filter(e => e.perspective === "transactions" && e.view === "Transactions" && (e.type === "page" || e.type === undefined)); - $scope.entityActions = response.data.filter(e => e.perspective === "transactions" && e.view === "Transactions" && e.type === "entity"); + Extensions.get('dialogWindow', 'dirigible-bank-server-custom-action').then(function (response) { + $scope.pageActions = response.filter(e => e.perspective === "transactions" && e.view === "Transactions" && (e.type === "page" || e.type === undefined)); + $scope.entityActions = response.filter(e => e.perspective === "transactions" && e.view === "Transactions" && e.type === "entity"); }); - $scope.triggerPageAction = function (actionId) { - for (const next of $scope.pageActions) { - if (next.id === actionId) { - messageHub.showDialogWindow("dirigible-bank-server-custom-action", { - src: next.link, - }); - break; - } - } + $scope.triggerPageAction = function (action) { + messageHub.showDialogWindow( + action.id, + {}, + null, + true, + action + ); }; - $scope.triggerEntityAction = function (actionId, selectedEntity) { - for (const next of $scope.entityActions) { - if (next.id === actionId) { - messageHub.showDialogWindow("dirigible-bank-server-custom-action", { - src: `${next.link}?id=${selectedEntity.Id}`, - }); - break; - } - } + $scope.triggerEntityAction = function (action) { + messageHub.showDialogWindow( + action.id, + { + id: $scope.entity.Id + }, + null, + true, + action + ); }; //-----------------Custom Actions-------------------// @@ -70,7 +74,9 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) messageHub.showAlertError("Transactions", `Unable to count Transactions: '${response.message}'`); return; } - $scope.dataCount = response.data; + if (response.data) { + $scope.dataCount = response.data; + } let offset = (pageNumber - 1) * $scope.dataLimit; let limit = $scope.dataLimit; let request; @@ -174,7 +180,7 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) $scope.optionsSender = []; - $http.get("/services/ts/dirigible-bank-server/gen/api/bankAccount/BankAccountsService.ts").then(function (response) { + $http.get("/services/ts/dirigible-bank-server/gen/dirigible-bank-server/api/bankAccount/BankAccountsService.ts").then(function (response) { $scope.optionsReciever = response.data.map(e => { return { value: e.Id, @@ -183,7 +189,7 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) }); }); - $http.get("/services/ts/dirigible-bank-server/gen/api/bankAccount/BankAccountsService.ts").then(function (response) { + $http.get("/services/ts/dirigible-bank-server/gen/dirigible-bank-server/api/bankAccount/BankAccountsService.ts").then(function (response) { $scope.optionsSender = response.data.map(e => { return { value: e.Id, diff --git a/dirigible-bank-server/gen/ui/transactions/Transactions/dialog-filter/controller.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/dialog-filter/controller.js similarity index 52% rename from dirigible-bank-server/gen/ui/transactions/Transactions/dialog-filter/controller.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/dialog-filter/controller.js index 4afb083..df0bcf5 100644 --- a/dirigible-bank-server/gen/ui/transactions/Transactions/dialog-filter/controller.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/dialog-filter/controller.js @@ -1,33 +1,27 @@ -angular.module('page', ["ideUI", "ideView", "entityApi"]) +angular.module('page', ["ideUI", "ideView"]) .config(["messageHubProvider", function (messageHubProvider) { messageHubProvider.eventIdPrefix = 'dirigible-bank-server.transactions.Transactions'; }]) - .config(["entityApiProvider", function (entityApiProvider) { - entityApiProvider.baseUrl = "/services/ts/dirigible-bank-server/gen/api/transactions/TransactionsService.ts"; - }]) - .controller('PageController', ['$scope', 'messageHub', 'entityApi', function ($scope, messageHub, entityApi) { + .controller('PageController', ['$scope', 'messageHub', 'ViewParameters', function ($scope, messageHub, ViewParameters) { $scope.entity = {}; $scope.forms = { details: {}, }; - if (window != null && window.frameElement != null && window.frameElement.hasAttribute("data-parameters")) { - let dataParameters = window.frameElement.getAttribute("data-parameters"); - if (dataParameters) { - let params = JSON.parse(dataParameters); - if (params?.entity?.DateFrom) { - params.entity.DateFrom = new Date(params.entity.DateFrom); - } - if (params?.entity?.DateTo) { - params.entity.DateTo = new Date(params.entity.DateTo); - } - $scope.entity = params.entity ?? {}; - $scope.selectedMainEntityKey = params.selectedMainEntityKey; - $scope.selectedMainEntityId = params.selectedMainEntityId; - $scope.optionsReciever = params.optionsReciever; - $scope.optionsSender = params.optionsSender; + let params = ViewParameters.get(); + if (Object.keys(params).length) { + if (params?.entity?.DateFrom) { + params.entity.DateFrom = new Date(params.entity.DateFrom); + } + if (params?.entity?.DateTo) { + params.entity.DateTo = new Date(params.entity.DateTo); } + $scope.entity = params.entity ?? {}; + $scope.selectedMainEntityKey = params.selectedMainEntityKey; + $scope.selectedMainEntityId = params.selectedMainEntityId; + $scope.optionsReciever = params.optionsReciever; + $scope.optionsSender = params.optionsSender; } $scope.filter = function () { @@ -50,16 +44,16 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) } }, }; - if (entity.Id) { + if (entity.Id !== undefined) { filter.$filter.equals.Id = entity.Id; } - if (entity.Reciever) { + if (entity.Reciever !== undefined) { filter.$filter.equals.Reciever = entity.Reciever; } - if (entity.Sender) { + if (entity.Sender !== undefined) { filter.$filter.equals.Sender = entity.Sender; } - if (entity.Amount) { + if (entity.Amount !== undefined) { filter.$filter.equals.Amount = entity.Amount; } if (entity.DateFrom) { diff --git a/dirigible-bank-server/gen/ui/transactions/Transactions/dialog-filter/index.html b/dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/dialog-filter/index.html similarity index 77% rename from dirigible-bank-server/gen/ui/transactions/Transactions/dialog-filter/index.html rename to dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/dialog-filter/index.html index f621a5f..74e02a9 100644 --- a/dirigible-bank-server/gen/ui/transactions/Transactions/dialog-filter/index.html +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/dialog-filter/index.html @@ -25,17 +25,16 @@
- +
- Reciever + Reciever
@@ -44,13 +43,12 @@
- Sender + Sender
@@ -59,14 +57,13 @@
- Amount + Amount
- Date + Date
-
-
- - - - - -
-
+ + + + + + + + + + + + + diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/dialog-filter/view.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/dialog-filter/view.extension new file mode 100644 index 0000000..91c0dab --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/dialog-filter/view.extension @@ -0,0 +1,5 @@ +{ + "module": "dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/dialog-filter/view.js", + "extensionPoint": "dirigible-bank-server-dialog-window", + "description": "dirigible-bank-server - Application Dialog Window" +} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/transactions/Transactions/dialog-filter/view.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/dialog-filter/view.js similarity index 74% rename from dirigible-bank-server/gen/ui/transactions/Transactions/dialog-filter/view.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/dialog-filter/view.js index 0f3c59c..7908baf 100644 --- a/dirigible-bank-server/gen/ui/transactions/Transactions/dialog-filter/view.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/dialog-filter/view.js @@ -6,7 +6,7 @@ const viewData = { id: "Transactions-filter", label: "Transactions Filter", - link: "/services/web/dirigible-bank-server/gen/ui/transactions/Transactions/dialog-filter/index.html", + link: "/services/web/dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/dialog-filter/index.html", perspectiveName: "transactions", }; diff --git a/dirigible-bank-server/gen/ui/transactions/Transactions/dialog-window/controller.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/dialog-window/controller.js similarity index 69% rename from dirigible-bank-server/gen/ui/transactions/Transactions/dialog-window/controller.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/dialog-window/controller.js index e7dea63..08395c7 100644 --- a/dirigible-bank-server/gen/ui/transactions/Transactions/dialog-window/controller.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/dialog-window/controller.js @@ -3,9 +3,9 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) messageHubProvider.eventIdPrefix = 'dirigible-bank-server.transactions.Transactions'; }]) .config(["entityApiProvider", function (entityApiProvider) { - entityApiProvider.baseUrl = "/services/ts/dirigible-bank-server/gen/api/transactions/TransactionsService.ts"; + entityApiProvider.baseUrl = "/services/ts/dirigible-bank-server/gen/dirigible-bank-server/api/transactions/TransactionsService.ts"; }]) - .controller('PageController', ['$scope', 'messageHub', 'entityApi', function ($scope, messageHub, entityApi) { + .controller('PageController', ['$scope', 'messageHub', 'ViewParameters', 'entityApi', function ($scope, messageHub, ViewParameters, entityApi) { $scope.entity = {}; $scope.forms = { @@ -18,20 +18,17 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) }; $scope.action = 'select'; - if (window != null && window.frameElement != null && window.frameElement.hasAttribute("data-parameters")) { - let dataParameters = window.frameElement.getAttribute("data-parameters"); - if (dataParameters) { - let params = JSON.parse(dataParameters); - $scope.action = params.action; - if (params.entity.Date) { - params.entity.Date = new Date(params.entity.Date); - } - $scope.entity = params.entity; - $scope.selectedMainEntityKey = params.selectedMainEntityKey; - $scope.selectedMainEntityId = params.selectedMainEntityId; - $scope.optionsReciever = params.optionsReciever; - $scope.optionsSender = params.optionsSender; + let params = ViewParameters.get(); + if (Object.keys(params).length) { + $scope.action = params.action; + if (params.entity.Date) { + params.entity.Date = new Date(params.entity.Date); } + $scope.entity = params.entity; + $scope.selectedMainEntityKey = params.selectedMainEntityKey; + $scope.selectedMainEntityId = params.selectedMainEntityId; + $scope.optionsReciever = params.optionsReciever; + $scope.optionsSender = params.optionsSender; } $scope.create = function () { diff --git a/dirigible-bank-server/gen/ui/transactions/Transactions/dialog-window/index.html b/dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/dialog-window/index.html similarity index 88% rename from dirigible-bank-server/gen/ui/transactions/Transactions/dialog-window/index.html rename to dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/dialog-window/index.html index b2e6731..5dd2368 100644 --- a/dirigible-bank-server/gen/ui/transactions/Transactions/dialog-window/index.html +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/dialog-window/index.html @@ -25,7 +25,7 @@
- +
@@ -107,16 +107,16 @@ -
-
- - - -
-
+ + + + + + + + + + diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/dialog-window/view.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/dialog-window/view.extension new file mode 100644 index 0000000..c985c08 --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/dialog-window/view.extension @@ -0,0 +1 @@ +{"module":"dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/dialog-window/view.js","extensionPoint":"dirigible-bank-server-dialog-window","description":"dirigible-bank-server - Application Dialog Window"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/transactions/Transactions/dialog-window/view.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/dialog-window/view.js similarity index 74% rename from dirigible-bank-server/gen/ui/transactions/Transactions/dialog-window/view.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/dialog-window/view.js index 0ca2e48..71ac2a5 100644 --- a/dirigible-bank-server/gen/ui/transactions/Transactions/dialog-window/view.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/dialog-window/view.js @@ -6,7 +6,7 @@ const viewData = { id: "Transactions-details", label: "Transactions", - link: "/services/web/dirigible-bank-server/gen/ui/transactions/Transactions/dialog-window/index.html", + link: "/services/web/dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/dialog-window/index.html", perspectiveName: "transactions", }; diff --git a/dirigible-bank-server/gen/ui/transactions/Transactions/index.html b/dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/index.html similarity index 96% rename from dirigible-bank-server/gen/ui/transactions/Transactions/index.html rename to dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/index.html index 2d6fc2f..eecdba4 100644 --- a/dirigible-bank-server/gen/ui/transactions/Transactions/index.html +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/index.html @@ -19,7 +19,7 @@ Items ({{dataCount}}) - + @@ -58,7 +58,7 @@ - + diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/tile-portal.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/tile-portal.extension new file mode 100644 index 0000000..565011b --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/tile-portal.extension @@ -0,0 +1 @@ +{"module":"dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/tile.js","extensionPoint":"portal-tile","description":"dirigible-bank-server - Application Tile"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/tile.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/tile.extension new file mode 100644 index 0000000..718ee65 --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/tile.extension @@ -0,0 +1 @@ +{"module":"dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/tile.js","extensionPoint":"dirigible-bank-server-tile","description":"dirigible-bank-server - Application Tile"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/transactions/Transactions/tile.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/tile.js similarity index 57% rename from dirigible-bank-server/gen/ui/transactions/Transactions/tile.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/tile.js index fc98a9d..fe1b203 100644 --- a/dirigible-bank-server/gen/ui/transactions/Transactions/tile.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/tile.js @@ -5,12 +5,14 @@ */ exports.getTile = function () { return { - group: "transactions", + group: "dirigible-bank-server", name: "Transactions", caption: "Manage entity Transactions", tooltip: "Transactions", - // icon: "file-o", - location: "/services/web/dirigible-bank-server/gen/ui/transactions/index.html", + type: "PRIMARY", + report: "false", + icon: "/services/web/resources/unicons/file.svg", + location: "/services/web/dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/index.html", order: "100", groupOrder: "90", }; diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/view.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/view.extension new file mode 100644 index 0000000..4a14859 --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/view.extension @@ -0,0 +1 @@ +{"module":"dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/view.js","extensionPoint":"dirigible-bank-server-view","description":"dirigible-bank-server - Application View"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/transactions/Transactions/view.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/view.js similarity index 77% rename from dirigible-bank-server/gen/ui/transactions/Transactions/view.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/view.js index fdee6d1..46b82cc 100644 --- a/dirigible-bank-server/gen/ui/transactions/Transactions/view.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/view.js @@ -8,7 +8,7 @@ const viewData = { label: "Transactions", factory: "frame", region: "center", - link: "/services/web/dirigible-bank-server/gen/ui/transactions/Transactions/index.html", + link: "/services/web/dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/Transactions/index.html", perspectiveName: "transactions", }; diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/index.html b/dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/index.html new file mode 100644 index 0000000..ed0f7e5 --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/index.html @@ -0,0 +1,79 @@ + + + + + + + + + + + + + + + + + + + + + + + {{state.busyText}} + + + Encounterd an error while loading + + + + + + + diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/perspective-portal.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/perspective-portal.extension new file mode 100644 index 0000000..26817ab --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/perspective-portal.extension @@ -0,0 +1 @@ +{"module":"dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/perspective.js","extensionPoint":"portal","description":"dirigible-bank-server - Perspective - transactions"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/perspective.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/perspective.extension new file mode 100644 index 0000000..6b18378 --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/perspective.extension @@ -0,0 +1 @@ +{"module":"dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/perspective.js","extensionPoint":"dirigible-bank-server","description":"dirigible-bank-server - Perspective - transactions"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/perspective.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/perspective.js new file mode 100644 index 0000000..5a8dbf4 --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/perspective.js @@ -0,0 +1,18 @@ +/* + * Generated by Eclipse Dirigible based on model and template. + * + * Do not modify the content as it may be re-generated again. + */ +const perspectiveData = { + id: 'transactions', + name: 'Transactions', + link: '/services/web/dirigible-bank-server/gen/dirigible-bank-server/ui/transactions/index.html', + order: 90, + icon: '/services/web/resources/unicons/bill.svg', +}; + +if (typeof exports !== 'undefined') { + exports.getPerspective = function () { + return perspectiveData; + } +} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/users/Users/controller.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/controller.js similarity index 78% rename from dirigible-bank-server/gen/ui/users/Users/controller.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/controller.js index 2b41d2f..7846260 100644 --- a/dirigible-bank-server/gen/ui/users/Users/controller.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/controller.js @@ -3,36 +3,40 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) messageHubProvider.eventIdPrefix = 'dirigible-bank-server.users.Users'; }]) .config(["entityApiProvider", function (entityApiProvider) { - entityApiProvider.baseUrl = "/services/ts/dirigible-bank-server/gen/api/users/UsersService.ts"; + entityApiProvider.baseUrl = "/services/ts/dirigible-bank-server/gen/dirigible-bank-server/api/users/UsersService.ts"; }]) - .controller('PageController', ['$scope', '$http', 'messageHub', 'entityApi', function ($scope, $http, messageHub, entityApi) { + .controller('PageController', ['$scope', '$http', 'messageHub', 'entityApi', 'Extensions', function ($scope, $http, messageHub, entityApi, Extensions) { + + $scope.dataPage = 1; + $scope.dataCount = 0; + $scope.dataLimit = 20; //-----------------Custom Actions-------------------// - $http.get("/services/js/resources-core/services/custom-actions.js?extensionPoint=dirigible-bank-server-custom-action").then(function (response) { - $scope.pageActions = response.data.filter(e => e.perspective === "users" && e.view === "Users" && (e.type === "page" || e.type === undefined)); - $scope.entityActions = response.data.filter(e => e.perspective === "users" && e.view === "Users" && e.type === "entity"); + Extensions.get('dialogWindow', 'dirigible-bank-server-custom-action').then(function (response) { + $scope.pageActions = response.filter(e => e.perspective === "users" && e.view === "Users" && (e.type === "page" || e.type === undefined)); + $scope.entityActions = response.filter(e => e.perspective === "users" && e.view === "Users" && e.type === "entity"); }); - $scope.triggerPageAction = function (actionId) { - for (const next of $scope.pageActions) { - if (next.id === actionId) { - messageHub.showDialogWindow("dirigible-bank-server-custom-action", { - src: next.link, - }); - break; - } - } + $scope.triggerPageAction = function (action) { + messageHub.showDialogWindow( + action.id, + {}, + null, + true, + action + ); }; - $scope.triggerEntityAction = function (actionId, selectedEntity) { - for (const next of $scope.entityActions) { - if (next.id === actionId) { - messageHub.showDialogWindow("dirigible-bank-server-custom-action", { - src: `${next.link}?id=${selectedEntity.Id}`, - }); - break; - } - } + $scope.triggerEntityAction = function (action) { + messageHub.showDialogWindow( + action.id, + { + id: $scope.entity.Id + }, + null, + true, + action + ); }; //-----------------Custom Actions-------------------// @@ -70,7 +74,9 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) messageHub.showAlertError("Users", `Unable to count Users: '${response.message}'`); return; } - $scope.dataCount = response.data; + if (response.data) { + $scope.dataCount = response.data; + } let offset = (pageNumber - 1) * $scope.dataLimit; let limit = $scope.dataLimit; let request; @@ -162,7 +168,7 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) $scope.optionsCountry = []; - $http.get("/services/ts/codbex-countries/gen/api/Countries/CountryService.ts").then(function (response) { + $http.get("/services/ts/dirigible-bank-server/gen/dirigible-bank-server/api/entities/CountryService.ts").then(function (response) { $scope.optionsCountry = response.data.map(e => { return { value: e.Id, diff --git a/dirigible-bank-server/gen/ui/users/Users/dialog-filter/controller.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/dialog-filter/controller.js similarity index 63% rename from dirigible-bank-server/gen/ui/users/Users/dialog-filter/controller.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/dialog-filter/controller.js index e577539..3c41213 100644 --- a/dirigible-bank-server/gen/ui/users/Users/dialog-filter/controller.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/dialog-filter/controller.js @@ -1,26 +1,20 @@ -angular.module('page', ["ideUI", "ideView", "entityApi"]) +angular.module('page', ["ideUI", "ideView"]) .config(["messageHubProvider", function (messageHubProvider) { messageHubProvider.eventIdPrefix = 'dirigible-bank-server.users.Users'; }]) - .config(["entityApiProvider", function (entityApiProvider) { - entityApiProvider.baseUrl = "/services/ts/dirigible-bank-server/gen/api/users/UsersService.ts"; - }]) - .controller('PageController', ['$scope', 'messageHub', 'entityApi', function ($scope, messageHub, entityApi) { + .controller('PageController', ['$scope', 'messageHub', 'ViewParameters', function ($scope, messageHub, ViewParameters) { $scope.entity = {}; $scope.forms = { details: {}, }; - if (window != null && window.frameElement != null && window.frameElement.hasAttribute("data-parameters")) { - let dataParameters = window.frameElement.getAttribute("data-parameters"); - if (dataParameters) { - let params = JSON.parse(dataParameters); - $scope.entity = params.entity ?? {}; - $scope.selectedMainEntityKey = params.selectedMainEntityKey; - $scope.selectedMainEntityId = params.selectedMainEntityId; - $scope.optionsCountry = params.optionsCountry; - } + let params = ViewParameters.get(); + if (Object.keys(params).length) { + $scope.entity = params.entity ?? {}; + $scope.selectedMainEntityKey = params.selectedMainEntityKey; + $scope.selectedMainEntityId = params.selectedMainEntityId; + $scope.optionsCountry = params.optionsCountry; } $scope.filter = function () { @@ -43,7 +37,7 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) } }, }; - if (entity.Id) { + if (entity.Id !== undefined) { filter.$filter.equals.Id = entity.Id; } if (entity.FName) { @@ -61,12 +55,12 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) if (entity.Phone) { filter.$filter.contains.Phone = entity.Phone; } - if (entity.Country) { - filter.$filter.equals.Country = entity.Country; - } if (entity.Username) { filter.$filter.contains.Username = entity.Username; } + if (entity.Country !== undefined) { + filter.$filter.equals.Country = entity.Country; + } messageHub.postMessage("entitySearch", { entity: entity, filter: filter diff --git a/dirigible-bank-server/gen/ui/users/Users/dialog-filter/index.html b/dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/dialog-filter/index.html similarity index 81% rename from dirigible-bank-server/gen/ui/users/Users/dialog-filter/index.html rename to dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/dialog-filter/index.html index 7cf4ce4..1dd3777 100644 --- a/dirigible-bank-server/gen/ui/users/Users/dialog-filter/index.html +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/dialog-filter/index.html @@ -25,18 +25,17 @@
- +
- FName + FName
- LName + LName
- Email + Email
- Password + Password
- Phone + Phone
- Country -
-
- - -
-
- -
- Username + Username
+ +
+ Country +
+
+ + +
+
-
-
- - - - - -
-
+ + + + + + + + + + + + + diff --git a/dirigible-bank-server/gen/ui/bankAccount/BankAccounts/dialog-filter/view.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/dialog-filter/view.extension similarity index 56% rename from dirigible-bank-server/gen/ui/bankAccount/BankAccounts/dialog-filter/view.extension rename to dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/dialog-filter/view.extension index fdb95fd..fced74f 100644 --- a/dirigible-bank-server/gen/ui/bankAccount/BankAccounts/dialog-filter/view.extension +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/dialog-filter/view.extension @@ -1,5 +1,5 @@ { - "module": "dirigible-bank-server/gen/ui/bankAccount/BankAccounts/dialog-filter/view.js", + "module": "dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/dialog-filter/view.js", "extensionPoint": "dirigible-bank-server-dialog-window", "description": "dirigible-bank-server - Application Dialog Window" } \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/users/Users/dialog-filter/view.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/dialog-filter/view.js similarity index 75% rename from dirigible-bank-server/gen/ui/users/Users/dialog-filter/view.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/dialog-filter/view.js index c1a5040..16acf2c 100644 --- a/dirigible-bank-server/gen/ui/users/Users/dialog-filter/view.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/dialog-filter/view.js @@ -6,7 +6,7 @@ const viewData = { id: "Users-filter", label: "Users Filter", - link: "/services/web/dirigible-bank-server/gen/ui/users/Users/dialog-filter/index.html", + link: "/services/web/dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/dialog-filter/index.html", perspectiveName: "users", }; diff --git a/dirigible-bank-server/gen/ui/users/Users/dialog-window/controller.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/dialog-window/controller.js similarity index 72% rename from dirigible-bank-server/gen/ui/users/Users/dialog-window/controller.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/dialog-window/controller.js index c89ac9f..27cf41b 100644 --- a/dirigible-bank-server/gen/ui/users/Users/dialog-window/controller.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/dialog-window/controller.js @@ -3,9 +3,9 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) messageHubProvider.eventIdPrefix = 'dirigible-bank-server.users.Users'; }]) .config(["entityApiProvider", function (entityApiProvider) { - entityApiProvider.baseUrl = "/services/ts/dirigible-bank-server/gen/api/users/UsersService.ts"; + entityApiProvider.baseUrl = "/services/ts/dirigible-bank-server/gen/dirigible-bank-server/api/users/UsersService.ts"; }]) - .controller('PageController', ['$scope', 'messageHub', 'entityApi', function ($scope, messageHub, entityApi) { + .controller('PageController', ['$scope', 'messageHub', 'ViewParameters', 'entityApi', function ($scope, messageHub, ViewParameters, entityApi) { $scope.entity = {}; $scope.forms = { @@ -18,16 +18,13 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) }; $scope.action = 'select'; - if (window != null && window.frameElement != null && window.frameElement.hasAttribute("data-parameters")) { - let dataParameters = window.frameElement.getAttribute("data-parameters"); - if (dataParameters) { - let params = JSON.parse(dataParameters); - $scope.action = params.action; - $scope.entity = params.entity; - $scope.selectedMainEntityKey = params.selectedMainEntityKey; - $scope.selectedMainEntityId = params.selectedMainEntityId; - $scope.optionsCountry = params.optionsCountry; - } + let params = ViewParameters.get(); + if (Object.keys(params).length) { + $scope.action = params.action; + $scope.entity = params.entity; + $scope.selectedMainEntityKey = params.selectedMainEntityKey; + $scope.selectedMainEntityId = params.selectedMainEntityId; + $scope.optionsCountry = params.optionsCountry; } $scope.create = function () { diff --git a/dirigible-bank-server/gen/ui/users/Users/dialog-window/index.html b/dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/dialog-window/index.html similarity index 93% rename from dirigible-bank-server/gen/ui/users/Users/dialog-window/index.html rename to dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/dialog-window/index.html index 3fa1c88..36b8447 100644 --- a/dirigible-bank-server/gen/ui/users/Users/dialog-window/index.html +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/dialog-window/index.html @@ -25,7 +25,7 @@
- +
@@ -143,22 +143,6 @@
- -
- Country -
-
- - -
-
Username @@ -181,20 +165,36 @@
+ +
+ Country +
+
+ + +
+
-
-
- - - -
-
+ + + + + + + + + + diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/dialog-window/view.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/dialog-window/view.extension new file mode 100644 index 0000000..fe0fd16 --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/dialog-window/view.extension @@ -0,0 +1 @@ +{"module":"dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/dialog-window/view.js","extensionPoint":"dirigible-bank-server-dialog-window","description":"dirigible-bank-server - Application Dialog Window"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/users/Users/dialog-window/view.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/dialog-window/view.js similarity index 75% rename from dirigible-bank-server/gen/ui/users/Users/dialog-window/view.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/dialog-window/view.js index 7a65a44..d581dc9 100644 --- a/dirigible-bank-server/gen/ui/users/Users/dialog-window/view.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/dialog-window/view.js @@ -6,7 +6,7 @@ const viewData = { id: "Users-details", label: "Users", - link: "/services/web/dirigible-bank-server/gen/ui/users/Users/dialog-window/index.html", + link: "/services/web/dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/dialog-window/index.html", perspectiveName: "users", }; diff --git a/dirigible-bank-server/gen/ui/users/Users/index.html b/dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/index.html similarity index 97% rename from dirigible-bank-server/gen/ui/users/Users/index.html rename to dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/index.html index ca47aff..133dcb3 100644 --- a/dirigible-bank-server/gen/ui/users/Users/index.html +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/index.html @@ -19,7 +19,7 @@ Items ({{dataCount}}) - + @@ -33,8 +33,8 @@
Email Password PhoneCountry UsernameCountry
{{next.Phone}} {{next.Username}} {{optionsCountryValue(next.Country)}} {{next.Username}} @@ -66,7 +66,7 @@ - + diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/tile-portal.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/tile-portal.extension new file mode 100644 index 0000000..02a344c --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/tile-portal.extension @@ -0,0 +1 @@ +{"module":"dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/tile.js","extensionPoint":"portal-tile","description":"dirigible-bank-server - Application Tile"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/tile.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/tile.extension new file mode 100644 index 0000000..2053220 --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/tile.extension @@ -0,0 +1 @@ +{"module":"dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/tile.js","extensionPoint":"dirigible-bank-server-tile","description":"dirigible-bank-server - Application Tile"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/users/Users/tile.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/tile.js similarity index 56% rename from dirigible-bank-server/gen/ui/users/Users/tile.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/tile.js index e1740e9..8116d7e 100644 --- a/dirigible-bank-server/gen/ui/users/Users/tile.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/tile.js @@ -5,12 +5,14 @@ */ exports.getTile = function () { return { - group: "users", + group: "dirigible-bank-server", name: "Users", caption: "Manage entity Users", tooltip: "Users", - // icon: "file-o", - location: "/services/web/dirigible-bank-server/gen/ui/users/index.html", + type: "PRIMARY", + report: "false", + icon: "/services/web/resources/unicons/file.svg", + location: "/services/web/dirigible-bank-server/gen/dirigible-bank-server/ui/users/index.html", order: "100", groupOrder: "40", }; diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/view.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/view.extension new file mode 100644 index 0000000..b4af24b --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/view.extension @@ -0,0 +1 @@ +{"module":"dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/view.js","extensionPoint":"dirigible-bank-server-view","description":"dirigible-bank-server - Application View"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/users/Users/view.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/view.js similarity index 78% rename from dirigible-bank-server/gen/ui/users/Users/view.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/view.js index 4d8e70f..5a8930b 100644 --- a/dirigible-bank-server/gen/ui/users/Users/view.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/view.js @@ -8,7 +8,7 @@ const viewData = { label: "Users", factory: "frame", region: "center", - link: "/services/web/dirigible-bank-server/gen/ui/users/Users/index.html", + link: "/services/web/dirigible-bank-server/gen/dirigible-bank-server/ui/users/Users/index.html", perspectiveName: "users", }; diff --git a/dirigible-bank-server/gen/ui/bankAccount/index.html b/dirigible-bank-server/gen/dirigible-bank-server/ui/users/index.html similarity index 54% rename from dirigible-bank-server/gen/ui/bankAccount/index.html rename to dirigible-bank-server/gen/dirigible-bank-server/ui/users/index.html index eb2d2e1..b76580d 100644 --- a/dirigible-bank-server/gen/ui/bankAccount/index.html +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/users/index.html @@ -1,7 +1,9 @@ @@ -23,16 +25,22 @@ - + + + {{state.busyText}} + + + Encounterd an error while loading + diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/users/perspective-portal.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/users/perspective-portal.extension new file mode 100644 index 0000000..c12f900 --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/users/perspective-portal.extension @@ -0,0 +1 @@ +{"module":"dirigible-bank-server/gen/dirigible-bank-server/ui/users/perspective.js","extensionPoint":"portal","description":"dirigible-bank-server - Perspective - users"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/dirigible-bank-server/ui/users/perspective.extension b/dirigible-bank-server/gen/dirigible-bank-server/ui/users/perspective.extension new file mode 100644 index 0000000..4edb215 --- /dev/null +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/users/perspective.extension @@ -0,0 +1 @@ +{"module":"dirigible-bank-server/gen/dirigible-bank-server/ui/users/perspective.js","extensionPoint":"dirigible-bank-server","description":"dirigible-bank-server - Perspective - users"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/bankAccount/perspective.js b/dirigible-bank-server/gen/dirigible-bank-server/ui/users/perspective.js similarity index 58% rename from dirigible-bank-server/gen/ui/bankAccount/perspective.js rename to dirigible-bank-server/gen/dirigible-bank-server/ui/users/perspective.js index 0bebaae..9c39192 100644 --- a/dirigible-bank-server/gen/ui/bankAccount/perspective.js +++ b/dirigible-bank-server/gen/dirigible-bank-server/ui/users/perspective.js @@ -4,11 +4,11 @@ * Do not modify the content as it may be re-generated again. */ const perspectiveData = { - id: "bankAccount", - name: "bankAccount", - link: "/services/web/dirigible-bank-server/gen/ui/bankAccount/index.html", - order: "60", - icon: "/services/web/resources/unicons/chart-line.svg", + id: 'users', + name: 'Users', + link: '/services/web/dirigible-bank-server/gen/dirigible-bank-server/ui/users/index.html', + order: 40, + icon: '/services/web/resources/unicons/user-circle.svg', }; if (typeof exports !== 'undefined') { diff --git a/dirigible-bank-server/gen/ui/bankAccount/BankAccounts/dialog-window/view.extension b/dirigible-bank-server/gen/ui/bankAccount/BankAccounts/dialog-window/view.extension deleted file mode 100644 index b596161..0000000 --- a/dirigible-bank-server/gen/ui/bankAccount/BankAccounts/dialog-window/view.extension +++ /dev/null @@ -1 +0,0 @@ -{"module":"dirigible-bank-server/gen/ui/bankAccount/BankAccounts/dialog-window/view.js","extensionPoint":"dirigible-bank-server-dialog-window","description":"dirigible-bank-server - Application Dialog Window"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/bankAccount/BankAccounts/tile-portal.extension b/dirigible-bank-server/gen/ui/bankAccount/BankAccounts/tile-portal.extension deleted file mode 100644 index 5ac6957..0000000 --- a/dirigible-bank-server/gen/ui/bankAccount/BankAccounts/tile-portal.extension +++ /dev/null @@ -1 +0,0 @@ -{"module":"dirigible-bank-server/gen/ui/bankAccount/BankAccounts/tile.js","extensionPoint":"portal-tile","description":"dirigible-bank-server - Application Tile"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/bankAccount/BankAccounts/tile.extension b/dirigible-bank-server/gen/ui/bankAccount/BankAccounts/tile.extension deleted file mode 100644 index 6a7ad7e..0000000 --- a/dirigible-bank-server/gen/ui/bankAccount/BankAccounts/tile.extension +++ /dev/null @@ -1 +0,0 @@ -{"module":"dirigible-bank-server/gen/ui/bankAccount/BankAccounts/tile.js","extensionPoint":"dirigible-bank-server-tile","description":"dirigible-bank-server - Application Tile"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/bankAccount/BankAccounts/view.extension b/dirigible-bank-server/gen/ui/bankAccount/BankAccounts/view.extension deleted file mode 100644 index fb6c8ac..0000000 --- a/dirigible-bank-server/gen/ui/bankAccount/BankAccounts/view.extension +++ /dev/null @@ -1 +0,0 @@ -{"module":"dirigible-bank-server/gen/ui/bankAccount/BankAccounts/view.js","extensionPoint":"dirigible-bank-server-view","description":"dirigible-bank-server - Application View"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/bankAccount/perspective-portal.extension b/dirigible-bank-server/gen/ui/bankAccount/perspective-portal.extension deleted file mode 100644 index 5bbd8eb..0000000 --- a/dirigible-bank-server/gen/ui/bankAccount/perspective-portal.extension +++ /dev/null @@ -1 +0,0 @@ -{"module":"dirigible-bank-server/gen/ui/bankAccount/perspective.js","extensionPoint":"portal","description":"dirigible-bank-server - Perspective - bankAccount"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/bankAccount/perspective.extension b/dirigible-bank-server/gen/ui/bankAccount/perspective.extension deleted file mode 100644 index e726a4d..0000000 --- a/dirigible-bank-server/gen/ui/bankAccount/perspective.extension +++ /dev/null @@ -1 +0,0 @@ -{"module":"dirigible-bank-server/gen/ui/bankAccount/perspective.js","extensionPoint":"dirigible-bank-server","description":"dirigible-bank-server - Perspective - bankAccount"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/cards/Cards/dialog-window/view.extension b/dirigible-bank-server/gen/ui/cards/Cards/dialog-window/view.extension deleted file mode 100644 index 83b1716..0000000 --- a/dirigible-bank-server/gen/ui/cards/Cards/dialog-window/view.extension +++ /dev/null @@ -1 +0,0 @@ -{"module":"dirigible-bank-server/gen/ui/cards/Cards/dialog-window/view.js","extensionPoint":"dirigible-bank-server-dialog-window","description":"dirigible-bank-server - Application Dialog Window"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/cards/Cards/tile-portal.extension b/dirigible-bank-server/gen/ui/cards/Cards/tile-portal.extension deleted file mode 100644 index a733c0b..0000000 --- a/dirigible-bank-server/gen/ui/cards/Cards/tile-portal.extension +++ /dev/null @@ -1 +0,0 @@ -{"module":"dirigible-bank-server/gen/ui/cards/Cards/tile.js","extensionPoint":"portal-tile","description":"dirigible-bank-server - Application Tile"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/cards/Cards/tile.extension b/dirigible-bank-server/gen/ui/cards/Cards/tile.extension deleted file mode 100644 index aa094d1..0000000 --- a/dirigible-bank-server/gen/ui/cards/Cards/tile.extension +++ /dev/null @@ -1 +0,0 @@ -{"module":"dirigible-bank-server/gen/ui/cards/Cards/tile.js","extensionPoint":"dirigible-bank-server-tile","description":"dirigible-bank-server - Application Tile"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/cards/Cards/view.extension b/dirigible-bank-server/gen/ui/cards/Cards/view.extension deleted file mode 100644 index b7e39b5..0000000 --- a/dirigible-bank-server/gen/ui/cards/Cards/view.extension +++ /dev/null @@ -1 +0,0 @@ -{"module":"dirigible-bank-server/gen/ui/cards/Cards/view.js","extensionPoint":"dirigible-bank-server-view","description":"dirigible-bank-server - Application View"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/cards/perspective-portal.extension b/dirigible-bank-server/gen/ui/cards/perspective-portal.extension deleted file mode 100644 index 3d5f4f5..0000000 --- a/dirigible-bank-server/gen/ui/cards/perspective-portal.extension +++ /dev/null @@ -1 +0,0 @@ -{"module":"dirigible-bank-server/gen/ui/cards/perspective.js","extensionPoint":"portal","description":"dirigible-bank-server - Perspective - cards"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/cards/perspective.extension b/dirigible-bank-server/gen/ui/cards/perspective.extension deleted file mode 100644 index 755a9a2..0000000 --- a/dirigible-bank-server/gen/ui/cards/perspective.extension +++ /dev/null @@ -1 +0,0 @@ -{"module":"dirigible-bank-server/gen/ui/cards/perspective.js","extensionPoint":"dirigible-bank-server","description":"dirigible-bank-server - Perspective - cards"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/custom-action-dialog/controller.js b/dirigible-bank-server/gen/ui/custom-action-dialog/controller.js deleted file mode 100644 index b93ff61..0000000 --- a/dirigible-bank-server/gen/ui/custom-action-dialog/controller.js +++ /dev/null @@ -1,14 +0,0 @@ -/* - * Generated by Eclipse Dirigible based on model and template. - * - * Do not modify the content as it may be re-generated again. - */ -angular.module('page', ["ideUI", "ideView", "entityApi"]) - .config(["messageHubProvider", function (messageHubProvider) { - messageHubProvider.eventIdPrefix = 'test.entities.Student'; - }]) - .controller('PageController', ['$scope', 'ViewParameters', function ($scope, ViewParameters) { - - $scope.src = ViewParameters.get().src; - - }]); \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/custom-action-dialog/custom-action.extensionpoint b/dirigible-bank-server/gen/ui/custom-action-dialog/custom-action.extensionpoint deleted file mode 100644 index ade2409..0000000 --- a/dirigible-bank-server/gen/ui/custom-action-dialog/custom-action.extensionpoint +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "dirigible-bank-server-custom-action", - "description": "dirigible-bank-server - Extension Point for the Application Custom Action Providers" -} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/custom-action-dialog/index.html b/dirigible-bank-server/gen/ui/custom-action-dialog/index.html deleted file mode 100644 index 4522735..0000000 --- a/dirigible-bank-server/gen/ui/custom-action-dialog/index.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/dirigible-bank-server/gen/ui/custom-action-dialog/view.extension b/dirigible-bank-server/gen/ui/custom-action-dialog/view.extension deleted file mode 100644 index 0eda301..0000000 --- a/dirigible-bank-server/gen/ui/custom-action-dialog/view.extension +++ /dev/null @@ -1,5 +0,0 @@ -{ - "module": "dirigible-bank-server/gen/ui/custom-action-dialog/view.js", - "extensionPoint": "dirigible-bank-server-dialog-window", - "description": "dirigible-bank-server - Custom Action Dialog Window" -} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/custom-action-dialog/view.js b/dirigible-bank-server/gen/ui/custom-action-dialog/view.js deleted file mode 100644 index 580ad07..0000000 --- a/dirigible-bank-server/gen/ui/custom-action-dialog/view.js +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Generated by Eclipse Dirigible based on model and template. - * - * Do not modify the content as it may be re-generated again. - */ -const viewData = { - id: "dirigible-bank-server-custom-action", - label: "Custom Action", - link: "/services/web/dirigible-bank-server/gen/ui/custom-action-dialog/index.html" -}; - -if (typeof exports !== 'undefined') { - exports.getDialogWindow = function () { - return viewData; - } -} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/entities/BankAccountStatus/dialog-window/view.extension b/dirigible-bank-server/gen/ui/entities/BankAccountStatus/dialog-window/view.extension deleted file mode 100644 index 71c9e2d..0000000 --- a/dirigible-bank-server/gen/ui/entities/BankAccountStatus/dialog-window/view.extension +++ /dev/null @@ -1 +0,0 @@ -{"module":"dirigible-bank-server/gen/ui/entities/BankAccountStatus/dialog-window/view.js","extensionPoint":"dirigible-bank-server-dialog-window","description":"dirigible-bank-server - Application Dialog Window"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/entities/BankAccountStatus/tile-portal.extension b/dirigible-bank-server/gen/ui/entities/BankAccountStatus/tile-portal.extension deleted file mode 100644 index 5684529..0000000 --- a/dirigible-bank-server/gen/ui/entities/BankAccountStatus/tile-portal.extension +++ /dev/null @@ -1 +0,0 @@ -{"module":"dirigible-bank-server/gen/ui/entities/BankAccountStatus/tile.js","extensionPoint":"portal-tile","description":"dirigible-bank-server - Application Tile"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/entities/BankAccountStatus/tile.extension b/dirigible-bank-server/gen/ui/entities/BankAccountStatus/tile.extension deleted file mode 100644 index 05fc000..0000000 --- a/dirigible-bank-server/gen/ui/entities/BankAccountStatus/tile.extension +++ /dev/null @@ -1 +0,0 @@ -{"module":"dirigible-bank-server/gen/ui/entities/BankAccountStatus/tile.js","extensionPoint":"dirigible-bank-server-tile","description":"dirigible-bank-server - Application Tile"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/entities/BankAccountStatus/view.extension b/dirigible-bank-server/gen/ui/entities/BankAccountStatus/view.extension deleted file mode 100644 index 4c86e79..0000000 --- a/dirigible-bank-server/gen/ui/entities/BankAccountStatus/view.extension +++ /dev/null @@ -1 +0,0 @@ -{"module":"dirigible-bank-server/gen/ui/entities/BankAccountStatus/view.js","extensionPoint":"dirigible-bank-server-view","description":"dirigible-bank-server - Application View"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/entities/BankAccountType/dialog-window/view.extension b/dirigible-bank-server/gen/ui/entities/BankAccountType/dialog-window/view.extension deleted file mode 100644 index 9f6112e..0000000 --- a/dirigible-bank-server/gen/ui/entities/BankAccountType/dialog-window/view.extension +++ /dev/null @@ -1 +0,0 @@ -{"module":"dirigible-bank-server/gen/ui/entities/BankAccountType/dialog-window/view.js","extensionPoint":"dirigible-bank-server-dialog-window","description":"dirigible-bank-server - Application Dialog Window"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/entities/BankAccountType/tile-portal.extension b/dirigible-bank-server/gen/ui/entities/BankAccountType/tile-portal.extension deleted file mode 100644 index ebb7b8d..0000000 --- a/dirigible-bank-server/gen/ui/entities/BankAccountType/tile-portal.extension +++ /dev/null @@ -1 +0,0 @@ -{"module":"dirigible-bank-server/gen/ui/entities/BankAccountType/tile.js","extensionPoint":"portal-tile","description":"dirigible-bank-server - Application Tile"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/entities/BankAccountType/tile.extension b/dirigible-bank-server/gen/ui/entities/BankAccountType/tile.extension deleted file mode 100644 index 2776ec8..0000000 --- a/dirigible-bank-server/gen/ui/entities/BankAccountType/tile.extension +++ /dev/null @@ -1 +0,0 @@ -{"module":"dirigible-bank-server/gen/ui/entities/BankAccountType/tile.js","extensionPoint":"dirigible-bank-server-tile","description":"dirigible-bank-server - Application Tile"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/entities/BankAccountType/view.extension b/dirigible-bank-server/gen/ui/entities/BankAccountType/view.extension deleted file mode 100644 index 36bd9bc..0000000 --- a/dirigible-bank-server/gen/ui/entities/BankAccountType/view.extension +++ /dev/null @@ -1 +0,0 @@ -{"module":"dirigible-bank-server/gen/ui/entities/BankAccountType/view.js","extensionPoint":"dirigible-bank-server-view","description":"dirigible-bank-server - Application View"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/entities/CardType/dialog-filter/view.extension b/dirigible-bank-server/gen/ui/entities/CardType/dialog-filter/view.extension deleted file mode 100644 index 90c8280..0000000 --- a/dirigible-bank-server/gen/ui/entities/CardType/dialog-filter/view.extension +++ /dev/null @@ -1,5 +0,0 @@ -{ - "module": "dirigible-bank-server/gen/ui/entities/CardType/dialog-filter/view.js", - "extensionPoint": "dirigible-bank-server-dialog-window", - "description": "dirigible-bank-server - Application Dialog Window" -} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/entities/CardType/dialog-window/view.extension b/dirigible-bank-server/gen/ui/entities/CardType/dialog-window/view.extension deleted file mode 100644 index 1c151bd..0000000 --- a/dirigible-bank-server/gen/ui/entities/CardType/dialog-window/view.extension +++ /dev/null @@ -1 +0,0 @@ -{"module":"dirigible-bank-server/gen/ui/entities/CardType/dialog-window/view.js","extensionPoint":"dirigible-bank-server-dialog-window","description":"dirigible-bank-server - Application Dialog Window"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/entities/CardType/tile-portal.extension b/dirigible-bank-server/gen/ui/entities/CardType/tile-portal.extension deleted file mode 100644 index 238bb2e..0000000 --- a/dirigible-bank-server/gen/ui/entities/CardType/tile-portal.extension +++ /dev/null @@ -1 +0,0 @@ -{"module":"dirigible-bank-server/gen/ui/entities/CardType/tile.js","extensionPoint":"portal-tile","description":"dirigible-bank-server - Application Tile"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/entities/CardType/tile.extension b/dirigible-bank-server/gen/ui/entities/CardType/tile.extension deleted file mode 100644 index 4c9f5e7..0000000 --- a/dirigible-bank-server/gen/ui/entities/CardType/tile.extension +++ /dev/null @@ -1 +0,0 @@ -{"module":"dirigible-bank-server/gen/ui/entities/CardType/tile.js","extensionPoint":"dirigible-bank-server-tile","description":"dirigible-bank-server - Application Tile"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/entities/CardType/view.extension b/dirigible-bank-server/gen/ui/entities/CardType/view.extension deleted file mode 100644 index c3c9c2c..0000000 --- a/dirigible-bank-server/gen/ui/entities/CardType/view.extension +++ /dev/null @@ -1 +0,0 @@ -{"module":"dirigible-bank-server/gen/ui/entities/CardType/view.js","extensionPoint":"dirigible-bank-server-view","description":"dirigible-bank-server - Application View"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/entities/perspective-portal.extension b/dirigible-bank-server/gen/ui/entities/perspective-portal.extension deleted file mode 100644 index 39f51a9..0000000 --- a/dirigible-bank-server/gen/ui/entities/perspective-portal.extension +++ /dev/null @@ -1 +0,0 @@ -{"module":"dirigible-bank-server/gen/ui/entities/perspective.js","extensionPoint":"portal","description":"dirigible-bank-server - Perspective - entities"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/entities/perspective.extension b/dirigible-bank-server/gen/ui/entities/perspective.extension deleted file mode 100644 index ee701a1..0000000 --- a/dirigible-bank-server/gen/ui/entities/perspective.extension +++ /dev/null @@ -1 +0,0 @@ -{"module":"dirigible-bank-server/gen/ui/entities/perspective.js","extensionPoint":"dirigible-bank-server","description":"dirigible-bank-server - Perspective - entities"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/launchpad/Home/controller.js b/dirigible-bank-server/gen/ui/launchpad/Home/controller.js deleted file mode 100644 index 7e002a3..0000000 --- a/dirigible-bank-server/gen/ui/launchpad/Home/controller.js +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Generated by Eclipse Dirigible based on model and template. - * - * Do not modify the content as it may be re-generated again. - */ -angular.module('page', ["ideUI", "ideView", "entityApi"]) - .config(["messageHubProvider", function (messageHubProvider) { - messageHubProvider.eventIdPrefix = 'dirigible-bank-server.launchpad.Home'; - }]) - .config(["entityApiProvider", function (entityApiProvider) { - entityApiProvider.baseUrl = "/services/js/dirigible-bank-server/gen/ui/launchpad/Home/tiles.js"; - }]) - .controller('PageController', ['$scope', 'messageHub', 'entityApi', function ($scope, messageHub, entityApi) { - - $scope.openView = function (location) { - messageHub.postMessage("openView", { - location: location - }); - } - - entityApi.list().then(function (response) { - if (response.status != 200) { - messageHub.showAlertError("Home", `Unable to get Home Launchpad: '${response.message}'`); - return; - } - $scope.data = response.data; - $scope.groups = Object.keys(response.data); - }); - - }]); diff --git a/dirigible-bank-server/gen/ui/launchpad/Home/index.html b/dirigible-bank-server/gen/ui/launchpad/Home/index.html deleted file mode 100644 index 76d61eb..0000000 --- a/dirigible-bank-server/gen/ui/launchpad/Home/index.html +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - - - - - - - - - - - - - - -
-
-

PI Smart Server

-
-

Server

-
- - - -

- {{group.replaceAll('-', ' ').replaceAll('_', ' ')}} -

-
- -
-
-
- - - - {{next.name}} - - - - -
-
-
Description -
-
-
- {{next.caption}} -
-
-
-
-
-
- -
-
-
-
-
-
-
-
- -
-

- The technology platform used for project dirigible-bank-server is - Eclipse Dirigible. - All the source code is licensed under the Eclipse Public License - v 2.0 and - maintained at GitHub. -

-
- - - - diff --git a/dirigible-bank-server/gen/ui/launchpad/Home/tiles.js b/dirigible-bank-server/gen/ui/launchpad/Home/tiles.js deleted file mode 100644 index b4541f0..0000000 --- a/dirigible-bank-server/gen/ui/launchpad/Home/tiles.js +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Generated by Eclipse Dirigible based on model and template. - * - * Do not modify the content as it may be re-generated again. - */ -import { response } from "sdk/http"; -import { extensions } from "sdk/extensions"; -import { user } from "sdk/security"; - -let tiles = {}; - -let tileExtensions = await extensions.loadExtensionModules("dirigible-bank-server-tile"); -for (let i = 0; i < tileExtensions?.length; i++) { - let tile = tileExtensions[i].getTile(); - - - let hasRoles = true; - if (tile.roles && Array.isArray(tile.roles)) { - for (const next of tile.roles) { - if (!user.isInRole(next)) { - hasRoles = false; - break; - } - } - } - if (!tile || (tile.role && !user.isInRole(tile.role)) || !hasRoles) { - continue; - } - if (!tiles[tile.group]) { - tiles[tile.group] = []; - } - tiles[tile.group].push({ - name: tile.name, - location: tile.location, - caption: tile.caption, - tooltip: tile.tooltip, - order: parseInt(tile.order), - groupOrder: parseInt(tile.groupOrder) - }); -} - -for (let next in tiles) { - tiles[next] = tiles[next].sort((a, b) => a.order - b.order); -} - -let sortedGroups = []; -for (let next in tiles) { - sortedGroups.push({ - name: next, - order: tiles[next][0] && tiles[next][0].groupOrder ? tiles[next][0].groupOrder : 100, - tiles: tiles[next] - }); -} -sortedGroups = sortedGroups.sort((a, b) => a.order - b.order); - -let sortedTiles = {}; -for (let i = 0; i < sortedGroups.length; i++) { - sortedTiles[sortedGroups[i].name] = sortedGroups[i].tiles; -} -response.setContentType("application/json"); -response.println(JSON.stringify(sortedTiles)); \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/launchpad/menu-help.extension b/dirigible-bank-server/gen/ui/launchpad/menu-help.extension deleted file mode 100644 index e31b935..0000000 --- a/dirigible-bank-server/gen/ui/launchpad/menu-help.extension +++ /dev/null @@ -1 +0,0 @@ -{"module":"dirigible-bank-server/gen/ui/launchpad/menu-help.js","extensionPoint":"dirigible-bank-server-menu","description":"dirigible-bank-server - Application Menu"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/launchpad/perspective.extension b/dirigible-bank-server/gen/ui/launchpad/perspective.extension deleted file mode 100644 index 544bce6..0000000 --- a/dirigible-bank-server/gen/ui/launchpad/perspective.extension +++ /dev/null @@ -1 +0,0 @@ -{"module":"dirigible-bank-server/gen/ui/launchpad/perspective.js","extensionPoint":"dirigible-bank-server","description":"dirigible-bank-server - Application Perspective"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/transactions/Transactions/dialog-filter/view.extension b/dirigible-bank-server/gen/ui/transactions/Transactions/dialog-filter/view.extension deleted file mode 100644 index c48f6ca..0000000 --- a/dirigible-bank-server/gen/ui/transactions/Transactions/dialog-filter/view.extension +++ /dev/null @@ -1,5 +0,0 @@ -{ - "module": "dirigible-bank-server/gen/ui/transactions/Transactions/dialog-filter/view.js", - "extensionPoint": "dirigible-bank-server-dialog-window", - "description": "dirigible-bank-server - Application Dialog Window" -} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/transactions/Transactions/dialog-window/view.extension b/dirigible-bank-server/gen/ui/transactions/Transactions/dialog-window/view.extension deleted file mode 100644 index ee66099..0000000 --- a/dirigible-bank-server/gen/ui/transactions/Transactions/dialog-window/view.extension +++ /dev/null @@ -1 +0,0 @@ -{"module":"dirigible-bank-server/gen/ui/transactions/Transactions/dialog-window/view.js","extensionPoint":"dirigible-bank-server-dialog-window","description":"dirigible-bank-server - Application Dialog Window"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/transactions/Transactions/tile-portal.extension b/dirigible-bank-server/gen/ui/transactions/Transactions/tile-portal.extension deleted file mode 100644 index 03c38cb..0000000 --- a/dirigible-bank-server/gen/ui/transactions/Transactions/tile-portal.extension +++ /dev/null @@ -1 +0,0 @@ -{"module":"dirigible-bank-server/gen/ui/transactions/Transactions/tile.js","extensionPoint":"portal-tile","description":"dirigible-bank-server - Application Tile"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/transactions/Transactions/tile.extension b/dirigible-bank-server/gen/ui/transactions/Transactions/tile.extension deleted file mode 100644 index 67637e7..0000000 --- a/dirigible-bank-server/gen/ui/transactions/Transactions/tile.extension +++ /dev/null @@ -1 +0,0 @@ -{"module":"dirigible-bank-server/gen/ui/transactions/Transactions/tile.js","extensionPoint":"dirigible-bank-server-tile","description":"dirigible-bank-server - Application Tile"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/transactions/Transactions/view.extension b/dirigible-bank-server/gen/ui/transactions/Transactions/view.extension deleted file mode 100644 index b3f18d2..0000000 --- a/dirigible-bank-server/gen/ui/transactions/Transactions/view.extension +++ /dev/null @@ -1 +0,0 @@ -{"module":"dirigible-bank-server/gen/ui/transactions/Transactions/view.js","extensionPoint":"dirigible-bank-server-view","description":"dirigible-bank-server - Application View"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/transactions/perspective-portal.extension b/dirigible-bank-server/gen/ui/transactions/perspective-portal.extension deleted file mode 100644 index 4f41aab..0000000 --- a/dirigible-bank-server/gen/ui/transactions/perspective-portal.extension +++ /dev/null @@ -1 +0,0 @@ -{"module":"dirigible-bank-server/gen/ui/transactions/perspective.js","extensionPoint":"portal","description":"dirigible-bank-server - Perspective - transactions"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/transactions/perspective.extension b/dirigible-bank-server/gen/ui/transactions/perspective.extension deleted file mode 100644 index 67d2028..0000000 --- a/dirigible-bank-server/gen/ui/transactions/perspective.extension +++ /dev/null @@ -1 +0,0 @@ -{"module":"dirigible-bank-server/gen/ui/transactions/perspective.js","extensionPoint":"dirigible-bank-server","description":"dirigible-bank-server - Perspective - transactions"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/transactions/perspective.js b/dirigible-bank-server/gen/ui/transactions/perspective.js deleted file mode 100644 index 0a0fcab..0000000 --- a/dirigible-bank-server/gen/ui/transactions/perspective.js +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Generated by Eclipse Dirigible based on model and template. - * - * Do not modify the content as it may be re-generated again. - */ -const perspectiveData = { - id: "transactions", - name: "transactions", - link: "/services/web/dirigible-bank-server/gen/ui/transactions/index.html", - order: "90", - icon: "/services/web/resources/unicons/bill.svg", -}; - -if (typeof exports !== 'undefined') { - exports.getPerspective = function () { - return perspectiveData; - } -} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/users/Users/dialog-filter/view.extension b/dirigible-bank-server/gen/ui/users/Users/dialog-filter/view.extension deleted file mode 100644 index eb9f07a..0000000 --- a/dirigible-bank-server/gen/ui/users/Users/dialog-filter/view.extension +++ /dev/null @@ -1,5 +0,0 @@ -{ - "module": "dirigible-bank-server/gen/ui/users/Users/dialog-filter/view.js", - "extensionPoint": "dirigible-bank-server-dialog-window", - "description": "dirigible-bank-server - Application Dialog Window" -} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/users/Users/dialog-window/view.extension b/dirigible-bank-server/gen/ui/users/Users/dialog-window/view.extension deleted file mode 100644 index a388119..0000000 --- a/dirigible-bank-server/gen/ui/users/Users/dialog-window/view.extension +++ /dev/null @@ -1 +0,0 @@ -{"module":"dirigible-bank-server/gen/ui/users/Users/dialog-window/view.js","extensionPoint":"dirigible-bank-server-dialog-window","description":"dirigible-bank-server - Application Dialog Window"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/users/Users/tile-portal.extension b/dirigible-bank-server/gen/ui/users/Users/tile-portal.extension deleted file mode 100644 index 06cb369..0000000 --- a/dirigible-bank-server/gen/ui/users/Users/tile-portal.extension +++ /dev/null @@ -1 +0,0 @@ -{"module":"dirigible-bank-server/gen/ui/users/Users/tile.js","extensionPoint":"portal-tile","description":"dirigible-bank-server - Application Tile"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/users/Users/tile.extension b/dirigible-bank-server/gen/ui/users/Users/tile.extension deleted file mode 100644 index 6e6093a..0000000 --- a/dirigible-bank-server/gen/ui/users/Users/tile.extension +++ /dev/null @@ -1 +0,0 @@ -{"module":"dirigible-bank-server/gen/ui/users/Users/tile.js","extensionPoint":"dirigible-bank-server-tile","description":"dirigible-bank-server - Application Tile"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/users/Users/view.extension b/dirigible-bank-server/gen/ui/users/Users/view.extension deleted file mode 100644 index 52a99df..0000000 --- a/dirigible-bank-server/gen/ui/users/Users/view.extension +++ /dev/null @@ -1 +0,0 @@ -{"module":"dirigible-bank-server/gen/ui/users/Users/view.js","extensionPoint":"dirigible-bank-server-view","description":"dirigible-bank-server - Application View"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/users/index.html b/dirigible-bank-server/gen/ui/users/index.html deleted file mode 100644 index f6b6f06..0000000 --- a/dirigible-bank-server/gen/ui/users/index.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/dirigible-bank-server/gen/ui/users/perspective-portal.extension b/dirigible-bank-server/gen/ui/users/perspective-portal.extension deleted file mode 100644 index e068bd0..0000000 --- a/dirigible-bank-server/gen/ui/users/perspective-portal.extension +++ /dev/null @@ -1 +0,0 @@ -{"module":"dirigible-bank-server/gen/ui/users/perspective.js","extensionPoint":"portal","description":"dirigible-bank-server - Perspective - users"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/users/perspective.extension b/dirigible-bank-server/gen/ui/users/perspective.extension deleted file mode 100644 index 5266f42..0000000 --- a/dirigible-bank-server/gen/ui/users/perspective.extension +++ /dev/null @@ -1 +0,0 @@ -{"module":"dirigible-bank-server/gen/ui/users/perspective.js","extensionPoint":"dirigible-bank-server","description":"dirigible-bank-server - Perspective - users"} \ No newline at end of file diff --git a/dirigible-bank-server/gen/ui/users/perspective.js b/dirigible-bank-server/gen/ui/users/perspective.js deleted file mode 100644 index 852214f..0000000 --- a/dirigible-bank-server/gen/ui/users/perspective.js +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Generated by Eclipse Dirigible based on model and template. - * - * Do not modify the content as it may be re-generated again. - */ -const perspectiveData = { - id: "users", - name: "users", - link: "/services/web/dirigible-bank-server/gen/ui/users/index.html", - order: "40", - icon: "/services/web/resources/unicons/user-circle.svg", -}; - -if (typeof exports !== 'undefined') { - exports.getPerspective = function () { - return perspectiveData; - } -} \ No newline at end of file diff --git a/dirigible-bank-server/project.json b/dirigible-bank-server/project.json index 93267c8..e48bbd6 100644 --- a/dirigible-bank-server/project.json +++ b/dirigible-bank-server/project.json @@ -1,19 +1,6 @@ { "guid": "dirigible-bank-server", - "dependencies": [ - { - "guid": "codbex-countries", - "type": "git", - "url": "https://github.com/codbex/codbex-countries.git", - "branch": "main" - }, - { - "guid": "codbex-currencies", - "type": "git", - "url": "https://github.com/codbex/codbex-currencies.git", - "branch": "main" - } - ], + "dependencies": [], "actions": [ { "name": "Build TypeScript", diff --git a/dirigible-bank-server/tsconfig.json b/dirigible-bank-server/tsconfig.json index 94e7489..9b957e3 100644 --- a/dirigible-bank-server/tsconfig.json +++ b/dirigible-bank-server/tsconfig.json @@ -3,13 +3,17 @@ "module": "ESNext", "target": "ES6", "moduleResolution": "Node", + "baseUrl": "../", "lib": [ "ESNext", "DOM" ], "paths": { "sdk/*": [ - "../modules/src/*" + "./modules/src/*" + ], + "/*": [ + "./*" ] }, "types": [