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