@sitevision/api 2025.2.1 → 2025.3.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/package.json +2 -2
- package/server/NodeTypeUtil/index.d.ts +12 -0
- package/server/ResourceLocatorUtil/index.d.ts +7 -0
- package/server/ResourceLocatorUtil/index.js +2 -1
- package/server/SearchUtil/index.d.ts +2 -2
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.NodeTypeUtilConstants/index.d.ts +19 -5
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.NodeTypeUtilConstants/index.js +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sitevision/api",
|
|
3
|
-
"version": "2025.
|
|
3
|
+
"version": "2025.3.1",
|
|
4
4
|
"author": "Sitevision AB",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"access": "public",
|
|
31
31
|
"directory": "dist"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "bbf94aa279c6aa74316f75eab9093a265acf169b"
|
|
34
34
|
}
|
|
@@ -722,6 +722,18 @@ export interface NodeTypeUtil extends NodeTypeUtilConstants {
|
|
|
722
722
|
*/
|
|
723
723
|
SCRIPT_FIELD_TYPE: "sv:scriptField";
|
|
724
724
|
|
|
725
|
+
/**
|
|
726
|
+
* The primary node type name for the semantic index type.
|
|
727
|
+
* @since Sitevision 2025.03.1
|
|
728
|
+
*/
|
|
729
|
+
SEMANTIC_INDEX_TYPE: "sv:semanticIndex";
|
|
730
|
+
|
|
731
|
+
/**
|
|
732
|
+
* The primary node type name for the semantic index repository type.
|
|
733
|
+
* @since Sitevision 2025.03.1
|
|
734
|
+
*/
|
|
735
|
+
SEMANTIC_INDEX_REPOSITORY_TYPE: "sv:semanticIndexRepository";
|
|
736
|
+
|
|
725
737
|
/**
|
|
726
738
|
* The primary node type name for the simple user type.
|
|
727
739
|
* @see #isSimpleUser(Node)
|
|
@@ -488,6 +488,13 @@ export interface ResourceLocatorUtil {
|
|
|
488
488
|
* @since Sitevision 2024.09.2
|
|
489
489
|
*/
|
|
490
490
|
getTargetAudienceRepository(): Node;
|
|
491
|
+
|
|
492
|
+
/**
|
|
493
|
+
* Gets the semantic index repository (sv:semanticIndexRepository) for the site of current node.
|
|
494
|
+
* @return the semantic index repository, or null if indeterminable.
|
|
495
|
+
* @since Sitevision 2025.03.1
|
|
496
|
+
*/
|
|
497
|
+
getSemanticIndexRepository(): Node;
|
|
491
498
|
}
|
|
492
499
|
|
|
493
500
|
declare namespace ResourceLocatorUtil {}
|
|
@@ -51,5 +51,6 @@ var _default = exports["default"] = {
|
|
|
51
51
|
getWorkStatusTemplateRepository: function getWorkStatusTemplateRepository() {},
|
|
52
52
|
getCssRuleRepository: function getCssRuleRepository() {},
|
|
53
53
|
getLlmConfigurationRepository: function getLlmConfigurationRepository() {},
|
|
54
|
-
getTargetAudienceRepository: function getTargetAudienceRepository() {}
|
|
54
|
+
getTargetAudienceRepository: function getTargetAudienceRepository() {},
|
|
55
|
+
getSemanticIndexRepository: function getSemanticIndexRepository() {}
|
|
55
56
|
};
|
|
@@ -74,10 +74,10 @@ export interface SearchUtil {
|
|
|
74
74
|
* out.print("<a href=\"" + hit.getField('uri') + "\" title=\"\">");
|
|
75
75
|
* out.print(hit.getField('title'));
|
|
76
76
|
* out.print("</a>");
|
|
77
|
-
* out.println("<br
|
|
77
|
+
* out.println("<br>");
|
|
78
78
|
* }
|
|
79
79
|
* } else {
|
|
80
|
-
* out.println("No hits for query = '" + result.getQuery() + "'<br
|
|
80
|
+
* out.println("No hits for query = '" + result.getQuery() + "'<br>");
|
|
81
81
|
* }
|
|
82
82
|
* </code></pre>
|
|
83
83
|
*
|
|
@@ -1377,35 +1377,49 @@ export type NodeTypeUtilConstants = {
|
|
|
1377
1377
|
/**
|
|
1378
1378
|
* Get accessor for {@link senselogic.sitevision.api.node.NodeTypeUtil#METADATA_SINGLE_TARGET_AUDIENCE_DEFINITION_TYPE}.
|
|
1379
1379
|
* @return {@link senselogic.sitevision.api.node.NodeTypeUtil#METADATA_SINGLE_TARGET_AUDIENCE_DEFINITION_TYPE}
|
|
1380
|
-
* @since
|
|
1380
|
+
* @since Sitevision 2024.09.2
|
|
1381
1381
|
*/
|
|
1382
1382
|
getMETADATA_SINGLE_TARGET_AUDIENCE_DEFINITION_TYPE(): string;
|
|
1383
1383
|
|
|
1384
1384
|
/**
|
|
1385
1385
|
* Get accessor for {@link senselogic.sitevision.api.node.NodeTypeUtil#METADATA_MULTIPLE_TARGET_AUDIENCE_DEFINITION_TYPE}.
|
|
1386
1386
|
* @return {@link senselogic.sitevision.api.node.NodeTypeUtil#METADATA_MULTIPLE_TARGET_AUDIENCE_DEFINITION_TYPE}
|
|
1387
|
-
* @since
|
|
1387
|
+
* @since Sitevision 2024.09.2
|
|
1388
1388
|
*/
|
|
1389
1389
|
getMETADATA_MULTIPLE_TARGET_AUDIENCE_DEFINITION_TYPE(): string;
|
|
1390
1390
|
|
|
1391
1391
|
/**
|
|
1392
1392
|
* Get accessor for {@link senselogic.sitevision.api.node.NodeTypeUtil#GEOLOCATION_TYPE}.
|
|
1393
1393
|
* @return {@link senselogic.sitevision.api.node.NodeTypeUtil#GEOLOCATION_TYPE}
|
|
1394
|
-
* @since
|
|
1394
|
+
* @since Sitevision 2024.10.1
|
|
1395
1395
|
*/
|
|
1396
1396
|
getGEOLOCATION_TYPE(): string;
|
|
1397
1397
|
|
|
1398
1398
|
/**
|
|
1399
1399
|
* Get accessor for {@link senselogic.sitevision.api.node.NodeTypeUtil#METADATA_GEOLOCATION_DEFINITION_TYPE}.
|
|
1400
1400
|
* @return {@link senselogic.sitevision.api.node.NodeTypeUtil#METADATA_GEOLOCATION_DEFINITION_TYPE}
|
|
1401
|
-
* @since
|
|
1401
|
+
* @since Sitevision 2024.10.1
|
|
1402
1402
|
*/
|
|
1403
1403
|
getMETADATA_GEOLOCATION_DEFINITION_TYPE(): string;
|
|
1404
1404
|
|
|
1405
1405
|
/**
|
|
1406
1406
|
* Get accessor for {@link senselogic.sitevision.api.node.NodeTypeUtil#METADATA_MODULE_DEFINITION_TYPE}.
|
|
1407
1407
|
* @return {@link senselogic.sitevision.api.node.NodeTypeUtil#METADATA_MODULE_DEFINITION_TYPE}
|
|
1408
|
-
* @since
|
|
1408
|
+
* @since Sitevision 2025.01.1
|
|
1409
1409
|
*/
|
|
1410
1410
|
getMETADATA_MODULE_DEFINITION_TYPE(): string;
|
|
1411
|
+
|
|
1412
|
+
/**
|
|
1413
|
+
* Get accessor for {@link senselogic.sitevision.api.node.NodeTypeUtil#SEMANTIC_INDEX_TYPE}.
|
|
1414
|
+
* @return {@link senselogic.sitevision.api.node.NodeTypeUtil#SEMANTIC_INDEX_TYPE}
|
|
1415
|
+
* @since Sitevision 2025.03.1
|
|
1416
|
+
*/
|
|
1417
|
+
getSEMANTIC_INDEX_TYPE(): string;
|
|
1418
|
+
|
|
1419
|
+
/**
|
|
1420
|
+
* Get accessor for {@link senselogic.sitevision.api.node.NodeTypeUtil#SEMANTIC_INDEX_REPOSITORY_TYPE}.
|
|
1421
|
+
* @return {@link senselogic.sitevision.api.node.NodeTypeUtil#SEMANTIC_INDEX_REPOSITORY_TYPE}
|
|
1422
|
+
* @since Sitevision 2025.03.1
|
|
1423
|
+
*/
|
|
1424
|
+
getSEMANTIC_INDEX_REPOSITORY_TYPE(): string;
|
|
1411
1425
|
};
|
|
@@ -208,5 +208,7 @@ var _default = exports["default"] = {
|
|
|
208
208
|
getMETADATA_MULTIPLE_TARGET_AUDIENCE_DEFINITION_TYPE: function getMETADATA_MULTIPLE_TARGET_AUDIENCE_DEFINITION_TYPE() {},
|
|
209
209
|
getGEOLOCATION_TYPE: function getGEOLOCATION_TYPE() {},
|
|
210
210
|
getMETADATA_GEOLOCATION_DEFINITION_TYPE: function getMETADATA_GEOLOCATION_DEFINITION_TYPE() {},
|
|
211
|
-
getMETADATA_MODULE_DEFINITION_TYPE: function getMETADATA_MODULE_DEFINITION_TYPE() {}
|
|
211
|
+
getMETADATA_MODULE_DEFINITION_TYPE: function getMETADATA_MODULE_DEFINITION_TYPE() {},
|
|
212
|
+
getSEMANTIC_INDEX_TYPE: function getSEMANTIC_INDEX_TYPE() {},
|
|
213
|
+
getSEMANTIC_INDEX_REPOSITORY_TYPE: function getSEMANTIC_INDEX_REPOSITORY_TYPE() {}
|
|
212
214
|
};
|