rez_core 5.0.169 → 5.0.172
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/.idea/250218_nodejs_core.iml +11 -8
- package/.idea/codeStyles/Project.xml +58 -58
- package/.idea/codeStyles/codeStyleConfig.xml +4 -4
- package/.idea/modules.xml +7 -7
- package/.idea/vcs.xml +5 -5
- package/.prettierrc +3 -3
- package/README.md +99 -99
- package/dist/module/auth/guards/role.guard.js +3 -3
- package/dist/module/filter/repository/saved-filter.repository.js +5 -3
- package/dist/module/filter/repository/saved-filter.repository.js.map +1 -1
- package/dist/module/filter/service/filter.service.js +19 -19
- package/dist/module/integration/examples/usage.example.js +9 -9
- package/dist/module/layout_preference/controller/layout_preference.controller.js +3 -0
- package/dist/module/layout_preference/controller/layout_preference.controller.js.map +1 -1
- package/dist/module/layout_preference/service/layout_preference.service.js +1 -1
- package/dist/module/layout_preference/service/layout_preference.service.js.map +1 -1
- package/dist/module/meta/controller/entity.controller.d.ts +0 -2
- package/dist/module/meta/controller/entity.controller.js +0 -23
- package/dist/module/meta/controller/entity.controller.js.map +1 -1
- package/dist/module/meta/controller/meta.controller.js +5 -0
- package/dist/module/meta/controller/meta.controller.js.map +1 -1
- package/dist/module/meta/controller/view-master.controller.js +2 -0
- package/dist/module/meta/controller/view-master.controller.js.map +1 -1
- package/dist/module/meta/entity.module.js +0 -3
- package/dist/module/meta/entity.module.js.map +1 -1
- package/dist/module/meta/repository/attribute-master.repository.js +8 -8
- package/dist/module/meta/repository/entity-master.repository.d.ts +1 -0
- package/dist/module/meta/repository/entity-master.repository.js +15 -3
- package/dist/module/meta/repository/entity-master.repository.js.map +1 -1
- package/dist/module/meta/repository/entity-table-column.repository.d.ts +1 -1
- package/dist/module/meta/repository/entity-table-column.repository.js +3 -3
- package/dist/module/meta/repository/entity-table-column.repository.js.map +1 -1
- package/dist/module/meta/repository/entity-table.repository.d.ts +2 -2
- package/dist/module/meta/repository/entity-table.repository.js +4 -4
- package/dist/module/meta/repository/entity-table.repository.js.map +1 -1
- package/dist/module/meta/repository/view-master.repository.d.ts +1 -1
- package/dist/module/meta/repository/view-master.repository.js +2 -2
- package/dist/module/meta/repository/view-master.repository.js.map +1 -1
- package/dist/module/meta/service/entity-dynamic.service.js +24 -27
- package/dist/module/meta/service/entity-dynamic.service.js.map +1 -1
- package/dist/module/meta/service/entity-service-impl.service.d.ts +0 -4
- package/dist/module/meta/service/entity-service-impl.service.js +10 -15
- package/dist/module/meta/service/entity-service-impl.service.js.map +1 -1
- package/dist/module/meta/service/entity-table-column.service.d.ts +1 -2
- package/dist/module/meta/service/entity-table-column.service.js +2 -10
- package/dist/module/meta/service/entity-table-column.service.js.map +1 -1
- package/dist/module/meta/service/entity-table.service.d.ts +1 -1
- package/dist/module/meta/service/entity-table.service.js +5 -5
- package/dist/module/meta/service/entity-table.service.js.map +1 -1
- package/dist/module/meta/service/entity-validation.service.d.ts +6 -5
- package/dist/module/meta/service/entity-validation.service.js +11 -12
- package/dist/module/meta/service/entity-validation.service.js.map +1 -1
- package/dist/module/meta/service/entity.service.d.ts +0 -2
- package/dist/module/meta/service/media-data.service.js +6 -6
- package/dist/module/meta/service/resolver.service.js +18 -19
- package/dist/module/meta/service/resolver.service.js.map +1 -1
- package/dist/module/meta/service/view-master.service.js +1 -1
- package/dist/module/meta/service/view-master.service.js.map +1 -1
- package/dist/module/module/repository/menu.repository.js +4 -4
- package/dist/module/notification/service/notification.service.js +6 -6
- package/dist/module/user/controller/login.controller.js +18 -18
- package/dist/module/workflow/repository/action.repository.js +2 -2
- package/dist/module/workflow/repository/stage.repository.js +8 -8
- package/dist/module/workflow/service/action-template-mapping.service.js +2 -2
- package/dist/module/workflow/service/action.service.js +5 -5
- package/dist/module/workflow/service/entity-modification.service.js +2 -2
- package/dist/module/workflow/service/task.service.js +8 -8
- package/dist/module/workflow-automation/service/schedule-handler.service.js +9 -9
- package/dist/module/workflow-automation/service/workflow-automation.service.js +4 -2
- package/dist/module/workflow-automation/service/workflow-automation.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/utils/service/reflection-helper.service.js +2 -2
- package/docs/modules/event-driven-integration-design.md +91 -91
- package/docs/modules/integration.md +250 -250
- package/eslint.config.mjs +34 -34
- package/nest-cli.json +14 -14
- package/package.json +125 -125
- package/src/app.controller.ts +12 -12
- package/src/app.module.ts +68 -68
- package/src/app.service.ts +8 -8
- package/src/config/bull.config.ts +69 -69
- package/src/config/config.module.ts +17 -17
- package/src/config/database.config.ts +48 -48
- package/src/constant/global.constant.ts +67 -67
- package/src/core.module.ts +94 -94
- package/src/decorators/roles.decorator.ts +7 -7
- package/src/dtos/response.dto.ts +6 -6
- package/src/dtos/response.ts +5 -5
- package/src/index.ts +1 -1
- package/src/module/auth/auth.module.ts +49 -49
- package/src/module/auth/controller/auth.controller.ts +28 -28
- package/src/module/auth/guards/google-auth.guard.ts +9 -9
- package/src/module/auth/guards/jwt.guard.ts +22 -22
- package/src/module/auth/guards/role.guard.ts +68 -68
- package/src/module/auth/services/auth.service.ts +56 -56
- package/src/module/auth/services/jwt.service.ts +11 -11
- package/src/module/auth/strategies/google.strategy.ts +54 -54
- package/src/module/auth/strategies/jwt.strategy.ts +58 -58
- package/src/module/auth/strategies/local.strategy.ts +13 -13
- package/src/module/dashboard/controller/dashboard.controller.ts +36 -36
- package/src/module/dashboard/dashboard.module.ts +21 -21
- package/src/module/dashboard/entity/dashboard_page_data.entity.ts +27 -27
- package/src/module/dashboard/entity/widget_master.entity.ts +18 -18
- package/src/module/dashboard/repository/dashboard.repository.ts +51 -51
- package/src/module/dashboard/service/dashboard.service.ts +73 -73
- package/src/module/enterprise/controller/organization.controller.ts +36 -36
- package/src/module/enterprise/enterprise.module.ts +30 -30
- package/src/module/enterprise/entity/enterprise.entity.ts +37 -37
- package/src/module/enterprise/entity/organization-app-mapping.entity.ts +13 -13
- package/src/module/enterprise/entity/organization.entity.ts +92 -92
- package/src/module/enterprise/repository/enterprise.repository.ts +31 -31
- package/src/module/enterprise/repository/organization.repository.ts +26 -26
- package/src/module/enterprise/repository/school.repository.ts +272 -272
- package/src/module/enterprise/service/brand.service.ts +5 -5
- package/src/module/enterprise/service/enterprise.service.ts +16 -16
- package/src/module/enterprise/service/organization-app-mapping.service.ts +4 -4
- package/src/module/enterprise/service/organization.service.ts +145 -145
- package/src/module/entity_json/controller/entity_json.controller.ts +47 -47
- package/src/module/entity_json/entity/entityJson.entity.ts +39 -39
- package/src/module/entity_json/entity_json.module.ts +18 -18
- package/src/module/entity_json/service/entityJson.repository.ts +37 -37
- package/src/module/entity_json/service/entity_json.service.ts +242 -242
- package/src/module/export/controller/export.controller.ts +83 -83
- package/src/module/export/export.module.ts +14 -14
- package/src/module/export/service/export.service.ts +105 -105
- package/src/module/filter/controller/filter.controller.ts +84 -84
- package/src/module/filter/dto/filter-request.dto.ts +39 -39
- package/src/module/filter/entity/saved-filter-detail.entity.ts +41 -41
- package/src/module/filter/entity/saved-filter-master.entity.ts +32 -32
- package/src/module/filter/filter.module.ts +33 -33
- package/src/module/filter/repository/saved-filter.repository.ts +258 -256
- package/src/module/filter/repository/saved.filter-detail.repository.ts +19 -19
- package/src/module/filter/service/filter-evaluator.service.ts +82 -82
- package/src/module/filter/service/filter.service.ts +1319 -1319
- package/src/module/filter/service/saved-filter.service.ts +164 -164
- package/src/module/ics/controller/ics.controller.ts +21 -21
- package/src/module/ics/dto/ics.dto.ts +55 -55
- package/src/module/ics/ics.module.ts +13 -13
- package/src/module/ics/service/ics.service.ts +57 -57
- package/src/module/integration/controller/calender-event.controller.ts +31 -31
- package/src/module/integration/controller/integration.controller.ts +662 -662
- package/src/module/integration/controller/wrapper.controller.ts +37 -37
- package/src/module/integration/dto/create-config.dto.ts +526 -526
- package/src/module/integration/entity/integration-config.entity.ts +112 -112
- package/src/module/integration/entity/integration-entity-mapper.entity.ts +14 -14
- package/src/module/integration/entity/integration-source.entity.ts +17 -17
- package/src/module/integration/entity/user-integration.entity.ts +71 -71
- package/src/module/integration/examples/usage.example.ts +338 -338
- package/src/module/integration/factories/base.factory.ts +7 -7
- package/src/module/integration/factories/email.factory.ts +49 -49
- package/src/module/integration/factories/integration.factory.ts +121 -121
- package/src/module/integration/factories/sms.factory.ts +51 -51
- package/src/module/integration/factories/telephone.factory.ts +41 -41
- package/src/module/integration/factories/whatsapp.factory.ts +56 -56
- package/src/module/integration/integration.module.ts +110 -110
- package/src/module/integration/service/calendar-event.service.ts +118 -118
- package/src/module/integration/service/integration-entity-mapper.service.ts +17 -17
- package/src/module/integration/service/integration-queue.service.ts +229 -229
- package/src/module/integration/service/integration.service.ts +2634 -2634
- package/src/module/integration/service/oauth.service.ts +224 -224
- package/src/module/integration/service/wrapper.service.ts +753 -753
- package/src/module/integration/strategies/email/gmail-api.strategy.ts +280 -280
- package/src/module/integration/strategies/email/outlook-api.strategy.ts +44 -44
- package/src/module/integration/strategies/email/outlook.strategy.ts +64 -64
- package/src/module/integration/strategies/email/sendgrid-api.strategy.ts +260 -260
- package/src/module/integration/strategies/integration.strategy.ts +97 -97
- package/src/module/integration/strategies/sms/gupshup-sms.strategy.ts +146 -146
- package/src/module/integration/strategies/sms/msg91-sms.strategy.ts +164 -164
- package/src/module/integration/strategies/sms/tubelight-sms.strategy.ts +163 -163
- package/src/module/integration/strategies/telephone/ozonetel-voice.strategy.ts +238 -238
- package/src/module/integration/strategies/telephone/tubelight-voice.strategy.ts +210 -210
- package/src/module/integration/strategies/whatsapp/gupshup-whatsapp.strategy.ts +359 -359
- package/src/module/integration/strategies/whatsapp/tubelight-whatsapp.strategy.ts +372 -372
- package/src/module/integration/strategies/whatsapp/whatsapp-cloud.strategy.ts +403 -403
- package/src/module/integration/strategies/whatsapp/whatsapp.strategy.ts +57 -57
- package/src/module/layout/controller/layout.controller.ts +47 -47
- package/src/module/layout/entity/header-items.entity.ts +28 -28
- package/src/module/layout/entity/header-section.entity.ts +19 -19
- package/src/module/layout/layout.module.ts +21 -21
- package/src/module/layout/repository/header-items.repository.ts +18 -18
- package/src/module/layout/repository/header-section.repository.ts +22 -22
- package/src/module/layout/service/header-section.service.ts +25 -25
- package/src/module/layout_preference/controller/layout_preference.controller.ts +76 -73
- package/src/module/layout_preference/entity/layout_preference.entity.ts +28 -28
- package/src/module/layout_preference/layout_preference.module.ts +22 -22
- package/src/module/layout_preference/repository/layout_preference.repository.ts +65 -65
- package/src/module/layout_preference/service/layout_preference.service.ts +191 -191
- package/src/module/lead/controller/lead.controller.ts +30 -30
- package/src/module/lead/lead.module.ts +14 -14
- package/src/module/lead/repository/lead.repository.ts +41 -41
- package/src/module/lead/service/lead.service.ts +54 -54
- package/src/module/linked_attributes/controller/linked_attributes.controller.ts +37 -37
- package/src/module/linked_attributes/entity/linked_attribute.entity.ts +51 -51
- package/src/module/linked_attributes/linked_attributes.module.ts +16 -16
- package/src/module/linked_attributes/repository/linked_attribute.repository.ts +12 -12
- package/src/module/linked_attributes/service/linked_attributes.service.ts +75 -75
- package/src/module/listmaster/controller/list-master.controller.ts +230 -230
- package/src/module/listmaster/entity/list-master-items.entity.ts +43 -43
- package/src/module/listmaster/entity/list-master.entity.ts +33 -33
- package/src/module/listmaster/listmaster.module.ts +46 -46
- package/src/module/listmaster/repository/list-master-items.repository.ts +173 -173
- package/src/module/listmaster/repository/list-master.repository.ts +56 -56
- package/src/module/listmaster/service/list-master-engine.ts +19 -19
- package/src/module/listmaster/service/list-master-extension.interface.ts +4 -4
- package/src/module/listmaster/service/list-master-item.service.ts +281 -281
- package/src/module/listmaster/service/list-master-registry.ts +15 -15
- package/src/module/listmaster/service/list-master.service.ts +535 -535
- package/src/module/mapper/controller/field-mapper.controller.ts +76 -76
- package/src/module/mapper/controller/mapper.controller.ts +20 -20
- package/src/module/mapper/dto/field-mapper.dto.ts +14 -14
- package/src/module/mapper/entity/field-lovs.entity.ts +19 -19
- package/src/module/mapper/entity/field-mapper.entity.ts +53 -53
- package/src/module/mapper/entity/mapper.entity.ts +16 -16
- package/src/module/mapper/mapper.module.ts +35 -35
- package/src/module/mapper/repository/field-lovs.repository.ts +35 -35
- package/src/module/mapper/repository/field-mapper.repository.ts +42 -42
- package/src/module/mapper/repository/mapper.repository.ts +32 -32
- package/src/module/mapper/service/field-mapper.service.ts +269 -269
- package/src/module/mapper/service/mapper.service.ts +81 -81
- package/src/module/master/controller/master.controller.ts +74 -74
- package/src/module/master/service/master.service.ts +483 -483
- package/src/module/meta/controller/app-master.controller.ts +38 -38
- package/src/module/meta/controller/attribute-master.controller.ts +84 -84
- package/src/module/meta/controller/entity-dynamic.controller.ts +125 -125
- package/src/module/meta/controller/entity-master.controller.ts +41 -41
- package/src/module/meta/controller/entity-relation.controller.ts +36 -36
- package/src/module/meta/controller/entity.controller.ts +308 -342
- package/src/module/meta/controller/entity.public.controller.ts +75 -75
- package/src/module/meta/controller/media.controller.ts +135 -135
- package/src/module/meta/controller/meta.controller.ts +101 -96
- package/src/module/meta/controller/view-master.controller.ts +79 -86
- package/src/module/meta/dto/entity-list-data.dto.ts +6 -6
- package/src/module/meta/dto/entity-tab.dto.ts +4 -4
- package/src/module/meta/dto/entity-table.dto.ts +12 -12
- package/src/module/meta/entity/app-master.entity.ts +37 -37
- package/src/module/meta/entity/attribute-master.entity.ts +92 -92
- package/src/module/meta/entity/base-entity.entity.ts +75 -75
- package/src/module/meta/entity/entity-master.entity.ts +85 -85
- package/src/module/meta/entity/entity-relation-data.entity.ts +29 -29
- package/src/module/meta/entity/entity-relation.entity.ts +23 -23
- package/src/module/meta/entity/entity-table-column.entity.ts +61 -61
- package/src/module/meta/entity/entity-table.entity.ts +50 -50
- package/src/module/meta/entity/media-data.entity.ts +32 -32
- package/src/module/meta/entity/preference.entity.ts +62 -62
- package/src/module/meta/entity/view-master.entity.ts +41 -41
- package/src/module/meta/entity.module.ts +165 -168
- package/src/module/meta/repository/app-master.repository.ts +20 -20
- package/src/module/meta/repository/attribute-master.repository.ts +164 -164
- package/src/module/meta/repository/entity-attribute-update.repository.ts +48 -48
- package/src/module/meta/repository/entity-master.repository.ts +120 -106
- package/src/module/meta/repository/entity-relation.repository.ts +22 -22
- package/src/module/meta/repository/entity-table-column.repository.ts +39 -39
- package/src/module/meta/repository/entity-table.repository.ts +53 -53
- package/src/module/meta/repository/media-data.repository.ts +50 -50
- package/src/module/meta/repository/preference.repository.ts +20 -20
- package/src/module/meta/repository/user-app-mapping.repository.ts +28 -28
- package/src/module/meta/repository/view-master.repository.ts +42 -42
- package/src/module/meta/service/app-master.service.ts +37 -37
- package/src/module/meta/service/attribute-master.service.ts +131 -131
- package/src/module/meta/service/common.service.ts +9 -9
- package/src/module/meta/service/entity-attribute-update.service.ts +26 -26
- package/src/module/meta/service/entity-dynamic.service.ts +824 -826
- package/src/module/meta/service/entity-master.service.ts +171 -171
- package/src/module/meta/service/entity-realation-data.service.ts +9 -9
- package/src/module/meta/service/entity-relation.service.ts +74 -74
- package/src/module/meta/service/entity-service-impl.service.ts +388 -439
- package/src/module/meta/service/entity-table-column.service.ts +26 -39
- package/src/module/meta/service/entity-table.service.ts +157 -157
- package/src/module/meta/service/entity-validation.service.ts +188 -187
- package/src/module/meta/service/entity.service.ts +49 -59
- package/src/module/meta/service/field-group.service.ts +103 -103
- package/src/module/meta/service/media-data.service.ts +591 -591
- package/src/module/meta/service/populate-meta.service.ts +222 -222
- package/src/module/meta/service/preference.service.ts +16 -16
- package/src/module/meta/service/resolver.service.ts +289 -291
- package/src/module/meta/service/section-master.service.ts +104 -104
- package/src/module/meta/service/update-form-json.service.ts +22 -22
- package/src/module/meta/service/user-app-mapping.service.ts +17 -17
- package/src/module/meta/service/view-master.service.ts +127 -127
- package/src/module/microservice-client/microservice-clients.module.ts +13 -13
- package/src/module/microservice-client/service/microservice-client-factory.ts +37 -37
- package/src/module/microservice-client/service/microservice-clients.ts +4 -4
- package/src/module/module/controller/menu.controller.ts +15 -15
- package/src/module/module/controller/module-access.controller.ts +133 -133
- package/src/module/module/entity/menu.entity.ts +43 -43
- package/src/module/module/entity/module-access.entity.ts +25 -25
- package/src/module/module/entity/module-action.entity.ts +17 -17
- package/src/module/module/entity/module.entity.ts +52 -52
- package/src/module/module/module.module.ts +42 -42
- package/src/module/module/repository/menu.repository.ts +186 -186
- package/src/module/module/repository/module-access.repository.ts +344 -344
- package/src/module/module/service/menu.service.ts +82 -82
- package/src/module/module/service/module-access.service.ts +189 -189
- package/src/module/notification/controller/notification.controller.ts +58 -58
- package/src/module/notification/controller/otp.controller.ts +117 -117
- package/src/module/notification/entity/notification.entity.ts +26 -26
- package/src/module/notification/entity/otp.entity.ts +28 -28
- package/src/module/notification/firebase-admin.config.ts +22 -22
- package/src/module/notification/notification.module.ts +69 -69
- package/src/module/notification/repository/otp.repository.ts +27 -27
- package/src/module/notification/service/email.service.ts +127 -127
- package/src/module/notification/service/notification.service.ts +164 -164
- package/src/module/notification/service/otp.service.ts +133 -133
- package/src/module/third-party-module/entity/third-party-api-registry.entity.ts +52 -52
- package/src/module/third-party-module/repository/third-party-api-registry.repository.ts +20 -20
- package/src/module/third-party-module/service/api-registry.service.ts +13 -13
- package/src/module/third-party-module/third-party.module.ts +12 -12
- package/src/module/user/controller/login.controller.ts +198 -198
- package/src/module/user/controller/user.controller.ts +40 -40
- package/src/module/user/dto/create-user.dto.ts +62 -62
- package/src/module/user/dto/update-user.dto.ts +4 -4
- package/src/module/user/entity/role.entity.ts +33 -33
- package/src/module/user/entity/user-role-mapping.entity.ts +38 -38
- package/src/module/user/entity/user-session.entity.ts +73 -73
- package/src/module/user/entity/user.entity.ts +59 -59
- package/src/module/user/repository/role.repository.ts +96 -96
- package/src/module/user/repository/user-role-mapping.repository.ts +126 -126
- package/src/module/user/repository/user.repository.ts +50 -50
- package/src/module/user/repository/userSession.repository.ts +33 -33
- package/src/module/user/service/login.service.ts +326 -326
- package/src/module/user/service/role.service.ts +197 -197
- package/src/module/user/service/user-role-mapping.service.ts +98 -98
- package/src/module/user/service/user-session.service.ts +200 -200
- package/src/module/user/service/user.service.ts +368 -368
- package/src/module/user/user.module.ts +65 -65
- package/src/module/workflow/controller/action-category.controller.ts +54 -54
- package/src/module/workflow/controller/action-resource-mapping.controller.ts +23 -23
- package/src/module/workflow/controller/action-template-mapping.controller.ts +35 -35
- package/src/module/workflow/controller/action.controller.ts +111 -111
- package/src/module/workflow/controller/activity-log.controller.ts +55 -55
- package/src/module/workflow/controller/comm-template.controller.ts +43 -43
- package/src/module/workflow/controller/entity-modification.controller.ts +35 -35
- package/src/module/workflow/controller/form-master.controller.ts +43 -43
- package/src/module/workflow/controller/stage-group.controller.ts +48 -48
- package/src/module/workflow/controller/stage.controller.ts +50 -50
- package/src/module/workflow/controller/task.controller.ts +77 -77
- package/src/module/workflow/controller/workflow-list-master.controller.ts +44 -44
- package/src/module/workflow/controller/workflow-meta.controller.ts +80 -80
- package/src/module/workflow/controller/workflow.controller.ts +67 -67
- package/src/module/workflow/entity/action-category.entity.ts +38 -38
- package/src/module/workflow/entity/action-data.entity.ts +55 -55
- package/src/module/workflow/entity/action-resources-mapping.entity.ts +29 -29
- package/src/module/workflow/entity/action-template-mapping.entity.ts +17 -17
- package/src/module/workflow/entity/action.entity.ts +53 -53
- package/src/module/workflow/entity/activity-log.entity.ts +43 -43
- package/src/module/workflow/entity/comm-template.entity.ts +43 -43
- package/src/module/workflow/entity/entity-modification.entity.ts +38 -38
- package/src/module/workflow/entity/form.entity.ts +25 -25
- package/src/module/workflow/entity/stage-action-mapping.entity.ts +17 -17
- package/src/module/workflow/entity/stage-group.entity.ts +23 -23
- package/src/module/workflow/entity/stage-movement-data.entity.ts +38 -38
- package/src/module/workflow/entity/stage.entity.ts +20 -20
- package/src/module/workflow/entity/task-data.entity.ts +88 -88
- package/src/module/workflow/entity/template-attach-mapper.entity.ts +30 -30
- package/src/module/workflow/entity/workflow-data.entity.ts +11 -11
- package/src/module/workflow/entity/workflow-level-mapping.entity.ts +18 -18
- package/src/module/workflow/entity/workflow.entity.ts +20 -20
- package/src/module/workflow/repository/action-category.repository.ts +79 -79
- package/src/module/workflow/repository/action-data.repository.ts +346 -346
- package/src/module/workflow/repository/action.repository.ts +339 -339
- package/src/module/workflow/repository/activity-log.repository.ts +148 -148
- package/src/module/workflow/repository/comm-template.repository.ts +157 -157
- package/src/module/workflow/repository/form-master.repository.ts +50 -50
- package/src/module/workflow/repository/stage-group.repository.ts +186 -186
- package/src/module/workflow/repository/stage-movement.repository.ts +257 -257
- package/src/module/workflow/repository/stage.repository.ts +160 -160
- package/src/module/workflow/repository/task.repository.ts +151 -151
- package/src/module/workflow/repository/workflow.repository.ts +42 -42
- package/src/module/workflow/service/action-category.service.ts +33 -33
- package/src/module/workflow/service/action-data.service.ts +62 -62
- package/src/module/workflow/service/action-resources-mapping.service.ts +10 -10
- package/src/module/workflow/service/action-template-mapping.service.ts +140 -140
- package/src/module/workflow/service/action.service.ts +302 -302
- package/src/module/workflow/service/activity-log.service.ts +107 -107
- package/src/module/workflow/service/comm-template.service.ts +180 -180
- package/src/module/workflow/service/entity-modification.service.ts +61 -61
- package/src/module/workflow/service/form-master.service.ts +35 -35
- package/src/module/workflow/service/populate-workflow.service.ts +320 -320
- package/src/module/workflow/service/stage-action-mapping.service.ts +5 -5
- package/src/module/workflow/service/stage-group.service.ts +344 -344
- package/src/module/workflow/service/stage.service.ts +207 -207
- package/src/module/workflow/service/task.service.ts +550 -550
- package/src/module/workflow/service/workflow-list-master.service.ts +68 -68
- package/src/module/workflow/service/workflow-meta.service.ts +639 -639
- package/src/module/workflow/service/workflow.service.ts +213 -213
- package/src/module/workflow/workflow.module.ts +180 -180
- package/src/module/workflow-automation/SCHEDULING_GUIDE.md +145 -145
- package/src/module/workflow-automation/controller/workflow-automation.controller.ts +43 -43
- package/src/module/workflow-automation/entity/workflow-automation-action.entity.ts +26 -26
- package/src/module/workflow-automation/entity/workflow-automation.entity.ts +40 -40
- package/src/module/workflow-automation/interface/action.decorator.ts +7 -7
- package/src/module/workflow-automation/interface/action.interface.ts +5 -5
- package/src/module/workflow-automation/service/action-registery.service.ts +35 -35
- package/src/module/workflow-automation/service/schedule-handler.service.ts +168 -168
- package/src/module/workflow-automation/service/workflow-automation-engine.service.ts +219 -219
- package/src/module/workflow-automation/service/workflow-automation.service.ts +519 -515
- package/src/module/workflow-automation/workflow-automation.module.ts +54 -54
- package/src/module/workflow-schedule/INSTALLATION.md +244 -244
- package/src/module/workflow-schedule/MULTI_PROJECT_GUIDE.md +196 -196
- package/src/module/workflow-schedule/README.md +422 -422
- package/src/module/workflow-schedule/constants/schedule.constants.ts +48 -48
- package/src/module/workflow-schedule/controller/workflow-schedule.controller.ts +255 -255
- package/src/module/workflow-schedule/docs/CLAUDE_CODE_GUIDE.md +510 -510
- package/src/module/workflow-schedule/docs/CLAUDE_CODE_PROMPT.md +362 -362
- package/src/module/workflow-schedule/docs/RUN_CLAUDE_CODE.sh +68 -68
- package/src/module/workflow-schedule/dto/create-schedule.dto.ts +147 -147
- package/src/module/workflow-schedule/dto/get-execution-logs.dto.ts +119 -119
- package/src/module/workflow-schedule/dto/update-schedule.dto.ts +96 -96
- package/src/module/workflow-schedule/entities/scheduled-workflow.entity.ts +148 -148
- package/src/module/workflow-schedule/entities/workflow-execution-log.entity.ts +154 -154
- package/src/module/workflow-schedule/interfaces/schedule-job-data.interface.ts +53 -53
- package/src/module/workflow-schedule/interfaces/workflow-schedule-options.interface.ts +12 -12
- package/src/module/workflow-schedule/processors/schedule.processor.ts +620 -620
- package/src/module/workflow-schedule/service/workflow-schedule.service.ts +598 -598
- package/src/module/workflow-schedule/workflow-schedule.module.ts +67 -67
- package/src/resources/dev.properties.yaml +31 -31
- package/src/resources/local.properties.yaml +27 -27
- package/src/resources/properties.module.ts +12 -12
- package/src/resources/properties.yaml.ts +11 -11
- package/src/resources/uat.properties.yaml +31 -31
- package/src/table.config.ts +133 -133
- package/src/utils/dto/excel-data.dto.ts +14 -14
- package/src/utils/dto/excelsheet-data.dto.ts +5 -5
- package/src/utils/service/base64util.service.ts +18 -18
- package/src/utils/service/clockIDGenUtil.service.ts +21 -21
- package/src/utils/service/codeGenerator.service.ts +22 -22
- package/src/utils/service/dateUtil.service.ts +17 -17
- package/src/utils/service/encryptUtil.service.ts +97 -97
- package/src/utils/service/excel-helper.service.ts +72 -72
- package/src/utils/service/excelUtil.service.ts +15 -15
- package/src/utils/service/file-util.service.ts +11 -11
- package/src/utils/service/json-util.service.ts +23 -23
- package/src/utils/service/loggingUtil.service.ts +88 -88
- package/src/utils/service/reflection-helper.service.ts +62 -62
- package/src/utils/service/wbsCodeGen.service.ts +8 -8
- package/src/utils/utils.module.ts +27 -27
- package/tsconfig.build.json +4 -4
- package/tsconfig.json +24 -24
- package/.claude/settings.local.json +0 -26
- package/.idea/copilot.data.migration.agent.xml +0 -6
- package/.idea/copilot.data.migration.ask.xml +0 -6
- package/.idea/copilot.data.migration.ask2agent.xml +0 -6
- package/.idea/copilot.data.migration.edit.xml +0 -6
- package/.idea/inspectionProfiles/Project_Default.xml +0 -6
- package/.idea/misc.xml +0 -6
- package/.idea/prettier.xml +0 -6
- package/dist/module/meta/service/entity-list.service.d.ts +0 -17
- package/dist/module/meta/service/entity-list.service.js +0 -142
- package/dist/module/meta/service/entity-list.service.js.map +0 -1
- package/server.log +0 -850
- package/src/module/meta/service/entity-list.service.ts +0 -201
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { EntityServiceImpl } from '../service/entity-service-impl.service';
|
|
2
|
-
import { Response } from 'express';
|
|
3
2
|
import { ReflectionHelper } from '../../../utils/service/reflection-helper.service';
|
|
4
3
|
import { EntityMasterService } from '../service/entity-master.service';
|
|
5
4
|
import { BaseEntity } from '../entity/base-entity.entity';
|
|
@@ -31,5 +30,4 @@ export declare class EntityController {
|
|
|
31
30
|
success: boolean;
|
|
32
31
|
message: string;
|
|
33
32
|
}>;
|
|
34
|
-
getFilterDataWithTabs(entityType: string, listType: string, res: Response, req: any, filters?: Record<string, any>, sortColumn?: string, sortOrder?: string, page?: number, size?: number, tabColumn?: string, tabValue?: string): Promise<Response<any, Record<string, any>>>;
|
|
35
33
|
}
|
|
@@ -114,12 +114,6 @@ let EntityController = class EntityController {
|
|
|
114
114
|
}
|
|
115
115
|
return await entityService.deleteEntity(entityType, id, loggedInUser);
|
|
116
116
|
}
|
|
117
|
-
async getFilterDataWithTabs(entityType, listType, res, req, filters = {}, sortColumn, sortOrder, page = 0, size = 1, tabColumn, tabValue) {
|
|
118
|
-
const appcode = req.user.userData.appcode;
|
|
119
|
-
return res
|
|
120
|
-
.status(common_1.HttpStatus.OK)
|
|
121
|
-
.json(await this.entityService.getFilterDataWithTabs(entityType, listType, filters, sortColumn, sortOrder, page, size, tabColumn, tabValue, appcode));
|
|
122
|
-
}
|
|
123
117
|
};
|
|
124
118
|
exports.EntityController = EntityController;
|
|
125
119
|
__decorate([
|
|
@@ -180,23 +174,6 @@ __decorate([
|
|
|
180
174
|
__metadata("design:paramtypes", [Number, String, Object]),
|
|
181
175
|
__metadata("design:returntype", Promise)
|
|
182
176
|
], EntityController.prototype, "delete", null);
|
|
183
|
-
__decorate([
|
|
184
|
-
(0, common_1.Post)('getFilteredDataWithTabs/:entity_type'),
|
|
185
|
-
__param(0, (0, common_1.Param)('entity_type')),
|
|
186
|
-
__param(1, (0, common_1.Query)('list_type')),
|
|
187
|
-
__param(2, (0, common_1.Res)()),
|
|
188
|
-
__param(3, (0, common_1.Request)()),
|
|
189
|
-
__param(4, (0, common_1.Body)()),
|
|
190
|
-
__param(5, (0, common_1.Query)('sort_column')),
|
|
191
|
-
__param(6, (0, common_1.Query)('sort_order')),
|
|
192
|
-
__param(7, (0, common_1.Query)('page')),
|
|
193
|
-
__param(8, (0, common_1.Query)('size')),
|
|
194
|
-
__param(9, (0, common_1.Query)('tab_column')),
|
|
195
|
-
__param(10, (0, common_1.Query)('tab_value')),
|
|
196
|
-
__metadata("design:type", Function),
|
|
197
|
-
__metadata("design:paramtypes", [String, String, Object, Object, Object, String, String, Number, Number, String, String]),
|
|
198
|
-
__metadata("design:returntype", Promise)
|
|
199
|
-
], EntityController.prototype, "getFilterDataWithTabs", null);
|
|
200
177
|
exports.EntityController = EntityController = __decorate([
|
|
201
178
|
(0, common_1.UseGuards)(jwt_guard_1.JwtAuthGuard),
|
|
202
179
|
(0, common_1.Controller)('entity'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity.controller.js","sourceRoot":"","sources":["../../../../src/module/meta/controller/entity.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAgBwB;AACxB,wFAA2E;AAE3E,gGAAoF;AACpF,4EAAuE;AACvE,qEAA0D;AAC1D,2DAA2D;AAI3D,6HAEmF;AAI5E,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAC3B,YACU,aAAgC,EAChC,gBAAkC,EAClC,mBAAwC,EAC/B,+BAAgE;QAHzE,kBAAa,GAAb,aAAa,CAAmB;QAChC,qBAAgB,GAAhB,gBAAgB,CAAkB;QAClC,wBAAmB,GAAnB,mBAAmB,CAAqB;QAC/B,oCAA+B,GAA/B,+BAA+B,CAAiC;IAEnF,CAAC;IAIK,AAAN,KAAK,CAAC,OAAO,CACE,EAAU,EAChB,GAA4B,EACb,UAAmB;QAEzC,MAAM,YAAY,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QAEvC,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,MAAM,IAAI,4BAAmB,CAC3B,2CAA2C,CAC5C,CAAC;QACJ,CAAC;QACD,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,aAAa,CAC/D,UAAU,EACV,YAAY,CACb,CAAC;QAEF,MAAM,aAAa,GACjB,MAAM,IAAI,CAAC,gBAAgB,CAAC,OAAO,CACjC,YAAY,CAAC,cAAc,CAC5B,CAAC;QAEJ,IAAI,aAAa,EAAE,CAAC;YAClB,OAAO,MAAM,aAAa,CAAC,aAAa,CAAC,UAAU,EAAE,EAAE,EAAE,YAAY,CAAC,CAAC;QACzE,CAAC;IACH,CAAC;IAGK,AAAN,KAAK,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UAAU,EACV,YAAY,CACb,CAAC;QAEF,MAAM,aAAa,GACjB,MAAM,IAAI,CAAC,gBAAgB,CAAC,OAAO,CACjC,YAAY,CAAC,cAAc,CAC5B,CAAC;QAEJ,IAAI,CAAC,aAAa,EAAE,CAAC;YACnB,MAAM,IAAI,qCAA4B,CACpC,qCAAqC,UAAU,GAAG,CACnD,CAAC;QACJ,CAAC;QAED,MAAM,cAAc,GAAG,MAAM,aAAa,CAAC,aAAa,CACtD,UAAU,EACV,EAAE,EACF,YAAY,CACb,CAAC;QAEF,IAAI,CAAC,cAAc,EAAE,CAAC;YACpB,MAAM,IAAI,0BAAiB,CAAC,2BAA2B,EAAE,GAAG,CAAC,CAAC;QAChE,CAAC;QAED,OAAO,MAAM,aAAa,CAAC,YAAY,CAAC,UAAU,EAAE,EAAE,EAAE,YAAY,CAAC,CAAC;IACxE,CAAC;
|
|
1
|
+
{"version":3,"file":"entity.controller.js","sourceRoot":"","sources":["../../../../src/module/meta/controller/entity.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAgBwB;AACxB,wFAA2E;AAE3E,gGAAoF;AACpF,4EAAuE;AACvE,qEAA0D;AAC1D,2DAA2D;AAI3D,6HAEmF;AAI5E,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAC3B,YACU,aAAgC,EAChC,gBAAkC,EAClC,mBAAwC,EAC/B,+BAAgE;QAHzE,kBAAa,GAAb,aAAa,CAAmB;QAChC,qBAAgB,GAAhB,gBAAgB,CAAkB;QAClC,wBAAmB,GAAnB,mBAAmB,CAAqB;QAC/B,oCAA+B,GAA/B,+BAA+B,CAAiC;IAEnF,CAAC;IAIK,AAAN,KAAK,CAAC,OAAO,CACE,EAAU,EAChB,GAA4B,EACb,UAAmB;QAEzC,MAAM,YAAY,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QAEvC,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,MAAM,IAAI,4BAAmB,CAC3B,2CAA2C,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ports.MetaController = MetaController;
|
|
62
62
|
__decorate([
|
|
63
63
|
(0, common_1.Post)('get-table-data'),
|
|
64
|
+
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
64
65
|
__param(0, (0, common_1.Query)('entity_type')),
|
|
65
66
|
__param(1, (0, common_1.Query)('list_type')),
|
|
66
67
|
__param(2, (0, common_1.Res)()),
|
|
@@ -71,6 +72,7 @@ __decorate([
|
|
|
71
72
|
], MetaController.prototype, "getTableMetaData", null);
|
|
72
73
|
__decorate([
|
|
73
74
|
(0, common_1.Post)('get-filter-data'),
|
|
75
|
+
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
74
76
|
__param(0, (0, common_1.Query)('entity_type')),
|
|
75
77
|
__param(1, (0, common_1.Res)()),
|
|
76
78
|
__param(2, (0, common_1.Req)()),
|
|
@@ -80,6 +82,7 @@ __decorate([
|
|
|
80
82
|
], MetaController.prototype, "getFilterData", null);
|
|
81
83
|
__decorate([
|
|
82
84
|
(0, common_1.Post)('populate'),
|
|
85
|
+
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
83
86
|
__param(0, (0, common_1.Query)('organization_id')),
|
|
84
87
|
__param(1, (0, common_1.Res)()),
|
|
85
88
|
__param(2, (0, common_1.Req)()),
|
|
@@ -89,6 +92,7 @@ __decorate([
|
|
|
89
92
|
], MetaController.prototype, "populateMetaData", null);
|
|
90
93
|
__decorate([
|
|
91
94
|
(0, common_1.Post)('operation-list'),
|
|
95
|
+
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
92
96
|
__param(0, (0, common_1.Req)()),
|
|
93
97
|
__metadata("design:type", Function),
|
|
94
98
|
__metadata("design:paramtypes", [Object]),
|
|
@@ -96,6 +100,7 @@ __decorate([
|
|
|
96
100
|
], MetaController.prototype, "getOperationList", null);
|
|
97
101
|
__decorate([
|
|
98
102
|
(0, common_1.Post)('getattributesoftypedate'),
|
|
103
|
+
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
99
104
|
__param(0, (0, common_1.Req)()),
|
|
100
105
|
__param(1, (0, common_1.Body)('entity_type')),
|
|
101
106
|
__metadata("design:type", Function),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.controller.js","sourceRoot":"","sources":["../../../../src/module/meta/controller/meta.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CASwB;AACxB,0EAAqE;AAErE,2DAA2D;AAC3D,4EAAuE;AACvE,4EAAuE;AAIhE,IAAM,cAAc,GAApB,MAAM,cAAc;IACzB,YACmB,kBAAsC,EACtC,mBAAwC,EACxC,YAAiC;QAFjC,uBAAkB,GAAlB,kBAAkB,CAAoB;QACtC,wBAAmB,GAAnB,mBAAmB,CAAqB;QACxC,iBAAY,GAAZ,YAAY,CAAqB;IACjD,CAAC;
|
|
1
|
+
{"version":3,"file":"meta.controller.js","sourceRoot":"","sources":["../../../../src/module/meta/controller/meta.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CASwB;AACxB,0EAAqE;AAErE,2DAA2D;AAC3D,4EAAuE;AACvE,4EAAuE;AAIhE,IAAM,cAAc,GAApB,MAAM,cAAc;IACzB,YACmB,kBAAsC,EACtC,mBAAwC,EACxC,YAAiC;QAFjC,uBAAkB,GAAlB,kBAAkB,CAAoB;QACtC,wBAAmB,GAAnB,mBAAmB,CAAqB;QACxC,iBAAY,GAAZ,YAAY,CAAqB;IACjD,CAAC;IAIE,AAAN,KAAK,CAAC,gBAAgB,CACE,UAAkB,EACpB,QAAgB,EAC7B,QAAkB,EAClB,GAA4B;QAEnC,MAAM,YAAY,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QACvC,MAAM,cAAc,GAClB,MAAM,IAAI,CAAC,kBAAkB,CAAC,0BAA0B,CACtD,UAAU,EACV,QAAQ,EACR,YAAY,CACb,CAAC;QACJ,OAAO,QAAQ,CAAC,MAAM,CAAC,mBAAU,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC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AAC;IAClB,IAAA,kBAAS,EAAC,wBAAY,CAAC;qCAGiB,yCAAkB;QACjB,2CAAmB;QAC1B,2CAAmB;GAJzC,cAAc,CAkF1B"}
|
|
@@ -61,6 +61,7 @@ let ViewMasterController = class ViewMasterController {
|
|
|
61
61
|
exports.ViewMasterController = ViewMasterController;
|
|
62
62
|
__decorate([
|
|
63
63
|
(0, common_1.Get)('viewMaster'),
|
|
64
|
+
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
64
65
|
__param(0, (0, common_1.Query)('entity_type')),
|
|
65
66
|
__param(1, (0, common_1.Query)('type')),
|
|
66
67
|
__param(2, (0, common_1.Query)('code')),
|
|
@@ -72,6 +73,7 @@ __decorate([
|
|
|
72
73
|
], ViewMasterController.prototype, "getEntityJsonByType", null);
|
|
73
74
|
__decorate([
|
|
74
75
|
(0, common_1.Get)('view_master/dropdown'),
|
|
76
|
+
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
75
77
|
__param(0, (0, common_1.Req)()),
|
|
76
78
|
__param(1, (0, common_1.Query)()),
|
|
77
79
|
__param(2, (0, common_1.Res)()),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-master.controller.js","sourceRoot":"","sources":["../../../../src/module/meta/controller/view-master.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"view-master.controller.js","sourceRoot":"","sources":["../../../../src/module/meta/controller/view-master.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA2G;AAC3G,2DAA2D;AAE3D,wEAAmE;AAI5D,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC/B,YACgD,UAA6B;QAA7B,eAAU,GAAV,UAAU,CAAmB;IAE7E,CAAC;IAIK,AAAN,KAAK,CAAC,mBAAmB,CACD,UAAkB,EACzB,IAAY,EACZ,IAAY,EACpB,GAAa,EACb,GAA4B;QAEnC,MAAM,YAAY,GAAG,GAAG,CAAC,IAAI,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,UAAU,EACV,YAAY,CACb,CAAC;QAEF,OAAO,GAAG,CAAC,MAAM,CAAC,mBAAU,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC;YACpC,IAAI,EAAE,MAAM;SACb,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AAvEY,oDAAoB;AAQzB;IAFL,IAAA,YAAG,EAAC,YAAY,CAAC;IACjB,IAAA,iBAAQ,EAAC,mBAAU,CAAC,EAAE,CAAC;IAErB,WAAA,IAAA,cAAK,EAAC,aAAa,CAAC,CAAA;IACpB,WAAA,IAAA,cAAK,EAAC,MAAM,CAAC,CAAA;IACb,WAAA,IAAA,cAAK,EAAC,MAAM,CAAC,CAAA;IACb,WAAA,IAAA,YAAG,GAAE,CAAA;IACL,WAAA,IAAA,YAAG,GAAE,CAAA;;;;+DA8BP;AAIK;IAFL,IAAA,YAAG,EAAC,sBAAsB,CAAC;IAC3B,IAAA,iBAAQ,EAAC,mBAAU,CAAC,EAAE,CAAC;IAErB,WAAA,IAAA,YAAG,GAAE,CAAA;IACL,WAAA,IAAA,cAAK,GAAE,CAAA;IACP,WAAA,IAAA,YAAG,GAAE,CAAA;;;;2DAoBP;+BAtEU,oBAAoB;IAFhC,IAAA,mBAAU,EAAC,QAAQ,CAAC;IACpB,IAAA,kBAAS,EAAC,wBAAY,CAAC;IAGnB,WAAA,IAAA,eAAM,EAAC,mBAAmB,CAAC,CAAA;qCAA8B,uCAAiB;GAFlE,oBAAoB,CAuEhC"}
|
|
@@ -27,7 +27,6 @@ const entity_table_repository_1 = require("./repository/entity-table.repository"
|
|
|
27
27
|
const entity_table_service_1 = require("./service/entity-table.service");
|
|
28
28
|
const entity_table_column_repository_1 = require("./repository/entity-table-column.repository");
|
|
29
29
|
const entity_table_column_service_1 = require("./service/entity-table-column.service");
|
|
30
|
-
const entity_list_service_1 = require("./service/entity-list.service");
|
|
31
30
|
const media_data_entity_1 = require("./entity/media-data.entity");
|
|
32
31
|
const media_data_service_1 = require("./service/media-data.service");
|
|
33
32
|
const media_data_repository_1 = require("./repository/media-data.repository");
|
|
@@ -105,7 +104,6 @@ exports.EntityModule = EntityModule = __decorate([
|
|
|
105
104
|
populate_meta_service_1.PopulateMetaService,
|
|
106
105
|
entity_table_column_repository_1.EntityTableColumnRepository,
|
|
107
106
|
entity_table_column_service_1.EntityTableColumnService,
|
|
108
|
-
entity_list_service_1.EntityListService,
|
|
109
107
|
media_data_repository_1.MediaDataRepository,
|
|
110
108
|
media_data_service_1.MediaDataService,
|
|
111
109
|
attribute_master_service_1.AttributeMasterService,
|
|
@@ -129,7 +127,6 @@ exports.EntityModule = EntityModule = __decorate([
|
|
|
129
127
|
entity_master_service_1.EntityMasterService,
|
|
130
128
|
entity_service_impl_service_1.EntityServiceImpl,
|
|
131
129
|
preference_service_1.PreferenceService,
|
|
132
|
-
entity_list_service_1.EntityListService,
|
|
133
130
|
entity_validation_service_1.EntityValidationService,
|
|
134
131
|
entity_table_service_1.EntityTableService,
|
|
135
132
|
populate_meta_service_1.PopulateMetaService,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity.module.js","sourceRoot":"","sources":["../../../src/module/meta/entity.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAoD;AACpD,2EAAsE;AACtE,uFAA0E;AAC1E,sEAAkE;AAClE,6CAAgD;AAChD,2DAAuD;AACvD,wEAA6D;AAC7D,8EAAmE;AACnE,0FAAqF;AACrF,qEAAiE;AACjE,8EAA0E;AAC1E,kEAA8D;AAC9D,8EAA0E;AAC1E,qEAAiE;AACjE,sEAA2D;AAC3D,oFAAwE;AACxE,kFAA6E;AAC7E,yEAAoE;AACpE,gGAA0F;AAC1F,uFAAiF;AACjF,
|
|
1
|
+
{"version":3,"file":"entity.module.js","sourceRoot":"","sources":["../../../src/module/meta/entity.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAoD;AACpD,2EAAsE;AACtE,uFAA0E;AAC1E,sEAAkE;AAClE,6CAAgD;AAChD,2DAAuD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qDAAwB;SAEzB;QACD,SAAS,EAAE;YACT,2CAAmB;YACnB,+CAAiB;YACjB,6CAAoB;YACpB,EAAE,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,8BAAa,EAAE;YACrD,uDAAyB;YACzB,2DAAsB;YACtB,sCAAiB;YACjB,4CAAoB;YACpB,8BAAa;YACb,+CAAqB;YACrB,yCAAkB;YAClB,2CAAmB;YACnB,4DAA2B;YAC3B,sDAAwB;YACxB,2CAAmB;YACnB,qCAAgB;YAChB,iDAAsB;YACtB,qDAAmB;YAGnB,6CAAoB;YACpB,mDAAuB;YACvB,EAAE,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,uCAAiB,EAAE;YAC7D,EAAE,OAAO,EAAE,uBAAuB,EAAE,QAAQ,EAAE,+CAAqB,EAAE;YACrE;gBACE,OAAO,EAAE,2BAA2B;gBACpC,QAAQ,EAAE,yDAAyB;aACpC;YAID,wDAAyB;YACzB,4CAAoB;YACpB,qCAAgB;YAChB,kCAAe;YACf,iDAAsB;YACtB,qDAAwB;SACzB;QACD,OAAO,EAAE;YACP,2CAAmB;YACnB,+CAAiB;YACjB,sCAAiB;YACjB,mDAAuB;YACvB,yCAAkB;YAClB,2CAAmB;YACnB,sDAAwB;YACxB,qCAAgB;YAChB,qDAAmB;YACnB,2DAAsB;YAGtB,mBAAmB;YACnB,iDAAsB;YAGtB,qCAAgB;YAChB,8BAAa;YACb,kCAAe;YACf,6CAAoB;YACpB,eAAe;YACf,uBAAuB;SACxB;QACD,WAAW,EAAE;YACX,oCAAgB;YAChB,oCAAgB;YAChB,kCAAe;YACf,6CAAoB;YACpB,gCAAc;YACd,2CAAmB;YACnB,uDAAyB;YACzB,mDAAuB;YACvB,qDAAwB;YACxB,iDAAsB;YACtB,iDAAsB;SACvB;KACF,CAAC;GACW,YAAY,CAAG"}
|
|
@@ -101,18 +101,18 @@ let AttributeMasterRepository = class AttributeMasterRepository {
|
|
|
101
101
|
return null;
|
|
102
102
|
}
|
|
103
103
|
async checkIfColumnExists(tableName, columnName) {
|
|
104
|
-
const result = await this.entityManger.query(`
|
|
105
|
-
SELECT column_name
|
|
106
|
-
FROM information_schema.columns
|
|
107
|
-
WHERE table_name = $1
|
|
108
|
-
AND column_name = $2
|
|
104
|
+
const result = await this.entityManger.query(`
|
|
105
|
+
SELECT column_name
|
|
106
|
+
FROM information_schema.columns
|
|
107
|
+
WHERE table_name = $1
|
|
108
|
+
AND column_name = $2
|
|
109
109
|
`, [tableName, columnName]);
|
|
110
110
|
return result.length > 0;
|
|
111
111
|
}
|
|
112
112
|
async addColumnToTable(tableName, columnName, columnType) {
|
|
113
|
-
const alterQuery = `
|
|
114
|
-
ALTER TABLE ${this.schema}.${tableName}
|
|
115
|
-
ADD COLUMN IF NOT EXISTS ${columnName} ${columnType}
|
|
113
|
+
const alterQuery = `
|
|
114
|
+
ALTER TABLE ${this.schema}.${tableName}
|
|
115
|
+
ADD COLUMN IF NOT EXISTS ${columnName} ${columnType}
|
|
116
116
|
`;
|
|
117
117
|
await this.entityManger.query(alterQuery);
|
|
118
118
|
}
|
|
@@ -34,7 +34,7 @@ let EntityMasterRepository = class EntityMasterRepository {
|
|
|
34
34
|
if (data) {
|
|
35
35
|
const listMasterItemsRepo = this.reflectionHelper.getRepoService('ListMasterItems');
|
|
36
36
|
let listMasterItemsata = await listMasterItemsRepo.findOne({
|
|
37
|
-
where: { id: data.status }
|
|
37
|
+
where: { id: data.status },
|
|
38
38
|
});
|
|
39
39
|
data.status = listMasterItemsata?.name;
|
|
40
40
|
}
|
|
@@ -84,14 +84,26 @@ let EntityMasterRepository = class EntityMasterRepository {
|
|
|
84
84
|
where: {
|
|
85
85
|
mapped_entity_type: entity_type,
|
|
86
86
|
data_type: 'DATE',
|
|
87
|
-
enterprise_id
|
|
88
|
-
}
|
|
87
|
+
enterprise_id,
|
|
88
|
+
},
|
|
89
89
|
});
|
|
90
90
|
return attributes.map((attr) => ({
|
|
91
91
|
label: attr.name,
|
|
92
92
|
value: attr.attribute_key,
|
|
93
93
|
}));
|
|
94
94
|
}
|
|
95
|
+
async findByEnterpriseIdAndAppCode(enterprise_id, appcode) {
|
|
96
|
+
let where = {
|
|
97
|
+
enterprise_id,
|
|
98
|
+
};
|
|
99
|
+
if (appcode) {
|
|
100
|
+
where['appcode'] = appcode;
|
|
101
|
+
}
|
|
102
|
+
return await this.entityMasterRepository.find({
|
|
103
|
+
where,
|
|
104
|
+
select: ['name', 'mapped_entity_type']
|
|
105
|
+
});
|
|
106
|
+
}
|
|
95
107
|
};
|
|
96
108
|
exports.EntityMasterRepository = EntityMasterRepository;
|
|
97
109
|
exports.EntityMasterRepository = EntityMasterRepository = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-master.repository.js","sourceRoot":"","sources":["../../../../src/module/meta/repository/entity-master.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAoD;AACpD,yEAA8D;AAC9D,6CAAmD;AACnD,qCAAqC;AACrC,sFAAsF;AACtF,6EAAkE;AAClE,+EAAoE;AACpE,gGAAoF;AAG7E,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IACjC,YAEmB,sBAAgD,EAEhD,iBAAoC,EAEpC,kBAA8C,EAE9C,yBAAsD,EACtD,gBAAkC;QAPlC,2BAAsB,GAAtB,sBAAsB,CAA0B;QAEhD,sBAAiB,GAAjB,iBAAiB,CAAmB;QAEpC,uBAAkB,GAAlB,kBAAkB,CAA4B;QAE9C,8BAAyB,GAAzB,yBAAyB,CAA6B;QACtD,qBAAgB,GAAhB,gBAAgB,CAAkB;IAErD,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,EAAU;QAC5B,IAAI,IAAI,GAAG,MAAM,IAAI,CAAC,sBAAsB,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;QACxE,IAAI,IAAI,EAAE,CAAC;YACT,MAAM,mBAAmB,GAAG,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC;YACpF,IAAI,kBAAkB,GAAG,MAAM,mBAAmB,CAAC,OAAO,CAAC;gBACzD,KAAK,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE;aAC3B,CAAC,
|
|
1
|
+
{"version":3,"file":"entity-master.repository.js","sourceRoot":"","sources":["../../../../src/module/meta/repository/entity-master.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAoD;AACpD,yEAA8D;AAC9D,6CAAmD;AACnD,qCAAqC;AACrC,sFAAsF;AACtF,6EAAkE;AAClE,+EAAoE;AACpE,gGAAoF;AAG7E,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IACjC,YAEmB,sBAAgD,EAEhD,iBAAoC,EAEpC,kBAA8C,EAE9C,yBAAsD,EACtD,gBAAkC;QAPlC,2BAAsB,GAAtB,sBAAsB,CAA0B;QAEhD,sBAAiB,GAAjB,iBAAiB,CAAmB;QAEpC,uBAAkB,GAAlB,kBAAkB,CAA4B;QAE9C,8BAAyB,GAAzB,yBAAyB,CAA6B;QACtD,qBAAgB,GAAhB,gBAAgB,CAAkB;IAErD,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,EAAU;QAC5B,IAAI,IAAI,GAAG,MAAM,IAAI,CAAC,sBAAsB,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;QACxE,IAAI,IAAI,EAAE,CAAC;YACT,MAAM,mBAAmB,GAAG,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC;YACpF,IAAI,kBAAkB,GAAG,MAAM,mBAAmB,CAAC,OAAO,CAAC;gBACzD,KAAK,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE;aAC3B,CAAC,CAAC;YAEH,IAAI,CAAC,MAAM,GAAG,kBAAkB,EAAE,IAAI,CAAC;QACzC,CAAC;QACD,OAAO,IA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ACZ,KAAK,CAAC,SAAS,CAAC,GAAG,OAAO,CAAC;QAC7B,CAAC;QACD,OAAO,MAAM,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC;YAC5C,KAAK;YACL,MAAM,EAAE,CAAC,MAAM,EAAE,oBAAoB,CAAC;SACvC,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AA7GY,wDAAsB;iCAAtB,sBAAsB;IADlC,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,0BAAgB,EAAC,mCAAY,CAAC,CAAA;IAE9B,WAAA,IAAA,eAAM,EAAC,mBAAmB,CAAC,CAAA;IAE3B,WAAA,IAAA,0BAAgB,EAAC,uCAAc,CAAC,CAAA;IAEhC,WAAA,IAAA,0BAAgB,EAAC,yCAAe,CAAC,CAAA;qCALO,oBAAU;QAEf,uCAAiB;QAEhB,oBAAU;QAEH,oBAAU;QACnB,4CAAgB;GAV1C,sBAAsB,CA6GlC"}
|
|
@@ -3,5 +3,5 @@ import { Repository } from 'typeorm';
|
|
|
3
3
|
export declare class EntityTableColumnRepository {
|
|
4
4
|
private entityTableColumnRepository;
|
|
5
5
|
constructor(entityTableColumnRepository: Repository<EntityTableColumn>);
|
|
6
|
-
findByParentIdAndParentType(parentId: number, parentType: string,
|
|
6
|
+
findByParentIdAndParentType(parentId: number, parentType: string, enterprise_id: number, isVisible?: boolean): Promise<EntityTableColumn[]>;
|
|
7
7
|
}
|
|
@@ -21,13 +21,13 @@ let EntityTableColumnRepository = class EntityTableColumnRepository {
|
|
|
21
21
|
constructor(entityTableColumnRepository) {
|
|
22
22
|
this.entityTableColumnRepository = entityTableColumnRepository;
|
|
23
23
|
}
|
|
24
|
-
async findByParentIdAndParentType(parentId, parentType,
|
|
24
|
+
async findByParentIdAndParentType(parentId, parentType, enterprise_id, isVisible) {
|
|
25
25
|
if (isVisible) {
|
|
26
26
|
return await this.entityTableColumnRepository.find({
|
|
27
27
|
where: {
|
|
28
28
|
parent_id: parentId,
|
|
29
29
|
parent_type: parentType,
|
|
30
|
-
|
|
30
|
+
enterprise_id: enterprise_id,
|
|
31
31
|
},
|
|
32
32
|
order: { col_position: 'ASC' },
|
|
33
33
|
});
|
|
@@ -37,7 +37,7 @@ let EntityTableColumnRepository = class EntityTableColumnRepository {
|
|
|
37
37
|
parent_id: parentId,
|
|
38
38
|
parent_type: parentType,
|
|
39
39
|
visible: '1',
|
|
40
|
-
|
|
40
|
+
enterprise_id: enterprise_id,
|
|
41
41
|
},
|
|
42
42
|
order: { col_position: 'ASC' },
|
|
43
43
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-table-column.repository.js","sourceRoot":"","sources":["../../../../src/module/meta/repository/entity-table-column.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6CAAmD;AACnD,qFAAyE;AACzE,qCAAqC;AAG9B,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;IACtC,YAEU,2BAA0D;QAA1D,gCAA2B,GAA3B,2BAA2B,CAA+B;IACjE,CAAC;IAEJ,KAAK,CAAC,2BAA2B,CAC/B,QAAgB,EAChB,UAAkB,EAClB,
|
|
1
|
+
{"version":3,"file":"entity-table-column.repository.js","sourceRoot":"","sources":["../../../../src/module/meta/repository/entity-table-column.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6CAAmD;AACnD,qFAAyE;AACzE,qCAAqC;AAG9B,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;IACtC,YAEU,2BAA0D;QAA1D,gCAA2B,GAA3B,2BAA2B,CAA+B;IACjE,CAAC;IAEJ,KAAK,CAAC,2BAA2B,CAC/B,QAAgB,EAChB,UAAkB,EAClB,aAAqB,EACrB,SAAmB;QAEnB,IAAI,SAAS,EAAE,CAAC;YACd,OAAO,MAAM,IAAI,CAAC,2BAA2B,CAAC,IAAI,CAAC;gBACjD,KAAK,EAAE;oBACL,SAAS,EAAE,QAAQ;oBACnB,WAAW,EAAE,UAAU;oBACvB,aAAa,EAAE,aAAa;iBAC7B;gBACD,KAAK,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE;aAC/B,CAAC,CAAC;QACL,CAAC;QACD,OAAO,MAAM,IAAI,CAAC,2BAA2B,CAAC,IAAI,CAAC;YACjD,KAAK,EAAE;gBACL,SAAS,EAAE,QAAQ;gBACnB,WAAW,EAAE,UAAU;gBACvB,OAAO,EAAE,GAAG;gBACZ,aAAa,EAAE,aAAa;aAC7B;YACD,KAAK,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE;SAC/B,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AAhCY,kEAA2B;sCAA3B,2BAA2B;IADvC,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,0BAAgB,EAAC,8CAAiB,CAAC,CAAA;qCACC,oBAAU;GAHtC,2BAA2B,CAgCvC"}
|
|
@@ -4,6 +4,6 @@ export declare class EntityTableRepository {
|
|
|
4
4
|
private entityTableRepository;
|
|
5
5
|
constructor(entityTableRepository: Repository<EntityTable>);
|
|
6
6
|
findByEntityTypeAndListType(entityType: string, listType: string): Promise<EntityTable | null>;
|
|
7
|
-
findByMappedEntityType(mappedEntityType: string,
|
|
8
|
-
findByEntityTypeAndListTypeAndDisplayType(entityType: string, listType: string, displayType: string,
|
|
7
|
+
findByMappedEntityType(mappedEntityType: string, enterprise_id: number): Promise<EntityTable | null>;
|
|
8
|
+
findByEntityTypeAndListTypeAndDisplayType(entityType: string, listType: string, displayType: string, enterprise_id: number): Promise<EntityTable | null>;
|
|
9
9
|
}
|
|
@@ -27,21 +27,21 @@ let EntityTableRepository = class EntityTableRepository {
|
|
|
27
27
|
});
|
|
28
28
|
return temp;
|
|
29
29
|
}
|
|
30
|
-
async findByMappedEntityType(mappedEntityType,
|
|
30
|
+
async findByMappedEntityType(mappedEntityType, enterprise_id) {
|
|
31
31
|
return await this.entityTableRepository.findOne({
|
|
32
32
|
where: {
|
|
33
33
|
mapped_entity_type: mappedEntityType,
|
|
34
34
|
display_type: 'LIST',
|
|
35
|
-
|
|
35
|
+
enterprise_id: enterprise_id,
|
|
36
36
|
},
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
|
-
async findByEntityTypeAndListTypeAndDisplayType(entityType, listType, displayType,
|
|
39
|
+
async findByEntityTypeAndListTypeAndDisplayType(entityType, listType, displayType, enterprise_id) {
|
|
40
40
|
const whereCondition = {
|
|
41
41
|
mapped_entity_type: entityType,
|
|
42
42
|
list_type: listType,
|
|
43
43
|
display_type: displayType,
|
|
44
|
-
|
|
44
|
+
enterprise_id: enterprise_id,
|
|
45
45
|
};
|
|
46
46
|
return await this.entityTableRepository.findOne({
|
|
47
47
|
where: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-table.repository.js","sourceRoot":"","sources":["../../../../src/module/meta/repository/entity-table.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6CAAmD;AACnD,qCAAqC;AACrC,uEAA4D;AAGrD,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAChC,YAEU,qBAA8C;QAA9C,0BAAqB,GAArB,qBAAqB,CAAyB;IACrD,CAAC;IAEJ,KAAK,CAAC,2BAA2B,CAAC,UAAkB,EAAE,QAAgB;QACpE,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,OAAO,CAAC;YACpD,KAAK,EAAE,EAAE,kBAAkB,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE;SAC/D,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IACd,CAAC;IAED,KAAK,CAAC,sBAAsB,CAC1B,gBAAwB,EACxB,
|
|
1
|
+
{"version":3,"file":"entity-table.repository.js","sourceRoot":"","sources":["../../../../src/module/meta/repository/entity-table.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6CAAmD;AACnD,qCAAqC;AACrC,uEAA4D;AAGrD,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAChC,YAEU,qBAA8C;QAA9C,0BAAqB,GAArB,qBAAqB,CAAyB;IACrD,CAAC;IAEJ,KAAK,CAAC,2BAA2B,CAAC,UAAkB,EAAE,QAAgB;QACpE,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,OAAO,CAAC;YACpD,KAAK,EAAE,EAAE,kBAAkB,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE;SAC/D,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IACd,CAAC;IAED,KAAK,CAAC,sBAAsB,CAC1B,gBAAwB,EACxB,aAAqB;QAErB,OAAO,MAAM,IAAI,CAAC,qBAAqB,CAAC,OAAO,CAAC;YAC9C,KAAK,EAAE;gBACL,kBAAkB,EAAE,gBAAgB;gBACpC,YAAY,EAAE,MAAM;gBACpB,aAAa,EAAE,aAAa;aAC7B;SACF,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,yCAAyC,CAC7C,UAAkB,EAClB,QAAgB,EAChB,WAAmB,EACnB,aAAqB;QAGrB,MAAM,cAAc,GAAQ;YAC1B,kBAAkB,EAAE,UAAU;YAC9B,SAAS,EAAE,QAAQ;YACnB,YAAY,EAAE,WAAW;YACzB,aAAa,EAAE,aAAa;SAC7B,CAAC;QAEF,OAAO,MAAM,IAAI,CAAC,qBAAqB,CAAC,OAAO,CAAC;YAC9C,KAAK,EAAE;gBACL,GAAG,cAAc;aAClB;SACF,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AA9CY,sDAAqB;gCAArB,qBAAqB;IADjC,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,0BAAgB,EAAC,iCAAW,CAAC,CAAA;qCACC,oBAAU;GAHhC,qBAAqB,CA8CjC"}
|
|
@@ -4,7 +4,7 @@ export declare class ViewMaterRespository {
|
|
|
4
4
|
private readonly viewMasterRepository;
|
|
5
5
|
constructor(viewMasterRepository: Repository<ViewMaster>);
|
|
6
6
|
getEntityJson(entityType: string, type: string, loggedInUser: any, code?: string): Promise<ViewMaster | null>;
|
|
7
|
-
findByEntityType(entityType: string,
|
|
7
|
+
findByEntityType(entityType: string, enterprise_id: number): Promise<{
|
|
8
8
|
label: string;
|
|
9
9
|
value: number;
|
|
10
10
|
}[]>;
|
|
@@ -30,11 +30,11 @@ let ViewMaterRespository = class ViewMaterRespository {
|
|
|
30
30
|
});
|
|
31
31
|
return viewMaster;
|
|
32
32
|
}
|
|
33
|
-
async findByEntityType(entityType,
|
|
33
|
+
async findByEntityType(entityType, enterprise_id) {
|
|
34
34
|
const viewMasters = await this.viewMasterRepository.find({
|
|
35
35
|
where: {
|
|
36
36
|
mapped_entity_type: entityType,
|
|
37
|
-
|
|
37
|
+
enterprise_id: enterprise_id,
|
|
38
38
|
},
|
|
39
39
|
});
|
|
40
40
|
return viewMasters.map((vm) => ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-master.repository.js","sourceRoot":"","sources":["../../../../src/module/meta/repository/view-master.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6CAAmD;AACnD,qCAAiD;AACjD,qEAA0D;AAGnD,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC/B,YAEmB,oBAA4C;QAA5C,yBAAoB,GAApB,oBAAoB,CAAwB;IAC5D,CAAC;IAEJ,KAAK,CAAC,aAAa,CACjB,UAAkB,EAClB,IAAY,EACZ,YAAiB,EACjB,IAAa;QAEb,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,oBAAoB,CAAC,SAAS,CAAC;YAC3D,kBAAkB,EAAE,UAAU;YAC9B,IAAI,EAAE,IAAI;YACV,eAAe,EAAE,YAAY,CAAC,eAAe;YAC7C,IAAI,EAAE,IAAI;SACX,CAAC,CAAC;QAEH,OAAO,UAAU,CAAC;IACpB,CAAC;IAED,KAAK,CAAC,gBAAgB,CAAC,UAAkB,EAAE,
|
|
1
|
+
{"version":3,"file":"view-master.repository.js","sourceRoot":"","sources":["../../../../src/module/meta/repository/view-master.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6CAAmD;AACnD,qCAAiD;AACjD,qEAA0D;AAGnD,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC/B,YAEmB,oBAA4C;QAA5C,yBAAoB,GAApB,oBAAoB,CAAwB;IAC5D,CAAC;IAEJ,KAAK,CAAC,aAAa,CACjB,UAAkB,EAClB,IAAY,EACZ,YAAiB,EACjB,IAAa;QAEb,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,oBAAoB,CAAC,SAAS,CAAC;YAC3D,kBAAkB,EAAE,UAAU;YAC9B,IAAI,EAAE,IAAI;YACV,eAAe,EAAE,YAAY,CAAC,eAAe;YAC7C,IAAI,EAAE,IAAI;SACX,CAAC,CAAC;QAEH,OAAO,UAAU,CAAC;IACpB,CAAC;IAED,KAAK,CAAC,gBAAgB,CAAC,UAAkB,EAAE,aAAqB;QAC9D,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC;YACvD,KAAK,EAAE;gBACL,kBAAkB,EAAE,UAAU;gBAC9B,aAAa,EAAE,aAAa;aAC7B;SACF,CAAC,CAAC;QAEH,OAAO,WAAW,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;YAC9B,KAAK,EAAE,EAAE,CAAC,IAAI;YACd,KAAK,EAAE,EAAE,CAAC,EAAE;SACb,CAAC,CAAC,CAAC;IACN,CAAC;CACF,CAAA;AAnCY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,0BAAgB,EAAC,+BAAU,CAAC,CAAA;qCACU,oBAAU;GAHxC,oBAAoB,CAmChC"}
|
|
@@ -58,7 +58,8 @@ let EntityDynamicService = class EntityDynamicService {
|
|
|
58
58
|
entityData.status = statusList[0]?.id;
|
|
59
59
|
const entityMaster = await this.entityMasterRepo.getEntityByMappedEntityType(entityType, loggedInUser.enterprise_id);
|
|
60
60
|
if (!entityData.code && entityData.entity_type && entityMaster) {
|
|
61
|
-
const result = this.entityManager.query(`SELECT MAX(id) as seq_no
|
|
61
|
+
const result = this.entityManager.query(`SELECT MAX(id) as seq_no
|
|
62
|
+
FROM ${this.schema}.${entityMaster.db_table_name}`);
|
|
62
63
|
let maxSeq = Number(result[0]?.max_seq_no) || 0;
|
|
63
64
|
maxSeq++;
|
|
64
65
|
entityData.code = `${entityData.entity_type}${maxSeq}`;
|
|
@@ -101,9 +102,9 @@ let EntityDynamicService = class EntityDynamicService {
|
|
|
101
102
|
}
|
|
102
103
|
const colList = columns.map((c) => `"${c}"`).join(', ');
|
|
103
104
|
const placeholderList = placeholders.join(', ');
|
|
104
|
-
const sql = `
|
|
105
|
-
INSERT INTO ${this.schema}.${tableName} (${colList})
|
|
106
|
-
VALUES (${placeholderList}) RETURNING id
|
|
105
|
+
const sql = `
|
|
106
|
+
INSERT INTO ${this.schema}.${tableName} (${colList})
|
|
107
|
+
VALUES (${placeholderList}) RETURNING id
|
|
107
108
|
`;
|
|
108
109
|
const result = await this.entityManager.query(sql, values);
|
|
109
110
|
return result[0];
|
|
@@ -163,7 +164,7 @@ let EntityDynamicService = class EntityDynamicService {
|
|
|
163
164
|
const relations = await relationRepo.find({
|
|
164
165
|
where: {
|
|
165
166
|
source_entity_type: entityType,
|
|
166
|
-
|
|
167
|
+
enterprise_id: loggedInUser.enterprise_id,
|
|
167
168
|
},
|
|
168
169
|
});
|
|
169
170
|
const targetTypes = relations.map((r) => r.target_entity_type);
|
|
@@ -320,10 +321,10 @@ let EntityDynamicService = class EntityDynamicService {
|
|
|
320
321
|
}
|
|
321
322
|
const idPlaceholder = `$${idx}`;
|
|
322
323
|
values.push(id);
|
|
323
|
-
const updateQuery = `
|
|
324
|
-
UPDATE ${this.schema}.${tableName}
|
|
325
|
-
SET ${updates.join(', ')}
|
|
326
|
-
WHERE id = ${idPlaceholder}
|
|
324
|
+
const updateQuery = `
|
|
325
|
+
UPDATE ${this.schema}.${tableName}
|
|
326
|
+
SET ${updates.join(', ')}
|
|
327
|
+
WHERE id = ${idPlaceholder}
|
|
327
328
|
`;
|
|
328
329
|
return await this.entityManager.query(updateQuery, values);
|
|
329
330
|
}
|
|
@@ -335,8 +336,8 @@ let EntityDynamicService = class EntityDynamicService {
|
|
|
335
336
|
const columns = validAttributes
|
|
336
337
|
.map((attr) => `${attr.attribute_key}`)
|
|
337
338
|
.join(', ');
|
|
338
|
-
const selectQuery = `SELECT ${columns}
|
|
339
|
-
FROM ${dataSource}
|
|
339
|
+
const selectQuery = `SELECT ${columns}
|
|
340
|
+
FROM ${dataSource}
|
|
340
341
|
WHERE id = $1`;
|
|
341
342
|
const result = await this.entityManager.query(selectQuery, [id]);
|
|
342
343
|
if (!result.length)
|
|
@@ -365,8 +366,8 @@ let EntityDynamicService = class EntityDynamicService {
|
|
|
365
366
|
return null;
|
|
366
367
|
const validAttributes = await this.getAttributeCodes(entityType, organizationId);
|
|
367
368
|
const columns = validAttributes.map(attr => `t.${attr.attribute_key}`);
|
|
368
|
-
const selectQuery = `SELECT ${columns}
|
|
369
|
-
FROM ${this.schema}.${entityMaster.db_table_name} t
|
|
369
|
+
const selectQuery = `SELECT ${columns}
|
|
370
|
+
FROM ${this.schema}.${entityMaster.db_table_name} t
|
|
370
371
|
WHERE id = $1`;
|
|
371
372
|
const result = await this.entityManager.query(selectQuery, [id]);
|
|
372
373
|
if (!result.length)
|
|
@@ -428,23 +429,19 @@ let EntityDynamicService = class EntityDynamicService {
|
|
|
428
429
|
async deleteEntity(entityType, id, loggedInUser) {
|
|
429
430
|
const enterprise_id = loggedInUser.enterprise_id;
|
|
430
431
|
const tableName = await this.getTableName(entityType, enterprise_id);
|
|
431
|
-
const deleteQuery = `DELETE
|
|
432
|
-
FROM ${this.schema}.${tableName}
|
|
432
|
+
const deleteQuery = `DELETE
|
|
433
|
+
FROM ${this.schema}.${tableName}
|
|
433
434
|
WHERE id = $1`;
|
|
434
435
|
const result = await this.entityManager.query(deleteQuery, [id]);
|
|
435
436
|
return result;
|
|
436
437
|
}
|
|
437
438
|
async getEntitiesDropdownList(loggedInUser, appcode) {
|
|
438
|
-
const
|
|
439
|
-
let
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
query += ` AND appcode = $2`;
|
|
445
|
-
params.push(appcode);
|
|
446
|
-
}
|
|
447
|
-
const dropdown = await this.entityManager.query(query, params);
|
|
439
|
+
const entityMasters = await this.entityMasterRepo.findByEnterpriseIdAndAppCode(loggedInUser.enterprise_id, appcode);
|
|
440
|
+
let dropdown = [];
|
|
441
|
+
entityMasters.map(entityMaster => dropdown.push({
|
|
442
|
+
label: entityMaster.name,
|
|
443
|
+
value: entityMaster.mapped_entity_type,
|
|
444
|
+
}));
|
|
448
445
|
return dropdown;
|
|
449
446
|
}
|
|
450
447
|
async getCode(entityType, loggedInUser) {
|
|
@@ -454,8 +451,8 @@ let EntityDynamicService = class EntityDynamicService {
|
|
|
454
451
|
throw new Error(`Entity type '${entityType}' not found in frm_entity_master for enterprise '${enterprise_id}'`);
|
|
455
452
|
}
|
|
456
453
|
const tableName = result.db_table_name;
|
|
457
|
-
const seqResult = await this.entityManager.query(`SELECT MAX(id) AS max_seq_no
|
|
458
|
-
FROM ${tableName}
|
|
454
|
+
const seqResult = await this.entityManager.query(`SELECT MAX(id) AS max_seq_no
|
|
455
|
+
FROM ${tableName}
|
|
459
456
|
WHERE entity_type = $1`, [entityType]);
|
|
460
457
|
let maxSeqNo = seqResult?.[0]?.max_seq_no
|
|
461
458
|
? Number(seqResult[0].max_seq_no)
|