@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.
Files changed (345) hide show
  1. package/dist/configureSettings.d.ts +0 -103
  2. package/dist/configureSettings.js +1 -43
  3. package/dist/configureSettings.js.map +1 -1
  4. package/dist/index.js +1 -3
  5. package/dist/index.js.map +1 -1
  6. package/dist/lib/accessInformation/isValidAccessInformation.d.ts +0 -8
  7. package/dist/lib/accessInformation/isValidAccessInformation.js +0 -12
  8. package/dist/lib/accessInformation/isValidAccessInformation.js.map +1 -1
  9. package/dist/lib/accessInformation/scoringConfig.js +0 -4
  10. package/dist/lib/accessInformation/scoringConfig.js.map +1 -1
  11. package/dist/lib/checkProfanities/checkProfanities.d.ts +0 -5
  12. package/dist/lib/checkProfanities/checkProfanities.js +0 -8
  13. package/dist/lib/checkProfanities/checkProfanities.js.map +1 -1
  14. package/dist/lib/checkTitleAndSnippetSearchability/checkTitleAndSnippetSearchability.d.ts +0 -28
  15. package/dist/lib/checkTitleAndSnippetSearchability/checkTitleAndSnippetSearchability.js +0 -35
  16. package/dist/lib/checkTitleAndSnippetSearchability/checkTitleAndSnippetSearchability.js.map +1 -1
  17. package/dist/lib/checkTitleAndSnippetSearchability/config.d.ts +0 -84
  18. package/dist/lib/checkTitleAndSnippetSearchability/config.js +0 -17
  19. package/dist/lib/checkTitleAndSnippetSearchability/config.js.map +1 -1
  20. package/dist/lib/checkTitleAndSnippetSearchability/data.js +0 -692
  21. package/dist/lib/checkTitleAndSnippetSearchability/data.js.map +1 -1
  22. package/dist/lib/checkTitleAndSnippetSearchability/helpers.d.ts +0 -94
  23. package/dist/lib/checkTitleAndSnippetSearchability/helpers.js +0 -105
  24. package/dist/lib/checkTitleAndSnippetSearchability/helpers.js.map +1 -1
  25. package/dist/lib/checkTitleAndSnippetSearchability/matchDateTimeInfo.d.ts +0 -28
  26. package/dist/lib/checkTitleAndSnippetSearchability/matchDateTimeInfo.js +1 -111
  27. package/dist/lib/checkTitleAndSnippetSearchability/matchDateTimeInfo.js.map +1 -1
  28. package/dist/lib/checkTitleAndSnippetSearchability/matchLocationInfo.d.ts +0 -28
  29. package/dist/lib/checkTitleAndSnippetSearchability/matchLocationInfo.js +1 -113
  30. package/dist/lib/checkTitleAndSnippetSearchability/matchLocationInfo.js.map +1 -1
  31. package/dist/lib/checkTitleAndSnippetSearchability/matchSourceInfo.d.ts +0 -28
  32. package/dist/lib/checkTitleAndSnippetSearchability/matchSourceInfo.js +0 -113
  33. package/dist/lib/checkTitleAndSnippetSearchability/matchSourceInfo.js.map +1 -1
  34. package/dist/lib/checkTitleAndSnippetSearchability/matchTopicInfo.d.ts +0 -30
  35. package/dist/lib/checkTitleAndSnippetSearchability/matchTopicInfo.js +1 -115
  36. package/dist/lib/checkTitleAndSnippetSearchability/matchTopicInfo.js.map +1 -1
  37. package/dist/lib/checkTitleAndSnippetSearchability/scoringConfig.js +0 -1
  38. package/dist/lib/checkTitleAndSnippetSearchability/scoringConfig.js.map +1 -1
  39. package/dist/lib/config.d.ts +0 -16
  40. package/dist/lib/config.js +0 -140
  41. package/dist/lib/config.js.map +1 -1
  42. package/dist/lib/deleteProtection/isDeleteProtectionEnabled.d.ts +0 -8
  43. package/dist/lib/deleteProtection/isDeleteProtectionEnabled.js +0 -11
  44. package/dist/lib/deleteProtection/isDeleteProtectionEnabled.js.map +1 -1
  45. package/dist/lib/deleteProtection/scoringConfig.js +0 -1
  46. package/dist/lib/deleteProtection/scoringConfig.js.map +1 -1
  47. package/dist/lib/deprecated/isDeprecated.d.ts +0 -8
  48. package/dist/lib/deprecated/isDeprecated.js +0 -9
  49. package/dist/lib/deprecated/isDeprecated.js.map +1 -1
  50. package/dist/lib/deprecated/scoringConfig.js +0 -1
  51. package/dist/lib/deprecated/scoringConfig.js.map +1 -1
  52. package/dist/lib/description/findDataSource.d.ts +0 -10
  53. package/dist/lib/description/findDataSource.js +0 -22
  54. package/dist/lib/description/findDataSource.js.map +1 -1
  55. package/dist/lib/description/isValidDescription.d.ts +0 -17
  56. package/dist/lib/description/isValidDescription.js +0 -52
  57. package/dist/lib/description/isValidDescription.js.map +1 -1
  58. package/dist/lib/description/scoringConfig.js +0 -1
  59. package/dist/lib/description/scoringConfig.js.map +1 -1
  60. package/dist/lib/description/scoringRulesConfig.js +0 -47
  61. package/dist/lib/description/scoringRulesConfig.js.map +1 -1
  62. package/dist/lib/featureServiceCDNSetting/checkFeatureServiceCDNSetting.d.ts +0 -8
  63. package/dist/lib/featureServiceCDNSetting/checkFeatureServiceCDNSetting.js +0 -12
  64. package/dist/lib/featureServiceCDNSetting/checkFeatureServiceCDNSetting.js.map +1 -1
  65. package/dist/lib/featureServiceExportDataSetting/checkFeatureServiceExportSetting.d.ts +0 -6
  66. package/dist/lib/featureServiceExportDataSetting/checkFeatureServiceExportSetting.js +0 -12
  67. package/dist/lib/featureServiceExportDataSetting/checkFeatureServiceExportSetting.js.map +1 -1
  68. package/dist/lib/featureServiceExtents/checkFeatureServiceExtents.d.ts +0 -8
  69. package/dist/lib/featureServiceExtents/checkFeatureServiceExtents.js +0 -16
  70. package/dist/lib/featureServiceExtents/checkFeatureServiceExtents.js.map +1 -1
  71. package/dist/lib/featureServiceExtents/checkFeatureServiceExtentsHelpers.d.ts +0 -5
  72. package/dist/lib/featureServiceExtents/checkFeatureServiceExtentsHelpers.js +0 -9
  73. package/dist/lib/featureServiceExtents/checkFeatureServiceExtentsHelpers.js.map +1 -1
  74. package/dist/lib/featureServiceFieldAliases/checkFeatureServiceFieldAliases.d.ts +0 -23
  75. package/dist/lib/featureServiceFieldAliases/checkFeatureServiceFieldAliases.js +0 -43
  76. package/dist/lib/featureServiceFieldAliases/checkFeatureServiceFieldAliases.js.map +1 -1
  77. package/dist/lib/featureServiceFieldAliases/helpers.d.ts +0 -16
  78. package/dist/lib/featureServiceFieldAliases/helpers.js +5 -21
  79. package/dist/lib/featureServiceFieldAliases/helpers.js.map +1 -1
  80. package/dist/lib/featureServiceFieldAliases/scoringConfig.js +0 -1
  81. package/dist/lib/featureServiceFieldAliases/scoringConfig.js.map +1 -1
  82. package/dist/lib/featureServiceFieldDescriptions/checkFeatureServiceFieldDescriptions.d.ts +0 -22
  83. package/dist/lib/featureServiceFieldDescriptions/checkFeatureServiceFieldDescriptions.js +0 -58
  84. package/dist/lib/featureServiceFieldDescriptions/checkFeatureServiceFieldDescriptions.js.map +1 -1
  85. package/dist/lib/featureServiceFieldDescriptions/helpers.d.ts +0 -17
  86. package/dist/lib/featureServiceFieldDescriptions/helpers.js +5 -22
  87. package/dist/lib/featureServiceFieldDescriptions/helpers.js.map +1 -1
  88. package/dist/lib/featureServiceFieldDescriptions/scoringConfig.js +0 -1
  89. package/dist/lib/featureServiceFieldDescriptions/scoringConfig.js.map +1 -1
  90. package/dist/lib/featureServiceFieldIndexes/checkFeatureServiceFieldIndexes.d.ts +0 -8
  91. package/dist/lib/featureServiceFieldIndexes/checkFeatureServiceFieldIndexes.js +0 -8
  92. package/dist/lib/featureServiceFieldIndexes/checkFeatureServiceFieldIndexes.js.map +1 -1
  93. package/dist/lib/featureServiceFieldIndexes/featureServiceFieldIndexesHelpers.d.ts +0 -5
  94. package/dist/lib/featureServiceFieldIndexes/featureServiceFieldIndexesHelpers.js +0 -6
  95. package/dist/lib/featureServiceFieldIndexes/featureServiceFieldIndexesHelpers.js.map +1 -1
  96. package/dist/lib/featureServiceFieldValueTypes/checkFeatureServiceFieldValueTypes.d.ts +0 -19
  97. package/dist/lib/featureServiceFieldValueTypes/checkFeatureServiceFieldValueTypes.js +0 -40
  98. package/dist/lib/featureServiceFieldValueTypes/checkFeatureServiceFieldValueTypes.js.map +1 -1
  99. package/dist/lib/featureServiceFieldValueTypes/helpers.d.ts +0 -13
  100. package/dist/lib/featureServiceFieldValueTypes/helpers.js +2 -15
  101. package/dist/lib/featureServiceFieldValueTypes/helpers.js.map +1 -1
  102. package/dist/lib/featureServiceFieldValueTypes/scoringConfig.js +0 -1
  103. package/dist/lib/featureServiceFieldValueTypes/scoringConfig.js.map +1 -1
  104. package/dist/lib/itemExtent/checkItemExtent.d.ts +0 -25
  105. package/dist/lib/itemExtent/checkItemExtent.js +0 -30
  106. package/dist/lib/itemExtent/checkItemExtent.js.map +1 -1
  107. package/dist/lib/itemExtent/checkItemExtentHelpers.d.ts +0 -31
  108. package/dist/lib/itemExtent/checkItemExtentHelpers.js +0 -36
  109. package/dist/lib/itemExtent/checkItemExtentHelpers.js.map +1 -1
  110. package/dist/lib/licenseInfo/isValidLicenseInfo.d.ts +0 -32
  111. package/dist/lib/licenseInfo/isValidLicenseInfo.js +2 -49
  112. package/dist/lib/licenseInfo/isValidLicenseInfo.js.map +1 -1
  113. package/dist/lib/licenseInfo/scoringConfig.js +0 -1
  114. package/dist/lib/licenseInfo/scoringConfig.js.map +1 -1
  115. package/dist/lib/licenseInfo/scoringRulesConfig.js +0 -47
  116. package/dist/lib/licenseInfo/scoringRulesConfig.js.map +1 -1
  117. package/dist/lib/sharing/isValidAccess.d.ts +0 -20
  118. package/dist/lib/sharing/isValidAccess.js +2 -28
  119. package/dist/lib/sharing/isValidAccess.js.map +1 -1
  120. package/dist/lib/sharing/scoringConfig.js +0 -1
  121. package/dist/lib/sharing/scoringConfig.js.map +1 -1
  122. package/dist/lib/sharing/scoringRulesConfig.js +0 -47
  123. package/dist/lib/sharing/scoringRulesConfig.js.map +1 -1
  124. package/dist/lib/ssl/isValidSSL.d.ts +0 -12
  125. package/dist/lib/ssl/isValidSSL.js +6 -31
  126. package/dist/lib/ssl/isValidSSL.js.map +1 -1
  127. package/dist/lib/ssl/scoringConfig.js +0 -4
  128. package/dist/lib/ssl/scoringConfig.js.map +1 -1
  129. package/dist/lib/ssl/scoringRulesConfig.js +0 -41
  130. package/dist/lib/ssl/scoringRulesConfig.js.map +1 -1
  131. package/dist/lib/summary/isValidSummary.d.ts +0 -15
  132. package/dist/lib/summary/isValidSummary.js +1 -47
  133. package/dist/lib/summary/isValidSummary.js.map +1 -1
  134. package/dist/lib/summary/scoringConfig.js +0 -1
  135. package/dist/lib/summary/scoringConfig.js.map +1 -1
  136. package/dist/lib/summary/scoringRulesConfig.js +0 -53
  137. package/dist/lib/summary/scoringRulesConfig.js.map +1 -1
  138. package/dist/lib/tags/isValidTags.d.ts +0 -12
  139. package/dist/lib/tags/isValidTags.js +1 -20
  140. package/dist/lib/tags/isValidTags.js.map +1 -1
  141. package/dist/lib/tags/scoringConfig.js +0 -5
  142. package/dist/lib/tags/scoringConfig.js.map +1 -1
  143. package/dist/lib/tags/scoringRulesConfig.js +0 -41
  144. package/dist/lib/tags/scoringRulesConfig.js.map +1 -1
  145. package/dist/lib/thumbnail/isValidThumbnail.d.ts +0 -8
  146. package/dist/lib/thumbnail/isValidThumbnail.js +1 -30
  147. package/dist/lib/thumbnail/isValidThumbnail.js.map +1 -1
  148. package/dist/lib/thumbnail/scoringConfig.js +0 -9
  149. package/dist/lib/thumbnail/scoringConfig.js.map +1 -1
  150. package/dist/lib/thumbnail/scoringRulesConfig.js +0 -41
  151. package/dist/lib/thumbnail/scoringRulesConfig.js.map +1 -1
  152. package/dist/lib/title/isValidTitle.d.ts +0 -21
  153. package/dist/lib/title/isValidTitle.js +1 -55
  154. package/dist/lib/title/isValidTitle.js.map +1 -1
  155. package/dist/lib/title/scoringConfig.js +0 -1
  156. package/dist/lib/title/scoringConfig.js.map +1 -1
  157. package/dist/lib/title/scoringRulesConfig.js +0 -52
  158. package/dist/lib/title/scoringRulesConfig.js.map +1 -1
  159. package/dist/lib/userProfileDescription/isValidUserProfileDescription.d.ts +0 -21
  160. package/dist/lib/userProfileDescription/isValidUserProfileDescription.js +2 -76
  161. package/dist/lib/userProfileDescription/isValidUserProfileDescription.js.map +1 -1
  162. package/dist/lib/userProfileDescription/scoringConfig.js +0 -1
  163. package/dist/lib/userProfileDescription/scoringConfig.js.map +1 -1
  164. package/dist/lib/userProfileDescription/scoringRulesConfig.js +0 -59
  165. package/dist/lib/userProfileDescription/scoringRulesConfig.js.map +1 -1
  166. package/dist/lib/userProfileName/isValidUserProfileName.d.ts +0 -8
  167. package/dist/lib/userProfileName/isValidUserProfileName.js +2 -26
  168. package/dist/lib/userProfileName/isValidUserProfileName.js.map +1 -1
  169. package/dist/lib/userProfileName/scoringConfig.js +0 -5
  170. package/dist/lib/userProfileName/scoringConfig.js.map +1 -1
  171. package/dist/lib/userProfileName/scoringRulesConfig.js +0 -41
  172. package/dist/lib/userProfileName/scoringRulesConfig.js.map +1 -1
  173. package/dist/lib/userProfileThumbnail/isValidUserProfileThumbnail.d.ts +0 -12
  174. package/dist/lib/userProfileThumbnail/isValidUserProfileThumbnail.js +3 -27
  175. package/dist/lib/userProfileThumbnail/isValidUserProfileThumbnail.js.map +1 -1
  176. package/dist/lib/userProfileThumbnail/scoringConfig.js +0 -4
  177. package/dist/lib/userProfileThumbnail/scoringConfig.js.map +1 -1
  178. package/dist/lib/userProfileThumbnail/scoringRulesConfig.js +0 -35
  179. package/dist/lib/userProfileThumbnail/scoringRulesConfig.js.map +1 -1
  180. package/dist/lib/util/assertString.d.ts +0 -10
  181. package/dist/lib/util/assertString.js +0 -11
  182. package/dist/lib/util/assertString.js.map +1 -1
  183. package/dist/lib/util/checkIsLayer.d.ts +0 -5
  184. package/dist/lib/util/checkIsLayer.js +0 -5
  185. package/dist/lib/util/checkIsLayer.js.map +1 -1
  186. package/dist/lib/util/contains.d.ts +0 -6
  187. package/dist/lib/util/contains.js +0 -7
  188. package/dist/lib/util/contains.js.map +1 -1
  189. package/dist/lib/util/containsNonEnglishCharacters.d.ts +0 -12
  190. package/dist/lib/util/containsNonEnglishCharacters.js +2 -16
  191. package/dist/lib/util/containsNonEnglishCharacters.js.map +1 -1
  192. package/dist/lib/util/countSentences.d.ts +0 -22
  193. package/dist/lib/util/countSentences.js +4 -36
  194. package/dist/lib/util/countSentences.js.map +1 -1
  195. package/dist/lib/util/createWordBoundaryRegex.d.ts +0 -40
  196. package/dist/lib/util/createWordBoundaryRegex.js +0 -47
  197. package/dist/lib/util/createWordBoundaryRegex.js.map +1 -1
  198. package/dist/lib/util/escapeSpecialCharacters.d.ts +0 -6
  199. package/dist/lib/util/escapeSpecialCharacters.js +0 -8
  200. package/dist/lib/util/escapeSpecialCharacters.js.map +1 -1
  201. package/dist/lib/util/getAllValidationRuleIds.d.ts +0 -4
  202. package/dist/lib/util/getAllValidationRuleIds.js +0 -4
  203. package/dist/lib/util/getAllValidationRuleIds.js.map +1 -1
  204. package/dist/lib/util/getFeatureLayerFieldValueTypes.d.ts +0 -8
  205. package/dist/lib/util/getFeatureLayerFieldValueTypes.js +0 -8
  206. package/dist/lib/util/getFeatureLayerFieldValueTypes.js.map +1 -1
  207. package/dist/lib/util/getLivingAtlasSupportedItemTypes.d.ts +0 -17
  208. package/dist/lib/util/getLivingAtlasSupportedItemTypes.js +0 -17
  209. package/dist/lib/util/getLivingAtlasSupportedItemTypes.js.map +1 -1
  210. package/dist/lib/util/getNumberOfWords.d.ts +0 -5
  211. package/dist/lib/util/getNumberOfWords.js +1 -15
  212. package/dist/lib/util/getNumberOfWords.js.map +1 -1
  213. package/dist/lib/util/getRelevantFeatureLayerFields.d.ts +0 -11
  214. package/dist/lib/util/getRelevantFeatureLayerFields.js +0 -11
  215. package/dist/lib/util/getRelevantFeatureLayerFields.js.map +1 -1
  216. package/dist/lib/util/getScoringRules.d.ts +0 -17
  217. package/dist/lib/util/getScoringRules.js +0 -105
  218. package/dist/lib/util/getScoringRules.js.map +1 -1
  219. package/dist/lib/util/getThumbnailFileName.d.ts +0 -14
  220. package/dist/lib/util/getThumbnailFileName.js +0 -14
  221. package/dist/lib/util/getThumbnailFileName.js.map +1 -1
  222. package/dist/lib/util/isArcGISDomain.d.ts +0 -5
  223. package/dist/lib/util/isArcGISDomain.js +0 -5
  224. package/dist/lib/util/isArcGISDomain.js.map +1 -1
  225. package/dist/lib/util/isArcGISOnlineReservedThumbnailName.d.ts +0 -5
  226. package/dist/lib/util/isArcGISOnlineReservedThumbnailName.js +0 -5
  227. package/dist/lib/util/isArcGISOnlineReservedThumbnailName.js.map +1 -1
  228. package/dist/lib/util/isDefined.d.ts +0 -7
  229. package/dist/lib/util/isDefined.js +0 -7
  230. package/dist/lib/util/isDefined.js.map +1 -1
  231. package/dist/lib/util/isEmail.d.ts +0 -5
  232. package/dist/lib/util/isEmail.js +0 -5
  233. package/dist/lib/util/isEmail.js.map +1 -1
  234. package/dist/lib/util/isEmpty.d.ts +0 -5
  235. package/dist/lib/util/isEmpty.js +0 -5
  236. package/dist/lib/util/isEmpty.js.map +1 -1
  237. package/dist/lib/util/isFeatureCollection.d.ts +0 -5
  238. package/dist/lib/util/isFeatureCollection.js +0 -5
  239. package/dist/lib/util/isFeatureCollection.js.map +1 -1
  240. package/dist/lib/util/isFeatureService.d.ts +0 -11
  241. package/dist/lib/util/isFeatureService.js +0 -13
  242. package/dist/lib/util/isFeatureService.js.map +1 -1
  243. package/dist/lib/util/isHosted.d.ts +0 -5
  244. package/dist/lib/util/isHosted.js +0 -5
  245. package/dist/lib/util/isHosted.js.map +1 -1
  246. package/dist/lib/util/isLatin.d.ts +0 -5
  247. package/dist/lib/util/isLatin.js +0 -5
  248. package/dist/lib/util/isLatin.js.map +1 -1
  249. package/dist/lib/util/isLayer.d.ts +0 -10
  250. package/dist/lib/util/isLayer.js +1 -13
  251. package/dist/lib/util/isLayer.js.map +1 -1
  252. package/dist/lib/util/isSecureProtocol.d.ts +0 -5
  253. package/dist/lib/util/isSecureProtocol.js +0 -5
  254. package/dist/lib/util/isSecureProtocol.js.map +1 -1
  255. package/dist/lib/util/isUppercase.d.ts +0 -3
  256. package/dist/lib/util/isUppercase.js +0 -3
  257. package/dist/lib/util/isUppercase.js.map +1 -1
  258. package/dist/lib/util/isUrl.d.ts +0 -8
  259. package/dist/lib/util/isUrl.js +1 -11
  260. package/dist/lib/util/isUrl.js.map +1 -1
  261. package/dist/lib/util/isValidRegexPattern.d.ts +0 -6
  262. package/dist/lib/util/isValidRegexPattern.js +0 -6
  263. package/dist/lib/util/isValidRegexPattern.js.map +1 -1
  264. package/dist/lib/util/matches.d.ts +0 -11
  265. package/dist/lib/util/matches.js +0 -11
  266. package/dist/lib/util/matches.js.map +1 -1
  267. package/dist/lib/util/round.js +0 -4
  268. package/dist/lib/util/round.js.map +1 -1
  269. package/dist/lib/util/sanitizeTags.d.ts +0 -5
  270. package/dist/lib/util/sanitizeTags.js +0 -5
  271. package/dist/lib/util/sanitizeTags.js.map +1 -1
  272. package/dist/lib/util/shouldValidateByBetaRules.d.ts +0 -7
  273. package/dist/lib/util/shouldValidateByBetaRules.js +0 -31
  274. package/dist/lib/util/shouldValidateByBetaRules.js.map +1 -1
  275. package/dist/lib/util/stringsConfig.d.ts +0 -21
  276. package/dist/lib/util/stringsConfig.js +0 -38
  277. package/dist/lib/util/stringsConfig.js.map +1 -1
  278. package/dist/lib/util/toString.d.ts +0 -10
  279. package/dist/lib/util/toString.js +0 -10
  280. package/dist/lib/util/toString.js.map +1 -1
  281. package/dist/lib/validate/validate.d.ts +0 -64
  282. package/dist/lib/validate/validate.js +1 -52
  283. package/dist/lib/validate/validate.js.map +1 -1
  284. package/dist/lib/validate/validateHelpers.d.ts +0 -57
  285. package/dist/lib/validate/validateHelpers.js +1 -72
  286. package/dist/lib/validate/validateHelpers.js.map +1 -1
  287. package/dist/package-info.json +1 -1
  288. package/dist/services/content-validator-assets/config.d.ts +0 -3
  289. package/dist/services/content-validator-assets/config.js +0 -3
  290. package/dist/services/content-validator-assets/config.js.map +1 -1
  291. package/dist/services/content-validator-assets/fetchAdditonalPatterns4TitleAndSnippetSearchability.d.ts +0 -93
  292. package/dist/services/content-validator-assets/fetchAdditonalPatterns4TitleAndSnippetSearchability.js +0 -33
  293. package/dist/services/content-validator-assets/fetchAdditonalPatterns4TitleAndSnippetSearchability.js.map +1 -1
  294. package/dist/services/content-validator-assets/fetchProfanitiesData.d.ts +0 -24
  295. package/dist/services/content-validator-assets/fetchProfanitiesData.js +0 -19
  296. package/dist/services/content-validator-assets/fetchProfanitiesData.js.map +1 -1
  297. package/dist/services/content-validator-assets/helpers.d.ts +0 -14
  298. package/dist/services/content-validator-assets/helpers.js +1 -15
  299. package/dist/services/content-validator-assets/helpers.js.map +1 -1
  300. package/dist/services/custom-terms/config.d.ts +0 -11
  301. package/dist/services/custom-terms/config.js +0 -41
  302. package/dist/services/custom-terms/config.js.map +1 -1
  303. package/dist/services/custom-terms/customTerms.d.ts +0 -170
  304. package/dist/services/custom-terms/customTerms.js +4 -169
  305. package/dist/services/custom-terms/customTerms.js.map +1 -1
  306. package/dist/services/custom-terms/helpers.d.ts +0 -6
  307. package/dist/services/custom-terms/helpers.js +0 -6
  308. package/dist/services/custom-terms/helpers.js.map +1 -1
  309. package/dist/services/custom-terms-review-results/config.d.ts +0 -16
  310. package/dist/services/custom-terms-review-results/config.js +0 -42
  311. package/dist/services/custom-terms-review-results/config.js.map +1 -1
  312. package/dist/services/custom-terms-review-results/customTermsReviewResults.d.ts +0 -93
  313. package/dist/services/custom-terms-review-results/customTermsReviewResults.js +0 -87
  314. package/dist/services/custom-terms-review-results/customTermsReviewResults.js.map +1 -1
  315. package/dist/services/custom-terms-review-results/helpers.d.ts +0 -15
  316. package/dist/services/custom-terms-review-results/helpers.js +0 -16
  317. package/dist/services/custom-terms-review-results/helpers.js.map +1 -1
  318. package/dist/services/feature-service/fetchFeatureServiceAdminJSON.d.ts +0 -12
  319. package/dist/services/feature-service/fetchFeatureServiceAdminJSON.js +3 -13
  320. package/dist/services/feature-service/fetchFeatureServiceAdminJSON.js.map +1 -1
  321. package/dist/services/feature-service/fetchFeatureServiceLayersAndTables.d.ts +0 -12
  322. package/dist/services/feature-service/fetchFeatureServiceLayersAndTables.js +5 -32
  323. package/dist/services/feature-service/fetchFeatureServiceLayersAndTables.js.map +1 -1
  324. package/dist/services/feature-service/fetchFeatureServiceRootJSON.d.ts +0 -14
  325. package/dist/services/feature-service/fetchFeatureServiceRootJSON.js +5 -30
  326. package/dist/services/feature-service/fetchFeatureServiceRootJSON.js.map +1 -1
  327. package/dist/services/feature-service/getFeatureServerURL.d.ts +0 -11
  328. package/dist/services/feature-service/getFeatureServerURL.js +2 -14
  329. package/dist/services/feature-service/getFeatureServerURL.js.map +1 -1
  330. package/dist/services/shared/addFeatures.d.ts +0 -11
  331. package/dist/services/shared/addFeatures.js +0 -11
  332. package/dist/services/shared/addFeatures.js.map +1 -1
  333. package/dist/services/shared/applyEdits.d.ts +0 -11
  334. package/dist/services/shared/applyEdits.js +0 -11
  335. package/dist/services/shared/applyEdits.js.map +1 -1
  336. package/dist/services/shared/config.d.ts +0 -38
  337. package/dist/services/shared/config.js +0 -22
  338. package/dist/services/shared/config.js.map +1 -1
  339. package/dist/services/shared/getItemInfo.d.ts +0 -12
  340. package/dist/services/shared/getItemInfo.js +1 -16
  341. package/dist/services/shared/getItemInfo.js.map +1 -1
  342. package/dist/types/index.d.ts +1 -330
  343. package/dist/types/index.js +0 -19
  344. package/dist/types/index.js.map +1 -1
  345. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"isValidRegexPattern.js","sourceRoot":"","sources":["../../../src/lib/util/isValidRegexPattern.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACI,MAAM,mBAAmB,GAAG,CAAC,OAAe,EAAW,EAAE;IAC5D,IAAI,CAAC;QACD,IAAI,MAAM,CAAC,OAAO,CAAC,CAAC;QACpB,OAAO,IAAI,CAAC;IAChB,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACT,OAAO,KAAK,CAAC;IACjB,CAAC;AACL,CAAC,CAAC;AAPW,QAAA,mBAAmB,uBAO9B"}
