@vannizhang/living-atlas-content-validator 1.5.19-beta.5 → 1.5.19-beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -38,7 +38,9 @@ import { checkFeatureServiceFieldDescriptions } from './lib/featureServiceFieldD
38
38
  import { checkFeatureServiceFieldAliases } from './lib/featureServiceFieldAliases/checkFeatureServiceFieldAliases';
39
39
  import { checkFeatureServiceFieldValueTypes } from './lib/featureServiceFieldValueTypes/checkFeatureServiceFieldValueTypes';
40
40
  import { fetchFeatureServiceLayersAndTables } from './services/feature-service/fetchFeatureServiceLayersAndTables';
41
- 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, fetchFeatureServiceLayersAndTables, };
41
+ import { getRelevantFeatureLayerFields } from './lib/util/getRelevantFeatureLayerFields';
42
+ import { getFeatureLayerFieldValueTypes } from './lib/util/getFeatureLayerFieldValueTypes';
43
+ 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, fetchFeatureServiceLayersAndTables, getRelevantFeatureLayerFields, getFeatureLayerFieldValueTypes, };
42
44
  export { fetchAdditonalPatterns4TitleAndSnippetSearchability, fetchProfanitiesData, getSubmittedCustomTerms, getMyCustomTerms, addCustomTerms2FeatureTable, updateStatusOfCustomTermsInFeatureTable, getPackagedReviewResults, getReviewedReviewResults, getUnarchivedReviewResults, getDeployedReviewResults, getReviewResultsByTermAndCategory, addReviewResults2FeatureTable, updateReviewResultsInFeatureTable, getCustomTermsFeatureTableItemInfo, getCustomTermsReviewResultsFeatureTableItemInfo, containsProfanity, };
43
45
  export { isValidRegexPattern, escapeSpecialCharacters };
