@vannizhang/living-atlas-content-validator 1.5.22 → 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 +0 -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 +2 -37
- 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 +1 -25
- 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 +0 -335
- package/dist/types/index.js +0 -19
- package/dist/types/index.js.map +1 -1
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -1,22 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* # Why using `index.ts` instead of `index.d.ts`?
|
|
3
|
-
*
|
|
4
|
-
* The `index.d.ts` dose't get moved to `dist` by `tsc`. Here is an explanation why `index.d.ts` don't get moved to `dist`:
|
|
5
|
-
*
|
|
6
|
-
* Basically `.d.ts` files are seen as untouchable input for the compiler to do type checks.
|
|
7
|
-
* They are not used for any output generation, which also means, they do not get copied over to build.
|
|
8
|
-
* You can read more [here](https://github.com/Microsoft/TypeScript/issues/5112) about the maintainers' standpoint:
|
|
9
|
-
*
|
|
10
|
-
* Solution #1: Copy d.ts files via manual build step
|
|
11
|
-
* Solution #2: Reword `d.ts` files to `.ts` extension
|
|
12
|
-
* @see https://stackoverflow.com/questions/56018167/typescript-does-not-copy-d-ts-files-to-build
|
|
13
|
-
*/
|
|
14
|
-
/**
|
|
15
|
-
* ArcGIS Online Portal Item
|
|
16
|
-
*
|
|
17
|
-
* @see https://developers.arcgis.com/rest/users-groups-and-items/item.htm
|
|
18
|
-
* @see https://developers.arcgis.com/arcgis-rest-js/api-reference/arcgis-rest-portal/IItem
|
|
19
|
-
*/
|
|
20
1
|
export type IItem = {
|
|
21
2
|
id: string;
|
|
22
3
|
title: string;
|
|
@@ -37,22 +18,10 @@ export type IItem = {
|
|
|
37
18
|
modified: number;
|
|
38
19
|
numViews: number;
|
|
39
20
|
size: number;
|
|
40
|
-
/**
|
|
41
|
-
* indicates whether the item is protected or not.
|
|
42
|
-
*/
|
|
43
21
|
protected?: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* sharing level of the item: public, org, shared, private
|
|
46
|
-
*/
|
|
47
22
|
access?: string;
|
|
48
23
|
[key: string]: any;
|
|
49
24
|
};
|
|
50
|
-
/**
|
|
51
|
-
* An ArcGIS Online or Enterprise user
|
|
52
|
-
*
|
|
53
|
-
* @see https://developers.arcgis.com/arcgis-rest-js/api-reference/arcgis-rest-portal/IUser
|
|
54
|
-
* @see https://github.com/Esri/arcgis-rest-js/blob/main/packages/arcgis-rest-request/src/types/user.ts
|
|
55
|
-
*/
|
|
56
25
|
export interface IUser {
|
|
57
26
|
username?: string;
|
|
58
27
|
fullName?: string;
|
|
@@ -92,235 +61,58 @@ export type ValidationMessage = {
|
|
|
92
61
|
code?: string;
|
|
93
62
|
message: string;
|
|
94
63
|
};
|
|
95
|
-
/**
|
|
96
|
-
* Represents the status of a validation result for a specific rule.
|
|
97
|
-
* This type indicates the outcome of the validation process for
|
|
98
|
-
* each rule and helps in understanding how well the item meets the
|
|
99
|
-
* criteria defined by the validation rules.
|
|
100
|
-
*
|
|
101
|
-
* The possible values for this type include:
|
|
102
|
-
* - `pass`: The validation rule has been passed successfully.
|
|
103
|
-
* - `warning`: The validation rule has been passed but with some warnings.
|
|
104
|
-
* - `error`: The validation rule has failed and requires attention or correction.
|
|
105
|
-
* - `not-applicable`: The validation rule is not applicable to the item being validated.
|
|
106
|
-
* - `unknown`: The validation status is unknown, which is the default status when a ValidationInfo object is created but the validation process has not yet been executed.
|
|
107
|
-
*/
|
|
108
64
|
export type ValidationResultStatus = 'pass' | 'warning' | 'error' | 'not-applicable' | 'unknown';
|
|
109
65
|
export declare const ValidationRuleIds: readonly ["item-sharing-level", "item-credits-attribution-info", "item-description", "item-license-info", "item-snippet", "item-ssl", "item-tags", "item-thumbnail", "item-title", "item-deprecated", "item-delete-protection", "item-title-and-summary-searchability", "user-profile-description", "user-profile-full-name", "user-profile-thumbnail", "feature-service-field-value-types", "feature-service-field-aliases", "feature-service-field-descriptions", "item-extent", "feature-service-cdn-setting", "feature-service-field-indexes", "feature-service-export-data-setting", "feature-service-extents"];
|
|
110
|
-
/**
|
|
111
|
-
* Validation rule identifier
|
|
112
|
-
*/
|
|
113
66
|
export type ValidationRuleId = (typeof ValidationRuleIds)[number];
|
|
114
67
|
export type ValidationInfo = {
|
|
115
|
-
/**
|
|
116
|
-
* The identifier of the validation rule, e.g., "item-sharing-level" or "item-description".
|
|
117
|
-
* It serves as a unique, human-readable identifier for each rule.
|
|
118
|
-
*/
|
|
119
68
|
validationRuleId: ValidationRuleId;
|
|
120
|
-
/**
|
|
121
|
-
* The title string tells the user what this validation rule checks, e.g., "Check Thumbnail" or "Check Number of Layers".
|
|
122
|
-
*/
|
|
123
69
|
title: string;
|
|
124
|
-
/**
|
|
125
|
-
* The label text will be used to instruct the user what they should do, e.g., "Improve Thumbnail" or "Reduce Number of Layers".
|
|
126
|
-
*/
|
|
127
70
|
label: string;
|
|
128
|
-
/**
|
|
129
|
-
* array of validation messages
|
|
130
|
-
*/
|
|
131
71
|
messages: ValidationMessage[];
|
|
132
|
-
/**
|
|
133
|
-
* Maximum score this validation rule can receive.
|
|
134
|
-
*/
|
|
135
72
|
maxScore: number;
|
|
136
|
-
/**
|
|
137
|
-
* Final score that the item received for this validation rule.
|
|
138
|
-
*/
|
|
139
73
|
score: number;
|
|
140
|
-
/**
|
|
141
|
-
* Weight assigned to this validation rule.
|
|
142
|
-
*/
|
|
143
74
|
weight: number;
|
|
144
|
-
/**
|
|
145
|
-
* A scoring factor ranging between 0 and 1 used to calculate the final score by multiplying it with the weight number.
|
|
146
|
-
* 0 means the validation rule received no points, while 1 means it received the maximum score.
|
|
147
|
-
*/
|
|
148
75
|
scoringFactor: number;
|
|
149
|
-
/**
|
|
150
|
-
* Status of the validation result
|
|
151
|
-
*/
|
|
152
76
|
status: ValidationResultStatus;
|
|
153
|
-
/**
|
|
154
|
-
* if true, this validation rule is a binary check, i.e., it can only pass or fail.
|
|
155
|
-
*/
|
|
156
77
|
isBinaryCheck: boolean;
|
|
157
|
-
/**
|
|
158
|
-
* if true, this validation rule is considered an advisory check and does not impact the overall score.
|
|
159
|
-
*/
|
|
160
78
|
isAdvisory: boolean;
|
|
161
79
|
};
|
|
162
|
-
/**
|
|
163
|
-
* Represents the result of validating an ArcGIS Online item and its owner's profile.
|
|
164
|
-
*
|
|
165
|
-
* This type is returned by the `validate` function and contains detailed validation results
|
|
166
|
-
* for both the item and its owner's profile, as well as overall scoring and nomination eligibility.
|
|
167
|
-
*/
|
|
168
80
|
export type ValidationResult = {
|
|
169
|
-
/**
|
|
170
|
-
* Validation results for the ArcGIS Online item.
|
|
171
|
-
* Each property corresponds to a specific validation rule applied to the item.
|
|
172
|
-
*/
|
|
173
81
|
validatedItem: {
|
|
174
|
-
/**
|
|
175
|
-
* Validation result for the item's sharing level (access).
|
|
176
|
-
*/
|
|
177
82
|
access: ValidationInfo;
|
|
178
|
-
/**
|
|
179
|
-
* Validation result for the item's credits/attribution information.
|
|
180
|
-
*/
|
|
181
83
|
accessInformation: ValidationInfo;
|
|
182
|
-
/**
|
|
183
|
-
* Validation result for the item's description text.
|
|
184
|
-
*/
|
|
185
84
|
description: ValidationInfo;
|
|
186
|
-
/**
|
|
187
|
-
* Validation result for the item's license information.
|
|
188
|
-
*/
|
|
189
85
|
licenseInfo: ValidationInfo;
|
|
190
|
-
/**
|
|
191
|
-
* Validation result for the item's snippet (summary text).
|
|
192
|
-
*/
|
|
193
86
|
snippet: ValidationInfo;
|
|
194
|
-
/**
|
|
195
|
-
* Validation result for the item's HTTPS URL.
|
|
196
|
-
*/
|
|
197
87
|
ssl: ValidationInfo;
|
|
198
|
-
/**
|
|
199
|
-
* Validation result for the item's tags.
|
|
200
|
-
*/
|
|
201
88
|
tags: ValidationInfo;
|
|
202
|
-
/**
|
|
203
|
-
* Validation result for the item's thumbnail image.
|
|
204
|
-
*/
|
|
205
89
|
thumbnail: ValidationInfo;
|
|
206
|
-
/**
|
|
207
|
-
* Validation result for the item's title.
|
|
208
|
-
*/
|
|
209
90
|
title: ValidationInfo;
|
|
210
|
-
/**
|
|
211
|
-
* Validation result for the item's deprecated/content status.
|
|
212
|
-
*/
|
|
213
91
|
deprecated: ValidationInfo;
|
|
214
|
-
/**
|
|
215
|
-
* Validation result for the item's delete protection property.
|
|
216
|
-
*/
|
|
217
92
|
deleteProtection: ValidationInfo;
|
|
218
|
-
/**
|
|
219
|
-
* Validation result for searchability the item's title and summary.
|
|
220
|
-
* Applicable only to English layer items.
|
|
221
|
-
*/
|
|
222
93
|
recommendedTextInTitleAndSummary: ValidationInfo;
|
|
223
|
-
/**
|
|
224
|
-
* Validation result for field aliases in feature layers of a feature service item.
|
|
225
|
-
* Applicable only to feature service items.
|
|
226
|
-
*/
|
|
227
94
|
featureServiceFieldAliases: ValidationInfo;
|
|
228
|
-
/**
|
|
229
|
-
* Validation result for field descriptions in feature layers of a feature service item.
|
|
230
|
-
* Applicable only to feature service items.
|
|
231
|
-
*/
|
|
232
95
|
featureServiceFieldDescriptions: ValidationInfo;
|
|
233
|
-
/**
|
|
234
|
-
* Validation result for field value types in feature layers of a feature service item.
|
|
235
|
-
* Applicable only to feature service items.
|
|
236
|
-
*/
|
|
237
96
|
featureServiceFieldValueTypes: ValidationInfo;
|
|
238
|
-
/**
|
|
239
|
-
* Validation result for the item's extent.
|
|
240
|
-
*/
|
|
241
97
|
itemExtent: ValidationInfo;
|
|
242
98
|
};
|
|
243
|
-
/**
|
|
244
|
-
* Validation results for the item owner's profile.
|
|
245
|
-
* Each property corresponds to a specific validation rule applied to the user profile.
|
|
246
|
-
*/
|
|
247
99
|
validatedProfile: {
|
|
248
|
-
/**
|
|
249
|
-
* Validation result for the owner's profile description.
|
|
250
|
-
*/
|
|
251
100
|
userProfileDescription: ValidationInfo;
|
|
252
|
-
/**
|
|
253
|
-
* Validation result for the owner's full name.
|
|
254
|
-
*/
|
|
255
101
|
userProfileFullName: ValidationInfo;
|
|
256
|
-
/**
|
|
257
|
-
* Validation result for the owner's thumbnail image.
|
|
258
|
-
*/
|
|
259
102
|
userProfileThumbnail: ValidationInfo;
|
|
260
103
|
};
|
|
261
|
-
/**
|
|
262
|
-
* Validation results for advisory checks that do not impact the overall score.
|
|
263
|
-
*/
|
|
264
104
|
advisories: {
|
|
265
|
-
/**
|
|
266
|
-
* Validation result for the feature service CDN setting.
|
|
267
|
-
*/
|
|
268
105
|
featureServiceCdnSetting: ValidationInfo;
|
|
269
|
-
/**
|
|
270
|
-
* Validation result for the feature service field indexes.
|
|
271
|
-
*/
|
|
272
106
|
featureServiceFieldIndexes: ValidationInfo;
|
|
273
|
-
/**
|
|
274
|
-
* Validation result for the feature service export data setting.
|
|
275
|
-
*/
|
|
276
107
|
featureServiceExportDataSetting: ValidationInfo;
|
|
277
|
-
/**
|
|
278
|
-
* Validation result for the feature service extents.
|
|
279
|
-
*/
|
|
280
108
|
featureServiceExtents: ValidationInfo;
|
|
281
109
|
};
|
|
282
|
-
/**
|
|
283
|
-
* The ArcGIS Online Item ID.
|
|
284
|
-
*/
|
|
285
110
|
id: string;
|
|
286
|
-
/**
|
|
287
|
-
* The total score calculated from all validation rules.
|
|
288
|
-
*/
|
|
289
111
|
totalScore: number;
|
|
290
|
-
/**
|
|
291
|
-
* Indicates if the item meets all minimum requirements and can be nominated to Living Atlas.
|
|
292
|
-
*
|
|
293
|
-
* An item is eligible for nomination if:
|
|
294
|
-
* - The total score meets the minimum threshold (e.g., 80).
|
|
295
|
-
* - It is shared with the public.
|
|
296
|
-
* - The thumbnail image meets required dimensions.
|
|
297
|
-
* - It has a snippet (summary) text.
|
|
298
|
-
* - It has a description text.
|
|
299
|
-
* - The item owner has a user profile description.
|
|
300
|
-
*/
|
|
301
112
|
canBeNominated: boolean;
|
|
302
113
|
};
|
|
303
|
-
/**
|
|
304
|
-
* Represents a Feature Service in JSON format.
|
|
305
|
-
*
|
|
306
|
-
* @see https://developers.arcgis.com/rest/services-reference/enterprise/feature-service/
|
|
307
|
-
*/
|
|
308
114
|
export type FeatureServiceJSON = {
|
|
309
|
-
/**
|
|
310
|
-
* The capabilities property returns Create, Delete, Extract, Query, Update, Sync, Uploads, and SharedTemplateEditing (added at ArcGIS Enterprise 11.4) capabilities.
|
|
311
|
-
*
|
|
312
|
-
* - The `Uploads` capability is included if Create, Delete, or Update is enabled for a feature service.
|
|
313
|
-
* - The `Editing` capability is included if Create, Delete, and Update is enabled and allowGeometryUpdates is true.
|
|
314
|
-
* - The `Sync` capability allows editors to make local edits and periodically sync with the feature service.
|
|
315
|
-
* - The `Extract` capability allows editors to create a local copy of data without the ability to sync with the feature service.
|
|
316
|
-
* - The `SharedTemplateEditing` capability allows users to add shared templates as well as update and delete the shared template they have created.
|
|
317
|
-
*
|
|
318
|
-
* @see https://developers.arcgis.com/rest/services-reference/enterprise/feature-service/
|
|
319
|
-
*/
|
|
320
115
|
capabilities: string;
|
|
321
|
-
/**
|
|
322
|
-
* initial extent of the feature service
|
|
323
|
-
*/
|
|
324
116
|
initialExtent: {
|
|
325
117
|
xmin: number;
|
|
326
118
|
ymin: number;
|
|
@@ -331,9 +123,6 @@ export type FeatureServiceJSON = {
|
|
|
331
123
|
latestWkid: number;
|
|
332
124
|
};
|
|
333
125
|
};
|
|
334
|
-
/**
|
|
335
|
-
* full extent of the feature service
|
|
336
|
-
*/
|
|
337
126
|
fullExtent: {
|
|
338
127
|
xmin: number;
|
|
339
128
|
ymin: number;
|
|
@@ -344,64 +133,25 @@ export type FeatureServiceJSON = {
|
|
|
344
133
|
latestWkid: number;
|
|
345
134
|
};
|
|
346
135
|
};
|
|
347
|
-
/**
|
|
348
|
-
* the feature layers published by this service
|
|
349
|
-
*/
|
|
350
136
|
layers: {
|
|
351
137
|
id: number;
|
|
352
138
|
name: string;
|
|
353
139
|
type: string;
|
|
354
140
|
geometryType: string;
|
|
355
141
|
}[];
|
|
356
|
-
/**
|
|
357
|
-
* the tables published by this service
|
|
358
|
-
*/
|
|
359
142
|
tables: {
|
|
360
143
|
id: number;
|
|
361
144
|
name: string;
|
|
362
145
|
}[];
|
|
363
146
|
};
|
|
364
|
-
/**
|
|
365
|
-
* Represents the administrative feature service resource that maintains a set of operations that manage the state and contents of the service.
|
|
366
|
-
*
|
|
367
|
-
* @see https://developers.arcgis.com/rest/services-reference/enterprise/hosted-feature-service/
|
|
368
|
-
*/
|
|
369
147
|
export type FeatureServiceAdminJSON = {
|
|
370
148
|
adminServiceInfo: {
|
|
371
|
-
/**
|
|
372
|
-
* cacheMaxAge is the maximum time, in second, that a CDN will cache the feature service's data.
|
|
373
|
-
*
|
|
374
|
-
* @see https://developers.arcgis.com/documentation/portal-and-data-services/data-services/feature-services/cdn-caching/#how-the-cdn-cache-works
|
|
375
|
-
*/
|
|
376
149
|
cacheMaxAge: number;
|
|
377
|
-
/**
|
|
378
|
-
* serviceName is the name of the feature service
|
|
379
|
-
*/
|
|
380
150
|
name: string;
|
|
381
|
-
/**
|
|
382
|
-
* status of the feature service
|
|
383
|
-
*/
|
|
384
151
|
status: string;
|
|
385
|
-
/**
|
|
386
|
-
* type of the feature service
|
|
387
|
-
*/
|
|
388
152
|
type: string;
|
|
389
153
|
};
|
|
390
|
-
/**
|
|
391
|
-
* The capabilities property returns Create, Delete, Extract, Query, Update, Sync, Uploads, and SharedTemplateEditing (added at ArcGIS Enterprise 11.4) capabilities.
|
|
392
|
-
*
|
|
393
|
-
* - The `Uploads` capability is included if Create, Delete, or Update is enabled for a feature service.
|
|
394
|
-
* - The `Editing` capability is included if Create, Delete, and Update is enabled and allowGeometryUpdates is true.
|
|
395
|
-
* - The `Sync` capability allows editors to make local edits and periodically sync with the feature service.
|
|
396
|
-
* - The `Extract` capability allows editors to create a local copy of data without the ability to sync with the feature service.
|
|
397
|
-
* - The `SharedTemplateEditing` capability allows users to add shared templates as well as update and delete the shared template they have created.
|
|
398
|
-
*
|
|
399
|
-
* @see https://developers.arcgis.com/rest/services-reference/enterprise/feature-service/
|
|
400
|
-
*/
|
|
401
154
|
capabilities: string;
|
|
402
|
-
/**
|
|
403
|
-
* initial extent of the feature service
|
|
404
|
-
*/
|
|
405
155
|
initialExtent: {
|
|
406
156
|
xmin: number;
|
|
407
157
|
ymin: number;
|
|
@@ -412,9 +162,6 @@ export type FeatureServiceAdminJSON = {
|
|
|
412
162
|
latestWkid: number;
|
|
413
163
|
};
|
|
414
164
|
};
|
|
415
|
-
/**
|
|
416
|
-
* full extent of the feature service
|
|
417
|
-
*/
|
|
418
165
|
fullExtent: {
|
|
419
166
|
xmin: number;
|
|
420
167
|
ymin: number;
|
|
@@ -425,28 +172,17 @@ export type FeatureServiceAdminJSON = {
|
|
|
425
172
|
latestWkid: number;
|
|
426
173
|
};
|
|
427
174
|
};
|
|
428
|
-
/**
|
|
429
|
-
* the feature layers published by this service
|
|
430
|
-
*/
|
|
431
175
|
layers: {
|
|
432
176
|
id: number;
|
|
433
177
|
name: string;
|
|
434
178
|
type: string;
|
|
435
179
|
geometryType: string;
|
|
436
180
|
}[];
|
|
437
|
-
/**
|
|
438
|
-
* the tables published by this service
|
|
439
|
-
*/
|
|
440
181
|
tables: {
|
|
441
182
|
id: number;
|
|
442
183
|
name: string;
|
|
443
184
|
}[];
|
|
444
185
|
};
|
|
445
|
-
/**
|
|
446
|
-
* Represents a Feature Layer field in JSON format.
|
|
447
|
-
*
|
|
448
|
-
* @see https://developers.arcgis.com/rest/services-reference/enterprise/feature-layer.htm
|
|
449
|
-
*/
|
|
450
186
|
type FeatureLayerField = {
|
|
451
187
|
name: string;
|
|
452
188
|
type: string;
|
|
@@ -458,84 +194,24 @@ type FeatureLayerField = {
|
|
|
458
194
|
nullable?: boolean;
|
|
459
195
|
editable?: boolean;
|
|
460
196
|
};
|
|
461
|
-
/**
|
|
462
|
-
* Represents a raw Feature Layer field as returned by the Feature Layer JSON.
|
|
463
|
-
*
|
|
464
|
-
* The `description` property is typically returned by the server as a stringified JSON object,
|
|
465
|
-
* for example: `"{\"value\":\"\",\"fieldValueType\":\"dateAndTime\"}"`.
|
|
466
|
-
*/
|
|
467
197
|
export type FeatureLayerFieldRaw = FeatureLayerField & {
|
|
468
|
-
/**
|
|
469
|
-
* The field description as a stringified JSON object, if present.
|
|
470
|
-
*/
|
|
471
198
|
description?: string;
|
|
472
199
|
};
|
|
473
|
-
/**
|
|
474
|
-
* Represents a Feature Layer field with a parsed and formatted description.
|
|
475
|
-
*
|
|
476
|
-
* The `description` property is an object containing the description text and the field value type,
|
|
477
|
-
* or `null` if not present or not properly formatted.
|
|
478
|
-
*/
|
|
479
200
|
export type FeatureLayerFieldFormatted = FeatureLayerField & {
|
|
480
201
|
description?: {
|
|
481
|
-
/**
|
|
482
|
-
* A brief description of the field, up to 500 characters.
|
|
483
|
-
*/
|
|
484
202
|
value: string;
|
|
485
|
-
/**
|
|
486
|
-
* A keyword categorizing the type of values in the field, used for smarter suggestions in ArcGIS Online.
|
|
487
|
-
*/
|
|
488
203
|
fieldValueType: FeatureLayerFieldValueType;
|
|
489
204
|
} | null;
|
|
490
205
|
};
|
|
491
|
-
/**
|
|
492
|
-
* Represents the field value type of a feature layer.
|
|
493
|
-
*
|
|
494
|
-
* @see https://doc.arcgis.com/en/arcgis-online/manage-data/describe-fields.htm
|
|
495
|
-
* @see https://www.esri.com/arcgis-blog/products/arcgis-online/data-management/describing-layer-attributes-with-field-descriptions-march-2019
|
|
496
|
-
*/
|
|
497
206
|
export declare const FeatureLayerFieldValueTypes: readonly ["nameOrTitle", "description", "typeOrCategory", "countOrAmount", "percentageOrRatio", "measurement", "currency", "uniqueIdentifier", "phoneNumber", "emailAddress", "orderedOrRanked", "binary", "locationOrPlaceName", "coordinate", "dateAndTime"];
|
|
498
|
-
/**
|
|
499
|
-
* Represents the field value type of a feature layer.
|
|
500
|
-
*
|
|
501
|
-
* @see https://doc.arcgis.com/en/arcgis-online/manage-data/describe-fields.htm
|
|
502
|
-
* @see https://www.esri.com/arcgis-blog/products/arcgis-online/data-management/describing-layer-attributes-with-field-descriptions-march-2019
|
|
503
|
-
*/
|
|
504
207
|
export type FeatureLayerFieldValueType = (typeof FeatureLayerFieldValueTypes)[number];
|
|
505
|
-
/**
|
|
506
|
-
* Represents a Feature Layer field index in JSON format.
|
|
507
|
-
*/
|
|
508
208
|
export type FeatureLayerFieldIndex = {
|
|
509
|
-
/**
|
|
510
|
-
* Name of the index
|
|
511
|
-
*/
|
|
512
209
|
name: string;
|
|
513
|
-
/**
|
|
514
|
-
* Fields included in the index
|
|
515
|
-
*/
|
|
516
210
|
fields: string;
|
|
517
|
-
/**
|
|
518
|
-
* If true, the index is in ascending order; otherwise, it is in descending order.
|
|
519
|
-
*/
|
|
520
211
|
isAscending: boolean;
|
|
521
|
-
/**
|
|
522
|
-
* If true, the index enforces uniqueness for the indexed fields.
|
|
523
|
-
*/
|
|
524
212
|
isUnique: boolean;
|
|
525
|
-
/**
|
|
526
|
-
* Type of the index
|
|
527
|
-
*/
|
|
528
213
|
indexType: 'Attribute' | 'Spatial' | 'FullText';
|
|
529
214
|
};
|
|
530
|
-
/**
|
|
531
|
-
* Represents a Feature Layer in JSON format.
|
|
532
|
-
*
|
|
533
|
-
* An individual Feature Layer resource represents a single feature layer or a non-spatial table in a feature service.
|
|
534
|
-
* - For tables, it provides basic information about the table such as its ID, name, fields, types and templates.
|
|
535
|
-
* - For feature layers, in addition to the table information above, it provides information such as its geometry type, min and max scales, and spatial reference. A feature layer is a table or view with at least one spatial column.
|
|
536
|
-
*
|
|
537
|
-
* @see https://developers.arcgis.com/rest/services-reference/enterprise/feature-layer/
|
|
538
|
-
*/
|
|
539
215
|
export type FeatureLayerJSON = {
|
|
540
216
|
id: number;
|
|
541
217
|
name: string;
|
|
@@ -556,20 +232,9 @@ export type FeatureLayerJSON = {
|
|
|
556
232
|
latestWkid: number;
|
|
557
233
|
};
|
|
558
234
|
};
|
|
559
|
-
/**
|
|
560
|
-
* the feature layer's fields
|
|
561
|
-
*/
|
|
562
235
|
fields: FeatureLayerFieldRaw[];
|
|
563
|
-
/**
|
|
564
|
-
* the feature layer's indexes
|
|
565
|
-
*/
|
|
566
236
|
indexes: FeatureLayerFieldIndex[];
|
|
567
237
|
};
|
|
568
|
-
/**
|
|
569
|
-
* Represents the response from the Feature Service layers endpoint.
|
|
570
|
-
*
|
|
571
|
-
* @see https://developers.arcgis.com/rest/services-reference/enterprise/feature-service.htm
|
|
572
|
-
*/
|
|
573
238
|
export type FeatureServiceLayersResponse = {
|
|
574
239
|
layers: FeatureLayerJSON[];
|
|
575
240
|
tables: FeatureLayerJSON[];
|
package/dist/types/index.js
CHANGED
|
@@ -1,17 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* # Why using `index.ts` instead of `index.d.ts`?
|
|
4
|
-
*
|
|
5
|
-
* The `index.d.ts` dose't get moved to `dist` by `tsc`. Here is an explanation why `index.d.ts` don't get moved to `dist`:
|
|
6
|
-
*
|
|
7
|
-
* Basically `.d.ts` files are seen as untouchable input for the compiler to do type checks.
|
|
8
|
-
* They are not used for any output generation, which also means, they do not get copied over to build.
|
|
9
|
-
* You can read more [here](https://github.com/Microsoft/TypeScript/issues/5112) about the maintainers' standpoint:
|
|
10
|
-
*
|
|
11
|
-
* Solution #1: Copy d.ts files via manual build step
|
|
12
|
-
* Solution #2: Reword `d.ts` files to `.ts` extension
|
|
13
|
-
* @see https://stackoverflow.com/questions/56018167/typescript-does-not-copy-d-ts-files-to-build
|
|
14
|
-
*/
|
|
15
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
3
|
exports.FeatureLayerFieldValueTypes = exports.ValidationRuleIds = void 0;
|
|
17
4
|
exports.ValidationRuleIds = [
|
|
@@ -39,12 +26,6 @@ exports.ValidationRuleIds = [
|
|
|
39
26
|
'feature-service-export-data-setting',
|
|
40
27
|
'feature-service-extents',
|
|
41
28
|
];
|
|
42
|
-
/**
|
|
43
|
-
* Represents the field value type of a feature layer.
|
|
44
|
-
*
|
|
45
|
-
* @see https://doc.arcgis.com/en/arcgis-online/manage-data/describe-fields.htm
|
|
46
|
-
* @see https://www.esri.com/arcgis-blog/products/arcgis-online/data-management/describing-layer-attributes-with-field-descriptions-march-2019
|
|
47
|
-
*/
|
|
48
29
|
exports.FeatureLayerFieldValueTypes = [
|
|
49
30
|
'nameOrTitle',
|
|
50
31
|
'description',
|
package/dist/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;AAuJa,QAAA,iBAAiB,GAAG;IAC7B,oBAAoB;IACpB,+BAA+B;IAC/B,kBAAkB;IAClB,mBAAmB;IACnB,cAAc;IACd,UAAU;IACV,WAAW;IACX,gBAAgB;IAChB,YAAY;IACZ,iBAAiB;IACjB,wBAAwB;IACxB,sCAAsC;IACtC,0BAA0B;IAC1B,wBAAwB;IACxB,wBAAwB;IACxB,mCAAmC;IACnC,+BAA+B;IAC/B,oCAAoC;IACpC,aAAa;IACb,6BAA6B;IAC7B,+BAA+B;IAC/B,qCAAqC;IACrC,yBAAyB;CACnB,CAAC;AAuZE,QAAA,2BAA2B,GAAG;IACvC,aAAa;IACb,aAAa;IACb,gBAAgB;IAChB,eAAe;IACf,mBAAmB;IACnB,aAAa;IACb,UAAU;IACV,kBAAkB;IAClB,aAAa;IACb,cAAc;IACd,iBAAiB;IACjB,QAAQ;IACR,qBAAqB;IACrB,YAAY;IACZ,aAAa;CACP,CAAC"}
|