1
+ {"version":3,"file":"isValidRegexPattern.js","sourceRoot":"","sources":["../../../src/lib/util/isValidRegexPattern.ts"],"names":[],"mappings":";;;AAMO,MAAM,mBAAmB,GAAG,CAAC,OAAe,EAAW,EAAE;IAC5D,IAAI,CAAC;QACD,IAAI,MAAM,CAAC,OAAO,CAAC,CAAC;QACpB,OAAO,IAAI,CAAC;IAChB,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACT,OAAO,KAAK,CAAC;IACjB,CAAC;AACL,CAAC,CAAC;AAPW,QAAA,mBAAmB,uBAO9B"}
@@ -1,12 +1 @@
1
- /**
2
- * Returns a boolean value indicating whether the regular expression pattern matches any part of the input str.
3
- *
4
- * It checks if the pattern parameter is a regular expression.
5
- * If it is not, it creates a new regular expression object from the pattern parameter and optional flags parameter.
6
- *
7
- * @param str inpput string
8
- * @param pattern a regular expression
9
- * @param flags optional string flags for the regular expression
10
- * @returns
11
- */
12
1
  export declare const matches: (str: string, pattern: RegExp, flags?: string) => boolean;
@@ -1,17 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.matches = void 0;
4
- /**
5
- * Returns a boolean value indicating whether the regular expression pattern matches any part of the input str.
6
- *
7
- * It checks if the pattern parameter is a regular expression.
8
- * If it is not, it creates a new regular expression object from the pattern parameter and optional flags parameter.
9
- *
10
- * @param str inpput string
11
- * @param pattern a regular expression
12
- * @param flags optional string flags for the regular expression
13
- * @returns
14
- */
15
4
  const matches = (str, pattern, flags) => {
16
5
  if (Object.prototype.toString.call(pattern) !== '[object RegExp]') {
17
6
  pattern = new RegExp(pattern, flags);
@@ -1 +1 @@
1
- {"version":3,"file":"matches.js","sourceRoot":"","sources":["../../../src/lib/util/matches.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;GAUG;AACI,MAAM,OAAO,GAAG,CAAC,GAAW,EAAE,OAAe,EAAE,KAAc,EAAE,EAAE;IACpE,IAAI,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,iBAAiB,EAAE,CAAC;QAChE,OAAO,GAAG,IAAI,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IACzC,CAAC;IACD,OAAO,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7B,CAAC,CAAC;AALW,QAAA,OAAO,WAKlB"}
1
+ {"version":3,"file":"matches.js","sourceRoot":"","sources":["../../../src/lib/util/matches.ts"],"names":[],"mappings":";;;AAWO,MAAM,OAAO,GAAG,CAAC,GAAW,EAAE,OAAe,EAAE,KAAc,EAAE,EAAE;IACpE,IAAI,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,iBAAiB,EAAE,CAAC;QAChE,OAAO,GAAG,IAAI,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IACzC,CAAC;IACD,OAAO,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7B,CAAC,CAAC;AALW,QAAA,OAAO,WAKlB"}
@@ -1,8 +1,4 @@
1
1
  "use strict";
2
- // export const round = (num:number, decimals=0)=>{
3
- // const factor = Math.pow(10, decimals)
4
- // return Math.round((num + Number.EPSILON) * factor) / factor;
5
- // }
6
2
  Object.defineProperty(exports, "__esModule", { value: true });
7
3
  exports.round = round;
8
4
  function round(num, decimals = 0) {
@@ -1 +1 @@
1
- {"version":3,"file":"round.js","sourceRoot":"","sources":["../../../src/lib/util/round.ts"],"names":[],"mappings":";AAAA,mDAAmD;AACnD,4CAA4C;AAC5C,mEAAmE;AACnE,IAAI;;AAEJ,sBAIC;AAJD,SAAgB,KAAK,CAAC,GAAG,EAAE,QAAQ,GAAG,CAAC;IACnC,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC;IACtC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC,CAAC;IAC3D,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACrD,CAAC"}
1
+ {"version":3,"file":"round.js","sourceRoot":"","sources":["../../../src/lib/util/round.ts"],"names":[],"mappings":";;AAKA,sBAIC;AAJD,SAAgB,KAAK,CAAC,GAAG,EAAE,QAAQ,GAAG,CAAC;IACnC,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC;IACtC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC,CAAC;IAC3D,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACrD,CAAC"}
@@ -1,6 +1 @@
1
- /**
2
- * Cleans up an array of tags by trimming whitespace and removing empty strings.
3
- * @param tags - An array of tags to be cleaned up.
4
- * @returns A new array of cleaned tags.
5
- */
6
1
  export declare const sanitizeTags: (tags: string[]) => string[];
@@ -1,11 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.sanitizeTags = void 0;
4
- /**
5
- * Cleans up an array of tags by trimming whitespace and removing empty strings.
6
- * @param tags - An array of tags to be cleaned up.
7
- * @returns A new array of cleaned tags.
8
- */
9
4
  const sanitizeTags = (tags) => {
10
5
  if (!tags || !Array.isArray(tags)) {
11
6
  return [];
@@ -1 +1 @@
1
- {"version":3,"file":"sanitizeTags.js","sourceRoot":"","sources":["../../../src/lib/util/sanitizeTags.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACI,MAAM,YAAY,GAAG,CAAC,IAAc,EAAY,EAAE;IACrD,IAAI,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;QAChC,OAAO,EAAE,CAAC;IACd,CAAC;IAED,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;AACzE,CAAC,CAAC;AANW,QAAA,YAAY,gBAMvB"}
1
+ {"version":3,"file":"sanitizeTags.js","sourceRoot":"","sources":["../../../src/lib/util/sanitizeTags.ts"],"names":[],"mappings":";;;AAKO,MAAM,YAAY,GAAG,CAAC,IAAc,EAAY,EAAE;IACrD,IAAI,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;QAChC,OAAO,EAAE,CAAC;IACd,CAAC;IAED,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;AACzE,CAAC,CAAC;AANW,QAAA,YAAY,gBAMvB"}
@@ -1,9 +1,2 @@
1
1
  import { IItem } from '../../types';
2
- /**
3
- * Determine if the item qualifies for validation under beta rules.
4
- * Beta rules are applied to items owned by Esri and other specific accounts decided by Jim Herries.
5
- *
6
- * @param item - The item to evaluate for beta testing eligibility.
7
- * @returns A boolean value indicating whether the item's owner is a beta tester.
8
- */
9
2
  export declare const shouldValidateByBetaRules: (item: IItem) => boolean;
@@ -2,30 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.shouldValidateByBetaRules = void 0;
4
4
  const config_1 = require("../config");
5
- // export const esriOwners: string[] = [
6
- // 'esri',
7
- // 'Federal_User_Community',
8
- // 'esri_Landscape',
9
- // 'esri_dm',
10
- // 'AtlasPublisher',
11
- // 'StoryMaps',
12
- // 'esri_basemaps',
13
- // 'UOdocent',
14
- // 'esri_vector',
15
- // 'esri_livefeeds',
16
- // 'esri_oceans',
17
- // 'esri_demographics',
18
- // 'esri_observations',
19
- // 'esri_landscape2',
20
- // 'Esri_GI',
21
- // 'esri_livefeeds2',
22
- // 'esri_analytics',
23
- // 'esri_imagery',
24
- // 'Esri_US_Federal_Data',
25
- // 'esri_environment',
26
- // 'esri_webstyles',
27
- // 'esri_elevation',
28
- // ];
29
5
  const additonalAccounts = [
30
6
  'lisa_berry',
31
7
  'stevenaviles_livingatlas',
@@ -40,13 +16,6 @@ const additonalAccountsDevext = [
40
16
  'jinnanzhang',
41
17
  'jherries_mapit',
42
18
  ];
43
- /**
44
- * Determine if the item qualifies for validation under beta rules.
45
- * Beta rules are applied to items owned by Esri and other specific accounts decided by Jim Herries.
46
- *
47
- * @param item - The item to evaluate for beta testing eligibility.
48
- * @returns A boolean value indicating whether the item's owner is a beta tester.
49
- */
50
19
  const shouldValidateByBetaRules = (item) => {
51
20
  const owner = item === null || item === void 0 ? void 0 : item.owner;
52
21
  if (!owner) {
@@ -1 +1 @@
1
- {"version":3,"file":"shouldValidateByBetaRules.js","sourceRoot":"","sources":["../../../src/lib/util/shouldValidateByBetaRules.ts"],"names":[],"mappings":";;;AACA,sCAAmD;AAEnD,wCAAwC;AACxC,cAAc;AACd,gCAAgC;AAChC,wBAAwB;AACxB,iBAAiB;AACjB,wBAAwB;AACxB,mBAAmB;AACnB,uBAAuB;AACvB,kBAAkB;AAClB,qBAAqB;AACrB,wBAAwB;AACxB,qBAAqB;AACrB,2BAA2B;AAC3B,2BAA2B;AAC3B,yBAAyB;AACzB,iBAAiB;AACjB,yBAAyB;AACzB,wBAAwB;AACxB,sBAAsB;AACtB,8BAA8B;AAC9B,0BAA0B;AAC1B,wBAAwB;AACxB,wBAAwB;AACxB,KAAK;AAEL,MAAM,iBAAiB,GAAG;IACtB,YAAY;IACZ,0BAA0B;IAC1B,iBAAiB;IACjB,aAAa;IACb,eAAe;IACf,gBAAgB;CACnB,CAAC;AAEF,MAAM,uBAAuB,GAAG;IAC5B,aAAa;IACb,gBAAgB;IAChB,aAAa;IACb,gBAAgB;CACnB,CAAC;AAEF;;;;;;GAMG;AACI,MAAM,yBAAyB,GAAG,CAAC,IAAW,EAAW,EAAE;IAC9D,MAAM,KAAK,GAAG,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,CAAC;IAE1B,IAAI,CAAC,KAAK,EAAE,CAAC;QACT,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO,CACH,+BAAsB,CAAC,QAAQ,CAAC,KAAK,CAAC;QACtC,iBAAiB,CAAC,QAAQ,CAAC,KAAK,CAAC;QACjC,uBAAuB,CAAC,QAAQ,CAAC,KAAK,CAAC,CAC1C,CAAC;AACN,CAAC,CAAC;AAZW,QAAA,yBAAyB,6BAYpC"}
1
+ {"version":3,"file":"shouldValidateByBetaRules.js","sourceRoot":"","sources":["../../../src/lib/util/shouldValidateByBetaRules.ts"],"names":[],"mappings":";;;AACA,sCAAmD;AA2BnD,MAAM,iBAAiB,GAAG;IACtB,YAAY;IACZ,0BAA0B;IAC1B,iBAAiB;IACjB,aAAa;IACb,eAAe;IACf,gBAAgB;CACnB,CAAC;AAEF,MAAM,uBAAuB,GAAG;IAC5B,aAAa;IACb,gBAAgB;IAChB,aAAa;IACb,gBAAgB;CACnB,CAAC;AASK,MAAM,yBAAyB,GAAG,CAAC,IAAW,EAAW,EAAE;IAC9D,MAAM,KAAK,GAAG,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,CAAC;IAE1B,IAAI,CAAC,KAAK,EAAE,CAAC;QACT,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO,CACH,+BAAsB,CAAC,QAAQ,CAAC,KAAK,CAAC;QACtC,iBAAiB,CAAC,QAAQ,CAAC,KAAK,CAAC;QACjC,uBAAuB,CAAC,QAAQ,CAAC,KAAK,CAAC,CAC1C,CAAC;AACN,CAAC,CAAC;AAZW,QAAA,yBAAyB,6BAYpC"}
@@ -1,28 +1,7 @@
1
1
  import enStringsConfig from '../../locale/en.json';
2
- /**
3
- * Living Atlas Supported language. There are JSON files for each of these six languages
4
- */
5
2
  export type Locale = 'en' | 'de' | 'es' | 'fr' | 'ja' | 'pt-br';
6
- /**
7
- * A JSON file contains strings for all validation rules
8
- */
9
3
  export type ValidationRulesStringJSON = typeof enStringsConfig;
10
- /**
11
- * Set user preferred language for output Strings JSON file that contains messages for validation results
12
- * @param preferredLocale
13
- */
14
4
  export declare const setStrings: (customStringFile: ValidationRulesStringJSON) => void;
15
- /**
16
- * Get Strings Config data for user preferred language
17
- * @returns
18
- */
19
5
  export declare const getStringsConfig: () => ValidationRulesStringJSON;
20
- /**
21
- * Get default strings config, which is English
22
- * @returns Default strings config
23
- */
24
6
  export declare const getDefaultStringsConfig: () => ValidationRulesStringJSON;
25
- /**
26
- * Reset custom strings to null (mainly for testing purposes)
27
- */
28
7
  export declare const resetStrings: () => void;
@@ -4,40 +4,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.resetStrings = exports.getDefaultStringsConfig = exports.getStringsConfig = exports.setStrings = void 0;
7
- // import config from '../config';
8
- // import deStringsConfig from '../../locale/de.json';
9
7
  const en_json_1 = __importDefault(require("../../locale/en.json"));
10
- // /**
11
- // * Strings JSON language
12
- // */
13
- // let locale: Locale = 'en';
14
- // const stringsByLocale: Record<Locale, ValidationRulesStringJSON> = {
15
- // de: deStringsConfig,
16
- // en: enStringsConfig,
17
- // es: esStringsConfig,
18
- // fr: frStringsConfig,
19
- // ja: jaStringsConfig,
20
- // 'pt-br': prBrStringsConfig,
21
- // };
22
- /**
23
- * Custom Strings JSON provided by user for preferred language.
24
- */
25
8
  let customStrings = null;
26
- /**
27
- * Set user preferred language for output Strings JSON file that contains messages for validation results
28
- * @param preferredLocale
29
- */
30
9
  const setStrings = (customStringFile) => {
31
- // const validLocales: Locale[] = ['en', 'de', 'es', 'fr', 'ja', 'pt-br'];
32
- // locale = validLocales.includes(preferredLocale as Locale)
33
- // ? (preferredLocale as Locale)
34
- // : 'en';
35
10
  if (!customStringFile || typeof customStringFile !== 'object') {
36
11
  console.warn(`Invalid custom strings file provided.`);
37
12
  customStrings = null;
38
13
  return;
39
14
  }
40
- // Create a deep copy to avoid mutating the input
41
15
  const safeCustomStrings = JSON.parse(JSON.stringify(customStringFile));
42
16
  for (const key in en_json_1.default) {
43
17
  if (!(key in safeCustomStrings)) {
@@ -48,7 +22,6 @@ const setStrings = (customStringFile) => {
48
22
  }
49
23
  const enSubConfig = en_json_1.default[key];
50
24
  const customSubConfig = safeCustomStrings[key];
51
- // Add validation: ensure customSubConfig is an object
52
25
  if (!customSubConfig || typeof customSubConfig !== 'object') {
53
26
  console.warn(`Invalid structure for key "${key}". Reverting to default.`);
54
27
  safeCustomStrings[key] = enSubConfig;
@@ -65,25 +38,14 @@ const setStrings = (customStringFile) => {
65
38
  customStrings = safeCustomStrings;
66
39
  };
67
40
  exports.setStrings = setStrings;
68
- /**
69
- * Get Strings Config data for user preferred language
70
- * @returns
71
- */
72
41
  const getStringsConfig = () => {
73
42
  return customStrings || en_json_1.default;
74
43
  };
75
44
  exports.getStringsConfig = getStringsConfig;
76
- /**
77
- * Get default strings config, which is English
78
- * @returns Default strings config
79
- */
80
45
  const getDefaultStringsConfig = () => {
81
46
  return en_json_1.default;
82
47
  };
83
48
  exports.getDefaultStringsConfig = getDefaultStringsConfig;
84
- /**
85
- * Reset custom strings to null (mainly for testing purposes)
86
- */
87
49
  const resetStrings = () => {
88
50
  customStrings = null;
89
51
  };
@@ -1 +1 @@
1
- {"version":3,"file":"stringsConfig.js","sourceRoot":"","sources":["../../../src/lib/util/stringsConfig.ts"],"names":[],"mappings":";;;;;;AAAA,kCAAkC;AAClC,sDAAsD;AACtD,mEAAmD;AAgBnD,MAAM;AACN,2BAA2B;AAC3B,MAAM;AACN,6BAA6B;AAE7B,uEAAuE;AACvE,2BAA2B;AAC3B,2BAA2B;AAC3B,2BAA2B;AAC3B,2BAA2B;AAC3B,2BAA2B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- *
4
- * Checks if the input is an object and if it has a toString() method, and if it does, it converts it to a string using that method.
5
- * If the input is not an object, null, undefined, NaN, or an empty string, it returns an empty string.
6
- * Otherwise, it returns the input converted to a string using the String() constructor.
7
- *
8
- * @param input
9
- * @returns string representation of the input
10
- */
11
1
  export declare const toString: (input: any) => string;
@@ -1,16 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.toString = void 0;
4
- /**
5
- * Returns a string representation of the input.
6
- *
7
- * Checks if the input is an object and if it has a toString() method, and if it does, it converts it to a string using that method.
8
- * If the input is not an object, null, undefined, NaN, or an empty string, it returns an empty string.
9
- * Otherwise, it returns the input converted to a string using the String() constructor.
10
- *
11
- * @param input
12
- * @returns string representation of the input
13
- */
14
4
  const toString = (input) => {
15
5
  if (typeof input === 'object' && input !== null) {
16
6
  if (typeof input.toString === 'function') {
@@ -1 +1 @@
1
- {"version":3,"file":"toString.js","sourceRoot":"","sources":["../../../src/lib/util/toString.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;GASG;AACI,MAAM,QAAQ,GAAG,CAAC,KAAK,EAAU,EAAE;IACtC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;QAC9C,IAAI,OAAO,KAAK,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACvC,KAAK,GAAG,KAAK,CAAC,QAAQ,EAAE,CAAC;QAC7B,CAAC;aAAM,CAAC;YACJ,KAAK,GAAG,iBAAiB,CAAC;QAC9B,CAAC;IACL,CAAC;SAAM,IACH,KAAK,KAAK,IAAI;QACd,OAAO,KAAK,KAAK,WAAW;QAC5B,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EACjC,CAAC;QACC,KAAK,GAAG,EAAE,CAAC;IACf,CAAC;IACD,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;AACzB,CAAC,CAAC;AAfW,QAAA,QAAQ,YAenB"}
1
+ {"version":3,"file":"toString.js","sourceRoot":"","sources":["../../../src/lib/util/toString.ts"],"names":[],"mappings":";;;AAUO,MAAM,QAAQ,GAAG,CAAC,KAAK,EAAU,EAAE;IACtC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;QAC9C,IAAI,OAAO,KAAK,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACvC,KAAK,GAAG,KAAK,CAAC,QAAQ,EAAE,CAAC;QAC7B,CAAC;aAAM,CAAC;YACJ,KAAK,GAAG,iBAAiB,CAAC;QAC9B,CAAC;IACL,CAAC;SAAM,IACH,KAAK,KAAK,IAAI;QACd,OAAO,KAAK,KAAK,WAAW;QAC5B,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EACjC,CAAC;QACC,KAAK,GAAG,EAAE,CAAC;IACf,CAAC;IACD,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;AACzB,CAAC,CAAC;AAfW,QAAA,QAAQ,YAenB"}
@@ -1,80 +1,16 @@
1
1
  import { FeatureLayerJSON, FeatureServiceAdminJSON, FeatureServiceJSON, IItem, IUser, ValidationResult } from '../../types';
2
2
  type ValidateOptions = {
3
- /**
4
- * Custom patterns for location information.
5
- */
6
3
  customPatternsForLocationInfo?: string[];
7
- /**
8
- * Custom patterns for data vintage information.
9
- */
10
4
  customPatternsForDataVintageInfo?: string[];
11
- /**
12
- * Custom patterns for source information.
13
- */
14
5
  customPatternsForSourceInfo?: string[];
15
- /**
16
- * Custom patterns for time information.
17
- */
18
6
  customPatternsForTopicInfo?: string[];
19
- /**
20
- * The dimension of the largest thumbnail
21
- * that we can retrieve from ArcGIS Online.
22
- */
23
7
  thumbnailDimension?: {
24
8
  width: number;
25
9
  height: number;
26
10
  };
27
- /**
28
- * An array of FeatureLayerJSON objects representing the feature layers associated with the Feature Service item.
29
- * Used for validating field value types, aliases, and descriptions within those layers.
30
- */
31
11
  featureLayers?: FeatureLayerJSON[];
32
- /**
33
- * The JSON represents the administrative feature service resource that maintains a set of operations that manage the state and contents of the service.
34
- */
35
12
  featureServiceAdminJSON?: FeatureServiceAdminJSON;
36
- /**
37
- * The JSON represents the root resource of the feature service, providing basic information about the service.
38
- * If the feature service admin JSON is not provided, this can be used for certain validations like checking initial and full extent of the service.
39
- * If the feature service admin JSON is provided, this can be omitted as the admin JSON contains all the necessary information.
40
- */
41
13
  featureServiceRootJSON?: FeatureServiceJSON;
42
14
  };
43
- /**
44
- * Validates an ArcGIS item and user profile against Living Atlas criteria.
45
- *
46
- * @param item - The ArcGIS item to validate
47
- * @param userProfile - The user profile associated with the item
48
- * @param options - Optional validation configuration
49
- * @param options.customPatternsForLocationInfo - Custom patterns to check for location information
50
- * @param options.customPatternsForDataVintageInfo - Custom patterns to check for data vintage information
51
- * @param options.customPatternsForSourceInfo - Custom patterns to check for source information
52
- * @param options.customPatternsForTopicInfo - Custom patterns to check for topic information
53
- * @param options.thumbnailDimension - Expected thumbnail dimensions
54
- * @param options.featureLayers - An array of FeatureLayerJSON objects for feature service field validations
55
- * @param options.featureServiceAdminJSON - The admin JSON of the Feature Service
56
- * @returns A ValidationResult object containing detailed validation results and an overall score
57
- *
58
- * The validation checks multiple aspects of the item including:
59
- * - Access settings
60
- * - Access information
61
- * - Description
62
- * - License information
63
- * - Summary/snippet
64
- * - SSL configuration
65
- * - Tags
66
- * - Thumbnail
67
- * - Title
68
- * - Deprecation status
69
- * - Delete protection
70
- * - Searchability of title and summary
71
- *
72
- * It also validates user profile aspects:
73
- * - Profile description
74
- * - Full name
75
- * - Profile thumbnail
76
- *
77
- * The result includes a total score and whether the item meets criteria for nomination.
78
- */
79
15
  export declare const validate: (item: IItem, userProfile: IUser, { customPatternsForLocationInfo, customPatternsForDataVintageInfo, customPatternsForSourceInfo, customPatternsForTopicInfo, thumbnailDimension, featureLayers, featureServiceAdminJSON, featureServiceRootJSON, }?: ValidateOptions) => ValidationResult;
80
16
  export {};
@@ -6,7 +6,6 @@ const checkTitleAndSnippetSearchability_1 = require("../checkTitleAndSnippetSear
6
6
  const isValidAccess_1 = require("../sharing/isValidAccess");
7
7
  const isValidAccessInformation_1 = require("../accessInformation/isValidAccessInformation");
8
8
  const isValidDescription_1 = require("../description/isValidDescription");
9
- // import { isValidLayerCount } from '../layers/isValidLayerCount';
10
9
  const isValidLicenseInfo_1 = require("../licenseInfo/isValidLicenseInfo");
11
10
  const isValidSummary_1 = require("../summary/isValidSummary");
12
11
  const isValidSSL_1 = require("../ssl/isValidSSL");
@@ -27,53 +26,13 @@ const checkFeatureServiceCDNSetting_1 = require("../featureServiceCDNSetting/che
27
26
  const checkFeatureServiceExportSetting_1 = require("../featureServiceExportDataSetting/checkFeatureServiceExportSetting");
28
27
  const checkFeatureServiceFieldIndexes_1 = require("../featureServiceFieldIndexes/checkFeatureServiceFieldIndexes");
29
28
  const checkFeatureServiceExtents_1 = require("../featureServiceExtents/checkFeatureServiceExtents");
30
- /**
31
- * Validates an ArcGIS item and user profile against Living Atlas criteria.
32
- *
33
- * @param item - The ArcGIS item to validate
34
- * @param userProfile - The user profile associated with the item
35
- * @param options - Optional validation configuration
36
- * @param options.customPatternsForLocationInfo - Custom patterns to check for location information
37
- * @param options.customPatternsForDataVintageInfo - Custom patterns to check for data vintage information
38
- * @param options.customPatternsForSourceInfo - Custom patterns to check for source information
39
- * @param options.customPatternsForTopicInfo - Custom patterns to check for topic information
40
- * @param options.thumbnailDimension - Expected thumbnail dimensions
41
- * @param options.featureLayers - An array of FeatureLayerJSON objects for feature service field validations
42
- * @param options.featureServiceAdminJSON - The admin JSON of the Feature Service
43
- * @returns A ValidationResult object containing detailed validation results and an overall score
44
- *
45
- * The validation checks multiple aspects of the item including:
46
- * - Access settings
47
- * - Access information
48
- * - Description
49
- * - License information
50
- * - Summary/snippet
51
- * - SSL configuration
52
- * - Tags
53
- * - Thumbnail
54
- * - Title
55
- * - Deprecation status
56
- * - Delete protection
57
- * - Searchability of title and summary
58
- *
59
- * It also validates user profile aspects:
60
- * - Profile description
61
- * - Full name
62
- * - Profile thumbnail
63
- *
64
- * The result includes a total score and whether the item meets criteria for nomination.
65
- */
66
29
  const validate = (item, userProfile, { customPatternsForLocationInfo, customPatternsForDataVintageInfo, customPatternsForSourceInfo, customPatternsForTopicInfo, thumbnailDimension, featureLayers, featureServiceAdminJSON, featureServiceRootJSON, } = {}) => {
67
- // const { type } = item;
68
30
  const isSupportedItemType = (0, getLivingAtlasSupportedItemTypes_1.checkIsLivingAtlasSupportedItemType)(item);
69
- // create a copy of the item to avoid mutating the original item
70
31
  const copyOfItem = Object.assign({}, item);
71
- // create a copy of the user profile to avoid mutating the original user profile
72
32
  const copyOfUserProfile = Object.assign({}, userProfile);
73
33
  const access = (0, isValidAccess_1.isValidAccess)(copyOfItem);
74
34
  const accessInformation = (0, isValidAccessInformation_1.isValidAccessInformation)(copyOfItem);
75
35
  const description = (0, isValidDescription_1.isValidDescription)(copyOfItem);
76
- // const layerCount = isValidLayerCount(item);
77
36
  const licenseInfo = (0, isValidLicenseInfo_1.isValidLicenseInfo)(copyOfItem);
78
37
  const snippet = (0, isValidSummary_1.isValidSummary)(copyOfItem);
79
38
  const ssl = (0, isValidSSL_1.isValidSSL)(copyOfItem);
@@ -92,31 +51,23 @@ const validate = (item, userProfile, { customPatternsForLocationInfo, customPatt
92
51
  const featureServiceFieldAliases = (0, checkFeatureServiceFieldAliases_1.checkFeatureServiceFieldAliases)(copyOfItem, featureLayers || []);
93
52
  const featureServiceFieldValueTypes = (0, checkFeatureServiceFieldValueTypes_1.checkFeatureServiceFieldValueTypes)(copyOfItem, featureLayers || []);
94
53
  const featureServiceFieldDescriptions = (0, checkFeatureServiceFieldDescriptions_1.checkFeatureServiceFieldDescriptions)(copyOfItem, featureLayers || []);
95
- // Validate item extent
96
54
  const itemExtent = (0, checkItemExtent_1.checkItemExtent)(copyOfItem);
97
- const userProfileDescription = (0, isValidUserProfileDescription_1.isValidUserProfileDescription)(copyOfUserProfile
98
- // item
99
- );
55
+ const userProfileDescription = (0, isValidUserProfileDescription_1.isValidUserProfileDescription)(copyOfUserProfile);
100
56
  const userProfileFullName = (0, isValidUserProfileName_1.isValidUserProfileName)(copyOfUserProfile);
101
57
  const userProfileThumbnail = (0, isValidUserProfileThumbnail_1.isValidUserProfileThumbnail)(copyOfUserProfile);
102
- // check feature service CDN setting advisory
103
58
  const featureServiceCdnSetting = (0, checkFeatureServiceCDNSetting_1.checkFeatureServiceCDNSetting)(copyOfItem, featureServiceAdminJSON);
104
- // check feature service export data setting advisory
105
59
  const featureServiceExportDataSetting = (0, checkFeatureServiceExportSetting_1.checkFeatureServiceExportSetting)(copyOfItem, featureServiceAdminJSON);
106
- // check feature service field indexes advisory
107
60
  const featureServiceFieldIndexes = (0, checkFeatureServiceFieldIndexes_1.checkFeatureServiceFieldIndexes)(copyOfItem, featureLayers || []);
108
61
  const featureServiceExtents = (0, checkFeatureServiceExtents_1.checkFeatureServiceExtents)(copyOfItem, {
109
62
  layers: featureLayers || [],
110
63
  featureServiceAdminJSON,
111
64
  featureServiceRootJSON,
112
65
  });
113
- // Assigns final scores and statuses to each validation result within the given validation result object
114
66
  const validationResult = (0, validateHelpers_1.assignFinalScoresAndStatus)({
115
67
  validatedItem: {
116
68
  access,
117
69
  accessInformation,
118
70
  description,
119
- // layerCount,
120
71
  licenseInfo,
121
72
  snippet,
122
73
  ssl,
@@ -146,9 +97,7 @@ const validate = (item, userProfile, { customPatternsForLocationInfo, customPatt
146
97
  totalScore: 0,
147
98
  canBeNominated: false,
148
99
  }, isSupportedItemType);
149
- // Get total score of the validation result
150
100
  validationResult.totalScore = (0, validateHelpers_1.getTotalScore)(validationResult, isSupportedItemType);
151
- // Checks if an item can be nominated to Living Atlas based on a set of minimum requirements.
152
101
  validationResult.canBeNominated = (0, validateHelpers_1.meetRequiredThresholds)(validationResult, isSupportedItemType);
153
102
  return validationResult;
154
103
  };
@@ -1 +1 @@
1
- {"version":3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AAC,UAAU,EAAE;QACjE,MAAM,EAAE,aAAa,IAAI,EAAE;QAC3B,uBAAuB;QACvB,sBAAsB;KACzB,CAAC,CAAC;IAGH,MAAM,gBAAgB,GAAqB,IAAA,4CAA0B,EACjE;QACI,aAAa,EAAE;YACX,MAAM;YACN,iBAAiB;YACjB,WAAW;YAEX,WAAW;YACX,OAAO;YACP,GAAG;YACH,IAAI;YACJ,SAAS;YACT,KAAK;YACL,UAAU;YACV,gBAAgB;YAChB,gCAAgC;YAChC,0BAA0B;YAC1B,6BAA6B;YAC7B,+BAA+B;YAC/B,UAAU;SACb;QACD,gBAAgB,EAAE;YACd,sBAAsB;YACtB,mBAAmB;YACnB,oBAAoB;SACvB;QACD,UAAU,EAAE;YACR,wBAAwB;YACxB,0BAA0B;YAC1B,+BAA+B;YAC/B,qBAAqB;SACxB;QACD,EAAE,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,EAAE;QACZ,UAAU,EAAE,CAAC;QACb,cAAc,EAAE,KAAK;KACxB,EACD,mBAAmB,CACtB,CAAC;IAGF,gBAAgB,CAAC,UAAU,GAAG,IAAA,+BAAa,EACvC,gBAAgB,EAChB,mBAAmB,CACtB,CAAC;IAGF,gBAAgB,CAAC,cAAc,GAAG,IAAA,wCAAsB,EACpD,gBAAgB,EAChB,mBAAmB,CACtB,CAAC;IAEF,OAAO,gBAAgB,CAAC;AAC5B,CAAC,CAAC;AApJW,QAAA,QAAQ,YAoJnB"}
@@ -1,63 +1,6 @@
1
1
  import { ValidationInfo, ValidationResult } from '../../types';
2
- /**
3
- * Flat the `ValidationResult` object and return an array of `ValidationInfo`
4
- * @param validationResult
5
- * @returns {ValidationInfo[]} array of all `ValidationInfo` from `validatedItem` and `validatedProfile` objects
6
- */
7
2
  export declare const flatValidationResults: (validationResult: ValidationResult) => ValidationInfo[];
8
- /**
9
- * Returns the total score of the validation result.
10
- *
11
- * The total score is calculated by summing up the scores of all validation results
12
- * that are applicable to Living Atlas supported item types.
13
- *
14
- * @param validationResult - The validation result object containing all validation information
15
- * @param isLivingAtlasSupportedItemType - Boolean indicating if the item type is supported by Living Atlas
16
- * @returns The total score of the validation result
17
- */
18
3
  export declare const getTotalScore: (validationResult: ValidationResult, isLivingAtlasSupportedItemType: boolean) => number;
19
- /**
20
- * Assigns final scores and statuses to each validation result within the given validation result object.
21
- *
22
- * This function processes each validation result to:
23
- * 1. Calculate total weight of all applicable validation rules
24
- * 2. Calculate score per weight unit
25
- * 3. Assign maximum possible score and actual score to each validation result
26
- * 4. Determine status based on applicability and score
27
- *
28
- * The status will be one of:
29
- * - 'not-applicable': When the rule doesn't apply to this item type
30
- * - 'error': When applicable but scored 0
31
- * - 'warning': When applicable but scored less than maximum
32
- * - 'pass': When applicable and scored the maximum
33
- *
34
- * @param validationResult - The validation result object containing all validation information
35
- * @param isLivingAtlasSupportedItemType - Boolean indicating if the item type is supported by Living Atlas
36
- * @returns The updated validation result object with scores and statuses assigned
37
- */
38
4
  export declare const assignFinalScoresAndStatus: (validationResult: ValidationResult, isLivingAtlasSupportedItemType: boolean) => ValidationResult;
39
- /**
40
- * Return `true` if the total score of the validation result meets the minimum threshold, which is 80.
41
- *
42
- * @param totalScore total score from the validation result
43
- * @returns true if it meets the minimum threshold
44
- */
45
5
  export declare const meetMinimumTotalScore: (totalScore: number) => boolean;
46
- /**
47
- * Checks if an item can be nominated to Living Atlas based on a set of minimum requirements.
48
- *
49
- * An item can be nominated only if its total score meets the minimum required threshold of **80** and it also passes all of
50
- * the following checks:
51
- *
52
- * - It is shared with the public
53
- * - It is NOT marked as deprecated
54
- * - It has Delete Protection enabled
55
- * - Its thumbnail image meets the required dimension
56
- * - It has a snippet text
57
- * - It has a description text
58
- * - The item owner has a user profile description
59
- *
60
- * @param validationResult The validation result
61
- * @returns A boolean value that indicates whether all the scores meet the required thresholds.
62
- */
63
6
  export declare const meetRequiredThresholds: (validationResult: ValidationResult, isLivingAtlasSupportedItemType: boolean) => boolean;