@vannizhang/living-atlas-content-validator 1.5.19 → 1.5.20-beta.1

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 (102) hide show
  1. package/README.md +230 -20
  2. package/dist/configureSettings.d.ts +1 -15
  3. package/dist/configureSettings.js +13 -9
  4. package/dist/configureSettings.js.map +1 -1
  5. package/dist/index.d.ts +18 -6
  6. package/dist/index.js +28 -2
  7. package/dist/index.js.map +1 -1
  8. package/dist/lib/accessInformation/isValidAccessInformation.js +1 -0
  9. package/dist/lib/accessInformation/isValidAccessInformation.js.map +1 -1
  10. package/dist/lib/checkTitleAndSnippetSearchability/checkTitleAndSnippetSearchability.js +1 -0
  11. package/dist/lib/checkTitleAndSnippetSearchability/checkTitleAndSnippetSearchability.js.map +1 -1
  12. package/dist/lib/config.d.ts +5 -0
  13. package/dist/lib/config.js +37 -1
  14. package/dist/lib/config.js.map +1 -1
  15. package/dist/lib/deleteProtection/isDeleteProtectionEnabled.js +1 -0
  16. package/dist/lib/deleteProtection/isDeleteProtectionEnabled.js.map +1 -1
  17. package/dist/lib/deprecated/isDeprecated.js +1 -0
  18. package/dist/lib/deprecated/isDeprecated.js.map +1 -1
  19. package/dist/lib/description/isValidDescription.js +1 -0
  20. package/dist/lib/description/isValidDescription.js.map +1 -1
  21. package/dist/lib/featureServiceCDNSetting/checkFeatureServiceCDNSetting.d.ts +10 -0
  22. package/dist/lib/featureServiceCDNSetting/checkFeatureServiceCDNSetting.js +52 -0
  23. package/dist/lib/featureServiceCDNSetting/checkFeatureServiceCDNSetting.js.map +1 -0
  24. package/dist/lib/featureServiceExportDataSetting/checkFeatureServiceExportSetting.d.ts +8 -0
  25. package/dist/lib/featureServiceExportDataSetting/checkFeatureServiceExportSetting.js +54 -0
  26. package/dist/lib/featureServiceExportDataSetting/checkFeatureServiceExportSetting.js.map +1 -0
  27. package/dist/lib/featureServiceExtents/checkFeatureServiceExtents.d.ts +16 -0
  28. package/dist/lib/featureServiceExtents/checkFeatureServiceExtents.js +83 -0
  29. package/dist/lib/featureServiceExtents/checkFeatureServiceExtents.js.map +1 -0
  30. package/dist/lib/featureServiceExtents/checkFeatureServiceExtentsHelpers.d.ts +17 -0
  31. package/dist/lib/featureServiceExtents/checkFeatureServiceExtentsHelpers.js +33 -0
  32. package/dist/lib/featureServiceExtents/checkFeatureServiceExtentsHelpers.js.map +1 -0
  33. package/dist/lib/featureServiceFieldAliases/checkFeatureServiceFieldAliases.js +1 -0
  34. package/dist/lib/featureServiceFieldAliases/checkFeatureServiceFieldAliases.js.map +1 -1
  35. package/dist/lib/featureServiceFieldDescriptions/checkFeatureServiceFieldDescriptions.js +1 -0
  36. package/dist/lib/featureServiceFieldDescriptions/checkFeatureServiceFieldDescriptions.js.map +1 -1
  37. package/dist/lib/featureServiceFieldIndexes/checkFeatureServiceFieldIndexes.d.ts +10 -0
  38. package/dist/lib/featureServiceFieldIndexes/checkFeatureServiceFieldIndexes.js +53 -0
  39. package/dist/lib/featureServiceFieldIndexes/checkFeatureServiceFieldIndexes.js.map +1 -0
  40. package/dist/lib/featureServiceFieldIndexes/featureServiceFieldIndexesHelpers.d.ts +7 -0
  41. package/dist/lib/featureServiceFieldIndexes/featureServiceFieldIndexesHelpers.js +27 -0
  42. package/dist/lib/featureServiceFieldIndexes/featureServiceFieldIndexesHelpers.js.map +1 -0
  43. package/dist/lib/featureServiceFieldValueTypes/checkFeatureServiceFieldValueTypes.js +1 -0
  44. package/dist/lib/featureServiceFieldValueTypes/checkFeatureServiceFieldValueTypes.js.map +1 -1
  45. package/dist/lib/itemExtent/checkItemExtent.d.ts +27 -0
  46. package/dist/lib/itemExtent/checkItemExtent.js +102 -0
  47. package/dist/lib/itemExtent/checkItemExtent.js.map +1 -0
  48. package/dist/lib/itemExtent/checkItemExtentHelpers.d.ts +38 -0
  49. package/dist/lib/itemExtent/checkItemExtentHelpers.js +132 -0
  50. package/dist/lib/itemExtent/checkItemExtentHelpers.js.map +1 -0
  51. package/dist/lib/itemExtent/scoringConfig.d.ts +9 -0
  52. package/dist/lib/itemExtent/scoringConfig.js +13 -0
  53. package/dist/lib/itemExtent/scoringConfig.js.map +1 -0
  54. package/dist/lib/licenseInfo/isValidLicenseInfo.js +1 -0
  55. package/dist/lib/licenseInfo/isValidLicenseInfo.js.map +1 -1
  56. package/dist/lib/sharing/isValidAccess.js +1 -0
  57. package/dist/lib/sharing/isValidAccess.js.map +1 -1
  58. package/dist/lib/ssl/isValidSSL.js +3 -0
  59. package/dist/lib/ssl/isValidSSL.js.map +1 -1
  60. package/dist/lib/summary/isValidSummary.js +1 -0
  61. package/dist/lib/summary/isValidSummary.js.map +1 -1
  62. package/dist/lib/tags/isValidTags.js +1 -0
  63. package/dist/lib/tags/isValidTags.js.map +1 -1
  64. package/dist/lib/thumbnail/isValidThumbnail.js +1 -0
  65. package/dist/lib/thumbnail/isValidThumbnail.js.map +1 -1
  66. package/dist/lib/title/isValidTitle.js +1 -0
  67. package/dist/lib/title/isValidTitle.js.map +1 -1
  68. package/dist/lib/userProfileDescription/isValidUserProfileDescription.js +1 -0
  69. package/dist/lib/userProfileDescription/isValidUserProfileDescription.js.map +1 -1
  70. package/dist/lib/userProfileName/isValidUserProfileName.js +1 -0
  71. package/dist/lib/userProfileName/isValidUserProfileName.js.map +1 -1
  72. package/dist/lib/userProfileThumbnail/isValidUserProfileThumbnail.js +1 -0
  73. package/dist/lib/userProfileThumbnail/isValidUserProfileThumbnail.js.map +1 -1
  74. package/dist/lib/util/isFeatureService.d.ts +6 -0
  75. package/dist/lib/util/isFeatureService.js +21 -1
  76. package/dist/lib/util/isFeatureService.js.map +1 -1
  77. package/dist/lib/util/shouldValidateByBetaRules.d.ts +0 -1
  78. package/dist/lib/util/shouldValidateByBetaRules.js +27 -26
  79. package/dist/lib/util/shouldValidateByBetaRules.js.map +1 -1
  80. package/dist/lib/util/stringsConfig.d.ts +5 -1
  81. package/dist/lib/util/stringsConfig.js +60 -22
  82. package/dist/lib/util/stringsConfig.js.map +1 -1
  83. package/dist/lib/validate/validate.d.ts +14 -2
  84. package/dist/lib/validate/validate.js +28 -1
  85. package/dist/lib/validate/validate.js.map +1 -1
  86. package/dist/locale/en.json +49 -6
  87. package/dist/package-info.json +1 -1
  88. package/dist/services/feature-service/fetchFeatureServiceAdminJSON.d.ts +14 -0
  89. package/dist/services/feature-service/fetchFeatureServiceAdminJSON.js +57 -0
  90. package/dist/services/feature-service/fetchFeatureServiceAdminJSON.js.map +1 -0
  91. package/dist/services/feature-service/fetchFeatureServiceRootJSON.d.ts +16 -0
  92. package/dist/services/feature-service/fetchFeatureServiceRootJSON.js +84 -0
  93. package/dist/services/feature-service/fetchFeatureServiceRootJSON.js.map +1 -0
  94. package/dist/types/index.d.ts +179 -2
  95. package/dist/types/index.js +5 -0
  96. package/dist/types/index.js.map +1 -1
  97. package/package.json +2 -2
  98. package/dist/locale/de.json +0 -201
  99. package/dist/locale/es.json +0 -201
  100. package/dist/locale/fr.json +0 -201
  101. package/dist/locale/ja.json +0 -201
  102. package/dist/locale/pt-br.json +0 -201
