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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"form.repository.js","sourceRoot":"","sources":["../../../../src/module/workflow/repository/form.repository.ts"],"names":[],"mappings":""}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { StageGroup } from '../entity/stage-group.entity';
|
|
2
|
-
import { DataSource, Repository } from 'typeorm';
|
|
3
|
-
import { MediaDataService } from 'src/module/meta/service/media-data.service';
|
|
4
|
-
export declare class StageGroupRepository {
|
|
5
|
-
private readonly stageGroupRepository;
|
|
6
|
-
private readonly dataSource;
|
|
7
|
-
private readonly mediaDataService;
|
|
8
|
-
constructor(stageGroupRepository: Repository<StageGroup>, dataSource: DataSource, mediaDataService: MediaDataService);
|
|
9
|
-
getAllStageGroup(workflow_id: number, organization_id: number): Promise<StageGroup[]>;
|
|
10
|
-
getAllStageGroupByCondition(condition: any): Promise<StageGroup[]>;
|
|
11
|
-
getAllStageGroupAndStageHierarchy(workflow_id: number, loggedInUser: any, lead_id: number): Promise<{
|
|
12
|
-
stages: any[];
|
|
13
|
-
workflow_id: number;
|
|
14
|
-
sequence: number;
|
|
15
|
-
color: string;
|
|
16
|
-
dark_color: string;
|
|
17
|
-
id: number;
|
|
18
|
-
entity_type: string;
|
|
19
|
-
name: string;
|
|
20
|
-
status: string;
|
|
21
|
-
parent_type: string;
|
|
22
|
-
parent_id: number;
|
|
23
|
-
code: string;
|
|
24
|
-
created_by: number;
|
|
25
|
-
created_date: Date;
|
|
26
|
-
modified_by: number;
|
|
27
|
-
modified_date: Date;
|
|
28
|
-
enterprise_id: number;
|
|
29
|
-
organization_id: number;
|
|
30
|
-
appcode: string;
|
|
31
|
-
level_id: string;
|
|
32
|
-
level_type: string;
|
|
33
|
-
}[]>;
|
|
34
|
-
}
|
|
@@ -1,135 +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.StageGroupRepository = void 0;
|
|
16
|
-
const common_1 = require("@nestjs/common");
|
|
17
|
-
const stage_group_entity_1 = require("../entity/stage-group.entity");
|
|
18
|
-
const typeorm_1 = require("@nestjs/typeorm");
|
|
19
|
-
const typeorm_2 = require("typeorm");
|
|
20
|
-
const media_data_service_1 = require("../../meta/service/media-data.service");
|
|
21
|
-
let StageGroupRepository = class StageGroupRepository {
|
|
22
|
-
constructor(stageGroupRepository, dataSource, mediaDataService) {
|
|
23
|
-
this.stageGroupRepository = stageGroupRepository;
|
|
24
|
-
this.dataSource = dataSource;
|
|
25
|
-
this.mediaDataService = mediaDataService;
|
|
26
|
-
}
|
|
27
|
-
async getAllStageGroup(workflow_id, organization_id) {
|
|
28
|
-
if (!workflow_id) {
|
|
29
|
-
throw new common_1.BadRequestException('workflow_id is required');
|
|
30
|
-
}
|
|
31
|
-
const result = await this.stageGroupRepository.find({
|
|
32
|
-
where: {
|
|
33
|
-
workflow_id,
|
|
34
|
-
organization_id,
|
|
35
|
-
},
|
|
36
|
-
order: {
|
|
37
|
-
sequence: 'ASC',
|
|
38
|
-
},
|
|
39
|
-
});
|
|
40
|
-
if (!result || result.length === 0) {
|
|
41
|
-
throw new common_1.NotFoundException('No stage groups found for the given workflow ID');
|
|
42
|
-
}
|
|
43
|
-
return result;
|
|
44
|
-
}
|
|
45
|
-
async getAllStageGroupByCondition(condition) {
|
|
46
|
-
const result = await this.stageGroupRepository.find({
|
|
47
|
-
where: {
|
|
48
|
-
...condition,
|
|
49
|
-
},
|
|
50
|
-
order: {
|
|
51
|
-
sequence: 'ASC',
|
|
52
|
-
},
|
|
53
|
-
});
|
|
54
|
-
if (!result || result.length === 0) {
|
|
55
|
-
throw new common_1.NotFoundException('No stage groups found for the given workflow ID');
|
|
56
|
-
}
|
|
57
|
-
return result;
|
|
58
|
-
}
|
|
59
|
-
async getAllStageGroupAndStageHierarchy(workflow_id, loggedInUser, lead_id) {
|
|
60
|
-
if (!workflow_id) {
|
|
61
|
-
throw new common_1.BadRequestException('workflow_id is required');
|
|
62
|
-
}
|
|
63
|
-
const stageGroups = await this.getAllStageGroupByCondition({
|
|
64
|
-
workflow_id,
|
|
65
|
-
organization_id: loggedInUser.organization_id,
|
|
66
|
-
});
|
|
67
|
-
if (!stageGroups.length)
|
|
68
|
-
return [];
|
|
69
|
-
const stageGroupIds = stageGroups.map((sg) => sg.id);
|
|
70
|
-
const stagesRaw = await this.dataSource.query(`
|
|
71
|
-
SELECT
|
|
72
|
-
frm_wf_stage.*
|
|
73
|
-
FROM frm_wf_stage
|
|
74
|
-
WHERE frm_wf_stage.stage_group_id IN (${stageGroupIds.map(() => '?').join(',')})
|
|
75
|
-
AND frm_wf_stage.organization_id = ?
|
|
76
|
-
ORDER BY frm_wf_stage.sequence ASC
|
|
77
|
-
`, [...stageGroupIds, loggedInUser.organization_id]);
|
|
78
|
-
const stageIds = stagesRaw.map((s) => s.id);
|
|
79
|
-
const taskCounts = await this.dataSource.query(`
|
|
80
|
-
SELECT stage_id, COUNT(*) AS task_count
|
|
81
|
-
FROM frm_wf_task_data
|
|
82
|
-
WHERE stage_id IN (${stageIds.map(() => '?').join(',')}) AND is_system=0 AND mapped_entity_id = ?
|
|
83
|
-
GROUP BY stage_id
|
|
84
|
-
`, [...stageIds, lead_id]);
|
|
85
|
-
const meetingCounts = await this.dataSource.query(`
|
|
86
|
-
SELECT stage_id, COUNT(*) AS meeting_count
|
|
87
|
-
FROM crm_lead_meeting
|
|
88
|
-
WHERE stage_id IN (${stageIds.map(() => '?').join(',')}) AND mapped_entity_id = ?
|
|
89
|
-
GROUP BY stage_id
|
|
90
|
-
`, [...stageIds, lead_id]);
|
|
91
|
-
const sendCommCounts = await this.dataSource.query(`
|
|
92
|
-
SELECT stage_id, COUNT(*) AS send_comm_count
|
|
93
|
-
FROM crm_lead_communication
|
|
94
|
-
WHERE stage_id IN (${stageIds.map(() => '?').join(',')}) AND mapped_entity_id = ?
|
|
95
|
-
AND type IN ('SEND', 'LOG')
|
|
96
|
-
GROUP BY stage_id
|
|
97
|
-
`, [...stageIds, lead_id]);
|
|
98
|
-
const taskCountMap = new Map(taskCounts.map((row) => [Number(row.stage_id), Number(row.task_count)]));
|
|
99
|
-
const meetingCountMap = new Map(meetingCounts.map((row) => [
|
|
100
|
-
Number(row.stage_id),
|
|
101
|
-
Number(row.meeting_count),
|
|
102
|
-
]));
|
|
103
|
-
const sendCommCountMap = new Map(sendCommCounts.map((row) => [
|
|
104
|
-
Number(row.stage_id),
|
|
105
|
-
Number(row.send_comm_count),
|
|
106
|
-
]));
|
|
107
|
-
const stageMap = new Map();
|
|
108
|
-
for (const stage of stagesRaw) {
|
|
109
|
-
const stageId = Number(stage.id);
|
|
110
|
-
stage.task_count = taskCountMap.get(stageId) || 0;
|
|
111
|
-
stage.meeting_count = meetingCountMap.get(stageId) || 0;
|
|
112
|
-
stage.send_comm_count = sendCommCountMap.get(stageId) || 0;
|
|
113
|
-
if (!stageMap.has(stage.stage_group_id)) {
|
|
114
|
-
stageMap.set(stage.stage_group_id, []);
|
|
115
|
-
}
|
|
116
|
-
stageMap.get(stage.stage_group_id)?.push(stage);
|
|
117
|
-
}
|
|
118
|
-
const result = stageGroups.map((stageGroup) => {
|
|
119
|
-
return {
|
|
120
|
-
...stageGroup,
|
|
121
|
-
stages: stageMap.get(Number(stageGroup.id)) || [],
|
|
122
|
-
};
|
|
123
|
-
});
|
|
124
|
-
return result;
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
exports.StageGroupRepository = StageGroupRepository;
|
|
128
|
-
exports.StageGroupRepository = StageGroupRepository = __decorate([
|
|
129
|
-
(0, common_1.Injectable)(),
|
|
130
|
-
__param(0, (0, typeorm_1.InjectRepository)(stage_group_entity_1.StageGroup)),
|
|
131
|
-
__metadata("design:paramtypes", [typeorm_2.Repository,
|
|
132
|
-
typeorm_2.DataSource,
|
|
133
|
-
media_data_service_1.MediaDataService])
|
|
134
|
-
], StageGroupRepository);
|
|
135
|
-
//# sourceMappingURL=stage-group.repository.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stage-group.repository.js","sourceRoot":"","sources":["../../../../src/module/workflow/repository/stage-group.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAKwB;AACxB,qEAA0D;AA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,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,cAAc,CAAC,EAAE,CAAC;gBACxC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC;YACzC,CAAC;YACD,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,cAAc,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;QAClD,CAAC;QAGD,MAAM,MAAM,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE;YAC5C,OAAO;gBACL,GAAG,UAAU;gBACb,MAAM,EAAE,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE;aAClD,CAAC;QACJ,CAAC,CAAC,CAAC;QAEH,OAAO,MAAM,CAAC;IAChB,CAAC;CACF,CAAA;AAnKY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,0BAAgB,EAAC,+BAAU,CAAC,CAAA;qCACU,oBAAU;QACpB,oBAAU;QACJ,qCAAgB;GAL1C,oBAAoB,CAmKhC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Repository, DataSource } from 'typeorm';
|
|
2
|
-
import { WorkflowLevelMappingEntity } from '../entity/workflow-level-mapping.entity';
|
|
3
|
-
import { StageGroup } from '../entity/stage-group.entity';
|
|
4
|
-
import { Stage } from '../entity/stage.entity';
|
|
5
|
-
import { UserData } from 'src/module/user/entity/user.entity';
|
|
6
|
-
export declare class StageMovementRepository {
|
|
7
|
-
private readonly workflowLevelMappingRepo;
|
|
8
|
-
private readonly stageGroupRepo;
|
|
9
|
-
private readonly stageRepo;
|
|
10
|
-
private readonly dataSource;
|
|
11
|
-
constructor(workflowLevelMappingRepo: Repository<WorkflowLevelMappingEntity>, stageGroupRepo: Repository<StageGroup>, stageRepo: Repository<Stage>, dataSource: DataSource);
|
|
12
|
-
getFirstStage({ loggedInUser, mapped_entity_type, mapped_entity_id, }: {
|
|
13
|
-
loggedInUser: any;
|
|
14
|
-
mapped_entity_type: string;
|
|
15
|
-
mapped_entity_id: string | number;
|
|
16
|
-
}): Promise<any | null>;
|
|
17
|
-
getNextStage(stageGroupId: number, currentStageId: number): Promise<any | null>;
|
|
18
|
-
getNextStageGroup(currentStageGroupId: number): Promise<any | null>;
|
|
19
|
-
getNextStageOrFirstOfNextGroup(stageGroupId: number, currentStageId: number): Promise<any | null>;
|
|
20
|
-
getAllActionByStageId(stageId: number): Promise<any>;
|
|
21
|
-
saveActionData(action: any, loggedInUser: UserData): Promise<any>;
|
|
22
|
-
saveTaskData(actionData: any, loggedInUser: UserData): Promise<any>;
|
|
23
|
-
}
|
|
@@ -1,160 +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.StageMovementRepository = void 0;
|
|
16
|
-
const common_1 = require("@nestjs/common");
|
|
17
|
-
const typeorm_1 = require("@nestjs/typeorm");
|
|
18
|
-
const typeorm_2 = require("typeorm");
|
|
19
|
-
const workflow_level_mapping_entity_1 = require("../entity/workflow-level-mapping.entity");
|
|
20
|
-
const stage_group_entity_1 = require("../entity/stage-group.entity");
|
|
21
|
-
const stage_entity_1 = require("../entity/stage.entity");
|
|
22
|
-
let StageMovementRepository = class StageMovementRepository {
|
|
23
|
-
constructor(workflowLevelMappingRepo, stageGroupRepo, stageRepo, dataSource) {
|
|
24
|
-
this.workflowLevelMappingRepo = workflowLevelMappingRepo;
|
|
25
|
-
this.stageGroupRepo = stageGroupRepo;
|
|
26
|
-
this.stageRepo = stageRepo;
|
|
27
|
-
this.dataSource = dataSource;
|
|
28
|
-
}
|
|
29
|
-
async getFirstStage({ loggedInUser, mapped_entity_type, mapped_entity_id, }) {
|
|
30
|
-
let workflowLevelMapping = await this.workflowLevelMappingRepo.findOne({
|
|
31
|
-
where: {
|
|
32
|
-
mapped_level_type: loggedInUser.level_type,
|
|
33
|
-
mapped_level_id: loggedInUser.level_id,
|
|
34
|
-
},
|
|
35
|
-
});
|
|
36
|
-
if (!workflowLevelMapping) {
|
|
37
|
-
workflowLevelMapping = await this.workflowLevelMappingRepo.findOne({
|
|
38
|
-
where: {
|
|
39
|
-
mapped_level_type: 'ORG',
|
|
40
|
-
mapped_level_id: loggedInUser.organization_id,
|
|
41
|
-
},
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
if (!workflowLevelMapping)
|
|
45
|
-
return null;
|
|
46
|
-
const stageGroup = await this.stageGroupRepo.findOne({
|
|
47
|
-
where: {
|
|
48
|
-
workflow_id: workflowLevelMapping.workflow_id,
|
|
49
|
-
},
|
|
50
|
-
order: { id: 'ASC' },
|
|
51
|
-
});
|
|
52
|
-
if (!stageGroup)
|
|
53
|
-
return null;
|
|
54
|
-
const firstStage = await this.stageRepo.findOne({
|
|
55
|
-
where: {
|
|
56
|
-
stage_group_id: stageGroup.id,
|
|
57
|
-
},
|
|
58
|
-
order: { id: 'ASC' },
|
|
59
|
-
});
|
|
60
|
-
if (!firstStage)
|
|
61
|
-
return null;
|
|
62
|
-
return {
|
|
63
|
-
mappingUsed: workflowLevelMapping,
|
|
64
|
-
stageGroup,
|
|
65
|
-
firstStage,
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
async getNextStage(stageGroupId, currentStageId) {
|
|
69
|
-
const allStages = await this.stageRepo.find({
|
|
70
|
-
where: { stage_group_id: stageGroupId },
|
|
71
|
-
order: { sequence: 'ASC' },
|
|
72
|
-
});
|
|
73
|
-
if (currentStageId === 0)
|
|
74
|
-
return allStages.length > 0 ? allStages[0] : null;
|
|
75
|
-
const currentStage = allStages.find((s) => s.id == currentStageId);
|
|
76
|
-
if (!currentStage)
|
|
77
|
-
return null;
|
|
78
|
-
const higherStages = allStages
|
|
79
|
-
.filter((s) => s.sequence > currentStage.sequence)
|
|
80
|
-
.sort((a, b) => a.sequence - b.sequence);
|
|
81
|
-
return higherStages.length > 0 ? higherStages[0] : null;
|
|
82
|
-
}
|
|
83
|
-
async getNextStageGroup(currentStageGroupId) {
|
|
84
|
-
const currentStageGroup = await this.stageGroupRepo.findOne({
|
|
85
|
-
where: { id: currentStageGroupId },
|
|
86
|
-
});
|
|
87
|
-
if (!currentStageGroup)
|
|
88
|
-
return null;
|
|
89
|
-
const workflowId = currentStageGroup.workflow_id;
|
|
90
|
-
const nextStageGroup = await this.stageGroupRepo.findOne({
|
|
91
|
-
where: {
|
|
92
|
-
workflow_id: workflowId,
|
|
93
|
-
sequence: (0, typeorm_2.MoreThan)(currentStageGroup.sequence),
|
|
94
|
-
},
|
|
95
|
-
order: { sequence: 'ASC' },
|
|
96
|
-
});
|
|
97
|
-
return nextStageGroup || null;
|
|
98
|
-
}
|
|
99
|
-
async getNextStageOrFirstOfNextGroup(stageGroupId, currentStageId) {
|
|
100
|
-
const nextStage = await this.getNextStage(stageGroupId, currentStageId);
|
|
101
|
-
if (nextStage)
|
|
102
|
-
return nextStage;
|
|
103
|
-
const nextStageGroup = await this.getNextStageGroup(stageGroupId);
|
|
104
|
-
if (!nextStageGroup)
|
|
105
|
-
return null;
|
|
106
|
-
const nextStageGroupFirstStage = await this.getNextStage(nextStageGroup.id, 0);
|
|
107
|
-
return nextStageGroupFirstStage || null;
|
|
108
|
-
}
|
|
109
|
-
async getAllActionByStageId(stageId) {
|
|
110
|
-
const result = await this.dataSource.query(`
|
|
111
|
-
SELECT
|
|
112
|
-
a.*,
|
|
113
|
-
m.id AS mapping_id,
|
|
114
|
-
m.stage_id,
|
|
115
|
-
ac.code AS action_category_code
|
|
116
|
-
FROM frm_wf_action a
|
|
117
|
-
LEFT JOIN frm_wf_stage_action_mapping m ON a.id = m.action_id
|
|
118
|
-
LEFT JOIN frm_wf_action_category ac ON a.action_category = ac.id
|
|
119
|
-
WHERE m.stage_id = ?
|
|
120
|
-
`, [stageId]);
|
|
121
|
-
for (const item of result) {
|
|
122
|
-
if (item.action_category_code === 'SDFM') {
|
|
123
|
-
const actionData = await this.dataSource.query(`
|
|
124
|
-
SELECT arm.form_id
|
|
125
|
-
FROM frm_wf_action_resources_mapping arm
|
|
126
|
-
WHERE arm.stg_act_mapping_id = ? and form_id IS NOT NULL
|
|
127
|
-
LIMIT 1
|
|
128
|
-
`, [item.mapping_id]);
|
|
129
|
-
item.form_id = actionData[0]?.form_id || null;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
return result;
|
|
133
|
-
}
|
|
134
|
-
async saveActionData(action, loggedInUser) {
|
|
135
|
-
if (action.length > 0) {
|
|
136
|
-
for (const act of action) {
|
|
137
|
-
await this.dataSource.query(`INSERT INTO frm_wf_action_data (stage_id, user_id, action_id) VALUES (?, ?, ?)`, [act.stage_id, loggedInUser.id, act.id]);
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
async saveTaskData(actionData, loggedInUser) {
|
|
142
|
-
if (actionData.length > 0) {
|
|
143
|
-
for (const action of actionData) {
|
|
144
|
-
await this.dataSource.query(`INSERT INTO frm_wf_task_data (action_id, user_id) VALUES (?, ?)`, [action.id, loggedInUser.id]);
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
};
|
|
149
|
-
exports.StageMovementRepository = StageMovementRepository;
|
|
150
|
-
exports.StageMovementRepository = StageMovementRepository = __decorate([
|
|
151
|
-
(0, common_1.Injectable)(),
|
|
152
|
-
__param(0, (0, typeorm_1.InjectRepository)(workflow_level_mapping_entity_1.WorkflowLevelMappingEntity)),
|
|
153
|
-
__param(1, (0, typeorm_1.InjectRepository)(stage_group_entity_1.StageGroup)),
|
|
154
|
-
__param(2, (0, typeorm_1.InjectRepository)(stage_entity_1.Stage)),
|
|
155
|
-
__metadata("design:paramtypes", [typeorm_2.Repository,
|
|
156
|
-
typeorm_2.Repository,
|
|
157
|
-
typeorm_2.Repository,
|
|
158
|
-
typeorm_2.DataSource])
|
|
159
|
-
], StageMovementRepository);
|
|
160
|
-
//# sourceMappingURL=stage-movement.repository.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stage-movement.repository.js","sourceRoot":"","sources":["../../../../src/module/workflow/repository/stage-movement.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,2CAA4C;AAC5C,6CAAmD;AACnD,qCAA2D;AAC3D,2FAAqF;AACrF,qEAA0D;AAC1D,yDAA+C;AAKxC,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IAClC,YAEmB,wBAAgE,EAEhE,cAAsC,EAEtC,SAA4B,EAC5B,UAAsB;QALtB,6BAAwB,GAAxB,wBAAwB,CAAwC;QAEhE,mBAAc,GAAd,cAAc,CAAwB;QAEtC,cAAS,GAAT,SAAS,CAAmB;QAC5B,eAAU,GAAV,UAAU,CAAY;IACtC,CAAC;IAEJ,KAAK,CAAC,aAAa,CAAC,EAClB,YAAY,EACZ,kBAAkB,EAClB,gBAAgB,GAKjB;QAEC,IAAI,oBAAoB,GAAG,MAAM,IAAI,CAAC,wBAAwB,CAAC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AAC,QAAQ,EAAE,YAAY,CAAC,EAAE,EAAE,GAAG,CAAC,EAAE,CAAC,CACxC,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,UAAe,EAAE,YAAsB;QAGxD,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC1B,KAAK,MAAM,MAAM,IAAI,UAAU,EAAE,CAAC;gBAChC,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,CACzB,iEAAiE,EACjE,CAAC,MAAM,CAAC,EAAE,EAAE,YAAY,CAAC,EAAE,CAAC,CAC7B,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC;CACF,CAAA;AAxOY,0DAAuB;kCAAvB,uBAAuB;IADnC,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,0BAAgB,EAAC,0DAA0B,CAAC,CAAA;IAE5C,WAAA,IAAA,0BAAgB,EAAC,+BAAU,CAAC,CAAA;IAE5B,WAAA,IAAA,0BAAgB,EAAC,oBAAK,CAAC,CAAA;qCAHmB,oBAAU;QAEpB,oBAAU;QAEf,oBAAU;QACT,oBAAU;GAR9B,uBAAuB,CAwOnC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { DataSource, Repository } from 'typeorm';
|
|
2
|
-
import { Stage } from '../entity/stage.entity';
|
|
3
|
-
export declare class StageRepository {
|
|
4
|
-
private readonly stageRepository;
|
|
5
|
-
private readonly dataSource;
|
|
6
|
-
constructor(stageRepository: Repository<Stage>, dataSource: DataSource);
|
|
7
|
-
getAllStage(stage_group_id: number, organization_id: number): Promise<{
|
|
8
|
-
name: string;
|
|
9
|
-
full_name: string;
|
|
10
|
-
stage_group_id: number;
|
|
11
|
-
sequence: number;
|
|
12
|
-
description: string;
|
|
13
|
-
id: number;
|
|
14
|
-
entity_type: string;
|
|
15
|
-
status: string;
|
|
16
|
-
parent_type: string;
|
|
17
|
-
parent_id: number;
|
|
18
|
-
code: string;
|
|
19
|
-
created_by: number;
|
|
20
|
-
created_date: Date;
|
|
21
|
-
modified_by: number;
|
|
22
|
-
modified_date: Date;
|
|
23
|
-
enterprise_id: number;
|
|
24
|
-
organization_id: number;
|
|
25
|
-
appcode: string;
|
|
26
|
-
level_id: string;
|
|
27
|
-
level_type: string;
|
|
28
|
-
}[]>;
|
|
29
|
-
getStageGroupsWithStagesByWorkflowId(stage_group_id: number, organization_id: number): Promise<any[]>;
|
|
30
|
-
getAllStageGroupAndStageByStageMovement(stage_group_id: number, organization_id: number): Promise<any[]>;
|
|
31
|
-
}
|
|
@@ -1,117 +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.StageRepository = void 0;
|
|
16
|
-
const common_1 = require("@nestjs/common");
|
|
17
|
-
const typeorm_1 = require("@nestjs/typeorm");
|
|
18
|
-
const typeorm_2 = require("typeorm");
|
|
19
|
-
const stage_entity_1 = require("../entity/stage.entity");
|
|
20
|
-
let StageRepository = class StageRepository {
|
|
21
|
-
constructor(stageRepository, dataSource) {
|
|
22
|
-
this.stageRepository = stageRepository;
|
|
23
|
-
this.dataSource = dataSource;
|
|
24
|
-
}
|
|
25
|
-
async getAllStage(stage_group_id, organization_id) {
|
|
26
|
-
if (!stage_group_id) {
|
|
27
|
-
throw new common_1.BadRequestException('stage_group_id is required');
|
|
28
|
-
}
|
|
29
|
-
const stageGroup = (await this.dataSource.manager.findOne('frm_wf_stage_group', {
|
|
30
|
-
where: { id: stage_group_id },
|
|
31
|
-
}));
|
|
32
|
-
if (!stageGroup) {
|
|
33
|
-
throw new common_1.NotFoundException('Stage group not found');
|
|
34
|
-
}
|
|
35
|
-
const stageGroupName = stageGroup.name;
|
|
36
|
-
const result = await this.stageRepository.find({
|
|
37
|
-
where: {
|
|
38
|
-
stage_group_id,
|
|
39
|
-
organization_id,
|
|
40
|
-
},
|
|
41
|
-
order: {
|
|
42
|
-
sequence: 'ASC',
|
|
43
|
-
},
|
|
44
|
-
});
|
|
45
|
-
if (!result || result.length === 0) {
|
|
46
|
-
return [];
|
|
47
|
-
}
|
|
48
|
-
const updatedStages = result.map((stage) => ({
|
|
49
|
-
...stage,
|
|
50
|
-
name: stage.name,
|
|
51
|
-
full_name: `${stageGroupName} - ${stage.name}`,
|
|
52
|
-
}));
|
|
53
|
-
return updatedStages;
|
|
54
|
-
}
|
|
55
|
-
async getStageGroupsWithStagesByWorkflowId(stage_group_id, organization_id) {
|
|
56
|
-
if (!stage_group_id) {
|
|
57
|
-
throw new common_1.BadRequestException('stage_group_id is required');
|
|
58
|
-
}
|
|
59
|
-
const stageGroup = (await this.dataSource.manager.findOne('frm_wf_stage_group', {
|
|
60
|
-
where: { id: stage_group_id, organization_id },
|
|
61
|
-
}));
|
|
62
|
-
if (!stageGroup) {
|
|
63
|
-
return [];
|
|
64
|
-
}
|
|
65
|
-
const rows = await this.dataSource.query(`
|
|
66
|
-
SELECT
|
|
67
|
-
g.id as stage_group_id, g.name as stage_group_name, g.workflow_id,
|
|
68
|
-
s.*
|
|
69
|
-
FROM frm_wf_stage_group g
|
|
70
|
-
INNER JOIN frm_wf_stage s ON s.stage_group_id = g.id
|
|
71
|
-
WHERE g.workflow_id = ? AND g.organization_id = ? AND g.id = ?
|
|
72
|
-
ORDER BY g.id, s.id
|
|
73
|
-
`, [stageGroup.workflow_id, organization_id, stage_group_id]);
|
|
74
|
-
if (!rows || rows.length === 0) {
|
|
75
|
-
return [];
|
|
76
|
-
}
|
|
77
|
-
return rows;
|
|
78
|
-
}
|
|
79
|
-
async getAllStageGroupAndStageByStageMovement(stage_group_id, organization_id) {
|
|
80
|
-
const currentStageGroup = await this.dataSource.manager.findOne('frm_wf_stage_group', { where: { id: stage_group_id, organization_id } });
|
|
81
|
-
if (!currentStageGroup) {
|
|
82
|
-
return [];
|
|
83
|
-
}
|
|
84
|
-
const stageGroups = await this.dataSource.manager.find('frm_wf_stage_group', {
|
|
85
|
-
where: {
|
|
86
|
-
workflow_id: currentStageGroup.workflow_id,
|
|
87
|
-
organization_id,
|
|
88
|
-
},
|
|
89
|
-
order: { sequence: 'ASC' },
|
|
90
|
-
});
|
|
91
|
-
const eligibleGroups = stageGroups.filter((g) => g.sequence <= currentStageGroup.sequence);
|
|
92
|
-
const flatResults = [];
|
|
93
|
-
for (const group of eligibleGroups) {
|
|
94
|
-
const stages = await this.stageRepository.find({
|
|
95
|
-
where: { stage_group_id: group.id, organization_id },
|
|
96
|
-
order: { sequence: 'ASC' },
|
|
97
|
-
});
|
|
98
|
-
if (!stages || stages.length === 0)
|
|
99
|
-
continue;
|
|
100
|
-
for (const stage of stages) {
|
|
101
|
-
flatResults.push({
|
|
102
|
-
...stage,
|
|
103
|
-
full_name: `${group.name} - ${stage.name}`,
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
return flatResults;
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
exports.StageRepository = StageRepository;
|
|
111
|
-
exports.StageRepository = StageRepository = __decorate([
|
|
112
|
-
(0, common_1.Injectable)(),
|
|
113
|
-
__param(0, (0, typeorm_1.InjectRepository)(stage_entity_1.Stage)),
|
|
114
|
-
__metadata("design:paramtypes", [typeorm_2.Repository,
|
|
115
|
-
typeorm_2.DataSource])
|
|
116
|
-
], StageRepository);
|
|
117
|
-
//# sourceMappingURL=stage.repository.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stage.repository.js","sourceRoot":"","sources":["../../../../src/module/workflow/repository/stage.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAKwB;AAExB,6CAAmD;AACnD,qCAAiD;AACjD,yDAA+C;AAGxC,IAAM,eAAe,GAArB,MAAM,eAAe;IAC1B,YAEmB,eAAkC,EAClC,UAAsB;QADtB,oBAAe,GAAf,eAAe,CAAmB;QAClC,eAAU,GAAV,UAAU,CAAY;IACtC,CAAC;IAEJ,KAAK,CAAC,WAAW,CAAC,cAAsB,EAAE,eAAuB;QAC/D,IAAI,CAAC,cAAc,EAAE,CAAC;YACpB,MAAM,IAAI,4BAAmB,CAAC,4BAA4B,CAAC,CAAC;QAC9D,CAAC;QAGD,MAAM,UAAU,GAAG,CAAC,MAAM,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,OAAO,CACvD,oBAAoB,EACpB;YACE,KAAK,EAAE,EAAE,EAAE,EAAE,cAAc,EAAE;SAC9B,CACF,CAAe,CAAC;QAEjB,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,MAAM,IAAI,0BAAiB,CAAC,uBAAuB,CAAC,CAAC;QACvD,CAAC;QAED,MAAM,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;QAGvC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC;YAC7C,KAAK,EAAE;gBACL,cAAc;gBACd,eAAe;aAChB;YACD,KAAK,EAAE;gBACL,QAAQ,EAAE,KAAK;aAChB;SACF,CAAC,CAAC;QAEH,IAAI,CAAC,MAAM,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CACU,oBAAU;QACf,oBAAU;GAJ9B,eAAe,CA+J3B"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { TaskDataEntity } from '../entity/task-data.entity';
|
|
2
|
-
import { DataSource, Repository } from 'typeorm';
|
|
3
|
-
export declare class TaskRepository {
|
|
4
|
-
private readonly TaskRepository;
|
|
5
|
-
private readonly dataSource;
|
|
6
|
-
constructor(TaskRepository: Repository<TaskDataEntity>, dataSource: DataSource);
|
|
7
|
-
getAllTaskByUserIdAndStageId(condition: any): Promise<TaskDataEntity[]>;
|
|
8
|
-
saveActionDataInTask(action: any, loggedInUser: any, mapped_entity_id: number, mapped_entity_type: string): Promise<any>;
|
|
9
|
-
updateTaskStatus(loggedInUser: any, mapped_entity_type: any, mapped_entity_id: any, stage_id: any, action_id: any): Promise<any>;
|
|
10
|
-
}
|
|
@@ -1,103 +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.TaskRepository = void 0;
|
|
16
|
-
const common_1 = require("@nestjs/common");
|
|
17
|
-
const typeorm_1 = require("@nestjs/typeorm");
|
|
18
|
-
const task_data_entity_1 = require("../entity/task-data.entity");
|
|
19
|
-
const typeorm_2 = require("typeorm");
|
|
20
|
-
let TaskRepository = class TaskRepository {
|
|
21
|
-
constructor(TaskRepository, dataSource) {
|
|
22
|
-
this.TaskRepository = TaskRepository;
|
|
23
|
-
this.dataSource = dataSource;
|
|
24
|
-
}
|
|
25
|
-
async getAllTaskByUserIdAndStageId(condition) {
|
|
26
|
-
const result = await this.TaskRepository.find({
|
|
27
|
-
where: {
|
|
28
|
-
...condition,
|
|
29
|
-
},
|
|
30
|
-
});
|
|
31
|
-
return result;
|
|
32
|
-
}
|
|
33
|
-
async saveActionDataInTask(action, loggedInUser, mapped_entity_id, mapped_entity_type) {
|
|
34
|
-
if (!action?.length)
|
|
35
|
-
return;
|
|
36
|
-
const todoListMasterItemId = await this.dataSource.query(`SELECT id FROM frm_list_master_items WHERE code = 'in_progress' and organization_id = ? and listtype = 'TKST' LIMIT 1;`, [loggedInUser.organization_id]);
|
|
37
|
-
const leadData = await this.dataSource.query(`SELECT * FROM crm_lead WHERE id = ?`, [mapped_entity_id]);
|
|
38
|
-
if (action.length > 0) {
|
|
39
|
-
for (const act of action) {
|
|
40
|
-
const is_mandatory = await this.dataSource.query(`SELECT code FROM frm_list_master_items WHERE id = ? and organization_id = ? LIMIT 1;`, [act.action_requirement, loggedInUser.organization_id]);
|
|
41
|
-
const now = new Date();
|
|
42
|
-
const dueDateTime = new Date(now);
|
|
43
|
-
dueDateTime.setDate(dueDateTime.getDate() + 2);
|
|
44
|
-
const istFormatterDate = new Intl.DateTimeFormat('en-CA', {
|
|
45
|
-
timeZone: 'Asia/Kolkata'
|
|
46
|
-
});
|
|
47
|
-
const istFormatterTime = new Intl.DateTimeFormat('en-US', {
|
|
48
|
-
timeZone: 'Asia/Kolkata',
|
|
49
|
-
hour: '2-digit',
|
|
50
|
-
minute: '2-digit',
|
|
51
|
-
hour12: true
|
|
52
|
-
});
|
|
53
|
-
const due_date = istFormatterDate.format(dueDateTime);
|
|
54
|
-
const due_time = istFormatterTime.format(dueDateTime);
|
|
55
|
-
console.log({ due_date, due_time });
|
|
56
|
-
const taskData = this.TaskRepository.create({
|
|
57
|
-
stage_id: act.stage_id,
|
|
58
|
-
user_id: loggedInUser.id,
|
|
59
|
-
action_id: act.id,
|
|
60
|
-
organization_id: loggedInUser.organization_id,
|
|
61
|
-
level_type: loggedInUser.level_type,
|
|
62
|
-
level_id: loggedInUser.level_id,
|
|
63
|
-
name: act.name,
|
|
64
|
-
sequence: act.sequence,
|
|
65
|
-
is_mandatory: is_mandatory[0]?.code === 'mandatory' ? true : false,
|
|
66
|
-
mapped_entity_id,
|
|
67
|
-
mapped_entity_type,
|
|
68
|
-
due_date,
|
|
69
|
-
due_time,
|
|
70
|
-
is_system: true,
|
|
71
|
-
status: todoListMasterItemId[0]?.id,
|
|
72
|
-
category: act?.action_category_code,
|
|
73
|
-
task_owner: leadData[0]?.lead_owner,
|
|
74
|
-
});
|
|
75
|
-
await this.TaskRepository.save(taskData);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
async updateTaskStatus(loggedInUser, mapped_entity_type, mapped_entity_id, stage_id, action_id) {
|
|
80
|
-
const task = await this.TaskRepository.findOneBy({
|
|
81
|
-
action_id,
|
|
82
|
-
mapped_entity_type,
|
|
83
|
-
mapped_entity_id,
|
|
84
|
-
stage_id,
|
|
85
|
-
});
|
|
86
|
-
if (!task)
|
|
87
|
-
return;
|
|
88
|
-
const completedListMasterItemId = await this.dataSource.query(`SELECT id FROM frm_list_master_items WHERE code = 'completed' and organization_id = ? and listtype = 'TKST' LIMIT 1;`, [loggedInUser.organization_id]);
|
|
89
|
-
task.modified_by = loggedInUser.id;
|
|
90
|
-
task.modified_date = new Date();
|
|
91
|
-
task.is_done = true;
|
|
92
|
-
task.status = completedListMasterItemId[0]?.id;
|
|
93
|
-
await this.TaskRepository.update(task.id, task);
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
exports.TaskRepository = TaskRepository;
|
|
97
|
-
exports.TaskRepository = TaskRepository = __decorate([
|
|
98
|
-
(0, common_1.Injectable)(),
|
|
99
|
-
__param(0, (0, typeorm_1.InjectRepository)(task_data_entity_1.TaskDataEntity)),
|
|
100
|
-
__metadata("design:paramtypes", [typeorm_2.Repository,
|
|
101
|
-
typeorm_2.DataSource])
|
|
102
|
-
], TaskRepository);
|
|
103
|
-
//# sourceMappingURL=task.repository.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"task.repository.js","sourceRoot":"","sources":["../../../../src/module/workflow/repository/task.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAiE;AACjE,6CAAmD;AACnD,iEAA4D;AAC5D,qCAAiD;AAG1C,IAAM,cAAc,GAApB,MAAM,cAAc;IACzB,YAEmB,cAA0C,EAC1C,UAAsB;QADtB,mBAAc,GAAd,cAAc,CAA4B;QAC1C,eAAU,GAAV,UAAU,CAAY;IACtC,CAAC;IAEJ,KAAK,CAAC,4BAA4B,CAAC,SAAS;QAC1C,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC;YAC5C,KAAK,EAAE;gBACL,GAAG,SAAS;aACb;SACF,CAAC,CAAC;QAEH,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,KAAK,CAAC,oBAAoB,CACxB,MAAW,EACX,YAAY,EACZ,gBAAwB,EACxB,kBAA0B;QAE1B,IAAI,CAAC,MAAM,EAAE,MAAM;YAAE,OAAO;QAE5B,MAAM,oBAAoB,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,CACtD,wHAAwH,EACxH,CAAC,YAAY,CAAC,eAAe,CAAC,CAC/B,CAAC;QAEF,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,CAC1C,qCAAqC,EACrC,CAAC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