rez_core 5.0.211 → 6.1.1
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/.prettierrc +3 -3
- package/README.md +99 -99
- package/dist/config/database.config.js +1 -1
- package/dist/config/database.config.js.map +1 -1
- package/dist/migrations/1732612800000-AddEntityJsonGinIndex.d.ts +6 -0
- package/dist/migrations/1732612800000-AddEntityJsonGinIndex.js +32 -0
- package/dist/migrations/1732612800000-AddEntityJsonGinIndex.js.map +1 -0
- package/dist/module/auth/guards/role.guard.js +3 -3
- package/dist/module/entity_json/controller/entity_json.controller.d.ts +2 -9
- package/dist/module/entity_json/controller/entity_json.controller.js.map +1 -1
- package/dist/module/entity_json/entity/entityJson.entity.d.ts +2 -1
- package/dist/module/entity_json/entity/entityJson.entity.js +5 -1
- package/dist/module/entity_json/entity/entityJson.entity.js.map +1 -1
- package/dist/module/entity_json/entity_json.module.js +7 -2
- package/dist/module/entity_json/entity_json.module.js.map +1 -1
- package/dist/module/entity_json/service/entity_json.service.d.ts +5 -12
- package/dist/module/entity_json/service/entity_json.service.js +111 -29
- package/dist/module/entity_json/service/entity_json.service.js.map +1 -1
- package/dist/module/filter/controller/filter.controller.d.ts +12 -0
- package/dist/module/filter/controller/filter.controller.js +1 -1
- package/dist/module/filter/controller/filter.controller.js.map +1 -1
- package/dist/module/filter/filter.module.js +11 -2
- package/dist/module/filter/filter.module.js.map +1 -1
- package/dist/module/filter/service/filter.service.d.ts +38 -2
- package/dist/module/filter/service/filter.service.js +61 -68
- package/dist/module/filter/service/filter.service.js.map +1 -1
- package/dist/module/filter/service/flatjson-filter.service.d.ts +32 -0
- package/dist/module/filter/service/flatjson-filter.service.js +632 -0
- package/dist/module/filter/service/flatjson-filter.service.js.map +1 -0
- package/dist/module/filter/service/saved-filter.service.d.ts +3 -2
- package/dist/module/filter/service/saved-filter.service.js +14 -18
- package/dist/module/filter/service/saved-filter.service.js.map +1 -1
- package/dist/module/integration/examples/usage.example.js +9 -9
- package/dist/module/linked_attributes/controller/linked_attributes.controller.d.ts +19 -0
- package/dist/module/linked_attributes/controller/linked_attributes.controller.js +77 -0
- package/dist/module/linked_attributes/controller/linked_attributes.controller.js.map +1 -1
- package/dist/module/linked_attributes/dto/create-linked-attribute-smart.dto.d.ts +13 -0
- package/dist/module/linked_attributes/dto/create-linked-attribute-smart.dto.js +64 -0
- package/dist/module/linked_attributes/dto/create-linked-attribute-smart.dto.js.map +1 -0
- package/dist/module/linked_attributes/linked_attributes.module.js +4 -2
- package/dist/module/linked_attributes/linked_attributes.module.js.map +1 -1
- package/dist/module/linked_attributes/service/linked_attributes.service.d.ts +41 -1
- package/dist/module/linked_attributes/service/linked_attributes.service.js +265 -1
- package/dist/module/linked_attributes/service/linked_attributes.service.js.map +1 -1
- package/dist/module/meta/controller/attribute-master.controller.d.ts +3 -0
- package/dist/module/meta/controller/attribute-master.controller.js +12 -0
- package/dist/module/meta/controller/attribute-master.controller.js.map +1 -1
- package/dist/module/meta/entity.module.js +2 -2
- 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/service/attribute-master.service.d.ts +6 -1
- package/dist/module/meta/service/attribute-master.service.js +20 -2
- package/dist/module/meta/service/attribute-master.service.js.map +1 -1
- package/dist/module/meta/service/entity-dynamic.service.js +16 -16
- package/dist/module/meta/service/entity-master.service.js +1 -0
- package/dist/module/meta/service/entity-master.service.js.map +1 -1
- package/dist/module/meta/service/entity-relation.service.d.ts +4 -3
- package/dist/module/meta/service/entity-relation.service.js +10 -4
- package/dist/module/meta/service/entity-relation.service.js.map +1 -1
- package/dist/module/meta/service/entity-service-impl.service.d.ts +1 -1
- package/dist/module/meta/service/entity-service-impl.service.js +2 -2
- package/dist/module/meta/service/entity-service-impl.service.js.map +1 -1
- package/dist/module/meta/service/entity-table.service.d.ts +5 -4
- package/dist/module/meta/service/entity-table.service.js +45 -24
- package/dist/module/meta/service/entity-table.service.js.map +1 -1
- package/dist/module/meta/service/media-data.service.js +6 -6
- package/dist/module/meta/service/resolver.service.d.ts +1 -1
- package/dist/module/meta/service/resolver.service.js +11 -8
- package/dist/module/meta/service/resolver.service.js.map +1 -1
- package/dist/module/module/repository/menu.repository.js +4 -4
- 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 +2 -3
- package/dist/module/workflow-automation/service/workflow-automation.service.js.map +1 -1
- package/dist/table.config.d.ts +2 -1
- package/dist/table.config.js +2 -0
- package/dist/table.config.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/migrations/1732612800000-AddEntityJsonGinIndex.ts +41 -0
- 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 +38 -38
- 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 +49 -49
- package/src/module/dashboard/service/dashboard.service.ts +72 -72
- package/src/module/enterprise/controller/organization.controller.ts +36 -36
- package/src/module/enterprise/enterprise.module.ts +45 -45
- 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 +289 -289
- 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 +60 -47
- package/src/module/entity_json/docs/FlatJson_Filterin_System.md +2804 -0
- package/src/module/entity_json/entity/entityJson.entity.ts +42 -39
- package/src/module/entity_json/entity_json.module.ts +22 -18
- package/src/module/entity_json/service/entityJson.repository.ts +37 -37
- package/src/module/entity_json/service/entity_json.service.ts +428 -241
- 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 +87 -87
- 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 +35 -35
- package/src/module/filter/filter.module.ts +42 -33
- package/src/module/filter/repository/saved-filter.repository.ts +247 -247
- 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 +1369 -1310
- package/src/module/filter/service/flatjson-filter.service.ts +903 -0
- package/src/module/filter/service/saved-filter.service.ts +154 -164
- package/src/module/filter/test/flatjson-filter.service.spec.ts +415 -0
- 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 +2639 -2639
- package/src/module/integration/service/oauth.service.ts +224 -224
- package/src/module/integration/service/wrapper.service.ts +754 -754
- 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 -76
- 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 +137 -52
- package/src/module/linked_attributes/dto/create-linked-attribute-smart.dto.ts +54 -0
- package/src/module/linked_attributes/entity/linked_attribute.entity.ts +51 -51
- package/src/module/linked_attributes/linked_attributes.module.ts +23 -21
- package/src/module/linked_attributes/repository/linked_attribute.repository.ts +12 -12
- package/src/module/linked_attributes/service/linked_attributes.service.ts +648 -105
- package/src/module/linked_attributes/test/linked-attributes.service.spec.ts +244 -0
- 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 +280 -280
- package/src/module/listmaster/service/list-master-registry.ts +15 -15
- package/src/module/listmaster/service/list-master.service.ts +527 -527
- 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 +80 -80
- package/src/module/master/controller/master.controller.ts +74 -74
- package/src/module/master/service/master.service.ts +484 -484
- package/src/module/meta/controller/app-master.controller.ts +38 -38
- package/src/module/meta/controller/attribute-master.controller.ts +96 -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 -308
- 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 -101
- package/src/module/meta/controller/view-master.controller.ts +79 -79
- 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 +91 -91
- 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 -165
- 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 -120
- 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 +160 -132
- 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 -824
- package/src/module/meta/service/entity-master.service.ts +172 -171
- package/src/module/meta/service/entity-realation-data.service.ts +9 -9
- package/src/module/meta/service/entity-relation.service.ts +78 -74
- package/src/module/meta/service/entity-service-impl.service.ts +389 -388
- package/src/module/meta/service/entity-table-column.service.ts +26 -26
- package/src/module/meta/service/entity-table.service.ts +171 -157
- package/src/module/meta/service/entity-validation.service.ts +188 -188
- package/src/module/meta/service/entity.service.ts +48 -49
- 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 +319 -315
- 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 +71 -71
- package/src/module/notification/repository/notification.repository.ts +33 -33
- 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 +146 -146
- 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 +62 -62
- 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 +49 -49
- package/src/module/workflow/controller/stage.controller.ts +51 -51
- 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 +354 -354
- 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 +217 -217
- package/src/module/workflow/repository/stage.repository.ts +160 -160
- package/src/module/workflow/repository/task.repository.ts +156 -156
- 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 +137 -137
- 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 +181 -181
- 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 +325 -325
- package/src/module/workflow/service/stage.service.ts +197 -197
- package/src/module/workflow/service/task.service.ts +551 -551
- package/src/module/workflow/service/workflow-list-master.service.ts +68 -68
- package/src/module/workflow/service/workflow-meta.service.ts +640 -640
- 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 +474 -476
- 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 +253 -253
- 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 +597 -597
- 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 +135 -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
|
@@ -8,6 +8,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
11
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
15
|
exports.EntityJSONService = void 0;
|
|
13
16
|
const common_1 = require("@nestjs/common");
|
|
@@ -19,21 +22,27 @@ const loggingUtil_service_1 = require("../../../utils/service/loggingUtil.servic
|
|
|
19
22
|
const typeorm_1 = require("typeorm");
|
|
20
23
|
const entityJson_repository_1 = require("./entityJson.repository");
|
|
21
24
|
const filter_service_1 = require("../../filter/service/filter.service");
|
|
22
|
-
let EntityJSONService = class EntityJSONService
|
|
23
|
-
constructor(dataSource, loggerService, EntityJSONRepository, filterService) {
|
|
24
|
-
super();
|
|
25
|
+
let EntityJSONService = class EntityJSONService {
|
|
26
|
+
constructor(dataSource, loggerService, EntityJSONRepository, filterService, entityServiceImpl) {
|
|
25
27
|
this.dataSource = dataSource;
|
|
26
28
|
this.loggerService = loggerService;
|
|
27
29
|
this.EntityJSONRepository = EntityJSONRepository;
|
|
28
30
|
this.filterService = filterService;
|
|
31
|
+
this.entityServiceImpl = entityServiceImpl;
|
|
29
32
|
}
|
|
30
33
|
async getAttributeForFlatJSON(entityType, loggedInUser, flag) {
|
|
31
|
-
const entId = loggedInUser.
|
|
32
|
-
await this.loggerService.log('info', 'EntityJSONService', 'getAttributeForFlatJSON', `Loading attributes for entity: ${entityType},
|
|
34
|
+
const entId = loggedInUser.enterprise_id;
|
|
35
|
+
await this.loggerService.log('info', 'EntityJSONService', 'getAttributeForFlatJSON', `Loading attributes for entity: ${entityType}, org: ${entId}`);
|
|
33
36
|
const mainAttributes = await this.dataSource
|
|
34
37
|
.getRepository(attribute_master_entity_1.AttributeMaster)
|
|
35
38
|
.createQueryBuilder('attr')
|
|
36
|
-
.select([
|
|
39
|
+
.select([
|
|
40
|
+
'attr.id',
|
|
41
|
+
'attr.name',
|
|
42
|
+
'attr.flat_json_key',
|
|
43
|
+
'attr.attribute_key',
|
|
44
|
+
'attr.data_type',
|
|
45
|
+
])
|
|
37
46
|
.where('attr.mapped_entity_type = :entityType', { entityType })
|
|
38
47
|
.andWhere('attr.enterprise_id = :entId', { entId })
|
|
39
48
|
.getMany();
|
|
@@ -46,14 +55,23 @@ let EntityJSONService = class EntityJSONService extends entity_service_impl_serv
|
|
|
46
55
|
.andWhere('rel.enterprise_id = :entId', { entId })
|
|
47
56
|
.andWhere('rel.relation_type = :relationType', { relationType: 'ONE_TO_ONE' })
|
|
48
57
|
.getRawMany();
|
|
49
|
-
const relatedTypesList = relatedEntityTypes.map(x => x.rel_target_entity_type);
|
|
58
|
+
const relatedTypesList = relatedEntityTypes.map((x) => x.rel_target_entity_type);
|
|
50
59
|
await this.loggerService.log('debug', 'EntityJSONService', 'getAttributeForFlatJSON', `Found ${relatedTypesList.length} ONE-TO-ONE related entity types`);
|
|
51
60
|
const relatedAttributes = relatedTypesList.length
|
|
52
61
|
? await this.dataSource
|
|
53
62
|
.getRepository(attribute_master_entity_1.AttributeMaster)
|
|
54
63
|
.createQueryBuilder('attr')
|
|
55
|
-
.select([
|
|
56
|
-
|
|
64
|
+
.select([
|
|
65
|
+
'attr.id',
|
|
66
|
+
'attr.name',
|
|
67
|
+
'attr.flat_json_key',
|
|
68
|
+
'attr.mapped_entity_type',
|
|
69
|
+
'attr.attribute_key',
|
|
70
|
+
'attr.data_type',
|
|
71
|
+
])
|
|
72
|
+
.where('attr.mapped_entity_type IN (:...types)', {
|
|
73
|
+
types: relatedTypesList,
|
|
74
|
+
})
|
|
57
75
|
.andWhere('attr.enterprise_id = :entId', { entId })
|
|
58
76
|
.getMany()
|
|
59
77
|
: [];
|
|
@@ -69,41 +87,83 @@ let EntityJSONService = class EntityJSONService extends entity_service_impl_serv
|
|
|
69
87
|
'fla.saved_filter_code AS saved_filter_code',
|
|
70
88
|
'attr.name AS name',
|
|
71
89
|
'attr.id AS id',
|
|
90
|
+
'attr.data_type AS data_type',
|
|
72
91
|
])
|
|
73
92
|
.where('attr.enterprise_id = :entId', { entId })
|
|
74
93
|
.getRawMany();
|
|
75
94
|
await this.loggerService.log('debug', 'EntityJSONService', 'getAttributeForFlatJSON', `Loaded ${linkedAttributes.length} linked attributes`);
|
|
95
|
+
if (flag === 'filter_attribute') {
|
|
96
|
+
const filterAttributes = [];
|
|
97
|
+
filterAttributes.push(...mainAttributes.map((a) => ({
|
|
98
|
+
id: a.id,
|
|
99
|
+
name: a.name,
|
|
100
|
+
data_type: a.data_type,
|
|
101
|
+
attribute_key: a.flat_json_key,
|
|
102
|
+
source: 'main',
|
|
103
|
+
})));
|
|
104
|
+
filterAttributes.push(...relatedAttributes.map((a) => ({
|
|
105
|
+
id: a.id,
|
|
106
|
+
name: a.name,
|
|
107
|
+
data_type: a.data_type,
|
|
108
|
+
attribute_key: a.flat_json_key,
|
|
109
|
+
source: 'related',
|
|
110
|
+
})));
|
|
111
|
+
filterAttributes.push(...linkedAttributes.map((l) => ({
|
|
112
|
+
id: l.id,
|
|
113
|
+
name: l.name,
|
|
114
|
+
data_type: l.data_type,
|
|
115
|
+
attribute_key: l.target_attribute_key,
|
|
116
|
+
source: 'linked',
|
|
117
|
+
})));
|
|
118
|
+
return filterAttributes;
|
|
119
|
+
}
|
|
76
120
|
if (flag === 'flat_json' || flag === 'all') {
|
|
77
121
|
const result = {};
|
|
78
|
-
mainAttributes.forEach(attr => {
|
|
122
|
+
mainAttributes.forEach((attr) => {
|
|
79
123
|
if (attr.flat_json_key)
|
|
80
124
|
result[attr.flat_json_key] = null;
|
|
81
125
|
});
|
|
82
|
-
relatedAttributes.forEach(attr => {
|
|
126
|
+
relatedAttributes.forEach((attr) => {
|
|
83
127
|
if (attr.flat_json_key)
|
|
84
128
|
result[attr.flat_json_key] = null;
|
|
85
129
|
});
|
|
86
|
-
linkedAttributes.forEach(link => {
|
|
130
|
+
linkedAttributes.forEach((link) => {
|
|
87
131
|
if (link.target_attribute_key)
|
|
88
132
|
result[link.target_attribute_key] = null;
|
|
89
133
|
});
|
|
90
134
|
if (flag === 'all') {
|
|
91
|
-
return {
|
|
135
|
+
return {
|
|
136
|
+
flat_json: result,
|
|
137
|
+
attributes: {
|
|
138
|
+
mainAttributes,
|
|
139
|
+
relatedAttributes,
|
|
140
|
+
linkedAttributes,
|
|
141
|
+
},
|
|
142
|
+
};
|
|
92
143
|
}
|
|
93
144
|
return result;
|
|
94
145
|
}
|
|
95
146
|
const dropdown = [];
|
|
96
|
-
dropdown.push(...mainAttributes.map(a => ({ label: a.name, value: a.flat_json_key })));
|
|
97
|
-
dropdown.push(...relatedAttributes.map(a => ({
|
|
147
|
+
dropdown.push(...mainAttributes.map((a) => ({ label: a.name, value: a.flat_json_key })));
|
|
148
|
+
dropdown.push(...relatedAttributes.map((a) => ({
|
|
149
|
+
label: a.name,
|
|
150
|
+
value: a.flat_json_key,
|
|
151
|
+
})));
|
|
98
152
|
if (linkedAttributes.length > 0) {
|
|
99
|
-
dropdown.push(...linkedAttributes.map(a => ({
|
|
153
|
+
dropdown.push(...linkedAttributes.map((a) => ({
|
|
154
|
+
label: a.name,
|
|
155
|
+
value: a.target_attribute_key,
|
|
156
|
+
})));
|
|
100
157
|
}
|
|
101
158
|
return dropdown;
|
|
102
159
|
}
|
|
103
160
|
async updateEntityJSON(entityType, entityId, loggedInUser) {
|
|
104
161
|
await this.loggerService.log('info', 'EntityJSONService', 'updateEntityJSON', `Building flat JSON for entity: ${entityType}#${entityId}`);
|
|
105
162
|
const response = await this.getAttributeForFlatJSON(entityType, loggedInUser, 'all');
|
|
106
|
-
if (!response ||
|
|
163
|
+
if (!response ||
|
|
164
|
+
!('flat_json' in response) ||
|
|
165
|
+
!('attributes' in response) ||
|
|
166
|
+
!response.attributes) {
|
|
107
167
|
await this.loggerService.log('error', 'EntityJSONService', 'updateEntityJSON', `getAttributeForFlatJSON() did not return expected structure`);
|
|
108
168
|
return null;
|
|
109
169
|
}
|
|
@@ -116,23 +176,29 @@ let EntityJSONService = class EntityJSONService extends entity_service_impl_serv
|
|
|
116
176
|
linkedAttributes: attributes.linkedAttributes || [],
|
|
117
177
|
};
|
|
118
178
|
const attrMap = {};
|
|
119
|
-
const allAttrs = [
|
|
120
|
-
|
|
179
|
+
const allAttrs = [
|
|
180
|
+
...safeAttributes.mainAttributes,
|
|
181
|
+
...safeAttributes.relatedAttributes,
|
|
182
|
+
];
|
|
183
|
+
allAttrs.forEach((attr) => {
|
|
121
184
|
if (attr.attribute_key)
|
|
122
185
|
attrMap[attr.attribute_key] = attr.flat_json_key || attr.attribute_key;
|
|
123
186
|
});
|
|
124
|
-
const mainData = await this.getResolvedEntityData(entityType, entityId, loggedInUser);
|
|
187
|
+
const mainData = await this.entityServiceImpl.getResolvedEntityData(entityType, entityId, loggedInUser, true);
|
|
125
188
|
this.mergeEntityDataIntoFlatJson(flatJson, mainData, attrMap);
|
|
126
189
|
const relations = await this.dataSource
|
|
127
190
|
.getRepository('frm_entity_relation_data')
|
|
128
191
|
.createQueryBuilder('erd')
|
|
129
|
-
.select([
|
|
192
|
+
.select([
|
|
193
|
+
'erd.target_entity_id AS target_entity_id',
|
|
194
|
+
'erd.target_entity_type AS target_entity_type',
|
|
195
|
+
])
|
|
130
196
|
.where('erd.source_entity_type = :entityType', { entityType })
|
|
131
197
|
.andWhere('erd.source_entity_id = :entityId', { entityId })
|
|
132
198
|
.andWhere('erd.relation_type = :rt', { rt: 'ONE_TO_ONE' })
|
|
133
199
|
.getRawMany();
|
|
134
200
|
for (const rel of relations) {
|
|
135
|
-
const relatedData = await this.getResolvedEntityData(rel.target_entity_type, rel.target_entity_id, loggedInUser);
|
|
201
|
+
const relatedData = await this.entityServiceImpl.getResolvedEntityData(rel.target_entity_type, rel.target_entity_id, loggedInUser, true);
|
|
136
202
|
this.mergeEntityDataIntoFlatJson(flatJson, relatedData, attrMap);
|
|
137
203
|
}
|
|
138
204
|
for (const linkAttr of safeAttributes.linkedAttributes) {
|
|
@@ -144,7 +210,7 @@ let EntityJSONService = class EntityJSONService extends entity_service_impl_serv
|
|
|
144
210
|
const mappingValue = mainData?.[sourceKey] ?? null;
|
|
145
211
|
const value = await this.applyLinkedFilterUsingSavedFilter(childEntityType, linkAttr.saved_filter_code, sourceKey, mappingValue, targetKey, loggedInUser, entityId);
|
|
146
212
|
if (value !== null && value !== undefined) {
|
|
147
|
-
flatJson[targetKey] = value;
|
|
213
|
+
flatJson[targetKey] = typeof value === 'string' ? value.toLowerCase() : value;
|
|
148
214
|
}
|
|
149
215
|
}
|
|
150
216
|
await this.loggerService.log('info', 'EntityJSONService', 'updateEntityJSON', `Saving flat JSON for entity: ${entityType}#${entityId}`);
|
|
@@ -165,27 +231,40 @@ let EntityJSONService = class EntityJSONService extends entity_service_impl_serv
|
|
|
165
231
|
for (const key of Object.keys(record)) {
|
|
166
232
|
const flatKey = attrMap[key] || key;
|
|
167
233
|
if (flatJson.hasOwnProperty(flatKey)) {
|
|
168
|
-
|
|
234
|
+
const value = record[key];
|
|
235
|
+
flatJson[flatKey] = typeof value === 'string' ? value.toLowerCase() : value;
|
|
169
236
|
}
|
|
170
237
|
}
|
|
171
238
|
}
|
|
172
239
|
}
|
|
173
240
|
async applyLinkedFilterUsingSavedFilter(childEntityType, savedFilterCode, childFilterAttribute, mappingValue, targetAttribute, loggedInUser, entity_id) {
|
|
174
|
-
if (!savedFilterCode &&
|
|
241
|
+
if (!savedFilterCode &&
|
|
242
|
+
(mappingValue === null || mappingValue === undefined))
|
|
175
243
|
return null;
|
|
176
244
|
const dto = {
|
|
177
245
|
entity_type: childEntityType,
|
|
178
246
|
savedFilterCode,
|
|
179
247
|
page: 1,
|
|
180
248
|
size: 1,
|
|
249
|
+
loggedInUser
|
|
181
250
|
};
|
|
182
|
-
if (mappingValue !== null &&
|
|
251
|
+
if (mappingValue !== null &&
|
|
252
|
+
mappingValue !== undefined &&
|
|
253
|
+
mappingValue !== '') {
|
|
183
254
|
dto.quickFilter = [
|
|
184
|
-
{
|
|
255
|
+
{
|
|
256
|
+
filter_attribute: childFilterAttribute,
|
|
257
|
+
filter_operator: 'equal',
|
|
258
|
+
filter_value: mappingValue,
|
|
259
|
+
},
|
|
185
260
|
];
|
|
186
261
|
}
|
|
187
262
|
dto.quickFilter = [
|
|
188
|
-
{
|
|
263
|
+
{
|
|
264
|
+
filter_attribute: 'parent_id',
|
|
265
|
+
filter_operator: 'equal',
|
|
266
|
+
filter_value: [entity_id],
|
|
267
|
+
},
|
|
189
268
|
];
|
|
190
269
|
const result = await this.filterService.applyFilter(dto);
|
|
191
270
|
const rows = result?.data?.entity_list || [];
|
|
@@ -195,9 +274,12 @@ let EntityJSONService = class EntityJSONService extends entity_service_impl_serv
|
|
|
195
274
|
exports.EntityJSONService = EntityJSONService;
|
|
196
275
|
exports.EntityJSONService = EntityJSONService = __decorate([
|
|
197
276
|
(0, common_1.Injectable)(),
|
|
277
|
+
__param(3, (0, common_1.Inject)((0, common_1.forwardRef)(() => filter_service_1.FilterService))),
|
|
278
|
+
__param(4, (0, common_1.Inject)((0, common_1.forwardRef)(() => entity_service_impl_service_1.EntityServiceImpl))),
|
|
198
279
|
__metadata("design:paramtypes", [typeorm_1.DataSource,
|
|
199
280
|
loggingUtil_service_1.LoggingService,
|
|
200
281
|
entityJson_repository_1.EntityJSONRepository,
|
|
201
|
-
filter_service_1.FilterService
|
|
282
|
+
filter_service_1.FilterService,
|
|
283
|
+
entity_service_impl_service_1.EntityServiceImpl])
|
|
202
284
|
], EntityJSONService);
|
|
203
285
|
//# sourceMappingURL=entity_json.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity_json.service.js","sourceRoot":"","sources":["../../../../src/module/entity_json/service/entity_json.service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"entity_json.service.js","sourceRoot":"","sources":["../../../../src/module/entity_json/service/entity_json.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAgE;AAChE,oGAA+F;AAC/F,uFAAiF;AACjF,qFAA+E;AAC/E,gGAAwF;AACxF,oFAAuE;AACvE,qCAAqC;AACrC,mEAA+D;AAC/D,wEAAoE;AAK7D,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAC5B,YACmB,UAAsB,EACtB,aAA6B,EAC7B,oBAA0C,EACD,aAA4B,EACxB,iBAAoC;QAJjF,eAAU,GAAV,UAAU,CAAY;QACtB,kBAAa,GAAb,aAAa,CAAgB;QAC7B,yBAAoB,GAApB,oBAAoB,CAAsB;QACD,kBAAa,GAAb,aAAa,CAAe;QACxB,sBAAiB,GAAjB,iBAAiB,CAAmB;IAEpG,CAAC;IAED,KAAK,CAAC,uBAAuB,CAC3B,UAAkB,EAClB,YAAiB,EACjB,IAA4D;QAE5D,MAAM,KAAK,GAAG,YAAY,CAAC,aAAa,CAAC;QAEzC,MAAM,IAAI,CAAC,aAAa,CAAC,GAAG,CAC1B,MAAM,EACN,mBAAmB,EACnB,yBAAyB,EACzB,kCAAkC,UAAU,UAAU,KAAK,EAAE,CAC9D,CAAC;QAGF,MAAM,cAAc,GAAG,MAAM,IAAI,CAAC,UAAU;aACzC,aAAa,CAAC,yCAAe,CAAC;aAC9B,kBAAkB,CAAC,MAAM,CAAC;aAC1B,MAAM,CAAC;YACN,SAAS;YACT,WAAW;YACX,oBAAoB;YACpB,oBAAoB;YACpB,gBAAgB;SACjB,CAAC;aACD,KAAK,CAAC,uCAAuC,EAAE,EAAE,UAAU,EAAE,CAAC;aAC9D,QAAQ,CAAC,6BAA6B,EAAE,EAAE,KAAK,EAAE,CAAC;aAClD,OAAO,EAAE,CAAC;QAEb,MAAM,IAAI,CAAC,aAAa,CAAC,GAAG,CAC1B,OAAO,EACP,mBAAmB,EACnB,yBAAyB,EACzB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18 @@ export declare class FilterController {
|
|
|
27
27
|
entity_list: never[];
|
|
28
28
|
pagination: {};
|
|
29
29
|
};
|
|
30
|
+
} | {
|
|
31
|
+
success: boolean;
|
|
32
|
+
data: {
|
|
33
|
+
entity_tabs: any;
|
|
34
|
+
entity_list: any;
|
|
35
|
+
pagination: {
|
|
36
|
+
total: any;
|
|
37
|
+
page: any;
|
|
38
|
+
size: any;
|
|
39
|
+
totalPages: any;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
30
42
|
}>;
|
|
31
43
|
getFilterById(id: string): Promise<{
|
|
32
44
|
filter_attribute: string;
|
|
@@ -26,7 +26,7 @@ let FilterController = class FilterController {
|
|
|
26
26
|
const loggedInUser = req.user.userData;
|
|
27
27
|
const { page: _p, size: _s, ...otherQueryParams } = queryParams;
|
|
28
28
|
const { entity_type, quickFilter, savedFilterCode, attributeFilter, tabs, sortby, } = body;
|
|
29
|
-
return this.filterService.
|
|
29
|
+
return this.filterService.applyFilterWithRouting({
|
|
30
30
|
entity_type,
|
|
31
31
|
quickFilter,
|
|
32
32
|
savedFilterCode,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter.controller.js","sourceRoot":"","sources":["../../../../src/module/filter/controller/filter.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"filter.controller.js","sourceRoot":"","sources":["../../../../src/module/filter/controller/filter.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAawB;AACxB,8DAA0D;AAC1D,0EAAqE;AACrE,2DAAgE;AAGzD,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAC3B,YACmB,aAA4B,EAE5B,kBAAsC;QAFtC,kBAAa,GAAb,aAAa,CAAe;QAE5B,uBAAkB,GAAlB,kBAAkB,CAAoB;IACtD,CAAC;IAKE,AAAN,KAAK,CAAC,WAAW,CACP,IAAS,EACY,OAAO,CAAC,EACR,OAAO,EAAE,EAC/B,GAA4B,EA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AAC,MAAM,EAAE,qBAAY,CAAC,CAAA;IAC3B,WAAA,IAAA,YAAG,GAAE,CAAA;IACL,WAAA,IAAA,cAAK,GAAE,CAAA;IACP,WAAA,IAAA,cAAK,EAAC,YAAY,CAAC,CAAA;IACnB,WAAA,IAAA,cAAK,EAAC,UAAU,CAAC,CAAA;IACjB,WAAA,IAAA,cAAK,EAAC,SAAS,CAAC,CAAA;;;;mDA+BlB;AAIK;IAFL,IAAA,YAAG,EAAC,KAAK,CAAC;IACV,IAAA,iBAAQ,EAAC,mBAAU,CAAC,EAAE,CAAC;IACH,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;;;;qDAE/B;AAKK;IAHL,IAAA,YAAG,EAAC,4BAA4B,CAAC;IACjC,IAAA,kBAAS,EAAC,wBAAY,CAAC;IACvB,IAAA,iBAAQ,EAAC,mBAAU,CAAC,EAAE,CAAC;IAErB,WAAA,IAAA,cAAK,EAAC,MAAM,CAAC,CAAA;IACb,WAAA,IAAA,YAAG,GAAE,CAAA;;;;4DAIP;2BAlEU,gBAAgB;IAD5B,IAAA,mBAAU,EAAC,QAAQ,CAAC;IAIhB,WAAA,IAAA,eAAM,EAAC,oBAAoB,CAAC,CAAA;qCADG,8BAAa;QAER,yCAAkB;GAJ9C,gBAAgB,CAmE5B"}
|
|
@@ -14,10 +14,14 @@ const saved_filter_detail_entity_1 = require("./entity/saved-filter-detail.entit
|
|
|
14
14
|
const saved_filter_master_entity_1 = require("./entity/saved-filter-master.entity");
|
|
15
15
|
const saved_filter_repository_1 = require("./repository/saved-filter.repository");
|
|
16
16
|
const entity_module_1 = require("../meta/entity.module");
|
|
17
|
+
const entity_json_module_1 = require("../entity_json/entity_json.module");
|
|
17
18
|
const filter_service_1 = require("./service/filter.service");
|
|
18
19
|
const filter_controller_1 = require("./controller/filter.controller");
|
|
19
20
|
const filter_evaluator_service_1 = require("./service/filter-evaluator.service");
|
|
20
21
|
const saved_filter_detail_repository_1 = require("./repository/saved.filter-detail.repository");
|
|
22
|
+
const flatjson_filter_service_1 = require("./service/flatjson-filter.service");
|
|
23
|
+
const config_1 = require("@nestjs/config");
|
|
24
|
+
const utils_module_1 = require("../../utils/utils.module");
|
|
21
25
|
let FilterModule = class FilterModule {
|
|
22
26
|
};
|
|
23
27
|
exports.FilterModule = FilterModule;
|
|
@@ -25,7 +29,10 @@ exports.FilterModule = FilterModule = __decorate([
|
|
|
25
29
|
(0, common_1.Module)({
|
|
26
30
|
imports: [
|
|
27
31
|
typeorm_1.TypeOrmModule.forFeature([saved_filter_detail_entity_1.SavedFilterDetail, saved_filter_master_entity_1.SavedFilterMaster]),
|
|
28
|
-
(0, common_1.forwardRef)(() => entity_module_1.EntityModule)
|
|
32
|
+
(0, common_1.forwardRef)(() => entity_module_1.EntityModule),
|
|
33
|
+
(0, common_1.forwardRef)(() => entity_json_module_1.EntityJSONModule),
|
|
34
|
+
config_1.ConfigModule,
|
|
35
|
+
utils_module_1.UtilsModule,
|
|
29
36
|
],
|
|
30
37
|
controllers: [filter_controller_1.FilterController],
|
|
31
38
|
providers: [
|
|
@@ -33,13 +40,15 @@ exports.FilterModule = FilterModule = __decorate([
|
|
|
33
40
|
saved_filter_repository_1.SavedFilterRepositoryService,
|
|
34
41
|
filter_service_1.FilterService,
|
|
35
42
|
filter_evaluator_service_1.FilterEvaluatorService,
|
|
36
|
-
saved_filter_detail_repository_1.SavedFilterDetailRepository
|
|
43
|
+
saved_filter_detail_repository_1.SavedFilterDetailRepository,
|
|
44
|
+
flatjson_filter_service_1.FlatjsonFilterService,
|
|
37
45
|
],
|
|
38
46
|
exports: [
|
|
39
47
|
'SavedFilterService',
|
|
40
48
|
saved_filter_repository_1.SavedFilterRepositoryService,
|
|
41
49
|
filter_service_1.FilterService,
|
|
42
50
|
filter_evaluator_service_1.FilterEvaluatorService,
|
|
51
|
+
flatjson_filter_service_1.FlatjsonFilterService,
|
|
43
52
|
],
|
|
44
53
|
})
|
|
45
54
|
], FilterModule);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter.module.js","sourceRoot":"","sources":["../../../src/module/filter/filter.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAoD;AACpD,6CAAgD;AAChD,yEAAoE;AACpE,oFAAwE;AACxE,oFAAwE;AACxE,kFAAoF;AACpF,yDAAqD;AACrD,6DAAyD;AACzD,sEAAkE;AAClE,iFAA4E;AAC5E,gGAA0F;
|
|
1
|
+
{"version":3,"file":"filter.module.js","sourceRoot":"","sources":["../../../src/module/filter/filter.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAoD;AACpD,6CAAgD;AAChD,yEAAoE;AACpE,oFAAwE;AACxE,oFAAwE;AACxE,kFAAoF;AACpF,yDAAqD;AACrD,0EAAqE;AACrE,6DAAyD;AACzD,sEAAkE;AAClE,iFAA4E;AAC5E,gGAA0F;AAC1F,+EAA0E;AAC1E,2CAA8C;AAC9C,2DAAqD;AA2B9C,IAAM,YAAY,GAAlB,MAAM,YAAY;CAAG,CAAA;AAAf,oCAAY;uBAAZ,YAAY;IAzBxB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,uBAAa,CAAC,UAAU,CAAC,CAAC,8CAAiB,EAAE,8CAAiB,CAAC,CAAC;YAChE,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;YAC9B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,qCAAgB,CAAC;YAClC,qBAAY;YACZ,0BAAW;SACZ;QACD,WAAW,EAAE,CAAC,oCAAgB,CAAC;QAC/B,SAAS,EAAE;YACT,EAAE,OAAO,EAAE,oBAAoB,EAAE,QAAQ,EAAE,yCAAkB,EAAE;YAC/D,sDAA4B;YAC5B,8BAAa;YACb,iDAAsB;YACtB,4DAA2B;YAC3B,+CAAqB;SACtB;QACD,OAAO,EAAE;YACP,oBAAoB;YACpB,sDAA4B;YAC5B,8BAAa;YACb,iDAAsB;YACtB,+CAAqB;SACtB;KACF,CAAC;GACW,YAAY,CAAG"}
|
|
@@ -8,19 +8,55 @@ import { LoggingService } from 'src/utils/service/loggingUtil.service';
|
|
|
8
8
|
import { ConfigService } from '@nestjs/config';
|
|
9
9
|
import { ReflectionHelper } from '../../../utils/service/reflection-helper.service';
|
|
10
10
|
import { EntityManager } from 'typeorm';
|
|
11
|
+
import { FlatjsonFilterService } from './flatjson-filter.service';
|
|
11
12
|
export declare class FilterService {
|
|
12
13
|
private entityManager;
|
|
13
14
|
private readonly attributeMasterService;
|
|
14
15
|
private readonly entityMasterService;
|
|
15
|
-
private readonly savedFilterService;
|
|
16
16
|
private readonly entityRelationService;
|
|
17
|
+
private readonly savedFilterService;
|
|
17
18
|
private readonly resolverService;
|
|
18
19
|
protected readonly loggingService: LoggingService;
|
|
19
20
|
private readonly configService;
|
|
20
21
|
private readonly reflectionHelper;
|
|
21
|
-
|
|
22
|
+
private readonly flatjsonFilterService;
|
|
23
|
+
constructor(entityManager: EntityManager, attributeMasterService: AttributeMasterService, entityMasterService: EntityMasterService, entityRelationService: EntityRelationService, savedFilterService: SavedFilterService, resolverService: ResolverService, loggingService: LoggingService, configService: ConfigService, reflectionHelper: ReflectionHelper, flatjsonFilterService: FlatjsonFilterService);
|
|
22
24
|
schema: any;
|
|
23
25
|
private gettab_value_counts;
|
|
26
|
+
applyFilterWithRouting(dto: FilterRequestDto): Promise<{
|
|
27
|
+
success: boolean;
|
|
28
|
+
data: {
|
|
29
|
+
entity_tabs: any[];
|
|
30
|
+
entity_list: any[];
|
|
31
|
+
pagination: {
|
|
32
|
+
total: number;
|
|
33
|
+
page: number;
|
|
34
|
+
size: number;
|
|
35
|
+
totalPages: number;
|
|
36
|
+
hasNextPage: boolean;
|
|
37
|
+
hasPreviousPage: boolean;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
} | {
|
|
41
|
+
success: boolean;
|
|
42
|
+
data: {
|
|
43
|
+
entity_tabs: never[];
|
|
44
|
+
entity_list: never[];
|
|
45
|
+
pagination: {};
|
|
46
|
+
};
|
|
47
|
+
} | {
|
|
48
|
+
success: boolean;
|
|
49
|
+
data: {
|
|
50
|
+
entity_tabs: any;
|
|
51
|
+
entity_list: any;
|
|
52
|
+
pagination: {
|
|
53
|
+
total: any;
|
|
54
|
+
page: any;
|
|
55
|
+
size: any;
|
|
56
|
+
totalPages: any;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
}>;
|
|
24
60
|
applyFilterWrapper(dto: FilterRequestDto): Promise<{
|
|
25
61
|
success: boolean;
|
|
26
62
|
data: {
|