package/README.md CHANGED
@@ -32,7 +32,10 @@ The validation process evaluates whether an item meets all necessary criteria, s
32
32
  - [checkFeatureServiceFieldAliases](#checkfeatureservicefieldaliases)
33
33
  - [checkFeatureServiceFieldDescriptions](#checkFeatureServiceFieldDescriptions)
34
34
  - [checkFeatureServiceFieldValueTypes](#checkFeatureServiceFieldValueTypes)
35
+ - [checkFeatureServiceCDNSetting](#checkfeatureservicecdnsetting)
36
+ - [checkFeatureServiceExportSetting](#checkfeatureserviceexportsetting)
35
37
  - [checkTitleAndSnippetSearchability](#checktitleandsnippetsearchability)
38
+ - [checkItemExtent](#checkitemextent)
36
39
  - [API Reference - Helper Functions](#api-reference---helper-functions)
37
40
  - [isEligibleForCheckingTitleAndSnippetSearchability](#iseligibleforcheckingtitleandsnippetsearchability)
38
41
  - [matchLocationInfo](#matchlocationinfo)
@@ -191,6 +194,7 @@ validate(
191
194
  - `customPatternsForTopicInfo` (`string[]`, optional): Custom patterns for identifying topic information in the item's title and snippet.
192
195
  - `thumbnailDimension` (`{ width: number; height: number; }`, optional): The dimensions (in pixels) of the item's largest thumbnail image, used for validating thumbnail requirements.
193
196
  - `featureLayers` (`FeatureLayerJSON[]`, optional): An array of [`Feature Layer JSON`](https://developers.arcgis.com/rest/services-reference/online/feature-layer/#json-response-syntax) objects representing the feature layers associated with the Feature Service item. Used for validating field value types, aliases, and descriptions within those layers.
197
+ - `featureServiceAdminJSON` (`FeatureServiceAdminJSON`, optional): The [`Feature Service Admin JSON`](https://developers.arcgis.com/rest/services-reference/enterprise/hosted-feature-service/) object representing the Feature Service item's administrative settings. Used for checking the advisories of the Feature Service.
194
198
 
195
199
  **Returns:**
196
200
  - `ValidationResult`: An object containing detailed validation results, a total score, and a flag indicating whether the item can be nominated to Living Atlas.
@@ -263,6 +267,7 @@ const userProfile = {
263
267
 
264
268
  // Custom options for validate function that include feature layers associated with the Feature Service item
265
269
  const options = {
270
+ // feature layers associated with the Feature Service item
266
271
  featureLayers: [
267
272
  {
268
273
  id: 0,
@@ -279,6 +284,15 @@ const options = {
279
284
  ]
280
285
  }
281
286
  ],
287
+ // Feature Service Admin JSON object
288
+ featureServiceAdminJSON: {
289
+ adminServiceInfo: {
290
+ "name": "US County Boundaries",
291
+ "type": "FeatureServer",
292
+ "cacheMaxAge": 3600,
293
+ },
294
+ // Other properties...
295
+ },
282
296
  thumbnailDimension: { width: 600, height: 400 },
283
297
  };
284
298
 
@@ -611,7 +625,7 @@ isDeleteProtectionEnabled(
611
625
  - `ValidationInfo`: An object containing the validation results for the `protected` property.
612
626
 
613
627
  **Remark:**
614
- - The delete protection status is **only exposed** to the item owner. The Living Atlas team has been using a workaround to determine the delete protection status for items owned by other users.
628
+ - The delete protection status is **only exposed** to the item owner.
615
629
 
616
630
  **Example:**
617
631
  ```ts
@@ -728,7 +742,7 @@ console.log(validationInfo);
728
742
 
729
743
 
730
744
  ### `checkFeatureServiceFieldAliases`
731
- Validates that relevant fields in feature layers have appropriate aliases.
745
+ This function checks the provided feature layers for relevant fields and evaluates whether those fields have aliases defined.
732
746
 
733
747
  ```ts
734
748
  import { checkFeatureServiceFieldAliases } from '@vannizhang/living-atlas-content-validator';
@@ -746,9 +760,6 @@ checkFeatureServiceFieldAliases(
746
760
  **Returns:**
747
761
  - `ValidationInfo`: An object containing the validation result, messages, and scoring for field aliases.
748
762
 
749
- **Description:**
750
- This function checks the provided feature layers for relevant fields and evaluates whether those fields have aliases defined.
751
-
752
763
  **Example:**
753
764
  ```ts
754
765
  import { checkFeatureServiceFieldAliases } from '@vannizhang/living-atlas-content-validator';
@@ -778,7 +789,7 @@ console.log(validationInfo);
778
789
  ---
779
790
 
780
791
  ### `checkFeatureServiceFieldDescriptions`
781
- Validates that relevant fields in feature layers have appropriate descriptions.
792
+ This function checks if the given item is a feature layer and evaluates the presence of field descriptions for relevant fields within the provided feature layers.
782
793
 
783
794
  ```ts
784
795
  import { checkFeatureServiceFieldDescriptions } from '@vannizhang/living-atlas-content-validator';
@@ -796,8 +807,6 @@ checkFeatureServiceFieldDescriptions(
796
807
  **Returns:**
797
808
  - `ValidationInfo`: An object containing the validation result, messages, score, and scoring factors for field descriptions.
798
809
 
799
- **Description:**
800
- This function checks if the given item is a feature layer and evaluates the presence of field descriptions for relevant fields within the provided feature layers.
801
810
  **Example:**
802
811
  ```ts
803
812
  import { checkFeatureServiceFieldDescriptions } from '@vannizhang/living-atlas-content-validator';
@@ -827,7 +836,7 @@ console.log(validationInfo);
827
836
  ---
828
837
 
829
838
  ### `checkFeatureServiceFieldValueTypes`
830
- Validates that relevant fields in feature layers have a `fieldValueType` defined in their field descriptions.
839
+ This function checks the provided feature layers for relevant fields and evaluates whether those fields have a `fieldValueType` defined in their descriptions.
831
840
 
832
841
  ```ts
833
842
  import { checkFeatureServiceFieldValueTypes } from '@vannizhang/living-atlas-content-validator';
@@ -845,8 +854,6 @@ checkFeatureServiceFieldValueTypes(
845
854
  **Returns:**
846
855
  - `ValidationInfo`: An object containing the validation result, messages, and scoring for field value types.
847
856
 
848
- **Description:**
849
- This function checks the provided feature layers for relevant fields and evaluates whether those fields have a `fieldValueType` defined in their descriptions.
850
857
 
851
858
  **Example:**
852
859
  ```ts
@@ -927,6 +934,195 @@ console.log(validationInfo);
927
934
 
928
935
  ---
929
936
 
937
+ ### `checkFeatureServiceCDNSetting`
938
+ This function checks the CDN setting of the provided Feature Service item using its administrative JSON data. It evaluates whether the CDN is enabled and provides relevant messages. This check is advisory and does not impact the overall validation score of the item. If the CDN is not enabled, a warning message is returned to inform the user about the benefits of enabling CDN for better performance and scalability.
939
+
940
+ ```ts
941
+ import { checkFeatureServiceCDNSetting } from '@vannizhang/living-atlas-content-validator';
942
+ checkFeatureServiceCDNSetting(
943
+ item: IItem,
944
+ featureServiceAdminJSON: FeatureServiceAdminJSON
945
+ ): ValidationInfo
946
+ ```
947
+
948
+ **Parameters:**
949
+ - `item` (`IItem`, required): The ArcGIS Online Feature Service item to validate
950
+ - `featureServiceAdminJSON` (`FeatureServiceAdminJSON`, required): The [`Feature Service Admin JSON`](https://developers.arcgis.com/rest/services-reference/enterprise/hosted-feature-service/) object representing the Feature Service item's administrative settings.
951
+
952
+ **Returns:**
953
+ - `ValidationInfo`: An object containing the validation result, messages for the CDN setting.
954
+
955
+ **Example:**
956
+ ```ts
957
+ import { checkFeatureServiceCDNSetting } from '@vannizhang/living-atlas-content-validator';
958
+
959
+ const item = {
960
+ id: 'mock-feature-service-id',
961
+ type: 'Feature Service',
962
+ // Other properties...
963
+ };
964
+
965
+ const featureServiceAdminJSON = {
966
+ adminServiceInfo: {
967
+ "name": "Mock Feature Service",
968
+ "type": "FeatureServer",
969
+ "cacheMaxAge": 3600,
970
+ },
971
+ // Other properties...
972
+ };
973
+
974
+ const validationInfo = checkFeatureServiceCDNSetting(item, featureServiceAdminJSON);
975
+ console.log(validationInfo);
976
+ ```
977
+
978
+ ---
979
+
980
+ ### `checkFeatureServiceExportSetting`
981
+ This function checks the export setting of the provided Feature Service item using its administrative JSON data. It evaluates whether the export capability is enabled and provides relevant messages.
982
+ This check is advisory and does not impact the overall validation score of the item. If the export setting is enabled, a warning message is returned to inform the user to make sure that exporting data aligns with their data sharing policies.
983
+
984
+ ```ts
985
+ import { checkFeatureServiceExportSetting } from '@vannizhang/living-atlas-content-validator';
986
+ checkFeatureServiceExportSetting(
987
+ item: IItem,
988
+ featureServiceAdminJSON: FeatureServiceAdminJSON
989
+ ): ValidationInfo
990
+ ```
991
+
992
+ **Parameters:**
993
+ - `item` (`IItem`, required): The ArcGIS Online Feature Service item to validate
994
+ - `featureServiceAdminJSON` (`FeatureServiceAdminJSON`, required): The [`Feature Service Admin JSON`](https://developers.arcgis.com/rest/services-reference/enterprise/hosted-feature-service/) object representing the Feature Service item's administrative settings.
995
+
996
+ **Returns:**
997
+ - `ValidationInfo`: An object containing the validation result, messages for the export setting.
998
+
999
+
1000
+ **Example:**
1001
+ ```ts
1002
+ import { checkFeatureServiceExportSetting } from '@vannizhang/living-atlas-content-validator';
1003
+
1004
+ const item = {
1005
+ id: 'mock-feature-service-id',
1006
+ type: 'Feature Service',
1007
+ // Other properties...
1008
+ };
1009
+
1010
+ const featureServiceAdminJSON = {
1011
+ capabilities: 'Query,Export',
1012
+ // Other properties...
1013
+ };
1014
+
1015
+ const validationInfo = checkFeatureServiceExportSetting(item, featureServiceAdminJSON);
1016
+ console.log(validationInfo);
1017
+ ```
1018
+
1019
+ ---
1020
+
1021
+ ### `checkItemExtent`
1022
+
1023
+ This function checks whether the provided item's spatial extent is valid and meaningful. It evaluates if the extent is defined, not empty, and represents a real-world area.
1024
+
1025
+ ```ts
1026
+ import { checkItemExtent } from '@vannizhang/living-atlas-content-validator';
1027
+ checkItemExtent(
1028
+ item: IItem
1029
+ ): ValidationInfo
1030
+ ```
1031
+
1032
+ **Parameters:**
1033
+ - `item` (`IItem`, required): The ArcGIS Online item to validate.
1034
+
1035
+ **Returns:**
1036
+ - `ValidationInfo`: An object containing the validation result, messages, and scoring for the item's
1037
+
1038
+ **Example:**
1039
+ ```ts
1040
+ import { checkItemExtent } from '@vannizhang/living-atlas-content-validator';
1041
+ const item = {
1042
+ extent: [[-120, -45], [120, 45]], // Example extent
1043
+ // Other properties...
1044
+ };
1045
+ const validationInfo = checkItemExtent(item);
1046
+ console.log(validationInfo);
1047
+ ```
1048
+
1049
+ ---
1050
+ ### `checkFeatureServiceExtents`
1051
+ This function checks whether the provided feature service has valid initial and full extents defined in its service root JSON. It also checks the extents of each feature layer within the service to ensure they are provided.
1052
+
1053
+ ```ts
1054
+ import { checkFeatureServiceExtents } from '@vannizhang/living-atlas-content-validator';
1055
+ checkFeatureServiceExtents(
1056
+ item: IItem,
1057
+ {
1058
+ featureLayers: FeatureLayerJSON[]
1059
+ featureServiceAdminJSON: FeatureServiceAdminJSON,
1060
+ featureServiceRootJSON: FeatureServiceRootJSON
1061
+
1062
+ }
1063
+ ): ValidationInfo
1064
+ ```
1065
+
1066
+ **Parameters:**
1067
+ - `item` (`IItem`, required): The ArcGIS Online Feature Service item to validate
1068
+ - `options` (required): An object containing:
1069
+ - `featureLayers` (`FeatureLayerJSON[]`, required): An array of [`Feature Layer JSON`](https://developers.arcgis.com/rest/services-reference/online/feature-layer/#json-response-syntax) objects representing the feature layers published to this feature service.
1070
+ - `featureServiceAdminJSON` (`FeatureServiceAdminJSON`, optional): The [`Feature Service Admin JSON`](https://developers.arcgis.com/rest/services-reference/enterprise/hosted-feature-service/) object representing the Feature Service item's administrative settings. If not provided, only the feature service root JSON will be used for extent validation.
1071
+ - `featureServiceRootJSON` (`FeatureServiceRootJSON`, optional): The [`Feature Service Root JSON`](https://developers.arcgis.com/rest/services-reference/enterprise/feature-service/) object representing the root information of the Feature Service. This is used to validate the initial and full extents of the feature service if the admin JSON is not provided.
1072
+
1073
+ **Returns:**
1074
+ - `ValidationInfo`: An object containing the validation result, messages, and scoring for the feature service extents.
1075
+
1076
+ **Example:**
1077
+ ```ts
1078
+ import { checkFeatureServiceExtents } from '@vannizhang/living-atlas-content-validator';
1079
+
1080
+ // An ArcGIS Online Feature Service item to validate
1081
+ const item = {
1082
+ id: 'mock-feature-service-id',
1083
+ type: 'Feature Service',
1084
+ // Other properties...
1085
+ };
1086
+
1087
+ // feature layers associated with the Feature Service item
1088
+ const featureLayers = [
1089
+ {
1090
+ id: 0,
1091
+ name: 'Mock Layer',
1092
+ extent: {
1093
+ xmin: -120,
1094
+ ymin: -45,
1095
+ xmax: 120,
1096
+ ymax: 45,
1097
+ spatialReference: { wkid: 4326 }
1098
+ }
1099
+ }
1100
+ // Additional feature layers if needed...
1101
+ ];
1102
+
1103
+ // Feature Service Admin JSON object
1104
+ const featureServiceAdminJSON = {
1105
+ // Mock Feature Service Admin JSON properties...
1106
+ initialExtent: {
1107
+ xmin: -120,
1108
+ ymin: -45,
1109
+ xmax: 120,
1110
+ ymax: 45,
1111
+ spatialReference: { wkid: 4326 }
1112
+ },
1113
+ fullExtent: {
1114
+ xmin: -180,
1115
+ ymin: -90,
1116
+ xmax: 180,
1117
+ ymax: 90,
1118
+ spatialReference: { wkid: 4326 }
1119
+ },
1120
+ };
1121
+
1122
+ const validationInfo = checkFeatureServiceExtents(item, { featureLayers, featureServiceAdminJSON });
1123
+ ```
1124
+ ---
1125
+
930
1126
  ## API Reference - Helper Functions
931
1127
 
932
1128
  These are helper functions used internally by the core validation functions, but they can also be called independently for specific use cases. For example, a user may call `checkIsLivingAtlasSupportedItemType` to determine if an item is a supported Living Atlas type before invoking validate. Similarly, `isRecognizedLocation` can be used to verify whether a string qualifies as recognized location information before using it as a custom pattern in `matchLocationInfo`.
@@ -1355,7 +1551,7 @@ console.log(isRejected); // true or false
1355
1551
  ---
1356
1552
 
1357
1553
  ### `getLivingAtlasSupportedItemTypes`
1358
- Returns an array of item types supported by Living Atlas.
1554
+ This function returns an array containing all the predefined item types that are supported by Living Atlas from the configuration.
1359
1555
 
1360
1556
  ```ts
1361
1557
  import { getLivingAtlasSupportedItemTypes } from '@vannizhang/living-atlas-content-validator';
@@ -1366,9 +1562,6 @@ getLivingAtlasSupportedItemTypes(): LivingAtlasSupportedItemType[]
1366
1562
  **Returns:**
1367
1563
  - `LivingAtlasSupportedItemType[]`: An array of Living Atlas supported item types.
1368
1564
 
1369
- **Description:**
1370
- This function creates a new array containing all the predefined item types that are supported by Living Atlas from the configuration.
1371
-
1372
1565
  **Example:**
1373
1566
  ```ts
1374
1567
  import { getLivingAtlasSupportedItemTypes } from '@vannizhang/living-atlas-content-validator';
@@ -1380,8 +1573,7 @@ console.log(supportedItemTypes);
1380
1573
  ---
1381
1574
 
1382
1575
  ### `checkIsLivingAtlasSupportedItemType`
1383
- Checks if a given item type is supported by Living Atlas.
1384
-
1576
+ This function determines whether the provided item type string is included in the predefined list of item types supported by Living Atlas.
1385
1577
  ```ts
1386
1578
  import { checkIsLivingAtlasSupportedItemType } from '@vannizhang/living-atlas-content-validator';
1387
1579
 
@@ -1396,9 +1588,6 @@ checkIsLivingAtlasSupportedItemType(
1396
1588
  **Returns:**
1397
1589
  - `boolean`: `true` if the item type is supported by Living Atlas, otherwise `false`.
1398
1590
 
1399
- **Description:**
1400
- This function determines whether the provided item type string is included in the predefined list of item types supported by Living Atlas.
1401
-
1402
1591
  **Example:**
1403
1592
  ```ts
1404
1593
  import { checkIsLivingAtlasSupportedItemType } from '@vannizhang/living-atlas-content-validator';
@@ -1515,6 +1704,23 @@ export type ValidationResult = {
1515
1704
  */
1516
1705
  userProfileThumbnail: ValidationInfo;
1517
1706
  };
1707
+ /**
1708
+ * advisory validation results that do not impact the overall score.
1709
+ */
1710
+ advisories: {
1711
+ /**
1712
+ * Advisory validation result for CDN settings of a feature service item.
1713
+ */
1714
+ featureServiceCdnSetting: null,
1715
+ /**
1716
+ * Advisory validation result for field indexes of a feature service item.
1717
+ */
1718
+ featureServiceFieldIndexes: null,
1719
+ /**
1720
+ * Advisory validation result for data export settings of a feature service item.
1721
+ */
1722
+ featureServiceExportDataSetting: null,
1723
+ },
1518
1724
  /**
1519
1725
  * The ArcGIS Online Item ID.
1520
1726
  */
@@ -1607,6 +1813,10 @@ export type ValidationInfo = {
1607
1813
  * if true, this validation rule is a binary check, i.e., it can only pass or fail.
1608
1814
  */
1609
1815
  isBinaryCheck: boolean;
1816
+ /**
1817
+ * if true, this validation rule is advisory and does not impact the overall score.
1818
+ */
1819
+ isAdvisory: boolean;
1610
1820
  };
1611
1821
  ```
1612
1822
 
@@ -83,19 +83,6 @@ type ConfigureSettingsParams = {
83
83
  */
84
84
  shouldAvoidUsingWordBoundary: boolean;
85
85
  };
86
- /**
87
- * The language of the library. Default is 'en'.
88
- * This setting determines the language used for displaying messages and of the validation results.
89
- *
90
- * Here is list of supported languages:
91
- * - `en`: English
92
- * - `de`: German
93
- * - `es`: Spanish
94
- * - `fr`: French
95
- * - `ja`: Japanese
96
- * - `pt-br`: Brazilian Portuguese
97
- */
98
- language?: string;
99
86
  /**
100
87
  * An array of profanities to be used for validation.
101
88
  * This is used to determine if the title or snippet contains any profanities.
@@ -115,7 +102,6 @@ type ConfigureSettingsParams = {
115
102
  * Configures the settings for the application.
116
103
  *
117
104
  * @param {Object} params - The settings parameters.
118
- * @param {string} params.language - The language to be set for the application.
119
105
  * @param {Object} [params.additionalPatternsForTitleAndSnippetSearchability] - Optional additional patterns for title and snippet searchability.
120
106
  * @param {string[]} params.additionalPatternsForTitleAndSnippetSearchability.matchingPatternsLocation - Matching patterns for location.
121
107
  * @param {string[]} params.additionalPatternsForTitleAndSnippetSearchability.rejectedPatternsLocation - Rejected patterns for location.
@@ -131,5 +117,5 @@ type ConfigureSettingsParams = {
131
117
  *
132
118
  * @throws {Error} If the language is not provided or is invalid.
133
119
  */
134
- export declare const configureSettings: ({ language, additionalPatternsForTitleAndSnippetSearchability, profanities, serviceTier, }: ConfigureSettingsParams) => void;
120
+ export declare const configureSettings: ({ additionalPatternsForTitleAndSnippetSearchability, profanities, serviceTier, }: ConfigureSettingsParams) => void;
135
121
  export {};
@@ -3,13 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.configureSettings = void 0;
4
4
  const checkProfanities_1 = require("./lib/checkProfanities/checkProfanities");
5
5
  const config_1 = require("./lib/checkTitleAndSnippetSearchability/config");
6
- const stringsConfig_1 = require("./lib/util/stringsConfig");
7
6
  const config_2 = require("./services/shared/config");
8
7
  /**
9
8
  * Configures the settings for the application.
10
9
  *
11
10
  * @param {Object} params - The settings parameters.
12
- * @param {string} params.language - The language to be set for the application.
13
11
  * @param {Object} [params.additionalPatternsForTitleAndSnippetSearchability] - Optional additional patterns for title and snippet searchability.
14
12
  * @param {string[]} params.additionalPatternsForTitleAndSnippetSearchability.matchingPatternsLocation - Matching patterns for location.
15
13
  * @param {string[]} params.additionalPatternsForTitleAndSnippetSearchability.rejectedPatternsLocation - Rejected patterns for location.
@@ -25,7 +23,9 @@ const config_2 = require("./services/shared/config");
25
23
  *
26
24
  * @throws {Error} If the language is not provided or is invalid.
27
25
  */
28
- const configureSettings = ({ language = 'en', additionalPatternsForTitleAndSnippetSearchability, profanities, serviceTier = 'dev', }) => {
26
+ const configureSettings = ({
27
+ // language = 'en',
28
+ additionalPatternsForTitleAndSnippetSearchability, profanities, serviceTier = 'dev', }) => {
29
29
  // if (serviceTier !== 'dev' && serviceTier !== 'prod') {
30
30
  // throw new Error(
31
31
  // 'Invalid service tier. It must be either "dev" or "prod".'
@@ -34,14 +34,18 @@ const configureSettings = ({ language = 'en', additionalPatternsForTitleAndSnipp
34
34
  // if (!language) {
35
35
  // throw new Error('Language is required.');
36
36
  // }
37
- const validLocales = ['en', 'de', 'es', 'fr', 'ja', 'pt-br'];
38
- if (!validLocales.includes(language)) {
39
- throw new Error(`Invalid language. Supported languages are: ${validLocales.join(', ')}.`);
40
- }
37
+ // const validLocales: Locale[] = ['en', 'de', 'es', 'fr', 'ja', 'pt-br'];
38
+ // if (!validLocales.includes(language as Locale)) {
39
+ // throw new Error(
40
+ // `Invalid language. Supported languages are: ${validLocales.join(
41
+ // ', '
42
+ // )}.`
43
+ // );
44
+ // }
41
45
  // Set the service tier for the application
42
46
  (0, config_2.setServiceTier)(serviceTier || 'dev');
43
- // Set the language for the application
44
- (0, stringsConfig_1.setStrings)(language);
47
+ // // Set the language for the application
48
+ // setStrings(language);
45
49
  const { matchingPatternsLocation, rejectedPatternsLocation, matchingPatternsSource, rejectedPatternsSource, matchingPatternsTopic, rejectedPatternsTopic, matchingPatternsYearVintage, rejectedPatternsYearVintage, shouldAvoidUsingWordBoundary, } = additionalPatternsForTitleAndSnippetSearchability || {};
46
50
  // Set additional patterns for title and snippet searchability
47
51
  (0, config_1.setAdditionalPatternsForTitleAndSnippetSearchability)({
@@ -1 +1 @@
1
- {"version":3,"file":"configureSettings.js","sourceRoot":"","sources":["../src/configureSettings.ts"],"names":[],"mappings":";;;AAAA,8EAAyE;AACzE,2EAAsH;AACtH,4DAA8D;AAC9D,qDAAuE;AAmHvE;;;;;;;;;;;;;;;;;;;GAmBG;AACI,MAAM,iBAAiB,GAAG,CAAC,EAC9B,QAAQ,GAAG,IAAI,EACf,iDAAiD,EACjD,WAAW,EACX,WAAW,GAAG,KAAK,GACG,EAAE,EAAE;IAC1B,yDAAyD;IACzD,uBAAuB;IACvB,qEAAqE;IACrE,SAAS;IACT,IAAI;IAEJ,mBAAmB;IACnB,gDAAgD;IAChD,IAAI;IAEJ,MAAM,YAAY,GAAa,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IACvE,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,QAAkB,CAAC,EAAE,CAAC;QAC7C,MAAM,IAAI,KAAK,CACX,8CAA8C,YAAY,CAAC,IAAI,CAC3D,IAAI,CACP,GAAG,CACP,CAAC;IACN,CAAC;IAED,2CAA2C;IAC3C,IAAA,uBAAc,EAAC,WAAW,IAAI,KAAK,CAAC,CAAC;IAErC,uCAAuC;IACvC,IAAA,0BAAU,EAAC,QAAQ,CAAC,CAAC;IAErB,MAAM,EACF,wBAAwB,EACxB,wBAAwB,EACxB,sBAAsB,EACtB,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,2BAA2B,EAC3B,2BAA2B,EAC3B,4BAA4B,GAC/B,GAAG,iDAAiD,IAAI,EAAE,CAAC;IAE5D,8DAA8D;IAC9D,IAAA,6DAAoD,EAAC;QACjD,wBAAwB;QACxB,wBAAwB;QACxB,sBAAsB;QACtB,sBAAsB;QACtB,qBAAqB;QACrB,qBAAqB;QACrB,2BAA2B;QAC3B,2BAA2B;QAC3B,4BAA4B;KAC/B,CAAC,CAAC;IAEH,iCAAiC;IACjC,IAAA,iCAAc,EAAC,WAAW,IAAI,EAAE,CAAC,CAAC;AACtC,CAAC,CAAC;AA1DW,QAAA,iBAAiB,qBA0D5B"}
1
+ {"version":3,"file":"configureSettings.js","sourceRoot":"","sources":["../src/configureSettings.ts"],"names":[],"mappings":";;;AAAA,8EAAyE;AACzE,2EAAsH;AAEtH,qDAAuE;AAmHvE;;;;;;;;;;;;;;;;;;GAkBG;AACI,MAAM,iBAAiB,GAAG,CAAC;AAC9B,mBAAmB;AACnB,iDAAiD,EACjD,WAAW,EACX,WAAW,GAAG,KAAK,GACG,EAAE,EAAE;IAC1B,yDAAyD;IACzD,uBAAuB;IACvB,qEAAqE;IACrE,SAAS;IACT,IAAI;IAEJ,mBAAmB;IACnB,gDAAgD;IAChD,IAAI;IAEJ,0EAA0E;IAC1E,oDAAoD;IACpD,uBAAuB;IACvB,2EAA2E;IAC3E,mBAAmB;IACnB,eAAe;IACf,SAAS;IACT,IAAI;IAEJ,2CAA2C;IAC3C,IAAA,uBAAc,EAAC,WAAW,IAAI,KAAK,CAAC,CAAC;IAErC,0CAA0C;IAC1C,wBAAwB;IAExB,MAAM,EACF,wBAAwB,EACxB,wBAAwB,EACxB,sBAAsB,EACtB,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,2BAA2B,EAC3B,2BAA2B,EAC3B,4BAA4B,GAC/B,GAAG,iDAAiD,IAAI,EAAE,CAAC;IAE5D,8DAA8D;IAC9D,IAAA,6DAAoD,EAAC;QACjD,wBAAwB;QACxB,wBAAwB;QACxB,sBAAsB;QACtB,sBAAsB;QACtB,qBAAqB;QACrB,qBAAqB;QACrB,2BAA2B;QAC3B,2BAA2B;QAC3B,4BAA4B;KAC/B,CAAC,CAAC;IAEH,iCAAiC;IACjC,IAAA,iCAAc,EAAC,WAAW,IAAI,EAAE,CAAC,CAAC;AACtC,CAAC,CAAC;AA1DW,QAAA,iBAAiB,qBA0D5B"}
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ValidationMessage, ValidationInfo, ValidationResult, ValidationResultStatus, FeatureLayerFieldRaw, FeatureLayerFieldFormatted, FeatureLayerJSON, FeatureLayerFieldValueType, FeatureServiceJSON } from './types';
1
+ import { ValidationMessage, ValidationInfo, ValidationResult, ValidationResultStatus, FeatureLayerFieldRaw, FeatureLayerFieldFormatted, FeatureLayerJSON, FeatureLayerFieldValueType, FeatureServiceJSON, FeatureServiceAdminJSON, FeatureLayerFieldIndex } from './types';
2
2
  import { isValidTitle } from './lib/title/isValidTitle';
3
3
  import { isValidAccessInformation } from './lib/accessInformation/isValidAccessInformation';
4
4
  import { isValidDescription } from './lib/description/isValidDescription';
@@ -37,10 +37,6 @@ import { LivingAtlasSupportedItemType } from './lib/config';
37
37
  import { checkFeatureServiceFieldDescriptions } from './lib/featureServiceFieldDescriptions/checkFeatureServiceFieldDescriptions';
38
38
  import { checkFeatureServiceFieldAliases } from './lib/featureServiceFieldAliases/checkFeatureServiceFieldAliases';
39
39
  import { checkFeatureServiceFieldValueTypes } from './lib/featureServiceFieldValueTypes/checkFeatureServiceFieldValueTypes';
40
- export { configureSettings, validate, isValidTitle, isValidAccessInformation, isValidDescription, isValidLicenseInfo, isValidAccess, isValidSSL, isValidSummary, isValidTags, isValidThumbnail, isValidUserProfileDescription, isValidUserProfileName, isValidUserProfileThumbnail, isDeprecated, isDeleteProtectionEnabled, checkTitleAndSnippetSearchability, matchLocationInfo, matchDateTimeInfo, matchSourceInfo, matchTopicInfo, isRecognizedLocation, isRecognizedDateTimeInfo, isRecognizedSource, isRecognizedTopic, isRejectedLocationInfo, isRejectedDateTimeInfo, isRejectedSourceInfo, isRejectedTopicInfo, isEligibleForCheckingTitleAndSnippetSearchability, getLivingAtlasSupportedItemTypes, checkIsLivingAtlasSupportedItemType, sanitizeTags, getStringsConfig, getDefaultStringsConfig, checkFeatureServiceFieldAliases, checkFeatureServiceFieldDescriptions, checkFeatureServiceFieldValueTypes, };
41
- export { fetchAdditonalPatterns4TitleAndSnippetSearchability, fetchProfanitiesData, getSubmittedCustomTerms, getMyCustomTerms, addCustomTerms2FeatureTable, updateStatusOfCustomTermsInFeatureTable, getPackagedReviewResults, getReviewedReviewResults, getUnarchivedReviewResults, getDeployedReviewResults, getReviewResultsByTermAndCategory, addReviewResults2FeatureTable, updateReviewResultsInFeatureTable, getCustomTermsFeatureTableItemInfo, getCustomTermsReviewResultsFeatureTableItemInfo, containsProfanity, };
42
- export { isValidRegexPattern, escapeSpecialCharacters };
43
- export type { ValidationMessage, ValidationInfo, ValidationResult, ValidationRulesStringJSON, ValidationResultStatus, MatchResult, CustomTermFeature, CustomTermCategory, CustomTermStatus, CustomTermsReviewResultLifecycle, CustomTermReviewResultFeature, AdditionalPatterns4TitleAndSnippetSearchability, AddFeaturesResponse, LivingAtlasSupportedItemType, FeatureLayerFieldRaw, FeatureLayerFieldFormatted, FeatureLayerJSON, FeatureLayerFieldValueType, FeatureServiceJSON, };
44
40
  import { getFeatureServerRootURL } from './services/feature-service/getFeatureServerURL';
45
41
  import { getPercentOfValidFieldDescriptions, isValidFieldDescription } from './lib/featureServiceFieldDescriptions/helpers';
46
42
  import { getPercentOfValidFieldAliases, isValidFieldAlias } from './lib/featureServiceFieldAliases/helpers';
@@ -48,4 +44,20 @@ import { getPercentFieldsWithValueType, isValidFieldValueType } from './lib/feat
48
44
  import { fetchFeatureServiceLayersAndTables } from './services/feature-service/fetchFeatureServiceLayersAndTables';
49
45
  import { getRelevantFeatureLayerFields } from './lib/util/getRelevantFeatureLayerFields';
50
46
  import { getFeatureLayerFieldValueTypes } from './lib/util/getFeatureLayerFieldValueTypes';
51
- export { getFeatureServerRootURL, fetchFeatureServiceLayersAndTables, getRelevantFeatureLayerFields, getFeatureLayerFieldValueTypes, getPercentOfValidFieldDescriptions, isValidFieldDescription, getPercentOfValidFieldAliases, isValidFieldAlias, getPercentFieldsWithValueType, isValidFieldValueType, };
47
+ import { checkItemExtent } from './lib/itemExtent/checkItemExtent';
48
+ import { isValidExtentDataObject, isExtentSetToWorld, isExtentPoint, isExtentValidRectangle, isExtentWithinValidRange } from './lib/itemExtent/checkItemExtentHelpers';
49
+ import { checkFeatureServiceCDNSetting } from './lib/featureServiceCDNSetting/checkFeatureServiceCDNSetting';
50
+ import { checkFeatureServiceExportSetting } from './lib/featureServiceExportDataSetting/checkFeatureServiceExportSetting';
51
+ import { checkFeatureServiceFieldIndexes } from './lib/featureServiceFieldIndexes/checkFeatureServiceFieldIndexes';
52
+ import { fetchFeatureServiceAdminJSON } from './services/feature-service/fetchFeatureServiceAdminJSON';
53
+ import { isFeatureService } from './lib/util/isFeatureService';
54
+ import { getNonSystemAttributeFieldIndexes } from './lib/featureServiceFieldIndexes/featureServiceFieldIndexesHelpers';
55
+ import { fetchFeatureServiceRootJSON } from './services/feature-service/fetchFeatureServiceRootJSON';
56
+ import { checkFeatureServiceExtents } from './lib/featureServiceExtents/checkFeatureServiceExtents';
57
+ import { ESRI_OFFICIAL_ACCOUNTS } from './lib/config';
58
+ export type { ValidationMessage, ValidationInfo, ValidationResult, ValidationRulesStringJSON, ValidationResultStatus, MatchResult, CustomTermFeature, CustomTermCategory, CustomTermStatus, CustomTermsReviewResultLifecycle, CustomTermReviewResultFeature, AdditionalPatterns4TitleAndSnippetSearchability, AddFeaturesResponse, LivingAtlasSupportedItemType, FeatureLayerFieldRaw, FeatureLayerFieldFormatted, FeatureLayerJSON, FeatureLayerFieldValueType, FeatureServiceJSON, FeatureServiceAdminJSON, FeatureLayerFieldIndex, };
59
+ export { configureSettings, validate, isValidTitle, isValidAccessInformation, isValidDescription, isValidLicenseInfo, isValidAccess, isValidSSL, isValidSummary, isValidTags, isValidThumbnail, isValidUserProfileDescription, isValidUserProfileName, isValidUserProfileThumbnail, isDeprecated, isDeleteProtectionEnabled, checkTitleAndSnippetSearchability, matchLocationInfo, matchDateTimeInfo, matchSourceInfo, matchTopicInfo, isRecognizedLocation, isRecognizedDateTimeInfo, isRecognizedSource, isRecognizedTopic, isRejectedLocationInfo, isRejectedDateTimeInfo, isRejectedSourceInfo, isRejectedTopicInfo, isEligibleForCheckingTitleAndSnippetSearchability, getLivingAtlasSupportedItemTypes, checkIsLivingAtlasSupportedItemType, sanitizeTags, getStringsConfig, getDefaultStringsConfig, checkFeatureServiceFieldAliases, checkFeatureServiceFieldDescriptions, checkFeatureServiceFieldValueTypes, checkItemExtent, checkFeatureServiceCDNSetting, checkFeatureServiceExportSetting, checkFeatureServiceFieldIndexes, checkFeatureServiceExtents, };
60
+ export { fetchAdditonalPatterns4TitleAndSnippetSearchability, fetchProfanitiesData, getSubmittedCustomTerms, getMyCustomTerms, addCustomTerms2FeatureTable, updateStatusOfCustomTermsInFeatureTable, getPackagedReviewResults, getReviewedReviewResults, getUnarchivedReviewResults, getDeployedReviewResults, getReviewResultsByTermAndCategory, addReviewResults2FeatureTable, updateReviewResultsInFeatureTable, getCustomTermsFeatureTableItemInfo, getCustomTermsReviewResultsFeatureTableItemInfo, containsProfanity, };
61
+ export { isValidRegexPattern, escapeSpecialCharacters };
62
+ export { getFeatureServerRootURL, fetchFeatureServiceLayersAndTables, getRelevantFeatureLayerFields, getFeatureLayerFieldValueTypes, getPercentOfValidFieldDescriptions, isValidFieldDescription, getPercentOfValidFieldAliases, isValidFieldAlias, getPercentFieldsWithValueType, isValidFieldValueType, isValidExtentDataObject, isExtentPoint, isExtentValidRectangle, isExtentWithinValidRange, isExtentSetToWorld, fetchFeatureServiceAdminJSON, isFeatureService, getNonSystemAttributeFieldIndexes, fetchFeatureServiceRootJSON, };
63
+ export { ESRI_OFFICIAL_ACCOUNTS };
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.addReviewResults2FeatureTable = exports.getReviewResultsByTermAndCategory = exports.getDeployedReviewResults = exports.getUnarchivedReviewResults = exports.getReviewedReviewResults = exports.getPackagedReviewResults = exports.updateStatusOfCustomTermsInFeatureTable = exports.addCustomTerms2FeatureTable = exports.getMyCustomTerms = exports.getSubmittedCustomTerms = exports.fetchProfanitiesData = exports.fetchAdditonalPatterns4TitleAndSnippetSearchability = exports.checkFeatureServiceFieldValueTypes = exports.checkFeatureServiceFieldDescriptions = exports.checkFeatureServiceFieldAliases = exports.getDefaultStringsConfig = exports.getStringsConfig = exports.sanitizeTags = exports.checkIsLivingAtlasSupportedItemType = exports.getLivingAtlasSupportedItemTypes = exports.isEligibleForCheckingTitleAndSnippetSearchability = exports.isRejectedTopicInfo = exports.isRejectedSourceInfo = exports.isRejectedDateTimeInfo = exports.isRejectedLocationInfo = exports.isRecognizedTopic = exports.isRecognizedSource = exports.isRecognizedDateTimeInfo = exports.isRecognizedLocation = exports.matchTopicInfo = exports.matchSourceInfo = exports.matchDateTimeInfo = exports.matchLocationInfo = exports.checkTitleAndSnippetSearchability = exports.isDeleteProtectionEnabled = exports.isDeprecated = exports.isValidUserProfileThumbnail = exports.isValidUserProfileName = exports.isValidUserProfileDescription = exports.isValidThumbnail = exports.isValidTags = exports.isValidSummary = exports.isValidSSL = exports.isValidAccess = exports.isValidLicenseInfo = exports.isValidDescription = exports.isValidAccessInformation = exports.isValidTitle = exports.validate = exports.configureSettings = void 0;
4
- exports.isValidFieldValueType = exports.getPercentFieldsWithValueType = exports.isValidFieldAlias = exports.getPercentOfValidFieldAliases = exports.isValidFieldDescription = exports.getPercentOfValidFieldDescriptions = exports.getFeatureLayerFieldValueTypes = exports.getRelevantFeatureLayerFields = exports.fetchFeatureServiceLayersAndTables = exports.getFeatureServerRootURL = exports.escapeSpecialCharacters = exports.isValidRegexPattern = exports.containsProfanity = exports.getCustomTermsReviewResultsFeatureTableItemInfo = exports.getCustomTermsFeatureTableItemInfo = exports.updateReviewResultsInFeatureTable = void 0;
3
+ exports.getPackagedReviewResults = exports.updateStatusOfCustomTermsInFeatureTable = exports.addCustomTerms2FeatureTable = exports.getMyCustomTerms = exports.getSubmittedCustomTerms = exports.fetchProfanitiesData = exports.fetchAdditonalPatterns4TitleAndSnippetSearchability = exports.checkFeatureServiceExtents = exports.checkFeatureServiceFieldIndexes = exports.checkFeatureServiceExportSetting = exports.checkFeatureServiceCDNSetting = exports.checkItemExtent = exports.checkFeatureServiceFieldValueTypes = exports.checkFeatureServiceFieldDescriptions = exports.checkFeatureServiceFieldAliases = exports.getDefaultStringsConfig = exports.getStringsConfig = exports.sanitizeTags = exports.checkIsLivingAtlasSupportedItemType = exports.getLivingAtlasSupportedItemTypes = exports.isEligibleForCheckingTitleAndSnippetSearchability = exports.isRejectedTopicInfo = exports.isRejectedSourceInfo = exports.isRejectedDateTimeInfo = exports.isRejectedLocationInfo = exports.isRecognizedTopic = exports.isRecognizedSource = exports.isRecognizedDateTimeInfo = exports.isRecognizedLocation = exports.matchTopicInfo = exports.matchSourceInfo = exports.matchDateTimeInfo = exports.matchLocationInfo = exports.checkTitleAndSnippetSearchability = exports.isDeleteProtectionEnabled = exports.isDeprecated = exports.isValidUserProfileThumbnail = exports.isValidUserProfileName = exports.isValidUserProfileDescription = exports.isValidThumbnail = exports.isValidTags = exports.isValidSummary = exports.isValidSSL = exports.isValidAccess = exports.isValidLicenseInfo = exports.isValidDescription = exports.isValidAccessInformation = exports.isValidTitle = exports.validate = exports.configureSettings = void 0;
4
+ exports.ESRI_OFFICIAL_ACCOUNTS = exports.fetchFeatureServiceRootJSON = exports.getNonSystemAttributeFieldIndexes = exports.isFeatureService = exports.fetchFeatureServiceAdminJSON = exports.isExtentSetToWorld = exports.isExtentWithinValidRange = exports.isExtentValidRectangle = exports.isExtentPoint = exports.isValidExtentDataObject = exports.isValidFieldValueType = exports.getPercentFieldsWithValueType = exports.isValidFieldAlias = exports.getPercentOfValidFieldAliases = exports.isValidFieldDescription = exports.getPercentOfValidFieldDescriptions = exports.getFeatureLayerFieldValueTypes = exports.getRelevantFeatureLayerFields = exports.fetchFeatureServiceLayersAndTables = exports.getFeatureServerRootURL = exports.escapeSpecialCharacters = exports.isValidRegexPattern = exports.containsProfanity = exports.getCustomTermsReviewResultsFeatureTableItemInfo = exports.getCustomTermsFeatureTableItemInfo = exports.updateReviewResultsInFeatureTable = exports.addReviewResults2FeatureTable = exports.getReviewResultsByTermAndCategory = exports.getDeployedReviewResults = exports.getUnarchivedReviewResults = exports.getReviewedReviewResults = void 0;
5
5
  const isValidTitle_1 = require("./lib/title/isValidTitle");
6
6
  Object.defineProperty(exports, "isValidTitle", { enumerable: true, get: function () { return isValidTitle_1.isValidTitle; } });
7
7
  const isValidAccessInformation_1 = require("./lib/accessInformation/isValidAccessInformation");
@@ -112,4 +112,30 @@ const getRelevantFeatureLayerFields_1 = require("./lib/util/getRelevantFeatureLa
112
112
  Object.defineProperty(exports, "getRelevantFeatureLayerFields", { enumerable: true, get: function () { return getRelevantFeatureLayerFields_1.getRelevantFeatureLayerFields; } });
113
113
  const getFeatureLayerFieldValueTypes_1 = require("./lib/util/getFeatureLayerFieldValueTypes");
114
114
  Object.defineProperty(exports, "getFeatureLayerFieldValueTypes", { enumerable: true, get: function () { return getFeatureLayerFieldValueTypes_1.getFeatureLayerFieldValueTypes; } });
115
+ const checkItemExtent_1 = require("./lib/itemExtent/checkItemExtent");
116
+ Object.defineProperty(exports, "checkItemExtent", { enumerable: true, get: function () { return checkItemExtent_1.checkItemExtent; } });
117
+ const checkItemExtentHelpers_1 = require("./lib/itemExtent/checkItemExtentHelpers");
118
+ Object.defineProperty(exports, "isValidExtentDataObject", { enumerable: true, get: function () { return checkItemExtentHelpers_1.isValidExtentDataObject; } });
119
+ Object.defineProperty(exports, "isExtentSetToWorld", { enumerable: true, get: function () { return checkItemExtentHelpers_1.isExtentSetToWorld; } });
120
+ Object.defineProperty(exports, "isExtentPoint", { enumerable: true, get: function () { return checkItemExtentHelpers_1.isExtentPoint; } });
121
+ Object.defineProperty(exports, "isExtentValidRectangle", { enumerable: true, get: function () { return checkItemExtentHelpers_1.isExtentValidRectangle; } });
122
+ Object.defineProperty(exports, "isExtentWithinValidRange", { enumerable: true, get: function () { return checkItemExtentHelpers_1.isExtentWithinValidRange; } });
123
+ const checkFeatureServiceCDNSetting_1 = require("./lib/featureServiceCDNSetting/checkFeatureServiceCDNSetting");
124
+ Object.defineProperty(exports, "checkFeatureServiceCDNSetting", { enumerable: true, get: function () { return checkFeatureServiceCDNSetting_1.checkFeatureServiceCDNSetting; } });
125
+ const checkFeatureServiceExportSetting_1 = require("./lib/featureServiceExportDataSetting/checkFeatureServiceExportSetting");
126
+ Object.defineProperty(exports, "checkFeatureServiceExportSetting", { enumerable: true, get: function () { return checkFeatureServiceExportSetting_1.checkFeatureServiceExportSetting; } });
127
+ const checkFeatureServiceFieldIndexes_1 = require("./lib/featureServiceFieldIndexes/checkFeatureServiceFieldIndexes");
128
+ Object.defineProperty(exports, "checkFeatureServiceFieldIndexes", { enumerable: true, get: function () { return checkFeatureServiceFieldIndexes_1.checkFeatureServiceFieldIndexes; } });
129
+ const fetchFeatureServiceAdminJSON_1 = require("./services/feature-service/fetchFeatureServiceAdminJSON");
130
+ Object.defineProperty(exports, "fetchFeatureServiceAdminJSON", { enumerable: true, get: function () { return fetchFeatureServiceAdminJSON_1.fetchFeatureServiceAdminJSON; } });
131
+ const isFeatureService_1 = require("./lib/util/isFeatureService");
132
+ Object.defineProperty(exports, "isFeatureService", { enumerable: true, get: function () { return isFeatureService_1.isFeatureService; } });
133
+ const featureServiceFieldIndexesHelpers_1 = require("./lib/featureServiceFieldIndexes/featureServiceFieldIndexesHelpers");
134
+ Object.defineProperty(exports, "getNonSystemAttributeFieldIndexes", { enumerable: true, get: function () { return featureServiceFieldIndexesHelpers_1.getNonSystemAttributeFieldIndexes; } });
135
+ const fetchFeatureServiceRootJSON_1 = require("./services/feature-service/fetchFeatureServiceRootJSON");
136
+ Object.defineProperty(exports, "fetchFeatureServiceRootJSON", { enumerable: true, get: function () { return fetchFeatureServiceRootJSON_1.fetchFeatureServiceRootJSON; } });
137
+ const checkFeatureServiceExtents_1 = require("./lib/featureServiceExtents/checkFeatureServiceExtents");
138
+ Object.defineProperty(exports, "checkFeatureServiceExtents", { enumerable: true, get: function () { return checkFeatureServiceExtents_1.checkFeatureServiceExtents; } });
139
+ const config_1 = require("./lib/config");
140
+ Object.defineProperty(exports, "ESRI_OFFICIAL_ACCOUNTS", { enumerable: true, get: function () { return config_1.ESRI_OFFICIAL_ACCOUNTS; } });
115
141
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAiBA,2DAAwD;AA2GpD,6FA3GK,2BAAY,OA2GL;AA1GhB,+FAA4F;AA2GxF,yGA3GK,mDAAwB,OA2GL;AA1G5B,6EAA0E;AA2GtE,mGA3GK,uCAAkB,OA2GL;AA1GtB,yEAAyE;AACzE,6EAA0E;AA2GtE,mGA3GK,uCAAkB,OA2GL;AA1GtB,+DAA4D;AA2GxD,8FA3GK,6BAAa,OA2GL;AA1GjB,qDAAkD;AA2G9C,2FA3GK,uBAAU,OA2GL;AA1Gd,iEAA8D;AA2G1D,+FA3GK,+BAAc,OA2GL;AA1GlB,wDAAqD;AA2GjD,4FA3GK,yBAAW,OA2GL;AA1Gf,uEAAoE;AA2GhE,iGA3GK,mCAAgB,OA2GL;AA1GpB,8GAA2G;AA2GvG,8GA3GK,6DAA6B,OA2GL;AA1GjC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BAAiB,OA8IA;AA3IrB,yEAGqD;AAyIjD,8GA3IA,uCAA6B,OA2IA;AAC7B,sGA3IA,+BAAqB,OA2IA;AAxIzB,sHAAmH;AAgI/G,mHAhIK,uEAAkC,OAgIL;AA9HtC,4FAAyF;AA+HrF,8GA/HK,6DAA6B,OA+HL;AA7HjC,8FAA2F;AA8HvF,+GA9HK,+DAA8B,OA8HL;AA5HlC,sEAAmE;AA4F/D,gGA5FK,iCAAe,OA4FL;AA3FnB,oFAMiD;AA4H7C,wGAjIA,gDAAuB,OAiIA;AAIvB,mGApIA,2CAAkB,OAoIA;AAHlB,8FAhIA,sCAAa,OAgIA;AACb,uGAhIA,+CAAsB,OAgIA;AACtB,yGAhIA,iDAAwB,OAgIA;AA7H5B,gHAA6G;AAoFzG,8GApFK,6DAA6B,OAoFL;AAlFjC,6HAA0H;AAmFtH,iHAnFK,mEAAgC,OAmFL;AAjFpC,sHAAmH;AAkF/G,gHAlFK,iEAA+B,OAkFL;AAhFnC,0GAAuG;AAyHnG,6GAzHK,2DAA4B,OAyHL;AAvHhC,kEAA+D;AAwH3D,iGAxHK,mCAAgB,OAwHL;AAtHpB,0HAAuH;AAuHnH,kHAvHK,qEAAiC,OAuHL;AArHrC,wGAAqG;AAsHjG,4GAtHK,yDAA2B,OAsHL;AApH/B,uGAAoG;AAyEhG,2GAzEK,uDAA0B,OAyEL;AAvE9B,yCAAsD;AAqH7C,uGArHA,+BAAsB,OAqHA"}
@@ -39,6 +39,7 @@ const isValidAccessInformation = (item) => {
39
39
  // critical: false,
40
40
  status: 'unknown',
41
41
  isBinaryCheck: false,
42
+ isAdvisory: false,
42
43
  };
43
44
  return validationOutput;
44
45
  };
@@ -1 +1 @@
1
- {"version":3,"file":"isValidAccessInformation.js","sourceRoot":"","sources":["../../../src/lib/accessInformation/isValidAccessInformation.ts"],"names":[],"mappings":";;;AAAA,yDAAyD;AACzD,uDAAoD;AACpD,6CAA0C;AAG1C,yDAAyD;AACzD,mDAAgD;AAEhD;;;;;;;GAOG;AACI,MAAM,wBAAwB,GAAG,CAAC,IAAW,EAAkB,EAAE;IACpE,MAAM,EAAE,iBAAiB,EAAE,GAAG,IAAI,CAAC;IAEnC,iEAAiE;IACjE,MAAM,cAAc,GAAG,6BAAa,CAAC,cAAc,CAAC,OAAO,CAAC;IAE5D,MAAM,aAAa,GAAG,IAAA,gCAAgB,GAAE,CAAC;IAEzC,MAAM,sBAAsB,GACxB,IAAA,2BAAY,EAAC,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAA,iBAAO,EAAC,iBAAiB,CAAC,CAAC;IAExE,MAAM,gBAAgB,GAAmB;QACrC,gBAAgB,EAAE,+BAA+B;QACjD,KAAK,EAAE,aAAa,CAAC,iBAAiB,CAAC,KAAK;QAC5C,KAAK,EAAE,aAAa,CAAC,iBAAiB,CAAC,KAAK;QAC5C,qFAAqF;QACrF,QAAQ,EAAE,CAAC;QACX,KAAK,EAAE,CAAC;QACR,QAAQ,EAAE,sBAAsB;YAC5B,CAAC,CAAC,EAAE;YACJ,CAAC,CAAC;gBACI;oBACI,OAAO,EACH,aAAa,CAAC,iBAAiB,CAAC,oBAAoB;iBAC3D;aACJ;QACP,MAAM,EAAE,6BAAa,CAAC,MAAM;QAC5B,aAAa,EAAE,sBAAsB,CAAC,CAAC,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;QACvE,mBAAmB;QACnB,MAAM,EAAE,SAAS;QACjB,aAAa,EAAE,KAAK;KACvB,CAAC;IAEF,OAAO,gBAAgB,CAAC;AAC5B,CAAC,CAAC;AAlCW,QAAA,wBAAwB,4BAkCnC"}
1
+ {"version":3,"file":"isValidAccessInformation.js","sourceRoot":"","sources":["../../../src/lib/accessInformation/isValidAccessInformation.ts"],"names":[],"mappings":";;;AAAA,yDAAyD;AACzD,uDAAoD;AACpD,6CAA0C;AAG1C,yDAAyD;AACzD,mDAAgD;AAEhD;;;;;;;GAOG;AACI,MAAM,wBAAwB,GAAG,CAAC,IAAW,EAAkB,EAAE;IACpE,MAAM,EAAE,iBAAiB,EAAE,GAAG,IAAI,CAAC;IAEnC,iEAAiE;IACjE,MAAM,cAAc,GAAG,6BAAa,CAAC,cAAc,CAAC,OAAO,CAAC;IAE5D,MAAM,aAAa,GAAG,IAAA,gCAAgB,GAAE,CAAC;IAEzC,MAAM,sBAAsB,GACxB,IAAA,2BAAY,EAAC,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAA,iBAAO,EAAC,iBAAiB,CAAC,CAAC;IAExE,MAAM,gBAAgB,GAAmB;QACrC,gBAAgB,EAAE,+BAA+B;QACjD,KAAK,EAAE,aAAa,CAAC,iBAAiB,CAAC,KAAK;QAC5C,KAAK,EAAE,aAAa,CAAC,iBAAiB,CAAC,KAAK;QAC5C,qFAAqF;QACrF,QAAQ,EAAE,CAAC;QACX,KAAK,EAAE,CAAC;QACR,QAAQ,EAAE,sBAAsB;YAC5B,CAAC,CAAC,EAAE;YACJ,CAAC,CAAC;gBACI;oBACI,OAAO,EACH,aAAa,CAAC,iBAAiB,CAAC,oBAAoB;iBAC3D;aACJ;QACP,MAAM,EAAE,6BAAa,CAAC,MAAM;QAC5B,aAAa,EAAE,sBAAsB,CAAC,CAAC,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;QACvE,mBAAmB;QACnB,MAAM,EAAE,SAAS;QACjB,aAAa,EAAE,KAAK;QACpB,UAAU,EAAE,KAAK;KACpB,CAAC;IAEF,OAAO,gBAAgB,CAAC;AAC5B,CAAC,CAAC;AAnCW,QAAA,wBAAwB,4BAmCnC"}
@@ -48,6 +48,7 @@ const checkTitleAndSnippetSearchability = (item, options) => {
48
48
  // the status will be updated afterward based on the validation result
49
49
  status: 'unknown',
50
50
  isBinaryCheck: false,
51
+ isAdvisory: false,
51
52
  };
52
53
  // Return the validationResult with a weight of 0 (so this rule does not contribute to the final score)
53
54
  // if the recommended text does not need to be checked.
@@ -1 +1 @@
1
- {"version":3,"file":"checkTitleAndSnippetSearchability.js","sourceRoot":"","sources":["../../../src/lib/checkTitleAndSnippetSearchability/checkTitleAndSnippetSearchability.ts"],"names":[],"mappings":";;;;;;AAGA,yDAAyD;AAEzD,2DAAwD;AACxD,2DAAwD;AACxD,uDAAoD;AACpD,qDAAkD;AAClD,mDAAgD;AAEhD,kEAAyC;AACzC,uCAGmB;AAyBnB;;;;;;;;;;;;GAYG;AACI,MAAM,iCAAiC,GAAG,CAC7C,IAAW,EACX,OAAgB,EACF,EAAE;IAChB,MAAM,EACF,6BAA6B,EAC7B,gCAAgC,EAChC,2BAA2B,EAC3B,0BAA0B,EAC1B,oBAAoB,GACvB,GAAG,OAAO,IAAI,EAAE,CAAC;IAElB,sEAAsE;IAEtE,0EAA0E;IAE1E,2BAA2B;IAC3B,qEAAqE;IAErE,MAAM,aAAa,GAAG,IAAA,gCAAgB,GAAE,CAAC;IAEzC,MAAM,cAAc,GAAG,6BAAa,CAAC,cAAc,CAAC,OAAO,CAAC;IAE5D,MAAM,0BAA0B,GAC5B,IAAA,2DAAiD,EAC7C,IAAI,EACJ,oBAAoB,CACvB,CAAC;IACN,wEAAwE;IAExE,MAAM,gBAAgB,GAAmB;QACrC,gBAAgB,EAAE,sCAAsC;QACxD,KAAK,EAAE,aAAa,CAAC,gCAAgC,CAAC,KAAK;QAC3D,KAAK,EAAE,aAAa,CAAC,gCAAgC,CAAC,KAAK;QAC3D,QAAQ,EAAE,CAAC;QACX,KAAK,EAAE,CAAC;QACR,QAAQ,EAAE,EAAE;QACZ,MAAM,EAAE,6BAAa,CAAC,MAAM;QAC5B,aAAa,EAAE,CAAC;QAChB,kBAAkB;QAClB,sEAAsE;QACtE,MAAM,EAAE,SAAS;QACjB,aAAa,EAAE,KAAK;KACvB,CAAC;IAEF,uGAAuG;IACvG,uDAAuD;IACvD,IAAI,0BAA0B,KAAK,KAAK,EAAE,CAAC;QACvC,uCACO,gBAAgB,KACnB,MAAM,EAAE,CAAC,IAEX;IACN,CAAC;IAED,0B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,CAAC,aAAa;SACnE,CAAC,CAAC;IACP,CAAC;SAAM,CAAC;QACJ,gBAAgB,CAAC,aAAa,IAAI,cAAc,CAAC,kBAAkB,CAAC;IACxE,CAAC;IAED,IAAI,CAAC,iBAAiB,CAAC,MAAM,EAAE,CAAC;QAC5B,gBAAgB,CAAC,QAAQ,CAAC,IAAI,CAAC;YAC3B,OAAO,EACH,aAAa,CAAC,gCAAgC,CAAC,eAAe;SACrE,CAAC,CAAC;IACP,CAAC;SAAM,CAAC;QACJ,gBAAgB,CAAC,aAAa,IAAI,cAAc,CAAC,oBAAoB,CAAC;IAC1E,CAAC;IAED,IAAI,CAAC,gBAAgB,CAAC,MAAM,EAAE,CAAC;QAC3B,gBAAgB,CAAC,QAAQ,CAAC,IAAI,CAAC;YAC3B,OAAO,EACH,aAAa,CAAC,gCAAgC,CAAC,cAAc;SACpE,CAAC,CAAC;IACP,CAAC;SAAM,CAAC;QACJ,gBAAgB,CAAC,aAAa,IAAI,cAAc,CAAC,mBAAmB,CAAC;IACzE,CAAC;IAED,OAAO,gBAAgB,CAAC;AAC5B,CAAC,CAAC;AA1IW,QAAA,iCAAiC,qCA0I5C"}
1
+ {"version":3,"file":"checkTitleAndSnippetSearchability.js","sourceRoot":"","sources":["../../../src/lib/checkTitleAndSnippetSearchability/checkTitleAndSnippetSearchability.ts"],"names":[],"mappings":";;;;;;AAGA,yDAAyD;AAEzD,2DAAwD;AACxD,2DAAwD;AACxD,uDAAoD;AACpD,qDAAkD;AAClD,mDAAgD;AAEhD,kEAAyC;AACzC,uCAGmB;AAyBnB;;;;;;;;;;;;GAYG;AACI,MAAM,iCAAiC,GAAG,CAC7C,IAAW,EACX,OAAgB,EACF,EAAE;IAChB,MAAM,EACF,6BAA6B,EAC7B,gCAAgC,EAChC,2BAA2B,EAC3B,0BAA0B,EAC1B,oBAAoB,GACvB,GAAG,OAAO,IAAI,EAAE,CAAC;IAElB,sEAAsE;IAEtE,0EAA0E;IAE1E,2BAA2B;IAC3B,q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