@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 +3 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/lib/util/getFeatureLayerFieldValueTypes.d.ts +10 -0
- package/dist/lib/util/getFeatureLayerFieldValueTypes.js +17 -0
- package/dist/lib/util/getFeatureLayerFieldValueTypes.js.map +1 -0
- package/dist/package-info.json +1 -1
- package/dist/types/index.d.ts +8 -1
- package/dist/types/index.js +24 -1
- package/dist/types/index.js.map +1 -1
- package/package.json +1 -1
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
|
-
|
|
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.
|
|
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;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAiBA,2DAAwD;AAiHpD,6FAjHK,2BAAY,OAiHL;AAhHhB,+FAA4F;AAiHxF,yGAjHK,mDAAwB,OAiHL;AAhH5B,6EAA0E;AAiHtE,mGAjHK,uCAAkB,OAiHL;AAhHtB,yEAAyE;AACzE,6EAA0E;AAiHtE,mGAjHK,uCAAkB,OAiHL;AAhHtB,+DAA4D;AAiHxD,8FAjHK,6BAAa,OAiHL;A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,2DAAwD;AA2DpD,kGA3DK,qCAAiB,OA2DL;AAzDrB,0DAOiC;AAkG7B,wGAvGA,sCAAuB,OAuGA;AACvB,iGAvGA,+BAAgB,OAuGA;AAChB,4GAvGA,0CAA2B,OAuGA;AAC3B,wHAvGA,sDAAuC,OAuGA;AAQvC,mHA9GA,iDAAkC,OA8GA;AAzGtC,iKAGiG;AAyF7F,oIA3FA,yGAAmD,OA2FA;AAlFvD,wFAWgD;AAkF5C,8GA5FA,2DAA6B,OA4FA;AAC7B,kHA5FA,+DAAiC,OA4FA;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"}
|
package/dist/package-info.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"lastCompiledTime":
|
|
1
|
+
{"lastCompiledTime":1747948611066}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -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
|
|
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
|
*
|
package/dist/types/index.js
CHANGED
|
@@ -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
|
package/dist/types/index.js.map
CHANGED
|
@@ -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