rez_core 3.1.140 → 3.1.141
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/module/auth/guards/role.guard.js +3 -3
- package/dist/module/auth/services/auth.service.js +2 -2
- package/dist/module/filter/repository/saved-filter.repository.js +4 -4
- package/dist/module/filter/service/filter-evaluator.service.js +2 -2
- package/dist/module/filter/service/filter.service.js +7 -7
- package/dist/module/integration/examples/usage.example.js +9 -9
- package/dist/module/integration/service/integration.service.js +1 -1
- package/dist/module/integration/service/wrapper.service.js +25 -25
- package/dist/module/listmaster/service/list-master-item.service.js +2 -2
- package/dist/module/listmaster/service/list-master.service.js +2 -2
- package/dist/module/mapper/service/field-mapper.service.js +4 -4
- package/dist/module/mapper/service/mapper.service.js +2 -2
- package/dist/module/meta/service/entity-dynamic.service.js +18 -18
- package/dist/module/meta/service/entity-list.service.js +3 -3
- package/dist/module/meta/service/entity-master.service.js +3 -3
- package/dist/module/meta/service/entity-relation.service.js +11 -11
- package/dist/module/meta/service/entity-service-impl.service.js +3 -3
- package/dist/module/meta/service/resolver.service.js +3 -3
- package/dist/module/module/repository/menu.repository.js +12 -12
- package/dist/module/notification/service/notification.service.js +12 -12
- package/dist/module/user/controller/login.controller.js +18 -18
- package/dist/module/user/service/role.service.js +4 -4
- package/dist/module/user/service/user-session.service.js +2 -2
- package/dist/module/workflow/repository/action.repository.js +16 -16
- package/dist/module/workflow/repository/comm-template.repository.js +10 -8
- package/dist/module/workflow/repository/comm-template.repository.js.map +1 -1
- package/dist/module/workflow/repository/form-master.repository.js +2 -2
- package/dist/module/workflow/repository/stage-group.repository.js +23 -23
- package/dist/module/workflow/repository/stage-movement.repository.js +11 -11
- package/dist/module/workflow/repository/stage.repository.js +8 -8
- package/dist/module/workflow/service/action-template-mapping.service.js +10 -10
- package/dist/module/workflow/service/action.service.js +7 -7
- package/dist/module/workflow/service/entity-modification.service.js +6 -6
- package/dist/module/workflow/service/stage-group.service.js +5 -5
- package/dist/module/workflow/service/stage.service.js +2 -2
- package/dist/module/workflow/service/task.service.js +33 -33
- package/dist/module/workflow/service/workflow-list-master.service.js +15 -15
- package/dist/module/workflow/service/workflow-meta.service.js +50 -50
- package/dist/module/workflow/service/workflow.service.js +2 -2
- 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 +118 -118
- package/src/app.controller.ts +12 -12
- package/src/app.module.ts +49 -49
- package/src/app.service.ts +8 -8
- package/src/config/config.module.ts +18 -18
- package/src/config/database.config.ts +23 -23
- package/src/constant/global.constant.ts +67 -67
- package/src/core.module.ts +81 -81
- 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 +50 -50
- 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 +42 -42
- package/src/module/dashboard/service/dashboard.service.ts +73 -73
- package/src/module/dev/dev.module.ts +12 -12
- package/src/module/dev/service/dev.service.ts +7 -7
- 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 +282 -282
- 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/filter/controller/filter.controller.ts +84 -84
- package/src/module/filter/dto/filter-request.dto.ts +38 -38
- package/src/module/filter/entity/saved-filter-detail.entity.ts +41 -41
- package/src/module/filter/entity/saved-filter-master.entity.ts +23 -23
- package/src/module/filter/filter.module.ts +31 -31
- package/src/module/filter/repository/saved-filter.repository.ts +168 -168
- package/src/module/filter/service/filter-evaluator.service.ts +86 -86
- package/src/module/filter/service/filter.service.ts +841 -841
- package/src/module/filter/service/saved-filter.service.ts +170 -170
- 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 +60 -60
- 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 +39 -39
- 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 +70 -70
- 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 +2558 -2558
- package/src/module/integration/service/oauth.service.ts +224 -224
- package/src/module/integration/service/wrapper.service.ts +515 -515
- package/src/module/integration/strategies/email/gmail-api.strategy.ts +288 -288
- 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 +262 -262
- 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 +47 -47
- package/src/module/layout_preference/entity/layout_preference.entity.ts +28 -28
- package/src/module/layout_preference/layout_preference.module.ts +18 -18
- package/src/module/layout_preference/repository/layout_preference.repository.ts +30 -30
- package/src/module/layout_preference/service/layout_preference.service.ts +172 -172
- 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/listmaster/controller/list-master.controller.ts +143 -143
- package/src/module/listmaster/entity/list-master-items.entity.ts +41 -41
- package/src/module/listmaster/entity/list-master.entity.ts +32 -32
- package/src/module/listmaster/listmaster.module.ts +30 -30
- package/src/module/listmaster/repository/list-master-items.repository.ts +169 -169
- package/src/module/listmaster/repository/list-master.repository.ts +46 -46
- package/src/module/listmaster/service/list-master-item.service.ts +292 -292
- package/src/module/listmaster/service/list-master.service.ts +360 -360
- package/src/module/mapper/controller/field-mapper.controller.ts +69 -69
- package/src/module/mapper/controller/mapper.controller.ts +14 -14
- package/src/module/mapper/dto/field-mapper.dto.ts +14 -14
- package/src/module/mapper/entity/field-lovs.entity.ts +20 -20
- package/src/module/mapper/entity/field-mapper.entity.ts +37 -37
- package/src/module/mapper/entity/mapper.entity.ts +17 -17
- package/src/module/mapper/mapper.module.ts +34 -34
- 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 +15 -15
- package/src/module/mapper/service/field-mapper.service.ts +223 -223
- package/src/module/mapper/service/mapper.service.ts +72 -72
- package/src/module/master/controller/master.controller.ts +74 -74
- package/src/module/master/service/master.service.ts +486 -486
- package/src/module/meta/controller/app-master.controller.ts +38 -38
- package/src/module/meta/controller/attribute-master.controller.ts +66 -66
- package/src/module/meta/controller/entity-dynamic.controller.ts +125 -125
- package/src/module/meta/controller/entity-master.controller.ts +28 -28
- package/src/module/meta/controller/entity-relation.controller.ts +36 -36
- package/src/module/meta/controller/entity.controller.ts +385 -385
- package/src/module/meta/controller/media.controller.ts +82 -82
- package/src/module/meta/controller/meta.controller.ts +96 -96
- package/src/module/meta/controller/view-master.controller.ts +86 -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 +9 -9
- package/src/module/meta/entity/app-master.entity.ts +34 -34
- package/src/module/meta/entity/attribute-master.entity.ts +87 -87
- package/src/module/meta/entity/base-entity.entity.ts +75 -75
- package/src/module/meta/entity/entity-master.entity.ts +78 -78
- 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 +156 -156
- package/src/module/meta/repository/app-master.repository.ts +20 -20
- package/src/module/meta/repository/attribute-master.repository.ts +110 -110
- package/src/module/meta/repository/entity-master.repository.ts +66 -66
- 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 +117 -117
- package/src/module/meta/service/common.service.ts +9 -9
- package/src/module/meta/service/entity-dynamic.service.ts +762 -762
- package/src/module/meta/service/entity-list.service.ts +205 -205
- package/src/module/meta/service/entity-master.service.ts +164 -164
- package/src/module/meta/service/entity-realation-data.service.ts +9 -9
- package/src/module/meta/service/entity-relation.service.ts +69 -69
- package/src/module/meta/service/entity-service-impl.service.ts +524 -524
- package/src/module/meta/service/entity-table-column.service.ts +39 -39
- package/src/module/meta/service/entity-table.service.ts +150 -150
- package/src/module/meta/service/entity-validation.service.ts +185 -185
- package/src/module/meta/service/entity.service.ts +67 -67
- package/src/module/meta/service/field-group.service.ts +103 -103
- package/src/module/meta/service/media-data.service.ts +140 -140
- package/src/module/meta/service/populate-meta.service.ts +174 -174
- package/src/module/meta/service/preference.service.ts +16 -16
- package/src/module/meta/service/resolver.service.ts +271 -271
- 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 +111 -111
- package/src/module/module/controller/menu.controller.ts +15 -15
- package/src/module/module/controller/module-access.controller.ts +132 -132
- 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 +184 -184
- package/src/module/module/repository/module-access.repository.ts +327 -327
- package/src/module/module/service/menu.service.ts +82 -82
- package/src/module/module/service/module-access.service.ts +209 -209
- 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 +23 -23
- 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 +138 -138
- package/src/module/notification/service/otp.service.ts +121 -121
- 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 +197 -197
- 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 +61 -61
- package/src/module/user/entity/user.entity.ts +68 -68
- 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 +280 -280
- package/src/module/user/service/role.service.ts +189 -189
- package/src/module/user/service/user-role-mapping.service.ts +98 -98
- package/src/module/user/service/user-session.service.ts +168 -168
- package/src/module/user/service/user.service.ts +353 -353
- 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 +95 -95
- package/src/module/workflow/controller/activity-log.controller.ts +55 -55
- package/src/module/workflow/controller/comm-template.controller.ts +34 -34
- 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 +50 -50
- 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-master.entity.ts +27 -27
- 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 +219 -219
- package/src/module/workflow/repository/action.repository.ts +277 -277
- package/src/module/workflow/repository/activity-log.repository.ts +121 -121
- package/src/module/workflow/repository/comm-template.repository.ts +142 -142
- package/src/module/workflow/repository/form-master.repository.ts +61 -61
- package/src/module/workflow/repository/stage-group.repository.ts +176 -176
- package/src/module/workflow/repository/stage-movement.repository.ts +227 -227
- package/src/module/workflow/repository/stage.repository.ts +172 -172
- package/src/module/workflow/repository/task.repository.ts +113 -113
- 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 +55 -55
- package/src/module/workflow/service/action.service.ts +247 -247
- package/src/module/workflow/service/activity-log.service.ts +107 -107
- package/src/module/workflow/service/comm-template.service.ts +121 -121
- package/src/module/workflow/service/entity-modification.service.ts +67 -67
- package/src/module/workflow/service/form-master.service.ts +35 -35
- package/src/module/workflow/service/populate-workflow.service.ts +303 -303
- package/src/module/workflow/service/stage-action-mapping.service.ts +5 -5
- package/src/module/workflow/service/stage-group.service.ts +300 -300
- package/src/module/workflow/service/stage.service.ts +199 -199
- package/src/module/workflow/service/task.service.ts +504 -504
- package/src/module/workflow/service/workflow-list-master.service.ts +60 -60
- package/src/module/workflow/service/workflow-meta.service.ts +581 -581
- package/src/module/workflow/service/workflow.service.ts +205 -205
- package/src/module/workflow/workflow.module.ts +176 -176
- package/src/module/workflow-automation/controller/workflow-automation.controller.ts +21 -21
- package/src/module/workflow-automation/entity/workflow-automation-action.entity.ts +26 -26
- package/src/module/workflow-automation/entity/workflow-automation.entity.ts +35 -35
- 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/workflow-automation-engine.service.ts +214 -214
- package/src/module/workflow-automation/service/workflow-automation.service.ts +345 -345
- package/src/module/workflow-automation/workflow-automation.module.ts +34 -34
- package/src/resources/dev.properties.yaml +30 -30
- package/src/resources/local.properties.yaml +23 -23
- package/src/resources/properties.module.ts +12 -12
- package/src/resources/properties.yaml.ts +11 -11
- package/src/resources/uat.properties.yaml +15 -15
- 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 +34 -34
- 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 +25 -25
- package/tsconfig.build.json +4 -4
- package/tsconfig.json +24 -24
- package/.claude/settings.local.json +0 -26
- package/.idea/250218_nodejs_core.iml +0 -9
- package/.idea/codeStyles/Project.xml +0 -59
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
- 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/modules.xml +0 -8
- package/.idea/prettier.xml +0 -6
- package/.idea/vcs.xml +0 -6
- package/server.log +0 -850
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { forwardRef, Module } from '@nestjs/common';
|
|
2
|
-
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
3
|
-
import { DiscoveryModule } from '@nestjs/core';
|
|
4
|
-
import { WorkflowAutomation } from './entity/workflow-automation.entity';
|
|
5
|
-
import { WorkflowAutomationController } from './controller/workflow-automation.controller';
|
|
6
|
-
import { WorkflowAutomationEngineService } from './service/workflow-automation-engine.service';
|
|
7
|
-
import { FilterModule } from '../filter/filter.module';
|
|
8
|
-
import { WorkflowAutomationService } from './service/workflow-automation.service';
|
|
9
|
-
import { WorkflowAutomationActionEntity } from './entity/workflow-automation-action.entity';
|
|
10
|
-
import { EntityModule } from '../meta/entity.module';
|
|
11
|
-
import { ActionRegistryService } from './service/action-registery.service';
|
|
12
|
-
|
|
13
|
-
@Module({
|
|
14
|
-
imports: [
|
|
15
|
-
TypeOrmModule.forFeature([
|
|
16
|
-
WorkflowAutomation,
|
|
17
|
-
WorkflowAutomationActionEntity,
|
|
18
|
-
]),
|
|
19
|
-
FilterModule,
|
|
20
|
-
forwardRef(() => EntityModule),
|
|
21
|
-
DiscoveryModule, // 👈 enables provider scanning
|
|
22
|
-
],
|
|
23
|
-
providers: [
|
|
24
|
-
WorkflowAutomationEngineService,
|
|
25
|
-
{
|
|
26
|
-
provide: 'WorkflowAutomationService',
|
|
27
|
-
useClass: WorkflowAutomationService,
|
|
28
|
-
},
|
|
29
|
-
ActionRegistryService, // 👈 auto-registers actions
|
|
30
|
-
],
|
|
31
|
-
exports: [WorkflowAutomationEngineService, 'WorkflowAutomationService'],
|
|
32
|
-
controllers: [WorkflowAutomationController],
|
|
33
|
-
})
|
|
34
|
-
export class WorkflowAutomationModule {}
|
|
1
|
+
import { forwardRef, Module } from '@nestjs/common';
|
|
2
|
+
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
3
|
+
import { DiscoveryModule } from '@nestjs/core';
|
|
4
|
+
import { WorkflowAutomation } from './entity/workflow-automation.entity';
|
|
5
|
+
import { WorkflowAutomationController } from './controller/workflow-automation.controller';
|
|
6
|
+
import { WorkflowAutomationEngineService } from './service/workflow-automation-engine.service';
|
|
7
|
+
import { FilterModule } from '../filter/filter.module';
|
|
8
|
+
import { WorkflowAutomationService } from './service/workflow-automation.service';
|
|
9
|
+
import { WorkflowAutomationActionEntity } from './entity/workflow-automation-action.entity';
|
|
10
|
+
import { EntityModule } from '../meta/entity.module';
|
|
11
|
+
import { ActionRegistryService } from './service/action-registery.service';
|
|
12
|
+
|
|
13
|
+
@Module({
|
|
14
|
+
imports: [
|
|
15
|
+
TypeOrmModule.forFeature([
|
|
16
|
+
WorkflowAutomation,
|
|
17
|
+
WorkflowAutomationActionEntity,
|
|
18
|
+
]),
|
|
19
|
+
FilterModule,
|
|
20
|
+
forwardRef(() => EntityModule),
|
|
21
|
+
DiscoveryModule, // 👈 enables provider scanning
|
|
22
|
+
],
|
|
23
|
+
providers: [
|
|
24
|
+
WorkflowAutomationEngineService,
|
|
25
|
+
{
|
|
26
|
+
provide: 'WorkflowAutomationService',
|
|
27
|
+
useClass: WorkflowAutomationService,
|
|
28
|
+
},
|
|
29
|
+
ActionRegistryService, // 👈 auto-registers actions
|
|
30
|
+
],
|
|
31
|
+
exports: [WorkflowAutomationEngineService, 'WorkflowAutomationService'],
|
|
32
|
+
controllers: [WorkflowAutomationController],
|
|
33
|
+
})
|
|
34
|
+
export class WorkflowAutomationModule {}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
DB_HOST: '13.234.25.234'
|
|
2
|
-
# PROFILE: 'dev'
|
|
3
|
-
#DB_HOST: 'localhost'
|
|
4
|
-
DB_PORT: '3306'
|
|
5
|
-
DB_USER: 'root'
|
|
6
|
-
DB_PASS: 'Rezolut@123'
|
|
7
|
-
DB_NAME: 'package_core'
|
|
8
|
-
MASTER_KEY: '0QZ2eRJv5oVILYnyBlC+FbSGVQiWKReh'
|
|
9
|
-
MASTER_IV: 'heuUQf5uPVtkotrFAOKUVw=='
|
|
10
|
-
SECRET_KEY: '1hard_to_guess_secret7890a'
|
|
11
|
-
CLIENT_ID: '324529881356-596sc8ksrb9lg01i7sktofqqqf0fv2ug.apps.googleusercontent.com'
|
|
12
|
-
CLIENT_SECRET: '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'
|
|
13
|
-
CALLBACK_URL: 'http://localhost:5001/auth/google/callback'
|
|
14
|
-
BASE_URL: 'http://localhost:5001'
|
|
15
|
-
DOMAIN_URL: 'rezolut.in'
|
|
16
|
-
OTP_EXPIRY: '10'
|
|
17
|
-
OTP_LENGTH: '6'
|
|
18
|
-
VERIFY_OTP: 'false'
|
|
19
|
-
DEFAULT_OTP: '123456'
|
|
20
|
-
TOKEN_EXPIRY: 1
|
|
21
|
-
AWS:
|
|
22
|
-
S3:
|
|
23
|
-
AWS_ACCESS_KEY_ID: 'AKIAYYKIBDDSQF3KILGE'
|
|
24
|
-
AWS_SECRET_KEY: 'PPDMAeO2mVUY1w2f46n/dlt5l9+7NY7E9twJb9LU'
|
|
25
|
-
AWS_REGION: 'ap-south-1'
|
|
26
|
-
BUCKET_NAME: 'testether'
|
|
27
|
-
|
|
28
|
-
FIREBASE_PROJECT_ID: 'sample-d7855'
|
|
29
|
-
FIREBASE_CLIENT_EMAIL: 'firebase-adminsdk-fbsvc@sample-d7855.iam.gserviceaccount.com'
|
|
30
|
-
FIREBASE_PRIVATE_KEY: '-----BEGIN PRIVATE KEY-----\nMIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCwGkpDLqFYgDEW\nnrraMja7ICmd05rJlsTachdcbB25Jm2cWMv1ROfNqWEZE3b14pUJOQgCAPI79Lgj\n+nQ0ATsUWK8Th2esKT9kaHg54UZg/qKNcnM5njVn+xIXc+i/AP/eSGBLich+uljU\nRMFuKrpcN1yNa3t0ib+kZxLHE43aFM9aJYOhET6/37DUdFMZ7GyzSLH3tuy1gB2G\negFyC7ulLnyMBFtL37XOtnP3BPwbjVWdP0qv9I6c0aacS5dQ4PNjCBklnkr6tPsc\n0MYr3VUrqNd/xNNOgk26TwoOaePjjjeaSeOGO2FcBG6WsYSLoZ3zmrlCT4vBlXL7\nPaZGQGfjAgMBAAECggEAHtsMZgcWmCYl87uuK6sesdzpzdCUz3uOVGQnObdr4dQc\n4ocgfYIsR3nFHJqvflfMG0iV4Zv+1YiEdzFcCPyqOF9tlbNk8+JqTBKN9j5FkZss\nKjKCg/b3jpeMTPWvM0BelLkDvliO+7108QR3C/GKo7vDiLfrcrjsDkdNH/qKIUq3\nkHeQE0QDLaoe3sLL4mjPp5A4SnnNBInk1gQZS2iVhTgDAAlSOz7JocyVZr3QhxmF\nUlKYzzJVx8zxIJm3ymH6z6NQNbWnBGWF1eeSZgYRkJG1q+Aqm3kRU/uT3V0HPsvZ\nrg4JGkzM/qFA2mpKuj4ysWGfvERKaEe4Ua84SvbcYQKBgQDjjvgBpQL2V71Ssr2E\nWJO/8Bv3TutWODWEvTRv3woQmuZwT81yIR3R8Ir59xLK0oBQCAONvKnrB5RM5yXQ\nmR6hvyKHFUKWTRqwGCFiD4fh0joO4zQTaFDdbqMYyeTJ4r2W66wXbRXtUvuwhDlg\nmDKamZ1E+EAoYkog6/iNYIcwswKBgQDGHO0n2r8yXYm7dM+EYONGLh76IvxVXJDn\nN8igi1zI2fV3cfUuwXaVlMYUa//aRkNXrBvPdXZEvfRRRLkm6dYLbFZ4Sq6T+NUT\noYNan13R59E6UcA/Oi5jitq9l4Wwn8pDaCbmmR1xdj7+r+H9A5N3BXHeuPLy0f48\nyEY8GF8kEQKBgQDCzhmyDrlCekoxCaMEMXAK2FqYlI8S+HuYbwD85EuRe4nai/as\nxXzpxKq04rbLuvjtim7AX8p20b47N4Y/1VVL0nyUd7bRRKCcL4wkjncc8wOQyyBB\nnQPdDGHDTtL1oY38LTTduR0UVf3xVsBn2OM5RlhEOuFxsPMUy+2z2fbh0QKBgBz3\nMb14AChvAKpFw+mI+PHT4HeWEeqxJAaKY20Fs0UyiO8z3DM/2gS4wdVOjRPu3f29\njjtg4y/dzhDryV5lJgR5jJL96FR+NzktjjT7xA3ipPav6TnVWd73+E9sDgHq+vms\nCrQAgwuJzGAUeygxE6h9RU7ZH7xc850TcyFqNs7hAoGBAMviFpBfpZz/amStyan+\nIPBGpDNV8dUrRE1POIdi6M44mlrI5hkD1ldVl3wjDJtg4VGkMosltLtvC0dDcIou\nuWZT8ENKM2G400PvQ9JJYah9dTkYQL1qMxvpX+biMoRSiAswPwRQjmBQUaz1aN1g\nmXv1VJBLLZVg8x1ckLDjeD20\n-----END PRIVATE KEY-----\n'
|
|
1
|
+
DB_HOST: '13.234.25.234'
|
|
2
|
+
# PROFILE: 'dev'
|
|
3
|
+
#DB_HOST: 'localhost'
|
|
4
|
+
DB_PORT: '3306'
|
|
5
|
+
DB_USER: 'root'
|
|
6
|
+
DB_PASS: 'Rezolut@123'
|
|
7
|
+
DB_NAME: 'package_core'
|
|
8
|
+
MASTER_KEY: '0QZ2eRJv5oVILYnyBlC+FbSGVQiWKReh'
|
|
9
|
+
MASTER_IV: 'heuUQf5uPVtkotrFAOKUVw=='
|
|
10
|
+
SECRET_KEY: '1hard_to_guess_secret7890a'
|
|
11
|
+
CLIENT_ID: '324529881356-596sc8ksrb9lg01i7sktofqqqf0fv2ug.apps.googleusercontent.com'
|
|
12
|
+
CLIENT_SECRET: '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'
|
|
13
|
+
CALLBACK_URL: 'http://localhost:5001/auth/google/callback'
|
|
14
|
+
BASE_URL: 'http://localhost:5001'
|
|
15
|
+
DOMAIN_URL: 'rezolut.in'
|
|
16
|
+
OTP_EXPIRY: '10'
|
|
17
|
+
OTP_LENGTH: '6'
|
|
18
|
+
VERIFY_OTP: 'false'
|
|
19
|
+
DEFAULT_OTP: '123456'
|
|
20
|
+
TOKEN_EXPIRY: 1
|
|
21
|
+
AWS:
|
|
22
|
+
S3:
|
|
23
|
+
AWS_ACCESS_KEY_ID: 'AKIAYYKIBDDSQF3KILGE'
|
|
24
|
+
AWS_SECRET_KEY: 'PPDMAeO2mVUY1w2f46n/dlt5l9+7NY7E9twJb9LU'
|
|
25
|
+
AWS_REGION: 'ap-south-1'
|
|
26
|
+
BUCKET_NAME: 'testether'
|
|
27
|
+
|
|
28
|
+
FIREBASE_PROJECT_ID: 'sample-d7855'
|
|
29
|
+
FIREBASE_CLIENT_EMAIL: 'firebase-adminsdk-fbsvc@sample-d7855.iam.gserviceaccount.com'
|
|
30
|
+
FIREBASE_PRIVATE_KEY: '-----BEGIN PRIVATE KEY-----\nMIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCwGkpDLqFYgDEW\nnrraMja7ICmd05rJlsTachdcbB25Jm2cWMv1ROfNqWEZE3b14pUJOQgCAPI79Lgj\n+nQ0ATsUWK8Th2esKT9kaHg54UZg/qKNcnM5njVn+xIXc+i/AP/eSGBLich+uljU\nRMFuKrpcN1yNa3t0ib+kZxLHE43aFM9aJYOhET6/37DUdFMZ7GyzSLH3tuy1gB2G\negFyC7ulLnyMBFtL37XOtnP3BPwbjVWdP0qv9I6c0aacS5dQ4PNjCBklnkr6tPsc\n0MYr3VUrqNd/xNNOgk26TwoOaePjjjeaSeOGO2FcBG6WsYSLoZ3zmrlCT4vBlXL7\nPaZGQGfjAgMBAAECggEAHtsMZgcWmCYl87uuK6sesdzpzdCUz3uOVGQnObdr4dQc\n4ocgfYIsR3nFHJqvflfMG0iV4Zv+1YiEdzFcCPyqOF9tlbNk8+JqTBKN9j5FkZss\nKjKCg/b3jpeMTPWvM0BelLkDvliO+7108QR3C/GKo7vDiLfrcrjsDkdNH/qKIUq3\nkHeQE0QDLaoe3sLL4mjPp5A4SnnNBInk1gQZS2iVhTgDAAlSOz7JocyVZr3QhxmF\nUlKYzzJVx8zxIJm3ymH6z6NQNbWnBGWF1eeSZgYRkJG1q+Aqm3kRU/uT3V0HPsvZ\nrg4JGkzM/qFA2mpKuj4ysWGfvERKaEe4Ua84SvbcYQKBgQDjjvgBpQL2V71Ssr2E\nWJO/8Bv3TutWODWEvTRv3woQmuZwT81yIR3R8Ir59xLK0oBQCAONvKnrB5RM5yXQ\nmR6hvyKHFUKWTRqwGCFiD4fh0joO4zQTaFDdbqMYyeTJ4r2W66wXbRXtUvuwhDlg\nmDKamZ1E+EAoYkog6/iNYIcwswKBgQDGHO0n2r8yXYm7dM+EYONGLh76IvxVXJDn\nN8igi1zI2fV3cfUuwXaVlMYUa//aRkNXrBvPdXZEvfRRRLkm6dYLbFZ4Sq6T+NUT\noYNan13R59E6UcA/Oi5jitq9l4Wwn8pDaCbmmR1xdj7+r+H9A5N3BXHeuPLy0f48\nyEY8GF8kEQKBgQDCzhmyDrlCekoxCaMEMXAK2FqYlI8S+HuYbwD85EuRe4nai/as\nxXzpxKq04rbLuvjtim7AX8p20b47N4Y/1VVL0nyUd7bRRKCcL4wkjncc8wOQyyBB\nnQPdDGHDTtL1oY38LTTduR0UVf3xVsBn2OM5RlhEOuFxsPMUy+2z2fbh0QKBgBz3\nMb14AChvAKpFw+mI+PHT4HeWEeqxJAaKY20Fs0UyiO8z3DM/2gS4wdVOjRPu3f29\njjtg4y/dzhDryV5lJgR5jJL96FR+NzktjjT7xA3ipPav6TnVWd73+E9sDgHq+vms\nCrQAgwuJzGAUeygxE6h9RU7ZH7xc850TcyFqNs7hAoGBAMviFpBfpZz/amStyan+\nIPBGpDNV8dUrRE1POIdi6M44mlrI5hkD1ldVl3wjDJtg4VGkMosltLtvC0dDcIou\nuWZT8ENKM2G400PvQ9JJYah9dTkYQL1qMxvpX+biMoRSiAswPwRQjmBQUaz1aN1g\nmXv1VJBLLZVg8x1ckLDjeD20\n-----END PRIVATE KEY-----\n'
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
# DB_HOST: "13.234.25.234"
|
|
2
|
-
DB_HOST: 'localhost'
|
|
3
|
-
DB_PORT: '3306'
|
|
4
|
-
DB_USER: 'root'
|
|
5
|
-
DB_PASS: 'root'
|
|
6
|
-
DB_NAME: 'eth_core'
|
|
7
|
-
MASTER_KEY: '0QZ2eRJv5oVILYnyBlC+FbSGVQiWKReh'
|
|
8
|
-
MASTER_IV: 'heuUQf5uPVtkotrFAOKUVw=='
|
|
9
|
-
SECRET_KEY: '1hard_to_guess_secret7890a'
|
|
10
|
-
CLIENT_ID: '324529881356-596sc8ksrb9lg01i7sktofqqqf0fv2ug.apps.googleusercontent.com'
|
|
11
|
-
CLIENT_SECRET: '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'
|
|
12
|
-
CALLBACK_URL: 'http://localhost:3000/auth/google/callback'
|
|
13
|
-
OTP_EXPIRY: '10'
|
|
14
|
-
OTP_LENGTH: '6'
|
|
15
|
-
VERIFY_OTP: 'false'
|
|
16
|
-
DEFAULT_OTP: '123456'
|
|
17
|
-
TOKEN_EXPIRY: 1
|
|
18
|
-
AWS:
|
|
19
|
-
S3:
|
|
20
|
-
AWS_ACCESS_KEY_ID: 'AKIAYYKIBDDSQF3KILGE'
|
|
21
|
-
AWS_SECRET_KEY: 'PPDMAeO2mVUY1w2f46n/dlt5l9+7NY7E9twJb9LU'
|
|
22
|
-
AWS_REGION: 'ap-south-1'
|
|
23
|
-
BUCKET_NAME: 'testether'
|
|
1
|
+
# DB_HOST: "13.234.25.234"
|
|
2
|
+
DB_HOST: 'localhost'
|
|
3
|
+
DB_PORT: '3306'
|
|
4
|
+
DB_USER: 'root'
|
|
5
|
+
DB_PASS: 'root'
|
|
6
|
+
DB_NAME: 'eth_core'
|
|
7
|
+
MASTER_KEY: '0QZ2eRJv5oVILYnyBlC+FbSGVQiWKReh'
|
|
8
|
+
MASTER_IV: 'heuUQf5uPVtkotrFAOKUVw=='
|
|
9
|
+
SECRET_KEY: '1hard_to_guess_secret7890a'
|
|
10
|
+
CLIENT_ID: '324529881356-596sc8ksrb9lg01i7sktofqqqf0fv2ug.apps.googleusercontent.com'
|
|
11
|
+
CLIENT_SECRET: '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'
|
|
12
|
+
CALLBACK_URL: 'http://localhost:3000/auth/google/callback'
|
|
13
|
+
OTP_EXPIRY: '10'
|
|
14
|
+
OTP_LENGTH: '6'
|
|
15
|
+
VERIFY_OTP: 'false'
|
|
16
|
+
DEFAULT_OTP: '123456'
|
|
17
|
+
TOKEN_EXPIRY: 1
|
|
18
|
+
AWS:
|
|
19
|
+
S3:
|
|
20
|
+
AWS_ACCESS_KEY_ID: 'AKIAYYKIBDDSQF3KILGE'
|
|
21
|
+
AWS_SECRET_KEY: 'PPDMAeO2mVUY1w2f46n/dlt5l9+7NY7E9twJb9LU'
|
|
22
|
+
AWS_REGION: 'ap-south-1'
|
|
23
|
+
BUCKET_NAME: 'testether'
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Module } from '@nestjs/common';
|
|
2
|
-
import { ConfigModule } from '@nestjs/config';
|
|
3
|
-
import propertiesYaml from './properties.yaml';
|
|
4
|
-
@Module({
|
|
5
|
-
imports: [
|
|
6
|
-
ConfigModule.forRoot({
|
|
7
|
-
load: [propertiesYaml],
|
|
8
|
-
isGlobal: true,
|
|
9
|
-
}),
|
|
10
|
-
],
|
|
11
|
-
})
|
|
12
|
-
export default class Properties {}
|
|
1
|
+
import { Module } from '@nestjs/common';
|
|
2
|
+
import { ConfigModule } from '@nestjs/config';
|
|
3
|
+
import propertiesYaml from './properties.yaml';
|
|
4
|
+
@Module({
|
|
5
|
+
imports: [
|
|
6
|
+
ConfigModule.forRoot({
|
|
7
|
+
load: [propertiesYaml],
|
|
8
|
+
isGlobal: true,
|
|
9
|
+
}),
|
|
10
|
+
],
|
|
11
|
+
})
|
|
12
|
+
export default class Properties {}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { readFileSync } from 'fs';
|
|
2
|
-
import * as yaml from 'js-yaml';
|
|
3
|
-
import { join } from 'path';
|
|
4
|
-
|
|
5
|
-
const YAML_CONFIG = `/dev.properties.yaml`;
|
|
6
|
-
|
|
7
|
-
export default () => {
|
|
8
|
-
return yaml.load(
|
|
9
|
-
readFileSync(join(__dirname, YAML_CONFIG), 'utf8'),
|
|
10
|
-
) as Record<string, any>;
|
|
11
|
-
};
|
|
1
|
+
import { readFileSync } from 'fs';
|
|
2
|
+
import * as yaml from 'js-yaml';
|
|
3
|
+
import { join } from 'path';
|
|
4
|
+
|
|
5
|
+
const YAML_CONFIG = `/dev.properties.yaml`;
|
|
6
|
+
|
|
7
|
+
export default () => {
|
|
8
|
+
return yaml.load(
|
|
9
|
+
readFileSync(join(__dirname, YAML_CONFIG), 'utf8'),
|
|
10
|
+
) as Record<string, any>;
|
|
11
|
+
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
DB_HOST: "13.200.182.92"
|
|
2
|
-
DB_PORT: "3306"
|
|
3
|
-
DB_USER: "root"
|
|
4
|
-
DB_PASS: "ether"
|
|
5
|
-
DB_NAME: "ether_core"
|
|
6
|
-
MASTER_KEY: "0QZ2eRJv5oVILYnyBlC+FbSGVQiWKReh"
|
|
7
|
-
MASTER_IV: "heuUQf5uPVtkotrFAOKUVw=="
|
|
8
|
-
SECRET_KEY: "1hard_to_guess_secret7890a"
|
|
9
|
-
CLIENT_ID: "324529881356-596sc8ksrb9lg01i7sktofqqqf0fv2ug.apps.googleusercontent.com"
|
|
10
|
-
CLIENT_SECRET: "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"
|
|
11
|
-
CALLBACK_URL: "http://localhost:3000/auth/google/callback"
|
|
12
|
-
OTP_EXPIRY: "10"
|
|
13
|
-
OTP_LENGTH: "6"
|
|
14
|
-
VERIFY_OTP: "false"
|
|
15
|
-
DEFAULT_OTP: "123456"
|
|
1
|
+
DB_HOST: "13.200.182.92"
|
|
2
|
+
DB_PORT: "3306"
|
|
3
|
+
DB_USER: "root"
|
|
4
|
+
DB_PASS: "ether"
|
|
5
|
+
DB_NAME: "ether_core"
|
|
6
|
+
MASTER_KEY: "0QZ2eRJv5oVILYnyBlC+FbSGVQiWKReh"
|
|
7
|
+
MASTER_IV: "heuUQf5uPVtkotrFAOKUVw=="
|
|
8
|
+
SECRET_KEY: "1hard_to_guess_secret7890a"
|
|
9
|
+
CLIENT_ID: "324529881356-596sc8ksrb9lg01i7sktofqqqf0fv2ug.apps.googleusercontent.com"
|
|
10
|
+
CLIENT_SECRET: "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"
|
|
11
|
+
CALLBACK_URL: "http://localhost:3000/auth/google/callback"
|
|
12
|
+
OTP_EXPIRY: "10"
|
|
13
|
+
OTP_LENGTH: "6"
|
|
14
|
+
VERIFY_OTP: "false"
|
|
15
|
+
DEFAULT_OTP: "123456"
|
|
16
16
|
TOKEN_EXPIRY: 1
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ExcelsheetData } from './excelsheet-data.dto';
|
|
2
|
-
|
|
3
|
-
export class ExcelData {
|
|
4
|
-
filePath: string;
|
|
5
|
-
sheetList: ExcelsheetData[] = [];
|
|
6
|
-
|
|
7
|
-
addSheet(sheetData: ExcelsheetData) {
|
|
8
|
-
this.sheetList.push(sheetData);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
addSheetAt(sheetData: ExcelsheetData, position: number) {
|
|
12
|
-
this.sheetList.splice(position, 0, sheetData);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
1
|
+
import { ExcelsheetData } from './excelsheet-data.dto';
|
|
2
|
+
|
|
3
|
+
export class ExcelData {
|
|
4
|
+
filePath: string;
|
|
5
|
+
sheetList: ExcelsheetData[] = [];
|
|
6
|
+
|
|
7
|
+
addSheet(sheetData: ExcelsheetData) {
|
|
8
|
+
this.sheetList.push(sheetData);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
addSheetAt(sheetData: ExcelsheetData, position: number) {
|
|
12
|
+
this.sheetList.splice(position, 0, sheetData);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export interface ExcelsheetData {
|
|
2
|
-
sheetName: string;
|
|
3
|
-
headers: string[];
|
|
4
|
-
rowList: any[][];
|
|
5
|
-
}
|
|
1
|
+
export interface ExcelsheetData {
|
|
2
|
+
sheetName: string;
|
|
3
|
+
headers: string[];
|
|
4
|
+
rowList: any[][];
|
|
5
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export class Base64Util {
|
|
2
|
-
static encode(byteArray: Uint8Array): string {
|
|
3
|
-
return Buffer.from(byteArray).toString('base64');
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
static decode(base64String: string): Uint8Array {
|
|
7
|
-
if (typeof Buffer !== 'undefined') {
|
|
8
|
-
return Uint8Array.from(Buffer.from(base64String, 'base64'));
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
const binaryString = atob(base64String);
|
|
12
|
-
const byteArray = new Uint8Array(binaryString.length);
|
|
13
|
-
for (let i = 0; i < binaryString.length; i++) {
|
|
14
|
-
byteArray[i] = binaryString.charCodeAt(i);
|
|
15
|
-
}
|
|
16
|
-
return byteArray;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
1
|
+
export class Base64Util {
|
|
2
|
+
static encode(byteArray: Uint8Array): string {
|
|
3
|
+
return Buffer.from(byteArray).toString('base64');
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
static decode(base64String: string): Uint8Array {
|
|
7
|
+
if (typeof Buffer !== 'undefined') {
|
|
8
|
+
return Uint8Array.from(Buffer.from(base64String, 'base64'));
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
const binaryString = atob(base64String);
|
|
12
|
+
const byteArray = new Uint8Array(binaryString.length);
|
|
13
|
+
for (let i = 0; i < binaryString.length; i++) {
|
|
14
|
+
byteArray[i] = binaryString.charCodeAt(i);
|
|
15
|
+
}
|
|
16
|
+
return byteArray;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { Injectable } from '@nestjs/common';
|
|
2
|
-
|
|
3
|
-
@Injectable()
|
|
4
|
-
export class ClockIDGenService {
|
|
5
|
-
private _counter = 0n;
|
|
6
|
-
private timestampBits = 42;
|
|
7
|
-
private timestampMask = BigInt(
|
|
8
|
-
Math.floor(Math.pow(2, this.timestampBits)) - 1,
|
|
9
|
-
);
|
|
10
|
-
private counterBits = 10;
|
|
11
|
-
private counterMask = BigInt(Math.floor(Math.pow(2, this.counterBits)) - 1);
|
|
12
|
-
|
|
13
|
-
idGenerator(prefix?: string): string {
|
|
14
|
-
const timestamp = BigInt(Date.now()) & this.timestampMask;
|
|
15
|
-
const counter = BigInt(this._counter++) & this.counterMask;
|
|
16
|
-
let now = timestamp << BigInt(this.counterBits);
|
|
17
|
-
now = now | counter;
|
|
18
|
-
const id = now.toString(36).toUpperCase();
|
|
19
|
-
return prefix ? prefix + id : id;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
1
|
+
import { Injectable } from '@nestjs/common';
|
|
2
|
+
|
|
3
|
+
@Injectable()
|
|
4
|
+
export class ClockIDGenService {
|
|
5
|
+
private _counter = 0n;
|
|
6
|
+
private timestampBits = 42;
|
|
7
|
+
private timestampMask = BigInt(
|
|
8
|
+
Math.floor(Math.pow(2, this.timestampBits)) - 1,
|
|
9
|
+
);
|
|
10
|
+
private counterBits = 10;
|
|
11
|
+
private counterMask = BigInt(Math.floor(Math.pow(2, this.counterBits)) - 1);
|
|
12
|
+
|
|
13
|
+
idGenerator(prefix?: string): string {
|
|
14
|
+
const timestamp = BigInt(Date.now()) & this.timestampMask;
|
|
15
|
+
const counter = BigInt(this._counter++) & this.counterMask;
|
|
16
|
+
let now = timestamp << BigInt(this.counterBits);
|
|
17
|
+
now = now | counter;
|
|
18
|
+
const id = now.toString(36).toUpperCase();
|
|
19
|
+
return prefix ? prefix + id : id;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
export class CodeGeneratorService {
|
|
2
|
-
static generateCode(input_string: string) {
|
|
3
|
-
if (!input_string) {
|
|
4
|
-
throw new Error('Input string cannot be empty');
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
// Step 1: Trim, to lowercase
|
|
8
|
-
let code = input_string.trim().toLowerCase();
|
|
9
|
-
|
|
10
|
-
// Step 2: Replace all whitespace with underscores
|
|
11
|
-
code = code.replace(/\s+/g, '_');
|
|
12
|
-
|
|
13
|
-
// Step 3: Remove all non-alphanumeric and non-underscore characters
|
|
14
|
-
const sanitizedCode = code.replace(/[^a-z0-9_]/g, '');
|
|
15
|
-
|
|
16
|
-
if (!sanitizedCode) {
|
|
17
|
-
throw new Error('Invalid input string, cannot generate code');
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
return sanitizedCode;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
1
|
+
export class CodeGeneratorService {
|
|
2
|
+
static generateCode(input_string: string) {
|
|
3
|
+
if (!input_string) {
|
|
4
|
+
throw new Error('Input string cannot be empty');
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
// Step 1: Trim, to lowercase
|
|
8
|
+
let code = input_string.trim().toLowerCase();
|
|
9
|
+
|
|
10
|
+
// Step 2: Replace all whitespace with underscores
|
|
11
|
+
code = code.replace(/\s+/g, '_');
|
|
12
|
+
|
|
13
|
+
// Step 3: Remove all non-alphanumeric and non-underscore characters
|
|
14
|
+
const sanitizedCode = code.replace(/[^a-z0-9_]/g, '');
|
|
15
|
+
|
|
16
|
+
if (!sanitizedCode) {
|
|
17
|
+
throw new Error('Invalid input string, cannot generate code');
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
return sanitizedCode;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { Injectable } from '@nestjs/common';
|
|
2
|
-
|
|
3
|
-
@Injectable()
|
|
4
|
-
export class DateUtil {
|
|
5
|
-
static formatDate(date: Date, format: string): string {
|
|
6
|
-
const map: { [key: string]: string } = {
|
|
7
|
-
dd: String(date.getDate()).padStart(2, '0'),
|
|
8
|
-
MM: String(date.getMonth() + 1).padStart(2, '0'),
|
|
9
|
-
yyyy: String(date.getFullYear()),
|
|
10
|
-
HH: String(date.getHours()).padStart(2, '0'),
|
|
11
|
-
mm: String(date.getMinutes()).padStart(2, '0'),
|
|
12
|
-
ss: String(date.getSeconds()).padStart(2, '0'),
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
return format.replace(/dd|MM|yyyy|HH|mm|ss/g, (matched) => map[matched]);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
1
|
+
import { Injectable } from '@nestjs/common';
|
|
2
|
+
|
|
3
|
+
@Injectable()
|
|
4
|
+
export class DateUtil {
|
|
5
|
+
static formatDate(date: Date, format: string): string {
|
|
6
|
+
const map: { [key: string]: string } = {
|
|
7
|
+
dd: String(date.getDate()).padStart(2, '0'),
|
|
8
|
+
MM: String(date.getMonth() + 1).padStart(2, '0'),
|
|
9
|
+
yyyy: String(date.getFullYear()),
|
|
10
|
+
HH: String(date.getHours()).padStart(2, '0'),
|
|
11
|
+
mm: String(date.getMinutes()).padStart(2, '0'),
|
|
12
|
+
ss: String(date.getSeconds()).padStart(2, '0'),
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
return format.replace(/dd|MM|yyyy|HH|mm|ss/g, (matched) => map[matched]);
|
|
16
|
+
}
|
|
17
|
+
}
|