webdav.client 5.21.5822 → 5.21.5846

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 (208) hide show
  1. package/Help/ClassReference/Create.html +3184 -0
  2. package/Help/ClassReference/ITHit.Environment.html +3119 -0
  3. package/Help/ClassReference/ITHit.LogLevel.html +3356 -0
  4. package/Help/ClassReference/ITHit.Logger.html +3539 -0
  5. package/Help/ClassReference/ITHit.WebDAV.Client.AsyncResult.html +3254 -0
  6. package/Help/ClassReference/ITHit.WebDAV.Client.BrowserExtension.html +3651 -0
  7. package/Help/ClassReference/ITHit.WebDAV.Client.CancellableResult.html +3420 -0
  8. package/Help/ClassReference/ITHit.WebDAV.Client.DavConstants.html +4526 -0
  9. package/Help/ClassReference/ITHit.WebDAV.Client.Depth.html +3193 -0
  10. package/Help/ClassReference/ITHit.WebDAV.Client.DocManager.html +4946 -0
  11. package/Help/ClassReference/ITHit.WebDAV.Client.Encoder.html +3164 -0
  12. package/Help/ClassReference/ITHit.WebDAV.Client.Error.html +3164 -0
  13. package/Help/ClassReference/ITHit.WebDAV.Client.Exceptions.BadRequestException.html +3260 -0
  14. package/Help/ClassReference/ITHit.WebDAV.Client.Exceptions.ConflictException.html +3260 -0
  15. package/Help/ClassReference/ITHit.WebDAV.Client.Exceptions.DependencyFailedException.html +3260 -0
  16. package/Help/ClassReference/ITHit.WebDAV.Client.Exceptions.ForbiddenException.html +3260 -0
  17. package/Help/ClassReference/ITHit.WebDAV.Client.Exceptions.Info.Error.html +3127 -0
  18. package/Help/ClassReference/ITHit.WebDAV.Client.Exceptions.Info.Multistatus.html +3078 -0
  19. package/Help/ClassReference/ITHit.WebDAV.Client.Exceptions.Info.MultistatusResponse.html +3078 -0
  20. package/Help/ClassReference/ITHit.WebDAV.Client.Exceptions.Info.PropertyMultistatus.html +3130 -0
  21. package/Help/ClassReference/ITHit.WebDAV.Client.Exceptions.Info.PropertyMultistatusResponse.html +3078 -0
  22. package/Help/ClassReference/ITHit.WebDAV.Client.Exceptions.InsufficientStorageException.html +3260 -0
  23. package/Help/ClassReference/ITHit.WebDAV.Client.Exceptions.IntegrationException.html +3070 -0
  24. package/Help/ClassReference/ITHit.WebDAV.Client.Exceptions.LockedException.html +3260 -0
  25. package/Help/ClassReference/ITHit.WebDAV.Client.Exceptions.MethodNotAllowedException.html +3260 -0
  26. package/Help/ClassReference/ITHit.WebDAV.Client.Exceptions.NotFoundException.html +3260 -0
  27. package/Help/ClassReference/ITHit.WebDAV.Client.Exceptions.NotImplementedException.html +3260 -0
  28. package/Help/ClassReference/ITHit.WebDAV.Client.Exceptions.Parsers.InsufficientStorage.html +3180 -0
  29. package/Help/ClassReference/ITHit.WebDAV.Client.Exceptions.PreconditionFailedException.html +3260 -0
  30. package/Help/ClassReference/ITHit.WebDAV.Client.Exceptions.PropertyConflictException.html +3305 -0
  31. package/Help/ClassReference/ITHit.WebDAV.Client.Exceptions.PropertyException.html +3305 -0
  32. package/Help/ClassReference/ITHit.WebDAV.Client.Exceptions.PropertyForbiddenException.html +3305 -0
  33. package/Help/ClassReference/ITHit.WebDAV.Client.Exceptions.PropertyNotFoundException.html +3305 -0
  34. package/Help/ClassReference/ITHit.WebDAV.Client.Exceptions.QuotaNotExceededException.html +3260 -0
  35. package/Help/ClassReference/ITHit.WebDAV.Client.Exceptions.SufficientDiskSpaceException.html +3260 -0
  36. package/Help/ClassReference/ITHit.WebDAV.Client.Exceptions.UnauthorizedException.html +3260 -0
  37. package/Help/ClassReference/ITHit.WebDAV.Client.Exceptions.WebDavException.html +3076 -0
  38. package/Help/ClassReference/ITHit.WebDAV.Client.Exceptions.WebDavHttpException.html +3260 -0
  39. package/Help/ClassReference/ITHit.WebDAV.Client.Features.html +3581 -0
  40. package/Help/ClassReference/ITHit.WebDAV.Client.File.html +10760 -0
  41. package/Help/ClassReference/ITHit.WebDAV.Client.Folder.html +12708 -0
  42. package/Help/ClassReference/ITHit.WebDAV.Client.GEditInfo.html +3164 -0
  43. package/Help/ClassReference/ITHit.WebDAV.Client.HierarchyItem.html +9603 -0
  44. package/Help/ClassReference/ITHit.WebDAV.Client.HttpStatus.html +5185 -0
  45. package/Help/ClassReference/ITHit.WebDAV.Client.LockInfo.html +3299 -0
  46. package/Help/ClassReference/ITHit.WebDAV.Client.LockScope.html +3131 -0
  47. package/Help/ClassReference/ITHit.WebDAV.Client.LockUriTokenPair.html +3164 -0
  48. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.CancelUpload.html +3072 -0
  49. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.CopyMove.html +3125 -0
  50. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.Delete.html +3072 -0
  51. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.ErrorResponse.html +3126 -0
  52. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.Get.GoAsync.html +3205 -0
  53. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.Get.html +3079 -0
  54. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.Head.html +3072 -0
  55. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.HttpMethod.html +3140 -0
  56. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.Lock.Go.html +3241 -0
  57. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.Lock.GoAsync.html +3259 -0
  58. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.Lock.html +3082 -0
  59. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.LockRefresh.Go.html +3241 -0
  60. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.LockRefresh.GoAsync.html +3259 -0
  61. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.LockRefresh.html +3082 -0
  62. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.Mkcol.html +3072 -0
  63. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.MultiResponse.html +3126 -0
  64. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.Options.html +3123 -0
  65. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.Propfind.html +3125 -0
  66. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.Proppatch.html +3072 -0
  67. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.Propstat.html +3108 -0
  68. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.Put.html +3072 -0
  69. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.Report.html +3136 -0
  70. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.Response.html +3126 -0
  71. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.ResponseFactory.html +3070 -0
  72. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.Search.html +3072 -0
  73. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.SingleResponse.html +3117 -0
  74. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.Undelete.html +3066 -0
  75. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.Unlock.html +3072 -0
  76. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.UpdateToVersion.html +3072 -0
  77. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.VersionControl.html +3072 -0
  78. package/Help/ClassReference/ITHit.WebDAV.Client.MsOfficeEditExtensions.html +3476 -0
  79. package/Help/ClassReference/ITHit.WebDAV.Client.Multistatus.html +3164 -0
  80. package/Help/ClassReference/ITHit.WebDAV.Client.MultistatusResponse.html +3209 -0
  81. package/Help/ClassReference/ITHit.WebDAV.Client.OptionsInfo.html +3119 -0
  82. package/Help/ClassReference/ITHit.WebDAV.Client.OrderProperty.html +3330 -0
  83. package/Help/ClassReference/ITHit.WebDAV.Client.PageResults.html +3164 -0
  84. package/Help/ClassReference/ITHit.WebDAV.Client.Property.html +3387 -0
  85. package/Help/ClassReference/ITHit.WebDAV.Client.PropertyList.html +3423 -0
  86. package/Help/ClassReference/ITHit.WebDAV.Client.PropertyMultistatusResponse.html +3260 -0
  87. package/Help/ClassReference/ITHit.WebDAV.Client.PropertyName.html +3342 -0
  88. package/Help/ClassReference/ITHit.WebDAV.Client.Request.html +4035 -0
  89. package/Help/ClassReference/ITHit.WebDAV.Client.RequestProgress.html +3344 -0
  90. package/Help/ClassReference/ITHit.WebDAV.Client.ResourceType.html +3131 -0
  91. package/Help/ClassReference/ITHit.WebDAV.Client.ResumableUpload.html +3640 -0
  92. package/Help/ClassReference/ITHit.WebDAV.Client.SPSManager.html +3328 -0
  93. package/Help/ClassReference/ITHit.WebDAV.Client.SearchQuery.html +3344 -0
  94. package/Help/ClassReference/ITHit.WebDAV.Client.Source.html +3164 -0
  95. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.DocManager.MsOfficeEditExtensions.html +3066 -0
  96. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.HierarchyItems.CopyMove.html +3066 -0
  97. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.HierarchyItems.CreateFile.html +3066 -0
  98. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.HierarchyItems.CreateFolder.html +3066 -0
  99. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.HierarchyItems.Delete.html +3066 -0
  100. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.HierarchyItems.GetFolderItems.html +3066 -0
  101. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.HierarchyItems.GetHeadRequests.html +3066 -0
  102. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.HierarchyItems.GetItemByFolder.html +3066 -0
  103. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.HierarchyItems.GetItemBySession.html +3066 -0
  104. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.HierarchyItems.GetParent.html +3066 -0
  105. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.HierarchyItems.ItemExists.html +3066 -0
  106. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.HierarchyItems.MicrosoftOfficeDiscovery.html +3066 -0
  107. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.HierarchyItems.NameCheck.html +3066 -0
  108. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.HierarchyItems.Progress.html +3066 -0
  109. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.HierarchyItems.Refresh.html +3066 -0
  110. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.HierarchyItems.Search.html +3066 -0
  111. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.HierarchyItems.SupportedFeatures.html +3066 -0
  112. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.HierarchyProperties.GetProperties.html +3066 -0
  113. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.HierarchyProperties.UpdateProperties.html +3066 -0
  114. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.Locks.CheckSupport.html +3066 -0
  115. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.Locks.Etag.html +3066 -0
  116. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.Locks.GetLocks.html +3066 -0
  117. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.Locks.Lock.html +3066 -0
  118. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.Locks.RefreshLock.html +3066 -0
  119. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.Versions.GetVersions.html +3066 -0
  120. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.Versions.ManageVersions.html +3066 -0
  121. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.Versions.PutUnderVersion.html +3066 -0
  122. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.Versions.ReadContent.html +3066 -0
  123. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.WebDavSession.Events.html +3066 -0
  124. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.AutoUploader.html +3128 -0
  125. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Collections.Map.html +3288 -0
  126. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Collections.Pair.html +3162 -0
  127. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.ContentWriter.html +3316 -0
  128. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Controls.DropZone.html +3170 -0
  129. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Controls.FSEntryFactory.html +3070 -0
  130. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Controls.HtmlControl.html +3160 -0
  131. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Controls.Input.html +3170 -0
  132. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.DropZoneCollection.html +3511 -0
  133. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Events.AsyncEvent.html +3260 -0
  134. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Events.BaseEvent.html +3066 -0
  135. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Events.BeforeUploadStarted.html +3400 -0
  136. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Events.Error.html +3076 -0
  137. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Events.EventName.html +3217 -0
  138. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Events.ProgressChanged.html +3076 -0
  139. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Events.QueueChanged.html +3072 -0
  140. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Events.StateChanged.html +3076 -0
  141. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Events.UploadError.html +3529 -0
  142. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Events.UploadItemsCreated.html +3516 -0
  143. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.FSEntry.html +3197 -0
  144. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.FileSpan.html +3181 -0
  145. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Groups.Group.html +3136 -0
  146. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Groups.GroupManager.html +3070 -0
  147. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.InputCollection.html +3511 -0
  148. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.ItemSettings.html +3066 -0
  149. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Path.Generator.html +3260 -0
  150. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Path.PathCache.html +3068 -0
  151. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Progress.html +3344 -0
  152. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Providers.ProgressTracker.html +3119 -0
  153. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Providers.UploadDiff.html +3161 -0
  154. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Providers.UploadProvider.html +3207 -0
  155. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Queue.html +3980 -0
  156. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.ServerItem.html +3136 -0
  157. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Settings.html +3218 -0
  158. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.State.html +3401 -0
  159. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.States.BaseState.html +3066 -0
  160. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.States.CanceledState.html +3072 -0
  161. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.States.CompletedState.html +3072 -0
  162. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.States.Factory.html +3070 -0
  163. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.States.PausedState.html +3072 -0
  164. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.States.QueuedState.html +3072 -0
  165. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.States.ResumeState.html +3072 -0
  166. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.States.SkippedState.html +3072 -0
  167. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.States.UploadingState.html +3072 -0
  168. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.UploadItem.html +6299 -0
  169. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.UploadLocation.html +3136 -0
  170. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Uploader.html +3471 -0
  171. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.UploaderSession.html +4661 -0
  172. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Utils.DavUrl.html +3154 -0
  173. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Utils.DavUrlBuilder.html +3119 -0
  174. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Utils.RepeatableAction.html +3235 -0
  175. package/Help/ClassReference/ITHit.WebDAV.Client.UploadProgressInfo.html +3254 -0
  176. package/Help/ClassReference/ITHit.WebDAV.Client.Version.html +4707 -0
  177. package/Help/ClassReference/ITHit.WebDAV.Client.WebDavRequest.html +3070 -0
  178. package/Help/ClassReference/ITHit.WebDAV.Client.WebDavResponse.html +3070 -0
  179. package/Help/ClassReference/ITHit.WebDAV.Client.WebDavSession.html +5383 -0
  180. package/Help/ClassReference/ITHit.WebDAV.Client.WebDavUtil.html +3070 -0
  181. package/Help/ClassReference/fonts/glyphicons-halflings-regular.eot +0 -0
  182. package/Help/ClassReference/fonts/glyphicons-halflings-regular.svg +229 -0
  183. package/Help/ClassReference/fonts/glyphicons-halflings-regular.ttf +0 -0
  184. package/Help/ClassReference/fonts/glyphicons-halflings-regular.woff +0 -0
  185. package/Help/ClassReference/global.html +9143 -0
  186. package/Help/ClassReference/index.html +3786 -0
  187. package/Help/ClassReference/scripts/bootstrap.min.js +7 -0
  188. package/Help/ClassReference/scripts/jquery.min.js +6 -0
  189. package/Help/ClassReference/scripts/jquery.min.map +1 -0
  190. package/Help/ClassReference/scripts/linenumber.js +29 -0
  191. package/Help/ClassReference/scripts/main.js +110 -0
  192. package/Help/ClassReference/scripts/prettify/Apache-License-2.0.txt +202 -0
  193. package/Help/ClassReference/scripts/prettify/lang-css.js +2 -0
  194. package/Help/ClassReference/scripts/prettify/prettify.js +28 -0
  195. package/Help/ClassReference/scripts/underscore-min.js +6 -0
  196. package/Help/ClassReference/scripts/underscore-min.map +1 -0
  197. package/Help/ClassReference/styles/bootstrap.min.css +7 -0
  198. package/Help/ClassReference/styles/jaguar.css +469 -0
  199. package/Help/ClassReference/styles/prettify-jsdoc.css +111 -0
  200. package/Help/ClassReference/styles/prettify-tomorrow.css +132 -0
  201. package/ITHitWebDAVClient.js +2 -2
  202. package/Plugins/ITHitEditDocumentOpener.deb +0 -0
  203. package/Plugins/ITHitEditDocumentOpener.msi +0 -0
  204. package/Plugins/ITHitEditDocumentOpener.pkg +0 -0
  205. package/Plugins/ITHitEditDocumentOpener.rpm +0 -0
  206. package/index.d.ts +1510 -344
  207. package/index.js +1 -1
  208. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -1,12 +1,78 @@
1
1
  // -----------------------------------------------------------------------
2
- // IT Hit WebDAV Ajax Library v5.21.5822.0
2
+ // IT Hit WebDAV Ajax Library v5.21.5846.0
3
3
  // Copyright © 2020 IT Hit LTD. All rights reserved.
4
4
  // License: https://www.webdavsystem.com/ajax/
5
5
  // -----------------------------------------------------------------------
6
6
 
