rez_core 6.6.6 → 7.0.1
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/.claude/settings.local.json +26 -0
- package/.idea/250218_nodejs_core.iml +9 -0
- package/.idea/codeStyles/Project.xml +59 -0
- package/.idea/codeStyles/codeStyleConfig.xml +5 -0
- package/.idea/copilot.data.migration.agent.xml +6 -0
- package/.idea/copilot.data.migration.ask.xml +6 -0
- package/.idea/copilot.data.migration.ask2agent.xml +6 -0
- package/.idea/copilot.data.migration.edit.xml +6 -0
- package/.idea/inspectionProfiles/Project_Default.xml +6 -0
- package/.idea/misc.xml +6 -0
- package/.idea/modules.xml +8 -0
- package/.idea/prettier.xml +6 -0
- package/.idea/vcs.xml +6 -0
- package/.prettierrc +3 -3
- package/README.md +99 -99
- package/dist/app.controller.js.map +1 -1
- package/dist/app.module.js +4 -10
- package/dist/app.module.js.map +1 -1
- package/dist/constant/attribute.constant.d.ts +8 -0
- package/dist/constant/attribute.constant.js +14 -0
- package/dist/constant/attribute.constant.js.map +1 -0
- package/dist/constant/db-data-type.constant.d.ts +33 -0
- package/dist/constant/db-data-type.constant.js +119 -0
- package/dist/constant/db-data-type.constant.js.map +1 -0
- package/dist/constant/entity.constant.d.ts +4 -0
- package/dist/constant/entity.constant.js +9 -0
- package/dist/constant/entity.constant.js.map +1 -0
- package/dist/constant/status.constant.d.ts +4 -0
- package/dist/constant/status.constant.js +9 -0
- package/dist/constant/status.constant.js.map +1 -0
- package/dist/core.module.js +55 -42
- package/dist/core.module.js.map +1 -1
- package/dist/module/auth/auth.module.d.ts +6 -1
- package/dist/module/auth/auth.module.js +29 -7
- package/dist/module/auth/auth.module.js.map +1 -1
- package/dist/module/{user/entity/user.entity.d.ts → auth/dto/user.dto.d.ts} +13 -5
- package/dist/module/auth/dto/user.dto.js +7 -0
- package/dist/module/auth/dto/user.dto.js.map +1 -0
- package/dist/module/auth/services/auth.service.d.ts +1 -1
- package/dist/module/auth/strategies/jwt.strategy.d.ts +6 -2
- package/dist/module/auth/strategies/jwt.strategy.js +18 -4
- package/dist/module/auth/strategies/jwt.strategy.js.map +1 -1
- package/dist/module/dashboard/controller/dashboard.controller.d.ts +7 -7
- package/dist/module/dashboard/dashboard.module.js +0 -2
- package/dist/module/dashboard/dashboard.module.js.map +1 -1
- package/dist/module/dashboard/entity/dashboard_page_data.entity.d.ts +0 -1
- package/dist/module/dashboard/entity/dashboard_page_data.entity.js +1 -6
- package/dist/module/dashboard/entity/dashboard_page_data.entity.js.map +1 -1
- package/dist/module/dashboard/entity/widget_master.entity.d.ts +0 -1
- package/dist/module/dashboard/entity/widget_master.entity.js +1 -6
- package/dist/module/dashboard/entity/widget_master.entity.js.map +1 -1
- package/dist/module/dashboard/service/dashboard.service.d.ts +8 -10
- package/dist/module/dashboard/service/dashboard.service.js +3 -18
- package/dist/module/dashboard/service/dashboard.service.js.map +1 -1
- package/dist/module/eav/controller/eav.controller.d.ts +21 -0
- package/dist/module/eav/controller/eav.controller.js +127 -0
- package/dist/module/eav/controller/eav.controller.js.map +1 -0
- package/dist/module/eav/dto/eav-operation.dto.d.ts +20 -0
- package/dist/module/eav/dto/eav-operation.dto.js +75 -0
- package/dist/module/eav/dto/eav-operation.dto.js.map +1 -0
- package/dist/module/eav/eav.module.d.ts +2 -0
- package/dist/module/eav/eav.module.js +84 -0
- package/dist/module/eav/eav.module.js.map +1 -0
- package/dist/module/eav/entity/eav-boolean.entity.d.ts +9 -0
- package/dist/module/eav/entity/eav-boolean.entity.js +48 -0
- package/dist/module/eav/entity/eav-boolean.entity.js.map +1 -0
- package/dist/module/eav/entity/eav-date.entity.d.ts +9 -0
- package/dist/module/eav/entity/eav-date.entity.js +48 -0
- package/dist/module/eav/entity/eav-date.entity.js.map +1 -0
- package/dist/module/eav/entity/eav-decimal.entity.d.ts +9 -0
- package/dist/module/eav/entity/eav-decimal.entity.js +48 -0
- package/dist/module/eav/entity/eav-decimal.entity.js.map +1 -0
- package/dist/module/eav/entity/eav-int.entity.d.ts +9 -0
- package/dist/module/eav/entity/eav-int.entity.js +48 -0
- package/dist/module/eav/entity/eav-int.entity.js.map +1 -0
- package/dist/module/eav/entity/eav-json.entity.d.ts +9 -0
- package/dist/module/eav/entity/eav-json.entity.js +48 -0
- package/dist/module/eav/entity/eav-json.entity.js.map +1 -0
- package/dist/module/eav/entity/eav-text.entity.d.ts +9 -0
- package/dist/module/eav/entity/eav-text.entity.js +48 -0
- package/dist/module/eav/entity/eav-text.entity.js.map +1 -0
- package/dist/module/eav/entity/eav-time.entity.d.ts +9 -0
- package/dist/module/eav/entity/eav-time.entity.js +48 -0
- package/dist/module/eav/entity/eav-time.entity.js.map +1 -0
- package/dist/module/eav/entity/eav-timestamp.entity.d.ts +9 -0
- package/dist/module/eav/entity/eav-timestamp.entity.js +48 -0
- package/dist/module/eav/entity/eav-timestamp.entity.js.map +1 -0
- package/dist/module/eav/entity/eav-varchar.entity.d.ts +9 -0
- package/dist/module/eav/entity/eav-varchar.entity.js +48 -0
- package/dist/module/eav/entity/eav-varchar.entity.js.map +1 -0
- package/dist/module/eav/interface/eav-strategy.interface.d.ts +8 -0
- package/dist/module/eav/interface/eav-strategy.interface.js +3 -0
- package/dist/module/eav/interface/eav-strategy.interface.js.map +1 -0
- package/dist/module/eav/repository/eav-boolean.repository.d.ts +13 -0
- package/dist/module/eav/repository/eav-boolean.repository.js +57 -0
- package/dist/module/eav/repository/eav-boolean.repository.js.map +1 -0
- package/dist/module/eav/repository/eav-date.repository.d.ts +13 -0
- package/dist/module/eav/repository/eav-date.repository.js +57 -0
- package/dist/module/eav/repository/eav-date.repository.js.map +1 -0
- package/dist/module/eav/repository/eav-decimal.repository.d.ts +13 -0
- package/dist/module/eav/repository/eav-decimal.repository.js +57 -0
- package/dist/module/eav/repository/eav-decimal.repository.js.map +1 -0
- package/dist/module/eav/repository/eav-int.repository.d.ts +13 -0
- package/dist/module/eav/repository/eav-int.repository.js +57 -0
- package/dist/module/eav/repository/eav-int.repository.js.map +1 -0
- package/dist/module/eav/repository/eav-json.repository.d.ts +13 -0
- package/dist/module/eav/repository/eav-json.repository.js +57 -0
- package/dist/module/eav/repository/eav-json.repository.js.map +1 -0
- package/dist/module/eav/repository/eav-text.repository.d.ts +13 -0
- package/dist/module/eav/repository/eav-text.repository.js +57 -0
- package/dist/module/eav/repository/eav-text.repository.js.map +1 -0
- package/dist/module/eav/repository/eav-time.repository.d.ts +13 -0
- package/dist/module/eav/repository/eav-time.repository.js +57 -0
- package/dist/module/eav/repository/eav-time.repository.js.map +1 -0
- package/dist/module/eav/repository/eav-timestamp.repository.d.ts +13 -0
- package/dist/module/eav/repository/eav-timestamp.repository.js +57 -0
- package/dist/module/eav/repository/eav-timestamp.repository.js.map +1 -0
- package/dist/module/eav/repository/eav-varchar.repository.d.ts +13 -0
- package/dist/module/eav/repository/eav-varchar.repository.js +57 -0
- package/dist/module/eav/repository/eav-varchar.repository.js.map +1 -0
- package/dist/module/eav/service/eav-boolean.service.d.ts +12 -0
- package/dist/module/eav/service/eav-boolean.service.js +59 -0
- package/dist/module/eav/service/eav-boolean.service.js.map +1 -0
- package/dist/module/eav/service/eav-date.service.d.ts +12 -0
- package/dist/module/eav/service/eav-date.service.js +59 -0
- package/dist/module/eav/service/eav-date.service.js.map +1 -0
- package/dist/module/eav/service/eav-decimal.service.d.ts +12 -0
- package/dist/module/eav/service/eav-decimal.service.js +59 -0
- package/dist/module/eav/service/eav-decimal.service.js.map +1 -0
- package/dist/module/eav/service/eav-factory.service.d.ts +26 -0
- package/dist/module/eav/service/eav-factory.service.js +81 -0
- package/dist/module/eav/service/eav-factory.service.js.map +1 -0
- package/dist/module/eav/service/eav-int.service.d.ts +12 -0
- package/dist/module/eav/service/eav-int.service.js +59 -0
- package/dist/module/eav/service/eav-int.service.js.map +1 -0
- package/dist/module/eav/service/eav-json.service.d.ts +12 -0
- package/dist/module/eav/service/eav-json.service.js +59 -0
- package/dist/module/eav/service/eav-json.service.js.map +1 -0
- package/dist/module/eav/service/eav-text.service.d.ts +12 -0
- package/dist/module/eav/service/eav-text.service.js +59 -0
- package/dist/module/eav/service/eav-text.service.js.map +1 -0
- package/dist/module/eav/service/eav-time.service.d.ts +12 -0
- package/dist/module/eav/service/eav-time.service.js +59 -0
- package/dist/module/eav/service/eav-time.service.js.map +1 -0
- package/dist/module/eav/service/eav-timestamp.service.d.ts +12 -0
- package/dist/module/eav/service/eav-timestamp.service.js +59 -0
- package/dist/module/eav/service/eav-timestamp.service.js.map +1 -0
- package/dist/module/eav/service/eav-varchar.service.d.ts +12 -0
- package/dist/module/eav/service/eav-varchar.service.js +59 -0
- package/dist/module/eav/service/eav-varchar.service.js.map +1 -0
- package/dist/module/eav/service/eav.service.d.ts +14 -0
- package/dist/module/eav/service/eav.service.js +65 -0
- package/dist/module/eav/service/eav.service.js.map +1 -0
- package/dist/module/entity_json/controller/entity_json.controller.d.ts +2 -5
- package/dist/module/entity_json/controller/entity_json.controller.js +7 -21
- package/dist/module/entity_json/controller/entity_json.controller.js.map +1 -1
- package/dist/module/entity_json/service/entity_json.service.d.ts +10 -2
- package/dist/module/entity_json/service/entity_json.service.js +102 -95
- package/dist/module/entity_json/service/entity_json.service.js.map +1 -1
- package/dist/module/export/service/export.service.js +5 -0
- package/dist/module/export/service/export.service.js.map +1 -1
- package/dist/module/filter/controller/filter.controller.d.ts +1 -12
- package/dist/module/filter/controller/filter.controller.js +3 -2
- package/dist/module/filter/controller/filter.controller.js.map +1 -1
- package/dist/module/filter/dto/filter-request.dto.d.ts +2 -1
- package/dist/module/filter/entity/saved-filter-detail.entity.d.ts +0 -1
- package/dist/module/filter/entity/saved-filter-detail.entity.js +1 -7
- package/dist/module/filter/entity/saved-filter-detail.entity.js.map +1 -1
- package/dist/module/filter/entity/saved-filter-master.entity.d.ts +0 -1
- package/dist/module/filter/entity/saved-filter-master.entity.js +1 -7
- package/dist/module/filter/entity/saved-filter-master.entity.js.map +1 -1
- package/dist/module/filter/filter.module.js +2 -11
- package/dist/module/filter/filter.module.js.map +1 -1
- package/dist/module/filter/repository/saved-filter.repository.d.ts +1 -1
- package/dist/module/filter/repository/saved-filter.repository.js +2 -4
- package/dist/module/filter/repository/saved-filter.repository.js.map +1 -1
- package/dist/module/filter/service/filter.service.d.ts +5 -38
- package/dist/module/filter/service/filter.service.js +134 -88
- package/dist/module/filter/service/filter.service.js.map +1 -1
- package/dist/module/filter/service/saved-filter.service.d.ts +3 -4
- package/dist/module/filter/service/saved-filter.service.js +18 -15
- package/dist/module/filter/service/saved-filter.service.js.map +1 -1
- package/dist/module/integration/examples/usage.example.js +9 -9
- package/dist/module/integration/service/integration.service.d.ts +1 -6
- package/dist/module/integration/service/integration.service.js +4 -18
- package/dist/module/integration/service/integration.service.js.map +1 -1
- package/dist/module/integration/service/oauth.service.js +0 -2
- package/dist/module/integration/service/oauth.service.js.map +1 -1
- package/dist/module/integration/service/wrapper.service.js +0 -1
- package/dist/module/integration/service/wrapper.service.js.map +1 -1
- package/dist/module/integration/strategies/email/gmail-api.strategy.js +7 -23
- package/dist/module/integration/strategies/email/gmail-api.strategy.js.map +1 -1
- package/dist/module/integration/strategies/email/sendgrid-api.strategy.js +5 -8
- package/dist/module/integration/strategies/email/sendgrid-api.strategy.js.map +1 -1
- package/dist/module/layout/controller/layout.controller.d.ts +1 -3
- package/dist/module/layout/controller/layout.controller.js +3 -7
- package/dist/module/layout/controller/layout.controller.js.map +1 -1
- package/dist/module/layout/entity/header-items.entity.js +1 -1
- package/dist/module/layout/entity/header-section.entity.d.ts +0 -2
- package/dist/module/layout/entity/header-section.entity.js +1 -9
- package/dist/module/layout/entity/header-section.entity.js.map +1 -1
- package/dist/module/layout/layout.module.js +1 -2
- package/dist/module/layout/layout.module.js.map +1 -1
- package/dist/module/layout/repository/header-section.repository.d.ts +0 -1
- package/dist/module/layout/repository/header-section.repository.js +0 -5
- package/dist/module/layout/repository/header-section.repository.js.map +1 -1
- package/dist/module/layout/service/header-section.service.d.ts +1 -1
- package/dist/module/layout/service/header-section.service.js +1 -1
- package/dist/module/layout/service/header-section.service.js.map +1 -1
- package/dist/module/layout_preference/service/layout_preference.service.d.ts +1 -1
- package/dist/module/linked_attributes/controller/linked_attributes.controller.d.ts +1 -0
- package/dist/module/linked_attributes/service/linked_attributes.service.d.ts +2 -2
- package/dist/module/linked_attributes/service/linked_attributes.service.js +3 -4
- package/dist/module/linked_attributes/service/linked_attributes.service.js.map +1 -1
- package/dist/module/listmaster/controller/list-master.controller.d.ts +0 -1
- package/dist/module/listmaster/controller/list-master.controller.js +0 -19
- package/dist/module/listmaster/controller/list-master.controller.js.map +1 -1
- package/dist/module/listmaster/entity/list-master-items.entity.d.ts +0 -4
- package/dist/module/listmaster/entity/list-master-items.entity.js +2 -20
- package/dist/module/listmaster/entity/list-master-items.entity.js.map +1 -1
- package/dist/module/listmaster/entity/list-master.entity.d.ts +1 -4
- package/dist/module/listmaster/entity/list-master.entity.js +5 -19
- package/dist/module/listmaster/entity/list-master.entity.js.map +1 -1
- package/dist/module/listmaster/repository/list-master-items.repository.d.ts +2 -2
- package/dist/module/listmaster/repository/list-master-items.repository.js +68 -25
- package/dist/module/listmaster/repository/list-master-items.repository.js.map +1 -1
- package/dist/module/listmaster/service/list-master-item.service.d.ts +1 -1
- package/dist/module/listmaster/service/list-master-item.service.js +129 -48
- package/dist/module/listmaster/service/list-master-item.service.js.map +1 -1
- package/dist/module/listmaster/service/list-master.service.d.ts +17 -13
- package/dist/module/listmaster/service/list-master.service.js +228 -135
- package/dist/module/listmaster/service/list-master.service.js.map +1 -1
- package/dist/module/mapper/entity/field-lovs.entity.d.ts +0 -1
- package/dist/module/mapper/entity/field-lovs.entity.js +1 -6
- package/dist/module/mapper/entity/field-lovs.entity.js.map +1 -1
- package/dist/module/mapper/entity/field-mapper.entity.d.ts +0 -1
- package/dist/module/mapper/entity/field-mapper.entity.js +1 -6
- package/dist/module/mapper/entity/field-mapper.entity.js.map +1 -1
- package/dist/module/mapper/entity/mapper.entity.d.ts +0 -2
- package/dist/module/mapper/entity/mapper.entity.js +1 -10
- package/dist/module/mapper/entity/mapper.entity.js.map +1 -1
- package/dist/module/mapper/service/field-mapper.service.d.ts +1 -1
- package/dist/module/mapper/service/field-mapper.service.js +0 -1
- package/dist/module/mapper/service/field-mapper.service.js.map +1 -1
- package/dist/module/master/controller/master.controller.d.ts +1 -3
- package/dist/module/master/controller/master.controller.js +4 -6
- package/dist/module/master/controller/master.controller.js.map +1 -1
- package/dist/module/master/service/master.service.d.ts +1 -1
- package/dist/module/master/service/master.service.js +30 -44
- package/dist/module/master/service/master.service.js.map +1 -1
- package/dist/module/meta/controller/attribute-master.controller.d.ts +3 -8
- package/dist/module/meta/controller/attribute-master.controller.js +5 -19
- package/dist/module/meta/controller/attribute-master.controller.js.map +1 -1
- package/dist/module/meta/controller/entity-dynamic.controller.js +6 -3
- package/dist/module/meta/controller/entity-dynamic.controller.js.map +1 -1
- package/dist/module/meta/controller/entity-master.controller.js +1 -0
- package/dist/module/meta/controller/entity-master.controller.js.map +1 -1
- package/dist/module/meta/controller/entity.controller.js +3 -3
- package/dist/module/meta/controller/entity.controller.js.map +1 -1
- package/dist/module/meta/controller/entity.public.controller.js +1 -0
- package/dist/module/meta/controller/entity.public.controller.js.map +1 -1
- package/dist/module/meta/controller/media.controller.d.ts +0 -6
- package/dist/module/meta/controller/media.controller.js +0 -27
- package/dist/module/meta/controller/media.controller.js.map +1 -1
- package/dist/module/meta/controller/meta.controller.d.ts +1 -6
- package/dist/module/meta/controller/meta.controller.js +2 -19
- package/dist/module/meta/controller/meta.controller.js.map +1 -1
- package/dist/module/meta/entity/attribute-master.entity.d.ts +12 -14
- package/dist/module/meta/entity/attribute-master.entity.js +41 -77
- package/dist/module/meta/entity/attribute-master.entity.js.map +1 -1
- package/dist/module/meta/entity/base-entity.entity.d.ts +6 -7
- package/dist/module/meta/entity/base-entity.entity.js +24 -47
- package/dist/module/meta/entity/base-entity.entity.js.map +1 -1
- package/dist/module/meta/entity/dynamic.entity.d.ts +3 -0
- package/dist/module/{enterprise/service/brand.service.js → meta/entity/dynamic.entity.js} +9 -9
- package/dist/module/meta/entity/dynamic.entity.js.map +1 -0
- package/dist/module/meta/entity/entity-master.entity.d.ts +6 -9
- package/dist/module/meta/entity/entity-master.entity.js +21 -66
- package/dist/module/meta/entity/entity-master.entity.js.map +1 -1
- package/dist/module/meta/entity/entity-relation-data.entity.d.ts +0 -1
- package/dist/module/meta/entity/entity-relation-data.entity.js +1 -7
- package/dist/module/meta/entity/entity-relation-data.entity.js.map +1 -1
- package/dist/module/meta/entity/entity-relation.entity.d.ts +0 -1
- package/dist/module/meta/entity/entity-relation.entity.js +1 -7
- package/dist/module/meta/entity/entity-relation.entity.js.map +1 -1
- package/dist/module/meta/entity/entity-table-column.entity.d.ts +0 -1
- package/dist/module/meta/entity/entity-table-column.entity.js +1 -7
- package/dist/module/meta/entity/entity-table-column.entity.js.map +1 -1
- package/dist/module/meta/entity/entity-table.entity.d.ts +0 -1
- package/dist/module/meta/entity/entity-table.entity.js +1 -7
- package/dist/module/meta/entity/entity-table.entity.js.map +1 -1
- package/dist/module/meta/entity/media-data.entity.d.ts +0 -2
- package/dist/module/meta/entity/media-data.entity.js +0 -8
- package/dist/module/meta/entity/media-data.entity.js.map +1 -1
- package/dist/module/meta/entity/preference.entity.d.ts +0 -1
- package/dist/module/meta/entity/preference.entity.js +1 -7
- package/dist/module/meta/entity/preference.entity.js.map +1 -1
- package/dist/module/meta/entity/view-master.entity.d.ts +0 -1
- package/dist/module/meta/entity/view-master.entity.js +1 -7
- package/dist/module/meta/entity/view-master.entity.js.map +1 -1
- package/dist/module/meta/entity.module.js +9 -23
- package/dist/module/meta/entity.module.js.map +1 -1
- package/dist/module/meta/repository/attribute-master.repository.d.ts +9 -3
- package/dist/module/meta/repository/attribute-master.repository.js +41 -15
- package/dist/module/meta/repository/attribute-master.repository.js.map +1 -1
- package/dist/module/meta/repository/entity-master.repository.js +1 -1
- package/dist/module/meta/repository/entity-master.repository.js.map +1 -1
- package/dist/module/meta/repository/entity-relation.repository.d.ts +1 -0
- package/dist/module/meta/repository/entity-relation.repository.js +10 -0
- package/dist/module/meta/repository/entity-relation.repository.js.map +1 -1
- package/dist/module/meta/service/attribute-master.service.d.ts +7 -7
- package/dist/module/meta/service/attribute-master.service.js +74 -49
- package/dist/module/meta/service/attribute-master.service.js.map +1 -1
- package/dist/module/meta/service/entity-dynamic.service.d.ts +13 -14
- package/dist/module/meta/service/entity-dynamic.service.js +215 -80
- package/dist/module/meta/service/entity-dynamic.service.js.map +1 -1
- package/dist/module/meta/service/entity-master.service.d.ts +10 -1
- package/dist/module/meta/service/entity-master.service.js +80 -3
- package/dist/module/meta/service/entity-master.service.js.map +1 -1
- package/dist/module/meta/service/entity-relation.service.d.ts +6 -5
- package/dist/module/meta/service/entity-relation.service.js +7 -10
- package/dist/module/meta/service/entity-relation.service.js.map +1 -1
- package/dist/module/meta/service/entity-service-impl.service.d.ts +4 -4
- package/dist/module/meta/service/entity-service-impl.service.js +14 -18
- package/dist/module/meta/service/entity-service-impl.service.js.map +1 -1
- package/dist/module/meta/service/entity-table.service.d.ts +4 -5
- package/dist/module/meta/service/entity-table.service.js +24 -45
- package/dist/module/meta/service/entity-table.service.js.map +1 -1
- package/dist/module/meta/service/entity-validation.service.d.ts +1 -3
- package/dist/module/meta/service/entity-validation.service.js +5 -34
- package/dist/module/meta/service/entity-validation.service.js.map +1 -1
- package/dist/module/meta/service/entity.service.d.ts +2 -2
- package/dist/module/meta/service/field-group.service.d.ts +1 -1
- package/dist/module/meta/service/media-data.service.d.ts +0 -4
- package/dist/module/meta/service/media-data.service.js +0 -129
- package/dist/module/meta/service/media-data.service.js.map +1 -1
- package/dist/module/meta/service/resolver.service.d.ts +2 -2
- package/dist/module/meta/service/resolver.service.js +55 -95
- package/dist/module/meta/service/resolver.service.js.map +1 -1
- package/dist/module/meta/service/section-master.service.d.ts +1 -1
- package/dist/module/meta/service/view-master.service.d.ts +1 -1
- package/dist/module/module/module.module.d.ts +0 -2
- package/dist/module/module/module.module.js +0 -54
- package/dist/module/module/module.module.js.map +1 -1
- package/dist/module/notification/entity/notification.entity.d.ts +17 -2
- package/dist/module/notification/entity/notification.entity.js +68 -2
- package/dist/module/notification/entity/notification.entity.js.map +1 -1
- package/dist/module/notification/notification.module.js +3 -12
- package/dist/module/notification/notification.module.js.map +1 -1
- package/dist/module/notification/service/email.service.d.ts +1 -0
- package/dist/module/notification/service/email.service.js +14 -0
- package/dist/module/notification/service/email.service.js.map +1 -1
- package/dist/module/notification/service/notification.service.d.ts +1 -5
- package/dist/module/notification/service/notification.service.js +41 -31
- package/dist/module/notification/service/notification.service.js.map +1 -1
- package/dist/module/preference_master/entity/preference.entity.d.ts +9 -0
- package/dist/module/{module/entity/module-access.entity.js → preference_master/entity/preference.entity.js} +24 -24
- package/dist/module/preference_master/entity/preference.entity.js.map +1 -0
- package/dist/module/preference_master/preference.service.d.ts +8 -0
- package/dist/module/{enterprise/service/enterprise.service.js → preference_master/preference.service.js} +14 -14
- package/dist/module/preference_master/preference.service.js.map +1 -0
- package/dist/module/preference_master/repo/preference.repository.d.ts +8 -0
- package/dist/module/{user/repository/userSession.repository.js → preference_master/repo/preference.repository.js} +25 -22
- package/dist/module/preference_master/repo/preference.repository.js.map +1 -0
- package/dist/module/user/entity/user-role-mapping.entity.d.ts +0 -12
- package/dist/module/user/entity/user-role-mapping.entity.js +0 -62
- package/dist/module/user/entity/user-role-mapping.entity.js.map +1 -1
- package/dist/module/workflow/controller/activity-log.controller.d.ts +5 -6
- package/dist/module/workflow/entity/action-category.entity.d.ts +0 -1
- package/dist/module/workflow/entity/action-category.entity.js +1 -7
- package/dist/module/workflow/entity/action-category.entity.js.map +1 -1
- package/dist/module/workflow/entity/action-data.entity.d.ts +0 -1
- package/dist/module/workflow/entity/action-data.entity.js +1 -6
- package/dist/module/workflow/entity/action-data.entity.js.map +1 -1
- package/dist/module/workflow/entity/action-resources-mapping.entity.d.ts +0 -1
- package/dist/module/workflow/entity/action-resources-mapping.entity.js +1 -7
- package/dist/module/workflow/entity/action-resources-mapping.entity.js.map +1 -1
- package/dist/module/workflow/entity/action-template-mapping.entity.d.ts +0 -1
- package/dist/module/workflow/entity/action-template-mapping.entity.js +1 -7
- package/dist/module/workflow/entity/action-template-mapping.entity.js.map +1 -1
- package/dist/module/workflow/entity/action.entity.d.ts +0 -1
- package/dist/module/workflow/entity/action.entity.js +1 -7
- package/dist/module/workflow/entity/action.entity.js.map +1 -1
- package/dist/module/workflow/entity/activity-log.entity.d.ts +0 -1
- package/dist/module/workflow/entity/activity-log.entity.js +1 -6
- package/dist/module/workflow/entity/activity-log.entity.js.map +1 -1
- package/dist/module/workflow/entity/comm-template.entity.d.ts +0 -1
- package/dist/module/workflow/entity/comm-template.entity.js +1 -7
- package/dist/module/workflow/entity/comm-template.entity.js.map +1 -1
- package/dist/module/workflow/entity/entity-modification.entity.d.ts +0 -1
- package/dist/module/workflow/entity/entity-modification.entity.js +1 -7
- package/dist/module/workflow/entity/entity-modification.entity.js.map +1 -1
- package/dist/module/workflow/entity/form.entity.d.ts +0 -1
- package/dist/module/workflow/entity/form.entity.js +1 -6
- package/dist/module/workflow/entity/form.entity.js.map +1 -1
- package/dist/module/workflow/entity/stage-action-mapping.entity.d.ts +0 -1
- package/dist/module/workflow/entity/stage-action-mapping.entity.js +1 -7
- package/dist/module/workflow/entity/stage-action-mapping.entity.js.map +1 -1
- package/dist/module/workflow/entity/stage-group.entity.d.ts +0 -1
- package/dist/module/workflow/entity/stage-group.entity.js +1 -7
- package/dist/module/workflow/entity/stage-group.entity.js.map +1 -1
- package/dist/module/workflow/entity/stage-movement-data.entity.d.ts +0 -1
- package/dist/module/workflow/entity/stage-movement-data.entity.js +1 -7
- package/dist/module/workflow/entity/stage-movement-data.entity.js.map +1 -1
- package/dist/module/workflow/entity/stage.entity.d.ts +0 -1
- package/dist/module/workflow/entity/stage.entity.js +1 -7
- package/dist/module/workflow/entity/stage.entity.js.map +1 -1
- package/dist/module/workflow/entity/task-data.entity.d.ts +0 -1
- package/dist/module/workflow/entity/task-data.entity.js +1 -6
- package/dist/module/workflow/entity/task-data.entity.js.map +1 -1
- package/dist/module/workflow/entity/workflow-data.entity.d.ts +0 -1
- package/dist/module/workflow/entity/workflow-data.entity.js +1 -10
- package/dist/module/workflow/entity/workflow-data.entity.js.map +1 -1
- package/dist/module/workflow/entity/workflow.entity.d.ts +0 -1
- package/dist/module/workflow/entity/workflow.entity.js +1 -7
- package/dist/module/workflow/entity/workflow.entity.js.map +1 -1
- package/dist/module/workflow/repository/action-category.repository.js.map +1 -1
- package/dist/module/workflow/repository/action-data.repository.d.ts +2 -2
- package/dist/module/workflow/repository/action-data.repository.js +9 -17
- package/dist/module/workflow/repository/action-data.repository.js.map +1 -1
- package/dist/module/workflow/repository/action.repository.d.ts +2 -2
- package/dist/module/workflow/repository/action.repository.js +12 -12
- package/dist/module/workflow/repository/action.repository.js.map +1 -1
- package/dist/module/workflow/repository/activity-log.repository.d.ts +5 -6
- package/dist/module/workflow/repository/comm-template.repository.js +2 -2
- package/dist/module/workflow/repository/comm-template.repository.js.map +1 -1
- package/dist/module/workflow/repository/form-master.repository.d.ts +2 -2
- package/dist/module/workflow/repository/form-master.repository.js +2 -2
- package/dist/module/workflow/repository/form-master.repository.js.map +1 -1
- package/dist/module/workflow/repository/stage-group.repository.d.ts +6 -6
- package/dist/module/workflow/repository/stage-movement.repository.d.ts +1 -1
- package/dist/module/workflow/repository/stage.repository.d.ts +5 -6
- package/dist/module/workflow/repository/stage.repository.js +8 -8
- package/dist/module/workflow/repository/task.repository.d.ts +1 -1
- package/dist/module/workflow/repository/task.repository.js +5 -5
- package/dist/module/workflow/repository/task.repository.js.map +1 -1
- package/dist/module/workflow/repository/workflow.repository.js +1 -1
- package/dist/module/workflow/repository/workflow.repository.js.map +1 -1
- package/dist/module/workflow/service/action-category.service.js.map +1 -1
- package/dist/module/workflow/service/action-data.service.d.ts +1 -1
- package/dist/module/workflow/service/action-data.service.js +1 -2
- package/dist/module/workflow/service/action-data.service.js.map +1 -1
- package/dist/module/workflow/service/action-template-mapping.service.js +2 -2
- package/dist/module/workflow/service/action.service.d.ts +1 -1
- package/dist/module/workflow/service/action.service.js +15 -17
- package/dist/module/workflow/service/action.service.js.map +1 -1
- package/dist/module/workflow/service/activity-log.service.d.ts +6 -7
- package/dist/module/workflow/service/activity-log.service.js.map +1 -1
- package/dist/module/workflow/service/comm-template.service.d.ts +1 -1
- package/dist/module/workflow/service/comm-template.service.js +0 -2
- package/dist/module/workflow/service/comm-template.service.js.map +1 -1
- package/dist/module/workflow/service/entity-modification.service.d.ts +1 -1
- package/dist/module/workflow/service/entity-modification.service.js +2 -3
- package/dist/module/workflow/service/entity-modification.service.js.map +1 -1
- package/dist/module/workflow/service/form-master.service.d.ts +1 -1
- package/dist/module/workflow/service/form-master.service.js +2 -2
- package/dist/module/workflow/service/form-master.service.js.map +1 -1
- package/dist/module/workflow/service/populate-workflow.service.d.ts +2 -6
- package/dist/module/workflow/service/populate-workflow.service.js +6 -17
- package/dist/module/workflow/service/populate-workflow.service.js.map +1 -1
- package/dist/module/workflow/service/stage-group.service.d.ts +1 -1
- package/dist/module/workflow/service/stage.service.d.ts +1 -1
- package/dist/module/workflow/service/stage.service.js.map +1 -1
- package/dist/module/workflow/service/task.service.d.ts +1 -1
- package/dist/module/workflow/service/task.service.js +10 -13
- package/dist/module/workflow/service/task.service.js.map +1 -1
- package/dist/module/workflow/service/workflow-meta.service.d.ts +1 -1
- package/dist/module/workflow/service/workflow-meta.service.js +2 -7
- package/dist/module/workflow/service/workflow-meta.service.js.map +1 -1
- package/dist/module/workflow/service/workflow.service.d.ts +1 -1
- package/dist/module/workflow/service/workflow.service.js +2 -2
- package/dist/module/workflow/service/workflow.service.js.map +1 -1
- package/dist/module/workflow-automation/entity/workflow-automation.entity.d.ts +1 -3
- package/dist/module/workflow-automation/entity/workflow-automation.entity.js +1 -9
- package/dist/module/workflow-automation/entity/workflow-automation.entity.js.map +1 -1
- package/dist/module/workflow-automation/service/schedule-handler.service.js +11 -12
- package/dist/module/workflow-automation/service/schedule-handler.service.js.map +1 -1
- package/dist/module/workflow-automation/service/workflow-automation.service.d.ts +8 -10
- package/dist/module/workflow-automation/service/workflow-automation.service.js +18 -15
- package/dist/module/workflow-automation/service/workflow-automation.service.js.map +1 -1
- package/dist/module/workflow-automation/workflow-automation.module.js +3 -1
- package/dist/module/workflow-automation/workflow-automation.module.js.map +1 -1
- package/dist/module/workflow-schedule/interfaces/schedule-job-data.interface.d.ts +2 -3
- package/dist/module/workflow-schedule/processors/schedule.processor.js +5 -9
- package/dist/module/workflow-schedule/processors/schedule.processor.js.map +1 -1
- package/dist/module/workflow-schedule/service/workflow-schedule.service.d.ts +1 -1
- package/dist/module/workflow-schedule/service/workflow-schedule.service.js +4 -13
- package/dist/module/workflow-schedule/service/workflow-schedule.service.js.map +1 -1
- package/dist/table.config.d.ts +2 -23
- package/dist/table.config.js +21 -33
- package/dist/table.config.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/utils/service/reflection-helper.service.js +2 -2
- package/docs/modules/event-driven-integration-design.md +91 -91
- package/docs/modules/integration.md +250 -250
- package/eslint.config.mjs +34 -34
- package/nest-cli.json +14 -14
- package/package.json +128 -125
- package/server.log +850 -0
- package/src/app.controller.ts +12 -13
- package/src/app.module.ts +62 -68
- package/src/app.service.ts +8 -8
- package/src/config/bull.config.ts +69 -69
- package/src/config/config.module.ts +17 -17
- package/src/config/database.config.ts +48 -48
- package/src/constant/attribute.constant.ts +9 -0
- package/src/constant/db-data-type.constant.ts +160 -0
- package/src/constant/entity.constant.ts +4 -0
- package/src/constant/global.constant.ts +67 -67
- package/src/constant/status.constant.ts +4 -0
- package/src/core.module.ts +96 -94
- package/src/decorators/roles.decorator.ts +7 -7
- package/src/dtos/response.dto.ts +6 -6
- package/src/dtos/response.ts +5 -5
- package/src/index.ts +1 -1
- package/src/module/auth/auth.module.ts +72 -49
- package/src/module/auth/controller/auth.controller.ts +28 -28
- package/src/module/auth/dto/user.dto.ts +56 -0
- package/src/module/auth/guards/google-auth.guard.ts +9 -9
- package/src/module/auth/guards/jwt.guard.ts +22 -22
- package/src/module/auth/services/auth.service.ts +56 -56
- package/src/module/auth/services/jwt.service.ts +11 -11
- package/src/module/auth/strategies/google.strategy.ts +54 -54
- package/src/module/auth/strategies/jwt.strategy.ts +64 -58
- package/src/module/auth/strategies/local.strategy.ts +13 -13
- package/src/module/dashboard/controller/dashboard.controller.ts +38 -38
- package/src/module/dashboard/dashboard.module.ts +19 -21
- package/src/module/dashboard/entity/dashboard_page_data.entity.ts +23 -27
- package/src/module/dashboard/entity/widget_master.entity.ts +15 -18
- package/src/module/dashboard/repository/dashboard.repository.ts +49 -49
- package/src/module/dashboard/service/dashboard.service.ts +69 -72
- package/src/module/eav/EAV_USAGE_GUIDE.md +351 -0
- package/src/module/eav/controller/eav.controller.ts +119 -0
- package/src/module/eav/dto/eav-operation.dto.ts +62 -0
- package/src/module/eav/eav.module.ts +80 -0
- package/src/module/eav/entity/eav-boolean.entity.ts +26 -0
- package/src/module/eav/entity/eav-date.entity.ts +25 -0
- package/src/module/eav/entity/eav-decimal.entity.ts +25 -0
- package/src/module/eav/entity/eav-int.entity.ts +25 -0
- package/src/module/eav/entity/eav-json.entity.ts +25 -0
- package/src/module/eav/entity/eav-text.entity.ts +25 -0
- package/src/module/eav/entity/eav-time.entity.ts +25 -0
- package/src/module/eav/entity/eav-timestamp.entity.ts +25 -0
- package/src/module/eav/entity/eav-varchar.entity.ts +25 -0
- package/src/module/eav/interface/eav-strategy.interface.ts +32 -0
- package/src/module/eav/repository/eav-boolean.repository.ts +67 -0
- package/src/module/eav/repository/eav-date.repository.ts +67 -0
- package/src/module/eav/repository/eav-decimal.repository.ts +67 -0
- package/src/module/eav/repository/eav-int.repository.ts +67 -0
- package/src/module/eav/repository/eav-json.repository.ts +67 -0
- package/src/module/eav/repository/eav-text.repository.ts +67 -0
- package/src/module/eav/repository/eav-time.repository.ts +67 -0
- package/src/module/eav/repository/eav-timestamp.repository.ts +67 -0
- package/src/module/eav/repository/eav-varchar.repository.ts +67 -0
- package/src/module/eav/service/eav-boolean.service.ts +64 -0
- package/src/module/eav/service/eav-date.service.ts +64 -0
- package/src/module/eav/service/eav-decimal.service.ts +64 -0
- package/src/module/eav/service/eav-factory.service.ts +93 -0
- package/src/module/eav/service/eav-int.service.ts +64 -0
- package/src/module/eav/service/eav-json.service.ts +64 -0
- package/src/module/eav/service/eav-text.service.ts +64 -0
- package/src/module/eav/service/eav-time.service.ts +64 -0
- package/src/module/eav/service/eav-timestamp.service.ts +64 -0
- package/src/module/eav/service/eav-varchar.service.ts +65 -0
- package/src/module/eav/service/eav.service.ts +116 -0
- package/src/module/entity_json/controller/entity_json.controller.ts +75 -60
- package/src/module/entity_json/docs/FlatJson_Filterin_System.md +2803 -2803
- package/src/module/entity_json/entity/entityJson.entity.ts +42 -42
- package/src/module/entity_json/entity_json.module.ts +22 -22
- package/src/module/entity_json/service/entityJson.repository.ts +37 -37
- package/src/module/entity_json/service/entity_json.service.ts +492 -486
- package/src/module/export/controller/export.controller.ts +83 -83
- package/src/module/export/export.module.ts +14 -14
- package/src/module/export/service/export.service.ts +107 -105
- package/src/module/filter/controller/filter.controller.ts +89 -87
- package/src/module/filter/dto/filter-request.dto.ts +41 -39
- package/src/module/filter/entity/saved-filter-detail.entity.ts +37 -41
- package/src/module/filter/entity/saved-filter-master.entity.ts +30 -35
- package/src/module/filter/filter.module.ts +33 -42
- package/src/module/filter/repository/saved-filter.repository.ts +247 -249
- package/src/module/filter/repository/saved.filter-detail.repository.ts +19 -19
- package/src/module/filter/service/filter-evaluator.service.ts +82 -82
- package/src/module/filter/service/filter.service.ts +1389 -1406
- package/src/module/filter/service/saved-filter.service.ts +164 -154
- package/src/module/ics/controller/ics.controller.ts +21 -21
- package/src/module/ics/dto/ics.dto.ts +55 -55
- package/src/module/ics/ics.module.ts +13 -13
- package/src/module/ics/service/ics.service.ts +57 -57
- package/src/module/integration/controller/calender-event.controller.ts +31 -31
- package/src/module/integration/controller/integration.controller.ts +662 -662
- package/src/module/integration/controller/wrapper.controller.ts +37 -37
- package/src/module/integration/dto/create-config.dto.ts +526 -526
- package/src/module/integration/entity/integration-config.entity.ts +112 -112
- package/src/module/integration/entity/integration-entity-mapper.entity.ts +14 -14
- package/src/module/integration/entity/integration-source.entity.ts +17 -17
- package/src/module/integration/entity/user-integration.entity.ts +71 -71
- package/src/module/integration/examples/usage.example.ts +338 -338
- package/src/module/integration/factories/base.factory.ts +7 -7
- package/src/module/integration/factories/email.factory.ts +49 -49
- package/src/module/integration/factories/integration.factory.ts +121 -121
- package/src/module/integration/factories/sms.factory.ts +51 -51
- package/src/module/integration/factories/telephone.factory.ts +41 -41
- package/src/module/integration/factories/whatsapp.factory.ts +56 -56
- package/src/module/integration/integration.module.ts +110 -110
- package/src/module/integration/service/calendar-event.service.ts +118 -118
- package/src/module/integration/service/integration-entity-mapper.service.ts +17 -17
- package/src/module/integration/service/integration-queue.service.ts +229 -229
- package/src/module/integration/service/integration.service.ts +2632 -2653
- package/src/module/integration/service/oauth.service.ts +224 -226
- package/src/module/integration/service/wrapper.service.ts +753 -754
- package/src/module/integration/strategies/email/gmail-api.strategy.ts +281 -307
- package/src/module/integration/strategies/email/outlook-api.strategy.ts +44 -44
- package/src/module/integration/strategies/email/outlook.strategy.ts +64 -64
- package/src/module/integration/strategies/email/sendgrid-api.strategy.ts +260 -263
- package/src/module/integration/strategies/integration.strategy.ts +97 -97
- package/src/module/integration/strategies/sms/gupshup-sms.strategy.ts +146 -146
- package/src/module/integration/strategies/sms/msg91-sms.strategy.ts +164 -164
- package/src/module/integration/strategies/sms/tubelight-sms.strategy.ts +163 -163
- package/src/module/integration/strategies/telephone/ozonetel-voice.strategy.ts +238 -238
- package/src/module/integration/strategies/telephone/tubelight-voice.strategy.ts +210 -210
- package/src/module/integration/strategies/whatsapp/gupshup-whatsapp.strategy.ts +359 -359
- package/src/module/integration/strategies/whatsapp/tubelight-whatsapp.strategy.ts +372 -372
- package/src/module/integration/strategies/whatsapp/whatsapp-cloud.strategy.ts +403 -403
- package/src/module/integration/strategies/whatsapp/whatsapp.strategy.ts +57 -57
- package/src/module/layout/controller/layout.controller.ts +38 -47
- package/src/module/layout/entity/header-items.entity.ts +28 -28
- package/src/module/layout/entity/header-section.entity.ts +13 -19
- package/src/module/layout/layout.module.ts +20 -21
- package/src/module/layout/repository/header-items.repository.ts +18 -18
- package/src/module/layout/repository/header-section.repository.ts +16 -22
- package/src/module/layout/service/header-section.service.ts +25 -25
- package/src/module/layout_preference/controller/layout_preference.controller.ts +76 -76
- package/src/module/layout_preference/entity/layout_preference.entity.ts +28 -28
- package/src/module/layout_preference/layout_preference.module.ts +22 -22
- package/src/module/layout_preference/repository/layout_preference.repository.ts +65 -65
- package/src/module/layout_preference/service/layout_preference.service.ts +191 -191
- package/src/module/linked_attributes/controller/linked_attributes.controller.ts +137 -137
- package/src/module/linked_attributes/dto/create-linked-attribute-smart.dto.ts +54 -54
- package/src/module/linked_attributes/entity/linked_attribute.entity.ts +51 -51
- package/src/module/linked_attributes/linked_attributes.module.ts +23 -23
- package/src/module/linked_attributes/repository/linked_attribute.repository.ts +12 -12
- package/src/module/linked_attributes/service/linked_attributes.service.ts +648 -648
- package/src/module/linked_attributes/test/linked-attributes.service.spec.ts +244 -244
- package/src/module/listmaster/controller/list-master.controller.ts +206 -230
- package/src/module/listmaster/entity/list-master-items.entity.ts +30 -43
- package/src/module/listmaster/entity/list-master.entity.ts +23 -33
- package/src/module/listmaster/listmaster.module.ts +46 -46
- package/src/module/listmaster/repository/list-master-items.repository.ts +225 -173
- package/src/module/listmaster/repository/list-master.repository.ts +56 -56
- package/src/module/listmaster/service/list-master-engine.ts +19 -19
- package/src/module/listmaster/service/list-master-extension.interface.ts +4 -4
- package/src/module/listmaster/service/list-master-item.service.ts +382 -280
- package/src/module/listmaster/service/list-master-registry.ts +15 -15
- package/src/module/listmaster/service/list-master.service.ts +767 -527
- package/src/module/mapper/controller/field-mapper.controller.ts +76 -76
- package/src/module/mapper/controller/mapper.controller.ts +20 -20
- package/src/module/mapper/dto/field-mapper.dto.ts +14 -14
- package/src/module/mapper/entity/field-lovs.entity.ts +15 -19
- package/src/module/mapper/entity/field-mapper.entity.ts +49 -53
- package/src/module/mapper/entity/mapper.entity.ts +9 -16
- package/src/module/mapper/mapper.module.ts +35 -35
- package/src/module/mapper/repository/field-lovs.repository.ts +35 -35
- package/src/module/mapper/repository/field-mapper.repository.ts +42 -42
- package/src/module/mapper/repository/mapper.repository.ts +32 -32
- package/src/module/mapper/service/field-mapper.service.ts +268 -269
- package/src/module/mapper/service/mapper.service.ts +80 -80
- package/src/module/master/controller/master.controller.ts +71 -74
- package/src/module/master/service/master.service.ts +460 -484
- package/src/module/meta/controller/attribute-master.controller.ts +82 -96
- package/src/module/meta/controller/entity-dynamic.controller.ts +123 -125
- package/src/module/meta/controller/entity-master.controller.ts +41 -41
- package/src/module/meta/controller/entity-relation.controller.ts +36 -36
- package/src/module/meta/controller/entity.controller.ts +301 -308
- package/src/module/meta/controller/entity.public.controller.ts +76 -75
- package/src/module/meta/controller/media.controller.ts +135 -167
- package/src/module/meta/controller/meta.controller.ts +80 -101
- package/src/module/meta/controller/view-master.controller.ts +79 -79
- package/src/module/meta/dto/entity-list-data.dto.ts +6 -6
- package/src/module/meta/dto/entity-tab.dto.ts +4 -4
- package/src/module/meta/dto/entity-table.dto.ts +12 -12
- package/src/module/meta/entity/attribute-master.entity.ts +62 -92
- package/src/module/meta/entity/base-entity.entity.ts +52 -75
- package/src/module/meta/entity/dynamic.entity.ts +6 -0
- package/src/module/meta/entity/entity-master.entity.ts +53 -91
- package/src/module/meta/entity/entity-relation-data.entity.ts +24 -29
- package/src/module/meta/entity/entity-relation.entity.ts +18 -23
- package/src/module/meta/entity/entity-table-column.entity.ts +56 -61
- package/src/module/meta/entity/entity-table.entity.ts +45 -50
- package/src/module/meta/entity/media-data.entity.ts +32 -38
- package/src/module/meta/entity/preference.entity.ts +57 -62
- package/src/module/meta/entity/view-master.entity.ts +36 -41
- package/src/module/meta/entity.module.ts +148 -165
- package/src/module/meta/repository/attribute-master.repository.ts +206 -164
- package/src/module/meta/repository/entity-attribute-update.repository.ts +48 -48
- package/src/module/meta/repository/entity-master.repository.ts +120 -120
- package/src/module/meta/repository/entity-relation.repository.ts +36 -22
- package/src/module/meta/repository/entity-table-column.repository.ts +39 -39
- package/src/module/meta/repository/entity-table.repository.ts +53 -53
- package/src/module/meta/repository/media-data.repository.ts +50 -50
- package/src/module/meta/repository/preference.repository.ts +20 -20
- package/src/module/meta/repository/user-app-mapping.repository.ts +28 -28
- package/src/module/meta/repository/view-master.repository.ts +42 -42
- package/src/module/meta/service/attribute-master.service.ts +254 -160
- package/src/module/meta/service/common.service.ts +9 -9
- package/src/module/meta/service/entity-attribute-update.service.ts +26 -26
- package/src/module/meta/service/entity-dynamic.service.ts +993 -835
- package/src/module/meta/service/entity-master.service.ts +288 -172
- package/src/module/meta/service/entity-realation-data.service.ts +9 -9
- package/src/module/meta/service/entity-relation.service.ts +85 -78
- package/src/module/meta/service/entity-service-impl.service.ts +394 -389
- package/src/module/meta/service/entity-table-column.service.ts +26 -26
- package/src/module/meta/service/entity-table.service.ts +157 -171
- package/src/module/meta/service/entity-validation.service.ts +187 -188
- package/src/module/meta/service/entity.service.ts +48 -48
- package/src/module/meta/service/field-group.service.ts +103 -103
- package/src/module/meta/service/media-data.service.ts +385 -610
- package/src/module/meta/service/preference.service.ts +16 -16
- package/src/module/meta/service/resolver.service.ts +260 -347
- package/src/module/meta/service/section-master.service.ts +104 -104
- package/src/module/meta/service/update-form-json.service.ts +22 -22
- package/src/module/meta/service/user-app-mapping.service.ts +17 -17
- package/src/module/meta/service/view-master.service.ts +127 -127
- package/src/module/microservice-client/microservice-clients.module.ts +13 -13
- package/src/module/microservice-client/service/microservice-client-factory.ts +37 -37
- package/src/module/microservice-client/service/microservice-clients.ts +4 -4
- package/src/module/module/module.module.ts +0 -42
- package/src/module/notification/controller/notification.controller.ts +58 -58
- package/src/module/notification/entity/notification.entity.ts +76 -26
- package/src/module/notification/entity/otp.entity.ts +28 -28
- package/src/module/notification/firebase-admin.config.ts +22 -22
- package/src/module/notification/notification.module.ts +63 -71
- package/src/module/notification/repository/otp.repository.ts +27 -27
- package/src/module/notification/service/email.service.ts +142 -127
- package/src/module/notification/service/notification.service.ts +163 -146
- package/src/module/preference_master/entity/preference.entity.ts +25 -0
- package/src/module/preference_master/preference.service.ts +27 -0
- package/src/module/preference_master/repo/preference.repository.ts +36 -0
- package/src/module/third-party-module/entity/third-party-api-registry.entity.ts +52 -52
- package/src/module/third-party-module/repository/third-party-api-registry.repository.ts +20 -20
- package/src/module/third-party-module/service/api-registry.service.ts +13 -13
- package/src/module/third-party-module/third-party.module.ts +12 -12
- package/src/module/user/entity/user-role-mapping.entity.ts +0 -38
- package/src/module/workflow/controller/action-category.controller.ts +54 -54
- package/src/module/workflow/controller/action-resource-mapping.controller.ts +23 -23
- package/src/module/workflow/controller/action-template-mapping.controller.ts +35 -35
- package/src/module/workflow/controller/action.controller.ts +111 -111
- package/src/module/workflow/controller/activity-log.controller.ts +55 -55
- package/src/module/workflow/controller/comm-template.controller.ts +43 -43
- package/src/module/workflow/controller/entity-modification.controller.ts +35 -35
- package/src/module/workflow/controller/form-master.controller.ts +43 -43
- package/src/module/workflow/controller/stage-group.controller.ts +49 -49
- package/src/module/workflow/controller/stage.controller.ts +51 -51
- package/src/module/workflow/controller/task.controller.ts +77 -77
- package/src/module/workflow/controller/workflow-list-master.controller.ts +44 -44
- package/src/module/workflow/controller/workflow-meta.controller.ts +80 -80
- package/src/module/workflow/controller/workflow.controller.ts +67 -67
- package/src/module/workflow/entity/action-category.entity.ts +33 -38
- package/src/module/workflow/entity/action-data.entity.ts +51 -55
- package/src/module/workflow/entity/action-resources-mapping.entity.ts +21 -29
- package/src/module/workflow/entity/action-template-mapping.entity.ts +12 -17
- package/src/module/workflow/entity/action.entity.ts +48 -53
- package/src/module/workflow/entity/activity-log.entity.ts +39 -43
- package/src/module/workflow/entity/comm-template.entity.ts +38 -43
- package/src/module/workflow/entity/entity-modification.entity.ts +33 -38
- package/src/module/workflow/entity/form.entity.ts +21 -25
- package/src/module/workflow/entity/stage-action-mapping.entity.ts +12 -17
- package/src/module/workflow/entity/stage-group.entity.ts +18 -23
- package/src/module/workflow/entity/stage-movement-data.entity.ts +33 -38
- package/src/module/workflow/entity/stage.entity.ts +15 -20
- package/src/module/workflow/entity/task-data.entity.ts +84 -88
- package/src/module/workflow/entity/template-attach-mapper.entity.ts +30 -30
- package/src/module/workflow/entity/workflow-data.entity.ts +6 -11
- package/src/module/workflow/entity/workflow-level-mapping.entity.ts +18 -18
- package/src/module/workflow/entity/workflow.entity.ts +15 -20
- package/src/module/workflow/repository/action-category.repository.ts +78 -79
- package/src/module/workflow/repository/action-data.repository.ts +345 -354
- package/src/module/workflow/repository/action.repository.ts +339 -339
- package/src/module/workflow/repository/activity-log.repository.ts +148 -148
- package/src/module/workflow/repository/comm-template.repository.ts +157 -157
- package/src/module/workflow/repository/form-master.repository.ts +50 -50
- package/src/module/workflow/repository/stage-group.repository.ts +186 -186
- package/src/module/workflow/repository/stage-movement.repository.ts +217 -217
- package/src/module/workflow/repository/stage.repository.ts +160 -160
- package/src/module/workflow/repository/task.repository.ts +154 -156
- package/src/module/workflow/repository/workflow.repository.ts +42 -42
- package/src/module/workflow/service/action-category.service.ts +32 -33
- package/src/module/workflow/service/action-data.service.ts +62 -62
- package/src/module/workflow/service/action-resources-mapping.service.ts +10 -10
- package/src/module/workflow/service/action-template-mapping.service.ts +137 -137
- package/src/module/workflow/service/action.service.ts +300 -302
- package/src/module/workflow/service/activity-log.service.ts +106 -107
- package/src/module/workflow/service/comm-template.service.ts +179 -181
- package/src/module/workflow/service/entity-modification.service.ts +55 -61
- package/src/module/workflow/service/form-master.service.ts +35 -35
- package/src/module/workflow/service/populate-workflow.service.ts +313 -325
- package/src/module/workflow/service/stage-action-mapping.service.ts +5 -5
- package/src/module/workflow/service/stage-group.service.ts +325 -325
- package/src/module/workflow/service/stage.service.ts +196 -197
- package/src/module/workflow/service/task.service.ts +547 -551
- package/src/module/workflow/service/workflow-list-master.service.ts +68 -68
- package/src/module/workflow/service/workflow-meta.service.ts +635 -640
- package/src/module/workflow/service/workflow.service.ts +212 -213
- package/src/module/workflow/workflow.module.ts +180 -180
- package/src/module/workflow-automation/SCHEDULING_GUIDE.md +145 -145
- package/src/module/workflow-automation/controller/workflow-automation.controller.ts +43 -43
- package/src/module/workflow-automation/entity/workflow-automation-action.entity.ts +26 -26
- package/src/module/workflow-automation/entity/workflow-automation.entity.ts +35 -40
- package/src/module/workflow-automation/interface/action.decorator.ts +7 -7
- package/src/module/workflow-automation/interface/action.interface.ts +5 -5
- package/src/module/workflow-automation/service/action-registery.service.ts +35 -35
- package/src/module/workflow-automation/service/schedule-handler.service.ts +167 -168
- package/src/module/workflow-automation/service/workflow-automation-engine.service.ts +219 -219
- package/src/module/workflow-automation/service/workflow-automation.service.ts +486 -474
- package/src/module/workflow-automation/workflow-automation.module.ts +55 -54
- package/src/module/workflow-schedule/INSTALLATION.md +244 -244
- package/src/module/workflow-schedule/MULTI_PROJECT_GUIDE.md +196 -196
- package/src/module/workflow-schedule/README.md +422 -422
- package/src/module/workflow-schedule/constants/schedule.constants.ts +48 -48
- package/src/module/workflow-schedule/controller/workflow-schedule.controller.ts +253 -253
- package/src/module/workflow-schedule/docs/CLAUDE_CODE_GUIDE.md +510 -510
- package/src/module/workflow-schedule/docs/CLAUDE_CODE_PROMPT.md +362 -362
- package/src/module/workflow-schedule/docs/RUN_CLAUDE_CODE.sh +68 -68
- package/src/module/workflow-schedule/dto/create-schedule.dto.ts +147 -147
- package/src/module/workflow-schedule/dto/get-execution-logs.dto.ts +119 -119
- package/src/module/workflow-schedule/dto/update-schedule.dto.ts +96 -96
- package/src/module/workflow-schedule/entities/scheduled-workflow.entity.ts +148 -148
- package/src/module/workflow-schedule/entities/workflow-execution-log.entity.ts +154 -154
- package/src/module/workflow-schedule/interfaces/schedule-job-data.interface.ts +51 -53
- package/src/module/workflow-schedule/interfaces/workflow-schedule-options.interface.ts +12 -12
- package/src/module/workflow-schedule/processors/schedule.processor.ts +616 -620
- package/src/module/workflow-schedule/service/workflow-schedule.service.ts +588 -597
- package/src/module/workflow-schedule/workflow-schedule.module.ts +67 -67
- package/src/resources/dev.properties.yaml +34 -31
- package/src/resources/local.properties.yaml +27 -27
- package/src/resources/properties.module.ts +12 -12
- package/src/resources/properties.yaml.ts +11 -11
- package/src/resources/uat.properties.yaml +31 -31
- package/src/table.config.ts +123 -135
- package/src/utils/dto/excel-data.dto.ts +14 -14
- package/src/utils/dto/excelsheet-data.dto.ts +5 -5
- package/src/utils/service/base64util.service.ts +18 -18
- package/src/utils/service/clockIDGenUtil.service.ts +21 -21
- package/src/utils/service/codeGenerator.service.ts +22 -22
- package/src/utils/service/dateUtil.service.ts +17 -17
- package/src/utils/service/encryptUtil.service.ts +97 -97
- package/src/utils/service/excel-helper.service.ts +72 -72
- package/src/utils/service/excelUtil.service.ts +15 -15
- package/src/utils/service/file-util.service.ts +11 -11
- package/src/utils/service/json-util.service.ts +23 -23
- package/src/utils/service/loggingUtil.service.ts +88 -88
- package/src/utils/service/reflection-helper.service.ts +62 -62
- package/src/utils/service/wbsCodeGen.service.ts +8 -8
- package/src/utils/utils.module.ts +27 -27
- package/tsconfig.build.json +4 -4
- package/tsconfig.json +24 -24
- package/dist/migrations/1732612800000-AddEntityJsonGinIndex.d.ts +0 -6
- package/dist/migrations/1732612800000-AddEntityJsonGinIndex.js +0 -32
- package/dist/migrations/1732612800000-AddEntityJsonGinIndex.js.map +0 -1
- package/dist/module/auth/guards/role.guard.d.ts +0 -9
- package/dist/module/auth/guards/role.guard.js +0 -59
- package/dist/module/auth/guards/role.guard.js.map +0 -1
- package/dist/module/enterprise/controller/organization.controller.d.ts +0 -14
- package/dist/module/enterprise/controller/organization.controller.js +0 -59
- package/dist/module/enterprise/controller/organization.controller.js.map +0 -1
- package/dist/module/enterprise/enterprise.module.d.ts +0 -2
- package/dist/module/enterprise/enterprise.module.js +0 -57
- package/dist/module/enterprise/enterprise.module.js.map +0 -1
- package/dist/module/enterprise/entity/enterprise.entity.d.ts +0 -13
- package/dist/module/enterprise/entity/enterprise.entity.js +0 -64
- package/dist/module/enterprise/entity/enterprise.entity.js.map +0 -1
- package/dist/module/enterprise/entity/organization-app-mapping.entity.d.ts +0 -5
- package/dist/module/enterprise/entity/organization-app-mapping.entity.js +0 -32
- package/dist/module/enterprise/entity/organization-app-mapping.entity.js.map +0 -1
- package/dist/module/enterprise/entity/organization.entity.d.ts +0 -30
- package/dist/module/enterprise/entity/organization.entity.js +0 -136
- package/dist/module/enterprise/entity/organization.entity.js.map +0 -1
- package/dist/module/enterprise/repository/enterprise.repository.d.ts +0 -8
- package/dist/module/enterprise/repository/enterprise.repository.js +0 -48
- package/dist/module/enterprise/repository/enterprise.repository.js.map +0 -1
- package/dist/module/enterprise/repository/organization.repository.d.ts +0 -8
- package/dist/module/enterprise/repository/organization.repository.js +0 -41
- package/dist/module/enterprise/repository/organization.repository.js.map +0 -1
- package/dist/module/enterprise/repository/school.repository.d.ts +0 -8
- package/dist/module/enterprise/repository/school.repository.js +0 -226
- package/dist/module/enterprise/repository/school.repository.js.map +0 -1
- package/dist/module/enterprise/service/brand.service.d.ts +0 -3
- package/dist/module/enterprise/service/brand.service.js.map +0 -1
- package/dist/module/enterprise/service/enterprise.service.d.ts +0 -8
- package/dist/module/enterprise/service/enterprise.service.js.map +0 -1
- package/dist/module/enterprise/service/organization-app-mapping.service.d.ts +0 -2
- package/dist/module/enterprise/service/organization-app-mapping.service.js +0 -17
- package/dist/module/enterprise/service/organization-app-mapping.service.js.map +0 -1
- package/dist/module/enterprise/service/organization.service.d.ts +0 -19
- package/dist/module/enterprise/service/organization.service.js +0 -120
- package/dist/module/enterprise/service/organization.service.js.map +0 -1
- package/dist/module/filter/service/flatjson-filter.service.d.ts +0 -32
- package/dist/module/filter/service/flatjson-filter.service.js +0 -632
- package/dist/module/filter/service/flatjson-filter.service.js.map +0 -1
- package/dist/module/lead/controller/lead.controller.d.ts +0 -20
- package/dist/module/lead/controller/lead.controller.js +0 -58
- package/dist/module/lead/controller/lead.controller.js.map +0 -1
- package/dist/module/lead/lead.module.d.ts +0 -2
- package/dist/module/lead/lead.module.js +0 -26
- package/dist/module/lead/lead.module.js.map +0 -1
- package/dist/module/lead/repository/lead.repository.d.ts +0 -10
- package/dist/module/lead/repository/lead.repository.js +0 -53
- package/dist/module/lead/repository/lead.repository.js.map +0 -1
- package/dist/module/lead/service/lead.service.d.ts +0 -20
- package/dist/module/lead/service/lead.service.js +0 -55
- package/dist/module/lead/service/lead.service.js.map +0 -1
- package/dist/module/meta/controller/app-master.controller.d.ts +0 -9
- package/dist/module/meta/controller/app-master.controller.js +0 -51
- package/dist/module/meta/controller/app-master.controller.js.map +0 -1
- package/dist/module/meta/entity/app-master.entity.d.ts +0 -13
- package/dist/module/meta/entity/app-master.entity.js +0 -62
- package/dist/module/meta/entity/app-master.entity.js.map +0 -1
- package/dist/module/meta/repository/app-master.repository.d.ts +0 -7
- package/dist/module/meta/repository/app-master.repository.js +0 -36
- package/dist/module/meta/repository/app-master.repository.js.map +0 -1
- package/dist/module/meta/service/app-master.service.d.ts +0 -8
- package/dist/module/meta/service/app-master.service.js +0 -45
- package/dist/module/meta/service/app-master.service.js.map +0 -1
- package/dist/module/meta/service/populate-meta.service.d.ts +0 -13
- package/dist/module/meta/service/populate-meta.service.js +0 -206
- package/dist/module/meta/service/populate-meta.service.js.map +0 -1
- package/dist/module/module/controller/menu.controller.d.ts +0 -8
- package/dist/module/module/controller/menu.controller.js +0 -41
- package/dist/module/module/controller/menu.controller.js.map +0 -1
- package/dist/module/module/controller/module-access.controller.d.ts +0 -35
- package/dist/module/module/controller/module-access.controller.js +0 -148
- package/dist/module/module/controller/module-access.controller.js.map +0 -1
- package/dist/module/module/entity/menu.entity.d.ts +0 -15
- package/dist/module/module/entity/menu.entity.js +0 -72
- package/dist/module/module/entity/menu.entity.js.map +0 -1
- package/dist/module/module/entity/module-access.entity.d.ts +0 -9
- package/dist/module/module/entity/module-access.entity.js.map +0 -1
- package/dist/module/module/entity/module-action.entity.d.ts +0 -6
- package/dist/module/module/entity/module-action.entity.js +0 -37
- package/dist/module/module/entity/module-action.entity.js.map +0 -1
- package/dist/module/module/entity/module.entity.d.ts +0 -18
- package/dist/module/module/entity/module.entity.js +0 -84
- package/dist/module/module/entity/module.entity.js.map +0 -1
- package/dist/module/module/repository/menu.repository.d.ts +0 -15
- package/dist/module/module/repository/menu.repository.js +0 -163
- package/dist/module/module/repository/menu.repository.js.map +0 -1
- package/dist/module/module/repository/module-access.repository.d.ts +0 -52
- package/dist/module/module/repository/module-access.repository.js +0 -283
- package/dist/module/module/repository/module-access.repository.js.map +0 -1
- package/dist/module/module/service/menu.service.d.ts +0 -12
- package/dist/module/module/service/menu.service.js +0 -59
- package/dist/module/module/service/menu.service.js.map +0 -1
- package/dist/module/module/service/module-access.service.d.ts +0 -63
- package/dist/module/module/service/module-access.service.js +0 -113
- package/dist/module/module/service/module-access.service.js.map +0 -1
- package/dist/module/notification/controller/otp.controller.d.ts +0 -35
- package/dist/module/notification/controller/otp.controller.js +0 -103
- package/dist/module/notification/controller/otp.controller.js.map +0 -1
- package/dist/module/notification/repository/notification.repository.d.ts +0 -7
- package/dist/module/notification/repository/notification.repository.js +0 -43
- package/dist/module/notification/repository/notification.repository.js.map +0 -1
- package/dist/module/notification/service/otp.service.d.ts +0 -31
- package/dist/module/notification/service/otp.service.js +0 -112
- package/dist/module/notification/service/otp.service.js.map +0 -1
- package/dist/module/user/controller/login.controller.d.ts +0 -26
- package/dist/module/user/controller/login.controller.js +0 -177
- package/dist/module/user/controller/login.controller.js.map +0 -1
- package/dist/module/user/controller/user.controller.d.ts +0 -9
- package/dist/module/user/controller/user.controller.js +0 -59
- package/dist/module/user/controller/user.controller.js.map +0 -1
- package/dist/module/user/dto/create-user.dto.d.ts +0 -17
- package/dist/module/user/dto/create-user.dto.js +0 -64
- package/dist/module/user/dto/create-user.dto.js.map +0 -1
- package/dist/module/user/dto/update-user.dto.d.ts +0 -5
- package/dist/module/user/dto/update-user.dto.js +0 -9
- package/dist/module/user/dto/update-user.dto.js.map +0 -1
- package/dist/module/user/entity/role.entity.d.ts +0 -11
- package/dist/module/user/entity/role.entity.js +0 -56
- package/dist/module/user/entity/role.entity.js.map +0 -1
- package/dist/module/user/entity/user-session.entity.d.ts +0 -15
- package/dist/module/user/entity/user-session.entity.js +0 -102
- package/dist/module/user/entity/user-session.entity.js.map +0 -1
- package/dist/module/user/entity/user.entity.js +0 -95
- package/dist/module/user/entity/user.entity.js.map +0 -1
- package/dist/module/user/repository/role.repository.d.ts +0 -18
- package/dist/module/user/repository/role.repository.js +0 -87
- package/dist/module/user/repository/role.repository.js.map +0 -1
- package/dist/module/user/repository/user-role-mapping.repository.d.ts +0 -19
- package/dist/module/user/repository/user-role-mapping.repository.js +0 -110
- package/dist/module/user/repository/user-role-mapping.repository.js.map +0 -1
- package/dist/module/user/repository/user.repository.d.ts +0 -10
- package/dist/module/user/repository/user.repository.js +0 -58
- package/dist/module/user/repository/user.repository.js.map +0 -1
- package/dist/module/user/repository/userSession.repository.d.ts +0 -10
- package/dist/module/user/repository/userSession.repository.js.map +0 -1
- package/dist/module/user/service/login.service.d.ts +0 -41
- package/dist/module/user/service/login.service.js +0 -242
- package/dist/module/user/service/login.service.js.map +0 -1
- package/dist/module/user/service/role.service.d.ts +0 -25
- package/dist/module/user/service/role.service.js +0 -154
- package/dist/module/user/service/role.service.js.map +0 -1
- package/dist/module/user/service/user-role-mapping.service.d.ts +0 -12
- package/dist/module/user/service/user-role-mapping.service.js +0 -60
- package/dist/module/user/service/user-role-mapping.service.js.map +0 -1
- package/dist/module/user/service/user-session.service.d.ts +0 -31
- package/dist/module/user/service/user-session.service.js +0 -161
- package/dist/module/user/service/user-session.service.js.map +0 -1
- package/dist/module/user/service/user.service.d.ts +0 -38
- package/dist/module/user/service/user.service.js +0 -243
- package/dist/module/user/service/user.service.js.map +0 -1
- package/dist/module/user/user.module.d.ts +0 -2
- package/dist/module/user/user.module.js +0 -78
- package/dist/module/user/user.module.js.map +0 -1
- package/src/migrations/1732612800000-AddEntityJsonGinIndex.ts +0 -41
- package/src/module/auth/guards/role.guard.ts +0 -68
- package/src/module/enterprise/controller/organization.controller.ts +0 -36
- package/src/module/enterprise/enterprise.module.ts +0 -45
- package/src/module/enterprise/entity/enterprise.entity.ts +0 -37
- package/src/module/enterprise/entity/organization-app-mapping.entity.ts +0 -13
- package/src/module/enterprise/entity/organization.entity.ts +0 -92
- package/src/module/enterprise/repository/enterprise.repository.ts +0 -31
- package/src/module/enterprise/repository/organization.repository.ts +0 -26
- package/src/module/enterprise/repository/school.repository.ts +0 -289
- package/src/module/enterprise/service/brand.service.ts +0 -5
- package/src/module/enterprise/service/enterprise.service.ts +0 -16
- package/src/module/enterprise/service/organization-app-mapping.service.ts +0 -4
- package/src/module/enterprise/service/organization.service.ts +0 -146
- package/src/module/filter/service/flatjson-filter.service.ts +0 -903
- package/src/module/filter/test/flatjson-filter.service.spec.ts +0 -415
- package/src/module/lead/controller/lead.controller.ts +0 -30
- package/src/module/lead/lead.module.ts +0 -14
- package/src/module/lead/repository/lead.repository.ts +0 -41
- package/src/module/lead/service/lead.service.ts +0 -54
- package/src/module/meta/controller/app-master.controller.ts +0 -38
- package/src/module/meta/entity/app-master.entity.ts +0 -37
- package/src/module/meta/repository/app-master.repository.ts +0 -20
- package/src/module/meta/service/app-master.service.ts +0 -37
- package/src/module/meta/service/populate-meta.service.ts +0 -228
- package/src/module/module/controller/menu.controller.ts +0 -15
- package/src/module/module/controller/module-access.controller.ts +0 -133
- package/src/module/module/entity/menu.entity.ts +0 -43
- package/src/module/module/entity/module-access.entity.ts +0 -25
- package/src/module/module/entity/module-action.entity.ts +0 -17
- package/src/module/module/entity/module.entity.ts +0 -52
- package/src/module/module/repository/menu.repository.ts +0 -186
- package/src/module/module/repository/module-access.repository.ts +0 -344
- package/src/module/module/service/menu.service.ts +0 -82
- package/src/module/module/service/module-access.service.ts +0 -189
- package/src/module/notification/controller/otp.controller.ts +0 -117
- package/src/module/notification/repository/notification.repository.ts +0 -33
- package/src/module/notification/service/otp.service.ts +0 -133
- package/src/module/user/controller/login.controller.ts +0 -199
- package/src/module/user/controller/user.controller.ts +0 -40
- package/src/module/user/dto/create-user.dto.ts +0 -62
- package/src/module/user/dto/update-user.dto.ts +0 -4
- package/src/module/user/entity/role.entity.ts +0 -33
- package/src/module/user/entity/user-session.entity.ts +0 -73
- package/src/module/user/entity/user.entity.ts +0 -62
- package/src/module/user/repository/role.repository.ts +0 -96
- package/src/module/user/repository/user-role-mapping.repository.ts +0 -126
- package/src/module/user/repository/user.repository.ts +0 -50
- package/src/module/user/repository/userSession.repository.ts +0 -33
- package/src/module/user/service/login.service.ts +0 -326
- package/src/module/user/service/role.service.ts +0 -197
- package/src/module/user/service/user-role-mapping.service.ts +0 -98
- package/src/module/user/service/user-session.service.ts +0 -201
- package/src/module/user/service/user.service.ts +0 -368
- package/src/module/user/user.module.ts +0 -65
|
@@ -8,16 +8,17 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
11
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
15
|
exports.EntityValidationService = void 0;
|
|
13
16
|
const common_1 = require("@nestjs/common");
|
|
14
17
|
const attribute_master_service_1 = require("./attribute-master.service");
|
|
15
|
-
const typeorm_1 = require("typeorm");
|
|
16
18
|
const config_1 = require("@nestjs/config");
|
|
17
19
|
let EntityValidationService = class EntityValidationService {
|
|
18
|
-
constructor(attributeMasterService,
|
|
20
|
+
constructor(attributeMasterService, configService) {
|
|
19
21
|
this.attributeMasterService = attributeMasterService;
|
|
20
|
-
this.entityManager = entityManager;
|
|
21
22
|
this.configService = configService;
|
|
22
23
|
this.schema = this.configService.get('DB_SCHEMA');
|
|
23
24
|
}
|
|
@@ -39,36 +40,6 @@ let EntityValidationService = class EntityValidationService {
|
|
|
39
40
|
async validateUniqueFields(entityData, attributeData, entityType, db_table_name, loggedInUser) {
|
|
40
41
|
const errors = [];
|
|
41
42
|
const currentId = entityData.id;
|
|
42
|
-
for (const attr of attributeData.filter((a) => a.is_unique)) {
|
|
43
|
-
const value = entityData[attr.attribute_key];
|
|
44
|
-
if (this.hasValidValue(value)) {
|
|
45
|
-
let qb = this.entityManager
|
|
46
|
-
.createQueryBuilder()
|
|
47
|
-
.select('*')
|
|
48
|
-
.from(`${this.schema}.${db_table_name}`, db_table_name)
|
|
49
|
-
.where(`${db_table_name}.${attr.attribute_key} = :value`, { value });
|
|
50
|
-
if (entityType !== 'ORG' && entityType !== 'ORGP') {
|
|
51
|
-
const level_type = loggedInUser.level_type;
|
|
52
|
-
const level_id = loggedInUser.level_id;
|
|
53
|
-
if (level_type !== undefined && level_type !== null) {
|
|
54
|
-
qb = qb.andWhere(`${db_table_name}.level_type = :level_type AND ${db_table_name}.level_id = :level_id`, {
|
|
55
|
-
level_type,
|
|
56
|
-
level_id,
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
if (currentId) {
|
|
61
|
-
qb = qb.andWhere(`${db_table_name}.id != :id`, { id: currentId });
|
|
62
|
-
}
|
|
63
|
-
const existing = await qb.limit(1).getRawOne();
|
|
64
|
-
if (existing) {
|
|
65
|
-
errors.push({
|
|
66
|
-
field: attr.name,
|
|
67
|
-
message: `Field ${attr.name} must be unique. Value ${value} already exists.`,
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
43
|
return errors;
|
|
73
44
|
}
|
|
74
45
|
async validateRegexFields(entityData, attributeData) {
|
|
@@ -111,8 +82,8 @@ let EntityValidationService = class EntityValidationService {
|
|
|
111
82
|
exports.EntityValidationService = EntityValidationService;
|
|
112
83
|
exports.EntityValidationService = EntityValidationService = __decorate([
|
|
113
84
|
(0, common_1.Injectable)(),
|
|
85
|
+
__param(0, (0, common_1.Inject)('AttributeMasterService')),
|
|
114
86
|
__metadata("design:paramtypes", [attribute_master_service_1.AttributeMasterService,
|
|
115
|
-
typeorm_1.EntityManager,
|
|
116
87
|
config_1.ConfigService])
|
|
117
88
|
], EntityValidationService);
|
|
118
89
|
//# sourceMappingURL=entity-validation.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-validation.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/entity-validation.service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"entity-validation.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/entity-validation.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAoD;AACpD,yEAA0F;AAE1F,2CAA+C;AAQxC,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IAClC,YAEE,sBAA+D,EACvD,aAA4B;QADnB,2BAAsB,GAAtB,sBAAsB,CAAwB;QACvD,kBAAa,GAAb,aAAa,CAAe;QAItC,WAAM,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IAF7C,CAAC;IAOD,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,UAA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IACd,CAAC;CACF,CAAA;AA/KY,0DAAuB;kCAAvB,uBAAuB;IADnC,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,eAAM,EAAC,wBAAwB,CAAC,CAAA;qCACQ,iDAAsB;QACxC,sBAAa;GAJ3B,uBAAuB,CA+KnC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { UserData } from '
|
|
1
|
+
import { UserData } from 'src/module/auth/dto/user.dto';
|
|
2
2
|
import { BaseEntity } from '../entity/base-entity.entity';
|
|
3
3
|
import { EntityManager } from 'typeorm';
|
|
4
4
|
export interface EntityService<T extends BaseEntity> {
|
|
5
5
|
createEntity(entityData: T, loggedInUser: UserData, manager?: EntityManager): Promise<BaseEntity>;
|
|
6
|
-
getEntityData(entityType: string, entityId: number, loggedInUser: UserData): Promise<BaseEntity | null>;
|
|
6
|
+
getEntityData(entityType: string, entityId: number, loggedInUser: UserData, resolved?: boolean): Promise<BaseEntity | null>;
|
|
7
7
|
getResolvedEntityData(entityType: string, entityId: number, loggedInUser: UserData): Promise<BaseEntity | null>;
|
|
8
8
|
getEntityList(entityType: string, loggedInUser: UserData, filters?: Record<string, any>): Promise<BaseEntity[]>;
|
|
9
9
|
updateEntity(entityData: T, loggedInUserData: UserData, app_code?: string): Promise<BaseEntity>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EntityServiceImpl } from './entity-service-impl.service';
|
|
2
2
|
import { BaseEntity } from '../entity/base-entity.entity';
|
|
3
|
-
import { UserData } from '
|
|
3
|
+
import { UserData } from 'src/module/auth/dto/user.dto';
|
|
4
4
|
import { EntityManager } from 'typeorm';
|
|
5
5
|
import { ViewMaster } from '../entity/view-master.entity';
|
|
6
6
|
export declare class FieldGroupService extends EntityServiceImpl {
|
|
@@ -28,8 +28,6 @@ export declare class MediaDataService extends EntityServiceImpl {
|
|
|
28
28
|
fileName: string;
|
|
29
29
|
id: number;
|
|
30
30
|
size: number | undefined;
|
|
31
|
-
review_status: string;
|
|
32
|
-
remark: string;
|
|
33
31
|
}>;
|
|
34
32
|
getMediaInlineUrl(id: number, loggedInUser: any, expiresIn?: number): Promise<{
|
|
35
33
|
signedUrl: string;
|
|
@@ -38,9 +36,7 @@ export declare class MediaDataService extends EntityServiceImpl {
|
|
|
38
36
|
size: number | undefined;
|
|
39
37
|
uploadedDate: Date;
|
|
40
38
|
}>;
|
|
41
|
-
buildUploadPathGenericdd(mappedEntityType: string, loggedInUser: any, mappedEntityId?: number, parentId?: number, parentType?: string): Promise<string | null>;
|
|
42
39
|
buildUploadPathGeneric(mappedEntityType: string, loggedInUser: any, mappedEntityId?: number, parentId?: number, parentType?: string): Promise<string | null>;
|
|
43
40
|
private resolveUploadPath;
|
|
44
41
|
buildUploadPath(mappedEntityType: string, loggedInUser: any, mappedEntityId?: number, parentId?: number, parentType?: string): Promise<string | null>;
|
|
45
|
-
updateMediaReviewStatus(id: number, review_status: string, remark: string, loggedInUser: any): Promise<void>;
|
|
46
42
|
}
|
|
@@ -122,8 +122,6 @@ let MediaDataService = class MediaDataService extends entity_service_impl_servic
|
|
|
122
122
|
fileName: mediaData.file_name,
|
|
123
123
|
id: mediaData.id,
|
|
124
124
|
size: fileSize,
|
|
125
|
-
review_status: mediaData.review_status,
|
|
126
|
-
remark: mediaData.remark,
|
|
127
125
|
};
|
|
128
126
|
}
|
|
129
127
|
catch (error) {
|
|
@@ -170,125 +168,6 @@ let MediaDataService = class MediaDataService extends entity_service_impl_servic
|
|
|
170
168
|
throw new Error('Failed to generate inline URL');
|
|
171
169
|
}
|
|
172
170
|
}
|
|
173
|
-
async buildUploadPathGenericdd(mappedEntityType, loggedInUser, mappedEntityId, parentId, parentType) {
|
|
174
|
-
const entityMaster = await this.entityMasterService.getEntityData(mappedEntityType, loggedInUser);
|
|
175
|
-
if (!entityMaster) {
|
|
176
|
-
throw new Error(`Entity master not found for ${mappedEntityType}`);
|
|
177
|
-
}
|
|
178
|
-
let pathTemplate = entityMaster.doc_upload_path ?? '';
|
|
179
|
-
const entityOverwrite = entityMaster.overwrite_path ?? 0;
|
|
180
|
-
if (!pathTemplate) {
|
|
181
|
-
throw new Error(`doc_upload_path not defined for ${mappedEntityType}`);
|
|
182
|
-
}
|
|
183
|
-
const replacements = {};
|
|
184
|
-
const organizationRepo = this.reflectionHelper.getRepoService('OrganizationData');
|
|
185
|
-
let organizationData = await organizationRepo.findOne({
|
|
186
|
-
where: {
|
|
187
|
-
id: loggedInUser.organization_id,
|
|
188
|
-
},
|
|
189
|
-
});
|
|
190
|
-
replacements['org_code'] = organizationData.code;
|
|
191
|
-
let levelEntityId;
|
|
192
|
-
let levelEntityType;
|
|
193
|
-
if (parentId && parentType) {
|
|
194
|
-
levelEntityId = parentId;
|
|
195
|
-
levelEntityType = parentType;
|
|
196
|
-
}
|
|
197
|
-
else {
|
|
198
|
-
levelEntityId = entityOverwrite ? mappedEntityId : loggedInUser.level_id;
|
|
199
|
-
levelEntityType = entityOverwrite
|
|
200
|
-
? mappedEntityType
|
|
201
|
-
: loggedInUser.level_type;
|
|
202
|
-
}
|
|
203
|
-
const getEntityData = await this.entityMasterService.getEntityData(levelEntityType, loggedInUser);
|
|
204
|
-
if (!getEntityData)
|
|
205
|
-
return null;
|
|
206
|
-
const levelEntityDataResult = await this.entityManager.query(`SELECT *
|
|
207
|
-
FROM ${getEntityData?.db_table_name}
|
|
208
|
-
WHERE id = $1`, [levelEntityId]);
|
|
209
|
-
const levelEntityData = levelEntityDataResult[0] || null;
|
|
210
|
-
if (levelEntityData?.code) {
|
|
211
|
-
replacements['level_code'] = levelEntityData.code;
|
|
212
|
-
}
|
|
213
|
-
if (parentId && parentType && mappedEntityId && mappedEntityType) {
|
|
214
|
-
const mappedEntityKey = `${mappedEntityType.toLowerCase()}_code`;
|
|
215
|
-
const mappedEntityData = await super.getEntityData(mappedEntityType, mappedEntityId, loggedInUser);
|
|
216
|
-
if (mappedEntityData?.code) {
|
|
217
|
-
replacements[mappedEntityKey] = mappedEntityData.code;
|
|
218
|
-
const mappedVariable = `\${${mappedEntityKey}}`;
|
|
219
|
-
if (!pathTemplate.includes(mappedVariable)) {
|
|
220
|
-
pathTemplate = pathTemplate + `/${mappedVariable}`;
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
if (parentId && parentType) {
|
|
225
|
-
const getEntityData = await this.entityMasterService.getEntityData(mappedEntityType, loggedInUser);
|
|
226
|
-
if (!getEntityData)
|
|
227
|
-
return null;
|
|
228
|
-
const levelEntityDataResult = await this.entityManager.query(`SELECT *
|
|
229
|
-
FROM ${getEntityData?.db_table_name}
|
|
230
|
-
WHERE id = $1`, [mappedEntityId]);
|
|
231
|
-
if (levelEntityDataResult?.[0].code &&
|
|
232
|
-
parentType != 'SCH' &&
|
|
233
|
-
loggedInUser.level_type != 'SCH') {
|
|
234
|
-
replacements['template_code'] = levelEntityDataResult[0].code;
|
|
235
|
-
pathTemplate = '${org_code}/template/${template_code}';
|
|
236
|
-
}
|
|
237
|
-
else {
|
|
238
|
-
const getEntityData = await this.entityMasterService.getEntityData(mappedEntityType, loggedInUser);
|
|
239
|
-
if (!getEntityData)
|
|
240
|
-
return null;
|
|
241
|
-
const levelEntityDataResult = await this.entityManager.query(`SELECT *
|
|
242
|
-
FROM ${getEntityData?.db_table_name}
|
|
243
|
-
WHERE id = $1`, [mappedEntityId]);
|
|
244
|
-
replacements['template_code'] = levelEntityDataResult?.[0].code;
|
|
245
|
-
pathTemplate = '${org_code}/${level_code}/template/${template_code}';
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
const matches = pathTemplate.match(/\$\{(\w+)\}/g) || [];
|
|
249
|
-
for (const variable of matches) {
|
|
250
|
-
const key = variable.replace(/\$\{|\}/g, '');
|
|
251
|
-
if (replacements[key])
|
|
252
|
-
continue;
|
|
253
|
-
if (key === 'org_code')
|
|
254
|
-
continue;
|
|
255
|
-
if (key === 'level_code')
|
|
256
|
-
continue;
|
|
257
|
-
if (key === 'template_code')
|
|
258
|
-
continue;
|
|
259
|
-
if (key.endsWith('_code')) {
|
|
260
|
-
const entityType = key.replace('_code', '').toUpperCase();
|
|
261
|
-
let entityId;
|
|
262
|
-
if (key === 'template_code') {
|
|
263
|
-
if (parentType?.toUpperCase() === 'TEMPLATE' && parentId) {
|
|
264
|
-
entityId = parentId;
|
|
265
|
-
}
|
|
266
|
-
else if (mappedEntityType === 'TEMPLATE') {
|
|
267
|
-
entityId = mappedEntityId;
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
else {
|
|
271
|
-
if (parentType?.toUpperCase() === entityType && parentId) {
|
|
272
|
-
entityId = parentId;
|
|
273
|
-
}
|
|
274
|
-
else if (mappedEntityType === entityType) {
|
|
275
|
-
entityId = mappedEntityId;
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
if (entityId) {
|
|
279
|
-
const entityData = await super.getEntityData(entityType, entityId, loggedInUser);
|
|
280
|
-
replacements[key] = entityData?.code ?? null;
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
if (loggedInUser.level_type === 'ORG' && entityOverwrite === 0) {
|
|
285
|
-
}
|
|
286
|
-
if (pathTemplate) {
|
|
287
|
-
const finalPath = this.resolveUploadPath(pathTemplate, replacements);
|
|
288
|
-
return finalPath;
|
|
289
|
-
}
|
|
290
|
-
return null;
|
|
291
|
-
}
|
|
292
171
|
async buildUploadPathGeneric(mappedEntityType, loggedInUser, mappedEntityId, parentId, parentType) {
|
|
293
172
|
let appCode = '';
|
|
294
173
|
let org_id = loggedInUser.organization_id;
|
|
@@ -363,14 +242,6 @@ let MediaDataService = class MediaDataService extends entity_service_impl_servic
|
|
|
363
242
|
async buildUploadPath(mappedEntityType, loggedInUser, mappedEntityId, parentId, parentType) {
|
|
364
243
|
return this.buildUploadPathGeneric(mappedEntityType, loggedInUser, mappedEntityId, parentId, parentType);
|
|
365
244
|
}
|
|
366
|
-
async updateMediaReviewStatus(id, review_status, remark, loggedInUser) {
|
|
367
|
-
await super.updateEntity({
|
|
368
|
-
id,
|
|
369
|
-
entity_type: 'MDA',
|
|
370
|
-
review_status,
|
|
371
|
-
remark,
|
|
372
|
-
}, loggedInUser);
|
|
373
|
-
}
|
|
374
245
|
};
|
|
375
246
|
exports.MediaDataService = MediaDataService;
|
|
376
247
|
exports.MediaDataService = MediaDataService = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"media-data.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/media-data.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,2CAA+C;AAC/C,qCAA6B;AAC7B,iCAA0B;AAC1B,qCAAwC;AACxC,+BAAoC;AACpC,uEAG2C;AAC3C,mEAAwD;AACxD,+EAA0E;AAC1E,+EAAkE;AAG3D,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,+CAAiB;IACrD,YACmB,aAA4B,EAC5B,eAAoC,EAC7C,aAA4B;QAEpC,KAAK,EAAE,CAAC;QAJS,kBAAa,GAAb,aAAa,CAAe;QAC5B,oBAAe,GAAf,eAAe,CAAqB;QAC7C,kBAAa,GAAb,aAAa,CAAe;QAKtC,kBAAa,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC;QACnE,sBAAiB,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;QACpE,aAAQ,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;QACvD,eAAU,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAS,oBAAoB,CAAC,CAAC;QAElE,OAAE,GAAG,IAAI,YAAE,CAAC;YACV,WAAW,EAAE,IAAI,CAAC,aAAa;YAC/B,eAAe,EAAE,IAAI,CAAC,iBAAiB;YACvC,MAAM,EAAE,IAAI,CAAC,QAAQ;YACrB,gBAAgB,EAAE,IAAI;SACvB,CAAC,CAAC;IAZH,CAAC;IAcD,KAA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E,EAAE;YACF,WAAW,EAAE,KAAK;YAClB,aAAa;YACb,MAAM;SACA,EACR,YAAY,CACb,CAAC;IACJ,CAAC;CACF,CAAA;AAllBY,4CAAgB;2BAAhB,gBAAgB;IAD5B,IAAA,mBAAU,GAAE;qCAGuB,sBAAa;QACX,2CAAmB;QAC9B,uBAAa;GAJ3B,gBAAgB,CAklB5B"}
|
|
1
|
+
{"version":3,"file":"media-data.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/media-data.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,2CAA+C;AAC/C,qCAA6B;AAC7B,iCAA0B;AAC1B,qCAAwC;AACxC,+BAAoC;AACpC,uEAG2C;AAC3C,mEAAwD;AACxD,+EAA0E;AAC1E,+EAAkE;AAG3D,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,+CAAiB;IACrD,YACmB,aAA4B,EAC5B,eAAoC,EAC7C,aAA4B;QAEpC,KAAK,EAAE,CAAC;QAJS,kBAAa,GAAb,aAAa,CAAe;QAC5B,oBAAe,GAAf,eAAe,CAAqB;QAC7C,kBAAa,GAAb,aAAa,CAAe;QAKtC,kBAAa,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC;QACnE,sBAAiB,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;QACpE,aAAQ,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;QACvD,eAAU,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAS,oBAAoB,CAAC,CAAC;QAElE,OAAE,GAAG,IAAI,YAAE,CAAC;YACV,WAAW,EAAE,IAAI,CAAC,aAAa;YAC/B,eAAe,EAAE,IAAI,CAAC,iBAAiB;YACvC,MAAM,EAAE,IAAI,CAAC,QAAQ;YACrB,gBAAgB,EAAE,IAAI;SACvB,CAAC,CAAC;IAZH,CAAC;IAcD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@@
|
|
|
1
|
-
import { UserData } from '
|
|
1
|
+
import { UserData } from 'src/module/auth/dto/user.dto';
|
|
2
2
|
import { ListMasterService } from 'src/module/listmaster/service/list-master.service';
|
|
3
3
|
import { ModuleRef } from '@nestjs/core';
|
|
4
4
|
import { AttributeMasterRepository } from '../repository/attribute-master.repository';
|
|
@@ -15,7 +15,7 @@ export declare class ResolverService {
|
|
|
15
15
|
private mediaDataService;
|
|
16
16
|
constructor(listMasterService: ListMasterService, moduleRef: ModuleRef, attributeMasterRepo: AttributeMasterRepository, reflectionHelper: ReflectionHelper, entityMasterRepo: EntityMasterRepository, entityManger: EntityManager);
|
|
17
17
|
private getMediaDataService;
|
|
18
|
-
getResolvedData(loggedInUser: any, entityData: any, entityType: string
|
|
18
|
+
getResolvedData(loggedInUser: any, entityData: any, entityType: string): Promise<any>;
|
|
19
19
|
getResolvedValue(loggedInUser: UserData, attrKey: string, rawValue: any, entityType: string): Promise<any>;
|
|
20
20
|
getResolvedId(loggedInUser: UserData, attrKey: string, displayValue: any, entityType: string): Promise<any>;
|
|
21
21
|
}
|
|
@@ -39,7 +39,7 @@ let ResolverService = class ResolverService {
|
|
|
39
39
|
}
|
|
40
40
|
return this.mediaDataService;
|
|
41
41
|
}
|
|
42
|
-
async getResolvedData(loggedInUser, entityData, entityType
|
|
42
|
+
async getResolvedData(loggedInUser, entityData, entityType) {
|
|
43
43
|
const attributeItems = await this.attributeMasterRepo.findAttributesByMappedEntityType(entityType, loggedInUser);
|
|
44
44
|
const resolvedEntityData = { ...entityData };
|
|
45
45
|
for (const attr of attributeItems) {
|
|
@@ -47,46 +47,40 @@ let ResolverService = class ResolverService {
|
|
|
47
47
|
const codeValue = entityData[field];
|
|
48
48
|
if (!codeValue)
|
|
49
49
|
continue;
|
|
50
|
-
if (attr.
|
|
51
|
-
(attr.data_source_type === 'master' && attr.category != 'Internal')) {
|
|
52
|
-
const type = attr.data_source_type === 'entity'
|
|
53
|
-
? attr.datasource_list
|
|
54
|
-
: attr.datasource_list;
|
|
50
|
+
if (attr.ds_category) {
|
|
55
51
|
const params = {};
|
|
56
52
|
if (Array.isArray(codeValue)) {
|
|
57
53
|
const resolvedValues = [];
|
|
58
54
|
for (const code of codeValue) {
|
|
59
|
-
|
|
55
|
+
let options = [];
|
|
56
|
+
try {
|
|
57
|
+
options = await this.listMasterService.getDropDownData(attr.mapped_entity_type, attr.attribute_key, loggedInUser, params);
|
|
58
|
+
}
|
|
59
|
+
catch (e) {
|
|
60
|
+
options.push(entityData[attr.attribute_key]);
|
|
61
|
+
}
|
|
60
62
|
const item = options.find((opt) => opt.value == code || opt.code == code);
|
|
61
|
-
resolvedValues.push(item?.[
|
|
63
|
+
resolvedValues.push(item?.["label"] ?? code);
|
|
62
64
|
}
|
|
63
|
-
resolvedEntityData[field] = resolvedValues
|
|
65
|
+
resolvedEntityData[field] = resolvedValues;
|
|
64
66
|
}
|
|
65
67
|
else {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
const item = await listMasterItemsRepo.findOne({
|
|
70
|
-
where: {
|
|
71
|
-
id: codeValue,
|
|
72
|
-
},
|
|
73
|
-
select: ['name'],
|
|
74
|
-
});
|
|
75
|
-
resolvedEntityData[field] = item?.name ?? codeValue;
|
|
68
|
+
let options = [];
|
|
69
|
+
try {
|
|
70
|
+
options = await this.listMasterService.getDropDownData(attr.mapped_entity_type, attr.attribute_key, loggedInUser, params);
|
|
76
71
|
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
const item = options.find((opt) => opt.value == codeValue || opt.code == codeValue);
|
|
80
|
-
resolvedEntityData[field] = Array.isArray(item)
|
|
81
|
-
? (item?.[attr.data_source_attribute] ?? codeValue)
|
|
82
|
-
: (item?.label ?? codeValue);
|
|
72
|
+
catch (e) {
|
|
73
|
+
options.push(entityData[attr.attribute_key]);
|
|
83
74
|
}
|
|
75
|
+
const item = options.find((opt) => opt.value == codeValue || opt.code == codeValue);
|
|
76
|
+
resolvedEntityData[field] = Array.isArray(item)
|
|
77
|
+
? (item?.[attr.name] ?? codeValue)
|
|
78
|
+
: (item?.label ?? codeValue);
|
|
84
79
|
}
|
|
85
80
|
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
const
|
|
89
|
-
const dateValue = moment(codeValue, dateFormat).utcOffset('+05:30');
|
|
81
|
+
if (attr.element_type === 'date' ||
|
|
82
|
+
attr.element_type === 'datetime') {
|
|
83
|
+
const dateValue = moment(codeValue, "DD-MM-YYYY", true).utcOffset('+05:30');
|
|
90
84
|
if (dateValue.isValid()) {
|
|
91
85
|
resolvedEntityData[field] =
|
|
92
86
|
attr.element_type === 'date'
|
|
@@ -97,22 +91,10 @@ let ResolverService = class ResolverService {
|
|
|
97
91
|
resolvedEntityData[field] = codeValue;
|
|
98
92
|
}
|
|
99
93
|
}
|
|
100
|
-
else if (attr.element_type === 'upload' ||
|
|
101
|
-
|
|
94
|
+
else if ((attr.element_type === 'upload' || attr.element_type === 'image') &&
|
|
95
|
+
typeof resolvedEntityData[field] !== 'object') {
|
|
102
96
|
const mediaService = await this.getMediaDataService();
|
|
103
|
-
|
|
104
|
-
if (typeof resolvedEntityData[field] !== 'object') {
|
|
105
|
-
uploadData = await mediaService.getMediaDownloadUrl(resolvedEntityData[field], loggedInUser);
|
|
106
|
-
}
|
|
107
|
-
else {
|
|
108
|
-
uploadData = resolvedEntityData[field];
|
|
109
|
-
}
|
|
110
|
-
const options = await this.listMasterService.getDropdownOptions('RSTS', {}, undefined, loggedInUser);
|
|
111
|
-
if (uploadData && uploadData.review_status) {
|
|
112
|
-
const statusItem = options.find((opt) => opt.value == uploadData.review_status);
|
|
113
|
-
uploadData.review_status =
|
|
114
|
-
statusItem?.label || uploadData.review_status;
|
|
115
|
-
}
|
|
97
|
+
const uploadData = await mediaService.getMediaDownloadUrl(resolvedEntityData[field], loggedInUser);
|
|
116
98
|
resolvedEntityData[field] = uploadData;
|
|
117
99
|
}
|
|
118
100
|
}
|
|
@@ -125,55 +107,34 @@ let ResolverService = class ResolverService {
|
|
|
125
107
|
const attr = await this.attributeMasterRepo.findByMappedEntityTypeAndAttributeKeyAndOrganizationId(entityType, attrKey, loggedInUser.enterprise_id);
|
|
126
108
|
if (!attr)
|
|
127
109
|
return rawValue;
|
|
128
|
-
if (attr.
|
|
129
|
-
const
|
|
130
|
-
if (!entityDef)
|
|
131
|
-
return rawValue;
|
|
132
|
-
const tableName = entityDef.db_table_name;
|
|
110
|
+
if (attr.ds_category) {
|
|
111
|
+
const params = {};
|
|
133
112
|
if (Array.isArray(rawValue)) {
|
|
134
113
|
const resolvedValues = [];
|
|
135
|
-
for (const
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
114
|
+
for (const code of rawValue) {
|
|
115
|
+
let options = [];
|
|
116
|
+
try {
|
|
117
|
+
options = await this.listMasterService.getDropDownData(attr.mapped_entity_type, attr.attribute_key, loggedInUser, params, [code]);
|
|
118
|
+
}
|
|
119
|
+
catch (e) {
|
|
120
|
+
options.push(code);
|
|
121
|
+
}
|
|
122
|
+
const item = options.find((opt) => opt.value == code || opt.code == code);
|
|
123
|
+
resolvedValues.push(item?.label ?? code);
|
|
141
124
|
}
|
|
142
125
|
return resolvedValues;
|
|
143
126
|
}
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
return item?.[attr.data_source_attribute] ?? rawValue;
|
|
147
|
-
}
|
|
148
|
-
if (attr.data_source_type === 'master') {
|
|
149
|
-
const repo = this.reflectionHelper.getRepoService('ListMasterItems');
|
|
150
|
-
let value = rawValue;
|
|
151
|
-
if (typeof rawValue === 'string') {
|
|
127
|
+
else {
|
|
128
|
+
let options = [];
|
|
152
129
|
try {
|
|
153
|
-
|
|
154
|
-
if (Array.isArray(parsed))
|
|
155
|
-
value = parsed;
|
|
130
|
+
options = await this.listMasterService.getDropDownData(attr.mapped_entity_type, attr.attribute_key, loggedInUser, params, [rawValue]);
|
|
156
131
|
}
|
|
157
132
|
catch (e) {
|
|
133
|
+
options.push(rawValue);
|
|
158
134
|
}
|
|
135
|
+
const item = options.find((opt) => opt.value == rawValue || opt.code == rawValue);
|
|
136
|
+
return item?.label ?? rawValue;
|
|
159
137
|
}
|
|
160
|
-
if (Array.isArray(value)) {
|
|
161
|
-
const resolvedValues = [];
|
|
162
|
-
for (const id of value) {
|
|
163
|
-
const item = await repo.findOne({
|
|
164
|
-
where: { id: Number(id) },
|
|
165
|
-
});
|
|
166
|
-
resolvedValues.push(item?.[attr.data_source_attribute] ?? id);
|
|
167
|
-
}
|
|
168
|
-
return resolvedValues;
|
|
169
|
-
}
|
|
170
|
-
if (!isNaN(rawValue)) {
|
|
171
|
-
const item = await repo.findOne({
|
|
172
|
-
where: { id: Number(rawValue) },
|
|
173
|
-
});
|
|
174
|
-
return item?.[attr.data_source_attribute] ?? rawValue;
|
|
175
|
-
}
|
|
176
|
-
return rawValue;
|
|
177
138
|
}
|
|
178
139
|
return rawValue;
|
|
179
140
|
}
|
|
@@ -186,18 +147,18 @@ let ResolverService = class ResolverService {
|
|
|
186
147
|
const attr = await this.attributeMasterRepo.findByMappedEntityTypeAndAttributeKeyAndOrganizationId(entityType, attrKey, loggedInUser.enterprise_id);
|
|
187
148
|
if (!attr)
|
|
188
149
|
return displayValue;
|
|
189
|
-
if (attr.
|
|
190
|
-
const entityDef = await this.entityMasterRepo.getEntityByMappedEntityType(attr.
|
|
150
|
+
if (attr.ds_category === 'ENTITY') {
|
|
151
|
+
const entityDef = await this.entityMasterRepo.getEntityByMappedEntityType(attr.ds_entitytype, loggedInUser.enterprise_id);
|
|
191
152
|
if (!entityDef)
|
|
192
153
|
return displayValue;
|
|
193
154
|
const tableName = entityDef.db_table_name;
|
|
194
155
|
const query = tableName === 'sso_organization'
|
|
195
|
-
? `SELECT id
|
|
196
|
-
FROM ${tableName}
|
|
197
|
-
WHERE ${attr.
|
|
198
|
-
: `SELECT id
|
|
199
|
-
FROM ${tableName}
|
|
200
|
-
WHERE ${attr.
|
|
156
|
+
? `SELECT id
|
|
157
|
+
FROM ${tableName}
|
|
158
|
+
WHERE ${attr.name} = $1`
|
|
159
|
+
: `SELECT id
|
|
160
|
+
FROM ${tableName}
|
|
161
|
+
WHERE ${attr.name} = $1
|
|
201
162
|
AND enterprise_id = $2`;
|
|
202
163
|
const params = tableName === 'sso_organization'
|
|
203
164
|
? [displayValue]
|
|
@@ -205,13 +166,13 @@ let ResolverService = class ResolverService {
|
|
|
205
166
|
const [item] = await this.entityManger.query(query, params);
|
|
206
167
|
return item?.id ?? displayValue;
|
|
207
168
|
}
|
|
208
|
-
else if (attr.
|
|
169
|
+
else if (attr.ds_category === 'LIST_MASTER') {
|
|
209
170
|
const listMasterItemsRepo = this.reflectionHelper.getRepoService('ListMasterItems');
|
|
210
171
|
const item = await listMasterItemsRepo.findOne({
|
|
211
172
|
where: {
|
|
212
|
-
[attr.
|
|
173
|
+
[attr.name]: displayValue,
|
|
213
174
|
enterprise_id: loggedInUser.enterprise_id,
|
|
214
|
-
listtype: attr.
|
|
175
|
+
listtype: attr.ds_entitytype,
|
|
215
176
|
},
|
|
216
177
|
});
|
|
217
178
|
return item?.id ?? displayValue;
|
|
@@ -223,7 +184,6 @@ exports.ResolverService = ResolverService;
|
|
|
223
184
|
exports.ResolverService = ResolverService = __decorate([
|
|
224
185
|
(0, common_1.Injectable)(),
|
|
225
186
|
__param(0, (0, common_1.Inject)('ListMasterService')),
|
|
226
|
-
__param(3, (0, common_1.Inject)((0, common_1.forwardRef)(() => reflection_helper_service_1.ReflectionHelper))),
|
|
227
187
|
__param(4, (0, common_1.Inject)((0, common_1.forwardRef)(() => entity_master_repository_1.EntityMasterRepository))),
|
|
228
188
|
__metadata("design:paramtypes", [list_master_service_1.ListMasterService,
|
|
229
189
|
core_1.ModuleRef,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolver.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/resolver.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAgE;AAEhE,iCAAiC;AACjC,sFAAsF;AACtF,uCAAyC;AACzC,2FAAsF;AACtF,gGAA+E;AAC/E,qFAAgF;AAChF,qCAAwC;AAGjC,IAAM,eAAe,GAArB,MAAM,eAAe;IAG1B,YAEmB,iBAAoC,EACpC,SAAoB,EACpB,mBAA8C,
|
|
1
|
+
{"version":3,"file":"resolver.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/resolver.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAgE;AAEhE,iCAAiC;AACjC,sFAAsF;AACtF,uCAAyC;AACzC,2FAAsF;AACtF,gGAA+E;AAC/E,qFAAgF;AAChF,qCAAwC;AAGjC,IAAM,eAAe,GAArB,MAAM,eAAe;IAG1B,YAEmB,iBAAoC,EACpC,SAAoB,EACpB,mBAA8C,EAC9C,gBAAkC,EAElC,gBAAwC,EACxC,YAA2B;QAN3B,sBAAiB,GAAjB,iBAAiB,CAAmB;QACpC,cAAS,GAAT,SAAS,CAAW;QACpB,wBAAmB,GAAnB,mBAAmB,CAA2B;QAC9C,qBAAgB,GAAhB,gBAAgB,CAAkB;QAElC,qBAAgB,GAAhB,gBAAgB,CAAwB;QACxC,iBAAY,GAAZ,YAAY,CAAe;IAE9C,CAAC;IAEO,KAAK,CAAC,mBAAmB;QAC/B,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,CAAC;YAC3B,MAAM,EAAE,gBAAgB,EAAE,GAAG,2CAAa,sBAAsB,EAAC,CAAC;YAClE,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,gBAAgB,EAAE;gBAC3D,MAAM,EAAE,KAAK;aACd,CAAC,CAAC;QACL,CAAC;QACD,OAAO,IAAI,CAAC,gBAAgB,CAAC;IAC/B,CAAC;IAED,KAAK,CAAC,eAAe,CACnB,YAAiB,EACjB,UAAe,EACf,UAAkB;QAElB,MAAM,cAAc,GAClB,MAAM,IAAI,CAAC,mBAAmB,CAAC,gCAAgC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YAAY;oBACzB,aAAa,EAAE,YAAY,CAAC,aAAa;oBACzC,QAAQ,EAAE,IAAI,CAAC,aAAa;iBAC7B;aACF,CAAC,CAAC;YAEH,OAAO,IAAI,EAAE,EAAE,IAAI,YAAY,CAAC;QAClC,CAAC;QAED,OAAO,YAAY,CAAC;IACtB,CAAC;CACF,CAAA;AAxPY,0CAAe;0BAAf,eAAe;IAD3B,IAAA,mBAAU,GAAE;IAKR,WAAA,IAAA,eAAM,EAAC,mBAAmB,CAAC,CAAA;IAK3B,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,iDAAsB,CAAC,CAAC,CAAA;qCAJb,uCAAiB;QACzB,gBAAS;QACC,uDAAyB;QAC5B,4CAAgB;QAEhB,iDAAsB;QAC1B,uBAAa;GAXnC,eAAe,CAwP3B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EntityServiceImpl } from './entity-service-impl.service';
|
|
2
2
|
import { BaseEntity } from '../entity/base-entity.entity';
|
|
3
|
-
import { UserData } from '
|
|
3
|
+
import { UserData } from 'src/module/auth/dto/user.dto';
|
|
4
4
|
import { EntityManager } from 'typeorm';
|
|
5
5
|
import { ViewMaster } from '../entity/view-master.entity';
|
|
6
6
|
export declare class SectionMasterService extends EntityServiceImpl {
|