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":"entity.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/entity.service.ts"],"names":[],"mappings":""}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { EntityServiceImpl } from './entity-service-impl.service';
|
|
2
|
-
import { BaseEntity } from '../entity/base-entity.entity';
|
|
3
|
-
import { UserData } from '../../user/entity/user.entity';
|
|
4
|
-
import { EntityManager } from 'typeorm';
|
|
5
|
-
import { ViewMaster } from '../entity/view-master.entity';
|
|
6
|
-
export declare class FieldGroupService extends EntityServiceImpl {
|
|
7
|
-
constructor();
|
|
8
|
-
createEntity(entityData: BaseEntity, loggedInUser: UserData, manager?: EntityManager): Promise<BaseEntity>;
|
|
9
|
-
updateEntity(entityData: ViewMaster, loggedInUserData: UserData | null): Promise<BaseEntity>;
|
|
10
|
-
parseLayout(layoutJson: any): {
|
|
11
|
-
stepType: string;
|
|
12
|
-
stepId: string;
|
|
13
|
-
stepLabel: string;
|
|
14
|
-
stepPosition: number;
|
|
15
|
-
fields: {
|
|
16
|
-
type: string;
|
|
17
|
-
label: string;
|
|
18
|
-
id: string;
|
|
19
|
-
}[];
|
|
20
|
-
}[];
|
|
21
|
-
extractFields(fieldsArray: any[]): {
|
|
22
|
-
type: string;
|
|
23
|
-
label: string;
|
|
24
|
-
id: string;
|
|
25
|
-
}[];
|
|
26
|
-
}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.FieldGroupService = void 0;
|
|
13
|
-
const common_1 = require("@nestjs/common");
|
|
14
|
-
const entity_service_impl_service_1 = require("./entity-service-impl.service");
|
|
15
|
-
let FieldGroupService = class FieldGroupService extends entity_service_impl_service_1.EntityServiceImpl {
|
|
16
|
-
constructor() {
|
|
17
|
-
super();
|
|
18
|
-
}
|
|
19
|
-
async createEntity(entityData, loggedInUser, manager) {
|
|
20
|
-
const entityMaster = await this.entityMasterService.getEntityData(entityData.entity_type, loggedInUser);
|
|
21
|
-
entityData.parent_id = entityMaster.id;
|
|
22
|
-
entityData.parent_type = entityMaster.entity_type;
|
|
23
|
-
const savedEntity = await super.createEntity(entityData, loggedInUser, manager);
|
|
24
|
-
return savedEntity;
|
|
25
|
-
}
|
|
26
|
-
async updateEntity(entityData, loggedInUserData) {
|
|
27
|
-
return entityData;
|
|
28
|
-
}
|
|
29
|
-
parseLayout(layoutJson) {
|
|
30
|
-
const stepsData = [];
|
|
31
|
-
if (layoutJson?.form?.children && Array.isArray(layoutJson.form.children)) {
|
|
32
|
-
const firstChild = layoutJson.form.children[0];
|
|
33
|
-
if (firstChild.type === 'wizard' && Array.isArray(firstChild.steps)) {
|
|
34
|
-
let i = 0;
|
|
35
|
-
for (const step of firstChild.steps) {
|
|
36
|
-
if (step.type === 'step') {
|
|
37
|
-
const fields = this.extractFields(step.fields);
|
|
38
|
-
stepsData.push({
|
|
39
|
-
stepType: step.type,
|
|
40
|
-
stepId: step.id,
|
|
41
|
-
stepLabel: step.label,
|
|
42
|
-
stepPosition: ++i,
|
|
43
|
-
fields: fields,
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
return stepsData;
|
|
50
|
-
}
|
|
51
|
-
extractFields(fieldsArray) {
|
|
52
|
-
const extractedFields = [];
|
|
53
|
-
function traverse(fields) {
|
|
54
|
-
for (const field of fields) {
|
|
55
|
-
if (field.type === 'field-set') {
|
|
56
|
-
extractedFields.push({
|
|
57
|
-
type: field.type,
|
|
58
|
-
label: field.label || 'No Label',
|
|
59
|
-
id: field.id || 'No ID',
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
if (Array.isArray(field.fields)) {
|
|
63
|
-
traverse(field.fields);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
traverse(fieldsArray);
|
|
68
|
-
return extractedFields;
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
exports.FieldGroupService = FieldGroupService;
|
|
72
|
-
exports.FieldGroupService = FieldGroupService = __decorate([
|
|
73
|
-
(0, common_1.Injectable)(),
|
|
74
|
-
__metadata("design:paramtypes", [])
|
|
75
|
-
], FieldGroupService);
|
|
76
|
-
//# sourceMappingURL=field-group.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"field-group.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/field-group.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,+EAAkE;AAO3D,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,+CAAiB;IACtD;QACE,KAAK,EAAE,CAAC;IACV,CAAC;IAED,KAAK,CAAC,YAAY,CAChB,UAAsB,EACtB,YAAsB,EACtB,OAAuB;QAEvB,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,aAAa,CAC/D,UAAU,CAAC,WAAW,EACtB,YAAY,CACb,CAAC;QACF,UAAU,CAAC,SAAS,GAAG,YAAY,CAAC,EAAE,CAAC;QACvC,UAAU,CAAC,WAAW,GAAG,YAAY,CAAC,WAAW,CAAC;QAElD,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,YAAY,CAC1C,UAAU,EACV,YAAY,EACZ,OAAO,CACR,CAAC;QACF,OAAO,WAAW,CAAC;IACrB,CAAC;IAED,KAAK,CAAC,YAAY,CAChB,UAAsB,EACtB,gBAAiC;QAEjC,OAAO,UAAU,CAAC;IACpB,CAAC;IAED,WAAW,CAAC,UAAe;QACzB,MAAM,SAAS,GAUT,EAAE,CAAC;QAET,IAAI,UAAU,EAAE,IAAI,EAAE,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;YAC1E,MAAM,UAAU,GAAG,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;YAE/C,IAAI,UAAU,CAAC,IAAI,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC;gBACpE,IAAI,CAAC,GAAG,CAAC,CAAC;gBACV,KAAK,MAAM,IAAI,IAAI,UAAU,CAAC,KAAK,EAAE,CAAC;oBACpC,IAAI,IAAI,CAAC,I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3
|
-
import { DataSource } from 'typeorm';
|
|
4
|
-
import { MediaData } from '../entity/media-data.entity';
|
|
5
|
-
import { MediaDataRepository } from '../repository/media-data.repository';
|
|
6
|
-
import { EntityServiceImpl } from './entity-service-impl.service';
|
|
7
|
-
export declare class MediaDataService extends EntityServiceImpl {
|
|
8
|
-
private readonly configService;
|
|
9
|
-
private readonly mediaRepository;
|
|
10
|
-
private dataSource;
|
|
11
|
-
constructor(configService: ConfigService, mediaRepository: MediaDataRepository, dataSource: DataSource);
|
|
12
|
-
s3AccessKeyID: any;
|
|
13
|
-
s3AccessKeySecret: any;
|
|
14
|
-
s3Region: any;
|
|
15
|
-
bucketName: string | undefined;
|
|
16
|
-
s3: S3;
|
|
17
|
-
generateMediaUploadDetails(fileName: string, mappedAttributeKey: string, loggedInUser: any, mappedEntityType?: string, mappedEntityId?: number, parentId?: number, parentType?: string): Promise<{
|
|
18
|
-
id: any;
|
|
19
|
-
path: string;
|
|
20
|
-
uploadUrl: string;
|
|
21
|
-
} | null>;
|
|
22
|
-
findByAttributeKeyAndMappedEntityIdAndMappedEntityType(attributeKey: string, mappedEntityId: number, mappedEntityType: string): Promise<MediaData | null>;
|
|
23
|
-
findByMappedEntityIdAndMappedEntityType(mappedEntityId: number, mappedEntityType: string): Promise<MediaData[]>;
|
|
24
|
-
deleteByAttributeKeyAndMappedEntityIdAndMappedEntityType(attributeKey: string, mappedEntityId: number, mappedEntityType: string): Promise<import("typeorm").DeleteResult>;
|
|
25
|
-
private getContentType;
|
|
26
|
-
getMediaDownloadUrl(id: number, loggedInUser: any, expiresIn?: number): Promise<{
|
|
27
|
-
signedUrl: string;
|
|
28
|
-
fileName: string;
|
|
29
|
-
id: number;
|
|
30
|
-
size: number | undefined;
|
|
31
|
-
}>;
|
|
32
|
-
buildUploadPathGenericdd(mappedEntityType: string, loggedInUser: any, mappedEntityId?: number, parentId?: number, parentType?: string): Promise<string | null>;
|
|
33
|
-
buildUploadPathGeneric(mappedEntityType: string, loggedInUser: any, mappedEntityId?: number, parentId?: number, parentType?: string): Promise<string | null>;
|
|
34
|
-
private resolveUploadPath;
|
|
35
|
-
buildUploadPath(mappedEntityType: string, loggedInUser: any, mappedEntityId?: number, parentId?: number, parentType?: string): Promise<string | null>;
|
|
36
|
-
}
|
|
@@ -1,300 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.MediaDataService = void 0;
|
|
13
|
-
const common_1 = require("@nestjs/common");
|
|
14
|
-
const config_1 = require("@nestjs/config");
|
|
15
|
-
const aws_sdk_1 = require("aws-sdk");
|
|
16
|
-
const axios_1 = require("axios");
|
|
17
|
-
const typeorm_1 = require("typeorm");
|
|
18
|
-
const uuid_1 = require("uuid");
|
|
19
|
-
const global_constant_1 = require("../../../constant/global.constant");
|
|
20
|
-
const media_data_entity_1 = require("../entity/media-data.entity");
|
|
21
|
-
const media_data_repository_1 = require("../repository/media-data.repository");
|
|
22
|
-
const entity_service_impl_service_1 = require("./entity-service-impl.service");
|
|
23
|
-
let MediaDataService = class MediaDataService extends entity_service_impl_service_1.EntityServiceImpl {
|
|
24
|
-
constructor(configService, mediaRepository, dataSource) {
|
|
25
|
-
super();
|
|
26
|
-
this.configService = configService;
|
|
27
|
-
this.mediaRepository = mediaRepository;
|
|
28
|
-
this.dataSource = dataSource;
|
|
29
|
-
this.s3AccessKeyID = this.configService.get('AWS.S3.AWS_ACCESS_KEY_ID');
|
|
30
|
-
this.s3AccessKeySecret = this.configService.get('AWS.S3.AWS_SECRET_KEY');
|
|
31
|
-
this.s3Region = this.configService.get('AWS.S3.AWS_REGION');
|
|
32
|
-
this.bucketName = this.configService.get('AWS.S3.BUCKET_NAME');
|
|
33
|
-
this.s3 = new aws_sdk_1.S3({
|
|
34
|
-
accessKeyId: this.s3AccessKeyID,
|
|
35
|
-
secretAccessKey: this.s3AccessKeySecret,
|
|
36
|
-
region: this.s3Region,
|
|
37
|
-
signatureVersion: 'v4',
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
async generateMediaUploadDetails(fileName, mappedAttributeKey, loggedInUser, mappedEntityType, mappedEntityId, parentId, parentType) {
|
|
41
|
-
if (!fileName || !mappedAttributeKey) {
|
|
42
|
-
return null;
|
|
43
|
-
}
|
|
44
|
-
const ext = fileName.split('.').pop()?.toLowerCase() ?? '';
|
|
45
|
-
const id = (0, uuid_1.v4)();
|
|
46
|
-
const s3Path = (await this.buildUploadPathGeneric(mappedEntityType || '', loggedInUser, mappedEntityId, parentId, parentType)) || `uploads`;
|
|
47
|
-
const s3Key = `${s3Path}/${id}.${ext}`;
|
|
48
|
-
const uploadUrl = await this.s3.getSignedUrlPromise('putObject', {
|
|
49
|
-
Bucket: this.bucketName,
|
|
50
|
-
Key: s3Key,
|
|
51
|
-
Expires: 60 * 5,
|
|
52
|
-
ContentType: this.getContentType(ext),
|
|
53
|
-
});
|
|
54
|
-
const mediaData = new media_data_entity_1.MediaData();
|
|
55
|
-
mediaData.file_name = fileName;
|
|
56
|
-
mediaData.mapped_attribute_key = mappedAttributeKey;
|
|
57
|
-
mediaData.status = global_constant_1.STATUS_PENDING;
|
|
58
|
-
if (mappedEntityType) {
|
|
59
|
-
mediaData.mapped_entity_type = mappedEntityType;
|
|
60
|
-
}
|
|
61
|
-
if (mappedEntityId) {
|
|
62
|
-
mediaData.mapped_entity_id = mappedEntityId;
|
|
63
|
-
}
|
|
64
|
-
mediaData.media_url = s3Key;
|
|
65
|
-
const savedEntity = await super.createEntity(mediaData, loggedInUser);
|
|
66
|
-
if (savedEntity) {
|
|
67
|
-
return { id: savedEntity.id, path: s3Key, uploadUrl };
|
|
68
|
-
}
|
|
69
|
-
return null;
|
|
70
|
-
}
|
|
71
|
-
async findByAttributeKeyAndMappedEntityIdAndMappedEntityType(attributeKey, mappedEntityId, mappedEntityType) {
|
|
72
|
-
return await this.mediaRepository.findByAttributeKeyAndMappedEntityIdAndMappedEntityType(attributeKey, mappedEntityId, mappedEntityType);
|
|
73
|
-
}
|
|
74
|
-
async findByMappedEntityIdAndMappedEntityType(mappedEntityId, mappedEntityType) {
|
|
75
|
-
return await this.mediaRepository.findByMappedEntityIdAndMappedEntityType(mappedEntityId, mappedEntityType);
|
|
76
|
-
}
|
|
77
|
-
async deleteByAttributeKeyAndMappedEntityIdAndMappedEntityType(attributeKey, mappedEntityId, mappedEntityType) {
|
|
78
|
-
return await this.mediaRepository.deleteByAttributeKeyAndMappedEntityIdAndMappedEntityType(attributeKey, mappedEntityId, mappedEntityType);
|
|
79
|
-
}
|
|
80
|
-
getContentType(ext) {
|
|
81
|
-
const map = {
|
|
82
|
-
pdf: 'application/pdf',
|
|
83
|
-
jpg: 'image/jpeg',
|
|
84
|
-
jpeg: 'image/jpeg',
|
|
85
|
-
png: 'image/png',
|
|
86
|
-
};
|
|
87
|
-
return map[ext] || 'application/octet-stream';
|
|
88
|
-
}
|
|
89
|
-
async getMediaDownloadUrl(id, loggedInUser, expiresIn) {
|
|
90
|
-
try {
|
|
91
|
-
const entityData = await this.getEntityData(global_constant_1.ENTITYTYPE_MEDIA, id, loggedInUser);
|
|
92
|
-
const mediaData = entityData;
|
|
93
|
-
let fileSize;
|
|
94
|
-
if (this.bucketName) {
|
|
95
|
-
const head = await this.s3
|
|
96
|
-
.headObject({
|
|
97
|
-
Bucket: this.bucketName,
|
|
98
|
-
Key: mediaData.media_url,
|
|
99
|
-
})
|
|
100
|
-
.promise();
|
|
101
|
-
fileSize = head.ContentLength;
|
|
102
|
-
}
|
|
103
|
-
const signedUrl = await this.s3.getSignedUrlPromise('getObject', {
|
|
104
|
-
Bucket: this.bucketName,
|
|
105
|
-
Key: mediaData.media_url,
|
|
106
|
-
Expires: Number(expiresIn) || 60 * 5,
|
|
107
|
-
});
|
|
108
|
-
return {
|
|
109
|
-
signedUrl,
|
|
110
|
-
fileName: mediaData.file_name,
|
|
111
|
-
id: mediaData.id,
|
|
112
|
-
size: fileSize,
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
|
-
catch (error) {
|
|
116
|
-
console.error('Error generating signed URL for media:', error);
|
|
117
|
-
throw new Error('Failed to generate signed URL');
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
async buildUploadPathGenericdd(mappedEntityType, loggedInUser, mappedEntityId, parentId, parentType) {
|
|
121
|
-
const entityMaster = await this.entityMasterService.getEntityData(mappedEntityType, loggedInUser);
|
|
122
|
-
if (!entityMaster) {
|
|
123
|
-
throw new Error(`Entity master not found for ${mappedEntityType}`);
|
|
124
|
-
}
|
|
125
|
-
let pathTemplate = entityMaster.doc_upload_path ?? '';
|
|
126
|
-
const entityOverwrite = entityMaster.overwrite_path ?? 0;
|
|
127
|
-
if (!pathTemplate) {
|
|
128
|
-
throw new Error(`doc_upload_path not defined for ${mappedEntityType}`);
|
|
129
|
-
}
|
|
130
|
-
const replacements = {};
|
|
131
|
-
let organizationData = await this.dataSource.query('SELECT * FROM sso_organization WHERE id = ?', [loggedInUser.organization_id]);
|
|
132
|
-
replacements['org_code'] = organizationData[0].code;
|
|
133
|
-
let levelEntityId;
|
|
134
|
-
let levelEntityType;
|
|
135
|
-
if (parentId && parentType) {
|
|
136
|
-
levelEntityId = parentId;
|
|
137
|
-
levelEntityType = parentType;
|
|
138
|
-
}
|
|
139
|
-
else {
|
|
140
|
-
levelEntityId = entityOverwrite ? mappedEntityId : loggedInUser.level_id;
|
|
141
|
-
levelEntityType = entityOverwrite
|
|
142
|
-
? mappedEntityType
|
|
143
|
-
: loggedInUser.level_type;
|
|
144
|
-
}
|
|
145
|
-
const getEntityData = await this.dataSource.query(`SELECT * FROM cr_entity_master WHERE mapped_entity_type = ? and organization_id = ?`, [levelEntityType, loggedInUser.organization_id]);
|
|
146
|
-
if (getEntityData.length == 0)
|
|
147
|
-
return null;
|
|
148
|
-
const levelEntityDataResult = await this.dataSource.query(`SELECT * FROM ${getEntityData[0]?.db_table_name} WHERE id = ?`, [levelEntityId]);
|
|
149
|
-
const levelEntityData = levelEntityDataResult[0] || null;
|
|
150
|
-
if (levelEntityData?.code) {
|
|
151
|
-
replacements['level_code'] = levelEntityData.code;
|
|
152
|
-
}
|
|
153
|
-
if (parentId && parentType && mappedEntityId && mappedEntityType) {
|
|
154
|
-
const mappedEntityKey = `${mappedEntityType.toLowerCase()}_code`;
|
|
155
|
-
const mappedEntityData = await super.getEntityData(mappedEntityType, mappedEntityId, loggedInUser);
|
|
156
|
-
if (mappedEntityData?.code) {
|
|
157
|
-
replacements[mappedEntityKey] = mappedEntityData.code;
|
|
158
|
-
const mappedVariable = `\${${mappedEntityKey}}`;
|
|
159
|
-
if (!pathTemplate.includes(mappedVariable)) {
|
|
160
|
-
pathTemplate = pathTemplate + `/${mappedVariable}`;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
if (parentId && parentType) {
|
|
165
|
-
const getEntityData = await this.dataSource.query(`SELECT * FROM cr_entity_master WHERE mapped_entity_type = ? and organization_id = ?`, [mappedEntityType, loggedInUser.organization_id]);
|
|
166
|
-
if (getEntityData.length == 0)
|
|
167
|
-
return null;
|
|
168
|
-
const levelEntityDataResult = await this.dataSource.query(`SELECT * FROM ${getEntityData[0]?.db_table_name} WHERE id = ?`, [mappedEntityId]);
|
|
169
|
-
if (levelEntityDataResult?.[0].code &&
|
|
170
|
-
parentType != 'SCH' &&
|
|
171
|
-
loggedInUser.level_type != 'SCH') {
|
|
172
|
-
replacements['template_code'] = levelEntityDataResult[0].code;
|
|
173
|
-
pathTemplate = '${org_code}/template/${template_code}';
|
|
174
|
-
}
|
|
175
|
-
else {
|
|
176
|
-
const getEntityData = await this.dataSource.query(`SELECT * FROM cr_entity_master WHERE mapped_entity_type = ? and organization_id = ?`, [mappedEntityType, loggedInUser.organization_id]);
|
|
177
|
-
if (getEntityData.length == 0)
|
|
178
|
-
return null;
|
|
179
|
-
const levelEntityDataResult = await this.dataSource.query(`SELECT * FROM ${getEntityData[0]?.db_table_name} WHERE id = ?`, [mappedEntityId]);
|
|
180
|
-
replacements['template_code'] = levelEntityDataResult?.[0].code;
|
|
181
|
-
pathTemplate = '${org_code}/${level_code}/template/${template_code}';
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
const matches = pathTemplate.match(/\$\{(\w+)\}/g) || [];
|
|
185
|
-
for (const variable of matches) {
|
|
186
|
-
const key = variable.replace(/\$\{|\}/g, '');
|
|
187
|
-
if (replacements[key])
|
|
188
|
-
continue;
|
|
189
|
-
if (key === 'org_code')
|
|
190
|
-
continue;
|
|
191
|
-
if (key === 'level_code')
|
|
192
|
-
continue;
|
|
193
|
-
if (key === 'template_code')
|
|
194
|
-
continue;
|
|
195
|
-
if (key.endsWith('_code')) {
|
|
196
|
-
const entityType = key.replace('_code', '').toUpperCase();
|
|
197
|
-
let entityId;
|
|
198
|
-
if (key === 'template_code') {
|
|
199
|
-
if (parentType?.toUpperCase() === 'TEMPLATE' && parentId) {
|
|
200
|
-
entityId = parentId;
|
|
201
|
-
}
|
|
202
|
-
else if (mappedEntityType === 'TEMPLATE') {
|
|
203
|
-
entityId = mappedEntityId;
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
else {
|
|
207
|
-
if (parentType?.toUpperCase() === entityType && parentId) {
|
|
208
|
-
entityId = parentId;
|
|
209
|
-
}
|
|
210
|
-
else if (mappedEntityType === entityType) {
|
|
211
|
-
entityId = mappedEntityId;
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
if (entityId) {
|
|
215
|
-
const entityData = await super.getEntityData(entityType, entityId, loggedInUser);
|
|
216
|
-
replacements[key] = entityData?.code ?? null;
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
if (loggedInUser.level_type === 'ORG' && entityOverwrite === 0) {
|
|
221
|
-
}
|
|
222
|
-
if (pathTemplate) {
|
|
223
|
-
const finalPath = this.resolveUploadPath(pathTemplate, replacements);
|
|
224
|
-
return finalPath;
|
|
225
|
-
}
|
|
226
|
-
return null;
|
|
227
|
-
}
|
|
228
|
-
async buildUploadPathGeneric(mappedEntityType, loggedInUser, mappedEntityId, parentId, parentType) {
|
|
229
|
-
let appCode = '';
|
|
230
|
-
let org_id = loggedInUser.organization_id;
|
|
231
|
-
let level_type = loggedInUser.level_type;
|
|
232
|
-
let level_id = loggedInUser.level_type == 'ORG' && mappedEntityType == 'SCH'
|
|
233
|
-
? mappedEntityId
|
|
234
|
-
: loggedInUser.level_id;
|
|
235
|
-
let organizationData = {};
|
|
236
|
-
let levelData = {};
|
|
237
|
-
let mappedEntityData = {};
|
|
238
|
-
if (loggedInUser && loggedInUser.appcode) {
|
|
239
|
-
appCode = loggedInUser.appcode;
|
|
240
|
-
}
|
|
241
|
-
if (appCode && appCode != 'ADM') {
|
|
242
|
-
const baseUrl = this.configService.get('REDIRECT_BE_URL');
|
|
243
|
-
const queryParams = new URLSearchParams({
|
|
244
|
-
loggedInUser: JSON.stringify(loggedInUser),
|
|
245
|
-
}).toString();
|
|
246
|
-
organizationData = await axios_1.default
|
|
247
|
-
.get(`${baseUrl}/organization/public/${loggedInUser.organization_id}?${queryParams}`)
|
|
248
|
-
.then((res) => res.data)
|
|
249
|
-
.catch((err) => {
|
|
250
|
-
console.error('Error fetching organization data:', err.message);
|
|
251
|
-
return null;
|
|
252
|
-
});
|
|
253
|
-
levelData = await axios_1.default
|
|
254
|
-
.get(`${baseUrl}/school/public/?${queryParams}`)
|
|
255
|
-
.then((res) => res.data)
|
|
256
|
-
.catch((err) => {
|
|
257
|
-
console.error('Error fetching school data:', err.message);
|
|
258
|
-
return null;
|
|
259
|
-
});
|
|
260
|
-
}
|
|
261
|
-
else {
|
|
262
|
-
organizationData = await this.dataSource.query('SELECT * FROM adm_org_profile WHERE id = ?', [loggedInUser.organization_id]);
|
|
263
|
-
levelData = await this.dataSource.query('SELECT * FROM adm_school_profile WHERE id = ?', [loggedInUser.level_id]);
|
|
264
|
-
}
|
|
265
|
-
console.log(levelData);
|
|
266
|
-
let subfolder = mappedEntityType == level_type
|
|
267
|
-
? 'data'
|
|
268
|
-
: parentType
|
|
269
|
-
? `${parentType}/${parentId}/${mappedEntityType}`
|
|
270
|
-
: mappedEntityType;
|
|
271
|
-
let path = '${org_code}/${level_code}/' +
|
|
272
|
-
(subfolder !== 'data'
|
|
273
|
-
? `${subfolder}/${mappedEntityId}`
|
|
274
|
-
: `${subfolder}`);
|
|
275
|
-
const replacements = {};
|
|
276
|
-
replacements['org_code'] = organizationData[0]?.code;
|
|
277
|
-
replacements['level_code'] = levelData[0]?.code;
|
|
278
|
-
if (path) {
|
|
279
|
-
const finalPath = this.resolveUploadPath(path, replacements);
|
|
280
|
-
return finalPath;
|
|
281
|
-
}
|
|
282
|
-
return null;
|
|
283
|
-
}
|
|
284
|
-
resolveUploadPath(template, replacements) {
|
|
285
|
-
let path = template;
|
|
286
|
-
path = path.replace(/\$\{(\w+)\}/g, (_, key) => replacements[key] || '');
|
|
287
|
-
return path.replace(/\/+/g, '/').replace(/\/$/, '');
|
|
288
|
-
}
|
|
289
|
-
async buildUploadPath(mappedEntityType, loggedInUser, mappedEntityId, parentId, parentType) {
|
|
290
|
-
return this.buildUploadPathGeneric(mappedEntityType, loggedInUser, mappedEntityId, parentId, parentType);
|
|
291
|
-
}
|
|
292
|
-
};
|
|
293
|
-
exports.MediaDataService = MediaDataService;
|
|
294
|
-
exports.MediaDataService = MediaDataService = __decorate([
|
|
295
|
-
(0, common_1.Injectable)(),
|
|
296
|
-
__metadata("design:paramtypes", [config_1.ConfigService,
|
|
297
|
-
media_data_repository_1.MediaDataRepository,
|
|
298
|
-
typeorm_1.DataSource])
|
|
299
|
-
], MediaDataService);
|
|
300
|
-
//# sourceMappingURL=media-data.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"media-data.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/media-data.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,2CAA+C;AAC/C,qCAA6B;AAC7B,iCAA0B;AAC1B,qCAAqC;AACrC,+BAAoC;AACpC,uEAG2C;AAC3C,mEAAwD;AACxD,+EAA0E;AAC1E,+EAAkE;AAG3D,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,+CAAiB;IACrD,YACmB,aAA4B,EAC5B,eAAoC,EAC7C,UAAsB;QAE9B,KAAK,EAAE,CAAC;QAJS,kBAAa,GAAb,aAAa,CAAe;QAC5B,oBAAe,GAAf,eAAe,CAAqB;QAC7C,eAAU,GAAV,UAAU,CAAY;QAKhC,kBAAa,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC;QACnE,sBAAiB,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;QACpE,aAAQ,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;QACvD,eAAU,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAS,oBAAoB,CAAC,CAAC;QAElE,OAAE,GAAG,IAAI,YAAE,CAAC;YACV,WAAW,EAAE,IAAI,CAAC,aAAa;YAC/B,eAAe,EAAE,IAAI,CAAC,iBAAiB;YACvC,MAAM,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BAAiB,CACvB,QAAgB,EAChB,YAA2C;QAE3C,IAAI,IAAI,GAAG,QAAQ,CAAC;QACpB,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;QACzE,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACtD,CAAC;IAgBD,KAAK,CAAC,eAAe,CACnB,gBAAwB,EACxB,YAAiB,EACjB,cAAuB,EACvB,QAAiB,EACjB,UAAmB;QAEnB,OAAO,IAAI,CAAC,sBAAsB,CAChC,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,QAAQ,EACR,UAAU,CACX,CAAC;IACJ,CAAC;CACF,CAAA;AA3eY,4CAAgB;2BAAhB,gBAAgB;IAD5B,IAAA,mBAAU,GAAE;qCAGuB,sBAAa;QACX,2CAAmB;QACjC,oBAAU;GAJrB,gBAAgB,CA2e5B"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { DataSource } from 'typeorm';
|
|
2
|
-
import { EntityServiceImpl } from './entity-service-impl.service';
|
|
3
|
-
export declare class PopulateMetaService {
|
|
4
|
-
private readonly dataSource;
|
|
5
|
-
private readonly entityServiceImpl;
|
|
6
|
-
constructor(dataSource: DataSource, entityServiceImpl: EntityServiceImpl);
|
|
7
|
-
populateMetaData(organization_id: number): Promise<{
|
|
8
|
-
message: string;
|
|
9
|
-
status: string;
|
|
10
|
-
}>;
|
|
11
|
-
}
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.PopulateMetaService = void 0;
|
|
13
|
-
const common_1 = require("@nestjs/common");
|
|
14
|
-
const typeorm_1 = require("typeorm");
|
|
15
|
-
const entity_service_impl_service_1 = require("./entity-service-impl.service");
|
|
16
|
-
let PopulateMetaService = class PopulateMetaService {
|
|
17
|
-
constructor(dataSource, entityServiceImpl) {
|
|
18
|
-
this.dataSource = dataSource;
|
|
19
|
-
this.entityServiceImpl = entityServiceImpl;
|
|
20
|
-
}
|
|
21
|
-
async populateMetaData(organization_id) {
|
|
22
|
-
const metadataTables = [
|
|
23
|
-
'frm_entity_master',
|
|
24
|
-
'frm_entity_attribute',
|
|
25
|
-
'frm_entity_view',
|
|
26
|
-
'frm_entity_relation',
|
|
27
|
-
];
|
|
28
|
-
const entityTypeToNewIdMap = new Map();
|
|
29
|
-
const getStatus = await this.dataSource.query(`SELECT * FROM frm_list_master_items WHERE organization_id = ${organization_id} AND code = "STATUS_ACTIVE"`);
|
|
30
|
-
const status = getStatus[0]?.id ? getStatus[0].id : 'ACTIVE';
|
|
31
|
-
let oneToManyId = await this.dataSource.query(`SELECT id FROM frm_list_master_items WHERE value = 'ONE_TO_MANY' AND organization_id = ${organization_id}`);
|
|
32
|
-
let oneToOneId = await this.dataSource.query(`SELECT id FROM frm_list_master_items WHERE value = 'ONE_TO_MANY' AND organization_id = ${organization_id}`);
|
|
33
|
-
for (const table of metadataTables) {
|
|
34
|
-
const factoryData = await this.dataSource.query(`SELECT * FROM ${table} WHERE organization_id = -1 AND level_type = 'ORG' AND level_id = -1`);
|
|
35
|
-
if (!factoryData.length)
|
|
36
|
-
continue;
|
|
37
|
-
let transformedData;
|
|
38
|
-
if (table === 'frm_entity_master') {
|
|
39
|
-
transformedData = factoryData.map(({ id, created_date, modified_date, ...rest }) => ({
|
|
40
|
-
...rest,
|
|
41
|
-
organization_id,
|
|
42
|
-
level_type: 'ORG',
|
|
43
|
-
level_id: organization_id,
|
|
44
|
-
is_workflow: rest.is_workflow == 1 ? true : false,
|
|
45
|
-
status: status,
|
|
46
|
-
}));
|
|
47
|
-
}
|
|
48
|
-
else if (table === 'frm_entity_attribute') {
|
|
49
|
-
transformedData = factoryData.map(({ id, created_date, modified_date, ...rest }) => ({
|
|
50
|
-
...rest,
|
|
51
|
-
organization_id,
|
|
52
|
-
level_type: 'ORG',
|
|
53
|
-
level_id: organization_id,
|
|
54
|
-
is_unique: rest.is_unique == 1 ? true : false,
|
|
55
|
-
required: rest.required == 1 ? true : false,
|
|
56
|
-
is_hidden: rest.is_hidden == 1 ? true : false,
|
|
57
|
-
status: status,
|
|
58
|
-
}));
|
|
59
|
-
}
|
|
60
|
-
else if (table === 'frm_entity_relation') {
|
|
61
|
-
transformedData = factoryData.map(({ id, created_date, modified_date, ...rest }) => ({
|
|
62
|
-
...rest,
|
|
63
|
-
organization_id,
|
|
64
|
-
level_type: 'ORG',
|
|
65
|
-
level_id: organization_id,
|
|
66
|
-
status: status,
|
|
67
|
-
relation_id: rest.relation_type == "ONE_TO_ONE" ? oneToOneId[0].id : oneToManyId[0].id
|
|
68
|
-
}));
|
|
69
|
-
}
|
|
70
|
-
else {
|
|
71
|
-
transformedData = factoryData.map(({ id, created_date, modified_date, ...rest }) => ({
|
|
72
|
-
...rest,
|
|
73
|
-
organization_id,
|
|
74
|
-
level_type: 'ORG',
|
|
75
|
-
level_id: organization_id,
|
|
76
|
-
status: status,
|
|
77
|
-
}));
|
|
78
|
-
}
|
|
79
|
-
await this.dataSource
|
|
80
|
-
.createQueryBuilder()
|
|
81
|
-
.insert()
|
|
82
|
-
.into(table)
|
|
83
|
-
.values(transformedData)
|
|
84
|
-
.execute();
|
|
85
|
-
}
|
|
86
|
-
const entityTables = await this.dataSource.query(`SELECT * FROM frm_entity_table WHERE organization_id = -1 AND level_type = 'ORG' AND level_id = -1`);
|
|
87
|
-
for (let entityTable of entityTables) {
|
|
88
|
-
const { id, mapped_entity_type, display_type, ...rest } = entityTable;
|
|
89
|
-
entityTable = {
|
|
90
|
-
...rest,
|
|
91
|
-
organization_id,
|
|
92
|
-
mapped_entity_type: mapped_entity_type,
|
|
93
|
-
level_type: 'ORG',
|
|
94
|
-
level_id: organization_id,
|
|
95
|
-
display_type: display_type,
|
|
96
|
-
};
|
|
97
|
-
const insertResult = await this.dataSource
|
|
98
|
-
.createQueryBuilder()
|
|
99
|
-
.insert()
|
|
100
|
-
.into('frm_entity_table')
|
|
101
|
-
.values(entityTable)
|
|
102
|
-
.execute();
|
|
103
|
-
const newId = insertResult.identifiers[0].id;
|
|
104
|
-
const entityTableColumns = await this.dataSource.query(`SELECT * FROM frm_entity_table_column WHERE organization_id = -1 AND level_type = 'ORG' AND level_id = -1 AND mapped_entity_type = '${mapped_entity_type}' AND display_type = '${display_type}'`);
|
|
105
|
-
for (const column of entityTableColumns) {
|
|
106
|
-
const { id, created_date, modified_date, ...columnRest } = column;
|
|
107
|
-
const newColumn = {
|
|
108
|
-
...columnRest,
|
|
109
|
-
organization_id,
|
|
110
|
-
parent_id: newId,
|
|
111
|
-
level_type: 'ORG',
|
|
112
|
-
level_id: organization_id,
|
|
113
|
-
mapped_entity_type: mapped_entity_type,
|
|
114
|
-
display_type: display_type,
|
|
115
|
-
};
|
|
116
|
-
await this.dataSource
|
|
117
|
-
.createQueryBuilder()
|
|
118
|
-
.insert()
|
|
119
|
-
.into('frm_entity_table_column')
|
|
120
|
-
.values(newColumn)
|
|
121
|
-
.execute();
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
return {
|
|
125
|
-
message: 'Metadata populated successfully',
|
|
126
|
-
status: 'success',
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
};
|
|
130
|
-
exports.PopulateMetaService = PopulateMetaService;
|
|
131
|
-
exports.PopulateMetaService = PopulateMetaService = __decorate([
|
|
132
|
-
(0, common_1.Injectable)(),
|
|
133
|
-
__metadata("design:paramtypes", [typeorm_1.DataSource,
|
|
134
|
-
entity_service_impl_service_1.EntityServiceImpl])
|
|
135
|
-
], PopulateMetaService);
|
|
136
|
-
//# sourceMappingURL=populate-meta.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"populate-meta.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/populate-meta.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,qCAAqC;AACrC,+EAAkE;AAG3D,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAC9B,YACmB,UAAsB,EACtB,iBAAoC;QADpC,eAAU,GAAV,UAAU,CAAY;QACtB,sBAAiB,GAAjB,iBAAiB,CAAmB;IACpD,CAAC;IA4CJ,KAAK,CAAC,gBAAgB,CAAC,eAAuB;QAC5C,MAAM,cAAc,GAAG;YACrB,mBAAmB;YACnB,sBAAsB;YACtB,iBAAiB;YACjB,qBAAqB;SACtB,CAAC;QACF,MAAM,oBAAoB,GAAG,IAAI,GAAG,EAAkB,CAAC;QAEvD,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,CAC3C,+DAA+D,eAAe,6BAA6B,CAC5G,CAAC;QACF,MAAM,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC;QAE7D,IAAI,WAAW,GAAG,MAAM,IAAI,CAAC,UAAU,C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,EAAE,SAAS;SAClB,CAAC;IACJ,CAAC;CACF,CAAA;AA3LY,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,mBAAU,GAAE;qCAGoB,oBAAU;QACH,+CAAiB;GAH5C,mBAAmB,CA2L/B"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { EntityServiceImpl } from './entity-service-impl.service';
|
|
2
|
-
import { PreferenceRepository } from '../repository/preference.repository';
|
|
3
|
-
export declare class PreferenceService extends EntityServiceImpl {
|
|
4
|
-
private readonly preferenceRepository;
|
|
5
|
-
constructor(preferenceRepository: PreferenceRepository);
|
|
6
|
-
getPreferenceValue(preferenceKey: string): Promise<string | undefined>;
|
|
7
|
-
}
|