7
7
  export namespace ITHit{
8
- namespace WebDAV{
9
- namespace Client{
8
+ /**
9
+ * Base class for exceptions.
10
+ * @api
11
+ * @class ITHit.Exception
12
+ */
13
+ class Exception {
14
+ /**
15
+ * Exception message.
16
+ * @api
17
+ * @property {String} ITHit.Exception.Message
18
+ * @type {string}
19
+ */
20
+ Message: string
21
+ /**
22
+ * Original exception that caused this exception.
23
+ * @api
24
+ * @property {ITHit.Exception} ITHit.Exception.InnerException
25
+ * @type {ITHit.Exception}
26
+ */
27
+ InnerException: ITHit.Exception
28
+ }/**
29
+ * Detects environment in which JavaScript is running, such as operating system and web browser.
30
+ * @api
31
+ * @class ITHit.Environment
32
+ */
33
+ class Environment {
34
+ }/**
35
+ * Type of information being logged.
36
+ * @api
37
+ * @enum {number}
38
+ * @class ITHit.LogLevel
39
+ */
40
+ class LogLevel {
41
+ }/**
42
+ * Provides static methods for logging.
43
+ * @api
44
+ * @class ITHit.Logger
45
+ */
46
+ namespace Logger{
47
+ /**
48
+ * Adds log listener.
49
+ * @api
50
+ * @param {ITHit.Logger~EventHandler} fHandler Handler function.
51
+ * @param {number} iLogLevel Log level messages capturing.
52
+ */
53
+ function AddListener(fHandler: () => void, iLogLevel: number): void;
54
+ /**
55
+ * Removes log listener.
56
+ * @api
57
+ * @param {ITHit.Logger~EventHandler} fHandler Handler function.
58
+ */
59
+ function RemoveListener(fHandler?: () => void): void;
60
+ /**
61
+ * Writs a message to log with a specified log level. Default log level is {@link ITHit.LogLevel#Info}
62
+ * @api
63
+ * @param {string} sMessage Message to be logged.
64
+ * @param {number} iLogLevel Logging level.
65
+ * @throws ITHit.Exceptions.LoggerException Function was expected as log listener.
66
+ */
67
+ function WriteMessage(sMessage: string, iLogLevel: number): void;
68
+ }class Logger {
69
+ }
70
+ namespace WebDAV{
71
+ /**
72
+ * This namespace provides classes for accessing WebDAV server items, file structure management, properties management and items locking.
73
+ * @namespace ITHit.WebDAV.Client
74
+ */
75
+ namespace Client{
10
76
  /**
11
77
  * The ITHit.WebDav.Client.Exceptions namespace provides classes that represent various WebDAV client library exceptions, erroneous server responses and HTTP errors.
12
78
  * @namespace ITHit.WebDAV.Client.Exceptions
@@ -17,8 +83,9 @@ export namespace ITHit{
17
83
  * Initializes a new instance of the WebDavException class with a specified error message.
18
84
  * @api
19
85
  * @class ITHit.WebDAV.Client.Exceptions.WebDavException
86
+ * @extends ITHit.Exception
20
87
  */
21
- class WebDavException{
88
+ class WebDavException extends ITHit.Exception {
22
89
  }/**
23
90
  * Is thrown whenever and erroneous http response is received. Initializes a new instance of the WebDavHttpException
24
91
  * class with a specified error message, a reference to the inner exception that is the cause of this exception,
@@ -27,8 +94,32 @@ export namespace ITHit{
27
94
  * @class ITHit.WebDAV.Client.Exceptions.WebDavHttpException
28
95
  * @extends ITHit.WebDAV.Client.Exceptions.WebDavException
29
96
  */
30
- class WebDavHttpException{
31
- }/**
97
+ class WebDavHttpException extends ITHit.WebDAV.Client.Exceptions.WebDavException {
98
+ /**
99
+ * Multistatus Contains {@link ITHit.WebDAV.Client.Multistatus} with elements that had errors, if multistatus information was available in response.
100
+ * @api
101
+ * @type {ITHit.WebDAV.Client.Multistatus}
102
+ */
103
+ Multistatus: ITHit.WebDAV.Client.Multistatus
104
+ /**
105
+ * Http status with wich request failed.
106
+ * @api
107
+ * @type {ITHit.WebDAV.Client.HttpStatus}
108
+ */
109
+ Status: ITHit.WebDAV.Client.HttpStatus
110
+ /**
111
+ * Uri for which request failed.
112
+ * @api
113
+ * @type {string}
114
+ */
115
+ Uri: string
116
+ /**
117
+ * Error contains IError with additional info, if error information was available in response.
118
+ * @api
119
+ * @type {ITHit.WebDAV.Client.Error}
120
+ */
121
+ Error: ITHit.WebDAV.Client.Error
122
+ }/**
32
123
  * Is raised whenever property processing was unsuccessfull. Initializes a new instance of the PropertyException
33
124
  * class with a specified error message, a reference to the inner exception that is the cause of this exception,
34
125
  * href of the item and multistatus response caused the error.
@@ -36,13 +127,37 @@ export namespace ITHit{
36
127
  * @class ITHit.WebDAV.Client.Exceptions.PropertyException
37
128
  * @extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException
38
129
  */
39
- class PropertyException{
130
+ class PropertyException extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException {
40
131
  /**
41
132
  * Name of the property processing of which caused the exception.
42
133
  * @api
43
134
  * @type {ITHit.WebDAV.Client.PropertyName}
44
135
  */
45
136
  PropertyName: ITHit.WebDAV.Client.PropertyName
137
+ /**
138
+ * Multistatus Contains {@link ITHit.WebDAV.Client.Multistatus} with elements that had errors, if multistatus information was available in response.
139
+ * @api
140
+ * @type {ITHit.WebDAV.Client.Multistatus}
141
+ */
142
+ Multistatus: ITHit.WebDAV.Client.Multistatus
143
+ /**
144
+ * Http status with wich request failed.
145
+ * @api
146
+ * @type {ITHit.WebDAV.Client.HttpStatus}
147
+ */
148
+ Status: ITHit.WebDAV.Client.HttpStatus
149
+ /**
150
+ * Uri for which request failed.
151
+ * @api
152
+ * @type {string}
153
+ */
154
+ Uri: string
155
+ /**
156
+ * Error contains IError with additional info, if error information was available in response.
157
+ * @api
158
+ * @type {ITHit.WebDAV.Client.Error}
159
+ */
160
+ Error: ITHit.WebDAV.Client.Error
46
161
  }/**
47
162
  * Thrown when server responded with Property Not Found http response. Initializes a new instance of the
48
163
  * PropertyNotFoundException class with a specified error message, a reference to the inner exception that
@@ -51,8 +166,38 @@ export namespace ITHit{
51
166
  * @class ITHit.WebDAV.Client.Exceptions.PropertyNotFoundException
52
167
  * @extends ITHit.WebDAV.Client.Exceptions.PropertyException
53
168
  */
54
- class PropertyNotFoundException{
55
- }/**
169
+ class PropertyNotFoundException extends ITHit.WebDAV.Client.Exceptions.PropertyException {
170
+ /**
171
+ * Name of the property processing of which caused the exception.
172
+ * @api
173
+ * @type {ITHit.WebDAV.Client.PropertyName}
174
+ */
175
+ PropertyName: ITHit.WebDAV.Client.PropertyName
176
+ /**
177
+ * Multistatus Contains {@link ITHit.WebDAV.Client.Multistatus} with elements that had errors, if multistatus information was available in response.
178
+ * @api
179
+ * @type {ITHit.WebDAV.Client.Multistatus}
180
+ */
181
+ Multistatus: ITHit.WebDAV.Client.Multistatus
182
+ /**
183
+ * Http status with wich request failed.
184
+ * @api
185
+ * @type {ITHit.WebDAV.Client.HttpStatus}
186
+ */
187
+ Status: ITHit.WebDAV.Client.HttpStatus
188
+ /**
189
+ * Uri for which request failed.
190
+ * @api
191
+ * @type {string}
192
+ */
193
+ Uri: string
194
+ /**
195
+ * Error contains IError with additional info, if error information was available in response.
196
+ * @api
197
+ * @type {ITHit.WebDAV.Client.Error}
198
+ */
199
+ Error: ITHit.WebDAV.Client.Error
200
+ }/**
56
201
  * Thrown when server responded with Property forbidden http response. Initializes a new instance of the
57
202
  * PropertyForbiddenException class with a specified error message, a reference to the inner exception
58
203
  * that is the cause of this exception, href of the item and multistatus response caused the error.
@@ -60,14 +205,44 @@ export namespace ITHit{
60
205
  * @class ITHit.WebDAV.Client.Exceptions.PropertyForbiddenException
61
206
  * @extends ITHit.WebDAV.Client.Exceptions.PropertyException
62
207
  */
63
- class PropertyForbiddenException{
64
- }/**
208
+ class PropertyForbiddenException extends ITHit.WebDAV.Client.Exceptions.PropertyException {
209
+ /**
210
+ * Name of the property processing of which caused the exception.
211
+ * @api
212
+ * @type {ITHit.WebDAV.Client.PropertyName}
213
+ */
214
+ PropertyName: ITHit.WebDAV.Client.PropertyName
215
+ /**
216
+ * Multistatus Contains {@link ITHit.WebDAV.Client.Multistatus} with elements that had errors, if multistatus information was available in response.
217
+ * @api
218
+ * @type {ITHit.WebDAV.Client.Multistatus}
219
+ */
220
+ Multistatus: ITHit.WebDAV.Client.Multistatus
221
+ /**
222
+ * Http status with wich request failed.
223
+ * @api
224
+ * @type {ITHit.WebDAV.Client.HttpStatus}
225
+ */
226
+ Status: ITHit.WebDAV.Client.HttpStatus
227
+ /**
228
+ * Uri for which request failed.
229
+ * @api
230
+ * @type {string}
231
+ */
232
+ Uri: string
233
+ /**
234
+ * Error contains IError with additional info, if error information was available in response.
235
+ * @api
236
+ * @type {ITHit.WebDAV.Client.Error}
237
+ */
238
+ Error: ITHit.WebDAV.Client.Error
239
+ }/**
65
240
  * Base exception for all exceptions thrown by browser extension integration.
66
241
  * Initializes a new instance of the IntegrationException class with a specified error message.
67
242
  * @api
68
243
  * @class ITHit.WebDAV.Client.Exceptions.IntegrationException
69
244
  */
70
- class IntegrationException{
245
+ class IntegrationException {
71
246
  }/**
72
247
  * Incorrect credentials provided or insufficient permissions to access the requested item. Initializes a new instance
73
248
  * of the UnauthorizedException class with a specified error message, a reference to the inner exception that is the
@@ -76,8 +251,32 @@ export namespace ITHit{
76
251
  * @class ITHit.WebDAV.Client.Exceptions.UnauthorizedException
77
252
  * @extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException
78
253
  */
79
- class UnauthorizedException{
80
- }/**
254
+ class UnauthorizedException extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException {
255
+ /**
256
+ * Multistatus Contains {@link ITHit.WebDAV.Client.Multistatus} with elements that had errors, if multistatus information was available in response.
257
+ * @api
258
+ * @type {ITHit.WebDAV.Client.Multistatus}
259
+ */
260
+ Multistatus: ITHit.WebDAV.Client.Multistatus
261
+ /**
262
+ * Http status with wich request failed.
263
+ * @api
264
+ * @type {ITHit.WebDAV.Client.HttpStatus}
265
+ */
266
+ Status: ITHit.WebDAV.Client.HttpStatus
267
+ /**
268
+ * Uri for which request failed.
269
+ * @api
270
+ * @type {string}
271
+ */
272
+ Uri: string
273
+ /**
274
+ * Error contains IError with additional info, if error information was available in response.
275
+ * @api
276
+ * @type {ITHit.WebDAV.Client.Error}
277
+ */
278
+ Error: ITHit.WebDAV.Client.Error
279
+ }/**
81
280
  * The request could not be understood by the server due to malformed syntax.
82
281
  * Initializes a new instance of the BadRequestException class with a specified error message, a reference to the
83
282
  * inner exception that is the cause of this exception, href of the item and multistatus response caused the error.
@@ -85,8 +284,32 @@ export namespace ITHit{
85
284
  * @class ITHit.WebDAV.Client.Exceptions.BadRequestException
86
285
  * @extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException
87
286
  */
88
- class BadRequestException{
89
- }/**
287
+ class BadRequestException extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException {
288
+ /**
289
+ * Multistatus Contains {@link ITHit.WebDAV.Client.Multistatus} with elements that had errors, if multistatus information was available in response.
290
+ * @api
291
+ * @type {ITHit.WebDAV.Client.Multistatus}
292
+ */
293
+ Multistatus: ITHit.WebDAV.Client.Multistatus
294
+ /**
295
+ * Http status with wich request failed.
296
+ * @api
297
+ * @type {ITHit.WebDAV.Client.HttpStatus}
298
+ */
299
+ Status: ITHit.WebDAV.Client.HttpStatus
300
+ /**
301
+ * Uri for which request failed.
302
+ * @api
303
+ * @type {string}
304
+ */
305
+ Uri: string
306
+ /**
307
+ * Error contains IError with additional info, if error information was available in response.
308
+ * @api
309
+ * @type {ITHit.WebDAV.Client.Error}
310
+ */
311
+ Error: ITHit.WebDAV.Client.Error
312
+ }/**
90
313
  * The request could not be carried because of conflict on server.
91
314
  * Initializes a new instance of the ConflictException class with a specified error message, a reference
92
315
  * to the inner exception that is the cause of this exception, href of the item and multistatus response
@@ -95,8 +318,32 @@ export namespace ITHit{
95
318
  * @class ITHit.WebDAV.Client.Exceptions.ConflictException
96
319
  * @extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException
97
320
  */
98
- class ConflictException{
99
- }/**
321
+ class ConflictException extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException {
322
+ /**
323
+ * Multistatus Contains {@link ITHit.WebDAV.Client.Multistatus} with elements that had errors, if multistatus information was available in response.
324
+ * @api
325
+ * @type {ITHit.WebDAV.Client.Multistatus}
326
+ */
327
+ Multistatus: ITHit.WebDAV.Client.Multistatus
328
+ /**
329
+ * Http status with wich request failed.
330
+ * @api
331
+ * @type {ITHit.WebDAV.Client.HttpStatus}
332
+ */
333
+ Status: ITHit.WebDAV.Client.HttpStatus
334
+ /**
335
+ * Uri for which request failed.
336
+ * @api
337
+ * @type {string}
338
+ */
339
+ Uri: string
340
+ /**
341
+ * Error contains IError with additional info, if error information was available in response.
342
+ * @api
343
+ * @type {ITHit.WebDAV.Client.Error}
344
+ */
345
+ Error: ITHit.WebDAV.Client.Error
346
+ }/**
100
347
  * The item is locked. Initializes a new instance of the LockedException class with a specified error message,
101
348
  * a reference to the inner exception that is the cause of this exception, href of the item and multistatus
102
349
  * response caused the error.
@@ -104,7 +351,7 @@ export namespace ITHit{
104
351
  * @class ITHit.WebDAV.Client.Exceptions.LockedException
105
352
  * @extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException
106
353
  */
107
- class LockedException{
354
+ class LockedException extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException {
108
355
  /**
109
356
  * Multistatus Contains {@link ITHit.WebDAV.Client.Multistatus} with elements that had errors, if multistatus information was available in response.
110
357
  * @api
@@ -137,8 +384,32 @@ export namespace ITHit{
137
384
  * @class ITHit.WebDAV.Client.Exceptions.ForbiddenException
138
385
  * @extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException
139
386
  */
140
- class ForbiddenException{
141
- }/**
387
+ class ForbiddenException extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException {
388
+ /**
389
+ * Multistatus Contains {@link ITHit.WebDAV.Client.Multistatus} with elements that had errors, if multistatus information was available in response.
390
+ * @api
391
+ * @type {ITHit.WebDAV.Client.Multistatus}
392
+ */
393
+ Multistatus: ITHit.WebDAV.Client.Multistatus
394
+ /**
395
+ * Http status with wich request failed.
396
+ * @api
397
+ * @type {ITHit.WebDAV.Client.HttpStatus}
398
+ */
399
+ Status: ITHit.WebDAV.Client.HttpStatus
400
+ /**
401
+ * Uri for which request failed.
402
+ * @api
403
+ * @type {string}
404
+ */
405
+ Uri: string
406
+ /**
407
+ * Error contains IError with additional info, if error information was available in response.
408
+ * @api
409
+ * @type {ITHit.WebDAV.Client.Error}
410
+ */
411
+ Error: ITHit.WebDAV.Client.Error
412
+ }/**
142
413
  * The method is not allowed. Initializes a new instance of the MethodNotAllowedException class with a specified
143
414
  * error message, a reference to the inner exception that is the cause of this exception, href of the item and
144
415
  * multistatus response caused the error.
@@ -146,17 +417,65 @@ export namespace ITHit{
146
417
  * @class ITHit.WebDAV.Client.Exceptions.MethodNotAllowedException
147
418
  * @extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException
148
419
  */
149
- class MethodNotAllowedException{
150
- }/**
151
- * The method is not implemented. Initializes a new instance of the NotImplementedException class with a specified
152
- * error message, a reference to the inner exception that is the cause of this exception, href of the item and
153
- * multistatus response caused the error.
154
- * @api
155
- * @class ITHit.WebDAV.Client.Exceptions.NotImplementedException
156
- * @extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException
157
- */
158
- class NotImplementedException{
159
- }/**
420
+ class MethodNotAllowedException extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException {
421
+ /**
422
+ * Multistatus Contains {@link ITHit.WebDAV.Client.Multistatus} with elements that had errors, if multistatus information was available in response.
423
+ * @api
424
+ * @type {ITHit.WebDAV.Client.Multistatus}
425
+ */
426
+ Multistatus: ITHit.WebDAV.Client.Multistatus
427
+ /**
428
+ * Http status with wich request failed.
429
+ * @api
430
+ * @type {ITHit.WebDAV.Client.HttpStatus}
431
+ */
432
+ Status: ITHit.WebDAV.Client.HttpStatus
433
+ /**
434
+ * Uri for which request failed.
435
+ * @api
436
+ * @type {string}
437
+ */
438
+ Uri: string
439
+ /**
440
+ * Error contains IError with additional info, if error information was available in response.
441
+ * @api
442
+ * @type {ITHit.WebDAV.Client.Error}
443
+ */
444
+ Error: ITHit.WebDAV.Client.Error
445
+ }/**
446
+ * The method is not implemented. Initializes a new instance of the NotImplementedException class with a specified
447
+ * error message, a reference to the inner exception that is the cause of this exception, href of the item and
448
+ * multistatus response caused the error.
449
+ * @api
450
+ * @class ITHit.WebDAV.Client.Exceptions.NotImplementedException
451
+ * @extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException
452
+ */
453
+ class NotImplementedException extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException {
454
+ /**
455
+ * Multistatus Contains {@link ITHit.WebDAV.Client.Multistatus} with elements that had errors, if multistatus information was available in response.
456
+ * @api
457
+ * @type {ITHit.WebDAV.Client.Multistatus}
458
+ */
459
+ Multistatus: ITHit.WebDAV.Client.Multistatus
460
+ /**
461
+ * Http status with wich request failed.
462
+ * @api
463
+ * @type {ITHit.WebDAV.Client.HttpStatus}
464
+ */
465
+ Status: ITHit.WebDAV.Client.HttpStatus
466
+ /**
467
+ * Uri for which request failed.
468
+ * @api
469
+ * @type {string}
470
+ */
471
+ Uri: string
472
+ /**
473
+ * Error contains IError with additional info, if error information was available in response.
474
+ * @api
475
+ * @type {ITHit.WebDAV.Client.Error}
476
+ */
477
+ Error: ITHit.WebDAV.Client.Error
478
+ }/**
160
479
  * The item doesn't exist on the server. Initializes a new instance of the NotFoundException class with a specified
161
480
  * error message, a reference to the inner exception that is the cause of this exception, href of the item and
162
481
  * multistatus response caused the error.
@@ -164,8 +483,32 @@ export namespace ITHit{
164
483
  * @class ITHit.WebDAV.Client.Exceptions.NotFoundException
165
484
  * @extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException
166
485
  */
167
- class NotFoundException{
168
- }/**
486
+ class NotFoundException extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException {
487
+ /**
488
+ * Multistatus Contains {@link ITHit.WebDAV.Client.Multistatus} with elements that had errors, if multistatus information was available in response.
489
+ * @api
490
+ * @type {ITHit.WebDAV.Client.Multistatus}
491
+ */
492
+ Multistatus: ITHit.WebDAV.Client.Multistatus
493
+ /**
494
+ * Http status with wich request failed.
495
+ * @api
496
+ * @type {ITHit.WebDAV.Client.HttpStatus}
497
+ */
498
+ Status: ITHit.WebDAV.Client.HttpStatus
499
+ /**
500
+ * Uri for which request failed.
501
+ * @api
502
+ * @type {string}
503
+ */
504
+ Uri: string
505
+ /**
506
+ * Error contains IError with additional info, if error information was available in response.
507
+ * @api
508
+ * @type {ITHit.WebDAV.Client.Error}
509
+ */
510
+ Error: ITHit.WebDAV.Client.Error
511
+ }/**
169
512
  * Precondition failed. Initializes a new instance of the PreconditionFailedException class with a specified error
170
513
  * message, a reference to the inner exception that is the cause of this exception, href of the item and multistatus
171
514
  * response with error details.
@@ -173,8 +516,32 @@ export namespace ITHit{
173
516
  * @class ITHit.WebDAV.Client.Exceptions.PreconditionFailedException
174
517
  * @extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException
175
518
  */
176
- class PreconditionFailedException{
177
- }/**
519
+ class PreconditionFailedException extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException {
520
+ /**
521
+ * Multistatus Contains {@link ITHit.WebDAV.Client.Multistatus} with elements that had errors, if multistatus information was available in response.
522
+ * @api
523
+ * @type {ITHit.WebDAV.Client.Multistatus}
524
+ */
525
+ Multistatus: ITHit.WebDAV.Client.Multistatus
526
+ /**
527
+ * Http status with wich request failed.
528
+ * @api
529
+ * @type {ITHit.WebDAV.Client.HttpStatus}
530
+ */
531
+ Status: ITHit.WebDAV.Client.HttpStatus
532
+ /**
533
+ * Uri for which request failed.
534
+ * @api
535
+ * @type {string}
536
+ */
537
+ Uri: string
538
+ /**
539
+ * Error contains IError with additional info, if error information was available in response.
540
+ * @api
541
+ * @type {ITHit.WebDAV.Client.Error}
542
+ */
543
+ Error: ITHit.WebDAV.Client.Error
544
+ }/**
178
545
  * The method could not be performed on the resource because the requested action depended on another action
179
546
  * and that action failed. Initializes a new instance of the DependencyFailedException class with a specified
180
547
  * error message, a reference to the inner exception that is the cause of this exception, href of the item
@@ -183,8 +550,32 @@ export namespace ITHit{
183
550
  * @class ITHit.WebDAV.Client.Exceptions.DependencyFailedException
184
551
  * @extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException
185
552
  */
