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
|
@@ -19,19 +19,19 @@ export declare class StageGroupRepository {
|
|
|
19
19
|
dark_color: string;
|
|
20
20
|
id: number;
|
|
21
21
|
entity_type: string;
|
|
22
|
+
code: string;
|
|
22
23
|
name: string;
|
|
24
|
+
description: string;
|
|
23
25
|
status: string;
|
|
24
|
-
|
|
25
|
-
parent_id: number;
|
|
26
|
-
code: string;
|
|
26
|
+
seq_no: number;
|
|
27
27
|
created_by: number;
|
|
28
28
|
created_date: Date;
|
|
29
29
|
modified_by: number;
|
|
30
30
|
modified_date: Date;
|
|
31
31
|
enterprise_id: number;
|
|
32
|
-
organization_id: number;
|
|
33
|
-
appcode: string;
|
|
34
|
-
level_id: string;
|
|
35
32
|
level_type: string;
|
|
33
|
+
level_id: number;
|
|
34
|
+
parent_type: string;
|
|
35
|
+
parent_id: number;
|
|
36
36
|
}[]>;
|
|
37
37
|
}
|
|
@@ -2,7 +2,7 @@ import { Repository } from 'typeorm';
|
|
|
2
2
|
import { WorkflowLevelMappingEntity } from '../entity/workflow-level-mapping.entity';
|
|
3
3
|
import { StageGroup } from '../entity/stage-group.entity';
|
|
4
4
|
import { Stage } from '../entity/stage.entity';
|
|
5
|
-
import { UserData } from 'src/module/
|
|
5
|
+
import { UserData } from 'src/module/auth/dto/user.dto';
|
|
6
6
|
import { ReflectionHelper } from '../../../utils/service/reflection-helper.service';
|
|
7
7
|
import { ActionDataEntity } from '../entity/action-data.entity';
|
|
8
8
|
import { TaskDataEntity } from '../entity/task-data.entity';
|
|
@@ -12,19 +12,18 @@ export declare class StageRepository {
|
|
|
12
12
|
description: string;
|
|
13
13
|
id: number;
|
|
14
14
|
entity_type: string;
|
|
15
|
-
status: string;
|
|
16
|
-
parent_type: string;
|
|
17
|
-
parent_id: number;
|
|
18
15
|
code: string;
|
|
16
|
+
status: string;
|
|
17
|
+
seq_no: number;
|
|
19
18
|
created_by: number;
|
|
20
19
|
created_date: Date;
|
|
21
20
|
modified_by: number;
|
|
22
21
|
modified_date: Date;
|
|
23
22
|
enterprise_id: number;
|
|
24
|
-
organization_id: number;
|
|
25
|
-
appcode: string;
|
|
26
|
-
level_id: string;
|
|
27
23
|
level_type: string;
|
|
24
|
+
level_id: number;
|
|
25
|
+
parent_type: string;
|
|
26
|
+
parent_id: number;
|
|
28
27
|
}[]>;
|
|
29
28
|
getStageGroupsWithStagesByWorkflowId(stage_group_id: number, enterprise_id: number): Promise<any[]>;
|
|
30
29
|
getAllStageGroupAndStageByStageMovement(stage_group_id: number, enterprise_id: number): Promise<any[]>;
|
|
@@ -62,14 +62,14 @@ let StageRepository = class StageRepository {
|
|
|
62
62
|
if (!stageGroup) {
|
|
63
63
|
return [];
|
|
64
64
|
}
|
|
65
|
-
const rows = await this.dataSource.query(`
|
|
66
|
-
SELECT
|
|
67
|
-
g.id as stage_group_id, g.name as stage_group_name, g.workflow_id,
|
|
68
|
-
s.*
|
|
69
|
-
FROM frm_wf_stage_group g
|
|
70
|
-
INNER JOIN frm_wf_stage s ON s.stage_group_id = g.id
|
|
71
|
-
WHERE g.workflow_id = $1 AND g.enterprise_id = $2 AND g.id = $3
|
|
72
|
-
ORDER BY g.id, s.id
|
|
65
|
+
const rows = await this.dataSource.query(`
|
|
66
|
+
SELECT
|
|
67
|
+
g.id as stage_group_id, g.name as stage_group_name, g.workflow_id,
|
|
68
|
+
s.*
|
|
69
|
+
FROM frm_wf_stage_group g
|
|
70
|
+
INNER JOIN frm_wf_stage s ON s.stage_group_id = g.id
|
|
71
|
+
WHERE g.workflow_id = $1 AND g.enterprise_id = $2 AND g.id = $3
|
|
72
|
+
ORDER BY g.id, s.id
|
|
73
73
|
`, [stageGroup.workflow_id, enterprise_id, stage_group_id]);
|
|
74
74
|
if (!rows || rows.length === 0) {
|
|
75
75
|
return [];
|
|
@@ -2,7 +2,7 @@ import { TaskDataEntity } from '../entity/task-data.entity';
|
|
|
2
2
|
import { EntityManager, Repository } from 'typeorm';
|
|
3
3
|
import { EntityDynamicService } from 'src/module/meta/service/entity-dynamic.service';
|
|
4
4
|
import { ReflectionHelper } from '../../../utils/service/reflection-helper.service';
|
|
5
|
-
import { UserData } from 'src/module/
|
|
5
|
+
import { UserData } from 'src/module/auth/dto/user.dto';
|
|
6
6
|
import { ConfigService } from '@nestjs/config';
|
|
7
7
|
export declare class TaskRepository {
|
|
8
8
|
private readonly taskRepository;
|
|
@@ -51,9 +51,9 @@ let TaskRepository = class TaskRepository {
|
|
|
51
51
|
const leadData = await this.entityManager.query(`SELECT * FROM ${this.schema}.crm_lead WHERE id = $1`, [mapped_entity_id]);
|
|
52
52
|
if (action.length > 0) {
|
|
53
53
|
for (const act of action) {
|
|
54
|
-
const mandatoryListMasterItem =
|
|
54
|
+
const mandatoryListMasterItem = listMasterItemsRepo.find({
|
|
55
55
|
where: {
|
|
56
|
-
id: act.action_requirement
|
|
56
|
+
id: act.action_requirement
|
|
57
57
|
},
|
|
58
58
|
});
|
|
59
59
|
const now = new Date();
|
|
@@ -76,7 +76,6 @@ let TaskRepository = class TaskRepository {
|
|
|
76
76
|
stage_id: act.stage_id,
|
|
77
77
|
user_id: loggedInUser.id,
|
|
78
78
|
action_id: act.id,
|
|
79
|
-
organization_id: loggedInUser.organization_id,
|
|
80
79
|
level_type: loggedInUser.level_type,
|
|
81
80
|
level_id: loggedInUser.level_id,
|
|
82
81
|
enterprise_id: loggedInUser.enterprise_id,
|
|
@@ -90,7 +89,7 @@ let TaskRepository = class TaskRepository {
|
|
|
90
89
|
is_system: true,
|
|
91
90
|
status: listMasterItem?.id,
|
|
92
91
|
category: act?.action_category_code,
|
|
93
|
-
task_owner: leadData
|
|
92
|
+
task_owner: leadData?.lead_owner,
|
|
94
93
|
code: taskCode,
|
|
95
94
|
});
|
|
96
95
|
await this.taskRepository.save(taskData);
|
|
@@ -112,7 +111,7 @@ let TaskRepository = class TaskRepository {
|
|
|
112
111
|
code: 'completed',
|
|
113
112
|
enterprise_id: loggedInUser.enterprise_id,
|
|
114
113
|
listtype: 'TKST',
|
|
115
|
-
}
|
|
114
|
+
}
|
|
116
115
|
});
|
|
117
116
|
task.modified_by = loggedInUser.id;
|
|
118
117
|
task.modified_date = new Date();
|
|
@@ -125,6 +124,7 @@ exports.TaskRepository = TaskRepository;
|
|
|
125
124
|
exports.TaskRepository = TaskRepository = __decorate([
|
|
126
125
|
(0, common_1.Injectable)(),
|
|
127
126
|
__param(0, (0, typeorm_1.InjectRepository)(task_data_entity_1.TaskDataEntity)),
|
|
127
|
+
__param(1, (0, common_1.Inject)('EntityDynamicService')),
|
|
128
128
|
__metadata("design:paramtypes", [typeorm_2.Repository,
|
|
129
129
|
entity_dynamic_service_1.EntityDynamicService,
|
|
130
130
|
reflection_helper_service_1.ReflectionHelper,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task.repository.js","sourceRoot":"","sources":["../../../../src/module/workflow/repository/task.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"task.repository.js","sourceRoot":"","sources":["../../../../src/module/workflow/repository/task.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAoD;AACpD,6CAAmD;AACnD,iEAA4D;AAC5D,qCAAoD;AACpD,sFAAsF;AACtF,gGAAoF;AAEpF,2CAA+C;AAGxC,IAAM,cAAc,GAApB,MAAM,cAAc;IACzB,YAEE,cAA2D,EAE3D,oBAA2D,EAC1C,gBAAkC,EAClC,aAA2B,EAC3B,aAA4B;QAL5B,mBAAc,GAAd,cAAc,CAA4B;QAE1C,yBAAoB,GAApB,oBAAoB,CAAsB;QAC1C,qBAAgB,GAAhB,gBAAgB,CAAkB;QAClC,kBAAa,GAAb,aAAa,CAAc;QAC3B,kBAAa,GAAb,aAAa,CAAe;QAI/C,WAAM,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,WAAW,CAAC,CAAA;IAF5C,CAAC;IAID,KAAK,CAAC,4BAA4B,CAAC,SAAS;QAC1C,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC;YAC5C,KAAK,EAAE;gBACL,GAAG,SAAS;aACb;SACF,CAAC,CAAC;QAEH,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,KAAK,CAAC,oBAAoB,CACxB,MAAW,EACX,YAAY,EACZ,gBAAwB,EACxB,kBAA0B;QAE1B,IAAI,CAAC,MAAM,EAAE,MAAM;YAAE,OAAO;QAE5B,MAAM,mBAAmB,GAAG,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC;QAEpF,MAAM,cAAc,GAAG,MAAM,mBAAmB,CAAC,OAAO,CAAC;YACvD,KAAK,EAAE;gBACL,IAAI,EAAE,aAAa;gBACnB,aAAa,EAAE,YAAY,CAAC,aAAa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,mBAAmB,CAAC,OAAO,CAAC;YACvD,KAAK,EAAE;gBACL,IAAI,EAAE,WAAW;gBACjB,aAAa,EAAE,YAAY,CAAC,aAAa;gBACzC,QAAQ,EAAE,MAAM;aACjB;SACF,CAAC,CAAC;QAEH,IAAI,CAAC,WAAW,GAAG,YAAY,CAAC,EAAE,CAAC;QACnC,IAAI,CAAC,aAAa,GAAG,IAAI,IAAI,EAAE,CAAC;QAChC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;QACpB,IAAI,CAAC,MAAM,GAAG,cAAc,EAAE,EAAE,CAAC;QAEjC,MAAM,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;IAClD,CAAC;CACF,CAAA;AA/IY,wCAAc;yBAAd,cAAc;IAD1B,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,0BAAgB,EAAC,iCAAc,CAAC,CAAA;IAEhC,WAAA,IAAA,eAAM,EAAC,sBAAsB,CAAC,CAAA;qCADE,oBAAU;QAEJ,6CAAoB;QACxB,4CAAgB;QACpB,uBAAa;QACZ,sBAAa;GARpC,cAAc,CA+I1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.repository.js","sourceRoot":"","sources":["../../../../src/module/workflow/repository/workflow.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA+D;AAC/D,6CAAmD;AACnD,+DAAqD;AACrD,qCAAqC;AAG9B,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAC7B,YAEmB,kBAAwC;QAAxC,uBAAkB,GAAlB,kBAAkB,CAAsB;IACxD,CAAC;IAMJ,KAAK,CAAC,wBAAwB,CAC5B,WAAmB,EACnB,QAAgB,EAChB,UAAkB;QAElB,OAAO,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC;YAClC,KAAK,EAAE;gBACL,kBAAkB,EAAE,WAAW;gBAC/B,QAAQ;
|
|
1
|
+
{"version":3,"file":"workflow.repository.js","sourceRoot":"","sources":["../../../../src/module/workflow/repository/workflow.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA+D;AAC/D,6CAAmD;AACnD,+DAAqD;AACrD,qCAAqC;AAG9B,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAC7B,YAEmB,kBAAwC;QAAxC,uBAAkB,GAAlB,kBAAkB,CAAsB;IACxD,CAAC;IAMJ,KAAK,CAAC,wBAAwB,CAC5B,WAAmB,EACnB,QAAgB,EAChB,UAAkB;QAElB,OAAO,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC;YAClC,KAAK,EAAE;gBACL,kBAAkB,EAAE,WAAW;gBAC/B,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC;gBAC1B,UAAU;aACX;SACF,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,kBAAkB,CAAC,EAAU;QACjC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;QAExD,IAAI,MAAM,CAAC,QAAQ,KAAK,CAAC,EAAE,CAAC;YAC1B,MAAM,IAAI,0BAAiB,CAAC,oBAAoB,EAAE,YAAY,CAAC,CAAC;QAClE,CAAC;QAED,OAAO;YACL,OAAO,EAAE,yCAAyC;SACnD,CAAC;IACJ,CAAC;CACF,CAAA;AAnCY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,0BAAgB,EAAC,0BAAQ,CAAC,CAAA;qCACU,oBAAU;GAHtC,kBAAkB,CAmC9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-category.service.js","sourceRoot":"","sources":["../../../../src/module/workflow/service/action-category.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,gGAAwF;
|
|
1
|
+
{"version":3,"file":"action-category.service.js","sourceRoot":"","sources":["../../../../src/module/workflow/service/action-category.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,gGAAwF;AACxF,qCAAqC;AACrC,yFAAoF;AAG7E,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,+CAAiB;IAC1D,YACmB,UAAsB,EACtB,wBAAkD;QAEnE,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACtB,6BAAwB,GAAxB,wBAAwB,CAA0B;IAGrE,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,WAAmB;QACrC,OAAO,IAAI,CAAC,wBAAwB,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;IAClE,CAAC;IAED,KAAK,CAAC,+BAA+B,CAAC,eAAuB;QAC3D,OAAO,IAAI,CAAC,wBAAwB,CAAC,+BAA+B,CAClE,eAAe,CAChB,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,iBAAiB,CAAC,aAAqB;QAC3C,OAAO,IAAI,CAAC,wBAAwB,CAAC,iBAAiB,CAAC,aAAa,CAAC,CAAC;IACxE,CAAC;IAED,KAAK,CAAC,mBAAmB,CAAC,WAAmB;QAC3C,OAAO,IAAI,CAAC,wBAAwB,CAAC,mBAAmB,CAAC,WAAW,CAAC,CAAC;IACxE,CAAC;CACF,CAAA;AAzBY,sDAAqB;gCAArB,qBAAqB;IADjC,IAAA,mBAAU,GAAE;qCAGoB,oBAAU;QACI,qDAAwB;GAH1D,qBAAqB,CAyBjC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EntityServiceImpl } from 'src/module/meta/service/entity-service-impl.service';
|
|
2
|
-
import { UserData } from 'src/module/
|
|
2
|
+
import { UserData } from 'src/module/auth/dto/user.dto';
|
|
3
3
|
import { DataSource } from 'typeorm';
|
|
4
4
|
import { ActionDataRepository } from '../repository/action-data.repository';
|
|
5
5
|
export declare class ActionDataService extends EntityServiceImpl {
|
|
@@ -27,8 +27,7 @@ let ActionDataService = class ActionDataService extends entity_service_impl_serv
|
|
|
27
27
|
return this.actionDataRepo.updateActionStatus(loggedInUser, mapped_entity_type, mapped_entity_id, stage_id, action_id);
|
|
28
28
|
}
|
|
29
29
|
async resubmitAction(loggedInUser, mapped_entity_type, mapped_entity_id, stage_id, action_id) {
|
|
30
|
-
|
|
31
|
-
return this.actionDataRepo.resubmitAction(organization_id, mapped_entity_type, mapped_entity_id, stage_id, action_id);
|
|
30
|
+
return this.actionDataRepo.resubmitAction(loggedInUser, mapped_entity_type, mapped_entity_id, stage_id, action_id);
|
|
32
31
|
}
|
|
33
32
|
};
|
|
34
33
|
exports.ActionDataService = ActionDataService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-data.service.js","sourceRoot":"","sources":["../../../../src/module/workflow/service/action-data.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,gGAAwF;AAExF,qCAAqC;AACrC,iFAA4E;AAGrE,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,+CAAiB;IACtD,YACmB,UAAsB,EACtB,cAAoC;QAErD,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACtB,mBAAc,GAAd,cAAc,CAAsB;IAGvD,CAAC;IAED,KAAK,CAAC,cAAc,CAClB,MAAW,EACX,YAAsB,EACtB,gBAAgB,EAChB,kBAAkB;QAElB,OAAO,IAAI,CAAC,cAAc,CAAC,cAAc,CACvC,MAAM,EACN,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,CACnB,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,kBAAkB,CACtB,YAAsB,EACtB,kBAA0B,EAC1B,gBAAwB,EACxB,QAAgB,EAChB,SAAiB;QAEjB,OAAO,IAAI,CAAC,cAAc,CAAC,kBAAkB,CAC3C,YAAY,EACZ,kBAAkB,EAClB,gBAAgB,EAChB,QAAQ,EACR,SAAS,CACV,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,cAAc,CAClB,YAAsB,EACtB,kBAA0B,EAC1B,gBAAwB,EACxB,QAAgB,EAChB,SAAiB;
|
|
1
|
+
{"version":3,"file":"action-data.service.js","sourceRoot":"","sources":["../../../../src/module/workflow/service/action-data.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,gGAAwF;AAExF,qCAAqC;AACrC,iFAA4E;AAGrE,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,+CAAiB;IACtD,YACmB,UAAsB,EACtB,cAAoC;QAErD,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACtB,mBAAc,GAAd,cAAc,CAAsB;IAGvD,CAAC;IAED,KAAK,CAAC,cAAc,CAClB,MAAW,EACX,YAAsB,EACtB,gBAAgB,EAChB,kBAAkB;QAElB,OAAO,IAAI,CAAC,cAAc,CAAC,cAAc,CACvC,MAAM,EACN,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,CACnB,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,kBAAkB,CACtB,YAAsB,EACtB,kBAA0B,EAC1B,gBAAwB,EACxB,QAAgB,EAChB,SAAiB;QAEjB,OAAO,IAAI,CAAC,cAAc,CAAC,kBAAkB,CAC3C,YAAY,EACZ,kBAAkB,EAClB,gBAAgB,EAChB,QAAQ,EACR,SAAS,CACV,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,cAAc,CAClB,YAAsB,EACtB,kBAA0B,EAC1B,gBAAwB,EACxB,QAAgB,EAChB,SAAiB;QAGjB,OAAO,IAAI,CAAC,cAAc,CAAC,cAAc,CACvC,YAAY,EACZ,kBAAkB,EAClB,gBAAgB,EAChB,QAAQ,EACR,SAAS,CACV,CAAC;IACJ,CAAC;CACF,CAAA;AAtDY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,mBAAU,GAAE;qCAGoB,oBAAU;QACN,6CAAoB;GAH5C,iBAAiB,CAsD7B"}
|
|
@@ -108,8 +108,8 @@ let ActionTemplateMappingService = class ActionTemplateMappingService extends en
|
|
|
108
108
|
'ct.name AS label',
|
|
109
109
|
'ct.id AS id',
|
|
110
110
|
])
|
|
111
|
-
.innerJoin('frm_list_master_items', 'fmi', `fmi.id = ct.status::bigint
|
|
112
|
-
AND fmi.code = 'STATUS_ACTIVE'
|
|
111
|
+
.innerJoin('frm_list_master_items', 'fmi', `fmi.id = ct.status::bigint
|
|
112
|
+
AND fmi.code = 'STATUS_ACTIVE'
|
|
113
113
|
AND fmi.enterprise_id::text = :entId`, { entId: String(loggedInUser.enterprise_id) })
|
|
114
114
|
.where('ct.code IN (:...codes)', { codes: templateCodes })
|
|
115
115
|
.andWhere('ct.mode::text = :mode', { mode: String(mode) })
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseEntity } from 'src/module/meta/entity/base-entity.entity';
|
|
2
2
|
import { EntityServiceImpl } from 'src/module/meta/service/entity-service-impl.service';
|
|
3
|
-
import { UserData } from 'src/module/
|
|
3
|
+
import { UserData } from 'src/module/auth/dto/user.dto';
|
|
4
4
|
import { EntityManager, Repository } from 'typeorm';
|
|
5
5
|
import { ActionRepository } from '../repository/action.repository';
|
|
6
6
|
import { ActionResourcesMapping } from '../entity/action-resources-mapping.entity';
|
|
@@ -63,8 +63,8 @@ let ActionService = class ActionService extends entity_service_impl_service_1.En
|
|
|
63
63
|
stage_id: actionData.stage_id,
|
|
64
64
|
entity_type: 'WFSA',
|
|
65
65
|
};
|
|
66
|
-
if (entityData?.
|
|
67
|
-
stageActionMapping.
|
|
66
|
+
if (entityData?.enterprise_id) {
|
|
67
|
+
stageActionMapping.enterprise_id = entityData.enterprise_id;
|
|
68
68
|
}
|
|
69
69
|
const stageActionMappingData = await super.createEntity(stageActionMapping, loggedInUser);
|
|
70
70
|
if (Array.isArray(actionData.template) && actionData.template.length > 0) {
|
|
@@ -75,8 +75,8 @@ let ActionService = class ActionService extends entity_service_impl_service_1.En
|
|
|
75
75
|
type: 'template',
|
|
76
76
|
entity_type: 'WFAR',
|
|
77
77
|
};
|
|
78
|
-
if (entityData?.
|
|
79
|
-
resourceMapping.organization_id = entityData.
|
|
78
|
+
if (entityData?.enterprise_id) {
|
|
79
|
+
resourceMapping.organization_id = entityData.enterprise_id;
|
|
80
80
|
}
|
|
81
81
|
await super.createEntity(resourceMapping, loggedInUser);
|
|
82
82
|
}
|
|
@@ -88,7 +88,7 @@ let ActionService = class ActionService extends entity_service_impl_service_1.En
|
|
|
88
88
|
if (actionData.form) {
|
|
89
89
|
const resourceMapping = {
|
|
90
90
|
stg_act_mapping_id: stageActionMappingData.id,
|
|
91
|
-
|
|
91
|
+
enterprise_id: entityData.enterprise_id,
|
|
92
92
|
level_id: entityData.level_id,
|
|
93
93
|
form_id: actionData.form,
|
|
94
94
|
type: 'form',
|
|
@@ -106,8 +106,7 @@ let ActionService = class ActionService extends entity_service_impl_service_1.En
|
|
|
106
106
|
}
|
|
107
107
|
const stageMap = await this.stageActionMappingRepository.findOne({
|
|
108
108
|
where: {
|
|
109
|
-
action_id: action.id
|
|
110
|
-
entity_type: 'WFSA',
|
|
109
|
+
action_id: action.id
|
|
111
110
|
},
|
|
112
111
|
});
|
|
113
112
|
let stageActionMappingData;
|
|
@@ -125,7 +124,7 @@ let ActionService = class ActionService extends entity_service_impl_service_1.En
|
|
|
125
124
|
action_id: action.id,
|
|
126
125
|
stage_id,
|
|
127
126
|
entity_type: 'WFSA',
|
|
128
|
-
|
|
127
|
+
enterprise_id: entityData.enterprise_id,
|
|
129
128
|
};
|
|
130
129
|
stageActionMappingData = await super.createEntity(newStageMapping, loggedInUser);
|
|
131
130
|
}
|
|
@@ -165,17 +164,16 @@ let ActionService = class ActionService extends entity_service_impl_service_1.En
|
|
|
165
164
|
await this.actionTemplateMappingRepository
|
|
166
165
|
.createQueryBuilder()
|
|
167
166
|
.delete()
|
|
168
|
-
.where(`stg_act_mapping_id IN (
|
|
169
|
-
SELECT sam.id
|
|
170
|
-
FROM frm_wf_stage_action_mapping sam
|
|
171
|
-
WHERE sam.action_id = :actionId
|
|
172
|
-
AND sam.entity_type = 'WFSA'
|
|
167
|
+
.where(`stg_act_mapping_id IN (
|
|
168
|
+
SELECT sam.id
|
|
169
|
+
FROM frm_wf_stage_action_mapping sam
|
|
170
|
+
WHERE sam.action_id = :actionId
|
|
171
|
+
AND sam.entity_type = 'WFSA'
|
|
173
172
|
)`)
|
|
174
173
|
.setParameter('actionId', id)
|
|
175
174
|
.execute();
|
|
176
175
|
await this.stageActionMappingRepository.delete({
|
|
177
|
-
action_id: id
|
|
178
|
-
entity_type: 'WFSA',
|
|
176
|
+
action_id: id
|
|
179
177
|
});
|
|
180
178
|
const deleteAction = await super.deleteEntity(entityType, id, loggedInUser);
|
|
181
179
|
return deleteAction;
|
|
@@ -193,8 +191,8 @@ let ActionService = class ActionService extends entity_service_impl_service_1.En
|
|
|
193
191
|
return this.actionRepository.getDependentActions(loggedInUser, stage_id, action_id);
|
|
194
192
|
}
|
|
195
193
|
async getAction(loggedInUser, stage_id, mapped_entity_id, mapped_entity_type) {
|
|
196
|
-
const {
|
|
197
|
-
return this.actionRepository.getAction(
|
|
194
|
+
const { enterprise_id } = loggedInUser;
|
|
195
|
+
return this.actionRepository.getAction(enterprise_id, stage_id, mapped_entity_id, mapped_entity_type);
|
|
198
196
|
}
|
|
199
197
|
};
|
|
200
198
|
exports.ActionService = ActionService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.service.js","sourceRoot":"","sources":["../../../../src/module/workflow/service/action.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAE5C,gGAAwF;AAExF,qCAAoD;AACpD,uEAAmE;AAEnE,+FAAmF;AACnF,6CAAmD;AACnD,uFAA2E;AAC3E,6FAAiF;AAG1E,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,+CAAiB;IAClD,YACmB,gBAAkC,EAElC,gCAAoE,EAEpE,4BAA4D,EAE5D,+BAAkE;QAEnF,KAAK,EAAE,CAAC;QARS,qBAAgB,GAAhB,gBAAgB,CA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EAC7B,OAA8B,EAC9B,OAAgB;QAEhB,MAAM,UAAU,GAAG,UAAiB,CAAC;QAGrC,MAAM,EAAE,QAAQ,EAAE,GAAG,sBAAsB,EAAE,GAAG,UAAU,CAAC;QAG3D,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,YAAY,CAAC,sBAAsB,EAAE,YAAY,CAAC,CAAC;QAG9E,MAAM,kBAAkB,GAAG;YACzB,SAAS,EAAE,MAAM,CAAC,EAAE;YACpB,QAAQ,EAAE,UAAU,CAAC,QAAQ;YAE7B,WAAW,EAAE,MAAM;SACb,CAAC;QAET,IAAI,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"action.service.js","sourceRoot":"","sources":["../../../../src/module/workflow/service/action.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAE5C,gGAAwF;AAExF,qCAAoD;AACpD,uEAAmE;AAEnE,+FAAmF;AACnF,6CAAmD;AACnD,uFAA2E;AAC3E,6FAAiF;AAG1E,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,+CAAiB;IAClD,YACmB,gBAAkC,EAElC,gCAAoE,EAEpE,4BAA4D,EAE5D,+BAAkE;QAEnF,KAAK,EAAE,CAAC;QARS,qBAAgB,GAAhB,gBAAgB,CAAkB;QAElC,qCAAgC,GAAhC,gCAAgC,CAAoC;QAEpE,iCAA4B,GAA5B,4BAA4B,CAAgC;QAE5D,oCAA+B,GAA/B,+BAA+B,CAAmC;IAGrF,CAAC;IAED,KAAK,CAAC,aAAa,CACjB,UAAkB,EAClB,EAAU,EACV,YAAY;QAEZ,MAAM,UAAU,GAAG,MAAM,KAAK,CAAC,aAAa,CAAC,UAAU,EAAE,EAAE,EAAE,YAAY,CAAC,CAAC;QAE3E,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,OAAO,IAAI,CAAC;QACd,CAAC;QAED,IAAI,yBAAyB,GAAG,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,wBAAwB,CAAC,CAAC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,oBAAU;QAEP,oBAAU;GARnD,aAAa,CA8RzB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ActivityLogRepository } from '../repository/activity-log.repository';
|
|
2
2
|
import { ActivityLog } from '../entity/activity-log.entity';
|
|
3
3
|
import { EntityServiceImpl } from 'src/module/meta/service/entity-service-impl.service';
|
|
4
|
-
import { UserData } from 'src/module/
|
|
4
|
+
import { UserData } from 'src/module/auth/dto/user.dto';
|
|
5
5
|
export declare class ActivityLogService extends EntityServiceImpl {
|
|
6
6
|
private readonly activityLogRepository;
|
|
7
7
|
constructor(activityLogRepository: ActivityLogRepository);
|
|
@@ -21,19 +21,18 @@ export declare class ActivityLogService extends EntityServiceImpl {
|
|
|
21
21
|
additional_info_3: string;
|
|
22
22
|
id: number;
|
|
23
23
|
entity_type: string;
|
|
24
|
+
code: string;
|
|
24
25
|
name: string;
|
|
25
26
|
status: string;
|
|
26
|
-
|
|
27
|
-
parent_id: number;
|
|
28
|
-
code: string;
|
|
27
|
+
seq_no: number;
|
|
29
28
|
created_by: number;
|
|
30
29
|
modified_by: number;
|
|
31
30
|
modified_date: Date;
|
|
32
31
|
enterprise_id: number;
|
|
33
|
-
organization_id: number;
|
|
34
|
-
appcode: string;
|
|
35
|
-
level_id: string;
|
|
36
32
|
level_type: string;
|
|
33
|
+
level_id: number;
|
|
34
|
+
parent_type: string;
|
|
35
|
+
parent_id: number;
|
|
37
36
|
}[]>;
|
|
38
37
|
getAllActivityCategory(mapped_entity_id: number | string, mapped_entity_type: string, loggedInUser: any): Promise<{
|
|
39
38
|
label: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activity-log.service.js","sourceRoot":"","sources":["../../../../src/module/workflow/service/activity-log.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,mFAG+C;
|
|
1
|
+
{"version":3,"file":"activity-log.service.js","sourceRoot":"","sources":["../../../../src/module/workflow/service/activity-log.service.ts"],"names":[],"mappings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AI,CAAC,qBAAqB,CAAC,sBAAsB,CAC9D,gBAAgB,EAChB,kBAAkB,EAClB,YAAY,CACb,CAAC;QACF,OAAO,MAAM,CAAC;IAChB,CAAC;CACF,CAAA;AAzCY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,mBAAU,GAAE;qCAEyC,+CAAqB;GAD9D,kBAAkB,CAyC9B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CommTemplateRepository } from '../repository/comm-template.repository';
|
|
2
2
|
import { EntityServiceImpl } from 'src/module/meta/service/entity-service-impl.service';
|
|
3
|
-
import { UserData } from 'src/module/
|
|
3
|
+
import { UserData } from 'src/module/auth/dto/user.dto';
|
|
4
4
|
import { MediaDataService } from '../../meta/service/media-data.service';
|
|
5
5
|
import { FieldMapperService } from '../../mapper/service/field-mapper.service';
|
|
6
6
|
export declare class CommTemplateService extends EntityServiceImpl {
|
|
@@ -66,9 +66,7 @@ let CommTemplateService = class CommTemplateService extends entity_service_impl_
|
|
|
66
66
|
entity_type: templateData.entity_type,
|
|
67
67
|
template_id: tempData.id,
|
|
68
68
|
media_id: attachment,
|
|
69
|
-
organization_id: loggedInUser.organization_id,
|
|
70
69
|
enterprise_id: loggedInUser.enterprise_id,
|
|
71
|
-
appcode: loggedInUser.appcode,
|
|
72
70
|
level_id: loggedInUser.level_id,
|
|
73
71
|
level_type: loggedInUser.level_type,
|
|
74
72
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"comm-template.service.js","sourceRoot":"","sources":["../../../../src/module/workflow/service/comm-template.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAyE;AACzE,qFAAgF;AAChF,gGAAwF;AAExF,iCAA0B;AAC1B,8EAAyE;AACzE,oFAA+E;AAGxE,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,+CAAiB;IACxD,YAA6B,sBAA8C,EAC9C,YAA8B,EAE9B,kBAAsC;QAEjE,KAAK,EAAE,CA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EAAE,GAAG,eAAe,EAAE,GAAG,UAAU,CAAC;YACpE,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,YAAY,CACpC;gBACE,GAAG,eAAe;gBAClB,UAAU,EAAE,YAAY,CAAC,UAAU;gBACnC,QAAQ,EAAE,YAAY,CAAC,QAAQ;gBAC/B,IAAI,EAAE,QAAQ;aACf,EACD,YAAY,CACb,CAAC;YACF,OAAO,MAAM,CAAC;QAChB,CAAC;QAED,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,YAAY,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC;QAGtE,MAAM,IAAI,CAAC,sBAAsB,CAAC,MAAM,CAAC;YACvC,WAAW,EAAE,QAAQ,CAAC,EAAE;SACzB,CAAC,CAAC;QAGH,IAAI,WAAW,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC1C,MAAM,kBAAkB,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;gBAC1D,WAAW,EAAE,YAAY,CAAC,WAAW;gBACrC,WAAW,EAAE,QAAQ,CAAC,EAAE;gBACxB,QAAQ,EAAE,UAAU;gBACpB,
|
|
1
|
+
{"version":3,"file":"comm-template.service.js","sourceRoot":"","sources":["../../../../src/module/workflow/service/comm-template.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAyE;AACzE,qFAAgF;AAChF,gGAAwF;AAExF,iCAA0B;AAC1B,8EAAyE;AACzE,oFAA+E;AAGxE,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,+CAAiB;IACxD,YAA6B,sBAA8C,EAC9C,YAA8B,EAE9B,kBAAsC;QAEjE,KAAK,EAAE,CAAC;QALmB,2BAAsB,GAAtB,sBAAsB,CAAwB;QAC9C,iBAAY,GAAZ,YAAY,CAAkB;QAE9B,uBAAkB,GAAlB,kBAAkB,CAAoB;IAGnE,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,UAAe,E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CAAC;wBACzF,IAAI,GAAG,EAAE,CAAC;4BACR,IAAI,QAAQ,GAAG,MAAM,eAAK,CAAC,GAAG,CAAC,GAAG,CAAC,SAAS,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE,CAAC,CAAC;4BACxE,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC;wBAC3B,CAAC;oBACH,CAAC;gBACH,CAAC;gBAED,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC,gBAAgB,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;oBAC3D,MAAM,KAAK,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC;oBAC7B,OAAO,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;gBACrD,CAAC,CAAC,CAAC;gBAEH,OAAO;oBACL,SAAS,EAAE,QAAQ;oBACnB,OAAO,EAAE,YAAY,CAAC,OAAO;iBAC9B,CAAC;YACJ,CAAC;QACH,CAAC;aAAM,CAAC;YACN,MAAM,IAAI,4BAAmB,CAAC,4CAA4C,CAAC,CAAC;QAC9E,CAAC;IACH,CAAC;CACF,CAAA;AAzKY,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,mBAAU,GAAE;IAIE,WAAA,IAAA,eAAM,EAAC,oBAAoB,CAAC,CAAA;qCAFY,iDAAsB;QAChC,qCAAgB;QAEV,yCAAkB;GAJxD,mBAAmB,CAyK/B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EntityServiceImpl } from 'src/module/meta/service/entity-service-impl.service';
|
|
2
|
-
import { UserData } from 'src/module/
|
|
2
|
+
import { UserData } from 'src/module/auth/dto/user.dto';
|
|
3
3
|
import { EntityManager } from 'typeorm';
|
|
4
4
|
export declare class EntityModificationService extends EntityServiceImpl {
|
|
5
5
|
private readonly entityManager;
|
|
@@ -20,7 +20,6 @@ let EntityModificationService = class EntityModificationService extends entity_s
|
|
|
20
20
|
}
|
|
21
21
|
async logModification(modificationData, loggedInUser) {
|
|
22
22
|
const { mapped_entity_type, mapped_entity_id, attribute_key } = modificationData;
|
|
23
|
-
const { organization_id } = loggedInUser;
|
|
24
23
|
if (!mapped_entity_type || !mapped_entity_id || !attribute_key) {
|
|
25
24
|
throw new common_1.BadRequestException('Missing required modification data: mapped_entity_type, mapped_entity_id, or attribute_key');
|
|
26
25
|
}
|
|
@@ -29,8 +28,8 @@ let EntityModificationService = class EntityModificationService extends entity_s
|
|
|
29
28
|
throw new common_1.NotFoundException('Entity metadata not found in frm_entity_master');
|
|
30
29
|
}
|
|
31
30
|
const tableName = entityMeta.db_table_name;
|
|
32
|
-
const [entityRow] = await this.entityManager.query(`
|
|
33
|
-
SELECT * FROM ${tableName} WHERE id = $1
|
|
31
|
+
const [entityRow] = await this.entityManager.query(`
|
|
32
|
+
SELECT * FROM ${tableName} WHERE id = $1
|
|
34
33
|
`, [mapped_entity_id]);
|
|
35
34
|
if (!entityRow) {
|
|
36
35
|
throw new common_1.NotFoundException(`No record found in ${tableName} with ID ${mapped_entity_id}`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-modification.service.js","sourceRoot":"","sources":["../../../../src/module/workflow/service/entity-modification.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"entity-modification.service.js","sourceRoot":"","sources":["../../../../src/module/workflow/service/entity-modification.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAoF;AACpF,gGAAwF;AAExF,qCAAwC;AAGjC,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,+CAAiB;IAC9D,YAA6B,aAA4B;QAEvD,KAAK,EAAE,CAAC;QAFmB,kBAAa,GAAb,aAAa,CAAe;IAGzD,CAAC;IACD,KAAK,CAAC,eAAe,CAAC,gBAAqB,EAAE,YAAsB;QACjE,MAAM,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,aAAa,EAAE,GAC3D,gBAAgB,CAAC;QAEnB,IAAI,CAAC,kBAAkB,IAAI,CAAC,gBAAgB,IAAI,CAAC,aAAa,EAAE,CAAC;YAC/D,MAAM,IAAI,4BAAmB,CAC3B,4FAA4F,CAC7F,CAAC;QACJ,CAAC;QAED,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,aAAa,CAAC,kBAAkB,EAAE,YAAY,CAAC,CAAC;QAElG,IAAI,CAAC,UAAU,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,CAAC;YAC7C,MAAM,IAAI,0BAAiB,CACzB,gDAAgD,CACjD,CAAC;QACJ,CAAC;QAED,MAAM,SAAS,GAAG,UAAU,CAAC,aAAa,CAAC;QAG3C,MAAM,CAAC,SAAS,CAAC,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,KAAK,CAChD;oBACc,SAAS;KACxB,EACC,CAAC,gBAAgB,CAAC,CACnB,CAAC;QAEF,IAAI,CAAC,SAAS,EAAE,CAAC;YACf,MAAM,IAAI,0BAAiB,CACzB,sBAAsB,SAAS,YAAY,gBAAgB,EAAE,CAC9D,CAAC;QACJ,CAAC;QAGD,MAAM,qBAAqB,GAAG,SAAS,CAAC,aAAa,CAAC,CAAC;QAGvD,gBAAgB,CAAC,aAAa,GAAG,qBAAqB,CAAC;QAGvD,OAAO,MAAM,KAAK,CAAC,YAAY,CAAC,gBAAgB,EAAE,YAAY,CAAC,CAAC;IAClE,CAAC;CACF,CAAA;AAhDY,8DAAyB;oCAAzB,yBAAyB;IADrC,IAAA,mBAAU,GAAE;qCAEiC,uBAAa;GAD9C,yBAAyB,CAgDrC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FormMasterRepository } from '../repository/form-master.repository';
|
|
2
|
-
import { UserData } from 'src/module/
|
|
2
|
+
import { UserData } from 'src/module/auth/dto/user.dto';
|
|
3
3
|
import { EntityServiceImpl } from 'src/module/meta/service/entity-service-impl.service';
|
|
4
4
|
export declare class FormMasterService extends EntityServiceImpl {
|
|
5
5
|
private readonly formMasterRepository;
|
|
@@ -19,8 +19,8 @@ let FormMasterService = class FormMasterService extends entity_service_impl_serv
|
|
|
19
19
|
this.formMasterRepository = formMasterRepository;
|
|
20
20
|
}
|
|
21
21
|
async getForms(loggedInUser, source_entity_type) {
|
|
22
|
-
const {
|
|
23
|
-
return this.formMasterRepository.getForms(
|
|
22
|
+
const { enterprise_id } = loggedInUser;
|
|
23
|
+
return this.formMasterRepository.getForms(enterprise_id, source_entity_type);
|
|
24
24
|
}
|
|
25
25
|
async saveForm(data, loggedInUser) {
|
|
26
26
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-master.service.js","sourceRoot":"","sources":["../../../../src/module/workflow/service/form-master.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAoD;AACpD,iFAA4E;AAE5E,gGAAwF;AAGjF,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,+CAAiB;IACtD,YAA6B,oBAA0C;QACrE,KAAK,EAAE,CAAC;QADmB,yBAAoB,GAApB,oBAAoB,CAAsB;IAEvE,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,YAAsB,EAAE,kBAA0B;QAC/D,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"form-master.service.js","sourceRoot":"","sources":["../../../../src/module/workflow/service/form-master.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAoD;AACpD,iFAA4E;AAE5E,gGAAwF;AAGjF,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,+CAAiB;IACtD,YAA6B,oBAA0C;QACrE,KAAK,EAAE,CAAC;QADmB,yBAAoB,GAApB,oBAAoB,CAAsB;IAEvE,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,YAAsB,EAAE,kBAA0B;QAC/D,MAAM,EAAE,aAAa,EAAE,GAAG,YAAY,CAAC;QACvC,OAAO,IAAI,CAAC,oBAAoB,CAAC,QAAQ,CACvC,aAAa,EACb,kBAAkB,CACnB,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,QAAQ,CACZ,IAAiE,EACjE,YAAsB;IAGxB,CAAC;IAED,KAAK,CAAC,UAAU,CAAC,IAAS,EAAE,YAAsB;QAChD,MAAM,EAAE,SAAS,EAAE,aAAa,EAAE,GAAG,IAAI,CAAC;QAG1C,KAAK,CAAC,YAAY,CAAC,SAAS,EAAE,YAAY,CAAC,CAAC;QAE5C,OAAO,IAAI,CAAC,oBAAoB,CAAC,UAAU,CAAC,aAAa,EAAE,YAAY,CAAC,CAAC;IAC3E,CAAC;CACF,CAAA;AA5BY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,mBAAU,GAAE;qCAEwC,6CAAoB;GAD5D,iBAAiB,CA4B7B"}
|
|
@@ -1,19 +1,15 @@
|
|
|
1
|
-
import { DataSource } from 'typeorm';
|
|
2
|
-
import { PopulateMetaService } from './../../meta/service/populate-meta.service';
|
|
3
1
|
import { EntityServiceImpl } from 'src/module/meta/service/entity-service-impl.service';
|
|
4
2
|
import { WorkflowService } from './workflow.service';
|
|
5
|
-
import { UserData } from 'src/module/
|
|
3
|
+
import { UserData } from 'src/module/auth/dto/user.dto';
|
|
6
4
|
import { StageGroupService } from './stage-group.service';
|
|
7
5
|
import { StageService } from './stage.service';
|
|
8
6
|
import { ActionService } from './action.service';
|
|
9
7
|
export declare class PopulateWorkflowService extends EntityServiceImpl {
|
|
10
|
-
private readonly populateMetaService;
|
|
11
|
-
private readonly dataSource;
|
|
12
8
|
private readonly workflowService;
|
|
13
9
|
private readonly stageGroupService;
|
|
14
10
|
private readonly stageService;
|
|
15
11
|
private readonly actionService;
|
|
16
|
-
constructor(
|
|
12
|
+
constructor(workflowService: WorkflowService, stageGroupService: StageGroupService, stageService: StageService, actionService: ActionService);
|
|
17
13
|
populateWorkflowData(organization_id: number, loggedInUser: UserData): Promise<{
|
|
18
14
|
message: string;
|
|
19
15
|
status: string;
|