44
46
  export type { ValidationMessage, ValidationInfo, ValidationResult, ValidationRulesStringJSON, ValidationResultStatus, MatchResult, CustomTermFeature, CustomTermCategory, CustomTermStatus, CustomTermsReviewResultLifecycle, CustomTermReviewResultFeature, AdditionalPatterns4TitleAndSnippetSearchability, AddFeaturesResponse, LivingAtlasSupportedItemType, FeatureLayerFieldRaw, FeatureLayerFieldFormatted, FeatureLayerJSON, FeatureLayerFieldValueType, FeatureServiceJSON, };
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getReviewResultsByTermAndCategory = exports.getDeployedReviewResults = exports.getUnarchivedReviewResults = exports.getReviewedReviewResults = exports.getPackagedReviewResults = exports.updateStatusOfCustomTermsInFeatureTable = exports.addCustomTerms2FeatureTable = exports.getMyCustomTerms = exports.getSubmittedCustomTerms = exports.fetchProfanitiesData = exports.fetchAdditonalPatterns4TitleAndSnippetSearchability = exports.fetchFeatureServiceLayersAndTables = 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.escapeSpecialCharacters = exports.isValidRegexPattern = exports.containsProfanity = exports.getCustomTermsReviewResultsFeatureTableItemInfo = exports.getCustomTermsFeatureTableItemInfo = exports.updateReviewResultsInFeatureTable = exports.addReviewResults2FeatureTable = void 0;
3
+ exports.getUnarchivedReviewResults = exports.getReviewedReviewResults = exports.getPackagedReviewResults = exports.updateStatusOfCustomTermsInFeatureTable = exports.addCustomTerms2FeatureTable = exports.getMyCustomTerms = exports.getSubmittedCustomTerms = exports.fetchProfanitiesData = exports.fetchAdditonalPatterns4TitleAndSnippetSearchability = exports.getFeatureLayerFieldValueTypes = exports.getRelevantFeatureLayerFields = exports.fetchFeatureServiceLayersAndTables = 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.escapeSpecialCharacters = exports.isValidRegexPattern = exports.containsProfanity = exports.getCustomTermsReviewResultsFeatureTableItemInfo = exports.getCustomTermsFeatureTableItemInfo = exports.updateReviewResultsInFeatureTable = exports.addReviewResults2FeatureTable = exports.getReviewResultsByTermAndCategory = exports.getDeployedReviewResults = 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");
@@ -97,4 +97,8 @@ const checkFeatureServiceFieldValueTypes_1 = require("./lib/featureServiceFieldV
97
97
  Object.defineProperty(exports, "checkFeatureServiceFieldValueTypes", { enumerable: true, get: function () { return checkFeatureServiceFieldValueTypes_1.checkFeatureServiceFieldValueTypes; } });
98
98
  const fetchFeatureServiceLayersAndTables_1 = require("./services/feature-service/fetchFeatureServiceLayersAndTables");
99
99
  Object.defineProperty(exports, "fetchFeatureServiceLayersAndTables", { enumerable: true, get: function () { return fetchFeatureServiceLayersAndTables_1.fetchFeatureServiceLayersAndTables; } });
100
+ const getRelevantFeatureLayerFields_1 = require("./lib/util/getRelevantFeatureLayerFields");
101
+ Object.defineProperty(exports, "getRelevantFeatureLayerFields", { enumerable: true, get: function () { return getRelevantFeatureLayerFields_1.getRelevantFeatureLayerFields; } });
102
+ const getFeatureLayerFieldValueTypes_1 = require("./lib/util/getFeatureLayerFieldValueTypes");
103
+ Object.defineProperty(exports, "getFeatureLayerFieldValueTypes", { enumerable: true, get: function () { return getFeatureLayerFieldValueTypes_1.getFeatureLayerFieldValueTypes; } });
100
104
  //# 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;AA6GpD,6FA7GK,2BAAY,OA6GL;AA5GhB,+FAA4F;AA6GxF,yGA7GK,mDAAwB,OA6GL;AA5G5B,6EAA0E;AA6GtE,mGA7GK,uCAAkB,OA6GL;AA5GtB,yEAAyE;AACzE,6EAA0E;AA6GtE,mGA7GK,uCAAkB,OA6GL;AA5GtB,+DAA4D;AA6GxD,8FA7GK,6BAAa,OA6GL;AA5GjB,qDAAkD;AA6G9C,2FA7GK,uBAAU,OA6GL;AA5Gd,iEAA8D;AA6G1D,+FA7GK,+BAAc,OA6GL;AA5GlB,wDAAqD;AA6GjD,4FA7GK,yBAAW,OA6GL;AA5Gf,uEAAoE;AA6GhE,iGA7GK,mCAAgB,OA6GL;AA5GpB,8GAA2G;AA6GvG,8GA7GK,6DAA6B,OA6GL;AA5GjC,yFAAsF;AA6GlF,uGA7GK,+CAAsB,OA6GL;AA5G1B,wGAAqG;AA6GjG,4GA7GK,yDAA2B,OA6GL;AA5G/B,gEAA6D;AA6GzD,6FA7GK,2BAAY,OA6GL;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A4FA;AANjC,yGArFA,sDAAwB,OAqFA;AACxB,yGArFA,sDAAwB,OAqFA;AACxB,2GArFA,wDAA0B,OAqFA;AAC1B,yGArFA,sDAAwB,OAqFA;AACxB,kHArFA,+DAAiC,OAqFA;AAIjC,gIAtFA,6EAA+C,OAsFA;AAnFnD,gFAA6E;AAuF/C,wGAvFrB,iDAAuB,OAuFqB;AAtFrD,mGAAgG;AAqE5F,qGArEK,2CAAoB,OAqEL;AApExB,8EAA4E;AAkFxE,kGAlFK,oCAAiB,OAkFL;AAjFrB,kGAGqD;AAiDjD,iHAnDA,mEAAgC,OAmDA;AAChC,oHAnDA,sEAAmC,OAmDA;AA9CvC,qIAAkI;AAmD9H,qHAnDK,2EAAoC,OAmDL;AAjDxC,sHAAmH;AAgD/G,gHAhDK,iEAA+B,OAgDL;AA9CnC,+HAA4H;AAgDxH,mHAhDK,uEAAkC,OAgDL;AA9CtC,sHAAmH;AA+C/G,mHA/CK,uEAAkC,OA+CL;AA7CtC,4FAAyF;AA8CrF,8GA9CK,6DAA6B,OA8CL;AA5CjC,8FAA2F;AA6CvF,+GA7CK,+DAA8B,OA6CL"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Returns an array of all possible feature layer field value types.
3
+ *
4
+ * @returns {FeatureLayerFieldValueType[]} An array of feature layer field value types.
5
+ *
6
+ * @see https://doc.arcgis.com/en/arcgis-online/manage-data/describe-fields.htm
7
+ * @see https://www.esri.com/arcgis-blog/products/arcgis-online/data-management/describing-layer-attributes-with-field-descriptions-march-2019
8
+ */
9
+ import { FeatureLayerFieldValueType } from '../../types';
10
+ export declare const getFeatureLayerFieldValueTypes: () => FeatureLayerFieldValueType[];
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getFeatureLayerFieldValueTypes = void 0;
4
+ /**
5
+ * Returns an array of all possible feature layer field value types.
6
+ *
7
+ * @returns {FeatureLayerFieldValueType[]} An array of feature layer field value types.
8
+ *
9
+ * @see https://doc.arcgis.com/en/arcgis-online/manage-data/describe-fields.htm
10
+ * @see https://www.esri.com/arcgis-blog/products/arcgis-online/data-management/describing-layer-attributes-with-field-descriptions-march-2019
11
+ */
12
+ const types_1 = require("../../types");
13
+ const getFeatureLayerFieldValueTypes = () => {
14
+ return [...types_1.FeatureLayerFieldValueTypes];
15
+ };
16
+ exports.getFeatureLayerFieldValueTypes = getFeatureLayerFieldValueTypes;
17
+ //# sourceMappingURL=getFeatureLayerFieldValueTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getFeatureLayerFieldValueTypes.js","sourceRoot":"","sources":["../../../src/lib/util/getFeatureLayerFieldValueTypes.ts"],"names":[],"mappings":";;;AAAA;;;;;;;GAOG;AACH,uCAGqB;AAEd,MAAM,8BAA8B,GACvC,GAAiC,EAAE;IAC/B,OAAO,CAAC,GAAG,mCAA2B,CAAC,CAAC;AAC5C,CAAC,CAAC;AAHO,QAAA,8BAA8B,kCAGrC"}
@@ -1 +1 @@
1
- {"lastCompiledTime":1747854904592}
1
+ {"lastCompiledTime":1747948611066}
@@ -339,7 +339,14 @@ export type FeatureLayerFieldFormatted = FeatureLayerField & {
339
339
  * @see https://doc.arcgis.com/en/arcgis-online/manage-data/describe-fields.htm
340
340
  * @see https://www.esri.com/arcgis-blog/products/arcgis-online/data-management/describing-layer-attributes-with-field-descriptions-march-2019
341
341
  */
342
- export type FeatureLayerFieldValueType = 'nameOrTitle' | 'description' | 'typeOrCategory' | 'countOrAmount' | 'percentageOrRatio' | 'measurement' | 'uniqueIdentifier' | 'orderedOrRanked' | 'binary' | 'locationOrPlaceName' | 'coordinate' | 'dateAndTime';
342
+ export declare const FeatureLayerFieldValueTypes: readonly ["nameOrTitle", "description", "typeOrCategory", "countOrAmount", "percentageOrRatio", "measurement", "currency", "uniqueIdentifier", "phoneNumber", "emailAddress", "orderedOrRanked", "binary", "locationOrPlaceName", "coordinate", "dateAndTime"];
343
+ /**
344
+ * Represents the field value type of a feature layer.
345
+ *
346
+ * @see https://doc.arcgis.com/en/arcgis-online/manage-data/describe-fields.htm
347
+ * @see https://www.esri.com/arcgis-blog/products/arcgis-online/data-management/describing-layer-attributes-with-field-descriptions-march-2019
348
+ */
349
+ export type FeatureLayerFieldValueType = (typeof FeatureLayerFieldValueTypes)[number];
343
350
  /**
344
351
  * Represents a Feature Layer in JSON format.
345
352
  *
@@ -13,7 +13,7 @@
13
13
  * @see https://stackoverflow.com/questions/56018167/typescript-does-not-copy-d-ts-files-to-build
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.ValidationRuleIds = void 0;
16
+ exports.FeatureLayerFieldValueTypes = exports.ValidationRuleIds = void 0;
17
17
  exports.ValidationRuleIds = [
18
18
  'item-sharing-level',
19
19
  'item-credits-attribution-info',
@@ -34,4 +34,27 @@ exports.ValidationRuleIds = [
34
34
  'feature-service-field-aliases',
35
35
  'feature-service-field-descriptions',
36
36
  ];
37
+ /**
38
+ * Represents the field value type of a feature layer.
39
+ *
40
+ * @see https://doc.arcgis.com/en/arcgis-online/manage-data/describe-fields.htm
41
+ * @see https://www.esri.com/arcgis-blog/products/arcgis-online/data-management/describing-layer-attributes-with-field-descriptions-march-2019
42
+ */
43
+ exports.FeatureLayerFieldValueTypes = [
44
+ 'nameOrTitle',
45
+ 'description',
46
+ 'typeOrCategory',
47
+ 'countOrAmount',
48
+ 'percentageOrRatio',
49
+ 'measurement',
50
+ 'currency',
51
+ 'uniqueIdentifier',
52
+ 'phoneNumber',
53
+ 'emailAddress',
54
+ 'orderedOrRanked',
55
+ 'binary',
56
+ 'locationOrPlaceName',
57
+ 'coordinate',
58
+ 'dateAndTime',
59
+ ];
37
60
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG;;;AAoIU,QAAA,iBAAiB,GAAG;IAC7B,oBAAoB;IACpB,+BAA+B;IAC/B,kBAAkB;IAClB,mBAAmB;IACnB,cAAc;IACd,UAAU;IACV,WAAW;IACX,gBAAgB;IAChB,YAAY;IACZ,iBAAiB;IACjB,wBAAwB;IACxB,sCAAsC;IACtC,0BAA0B;IAC1B,wBAAwB;IACxB,wBAAwB;IACxB,mCAAmC;IACnC,+BAA+B;IAC/B,oCAAoC;CAC9B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG;;;AAoIU,QAAA,iBAAiB,GAAG;IAC7B,oBAAoB;IACpB,+BAA+B;IAC/B,kBAAkB;IAClB,mBAAmB;IACnB,cAAc;IACd,UAAU;IACV,WAAW;IACX,gBAAgB;IAChB,YAAY;IACZ,iBAAiB;IACjB,wBAAwB;IACxB,sCAAsC;IACtC,0BAA0B;IAC1B,wBAAwB;IACxB,wBAAwB;IACxB,mCAAmC;IACnC,+BAA+B;IAC/B,oCAAoC;CAC9B,CAAC;AA4PX;;;;;GAKG;AACU,QAAA,2BAA2B,GAAG;IACvC,aAAa;IACb,aAAa;IACb,gBAAgB;IAChB,eAAe;IACf,mBAAmB;IACnB,aAAa;IACb,UAAU;IACV,kBAAkB;IAClB,aAAa;IACb,cAAc;IACd,iBAAiB;IACjB,QAAQ;IACR,qBAAqB;IACrB,YAAY;IACZ,aAAa;CACP,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vannizhang/living-atlas-content-validator",
3
- "version": "1.5.19-beta.5",
3
+ "version": "1.5.19-beta.7",
4
4
  "description": "Validation and Scoring rules for curating content in the ArcGIS Living Atlas",
5
5
  "repository": {
6
6
  "type": "git",