@sitevision/api 2.0.0-alpha.1 → 2023.2.1-alpha.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.
Files changed (280) hide show
  1. package/client/requester/index.d.ts +10 -8
  2. package/client/toasts/index.d.ts +7 -5
  3. package/common/app/index.d.ts +45 -46
  4. package/common/events/index.d.ts +30 -31
  5. package/common/i18n/index.d.ts +7 -5
  6. package/common/router/index.d.ts +72 -77
  7. package/common/security/index.d.ts +27 -21
  8. package/index.d.ts +8 -0
  9. package/package.json +1 -1
  10. package/server/AliasUtil/index.d.ts +11 -9
  11. package/server/ArchiveUtil/index.d.ts +43 -41
  12. package/server/ArraysInstance/index.d.ts +1666 -1807
  13. package/server/ArticleUtil/index.d.ts +292 -224
  14. package/server/AuthenticationUtil/index.d.ts +72 -84
  15. package/server/BookmarkUtil/index.d.ts +74 -79
  16. package/server/BuddyIconRenderer/index.d.ts +123 -131
  17. package/server/BuddyIconRenderer.BuddyIconSize/index.d.ts +41 -0
  18. package/server/BuddyIconRenderer.BuddyIconSize/index.js +25 -0
  19. package/server/ClientUtil/index.d.ts +10 -8
  20. package/server/CollaborationFactory/index.d.ts +37 -40
  21. package/server/CollaborationGroupFolderUtil/index.d.ts +28 -26
  22. package/server/CollaborationGroupState/index.d.ts +27 -0
  23. package/server/CollaborationGroupState/index.js +11 -0
  24. package/server/CollaborationGroupTemplateUtil/index.d.ts +46 -48
  25. package/server/CollaborationGroupType/index.d.ts +28 -0
  26. package/server/CollaborationGroupType/index.js +12 -0
  27. package/server/CollaborationGroupUtil/index.d.ts +84 -80
  28. package/server/CollectionsInstance/index.d.ts +641 -704
  29. package/server/ColorUtil/index.d.ts +34 -35
  30. package/server/CompoundAndFilterBuilder/index.d.ts +28 -26
  31. package/server/CompoundComparatorBuilder/index.d.ts +33 -31
  32. package/server/CompoundOrFilterBuilder/index.d.ts +28 -26
  33. package/server/ContentNodeUtil/index.d.ts +34 -32
  34. package/server/CurrencyFactory/index.d.ts +70 -68
  35. package/server/DateUtil/index.d.ts +131 -141
  36. package/server/DecorationUtil/index.d.ts +11 -9
  37. package/server/DeviceUtil/index.d.ts +19 -17
  38. package/server/DimensionMode/index.d.ts +17 -0
  39. package/server/DimensionMode/index.js +12 -0
  40. package/server/DirectoryUtil/index.d.ts +87 -85
  41. package/server/DocType/index.d.ts +30 -0
  42. package/server/DocType/index.js +14 -0
  43. package/server/DocTypeUtil/index.d.ts +127 -133
  44. package/server/EndecUtil/index.d.ts +329 -346
  45. package/server/ExtendedDismaxParserBuilder/index.d.ts +153 -167
  46. package/server/FileIconRenderer/index.d.ts +152 -171
  47. package/server/FileUtil/index.d.ts +272 -298
  48. package/server/FilterBuilder/index.d.ts +39 -37
  49. package/server/FolderUtil/index.d.ts +91 -92
  50. package/server/FontUtil/index.d.ts +34 -35
  51. package/server/FormatterBuilderFactory/index.d.ts +73 -81
  52. package/server/HighlightBuilder/index.d.ts +76 -83
  53. package/server/IconUtil/index.d.ts +25 -23
  54. package/server/ImageLinkRenderer/index.d.ts +35 -33
  55. package/server/ImageRenderer/index.d.ts +340 -376
  56. package/server/ImageUtil/index.d.ts +245 -263
  57. package/server/IndexUtil/index.d.ts +38 -35
  58. package/server/IndexUtil.IndexType/index.d.ts +29 -0
  59. package/server/IndexUtil.IndexType/index.js +13 -0
  60. package/server/IndexingUtil/index.d.ts +67 -45
  61. package/server/InstanceCreatorUtil/index.d.ts +423 -459
  62. package/server/InstanceTypeUtil/index.d.ts +167 -188
  63. package/server/JwtUtil/index.d.ts +129 -127
  64. package/server/LandingPageUtil/index.d.ts +82 -85
  65. package/server/LandingPageUtil/index.js +1 -0
  66. package/server/LinkPageUtil/index.d.ts +294 -248
  67. package/server/LinkRenderer/index.d.ts +649 -713
  68. package/server/LinkTargetBuilder/index.d.ts +65 -73
  69. package/server/LinkValueBuilder/index.d.ts +66 -73
  70. package/server/ListWrapper/index.d.ts +80 -89
  71. package/server/LocaleUtil/index.d.ts +381 -393
  72. package/server/LogUtil/index.d.ts +118 -127
  73. package/server/MailBuilder/index.d.ts +106 -121
  74. package/server/MailUtil/index.d.ts +58 -63
  75. package/server/MathInstance/index.d.ts +624 -656
  76. package/server/MessageDigesterFactory/index.d.ts +28 -26
  77. package/server/MetadataDefinitionUtil/index.d.ts +77 -81
  78. package/server/MetadataUtil/index.d.ts +321 -345
  79. package/server/MimeTypeUtil/index.d.ts +208 -214
  80. package/server/MonitorBuilder/index.d.ts +17 -17
  81. package/server/NodeComparatorUtil/index.d.ts +214 -224
  82. package/server/NodeFactoryUtil/index.d.ts +19 -17
  83. package/server/NodeFilterUtil/index.d.ts +651 -738
  84. package/server/NodeIteratorUtil/index.d.ts +209 -224
  85. package/server/NodeResolverUtil/index.d.ts +398 -404
  86. package/server/NodeTreeUtil/index.d.ts +211 -226
  87. package/server/NodeTypeUtil/index.d.ts +1430 -546
  88. package/server/OfflineVersionPropertyUtil/index.d.ts +6 -4
  89. package/server/OnlineVersionPropertyUtil/index.d.ts +6 -4
  90. package/server/OutputUtil/index.d.ts +384 -379
  91. package/server/PageUtil/index.d.ts +264 -186
  92. package/server/PermissionUtil/index.d.ts +391 -428
  93. package/server/PermissionUtil.Permission/index.d.ts +54 -0
  94. package/server/PermissionUtil.Permission/index.js +38 -0
  95. package/server/PortletContextUtil/index.d.ts +111 -106
  96. package/server/PortletUtil/index.d.ts +30 -20
  97. package/server/PrincipalUtil/index.d.ts +33 -31
  98. package/server/Properties/index.d.ts +68 -75
  99. package/server/PropertyUtil/index.d.ts +1419 -1461
  100. package/server/PublishingUtil/index.d.ts +246 -247
  101. package/server/QueryStringUtil/index.d.ts +403 -414
  102. package/server/RedirectUtil/index.d.ts +62 -66
  103. package/server/RelatedValueBuilder/index.d.ts +40 -38
  104. package/server/Requester/index.d.ts +123 -123
  105. package/server/ResourceLocatorUtil/index.d.ts +434 -474
  106. package/server/RestApi/index.d.ts +156 -136
  107. package/server/RestAppInvokerFactory/index.d.ts +25 -23
  108. package/server/RoleAssignmentBuilder/index.d.ts +35 -33
  109. package/server/RoleMatcherBuilder/index.d.ts +35 -33
  110. package/server/RoleUtil/index.d.ts +35 -37
  111. package/server/ScriptUtil/index.d.ts +457 -494
  112. package/server/SearchFactory/index.d.ts +102 -117
  113. package/server/SearchUtil/index.d.ts +73 -71
  114. package/server/SearcherBuilder/index.d.ts +107 -114
  115. package/server/Session/index.d.ts +251 -1093
  116. package/server/Session/index.js +1 -20
  117. package/server/SimpleUserUtil/index.d.ts +26 -27
  118. package/server/SiteCookieUtil/index.d.ts +150 -173
  119. package/server/SortBuilder/index.d.ts +24 -22
  120. package/server/SourceSetMode/index.d.ts +12 -0
  121. package/server/SourceSetMode/index.js +12 -0
  122. package/server/SpellCheckBuilder/index.d.ts +27 -27
  123. package/server/StandardParserBuilder/index.d.ts +33 -31
  124. package/server/StructureUtil/index.d.ts +83 -81
  125. package/server/SubscriberUtil/index.d.ts +58 -65
  126. package/server/SubscriptionUtil/index.d.ts +121 -128
  127. package/server/SystemUserUtil/index.d.ts +146 -144
  128. package/server/TagUtil/index.d.ts +113 -118
  129. package/server/TemplateUtil/index.d.ts +113 -118
  130. package/server/TemporaryFileNodeBuilder/index.d.ts +29 -27
  131. package/server/TemporaryNodeBuilder/index.d.ts +136 -174
  132. package/server/TextModuleRendererBuilder/index.d.ts +18 -16
  133. package/server/TimestampUtil/index.d.ts +102 -116
  134. package/server/TranslationUtil/index.d.ts +96 -102
  135. package/server/TrashcanUtil/index.d.ts +112 -115
  136. package/server/UserDataUtil/index.d.ts +108 -109
  137. package/server/UserFactory/index.d.ts +49 -56
  138. package/server/UserFieldRenderer/index.d.ts +118 -126
  139. package/server/UserIdentityUtil/index.d.ts +36 -34
  140. package/server/UserUtil/index.d.ts +30 -28
  141. package/server/Utils/index.d.ts +702 -791
  142. package/server/VelocityRenderer/index.d.ts +94 -92
  143. package/server/VersionUtil/index.d.ts +24 -8
  144. package/server/WebContentUtil/index.d.ts +275 -282
  145. package/server/WebResourceFactory/index.d.ts +46 -51
  146. package/server/XSLTUtil/index.d.ts +33 -31
  147. package/server/XmlParserUtil/index.d.ts +47 -45
  148. package/server/appData/index.d.ts +8 -6
  149. package/server/appInfo/index.d.ts +6 -2
  150. package/server/appResource/index.d.ts +23 -21
  151. package/server/cache/index.d.ts +8 -6
  152. package/server/globalAppData/index.d.ts +8 -6
  153. package/server/headless/index.d.ts +28 -26
  154. package/server/hooks/index.d.ts +9 -9
  155. package/server/oauth2/index.d.ts +12 -10
  156. package/server/privileged/index.d.ts +24 -22
  157. package/server/storage/index.d.ts +22 -20
  158. package/types/javax/jcr/Binary/index.d.ts +0 -20
  159. package/types/javax/jcr/Binary/index.js +0 -1
  160. package/types/javax/jcr/ImportUUIDBehavior/index.d.ts +24 -0
  161. package/types/javax/jcr/Item/index.d.ts +1 -116
  162. package/types/javax/jcr/Item/index.js +0 -6
  163. package/types/javax/jcr/NamespaceRegistry/index.d.ts +66 -42
  164. package/types/javax/jcr/NamespaceRegistry/index.js +0 -2
  165. package/types/javax/jcr/Node/index.d.ts +24 -1495
  166. package/types/javax/jcr/Node/index.js +1 -34
  167. package/types/javax/jcr/NodeIterator/index.d.ts +1 -1
  168. package/types/javax/jcr/Property/index.d.ts +487 -489
  169. package/types/javax/jcr/Property/index.js +0 -5
  170. package/types/javax/jcr/PropertyIterator/index.d.ts +1 -1
  171. package/types/javax/jcr/RangeIterator/index.d.ts +1 -43
  172. package/types/javax/jcr/RangeIterator/index.js +1 -5
  173. package/types/javax/jcr/Repository/index.d.ts +460 -260
  174. package/types/javax/jcr/Repository/index.js +0 -4
  175. package/types/javax/jcr/Value/index.d.ts +0 -29
  176. package/types/javax/jcr/Value/index.js +0 -2
  177. package/types/javax/jcr/ValueFactory/index.d.ts +0 -70
  178. package/types/javax/jcr/ValueFactory/index.js +1 -2
  179. package/types/javax/jcr/Workspace/index.d.ts +93 -569
  180. package/types/javax/jcr/Workspace/index.js +1 -12
  181. package/types/javax/jcr/nodetype/ItemDefinition/index.d.ts +0 -103
  182. package/types/javax/jcr/nodetype/ItemDefinition/index.js +0 -5
  183. package/types/javax/jcr/nodetype/NodeDefinition/index.d.ts +1 -1
  184. package/types/javax/jcr/nodetype/NodeDefinitionTemplate/index.d.ts +1 -1
  185. package/types/javax/jcr/nodetype/NodeType/index.d.ts +255 -264
  186. package/types/javax/jcr/nodetype/NodeType/index.js +1 -12
  187. package/types/javax/jcr/nodetype/NodeTypeDefinition/index.d.ts +0 -104
  188. package/types/javax/jcr/nodetype/NodeTypeDefinition/index.js +1 -7
  189. package/types/javax/jcr/nodetype/NodeTypeIterator/index.d.ts +1 -1
  190. package/types/javax/jcr/nodetype/NodeTypeManager/index.d.ts +0 -123
  191. package/types/javax/jcr/nodetype/NodeTypeManager/index.js +1 -8
  192. package/types/javax/jcr/nodetype/NodeTypeTemplate/index.d.ts +1 -1
  193. package/types/javax/jcr/nodetype/PropertyDefinition/index.d.ts +1 -270
  194. package/types/javax/jcr/nodetype/PropertyDefinition/index.js +1 -7
  195. package/types/javax/jcr/nodetype/PropertyDefinitionTemplate/index.d.ts +1 -1
  196. package/types/javax/jcr/observation/Event/index.d.ts +82 -41
  197. package/types/javax/jcr/observation/EventIterator/index.d.ts +1 -1
  198. package/types/javax/jcr/observation/EventJournal/index.d.ts +1 -1
  199. package/types/javax/jcr/observation/EventListenerIterator/index.d.ts +1 -1
  200. package/types/javax/jcr/query/Query/index.d.ts +29 -8
  201. package/types/javax/jcr/query/RowIterator/index.d.ts +1 -1
  202. package/types/javax/jcr/query/qom/And/index.d.ts +1 -1
  203. package/types/javax/jcr/query/qom/BindVariableValue/index.d.ts +1 -1
  204. package/types/javax/jcr/query/qom/ChildNode/index.d.ts +1 -1
  205. package/types/javax/jcr/query/qom/ChildNodeJoinCondition/index.d.ts +1 -1
  206. package/types/javax/jcr/query/qom/Comparison/index.d.ts +1 -1
  207. package/types/javax/jcr/query/qom/DescendantNode/index.d.ts +1 -1
  208. package/types/javax/jcr/query/qom/DescendantNodeJoinCondition/index.d.ts +1 -1
  209. package/types/javax/jcr/query/qom/DynamicOperand/index.d.ts +1 -1
  210. package/types/javax/jcr/query/qom/EquiJoinCondition/index.d.ts +1 -1
  211. package/types/javax/jcr/query/qom/FullTextSearch/index.d.ts +1 -1
  212. package/types/javax/jcr/query/qom/FullTextSearchScore/index.d.ts +1 -1
  213. package/types/javax/jcr/query/qom/Join/index.d.ts +1 -1
  214. package/types/javax/jcr/query/qom/Length/index.d.ts +1 -1
  215. package/types/javax/jcr/query/qom/Literal/index.d.ts +1 -1
  216. package/types/javax/jcr/query/qom/LowerCase/index.d.ts +1 -1
  217. package/types/javax/jcr/query/qom/NodeLocalName/index.d.ts +1 -1
  218. package/types/javax/jcr/query/qom/NodeName/index.d.ts +1 -1
  219. package/types/javax/jcr/query/qom/Not/index.d.ts +1 -1
  220. package/types/javax/jcr/query/qom/Or/index.d.ts +1 -1
  221. package/types/javax/jcr/query/qom/PropertyExistence/index.d.ts +1 -1
  222. package/types/javax/jcr/query/qom/PropertyValue/index.d.ts +1 -1
  223. package/types/javax/jcr/query/qom/QueryObjectModel/index.d.ts +1 -1
  224. package/types/javax/jcr/query/qom/QueryObjectModelConstants/index.d.ts +73 -1
  225. package/types/javax/jcr/query/qom/QueryObjectModelFactory/index.d.ts +1 -1
  226. package/types/javax/jcr/query/qom/SameNode/index.d.ts +1 -1
  227. package/types/javax/jcr/query/qom/SameNodeJoinCondition/index.d.ts +1 -1
  228. package/types/javax/jcr/query/qom/Selector/index.d.ts +1 -1
  229. package/types/javax/jcr/query/qom/StaticOperand/index.d.ts +1 -1
  230. package/types/javax/jcr/query/qom/UpperCase/index.d.ts +1 -1
  231. package/types/javax/jcr/security/AccessControlList/index.d.ts +1 -1
  232. package/types/javax/jcr/security/AccessControlPolicyIterator/index.d.ts +1 -1
  233. package/types/javax/jcr/security/NamedAccessControlPolicy/index.d.ts +1 -1
  234. package/types/javax/jcr/security/Privilege/index.d.ts +127 -43
  235. package/types/javax/jcr/version/Version/index.d.ts +1 -1
  236. package/types/javax/jcr/version/VersionHistory/index.d.ts +1 -1
  237. package/types/javax/jcr/version/VersionIterator/index.d.ts +1 -1
  238. package/types/senselogic/sitevision/api/base/Requireable/ScriptEngine/index.d.ts +9 -0
  239. package/types/senselogic/sitevision/api/base/Requireable/ScriptEngine/index.js +11 -0
  240. package/types/senselogic/sitevision/api/collaboration/CollaborationGroupWrapper/index.d.ts +9 -5
  241. package/types/senselogic/sitevision/api/format/NumericFormatterBuilder/index.d.ts +1 -1
  242. package/types/senselogic/sitevision/api/link/CustomLinkProcessor/index.d.ts +1 -1
  243. package/types/senselogic/sitevision/api/render/BuddyIconRenderer.BuddyIconInfo/index.d.ts +49 -0
  244. package/types/senselogic/sitevision/api/render/BuddyIconRenderer.BuddyIconInfo/index.js +12 -0
  245. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.ArticleUtilConstants/index.d.ts +83 -0
  246. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.ArticleUtilConstants/index.js +21 -0
  247. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.ExceptionSuppressingProxyConstants/index.d.ts +29 -0
  248. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.ExceptionSuppressingProxyConstants/index.js +12 -0
  249. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.IndexingUtilConstants/index.d.ts +29 -0
  250. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.IndexingUtilConstants/index.js +12 -0
  251. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.LinkPageUtilConstants/index.d.ts +65 -0
  252. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.LinkPageUtilConstants/index.js +18 -0
  253. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.MathInstanceConstants/index.d.ts +23 -0
  254. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.MathInstanceConstants/index.js +11 -0
  255. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.MimeTypeUtilConstants/index.d.ts +17 -0
  256. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.MimeTypeUtilConstants/index.js +10 -0
  257. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.NodeTypeUtilConstants/index.d.ts +1241 -0
  258. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.NodeTypeUtilConstants/index.js +189 -0
  259. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.OutputUtilConstants/index.d.ts +29 -0
  260. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.OutputUtilConstants/index.js +12 -0
  261. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PageUtilConstants/index.d.ts +89 -0
  262. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PageUtilConstants/index.js +22 -0
  263. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PortletContextUtilConstants/index.d.ts +25 -0
  264. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PortletContextUtilConstants/index.js +11 -0
  265. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PortletUtilConstants/index.d.ts +17 -0
  266. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PortletUtilConstants/index.js +10 -0
  267. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.QueryStringUtilConstants/index.d.ts +17 -0
  268. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.QueryStringUtilConstants/index.js +10 -0
  269. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.SearchHitConstants/index.d.ts +23 -0
  270. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.SearchHitConstants/index.js +11 -0
  271. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.SearchResultConstants/index.d.ts +35 -0
  272. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.SearchResultConstants/index.js +13 -0
  273. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.VersionUtilConstants/index.d.ts +23 -0
  274. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.VersionUtilConstants/index.js +11 -0
  275. package/types/senselogic/sitevision/api/script/RequesterChainable/index.d.ts +2 -2
  276. package/types/senselogic/sitevision/api/script/proxy/ExceptionSuppressingProxy/index.d.ts +22 -2
  277. package/types/senselogic/sitevision/api/search/SearchHit/index.d.ts +16 -2
  278. package/types/senselogic/sitevision/api/search/SearchResult/index.d.ts +28 -6
  279. package/types/senselogic/sitevision/api/security/jaas/filter/AuthenticationFilter/index.d.ts +31 -1
  280. package/types/senselogic/sitevision/api/user/UserIdentityWrapper/index.d.ts +1 -1
