@vannizhang/living-atlas-content-validator 1.5.19-beta.9 → 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.
- package/README.md +416 -209
- package/dist/configureSettings.d.ts +14 -26
- package/dist/configureSettings.js +26 -21
- package/dist/configureSettings.js.map +1 -1
- package/dist/index.d.ts +20 -3
- package/dist/index.js +39 -2
- package/dist/index.js.map +1 -1
- package/dist/lib/accessInformation/isValidAccessInformation.js +1 -0
- package/dist/lib/accessInformation/isValidAccessInformation.js.map +1 -1
- package/dist/lib/checkTitleAndSnippetSearchability/checkTitleAndSnippetSearchability.js +1 -0
- package/dist/lib/checkTitleAndSnippetSearchability/checkTitleAndSnippetSearchability.js.map +1 -1
- package/dist/lib/config.d.ts +6 -1
- package/dist/lib/config.js +43 -1
- package/dist/lib/config.js.map +1 -1
- package/dist/lib/deleteProtection/isDeleteProtectionEnabled.js +1 -0
- package/dist/lib/deleteProtection/isDeleteProtectionEnabled.js.map +1 -1
- package/dist/lib/deprecated/isDeprecated.js +1 -0
- package/dist/lib/deprecated/isDeprecated.js.map +1 -1
- package/dist/lib/description/isValidDescription.js +1 -0
- package/dist/lib/description/isValidDescription.js.map +1 -1
- package/dist/lib/featureServiceCDNSetting/checkFeatureServiceCDNSetting.d.ts +10 -0
- package/dist/lib/featureServiceCDNSetting/checkFeatureServiceCDNSetting.js +52 -0
- package/dist/lib/featureServiceCDNSetting/checkFeatureServiceCDNSetting.js.map +1 -0
- package/dist/lib/featureServiceExportDataSetting/checkFeatureServiceExportSetting.d.ts +8 -0
- package/dist/lib/featureServiceExportDataSetting/checkFeatureServiceExportSetting.js +54 -0
- package/dist/lib/featureServiceExportDataSetting/checkFeatureServiceExportSetting.js.map +1 -0
- package/dist/lib/featureServiceExtents/checkFeatureServiceExtents.d.ts +16 -0
- package/dist/lib/featureServiceExtents/checkFeatureServiceExtents.js +83 -0
- package/dist/lib/featureServiceExtents/checkFeatureServiceExtents.js.map +1 -0
- package/dist/lib/featureServiceExtents/checkFeatureServiceExtentsHelpers.d.ts +17 -0
- package/dist/lib/featureServiceExtents/checkFeatureServiceExtentsHelpers.js +33 -0
- package/dist/lib/featureServiceExtents/checkFeatureServiceExtentsHelpers.js.map +1 -0
- package/dist/lib/featureServiceFieldAliases/checkFeatureServiceFieldAliases.js +18 -13
- package/dist/lib/featureServiceFieldAliases/checkFeatureServiceFieldAliases.js.map +1 -1
- package/dist/lib/featureServiceFieldAliases/helpers.d.ts +19 -0
- package/dist/lib/featureServiceFieldAliases/helpers.js +48 -0
- package/dist/lib/featureServiceFieldAliases/helpers.js.map +1 -0
- package/dist/lib/featureServiceFieldDescriptions/checkFeatureServiceFieldDescriptions.js +31 -15
- package/dist/lib/featureServiceFieldDescriptions/checkFeatureServiceFieldDescriptions.js.map +1 -1
- package/dist/lib/featureServiceFieldDescriptions/helpers.d.ts +20 -0
- package/dist/lib/featureServiceFieldDescriptions/helpers.js +53 -0
- package/dist/lib/featureServiceFieldDescriptions/helpers.js.map +1 -0
- package/dist/lib/featureServiceFieldDescriptions/scoringConfig.js +1 -1
- package/dist/lib/featureServiceFieldIndexes/checkFeatureServiceFieldIndexes.d.ts +10 -0
- package/dist/lib/featureServiceFieldIndexes/checkFeatureServiceFieldIndexes.js +53 -0
- package/dist/lib/featureServiceFieldIndexes/checkFeatureServiceFieldIndexes.js.map +1 -0
- package/dist/lib/featureServiceFieldIndexes/featureServiceFieldIndexesHelpers.d.ts +7 -0
- package/dist/lib/featureServiceFieldIndexes/featureServiceFieldIndexesHelpers.js +27 -0
- package/dist/lib/featureServiceFieldIndexes/featureServiceFieldIndexesHelpers.js.map +1 -0
- package/dist/lib/featureServiceFieldValueTypes/checkFeatureServiceFieldValueTypes.js +19 -15
- package/dist/lib/featureServiceFieldValueTypes/checkFeatureServiceFieldValueTypes.js.map +1 -1
- package/dist/lib/featureServiceFieldValueTypes/helpers.d.ts +16 -0
- package/dist/lib/featureServiceFieldValueTypes/helpers.js +35 -0
- package/dist/lib/featureServiceFieldValueTypes/helpers.js.map +1 -0
- package/dist/lib/featureServiceFieldValueTypes/scoringConfig.js +1 -1
- package/dist/lib/itemExtent/checkItemExtent.d.ts +27 -0
- package/dist/lib/itemExtent/checkItemExtent.js +102 -0
- package/dist/lib/itemExtent/checkItemExtent.js.map +1 -0
- package/dist/lib/itemExtent/checkItemExtentHelpers.d.ts +38 -0
- package/dist/lib/itemExtent/checkItemExtentHelpers.js +132 -0
- package/dist/lib/itemExtent/checkItemExtentHelpers.js.map +1 -0
- package/dist/lib/itemExtent/scoringConfig.d.ts +9 -0
- package/dist/lib/itemExtent/scoringConfig.js +13 -0
- package/dist/lib/itemExtent/scoringConfig.js.map +1 -0
- package/dist/lib/licenseInfo/isValidLicenseInfo.js +1 -0
- package/dist/lib/licenseInfo/isValidLicenseInfo.js.map +1 -1
- package/dist/lib/sharing/isValidAccess.js +1 -0
- package/dist/lib/sharing/isValidAccess.js.map +1 -1
- package/dist/lib/ssl/isValidSSL.js +6 -1
- package/dist/lib/ssl/isValidSSL.js.map +1 -1
- package/dist/lib/summary/isValidSummary.js +1 -0
- package/dist/lib/summary/isValidSummary.js.map +1 -1
- package/dist/lib/tags/isValidTags.js +1 -0
- package/dist/lib/tags/isValidTags.js.map +1 -1
- package/dist/lib/thumbnail/isValidThumbnail.js +1 -0
- package/dist/lib/thumbnail/isValidThumbnail.js.map +1 -1
- package/dist/lib/title/isValidTitle.js +1 -0
- package/dist/lib/title/isValidTitle.js.map +1 -1
- package/dist/lib/userProfileDescription/isValidUserProfileDescription.js +1 -0
- package/dist/lib/userProfileDescription/isValidUserProfileDescription.js.map +1 -1
- package/dist/lib/userProfileName/isValidUserProfileName.js +1 -0
- package/dist/lib/userProfileName/isValidUserProfileName.js.map +1 -1
- package/dist/lib/userProfileThumbnail/isValidUserProfileThumbnail.js +1 -0
- package/dist/lib/userProfileThumbnail/isValidUserProfileThumbnail.js.map +1 -1
- package/dist/lib/util/isFeatureService.d.ts +6 -0
- package/dist/lib/util/isFeatureService.js +21 -1
- package/dist/lib/util/isFeatureService.js.map +1 -1
- package/dist/lib/util/shouldValidateByBetaRules.d.ts +0 -1
- package/dist/lib/util/shouldValidateByBetaRules.js +27 -26
- package/dist/lib/util/shouldValidateByBetaRules.js.map +1 -1
- package/dist/lib/util/stringsConfig.d.ts +5 -1
- package/dist/lib/util/stringsConfig.js +60 -22
- package/dist/lib/util/stringsConfig.js.map +1 -1
- package/dist/lib/validate/validate.d.ts +14 -2
- package/dist/lib/validate/validate.js +28 -1
- package/dist/lib/validate/validate.js.map +1 -1
- package/dist/locale/en.json +50 -10
- package/dist/package-info.json +1 -1
- package/dist/services/feature-service/fetchFeatureServiceAdminJSON.d.ts +14 -0
- package/dist/services/feature-service/fetchFeatureServiceAdminJSON.js +57 -0
- package/dist/services/feature-service/fetchFeatureServiceAdminJSON.js.map +1 -0
- package/dist/services/feature-service/fetchFeatureServiceLayersAndTables.d.ts +11 -6
- package/dist/services/feature-service/fetchFeatureServiceLayersAndTables.js +56 -16
- package/dist/services/feature-service/fetchFeatureServiceLayersAndTables.js.map +1 -1
- package/dist/services/feature-service/fetchFeatureServiceRootJSON.d.ts +16 -0
- package/dist/services/feature-service/fetchFeatureServiceRootJSON.js +84 -0
- package/dist/services/feature-service/fetchFeatureServiceRootJSON.js.map +1 -0
- package/dist/services/feature-service/getFeatureServerURL.d.ts +12 -0
- package/dist/services/feature-service/getFeatureServerURL.js +37 -0
- package/dist/services/feature-service/getFeatureServerURL.js.map +1 -0
- package/dist/types/index.d.ts +180 -2
- package/dist/types/index.js +5 -0
- package/dist/types/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/locale/de.json +0 -204
- package/dist/locale/es.json +0 -204
- package/dist/locale/fr.json +0 -204
- package/dist/locale/ja.json +0 -204
- package/dist/locale/pt-br.json +0 -204
|
@@ -1,24 +1,5 @@
|
|
|
1
1
|
import { ServiceTier } from './services/shared/config';
|
|
2
2
|
type ConfigureSettingsParams = {
|
|
3
|
-
/**
|
|
4
|
-
* The language of the library. Default is 'en'.
|
|
5
|
-
* This setting determines the language used for displaying messages and of the validation results.
|
|
6
|
-
*
|
|
7
|
-
* Here is list of supported languages:
|
|
8
|
-
* - `en`: English
|
|
9
|
-
* - `de`: German
|
|
10
|
-
* - `es`: Spanish
|
|
11
|
-
* - `fr`: French
|
|
12
|
-
* - `ja`: Japanese
|
|
13
|
-
* - `pt-br`: Brazilian Portuguese
|
|
14
|
-
*/
|
|
15
|
-
language: string;
|
|
16
|
-
/**
|
|
17
|
-
* The service tier of the application. It can be either 'dev' or 'prod'.
|
|
18
|
-
* - `dev`: Development tier, pointing to development services on `devext.arcgis.com`.
|
|
19
|
-
* - `prod`: Production tier, pointing to production services on `www.arcgis.com`.
|
|
20
|
-
*/
|
|
21
|
-
serviceTier: ServiceTier;
|
|
22
3
|
/**
|
|
23
4
|
* additional patterns for title and snippet searchability
|
|
24
5
|
*/
|
|
@@ -107,14 +88,21 @@ type ConfigureSettingsParams = {
|
|
|
107
88
|
* This is used to determine if the title or snippet contains any profanities.
|
|
108
89
|
*/
|
|
109
90
|
profanities?: string[];
|
|
91
|
+
/**
|
|
92
|
+
* Specifies the service tier of the application, either `'dev'` or `'prod'`.
|
|
93
|
+
* Some helper modules (not part of the core evaluation logic) depend on this setting.
|
|
94
|
+
* If you're only using the library to evaluate content, you can safely ignore this.
|
|
95
|
+
*
|
|
96
|
+
* - `'dev'`: Development tier; uses services hosted on `devext.arcgis.com`.
|
|
97
|
+
* - `'prod'`: Production tier; uses services hosted on `www.arcgis.com`.
|
|
98
|
+
*/
|
|
99
|
+
serviceTier?: ServiceTier;
|
|
110
100
|
};
|
|
111
101
|
/**
|
|
112
102
|
* Configures the settings for the application.
|
|
113
103
|
*
|
|
114
104
|
* @param {Object} params - The settings parameters.
|
|
115
|
-
* @param {
|
|
116
|
-
* @param {string} params.language - The language to be set for the application.
|
|
117
|
-
* @param {Object} params.additionalPatternsForTitleAndSnippetSearchability - Additional patterns for title and snippet searchability.
|
|
105
|
+
* @param {Object} [params.additionalPatternsForTitleAndSnippetSearchability] - Optional additional patterns for title and snippet searchability.
|
|
118
106
|
* @param {string[]} params.additionalPatternsForTitleAndSnippetSearchability.matchingPatternsLocation - Matching patterns for location.
|
|
119
107
|
* @param {string[]} params.additionalPatternsForTitleAndSnippetSearchability.rejectedPatternsLocation - Rejected patterns for location.
|
|
120
108
|
* @param {string[]} params.additionalPatternsForTitleAndSnippetSearchability.matchingPatternsSource - Matching patterns for source.
|
|
@@ -124,10 +112,10 @@ type ConfigureSettingsParams = {
|
|
|
124
112
|
* @param {string[]} params.additionalPatternsForTitleAndSnippetSearchability.matchingPatternsYearVintage - Matching patterns for year vintage.
|
|
125
113
|
* @param {string[]} params.additionalPatternsForTitleAndSnippetSearchability.rejectedPatternsYearVintage - Rejected patterns for year vintage.
|
|
126
114
|
* @param {boolean} params.additionalPatternsForTitleAndSnippetSearchability.shouldAvoidUsingWordBoundary - Flag to avoid using word boundary.
|
|
127
|
-
* @param {string[]} [params.profanities] -
|
|
115
|
+
* @param {string[]} [params.profanities] - Optional array of profanities to be used for validation.
|
|
116
|
+
* @param {string} [params.serviceTier] - Optional service tier, must be either 'dev' or 'prod'. Defaults to 'prod'.
|
|
128
117
|
*
|
|
129
|
-
* @throws {Error} If the
|
|
130
|
-
* @throws {Error} If the language is not provided.
|
|
118
|
+
* @throws {Error} If the language is not provided or is invalid.
|
|
131
119
|
*/
|
|
132
|
-
export declare const configureSettings: ({
|
|
120
|
+
export declare const configureSettings: ({ additionalPatternsForTitleAndSnippetSearchability, profanities, serviceTier, }: ConfigureSettingsParams) => void;
|
|
133
121
|
export {};
|
|
@@ -3,15 +3,12 @@ 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 {
|
|
13
|
-
* @param {string} params.language - The language to be set for the application.
|
|
14
|
-
* @param {Object} params.additionalPatternsForTitleAndSnippetSearchability - Additional patterns for title and snippet searchability.
|
|
11
|
+
* @param {Object} [params.additionalPatternsForTitleAndSnippetSearchability] - Optional additional patterns for title and snippet searchability.
|
|
15
12
|
* @param {string[]} params.additionalPatternsForTitleAndSnippetSearchability.matchingPatternsLocation - Matching patterns for location.
|
|
16
13
|
* @param {string[]} params.additionalPatternsForTitleAndSnippetSearchability.rejectedPatternsLocation - Rejected patterns for location.
|
|
17
14
|
* @param {string[]} params.additionalPatternsForTitleAndSnippetSearchability.matchingPatternsSource - Matching patterns for source.
|
|
@@ -21,26 +18,34 @@ const config_2 = require("./services/shared/config");
|
|
|
21
18
|
* @param {string[]} params.additionalPatternsForTitleAndSnippetSearchability.matchingPatternsYearVintage - Matching patterns for year vintage.
|
|
22
19
|
* @param {string[]} params.additionalPatternsForTitleAndSnippetSearchability.rejectedPatternsYearVintage - Rejected patterns for year vintage.
|
|
23
20
|
* @param {boolean} params.additionalPatternsForTitleAndSnippetSearchability.shouldAvoidUsingWordBoundary - Flag to avoid using word boundary.
|
|
24
|
-
* @param {string[]} [params.profanities] -
|
|
21
|
+
* @param {string[]} [params.profanities] - Optional array of profanities to be used for validation.
|
|
22
|
+
* @param {string} [params.serviceTier] - Optional service tier, must be either 'dev' or 'prod'. Defaults to 'prod'.
|
|
25
23
|
*
|
|
26
|
-
* @throws {Error} If the
|
|
27
|
-
* @throws {Error} If the language is not provided.
|
|
24
|
+
* @throws {Error} If the language is not provided or is invalid.
|
|
28
25
|
*/
|
|
29
|
-
const configureSettings = ({
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
if (!
|
|
38
|
-
|
|
39
|
-
}
|
|
26
|
+
const configureSettings = ({
|
|
27
|
+
// language = 'en',
|
|
28
|
+
additionalPatternsForTitleAndSnippetSearchability, profanities, serviceTier = 'dev', }) => {
|
|
29
|
+
// if (serviceTier !== 'dev' && serviceTier !== 'prod') {
|
|
30
|
+
// throw new Error(
|
|
31
|
+
// 'Invalid service tier. It must be either "dev" or "prod".'
|
|
32
|
+
// );
|
|
33
|
+
// }
|
|
34
|
+
// if (!language) {
|
|
35
|
+
// throw new Error('Language is required.');
|
|
36
|
+
// }
|
|
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
|
+
// }
|
|
40
45
|
// Set the service tier for the application
|
|
41
|
-
(0, config_2.setServiceTier)(serviceTier);
|
|
42
|
-
// Set the language for the application
|
|
43
|
-
|
|
46
|
+
(0, config_2.setServiceTier)(serviceTier || 'dev');
|
|
47
|
+
// // Set the language for the application
|
|
48
|
+
// setStrings(language);
|
|
44
49
|
const { matchingPatternsLocation, rejectedPatternsLocation, matchingPatternsSource, rejectedPatternsSource, matchingPatternsTopic, rejectedPatternsTopic, matchingPatternsYearVintage, rejectedPatternsYearVintage, shouldAvoidUsingWordBoundary, } = additionalPatternsForTitleAndSnippetSearchability || {};
|
|
45
50
|
// Set additional patterns for title and snippet searchability
|
|
46
51
|
(0, config_1.setAdditionalPatternsForTitleAndSnippetSearchability)({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configureSettings.js","sourceRoot":"","sources":["../src/configureSettings.ts"],"names":[],"mappings":";;;AAAA,8EAAyE;AACzE,2EAAsH;
|
|
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,27 @@ 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
|
+
import { getFeatureServerRootURL } from './services/feature-service/getFeatureServerURL';
|
|
41
|
+
import { getPercentOfValidFieldDescriptions, isValidFieldDescription } from './lib/featureServiceFieldDescriptions/helpers';
|
|
42
|
+
import { getPercentOfValidFieldAliases, isValidFieldAlias } from './lib/featureServiceFieldAliases/helpers';
|
|
43
|
+
import { getPercentFieldsWithValueType, isValidFieldValueType } from './lib/featureServiceFieldValueTypes/helpers';
|
|
40
44
|
import { fetchFeatureServiceLayersAndTables } from './services/feature-service/fetchFeatureServiceLayersAndTables';
|
|
41
45
|
import { getRelevantFeatureLayerFields } from './lib/util/getRelevantFeatureLayerFields';
|
|
42
46
|
import { getFeatureLayerFieldValueTypes } from './lib/util/getFeatureLayerFieldValueTypes';
|
|
43
|
-
|
|
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, };
|
|
44
60
|
export { fetchAdditonalPatterns4TitleAndSnippetSearchability, fetchProfanitiesData, getSubmittedCustomTerms, getMyCustomTerms, addCustomTerms2FeatureTable, updateStatusOfCustomTermsInFeatureTable, getPackagedReviewResults, getReviewedReviewResults, getUnarchivedReviewResults, getDeployedReviewResults, getReviewResultsByTermAndCategory, addReviewResults2FeatureTable, updateReviewResultsInFeatureTable, getCustomTermsFeatureTableItemInfo, getCustomTermsReviewResultsFeatureTableItemInfo, containsProfanity, };
|
|
45
61
|
export { isValidRegexPattern, escapeSpecialCharacters };
|
|
46
|
-
export
|
|
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.
|
|
4
|
-
exports.escapeSpecialCharacters = exports.isValidRegexPattern = exports.containsProfanity = exports.getCustomTermsReviewResultsFeatureTableItemInfo = exports.getCustomTermsFeatureTableItemInfo = exports.updateReviewResultsInFeatureTable = exports.addReviewResults2FeatureTable = exports.getReviewResultsByTermAndCategory = exports.getDeployedReviewResults = 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");
|
|
@@ -95,10 +95,47 @@ const checkFeatureServiceFieldAliases_1 = require("./lib/featureServiceFieldAlia
|
|
|
95
95
|
Object.defineProperty(exports, "checkFeatureServiceFieldAliases", { enumerable: true, get: function () { return checkFeatureServiceFieldAliases_1.checkFeatureServiceFieldAliases; } });
|
|
96
96
|
const checkFeatureServiceFieldValueTypes_1 = require("./lib/featureServiceFieldValueTypes/checkFeatureServiceFieldValueTypes");
|
|
97
97
|
Object.defineProperty(exports, "checkFeatureServiceFieldValueTypes", { enumerable: true, get: function () { return checkFeatureServiceFieldValueTypes_1.checkFeatureServiceFieldValueTypes; } });
|
|
98
|
+
const getFeatureServerURL_1 = require("./services/feature-service/getFeatureServerURL");
|
|
99
|
+
Object.defineProperty(exports, "getFeatureServerRootURL", { enumerable: true, get: function () { return getFeatureServerURL_1.getFeatureServerRootURL; } });
|
|
100
|
+
const helpers_2 = require("./lib/featureServiceFieldDescriptions/helpers");
|
|
101
|
+
Object.defineProperty(exports, "getPercentOfValidFieldDescriptions", { enumerable: true, get: function () { return helpers_2.getPercentOfValidFieldDescriptions; } });
|
|
102
|
+
Object.defineProperty(exports, "isValidFieldDescription", { enumerable: true, get: function () { return helpers_2.isValidFieldDescription; } });
|
|
103
|
+
const helpers_3 = require("./lib/featureServiceFieldAliases/helpers");
|
|
104
|
+
Object.defineProperty(exports, "getPercentOfValidFieldAliases", { enumerable: true, get: function () { return helpers_3.getPercentOfValidFieldAliases; } });
|
|
105
|
+
Object.defineProperty(exports, "isValidFieldAlias", { enumerable: true, get: function () { return helpers_3.isValidFieldAlias; } });
|
|
106
|
+
const helpers_4 = require("./lib/featureServiceFieldValueTypes/helpers");
|
|
107
|
+
Object.defineProperty(exports, "getPercentFieldsWithValueType", { enumerable: true, get: function () { return helpers_4.getPercentFieldsWithValueType; } });
|
|
108
|
+
Object.defineProperty(exports, "isValidFieldValueType", { enumerable: true, get: function () { return helpers_4.isValidFieldValueType; } });
|
|
98
109
|
const fetchFeatureServiceLayersAndTables_1 = require("./services/feature-service/fetchFeatureServiceLayersAndTables");
|
|
99
110
|
Object.defineProperty(exports, "fetchFeatureServiceLayersAndTables", { enumerable: true, get: function () { return fetchFeatureServiceLayersAndTables_1.fetchFeatureServiceLayersAndTables; } });
|
|
100
111
|
const getRelevantFeatureLayerFields_1 = require("./lib/util/getRelevantFeatureLayerFields");
|
|
101
112
|
Object.defineProperty(exports, "getRelevantFeatureLayerFields", { enumerable: true, get: function () { return getRelevantFeatureLayerFields_1.getRelevantFeatureLayerFields; } });
|
|
102
113
|
const getFeatureLayerFieldValueTypes_1 = require("./lib/util/getFeatureLayerFieldValueTypes");
|
|
103
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; } });
|
|
104
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":";;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAmBA,2DAAwD;AAqLpD,6FArLK,2BAAY,OAqLL;AApLhB,+FAA4F;AAqLxF,yGArLK,mDAAwB,OAqLL;AApL5B,6EAA0E;AAqLtE,mGArLK,uCAA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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"}
|
|
@@ -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;
|
|
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;
|
|
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,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,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;AA3IW,QAAA,iCAAiC,qCA2I5C"}
|
package/dist/lib/config.d.ts
CHANGED
|
@@ -9,8 +9,13 @@ export declare const PROHIBITED_LIST: RegExp[];
|
|
|
9
9
|
/**
|
|
10
10
|
* array of item types that are supported by the Living Atlas
|
|
11
11
|
*/
|
|
12
|
-
export declare const LIVING_ATLAS_SUPPORTED_ITEM_TYPES: readonly ["CityEngine Web Scene", "Dashboard", "Deep Learning Package", "Desktop Style", "Document Link", "Feature Collection", "Feature Service", "Image Service", "Map Service", "Project Package", "Raster function template", "Rule Package", "Scene Service", "StoryMap", "Style", "Vector Tile Service", "Web Experience", "Web Experience Template", "Web Map", "Web Mapping Application", "Web Scene", "WMS", "Group Layer"];
|
|
12
|
+
export declare const LIVING_ATLAS_SUPPORTED_ITEM_TYPES: readonly ["CityEngine Web Scene", "Dashboard", "Deep Learning Package", "Desktop Style", "Document Link", "Feature Collection", "Feature Service", "Image Service", "Map Service", "Project Package", "Raster function template", "Rule Package", "Scene Service", "StoryMap", "Style", "Vector Tile Service", "Web Experience", "Web Experience Template", "Web Map", "Web Mapping Application", "Web Scene", "WMS", "Group Layer", "Geoprocessing Sample"];
|
|
13
13
|
/**
|
|
14
14
|
* Type definition for Living Atlas supported item types.
|
|
15
15
|
*/
|
|
16
16
|
export type LivingAtlasSupportedItemType = (typeof LIVING_ATLAS_SUPPORTED_ITEM_TYPES)[number];
|
|
17
|
+
/**
|
|
18
|
+
* Account that are recognized as official Esri accounts.
|
|
19
|
+
* This list is used in the Living Atlas Browse page to query Esri-owned content.
|
|
20
|
+
*/
|
|
21
|
+
export declare const ESRI_OFFICIAL_ACCOUNTS: string[];
|
package/dist/lib/config.js
CHANGED
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
// // CITY_ENGINE: 'City Engine',
|
|
29
29
|
// };
|
|
30
30
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
|
-
exports.LIVING_ATLAS_SUPPORTED_ITEM_TYPES = exports.PROHIBITED_LIST = exports.MINIMUM_SCORE_THRESHHOLD = void 0;
|
|
31
|
+
exports.ESRI_OFFICIAL_ACCOUNTS = exports.LIVING_ATLAS_SUPPORTED_ITEM_TYPES = exports.PROHIBITED_LIST = exports.MINIMUM_SCORE_THRESHHOLD = void 0;
|
|
32
32
|
/**
|
|
33
33
|
* Threshold of the minimum total score
|
|
34
34
|
*/
|
|
@@ -162,6 +162,48 @@ exports.LIVING_ATLAS_SUPPORTED_ITEM_TYPES = [
|
|
|
162
162
|
// * https://www.arcgis.com/home/item.html?id=388cc480a7894f64ae8d42663de32e89
|
|
163
163
|
// */
|
|
164
164
|
// 'Media Layer',
|
|
165
|
+
/**
|
|
166
|
+
* @example
|
|
167
|
+
* https://www.arcgis.com/home/item.html?id=fe221371b77940749ff96e90f2de3d10
|
|
168
|
+
*
|
|
169
|
+
*/
|
|
170
|
+
'Geoprocessing Sample',
|
|
165
171
|
];
|
|
166
172
|
// export default config;
|
|
173
|
+
/**
|
|
174
|
+
* Account that are recognized as official Esri accounts.
|
|
175
|
+
* This list is used in the Living Atlas Browse page to query Esri-owned content.
|
|
176
|
+
*/
|
|
177
|
+
exports.ESRI_OFFICIAL_ACCOUNTS = [
|
|
178
|
+
'esri',
|
|
179
|
+
'esri_Landscape',
|
|
180
|
+
'esri_dm',
|
|
181
|
+
'esri_basemaps',
|
|
182
|
+
'esri_vector',
|
|
183
|
+
'esri_livefeeds',
|
|
184
|
+
'esri_oceans',
|
|
185
|
+
'esri_demographics',
|
|
186
|
+
'esri_observations',
|
|
187
|
+
'esri_landscape2',
|
|
188
|
+
'Esri_GI',
|
|
189
|
+
'esri_livefeeds2',
|
|
190
|
+
'esri_analytics',
|
|
191
|
+
'esri_imagery',
|
|
192
|
+
'Esri_US_Federal_Data',
|
|
193
|
+
'esri_environment',
|
|
194
|
+
'esri_webstyles',
|
|
195
|
+
'esri_atlas',
|
|
196
|
+
'esri_communitymaps',
|
|
197
|
+
'esri_dashboardpub',
|
|
198
|
+
'esri_data_development',
|
|
199
|
+
'esri_ecm',
|
|
200
|
+
'esri_elevation',
|
|
201
|
+
'esri_historical',
|
|
202
|
+
'esri_hydro',
|
|
203
|
+
'esri_policymaps',
|
|
204
|
+
'esri_premium',
|
|
205
|
+
'esri_storymaps',
|
|
206
|
+
'Federal_User_Community',
|
|
207
|
+
'StoryMaps',
|
|
208
|
+
];
|
|
167
209
|
//# sourceMappingURL=config.js.map
|
package/dist/lib/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/lib/config.ts"],"names":[],"mappings":";AAAA,mBAAmB;AACnB,qDAAqD;AACrD,8BAA8B;AAC9B,sCAAsC;AACtC,gDAAgD;AAChD,0CAA0C;AAC1C,sCAAsC;AACtC,kCAAkC;AAClC,0CAA0C;AAC1C,4DAA4D;AAC5D,oCAAoC;AACpC,sDAAsD;AACtD,sCAAsC;AACtC,6BAA6B;AAC7B,sBAAsB;AACtB,sCAAsC;AACtC,kDAAkD;AAClD,wCAAwC;AACxC,0DAA0D;AAC1D,0BAA0B;AAC1B,0DAA0D;AAC1D,8BAA8B;AAC9B,kBAAkB;AAClB,yDAAyD;AACzD,yCAAyC;AACzC,mDAAmD;AACnD,qCAAqC;AACrC,KAAK;;;AAEL;;GAEG;AACU,QAAA,wBAAwB,GAAG,EAAE,CAAC;AAE3C;;GAEG;AACU,QAAA,eAAe,GAAG;IAC3B,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;CACd,CAAC;AAEF;;GAEG;AACU,QAAA,iCAAiC,GAAG;IAC7C;;;OAGG;IACH,sBAAsB;IACtB;;;OAGG;IACH,WAAW;IACX;;;OAGG;IACH,uBAAuB;IACvB;;;OAGG;IACH,eAAe;IACf;;;OAGG;IACH,eAAe;IACf,oBAAoB;IACpB;;;OAGG;IACH,iBAAiB;IACjB;;;OAGG;IACH,eAAe;IACf;;;OAGG;IACH,aAAa;IACb;;;OAGG;IACH,iBAAiB;IACjB;;;OAGG;IACH,0BAA0B;IAC1B;;;OAGG;IACH,cAAc;IACd;;;OAGG;IACH,eAAe;IACf;;;OAGG;IACH,UAAU;IACV;;;OAGG;IACH,OAAO;IACP;;;OAGG;IACH,qBAAqB;IACrB;;;OAGG;IACH,gBAAgB;IAChB;;;OAGG;IACH,yBAAyB;IACzB;;;OAGG;IACH,SAAS;IACT;;;OAGG;IACH,yBAAyB;IACzB;;;OAGG;IACH,WAAW;IACX;;;OAGG;IACH,KAAK;IACL;;;OAGG;IACH,aAAa;IACb,MAAM;IACN,cAAc;IACd,+EAA+E;IAC/E,MAAM;IACN,iBAAiB;
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/lib/config.ts"],"names":[],"mappings":";AAAA,mBAAmB;AACnB,qDAAqD;AACrD,8BAA8B;AAC9B,sCAAsC;AACtC,gDAAgD;AAChD,0CAA0C;AAC1C,sCAAsC;AACtC,kCAAkC;AAClC,0CAA0C;AAC1C,4DAA4D;AAC5D,oCAAoC;AACpC,sDAAsD;AACtD,sCAAsC;AACtC,6BAA6B;AAC7B,sBAAsB;AACtB,sCAAsC;AACtC,kDAAkD;AAClD,wCAAwC;AACxC,0DAA0D;AAC1D,0BAA0B;AAC1B,0DAA0D;AAC1D,8BAA8B;AAC9B,kBAAkB;AAClB,yDAAyD;AACzD,yCAAyC;AACzC,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;IACvB,UAAU;IACV,gBAAgB;IAChB,iBAAiB;IACjB,YAAY;IACZ,iBAAiB;IACjB,cAAc;IACd,gBAAgB;IAChB,wBAAwB;IACxB,WAAW;CACd,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isDeleteProtectionEnabled.js","sourceRoot":"","sources":["../../../src/lib/deleteProtection/isDeleteProtectionEnabled.ts"],"names":[],"mappings":";;;AAGA,yDAAyD;AACzD,mDAAgD;AAEhD;;;;;;;GAOG;AACI,MAAM,yBAAyB,GAAG,CAAC,IAAW,EAAkB,EAAE;IACrE,MAAM,WAAW,GAAY,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,SAAS,MAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;IAErE,MAAM,aAAa,GAAG,IAAA,gCAAgB,GAAE,CAAC;IAEzC,MAAM,OAAO,GAAG,aAAa,CAAC,gBAAgB,CAAC;IAE/C,MAAM,gBAAgB,GAAmB;QACrC,gBAAgB,EAAE,wBAAwB;QAC1C,KAAK,EAAE,OAAO,CAAC,KAAK;QACpB,KAAK,EAAE,OAAO,CAAC,KAAK;QACpB,qFAAqF;QACrF,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,IAAI;
|
|
1
|
+
{"version":3,"file":"isDeleteProtectionEnabled.js","sourceRoot":"","sources":["../../../src/lib/deleteProtection/isDeleteProtectionEnabled.ts"],"names":[],"mappings":";;;AAGA,yDAAyD;AACzD,mDAAgD;AAEhD;;;;;;;GAOG;AACI,MAAM,yBAAyB,GAAG,CAAC,IAAW,EAAkB,EAAE;IACrE,MAAM,WAAW,GAAY,CAAA,IAAI,aAAJ,IAA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C,gBAAgB,CAAC,QAAQ,CAAC,IAAI,CAAC;YAC3B,OAAO,EAAE,OAAO,CAAC,kBAAkB;SACtC,CAAC,CAAC;QAEH,OAAO,gBAAgB,CAAC;IAC5B,CAAC;IAED,gBAAgB,CAAC,aAAa;QAC1B,6BAAa,CAAC,cAAc,CAAC,OAAO,CAAC,qBAAqB,CAAC;IAE/D,OAAO,gBAAgB,CAAC;AAC5B,CAAC,CAAC;AAlCW,QAAA,YAAY,gBAkCvB"}
|
|
@@ -63,6 +63,7 @@ const isValidDescription = (item) => {
|
|
|
63
63
|
// the status will be updated afterward based on the validation result
|
|
64
64
|
status: 'unknown',
|
|
65
65
|
isBinaryCheck: false,
|
|
66
|
+
isAdvisory: false,
|
|
66
67
|
};
|
|
67
68
|
// /**
|
|
68
69
|
// * We should check the Description and see if it contains key words like "Data Source" or similar
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isValidDescription.js","sourceRoot":"","sources":["../../../src/lib/description/isValidDescription.ts"],"names":[],"mappings":";;;;;;AAAA,kEAAyC;AACzC,yDAAyD;AACzD,uDAAoD;AACpD,+DAA4D;AAC5D,6CAA0C;AAC1C,6DAGiC;AAEjC,yDAAyD;AACzD,mDAAgD;AAIhD;;;;;;;;;;;;;;;;GAgBG;AACI,MAAM,kBAAkB,GAAG,CAAC,IAAW,EAAkB,EAAE;IAC9D,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC;IAE7B,8CAA8C;IAC9C,sCAAsC;IAEtC,uBAAuB;IACvB,MAAM,MAAM,GAAG,IAAA,uCAAqB,EAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAEnD,IAAI,cAAc,GAAG,6BAAa,CAAC,cAAc,CAAC,OAAO,CAAC;IAC1D,kBAAkB;IAClB,6CAA6C;IAC7C,oDAAoD;IAEpD,IAAI,MAAM,KAAK,IAAI,EAAE,CAAC;QAClB,+DAA+D;QAC/D,cAAc,GAAG,6BAAa,CAAC,cAAc,CAAC,aAAa,CAAC;IAChE,CAAC;IACD,sBAAsB;IACtB,oDAAoD;IACpD,4DAA4D;IAC5D,IAAI;IAEJ,mBAAmB;IACnB,6DAA6D;IAE7D,MAAM,aAAa,GAAG,IAAA,gCAAgB,GAAE,CAAC;IAEzC,MAAM,gBAAgB,GAAmB;QACrC,gBAAgB,EAAE,kBAAkB;QACpC,KAAK,EAAE,aAAa,CAAC,WAAW,CAAC,KAAK;QACtC,KAAK,EAAE,aAAa,CAAC,WAAW,CAAC,KAAK;QACtC,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;
|
|
1
|
+
{"version":3,"file":"isValidDescription.js","sourceRoot":"","sources":["../../../src/lib/description/isValidDescription.ts"],"names":[],"mappings":";;;;;;AAAA,kEAAyC;AACzC,yDAAyD;AACzD,uDAAoD;AACpD,+DAA4D;AAC5D,6CAA0C;AAC1C,6DAGiC;AAEjC,yDAAyD;AACzD,mDAAgD;AAIhD;;;;;;;;;;;;;;;;GAgBG;AACI,MAAM,kBAAkB,GAAG,CAAC,IAAW,EAAkB,EAAE;IAC9D,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC;IAE7B,8CAA8C;IAC9C,sCAAsC;IAEtC,uBAAuB;IACvB,MAAM,MAAM,GAAG,IAAA,uCAAqB,EAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAEnD,IAAI,cAAc,GAAG,6BAAa,CAAC,cAAc,CAAC,OAAO,CAAC;IAC1D,kBAAkB;IAClB,6CAA6C;IAC7C,oDAAoD;IAEpD,IAAI,MAAM,KAAK,IAAI,EAAE,CAAC;QAClB,+DAA+D;QAC/D,cAAc,GAAG,6BAAa,CAAC,cAAc,CAAC,aAAa,CAAC;IAChE,CAAC;IACD,s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0D;IAC1D,+CAA+C;IAC/C,IAAI,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC;QACjC,gBAAgB,CAAC,QAAQ,CAAC,IAAI,CAAC;YAC3B,uDAAuD;YACvD,OAAO,EAAE,aAAa,CAAC,WAAW,CAAC,sBAAsB;SAC5D,CAAC,CAAC;IACP,CAAC;SAAM,CAAC;QACJ,oDAAoD;QACpD,gBAAgB,CAAC,aAAa,IAAI,cAAc,CAAC,eAAe,CAAC;IACrE,CAAC;IAED,8EAA8E;IAC9E,IAAI,MAAM,KAAK,IAAI,IAAI,IAAA,mCAAgB,EAAC,WAAW,CAAC,IAAI,EAAE,EAAE,CAAC;QACzD,gBAAgB,CAAC,QAAQ,CAAC,IAAI,CAAC;YAC3B,2DAA2D;YAC3D,OAAO,EAAE,aAAa,CAAC,WAAW,CAAC,0BAA0B;SAChE,CAAC,CAAC;IACP,CAAC;SAAM,CAAC;QACJ,sDAAsD;QACtD,gBAAgB,CAAC,aAAa,IAAI,cAAc,CAAC,iBAAiB,CAAC;IACvE,CAAC;IAED,OAAO,gBAAgB,CAAC;AAC5B,CAAC,CAAC;AApGW,QAAA,kBAAkB,sBAoG7B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FeatureServiceAdminJSON, IItem, ValidationInfo } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* Checks if the Feature Service has CDN enabled.
|
|
4
|
+
* @param item - The ArcGIS item to validate
|
|
5
|
+
* @param featureServiceAdminJSON - The admin JSON of the Feature Service
|
|
6
|
+
* @returns A ValidationInfo object containing the validation result
|
|
7
|
+
*
|
|
8
|
+
* @see https://developers.arcgis.com/documentation/portal-and-data-services/data-services/feature-services/cdn-caching/#how-the-cdn-cache-works
|
|
9
|
+
*/
|
|
10
|
+
export declare const checkFeatureServiceCDNSetting: (item: IItem, featureServiceAdminJSON: FeatureServiceAdminJSON) => ValidationInfo;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.checkFeatureServiceCDNSetting = void 0;
|
|
4
|
+
const isFeatureService_1 = require("../util/isFeatureService");
|
|
5
|
+
const stringsConfig_1 = require("../util/stringsConfig");
|
|
6
|
+
/**
|
|
7
|
+
* Checks if the Feature Service has CDN enabled.
|
|
8
|
+
* @param item - The ArcGIS item to validate
|
|
9
|
+
* @param featureServiceAdminJSON - The admin JSON of the Feature Service
|
|
10
|
+
* @returns A ValidationInfo object containing the validation result
|
|
11
|
+
*
|
|
12
|
+
* @see https://developers.arcgis.com/documentation/portal-and-data-services/data-services/feature-services/cdn-caching/#how-the-cdn-cache-works
|
|
13
|
+
*/
|
|
14
|
+
const checkFeatureServiceCDNSetting = (item, featureServiceAdminJSON) => {
|
|
15
|
+
const strings = (0, stringsConfig_1.getStringsConfig)();
|
|
16
|
+
const { LABEL, TITLE, CDN_NOT_ENABLED_MESSAGE } = strings.featureServiceCDNSetting;
|
|
17
|
+
const validationOutput = {
|
|
18
|
+
validationRuleId: 'feature-service-cdn-setting',
|
|
19
|
+
label: LABEL,
|
|
20
|
+
title: TITLE,
|
|
21
|
+
maxScore: 0,
|
|
22
|
+
score: 0,
|
|
23
|
+
messages: [],
|
|
24
|
+
weight: 0,
|
|
25
|
+
scoringFactor: 0,
|
|
26
|
+
status: 'unknown',
|
|
27
|
+
isBinaryCheck: true,
|
|
28
|
+
isAdvisory: true,
|
|
29
|
+
};
|
|
30
|
+
if ((0, isFeatureService_1.isFeatureService)(item) === false) {
|
|
31
|
+
return Object.assign(Object.assign({}, validationOutput), { status: 'not-applicable' });
|
|
32
|
+
}
|
|
33
|
+
// Return early if no admin JSON is provided with the status 'unknown',
|
|
34
|
+
// this happens when validate an item that is not owned by the user
|
|
35
|
+
if (!featureServiceAdminJSON) {
|
|
36
|
+
return validationOutput;
|
|
37
|
+
}
|
|
38
|
+
const { adminServiceInfo } = featureServiceAdminJSON;
|
|
39
|
+
// if cacheMaxAge is not set or is 0, then CDN is not enabled
|
|
40
|
+
// return warning status with message to enable CDN
|
|
41
|
+
if (!(adminServiceInfo === null || adminServiceInfo === void 0 ? void 0 : adminServiceInfo.cacheMaxAge)) {
|
|
42
|
+
validationOutput.messages.push({
|
|
43
|
+
message: CDN_NOT_ENABLED_MESSAGE,
|
|
44
|
+
});
|
|
45
|
+
validationOutput.status = 'warning';
|
|
46
|
+
return validationOutput;
|
|
47
|
+
}
|
|
48
|
+
validationOutput.status = 'pass';
|
|
49
|
+
return validationOutput;
|
|
50
|
+
};
|
|
51
|
+
exports.checkFeatureServiceCDNSetting = checkFeatureServiceCDNSetting;
|
|
52
|
+
//# sourceMappingURL=checkFeatureServiceCDNSetting.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkFeatureServiceCDNSetting.js","sourceRoot":"","sources":["../../../src/lib/featureServiceCDNSetting/checkFeatureServiceCDNSetting.ts"],"names":[],"mappings":";;;AACA,+DAA4D;AAC5D,yDAAyD;AAEzD;;;;;;;GAOG;AACI,MAAM,6BAA6B,GAAG,CACzC,IAAW,EACX,uBAAgD,EAClC,EAAE;IAChB,MAAM,OAAO,GAAG,IAAA,gCAAgB,GAAE,CAAC;IAEnC,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,uBAAuB,EAAE,GAC3C,OAAO,CAAC,wBAAwB,CAAC;IAErC,MAAM,gBAAgB,GAAmB;QACrC,gBAAgB,EAAE,6BAA6B;QAC/C,KAAK,EAAE,KAAK;QACZ,KAAK,EAAE,KAAK;QACZ,QAAQ,EAAE,CAAC;QACX,KAAK,EAAE,CAAC;QACR,QAAQ,EAAE,EAAE;QACZ,MAAM,EAAE,CAAC;QACT,aAAa,EAAE,CAAC;QAChB,MAAM,EAAE,SAAS;QACjB,aAAa,EAAE,IAAI;QACnB,UAAU,EAAE,IAAI;KACnB,CAAC;IAEF,IAAI,IAAA,mCAAgB,EAAC,IAAI,CAAC,KAAK,KAAK,EAAE,CAAC;QACnC,uCACO,gBAAgB,KACnB,MAAM,EAAE,gBAAgB,IAC1B;IACN,CAAC;IAED,uEAAuE;IACvE,mEAAmE;IACnE,IAAI,CAAC,uBAAuB,EAAE,CAAC;QAC3B,OAAO,gBAAgB,CAAC;IAC5B,CAAC;IAED,MAAM,EAAE,gBAAgB,EAAE,GAAG,uBAAuB,CAAC;IAErD,6DAA6D;IAC7D,mDAAmD;IACnD,IAAI,CAAC,CAAA,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,WAAW,CAAA,EAAE,CAAC;QACjC,gBAAgB,CAAC,QAAQ,CAAC,IAAI,CAAC;YAC3B,OAAO,EAAE,uBAAuB;SACnC,CAAC,CAAC;QACH,gBAAgB,CAAC,MAAM,GAAG,SAAS,CAAC;QAEpC,OAAO,gBAAgB,CAAC;IAC5B,CAAC;IAED,gBAAgB,CAAC,MAAM,GAAG,MAAM,CAAC;IACjC,OAAO,gBAAgB,CAAC;AAC5B,CAAC,CAAC;AAnDW,QAAA,6BAA6B,iCAmDxC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FeatureServiceAdminJSON, IItem, ValidationInfo } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* @param item ArcGIS Online item to validate
|
|
5
|
+
* @param featureServiceAdminJSON Feature Service admin JSON
|
|
6
|
+
* @returns ValidationInfo object containing the validation result
|
|
7
|
+
*/
|
|
8
|
+
export declare const checkFeatureServiceExportSetting: (item: IItem, featureServiceAdminJSON: FeatureServiceAdminJSON) => ValidationInfo;
|