rez_core 2.0.87 → 2.0.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app.controller.d.ts +6 -0
- package/dist/app.controller.js +34 -0
- package/dist/app.controller.js.map +1 -0
- package/dist/app.module.d.ts +2 -0
- package/dist/app.module.js +48 -0
- package/dist/app.module.js.map +1 -0
- package/dist/app.service.d.ts +3 -0
- package/dist/app.service.js +20 -0
- package/dist/app.service.js.map +1 -0
- package/dist/config/config.module.d.ts +2 -0
- package/dist/config/config.module.js +29 -0
- package/dist/config/config.module.js.map +1 -0
- package/dist/config/database.config.d.ts +7 -0
- package/dist/config/database.config.js +38 -0
- package/dist/config/database.config.js.map +1 -0
- package/dist/constant/global.constant.d.ts +26 -0
- package/dist/constant/global.constant.js +30 -0
- package/dist/constant/global.constant.js.map +1 -0
- package/dist/core.module.d.ts +4 -0
- package/dist/core.module.js +70 -0
- package/dist/core.module.js.map +1 -0
- package/dist/decorators/roles.decorator.d.ts +1 -0
- package/dist/decorators/roles.decorator.js +7 -0
- package/dist/decorators/roles.decorator.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +38 -0
- package/dist/main.js.map +1 -0
- package/dist/module/auth/auth.module.d.ts +2 -0
- package/dist/module/auth/auth.module.js +53 -0
- package/dist/module/auth/auth.module.js.map +1 -0
- package/dist/module/auth/guards/google-auth.guard.d.ts +6 -0
- package/dist/module/auth/guards/google-auth.guard.js +21 -0
- package/dist/module/auth/guards/google-auth.guard.js.map +1 -0
- package/dist/module/auth/guards/jwt.guard.d.ts +10 -0
- package/dist/module/auth/guards/jwt.guard.js +36 -0
- package/dist/module/auth/guards/jwt.guard.js.map +1 -0
- package/dist/module/auth/guards/role.guard.d.ts +9 -0
- package/dist/module/auth/guards/role.guard.js +59 -0
- package/dist/module/auth/guards/role.guard.js.map +1 -0
- package/dist/module/auth/services/auth.service.d.ts +12 -0
- package/dist/module/auth/services/auth.service.js +43 -0
- package/dist/module/auth/services/auth.service.js.map +1 -0
- package/dist/module/auth/services/jwt.service.d.ts +6 -0
- package/dist/module/auth/services/jwt.service.js +28 -0
- package/dist/module/auth/services/jwt.service.js.map +1 -0
- package/dist/module/auth/strategies/google.strategy.d.ts +8 -0
- package/dist/module/auth/strategies/google.strategy.js +45 -0
- package/dist/module/auth/strategies/google.strategy.js.map +1 -0
- package/dist/module/auth/strategies/jwt.strategy.d.ts +19 -0
- package/dist/module/auth/strategies/jwt.strategy.js +46 -0
- package/dist/module/auth/strategies/jwt.strategy.js.map +1 -0
- package/dist/module/auth/strategies/local.strategy.d.ts +7 -0
- package/dist/module/auth/strategies/local.strategy.js +30 -0
- package/dist/module/auth/strategies/local.strategy.js.map +1 -0
- package/dist/module/dev/dev.module.d.ts +2 -0
- package/dist/module/dev/dev.module.js +25 -0
- package/dist/module/dev/dev.module.js.map +1 -0
- package/dist/module/dev/service/dev.service.d.ts +5 -0
- package/dist/module/dev/service/dev.service.js +25 -0
- package/dist/module/dev/service/dev.service.js.map +1 -0
- package/dist/module/enterprise/controller/organization.controller.d.ts +14 -0
- package/dist/module/enterprise/controller/organization.controller.js +58 -0
- package/dist/module/enterprise/controller/organization.controller.js.map +1 -0
- package/dist/module/enterprise/enterprise.module.d.ts +2 -0
- package/dist/module/enterprise/enterprise.module.js +48 -0
- package/dist/module/enterprise/enterprise.module.js.map +1 -0
- package/dist/module/enterprise/entity/brand.entity.d.ts +4 -0
- package/dist/module/enterprise/entity/brand.entity.js +25 -0
- package/dist/module/enterprise/entity/brand.entity.js.map +1 -0
- package/dist/module/enterprise/entity/enterprise.entity.d.ts +13 -0
- package/dist/module/enterprise/entity/enterprise.entity.js +64 -0
- package/dist/module/enterprise/entity/enterprise.entity.js.map +1 -0
- package/dist/module/enterprise/entity/organization-app-mapping.entity.d.ts +5 -0
- package/dist/module/enterprise/entity/organization-app-mapping.entity.js +32 -0
- package/dist/module/enterprise/entity/organization-app-mapping.entity.js.map +1 -0
- package/dist/module/enterprise/entity/organization.entity.d.ts +28 -0
- package/dist/module/enterprise/entity/organization.entity.js +128 -0
- package/dist/module/enterprise/entity/organization.entity.js.map +1 -0
- package/dist/module/enterprise/entity/school.entity.d.ts +7 -0
- package/dist/module/enterprise/entity/school.entity.js +37 -0
- package/dist/module/enterprise/entity/school.entity.js.map +1 -0
- package/dist/module/enterprise/repository/brand.repository.d.ts +8 -0
- package/dist/module/enterprise/repository/brand.repository.js +39 -0
- package/dist/module/enterprise/repository/brand.repository.js.map +1 -0
- package/dist/module/enterprise/repository/enterprise.repository.d.ts +8 -0
- package/dist/module/enterprise/repository/enterprise.repository.js +48 -0
- package/dist/module/enterprise/repository/enterprise.repository.js.map +1 -0
- package/dist/module/enterprise/repository/school.repository.d.ts +10 -0
- package/dist/module/enterprise/repository/school.repository.js +159 -0
- package/dist/module/enterprise/repository/school.repository.js.map +1 -0
- package/dist/module/enterprise/service/enterprise.service.d.ts +8 -0
- package/dist/module/enterprise/service/enterprise.service.js +31 -0
- package/dist/module/enterprise/service/enterprise.service.js.map +1 -0
- package/dist/module/enterprise/service/organization-app-mapping.service.d.ts +2 -0
- package/dist/module/enterprise/service/organization-app-mapping.service.js +17 -0
- package/dist/module/enterprise/service/organization-app-mapping.service.js.map +1 -0
- package/dist/module/enterprise/service/organization.service.d.ts +21 -0
- package/dist/module/enterprise/service/organization.service.js +85 -0
- package/dist/module/enterprise/service/organization.service.js.map +1 -0
- package/dist/module/filter/controller/filter.controller.d.ts +29 -0
- package/dist/module/filter/controller/filter.controller.js +70 -0
- package/dist/module/filter/controller/filter.controller.js.map +1 -0
- package/dist/module/filter/dto/filter-request.dto.d.ts +26 -0
- package/dist/module/filter/dto/filter-request.dto.js +3 -0
- package/dist/module/filter/dto/filter-request.dto.js.map +1 -0
- package/dist/module/filter/entity/saved-filter-detail.entity.d.ts +8 -0
- package/dist/module/filter/entity/saved-filter-detail.entity.js +43 -0
- package/dist/module/filter/entity/saved-filter-detail.entity.js.map +1 -0
- package/dist/module/filter/entity/saved-filter-master.entity.d.ts +7 -0
- package/dist/module/filter/entity/saved-filter-master.entity.js +39 -0
- package/dist/module/filter/entity/saved-filter-master.entity.js.map +1 -0
- package/dist/module/filter/filter.module.d.ts +2 -0
- package/dist/module/filter/filter.module.js +37 -0
- package/dist/module/filter/filter.module.js.map +1 -0
- package/dist/module/filter/repository/saved-filter.repository.d.ts +26 -0
- package/dist/module/filter/repository/saved-filter.repository.js +102 -0
- package/dist/module/filter/repository/saved-filter.repository.js.map +1 -0
- package/dist/module/filter/service/filter.service.d.ts +43 -0
- package/dist/module/filter/service/filter.service.js +356 -0
- package/dist/module/filter/service/filter.service.js.map +1 -0
- package/dist/module/filter/service/saved-filter.service.d.ts +17 -0
- package/dist/module/filter/service/saved-filter.service.js +77 -0
- package/dist/module/filter/service/saved-filter.service.js.map +1 -0
- package/dist/module/layout/controller/layout.controller.d.ts +11 -0
- package/dist/module/layout/controller/layout.controller.js +59 -0
- package/dist/module/layout/controller/layout.controller.js.map +1 -0
- package/dist/module/layout/dto/header.dto.d.ts +0 -0
- package/dist/module/layout/dto/header.dto.js +1 -0
- package/dist/module/layout/dto/header.dto.js.map +1 -0
- package/dist/module/layout/entity/header-items.entity.d.ts +10 -0
- package/dist/module/layout/entity/header-items.entity.js +52 -0
- package/dist/module/layout/entity/header-items.entity.js.map +1 -0
- package/dist/module/layout/entity/header-section.entity.d.ts +7 -0
- package/dist/module/layout/entity/header-section.entity.js +40 -0
- package/dist/module/layout/entity/header-section.entity.js.map +1 -0
- package/dist/module/layout/layout.module.d.ts +2 -0
- package/dist/module/layout/layout.module.js +34 -0
- package/dist/module/layout/layout.module.js.map +1 -0
- package/dist/module/layout/repository/header-items.repository.d.ts +7 -0
- package/dist/module/layout/repository/header-items.repository.js +36 -0
- package/dist/module/layout/repository/header-items.repository.js.map +1 -0
- package/dist/module/layout/repository/header-section.repository.d.ts +8 -0
- package/dist/module/layout/repository/header-section.repository.js +39 -0
- package/dist/module/layout/repository/header-section.repository.js.map +1 -0
- package/dist/module/layout/service/header-section.service.d.ts +8 -0
- package/dist/module/layout/service/header-section.service.js +37 -0
- package/dist/module/layout/service/header-section.service.js.map +1 -0
- package/dist/module/layout_preference/controller/layout_preference.controller.d.ts +11 -0
- package/dist/module/layout_preference/controller/layout_preference.controller.js +58 -0
- package/dist/module/layout_preference/controller/layout_preference.controller.js.map +1 -0
- package/dist/module/layout_preference/dto/layout_preference.dto.d.ts +0 -0
- package/dist/module/layout_preference/dto/layout_preference.dto.js +1 -0
- package/dist/module/layout_preference/dto/layout_preference.dto.js.map +1 -0
- package/dist/module/layout_preference/entity/layout_preference.entity.d.ts +6 -0
- package/dist/module/layout_preference/entity/layout_preference.entity.js +33 -0
- package/dist/module/layout_preference/entity/layout_preference.entity.js.map +1 -0
- package/dist/module/layout_preference/layout_preference.module.d.ts +2 -0
- package/dist/module/layout_preference/layout_preference.module.js +31 -0
- package/dist/module/layout_preference/layout_preference.module.js.map +1 -0
- package/dist/module/layout_preference/repository/layout_preference.repository.d.ts +7 -0
- package/dist/module/layout_preference/repository/layout_preference.repository.js +39 -0
- package/dist/module/layout_preference/repository/layout_preference.repository.js.map +1 -0
- package/dist/module/layout_preference/service/layout_preference.service.d.ts +13 -0
- package/dist/module/layout_preference/service/layout_preference.service.js +78 -0
- package/dist/module/layout_preference/service/layout_preference.service.js.map +1 -0
- package/dist/module/lead/controller/lead.controller.d.ts +20 -0
- package/dist/module/lead/controller/lead.controller.js +58 -0
- package/dist/module/lead/controller/lead.controller.js.map +1 -0
- package/dist/module/lead/lead.module.d.ts +2 -0
- package/dist/module/lead/lead.module.js +30 -0
- package/dist/module/lead/lead.module.js.map +1 -0
- package/dist/module/lead/repository/lead.repository.d.ts +13 -0
- package/dist/module/lead/repository/lead.repository.js +52 -0
- package/dist/module/lead/repository/lead.repository.js.map +1 -0
- package/dist/module/lead/service/lead.service.d.ts +20 -0
- package/dist/module/lead/service/lead.service.js +55 -0
- package/dist/module/lead/service/lead.service.js.map +1 -0
- package/dist/module/listmaster/controller/list-master.controller.d.ts +9 -0
- package/dist/module/listmaster/controller/list-master.controller.js +40 -0
- package/dist/module/listmaster/controller/list-master.controller.js.map +1 -0
- package/dist/module/listmaster/entity/list-master-items.entity.d.ts +12 -0
- package/dist/module/listmaster/entity/list-master-items.entity.js +59 -0
- package/dist/module/listmaster/entity/list-master-items.entity.js.map +1 -0
- package/dist/module/listmaster/entity/list-master.entity.d.ts +10 -0
- package/dist/module/listmaster/entity/list-master.entity.js +51 -0
- package/dist/module/listmaster/entity/list-master.entity.js.map +1 -0
- package/dist/module/listmaster/listmaster.module.d.ts +2 -0
- package/dist/module/listmaster/listmaster.module.js +32 -0
- package/dist/module/listmaster/listmaster.module.js.map +1 -0
- package/dist/module/listmaster/repository/list-master-items.repository.d.ts +10 -0
- package/dist/module/listmaster/repository/list-master-items.repository.js +38 -0
- package/dist/module/listmaster/repository/list-master-items.repository.js.map +1 -0
- package/dist/module/listmaster/repository/list-master.repository.d.ts +7 -0
- package/dist/module/listmaster/repository/list-master.repository.js +34 -0
- package/dist/module/listmaster/repository/list-master.repository.js.map +1 -0
- package/dist/module/listmaster/service/list-master.service.d.ts +23 -0
- package/dist/module/listmaster/service/list-master.service.js +117 -0
- package/dist/module/listmaster/service/list-master.service.js.map +1 -0
- package/dist/module/master/controller/master.controller.d.ts +18 -0
- package/dist/module/master/controller/master.controller.js +80 -0
- package/dist/module/master/controller/master.controller.js.map +1 -0
- package/dist/module/master/service/master.service.d.ts +35 -0
- package/dist/module/master/service/master.service.js +402 -0
- package/dist/module/master/service/master.service.js.map +1 -0
- package/dist/module/meta/controller/app-master.controller.d.ts +9 -0
- package/dist/module/meta/controller/app-master.controller.js +51 -0
- package/dist/module/meta/controller/app-master.controller.js.map +1 -0
- package/dist/module/meta/controller/entity.controller.d.ts +20 -0
- package/dist/module/meta/controller/entity.controller.js +164 -0
- package/dist/module/meta/controller/entity.controller.js.map +1 -0
- package/dist/module/meta/controller/media.controller.d.ts +13 -0
- package/dist/module/meta/controller/media.controller.js +73 -0
- package/dist/module/meta/controller/media.controller.js.map +1 -0
- package/dist/module/meta/controller/meta.controller.d.ts +9 -0
- package/dist/module/meta/controller/meta.controller.js +49 -0
- package/dist/module/meta/controller/meta.controller.js.map +1 -0
- package/dist/module/meta/controller/view-master.controller.d.ts +7 -0
- package/dist/module/meta/controller/view-master.controller.js +62 -0
- package/dist/module/meta/controller/view-master.controller.js.map +1 -0
- package/dist/module/meta/dto/entity-list-data.dto.d.ts +5 -0
- package/dist/module/meta/dto/entity-list-data.dto.js +7 -0
- package/dist/module/meta/dto/entity-list-data.dto.js.map +1 -0
- package/dist/module/meta/dto/entity-tab.dto.d.ts +4 -0
- package/dist/module/meta/dto/entity-tab.dto.js +7 -0
- package/dist/module/meta/dto/entity-tab.dto.js.map +1 -0
- package/dist/module/meta/dto/entity-table.dto.d.ts +11 -0
- package/dist/module/meta/dto/entity-table.dto.js +8 -0
- package/dist/module/meta/dto/entity-table.dto.js.map +1 -0
- package/dist/module/meta/entity/app-master.entity.d.ts +11 -0
- package/dist/module/meta/entity/app-master.entity.js +54 -0
- package/dist/module/meta/entity/app-master.entity.js.map +1 -0
- package/dist/module/meta/entity/attribute-master.entity.d.ts +19 -0
- package/dist/module/meta/entity/attribute-master.entity.js +105 -0
- package/dist/module/meta/entity/attribute-master.entity.js.map +1 -0
- package/dist/module/meta/entity/base-entity.entity.d.ts +19 -0
- package/dist/module/meta/entity/base-entity.entity.js +104 -0
- package/dist/module/meta/entity/base-entity.entity.js.map +1 -0
- package/dist/module/meta/entity/entity-master.entity.d.ts +13 -0
- package/dist/module/meta/entity/entity-master.entity.js +88 -0
- package/dist/module/meta/entity/entity-master.entity.js.map +1 -0
- package/dist/module/meta/entity/entity-table-column.entity.d.ts +16 -0
- package/dist/module/meta/entity/entity-table-column.entity.js +80 -0
- package/dist/module/meta/entity/entity-table-column.entity.js.map +1 -0
- package/dist/module/meta/entity/entity-table.entity.d.ts +17 -0
- package/dist/module/meta/entity/entity-table.entity.js +79 -0
- package/dist/module/meta/entity/entity-table.entity.js.map +1 -0
- package/dist/module/meta/entity/field-group.entity.d.ts +9 -0
- package/dist/module/meta/entity/field-group.entity.js +47 -0
- package/dist/module/meta/entity/field-group.entity.js.map +1 -0
- package/dist/module/meta/entity/media-data.entity.d.ts +11 -0
- package/dist/module/meta/entity/media-data.entity.js +55 -0
- package/dist/module/meta/entity/media-data.entity.js.map +1 -0
- package/dist/module/meta/entity/preference.entity.d.ts +11 -0
- package/dist/module/meta/entity/preference.entity.js +85 -0
- package/dist/module/meta/entity/preference.entity.js.map +1 -0
- package/dist/module/meta/entity/school.entity.d.ts +8 -0
- package/dist/module/meta/entity/school.entity.js +44 -0
- package/dist/module/meta/entity/school.entity.js.map +1 -0
- package/dist/module/meta/entity/schoolAddress.entity.d.ts +9 -0
- package/dist/module/meta/entity/schoolAddress.entity.js +48 -0
- package/dist/module/meta/entity/schoolAddress.entity.js.map +1 -0
- package/dist/module/meta/entity/section-master.entity.d.ts +10 -0
- package/dist/module/meta/entity/section-master.entity.js +51 -0
- package/dist/module/meta/entity/section-master.entity.js.map +1 -0
- package/dist/module/meta/entity/user-app-mapping.entity.d.ts +7 -0
- package/dist/module/meta/entity/user-app-mapping.entity.js +41 -0
- package/dist/module/meta/entity/user-app-mapping.entity.js.map +1 -0
- package/dist/module/meta/entity/view-master.entity.d.ts +12 -0
- package/dist/module/meta/entity/view-master.entity.js +59 -0
- package/dist/module/meta/entity/view-master.entity.js.map +1 -0
- package/dist/module/meta/entity.module.d.ts +2 -0
- package/dist/module/meta/entity.module.js +138 -0
- package/dist/module/meta/entity.module.js.map +1 -0
- package/dist/module/meta/repository/app-master.repository.d.ts +7 -0
- package/dist/module/meta/repository/app-master.repository.js +36 -0
- package/dist/module/meta/repository/app-master.repository.js.map +1 -0
- package/dist/module/meta/repository/attribute-master.repository.d.ts +8 -0
- package/dist/module/meta/repository/attribute-master.repository.js +48 -0
- package/dist/module/meta/repository/attribute-master.repository.js.map +1 -0
- package/dist/module/meta/repository/entity-table-column.repository.d.ts +7 -0
- package/dist/module/meta/repository/entity-table-column.repository.js +50 -0
- package/dist/module/meta/repository/entity-table-column.repository.js.map +1 -0
- package/dist/module/meta/repository/entity-table.repository.d.ts +9 -0
- package/dist/module/meta/repository/entity-table.repository.js +51 -0
- package/dist/module/meta/repository/entity-table.repository.js.map +1 -0
- package/dist/module/meta/repository/media-data.repository.d.ts +9 -0
- package/dist/module/meta/repository/media-data.repository.js +55 -0
- package/dist/module/meta/repository/media-data.repository.js.map +1 -0
- package/dist/module/meta/repository/preference.repository.d.ts +7 -0
- package/dist/module/meta/repository/preference.repository.js +36 -0
- package/dist/module/meta/repository/preference.repository.js.map +1 -0
- package/dist/module/meta/repository/user-app-mapping.repository.d.ts +8 -0
- package/dist/module/meta/repository/user-app-mapping.repository.js +43 -0
- package/dist/module/meta/repository/user-app-mapping.repository.js.map +1 -0
- package/dist/module/meta/repository/view-master.repository.d.ts +7 -0
- package/dist/module/meta/repository/view-master.repository.js +38 -0
- package/dist/module/meta/repository/view-master.repository.js.map +1 -0
- package/dist/module/meta/service/app-master.service.d.ts +8 -0
- package/dist/module/meta/service/app-master.service.js +45 -0
- package/dist/module/meta/service/app-master.service.js.map +1 -0
- package/dist/module/meta/service/attribute-master.service.d.ts +6 -0
- package/dist/module/meta/service/attribute-master.service.js +28 -0
- package/dist/module/meta/service/attribute-master.service.js.map +1 -0
- package/dist/module/meta/service/entity-list.service.d.ts +17 -0
- package/dist/module/meta/service/entity-list.service.js +141 -0
- package/dist/module/meta/service/entity-list.service.js.map +1 -0
- package/dist/module/meta/service/entity-master.service.d.ts +11 -0
- package/dist/module/meta/service/entity-master.service.js +62 -0
- package/dist/module/meta/service/entity-master.service.js.map +1 -0
- package/dist/module/meta/service/entity-service-impl.service.d.ts +32 -0
- package/dist/module/meta/service/entity-service-impl.service.js +206 -0
- package/dist/module/meta/service/entity-service-impl.service.js.map +1 -0
- package/dist/module/meta/service/entity-table-column.service.d.ts +7 -0
- package/dist/module/meta/service/entity-table-column.service.js +37 -0
- package/dist/module/meta/service/entity-table-column.service.js.map +1 -0
- package/dist/module/meta/service/entity-table.service.d.ts +17 -0
- package/dist/module/meta/service/entity-table.service.js +83 -0
- package/dist/module/meta/service/entity-table.service.js.map +1 -0
- package/dist/module/meta/service/entity-validation.service.d.ts +21 -0
- package/dist/module/meta/service/entity-validation.service.js +109 -0
- package/dist/module/meta/service/entity-validation.service.js.map +1 -0
- package/dist/module/meta/service/entity.service.d.ts +14 -0
- package/dist/module/meta/service/entity.service.js +3 -0
- package/dist/module/meta/service/entity.service.js.map +1 -0
- package/dist/module/meta/service/field-group.service.d.ts +26 -0
- package/dist/module/meta/service/field-group.service.js +78 -0
- package/dist/module/meta/service/field-group.service.js.map +1 -0
- package/dist/module/meta/service/media-data.service.d.ts +29 -0
- package/dist/module/meta/service/media-data.service.js +108 -0
- package/dist/module/meta/service/media-data.service.js.map +1 -0
- package/dist/module/meta/service/preference.service.d.ts +7 -0
- package/dist/module/meta/service/preference.service.js +31 -0
- package/dist/module/meta/service/preference.service.js.map +1 -0
- package/dist/module/meta/service/section-master.service.d.ts +26 -0
- package/dist/module/meta/service/section-master.service.js +78 -0
- package/dist/module/meta/service/section-master.service.js.map +1 -0
- package/dist/module/meta/service/update-form-json.service.d.ts +9 -0
- package/dist/module/meta/service/update-form-json.service.js +39 -0
- package/dist/module/meta/service/update-form-json.service.js.map +1 -0
- package/dist/module/meta/service/user-app-mapping.service.d.ts +7 -0
- package/dist/module/meta/service/user-app-mapping.service.js +31 -0
- package/dist/module/meta/service/user-app-mapping.service.js.map +1 -0
- package/dist/module/meta/service/view-master.service.d.ts +25 -0
- package/dist/module/meta/service/view-master.service.js +83 -0
- package/dist/module/meta/service/view-master.service.js.map +1 -0
- package/dist/module/module/controller/menu.controller.d.ts +8 -0
- package/dist/module/module/controller/menu.controller.js +41 -0
- package/dist/module/module/controller/menu.controller.js.map +1 -0
- package/dist/module/module/controller/module-access.controller.d.ts +35 -0
- package/dist/module/module/controller/module-access.controller.js +114 -0
- package/dist/module/module/controller/module-access.controller.js.map +1 -0
- package/dist/module/module/entity/menu.entity.d.ts +15 -0
- package/dist/module/module/entity/menu.entity.js +72 -0
- package/dist/module/module/entity/menu.entity.js.map +1 -0
- package/dist/module/module/entity/module-access.entity.d.ts +9 -0
- package/dist/module/module/entity/module-access.entity.js +48 -0
- package/dist/module/module/entity/module-access.entity.js.map +1 -0
- package/dist/module/module/entity/module-action.entity.d.ts +6 -0
- package/dist/module/module/entity/module-action.entity.js +37 -0
- package/dist/module/module/entity/module-action.entity.js.map +1 -0
- package/dist/module/module/entity/module.entity.d.ts +18 -0
- package/dist/module/module/entity/module.entity.js +84 -0
- package/dist/module/module/entity/module.entity.js.map +1 -0
- package/dist/module/module/module.module.d.ts +2 -0
- package/dist/module/module/module.module.js +53 -0
- package/dist/module/module/module.module.js.map +1 -0
- package/dist/module/module/repository/menu.repository.d.ts +11 -0
- package/dist/module/module/repository/menu.repository.js +136 -0
- package/dist/module/module/repository/menu.repository.js.map +1 -0
- package/dist/module/module/repository/module-access.repository.d.ts +48 -0
- package/dist/module/module/repository/module-access.repository.js +171 -0
- package/dist/module/module/repository/module-access.repository.js.map +1 -0
- package/dist/module/module/service/menu.service.d.ts +12 -0
- package/dist/module/module/service/menu.service.js +59 -0
- package/dist/module/module/service/menu.service.js.map +1 -0
- package/dist/module/module/service/module-access.service.d.ts +46 -0
- package/dist/module/module/service/module-access.service.js +60 -0
- package/dist/module/module/service/module-access.service.js.map +1 -0
- package/dist/module/notification/controller/otp.controller.d.ts +17 -0
- package/dist/module/notification/controller/otp.controller.js +67 -0
- package/dist/module/notification/controller/otp.controller.js.map +1 -0
- package/dist/module/notification/entity/otp.entity.d.ts +10 -0
- package/dist/module/notification/entity/otp.entity.js +52 -0
- package/dist/module/notification/entity/otp.entity.js.map +1 -0
- package/dist/module/notification/notification.module.d.ts +2 -0
- package/dist/module/notification/notification.module.js +27 -0
- package/dist/module/notification/notification.module.js.map +1 -0
- package/dist/module/notification/repository/otp.repository.d.ts +9 -0
- package/dist/module/notification/repository/otp.repository.js +44 -0
- package/dist/module/notification/repository/otp.repository.js.map +1 -0
- package/dist/module/notification/service/otp.service.d.ts +16 -0
- package/dist/module/notification/service/otp.service.js +66 -0
- package/dist/module/notification/service/otp.service.js.map +1 -0
- package/dist/module/third-party-module/entity/third-party-api-registry.entity.d.ts +18 -0
- package/dist/module/third-party-module/entity/third-party-api-registry.entity.js +84 -0
- package/dist/module/third-party-module/entity/third-party-api-registry.entity.js.map +1 -0
- package/dist/module/third-party-module/repository/third-party-api-registry.repository.d.ts +7 -0
- package/dist/module/third-party-module/repository/third-party-api-registry.repository.js +38 -0
- package/dist/module/third-party-module/repository/third-party-api-registry.repository.js.map +1 -0
- package/dist/module/third-party-module/service/api-registry.service.d.ts +6 -0
- package/dist/module/third-party-module/service/api-registry.service.js +28 -0
- package/dist/module/third-party-module/service/api-registry.service.js.map +1 -0
- package/dist/module/third-party-module/third-party.module.d.ts +2 -0
- package/dist/module/third-party-module/third-party.module.js +25 -0
- package/dist/module/third-party-module/third-party.module.js.map +1 -0
- package/dist/module/user/controller/login.controller.d.ts +21 -0
- package/dist/module/user/controller/login.controller.js +95 -0
- package/dist/module/user/controller/login.controller.js.map +1 -0
- package/dist/module/user/controller/user.controller.d.ts +8 -0
- package/dist/module/user/controller/user.controller.js +42 -0
- package/dist/module/user/controller/user.controller.js.map +1 -0
- package/dist/module/user/dto/create-user.dto.d.ts +17 -0
- package/dist/module/user/dto/create-user.dto.js +64 -0
- package/dist/module/user/dto/create-user.dto.js.map +1 -0
- package/dist/module/user/dto/update-user.dto.d.ts +5 -0
- package/dist/module/user/dto/update-user.dto.js +9 -0
- package/dist/module/user/dto/update-user.dto.js.map +1 -0
- package/dist/module/user/entity/role.entity.d.ts +9 -0
- package/dist/module/user/entity/role.entity.js +48 -0
- package/dist/module/user/entity/role.entity.js.map +1 -0
- package/dist/module/user/entity/user-role-mapping.entity.d.ts +12 -0
- package/dist/module/user/entity/user-role-mapping.entity.js +63 -0
- package/dist/module/user/entity/user-role-mapping.entity.js.map +1 -0
- package/dist/module/user/entity/user-session.entity.d.ts +11 -0
- package/dist/module/user/entity/user-session.entity.js +86 -0
- package/dist/module/user/entity/user-session.entity.js.map +1 -0
- package/dist/module/user/entity/user.entity.d.ts +16 -0
- package/dist/module/user/entity/user.entity.js +75 -0
- package/dist/module/user/entity/user.entity.js.map +1 -0
- package/dist/module/user/repository/role.repository.d.ts +18 -0
- package/dist/module/user/repository/role.repository.js +87 -0
- package/dist/module/user/repository/role.repository.js.map +1 -0
- package/dist/module/user/repository/user-role-mapping.repository.d.ts +19 -0
- package/dist/module/user/repository/user-role-mapping.repository.js +102 -0
- package/dist/module/user/repository/user-role-mapping.repository.js.map +1 -0
- package/dist/module/user/repository/user.repository.d.ts +10 -0
- package/dist/module/user/repository/user.repository.js +61 -0
- package/dist/module/user/repository/user.repository.js.map +1 -0
- package/dist/module/user/repository/userSession.repository.d.ts +10 -0
- package/dist/module/user/repository/userSession.repository.js +45 -0
- package/dist/module/user/repository/userSession.repository.js.map +1 -0
- package/dist/module/user/service/login.service.d.ts +37 -0
- package/dist/module/user/service/login.service.js +128 -0
- package/dist/module/user/service/login.service.js.map +1 -0
- package/dist/module/user/service/role.service.d.ts +20 -0
- package/dist/module/user/service/role.service.js +126 -0
- package/dist/module/user/service/role.service.js.map +1 -0
- package/dist/module/user/service/user-role-mapping.service.d.ts +12 -0
- package/dist/module/user/service/user-role-mapping.service.js +60 -0
- package/dist/module/user/service/user-role-mapping.service.js.map +1 -0
- package/dist/module/user/service/user-session.service.d.ts +26 -0
- package/dist/module/user/service/user-session.service.js +91 -0
- package/dist/module/user/service/user-session.service.js.map +1 -0
- package/dist/module/user/service/user.service.d.ts +27 -0
- package/dist/module/user/service/user.service.js +185 -0
- package/dist/module/user/service/user.service.js.map +1 -0
- package/dist/module/user/user.module.d.ts +2 -0
- package/dist/module/user/user.module.js +72 -0
- package/dist/module/user/user.module.js.map +1 -0
- package/dist/resources/properties.module.d.ts +2 -0
- package/dist/resources/properties.module.js +25 -0
- package/dist/resources/properties.module.js.map +1 -0
- package/dist/resources/properties.yaml.d.ts +2 -0
- package/dist/resources/properties.yaml.js +10 -0
- package/dist/resources/properties.yaml.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/dist/utils/dto/excel-data.dto.d.ts +7 -0
- package/dist/utils/dto/excel-data.dto.js +16 -0
- package/dist/utils/dto/excel-data.dto.js.map +1 -0
- package/dist/utils/dto/excelsheet-data.dto.d.ts +5 -0
- package/dist/utils/dto/excelsheet-data.dto.js +3 -0
- package/dist/utils/dto/excelsheet-data.dto.js.map +1 -0
- package/dist/utils/service/base64util.service.d.ts +4 -0
- package/dist/utils/service/base64util.service.js +21 -0
- package/dist/utils/service/base64util.service.js.map +1 -0
- package/dist/utils/service/clockIDGenUtil.service.d.ts +8 -0
- package/dist/utils/service/clockIDGenUtil.service.js +32 -0
- package/dist/utils/service/clockIDGenUtil.service.js.map +1 -0
- package/dist/utils/service/dateUtil.service.d.ts +3 -0
- package/dist/utils/service/dateUtil.service.js +28 -0
- package/dist/utils/service/dateUtil.service.js.map +1 -0
- package/dist/utils/service/encryptUtil.service.d.ts +9 -0
- package/dist/utils/service/encryptUtil.service.js +112 -0
- package/dist/utils/service/encryptUtil.service.js.map +1 -0
- package/dist/utils/service/excel-helper.service.d.ts +9 -0
- package/dist/utils/service/excel-helper.service.js +53 -0
- package/dist/utils/service/excel-helper.service.js.map +1 -0
- package/dist/utils/service/excelUtil.service.d.ts +3 -0
- package/dist/utils/service/excelUtil.service.js +17 -0
- package/dist/utils/service/excelUtil.service.js.map +1 -0
- package/dist/utils/service/file-util.service.d.ts +3 -0
- package/dist/utils/service/file-util.service.js +15 -0
- package/dist/utils/service/file-util.service.js.map +1 -0
- package/dist/utils/service/json-util.service.d.ts +3 -0
- package/dist/utils/service/json-util.service.js +24 -0
- package/dist/utils/service/json-util.service.js.map +1 -0
- package/dist/utils/service/loggingUtil.service.d.ts +4 -0
- package/dist/utils/service/loggingUtil.service.js +49 -0
- package/dist/utils/service/loggingUtil.service.js.map +1 -0
- package/dist/utils/service/reflection-helper.service.d.ts +9 -0
- package/dist/utils/service/reflection-helper.service.js +60 -0
- package/dist/utils/service/reflection-helper.service.js.map +1 -0
- package/dist/utils/utils.module.d.ts +2 -0
- package/dist/utils/utils.module.js +25 -0
- package/dist/utils/utils.module.js.map +1 -0
- package/package.json +1 -1
- package/src/module/layout_preference/controller/layout_preference.controller.ts +18 -9
- package/src/module/layout_preference/service/layout_preference.service.ts +59 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-table.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/entity-table.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAgE;AAChE,mFAA8E;AAC9E,iGAA2F;AAE3F,uEAAiE;AACjE,sFAAsF;AAEtF,6FAAoG;AAG7F,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAC7B,YACU,qBAA4C,EACnC,2BAAwD,EAExD,iBAAoC,EAEpC,sBAAoD;QAL7D,0BAAqB,GAArB,qBAAqB,CAAuB;QACnC,gCAA2B,GAA3B,2BAA2B,CAA6B;QAExD,sBAAiB,GAAjB,iBAAiB,CAAmB;QAEpC,2BAAsB,GAAtB,sBAAsB,CAA8B;IACpE,CAAC;IAEJ,KAAK,CAAC,aAAa,CAAC,gBAA+B;QACjD,IAAI,gBAAgB,EAAE,CAAC;YACrB,MAAM,WAAW,GACf,MAAM,IAAI,CAAC,qBAAqB,CAAC,sBAAsB,CACrD,gBAAgB,CACjB,CAAC;YAEJ,IAAI,CAAC,WAAW,EAAE,CAAC;gBACjB,MAAM,IAAI,KAAK,CACb,iCAAiC,gBAAgB,cAAc,CAChE,CAAC;YACJ,CAAC;YAED,OAAO,WAAW,CA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AkB,CAAC,KAAK,EAAE,EAAE,CAAC;gBAChE,MAAM,EAAE,MAAM,IAAI,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,KAAK,EAAE,EAAE,CAAC;gBAClE,WAAW,EAAE,MAAM,IAAI,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,KAAK,EAAE,EAAE,CAAC;gBACvE,IAAI,EAAE,MAAM,IAAI,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,KAAK,EAAE,EAAE,CAAC;aAEjE,CAAC;YACF,cAAc,CAAC,cAAc;gBAC3B,MAAM,IAAI,CAAC,sBAAsB,CAAC,4BAA4B,CAC5D,WAAW,CAAC,SAAS,CACtB,CAAC;YACJ,IAAI,MAAM,EAAE,CAAC;gBACX,cAAc,CAAC,YAAY;oBACzB,MAAM,IAAI,CAAC,sBAAsB,CAAC,oCAAoC,CACpE,MAAM,EACN,WAAW,CAAC,SAAS,CACtB,CAAC;YACN,CAAC;QACH,CAAC;QAED,OAAO,cAAc,CAAC;IACxB,CAAC;CACF,CAAA;AAxGY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,mBAAU,GAAE;IAKR,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,uCAAiB,CAAC,CAAC,CAAA;qCAFb,+CAAqB;QACN,4DAA2B;QAErC,uCAAiB;QAEZ,sDAA4B;GAP5D,kBAAkB,CAwG9B"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AttributeMasterService } from 'src/module/meta/service/attribute-master.service';
|
|
2
|
+
import { AttributeMaster } from '../entity/attribute-master.entity';
|
|
3
|
+
import { ReflectionHelper } from 'src/utils/service/reflection-helper.service';
|
|
4
|
+
import { DataSource } from 'typeorm';
|
|
5
|
+
interface ValidationError {
|
|
6
|
+
field: string;
|
|
7
|
+
message: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class EntityValidationService {
|
|
10
|
+
private readonly attributeMasterService;
|
|
11
|
+
private readonly reflectionHelper;
|
|
12
|
+
private dataSource;
|
|
13
|
+
constructor(attributeMasterService: AttributeMasterService, reflectionHelper: ReflectionHelper, dataSource: DataSource);
|
|
14
|
+
validateRequiredFields(entityData: Record<string, any>, attributeData: AttributeMaster[]): ValidationError[];
|
|
15
|
+
validateUniqueFields(entityData: Record<string, any>, attributeData: AttributeMaster[], entityType: string, db_table_name: string): Promise<ValidationError[]>;
|
|
16
|
+
validateRegexFields(entityData: Record<string, any>, attributeData: AttributeMaster[]): Promise<ValidationError[]>;
|
|
17
|
+
validateEntityData(entityData: Record<string, any>, entityMaster: any): Promise<ValidationError[]>;
|
|
18
|
+
validateExcelEntityData(entityData: Record<string, any>, entityMaster: any): Promise<ValidationError[]>;
|
|
19
|
+
private hasValidValue;
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.EntityValidationService = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const attribute_master_service_1 = require("./attribute-master.service");
|
|
15
|
+
const reflection_helper_service_1 = require("../../../utils/service/reflection-helper.service");
|
|
16
|
+
const typeorm_1 = require("typeorm");
|
|
17
|
+
let EntityValidationService = class EntityValidationService {
|
|
18
|
+
constructor(attributeMasterService, reflectionHelper, dataSource) {
|
|
19
|
+
this.attributeMasterService = attributeMasterService;
|
|
20
|
+
this.reflectionHelper = reflectionHelper;
|
|
21
|
+
this.dataSource = dataSource;
|
|
22
|
+
}
|
|
23
|
+
validateRequiredFields(entityData, attributeData) {
|
|
24
|
+
const errors = [];
|
|
25
|
+
attributeData
|
|
26
|
+
.filter((attr) => attr.required)
|
|
27
|
+
.forEach((attr) => {
|
|
28
|
+
const value = entityData[attr.attribute_key];
|
|
29
|
+
if (!this.hasValidValue(value)) {
|
|
30
|
+
errors.push({
|
|
31
|
+
field: attr.name,
|
|
32
|
+
message: `Field ${attr.name} is required.`,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
return errors;
|
|
37
|
+
}
|
|
38
|
+
async validateUniqueFields(entityData, attributeData, entityType, db_table_name) {
|
|
39
|
+
const errors = [];
|
|
40
|
+
for (const attr of attributeData.filter((a) => a.is_unique)) {
|
|
41
|
+
const value = entityData[attr.attribute_key];
|
|
42
|
+
if (this.hasValidValue(value)) {
|
|
43
|
+
let qb = this.dataSource
|
|
44
|
+
.createQueryBuilder()
|
|
45
|
+
.select('*')
|
|
46
|
+
.from(db_table_name, db_table_name)
|
|
47
|
+
.where(`${db_table_name}.${attr.attribute_key} = :value`, { value });
|
|
48
|
+
const orgId = entityData.organization_id;
|
|
49
|
+
if (orgId !== undefined && orgId !== null) {
|
|
50
|
+
qb = qb.andWhere(`${db_table_name}.organization_id = :organization_id`, {
|
|
51
|
+
organization_id: orgId,
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
const existing = await qb.limit(1).getRawOne();
|
|
55
|
+
if (existing) {
|
|
56
|
+
errors.push({
|
|
57
|
+
field: attr.name,
|
|
58
|
+
message: `Field ${attr.name} must be unique. Value ${value} already exists.`,
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return errors;
|
|
64
|
+
}
|
|
65
|
+
async validateRegexFields(entityData, attributeData) {
|
|
66
|
+
const errors = [];
|
|
67
|
+
for (const attr of attributeData.filter((a) => a.regex)) {
|
|
68
|
+
const value = entityData[attr.attribute_key];
|
|
69
|
+
if (this.hasValidValue(value)) {
|
|
70
|
+
const regex = new RegExp(attr.regex);
|
|
71
|
+
if (!regex.test(value)) {
|
|
72
|
+
errors.push({
|
|
73
|
+
field: attr.name,
|
|
74
|
+
message: `Field ${attr.name} does not match the required pattern.`,
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
return errors;
|
|
80
|
+
}
|
|
81
|
+
async validateEntityData(entityData, entityMaster) {
|
|
82
|
+
const attributes = await this.attributeMasterService.findAttributesByMappedEntityType(entityData.entity_type);
|
|
83
|
+
const requiredErrors = this.validateRequiredFields(entityData, attributes);
|
|
84
|
+
const uniqueErrors = await this.validateUniqueFields(entityData, attributes, entityData.entity_type, entityMaster.db_table_name);
|
|
85
|
+
const regexErros = await this.validateRegexFields(entityData, attributes);
|
|
86
|
+
return [...requiredErrors, ...uniqueErrors, ...regexErros];
|
|
87
|
+
}
|
|
88
|
+
async validateExcelEntityData(entityData, entityMaster) {
|
|
89
|
+
const attributes = await this.attributeMasterService.findAttributesByMappedEntityType(entityData.entity_type);
|
|
90
|
+
const requiredErrors = this.validateRequiredFields(entityData, attributes);
|
|
91
|
+
const regexErros = await this.validateRegexFields(entityData, attributes);
|
|
92
|
+
return [...requiredErrors, ...regexErros];
|
|
93
|
+
}
|
|
94
|
+
hasValidValue(value) {
|
|
95
|
+
if (value === null || value === undefined)
|
|
96
|
+
return false;
|
|
97
|
+
if (typeof value === 'string' && value.trim() === '')
|
|
98
|
+
return false;
|
|
99
|
+
return true;
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
exports.EntityValidationService = EntityValidationService;
|
|
103
|
+
exports.EntityValidationService = EntityValidationService = __decorate([
|
|
104
|
+
(0, common_1.Injectable)(),
|
|
105
|
+
__metadata("design:paramtypes", [attribute_master_service_1.AttributeMasterService,
|
|
106
|
+
reflection_helper_service_1.ReflectionHelper,
|
|
107
|
+
typeorm_1.DataSource])
|
|
108
|
+
], EntityValidationService);
|
|
109
|
+
//# sourceMappingURL=entity-validation.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-validation.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/entity-validation.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,yEAA0F;AAE1F,gGAA+E;AAC/E,qCAAqC;AAQ9B,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IAClC,YACmB,sBAA8C,EAC9C,gBAAkC,EAC3C,UAAsB;QAFb,2BAAsB,GAAtB,sBAAsB,CAAwB;QAC9C,qBAAgB,GAAhB,gBAAgB,CAAkB;QAC3C,eAAU,GAAV,UAAU,CAAY;IAC7B,CAAC;IAKJ,sBAAsB,CACpB,UAA+B,EAC/B,aAAgC;QAEhC,MAAM,MAAM,GAAsB,EAAE,CAAC;QAErC,aAAa;aACV,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC;aAC/B,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;YAChB,MAAM,KAAK,GAAG,UAAU,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;YAC7C,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC;gBAC/B,MAAM,CAAC,IAAI,CAAC;oBACV,KAAK,EAAE,IAAI,CAAC,IAAI;oBAChB,OAAO,EAAE,SAAS,IAAI,CAAC,IAAI,eAAe;iBAC3C,CAAC,CAAC;YACL,CAAC;QACH,CAAC,CAAC,CAAC;QAEL,OAAO,MAAM,CAAC;IAChB,CAAC;IAKD,KAAK,CAA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,YAAY;QAEZ,MAAM,UAAU,GACd,MAAM,IAAI,CAAC,sBAAsB,CAAC,gCAAgC,CAChE,UAAU,CAAC,WAAW,CACvB,CAAC;QAEJ,MAAM,cAAc,GAAG,IAAI,CAAC,sBAAsB,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;QAC3E,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;QAC1E,OAAO,CAAC,GAAG,cAAc,EAAE,GAAG,UAAU,CAAC,CAAC;IAC5C,CAAC;IACO,aAAa,CAAC,KAAU;QAC9B,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS;YAAE,OAAO,KAAK,CAAC;QACxD,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE;YAAE,OAAO,KAAK,CAAC;QACnE,OAAO,IAAI,CAAC;IACd,CAAC;CACF,CAAA;AAhJY,0DAAuB;kCAAvB,uBAAuB;IADnC,IAAA,mBAAU,GAAE;qCAGgC,iDAAsB;QAC5B,4CAAgB;QAC/B,oBAAU;GAJrB,uBAAuB,CAgJnC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { UserData } from '../../user/entity/user.entity';
|
|
2
|
+
import { BaseEntity } from '../entity/base-entity.entity';
|
|
3
|
+
import { EntityListData } from '../dto/entity-list-data.dto';
|
|
4
|
+
import { EntityManager } from 'typeorm';
|
|
5
|
+
export interface EntityService<T extends BaseEntity> {
|
|
6
|
+
createEntity(entityData: T, loggedInUser: UserData, manager?: EntityManager): Promise<BaseEntity>;
|
|
7
|
+
getEntityData(entityType: string, entityId: number): Promise<BaseEntity | null>;
|
|
8
|
+
getEntityList(entityType: string): Promise<BaseEntity[]>;
|
|
9
|
+
updateEntity(entityData: T, loggedInUserData: UserData, app_code?: string): Promise<BaseEntity>;
|
|
10
|
+
deleteEntity(entityType: string, entityId: number, loggedInUserData: UserData): void;
|
|
11
|
+
findByCode(entityType: string, code: string): Promise<BaseEntity>;
|
|
12
|
+
getFilterDataWithTabs(entityType: string, listType: string, filters: Record<string, any>, sortColumn: string | undefined, sortOrder: string | undefined, pageNumber: number, pageSize: number): Promise<EntityListData>;
|
|
13
|
+
generateExcelReport(entityType: string, filterCriteria: Record<string, any>, listEntityType: string, displayType: string, sampleExport: boolean): Promise<string | null>;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/entity.service.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { EntityServiceImpl } from './entity-service-impl.service';
|
|
2
|
+
import { BaseEntity } from '../entity/base-entity.entity';
|
|
3
|
+
import { UserData } from '../../user/entity/user.entity';
|
|
4
|
+
import { EntityManager } from 'typeorm';
|
|
5
|
+
import { ViewMaster } from '../entity/view-master.entity';
|
|
6
|
+
export declare class FieldGroupService extends EntityServiceImpl {
|
|
7
|
+
constructor();
|
|
8
|
+
createEntity(entityData: BaseEntity, loggedInUser: UserData | null, manager?: EntityManager): Promise<BaseEntity>;
|
|
9
|
+
updateEntity(entityData: ViewMaster, loggedInUserData: UserData | null): Promise<BaseEntity>;
|
|
10
|
+
parseLayout(layoutJson: any): {
|
|
11
|
+
stepType: string;
|
|
12
|
+
stepId: string;
|
|
13
|
+
stepLabel: string;
|
|
14
|
+
stepPosition: number;
|
|
15
|
+
fields: {
|
|
16
|
+
type: string;
|
|
17
|
+
label: string;
|
|
18
|
+
id: string;
|
|
19
|
+
}[];
|
|
20
|
+
}[];
|
|
21
|
+
extractFields(fieldsArray: any[]): {
|
|
22
|
+
type: string;
|
|
23
|
+
label: string;
|
|
24
|
+
id: string;
|
|
25
|
+
}[];
|
|
26
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.FieldGroupService = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const entity_service_impl_service_1 = require("./entity-service-impl.service");
|
|
15
|
+
let FieldGroupService = class FieldGroupService extends entity_service_impl_service_1.EntityServiceImpl {
|
|
16
|
+
constructor() {
|
|
17
|
+
super();
|
|
18
|
+
}
|
|
19
|
+
async createEntity(entityData, loggedInUser, manager) {
|
|
20
|
+
const entityMaster = await this.entityMasterService.getEntityData(entityData.entity_type);
|
|
21
|
+
entityData.parent_id = entityMaster.id;
|
|
22
|
+
entityData.parent_type = entityMaster.entity_type;
|
|
23
|
+
const savedEntity = await super.createEntity(entityData, loggedInUser, manager);
|
|
24
|
+
return savedEntity;
|
|
25
|
+
}
|
|
26
|
+
async updateEntity(entityData, loggedInUserData) {
|
|
27
|
+
return entityData;
|
|
28
|
+
}
|
|
29
|
+
parseLayout(layoutJson) {
|
|
30
|
+
const stepsData = [];
|
|
31
|
+
if (layoutJson?.form?.children && Array.isArray(layoutJson.form.children)) {
|
|
32
|
+
const firstChild = layoutJson.form.children[0];
|
|
33
|
+
console.log('First Child:', firstChild);
|
|
34
|
+
if (firstChild.type === 'wizard' && Array.isArray(firstChild.steps)) {
|
|
35
|
+
console.log('Wizard Steps:', firstChild.steps);
|
|
36
|
+
let i = 0;
|
|
37
|
+
for (const step of firstChild.steps) {
|
|
38
|
+
if (step.type === 'step') {
|
|
39
|
+
const fields = this.extractFields(step.fields);
|
|
40
|
+
stepsData.push({
|
|
41
|
+
stepType: step.type,
|
|
42
|
+
stepId: step.id,
|
|
43
|
+
stepLabel: step.label,
|
|
44
|
+
stepPosition: ++i,
|
|
45
|
+
fields: fields,
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
return stepsData;
|
|
52
|
+
}
|
|
53
|
+
extractFields(fieldsArray) {
|
|
54
|
+
const extractedFields = [];
|
|
55
|
+
function traverse(fields) {
|
|
56
|
+
for (const field of fields) {
|
|
57
|
+
if (field.type === 'field-set') {
|
|
58
|
+
extractedFields.push({
|
|
59
|
+
type: field.type,
|
|
60
|
+
label: field.label || 'No Label',
|
|
61
|
+
id: field.id || 'No ID',
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
if (Array.isArray(field.fields)) {
|
|
65
|
+
traverse(field.fields);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
traverse(fieldsArray);
|
|
70
|
+
return extractedFields;
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
exports.FieldGroupService = FieldGroupService;
|
|
74
|
+
exports.FieldGroupService = FieldGroupService = __decorate([
|
|
75
|
+
(0, common_1.Injectable)(),
|
|
76
|
+
__metadata("design:paramtypes", [])
|
|
77
|
+
], FieldGroupService);
|
|
78
|
+
//# sourceMappingURL=field-group.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field-group.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/field-group.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,+EAAkE;AAO3D,IAAM,iBAAiB,GAAvB,MAAM,i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AAG,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;wBAE/C,SAAS,CAAC,IAAI,CAAC;4BACb,QAAQ,EAAE,IAAI,CAAC,IAAI;4BACnB,MAAM,EAAE,IAAI,CAAC,EAAE;4BACf,SAAS,EAAE,IAAI,CAAC,KAAK;4BACrB,YAAY,EAAE,EAAE,CAAC;4BACjB,MAAM,EAAE,MAAM;yBACf,CAAC,CAAC;oBACL,CAAC;gBACH,CAAC;YACH,CAAC;QACH,CAAC;QACD,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,aAAa,CAAC,WAAkB;QAK9B,MAAM,eAAe,GAAkD,EAAE,CAAC;QAE1E,SAAS,QAAQ,CAAC,MAAa;YAC7B,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;gBAC3B,IAAI,KAAK,CAAC,IAAI,KAAK,WAAW,EAAE,CAAC;oBAC/B,eAAe,CAAC,IAAI,CAAC;wBACnB,IAAI,EAAE,KAAK,CAAC,IAAI;wBAChB,KAAK,EAAE,KAAK,CAAC,KAAK,IAAI,UAAU;wBAChC,EAAE,EAAE,KAAK,CAAC,EAAE,IAAI,OAAO;qBACxB,CAAC,CAAC;gBACL,CAAC;gBACD,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC;oBAChC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;gBACzB,CAAC;YACH,CAAC;QACH,CAAC;QAED,QAAQ,CAAC,WAAW,CAAC,CAAC;QAEtB,OAAO,eAAe,CAAC;IACzB,CAAC;CACF,CAAA;AA/FY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,mBAAU,GAAE;;GACA,iBAAiB,CA+F7B"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { EntityServiceImpl } from './entity-service-impl.service';
|
|
2
|
+
import { MediaDataRepository } from '../repository/media-data.repository';
|
|
3
|
+
import { ConfigService } from '@nestjs/config';
|
|
4
|
+
import { S3 } from 'aws-sdk';
|
|
5
|
+
import { MediaData } from '../entity/media-data.entity';
|
|
6
|
+
export declare class MediaDataService extends EntityServiceImpl {
|
|
7
|
+
private readonly configService;
|
|
8
|
+
private readonly mediaRepository;
|
|
9
|
+
constructor(configService: ConfigService, mediaRepository: MediaDataRepository);
|
|
10
|
+
s3AccessKeyID: any;
|
|
11
|
+
s3AccessKeySecret: any;
|
|
12
|
+
s3Region: any;
|
|
13
|
+
bucketName: string | undefined;
|
|
14
|
+
s3: S3;
|
|
15
|
+
generateMediaUploadDetails(fileName: string, mappedAttributeKey: string, mappedEntityType?: string, mappedEntityId?: number): Promise<{
|
|
16
|
+
id: any;
|
|
17
|
+
path: string;
|
|
18
|
+
uploadUrl: string;
|
|
19
|
+
} | null>;
|
|
20
|
+
findByAttributeKeyAndMappedEntityIdAndMappedEntityType(attributeKey: string, mappedEntityId: number, mappedEntityType: string): Promise<MediaData | null>;
|
|
21
|
+
findByMappedEntityIdAndMappedEntityType(mappedEntityId: number, mappedEntityType: string): Promise<MediaData[]>;
|
|
22
|
+
deleteByAttributeKeyAndMappedEntityIdAndMappedEntityType(attributeKey: string, mappedEntityId: number, mappedEntityType: string): Promise<import("typeorm").DeleteResult>;
|
|
23
|
+
private getContentType;
|
|
24
|
+
getMediaDownloadUrl(id: number): Promise<{
|
|
25
|
+
signedUrl: string;
|
|
26
|
+
fileName: string;
|
|
27
|
+
id: number;
|
|
28
|
+
}>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.MediaDataService = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const entity_service_impl_service_1 = require("./entity-service-impl.service");
|
|
15
|
+
const media_data_repository_1 = require("../repository/media-data.repository");
|
|
16
|
+
const config_1 = require("@nestjs/config");
|
|
17
|
+
const aws_sdk_1 = require("aws-sdk");
|
|
18
|
+
const media_data_entity_1 = require("../entity/media-data.entity");
|
|
19
|
+
const global_constant_1 = require("../../../constant/global.constant");
|
|
20
|
+
const uuid_1 = require("uuid");
|
|
21
|
+
let MediaDataService = class MediaDataService extends entity_service_impl_service_1.EntityServiceImpl {
|
|
22
|
+
constructor(configService, mediaRepository) {
|
|
23
|
+
super();
|
|
24
|
+
this.configService = configService;
|
|
25
|
+
this.mediaRepository = mediaRepository;
|
|
26
|
+
this.s3AccessKeyID = this.configService.get('AWS.S3.AWS_ACCESS_KEY_ID');
|
|
27
|
+
this.s3AccessKeySecret = this.configService.get('AWS.S3.AWS_SECRET_KEY');
|
|
28
|
+
this.s3Region = this.configService.get('AWS.S3.AWS_REGION');
|
|
29
|
+
this.bucketName = this.configService.get('AWS.S3.BUCKET_NAME');
|
|
30
|
+
this.s3 = new aws_sdk_1.S3({
|
|
31
|
+
accessKeyId: this.s3AccessKeyID,
|
|
32
|
+
secretAccessKey: this.s3AccessKeySecret,
|
|
33
|
+
region: this.s3Region,
|
|
34
|
+
signatureVersion: 'v4',
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
async generateMediaUploadDetails(fileName, mappedAttributeKey, mappedEntityType, mappedEntityId) {
|
|
38
|
+
if (!fileName || !mappedAttributeKey) {
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
const ext = fileName.split('.').pop()?.toLowerCase() ?? '';
|
|
42
|
+
const id = (0, uuid_1.v4)();
|
|
43
|
+
const s3Key = `uploads/${id}.${ext}`;
|
|
44
|
+
const uploadUrl = await this.s3.getSignedUrlPromise('putObject', {
|
|
45
|
+
Bucket: this.bucketName,
|
|
46
|
+
Key: s3Key,
|
|
47
|
+
Expires: 60 * 5,
|
|
48
|
+
ContentType: this.getContentType(ext),
|
|
49
|
+
});
|
|
50
|
+
let mediaData = new media_data_entity_1.MediaData();
|
|
51
|
+
mediaData.file_name = fileName;
|
|
52
|
+
mediaData.mapped_attribute_key = mappedAttributeKey;
|
|
53
|
+
mediaData.status = global_constant_1.STATUS_PENDING;
|
|
54
|
+
if (mappedEntityType) {
|
|
55
|
+
mediaData.mapped_entity_type = mappedEntityType;
|
|
56
|
+
}
|
|
57
|
+
if (mappedEntityId) {
|
|
58
|
+
mediaData.mapped_entity_id = mappedEntityId;
|
|
59
|
+
}
|
|
60
|
+
mediaData.media_url = s3Key;
|
|
61
|
+
let savedEntity = await super.createEntity(mediaData, null);
|
|
62
|
+
if (savedEntity) {
|
|
63
|
+
return { id: savedEntity.id, path: s3Key, uploadUrl };
|
|
64
|
+
}
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
67
|
+
async findByAttributeKeyAndMappedEntityIdAndMappedEntityType(attributeKey, mappedEntityId, mappedEntityType) {
|
|
68
|
+
return await this.mediaRepository.findByAttributeKeyAndMappedEntityIdAndMappedEntityType(attributeKey, mappedEntityId, mappedEntityType);
|
|
69
|
+
}
|
|
70
|
+
async findByMappedEntityIdAndMappedEntityType(mappedEntityId, mappedEntityType) {
|
|
71
|
+
return await this.mediaRepository.findByMappedEntityIdAndMappedEntityType(mappedEntityId, mappedEntityType);
|
|
72
|
+
}
|
|
73
|
+
async deleteByAttributeKeyAndMappedEntityIdAndMappedEntityType(attributeKey, mappedEntityId, mappedEntityType) {
|
|
74
|
+
return await this.mediaRepository.deleteByAttributeKeyAndMappedEntityIdAndMappedEntityType(attributeKey, mappedEntityId, mappedEntityType);
|
|
75
|
+
}
|
|
76
|
+
getContentType(ext) {
|
|
77
|
+
const map = {
|
|
78
|
+
pdf: 'application/pdf',
|
|
79
|
+
jpg: 'image/jpeg',
|
|
80
|
+
jpeg: 'image/jpeg',
|
|
81
|
+
png: 'image/png',
|
|
82
|
+
};
|
|
83
|
+
return map[ext] || 'application/octet-stream';
|
|
84
|
+
}
|
|
85
|
+
async getMediaDownloadUrl(id) {
|
|
86
|
+
try {
|
|
87
|
+
const entityData = await this.getEntityData(global_constant_1.ENTITYTYPE_MEDIA, id);
|
|
88
|
+
let mediaData = entityData;
|
|
89
|
+
const signedUrl = await this.s3.getSignedUrlPromise('getObject', {
|
|
90
|
+
Bucket: this.bucketName,
|
|
91
|
+
Key: mediaData.media_url,
|
|
92
|
+
Expires: 60 * 5,
|
|
93
|
+
});
|
|
94
|
+
return { signedUrl, fileName: mediaData.file_name, id: mediaData.id };
|
|
95
|
+
}
|
|
96
|
+
catch (error) {
|
|
97
|
+
console.error('Error generating signed URL for media:', error);
|
|
98
|
+
throw new Error('Failed to generate signed URL');
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
exports.MediaDataService = MediaDataService;
|
|
103
|
+
exports.MediaDataService = MediaDataService = __decorate([
|
|
104
|
+
(0, common_1.Injectable)(),
|
|
105
|
+
__metadata("design:paramtypes", [config_1.ConfigService,
|
|
106
|
+
media_data_repository_1.MediaDataRepository])
|
|
107
|
+
], MediaDataService);
|
|
108
|
+
//# sourceMappingURL=media-data.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"media-data.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/media-data.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,+EAAkE;AACl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';
|
|
2
|
+
import { PreferenceRepository } from '../repository/preference.repository';
|
|
3
|
+
export declare class PreferenceService extends EntityServiceImpl {
|
|
4
|
+
private readonly preferenceRepository;
|
|
5
|
+
constructor(preferenceRepository: PreferenceRepository);
|
|
6
|
+
getPreferenceValue(preferenceKey: string): Promise<string | undefined>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.PreferenceService = void 0;
|
|
13
|
+
const entity_service_impl_service_1 = require("./entity-service-impl.service");
|
|
14
|
+
const common_1 = require("@nestjs/common");
|
|
15
|
+
const preference_repository_1 = require("../repository/preference.repository");
|
|
16
|
+
let PreferenceService = class PreferenceService extends entity_service_impl_service_1.EntityServiceImpl {
|
|
17
|
+
constructor(preferenceRepository) {
|
|
18
|
+
super();
|
|
19
|
+
this.preferenceRepository = preferenceRepository;
|
|
20
|
+
}
|
|
21
|
+
async getPreferenceValue(preferenceKey) {
|
|
22
|
+
const preferenceMaster = await this.preferenceRepository.findByPreferenceKey(preferenceKey);
|
|
23
|
+
return preferenceMaster?.preference_value;
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
exports.PreferenceService = PreferenceService;
|
|
27
|
+
exports.PreferenceService = PreferenceService = __decorate([
|
|
28
|
+
(0, common_1.Injectable)(),
|
|
29
|
+
__metadata("design:paramtypes", [preference_repository_1.PreferenceRepository])
|
|
30
|
+
], PreferenceService);
|
|
31
|
+
//# sourceMappingURL=preference.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preference.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/preference.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+EAAkE;AAClE,2CAA4C;AAC5C,+EAA2E;AAGpE,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,+CAAiB;IACtD,YAA6B,oBAA0C;QACrE,KAAK,EAAE,CAAC;QADmB,yBAAoB,GAApB,oBAAoB,CAAsB;IAEvE,CAAC;IAED,KAAK,CAAC,kBAAkB,CAAC,aAAqB;QAC5C,MAAM,gBAAgB,GACpB,MAAM,IAAI,CAAC,oBAAoB,CAAC,mBAAmB,CAAC,aAAa,CAAC,CAAC;QACrE,OAAO,gBAAgB,EAAE,gBAAgB,CAAC;IAC5C,CAAC;CACF,CAAA;AAVY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,mBAAU,GAAE;qCAEwC,4CAAoB;GAD5D,iBAAiB,CAU7B"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { EntityServiceImpl } from './entity-service-impl.service';
|
|
2
|
+
import { BaseEntity } from '../entity/base-entity.entity';
|
|
3
|
+
import { UserData } from '../../user/entity/user.entity';
|
|
4
|
+
import { EntityManager } from 'typeorm';
|
|
5
|
+
import { ViewMaster } from '../entity/view-master.entity';
|
|
6
|
+
export declare class SectionMasterService extends EntityServiceImpl {
|
|
7
|
+
constructor();
|
|
8
|
+
createEntity(entityData: BaseEntity, loggedInUser: UserData | null, manager?: EntityManager): Promise<BaseEntity>;
|
|
9
|
+
updateEntity(entityData: ViewMaster, loggedInUserData: UserData | null): Promise<BaseEntity>;
|
|
10
|
+
parseLayout(layoutJson: any): {
|
|
11
|
+
stepType: string;
|
|
12
|
+
stepId: string;
|
|
13
|
+
stepLabel: string;
|
|
14
|
+
stepPosition: number;
|
|
15
|
+
fieldsGroup: {
|
|
16
|
+
type: string;
|
|
17
|
+
label: string;
|
|
18
|
+
id: string;
|
|
19
|
+
}[];
|
|
20
|
+
}[];
|
|
21
|
+
extractFields(fieldsArray: any[]): {
|
|
22
|
+
type: string;
|
|
23
|
+
label: string;
|
|
24
|
+
id: string;
|
|
25
|
+
}[];
|
|
26
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.SectionMasterService = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const entity_service_impl_service_1 = require("./entity-service-impl.service");
|
|
15
|
+
let SectionMasterService = class SectionMasterService extends entity_service_impl_service_1.EntityServiceImpl {
|
|
16
|
+
constructor() {
|
|
17
|
+
super();
|
|
18
|
+
}
|
|
19
|
+
async createEntity(entityData, loggedInUser, manager) {
|
|
20
|
+
const entityMaster = await this.entityMasterService.getEntityData(entityData.entity_type);
|
|
21
|
+
entityData.parent_id = entityMaster.id;
|
|
22
|
+
entityData.parent_type = entityMaster.entity_type;
|
|
23
|
+
const savedEntity = await super.createEntity(entityData, loggedInUser, manager);
|
|
24
|
+
return savedEntity;
|
|
25
|
+
}
|
|
26
|
+
async updateEntity(entityData, loggedInUserData) {
|
|
27
|
+
return entityData;
|
|
28
|
+
}
|
|
29
|
+
parseLayout(layoutJson) {
|
|
30
|
+
const stepsData = [];
|
|
31
|
+
if (layoutJson?.form?.children && Array.isArray(layoutJson.form.children)) {
|
|
32
|
+
const firstChild = layoutJson.form.children[0];
|
|
33
|
+
console.log('First Child:', firstChild);
|
|
34
|
+
if (firstChild.type === 'wizard' && Array.isArray(firstChild.steps)) {
|
|
35
|
+
console.log('Wizard Steps:', firstChild.steps);
|
|
36
|
+
let i = 0;
|
|
37
|
+
for (const step of firstChild.steps) {
|
|
38
|
+
if (step.type === 'step') {
|
|
39
|
+
const fields = this.extractFields(step.fields);
|
|
40
|
+
stepsData.push({
|
|
41
|
+
stepType: step.type,
|
|
42
|
+
stepId: step.id,
|
|
43
|
+
stepLabel: step.label,
|
|
44
|
+
stepPosition: ++i,
|
|
45
|
+
fieldsGroup: fields,
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
return stepsData;
|
|
52
|
+
}
|
|
53
|
+
extractFields(fieldsArray) {
|
|
54
|
+
const extractedFields = [];
|
|
55
|
+
function traverse(fields) {
|
|
56
|
+
for (const field of fields) {
|
|
57
|
+
if (field.type === 'field-set') {
|
|
58
|
+
extractedFields.push({
|
|
59
|
+
type: field.type || 'Default Type',
|
|
60
|
+
label: field.label || 'Default Label',
|
|
61
|
+
id: field.id || 'Default ID',
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
if (Array.isArray(field.fields)) {
|
|
65
|
+
traverse(field.fields);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
traverse(fieldsArray);
|
|
70
|
+
return extractedFields;
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
exports.SectionMasterService = SectionMasterService;
|
|
74
|
+
exports.SectionMasterService = SectionMasterService = __decorate([
|
|
75
|
+
(0, common_1.Injectable)(),
|
|
76
|
+
__metadata("design:paramtypes", [])
|
|
77
|
+
], SectionMasterService);
|
|
78
|
+
//# sourceMappingURL=section-master.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"section-master.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/section-master.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,+EAAkE;AAO3D,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,+CAAiB;IACzD;QACE,KAAK,EAAE,CAAC;IACV,CAAC;IAED,KAAK,CAAC,YAAY,CAChB,UAAsB,EACtB,YAA6B,EAC7B,OAAuB;QAEvB,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,aAAa,CAC/D,UAAU,CAAC,WAAW,CACvB,CAAC;QACF,UAAU,CAAC,SAAS,GAAG,YAAY,CAAC,EAAE,CAAC;QACvC,UAAU,CAAC,WAAW,GAAG,YAAY,CAAC,WAAW,CAAC;QAElD,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,YAAY,CAC1C,UAAU,EACV,YAAY,EACZ,OAAO,CACR,CAAC;QACF,OAAO,WAAW,CAAC;IACrB,CAAC;IAED,KAAK,CAAC,YAAY,CAChB,UAAsB,EACtB,gBAAiC;QAEjC,OAAO,UAAU,CAAC;IACpB,CAAC;IAED,WAAW,CAAC,UAAe;QACzB,MAAM,SAAS,GAUT,EAAE,CAAC;QAET,IAAI,UAAU,EAAE,IAAI,EAAE,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;YAC1E,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qBAC7B,CAAC,CAAC;gBACL,CAAC;gBACD,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC;oBAChC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;gBACzB,CAAC;YACH,CAAC;QACH,CAAC;QAED,QAAQ,CAAC,WAAW,CAAC,CAAC;QAEtB,OAAO,eAAe,CAAC;IACzB,CAAC;CACF,CAAA;AA/FY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,mBAAU,GAAE;;GACA,oBAAoB,CA+FhC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ViewMaster } from "../entity/view-master.entity";
|
|
2
|
+
import { Repository } from "typeorm";
|
|
3
|
+
import { ClockIDGenService } from "src/utils/service/clockIDGenUtil.service";
|
|
4
|
+
export declare class UpdateFormJsonService {
|
|
5
|
+
private readonly viewMasterRepository;
|
|
6
|
+
private readonly clockIDGenService;
|
|
7
|
+
constructor(viewMasterRepository: Repository<ViewMaster>, clockIDGenService: ClockIDGenService);
|
|
8
|
+
updateFormJson(body: any): Promise<ViewMaster>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.UpdateFormJsonService = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const typeorm_1 = require("@nestjs/typeorm");
|
|
18
|
+
const view_master_entity_1 = require("../entity/view-master.entity");
|
|
19
|
+
const typeorm_2 = require("typeorm");
|
|
20
|
+
const clockIDGenUtil_service_1 = require("../../../utils/service/clockIDGenUtil.service");
|
|
21
|
+
let UpdateFormJsonService = class UpdateFormJsonService {
|
|
22
|
+
constructor(viewMasterRepository, clockIDGenService) {
|
|
23
|
+
this.viewMasterRepository = viewMasterRepository;
|
|
24
|
+
this.clockIDGenService = clockIDGenService;
|
|
25
|
+
}
|
|
26
|
+
async updateFormJson(body) {
|
|
27
|
+
const entityType = this.clockIDGenService.idGenerator();
|
|
28
|
+
const newViewMasterRecord = ({});
|
|
29
|
+
return this.viewMasterRepository.save(newViewMasterRecord);
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
exports.UpdateFormJsonService = UpdateFormJsonService;
|
|
33
|
+
exports.UpdateFormJsonService = UpdateFormJsonService = __decorate([
|
|
34
|
+
(0, common_1.Injectable)(),
|
|
35
|
+
__param(0, (0, typeorm_1.InjectRepository)(view_master_entity_1.ViewMaster)),
|
|
36
|
+
__metadata("design:paramtypes", [typeorm_2.Repository,
|
|
37
|
+
clockIDGenUtil_service_1.ClockIDGenService])
|
|
38
|
+
], UpdateFormJsonService);
|
|
39
|
+
//# sourceMappingURL=update-form-json.service.js.map
|