@vannizhang/living-atlas-content-validator 1.5.19-beta.6 → 1.5.19-beta.8

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
@@ -39,7 +39,8 @@ import { checkFeatureServiceFieldAliases } from './lib/featureServiceFieldAliase
39
39
  import { checkFeatureServiceFieldValueTypes } from './lib/featureServiceFieldValueTypes/checkFeatureServiceFieldValueTypes';
40
40
  import { fetchFeatureServiceLayersAndTables } from './services/feature-service/fetchFeatureServiceLayersAndTables';
41
41
  import { getRelevantFeatureLayerFields } from './lib/util/getRelevantFeatureLayerFields';
42
- 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, };
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, };
43
44
  export { fetchAdditonalPatterns4TitleAndSnippetSearchability, fetchProfanitiesData, getSubmittedCustomTerms, getMyCustomTerms, addCustomTerms2FeatureTable, updateStatusOfCustomTermsInFeatureTable, getPackagedReviewResults, getReviewedReviewResults, getUnarchivedReviewResults, getDeployedReviewResults, getReviewResultsByTermAndCategory, addReviewResults2FeatureTable, updateReviewResultsInFeatureTable, getCustomTermsFeatureTableItemInfo, getCustomTermsReviewResultsFeatureTableItemInfo, containsProfanity, };
44
45
  export { isValidRegexPattern, escapeSpecialCharacters };
45
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.getDeployedReviewResults = exports.getUnarchivedReviewResults = exports.getReviewedReviewResults = exports.getPackagedReviewResults = exports.updateStatusOfCustomTermsInFeatureTable = exports.addCustomTerms2FeatureTable = exports.getMyCustomTerms = exports.getSubmittedCustomTerms = exports.fetchProfanitiesData = exports.fetchAdditonalPatterns4TitleAndSnippetSearchability = 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 = 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");
@@ -99,4 +99,6 @@ const fetchFeatureServiceLayersAndTables_1 = require("./services/feature-service
99
99
  Object.defineProperty(exports, "fetchFeatureServiceLayersAndTables", { enumerable: true, get: function () { return fetchFeatureServiceLayersAndTables_1.fetchFeatureServiceLayersAndTables; } });
100
100
  const getRelevantFeatureLayerFields_1 = require("./lib/util/getRelevantFeatureLayerFields");
101
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; } });
102
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;AA+GpD,6FA/GK,2BAAY,OA+GL;AA9GhB,+FAA4F;AA+GxF,yGA/GK,mDAAwB,OA+GL;AA9G5B,6EAA0E;AA+GtE,mGA/GK,uCAAkB,OA+GL;AA9GtB,yEAAyE;AACzE,6EAA0E;AA+GtE,mGA/GK,uCAAkB,OA+GL;AA9GtB,+DAA4D;AA+GxD,8FA/GK,6BAAa,OA+GL;AA9GjB,qDAAkD;AA+G9C,2FA/GK,uBAAU,OA+GL;AA9Gd,iEAA8D;AA+G1D,+FA/GK,+BAAc,OA+GL;AA9GlB,wDAAqD;AA+GjD,4FA/GK,yBAAW,OA+GL;AA9Gf,uEAAoE;AA+GhE,iGA/GK,mCAAgB,OA+GL;AA9GpB,8GAA2G;AA+GvG,8GA/GK,6DAA6B,OA+GL;AA9GjC,yFAAsF;AA+GlF,uGA/GK,+CAAsB,OA+GL;AA9G1B,wGAAqG;AA+GjG,4GA/GK,yDAA2B,OA+GL;AA9G/B,gEAA6D;AA+GzD,6FA/GK,2BAAY,OA+GL;AA9GhB,sDAAmD;AA+F/C,yFA/FK,mBAAQ,OA+FL;AA9FZ,gGAA6F,CAAC,kCAAkC;AA8G5H,0GA9GK,qDAAyB,OA8GL;AA7G7B,0EAA0E;AAC1E,iIAA8H;AA6G1H,kHA7GK,qEAAiC,OA6GL;AA5GrC,iGAImE;AAyG/D,kGA5GA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,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"}
@@ -172,33 +172,33 @@
172
172
  "ADD_TOPIC_INFO": "Add topic to communicate what this item is about."
173
173
  },
