@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,16 +1,18 @@
1
- interface RequesterOptions extends Record<string, any> {
1
+ export interface RequesterOptions extends Record<string, any> {
2
2
  url: string;
3
3
  data?: any;
4
4
  fileUpload?: boolean;
5
5
  }
6
6
 
7
- export function doGet(options: RequesterOptions): Promise<unknown>;
8
- export function doPut(options: RequesterOptions): Promise<unknown>;
9
- export function doPost(options: RequesterOptions): Promise<unknown>;
10
- export function doDelete(options: RequesterOptions): Promise<unknown>;
11
-
12
- declare namespace requester {
13
- export { doGet, doPut, doPost, doDelete };
7
+ export interface Requester {
8
+ doGet(options: RequesterOptions): Promise<unknown>;
9
+ doPut(options: RequesterOptions): Promise<unknown>;
10
+ doPost(options: RequesterOptions): Promise<unknown>;
11
+ doDelete(options: RequesterOptions): Promise<unknown>;
14
12
  }
15
13
 
14
+ declare namespace Requester {}
15
+
16
+ declare var requester: Requester;
17
+
16
18
  export default requester;
@@ -1,4 +1,4 @@
1
- interface ToastOptions {
1
+ export interface ToastOptions {
2
2
  heading?: string;
3
3
  message: string;
4
4
  type?: string;
@@ -7,10 +7,12 @@ interface ToastOptions {
7
7
  checkmark?: boolean;
8
8
  }
9
9
 
10
- export function publish(options: ToastOptions): void;
11
-
12
- declare namespace toasts {
13
- export { publish };
10
+ export interface Toasts {
11
+ publish(options: ToastOptions): void;
14
12
  }
15
13
 
14
+ declare namespace Toasts {}
15
+
16
+ declare var toasts: Toasts;
17
+
16
18
  export default toasts;
@@ -1,49 +1,48 @@
1
- /**
2
- * The locale of the page being rendered
3
- */
4
- export const locale: string;
5
-
6
- /**
7
- * The default locale for the WebApp
8
- */
9
- export const defaultLocale: string;
10
-
11
- /**
12
- * The id of the portlet containing the WebApp
13
- */
14
- export const portletId: string;
15
-
16
- /**
17
- * The WebApp id
18
- */
19
- export const webAppId: string;
20
-
21
- /**
22
- * The WebApp version
23
- */
24
- export const webAppVersion: string;
25
-
26
- /**
27
- * Note! Client side only
28
- *
29
- * @param eventName The name of the event to trigger
30
- * @param options The options for the event
31
- */
32
- export function trigger(eventName: string, ...options: unknown[]): void;
33
-
34
- /**
35
- * Note! Client side only
36
- *
37
- * @param eventName The name of the event to listen to
38
- * @param options The options for the event
39
- */
40
- export function on(
41
- eventName: string,
42
- callback: (...options: unknown[]) => void
43
- ): void;
44
-
45
- export declare namespace app {
46
- export { locale, defaultLocale, portletId, webAppId, webAppVersion };
1
+ export interface App {
2
+ /**
3
+ * The locale of the page being rendered
4
+ */
5
+ locale: string;
6
+
7
+ /**
8
+ * The default locale for the WebApp
9
+ */
10
+ defaultLocale: string;
11
+
12
+ /**
13
+ * The id of the portlet containing the WebApp
14
+ */
15
+ portletId: string;
16
+
17
+ /**
18
+ * The WebApp id
19
+ */
20
+ webAppId: string;
21
+
22
+ /**
23
+ * The WebApp version
24
+ */
25
+ webAppVersion: string;
26
+
27
+ /**
28
+ * Note! Client side only
29
+ *
30
+ * @param eventName The name of the event to trigger
31
+ * @param options The options for the event
32
+ */
33
+ trigger(eventName: string, ...options: unknown[]): void;
34
+
35
+ /**
36
+ * Note! Client side only
37
+ *
38
+ * @param eventName The name of the event to listen to
39
+ * @param options The options for the event
40
+ */
41
+ on(eventName: string, callback: (...options: unknown[]) => void): void;
47
42
  }
48
43
 
44
+ declare namespace App {}
45
+
46
+ declare var app: App;
47
+
49
48
  export default app;
@@ -1,34 +1,33 @@
1
- /**
2
- * Listen to a given event
3
- *
4
- * @param eventName The name of the event
5
- * @param callback The callback to trigger for the given event
6
- */
7
- export function on(
8
- eventName: string,
9
- callback: (options: unknown) => void
10
- ): void;
11
- /**
12
- * Emit a server side event
13
- *
14
- * Note! Server side only
15
- *
16
- * @param eventName The name of the event to emit
17
- * @param options The options for the event
18
- */
19
- export function emit(eventName: string, options: unknown): void;
20
- /**
21
- * Trigger a client side event
22
- *
23
- * Note! Client side only
24
- *
25
- * @param eventName The name of the event to trigger
26
- * @param options The options for the event
27
- */
28
- export function trigger(eventName: string, options: unknown): void;
29
-
30
- declare namespace events {
31
- export { on, emit, trigger };
1
+ export interface Events {
2
+ /**
3
+ * Listen to a given event
4
+ *
5
+ * @param eventName The name of the event
6
+ * @param callback The callback to trigger for the given event
7
+ */
8
+ on(eventName: string, callback: (options: unknown) => void): void;
9
+ /**
10
+ * Emit a server side event
11
+ *
12
+ * Note! Server side only
13
+ *
14
+ * @param eventName The name of the event to emit
15
+ * @param options The options for the event
16
+ */
17
+ emit(eventName: string, options: unknown): void;
18
+ /**
19
+ * Trigger a client side event
20
+ *
21
+ * Note! Client side only
22
+ *
23
+ * @param eventName The name of the event to trigger
24
+ * @param options The options for the event
25
+ */
26
+ trigger(eventName: string, options: unknown): void;
32
27
  }
33
28
 
29
+ declare namespace Events {}
30
+
31
+ declare var events: Events;
32
+
34
33
  export default events;
@@ -1,8 +1,10 @@
1
- export function get(key: string): string;
2
- export function get(key: string, ...substitutions: string[]): string;
3
-
4
- declare namespace i18n {
5
- export { get };
1
+ export interface I18n {
2
+ get(key: string): string;
3
+ get(key: string, ...substitutions: string[]): string;
6
4
  }
7
5
 
6
+ declare namespace I18n {}
7
+
8
+ declare var i18n: I18n;
9
+
8
10
  export default i18n;
@@ -28,7 +28,7 @@ export interface Request {
28
28
  context: unknown | null;
29
29
  }
30
30
 
31
- interface Response {
31
+ export interface Response {
32
32
  agnosticRender(html: string, initialData: unknown);
33
33
  send(content: string): void;
34
34
  json(data: unknown): void;
@@ -46,88 +46,83 @@ interface Response {
46
46
  render(route: string, data: unknown): void;
47
47
  }
48
48
 
49
- /**
50
- * This method is triggered by a get request to a given route.
51
- *
52
- * Note! Server side only
53
- *
54
- * @param route The route which will trigger this method
55
- * @param callback The callback to trigger for the given route
56
- */
57
- export function get(
58
- route: string,
59
- callback: (req: Request, res: Response) => void
60
- ): void;
61
- /**
62
- * This method is triggered by a post request to a given route.
63
- *
64
- * Note! Server side only
65
- *
66
- * @param route The route which will trigger this method
67
- * @param callback The callback to trigger for the given route
68
- */
69
- export function post(
70
- route: string,
71
- callback: (req: Request, res: Response) => void
72
- ): void;
73
- /**
74
- * This method is triggered by a put request to a given route.
75
- *
76
- * Note! Server side only
77
- *
78
- * @param route The route which will trigger this method
79
- * @param callback The callback to trigger for the given route
80
- */
81
- export function put(
82
- route: string,
83
- callback: (req: Request, res: Response) => void
84
- ): void;
85
- declare function _delete(
86
- route: string,
87
- callback: (req: Request, res: Response) => void
88
- ): void;
49
+ export interface Router {
50
+ /**
51
+ * This method is triggered by a get request to a given route.
52
+ *
53
+ * Note! Server side only
54
+ *
55
+ * @param route The route which will trigger this method
56
+ * @param callback The callback to trigger for the given route
57
+ */
58
+ get(route: string, callback: (req: Request, res: Response) => void): void;
59
+ /**
60
+ * This method is triggered by a post request to a given route.
61
+ *
62
+ * Note! Server side only
63
+ *
64
+ * @param route The route which will trigger this method
65
+ * @param callback The callback to trigger for the given route
66
+ */
67
+ post(route: string, callback: (req: Request, res: Response) => void): void;
68
+ /**
69
+ * This method is triggered by a put request to a given route.
70
+ *
71
+ * Note! Server side only
72
+ *
73
+ * @param route The route which will trigger this method
74
+ * @param callback The callback to trigger for the given route
75
+ */
76
+ put(route: string, callback: (req: Request, res: Response) => void): void;
89
77
 
90
- export { _delete as delete };
78
+ /**
79
+ * This method is triggered by a delete request to a given route.
80
+ *
81
+ * Note! Server side only
82
+ *
83
+ * @param route The route which will trigger this method
84
+ * @param callback The callback to trigger for the given route
85
+ */
86
+ delete(route: string, callback: (req: Request, res: Response) => void): void;
91
87
 
92
- /**
93
- * Note! Server side only
94
- *
95
- * @param callback The callback to trigger
96
- */
97
- export function use(
98
- callback: (req: Request, res: Response, next: Function) => void
99
- ): void;
88
+ /**
89
+ * This method is triggered by a patch request to a given route.
90
+ *
91
+ * Note! Server side only
92
+ * Note! RESTApps only
93
+ * @param route The route which will trigger this method
94
+ * @param callback The callback to trigger for the given route
95
+ * @since Sitevision 2023.02.1
96
+ */
97
+ patch(route: string, callback: (req: Request, res: Response) => void): void;
100
98
 
101
- export function getUrl(path: string): string;
102
- export function getStandaloneUrl(path: string): string;
99
+ /**
100
+ * Note! Server side only
101
+ *
102
+ * @param callback The callback to trigger
103
+ */
104
+ use(callback: (req: Request, res: Response, next: Function) => void): void;
103
105
 
104
- /**
105
- * Note! Client side only
106
- */
107
- export function on(event: string, callback: () => void, context: any): void;
108
- /**
109
- * Note! Client side only
110
- */
111
- export function off(event: string, callback: () => void, context: any): void;
106
+ getUrl(path: string): string;
107
+ getStandaloneUrl(path: string): string;
112
108
 
113
- /**
114
- * Note! Client side only
115
- */
116
- export function navigate(url: string, options: any): void;
109
+ /**
110
+ * Note! Client side only
111
+ */
112
+ on(event: string, callback: () => void, context: any): void;
113
+ /**
114
+ * Note! Client side only
115
+ */
116
+ off(event: string, callback: () => void, context: any): void;
117
117
 
118
- declare namespace router {
119
- export {
120
- get,
121
- post,
122
- put,
123
- _delete as delete,
124
- use,
125
- getUrl,
126
- getStandaloneUrl,
127
- on,
128
- off,
129
- navigate,
130
- };
118
+ /**
119
+ * Note! Client side only
120
+ */
121
+ navigate(url: string, options: any): void;
131
122
  }
132
123
 
124
+ declare namespace Router {}
125
+
126
+ declare var router: Router;
127
+
133
128
  export default router;
@@ -1,24 +1,30 @@
1
- export declare namespace security {
2
- export namespace csrf {
3
- /**
4
- * Used to acquire the current csrf-token. If the user is anonymous or if csrf-protection is disabled on the server this will return null.
5
- *
6
- * @returns {string} the current token as string or null for anonymous users.
7
- */
8
- export function getToken(): string;
9
- /**
10
- * Used to acquire the parameter name that should be used when passing the token as a form field.
11
- *
12
- * @returns {string} the name that should be used when passing the token as form data.
13
- */
14
- export function getParameterName(): string;
15
- /**
16
- * Used to acquire the header name that should be used when passing the token as a request header.
17
- *
18
- * @returns {string} the name that should be used when passing the token as a header.
19
- */
20
- export function getHeaderName(): string;
21
- }
1
+ export interface Csrf {
2
+ /**
3
+ * Used to acquire the current csrf-token. If the user is anonymous or if csrf-protection is disabled on the server this will return null.
4
+ *
5
+ * @returns {string} the current token as string or null for anonymous users.
6
+ */
7
+ getToken(): string;
8
+ /**
9
+ * Used to acquire the parameter name that should be used when passing the token as a form field.
10
+ *
11
+ * @returns {string} the name that should be used when passing the token as form data.
12
+ */
13
+ getParameterName(): string;
14
+ /**
15
+ * Used to acquire the header name that should be used when passing the token as a request header.
16
+ *
17
+ * @returns {string} the name that should be used when passing the token as a header.
18
+ */
19
+ getHeaderName(): string;
22
20
  }
23
21
 
22
+ export interface Security {
23
+ csrf: Csrf;
24
+ }
25
+
26
+ declare namespace Security {}
27
+
28
+ declare var security: Security;
29
+
24
30
  export default security;
package/index.d.ts CHANGED
@@ -5,10 +5,13 @@ import './server/ArticleUtil';
5
5
  import './server/AuthenticationUtil';
6
6
  import './server/BookmarkUtil';
7
7
  import './server/BuddyIconRenderer';
8
+ import './server/BuddyIconRenderer.BuddyIconSize';
8
9
  import './server/ClientUtil';
9
10
  import './server/CollaborationFactory';
10
11
  import './server/CollaborationGroupFolderUtil';
12
+ import './server/CollaborationGroupState';
11
13
  import './server/CollaborationGroupTemplateUtil';
14
+ import './server/CollaborationGroupType';
12
15
  import './server/CollaborationGroupUtil';
13
16
  import './server/CollectionsInstance';
14
17
  import './server/ColorUtil';
@@ -20,7 +23,9 @@ import './server/CurrencyFactory';
20
23
  import './server/DateUtil';
21
24
  import './server/DecorationUtil';
22
25
  import './server/DeviceUtil';
26
+ import './server/DimensionMode';
23
27
  import './server/DirectoryUtil';
28
+ import './server/DocType';
24
29
  import './server/DocTypeUtil';
25
30
  import './server/EndecUtil';
26
31
  import './server/ExtendedDismaxParserBuilder';
@@ -36,6 +41,7 @@ import './server/ImageLinkRenderer';
36
41
  import './server/ImageRenderer';
37
42
  import './server/ImageUtil';
38
43
  import './server/IndexUtil';
44
+ import './server/IndexUtil.IndexType';
39
45
  import './server/IndexingUtil';
40
46
  import './server/InstanceCreatorUtil';
41
47
  import './server/InstanceTypeUtil';
@@ -68,6 +74,7 @@ import './server/OnlineVersionPropertyUtil';
68
74
  import './server/OutputUtil';
69
75
  import './server/PageUtil';
70
76
  import './server/PermissionUtil';
77
+ import './server/PermissionUtil.Permission';
71
78
  import './server/PortletContextUtil';
72
79
  import './server/PortletUtil';
73
80
  import './server/PrincipalUtil';
@@ -92,6 +99,7 @@ import './server/Session';
92
99
  import './server/SimpleUserUtil';
93
100
  import './server/SiteCookieUtil';
94
101
  import './server/SortBuilder';
102
+ import './server/SourceSetMode';
95
103
  import './server/SpellCheckBuilder';
96
104
  import './server/StandardParserBuilder';
97
105
  import './server/StructureUtil';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sitevision/api",
3
- "version": "2.0.0-alpha.1",
3
+ "version": "2023.02.1-alpha.0",
4
4
  "author": "Sitevision AB",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1,12 +1,5 @@
1
1
  import type { Node } from "../../types/javax/jcr/Node";
2
2
 
3
- /**
4
- * Gets the alias name for a given Node.
5
- * @param aNode a Node that is the target of an alias, typically a sv:page, sv:article or sv:file
6
- * @return the first found alias name for aNode, or null if aNode is null or no matching alias could be found
7
- */
8
- export function getAliasName(aNode: Node): string;
9
-
10
3
  /**
11
4
  * Alias utility interface.
12
5
  *
@@ -18,8 +11,17 @@ export function getAliasName(aNode: Node): string;
18
11
  * @author Magnus Lövgren
19
12
  * @since Sitevision 2022.10.2
20
13
  */
21
- declare namespace aliasUtil {
22
- export { getAliasName };
14
+ export interface AliasUtil {
15
+ /**
16
+ * Gets the alias name for a given Node.
17
+ * @param aNode a Node that is the target of an alias, typically a sv:page, sv:article or sv:file
18
+ * @return the first found alias name for aNode, or null if aNode is null or no matching alias could be found
19
+ */
20
+ getAliasName(aNode: Node): string;
23
21
  }
24
22
 
23
+ declare namespace AliasUtil {}
24
+
25
+ declare var aliasUtil: AliasUtil;
26
+
25
27
  export default aliasUtil;
@@ -1,44 +1,5 @@
1
1
  import type { Node } from "../../types/javax/jcr/Node";
2
2
 
3
- /**
4
- * <p>
5
- * Creates an archive as sub node of the specified parent.
6
- * </p>
7
- * <p>
8
- * The parent may be either a {@code sv:sitePage}, {@code sv:page}, {@code sv:folder}, {@code sv:article}
9
- * or a {@code sv:collaborationGroupPage}.
10
- * If an other parent is specified a <code>ConstraintViolationException</code> is thrown.
11
- * </p>
12
- *
13
- * <p>Any name can be given an archive. If null is provided a <code>NullPointerException</code> is thrown.</p>
14
- *
15
- * <p>The current user must be authorized to create archives and to do write operations on the parent node or
16
- * a <code>ConstraintViolationException</code> will be thrown.</p>
17
- *
18
- * <p>Note that a new archive inherits metadata and permissions from its parent.</p>
19
- * @param aParent the parent node of the sv:archive. May not be <code>null</code>
20
- * @param aName the name of the archive. May not be <code>null</code>
21
- * @return the newly created sv:archive node.
22
- * @throws ConstraintViolationException if an invalid parent is specified or if the current user is not authorized to create an archive
23
- * @throws RepositoryException if something else goes wrong
24
- */
25
- export function createArchive(aParent: Node, aName: string): Node;
26
-
27
- /**
28
- * <p>Alters the name of an archive. If no archive is specified a <code>NullPointerException</code>
29
- * is thrown. If the node is not a sv:archive an <code>IllegalArgumentException</code> is thrown.</p>
30
- *
31
- * <p>Any name can be given an archive. If null is provided a <code>NullPointerException</code> is thrown.</p>
32
- *
33
- * <p>The current user must be authorized to do write operations on the archive or
34
- * a <code>ConstraintViolationException</code> will be thrown.</p>
35
- * @param anArchive the archive that should be renamed. May not be <code>null</code>
36
- * @param aName the new name of the archive. May not be <code>null</code>
37
- * @throws ConstraintViolationException if the current user is not authorized to alter the name of the archive
38
- * @throws RepositoryException if something else goes wrong
39
- */
40
- export function renameArchive(anArchive: Node, aName: string): void;
41
-
42
3
  /**
43
4
  * Archive utility interface that handles nodes with primary node type <code>sv:archive</code>.
44
5
  *
@@ -49,8 +10,49 @@ export function renameArchive(anArchive: Node, aName: string): void;
49
10
  * @author Mikael Wikblom
50
11
  * @since Sitevision 2.6.2
51
12
  */
52
- declare namespace archiveUtil {
53
- export { createArchive, renameArchive };
13
+ export interface ArchiveUtil {
14
+ /**
15
+ * <p>
16
+ * Creates an archive as sub node of the specified parent.
17
+ * </p>
18
+ * <p>
19
+ * The parent may be either a {@code sv:sitePage}, {@code sv:page}, {@code sv:folder}, {@code sv:article}
20
+ * or a {@code sv:collaborationGroupPage}.
21
+ * If an other parent is specified a <code>ConstraintViolationException</code> is thrown.
22
+ * </p>
23
+ *
24
+ * <p>Any name can be given an archive. If null is provided a <code>NullPointerException</code> is thrown.</p>
25
+ *
26
+ * <p>The current user must be authorized to create archives and to do write operations on the parent node or
27
+ * a <code>ConstraintViolationException</code> will be thrown.</p>
28
+ *
29
+ * <p>Note that a new archive inherits metadata and permissions from its parent.</p>
30
+ * @param aParent the parent node of the sv:archive. May not be <code>null</code>
31
+ * @param aName the name of the archive. May not be <code>null</code>
32
+ * @return the newly created sv:archive node.
33
+ * @throws ConstraintViolationException if an invalid parent is specified or if the current user is not authorized to create an archive
34
+ * @throws RepositoryException if something else goes wrong
35
+ */
36
+ createArchive(aParent: Node, aName: string): Node;
37
+
38
+ /**
39
+ * <p>Alters the name of an archive. If no archive is specified a <code>NullPointerException</code>
40
+ * is thrown. If the node is not a sv:archive an <code>IllegalArgumentException</code> is thrown.</p>
41
+ *
42
+ * <p>Any name can be given an archive. If null is provided a <code>NullPointerException</code> is thrown.</p>
43
+ *
44
+ * <p>The current user must be authorized to do write operations on the archive or
45
+ * a <code>ConstraintViolationException</code> will be thrown.</p>
46
+ * @param anArchive the archive that should be renamed. May not be <code>null</code>
47
+ * @param aName the new name of the archive. May not be <code>null</code>
48
+ * @throws ConstraintViolationException if the current user is not authorized to alter the name of the archive
49
+ * @throws RepositoryException if something else goes wrong
50
+ */
51
+ renameArchive(anArchive: Node, aName: string): void;
54
52
  }
55
53
 
54
+ declare namespace ArchiveUtil {}
55
+
56
+ declare var archiveUtil: ArchiveUtil;
57
+
56
58
  export default archiveUtil;