rez_core 6.5.54 → 6.5.55
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/module/repository/module-access.repository.ts +1 -1
- package/dist/app.controller.d.ts +0 -6
- package/dist/app.controller.js +0 -34
- package/dist/app.controller.js.map +0 -1
- package/dist/app.module.d.ts +0 -2
- package/dist/app.module.js +0 -79
- 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/bull.config.d.ts +0 -10
- package/dist/config/bull.config.js +0 -66
- package/dist/config/bull.config.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 -43
- 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/constant/status.constant.d.ts +0 -4
- package/dist/constant/status.constant.js +0 -9
- package/dist/constant/status.constant.js.map +0 -1
- package/dist/core.module.d.ts +0 -4
- package/dist/core.module.js +0 -113
- 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/app_master/app-master.module.d.ts +0 -2
- package/dist/module/app_master/app-master.module.js +0 -28
- package/dist/module/app_master/app-master.module.js.map +0 -1
- package/dist/module/app_master/controller/app-master.controller.d.ts +0 -9
- package/dist/module/app_master/controller/app-master.controller.js +0 -51
- package/dist/module/app_master/controller/app-master.controller.js.map +0 -1
- package/dist/module/app_master/entity/app-master.entity.d.ts +0 -17
- package/dist/module/app_master/entity/app-master.entity.js +0 -80
- package/dist/module/app_master/entity/app-master.entity.js.map +0 -1
- package/dist/module/app_master/repository/app-master.repository.d.ts +0 -7
- package/dist/module/app_master/repository/app-master.repository.js +0 -36
- package/dist/module/app_master/repository/app-master.repository.js.map +0 -1
- package/dist/module/app_master/service/app-master.service.d.ts +0 -8
- package/dist/module/app_master/service/app-master.service.js +0 -45
- package/dist/module/app_master/service/app-master.service.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 -50
- 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 -20
- package/dist/module/auth/strategies/jwt.strategy.js +0 -47
- 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 -57
- 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 -11
- package/dist/module/dashboard/repository/dashboard.repository.js +0 -62
- 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 -61
- package/dist/module/dashboard/service/dashboard.service.js.map +0 -1
- package/dist/module/enterprise/controller/enterprise.controller.d.ts +0 -12
- package/dist/module/enterprise/controller/enterprise.controller.js +0 -57
- package/dist/module/enterprise/controller/enterprise.controller.js.map +0 -1
- package/dist/module/enterprise/controller/meta.controller.d.ts +0 -9
- package/dist/module/enterprise/controller/meta.controller.js +0 -43
- package/dist/module/enterprise/controller/meta.controller.js.map +0 -1
- package/dist/module/enterprise/controller/organization.controller.d.ts +0 -22
- package/dist/module/enterprise/controller/organization.controller.js +0 -115
- 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 -52
- package/dist/module/enterprise/enterprise.module.js.map +0 -1
- package/dist/module/enterprise/entity/enterprise.entity.d.ts +0 -11
- package/dist/module/enterprise/entity/enterprise.entity.js +0 -56
- package/dist/module/enterprise/entity/enterprise.entity.js.map +0 -1
- package/dist/module/enterprise/entity/organization-app-mapping.entity.d.ts +0 -10
- package/dist/module/enterprise/entity/organization-app-mapping.entity.js +0 -49
- package/dist/module/enterprise/entity/organization-app-mapping.entity.js.map +0 -1
- package/dist/module/enterprise/entity/organization.entity.d.ts +0 -16
- package/dist/module/enterprise/entity/organization.entity.js +0 -74
- package/dist/module/enterprise/entity/organization.entity.js.map +0 -1
- package/dist/module/enterprise/repository/enterprise.repository.d.ts +0 -10
- package/dist/module/enterprise/repository/enterprise.repository.js +0 -63
- 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 -226
- package/dist/module/enterprise/repository/school.repository.js.map +0 -1
- package/dist/module/enterprise/service/brand-profile.service.d.ts +0 -0
- package/dist/module/enterprise/service/brand-profile.service.js +0 -1
- package/dist/module/enterprise/service/brand-profile.service.js.map +0 -1
- package/dist/module/enterprise/service/brand.service.d.ts +0 -0
- package/dist/module/enterprise/service/brand.service.js +0 -1
- 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 -33
- 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 -203
- package/dist/module/enterprise/service/organization.service.js.map +0 -1
- package/dist/module/enterprise/service/populate-meta.service.d.ts +0 -9
- package/dist/module/enterprise/service/populate-meta.service.js +0 -194
- package/dist/module/enterprise/service/populate-meta.service.js.map +0 -1
- package/dist/module/enterprise/service/school.service.d.ts +0 -0
- package/dist/module/enterprise/service/school.service.js +0 -1
- package/dist/module/enterprise/service/school.service.js.map +0 -1
- package/dist/module/entity_json/controller/entity_json.controller.d.ts +0 -18
- package/dist/module/entity_json/controller/entity_json.controller.js +0 -57
- package/dist/module/entity_json/controller/entity_json.controller.js.map +0 -1
- package/dist/module/entity_json/entity/entityJson.entity.d.ts +0 -10
- package/dist/module/entity_json/entity/entityJson.entity.js +0 -55
- package/dist/module/entity_json/entity/entityJson.entity.js.map +0 -1
- package/dist/module/entity_json/entity_json.module.d.ts +0 -2
- package/dist/module/entity_json/entity_json.module.js +0 -30
- package/dist/module/entity_json/entity_json.module.js.map +0 -1
- package/dist/module/entity_json/service/entityJson.repository.d.ts +0 -7
- package/dist/module/entity_json/service/entityJson.repository.js +0 -45
- package/dist/module/entity_json/service/entityJson.repository.js.map +0 -1
- package/dist/module/entity_json/service/entity_json.service.d.ts +0 -25
- package/dist/module/entity_json/service/entity_json.service.js +0 -209
- package/dist/module/entity_json/service/entity_json.service.js.map +0 -1
- package/dist/module/export/controller/export.controller.d.ts +0 -9
- package/dist/module/export/controller/export.controller.js +0 -83
- package/dist/module/export/controller/export.controller.js.map +0 -1
- package/dist/module/export/export.module.d.ts +0 -2
- package/dist/module/export/export.module.js +0 -27
- package/dist/module/export/export.module.js.map +0 -1
- package/dist/module/export/service/export.service.d.ts +0 -14
- package/dist/module/export/service/export.service.js +0 -85
- package/dist/module/export/service/export.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 -94
- package/dist/module/filter/controller/filter.controller.js.map +0 -1
- package/dist/module/filter/dto/filter-request.dto.d.ts +0 -36
- 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 -12
- package/dist/module/filter/entity/saved-filter-master.entity.js +0 -59
- 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 -46
- 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 -203
- package/dist/module/filter/repository/saved-filter.repository.js.map +0 -1
- package/dist/module/filter/repository/saved.filter-detail.repository.d.ts +0 -7
- package/dist/module/filter/repository/saved.filter-detail.repository.js +0 -38
- package/dist/module/filter/repository/saved.filter-detail.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 -59
- package/dist/module/filter/service/filter-evaluator.service.js.map +0 -1
- package/dist/module/filter/service/filter.service.d.ts +0 -74
- package/dist/module/filter/service/filter.service.js +0 -921
- 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 -207
- package/dist/module/integration/service/integration.service.js +0 -1590
- 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 -38
- package/dist/module/integration/service/wrapper.service.js +0 -348
- 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 -9
- package/dist/module/layout/controller/layout.controller.js +0 -55
- 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 -5
- package/dist/module/layout/entity/header-section.entity.js +0 -32
- 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 -33
- 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 -7
- package/dist/module/layout/repository/header-section.repository.js +0 -34
- 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 -78
- 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/linked_attributes/controller/linked_attributes.controller.d.ts +0 -7
- package/dist/module/linked_attributes/controller/linked_attributes.controller.js +0 -55
- package/dist/module/linked_attributes/controller/linked_attributes.controller.js.map +0 -1
- package/dist/module/linked_attributes/entity/linked_attribute.entity.d.ts +0 -10
- package/dist/module/linked_attributes/entity/linked_attribute.entity.js +0 -74
- package/dist/module/linked_attributes/entity/linked_attribute.entity.js.map +0 -1
- package/dist/module/linked_attributes/linked_attributes.module.d.ts +0 -2
- package/dist/module/linked_attributes/linked_attributes.module.js +0 -29
- package/dist/module/linked_attributes/linked_attributes.module.js.map +0 -1
- package/dist/module/linked_attributes/repository/linked_attribute.repository.d.ts +0 -6
- package/dist/module/linked_attributes/repository/linked_attribute.repository.js +0 -31
- package/dist/module/linked_attributes/repository/linked_attribute.repository.js.map +0 -1
- package/dist/module/linked_attributes/service/linked_attributes.service.d.ts +0 -10
- package/dist/module/linked_attributes/service/linked_attributes.service.js +0 -74
- package/dist/module/linked_attributes/service/linked_attributes.service.js.map +0 -1
- package/dist/module/listmaster/controller/list-master.controller.d.ts +0 -29
- package/dist/module/listmaster/controller/list-master.controller.js +0 -186
- 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 -55
- 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 -143
- package/dist/module/listmaster/repository/list-master-items.repository.js.map +0 -1
- package/dist/module/listmaster/repository/list-master.repository.d.ts +0 -10
- package/dist/module/listmaster/repository/list-master.repository.js +0 -62
- 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 -20
- package/dist/module/listmaster/service/list-master-item.service.js +0 -148
- 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 -40
- package/dist/module/listmaster/service/list-master.service.js +0 -323
- 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 -14
- 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 -48
- 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 -46
- package/dist/module/mapper/repository/mapper.repository.js.map +0 -1
- package/dist/module/mapper/service/field-mapper.service.d.ts +0 -22
- 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 -24
- package/dist/module/mapper/service/mapper.service.js +0 -84
- 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 -30
- 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/attribute-master.controller.d.ts +0 -29
- package/dist/module/meta/controller/attribute-master.controller.js +0 -93
- 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 -14
- package/dist/module/meta/controller/entity-master.controller.js +0 -57
- 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 -33
- package/dist/module/meta/controller/entity.controller.js +0 -185
- 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 -30
- package/dist/module/meta/controller/media.controller.js +0 -119
- package/dist/module/meta/controller/media.controller.js.map +0 -1
- package/dist/module/meta/controller/meta.controller.d.ts +0 -30
- package/dist/module/meta/controller/meta.controller.js +0 -99
- 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 -90
- 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 -9
- 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/attribute-master.entity.d.ts +0 -23
- package/dist/module/meta/entity/attribute-master.entity.js +0 -128
- 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 -150
- package/dist/module/meta/entity.module.js.map +0 -1
- package/dist/module/meta/repository/attribute-master.repository.d.ts +0 -30
- package/dist/module/meta/repository/attribute-master.repository.js +0 -136
- package/dist/module/meta/repository/attribute-master.repository.js.map +0 -1
- package/dist/module/meta/repository/entity-attribute-update.repository.d.ts +0 -8
- package/dist/module/meta/repository/entity-attribute-update.repository.js +0 -50
- package/dist/module/meta/repository/entity-attribute-update.repository.js.map +0 -1
- package/dist/module/meta/repository/entity-master.repository.d.ts +0 -33
- package/dist/module/meta/repository/entity-master.repository.js +0 -121
- package/dist/module/meta/repository/entity-master.repository.js.map +0 -1
- package/dist/module/meta/repository/entity-relation.repository.d.ts +0 -7
- package/dist/module/meta/repository/entity-relation.repository.js +0 -39
- package/dist/module/meta/repository/entity-relation.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/attribute-master.service.d.ts +0 -21
- package/dist/module/meta/service/attribute-master.service.js +0 -81
- 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-attribute-update.service.d.ts +0 -7
- package/dist/module/meta/service/entity-attribute-update.service.js +0 -34
- package/dist/module/meta/service/entity-attribute-update.service.js.map +0 -1
- package/dist/module/meta/service/entity-dynamic.service.d.ts +0 -32
- package/dist/module/meta/service/entity-dynamic.service.js +0 -496
- package/dist/module/meta/service/entity-dynamic.service.js.map +0 -1
- package/dist/module/meta/service/entity-master.service.d.ts +0 -38
- package/dist/module/meta/service/entity-master.service.js +0 -119
- 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 -11
- package/dist/module/meta/service/entity-relation.service.js +0 -71
- package/dist/module/meta/service/entity-relation.service.js.map +0 -1
- package/dist/module/meta/service/entity-service-impl.service.d.ts +0 -35
- package/dist/module/meta/service/entity-service-impl.service.js +0 -233
- 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 -6
- package/dist/module/meta/service/entity-table-column.service.js +0 -29
- 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 -88
- package/dist/module/meta/service/entity-table.service.js.map +0 -1
- package/dist/module/meta/service/entity-validation.service.d.ts +0 -22
- package/dist/module/meta/service/entity-validation.service.js +0 -118
- package/dist/module/meta/service/entity-validation.service.js.map +0 -1
- package/dist/module/meta/service/entity.service.d.ts +0 -12
- 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 -43
- package/dist/module/meta/service/media-data.service.js +0 -372
- package/dist/module/meta/service/media-data.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 -21
- package/dist/module/meta/service/resolver.service.js +0 -215
- 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/microservice-client/microservice-clients.module.d.ts +0 -2
- package/dist/module/microservice-client/microservice-clients.module.js +0 -27
- package/dist/module/microservice-client/microservice-clients.module.js.map +0 -1
- package/dist/module/microservice-client/service/microservice-client-factory.d.ts +0 -10
- package/dist/module/microservice-client/service/microservice-client-factory.js +0 -46
- package/dist/module/microservice-client/service/microservice-client-factory.js.map +0 -1
- package/dist/module/microservice-client/service/microservice-clients.d.ts +0 -4
- package/dist/module/microservice-client/service/microservice-clients.js +0 -3
- package/dist/module/microservice-client/service/microservice-clients.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 -34
- package/dist/module/module/controller/module-access.controller.js +0 -153
- package/dist/module/module/controller/module-access.controller.js.map +0 -1
- package/dist/module/module/entity/menu.entity.d.ts +0 -18
- package/dist/module/module/entity/menu.entity.js +0 -81
- package/dist/module/module/entity/menu.entity.js.map +0 -1
- package/dist/module/module/entity/module-access.entity.d.ts +0 -23
- package/dist/module/module/entity/module-access.entity.js +0 -94
- package/dist/module/module/entity/module-access.entity.js.map +0 -1
- package/dist/module/module/entity/module-action.entity.d.ts +0 -8
- package/dist/module/module/entity/module-action.entity.js +0 -42
- package/dist/module/module/entity/module-action.entity.js.map +0 -1
- package/dist/module/module/entity/module.entity.d.ts +0 -16
- package/dist/module/module/entity/module.entity.js +0 -74
- 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 -53
- package/dist/module/module/module.module.js.map +0 -1
- package/dist/module/module/repository/menu.repository.d.ts +0 -15
- package/dist/module/module/repository/menu.repository.js +0 -174
- 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 -333
- package/dist/module/module/repository/module-access.repository.js.map +0 -1
- package/dist/module/module/service/menu.service.d.ts +0 -10
- package/dist/module/module/service/menu.service.js +0 -56
- package/dist/module/module/service/menu.service.js.map +0 -1
- package/dist/module/module/service/module-access.service.d.ts +0 -60
- package/dist/module/module/service/module-access.service.js +0 -111
- 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 -35
- 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 -25
- package/dist/module/notification/entity/notification.entity.js +0 -115
- 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 -81
- 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 -15
- package/dist/module/notification/service/email.service.js +0 -124
- 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 -127
- package/dist/module/notification/service/notification.service.js.map +0 -1
- package/dist/module/notification/service/otp.service.d.ts +0 -31
- package/dist/module/notification/service/otp.service.js +0 -111
- package/dist/module/notification/service/otp.service.js.map +0 -1
- package/dist/module/preference_master/entity/preference.entity.d.ts +0 -9
- package/dist/module/preference_master/entity/preference.entity.js +0 -48
- package/dist/module/preference_master/entity/preference.entity.js.map +0 -1
- package/dist/module/preference_master/preference.service.d.ts +0 -8
- package/dist/module/preference_master/preference.service.js +0 -31
- package/dist/module/preference_master/preference.service.js.map +0 -1
- package/dist/module/preference_master/repo/preference.repository.d.ts +0 -8
- package/dist/module/preference_master/repo/preference.repository.js +0 -48
- package/dist/module/preference_master/repo/preference.repository.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 -24
- package/dist/module/user/controller/login.controller.js +0 -173
- package/dist/module/user/controller/login.controller.js.map +0 -1
- package/dist/module/user/controller/user.controller.d.ts +0 -7
- package/dist/module/user/controller/user.controller.js +0 -46
- package/dist/module/user/controller/user.controller.js.map +0 -1
- package/dist/module/user/dto/create-user.dto.d.ts +0 -20
- package/dist/module/user/dto/create-user.dto.js +0 -70
- 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 -23
- package/dist/module/user/entity/role.entity.js +0 -101
- package/dist/module/user/entity/role.entity.js.map +0 -1
- package/dist/module/user/entity/user-role-mapping.entity.d.ts +0 -22
- package/dist/module/user/entity/user-role-mapping.entity.js +0 -95
- package/dist/module/user/entity/user-role-mapping.entity.js.map +0 -1
- package/dist/module/user/entity/user-session.entity.d.ts +0 -13
- package/dist/module/user/entity/user-session.entity.js +0 -84
- package/dist/module/user/entity/user-session.entity.js.map +0 -1
- package/dist/module/user/entity/user.entity.d.ts +0 -33
- package/dist/module/user/entity/user.entity.js +0 -141
- package/dist/module/user/entity/user.entity.js.map +0 -1
- package/dist/module/user/repository/role.repository.d.ts +0 -23
- package/dist/module/user/repository/role.repository.js +0 -102
- package/dist/module/user/repository/role.repository.js.map +0 -1
- package/dist/module/user/repository/user-role-mapping.repository.d.ts +0 -20
- package/dist/module/user/repository/user-role-mapping.repository.js +0 -113
- package/dist/module/user/repository/user-role-mapping.repository.js.map +0 -1
- package/dist/module/user/repository/user.repository.d.ts +0 -13
- package/dist/module/user/repository/user.repository.js +0 -77
- package/dist/module/user/repository/user.repository.js.map +0 -1
- package/dist/module/user/repository/userSession.repository.d.ts +0 -11
- package/dist/module/user/repository/userSession.repository.js +0 -48
- package/dist/module/user/repository/userSession.repository.js.map +0 -1
- package/dist/module/user/service/login.service.d.ts +0 -39
- package/dist/module/user/service/login.service.js +0 -243
- package/dist/module/user/service/login.service.js.map +0 -1
- package/dist/module/user/service/role.service.d.ts +0 -38
- package/dist/module/user/service/role.service.js +0 -168
- package/dist/module/user/service/role.service.js.map +0 -1
- package/dist/module/user/service/user-role-mapping.service.d.ts +0 -14
- package/dist/module/user/service/user-role-mapping.service.js +0 -66
- package/dist/module/user/service/user-role-mapping.service.js.map +0 -1
- package/dist/module/user/service/user-session.service.d.ts +0 -30
- package/dist/module/user/service/user-session.service.js +0 -159
- package/dist/module/user/service/user-session.service.js.map +0 -1
- package/dist/module/user/service/user.service.d.ts +0 -49
- package/dist/module/user/service/user.service.js +0 -251
- 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 -73
- 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 -54
- 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 -14
- 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 -57
- 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 -58
- 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 -18
- package/dist/module/workflow/entity/action.entity.js +0 -83
- 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 -22
- package/dist/module/workflow/repository/action-data.repository.js +0 -252
- package/dist/module/workflow/repository/action-data.repository.js.map +0 -1
- package/dist/module/workflow/repository/action.repository.d.ts +0 -31
- package/dist/module/workflow/repository/action.repository.js +0 -258
- 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 -17
- package/dist/module/workflow/repository/comm-template.repository.js +0 -126
- package/dist/module/workflow/repository/comm-template.repository.js.map +0 -1
- package/dist/module/workflow/repository/form-master.repository.d.ts +0 -11
- package/dist/module/workflow/repository/form-master.repository.js +0 -41
- 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 -37
- package/dist/module/workflow/repository/stage-group.repository.js +0 -145
- package/dist/module/workflow/repository/stage-group.repository.js.map +0 -1
- package/dist/module/workflow/repository/stage-movement.repository.d.ts +0 -28
- package/dist/module/workflow/repository/stage-movement.repository.js +0 -180
- 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 -18
- package/dist/module/workflow/repository/task.repository.js +0 -134
- 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 -39
- 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 -10
- package/dist/module/workflow/service/action-template-mapping.service.js +0 -133
- package/dist/module/workflow/service/action-template-mapping.service.js.map +0 -1
- package/dist/module/workflow/service/action.service.d.ts +0 -44
- package/dist/module/workflow/service/action.service.js +0 -211
- 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 -132
- 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 -47
- package/dist/module/workflow/service/entity-modification.service.js.map +0 -1
- package/dist/module/workflow/service/form-master.service.d.ts +0 -17
- 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 -245
- 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 -30
- package/dist/module/workflow/service/stage-group.service.js +0 -238
- package/dist/module/workflow/service/stage-group.service.js.map +0 -1
- package/dist/module/workflow/service/stage.service.d.ts +0 -21
- package/dist/module/workflow/service/stage.service.js +0 -136
- package/dist/module/workflow/service/stage.service.js.map +0 -1
- package/dist/module/workflow/service/task.service.d.ts +0 -46
- package/dist/module/workflow/service/task.service.js +0 -368
- package/dist/module/workflow/service/task.service.js.map +0 -1
- package/dist/module/workflow/service/workflow-list-master.service.d.ts +0 -7
- package/dist/module/workflow/service/workflow-list-master.service.js +0 -73
- package/dist/module/workflow/service/workflow-list-master.service.js.map +0 -1
- package/dist/module/workflow/service/workflow-meta.service.d.ts +0 -37
- package/dist/module/workflow/service/workflow-meta.service.js +0 -424
- package/dist/module/workflow/service/workflow-meta.service.js.map +0 -1
- package/dist/module/workflow/service/workflow.service.d.ts +0 -31
- package/dist/module/workflow/service/workflow.service.js +0 -153
- 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 -194
- package/dist/module/workflow/workflow.module.js.map +0 -1
- package/dist/module/workflow-automation/controller/workflow-automation.controller.d.ts +0 -11
- package/dist/module/workflow-automation/controller/workflow-automation.controller.js +0 -47
- 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 -14
- package/dist/module/workflow-automation/entity/workflow-automation.entity.js +0 -67
- 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/schedule-handler.service.d.ts +0 -22
- package/dist/module/workflow-automation/service/schedule-handler.service.js +0 -141
- package/dist/module/workflow-automation/service/schedule-handler.service.js.map +0 -1
- package/dist/module/workflow-automation/service/workflow-automation-engine.service.d.ts +0 -15
- package/dist/module/workflow-automation/service/workflow-automation-engine.service.js +0 -124
- 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 -68
- package/dist/module/workflow-automation/service/workflow-automation.service.js +0 -339
- 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 -68
- package/dist/module/workflow-automation/workflow-automation.module.js.map +0 -1
- package/dist/module/workflow-schedule/constants/schedule.constants.d.ts +0 -27
- package/dist/module/workflow-schedule/constants/schedule.constants.js +0 -31
- package/dist/module/workflow-schedule/constants/schedule.constants.js.map +0 -1
- package/dist/module/workflow-schedule/controller/workflow-schedule.controller.d.ts +0 -81
- package/dist/module/workflow-schedule/controller/workflow-schedule.controller.js +0 -218
- package/dist/module/workflow-schedule/controller/workflow-schedule.controller.js.map +0 -1
- package/dist/module/workflow-schedule/dto/create-schedule.dto.d.ts +0 -32
- package/dist/module/workflow-schedule/dto/create-schedule.dto.js +0 -163
- package/dist/module/workflow-schedule/dto/create-schedule.dto.js.map +0 -1
- package/dist/module/workflow-schedule/dto/get-execution-logs.dto.d.ts +0 -35
- package/dist/module/workflow-schedule/dto/get-execution-logs.dto.js +0 -124
- package/dist/module/workflow-schedule/dto/get-execution-logs.dto.js.map +0 -1
- package/dist/module/workflow-schedule/dto/update-schedule.dto.d.ts +0 -19
- package/dist/module/workflow-schedule/dto/update-schedule.dto.js +0 -106
- package/dist/module/workflow-schedule/dto/update-schedule.dto.js.map +0 -1
- package/dist/module/workflow-schedule/entities/scheduled-workflow.entity.d.ts +0 -30
- package/dist/module/workflow-schedule/entities/scheduled-workflow.entity.js +0 -113
- package/dist/module/workflow-schedule/entities/scheduled-workflow.entity.js.map +0 -1
- package/dist/module/workflow-schedule/entities/workflow-execution-log.entity.d.ts +0 -34
- package/dist/module/workflow-schedule/entities/workflow-execution-log.entity.js +0 -118
- package/dist/module/workflow-schedule/entities/workflow-execution-log.entity.js.map +0 -1
- package/dist/module/workflow-schedule/interfaces/schedule-job-data.interface.d.ts +0 -44
- package/dist/module/workflow-schedule/interfaces/schedule-job-data.interface.js +0 -3
- package/dist/module/workflow-schedule/interfaces/schedule-job-data.interface.js.map +0 -1
- package/dist/module/workflow-schedule/interfaces/workflow-schedule-options.interface.d.ts +0 -3
- package/dist/module/workflow-schedule/interfaces/workflow-schedule-options.interface.js +0 -3
- package/dist/module/workflow-schedule/interfaces/workflow-schedule-options.interface.js.map +0 -1
- package/dist/module/workflow-schedule/processors/schedule.processor.d.ts +0 -33
- package/dist/module/workflow-schedule/processors/schedule.processor.js +0 -422
- package/dist/module/workflow-schedule/processors/schedule.processor.js.map +0 -1
- package/dist/module/workflow-schedule/service/workflow-schedule.service.d.ts +0 -43
- package/dist/module/workflow-schedule/service/workflow-schedule.service.js +0 -432
- package/dist/module/workflow-schedule/service/workflow-schedule.service.js.map +0 -1
- package/dist/module/workflow-schedule/workflow-schedule.module.d.ts +0 -5
- package/dist/module/workflow-schedule/workflow-schedule.module.js +0 -52
- package/dist/module/workflow-schedule/workflow-schedule.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 -39
- package/dist/table.config.js +0 -136
- 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 -11
- package/dist/utils/service/loggingUtil.service.js +0 -87
- 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 -40
- package/dist/utils/utils.module.js.map +0 -1
|
@@ -1,348 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
var WrapperService_1;
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.WrapperService = void 0;
|
|
14
|
-
const common_1 = require("@nestjs/common");
|
|
15
|
-
const integration_service_1 = require("./integration.service");
|
|
16
|
-
const ics_service_1 = require("../../ics/service/ics.service");
|
|
17
|
-
const loggingUtil_service_1 = require("../../../utils/service/loggingUtil.service");
|
|
18
|
-
const reflection_helper_service_1 = require("../../../utils/service/reflection-helper.service");
|
|
19
|
-
const media_data_service_1 = require("../../meta/service/media-data.service");
|
|
20
|
-
const axios_1 = require("axios");
|
|
21
|
-
let WrapperService = WrapperService_1 = class WrapperService {
|
|
22
|
-
constructor(integrationService, icsService, loggingService, reflectionHelper, mediaService) {
|
|
23
|
-
this.integrationService = integrationService;
|
|
24
|
-
this.icsService = icsService;
|
|
25
|
-
this.loggingService = loggingService;
|
|
26
|
-
this.reflectionHelper = reflectionHelper;
|
|
27
|
-
this.mediaService = mediaService;
|
|
28
|
-
this.logger = new common_1.Logger(WrapperService_1.name);
|
|
29
|
-
}
|
|
30
|
-
async sendMailWrapper(payload, loggedInUser) {
|
|
31
|
-
try {
|
|
32
|
-
this.loggingService.log('debug', 'wrapperService', 'sendMailWrapper', `sendMailWrapper called. User: ${JSON.stringify(loggedInUser)}, Payload: ${JSON.stringify(payload)}`, [], []);
|
|
33
|
-
const { level_id, level_type, organization_id } = loggedInUser;
|
|
34
|
-
this.loggingService.log('debug', 'wrapperService', 'sendMailWrapper', `Fetching configs for level_id=${level_id}, level_type=${level_type}`, [], []);
|
|
35
|
-
const intergrationConfigRepo = this.reflectionHelper.getRepoService('IntegrationConfig');
|
|
36
|
-
const configs = await intergrationConfigRepo.find({
|
|
37
|
-
where: {
|
|
38
|
-
level_id: level_id,
|
|
39
|
-
level_type: level_type,
|
|
40
|
-
status: 1,
|
|
41
|
-
integration_type: 'EMAIL',
|
|
42
|
-
},
|
|
43
|
-
});
|
|
44
|
-
this.loggingService.log('debug', 'wrapperService', 'sendMailWrapper', `Configs found: ${JSON.stringify(configs)}`, [], []);
|
|
45
|
-
let templateCode;
|
|
46
|
-
if (payload.templateCode) {
|
|
47
|
-
this.loggingService.log('debug', 'wrapperService', 'sendMailWrapper', `Looking up templateCode=${payload.templateCode} for current level`, [], []);
|
|
48
|
-
const templateRepo = this.reflectionHelper.getRepoService('CommTemplate');
|
|
49
|
-
const template = await templateRepo.findOne({
|
|
50
|
-
where: {
|
|
51
|
-
code: payload.templateCode,
|
|
52
|
-
level_id: level_id,
|
|
53
|
-
level_type: level_type,
|
|
54
|
-
},
|
|
55
|
-
});
|
|
56
|
-
this.loggingService.log('debug', 'wrapperService', 'sendMailWrapper', `Template lookup result: ${JSON.stringify(template)}`, [], []);
|
|
57
|
-
if (template) {
|
|
58
|
-
templateCode = template.rich_text;
|
|
59
|
-
}
|
|
60
|
-
else {
|
|
61
|
-
this.loggingService.log('warn', 'wrapperService', 'sendMailWrapper', `No template found for templateCode=${payload.templateCode} and current level`, [], []);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
let payloadSendMail;
|
|
65
|
-
if (configs && configs.length > 0) {
|
|
66
|
-
this.loggingService.log('debug', 'wrapperService', 'sendMailWrapper', `Using user-level configs`, [], []);
|
|
67
|
-
payloadSendMail = {
|
|
68
|
-
levelId: level_id,
|
|
69
|
-
levelType: level_type,
|
|
70
|
-
app_code: 'DEFAULT',
|
|
71
|
-
to: payload.to,
|
|
72
|
-
message: payload.message,
|
|
73
|
-
subject: payload.subject,
|
|
74
|
-
type: 'EMAIL',
|
|
75
|
-
cc: payload.cc,
|
|
76
|
-
bcc: payload.bcc,
|
|
77
|
-
html: payload.html,
|
|
78
|
-
templateId: payload.templateId,
|
|
79
|
-
variables: payload.variables,
|
|
80
|
-
organization_id: loggedInUser.organization_id,
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
else {
|
|
84
|
-
this.loggingService.log('warn', 'wrapperService', 'sendMailWrapper', `No user-level configs found. Falling back to ORG-level`, [], []);
|
|
85
|
-
const fallbackConfigs = await intergrationConfigRepo.find({
|
|
86
|
-
where: {
|
|
87
|
-
level_type: 'ORG',
|
|
88
|
-
integration_type: 'EMAIL',
|
|
89
|
-
status: 1,
|
|
90
|
-
},
|
|
91
|
-
});
|
|
92
|
-
this.loggingService.log('debug', 'wrapperService', 'sendMailWrapper', `ORG-level configs: ${JSON.stringify(fallbackConfigs)}`, [], []);
|
|
93
|
-
if (!fallbackConfigs || fallbackConfigs.length === 0) {
|
|
94
|
-
this.loggingService.log('warn', 'wrapperService', 'sendMailWrapper', 'No active email communication config found', [], []);
|
|
95
|
-
}
|
|
96
|
-
payloadSendMail = {
|
|
97
|
-
levelId: 1,
|
|
98
|
-
levelType: 'ORG',
|
|
99
|
-
app_code: 'DEFAULT',
|
|
100
|
-
to: payload.to,
|
|
101
|
-
message: payload.message,
|
|
102
|
-
subject: payload.subject,
|
|
103
|
-
type: 'EMAIL',
|
|
104
|
-
cc: payload.cc,
|
|
105
|
-
bcc: payload.bcc,
|
|
106
|
-
html: payload.html,
|
|
107
|
-
variables: payload.variables,
|
|
108
|
-
organization_id: loggedInUser.organization_id,
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
this.loggingService.log('debug', 'wrapperService', 'sendMailWrapper', `Final payload for IntegrationService: ${JSON.stringify(payloadSendMail)}`, [], []);
|
|
112
|
-
const result = await this.integrationService.sendGenericMessage(payloadSendMail);
|
|
113
|
-
this.loggingService.log('log', 'wrapperService', 'sendMailWrapper', `sendMailWrapper SUCCESS. Result: ${JSON.stringify(result)}`, [], []);
|
|
114
|
-
return {
|
|
115
|
-
success: true,
|
|
116
|
-
data: result,
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
catch (error) {
|
|
120
|
-
this.loggingService.log('error', 'wrapperService', 'sendMailWrapper', `sendMailWrapper ERROR: ${error.message}`, [], [error.stack]);
|
|
121
|
-
return {
|
|
122
|
-
success: false,
|
|
123
|
-
error: error.message,
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
async sendCommunicationWrapperService(entity, loggedInUser) {
|
|
128
|
-
try {
|
|
129
|
-
this.loggingService.log('log', 'wrapperService', 'sendCommunicationWrapperService', `sendCommunicationWrapper called. User: ${JSON.stringify(loggedInUser)}, Payload: ${JSON.stringify(entity)}`, [], []);
|
|
130
|
-
const { level_id, level_type, appcode, organization_id } = loggedInUser;
|
|
131
|
-
this.loggingService.log('debug', 'wrapperService', 'sendCommunicationWrapperService', `Checking active ${entity.type || 'EMAIL'} configs for level_id=${level_id}, level_type=${level_type}, app_code=${appcode}`, [], []);
|
|
132
|
-
let configs = await this.integrationService.getActiveConfigs(level_id, level_type, appcode, entity.type || 'EMAIL');
|
|
133
|
-
let effectiveLevelId = level_id;
|
|
134
|
-
let effectiveLevelType = level_type;
|
|
135
|
-
if (!configs || configs.length === 0) {
|
|
136
|
-
this.loggingService.log('warn', 'wrapperService', 'sendCommunicationWrapperService', `No active configs found for ${level_type}:${level_id}, falling back to ORG-level`, [], []);
|
|
137
|
-
configs = await this.integrationService.getActiveConfigs(1, 'ORG', appcode, entity.type || 'EMAIL');
|
|
138
|
-
effectiveLevelId = 1;
|
|
139
|
-
effectiveLevelType = 'ORG';
|
|
140
|
-
}
|
|
141
|
-
if (!configs || configs.length === 0) {
|
|
142
|
-
this.loggingService.log('error', 'wrapperService', 'sendCommunicationWrapperService', 'No active configurations found at any level.', [], []);
|
|
143
|
-
throw new Error('No active configurations found.');
|
|
144
|
-
}
|
|
145
|
-
let resolvedTemplateId = entity?.templateId;
|
|
146
|
-
if (entity.template_code) {
|
|
147
|
-
this.loggingService.log('debug', 'wrapperService', 'sendCommunicationWrapperService', `Looking up template for code=${entity.template_code}, level_id=${level_id}, level_type=${level_type}`, [], []);
|
|
148
|
-
const commTemplateRepo = this.reflectionHelper.getRepoService('CommTemplate');
|
|
149
|
-
let templates = await commTemplateRepo.find({
|
|
150
|
-
where: {
|
|
151
|
-
code: entity.template_code,
|
|
152
|
-
level_id: level_id,
|
|
153
|
-
level_type: level_type,
|
|
154
|
-
},
|
|
155
|
-
});
|
|
156
|
-
if (!templates || templates.length === 0) {
|
|
157
|
-
this.loggingService.log('warn', 'wrapperService', 'sendCommunicationWrapperService', `No template found for ${entity.template_code} at provided level. Falling back to ORG-level.`, [], []);
|
|
158
|
-
templates = await commTemplateRepo.find({
|
|
159
|
-
where: {
|
|
160
|
-
code: entity.template_code,
|
|
161
|
-
organization_id: organization_id,
|
|
162
|
-
},
|
|
163
|
-
});
|
|
164
|
-
}
|
|
165
|
-
if (templates && templates.length > 0) {
|
|
166
|
-
resolvedTemplateId = templates[0]?.id;
|
|
167
|
-
this.loggingService.log('debug', 'wrapperService', 'sendCommunicationWrapperService', `Template resolved for code=${entity.template_code}, id=${resolvedTemplateId}`, [], []);
|
|
168
|
-
}
|
|
169
|
-
else {
|
|
170
|
-
this.loggingService.log('warn', 'wrapperService', 'sendCommunicationWrapperService', `No template found for code=${entity.template_code} at any level.`, [], []);
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
const mailPayload = {
|
|
174
|
-
to: entity.to,
|
|
175
|
-
subject: entity.subject,
|
|
176
|
-
html: entity.message,
|
|
177
|
-
cc: entity?.cc,
|
|
178
|
-
bcc: entity?.bcc,
|
|
179
|
-
templateId: resolvedTemplateId,
|
|
180
|
-
message: entity.message,
|
|
181
|
-
type: entity.type || 'EMAIL',
|
|
182
|
-
levelId: effectiveLevelId,
|
|
183
|
-
levelType: effectiveLevelType,
|
|
184
|
-
app_code: appcode,
|
|
185
|
-
user_id: loggedInUser.id,
|
|
186
|
-
entity_type: entity.entity_type,
|
|
187
|
-
entity_id: entity.entity_id,
|
|
188
|
-
attachments: entity.attachments,
|
|
189
|
-
mediaUrl: entity.mediaUrl,
|
|
190
|
-
organization_id: organization_id,
|
|
191
|
-
};
|
|
192
|
-
this.loggingService.log('debug', 'wrapperService', 'sendCommunicationWrapperService', `Final payload for sendGenericMessage: ${JSON.stringify(mailPayload)}`, [], []);
|
|
193
|
-
if (entity.attachments && entity.attachments.length > 0) {
|
|
194
|
-
mailPayload.attachments = [];
|
|
195
|
-
for (const attachmentId of entity.attachments) {
|
|
196
|
-
const url = await this.mediaService.getMediaDownloadUrl(attachmentId, {}, 60000);
|
|
197
|
-
if (!url?.signedUrl)
|
|
198
|
-
continue;
|
|
199
|
-
const response = await axios_1.default.get(url.signedUrl, {
|
|
200
|
-
responseType: 'arraybuffer',
|
|
201
|
-
});
|
|
202
|
-
const base64Content = Buffer.from(response.data).toString('base64');
|
|
203
|
-
mailPayload.attachments.push({
|
|
204
|
-
content: base64Content,
|
|
205
|
-
type: response.headers['content-type'] || 'application/octet-stream',
|
|
206
|
-
filename: url.fileName,
|
|
207
|
-
disposition: 'attachment',
|
|
208
|
-
});
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
const result = await this.integrationService.sendGenericMessage(mailPayload);
|
|
212
|
-
this.loggingService.log('log', 'wrapperService', 'sendCommunicationWrapperService', `sendCommunicationWrapper SUCCESS. Result: ${JSON.stringify(result)}`, [], []);
|
|
213
|
-
return result;
|
|
214
|
-
}
|
|
215
|
-
catch (error) {
|
|
216
|
-
this.loggingService.log('error', 'wrapperService', 'sendCommunicationWrapperService', `sendCommunicationWrapper ERROR: ${error.message}`, [], [error.stack]);
|
|
217
|
-
return {
|
|
218
|
-
success: false,
|
|
219
|
-
error: error.message,
|
|
220
|
-
};
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
async scheduleMeetingWrapper(payload, loggedInUser, mapped_entities) {
|
|
224
|
-
try {
|
|
225
|
-
this.loggingService.log('log', 'wrapperService', 'scheduleMeetingWrapper', `scheduleMeetingWrapper called by user=${loggedInUser?.id || 'unknown'} Payload=${JSON.stringify(payload)}`, [], []);
|
|
226
|
-
const cleanEmails = (arr = []) => arr.filter((e) => e && e.trim() !== '').map((e) => e.trim());
|
|
227
|
-
const toList = Array.isArray(payload.to) ? cleanEmails(payload.to) : [];
|
|
228
|
-
payload.attendees = [
|
|
229
|
-
...toList.map((e) => ({ email: e })),
|
|
230
|
-
...(payload.attendees || []).flatMap((a) => typeof a === 'string'
|
|
231
|
-
? [{ email: a }]
|
|
232
|
-
: Array.isArray(a?.email)
|
|
233
|
-
? a.email.map((e) => ({ email: e }))
|
|
234
|
-
: a?.email
|
|
235
|
-
? [{ email: a.email }]
|
|
236
|
-
: []),
|
|
237
|
-
];
|
|
238
|
-
let integrationConfig = await this.integrationService.getSingleActiveConfig(payload.level_id, payload.level_type, payload.app_code, 'EMAIL');
|
|
239
|
-
if (integrationConfig) {
|
|
240
|
-
return {
|
|
241
|
-
success: true,
|
|
242
|
-
data: await this.sendIcsInvite(payload, payload.level_id, payload.level_type, payload.app_code, loggedInUser.organization_id, mapped_entities),
|
|
243
|
-
};
|
|
244
|
-
}
|
|
245
|
-
this.loggingService.log('log', 'wrapperService', 'scheduleMeetingWrapper', `No user-level config found, checking ORG-level...`, [], []);
|
|
246
|
-
const integrationConfigRepo = this.reflectionHelper.getRepoService('IntegrationConfig');
|
|
247
|
-
const orgConfigs = await integrationConfigRepo.find({
|
|
248
|
-
where: {
|
|
249
|
-
level_id: 1,
|
|
250
|
-
level_type: 'ORG',
|
|
251
|
-
integration_type: 'EMAIL',
|
|
252
|
-
app_code: 'DEFAULT',
|
|
253
|
-
status: 1,
|
|
254
|
-
},
|
|
255
|
-
});
|
|
256
|
-
integrationConfig = await this.integrationService.getSingleActiveConfig(1, 'ORG', 'DEFAULT', 'EMAIL');
|
|
257
|
-
this.loggingService.log('debug', 'wrapperService', 'scheduleMeetingWrapper', `ORG configs found: ${JSON.stringify(orgConfigs)}`, [], []);
|
|
258
|
-
if (integrationConfig) {
|
|
259
|
-
return {
|
|
260
|
-
success: true,
|
|
261
|
-
data: await this.sendIcsInvite(payload, 1, 'ORG', 'DEFAULT', loggedInUser.organization_id, mapped_entities),
|
|
262
|
-
};
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
catch (error) {
|
|
266
|
-
this.loggingService.log('error', 'wrapperService', 'scheduleMeetingWrapper', `scheduleMeetingWrapper ERROR: ${error.message}`, [], [error.stack]);
|
|
267
|
-
return { success: false, error: error.message };
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
async getConfigCred(configId) {
|
|
271
|
-
this.loggingService.log('debug', 'wrapperService', 'getConfigCred', `Fetching config JSON for configId=${configId}`, [], []);
|
|
272
|
-
const integrationConfigRepo = this.reflectionHelper.getRepoService('IntegrationConfig');
|
|
273
|
-
const configRes = await integrationConfigRepo.findOne({
|
|
274
|
-
where: {
|
|
275
|
-
id: configId,
|
|
276
|
-
},
|
|
277
|
-
});
|
|
278
|
-
this.loggingService.log('debug', 'wrapperService', 'getConfigCred', `Config fetch result: ${JSON.stringify(configRes)}`, [], []);
|
|
279
|
-
return configRes?.config_json || null;
|
|
280
|
-
}
|
|
281
|
-
async sendIcsInvite(payload, levelId, levelType, appCode, organizationId, mapped_entities) {
|
|
282
|
-
this.loggingService.log('log', 'wrapperService', 'sendIcsInvite', `Generating ICS file. Payload: ${JSON.stringify(payload)}`, [], []);
|
|
283
|
-
if (payload.template_code) {
|
|
284
|
-
const commTemplateRepo = this.reflectionHelper.getRepoService('CommTemplate');
|
|
285
|
-
let templates = await commTemplateRepo.find({
|
|
286
|
-
where: {
|
|
287
|
-
code: payload.template_code,
|
|
288
|
-
level_id: levelId,
|
|
289
|
-
level_type: levelType,
|
|
290
|
-
},
|
|
291
|
-
});
|
|
292
|
-
if (templates && templates.length > 0) {
|
|
293
|
-
payload['templateId'] = templates[0].id;
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
let activeConfig = await this.integrationService.getSingleActiveConfig(levelId, levelType, appCode, 'EMAIL');
|
|
297
|
-
const base64String = await this.icsService.generateIcs(payload, activeConfig?.config_json);
|
|
298
|
-
this.loggingService.log('debug', 'wrapperService', 'sendIcsInvite', `ICS generated (base64 length: ${base64String?.length})`, [], []);
|
|
299
|
-
const attendeeEmails = payload.attendees?.flatMap((a) => Array.isArray(a.email) ? a.email : [a.email]) || [];
|
|
300
|
-
const toList = Array.from(new Set([
|
|
301
|
-
...(Array.isArray(payload.to)
|
|
302
|
-
? payload.to
|
|
303
|
-
: payload.to
|
|
304
|
-
? [payload.to]
|
|
305
|
-
: []),
|
|
306
|
-
...attendeeEmails,
|
|
307
|
-
].map((email) => email.toLowerCase().trim())));
|
|
308
|
-
const payloadSendMail = {
|
|
309
|
-
levelId,
|
|
310
|
-
levelType,
|
|
311
|
-
app_code: appCode,
|
|
312
|
-
to: toList,
|
|
313
|
-
message: payload.message,
|
|
314
|
-
subject: payload.subject,
|
|
315
|
-
type: 'EMAIL',
|
|
316
|
-
cc: payload.cc,
|
|
317
|
-
bcc: payload.bcc,
|
|
318
|
-
html: payload.html,
|
|
319
|
-
attachments: [
|
|
320
|
-
{
|
|
321
|
-
content: base64String,
|
|
322
|
-
type: 'text/calendar',
|
|
323
|
-
filename: 'invite.ics',
|
|
324
|
-
disposition: 'attachment',
|
|
325
|
-
},
|
|
326
|
-
],
|
|
327
|
-
templateId: payload.templateId,
|
|
328
|
-
entity_id: payload.entity_id,
|
|
329
|
-
entity_type: payload.entity_type,
|
|
330
|
-
organization_id: organizationId,
|
|
331
|
-
mapped_entities,
|
|
332
|
-
};
|
|
333
|
-
this.loggingService.log('debug', 'wrapperService', 'sendIcsInvite', `Final payload for ICS send: ${JSON.stringify(payloadSendMail)}`, [], []);
|
|
334
|
-
const result = await this.integrationService.sendGenericMessage(payloadSendMail);
|
|
335
|
-
this.loggingService.log('log', 'wrapperService', 'sendIcsInvite', `ICS mail send result: ${JSON.stringify(result)}`, [], []);
|
|
336
|
-
return result;
|
|
337
|
-
}
|
|
338
|
-
};
|
|
339
|
-
exports.WrapperService = WrapperService;
|
|
340
|
-
exports.WrapperService = WrapperService = WrapperService_1 = __decorate([
|
|
341
|
-
(0, common_1.Injectable)(),
|
|
342
|
-
__metadata("design:paramtypes", [integration_service_1.IntegrationService,
|
|
343
|
-
ics_service_1.IcsMeetingService,
|
|
344
|
-
loggingUtil_service_1.LoggingService,
|
|
345
|
-
reflection_helper_service_1.ReflectionHelper,
|
|
346
|
-
media_data_service_1.MediaDataService])
|
|
347
|
-
], WrapperService);
|
|
348
|
-
//# sourceMappingURL=wrapper.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"wrapper.service.js","sourceRoot":"","sources":["../../../../src/module/integration/service/wrapper.service.ts"],"names":[],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EAAE;gBACX;oBACE,OAAO,EAAE,YAAY;oBACrB,IAAI,EAAE,eAAe;oBACrB,QAAQ,EAAE,YAAY;oBACtB,WAAW,EAAE,YAAY;iBAC1B;aACF;YACD,UAAU,EAAE,OAAO,CAAC,UAAU;YAC9B,SAAS,EAAE,OAAO,CAAC,SAAS;YAC5B,WAAW,EAAE,OAAO,CAAC,WAAW;YAChC,eAAe,EAAE,cAAc;YAC/B,eAAe;SAChB,CAAC;QAEF,IAAI,CAAC,cAAc,CAAC,GAAG,CACrB,OAAO,EACP,gBAAgB,EAChB,eAAe,EACf,+BAA+B,IAAI,CAAC,SAAS,CAAC,eAAe,CAAC,EAAE,EAChE,EAAE,EACF,EAAE,CACH,CAAC;QACF,MAAM,MAAM,GACV,MAAM,IAAI,CAAC,kBAAkB,CAAC,kBAAkB,CAAC,eAAe,CAAC,CAAC;QACpE,IAAI,CAAC,cAAc,CAAC,GAAG,CACrB,KAAK,EACL,gBAAgB,EAChB,eAAe,EACf,yBAAyB,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,EACjD,EAAE,EACF,EAAE,CACH,CAAC;QACF,OAAO,MAAM,CAAC;IAChB,CAAC;CACF,CAAA;AAvuBY,wCAAc;yBAAd,cAAc;IAD1B,IAAA,mBAAU,GAAE;qCAK4B,wCAAkB;QAC1B,+BAAiB;QACb,oCAAc;QACZ,4CAAgB;QACpB,qCAAgB;GARtC,cAAc,CAuuB1B"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ConfigService } from '@nestjs/config';
|
|
2
|
-
import { IntegrationStrategy, IntegrationResult } from '../integration.strategy';
|
|
3
|
-
export declare class GmailApiStrategy implements IntegrationStrategy {
|
|
4
|
-
private readonly configService;
|
|
5
|
-
constructor(configService: ConfigService);
|
|
6
|
-
sendMessage(to: string | string[], message: string, config: any): Promise<IntegrationResult>;
|
|
7
|
-
validateConfig(config: any): boolean;
|
|
8
|
-
private setupOAuth2Client;
|
|
9
|
-
refreshAccessToken(config: any): Promise<string>;
|
|
10
|
-
validateConnection(config: any): Promise<boolean>;
|
|
11
|
-
private buildSimpleEmail;
|
|
12
|
-
private buildMultipartEmail;
|
|
13
|
-
}
|
|
@@ -1,195 +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.GmailApiStrategy = void 0;
|
|
13
|
-
const common_1 = require("@nestjs/common");
|
|
14
|
-
const config_1 = require("@nestjs/config");
|
|
15
|
-
const googleapis_1 = require("googleapis");
|
|
16
|
-
let GmailApiStrategy = class GmailApiStrategy {
|
|
17
|
-
constructor(configService) {
|
|
18
|
-
this.configService = configService;
|
|
19
|
-
}
|
|
20
|
-
async sendMessage(to, message, config) {
|
|
21
|
-
try {
|
|
22
|
-
if (!config || !config.refreshToken) {
|
|
23
|
-
throw new Error('Invalid Gmail API configuration - missing refresh token');
|
|
24
|
-
}
|
|
25
|
-
const { subject, cc, bcc, attachments } = config;
|
|
26
|
-
console.log('---- Using Google SDK Gmail API ----');
|
|
27
|
-
const oauth2Client = await this.setupOAuth2Client(config);
|
|
28
|
-
const gmail = googleapis_1.google.gmail({ version: 'v1', auth: oauth2Client });
|
|
29
|
-
const toRecipients = Array.isArray(to) ? to.join(', ') : to;
|
|
30
|
-
const ccRecipients = cc
|
|
31
|
-
? Array.isArray(cc)
|
|
32
|
-
? cc.join(', ')
|
|
33
|
-
: cc
|
|
34
|
-
: undefined;
|
|
35
|
-
const bccRecipients = bcc
|
|
36
|
-
? Array.isArray(bcc)
|
|
37
|
-
? bcc.join(', ')
|
|
38
|
-
: bcc
|
|
39
|
-
: undefined;
|
|
40
|
-
const emailContent = attachments && attachments.length > 0
|
|
41
|
-
? this.buildMultipartEmail(toRecipients, ccRecipients, bccRecipients, subject, config.richText || message, attachments)
|
|
42
|
-
: this.buildSimpleEmail(toRecipients, ccRecipients, bccRecipients, subject, config.richText || message);
|
|
43
|
-
const encodedMessage = Buffer.from(emailContent)
|
|
44
|
-
.toString('base64')
|
|
45
|
-
.replace(/\+/g, '-')
|
|
46
|
-
.replace(/\//g, '_')
|
|
47
|
-
.replace(/=+$/, '');
|
|
48
|
-
const result = await gmail.users.messages.send({
|
|
49
|
-
userId: 'me',
|
|
50
|
-
requestBody: {
|
|
51
|
-
raw: encodedMessage,
|
|
52
|
-
},
|
|
53
|
-
});
|
|
54
|
-
const credentials = oauth2Client.credentials;
|
|
55
|
-
const freshAccessToken = credentials.access_token;
|
|
56
|
-
return {
|
|
57
|
-
success: true,
|
|
58
|
-
messageId: result.data.id || undefined,
|
|
59
|
-
provider: 'gmail',
|
|
60
|
-
service: 'API',
|
|
61
|
-
timestamp: new Date(),
|
|
62
|
-
message: "Email sent successfully"
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
catch (error) {
|
|
66
|
-
console.error('---- Gmail SDK API Error ----');
|
|
67
|
-
console.error('Error message:', error.message);
|
|
68
|
-
console.error('Error details:', error.response?.data || error.errors);
|
|
69
|
-
return {
|
|
70
|
-
success: false,
|
|
71
|
-
provider: 'gmail',
|
|
72
|
-
service: 'API',
|
|
73
|
-
error: error.response?.data?.error?.message ||
|
|
74
|
-
error.message ||
|
|
75
|
-
'Gmail API error',
|
|
76
|
-
timestamp: new Date(),
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
validateConfig(config) {
|
|
81
|
-
if (!config)
|
|
82
|
-
return false;
|
|
83
|
-
return config.refreshToken && typeof config.refreshToken === 'string';
|
|
84
|
-
}
|
|
85
|
-
async setupOAuth2Client(config) {
|
|
86
|
-
try {
|
|
87
|
-
const { refreshToken } = config;
|
|
88
|
-
if (!refreshToken) {
|
|
89
|
-
throw new Error('Missing refresh token for OAuth2 setup');
|
|
90
|
-
}
|
|
91
|
-
const clientId = this.configService.get('CLIENT_ID');
|
|
92
|
-
const clientSecret = this.configService.get('CLIENT_SECRET');
|
|
93
|
-
const callbackurl = this.configService.get('CALLBACK_URL');
|
|
94
|
-
if (!clientId || !clientSecret) {
|
|
95
|
-
throw new Error('Gmail OAuth system credentials not configured');
|
|
96
|
-
}
|
|
97
|
-
console.log('---- Setting up OAuth2 client with Google SDK ----');
|
|
98
|
-
const oauth2Client = new googleapis_1.google.auth.OAuth2(clientId, clientSecret, callbackurl);
|
|
99
|
-
oauth2Client.setCredentials({
|
|
100
|
-
refresh_token: refreshToken,
|
|
101
|
-
});
|
|
102
|
-
await oauth2Client.getAccessToken();
|
|
103
|
-
console.log('---- OAuth2 client setup completed ----');
|
|
104
|
-
return oauth2Client;
|
|
105
|
-
}
|
|
106
|
-
catch (error) {
|
|
107
|
-
console.error('Failed to setup OAuth2 client:', error.message);
|
|
108
|
-
throw new Error(`Failed to setup Gmail OAuth2 client: ${error.message}`);
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
async refreshAccessToken(config) {
|
|
112
|
-
try {
|
|
113
|
-
const oauth2Client = await this.setupOAuth2Client(config);
|
|
114
|
-
const { token } = await oauth2Client.getAccessToken();
|
|
115
|
-
if (!token) {
|
|
116
|
-
throw new Error('No access token received from OAuth2 client');
|
|
117
|
-
}
|
|
118
|
-
console.log('---- Token refreshed successfully via Google SDK ----');
|
|
119
|
-
return token;
|
|
120
|
-
}
|
|
121
|
-
catch (error) {
|
|
122
|
-
console.error('Failed to refresh access token via Google SDK:', error.message);
|
|
123
|
-
throw new Error(`Failed to refresh Gmail access token: ${error.message}`);
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
async validateConnection(config) {
|
|
127
|
-
try {
|
|
128
|
-
if (!this.validateConfig(config)) {
|
|
129
|
-
return false;
|
|
130
|
-
}
|
|
131
|
-
const oauth2Client = await this.setupOAuth2Client(config);
|
|
132
|
-
const gmail = googleapis_1.google.gmail({ version: 'v1', auth: oauth2Client });
|
|
133
|
-
const profile = await gmail.users.getProfile({
|
|
134
|
-
userId: 'me',
|
|
135
|
-
});
|
|
136
|
-
return !!(profile.data && profile.data.emailAddress);
|
|
137
|
-
}
|
|
138
|
-
catch (error) {
|
|
139
|
-
console.error('Gmail connection validation failed:', error.message);
|
|
140
|
-
return false;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
buildSimpleEmail(to, cc, bcc, subject, message) {
|
|
144
|
-
const emailLines = [`To: ${to}`, `Subject: ${subject || 'Notification'}`];
|
|
145
|
-
if (cc) {
|
|
146
|
-
emailLines.push(`Cc: ${cc}`);
|
|
147
|
-
}
|
|
148
|
-
if (bcc) {
|
|
149
|
-
emailLines.push(`Bcc: ${bcc}`);
|
|
150
|
-
}
|
|
151
|
-
emailLines.push('Content-Type: text/html; charset=utf-8');
|
|
152
|
-
emailLines.push('');
|
|
153
|
-
emailLines.push(message || '');
|
|
154
|
-
return emailLines.join('\n');
|
|
155
|
-
}
|
|
156
|
-
buildMultipartEmail(to, cc, bcc, subject, message, attachments) {
|
|
157
|
-
const boundary = `----GmailBoundary${Date.now()}${Math.random().toString(36).substr(2, 9)}`;
|
|
158
|
-
const emailLines = [`To: ${to}`, `Subject: ${subject || 'Notification'}`];
|
|
159
|
-
if (cc) {
|
|
160
|
-
emailLines.push(`Cc: ${cc}`);
|
|
161
|
-
}
|
|
162
|
-
if (bcc) {
|
|
163
|
-
emailLines.push(`Bcc: ${bcc}`);
|
|
164
|
-
}
|
|
165
|
-
emailLines.push(`Content-Type: multipart/mixed; boundary="${boundary}"`);
|
|
166
|
-
emailLines.push('');
|
|
167
|
-
emailLines.push(`--${boundary}`);
|
|
168
|
-
emailLines.push('Content-Type: text/html; charset=utf-8');
|
|
169
|
-
emailLines.push('');
|
|
170
|
-
emailLines.push(message || '');
|
|
171
|
-
if (attachments) {
|
|
172
|
-
for (const attachment of attachments) {
|
|
173
|
-
emailLines.push(`--${boundary}`);
|
|
174
|
-
emailLines.push(`Content-Type: ${attachment.contentType}`);
|
|
175
|
-
emailLines.push(`Content-Disposition: ${attachment.disposition || 'attachment'}; filename="${attachment.filename}"`);
|
|
176
|
-
emailLines.push('Content-Transfer-Encoding: base64');
|
|
177
|
-
if (attachment.contentId) {
|
|
178
|
-
emailLines.push(`Content-ID: <${attachment.contentId}>`);
|
|
179
|
-
}
|
|
180
|
-
emailLines.push('');
|
|
181
|
-
const base64Content = attachment.content;
|
|
182
|
-
const chunks = base64Content.match(/.{1,76}/g) || [];
|
|
183
|
-
emailLines.push(...chunks);
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
emailLines.push(`--${boundary}--`);
|
|
187
|
-
return emailLines.join('\n');
|
|
188
|
-
}
|
|
189
|
-
};
|
|
190
|
-
exports.GmailApiStrategy = GmailApiStrategy;
|
|
191
|
-
exports.GmailApiStrategy = GmailApiStrategy = __decorate([
|
|
192
|
-
(0, common_1.Injectable)(),
|
|
193
|
-
__metadata("design:paramtypes", [config_1.ConfigService])
|
|
194
|
-
], GmailApiStrategy);
|
|
195
|
-
//# sourceMappingURL=gmail-api.strategy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gmail-api.strategy.js","sourceRoot":"","sources":["../../../../../src/module/integration/strategies/email/gmail-api.strategy.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,2CAA+C;AAC/C,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,GAAG,CAAC,CAAC;gBAC3D,CAAC;gBAED,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;gBAGpB,MAAM,aAAa,GAAG,UAAU,CAAC,OAAO,CAAC;gBACzC,MAAM,MAAM,GAAG,aAAa,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;gBACrD,UAAU,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,CAAC;YAC7B,CAAC;QACH,CAAC;QAED,UAAU,CAAC,IAAI,CAAC,KAAK,QAAQ,IAAI,CAAC,CAAC;QAEnC,OAAO,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;CACF,CAAA;AA7QY,4CAAgB;2BAAhB,gBAAgB;IAD5B,IAAA,mBAAU,GAAE;qCAEiC,sBAAa;GAD9C,gBAAgB,CA6Q5B"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { IntegrationStrategy, IntegrationResult } from '../integration.strategy';
|
|
2
|
-
export declare class OutlookApiStrategy implements IntegrationStrategy {
|
|
3
|
-
sendMessage(to: string, message: string, config: any): Promise<IntegrationResult>;
|
|
4
|
-
validateConfig(config: any): boolean;
|
|
5
|
-
}
|