186
- class DependencyFailedException{
187
- }/**
553
+ class DependencyFailedException extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException {
554
+ /**
555
+ * Multistatus Contains {@link ITHit.WebDAV.Client.Multistatus} with elements that had errors, if multistatus information was available in response.
556
+ * @api
557
+ * @type {ITHit.WebDAV.Client.Multistatus}
558
+ */
559
+ Multistatus: ITHit.WebDAV.Client.Multistatus
560
+ /**
561
+ * Http status with wich request failed.
562
+ * @api
563
+ * @type {ITHit.WebDAV.Client.HttpStatus}
564
+ */
565
+ Status: ITHit.WebDAV.Client.HttpStatus
566
+ /**
567
+ * Uri for which request failed.
568
+ * @api
569
+ * @type {string}
570
+ */
571
+ Uri: string
572
+ /**
573
+ * Error contains IError with additional info, if error information was available in response.
574
+ * @api
575
+ * @type {ITHit.WebDAV.Client.Error}
576
+ */
577
+ Error: ITHit.WebDAV.Client.Error
578
+ }/**
188
579
  * Insufficient storage exception. Initializes a new instance of the InsufficientStorageException class with
189
580
  * a specified error message, a reference to the inner exception that is the cause of this exception, href of
190
581
  * the item and error response caused the error.
@@ -192,8 +583,32 @@ export namespace ITHit{
192
583
  * @class ITHit.WebDAV.Client.Exceptions.InsufficientStorageException
193
584
  * @extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException
194
585
  */
195
- class InsufficientStorageException{
196
- }/**
586
+ class InsufficientStorageException extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException {
587
+ /**
588
+ * Multistatus Contains {@link ITHit.WebDAV.Client.Multistatus} with elements that had errors, if multistatus information was available in response.
589
+ * @api
590
+ * @type {ITHit.WebDAV.Client.Multistatus}
591
+ */
592
+ Multistatus: ITHit.WebDAV.Client.Multistatus
593
+ /**
594
+ * Http status with wich request failed.
595
+ * @api
596
+ * @type {ITHit.WebDAV.Client.HttpStatus}
597
+ */
598
+ Status: ITHit.WebDAV.Client.HttpStatus
599
+ /**
600
+ * Uri for which request failed.
601
+ * @api
602
+ * @type {string}
603
+ */
604
+ Uri: string
605
+ /**
606
+ * Error contains IError with additional info, if error information was available in response.
607
+ * @api
608
+ * @type {ITHit.WebDAV.Client.Error}
609
+ */
610
+ Error: ITHit.WebDAV.Client.Error
611
+ }/**
197
612
  * Quota not exceeded exception. Initializes a new instance of the QuotaNotExceededException class with a
198
613
  * specified error message, a reference to the inner exception that is the cause of this exception, href of
199
614
  * the item and error response caused the error.
@@ -201,8 +616,32 @@ export namespace ITHit{
201
616
  * @class ITHit.WebDAV.Client.Exceptions.QuotaNotExceededException
202
617
  * @extends ITHit.WebDAV.Client.Exceptions.InsufficientStorageException
203
618
  */
204
- class QuotaNotExceededException{
205
- }/**
619
+ class QuotaNotExceededException extends ITHit.WebDAV.Client.Exceptions.InsufficientStorageException {
620
+ /**
621
+ * Multistatus Contains {@link ITHit.WebDAV.Client.Multistatus} with elements that had errors, if multistatus information was available in response.
622
+ * @api
623
+ * @type {ITHit.WebDAV.Client.Multistatus}
624
+ */
625
+ Multistatus: ITHit.WebDAV.Client.Multistatus
626
+ /**
627
+ * Http status with wich request failed.
628
+ * @api
629
+ * @type {ITHit.WebDAV.Client.HttpStatus}
630
+ */
631
+ Status: ITHit.WebDAV.Client.HttpStatus
632
+ /**
633
+ * Uri for which request failed.
634
+ * @api
635
+ * @type {string}
636
+ */
637
+ Uri: string
638
+ /**
639
+ * Error contains IError with additional info, if error information was available in response.
640
+ * @api
641
+ * @type {ITHit.WebDAV.Client.Error}
642
+ */
643
+ Error: ITHit.WebDAV.Client.Error
644
+ }/**
206
645
  * Sufficient disk space exception. Initializes a new instance of the SufficientDiskSpaceException class with
207
646
  * a specified error message, a reference to the inner exception that is the cause of this exception, href of
208
647
  * the item and error response caused the error.
@@ -210,14 +649,43 @@ export namespace ITHit{
210
649
  * @class ITHit.WebDAV.Client.Exceptions.SufficientDiskSpaceException
211
650
  * @extends ITHit.WebDAV.Client.Exceptions.InsufficientStorageException
212
651
  */