174
174
  "featureLayerFieldAliases": {
175
- "GUIDANCE_DEFAULT": "Field aliases are the names of the fields in your feature layer.",
176
- "SCORING_MSG_DEFAULT": "Points are awarded for having at least 80% of the field aliases in your feature layer.",
175
+ "GUIDANCE_DEFAULT": "Field aliases are the user-friendly, human-readable names of the fields in your feature service.",
176
+ "SCORING_MSG_DEFAULT": "Points are awarded if 80% or more of the fields in each feature layer of the feature service have aliases defined.",
177
177
  "LABEL": "Improve Field Aliases",
178
178
  "TITLE": "Check Field Aliases",
179
- "ADD_FIELD_ALIAS": "Add field aliases to your feature layer",
180
- "IMPROVE_FIELD_ALIAS": "Improve field aliases in your feature layer",
181
- "NO_FEATURE_LAYER": "This feature service does not have any feature layer or non-spatial table",
182
- "NO_RELEVANT_FIELD": "This feature service does not have any relevant fields (non-system generated) to validate"
179
+ "ADD_FIELD_ALIAS": "Add field aliases to your feature service.",
180
+ "IMPROVE_FIELD_ALIAS": "Improve field aliases in your feature service.",
181
+ "NO_FEATURE_LAYER": "This feature service does not have any feature layer or non-spatial table.",
182
+ "NO_RELEVANT_FIELD": "This feature service does not have any relevant fields (non-system generated) to validate."
183
183
  },
184
184
  "featureLayerFieldTypes": {
185
185
  "GUIDANCE_DEFAULT": "Field types are the data types of the fields in your feature layer.",
186
- "SCORING_MSG_DEFAULT": "Points are awarded for having at least 80% of the field types in your feature layer.",
187
- "LABEL": "Improve Field Types",
188
- "TITLE": "Check Field Types",
189
- "ADD_FIELD_TYPE": "Add field types to your feature layer",
190
- "IMRPOVE_FIELD_TYPE": "Improve field types in your feature layer",
191
- "NO_FEATURE_LAYER": "This feature service does not have any feature layer or non-spatial table",
192
- "NO_RELEVANT_FIELD": "This feature service does not have any relevant fields (non-system generated) to validate"
186
+ "SCORING_MSG_DEFAULT": "Points are awarded if 80% or more of the fields in each feature layer of the feature service have value types defined.",
187
+ "LABEL": "Improve Field Value Types",
188
+ "TITLE": "Check Field Value Types",
189
+ "ADD_FIELD_TYPE": "Add field types to your feature service.",
190
+ "IMRPOVE_FIELD_TYPE": "Improve field types in your feature service.",
191
+ "NO_FEATURE_LAYER": "This feature service does not have any feature layer or non-spatial table.",
192
+ "NO_RELEVANT_FIELD": "This feature service does not have any relevant fields (non-system generated) to validate."
193
193
  },
194
194
  "featureLayerFieldDescriptions": {
195
- "GUIDANCE_DEFAULT": "Field descriptions are the descriptions of the fields in your feature layer. ",
196
- "SCORING_MSG_DEFAULT": "Points are awarded for having at least 80% of the field descriptions in your feature layer.",
195
+ "GUIDANCE_DEFAULT": "Field descriptions are the descriptions of the fields in your feature service.",
196
+ "SCORING_MSG_DEFAULT": "Points are awarded if 80% or more of the fields in each feature layer of the feature service have description defined.",
197
197
  "LABEL": "Improve Field Descriptions",
198
198
  "TITLE": "Check Field Descriptions",
199
- "ADD_FIELD_DESCRIPTION": "Add field descriptions to your feature layer",
200
- "IMRPOVE_FIELD_DESCRIPTION": "Improve field descriptions in your feature layer",
201
- "NO_FEATURE_LAYER": "This feature service does not have any feature layer or non-spatial table",
202
- "NO_RELEVANT_FIELD": "This feature service does not have any relevant fields (non-system generated) to validate"
199
+ "ADD_FIELD_DESCRIPTION": "Add field descriptions to your feature service.",
200
+ "IMRPOVE_FIELD_DESCRIPTION": "Improve field descriptions in your feature service.",
201
+ "NO_FEATURE_LAYER": "This feature service does not have any feature layer or non-spatial table.",
202
+ "NO_RELEVANT_FIELD": "This feature service does not have any relevant fields (non-system generated) to validate."
203
203
  }
204
204
  }
@@ -1 +1 @@
1
- {"lastCompiledTime":1747936362779}
1
+ {"lastCompiledTime":1748449412805}
@@ -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.6",
3
+ "version": "1.5.19-beta.8",
4
4
  "description": "Validation and Scoring rules for curating content in the ArcGIS Living Atlas",
5
5
  "repository": {
6
6
  "type": "git",