skyeye-svc-common-utils 1.0.21 → 1.0.23
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/.env +2 -2
- package/.github/dependabot.yml +17 -17
- package/.vscode/settings.json +25 -25
- package/README.md +30 -30
- package/package.json +81 -81
- package/pull_request_template.md +41 -41
- package/sonar-project.properties +11 -11
- package/src/index.ts +27 -27
- package/src/interfaces/apiResponse.ts +6 -6
- package/src/interfaces/grpcListRequest.ts +5 -5
- package/src/interfaces/grpcServiceResponse.ts +7 -7
- package/src/interfaces/index.ts +15 -15
- package/src/interfaces/pagination.ts +10 -10
- package/src/interfaces/serviceResponse.ts +7 -7
- package/src/interfaces/subcriptionFeaturePermissionModel.ts +19 -19
- package/src/interfaces/userInfo.ts +43 -43
- package/src/lib/azure/azureBlobStorage.ts +102 -102
- package/src/lib/azure/azureKeyVault.ts +14 -14
- package/src/lib/azure/azureServiceBusQueue.ts +24 -24
- package/src/lib/azure/azureStorageQueue.ts +11 -11
- package/src/lib/azure/azureTableStorage.ts +45 -45
- package/src/lib/httpClient.ts +33 -33
- package/src/lib/redisClient.ts +121 -121
- package/src/lib/sendGridClient.ts +56 -56
- package/src/models/baseControllerParameter.ts +15 -15
- package/src/models/campaign/grpcCampaignEventModel.ts +50 -50
- package/src/models/campaign/grpcCampaignEventUserModel.ts +34 -34
- package/src/models/campaign/grpcCampaignUserModel.ts +29 -29
- package/src/models/campaign/index.ts +8 -8
- package/src/models/emailtemplate/grpcEmailTemplateModel.ts +19 -19
- package/src/models/emailtemplate/index.ts +3 -3
- package/src/models/index.ts +12 -12
- package/src/models/organisation/grpcOrganisationModel.ts +29 -29
- package/src/models/organisation/index.ts +3 -3
- package/src/models/rbac/grpcRoleModel.ts +21 -21
- package/src/models/rbac/index.ts +3 -3
- package/src/models/scoutai/grpcAIDETrainingResultListModel.ts +13 -13
- package/src/models/scoutai/grpcNerlCorrectionModel.ts +19 -19
- package/src/models/scoutai/grpcScoutAIListReq.ts +22 -22
- package/src/models/scoutai/grpcScoutAIModel.ts +17 -17
- package/src/models/scoutai/grpcScoutAIResult.ts +18 -18
- package/src/models/scoutai/grpcTaasConfigAIModel.ts +10 -10
- package/src/models/scoutai/grpcTaasConfigModel.ts +19 -19
- package/src/models/scoutai/grpcTaasConfigUserModel.ts +14 -14
- package/src/models/scoutai/grpcTagItemModel.ts +15 -15
- package/src/models/scoutai/grpcVisualisationModel.ts +18 -18
- package/src/models/scoutai/grpcVisualisationPositionModel.ts +12 -12
- package/src/models/scoutai/index.ts +20 -20
- package/src/models/search/grpcAggregation.ts +12 -12
- package/src/models/search/grpcCmsModel.ts +7 -7
- package/src/models/search/grpcCommonModels.ts +149 -149
- package/src/models/search/grpcCompanyAggregation.ts +21 -21
- package/src/models/search/grpcCompanyConnectModel.ts +25 -25
- package/src/models/search/grpcCompanyListReq.ts +50 -50
- package/src/models/search/grpcCompanyModel.ts +99 -99
- package/src/models/search/grpcCompanyNewsCountModel.ts +16 -16
- package/src/models/search/grpcCompanyPeriodMentionModel.ts +33 -33
- package/src/models/search/grpcCompanyPreviewModel.ts +49 -49
- package/src/models/search/grpcContentAggregation.ts +7 -7
- package/src/models/search/grpcContentListReq.ts +30 -30
- package/src/models/search/grpcContentModel.ts +64 -64
- package/src/models/search/grpcContentPreviewModel.ts +59 -59
- package/src/models/search/grpcContentTabsModel.ts +17 -17
- package/src/models/search/grpcCountryModel.ts +23 -23
- package/src/models/search/grpcFinancialModel.ts +293 -293
- package/src/models/search/grpcMarketModel.ts +17 -17
- package/src/models/search/grpcMentionContentCountModel.ts +4 -4
- package/src/models/search/index.ts +42 -42
- package/src/models/subscription/applicationFeatureModel.ts +12 -12
- package/src/models/subscription/featureModel.ts +13 -13
- package/src/models/subscription/grpcSubscriptionModel.ts +9 -9
- package/src/models/subscription/index.ts +19 -19
- package/src/models/subscription/licenseModel.ts +9 -9
- package/src/models/subscription/licenseUserModel.ts +7 -7
- package/src/models/subscription/subscriptionFeatureModel.ts +9 -9
- package/src/models/subscription/subscriptionModel.ts +24 -24
- package/src/models/subscription/subscriptionPlanFeatureModel.ts +8 -8
- package/src/models/subscription/subscriptionPlanModel.ts +27 -27
- package/src/models/user/grpcAccountInfoModel.ts +4 -4
- package/src/models/user/grpcAppUserModel.ts +39 -39
- package/src/models/user/grpcAppUserOrganisationStatistic.ts +12 -12
- package/src/models/user/grpcAppUserRoleModel.ts +10 -10
- package/src/models/user/grpcBrowseHistoryModel.ts +19 -19
- package/src/models/user/grpcDailyDigestUserModel.ts +23 -23
- package/src/models/user/grpcNotificationSettingModel.ts +28 -28
- package/src/models/user/grpcSavedSearchModel.ts +19 -19
- package/src/models/user/grpcSearchHistoryModel.ts +16 -16
- package/src/models/user/grpcTargetListEntityModel.ts +4 -4
- package/src/models/user/grpcTargetListExportModel.ts +19 -19
- package/src/models/user/grpcTargetListItemModel.ts +16 -16
- package/src/models/user/grpcTargetListModel.ts +21 -21
- package/src/models/user/index.ts +27 -27
- package/src/utils/appConfig.ts +52 -52
- package/src/utils/appConst.ts +148 -148
- package/src/utils/authentication/auth.ts +141 -140
- package/src/utils/authentication/role.ts +147 -145
- package/src/utils/baseClass/baseController.ts +161 -161
- package/src/utils/baseClass/baseService.ts +11 -11
- package/src/utils/commonUtils/appConfigKeyRetriever.ts +25 -25
- package/src/utils/commonUtils/appUtils.ts +138 -138
- package/src/utils/commonUtils/cronUtils.ts +24 -24
- package/src/utils/commonUtils/index.ts +5 -5
- package/src/utils/commonUtils/jwtUtils.ts +41 -41
- package/src/utils/commonUtils/responseUtils.ts +91 -91
- package/src/utils/commonUtils/validation.ts +60 -60
- package/src/utils/documentation/swagger.ts +32 -32
- package/src/utils/logger/logger.ts +31 -31
- package/src/utils/logger/morganLogger.ts +26 -26
- package/src/utils/middleware/handleError.ts +9 -9
- package/src/utils/middleware/isPublicUser.ts +33 -33
- package/src/utils/middleware/overwriteConst.ts +65 -65
- package/src/utils/middleware/startdbConnection.ts +17 -17
- package/src/utils/monitoring/apm.ts +80 -80
- package/tsconfig.json +29 -29
- package/dist/index.d.ts +0 -27
- package/dist/index.js +0 -41
- package/dist/index.js.map +0 -1
- package/dist/interfaces/apiResponse.d.ts +0 -7
- package/dist/interfaces/apiResponse.js +0 -3
- package/dist/interfaces/apiResponse.js.map +0 -1
- package/dist/interfaces/grpcListRequest.d.ts +0 -6
- package/dist/interfaces/grpcListRequest.js +0 -3
- package/dist/interfaces/grpcListRequest.js.map +0 -1
- package/dist/interfaces/grpcServiceResponse.d.ts +0 -8
- package/dist/interfaces/grpcServiceResponse.js +0 -3
- package/dist/interfaces/grpcServiceResponse.js.map +0 -1
- package/dist/interfaces/index.d.ts +0 -8
- package/dist/interfaces/index.js +0 -10
- package/dist/interfaces/index.js.map +0 -1
- package/dist/interfaces/pagination.d.ts +0 -6
- package/dist/interfaces/pagination.js +0 -12
- package/dist/interfaces/pagination.js.map +0 -1
- package/dist/interfaces/serviceResponse.d.ts +0 -8
- package/dist/interfaces/serviceResponse.js +0 -3
- package/dist/interfaces/serviceResponse.js.map +0 -1
- package/dist/interfaces/subcriptionFeaturePermissionModel.d.ts +0 -8
- package/dist/interfaces/subcriptionFeaturePermissionModel.js +0 -14
- package/dist/interfaces/subcriptionFeaturePermissionModel.js.map +0 -1
- package/dist/interfaces/userInfo.d.ts +0 -17
- package/dist/interfaces/userInfo.js +0 -21
- package/dist/interfaces/userInfo.js.map +0 -1
- package/dist/lib/azure/azureBlobStorage.d.ts +0 -4
- package/dist/lib/azure/azureBlobStorage.js +0 -135
- package/dist/lib/azure/azureBlobStorage.js.map +0 -1
- package/dist/lib/azure/azureKeyVault.d.ts +0 -1
- package/dist/lib/azure/azureKeyVault.js +0 -27
- package/dist/lib/azure/azureKeyVault.js.map +0 -1
- package/dist/lib/azure/azureServiceBusQueue.d.ts +0 -1
- package/dist/lib/azure/azureServiceBusQueue.js +0 -42
- package/dist/lib/azure/azureServiceBusQueue.js.map +0 -1
- package/dist/lib/azure/azureStorageQueue.d.ts +0 -1
- package/dist/lib/azure/azureStorageQueue.js +0 -26
- package/dist/lib/azure/azureStorageQueue.js.map +0 -1
- package/dist/lib/azure/azureTableStorage.d.ts +0 -4
- package/dist/lib/azure/azureTableStorage.js +0 -66
- package/dist/lib/azure/azureTableStorage.js.map +0 -1
- package/dist/lib/httpClient.d.ts +0 -3
- package/dist/lib/httpClient.js +0 -49
- package/dist/lib/httpClient.js.map +0 -1
- package/dist/lib/redisClient.d.ts +0 -45
- package/dist/lib/redisClient.js +0 -153
- package/dist/lib/redisClient.js.map +0 -1
- package/dist/lib/sendGridClient.d.ts +0 -27
- package/dist/lib/sendGridClient.js +0 -62
- package/dist/lib/sendGridClient.js.map +0 -1
- package/dist/models/baseControllerParameter.d.ts +0 -9
- package/dist/models/baseControllerParameter.js +0 -24
- package/dist/models/baseControllerParameter.js.map +0 -1
- package/dist/models/campaign/grpcCampaignEventModel.d.ts +0 -18
- package/dist/models/campaign/grpcCampaignEventModel.js +0 -24
- package/dist/models/campaign/grpcCampaignEventModel.js.map +0 -1
- package/dist/models/campaign/grpcCampaignEventUserModel.d.ts +0 -13
- package/dist/models/campaign/grpcCampaignEventUserModel.js +0 -19
- package/dist/models/campaign/grpcCampaignEventUserModel.js.map +0 -1
- package/dist/models/campaign/grpcCampaignUserModel.d.ts +0 -12
- package/dist/models/campaign/grpcCampaignUserModel.js +0 -16
- package/dist/models/campaign/grpcCampaignUserModel.js.map +0 -1
- package/dist/models/campaign/index.d.ts +0 -4
- package/dist/models/campaign/index.js +0 -10
- package/dist/models/campaign/index.js.map +0 -1
- package/dist/models/emailtemplate/grpcEmailTemplateModel.d.ts +0 -10
- package/dist/models/emailtemplate/grpcEmailTemplateModel.js +0 -16
- package/dist/models/emailtemplate/grpcEmailTemplateModel.js.map +0 -1
- package/dist/models/emailtemplate/index.d.ts +0 -2
- package/dist/models/emailtemplate/index.js +0 -6
- package/dist/models/emailtemplate/index.js.map +0 -1
- package/dist/models/index.d.ts +0 -10
- package/dist/models/index.js +0 -24
- package/dist/models/index.js.map +0 -1
- package/dist/models/organisation/grpcOrganisationModel.d.ts +0 -15
- package/dist/models/organisation/grpcOrganisationModel.js +0 -21
- package/dist/models/organisation/grpcOrganisationModel.js.map +0 -1
- package/dist/models/organisation/index.d.ts +0 -2
- package/dist/models/organisation/index.js +0 -6
- package/dist/models/organisation/index.js.map +0 -1
- package/dist/models/rbac/grpcRoleModel.d.ts +0 -9
- package/dist/models/rbac/grpcRoleModel.js +0 -15
- package/dist/models/rbac/grpcRoleModel.js.map +0 -1
- package/dist/models/rbac/index.d.ts +0 -2
- package/dist/models/rbac/index.js +0 -6
- package/dist/models/rbac/index.js.map +0 -1
- package/dist/models/scoutai/grpcAIDETrainingResultListModel.d.ts +0 -8
- package/dist/models/scoutai/grpcAIDETrainingResultListModel.js +0 -14
- package/dist/models/scoutai/grpcAIDETrainingResultListModel.js.map +0 -1
- package/dist/models/scoutai/grpcNerlCorrectionModel.d.ts +0 -11
- package/dist/models/scoutai/grpcNerlCorrectionModel.js +0 -16
- package/dist/models/scoutai/grpcNerlCorrectionModel.js.map +0 -1
- package/dist/models/scoutai/grpcScoutAIListReq.d.ts +0 -12
- package/dist/models/scoutai/grpcScoutAIListReq.js +0 -17
- package/dist/models/scoutai/grpcScoutAIListReq.js.map +0 -1
- package/dist/models/scoutai/grpcScoutAIModel.d.ts +0 -10
- package/dist/models/scoutai/grpcScoutAIModel.js +0 -16
- package/dist/models/scoutai/grpcScoutAIModel.js.map +0 -1
- package/dist/models/scoutai/grpcScoutAIResult.d.ts +0 -10
- package/dist/models/scoutai/grpcScoutAIResult.js +0 -16
- package/dist/models/scoutai/grpcScoutAIResult.js.map +0 -1
- package/dist/models/scoutai/grpcTaasConfigAIModel.d.ts +0 -6
- package/dist/models/scoutai/grpcTaasConfigAIModel.js +0 -12
- package/dist/models/scoutai/grpcTaasConfigAIModel.js.map +0 -1
- package/dist/models/scoutai/grpcTaasConfigModel.d.ts +0 -11
- package/dist/models/scoutai/grpcTaasConfigModel.js +0 -15
- package/dist/models/scoutai/grpcTaasConfigModel.js.map +0 -1
- package/dist/models/scoutai/grpcTaasConfigUserModel.d.ts +0 -8
- package/dist/models/scoutai/grpcTaasConfigUserModel.js +0 -14
- package/dist/models/scoutai/grpcTaasConfigUserModel.js.map +0 -1
- package/dist/models/scoutai/grpcTagItemModel.d.ts +0 -9
- package/dist/models/scoutai/grpcTagItemModel.js +0 -15
- package/dist/models/scoutai/grpcTagItemModel.js.map +0 -1
- package/dist/models/scoutai/grpcVisualisationModel.d.ts +0 -11
- package/dist/models/scoutai/grpcVisualisationModel.js +0 -15
- package/dist/models/scoutai/grpcVisualisationModel.js.map +0 -1
- package/dist/models/scoutai/grpcVisualisationPositionModel.d.ts +0 -6
- package/dist/models/scoutai/grpcVisualisationPositionModel.js +0 -11
- package/dist/models/scoutai/grpcVisualisationPositionModel.js.map +0 -1
- package/dist/models/scoutai/index.d.ts +0 -10
- package/dist/models/scoutai/index.js +0 -22
- package/dist/models/scoutai/index.js.map +0 -1
- package/dist/models/search/grpcAggregation.d.ts +0 -9
- package/dist/models/search/grpcAggregation.js +0 -14
- package/dist/models/search/grpcAggregation.js.map +0 -1
- package/dist/models/search/grpcCmsModel.d.ts +0 -5
- package/dist/models/search/grpcCmsModel.js +0 -11
- package/dist/models/search/grpcCmsModel.js.map +0 -1
- package/dist/models/search/grpcCommonModels.d.ts +0 -109
- package/dist/models/search/grpcCommonModels.js +0 -80
- package/dist/models/search/grpcCommonModels.js.map +0 -1
- package/dist/models/search/grpcCompanyAggregation.d.ts +0 -14
- package/dist/models/search/grpcCompanyAggregation.js +0 -16
- package/dist/models/search/grpcCompanyAggregation.js.map +0 -1
- package/dist/models/search/grpcCompanyConnectModel.d.ts +0 -14
- package/dist/models/search/grpcCompanyConnectModel.js +0 -18
- package/dist/models/search/grpcCompanyConnectModel.js.map +0 -1
- package/dist/models/search/grpcCompanyListReq.d.ts +0 -26
- package/dist/models/search/grpcCompanyListReq.js +0 -32
- package/dist/models/search/grpcCompanyListReq.js.map +0 -1
- package/dist/models/search/grpcCompanyModel.d.ts +0 -43
- package/dist/models/search/grpcCompanyModel.js +0 -46
- package/dist/models/search/grpcCompanyModel.js.map +0 -1
- package/dist/models/search/grpcCompanyNewsCountModel.d.ts +0 -9
- package/dist/models/search/grpcCompanyNewsCountModel.js +0 -14
- package/dist/models/search/grpcCompanyNewsCountModel.js.map +0 -1
- package/dist/models/search/grpcCompanyPeriodMentionModel.d.ts +0 -18
- package/dist/models/search/grpcCompanyPeriodMentionModel.js +0 -22
- package/dist/models/search/grpcCompanyPeriodMentionModel.js.map +0 -1
- package/dist/models/search/grpcCompanyPreviewModel.d.ts +0 -26
- package/dist/models/search/grpcCompanyPreviewModel.js +0 -31
- package/dist/models/search/grpcCompanyPreviewModel.js.map +0 -1
- package/dist/models/search/grpcContentAggregation.d.ts +0 -8
- package/dist/models/search/grpcContentAggregation.js +0 -7
- package/dist/models/search/grpcContentAggregation.js.map +0 -1
- package/dist/models/search/grpcContentListReq.d.ts +0 -16
- package/dist/models/search/grpcContentListReq.js +0 -22
- package/dist/models/search/grpcContentListReq.js.map +0 -1
- package/dist/models/search/grpcContentModel.d.ts +0 -32
- package/dist/models/search/grpcContentModel.js +0 -37
- package/dist/models/search/grpcContentModel.js.map +0 -1
- package/dist/models/search/grpcContentPreviewModel.d.ts +0 -28
- package/dist/models/search/grpcContentPreviewModel.js +0 -33
- package/dist/models/search/grpcContentPreviewModel.js.map +0 -1
- package/dist/models/search/grpcContentTabsModel.d.ts +0 -10
- package/dist/models/search/grpcContentTabsModel.js +0 -15
- package/dist/models/search/grpcContentTabsModel.js.map +0 -1
- package/dist/models/search/grpcCountryModel.d.ts +0 -13
- package/dist/models/search/grpcCountryModel.js +0 -19
- package/dist/models/search/grpcCountryModel.js.map +0 -1
- package/dist/models/search/grpcFinancialModel.d.ts +0 -292
- package/dist/models/search/grpcFinancialModel.js +0 -7
- package/dist/models/search/grpcFinancialModel.js.map +0 -1
- package/dist/models/search/grpcMarketModel.d.ts +0 -16
- package/dist/models/search/grpcMarketModel.js +0 -6
- package/dist/models/search/grpcMarketModel.js.map +0 -1
- package/dist/models/search/grpcMentionContentCountModel.d.ts +0 -5
- package/dist/models/search/grpcMentionContentCountModel.js +0 -7
- package/dist/models/search/grpcMentionContentCountModel.js.map +0 -1
- package/dist/models/search/index.d.ts +0 -16
- package/dist/models/search/index.js +0 -44
- package/dist/models/search/index.js.map +0 -1
- package/dist/models/subscription/applicationFeatureModel.d.ts +0 -7
- package/dist/models/subscription/applicationFeatureModel.js +0 -12
- package/dist/models/subscription/applicationFeatureModel.js.map +0 -1
- package/dist/models/subscription/featureModel.d.ts +0 -7
- package/dist/models/subscription/featureModel.js +0 -13
- package/dist/models/subscription/featureModel.js.map +0 -1
- package/dist/models/subscription/grpcSubscriptionModel.d.ts +0 -6
- package/dist/models/subscription/grpcSubscriptionModel.js +0 -12
- package/dist/models/subscription/grpcSubscriptionModel.js.map +0 -1
- package/dist/models/subscription/index.d.ts +0 -10
- package/dist/models/subscription/index.js +0 -22
- package/dist/models/subscription/index.js.map +0 -1
- package/dist/models/subscription/licenseModel.d.ts +0 -6
- package/dist/models/subscription/licenseModel.js +0 -12
- package/dist/models/subscription/licenseModel.js.map +0 -1
- package/dist/models/subscription/licenseUserModel.d.ts +0 -5
- package/dist/models/subscription/licenseUserModel.js +0 -11
- package/dist/models/subscription/licenseUserModel.js.map +0 -1
- package/dist/models/subscription/subscriptionFeatureModel.d.ts +0 -6
- package/dist/models/subscription/subscriptionFeatureModel.js +0 -12
- package/dist/models/subscription/subscriptionFeatureModel.js.map +0 -1
- package/dist/models/subscription/subscriptionModel.d.ts +0 -14
- package/dist/models/subscription/subscriptionModel.js +0 -19
- package/dist/models/subscription/subscriptionModel.js.map +0 -1
- package/dist/models/subscription/subscriptionPlanFeatureModel.d.ts +0 -5
- package/dist/models/subscription/subscriptionPlanFeatureModel.js +0 -11
- package/dist/models/subscription/subscriptionPlanFeatureModel.js.map +0 -1
- package/dist/models/subscription/subscriptionPlanModel.d.ts +0 -15
- package/dist/models/subscription/subscriptionPlanModel.js +0 -20
- package/dist/models/subscription/subscriptionPlanModel.js.map +0 -1
- package/dist/models/user/grpcAccountInfoModel.d.ts +0 -5
- package/dist/models/user/grpcAccountInfoModel.js +0 -7
- package/dist/models/user/grpcAccountInfoModel.js.map +0 -1
- package/dist/models/user/grpcAppUserModel.d.ts +0 -15
- package/dist/models/user/grpcAppUserModel.js +0 -20
- package/dist/models/user/grpcAppUserModel.js.map +0 -1
- package/dist/models/user/grpcAppUserOrganisationStatistic.d.ts +0 -6
- package/dist/models/user/grpcAppUserOrganisationStatistic.js +0 -12
- package/dist/models/user/grpcAppUserOrganisationStatistic.js.map +0 -1
- package/dist/models/user/grpcAppUserRoleModel.d.ts +0 -5
- package/dist/models/user/grpcAppUserRoleModel.js +0 -11
- package/dist/models/user/grpcAppUserRoleModel.js.map +0 -1
- package/dist/models/user/grpcBrowseHistoryModel.d.ts +0 -8
- package/dist/models/user/grpcBrowseHistoryModel.js +0 -14
- package/dist/models/user/grpcBrowseHistoryModel.js.map +0 -1
- package/dist/models/user/grpcDailyDigestUserModel.d.ts +0 -10
- package/dist/models/user/grpcDailyDigestUserModel.js +0 -15
- package/dist/models/user/grpcDailyDigestUserModel.js.map +0 -1
- package/dist/models/user/grpcNotificationSettingModel.d.ts +0 -11
- package/dist/models/user/grpcNotificationSettingModel.js +0 -17
- package/dist/models/user/grpcNotificationSettingModel.js.map +0 -1
- package/dist/models/user/grpcSavedSearchModel.d.ts +0 -8
- package/dist/models/user/grpcSavedSearchModel.js +0 -14
- package/dist/models/user/grpcSavedSearchModel.js.map +0 -1
- package/dist/models/user/grpcSearchHistoryModel.d.ts +0 -7
- package/dist/models/user/grpcSearchHistoryModel.js +0 -13
- package/dist/models/user/grpcSearchHistoryModel.js.map +0 -1
- package/dist/models/user/grpcTargetListEntityModel.d.ts +0 -5
- package/dist/models/user/grpcTargetListEntityModel.js +0 -7
- package/dist/models/user/grpcTargetListEntityModel.js.map +0 -1
- package/dist/models/user/grpcTargetListExportModel.d.ts +0 -8
- package/dist/models/user/grpcTargetListExportModel.js +0 -14
- package/dist/models/user/grpcTargetListExportModel.js.map +0 -1
- package/dist/models/user/grpcTargetListItemModel.d.ts +0 -7
- package/dist/models/user/grpcTargetListItemModel.js +0 -13
- package/dist/models/user/grpcTargetListItemModel.js.map +0 -1
- package/dist/models/user/grpcTargetListModel.d.ts +0 -9
- package/dist/models/user/grpcTargetListModel.js +0 -14
- package/dist/models/user/grpcTargetListModel.js.map +0 -1
- package/dist/models/user/index.d.ts +0 -14
- package/dist/models/user/index.js +0 -30
- package/dist/models/user/index.js.map +0 -1
- package/dist/utils/appConfig.d.ts +0 -45
- package/dist/utils/appConfig.js +0 -57
- package/dist/utils/appConfig.js.map +0 -1
- package/dist/utils/appConst.d.ts +0 -129
- package/dist/utils/appConst.js +0 -150
- package/dist/utils/appConst.js.map +0 -1
- package/dist/utils/authentication/auth.d.ts +0 -2
- package/dist/utils/authentication/auth.js +0 -163
- package/dist/utils/authentication/auth.js.map +0 -1
- package/dist/utils/authentication/role.d.ts +0 -7
- package/dist/utils/authentication/role.js +0 -137
- package/dist/utils/authentication/role.js.map +0 -1
- package/dist/utils/baseClass/baseController.d.ts +0 -12
- package/dist/utils/baseClass/baseController.js +0 -176
- package/dist/utils/baseClass/baseController.js.map +0 -1
- package/dist/utils/baseClass/baseService.d.ts +0 -7
- package/dist/utils/baseClass/baseService.js +0 -11
- package/dist/utils/baseClass/baseService.js.map +0 -1
- package/dist/utils/commonUtils/appConfigKeyRetriever.d.ts +0 -7
- package/dist/utils/commonUtils/appConfigKeyRetriever.js +0 -43
- package/dist/utils/commonUtils/appConfigKeyRetriever.js.map +0 -1
- package/dist/utils/commonUtils/appUtils.d.ts +0 -13
- package/dist/utils/commonUtils/appUtils.js +0 -174
- package/dist/utils/commonUtils/appUtils.js.map +0 -1
- package/dist/utils/commonUtils/cronUtils.d.ts +0 -9
- package/dist/utils/commonUtils/cronUtils.js +0 -32
- package/dist/utils/commonUtils/cronUtils.js.map +0 -1
- package/dist/utils/commonUtils/index.d.ts +0 -6
- package/dist/utils/commonUtils/index.js +0 -19
- package/dist/utils/commonUtils/index.js.map +0 -1
- package/dist/utils/commonUtils/jwtUtils.d.ts +0 -3
- package/dist/utils/commonUtils/jwtUtils.js +0 -79
- package/dist/utils/commonUtils/jwtUtils.js.map +0 -1
- package/dist/utils/commonUtils/responseUtils.d.ts +0 -7
- package/dist/utils/commonUtils/responseUtils.js +0 -127
- package/dist/utils/commonUtils/responseUtils.js.map +0 -1
- package/dist/utils/commonUtils/validation.d.ts +0 -6
- package/dist/utils/commonUtils/validation.js +0 -92
- package/dist/utils/commonUtils/validation.js.map +0 -1
- package/dist/utils/documentation/swagger.d.ts +0 -1
- package/dist/utils/documentation/swagger.js +0 -37
- package/dist/utils/documentation/swagger.js.map +0 -1
- package/dist/utils/logger/logger.d.ts +0 -1
- package/dist/utils/logger/logger.js +0 -29
- package/dist/utils/logger/logger.js.map +0 -1
- package/dist/utils/logger/morganLogger.d.ts +0 -4
- package/dist/utils/logger/morganLogger.js +0 -27
- package/dist/utils/logger/morganLogger.js.map +0 -1
- package/dist/utils/middleware/handleError.d.ts +0 -2
- package/dist/utils/middleware/handleError.js +0 -12
- package/dist/utils/middleware/handleError.js.map +0 -1
- package/dist/utils/middleware/isPublicUser.d.ts +0 -2
- package/dist/utils/middleware/isPublicUser.js +0 -35
- package/dist/utils/middleware/isPublicUser.js.map +0 -1
- package/dist/utils/middleware/overwriteConst.d.ts +0 -1
- package/dist/utils/middleware/overwriteConst.js +0 -84
- package/dist/utils/middleware/overwriteConst.js.map +0 -1
- package/dist/utils/middleware/startdbConnection.d.ts +0 -1
- package/dist/utils/middleware/startdbConnection.js +0 -28
- package/dist/utils/middleware/startdbConnection.js.map +0 -1
- package/dist/utils/monitoring/apm.d.ts +0 -6
- package/dist/utils/monitoring/apm.js +0 -95
- package/dist/utils/monitoring/apm.js.map +0 -1
package/.env
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
PUBLIC_JWT_SECRET=unittest
|
|
2
|
-
USER_PUBLIC_RETRIEVE = usersvc
|
|
1
|
+
PUBLIC_JWT_SECRET=unittest
|
|
2
|
+
USER_PUBLIC_RETRIEVE = usersvc
|
|
3
3
|
USER_INTERNAL_RETRIEVE = usersvc
|
package/.github/dependabot.yml
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
# for more information, see https://dependabot.com
|
|
2
|
-
# for more settings, see https://docs.github.com/en/free-pro-team@latest/github/administering-a-repository/configuration-options-for-dependency-updates#commit-message
|
|
3
|
-
|
|
4
|
-
version: 2
|
|
5
|
-
updates:
|
|
6
|
-
- package-ecosystem: npm
|
|
7
|
-
directory: "/"
|
|
8
|
-
schedule:
|
|
9
|
-
interval: daily
|
|
10
|
-
target-branch: "master"
|
|
11
|
-
open-pull-requests-limit: 1
|
|
12
|
-
reviewers:
|
|
13
|
-
- dexterchang-tw
|
|
14
|
-
- Clifford-Liu
|
|
15
|
-
- Steven-h3
|
|
16
|
-
- sophia6734wu
|
|
17
|
-
allow:
|
|
1
|
+
# for more information, see https://dependabot.com
|
|
2
|
+
# for more settings, see https://docs.github.com/en/free-pro-team@latest/github/administering-a-repository/configuration-options-for-dependency-updates#commit-message
|
|
3
|
+
|
|
4
|
+
version: 2
|
|
5
|
+
updates:
|
|
6
|
+
- package-ecosystem: npm
|
|
7
|
+
directory: "/"
|
|
8
|
+
schedule:
|
|
9
|
+
interval: daily
|
|
10
|
+
target-branch: "master"
|
|
11
|
+
open-pull-requests-limit: 1
|
|
12
|
+
reviewers:
|
|
13
|
+
- dexterchang-tw
|
|
14
|
+
- Clifford-Liu
|
|
15
|
+
- Steven-h3
|
|
16
|
+
- sophia6734wu
|
|
17
|
+
allow:
|
|
18
18
|
- dependency-name: skyeye-common-const
|
package/.vscode/settings.json
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
{
|
|
2
|
-
"cSpell.words": [
|
|
3
|
-
"APIKEY",
|
|
4
|
-
"DELINK",
|
|
5
|
-
"Grpc",
|
|
6
|
-
"ICBSECTOR",
|
|
7
|
-
"KEYVAULT",
|
|
8
|
-
"NERL",
|
|
9
|
-
"RBAC",
|
|
10
|
-
"SCOUTAI",
|
|
11
|
-
"SCOUTAIRESULT",
|
|
12
|
-
"TAASCONFIG",
|
|
13
|
-
"blobstorage",
|
|
14
|
-
"guids",
|
|
15
|
-
"mutex",
|
|
16
|
-
"openapi",
|
|
17
|
-
"organisation",
|
|
18
|
-
"printf",
|
|
19
|
-
"proto",
|
|
20
|
-
"protobuf",
|
|
21
|
-
"skyeye",
|
|
22
|
-
"startdb",
|
|
23
|
-
"tada",
|
|
24
|
-
"typeorm"
|
|
25
|
-
]
|
|
1
|
+
{
|
|
2
|
+
"cSpell.words": [
|
|
3
|
+
"APIKEY",
|
|
4
|
+
"DELINK",
|
|
5
|
+
"Grpc",
|
|
6
|
+
"ICBSECTOR",
|
|
7
|
+
"KEYVAULT",
|
|
8
|
+
"NERL",
|
|
9
|
+
"RBAC",
|
|
10
|
+
"SCOUTAI",
|
|
11
|
+
"SCOUTAIRESULT",
|
|
12
|
+
"TAASCONFIG",
|
|
13
|
+
"blobstorage",
|
|
14
|
+
"guids",
|
|
15
|
+
"mutex",
|
|
16
|
+
"openapi",
|
|
17
|
+
"organisation",
|
|
18
|
+
"printf",
|
|
19
|
+
"proto",
|
|
20
|
+
"protobuf",
|
|
21
|
+
"skyeye",
|
|
22
|
+
"startdb",
|
|
23
|
+
"tada",
|
|
24
|
+
"typeorm"
|
|
25
|
+
]
|
|
26
26
|
}
|
package/README.md
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
# SkyEye-SVC-Common-Utils
|
|
2
|
-
This is the common utils for SkyEye service projects,
|
|
3
|
-
It includes multiple utils, middilewares, authentications, some common interfaces.
|
|
4
|
-
|
|
5
|
-
# GRPC
|
|
6
|
-
This command to build .proto files for Typescript used.
|
|
7
|
-
- protoc --proto_path=./ grpcProtos/sample.proto --js_out=import_style=commonjs,binary:. --ts_out=service=true:.
|
|
8
|
-
|
|
9
|
-
Please make sure run the `npm run build` before push changes
|
|
10
|
-
|
|
11
|
-
## Command to run test
|
|
12
|
-
`npm run test`
|
|
13
|
-
|
|
14
|
-
## Command to run code coverage
|
|
15
|
-
`npm run coverage`
|
|
16
|
-
|
|
17
|
-
**Note**
|
|
18
|
-
|
|
19
|
-
* don't push the `.nyc_output\xx\xx.json` and `coverage` file to github
|
|
20
|
-
* upload all the file from **report** folder
|
|
21
|
-
|
|
22
|
-
## Permissions
|
|
23
|
-
When add new permissions, please avoid duplication,
|
|
24
|
-
value for permission list :
|
|
25
|
-
`permissionCode`: `<ServiceName>_<HTTP Method>_<Controller>_<Action>`
|
|
26
|
-
`permissionLabel`: any name you want to show to frontend for easy recognise
|
|
27
|
-
`permissionDesc`: short description on what this permission can do
|
|
28
|
-
`permissionMethod`: The http Method: GET/POST/PUT/DELETE , uppercase only
|
|
29
|
-
`permissionUrl`: the Path for this permission. `/<Controller>/<Action>`
|
|
30
|
-
`allowAnonymous`: whether this path is able to access by anyone
|
|
1
|
+
# SkyEye-SVC-Common-Utils
|
|
2
|
+
This is the common utils for SkyEye service projects,
|
|
3
|
+
It includes multiple utils, middilewares, authentications, some common interfaces.
|
|
4
|
+
|
|
5
|
+
# GRPC
|
|
6
|
+
This command to build .proto files for Typescript used.
|
|
7
|
+
- protoc --proto_path=./ grpcProtos/sample.proto --js_out=import_style=commonjs,binary:. --ts_out=service=true:.
|
|
8
|
+
|
|
9
|
+
Please make sure run the `npm run build` before push changes
|
|
10
|
+
|
|
11
|
+
## Command to run test
|
|
12
|
+
`npm run test`
|
|
13
|
+
|
|
14
|
+
## Command to run code coverage
|
|
15
|
+
`npm run coverage`
|
|
16
|
+
|
|
17
|
+
**Note**
|
|
18
|
+
|
|
19
|
+
* don't push the `.nyc_output\xx\xx.json` and `coverage` file to github
|
|
20
|
+
* upload all the file from **report** folder
|
|
21
|
+
|
|
22
|
+
## Permissions
|
|
23
|
+
When add new permissions, please avoid duplication,
|
|
24
|
+
value for permission list :
|
|
25
|
+
`permissionCode`: `<ServiceName>_<HTTP Method>_<Controller>_<Action>`
|
|
26
|
+
`permissionLabel`: any name you want to show to frontend for easy recognise
|
|
27
|
+
`permissionDesc`: short description on what this permission can do
|
|
28
|
+
`permissionMethod`: The http Method: GET/POST/PUT/DELETE , uppercase only
|
|
29
|
+
`permissionUrl`: the Path for this permission. `/<Controller>/<Action>`
|
|
30
|
+
`allowAnonymous`: whether this path is able to access by anyone
|
package/package.json
CHANGED
|
@@ -1,81 +1,81 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "skyeye-svc-common-utils",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"build": "tsc -p ./tsconfig.json",
|
|
9
|
-
"postinstall": "npm run build",
|
|
10
|
-
"clean": "rm -rf package-lock.json node_modules dist log",
|
|
11
|
-
"cleanPublish": "npm run clean && npm publish"
|
|
12
|
-
},
|
|
13
|
-
"repository": {
|
|
14
|
-
"type": "git",
|
|
15
|
-
"url": "git+https://github.com/HandshakesByDC/SkyEye-SVC-Common-Utils.git"
|
|
16
|
-
},
|
|
17
|
-
"author": "",
|
|
18
|
-
"license": "ISC",
|
|
19
|
-
"bugs": {
|
|
20
|
-
"url": "https://github.com/HandshakesByDC/SkyEye-SVC-Common-Utils/issues"
|
|
21
|
-
},
|
|
22
|
-
"homepage": "https://github.com/HandshakesByDC/SkyEye-SVC-Common-Utils#readme",
|
|
23
|
-
"dependencies": {
|
|
24
|
-
"@azure/identity": "latest",
|
|
25
|
-
"@azure/keyvault-secrets": "latest",
|
|
26
|
-
"@azure/service-bus": "^7.1.0",
|
|
27
|
-
"@azure/storage-blob": "^12.1.2",
|
|
28
|
-
"@azure/storage-queue": "^12.0.2",
|
|
29
|
-
"@grpc/proto-loader": "^0.5.3",
|
|
30
|
-
"@improbable-eng/grpc-web": "^0.12.0",
|
|
31
|
-
"@sendgrid/mail": "^7.7.0",
|
|
32
|
-
"@types/chai": "^4.2.11",
|
|
33
|
-
"@types/express": "4.17.14",
|
|
34
|
-
"@types/express-serve-static-core": "4.17.30",
|
|
35
|
-
"@types/google-protobuf": "^3.7.2",
|
|
36
|
-
"@types/ioredis": "^4.26.4",
|
|
37
|
-
"@types/jsonwebtoken": "^8.3.7",
|
|
38
|
-
"@types/lodash": "4.14.182",
|
|
39
|
-
"@types/swagger-jsdoc": "^3.0.2",
|
|
40
|
-
"@types/swagger-ui-express": "^4.1.1",
|
|
41
|
-
"async-mutex": "^0.3.2",
|
|
42
|
-
"azure-storage": "^2.10.3",
|
|
43
|
-
"cron-parser": "^4.6.0",
|
|
44
|
-
"dateformat": "^3.0.3",
|
|
45
|
-
"debug": "^4.1.1",
|
|
46
|
-
"dotenv": "^8.2.0",
|
|
47
|
-
"elastic-apm-node": "^3.5.0",
|
|
48
|
-
"express": "^4.17.1",
|
|
49
|
-
"grpc": "^1.24.2",
|
|
50
|
-
"http-errors": "^1.7.3",
|
|
51
|
-
"https": "^1.0.0",
|
|
52
|
-
"ioredis": "^4.27.6",
|
|
53
|
-
"jsonwebtoken": "^8.5.1",
|
|
54
|
-
"logform": "2.4.2",
|
|
55
|
-
"moment": "^2.24.0",
|
|
56
|
-
"morgan": "^1.9.1",
|
|
57
|
-
"node-fetch": "^2.6.0",
|
|
58
|
-
"nyc": "^15.1.0",
|
|
59
|
-
"rotating-file-stream": "^1.4.6",
|
|
60
|
-
"skyeye-common-const": "1.0.
|
|
61
|
-
"swagger-jsdoc": "^3.5.0",
|
|
62
|
-
"swagger-ui-express": "^4.1.3",
|
|
63
|
-
"ts-node": "^9.0.0",
|
|
64
|
-
"typeorm": "^0.2.20",
|
|
65
|
-
"typescript": "^3.7.4",
|
|
66
|
-
"uuid": "^3.3.3",
|
|
67
|
-
"winston": "^3.2.1",
|
|
68
|
-
"winston-daily-rotate-file": "^4.2.1"
|
|
69
|
-
},
|
|
70
|
-
"devDependencies": {
|
|
71
|
-
"@types/dateformat": "^3.0.1",
|
|
72
|
-
"@types/debug": "~4.1.5",
|
|
73
|
-
"@types/dotenv": "^8.2.0",
|
|
74
|
-
"@types/http-errors": "~1.6.1",
|
|
75
|
-
"@types/morgan": "~1.7.37",
|
|
76
|
-
"@types/node": "^14.0.27",
|
|
77
|
-
"@types/node-fetch": "^2.5.3",
|
|
78
|
-
"@types/uuid": "^3.4.6",
|
|
79
|
-
"@types/winston": "2.4.4"
|
|
80
|
-
}
|
|
81
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "skyeye-svc-common-utils",
|
|
3
|
+
"version": "1.0.23",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "tsc -p ./tsconfig.json",
|
|
9
|
+
"postinstall": "npm run build",
|
|
10
|
+
"clean": "rm -rf package-lock.json node_modules dist log",
|
|
11
|
+
"cleanPublish": "npm run clean && npm publish"
|
|
12
|
+
},
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "git+https://github.com/HandshakesByDC/SkyEye-SVC-Common-Utils.git"
|
|
16
|
+
},
|
|
17
|
+
"author": "",
|
|
18
|
+
"license": "ISC",
|
|
19
|
+
"bugs": {
|
|
20
|
+
"url": "https://github.com/HandshakesByDC/SkyEye-SVC-Common-Utils/issues"
|
|
21
|
+
},
|
|
22
|
+
"homepage": "https://github.com/HandshakesByDC/SkyEye-SVC-Common-Utils#readme",
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@azure/identity": "latest",
|
|
25
|
+
"@azure/keyvault-secrets": "latest",
|
|
26
|
+
"@azure/service-bus": "^7.1.0",
|
|
27
|
+
"@azure/storage-blob": "^12.1.2",
|
|
28
|
+
"@azure/storage-queue": "^12.0.2",
|
|
29
|
+
"@grpc/proto-loader": "^0.5.3",
|
|
30
|
+
"@improbable-eng/grpc-web": "^0.12.0",
|
|
31
|
+
"@sendgrid/mail": "^7.7.0",
|
|
32
|
+
"@types/chai": "^4.2.11",
|
|
33
|
+
"@types/express": "4.17.14",
|
|
34
|
+
"@types/express-serve-static-core": "4.17.30",
|
|
35
|
+
"@types/google-protobuf": "^3.7.2",
|
|
36
|
+
"@types/ioredis": "^4.26.4",
|
|
37
|
+
"@types/jsonwebtoken": "^8.3.7",
|
|
38
|
+
"@types/lodash": "4.14.182",
|
|
39
|
+
"@types/swagger-jsdoc": "^3.0.2",
|
|
40
|
+
"@types/swagger-ui-express": "^4.1.1",
|
|
41
|
+
"async-mutex": "^0.3.2",
|
|
42
|
+
"azure-storage": "^2.10.3",
|
|
43
|
+
"cron-parser": "^4.6.0",
|
|
44
|
+
"dateformat": "^3.0.3",
|
|
45
|
+
"debug": "^4.1.1",
|
|
46
|
+
"dotenv": "^8.2.0",
|
|
47
|
+
"elastic-apm-node": "^3.5.0",
|
|
48
|
+
"express": "^4.17.1",
|
|
49
|
+
"grpc": "^1.24.2",
|
|
50
|
+
"http-errors": "^1.7.3",
|
|
51
|
+
"https": "^1.0.0",
|
|
52
|
+
"ioredis": "^4.27.6",
|
|
53
|
+
"jsonwebtoken": "^8.5.1",
|
|
54
|
+
"logform": "2.4.2",
|
|
55
|
+
"moment": "^2.24.0",
|
|
56
|
+
"morgan": "^1.9.1",
|
|
57
|
+
"node-fetch": "^2.6.0",
|
|
58
|
+
"nyc": "^15.1.0",
|
|
59
|
+
"rotating-file-stream": "^1.4.6",
|
|
60
|
+
"skyeye-common-const": "1.0.13",
|
|
61
|
+
"swagger-jsdoc": "^3.5.0",
|
|
62
|
+
"swagger-ui-express": "^4.1.3",
|
|
63
|
+
"ts-node": "^9.0.0",
|
|
64
|
+
"typeorm": "^0.2.20",
|
|
65
|
+
"typescript": "^3.7.4",
|
|
66
|
+
"uuid": "^3.3.3",
|
|
67
|
+
"winston": "^3.2.1",
|
|
68
|
+
"winston-daily-rotate-file": "^4.2.1"
|
|
69
|
+
},
|
|
70
|
+
"devDependencies": {
|
|
71
|
+
"@types/dateformat": "^3.0.1",
|
|
72
|
+
"@types/debug": "~4.1.5",
|
|
73
|
+
"@types/dotenv": "^8.2.0",
|
|
74
|
+
"@types/http-errors": "~1.6.1",
|
|
75
|
+
"@types/morgan": "~1.7.37",
|
|
76
|
+
"@types/node": "^14.0.27",
|
|
77
|
+
"@types/node-fetch": "^2.5.3",
|
|
78
|
+
"@types/uuid": "^3.4.6",
|
|
79
|
+
"@types/winston": "2.4.4"
|
|
80
|
+
}
|
|
81
|
+
}
|
package/pull_request_template.md
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
Thank you for your contribution to the repo.
|
|
2
|
-
Before submitting this PR, please make sure:
|
|
3
|
-
|
|
4
|
-
- [ ] Your code builds clean without any errors or warnings
|
|
5
|
-
- [ ] You are using approved terminology
|
|
6
|
-
- [ ] You have added unit tests
|
|
7
|
-
- [ ] You have updated documentation
|
|
8
|
-
- [ ] You have checked related services are updated (eg. gRPC)
|
|
9
|
-
|
|
10
|
-
You may delete the sections as necessary.
|
|
11
|
-
|
|
12
|
-
### Context
|
|
13
|
-
___
|
|
14
|
-
|
|
15
|
-
Fill this up with some context that will be useful to the reviewer that is looking at your PR.
|
|
16
|
-
|
|
17
|
-
Example:
|
|
18
|
-
* Add references to a related previous PR.
|
|
19
|
-
* Link to an existing card on Click Up/Confluence.
|
|
20
|
-
* Link to an issue on Sentry.
|
|
21
|
-
|
|
22
|
-
### Changes
|
|
23
|
-
___
|
|
24
|
-
|
|
25
|
-
Fill this up with the changes that are included in this PR.
|
|
26
|
-
|
|
27
|
-
Example:
|
|
28
|
-
* Added tests.
|
|
29
|
-
* Refactored checkout flow.
|
|
30
|
-
|
|
31
|
-
### Test
|
|
32
|
-
___
|
|
33
|
-
|
|
34
|
-
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.
|
|
35
|
-
Please also list any relevant details for your test configuration.
|
|
36
|
-
|
|
37
|
-
- [ ] Test A
|
|
38
|
-
- [ ] Test B
|
|
39
|
-
|
|
40
|
-
### Shout-outs
|
|
41
|
-
___
|
|
1
|
+
Thank you for your contribution to the repo.
|
|
2
|
+
Before submitting this PR, please make sure:
|
|
3
|
+
|
|
4
|
+
- [ ] Your code builds clean without any errors or warnings
|
|
5
|
+
- [ ] You are using approved terminology
|
|
6
|
+
- [ ] You have added unit tests
|
|
7
|
+
- [ ] You have updated documentation
|
|
8
|
+
- [ ] You have checked related services are updated (eg. gRPC)
|
|
9
|
+
|
|
10
|
+
You may delete the sections as necessary.
|
|
11
|
+
|
|
12
|
+
### Context
|
|
13
|
+
___
|
|
14
|
+
|
|
15
|
+
Fill this up with some context that will be useful to the reviewer that is looking at your PR.
|
|
16
|
+
|
|
17
|
+
Example:
|
|
18
|
+
* Add references to a related previous PR.
|
|
19
|
+
* Link to an existing card on Click Up/Confluence.
|
|
20
|
+
* Link to an issue on Sentry.
|
|
21
|
+
|
|
22
|
+
### Changes
|
|
23
|
+
___
|
|
24
|
+
|
|
25
|
+
Fill this up with the changes that are included in this PR.
|
|
26
|
+
|
|
27
|
+
Example:
|
|
28
|
+
* Added tests.
|
|
29
|
+
* Refactored checkout flow.
|
|
30
|
+
|
|
31
|
+
### Test
|
|
32
|
+
___
|
|
33
|
+
|
|
34
|
+
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.
|
|
35
|
+
Please also list any relevant details for your test configuration.
|
|
36
|
+
|
|
37
|
+
- [ ] Test A
|
|
38
|
+
- [ ] Test B
|
|
39
|
+
|
|
40
|
+
### Shout-outs
|
|
41
|
+
___
|
|
42
42
|
Fill this up with the people that have helped you out along the way to thank them! :tada
|
package/sonar-project.properties
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
sonar.projectKey=HandshakesByDC_SkyEye-SVC-Common-Utils
|
|
2
|
-
sonar.organization=handshakesbydc
|
|
3
|
-
|
|
4
|
-
# This is the name and version displayed in the SonarCloud UI.
|
|
5
|
-
#sonar.projectName=SkyEye-SVC-Announcement
|
|
6
|
-
#sonar.projectVersion=1.0
|
|
7
|
-
|
|
8
|
-
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
|
|
9
|
-
#sonar.sources=.
|
|
10
|
-
|
|
11
|
-
# Encoding of the source code. Default is default system encoding
|
|
1
|
+
sonar.projectKey=HandshakesByDC_SkyEye-SVC-Common-Utils
|
|
2
|
+
sonar.organization=handshakesbydc
|
|
3
|
+
|
|
4
|
+
# This is the name and version displayed in the SonarCloud UI.
|
|
5
|
+
#sonar.projectName=SkyEye-SVC-Announcement
|
|
6
|
+
#sonar.projectVersion=1.0
|
|
7
|
+
|
|
8
|
+
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
|
|
9
|
+
#sonar.sources=.
|
|
10
|
+
|
|
11
|
+
# Encoding of the source code. Default is default system encoding
|
|
12
12
|
#sonar.sourceEncoding=UTF-8
|
package/src/index.ts
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
export * from './utils/appConfig';
|
|
2
|
-
export * from './utils/appConst';
|
|
3
|
-
export * from './utils/commonUtils';
|
|
4
|
-
export * from './utils/authentication/auth';
|
|
5
|
-
export * from './utils/logger/logger';
|
|
6
|
-
export { default as morganLogger } from './utils/logger/morganLogger';
|
|
7
|
-
export * from './utils/middleware/handleError';
|
|
8
|
-
export * from './utils/middleware/isPublicUser';
|
|
9
|
-
export * from './utils/middleware/overwriteConst';
|
|
10
|
-
export * from './utils/middleware/startdbConnection';
|
|
11
|
-
export * from './utils/baseClass/baseController';
|
|
12
|
-
export * from './utils/baseClass/baseService';
|
|
13
|
-
export * from './interfaces/index';
|
|
14
|
-
export * from './lib/azure/azureKeyVault';
|
|
15
|
-
export * from './lib/azure/azureStorageQueue';
|
|
16
|
-
export * from './lib/azure/azureServiceBusQueue';
|
|
17
|
-
export * from './lib/azure/azureTableStorage';
|
|
18
|
-
export * from './lib/azure/azureBlobStorage';
|
|
19
|
-
export * from './utils/documentation/swagger';
|
|
20
|
-
export * from './lib/httpClient';
|
|
21
|
-
export * from './utils/monitoring/apm';
|
|
22
|
-
export * from './models/baseControllerParameter';
|
|
23
|
-
export * from './lib/redisClient';
|
|
24
|
-
export * from './lib/sendGridClient';
|
|
25
|
-
export * from './interfaces/grpcServiceResponse';
|
|
26
|
-
export * from './interfaces/grpcListRequest';
|
|
27
|
-
export * from './utils/commonUtils/appConfigKeyRetriever';
|
|
1
|
+
export * from './utils/appConfig';
|
|
2
|
+
export * from './utils/appConst';
|
|
3
|
+
export * from './utils/commonUtils';
|
|
4
|
+
export * from './utils/authentication/auth';
|
|
5
|
+
export * from './utils/logger/logger';
|
|
6
|
+
export { default as morganLogger } from './utils/logger/morganLogger';
|
|
7
|
+
export * from './utils/middleware/handleError';
|
|
8
|
+
export * from './utils/middleware/isPublicUser';
|
|
9
|
+
export * from './utils/middleware/overwriteConst';
|
|
10
|
+
export * from './utils/middleware/startdbConnection';
|
|
11
|
+
export * from './utils/baseClass/baseController';
|
|
12
|
+
export * from './utils/baseClass/baseService';
|
|
13
|
+
export * from './interfaces/index';
|
|
14
|
+
export * from './lib/azure/azureKeyVault';
|
|
15
|
+
export * from './lib/azure/azureStorageQueue';
|
|
16
|
+
export * from './lib/azure/azureServiceBusQueue';
|
|
17
|
+
export * from './lib/azure/azureTableStorage';
|
|
18
|
+
export * from './lib/azure/azureBlobStorage';
|
|
19
|
+
export * from './utils/documentation/swagger';
|
|
20
|
+
export * from './lib/httpClient';
|
|
21
|
+
export * from './utils/monitoring/apm';
|
|
22
|
+
export * from './models/baseControllerParameter';
|
|
23
|
+
export * from './lib/redisClient';
|
|
24
|
+
export * from './lib/sendGridClient';
|
|
25
|
+
export * from './interfaces/grpcServiceResponse';
|
|
26
|
+
export * from './interfaces/grpcListRequest';
|
|
27
|
+
export * from './utils/commonUtils/appConfigKeyRetriever';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export interface ApiResponse {
|
|
2
|
-
isSuccess: boolean;
|
|
3
|
-
message?: string;
|
|
4
|
-
data?: any;
|
|
5
|
-
totalCount?: number;
|
|
6
|
-
aggregation?: any;
|
|
1
|
+
export interface ApiResponse {
|
|
2
|
+
isSuccess: boolean;
|
|
3
|
+
message?: string;
|
|
4
|
+
data?: any;
|
|
5
|
+
totalCount?: number;
|
|
6
|
+
aggregation?: any;
|
|
7
7
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export interface GrpcListRequest {
|
|
2
|
-
skip?: number;
|
|
3
|
-
select?: number;
|
|
4
|
-
orderBy?: string;
|
|
5
|
-
order?: string;
|
|
1
|
+
export interface GrpcListRequest {
|
|
2
|
+
skip?: number;
|
|
3
|
+
select?: number;
|
|
4
|
+
orderBy?: string;
|
|
5
|
+
order?: string;
|
|
6
6
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export interface GrpcServiceResponse {
|
|
2
|
-
isSuccess: boolean;
|
|
3
|
-
message?: string;
|
|
4
|
-
data?: any;
|
|
5
|
-
totalCount?: number;
|
|
6
|
-
error?: boolean;
|
|
7
|
-
aggregation?: boolean;
|
|
1
|
+
export interface GrpcServiceResponse {
|
|
2
|
+
isSuccess: boolean;
|
|
3
|
+
message?: string;
|
|
4
|
+
data?: any;
|
|
5
|
+
totalCount?: number;
|
|
6
|
+
error?: boolean;
|
|
7
|
+
aggregation?: boolean;
|
|
8
8
|
}
|
package/src/interfaces/index.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { ApiResponse } from './apiResponse';
|
|
2
|
-
import { ServiceResponse } from './serviceResponse';
|
|
3
|
-
import { UserInfo } from './userInfo';
|
|
4
|
-
import { Pagination } from './pagination';
|
|
5
|
-
import { SubcriptionFeaturePermissionModel } from './subcriptionFeaturePermissionModel';
|
|
6
|
-
import { GrpcListRequest } from './grpcListRequest';
|
|
7
|
-
import { GrpcServiceResponse } from './grpcServiceResponse';
|
|
8
|
-
export {
|
|
9
|
-
ApiResponse,
|
|
10
|
-
ServiceResponse,
|
|
11
|
-
UserInfo,
|
|
12
|
-
Pagination,
|
|
13
|
-
SubcriptionFeaturePermissionModel,
|
|
14
|
-
GrpcListRequest,
|
|
15
|
-
GrpcServiceResponse
|
|
1
|
+
import { ApiResponse } from './apiResponse';
|
|
2
|
+
import { ServiceResponse } from './serviceResponse';
|
|
3
|
+
import { UserInfo } from './userInfo';
|
|
4
|
+
import { Pagination } from './pagination';
|
|
5
|
+
import { SubcriptionFeaturePermissionModel } from './subcriptionFeaturePermissionModel';
|
|
6
|
+
import { GrpcListRequest } from './grpcListRequest';
|
|
7
|
+
import { GrpcServiceResponse } from './grpcServiceResponse';
|
|
8
|
+
export {
|
|
9
|
+
ApiResponse,
|
|
10
|
+
ServiceResponse,
|
|
11
|
+
UserInfo,
|
|
12
|
+
Pagination,
|
|
13
|
+
SubcriptionFeaturePermissionModel,
|
|
14
|
+
GrpcListRequest,
|
|
15
|
+
GrpcServiceResponse
|
|
16
16
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
export class Pagination{
|
|
3
|
-
skip:number;
|
|
4
|
-
take:number;
|
|
5
|
-
order: any;
|
|
6
|
-
constructor(){
|
|
7
|
-
this.skip = 0;
|
|
8
|
-
this.take = 20;
|
|
9
|
-
this.order = null;
|
|
10
|
-
}
|
|
1
|
+
|
|
2
|
+
export class Pagination{
|
|
3
|
+
skip:number;
|
|
4
|
+
take:number;
|
|
5
|
+
order: any;
|
|
6
|
+
constructor(){
|
|
7
|
+
this.skip = 0;
|
|
8
|
+
this.take = 20;
|
|
9
|
+
this.order = null;
|
|
10
|
+
}
|
|
11
11
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export interface ServiceResponse {
|
|
2
|
-
isSuccess: boolean;
|
|
3
|
-
message?: string;
|
|
4
|
-
data?: any;
|
|
5
|
-
totalCount?:number;
|
|
6
|
-
aggregation?:any;
|
|
7
|
-
error?: boolean;
|
|
1
|
+
export interface ServiceResponse {
|
|
2
|
+
isSuccess: boolean;
|
|
3
|
+
message?: string;
|
|
4
|
+
data?: any;
|
|
5
|
+
totalCount?:number;
|
|
6
|
+
aggregation?:any;
|
|
7
|
+
error?: boolean;
|
|
8
8
|
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export class SubcriptionFeaturePermissionModel {
|
|
2
|
-
|
|
3
|
-
organisationGuid: string;
|
|
4
|
-
|
|
5
|
-
organisationName: string;
|
|
6
|
-
|
|
7
|
-
organisationStatus: string;
|
|
8
|
-
|
|
9
|
-
permissionList: string[];
|
|
10
|
-
|
|
11
|
-
featureList: string[];
|
|
12
|
-
|
|
13
|
-
constructor() {
|
|
14
|
-
this.organisationGuid = null;
|
|
15
|
-
this.organisationName = null;
|
|
16
|
-
this.organisationStatus = null;
|
|
17
|
-
this.permissionList = new Array<string>();
|
|
18
|
-
this.featureList = new Array<string>();
|
|
19
|
-
}
|
|
1
|
+
export class SubcriptionFeaturePermissionModel {
|
|
2
|
+
|
|
3
|
+
organisationGuid: string;
|
|
4
|
+
|
|
5
|
+
organisationName: string;
|
|
6
|
+
|
|
7
|
+
organisationStatus: string;
|
|
8
|
+
|
|
9
|
+
permissionList: string[];
|
|
10
|
+
|
|
11
|
+
featureList: string[];
|
|
12
|
+
|
|
13
|
+
constructor() {
|
|
14
|
+
this.organisationGuid = null;
|
|
15
|
+
this.organisationName = null;
|
|
16
|
+
this.organisationStatus = null;
|
|
17
|
+
this.permissionList = new Array<string>();
|
|
18
|
+
this.featureList = new Array<string>();
|
|
19
|
+
}
|
|
20
20
|
}
|