rez_core 4.0.106 → 4.0.107
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/module/filter/service/filter.service.ts +36 -13
- 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 -79
- 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 -5
- package/dist/module/auth/controller/auth.controller.js +0 -25
- 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 -240
- 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 -40
- 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 -70
- package/dist/module/filter/service/filter.service.js +0 -686
- 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 -165
- package/dist/module/integration/controller/integration.controller.js +0 -697
- 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 -52
- package/dist/module/integration/controller/wrapper.controller.js.map +0 -1
- package/dist/module/integration/dto/create-config.dto.d.ts +0 -217
- package/dist/module/integration/dto/create-config.dto.js +0 -495
- 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-entity-mapper.entity.d.ts +0 -6
- package/dist/module/integration/entity/integration-entity-mapper.entity.js +0 -33
- package/dist/module/integration/entity/integration-entity-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 -96
- 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-entity-mapper.service.d.ts +0 -7
- package/dist/module/integration/service/integration-entity-mapper.service.js +0 -36
- package/dist/module/integration/service/integration-entity-mapper.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 -205
- package/dist/module/integration/service/integration.service.js +0 -1587
- 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 -36
- package/dist/module/integration/service/wrapper.service.js +0 -298
- 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 -195
- 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 -31
- 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 -170
- 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 -24
- package/dist/module/integration/strategies/telephone/tubelight-voice.strategy.js +0 -152
- 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 -33
- package/dist/module/integration/strategies/whatsapp/tubelight-whatsapp.strategy.js +0 -256
- 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 -19
- package/dist/module/layout_preference/controller/layout_preference.controller.js +0 -75
- 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 -35
- package/dist/module/layout_preference/layout_preference.module.js.map +0 -1
- package/dist/module/layout_preference/repository/layout_preference.repository.d.ts +0 -13
- package/dist/module/layout_preference/repository/layout_preference.repository.js +0 -68
- 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 -20
- package/dist/module/layout_preference/service/layout_preference.service.js +0 -128
- 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 -23
- package/dist/module/listmaster/controller/list-master.controller.js +0 -174
- 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 -69
- 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 -56
- 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 -53
- 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-engine.d.ts +0 -6
- package/dist/module/listmaster/service/list-master-engine.js +0 -35
- package/dist/module/listmaster/service/list-master-engine.js.map +0 -1
- package/dist/module/listmaster/service/list-master-extension.interface.d.ts +0 -4
- package/dist/module/listmaster/service/list-master-extension.interface.js +0 -3
- package/dist/module/listmaster/service/list-master-extension.interface.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-registry.d.ts +0 -6
- package/dist/module/listmaster/service/list-master-registry.js +0 -26
- package/dist/module/listmaster/service/list-master-registry.js.map +0 -1
- package/dist/module/listmaster/service/list-master.service.d.ts +0 -39
- package/dist/module/listmaster/service/list-master.service.js +0 -335
- package/dist/module/listmaster/service/list-master.service.js.map +0 -1
- package/dist/module/mapper/controller/field-mapper.controller.d.ts +0 -11
- package/dist/module/mapper/controller/field-mapper.controller.js +0 -94
- package/dist/module/mapper/controller/field-mapper.controller.js.map +0 -1
- package/dist/module/mapper/controller/mapper.controller.d.ts +0 -8
- package/dist/module/mapper/controller/mapper.controller.js +0 -45
- package/dist/module/mapper/controller/mapper.controller.js.map +0 -1
- package/dist/module/mapper/dto/field-mapper.dto.d.ts +0 -12
- 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 -13
- package/dist/module/mapper/entity/field-mapper.entity.js +0 -78
- 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 -47
- package/dist/module/mapper/mapper.module.js.map +0 -1
- package/dist/module/mapper/repository/field-lovs.repository.d.ts +0 -11
- package/dist/module/mapper/repository/field-lovs.repository.js +0 -52
- package/dist/module/mapper/repository/field-lovs.repository.js.map +0 -1
- package/dist/module/mapper/repository/field-mapper.repository.d.ts +0 -11
- package/dist/module/mapper/repository/field-mapper.repository.js +0 -54
- package/dist/module/mapper/repository/field-mapper.repository.js.map +0 -1
- package/dist/module/mapper/repository/mapper.repository.d.ts +0 -7
- package/dist/module/mapper/repository/mapper.repository.js +0 -34
- package/dist/module/mapper/repository/mapper.repository.js.map +0 -1
- package/dist/module/mapper/service/field-mapper.service.d.ts +0 -24
- package/dist/module/mapper/service/field-mapper.service.js +0 -200
- package/dist/module/mapper/service/field-mapper.service.js.map +0 -1
- package/dist/module/mapper/service/mapper.service.d.ts +0 -17
- package/dist/module/mapper/service/mapper.service.js +0 -76
- 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 -364
- 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 -21
- package/dist/module/meta/controller/entity-dynamic.controller.js +0 -115
- 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/entity.public.controller.d.ts +0 -12
- package/dist/module/meta/controller/entity.public.controller.js +0 -75
- package/dist/module/meta/controller/entity.public.controller.js.map +0 -1
- package/dist/module/meta/controller/media.controller.d.ts +0 -27
- package/dist/module/meta/controller/media.controller.js +0 -92
- package/dist/module/meta/controller/media.controller.js.map +0 -1
- package/dist/module/meta/controller/meta.controller.d.ts +0 -32
- package/dist/module/meta/controller/meta.controller.js +0 -112
- 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 -88
- 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 -22
- package/dist/module/meta/entity/attribute-master.entity.js +0 -124
- 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 -20
- package/dist/module/meta/entity/entity-master.entity.js +0 -117
- 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 -155
- 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 -21
- package/dist/module/meta/repository/attribute-master.repository.js +0 -92
- package/dist/module/meta/repository/attribute-master.repository.js.map +0 -1
- package/dist/module/meta/repository/entity-master.repository.d.ts +0 -20
- package/dist/module/meta/repository/entity-master.repository.js +0 -73
- 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 -59
- 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 -52
- 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 -17
- package/dist/module/meta/service/attribute-master.service.js +0 -78
- 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 -25
- package/dist/module/meta/service/entity-dynamic.service.js +0 -481
- 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 -29
- package/dist/module/meta/service/entity-master.service.js +0 -116
- 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 -43
- package/dist/module/meta/service/entity-service-impl.service.js +0 -278
- 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 -84
- 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 -119
- 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 -76
- package/dist/module/meta/service/field-group.service.js.map +0 -1
- package/dist/module/meta/service/media-data.service.d.ts +0 -36
- package/dist/module/meta/service/media-data.service.js +0 -300
- 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 -136
- 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 -15
- package/dist/module/meta/service/resolver.service.js +0 -180
- 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 -29
- package/dist/module/meta/service/view-master.service.js +0 -82
- 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 -150
- 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 -52
- package/dist/module/module/repository/module-access.repository.js +0 -283
- package/dist/module/module/repository/module-access.repository.js.map +0 -1
- package/dist/module/module/service/menu.service.d.ts +0 -12
- package/dist/module/module/service/menu.service.js +0 -59
- package/dist/module/module/service/menu.service.js.map +0 -1
- package/dist/module/module/service/module-access.service.d.ts +0 -62
- 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 -65
- 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 -10
- package/dist/module/notification/entity/notification.entity.js +0 -49
- 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 -27
- package/dist/module/notification/service/notification.service.js +0 -124
- package/dist/module/notification/service/notification.service.js.map +0 -1
- package/dist/module/notification/service/otp.service.d.ts +0 -61
- package/dist/module/notification/service/otp.service.js +0 -111
- 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 -15
- package/dist/module/user/entity/user-session.entity.js +0 -102
- package/dist/module/user/entity/user-session.entity.js.map +0 -1
- package/dist/module/user/entity/user.entity.d.ts +0 -20
- package/dist/module/user/entity/user.entity.js +0 -91
- 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 -98
- package/dist/module/user/service/login.service.js +0 -220
- 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 -243
- package/dist/module/user/service/user.service.js.map +0 -1
- package/dist/module/user/user.module.d.ts +0 -2
- package/dist/module/user/user.module.js +0 -78
- package/dist/module/user/user.module.js.map +0 -1
- package/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 -51
- package/dist/module/workflow/controller/action.controller.js +0 -122
- package/dist/module/workflow/controller/action.controller.js.map +0 -1
- package/dist/module/workflow/controller/activity-log.controller.d.ts +0 -42
- 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 -19
- package/dist/module/workflow/controller/comm-template.controller.js +0 -58
- 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 -16
- package/dist/module/workflow/controller/stage.controller.js +0 -57
- 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 -13
- package/dist/module/workflow/entity/action-category.entity.js +0 -63
- 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 -14
- package/dist/module/workflow/entity/comm-template.entity.js +0 -67
- 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.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 -23
- package/dist/module/workflow/repository/action-data.repository.js +0 -234
- package/dist/module/workflow/repository/action-data.repository.js.map +0 -1
- package/dist/module/workflow/repository/action.repository.d.ts +0 -30
- package/dist/module/workflow/repository/action.repository.js +0 -248
- 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 -129
- package/dist/module/workflow/repository/activity-log.repository.js.map +0 -1
- package/dist/module/workflow/repository/comm-template.repository.d.ts +0 -16
- package/dist/module/workflow/repository/comm-template.repository.js +0 -114
- package/dist/module/workflow/repository/comm-template.repository.js.map +0 -1
- package/dist/module/workflow/repository/form-master.repository.d.ts +0 -8
- package/dist/module/workflow/repository/form-master.repository.js +0 -38
- 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 -160
- package/dist/module/workflow/repository/stage-movement.repository.js.map +0 -1
- package/dist/module/workflow/repository/stage.repository.d.ts +0 -31
- package/dist/module/workflow/repository/stage.repository.js +0 -117
- 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 -103
- 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 -90
- package/dist/module/workflow/service/action-template-mapping.service.js.map +0 -1
- package/dist/module/workflow/service/action.service.d.ts +0 -36
- package/dist/module/workflow/service/action.service.js +0 -168
- package/dist/module/workflow/service/action.service.js.map +0 -1
- package/dist/module/workflow/service/activity-log.service.d.ts +0 -42
- 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 -24
- package/dist/module/workflow/service/comm-template.service.js +0 -133
- 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 -167
- 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 -31
- package/dist/module/workflow/service/stage-group.service.js +0 -212
- package/dist/module/workflow/service/stage-group.service.js.map +0 -1
- package/dist/module/workflow/service/stage.service.d.ts +0 -25
- package/dist/module/workflow/service/stage.service.js +0 -129
- package/dist/module/workflow/service/stage.service.js.map +0 -1
- package/dist/module/workflow/service/task.service.d.ts +0 -49
- package/dist/module/workflow/service/task.service.js +0 -357
- 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 -30
- package/dist/module/workflow/service/workflow-meta.service.js +0 -368
- 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 -9
- package/dist/module/workflow-automation/entity/workflow-automation-action.entity.js +0 -47
- 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 -12
- package/dist/module/workflow-automation/entity/workflow-automation.entity.js +0 -59
- 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 -14
- package/dist/module/workflow-automation/service/workflow-automation-engine.service.js +0 -116
- 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 -56
- package/dist/module/workflow-automation/service/workflow-automation.service.js +0 -224
- 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/table.config.d.ts +0 -40
- package/dist/table.config.js +0 -128
- package/dist/table.config.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 -36
- package/dist/utils/service/loggingUtil.service.js.map +0 -1
- package/dist/utils/service/reflection-helper.service.d.ts +0 -10
- package/dist/utils/service/reflection-helper.service.js +0 -66
- 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,92 +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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.ActivityLogService = void 0;
|
|
13
|
-
const common_1 = require("@nestjs/common");
|
|
14
|
-
const activity_log_repository_1 = require("../repository/activity-log.repository");
|
|
15
|
-
const entity_service_impl_service_1 = require("../../meta/service/entity-service-impl.service");
|
|
16
|
-
function enrichData(category, logData) {
|
|
17
|
-
switch (category) {
|
|
18
|
-
case activity_log_repository_1.ACTIVITY_CATEGORIES.STAGE:
|
|
19
|
-
logData.color = '#06aed4';
|
|
20
|
-
logData.icon = 'stage';
|
|
21
|
-
break;
|
|
22
|
-
case activity_log_repository_1.ACTIVITY_CATEGORIES.INTERACTION:
|
|
23
|
-
logData.color = '#7a5af8';
|
|
24
|
-
logData.icon = 'interaction';
|
|
25
|
-
break;
|
|
26
|
-
case activity_log_repository_1.ACTIVITY_CATEGORIES.FORM:
|
|
27
|
-
logData.color = '#eaaa08';
|
|
28
|
-
logData.icon = 'form';
|
|
29
|
-
break;
|
|
30
|
-
case activity_log_repository_1.ACTIVITY_CATEGORIES.ASSIGN:
|
|
31
|
-
logData.color = '#16b364';
|
|
32
|
-
logData.icon = 'assign';
|
|
33
|
-
break;
|
|
34
|
-
case activity_log_repository_1.ACTIVITY_CATEGORIES.MEETING:
|
|
35
|
-
logData.color = '#7a5af8';
|
|
36
|
-
logData.icon = 'meeting';
|
|
37
|
-
break;
|
|
38
|
-
case activity_log_repository_1.ACTIVITY_CATEGORIES.PROCESS:
|
|
39
|
-
logData.color = '#06aed4';
|
|
40
|
-
logData.icon = 'process';
|
|
41
|
-
break;
|
|
42
|
-
case activity_log_repository_1.ACTIVITY_CATEGORIES.STATUS:
|
|
43
|
-
logData.color = '#06aed4';
|
|
44
|
-
logData.icon = 'status';
|
|
45
|
-
break;
|
|
46
|
-
case activity_log_repository_1.ACTIVITY_CATEGORIES.TASK:
|
|
47
|
-
logData.color = '#f63d68';
|
|
48
|
-
logData.icon = 'task';
|
|
49
|
-
break;
|
|
50
|
-
case activity_log_repository_1.ACTIVITY_CATEGORIES.LEAD:
|
|
51
|
-
logData.color = '#16b364';
|
|
52
|
-
logData.icon = 'lead';
|
|
53
|
-
break;
|
|
54
|
-
case activity_log_repository_1.ACTIVITY_CATEGORIES.ASSESSMENT:
|
|
55
|
-
logData.color = '#f63d68';
|
|
56
|
-
logData.icon = 'assessment';
|
|
57
|
-
break;
|
|
58
|
-
case activity_log_repository_1.ACTIVITY_CATEGORIES.STAGEGROUP:
|
|
59
|
-
logData.color = '#06aed4';
|
|
60
|
-
logData.icon = 'stage_group';
|
|
61
|
-
break;
|
|
62
|
-
default:
|
|
63
|
-
logData.color = '#ff0000';
|
|
64
|
-
logData.icon = 'DEFAULT';
|
|
65
|
-
}
|
|
66
|
-
return logData;
|
|
67
|
-
}
|
|
68
|
-
let ActivityLogService = class ActivityLogService extends entity_service_impl_service_1.EntityServiceImpl {
|
|
69
|
-
constructor(activityLogRepository) {
|
|
70
|
-
super();
|
|
71
|
-
this.activityLogRepository = activityLogRepository;
|
|
72
|
-
}
|
|
73
|
-
async logActivity(logData, loggedInUser) {
|
|
74
|
-
const storeData = enrichData(logData.category.toUpperCase(), logData);
|
|
75
|
-
storeData.entity_type = 'ACLG';
|
|
76
|
-
return super.createEntity(storeData, loggedInUser);
|
|
77
|
-
}
|
|
78
|
-
async getAllActivityLog(mapped_entity_type, mapped_entity_id, category, loggedInUser) {
|
|
79
|
-
const result = this.activityLogRepository.getAllActivityLog(mapped_entity_type, mapped_entity_id, category, loggedInUser);
|
|
80
|
-
return result;
|
|
81
|
-
}
|
|
82
|
-
async getAllActivityCategory(mapped_entity_id, mapped_entity_type, loggedInUser) {
|
|
83
|
-
const result = this.activityLogRepository.getAllActivityCategory(mapped_entity_id, mapped_entity_type, loggedInUser);
|
|
84
|
-
return result;
|
|
85
|
-
}
|
|
86
|
-
};
|
|
87
|
-
exports.ActivityLogService = ActivityLogService;
|
|
88
|
-
exports.ActivityLogService = ActivityLogService = __decorate([
|
|
89
|
-
(0, common_1.Injectable)(),
|
|
90
|
-
__metadata("design:paramtypes", [activity_log_repository_1.ActivityLogRepository])
|
|
91
|
-
], ActivityLogService);
|
|
92
|
-
//# sourceMappingURL=activity-log.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"activity-log.service.js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C,EACjC,kBAA0B,EAC1B,YAAY;QAEZ,MAAM,MAAM,GAAG,IAAI,CAAC,qBAAqB,CAAC,sBAAsB,CAC9D,gBAAgB,EAChB,kBAAkB,EAClB,YAAY,CACb,CAAC;QACF,OAAO,MAAM,CAAC;IAChB,CAAC;CACF,CAAA;AAzCY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,mBAAU,GAAE;qCAEyC,+CAAqB;GAD9D,kBAAkB,CAyC9B"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { CommTemplateRepository } from '../repository/comm-template.repository';
|
|
2
|
-
import { EntityServiceImpl } from 'src/module/meta/service/entity-service-impl.service';
|
|
3
|
-
import { UserData } from 'src/module/user/entity/user.entity';
|
|
4
|
-
import { MediaDataService } from '../../meta/service/media-data.service';
|
|
5
|
-
import { FieldMapperService } from '../../mapper/service/field-mapper.service';
|
|
6
|
-
export declare class CommTemplateService extends EntityServiceImpl {
|
|
7
|
-
private readonly commTemplateRepository;
|
|
8
|
-
private readonly mediaService;
|
|
9
|
-
private readonly fieldMapperService;
|
|
10
|
-
constructor(commTemplateRepository: CommTemplateRepository, mediaService: MediaDataService, fieldMapperService: FieldMapperService);
|
|
11
|
-
createEntity(entityData: any, loggedInUser: any): Promise<any>;
|
|
12
|
-
updateEntity(entityData: any, loggedInUser: UserData): Promise<any>;
|
|
13
|
-
getEntityData(entityType: string, id: number, loggedInUser: any): Promise<any>;
|
|
14
|
-
getAllCommTemplate(entity_type: string, action_id?: number, loggedInUser?: any): Promise<{
|
|
15
|
-
value: string;
|
|
16
|
-
label: string;
|
|
17
|
-
mode: string;
|
|
18
|
-
template: boolean;
|
|
19
|
-
}[]>;
|
|
20
|
-
getResolvedTemplateMsg(payload: any, loggedInUser: UserData): Promise<{
|
|
21
|
-
rich_text: string;
|
|
22
|
-
subject: string;
|
|
23
|
-
} | undefined>;
|
|
24
|
-
}
|
|
@@ -1,133 +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.CommTemplateService = void 0;
|
|
16
|
-
const common_1 = require("@nestjs/common");
|
|
17
|
-
const comm_template_repository_1 = require("../repository/comm-template.repository");
|
|
18
|
-
const entity_service_impl_service_1 = require("../../meta/service/entity-service-impl.service");
|
|
19
|
-
const axios_1 = require("axios");
|
|
20
|
-
const media_data_service_1 = require("../../meta/service/media-data.service");
|
|
21
|
-
const field_mapper_service_1 = require("../../mapper/service/field-mapper.service");
|
|
22
|
-
let CommTemplateService = class CommTemplateService extends entity_service_impl_service_1.EntityServiceImpl {
|
|
23
|
-
constructor(commTemplateRepository, mediaService, fieldMapperService) {
|
|
24
|
-
super();
|
|
25
|
-
this.commTemplateRepository = commTemplateRepository;
|
|
26
|
-
this.mediaService = mediaService;
|
|
27
|
-
this.fieldMapperService = fieldMapperService;
|
|
28
|
-
}
|
|
29
|
-
async createEntity(entityData, loggedInUser) {
|
|
30
|
-
const { attachments, ...templateData } = entityData;
|
|
31
|
-
const tempData = await super.createEntity({ ...templateData, flag: templateData.flag || 'default' }, loggedInUser);
|
|
32
|
-
if (attachments && attachments.length > 0) {
|
|
33
|
-
const attachmentEntities = attachments.map((attachment) => ({
|
|
34
|
-
entity_type: templateData.entity_type,
|
|
35
|
-
template_id: tempData.id,
|
|
36
|
-
media_id: attachment,
|
|
37
|
-
organization_id: loggedInUser.organization_id,
|
|
38
|
-
appcode: loggedInUser.appcode,
|
|
39
|
-
level_id: loggedInUser.level_id,
|
|
40
|
-
mapped_entity_type: 'LEAD',
|
|
41
|
-
level_type: loggedInUser.level_type,
|
|
42
|
-
}));
|
|
43
|
-
await this.commTemplateRepository.save(attachmentEntities);
|
|
44
|
-
}
|
|
45
|
-
return tempData;
|
|
46
|
-
}
|
|
47
|
-
async updateEntity(entityData, loggedInUser) {
|
|
48
|
-
const { attachments, ...templateData } = entityData;
|
|
49
|
-
if (loggedInUser.level_type === 'SCH' &&
|
|
50
|
-
templateData.level_type === 'ORG') {
|
|
51
|
-
const { id, level_type, level_id, ...newTemplateData } = entityData;
|
|
52
|
-
const create = await this.createEntity({
|
|
53
|
-
...newTemplateData,
|
|
54
|
-
level_type: loggedInUser.level_type,
|
|
55
|
-
level_id: loggedInUser.level_id,
|
|
56
|
-
flag: 'edited',
|
|
57
|
-
}, loggedInUser);
|
|
58
|
-
return create;
|
|
59
|
-
}
|
|
60
|
-
const tempData = await super.updateEntity(templateData, loggedInUser);
|
|
61
|
-
await this.commTemplateRepository.delete({
|
|
62
|
-
template_id: tempData.id,
|
|
63
|
-
});
|
|
64
|
-
if (attachments && attachments.length > 0) {
|
|
65
|
-
const attachmentEntities = attachments.map((attachment) => ({
|
|
66
|
-
entity_type: templateData.entity_type,
|
|
67
|
-
template_id: tempData.id,
|
|
68
|
-
media_id: attachment,
|
|
69
|
-
organization_id: loggedInUser.organization_id,
|
|
70
|
-
appcode: loggedInUser.appcode,
|
|
71
|
-
level_id: loggedInUser.level_id,
|
|
72
|
-
level_type: loggedInUser.level_type,
|
|
73
|
-
}));
|
|
74
|
-
await this.commTemplateRepository.save(attachmentEntities);
|
|
75
|
-
}
|
|
76
|
-
return tempData;
|
|
77
|
-
}
|
|
78
|
-
async getEntityData(entityType, id, loggedInUser) {
|
|
79
|
-
const getTemplate = await this.commTemplateRepository.getTemplateByCode(entityType, id, loggedInUser);
|
|
80
|
-
return getTemplate;
|
|
81
|
-
}
|
|
82
|
-
async getAllCommTemplate(entity_type, action_id, loggedInUser) {
|
|
83
|
-
const commTemplateData = await this.commTemplateRepository.getAllCommTemplate(entity_type, action_id, loggedInUser);
|
|
84
|
-
const response = commTemplateData.map((item) => ({
|
|
85
|
-
value: item.code,
|
|
86
|
-
label: item.name,
|
|
87
|
-
mode: item.mode,
|
|
88
|
-
template: item.is_template,
|
|
89
|
-
}));
|
|
90
|
-
return response;
|
|
91
|
-
}
|
|
92
|
-
async getResolvedTemplateMsg(payload, loggedInUser) {
|
|
93
|
-
let commTemplate = await this.commTemplateRepository.findByCodeAndLevelIdAndLevelTypeAndAppCode(payload.template_code, payload.level_id, payload.level_type, payload.appcode);
|
|
94
|
-
let variables;
|
|
95
|
-
if (commTemplate && !commTemplate.template_id) {
|
|
96
|
-
if (commTemplate.mapper_id) {
|
|
97
|
-
variables = await this.fieldMapperService.resolveData(commTemplate.mapper_id, 'LOOKUP', payload.entity_type, payload.entity_id, loggedInUser, undefined, undefined, payload.overwrite || false, payload.entity_data || null);
|
|
98
|
-
}
|
|
99
|
-
if (!commTemplate.template_id && !commTemplate.markup_id) {
|
|
100
|
-
let richText = commTemplate.rich_text;
|
|
101
|
-
if (!richText) {
|
|
102
|
-
if (commTemplate.markup_id) {
|
|
103
|
-
let url = await this.mediaService.getMediaDownloadUrl(commTemplate.markup_id, {}, 60000);
|
|
104
|
-
if (url) {
|
|
105
|
-
let response = await axios_1.default.get(url.signedUrl, { responseType: 'text' });
|
|
106
|
-
richText = response.data;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
richText = richText.replace(/\{\{(\w+)\}\}/g, (match, key) => {
|
|
111
|
-
const value = variables[key];
|
|
112
|
-
return value !== undefined ? String(value) : match;
|
|
113
|
-
});
|
|
114
|
-
return {
|
|
115
|
-
rich_text: richText,
|
|
116
|
-
subject: commTemplate.subject,
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
else {
|
|
121
|
-
throw new common_1.BadRequestException('Editing is disabled for external templates');
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
};
|
|
125
|
-
exports.CommTemplateService = CommTemplateService;
|
|
126
|
-
exports.CommTemplateService = CommTemplateService = __decorate([
|
|
127
|
-
(0, common_1.Injectable)(),
|
|
128
|
-
__param(2, (0, common_1.Inject)('FieldMapperService')),
|
|
129
|
-
__metadata("design:paramtypes", [comm_template_repository_1.CommTemplateRepository,
|
|
130
|
-
media_data_service_1.MediaDataService,
|
|
131
|
-
field_mapper_service_1.FieldMapperService])
|
|
132
|
-
], CommTemplateService);
|
|
133
|
-
//# sourceMappingURL=comm-template.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"comm-template.service.js","sourceRoot":"","sources":["../../../../src/module/workflow/service/comm-template.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAyE;AACzE,qFAAgF;AAChF,gGAAwF;AAExF,iCAA0B;AAC1B,8EAAyE;AACzE,oFAA+E;AAGxE,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,+CAAiB;IACxD,YAA6B,sBAA8C,EAC9C,YAA8B,EAE9B,kBAAsC;QAEjE,KAAK,EAAE,CAAC;QALmB,2BAAsB,GAAtB,sBAAsB,CAAwB;QAC9C,iBAAY,GAAZ,YAAY,CAAkB;QAE9B,uBAAkB,GAAlB,kBAAkB,CAAoB;IAGnE,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,UAAe,EAAE,YAAiB;QACnD,MAAM,EAAE,WAAW,EAAE,GAAG,YAAY,EAAE,GAAG,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AAE,CAAC;4BACR,IAAI,QAAQ,GAAG,MAAM,eAAK,CAAC,GAAG,CAAC,GAAG,CAAC,SAAS,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE,CAAC,CAAC;4BACxE,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC;wBAC3B,CAAC;oBACH,CAAC;gBACH,CAAC;gBAED,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC,gBAAgB,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;oBAC3D,MAAM,KAAK,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC;oBAC7B,OAAO,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;gBACrD,CAAC,CAAC,CAAC;gBAEH,OAAO;oBACL,SAAS,EAAE,QAAQ;oBACnB,OAAO,EAAE,YAAY,CAAC,OAAO;iBAC9B,CAAC;YACJ,CAAC;QACH,CAAC;aAAM,CAAC;YACN,MAAM,IAAI,4BAAmB,CAAC,4CAA4C,CAAC,CAAC;QAC9E,CAAC;IACH,CAAC;CACF,CAAA;AA1KY,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,mBAAU,GAAE;IAIE,WAAA,IAAA,eAAM,EAAC,oBAAoB,CAAC,CAAA;qCAFY,iDAAsB;QAChC,qCAAgB;QAEV,yCAAkB;GAJxD,mBAAmB,CA0K/B"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { EntityServiceImpl } from 'src/module/meta/service/entity-service-impl.service';
|
|
2
|
-
import { UserData } from 'src/module/user/entity/user.entity';
|
|
3
|
-
import { DataSource } from 'typeorm';
|
|
4
|
-
export declare class EntityModificationService extends EntityServiceImpl {
|
|
5
|
-
private readonly dataSource;
|
|
6
|
-
constructor(dataSource: DataSource);
|
|
7
|
-
logModification(modificationData: any, loggedInUser: UserData): Promise<any>;
|
|
8
|
-
}
|
|
@@ -1,52 +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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.EntityModificationService = void 0;
|
|
13
|
-
const common_1 = require("@nestjs/common");
|
|
14
|
-
const entity_service_impl_service_1 = require("../../meta/service/entity-service-impl.service");
|
|
15
|
-
const typeorm_1 = require("typeorm");
|
|
16
|
-
let EntityModificationService = class EntityModificationService extends entity_service_impl_service_1.EntityServiceImpl {
|
|
17
|
-
constructor(dataSource) {
|
|
18
|
-
super();
|
|
19
|
-
this.dataSource = dataSource;
|
|
20
|
-
}
|
|
21
|
-
async logModification(modificationData, loggedInUser) {
|
|
22
|
-
const { mapped_entity_type, mapped_entity_id, attribute_key } = modificationData;
|
|
23
|
-
const { organization_id } = loggedInUser;
|
|
24
|
-
if (!mapped_entity_type || !mapped_entity_id || !attribute_key) {
|
|
25
|
-
throw new common_1.BadRequestException('Missing required modification data: mapped_entity_type, mapped_entity_id, or attribute_key');
|
|
26
|
-
}
|
|
27
|
-
const [entityMeta] = await this.dataSource.query(`
|
|
28
|
-
SELECT db_table_name
|
|
29
|
-
FROM frm_entity_master
|
|
30
|
-
WHERE mapped_entity_type = ? AND organization_id = ?
|
|
31
|
-
`, [mapped_entity_type, organization_id]);
|
|
32
|
-
if (!entityMeta || !entityMeta.db_table_name) {
|
|
33
|
-
throw new common_1.NotFoundException('Entity metadata not found in frm_entity_master');
|
|
34
|
-
}
|
|
35
|
-
const tableName = entityMeta.db_table_name;
|
|
36
|
-
const [entityRow] = await this.dataSource.query(`
|
|
37
|
-
SELECT * FROM ${tableName} WHERE id = ?
|
|
38
|
-
`, [mapped_entity_id]);
|
|
39
|
-
if (!entityRow) {
|
|
40
|
-
throw new common_1.NotFoundException(`No record found in ${tableName} with ID ${mapped_entity_id}`);
|
|
41
|
-
}
|
|
42
|
-
const currentAttributeValue = entityRow[attribute_key];
|
|
43
|
-
modificationData.current_value = currentAttributeValue;
|
|
44
|
-
return await super.createEntity(modificationData, loggedInUser);
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
exports.EntityModificationService = EntityModificationService;
|
|
48
|
-
exports.EntityModificationService = EntityModificationService = __decorate([
|
|
49
|
-
(0, common_1.Injectable)(),
|
|
50
|
-
__metadata("design:paramtypes", [typeorm_1.DataSource])
|
|
51
|
-
], EntityModificationService);
|
|
52
|
-
//# sourceMappingURL=entity-modification.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"entity-modification.service.js","sourceRoot":"","sources":["../../../../src/module/workflow/service/entity-modification.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAIwB;AACxB,gGAAwF;AAExF,qCAAqC;AAG9B,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,+CAAiB;IAC9D,YAA6B,UAAsB;QACjD,KAAK,EAAE,CAAC;QADmB,eAAU,GAAV,UAAU,CAAY;IAEnD,CAAC;IACD,KAAK,CAAC,eAAe,CAAC,gBAAqB,EAAE,YAAsB;QACjE,MAAM,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,aAAa,EAAE,GAC3D,gBAAgB,CAAC;QACnB,MAAM,EAAE,eAAe,EAAE,GAAG,YAAY,CAAC;QAEzC,IAAI,CAAC,kBAAkB,IAAI,CAAC,gBAAgB,IAAI,CAAC,aAAa,EAAE,CAAC;YAC/D,MAAM,IAAI,4BAAmB,CAC3B,4FAA4F,CAC7F,CAAC;QACJ,CAAC;QAGD,MAAM,CAAC,UAAU,CAAC,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,CAC9C;;;;KAID,EACC,CAAC,kBAAkB,EAAE,eAAe,CAAC,CACtC,CAAC;QAEF,IAAI,CAAC,UAAU,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,CAAC;YAC7C,MAAM,IAAI,0BAAiB,CACzB,gDAAgD,CACjD,CAAC;QACJ,CAAC;QAED,MAAM,SAAS,GAAG,UAAU,CAAC,aAAa,CAAC;QAG3C,MAAM,CAAC,SAAS,CAAC,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,CAC7C;oBACc,SAAS;KACxB,EACC,CAAC,gBAAgB,CAAC,CACnB,CAAC;QAEF,IAAI,CAAC,SAAS,EAAE,CAAC;YACf,MAAM,IAAI,0BAAiB,CACzB,sBAAsB,SAAS,YAAY,gBAAgB,EAAE,CAC9D,CAAC;QACJ,CAAC;QAGD,MAAM,qBAAqB,GAAG,SAAS,CAAC,aAAa,CAAC,CAAC;QAGvD,gBAAgB,CAAC,aAAa,GAAG,qBAAqB,CAAC;QAGvD,OAAO,MAAM,KAAK,CAAC,YAAY,CAAC,gBAAgB,EAAE,YAAY,CAAC,CAAC;IAClE,CAAC;CACF,CAAA;AAxDY,8DAAyB;oCAAzB,yBAAyB;IADrC,IAAA,mBAAU,GAAE;qCAE8B,oBAAU;GADxC,yBAAyB,CAwDrC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { FormMasterRepository } from '../repository/form-master.repository';
|
|
2
|
-
import { UserData } from 'src/module/user/entity/user.entity';
|
|
3
|
-
import { EntityServiceImpl } from 'src/module/meta/service/entity-service-impl.service';
|
|
4
|
-
export declare class FormMasterService extends EntityServiceImpl {
|
|
5
|
-
private readonly formMasterRepository;
|
|
6
|
-
constructor(formMasterRepository: FormMasterRepository);
|
|
7
|
-
getForms(loggedInUser: UserData, source_entity_type: string): Promise<any>;
|
|
8
|
-
saveForm(data: {
|
|
9
|
-
entity_id: number;
|
|
10
|
-
entity_type: string;
|
|
11
|
-
view_id: number;
|
|
12
|
-
}, loggedInUser: UserData): Promise<void>;
|
|
13
|
-
submitForm(data: any, loggedInUser: UserData): Promise<string>;
|
|
14
|
-
}
|
|
@@ -1,38 +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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.FormMasterService = void 0;
|
|
13
|
-
const common_1 = require("@nestjs/common");
|
|
14
|
-
const form_master_repository_1 = require("../repository/form-master.repository");
|
|
15
|
-
const entity_service_impl_service_1 = require("../../meta/service/entity-service-impl.service");
|
|
16
|
-
let FormMasterService = class FormMasterService extends entity_service_impl_service_1.EntityServiceImpl {
|
|
17
|
-
constructor(formMasterRepository) {
|
|
18
|
-
super();
|
|
19
|
-
this.formMasterRepository = formMasterRepository;
|
|
20
|
-
}
|
|
21
|
-
async getForms(loggedInUser, source_entity_type) {
|
|
22
|
-
const { organization_id } = loggedInUser;
|
|
23
|
-
return this.formMasterRepository.getForms(organization_id, source_entity_type);
|
|
24
|
-
}
|
|
25
|
-
async saveForm(data, loggedInUser) {
|
|
26
|
-
}
|
|
27
|
-
async submitForm(data, loggedInUser) {
|
|
28
|
-
const { form_data, redirect_data } = data;
|
|
29
|
-
super.updateEntity(form_data, loggedInUser);
|
|
30
|
-
return this.formMasterRepository.submitForm(redirect_data, loggedInUser);
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
exports.FormMasterService = FormMasterService;
|
|
34
|
-
exports.FormMasterService = FormMasterService = __decorate([
|
|
35
|
-
(0, common_1.Injectable)(),
|
|
36
|
-
__metadata("design:paramtypes", [form_master_repository_1.FormMasterRepository])
|
|
37
|
-
], FormMasterService);
|
|
38
|
-
//# sourceMappingURL=form-master.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"form-master.service.js","sourceRoot":"","sources":["../../../../src/module/workflow/service/form-master.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAoD;AACpD,iFAA4E;AAE5E,gGAAwF;AAGjF,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,+CAAiB;IACtD,YAA6B,oBAA0C;QACrE,KAAK,EAAE,CAAC;QADmB,yBAAoB,GAApB,oBAAoB,CAAsB;IAEvE,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,YAAsB,EAAE,kBAA0B;QAC/D,MAAM,EAAE,eAAe,EAAE,GAAG,YAAY,CAAC;QACzC,OAAO,IAAI,CAAC,oBAAoB,CAAC,QAAQ,CACvC,eAAe,EACf,kBAAkB,CACnB,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,QAAQ,CACZ,IAAiE,EACjE,YAAsB;IAGxB,CAAC;IAED,KAAK,CAAC,UAAU,CAAC,IAAS,EAAE,YAAsB;QAChD,MAAM,EAAE,SAAS,EAAE,aAAa,EAAE,GAAG,IAAI,CAAC;QAG1C,KAAK,CAAC,YAAY,CAAC,SAAS,EAAE,YAAY,CAAC,CAAC;QAE5C,OAAO,IAAI,CAAC,oBAAoB,CAAC,UAAU,CAAC,aAAa,EAAE,YAAY,CAAC,CAAC;IAC3E,CAAC;CACF,CAAA;AA5BY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,mBAAU,GAAE;qCAEwC,6CAAoB;GAD5D,iBAAiB,CA4B7B"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { DataSource } from 'typeorm';
|
|
2
|
-
import { PopulateMetaService } from './../../meta/service/populate-meta.service';
|
|
3
|
-
import { EntityServiceImpl } from 'src/module/meta/service/entity-service-impl.service';
|
|
4
|
-
import { WorkflowService } from './workflow.service';
|
|
5
|
-
import { UserData } from 'src/module/user/entity/user.entity';
|
|
6
|
-
import { StageGroupService } from './stage-group.service';
|
|
7
|
-
import { StageService } from './stage.service';
|
|
8
|
-
import { ActionService } from './action.service';
|
|
9
|
-
export declare class PopulateWorkflowService extends EntityServiceImpl {
|
|
10
|
-
private readonly populateMetaService;
|
|
11
|
-
private readonly dataSource;
|
|
12
|
-
private readonly workflowService;
|
|
13
|
-
private readonly stageGroupService;
|
|
14
|
-
private readonly stageService;
|
|
15
|
-
private readonly actionService;
|
|
16
|
-
constructor(populateMetaService: PopulateMetaService, dataSource: DataSource, workflowService: WorkflowService, stageGroupService: StageGroupService, stageService: StageService, actionService: ActionService);
|
|
17
|
-
populateWorkflowData(organization_id: number, loggedInUser: UserData): Promise<{
|
|
18
|
-
message: string;
|
|
19
|
-
status: string;
|
|
20
|
-
}>;
|
|
21
|
-
}
|
|
@@ -1,167 +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.PopulateWorkflowService = void 0;
|
|
16
|
-
const typeorm_1 = require("typeorm");
|
|
17
|
-
const populate_meta_service_1 = require("./../../meta/service/populate-meta.service");
|
|
18
|
-
const common_1 = require("@nestjs/common");
|
|
19
|
-
const entity_service_impl_service_1 = require("../../meta/service/entity-service-impl.service");
|
|
20
|
-
const workflow_service_1 = require("./workflow.service");
|
|
21
|
-
const stage_group_service_1 = require("./stage-group.service");
|
|
22
|
-
const stage_service_1 = require("./stage.service");
|
|
23
|
-
const action_service_1 = require("./action.service");
|
|
24
|
-
let PopulateWorkflowService = class PopulateWorkflowService extends entity_service_impl_service_1.EntityServiceImpl {
|
|
25
|
-
constructor(populateMetaService, dataSource, workflowService, stageGroupService, stageService, actionService) {
|
|
26
|
-
super();
|
|
27
|
-
this.populateMetaService = populateMetaService;
|
|
28
|
-
this.dataSource = dataSource;
|
|
29
|
-
this.workflowService = workflowService;
|
|
30
|
-
this.stageGroupService = stageGroupService;
|
|
31
|
-
this.stageService = stageService;
|
|
32
|
-
this.actionService = actionService;
|
|
33
|
-
}
|
|
34
|
-
async populateWorkflowData(organization_id, loggedInUser) {
|
|
35
|
-
let statusRow = await this.dataSource.query(`SELECT * FROM frm_list_master_items WHERE code='STATUS_ACTIVE' AND organization_id = ?`, [organization_id]);
|
|
36
|
-
if (statusRow.length === 0) {
|
|
37
|
-
statusRow = await this.dataSource.query(`SELECT * FROM frm_list_master_items WHERE code='STATUS_ACTIVE' AND organization_id = -1`);
|
|
38
|
-
}
|
|
39
|
-
const statusValue = statusRow[0]?.id;
|
|
40
|
-
const defaultCommTemplates = await this.dataSource.query(`SELECT * FROM frm_wf_comm_template WHERE organization_id = -1 AND level_type = 'ORG' AND level_id = -1`);
|
|
41
|
-
if (defaultCommTemplates.length > 0) {
|
|
42
|
-
for (const template of defaultCommTemplates) {
|
|
43
|
-
const { id, created_date, modified_date, ...rest } = template;
|
|
44
|
-
await super.createEntity({
|
|
45
|
-
...rest,
|
|
46
|
-
organization_id,
|
|
47
|
-
level_id: organization_id,
|
|
48
|
-
entity_type: 'TEM',
|
|
49
|
-
status: statusValue,
|
|
50
|
-
created_date: new Date(),
|
|
51
|
-
modified_date: new Date(),
|
|
52
|
-
}, loggedInUser);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
const workflowTables = [
|
|
56
|
-
{ table: 'frm_wf_master', entityType: 'WRFW', service: 'workflowService' },
|
|
57
|
-
{
|
|
58
|
-
table: 'frm_wf_stage_group',
|
|
59
|
-
entityType: 'WFSG',
|
|
60
|
-
service: 'stageGroupService',
|
|
61
|
-
},
|
|
62
|
-
{ table: 'frm_wf_stage', entityType: 'WFS', service: 'stageService' },
|
|
63
|
-
{ table: 'frm_wf_action', entityType: 'WFAC', service: 'actionService' },
|
|
64
|
-
];
|
|
65
|
-
const getAllFactoryData = async (table) => this.dataSource.query(`SELECT * FROM ${table.table} WHERE organization_id = -1 AND level_type = 'ORG' AND level_id = -1`);
|
|
66
|
-
const factoryData = await Promise.all(workflowTables.map(getAllFactoryData));
|
|
67
|
-
const [workflows, stageGroups, stages] = factoryData;
|
|
68
|
-
const workflowIdMap = {};
|
|
69
|
-
for (const row of workflows) {
|
|
70
|
-
const { id, ...rest } = row;
|
|
71
|
-
const newWf = await this.workflowService.createEntity({
|
|
72
|
-
...rest,
|
|
73
|
-
organization_id,
|
|
74
|
-
level_id: organization_id,
|
|
75
|
-
entity_type: 'WRFW',
|
|
76
|
-
status: statusValue,
|
|
77
|
-
}, loggedInUser);
|
|
78
|
-
await this.dataSource.query(`INSERT INTO frm_wf_level_mapping (workflow_id, mapped_level_id, mapped_level_type) VALUES (?, ?, ?)`, [newWf.id, organization_id, 'ORG']);
|
|
79
|
-
workflowIdMap[id] = newWf.id;
|
|
80
|
-
}
|
|
81
|
-
const stageGroupIdMap = {};
|
|
82
|
-
const stageGroupToWorkflowMap = {};
|
|
83
|
-
for (const row of stageGroups) {
|
|
84
|
-
const { id, workflow_id, ...rest } = row;
|
|
85
|
-
const newSg = await this.stageGroupService.createEntity({
|
|
86
|
-
...rest,
|
|
87
|
-
workflow_id: workflowIdMap[workflow_id],
|
|
88
|
-
organization_id,
|
|
89
|
-
level_id: organization_id,
|
|
90
|
-
entity_type: 'WFSG',
|
|
91
|
-
status: statusValue,
|
|
92
|
-
}, loggedInUser);
|
|
93
|
-
stageGroupIdMap[id] = newSg.id;
|
|
94
|
-
stageGroupToWorkflowMap[id] = workflow_id;
|
|
95
|
-
}
|
|
96
|
-
const stageIdMap = {};
|
|
97
|
-
const stageToStageGroupMap = {};
|
|
98
|
-
for (const row of stages) {
|
|
99
|
-
const { id, stage_group_id, ...rest } = row;
|
|
100
|
-
const originalWorkflowId = stageGroupToWorkflowMap[stage_group_id];
|
|
101
|
-
const newStage = await this.stageService.createEntity({
|
|
102
|
-
...rest,
|
|
103
|
-
stage_group_id: stageGroupIdMap[stage_group_id],
|
|
104
|
-
workflow_id: workflowIdMap[originalWorkflowId],
|
|
105
|
-
organization_id,
|
|
106
|
-
level_id: organization_id,
|
|
107
|
-
entity_type: 'WFS',
|
|
108
|
-
status: statusValue,
|
|
109
|
-
}, loggedInUser);
|
|
110
|
-
stageIdMap[id] = newStage.id;
|
|
111
|
-
stageToStageGroupMap[id] = stage_group_id;
|
|
112
|
-
const stageIds = await this.dataSource.query(`SELECT action_id FROM frm_wf_stage_action_mapping WHERE stage_id = ?`, [id]);
|
|
113
|
-
const actionIds = stageIds.map((item) => item.action_id);
|
|
114
|
-
let actions = [];
|
|
115
|
-
if (actionIds.length > 0) {
|
|
116
|
-
actions = await this.dataSource.query(`SELECT * FROM frm_wf_action WHERE id IN (?)`, [actionIds]);
|
|
117
|
-
}
|
|
118
|
-
else {
|
|
119
|
-
actions = [];
|
|
120
|
-
}
|
|
121
|
-
console.log(`Found ${actions.length} actions for stage ${id} in workflow ${originalWorkflowId}`);
|
|
122
|
-
for (const row of actions) {
|
|
123
|
-
const { id, created_date, modified_date, workflow_id, ...rest } = row;
|
|
124
|
-
const newWorkflowId = workflowIdMap[workflow_id];
|
|
125
|
-
const [oldIsMandatory] = await this.dataSource.query(`SELECT code FROM frm_list_master_items WHERE id = ?`, [rest.action_requirement]);
|
|
126
|
-
const newIsMandatoryList = await this.dataSource.query(`SELECT id, code FROM frm_list_master_items WHERE organization_id = ? AND listtype = 'ACRQ'`, [organization_id]);
|
|
127
|
-
console.log(`Populating action for stage ${newStage.id} in workflow ${newWorkflowId}`);
|
|
128
|
-
console.log(`Old is_mandatory code: ${oldIsMandatory?.code}`);
|
|
129
|
-
console.log(`New is_mandatory list:`, newIsMandatoryList);
|
|
130
|
-
const matchedNewMandatory = newIsMandatoryList.find((item) => item.code === oldIsMandatory?.code);
|
|
131
|
-
console.log(`Matched new mandatory item:`, matchedNewMandatory);
|
|
132
|
-
const formActionCategory = await this.dataSource.query(`SELECT id FROM frm_wf_action_category WHERE id = ? and is_form = 1`, [row.action_category]);
|
|
133
|
-
const formViewMaster = await this.dataSource.query(`SELECT id FROM frm_entity_view WHERE code = "LEAD_FORM" and organization_id = ?`, [organization_id]);
|
|
134
|
-
await this.actionService.createEntity({
|
|
135
|
-
...rest,
|
|
136
|
-
stage_id: newStage.id,
|
|
137
|
-
workflow_id: newWorkflowId,
|
|
138
|
-
organization_id,
|
|
139
|
-
action_requirement: matchedNewMandatory?.id ?? null,
|
|
140
|
-
level_id: organization_id,
|
|
141
|
-
entity_type: 'WFA',
|
|
142
|
-
form: formActionCategory.length > 0 ? formViewMaster[0]?.id : null,
|
|
143
|
-
status: statusValue,
|
|
144
|
-
}, loggedInUser);
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
return {
|
|
148
|
-
message: 'Workflow data populated successfully',
|
|
149
|
-
status: 'success',
|
|
150
|
-
};
|
|
151
|
-
}
|
|
152
|
-
};
|
|
153
|
-
exports.PopulateWorkflowService = PopulateWorkflowService;
|
|
154
|
-
exports.PopulateWorkflowService = PopulateWorkflowService = __decorate([
|
|
155
|
-
(0, common_1.Injectable)(),
|
|
156
|
-
__param(2, (0, common_1.Inject)('WorkflowService')),
|
|
157
|
-
__param(3, (0, common_1.Inject)('StageGroupService')),
|
|
158
|
-
__param(4, (0, common_1.Inject)('StageService')),
|
|
159
|
-
__param(5, (0, common_1.Inject)('ActionService')),
|
|
160
|
-
__metadata("design:paramtypes", [populate_meta_service_1.PopulateMetaService,
|
|
161
|
-
typeorm_1.DataSource,
|
|
162
|
-
workflow_service_1.WorkflowService,
|
|
163
|
-
stage_group_service_1.StageGroupService,
|
|
164
|
-
stage_service_1.StageService,
|
|
165
|
-
action_service_1.ActionService])
|
|
166
|
-
], PopulateWorkflowService);
|
|
167
|
-
//# sourceMappingURL=populate-workflow.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"populate-workflow.service.js","sourceRoot":"","sources":["../../../../src/module/workflow/service/populate-workflow.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,qCAAqC;AACrC,sFAAiF;AACjF,2CAAoD;AACpD,gGAAwF;AACxF,yDAAqD;AAErD,+DAA0D;AAC1D,mDAA+C;AAC/C,qDAAiD;AAG1C,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,+CAAiB;IAC5D,YACmB,mBAAwC,EACxC,UAAsB,EAEtB,eAAgC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,eAAM,EAAC,mBAAmB,CAAC,CAAA;IAE3B,WAAA,IAAA,eAAM,EAAC,cAAc,CAAC,CAAA;IAEtB,WAAA,IAAA,eAAM,EAAC,eAAe,CAAC,CAAA;qCARc,2CAAmB;QAC5B,oBAAU;QAEL,kCAAe;QAEb,uCAAiB;QAEtB,4BAAY;QAEX,8BAAa;GAXpC,uBAAuB,CAkSnC"}
|
|
@@ -1,18 +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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.StageActionMappingService = void 0;
|
|
10
|
-
const common_1 = require("@nestjs/common");
|
|
11
|
-
const entity_service_impl_service_1 = require("../../meta/service/entity-service-impl.service");
|
|
12
|
-
let StageActionMappingService = class StageActionMappingService extends entity_service_impl_service_1.EntityServiceImpl {
|
|
13
|
-
};
|
|
14
|
-
exports.StageActionMappingService = StageActionMappingService;
|
|
15
|
-
exports.StageActionMappingService = StageActionMappingService = __decorate([
|
|
16
|
-
(0, common_1.Injectable)()
|
|
17
|
-
], StageActionMappingService);
|
|
18
|
-
//# sourceMappingURL=stage-action-mapping.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stage-action-mapping.service.js","sourceRoot":"","sources":["../../../../src/module/workflow/service/stage-action-mapping.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAC5C,gGAAwF;AAGjF,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,+CAAiB;CAAG,CAAA;AAAtD,8DAAyB;oCAAzB,yBAAyB;IADrC,IAAA,mBAAU,GAAE;GACA,yBAAyB,CAA6B"}
|