213
- class SufficientDiskSpaceException{
214
- }}/**
215
- * Represents name of property
216
- * @api
217
- * @class ITHit.WebDAV.Client.PropertyName
218
- */
219
- class PropertyName{
652
+ class SufficientDiskSpaceException extends ITHit.WebDAV.Client.Exceptions.InsufficientStorageException {
220
653
  /**
654
+ * Multistatus Contains {@link ITHit.WebDAV.Client.Multistatus} with elements that had errors, if multistatus information was available in response.
655
+ * @api
656
+ * @type {ITHit.WebDAV.Client.Multistatus}
657
+ */
658
+ Multistatus: ITHit.WebDAV.Client.Multistatus
659
+ /**
660
+ * Http status with wich request failed.
661
+ * @api
662
+ * @type {ITHit.WebDAV.Client.HttpStatus}
663
+ */
664
+ Status: ITHit.WebDAV.Client.HttpStatus
665
+ /**
666
+ * Uri for which request failed.
667
+ * @api
668
+ * @type {string}
669
+ */
670
+ Uri: string
671
+ /**
672
+ * Error contains IError with additional info, if error information was available in response.
673
+ * @api
674
+ * @type {ITHit.WebDAV.Client.Error}
675
+ */
676
+ Error: ITHit.WebDAV.Client.Error
677
+ }}/**
678
+ * Initializes new instance of PropertyName.
679
+ * @classdesc Represents name of property.
680
+ * @constructs
681
+ * @api
682
+ * @param {string} sName Name of the property.
683
+ * @param {string} sNamespaceUri Namespace of the property.
684
+ * @throws ITHit.Exceptions.ArgumentNullException
685
+ */
686
+ class PropertyName {
687
+ constructor(sName: string, sNamespaceUri: string);
688
+ /**
221
689
  * Name of the property.
222
690
  * @api
223
691
  * @type {string}
@@ -241,29 +709,41 @@ export namespace ITHit{
241
709
  * @class ITHit.WebDAV.Client.HttpStatus
242
710
  */
243
711
  namespace HttpStatus{
712
+ /**
713
+ * Parses HttpStatus structure from string containing status information.
714
+ * @api
715
+ * @param {string} sStatus String containing status information.
716
+ * @returns {ITHit.WebDAV.Client.HttpStatus} HttpStatus structure that describes current status.
717
+ */
718
+ function Parse(sStatus: string): ITHit.WebDAV.Client.HttpStatus;
719
+ }class HttpStatus {
244
720
  /**
245
721
  * No status defined.
246
722
  * @api
247
723
  * @type {ITHit.WebDAV.Client.HttpStatus}
248
724
  */
725
+ static None: ITHit.WebDAV.Client.HttpStatus
249
726
  None: ITHit.WebDAV.Client.HttpStatus
250
727
  /**
251
728
  * The request requires user authentication.
252
729
  * @api
253
730
  * @type {ITHit.WebDAV.Client.HttpStatus}
254
731
  */
732
+ static Unauthorized: ITHit.WebDAV.Client.HttpStatus
255
733
  Unauthorized: ITHit.WebDAV.Client.HttpStatus
256
734
  /**
257
735
  * The request has succeeded.
258
736
  * @api
259
737
  * @type {ITHit.WebDAV.Client.HttpStatus}
260
738
  */
739
+ static OK: ITHit.WebDAV.Client.HttpStatus
261
740
  OK: ITHit.WebDAV.Client.HttpStatus
262
741
  /**
263
742
  * The request has been fulfilled and resulted in a new resource being created.
264
743
  * @api
265
744
  * @type {ITHit.WebDAV.Client.HttpStatus}
266
745
  */
746
+ static Created: ITHit.WebDAV.Client.HttpStatus
267
747
  Created: ITHit.WebDAV.Client.HttpStatus
268
748
  /**
269
749
  * The server has fulfilled the request but does not need to return an entity-body, and might want to
@@ -271,18 +751,21 @@ export namespace ITHit{
271
751
  * @api
272
752
  * @type {ITHit.WebDAV.Client.HttpStatus}
273
753
  */
754
+ static NoContent: ITHit.WebDAV.Client.HttpStatus
274
755
  NoContent: ITHit.WebDAV.Client.HttpStatus
275
756
  /**
276
757
  * The server has fulfilled the partial GET request for the resource.
277
758
  * @api
278
759
  * @type {ITHit.WebDAV.Client.HttpStatus}
279
760
  */
761
+ static PartialContent: ITHit.WebDAV.Client.HttpStatus
280
762
  PartialContent: ITHit.WebDAV.Client.HttpStatus
281
763
  /**
282
764
  * This status code provides status for multiple independent operations.
283
765
  * @api
284
766
  * @type {ITHit.WebDAV.Client.HttpStatus}
285
767
  */
768
+ static MultiStatus: ITHit.WebDAV.Client.HttpStatus
286
769
  MultiStatus: ITHit.WebDAV.Client.HttpStatus
287
770
  /**
288
771
  * This status code is used instead if 302 redirect. This is because 302 code is processed automatically
@@ -290,6 +773,7 @@ export namespace ITHit{
290
773
  * @api
291
774
  * @type {ITHit.WebDAV.Client.HttpStatus}
292
775
  */
776
+ static Redirect: ITHit.WebDAV.Client.HttpStatus
293
777
  Redirect: ITHit.WebDAV.Client.HttpStatus
294
778
  /**
295
779
  * The request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat
@@ -297,18 +781,21 @@ export namespace ITHit{
297
781
  * @api
298
782
  * @type {ITHit.WebDAV.Client.HttpStatus}
299
783
  */
784
+ static BadRequest: ITHit.WebDAV.Client.HttpStatus
300
785
  BadRequest: ITHit.WebDAV.Client.HttpStatus
301
786
  /**
302
787
  * The server has not found anything matching the Request-URI.
303
788
  * @api
304
789
  * @type {ITHit.WebDAV.Client.HttpStatus}
305
790
  */
791
+ static NotFound: ITHit.WebDAV.Client.HttpStatus
306
792
  NotFound: ITHit.WebDAV.Client.HttpStatus
307
793
  /**
308
794
  * The method specified in the Request-Line is not allowed for the resource identified by the Request-URI.
309
795
  * @api
310
796
  * @type {ITHit.WebDAV.Client.HttpStatus}
311
797
  */
798
+ static MethodNotAllowed: ITHit.WebDAV.Client.HttpStatus
312
799
  MethodNotAllowed: ITHit.WebDAV.Client.HttpStatus
313
800
  /**
314
801
  * The precondition given in one or more of the request-header fields evaluated to false when it was tested
@@ -316,12 +803,14 @@ export namespace ITHit{
316
803
  * @api
317
804
  * @type {ITHit.WebDAV.Client.HttpStatus}
318
805
  */
806
+ static PreconditionFailed: ITHit.WebDAV.Client.HttpStatus
319
807
  PreconditionFailed: ITHit.WebDAV.Client.HttpStatus
320
808
  /**
321
809
  * The source or destination resource of a method is locked.
322
810
  * @api
323
811
  * @type {ITHit.WebDAV.Client.HttpStatus}
324
812
  */
813
+ static Locked: ITHit.WebDAV.Client.HttpStatus
325
814
  Locked: ITHit.WebDAV.Client.HttpStatus
326
815
  /**
327
816
  * The method could not be performed on the resource because the requested action depended on another
@@ -329,24 +818,28 @@ export namespace ITHit{
329
818
  * @api
330
819
  * @type {ITHit.WebDAV.Client.HttpStatus}
331
820
  */
821
+ static DependencyFailed: ITHit.WebDAV.Client.HttpStatus
332
822
  DependencyFailed: ITHit.WebDAV.Client.HttpStatus
333
823
  /**
334
824
  * The server understood the request, but is refusing to fulfill it.
335
825
  * @api
336
826
  * @type {ITHit.WebDAV.Client.HttpStatus}
337
827
  */
828
+ static Forbidden: ITHit.WebDAV.Client.HttpStatus
338
829
  Forbidden: ITHit.WebDAV.Client.HttpStatus
339
830
  /**
340
831
  * The request could not be completed due to a conflict with the current state of the resource.
341
832
  * @api
342
833
  * @type {ITHit.WebDAV.Client.HttpStatus}
343
834
  */
835
+ static Conflict: ITHit.WebDAV.Client.HttpStatus
344
836
  Conflict: ITHit.WebDAV.Client.HttpStatus
345
837
  /**
346
838
  * The server does not support the functionality required to fulfill the request.
347
839
  * @api
348
840
  * @type {ITHit.WebDAV.Client.HttpStatus}
349
841
  */
842
+ static NotImplemented: ITHit.WebDAV.Client.HttpStatus
350
843
  NotImplemented: ITHit.WebDAV.Client.HttpStatus
351
844
  /**
352
845
  * The server, while acting as a gateway or proxy, received an invalid response from the upstream
@@ -354,6 +847,7 @@ export namespace ITHit{
354
847
  * @api
355
848
  * @type {ITHit.WebDAV.Client.HttpStatus}
356
849
  */
850
+ static BadGateway: ITHit.WebDAV.Client.HttpStatus
357
851
  BadGateway: ITHit.WebDAV.Client.HttpStatus
358
852
  /**
359
853
  * The method could not be performed on the resource because the server is unable to store the
@@ -361,16 +855,19 @@ export namespace ITHit{
361
855
  * @api
362
856
  * @type {ITHit.WebDAV.Client.HttpStatus}
363
857
  */
858
+ static InsufficientStorage: ITHit.WebDAV.Client.HttpStatus
364
859
  InsufficientStorage: ITHit.WebDAV.Client.HttpStatus
365
860
  /**
366
- * Parses HttpStatus structure from string containing status information.
367
- * @api
368
- * @param {string} sStatus String containing status information.
369
- * @returns {ITHit.WebDAV.Client.HttpStatus} HttpStatus structure that describes current status.
370
- */
371
- function Parse(sStatus: string): ITHit.WebDAV.Client.HttpStatus;
372
- }class HttpStatus{
373
- /**
861
+ * @api
862
+ * @type {number}
863
+ */
864
+ Code: number
865
+ /**
866
+ * @api
867
+ * @type {string}
868
+ */
869
+ Description: string
870
+ /**
374
871
  * Indicates whether the current HttpStatus structure is equal to another HttpStatus structure.
375
872
  * @api
376
873
  * @param {ITHit.WebDAV.Client.HttpStatus} oHttpStatus HttpStatus object to compare.
@@ -447,7 +944,7 @@ export namespace ITHit{
447
944
  * @param {string} [sNamespace] Namespace of the property.
448
945
  * @throws ITHit.Exception
449
946
  */
450
- class Property{
947
+ class Property {
451
948
  constructor(sName: string | ITHit.WebDAV.Client.PropertyName, sValue?: string, sNamespace?: string);
452
949
  /**
453
950
  * Property Name.
@@ -473,7 +970,7 @@ export namespace ITHit{
473
970
  * @api
474
971
  * @class ITHit.WebDAV.Client.AsyncResult
475
972
  */
476
- class AsyncResult{
973
+ class AsyncResult {
477
974
  /**
478
975
  * Result value. Can be any type, each method may put there appropriate object which before was returned directly.
479
976
  * Null if request was unsuccessful.
@@ -507,7 +1004,7 @@ export namespace ITHit{
507
1004
  * @param {ITHit.WebDAV.Client.PropertyName} sProperty Property name.
508
1005
  * @param {boolean} sAscending Order direction.
509
1006
  */
510
- class OrderProperty{
1007
+ class OrderProperty {
511
1008
  constructor(sProperty: ITHit.WebDAV.Client.PropertyName, sAscending: boolean);
512
1009
  /**
513
1010
  * Property name.
@@ -533,29 +1030,30 @@ export namespace ITHit{
533
1030
  * @enum {string}
534
1031
  * @class ITHit.WebDAV.Client.ResourceType
535
1032
  */
536
- namespace ResourceType{
1033
+ class ResourceType {
537
1034
  /**
538
1035
  * Item is folder.
539
1036
  * @api
540
1037
  * @readonly
541
1038
  * @type {string}
542
1039
  */
543
- const Folder: string
1040
+ static readonly Folder: string
1041
+ readonly Folder: string
544
1042
  /**
545
1043
  * Item is file.
546
1044
  * @api
547
1045
  * @readonly
548
1046
  * @type {string}
549
1047
  */
550
- const File: string
551
- }class ResourceType{
552
- }/**
1048
+ static readonly File: string
1049
+ readonly File: string
1050
+ }/**
553
1051
  * List of WebDAV properties.
554
1052
  * @api
555
1053
  * @class ITHit.WebDAV.Client.PropertyList
556
1054
  * @extends Array
557
1055
  */
558
- class PropertyList{
1056
+ class PropertyList extends Array {
559
1057
  /**
560
1058
  * Returns true if the with the specified property name and namespace exists in property list.
561
1059
  * Returns false if does not exist.
@@ -578,7 +1076,7 @@ export namespace ITHit{
578
1076
  * @api
579
1077
  * @class ITHit.WebDAV.Client.Multistatus
580
1078
  */
581
- class Multistatus{
1079
+ class Multistatus {
582
1080
  /**
583
1081
  * Gets the generic description, if available.
584
1082
  * @api
@@ -596,7 +1094,7 @@ export namespace ITHit{
596
1094
  * @api
597
1095
  * @class ITHit.WebDAV.Client.MultistatusResponse
598
1096
  */
599
- class MultistatusResponse{
1097
+ class MultistatusResponse {
600
1098
  /**
601
1099
  * Request href
602
1100
  * @api
@@ -621,40 +1119,59 @@ export namespace ITHit{
621
1119
  * @class ITHit.WebDAV.Client.PropertyMultistatusResponse
622
1120
  * @extends ITHit.WebDAV.Client.MultistatusResponse
623
1121
  */
624
- class PropertyMultistatusResponse{
1122
+ class PropertyMultistatusResponse extends ITHit.WebDAV.Client.MultistatusResponse {
625
1123
  /**
626
1124
  * Name of the property, if element is property. Otherwise null.
627
1125
  * @api
628
1126
  * @type {ITHit.WebDAV.Client.PropertyName}
629
1127
  */
630
1128
  PropertyName: ITHit.WebDAV.Client.PropertyName
631
- }/**
632
- * Scope of the lock.
633
- * Represents exclusive or shared lock.
634
- * @api
635
- * @enum {string}
636
- * @class ITHit.WebDAV.Client.LockScope
637
- */
638
- namespace LockScope{
639
- /**
640
- * Exclusive lock. No one else can obtain the lock.
641
- * @api
642
- * @type {string}
643
- */
644
- Exclusive: string
645
1129
  /**
646
- * Shared lock. It will be possible for another clients to get the shared locks.
647
- * @api
648
- * @property {string}
649
- */
650
- function Shared(): void;
651
- }class LockScope{
652
- }/**
1130
+ * Request href
1131
+ * @api
1132
+ * @type {string}
1133
+ */
1134
+ Href: string
1135
+ /**
1136
+ * Array of the errors returned by server.
1137
+ * @api
1138
+ * @type {string}
1139
+ */
1140
+ Description: string
1141
+ /**
1142
+ * HTTP Status of the operation.
1143
+ * @api
1144
+ * @type {ITHit.WebDAV.Client.HttpStatus}
1145
+ */
1146
+ Status: ITHit.WebDAV.Client.HttpStatus
1147
+ }/**
1148
+ * Scope of the lock.
1149
+ * Represents exclusive or shared lock.
1150
+ * @api
1151
+ * @enum {string}
1152
+ * @class ITHit.WebDAV.Client.LockScope
1153
+ */
1154
+ class LockScope {
1155
+ /**
1156
+ * Exclusive lock. No one else can obtain the lock.
1157
+ * @api
1158
+ * @type {string}
1159
+ */
1160
+ static Exclusive: string
1161
+ Exclusive: string
1162
+ /**
1163
+ * Shared lock. It will be possible for another clients to get the shared locks.
1164
+ * @api
1165
+ * @type {string}
1166
+ */
1167
+ static Shared: string
1168
+ Shared: string
1169
+ }/**
653
1170
  * Represents pair of resource uri - lock token. Is used to access locked resources.
654
1171
  * @api
655
1172
  * @class ITHit.WebDAV.Client.LockUriTokenPair
656
1173
  */
657
- class LockUriTokenPair{
1174
+ class LockUriTokenPair {
658
1175
  /**
659
1176
  * Path to the locked resource.
660
1177
  * @api
@@ -672,7 +1189,7 @@ export namespace ITHit{
672
1189
  * @api
673
1190
  * @class ITHit.WebDAV.Client.LockInfo
674
1191
  */
675
- class LockInfo{
1192
+ class LockInfo {
676
1193
  /**
677
1194
  * Scope of the lock.
678
1195
  * @api
@@ -708,7 +1225,7 @@ export namespace ITHit{
708
1225
  * @api
709
1226
  * @class ITHit.WebDAV.Client.OptionsInfo
710
1227
  */
711
- class OptionsInfo{
1228
+ class OptionsInfo {
712
1229
  /**
713
1230
  * Features supported by WebDAV server. See Features Enumeration {@link ITHit.WebDAV.Client.Features}.
714
1231
  * @api
@@ -721,7 +1238,7 @@ export namespace ITHit{
721
1238
  * @enum {number}
722
1239
  * @class ITHit.WebDAV.Client.Features
723
1240
  */
724
- namespace Features{
1241
+ class Features {
725
1242
  /**
726
1243
  * WebDAV Class 1 compliant item.
727
1244
  * Class 1 items does not support locking.
@@ -729,7 +1246,8 @@ export namespace ITHit{
729
1246
  * @readonly
730
1247
  * @type {number}
731
1248
  */
732
- const Class1: number
1249
+ static readonly Class1: number
1250
+ readonly Class1: number
733
1251
  /**
734
1252
  * WebDAV Class 2 compliant item.
735
1253
  * Class 2 items support locking.
@@ -737,141 +1255,389 @@ export namespace ITHit{
737
1255
  * @readonly
738
1256
  * @type {number}
739
1257
  */
740
- const Class2: number
1258
+ static readonly Class2: number
1259
+ readonly Class2: number
741
1260
  /**
742
1261
  * WebDAV Class 3 compliant item.
743
1262
  * @api
744
1263
  * @readonly
745
1264
  * @type {number}
746
1265
  */
747
- const Class3: number
1266
+ static readonly Class3: number
1267
+ readonly Class3: number
748
1268
  /**
749
1269
  * WevDAV paging compliant item.
750
1270
  * @api
751
1271
  * @readonly
752
1272
  * @type {number}
753
1273
  */
754
- const VersionControl: number
1274
+ static readonly VersionControl: number
1275
+ readonly VersionControl: number
755
1276
  /**
756
1277
  * DeltaV version-control compliant item.
757
1278
  * @api
758
1279
  * @readonly
759
1280
  * @type {number}
760
1281
  */
761
- const Paging: number
1282
+ static readonly Paging: number
1283
+ readonly Paging: number
762
1284
  /**
763
1285
  * Checkout-in-place item support check out, check in and uncheckout operations.
764
1286
  * @api
765
1287
  * @readonly
766
1288
  * @type {number}
767
1289
  */
768
- const CheckoutInPlace: number
1290
+ static readonly CheckoutInPlace: number
1291
+ readonly CheckoutInPlace: number
769
1292
  /**
770
1293
  * DeltaV Version History compliant item.
771
1294
  * @api
772
1295
  * @readonly
773
1296
  * @type {number}
774
1297
  */
775
- const VersionHistory: number
1298
+ static readonly VersionHistory: number
1299
+ readonly VersionHistory: number
776
1300
  /**
777
1301
  * DeltaV Update compliant item.
778
1302
  * @api
779
1303
  * @readonly
780
1304
  * @type {number}
781
1305
  */
782
- const Update: number
1306
+ static readonly Update: number
1307
+ readonly Update: number
783
1308
  /**
784
1309
  * The item supports resumable upload.
785
1310
  * @api
786
1311
  * @readonly
787
1312
  * @type {number}
788
1313
  */
789
- const ResumableUpload: number
1314
+ static readonly ResumableUpload: number
1315
+ readonly ResumableUpload: number
790
1316
  /**
791
1317
  * The item supports resumable download.
792
1318
  * @api
793
1319
  * @readonly
794
1320
  * @type {number}
795
1321
  */
796
- const ResumableDownload: number
1322
+ static readonly ResumableDownload: number
1323
+ readonly ResumableDownload: number
797
1324
  /**
798
1325
  * The item supports search.
799
1326
  * @api
800
1327
  * @readonly
801
1328
  * @type {number}
802
1329
  */
803
- const Dasl: number
1330
+ static readonly Dasl: number
1331
+ readonly Dasl: number
804
1332
  /**
805
1333
  * The item supports GSuite editing.
806
1334
  * @api
807
1335
  * @readonly
808
1336
  * @type {number}
809
1337
  */
810
- const GSuite: number
811
- }class Features{
812
- }/**
1338
+ static readonly GSuite: number
1339
+ readonly GSuite: number
1340
+ }/**
813
1341
  * Represents one WebDAV item (file, folder or lock-null).
814
1342
  * @api
815
1343
  * @class ITHit.WebDAV.Client.HierarchyItem
816
1344
  */
817
- class HierarchyItem{
818
- }/**
1345
+ class HierarchyItem {
1346
+ /**
1347
+ * Current WebDAV session.
1348
+ * @api
1349
+ * @type {ITHit.WebDAV.Client.WebDavSession}
1350
+ */
1351
+ Session: ITHit.WebDAV.Client.WebDavSession
1352
+ /**
1353
+ * This item path on the server.
1354
+ * @api
1355
+ * @type {string}
1356
+ */
1357
+ Href: string
1358
+ /**
1359
+ * Most recent modification date.
1360
+ * @api
1361
+ * @type {Date}
1362
+ */
1363
+ LastModified: Date
1364
+ /**
1365
+ * User friendly item name.
1366
+ * @api
1367
+ * @type {string}
1368
+ */
1369
+ DisplayName: string
1370
+ /**
1371
+ * The date item was created.
1372
+ * @api
1373
+ * @type {Date}
1374
+ */
1375
+ CreationDate: Date
1376
+ /**
1377
+ * Type of the item (File or Folder).
1378
+ * @api
1379
+ * @type {string}
1380
+ * @see ITHit.WebDAV.Client.ResourceType
1381
+ */
1382
+ ResourceType: string
1383
+ /**
1384
+ * Retrieves information about supported locks. Item can support exclusive, shared locks or do not support
1385
+ * any locks. If you set exclusive lock other users will not be able to set any locks. If you set shared
1386
+ * lock other users will be able to set shared lock on the item.
1387
+ * @api
1388
+ * @examplecode ITHit.WebDAV.Client.Tests.Locks.CheckSupport.CheckLockSupport
1389
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Locks.CheckSupport.CheckLockSupport
1390
+ * @type {Array.<string>}
1391
+ * @see ITHit.WebDAV.Client.LockScope
1392
+ */
1393
+ SupportedLocks: string[]
1394
+ /**
1395
+ * List of locks applied to this item.
1396
+ * @examplecode ITHit.WebDAV.Client.Tests.Locks.GetLocks.GetList
1397
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Locks.GetLocks.GetList
1398
+ * @api
1399
+ * @type {Array.<ITHit.WebDAV.Client.LockInfo>}
1400
+ */
1401
+ ActiveLocks: ITHit.WebDAV.Client.LockInfo[]
1402
+ /**
1403
+ * List of item properties.
1404
+ * @api
1405
+ * @type {ITHit.WebDAV.Client.PropertyList}
1406
+ */
1407
+ Properties: ITHit.WebDAV.Client.PropertyList
1408
+ /**
1409
+ * Returns true if file is under version control. Otherwise false. To detect if version control could
1410
+ * be enabled for this item call GetSupportedFeaturesAsync and check for VersionControl token.
1411
+ * To enable version control call PutUnderVersionControlAsync.
1412
+ * @api
1413
+ * @returns {boolean} Boolean, if true - versions supported
1414
+ */
1415
+ /**
1416
+ * Number of bytes available for this user on server. -1 if server does not support Quota.
1417
+ * @api
1418
+ * @type {number}
1419
+ */
1420
+ AvailableBytes: number
1421
+ /**
1422
+ * Number of bytes used by this user on server. -1 if server does not support Quota.
1423
+ * @api
1424
+ * @type {number}
1425
+ */
1426
+ UsedBytes: number
1427
+ /**
1428
+ * Refreshes item loading data from server.
1429
+ * @api
1430
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.Refresh.Refresh
1431
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.Refresh.Refresh
1432
+ * @param {ITHit.WebDAV.Client.HierarchyItem~RefreshAsyncCallback} fCallback Function to call when operation is completed.
1433
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
1434
+ */
1435
+ RefreshAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
1436
+ /**
1437
+ * Copies this item to destination folder.
1438
+ * @api
1439
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.CopyMove.Copy
1440
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.CopyMove.Copy
1441
+ * @param {ITHit.WebDAV.Client.Folder} oDestinationFolder Folder to move to.
1442
+ * @param {string} sDestinationName Name to assign to copied item.
1443
+ * @param {boolean} bDeep Indicates whether children of this item should be copied.
1444
+ * @param {boolean} bOverwrite Whether existing destination item shall be overwritten.
1445
+ * @param {ITHit.WebDAV.Client.LockUriTokenPair[]} [oLockTokens] Lock tokens for destination folder.
1446
+ * @param {ITHit.WebDAV.Client.HierarchyItem~CopyToAsyncCallback} fCallback Function to call when operation is completed.
1447
+ */
1448
+ CopyToAsync(oDestinationFolder: ITHit.WebDAV.Client.Folder, sDestinationName: string, bDeep: boolean, bOverwrite: boolean, oLockTokens?: ITHit.WebDAV.Client.LockUriTokenPair[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): void;
1449
+ /**
1450
+ * Deletes this item.
1451
+ * @api
1452
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.Delete.Delete
1453
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.Delete.Delete
1454
+ * @param {ITHit.WebDAV.Client.LockUriTokenPair} oLockTokens Lock tokens for this item or any locked child item.
1455
+ * @param {ITHit.WebDAV.Client.HierarchyItem~DeleteAsyncCallback} fCallback Function to call when operation is completed.
1456
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
1457
+ */
1458
+ DeleteAsync(oLockTokens: ITHit.WebDAV.Client.LockUriTokenPair, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
1459
+ /**
1460
+ * Returns names of all custom properties exposed by this item.
1461
+ * @api
1462
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyProperties.GetProperties.GetPropertyNames
1463
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyProperties.GetProperties.GetPropertyNames
1464
+ * @param {ITHit.WebDAV.Client.HierarchyItem~GetPropertyNamesAsyncCallback} fCallback Function to call when operation is completed.
1465
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
1466
+ */
1467
+ GetPropertyNamesAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
1468
+ /**
1469
+ * Retrieves values of specific properties.
1470
+ * @api
1471
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyProperties.GetProperties.GetPropertyValues
1472
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyProperties.GetProperties.GetPropertyValues
1473
+ * @param {ITHit.WebDAV.Client.PropertyName[]} aNames
1474
+ * @param {ITHit.WebDAV.Client.HierarchyItem~GetPropertyValuesAsyncCallback} fCallback Function to call when operation is completed.
1475
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
1476
+ */
1477
+ GetPropertyValuesAsync(aNames: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
1478
+ /**
1479
+ * Retrieves all custom properties exposed by the item.
1480
+ * @api
1481
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyProperties.GetProperties.GetAllProperties
1482
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyProperties.GetProperties.GetAllProperties
1483
+ * @param {ITHit.WebDAV.Client.HierarchyItem~GetAllPropertiesAsyncCallback} fCallback Function to call when operation is completed.
1484
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
1485
+ */
1486
+ GetAllPropertiesAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
1487
+ /**
1488
+ * Retrieves parent hierarchy item of this item.
1489
+ * @api
1490
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.GetParent.GetParent
1491
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.GetParent.GetParent
1492
+ * @param {ITHit.WebDAV.Client.PropertyName[]} aProperties Additional properties requested from server. Default is empty array.
1493
+ * @param {ITHit.WebDAV.Client.HierarchyItem~GetParentAsyncCallback} fCallback Function to call when operation is completed.
1494
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
1495
+ */
1496
+ GetParentAsync(aProperties: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
1497
+ /**
1498
+ * Retrieves media type independent links.
1499
+ * @api
1500
+ * @param {ITHit.WebDAV.Client.HierarchyItem~GetSourceAsyncCallback} fCallback Function to call when operation is completed.
1501
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
1502
+ */
1503
+ GetSourceAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
1504
+ /**
1505
+ * Locks the item. If the lock was successfully applied, the server will return a lock token. You will pass this
1506
+ * lock token back to the server when updating and unlocking the item. The actual lock time applied by the server
1507
+ * may be different from the one requested by the client.
1508
+ * @api
1509
+ * @examplecode ITHit.WebDAV.Client.Tests.Locks.Lock.SetLock
1510
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Locks.Lock.SetLock
1511
+ * @param {string} sLockScope Scope of the lock. See LockScope Enumeration {@link ITHit.WebDAV.Client.LockScope}
1512
+ * @param {boolean} bDeep Whether to lock entire subtree.
1513
+ * @param {string} sOwner Owner of the lock.
1514
+ * @param {number} iTimeout Timeout after which lock expires. Pass -1 to request an infinite timeout.
1515
+ * @param {ITHit.WebDAV.Client.HierarchyItem~LockAsyncCallback} fCallback Function to call when operation is completed.
1516
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
1517
+ */
1518
+ LockAsync(sLockScope: string, bDeep: boolean, sOwner: string, iTimeout: number, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
1519
+ /**
1520
+ * Moves this item to another location.
1521
+ * @api
1522
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.CopyMove.Move
1523
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.CopyMove.Move
1524
+ * @param {ITHit.WebDAV.Client.Folder} oDestinationFolder Folder to move to.
1525
+ * @param {string} sDestinationName Name to assign to moved item.
1526
+ * @param {boolean} bOverwrite Whether existing destination item shall be overwritten.
1527
+ * @param {(string|ITHit.WebDAV.Client.LockUriTokenPair[])} oLockTokens Lock tokens for item to be moved, for destination folder or file to be overwritten that are locked.
1528
+ * @param {ITHit.WebDAV.Client.HierarchyItem~MoveToAsyncCallback} fCallback Function to call when operation is completed.
1529
+ * @return {ITHit.WebDAV.Client.Request} Request object.
1530
+ */
1531
+ MoveToAsync(oDestinationFolder: ITHit.WebDAV.Client.Folder, sDestinationName: string, bOverwrite: boolean, oLockTokens: string | ITHit.WebDAV.Client.LockUriTokenPair[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
1532
+ /**
1533
+ * Prolongs the lock.
1534
+ * @api
1535
+ * @examplecode ITHit.WebDAV.Client.Tests.Locks.RefreshLock.RefreshLock
1536
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Locks.RefreshLock.RefreshLock
1537
+ * @param {string} sLockToken Identifies lock to be prolonged.
1538
+ * @param {number} iTimeout New timeout to set.
1539
+ * @param {ITHit.WebDAV.Client.HierarchyItem~RefreshLockAsyncCallback} fCallback Function to call when operation is completed.
1540
+ * @return {ITHit.WebDAV.Client.Request} Request object.
1541
+ */
1542
+ RefreshLockAsync(sLockToken: string, iTimeout: number, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
1543
+ /**
1544
+ * Gets features supported by this item, such as WebDAV class support.
1545
+ * @api
1546
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.SupportedFeatures.SupportedFeatures
1547
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.SupportedFeatures.SupportedFeatures
1548
+ * @param {ITHit.WebDAV.Client.HierarchyItem~GetSupportedFeaturesAsyncCallback} fCallback Function to call when operation is completed.
1549
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
1550
+ */
1551
+ GetSupportedFeaturesAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
1552
+ /**
1553
+ * Removes the lock.
1554
+ * @api
1555
+ * @examplecode ITHit.WebDAV.Client.Tests.Locks.Lock.SetUnLock
1556
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Locks.Lock.SetUnLock
1557
+ * @param {string} sLockToken Identifies lock to be prolonged.
1558
+ * @param {ITHit.WebDAV.Client.HierarchyItem~UnlockAsyncCallback} fCallback Function to call when operation is completed.
1559
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
1560
+ */
1561
+ UnlockAsync(sLockToken: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
1562
+ /**
1563
+ * Updates values of properties exposed by this item.
1564
+ * @api
1565
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyProperties.UpdateProperties.Update
1566
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyProperties.UpdateProperties.Delete
1567
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyProperties.UpdateProperties.Update
1568
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyProperties.UpdateProperties.Delete
1569
+ * @param {ITHit.WebDAV.Client.Property[]} oPropertiesToAddOrUpdate Properties to be updated.
1570
+ * @param {ITHit.WebDAV.Client.PropertyName[]} oPropertiesToDelete Names of properties to be removed from this item.
1571
+ * @param {string} [sLockToken] Lock token.
1572
+ * @param {ITHit.WebDAV.Client.HierarchyItem~UpdatePropertiesAsyncCallback} fCallback Function to call when operation is completed.
1573
+ * @returns {ITHit.WebDAV.Client.WebDavRequest|null} WebDAV request
1574
+ */
1575
+ UpdatePropertiesAsync(oPropertiesToAddOrUpdate: ITHit.WebDAV.Client.Property[], oPropertiesToDelete: ITHit.WebDAV.Client.PropertyName[], sLockToken?: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.WebDavRequest | null;
1576
+ }/**
819
1577
  * The class represents set of extensions to be edited with Microsoft Office.
820
1578
  * @api
821
1579
  * @class ITHit.WebDAV.Client.MsOfficeEditExtensions
822
1580
  * @examplecode ITHit.WebDAV.Client.Tests.DocManager.MsOfficeEditExtensions.EditRtfDocumentWithWord
1581
+ * @examplecode ITHit.WebDAV.Client.TSExamples.DocManager.MsOfficeEditExtensions.EditRtfDocumentWithWord
823
1582
  */
824
- namespace MsOfficeEditExtensions{
1583
+ class MsOfficeEditExtensions {
825
1584
  /**
826
1585
  * Array of file extensions which are opened with Microsoft Access.
827
1586
  * @api
828
- * @type {array}
1587
+ * @type {Array.<string>}
829
1588
  */
830
- Access: array
1589
+ static Access: string[]
1590
+ Access: string[]
831
1591
  /**
832
1592
  * Array of file extensions which are opened with Microsoft Infopath.
833
1593
  * @api
834
- * @type {array}
1594
+ * @type {Array.<string>}
835
1595
  */
836
- Infopath: array
1596
+ static Infopath: string[]
1597
+ Infopath: string[]
837
1598
  /**
838
1599
  * Array of file extensions which are opened with Microsoft Excel.
839
1600
  * @api
840
- * @type {array}
1601
+ * @type {Array.<string>}
841
1602
  */
842
- Excel: array
1603
+ static Excel: string[]
1604
+ Excel: string[]
843
1605
  /**
844
1606
  * Array of file extensions which are opened with Microsoft Powerpoint.
845
1607
  * @api
846
- * @type {array}
1608
+ * @type {Array.<string>}
847
1609
  */
848
- Powerpoint: array
1610
+ static Powerpoint: string[]
1611
+ Powerpoint: string[]
849
1612
  /**
850
1613
  * Array of file extensions which are opened with Microsoft Project.
851
1614
  * @api
852
- * @type {array}
1615
+ * @type {Array.<string>}
853
1616
  */
854
- Project: array
1617
+ static Project: string[]
1618
+ Project: string[]
855
1619
  /**
856
1620
  * Array of file extensions which are opened with Microsoft Publisher.
857
1621
  * @api
858
- * @type {array}
1622
+ * @type {Array.<string>}
859
1623
  */
860
- Publisher: array
1624
+ static Publisher: string[]
1625
+ Publisher: string[]
861
1626
  /**
862
1627
  * Array of file extensions which are opened with Microsoft Visio.
863
1628
  * @api
864
- * @type {array}
1629
+ * @type {Array.<string>}
865
1630
  */
866
- Visio: array
1631
+ static Visio: string[]
1632
+ Visio: string[]
867
1633
  /**
868
1634
  * Array of file extensions which are opened with Microsoft Word.
869
1635
  * @api
870
- * @type {array}
1636
+ * @type {Array.<string>}
871
1637
  */
872
- Word: array
873
- }class MsOfficeEditExtensions{
874
- }/**
1638
+ static Word: string[]
1639
+ Word: string[]
1640
+ }/**
875
1641
  * This class provides methods for opening documents for editing directly from server and saving back to server
876
1642
  * without download and upload steps. This includes editing Microsoft Office documents as well as any other file
877
1643
  * types and works on Windows, Mac OS X and Linux.
@@ -880,27 +1646,11 @@ export namespace ITHit{
880
1646
  */
881
1647
  namespace DocManager{
882
1648
  /**
883
- * Collection of extensions of files which are opened with Microsoft Office.
1649
+ * Gets file names of the protocol installer depending on OS.
884
1650
  * @api
885
- * @type {ITHit.WebDAV.Client.MsOfficeEditExtensions}
886
- * @examplecode ITHit.WebDAV.Client.Tests.DocManager.MsOfficeEditExtensions.EditDocumentTest
1651
+ * @return {Array.<string>} An array with file names of the protocol installer.
887
1652
  */
888
- MsOfficeEditExtensions: ITHit.WebDAV.Client.MsOfficeEditExtensions
889
- /**
890
- * Timeout in milliseconds to call error callback if application associated with the extension did not start.
891
- * Default is 3000ms.
892
- * Used in Chrome / Internet Explorer / Safari if protocol application is not installed AND web browser protocol warning dialog is disabled AND EditDocument() / MicrosoftOfficeEditDocument() function is called (in case of Basic/Digest/Anonymous authentication).
893
- * NOT used in Firefox / Edge OR if DavProtocolEditDocument() is called OR if web browser protocol warning dialog is enabled.
894
- * @api
895
- * @type {ITHit.WebDAV.Client.ProtocolTimeoutMs}
896
- */
897
- ProtocolTimeoutMs: ITHit.WebDAV.Client.ProtocolTimeoutMs
898
- /**
899
- * Gets file names of the protocol installer depending on OS.
900
- * @api
901
- * @return {Array} An array with file names of the protocol installer.
902
- */
903
- function GetProtocolInstallFileNames(): Array;
1653
+ function GetProtocolInstallFileNames(): string[];
904
1654
  /**
905
1655
  * Returns true if protocol application installer is supported for the OS on which this function is called, false - otherwise.
906
1656
  * @api
@@ -929,7 +1679,7 @@ export namespace ITHit{
929
1679
  * @param {string} [sCookieNames] <span class="optional">v3 Beta and later only.</span> Coma separated list of cookie names to search for. Microsoft Office requires persistent cookie (with expiration date), it does not support session cookies.
930
1680
  * @param {string} [sLoginUrl] <span class="optional">v3 Beta and later only.</span> Login URL to redirect to in case any cookies specified in <code>sCookieNames</code> parameter are not found.
931
1681
  */
932
- function OpenFolderInOsFileManager(sFolderUrl: string, sMountUrl?: string, errorCallback?: function, reserved?: string, sSearchIn?: string, sCookieNames?: string, sLoginUrl?: string): void;
1682
+ function OpenFolderInOsFileManager(sFolderUrl: string, sMountUrl?: string, errorCallback?: Function, reserved?: string, sSearchIn?: string, sCookieNames?: string, sLoginUrl?: string): void;
933
1683
  /**
934
1684
  * Extracts extension and returns true if URL points to Microsoft Office Document.
935
1685
  * @api
@@ -980,7 +1730,7 @@ export namespace ITHit{
980
1730
  * @param {function} [errorCallback] Function to call if document opening failed. Typically you will request the protocol installation in this callback. This callback is executed for non-Microsoft Office documents only.
981
1731
  * If not specified a default message offering protocol installation will be displayed.
982
1732
  */
983
- function EditDocument(sDocumentUrl: string, sMountUrl?: string, errorCallback?: function): void;
1733
+ function EditDocument(sDocumentUrl: string, sMountUrl?: string, errorCallback?: Function): void;
984
1734
  /**
985
1735
  * Extracts extension and returns true if the document can be edited in G Suite editor or document preview generated via G Suite.
986
1736
  * @api
@@ -995,7 +1745,7 @@ export namespace ITHit{
995
1745
  * @param {DOM} oContainerDomElement HTML DOM element where the G Suite online editor will be loaded. If this parameter is omitted or null is passed the editor will be created in a new tab/window.
996
1746
  * @param {function} [errorCallback] Function to call if document opening failed.
997
1747
  */
998
- function GSuiteEditDocument(sDocumentUrl: string, oContainerDomElement: DOM, errorCallback?: function): void;
1748
+ function GSuiteEditDocument(sDocumentUrl: string, oContainerDomElement: any, errorCallback?: Function): void;
999
1749
  /**
1000
1750
  * <p>Preview MS Office document with G Suite Online Tool.</p>
1001
1751
  * @api
@@ -1003,7 +1753,7 @@ export namespace ITHit{
1003
1753
  * @param {DOM} oContainerDomElement HTML DOM element where the G Suite preview will be loaded. If this parameter is omitted or null is passed the preview will be created in a new tab/window.
1004
1754
  * @param {function} [errorCallback] Function to call if document opening failed.
1005
1755
  */
1006
- function GSuitePreviewDocument(sDocumentUrl: string, oContainerDomElement: DOM, errorCallback?: function): void;
1756
+ function GSuitePreviewDocument(sDocumentUrl: string, oContainerDomElement: any, errorCallback?: Function): void;
1007
1757
  /**
1008
1758
  * <p>Opens document for editing or printing using davX: protocol and prompts to install the protocol it if not found.</p>
1009
1759
  * <i class="optional">The following functionality is supported in v3 Beta and later only:</i>
@@ -1068,14 +1818,33 @@ export namespace ITHit{
1068
1818
  * </ul>
1069
1819
  * Default is <code>null</code>.
1070
1820
  */
1071
- function DavProtocolEditDocument(sDocumentUrls: string, sMountUrl?: string, errorCallback?: function, reserved?: string, sSearchIn?: string, sCookieNames?: string, sLoginUrl?: string, sCommand?: string): void;
1072
- }class DocManager{
1073
- }/**
1821
+ function DavProtocolEditDocument(sDocumentUrls: string, sMountUrl?: string, errorCallback?: Function, reserved?: string, sSearchIn?: string, sCookieNames?: string, sLoginUrl?: string, sCommand?: string): void;
1822
+ }class DocManager {
1823
+ /**
1824
+ * Collection of extensions of files which are opened with Microsoft Office.
1825
+ * @api
1826
+ * @type {ITHit.WebDAV.Client.MsOfficeEditExtensions}
1827
+ * @examplecode ITHit.WebDAV.Client.Tests.DocManager.MsOfficeEditExtensions.EditDocumentTest
1828
+ * @examplecode ITHit.WebDAV.Client.TSExamples.DocManager.MsOfficeEditExtensions.EditDocumentTest
1829
+ */
1830
+ static MsOfficeEditExtensions: ITHit.WebDAV.Client.MsOfficeEditExtensions
1831
+ MsOfficeEditExtensions: ITHit.WebDAV.Client.MsOfficeEditExtensions
1832
+ /**
1833
+ * Timeout in milliseconds to call error callback if application associated with the extension did not start.
1834
+ * Default is 3000ms.
1835
+ * Used in Chrome / Internet Explorer / Safari if protocol application is not installed AND web browser protocol warning dialog is disabled AND EditDocument() / MicrosoftOfficeEditDocument() function is called (in case of Basic/Digest/Anonymous authentication).
1836
+ * NOT used in Firefox / Edge OR if DavProtocolEditDocument() is called OR if web browser protocol warning dialog is enabled.
1837
+ * @api
1838
+ * @type {number}
1839
+ */
1840
+ static ProtocolTimeoutMs: number
1841
+ ProtocolTimeoutMs: number
1842
+ }/**
1074
1843
  * Provides support partial uploads and resuming broken uploads.
1075
1844
  * @api
1076
1845
  * @class ITHit.WebDAV.Client.ResumableUpload
1077
1846
  */
1078
- class ResumableUpload{
1847
+ class ResumableUpload {
1079
1848
  /**
1080
1849
  * Get amount of bytes successfully uploaded to server.
1081
1850
  * @api
@@ -1091,6 +1860,24 @@ export namespace ITHit{
1091
1860
  * @returns {ITHit.WebDAV.Client.Request} Request object.
1092
1861
  */
1093
1862
  CancelUploadAsync(mLockTokens: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
1863
+ }/**
1864
+ * Information about lock set on an item.
1865
+ * @api
1866
+ * @class ITHit.WebDAV.Client.GEditInfo
1867
+ */
1868
+ class GEditInfo {
1869
+ /**
1870
+ * File ID from google drive.
1871
+ * @api
1872
+ * @type {string}
1873
+ */
1874
+ GFileID: string
1875
+ /**
1876
+ * Revision ID from google drive.
1877
+ * @api
1878
+ * @type {string}
1879
+ */
1880
+ GRevisionID: string
1094
1881
  }/**
1095
1882
  * Represents a file on a WebDAV server.
1096
1883
  * @api
@@ -1111,10 +1898,10 @@ export namespace ITHit{
1111
1898
  * @api
1112
1899
  * @param {ITHit.WebDAV.Client.Request} oRequest Current WebDAV session.
1113
1900
  * @param {string} sHref This item path on the server.
1114
- * @param {ITHit.WebDAV.Client.File~GEditAsync} fCallback Function to call when operation is completed.
1901
+ * @param {ITHit.WebDAV.Client.File~GEditAsyncCallback} fCallback Function to call when operation is completed.
1115
1902
  * @returns {ITHit.WebDAV.Client.Request} Request object.
1116
1903
  */
1117
- function GEditAsync(oRequest: ITHit.WebDAV.Client.Request, sHref: string, fCallback?: any): ITHit.WebDAV.Client.Request;
1904
+ function GEditAsync(oRequest: ITHit.WebDAV.Client.Request, sHref: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
1118
1905
  /**
1119
1906
  * Removes the lock and update file.
1120
1907
  * @api
@@ -1137,7 +1924,7 @@ export namespace ITHit{
1137
1924
  * @returns {ITHit.WebDAV.Client.Request} Request object.
1138
1925
  */
1139
1926
  function GUnlockAsync(oRequest: ITHit.WebDAV.Client.Request, sHref: string, sLockToken: string, sRevisionID: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
1140
- }class File{
1927
+ }class File extends ITHit.WebDAV.Client.HierarchyItem {
1141
1928
  /**
1142
1929
  * Length of the file.
1143
1930
  * @api
@@ -1163,6 +1950,8 @@ export namespace ITHit{
1163
1950
  * @api
1164
1951
  * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.CreateFile.ReadContent
1165
1952
  * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.CreateFile.ReadContentRange
1953
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.CreateFile.ReadContent
1954
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.CreateFile.ReadContentRange
1166
1955
  * @param {number} iBytesFrom Start position to retrieve lBytesCount number of bytes from.
1167
1956
  * @param {number} iBytesCount Number of bytes to retrieve.
1168
1957
  * @param {ITHit.WebDAV.Client.File~ReadContentAsyncCallback} fCallback Function to call when operation is completed.
@@ -1173,6 +1962,7 @@ export namespace ITHit{
1173
1962
  * Writes file content.
1174
1963
  * @api
1175
1964
  * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.CreateFile.OnlyWriteContent
1965
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.CreateFile.OnlyWriteContent
1176
1966
  * @param {string} sContent File content.
1177
1967
  * @param {string} sLockToken Lock token.
1178
1968
  * @param {string} sMimeType File mime-type.
@@ -1183,6 +1973,7 @@ export namespace ITHit{
1183
1973
  /**
1184
1974
  * Retrieves item versions.
1185
1975
  * @examplecode ITHit.WebDAV.Client.Tests.Versions.GetVersions.GetVersions
1976
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Versions.GetVersions.GetVersions
1186
1977
  * @api
1187
1978
  * @param {ITHit.WebDAV.Client.File~GetVersionsAsyncCallback} fCallback Function to call when operation is completed.
1188
1979
  * @returns {ITHit.WebDAV.Client.Request} Request object.
@@ -1191,6 +1982,7 @@ export namespace ITHit{
1191
1982
  /**
1192
1983
  * Update to version.
1193
1984
  * @examplecode ITHit.WebDAV.Client.Tests.Versions.ManageVersions.UpdateToVersion
1985
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Versions.ManageVersions.UpdateToVersion
1194
1986
  * @api
1195
1987
  * @param {string|ITHit.WebDAV.Client.Version} mVersion Href to file with version attribute or {@link ITHit.WebDAV.Client.Version} instance.
1196
1988
  * @param {ITHit.WebDAV.Client.File~UpdateToVersionAsyncCallback} fCallback Function to call when operation is completed.
@@ -1201,6 +1993,7 @@ export namespace ITHit{
1201
1993
  * Enables / disables version control for this file.
1202
1994
  * @api
1203
1995
  * @examplecode ITHit.WebDAV.Client.Tests.Versions.PutUnderVersion.EnableVersion
1996
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Versions.PutUnderVersion.EnableVersion
1204
1997
  * @param {boolean} bEnable True to enable version-control, false - to disable.
1205
1998
  * @param {string} mLockToken Lock token for this item.
1206
1999
  * @param {ITHit.WebDAV.Client.File~PutUnderVersionControlAsyncCallback} fCallback Function to call when operation is completed.
@@ -1250,17 +2043,446 @@ export namespace ITHit{
1250
2043
  * lock other users will be able to set shared lock on the item.
1251
2044
  * @api
1252
2045
  * @examplecode ITHit.WebDAV.Client.Tests.Locks.CheckSupport.CheckLockSupport
1253
- * @type {Array}
2046
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Locks.CheckSupport.CheckLockSupport
2047
+ * @type {Array.<string>}
2048
+ * @see ITHit.WebDAV.Client.LockScope
2049
+ */
2050
+ SupportedLocks: string[]
2051
+ /**
2052
+ * List of locks applied to this item.
2053
+ * @examplecode ITHit.WebDAV.Client.Tests.Locks.GetLocks.GetList
2054
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Locks.GetLocks.GetList
2055
+ * @api
2056
+ * @type {Array.<ITHit.WebDAV.Client.LockInfo>}
2057
+ */
2058
+ ActiveLocks: ITHit.WebDAV.Client.LockInfo[]
2059
+ /**
2060
+ * List of item properties.
2061
+ * @api
2062
+ * @type {ITHit.WebDAV.Client.PropertyList}
2063
+ */
2064
+ Properties: ITHit.WebDAV.Client.PropertyList
2065
+ /**
2066
+ * Returns true if file is under version control. Otherwise false. To detect if version control could
2067
+ * be enabled for this item call GetSupportedFeaturesAsync and check for VersionControl token.
2068
+ * To enable version control call PutUnderVersionControlAsync.
2069
+ * @api
2070
+ * @returns {boolean} Boolean, if true - versions supported
2071
+ */
2072
+ /**
2073
+ * Number of bytes available for this user on server. -1 if server does not support Quota.
2074
+ * @api
2075
+ * @type {number}
2076
+ */
2077
+ AvailableBytes: number
2078
+ /**
2079
+ * Number of bytes used by this user on server. -1 if server does not support Quota.
2080
+ * @api
2081
+ * @type {number}
2082
+ */
2083
+ UsedBytes: number
2084
+ /**
2085
+ * Refreshes item loading data from server.
2086
+ * @api
2087
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.Refresh.Refresh
2088
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.Refresh.Refresh
2089
+ * @param {ITHit.WebDAV.Client.HierarchyItem~RefreshAsyncCallback} fCallback Function to call when operation is completed.
2090
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2091
+ */
2092
+ RefreshAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2093
+ /**
2094
+ * Copies this item to destination folder.
2095
+ * @api
2096
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.CopyMove.Copy
2097
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.CopyMove.Copy
2098
+ * @param {ITHit.WebDAV.Client.Folder} oDestinationFolder Folder to move to.
2099
+ * @param {string} sDestinationName Name to assign to copied item.
2100
+ * @param {boolean} bDeep Indicates whether children of this item should be copied.
2101
+ * @param {boolean} bOverwrite Whether existing destination item shall be overwritten.
2102
+ * @param {ITHit.WebDAV.Client.LockUriTokenPair[]} [oLockTokens] Lock tokens for destination folder.
2103
+ * @param {ITHit.WebDAV.Client.HierarchyItem~CopyToAsyncCallback} fCallback Function to call when operation is completed.
2104
+ */
2105
+ CopyToAsync(oDestinationFolder: ITHit.WebDAV.Client.Folder, sDestinationName: string, bDeep: boolean, bOverwrite: boolean, oLockTokens?: ITHit.WebDAV.Client.LockUriTokenPair[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): void;
2106
+ /**
2107
+ * Deletes this item.
2108
+ * @api
2109
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.Delete.Delete
2110
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.Delete.Delete
2111
+ * @param {ITHit.WebDAV.Client.LockUriTokenPair} oLockTokens Lock tokens for this item or any locked child item.
2112
+ * @param {ITHit.WebDAV.Client.HierarchyItem~DeleteAsyncCallback} fCallback Function to call when operation is completed.
2113
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2114
+ */
2115
+ DeleteAsync(oLockTokens: ITHit.WebDAV.Client.LockUriTokenPair, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2116
+ /**
2117
+ * Returns names of all custom properties exposed by this item.
2118
+ * @api
2119
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyProperties.GetProperties.GetPropertyNames
2120
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyProperties.GetProperties.GetPropertyNames
2121
+ * @param {ITHit.WebDAV.Client.HierarchyItem~GetPropertyNamesAsyncCallback} fCallback Function to call when operation is completed.
2122
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2123
+ */
2124
+ GetPropertyNamesAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2125
+ /**
2126
+ * Retrieves values of specific properties.
2127
+ * @api
2128
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyProperties.GetProperties.GetPropertyValues
2129
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyProperties.GetProperties.GetPropertyValues
2130
+ * @param {ITHit.WebDAV.Client.PropertyName[]} aNames
2131
+ * @param {ITHit.WebDAV.Client.HierarchyItem~GetPropertyValuesAsyncCallback} fCallback Function to call when operation is completed.
2132
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2133
+ */
2134
+ GetPropertyValuesAsync(aNames: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2135
+ /**
2136
+ * Retrieves all custom properties exposed by the item.
2137
+ * @api
2138
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyProperties.GetProperties.GetAllProperties
2139
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyProperties.GetProperties.GetAllProperties
2140
+ * @param {ITHit.WebDAV.Client.HierarchyItem~GetAllPropertiesAsyncCallback} fCallback Function to call when operation is completed.
2141
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2142
+ */
2143
+ GetAllPropertiesAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2144
+ /**
2145
+ * Retrieves parent hierarchy item of this item.
2146
+ * @api
2147
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.GetParent.GetParent
2148
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.GetParent.GetParent
2149
+ * @param {ITHit.WebDAV.Client.PropertyName[]} aProperties Additional properties requested from server. Default is empty array.
2150
+ * @param {ITHit.WebDAV.Client.HierarchyItem~GetParentAsyncCallback} fCallback Function to call when operation is completed.
2151
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2152
+ */
2153
+ GetParentAsync(aProperties: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2154
+ /**
2155
+ * Retrieves media type independent links.
2156
+ * @api
2157
+ * @param {ITHit.WebDAV.Client.HierarchyItem~GetSourceAsyncCallback} fCallback Function to call when operation is completed.
2158
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2159
+ */
2160
+ GetSourceAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2161
+ /**
2162
+ * Locks the item. If the lock was successfully applied, the server will return a lock token. You will pass this
2163
+ * lock token back to the server when updating and unlocking the item. The actual lock time applied by the server
2164
+ * may be different from the one requested by the client.
2165
+ * @api
2166
+ * @examplecode ITHit.WebDAV.Client.Tests.Locks.Lock.SetLock
2167
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Locks.Lock.SetLock
2168
+ * @param {string} sLockScope Scope of the lock. See LockScope Enumeration {@link ITHit.WebDAV.Client.LockScope}
2169
+ * @param {boolean} bDeep Whether to lock entire subtree.
2170
+ * @param {string} sOwner Owner of the lock.
2171
+ * @param {number} iTimeout Timeout after which lock expires. Pass -1 to request an infinite timeout.
2172
+ * @param {ITHit.WebDAV.Client.HierarchyItem~LockAsyncCallback} fCallback Function to call when operation is completed.
2173
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2174
+ */
2175
+ LockAsync(sLockScope: string, bDeep: boolean, sOwner: string, iTimeout: number, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2176
+ /**
2177
+ * Moves this item to another location.
2178
+ * @api
2179
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.CopyMove.Move
2180
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.CopyMove.Move
2181
+ * @param {ITHit.WebDAV.Client.Folder} oDestinationFolder Folder to move to.
2182
+ * @param {string} sDestinationName Name to assign to moved item.
2183
+ * @param {boolean} bOverwrite Whether existing destination item shall be overwritten.
2184
+ * @param {(string|ITHit.WebDAV.Client.LockUriTokenPair[])} oLockTokens Lock tokens for item to be moved, for destination folder or file to be overwritten that are locked.
2185
+ * @param {ITHit.WebDAV.Client.HierarchyItem~MoveToAsyncCallback} fCallback Function to call when operation is completed.
2186
+ * @return {ITHit.WebDAV.Client.Request} Request object.
2187
+ */
2188
+ MoveToAsync(oDestinationFolder: ITHit.WebDAV.Client.Folder, sDestinationName: string, bOverwrite: boolean, oLockTokens: string | ITHit.WebDAV.Client.LockUriTokenPair[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2189
+ /**
2190
+ * Prolongs the lock.
2191
+ * @api
2192
+ * @examplecode ITHit.WebDAV.Client.Tests.Locks.RefreshLock.RefreshLock
2193
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Locks.RefreshLock.RefreshLock
2194
+ * @param {string} sLockToken Identifies lock to be prolonged.
2195
+ * @param {number} iTimeout New timeout to set.
2196
+ * @param {ITHit.WebDAV.Client.HierarchyItem~RefreshLockAsyncCallback} fCallback Function to call when operation is completed.
2197
+ * @return {ITHit.WebDAV.Client.Request} Request object.
2198
+ */
2199
+ RefreshLockAsync(sLockToken: string, iTimeout: number, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2200
+ /**
2201
+ * Gets features supported by this item, such as WebDAV class support.
2202
+ * @api
2203
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.SupportedFeatures.SupportedFeatures
2204
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.SupportedFeatures.SupportedFeatures
2205
+ * @param {ITHit.WebDAV.Client.HierarchyItem~GetSupportedFeaturesAsyncCallback} fCallback Function to call when operation is completed.
2206
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2207
+ */
2208
+ GetSupportedFeaturesAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2209
+ /**
2210
+ * Removes the lock.
2211
+ * @api
2212
+ * @examplecode ITHit.WebDAV.Client.Tests.Locks.Lock.SetUnLock
2213
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Locks.Lock.SetUnLock
2214
+ * @param {string} sLockToken Identifies lock to be prolonged.
2215
+ * @param {ITHit.WebDAV.Client.HierarchyItem~UnlockAsyncCallback} fCallback Function to call when operation is completed.
2216
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2217
+ */
2218
+ UnlockAsync(sLockToken: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2219
+ /**
2220
+ * Updates values of properties exposed by this item.
2221
+ * @api
2222
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyProperties.UpdateProperties.Update
2223
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyProperties.UpdateProperties.Delete
2224
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyProperties.UpdateProperties.Update
2225
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyProperties.UpdateProperties.Delete
2226
+ * @param {ITHit.WebDAV.Client.Property[]} oPropertiesToAddOrUpdate Properties to be updated.
2227
+ * @param {ITHit.WebDAV.Client.PropertyName[]} oPropertiesToDelete Names of properties to be removed from this item.
2228
+ * @param {string} [sLockToken] Lock token.
2229
+ * @param {ITHit.WebDAV.Client.HierarchyItem~UpdatePropertiesAsyncCallback} fCallback Function to call when operation is completed.
2230
+ * @returns {ITHit.WebDAV.Client.WebDavRequest|null} WebDAV request
2231
+ */
2232
+ UpdatePropertiesAsync(oPropertiesToAddOrUpdate: ITHit.WebDAV.Client.Property[], oPropertiesToDelete: ITHit.WebDAV.Client.PropertyName[], sLockToken?: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.WebDavRequest | null;
2233
+ }/**
2234
+ * @classdesc Represents a search request.
2235
+ * @constructs
2236
+ * @api
2237
+ * @param {string} sSearchPhrase Search phrase.
2238
+ */
2239
+ class SearchQuery {
2240
+ constructor(sSearchPhrase: string);
2241
+ /**
2242
+ * Search phrase.
2243
+ * @api
2244
+ * @type {string}
2245
+ */
2246
+ Phrase: string
2247
+ /**
2248
+ * <p>Properties to be returned from server with each item returned in search results.</p>
2249
+ * <p>This property can be used to request any additional data required in search results, such as snippet of
2250
+ * text around the search phrase, document title, author name, etc.</p>
2251
+ * @api
2252
+ * @type {ITHit.WebDAV.Client.PropertyName[]}
2253
+ */
2254
+ SelectProperties: ITHit.WebDAV.Client.PropertyName[]
2255
+ /**
2256
+ * Enables or disables search by properties specified in <code>LikeProperties</code> list. Default is <code>true</code>.
2257
+ * @api
2258
+ * @type {boolean}
2259
+ */
2260
+ EnableLike: boolean
2261
+ /**
2262
+ * List of properties to be used in like conditions. The search phrase will be searched in the properties specilied in this list.
2263
+ * @api
2264
+ * @type {ITHit.WebDAV.Client.PropertyName[]}
2265
+ */
2266
+ LikeProperties: ITHit.WebDAV.Client.PropertyName[]
2267
+ /**
2268
+ * Enables or disables search inside file content. Default is <code>true</code>.
2269
+ * @api
2270
+ * @type {boolean}
2271
+ */
2272
+ EnableContains: boolean
2273
+ }/**
2274
+ * Array of file and folder items that correspond to the offset, number of items and sorting conditions requested from server.
2275
+ * Also contains a total number of items in this folder or in search results.
2276
+ * @api
2277
+ * @class ITHit.WebDAV.Client.PageResults
2278
+ */
2279
+ class PageResults {
2280
+ /**
2281
+ * Total number of items in the folder or in search results.
2282
+ * @api
2283
+ * @type {number}
2284
+ */
2285
+ TotalItems: number
2286
+ /**
2287
+ * Items that correspond to the requested page and sorting.
2288
+ * @api
2289
+ * @type {ITHit.WebDAV.Client.HierarchyItem[]}
2290
+ */
2291
+ Page: ITHit.WebDAV.Client.HierarchyItem[]
2292
+ }/**
2293
+ * Represents a folder in a WebDAV repository.
2294
+ * @api
2295
+ * @class ITHit.WebDAV.Client.Folder
2296
+ * @extends ITHit.WebDAV.Client.HierarchyItem
2297
+ */
2298
+ class Folder extends ITHit.WebDAV.Client.HierarchyItem {
2299
+ /**
2300
+ * Creates a new folder with a specified name as child of this folder.
2301
+ * @api
2302
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.CreateFolder.CreateFolder
2303
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.CreateFolder.CreateFolder
2304
+ * @param {string} sName Name of the new folder.
2305
+ * @param {string} [sLockTokens] Lock token for ITHit.WebDAV.Client.Folder folder.
2306
+ * @param {ITHit.WebDAV.Client.PropertyName[]} aProperties Additional properties requested from server. Default is empty array.
2307
+ * @param {ITHit.WebDAV.Client.Folder~CreateFolderAsyncCallback} fCallback Function to call when operation is completed.
2308
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2309
+ */
2310
+ CreateFolderAsync(sName: string, sLockTokens?: string, aProperties?: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2311
+ /**
2312
+ * Creates a new file with a specified name as a child of this folder.
2313
+ * @api
2314
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.CreateFile.CreateAndWriteContent
2315
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.CreateFile.CreateAndWriteContent
2316
+ * @param {string} sName Name of the new file.
2317
+ * @param {string} sLockTokens Lock token for current folder.
2318
+ * @param {string} sContent File content.
2319
+ * @param {ITHit.WebDAV.Client.PropertyName[]} aProperties Additional properties requested from server. Default is empty array.
2320
+ * @param {ITHit.WebDAV.Client.Folder~CreateFileAsyncCallback} fCallback Function to call when operation is completed.
2321
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2322
+ */
2323
+ CreateFileAsync(sName: string, sLockTokens: string, sContent: string, aProperties: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2324
+ /**
2325
+ * Gets specified number of children of this folder that correspond to requested offset and sorting. Use GetSupportedFeaturesAsync() function to detect if paging is supported.
2326
+ * @api
2327
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.GetFolderItems.GetPage
2328
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.GetFolderItems.GetPage
2329
+ * @param {ITHit.WebDAV.Client.PropertyName[]} [aProperties] Additional properties requested from server. If null is specified, only default properties are returned.
2330
+ * @param {number} [nOffset] The number of items to skip before returning the remaining items.
2331
+ * @param {number} [nResults] The number of items to return.
2332
+ * @param {ITHit.WebDAV.Client.OrderProperty[]} [aOrderProperties] List of order properties.
2333
+ * @param {ITHit.WebDAV.Client.Folder~GetPageAsyncCallback} fCallback Function to call when operation is completed.
2334
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2335
+ */
2336
+ GetPageAsync(aProperties?: ITHit.WebDAV.Client.PropertyName[], nOffset?: number, nResults?: number, aOrderProperties?: ITHit.WebDAV.Client.OrderProperty[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2337
+ /**
2338
+ * This method returns all items contained in the folder, which may be very large. To limit amount of items returned and get only a single results page use [GetPageAsync]{@link ITHit.WebDAV.Client.Folder#GetPageAsync} function instead.
2339
+ * @api
2340
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.GetFolderItems.GetChildren
2341
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.GetFolderItems.GetChildren
2342
+ * @param {boolean} bRecursively Indicates if all subtree of children should be return. Default is false.
2343
+ * @param {ITHit.WebDAV.Client.PropertyName[]} aProperties Additional properties requested from server. If null is specified, only default properties are returned.
2344
+ * @param {ITHit.WebDAV.Client.Folder~GetChildrenAsyncCallback} fCallback Function to call when operation is completed.
2345
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2346
+ */
2347
+ GetChildrenAsync(bRecursively: boolean, aProperties: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2348
+ /**
2349
+ * Gets the specified folder from server.
2350
+ * @api
2351
+ * @param {string} sName Name of the folder.
2352
+ * @param {ITHit.WebDAV.Client.Folder~GetFolderAsyncCallback} fCallback Function to call when operation is completed.
2353
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2354
+ */
2355
+ GetFolderAsync(sName: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2356
+ /**
2357
+ * Gets the specified file from server.
2358
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.GetItemByFolder.GetFile
2359
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.GetItemByFolder.GetFile
2360
+ * @api
2361
+ * @param {string} sName Name of the file.
2362
+ * @param {ITHit.WebDAV.Client.Folder~GetFileAsyncCallback} fCallback Function to call when operation is completed.
2363
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2364
+ */
2365
+ GetFileAsync(sName: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2366
+ /**
2367
+ * Gets the specified item from server.
2368
+ * @api
2369
+ * @param {string} sName Name of the item.
2370
+ * @param {ITHit.WebDAV.Client.Folder~GetItemAsyncCallback} fCallback Function to call when operation is completed.
2371
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2372
+ */
2373
+ GetItemAsync(sName: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2374
+ /**
2375
+ * Checks whether specified item exists in the folder.
2376
+ * @api
2377
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.ItemExists.ItemExists
2378
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.ItemExists.ItemExists
2379
+ * @param {string} sName Name of the item.
2380
+ * @param {ITHit.WebDAV.Client.Folder~ItemExistsAsyncCallback} fCallback Function to call when operation is completed.
2381
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2382
+ */
2383
+ ItemExistsAsync(sName: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2384
+ /**
2385
+ * This method returns all items found on the server, which may be very large. To limit amount of items returned and get only a single results page use [GetSearchPageByQueryAsync]{@link ITHit.WebDAV.Client.Folder#GetSearchPageByQueryAsync} function instead.
2386
+ * @api
2387
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.Search.SearchByQuery
2388
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.Search.SearchByQuery
2389
+ * @param {ITHit.WebDAV.Client.SearchQuery} oSearchQuery Object with search query conditions.
2390
+ * @param {ITHit.WebDAV.Client.Folder~SearchByQueryAsyncCallback} fCallback Function to call when operation is completed.
2391
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2392
+ */
2393
+ SearchByQueryAsync(oSearchQuery: ITHit.WebDAV.Client.SearchQuery, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2394
+ /**
2395
+ * Searches folder by query. Returns specified number of search result items that correspond to requested offset and sorting. Use GetSupportedFeaturesAsync() function to detect if paging is supported.
2396
+ * @api
2397
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.Search.GetSearchPageByQuery
2398
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.Search.GetSearchPageByQuery
2399
+ * @param {ITHit.WebDAV.Client.SearchQuery} oSearchQuery Object with search query conditions.
2400
+ * @param {number} [nOffset] The number of items to skip before returning the remaining items.
2401
+ * @param {number} [nResults] The number of items to return.
2402
+ * @param {ITHit.WebDAV.Client.Folder~GetSearchPageByQueryAsyncCallback} fCallback Function to call when operation is completed.
2403
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2404
+ */
2405
+ GetSearchPageByQueryAsync(oSearchQuery: ITHit.WebDAV.Client.SearchQuery, nOffset?: number, nResults?: number, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2406
+ /**
2407
+ * Searches folder by search string. To limit amount of items returned and get only a single results page use [GetSearchPageAsync]{@link ITHit.WebDAV.Client.Folder#GetSearchPageAsync} function instead.
2408
+ * @api
2409
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.Search.SearchByString
2410
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.Search.SearchByString
2411
+ * @param {string} sSearchQuery String of search query.
2412
+ * @param {ITHit.WebDAV.Client.PropertyName[]} [aProperties] Additional properties requested from server. If null is specified, only default properties are returned.
2413
+ * @param {ITHit.WebDAV.Client.Folder~SearchAsyncCallback} fCallback Function to call when operation is completed.
2414
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2415
+ */
2416
+ SearchAsync(sSearchQuery: string, aProperties?: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2417
+ /**
2418
+ * Searches folder by search string. Returns specified number of search result items that correspond to requested offset and sorting. Use GetSupportedFeaturesAsync() function to detect if paging is supported.
2419
+ * @api
2420
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.Search.GetSearchPageByString
2421
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.Search.GetSearchPageByString
2422
+ * @param {string} sSearchQuery String of search query.
2423
+ * @param {ITHit.WebDAV.Client.PropertyName[]} [aProperties] Additional properties requested from server. If null is specified, only default properties are returned.
2424
+ * @param {number} [nOffset] The number of items to skip before returning the remaining items.
2425
+ * @param {number} [nResults] The number of items to return.
2426
+ * @param {ITHit.WebDAV.Client.Folder~GetSearchPageAsyncCallback} fCallback Function to call when operation is completed.
2427
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2428
+ */
2429
+ GetSearchPageAsync(sSearchQuery: string, aProperties?: ITHit.WebDAV.Client.PropertyName[], nOffset?: number, nResults?: number, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2430
+ /**
2431
+ * Current WebDAV session.
2432
+ * @api
2433
+ * @type {ITHit.WebDAV.Client.WebDavSession}
2434
+ */
2435
+ Session: ITHit.WebDAV.Client.WebDavSession
2436
+ /**
2437
+ * This item path on the server.
2438
+ * @api
2439
+ * @type {string}
2440
+ */
2441
+ Href: string
2442
+ /**
2443
+ * Most recent modification date.
2444
+ * @api
2445
+ * @type {Date}
2446
+ */
2447
+ LastModified: Date
2448
+ /**
2449
+ * User friendly item name.
2450
+ * @api
2451
+ * @type {string}
2452
+ */
2453
+ DisplayName: string
2454
+ /**
2455
+ * The date item was created.
2456
+ * @api
2457
+ * @type {Date}
2458
+ */
2459
+ CreationDate: Date
2460
+ /**
2461
+ * Type of the item (File or Folder).
2462
+ * @api
2463
+ * @type {string}
2464
+ * @see ITHit.WebDAV.Client.ResourceType
2465
+ */
2466
+ ResourceType: string
2467
+ /**
2468
+ * Retrieves information about supported locks. Item can support exclusive, shared locks or do not support
2469
+ * any locks. If you set exclusive lock other users will not be able to set any locks. If you set shared
2470
+ * lock other users will be able to set shared lock on the item.
2471
+ * @api
2472
+ * @examplecode ITHit.WebDAV.Client.Tests.Locks.CheckSupport.CheckLockSupport
2473
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Locks.CheckSupport.CheckLockSupport
2474
+ * @type {Array.<string>}
1254
2475
  * @see ITHit.WebDAV.Client.LockScope
1255
2476
  */
1256
- SupportedLocks: Array
2477
+ SupportedLocks: string[]
1257
2478
  /**
1258
2479
  * List of locks applied to this item.
1259
2480
  * @examplecode ITHit.WebDAV.Client.Tests.Locks.GetLocks.GetList
2481
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Locks.GetLocks.GetList
1260
2482
  * @api
1261
- * @type {Array}
2483
+ * @type {Array.<ITHit.WebDAV.Client.LockInfo>}
1262
2484
  */
1263
- ActiveLocks: Array
2485
+ ActiveLocks: ITHit.WebDAV.Client.LockInfo[]
1264
2486
  /**
1265
2487
  * List of item properties.
1266
2488
  * @api
@@ -1290,6 +2512,7 @@ export namespace ITHit{
1290
2512
  * Refreshes item loading data from server.
1291
2513
  * @api
1292
2514
  * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.Refresh.Refresh
2515
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.Refresh.Refresh
1293
2516
  * @param {ITHit.WebDAV.Client.HierarchyItem~RefreshAsyncCallback} fCallback Function to call when operation is completed.
1294
2517
  * @returns {ITHit.WebDAV.Client.Request} Request object.
1295
2518
  */
@@ -1298,6 +2521,7 @@ export namespace ITHit{
1298
2521
  * Copies this item to destination folder.
1299
2522
  * @api
1300
2523
  * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.CopyMove.Copy
2524
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.CopyMove.Copy
1301
2525
  * @param {ITHit.WebDAV.Client.Folder} oDestinationFolder Folder to move to.
1302
2526
  * @param {string} sDestinationName Name to assign to copied item.
1303
2527
  * @param {boolean} bDeep Indicates whether children of this item should be copied.
@@ -1310,6 +2534,7 @@ export namespace ITHit{
1310
2534
  * Deletes this item.
1311
2535
  * @api
1312
2536
  * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.Delete.Delete
2537
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.Delete.Delete
1313
2538
  * @param {ITHit.WebDAV.Client.LockUriTokenPair} oLockTokens Lock tokens for this item or any locked child item.
1314
2539
  * @param {ITHit.WebDAV.Client.HierarchyItem~DeleteAsyncCallback} fCallback Function to call when operation is completed.
1315
2540
  * @returns {ITHit.WebDAV.Client.Request} Request object.
@@ -1319,6 +2544,7 @@ export namespace ITHit{
1319
2544
  * Returns names of all custom properties exposed by this item.
1320
2545
  * @api
1321
2546
  * @examplecode ITHit.WebDAV.Client.Tests.HierarchyProperties.GetProperties.GetPropertyNames
2547
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyProperties.GetProperties.GetPropertyNames
1322
2548
  * @param {ITHit.WebDAV.Client.HierarchyItem~GetPropertyNamesAsyncCallback} fCallback Function to call when operation is completed.
1323
2549
  * @returns {ITHit.WebDAV.Client.Request} Request object.
1324
2550
  */
@@ -1327,6 +2553,7 @@ export namespace ITHit{
1327
2553
  * Retrieves values of specific properties.
1328
2554
  * @api
1329
2555
  * @examplecode ITHit.WebDAV.Client.Tests.HierarchyProperties.GetProperties.GetPropertyValues
2556
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyProperties.GetProperties.GetPropertyValues
1330
2557
  * @param {ITHit.WebDAV.Client.PropertyName[]} aNames
1331
2558
  * @param {ITHit.WebDAV.Client.HierarchyItem~GetPropertyValuesAsyncCallback} fCallback Function to call when operation is completed.
1332
2559
  * @returns {ITHit.WebDAV.Client.Request} Request object.
@@ -1336,6 +2563,7 @@ export namespace ITHit{
1336
2563
  * Retrieves all custom properties exposed by the item.
1337
2564
  * @api
1338
2565
  * @examplecode ITHit.WebDAV.Client.Tests.HierarchyProperties.GetProperties.GetAllProperties
2566
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyProperties.GetProperties.GetAllProperties
1339
2567
  * @param {ITHit.WebDAV.Client.HierarchyItem~GetAllPropertiesAsyncCallback} fCallback Function to call when operation is completed.
1340
2568
  * @returns {ITHit.WebDAV.Client.Request} Request object.
1341
2569
  */
@@ -1344,6 +2572,7 @@ export namespace ITHit{
1344
2572
  * Retrieves parent hierarchy item of this item.
1345
2573
  * @api
1346
2574
  * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.GetParent.GetParent
2575
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.GetParent.GetParent
1347
2576
  * @param {ITHit.WebDAV.Client.PropertyName[]} aProperties Additional properties requested from server. Default is empty array.
1348
2577
  * @param {ITHit.WebDAV.Client.HierarchyItem~GetParentAsyncCallback} fCallback Function to call when operation is completed.
1349
2578
  * @returns {ITHit.WebDAV.Client.Request} Request object.
@@ -1362,6 +2591,7 @@ export namespace ITHit{
1362
2591
  * may be different from the one requested by the client.
1363
2592
  * @api
1364
2593
  * @examplecode ITHit.WebDAV.Client.Tests.Locks.Lock.SetLock
2594
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Locks.Lock.SetLock
1365
2595
  * @param {string} sLockScope Scope of the lock. See LockScope Enumeration {@link ITHit.WebDAV.Client.LockScope}
1366
2596
  * @param {boolean} bDeep Whether to lock entire subtree.
1367
2597
  * @param {string} sOwner Owner of the lock.
@@ -1374,6 +2604,7 @@ export namespace ITHit{
1374
2604
  * Moves this item to another location.
1375
2605
  * @api
1376
2606
  * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.CopyMove.Move
2607
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.CopyMove.Move
1377
2608
  * @param {ITHit.WebDAV.Client.Folder} oDestinationFolder Folder to move to.
1378
2609
  * @param {string} sDestinationName Name to assign to moved item.
1379
2610
  * @param {boolean} bOverwrite Whether existing destination item shall be overwritten.
@@ -1386,6 +2617,7 @@ export namespace ITHit{
1386
2617
  * Prolongs the lock.
1387
2618
  * @api
1388
2619
  * @examplecode ITHit.WebDAV.Client.Tests.Locks.RefreshLock.RefreshLock
2620
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Locks.RefreshLock.RefreshLock
1389
2621
  * @param {string} sLockToken Identifies lock to be prolonged.
1390
2622
  * @param {number} iTimeout New timeout to set.
1391
2623
  * @param {ITHit.WebDAV.Client.HierarchyItem~RefreshLockAsyncCallback} fCallback Function to call when operation is completed.
@@ -1396,6 +2628,7 @@ export namespace ITHit{
1396
2628
  * Gets features supported by this item, such as WebDAV class support.
1397
2629
  * @api
1398
2630
  * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.SupportedFeatures.SupportedFeatures
2631
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.SupportedFeatures.SupportedFeatures
1399
2632
  * @param {ITHit.WebDAV.Client.HierarchyItem~GetSupportedFeaturesAsyncCallback} fCallback Function to call when operation is completed.
1400
2633
  * @returns {ITHit.WebDAV.Client.Request} Request object.
1401
2634
  */
@@ -1404,6 +2637,7 @@ export namespace ITHit{
1404
2637
  * Removes the lock.
1405
2638
  * @api
1406
2639
  * @examplecode ITHit.WebDAV.Client.Tests.Locks.Lock.SetUnLock
2640
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Locks.Lock.SetUnLock
1407
2641
  * @param {string} sLockToken Identifies lock to be prolonged.
1408
2642
  * @param {ITHit.WebDAV.Client.HierarchyItem~UnlockAsyncCallback} fCallback Function to call when operation is completed.
1409
2643
  * @returns {ITHit.WebDAV.Client.Request} Request object.
@@ -1414,6 +2648,8 @@ export namespace ITHit{
1414
2648
  * @api
1415
2649
  * @examplecode ITHit.WebDAV.Client.Tests.HierarchyProperties.UpdateProperties.Update
1416
2650
  * @examplecode ITHit.WebDAV.Client.Tests.HierarchyProperties.UpdateProperties.Delete
2651
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyProperties.UpdateProperties.Update
2652
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyProperties.UpdateProperties.Delete
1417
2653
  * @param {ITHit.WebDAV.Client.Property[]} oPropertiesToAddOrUpdate Properties to be updated.
1418
2654
  * @param {ITHit.WebDAV.Client.PropertyName[]} oPropertiesToDelete Names of properties to be removed from this item.
1419
2655
  * @param {string} [sLockToken] Lock token.
@@ -1422,198 +2658,116 @@ export namespace ITHit{
1422
2658
  */
1423
2659
  UpdatePropertiesAsync(oPropertiesToAddOrUpdate: ITHit.WebDAV.Client.Property[], oPropertiesToDelete: ITHit.WebDAV.Client.PropertyName[], sLockToken?: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.WebDavRequest | null;
1424
2660
  }/**
1425
- * @classdesc Represents a search request.
1426
- * @constructs
1427
- * @api
1428
- * @param {string} sSearchPhrase Search phrase.
1429
- */
1430
- class SearchQuery{
1431
- constructor(sSearchPhrase: string);
1432
- /**
1433
- * Search phrase.
1434
- * @api
1435
- * @type {string}
1436
- */
1437
- Phrase: string
1438
- /**
1439
- * <p>Properties to be returned from server with each item returned in search results.</p>
1440
- * <p>This property can be used to request any additional data required in search results, such as snippet of
1441
- * text around the search phrase, document title, author name, etc.</p>
1442
- * @api
1443
- * @type {ITHit.WebDAV.Client.PropertyName[]}
1444
- */
1445
- SelectProperties: ITHit.WebDAV.Client.PropertyName[]
1446
- /**
1447
- * Enables or disables search by properties specified in <code>LikeProperties</code> list. Default is <code>true</code>.
1448
- * @api
1449
- * @type {boolean}
1450
- */
1451
- EnableLike: boolean
1452
- /**
1453
- * List of properties to be used in like conditions. The search phrase will be searched in the properties specilied in this list.
1454
- * @api
1455
- * @type {ITHit.WebDAV.Client.PropertyName[]}
1456
- */
1457
- LikeProperties: ITHit.WebDAV.Client.PropertyName[]
1458
- /**
1459
- * Enables or disables search inside file content. Default is <code>true</code>.
2661
+ * Represents a version on a WebDAV server.
1460
2662
  * @api
1461
- * @type {boolean}
2663
+ * @class ITHit.WebDAV.Client.Version
2664
+ * @extends ITHit.WebDAV.Client.File
1462
2665
  */
1463
- EnableContains: boolean
1464
- }/**
1465
- * Array of file and folder items that correspond to the offset, number of items and sorting conditions requested from server.
1466
- * Also contains a total number of items in this folder or in search results.
1467
- * @api
1468
- * @class ITHit.WebDAV.Client.PageResults
1469
- */
1470
- class PageResults{
2666
+ class Version extends ITHit.WebDAV.Client.File {
1471
2667
  /**
1472
- * Total number of items in the folder or in search results.
1473
- * @api
1474
- * @type {number}
1475
- */
1476
- TotalItems: number
2668
+ * This property contains a server-defined string that is different for each version.
2669
+ * This string is intended for display for a user.
2670
+ * @api
2671
+ * @type {string}
2672
+ */
2673
+ VersionName: string
1477
2674
  /**
1478
- * Items that correspond to the requested page and sorting.
1479
- * @api
1480
- * @type {ITHit.WebDAV.Client.HierarchyItem[]}
1481
- */
1482
- Page: ITHit.WebDAV.Client.HierarchyItem[]
1483
- }/**
1484
- * Represents a folder in a WebDAV repository.
1485
- * @api
1486
- * @class ITHit.WebDAV.Client.Folder
1487
- * @extends ITHit.WebDAV.Client.HierarchyItem
1488
- */
1489
- class Folder{
1490
- /**
1491
- * Creates a new folder with a specified name as child of this folder.
1492
- * @api
1493
- * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.CreateFolder.CreateFolder
1494
- * @param {string} sName Name of the new folder.
1495
- * @param {string} [sLockTokens] Lock token for ITHit.WebDAV.Client.Folder folder.
1496
- * @param {ITHit.WebDAV.Client.PropertyName[]} aProperties Additional properties requested from server. Default is empty array.
1497
- * @param {ITHit.WebDAV.Client.Folder~CreateFolderAsyncCallback} fCallback Function to call when operation is completed.
1498
- * @returns {ITHit.WebDAV.Client.Request} Request object.
1499
- */
1500
- CreateFolderAsync(sName: string, sLockTokens?: string, aProperties: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2675
+ * @api
2676
+ * @type {string}
2677
+ */
2678
+ CreatorDisplayName: string
1501
2679
  /**
1502
- * Creates a new file with a specified name as a child of this folder.
1503
- * @api
1504
- * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.CreateFile.CreateAndWriteContent
1505
- * @param {string} sName Name of the new file.
1506
- * @param {string} sLockTokens Lock token for current folder.
1507
- * @param {string} sContent File content.
1508
- * @param {ITHit.WebDAV.Client.PropertyName[]} aProperties Additional properties requested from server. Default is empty array.
1509
- * @param {ITHit.WebDAV.Client.Folder~CreateFileAsyncCallback} fCallback Function to call when operation is completed.
1510
- * @returns {ITHit.WebDAV.Client.Request} Request object.
1511
- */
1512
- CreateFileAsync(sName: string, sLockTokens: string, sContent: string, aProperties: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2680
+ * @api
2681
+ * @type {string}
2682
+ */
2683
+ Comment: string
1513
2684
  /**
1514
- * Gets specified number of children of this folder that correspond to requested offset and sorting. Use GetSupportedFeaturesAsync() function to detect if paging is supported.
1515
- * @api
1516
- * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.GetFolderItems.GetPage
1517
- * @param {ITHit.WebDAV.Client.PropertyName[]} [aProperties] Additional properties requested from server. If null is specified, only default properties are returned.
1518
- * @param {number} [nOffset] The number of items to skip before returning the remaining items.
1519
- * @param {number} [nResults] The number of items to return.
1520
- * @param {ITHit.WebDAV.Client.OrderProperty[]} [aOrderProperties] List of order properties.
1521
- * @param {ITHit.WebDAV.Client.Folder~GetPageAsyncCallback} fCallback Function to call when operation is completed.
1522
- * @returns {ITHit.WebDAV.Client.Request} Request object.
1523
- */
1524
- GetPageAsync(aProperties?: ITHit.WebDAV.Client.PropertyName[], nOffset?: number, nResults?: number, aOrderProperties?: ITHit.WebDAV.Client.OrderProperty[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2685
+ * Update file to current version.
2686
+ * @examplecode ITHit.WebDAV.Client.Tests.Versions.ManageVersions.UpdateToThis
2687
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Versions.ManageVersions.UpdateToThis
2688
+ * @api
2689
+ * @param {ITHit.WebDAV.Client.Version~UpdateToThisVersionAsync} fCallback Function to call when operation is completed.
2690
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2691
+ */
2692
+ UpdateToThisAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
1525
2693
  /**
1526
- * This method returns all items contained in the folder, which may be very large. To limit amount of items returned and get only a single results page use [GetPageAsync]{@link ITHit.WebDAV.Client.Folder#GetPageAsync} function instead.
1527
- * @api
1528
- * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.GetFolderItems.GetChildrenAsync
1529
- * @param {boolean} bRecursively Indicates if all subtree of children should be return. Default is false.
1530
- * @param {ITHit.WebDAV.Client.PropertyName[]} aProperties Additional properties requested from server. If null is specified, only default properties are returned.
1531
- * @param {ITHit.WebDAV.Client.Folder~GetChildrenAsyncCallback} fCallback Function to call when operation is completed.
1532
- * @returns {ITHit.WebDAV.Client.Request} Request object.
1533
- */
1534
- GetChildrenAsync(bRecursively: boolean, aProperties: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2694
+ * Read file content. To download only a part of a file you can specify 2 parameters in ReadContent call.
2695
+ * First parameter is the starting byte (zero-based) at witch to start content download, the second – amount
2696
+ * of bytes to be downloaded. The library will add Range header to the request in this case.
2697
+ * @examplecode ITHit.WebDAV.Client.Tests.Versions.ReadContent.ReadContent
2698
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Versions.ReadContent.ReadContent
2699
+ * @api
2700
+ * @param {number} iBytesFrom Start position to retrieve lBytesCount number of bytes from.
2701
+ * @param {number} iBytesCount Number of bytes to retrieve.
2702
+ * @param {ITHit.WebDAV.Client.File~ReadContentAsyncCallback} fCallback Function to call when operation is completed.
2703
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2704
+ */
2705
+ ReadContentAsync(iBytesFrom: number, iBytesCount: number, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
1535
2706
  /**
1536
- * Gets the specified folder from server.
1537
- * @api
1538
- * @param {string} sName Name of the folder.
1539
- * @param {ITHit.WebDAV.Client.Folder~GetFolderAsyncCallback} fCallback Function to call when operation is completed.
1540
- * @returns {ITHit.WebDAV.Client.Request} Request object.
1541
- */
1542
- GetFolderAsync(sName: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2707
+ * Writes file content.
2708
+ * @api
2709
+ * @param {string} sContent File content.
2710
+ * @param {string} sLockToken Lock token.
2711
+ * @param {string} sMimeType File mime-type.
2712
+ * @param {ITHit.WebDAV.Client.File~WriteContentAsyncCallback} fCallback Function to call when operation is completed.
2713
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2714
+ */
2715
+ WriteContentAsync(sContent: string, sLockToken: string, sMimeType: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
1543
2716
  /**
1544
- * Gets the specified file from server.
1545
- * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.GetItemByFolder.GetFile
1546
- * @api
1547
- * @param {string} sName Name of the file.
1548
- * @param {ITHit.WebDAV.Client.Folder~GetFileAsyncCallback} fCallback Function to call when operation is completed.
1549
- * @returns {ITHit.WebDAV.Client.Request} Request object.
1550
- */
1551
- GetFileAsync(sName: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2717
+ * Refreshes item loading data from server.
2718
+ * @api
2719
+ * @param {ITHit.WebDAV.Client.HierarchyItem~RefreshAsyncCallback} fCallback Function to call when operation is completed.
2720
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2721
+ */
2722
+ RefreshAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
1552
2723
  /**
1553
- * Gets the specified item from server.
2724
+ * Length of the file.
1554
2725
  * @api
1555
- * @param {string} sName Name of the item.
1556
- * @param {ITHit.WebDAV.Client.Folder~GetItemAsyncCallback} fCallback Function to call when operation is completed.
1557
- * @returns {ITHit.WebDAV.Client.Request} Request object.
1558
- */
1559
- GetItemAsync(sName: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2726
+ * @type {number}
2727
+ */
2728
+ ContentLength: number
1560
2729
  /**
1561
- * Checks whether specified item exists in the folder.
2730
+ * Content type of the file.
1562
2731
  * @api
1563
- * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.ItemExists.ItemExists
1564
- * @param {string} sName Name of the item.
1565
- * @param {ITHit.WebDAV.Client.Folder~ItemExistsAsyncCallback} fCallback Function to call when operation is completed.
1566
- * @returns {ITHit.WebDAV.Client.Request} Request object.
1567
- */
1568
- ItemExistsAsync(sName: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2732
+ * @type {string}
2733
+ */
2734
+ ContentType: string
1569
2735
  /**
1570
- * This method returns all items found on the server, which may be very large. To limit amount of items returned and get only a single results page use [GetSearchPageByQueryAsync]{@link ITHit.WebDAV.Client.Folder#GetSearchPageByQueryAsync} function instead.
1571
- * @api
1572
- * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.Search.SearchByQuery
1573
- * @param {ITHit.WebDAV.Client.SearchQuery} oSearchQuery Object with search query conditions.
1574
- * @param {ITHit.WebDAV.Client.Folder~SearchByQueryAsyncCallback} fCallback Function to call when operation is completed.
1575
- * @returns {ITHit.WebDAV.Client.Request} Request object.
1576
- */
1577
- SearchByQueryAsync(oSearchQuery: ITHit.WebDAV.Client.SearchQuery, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2736
+ * Current WebDAV session.
2737
+ * @api
2738
+ * @type {ITHit.WebDAV.Client.WebDavSession}
2739
+ */
2740
+ Session: ITHit.WebDAV.Client.WebDavSession
1578
2741
  /**
1579
- * Searches folder by query. Returns specified number of search result items that correspond to requested offset and sorting. Use GetSupportedFeaturesAsync() function to detect if paging is supported.
1580
- * @api
1581
- * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.Search.GetSearchPageByQuery
1582
- * @param {ITHit.WebDAV.Client.SearchQuery} oSearchQuery Object with search query conditions.
1583
- * @param {number} [nOffset] The number of items to skip before returning the remaining items.
1584
- * @param {number} [nResults] The number of items to return.
1585
- * @param {ITHit.WebDAV.Client.Folder~GetSearchPageByQueryAsyncCallback} fCallback Function to call when operation is completed.
1586
- * @returns {ITHit.WebDAV.Client.Request} Request object.
1587
- */
1588
- GetSearchPageByQueryAsync(oSearchQuery: ITHit.WebDAV.Client.SearchQuery, nOffset?: number, nResults?: number, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2742
+ * This item path on the server.
2743
+ * @api
2744
+ * @type {string}
2745
+ */
2746
+ Href: string
1589
2747
  /**
1590
- * Searches folder by search string. To limit amount of items returned and get only a single results page use [GetSearchPageAsync]{@link ITHit.WebDAV.Client.Folder#GetSearchPageAsync} function instead.
1591
- * @api
1592
- * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.Search.SearchByString
1593
- * @param {string} sSearchQuery String of search query.
1594
- * @param {ITHit.WebDAV.Client.PropertyName[]} [aProperties] Additional properties requested from server. If null is specified, only default properties are returned.
1595
- * @param {ITHit.WebDAV.Client.Folder~SearchAsyncCallback} fCallback Function to call when operation is completed.
1596
- * @returns {ITHit.WebDAV.Client.Request} Request object.
1597
- */
1598
- SearchAsync(sSearchQuery: string, aProperties?: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2748
+ * User friendly item name.
2749
+ * @api
2750
+ * @type {string}
2751
+ */
2752
+ DisplayName: string
1599
2753
  /**
1600
- * Searches folder by search string. Returns specified number of search result items that correspond to requested offset and sorting. Use GetSupportedFeaturesAsync() function to detect if paging is supported.
1601
- * @api
1602
- * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.Search.GetSearchPageByString
1603
- * @param {string} sSearchQuery String of search query.
1604
- * @param {ITHit.WebDAV.Client.PropertyName[]} [aProperties] Additional properties requested from server. If null is specified, only default properties are returned.
1605
- * @param {number} [nOffset] The number of items to skip before returning the remaining items.
1606
- * @param {number} [nResults] The number of items to return.
1607
- * @param {ITHit.WebDAV.Client.Folder~GetSearchPageAsyncCallback} fCallback Function to call when operation is completed.
1608
- * @returns {ITHit.WebDAV.Client.Request} Request object.
1609
- */
1610
- GetSearchPageAsync(sSearchQuery: string, aProperties?: ITHit.WebDAV.Client.PropertyName[], nOffset?: number, nResults?: number, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2754
+ * The date item was created.
2755
+ * @api
2756
+ * @type {Date}
2757
+ */
2758
+ CreationDate: Date
2759
+ /**
2760
+ * List of item properties.
2761
+ * @api
2762
+ * @type {ITHit.WebDAV.Client.PropertyList}
2763
+ */
2764
+ Properties: ITHit.WebDAV.Client.PropertyList
1611
2765
  }/**
1612
2766
  * Represents information about errors occurred in different elements.
1613
2767
  * @api
1614
2768
  * @class ITHit.WebDAV.Client.Error
1615
2769
  */
1616
- class Error{
2770
+ class Error {
1617
2771
  /**
1618
2772
  * Gets the generic description, if available.
1619
2773
  * @api
@@ -1627,11 +2781,19 @@ export namespace ITHit{
1627
2781
  */
1628
2782
  Responses: ITHit.WebDAV.Client.MultistatusResponse[]
1629
2783
  }/**
2784
+ * This class represents asynchronous request to WebDAV server. The instance of this class is returned from most
2785
+ * asynchronous methods of the library. You can use it to cancel the request calling Abort() method of this class
2786
+ * as well as to show progress attaching to Progress event.
2787
+ * @api
2788
+ * @class ITHit.WebDAV.Client.WebDavRequest
2789
+ */
2790
+ class WebDavRequest {
2791
+ }/**
1630
2792
  * Represents a context for one or many requests.
1631
2793
  * @api
1632
2794
  * @class ITHit.WebDAV.Client.RequestProgress
1633
2795
  */
1634
- class RequestProgress{
2796
+ class RequestProgress {
1635
2797
  /**
1636
2798
  * Progress in percents
1637
2799
  * @api
@@ -1676,12 +2838,13 @@ export namespace ITHit{
1676
2838
  * @fires ITHit.WebDAV.Client.Request#OnFinish
1677
2839
  * @class ITHit.WebDAV.Client.Request
1678
2840
  */
1679
- class Request{
2841
+ class Request {
1680
2842
  /**
1681
2843
  * Progress event trigger on update information about request progress.
1682
2844
  * See {@link ITHit.WebDAV.Client.RequestProgress} for more information.
1683
2845
  * @api
1684
2846
  * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.Progress.Progress
2847
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.Progress.Progress
1685
2848
  * @event ITHit.WebDAV.Client.Request#OnProgress
1686
2849
  * @property {ITHit.WebDAV.Client.RequestProgress} Progress Progress info instance
1687
2850
  * @property {ITHit.WebDAV.Client.Request} Request Current request
@@ -1710,17 +2873,17 @@ export namespace ITHit{
1710
2873
  /**
1711
2874
  * @api
1712
2875
  * @param {string} sEventName
1713
- * @param fCallback
2876
+ * @param {function} fCallback
1714
2877
  * @param {object} [oContext]
1715
2878
  */
1716
- AddListener(sEventName: string, fCallback: any, oContext?: object): void;
2879
+ AddListener(sEventName: string, fCallback: Function, oContext?: object): void;
1717
2880
  /**
1718
2881
  * @api
1719
2882
  * @param {string} sEventName
1720
- * @param fCallback
2883
+ * @param {function} fCallback
1721
2884
  * @param {object} [oContext]
1722
2885
  */
1723
- RemoveListener(sEventName: string, fCallback: any, oContext?: object): void;
2886
+ RemoveListener(sEventName: string, fCallback: Function, oContext?: object): void;
1724
2887
  /**
1725
2888
  * Cancels asynchronous request. The Finish event and the callback function will be called immediately after this method call.
1726
2889
  * @api
@@ -1787,12 +2950,13 @@ export namespace ITHit{
1787
2950
  * @api
1788
2951
  */
1789
2952
  function ProtocolVersion(): void;
1790
- }class WebDavSession{
2953
+ }class WebDavSession {
1791
2954
  /**
1792
2955
  * The OnBeforeRequestSend event is fired before request is being submitted to server and provides all
1793
2956
  * information that is used when creating the request such as URL, HTTP verb, headers and request body.
1794
2957
  * @api
1795
2958
  * @examplecode ITHit.WebDAV.Client.Tests.WebDavSession.Events.BeforeRequestSend
2959
+ * @examplecode ITHit.WebDAV.Client.TSExamples.WebDavSession.Events.BeforeRequestSend
1796
2960
  * @event ITHit.WebDAV.Client.WebDavSession#OnBeforeRequestSend
1797
2961
  * @property {string} Method Request method
1798
2962
  * @property {string} Href Request absolute path
@@ -1804,6 +2968,7 @@ export namespace ITHit{
1804
2968
  * any data received from server.
1805
2969
  * @api
1806
2970
  * @examplecode ITHit.WebDAV.Client.Tests.WebDavSession.Events.Response
2971
+ * @examplecode ITHit.WebDAV.Client.TSExamples.WebDavSession.Events.Response
1807
2972
  * @event ITHit.WebDAV.Client.WebDavSession#OnResponse
1808
2973
  * @property {number} Status Response status code
1809
2974
  * @property {string} StatusDescription Response status description
@@ -1813,17 +2978,17 @@ export namespace ITHit{
1813
2978
  /**
1814
2979
  * @api
1815
2980
  * @param {string} sEventName
1816
- * @param fCallback
2981
+ * @param {function} fCallback
1817
2982
  * @param {object} [oContext]
1818
2983
  */
1819
- AddListener(sEventName: string, fCallback: any, oContext?: object): void;
2984
+ AddListener(sEventName: string, fCallback: Function, oContext?: object): void;
1820
2985
  /**
1821
2986
  * @api
1822
2987
  * @param {string} sEventName
1823
- * @param fCallback
2988
+ * @param {function} fCallback
1824
2989
  * @param {object} [oContext]
1825
2990
  */
1826
- RemoveListener(sEventName: string, fCallback: any, oContext?: object): void;
2991
+ RemoveListener(sEventName: string, fCallback: Function, oContext?: object): void;
1827
2992
  /**
1828
2993
  * Load File object corresponding to path.
1829
2994
  * @api
@@ -1836,6 +3001,7 @@ export namespace ITHit{
1836
3001
  /**
1837
3002
  * Returns Folder object corresponding to path.
1838
3003
  * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.GetItemBySession.GetFolder
3004
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.GetItemBySession.GetFolder
1839
3005
  * @api
1840
3006
  * @param {string} sPath Path to the folder.
1841
3007
  * @param {ITHit.WebDAV.Client.PropertyName[]} aProperties Additional properties requested from server. Default is empty array.