@@ -1,15 +1,15 @@
1
- interface OrderByOptions {
1
+ export interface OrderByOptions {
2
2
  field: string;
3
3
  order: 'ASC' | 'DESC';
4
4
  }
5
5
 
6
- interface FindOptions {
6
+ export interface FindOptions {
7
7
  count?: number;
8
8
  skip?: number;
9
9
  orderBy?: OrderByOptions | OrderByOptions[];
10
10
  }
11
11
 
12
- interface CollectionDataStore {
12
+ export interface CollectionDataStore {
13
13
  add(data: any): void;
14
14
  addAll(data: any[]): void;
15
15
  get(dsid: string): unknown;
@@ -39,7 +39,7 @@ interface CollectionDataStore {
39
39
  /**
40
40
  * @since 5.2
41
41
  */
42
- interface KeyValueDataStore {
42
+ export interface KeyValueDataStore {
43
43
  /**
44
44
  * Stores data associated with a key.
45
45
  * Returns current data stored on the key.
@@ -68,7 +68,7 @@ interface KeyValueDataStore {
68
68
  remove(key: string): void;
69
69
  }
70
70
 
71
- interface SearchResult {
71
+ export interface SearchResult {
72
72
  toArray(): unknown[];
73
73
  each(
74
74
  callback: (err: DataStoreError | undefined, data: unknown) => void
@@ -80,13 +80,13 @@ interface SearchResult {
80
80
  ): void;
81
81
  }
82
82
 
83
- interface DataStoreError {
83
+ export interface DataStoreError {
84
84
  dataStore: string;
85
85
  type: DataStoreErrorType;
86
86
  message: string;
87
87
  }
88
88
 
89
- declare enum DataStoreErrorType {
89
+ export enum DataStoreErrorType {
90
90
  validation_failed,
91
91
  read_only,
92
92
  item_not_found,
@@ -95,20 +95,22 @@ declare enum DataStoreErrorType {
95
95
  unknown,
96
96
  }
97
97
 
98
- /**
99
- * Get an instance of a CollectionDataStore
100
- * @param identifier The name of a data store
101
- */
102
- export function getCollectionDataStore(identifier: string): CollectionDataStore;
103
-
104
- /**
105
- * Get an instance of a KeyValueDataStore
106
- * @param identifier The name of a data store
107
- */
108
- export function getKeyValueDataStore(identifier: string): KeyValueDataStore;
98
+ export interface Storage {
99
+ /**
100
+ * Get an instance of a CollectionDataStore
101
+ * @param identifier The name of a data store
102
+ */
103
+ getCollectionDataStore(identifier: string): CollectionDataStore;
109
104
 
110
- declare namespace storage {
111
- export { getCollectionDataStore, getKeyValueDataStore };
105
+ /**
106
+ * Get an instance of a KeyValueDataStore
107
+ * @param identifier The name of a data store
108
+ */
109
+ getKeyValueDataStore(identifier: string): KeyValueDataStore;
112
110
  }
113
111
 
112
+ declare namespace Storage {}
113
+
114
+ declare const storage: Storage;
115
+
114
116
  export default storage;
@@ -21,26 +21,6 @@ export type Binary = {
21
21
  */
22
22
  getStream(): unknown;
23
23
 
24
- /**
25
- * Reads successive bytes from the specified <code>position</code> in this
26
- * <code>Binary</code> into the passed byte array until either the byte
27
- * array is full or the end of the <code>Binary</code> is encountered.
28
- * <p>
29
- * If {@link #dispose()} has been called on this <code>Binary</code>
30
- * object, then this method will throw the runtime exception
31
- * {@link java.lang.IllegalStateException}.
32
- *
33
- * <p><strong>Sitevision note:</strong> Unsupported operation</p>
34
- * @param b the buffer into which the data is read.
35
- * @param position the position in this Binary from which to start reading bytes.
36
- * @return the number of bytes read into the buffer, or -1 if there is no more data because the end of the Binary has been reached.
37
- * @throws IOException if an I/O error occurs.
38
- * @throws NullPointerException if b is null.
39
- * @throws IllegalArgumentException if offset is negative.
40
- * @throws RepositoryException if another error occurs.
41
- */
42
- read(b: unknown, position: number): number;
43
-
44
24
  /**
45
25
  * Returns the size of this <code>Binary</code> value in bytes.
46
26
  * <p>
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports["default"] = void 0;
7
7
  var _default = {
8
8
  getStream: function getStream() {},
9
- read: function read() {},
10
9
  getSize: function getSize() {},
11
10
  dispose: function dispose() {}
12
11
  };
@@ -8,4 +8,28 @@
8
8
  */
9
9
  export type ImportUUIDBehavior = {
10
10
  undefined;
11
+
12
+ /**
13
+ *
14
+
15
+ */
16
+ IMPORT_UUID_CREATE_NEW: number;
17
+
18
+ /**
19
+ *
20
+
21
+ */
22
+ IMPORT_UUID_COLLISION_REMOVE_EXISTING: number;
23
+
24
+ /**
25
+ *
26
+
27
+ */
28
+ IMPORT_UUID_COLLISION_REPLACE_EXISTING: number;
29
+
30
+ /**
31
+ *
32
+
33
+ */
34
+ IMPORT_UUID_COLLISION_THROW: number;
11
35
  };
@@ -1,5 +1,5 @@
1
1
  import type { Node } from "../Node";
2
- import Session from "../../../../server/Session";
2
+ import { Session } from "../../../../server/Session";
3
3
 
4
4
  import type { ItemVisitor } from "../ItemVisitor";
5
5
 
@@ -25,31 +25,6 @@ export type Item = {
25
25
  */
26
26
  getName(): string;
27
27
 
28
- /**
29
- * Returns the ancestor of this <code>Item</code> at the specified depth. An
30
- * ancestor of depth <i>x</i> is the <code>Item</code> that is <i>x</i>
31
- * levels down along the path from the root node to <i>this</i>
32
- * <code>Item</code>. <ul> <li><i>depth</i> = 0 returns the root node of a
33
- * workspace. <li><i>depth</i> = 1 returns the child of the root node along
34
- * the path to <i>this</i> <code>Item</code>. <li><i>depth</i> = 2 returns
35
- * the grandchild of the root node along the path to <i>this</i>
36
- * <code>Item</code>. <li>And so on to <i>depth</i> = <i>n</i>, where
37
- * <i>n</i> is the depth of <i>this</i> <code>Item</code>, which returns
38
- * <i>this</i> <code>Item</code> itself. </ul>
39
- * <p>
40
- * If this node has more than one path (i.e., if it is a descendant of a
41
- * shared node) then the path used to define the ancestor is
42
- * implementaion-dependent.
43
- *
44
- * <p><strong>Sitevision note:</strong> Unsupported operation</p>
45
- * @param depth An integer, 0 &lt;= <i>depth</i> &lt;= <i>n</i> where <i>n</i> is the depth of <i>this</i> <code>Item</code>.
46
- * @return The ancestor of this <code>Item</code> at the specified <code>depth</code>.
47
- * @throws ItemNotFoundException if <i>depth</i> &lt; 0 or <i>depth</i> &gt; <i>n</i> where <i>n</i> is the is the depth of this item.
48
- * @throws AccessDeniedException if the current session does not have sufficent access to retrieve the specified node.
49
- * @throws RepositoryException if another error occurs.
50
- */
51
- getAncestor(depth: number): Item;
52
-
53
28
  /**
54
29
  * Returns the parent of this <code>Item</code>.
55
30
  * @return The parent of this <code>Item</code>.
@@ -59,28 +34,6 @@ export type Item = {
59
34
  */
60
35
  getParent(): Node;
61
36
 
62
- /**
63
- * Returns the depth of this <code>Item</code> in the workspace item graph.
64
- * <ul> <li>The root node returns 0. <li>A property or child node of the
65
- * root node returns 1. <li>A property or child node of a child node of the
66
- * root returns 2. <li>And so on to <i>this</i> <code>Item</code>. </ul>
67
- *
68
- * <p><strong>Sitevision note:</strong> Unsupported operation</p>
69
- * @return The depth of this <code>Item</code> in the workspace item graph.
70
- * @throws RepositoryException if an error occurs.
71
- */
72
- getDepth(): number;
73
-
74
- /**
75
- * Returns the <code>Session</code> through which this <code>Item</code> was
76
- * acquired.
77
- *
78
- * <p><strong>Sitevision note:</strong> Unsupported operation</p>
79
- * @return the <code>Session</code> through which this <code>Item</code> was acquired.
80
- * @throws RepositoryException if an error occurs.
81
- */
82
- getSession(): Session;
83
-
84
37
  /**
85
38
  * Indicates whether this <code>Item</code> is a <code>Node</code> or a
86
39
  * <code>Property</code>. Returns <code>true</code> if this
@@ -90,74 +43,6 @@ export type Item = {
90
43
  */
91
44
  isNode(): boolean;
92
45
 
93
- /**
94
- * Returns <code>true</code> if this is a new item, meaning that it exists
95
- * only in transient storage on the <code>Session</code> and has not yet
96
- * been saved. Within a transaction, <code>isNew</code> on an
97
- * <code>Item</code> may return <code>false</code> (because the item has
98
- * been saved) even if that <code>Item</code> is not in persistent storage
99
- * (because the transaction has not yet been committed).
100
- * <p>
101
- * Note that if an item returns <code>true</code> on <code>isNew</code>,
102
- * then by definition is parent will return <code>true</code> on
103
- * <code>isModified</code>.
104
- * <p>
105
- * Note that in read-only implementations, this method will always return
106
- * <code>false</code>.
107
- *
108
- * <p><strong>Sitevision note:</strong> Unsupported operation</p>
109
- * @return <code>true</code> if this item is new; <code>false</code> otherwise.
110
- */
111
- isNew(): boolean;
112
-
113
- /**
114
- * Returns <code>true</code> if this <code>Item</code> has been saved but
115
- * has subsequently been modified through the current session and therefore
116
- * the state of this item as recorded in the session differs from the state
117
- * of this item as saved. Within a transaction, <code>isModified</code> on
118
- * an <code>Item</code> may return <code>false</code> (because the
119
- * <code>Item</code> has been saved since the modification) even if the
120
- * modification in question is not in persistent storage (because the
121
- * transaction has not yet been committed).
122
- * <p>
123
- * Note that in read-only implementations, this method will always return
124
- * <code>false</code>.
125
- *
126
- * <p><strong>Sitevision note:</strong> Unsupported operation</p>
127
- * @return <code>true</code> if this item is modified; <code>false</code> otherwise.
128
- */
129
- isModified(): boolean;
130
-
131
- /**
132
- * Returns <code>true</code> if this <code>Item</code> object (the Java
133
- * object instance) represents the same actual workspace item as the object
134
- * <code>otherItem</code>.
135
- * <p>
136
- * Two <code>Item</code> objects represent the same workspace item if and
137
- * only if all the following are true: <ul> <li>Both objects were acquired
138
- * through <code>Session</code> objects that were created by the same
139
- * <code>Repository</code> object.</li> <li>Both objects were acquired
140
- * through <code>Session</code> objects bound to the same repository
141
- * workspace.</li> <li>The objects are either both <code>Node</code> objects
142
- * or both <code>Property</code> objects.</li> <li>If they are
143
- * <code>Node</code> objects, they have the same identifier.</li> <li>If
144
- * they are <code>Property</code> objects they have identical names and
145
- * <code>isSame</code> is true of their parent nodes.</li> </ul> This method
146
- * does not compare the <i>states</i> of the two items. For example, if two
147
- * <code>Item</code> objects representing the same actual workspace item
148
- * have been retrieved through two different sessions and one has been
149
- * modified, then this method will still return <code>true</code> when
150
- * comparing these two objects. Note that if two <code>Item</code> objects
151
- * representing the same workspace item are retrieved through the
152
- * <i>same</i> session they will always reflect the same state.
153
- *
154
- * <p><strong>Sitevision note:</strong> Unsupported operation</p>
155
- * @param otherItem the <code>Item</code> object to be tested for identity with this <code>Item</code>.
156
- * @return <code>true</code> if this <code>Item</code> object and <code>otherItem</code> represent the same actual repository item; <code>false</code> otherwise.
157
- * @throws RepositoryException if an error occurs.
158
- */
159
- isSame(otherItem: Item): boolean;
160
-
161
46
  /**
162
47
  * Accepts an <code>ItemVisitor</code>. Calls the appropriate
163
48
  * <code>ItemVisitor</code> <code>visit</code> method of the according to
@@ -7,14 +7,8 @@ exports["default"] = void 0;
7
7
  var _default = {
8
8
  getPath: function getPath() {},
9
9
  getName: function getName() {},
10
- getAncestor: function getAncestor() {},
11
10
  getParent: function getParent() {},
12
- getDepth: function getDepth() {},
13
- getSession: function getSession() {},
14
11
  isNode: function isNode() {},
15
- isNew: function isNew() {},
16
- isModified: function isModified() {},
17
- isSame: function isSame() {},
18
12
  accept: function accept() {},
19
13
  save: function save() {},
20
14
  refresh: function refresh() {},
@@ -4,51 +4,10 @@
4
4
  * Workspace#getNamespaceRegistry}. The namespace registry contains the default
5
5
  * prefixes of the registered namespaces. The namespace registry may contain
6
6
  * namespaces that are not used in repository content, and there may be
7
- * repository content with namespaces that are not included in the registry.A constant for the predefined namespace prefix "jcr".A constant for the predefined namespace prefix "nt".A constant for the predefined namespace prefix "mix".A constant for the predefined namespace prefix "xml".A constant for the predefined namespace prefix "" (the empty prefix).A constant for the predefined namespace mapped by default to the prefix
8
- * "jcr".A constant for the predefined namespace mapped by default to the prefix
9
- * "nt".A constant for the predefined namespace mapped by default to the prefix
10
- * "mix".A constant for the predefined namespace mapped by default to the prefix
11
- * "xml".A constant for the predefined namespace mapped by default to the prefix
12
- * "" (the empty prefix).
7
+ * repository content with namespaces that are not included in the registry.
13
8
  * @see Workspace#getNamespaceRegistry
14
9
  */
15
10
  export type NamespaceRegistry = {
16
- /**
17
- * Sets a one-to-one mapping between <code>prefix</code> and
18
- * <code>uri</code> in the global namespace registry of this repository.
19
- * <p>
20
- * Assigning a new prefix to a URI that already exists in the namespace
21
- * registry erases the old prefix. In general this can almost always be
22
- * done, though an implementation is free to prevent particular remappings
23
- * by throwing a <code>NamespaceException</code>.
24
- * <p>
25
- * On the other hand, taking a prefix that is already assigned to a URI and
26
- * re-assigning it to a new URI in effect unregisters that URI. Therefore,
27
- * the same restrictions apply to this operation as to
28
- * <code>NamespaceRegistry.unregisterNamespace</code>.
29
- *
30
- * <p><strong>Sitevision note:</strong> Unsupported operation</p>
31
- * @param prefix The prefix to be mapped.
32
- * @param uri The URI to be mapped.
33
- * @throws NamespaceException If an attempt is made to re-assign a built-in prefix to a new URI or, to register a namespace with a prefix that begins with the characters "<code>xml</code>" (in any combination of case) or, An attempt is made to perform a prefix re-assignment that is forbidden for implementation-specific reasons.
34
- * @throws UnsupportedRepositoryOperationException if this repository does not support namespace registry changes.
35
- * @throws AccessDeniedException if the current session does not have sufficent access to register the namespace.
36
- * @throws RepositoryException if another error occurs.
37
- */
38
- registerNamespace(prefix: string, uri: string): void;
39
-
40
- /**
41
- * Removes a namespace mapping from the registry.
42
- *
43
- * <p><strong>Sitevision note:</strong> Unsupported operation</p>
44
- * @param prefix The prefix of the mapping to be removed.
45
- * @throws NamespaceException if an attempt is made to unregister a built-in namespace or a namespace that is not currently registered or a namespace whose unregsitration is forbidden for implementation-specific reasons.
46
- * @throws UnsupportedRepositoryOperationException if this repository does not support namespace registry changes.
47
- * @throws AccessDeniedException if the current session does not have sufficent access to unregister the namespace.
48
- * @throws RepositoryException if another error occurs.
49
- */
50
- unregisterNamespace(prefix: string): void;
51
-
52
11
  /**
53
12
  * Returns an array holding all currently registered prefixes.
54
13
  * @return a string array.
@@ -80,4 +39,69 @@ export type NamespaceRegistry = {
80
39
  * @throws RepositoryException if another error occurs.
81
40
  */
82
41
  getPrefix(uri: string): string;
42
+
43
+ /**
44
+ * A constant for the predefined namespace prefix "jcr".
45
+
46
+ */
47
+ PREFIX_JCR: string;
48
+
49
+ /**
50
+ * A constant for the predefined namespace prefix "nt".
51
+
52
+ */
53
+ PREFIX_NT: string;
54
+
55
+ /**
56
+ * A constant for the predefined namespace prefix "mix".
57
+
58
+ */
59
+ PREFIX_MIX: string;
60
+
61
+ /**
62
+ * A constant for the predefined namespace prefix "xml".
63
+
64
+ */
65
+ PREFIX_XML: string;
66
+
67
+ /**
68
+ * A constant for the predefined namespace prefix "" (the empty prefix).
69
+
70
+ */
71
+ PREFIX_EMPTY: string;
72
+
73
+ /**
74
+ * A constant for the predefined namespace mapped by default to the prefix
75
+ * "jcr".
76
+
77
+ */
78
+ NAMESPACE_JCR: string;
79
+
80
+ /**
81
+ * A constant for the predefined namespace mapped by default to the prefix
82
+ * "nt".
83
+
84
+ */
85
+ NAMESPACE_NT: string;
86
+
87
+ /**
88
+ * A constant for the predefined namespace mapped by default to the prefix
89
+ * "mix".
90
+
91
+ */
92
+ NAMESPACE_MIX: string;
93
+
94
+ /**
95
+ * A constant for the predefined namespace mapped by default to the prefix
96
+ * "xml".
97
+
98
+ */
99
+ NAMESPACE_XML: string;
100
+
101
+ /**
102
+ * A constant for the predefined namespace mapped by default to the prefix
103
+ * "" (the empty prefix).
104
+
105
+ */
106
+ NAMESPACE_EMPTY: string;
83
107
  };
@@ -5,8 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _default = {
8
- registerNamespace: function registerNamespace() {},
9
- unregisterNamespace: function unregisterNamespace() {},
10
8
  getPrefixes: function getPrefixes() {},
11
9
  getURIs: function getURIs() {},
12
10
  getURI: function getURI() {},