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,343 +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.WorkflowMetaService = void 0;
|
|
16
|
-
const common_1 = require("@nestjs/common");
|
|
17
|
-
const typeorm_1 = require("@nestjs/typeorm");
|
|
18
|
-
const entity_service_impl_service_1 = require("../../meta/service/entity-service-impl.service");
|
|
19
|
-
const typeorm_2 = require("typeorm");
|
|
20
|
-
const stage_movement_data_entity_1 = require("../entity/stage-movement-data.entity");
|
|
21
|
-
const activity_log_repository_1 = require("../repository/activity-log.repository");
|
|
22
|
-
const stage_movement_repository_1 = require("../repository/stage-movement.repository");
|
|
23
|
-
const action_data_service_1 = require("./action-data.service");
|
|
24
|
-
const activity_log_service_1 = require("./activity-log.service");
|
|
25
|
-
const entity_modification_service_1 = require("./entity-modification.service");
|
|
26
|
-
const task_service_1 = require("./task.service");
|
|
27
|
-
let WorkflowMetaService = class WorkflowMetaService extends entity_service_impl_service_1.EntityServiceImpl {
|
|
28
|
-
constructor(stageMovementRepo, stageMovementRepository, dataSource, actionDataService, taskService, activityLogService, modificationService) {
|
|
29
|
-
super();
|
|
30
|
-
this.stageMovementRepo = stageMovementRepo;
|
|
31
|
-
this.stageMovementRepository = stageMovementRepository;
|
|
32
|
-
this.dataSource = dataSource;
|
|
33
|
-
this.actionDataService = actionDataService;
|
|
34
|
-
this.taskService = taskService;
|
|
35
|
-
this.activityLogService = activityLogService;
|
|
36
|
-
this.modificationService = modificationService;
|
|
37
|
-
}
|
|
38
|
-
async getFirstStage(loggedInUser, mapped_entity_type, mapped_entity_id) {
|
|
39
|
-
return this.stageMovementRepository.getFirstStage({
|
|
40
|
-
loggedInUser,
|
|
41
|
-
mapped_entity_type,
|
|
42
|
-
mapped_entity_id,
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
async getCurrentStage(mapped_entity_type, mapped_entity_id, loggedInUser) {
|
|
46
|
-
const currentStage = await this.stageMovementRepo.findOne({
|
|
47
|
-
where: {
|
|
48
|
-
mapped_entity_type,
|
|
49
|
-
mapped_entity_id,
|
|
50
|
-
is_current: 'Y',
|
|
51
|
-
},
|
|
52
|
-
});
|
|
53
|
-
if (!currentStage) {
|
|
54
|
-
return null;
|
|
55
|
-
}
|
|
56
|
-
const getGroupName = await this.dataSource.query(`SELECT name FROM cr_wf_stage_group WHERE id = ${currentStage?.stage_group_id}`);
|
|
57
|
-
return {
|
|
58
|
-
...currentStage,
|
|
59
|
-
stage_group_name: getGroupName[0]?.name,
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
async getNextStage(currentStage) {
|
|
63
|
-
const nextStage = await this.stageMovementRepository.getNextStageOrFirstOfNextGroup(currentStage?.stage_group_id, currentStage?.stage_id);
|
|
64
|
-
if (!nextStage) {
|
|
65
|
-
return { hasNextStage: false, nextStage: null };
|
|
66
|
-
}
|
|
67
|
-
const groupName = await this.dataSource.query(`SELECT name FROM cr_wf_stage_group WHERE id = ${nextStage?.stage_group_id}`);
|
|
68
|
-
return {
|
|
69
|
-
hasNextStage: !!nextStage,
|
|
70
|
-
nextStage: { ...nextStage, stage_group_name: groupName[0]?.name },
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
async moveToNextStage(mapped_entity_type, mapped_entity_id, loggedInUser, reason_code, remark) {
|
|
74
|
-
const now = new Date();
|
|
75
|
-
let currentStage = await this.getCurrentStage(mapped_entity_type, mapped_entity_id, loggedInUser);
|
|
76
|
-
if (currentStage) {
|
|
77
|
-
await this.taskService.createSystemNote({
|
|
78
|
-
reason_code: reason_code || '',
|
|
79
|
-
remark: remark || '',
|
|
80
|
-
mapped_entity_id,
|
|
81
|
-
stage_id: currentStage.stage_id,
|
|
82
|
-
action_id: currentStage.action_id,
|
|
83
|
-
stage_group_id: currentStage.stage_group_id,
|
|
84
|
-
}, loggedInUser);
|
|
85
|
-
}
|
|
86
|
-
if (!currentStage) {
|
|
87
|
-
const getAllResult = await this.getFirstStage(loggedInUser, mapped_entity_type, mapped_entity_id);
|
|
88
|
-
const { mappingUsed, stageGroup, firstStage } = getAllResult;
|
|
89
|
-
currentStage = await this.stageMovementRepo.save({
|
|
90
|
-
entity_type: 'WFSA',
|
|
91
|
-
mapped_entity_type,
|
|
92
|
-
mapped_entity_id,
|
|
93
|
-
name: firstStage.name,
|
|
94
|
-
status: firstStage.status,
|
|
95
|
-
current_user_id: loggedInUser.id,
|
|
96
|
-
stage_action_mapping_id: firstStage.id,
|
|
97
|
-
orgnization_id: loggedInUser.organization_id,
|
|
98
|
-
stage_group_id: stageGroup.id,
|
|
99
|
-
stage_id: firstStage.id,
|
|
100
|
-
start_date: new Date(),
|
|
101
|
-
is_current: 'Y',
|
|
102
|
-
});
|
|
103
|
-
this.populateActionService(currentStage.stage_id, loggedInUser, mapped_entity_id, mapped_entity_type);
|
|
104
|
-
return `Initialized workflow with first stage (Stage ID: ${firstStage.id}).`;
|
|
105
|
-
}
|
|
106
|
-
const stageData = await this.getNextStage(currentStage);
|
|
107
|
-
if (stageData.hasNextStage) {
|
|
108
|
-
const { nextStage } = stageData;
|
|
109
|
-
if (nextStage.stage_group_id !== currentStage.stage_group_id) {
|
|
110
|
-
try {
|
|
111
|
-
await this.activityLogService.logActivity({
|
|
112
|
-
mapped_entity_id,
|
|
113
|
-
mapped_entity_type,
|
|
114
|
-
title: 'Stage Group Completed',
|
|
115
|
-
description: `Stage Group changed from ${currentStage.stage_group_name} to ${nextStage.stage_group_name}.`,
|
|
116
|
-
action: 'completed',
|
|
117
|
-
category: activity_log_repository_1.ACTIVITY_CATEGORIES.STAGEGROUP,
|
|
118
|
-
appcode: loggedInUser.appcode,
|
|
119
|
-
}, loggedInUser);
|
|
120
|
-
}
|
|
121
|
-
catch (error) {
|
|
122
|
-
console.error('Failed to log stage group completion:', error?.message || error);
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
currentStage.end_date = now;
|
|
126
|
-
currentStage.is_current = 'N';
|
|
127
|
-
await this.stageMovementRepo.save(currentStage);
|
|
128
|
-
await this.stageMovementRepo.save({
|
|
129
|
-
entity_type: 'WFSA',
|
|
130
|
-
mapped_entity_type,
|
|
131
|
-
mapped_entity_id,
|
|
132
|
-
name: nextStage.name,
|
|
133
|
-
status: nextStage.status,
|
|
134
|
-
current_user_id: loggedInUser.id,
|
|
135
|
-
stage_action_mapping_id: nextStage.id,
|
|
136
|
-
organization_id: loggedInUser.organization_id,
|
|
137
|
-
start_date: now,
|
|
138
|
-
stage_group_id: nextStage?.stage_group_id,
|
|
139
|
-
stage_id: nextStage.id,
|
|
140
|
-
is_current: 'Y',
|
|
141
|
-
});
|
|
142
|
-
this.populateActionService(stageData.nextStage.id, loggedInUser, mapped_entity_id, mapped_entity_type);
|
|
143
|
-
try {
|
|
144
|
-
await this.activityLogService.logActivity({
|
|
145
|
-
mapped_entity_id: mapped_entity_id,
|
|
146
|
-
mapped_entity_type: mapped_entity_type,
|
|
147
|
-
title: 'Stage Completed',
|
|
148
|
-
description: `Stage changed from ${currentStage.name} to ${nextStage.name}.`,
|
|
149
|
-
action: 'status',
|
|
150
|
-
category: activity_log_repository_1.ACTIVITY_CATEGORIES.STAGE,
|
|
151
|
-
appcode: loggedInUser.appcode,
|
|
152
|
-
}, loggedInUser);
|
|
153
|
-
}
|
|
154
|
-
catch (error) {
|
|
155
|
-
console.error('Failed to log activity for stage completion:', error?.message || error);
|
|
156
|
-
}
|
|
157
|
-
return `Moved to next stage (Stage ID: ${nextStage.id}).`;
|
|
158
|
-
}
|
|
159
|
-
currentStage.end_date = now;
|
|
160
|
-
currentStage.is_current = 'N';
|
|
161
|
-
await this.stageMovementRepo.save(currentStage);
|
|
162
|
-
return 'Workflow completed. No next stage available.';
|
|
163
|
-
}
|
|
164
|
-
async populateActionService(stage_id, loggedInUser, mapped_entity_id, mapped_entity_type) {
|
|
165
|
-
const actions = await this.stageMovementRepository.getAllActionByStageId(stage_id);
|
|
166
|
-
if (!actions || actions.length === 0) {
|
|
167
|
-
return 'No actions found for this stage.';
|
|
168
|
-
}
|
|
169
|
-
const firstAction = actions[0];
|
|
170
|
-
const actionCategory = await this.dataSource.query(`SELECT code FROM cr_wf_action_category WHERE id = ${Number(firstAction.action_category)}`);
|
|
171
|
-
const assignmentType = await this.dataSource.query(`SELECT value FROM cr_list_master_items WHERE id = ${Number(firstAction.assignment_type)}`);
|
|
172
|
-
await this.actionDataService.saveActionData(actions, loggedInUser, mapped_entity_id, mapped_entity_type);
|
|
173
|
-
await this.taskService.saveActionData(actions, loggedInUser, mapped_entity_id, mapped_entity_type);
|
|
174
|
-
if (actionCategory[0]?.code == 'OWAS' &&
|
|
175
|
-
assignmentType[0]?.value == 'round_robin') {
|
|
176
|
-
console.log('Auto-assigning owner based on round-robin assignment type');
|
|
177
|
-
await this.assignLead(loggedInUser, mapped_entity_id, mapped_entity_type, stage_id, actions);
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
async updateLeadOwner(entityData, loggedInUser) {
|
|
181
|
-
const { lead_id, lead_owner, stage_id, entity_type } = entityData;
|
|
182
|
-
const updatedData = {
|
|
183
|
-
id: lead_id,
|
|
184
|
-
lead_owner: lead_owner,
|
|
185
|
-
entity_type: entity_type,
|
|
186
|
-
};
|
|
187
|
-
entityData = updatedData;
|
|
188
|
-
this.modificationService.logModification({
|
|
189
|
-
entity_type: 'ENMD',
|
|
190
|
-
mapped_entity_type: entity_type,
|
|
191
|
-
mapped_entity_id: lead_id,
|
|
192
|
-
attribute_key: 'lead_owner',
|
|
193
|
-
new_value: lead_owner,
|
|
194
|
-
old_value: entityData.lead_owner,
|
|
195
|
-
remarks: entityData.remarks,
|
|
196
|
-
reason_code: entityData.reason_code,
|
|
197
|
-
stage_id: stage_id,
|
|
198
|
-
action_id: entityData.action_id,
|
|
199
|
-
}, loggedInUser);
|
|
200
|
-
const leadData = await this.getEntityData('LEAD', lead_id, loggedInUser);
|
|
201
|
-
const unassignedListMasterItemData = await this.dataSource.query(`SELECT name, id
|
|
202
|
-
FROM cr_list_master_items
|
|
203
|
-
WHERE listtype = "LEST" AND organization_id = ?
|
|
204
|
-
AND value IN (?, ?)`, [loggedInUser.organization_id, 'unassigned', 'active']);
|
|
205
|
-
const unassignedId = unassignedListMasterItemData.find((item) => item.name.toLowerCase() === 'unassigned')?.id;
|
|
206
|
-
const activeId = unassignedListMasterItemData.find((item) => item.name.toLowerCase() === 'active')?.id;
|
|
207
|
-
if (leadData?.lead_status === unassignedId) {
|
|
208
|
-
leadData.lead_status = activeId;
|
|
209
|
-
}
|
|
210
|
-
const result = await super.updateEntity({
|
|
211
|
-
...entityData,
|
|
212
|
-
status: leadData?.lead_status,
|
|
213
|
-
lead_status: leadData?.lead_status,
|
|
214
|
-
}, loggedInUser);
|
|
215
|
-
await this.dataSource.query(`UPDATE cr_wf_action_data SET user_id =?
|
|
216
|
-
WHERE mapped_entity_id=?
|
|
217
|
-
AND mapped_entity_type = ?
|
|
218
|
-
AND stage_id = ?
|
|
219
|
-
AND (is_current = 'Y' OR is_current IS NULL)
|
|
220
|
-
`, [lead_owner, lead_id, entity_type, stage_id]);
|
|
221
|
-
await this.dataSource.query(`UPDATE crm_lead_meeting SET user_id=?
|
|
222
|
-
WHERE stage_id = ?
|
|
223
|
-
AND mapped_entity_id = ?
|
|
224
|
-
AND mapped_entity_type = "LEAD"
|
|
225
|
-
AND (status='scheduled' OR status='rescheduled')
|
|
226
|
-
`, [lead_owner, stage_id, lead_id]);
|
|
227
|
-
const taskRows = await this.dataSource.query(`SELECT id,status FROM cr_wf_task_data
|
|
228
|
-
WHERE mapped_entity_id = ?
|
|
229
|
-
AND mapped_entity_type = ?
|
|
230
|
-
AND stage_id = ?`, [lead_id, entity_type, stage_id]);
|
|
231
|
-
for (const task of taskRows) {
|
|
232
|
-
const statusRows = await this.dataSource.query(`SELECT value FROM cr_list_master_items
|
|
233
|
-
WHERE id = ? AND organization_id = ?`, [task.status, loggedInUser.organization_id]);
|
|
234
|
-
const statusName = statusRows[0]?.value?.toLowerCase() || '';
|
|
235
|
-
if (['todo', 'in_progress'].includes(statusName) ||
|
|
236
|
-
statusName === 'todo') {
|
|
237
|
-
await this.dataSource.query(`UPDATE cr_wf_task_data SET user_id = ?, task_owner = ? WHERE id = ?`, [lead_owner, lead_owner, task.id]);
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
const leadOwnerName = await this.dataSource.query(`SELECT name FROM cr_user WHERE id = ?`, [entityData?.lead_owner]);
|
|
241
|
-
try {
|
|
242
|
-
const logData = {
|
|
243
|
-
mapped_entity_id: lead_id,
|
|
244
|
-
mapped_entity_type: 'LEAD',
|
|
245
|
-
title: 'Owner Assigned',
|
|
246
|
-
description: leadData?.lead_owner
|
|
247
|
-
? `${leadOwnerName[0]?.name} reassigned as Lead owner.`
|
|
248
|
-
: `${leadOwnerName[0]?.name} assigned as Lead owner.`,
|
|
249
|
-
action: 'assign',
|
|
250
|
-
category: activity_log_repository_1.ACTIVITY_CATEGORIES.ASSIGN,
|
|
251
|
-
appcode: loggedInUser.appcode,
|
|
252
|
-
};
|
|
253
|
-
await this.activityLogService.logActivity(logData, loggedInUser);
|
|
254
|
-
}
|
|
255
|
-
catch (error) {
|
|
256
|
-
console.error('Failed to log activity for meeting:', error?.message || error);
|
|
257
|
-
}
|
|
258
|
-
return result;
|
|
259
|
-
}
|
|
260
|
-
async assignLead(loggedInUser, mapped_entity_id, mapped_entity_type, stage_id, actions) {
|
|
261
|
-
const { organization_id, level_id, level_type } = loggedInUser;
|
|
262
|
-
const owners = await this.dataSource.query(`
|
|
263
|
-
SELECT DISTINCT u.id
|
|
264
|
-
FROM cr_user u
|
|
265
|
-
JOIN cr_user_role_mapping urm ON u.id = urm.user_id
|
|
266
|
-
JOIN cr_role r ON urm.role_id = r.id
|
|
267
|
-
JOIN cr_module_access ma ON ma.role_code = r.code
|
|
268
|
-
WHERE urm.organization_id = ?
|
|
269
|
-
AND urm.level_id = ?
|
|
270
|
-
AND urm.level_type = ?
|
|
271
|
-
AND urm.appcode = 'CRM'
|
|
272
|
-
AND ma.appcode = 'CRM'
|
|
273
|
-
AND ma.module_code = 'lead_crm_sch'
|
|
274
|
-
AND ma.access_flag = 1
|
|
275
|
-
AND ma.action_type = 'LEAD_OWNER'
|
|
276
|
-
ORDER BY u.id ASC
|
|
277
|
-
`, [organization_id, Number(level_id), level_type]);
|
|
278
|
-
if (!owners?.length)
|
|
279
|
-
throw new Error('No eligible users found');
|
|
280
|
-
const userIds = owners.map((o) => Number(o.id));
|
|
281
|
-
const placeholders = userIds.map(() => '?').join(',');
|
|
282
|
-
const lastRow = await this.dataSource.query(`
|
|
283
|
-
SELECT lead_owner
|
|
284
|
-
FROM crm_lead
|
|
285
|
-
WHERE organization_id = ?
|
|
286
|
-
AND level_id = ?
|
|
287
|
-
AND level_type = ?
|
|
288
|
-
AND lead_owner IN (${placeholders})
|
|
289
|
-
ORDER BY created_date DESC
|
|
290
|
-
LIMIT 1
|
|
291
|
-
`, [organization_id, Number(level_id), level_type, ...userIds]);
|
|
292
|
-
const lastAssigned = lastRow.length ? Number(lastRow[0].lead_owner) : null;
|
|
293
|
-
const lastIdx = lastAssigned != null ? userIds.indexOf(lastAssigned) : -1;
|
|
294
|
-
const nextIdx = (lastIdx + 1) % userIds.length;
|
|
295
|
-
const nextUser = userIds[nextIdx];
|
|
296
|
-
await this.dataSource.query(`
|
|
297
|
-
UPDATE crm_lead
|
|
298
|
-
SET lead_owner = ?
|
|
299
|
-
WHERE organization_id = ?
|
|
300
|
-
AND level_id = ?
|
|
301
|
-
AND level_type = ?
|
|
302
|
-
AND lead_owner IS NULL
|
|
303
|
-
ORDER BY created_date ASC
|
|
304
|
-
LIMIT 1
|
|
305
|
-
`, [nextUser, organization_id, Number(level_id), level_type]);
|
|
306
|
-
console.log(`Assigning lead to user ID: ${nextUser}`);
|
|
307
|
-
const firstAction = actions[0];
|
|
308
|
-
await this.taskService.moveTask(loggedInUser, {
|
|
309
|
-
mapped_entity_type,
|
|
310
|
-
mapped_entity_id,
|
|
311
|
-
stage_id,
|
|
312
|
-
action_id: firstAction.id,
|
|
313
|
-
});
|
|
314
|
-
if (actions.length == 1) {
|
|
315
|
-
console.log('Only one action present and it is owner assignment. Moving to next stage.');
|
|
316
|
-
await this.moveToNextStage(mapped_entity_type, mapped_entity_id, loggedInUser);
|
|
317
|
-
}
|
|
318
|
-
await this.updateLeadOwner({
|
|
319
|
-
lead_id: mapped_entity_id,
|
|
320
|
-
lead_owner: nextUser,
|
|
321
|
-
stage_id: stage_id,
|
|
322
|
-
entity_type: mapped_entity_type,
|
|
323
|
-
action_id: firstAction.id,
|
|
324
|
-
}, loggedInUser);
|
|
325
|
-
return nextUser;
|
|
326
|
-
}
|
|
327
|
-
};
|
|
328
|
-
exports.WorkflowMetaService = WorkflowMetaService;
|
|
329
|
-
exports.WorkflowMetaService = WorkflowMetaService = __decorate([
|
|
330
|
-
(0, common_1.Injectable)(),
|
|
331
|
-
__param(0, (0, typeorm_1.InjectRepository)(stage_movement_data_entity_1.StageMovementData)),
|
|
332
|
-
__param(4, (0, common_1.Inject)('TaskService')),
|
|
333
|
-
__param(5, (0, common_1.Inject)('ActivityLogService')),
|
|
334
|
-
__param(6, (0, common_1.Inject)('EntityModificationService')),
|
|
335
|
-
__metadata("design:paramtypes", [typeorm_2.Repository,
|
|
336
|
-
stage_movement_repository_1.StageMovementRepository,
|
|
337
|
-
typeorm_2.DataSource,
|
|
338
|
-
action_data_service_1.ActionDataService,
|
|
339
|
-
task_service_1.TaskService,
|
|
340
|
-
activity_log_service_1.ActivityLogService,
|
|
341
|
-
entity_modification_service_1.EntityModificationService])
|
|
342
|
-
], WorkflowMetaService);
|
|
343
|
-
//# sourceMappingURL=workflow-meta.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-meta.service.js","sourceRoot":"","sources":["../../../../src/module/workflow/service/workflow-meta.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAoD;AACpD,6CAAmD;AACnD,gGAAwF;AAExF,qCAAiD;AACjD,qFAAyE;AACzE,mFAA4E;AAC5E,uFAAkF;AAClF,+DAA0D;AAC1D,iEAA4D;AAC5D,+EAA0E;AAC1E,iDAA6C;AAGtC,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,+CAAiB;IACxD,YAEmB,iBAAgD,EAChD,uBAAgD,EAChD,UAAsB,EACtB,iBAAoC,EAEpC,WAAwB,EAExB,kBAAsC,EAEtC,mBAA8C;QAE/D,KAAK,EAAE,CAAC;QAXS,sBAAiB,GAAjB,iBAAiB,CAA+B;QAChD,4BAAuB,GAAvB,uBAAuB,CAAyB;QAChD,eAAU,GAAV,UAAU,CAAY;QACtB,sBAAiB,GAAjB,iBAAiB,CAAmB;QAEpC,gBAAW,GAAX,WAAW,CAAa;QAExB,uBAAkB,GAAlB,kBAAkB,CAAoB;QAEtC,wBAAmB,GAAnB,mBAAmB,CAA2B;IAGjE,CAAC;IAGD,KAAK,CAAC,aAAa,CACjB,YAAsB,EACtB,kBAA0B,EAC1B,gBAAwB;QAMxB,OAAO,IAAI,CAAC,uBAAuB,CAAC,a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e,CACxB;YACE,OAAO,EAAE,gBAAgB;YACzB,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,WAAW,EAAE,kBAAkB;YAC/B,SAAS,EAAE,WAAW,CAAC,EAAE;SAC1B,EACD,YAAY,CACb,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF,CAAA;AAriBY,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,0BAAgB,EAAC,8CAAiB,CAAC,CAAA;IAKnC,WAAA,IAAA,eAAM,EAAC,aAAa,CAAC,CAAA;IAErB,WAAA,IAAA,eAAM,EAAC,oBAAoB,CAAC,CAAA;IAE5B,WAAA,IAAA,eAAM,EAAC,2BAA2B,CAAC,CAAA;qCARA,oBAAU;QACJ,mDAAuB;QACpC,oBAAU;QACH,uCAAiB;QAEvB,0BAAW;QAEJ,yCAAkB;QAEjB,uDAAyB;GAZtD,mBAAmB,CAqiB/B"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { EntityServiceImpl } from 'src/module/meta/service/entity-service-impl.service';
|
|
2
|
-
import { DataSource } from 'typeorm';
|
|
3
|
-
import { WorkflowRepository } from '../repository/workflow.repository';
|
|
4
|
-
import { BaseEntity } from 'src/module/meta/entity/base-entity.entity';
|
|
5
|
-
import { UserData } from 'src/module/user/entity/user.entity';
|
|
6
|
-
import { ListMasterService } from 'src/module/listmaster/service/list-master.service';
|
|
7
|
-
import { Workflow } from '../entity/workflow.entity';
|
|
8
|
-
import { StageGroupRepository } from '../repository/stage-group.repository';
|
|
9
|
-
import { StageGroupService } from './stage-group.service';
|
|
10
|
-
export declare class WorkflowService extends EntityServiceImpl {
|
|
11
|
-
private readonly dataSource;
|
|
12
|
-
private readonly workflowRepository;
|
|
13
|
-
private readonly listMasterService;
|
|
14
|
-
private readonly stateGroupService;
|
|
15
|
-
private readonly stageGroupRepository;
|
|
16
|
-
constructor(dataSource: DataSource, workflowRepository: WorkflowRepository, listMasterService: ListMasterService, stateGroupService: StageGroupService, stageGroupRepository: StageGroupRepository);
|
|
17
|
-
getAllWorkflows(entity_type: string, level_id: string, level_type: string): Promise<Workflow[]>;
|
|
18
|
-
getWorkflowById(id: number): Promise<any>;
|
|
19
|
-
updateEntity(entityData: BaseEntity, loggedInUser: UserData): Promise<any>;
|
|
20
|
-
deleteWorkflowById(id: number): Promise<{
|
|
21
|
-
message: string;
|
|
22
|
-
}>;
|
|
23
|
-
deleteEntity(entityType: string, id: number, loggedInUser: UserData): Promise<any>;
|
|
24
|
-
updateSequence(body: any[], loggedInUser: any): Promise<{
|
|
25
|
-
updated: number;
|
|
26
|
-
results: {
|
|
27
|
-
id: any;
|
|
28
|
-
success: boolean;
|
|
29
|
-
result?: any;
|
|
30
|
-
error?: string;
|
|
31
|
-
}[];
|
|
32
|
-
}>;
|
|
33
|
-
}
|
|
@@ -1,140 +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.WorkflowService = void 0;
|
|
16
|
-
const common_1 = require("@nestjs/common");
|
|
17
|
-
const entity_service_impl_service_1 = require("../../meta/service/entity-service-impl.service");
|
|
18
|
-
const typeorm_1 = require("typeorm");
|
|
19
|
-
const workflow_repository_1 = require("../repository/workflow.repository");
|
|
20
|
-
const list_master_service_1 = require("../../listmaster/service/list-master.service");
|
|
21
|
-
const global_constant_1 = require("../../../constant/global.constant");
|
|
22
|
-
const workflow_entity_1 = require("../entity/workflow.entity");
|
|
23
|
-
const stage_group_repository_1 = require("../repository/stage-group.repository");
|
|
24
|
-
const stage_group_service_1 = require("./stage-group.service");
|
|
25
|
-
let WorkflowService = class WorkflowService extends entity_service_impl_service_1.EntityServiceImpl {
|
|
26
|
-
constructor(dataSource, workflowRepository, listMasterService, stateGroupService, stageGroupRepository) {
|
|
27
|
-
super();
|
|
28
|
-
this.dataSource = dataSource;
|
|
29
|
-
this.workflowRepository = workflowRepository;
|
|
30
|
-
this.listMasterService = listMasterService;
|
|
31
|
-
this.stateGroupService = stateGroupService;
|
|
32
|
-
this.stageGroupRepository = stageGroupRepository;
|
|
33
|
-
}
|
|
34
|
-
async getAllWorkflows(entity_type, level_id, level_type) {
|
|
35
|
-
return this.workflowRepository.getAllWorkflowsByFilters(entity_type, level_id, level_type);
|
|
36
|
-
}
|
|
37
|
-
async getWorkflowById(id) {
|
|
38
|
-
const result = await this.dataSource.query(`SELECT * FROM cr_workflow WHERE id = ?`, [id]);
|
|
39
|
-
return result[0] || null;
|
|
40
|
-
}
|
|
41
|
-
async updateEntity(entityData, loggedInUser) {
|
|
42
|
-
const resolveStatus = await this.listMasterService.getResolvedListCode(global_constant_1.STATUS_INACTIVE, loggedInUser?.organization_id || 0);
|
|
43
|
-
const workflowId = entityData.id;
|
|
44
|
-
const { level_id, level_type, organization_id } = loggedInUser;
|
|
45
|
-
if (entityData.status == resolveStatus.id) {
|
|
46
|
-
const existingWorkflow = (await this.getEntityData(global_constant_1.WORKFLOW, workflowId, loggedInUser));
|
|
47
|
-
if (!existingWorkflow) {
|
|
48
|
-
return { success: false, error: 'Workflow not found' };
|
|
49
|
-
}
|
|
50
|
-
if (existingWorkflow.is_default) {
|
|
51
|
-
return {
|
|
52
|
-
success: false,
|
|
53
|
-
error: 'Cannot inactivate because it is default.',
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
if (existingWorkflow.is_factory) {
|
|
57
|
-
return {
|
|
58
|
-
success: false,
|
|
59
|
-
error: 'Cannot inactivate because it is factory.',
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
const isDefault = [true, 1, 'true'].includes(entityData.is_default);
|
|
64
|
-
if (isDefault) {
|
|
65
|
-
await this.dataSource
|
|
66
|
-
.createQueryBuilder()
|
|
67
|
-
.update(workflow_entity_1.Workflow)
|
|
68
|
-
.set({ is_default: 0 })
|
|
69
|
-
.where('level_id = :level_id AND level_type = :level_type AND id != :currentId', {
|
|
70
|
-
level_id,
|
|
71
|
-
level_type,
|
|
72
|
-
currentId: workflowId,
|
|
73
|
-
})
|
|
74
|
-
.execute();
|
|
75
|
-
await this.dataSource.query(`UPDATE cr_workflow_level_mapping
|
|
76
|
-
SET workflow_id = ?
|
|
77
|
-
WHERE mapped_level_id = ? AND mapped_level_type = ?`, [workflowId, level_id, level_type]);
|
|
78
|
-
}
|
|
79
|
-
return super.updateEntity(entityData, loggedInUser);
|
|
80
|
-
}
|
|
81
|
-
async deleteWorkflowById(id) {
|
|
82
|
-
return this.workflowRepository.deleteWorkflowById(id);
|
|
83
|
-
}
|
|
84
|
-
async deleteEntity(entityType, id, loggedInUser) {
|
|
85
|
-
const getWorkflow = await this.getEntityData(entityType, id, loggedInUser);
|
|
86
|
-
if (!getWorkflow) {
|
|
87
|
-
throw new common_1.BadRequestException('Workflow not found');
|
|
88
|
-
}
|
|
89
|
-
if (getWorkflow.is_default) {
|
|
90
|
-
throw new common_1.BadRequestException('Cannot delete workflow because it is default.');
|
|
91
|
-
}
|
|
92
|
-
if (getWorkflow.is_factory) {
|
|
93
|
-
throw new common_1.BadRequestException('Cannot delete workflow because it is factory.');
|
|
94
|
-
}
|
|
95
|
-
const getAllStageGroup = await this.dataSource.query(`SELECT id FROM cr_wf_stage_group WHERE workflow_id = ? AND level_id = ? AND level_type = ?`, [id, loggedInUser.level_id, loggedInUser.level_type]);
|
|
96
|
-
if (getAllStageGroup.length > 0) {
|
|
97
|
-
for (const stageGroup of getAllStageGroup) {
|
|
98
|
-
await this.stateGroupService.deleteEntity('WFSG', stageGroup.id, loggedInUser);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
const deleteWorkflow = await super.deleteEntity(entityType, id, loggedInUser);
|
|
102
|
-
return deleteWorkflow;
|
|
103
|
-
}
|
|
104
|
-
async updateSequence(body, loggedInUser) {
|
|
105
|
-
if (!Array.isArray(body) || body.length === 0) {
|
|
106
|
-
throw new common_1.BadRequestException('Invalid input. Expected a non-empty array.');
|
|
107
|
-
}
|
|
108
|
-
const results = [];
|
|
109
|
-
for (const item of body) {
|
|
110
|
-
if (!item.id || item.sequence === undefined) {
|
|
111
|
-
results.push({
|
|
112
|
-
id: item.id || null,
|
|
113
|
-
success: false,
|
|
114
|
-
error: 'Missing id or sequence',
|
|
115
|
-
});
|
|
116
|
-
continue;
|
|
117
|
-
}
|
|
118
|
-
try {
|
|
119
|
-
const result = await super.updateEntity(item, loggedInUser);
|
|
120
|
-
results.push({ id: item.id, success: true, result });
|
|
121
|
-
}
|
|
122
|
-
catch (err) {
|
|
123
|
-
results.push({ id: item.id, success: false, error: err.message });
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
return { updated: results.filter((r) => r.success).length, results };
|
|
127
|
-
}
|
|
128
|
-
};
|
|
129
|
-
exports.WorkflowService = WorkflowService;
|
|
130
|
-
exports.WorkflowService = WorkflowService = __decorate([
|
|
131
|
-
(0, common_1.Injectable)(),
|
|
132
|
-
__param(2, (0, common_1.Inject)('ListMasterService')),
|
|
133
|
-
__param(3, (0, common_1.Inject)('StageGroupService')),
|
|
134
|
-
__metadata("design:paramtypes", [typeorm_1.DataSource,
|
|
135
|
-
workflow_repository_1.WorkflowRepository,
|
|
136
|
-
list_master_service_1.ListMasterService,
|
|
137
|
-
stage_group_service_1.StageGroupService,
|
|
138
|
-
stage_group_repository_1.StageGroupRepository])
|
|
139
|
-
], WorkflowService);
|
|
140
|
-
//# sourceMappingURL=workflow.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.service.js","sourceRoot":"","sources":["../../../../src/module/workflow/service/workflow.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,2CAAyE;AACzE,gGAAwF;AACxF,qCAAyC;AACzC,2EAAuE;AAGvE,sFAAsF;AACtF,uEAAyE;AACzE,+DAAqD;AAErD,iFAA4E;AAC5E,+DAA0D;AAGnD,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,+CAAiB;IACpD,YACmB,UAAsB,EACtB,kBAAsC,EAEtC,iBAAoC,EAEpC,iBAAoC,EACpC,oBAA0C;QAE3D,KAAK,EAAE,CAAC;QARS,eAAU,GAAV,UAAU,CAAY;QACtB,uBAAkB,GAAlB,kBAAkB,CAAoB;QAEtC,sBAAiB,GAAjB,iBAAiB,CAAmB;QAEpC,sBAAiB,GAAjB,iBAAiB,CAAmB;QACpC,yBAAoB,GAApB,oBAAoB,CAAsB;IAG7D,CAAC;IAED,KAAK,CAAC,eAAe,CACnB,WAAmB,EACnB,QAAgB,EAChB,UAAkB;QAElB,OAAO,IAAI,CAAC,kBAAkB,CAAC,wBAAwB,CACrD,WAAW,EACX,QAAQ,EACR,UAAU,CACX,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,eAAe,CAAC,EAAU;QAC9B,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,CACxC,wCAAwC,EACxC,CAAC,EAAE,CAAC,CACL,CAAC;QACF,OAAO,MAAM,CAAC,CAAC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