@vannizhang/living-atlas-content-validator 1.0.1 → 1.2.0
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 +2 -2
- package/dist/lib/accessInformation/isValidAccessInformation.js +15 -13
- package/dist/lib/accessInformation/isValidAccessInformation.js.map +1 -1
- package/dist/lib/accessInformation/scoringConfig.d.ts +8 -0
- package/dist/lib/accessInformation/scoringConfig.js +16 -0
- package/dist/lib/accessInformation/scoringConfig.js.map +1 -0
- package/dist/lib/accessInformation/scoringRulesConfig.d.ts +0 -3
- package/dist/lib/accessInformation/scoringRulesConfig.js +35 -36
- package/dist/lib/accessInformation/scoringRulesConfig.js.map +1 -1
- package/dist/lib/description/isValidDescription.js +26 -15
- package/dist/lib/description/isValidDescription.js.map +1 -1
- package/dist/lib/description/scoringConfig.d.ts +15 -0
- package/dist/lib/description/scoringConfig.js +20 -0
- package/dist/lib/description/scoringConfig.js.map +1 -0
- package/dist/lib/description/scoringRulesConfig.d.ts +0 -3
- package/dist/lib/description/scoringRulesConfig.js +47 -48
- package/dist/lib/description/scoringRulesConfig.js.map +1 -1
- package/dist/lib/layers/isValidLayerCount.js +79 -58
- package/dist/lib/layers/isValidLayerCount.js.map +1 -1
- package/dist/lib/layers/scoringConfig.d.ts +10 -0
- package/dist/lib/layers/scoringConfig.js +20 -0
- package/dist/lib/layers/scoringConfig.js.map +1 -0
- package/dist/lib/layers/scoringRulesConfig.d.ts +0 -3
- package/dist/lib/layers/scoringRulesConfig.js +47 -48
- package/dist/lib/layers/scoringRulesConfig.js.map +1 -1
- package/dist/lib/licenseInfo/isValidLicenseInfo.d.ts +0 -2
- package/dist/lib/licenseInfo/isValidLicenseInfo.js +22 -16
- package/dist/lib/licenseInfo/isValidLicenseInfo.js.map +1 -1
- package/dist/lib/licenseInfo/scoringConfig.d.ts +15 -0
- package/dist/lib/licenseInfo/scoringConfig.js +20 -0
- package/dist/lib/licenseInfo/scoringConfig.js.map +1 -0
- package/dist/lib/licenseInfo/scoringRulesConfig.d.ts +0 -3
- package/dist/lib/licenseInfo/scoringRulesConfig.js +47 -48
- package/dist/lib/licenseInfo/scoringRulesConfig.js.map +1 -1
- package/dist/lib/sharing/isValidAccess.js +7 -13
- package/dist/lib/sharing/isValidAccess.js.map +1 -1
- package/dist/lib/sharing/scoringConfig.d.ts +8 -0
- package/dist/lib/sharing/scoringConfig.js +13 -0
- package/dist/lib/sharing/scoringConfig.js.map +1 -0
- package/dist/lib/sharing/scoringRulesConfig.d.ts +0 -3
- package/dist/lib/sharing/scoringRulesConfig.js +47 -48
- package/dist/lib/sharing/scoringRulesConfig.js.map +1 -1
- package/dist/lib/ssl/isValidSSL.js +12 -13
- package/dist/lib/ssl/isValidSSL.js.map +1 -1
- package/dist/lib/ssl/scoringConfig.d.ts +8 -0
- package/dist/lib/ssl/scoringConfig.js +16 -0
- package/dist/lib/ssl/scoringConfig.js.map +1 -0
- package/dist/lib/ssl/scoringRulesConfig.d.ts +0 -3
- package/dist/lib/ssl/scoringRulesConfig.js +41 -42
- package/dist/lib/ssl/scoringRulesConfig.js.map +1 -1
- package/dist/lib/summary/isValidSummary.js +37 -24
- package/dist/lib/summary/isValidSummary.js.map +1 -1
- package/dist/lib/summary/scoringConfig.d.ts +17 -0
- package/dist/lib/summary/scoringConfig.js +22 -0
- package/dist/lib/summary/scoringConfig.js.map +1 -0
- package/dist/lib/summary/scoringRulesConfig.d.ts +0 -3
- package/dist/lib/summary/scoringRulesConfig.js +53 -54
- package/dist/lib/summary/scoringRulesConfig.js.map +1 -1
- package/dist/lib/tags/isValidTags.js +16 -15
- package/dist/lib/tags/isValidTags.js.map +1 -1
- package/dist/lib/tags/scoringConfig.d.ts +9 -0
- package/dist/lib/tags/scoringConfig.js +18 -0
- package/dist/lib/tags/scoringConfig.js.map +1 -0
- package/dist/lib/tags/scoringRulesConfig.d.ts +0 -3
- package/dist/lib/tags/scoringRulesConfig.js +41 -42
- package/dist/lib/tags/scoringRulesConfig.js.map +1 -1
- package/dist/lib/thumbnail/isValidThumbnail.js +23 -19
- package/dist/lib/thumbnail/isValidThumbnail.js.map +1 -1
- package/dist/lib/thumbnail/scoringConfig.d.ts +8 -0
- package/dist/lib/thumbnail/scoringConfig.js +21 -0
- package/dist/lib/thumbnail/scoringConfig.js.map +1 -0
- package/dist/lib/thumbnail/scoringRulesConfig.d.ts +0 -3
- package/dist/lib/thumbnail/scoringRulesConfig.js +41 -42
- package/dist/lib/thumbnail/scoringRulesConfig.js.map +1 -1
- package/dist/lib/title/isValidTitle.js +37 -25
- package/dist/lib/title/isValidTitle.js.map +1 -1
- package/dist/lib/title/scoringConfig.d.ts +17 -0
- package/dist/lib/title/scoringConfig.js +22 -0
- package/dist/lib/title/scoringConfig.js.map +1 -0
- package/dist/lib/title/scoringRulesConfig.d.ts +0 -3
- package/dist/lib/title/scoringRulesConfig.js +52 -53
- package/dist/lib/title/scoringRulesConfig.js.map +1 -1
- package/dist/lib/userProfileDescription/isValidUserProfileDescription.js +37 -20
- package/dist/lib/userProfileDescription/isValidUserProfileDescription.js.map +1 -1
- package/dist/lib/userProfileDescription/scoringConfig.d.ts +19 -0
- package/dist/lib/userProfileDescription/scoringConfig.js +24 -0
- package/dist/lib/userProfileDescription/scoringConfig.js.map +1 -0
- package/dist/lib/userProfileDescription/scoringRulesConfig.d.ts +0 -3
- package/dist/lib/userProfileDescription/scoringRulesConfig.js +59 -60
- package/dist/lib/userProfileDescription/scoringRulesConfig.js.map +1 -1
- package/dist/lib/userProfileName/isValidUserProfileName.js +17 -13
- package/dist/lib/userProfileName/isValidUserProfileName.js.map +1 -1
- package/dist/lib/userProfileName/scoringConfig.d.ts +9 -0
- package/dist/lib/userProfileName/scoringConfig.js +18 -0
- package/dist/lib/userProfileName/scoringConfig.js.map +1 -0
- package/dist/lib/userProfileName/scoringRulesConfig.d.ts +0 -3
- package/dist/lib/userProfileName/scoringRulesConfig.js +41 -42
- package/dist/lib/userProfileName/scoringRulesConfig.js.map +1 -1
- package/dist/lib/userProfileThumbnail/isValidUserProfileThumbnail.d.ts +1 -0
- package/dist/lib/userProfileThumbnail/isValidUserProfileThumbnail.js +12 -14
- package/dist/lib/userProfileThumbnail/isValidUserProfileThumbnail.js.map +1 -1
- package/dist/lib/userProfileThumbnail/scoringConfig.d.ts +8 -0
- package/dist/lib/userProfileThumbnail/scoringConfig.js +16 -0
- package/dist/lib/userProfileThumbnail/scoringConfig.js.map +1 -0
- package/dist/lib/userProfileThumbnail/scoringRulesConfig.d.ts +0 -3
- package/dist/lib/userProfileThumbnail/scoringRulesConfig.js +35 -36
- package/dist/lib/userProfileThumbnail/scoringRulesConfig.js.map +1 -1
- package/dist/lib/util/{getNumberOfStrings.d.ts → getNumberOfWords.d.ts} +1 -1
- package/dist/lib/util/{getNumberOfStrings.js → getNumberOfWords.js} +10 -4
- package/dist/lib/util/getNumberOfWords.js.map +1 -0
- package/dist/lib/util/getScoringRules.d.ts +1 -8
- package/dist/lib/util/getScoringRules.js +82 -76
- package/dist/lib/util/getScoringRules.js.map +1 -1
- package/dist/lib/util/isLatin.d.ts +6 -0
- package/dist/lib/util/isLatin.js +13 -0
- package/dist/lib/util/isLatin.js.map +1 -0
- package/dist/lib/util/round.d.ts +1 -0
- package/dist/lib/util/round.js +14 -0
- package/dist/lib/util/round.js.map +1 -0
- package/dist/lib/validate/validate.js +79 -24
- package/dist/lib/validate/validate.js.map +1 -1
- package/dist/locale/de.json +13 -26
- package/dist/locale/en.json +13 -26
- package/dist/locale/es.json +13 -26
- package/dist/locale/fr.json +13 -26
- package/dist/locale/ja.json +13 -26
- package/dist/locale/pt-br.json +13 -26
- package/dist/types/index.d.ts +27 -19
- package/dist/types/index.js +54 -0
- package/dist/types/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/lib/util/getNumberOfStrings.js.map +0 -1
|
@@ -1,33 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
/**
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const itemType2ScoringType
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
3
|
+
exports.getScoringRulesLocale = void 0;
|
|
4
|
+
// /**
|
|
5
|
+
// * Look up table that maps Living Atlas supported item types to the corresponding Scoring Rules Type.
|
|
6
|
+
// */
|
|
7
|
+
// const itemType2ScoringType: Record<
|
|
8
|
+
// LivingAtlasSupportedItemType,
|
|
9
|
+
// ScoringRulesType
|
|
10
|
+
// > = {
|
|
11
|
+
// 'Feature Collection': 'WEB_MAP',
|
|
12
|
+
// 'Feature Service': 'WEB_MAP',
|
|
13
|
+
// 'Image Service': 'WEB_MAP',
|
|
14
|
+
// 'Map Service': 'WEB_MAP',
|
|
15
|
+
// 'Web Map': 'WEB_MAP',
|
|
16
|
+
// 'Vector Tile Service': 'WEB_MAP',
|
|
17
|
+
// 'CityEngine Web Scene': 'WEB_SCENE',
|
|
18
|
+
// 'Deep Learning Package': 'WEB_SCENE',
|
|
19
|
+
// 'Raster function template': 'WEB_SCENE',
|
|
20
|
+
// 'Rule Package': 'WEB_SCENE',
|
|
21
|
+
// 'Scene Service': 'WEB_SCENE',
|
|
22
|
+
// Style: 'WEB_SCENE',
|
|
23
|
+
// 'Desktop Style': 'WEB_SCENE',
|
|
24
|
+
// 'Web Scene': 'WEB_SCENE',
|
|
25
|
+
// Dashboard: 'APPLICATION',
|
|
26
|
+
// 'Document Link': 'APPLICATION',
|
|
27
|
+
// 'Project Package': 'APPLICATION',
|
|
28
|
+
// StoryMap: 'APPLICATION',
|
|
29
|
+
// 'Web Experience': 'APPLICATION',
|
|
30
|
+
// 'Web Experience Template': 'APPLICATION',
|
|
31
|
+
// 'Web Mapping Application': 'APPLICATION',
|
|
32
|
+
// WMS: 'APPLICATION',
|
|
33
|
+
// };
|
|
31
34
|
/**
|
|
32
35
|
* Determines the locale of scoring rules based on the `culture` property of the input item.
|
|
33
36
|
* English and Non-English items are scored using different rules.
|
|
@@ -48,52 +51,55 @@ const getScoringRulesLocale = (item) => {
|
|
|
48
51
|
return 'international';
|
|
49
52
|
};
|
|
50
53
|
exports.getScoringRulesLocale = getScoringRulesLocale;
|
|
51
|
-
/**
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
const getScoringRules = (
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
54
|
+
// /**
|
|
55
|
+
// * Returns the rules that will be used to score the item based on the item type
|
|
56
|
+
// * @param itemType
|
|
57
|
+
// * @param scoringRulesByType
|
|
58
|
+
// * @returns
|
|
59
|
+
// */
|
|
60
|
+
// export const getScoringRules = (
|
|
61
|
+
// item: IItem,
|
|
62
|
+
// scoringRulesConfig: ScoringRulesConfig
|
|
63
|
+
// ): ScoringRules => {
|
|
64
|
+
// const locale = getScoringRulesLocale(item);
|
|
65
|
+
// const { SCORING } = scoringRulesConfig;
|
|
66
|
+
// const scoringRulesData =
|
|
67
|
+
// locale === 'en' ? SCORING.DEFAULT : SCORING.INTERNATIONAL;
|
|
68
|
+
// const itemType = item.type as LivingAtlasSupportedItemType;
|
|
69
|
+
// const scoringRuleType = itemType2ScoringType[itemType];
|
|
70
|
+
// // switch (itemType) {
|
|
71
|
+
// // case 'Feature Collection':
|
|
72
|
+
// // case 'Feature Service':
|
|
73
|
+
// // case 'Image Service':
|
|
74
|
+
// // case 'Map Service':
|
|
75
|
+
// // case 'Web Map':
|
|
76
|
+
// // case 'Vector Tile Service':
|
|
77
|
+
// // scoringRules = scoringRulesData['WEB_MAP'];
|
|
78
|
+
// // break;
|
|
79
|
+
// // case 'CityEngine Web Scene':
|
|
80
|
+
// // case 'Deep Learning Package':
|
|
81
|
+
// // case 'Raster function template':
|
|
82
|
+
// // case 'Rule Package':
|
|
83
|
+
// // case 'Scene Service':
|
|
84
|
+
// // case 'Style':
|
|
85
|
+
// // case 'Desktop Style':
|
|
86
|
+
// // case 'Web Scene':
|
|
87
|
+
// // scoringRules = scoringRulesData['WEB_SCENE'];
|
|
88
|
+
// // break;
|
|
89
|
+
// // case 'Dashboard':
|
|
90
|
+
// // case 'Document Link':
|
|
91
|
+
// // case 'Project Package':
|
|
92
|
+
// // case 'StoryMap':
|
|
93
|
+
// // case 'Web Experience':
|
|
94
|
+
// // case 'Web Experience Template':
|
|
95
|
+
// // case 'Web Mapping Application':
|
|
96
|
+
// // case 'WMS':
|
|
97
|
+
// // scoringRules = scoringRulesData['APPLICATION'];
|
|
98
|
+
// // break;
|
|
99
|
+
// // default:
|
|
100
|
+
// // break;
|
|
101
|
+
// // // code block
|
|
102
|
+
// // }
|
|
103
|
+
// return scoringRulesData[scoringRuleType] || null;
|
|
104
|
+
// };
|
|
99
105
|
//# sourceMappingURL=getScoringRules.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getScoringRules.js","sourceRoot":"","sources":["../../../src/lib/util/getScoringRules.ts"],"names":[],"mappings":";;;AAcA
|
|
1
|
+
{"version":3,"file":"getScoringRules.js","sourceRoot":"","sources":["../../../src/lib/util/getScoringRules.ts"],"names":[],"mappings":";;;AAcA,MAAM;AACN,wGAAwG;AACxG,MAAM;AACN,sCAAsC;AACtC,oCAAoC;AACpC,uBAAuB;AACvB,QAAQ;AACR,uCAAuC;AACvC,oCAAoC;AACpC,kCAAkC;AAClC,gCAAgC;AAChC,4BAA4B;AAC5B,wCAAwC;AACxC,2CAA2C;AAC3C,4CAA4C;AAC5C,+CAA+C;AAC/C,mCAAmC;AACnC,oCAAoC;AACpC,0BAA0B;AAC1B,oCAAoC;AACpC,gCAAgC;AAChC,gCAAgC;AAChC,sCAAsC;AACtC,wCAAwC;AACxC,+BAA+B;AAC/B,uCAAuC;AACvC,gDAAgD;AAChD,gDAAgD;AAChD,0BAA0B;AAC1B,KAAK;AAEL;;;;;;GAMG;AACI,MAAM,qBAAqB,GAAG,CAAC,IAAW,EAAsB,EAAE;IACrE,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,OAAO,IAAI,CAAC;KACf;IAED,MAAM,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAE7C,IACI,UAAU,KAAK,IAAI;QACnB,IAAI,CAAC,OAAO,KAAK,yBAAyB;QAC1C,IAAI,CAAC,OAAO,KAAK,EAAE,EACrB;QACE,OAAO,IAAI,CAAC;KACf;IAED,OAAO,eAAe,CAAC;AAC3B,CAAC,CAAC;AAhBW,QAAA,qBAAqB,yBAgBhC;AAEF,MAAM;AACN,kFAAkF;AAClF,qBAAqB;AACrB,+BAA+B;AAC/B,cAAc;AACd,MAAM;AACN,mCAAmC;AACnC,mBAAmB;AACnB,6CAA6C;AAC7C,uBAAuB;AACvB,kDAAkD;AAElD,8CAA8C;AAE9C,+BAA+B;AAC/B,qEAAqE;AAErE,kEAAkE;AAElE,8DAA8D;AAE9D,6BAA6B;AAC7B,wCAAwC;AACxC,qCAAqC;AACrC,mCAAmC;AACnC,iCAAiC;AACjC,6BAA6B;AAC7B,yCAAyC;AACzC,6DAA6D;AAC7D,wBAAwB;AACxB,0CAA0C;AAC1C,2CAA2C;AAC3C,8CAA8C;AAC9C,kCAAkC;AAClC,mCAAmC;AACnC,2BAA2B;AAC3B,mCAAmC;AACnC,+BAA+B;AAC/B,+DAA+D;AAC/D,wBAAwB;AACxB,+BAA+B;AAC/B,mCAAmC;AACnC,qCAAqC;AACrC,8BAA8B;AAC9B,oCAAoC;AACpC,6CAA6C;AAC7C,6CAA6C;AAC7C,yBAAyB;AACzB,iEAAiE;AACjE,wBAAwB;AACxB,sBAAsB;AACtB,wBAAwB;AACxB,2BAA2B;AAC3B,WAAW;AAEX,wDAAwD;AACxD,KAAK"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isLatin = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Check whether the input string contains any Latin letters
|
|
6
|
+
* @param str
|
|
7
|
+
* @returns returns a boolean value indicating whether the string contains any Latin letters
|
|
8
|
+
*/
|
|
9
|
+
const isLatin = (str) => {
|
|
10
|
+
return /[a-zA-Z]/g.test(str);
|
|
11
|
+
};
|
|
12
|
+
exports.isLatin = isLatin;
|
|
13
|
+
//# sourceMappingURL=isLatin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isLatin.js","sourceRoot":"","sources":["../../../src/lib/util/isLatin.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACI,MAAM,OAAO,GAAG,CAAC,GAAW,EAAW,EAAE;IAC5C,OAAO,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACjC,CAAC,CAAC;AAFW,QAAA,OAAO,WAElB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function round(num: any, decimals?: number): number;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// export const round = (num:number, decimals=0)=>{
|
|
3
|
+
// const factor = Math.pow(10, decimals)
|
|
4
|
+
// return Math.round((num + Number.EPSILON) * factor) / factor;
|
|
5
|
+
// }
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.round = void 0;
|
|
8
|
+
function round(num, decimals = 0) {
|
|
9
|
+
const factor = Math.pow(10, decimals);
|
|
10
|
+
const m = Number((Math.abs(num) * factor).toPrecision(15));
|
|
11
|
+
return (Math.round(m) / factor) * Math.sign(num);
|
|
12
|
+
}
|
|
13
|
+
exports.round = round;
|
|
14
|
+
//# sourceMappingURL=round.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"round.js","sourceRoot":"","sources":["../../../src/lib/util/round.ts"],"names":[],"mappings":";AAAA,mDAAmD;AACnD,4CAA4C;AAC5C,mEAAmE;AACnE,IAAI;;;AAEJ,SAAgB,KAAK,CAAC,GAAG,EAAE,QAAQ,GAAG,CAAC;IACnC,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC;IACtC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC,CAAC;IAC3D,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACrD,CAAC;AAJD,sBAIC"}
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.validate = void 0;
|
|
4
4
|
const __1 = require("../../");
|
|
5
5
|
const config_1 = require("../config");
|
|
6
|
+
const round_1 = require("../util/round");
|
|
6
7
|
/**
|
|
7
8
|
* Validate a single item and the item owner's user profile in ArcGIS Online.
|
|
8
9
|
*
|
|
@@ -18,27 +19,69 @@ const validate = (item, userProfile) => {
|
|
|
18
19
|
if (config_1.LIVING_ATLAS_SUPPORTED_ITEM_TYPES.includes(type) === false) {
|
|
19
20
|
return null;
|
|
20
21
|
}
|
|
22
|
+
const access = (0, __1.isValidAccess)(item);
|
|
23
|
+
const accessInformation = (0, __1.isValidAccessInformation)(item);
|
|
24
|
+
const description = (0, __1.isValidDescription)(item);
|
|
25
|
+
const layerCount = (0, __1.isValidLayerCount)(item);
|
|
26
|
+
const licenseInfo = (0, __1.isValidLicenseInfo)(item);
|
|
27
|
+
const snippet = (0, __1.isValidSummary)(item);
|
|
28
|
+
const ssl = (0, __1.isValidSSL)(item);
|
|
29
|
+
const tags = (0, __1.isValidTags)(item);
|
|
30
|
+
const thumbnail = (0, __1.isValidThumbnail)(item);
|
|
31
|
+
const title = (0, __1.isValidTitle)(item);
|
|
32
|
+
const userProfileDescription = (0, __1.isValidUserProfileDescription)(userProfile, item);
|
|
33
|
+
const userProfileFullName = (0, __1.isValidUserProfileName)(userProfile, item);
|
|
34
|
+
const userProfileThumbnail = (0, __1.isValidUserProfileThumbnail)(userProfile, item);
|
|
35
|
+
assignFinalScores([
|
|
36
|
+
access,
|
|
37
|
+
accessInformation,
|
|
38
|
+
description,
|
|
39
|
+
layerCount,
|
|
40
|
+
licenseInfo,
|
|
41
|
+
snippet,
|
|
42
|
+
ssl,
|
|
43
|
+
tags,
|
|
44
|
+
thumbnail,
|
|
45
|
+
title,
|
|
46
|
+
userProfileDescription,
|
|
47
|
+
userProfileFullName,
|
|
48
|
+
userProfileThumbnail,
|
|
49
|
+
]);
|
|
21
50
|
const validationResult = {
|
|
22
51
|
validatedItem: {
|
|
23
|
-
access
|
|
24
|
-
accessInformation
|
|
25
|
-
description
|
|
26
|
-
layerCount
|
|
27
|
-
licenseInfo
|
|
28
|
-
snippet
|
|
29
|
-
ssl
|
|
30
|
-
tags
|
|
31
|
-
thumbnail
|
|
32
|
-
title
|
|
52
|
+
access,
|
|
53
|
+
accessInformation,
|
|
54
|
+
description,
|
|
55
|
+
layerCount,
|
|
56
|
+
licenseInfo,
|
|
57
|
+
snippet,
|
|
58
|
+
ssl,
|
|
59
|
+
tags,
|
|
60
|
+
thumbnail,
|
|
61
|
+
title,
|
|
33
62
|
},
|
|
34
63
|
validatedProfile: {
|
|
35
|
-
userProfileDescription
|
|
36
|
-
userProfileFullName
|
|
37
|
-
userProfileThumbnail
|
|
64
|
+
userProfileDescription,
|
|
65
|
+
userProfileFullName,
|
|
66
|
+
userProfileThumbnail,
|
|
38
67
|
},
|
|
39
68
|
id: item.id,
|
|
69
|
+
totalScore: getTotalScore([
|
|
70
|
+
access,
|
|
71
|
+
accessInformation,
|
|
72
|
+
description,
|
|
73
|
+
layerCount,
|
|
74
|
+
licenseInfo,
|
|
75
|
+
snippet,
|
|
76
|
+
ssl,
|
|
77
|
+
tags,
|
|
78
|
+
thumbnail,
|
|
79
|
+
title,
|
|
80
|
+
userProfileDescription,
|
|
81
|
+
userProfileFullName,
|
|
82
|
+
userProfileThumbnail,
|
|
83
|
+
]),
|
|
40
84
|
};
|
|
41
|
-
validationResult.totalScore = getTotalScore(validationResult);
|
|
42
85
|
return validationResult;
|
|
43
86
|
};
|
|
44
87
|
exports.validate = validate;
|
|
@@ -47,16 +90,28 @@ exports.validate = validate;
|
|
|
47
90
|
* @param validationResult
|
|
48
91
|
* @returns total score
|
|
49
92
|
*/
|
|
50
|
-
const getTotalScore = (
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
93
|
+
const getTotalScore = (validationResults) => {
|
|
94
|
+
const totalScore = validationResults.reduce((prev, curr) => prev + curr.score, 0);
|
|
95
|
+
return (0, round_1.round)(totalScore);
|
|
96
|
+
};
|
|
97
|
+
/**
|
|
98
|
+
* This function calculates the maximum score and actual score for each validation result.
|
|
99
|
+
* @param validationResults An array of objects representing validation results.
|
|
100
|
+
* @returns void
|
|
101
|
+
*/
|
|
102
|
+
const assignFinalScores = (validationResults) => {
|
|
103
|
+
// Calculate the sum of weights from all validation rules that can be applied to the input item.
|
|
104
|
+
const totalWeight = validationResults.reduce((prev, curr) => prev + curr.weight, 0);
|
|
105
|
+
// Calculate the score associated with each weight.
|
|
106
|
+
const scorePerWeight = 100 / totalWeight;
|
|
107
|
+
for (const validationResult of validationResults) {
|
|
108
|
+
const { weight, weightFactor } = validationResult;
|
|
109
|
+
// Calculate the maximum score and actual score based on the weight.
|
|
110
|
+
const maxScore = weight * scorePerWeight;
|
|
111
|
+
const score = weightFactor * maxScore;
|
|
112
|
+
// Assign the calculated values to the validation result object.
|
|
113
|
+
validationResult.maxScore = maxScore;
|
|
114
|
+
validationResult.score = score;
|
|
59
115
|
}
|
|
60
|
-
return totalScore;
|
|
61
116
|
};
|
|
62
117
|
//# sourceMappingURL=validate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate.js","sourceRoot":"","sources":["../../../src/lib/validate/validate.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"validate.js","sourceRoot":"","sources":["../../../src/lib/validate/validate.ts"],"names":[],"mappings":"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"}
|
package/dist/locale/de.json
CHANGED
|
@@ -6,8 +6,7 @@
|
|
|
6
6
|
"TOOLTIP_SCORING_MSG_INTL": "",
|
|
7
7
|
"LABEL": "Quellennachweise hinzufügen",
|
|
8
8
|
"EMPTY_STRING_MESSAGE": "Quellennachweise hinzufügen",
|
|
9
|
-
"MINIMUM_WORD_COUNT_MESSAGE": ""
|
|
10
|
-
"WEIGHT": 7
|
|
9
|
+
"MINIMUM_WORD_COUNT_MESSAGE": ""
|
|
11
10
|
},
|
|
12
11
|
"description": {
|
|
13
12
|
"TOOLTIP_GUIDANCE_DEFAULT": "Eine gute Beschreibung beantwortet die Frage \"Was ist das?\" und \"Was zeigt dieser Layer/diese Karte/diese App an?\" direkt. Einige kurze Absätze sind in der Regel ausreichend, um grundlegende Fragen wie \"wer, was, wann, wo, warum und wie\" (natürlich nicht unbedingt in dieser Reihenfolge) zu beantworten. Vermeiden Sie spezielle Fachbegriffe oder Abkürzungen. Stellen Sie Quellinformationen und detaillierte Erläuterungen über Web-Links bereit.<br/><br/>Nutzen Sie beim Hinzufügen von Hyperlinks den Link-Editor in ArcGIS Online.",
|
|
@@ -17,8 +16,7 @@
|
|
|
17
16
|
"LABEL": "Beschreibung verbessern",
|
|
18
17
|
"EMPTY_STRING_MESSAGE": "Eine Beschreibung ist erforderlich",
|
|
19
18
|
"MINIMUM_WORD_COUNT_MESSAGE": "Die Beschreibung ist zu kurz",
|
|
20
|
-
"CONTAINS_LINKS_MESSAGE": "Die Beschreibung enthält keine Links"
|
|
21
|
-
"WEIGHT": 3
|
|
19
|
+
"CONTAINS_LINKS_MESSAGE": "Die Beschreibung enthält keine Links"
|
|
22
20
|
},
|
|
23
21
|
"layers": {
|
|
24
22
|
"TOOLTIP_GUIDANCE_DEFAULT": "Für die Erstellung einer übersichtlichen, fokussierten Karte werden im Allgemeinen 1 bis 5 Layer benötigt. Scheinen für ein Element immer noch weitere Layer benötigt zu werden, weist dies in der Regel daraufhin, dass das Informationsprodukt vom Ersteller noch nicht ausreichend durchdacht wurde. Es ist somit ein Anzeichen dafür, dass mehr Zeit auf die Planung und Präzisierung des Informationsprodukts verwendet werden muss.",
|
|
@@ -29,8 +27,7 @@
|
|
|
29
27
|
"EMPTY_STRING_MESSAGE": "Es sind keine zu überprüfenden Layer vorhanden. Für diesen Elementtyp muss jedoch mindestens ein Layer vorliegen.",
|
|
30
28
|
"GOOD_MESSAGE": "7 Layer werden überschritten",
|
|
31
29
|
"BETTER_MESSAGE": "Es sind zwischen 4 und 7 Layer vorhanden",
|
|
32
|
-
"BEST_MESSAGE": ""
|
|
33
|
-
"WEIGHT": 5
|
|
30
|
+
"BEST_MESSAGE": ""
|
|
34
31
|
},
|
|
35
32
|
"licenseInfo": {
|
|
36
33
|
"TOOLTIP_GUIDANCE_DEFAULT": "Geben Sie sämtliche Zugriffs- und Nutzungsbeschränkungen an, die seitens Ihrer Organisation oder des Datenanbieters erforderlich sind. <p>Nutzen Sie beim Hinzufügen von Hyperlinks den Link-Editor in ArcGIS Online.</p>",
|
|
@@ -40,8 +37,7 @@
|
|
|
40
37
|
"LABEL": "Zugriffs- und Nutzungsbeschränkungen verbessern",
|
|
41
38
|
"EMPTY_STRING_MESSAGE": "Zugriffs- und Nutzungsbeschränkungen hinzufügen",
|
|
42
39
|
"MINIMUM_WORD_COUNT_MESSAGE": "Zugriffs-/Nutzungsinformationen sind zu kurz",
|
|
43
|
-
"CONTAINS_NO_LINKS_MESSAGE": "Zugriffs-/Nutzungsinformationen enthalten keine Links"
|
|
44
|
-
"WEIGHT": 8
|
|
40
|
+
"CONTAINS_NO_LINKS_MESSAGE": "Zugriffs-/Nutzungsinformationen enthalten keine Links"
|
|
45
41
|
},
|
|
46
42
|
"sharing": {
|
|
47
43
|
"TOOLTIP_GUIDANCE_DEFAULT": "Geben Sie das Element nach der Fertigstellung für die Öffentlichkeit frei, sodass es in den Living Atlas aufgenommen werden kann.",
|
|
@@ -51,8 +47,7 @@
|
|
|
51
47
|
"LABEL": "Muss öffentlich sein",
|
|
52
48
|
"EMPTY_STRING_MESSAGE": "",
|
|
53
49
|
"PRIVATE_MESSAGE": "Muss öffentlich sein",
|
|
54
|
-
"ORG_MESSAGE": "Muss öffentlich sein"
|
|
55
|
-
"WEIGHT": 4
|
|
50
|
+
"ORG_MESSAGE": "Muss öffentlich sein"
|
|
56
51
|
},
|
|
57
52
|
"ssl": {
|
|
58
53
|
"TOOLTIP_GUIDANCE_DEFAULT": "Bei HTTPS handelt es sich um ein Protokoll, das sichere Internettransaktionen zwischen Webbrowsern und Webservern ermöglicht. Für alle URLs Ihrer Layer, Webkarten und Web Mapping-Anwendungen empfiehlt sich die Verwendung von HTTPS. Weitere Informationen zu Sicherheitseinstellungen für Ihre Organisation finden Sie in <a href=\"https://doc.arcgis.com/en/arcgis-online/administer/configure-security.htm\" target=\"_blank\">diesem Artikel</a>.",
|
|
@@ -61,8 +56,7 @@
|
|
|
61
56
|
"TOOLTIP_SCORING_MSG_INTL": "",
|
|
62
57
|
"LABEL": "Verwenden Sie HTTPS in der URL.",
|
|
63
58
|
"IS_SSL_DISABLED_MESSAGE": "Aktualisieren Sie das Element für die Verwendung von HTTPS.",
|
|
64
|
-
"SSL_FAIL_INSTR": "Um HTTPS für Ihren Webbrowser zu aktivieren, müssen Sie ein SSL-Zertifikat installieren. Ist ein vertrauenswürdiges SSL-Zertifikat vorhanden, ist die Verschlüsselung von übermittelten Daten auf dem Webserver möglich. Wenden Sie sich an den Systemadministrator, damit er im IIS-Manager (Internet Information Services Manager) ein SSL-Zertifikat installiert.<br/><br/>Veröffentlichen Sie den Layer nach der Aktivierung von SSL erneut, entfernen Sie den alten Layer aus der Webkarte, fügen Sie der Karte den erneut veröffentlichten Layer hinzu, und speichern Sie sie."
|
|
65
|
-
"WEIGHT": 9
|
|
59
|
+
"SSL_FAIL_INSTR": "Um HTTPS für Ihren Webbrowser zu aktivieren, müssen Sie ein SSL-Zertifikat installieren. Ist ein vertrauenswürdiges SSL-Zertifikat vorhanden, ist die Verschlüsselung von übermittelten Daten auf dem Webserver möglich. Wenden Sie sich an den Systemadministrator, damit er im IIS-Manager (Internet Information Services Manager) ein SSL-Zertifikat installiert.<br/><br/>Veröffentlichen Sie den Layer nach der Aktivierung von SSL erneut, entfernen Sie den alten Layer aus der Webkarte, fügen Sie der Karte den erneut veröffentlichten Layer hinzu, und speichern Sie sie."
|
|
66
60
|
},
|
|
67
61
|
"summary": {
|
|
68
62
|
"TOOLTIP_GUIDANCE_DEFAULT": "Geben Sie mindestens zwei Sätze ein, die eine Antwort auf die Frage <b>Was ist das?</b> darstellen. Bei der Zusammenfassung handelt es sich um eine Kurzversion der unten stehenden vollständigen Beschreibung.",
|
|
@@ -73,8 +67,7 @@
|
|
|
73
67
|
"EMPTY_STRING_MESSAGE": "Die Zusammenfassung ist erforderlich",
|
|
74
68
|
"MINIMUM_WORD_COUNT_MESSAGE": "Die Zusammenfassung ist zu kurz",
|
|
75
69
|
"BLACKLISTED_CHARS_MESSAGE": "Die Zusammenfassung enthält unzulässige Zeichen",
|
|
76
|
-
"BLACKLISTED_WORDS_MESSAGE": "\"Copy\", \"demo\", \"test\" oder \"eval\" werden in der Zusammenfassung verwendet."
|
|
77
|
-
"WEIGHT": 2
|
|
70
|
+
"BLACKLISTED_WORDS_MESSAGE": "\"Copy\", \"demo\", \"test\" oder \"eval\" werden in der Zusammenfassung verwendet."
|
|
78
71
|
},
|
|
79
72
|
"tags": {
|
|
80
73
|
"TOOLTIP_GUIDANCE_DEFAULT": "<p>Klicken Sie auf die Schaltfläche \"Bearbeiten\", um die Tags zu verbessern.</p> Geben Sie mindestens drei Tags ein, die dazu beitragen, dass Ihre Arbeit besser gefunden wird. Im Titel, in der Zusammenfassung oder in der Beschreibung enthaltene Wörter müssen nicht wiederholt werden, da sie bereits in Suchvorgängen verwendet werden. Richten Sie Ihr Augenmerk auf Tags, über die andere Nutzer leichter zu Ihrem Element finden werden. Mithilfe zusätzlicher Tags lässt sich die Frage \"Wie kann dieses Element von anderen Personen gefunden werden, die dessen Titel oder die Branche nicht kennen?\" beantworten. Wenn der Titel Ihrer Karte beispielsweise \"Bevölkerungsdichte\" lautet, können Sie auch Tags wie \"Überbevölkerung\" in Ihrem Element verwenden, da diese über die Bevölkerungsdichte bestimmt wird.",
|
|
@@ -85,8 +78,7 @@
|
|
|
85
78
|
"LABEL": "Tags verbessern",
|
|
86
79
|
"EMPTY_STRING_MESSAGE": "Es muss mindestens ein Tag angegeben werden.",
|
|
87
80
|
"MINIMUM_NUM_TAGS_MESSAGE": "Fügen Sie mindestens drei Tags hinzu.",
|
|
88
|
-
"BLACKLISTED_WORDS_MESSAGE": "\"Copy\", \"demo\", \"test\" oder \"eval\" werden als Tags verwendet."
|
|
89
|
-
"WEIGHT": 6
|
|
81
|
+
"BLACKLISTED_WORDS_MESSAGE": "\"Copy\", \"demo\", \"test\" oder \"eval\" werden als Tags verwendet."
|
|
90
82
|
},
|
|
91
83
|
"thumbnail": {
|
|
92
84
|
"TOOLTIP_GUIDANCE_DEFAULT": "Laden Sie eine ansprechende Miniaturansicht hoch, die den Layer, die Karte oder die App von der besten Seite zeigt. Zoomen Sie auf einen Maßstab, bei dem das Element gut aussieht, und erstellen Sie eine Bildschirmaufnahme. Schneiden Sie anschließend das Bild auf die standardmäßige Bildgröße für Miniaturansichten (600 x 400 Pixel) zu, oder passen Sie die Größe entsprechend an.",
|
|
@@ -97,8 +89,7 @@
|
|
|
97
89
|
"EMPTY_STRING_MESSAGE": "",
|
|
98
90
|
"BAD_THUMBNAIL_ERROR_MESSAGE": "Bei der Miniaturansicht ist ein Formatfehler aufgetreten.",
|
|
99
91
|
"SMALL_THUMBNAIL_FILENAME_ISSUE_MESSAGE": "Miniaturansicht mit benutzerdefinierter Standardgröße ist erforderlich",
|
|
100
|
-
"THUMBNAIL_SIZE_MESSAGE": "Hochauflösende Miniaturansicht ist erforderlich"
|
|
101
|
-
"WEIGHT": 0
|
|
92
|
+
"THUMBNAIL_SIZE_MESSAGE": "Hochauflösende Miniaturansicht ist erforderlich"
|
|
102
93
|
},
|
|
103
94
|
"title": {
|
|
104
95
|
"TOOLTIP_GUIDANCE_DEFAULT": "Geben Sie einen leicht erfassbaren Titel ein, und vermeiden Sie die Verwendung von speziellen Fachbegriffen oder Abkürzungen. Der Titel des Elements soll eine Antwort auf die Frage <b>Was ist das?</b> darstellen.",
|
|
@@ -110,8 +101,7 @@
|
|
|
110
101
|
"STRING_COUNT_MESSAGE": "Der Titel ist zu kurz",
|
|
111
102
|
"UPPER_CASE_MESSAGE": "Der Titel darf nicht vollständig aus Großbuchstaben bestehen",
|
|
112
103
|
"BLACKLISTED_CHARS_MESSAGE": "Der Titel enthält ein unzulässiges Zeichen",
|
|
113
|
-
"BLACKLISTED_WORDS_MESSAGE": "Der Titel enthält ein unzulässiges Wort"
|
|
114
|
-
"WEIGHT": 1
|
|
104
|
+
"BLACKLISTED_WORDS_MESSAGE": "Der Titel enthält ein unzulässiges Wort"
|
|
115
105
|
},
|
|
116
106
|
"userProfileDescription": {
|
|
117
107
|
"TOOLTIP_GUIDANCE_DEFAULT": "Stellen Sie sich selbst, Ihr Team und Ihre Organisation vor, und geben Sie eine E-Mail-Adresse für Kontaktanfragen an. Lesen Sie <a href=\"https://www.esri.com/arcgis-blog/products/arcgis-online/sharing-collaboration/create-a-great-profile/\" target=\"_blank\">diesen Blogbeitrag zu Empfehlungen für Ihr ArcGIS Online-Profil</a>.",
|
|
@@ -124,8 +114,7 @@
|
|
|
124
114
|
"NO_VALID_EMAIL_MESSAGE": "Die Profilbeschreibung enthält keine E-Mail-Adresse",
|
|
125
115
|
"NO_VALID_URL_MESSAGE": "Die Profilbeschreibung enthält keinen Link",
|
|
126
116
|
"MIN_NUM_WORDS_MESSAGE": "Die Profilbeschreibung enthält nicht die Mindestanzahl von Wörtern",
|
|
127
|
-
"MIN_NUM_SENTENCES_MESSAGE": "Die Profilbeschreibung enthält nicht die Mindestanzahl von Sätzen"
|
|
128
|
-
"WEIGHT": 12
|
|
117
|
+
"MIN_NUM_SENTENCES_MESSAGE": "Die Profilbeschreibung enthält nicht die Mindestanzahl von Sätzen"
|
|
129
118
|
},
|
|
130
119
|
"userProfileName": {
|
|
131
120
|
"TOOLTIP_GUIDANCE_DEFAULT": "Geben Sie Ihren Namen ein. Wer ist Ansprechpartner bei etwaigen Fragen? Lesen Sie <a href=\"https://www.esri.com/arcgis-blog/products/arcgis-online/sharing-collaboration/create-a-great-profile/\" target=\"_blank\">diesen Blogbeitrag zu Empfehlungen für Ihr ArcGIS Online-Profil</a>.",
|
|
@@ -134,8 +123,7 @@
|
|
|
134
123
|
"TOOLTIP_SCORING_MSG_INTL": "",
|
|
135
124
|
"LABEL": "Vollständigen Namen des Profils verbessern",
|
|
136
125
|
"EMPTY_STRING_MESSAGE": "Vollständiger Name des Profils entspricht nicht der Mindestlänge",
|
|
137
|
-
"BLACKLISTED_CHARS_MESSAGE": "Vollständiger Name des Profils enthält ein unzulässiges Zeichen"
|
|
138
|
-
"WEIGHT": 11
|
|
126
|
+
"BLACKLISTED_CHARS_MESSAGE": "Vollständiger Name des Profils enthält ein unzulässiges Zeichen"
|
|
139
127
|
},
|
|
140
128
|
"userProfileThumbnail": {
|
|
141
129
|
"TOOLTIP_GUIDANCE_DEFAULT": "Anwender möchten wissen, wer der Urheber einer Karte oder App ist. Geben Sie Ihr Bild oder das Logo Ihrer Organisation zwecks visueller Wiedererkennung frei. Lesen Sie <a href=\"https://www.esri.com/arcgis-blog/products/arcgis-online/sharing-collaboration/create-a-great-profile/\" target=\"_blank\">diesen Blogbeitrag zu Empfehlungen für Ihr ArcGIS Online-Profil</a>.",
|
|
@@ -143,8 +131,7 @@
|
|
|
143
131
|
"TOOLTIP_SCORING_MSG_DEFAULT": "Für ein Bild werden Punkte vergeben, solange es sich nicht um das Standardbild handelt. Es werden Bonuspunkte vergeben, wenn es die erforderlichen Bilddimensionen aufweist.",
|
|
144
132
|
"TOOLTIP_SCORING_MSG_INTL": "",
|
|
145
133
|
"LABEL": "Miniaturansicht des Profils verbessern",
|
|
146
|
-
"EMPTY_STRING_MESSAGE": "Profil enthält keine Miniaturansicht"
|
|
147
|
-
"WEIGHT": 11
|
|
134
|
+
"EMPTY_STRING_MESSAGE": "Profil enthält keine Miniaturansicht"
|
|
148
135
|
},
|
|
149
136
|
"tooltips": {
|
|
150
137
|
"tooltip_section_label_suggestion_label": "Vorschläge",
|