rez_core 3.1.38 → 3.1.40
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/package.json +1 -1
- package/src/core.module.ts +5 -2
- package/src/module/filter/repository/saved-filter.repository.ts +1 -1
- package/src/module/mapper/controller/mapper.controller.ts +1 -1
- package/src/module/mapper/dto/field-mapper.dto.ts +1 -1
- package/dist/app.controller.d.ts +0 -6
- package/dist/app.controller.js +0 -34
- package/dist/app.controller.js.map +0 -1
- package/dist/app.module.d.ts +0 -2
- package/dist/app.module.js +0 -62
- package/dist/app.module.js.map +0 -1
- package/dist/app.service.d.ts +0 -3
- package/dist/app.service.js +0 -20
- package/dist/app.service.js.map +0 -1
- package/dist/config/config.module.d.ts +0 -2
- package/dist/config/config.module.js +0 -29
- package/dist/config/config.module.js.map +0 -1
- package/dist/config/database.config.d.ts +0 -7
- package/dist/config/database.config.js +0 -39
- package/dist/config/database.config.js.map +0 -1
- package/dist/constant/global.constant.d.ts +0 -50
- package/dist/constant/global.constant.js +0 -54
- package/dist/constant/global.constant.js.map +0 -1
- package/dist/core.module.d.ts +0 -4
- package/dist/core.module.js +0 -76
- package/dist/core.module.js.map +0 -1
- package/dist/decorators/roles.decorator.d.ts +0 -1
- package/dist/decorators/roles.decorator.js +0 -7
- package/dist/decorators/roles.decorator.js.map +0 -1
- package/dist/dtos/response.d.ts +0 -5
- package/dist/dtos/response.dto.d.ts +0 -5
- package/dist/dtos/response.dto.js +0 -3
- package/dist/dtos/response.dto.js.map +0 -1
- package/dist/dtos/response.js +0 -3
- package/dist/dtos/response.js.map +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -18
- package/dist/index.js.map +0 -1
- package/dist/main.d.ts +0 -1
- package/dist/main.js +0 -25
- package/dist/main.js.map +0 -1
- package/dist/module/auth/auth.module.d.ts +0 -2
- package/dist/module/auth/auth.module.js +0 -57
- package/dist/module/auth/auth.module.js.map +0 -1
- package/dist/module/auth/controller/auth.controller.d.ts +0 -8
- package/dist/module/auth/controller/auth.controller.js +0 -51
- package/dist/module/auth/controller/auth.controller.js.map +0 -1
- package/dist/module/auth/guards/google-auth.guard.d.ts +0 -6
- package/dist/module/auth/guards/google-auth.guard.js +0 -21
- package/dist/module/auth/guards/google-auth.guard.js.map +0 -1
- package/dist/module/auth/guards/jwt.guard.d.ts +0 -10
- package/dist/module/auth/guards/jwt.guard.js +0 -36
- package/dist/module/auth/guards/jwt.guard.js.map +0 -1
- package/dist/module/auth/guards/role.guard.d.ts +0 -9
- package/dist/module/auth/guards/role.guard.js +0 -59
- package/dist/module/auth/guards/role.guard.js.map +0 -1
- package/dist/module/auth/services/auth.service.d.ts +0 -14
- package/dist/module/auth/services/auth.service.js +0 -39
- package/dist/module/auth/services/auth.service.js.map +0 -1
- package/dist/module/auth/services/jwt.service.d.ts +0 -6
- package/dist/module/auth/services/jwt.service.js +0 -28
- package/dist/module/auth/services/jwt.service.js.map +0 -1
- package/dist/module/auth/strategies/google.strategy.d.ts +0 -10
- package/dist/module/auth/strategies/google.strategy.js +0 -59
- package/dist/module/auth/strategies/google.strategy.js.map +0 -1
- package/dist/module/auth/strategies/jwt.strategy.d.ts +0 -19
- package/dist/module/auth/strategies/jwt.strategy.js +0 -46
- package/dist/module/auth/strategies/jwt.strategy.js.map +0 -1
- package/dist/module/auth/strategies/local.strategy.d.ts +0 -7
- package/dist/module/auth/strategies/local.strategy.js +0 -30
- package/dist/module/auth/strategies/local.strategy.js.map +0 -1
- package/dist/module/dashboard/controller/dashboard.controller.d.ts +0 -33
- package/dist/module/dashboard/controller/dashboard.controller.js +0 -55
- package/dist/module/dashboard/controller/dashboard.controller.js.map +0 -1
- package/dist/module/dashboard/dashboard.module.d.ts +0 -2
- package/dist/module/dashboard/dashboard.module.js +0 -34
- package/dist/module/dashboard/dashboard.module.js.map +0 -1
- package/dist/module/dashboard/entity/dashboard_page_data.entity.d.ts +0 -10
- package/dist/module/dashboard/entity/dashboard_page_data.entity.js +0 -50
- package/dist/module/dashboard/entity/dashboard_page_data.entity.js.map +0 -1
- package/dist/module/dashboard/entity/widget_master.entity.d.ts +0 -7
- package/dist/module/dashboard/entity/widget_master.entity.js +0 -38
- package/dist/module/dashboard/entity/widget_master.entity.js.map +0 -1
- package/dist/module/dashboard/repository/dashboard.repository.d.ts +0 -10
- package/dist/module/dashboard/repository/dashboard.repository.js +0 -50
- package/dist/module/dashboard/repository/dashboard.repository.js.map +0 -1
- package/dist/module/dashboard/service/dashboard.service.d.ts +0 -35
- package/dist/module/dashboard/service/dashboard.service.js +0 -62
- package/dist/module/dashboard/service/dashboard.service.js.map +0 -1
- package/dist/module/dev/dev.module.d.ts +0 -2
- package/dist/module/dev/dev.module.js +0 -25
- package/dist/module/dev/dev.module.js.map +0 -1
- package/dist/module/dev/service/dev.service.d.ts +0 -5
- package/dist/module/dev/service/dev.service.js +0 -25
- package/dist/module/dev/service/dev.service.js.map +0 -1
- package/dist/module/enterprise/controller/organization.controller.d.ts +0 -14
- package/dist/module/enterprise/controller/organization.controller.js +0 -59
- package/dist/module/enterprise/controller/organization.controller.js.map +0 -1
- package/dist/module/enterprise/enterprise.module.d.ts +0 -2
- package/dist/module/enterprise/enterprise.module.js +0 -43
- package/dist/module/enterprise/enterprise.module.js.map +0 -1
- package/dist/module/enterprise/entity/enterprise.entity.d.ts +0 -13
- package/dist/module/enterprise/entity/enterprise.entity.js +0 -64
- package/dist/module/enterprise/entity/enterprise.entity.js.map +0 -1
- package/dist/module/enterprise/entity/organization-app-mapping.entity.d.ts +0 -5
- package/dist/module/enterprise/entity/organization-app-mapping.entity.js +0 -32
- package/dist/module/enterprise/entity/organization-app-mapping.entity.js.map +0 -1
- package/dist/module/enterprise/entity/organization.entity.d.ts +0 -30
- package/dist/module/enterprise/entity/organization.entity.js +0 -136
- package/dist/module/enterprise/entity/organization.entity.js.map +0 -1
- package/dist/module/enterprise/repository/enterprise.repository.d.ts +0 -8
- package/dist/module/enterprise/repository/enterprise.repository.js +0 -48
- package/dist/module/enterprise/repository/enterprise.repository.js.map +0 -1
- package/dist/module/enterprise/repository/organization.repository.d.ts +0 -8
- package/dist/module/enterprise/repository/organization.repository.js +0 -41
- package/dist/module/enterprise/repository/organization.repository.js.map +0 -1
- package/dist/module/enterprise/repository/school.repository.d.ts +0 -8
- package/dist/module/enterprise/repository/school.repository.js +0 -245
- package/dist/module/enterprise/repository/school.repository.js.map +0 -1
- package/dist/module/enterprise/service/brand.service.d.ts +0 -3
- package/dist/module/enterprise/service/brand.service.js +0 -18
- package/dist/module/enterprise/service/brand.service.js.map +0 -1
- package/dist/module/enterprise/service/enterprise.service.d.ts +0 -8
- package/dist/module/enterprise/service/enterprise.service.js +0 -31
- package/dist/module/enterprise/service/enterprise.service.js.map +0 -1
- package/dist/module/enterprise/service/organization-app-mapping.service.d.ts +0 -2
- package/dist/module/enterprise/service/organization-app-mapping.service.js +0 -17
- package/dist/module/enterprise/service/organization-app-mapping.service.js.map +0 -1
- package/dist/module/enterprise/service/organization.service.d.ts +0 -19
- package/dist/module/enterprise/service/organization.service.js +0 -121
- package/dist/module/enterprise/service/organization.service.js.map +0 -1
- package/dist/module/filter/controller/filter.controller.d.ts +0 -39
- package/dist/module/filter/controller/filter.controller.js +0 -91
- package/dist/module/filter/controller/filter.controller.js.map +0 -1
- package/dist/module/filter/dto/filter-request.dto.d.ts +0 -35
- package/dist/module/filter/dto/filter-request.dto.js +0 -3
- package/dist/module/filter/dto/filter-request.dto.js.map +0 -1
- package/dist/module/filter/entity/saved-filter-detail.entity.d.ts +0 -14
- package/dist/module/filter/entity/saved-filter-detail.entity.js +0 -67
- package/dist/module/filter/entity/saved-filter-detail.entity.js.map +0 -1
- package/dist/module/filter/entity/saved-filter-master.entity.d.ts +0 -8
- package/dist/module/filter/entity/saved-filter-master.entity.js +0 -43
- package/dist/module/filter/entity/saved-filter-master.entity.js.map +0 -1
- package/dist/module/filter/filter.module.d.ts +0 -2
- package/dist/module/filter/filter.module.js +0 -44
- package/dist/module/filter/filter.module.js.map +0 -1
- package/dist/module/filter/repository/saved-filter.repository.d.ts +0 -38
- package/dist/module/filter/repository/saved-filter.repository.js +0 -144
- package/dist/module/filter/repository/saved-filter.repository.js.map +0 -1
- package/dist/module/filter/service/filter-evaluator.service.d.ts +0 -9
- package/dist/module/filter/service/filter-evaluator.service.js +0 -62
- package/dist/module/filter/service/filter-evaluator.service.js.map +0 -1
- package/dist/module/filter/service/filter.service.d.ts +0 -66
- package/dist/module/filter/service/filter.service.js +0 -641
- package/dist/module/filter/service/filter.service.js.map +0 -1
- package/dist/module/filter/service/saved-filter.service.d.ts +0 -30
- package/dist/module/filter/service/saved-filter.service.js +0 -125
- package/dist/module/filter/service/saved-filter.service.js.map +0 -1
- package/dist/module/ics/controller/ics.controller.d.ts +0 -8
- package/dist/module/ics/controller/ics.controller.js +0 -45
- package/dist/module/ics/controller/ics.controller.js.map +0 -1
- package/dist/module/ics/dto/ics.dto.d.ts +0 -17
- package/dist/module/ics/dto/ics.dto.js +0 -73
- package/dist/module/ics/dto/ics.dto.js.map +0 -1
- package/dist/module/ics/ics.module.d.ts +0 -2
- package/dist/module/ics/ics.module.js +0 -26
- package/dist/module/ics/ics.module.js.map +0 -1
- package/dist/module/ics/service/ics.service.d.ts +0 -4
- package/dist/module/ics/service/ics.service.js +0 -61
- package/dist/module/ics/service/ics.service.js.map +0 -1
- package/dist/module/integration/controller/calender-event.controller.d.ts +0 -7
- package/dist/module/integration/controller/calender-event.controller.js +0 -51
- package/dist/module/integration/controller/calender-event.controller.js.map +0 -1
- package/dist/module/integration/controller/integration.controller.d.ts +0 -139
- package/dist/module/integration/controller/integration.controller.js +0 -540
- package/dist/module/integration/controller/integration.controller.js.map +0 -1
- package/dist/module/integration/controller/wrapper.controller.d.ts +0 -23
- package/dist/module/integration/controller/wrapper.controller.js +0 -56
- package/dist/module/integration/controller/wrapper.controller.js.map +0 -1
- package/dist/module/integration/dto/create-config.dto.d.ts +0 -208
- package/dist/module/integration/dto/create-config.dto.js +0 -461
- package/dist/module/integration/dto/create-config.dto.js.map +0 -1
- package/dist/module/integration/entity/integration-config.entity.d.ts +0 -54
- package/dist/module/integration/entity/integration-config.entity.js +0 -78
- package/dist/module/integration/entity/integration-config.entity.js.map +0 -1
- package/dist/module/integration/entity/integration-ivr-mapper.entity.d.ts +0 -6
- package/dist/module/integration/entity/integration-ivr-mapper.entity.js +0 -33
- package/dist/module/integration/entity/integration-ivr-mapper.entity.js.map +0 -1
- package/dist/module/integration/entity/integration-source.entity.d.ts +0 -7
- package/dist/module/integration/entity/integration-source.entity.js +0 -37
- package/dist/module/integration/entity/integration-source.entity.js.map +0 -1
- package/dist/module/integration/entity/user-integration.entity.d.ts +0 -23
- package/dist/module/integration/entity/user-integration.entity.js +0 -70
- package/dist/module/integration/entity/user-integration.entity.js.map +0 -1
- package/dist/module/integration/examples/usage.example.d.ts +0 -16
- package/dist/module/integration/examples/usage.example.js +0 -217
- package/dist/module/integration/examples/usage.example.js.map +0 -1
- package/dist/module/integration/factories/base.factory.d.ts +0 -9
- package/dist/module/integration/factories/base.factory.js +0 -3
- package/dist/module/integration/factories/base.factory.js.map +0 -1
- package/dist/module/integration/factories/email.factory.d.ts +0 -17
- package/dist/module/integration/factories/email.factory.js +0 -55
- package/dist/module/integration/factories/email.factory.js.map +0 -1
- package/dist/module/integration/factories/integration.factory.d.ts +0 -33
- package/dist/module/integration/factories/integration.factory.js +0 -104
- package/dist/module/integration/factories/integration.factory.js.map +0 -1
- package/dist/module/integration/factories/sms.factory.d.ts +0 -17
- package/dist/module/integration/factories/sms.factory.js +0 -58
- package/dist/module/integration/factories/sms.factory.js.map +0 -1
- package/dist/module/integration/factories/telephone.factory.d.ts +0 -15
- package/dist/module/integration/factories/telephone.factory.js +0 -49
- package/dist/module/integration/factories/telephone.factory.js.map +0 -1
- package/dist/module/integration/factories/whatsapp.factory.d.ts +0 -19
- package/dist/module/integration/factories/whatsapp.factory.js +0 -63
- package/dist/module/integration/factories/whatsapp.factory.js.map +0 -1
- package/dist/module/integration/integration.module.d.ts +0 -2
- package/dist/module/integration/integration.module.js +0 -87
- package/dist/module/integration/integration.module.js.map +0 -1
- package/dist/module/integration/service/calendar-event.service.d.ts +0 -8
- package/dist/module/integration/service/calendar-event.service.js +0 -101
- package/dist/module/integration/service/calendar-event.service.js.map +0 -1
- package/dist/module/integration/service/integration-queue.service.d.ts +0 -40
- package/dist/module/integration/service/integration-queue.service.js +0 -147
- package/dist/module/integration/service/integration-queue.service.js.map +0 -1
- package/dist/module/integration/service/integration.service.d.ts +0 -165
- package/dist/module/integration/service/integration.service.js +0 -1362
- package/dist/module/integration/service/integration.service.js.map +0 -1
- package/dist/module/integration/service/oauth.service.d.ts +0 -18
- package/dist/module/integration/service/oauth.service.js +0 -190
- package/dist/module/integration/service/oauth.service.js.map +0 -1
- package/dist/module/integration/service/wrapper.service.d.ts +0 -32
- package/dist/module/integration/service/wrapper.service.js +0 -253
- package/dist/module/integration/service/wrapper.service.js.map +0 -1
- package/dist/module/integration/strategies/email/gmail-api.strategy.d.ts +0 -13
- package/dist/module/integration/strategies/email/gmail-api.strategy.js +0 -198
- package/dist/module/integration/strategies/email/gmail-api.strategy.js.map +0 -1
- package/dist/module/integration/strategies/email/outlook-api.strategy.d.ts +0 -5
- package/dist/module/integration/strategies/email/outlook-api.strategy.js +0 -44
- package/dist/module/integration/strategies/email/outlook-api.strategy.js.map +0 -1
- package/dist/module/integration/strategies/email/outlook.strategy.d.ts +0 -5
- package/dist/module/integration/strategies/email/outlook.strategy.js +0 -64
- package/dist/module/integration/strategies/email/outlook.strategy.js.map +0 -1
- package/dist/module/integration/strategies/email/sendgrid-api.strategy.d.ts +0 -22
- package/dist/module/integration/strategies/email/sendgrid-api.strategy.js +0 -203
- package/dist/module/integration/strategies/email/sendgrid-api.strategy.js.map +0 -1
- package/dist/module/integration/strategies/integration.strategy.d.ts +0 -30
- package/dist/module/integration/strategies/integration.strategy.js +0 -40
- package/dist/module/integration/strategies/integration.strategy.js.map +0 -1
- package/dist/module/integration/strategies/sms/gupshup-sms.strategy.d.ts +0 -9
- package/dist/module/integration/strategies/sms/gupshup-sms.strategy.js +0 -104
- package/dist/module/integration/strategies/sms/gupshup-sms.strategy.js.map +0 -1
- package/dist/module/integration/strategies/sms/msg91-sms.strategy.d.ts +0 -9
- package/dist/module/integration/strategies/sms/msg91-sms.strategy.js +0 -113
- package/dist/module/integration/strategies/sms/msg91-sms.strategy.js.map +0 -1
- package/dist/module/integration/strategies/sms/tubelight-sms.strategy.d.ts +0 -9
- package/dist/module/integration/strategies/sms/tubelight-sms.strategy.js +0 -109
- package/dist/module/integration/strategies/sms/tubelight-sms.strategy.js.map +0 -1
- package/dist/module/integration/strategies/telephone/ozonetel-voice.strategy.d.ts +0 -22
- package/dist/module/integration/strategies/telephone/ozonetel-voice.strategy.js +0 -162
- package/dist/module/integration/strategies/telephone/ozonetel-voice.strategy.js.map +0 -1
- package/dist/module/integration/strategies/telephone/tubelight-voice.strategy.d.ts +0 -17
- package/dist/module/integration/strategies/telephone/tubelight-voice.strategy.js +0 -100
- package/dist/module/integration/strategies/telephone/tubelight-voice.strategy.js.map +0 -1
- package/dist/module/integration/strategies/whatsapp/gupshup-whatsapp.strategy.d.ts +0 -19
- package/dist/module/integration/strategies/whatsapp/gupshup-whatsapp.strategy.js +0 -257
- package/dist/module/integration/strategies/whatsapp/gupshup-whatsapp.strategy.js.map +0 -1
- package/dist/module/integration/strategies/whatsapp/tubelight-whatsapp.strategy.d.ts +0 -22
- package/dist/module/integration/strategies/whatsapp/tubelight-whatsapp.strategy.js +0 -295
- package/dist/module/integration/strategies/whatsapp/tubelight-whatsapp.strategy.js.map +0 -1
- package/dist/module/integration/strategies/whatsapp/whatsapp-cloud.strategy.d.ts +0 -20
- package/dist/module/integration/strategies/whatsapp/whatsapp-cloud.strategy.js +0 -264
- package/dist/module/integration/strategies/whatsapp/whatsapp-cloud.strategy.js.map +0 -1
- package/dist/module/integration/strategies/whatsapp/whatsapp.strategy.d.ts +0 -5
- package/dist/module/integration/strategies/whatsapp/whatsapp.strategy.js +0 -57
- package/dist/module/integration/strategies/whatsapp/whatsapp.strategy.js.map +0 -1
- package/dist/module/layout/controller/layout.controller.d.ts +0 -11
- package/dist/module/layout/controller/layout.controller.js +0 -59
- package/dist/module/layout/controller/layout.controller.js.map +0 -1
- package/dist/module/layout/dto/header.dto.d.ts +0 -0
- package/dist/module/layout/dto/header.dto.js +0 -1
- package/dist/module/layout/dto/header.dto.js.map +0 -1
- package/dist/module/layout/entity/header-items.entity.d.ts +0 -10
- package/dist/module/layout/entity/header-items.entity.js +0 -52
- package/dist/module/layout/entity/header-items.entity.js.map +0 -1
- package/dist/module/layout/entity/header-section.entity.d.ts +0 -7
- package/dist/module/layout/entity/header-section.entity.js +0 -40
- package/dist/module/layout/entity/header-section.entity.js.map +0 -1
- package/dist/module/layout/layout.module.d.ts +0 -2
- package/dist/module/layout/layout.module.js +0 -34
- package/dist/module/layout/layout.module.js.map +0 -1
- package/dist/module/layout/repository/header-items.repository.d.ts +0 -7
- package/dist/module/layout/repository/header-items.repository.js +0 -36
- package/dist/module/layout/repository/header-items.repository.js.map +0 -1
- package/dist/module/layout/repository/header-section.repository.d.ts +0 -8
- package/dist/module/layout/repository/header-section.repository.js +0 -39
- package/dist/module/layout/repository/header-section.repository.js.map +0 -1
- package/dist/module/layout/service/header-section.service.d.ts +0 -8
- package/dist/module/layout/service/header-section.service.js +0 -37
- package/dist/module/layout/service/header-section.service.js.map +0 -1
- package/dist/module/layout_preference/controller/layout_preference.controller.d.ts +0 -13
- package/dist/module/layout_preference/controller/layout_preference.controller.js +0 -59
- package/dist/module/layout_preference/controller/layout_preference.controller.js.map +0 -1
- package/dist/module/layout_preference/dto/layout_preference.dto.d.ts +0 -0
- package/dist/module/layout_preference/dto/layout_preference.dto.js +0 -1
- package/dist/module/layout_preference/dto/layout_preference.dto.js.map +0 -1
- package/dist/module/layout_preference/entity/layout_preference.entity.d.ts +0 -9
- package/dist/module/layout_preference/entity/layout_preference.entity.js +0 -50
- package/dist/module/layout_preference/entity/layout_preference.entity.js.map +0 -1
- package/dist/module/layout_preference/layout_preference.module.d.ts +0 -2
- package/dist/module/layout_preference/layout_preference.module.js +0 -31
- package/dist/module/layout_preference/layout_preference.module.js.map +0 -1
- package/dist/module/layout_preference/repository/layout_preference.repository.d.ts +0 -7
- package/dist/module/layout_preference/repository/layout_preference.repository.js +0 -42
- package/dist/module/layout_preference/repository/layout_preference.repository.js.map +0 -1
- package/dist/module/layout_preference/service/layout_preference.service.d.ts +0 -15
- package/dist/module/layout_preference/service/layout_preference.service.js +0 -99
- package/dist/module/layout_preference/service/layout_preference.service.js.map +0 -1
- package/dist/module/lead/controller/lead.controller.d.ts +0 -20
- package/dist/module/lead/controller/lead.controller.js +0 -58
- package/dist/module/lead/controller/lead.controller.js.map +0 -1
- package/dist/module/lead/lead.module.d.ts +0 -2
- package/dist/module/lead/lead.module.js +0 -26
- package/dist/module/lead/lead.module.js.map +0 -1
- package/dist/module/lead/repository/lead.repository.d.ts +0 -10
- package/dist/module/lead/repository/lead.repository.js +0 -53
- package/dist/module/lead/repository/lead.repository.js.map +0 -1
- package/dist/module/lead/service/lead.service.d.ts +0 -20
- package/dist/module/lead/service/lead.service.js +0 -55
- package/dist/module/lead/service/lead.service.js.map +0 -1
- package/dist/module/listmaster/controller/list-master.controller.d.ts +0 -24
- package/dist/module/listmaster/controller/list-master.controller.js +0 -124
- package/dist/module/listmaster/controller/list-master.controller.js.map +0 -1
- package/dist/module/listmaster/entity/list-master-items.entity.d.ts +0 -14
- package/dist/module/listmaster/entity/list-master-items.entity.js +0 -67
- package/dist/module/listmaster/entity/list-master-items.entity.js.map +0 -1
- package/dist/module/listmaster/entity/list-master.entity.d.ts +0 -11
- package/dist/module/listmaster/entity/list-master.entity.js +0 -55
- package/dist/module/listmaster/entity/list-master.entity.js.map +0 -1
- package/dist/module/listmaster/listmaster.module.d.ts +0 -2
- package/dist/module/listmaster/listmaster.module.js +0 -43
- package/dist/module/listmaster/listmaster.module.js.map +0 -1
- package/dist/module/listmaster/repository/list-master-items.repository.d.ts +0 -21
- package/dist/module/listmaster/repository/list-master-items.repository.js +0 -142
- package/dist/module/listmaster/repository/list-master-items.repository.js.map +0 -1
- package/dist/module/listmaster/repository/list-master.repository.d.ts +0 -9
- package/dist/module/listmaster/repository/list-master.repository.js +0 -53
- package/dist/module/listmaster/repository/list-master.repository.js.map +0 -1
- package/dist/module/listmaster/service/list-master-item.service.d.ts +0 -19
- package/dist/module/listmaster/service/list-master-item.service.js +0 -151
- package/dist/module/listmaster/service/list-master-item.service.js.map +0 -1
- package/dist/module/listmaster/service/list-master.service.d.ts +0 -32
- package/dist/module/listmaster/service/list-master.service.js +0 -228
- package/dist/module/listmaster/service/list-master.service.js.map +0 -1
- package/dist/module/mapper/controller/field-mapper.controller.d.ts +0 -7
- package/dist/module/mapper/controller/field-mapper.controller.js +0 -58
- package/dist/module/mapper/controller/field-mapper.controller.js.map +0 -1
- package/dist/module/mapper/controller/mapper.controller.d.ts +0 -6
- package/dist/module/mapper/controller/mapper.controller.js +0 -39
- package/dist/module/mapper/controller/mapper.controller.js.map +0 -1
- package/dist/module/mapper/dto/field-mapper.dto.d.ts +0 -11
- package/dist/module/mapper/dto/field-mapper.dto.js +0 -8
- package/dist/module/mapper/dto/field-mapper.dto.js.map +0 -1
- package/dist/module/mapper/entity/field-lovs.entity.d.ts +0 -7
- package/dist/module/mapper/entity/field-lovs.entity.js +0 -38
- package/dist/module/mapper/entity/field-lovs.entity.js.map +0 -1
- package/dist/module/mapper/entity/field-mapper.entity.d.ts +0 -12
- package/dist/module/mapper/entity/field-mapper.entity.js +0 -58
- package/dist/module/mapper/entity/field-mapper.entity.js.map +0 -1
- package/dist/module/mapper/entity/mapper.entity.d.ts +0 -6
- package/dist/module/mapper/entity/mapper.entity.js +0 -34
- package/dist/module/mapper/entity/mapper.entity.js.map +0 -1
- package/dist/module/mapper/mapper.module.d.ts +0 -2
- package/dist/module/mapper/mapper.module.js +0 -42
- package/dist/module/mapper/mapper.module.js.map +0 -1
- package/dist/module/mapper/repository/field-lovs.repository.d.ts +0 -8
- package/dist/module/mapper/repository/field-lovs.repository.js +0 -41
- package/dist/module/mapper/repository/field-lovs.repository.js.map +0 -1
- package/dist/module/mapper/repository/field-mapper.repository.d.ts +0 -9
- package/dist/module/mapper/repository/field-mapper.repository.js +0 -42
- package/dist/module/mapper/repository/field-mapper.repository.js.map +0 -1
- package/dist/module/mapper/service/field-mapper.service.d.ts +0 -20
- package/dist/module/mapper/service/field-mapper.service.js +0 -140
- package/dist/module/mapper/service/field-mapper.service.js.map +0 -1
- package/dist/module/mapper/service/mapper.service.d.ts +0 -7
- package/dist/module/mapper/service/mapper.service.js +0 -40
- package/dist/module/mapper/service/mapper.service.js.map +0 -1
- package/dist/module/master/controller/master.controller.d.ts +0 -20
- package/dist/module/master/controller/master.controller.js +0 -82
- package/dist/module/master/controller/master.controller.js.map +0 -1
- package/dist/module/master/service/master.service.d.ts +0 -31
- package/dist/module/master/service/master.service.js +0 -366
- package/dist/module/master/service/master.service.js.map +0 -1
- package/dist/module/meta/controller/app-master.controller.d.ts +0 -9
- package/dist/module/meta/controller/app-master.controller.js +0 -51
- package/dist/module/meta/controller/app-master.controller.js.map +0 -1
- package/dist/module/meta/controller/attribute-master.controller.d.ts +0 -21
- package/dist/module/meta/controller/attribute-master.controller.js +0 -78
- package/dist/module/meta/controller/attribute-master.controller.js.map +0 -1
- package/dist/module/meta/controller/entity-dynamic.controller.d.ts +0 -18
- package/dist/module/meta/controller/entity-dynamic.controller.js +0 -102
- package/dist/module/meta/controller/entity-dynamic.controller.js.map +0 -1
- package/dist/module/meta/controller/entity-master.controller.d.ts +0 -8
- package/dist/module/meta/controller/entity-master.controller.js +0 -44
- package/dist/module/meta/controller/entity-master.controller.js.map +0 -1
- package/dist/module/meta/controller/entity-relation.controller.d.ts +0 -6
- package/dist/module/meta/controller/entity-relation.controller.js +0 -45
- package/dist/module/meta/controller/entity-relation.controller.js.map +0 -1
- package/dist/module/meta/controller/entity.controller.d.ts +0 -38
- package/dist/module/meta/controller/entity.controller.js +0 -245
- package/dist/module/meta/controller/entity.controller.js.map +0 -1
- package/dist/module/meta/controller/media.controller.d.ts +0 -17
- package/dist/module/meta/controller/media.controller.js +0 -79
- package/dist/module/meta/controller/media.controller.js.map +0 -1
- package/dist/module/meta/controller/meta.controller.d.ts +0 -19
- package/dist/module/meta/controller/meta.controller.js +0 -87
- package/dist/module/meta/controller/meta.controller.js.map +0 -1
- package/dist/module/meta/controller/view-master.controller.d.ts +0 -12
- package/dist/module/meta/controller/view-master.controller.js +0 -87
- package/dist/module/meta/controller/view-master.controller.js.map +0 -1
- package/dist/module/meta/dto/entity-list-data.dto.d.ts +0 -5
- package/dist/module/meta/dto/entity-list-data.dto.js +0 -7
- package/dist/module/meta/dto/entity-list-data.dto.js.map +0 -1
- package/dist/module/meta/dto/entity-tab.dto.d.ts +0 -4
- package/dist/module/meta/dto/entity-tab.dto.js +0 -7
- package/dist/module/meta/dto/entity-tab.dto.js.map +0 -1
- package/dist/module/meta/dto/entity-table.dto.d.ts +0 -11
- package/dist/module/meta/dto/entity-table.dto.js +0 -8
- package/dist/module/meta/dto/entity-table.dto.js.map +0 -1
- package/dist/module/meta/entity/app-master.entity.d.ts +0 -12
- package/dist/module/meta/entity/app-master.entity.js +0 -58
- package/dist/module/meta/entity/app-master.entity.js.map +0 -1
- package/dist/module/meta/entity/attribute-master.entity.d.ts +0 -21
- package/dist/module/meta/entity/attribute-master.entity.js +0 -118
- package/dist/module/meta/entity/attribute-master.entity.js.map +0 -1
- package/dist/module/meta/entity/base-entity.entity.d.ts +0 -19
- package/dist/module/meta/entity/base-entity.entity.js +0 -104
- package/dist/module/meta/entity/base-entity.entity.js.map +0 -1
- package/dist/module/meta/entity/entity-master.entity.d.ts +0 -18
- package/dist/module/meta/entity/entity-master.entity.js +0 -108
- package/dist/module/meta/entity/entity-master.entity.js.map +0 -1
- package/dist/module/meta/entity/entity-relation-data.entity.d.ts +0 -10
- package/dist/module/meta/entity/entity-relation-data.entity.js +0 -51
- package/dist/module/meta/entity/entity-relation-data.entity.js.map +0 -1
- package/dist/module/meta/entity/entity-relation.entity.d.ts +0 -8
- package/dist/module/meta/entity/entity-relation.entity.js +0 -43
- package/dist/module/meta/entity/entity-relation.entity.js.map +0 -1
- package/dist/module/meta/entity/entity-table-column.entity.d.ts +0 -19
- package/dist/module/meta/entity/entity-table-column.entity.js +0 -92
- package/dist/module/meta/entity/entity-table-column.entity.js.map +0 -1
- package/dist/module/meta/entity/entity-table.entity.d.ts +0 -17
- package/dist/module/meta/entity/entity-table.entity.js +0 -79
- package/dist/module/meta/entity/entity-table.entity.js.map +0 -1
- package/dist/module/meta/entity/media-data.entity.d.ts +0 -11
- package/dist/module/meta/entity/media-data.entity.js +0 -55
- package/dist/module/meta/entity/media-data.entity.js.map +0 -1
- package/dist/module/meta/entity/preference.entity.d.ts +0 -11
- package/dist/module/meta/entity/preference.entity.js +0 -85
- package/dist/module/meta/entity/preference.entity.js.map +0 -1
- package/dist/module/meta/entity/view-master.entity.d.ts +0 -14
- package/dist/module/meta/entity/view-master.entity.js +0 -67
- package/dist/module/meta/entity/view-master.entity.js.map +0 -1
- package/dist/module/meta/entity.module.d.ts +0 -2
- package/dist/module/meta/entity.module.js +0 -153
- package/dist/module/meta/entity.module.js.map +0 -1
- package/dist/module/meta/repository/app-master.repository.d.ts +0 -7
- package/dist/module/meta/repository/app-master.repository.js +0 -36
- package/dist/module/meta/repository/app-master.repository.js.map +0 -1
- package/dist/module/meta/repository/attribute-master.repository.d.ts +0 -20
- package/dist/module/meta/repository/attribute-master.repository.js +0 -85
- package/dist/module/meta/repository/attribute-master.repository.js.map +0 -1
- package/dist/module/meta/repository/entity-master.repository.d.ts +0 -9
- package/dist/module/meta/repository/entity-master.repository.js +0 -44
- package/dist/module/meta/repository/entity-master.repository.js.map +0 -1
- package/dist/module/meta/repository/entity-table-column.repository.d.ts +0 -7
- package/dist/module/meta/repository/entity-table-column.repository.js +0 -52
- package/dist/module/meta/repository/entity-table-column.repository.js.map +0 -1
- package/dist/module/meta/repository/entity-table.repository.d.ts +0 -9
- package/dist/module/meta/repository/entity-table.repository.js +0 -60
- package/dist/module/meta/repository/entity-table.repository.js.map +0 -1
- package/dist/module/meta/repository/media-data.repository.d.ts +0 -9
- package/dist/module/meta/repository/media-data.repository.js +0 -55
- package/dist/module/meta/repository/media-data.repository.js.map +0 -1
- package/dist/module/meta/repository/preference.repository.d.ts +0 -7
- package/dist/module/meta/repository/preference.repository.js +0 -36
- package/dist/module/meta/repository/preference.repository.js.map +0 -1
- package/dist/module/meta/repository/user-app-mapping.repository.d.ts +0 -0
- package/dist/module/meta/repository/user-app-mapping.repository.js +0 -1
- package/dist/module/meta/repository/user-app-mapping.repository.js.map +0 -1
- package/dist/module/meta/repository/view-master.repository.d.ts +0 -11
- package/dist/module/meta/repository/view-master.repository.js +0 -50
- package/dist/module/meta/repository/view-master.repository.js.map +0 -1
- package/dist/module/meta/service/app-master.service.d.ts +0 -8
- package/dist/module/meta/service/app-master.service.js +0 -45
- package/dist/module/meta/service/app-master.service.js.map +0 -1
- package/dist/module/meta/service/attribute-master.service.d.ts +0 -16
- package/dist/module/meta/service/attribute-master.service.js +0 -75
- package/dist/module/meta/service/attribute-master.service.js.map +0 -1
- package/dist/module/meta/service/common.service.d.ts +0 -4
- package/dist/module/meta/service/common.service.js +0 -25
- package/dist/module/meta/service/common.service.js.map +0 -1
- package/dist/module/meta/service/entity-dynamic.service.d.ts +0 -19
- package/dist/module/meta/service/entity-dynamic.service.js +0 -395
- package/dist/module/meta/service/entity-dynamic.service.js.map +0 -1
- package/dist/module/meta/service/entity-list.service.d.ts +0 -17
- package/dist/module/meta/service/entity-list.service.js +0 -141
- package/dist/module/meta/service/entity-list.service.js.map +0 -1
- package/dist/module/meta/service/entity-master.service.d.ts +0 -20
- package/dist/module/meta/service/entity-master.service.js +0 -106
- package/dist/module/meta/service/entity-master.service.js.map +0 -1
- package/dist/module/meta/service/entity-realation-data.service.d.ts +0 -4
- package/dist/module/meta/service/entity-realation-data.service.js +0 -25
- package/dist/module/meta/service/entity-realation-data.service.js.map +0 -1
- package/dist/module/meta/service/entity-relation.service.d.ts +0 -8
- package/dist/module/meta/service/entity-relation.service.js +0 -58
- package/dist/module/meta/service/entity-relation.service.js.map +0 -1
- package/dist/module/meta/service/entity-service-impl.service.d.ts +0 -42
- package/dist/module/meta/service/entity-service-impl.service.js +0 -267
- package/dist/module/meta/service/entity-service-impl.service.js.map +0 -1
- package/dist/module/meta/service/entity-table-column.service.d.ts +0 -7
- package/dist/module/meta/service/entity-table-column.service.js +0 -37
- package/dist/module/meta/service/entity-table-column.service.js.map +0 -1
- package/dist/module/meta/service/entity-table.service.d.ts +0 -17
- package/dist/module/meta/service/entity-table.service.js +0 -86
- package/dist/module/meta/service/entity-table.service.js.map +0 -1
- package/dist/module/meta/service/entity-validation.service.d.ts +0 -21
- package/dist/module/meta/service/entity-validation.service.js +0 -117
- package/dist/module/meta/service/entity-validation.service.js.map +0 -1
- package/dist/module/meta/service/entity.service.d.ts +0 -15
- package/dist/module/meta/service/entity.service.js +0 -3
- package/dist/module/meta/service/entity.service.js.map +0 -1
- package/dist/module/meta/service/field-group.service.d.ts +0 -26
- package/dist/module/meta/service/field-group.service.js +0 -78
- package/dist/module/meta/service/field-group.service.js.map +0 -1
- package/dist/module/meta/service/media-data.service.d.ts +0 -29
- package/dist/module/meta/service/media-data.service.js +0 -108
- package/dist/module/meta/service/media-data.service.js.map +0 -1
- package/dist/module/meta/service/populate-meta.service.d.ts +0 -11
- package/dist/module/meta/service/populate-meta.service.js +0 -108
- package/dist/module/meta/service/populate-meta.service.js.map +0 -1
- package/dist/module/meta/service/preference.service.d.ts +0 -7
- package/dist/module/meta/service/preference.service.js +0 -31
- package/dist/module/meta/service/preference.service.js.map +0 -1
- package/dist/module/meta/service/resolver.service.d.ts +0 -9
- package/dist/module/meta/service/resolver.service.js +0 -168
- package/dist/module/meta/service/resolver.service.js.map +0 -1
- package/dist/module/meta/service/section-master.service.d.ts +0 -26
- package/dist/module/meta/service/section-master.service.js +0 -77
- package/dist/module/meta/service/section-master.service.js.map +0 -1
- package/dist/module/meta/service/update-form-json.service.d.ts +0 -9
- package/dist/module/meta/service/update-form-json.service.js +0 -39
- package/dist/module/meta/service/update-form-json.service.js.map +0 -1
- package/dist/module/meta/service/user-app-mapping.service.d.ts +0 -0
- package/dist/module/meta/service/user-app-mapping.service.js +0 -1
- package/dist/module/meta/service/user-app-mapping.service.js.map +0 -1
- package/dist/module/meta/service/view-master.service.d.ts +0 -26
- package/dist/module/meta/service/view-master.service.js +0 -58
- package/dist/module/meta/service/view-master.service.js.map +0 -1
- package/dist/module/module/controller/menu.controller.d.ts +0 -8
- package/dist/module/module/controller/menu.controller.js +0 -41
- package/dist/module/module/controller/menu.controller.js.map +0 -1
- package/dist/module/module/controller/module-access.controller.d.ts +0 -35
- package/dist/module/module/controller/module-access.controller.js +0 -148
- package/dist/module/module/controller/module-access.controller.js.map +0 -1
- package/dist/module/module/entity/menu.entity.d.ts +0 -15
- package/dist/module/module/entity/menu.entity.js +0 -72
- package/dist/module/module/entity/menu.entity.js.map +0 -1
- package/dist/module/module/entity/module-access.entity.d.ts +0 -9
- package/dist/module/module/entity/module-access.entity.js +0 -48
- package/dist/module/module/entity/module-access.entity.js.map +0 -1
- package/dist/module/module/entity/module-action.entity.d.ts +0 -6
- package/dist/module/module/entity/module-action.entity.js +0 -37
- package/dist/module/module/entity/module-action.entity.js.map +0 -1
- package/dist/module/module/entity/module.entity.d.ts +0 -18
- package/dist/module/module/entity/module.entity.js +0 -84
- package/dist/module/module/entity/module.entity.js.map +0 -1
- package/dist/module/module/module.module.d.ts +0 -2
- package/dist/module/module/module.module.js +0 -55
- package/dist/module/module/module.module.js.map +0 -1
- package/dist/module/module/repository/menu.repository.d.ts +0 -11
- package/dist/module/module/repository/menu.repository.js +0 -152
- package/dist/module/module/repository/menu.repository.js.map +0 -1
- package/dist/module/module/repository/module-access.repository.d.ts +0 -51
- package/dist/module/module/repository/module-access.repository.js +0 -271
- package/dist/module/module/repository/module-access.repository.js.map +0 -1
- package/dist/module/module/service/menu.service.d.ts +0 -12
- package/dist/module/module/service/menu.service.js +0 -59
- package/dist/module/module/service/menu.service.js.map +0 -1
- package/dist/module/module/service/module-access.service.d.ts +0 -60
- package/dist/module/module/service/module-access.service.js +0 -119
- package/dist/module/module/service/module-access.service.js.map +0 -1
- package/dist/module/notification/controller/notification.controller.d.ts +0 -23
- package/dist/module/notification/controller/notification.controller.js +0 -74
- package/dist/module/notification/controller/notification.controller.js.map +0 -1
- package/dist/module/notification/controller/otp.controller.d.ts +0 -53
- package/dist/module/notification/controller/otp.controller.js +0 -103
- package/dist/module/notification/controller/otp.controller.js.map +0 -1
- package/dist/module/notification/entity/notification.entity.d.ts +0 -9
- package/dist/module/notification/entity/notification.entity.js +0 -45
- package/dist/module/notification/entity/notification.entity.js.map +0 -1
- package/dist/module/notification/entity/otp.entity.d.ts +0 -10
- package/dist/module/notification/entity/otp.entity.js +0 -52
- package/dist/module/notification/entity/otp.entity.js.map +0 -1
- package/dist/module/notification/firebase-admin.config.d.ts +0 -7
- package/dist/module/notification/firebase-admin.config.js +0 -24
- package/dist/module/notification/firebase-admin.config.js.map +0 -1
- package/dist/module/notification/notification.module.d.ts +0 -2
- package/dist/module/notification/notification.module.js +0 -82
- package/dist/module/notification/notification.module.js.map +0 -1
- package/dist/module/notification/repository/otp.repository.d.ts +0 -9
- package/dist/module/notification/repository/otp.repository.js +0 -44
- package/dist/module/notification/repository/otp.repository.js.map +0 -1
- package/dist/module/notification/service/email.service.d.ts +0 -14
- package/dist/module/notification/service/email.service.js +0 -110
- package/dist/module/notification/service/email.service.js.map +0 -1
- package/dist/module/notification/service/notification.service.d.ts +0 -25
- package/dist/module/notification/service/notification.service.js +0 -112
- package/dist/module/notification/service/notification.service.js.map +0 -1
- package/dist/module/notification/service/otp.service.d.ts +0 -49
- package/dist/module/notification/service/otp.service.js +0 -102
- package/dist/module/notification/service/otp.service.js.map +0 -1
- package/dist/module/third-party-module/entity/third-party-api-registry.entity.d.ts +0 -18
- package/dist/module/third-party-module/entity/third-party-api-registry.entity.js +0 -84
- package/dist/module/third-party-module/entity/third-party-api-registry.entity.js.map +0 -1
- package/dist/module/third-party-module/repository/third-party-api-registry.repository.d.ts +0 -7
- package/dist/module/third-party-module/repository/third-party-api-registry.repository.js +0 -38
- package/dist/module/third-party-module/repository/third-party-api-registry.repository.js.map +0 -1
- package/dist/module/third-party-module/service/api-registry.service.d.ts +0 -6
- package/dist/module/third-party-module/service/api-registry.service.js +0 -28
- package/dist/module/third-party-module/service/api-registry.service.js.map +0 -1
- package/dist/module/third-party-module/third-party.module.d.ts +0 -2
- package/dist/module/third-party-module/third-party.module.js +0 -25
- package/dist/module/third-party-module/third-party.module.js.map +0 -1
- package/dist/module/user/controller/login.controller.d.ts +0 -26
- package/dist/module/user/controller/login.controller.js +0 -176
- package/dist/module/user/controller/login.controller.js.map +0 -1
- package/dist/module/user/controller/user.controller.d.ts +0 -9
- package/dist/module/user/controller/user.controller.js +0 -59
- package/dist/module/user/controller/user.controller.js.map +0 -1
- package/dist/module/user/dto/create-user.dto.d.ts +0 -17
- package/dist/module/user/dto/create-user.dto.js +0 -64
- package/dist/module/user/dto/create-user.dto.js.map +0 -1
- package/dist/module/user/dto/update-user.dto.d.ts +0 -5
- package/dist/module/user/dto/update-user.dto.js +0 -9
- package/dist/module/user/dto/update-user.dto.js.map +0 -1
- package/dist/module/user/entity/role.entity.d.ts +0 -11
- package/dist/module/user/entity/role.entity.js +0 -56
- package/dist/module/user/entity/role.entity.js.map +0 -1
- package/dist/module/user/entity/user-role-mapping.entity.d.ts +0 -12
- package/dist/module/user/entity/user-role-mapping.entity.js +0 -63
- package/dist/module/user/entity/user-role-mapping.entity.js.map +0 -1
- package/dist/module/user/entity/user-session.entity.d.ts +0 -11
- package/dist/module/user/entity/user-session.entity.js +0 -86
- package/dist/module/user/entity/user-session.entity.js.map +0 -1
- package/dist/module/user/entity/user.entity.d.ts +0 -23
- package/dist/module/user/entity/user.entity.js +0 -103
- package/dist/module/user/entity/user.entity.js.map +0 -1
- package/dist/module/user/repository/role.repository.d.ts +0 -18
- package/dist/module/user/repository/role.repository.js +0 -87
- package/dist/module/user/repository/role.repository.js.map +0 -1
- package/dist/module/user/repository/user-role-mapping.repository.d.ts +0 -19
- package/dist/module/user/repository/user-role-mapping.repository.js +0 -110
- package/dist/module/user/repository/user-role-mapping.repository.js.map +0 -1
- package/dist/module/user/repository/user.repository.d.ts +0 -10
- package/dist/module/user/repository/user.repository.js +0 -58
- package/dist/module/user/repository/user.repository.js.map +0 -1
- package/dist/module/user/repository/userSession.repository.d.ts +0 -10
- package/dist/module/user/repository/userSession.repository.js +0 -45
- package/dist/module/user/repository/userSession.repository.js.map +0 -1
- package/dist/module/user/service/login.service.d.ts +0 -80
- package/dist/module/user/service/login.service.js +0 -209
- package/dist/module/user/service/login.service.js.map +0 -1
- package/dist/module/user/service/role.service.d.ts +0 -23
- package/dist/module/user/service/role.service.js +0 -146
- package/dist/module/user/service/role.service.js.map +0 -1
- package/dist/module/user/service/user-role-mapping.service.d.ts +0 -12
- package/dist/module/user/service/user-role-mapping.service.js +0 -60
- package/dist/module/user/service/user-role-mapping.service.js.map +0 -1
- package/dist/module/user/service/user-session.service.d.ts +0 -38
- package/dist/module/user/service/user-session.service.js +0 -132
- package/dist/module/user/service/user-session.service.js.map +0 -1
- package/dist/module/user/service/user.service.d.ts +0 -38
- package/dist/module/user/service/user.service.js +0 -234
- package/dist/module/user/service/user.service.js.map +0 -1
- package/dist/module/user/user.module.d.ts +0 -2
- package/dist/module/user/user.module.js +0 -78
- package/dist/module/user/user.module.js.map +0 -1
- package/dist/module/workflow/controller/action-category.controller.d.ts +0 -18
- package/dist/module/workflow/controller/action-category.controller.js +0 -79
- package/dist/module/workflow/controller/action-category.controller.js.map +0 -1
- package/dist/module/workflow/controller/action-resource-mapping.controller.d.ts +0 -5
- package/dist/module/workflow/controller/action-resource-mapping.controller.js +0 -31
- package/dist/module/workflow/controller/action-resource-mapping.controller.js.map +0 -1
- package/dist/module/workflow/controller/action-template-mapping.controller.d.ts +0 -12
- package/dist/module/workflow/controller/action-template-mapping.controller.js +0 -44
- package/dist/module/workflow/controller/action-template-mapping.controller.js.map +0 -1
- package/dist/module/workflow/controller/action.controller.d.ts +0 -45
- package/dist/module/workflow/controller/action.controller.js +0 -108
- package/dist/module/workflow/controller/action.controller.js.map +0 -1
- package/dist/module/workflow/controller/activity-log.controller.d.ts +0 -44
- package/dist/module/workflow/controller/activity-log.controller.js +0 -62
- package/dist/module/workflow/controller/activity-log.controller.js.map +0 -1
- package/dist/module/workflow/controller/comm-template.controller.d.ts +0 -13
- package/dist/module/workflow/controller/comm-template.controller.js +0 -45
- package/dist/module/workflow/controller/comm-template.controller.js.map +0 -1
- package/dist/module/workflow/controller/entity-modification.controller.d.ts +0 -8
- package/dist/module/workflow/controller/entity-modification.controller.js +0 -44
- package/dist/module/workflow/controller/entity-modification.controller.js.map +0 -1
- package/dist/module/workflow/controller/form-master.controller.d.ts +0 -11
- package/dist/module/workflow/controller/form-master.controller.js +0 -59
- package/dist/module/workflow/controller/form-master.controller.js.map +0 -1
- package/dist/module/workflow/controller/stage-group.controller.d.ts +0 -19
- package/dist/module/workflow/controller/stage-group.controller.js +0 -56
- package/dist/module/workflow/controller/stage-group.controller.js.map +0 -1
- package/dist/module/workflow/controller/stage.controller.d.ts +0 -34
- package/dist/module/workflow/controller/stage.controller.js +0 -56
- package/dist/module/workflow/controller/stage.controller.js.map +0 -1
- package/dist/module/workflow/controller/task.controller.d.ts +0 -32
- package/dist/module/workflow/controller/task.controller.js +0 -72
- package/dist/module/workflow/controller/task.controller.js.map +0 -1
- package/dist/module/workflow/controller/workflow-list-master.controller.d.ts +0 -14
- package/dist/module/workflow/controller/workflow-list-master.controller.js +0 -67
- package/dist/module/workflow/controller/workflow-list-master.controller.js.map +0 -1
- package/dist/module/workflow/controller/workflow-meta.controller.d.ts +0 -15
- package/dist/module/workflow/controller/workflow-meta.controller.js +0 -72
- package/dist/module/workflow/controller/workflow-meta.controller.js.map +0 -1
- package/dist/module/workflow/controller/workflow.controller.d.ts +0 -31
- package/dist/module/workflow/controller/workflow.controller.js +0 -83
- package/dist/module/workflow/controller/workflow.controller.js.map +0 -1
- package/dist/module/workflow/entity/action-category.entity.d.ts +0 -12
- package/dist/module/workflow/entity/action-category.entity.js +0 -59
- package/dist/module/workflow/entity/action-category.entity.js.map +0 -1
- package/dist/module/workflow/entity/action-data.entity.d.ts +0 -19
- package/dist/module/workflow/entity/action-data.entity.js +0 -86
- package/dist/module/workflow/entity/action-data.entity.js.map +0 -1
- package/dist/module/workflow/entity/action-resources-mapping.entity.d.ts +0 -9
- package/dist/module/workflow/entity/action-resources-mapping.entity.js +0 -47
- package/dist/module/workflow/entity/action-resources-mapping.entity.js.map +0 -1
- package/dist/module/workflow/entity/action-template-mapping.entity.d.ts +0 -6
- package/dist/module/workflow/entity/action-template-mapping.entity.js +0 -35
- package/dist/module/workflow/entity/action-template-mapping.entity.js.map +0 -1
- package/dist/module/workflow/entity/action.entity.d.ts +0 -17
- package/dist/module/workflow/entity/action.entity.js +0 -79
- package/dist/module/workflow/entity/action.entity.js.map +0 -1
- package/dist/module/workflow/entity/activity-log.entity.d.ts +0 -15
- package/dist/module/workflow/entity/activity-log.entity.js +0 -70
- package/dist/module/workflow/entity/activity-log.entity.js.map +0 -1
- package/dist/module/workflow/entity/comm-template.entity.d.ts +0 -13
- package/dist/module/workflow/entity/comm-template.entity.js +0 -63
- package/dist/module/workflow/entity/comm-template.entity.js.map +0 -1
- package/dist/module/workflow/entity/entity-modification.entity.d.ts +0 -13
- package/dist/module/workflow/entity/entity-modification.entity.js +0 -63
- package/dist/module/workflow/entity/entity-modification.entity.js.map +0 -1
- package/dist/module/workflow/entity/form-master.entity.d.ts +0 -10
- package/dist/module/workflow/entity/form-master.entity.js +0 -50
- package/dist/module/workflow/entity/form-master.entity.js.map +0 -1
- package/dist/module/workflow/entity/form.entity.d.ts +0 -9
- package/dist/module/workflow/entity/form.entity.js +0 -46
- package/dist/module/workflow/entity/form.entity.js.map +0 -1
- package/dist/module/workflow/entity/stage-action-mapping.entity.d.ts +0 -6
- package/dist/module/workflow/entity/stage-action-mapping.entity.js +0 -35
- package/dist/module/workflow/entity/stage-action-mapping.entity.js.map +0 -1
- package/dist/module/workflow/entity/stage-group.entity.d.ts +0 -8
- package/dist/module/workflow/entity/stage-group.entity.js +0 -43
- package/dist/module/workflow/entity/stage-group.entity.js.map +0 -1
- package/dist/module/workflow/entity/stage-movement-data.entity.d.ts +0 -13
- package/dist/module/workflow/entity/stage-movement-data.entity.js +0 -63
- package/dist/module/workflow/entity/stage-movement-data.entity.js.map +0 -1
- package/dist/module/workflow/entity/stage.entity.d.ts +0 -7
- package/dist/module/workflow/entity/stage.entity.js +0 -39
- package/dist/module/workflow/entity/stage.entity.js.map +0 -1
- package/dist/module/workflow/entity/task-data.entity.d.ts +0 -30
- package/dist/module/workflow/entity/task-data.entity.js +0 -130
- package/dist/module/workflow/entity/task-data.entity.js.map +0 -1
- package/dist/module/workflow/entity/template-attach-mapper.entity.d.ts +0 -11
- package/dist/module/workflow/entity/template-attach-mapper.entity.js +0 -54
- package/dist/module/workflow/entity/template-attach-mapper.entity.js.map +0 -1
- package/dist/module/workflow/entity/workflow-data.entity.d.ts +0 -4
- package/dist/module/workflow/entity/workflow-data.entity.js +0 -27
- package/dist/module/workflow/entity/workflow-data.entity.js.map +0 -1
- package/dist/module/workflow/entity/workflow-level-mapping.entity.d.ts +0 -7
- package/dist/module/workflow/entity/workflow-level-mapping.entity.js +0 -38
- package/dist/module/workflow/entity/workflow-level-mapping.entity.js.map +0 -1
- package/dist/module/workflow/entity/workflow.entity.d.ts +0 -7
- package/dist/module/workflow/entity/workflow.entity.js +0 -39
- package/dist/module/workflow/entity/workflow.entity.js.map +0 -1
- package/dist/module/workflow/repository/action-category.repository.d.ts +0 -19
- package/dist/module/workflow/repository/action-category.repository.js +0 -84
- package/dist/module/workflow/repository/action-category.repository.js.map +0 -1
- package/dist/module/workflow/repository/action-data.repository.d.ts +0 -20
- package/dist/module/workflow/repository/action-data.repository.js +0 -176
- package/dist/module/workflow/repository/action-data.repository.js.map +0 -1
- package/dist/module/workflow/repository/action.repository.d.ts +0 -29
- package/dist/module/workflow/repository/action.repository.js +0 -220
- package/dist/module/workflow/repository/action.repository.js.map +0 -1
- package/dist/module/workflow/repository/activity-log.repository.d.ts +0 -57
- package/dist/module/workflow/repository/activity-log.repository.js +0 -112
- package/dist/module/workflow/repository/activity-log.repository.js.map +0 -1
- package/dist/module/workflow/repository/comm-template.repository.d.ts +0 -15
- package/dist/module/workflow/repository/comm-template.repository.js +0 -107
- package/dist/module/workflow/repository/comm-template.repository.js.map +0 -1
- package/dist/module/workflow/repository/form-master.repository.d.ts +0 -12
- package/dist/module/workflow/repository/form-master.repository.js +0 -59
- package/dist/module/workflow/repository/form-master.repository.js.map +0 -1
- package/dist/module/workflow/repository/form.repository.d.ts +0 -0
- package/dist/module/workflow/repository/form.repository.js +0 -1
- package/dist/module/workflow/repository/form.repository.js.map +0 -1
- package/dist/module/workflow/repository/stage-group.repository.d.ts +0 -34
- package/dist/module/workflow/repository/stage-group.repository.js +0 -135
- package/dist/module/workflow/repository/stage-group.repository.js.map +0 -1
- package/dist/module/workflow/repository/stage-movement.repository.d.ts +0 -23
- package/dist/module/workflow/repository/stage-movement.repository.js +0 -150
- package/dist/module/workflow/repository/stage-movement.repository.js.map +0 -1
- package/dist/module/workflow/repository/stage.repository.d.ts +0 -30
- package/dist/module/workflow/repository/stage.repository.js +0 -88
- package/dist/module/workflow/repository/stage.repository.js.map +0 -1
- package/dist/module/workflow/repository/task.repository.d.ts +0 -10
- package/dist/module/workflow/repository/task.repository.js +0 -92
- package/dist/module/workflow/repository/task.repository.js.map +0 -1
- package/dist/module/workflow/repository/workflow.repository.d.ts +0 -10
- package/dist/module/workflow/repository/workflow.repository.js +0 -49
- package/dist/module/workflow/repository/workflow.repository.js.map +0 -1
- package/dist/module/workflow/service/action-category.service.d.ts +0 -21
- package/dist/module/workflow/service/action-category.service.js +0 -42
- package/dist/module/workflow/service/action-category.service.js.map +0 -1
- package/dist/module/workflow/service/action-data.service.d.ts +0 -16
- package/dist/module/workflow/service/action-data.service.js +0 -40
- package/dist/module/workflow/service/action-data.service.js.map +0 -1
- package/dist/module/workflow/service/action-resources-mapping.service.d.ts +0 -6
- package/dist/module/workflow/service/action-resources-mapping.service.js +0 -27
- package/dist/module/workflow/service/action-resources-mapping.service.js.map +0 -1
- package/dist/module/workflow/service/action-template-mapping.service.d.ts +0 -7
- package/dist/module/workflow/service/action-template-mapping.service.js +0 -52
- package/dist/module/workflow/service/action-template-mapping.service.js.map +0 -1
- package/dist/module/workflow/service/action.service.d.ts +0 -35
- package/dist/module/workflow/service/action.service.js +0 -152
- package/dist/module/workflow/service/action.service.js.map +0 -1
- package/dist/module/workflow/service/activity-log.service.d.ts +0 -44
- package/dist/module/workflow/service/activity-log.service.js +0 -92
- package/dist/module/workflow/service/activity-log.service.js.map +0 -1
- package/dist/module/workflow/service/comm-template.service.d.ts +0 -16
- package/dist/module/workflow/service/comm-template.service.js +0 -91
- package/dist/module/workflow/service/comm-template.service.js.map +0 -1
- package/dist/module/workflow/service/entity-modification.service.d.ts +0 -8
- package/dist/module/workflow/service/entity-modification.service.js +0 -52
- package/dist/module/workflow/service/entity-modification.service.js.map +0 -1
- package/dist/module/workflow/service/form-master.service.d.ts +0 -14
- package/dist/module/workflow/service/form-master.service.js +0 -38
- package/dist/module/workflow/service/form-master.service.js.map +0 -1
- package/dist/module/workflow/service/populate-workflow.service.d.ts +0 -21
- package/dist/module/workflow/service/populate-workflow.service.js +0 -181
- package/dist/module/workflow/service/populate-workflow.service.js.map +0 -1
- package/dist/module/workflow/service/stage-action-mapping.service.d.ts +0 -3
- package/dist/module/workflow/service/stage-action-mapping.service.js +0 -18
- package/dist/module/workflow/service/stage-action-mapping.service.js.map +0 -1
- package/dist/module/workflow/service/stage-group.service.d.ts +0 -29
- package/dist/module/workflow/service/stage-group.service.js +0 -213
- package/dist/module/workflow/service/stage-group.service.js.map +0 -1
- package/dist/module/workflow/service/stage.service.d.ts +0 -42
- package/dist/module/workflow/service/stage.service.js +0 -102
- package/dist/module/workflow/service/stage.service.js.map +0 -1
- package/dist/module/workflow/service/task.service.d.ts +0 -48
- package/dist/module/workflow/service/task.service.js +0 -324
- package/dist/module/workflow/service/task.service.js.map +0 -1
- package/dist/module/workflow/service/workflow-list-master.service.d.ts +0 -9
- package/dist/module/workflow/service/workflow-list-master.service.js +0 -61
- package/dist/module/workflow/service/workflow-list-master.service.js.map +0 -1
- package/dist/module/workflow/service/workflow-meta.service.d.ts +0 -26
- package/dist/module/workflow/service/workflow-meta.service.js +0 -343
- package/dist/module/workflow/service/workflow-meta.service.js.map +0 -1
- package/dist/module/workflow/service/workflow.service.d.ts +0 -33
- package/dist/module/workflow/service/workflow.service.js +0 -140
- package/dist/module/workflow/service/workflow.service.js.map +0 -1
- package/dist/module/workflow/workflow.module.d.ts +0 -2
- package/dist/module/workflow/workflow.module.js +0 -188
- package/dist/module/workflow/workflow.module.js.map +0 -1
- package/dist/module/workflow-automation/controller/workflow-automation.controller.d.ts +0 -5
- package/dist/module/workflow-automation/controller/workflow-automation.controller.js +0 -31
- package/dist/module/workflow-automation/controller/workflow-automation.controller.js.map +0 -1
- package/dist/module/workflow-automation/entity/workflow-automation-action.entity.d.ts +0 -10
- package/dist/module/workflow-automation/entity/workflow-automation-action.entity.js +0 -51
- package/dist/module/workflow-automation/entity/workflow-automation-action.entity.js.map +0 -1
- package/dist/module/workflow-automation/entity/workflow-automation.entity.d.ts +0 -11
- package/dist/module/workflow-automation/entity/workflow-automation.entity.js +0 -55
- package/dist/module/workflow-automation/entity/workflow-automation.entity.js.map +0 -1
- package/dist/module/workflow-automation/interface/action.decorator.d.ts +0 -2
- package/dist/module/workflow-automation/interface/action.decorator.js +0 -8
- package/dist/module/workflow-automation/interface/action.decorator.js.map +0 -1
- package/dist/module/workflow-automation/interface/action.interface.d.ts +0 -4
- package/dist/module/workflow-automation/interface/action.interface.js +0 -3
- package/dist/module/workflow-automation/interface/action.interface.js.map +0 -1
- package/dist/module/workflow-automation/service/action-registery.service.d.ts +0 -11
- package/dist/module/workflow-automation/service/action-registery.service.js +0 -46
- package/dist/module/workflow-automation/service/action-registery.service.js.map +0 -1
- package/dist/module/workflow-automation/service/workflow-automation-engine.service.d.ts +0 -12
- package/dist/module/workflow-automation/service/workflow-automation-engine.service.js +0 -70
- package/dist/module/workflow-automation/service/workflow-automation-engine.service.js.map +0 -1
- package/dist/module/workflow-automation/service/workflow-automation.service.d.ts +0 -53
- package/dist/module/workflow-automation/service/workflow-automation.service.js +0 -219
- package/dist/module/workflow-automation/service/workflow-automation.service.js.map +0 -1
- package/dist/module/workflow-automation/workflow-automation.module.d.ts +0 -2
- package/dist/module/workflow-automation/workflow-automation.module.js +0 -47
- package/dist/module/workflow-automation/workflow-automation.module.js.map +0 -1
- package/dist/resources/properties.module.d.ts +0 -2
- package/dist/resources/properties.module.js +0 -25
- package/dist/resources/properties.module.js.map +0 -1
- package/dist/resources/properties.yaml.d.ts +0 -2
- package/dist/resources/properties.yaml.js +0 -10
- package/dist/resources/properties.yaml.js.map +0 -1
- package/dist/tsconfig.build.tsbuildinfo +0 -1
- package/dist/utils/dto/excel-data.dto.d.ts +0 -7
- package/dist/utils/dto/excel-data.dto.js +0 -16
- package/dist/utils/dto/excel-data.dto.js.map +0 -1
- package/dist/utils/dto/excelsheet-data.dto.d.ts +0 -5
- package/dist/utils/dto/excelsheet-data.dto.js +0 -3
- package/dist/utils/dto/excelsheet-data.dto.js.map +0 -1
- package/dist/utils/service/base64util.service.d.ts +0 -4
- package/dist/utils/service/base64util.service.js +0 -21
- package/dist/utils/service/base64util.service.js.map +0 -1
- package/dist/utils/service/clockIDGenUtil.service.d.ts +0 -8
- package/dist/utils/service/clockIDGenUtil.service.js +0 -32
- package/dist/utils/service/clockIDGenUtil.service.js.map +0 -1
- package/dist/utils/service/codeGenerator.service.d.ts +0 -3
- package/dist/utils/service/codeGenerator.service.js +0 -19
- package/dist/utils/service/codeGenerator.service.js.map +0 -1
- package/dist/utils/service/dateUtil.service.d.ts +0 -3
- package/dist/utils/service/dateUtil.service.js +0 -28
- package/dist/utils/service/dateUtil.service.js.map +0 -1
- package/dist/utils/service/encryptUtil.service.d.ts +0 -9
- package/dist/utils/service/encryptUtil.service.js +0 -112
- package/dist/utils/service/encryptUtil.service.js.map +0 -1
- package/dist/utils/service/excel-helper.service.d.ts +0 -9
- package/dist/utils/service/excel-helper.service.js +0 -56
- package/dist/utils/service/excel-helper.service.js.map +0 -1
- package/dist/utils/service/excelUtil.service.d.ts +0 -3
- package/dist/utils/service/excelUtil.service.js +0 -17
- package/dist/utils/service/excelUtil.service.js.map +0 -1
- package/dist/utils/service/file-util.service.d.ts +0 -3
- package/dist/utils/service/file-util.service.js +0 -15
- package/dist/utils/service/file-util.service.js.map +0 -1
- package/dist/utils/service/json-util.service.d.ts +0 -3
- package/dist/utils/service/json-util.service.js +0 -24
- package/dist/utils/service/json-util.service.js.map +0 -1
- package/dist/utils/service/loggingUtil.service.d.ts +0 -4
- package/dist/utils/service/loggingUtil.service.js +0 -49
- package/dist/utils/service/loggingUtil.service.js.map +0 -1
- package/dist/utils/service/reflection-helper.service.d.ts +0 -9
- package/dist/utils/service/reflection-helper.service.js +0 -60
- package/dist/utils/service/reflection-helper.service.js.map +0 -1
- package/dist/utils/service/wbsCodeGen.service.d.ts +0 -3
- package/dist/utils/service/wbsCodeGen.service.js +0 -20
- package/dist/utils/service/wbsCodeGen.service.js.map +0 -1
- package/dist/utils/utils.module.d.ts +0 -2
- package/dist/utils/utils.module.js +0 -38
- package/dist/utils/utils.module.js.map +0 -1
|
@@ -1,176 +0,0 @@
|
|
|
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.ActionDataRepository = void 0;
|
|
16
|
-
const common_1 = require("@nestjs/common");
|
|
17
|
-
const typeorm_1 = require("@nestjs/typeorm");
|
|
18
|
-
const action_data_entity_1 = require("../entity/action-data.entity");
|
|
19
|
-
const typeorm_2 = require("typeorm");
|
|
20
|
-
const form_entity_1 = require("../entity/form.entity");
|
|
21
|
-
const task_data_entity_1 = require("../entity/task-data.entity");
|
|
22
|
-
const entity_service_impl_service_1 = require("../../meta/service/entity-service-impl.service");
|
|
23
|
-
const global_constant_1 = require("../../../constant/global.constant");
|
|
24
|
-
let ActionDataRepository = class ActionDataRepository extends entity_service_impl_service_1.EntityServiceImpl {
|
|
25
|
-
constructor(actionDataRepo, dataSource, formRepo, TaskRepository) {
|
|
26
|
-
super();
|
|
27
|
-
this.actionDataRepo = actionDataRepo;
|
|
28
|
-
this.dataSource = dataSource;
|
|
29
|
-
this.formRepo = formRepo;
|
|
30
|
-
this.TaskRepository = TaskRepository;
|
|
31
|
-
}
|
|
32
|
-
async saveActionData(action, loggedInUser, mapped_entity_id, mapped_entity_type) {
|
|
33
|
-
if (!action?.length)
|
|
34
|
-
return;
|
|
35
|
-
const minSequence = Math.min(...action.map((a) => a.sequence));
|
|
36
|
-
if (action.length > 0) {
|
|
37
|
-
for (const act of action) {
|
|
38
|
-
const is_mandatory = await this.dataSource.query(`SELECT code FROM cr_list_master_items WHERE id = ? and organization_id = ? LIMIT 1;`, [act.action_requirement, loggedInUser.organization_id]);
|
|
39
|
-
const isFirst = act.sequence == minSequence;
|
|
40
|
-
const actionData = this.actionDataRepo.create({
|
|
41
|
-
stage_id: act.stage_id,
|
|
42
|
-
user_id: loggedInUser.id,
|
|
43
|
-
action_id: act.id,
|
|
44
|
-
sequence: act.sequence,
|
|
45
|
-
name: act.name,
|
|
46
|
-
organization_id: loggedInUser.organization_id,
|
|
47
|
-
mapped_entity_id,
|
|
48
|
-
mapped_entity_type,
|
|
49
|
-
is_current: isFirst ? 'Y' : null,
|
|
50
|
-
start_time: isFirst ? new Date() : null,
|
|
51
|
-
is_mandatory: is_mandatory[0]?.code === 'mandatory' ? true : false,
|
|
52
|
-
category: act?.action_category_code,
|
|
53
|
-
});
|
|
54
|
-
await this.actionDataRepo.save(actionData);
|
|
55
|
-
if (act?.action_category_code === 'SDFM') {
|
|
56
|
-
const data = {
|
|
57
|
-
entity_type: 'LFRM',
|
|
58
|
-
stage_id: act.stage_id,
|
|
59
|
-
mapped_entity_type,
|
|
60
|
-
mapped_entity_id,
|
|
61
|
-
view_id: act.form_id,
|
|
62
|
-
status: global_constant_1.FORM_STATUS_TO_BE_SENT,
|
|
63
|
-
action_id: act.id,
|
|
64
|
-
};
|
|
65
|
-
super.createEntity(data, loggedInUser);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
async updateActionStatus(loggedInUser, mapped_entity_type, mapped_entity_id, stage_id, action_id) {
|
|
71
|
-
const actionData = await this.actionDataRepo.findOne({
|
|
72
|
-
where: {
|
|
73
|
-
mapped_entity_type,
|
|
74
|
-
mapped_entity_id,
|
|
75
|
-
stage_id,
|
|
76
|
-
action_id,
|
|
77
|
-
},
|
|
78
|
-
});
|
|
79
|
-
if (!actionData)
|
|
80
|
-
return;
|
|
81
|
-
actionData.end_time = new Date();
|
|
82
|
-
actionData.modified_by = loggedInUser.id;
|
|
83
|
-
actionData.modified_date = new Date();
|
|
84
|
-
actionData.is_done = true;
|
|
85
|
-
actionData.is_current = 'N';
|
|
86
|
-
await this.actionDataRepo.update(actionData.id, actionData);
|
|
87
|
-
const allActionData = await this.actionDataRepo.find({
|
|
88
|
-
where: { mapped_entity_type, mapped_entity_id, stage_id },
|
|
89
|
-
order: { sequence: 'ASC' },
|
|
90
|
-
});
|
|
91
|
-
const nextAction = allActionData.find((a) => a.sequence > actionData.sequence);
|
|
92
|
-
if (nextAction && nextAction.is_current !== 'Y') {
|
|
93
|
-
nextAction.is_current = 'Y';
|
|
94
|
-
nextAction.start_time = new Date();
|
|
95
|
-
nextAction.modified_by = loggedInUser.id;
|
|
96
|
-
nextAction.modified_date = new Date();
|
|
97
|
-
await this.actionDataRepo.update(nextAction.id, nextAction);
|
|
98
|
-
}
|
|
99
|
-
return { finished: actionData, activated: nextAction ?? null };
|
|
100
|
-
}
|
|
101
|
-
async resubmitAction(organization_id, mapped_entity_type, mapped_entity_id, stage_id, action_id) {
|
|
102
|
-
const currentAction = await this.actionDataRepo.findOne({
|
|
103
|
-
where: {
|
|
104
|
-
organization_id,
|
|
105
|
-
stage_id,
|
|
106
|
-
mapped_entity_id,
|
|
107
|
-
mapped_entity_type,
|
|
108
|
-
action_id,
|
|
109
|
-
is_current: 'Y',
|
|
110
|
-
},
|
|
111
|
-
});
|
|
112
|
-
if (!currentAction) {
|
|
113
|
-
return;
|
|
114
|
-
}
|
|
115
|
-
const previousAction = await this.actionDataRepo.findOne({
|
|
116
|
-
where: {
|
|
117
|
-
organization_id,
|
|
118
|
-
stage_id,
|
|
119
|
-
mapped_entity_id,
|
|
120
|
-
mapped_entity_type,
|
|
121
|
-
sequence: (0, typeorm_2.LessThan)(currentAction.sequence),
|
|
122
|
-
},
|
|
123
|
-
order: { sequence: 'DESC' },
|
|
124
|
-
});
|
|
125
|
-
if (!previousAction) {
|
|
126
|
-
return;
|
|
127
|
-
}
|
|
128
|
-
currentAction.is_current = null;
|
|
129
|
-
currentAction.modified_date = new Date();
|
|
130
|
-
currentAction.modified_by = organization_id;
|
|
131
|
-
currentAction.start_time = null;
|
|
132
|
-
currentAction.resubmit_count = (currentAction.resubmit_count ?? 0) + 1;
|
|
133
|
-
await this.actionDataRepo.update(currentAction.id, currentAction);
|
|
134
|
-
previousAction.is_current = 'Y';
|
|
135
|
-
previousAction.modified_date = new Date();
|
|
136
|
-
previousAction.modified_by = organization_id;
|
|
137
|
-
previousAction.end_time = null;
|
|
138
|
-
previousAction.is_done = false;
|
|
139
|
-
await this.actionDataRepo.update(previousAction.id, previousAction);
|
|
140
|
-
const tasksForPrevAction = await this.TaskRepository.find({
|
|
141
|
-
where: {
|
|
142
|
-
action_id: String(previousAction.action_id),
|
|
143
|
-
mapped_entity_type,
|
|
144
|
-
mapped_entity_id,
|
|
145
|
-
stage_id: String(previousAction.stage_id),
|
|
146
|
-
is_done: true,
|
|
147
|
-
},
|
|
148
|
-
});
|
|
149
|
-
if (tasksForPrevAction.length > 0) {
|
|
150
|
-
for (const task of tasksForPrevAction) {
|
|
151
|
-
task.modified_date = new Date();
|
|
152
|
-
task.is_done = false;
|
|
153
|
-
const pendingListMasterItemId = await this.dataSource.query(`SELECT id FROM cr_list_master_items WHERE code = 'in_progress' AND organization_id = ? AND listtype = 'TKST' LIMIT 1;`, [organization_id]);
|
|
154
|
-
task.status = pendingListMasterItemId[0]?.id ?? task.status;
|
|
155
|
-
await this.TaskRepository.update(task.id, task);
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
return {
|
|
159
|
-
message: 'Action resubmitted successfully',
|
|
160
|
-
revertedTo: previousAction,
|
|
161
|
-
updated: currentAction,
|
|
162
|
-
};
|
|
163
|
-
}
|
|
164
|
-
};
|
|
165
|
-
exports.ActionDataRepository = ActionDataRepository;
|
|
166
|
-
exports.ActionDataRepository = ActionDataRepository = __decorate([
|
|
167
|
-
(0, common_1.Injectable)(),
|
|
168
|
-
__param(0, (0, typeorm_1.InjectRepository)(action_data_entity_1.ActionDataEntity)),
|
|
169
|
-
__param(2, (0, typeorm_1.InjectRepository)(form_entity_1.FormDataEntity)),
|
|
170
|
-
__param(3, (0, typeorm_1.InjectRepository)(task_data_entity_1.TaskDataEntity)),
|
|
171
|
-
__metadata("design:paramtypes", [typeorm_2.Repository,
|
|
172
|
-
typeorm_2.DataSource,
|
|
173
|
-
typeorm_2.Repository,
|
|
174
|
-
typeorm_2.Repository])
|
|
175
|
-
], ActionDataRepository);
|
|
176
|
-
//# sourceMappingURL=action-data.repository.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"action-data.repository.js","sourceRoot":"","sources":["../../../../src/module/workflow/repository/action-data.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAiE;AACjE,6CAAmD;AACnD,qEAAgE;AAChE,qCAA2D;AAE3D,uDAAuD;AACvD,iEAA4D;AAC5D,gGAAwF;AACxF,uEAAsE;AAG/D,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,+CAAiB;IACzD,YAEmB,cAA4C,EAC5C,UAAsB,EAEtB,QAAoC,EAEpC,cAA0C;QAE3D,KAAK,EAAE,CAAC;QAPS,mBAAc,GAAd,cAAc,CAA8B;QAC5C,eAAU,GAAV,UAAU,CAAY;QAEtB,aAAQ,GAAR,QAAQ,CAA4B;QAEpC,mBAAc,GAAd,cAAc,CAA4B;IAG7D,CAAC;IAED,KAAK,CAAC,cAAc,CAClB,MAAW,EACX,YAAsB,EACtB,gBAAgB,EAChB,kBAAkB;QAElB,IAAI,CAAC,MA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GrB,MAAM,uBAAuB,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,CACzD,uHAAuH,EACvH,CAAC,eAAe,CAAC,CAClB,CAAC;gBACF,IAAI,CAAC,MAAM,GAAG,uBAAuB,CAAC,CAAC,CAAC,EAAE,EAAE,IAAI,IAAI,CAAC,MAAM,CAAC;gBAE5D,MAAM,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;YAClD,CAAC;QACH,CAAC;QAED,OAAO;YACL,OAAO,EAAE,iCAAiC;YAC1C,UAAU,EAAE,cAAc;YAC1B,OAAO,EAAE,aAAa;SACvB,CAAC;IACJ,CAAC;CACF,CAAA;AA/MY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,0BAAgB,EAAC,qCAAgB,CAAC,CAAA;IAGlC,WAAA,IAAA,0BAAgB,EAAC,4BAAc,CAAC,CAAA;IAEhC,WAAA,IAAA,0BAAgB,EAAC,iCAAc,CAAC,CAAA;qCAJA,oBAAU;QACd,oBAAU;QAEZ,oBAAU;QAEJ,oBAAU;GARlC,oBAAoB,CA+MhC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { DataSource, Repository } from 'typeorm';
|
|
2
|
-
import { ActionEntity } from '../entity/action.entity';
|
|
3
|
-
import { UserData } from 'src/module/user/entity/user.entity';
|
|
4
|
-
export declare class ActionRepository {
|
|
5
|
-
private readonly actionRepository;
|
|
6
|
-
private readonly dataSource;
|
|
7
|
-
constructor(actionRepository: Repository<ActionEntity>, dataSource: DataSource);
|
|
8
|
-
getReasonCode(loggedInUser: UserData): Promise<any>;
|
|
9
|
-
defaultReasonCode(list_type: string, loggedInUser: UserData): Promise<any>;
|
|
10
|
-
getActions(loggedInUser: UserData, stage_id: number): Promise<any[]>;
|
|
11
|
-
getAction(organization_id: number, stage_id: number, mapped_entity_id: number, mapped_entity_type: string): Promise<{
|
|
12
|
-
value: any;
|
|
13
|
-
dependent_action_id: any;
|
|
14
|
-
label: any;
|
|
15
|
-
modalName: any;
|
|
16
|
-
logo: any;
|
|
17
|
-
mode: any;
|
|
18
|
-
name: any;
|
|
19
|
-
reason_code: any;
|
|
20
|
-
default_reason_code: any;
|
|
21
|
-
is_default: boolean;
|
|
22
|
-
is_current: any;
|
|
23
|
-
is_done: any;
|
|
24
|
-
is_mandatory: any;
|
|
25
|
-
}[] | {
|
|
26
|
-
value: string;
|
|
27
|
-
label: string;
|
|
28
|
-
}[]>;
|
|
29
|
-
}
|
|
@@ -1,220 +0,0 @@
|
|
|
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.ActionRepository = void 0;
|
|
16
|
-
const common_1 = require("@nestjs/common");
|
|
17
|
-
const typeorm_1 = require("@nestjs/typeorm");
|
|
18
|
-
const typeorm_2 = require("typeorm");
|
|
19
|
-
const action_entity_1 = require("../entity/action.entity");
|
|
20
|
-
let ActionRepository = class ActionRepository {
|
|
21
|
-
constructor(actionRepository, dataSource) {
|
|
22
|
-
this.actionRepository = actionRepository;
|
|
23
|
-
this.dataSource = dataSource;
|
|
24
|
-
}
|
|
25
|
-
async getReasonCode(loggedInUser) {
|
|
26
|
-
const { organization_id } = loggedInUser;
|
|
27
|
-
const result = await this.dataSource.query(`
|
|
28
|
-
SELECT name, type
|
|
29
|
-
FROM cr_list_master
|
|
30
|
-
WHERE organization_id = ? AND source = 'master'
|
|
31
|
-
`, [organization_id]);
|
|
32
|
-
const formatted = result.map((item) => ({
|
|
33
|
-
label: item.name,
|
|
34
|
-
value: item.type,
|
|
35
|
-
}));
|
|
36
|
-
return formatted;
|
|
37
|
-
}
|
|
38
|
-
async defaultReasonCode(list_type, loggedInUser) {
|
|
39
|
-
const { organization_id } = loggedInUser;
|
|
40
|
-
if (!list_type) {
|
|
41
|
-
throw new common_1.BadRequestException('list_type is required');
|
|
42
|
-
}
|
|
43
|
-
const result = await this.dataSource.query(`
|
|
44
|
-
SELECT name, id
|
|
45
|
-
FROM cr_list_master_items
|
|
46
|
-
WHERE listtype = ? AND organization_id = ?
|
|
47
|
-
`, [list_type, organization_id]);
|
|
48
|
-
return result.map((row) => ({
|
|
49
|
-
label: row.name,
|
|
50
|
-
value: row.id,
|
|
51
|
-
}));
|
|
52
|
-
}
|
|
53
|
-
async getActions(loggedInUser, stage_id) {
|
|
54
|
-
const { organization_id } = loggedInUser;
|
|
55
|
-
const stageActions = await this.dataSource.query(`
|
|
56
|
-
SELECT id, action_id
|
|
57
|
-
FROM cr_wf_stage_action_mapping
|
|
58
|
-
WHERE stage_id = ?
|
|
59
|
-
`, [stage_id]);
|
|
60
|
-
if (!stageActions?.length)
|
|
61
|
-
return [];
|
|
62
|
-
const actionIds = stageActions.map((sa) => sa.action_id);
|
|
63
|
-
const mappingIds = stageActions.map((sa) => sa.id);
|
|
64
|
-
const templateMappings = await this.dataSource.query(`
|
|
65
|
-
SELECT stg_act_mapping_id, template_code
|
|
66
|
-
FROM cr_wf_action_template_mapping
|
|
67
|
-
WHERE stg_act_mapping_id IN (${mappingIds.map(() => '?').join(',')})
|
|
68
|
-
`, mappingIds);
|
|
69
|
-
const templateCodes = templateMappings.map((tm) => tm.template_code);
|
|
70
|
-
const templateCodeToName = {};
|
|
71
|
-
if (templateCodes.length > 0) {
|
|
72
|
-
const templates = await this.dataSource
|
|
73
|
-
.createQueryBuilder()
|
|
74
|
-
.select(['t.code AS code', 't.name AS name'])
|
|
75
|
-
.from('cr_wf_comm_template', 't')
|
|
76
|
-
.where('t.code IN (:...codes)', { codes: templateCodes })
|
|
77
|
-
.andWhere('t.organization_id = :orgId', { orgId: organization_id })
|
|
78
|
-
.getRawMany();
|
|
79
|
-
templates.forEach((tpl) => {
|
|
80
|
-
templateCodeToName[tpl.code] = tpl.name;
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
const mappingIdToTemplates = {};
|
|
84
|
-
for (const tm of templateMappings) {
|
|
85
|
-
const mappingId = tm.stg_act_mapping_id;
|
|
86
|
-
const name = templateCodeToName[tm.template_code];
|
|
87
|
-
if (name) {
|
|
88
|
-
if (!mappingIdToTemplates[mappingId]) {
|
|
89
|
-
mappingIdToTemplates[mappingId] = [];
|
|
90
|
-
}
|
|
91
|
-
mappingIdToTemplates[mappingId].push(name);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
const actionIdToTemplates = {};
|
|
95
|
-
for (const sa of stageActions) {
|
|
96
|
-
const mappingId = sa.id;
|
|
97
|
-
const templates = mappingIdToTemplates[mappingId];
|
|
98
|
-
if (templates?.length) {
|
|
99
|
-
if (!actionIdToTemplates[sa.action_id]) {
|
|
100
|
-
actionIdToTemplates[sa.action_id] = [];
|
|
101
|
-
}
|
|
102
|
-
actionIdToTemplates[sa.action_id].push(...templates);
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
const actionResults = await this.dataSource
|
|
106
|
-
.createQueryBuilder()
|
|
107
|
-
.select([
|
|
108
|
-
'a.*',
|
|
109
|
-
'ac.name AS action_category',
|
|
110
|
-
'ar.name AS action_requirement',
|
|
111
|
-
])
|
|
112
|
-
.from('cr_wf_action', 'a')
|
|
113
|
-
.leftJoin('cr_wf_action_category', 'ac', 'ac.id = a.action_category')
|
|
114
|
-
.leftJoin('cr_list_master_items', 'ar', `ar.id = a.action_requirement AND ar.listtype = 'ACRQ' AND ar.organization_id = :orgId`, { orgId: organization_id })
|
|
115
|
-
.where('a.organization_id = :orgId', { orgId: organization_id })
|
|
116
|
-
.andWhere('a.id IN (:...actionIds)', { actionIds })
|
|
117
|
-
.getRawMany();
|
|
118
|
-
const enrichedResult = actionResults.map((row) => {
|
|
119
|
-
const actionId = Number(row.id);
|
|
120
|
-
const templates = actionIdToTemplates[actionId] || [];
|
|
121
|
-
const uniqueTemplates = [...new Set(templates)];
|
|
122
|
-
return {
|
|
123
|
-
...row,
|
|
124
|
-
template: uniqueTemplates.join(', '),
|
|
125
|
-
};
|
|
126
|
-
});
|
|
127
|
-
return enrichedResult;
|
|
128
|
-
}
|
|
129
|
-
async getAction(organization_id, stage_id, mapped_entity_id, mapped_entity_type) {
|
|
130
|
-
const stageActions = await this.dataSource.query(`SELECT id, action_id FROM cr_wf_stage_action_mapping WHERE stage_id = ?`, [stage_id]);
|
|
131
|
-
if (!stageActions?.length) {
|
|
132
|
-
return [
|
|
133
|
-
{
|
|
134
|
-
value: '0',
|
|
135
|
-
label: 'Generic',
|
|
136
|
-
},
|
|
137
|
-
];
|
|
138
|
-
}
|
|
139
|
-
const actionIds = stageActions.map((sa) => sa.action_id);
|
|
140
|
-
const actions = await this.dataSource
|
|
141
|
-
.createQueryBuilder()
|
|
142
|
-
.select([
|
|
143
|
-
'a.id AS action_id',
|
|
144
|
-
'a.name AS action_name',
|
|
145
|
-
'a.reason_code AS action_reason_code',
|
|
146
|
-
'a.default_reason_code AS default_reason_code',
|
|
147
|
-
'a.default_value AS default_value',
|
|
148
|
-
'a.mode AS mode',
|
|
149
|
-
'a.action_category AS action_category_id',
|
|
150
|
-
'ac.reason_code AS category_reason_code',
|
|
151
|
-
'ac.modalName AS modalName',
|
|
152
|
-
'ac.logo AS logo',
|
|
153
|
-
'ac.name AS action_category_name',
|
|
154
|
-
'a.dependent_action_id AS dependent_action_id',
|
|
155
|
-
])
|
|
156
|
-
.from('cr_wf_action', 'a')
|
|
157
|
-
.leftJoin('cr_wf_action_category', 'ac', 'ac.id = a.action_category')
|
|
158
|
-
.where('a.organization_id = :orgId', { orgId: organization_id })
|
|
159
|
-
.andWhere('a.id IN (:...actionIds)', { actionIds })
|
|
160
|
-
.getRawMany();
|
|
161
|
-
const actionData = await this.dataSource
|
|
162
|
-
.createQueryBuilder()
|
|
163
|
-
.select([
|
|
164
|
-
'ad.action_id AS action_id',
|
|
165
|
-
'ad.is_current AS is_current',
|
|
166
|
-
'ad.is_mandatory AS is_mandatory',
|
|
167
|
-
'ad.is_done AS is_done',
|
|
168
|
-
])
|
|
169
|
-
.from('cr_wf_action_data', 'ad')
|
|
170
|
-
.where('ad.stage_id = :stageId', { stageId: stage_id })
|
|
171
|
-
.andWhere('ad.action_id IN (:...actionIds)', { actionIds })
|
|
172
|
-
.andWhere('ad.mapped_entity_id = :mapped_entity_id', { mapped_entity_id })
|
|
173
|
-
.andWhere('ad.mapped_entity_type = :mapped_entity_type', {
|
|
174
|
-
mapped_entity_type,
|
|
175
|
-
})
|
|
176
|
-
.getRawMany();
|
|
177
|
-
const actionIdToData = actionData.reduce((acc, row) => {
|
|
178
|
-
acc[row.action_id] = {
|
|
179
|
-
is_current: row.is_current === 'Y',
|
|
180
|
-
is_mandatory: row.is_mandatory === 1,
|
|
181
|
-
is_done: row.is_done === 1,
|
|
182
|
-
};
|
|
183
|
-
return acc;
|
|
184
|
-
}, {});
|
|
185
|
-
const enrichedResult = actions.map((row) => {
|
|
186
|
-
const data = actionIdToData[row.action_id];
|
|
187
|
-
const reason_code = row.action_reason_code && row.action_reason_code.trim()
|
|
188
|
-
? row.action_reason_code
|
|
189
|
-
: row.category_reason_code;
|
|
190
|
-
return {
|
|
191
|
-
value: row.action_id,
|
|
192
|
-
dependent_action_id: row.dependent_action_id,
|
|
193
|
-
label: row.action_name,
|
|
194
|
-
modalName: row.modalName,
|
|
195
|
-
logo: row.logo,
|
|
196
|
-
mode: row.mode,
|
|
197
|
-
name: row.action_category_name,
|
|
198
|
-
reason_code,
|
|
199
|
-
default_reason_code: row.default_reason_code,
|
|
200
|
-
is_default: row.default_value === 1,
|
|
201
|
-
is_current: data?.is_current ?? false,
|
|
202
|
-
is_done: data?.is_done ?? false,
|
|
203
|
-
is_mandatory: data?.is_mandatory ?? false,
|
|
204
|
-
};
|
|
205
|
-
});
|
|
206
|
-
enrichedResult.push({
|
|
207
|
-
value: '0',
|
|
208
|
-
label: 'Generic',
|
|
209
|
-
});
|
|
210
|
-
return enrichedResult;
|
|
211
|
-
}
|
|
212
|
-
};
|
|
213
|
-
exports.ActionRepository = ActionRepository;
|
|
214
|
-
exports.ActionRepository = ActionRepository = __decorate([
|
|
215
|
-
(0, common_1.Injectable)(),
|
|
216
|
-
__param(0, (0, typeorm_1.InjectRepository)(action_entity_1.ActionEntity)),
|
|
217
|
-
__metadata("design:paramtypes", [typeorm_2.Repository,
|
|
218
|
-
typeorm_2.DataSource])
|
|
219
|
-
], ActionRepository);
|
|
220
|
-
//# sourceMappingURL=action.repository.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"action.repository.js","sourceRoot":"","sources":["../../../../src/module/workflow/repository/action.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAKwB;AACxB,6CAAmD;AACnD,qCAAiD;AACjD,2DAAuD;AAIhD,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAC3B,YAEmB,gBAA0C,EAC1C,UAAsB;QADtB,qBAAgB,GAAhB,gBAAgB,CAA0B;QAC1C,eAAU,GAAV,UAAU,CAAY;IACtC,CAAC;IAEJ,KAAK,CAAC,aAAa,CAAC,YAA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C,kBAAkB,CAAC,IAAI,EAAE;gBACrD,CAAC,CAAC,GAAG,CAAC,kBAAkB;gBACxB,CAAC,CAAC,GAAG,CAAC,oBAAoB,CAAC;YAE/B,OAAO;gBACL,KAAK,EAAE,GAAG,CAAC,SAAS;gBACpB,mBAAmB,EAAE,GAAG,CAAC,mBAAmB;gBAC5C,KAAK,EAAE,GAAG,CAAC,WAAW;gBACtB,SAAS,EAAE,GAAG,CAAC,SAAS;gBACxB,IAAI,EAAE,GAAG,CAAC,IAAI;gBACd,IAAI,EAAE,GAAG,CAAC,IAAI;gBACd,IAAI,EAAE,GAAG,CAAC,oBAAoB;gBAC9B,WAAW;gBACX,mBAAmB,EAAE,GAAG,CAAC,mBAAmB;gBAC5C,UAAU,EAAE,GAAG,CAAC,aAAa,KAAK,CAAC;gBACnC,UAAU,EAAE,IAAI,EAAE,UAAU,IAAI,KAAK;gBACrC,OAAO,EAAE,IAAI,EAAE,OAAO,IAAI,KAAK;gBAC/B,YAAY,EAAE,IAAI,EAAE,YAAY,IAAI,KAAK;aAC1C,CAAC;QACJ,CAAC,CAAC,CAAC;QAGH,cAAc,CAAC,IAAI,CAAC;YAClB,KAAK,EAAE,GAAG;YACV,KAAK,EAAE,SAAS;SACV,CAAC,CAAC;QAEV,OAAO,cAAc,CAAC;IACxB,CAAC;CACF,CAAA;AAxQY,4CAAgB;2BAAhB,gBAAgB;IAD5B,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,0BAAgB,EAAC,4BAAY,CAAC,CAAA;qCACI,oBAAU;QAChB,oBAAU;GAJ9B,gBAAgB,CAwQ5B"}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { MediaDataService } from 'src/module/meta/service/media-data.service';
|
|
2
|
-
import { ActivityLog } from '../entity/activity-log.entity';
|
|
3
|
-
import { Repository } from 'typeorm';
|
|
4
|
-
export declare const ACTIVITY_CATEGORIES: {
|
|
5
|
-
readonly ASSIGN: "ASSIGN";
|
|
6
|
-
readonly INTERACTION: "INTERACTION";
|
|
7
|
-
readonly FORM: "FORM";
|
|
8
|
-
readonly STAGE: "STAGE";
|
|
9
|
-
readonly ASSESSMENT: "ASSESSMENT";
|
|
10
|
-
readonly MEETING: "MEETING";
|
|
11
|
-
readonly PROCESS: "PROCESS";
|
|
12
|
-
readonly STATUS: "STATUS";
|
|
13
|
-
readonly TASK: "TASK";
|
|
14
|
-
readonly LEAD: "LEAD";
|
|
15
|
-
readonly STAGEGROUP: "STAGE_GROUP";
|
|
16
|
-
};
|
|
17
|
-
export type ActivityCategoryType = keyof typeof ACTIVITY_CATEGORIES;
|
|
18
|
-
export declare class ActivityLogRepository {
|
|
19
|
-
private readonly activityLogRepository;
|
|
20
|
-
private readonly mediaDataService;
|
|
21
|
-
constructor(activityLogRepository: Repository<ActivityLog>, mediaDataService: MediaDataService);
|
|
22
|
-
getAllActivityLog(mapped_entity_type: string, mapped_entity_id: number | string, category: string | undefined, loggedInUser: any): Promise<{
|
|
23
|
-
category: string;
|
|
24
|
-
user_name: any;
|
|
25
|
-
profile: any;
|
|
26
|
-
created_date: string | null;
|
|
27
|
-
mapped_entity_type: string;
|
|
28
|
-
mapped_entity_id: string;
|
|
29
|
-
title: string;
|
|
30
|
-
description: string;
|
|
31
|
-
action: string;
|
|
32
|
-
icon: string;
|
|
33
|
-
color: string;
|
|
34
|
-
additional_info_1: string;
|
|
35
|
-
additional_info_2: string;
|
|
36
|
-
additional_info_3: string;
|
|
37
|
-
id: number;
|
|
38
|
-
entity_type: string;
|
|
39
|
-
name: string;
|
|
40
|
-
status: string;
|
|
41
|
-
parent_type: string;
|
|
42
|
-
parent_id: number;
|
|
43
|
-
code: string;
|
|
44
|
-
created_by: number;
|
|
45
|
-
modified_by: number;
|
|
46
|
-
modified_date: Date;
|
|
47
|
-
enterprise_id: number;
|
|
48
|
-
organization_id: number;
|
|
49
|
-
appcode: string;
|
|
50
|
-
level_id: string;
|
|
51
|
-
level_type: string;
|
|
52
|
-
}[]>;
|
|
53
|
-
getAllActivityCategory(mapped_entity_id: number | string, mapped_entity_type: string, loggedInUser: any): Promise<{
|
|
54
|
-
label: any;
|
|
55
|
-
value: any;
|
|
56
|
-
}[]>;
|
|
57
|
-
}
|
|
@@ -1,112 +0,0 @@
|
|
|
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.ActivityLogRepository = exports.ACTIVITY_CATEGORIES = void 0;
|
|
16
|
-
const typeorm_1 = require("@nestjs/typeorm");
|
|
17
|
-
const media_data_service_1 = require("../../meta/service/media-data.service");
|
|
18
|
-
const activity_log_entity_1 = require("../entity/activity-log.entity");
|
|
19
|
-
const typeorm_2 = require("typeorm");
|
|
20
|
-
const moment = require("moment");
|
|
21
|
-
exports.ACTIVITY_CATEGORIES = {
|
|
22
|
-
ASSIGN: 'ASSIGN',
|
|
23
|
-
INTERACTION: 'INTERACTION',
|
|
24
|
-
FORM: 'FORM',
|
|
25
|
-
STAGE: 'STAGE',
|
|
26
|
-
ASSESSMENT: 'ASSESSMENT',
|
|
27
|
-
MEETING: 'MEETING',
|
|
28
|
-
PROCESS: 'PROCESS',
|
|
29
|
-
STATUS: 'STATUS',
|
|
30
|
-
TASK: 'TASK',
|
|
31
|
-
LEAD: 'LEAD',
|
|
32
|
-
STAGEGROUP: 'STAGE_GROUP',
|
|
33
|
-
};
|
|
34
|
-
let ActivityLogRepository = class ActivityLogRepository {
|
|
35
|
-
constructor(activityLogRepository, mediaDataService) {
|
|
36
|
-
this.activityLogRepository = activityLogRepository;
|
|
37
|
-
this.mediaDataService = mediaDataService;
|
|
38
|
-
}
|
|
39
|
-
async getAllActivityLog(mapped_entity_type, mapped_entity_id, category, loggedInUser) {
|
|
40
|
-
const { organization_id, id: loggedInUserId } = loggedInUser;
|
|
41
|
-
const query = this.activityLogRepository
|
|
42
|
-
.createQueryBuilder('log')
|
|
43
|
-
.leftJoin('cr_user', 'user', 'log.created_by = user.id')
|
|
44
|
-
.leftJoin('eth_user_profile', 'profile', 'profile.parent_id = user.id')
|
|
45
|
-
.addSelect('user.name', 'user_name')
|
|
46
|
-
.addSelect('profile.profile_image', 'profile_image')
|
|
47
|
-
.where('log.mapped_entity_type = :mapped_entity_type', {
|
|
48
|
-
mapped_entity_type,
|
|
49
|
-
})
|
|
50
|
-
.andWhere('log.organization_id = :organization_id', { organization_id })
|
|
51
|
-
.andWhere('log.mapped_entity_id = :mapped_entity_id', {
|
|
52
|
-
mapped_entity_id,
|
|
53
|
-
});
|
|
54
|
-
if (category) {
|
|
55
|
-
query.andWhere('log.category = :category', { category });
|
|
56
|
-
}
|
|
57
|
-
query.orderBy('log.created_date', 'DESC');
|
|
58
|
-
const rows = await query.getRawAndEntities();
|
|
59
|
-
const result = await Promise.all(rows.entities.map(async (entity, i) => {
|
|
60
|
-
const profileImageId = rows.raw[i].profile_image;
|
|
61
|
-
let profile = null;
|
|
62
|
-
if (profileImageId) {
|
|
63
|
-
profile = await this.mediaDataService.getMediaDownloadUrl(profileImageId, loggedInUser);
|
|
64
|
-
}
|
|
65
|
-
const formattedLabel = entity.category
|
|
66
|
-
.toLowerCase()
|
|
67
|
-
.replace(/_/g, ' ')
|
|
68
|
-
.replace(/\b\w/g, (char) => char.toUpperCase());
|
|
69
|
-
return {
|
|
70
|
-
...entity,
|
|
71
|
-
category: formattedLabel,
|
|
72
|
-
user_name: rows.raw[i].user_name,
|
|
73
|
-
profile,
|
|
74
|
-
created_date: entity.created_date
|
|
75
|
-
? moment(entity.created_date).local().format('DD-MMM, hh:mm A')
|
|
76
|
-
: null,
|
|
77
|
-
};
|
|
78
|
-
}));
|
|
79
|
-
return result;
|
|
80
|
-
}
|
|
81
|
-
async getAllActivityCategory(mapped_entity_id, mapped_entity_type, loggedInUser) {
|
|
82
|
-
const { organization_id } = loggedInUser;
|
|
83
|
-
const result = await this.activityLogRepository
|
|
84
|
-
.createQueryBuilder('log')
|
|
85
|
-
.select('DISTINCT UPPER(log.category)', 'category')
|
|
86
|
-
.where('log.mapped_entity_type = :mapped_entity_type', {
|
|
87
|
-
mapped_entity_type,
|
|
88
|
-
})
|
|
89
|
-
.andWhere('log.organization_id = :organization_id', { organization_id })
|
|
90
|
-
.andWhere('log.mapped_entity_id = :mapped_entity_id', {
|
|
91
|
-
mapped_entity_id,
|
|
92
|
-
})
|
|
93
|
-
.getRawMany();
|
|
94
|
-
return result.map((row) => {
|
|
95
|
-
const formattedLabel = row.category
|
|
96
|
-
.toLowerCase()
|
|
97
|
-
.replace(/_/g, ' ')
|
|
98
|
-
.replace(/\b\w/g, (char) => char.toUpperCase());
|
|
99
|
-
return {
|
|
100
|
-
label: formattedLabel,
|
|
101
|
-
value: row.category,
|
|
102
|
-
};
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
exports.ActivityLogRepository = ActivityLogRepository;
|
|
107
|
-
exports.ActivityLogRepository = ActivityLogRepository = __decorate([
|
|
108
|
-
__param(0, (0, typeorm_1.InjectRepository)(activity_log_entity_1.ActivityLog)),
|
|
109
|
-
__metadata("design:paramtypes", [typeorm_2.Repository,
|
|
110
|
-
media_data_service_1.MediaDataService])
|
|
111
|
-
], ActivityLogRepository);
|
|
112
|
-
//# sourceMappingURL=activity-log.repository.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"activity-log.repository.js","sourceRoot":"","sources":["../../../../src/module/workflow/repository/activity-log.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6CAAmD;AACnD,8EAA8E;AAC9E,uEAA4D;AAC5D,qCAAqC;AACrC,iCAAiC;AAEpB,QAAA,mBAAmB,GAAG;IACjC,MAAM,EAAE,QAAQ;IAChB,WAAW,EAAE,aAAa;IAC1B,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,UAAU,EAAE,YAAY;IACxB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,UAAU,EAAE,aAAa;CACjB,CAAC;AAIX,IAAa,qBAAqB,GAAlC,MAAa,qBAAqB;IAChC,YAEmB,qBAA8C,EAC9C,gBAAkC;QADlC,0BAAqB,GAArB,qBAAqB,CAAyB;QAC9C,qBAAgB,GAAhB,gBAAgB,CAAkB;IAClD,CAAC;IAEJ,KAAK,CAAC,iBAAiB,CACrB,kBAA0B,EAC1B,gBAAiC,EACjC,QAA4B,EAC5B,YAAY;QAEZ,MAAM,EAAE,eAAe,EAAE,EAAE,EAAE,cAAc,EAAE,GAAG,YAAY,CAAC;QAE7D,MAAM,KAAK,GAAG,IAAI,CAAC,qBAAqB;aACrC,kBAAkB,CAAC,KAAK,CAAC;aACzB,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,0BAA0B,CAAC;aACvD,QAAQ,CAAC,kBAAkB,EAAE,SAAS,EAAE,6BAA6B,CAAC;aACtE,SAAS,CAAC,WAAW,EAAE,WAAW,CAAC;aACnC,SAAS,CAAC,uBAAuB,E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
|
-
import { CommTemplate } from '../entity/comm-template.entity';
|
|
3
|
-
import { TemplateAttach } from '../entity/template-attach-mapper.entity';
|
|
4
|
-
import { MediaDataService } from 'src/module/meta/service/media-data.service';
|
|
5
|
-
export declare class CommTemplateRepository {
|
|
6
|
-
private readonly commTemplateRepository;
|
|
7
|
-
private readonly templateAttachEntity;
|
|
8
|
-
private readonly mediaDataService;
|
|
9
|
-
private readonly dataSource;
|
|
10
|
-
constructor(commTemplateRepository: Repository<CommTemplate>, templateAttachEntity: Repository<TemplateAttach>, mediaDataService: MediaDataService, dataSource: DataSource);
|
|
11
|
-
getAllCommTemplate(entity_type: string, action_id?: number, loggedInUser?: any): Promise<CommTemplate[]>;
|
|
12
|
-
save(commTemplate: any): Promise<any>;
|
|
13
|
-
delete(id: any): Promise<any>;
|
|
14
|
-
getTemplateByCode(entity_type: string, id: number, loggedInUser: any): Promise<any | null>;
|
|
15
|
-
}
|