rez_core 3.1.167 → 3.1.168
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app.controller.d.ts +6 -0
- package/dist/app.controller.js +34 -0
- package/dist/app.controller.js.map +1 -0
- package/dist/app.module.d.ts +2 -0
- package/dist/app.module.js +62 -0
- package/dist/app.module.js.map +1 -0
- package/dist/app.service.d.ts +3 -0
- package/dist/app.service.js +20 -0
- package/dist/app.service.js.map +1 -0
- package/dist/config/config.module.d.ts +2 -0
- package/dist/config/config.module.js +29 -0
- package/dist/config/config.module.js.map +1 -0
- package/dist/config/database.config.d.ts +7 -0
- package/dist/config/database.config.js +39 -0
- package/dist/config/database.config.js.map +1 -0
- package/dist/constant/global.constant.d.ts +50 -0
- package/dist/constant/global.constant.js +54 -0
- package/dist/constant/global.constant.js.map +1 -0
- package/dist/core.module.d.ts +4 -0
- package/dist/core.module.js +79 -0
- package/dist/core.module.js.map +1 -0
- package/dist/decorators/roles.decorator.d.ts +1 -0
- package/dist/decorators/roles.decorator.js +7 -0
- package/dist/decorators/roles.decorator.js.map +1 -0
- package/dist/dtos/response.d.ts +5 -0
- package/dist/dtos/response.dto.d.ts +5 -0
- package/dist/dtos/response.dto.js +3 -0
- package/dist/dtos/response.dto.js.map +1 -0
- package/dist/dtos/response.js +3 -0
- package/dist/dtos/response.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +25 -0
- package/dist/main.js.map +1 -0
- package/dist/module/auth/auth.module.d.ts +2 -0
- package/dist/module/auth/auth.module.js +57 -0
- package/dist/module/auth/auth.module.js.map +1 -0
- package/dist/module/auth/controller/auth.controller.d.ts +8 -0
- package/dist/module/auth/controller/auth.controller.js +51 -0
- package/dist/module/auth/controller/auth.controller.js.map +1 -0
- package/dist/module/auth/guards/google-auth.guard.d.ts +6 -0
- package/dist/module/auth/guards/google-auth.guard.js +21 -0
- package/dist/module/auth/guards/google-auth.guard.js.map +1 -0
- package/dist/module/auth/guards/jwt.guard.d.ts +10 -0
- package/dist/module/auth/guards/jwt.guard.js +36 -0
- package/dist/module/auth/guards/jwt.guard.js.map +1 -0
- package/dist/module/auth/guards/role.guard.d.ts +9 -0
- package/dist/module/auth/guards/role.guard.js +59 -0
- package/dist/module/auth/guards/role.guard.js.map +1 -0
- package/dist/module/auth/services/auth.service.d.ts +14 -0
- package/dist/module/auth/services/auth.service.js +39 -0
- package/dist/module/auth/services/auth.service.js.map +1 -0
- package/dist/module/auth/services/jwt.service.d.ts +6 -0
- package/dist/module/auth/services/jwt.service.js +28 -0
- package/dist/module/auth/services/jwt.service.js.map +1 -0
- package/dist/module/auth/strategies/google.strategy.d.ts +10 -0
- package/dist/module/auth/strategies/google.strategy.js +59 -0
- package/dist/module/auth/strategies/google.strategy.js.map +1 -0
- package/dist/module/auth/strategies/jwt.strategy.d.ts +19 -0
- package/dist/module/auth/strategies/jwt.strategy.js +46 -0
- package/dist/module/auth/strategies/jwt.strategy.js.map +1 -0
- package/dist/module/auth/strategies/local.strategy.d.ts +7 -0
- package/dist/module/auth/strategies/local.strategy.js +30 -0
- package/dist/module/auth/strategies/local.strategy.js.map +1 -0
- package/dist/module/dashboard/controller/dashboard.controller.d.ts +33 -0
- package/dist/module/dashboard/controller/dashboard.controller.js +55 -0
- package/dist/module/dashboard/controller/dashboard.controller.js.map +1 -0
- package/dist/module/dashboard/dashboard.module.d.ts +2 -0
- package/dist/module/dashboard/dashboard.module.js +34 -0
- package/dist/module/dashboard/dashboard.module.js.map +1 -0
- package/dist/module/dashboard/entity/dashboard_page_data.entity.d.ts +10 -0
- package/dist/module/dashboard/entity/dashboard_page_data.entity.js +50 -0
- package/dist/module/dashboard/entity/dashboard_page_data.entity.js.map +1 -0
- package/dist/module/dashboard/entity/widget_master.entity.d.ts +7 -0
- package/dist/module/dashboard/entity/widget_master.entity.js +38 -0
- package/dist/module/dashboard/entity/widget_master.entity.js.map +1 -0
- package/dist/module/dashboard/repository/dashboard.repository.d.ts +10 -0
- package/dist/module/dashboard/repository/dashboard.repository.js +50 -0
- package/dist/module/dashboard/repository/dashboard.repository.js.map +1 -0
- package/dist/module/dashboard/service/dashboard.service.d.ts +35 -0
- package/dist/module/dashboard/service/dashboard.service.js +62 -0
- package/dist/module/dashboard/service/dashboard.service.js.map +1 -0
- package/dist/module/dev/dev.module.d.ts +2 -0
- package/dist/module/dev/dev.module.js +25 -0
- package/dist/module/dev/dev.module.js.map +1 -0
- package/dist/module/dev/service/dev.service.d.ts +5 -0
- package/dist/module/dev/service/dev.service.js +25 -0
- package/dist/module/dev/service/dev.service.js.map +1 -0
- package/dist/module/enterprise/controller/organization.controller.d.ts +14 -0
- package/dist/module/enterprise/controller/organization.controller.js +59 -0
- package/dist/module/enterprise/controller/organization.controller.js.map +1 -0
- package/dist/module/enterprise/enterprise.module.d.ts +2 -0
- package/dist/module/enterprise/enterprise.module.js +43 -0
- package/dist/module/enterprise/enterprise.module.js.map +1 -0
- package/dist/module/enterprise/entity/enterprise.entity.d.ts +13 -0
- package/dist/module/enterprise/entity/enterprise.entity.js +64 -0
- package/dist/module/enterprise/entity/enterprise.entity.js.map +1 -0
- package/dist/module/enterprise/entity/organization-app-mapping.entity.d.ts +5 -0
- package/dist/module/enterprise/entity/organization-app-mapping.entity.js +32 -0
- package/dist/module/enterprise/entity/organization-app-mapping.entity.js.map +1 -0
- package/dist/module/enterprise/entity/organization.entity.d.ts +30 -0
- package/dist/module/enterprise/entity/organization.entity.js +136 -0
- package/dist/module/enterprise/entity/organization.entity.js.map +1 -0
- package/dist/module/enterprise/repository/enterprise.repository.d.ts +8 -0
- package/dist/module/enterprise/repository/enterprise.repository.js +48 -0
- package/dist/module/enterprise/repository/enterprise.repository.js.map +1 -0
- package/dist/module/enterprise/repository/organization.repository.d.ts +8 -0
- package/dist/module/enterprise/repository/organization.repository.js +41 -0
- package/dist/module/enterprise/repository/organization.repository.js.map +1 -0
- package/dist/module/enterprise/repository/school.repository.d.ts +8 -0
- package/dist/module/enterprise/repository/school.repository.js +244 -0
- package/dist/module/enterprise/repository/school.repository.js.map +1 -0
- package/dist/module/enterprise/service/brand.service.d.ts +3 -0
- package/dist/module/enterprise/service/brand.service.js +18 -0
- package/dist/module/enterprise/service/brand.service.js.map +1 -0
- package/dist/module/enterprise/service/enterprise.service.d.ts +8 -0
- package/dist/module/enterprise/service/enterprise.service.js +31 -0
- package/dist/module/enterprise/service/enterprise.service.js.map +1 -0
- package/dist/module/enterprise/service/organization-app-mapping.service.d.ts +2 -0
- package/dist/module/enterprise/service/organization-app-mapping.service.js +17 -0
- package/dist/module/enterprise/service/organization-app-mapping.service.js.map +1 -0
- package/dist/module/enterprise/service/organization.service.d.ts +19 -0
- package/dist/module/enterprise/service/organization.service.js +121 -0
- package/dist/module/enterprise/service/organization.service.js.map +1 -0
- package/dist/module/filter/controller/filter.controller.d.ts +39 -0
- package/dist/module/filter/controller/filter.controller.js +91 -0
- package/dist/module/filter/controller/filter.controller.js.map +1 -0
- package/dist/module/filter/dto/filter-request.dto.d.ts +35 -0
- package/dist/module/filter/dto/filter-request.dto.js +3 -0
- package/dist/module/filter/dto/filter-request.dto.js.map +1 -0
- package/dist/module/filter/entity/saved-filter-detail.entity.d.ts +14 -0
- package/dist/module/filter/entity/saved-filter-detail.entity.js +67 -0
- package/dist/module/filter/entity/saved-filter-detail.entity.js.map +1 -0
- package/dist/module/filter/entity/saved-filter-master.entity.d.ts +8 -0
- package/dist/module/filter/entity/saved-filter-master.entity.js +43 -0
- package/dist/module/filter/entity/saved-filter-master.entity.js.map +1 -0
- package/dist/module/filter/filter.module.d.ts +2 -0
- package/dist/module/filter/filter.module.js +44 -0
- package/dist/module/filter/filter.module.js.map +1 -0
- package/dist/module/filter/repository/saved-filter.repository.d.ts +40 -0
- package/dist/module/filter/repository/saved-filter.repository.js +144 -0
- package/dist/module/filter/repository/saved-filter.repository.js.map +1 -0
- package/dist/module/filter/service/filter-evaluator.service.d.ts +9 -0
- package/dist/module/filter/service/filter-evaluator.service.js +62 -0
- package/dist/module/filter/service/filter-evaluator.service.js.map +1 -0
- package/dist/module/filter/service/filter.service.d.ts +68 -0
- package/dist/module/filter/service/filter.service.js +612 -0
- package/dist/module/filter/service/filter.service.js.map +1 -0
- package/dist/module/filter/service/saved-filter.service.d.ts +30 -0
- package/dist/module/filter/service/saved-filter.service.js +125 -0
- package/dist/module/filter/service/saved-filter.service.js.map +1 -0
- package/dist/module/ics/controller/ics.controller.d.ts +8 -0
- package/dist/module/ics/controller/ics.controller.js +45 -0
- package/dist/module/ics/controller/ics.controller.js.map +1 -0
- package/dist/module/ics/dto/ics.dto.d.ts +17 -0
- package/dist/module/ics/dto/ics.dto.js +73 -0
- package/dist/module/ics/dto/ics.dto.js.map +1 -0
- package/dist/module/ics/ics.module.d.ts +2 -0
- package/dist/module/ics/ics.module.js +26 -0
- package/dist/module/ics/ics.module.js.map +1 -0
- package/dist/module/ics/service/ics.service.d.ts +4 -0
- package/dist/module/ics/service/ics.service.js +61 -0
- package/dist/module/ics/service/ics.service.js.map +1 -0
- package/dist/module/integration/controller/calender-event.controller.d.ts +7 -0
- package/dist/module/integration/controller/calender-event.controller.js +51 -0
- package/dist/module/integration/controller/calender-event.controller.js.map +1 -0
- package/dist/module/integration/controller/integration.controller.d.ts +165 -0
- package/dist/module/integration/controller/integration.controller.js +697 -0
- package/dist/module/integration/controller/integration.controller.js.map +1 -0
- package/dist/module/integration/controller/wrapper.controller.d.ts +23 -0
- package/dist/module/integration/controller/wrapper.controller.js +54 -0
- package/dist/module/integration/controller/wrapper.controller.js.map +1 -0
- package/dist/module/integration/dto/create-config.dto.d.ts +217 -0
- package/dist/module/integration/dto/create-config.dto.js +495 -0
- package/dist/module/integration/dto/create-config.dto.js.map +1 -0
- package/dist/module/integration/entity/integration-config.entity.d.ts +54 -0
- package/dist/module/integration/entity/integration-config.entity.js +78 -0
- package/dist/module/integration/entity/integration-config.entity.js.map +1 -0
- package/dist/module/integration/entity/integration-entity-mapper.entity.d.ts +6 -0
- package/dist/module/integration/entity/integration-entity-mapper.entity.js +33 -0
- package/dist/module/integration/entity/integration-entity-mapper.entity.js.map +1 -0
- package/dist/module/integration/entity/integration-source.entity.d.ts +7 -0
- package/dist/module/integration/entity/integration-source.entity.js +37 -0
- package/dist/module/integration/entity/integration-source.entity.js.map +1 -0
- package/dist/module/integration/entity/user-integration.entity.d.ts +23 -0
- package/dist/module/integration/entity/user-integration.entity.js +70 -0
- package/dist/module/integration/entity/user-integration.entity.js.map +1 -0
- package/dist/module/integration/examples/usage.example.d.ts +16 -0
- package/dist/module/integration/examples/usage.example.js +217 -0
- package/dist/module/integration/examples/usage.example.js.map +1 -0
- package/dist/module/integration/factories/base.factory.d.ts +9 -0
- package/dist/module/integration/factories/base.factory.js +3 -0
- package/dist/module/integration/factories/base.factory.js.map +1 -0
- package/dist/module/integration/factories/email.factory.d.ts +17 -0
- package/dist/module/integration/factories/email.factory.js +55 -0
- package/dist/module/integration/factories/email.factory.js.map +1 -0
- package/dist/module/integration/factories/integration.factory.d.ts +33 -0
- package/dist/module/integration/factories/integration.factory.js +104 -0
- package/dist/module/integration/factories/integration.factory.js.map +1 -0
- package/dist/module/integration/factories/sms.factory.d.ts +17 -0
- package/dist/module/integration/factories/sms.factory.js +58 -0
- package/dist/module/integration/factories/sms.factory.js.map +1 -0
- package/dist/module/integration/factories/telephone.factory.d.ts +15 -0
- package/dist/module/integration/factories/telephone.factory.js +49 -0
- package/dist/module/integration/factories/telephone.factory.js.map +1 -0
- package/dist/module/integration/factories/whatsapp.factory.d.ts +19 -0
- package/dist/module/integration/factories/whatsapp.factory.js +63 -0
- package/dist/module/integration/factories/whatsapp.factory.js.map +1 -0
- package/dist/module/integration/integration.module.d.ts +2 -0
- package/dist/module/integration/integration.module.js +96 -0
- package/dist/module/integration/integration.module.js.map +1 -0
- package/dist/module/integration/service/calendar-event.service.d.ts +8 -0
- package/dist/module/integration/service/calendar-event.service.js +101 -0
- package/dist/module/integration/service/calendar-event.service.js.map +1 -0
- package/dist/module/integration/service/integration-entity-mapper.service.d.ts +7 -0
- package/dist/module/integration/service/integration-entity-mapper.service.js +36 -0
- package/dist/module/integration/service/integration-entity-mapper.service.js.map +1 -0
- package/dist/module/integration/service/integration-queue.service.d.ts +40 -0
- package/dist/module/integration/service/integration-queue.service.js +147 -0
- package/dist/module/integration/service/integration-queue.service.js.map +1 -0
- package/dist/module/integration/service/integration.service.d.ts +198 -0
- package/dist/module/integration/service/integration.service.js +1558 -0
- package/dist/module/integration/service/integration.service.js.map +1 -0
- package/dist/module/integration/service/oauth.service.d.ts +18 -0
- package/dist/module/integration/service/oauth.service.js +190 -0
- package/dist/module/integration/service/oauth.service.js.map +1 -0
- package/dist/module/integration/service/wrapper.service.d.ts +36 -0
- package/dist/module/integration/service/wrapper.service.js +299 -0
- package/dist/module/integration/service/wrapper.service.js.map +1 -0
- package/dist/module/integration/strategies/email/gmail-api.strategy.d.ts +13 -0
- package/dist/module/integration/strategies/email/gmail-api.strategy.js +195 -0
- package/dist/module/integration/strategies/email/gmail-api.strategy.js.map +1 -0
- package/dist/module/integration/strategies/email/outlook-api.strategy.d.ts +5 -0
- package/dist/module/integration/strategies/email/outlook-api.strategy.js +44 -0
- package/dist/module/integration/strategies/email/outlook-api.strategy.js.map +1 -0
- package/dist/module/integration/strategies/email/outlook.strategy.d.ts +5 -0
- package/dist/module/integration/strategies/email/outlook.strategy.js +64 -0
- package/dist/module/integration/strategies/email/outlook.strategy.js.map +1 -0
- package/dist/module/integration/strategies/email/sendgrid-api.strategy.d.ts +22 -0
- package/dist/module/integration/strategies/email/sendgrid-api.strategy.js +203 -0
- package/dist/module/integration/strategies/email/sendgrid-api.strategy.js.map +1 -0
- package/dist/module/integration/strategies/integration.strategy.d.ts +31 -0
- package/dist/module/integration/strategies/integration.strategy.js +40 -0
- package/dist/module/integration/strategies/integration.strategy.js.map +1 -0
- package/dist/module/integration/strategies/sms/gupshup-sms.strategy.d.ts +9 -0
- package/dist/module/integration/strategies/sms/gupshup-sms.strategy.js +104 -0
- package/dist/module/integration/strategies/sms/gupshup-sms.strategy.js.map +1 -0
- package/dist/module/integration/strategies/sms/msg91-sms.strategy.d.ts +9 -0
- package/dist/module/integration/strategies/sms/msg91-sms.strategy.js +113 -0
- package/dist/module/integration/strategies/sms/msg91-sms.strategy.js.map +1 -0
- package/dist/module/integration/strategies/sms/tubelight-sms.strategy.d.ts +9 -0
- package/dist/module/integration/strategies/sms/tubelight-sms.strategy.js +109 -0
- package/dist/module/integration/strategies/sms/tubelight-sms.strategy.js.map +1 -0
- package/dist/module/integration/strategies/telephone/ozonetel-voice.strategy.d.ts +22 -0
- package/dist/module/integration/strategies/telephone/ozonetel-voice.strategy.js +170 -0
- package/dist/module/integration/strategies/telephone/ozonetel-voice.strategy.js.map +1 -0
- package/dist/module/integration/strategies/telephone/tubelight-voice.strategy.d.ts +24 -0
- package/dist/module/integration/strategies/telephone/tubelight-voice.strategy.js +152 -0
- package/dist/module/integration/strategies/telephone/tubelight-voice.strategy.js.map +1 -0
- package/dist/module/integration/strategies/whatsapp/gupshup-whatsapp.strategy.d.ts +19 -0
- package/dist/module/integration/strategies/whatsapp/gupshup-whatsapp.strategy.js +257 -0
- package/dist/module/integration/strategies/whatsapp/gupshup-whatsapp.strategy.js.map +1 -0
- package/dist/module/integration/strategies/whatsapp/tubelight-whatsapp.strategy.d.ts +33 -0
- package/dist/module/integration/strategies/whatsapp/tubelight-whatsapp.strategy.js +256 -0
- package/dist/module/integration/strategies/whatsapp/tubelight-whatsapp.strategy.js.map +1 -0
- package/dist/module/integration/strategies/whatsapp/whatsapp-cloud.strategy.d.ts +20 -0
- package/dist/module/integration/strategies/whatsapp/whatsapp-cloud.strategy.js +264 -0
- package/dist/module/integration/strategies/whatsapp/whatsapp-cloud.strategy.js.map +1 -0
- package/dist/module/integration/strategies/whatsapp/whatsapp.strategy.d.ts +5 -0
- package/dist/module/integration/strategies/whatsapp/whatsapp.strategy.js +57 -0
- package/dist/module/integration/strategies/whatsapp/whatsapp.strategy.js.map +1 -0
- package/dist/module/layout/controller/layout.controller.d.ts +11 -0
- package/dist/module/layout/controller/layout.controller.js +59 -0
- package/dist/module/layout/controller/layout.controller.js.map +1 -0
- package/dist/module/layout/dto/header.dto.d.ts +0 -0
- package/dist/module/layout/dto/header.dto.js +1 -0
- package/dist/module/layout/dto/header.dto.js.map +1 -0
- package/dist/module/layout/entity/header-items.entity.d.ts +10 -0
- package/dist/module/layout/entity/header-items.entity.js +52 -0
- package/dist/module/layout/entity/header-items.entity.js.map +1 -0
- package/dist/module/layout/entity/header-section.entity.d.ts +7 -0
- package/dist/module/layout/entity/header-section.entity.js +40 -0
- package/dist/module/layout/entity/header-section.entity.js.map +1 -0
- package/dist/module/layout/layout.module.d.ts +2 -0
- package/dist/module/layout/layout.module.js +34 -0
- package/dist/module/layout/layout.module.js.map +1 -0
- package/dist/module/layout/repository/header-items.repository.d.ts +7 -0
- package/dist/module/layout/repository/header-items.repository.js +36 -0
- package/dist/module/layout/repository/header-items.repository.js.map +1 -0
- package/dist/module/layout/repository/header-section.repository.d.ts +8 -0
- package/dist/module/layout/repository/header-section.repository.js +39 -0
- package/dist/module/layout/repository/header-section.repository.js.map +1 -0
- package/dist/module/layout/service/header-section.service.d.ts +8 -0
- package/dist/module/layout/service/header-section.service.js +37 -0
- package/dist/module/layout/service/header-section.service.js.map +1 -0
- package/dist/module/layout_preference/controller/layout_preference.controller.d.ts +13 -0
- package/dist/module/layout_preference/controller/layout_preference.controller.js +59 -0
- package/dist/module/layout_preference/controller/layout_preference.controller.js.map +1 -0
- package/dist/module/layout_preference/dto/layout_preference.dto.d.ts +0 -0
- package/dist/module/layout_preference/dto/layout_preference.dto.js +1 -0
- package/dist/module/layout_preference/dto/layout_preference.dto.js.map +1 -0
- package/dist/module/layout_preference/entity/layout_preference.entity.d.ts +9 -0
- package/dist/module/layout_preference/entity/layout_preference.entity.js +50 -0
- package/dist/module/layout_preference/entity/layout_preference.entity.js.map +1 -0
- package/dist/module/layout_preference/layout_preference.module.d.ts +2 -0
- package/dist/module/layout_preference/layout_preference.module.js +31 -0
- package/dist/module/layout_preference/layout_preference.module.js.map +1 -0
- package/dist/module/layout_preference/repository/layout_preference.repository.d.ts +7 -0
- package/dist/module/layout_preference/repository/layout_preference.repository.js +42 -0
- package/dist/module/layout_preference/repository/layout_preference.repository.js.map +1 -0
- package/dist/module/layout_preference/service/layout_preference.service.d.ts +16 -0
- package/dist/module/layout_preference/service/layout_preference.service.js +117 -0
- package/dist/module/layout_preference/service/layout_preference.service.js.map +1 -0
- package/dist/module/lead/controller/lead.controller.d.ts +20 -0
- package/dist/module/lead/controller/lead.controller.js +58 -0
- package/dist/module/lead/controller/lead.controller.js.map +1 -0
- package/dist/module/lead/lead.module.d.ts +2 -0
- package/dist/module/lead/lead.module.js +26 -0
- package/dist/module/lead/lead.module.js.map +1 -0
- package/dist/module/lead/repository/lead.repository.d.ts +10 -0
- package/dist/module/lead/repository/lead.repository.js +53 -0
- package/dist/module/lead/repository/lead.repository.js.map +1 -0
- package/dist/module/lead/service/lead.service.d.ts +20 -0
- package/dist/module/lead/service/lead.service.js +55 -0
- package/dist/module/lead/service/lead.service.js.map +1 -0
- package/dist/module/listmaster/controller/list-master.controller.d.ts +22 -0
- package/dist/module/listmaster/controller/list-master.controller.js +156 -0
- package/dist/module/listmaster/controller/list-master.controller.js.map +1 -0
- package/dist/module/listmaster/entity/list-master-items.entity.d.ts +14 -0
- package/dist/module/listmaster/entity/list-master-items.entity.js +67 -0
- package/dist/module/listmaster/entity/list-master-items.entity.js.map +1 -0
- package/dist/module/listmaster/entity/list-master.entity.d.ts +11 -0
- package/dist/module/listmaster/entity/list-master.entity.js +55 -0
- package/dist/module/listmaster/entity/list-master.entity.js.map +1 -0
- package/dist/module/listmaster/listmaster.module.d.ts +2 -0
- package/dist/module/listmaster/listmaster.module.js +53 -0
- package/dist/module/listmaster/listmaster.module.js.map +1 -0
- package/dist/module/listmaster/repository/list-master-items.repository.d.ts +21 -0
- package/dist/module/listmaster/repository/list-master-items.repository.js +142 -0
- package/dist/module/listmaster/repository/list-master-items.repository.js.map +1 -0
- package/dist/module/listmaster/repository/list-master.repository.d.ts +9 -0
- package/dist/module/listmaster/repository/list-master.repository.js +53 -0
- package/dist/module/listmaster/repository/list-master.repository.js.map +1 -0
- package/dist/module/listmaster/service/list-master-engine.d.ts +6 -0
- package/dist/module/listmaster/service/list-master-engine.js +35 -0
- package/dist/module/listmaster/service/list-master-engine.js.map +1 -0
- package/dist/module/listmaster/service/list-master-extension.interface.d.ts +4 -0
- package/dist/module/listmaster/service/list-master-extension.interface.js +3 -0
- package/dist/module/listmaster/service/list-master-extension.interface.js.map +1 -0
- package/dist/module/listmaster/service/list-master-item.service.d.ts +19 -0
- package/dist/module/listmaster/service/list-master-item.service.js +151 -0
- package/dist/module/listmaster/service/list-master-item.service.js.map +1 -0
- package/dist/module/listmaster/service/list-master-registry.d.ts +6 -0
- package/dist/module/listmaster/service/list-master-registry.js +26 -0
- package/dist/module/listmaster/service/list-master-registry.js.map +1 -0
- package/dist/module/listmaster/service/list-master.service.d.ts +36 -0
- package/dist/module/listmaster/service/list-master.service.js +270 -0
- package/dist/module/listmaster/service/list-master.service.js.map +1 -0
- package/dist/module/mapper/controller/field-mapper.controller.d.ts +11 -0
- package/dist/module/mapper/controller/field-mapper.controller.js +94 -0
- package/dist/module/mapper/controller/field-mapper.controller.js.map +1 -0
- package/dist/module/mapper/controller/mapper.controller.d.ts +6 -0
- package/dist/module/mapper/controller/mapper.controller.js +40 -0
- package/dist/module/mapper/controller/mapper.controller.js.map +1 -0
- package/dist/module/mapper/dto/field-mapper.dto.d.ts +12 -0
- package/dist/module/mapper/dto/field-mapper.dto.js +8 -0
- package/dist/module/mapper/dto/field-mapper.dto.js.map +1 -0
- package/dist/module/mapper/entity/field-lovs.entity.d.ts +7 -0
- package/dist/module/mapper/entity/field-lovs.entity.js +38 -0
- package/dist/module/mapper/entity/field-lovs.entity.js.map +1 -0
- package/dist/module/mapper/entity/field-mapper.entity.d.ts +13 -0
- package/dist/module/mapper/entity/field-mapper.entity.js +78 -0
- package/dist/module/mapper/entity/field-mapper.entity.js.map +1 -0
- package/dist/module/mapper/entity/mapper.entity.d.ts +6 -0
- package/dist/module/mapper/entity/mapper.entity.js +34 -0
- package/dist/module/mapper/entity/mapper.entity.js.map +1 -0
- package/dist/module/mapper/mapper.module.d.ts +2 -0
- package/dist/module/mapper/mapper.module.js +47 -0
- package/dist/module/mapper/mapper.module.js.map +1 -0
- package/dist/module/mapper/repository/field-lovs.repository.d.ts +11 -0
- package/dist/module/mapper/repository/field-lovs.repository.js +52 -0
- package/dist/module/mapper/repository/field-lovs.repository.js.map +1 -0
- package/dist/module/mapper/repository/field-mapper.repository.d.ts +11 -0
- package/dist/module/mapper/repository/field-mapper.repository.js +54 -0
- package/dist/module/mapper/repository/field-mapper.repository.js.map +1 -0
- package/dist/module/mapper/repository/mapper.repository.d.ts +7 -0
- package/dist/module/mapper/repository/mapper.repository.js +34 -0
- package/dist/module/mapper/repository/mapper.repository.js.map +1 -0
- package/dist/module/mapper/service/field-mapper.service.d.ts +22 -0
- package/dist/module/mapper/service/field-mapper.service.js +177 -0
- package/dist/module/mapper/service/field-mapper.service.js.map +1 -0
- package/dist/module/mapper/service/mapper.service.d.ts +17 -0
- package/dist/module/mapper/service/mapper.service.js +72 -0
- package/dist/module/mapper/service/mapper.service.js.map +1 -0
- package/dist/module/master/controller/master.controller.d.ts +20 -0
- package/dist/module/master/controller/master.controller.js +82 -0
- package/dist/module/master/controller/master.controller.js.map +1 -0
- package/dist/module/master/service/master.service.d.ts +31 -0
- package/dist/module/master/service/master.service.js +364 -0
- package/dist/module/master/service/master.service.js.map +1 -0
- package/dist/module/meta/controller/app-master.controller.d.ts +9 -0
- package/dist/module/meta/controller/app-master.controller.js +51 -0
- package/dist/module/meta/controller/app-master.controller.js.map +1 -0
- package/dist/module/meta/controller/attribute-master.controller.d.ts +21 -0
- package/dist/module/meta/controller/attribute-master.controller.js +78 -0
- package/dist/module/meta/controller/attribute-master.controller.js.map +1 -0
- package/dist/module/meta/controller/entity-dynamic.controller.d.ts +21 -0
- package/dist/module/meta/controller/entity-dynamic.controller.js +115 -0
- package/dist/module/meta/controller/entity-dynamic.controller.js.map +1 -0
- package/dist/module/meta/controller/entity-master.controller.d.ts +8 -0
- package/dist/module/meta/controller/entity-master.controller.js +44 -0
- package/dist/module/meta/controller/entity-master.controller.js.map +1 -0
- package/dist/module/meta/controller/entity-relation.controller.d.ts +6 -0
- package/dist/module/meta/controller/entity-relation.controller.js +45 -0
- package/dist/module/meta/controller/entity-relation.controller.js.map +1 -0
- package/dist/module/meta/controller/entity.controller.d.ts +38 -0
- package/dist/module/meta/controller/entity.controller.js +245 -0
- package/dist/module/meta/controller/entity.controller.js.map +1 -0
- package/dist/module/meta/controller/media.controller.d.ts +17 -0
- package/dist/module/meta/controller/media.controller.js +80 -0
- package/dist/module/meta/controller/media.controller.js.map +1 -0
- package/dist/module/meta/controller/meta.controller.d.ts +32 -0
- package/dist/module/meta/controller/meta.controller.js +112 -0
- package/dist/module/meta/controller/meta.controller.js.map +1 -0
- package/dist/module/meta/controller/view-master.controller.d.ts +12 -0
- package/dist/module/meta/controller/view-master.controller.js +88 -0
- package/dist/module/meta/controller/view-master.controller.js.map +1 -0
- package/dist/module/meta/dto/entity-list-data.dto.d.ts +5 -0
- package/dist/module/meta/dto/entity-list-data.dto.js +7 -0
- package/dist/module/meta/dto/entity-list-data.dto.js.map +1 -0
- package/dist/module/meta/dto/entity-tab.dto.d.ts +4 -0
- package/dist/module/meta/dto/entity-tab.dto.js +7 -0
- package/dist/module/meta/dto/entity-tab.dto.js.map +1 -0
- package/dist/module/meta/dto/entity-table.dto.d.ts +11 -0
- package/dist/module/meta/dto/entity-table.dto.js +8 -0
- package/dist/module/meta/dto/entity-table.dto.js.map +1 -0
- package/dist/module/meta/entity/app-master.entity.d.ts +12 -0
- package/dist/module/meta/entity/app-master.entity.js +58 -0
- package/dist/module/meta/entity/app-master.entity.js.map +1 -0
- package/dist/module/meta/entity/attribute-master.entity.d.ts +22 -0
- package/dist/module/meta/entity/attribute-master.entity.js +122 -0
- package/dist/module/meta/entity/attribute-master.entity.js.map +1 -0
- package/dist/module/meta/entity/base-entity.entity.d.ts +19 -0
- package/dist/module/meta/entity/base-entity.entity.js +104 -0
- package/dist/module/meta/entity/base-entity.entity.js.map +1 -0
- package/dist/module/meta/entity/entity-master.entity.d.ts +18 -0
- package/dist/module/meta/entity/entity-master.entity.js +108 -0
- package/dist/module/meta/entity/entity-master.entity.js.map +1 -0
- package/dist/module/meta/entity/entity-relation-data.entity.d.ts +10 -0
- package/dist/module/meta/entity/entity-relation-data.entity.js +51 -0
- package/dist/module/meta/entity/entity-relation-data.entity.js.map +1 -0
- package/dist/module/meta/entity/entity-relation.entity.d.ts +8 -0
- package/dist/module/meta/entity/entity-relation.entity.js +43 -0
- package/dist/module/meta/entity/entity-relation.entity.js.map +1 -0
- package/dist/module/meta/entity/entity-table-column.entity.d.ts +19 -0
- package/dist/module/meta/entity/entity-table-column.entity.js +92 -0
- package/dist/module/meta/entity/entity-table-column.entity.js.map +1 -0
- package/dist/module/meta/entity/entity-table.entity.d.ts +17 -0
- package/dist/module/meta/entity/entity-table.entity.js +79 -0
- package/dist/module/meta/entity/entity-table.entity.js.map +1 -0
- package/dist/module/meta/entity/media-data.entity.d.ts +11 -0
- package/dist/module/meta/entity/media-data.entity.js +55 -0
- package/dist/module/meta/entity/media-data.entity.js.map +1 -0
- package/dist/module/meta/entity/preference.entity.d.ts +11 -0
- package/dist/module/meta/entity/preference.entity.js +85 -0
- package/dist/module/meta/entity/preference.entity.js.map +1 -0
- package/dist/module/meta/entity/view-master.entity.d.ts +14 -0
- package/dist/module/meta/entity/view-master.entity.js +67 -0
- package/dist/module/meta/entity/view-master.entity.js.map +1 -0
- package/dist/module/meta/entity.module.d.ts +2 -0
- package/dist/module/meta/entity.module.js +153 -0
- package/dist/module/meta/entity.module.js.map +1 -0
- package/dist/module/meta/repository/app-master.repository.d.ts +7 -0
- package/dist/module/meta/repository/app-master.repository.js +36 -0
- package/dist/module/meta/repository/app-master.repository.js.map +1 -0
- package/dist/module/meta/repository/attribute-master.repository.d.ts +20 -0
- package/dist/module/meta/repository/attribute-master.repository.js +85 -0
- package/dist/module/meta/repository/attribute-master.repository.js.map +1 -0
- package/dist/module/meta/repository/entity-master.repository.d.ts +20 -0
- package/dist/module/meta/repository/entity-master.repository.js +73 -0
- package/dist/module/meta/repository/entity-master.repository.js.map +1 -0
- package/dist/module/meta/repository/entity-table-column.repository.d.ts +7 -0
- package/dist/module/meta/repository/entity-table-column.repository.js +52 -0
- package/dist/module/meta/repository/entity-table-column.repository.js.map +1 -0
- package/dist/module/meta/repository/entity-table.repository.d.ts +9 -0
- package/dist/module/meta/repository/entity-table.repository.js +59 -0
- package/dist/module/meta/repository/entity-table.repository.js.map +1 -0
- package/dist/module/meta/repository/media-data.repository.d.ts +9 -0
- package/dist/module/meta/repository/media-data.repository.js +55 -0
- package/dist/module/meta/repository/media-data.repository.js.map +1 -0
- package/dist/module/meta/repository/preference.repository.d.ts +7 -0
- package/dist/module/meta/repository/preference.repository.js +36 -0
- package/dist/module/meta/repository/preference.repository.js.map +1 -0
- package/dist/module/meta/repository/user-app-mapping.repository.d.ts +0 -0
- package/dist/module/meta/repository/user-app-mapping.repository.js +1 -0
- package/dist/module/meta/repository/user-app-mapping.repository.js.map +1 -0
- package/dist/module/meta/repository/view-master.repository.d.ts +11 -0
- package/dist/module/meta/repository/view-master.repository.js +52 -0
- package/dist/module/meta/repository/view-master.repository.js.map +1 -0
- package/dist/module/meta/service/app-master.service.d.ts +8 -0
- package/dist/module/meta/service/app-master.service.js +45 -0
- package/dist/module/meta/service/app-master.service.js.map +1 -0
- package/dist/module/meta/service/attribute-master.service.d.ts +16 -0
- package/dist/module/meta/service/attribute-master.service.js +75 -0
- package/dist/module/meta/service/attribute-master.service.js.map +1 -0
- package/dist/module/meta/service/common.service.d.ts +4 -0
- package/dist/module/meta/service/common.service.js +25 -0
- package/dist/module/meta/service/common.service.js.map +1 -0
- package/dist/module/meta/service/entity-dynamic.service.d.ts +23 -0
- package/dist/module/meta/service/entity-dynamic.service.js +452 -0
- package/dist/module/meta/service/entity-dynamic.service.js.map +1 -0
- package/dist/module/meta/service/entity-list.service.d.ts +17 -0
- package/dist/module/meta/service/entity-list.service.js +141 -0
- package/dist/module/meta/service/entity-list.service.js.map +1 -0
- package/dist/module/meta/service/entity-master.service.d.ts +29 -0
- package/dist/module/meta/service/entity-master.service.js +112 -0
- package/dist/module/meta/service/entity-master.service.js.map +1 -0
- package/dist/module/meta/service/entity-realation-data.service.d.ts +4 -0
- package/dist/module/meta/service/entity-realation-data.service.js +25 -0
- package/dist/module/meta/service/entity-realation-data.service.js.map +1 -0
- package/dist/module/meta/service/entity-relation.service.d.ts +8 -0
- package/dist/module/meta/service/entity-relation.service.js +58 -0
- package/dist/module/meta/service/entity-relation.service.js.map +1 -0
- package/dist/module/meta/service/entity-service-impl.service.d.ts +43 -0
- package/dist/module/meta/service/entity-service-impl.service.js +278 -0
- package/dist/module/meta/service/entity-service-impl.service.js.map +1 -0
- package/dist/module/meta/service/entity-table-column.service.d.ts +7 -0
- package/dist/module/meta/service/entity-table-column.service.js +37 -0
- package/dist/module/meta/service/entity-table-column.service.js.map +1 -0
- package/dist/module/meta/service/entity-table.service.d.ts +17 -0
- package/dist/module/meta/service/entity-table.service.js +84 -0
- package/dist/module/meta/service/entity-table.service.js.map +1 -0
- package/dist/module/meta/service/entity-validation.service.d.ts +21 -0
- package/dist/module/meta/service/entity-validation.service.js +117 -0
- package/dist/module/meta/service/entity-validation.service.js.map +1 -0
- package/dist/module/meta/service/entity.service.d.ts +15 -0
- package/dist/module/meta/service/entity.service.js +3 -0
- package/dist/module/meta/service/entity.service.js.map +1 -0
- package/dist/module/meta/service/field-group.service.d.ts +26 -0
- package/dist/module/meta/service/field-group.service.js +76 -0
- package/dist/module/meta/service/field-group.service.js.map +1 -0
- package/dist/module/meta/service/media-data.service.d.ts +30 -0
- package/dist/module/meta/service/media-data.service.js +116 -0
- package/dist/module/meta/service/media-data.service.js.map +1 -0
- package/dist/module/meta/service/populate-meta.service.d.ts +11 -0
- package/dist/module/meta/service/populate-meta.service.js +124 -0
- package/dist/module/meta/service/populate-meta.service.js.map +1 -0
- package/dist/module/meta/service/preference.service.d.ts +7 -0
- package/dist/module/meta/service/preference.service.js +31 -0
- package/dist/module/meta/service/preference.service.js.map +1 -0
- package/dist/module/meta/service/resolver.service.d.ts +11 -0
- package/dist/module/meta/service/resolver.service.js +156 -0
- package/dist/module/meta/service/resolver.service.js.map +1 -0
- package/dist/module/meta/service/section-master.service.d.ts +26 -0
- package/dist/module/meta/service/section-master.service.js +77 -0
- package/dist/module/meta/service/section-master.service.js.map +1 -0
- package/dist/module/meta/service/update-form-json.service.d.ts +9 -0
- package/dist/module/meta/service/update-form-json.service.js +39 -0
- package/dist/module/meta/service/update-form-json.service.js.map +1 -0
- package/dist/module/meta/service/user-app-mapping.service.d.ts +0 -0
- package/dist/module/meta/service/user-app-mapping.service.js +1 -0
- package/dist/module/meta/service/user-app-mapping.service.js.map +1 -0
- package/dist/module/meta/service/view-master.service.d.ts +27 -0
- package/dist/module/meta/service/view-master.service.js +69 -0
- package/dist/module/meta/service/view-master.service.js.map +1 -0
- package/dist/module/module/controller/menu.controller.d.ts +8 -0
- package/dist/module/module/controller/menu.controller.js +41 -0
- package/dist/module/module/controller/menu.controller.js.map +1 -0
- package/dist/module/module/controller/module-access.controller.d.ts +35 -0
- package/dist/module/module/controller/module-access.controller.js +148 -0
- package/dist/module/module/controller/module-access.controller.js.map +1 -0
- package/dist/module/module/entity/menu.entity.d.ts +15 -0
- package/dist/module/module/entity/menu.entity.js +72 -0
- package/dist/module/module/entity/menu.entity.js.map +1 -0
- package/dist/module/module/entity/module-access.entity.d.ts +9 -0
- package/dist/module/module/entity/module-access.entity.js +48 -0
- package/dist/module/module/entity/module-access.entity.js.map +1 -0
- package/dist/module/module/entity/module-action.entity.d.ts +6 -0
- package/dist/module/module/entity/module-action.entity.js +37 -0
- package/dist/module/module/entity/module-action.entity.js.map +1 -0
- package/dist/module/module/entity/module.entity.d.ts +18 -0
- package/dist/module/module/entity/module.entity.js +84 -0
- package/dist/module/module/entity/module.entity.js.map +1 -0
- package/dist/module/module/module.module.d.ts +2 -0
- package/dist/module/module/module.module.js +55 -0
- package/dist/module/module/module.module.js.map +1 -0
- package/dist/module/module/repository/menu.repository.d.ts +11 -0
- package/dist/module/module/repository/menu.repository.js +152 -0
- package/dist/module/module/repository/menu.repository.js.map +1 -0
- package/dist/module/module/repository/module-access.repository.d.ts +51 -0
- package/dist/module/module/repository/module-access.repository.js +275 -0
- package/dist/module/module/repository/module-access.repository.js.map +1 -0
- package/dist/module/module/service/menu.service.d.ts +12 -0
- package/dist/module/module/service/menu.service.js +59 -0
- package/dist/module/module/service/menu.service.js.map +1 -0
- package/dist/module/module/service/module-access.service.d.ts +60 -0
- package/dist/module/module/service/module-access.service.js +119 -0
- package/dist/module/module/service/module-access.service.js.map +1 -0
- package/dist/module/notification/controller/notification.controller.d.ts +23 -0
- package/dist/module/notification/controller/notification.controller.js +74 -0
- package/dist/module/notification/controller/notification.controller.js.map +1 -0
- package/dist/module/notification/controller/otp.controller.d.ts +56 -0
- package/dist/module/notification/controller/otp.controller.js +103 -0
- package/dist/module/notification/controller/otp.controller.js.map +1 -0
- package/dist/module/notification/entity/notification.entity.d.ts +9 -0
- package/dist/module/notification/entity/notification.entity.js +45 -0
- package/dist/module/notification/entity/notification.entity.js.map +1 -0
- package/dist/module/notification/entity/otp.entity.d.ts +10 -0
- package/dist/module/notification/entity/otp.entity.js +52 -0
- package/dist/module/notification/entity/otp.entity.js.map +1 -0
- package/dist/module/notification/firebase-admin.config.d.ts +7 -0
- package/dist/module/notification/firebase-admin.config.js +24 -0
- package/dist/module/notification/firebase-admin.config.js.map +1 -0
- package/dist/module/notification/notification.module.d.ts +2 -0
- package/dist/module/notification/notification.module.js +82 -0
- package/dist/module/notification/notification.module.js.map +1 -0
- package/dist/module/notification/repository/otp.repository.d.ts +9 -0
- package/dist/module/notification/repository/otp.repository.js +44 -0
- package/dist/module/notification/repository/otp.repository.js.map +1 -0
- package/dist/module/notification/service/email.service.d.ts +14 -0
- package/dist/module/notification/service/email.service.js +110 -0
- package/dist/module/notification/service/email.service.js.map +1 -0
- package/dist/module/notification/service/notification.service.d.ts +25 -0
- package/dist/module/notification/service/notification.service.js +117 -0
- package/dist/module/notification/service/notification.service.js.map +1 -0
- package/dist/module/notification/service/otp.service.d.ts +52 -0
- package/dist/module/notification/service/otp.service.js +105 -0
- package/dist/module/notification/service/otp.service.js.map +1 -0
- package/dist/module/third-party-module/entity/third-party-api-registry.entity.d.ts +18 -0
- package/dist/module/third-party-module/entity/third-party-api-registry.entity.js +84 -0
- package/dist/module/third-party-module/entity/third-party-api-registry.entity.js.map +1 -0
- package/dist/module/third-party-module/repository/third-party-api-registry.repository.d.ts +7 -0
- package/dist/module/third-party-module/repository/third-party-api-registry.repository.js +38 -0
- package/dist/module/third-party-module/repository/third-party-api-registry.repository.js.map +1 -0
- package/dist/module/third-party-module/service/api-registry.service.d.ts +6 -0
- package/dist/module/third-party-module/service/api-registry.service.js +28 -0
- package/dist/module/third-party-module/service/api-registry.service.js.map +1 -0
- package/dist/module/third-party-module/third-party.module.d.ts +2 -0
- package/dist/module/third-party-module/third-party.module.js +25 -0
- package/dist/module/third-party-module/third-party.module.js.map +1 -0
- package/dist/module/user/controller/login.controller.d.ts +26 -0
- package/dist/module/user/controller/login.controller.js +176 -0
- package/dist/module/user/controller/login.controller.js.map +1 -0
- package/dist/module/user/controller/user.controller.d.ts +9 -0
- package/dist/module/user/controller/user.controller.js +59 -0
- package/dist/module/user/controller/user.controller.js.map +1 -0
- package/dist/module/user/dto/create-user.dto.d.ts +17 -0
- package/dist/module/user/dto/create-user.dto.js +64 -0
- package/dist/module/user/dto/create-user.dto.js.map +1 -0
- package/dist/module/user/dto/update-user.dto.d.ts +5 -0
- package/dist/module/user/dto/update-user.dto.js +9 -0
- package/dist/module/user/dto/update-user.dto.js.map +1 -0
- package/dist/module/user/entity/role.entity.d.ts +11 -0
- package/dist/module/user/entity/role.entity.js +56 -0
- package/dist/module/user/entity/role.entity.js.map +1 -0
- package/dist/module/user/entity/user-role-mapping.entity.d.ts +12 -0
- package/dist/module/user/entity/user-role-mapping.entity.js +63 -0
- package/dist/module/user/entity/user-role-mapping.entity.js.map +1 -0
- package/dist/module/user/entity/user-session.entity.d.ts +11 -0
- package/dist/module/user/entity/user-session.entity.js +86 -0
- package/dist/module/user/entity/user-session.entity.js.map +1 -0
- package/dist/module/user/entity/user.entity.d.ts +23 -0
- package/dist/module/user/entity/user.entity.js +103 -0
- package/dist/module/user/entity/user.entity.js.map +1 -0
- package/dist/module/user/repository/role.repository.d.ts +18 -0
- package/dist/module/user/repository/role.repository.js +87 -0
- package/dist/module/user/repository/role.repository.js.map +1 -0
- package/dist/module/user/repository/user-role-mapping.repository.d.ts +19 -0
- package/dist/module/user/repository/user-role-mapping.repository.js +110 -0
- package/dist/module/user/repository/user-role-mapping.repository.js.map +1 -0
- package/dist/module/user/repository/user.repository.d.ts +10 -0
- package/dist/module/user/repository/user.repository.js +58 -0
- package/dist/module/user/repository/user.repository.js.map +1 -0
- package/dist/module/user/repository/userSession.repository.d.ts +10 -0
- package/dist/module/user/repository/userSession.repository.js +45 -0
- package/dist/module/user/repository/userSession.repository.js.map +1 -0
- package/dist/module/user/service/login.service.d.ts +80 -0
- package/dist/module/user/service/login.service.js +208 -0
- package/dist/module/user/service/login.service.js.map +1 -0
- package/dist/module/user/service/role.service.d.ts +23 -0
- package/dist/module/user/service/role.service.js +146 -0
- package/dist/module/user/service/role.service.js.map +1 -0
- package/dist/module/user/service/user-role-mapping.service.d.ts +12 -0
- package/dist/module/user/service/user-role-mapping.service.js +60 -0
- package/dist/module/user/service/user-role-mapping.service.js.map +1 -0
- package/dist/module/user/service/user-session.service.d.ts +38 -0
- package/dist/module/user/service/user-session.service.js +132 -0
- package/dist/module/user/service/user-session.service.js.map +1 -0
- package/dist/module/user/service/user.service.d.ts +38 -0
- package/dist/module/user/service/user.service.js +234 -0
- package/dist/module/user/service/user.service.js.map +1 -0
- package/dist/module/user/user.module.d.ts +2 -0
- package/dist/module/user/user.module.js +78 -0
- package/dist/module/user/user.module.js.map +1 -0
- package/dist/module/workflow/controller/action-category.controller.d.ts +18 -0
- package/dist/module/workflow/controller/action-category.controller.js +79 -0
- package/dist/module/workflow/controller/action-category.controller.js.map +1 -0
- package/dist/module/workflow/controller/action-resource-mapping.controller.d.ts +5 -0
- package/dist/module/workflow/controller/action-resource-mapping.controller.js +31 -0
- package/dist/module/workflow/controller/action-resource-mapping.controller.js.map +1 -0
- package/dist/module/workflow/controller/action-template-mapping.controller.d.ts +12 -0
- package/dist/module/workflow/controller/action-template-mapping.controller.js +44 -0
- package/dist/module/workflow/controller/action-template-mapping.controller.js.map +1 -0
- package/dist/module/workflow/controller/action.controller.d.ts +45 -0
- package/dist/module/workflow/controller/action.controller.js +108 -0
- package/dist/module/workflow/controller/action.controller.js.map +1 -0
- package/dist/module/workflow/controller/activity-log.controller.d.ts +44 -0
- package/dist/module/workflow/controller/activity-log.controller.js +62 -0
- package/dist/module/workflow/controller/activity-log.controller.js.map +1 -0
- package/dist/module/workflow/controller/comm-template.controller.d.ts +13 -0
- package/dist/module/workflow/controller/comm-template.controller.js +45 -0
- package/dist/module/workflow/controller/comm-template.controller.js.map +1 -0
- package/dist/module/workflow/controller/entity-modification.controller.d.ts +8 -0
- package/dist/module/workflow/controller/entity-modification.controller.js +44 -0
- package/dist/module/workflow/controller/entity-modification.controller.js.map +1 -0
- package/dist/module/workflow/controller/form-master.controller.d.ts +11 -0
- package/dist/module/workflow/controller/form-master.controller.js +59 -0
- package/dist/module/workflow/controller/form-master.controller.js.map +1 -0
- package/dist/module/workflow/controller/stage-group.controller.d.ts +19 -0
- package/dist/module/workflow/controller/stage-group.controller.js +56 -0
- package/dist/module/workflow/controller/stage-group.controller.js.map +1 -0
- package/dist/module/workflow/controller/stage.controller.d.ts +16 -0
- package/dist/module/workflow/controller/stage.controller.js +57 -0
- package/dist/module/workflow/controller/stage.controller.js.map +1 -0
- package/dist/module/workflow/controller/task.controller.d.ts +32 -0
- package/dist/module/workflow/controller/task.controller.js +72 -0
- package/dist/module/workflow/controller/task.controller.js.map +1 -0
- package/dist/module/workflow/controller/workflow-list-master.controller.d.ts +14 -0
- package/dist/module/workflow/controller/workflow-list-master.controller.js +67 -0
- package/dist/module/workflow/controller/workflow-list-master.controller.js.map +1 -0
- package/dist/module/workflow/controller/workflow-meta.controller.d.ts +15 -0
- package/dist/module/workflow/controller/workflow-meta.controller.js +72 -0
- package/dist/module/workflow/controller/workflow-meta.controller.js.map +1 -0
- package/dist/module/workflow/controller/workflow.controller.d.ts +31 -0
- package/dist/module/workflow/controller/workflow.controller.js +83 -0
- package/dist/module/workflow/controller/workflow.controller.js.map +1 -0
- package/dist/module/workflow/entity/action-category.entity.d.ts +13 -0
- package/dist/module/workflow/entity/action-category.entity.js +63 -0
- package/dist/module/workflow/entity/action-category.entity.js.map +1 -0
- package/dist/module/workflow/entity/action-data.entity.d.ts +19 -0
- package/dist/module/workflow/entity/action-data.entity.js +86 -0
- package/dist/module/workflow/entity/action-data.entity.js.map +1 -0
- package/dist/module/workflow/entity/action-resources-mapping.entity.d.ts +9 -0
- package/dist/module/workflow/entity/action-resources-mapping.entity.js +47 -0
- package/dist/module/workflow/entity/action-resources-mapping.entity.js.map +1 -0
- package/dist/module/workflow/entity/action-template-mapping.entity.d.ts +6 -0
- package/dist/module/workflow/entity/action-template-mapping.entity.js +35 -0
- package/dist/module/workflow/entity/action-template-mapping.entity.js.map +1 -0
- package/dist/module/workflow/entity/action.entity.d.ts +17 -0
- package/dist/module/workflow/entity/action.entity.js +79 -0
- package/dist/module/workflow/entity/action.entity.js.map +1 -0
- package/dist/module/workflow/entity/activity-log.entity.d.ts +15 -0
- package/dist/module/workflow/entity/activity-log.entity.js +70 -0
- package/dist/module/workflow/entity/activity-log.entity.js.map +1 -0
- package/dist/module/workflow/entity/comm-template.entity.d.ts +14 -0
- package/dist/module/workflow/entity/comm-template.entity.js +67 -0
- package/dist/module/workflow/entity/comm-template.entity.js.map +1 -0
- package/dist/module/workflow/entity/entity-modification.entity.d.ts +13 -0
- package/dist/module/workflow/entity/entity-modification.entity.js +63 -0
- package/dist/module/workflow/entity/entity-modification.entity.js.map +1 -0
- package/dist/module/workflow/entity/form.entity.d.ts +9 -0
- package/dist/module/workflow/entity/form.entity.js +46 -0
- package/dist/module/workflow/entity/form.entity.js.map +1 -0
- package/dist/module/workflow/entity/stage-action-mapping.entity.d.ts +6 -0
- package/dist/module/workflow/entity/stage-action-mapping.entity.js +35 -0
- package/dist/module/workflow/entity/stage-action-mapping.entity.js.map +1 -0
- package/dist/module/workflow/entity/stage-group.entity.d.ts +8 -0
- package/dist/module/workflow/entity/stage-group.entity.js +43 -0
- package/dist/module/workflow/entity/stage-group.entity.js.map +1 -0
- package/dist/module/workflow/entity/stage-movement-data.entity.d.ts +13 -0
- package/dist/module/workflow/entity/stage-movement-data.entity.js +63 -0
- package/dist/module/workflow/entity/stage-movement-data.entity.js.map +1 -0
- package/dist/module/workflow/entity/stage.entity.d.ts +7 -0
- package/dist/module/workflow/entity/stage.entity.js +39 -0
- package/dist/module/workflow/entity/stage.entity.js.map +1 -0
- package/dist/module/workflow/entity/task-data.entity.d.ts +30 -0
- package/dist/module/workflow/entity/task-data.entity.js +130 -0
- package/dist/module/workflow/entity/task-data.entity.js.map +1 -0
- package/dist/module/workflow/entity/template-attach-mapper.entity.d.ts +11 -0
- package/dist/module/workflow/entity/template-attach-mapper.entity.js +54 -0
- package/dist/module/workflow/entity/template-attach-mapper.entity.js.map +1 -0
- package/dist/module/workflow/entity/workflow-data.entity.d.ts +4 -0
- package/dist/module/workflow/entity/workflow-data.entity.js +27 -0
- package/dist/module/workflow/entity/workflow-data.entity.js.map +1 -0
- package/dist/module/workflow/entity/workflow-level-mapping.entity.d.ts +7 -0
- package/dist/module/workflow/entity/workflow-level-mapping.entity.js +38 -0
- package/dist/module/workflow/entity/workflow-level-mapping.entity.js.map +1 -0
- package/dist/module/workflow/entity/workflow.entity.d.ts +7 -0
- package/dist/module/workflow/entity/workflow.entity.js +39 -0
- package/dist/module/workflow/entity/workflow.entity.js.map +1 -0
- package/dist/module/workflow/repository/action-category.repository.d.ts +19 -0
- package/dist/module/workflow/repository/action-category.repository.js +84 -0
- package/dist/module/workflow/repository/action-category.repository.js.map +1 -0
- package/dist/module/workflow/repository/action-data.repository.d.ts +18 -0
- package/dist/module/workflow/repository/action-data.repository.js +172 -0
- package/dist/module/workflow/repository/action-data.repository.js.map +1 -0
- package/dist/module/workflow/repository/action.repository.d.ts +29 -0
- package/dist/module/workflow/repository/action.repository.js +220 -0
- package/dist/module/workflow/repository/action.repository.js.map +1 -0
- package/dist/module/workflow/repository/activity-log.repository.d.ts +57 -0
- package/dist/module/workflow/repository/activity-log.repository.js +112 -0
- package/dist/module/workflow/repository/activity-log.repository.js.map +1 -0
- package/dist/module/workflow/repository/comm-template.repository.d.ts +15 -0
- package/dist/module/workflow/repository/comm-template.repository.js +109 -0
- package/dist/module/workflow/repository/comm-template.repository.js.map +1 -0
- package/dist/module/workflow/repository/form-master.repository.d.ts +8 -0
- package/dist/module/workflow/repository/form-master.repository.js +38 -0
- package/dist/module/workflow/repository/form-master.repository.js.map +1 -0
- package/dist/module/workflow/repository/form.repository.d.ts +0 -0
- package/dist/module/workflow/repository/form.repository.js +1 -0
- package/dist/module/workflow/repository/form.repository.js.map +1 -0
- package/dist/module/workflow/repository/stage-group.repository.d.ts +34 -0
- package/dist/module/workflow/repository/stage-group.repository.js +135 -0
- package/dist/module/workflow/repository/stage-group.repository.js.map +1 -0
- package/dist/module/workflow/repository/stage-movement.repository.d.ts +23 -0
- package/dist/module/workflow/repository/stage-movement.repository.js +150 -0
- package/dist/module/workflow/repository/stage-movement.repository.js.map +1 -0
- package/dist/module/workflow/repository/stage.repository.d.ts +31 -0
- package/dist/module/workflow/repository/stage.repository.js +117 -0
- package/dist/module/workflow/repository/stage.repository.js.map +1 -0
- package/dist/module/workflow/repository/task.repository.d.ts +10 -0
- package/dist/module/workflow/repository/task.repository.js +92 -0
- package/dist/module/workflow/repository/task.repository.js.map +1 -0
- package/dist/module/workflow/repository/workflow.repository.d.ts +10 -0
- package/dist/module/workflow/repository/workflow.repository.js +49 -0
- package/dist/module/workflow/repository/workflow.repository.js.map +1 -0
- package/dist/module/workflow/service/action-category.service.d.ts +21 -0
- package/dist/module/workflow/service/action-category.service.js +42 -0
- package/dist/module/workflow/service/action-category.service.js.map +1 -0
- package/dist/module/workflow/service/action-data.service.d.ts +16 -0
- package/dist/module/workflow/service/action-data.service.js +40 -0
- package/dist/module/workflow/service/action-data.service.js.map +1 -0
- package/dist/module/workflow/service/action-resources-mapping.service.d.ts +6 -0
- package/dist/module/workflow/service/action-resources-mapping.service.js +27 -0
- package/dist/module/workflow/service/action-resources-mapping.service.js.map +1 -0
- package/dist/module/workflow/service/action-template-mapping.service.d.ts +7 -0
- package/dist/module/workflow/service/action-template-mapping.service.js +52 -0
- package/dist/module/workflow/service/action-template-mapping.service.js.map +1 -0
- package/dist/module/workflow/service/action.service.d.ts +35 -0
- package/dist/module/workflow/service/action.service.js +163 -0
- package/dist/module/workflow/service/action.service.js.map +1 -0
- package/dist/module/workflow/service/activity-log.service.d.ts +44 -0
- package/dist/module/workflow/service/activity-log.service.js +92 -0
- package/dist/module/workflow/service/activity-log.service.js.map +1 -0
- package/dist/module/workflow/service/comm-template.service.d.ts +16 -0
- package/dist/module/workflow/service/comm-template.service.js +90 -0
- package/dist/module/workflow/service/comm-template.service.js.map +1 -0
- package/dist/module/workflow/service/entity-modification.service.d.ts +8 -0
- package/dist/module/workflow/service/entity-modification.service.js +52 -0
- package/dist/module/workflow/service/entity-modification.service.js.map +1 -0
- package/dist/module/workflow/service/form-master.service.d.ts +14 -0
- package/dist/module/workflow/service/form-master.service.js +38 -0
- package/dist/module/workflow/service/form-master.service.js.map +1 -0
- package/dist/module/workflow/service/populate-workflow.service.d.ts +21 -0
- package/dist/module/workflow/service/populate-workflow.service.js +167 -0
- package/dist/module/workflow/service/populate-workflow.service.js.map +1 -0
- package/dist/module/workflow/service/stage-action-mapping.service.d.ts +3 -0
- package/dist/module/workflow/service/stage-action-mapping.service.js +18 -0
- package/dist/module/workflow/service/stage-action-mapping.service.js.map +1 -0
- package/dist/module/workflow/service/stage-group.service.d.ts +29 -0
- package/dist/module/workflow/service/stage-group.service.js +213 -0
- package/dist/module/workflow/service/stage-group.service.js.map +1 -0
- package/dist/module/workflow/service/stage.service.d.ts +25 -0
- package/dist/module/workflow/service/stage.service.js +129 -0
- package/dist/module/workflow/service/stage.service.js.map +1 -0
- package/dist/module/workflow/service/task.service.d.ts +47 -0
- package/dist/module/workflow/service/task.service.js +324 -0
- package/dist/module/workflow/service/task.service.js.map +1 -0
- package/dist/module/workflow/service/workflow-list-master.service.d.ts +9 -0
- package/dist/module/workflow/service/workflow-list-master.service.js +61 -0
- package/dist/module/workflow/service/workflow-list-master.service.js.map +1 -0
- package/dist/module/workflow/service/workflow-meta.service.d.ts +26 -0
- package/dist/module/workflow/service/workflow-meta.service.js +356 -0
- package/dist/module/workflow/service/workflow-meta.service.js.map +1 -0
- package/dist/module/workflow/service/workflow.service.d.ts +33 -0
- package/dist/module/workflow/service/workflow.service.js +140 -0
- package/dist/module/workflow/service/workflow.service.js.map +1 -0
- package/dist/module/workflow/workflow.module.d.ts +2 -0
- package/dist/module/workflow/workflow.module.js +184 -0
- package/dist/module/workflow/workflow.module.js.map +1 -0
- package/dist/module/workflow-automation/controller/workflow-automation.controller.d.ts +5 -0
- package/dist/module/workflow-automation/controller/workflow-automation.controller.js +31 -0
- package/dist/module/workflow-automation/controller/workflow-automation.controller.js.map +1 -0
- package/dist/module/workflow-automation/entity/workflow-automation-action.entity.d.ts +9 -0
- package/dist/module/workflow-automation/entity/workflow-automation-action.entity.js +47 -0
- package/dist/module/workflow-automation/entity/workflow-automation-action.entity.js.map +1 -0
- package/dist/module/workflow-automation/entity/workflow-automation.entity.d.ts +12 -0
- package/dist/module/workflow-automation/entity/workflow-automation.entity.js +59 -0
- package/dist/module/workflow-automation/entity/workflow-automation.entity.js.map +1 -0
- package/dist/module/workflow-automation/interface/action.decorator.d.ts +2 -0
- package/dist/module/workflow-automation/interface/action.decorator.js +8 -0
- package/dist/module/workflow-automation/interface/action.decorator.js.map +1 -0
- package/dist/module/workflow-automation/interface/action.interface.d.ts +4 -0
- package/dist/module/workflow-automation/interface/action.interface.js +3 -0
- package/dist/module/workflow-automation/interface/action.interface.js.map +1 -0
- package/dist/module/workflow-automation/service/action-registery.service.d.ts +11 -0
- package/dist/module/workflow-automation/service/action-registery.service.js +46 -0
- package/dist/module/workflow-automation/service/action-registery.service.js.map +1 -0
- package/dist/module/workflow-automation/service/workflow-automation-engine.service.d.ts +14 -0
- package/dist/module/workflow-automation/service/workflow-automation-engine.service.js +116 -0
- package/dist/module/workflow-automation/service/workflow-automation-engine.service.js.map +1 -0
- package/dist/module/workflow-automation/service/workflow-automation.service.d.ts +55 -0
- package/dist/module/workflow-automation/service/workflow-automation.service.js +222 -0
- package/dist/module/workflow-automation/service/workflow-automation.service.js.map +1 -0
- package/dist/module/workflow-automation/workflow-automation.module.d.ts +2 -0
- package/dist/module/workflow-automation/workflow-automation.module.js +47 -0
- package/dist/module/workflow-automation/workflow-automation.module.js.map +1 -0
- package/dist/resources/properties.module.d.ts +2 -0
- package/dist/resources/properties.module.js +25 -0
- package/dist/resources/properties.module.js.map +1 -0
- package/dist/resources/properties.yaml.d.ts +2 -0
- package/dist/resources/properties.yaml.js +10 -0
- package/dist/resources/properties.yaml.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/dist/utils/dto/excel-data.dto.d.ts +7 -0
- package/dist/utils/dto/excel-data.dto.js +16 -0
- package/dist/utils/dto/excel-data.dto.js.map +1 -0
- package/dist/utils/dto/excelsheet-data.dto.d.ts +5 -0
- package/dist/utils/dto/excelsheet-data.dto.js +3 -0
- package/dist/utils/dto/excelsheet-data.dto.js.map +1 -0
- package/dist/utils/service/base64util.service.d.ts +4 -0
- package/dist/utils/service/base64util.service.js +21 -0
- package/dist/utils/service/base64util.service.js.map +1 -0
- package/dist/utils/service/clockIDGenUtil.service.d.ts +8 -0
- package/dist/utils/service/clockIDGenUtil.service.js +32 -0
- package/dist/utils/service/clockIDGenUtil.service.js.map +1 -0
- package/dist/utils/service/codeGenerator.service.d.ts +3 -0
- package/dist/utils/service/codeGenerator.service.js +19 -0
- package/dist/utils/service/codeGenerator.service.js.map +1 -0
- package/dist/utils/service/dateUtil.service.d.ts +3 -0
- package/dist/utils/service/dateUtil.service.js +28 -0
- package/dist/utils/service/dateUtil.service.js.map +1 -0
- package/dist/utils/service/encryptUtil.service.d.ts +9 -0
- package/dist/utils/service/encryptUtil.service.js +112 -0
- package/dist/utils/service/encryptUtil.service.js.map +1 -0
- package/dist/utils/service/excel-helper.service.d.ts +9 -0
- package/dist/utils/service/excel-helper.service.js +56 -0
- package/dist/utils/service/excel-helper.service.js.map +1 -0
- package/dist/utils/service/excelUtil.service.d.ts +3 -0
- package/dist/utils/service/excelUtil.service.js +17 -0
- package/dist/utils/service/excelUtil.service.js.map +1 -0
- package/dist/utils/service/file-util.service.d.ts +3 -0
- package/dist/utils/service/file-util.service.js +15 -0
- package/dist/utils/service/file-util.service.js.map +1 -0
- package/dist/utils/service/json-util.service.d.ts +3 -0
- package/dist/utils/service/json-util.service.js +24 -0
- package/dist/utils/service/json-util.service.js.map +1 -0
- package/dist/utils/service/loggingUtil.service.d.ts +4 -0
- package/dist/utils/service/loggingUtil.service.js +36 -0
- package/dist/utils/service/loggingUtil.service.js.map +1 -0
- package/dist/utils/service/reflection-helper.service.d.ts +10 -0
- package/dist/utils/service/reflection-helper.service.js +66 -0
- package/dist/utils/service/reflection-helper.service.js.map +1 -0
- package/dist/utils/service/wbsCodeGen.service.d.ts +3 -0
- package/dist/utils/service/wbsCodeGen.service.js +20 -0
- package/dist/utils/service/wbsCodeGen.service.js.map +1 -0
- package/dist/utils/utils.module.d.ts +2 -0
- package/dist/utils/utils.module.js +38 -0
- package/dist/utils/utils.module.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,612 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.FilterService = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const attribute_master_service_1 = require("../../meta/service/attribute-master.service");
|
|
18
|
+
const entity_master_service_1 = require("../../meta/service/entity-master.service");
|
|
19
|
+
const typeorm_1 = require("typeorm");
|
|
20
|
+
const saved_filter_service_1 = require("./saved-filter.service");
|
|
21
|
+
const moment = require("moment");
|
|
22
|
+
const entity_relation_service_1 = require("../../meta/service/entity-relation.service");
|
|
23
|
+
const resolver_service_1 = require("../../meta/service/resolver.service");
|
|
24
|
+
const loggingUtil_service_1 = require("../../../utils/service/loggingUtil.service");
|
|
25
|
+
let FilterService = class FilterService {
|
|
26
|
+
constructor(dataSource, attributeMasterService, entityMasterService, savedFilterService, entityRelationService, resolverService, loggingService) {
|
|
27
|
+
this.dataSource = dataSource;
|
|
28
|
+
this.attributeMasterService = attributeMasterService;
|
|
29
|
+
this.entityMasterService = entityMasterService;
|
|
30
|
+
this.savedFilterService = savedFilterService;
|
|
31
|
+
this.entityRelationService = entityRelationService;
|
|
32
|
+
this.resolverService = resolverService;
|
|
33
|
+
this.loggingService = loggingService;
|
|
34
|
+
this.skipAppCodeFilterEntities = ['ORGP'];
|
|
35
|
+
this.skipOrgFilterEntities = ['ORGP'];
|
|
36
|
+
}
|
|
37
|
+
async gettab_value_counts(tableName, column, whereClauses) {
|
|
38
|
+
if (!column)
|
|
39
|
+
return [];
|
|
40
|
+
let whereSQL = '';
|
|
41
|
+
const values = [];
|
|
42
|
+
if (whereClauses.length > 0) {
|
|
43
|
+
const clauseParts = whereClauses.map((clause) => {
|
|
44
|
+
let parsedQuery = clause.query.replace(/\be\./g, '');
|
|
45
|
+
Object.entries(clause.params).forEach(([key, val]) => {
|
|
46
|
+
parsedQuery = parsedQuery.replace(new RegExp(`:${key}`, 'g'), '?');
|
|
47
|
+
values.push(val);
|
|
48
|
+
});
|
|
49
|
+
return parsedQuery;
|
|
50
|
+
});
|
|
51
|
+
whereSQL = `WHERE ${clauseParts.join(' AND ')}`;
|
|
52
|
+
}
|
|
53
|
+
const rawSQL = `
|
|
54
|
+
SELECT ${column} AS tab_value, COUNT(*) AS tab_value_count
|
|
55
|
+
FROM ${tableName}
|
|
56
|
+
${whereSQL}
|
|
57
|
+
GROUP BY ${column}
|
|
58
|
+
`;
|
|
59
|
+
const rows = await this.dataSource.query(rawSQL, values);
|
|
60
|
+
const total = rows.reduce((sum, r) => sum + parseInt(r.tab_value_count, 10), 0);
|
|
61
|
+
return [
|
|
62
|
+
{ tab_value: 'All', tab_value_count: total },
|
|
63
|
+
...rows.map((r) => ({
|
|
64
|
+
tab_value: r.tab_value ?? 'UNKNOWN',
|
|
65
|
+
tab_value_count: parseInt(r.tab_value_count, 10),
|
|
66
|
+
})),
|
|
67
|
+
];
|
|
68
|
+
}
|
|
69
|
+
async applyFilterWrapper(dto) {
|
|
70
|
+
const { entity_type, quickFilter = [], savedFilterCode, attributeFilter = [], loggedInUser, } = dto;
|
|
71
|
+
const savedFilters = await this.getSavedFilters(savedFilterCode ?? undefined);
|
|
72
|
+
const allFilters = [...quickFilter, ...attributeFilter, ...savedFilters].filter((f) => f.filter_value !== '');
|
|
73
|
+
const grouped = allFilters.reduce((acc, f) => {
|
|
74
|
+
if (!acc[f.filter_entity_type])
|
|
75
|
+
acc[f.filter_entity_type] = [];
|
|
76
|
+
acc[f.filter_entity_type].push(f);
|
|
77
|
+
return acc;
|
|
78
|
+
}, {});
|
|
79
|
+
console.log('🟠 [FilterService] Grouped filters by entity type:', grouped);
|
|
80
|
+
let intersectionIds = null;
|
|
81
|
+
for (const [subEntityType, filters] of Object.entries(grouped)) {
|
|
82
|
+
if (subEntityType === entity_type)
|
|
83
|
+
continue;
|
|
84
|
+
let { queryParams, tabs, ...newDto } = dto;
|
|
85
|
+
const subDto = {
|
|
86
|
+
...newDto,
|
|
87
|
+
entity_type: subEntityType,
|
|
88
|
+
quickFilter: filters,
|
|
89
|
+
savedFilterCode: null,
|
|
90
|
+
attributeFilter: [],
|
|
91
|
+
};
|
|
92
|
+
const subResult = await this.applyFilter(subDto);
|
|
93
|
+
const subEntityIds = subResult.data.entity_list.map((row) => row.id);
|
|
94
|
+
console.log(`🧩 [FilterService] Sub-entity ${subEntityType} returned IDs:`, subEntityIds);
|
|
95
|
+
if (!subEntityIds.length) {
|
|
96
|
+
console.log(`ℹ️ [FilterService] No records for sub-entity ${subEntityType}, returning empty result`);
|
|
97
|
+
return {
|
|
98
|
+
success: true,
|
|
99
|
+
data: { entity_tabs: [], entity_list: [], pagination: {} },
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
const relatedIds = await this.entityRelationService.getRelatedEntityIds(entity_type, subEntityType, subEntityIds, dto.loggedInUser.organization_id);
|
|
103
|
+
intersectionIds =
|
|
104
|
+
intersectionIds === null
|
|
105
|
+
? relatedIds
|
|
106
|
+
: intersectionIds.filter((id) => relatedIds.includes(id));
|
|
107
|
+
if (intersectionIds.length === 0) {
|
|
108
|
+
console.log('🚫 [FilterService] No intersection IDs left, returning empty result');
|
|
109
|
+
return {
|
|
110
|
+
success: true,
|
|
111
|
+
data: { entity_tabs: [], entity_list: [], pagination: {} },
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
const mainFilters = grouped[entity_type] || [];
|
|
116
|
+
const mainDto = {
|
|
117
|
+
...dto,
|
|
118
|
+
quickFilter: [...mainFilters],
|
|
119
|
+
savedFilterCode: null,
|
|
120
|
+
attributeFilter: [],
|
|
121
|
+
};
|
|
122
|
+
if (intersectionIds && intersectionIds.length > 0) {
|
|
123
|
+
(mainDto.quickFilter ??= []).push({
|
|
124
|
+
filter_attribute: 'id',
|
|
125
|
+
filter_operator: 'equal',
|
|
126
|
+
filter_value: intersectionIds,
|
|
127
|
+
filter_entity_type: entity_type,
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
return this.applyFilter(mainDto);
|
|
131
|
+
}
|
|
132
|
+
async applyFilter(dto) {
|
|
133
|
+
const { entity_type, quickFilter, savedFilterCode, attributeFilter, tabs, sortby, loggedInUser, queryParams, customLevelType, customLevelId, customAppCode, } = dto;
|
|
134
|
+
const { level_type, level_id, id: user_id, appcode, organization_id, } = loggedInUser || {};
|
|
135
|
+
const entityMeta = await this.entityMasterService.getEntityData(entity_type, loggedInUser);
|
|
136
|
+
const tableName = entityMeta?.data_source;
|
|
137
|
+
if (!tableName) {
|
|
138
|
+
console.error(`❌ [FilterService] Invalid entity_type: ${entity_type}`);
|
|
139
|
+
throw new common_1.BadRequestException(`Invalid entity_type: ${entity_type}`);
|
|
140
|
+
}
|
|
141
|
+
const getAttributeColumnMeta = await this.attributeMasterService.findAttributesByMappedEntityType(entity_type, loggedInUser);
|
|
142
|
+
const attributeMetaMap = getAttributeColumnMeta.reduce((acc, attr) => {
|
|
143
|
+
acc[attr.attribute_key] = attr;
|
|
144
|
+
return acc;
|
|
145
|
+
}, {});
|
|
146
|
+
const savedFilters = await this.getSavedFilters(savedFilterCode ?? undefined);
|
|
147
|
+
const savedFiltersNormalized = savedFilters.map((f) => ({
|
|
148
|
+
filter_attribute: f.filter_attribute,
|
|
149
|
+
filter_operator: f.filter_operator,
|
|
150
|
+
filter_value: f.filter_value,
|
|
151
|
+
}));
|
|
152
|
+
const baseFilters = [
|
|
153
|
+
...(quickFilter || []).filter((f) => f.filter_value != null && f.filter_value !== ''),
|
|
154
|
+
...savedFiltersNormalized.filter((f) => f.filter_value != null && f.filter_value !== ''),
|
|
155
|
+
...(attributeFilter || []).filter((f) => f.filter_value != null && f.filter_value !== ''),
|
|
156
|
+
];
|
|
157
|
+
const baseWhere = this.buildWhereClauses(baseFilters, attributeMetaMap);
|
|
158
|
+
if (entity_type != 'ORGP' &&
|
|
159
|
+
level_type &&
|
|
160
|
+
level_id &&
|
|
161
|
+
organization_id &&
|
|
162
|
+
!customLevelType &&
|
|
163
|
+
!customLevelId) {
|
|
164
|
+
baseWhere.push({
|
|
165
|
+
query: 'e.organization_id = :organization_id AND e.level_type = :level_type AND e.level_id = :level_id',
|
|
166
|
+
params: { organization_id, level_type, level_id },
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
if (customLevelType && customLevelId && customAppCode) {
|
|
170
|
+
baseWhere.push({
|
|
171
|
+
query: 'e.organization_id = :organization_id AND e.level_type = :customLevelType AND e.level_id = :customLevelId AND e.appcode = :customAppCode',
|
|
172
|
+
params: { organization_id, customLevelType, customLevelId, customAppCode },
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
if (queryParams) {
|
|
176
|
+
Object.entries(queryParams).forEach(([key, value]) => {
|
|
177
|
+
if (!value)
|
|
178
|
+
return;
|
|
179
|
+
if (key === 'attributeName' && queryParams['attributeValue']) {
|
|
180
|
+
const attrName = value;
|
|
181
|
+
const attrValue = queryParams['attributeValue'];
|
|
182
|
+
baseWhere.push({
|
|
183
|
+
query: `e.${attrName} = :${attrName}`,
|
|
184
|
+
params: { [attrName]: attrValue },
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
else if (key !== 'attributeValue') {
|
|
188
|
+
baseWhere.push({
|
|
189
|
+
query: `e.${key} = :${key}`,
|
|
190
|
+
params: { [key]: value },
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
console.log('🟠 [FilterService] Constructed baseWhere clauses:', baseWhere);
|
|
196
|
+
const layoutPreference = await this.dataSource.query(`SELECT mapped_json
|
|
197
|
+
FROM cr_entity_layout_pref
|
|
198
|
+
WHERE user_id = ? AND mapped_entity_type = ? AND mapped_level_id = ? AND mapped_level_type = ? AND type = 'layout'`, [user_id, entity_type, level_id, level_type]);
|
|
199
|
+
const layout = layoutPreference?.[0]?.mapped_json?.quick_tab || {};
|
|
200
|
+
const showList = layout?.show_list?.map((val) => val.toLowerCase()) || [];
|
|
201
|
+
let allTabs;
|
|
202
|
+
if (layout.attribute) {
|
|
203
|
+
allTabs = await this.gettab_value_counts(entityMeta?.data_source, layout.attribute, baseWhere);
|
|
204
|
+
}
|
|
205
|
+
else {
|
|
206
|
+
allTabs = await this.gettab_value_counts(entityMeta?.data_source, tabs?.columnName, baseWhere);
|
|
207
|
+
}
|
|
208
|
+
let filteredTabs;
|
|
209
|
+
if (showList?.length > 0) {
|
|
210
|
+
const isAllNeeded = layout?.isAllSelected && !showList.includes('all');
|
|
211
|
+
if (isAllNeeded)
|
|
212
|
+
showList.push('all');
|
|
213
|
+
filteredTabs = allTabs.filter((tab) => showList.includes(tab.tab_value.toLowerCase()));
|
|
214
|
+
const allTab = filteredTabs.find((tab) => tab.tab_value?.toLowerCase() === 'all');
|
|
215
|
+
filteredTabs = filteredTabs.filter((tab) => tab.tab_value?.toLowerCase() !== 'all');
|
|
216
|
+
if (layout.sorting === 'asc') {
|
|
217
|
+
filteredTabs.sort((a, b) => a.tab_value.toLowerCase().localeCompare(b.tab_value.toLowerCase()));
|
|
218
|
+
}
|
|
219
|
+
else if (layout.sorting === 'dsc') {
|
|
220
|
+
filteredTabs.sort((a, b) => b.tab_value.toLowerCase().localeCompare(a.tab_value.toLowerCase()));
|
|
221
|
+
}
|
|
222
|
+
else if (layout.sorting === 'count_asc') {
|
|
223
|
+
filteredTabs.sort((a, b) => a.tab_value_count - b.tab_value_count);
|
|
224
|
+
}
|
|
225
|
+
else if (layout.sorting === 'count_dsc') {
|
|
226
|
+
filteredTabs.sort((a, b) => b.tab_value_count - a.tab_value_count);
|
|
227
|
+
}
|
|
228
|
+
else if (layout.sorting === 'custom') {
|
|
229
|
+
const orderMap = new Map(showList.map((val, index) => [val.toLowerCase(), index]));
|
|
230
|
+
filteredTabs.sort((a, b) => {
|
|
231
|
+
const aIndex = orderMap.get(a.tab_value.toLowerCase()) ?? Infinity;
|
|
232
|
+
const bIndex = orderMap.get(b.tab_value.toLowerCase()) ?? Infinity;
|
|
233
|
+
return aIndex - bIndex;
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
if (allTab)
|
|
237
|
+
filteredTabs.unshift(allTab);
|
|
238
|
+
if (layout?.isCombineOther) {
|
|
239
|
+
const originalAllTab = allTabs.find((tab) => tab.tab_value.toLowerCase() === 'all');
|
|
240
|
+
const allCount = originalAllTab?.tab_value_count ?? 0;
|
|
241
|
+
const knownTabCountSum = filteredTabs
|
|
242
|
+
.filter((tab) => tab.tab_value.toLowerCase() !== 'all')
|
|
243
|
+
.reduce((acc, tab) => acc + tab.tab_value_count, 0);
|
|
244
|
+
const othersCount = allCount - knownTabCountSum;
|
|
245
|
+
filteredTabs.push({
|
|
246
|
+
tab_value: 'OTHERS',
|
|
247
|
+
tab_value_count: othersCount < 0 ? 0 : othersCount,
|
|
248
|
+
});
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
else {
|
|
252
|
+
filteredTabs = allTabs;
|
|
253
|
+
}
|
|
254
|
+
const dataWhere = [...baseWhere];
|
|
255
|
+
if (tabs?.columnName && tabs?.value) {
|
|
256
|
+
const tabAttrMeta = attributeMetaMap[tabs.columnName];
|
|
257
|
+
const tabValue = tabs.value.toLowerCase();
|
|
258
|
+
if (tabValue === 'others') {
|
|
259
|
+
const valuesToExclude = showList.filter((v) => v !== 'all');
|
|
260
|
+
if (valuesToExclude.length > 0) {
|
|
261
|
+
for (const value of valuesToExclude) {
|
|
262
|
+
const resolvedId = await this.resolverService.getResolvedId(loggedInUser, tabs.columnName, value, entity_type);
|
|
263
|
+
if (resolvedId) {
|
|
264
|
+
const tabCondition = this.buildCondition({
|
|
265
|
+
filter_attribute: tabs.columnName,
|
|
266
|
+
filter_operator: 'not_equal',
|
|
267
|
+
filter_value: [resolvedId],
|
|
268
|
+
skip_id: true,
|
|
269
|
+
}, tabAttrMeta);
|
|
270
|
+
if (tabCondition)
|
|
271
|
+
dataWhere.push(tabCondition);
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
else if (tabValue !== 'all') {
|
|
277
|
+
const resolvedId = await this.resolverService.getResolvedId(loggedInUser, tabs.columnName, tabs.value, entity_type);
|
|
278
|
+
if (resolvedId) {
|
|
279
|
+
const tabCondition = this.buildCondition({
|
|
280
|
+
filter_attribute: tabs.columnName,
|
|
281
|
+
filter_operator: 'equal',
|
|
282
|
+
filter_value: [resolvedId],
|
|
283
|
+
skip_id: true,
|
|
284
|
+
}, tabAttrMeta);
|
|
285
|
+
if (tabCondition)
|
|
286
|
+
dataWhere.push(tabCondition);
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
const qb = this.dataSource.createQueryBuilder().select('e.*').from(tableName, 'e');
|
|
291
|
+
dataWhere.forEach((clause) => qb.andWhere(clause.query, clause.params));
|
|
292
|
+
if (layoutPreference && layoutPreference[0]?.mapped_json?.sorting) {
|
|
293
|
+
if (Array.isArray(layoutPreference[0]?.mapped_json?.sorting?.tabs)) {
|
|
294
|
+
const preferenceTabArray = layoutPreference[0]?.mapped_json?.sorting?.tabs;
|
|
295
|
+
const tabFilter = preferenceTabArray.find((tabData) => tabData.tab_name === tabs?.value);
|
|
296
|
+
tabFilter?.sortby.forEach(({ column, order }) => {
|
|
297
|
+
qb.addOrderBy(`e.${column}`, order?.toUpperCase() === 'DSC' ? 'DESC' : 'ASC');
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
else if (Array.isArray(layoutPreference[0]?.mapped_json?.sorting?.sortby)) {
|
|
301
|
+
layoutPreference[0]?.mapped_json?.sorting?.sortby?.forEach(({ column, order }) => {
|
|
302
|
+
qb.addOrderBy(`e.${column}`, order?.toUpperCase() === 'DSC' ? 'DESC' : 'ASC');
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
qb.addOrderBy('e.created_date', 'DESC');
|
|
307
|
+
const page = dto.page && dto.page > 0 ? dto.page : 1;
|
|
308
|
+
const size = dto.size && dto.size > 0 ? dto.size : 10;
|
|
309
|
+
qb.skip((page - 1) * size).take(size);
|
|
310
|
+
const entity_list = await qb.getRawMany();
|
|
311
|
+
console.log(`📦 [FilterService] Fetched ${entity_list.length} records`);
|
|
312
|
+
const dateAttributes = Object.entries(attributeMetaMap)
|
|
313
|
+
.filter(([_, attr]) => attr.data_type === 'date')
|
|
314
|
+
.map(([key]) => key);
|
|
315
|
+
const formatDate = (dateStr) => dateStr ? moment(dateStr).format('DD-MM-YYYY') : '';
|
|
316
|
+
const formatDatesInRow = (row) => {
|
|
317
|
+
const formattedRow = { ...row };
|
|
318
|
+
for (const key of dateAttributes) {
|
|
319
|
+
if (formattedRow[key])
|
|
320
|
+
formattedRow[key] = formatDate(formattedRow[key]);
|
|
321
|
+
}
|
|
322
|
+
return formattedRow;
|
|
323
|
+
};
|
|
324
|
+
const formattedEntityList = entity_list.map(formatDatesInRow);
|
|
325
|
+
const resolvedEntityList = await Promise.all(formattedEntityList.map((row) => this.resolverService.getResolvedData(loggedInUser, row, entity_type)));
|
|
326
|
+
const resolvedTabs = await Promise.all(filteredTabs.map(async (tab) => {
|
|
327
|
+
const tabAttrKey = layout?.attribute || tabs?.columnName;
|
|
328
|
+
if (!tabAttrKey ||
|
|
329
|
+
tab.tab_value?.toLowerCase() === 'all' ||
|
|
330
|
+
tab.tab_value?.toLowerCase() === 'others') {
|
|
331
|
+
return tab;
|
|
332
|
+
}
|
|
333
|
+
const resolvedVal = await this.resolverService.getResolvedValue(loggedInUser, tabAttrKey, tab.tab_value, entity_type);
|
|
334
|
+
return { ...tab, tab_value: resolvedVal ?? tab.tab_value };
|
|
335
|
+
}));
|
|
336
|
+
const countQb = this.dataSource
|
|
337
|
+
.createQueryBuilder()
|
|
338
|
+
.select('COUNT(*)', 'count')
|
|
339
|
+
.from(tableName, 'e');
|
|
340
|
+
dataWhere.forEach((clause) => countQb.andWhere(clause.query, clause.params));
|
|
341
|
+
const countResult = await countQb.getRawOne();
|
|
342
|
+
const total = parseInt(countResult.count, 10);
|
|
343
|
+
console.log('📊 [FilterService] Returning final result with total:', total);
|
|
344
|
+
return {
|
|
345
|
+
success: true,
|
|
346
|
+
data: {
|
|
347
|
+
entity_tabs: resolvedTabs,
|
|
348
|
+
entity_list: resolvedEntityList,
|
|
349
|
+
pagination: {
|
|
350
|
+
total,
|
|
351
|
+
page,
|
|
352
|
+
size,
|
|
353
|
+
totalPages: Math.ceil(total / size),
|
|
354
|
+
hasNextPage: page * size < total,
|
|
355
|
+
hasPreviousPage: page > 1,
|
|
356
|
+
},
|
|
357
|
+
},
|
|
358
|
+
};
|
|
359
|
+
}
|
|
360
|
+
parseFilters(raw, isSingle = false) {
|
|
361
|
+
if (!raw)
|
|
362
|
+
return [];
|
|
363
|
+
if (typeof raw === 'string') {
|
|
364
|
+
try {
|
|
365
|
+
const parsed = JSON.parse(raw);
|
|
366
|
+
return isSingle ? [parsed] : parsed;
|
|
367
|
+
}
|
|
368
|
+
catch {
|
|
369
|
+
throw new common_1.BadRequestException('Invalid JSON in filter input');
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
return isSingle ? [raw] : Array.isArray(raw) ? raw : [];
|
|
373
|
+
}
|
|
374
|
+
async getSavedFilters(code) {
|
|
375
|
+
if (!code)
|
|
376
|
+
return [];
|
|
377
|
+
const savedFilter = await this.savedFilterService.getDetailsByCode(code);
|
|
378
|
+
if (!savedFilter) {
|
|
379
|
+
throw new common_1.BadRequestException(`Saved filter not found for code: ${code}`);
|
|
380
|
+
}
|
|
381
|
+
return savedFilter;
|
|
382
|
+
}
|
|
383
|
+
buildWhereClauses(filters, attributeMeta) {
|
|
384
|
+
return filters
|
|
385
|
+
.map((f) => this.buildCondition(f, attributeMeta[f.filter_attribute]))
|
|
386
|
+
.filter((clause) => clause !== null);
|
|
387
|
+
}
|
|
388
|
+
buildCondition(filter, meta) {
|
|
389
|
+
if (!meta)
|
|
390
|
+
return null;
|
|
391
|
+
let attr = filter.filter_attribute;
|
|
392
|
+
const val = filter.filter_value;
|
|
393
|
+
const op = filter.filter_operator;
|
|
394
|
+
const key = `param_${attr}_${Math.random().toString(36).substring(2, 8)}`;
|
|
395
|
+
switch (meta.data_type) {
|
|
396
|
+
case 'text':
|
|
397
|
+
return this.buildTextCondition(attr, op, val, key);
|
|
398
|
+
case 'number':
|
|
399
|
+
return this.buildNumberCondition(attr, op, val, key);
|
|
400
|
+
case 'date':
|
|
401
|
+
return this.buildDateCondition(attr, op, val, key);
|
|
402
|
+
case 'select':
|
|
403
|
+
return this.buildMultiSelectCondition(attr, op, val, key);
|
|
404
|
+
case 'multiselect':
|
|
405
|
+
return this.buildMultiSelectCondition(attr, op, val, key);
|
|
406
|
+
case 'checkbox':
|
|
407
|
+
return this.buildMultiSelectCondition(attr, op, val, key);
|
|
408
|
+
case 'radio':
|
|
409
|
+
return this.buildMultiSelectCondition(attr, op, val, key);
|
|
410
|
+
case 'year':
|
|
411
|
+
return this.buildYearCondition(attr, op, val, key);
|
|
412
|
+
default:
|
|
413
|
+
return null;
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
buildTextCondition(attr, op, val, key) {
|
|
417
|
+
switch (op) {
|
|
418
|
+
case 'contains':
|
|
419
|
+
return {
|
|
420
|
+
query: `LOWER(e.${attr}) LIKE :${key}`,
|
|
421
|
+
params: { [key]: `%${val ? val.toLowerCase() : ''}%` },
|
|
422
|
+
};
|
|
423
|
+
case 'equal':
|
|
424
|
+
return {
|
|
425
|
+
query: `e.${attr} = :${key}`,
|
|
426
|
+
params: { [key]: val },
|
|
427
|
+
};
|
|
428
|
+
case 'not_equal':
|
|
429
|
+
return {
|
|
430
|
+
query: `e.${attr} != :${key}`,
|
|
431
|
+
params: { [key]: val },
|
|
432
|
+
};
|
|
433
|
+
case 'empty':
|
|
434
|
+
return {
|
|
435
|
+
query: `e.${attr} IS NULL`,
|
|
436
|
+
params: {},
|
|
437
|
+
};
|
|
438
|
+
case 'not_empty':
|
|
439
|
+
return {
|
|
440
|
+
query: `e.${attr} IS NOT NULL`,
|
|
441
|
+
params: {},
|
|
442
|
+
};
|
|
443
|
+
default:
|
|
444
|
+
throw new common_1.BadRequestException(`Unsupported operator for text: ${op}`);
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
buildNumberCondition(attr, op, val, key) {
|
|
448
|
+
switch (op) {
|
|
449
|
+
case 'equal':
|
|
450
|
+
return { query: `e.${attr} = :${key}`, params: { [key]: val } };
|
|
451
|
+
case 'not_equal':
|
|
452
|
+
return { query: `e.${attr} != :${key}`, params: { [key]: val } };
|
|
453
|
+
case 'greater_than':
|
|
454
|
+
return { query: `e.${attr} > :${key}`, params: { [key]: val } };
|
|
455
|
+
case 'less_than':
|
|
456
|
+
return { query: `e.${attr} < :${key}`, params: { [key]: val } };
|
|
457
|
+
case 'less_than_qual_to':
|
|
458
|
+
return { query: `e.${attr} <= :${key}`, params: { [key]: val } };
|
|
459
|
+
case 'greater_than_qual_to':
|
|
460
|
+
return { query: `e.${attr} >= :${key}`, params: { [key]: val } };
|
|
461
|
+
case 'empty':
|
|
462
|
+
return { query: `e.${attr} IS NULL`, params: {} };
|
|
463
|
+
case 'not_empty':
|
|
464
|
+
return { query: `e.${attr} IS NOT NULL`, params: {} };
|
|
465
|
+
default:
|
|
466
|
+
throw new common_1.BadRequestException(`Unsupported operator for number: ${op}`);
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
buildDateCondition(attr, op, val, key) {
|
|
470
|
+
switch (op) {
|
|
471
|
+
case 'equal':
|
|
472
|
+
return { query: `e.${attr} = :${key}`, params: { [key]: val } };
|
|
473
|
+
case 'before':
|
|
474
|
+
return { query: `e.${attr} < :${key}`, params: { [key]: val } };
|
|
475
|
+
case 'after':
|
|
476
|
+
return { query: `e.${attr} > :${key}`, params: { [key]: val } };
|
|
477
|
+
case 'between': {
|
|
478
|
+
if (typeof val === 'string') {
|
|
479
|
+
val = val.split(',').map((v) => v.trim());
|
|
480
|
+
}
|
|
481
|
+
if (!Array.isArray(val) ||
|
|
482
|
+
val.length !== 2 ||
|
|
483
|
+
val[0] === '' ||
|
|
484
|
+
val[1] === '') {
|
|
485
|
+
console.log(`Invalid value for in_between: ${val}`);
|
|
486
|
+
return null;
|
|
487
|
+
}
|
|
488
|
+
return {
|
|
489
|
+
query: `e.${attr} BETWEEN :${key}_start AND :${key}_end`,
|
|
490
|
+
params: {
|
|
491
|
+
[`${key}_start`]: val[0],
|
|
492
|
+
[`${key}_end`]: val[1],
|
|
493
|
+
},
|
|
494
|
+
};
|
|
495
|
+
}
|
|
496
|
+
case 'today': {
|
|
497
|
+
const today = new Date().toISOString().split('T')[0];
|
|
498
|
+
return {
|
|
499
|
+
query: `DATE(e.${attr}) = :today`,
|
|
500
|
+
params: {
|
|
501
|
+
today,
|
|
502
|
+
},
|
|
503
|
+
};
|
|
504
|
+
}
|
|
505
|
+
case 'empty': {
|
|
506
|
+
return {
|
|
507
|
+
query: `e.${attr} IS NULL`,
|
|
508
|
+
params: {},
|
|
509
|
+
};
|
|
510
|
+
}
|
|
511
|
+
case 'not_empty': {
|
|
512
|
+
return {
|
|
513
|
+
query: `e.${attr} IS NOT NULL`,
|
|
514
|
+
params: {},
|
|
515
|
+
};
|
|
516
|
+
}
|
|
517
|
+
default:
|
|
518
|
+
throw new common_1.BadRequestException(`Unsupported operator for date: ${op}`);
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
buildSelectCondition(attr, op, val, key) {
|
|
522
|
+
switch (op) {
|
|
523
|
+
case 'equal':
|
|
524
|
+
return { query: `e.${attr} = :${key}`, params: { [key]: val } };
|
|
525
|
+
case 'not_equal':
|
|
526
|
+
return { query: `e.${attr} != :${key}`, params: { [key]: val } };
|
|
527
|
+
case 'empty':
|
|
528
|
+
return { query: `e.${attr} IS NULL`, params: {} };
|
|
529
|
+
case 'not_empty':
|
|
530
|
+
return { query: `e.${attr} IS NOT NULL`, params: {} };
|
|
531
|
+
default:
|
|
532
|
+
throw new common_1.BadRequestException(`Unsupported operator for select: ${op}`);
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
buildMultiSelectCondition(attr, op, val, key) {
|
|
536
|
+
if (Array.isArray(val) && val.length === 0) {
|
|
537
|
+
return { query: '1=1', params: {} };
|
|
538
|
+
}
|
|
539
|
+
if ((op === 'equal' || op === 'not_equal') && !Array.isArray(val)) {
|
|
540
|
+
throw new common_1.BadRequestException(`Value for multi-select must be an array for operator: ${op}`);
|
|
541
|
+
}
|
|
542
|
+
switch (op) {
|
|
543
|
+
case 'equal':
|
|
544
|
+
return {
|
|
545
|
+
query: `e.${attr} IN (:${key})`,
|
|
546
|
+
params: { [key]: val },
|
|
547
|
+
};
|
|
548
|
+
case 'not_equal':
|
|
549
|
+
return {
|
|
550
|
+
query: `e.${attr} NOT IN (:${key})`,
|
|
551
|
+
params: { [key]: val },
|
|
552
|
+
};
|
|
553
|
+
case 'contains':
|
|
554
|
+
return {
|
|
555
|
+
query: `e.${attr} LIKE :${key}`,
|
|
556
|
+
params: { [key]: `%${val}%` },
|
|
557
|
+
};
|
|
558
|
+
case 'not_contains':
|
|
559
|
+
return {
|
|
560
|
+
query: `e.${attr} NOT LIKE :${key}`,
|
|
561
|
+
params: { [key]: `%${val}%` },
|
|
562
|
+
};
|
|
563
|
+
case 'empty':
|
|
564
|
+
return { query: `e.${attr} IS NULL`, params: {} };
|
|
565
|
+
case 'not_empty':
|
|
566
|
+
return { query: `e.${attr} IS NOT NULL`, params: {} };
|
|
567
|
+
default:
|
|
568
|
+
throw new common_1.BadRequestException(`Unsupported operator for multiselect: ${op}`);
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
buildYearCondition(attr, op, val, key) {
|
|
572
|
+
switch (op) {
|
|
573
|
+
case 'equal':
|
|
574
|
+
return {
|
|
575
|
+
query: `e.${attr} = :${key}`,
|
|
576
|
+
params: { [key]: parseInt(val, 10) },
|
|
577
|
+
};
|
|
578
|
+
case 'not_equal':
|
|
579
|
+
return {
|
|
580
|
+
query: `e.${attr} != :${key}`,
|
|
581
|
+
params: { [key]: parseInt(val, 10) },
|
|
582
|
+
};
|
|
583
|
+
case 'greater_than':
|
|
584
|
+
return {
|
|
585
|
+
query: `e.${attr} > :${key}`,
|
|
586
|
+
params: { [key]: parseInt(val, 10) },
|
|
587
|
+
};
|
|
588
|
+
case 'less_than':
|
|
589
|
+
return {
|
|
590
|
+
query: `e.${attr} < :${key}`,
|
|
591
|
+
params: { [key]: parseInt(val, 10) },
|
|
592
|
+
};
|
|
593
|
+
default:
|
|
594
|
+
throw new common_1.BadRequestException(`Unsupported operator for year: ${op}`);
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
};
|
|
598
|
+
exports.FilterService = FilterService;
|
|
599
|
+
exports.FilterService = FilterService = __decorate([
|
|
600
|
+
(0, common_1.Injectable)(),
|
|
601
|
+
__param(3, (0, common_1.Inject)('SavedFilterService')),
|
|
602
|
+
__param(4, (0, common_1.Inject)('EntityRelationService')),
|
|
603
|
+
__param(6, (0, common_1.Inject)()),
|
|
604
|
+
__metadata("design:paramtypes", [typeorm_1.DataSource,
|
|
605
|
+
attribute_master_service_1.AttributeMasterService,
|
|
606
|
+
entity_master_service_1.EntityMasterService,
|
|
607
|
+
saved_filter_service_1.SavedFilterService,
|
|
608
|
+
entity_relation_service_1.EntityRelationService,
|
|
609
|
+
resolver_service_1.ResolverService,
|
|
610
|
+
loggingUtil_service_1.LoggingService])
|
|
611
|
+
], FilterService);
|
|
612
|
+
//# sourceMappingURL=filter.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filter.service.js","sourceRoot":"","sources":["../../../../src/module/filter/service/filter.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAyE;AACzE,0FAA0F;AAC1F,oFAAoF;AAGpF,qCAAqC;AAErC,iEAA4D;AAE5D,iCAAiC;AACjC,wFAAwF;AACxF,0EAA2E;AAC3E,oFAAuE;AAGhE,IAAM,aAAa,GAAnB,MAAM,aAAa;IACxB,YACU,UAAsB,EACb,sBAA8C,EAC9C,mBAAwC,EAEzD,kBAAuD,EAEvD,qBAA6D,EAC5C,eAAgC,EACvC,cAAiD;QARnD,eAAU,GAAV,UAAU,CAAY;QACb,2BAAsB,GAAtB,sBAAsB,CAAwB;QAC9C,wBAAmB,GAAnB,mBAAmB,CAAqB;QAExC,uBAAkB,GAAlB,kBAAkB,CAAoB;QAEtC,0BAAqB,GAArB,qBAAqB,CAAuB;QAC5C,oBAAe,GAAf,eAAe,CAAiB;QACpB,mBAAc,GAAd,cAAc,CAAgB;QAE5C,8BAAyB,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