@vannizhang/living-atlas-content-validator 1.5.21 → 1.5.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/dist/configureSettings.d.ts +0 -103
- package/dist/configureSettings.js +1 -43
- package/dist/configureSettings.js.map +1 -1
- package/dist/index.js +1 -3
- package/dist/index.js.map +1 -1
- package/dist/lib/accessInformation/isValidAccessInformation.d.ts +0 -8
- package/dist/lib/accessInformation/isValidAccessInformation.js +0 -12
- package/dist/lib/accessInformation/isValidAccessInformation.js.map +1 -1
- package/dist/lib/accessInformation/scoringConfig.js +0 -4
- package/dist/lib/accessInformation/scoringConfig.js.map +1 -1
- package/dist/lib/checkProfanities/checkProfanities.d.ts +0 -5
- package/dist/lib/checkProfanities/checkProfanities.js +0 -8
- package/dist/lib/checkProfanities/checkProfanities.js.map +1 -1
- package/dist/lib/checkTitleAndSnippetSearchability/checkTitleAndSnippetSearchability.d.ts +0 -28
- package/dist/lib/checkTitleAndSnippetSearchability/checkTitleAndSnippetSearchability.js +0 -35
- package/dist/lib/checkTitleAndSnippetSearchability/checkTitleAndSnippetSearchability.js.map +1 -1
- package/dist/lib/checkTitleAndSnippetSearchability/config.d.ts +0 -84
- package/dist/lib/checkTitleAndSnippetSearchability/config.js +0 -17
- package/dist/lib/checkTitleAndSnippetSearchability/config.js.map +1 -1
- package/dist/lib/checkTitleAndSnippetSearchability/data.js +0 -692
- package/dist/lib/checkTitleAndSnippetSearchability/data.js.map +1 -1
- package/dist/lib/checkTitleAndSnippetSearchability/helpers.d.ts +0 -94
- package/dist/lib/checkTitleAndSnippetSearchability/helpers.js +0 -105
- package/dist/lib/checkTitleAndSnippetSearchability/helpers.js.map +1 -1
- package/dist/lib/checkTitleAndSnippetSearchability/matchDateTimeInfo.d.ts +0 -28
- package/dist/lib/checkTitleAndSnippetSearchability/matchDateTimeInfo.js +1 -111
- package/dist/lib/checkTitleAndSnippetSearchability/matchDateTimeInfo.js.map +1 -1
- package/dist/lib/checkTitleAndSnippetSearchability/matchLocationInfo.d.ts +0 -28
- package/dist/lib/checkTitleAndSnippetSearchability/matchLocationInfo.js +1 -113
- package/dist/lib/checkTitleAndSnippetSearchability/matchLocationInfo.js.map +1 -1
- package/dist/lib/checkTitleAndSnippetSearchability/matchSourceInfo.d.ts +0 -28
- package/dist/lib/checkTitleAndSnippetSearchability/matchSourceInfo.js +0 -113
- package/dist/lib/checkTitleAndSnippetSearchability/matchSourceInfo.js.map +1 -1
- package/dist/lib/checkTitleAndSnippetSearchability/matchTopicInfo.d.ts +0 -30
- package/dist/lib/checkTitleAndSnippetSearchability/matchTopicInfo.js +1 -115
- package/dist/lib/checkTitleAndSnippetSearchability/matchTopicInfo.js.map +1 -1
- package/dist/lib/checkTitleAndSnippetSearchability/scoringConfig.js +0 -1
- package/dist/lib/checkTitleAndSnippetSearchability/scoringConfig.js.map +1 -1
- package/dist/lib/config.d.ts +0 -16
- package/dist/lib/config.js +0 -140
- package/dist/lib/config.js.map +1 -1
- package/dist/lib/deleteProtection/isDeleteProtectionEnabled.d.ts +0 -8
- package/dist/lib/deleteProtection/isDeleteProtectionEnabled.js +0 -11
- package/dist/lib/deleteProtection/isDeleteProtectionEnabled.js.map +1 -1
- package/dist/lib/deleteProtection/scoringConfig.js +0 -1
- package/dist/lib/deleteProtection/scoringConfig.js.map +1 -1
- package/dist/lib/deprecated/isDeprecated.d.ts +0 -8
- package/dist/lib/deprecated/isDeprecated.js +0 -9
- package/dist/lib/deprecated/isDeprecated.js.map +1 -1
- package/dist/lib/deprecated/scoringConfig.js +0 -1
- package/dist/lib/deprecated/scoringConfig.js.map +1 -1
- package/dist/lib/description/findDataSource.d.ts +0 -10
- package/dist/lib/description/findDataSource.js +0 -22
- package/dist/lib/description/findDataSource.js.map +1 -1
- package/dist/lib/description/isValidDescription.d.ts +0 -17
- package/dist/lib/description/isValidDescription.js +0 -52
- package/dist/lib/description/isValidDescription.js.map +1 -1
- package/dist/lib/description/scoringConfig.js +0 -1
- package/dist/lib/description/scoringConfig.js.map +1 -1
- package/dist/lib/description/scoringRulesConfig.js +0 -47
- package/dist/lib/description/scoringRulesConfig.js.map +1 -1
- package/dist/lib/featureServiceCDNSetting/checkFeatureServiceCDNSetting.d.ts +0 -8
- package/dist/lib/featureServiceCDNSetting/checkFeatureServiceCDNSetting.js +0 -12
- package/dist/lib/featureServiceCDNSetting/checkFeatureServiceCDNSetting.js.map +1 -1
- package/dist/lib/featureServiceExportDataSetting/checkFeatureServiceExportSetting.d.ts +0 -6
- package/dist/lib/featureServiceExportDataSetting/checkFeatureServiceExportSetting.js +0 -12
- package/dist/lib/featureServiceExportDataSetting/checkFeatureServiceExportSetting.js.map +1 -1
- package/dist/lib/featureServiceExtents/checkFeatureServiceExtents.d.ts +0 -8
- package/dist/lib/featureServiceExtents/checkFeatureServiceExtents.js +0 -16
- package/dist/lib/featureServiceExtents/checkFeatureServiceExtents.js.map +1 -1
- package/dist/lib/featureServiceExtents/checkFeatureServiceExtentsHelpers.d.ts +0 -5
- package/dist/lib/featureServiceExtents/checkFeatureServiceExtentsHelpers.js +0 -9
- package/dist/lib/featureServiceExtents/checkFeatureServiceExtentsHelpers.js.map +1 -1
- package/dist/lib/featureServiceFieldAliases/checkFeatureServiceFieldAliases.d.ts +0 -23
- package/dist/lib/featureServiceFieldAliases/checkFeatureServiceFieldAliases.js +0 -43
- package/dist/lib/featureServiceFieldAliases/checkFeatureServiceFieldAliases.js.map +1 -1
- package/dist/lib/featureServiceFieldAliases/helpers.d.ts +0 -16
- package/dist/lib/featureServiceFieldAliases/helpers.js +5 -21
- package/dist/lib/featureServiceFieldAliases/helpers.js.map +1 -1
- package/dist/lib/featureServiceFieldAliases/scoringConfig.js +0 -1
- package/dist/lib/featureServiceFieldAliases/scoringConfig.js.map +1 -1
- package/dist/lib/featureServiceFieldDescriptions/checkFeatureServiceFieldDescriptions.d.ts +0 -22
- package/dist/lib/featureServiceFieldDescriptions/checkFeatureServiceFieldDescriptions.js +0 -58
- package/dist/lib/featureServiceFieldDescriptions/checkFeatureServiceFieldDescriptions.js.map +1 -1
- package/dist/lib/featureServiceFieldDescriptions/helpers.d.ts +0 -17
- package/dist/lib/featureServiceFieldDescriptions/helpers.js +5 -22
- package/dist/lib/featureServiceFieldDescriptions/helpers.js.map +1 -1
- package/dist/lib/featureServiceFieldDescriptions/scoringConfig.js +0 -1
- package/dist/lib/featureServiceFieldDescriptions/scoringConfig.js.map +1 -1
- package/dist/lib/featureServiceFieldIndexes/checkFeatureServiceFieldIndexes.d.ts +0 -8
- package/dist/lib/featureServiceFieldIndexes/checkFeatureServiceFieldIndexes.js +0 -8
- package/dist/lib/featureServiceFieldIndexes/checkFeatureServiceFieldIndexes.js.map +1 -1
- package/dist/lib/featureServiceFieldIndexes/featureServiceFieldIndexesHelpers.d.ts +0 -5
- package/dist/lib/featureServiceFieldIndexes/featureServiceFieldIndexesHelpers.js +0 -6
- package/dist/lib/featureServiceFieldIndexes/featureServiceFieldIndexesHelpers.js.map +1 -1
- package/dist/lib/featureServiceFieldValueTypes/checkFeatureServiceFieldValueTypes.d.ts +0 -19
- package/dist/lib/featureServiceFieldValueTypes/checkFeatureServiceFieldValueTypes.js +0 -40
- package/dist/lib/featureServiceFieldValueTypes/checkFeatureServiceFieldValueTypes.js.map +1 -1
- package/dist/lib/featureServiceFieldValueTypes/helpers.d.ts +0 -13
- package/dist/lib/featureServiceFieldValueTypes/helpers.js +2 -15
- package/dist/lib/featureServiceFieldValueTypes/helpers.js.map +1 -1
- package/dist/lib/featureServiceFieldValueTypes/scoringConfig.js +0 -1
- package/dist/lib/featureServiceFieldValueTypes/scoringConfig.js.map +1 -1
- package/dist/lib/itemExtent/checkItemExtent.d.ts +0 -25
- package/dist/lib/itemExtent/checkItemExtent.js +0 -30
- package/dist/lib/itemExtent/checkItemExtent.js.map +1 -1
- package/dist/lib/itemExtent/checkItemExtentHelpers.d.ts +0 -31
- package/dist/lib/itemExtent/checkItemExtentHelpers.js +0 -36
- package/dist/lib/itemExtent/checkItemExtentHelpers.js.map +1 -1
- package/dist/lib/licenseInfo/isValidLicenseInfo.d.ts +0 -32
- package/dist/lib/licenseInfo/isValidLicenseInfo.js +2 -49
- package/dist/lib/licenseInfo/isValidLicenseInfo.js.map +1 -1
- package/dist/lib/licenseInfo/scoringConfig.js +0 -1
- package/dist/lib/licenseInfo/scoringConfig.js.map +1 -1
- package/dist/lib/licenseInfo/scoringRulesConfig.js +0 -47
- package/dist/lib/licenseInfo/scoringRulesConfig.js.map +1 -1
- package/dist/lib/sharing/isValidAccess.d.ts +0 -20
- package/dist/lib/sharing/isValidAccess.js +2 -28
- package/dist/lib/sharing/isValidAccess.js.map +1 -1
- package/dist/lib/sharing/scoringConfig.js +0 -1
- package/dist/lib/sharing/scoringConfig.js.map +1 -1
- package/dist/lib/sharing/scoringRulesConfig.js +0 -47
- package/dist/lib/sharing/scoringRulesConfig.js.map +1 -1
- package/dist/lib/ssl/isValidSSL.d.ts +0 -12
- package/dist/lib/ssl/isValidSSL.js +6 -31
- package/dist/lib/ssl/isValidSSL.js.map +1 -1
- package/dist/lib/ssl/scoringConfig.js +0 -4
- package/dist/lib/ssl/scoringConfig.js.map +1 -1
- package/dist/lib/ssl/scoringRulesConfig.js +0 -41
- package/dist/lib/ssl/scoringRulesConfig.js.map +1 -1
- package/dist/lib/summary/isValidSummary.d.ts +0 -15
- package/dist/lib/summary/isValidSummary.js +1 -47
- package/dist/lib/summary/isValidSummary.js.map +1 -1
- package/dist/lib/summary/scoringConfig.js +0 -1
- package/dist/lib/summary/scoringConfig.js.map +1 -1
- package/dist/lib/summary/scoringRulesConfig.js +0 -53
- package/dist/lib/summary/scoringRulesConfig.js.map +1 -1
- package/dist/lib/tags/isValidTags.d.ts +0 -12
- package/dist/lib/tags/isValidTags.js +1 -20
- package/dist/lib/tags/isValidTags.js.map +1 -1
- package/dist/lib/tags/scoringConfig.js +0 -5
- package/dist/lib/tags/scoringConfig.js.map +1 -1
- package/dist/lib/tags/scoringRulesConfig.js +0 -41
- package/dist/lib/tags/scoringRulesConfig.js.map +1 -1
- package/dist/lib/thumbnail/isValidThumbnail.d.ts +0 -8
- package/dist/lib/thumbnail/isValidThumbnail.js +1 -30
- package/dist/lib/thumbnail/isValidThumbnail.js.map +1 -1
- package/dist/lib/thumbnail/scoringConfig.js +0 -9
- package/dist/lib/thumbnail/scoringConfig.js.map +1 -1
- package/dist/lib/thumbnail/scoringRulesConfig.js +0 -41
- package/dist/lib/thumbnail/scoringRulesConfig.js.map +1 -1
- package/dist/lib/title/isValidTitle.d.ts +0 -21
- package/dist/lib/title/isValidTitle.js +1 -55
- package/dist/lib/title/isValidTitle.js.map +1 -1
- package/dist/lib/title/scoringConfig.js +0 -1
- package/dist/lib/title/scoringConfig.js.map +1 -1
- package/dist/lib/title/scoringRulesConfig.js +0 -52
- package/dist/lib/title/scoringRulesConfig.js.map +1 -1
- package/dist/lib/userProfileDescription/isValidUserProfileDescription.d.ts +0 -21
- package/dist/lib/userProfileDescription/isValidUserProfileDescription.js +2 -76
- package/dist/lib/userProfileDescription/isValidUserProfileDescription.js.map +1 -1
- package/dist/lib/userProfileDescription/scoringConfig.js +0 -1
- package/dist/lib/userProfileDescription/scoringConfig.js.map +1 -1
- package/dist/lib/userProfileDescription/scoringRulesConfig.js +0 -59
- package/dist/lib/userProfileDescription/scoringRulesConfig.js.map +1 -1
- package/dist/lib/userProfileName/isValidUserProfileName.d.ts +0 -8
- package/dist/lib/userProfileName/isValidUserProfileName.js +2 -26
- package/dist/lib/userProfileName/isValidUserProfileName.js.map +1 -1
- package/dist/lib/userProfileName/scoringConfig.js +0 -5
- package/dist/lib/userProfileName/scoringConfig.js.map +1 -1
- package/dist/lib/userProfileName/scoringRulesConfig.js +0 -41
- package/dist/lib/userProfileName/scoringRulesConfig.js.map +1 -1
- package/dist/lib/userProfileThumbnail/isValidUserProfileThumbnail.d.ts +0 -12
- package/dist/lib/userProfileThumbnail/isValidUserProfileThumbnail.js +3 -27
- package/dist/lib/userProfileThumbnail/isValidUserProfileThumbnail.js.map +1 -1
- package/dist/lib/userProfileThumbnail/scoringConfig.js +0 -4
- package/dist/lib/userProfileThumbnail/scoringConfig.js.map +1 -1
- package/dist/lib/userProfileThumbnail/scoringRulesConfig.js +0 -35
- package/dist/lib/userProfileThumbnail/scoringRulesConfig.js.map +1 -1
- package/dist/lib/util/assertString.d.ts +0 -10
- package/dist/lib/util/assertString.js +0 -11
- package/dist/lib/util/assertString.js.map +1 -1
- package/dist/lib/util/checkIsLayer.d.ts +0 -5
- package/dist/lib/util/checkIsLayer.js +0 -5
- package/dist/lib/util/checkIsLayer.js.map +1 -1
- package/dist/lib/util/contains.d.ts +0 -6
- package/dist/lib/util/contains.js +0 -7
- package/dist/lib/util/contains.js.map +1 -1
- package/dist/lib/util/containsNonEnglishCharacters.d.ts +0 -12
- package/dist/lib/util/containsNonEnglishCharacters.js +2 -16
- package/dist/lib/util/containsNonEnglishCharacters.js.map +1 -1
- package/dist/lib/util/countSentences.d.ts +0 -22
- package/dist/lib/util/countSentences.js +4 -36
- package/dist/lib/util/countSentences.js.map +1 -1
- package/dist/lib/util/createWordBoundaryRegex.d.ts +0 -40
- package/dist/lib/util/createWordBoundaryRegex.js +0 -47
- package/dist/lib/util/createWordBoundaryRegex.js.map +1 -1
- package/dist/lib/util/escapeSpecialCharacters.d.ts +0 -6
- package/dist/lib/util/escapeSpecialCharacters.js +0 -8
- package/dist/lib/util/escapeSpecialCharacters.js.map +1 -1
- package/dist/lib/util/getAllValidationRuleIds.d.ts +0 -4
- package/dist/lib/util/getAllValidationRuleIds.js +0 -4
- package/dist/lib/util/getAllValidationRuleIds.js.map +1 -1
- package/dist/lib/util/getFeatureLayerFieldValueTypes.d.ts +0 -8
- package/dist/lib/util/getFeatureLayerFieldValueTypes.js +0 -8
- package/dist/lib/util/getFeatureLayerFieldValueTypes.js.map +1 -1
- package/dist/lib/util/getLivingAtlasSupportedItemTypes.d.ts +0 -17
- package/dist/lib/util/getLivingAtlasSupportedItemTypes.js +0 -17
- package/dist/lib/util/getLivingAtlasSupportedItemTypes.js.map +1 -1
- package/dist/lib/util/getNumberOfWords.d.ts +0 -5
- package/dist/lib/util/getNumberOfWords.js +1 -15
- package/dist/lib/util/getNumberOfWords.js.map +1 -1
- package/dist/lib/util/getRelevantFeatureLayerFields.d.ts +0 -11
- package/dist/lib/util/getRelevantFeatureLayerFields.js +0 -11
- package/dist/lib/util/getRelevantFeatureLayerFields.js.map +1 -1
- package/dist/lib/util/getScoringRules.d.ts +0 -17
- package/dist/lib/util/getScoringRules.js +0 -105
- package/dist/lib/util/getScoringRules.js.map +1 -1
- package/dist/lib/util/getThumbnailFileName.d.ts +0 -14
- package/dist/lib/util/getThumbnailFileName.js +0 -14
- package/dist/lib/util/getThumbnailFileName.js.map +1 -1
- package/dist/lib/util/isArcGISDomain.d.ts +0 -5
- package/dist/lib/util/isArcGISDomain.js +0 -5
- package/dist/lib/util/isArcGISDomain.js.map +1 -1
- package/dist/lib/util/isArcGISOnlineReservedThumbnailName.d.ts +0 -5
- package/dist/lib/util/isArcGISOnlineReservedThumbnailName.js +0 -5
- package/dist/lib/util/isArcGISOnlineReservedThumbnailName.js.map +1 -1
- package/dist/lib/util/isDefined.d.ts +0 -7
- package/dist/lib/util/isDefined.js +0 -7
- package/dist/lib/util/isDefined.js.map +1 -1
- package/dist/lib/util/isEmail.d.ts +0 -5
- package/dist/lib/util/isEmail.js +0 -5
- package/dist/lib/util/isEmail.js.map +1 -1
- package/dist/lib/util/isEmpty.d.ts +0 -5
- package/dist/lib/util/isEmpty.js +0 -5
- package/dist/lib/util/isEmpty.js.map +1 -1
- package/dist/lib/util/isFeatureCollection.d.ts +0 -5
- package/dist/lib/util/isFeatureCollection.js +0 -5
- package/dist/lib/util/isFeatureCollection.js.map +1 -1
- package/dist/lib/util/isFeatureService.d.ts +0 -11
- package/dist/lib/util/isFeatureService.js +0 -13
- package/dist/lib/util/isFeatureService.js.map +1 -1
- package/dist/lib/util/isHosted.d.ts +0 -5
- package/dist/lib/util/isHosted.js +0 -5
- package/dist/lib/util/isHosted.js.map +1 -1
- package/dist/lib/util/isLatin.d.ts +0 -5
- package/dist/lib/util/isLatin.js +0 -5
- package/dist/lib/util/isLatin.js.map +1 -1
- package/dist/lib/util/isLayer.d.ts +0 -10
- package/dist/lib/util/isLayer.js +1 -13
- package/dist/lib/util/isLayer.js.map +1 -1
- package/dist/lib/util/isSecureProtocol.d.ts +0 -5
- package/dist/lib/util/isSecureProtocol.js +0 -5
- package/dist/lib/util/isSecureProtocol.js.map +1 -1
- package/dist/lib/util/isUppercase.d.ts +0 -3
- package/dist/lib/util/isUppercase.js +0 -3
- package/dist/lib/util/isUppercase.js.map +1 -1
- package/dist/lib/util/isUrl.d.ts +0 -8
- package/dist/lib/util/isUrl.js +1 -11
- package/dist/lib/util/isUrl.js.map +1 -1
- package/dist/lib/util/isValidRegexPattern.d.ts +0 -6
- package/dist/lib/util/isValidRegexPattern.js +0 -6
- package/dist/lib/util/isValidRegexPattern.js.map +1 -1
- package/dist/lib/util/matches.d.ts +0 -11
- package/dist/lib/util/matches.js +0 -11
- package/dist/lib/util/matches.js.map +1 -1
- package/dist/lib/util/round.js +0 -4
- package/dist/lib/util/round.js.map +1 -1
- package/dist/lib/util/sanitizeTags.d.ts +0 -5
- package/dist/lib/util/sanitizeTags.js +0 -5
- package/dist/lib/util/sanitizeTags.js.map +1 -1
- package/dist/lib/util/shouldValidateByBetaRules.d.ts +0 -7
- package/dist/lib/util/shouldValidateByBetaRules.js +0 -31
- package/dist/lib/util/shouldValidateByBetaRules.js.map +1 -1
- package/dist/lib/util/stringsConfig.d.ts +0 -21
- package/dist/lib/util/stringsConfig.js +0 -38
- package/dist/lib/util/stringsConfig.js.map +1 -1
- package/dist/lib/util/toString.d.ts +0 -10
- package/dist/lib/util/toString.js +0 -10
- package/dist/lib/util/toString.js.map +1 -1
- package/dist/lib/validate/validate.d.ts +0 -64
- package/dist/lib/validate/validate.js +1 -52
- package/dist/lib/validate/validate.js.map +1 -1
- package/dist/lib/validate/validateHelpers.d.ts +0 -57
- package/dist/lib/validate/validateHelpers.js +1 -72
- package/dist/lib/validate/validateHelpers.js.map +1 -1
- package/dist/package-info.json +1 -1
- package/dist/services/content-validator-assets/config.d.ts +0 -3
- package/dist/services/content-validator-assets/config.js +0 -3
- package/dist/services/content-validator-assets/config.js.map +1 -1
- package/dist/services/content-validator-assets/fetchAdditonalPatterns4TitleAndSnippetSearchability.d.ts +0 -93
- package/dist/services/content-validator-assets/fetchAdditonalPatterns4TitleAndSnippetSearchability.js +0 -33
- package/dist/services/content-validator-assets/fetchAdditonalPatterns4TitleAndSnippetSearchability.js.map +1 -1
- package/dist/services/content-validator-assets/fetchProfanitiesData.d.ts +0 -24
- package/dist/services/content-validator-assets/fetchProfanitiesData.js +0 -19
- package/dist/services/content-validator-assets/fetchProfanitiesData.js.map +1 -1
- package/dist/services/content-validator-assets/helpers.d.ts +0 -14
- package/dist/services/content-validator-assets/helpers.js +1 -15
- package/dist/services/content-validator-assets/helpers.js.map +1 -1
- package/dist/services/custom-terms/config.d.ts +0 -11
- package/dist/services/custom-terms/config.js +0 -41
- package/dist/services/custom-terms/config.js.map +1 -1
- package/dist/services/custom-terms/customTerms.d.ts +0 -170
- package/dist/services/custom-terms/customTerms.js +4 -169
- package/dist/services/custom-terms/customTerms.js.map +1 -1
- package/dist/services/custom-terms/helpers.d.ts +0 -6
- package/dist/services/custom-terms/helpers.js +0 -6
- package/dist/services/custom-terms/helpers.js.map +1 -1
- package/dist/services/custom-terms-review-results/config.d.ts +0 -16
- package/dist/services/custom-terms-review-results/config.js +0 -42
- package/dist/services/custom-terms-review-results/config.js.map +1 -1
- package/dist/services/custom-terms-review-results/customTermsReviewResults.d.ts +0 -93
- package/dist/services/custom-terms-review-results/customTermsReviewResults.js +0 -87
- package/dist/services/custom-terms-review-results/customTermsReviewResults.js.map +1 -1
- package/dist/services/custom-terms-review-results/helpers.d.ts +0 -15
- package/dist/services/custom-terms-review-results/helpers.js +0 -16
- package/dist/services/custom-terms-review-results/helpers.js.map +1 -1
- package/dist/services/feature-service/fetchFeatureServiceAdminJSON.d.ts +0 -12
- package/dist/services/feature-service/fetchFeatureServiceAdminJSON.js +3 -13
- package/dist/services/feature-service/fetchFeatureServiceAdminJSON.js.map +1 -1
- package/dist/services/feature-service/fetchFeatureServiceLayersAndTables.d.ts +0 -12
- package/dist/services/feature-service/fetchFeatureServiceLayersAndTables.js +5 -32
- package/dist/services/feature-service/fetchFeatureServiceLayersAndTables.js.map +1 -1
- package/dist/services/feature-service/fetchFeatureServiceRootJSON.d.ts +0 -14
- package/dist/services/feature-service/fetchFeatureServiceRootJSON.js +5 -30
- package/dist/services/feature-service/fetchFeatureServiceRootJSON.js.map +1 -1
- package/dist/services/feature-service/getFeatureServerURL.d.ts +0 -11
- package/dist/services/feature-service/getFeatureServerURL.js +2 -14
- package/dist/services/feature-service/getFeatureServerURL.js.map +1 -1
- package/dist/services/shared/addFeatures.d.ts +0 -11
- package/dist/services/shared/addFeatures.js +0 -11
- package/dist/services/shared/addFeatures.js.map +1 -1
- package/dist/services/shared/applyEdits.d.ts +0 -11
- package/dist/services/shared/applyEdits.js +0 -11
- package/dist/services/shared/applyEdits.js.map +1 -1
- package/dist/services/shared/config.d.ts +0 -38
- package/dist/services/shared/config.js +0 -22
- package/dist/services/shared/config.js.map +1 -1
- package/dist/services/shared/getItemInfo.d.ts +0 -12
- package/dist/services/shared/getItemInfo.js +1 -16
- package/dist/services/shared/getItemInfo.js.map +1 -1
- package/dist/types/index.d.ts +1 -330
- package/dist/types/index.js +0 -19
- package/dist/types/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -3,11 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.meetRequiredThresholds = exports.meetMinimumTotalScore = exports.assignFinalScoresAndStatus = exports.getTotalScore = exports.flatValidationResults = void 0;
|
|
4
4
|
const config_1 = require("../config");
|
|
5
5
|
const round_1 = require("../util/round");
|
|
6
|
-
/**
|
|
7
|
-
* Flat the `ValidationResult` object and return an array of `ValidationInfo`
|
|
8
|
-
* @param validationResult
|
|
9
|
-
* @returns {ValidationInfo[]} array of all `ValidationInfo` from `validatedItem` and `validatedProfile` objects
|
|
10
|
-
*/
|
|
11
6
|
const flatValidationResults = (validationResult) => {
|
|
12
7
|
const { validatedItem, validatedProfile } = validationResult || {};
|
|
13
8
|
if (!validatedItem || !validatedProfile) {
|
|
@@ -19,16 +14,6 @@ const flatValidationResults = (validationResult) => {
|
|
|
19
14
|
];
|
|
20
15
|
};
|
|
21
16
|
exports.flatValidationResults = flatValidationResults;
|
|
22
|
-
/**
|
|
23
|
-
* Returns the total score of the validation result.
|
|
24
|
-
*
|
|
25
|
-
* The total score is calculated by summing up the scores of all validation results
|
|
26
|
-
* that are applicable to Living Atlas supported item types.
|
|
27
|
-
*
|
|
28
|
-
* @param validationResult - The validation result object containing all validation information
|
|
29
|
-
* @param isLivingAtlasSupportedItemType - Boolean indicating if the item type is supported by Living Atlas
|
|
30
|
-
* @returns The total score of the validation result
|
|
31
|
-
*/
|
|
32
17
|
const getTotalScore = (validationResult, isLivingAtlasSupportedItemType) => {
|
|
33
18
|
if (!validationResult || !isLivingAtlasSupportedItemType) {
|
|
34
19
|
return 0;
|
|
@@ -38,45 +23,20 @@ const getTotalScore = (validationResult, isLivingAtlasSupportedItemType) => {
|
|
|
38
23
|
return (0, round_1.round)(totalScore);
|
|
39
24
|
};
|
|
40
25
|
exports.getTotalScore = getTotalScore;
|
|
41
|
-
/**
|
|
42
|
-
* Assigns final scores and statuses to each validation result within the given validation result object.
|
|
43
|
-
*
|
|
44
|
-
* This function processes each validation result to:
|
|
45
|
-
* 1. Calculate total weight of all applicable validation rules
|
|
46
|
-
* 2. Calculate score per weight unit
|
|
47
|
-
* 3. Assign maximum possible score and actual score to each validation result
|
|
48
|
-
* 4. Determine status based on applicability and score
|
|
49
|
-
*
|
|
50
|
-
* The status will be one of:
|
|
51
|
-
* - 'not-applicable': When the rule doesn't apply to this item type
|
|
52
|
-
* - 'error': When applicable but scored 0
|
|
53
|
-
* - 'warning': When applicable but scored less than maximum
|
|
54
|
-
* - 'pass': When applicable and scored the maximum
|
|
55
|
-
*
|
|
56
|
-
* @param validationResult - The validation result object containing all validation information
|
|
57
|
-
* @param isLivingAtlasSupportedItemType - Boolean indicating if the item type is supported by Living Atlas
|
|
58
|
-
* @returns The updated validation result object with scores and statuses assigned
|
|
59
|
-
*/
|
|
60
26
|
const assignFinalScoresAndStatus = (validationResult, isLivingAtlasSupportedItemType) => {
|
|
61
27
|
const validationResults = (0, exports.flatValidationResults)(validationResult);
|
|
62
|
-
// Calculate the sum of weights from all validation rules that can be applied to the input item.
|
|
63
28
|
const totalWeight = validationResults.reduce((prev, curr) => prev + curr.weight, 0);
|
|
64
|
-
// Calculate the score associated with each weight.
|
|
65
29
|
const scorePerWeight = 100 / totalWeight;
|
|
66
30
|
for (const validationResult of validationResults) {
|
|
67
31
|
const { weight, scoringFactor } = validationResult;
|
|
68
|
-
// Calculate the maximum score and actual score based on the weight.
|
|
69
32
|
const maxScore = weight * scorePerWeight;
|
|
70
33
|
const score = scoringFactor * maxScore;
|
|
71
|
-
// Assign the calculated values to the validation result object.
|
|
72
34
|
validationResult.maxScore = maxScore;
|
|
73
35
|
validationResult.score = score;
|
|
74
36
|
}
|
|
75
37
|
for (const validationResult of validationResults) {
|
|
76
38
|
const { maxScore, score } = validationResult;
|
|
77
|
-
// Determine if the validation result is applicable.
|
|
78
39
|
const isApplicable = maxScore > 0 && isLivingAtlasSupportedItemType;
|
|
79
|
-
// Determine the status of the validation result.
|
|
80
40
|
if (!isApplicable) {
|
|
81
41
|
validationResult.status = 'not-applicable';
|
|
82
42
|
}
|
|
@@ -93,33 +53,10 @@ const assignFinalScoresAndStatus = (validationResult, isLivingAtlasSupportedItem
|
|
|
93
53
|
return validationResult;
|
|
94
54
|
};
|
|
95
55
|
exports.assignFinalScoresAndStatus = assignFinalScoresAndStatus;
|
|
96
|
-
/**
|
|
97
|
-
* Return `true` if the total score of the validation result meets the minimum threshold, which is 80.
|
|
98
|
-
*
|
|
99
|
-
* @param totalScore total score from the validation result
|
|
100
|
-
* @returns true if it meets the minimum threshold
|
|
101
|
-
*/
|
|
102
56
|
const meetMinimumTotalScore = (totalScore) => {
|
|
103
57
|
return totalScore >= config_1.MINIMUM_SCORE_THRESHHOLD;
|
|
104
58
|
};
|
|
105
59
|
exports.meetMinimumTotalScore = meetMinimumTotalScore;
|
|
106
|
-
/**
|
|
107
|
-
* Checks if an item can be nominated to Living Atlas based on a set of minimum requirements.
|
|
108
|
-
*
|
|
109
|
-
* An item can be nominated only if its total score meets the minimum required threshold of **80** and it also passes all of
|
|
110
|
-
* the following checks:
|
|
111
|
-
*
|
|
112
|
-
* - It is shared with the public
|
|
113
|
-
* - It is NOT marked as deprecated
|
|
114
|
-
* - It has Delete Protection enabled
|
|
115
|
-
* - Its thumbnail image meets the required dimension
|
|
116
|
-
* - It has a snippet text
|
|
117
|
-
* - It has a description text
|
|
118
|
-
* - The item owner has a user profile description
|
|
119
|
-
*
|
|
120
|
-
* @param validationResult The validation result
|
|
121
|
-
* @returns A boolean value that indicates whether all the scores meet the required thresholds.
|
|
122
|
-
*/
|
|
123
60
|
const meetRequiredThresholds = (validationResult, isLivingAtlasSupportedItemType) => {
|
|
124
61
|
if (!validationResult || !isLivingAtlasSupportedItemType) {
|
|
125
62
|
return false;
|
|
@@ -134,20 +71,12 @@ const meetRequiredThresholds = (validationResult, isLivingAtlasSupportedItemType
|
|
|
134
71
|
}
|
|
135
72
|
const { access, thumbnail, snippet, description, deprecated, deleteProtection, } = validatedItem;
|
|
136
73
|
const { userProfileDescription } = validatedProfile;
|
|
137
|
-
if (
|
|
138
|
-
// must be shared with public
|
|
139
|
-
access.score !== access.maxScore ||
|
|
140
|
-
// must have perfect thumbnail
|
|
74
|
+
if (access.score !== access.maxScore ||
|
|
141
75
|
thumbnail.score !== thumbnail.maxScore ||
|
|
142
|
-
// must not be deprecated
|
|
143
76
|
deprecated.score !== deprecated.maxScore ||
|
|
144
|
-
// must have delete protection enabled
|
|
145
77
|
deleteProtection.score !== deleteProtection.maxScore ||
|
|
146
|
-
// snippet cannot be empty
|
|
147
78
|
snippet.score === 0 ||
|
|
148
|
-
// description cannot be empty
|
|
149
79
|
description.score === 0 ||
|
|
150
|
-
// user profile cannot be empty
|
|
151
80
|
userProfileDescription.score === 0) {
|
|
152
81
|
return false;
|
|
153
82
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validateHelpers.js","sourceRoot":"","sources":["../../../src/lib/validate/validateHelpers.ts"],"names":[],"mappings":";;;AACA,sCAAqD;AACrD,yCAAsC;
|
|
1
|
+
{"version":3,"file":"validateHelpers.js","sourceRoot":"","sources":["../../../src/lib/validate/validateHelpers.ts"],"names":[],"mappings":";;;AACA,sCAAqD;AACrD,yCAAsC;AAO/B,MAAM,qBAAqB,GAAG,CACjC,gBAAkC,EAClB,EAAE;IAClB,MAAM,EAAE,aAAa,EAAE,gBAAgB,EAAE,GAAG,gBAAgB,IAAI,EAAE,CAAC;IAEnE,IAAI,CAAC,aAAa,IAAI,CAAC,gBAAgB,EAAE,CAAC;QACtC,OAAO,EAAE,CAAC;IACd,CAAC;IAED,OAAO;QACH,GAAG,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC;QAC/B,GAAG,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC;KACrC,CAAC;AACN,CAAC,CAAC;AAbW,QAAA,qBAAqB,yBAahC;AAYK,MAAM,aAAa,GAAG,CACzB,gBAAkC,EAClC,8BAAuC,EACzC,EAAE;IACA,IAAI,CAAC,gBAAgB,IAAI,CAAC,8BAA8B,EAAE,CAAC;QACvD,OAAO,CAAC,CAAC;IACb,CAAC;IAED,MAAM,iBAAiB,GACnB,IAAA,6BAAqB,EAAC,gBAAgB,CAAC,CAAC;IAE5C,MAAM,UAAU,GAAG,iBAAiB,CAAC,MAAM,CACvC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AAC,QAAQ;QAEtC,UAAU,CAAC,KAAK,KAAK,UAAU,CAAC,QAAQ;QAExC,gBAAgB,CAAC,KAAK,KAAK,gBAAgB,CAAC,QAAQ;QAEpD,OAAO,CAAC,KAAK,KAAK,CAAC;QAEnB,WAAW,CAAC,KAAK,KAAK,CAAC;QAEvB,sBAAsB,CAAC,KAAK,KAAK,CAAC,EACpC,CAAC;QACC,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO,IAAI,CAAC;AAChB,CAAC,CAAC;AAnDW,QAAA,sBAAsB,0BAmDjC"}
|
package/dist/package-info.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"lastCompiledTime":
|
|
1
|
+
{"lastCompiledTime":1766787802277,"version":"1.5.23"}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ASSETS_FOLDER_PATH = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Path of the assets folder on the Living Atlas server.
|
|
6
|
-
*/
|
|
7
4
|
exports.ASSETS_FOLDER_PATH = '/media/content-validator-assets';
|
|
8
5
|
//# sourceMappingURL=config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/services/content-validator-assets/config.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/services/content-validator-assets/config.ts"],"names":[],"mappings":";;;AAGa,QAAA,kBAAkB,GAAG,iCAAiC,CAAC"}
|
|
@@ -1,111 +1,18 @@
|
|
|
1
1
|
import { ServiceTier } from '../shared/config';
|
|
2
2
|
export type AdditionalPatterns4TitleAndSnippetSearchability = {
|
|
3
|
-
/**
|
|
4
|
-
* A list of extra matching patterns for location matching.
|
|
5
|
-
*
|
|
6
|
-
* @example
|
|
7
|
-
* ```
|
|
8
|
-
* ["New York", "Los Angeles"]
|
|
9
|
-
* ```
|
|
10
|
-
*/
|
|
11
3
|
matchingPatternsLocation: string[];
|
|
12
|
-
/**
|
|
13
|
-
* A list of extra rejected patterns for location matching.
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```
|
|
17
|
-
* ["Unknown", "Unknown Location"]
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
4
|
rejectedPatternsLocation: string[];
|
|
21
|
-
/**
|
|
22
|
-
* A list of extra matching patterns for source matching.
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```
|
|
26
|
-
* ["NOAA", "Department of Energy"]
|
|
27
|
-
* ```
|
|
28
|
-
*/
|
|
29
5
|
matchingPatternsSource: string[];
|
|
30
|
-
/**
|
|
31
|
-
* A list of extra rejected patterns for source matching.
|
|
32
|
-
*
|
|
33
|
-
* @example
|
|
34
|
-
* ```
|
|
35
|
-
* ["Unknown", "Unknown Source"]
|
|
36
|
-
* ```
|
|
37
|
-
*/
|
|
38
6
|
rejectedPatternsSource: string[];
|
|
39
|
-
/**
|
|
40
|
-
* A list of extra matching patterns for topic matching.
|
|
41
|
-
*
|
|
42
|
-
* @example
|
|
43
|
-
* ```
|
|
44
|
-
* ["Climate Change", "Renewable Energy"]
|
|
45
|
-
* ```
|
|
46
|
-
*/
|
|
47
7
|
matchingPatternsTopic: string[];
|
|
48
|
-
/**
|
|
49
|
-
* A list of extra rejected patterns for topic matching.
|
|
50
|
-
*
|
|
51
|
-
* @example
|
|
52
|
-
* ```
|
|
53
|
-
* ["Unknown", "Unknown Topic"]
|
|
54
|
-
* ```
|
|
55
|
-
*/
|
|
56
8
|
rejectedPatternsTopic: string[];
|
|
57
|
-
/**
|
|
58
|
-
* A list of extra matching patterns for title matching.
|
|
59
|
-
*
|
|
60
|
-
* @example
|
|
61
|
-
* ```
|
|
62
|
-
* ["bi-weekly", "monthly"]
|
|
63
|
-
* ```
|
|
64
|
-
*/
|
|
65
9
|
matchingPatternsYearVintage: string[];
|
|
66
|
-
/**
|
|
67
|
-
* A list of extra rejected patterns for year vintage matching.
|
|
68
|
-
*
|
|
69
|
-
* @example
|
|
70
|
-
* ```
|
|
71
|
-
* ["Unknown", "Unknown Year Vintage"]
|
|
72
|
-
* ```
|
|
73
|
-
*/
|
|
74
10
|
rejectedPatternsYearVintage: string[];
|
|
75
|
-
/**
|
|
76
|
-
* The timestamp when the data was last updated.
|
|
77
|
-
*/
|
|
78
11
|
updatedAt?: string;
|
|
79
12
|
};
|
|
80
13
|
type FetchAdditonalPatterns4TitleAndSnippetSearchabilityOptions = {
|
|
81
14
|
language?: string;
|
|
82
|
-
/**
|
|
83
|
-
* The service tier, either 'dev' or 'prod'.
|
|
84
|
-
* This is needed to construct the correct asset folder path when in a Node.js environment.
|
|
85
|
-
* The browser environment can determine the tier based on the hostname.
|
|
86
|
-
*/
|
|
87
15
|
tier?: ServiceTier;
|
|
88
16
|
};
|
|
89
|
-
/**
|
|
90
|
-
* Fetches additional pattern rules for validating the searchability of titles and snippets.
|
|
91
|
-
*
|
|
92
|
-
* This function retrieves additional matching and rejected patterns for different categories,
|
|
93
|
-
* including location, source, topic, and year vintage. These patterns help determine whether
|
|
94
|
-
* a title or snippet is valid for searchability.
|
|
95
|
-
*
|
|
96
|
-
* @param {string} params.language - The language code (e.g., "en", "es", "fr") to fetch the appropriate localized patterns. The default is "en".
|
|
97
|
-
* @param {ServiceTier} params.tier - The service tier, either 'dev' or 'prod'. This is needed to construct the correct asset folder path when in a Node.js environment.
|
|
98
|
-
* If not provided, defaults to 'dev'. the browser environment can determine the tier based on the hostname.
|
|
99
|
-
* @returns {Promise<AdditionalPattern>} A promise resolving to an object containing categorized matching and rejected patterns.
|
|
100
|
-
*
|
|
101
|
-
* @example
|
|
102
|
-
* ```typescript
|
|
103
|
-
* const patterns = await fetchPatternRulesForTitleSearchability({
|
|
104
|
-
* language: 'en',
|
|
105
|
-
* tier: 'dev'
|
|
106
|
-
* });
|
|
107
|
-
* console.log(patterns.matchingPatternsLocation); // ["New York", "Los Angeles"]
|
|
108
|
-
* ```
|
|
109
|
-
*/
|
|
110
17
|
export declare const fetchAdditonalPatterns4TitleAndSnippetSearchability: ({ language, tier, }?: FetchAdditonalPatterns4TitleAndSnippetSearchabilityOptions) => Promise<AdditionalPatterns4TitleAndSnippetSearchability>;
|
|
111
18
|
export {};
|
|
@@ -11,31 +11,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.fetchAdditonalPatterns4TitleAndSnippetSearchability = void 0;
|
|
13
13
|
const helpers_1 = require("./helpers");
|
|
14
|
-
/**
|
|
15
|
-
* Fetches additional pattern rules for validating the searchability of titles and snippets.
|
|
16
|
-
*
|
|
17
|
-
* This function retrieves additional matching and rejected patterns for different categories,
|
|
18
|
-
* including location, source, topic, and year vintage. These patterns help determine whether
|
|
19
|
-
* a title or snippet is valid for searchability.
|
|
20
|
-
*
|
|
21
|
-
* @param {string} params.language - The language code (e.g., "en", "es", "fr") to fetch the appropriate localized patterns. The default is "en".
|
|
22
|
-
* @param {ServiceTier} params.tier - The service tier, either 'dev' or 'prod'. This is needed to construct the correct asset folder path when in a Node.js environment.
|
|
23
|
-
* If not provided, defaults to 'dev'. the browser environment can determine the tier based on the hostname.
|
|
24
|
-
* @returns {Promise<AdditionalPattern>} A promise resolving to an object containing categorized matching and rejected patterns.
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* ```typescript
|
|
28
|
-
* const patterns = await fetchPatternRulesForTitleSearchability({
|
|
29
|
-
* language: 'en',
|
|
30
|
-
* tier: 'dev'
|
|
31
|
-
* });
|
|
32
|
-
* console.log(patterns.matchingPatternsLocation); // ["New York", "Los Angeles"]
|
|
33
|
-
* ```
|
|
34
|
-
*/
|
|
35
14
|
const fetchAdditonalPatterns4TitleAndSnippetSearchability = (...args_1) => __awaiter(void 0, [...args_1], void 0, function* ({ language = 'en', tier = 'dev', } = {}) {
|
|
36
15
|
const queryTimestamp = (0, helpers_1.getRoundedTimestamp)(1);
|
|
37
16
|
const assetsFolderPath = (0, helpers_1.getAssetFolderPath)(tier);
|
|
38
|
-
// add the timestamp to the request URL to avoid cdn caching
|
|
39
17
|
const requestURL = `${assetsFolderPath}/check-title-snippet-searchability/additional-patterns.${language}.json?timestamp=${queryTimestamp}`;
|
|
40
18
|
try {
|
|
41
19
|
const response = yield fetch(requestURL);
|
|
@@ -43,7 +21,6 @@ const fetchAdditonalPatterns4TitleAndSnippetSearchability = (...args_1) => __awa
|
|
|
43
21
|
throw new Error(`Error fetching additional patterns: ${response.statusText}`);
|
|
44
22
|
}
|
|
45
23
|
const data = yield response.json();
|
|
46
|
-
// console.log('data', data);
|
|
47
24
|
if (!data || typeof data !== 'object' || Array.isArray(data)) {
|
|
48
25
|
throw new Error(`Invalid JSON format received for language: ${language}`);
|
|
49
26
|
}
|
|
@@ -81,16 +58,6 @@ const fetchAdditonalPatterns4TitleAndSnippetSearchability = (...args_1) => __awa
|
|
|
81
58
|
console.error(`Error fetching pattern rules for language: ${language}`, error);
|
|
82
59
|
throw new Error((error === null || error === void 0 ? void 0 : error.message) ||
|
|
83
60
|
`Error fetching pattern rules for language: ${language}`);
|
|
84
|
-
// return {
|
|
85
|
-
// matchingPatternsLocation: [],
|
|
86
|
-
// rejectedPatternsLocation: [],
|
|
87
|
-
// matchingPatternsSource: [],
|
|
88
|
-
// rejectedPatternsSource: [],
|
|
89
|
-
// matchingPatternsTopic: [],
|
|
90
|
-
// rejectedPatternsTopic: [],
|
|
91
|
-
// matchingPatternsYearVintage: [],
|
|
92
|
-
// rejectedPatternsYearVintage: [],
|
|
93
|
-
// };
|
|
94
61
|
}
|
|
95
62
|
});
|
|
96
63
|
exports.fetchAdditonalPatterns4TitleAndSnippetSearchability = fetchAdditonalPatterns4TitleAndSnippetSearchability;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchAdditonalPatterns4TitleAndSnippetSearchability.js","sourceRoot":"","sources":["../../../src/services/content-validator-assets/fetchAdditonalPatterns4TitleAndSnippetSearchability.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,uCAAoE;
|
|
1
|
+
{"version":3,"file":"fetchAdditonalPatterns4TitleAndSnippetSearchability.js","sourceRoot":"","sources":["../../../src/services/content-validator-assets/fetchAdditonalPatterns4TitleAndSnippetSearchability.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,uCAAoE;AAgH7D,MAAM,mDAAmD,GAAG,YAG2D,EAAE,mDAHtD,EACtE,QAAQ,GAAG,IAAI,EACf,IAAI,GAAG,KAAK,MACgD,EAAE;IAC9D,MAAM,cAAc,GAAG,IAAA,6BAAmB,EAAC,CAAC,CAAC,CAAC;IAE9C,MAAM,gBAAgB,GAAG,IAAA,4BAAkB,EAAC,IAAI,CAAC,CAAC;IAGlD,MAAM,UAAU,GAAG,GAAG,gBAAgB,0DAA0D,QAAQ,mBAAmB,cAAc,EAAE,CAAC;IAE5I,IAAI,CAAC;QACD,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,UAAU,CAAC,CAAC;QAEzC,IAAI,CAAC,QAAQ,CAAC,EAAE,IAAI,QAAQ,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;YAC1C,MAAM,IAAI,KAAK,CACX,uCAAuC,QAAQ,CAAC,UAAU,EAAE,CAC/D,CAAC;QACN,CAAC;QAED,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QAGnC,IAAI,CAAC,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;YAC3D,MAAM,IAAI,KAAK,CACX,8CAA8C,QAAQ,EAAE,CAC3D,CAAC;QACN,CAAC;QAED,IACI,CAAC,IAAI,CAAC,0BAA0B,CAAC;YACjC,CAAC,IAAI,CAAC,0BAA0B,CAAC;YACjC,CAAC,IAAI,CAAC,wBAAwB,CAAC;YAC/B,CA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E,CAC/D,CAAC;IAYN,CAAC;AACL,CAAC,CAAA,CAAC;AAtFW,QAAA,mDAAmD,uDAsF9D"}
|
|
@@ -1,31 +1,7 @@
|
|
|
1
1
|
import { ServiceTier } from '../shared/config';
|
|
2
2
|
type FetchProfanitiesDataParams = {
|
|
3
|
-
/**
|
|
4
|
-
* The language code for which to fetch profanities.
|
|
5
|
-
* Defaults to 'en' (English) if not provided.
|
|
6
|
-
*/
|
|
7
3
|
language?: string;
|
|
8
|
-
/**
|
|
9
|
-
* The service tier to determine the asset folder path.
|
|
10
|
-
*/
|
|
11
4
|
tier?: ServiceTier;
|
|
12
5
|
};
|
|
13
|
-
/**
|
|
14
|
-
* Fetches profanities data for a specified language from a remote source.
|
|
15
|
-
*
|
|
16
|
-
* This function retrieves a list of profane terms from a JSON file located in the assets folder.
|
|
17
|
-
* The URL includes a timestamp to prevent CDN caching.
|
|
18
|
-
*
|
|
19
|
-
* @param language - The language code for which to fetch profanities. Defaults to 'en' (English).
|
|
20
|
-
* @returns A Promise that resolves to an array of strings containing profanity terms.
|
|
21
|
-
* @throws {Error} If the fetch request fails, returns a 404, or if the response contains invalid data.
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* // Fetch English profanities
|
|
25
|
-
* const englishProfanities = await fetchProfanitiesData();
|
|
26
|
-
*
|
|
27
|
-
* // Fetch Spanish profanities
|
|
28
|
-
* const spanishProfanities = await fetchProfanitiesData('es');
|
|
29
|
-
*/
|
|
30
6
|
export declare const fetchProfanitiesData: ({ language, tier, }?: FetchProfanitiesDataParams) => Promise<string[]>;
|
|
31
7
|
export {};
|
|
@@ -11,27 +11,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.fetchProfanitiesData = void 0;
|
|
13
13
|
const helpers_1 = require("./helpers");
|
|
14
|
-
/**
|
|
15
|
-
* Fetches profanities data for a specified language from a remote source.
|
|
16
|
-
*
|
|
17
|
-
* This function retrieves a list of profane terms from a JSON file located in the assets folder.
|
|
18
|
-
* The URL includes a timestamp to prevent CDN caching.
|
|
19
|
-
*
|
|
20
|
-
* @param language - The language code for which to fetch profanities. Defaults to 'en' (English).
|
|
21
|
-
* @returns A Promise that resolves to an array of strings containing profanity terms.
|
|
22
|
-
* @throws {Error} If the fetch request fails, returns a 404, or if the response contains invalid data.
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* // Fetch English profanities
|
|
26
|
-
* const englishProfanities = await fetchProfanitiesData();
|
|
27
|
-
*
|
|
28
|
-
* // Fetch Spanish profanities
|
|
29
|
-
* const spanishProfanities = await fetchProfanitiesData('es');
|
|
30
|
-
*/
|
|
31
14
|
const fetchProfanitiesData = (...args_1) => __awaiter(void 0, [...args_1], void 0, function* ({ language = 'en', tier = 'dev', } = {}) {
|
|
32
15
|
const queryTimestamp = (0, helpers_1.getRoundedTimestamp)(1);
|
|
33
16
|
const assetsFolderPath = (0, helpers_1.getAssetFolderPath)(tier);
|
|
34
|
-
// add the timestamp to the request URL to avoid cdn caching
|
|
35
17
|
const requestURL = `${assetsFolderPath}/check-profanity/profanities.${language}.json?timestamp=${queryTimestamp}`;
|
|
36
18
|
try {
|
|
37
19
|
const response = yield fetch(requestURL);
|
|
@@ -39,7 +21,6 @@ const fetchProfanitiesData = (...args_1) => __awaiter(void 0, [...args_1], void
|
|
|
39
21
|
throw new Error(`Error fetching profanities data: ${response.statusText}`);
|
|
40
22
|
}
|
|
41
23
|
const data = yield response.json();
|
|
42
|
-
// console.log('data', data);
|
|
43
24
|
if (!data || typeof data !== 'object' || !Array.isArray(data)) {
|
|
44
25
|
throw new Error(`Invalid JSON format received for language: ${language}`);
|
|
45
26
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchProfanitiesData.js","sourceRoot":"","sources":["../../../src/services/content-validator-assets/fetchProfanitiesData.ts"],"names":[],"mappings":";;;;;;;;;;;;AAC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CAAC;IACN,CAAC;AACL,CAAC,CAAA,CAAC;AAzCW,QAAA,oBAAoB,wBAyC/B"}
|
|
@@ -1,17 +1,3 @@
|
|
|
1
1
|
import { ServiceTier } from '../shared/config';
|
|
2
|
-
/**
|
|
3
|
-
* Returns a rounded timestamp based on the specified number of minutes.
|
|
4
|
-
* @param {number} numOfMin - The number of minutes to round the timestamp to. Defaults to 5 if not provided.
|
|
5
|
-
* @returns {number} The rounded timestamp in milliseconds.
|
|
6
|
-
*/
|
|
7
2
|
export declare const getRoundedTimestamp: (numOfMin?: number) => number;
|
|
8
|
-
/**
|
|
9
|
-
* Retrieves the asset folder path based on the environment.
|
|
10
|
-
*
|
|
11
|
-
* If the environment is not Node.js, it returns the predefined `ASSETS_FOLDER_PATH`.
|
|
12
|
-
* Otherwise, it constructs the URL based on the service tier (development or production)
|
|
13
|
-
* and appends the `ASSETS_FOLDER_PATH` to it.
|
|
14
|
-
*
|
|
15
|
-
* @returns {string} The asset folder path.
|
|
16
|
-
*/
|
|
17
3
|
export declare const getAssetFolderPath: (tier: ServiceTier) => string;
|
|
@@ -3,25 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getAssetFolderPath = exports.getRoundedTimestamp = void 0;
|
|
4
4
|
const config_1 = require("../shared/config");
|
|
5
5
|
const config_2 = require("./config");
|
|
6
|
-
/**
|
|
7
|
-
* Returns a rounded timestamp based on the specified number of minutes.
|
|
8
|
-
* @param {number} numOfMin - The number of minutes to round the timestamp to. Defaults to 5 if not provided.
|
|
9
|
-
* @returns {number} The rounded timestamp in milliseconds.
|
|
10
|
-
*/
|
|
11
6
|
const getRoundedTimestamp = (numOfMin = 5) => {
|
|
12
7
|
const coeff = 1000 * 60 * numOfMin;
|
|
13
|
-
return Math.floor(Date.now() / coeff) * coeff;
|
|
8
|
+
return Math.floor(Date.now() / coeff) * coeff;
|
|
14
9
|
};
|
|
15
10
|
exports.getRoundedTimestamp = getRoundedTimestamp;
|
|
16
|
-
/**
|
|
17
|
-
* Retrieves the asset folder path based on the environment.
|
|
18
|
-
*
|
|
19
|
-
* If the environment is not Node.js, it returns the predefined `ASSETS_FOLDER_PATH`.
|
|
20
|
-
* Otherwise, it constructs the URL based on the service tier (development or production)
|
|
21
|
-
* and appends the `ASSETS_FOLDER_PATH` to it.
|
|
22
|
-
*
|
|
23
|
-
* @returns {string} The asset folder path.
|
|
24
|
-
*/
|
|
25
11
|
const getAssetFolderPath = (tier) => {
|
|
26
12
|
if (!config_1.isNodeEnv) {
|
|
27
13
|
return config_2.ASSETS_FOLDER_PATH;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../src/services/content-validator-assets/helpers.ts"],"names":[],"mappings":";;;AAAA,6CAA0D;AAC1D,qCAA8C;
|
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../src/services/content-validator-assets/helpers.ts"],"names":[],"mappings":";;;AAAA,6CAA0D;AAC1D,qCAA8C;AAOvC,MAAM,mBAAmB,GAAG,CAAC,QAAQ,GAAG,CAAC,EAAE,EAAE;IAChD,MAAM,KAAK,GAAG,IAAI,GAAG,EAAE,GAAG,QAAQ,CAAC;IACnC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,KAAK,CAAC,GAAG,KAAK,CAAC;AAClD,CAAC,CAAC;AAHW,QAAA,mBAAmB,uBAG9B;AAWK,MAAM,kBAAkB,GAAG,CAAC,IAAiB,EAAU,EAAE;IAC5D,IAAI,CAAC,kBAAS,EAAE,CAAC;QACb,OAAO,2BAAkB,CAAC;IAC9B,CAAC;IAED,MAAM,QAAQ,GACV,IAAI,KAAK,KAAK;QACV,CAAC,CAAC,mCAAmC;QACrC,CAAC,CAAC,gCAAgC,CAAC;IAE3C,OAAO,QAAQ,GAAG,2BAAkB,CAAC;AACzC,CAAC,CAAC;AAXW,QAAA,kBAAkB,sBAW7B"}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This enum defines the field names used in the Custom Terms feature table.
|
|
3
|
-
*/
|
|
4
1
|
export declare enum CustomTermsFeatureTableField {
|
|
5
2
|
OBJECT_ID = "OBJECTID",
|
|
6
3
|
TERM = "term",
|
|
@@ -15,13 +12,5 @@ export declare enum CustomTermsFeatureTableField {
|
|
|
15
12
|
EDIT_DATE = "EditDate",
|
|
16
13
|
EDITOR = "Editor"
|
|
17
14
|
}
|
|
18
|
-
/**
|
|
19
|
-
* Gets the URL for the Custom Terms feature table based on the service tier.
|
|
20
|
-
* @returns the URL for the Custom Terms feature table.
|
|
21
|
-
*/
|
|
22
15
|
export declare const getCustomTermsFeatureTableUrl: () => string;
|
|
23
|
-
/**
|
|
24
|
-
* Gets the URL for the itemInfo endpoint for the Custom Terms feature table.
|
|
25
|
-
* @returns The URL for the itemInfo endpoint for the Custom Terms feature table.
|
|
26
|
-
*/
|
|
27
16
|
export declare const getCustomTermsFeatureTableItemInfoUrl: () => string;
|
|
@@ -2,45 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getCustomTermsFeatureTableItemInfoUrl = exports.getCustomTermsFeatureTableUrl = exports.CustomTermsFeatureTableField = void 0;
|
|
4
4
|
const config_1 = require("../shared/config");
|
|
5
|
-
/**
|
|
6
|
-
* The root URL for the Custom Terms feature table in the development environment.
|
|
7
|
-
* @see
|
|
8
|
-
* https://servicesdev.arcgis.com/VLx4vrvwONglS8iz/ArcGIS/rest/services/Custom_Terms/FeatureServer
|
|
9
|
-
*/
|
|
10
5
|
const CUSTOM_TERMS_FEATURE_TABLE_ROOT_DEV = 'https://servicesdev.arcgis.com/VLx4vrvwONglS8iz/arcgis/rest/services/Custom_Terms/FeatureServer';
|
|
11
|
-
/**
|
|
12
|
-
* The URL for the Custom Terms feature table in the development environment.
|
|
13
|
-
* @see
|
|
14
|
-
* https://servicesdev.arcgis.com/VLx4vrvwONglS8iz/ArcGIS/rest/services/Custom_Terms/FeatureServer/0
|
|
15
|
-
*/
|
|
16
6
|
const CUSTOM_TERMS_FEATURE_TABLE_URL_DEV = CUSTOM_TERMS_FEATURE_TABLE_ROOT_DEV + '/0';
|
|
17
|
-
/**
|
|
18
|
-
* The URL for the itemInfo endpoint for the Custom Terms feature table in the development environment.
|
|
19
|
-
* @see
|
|
20
|
-
* https://servicesdev.arcgis.com/VLx4vrvwONglS8iz/ArcGIS/rest/services/Custom_Terms/FeatureServer/info/itemInfo
|
|
21
|
-
*/
|
|
22
7
|
const CUSTOM_TERMS_FEATURE_TABLE_ITEMINFO_DEV = CUSTOM_TERMS_FEATURE_TABLE_ROOT_DEV + '/info/itemInfo';
|
|
23
|
-
/**
|
|
24
|
-
* The root URL for the Custom Terms feature table in the production environment.
|
|
25
|
-
* @see
|
|
26
|
-
* https://services.arcgis.com/jIL9msH9OI208GCb/arcgis/rest/services/Custom_Terms/FeatureServer
|
|
27
|
-
*/
|
|
28
8
|
const CUSTOM_TERMS_FEATURE_TABLE_ROOT_PROD = 'https://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/Custom_Terms/FeatureServer';
|
|
29
|
-
/**
|
|
30
|
-
* The URL for the Custom Terms feature table in the production environment.
|
|
31
|
-
* @see
|
|
32
|
-
* https://services.arcgis.com/jIL9msH9OI208GCb/ArcGIS/rest/services/Custom_Terms/FeatureServer/0
|
|
33
|
-
*/
|
|
34
9
|
const CUSTOM_TERMS_FEATURE_TABLE_URL_PROD = CUSTOM_TERMS_FEATURE_TABLE_ROOT_PROD + '/0';
|
|
35
|
-
/**
|
|
36
|
-
* The URL for the itemInfo endpoint for the Custom Terms feature table in the production environment.
|
|
37
|
-
* @see
|
|
38
|
-
* https://services.arcgis.com/jIL9msH9OI208GCb/ArcGIS/rest/services/Custom_Terms/FeatureServer/info/itemInfo
|
|
39
|
-
*/
|
|
40
10
|
const CUSTOM_TERMS_FEATURE_TABLE_ITEMINFO_PROD = CUSTOM_TERMS_FEATURE_TABLE_ROOT_PROD + '/info/itemInfo';
|
|
41
|
-
/**
|
|
42
|
-
* This enum defines the field names used in the Custom Terms feature table.
|
|
43
|
-
*/
|
|
44
11
|
var CustomTermsFeatureTableField;
|
|
45
12
|
(function (CustomTermsFeatureTableField) {
|
|
46
13
|
CustomTermsFeatureTableField["OBJECT_ID"] = "OBJECTID";
|
|
@@ -56,20 +23,12 @@ var CustomTermsFeatureTableField;
|
|
|
56
23
|
CustomTermsFeatureTableField["EDIT_DATE"] = "EditDate";
|
|
57
24
|
CustomTermsFeatureTableField["EDITOR"] = "Editor";
|
|
58
25
|
})(CustomTermsFeatureTableField || (exports.CustomTermsFeatureTableField = CustomTermsFeatureTableField = {}));
|
|
59
|
-
/**
|
|
60
|
-
* Gets the URL for the Custom Terms feature table based on the service tier.
|
|
61
|
-
* @returns the URL for the Custom Terms feature table.
|
|
62
|
-
*/
|
|
63
26
|
const getCustomTermsFeatureTableUrl = () => {
|
|
64
27
|
return config_1.serviceTier === 'prod'
|
|
65
28
|
? CUSTOM_TERMS_FEATURE_TABLE_URL_PROD
|
|
66
29
|
: CUSTOM_TERMS_FEATURE_TABLE_URL_DEV;
|
|
67
30
|
};
|
|
68
31
|
exports.getCustomTermsFeatureTableUrl = getCustomTermsFeatureTableUrl;
|
|
69
|
-
/**
|
|
70
|
-
* Gets the URL for the itemInfo endpoint for the Custom Terms feature table.
|
|
71
|
-
* @returns The URL for the itemInfo endpoint for the Custom Terms feature table.
|
|
72
|
-
*/
|
|
73
32
|
const getCustomTermsFeatureTableItemInfoUrl = () => {
|
|
74
33
|
return config_1.serviceTier === 'prod'
|
|
75
34
|
? CUSTOM_TERMS_FEATURE_TABLE_ITEMINFO_PROD
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/services/custom-terms/config.ts"],"names":[],"mappings":";;;AAAA,6CAA+C;
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/services/custom-terms/config.ts"],"names":[],"mappings":";;;AAAA,6CAA+C;AAO/C,MAAM,mCAAmC,GACrC,iGAAiG,CAAC;AAOtG,MAAM,kCAAkC,GACpC,mCAAmC,GAAG,IAAI,CAAC;AAO/C,MAAM,uCAAuC,GACzC,mCAAmC,GAAG,gBAAgB,CAAC;AAO3D,MAAM,oCAAoC,GACtC,8FAA8F,CAAC;AAOnG,MAAM,mCAAmC,GACrC,oCAAoC,GAAG,IAAI,CAAC;AAOhD,MAAM,wCAAwC,GAC1C,oCAAoC,GAAG,gBAAgB,CAAC;AAK5D,IAAY,4BAaX;AAbD,WAAY,4BAA4B;IACpC,sDAAsB,CAAA;IACtB,6CAAa,CAAA;IACb,qDAAqB,CAAA;IACrB,iDAAiB,CAAA;IACjB,oDAAoB,CAAA;IACpB,mDAAmB,CAAA;IACnB,wDAAwB,CAAA;IACxB,6CAAa,CAAA;IACb,8DAA8B,CAAA;IAC9B,mDAAmB,CAAA;IACnB,sDAAsB,CAAA;IACtB,iDAAiB,CAAA;AACrB,CAAC,EAbW,4BAA4B,4CAA5B,4BAA4B,QAavC;AAMM,MAAM,6BAA6B,GAAG,GAAG,EAAE;IAC9C,OAAO,oBAAW,KAAK,MAAM;QACzB,CAAC,CAAC,mCAAmC;QACrC,CAAC,CAAC,kCAAkC,CAAC;AAC7C,CAAC,CAAC;AAJW,QAAA,6BAA6B,iCAIxC;AAMK,MAAM,qCAAqC,GAAG,GAAG,EAAE;IACtD,OAAO,oBAAW,KAAK,MAAM;QACzB,CAAC,CAAC,wCAAwC;QAC1C,CAAC,CAAC,uCAAuC,CAAC;AAClD,CAAC,CAAC;AAJW,QAAA,qCAAqC,yCAIhD"}
|