@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
|
@@ -1,7 +1 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Check if the input string contains a string representation of searchElem
|
|
3
|
-
* @param str
|
|
4
|
-
* @param searchElem element to search
|
|
5
|
-
* @returns a boolean value, true if input `str` contains searchElem, false otherwise.
|
|
6
|
-
*/
|
|
7
1
|
export declare const contains: (str: string, searchElem: any) => boolean;
|
|
@@ -2,14 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.contains = void 0;
|
|
4
4
|
const toString_1 = require("./toString");
|
|
5
|
-
/**
|
|
6
|
-
* Check if the input string contains a string representation of searchElem
|
|
7
|
-
* @param str
|
|
8
|
-
* @param searchElem element to search
|
|
9
|
-
* @returns a boolean value, true if input `str` contains searchElem, false otherwise.
|
|
10
|
-
*/
|
|
11
5
|
const contains = (str, searchElem) => {
|
|
12
|
-
// The toString() function is used to ensure that the searchElem is converted to a string before being searched for in the str
|
|
13
6
|
searchElem = (0, toString_1.toString)(searchElem);
|
|
14
7
|
return str.includes(searchElem);
|
|
15
8
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contains.js","sourceRoot":"","sources":["../../../src/lib/util/contains.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;
|
|
1
|
+
{"version":3,"file":"contains.js","sourceRoot":"","sources":["../../../src/lib/util/contains.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAQ/B,MAAM,QAAQ,GAAG,CAAC,GAAW,EAAE,UAAU,EAAE,EAAE;IAEhD,UAAU,GAAG,IAAA,mBAAQ,EAAC,UAAU,CAAC,CAAC;IAClC,OAAO,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;AACpC,CAAC,CAAC;AAJW,QAAA,QAAQ,YAInB"}
|
|
@@ -1,13 +1 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Checks if a string contains non-English (non-ASCII) characters.
|
|
3
|
-
*
|
|
4
|
-
* This function determines whether a string contains any characters outside
|
|
5
|
-
* the ASCII range (0x00-0x7F).
|
|
6
|
-
*
|
|
7
|
-
* @param str - The string to check for non-English characters
|
|
8
|
-
* @returns True if the string contains any non-English characters after
|
|
9
|
-
* removing special characters and whitespace, false otherwise.
|
|
10
|
-
* Also returns false if the input is empty, null, or becomes empty
|
|
11
|
-
* after removing special characters.
|
|
12
|
-
*/
|
|
13
1
|
export declare const containsNonEnglishCharacters: (str: string) => boolean;
|
|
@@ -1,28 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.containsNonEnglishCharacters = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Checks if a string contains non-English (non-ASCII) characters.
|
|
6
|
-
*
|
|
7
|
-
* This function determines whether a string contains any characters outside
|
|
8
|
-
* the ASCII range (0x00-0x7F).
|
|
9
|
-
*
|
|
10
|
-
* @param str - The string to check for non-English characters
|
|
11
|
-
* @returns True if the string contains any non-English characters after
|
|
12
|
-
* removing special characters and whitespace, false otherwise.
|
|
13
|
-
* Also returns false if the input is empty, null, or becomes empty
|
|
14
|
-
* after removing special characters.
|
|
15
|
-
*/
|
|
16
4
|
const containsNonEnglishCharacters = (str) => {
|
|
17
5
|
if (!str) {
|
|
18
|
-
return false;
|
|
6
|
+
return false;
|
|
19
7
|
}
|
|
20
|
-
// Regular expression to match non-English characters
|
|
21
8
|
const nonEnglishRegex = /[^\u0020-\u007F]/;
|
|
22
|
-
// remove all whitespace before checking
|
|
23
9
|
str = str.trim();
|
|
24
10
|
if (str.length === 0) {
|
|
25
|
-
return false;
|
|
11
|
+
return false;
|
|
26
12
|
}
|
|
27
13
|
return nonEnglishRegex.test(str);
|
|
28
14
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"containsNonEnglishCharacters.js","sourceRoot":"","sources":["../../../src/lib/util/containsNonEnglishCharacters.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"containsNonEnglishCharacters.js","sourceRoot":"","sources":["../../../src/lib/util/containsNonEnglishCharacters.ts"],"names":[],"mappings":";;;AAYO,MAAM,4BAA4B,GAAG,CAAC,GAAW,EAAW,EAAE;IACjE,IAAI,CAAC,GAAG,EAAE,CAAC;QACP,OAAO,KAAK,CAAC;IACjB,CAAC;IAGD,MAAM,eAAe,GAAG,kBAAkB,CAAC;IAG3C,GAAG,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC;IAEjB,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACnB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO,eAAe,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACrC,CAAC,CAAC;AAhBW,QAAA,4BAA4B,gCAgBvC"}
|
|
@@ -1,23 +1 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Counts the number of sentences in a given text.
|
|
3
|
-
*
|
|
4
|
-
* This function handles:
|
|
5
|
-
* - Multiple paragraphs (separated by one or more new lines)
|
|
6
|
-
* - HTML new line characters ( and )
|
|
7
|
-
* - Multiple consecutive dots (replacing them with a single dot)
|
|
8
|
-
* - Empty paragraphs (skips them)
|
|
9
|
-
* - Sentences ending with punctuation marks (.!?) followed by spaces
|
|
10
|
-
* - Sentences at the end of the text
|
|
11
|
-
*
|
|
12
|
-
* @param text - The input text to count sentences in
|
|
13
|
-
* @returns The total number of sentences in the text
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* // Returns 2
|
|
17
|
-
* countSentences("Hello world. This is a test.");
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* // Also returns 2 (handles HTML newlines)
|
|
21
|
-
* countSentences("Hello world. This is a test.");
|
|
22
|
-
*/
|
|
23
1
|
export declare const countSentences: (text: string) => number;
|
|
@@ -1,51 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.countSentences = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Counts the number of sentences in a given text.
|
|
6
|
-
*
|
|
7
|
-
* This function handles:
|
|
8
|
-
* - Multiple paragraphs (separated by one or more new lines)
|
|
9
|
-
* - HTML new line characters ( and )
|
|
10
|
-
* - Multiple consecutive dots (replacing them with a single dot)
|
|
11
|
-
* - Empty paragraphs (skips them)
|
|
12
|
-
* - Sentences ending with punctuation marks (.!?) followed by spaces
|
|
13
|
-
* - Sentences at the end of the text
|
|
14
|
-
*
|
|
15
|
-
* @param text - The input text to count sentences in
|
|
16
|
-
* @returns The total number of sentences in the text
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* // Returns 2
|
|
20
|
-
* countSentences("Hello world. This is a test.");
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* // Also returns 2 (handles HTML newlines)
|
|
24
|
-
* countSentences("Hello world. This is a test.");
|
|
25
|
-
*/
|
|
26
4
|
const countSentences = (text) => {
|
|
27
|
-
// split the text into paragraphs using new line as the delimiter
|
|
28
|
-
// it should also handle multiple new lines and HTML new lines like |
|
|
29
5
|
const paragraphs = text
|
|
30
|
-
.replace(/ | /g, '\n')
|
|
31
|
-
.split(/\n+/);
|
|
6
|
+
.replace(/ | /g, '\n')
|
|
7
|
+
.split(/\n+/);
|
|
32
8
|
let sentenceCount = 0;
|
|
33
|
-
// iterate over each paragraph
|
|
34
9
|
for (const paragraph of paragraphs) {
|
|
35
|
-
|
|
36
|
-
let cleanedParagraph = paragraph.trim(); // trim leading and trailing spaces
|
|
10
|
+
let cleanedParagraph = paragraph.trim();
|
|
37
11
|
if (!cleanedParagraph) {
|
|
38
|
-
continue;
|
|
12
|
+
continue;
|
|
39
13
|
}
|
|
40
14
|
cleanedParagraph = cleanedParagraph.replace(/\.{2,}/g, '.');
|
|
41
|
-
// Handle sentences ending with punctuation or the end of text
|
|
42
|
-
// Split by sentence-ending punctuation followed by a space or end of string
|
|
43
|
-
// (?<=[.!?])\s+ matches a space after a sentence-ending punctuation
|
|
44
|
-
// $ matches the end of the string
|
|
45
15
|
const sentences = cleanedParagraph.split(/(?<=[.!?])\s+|$/);
|
|
46
|
-
// Filter out empty sentences
|
|
47
16
|
const validSentences = sentences.filter((s) => s.trim().length > 0);
|
|
48
|
-
// Count the sentences
|
|
49
17
|
sentenceCount += validSentences.length;
|
|
50
18
|
}
|
|
51
19
|
return sentenceCount;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"countSentences.js","sourceRoot":"","sources":["../../../src/lib/util/countSentences.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"countSentences.js","sourceRoot":"","sources":["../../../src/lib/util/countSentences.ts"],"names":[],"mappings":";;;AAsBO,MAAM,cAAc,GAAG,CAAC,IAAY,EAAU,EAAE;IAGnD,MAAM,UAAU,GAAG,IAAI;SAClB,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;SAC7B,KAAK,CAAC,KAAK,CAAC,CAAC;IAElB,IAAI,aAAa,GAAG,CAAC,CAAC;IAGtB,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;QAEjC,IAAI,gBAAgB,GAAG,SAAS,CAAC,IAAI,EAAE,CAAC;QAExC,IAAI,CAAC,gBAAgB,EAAE,CAAC;YACpB,SAAS;QACb,CAAC;QAED,gBAAgB,GAAG,gBAAgB,CAAC,OAAO,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC;QAM5D,MAAM,SAAS,GAAG,gBAAgB,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;QAG5D,MAAM,cAAc,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QAGpE,aAAa,IAAI,cAAc,CAAC,MAAM,CAAC;IAC3C,CAAC;IAED,OAAO,aAAa,CAAC;AACzB,CAAC,CAAC;AAlCW,QAAA,cAAc,kBAkCzB"}
|
|
@@ -1,46 +1,6 @@
|
|
|
1
1
|
type CreateWordBoundaryRegexOptions = {
|
|
2
|
-
/**
|
|
3
|
-
* A flag indicating whether to avoid using word boundaries in the regular expression.
|
|
4
|
-
* If true, the resulting regex will not use word boundaries, which is useful for languages like Chinese and Japanese that do not use spaces between words.
|
|
5
|
-
*/
|
|
6
2
|
shouldAvoidUsingWordBoundary?: boolean;
|
|
7
|
-
/**
|
|
8
|
-
* A flag indicating whether to match plural forms of the patterns.
|
|
9
|
-
* If true, the resulting regex will match both singular and plural forms of the patterns.
|
|
10
|
-
*/
|
|
11
3
|
shouldMatchPlural?: boolean;
|
|
12
4
|
};
|
|
13
|
-
/**
|
|
14
|
-
* Creates a regular expression that matches any of the provided patterns with optional word boundaries and plural forms.
|
|
15
|
-
*
|
|
16
|
-
* @param {string[]} patterns - An array of string patterns to be included in the regular expression.
|
|
17
|
-
* @param {CreateWordBoundaryRegexOptions} options - Options for creating the regular expression.
|
|
18
|
-
* @param {boolean} [options.shouldAvoidUsingWordBoundary=false] - A flag indicating whether to avoid using word boundaries in the regular expression.
|
|
19
|
-
* @param {boolean} [options.shouldMatchPlural=false] - A flag indicating whether to match plural forms of the patterns.
|
|
20
|
-
*
|
|
21
|
-
* @returns {RegExp} - A regular expression that matches any of the provided patterns. If the input patterns array is empty or invalid, returns a regular expression that never matches anything.
|
|
22
|
-
*
|
|
23
|
-
* @remarks
|
|
24
|
-
* - If `shouldAvoidUsingWordBoundary` is `true`, the resulting regular expression will not use word boundaries, which is useful for languages like Chinese and Japanese that do not use spaces between words.
|
|
25
|
-
* - If `shouldAvoidUsingWordBoundary` is `false`, the resulting regular expression will use word boundaries to match whole words only.
|
|
26
|
-
* - If `shouldMatchPlural` is `true`, the resulting regular expression will match both singular and plural forms of the patterns.
|
|
27
|
-
* - Special characters in the patterns are escaped to ensure they are treated as literal characters in the regular expression.
|
|
28
|
-
* - Patterns are sorted by length in descending order to prioritize longer matches.
|
|
29
|
-
* - The resulting regular expression is case-insensitive.
|
|
30
|
-
* - If an error occurs during the creation of the regular expression, a regular expression that never matches anything is returned.
|
|
31
|
-
*
|
|
32
|
-
* @throws Will log an error and return an empty regex if there is an error in creating the regex.
|
|
33
|
-
* @example
|
|
34
|
-
* // Returns /\b(foo|bar|baz)\b/gi
|
|
35
|
-
* createWordBoundaryRegex(['foo', 'bar', 'baz']);
|
|
36
|
-
*
|
|
37
|
-
* @example
|
|
38
|
-
* // Returns /(foo|bar|baz)/giu
|
|
39
|
-
* createWordBoundaryRegex(['foo', 'bar', 'baz'], { shouldAvoidUsingWordBoundary: true });
|
|
40
|
-
*
|
|
41
|
-
* @example
|
|
42
|
-
* // Returns /\b(foo|bars?|baz)\b/gi
|
|
43
|
-
* createWordBoundaryRegex(['foo', 'bar', 'baz'], { shouldMatchPlural: true });
|
|
44
|
-
*/
|
|
45
5
|
export declare const createWordBoundaryRegex: (patterns: string[], { shouldAvoidUsingWordBoundary, shouldMatchPlural, }?: CreateWordBoundaryRegexOptions) => RegExp;
|
|
46
6
|
export {};
|
|
@@ -2,70 +2,23 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createWordBoundaryRegex = void 0;
|
|
4
4
|
const escapeSpecialCharacters_1 = require("./escapeSpecialCharacters");
|
|
5
|
-
/**
|
|
6
|
-
* Creates a regular expression that matches any of the provided patterns with optional word boundaries and plural forms.
|
|
7
|
-
*
|
|
8
|
-
* @param {string[]} patterns - An array of string patterns to be included in the regular expression.
|
|
9
|
-
* @param {CreateWordBoundaryRegexOptions} options - Options for creating the regular expression.
|
|
10
|
-
* @param {boolean} [options.shouldAvoidUsingWordBoundary=false] - A flag indicating whether to avoid using word boundaries in the regular expression.
|
|
11
|
-
* @param {boolean} [options.shouldMatchPlural=false] - A flag indicating whether to match plural forms of the patterns.
|
|
12
|
-
*
|
|
13
|
-
* @returns {RegExp} - A regular expression that matches any of the provided patterns. If the input patterns array is empty or invalid, returns a regular expression that never matches anything.
|
|
14
|
-
*
|
|
15
|
-
* @remarks
|
|
16
|
-
* - If `shouldAvoidUsingWordBoundary` is `true`, the resulting regular expression will not use word boundaries, which is useful for languages like Chinese and Japanese that do not use spaces between words.
|
|
17
|
-
* - If `shouldAvoidUsingWordBoundary` is `false`, the resulting regular expression will use word boundaries to match whole words only.
|
|
18
|
-
* - If `shouldMatchPlural` is `true`, the resulting regular expression will match both singular and plural forms of the patterns.
|
|
19
|
-
* - Special characters in the patterns are escaped to ensure they are treated as literal characters in the regular expression.
|
|
20
|
-
* - Patterns are sorted by length in descending order to prioritize longer matches.
|
|
21
|
-
* - The resulting regular expression is case-insensitive.
|
|
22
|
-
* - If an error occurs during the creation of the regular expression, a regular expression that never matches anything is returned.
|
|
23
|
-
*
|
|
24
|
-
* @throws Will log an error and return an empty regex if there is an error in creating the regex.
|
|
25
|
-
* @example
|
|
26
|
-
* // Returns /\b(foo|bar|baz)\b/gi
|
|
27
|
-
* createWordBoundaryRegex(['foo', 'bar', 'baz']);
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* // Returns /(foo|bar|baz)/giu
|
|
31
|
-
* createWordBoundaryRegex(['foo', 'bar', 'baz'], { shouldAvoidUsingWordBoundary: true });
|
|
32
|
-
*
|
|
33
|
-
* @example
|
|
34
|
-
* // Returns /\b(foo|bars?|baz)\b/gi
|
|
35
|
-
* createWordBoundaryRegex(['foo', 'bar', 'baz'], { shouldMatchPlural: true });
|
|
36
|
-
*/
|
|
37
5
|
const createWordBoundaryRegex = (patterns, { shouldAvoidUsingWordBoundary = false, shouldMatchPlural = false, } = {}) => {
|
|
38
|
-
// (?!.*) is a negative lookahead that always fails, meaning it never matches anything.
|
|
39
6
|
const emptyRegex = new RegExp('(?!.*)', 'gi');
|
|
40
7
|
if (!Array.isArray(patterns) || patterns.length === 0) {
|
|
41
8
|
return emptyRegex;
|
|
42
9
|
}
|
|
43
|
-
// Escape special regex characters in each pattern
|
|
44
10
|
const escapedPatterns = (0, escapeSpecialCharacters_1.escapeSpecialCharacters)(patterns);
|
|
45
11
|
if (!escapedPatterns || escapedPatterns.length === 0) {
|
|
46
12
|
return emptyRegex;
|
|
47
13
|
}
|
|
48
|
-
// Sort patterns by length in descending order to prioritize longer matches
|
|
49
|
-
// This helps to avoid partial matches on shorter patterns.
|
|
50
14
|
escapedPatterns.sort((a, b) => b.length - a.length);
|
|
51
15
|
try {
|
|
52
|
-
// Use a regex that works well for languages like Chinese and Japanese,
|
|
53
|
-
// that doesn't use spaces between words
|
|
54
16
|
if (shouldAvoidUsingWordBoundary) {
|
|
55
17
|
return new RegExp(`(${escapedPatterns.join('|')})`, 'giu');
|
|
56
18
|
}
|
|
57
|
-
// Add `s?` at end to make the letter s optional, allowing it to match both singular and plural forms.
|
|
58
19
|
if (shouldMatchPlural) {
|
|
59
20
|
return new RegExp(`(?<!\\w)(${escapedPatterns.join('|')})s?(?!\\w)`, 'gi');
|
|
60
21
|
}
|
|
61
|
-
/**
|
|
62
|
-
* Enhances word boundary handling, including punctuation like periods.
|
|
63
|
-
*
|
|
64
|
-
* @remarks
|
|
65
|
-
* `(?<!\\w)`: Negative lookbehind ensures that the match is not preceded by a word character ([a-zA-Z0-9_])
|
|
66
|
-
* `(${escapedPatterns.join('|')})` Matches one of the provided patterns.
|
|
67
|
-
* `(?!\\w)`: Negative lookahead ensures that the match is not followed by a word character.
|
|
68
|
-
*/
|
|
69
22
|
return new RegExp(`(?<!\\w)(${escapedPatterns.join('|')})(?!\\w)`, 'gi');
|
|
70
23
|
}
|
|
71
24
|
catch (error) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createWordBoundaryRegex.js","sourceRoot":"","sources":["../../../src/lib/util/createWordBoundaryRegex.ts"],"names":[],"mappings":";;;AAAA,uEAAoE;
|
|
1
|
+
{"version":3,"file":"createWordBoundaryRegex.js","sourceRoot":"","sources":["../../../src/lib/util/createWordBoundaryRegex.ts"],"names":[],"mappings":";;;AAAA,uEAAoE;AA+C7D,MAAM,uBAAuB,GAAG,CACnC,QAAkB,EAClB,EACI,4BAA4B,GAAG,KAAK,EACpC,iBAAiB,GAAG,KAAK,MACO,EAAE,EAChC,EAAE;IAER,MAAM,UAAU,GAAG,IAAI,MAAM,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;IAE9C,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACpD,OAAO,UAAU,CAAC;IACtB,CAAC;IAGD,MAAM,eAAe,GAAG,IAAA,iDAAuB,EAAC,QAAQ,CAAC,CAAC;IAE1D,IAAI,CAAC,eAAe,IAAI,eAAe,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACnD,OAAO,UAAU,CAAC;IACtB,CAAC;IAID,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC;IAEpD,IAAI,CAAC;QAGD,IAAI,4BAA4B,EAAE,CAAC;YAC/B,OAAO,IAAI,MAAM,CAAC,IAAI,eAAe,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QAC/D,CAAC;QAGD,IAAI,iBAAiB,EAAE,CAAC;YACpB,OAAO,IAAI,MAAM,CACb,YAAY,eAAe,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,EACjD,IAAI,CACP,CAAC;QACN,CAAC;QAUD,OAAO,IAAI,MAAM,CACb,YAAY,eAAe,CAAC,IAAI,CAAC,GAAG,CAAC,UAAU,EAC/C,IAAI,CACP,CAAC;IACN,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACb,OAAO,CAAC,KAAK,CAAC,mCAAmC,EAAE,KAAK,CAAC,CAAC;QAC1D,OAAO,UAAU,CAAC;IACtB,CAAC;AACL,CAAC,CAAC;AAxDW,QAAA,uBAAuB,2BAwDlC"}
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Cleans up an array of strings by escaping special characters and trimming whitespace.
|
|
3
|
-
*
|
|
4
|
-
* @param strs - An array of strings to be cleaned.
|
|
5
|
-
* @returns A new array of strings with special characters escaped and whitespace trimmed.
|
|
6
|
-
*/
|
|
7
1
|
export declare const escapeSpecialCharacters: (strs: string[]) => string[];
|
|
@@ -1,19 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.escapeSpecialCharacters = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Cleans up an array of strings by escaping special characters and trimming whitespace.
|
|
6
|
-
*
|
|
7
|
-
* @param strs - An array of strings to be cleaned.
|
|
8
|
-
* @returns A new array of strings with special characters escaped and whitespace trimmed.
|
|
9
|
-
*/
|
|
10
4
|
const escapeSpecialCharacters = (strs) => {
|
|
11
5
|
if (!strs || strs.length === 0) {
|
|
12
6
|
return [];
|
|
13
7
|
}
|
|
14
8
|
const output = strs.map((str) => {
|
|
15
|
-
// Find all special characters and replaces each one with its escaped version.
|
|
16
|
-
// The `\\$&` part means "replace with a backslash followed by the matched character".
|
|
17
9
|
return str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&').trim();
|
|
18
10
|
});
|
|
19
11
|
return output.filter((str) => str !== '');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"escapeSpecialCharacters.js","sourceRoot":"","sources":["../../../src/lib/util/escapeSpecialCharacters.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"escapeSpecialCharacters.js","sourceRoot":"","sources":["../../../src/lib/util/escapeSpecialCharacters.ts"],"names":[],"mappings":";;;AAMO,MAAM,uBAAuB,GAAG,CAAC,IAAc,EAAE,EAAE;IACtD,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC7B,OAAO,EAAE,CAAC;IACd,CAAC;IAED,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE;QAG5B,OAAO,GAAG,CAAC,OAAO,CAAC,qBAAqB,EAAE,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC;IAC7D,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,KAAK,EAAE,CAAC,CAAC;AAC9C,CAAC,CAAC;AAZW,QAAA,uBAAuB,2BAYlC"}
|
|
@@ -2,10 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getAllValidationRuleIds = void 0;
|
|
4
4
|
const types_1 = require("../../types");
|
|
5
|
-
/**
|
|
6
|
-
* Get all validation rule IDs
|
|
7
|
-
* @returns {ValidationRuleId[]} - An array of all validation rule IDs
|
|
8
|
-
*/
|
|
9
5
|
const getAllValidationRuleIds = () => {
|
|
10
6
|
return [...types_1.ValidationRuleIds];
|
|
11
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAllValidationRuleIds.js","sourceRoot":"","sources":["../../../src/lib/util/getAllValidationRuleIds.ts"],"names":[],"mappings":";;;AAAA,uCAAkE;
|
|
1
|
+
{"version":3,"file":"getAllValidationRuleIds.js","sourceRoot":"","sources":["../../../src/lib/util/getAllValidationRuleIds.ts"],"names":[],"mappings":";;;AAAA,uCAAkE;AAM3D,MAAM,uBAAuB,GAAG,GAAuB,EAAE;IAC5D,OAAO,CAAC,GAAG,yBAAiB,CAAC,CAAC;AAClC,CAAC,CAAC;AAFW,QAAA,uBAAuB,2BAElC"}
|
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Returns an array of all possible feature layer field value types.
|
|
3
|
-
*
|
|
4
|
-
* @returns {FeatureLayerFieldValueType[]} An array of feature layer field value types.
|
|
5
|
-
*
|
|
6
|
-
* @see https://doc.arcgis.com/en/arcgis-online/manage-data/describe-fields.htm
|
|
7
|
-
* @see https://www.esri.com/arcgis-blog/products/arcgis-online/data-management/describing-layer-attributes-with-field-descriptions-march-2019
|
|
8
|
-
*/
|
|
9
1
|
import { FeatureLayerFieldValueType } from '../../types';
|
|
10
2
|
export declare const getFeatureLayerFieldValueTypes: () => FeatureLayerFieldValueType[];
|
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getFeatureLayerFieldValueTypes = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Returns an array of all possible feature layer field value types.
|
|
6
|
-
*
|
|
7
|
-
* @returns {FeatureLayerFieldValueType[]} An array of feature layer field value types.
|
|
8
|
-
*
|
|
9
|
-
* @see https://doc.arcgis.com/en/arcgis-online/manage-data/describe-fields.htm
|
|
10
|
-
* @see https://www.esri.com/arcgis-blog/products/arcgis-online/data-management/describing-layer-attributes-with-field-descriptions-march-2019
|
|
11
|
-
*/
|
|
12
4
|
const types_1 = require("../../types");
|
|
13
5
|
const getFeatureLayerFieldValueTypes = () => {
|
|
14
6
|
return [...types_1.FeatureLayerFieldValueTypes];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getFeatureLayerFieldValueTypes.js","sourceRoot":"","sources":["../../../src/lib/util/getFeatureLayerFieldValueTypes.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"getFeatureLayerFieldValueTypes.js","sourceRoot":"","sources":["../../../src/lib/util/getFeatureLayerFieldValueTypes.ts"],"names":[],"mappings":";;;AAQA,uCAGqB;AAEd,MAAM,8BAA8B,GACvC,GAAiC,EAAE;IAC/B,OAAO,CAAC,GAAG,mCAA2B,CAAC,CAAC;AAC5C,CAAC,CAAC;AAHO,QAAA,8BAA8B,kCAGrC"}
|
|
@@ -1,21 +1,4 @@
|
|
|
1
1
|
import { IItem } from '../../types';
|
|
2
2
|
import { LivingAtlasSupportedItemType } from '../config';
|
|
3
|
-
/**
|
|
4
|
-
* Returns an array of item types supported by Living Atlas.
|
|
5
|
-
*
|
|
6
|
-
* This function creates a new array containing all the predefined item types
|
|
7
|
-
* that are supported by Living Atlas from the configuration.
|
|
8
|
-
*
|
|
9
|
-
* @returns {LivingAtlasSupportedItemType[]} An array of Living Atlas supported item types.
|
|
10
|
-
*/
|
|
11
3
|
export declare const getLivingAtlasSupportedItemTypes: () => LivingAtlasSupportedItemType[];
|
|
12
|
-
/**
|
|
13
|
-
* Checks if a given item type is supported by Living Atlas.
|
|
14
|
-
*
|
|
15
|
-
* This function determines whether the provided item type string is included
|
|
16
|
-
* in the predefined list of item types supported by Living Atlas.
|
|
17
|
-
*
|
|
18
|
-
* @param {string} itemType - The item type to check for support.
|
|
19
|
-
* @returns {boolean} True if the item type is supported by Living Atlas, false otherwise.
|
|
20
|
-
*/
|
|
21
4
|
export declare const checkIsLivingAtlasSupportedItemType: (item: IItem) => boolean;
|
|
@@ -2,27 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.checkIsLivingAtlasSupportedItemType = exports.getLivingAtlasSupportedItemTypes = void 0;
|
|
4
4
|
const config_1 = require("../config");
|
|
5
|
-
/**
|
|
6
|
-
* Returns an array of item types supported by Living Atlas.
|
|
7
|
-
*
|
|
8
|
-
* This function creates a new array containing all the predefined item types
|
|
9
|
-
* that are supported by Living Atlas from the configuration.
|
|
10
|
-
*
|
|
11
|
-
* @returns {LivingAtlasSupportedItemType[]} An array of Living Atlas supported item types.
|
|
12
|
-
*/
|
|
13
5
|
const getLivingAtlasSupportedItemTypes = () => {
|
|
14
6
|
return [...config_1.LIVING_ATLAS_SUPPORTED_ITEM_TYPES];
|
|
15
7
|
};
|
|
16
8
|
exports.getLivingAtlasSupportedItemTypes = getLivingAtlasSupportedItemTypes;
|
|
17
|
-
/**
|
|
18
|
-
* Checks if a given item type is supported by Living Atlas.
|
|
19
|
-
*
|
|
20
|
-
* This function determines whether the provided item type string is included
|
|
21
|
-
* in the predefined list of item types supported by Living Atlas.
|
|
22
|
-
*
|
|
23
|
-
* @param {string} itemType - The item type to check for support.
|
|
24
|
-
* @returns {boolean} True if the item type is supported by Living Atlas, false otherwise.
|
|
25
|
-
*/
|
|
26
9
|
const checkIsLivingAtlasSupportedItemType = (item) => {
|
|
27
10
|
if (!item) {
|
|
28
11
|
return false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getLivingAtlasSupportedItemTypes.js","sourceRoot":"","sources":["../../../src/lib/util/getLivingAtlasSupportedItemTypes.ts"],"names":[],"mappings":";;;AACA,sCAGmB;
|
|
1
|
+
{"version":3,"file":"getLivingAtlasSupportedItemTypes.js","sourceRoot":"","sources":["../../../src/lib/util/getLivingAtlasSupportedItemTypes.ts"],"names":[],"mappings":";;;AACA,sCAGmB;AAUZ,MAAM,gCAAgC,GACzC,GAAmC,EAAE;IACjC,OAAO,CAAC,GAAG,0CAAiC,CAAC,CAAC;AAClD,CAAC,CAAC;AAHO,QAAA,gCAAgC,oCAGvC;AAWC,MAAM,mCAAmC,GAAG,CAAC,IAAW,EAAW,EAAE;IACxE,IAAI,CAAC,IAAI,EAAE,CAAC;QACR,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,MAAM,QAAQ,GAAG,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,CAAC;IAE5B,OAAO,0CAAiC,CAAC,QAAQ,CAC7C,QAAwC,CAC3C,CAAC;AACN,CAAC,CAAC;AAVW,QAAA,mCAAmC,uCAU9C"}
|
|
@@ -2,23 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getNumberOfWords = void 0;
|
|
4
4
|
const assertString_1 = require("./assertString");
|
|
5
|
-
/**
|
|
6
|
-
* Retrieve the number of words in string separated by space
|
|
7
|
-
* @param s
|
|
8
|
-
* @returns
|
|
9
|
-
*/
|
|
10
5
|
const getNumberOfWords = (s) => {
|
|
11
6
|
if (!(0, assertString_1.assertString)(s)) {
|
|
12
7
|
return 0;
|
|
13
8
|
}
|
|
14
|
-
|
|
15
|
-
let str = s.trim(); //s.replace(/(^\s*)|(\s*$)/gi, '');
|
|
9
|
+
let str = s.trim();
|
|
16
10
|
if (!str) {
|
|
17
11
|
return 0;
|
|
18
12
|
}
|
|
19
|
-
// inds any sequence of 2 or more spaces in the string and replaces it with a single space
|
|
20
13
|
str = str.replace(/[ ]{2,}/gi, ' ');
|
|
21
|
-
// exclude newline with a space at beginning
|
|
22
14
|
str = str.replace(/\n /, '\n');
|
|
23
15
|
if (str.split(' ').length === 1 && str.trim() === '') {
|
|
24
16
|
return 0;
|
|
@@ -26,10 +18,4 @@ const getNumberOfWords = (s) => {
|
|
|
26
18
|
return str.split(' ').length;
|
|
27
19
|
};
|
|
28
20
|
exports.getNumberOfWords = getNumberOfWords;
|
|
29
|
-
// export const getNumberOfWordsFromNonLatinText = (str:string)=> {
|
|
30
|
-
// str = str.trim();
|
|
31
|
-
// const words = str.match(/[\u00ff-\uffff]|\S+/g);
|
|
32
|
-
// console.log(words)
|
|
33
|
-
// return words ? words.length : 0;
|
|
34
|
-
// }
|
|
35
21
|
//# sourceMappingURL=getNumberOfWords.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getNumberOfWords.js","sourceRoot":"","sources":["../../../src/lib/util/getNumberOfWords.ts"],"names":[],"mappings":";;;AAAA,iDAA8C;
|
|
1
|
+
{"version":3,"file":"getNumberOfWords.js","sourceRoot":"","sources":["../../../src/lib/util/getNumberOfWords.ts"],"names":[],"mappings":";;;AAAA,iDAA8C;AAOvC,MAAM,gBAAgB,GAAG,CAAC,CAAS,EAAU,EAAE;IAClD,IAAI,CAAC,IAAA,2BAAY,EAAC,CAAC,CAAC,EAAE,CAAC;QACnB,OAAO,CAAC,CAAC;IACb,CAAC;IAGD,IAAI,GAAG,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;IAEnB,IAAI,CAAC,GAAG,EAAE,CAAC;QACP,OAAO,CAAC,CAAC;IACb,CAAC;IAGD,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC;IAGpC,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IAE/B,IAAI,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,KAAK,CAAC,IAAI,GAAG,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;QACnD,OAAO,CAAC,CAAC;IACb,CAAC;IAED,OAAO,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC;AACjC,CAAC,CAAC;AAvBW,QAAA,gBAAgB,oBAuB3B"}
|
|
@@ -1,13 +1,2 @@
|
|
|
1
1
|
import { FeatureLayerFieldFormatted, FeatureLayerJSON } from '../../types';
|
|
2
|
-
/**
|
|
3
|
-
* Extracts and returns relevant fields from an array of feature layer JSON objects.
|
|
4
|
-
*
|
|
5
|
-
* This function iterates through each provided feature layer and collects fields that:
|
|
6
|
-
* - Have a valid name and type.
|
|
7
|
-
* - Are not of type 'esriFieldTypeOID'.
|
|
8
|
-
* - Are not named 'OBJECTID', 'Shape__Area', or 'Shape__Length' (case-insensitive).
|
|
9
|
-
*
|
|
10
|
-
* @param featureLayers - An array of `FeatureLayerJSON` objects to extract fields from.
|
|
11
|
-
* @returns An array of `FeatureLayerField` objects that are considered relevant.
|
|
12
|
-
*/
|
|
13
2
|
export declare const getRelevantFeatureLayerFields: (featureLayers: FeatureLayerJSON[]) => FeatureLayerFieldFormatted[];
|
|
@@ -1,17 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRelevantFeatureLayerFields = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Extracts and returns relevant fields from an array of feature layer JSON objects.
|
|
6
|
-
*
|
|
7
|
-
* This function iterates through each provided feature layer and collects fields that:
|
|
8
|
-
* - Have a valid name and type.
|
|
9
|
-
* - Are not of type 'esriFieldTypeOID'.
|
|
10
|
-
* - Are not named 'OBJECTID', 'Shape__Area', or 'Shape__Length' (case-insensitive).
|
|
11
|
-
*
|
|
12
|
-
* @param featureLayers - An array of `FeatureLayerJSON` objects to extract fields from.
|
|
13
|
-
* @returns An array of `FeatureLayerField` objects that are considered relevant.
|
|
14
|
-
*/
|
|
15
4
|
const getRelevantFeatureLayerFields = (featureLayers) => {
|
|
16
5
|
if (!Array.isArray(featureLayers) || !(featureLayers === null || featureLayers === void 0 ? void 0 : featureLayers.length)) {
|
|
17
6
|
return [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRelevantFeatureLayerFields.js","sourceRoot":"","sources":["../../../src/lib/util/getRelevantFeatureLayerFields.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"getRelevantFeatureLayerFields.js","sourceRoot":"","sources":["../../../src/lib/util/getRelevantFeatureLayerFields.ts"],"names":[],"mappings":";;;AAaO,MAAM,6BAA6B,GAAG,CACzC,aAAiC,EACL,EAAE;IAC9B,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC,CAAA,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,MAAM,CAAA,EAAE,CAAC;QAC1D,OAAO,EAAE,CAAC;IACd,CAAC;IAED,MAAM,kBAAkB,GAAiC,EAAE,CAAC;IAE5D,KAAK,MAAM,YAAY,IAAI,aAAa,EAAE,CAAC;QACvC,IAAI,KAAK,CAAC,OAAO,CAAC,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,MAAM,CAAC,KAAK,KAAK,EAAE,CAAC;YAChD,SAAS;QACb,CAAC;QAED,KAAK,MAAM,KAAK,IAAI,YAAY,CAAC,MAAM,EAAE,CAAC;YACtC,IACI,CAAC,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,CAAA;gBACZ,CAAC,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,CAAA;gBACZ,OAAO,KAAK,CAAC,IAAI,KAAK,QAAQ;gBAC9B,OAAO,KAAK,CAAC,IAAI,KAAK,QAAQ,EAChC,CAAC;gBACC,SAAS;YACb,CAAC;YAED,MAAM,SAAS,GAAG,KAAK,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;YAC3C,MAAM,SAAS,GAAG,KAAK,CAAC,IAAI,CAAC;YAE7B,IAAI,SAAS,KAAK,UAAU,IAAI,SAAS,KAAK,kBAAkB,EAAE,CAAC;gBAC/D,SAAS;YACb,CAAC;YAED,IAAI,SAAS,KAAK,aAAa,IAAI,SAAS,KAAK,eAAe,EAAE,CAAC;gBAC/D,SAAS;YACb,CAAC;YAED,IAAI,iBAAiB,GAAG,IAAI,CAAC;YAC7B,IAAI,OAAO,KAAK,CAAC,WAAW,KAAK,QAAQ,EAAE,CAAC;gBACxC,IAAI,CAAC;oBACD,iBAAiB,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;gBACtD,CAAC;gBAAC,WAAM,CAAC;oBACL,iBAAiB,GAAG,IAAI,CAAC;gBAC7B,CAAC;YACL,CAAC;YACD,MAAM,cAAc,mCACb,KAAK,KACR,WAAW,EAAE,iBAAiB,GACjC,CAAC;YAEF,kBAAkB,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QAC5C,CAAC;IACL,CAAC;IAED,OAAO,kBAAkB,CAAC;AAC9B,CAAC,CAAC;AArDW,QAAA,6BAA6B,iCAqDxC"}
|
|
@@ -1,21 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Scoring Rule locale
|
|
3
|
-
*/
|
|
4
1
|
type ScoringRulesLocale = 'en' | 'international';
|
|
5
|
-
/**
|
|
6
|
-
* Determines the locale of scoring rules based on the `culture` property of the input item.
|
|
7
|
-
* English and Non-English items are scored using different rules.
|
|
8
|
-
*
|
|
9
|
-
* @param culture The locale information of an ArcGIS Online item or User accounr.
|
|
10
|
-
* @returns Returns 'en' for English items, otherwise returns 'international'.
|
|
11
|
-
*/
|
|
12
2
|
export declare const getScoringRulesLocale: (culture: string) => ScoringRulesLocale;
|
|
13
|
-
/**
|
|
14
|
-
* Determines the locale of scoring rules based on the `owner` property of the input item.
|
|
15
|
-
* English and Non-English items are scored using different rules.
|
|
16
|
-
*
|
|
17
|
-
* @param owner The owner of ArcGIS Online item.
|
|
18
|
-
* @returns Returns 'international' if the content is owned by one of International distributors, otherwise returns 'en'.
|
|
19
|
-
*/
|
|
20
3
|
export declare const getScoringRulesLocaleByItemOwner: (owner: string) => ScoringRulesLocale;
|
|
21
4
|
export {};
|