rez_core 4.0.167 → 4.0.171
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/.prettierrc +3 -3
- package/README.md +99 -99
- package/dist/app.module.js +9 -0
- package/dist/app.module.js.map +1 -1
- package/dist/config/bull.config.d.ts +10 -0
- package/dist/config/bull.config.js +66 -0
- package/dist/config/bull.config.js.map +1 -0
- package/dist/config/config.module.js +2 -2
- package/dist/config/config.module.js.map +1 -1
- package/dist/config/database.config.d.ts +1 -1
- package/dist/config/database.config.js +12 -16
- package/dist/config/database.config.js.map +1 -1
- package/dist/module/auth/guards/role.guard.js +3 -3
- package/dist/module/auth/services/auth.service.js +3 -3
- package/dist/module/auth/services/auth.service.js.map +1 -1
- package/dist/module/enterprise/entity/organization.entity.js +1 -1
- package/dist/module/enterprise/repository/school.repository.js +3 -3
- package/dist/module/enterprise/repository/school.repository.js.map +1 -1
- package/dist/module/entity_json/controller/entity_json.controller.d.ts +8 -0
- package/dist/module/entity_json/controller/entity_json.controller.js +42 -0
- package/dist/module/entity_json/controller/entity_json.controller.js.map +1 -0
- package/dist/module/entity_json/entity_json.module.d.ts +2 -0
- package/dist/module/entity_json/entity_json.module.js +26 -0
- package/dist/module/entity_json/entity_json.module.js.map +1 -0
- package/dist/module/entity_json/service/entity_json.service.d.ts +7 -0
- package/dist/module/entity_json/service/entity_json.service.js +80 -0
- package/dist/module/entity_json/service/entity_json.service.js.map +1 -0
- package/dist/module/filter/repository/saved-filter.repository.js +4 -4
- package/dist/module/filter/service/filter-evaluator.service.js +3 -3
- package/dist/module/filter/service/filter-evaluator.service.js.map +1 -1
- package/dist/module/filter/service/filter.service.d.ts +1 -4
- package/dist/module/filter/service/filter.service.js +39 -69
- package/dist/module/filter/service/filter.service.js.map +1 -1
- package/dist/module/integration/entity/integration-config.entity.js +6 -6
- package/dist/module/integration/entity/integration-config.entity.js.map +1 -1
- package/dist/module/integration/entity/integration-entity-mapper.entity.js +1 -1
- package/dist/module/integration/entity/integration-entity-mapper.entity.js.map +1 -1
- package/dist/module/integration/entity/integration-source.entity.js +4 -4
- package/dist/module/integration/entity/integration-source.entity.js.map +1 -1
- package/dist/module/integration/entity/user-integration.entity.js +4 -4
- package/dist/module/integration/entity/user-integration.entity.js.map +1 -1
- package/dist/module/integration/examples/usage.example.js +9 -9
- package/dist/module/integration/service/integration.service.js +1 -1
- package/dist/module/integration/service/wrapper.service.d.ts +3 -1
- package/dist/module/integration/service/wrapper.service.js +67 -65
- package/dist/module/integration/service/wrapper.service.js.map +1 -1
- package/dist/module/linked_attributes/controller/linked_attributes.controller.d.ts +5 -0
- package/dist/module/linked_attributes/controller/linked_attributes.controller.js +29 -0
- package/dist/module/linked_attributes/controller/linked_attributes.controller.js.map +1 -0
- package/dist/module/linked_attributes/entity/linked_attribute.entity.d.ts +9 -0
- package/dist/module/linked_attributes/entity/linked_attribute.entity.js +70 -0
- package/dist/module/linked_attributes/entity/linked_attribute.entity.js.map +1 -0
- package/dist/module/linked_attributes/linked_attributes.module.d.ts +2 -0
- package/dist/module/linked_attributes/linked_attributes.module.js +29 -0
- package/dist/module/linked_attributes/linked_attributes.module.js.map +1 -0
- package/dist/module/linked_attributes/repository/linked_attribute.repository.d.ts +6 -0
- package/dist/module/linked_attributes/repository/linked_attribute.repository.js +31 -0
- package/dist/module/linked_attributes/repository/linked_attribute.repository.js.map +1 -0
- package/dist/module/linked_attributes/service/linked_attributes.service.d.ts +5 -0
- package/dist/module/linked_attributes/service/linked_attributes.service.js +34 -0
- package/dist/module/linked_attributes/service/linked_attributes.service.js.map +1 -0
- package/dist/module/listmaster/entity/list-master-items.entity.js +3 -3
- package/dist/module/listmaster/entity/list-master-items.entity.js.map +1 -1
- package/dist/module/listmaster/entity/list-master.entity.js +4 -4
- package/dist/module/listmaster/entity/list-master.entity.js.map +1 -1
- package/dist/module/listmaster/service/list-master-item.service.js +3 -3
- package/dist/module/listmaster/service/list-master-item.service.js.map +1 -1
- package/dist/module/mapper/entity/field-mapper.entity.js +6 -6
- package/dist/module/mapper/entity/field-mapper.entity.js.map +1 -1
- package/dist/module/mapper/service/field-mapper.service.js +7 -7
- package/dist/module/mapper/service/field-mapper.service.js.map +1 -1
- package/dist/module/mapper/service/mapper.service.js +4 -4
- package/dist/module/mapper/service/mapper.service.js.map +1 -1
- package/dist/module/meta/controller/attribute-master.controller.d.ts +4 -1
- package/dist/module/meta/controller/attribute-master.controller.js +15 -2
- package/dist/module/meta/controller/attribute-master.controller.js.map +1 -1
- package/dist/module/meta/entity/app-master.entity.d.ts +2 -2
- package/dist/module/meta/entity/app-master.entity.js +4 -4
- package/dist/module/meta/entity/entity-master.entity.js +1 -1
- package/dist/module/meta/entity/entity-master.entity.js.map +1 -1
- package/dist/module/meta/entity/view-master.entity.js +1 -1
- package/dist/module/meta/entity/view-master.entity.js.map +1 -1
- package/dist/module/meta/entity.module.js +7 -0
- package/dist/module/meta/entity.module.js.map +1 -1
- package/dist/module/meta/repository/attribute-master.repository.js +2 -2
- package/dist/module/meta/repository/attribute-master.repository.js.map +1 -1
- package/dist/module/meta/repository/entity-attribute-update.repository.d.ts +6 -0
- package/dist/module/meta/repository/entity-attribute-update.repository.js +44 -0
- package/dist/module/meta/repository/entity-attribute-update.repository.js.map +1 -0
- package/dist/module/meta/repository/entity-master.repository.js +2 -2
- package/dist/module/meta/repository/entity-master.repository.js.map +1 -1
- package/dist/module/meta/service/attribute-master.service.js +1 -1
- package/dist/module/meta/service/attribute-master.service.js.map +1 -1
- package/dist/module/meta/service/entity-attribute-update.service.d.ts +7 -0
- package/dist/module/meta/service/entity-attribute-update.service.js +36 -0
- package/dist/module/meta/service/entity-attribute-update.service.js.map +1 -0
- package/dist/module/meta/service/entity-dynamic.service.js +27 -27
- package/dist/module/meta/service/entity-dynamic.service.js.map +1 -1
- package/dist/module/meta/service/entity-list.service.js +3 -3
- package/dist/module/meta/service/entity-master.service.js +4 -4
- package/dist/module/meta/service/entity-master.service.js.map +1 -1
- package/dist/module/meta/service/entity-relation.service.js +13 -13
- package/dist/module/meta/service/entity-relation.service.js.map +1 -1
- package/dist/module/meta/service/entity-service-impl.service.js +3 -3
- package/dist/module/meta/service/media-data.service.js +9 -9
- package/dist/module/meta/service/media-data.service.js.map +1 -1
- package/dist/module/meta/service/resolver.service.js +19 -19
- package/dist/module/meta/service/resolver.service.js.map +1 -1
- package/dist/module/module/repository/menu.repository.js +12 -12
- package/dist/module/notification/entity/otp.entity.js +1 -1
- package/dist/module/notification/entity/otp.entity.js.map +1 -1
- package/dist/module/notification/service/notification.service.js +9 -9
- package/dist/module/user/controller/login.controller.js +18 -18
- package/dist/module/user/entity/user-role-mapping.entity.js +1 -1
- package/dist/module/user/entity/user-role-mapping.entity.js.map +1 -1
- package/dist/module/user/service/login.service.js +1 -1
- package/dist/module/user/service/login.service.js.map +1 -1
- package/dist/module/user/service/role.service.js +4 -4
- package/dist/module/user/service/user-session.service.js +4 -4
- package/dist/module/user/service/user-session.service.js.map +1 -1
- package/dist/module/workflow/entity/action-category.entity.d.ts +1 -1
- package/dist/module/workflow/entity/action-category.entity.js +1 -1
- package/dist/module/workflow/entity/action-data.entity.js +1 -1
- package/dist/module/workflow/entity/action-data.entity.js.map +1 -1
- package/dist/module/workflow/entity/action.entity.d.ts +1 -0
- package/dist/module/workflow/entity/action.entity.js +5 -1
- package/dist/module/workflow/entity/action.entity.js.map +1 -1
- package/dist/module/workflow/entity/comm-template.entity.js +1 -1
- package/dist/module/workflow/entity/comm-template.entity.js.map +1 -1
- package/dist/module/workflow/entity/template-attach-mapper.entity.js +1 -1
- package/dist/module/workflow/entity/template-attach-mapper.entity.js.map +1 -1
- package/dist/module/workflow/repository/action-data.repository.js +5 -4
- package/dist/module/workflow/repository/action-data.repository.js.map +1 -1
- package/dist/module/workflow/repository/action.repository.js +21 -21
- package/dist/module/workflow/repository/action.repository.js.map +1 -1
- package/dist/module/workflow/repository/comm-template.repository.js +7 -7
- package/dist/module/workflow/repository/comm-template.repository.js.map +1 -1
- package/dist/module/workflow/repository/form-master.repository.js +3 -3
- package/dist/module/workflow/repository/form-master.repository.js.map +1 -1
- package/dist/module/workflow/repository/stage-group.repository.js +23 -23
- package/dist/module/workflow/repository/stage-movement.repository.js +17 -17
- package/dist/module/workflow/repository/stage-movement.repository.js.map +1 -1
- package/dist/module/workflow/repository/stage.repository.js +8 -8
- package/dist/module/workflow/repository/task.repository.d.ts +3 -1
- package/dist/module/workflow/repository/task.repository.js +10 -5
- package/dist/module/workflow/repository/task.repository.js.map +1 -1
- package/dist/module/workflow/service/action-template-mapping.service.js +22 -22
- package/dist/module/workflow/service/action.service.js +13 -13
- package/dist/module/workflow/service/action.service.js.map +1 -1
- package/dist/module/workflow/service/entity-modification.service.js +6 -6
- package/dist/module/workflow/service/populate-workflow.service.js +8 -8
- package/dist/module/workflow/service/populate-workflow.service.js.map +1 -1
- package/dist/module/workflow/service/stage-group.service.js +6 -6
- package/dist/module/workflow/service/stage-group.service.js.map +1 -1
- package/dist/module/workflow/service/stage.service.js +4 -4
- package/dist/module/workflow/service/stage.service.js.map +1 -1
- package/dist/module/workflow/service/task.service.js +68 -54
- package/dist/module/workflow/service/task.service.js.map +1 -1
- package/dist/module/workflow/service/workflow-list-master.service.js +16 -16
- package/dist/module/workflow/service/workflow-list-master.service.js.map +1 -1
- package/dist/module/workflow/service/workflow-meta.service.js +53 -51
- package/dist/module/workflow/service/workflow-meta.service.js.map +1 -1
- package/dist/module/workflow/service/workflow.service.js +5 -5
- package/dist/module/workflow/service/workflow.service.js.map +1 -1
- package/dist/module/workflow-automation/controller/workflow-automation.controller.d.ts +6 -0
- package/dist/module/workflow-automation/controller/workflow-automation.controller.js +16 -0
- package/dist/module/workflow-automation/controller/workflow-automation.controller.js.map +1 -1
- package/dist/module/workflow-automation/entity/workflow-automation-action.entity.d.ts +1 -1
- package/dist/module/workflow-automation/entity/workflow-automation-action.entity.js +1 -1
- package/dist/module/workflow-automation/entity/workflow-automation.entity.d.ts +2 -0
- package/dist/module/workflow-automation/entity/workflow-automation.entity.js +8 -0
- package/dist/module/workflow-automation/entity/workflow-automation.entity.js.map +1 -1
- package/dist/module/workflow-automation/service/schedule-handler.service.d.ts +16 -0
- package/dist/module/workflow-automation/service/schedule-handler.service.js +109 -0
- package/dist/module/workflow-automation/service/schedule-handler.service.js.map +1 -0
- package/dist/module/workflow-automation/service/workflow-automation-engine.service.d.ts +1 -1
- package/dist/module/workflow-automation/service/workflow-automation-engine.service.js +1 -1
- package/dist/module/workflow-automation/service/workflow-automation-engine.service.js.map +1 -1
- package/dist/module/workflow-automation/service/workflow-automation.service.d.ts +13 -1
- package/dist/module/workflow-automation/service/workflow-automation.service.js +115 -6
- package/dist/module/workflow-automation/service/workflow-automation.service.js.map +1 -1
- package/dist/module/workflow-automation/workflow-automation.module.js +14 -1
- package/dist/module/workflow-automation/workflow-automation.module.js.map +1 -1
- package/dist/module/workflow-schedule/constants/schedule.constants.d.ts +27 -0
- package/dist/module/workflow-schedule/constants/schedule.constants.js +31 -0
- package/dist/module/workflow-schedule/constants/schedule.constants.js.map +1 -0
- package/dist/module/workflow-schedule/controller/workflow-schedule.controller.d.ts +83 -0
- package/dist/module/workflow-schedule/controller/workflow-schedule.controller.js +220 -0
- package/dist/module/workflow-schedule/controller/workflow-schedule.controller.js.map +1 -0
- package/dist/module/workflow-schedule/dto/create-schedule.dto.d.ts +32 -0
- package/dist/module/workflow-schedule/dto/create-schedule.dto.js +163 -0
- package/dist/module/workflow-schedule/dto/create-schedule.dto.js.map +1 -0
- package/dist/module/workflow-schedule/dto/get-execution-logs.dto.d.ts +35 -0
- package/dist/module/workflow-schedule/dto/get-execution-logs.dto.js +124 -0
- package/dist/module/workflow-schedule/dto/get-execution-logs.dto.js.map +1 -0
- package/dist/module/workflow-schedule/dto/update-schedule.dto.d.ts +19 -0
- package/dist/module/workflow-schedule/dto/update-schedule.dto.js +106 -0
- package/dist/module/workflow-schedule/dto/update-schedule.dto.js.map +1 -0
- package/dist/module/workflow-schedule/entities/scheduled-workflow.entity.d.ts +30 -0
- package/dist/module/workflow-schedule/entities/scheduled-workflow.entity.js +113 -0
- package/dist/module/workflow-schedule/entities/scheduled-workflow.entity.js.map +1 -0
- package/dist/module/workflow-schedule/entities/workflow-execution-log.entity.d.ts +34 -0
- package/dist/module/workflow-schedule/entities/workflow-execution-log.entity.js +118 -0
- package/dist/module/workflow-schedule/entities/workflow-execution-log.entity.js.map +1 -0
- package/dist/module/workflow-schedule/interfaces/schedule-job-data.interface.d.ts +44 -0
- package/dist/module/workflow-schedule/interfaces/schedule-job-data.interface.js +3 -0
- package/dist/module/workflow-schedule/interfaces/schedule-job-data.interface.js.map +1 -0
- package/dist/module/workflow-schedule/processors/schedule.processor.d.ts +31 -0
- package/dist/module/workflow-schedule/processors/schedule.processor.js +409 -0
- package/dist/module/workflow-schedule/processors/schedule.processor.js.map +1 -0
- package/dist/module/workflow-schedule/service/workflow-schedule.service.d.ts +44 -0
- package/dist/module/workflow-schedule/service/workflow-schedule.service.js +434 -0
- package/dist/module/workflow-schedule/service/workflow-schedule.service.js.map +1 -0
- package/dist/module/workflow-schedule/workflow-schedule.module.d.ts +2 -0
- package/dist/module/workflow-schedule/workflow-schedule.module.js +44 -0
- package/dist/module/workflow-schedule/workflow-schedule.module.js.map +1 -0
- package/dist/table.config.js +5 -1
- package/dist/table.config.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/utils/service/loggingUtil.service.d.ts +9 -2
- package/dist/utils/service/loggingUtil.service.js +65 -14
- package/dist/utils/service/loggingUtil.service.js.map +1 -1
- package/dist/utils/service/reflection-helper.service.js +3 -3
- package/dist/utils/service/reflection-helper.service.js.map +1 -1
- package/dist/utils/utils.module.js +2 -0
- package/dist/utils/utils.module.js.map +1 -1
- package/docs/modules/event-driven-integration-design.md +91 -91
- package/docs/modules/integration.md +250 -250
- package/eslint.config.mjs +34 -34
- package/nest-cli.json +14 -14
- package/package.json +124 -120
- package/src/app.controller.ts +12 -12
- package/src/app.module.ts +62 -52
- package/src/app.service.ts +8 -8
- package/src/config/bull.config.ts +69 -0
- package/src/config/config.module.ts +18 -17
- package/src/config/database.config.ts +23 -48
- package/src/constant/global.constant.ts +67 -67
- package/src/core.module.ts +81 -81
- package/src/decorators/roles.decorator.ts +7 -7
- package/src/dtos/response.dto.ts +6 -6
- package/src/dtos/response.ts +5 -5
- package/src/index.ts +1 -1
- package/src/module/auth/auth.module.ts +49 -49
- package/src/module/auth/controller/auth.controller.ts +28 -28
- package/src/module/auth/guards/google-auth.guard.ts +9 -9
- package/src/module/auth/guards/jwt.guard.ts +22 -22
- package/src/module/auth/guards/role.guard.ts +68 -68
- package/src/module/auth/services/auth.service.ts +50 -50
- package/src/module/auth/services/jwt.service.ts +11 -11
- package/src/module/auth/strategies/google.strategy.ts +54 -54
- package/src/module/auth/strategies/jwt.strategy.ts +58 -58
- package/src/module/auth/strategies/local.strategy.ts +13 -13
- package/src/module/dashboard/controller/dashboard.controller.ts +36 -36
- package/src/module/dashboard/dashboard.module.ts +21 -21
- package/src/module/dashboard/entity/dashboard_page_data.entity.ts +27 -27
- package/src/module/dashboard/entity/widget_master.entity.ts +18 -18
- package/src/module/dashboard/repository/dashboard.repository.ts +42 -42
- package/src/module/dashboard/service/dashboard.service.ts +73 -73
- package/src/module/dev/dev.module.ts +12 -12
- package/src/module/dev/service/dev.service.ts +7 -7
- package/src/module/enterprise/controller/organization.controller.ts +36 -36
- package/src/module/enterprise/enterprise.module.ts +30 -30
- package/src/module/enterprise/entity/enterprise.entity.ts +37 -37
- package/src/module/enterprise/entity/organization-app-mapping.entity.ts +13 -13
- package/src/module/enterprise/entity/organization.entity.ts +92 -92
- package/src/module/enterprise/repository/enterprise.repository.ts +31 -31
- package/src/module/enterprise/repository/organization.repository.ts +26 -26
- package/src/module/enterprise/repository/school.repository.ts +278 -278
- package/src/module/enterprise/service/brand.service.ts +5 -5
- package/src/module/enterprise/service/enterprise.service.ts +16 -16
- package/src/module/enterprise/service/organization-app-mapping.service.ts +4 -4
- package/src/module/enterprise/service/organization.service.ts +145 -145
- package/src/module/entity_json/controller/entity_json.controller.ts +21 -0
- package/src/module/entity_json/entity_json.module.ts +13 -0
- package/src/module/entity_json/service/entity_json.service.ts +88 -0
- package/src/module/filter/controller/filter.controller.ts +84 -84
- package/src/module/filter/dto/filter-request.dto.ts +38 -38
- package/src/module/filter/entity/saved-filter-detail.entity.ts +41 -41
- package/src/module/filter/entity/saved-filter-master.entity.ts +23 -23
- package/src/module/filter/filter.module.ts +31 -31
- package/src/module/filter/repository/saved-filter.repository.ts +168 -168
- package/src/module/filter/service/filter-evaluator.service.ts +86 -86
- package/src/module/filter/service/filter.service.ts +1005 -1053
- package/src/module/filter/service/saved-filter.service.ts +170 -170
- package/src/module/ics/controller/ics.controller.ts +21 -21
- package/src/module/ics/dto/ics.dto.ts +55 -55
- package/src/module/ics/ics.module.ts +13 -13
- package/src/module/ics/service/ics.service.ts +57 -57
- package/src/module/integration/controller/calender-event.controller.ts +31 -31
- package/src/module/integration/controller/integration.controller.ts +662 -662
- package/src/module/integration/controller/wrapper.controller.ts +37 -37
- package/src/module/integration/dto/create-config.dto.ts +526 -526
- package/src/module/integration/entity/integration-config.entity.ts +112 -112
- package/src/module/integration/entity/integration-entity-mapper.entity.ts +14 -14
- package/src/module/integration/entity/integration-source.entity.ts +17 -17
- package/src/module/integration/entity/user-integration.entity.ts +71 -71
- package/src/module/integration/examples/usage.example.ts +338 -338
- package/src/module/integration/factories/base.factory.ts +7 -7
- package/src/module/integration/factories/email.factory.ts +49 -49
- package/src/module/integration/factories/integration.factory.ts +121 -121
- package/src/module/integration/factories/sms.factory.ts +51 -51
- package/src/module/integration/factories/telephone.factory.ts +41 -41
- package/src/module/integration/factories/whatsapp.factory.ts +56 -56
- package/src/module/integration/integration.module.ts +110 -110
- package/src/module/integration/service/calendar-event.service.ts +118 -118
- package/src/module/integration/service/integration-entity-mapper.service.ts +17 -17
- package/src/module/integration/service/integration-queue.service.ts +229 -229
- package/src/module/integration/service/integration.service.ts +2633 -2633
- package/src/module/integration/service/oauth.service.ts +224 -224
- package/src/module/integration/service/wrapper.service.ts +700 -494
- package/src/module/integration/strategies/email/gmail-api.strategy.ts +280 -280
- package/src/module/integration/strategies/email/outlook-api.strategy.ts +44 -44
- package/src/module/integration/strategies/email/outlook.strategy.ts +64 -64
- package/src/module/integration/strategies/email/sendgrid-api.strategy.ts +260 -260
- package/src/module/integration/strategies/integration.strategy.ts +97 -97
- package/src/module/integration/strategies/sms/gupshup-sms.strategy.ts +146 -146
- package/src/module/integration/strategies/sms/msg91-sms.strategy.ts +164 -164
- package/src/module/integration/strategies/sms/tubelight-sms.strategy.ts +163 -163
- package/src/module/integration/strategies/telephone/ozonetel-voice.strategy.ts +238 -238
- package/src/module/integration/strategies/telephone/tubelight-voice.strategy.ts +210 -210
- package/src/module/integration/strategies/whatsapp/gupshup-whatsapp.strategy.ts +359 -359
- package/src/module/integration/strategies/whatsapp/tubelight-whatsapp.strategy.ts +372 -372
- package/src/module/integration/strategies/whatsapp/whatsapp-cloud.strategy.ts +403 -403
- package/src/module/integration/strategies/whatsapp/whatsapp.strategy.ts +57 -57
- package/src/module/layout/controller/layout.controller.ts +47 -47
- package/src/module/layout/entity/header-items.entity.ts +28 -28
- package/src/module/layout/entity/header-section.entity.ts +19 -19
- package/src/module/layout/layout.module.ts +21 -21
- package/src/module/layout/repository/header-items.repository.ts +18 -18
- package/src/module/layout/repository/header-section.repository.ts +22 -22
- package/src/module/layout/service/header-section.service.ts +25 -25
- package/src/module/layout_preference/controller/layout_preference.controller.ts +73 -73
- package/src/module/layout_preference/entity/layout_preference.entity.ts +28 -28
- package/src/module/layout_preference/layout_preference.module.ts +22 -22
- package/src/module/layout_preference/repository/layout_preference.repository.ts +65 -65
- package/src/module/layout_preference/service/layout_preference.service.ts +191 -191
- package/src/module/lead/controller/lead.controller.ts +30 -30
- package/src/module/lead/lead.module.ts +14 -14
- package/src/module/lead/repository/lead.repository.ts +41 -41
- package/src/module/lead/service/lead.service.ts +54 -54
- package/src/module/linked_attributes/controller/linked_attributes.controller.ts +10 -0
- package/src/module/linked_attributes/entity/linked_attribute.entity.ts +48 -0
- package/src/module/linked_attributes/linked_attributes.module.ts +16 -0
- package/src/module/linked_attributes/repository/linked_attribute.repository.ts +12 -0
- package/src/module/linked_attributes/service/linked_attributes.service.ts +22 -0
- package/src/module/listmaster/controller/list-master.controller.ts +230 -230
- package/src/module/listmaster/entity/list-master-items.entity.ts +43 -43
- package/src/module/listmaster/entity/list-master.entity.ts +33 -33
- package/src/module/listmaster/listmaster.module.ts +46 -46
- package/src/module/listmaster/repository/list-master-items.repository.ts +169 -169
- package/src/module/listmaster/repository/list-master.repository.ts +46 -46
- package/src/module/listmaster/service/list-master-engine.ts +19 -19
- package/src/module/listmaster/service/list-master-extension.interface.ts +4 -4
- package/src/module/listmaster/service/list-master-item.service.ts +292 -292
- package/src/module/listmaster/service/list-master-registry.ts +15 -15
- package/src/module/listmaster/service/list-master.service.ts +535 -535
- package/src/module/mapper/controller/field-mapper.controller.ts +76 -76
- package/src/module/mapper/controller/mapper.controller.ts +20 -20
- package/src/module/mapper/dto/field-mapper.dto.ts +14 -14
- package/src/module/mapper/entity/field-lovs.entity.ts +19 -19
- package/src/module/mapper/entity/field-mapper.entity.ts +53 -53
- package/src/module/mapper/entity/mapper.entity.ts +16 -16
- package/src/module/mapper/mapper.module.ts +34 -34
- package/src/module/mapper/repository/field-lovs.repository.ts +35 -35
- package/src/module/mapper/repository/field-mapper.repository.ts +42 -42
- package/src/module/mapper/repository/mapper.repository.ts +15 -15
- package/src/module/mapper/service/field-mapper.service.ts +271 -266
- package/src/module/mapper/service/mapper.service.ts +79 -79
- package/src/module/master/controller/master.controller.ts +74 -74
- package/src/module/master/service/master.service.ts +483 -483
- package/src/module/meta/controller/app-master.controller.ts +38 -38
- package/src/module/meta/controller/attribute-master.controller.ts +74 -66
- package/src/module/meta/controller/entity-dynamic.controller.ts +125 -125
- package/src/module/meta/controller/entity-master.controller.ts +28 -28
- package/src/module/meta/controller/entity-relation.controller.ts +36 -36
- package/src/module/meta/controller/entity.controller.ts +392 -392
- package/src/module/meta/controller/entity.public.controller.ts +75 -75
- package/src/module/meta/controller/media.controller.ts +107 -107
- package/src/module/meta/controller/meta.controller.ts +96 -96
- package/src/module/meta/controller/view-master.controller.ts +86 -86
- package/src/module/meta/dto/entity-list-data.dto.ts +6 -6
- package/src/module/meta/dto/entity-tab.dto.ts +4 -4
- package/src/module/meta/dto/entity-table.dto.ts +9 -9
- package/src/module/meta/entity/app-master.entity.ts +34 -34
- package/src/module/meta/entity/attribute-master.entity.ts +89 -89
- package/src/module/meta/entity/base-entity.entity.ts +75 -75
- package/src/module/meta/entity/entity-master.entity.ts +85 -85
- package/src/module/meta/entity/entity-relation-data.entity.ts +29 -29
- package/src/module/meta/entity/entity-relation.entity.ts +23 -23
- package/src/module/meta/entity/entity-table-column.entity.ts +61 -61
- package/src/module/meta/entity/entity-table.entity.ts +50 -50
- package/src/module/meta/entity/media-data.entity.ts +32 -32
- package/src/module/meta/entity/preference.entity.ts +62 -62
- package/src/module/meta/entity/view-master.entity.ts +41 -41
- package/src/module/meta/entity.module.ts +166 -158
- package/src/module/meta/repository/app-master.repository.ts +20 -20
- package/src/module/meta/repository/attribute-master.repository.ts +118 -118
- package/src/module/meta/repository/entity-attribute-update.repository.ts +44 -0
- package/src/module/meta/repository/entity-master.repository.ts +69 -69
- package/src/module/meta/repository/entity-table-column.repository.ts +39 -39
- package/src/module/meta/repository/entity-table.repository.ts +53 -53
- package/src/module/meta/repository/media-data.repository.ts +50 -50
- package/src/module/meta/repository/preference.repository.ts +20 -20
- package/src/module/meta/repository/user-app-mapping.repository.ts +28 -28
- package/src/module/meta/repository/view-master.repository.ts +42 -42
- package/src/module/meta/service/app-master.service.ts +37 -37
- package/src/module/meta/service/attribute-master.service.ts +126 -126
- package/src/module/meta/service/common.service.ts +9 -9
- package/src/module/meta/service/entity-attribute-update.service.ts +29 -0
- package/src/module/meta/service/entity-dynamic.service.ts +819 -819
- package/src/module/meta/service/entity-list.service.ts +205 -205
- package/src/module/meta/service/entity-master.service.ts +169 -169
- package/src/module/meta/service/entity-realation-data.service.ts +9 -9
- package/src/module/meta/service/entity-relation.service.ts +69 -69
- package/src/module/meta/service/entity-service-impl.service.ts +525 -525
- package/src/module/meta/service/entity-table-column.service.ts +39 -39
- package/src/module/meta/service/entity-table.service.ts +150 -150
- package/src/module/meta/service/entity-validation.service.ts +187 -187
- package/src/module/meta/service/entity.service.ts +67 -67
- package/src/module/meta/service/field-group.service.ts +103 -103
- package/src/module/meta/service/media-data.service.ts +507 -507
- package/src/module/meta/service/populate-meta.service.ts +193 -193
- package/src/module/meta/service/preference.service.ts +16 -16
- package/src/module/meta/service/resolver.service.ts +267 -267
- package/src/module/meta/service/section-master.service.ts +104 -104
- package/src/module/meta/service/update-form-json.service.ts +22 -22
- package/src/module/meta/service/user-app-mapping.service.ts +17 -17
- package/src/module/meta/service/view-master.service.ts +127 -127
- package/src/module/microservice-client/microservice-clients.module.ts +13 -13
- package/src/module/microservice-client/service/microservice-client-factory.ts +37 -37
- package/src/module/microservice-client/service/microservice-clients.ts +4 -4
- package/src/module/module/controller/menu.controller.ts +15 -15
- package/src/module/module/controller/module-access.controller.ts +134 -134
- package/src/module/module/entity/menu.entity.ts +43 -43
- package/src/module/module/entity/module-access.entity.ts +25 -25
- package/src/module/module/entity/module-action.entity.ts +17 -17
- package/src/module/module/entity/module.entity.ts +52 -52
- package/src/module/module/module.module.ts +42 -42
- package/src/module/module/repository/menu.repository.ts +184 -184
- package/src/module/module/repository/module-access.repository.ts +344 -344
- package/src/module/module/service/menu.service.ts +82 -82
- package/src/module/module/service/module-access.service.ts +209 -209
- package/src/module/notification/controller/notification.controller.ts +58 -58
- package/src/module/notification/controller/otp.controller.ts +117 -117
- package/src/module/notification/entity/notification.entity.ts +26 -26
- package/src/module/notification/entity/otp.entity.ts +28 -28
- package/src/module/notification/firebase-admin.config.ts +22 -22
- package/src/module/notification/notification.module.ts +69 -69
- package/src/module/notification/repository/otp.repository.ts +27 -27
- package/src/module/notification/service/email.service.ts +127 -127
- package/src/module/notification/service/notification.service.ts +163 -163
- package/src/module/notification/service/otp.service.ts +132 -132
- package/src/module/third-party-module/entity/third-party-api-registry.entity.ts +52 -52
- package/src/module/third-party-module/repository/third-party-api-registry.repository.ts +20 -20
- package/src/module/third-party-module/service/api-registry.service.ts +13 -13
- package/src/module/third-party-module/third-party.module.ts +12 -12
- package/src/module/user/controller/login.controller.ts +197 -197
- package/src/module/user/controller/user.controller.ts +40 -40
- package/src/module/user/dto/create-user.dto.ts +62 -62
- package/src/module/user/dto/update-user.dto.ts +4 -4
- package/src/module/user/entity/role.entity.ts +33 -33
- package/src/module/user/entity/user-role-mapping.entity.ts +38 -38
- package/src/module/user/entity/user-session.entity.ts +73 -73
- package/src/module/user/entity/user.entity.ts +59 -59
- package/src/module/user/repository/role.repository.ts +96 -96
- package/src/module/user/repository/user-role-mapping.repository.ts +126 -126
- package/src/module/user/repository/user.repository.ts +50 -50
- package/src/module/user/repository/userSession.repository.ts +33 -33
- package/src/module/user/service/login.service.ts +304 -304
- package/src/module/user/service/role.service.ts +189 -189
- package/src/module/user/service/user-role-mapping.service.ts +98 -98
- package/src/module/user/service/user-session.service.ts +168 -168
- package/src/module/user/service/user.service.ts +365 -365
- package/src/module/user/user.module.ts +65 -65
- package/src/module/workflow/controller/action-category.controller.ts +54 -54
- package/src/module/workflow/controller/action-resource-mapping.controller.ts +23 -23
- package/src/module/workflow/controller/action-template-mapping.controller.ts +35 -35
- package/src/module/workflow/controller/action.controller.ts +111 -111
- package/src/module/workflow/controller/activity-log.controller.ts +55 -55
- package/src/module/workflow/controller/comm-template.controller.ts +43 -43
- package/src/module/workflow/controller/entity-modification.controller.ts +35 -35
- package/src/module/workflow/controller/form-master.controller.ts +43 -43
- package/src/module/workflow/controller/stage-group.controller.ts +48 -48
- package/src/module/workflow/controller/stage.controller.ts +50 -50
- package/src/module/workflow/controller/task.controller.ts +77 -77
- package/src/module/workflow/controller/workflow-list-master.controller.ts +44 -44
- package/src/module/workflow/controller/workflow-meta.controller.ts +80 -80
- package/src/module/workflow/controller/workflow.controller.ts +67 -67
- package/src/module/workflow/entity/action-category.entity.ts +38 -38
- package/src/module/workflow/entity/action-data.entity.ts +55 -55
- package/src/module/workflow/entity/action-resources-mapping.entity.ts +29 -29
- package/src/module/workflow/entity/action-template-mapping.entity.ts +17 -17
- package/src/module/workflow/entity/action.entity.ts +53 -50
- package/src/module/workflow/entity/activity-log.entity.ts +43 -43
- package/src/module/workflow/entity/comm-template.entity.ts +43 -43
- package/src/module/workflow/entity/entity-modification.entity.ts +38 -38
- package/src/module/workflow/entity/form.entity.ts +25 -25
- package/src/module/workflow/entity/stage-action-mapping.entity.ts +17 -17
- package/src/module/workflow/entity/stage-group.entity.ts +23 -23
- package/src/module/workflow/entity/stage-movement-data.entity.ts +38 -38
- package/src/module/workflow/entity/stage.entity.ts +20 -20
- package/src/module/workflow/entity/task-data.entity.ts +88 -88
- package/src/module/workflow/entity/template-attach-mapper.entity.ts +30 -30
- package/src/module/workflow/entity/workflow-data.entity.ts +11 -11
- package/src/module/workflow/entity/workflow-level-mapping.entity.ts +18 -18
- package/src/module/workflow/entity/workflow.entity.ts +20 -20
- package/src/module/workflow/repository/action-category.repository.ts +79 -79
- package/src/module/workflow/repository/action-data.repository.ts +334 -333
- package/src/module/workflow/repository/action.repository.ts +323 -323
- package/src/module/workflow/repository/activity-log.repository.ts +148 -148
- package/src/module/workflow/repository/comm-template.repository.ts +149 -149
- package/src/module/workflow/repository/form-master.repository.ts +59 -59
- package/src/module/workflow/repository/stage-group.repository.ts +176 -176
- package/src/module/workflow/repository/stage-movement.repository.ts +244 -244
- package/src/module/workflow/repository/stage.repository.ts +172 -172
- package/src/module/workflow/repository/task.repository.ts +134 -126
- package/src/module/workflow/repository/workflow.repository.ts +42 -42
- package/src/module/workflow/service/action-category.service.ts +33 -33
- package/src/module/workflow/service/action-data.service.ts +62 -62
- package/src/module/workflow/service/action-resources-mapping.service.ts +10 -10
- package/src/module/workflow/service/action-template-mapping.service.ts +106 -106
- package/src/module/workflow/service/action.service.ts +279 -279
- package/src/module/workflow/service/activity-log.service.ts +107 -107
- package/src/module/workflow/service/comm-template.service.ts +180 -180
- package/src/module/workflow/service/entity-modification.service.ts +67 -67
- package/src/module/workflow/service/form-master.service.ts +35 -35
- package/src/module/workflow/service/populate-workflow.service.ts +303 -303
- package/src/module/workflow/service/stage-action-mapping.service.ts +5 -5
- package/src/module/workflow/service/stage-group.service.ts +319 -319
- package/src/module/workflow/service/stage.service.ts +199 -199
- package/src/module/workflow/service/task.service.ts +569 -560
- package/src/module/workflow/service/workflow-list-master.service.ts +60 -60
- package/src/module/workflow/service/workflow-meta.service.ts +654 -640
- package/src/module/workflow/service/workflow.service.ts +205 -205
- package/src/module/workflow/workflow.module.ts +176 -176
- package/src/module/workflow-automation/controller/workflow-automation.controller.ts +43 -21
- package/src/module/workflow-automation/entity/workflow-automation-action.entity.ts +26 -26
- package/src/module/workflow-automation/entity/workflow-automation.entity.ts +40 -35
- package/src/module/workflow-automation/interface/action.decorator.ts +7 -7
- package/src/module/workflow-automation/interface/action.interface.ts +5 -5
- package/src/module/workflow-automation/service/action-registery.service.ts +35 -35
- package/src/module/workflow-automation/service/schedule-handler.service.ts +150 -0
- package/src/module/workflow-automation/service/workflow-automation-engine.service.ts +214 -214
- package/src/module/workflow-automation/service/workflow-automation.service.ts +508 -347
- package/src/module/workflow-automation/workflow-automation.module.ts +47 -34
- package/src/module/workflow-schedule/INSTALLATION.md +244 -0
- package/src/module/workflow-schedule/README.md +422 -0
- package/src/module/workflow-schedule/constants/schedule.constants.ts +48 -0
- package/src/module/workflow-schedule/controller/workflow-schedule.controller.ts +255 -0
- package/src/module/workflow-schedule/docs/CLAUDE_CODE_GUIDE.md +510 -0
- package/src/module/workflow-schedule/docs/CLAUDE_CODE_PROMPT.md +362 -0
- package/src/module/workflow-schedule/docs/RUN_CLAUDE_CODE.sh +68 -0
- package/src/module/workflow-schedule/dto/create-schedule.dto.ts +147 -0
- package/src/module/workflow-schedule/dto/get-execution-logs.dto.ts +119 -0
- package/src/module/workflow-schedule/dto/update-schedule.dto.ts +96 -0
- package/src/module/workflow-schedule/entities/scheduled-workflow.entity.ts +148 -0
- package/src/module/workflow-schedule/entities/workflow-execution-log.entity.ts +154 -0
- package/src/module/workflow-schedule/interfaces/schedule-job-data.interface.ts +53 -0
- package/src/module/workflow-schedule/processors/schedule.processor.ts +584 -0
- package/src/module/workflow-schedule/service/workflow-schedule.service.ts +600 -0
- package/src/module/workflow-schedule/workflow-schedule.module.ts +43 -0
- package/src/resources/dev.properties.yaml +30 -31
- package/src/resources/local.properties.yaml +27 -27
- package/src/resources/properties.module.ts +12 -12
- package/src/resources/properties.yaml.ts +11 -11
- package/src/resources/uat.properties.yaml +31 -31
- package/src/table.config.ts +130 -126
- package/src/utils/dto/excel-data.dto.ts +14 -14
- package/src/utils/dto/excelsheet-data.dto.ts +5 -5
- package/src/utils/service/base64util.service.ts +18 -18
- package/src/utils/service/clockIDGenUtil.service.ts +21 -21
- package/src/utils/service/codeGenerator.service.ts +22 -22
- package/src/utils/service/dateUtil.service.ts +17 -17
- package/src/utils/service/encryptUtil.service.ts +97 -97
- package/src/utils/service/excel-helper.service.ts +72 -72
- package/src/utils/service/excelUtil.service.ts +15 -15
- package/src/utils/service/file-util.service.ts +11 -11
- package/src/utils/service/json-util.service.ts +23 -23
- package/src/utils/service/loggingUtil.service.ts +88 -34
- package/src/utils/service/reflection-helper.service.ts +62 -62
- package/src/utils/service/wbsCodeGen.service.ts +8 -8
- package/src/utils/utils.module.ts +27 -25
- package/tsconfig.build.json +4 -4
- package/tsconfig.json +24 -24
- package/.claude/settings.local.json +0 -26
- package/.idea/250218_nodejs_core.iml +0 -9
- package/.idea/codeStyles/Project.xml +0 -59
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/.idea/copilot.data.migration.agent.xml +0 -6
- package/.idea/copilot.data.migration.ask.xml +0 -6
- package/.idea/copilot.data.migration.ask2agent.xml +0 -6
- package/.idea/copilot.data.migration.edit.xml +0 -6
- package/.idea/inspectionProfiles/Project_Default.xml +0 -6
- package/.idea/misc.xml +0 -6
- package/.idea/modules.xml +0 -8
- package/.idea/prettier.xml +0 -6
- package/.idea/vcs.xml +0 -6
- package/server.log +0 -850
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
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.LinkedAttributesRepository = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const typeorm_1 = require("@nestjs/typeorm");
|
|
18
|
+
const typeorm_2 = require("typeorm");
|
|
19
|
+
const linked_attribute_entity_1 = require("../entity/linked_attribute.entity");
|
|
20
|
+
let LinkedAttributesRepository = class LinkedAttributesRepository {
|
|
21
|
+
constructor(linkedAttributesRepo) {
|
|
22
|
+
this.linkedAttributesRepo = linkedAttributesRepo;
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
exports.LinkedAttributesRepository = LinkedAttributesRepository;
|
|
26
|
+
exports.LinkedAttributesRepository = LinkedAttributesRepository = __decorate([
|
|
27
|
+
(0, common_1.Injectable)(),
|
|
28
|
+
__param(0, (0, typeorm_1.InjectRepository)(linked_attribute_entity_1.LinkedAttributes)),
|
|
29
|
+
__metadata("design:paramtypes", [typeorm_2.Repository])
|
|
30
|
+
], LinkedAttributesRepository);
|
|
31
|
+
//# sourceMappingURL=linked_attribute.repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linked_attribute.repository.js","sourceRoot":"","sources":["../../../../src/module/linked_attributes/repository/linked_attribute.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6CAAmD;AACnD,qCAAqC;AACrC,+EAAqE;AAG9D,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;IACrC,YAEmB,oBAAkD;QAAlD,yBAAoB,GAApB,oBAAoB,CAA8B;IAClE,CAAC;CACL,CAAA;AALY,gEAA0B;qCAA1B,0BAA0B;IADtC,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,0BAAgB,EAAC,0CAAgB,CAAC,CAAA;qCACI,oBAAU;GAHxC,0BAA0B,CAKtC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.LinkedAttributesService = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const entity_service_impl_service_1 = require("../../meta/service/entity-service-impl.service");
|
|
15
|
+
let LinkedAttributesService = class LinkedAttributesService extends entity_service_impl_service_1.EntityServiceImpl {
|
|
16
|
+
constructor() {
|
|
17
|
+
super();
|
|
18
|
+
}
|
|
19
|
+
async createEntity(payload, loggedInUser) {
|
|
20
|
+
if (!payload.attribute_key || payload.attribute_key.trim() === '') {
|
|
21
|
+
payload.attribute_key = payload.field_name
|
|
22
|
+
.trim()
|
|
23
|
+
.toLowerCase()
|
|
24
|
+
.replace(/\s+/g, '_');
|
|
25
|
+
}
|
|
26
|
+
return super.createEntity(payload, loggedInUser);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
exports.LinkedAttributesService = LinkedAttributesService;
|
|
30
|
+
exports.LinkedAttributesService = LinkedAttributesService = __decorate([
|
|
31
|
+
(0, common_1.Injectable)(),
|
|
32
|
+
__metadata("design:paramtypes", [])
|
|
33
|
+
], LinkedAttributesService);
|
|
34
|
+
//# sourceMappingURL=linked_attributes.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linked_attributes.service.js","sourceRoot":"","sources":["../../../../src/module/linked_attributes/service/linked_attributes.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,gGAAwF;AAGjF,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,+CAAiB;IAC5D;QACE,KAAK,EAAE,CAAC;IACV,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,OAAY,EAAE,YAAiB;QAEhD,IAAI,CAAC,OAAO,CAAC,aAAa,IAAI,OAAO,CAAC,aAAa,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;YAClE,OAAO,CAAC,aAAa,GAAG,OAAO,CAAC,UAAU;iBACvC,IAAI,EAAE;iBACN,WAAW,EAAE;iBACb,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAC1B,CAAC;QAGD,OAAO,KAAK,CAAC,YAAY,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;IACnD,CAAC;CACF,CAAA;AAjBY,0DAAuB;kCAAvB,uBAAuB;IADnC,IAAA,mBAAU,GAAE;;GACA,uBAAuB,CAiBnC"}
|
|
@@ -45,7 +45,7 @@ __decorate([
|
|
|
45
45
|
__metadata("design:type", String)
|
|
46
46
|
], ListMasterItems.prototype, "status", void 0);
|
|
47
47
|
__decorate([
|
|
48
|
-
(0, typeorm_1.Column)({ default: 0
|
|
48
|
+
(0, typeorm_1.Column)({ default: 0 }),
|
|
49
49
|
__metadata("design:type", Number)
|
|
50
50
|
], ListMasterItems.prototype, "isdefault", void 0);
|
|
51
51
|
__decorate([
|
|
@@ -53,11 +53,11 @@ __decorate([
|
|
|
53
53
|
__metadata("design:type", String)
|
|
54
54
|
], ListMasterItems.prototype, "description", void 0);
|
|
55
55
|
__decorate([
|
|
56
|
-
(0, typeorm_1.Column)({ default: 0
|
|
56
|
+
(0, typeorm_1.Column)({ default: 0 }),
|
|
57
57
|
__metadata("design:type", Number)
|
|
58
58
|
], ListMasterItems.prototype, "sortindex", void 0);
|
|
59
59
|
__decorate([
|
|
60
|
-
(0, typeorm_1.Column)({ default: 0
|
|
60
|
+
(0, typeorm_1.Column)({ default: 0 }),
|
|
61
61
|
__metadata("design:type", Number)
|
|
62
62
|
], ListMasterItems.prototype, "is_factory", void 0);
|
|
63
63
|
exports.ListMasterItems = ListMasterItems = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-master-items.entity.js","sourceRoot":"","sources":["../../../../src/module/listmaster/entity/list-master-items.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAwE;AACxE,6EAAkE;AAClE,uEAA+E;AAKxE,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,+BAAU;IAC7C;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,WAAW,GAAG,4CAA0B,CAAC;IAChD,CAAC;CA+BF,CAAA;AAnCY,0CAAe;AAO1B;IADC,IAAA,gCAAsB,GAAE;;2CACd;AAGX;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACV;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACd;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACP;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACb;AAGd;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACZ;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"list-master-items.entity.js","sourceRoot":"","sources":["../../../../src/module/listmaster/entity/list-master-items.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAwE;AACxE,6EAAkE;AAClE,uEAA+E;AAKxE,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,+BAAU;IAC7C;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,WAAW,GAAG,4CAA0B,CAAC;IAChD,CAAC;CA+BF,CAAA;AAnCY,0CAAe;AAO1B;IADC,IAAA,gCAAsB,GAAE;;2CACd;AAGX;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACV;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACd;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACP;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACb;AAGd;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACZ;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;kDACL;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACP;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;kDACL;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;mDACJ;0BAlCR,eAAe;IAH3B,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,uBAAuB,EAAE,CAAC;IACzC,IAAA,eAAK,EAAC,0CAA0C,EAAE,CAAC,UAAU,EAAE,OAAO,EAAE,iBAAiB,CAAC,CAAC;IAC3F,IAAA,eAAK,EAAC,oCAAoC,EAAE,CAAC,UAAU,EAAE,iBAAiB,CAAC,CAAC;;GAChE,eAAe,CAmC3B"}
|
|
@@ -21,19 +21,19 @@ let ListMasterData = class ListMasterData extends base_entity_entity_1.BaseEntit
|
|
|
21
21
|
};
|
|
22
22
|
exports.ListMasterData = ListMasterData;
|
|
23
23
|
__decorate([
|
|
24
|
-
(0, typeorm_1.Column)(
|
|
24
|
+
(0, typeorm_1.Column)(),
|
|
25
25
|
__metadata("design:type", String)
|
|
26
26
|
], ListMasterData.prototype, "type", void 0);
|
|
27
27
|
__decorate([
|
|
28
|
-
(0, typeorm_1.Column)(
|
|
28
|
+
(0, typeorm_1.Column)(),
|
|
29
29
|
__metadata("design:type", String)
|
|
30
30
|
], ListMasterData.prototype, "sort_by", void 0);
|
|
31
31
|
__decorate([
|
|
32
|
-
(0, typeorm_1.Column)(
|
|
32
|
+
(0, typeorm_1.Column)(),
|
|
33
33
|
__metadata("design:type", Number)
|
|
34
34
|
], ListMasterData.prototype, "is_factory", void 0);
|
|
35
35
|
__decorate([
|
|
36
|
-
(0, typeorm_1.Column)(
|
|
36
|
+
(0, typeorm_1.Column)(),
|
|
37
37
|
__metadata("design:type", String)
|
|
38
38
|
], ListMasterData.prototype, "source", void 0);
|
|
39
39
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-master.entity.js","sourceRoot":"","sources":["../../../../src/module/listmaster/entity/list-master.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAwE;AACxE,6EAAkE;AAClE,uEAA0E;AAInE,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,+BAAU;IAC5C;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,WAAW,GAAG,uCAAqB,CAAC;IAC3C,CAAC;CAsBF,CAAA;AA1BY,wCAAc;AAOzB;IADC,IAAA,gBAAM,
|
|
1
|
+
{"version":3,"file":"list-master.entity.js","sourceRoot":"","sources":["../../../../src/module/listmaster/entity/list-master.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAwE;AACxE,6EAAkE;AAClE,uEAA0E;AAInE,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,+BAAU;IAC5C;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,WAAW,GAAG,uCAAqB,CAAC;IAC3C,CAAC;CAsBF,CAAA;AA1BY,wCAAc;AAOzB;IADC,IAAA,gBAAM,GAAE;;4CACI;AAGb;IADC,IAAA,gBAAM,GAAE;;+CACO;AAGhB;IADC,IAAA,gBAAM,GAAE;;kDACU;AAGnB;IADC,IAAA,gBAAM,GAAE;;8CACM;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACP;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDACF;AAGzB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;mDACpB;yBAzBT,cAAc;IAF1B,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC;IACnC,IAAA,eAAK,EAAC,0BAA0B,EAAE,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;;GAClD,cAAc,CA0B1B"}
|
|
@@ -132,9 +132,9 @@ let ListMasterItemService = class ListMasterItemService extends entity_service_i
|
|
|
132
132
|
return `Item with name ${code} deleted successfully from type ${listType}`;
|
|
133
133
|
}
|
|
134
134
|
async getListSourceType(loggedInUser, source) {
|
|
135
|
-
const data = await this.dataSource.query(`SELECT name AS label, type AS value
|
|
136
|
-
FROM frm_list_master
|
|
137
|
-
WHERE organization_id =
|
|
135
|
+
const data = await this.dataSource.query(`SELECT name AS label, type AS value
|
|
136
|
+
FROM frm_list_master
|
|
137
|
+
WHERE organization_id = ? AND source = ?`, [loggedInUser.organization_id, source]);
|
|
138
138
|
return data;
|
|
139
139
|
}
|
|
140
140
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-master-item.service.js","sourceRoot":"","sources":["../../../../src/module/listmaster/service/list-master-item.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,qCAAqC;AACrC,2CAMwB;AACxB,6FAAuF;AACvF,gGAAwF;AAExF,wFAA+E;AAC/E,0FAA0F;AAGnF,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,+CAAiB;IAC1D,YACmB,aAAwC,EACxC,cAAyC,EAEzC,iBAAoC,EAClC,sBAA8C,EAChD,UAAsB;QAEvC,KAAK,EAAE,CAAC;QAPS,kBAAa,GAAb,aAAa,CAA2B;QACxC,mBAAc,GAAd,cAAc,CAA2B;QAEzC,sBAAiB,GAAjB,iBAAiB,CAAmB;Q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IAC7E,CAAC;IAED,KAAK,CAAC,iBAAiB,CACrB,YAAsB,EACtB,MAAc;QAEd,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,CACtC;;
|
|
1
|
+
{"version":3,"file":"list-master-item.service.js","sourceRoot":"","sources":["../../../../src/module/listmaster/service/list-master-item.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,qCAAqC;AACrC,2CAMwB;AACxB,6FAAuF;AACvF,gGAAwF;AAExF,wFAA+E;AAC/E,0FAA0F;AAGnF,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,+CAAiB;IAC1D,YACmB,aAAwC,EACxC,cAAyC,EAEzC,iBAAoC,EAClC,sBAA8C,EAChD,UAAsB;QAEvC,KAAK,EAAE,CAAC;QAPS,kBAAa,GAAb,aAAa,CAA2B;QACxC,mBAAc,GAAd,cAAc,CAA2B;QAEzC,sBAAiB,GAAjB,iBAAiB,CAAmB;QAClC,2BAAsB,GAAtB,sBAAsB,CAAwB;QAChD,eAAU,GAAV,UAAU,CAAY;IAGzC,CAAC;IAED,KAAK,CAAC,wBAAwB,CAC5B,QAAgB,EAChB,eAAuB,EACvB,MAAe;QAGf,OAAO,IAAI,CAAC,aAAa,CAAC,sBAAsB,CAC9C,QAAQ,EACR,KAAK,EACL,eAAe,EACf,MAAM,CACP,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,UAAe,EAAE,YAAsB;QACxD,IAAI,CAAC;YACH,MAAM,aAAa,GAAG,4CAAoB,CAAC,YAAY,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;YAEzE,UAAU,CAAC,IAAI,GAAG,aAAa,CAAC;YAChC,UAAU,CAAC,eAAe,GAAG,YAAY,CAAC,eAAe,CAAC;YAC1D,UAAU,CAAC,KAAK,GAAG,aAAa,CAAC;YAEjC,OAAO,MAAM,IAAI,CAAC,iBAAiB,CAAC,YAAY,CAC9C,UAAU,EACV,YAAY,CACb,CAAC;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|
|
23
|
-
(0, typeorm_1.Column)({ name: 'mapper_id', type: 'bigint'
|
|
23
|
+
(0, typeorm_1.Column)({ name: 'mapper_id', type: 'bigint' }),
|
|
24
24
|
__metadata("design:type", Number)
|
|
25
25
|
], FieldMapper.prototype, "mapper_id", void 0);
|
|
26
26
|
__decorate([
|
|
27
|
-
(0, typeorm_1.Column)({ name: 'action', type: 'varchar', length: 30
|
|
27
|
+
(0, typeorm_1.Column)({ name: 'action', type: 'varchar', length: 30 }),
|
|
28
28
|
__metadata("design:type", String)
|
|
29
29
|
], FieldMapper.prototype, "action", void 0);
|
|
30
30
|
__decorate([
|
|
31
|
-
(0, typeorm_1.Column)({ name: 'source_attribute', type: 'varchar', length: 30
|
|
31
|
+
(0, typeorm_1.Column)({ name: 'source_attribute', type: 'varchar', length: 30 }),
|
|
32
32
|
__metadata("design:type", String)
|
|
33
33
|
], FieldMapper.prototype, "source_attribute", void 0);
|
|
34
34
|
__decorate([
|
|
35
|
-
(0, typeorm_1.Column)({ name: 'attribute_key', type: 'varchar', length: 30
|
|
35
|
+
(0, typeorm_1.Column)({ name: 'attribute_key', type: 'varchar', length: 30 }),
|
|
36
36
|
__metadata("design:type", String)
|
|
37
37
|
], FieldMapper.prototype, "attribute_key", void 0);
|
|
38
38
|
__decorate([
|
|
39
|
-
(0, typeorm_1.Column)({ name: 'mapper_entity_type', type: 'varchar', length: 30
|
|
39
|
+
(0, typeorm_1.Column)({ name: 'mapper_entity_type', type: 'varchar', length: 30 }),
|
|
40
40
|
__metadata("design:type", String)
|
|
41
41
|
], FieldMapper.prototype, "mapper_entity_type", void 0);
|
|
42
42
|
__decorate([
|
|
@@ -61,7 +61,7 @@ __decorate([
|
|
|
61
61
|
__decorate([
|
|
62
62
|
(0, typeorm_1.Column)({
|
|
63
63
|
name: 'is_lov_present',
|
|
64
|
-
type: '
|
|
64
|
+
type: 'tinyint',
|
|
65
65
|
nullable: true,
|
|
66
66
|
default: 0,
|
|
67
67
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-mapper.entity.js","sourceRoot":"","sources":["../../../../src/module/mapper/entity/field-mapper.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAyC;AACzC,6EAAkE;AAG3D,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,+BAAU;IACzC;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC;IAC5B,CAAC;CA4CF,CAAA;AAhDY,kCAAW;AAOtB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"field-mapper.entity.js","sourceRoot":"","sources":["../../../../src/module/mapper/entity/field-mapper.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAyC;AACzC,6EAAkE;AAG3D,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,+BAAU;IACzC;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC;IAC5B,CAAC;CA4CF,CAAA;AAhDY,kCAAW;AAOtB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;;8CAC5B;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;2CACzC;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;qDACzC;AAGzB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;kDACzC;AAGtB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;uDACzC;AAQ3B;IANC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,oBAAoB;QAC1B,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,EAAE;QACV,QAAQ,EAAE,IAAI;KACf,CAAC;;uDACyB;AAS3B;IAPC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,EAAE;QACV,OAAO,EAAE,SAAS;QAClB,QAAQ,EAAE,IAAI;KACf,CAAC;;gDACkB;AAQpB;IANC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,CAAC;KACX,CAAC;;mDACqB;AAGvB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCACzC;sBA/CD,WAAW;IADvB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC;;GACxB,WAAW,CAgDvB"}
|
|
@@ -107,13 +107,13 @@ let FieldMapperService = class FieldMapperService extends entity_service_impl_se
|
|
|
107
107
|
entity_data[field.mapped_entity_type];
|
|
108
108
|
}
|
|
109
109
|
else {
|
|
110
|
-
const relations = await this.datasource.query(`SELECT target_entity_id
|
|
111
|
-
FROM frm_entity_relation_data
|
|
112
|
-
WHERE source_entity_type =
|
|
113
|
-
AND source_entity_id =
|
|
114
|
-
AND target_entity_type =
|
|
110
|
+
const relations = await this.datasource.query(`SELECT target_entity_id
|
|
111
|
+
FROM frm_entity_relation_data
|
|
112
|
+
WHERE source_entity_type = ?
|
|
113
|
+
AND source_entity_id = ?
|
|
114
|
+
AND target_entity_type = ?`, [parent_type, parent_id, field.mapped_entity_type]);
|
|
115
115
|
const targetEntityIds = relations.map((r) => r.target_entity_id);
|
|
116
|
-
this.loggingService.log('
|
|
116
|
+
this.loggingService.log('debug', 'fieldMapperService', 'resolveData', `Resolved targetEntityIds: ${targetEntityIds} for entityType: ${entityType}`, [parent_type, parent_id, field.mapped_entity_type], []);
|
|
117
117
|
if (targetEntityIds.length > 0) {
|
|
118
118
|
if (filterCode && filterCode !== 'default') {
|
|
119
119
|
let filterResponse = await this.filterService.applyFilterWrapper({
|
|
@@ -131,7 +131,7 @@ let FieldMapperService = class FieldMapperService extends entity_service_impl_se
|
|
|
131
131
|
loggedInUser: userData,
|
|
132
132
|
queryParams: {},
|
|
133
133
|
});
|
|
134
|
-
this.loggingService.log('
|
|
134
|
+
this.loggingService.log('debug', 'fieldMapperService', 'resolveData', `Filter response for filterCode: ${filterCode} is ${JSON.stringify(filterResponse)}`, [entityType, filterCode, targetEntityIds], []);
|
|
135
135
|
inMemory[entityType][filterCode] =
|
|
136
136
|
filterResponse?.data?.entity_list[0];
|
|
137
137
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-mapper.service.js","sourceRoot":"","sources":["../../../../src/module/mapper/service/field-mapper.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA2E;AAC3E,mFAA8E;AAE9E,gGAAmF;AAEnF,+EAA0E;AAC1E,qCAAqC;AACrC,wEAAyE;AAEzE,oFAAuE;AAGhE,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,+CAAiB;IACvD,YACmB,qBAA4C,EAC5C,mBAAwC,EACxC,UAAsB,EACtB,aAA4B,EAChB,cAA8B;QAE3D,KAAK,EAAE,CAAC;QANS,0BAAqB,GAArB,qBAAqB,CAAuB;QAC5C,wBAAmB,GAAnB,mBAAmB,CAAqB;QACxC,eAAU,GAAV,UAAU,CAAY;QACtB,kBAAa,GAAb,aAAa,CAAe;QAChB,mBAAc,GAAd,cAAc,CAAgB;IAG7D,CAAC;IAED,KAAK,CA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IAAI,MAAM,KAAK,MAAM;YACxB,MAAM,GAAG;gBACP,WAAW,EAAE,WAAW;gBACxB,cAAc,EAAE,EAAE;aACnB,CAAC;QAEJ,MAAM,QAAQ,GAAwC,EAAE,CAAC;QAEzD,KAAK,MAAM,KAAK,IAAI,YAAY,EAAE,CAAC;YACjC,MAAM,UAAU,GAAG,KAAK,CAAC,kBAAkB,IAAI,KAAK,CAAC,kBAAkB,CAAC;YACxE,MAAM,UAAU,GAAG,KAAK,CAAC,WAAW,IAAI,SAAS,CAAC;YAKlD,IAAI,MAAM,KAAK,QAAQ,EAAE,CAAC;gBACxB,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC;oBAAE,QAAQ,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC;gBAErD,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,UAAU,CAAC,EAAE,CAAC;oBACtC,IAAI,KAAK,CAAC,kBAAkB,KAAK,KAAK,CAAC,kBAAkB,EAAE,CAAC;wBAC1D,QAAQ,CAAC,UAAU,CAAC,CAAC,UAAU,CAAC;4BAC9B,MAAM,KAAK,CAAC,iCAAiC,CAC3C,UAAU,EACV,SAAS,EACT,QAAQ,CACT,CAAC;oBACN,CAAC;yBAAM,CAAC;wBACN,IACE,SAAS;4BACT,WAAW;4BACX,WAAW,CAAC,KAAK,CAAC,kBAAkB,CAAC,EACrC,CAAC;4BACD,QAAQ,CAAC,UAAU,CAAC,CAAC,UAAU,CAAC;gCAC9B,WAAW,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC;wBAC1C,CAAC;6BAAM,CAAC;4BACN,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,CAC3C
|
|
1
|
+
{"version":3,"file":"field-mapper.service.js","sourceRoot":"","sources":["../../../../src/module/mapper/service/field-mapper.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA2E;AAC3E,mFAA8E;AAE9E,gGAAmF;AAEnF,+EAA0E;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
|
27
27
|
async getByMappedEntityType(mappedEntityType, loggedInUser, filter, status) {
|
|
28
28
|
if (!mappedEntityType)
|
|
29
29
|
return [];
|
|
30
|
-
const mappers = await this.dataSource.query(`SELECT id, name, code, status
|
|
31
|
-
FROM frm_mapper_master
|
|
32
|
-
WHERE mapped_entity_type =
|
|
30
|
+
const mappers = await this.dataSource.query(`SELECT id, name, code, status
|
|
31
|
+
FROM frm_mapper_master
|
|
32
|
+
WHERE mapped_entity_type = ? AND organization_id = ? AND (-1 = ? OR name LIKE ? OR code LIKE ?)`, [mappedEntityType, loggedInUser.organization_id, filter || -1, `%${filter}%`, `%${filter}%`]);
|
|
33
33
|
const distinctStatuses = [
|
|
34
34
|
...new Set(mappers.map((m) => m.status).filter((s) => s !== null)),
|
|
35
35
|
];
|
|
36
36
|
const statusMap = new Map();
|
|
37
37
|
if (distinctStatuses.length > 0) {
|
|
38
|
-
const statuses = await this.dataSource.query(`SELECT id, name FROM frm_list_master_items WHERE id IN (
|
|
38
|
+
const statuses = await this.dataSource.query(`SELECT id, name FROM frm_list_master_items WHERE id IN (?)`, [distinctStatuses]);
|
|
39
39
|
statuses.forEach((status) => {
|
|
40
40
|
statusMap.set(status.id, status.name);
|
|
41
41
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mapper.service.js","sourceRoot":"","sources":["../../../../src/module/mapper/service/mapper.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,gGAAwF;AACxF,qCAAqC;AACrC,uEAAmE;AACnE,mFAA8E;AAC9E,+EAA0E;AAGnE,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,+CAAiB;IAClD,YACmB,UAAsB,EAC/B,gBAAkC,EAClC,qBAA4C,EAC5C,mBAAwC;QAEhD,KAAK,EAAE,CAAC;QALS,eAAU,GAAV,UAAU,CAAY;QAC/B,qBAAgB,GAAhB,gBAAgB,CAAkB;QAClC,0BAAqB,GAArB,qBAAqB,CAAuB;QAC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AAY,EAAE,CAAC;YACvC,MAAM,IAAI,CAAC,mBAAmB,CAAC,qBAAqB,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;QACvE,CAAC;QAED,MAAM,IAAI,CAAC,qBAAqB,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;QAE5D,MAAM,KAAK,CAAC,YAAY,CAAC,UAAU,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC;QAC7D,OAAO;YACL,OAAO,EAAE,IAAI;YACb,OAAO,EAAE,8BAA8B;SACxC,CAAC;IACJ,CAAC;CACF,CAAA;AAtEY,sCAAa;wBAAb,aAAa;IADzB,IAAA,mBAAU,GAAE;qCAGoB,oBAAU;QACb,oCAAgB;QACX,+CAAqB;QACvB,2CAAmB;GALvC,aAAa,CAsEzB"}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { Request } from 'express';
|
|
2
2
|
import { AttributeMasterService } from '../service/attribute-master.service';
|
|
3
|
+
import { EntityUpdateService } from '../service/entity-attribute-update.service';
|
|
3
4
|
export declare class AttributeMasterController {
|
|
4
5
|
private readonly attributeMasterService;
|
|
5
|
-
|
|
6
|
+
private readonly entityUpdateService;
|
|
7
|
+
constructor(attributeMasterService: AttributeMasterService, entityUpdateService: EntityUpdateService);
|
|
6
8
|
createAttribute(attributeData: any, req: Request & {
|
|
7
9
|
user: any;
|
|
8
10
|
}): Promise<import("../entity/attribute-master.entity").AttributeMaster>;
|
|
11
|
+
entityAttributeUpdate(payload: {}): Promise<any>;
|
|
9
12
|
updateAttribute(attributeData: any, id: number, req: Request & {
|
|
10
13
|
user: any;
|
|
11
14
|
}): Promise<import("../entity/attribute-master.entity").AttributeMaster | null>;
|
|
@@ -16,14 +16,19 @@ exports.AttributeMasterController = void 0;
|
|
|
16
16
|
const common_1 = require("@nestjs/common");
|
|
17
17
|
const attribute_master_service_1 = require("../service/attribute-master.service");
|
|
18
18
|
const jwt_guard_1 = require("../../auth/guards/jwt.guard");
|
|
19
|
+
const entity_attribute_update_service_1 = require("../service/entity-attribute-update.service");
|
|
19
20
|
let AttributeMasterController = class AttributeMasterController {
|
|
20
|
-
constructor(attributeMasterService) {
|
|
21
|
+
constructor(attributeMasterService, entityUpdateService) {
|
|
21
22
|
this.attributeMasterService = attributeMasterService;
|
|
23
|
+
this.entityUpdateService = entityUpdateService;
|
|
22
24
|
}
|
|
23
25
|
async createAttribute(attributeData, req) {
|
|
24
26
|
const loggedInUser = req.user.userData;
|
|
25
27
|
return await this.attributeMasterService.createAttribute(attributeData, loggedInUser);
|
|
26
28
|
}
|
|
29
|
+
async entityAttributeUpdate(payload) {
|
|
30
|
+
return this.entityUpdateService.execute(payload);
|
|
31
|
+
}
|
|
27
32
|
async updateAttribute(attributeData, id, req) {
|
|
28
33
|
const loggedInUser = req.user.userData;
|
|
29
34
|
return await this.attributeMasterService.updateAttribute(attributeData, id, loggedInUser);
|
|
@@ -45,6 +50,13 @@ __decorate([
|
|
|
45
50
|
__metadata("design:paramtypes", [Object, Object]),
|
|
46
51
|
__metadata("design:returntype", Promise)
|
|
47
52
|
], AttributeMasterController.prototype, "createAttribute", null);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, common_1.Post)('/updateAttributeValue'),
|
|
55
|
+
__param(0, (0, common_1.Body)()),
|
|
56
|
+
__metadata("design:type", Function),
|
|
57
|
+
__metadata("design:paramtypes", [Object]),
|
|
58
|
+
__metadata("design:returntype", Promise)
|
|
59
|
+
], AttributeMasterController.prototype, "entityAttributeUpdate", null);
|
|
48
60
|
__decorate([
|
|
49
61
|
(0, common_1.Post)('update/:id'),
|
|
50
62
|
__param(0, (0, common_1.Body)()),
|
|
@@ -73,6 +85,7 @@ __decorate([
|
|
|
73
85
|
exports.AttributeMasterController = AttributeMasterController = __decorate([
|
|
74
86
|
(0, common_1.Controller)('attribute-master'),
|
|
75
87
|
(0, common_1.UseGuards)(jwt_guard_1.JwtAuthGuard),
|
|
76
|
-
__metadata("design:paramtypes", [attribute_master_service_1.AttributeMasterService
|
|
88
|
+
__metadata("design:paramtypes", [attribute_master_service_1.AttributeMasterService,
|
|
89
|
+
entity_attribute_update_service_1.EntityUpdateService])
|
|
77
90
|
], AttributeMasterController);
|
|
78
91
|
//# sourceMappingURL=attribute-master.controller.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attribute-master.controller.js","sourceRoot":"","sources":["../../../../src/module/meta/controller/attribute-master.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAQwB;AAExB,kFAA6E;AAC7E,2DAA2D;
|
|
1
|
+
{"version":3,"file":"attribute-master.controller.js","sourceRoot":"","sources":["../../../../src/module/meta/controller/attribute-master.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAQwB;AAExB,kFAA6E;AAC7E,2DAA2D;AAC3D,gGAAiF;AAI1E,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IACpC,YACmB,sBAA8C,EAC9C,mBAAwC;QADxC,2BAAsB,GAAtB,sBAAsB,CAAwB;QAC9C,wBAAmB,GAAnB,mBAAmB,CAAqB;IACxD,CAAC;IAGE,AAAN,KAAK,CAAC,eAAe,CACX,aAAkB,EACnB,GAA4B;QAEnC,MAAM,YAAY,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QACvC,OAAO,MAAM,IAAI,CAAC,sBAAsB,CAAC,eAAe,CACtD,aAAa,EACb,YAAY,CACb,CAAC;IACJ,CAAC;IAGI,AAAN,KAAK,CAAC,qBAAqB,CAAU,OAAU;QAC9C,OAAO,IAAI,CAAC,mBAAmB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAElD,CAAC;IAGM,AAAN,KAAK,CAAC,eAAe,CACX,aAAkB,EACb,EAAU,EAChB,GAA4B;QAEnC,MAAM,YAAY,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QACvC,OAAO,MAAM,IAAI,CAAC,sBAAsB,CAAC,eAAe,CACtD,aAAa,EACb,EAAE,EACF,Y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"}
|
|
@@ -40,13 +40,13 @@ __decorate([
|
|
|
40
40
|
__metadata("design:type", String)
|
|
41
41
|
], AppMaster.prototype, "description", void 0);
|
|
42
42
|
__decorate([
|
|
43
|
-
(0, typeorm_1.Column)({ name: '
|
|
43
|
+
(0, typeorm_1.Column)({ name: 'backgroudColor', type: 'varchar', nullable: true }),
|
|
44
44
|
__metadata("design:type", String)
|
|
45
|
-
], AppMaster.prototype, "
|
|
45
|
+
], AppMaster.prototype, "backgroudColor", void 0);
|
|
46
46
|
__decorate([
|
|
47
|
-
(0, typeorm_1.Column)({ name: '
|
|
47
|
+
(0, typeorm_1.Column)({ name: 'iconName', type: 'varchar', nullable: true }),
|
|
48
48
|
__metadata("design:type", String)
|
|
49
|
-
], AppMaster.prototype, "
|
|
49
|
+
], AppMaster.prototype, "iconName", void 0);
|
|
50
50
|
__decorate([
|
|
51
51
|
(0, typeorm_1.Column)({ name: 'version', type: 'varchar', nullable: true }),
|
|
52
52
|
__metadata("design:type", String)
|
|
@@ -106,7 +106,7 @@ __decorate([
|
|
|
106
106
|
__metadata("design:type", String)
|
|
107
107
|
], EntityMaster.prototype, "doc_upload_path", void 0);
|
|
108
108
|
__decorate([
|
|
109
|
-
(0, typeorm_1.Column)({ name: 'overwrite_path', type: '
|
|
109
|
+
(0, typeorm_1.Column)({ name: 'overwrite_path', type: 'tinyint', nullable: true }),
|
|
110
110
|
__metadata("design:type", Number)
|
|
111
111
|
], EntityMaster.prototype, "overwrite_path", void 0);
|
|
112
112
|
exports.EntityMaster = EntityMaster = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-master.entity.js","sourceRoot":"","sources":["../../../../src/module/meta/entity/entity-master.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6DAAkD;AAClD,uEAA4E;AAC5E,qCAAgD;AAIzC,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,+BAAU;IAC1C;QACE,KAAK,EAAE,CAAC;QACR,IAAI,C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
__decorate([
|
|
60
|
-
(0, typeorm_1.Column)({ type: 'int'
|
|
60
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
61
61
|
__metadata("design:type", Number)
|
|
62
62
|
], ViewMaster.prototype, "is_default", void 0);
|
|
63
63
|
exports.ViewMaster = ViewMaster = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-master.entity.js","sourceRoot":"","sources":["../../../../src/module/meta/entity/view-master.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6DAAkD;AAClD,qCAAyC;AACzC,uEAA0E;AAGnE,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,+BAAU;IACxC;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,WAAW,GAAG,uCAAqB,CAAC;IAC3C,CAAC;CA+BF,CAAA;AAnCY,gCAAU;AAOrB;IADC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACZ;AAG3B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACf;AAGzB;IADC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACpB;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACP;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDACX;AAG9B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDACX;AAG9B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDACZ;AAG7B;IADC,IAAA,gBA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AAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACvB;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCACd;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;8CACL;qBAlCR,UAAU;IADtB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC;;GACvB,UAAU,CAmCtB"}
|
|
@@ -62,6 +62,8 @@ const entity_master_repository_1 = require("./repository/entity-master.repositor
|
|
|
62
62
|
const entity_master_controller_1 = require("./controller/entity-master.controller");
|
|
63
63
|
const workflow_automation_module_1 = require("../workflow-automation/workflow-automation.module");
|
|
64
64
|
const entity_public_controller_1 = require("./controller/entity.public.controller");
|
|
65
|
+
const entity_attribute_update_service_1 = require("./service/entity-attribute-update.service");
|
|
66
|
+
const entity_attribute_update_repository_1 = require("./repository/entity-attribute-update.repository");
|
|
65
67
|
let EntityModule = class EntityModule {
|
|
66
68
|
};
|
|
67
69
|
exports.EntityModule = EntityModule;
|
|
@@ -80,6 +82,7 @@ exports.EntityModule = EntityModule = __decorate([
|
|
|
80
82
|
app_master_entity_1.AppMaster,
|
|
81
83
|
entity_relation_entity_1.EntityRelation,
|
|
82
84
|
entity_relation_data_entity_1.EntityRelationData,
|
|
85
|
+
entity_attribute_update_service_1.EntityUpdateService
|
|
83
86
|
]),
|
|
84
87
|
(0, common_1.forwardRef)(() => listmaster_module_1.ListMasterModule),
|
|
85
88
|
(0, common_1.forwardRef)(() => filter_module_1.FilterModule),
|
|
@@ -92,6 +95,7 @@ exports.EntityModule = EntityModule = __decorate([
|
|
|
92
95
|
entity_dynamic_service_1.EntityDynamicService,
|
|
93
96
|
{ provide: 'CommonService', useClass: common_service_1.CommonService },
|
|
94
97
|
attribute_master_repository_1.AttributeMasterRepository,
|
|
98
|
+
entity_attribute_update_repository_1.EntityUpdateRepository,
|
|
95
99
|
preference_service_1.PreferenceService,
|
|
96
100
|
preference_repository_1.PreferenceRepository,
|
|
97
101
|
master_service_1.MasterService,
|
|
@@ -104,6 +108,7 @@ exports.EntityModule = EntityModule = __decorate([
|
|
|
104
108
|
media_data_repository_1.MediaDataRepository,
|
|
105
109
|
media_data_service_1.MediaDataService,
|
|
106
110
|
attribute_master_service_1.AttributeMasterService,
|
|
111
|
+
entity_attribute_update_service_1.EntityUpdateService,
|
|
107
112
|
view_master_repository_1.ViewMaterRespository,
|
|
108
113
|
entity_validation_service_1.EntityValidationService,
|
|
109
114
|
{ provide: 'ViewMasterService', useClass: view_master_service_1.ViewMasterService },
|
|
@@ -128,6 +133,8 @@ exports.EntityModule = EntityModule = __decorate([
|
|
|
128
133
|
populate_meta_service_1.PopulateMetaService,
|
|
129
134
|
entity_table_column_service_1.EntityTableColumnService,
|
|
130
135
|
media_data_service_1.MediaDataService,
|
|
136
|
+
entity_attribute_update_service_1.EntityUpdateService,
|
|
137
|
+
entity_attribute_update_repository_1.EntityUpdateRepository,
|
|
131
138
|
'ViewMasterService',
|
|
132
139
|
attribute_master_service_1.AttributeMasterService,
|
|
133
140
|
app_master_service_1.AppMasterService,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity.module.js","sourceRoot":"","sources":["../../../src/module/meta/entity.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAoD;AACpD,2EAAsE;AACtE,uFAA0E;AAC1E,sEAAkE;AAClE,6CAAgD;AAChD,2DAAuD;AACvD,wEAA6D;AAC7D,8EAAmE;AACnE,0FAAqF;AACrF,qEAAiE;AACjE,8EAA0E;AAC1E,kEAA8D;AAC9D,8EAA0E;AAC1E,qEAAiE;AACjE,sEAA2D;AAC3D,oFAAwE;AACxE,kFAA6E;AAC7E,yEAAoE;AACpE,gGAA0F;AAC1F,uFAAiF;AACjF,uEAAkE;AAClE,kEAAuD;AACvD,qEAAgE;AAChE,8EAAyE;AACzE,oEAAgE;AAChE,oEAAyD;AACzD,iFAA4E;AAK5E,uEAAkE;AAClE,gFAA2E;AAC3E,gFAA2E;AAC3E,kEAA8D;AAC9D,mFAA8E;AAC9E,uEAAmE;AACnE,2DAAuD;AAIvD,8EAAyE;AACzE,kGAA4F;AAC5F,sFAA0E;AAC1E,qEAAgE;AAChE,8EAA0E;AAC1E,kEAAuD;AACvD,2EAAsE;AACtE,0FAAqF;AACrF,sFAAiF;AACjF,6EAAwE;AACxE,iEAA6D;AAC7D,4EAAiE;AACjE,sFAA0E;AAC1E,+EAA0E;AAC1E,2FAAoF;AACpF,wFAAmF;AACnF,6DAAyD;AACzD,oFAA+E;AAC/E,oFAA+E;AAC/E,kGAA6F;AAC7F,oFAA+E;
|
|
1
|
+
{"version":3,"file":"entity.module.js","sourceRoot":"","sources":["../../../src/module/meta/entity.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAoD;AACpD,2EAAsE;AACtE,uFAA0E;AAC1E,sEAAkE;AAClE,6CAAgD;AAChD,2DAAuD;AACvD,wEAA6D;AAC7D,8EAAmE;AACnE,0FAAqF;AACrF,qEAAiE;AACjE,8EAA0E;AAC1E,kEAA8D;AAC9D,8EAA0E;AAC1E,qEAAiE;AACjE,sEAA2D;AAC3D,oFAAwE;AACxE,kFAA6E;AAC7E,yEAAoE;AACpE,gGAA0F;AAC1F,uFAAiF;AACjF,uEAAkE;AAClE,kEAAuD;AACvD,qEAAgE;AAChE,8EAAyE;AACzE,oEAAgE;AAChE,oEAAyD;AACzD,iFAA4E;AAK5E,uEAAkE;AAClE,gFAA2E;AAC3E,gFAA2E;AAC3E,kEAA8D;AAC9D,mFAA8E;AAC9E,uEAAmE;AACnE,2DAAuD;AAIvD,8EAAyE;AACzE,kGAA4F;AAC5F,sFAA0E;AAC1E,qEAAgE;AAChE,8EAA0E;AAC1E,kEAAuD;AACvD,2EAAsE;AACtE,0FAAqF;AACrF,sFAAiF;AACjF,6EAAwE;AACxE,iEAA6D;AAC7D,4EAAiE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zB,4CAAoB;YACpB,qCAAgB;YAChB,kCAAe;YACf,iDAAsB;SACvB;QACD,OAAO,EAAE;YACP,2CAAmB;YACnB,+CAAiB;YACjB,sCAAiB;YACjB,uCAAiB;YACjB,mDAAuB;YACvB,yCAAkB;YAClB,2CAAmB;YACnB,sDAAwB;YACxB,qCAAgB;YAChB,qDAAmB;YACnB,2DAAsB;YAGtB,mBAAmB;YACnB,iDAAsB;YAGtB,qCAAgB;YAChB,8BAAa;YACb,kCAAe;YACf,6CAAoB;YACpB,eAAe;YACf,uBAAuB;SACxB;QACD,WAAW,EAAE;YACX,oCAAgB;YAChB,oCAAgB;YAChB,kCAAe;YACf,6CAAoB;YACpB,gCAAc;YACd,2CAAmB;YACnB,uDAAyB;YACzB,mDAAuB;YACvB,qDAAwB;YACxB,iDAAsB;YACtB,iDAAsB;SACvB;KACF,CAAC;GACW,YAAY,CAAG"}
|
|
@@ -63,11 +63,11 @@ let AttributeMasterRepository = class AttributeMasterRepository {
|
|
|
63
63
|
}));
|
|
64
64
|
}
|
|
65
65
|
async getTableNameByEntityType(entityType, loggedInUser) {
|
|
66
|
-
const result = await this.dataSource.query(`SELECT db_table_name FROM frm_entity_master WHERE mapped_entity_type =
|
|
66
|
+
const result = await this.dataSource.query(`SELECT db_table_name FROM frm_entity_master WHERE mapped_entity_type = ? AND organization_id = ?`, [entityType, loggedInUser.organization_id]);
|
|
67
67
|
return result.length ? result[0].db_table_name : null;
|
|
68
68
|
}
|
|
69
69
|
async checkIfColumnExists(tableName, columnName) {
|
|
70
|
-
const result = await this.dataSource.query(`SHOW COLUMNS FROM \`${tableName}\` LIKE
|
|
70
|
+
const result = await this.dataSource.query(`SHOW COLUMNS FROM \`${tableName}\` LIKE ?`, [columnName]);
|
|
71
71
|
return result.length > 0;
|
|
72
72
|
}
|
|
73
73
|
async addColumnToTable(tableName, columnName, columnType) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attribute-master.repository.js","sourceRoot":"","sources":["../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AK,CAAC,gBAAgB,CAAC,EAAU;QAC/B,OAAO,MAAM,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACzE,CAAC;IAED,KAAK,CAAC,yBAAyB,CAC7B,UAAkB,EAClB,YAAsB;QAEtB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,yBAAyB,CAAC,IAAI,CAAC;YACrD,KAAK,EAAE;gBACL,kBAAkB,EAAE,UAAU;gBAC9B,eAAe,EAAE,YAAY,CAAC,eAAe;aAC9C;SACF,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;YACzB,KAAK,EAAE,IAAI,CAAC,IAAI;YAChB,KAAK,EAAE,IAAI,CAAC,EAAE;SACf,CAAC,CAAC,CAAC;IACN,CAAC;IAGD,KAAK,CAAC,wBAAwB,CAC5B,UAAkB,EAClB,YAAsB;QAEtB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,CACxC,
|
|
1
|
+
{"version":3,"file":"attribute-master.repository.js","sourceRoot":"","sources":["../../../../src/module/meta/repository/attribute-master.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6CAAmD;AACnD,+EAAoE;AACpE,qCAAqD;AAI9C,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IACpC,YAEmB,yBAAsD,EACtD,UAAsB;QADtB,8BAAyB,GAAzB,yBAAyB,CAA6B;QACtD,eAAU,GAAV,UAAU,CAAY;IACtC,CAAC;IAGJ,KAAK,CAAC,uEAAuE,CAC3E,cAAsB,EACtB,gBAAwB,EACxB,YAAoB,EACpB,cAAsB;QAEtB,OAAO,MAAM,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAAC;YAClD,KAAK,EAAE;gBACL,gBAAgB,EAAE,cAAc;gBAChC,kBAAkB,EAAE,gBAAgB;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