webdav.client 5.21.5822 → 5.21.5855

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 +4949 -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 +10763 -0
  41. package/Help/ClassReference/ITHit.WebDAV.Client.Folder.html +12711 -0
  42. package/Help/ClassReference/ITHit.WebDAV.Client.GEditInfo.html +3164 -0
  43. package/Help/ClassReference/ITHit.WebDAV.Client.HierarchyItem.html +9606 -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 +3181 -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 +2626 -405
  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.5855.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 | null): 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,8 +944,8 @@ export namespace ITHit{
447
944
  * @param {string} [sNamespace] Namespace of the property.
448
945
  * @throws ITHit.Exception
449
946
  */
450
- class Property{
451
- constructor(sName: string | ITHit.WebDAV.Client.PropertyName, sValue?: string, sNamespace?: string);
947
+ class Property {
948
+ constructor(sName: string | ITHit.WebDAV.Client.PropertyName, sValue?: string | null, sNamespace?: string | null);
452
949
  /**
453
950
  * Property Name.
454
951
  * @api
@@ -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,16 @@ export namespace ITHit{
533
1030
  * @enum {string}
534
1031
  * @class ITHit.WebDAV.Client.ResourceType
535
1032
  */
536
- namespace ResourceType{
537
- /**
538
- * Item is folder.
539
- * @api
540
- * @readonly
541
- * @type {string}
542
- */
543
- const Folder: string
544
- /**
545
- * Item is file.
546
- * @api
547
- * @readonly
548
- * @type {string}
549
- */
550
- const File: string
551
- }class ResourceType{
1033
+ enum ResourceType{
1034
+ Folder = "Folder",
1035
+ File = "Resource",
552
1036
  }/**
553
1037
  * List of WebDAV properties.
554
1038
  * @api
555
1039
  * @class ITHit.WebDAV.Client.PropertyList
556
1040
  * @extends Array
557
1041
  */
558
- class PropertyList{
1042
+ class PropertyList extends Array {
559
1043
  /**
560
1044
  * Returns true if the with the specified property name and namespace exists in property list.
561
1045
  * Returns false if does not exist.
@@ -564,7 +1048,7 @@ export namespace ITHit{
564
1048
  * @param {boolean} [bIgnoreCase] Specifies if the search is case sensitive or case insensitive.
565
1049
  * @returns {boolean}
566
1050
  */
567
- Has(oPropName: ITHit.WebDAV.Client.PropertyName, bIgnoreCase?: boolean): boolean;
1051
+ Has(oPropName: ITHit.WebDAV.Client.PropertyName, bIgnoreCase?: boolean | null): boolean;
568
1052
  /**
569
1053
  * Gets property value found by property name and namespace. Returns null if property with such name does not exist.
570
1054
  * @api
@@ -572,13 +1056,13 @@ export namespace ITHit{
572
1056
  * @param {boolean} [bIgnoreCase] Specifies if the search is case sensitive or case insensitive.
573
1057
  * @returns {(string|null)} String representing property value or null if property with such name does not exist.
574
1058
  */
575
- Find(oPropName: ITHit.WebDAV.Client.PropertyName, bIgnoreCase?: boolean): string | null;
1059
+ Find(oPropName: ITHit.WebDAV.Client.PropertyName, bIgnoreCase?: boolean | null): string | null;
576
1060
  }/**
577
1061
  * Represents information about errors occurred in different elements.
578
1062
  * @api
579
1063
  * @class ITHit.WebDAV.Client.Multistatus
580
1064
  */
581
- class Multistatus{
1065
+ class Multistatus {
582
1066
  /**
583
1067
  * Gets the generic description, if available.
584
1068
  * @api
@@ -596,7 +1080,7 @@ export namespace ITHit{
596
1080
  * @api
597
1081
  * @class ITHit.WebDAV.Client.MultistatusResponse
598
1082
  */
599
- class MultistatusResponse{
1083
+ class MultistatusResponse {
600
1084
  /**
601
1085
  * Request href
602
1086
  * @api
@@ -621,40 +1105,47 @@ export namespace ITHit{
621
1105
  * @class ITHit.WebDAV.Client.PropertyMultistatusResponse
622
1106
  * @extends ITHit.WebDAV.Client.MultistatusResponse
623
1107
  */
624
- class PropertyMultistatusResponse{
1108
+ class PropertyMultistatusResponse extends ITHit.WebDAV.Client.MultistatusResponse {
625
1109
  /**
626
1110
  * Name of the property, if element is property. Otherwise null.
627
1111
  * @api
628
1112
  * @type {ITHit.WebDAV.Client.PropertyName}
629
1113
  */
630
1114
  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
1115
  /**
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{
1116
+ * Request href
1117
+ * @api
1118
+ * @type {string}
1119
+ */
1120
+ Href: string
1121
+ /**
1122
+ * Array of the errors returned by server.
1123
+ * @api
1124
+ * @type {string}
1125
+ */
1126
+ Description: string
1127
+ /**
1128
+ * HTTP Status of the operation.
1129
+ * @api
1130
+ * @type {ITHit.WebDAV.Client.HttpStatus}
1131
+ */
1132
+ Status: ITHit.WebDAV.Client.HttpStatus
1133
+ }/**
1134
+ * Scope of the lock.
1135
+ * Represents exclusive or shared lock.
1136
+ * @api
1137
+ * @enum {string}
1138
+ * @class ITHit.WebDAV.Client.LockScope
1139
+ */
1140
+ enum LockScope{
1141
+ Exclusive = "Exclusive",
1142
+ Shared = "Shared",
652
1143
  }/**
653
1144
  * Represents pair of resource uri - lock token. Is used to access locked resources.
654
1145
  * @api
655
1146
  * @class ITHit.WebDAV.Client.LockUriTokenPair
656
1147
  */
657
- class LockUriTokenPair{
1148
+ class LockUriTokenPair {
658
1149
  /**
659
1150
  * Path to the locked resource.
660
1151
  * @api
@@ -672,7 +1163,7 @@ export namespace ITHit{
672
1163
  * @api
673
1164
  * @class ITHit.WebDAV.Client.LockInfo
674
1165
  */
675
- class LockInfo{
1166
+ class LockInfo {
676
1167
  /**
677
1168
  * Scope of the lock.
678
1169
  * @api
@@ -708,7 +1199,7 @@ export namespace ITHit{
708
1199
  * @api
709
1200
  * @class ITHit.WebDAV.Client.OptionsInfo
710
1201
  */
711
- class OptionsInfo{
1202
+ class OptionsInfo {
712
1203
  /**
713
1204
  * Features supported by WebDAV server. See Features Enumeration {@link ITHit.WebDAV.Client.Features}.
714
1205
  * @api
@@ -721,7 +1212,7 @@ export namespace ITHit{
721
1212
  * @enum {number}
722
1213
  * @class ITHit.WebDAV.Client.Features
723
1214
  */
724
- namespace Features{
1215
+ class Features {
725
1216
  /**
726
1217
  * WebDAV Class 1 compliant item.
727
1218
  * Class 1 items does not support locking.
@@ -729,7 +1220,8 @@ export namespace ITHit{
729
1220
  * @readonly
730
1221
  * @type {number}
731
1222
  */
732
- const Class1: number
1223
+ static readonly Class1: number
1224
+ readonly Class1: number
733
1225
  /**
734
1226
  * WebDAV Class 2 compliant item.
735
1227
  * Class 2 items support locking.
@@ -737,141 +1229,389 @@ export namespace ITHit{
737
1229
  * @readonly
738
1230
  * @type {number}
739
1231
  */
740
- const Class2: number
1232
+ static readonly Class2: number
1233
+ readonly Class2: number
741
1234
  /**
742
1235
  * WebDAV Class 3 compliant item.
743
1236
  * @api
744
1237
  * @readonly
745
1238
  * @type {number}
746
1239
  */
747
- const Class3: number
1240
+ static readonly Class3: number
1241
+ readonly Class3: number
748
1242
  /**
749
1243
  * WevDAV paging compliant item.
750
1244
  * @api
751
1245
  * @readonly
752
1246
  * @type {number}
753
1247
  */
754
- const VersionControl: number
1248
+ static readonly VersionControl: number
1249
+ readonly VersionControl: number
755
1250
  /**
756
1251
  * DeltaV version-control compliant item.
757
1252
  * @api
758
1253
  * @readonly
759
1254
  * @type {number}
760
1255
  */
761
- const Paging: number
1256
+ static readonly Paging: number
1257
+ readonly Paging: number
762
1258
  /**
763
1259
  * Checkout-in-place item support check out, check in and uncheckout operations.
764
1260
  * @api
765
1261
  * @readonly
766
1262
  * @type {number}
767
1263
  */
768
- const CheckoutInPlace: number
1264
+ static readonly CheckoutInPlace: number
1265
+ readonly CheckoutInPlace: number
769
1266
  /**
770
1267
  * DeltaV Version History compliant item.
771
1268
  * @api
772
1269
  * @readonly
773
1270
  * @type {number}
774
1271
  */
775
- const VersionHistory: number
1272
+ static readonly VersionHistory: number
1273
+ readonly VersionHistory: number
776
1274
  /**
777
1275
  * DeltaV Update compliant item.
778
1276
  * @api
779
1277
  * @readonly
780
1278
  * @type {number}
781
1279
  */
782
- const Update: number
1280
+ static readonly Update: number
1281
+ readonly Update: number
783
1282
  /**
784
1283
  * The item supports resumable upload.
785
1284
  * @api
786
1285
  * @readonly
787
1286
  * @type {number}
788
1287
  */
789
- const ResumableUpload: number
1288
+ static readonly ResumableUpload: number
1289
+ readonly ResumableUpload: number
790
1290
  /**
791
1291
  * The item supports resumable download.
792
1292
  * @api
793
1293
  * @readonly
794
1294
  * @type {number}
795
1295
  */
796
- const ResumableDownload: number
1296
+ static readonly ResumableDownload: number
1297
+ readonly ResumableDownload: number
797
1298
  /**
798
1299
  * The item supports search.
799
1300
  * @api
800
1301
  * @readonly
801
1302
  * @type {number}
802
1303
  */
803
- const Dasl: number
1304
+ static readonly Dasl: number
1305
+ readonly Dasl: number
804
1306
  /**
805
1307
  * The item supports GSuite editing.
806
1308
  * @api
807
1309
  * @readonly
808
1310
  * @type {number}
809
1311
  */
810
- const GSuite: number
811
- }class Features{
812
- }/**
1312
+ static readonly GSuite: number
1313
+ readonly GSuite: number
1314
+ }/**
813
1315
  * Represents one WebDAV item (file, folder or lock-null).
814
1316
  * @api
815
1317
  * @class ITHit.WebDAV.Client.HierarchyItem
816
1318
  */
817
- class HierarchyItem{
818
- }/**
1319
+ class HierarchyItem {
1320
+ /**
1321
+ * Current WebDAV session.
1322
+ * @api
1323
+ * @type {ITHit.WebDAV.Client.WebDavSession}
1324
+ */
1325
+ Session: ITHit.WebDAV.Client.WebDavSession
1326
+ /**
1327
+ * This item path on the server.
1328
+ * @api
1329
+ * @type {string}
1330
+ */
1331
+ Href: string
1332
+ /**
1333
+ * Most recent modification date.
1334
+ * @api
1335
+ * @type {Date}
1336
+ */
1337
+ LastModified: Date
1338
+ /**
1339
+ * User friendly item name.
1340
+ * @api
1341
+ * @type {string}
1342
+ */
1343
+ DisplayName: string
1344
+ /**
1345
+ * The date item was created.
1346
+ * @api
1347
+ * @type {Date}
1348
+ */
1349
+ CreationDate: Date
1350
+ /**
1351
+ * Type of the item (File or Folder).
1352
+ * @api
1353
+ * @type {string}
1354
+ * @see ITHit.WebDAV.Client.ResourceType
1355
+ */
1356
+ ResourceType: string
1357
+ /**
1358
+ * Retrieves information about supported locks. Item can support exclusive, shared locks or do not support
1359
+ * any locks. If you set exclusive lock other users will not be able to set any locks. If you set shared
1360
+ * lock other users will be able to set shared lock on the item.
1361
+ * @api
1362
+ * @examplecode ITHit.WebDAV.Client.Tests.Locks.CheckSupport.CheckLockSupport
1363
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Locks.CheckSupport.CheckLockSupport
1364
+ * @type {Array.<string>}
1365
+ * @see ITHit.WebDAV.Client.LockScope
1366
+ */
1367
+ SupportedLocks: string[]
1368
+ /**
1369
+ * List of locks applied to this item.
1370
+ * @examplecode ITHit.WebDAV.Client.Tests.Locks.GetLocks.GetList
1371
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Locks.GetLocks.GetList
1372
+ * @api
1373
+ * @type {Array.<ITHit.WebDAV.Client.LockInfo>}
1374
+ */
1375
+ ActiveLocks: ITHit.WebDAV.Client.LockInfo[]
1376
+ /**
1377
+ * List of item properties.
1378
+ * @api
1379
+ * @type {ITHit.WebDAV.Client.PropertyList}
1380
+ */
1381
+ Properties: ITHit.WebDAV.Client.PropertyList
1382
+ /**
1383
+ * Returns true if file is under version control. Otherwise false. To detect if version control could
1384
+ * be enabled for this item call GetSupportedFeaturesAsync and check for VersionControl token.
1385
+ * To enable version control call PutUnderVersionControlAsync.
1386
+ * @api
1387
+ * @returns {boolean} Boolean, if true - versions supported
1388
+ */
1389
+ /**
1390
+ * Number of bytes available for this user on server. -1 if server does not support Quota.
1391
+ * @api
1392
+ * @type {number}
1393
+ */
1394
+ AvailableBytes: number
1395
+ /**
1396
+ * Number of bytes used by this user on server. -1 if server does not support Quota.
1397
+ * @api
1398
+ * @type {number}
1399
+ */
1400
+ UsedBytes: number
1401
+ /**
1402
+ * Refreshes item loading data from server.
1403
+ * @api
1404
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.Refresh.Refresh
1405
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.Refresh.Refresh
1406
+ * @param {ITHit.WebDAV.Client.HierarchyItem~RefreshAsyncCallback} fCallback Function to call when operation is completed.
1407
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
1408
+ */
1409
+ RefreshAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1410
+ /**
1411
+ * Copies this item to destination folder.
1412
+ * @api
1413
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.CopyMove.Copy
1414
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.CopyMove.Copy
1415
+ * @param {ITHit.WebDAV.Client.Folder} oDestinationFolder Folder to move to.
1416
+ * @param {string} sDestinationName Name to assign to copied item.
1417
+ * @param {boolean} bDeep Indicates whether children of this item should be copied.
1418
+ * @param {boolean} bOverwrite Whether existing destination item shall be overwritten.
1419
+ * @param {ITHit.WebDAV.Client.LockUriTokenPair[]} [oLockTokens] Lock tokens for destination folder.
1420
+ * @param {ITHit.WebDAV.Client.HierarchyItem~CopyToAsyncCallback} fCallback Function to call when operation is completed.
1421
+ */
1422
+ CopyToAsync(oDestinationFolder: ITHit.WebDAV.Client.Folder, sDestinationName: string, bDeep: boolean, bOverwrite: boolean, oLockTokens?: ITHit.WebDAV.Client.LockUriTokenPair[] | null, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): void;
1423
+ /**
1424
+ * Deletes this item.
1425
+ * @api
1426
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.Delete.Delete
1427
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.Delete.Delete
1428
+ * @param {ITHit.WebDAV.Client.LockUriTokenPair | null} oLockTokens Lock tokens for this item or any locked child item.
1429
+ * @param {ITHit.WebDAV.Client.HierarchyItem~DeleteAsyncCallback} fCallback Function to call when operation is completed.
1430
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
1431
+ */
1432
+ DeleteAsync(oLockTokens: ITHit.WebDAV.Client.LockUriTokenPair | null, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1433
+ /**
1434
+ * Returns names of all custom properties exposed by this item.
1435
+ * @api
1436
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyProperties.GetProperties.GetPropertyNames
1437
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyProperties.GetProperties.GetPropertyNames
1438
+ * @param {ITHit.WebDAV.Client.HierarchyItem~GetPropertyNamesAsyncCallback} fCallback Function to call when operation is completed.
1439
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
1440
+ */
1441
+ GetPropertyNamesAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1442
+ /**
1443
+ * Retrieves values of specific properties.
1444
+ * @api
1445
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyProperties.GetProperties.GetPropertyValues
1446
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyProperties.GetProperties.GetPropertyValues
1447
+ * @param {ITHit.WebDAV.Client.PropertyName[]} aNames
1448
+ * @param {ITHit.WebDAV.Client.HierarchyItem~GetPropertyValuesAsyncCallback} fCallback Function to call when operation is completed.
1449
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
1450
+ */
1451
+ GetPropertyValuesAsync(aNames: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1452
+ /**
1453
+ * Retrieves all custom properties exposed by the item.
1454
+ * @api
1455
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyProperties.GetProperties.GetAllProperties
1456
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyProperties.GetProperties.GetAllProperties
1457
+ * @param {ITHit.WebDAV.Client.HierarchyItem~GetAllPropertiesAsyncCallback} fCallback Function to call when operation is completed.
1458
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
1459
+ */
1460
+ GetAllPropertiesAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1461
+ /**
1462
+ * Retrieves parent hierarchy item of this item.
1463
+ * @api
1464
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.GetParent.GetParent
1465
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.GetParent.GetParent
1466
+ * @param {ITHit.WebDAV.Client.PropertyName[]} aProperties Additional properties requested from server. Default is empty array.
1467
+ * @param {ITHit.WebDAV.Client.HierarchyItem~GetParentAsyncCallback} fCallback Function to call when operation is completed.
1468
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
1469
+ */
1470
+ GetParentAsync(aProperties: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1471
+ /**
1472
+ * Retrieves media type independent links.
1473
+ * @api
1474
+ * @param {ITHit.WebDAV.Client.HierarchyItem~GetSourceAsyncCallback} fCallback Function to call when operation is completed.
1475
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
1476
+ */
1477
+ GetSourceAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1478
+ /**
1479
+ * Locks the item. If the lock was successfully applied, the server will return a lock token. You will pass this
1480
+ * lock token back to the server when updating and unlocking the item. The actual lock time applied by the server
1481
+ * may be different from the one requested by the client.
1482
+ * @api
1483
+ * @examplecode ITHit.WebDAV.Client.Tests.Locks.Lock.SetLock
1484
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Locks.Lock.SetLock
1485
+ * @param {string} sLockScope Scope of the lock. See LockScope Enumeration {@link ITHit.WebDAV.Client.LockScope}
1486
+ * @param {boolean} bDeep Whether to lock entire subtree.
1487
+ * @param {string} sOwner Owner of the lock.
1488
+ * @param {number} iTimeout Timeout after which lock expires. Pass -1 to request an infinite timeout.
1489
+ * @param {ITHit.WebDAV.Client.HierarchyItem~LockAsyncCallback} fCallback Function to call when operation is completed.
1490
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
1491
+ */
1492
+ LockAsync(sLockScope: string, bDeep: boolean, sOwner: string, iTimeout: number, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1493
+ /**
1494
+ * Moves this item to another location.
1495
+ * @api
1496
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.CopyMove.Move
1497
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.CopyMove.Move
1498
+ * @param {ITHit.WebDAV.Client.Folder} oDestinationFolder Folder to move to.
1499
+ * @param {string} sDestinationName Name to assign to moved item.
1500
+ * @param {boolean} bOverwrite Whether existing destination item shall be overwritten.
1501
+ * @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.
1502
+ * @param {ITHit.WebDAV.Client.HierarchyItem~MoveToAsyncCallback} fCallback Function to call when operation is completed.
1503
+ * @return {ITHit.WebDAV.Client.Request} Request object.
1504
+ */
1505
+ MoveToAsync(oDestinationFolder: ITHit.WebDAV.Client.Folder, sDestinationName: string, bOverwrite: boolean, oLockTokens: string | ITHit.WebDAV.Client.LockUriTokenPair[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1506
+ /**
1507
+ * Prolongs the lock.
1508
+ * @api
1509
+ * @examplecode ITHit.WebDAV.Client.Tests.Locks.RefreshLock.RefreshLock
1510
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Locks.RefreshLock.RefreshLock
1511
+ * @param {string} sLockToken Identifies lock to be prolonged.
1512
+ * @param {number} iTimeout New timeout to set.
1513
+ * @param {ITHit.WebDAV.Client.HierarchyItem~RefreshLockAsyncCallback} fCallback Function to call when operation is completed.
1514
+ * @return {ITHit.WebDAV.Client.Request} Request object.
1515
+ */
1516
+ RefreshLockAsync(sLockToken: string, iTimeout: number, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1517
+ /**
1518
+ * Gets features supported by this item, such as WebDAV class support.
1519
+ * @api
1520
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.SupportedFeatures.SupportedFeatures
1521
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.SupportedFeatures.SupportedFeatures
1522
+ * @param {ITHit.WebDAV.Client.HierarchyItem~GetSupportedFeaturesAsyncCallback} fCallback Function to call when operation is completed.
1523
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
1524
+ */
1525
+ GetSupportedFeaturesAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1526
+ /**
1527
+ * Removes the lock.
1528
+ * @api
1529
+ * @examplecode ITHit.WebDAV.Client.Tests.Locks.Lock.SetUnLock
1530
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Locks.Lock.SetUnLock
1531
+ * @param {string} sLockToken Identifies lock to be prolonged.
1532
+ * @param {ITHit.WebDAV.Client.HierarchyItem~UnlockAsyncCallback} fCallback Function to call when operation is completed.
1533
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
1534
+ */
1535
+ UnlockAsync(sLockToken: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1536
+ /**
1537
+ * Updates values of properties exposed by this item.
1538
+ * @api
1539
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyProperties.UpdateProperties.Update
1540
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyProperties.UpdateProperties.Delete
1541
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyProperties.UpdateProperties.Update
1542
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyProperties.UpdateProperties.Delete
1543
+ * @param {ITHit.WebDAV.Client.Property[]} oPropertiesToAddOrUpdate Properties to be updated.
1544
+ * @param {ITHit.WebDAV.Client.PropertyName[]} oPropertiesToDelete Names of properties to be removed from this item.
1545
+ * @param {string} [sLockToken] Lock token.
1546
+ * @param {ITHit.WebDAV.Client.HierarchyItem~UpdatePropertiesAsyncCallback} fCallback Function to call when operation is completed.
1547
+ * @returns {ITHit.WebDAV.Client.WebDavRequest|null} WebDAV request
1548
+ */
1549
+ UpdatePropertiesAsync(oPropertiesToAddOrUpdate: ITHit.WebDAV.Client.Property[], oPropertiesToDelete: ITHit.WebDAV.Client.PropertyName[], sLockToken?: string | null, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.WebDavRequest | null;
1550
+ }/**
819
1551
  * The class represents set of extensions to be edited with Microsoft Office.
820
1552
  * @api
821
1553
  * @class ITHit.WebDAV.Client.MsOfficeEditExtensions
822
1554
  * @examplecode ITHit.WebDAV.Client.Tests.DocManager.MsOfficeEditExtensions.EditRtfDocumentWithWord
1555
+ * @examplecode ITHit.WebDAV.Client.TSExamples.DocManager.MsOfficeEditExtensions.EditRtfDocumentWithWord
823
1556
  */
824
- namespace MsOfficeEditExtensions{
1557
+ class MsOfficeEditExtensions {
825
1558
  /**
826
1559
  * Array of file extensions which are opened with Microsoft Access.
827
1560
  * @api
828
- * @type {array}
1561
+ * @type {Array.<string>}
829
1562
  */
830
- Access: array
1563
+ static Access: string[]
1564
+ Access: string[]
831
1565
  /**
832
1566
  * Array of file extensions which are opened with Microsoft Infopath.
833
1567
  * @api
834
- * @type {array}
1568
+ * @type {Array.<string>}
835
1569
  */
836
- Infopath: array
1570
+ static Infopath: string[]
1571
+ Infopath: string[]
837
1572
  /**
838
1573
  * Array of file extensions which are opened with Microsoft Excel.
839
1574
  * @api
840
- * @type {array}
1575
+ * @type {Array.<string>}
841
1576
  */
842
- Excel: array
1577
+ static Excel: string[]
1578
+ Excel: string[]
843
1579
  /**
844
1580
  * Array of file extensions which are opened with Microsoft Powerpoint.
845
1581
  * @api
846
- * @type {array}
1582
+ * @type {Array.<string>}
847
1583
  */
848
- Powerpoint: array
1584
+ static Powerpoint: string[]
1585
+ Powerpoint: string[]
849
1586
  /**
850
1587
  * Array of file extensions which are opened with Microsoft Project.
851
1588
  * @api
852
- * @type {array}
1589
+ * @type {Array.<string>}
853
1590
  */
854
- Project: array
1591
+ static Project: string[]
1592
+ Project: string[]
855
1593
  /**
856
1594
  * Array of file extensions which are opened with Microsoft Publisher.
857
1595
  * @api
858
- * @type {array}
1596
+ * @type {Array.<string>}
859
1597
  */
860
- Publisher: array
1598
+ static Publisher: string[]
1599
+ Publisher: string[]
861
1600
  /**
862
1601
  * Array of file extensions which are opened with Microsoft Visio.
863
1602
  * @api
864
- * @type {array}
1603
+ * @type {Array.<string>}
865
1604
  */
866
- Visio: array
1605
+ static Visio: string[]
1606
+ Visio: string[]
867
1607
  /**
868
1608
  * Array of file extensions which are opened with Microsoft Word.
869
1609
  * @api
870
- * @type {array}
1610
+ * @type {Array.<string>}
871
1611
  */
872
- Word: array
873
- }class MsOfficeEditExtensions{
874
- }/**
1612
+ static Word: string[]
1613
+ Word: string[]
1614
+ }/**
875
1615
  * This class provides methods for opening documents for editing directly from server and saving back to server
876
1616
  * without download and upload steps. This includes editing Microsoft Office documents as well as any other file
877
1617
  * types and works on Windows, Mac OS X and Linux.
@@ -880,27 +1620,11 @@ export namespace ITHit{
880
1620
  */
881
1621
  namespace DocManager{
882
1622
  /**
883
- * Collection of extensions of files which are opened with Microsoft Office.
884
- * @api
885
- * @type {ITHit.WebDAV.Client.MsOfficeEditExtensions}
886
- * @examplecode ITHit.WebDAV.Client.Tests.DocManager.MsOfficeEditExtensions.EditDocumentTest
887
- */
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
1623
  * Gets file names of the protocol installer depending on OS.
900
1624
  * @api
901
- * @return {Array} An array with file names of the protocol installer.
1625
+ * @return {Array.<string>} An array with file names of the protocol installer.
902
1626
  */
903
- function GetProtocolInstallFileNames(): Array;
1627
+ function GetProtocolInstallFileNames(): string[];
904
1628
  /**
905
1629
  * Returns true if protocol application installer is supported for the OS on which this function is called, false - otherwise.
906
1630
  * @api
@@ -929,7 +1653,7 @@ export namespace ITHit{
929
1653
  * @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
1654
  * @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
1655
  */
932
- function OpenFolderInOsFileManager(sFolderUrl: string, sMountUrl?: string, errorCallback?: function, reserved?: string, sSearchIn?: string, sCookieNames?: string, sLoginUrl?: string): void;
1656
+ function OpenFolderInOsFileManager(sFolderUrl: string, sMountUrl?: string | null, errorCallback?: Function | null, reserved?: string | null, sSearchIn?: string | null, sCookieNames?: string | null, sLoginUrl?: string | null): void;
933
1657
  /**
934
1658
  * Extracts extension and returns true if URL points to Microsoft Office Document.
935
1659
  * @api
@@ -980,7 +1704,7 @@ export namespace ITHit{
980
1704
  * @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
1705
  * If not specified a default message offering protocol installation will be displayed.
982
1706
  */
983
- function EditDocument(sDocumentUrl: string, sMountUrl?: string, errorCallback?: function): void;
1707
+ function EditDocument(sDocumentUrl: string, sMountUrl?: string | null, errorCallback?: Function | null): void;
984
1708
  /**
985
1709
  * Extracts extension and returns true if the document can be edited in G Suite editor or document preview generated via G Suite.
986
1710
  * @api
@@ -995,7 +1719,7 @@ export namespace ITHit{
995
1719
  * @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
1720
  * @param {function} [errorCallback] Function to call if document opening failed.
997
1721
  */
998
- function GSuiteEditDocument(sDocumentUrl: string, oContainerDomElement: DOM, errorCallback?: function): void;
1722
+ function GSuiteEditDocument(sDocumentUrl: string, oContainerDomElement: any, errorCallback?: Function | null): void;
999
1723
  /**
1000
1724
  * <p>Preview MS Office document with G Suite Online Tool.</p>
1001
1725
  * @api
@@ -1003,7 +1727,7 @@ export namespace ITHit{
1003
1727
  * @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
1728
  * @param {function} [errorCallback] Function to call if document opening failed.
1005
1729
  */
1006
- function GSuitePreviewDocument(sDocumentUrl: string, oContainerDomElement: DOM, errorCallback?: function): void;
1730
+ function GSuitePreviewDocument(sDocumentUrl: string, oContainerDomElement: any, errorCallback?: Function | null): void;
1007
1731
  /**
1008
1732
  * <p>Opens document for editing or printing using davX: protocol and prompts to install the protocol it if not found.</p>
1009
1733
  * <i class="optional">The following functionality is supported in v3 Beta and later only:</i>
@@ -1045,7 +1769,7 @@ export namespace ITHit{
1045
1769
  * &lt;/body&gt;
1046
1770
  * &lt;/html&gt;
1047
1771
  * @api
1048
- * @param {string} sDocumentUrls Array of document URLs to be opened for editing from server. All documents must be located under the same mount URL (specified in <code>sMountUrl</code> parameter). Must be a full URL(s) including the domain name.
1772
+ * @param {string | string[]} sDocumentUrls Array of document URLs to be opened for editing from server. All documents must be located under the same mount URL (specified in <code>sMountUrl</code> parameter). Must be a full URL(s) including the domain name.
1049
1773
  * @param {string} [sMountUrl] URL to mount file system to before opening the folder. Usually this is your WebDAV server root folder. If this perameter is not specified file system will be mounted to the folder in which document is located.
1050
1774
  * @param {function} [errorCallback] Function to call if document opening failed. Typically you will request the protocol installation in this callback.
1051
1775
  * If not specified a default message offering protocol installation will be displayed.
@@ -1068,29 +1792,66 @@ export namespace ITHit{
1068
1792
  * </ul>
1069
1793
  * Default is <code>null</code>.
1070
1794
  */
1071
- function DavProtocolEditDocument(sDocumentUrls: string, sMountUrl?: string, errorCallback?: function, reserved?: string, sSearchIn?: string, sCookieNames?: string, sLoginUrl?: string, sCommand?: string): void;
1072
- }class DocManager{
1073
- }/**
1074
- * Provides support partial uploads and resuming broken uploads.
1075
- * @api
1076
- * @class ITHit.WebDAV.Client.ResumableUpload
1077
- */
1078
- class ResumableUpload{
1795
+ function DavProtocolEditDocument(sDocumentUrls: string | string[], sMountUrl?: string | null, errorCallback?: Function | null, reserved?: string | null, sSearchIn?: string | null, sCookieNames?: string | null, sLoginUrl?: string | null, sCommand?: string | null): void;
1796
+ }class DocManager {
1079
1797
  /**
1080
- * Get amount of bytes successfully uploaded to server.
1081
- * @api
1082
- * @param {ITHit.WebDAV.Client.ResumableUpload~GetBytesUploadedAsyncCallback} fCallback Function to call when operation is completed.
1083
- * @returns {ITHit.WebDAV.Client.Request} Request object.
1084
- */
1085
- GetBytesUploadedAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
1086
- /**
1087
- * Cancels upload of the file.
1088
- * @api
1798
+ * Collection of extensions of files which are opened with Microsoft Office.
1799
+ * @api
1800
+ * @type {ITHit.WebDAV.Client.MsOfficeEditExtensions}
1801
+ * @examplecode ITHit.WebDAV.Client.Tests.DocManager.MsOfficeEditExtensions.EditDocumentTest
1802
+ * @examplecode ITHit.WebDAV.Client.TSExamples.DocManager.MsOfficeEditExtensions.EditDocumentTest
1803
+ */
1804
+ static MsOfficeEditExtensions: ITHit.WebDAV.Client.MsOfficeEditExtensions
1805
+ MsOfficeEditExtensions: ITHit.WebDAV.Client.MsOfficeEditExtensions
1806
+ /**
1807
+ * Timeout in milliseconds to call error callback if application associated with the extension did not start.
1808
+ * Default is 3000ms.
1809
+ * 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).
1810
+ * NOT used in Firefox / Edge OR if DavProtocolEditDocument() is called OR if web browser protocol warning dialog is enabled.
1811
+ * @api
1812
+ * @type {number}
1813
+ */
1814
+ static ProtocolTimeoutMs: number
1815
+ ProtocolTimeoutMs: number
1816
+ }/**
1817
+ * Provides support partial uploads and resuming broken uploads.
1818
+ * @api
1819
+ * @class ITHit.WebDAV.Client.ResumableUpload
1820
+ */
1821
+ class ResumableUpload {
1822
+ /**
1823
+ * Get amount of bytes successfully uploaded to server.
1824
+ * @api
1825
+ * @param {ITHit.WebDAV.Client.ResumableUpload~GetBytesUploadedAsyncCallback} fCallback Function to call when operation is completed.
1826
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
1827
+ */
1828
+ GetBytesUploadedAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1829
+ /**
1830
+ * Cancels upload of the file.
1831
+ * @api
1089
1832
  * @param {string} mLockTokens Lock token for this file.
1090
1833
  * @param {ITHit.WebDAV.Client.ResumableUpload~CancelUploadAsyncCallback} fCallback Function to call when operation is completed.
1091
1834
  * @returns {ITHit.WebDAV.Client.Request} Request object.
1092
1835
  */
1093
- CancelUploadAsync(mLockTokens: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
1836
+ CancelUploadAsync(mLockTokens: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1837
+ }/**
1838
+ * Information about lock set on an item.
1839
+ * @api
1840
+ * @class ITHit.WebDAV.Client.GEditInfo
1841
+ */
1842
+ class GEditInfo {
1843
+ /**
1844
+ * File ID from google drive.
1845
+ * @api
1846
+ * @type {string}
1847
+ */
1848
+ GFileID: string
1849
+ /**
1850
+ * Revision ID from google drive.
1851
+ * @api
1852
+ * @type {string}
1853
+ */
1854
+ GRevisionID: string
1094
1855
  }/**
1095
1856
  * Represents a file on a WebDAV server.
1096
1857
  * @api
@@ -1111,10 +1872,10 @@ export namespace ITHit{
1111
1872
  * @api
1112
1873
  * @param {ITHit.WebDAV.Client.Request} oRequest Current WebDAV session.
1113
1874
  * @param {string} sHref This item path on the server.
1114
- * @param {ITHit.WebDAV.Client.File~GEditAsync} fCallback Function to call when operation is completed.
1875
+ * @param {ITHit.WebDAV.Client.File~GEditAsyncCallback} fCallback Function to call when operation is completed.
1115
1876
  * @returns {ITHit.WebDAV.Client.Request} Request object.
1116
1877
  */
1117
- function GEditAsync(oRequest: ITHit.WebDAV.Client.Request, sHref: string, fCallback?: any): ITHit.WebDAV.Client.Request;
1878
+ function GEditAsync(oRequest: ITHit.WebDAV.Client.Request, sHref: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1118
1879
  /**
1119
1880
  * Removes the lock and update file.
1120
1881
  * @api
@@ -1125,7 +1886,7 @@ export namespace ITHit{
1125
1886
  * @throws ITHit.WebDAV.Client.Exceptions.NotFoundException The item doesn't exist on the server.
1126
1887
  * @throws ITHit.WebDAV.Client.Exceptions.WebDavException Unexpected error occurred.
1127
1888
  */
1128
- function GUnlock(oRequest: ITHit.WebDAV.Client.Request, sHref: string, sLockToken?: string): void;
1889
+ function GUnlock(oRequest: ITHit.WebDAV.Client.Request, sHref: string, sLockToken?: string | null): void;
1129
1890
  /**
1130
1891
  * Removes the lock and update file.
1131
1892
  * @api
@@ -1136,8 +1897,8 @@ export namespace ITHit{
1136
1897
  * @param {ITHit.WebDAV.Client.File~GUnlockAsyncCallback} fCallback Function to call when operation is completed.
1137
1898
  * @returns {ITHit.WebDAV.Client.Request} Request object.
1138
1899
  */
1139
- 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{
1900
+ function GUnlockAsync(oRequest: ITHit.WebDAV.Client.Request, sHref: string, sLockToken: string, sRevisionID: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1901
+ }class File extends ITHit.WebDAV.Client.HierarchyItem {
1141
1902
  /**
1142
1903
  * Length of the file.
1143
1904
  * @api
@@ -1163,50 +1924,56 @@ export namespace ITHit{
1163
1924
  * @api
1164
1925
  * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.CreateFile.ReadContent
1165
1926
  * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.CreateFile.ReadContentRange
1927
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.CreateFile.ReadContent
1928
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.CreateFile.ReadContentRange
1166
1929
  * @param {number} iBytesFrom Start position to retrieve lBytesCount number of bytes from.
1167
1930
  * @param {number} iBytesCount Number of bytes to retrieve.
1168
1931
  * @param {ITHit.WebDAV.Client.File~ReadContentAsyncCallback} fCallback Function to call when operation is completed.
1169
1932
  * @returns {ITHit.WebDAV.Client.Request} Request object.
1170
1933
  */
1171
- ReadContentAsync(iBytesFrom: number, iBytesCount: number, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
1934
+ ReadContentAsync(iBytesFrom: number, iBytesCount: number, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1172
1935
  /**
1173
1936
  * Writes file content.
1174
1937
  * @api
1175
1938
  * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.CreateFile.OnlyWriteContent
1939
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.CreateFile.OnlyWriteContent
1176
1940
  * @param {string} sContent File content.
1177
1941
  * @param {string} sLockToken Lock token.
1178
1942
  * @param {string} sMimeType File mime-type.
1179
1943
  * @param {ITHit.WebDAV.Client.File~WriteContentAsyncCallback} fCallback Function to call when operation is completed.
1180
1944
  * @returns {ITHit.WebDAV.Client.Request} Request object.
1181
1945
  */
1182
- WriteContentAsync(sContent: string, sLockToken: string, sMimeType: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
1946
+ WriteContentAsync(sContent: string, sLockToken: string, sMimeType: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1183
1947
  /**
1184
1948
  * Retrieves item versions.
1185
1949
  * @examplecode ITHit.WebDAV.Client.Tests.Versions.GetVersions.GetVersions
1950
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Versions.GetVersions.GetVersions
1186
1951
  * @api
1187
1952
  * @param {ITHit.WebDAV.Client.File~GetVersionsAsyncCallback} fCallback Function to call when operation is completed.
1188
1953
  * @returns {ITHit.WebDAV.Client.Request} Request object.
1189
1954
  */
1190
- GetVersionsAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
1955
+ GetVersionsAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1191
1956
  /**
1192
1957
  * Update to version.
1193
1958
  * @examplecode ITHit.WebDAV.Client.Tests.Versions.ManageVersions.UpdateToVersion
1959
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Versions.ManageVersions.UpdateToVersion
1194
1960
  * @api
1195
1961
  * @param {string|ITHit.WebDAV.Client.Version} mVersion Href to file with version attribute or {@link ITHit.WebDAV.Client.Version} instance.
1196
1962
  * @param {ITHit.WebDAV.Client.File~UpdateToVersionAsyncCallback} fCallback Function to call when operation is completed.
1197
1963
  * @returns {ITHit.WebDAV.Client.Request} Request object.
1198
1964
  */
1199
- UpdateToVersionAsync(mVersion: string | ITHit.WebDAV.Client.Version, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
1965
+ UpdateToVersionAsync(mVersion: string | ITHit.WebDAV.Client.Version, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1200
1966
  /**
1201
1967
  * Enables / disables version control for this file.
1202
1968
  * @api
1203
1969
  * @examplecode ITHit.WebDAV.Client.Tests.Versions.PutUnderVersion.EnableVersion
1970
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Versions.PutUnderVersion.EnableVersion
1204
1971
  * @param {boolean} bEnable True to enable version-control, false - to disable.
1205
1972
  * @param {string} mLockToken Lock token for this item.
1206
1973
  * @param {ITHit.WebDAV.Client.File~PutUnderVersionControlAsyncCallback} fCallback Function to call when operation is completed.
1207
1974
  * @returns {ITHit.WebDAV.Client.Request} Request object.
1208
1975
  */
1209
- PutUnderVersionControlAsync(bEnable: boolean, mLockToken: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
1976
+ PutUnderVersionControlAsync(bEnable: boolean, mLockToken: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1210
1977
  /**
1211
1978
  * Current WebDAV session.
1212
1979
  * @api
@@ -1250,17 +2017,19 @@ export namespace ITHit{
1250
2017
  * lock other users will be able to set shared lock on the item.
1251
2018
  * @api
1252
2019
  * @examplecode ITHit.WebDAV.Client.Tests.Locks.CheckSupport.CheckLockSupport
1253
- * @type {Array}
2020
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Locks.CheckSupport.CheckLockSupport
2021
+ * @type {Array.<string>}
1254
2022
  * @see ITHit.WebDAV.Client.LockScope
1255
2023
  */
1256
- SupportedLocks: Array
2024
+ SupportedLocks: string[]
1257
2025
  /**
1258
2026
  * List of locks applied to this item.
1259
2027
  * @examplecode ITHit.WebDAV.Client.Tests.Locks.GetLocks.GetList
2028
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Locks.GetLocks.GetList
1260
2029
  * @api
1261
- * @type {Array}
2030
+ * @type {Array.<ITHit.WebDAV.Client.LockInfo>}
1262
2031
  */
1263
- ActiveLocks: Array
2032
+ ActiveLocks: ITHit.WebDAV.Client.LockInfo[]
1264
2033
  /**
1265
2034
  * List of item properties.
1266
2035
  * @api
@@ -1290,14 +2059,16 @@ export namespace ITHit{
1290
2059
  * Refreshes item loading data from server.
1291
2060
  * @api
1292
2061
  * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.Refresh.Refresh
2062
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.Refresh.Refresh
1293
2063
  * @param {ITHit.WebDAV.Client.HierarchyItem~RefreshAsyncCallback} fCallback Function to call when operation is completed.
1294
2064
  * @returns {ITHit.WebDAV.Client.Request} Request object.
1295
2065
  */
1296
- RefreshAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2066
+ RefreshAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1297
2067
  /**
1298
2068
  * Copies this item to destination folder.
1299
2069
  * @api
1300
2070
  * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.CopyMove.Copy
2071
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.CopyMove.Copy
1301
2072
  * @param {ITHit.WebDAV.Client.Folder} oDestinationFolder Folder to move to.
1302
2073
  * @param {string} sDestinationName Name to assign to copied item.
1303
2074
  * @param {boolean} bDeep Indicates whether children of this item should be copied.
@@ -1305,63 +2076,69 @@ export namespace ITHit{
1305
2076
  * @param {ITHit.WebDAV.Client.LockUriTokenPair[]} [oLockTokens] Lock tokens for destination folder.
1306
2077
  * @param {ITHit.WebDAV.Client.HierarchyItem~CopyToAsyncCallback} fCallback Function to call when operation is completed.
1307
2078
  */
1308
- 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;
2079
+ CopyToAsync(oDestinationFolder: ITHit.WebDAV.Client.Folder, sDestinationName: string, bDeep: boolean, bOverwrite: boolean, oLockTokens?: ITHit.WebDAV.Client.LockUriTokenPair[] | null, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): void;
1309
2080
  /**
1310
2081
  * Deletes this item.
1311
2082
  * @api
1312
2083
  * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.Delete.Delete
1313
- * @param {ITHit.WebDAV.Client.LockUriTokenPair} oLockTokens Lock tokens for this item or any locked child item.
2084
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.Delete.Delete
2085
+ * @param {ITHit.WebDAV.Client.LockUriTokenPair | null} oLockTokens Lock tokens for this item or any locked child item.
1314
2086
  * @param {ITHit.WebDAV.Client.HierarchyItem~DeleteAsyncCallback} fCallback Function to call when operation is completed.
1315
2087
  * @returns {ITHit.WebDAV.Client.Request} Request object.
1316
2088
  */
1317
- DeleteAsync(oLockTokens: ITHit.WebDAV.Client.LockUriTokenPair, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2089
+ DeleteAsync(oLockTokens: ITHit.WebDAV.Client.LockUriTokenPair | null, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1318
2090
  /**
1319
2091
  * Returns names of all custom properties exposed by this item.
1320
2092
  * @api
1321
2093
  * @examplecode ITHit.WebDAV.Client.Tests.HierarchyProperties.GetProperties.GetPropertyNames
2094
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyProperties.GetProperties.GetPropertyNames
1322
2095
  * @param {ITHit.WebDAV.Client.HierarchyItem~GetPropertyNamesAsyncCallback} fCallback Function to call when operation is completed.
1323
2096
  * @returns {ITHit.WebDAV.Client.Request} Request object.
1324
2097
  */
1325
- GetPropertyNamesAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2098
+ GetPropertyNamesAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1326
2099
  /**
1327
2100
  * Retrieves values of specific properties.
1328
2101
  * @api
1329
2102
  * @examplecode ITHit.WebDAV.Client.Tests.HierarchyProperties.GetProperties.GetPropertyValues
2103
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyProperties.GetProperties.GetPropertyValues
1330
2104
  * @param {ITHit.WebDAV.Client.PropertyName[]} aNames
1331
2105
  * @param {ITHit.WebDAV.Client.HierarchyItem~GetPropertyValuesAsyncCallback} fCallback Function to call when operation is completed.
1332
2106
  * @returns {ITHit.WebDAV.Client.Request} Request object.
1333
2107
  */
1334
- GetPropertyValuesAsync(aNames: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2108
+ GetPropertyValuesAsync(aNames: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1335
2109
  /**
1336
2110
  * Retrieves all custom properties exposed by the item.
1337
2111
  * @api
1338
2112
  * @examplecode ITHit.WebDAV.Client.Tests.HierarchyProperties.GetProperties.GetAllProperties
2113
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyProperties.GetProperties.GetAllProperties
1339
2114
  * @param {ITHit.WebDAV.Client.HierarchyItem~GetAllPropertiesAsyncCallback} fCallback Function to call when operation is completed.
1340
2115
  * @returns {ITHit.WebDAV.Client.Request} Request object.
1341
2116
  */
1342
- GetAllPropertiesAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2117
+ GetAllPropertiesAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1343
2118
  /**
1344
2119
  * Retrieves parent hierarchy item of this item.
1345
2120
  * @api
1346
2121
  * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.GetParent.GetParent
2122
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.GetParent.GetParent
1347
2123
  * @param {ITHit.WebDAV.Client.PropertyName[]} aProperties Additional properties requested from server. Default is empty array.
1348
2124
  * @param {ITHit.WebDAV.Client.HierarchyItem~GetParentAsyncCallback} fCallback Function to call when operation is completed.
1349
2125
  * @returns {ITHit.WebDAV.Client.Request} Request object.
1350
2126
  */
1351
- GetParentAsync(aProperties: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2127
+ GetParentAsync(aProperties: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1352
2128
  /**
1353
2129
  * Retrieves media type independent links.
1354
2130
  * @api
1355
2131
  * @param {ITHit.WebDAV.Client.HierarchyItem~GetSourceAsyncCallback} fCallback Function to call when operation is completed.
1356
2132
  * @returns {ITHit.WebDAV.Client.Request} Request object.
1357
2133
  */
1358
- GetSourceAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2134
+ GetSourceAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1359
2135
  /**
1360
2136
  * Locks the item. If the lock was successfully applied, the server will return a lock token. You will pass this
1361
2137
  * lock token back to the server when updating and unlocking the item. The actual lock time applied by the server
1362
2138
  * may be different from the one requested by the client.
1363
2139
  * @api
1364
2140
  * @examplecode ITHit.WebDAV.Client.Tests.Locks.Lock.SetLock
2141
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Locks.Lock.SetLock
1365
2142
  * @param {string} sLockScope Scope of the lock. See LockScope Enumeration {@link ITHit.WebDAV.Client.LockScope}
1366
2143
  * @param {boolean} bDeep Whether to lock entire subtree.
1367
2144
  * @param {string} sOwner Owner of the lock.
@@ -1369,11 +2146,12 @@ export namespace ITHit{
1369
2146
  * @param {ITHit.WebDAV.Client.HierarchyItem~LockAsyncCallback} fCallback Function to call when operation is completed.
1370
2147
  * @returns {ITHit.WebDAV.Client.Request} Request object.
1371
2148
  */
1372
- LockAsync(sLockScope: string, bDeep: boolean, sOwner: string, iTimeout: number, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2149
+ LockAsync(sLockScope: string, bDeep: boolean, sOwner: string, iTimeout: number, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1373
2150
  /**
1374
2151
  * Moves this item to another location.
1375
2152
  * @api
1376
2153
  * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.CopyMove.Move
2154
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.CopyMove.Move
1377
2155
  * @param {ITHit.WebDAV.Client.Folder} oDestinationFolder Folder to move to.
1378
2156
  * @param {string} sDestinationName Name to assign to moved item.
1379
2157
  * @param {boolean} bOverwrite Whether existing destination item shall be overwritten.
@@ -1381,53 +2159,58 @@ export namespace ITHit{
1381
2159
  * @param {ITHit.WebDAV.Client.HierarchyItem~MoveToAsyncCallback} fCallback Function to call when operation is completed.
1382
2160
  * @return {ITHit.WebDAV.Client.Request} Request object.
1383
2161
  */
1384
- 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;
2162
+ MoveToAsync(oDestinationFolder: ITHit.WebDAV.Client.Folder, sDestinationName: string, bOverwrite: boolean, oLockTokens: string | ITHit.WebDAV.Client.LockUriTokenPair[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1385
2163
  /**
1386
2164
  * Prolongs the lock.
1387
2165
  * @api
1388
2166
  * @examplecode ITHit.WebDAV.Client.Tests.Locks.RefreshLock.RefreshLock
2167
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Locks.RefreshLock.RefreshLock
1389
2168
  * @param {string} sLockToken Identifies lock to be prolonged.
1390
2169
  * @param {number} iTimeout New timeout to set.
1391
2170
  * @param {ITHit.WebDAV.Client.HierarchyItem~RefreshLockAsyncCallback} fCallback Function to call when operation is completed.
1392
2171
  * @return {ITHit.WebDAV.Client.Request} Request object.
1393
2172
  */
1394
- RefreshLockAsync(sLockToken: string, iTimeout: number, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2173
+ RefreshLockAsync(sLockToken: string, iTimeout: number, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1395
2174
  /**
1396
2175
  * Gets features supported by this item, such as WebDAV class support.
1397
2176
  * @api
1398
2177
  * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.SupportedFeatures.SupportedFeatures
2178
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.SupportedFeatures.SupportedFeatures
1399
2179
  * @param {ITHit.WebDAV.Client.HierarchyItem~GetSupportedFeaturesAsyncCallback} fCallback Function to call when operation is completed.
1400
2180
  * @returns {ITHit.WebDAV.Client.Request} Request object.
1401
2181
  */
1402
- GetSupportedFeaturesAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2182
+ GetSupportedFeaturesAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1403
2183
  /**
1404
2184
  * Removes the lock.
1405
2185
  * @api
1406
2186
  * @examplecode ITHit.WebDAV.Client.Tests.Locks.Lock.SetUnLock
2187
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Locks.Lock.SetUnLock
1407
2188
  * @param {string} sLockToken Identifies lock to be prolonged.
1408
2189
  * @param {ITHit.WebDAV.Client.HierarchyItem~UnlockAsyncCallback} fCallback Function to call when operation is completed.
1409
2190
  * @returns {ITHit.WebDAV.Client.Request} Request object.
1410
2191
  */
1411
- UnlockAsync(sLockToken: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2192
+ UnlockAsync(sLockToken: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1412
2193
  /**
1413
2194
  * Updates values of properties exposed by this item.
1414
2195
  * @api
1415
2196
  * @examplecode ITHit.WebDAV.Client.Tests.HierarchyProperties.UpdateProperties.Update
1416
2197
  * @examplecode ITHit.WebDAV.Client.Tests.HierarchyProperties.UpdateProperties.Delete
2198
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyProperties.UpdateProperties.Update
2199
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyProperties.UpdateProperties.Delete
1417
2200
  * @param {ITHit.WebDAV.Client.Property[]} oPropertiesToAddOrUpdate Properties to be updated.
1418
2201
  * @param {ITHit.WebDAV.Client.PropertyName[]} oPropertiesToDelete Names of properties to be removed from this item.
1419
2202
  * @param {string} [sLockToken] Lock token.
1420
2203
  * @param {ITHit.WebDAV.Client.HierarchyItem~UpdatePropertiesAsyncCallback} fCallback Function to call when operation is completed.
1421
2204
  * @returns {ITHit.WebDAV.Client.WebDavRequest|null} WebDAV request
1422
2205
  */
1423
- 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;
2206
+ UpdatePropertiesAsync(oPropertiesToAddOrUpdate: ITHit.WebDAV.Client.Property[], oPropertiesToDelete: ITHit.WebDAV.Client.PropertyName[], sLockToken?: string | null, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.WebDavRequest | null;
1424
2207
  }/**
1425
2208
  * @classdesc Represents a search request.
1426
2209
  * @constructs
1427
2210
  * @api
1428
2211
  * @param {string} sSearchPhrase Search phrase.
1429
2212
  */
1430
- class SearchQuery{
2213
+ class SearchQuery {
1431
2214
  constructor(sSearchPhrase: string);
1432
2215
  /**
1433
2216
  * Search phrase.
@@ -1467,7 +2250,7 @@ export namespace ITHit{
1467
2250
  * @api
1468
2251
  * @class ITHit.WebDAV.Client.PageResults
1469
2252
  */
1470
- class PageResults{
2253
+ class PageResults {
1471
2254
  /**
1472
2255
  * Total number of items in the folder or in search results.
1473
2256
  * @api
@@ -1486,22 +2269,24 @@ export namespace ITHit{
1486
2269
  * @class ITHit.WebDAV.Client.Folder
1487
2270
  * @extends ITHit.WebDAV.Client.HierarchyItem
1488
2271
  */
1489
- class Folder{
2272
+ class Folder extends ITHit.WebDAV.Client.HierarchyItem {
1490
2273
  /**
1491
2274
  * Creates a new folder with a specified name as child of this folder.
1492
2275
  * @api
1493
2276
  * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.CreateFolder.CreateFolder
2277
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.CreateFolder.CreateFolder
1494
2278
  * @param {string} sName Name of the new folder.
1495
2279
  * @param {string} [sLockTokens] Lock token for ITHit.WebDAV.Client.Folder folder.
1496
2280
  * @param {ITHit.WebDAV.Client.PropertyName[]} aProperties Additional properties requested from server. Default is empty array.
1497
2281
  * @param {ITHit.WebDAV.Client.Folder~CreateFolderAsyncCallback} fCallback Function to call when operation is completed.
1498
2282
  * @returns {ITHit.WebDAV.Client.Request} Request object.
1499
2283
  */
1500
- CreateFolderAsync(sName: string, sLockTokens?: string, aProperties: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2284
+ CreateFolderAsync(sName: string, sLockTokens?: string | null, aProperties?: ITHit.WebDAV.Client.PropertyName[] | null, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1501
2285
  /**
1502
2286
  * Creates a new file with a specified name as a child of this folder.
1503
2287
  * @api
1504
2288
  * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.CreateFile.CreateAndWriteContent
2289
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.CreateFile.CreateAndWriteContent
1505
2290
  * @param {string} sName Name of the new file.
1506
2291
  * @param {string} sLockTokens Lock token for current folder.
1507
2292
  * @param {string} sContent File content.
@@ -1509,11 +2294,12 @@ export namespace ITHit{
1509
2294
  * @param {ITHit.WebDAV.Client.Folder~CreateFileAsyncCallback} fCallback Function to call when operation is completed.
1510
2295
  * @returns {ITHit.WebDAV.Client.Request} Request object.
1511
2296
  */
1512
- CreateFileAsync(sName: string, sLockTokens: string, sContent: string, aProperties: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2297
+ CreateFileAsync(sName: string, sLockTokens: string, sContent: string, aProperties: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1513
2298
  /**
1514
2299
  * 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
2300
  * @api
1516
2301
  * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.GetFolderItems.GetPage
2302
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.GetFolderItems.GetPage
1517
2303
  * @param {ITHit.WebDAV.Client.PropertyName[]} [aProperties] Additional properties requested from server. If null is specified, only default properties are returned.
1518
2304
  * @param {number} [nOffset] The number of items to skip before returning the remaining items.
1519
2305
  * @param {number} [nResults] The number of items to return.
@@ -1521,17 +2307,18 @@ export namespace ITHit{
1521
2307
  * @param {ITHit.WebDAV.Client.Folder~GetPageAsyncCallback} fCallback Function to call when operation is completed.
1522
2308
  * @returns {ITHit.WebDAV.Client.Request} Request object.
1523
2309
  */
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;
2310
+ GetPageAsync(aProperties?: ITHit.WebDAV.Client.PropertyName[] | null, nOffset?: number | null, nResults?: number | null, aOrderProperties?: ITHit.WebDAV.Client.OrderProperty[] | null, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1525
2311
  /**
1526
2312
  * 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
2313
  * @api
1528
- * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.GetFolderItems.GetChildrenAsync
2314
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.GetFolderItems.GetChildren
2315
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.GetFolderItems.GetChildren
1529
2316
  * @param {boolean} bRecursively Indicates if all subtree of children should be return. Default is false.
1530
2317
  * @param {ITHit.WebDAV.Client.PropertyName[]} aProperties Additional properties requested from server. If null is specified, only default properties are returned.
1531
2318
  * @param {ITHit.WebDAV.Client.Folder~GetChildrenAsyncCallback} fCallback Function to call when operation is completed.
1532
2319
  * @returns {ITHit.WebDAV.Client.Request} Request object.
1533
2320
  */
1534
- GetChildrenAsync(bRecursively: boolean, aProperties: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2321
+ GetChildrenAsync(bRecursively: boolean, aProperties: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1535
2322
  /**
1536
2323
  * Gets the specified folder from server.
1537
2324
  * @api
@@ -1539,16 +2326,17 @@ export namespace ITHit{
1539
2326
  * @param {ITHit.WebDAV.Client.Folder~GetFolderAsyncCallback} fCallback Function to call when operation is completed.
1540
2327
  * @returns {ITHit.WebDAV.Client.Request} Request object.
1541
2328
  */
1542
- GetFolderAsync(sName: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2329
+ GetFolderAsync(sName: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1543
2330
  /**
1544
2331
  * Gets the specified file from server.
1545
2332
  * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.GetItemByFolder.GetFile
2333
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.GetItemByFolder.GetFile
1546
2334
  * @api
1547
2335
  * @param {string} sName Name of the file.
1548
2336
  * @param {ITHit.WebDAV.Client.Folder~GetFileAsyncCallback} fCallback Function to call when operation is completed.
1549
2337
  * @returns {ITHit.WebDAV.Client.Request} Request object.
1550
2338
  */
1551
- GetFileAsync(sName: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2339
+ GetFileAsync(sName: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1552
2340
  /**
1553
2341
  * Gets the specified item from server.
1554
2342
  * @api
@@ -1556,50 +2344,55 @@ export namespace ITHit{
1556
2344
  * @param {ITHit.WebDAV.Client.Folder~GetItemAsyncCallback} fCallback Function to call when operation is completed.
1557
2345
  * @returns {ITHit.WebDAV.Client.Request} Request object.
1558
2346
  */
1559
- GetItemAsync(sName: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2347
+ GetItemAsync(sName: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1560
2348
  /**
1561
2349
  * Checks whether specified item exists in the folder.
1562
2350
  * @api
1563
2351
  * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.ItemExists.ItemExists
2352
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.ItemExists.ItemExists
1564
2353
  * @param {string} sName Name of the item.
1565
2354
  * @param {ITHit.WebDAV.Client.Folder~ItemExistsAsyncCallback} fCallback Function to call when operation is completed.
1566
2355
  * @returns {ITHit.WebDAV.Client.Request} Request object.
1567
2356
  */
1568
- ItemExistsAsync(sName: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2357
+ ItemExistsAsync(sName: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1569
2358
  /**
1570
2359
  * 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
2360
  * @api
1572
2361
  * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.Search.SearchByQuery
2362
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.Search.SearchByQuery
1573
2363
  * @param {ITHit.WebDAV.Client.SearchQuery} oSearchQuery Object with search query conditions.
1574
2364
  * @param {ITHit.WebDAV.Client.Folder~SearchByQueryAsyncCallback} fCallback Function to call when operation is completed.
1575
2365
  * @returns {ITHit.WebDAV.Client.Request} Request object.
1576
2366
  */
1577
- SearchByQueryAsync(oSearchQuery: ITHit.WebDAV.Client.SearchQuery, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2367
+ SearchByQueryAsync(oSearchQuery: ITHit.WebDAV.Client.SearchQuery, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1578
2368
  /**
1579
2369
  * 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
2370
  * @api
1581
2371
  * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.Search.GetSearchPageByQuery
2372
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.Search.GetSearchPageByQuery
1582
2373
  * @param {ITHit.WebDAV.Client.SearchQuery} oSearchQuery Object with search query conditions.
1583
2374
  * @param {number} [nOffset] The number of items to skip before returning the remaining items.
1584
2375
  * @param {number} [nResults] The number of items to return.
1585
2376
  * @param {ITHit.WebDAV.Client.Folder~GetSearchPageByQueryAsyncCallback} fCallback Function to call when operation is completed.
1586
2377
  * @returns {ITHit.WebDAV.Client.Request} Request object.
1587
2378
  */
1588
- GetSearchPageByQueryAsync(oSearchQuery: ITHit.WebDAV.Client.SearchQuery, nOffset?: number, nResults?: number, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2379
+ GetSearchPageByQueryAsync(oSearchQuery: ITHit.WebDAV.Client.SearchQuery, nOffset?: number | null, nResults?: number | null, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1589
2380
  /**
1590
2381
  * 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
2382
  * @api
1592
2383
  * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.Search.SearchByString
2384
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.Search.SearchByString
1593
2385
  * @param {string} sSearchQuery String of search query.
1594
2386
  * @param {ITHit.WebDAV.Client.PropertyName[]} [aProperties] Additional properties requested from server. If null is specified, only default properties are returned.
1595
2387
  * @param {ITHit.WebDAV.Client.Folder~SearchAsyncCallback} fCallback Function to call when operation is completed.
1596
2388
  * @returns {ITHit.WebDAV.Client.Request} Request object.
1597
2389
  */
1598
- SearchAsync(sSearchQuery: string, aProperties?: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2390
+ SearchAsync(sSearchQuery: string, aProperties?: ITHit.WebDAV.Client.PropertyName[] | null, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1599
2391
  /**
1600
2392
  * 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
2393
  * @api
1602
2394
  * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.Search.GetSearchPageByString
2395
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.Search.GetSearchPageByString
1603
2396
  * @param {string} sSearchQuery String of search query.
1604
2397
  * @param {ITHit.WebDAV.Client.PropertyName[]} [aProperties] Additional properties requested from server. If null is specified, only default properties are returned.
1605
2398
  * @param {number} [nOffset] The number of items to skip before returning the remaining items.
@@ -1607,223 +2400,1054 @@ export namespace ITHit{
1607
2400
  * @param {ITHit.WebDAV.Client.Folder~GetSearchPageAsyncCallback} fCallback Function to call when operation is completed.
1608
2401
  * @returns {ITHit.WebDAV.Client.Request} Request object.
1609
2402
  */
1610
- GetSearchPageAsync(sSearchQuery: string, aProperties?: ITHit.WebDAV.Client.PropertyName[], nOffset?: number, nResults?: number, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
1611
- }/**
1612
- * Represents information about errors occurred in different elements.
1613
- * @api
1614
- * @class ITHit.WebDAV.Client.Error
1615
- */
1616
- class Error{
1617
- /**
1618
- * Gets the generic description, if available.
1619
- * @api
1620
- * @type {string}
1621
- */
1622
- Description: string
2403
+ GetSearchPageAsync(sSearchQuery: string, aProperties?: ITHit.WebDAV.Client.PropertyName[] | null, nOffset?: number | null, nResults?: number | null, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1623
2404
  /**
1624
- * Array of the errors returned by server.
1625
- * @api
1626
- * @type {ITHit.WebDAV.Client.MultistatusResponse[]}
1627
- */
1628
- Responses: ITHit.WebDAV.Client.MultistatusResponse[]
1629
- }/**
1630
- * Represents a context for one or many requests.
1631
- * @api
1632
- * @class ITHit.WebDAV.Client.RequestProgress
1633
- */
1634
- class RequestProgress{
1635
- /**
1636
- * Progress in percents
2405
+ * Current WebDAV session.
1637
2406
  * @api
1638
- * @type {number}
2407
+ * @type {ITHit.WebDAV.Client.WebDavSession}
1639
2408
  */
1640
- Percent: number
2409
+ Session: ITHit.WebDAV.Client.WebDavSession
1641
2410
  /**
1642
- * Count of complete operations
2411
+ * This item path on the server.
1643
2412
  * @api
1644
- * @type {number}
2413
+ * @type {string}
1645
2414
  */
1646
- CountComplete: number
2415
+ Href: string
1647
2416
  /**
1648
- * Total operations count
2417
+ * Most recent modification date.
1649
2418
  * @api
1650
- * @type {number}
2419
+ * @type {Date}
1651
2420
  */
1652
- CountTotal: number
2421
+ LastModified: Date
1653
2422
  /**
1654
- * Count of loaded bytes
2423
+ * User friendly item name.
1655
2424
  * @api
1656
- * @type {number}
2425
+ * @type {string}
1657
2426
  */
1658
- BytesLoaded: number
2427
+ DisplayName: string
1659
2428
  /**
1660
- * Total bytes. This param can be changed in progress, if request has many operations (sub-requests).
2429
+ * The date item was created.
1661
2430
  * @api
1662
- * @type {number}
2431
+ * @type {Date}
1663
2432
  */
1664
- BytesTotal: number
2433
+ CreationDate: Date
1665
2434
  /**
1666
- * Flag indicating if the resource concerned by the XMLHttpRequest ProgressEvent has a length that can be calculated.
2435
+ * Type of the item (File or Folder).
1667
2436
  * @api
1668
- * @type {boolean}
2437
+ * @type {string}
2438
+ * @see ITHit.WebDAV.Client.ResourceType
1669
2439
  */
1670
- LengthComputable: boolean
1671
- }/**
1672
- * Represents a context for one or many requests.
1673
- * @api
1674
- * @fires ITHit.WebDAV.Client.Request#OnProgress
1675
- * @fires ITHit.WebDAV.Client.Request#OnError
1676
- * @fires ITHit.WebDAV.Client.Request#OnFinish
1677
- * @class ITHit.WebDAV.Client.Request
1678
- */
1679
- class Request{
1680
- /**
1681
- * Progress event trigger on update information about request progress.
1682
- * See {@link ITHit.WebDAV.Client.RequestProgress} for more information.
1683
- * @api
1684
- * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.Progress.Progress
1685
- * @event ITHit.WebDAV.Client.Request#OnProgress
1686
- * @property {ITHit.WebDAV.Client.RequestProgress} Progress Progress info instance
1687
- * @property {ITHit.WebDAV.Client.Request} Request Current request
1688
- */
2440
+ ResourceType: string
1689
2441
  /**
1690
- * Error event trigger when one of request operations have error.
1691
- * Notice: This event trigger before async method callback.
1692
- * @api
1693
- * @event ITHit.WebDAV.Client.Request#OnError
1694
- * @property {Error|ITHit.WebDAV.Client.Exceptions.WebDavException} Error Error object
1695
- * @property {ITHit.WebDAV.Client.Request} Request Current request
1696
- */
2442
+ * Retrieves information about supported locks. Item can support exclusive, shared locks or do not support
2443
+ * any locks. If you set exclusive lock other users will not be able to set any locks. If you set shared
2444
+ * lock other users will be able to set shared lock on the item.
2445
+ * @api
2446
+ * @examplecode ITHit.WebDAV.Client.Tests.Locks.CheckSupport.CheckLockSupport
2447
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Locks.CheckSupport.CheckLockSupport
2448
+ * @type {Array.<string>}
2449
+ * @see ITHit.WebDAV.Client.LockScope
2450
+ */
2451
+ SupportedLocks: string[]
1697
2452
  /**
1698
- * Finish event trigger once when all operations in requests is complete.
1699
- * Notice: This event trigger before async method callback.
1700
- * @api
1701
- * @event ITHit.WebDAV.Client.Request#OnFinish
1702
- * @property {ITHit.WebDAV.Client.Request} Request Current request
1703
- */
2453
+ * List of locks applied to this item.
2454
+ * @examplecode ITHit.WebDAV.Client.Tests.Locks.GetLocks.GetList
2455
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Locks.GetLocks.GetList
2456
+ * @api
2457
+ * @type {Array.<ITHit.WebDAV.Client.LockInfo>}
2458
+ */
2459
+ ActiveLocks: ITHit.WebDAV.Client.LockInfo[]
1704
2460
  /**
1705
- * Progress info object, auto updated on `OnProgress` event.
2461
+ * List of item properties.
1706
2462
  * @api
1707
- * @type {ITHit.WebDAV.Client.RequestProgress}
2463
+ * @type {ITHit.WebDAV.Client.PropertyList}
1708
2464
  */
1709
- Progress: ITHit.WebDAV.Client.RequestProgress
2465
+ Properties: ITHit.WebDAV.Client.PropertyList
1710
2466
  /**
2467
+ * Returns true if file is under version control. Otherwise false. To detect if version control could
2468
+ * be enabled for this item call GetSupportedFeaturesAsync and check for VersionControl token.
2469
+ * To enable version control call PutUnderVersionControlAsync.
1711
2470
  * @api
1712
- * @param {string} sEventName
1713
- * @param fCallback
1714
- * @param {object} [oContext]
2471
+ * @returns {boolean} Boolean, if true - versions supported
1715
2472
  */
1716
- AddListener(sEventName: string, fCallback: any, oContext?: object): void;
1717
2473
  /**
2474
+ * Number of bytes available for this user on server. -1 if server does not support Quota.
1718
2475
  * @api
1719
- * @param {string} sEventName
1720
- * @param fCallback
1721
- * @param {object} [oContext]
2476
+ * @type {number}
1722
2477
  */
1723
- RemoveListener(sEventName: string, fCallback: any, oContext?: object): void;
2478
+ AvailableBytes: number
1724
2479
  /**
1725
- * Cancels asynchronous request. The Finish event and the callback function will be called immediately after this method call.
2480
+ * Number of bytes used by this user on server. -1 if server does not support Quota.
1726
2481
  * @api
2482
+ * @type {number}
1727
2483
  */
1728
- Abort(): void;
1729
- }/**
1730
- * @classdesc Session for accessing WebDAV servers.
1731
- * @example
1732
- * &lt;!DOCTYPE html&gt;
1733
- * &lt;html lang="en"&gt;
1734
- * &lt;head&gt;
1735
- * &lt;title&gt;IT Hit WebDAV Ajax Library&lt;/title&gt;
1736
- * &lt;script src="http://www.ajaxbrowser.com/ITHitService/WebDAVAJAXLibrary/ITHitWebDAVClient.js" type="text/javascript"&gt;&lt;/script&gt;
1737
- * &lt;script type="text/javascript"&gt;
1738
- * var sFolderUrl = 'http://localhost:35829/';
1739
- * var oSession = new ITHit.WebDAV.Client.WebDavSession();
1740
- *
1741
- * oSession.OpenFolderAsync(sFolderUrl, null, function (oFolderAsyncResult) {
1742
- * if (!oFolderAsyncResult.IsSuccess) {
1743
- * console.error(oFolderAsyncResult.Error);
1744
- * return;
1745
- * }
1746
- *
1747
- * /&#42;&#42; &#64;typedef {ITHit.WebDAV.Client.Folder} oFolder &#42;/
1748
- * var oFolder = oFolderAsyncResult.Result;
1749
- *
1750
- * console.log(oFolder.Href);
1751
- *
1752
- * oFolder.GetChildrenAsync(false, null, function (oAsyncResult) {
1753
- * if (!oAsyncResult.IsSuccess) {
1754
- * console.error(oFolderAsyncResult.Error);
1755
- * return;
1756
- * }
1757
- *
1758
- * /&#42;&#42; &#64;typedef {ITHit.WebDAV.Client.HierarchyItem[]} aHierarchyItems &#42;/
1759
- * var aHierarchyItems = oAsyncResult.Result;
1760
- *
1761
- * for (var i = 0, l = aHierarchyItems.length; i &lt; l; i++) {
1762
- * var sSize = aHierarchyItems[i].ResourceType !== ITHit.WebDAV.Client.ResourceType.Folder ?
1763
- * Math.round(aHierarchyItems[i].ContentLength / 1000) + ' Kb' :
1764
- * null;
1765
- * console.log(' [' + aHierarchyItems[i].ResourceType + '] ' + aHierarchyItems[i].DisplayName + (sSize ? ', ' + sSize : ''));
1766
- * }
1767
- * });
1768
- * });
1769
- * &lt;/script&gt;
1770
- * &lt;/head&gt;
1771
- * &lt;body&gt;
1772
- * &lt;/body&gt;
1773
- * &lt;/html&gt;
1774
- * @api
1775
- * @fires ITHit.WebDAV.Client.WebDavSession#OnBeforeRequestSend
1776
- * @fires ITHit.WebDAV.Client.WebDavSession#OnResponse
1777
- * @constructs
1778
- */
1779
- namespace WebDavSession{
1780
- /**
1781
- * Version of AJAX Library
1782
- * @api
1783
- */
1784
- function Version(): void;
2484
+ UsedBytes: number
1785
2485
  /**
1786
- * Protocol Version of AJAX Library
1787
- * @api
1788
- */
1789
- function ProtocolVersion(): void;
1790
- }class WebDavSession{
1791
- /**
1792
- * The OnBeforeRequestSend event is fired before request is being submitted to server and provides all
1793
- * information that is used when creating the request such as URL, HTTP verb, headers and request body.
1794
- * @api
1795
- * @examplecode ITHit.WebDAV.Client.Tests.WebDavSession.Events.BeforeRequestSend
1796
- * @event ITHit.WebDAV.Client.WebDavSession#OnBeforeRequestSend
1797
- * @property {string} Method Request method
1798
- * @property {string} Href Request absolute path
1799
- * @property {object} Headers Key-value object with headers
1800
- * @property {string} Body Request Body
1801
- */
2486
+ * Refreshes item loading data from server.
2487
+ * @api
2488
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.Refresh.Refresh
2489
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.Refresh.Refresh
2490
+ * @param {ITHit.WebDAV.Client.HierarchyItem~RefreshAsyncCallback} fCallback Function to call when operation is completed.
2491
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2492
+ */
2493
+ RefreshAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1802
2494
  /**
1803
- * The OnResponse event fires when the data is received from server. In your event handler you can update
1804
- * any data received from server.
1805
- * @api
1806
- * @examplecode ITHit.WebDAV.Client.Tests.WebDavSession.Events.Response
1807
- * @event ITHit.WebDAV.Client.WebDavSession#OnResponse
1808
- * @property {number} Status Response status code
1809
- * @property {string} StatusDescription Response status description
1810
- * @property {object} Headers Key-value object with headers
1811
- * @property {string} Body Response Body
1812
- */
2495
+ * Copies this item to destination folder.
2496
+ * @api
2497
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.CopyMove.Copy
2498
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.CopyMove.Copy
2499
+ * @param {ITHit.WebDAV.Client.Folder} oDestinationFolder Folder to move to.
2500
+ * @param {string} sDestinationName Name to assign to copied item.
2501
+ * @param {boolean} bDeep Indicates whether children of this item should be copied.
2502
+ * @param {boolean} bOverwrite Whether existing destination item shall be overwritten.
2503
+ * @param {ITHit.WebDAV.Client.LockUriTokenPair[]} [oLockTokens] Lock tokens for destination folder.
2504
+ * @param {ITHit.WebDAV.Client.HierarchyItem~CopyToAsyncCallback} fCallback Function to call when operation is completed.
2505
+ */
2506
+ CopyToAsync(oDestinationFolder: ITHit.WebDAV.Client.Folder, sDestinationName: string, bDeep: boolean, bOverwrite: boolean, oLockTokens?: ITHit.WebDAV.Client.LockUriTokenPair[] | null, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): void;
2507
+ /**
2508
+ * Deletes this item.
2509
+ * @api
2510
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.Delete.Delete
2511
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.Delete.Delete
2512
+ * @param {ITHit.WebDAV.Client.LockUriTokenPair | null} oLockTokens Lock tokens for this item or any locked child item.
2513
+ * @param {ITHit.WebDAV.Client.HierarchyItem~DeleteAsyncCallback} fCallback Function to call when operation is completed.
2514
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2515
+ */
2516
+ DeleteAsync(oLockTokens: ITHit.WebDAV.Client.LockUriTokenPair | null, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
2517
+ /**
2518
+ * Returns names of all custom properties exposed by this item.
2519
+ * @api
2520
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyProperties.GetProperties.GetPropertyNames
2521
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyProperties.GetProperties.GetPropertyNames
2522
+ * @param {ITHit.WebDAV.Client.HierarchyItem~GetPropertyNamesAsyncCallback} fCallback Function to call when operation is completed.
2523
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2524
+ */
2525
+ GetPropertyNamesAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
2526
+ /**
2527
+ * Retrieves values of specific properties.
2528
+ * @api
2529
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyProperties.GetProperties.GetPropertyValues
2530
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyProperties.GetProperties.GetPropertyValues
2531
+ * @param {ITHit.WebDAV.Client.PropertyName[]} aNames
2532
+ * @param {ITHit.WebDAV.Client.HierarchyItem~GetPropertyValuesAsyncCallback} fCallback Function to call when operation is completed.
2533
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2534
+ */
2535
+ GetPropertyValuesAsync(aNames: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
2536
+ /**
2537
+ * Retrieves all custom properties exposed by the item.
2538
+ * @api
2539
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyProperties.GetProperties.GetAllProperties
2540
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyProperties.GetProperties.GetAllProperties
2541
+ * @param {ITHit.WebDAV.Client.HierarchyItem~GetAllPropertiesAsyncCallback} fCallback Function to call when operation is completed.
2542
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2543
+ */
2544
+ GetAllPropertiesAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
2545
+ /**
2546
+ * Retrieves parent hierarchy item of this item.
2547
+ * @api
2548
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.GetParent.GetParent
2549
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.GetParent.GetParent
2550
+ * @param {ITHit.WebDAV.Client.PropertyName[]} aProperties Additional properties requested from server. Default is empty array.
2551
+ * @param {ITHit.WebDAV.Client.HierarchyItem~GetParentAsyncCallback} fCallback Function to call when operation is completed.
2552
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2553
+ */
2554
+ GetParentAsync(aProperties: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
2555
+ /**
2556
+ * Retrieves media type independent links.
2557
+ * @api
2558
+ * @param {ITHit.WebDAV.Client.HierarchyItem~GetSourceAsyncCallback} fCallback Function to call when operation is completed.
2559
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2560
+ */
2561
+ GetSourceAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
2562
+ /**
2563
+ * Locks the item. If the lock was successfully applied, the server will return a lock token. You will pass this
2564
+ * lock token back to the server when updating and unlocking the item. The actual lock time applied by the server
2565
+ * may be different from the one requested by the client.
2566
+ * @api
2567
+ * @examplecode ITHit.WebDAV.Client.Tests.Locks.Lock.SetLock
2568
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Locks.Lock.SetLock
2569
+ * @param {string} sLockScope Scope of the lock. See LockScope Enumeration {@link ITHit.WebDAV.Client.LockScope}
2570
+ * @param {boolean} bDeep Whether to lock entire subtree.
2571
+ * @param {string} sOwner Owner of the lock.
2572
+ * @param {number} iTimeout Timeout after which lock expires. Pass -1 to request an infinite timeout.
2573
+ * @param {ITHit.WebDAV.Client.HierarchyItem~LockAsyncCallback} fCallback Function to call when operation is completed.
2574
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2575
+ */
2576
+ LockAsync(sLockScope: string, bDeep: boolean, sOwner: string, iTimeout: number, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
2577
+ /**
2578
+ * Moves this item to another location.
2579
+ * @api
2580
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.CopyMove.Move
2581
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.CopyMove.Move
2582
+ * @param {ITHit.WebDAV.Client.Folder} oDestinationFolder Folder to move to.
2583
+ * @param {string} sDestinationName Name to assign to moved item.
2584
+ * @param {boolean} bOverwrite Whether existing destination item shall be overwritten.
2585
+ * @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.
2586
+ * @param {ITHit.WebDAV.Client.HierarchyItem~MoveToAsyncCallback} fCallback Function to call when operation is completed.
2587
+ * @return {ITHit.WebDAV.Client.Request} Request object.
2588
+ */
2589
+ MoveToAsync(oDestinationFolder: ITHit.WebDAV.Client.Folder, sDestinationName: string, bOverwrite: boolean, oLockTokens: string | ITHit.WebDAV.Client.LockUriTokenPair[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
2590
+ /**
2591
+ * Prolongs the lock.
2592
+ * @api
2593
+ * @examplecode ITHit.WebDAV.Client.Tests.Locks.RefreshLock.RefreshLock
2594
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Locks.RefreshLock.RefreshLock
2595
+ * @param {string} sLockToken Identifies lock to be prolonged.
2596
+ * @param {number} iTimeout New timeout to set.
2597
+ * @param {ITHit.WebDAV.Client.HierarchyItem~RefreshLockAsyncCallback} fCallback Function to call when operation is completed.
2598
+ * @return {ITHit.WebDAV.Client.Request} Request object.
2599
+ */
2600
+ RefreshLockAsync(sLockToken: string, iTimeout: number, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
2601
+ /**
2602
+ * Gets features supported by this item, such as WebDAV class support.
2603
+ * @api
2604
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.SupportedFeatures.SupportedFeatures
2605
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.SupportedFeatures.SupportedFeatures
2606
+ * @param {ITHit.WebDAV.Client.HierarchyItem~GetSupportedFeaturesAsyncCallback} fCallback Function to call when operation is completed.
2607
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2608
+ */
2609
+ GetSupportedFeaturesAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
2610
+ /**
2611
+ * Removes the lock.
2612
+ * @api
2613
+ * @examplecode ITHit.WebDAV.Client.Tests.Locks.Lock.SetUnLock
2614
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Locks.Lock.SetUnLock
2615
+ * @param {string} sLockToken Identifies lock to be prolonged.
2616
+ * @param {ITHit.WebDAV.Client.HierarchyItem~UnlockAsyncCallback} fCallback Function to call when operation is completed.
2617
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2618
+ */
2619
+ UnlockAsync(sLockToken: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
2620
+ /**
2621
+ * Updates values of properties exposed by this item.
2622
+ * @api
2623
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyProperties.UpdateProperties.Update
2624
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyProperties.UpdateProperties.Delete
2625
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyProperties.UpdateProperties.Update
2626
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyProperties.UpdateProperties.Delete
2627
+ * @param {ITHit.WebDAV.Client.Property[]} oPropertiesToAddOrUpdate Properties to be updated.
2628
+ * @param {ITHit.WebDAV.Client.PropertyName[]} oPropertiesToDelete Names of properties to be removed from this item.
2629
+ * @param {string} [sLockToken] Lock token.
2630
+ * @param {ITHit.WebDAV.Client.HierarchyItem~UpdatePropertiesAsyncCallback} fCallback Function to call when operation is completed.
2631
+ * @returns {ITHit.WebDAV.Client.WebDavRequest|null} WebDAV request
2632
+ */
2633
+ UpdatePropertiesAsync(oPropertiesToAddOrUpdate: ITHit.WebDAV.Client.Property[], oPropertiesToDelete: ITHit.WebDAV.Client.PropertyName[], sLockToken?: string | null, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.WebDavRequest | null;
2634
+ }/**
2635
+ * Represents a version on a WebDAV server.
2636
+ * @api
2637
+ * @class ITHit.WebDAV.Client.Version
2638
+ * @extends ITHit.WebDAV.Client.File
2639
+ */
2640
+ class Version extends ITHit.WebDAV.Client.File {
2641
+ /**
2642
+ * This property contains a server-defined string that is different for each version.
2643
+ * This string is intended for display for a user.
2644
+ * @api
2645
+ * @type {string}
2646
+ */
2647
+ VersionName: string
2648
+ /**
2649
+ * @api
2650
+ * @type {string}
2651
+ */
2652
+ CreatorDisplayName: string
2653
+ /**
2654
+ * @api
2655
+ * @type {string}
2656
+ */
2657
+ Comment: string
2658
+ /**
2659
+ * Update file to current version.
2660
+ * @examplecode ITHit.WebDAV.Client.Tests.Versions.ManageVersions.UpdateToThis
2661
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Versions.ManageVersions.UpdateToThis
2662
+ * @api
2663
+ * @param {ITHit.WebDAV.Client.Version~UpdateToThisVersionAsync} fCallback Function to call when operation is completed.
2664
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2665
+ */
2666
+ UpdateToThisAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
2667
+ /**
2668
+ * Read file content. To download only a part of a file you can specify 2 parameters in ReadContent call.
2669
+ * First parameter is the starting byte (zero-based) at witch to start content download, the second – amount
2670
+ * of bytes to be downloaded. The library will add Range header to the request in this case.
2671
+ * @examplecode ITHit.WebDAV.Client.Tests.Versions.ReadContent.ReadContent
2672
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Versions.ReadContent.ReadContent
2673
+ * @api
2674
+ * @param {number} iBytesFrom Start position to retrieve lBytesCount number of bytes from.
2675
+ * @param {number} iBytesCount Number of bytes to retrieve.
2676
+ * @param {ITHit.WebDAV.Client.File~ReadContentAsyncCallback} fCallback Function to call when operation is completed.
2677
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2678
+ */
2679
+ ReadContentAsync(iBytesFrom: number, iBytesCount: number, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
2680
+ /**
2681
+ * Writes file content.
2682
+ * @api
2683
+ * @param {string} sContent File content.
2684
+ * @param {string} sLockToken Lock token.
2685
+ * @param {string} sMimeType File mime-type.
2686
+ * @param {ITHit.WebDAV.Client.File~WriteContentAsyncCallback} fCallback Function to call when operation is completed.
2687
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2688
+ */
2689
+ WriteContentAsync(sContent: string, sLockToken: string, sMimeType: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
2690
+ /**
2691
+ * Refreshes item loading data from server.
2692
+ * @api
2693
+ * @param {ITHit.WebDAV.Client.HierarchyItem~RefreshAsyncCallback} fCallback Function to call when operation is completed.
2694
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2695
+ */
2696
+ RefreshAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
2697
+ /**
2698
+ * Length of the file.
2699
+ * @api
2700
+ * @type {number}
2701
+ */
2702
+ ContentLength: number
2703
+ /**
2704
+ * Content type of the file.
2705
+ * @api
2706
+ * @type {string}
2707
+ */
2708
+ ContentType: string
2709
+ /**
2710
+ * Current WebDAV session.
2711
+ * @api
2712
+ * @type {ITHit.WebDAV.Client.WebDavSession}
2713
+ */
2714
+ Session: ITHit.WebDAV.Client.WebDavSession
2715
+ /**
2716
+ * This item path on the server.
2717
+ * @api
2718
+ * @type {string}
2719
+ */
2720
+ Href: string
2721
+ /**
2722
+ * User friendly item name.
2723
+ * @api
2724
+ * @type {string}
2725
+ */
2726
+ DisplayName: string
2727
+ /**
2728
+ * The date item was created.
2729
+ * @api
2730
+ * @type {Date}
2731
+ */
2732
+ CreationDate: Date
2733
+ /**
2734
+ * List of item properties.
2735
+ * @api
2736
+ * @type {ITHit.WebDAV.Client.PropertyList}
2737
+ */
2738
+ Properties: ITHit.WebDAV.Client.PropertyList
2739
+ }/**
2740
+ * Represents information about errors occurred in different elements.
2741
+ * @api
2742
+ * @class ITHit.WebDAV.Client.Error
2743
+ */
2744
+ class Error {
2745
+ /**
2746
+ * Gets the generic description, if available.
2747
+ * @api
2748
+ * @type {string}
2749
+ */
2750
+ Description: string
2751
+ /**
2752
+ * Array of the errors returned by server.
2753
+ * @api
2754
+ * @type {ITHit.WebDAV.Client.MultistatusResponse[]}
2755
+ */
2756
+ Responses: ITHit.WebDAV.Client.MultistatusResponse[]
2757
+ }/**
2758
+ * This class represents asynchronous request to WebDAV server. The instance of this class is returned from most
2759
+ * asynchronous methods of the library. You can use it to cancel the request calling Abort() method of this class
2760
+ * as well as to show progress attaching to Progress event.
2761
+ * @api
2762
+ * @class ITHit.WebDAV.Client.WebDavRequest
2763
+ */
2764
+ class WebDavRequest {
2765
+ }/**
2766
+ * Represents a context for one or many requests.
2767
+ * @api
2768
+ * @class ITHit.WebDAV.Client.RequestProgress
2769
+ */
2770
+ class RequestProgress {
2771
+ /**
2772
+ * Progress in percents
2773
+ * @api
2774
+ * @type {number}
2775
+ */
2776
+ Percent: number
2777
+ /**
2778
+ * Count of complete operations
2779
+ * @api
2780
+ * @type {number}
2781
+ */
2782
+ CountComplete: number
2783
+ /**
2784
+ * Total operations count
2785
+ * @api
2786
+ * @type {number}
2787
+ */
2788
+ CountTotal: number
2789
+ /**
2790
+ * Count of loaded bytes
2791
+ * @api
2792
+ * @type {number}
2793
+ */
2794
+ BytesLoaded: number
2795
+ /**
2796
+ * Total bytes. This param can be changed in progress, if request has many operations (sub-requests).
2797
+ * @api
2798
+ * @type {number}
2799
+ */
2800
+ BytesTotal: number
2801
+ /**
2802
+ * Flag indicating if the resource concerned by the XMLHttpRequest ProgressEvent has a length that can be calculated.
2803
+ * @api
2804
+ * @type {boolean}
2805
+ */
2806
+ LengthComputable: boolean
2807
+ }/**
2808
+ * Represents a context for one or many requests.
2809
+ * @api
2810
+ * @fires ITHit.WebDAV.Client.Request#OnProgress
2811
+ * @fires ITHit.WebDAV.Client.Request#OnError
2812
+ * @fires ITHit.WebDAV.Client.Request#OnFinish
2813
+ * @class ITHit.WebDAV.Client.Request
2814
+ */
2815
+ class Request {
2816
+ /**
2817
+ * Progress event trigger on update information about request progress.
2818
+ * See {@link ITHit.WebDAV.Client.RequestProgress} for more information.
2819
+ * @api
2820
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.Progress.Progress
2821
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.Progress.Progress
2822
+ * @event ITHit.WebDAV.Client.Request#OnProgress
2823
+ * @property {ITHit.WebDAV.Client.RequestProgress} Progress Progress info instance
2824
+ * @property {ITHit.WebDAV.Client.Request} Request Current request
2825
+ */
2826
+ /**
2827
+ * Error event trigger when one of request operations have error.
2828
+ * Notice: This event trigger before async method callback.
2829
+ * @api
2830
+ * @event ITHit.WebDAV.Client.Request#OnError
2831
+ * @property {Error|ITHit.WebDAV.Client.Exceptions.WebDavException} Error Error object
2832
+ * @property {ITHit.WebDAV.Client.Request} Request Current request
2833
+ */
2834
+ /**
2835
+ * Finish event trigger once when all operations in requests is complete.
2836
+ * Notice: This event trigger before async method callback.
2837
+ * @api
2838
+ * @event ITHit.WebDAV.Client.Request#OnFinish
2839
+ * @property {ITHit.WebDAV.Client.Request} Request Current request
2840
+ */
2841
+ /**
2842
+ * Progress info object, auto updated on `OnProgress` event.
2843
+ * @api
2844
+ * @type {ITHit.WebDAV.Client.RequestProgress}
2845
+ */
2846
+ Progress: ITHit.WebDAV.Client.RequestProgress
2847
+ /**
2848
+ * Progress info object, auto updated on `OnUploadProgress` event.
2849
+ * @public
2850
+ * @type {ITHit.WebDAV.Client.RequestProgress}
2851
+ */
2852
+ UploadProgress: ITHit.WebDAV.Client.RequestProgress
2853
+ /**
2854
+ * @api
2855
+ * @param {string} sEventName
2856
+ * @param {function} fCallback
2857
+ * @param {object} [oContext]
2858
+ */
2859
+ AddListener(sEventName: string, fCallback: Function, oContext?: object | null): void;
2860
+ /**
2861
+ * @api
2862
+ * @param {string} sEventName
2863
+ * @param {function} fCallback
2864
+ * @param {object} [oContext]
2865
+ */
2866
+ RemoveListener(sEventName: string, fCallback: Function, oContext?: object | null): void;
2867
+ /**
2868
+ * Cancels asynchronous request. The Finish event and the callback function will be called immediately after this method call.
2869
+ * @api
2870
+ */
2871
+ Abort(): void;
2872
+ /**
2873
+ * Cancels asynchronous request. The Finish event and the callback function will not be called after this method call.
2874
+ * @public
2875
+ */
2876
+ AbortAsync(): void;
2877
+ }/**
2878
+ * @classdesc Session for accessing WebDAV servers.
2879
+ * @example
2880
+ * &lt;!DOCTYPE html&gt;
2881
+ * &lt;html lang="en"&gt;
2882
+ * &lt;head&gt;
2883
+ * &lt;title&gt;IT Hit WebDAV Ajax Library&lt;/title&gt;
2884
+ * &lt;script src="http://www.ajaxbrowser.com/ITHitService/WebDAVAJAXLibrary/ITHitWebDAVClient.js" type="text/javascript"&gt;&lt;/script&gt;
2885
+ * &lt;script type="text/javascript"&gt;
2886
+ * var sFolderUrl = 'http://localhost:35829/';
2887
+ * var oSession = new ITHit.WebDAV.Client.WebDavSession();
2888
+ *
2889
+ * oSession.OpenFolderAsync(sFolderUrl, null, function (oFolderAsyncResult) {
2890
+ * if (!oFolderAsyncResult.IsSuccess) {
2891
+ * console.error(oFolderAsyncResult.Error);
2892
+ * return;
2893
+ * }
2894
+ *
2895
+ * /&#42;&#42; &#64;typedef {ITHit.WebDAV.Client.Folder} oFolder &#42;/
2896
+ * var oFolder = oFolderAsyncResult.Result;
2897
+ *
2898
+ * console.log(oFolder.Href);
2899
+ *
2900
+ * oFolder.GetChildrenAsync(false, null, function (oAsyncResult) {
2901
+ * if (!oAsyncResult.IsSuccess) {
2902
+ * console.error(oFolderAsyncResult.Error);
2903
+ * return;
2904
+ * }
2905
+ *
2906
+ * /&#42;&#42; &#64;typedef {ITHit.WebDAV.Client.HierarchyItem[]} aHierarchyItems &#42;/
2907
+ * var aHierarchyItems = oAsyncResult.Result;
2908
+ *
2909
+ * for (var i = 0, l = aHierarchyItems.length; i &lt; l; i++) {
2910
+ * var sSize = aHierarchyItems[i].ResourceType !== ITHit.WebDAV.Client.ResourceType.Folder ?
2911
+ * Math.round(aHierarchyItems[i].ContentLength / 1000) + ' Kb' :
2912
+ * null;
2913
+ * console.log(' [' + aHierarchyItems[i].ResourceType + '] ' + aHierarchyItems[i].DisplayName + (sSize ? ', ' + sSize : ''));
2914
+ * }
2915
+ * });
2916
+ * });
2917
+ * &lt;/script&gt;
2918
+ * &lt;/head&gt;
2919
+ * &lt;body&gt;
2920
+ * &lt;/body&gt;
2921
+ * &lt;/html&gt;
2922
+ * @api
2923
+ * @fires ITHit.WebDAV.Client.WebDavSession#OnBeforeRequestSend
2924
+ * @fires ITHit.WebDAV.Client.WebDavSession#OnResponse
2925
+ * @constructs
2926
+ */
2927
+ namespace WebDavSession{
2928
+ /**
2929
+ * Version of AJAX Library
2930
+ * @api
2931
+ */
2932
+ function Version(): void;
2933
+ /**
2934
+ * Protocol Version of AJAX Library
2935
+ * @api
2936
+ */
2937
+ function ProtocolVersion(): void;
2938
+ }class WebDavSession {
2939
+ /**
2940
+ * The OnBeforeRequestSend event is fired before request is being submitted to server and provides all
2941
+ * information that is used when creating the request such as URL, HTTP verb, headers and request body.
2942
+ * @api
2943
+ * @examplecode ITHit.WebDAV.Client.Tests.WebDavSession.Events.BeforeRequestSend
2944
+ * @examplecode ITHit.WebDAV.Client.TSExamples.WebDavSession.Events.BeforeRequestSend
2945
+ * @event ITHit.WebDAV.Client.WebDavSession#OnBeforeRequestSend
2946
+ * @property {string} Method Request method
2947
+ * @property {string} Href Request absolute path
2948
+ * @property {object} Headers Key-value object with headers
2949
+ * @property {string} Body Request Body
2950
+ */
2951
+ /**
2952
+ * The OnResponse event fires when the data is received from server. In your event handler you can update
2953
+ * any data received from server.
2954
+ * @api
2955
+ * @examplecode ITHit.WebDAV.Client.Tests.WebDavSession.Events.Response
2956
+ * @examplecode ITHit.WebDAV.Client.TSExamples.WebDavSession.Events.Response
2957
+ * @event ITHit.WebDAV.Client.WebDavSession#OnResponse
2958
+ * @property {number} Status Response status code
2959
+ * @property {string} StatusDescription Response status description
2960
+ * @property {object} Headers Key-value object with headers
2961
+ * @property {string} Body Response Body
2962
+ */
2963
+ /**
2964
+ * @api
2965
+ * @param {string} sEventName
2966
+ * @param {function} fCallback
2967
+ * @param {object} [oContext]
2968
+ */
2969
+ AddListener(sEventName: string, fCallback: Function, oContext?: object | null): void;
2970
+ /**
2971
+ * @api
2972
+ * @param {string} sEventName
2973
+ * @param {function} fCallback
2974
+ * @param {object} [oContext]
2975
+ */
2976
+ RemoveListener(sEventName: string, fCallback: Function, oContext?: object | null): void;
2977
+ /**
2978
+ * Load File object corresponding to path.
2979
+ * @api
2980
+ * @param {string} sPath Path to the file.
2981
+ * @param {ITHit.WebDAV.Client.PropertyName[]} aProperties Additional properties requested from server. Default is empty array.
2982
+ * @param {ITHit.WebDAV.Client.WebDavSession~OpenFileAsyncCallback} fCallback Function to call when operation is completed.
2983
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2984
+ */
2985
+ OpenFileAsync(sPath: string, aProperties: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
2986
+ /**
2987
+ * Returns Folder object corresponding to path.
2988
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.GetItemBySession.GetFolder
2989
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.GetItemBySession.GetFolder
2990
+ * @api
2991
+ * @param {string} sPath Path to the folder.
2992
+ * @param {ITHit.WebDAV.Client.PropertyName[]} aProperties Additional properties requested from server. Default is empty array.
2993
+ * @param {ITHit.WebDAV.Client.WebDavSession~OpenFolderAsyncCallback} fCallback Function to call when operation is completed.
2994
+ */
2995
+ OpenFolderAsync(sPath: string, aProperties: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): void;
2996
+ /**
2997
+ * Returns HierarchyItem object corresponding to path.
2998
+ * @api
2999
+ * @param {string} sPath Path to the resource.
3000
+ * @param {ITHit.WebDAV.Client.PropertyName[]} aProperties Additional properties requested from server. Default is empty array.
3001
+ * @param {ITHit.WebDAV.Client.WebDavSession~OpenItemAsyncCallback} fCallback Function to call when operation is completed.
3002
+ */
3003
+ OpenItemAsync(sPath: string, aProperties: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): void;
3004
+ /**
3005
+ * Creates folder corresponding to path.
3006
+ * @api
3007
+ * @param {string} sPath Path to the resource.
3008
+ * @param {ITHit.WebDAV.Client.PropertyName[]} aProperties Additional properties requested from server. Default is empty array.
3009
+ * @param {ITHit.WebDAV.Client.WebDavSession~CreateFolderAsyncCallback} fCallback Function to call when operation is completed.
3010
+ */
3011
+ CreateFolderAsync(sPath: string, aProperties: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): void;
3012
+ }
3013
+ namespace Upload{
3014
+ /**
3015
+ * Upload state.
3016
+ * @api
3017
+ * @enum {string}
3018
+ * @readonly
3019
+ * @class ITHit.WebDAV.Client.Upload.State
3020
+ */
3021
+ enum State{
3022
+ Uploading = "Uploading",
3023
+ Canceled = "Canceled",
3024
+ Paused = "Paused",
3025
+ Queued = "Queued",
3026
+ Failed = "Failed",
3027
+ Completed = "Completed",
3028
+ Retrying = "Retrying",
3029
+ Skipped = "Skipped",
3030
+ }/**
3031
+ * This class represents progress state of upload.
3032
+ * @api
3033
+ * @class ITHit.WebDAV.Client.Upload.Progress
3034
+ */
3035
+ class Progress {
3036
+ /**
3037
+ * Bytes uploaded.
3038
+ * @api
3039
+ * @type {!number}
3040
+ */
3041
+ UploadedBytes: number
3042
+ /**
3043
+ * Total bytes to upload.
3044
+ * @api
3045
+ * @type {!number}
3046
+ */
3047
+ TotalBytes: number
3048
+ /**
3049
+ * Elapsed time in seconds.
3050
+ * @api
3051
+ * @type {!number}
3052
+ */
3053
+ ElapsedTime: number
3054
+ /**
3055
+ * Time left in seconds.
3056
+ * @api
3057
+ * @type {!number}
3058
+ */
3059
+ RemainingTime: number
3060
+ /**
3061
+ * Progress in percents.
3062
+ * @api
3063
+ * @type {!number}
3064
+ */
3065
+ Completed: number
3066
+ /**
3067
+ * Speed in bytes/s.
3068
+ * @api
3069
+ * @type {!number}
3070
+ */
3071
+ Speed: number
3072
+ }/**
3073
+ * This class represents file or folder in unify form.
3074
+ * @public
3075
+ * @alias ITHit.WebDAV.Client.Upload.FSEntry
3076
+ * @constructs
3077
+ *
3078
+ * @param {string} sPath The path without resource name.
3079
+ * @param {File} [oFile] The file object.
3080
+ */
3081
+ namespace FSEntry{
3082
+ /**
3083
+ * @public
3084
+ * @readonly
3085
+ */
3086
+ function PathSeparator(): void;
3087
+ /**
3088
+ * Creates entry.
3089
+ * @public
3090
+ * @param {string[]} aPathParts
3091
+ * @param {File} [oFile]
3092
+ * @return {ITHit.WebDAV.Client.Upload.FSEntry}
3093
+ */
3094
+ function CreateFromPathParts(aPathParts: string[], oFile?: File | null): ITHit.WebDAV.Client.Upload.FSEntry;
3095
+ }class FSEntry {
3096
+ constructor(sPath: string, oFile?: File | null);
3097
+ /**
3098
+ * Returns relative path of entry on file system.
3099
+ * @public
3100
+ * @return {string}
3101
+ */
3102
+ GetRelativePath(): string;
3103
+ }/**
3104
+ * Represents a file or folder being uploaded. Provides functions to discover item state, get info about upload
3105
+ * progress as well as to pause, resume and cancel upload.
3106
+ * @api
3107
+ * @class ITHit.WebDAV.Client.Upload.UploadItem
3108
+ * @param {string} sUrl
3109
+ * @param {ITHit.WebDAV.Client.Upload.FSEntry} oFsEntry
3110
+ * @param {ITHit.WebDAV.Client.Upload.Controls.HtmlControl} oBinding
3111
+ * @param {ITHit.WebDAV.Client.Upload.UploaderSession} oSession
3112
+ * @param {ITHit.WebDAV.Client.Upload.Groups.GroupManager} oGroupManager
3113
+ * @param {ITHit.WebDAV.Client.Upload.Settings} oSettings
3114
+ */
3115
+ class UploadItem {
3116
+ constructor(sUrl: string, oFsEntry: ITHit.WebDAV.Client.Upload.FSEntry, oBinding: ITHit.WebDAV.Client.Upload.Controls.HtmlControl, oSession: ITHit.WebDAV.Client.Upload.UploaderSession, oGroupManager: ITHit.WebDAV.Client.Upload.Groups.GroupManager, oSettings: ITHit.WebDAV.Client.Upload.Settings);
3117
+ /**
3118
+ * Event reporting that upload item state changed.
3119
+ * @api
3120
+ * @event ITHit.WebDAV.Client.Upload.UploadItem#OnStateChanged
3121
+ * @property {ITHit.WebDAV.Client.Upload.UploadItem} Sender Upload item instance.
3122
+ * @property {string} Name Event name.
3123
+ * @property {ITHit.WebDAV.Client.Upload.State} OldState Previous state.
3124
+ * @property {ITHit.WebDAV.Client.Upload.State} NewState Actual state.
3125
+ * @example
3126
+ * /&#x002A&#x002A @typedef {ITHit.WebDAV.Client.Upload.UploadItem} oItem &#x002A/
3127
+ * var oItem = oUploader.Queue.GetByUrl(sSomeUrl);
3128
+ * oItem.AddListener('OnStateChanged', function (oStateChanged) {
3129
+ * console.log('Upload to:' + oStateChanged.Sender.GetUrl() + ', changed state to :' + oStateChanged.NewState);
3130
+ * });
3131
+ *
3132
+ */
3133
+ /**
3134
+ * Event reporting that upload item progress changed.
3135
+ * @api
3136
+ * @event ITHit.WebDAV.Client.Upload.UploadItem#OnProgressChanged
3137
+ * @property {ITHit.WebDAV.Client.Upload.UploadItem} Sender Upload item instance.
3138
+ * @property {string} Name Event name.
3139
+ * @property {ITHit.WebDAV.Client.Upload.Progress} OldProgress Previous progress.
3140
+ * @property {ITHit.WebDAV.Client.Upload.Progress} NewProgress Actual progress.
3141
+ * @example
3142
+ * /&#x002A&#x002A @typedef {ITHit.WebDAV.Client.Upload.UploadItem} oItem &#x002A/
3143
+ * var oItem = oUploader.Queue.GetByUrl(sSomeUrl);
3144
+ * oItem.AddListener('OnProgressChanged', function (oProgressChanged) {
3145
+ * console.log('Upload to:' + oStateChanged.Sender.GetUrl() + ', completed by:' + oProgressChanged.NewProgress.Completed + '%');
3146
+ * });
3147
+ *
3148
+ */
3149
+ /**
3150
+ * Event reporting that upload error occurred.
3151
+ * @api
3152
+ * @event ITHit.WebDAV.Client.Upload.UploadItem#OnError
3153
+ * @property {ITHit.WebDAV.Client.Upload.UploadItem} Sender Upload item instance.
3154
+ * @property {string} Name Event name.
3155
+ * @property {Error|ITHit.WebDAV.Client.Exceptions.WebDavException} Error.
3156
+ * @example
3157
+ * /&#x002A&#x002A @typedef {ITHit.WebDAV.Client.Upload.UploadItem} oItem &#x002A/
3158
+ * var oItem = oUploader.Queue.GetByUrl(sSomeUrl);
3159
+ * oItem.AddListener('OnError', function (oOnError) {
3160
+ * console.log('Upload to:' + oOnError.Sender.GetUrl() + ', failed with error:' + oOnError.Error.toString());
3161
+ * });
3162
+ *
3163
+ */
3164
+ /**
3165
+ * Event fired before {@link ITHit.WebDAV.Client.Upload.UploadItem} started upload.
3166
+ * You will validate item in this event and present user interface if user interaction is necessary.
3167
+ * In this event you can check if each item exists on the server and specify if item should be overwritten or skipped.
3168
+ * You can also validate file size, file extension, file upload path and file name.
3169
+ *
3170
+ * To continue upload the {@link ITHit.WebDAV.Client.Upload.Events.BeforeUploadStarted#Upload} function should be called.
3171
+ * To skip upload the {@link ITHit.WebDAV.Client.Upload.Events.BeforeUploadStarted#Skip} function should be called.
3172
+ * @api
3173
+ * @event ITHit.WebDAV.Client.Upload.UploadItem#OnBeforeUploadStarted
3174
+ * @type {ITHit.WebDAV.Client.Upload.Events.BeforeUploadStarted}
3175
+ * @example
3176
+ * /&#x002A&#x002A @typedef {ITHit.WebDAV.Client.Upload.UploadItem} oItem &#x002A/
3177
+ * var oItem = oUploader.Queue.GetByUrl(sSomeUrl);
3178
+ * oItem.AddListener('OnBeforeUploadStarted', function(oBeforeUploadStarted) {
3179
+ * WebDAVController.WebDavSession.OpenItemAsync(sHref,
3180
+ * [],
3181
+ * function(oAsyncResult) {
3182
+ * if (oAsyncResult.IsSuccess) {
3183
+ * oItem.SetSkip(true);
3184
+ * }
3185
+ *
3186
+ * oBeforeUploadStarted.Done();
3187
+ * });
3188
+ * });
3189
+ */
3190
+ /**
3191
+ * Event fired when is possible to retry failed upload and waited until one of action called.
3192
+ * @api
3193
+ * @event ITHit.WebDAV.Client.Upload.UploadItem#OnUploadError
3194
+ * @type {ITHit.WebDAV.Client.Upload.Events.UploadError}
3195
+ * @example
3196
+ * /&#x002A&#x002A @typedef {ITHit.WebDAV.Client.Upload.UploadItem} oItem &#x002A/
3197
+ * var oItem = oUploader.Queue.GetByUrl(sSomeUrl);
3198
+ * AddListener('OnUploadError', function(oUploadError) {
3199
+ * setTimeout(function() {
3200
+ * oUploadError.Retry();
3201
+ * }, 2000)
3202
+ * });
3203
+ */
3204
+ /**
3205
+ * Callback function to be called when action performed.
3206
+ * @api
3207
+ * @callback ITHit.WebDAV.Client.Upload.UploadItem~AsyncCallback
3208
+ */
3209
+ /**
3210
+ * Gets [File]{@link https://www.w3.org/TR/FileAPI/} object. Returns null in case of a folder.
3211
+ * @api
3212
+ * @return {(File | null )}
3213
+ */
3214
+ GetFile(): File | null;
3215
+ /**
3216
+ * Get target url.
3217
+ * @api
3218
+ * @return {string} File or folder target upload URL.
3219
+ */
3220
+ GetUrl(): string;
3221
+ /**
3222
+ * Gets file or folder name with extension.
3223
+ * @api
3224
+ * @return {string} File or folder name.
3225
+ */
3226
+ GetName(): string;
3227
+ /**
3228
+ * Gets relative path.
3229
+ * @api
3230
+ * @return {string} File or folder relative path.
3231
+ */
3232
+ GetRelativePath(): string;
3233
+ /**
3234
+ * Gets current upload state.
3235
+ * @api
3236
+ * @return {(ITHit.WebDAV.Client.Upload.State | string)}
3237
+ */
3238
+ GetState(): ITHit.WebDAV.Client.Upload.State | string;
3239
+ /**
3240
+ * Gets object that describes upload progress.
3241
+ * @api
3242
+ * @return {ITHit.WebDAV.Client.Upload.Progress }
3243
+ */
3244
+ GetProgress(): ITHit.WebDAV.Client.Upload.Progress;
3245
+ /**
3246
+ * Gets all upload errors.
3247
+ * @api
3248
+ * @return {(Error[]|ITHit.WebDAV.Client.Exceptions.WebDavException[])}
3249
+ */
3250
+ GetErrors(): Error[] | ITHit.WebDAV.Client.Exceptions.WebDavException[];
3251
+ /**
3252
+ * Gets last upload error.
3253
+ * @api
3254
+ * @return {(Error|ITHit.WebDAV.Client.Exceptions.WebDavException)}
3255
+ */
3256
+ GetLastError(): Error | ITHit.WebDAV.Client.Exceptions.WebDavException;
3257
+ /**
3258
+ * Stores custom data.
3259
+ * @api
3260
+ * @type {Object}
3261
+ */
3262
+ CustomData: Object
3263
+ /**
3264
+ * Sets if the item is overwritten if it exists on the server.
3265
+ * If false is passed and the file exists on the server upload will fail and the UploadItem will be set in the error state. Default is false.
3266
+ * @api
3267
+ * @param {boolean} Pass true to force the file to be overwritten. Pass false to make upload fail if file exists.
3268
+ */
3269
+ SetOverwrite(Pass: boolean): void;
3270
+ /**
3271
+ * Adds HTTP header to upload. Note that depending on your web server and web browser,
3272
+ * maximum allowed request header size or size of all headers in total may be limited.
3273
+ * @api
3274
+ * @param {String} sName Header name.
3275
+ * @param {String} sValue Header value.
3276
+ */
3277
+ AddHeader(sName: String, sValue: String): void;
3278
+ /**
3279
+ * Gets if the item will be overwritten if it exists on the server.
3280
+ * @api
3281
+ * @return {boolean} True if the file on the server will be overwritten. Otherwise - false. Default is false.
3282
+ */
3283
+ GetOverwrite(): boolean;
3284
+ /**
3285
+ * Sets if the file should be deleted if upload is canceled.
3286
+ * By default, the file is deleted if the upload is canceled. To override this behavior, call this method passing false as a parameter.
3287
+ * This function must be called on files only.
3288
+ * @api
3289
+ * @param {boolean} bDelete Specifies if the file should be deleted on cancel. Typically you will pass false if the file existed before upload.
3290
+ * You will pass true to set the default behavior and delete the file when the upload is canceled.
3291
+ * @throws {ITHit.Exceptions.ArgumentException} Thrown if this function is called on folder item.
3292
+ */
3293
+ SetDeleteOnCancel(bDelete: boolean): void;
3294
+ /**
3295
+ * Gets if the file is deleted when the upload is canceled.
3296
+ * @api
3297
+ * @return {boolean} True if file is deleted when upload is canceled. Otherwise - false. Default is true.
3298
+ */
3299
+ GetDeleteOnCancel(): boolean;
3300
+ /**
3301
+ * Sets failed state.
3302
+ * Populates item's error with provided error instance.
3303
+ * @api
3304
+ * @param {ITHit.WebDAV.Client.Exceptions.WebDavException} oError - The error instance that will be set as a failure description.
3305
+ * @throws {ITHit.Exceptions.ArgumentException} - Thrown if argument is not derived from {@link ITHit.WebDAV.Client.Exceptions.WebDavException}.
3306
+ * @example
3307
+ * var oUploader = new ITHit.WebDAV.Client.Upload.Uploader();
3308
+ * oUploader.Queue.OnUploadItemsCreated = function(oUploadItemsCreated) {
3309
+ * var sErrorMessage = 'Added to queue in failed state';
3310
+ * var oWebDavException = new ITHit.WebDAV.Client.Exceptions.WebDavException(sMessage);
3311
+ *
3312
+ * /&#42;&#42; &#64;typedef {ITHit.WebDAV.Client.Upload.UploadItem[]} aItemsToUpload &#42;/
3313
+ * oUploadItemsCreated.Items.forEach(function(oItem) {
3314
+ * oItem.SetFailed(oWebDavException);
3315
+ * }
3316
+ *
3317
+ * oUploadItemsCreated.Upload(oUploadItemsCreated.Items);
3318
+ * });
3319
+ *
3320
+ */
3321
+ SetFailed(oError: ITHit.WebDAV.Client.Exceptions.WebDavException): void;
3322
+ /**
3323
+ * Begins upload.
3324
+ * @api
3325
+ * @param {ITHit.WebDAV.Client.Upload.UploadItem~AsyncCallback} [fCallback] The callback to call when upload is paused.
3326
+ */
3327
+ StartAsync(fCallback?: () => void | null): void;
3328
+ /**
3329
+ * Pauses upload.
3330
+ * @api
3331
+ * @param {ITHit.WebDAV.Client.Upload.UploadItem~AsyncCallback} [fCallback] The callback to call when upload is paused.
3332
+ */
3333
+ PauseAsync(fCallback?: () => void | null): void;
3334
+ /**
3335
+ * Aborts upload.
3336
+ * @api
3337
+ * @param {number} [iTryCount] Number of times to try to delete the file if the file did not exist on the server before upload.
3338
+ * Pass 0 to not try to delete the file. Default is: 5.
3339
+ * @param {number} [iDelayAttempt] Delay between attempts to delete in milliseconds. Default is: 500.
3340
+ * @param {ITHit.WebDAV.Client.Upload.UploadItem~AsyncCallback} [fCallback] The callback to call when upload is cancelled.
3341
+ */
3342
+ CancelAsync(iTryCount?: number | null, iDelayAttempt?: number | null, fCallback?: () => void | null): void;
3343
+ /**
3344
+ * Add event handlers.
3345
+ * @api
3346
+ * @param {string} sEventName The event name to handle.
3347
+ * @param {Function} fCallback The callback to call.
3348
+ * @param {object} [oContext] The context to callback is called with.
3349
+ */
3350
+ AddListener(sEventName: string, fCallback: Function, oContext?: object | null): void;
3351
+ /**
3352
+ * Remove event listener.
3353
+ * @api
3354
+ * @param {string} sEventName The event name to remove.
3355
+ * @param {Function} fCallback The callback to call.
3356
+ * @param {object} [oContext] The context to callback is called with.
3357
+ */
3358
+ RemoveListener(sEventName: string, fCallback: Function, oContext?: object | null): void;
3359
+ /**
3360
+ * @public
3361
+ * @return {ITHit.WebDAV.Client.Upload.Groups.GroupManager}
3362
+ */
3363
+ GetGroup(): ITHit.WebDAV.Client.Upload.Groups.GroupManager;
3364
+ }/**
3365
+ * @alias ITHit.WebDAV.Client.Upload.FileSpan
3366
+ * @constructs
3367
+ * @public
3368
+ * @param {Blob} oFile
3369
+ * @param {number} [iStart]
3370
+ * @param {(number | null)} [iEnd]
3371
+ */
3372
+ class FileSpan {
3373
+ constructor(oFile: Blob, iStart?: number | null, iEnd?: number | null);
3374
+ /**
3375
+ * Gets start of the span.
3376
+ * @public
3377
+ * @return {number}
3378
+ */
3379
+ GetStart(): number;
3380
+ /**
3381
+ * Sets start of the span.
3382
+ * @public
3383
+ * @param {number} iStart
3384
+ */
3385
+ SetStart(iStart: number): void;
3386
+ /**
3387
+ * Gets end of the span. Match end of file if null.
3388
+ * @public
3389
+ * @return {number}
3390
+ */
3391
+ GetEnd(): number;
3392
+ /**
3393
+ * Sets end of the span. Match end of file if null.
3394
+ * @public
3395
+ * @param {(number | null)} iEnd
3396
+ */
3397
+ SetEnd(iEnd: number | null): void;
3398
+ }/**
3399
+ * @public
3400
+ * @class ITHit.WebDAV.Client.Upload.UploaderSession
3401
+ * @extends ITHit.WebDAV.Client.WebDavSession
3402
+ */
3403
+ class UploaderSession extends ITHit.WebDAV.Client.WebDavSession {
3404
+ /**
3405
+ * Returns progress report corresponding to path.
3406
+ * @public
3407
+ * @param {string} sUrl The url to resource.
3408
+ * @param {ITHit.WebDAV.Client.UploaderSession~GetProgressReportAsyncCallback} fCallback
3409
+ * @param {Object} [thisArg]
3410
+ * @return {* | ITHit.WebDAV.Client.Request} Request object.
3411
+ */
3412
+ GetProgressReportAsync(sUrl: string, fCallback: (oResult: ITHit.WebDAV.Client.AsyncResult) => void, thisArg?: Object | null): any | ITHit.WebDAV.Client.Request;
3413
+ /**
3414
+ * The OnBeforeRequestSend event is fired before request is being submitted to server and provides all
3415
+ * information that is used when creating the request such as URL, HTTP verb, headers and request body.
3416
+ * @api
3417
+ * @examplecode ITHit.WebDAV.Client.Tests.WebDavSession.Events.BeforeRequestSend
3418
+ * @examplecode ITHit.WebDAV.Client.TSExamples.WebDavSession.Events.BeforeRequestSend
3419
+ * @event ITHit.WebDAV.Client.WebDavSession#OnBeforeRequestSend
3420
+ * @property {string} Method Request method
3421
+ * @property {string} Href Request absolute path
3422
+ * @property {object} Headers Key-value object with headers
3423
+ * @property {string} Body Request Body
3424
+ */
3425
+ /**
3426
+ * The OnResponse event fires when the data is received from server. In your event handler you can update
3427
+ * any data received from server.
3428
+ * @api
3429
+ * @examplecode ITHit.WebDAV.Client.Tests.WebDavSession.Events.Response
3430
+ * @examplecode ITHit.WebDAV.Client.TSExamples.WebDavSession.Events.Response
3431
+ * @event ITHit.WebDAV.Client.WebDavSession#OnResponse
3432
+ * @property {number} Status Response status code
3433
+ * @property {string} StatusDescription Response status description
3434
+ * @property {object} Headers Key-value object with headers
3435
+ * @property {string} Body Response Body
3436
+ */
1813
3437
  /**
1814
3438
  * @api
1815
3439
  * @param {string} sEventName
1816
- * @param fCallback
3440
+ * @param {function} fCallback
1817
3441
  * @param {object} [oContext]
1818
3442
  */
1819
- AddListener(sEventName: string, fCallback: any, oContext?: object): void;
3443
+ AddListener(sEventName: string, fCallback: Function, oContext?: object | null): void;
1820
3444
  /**
1821
3445
  * @api
1822
3446
  * @param {string} sEventName
1823
- * @param fCallback
3447
+ * @param {function} fCallback
1824
3448
  * @param {object} [oContext]
1825
3449
  */
1826
- RemoveListener(sEventName: string, fCallback: any, oContext?: object): void;
3450
+ RemoveListener(sEventName: string, fCallback: Function, oContext?: object | null): void;
1827
3451
  /**
1828
3452
  * Load File object corresponding to path.
1829
3453
  * @api
@@ -1832,16 +3456,17 @@ export namespace ITHit{
1832
3456
  * @param {ITHit.WebDAV.Client.WebDavSession~OpenFileAsyncCallback} fCallback Function to call when operation is completed.
1833
3457
  * @returns {ITHit.WebDAV.Client.Request} Request object.
1834
3458
  */
1835
- OpenFileAsync(sPath: string, aProperties: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
3459
+ OpenFileAsync(sPath: string, aProperties: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1836
3460
  /**
1837
3461
  * Returns Folder object corresponding to path.
1838
3462
  * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.GetItemBySession.GetFolder
3463
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.GetItemBySession.GetFolder
1839
3464
  * @api
1840
3465
  * @param {string} sPath Path to the folder.
1841
3466
  * @param {ITHit.WebDAV.Client.PropertyName[]} aProperties Additional properties requested from server. Default is empty array.
1842
3467
  * @param {ITHit.WebDAV.Client.WebDavSession~OpenFolderAsyncCallback} fCallback Function to call when operation is completed.
1843
3468
  */
1844
- OpenFolderAsync(sPath: string, aProperties: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): void;
3469
+ OpenFolderAsync(sPath: string, aProperties: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): void;
1845
3470
  /**
1846
3471
  * Returns HierarchyItem object corresponding to path.
1847
3472
  * @api
@@ -1849,7 +3474,7 @@ export namespace ITHit{
1849
3474
  * @param {ITHit.WebDAV.Client.PropertyName[]} aProperties Additional properties requested from server. Default is empty array.
1850
3475
  * @param {ITHit.WebDAV.Client.WebDavSession~OpenItemAsyncCallback} fCallback Function to call when operation is completed.
1851
3476
  */
1852
- OpenItemAsync(sPath: string, aProperties: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): void;
3477
+ OpenItemAsync(sPath: string, aProperties: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): void;
1853
3478
  /**
1854
3479
  * Creates folder corresponding to path.
1855
3480
  * @api
@@ -1857,5 +3482,601 @@ export namespace ITHit{
1857
3482
  * @param {ITHit.WebDAV.Client.PropertyName[]} aProperties Additional properties requested from server. Default is empty array.
1858
3483
  * @param {ITHit.WebDAV.Client.WebDavSession~CreateFolderAsyncCallback} fCallback Function to call when operation is completed.
1859
3484
  */
1860
- CreateFolderAsync(sPath: string, aProperties: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): void;
1861
- }}}}
3485
+ CreateFolderAsync(sPath: string, aProperties: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): void;
3486
+ }/**
3487
+ * This class provides settings for Uploader.
3488
+ * @api
3489
+ * @class ITHit.WebDAV.Client.Upload.Settings
3490
+ */
3491
+ class Settings {
3492
+ /**
3493
+ * Number of active uploads same time.
3494
+ * Number of concurrent uploads.
3495
+ * @api
3496
+ * @type {number}
3497
+ * @default 2
3498
+ */
3499
+ ConcurrentUploads: number
3500
+ /**
3501
+ * Default queue state.
3502
+ * @api
3503
+ * @type {(ITHit.WebDAV.Client.Upload.State.Queued|string)}
3504
+ * @default ITHit.WebDAV.Client.Upload.State.Queued
3505
+ */
3506
+ State: ITHit.WebDAV.Client.Upload.State.Queued | string
3507
+ /**
3508
+ * Default cancel behaviour.
3509
+ * @api
3510
+ * @type {!boolean}
3511
+ * @default true
3512
+ */
3513
+ DeleteOnCancel: boolean
3514
+ }/**
3515
+ * List of items being uploaded. Each item in the list describes the file
3516
+ * or folder upload state and provides methods for managing upload.
3517
+ * @api
3518
+ * @class ITHit.WebDAV.Client.Upload.Queue
3519
+ * @fires ITHit.WebDAV.Client.Upload.Queue#OnQueueChanged
3520
+ */
3521
+ class Queue {
3522
+ /**
3523
+ * Event reporting that queue changed. Fired when item is added or deleted from queue.
3524
+ * @api
3525
+ * @event ITHit.WebDAV.Client.Upload.Queue#OnQueueChanged
3526
+ * @property {ITHit.WebDAV.Client.Upload.Queue} Sender The queue instance.
3527
+ * @property {string} Name Event name.
3528
+ * @property {ITHit.WebDAV.Client.Upload.UploadItem[]} AddedItems Added items.
3529
+ * @property {ITHit.WebDAV.Client.Upload.UploadItem[]} RemovedItems Removed items.
3530
+ * @example
3531
+ * var oUploader = new ITHit.WebDAV.Client.Upload.Uploader();
3532
+ * oUploader.Queue.AddListener('OnQueueChanged', function (oQueueChanged) {
3533
+ *
3534
+ * oQueueChanged.AddedItems.forEach(function(element) {
3535
+ * console.log('Upload added:' + element.GetName());
3536
+ * });
3537
+ * };
3538
+ */
3539
+ /**
3540
+ * Event fired {@link ITHit.WebDAV.Client.Upload.UploadItem}s are created.
3541
+ * You will validate files selected for upload in this event and present user interface if user interaction is necessary.
3542
+ * In this event you can check if each item exists on the server and specify if item should be overwritten or skipped.
3543
+ * You can also validate file size, file extension, file upload path and file name.
3544
+ *
3545
+ * To continue upload the {@link ITHit.WebDAV.Client.Upload.Events.UploadItemsCreated#Upload} function with the list of items to be uploaded should be called.
3546
+ * @api
3547
+ * @event ITHit.WebDAV.Client.Upload.Queue#OnUploadItemsCreated
3548
+ * @type {ITHit.WebDAV.Client.Upload.Events.UploadItemsCreated}
3549
+ * @example
3550
+ * var oUploader = new ITHit.WebDAV.Client.Upload.Uploader();
3551
+ * oUploader.Queue.AddListener('OnUploadItemsCreated', function(oUploadItemsCreated) {
3552
+ * var aIgnoredNames = ['file1.txt', 'file2.txt'];
3553
+ *
3554
+ * /&#42;&#42; &#64;typedef {ITHit.WebDAV.Client.Upload.UploadItem[]} aItems &#42;/
3555
+ * var aItems = oUploadItemsCreated.Items;
3556
+ * /&#42;&#42; &#64;typedef {ITHit.WebDAV.Client.Upload.UploadItem[]} aItemsToUpload &#42;/
3557
+ * var aItemsToUpload = aItems.filter(function(oItem) {
3558
+ * aIgnoredNames.indexOf(oItem.GetName()) < 0
3559
+ * }
3560
+ *
3561
+ * oUploadItemsCreated.Upload(aItemsToUpload);
3562
+ * });
3563
+ *
3564
+ */
3565
+ /**
3566
+ * Associated uploader.
3567
+ * @api
3568
+ * @type {ITHit.WebDAV.Client.Upload.Uploader}
3569
+ */
3570
+ Uploader: ITHit.WebDAV.Client.Upload.Uploader
3571
+ /**
3572
+ * Adds uploads to the queue.
3573
+ * @public
3574
+ * @param {string} sUrl Url to upload.
3575
+ * @param {ITHit.WebDAV.Client.Upload.FSEntry[]} aFSEntries Items to Upload.
3576
+ * @param {ITHit.WebDAV.Client.Upload.Controls.HtmlControl} [oSource] Source of items.
3577
+ */
3578
+ AddGroup(sUrl: string, aFSEntries: ITHit.WebDAV.Client.Upload.FSEntry[], oSource?: ITHit.WebDAV.Client.Upload.Controls.HtmlControl | null): void;
3579
+ /**
3580
+ * @api
3581
+ * Restart queued upload of {@link ITHit.WebDAV.Client.Upload.UploadItem}s collection.
3582
+ * @param {ITHit.WebDAV.Client.Upload.UploadItem[]} aUploadItems Collection restart.
3583
+ */
3584
+ Restart(aUploadItems: ITHit.WebDAV.Client.Upload.UploadItem[]): void;
3585
+ /**
3586
+ * Removes upload file from queue.
3587
+ * @param {string} sUrl The url of UploadItem to remove.
3588
+ * @api
3589
+ */
3590
+ RemoveByUrl(sUrl: string): void;
3591
+ /**
3592
+ * Add event handlers.
3593
+ * @api
3594
+ * @param {string} sEventName The event name to handle.
3595
+ * @param {Function} fCallback The callback to call.
3596
+ * @param {Object} [oContext] The context to callback is called with.
3597
+ */
3598
+ AddListener(sEventName: string, fCallback: Function, oContext?: Object | null): void;
3599
+ /**
3600
+ * Removes event listener.
3601
+ * @api
3602
+ * @param {string} sEventName The event name to remove.
3603
+ * @param {Function} fCallback The callback to remove.
3604
+ * @param {Object} [oContext] The context to callback is called with.
3605
+ */
3606
+ RemoveListener(sEventName: string, fCallback: Function, oContext?: Object | null): void;
3607
+ }/**
3608
+ * Instance of this class store drop zones and provide methods to creating
3609
+ * and removing them
3610
+ * @api
3611
+ * @class ITHit.WebDAV.Client.Upload.DropZoneCollection
3612
+ */
3613
+ class DropZoneCollection {
3614
+ /**
3615
+ * @api
3616
+ * @type {ITHit.WebDAV.Client.Upload.Uploader}
3617
+ */
3618
+ Uploader: ITHit.WebDAV.Client.Upload.Uploader
3619
+ /**
3620
+ * Bind HTML element as drop zone.
3621
+ * @api
3622
+ * @example
3623
+ * &lt;!DOCTYPE html&gt;
3624
+ * &lt;html&gt;
3625
+ * &lt;head&gt;
3626
+ * &lt;script type="text/javascript"&gt;
3627
+ * var oUploader = new ITHit.WebDAV.Client.Upload.Uploader();
3628
+ * oUploader.DropZones.AddById('ithit-dropzone');
3629
+ * &lt;/script&gt;
3630
+ * &lt;/head&gt;
3631
+ * &lt;body
3632
+ * &lt;div id="ithit-dropzone"&gt;
3633
+ * Drop file to upload&lt;
3634
+ * &lt;/div&gt;
3635
+ * &lt;/body&gt;
3636
+ * &lt;/html&gt;
3637
+ * @param {string} sElementId Id of HTML element.
3638
+ * @return {ITHit.WebDAV.Client.Upload.Controls.DropZone} Created drop zone.
3639
+ */
3640
+ AddById(sElementId: string): ITHit.WebDAV.Client.Upload.Controls.DropZone;
3641
+ /**
3642
+ * Get drop zone by Id.
3643
+ * @api
3644
+ * @param {string} sElementId Id of HTML element.
3645
+ * @return {(ITHit.WebDAV.Client.Upload.Controls.DropZone | undefined)} Found drop zone or undefined.
3646
+ */
3647
+ GetById(sElementId: string): ITHit.WebDAV.Client.Upload.Controls.DropZone | undefined;
3648
+ /**
3649
+ * Remove HTML element from drop zone Controls by id.
3650
+ * @api
3651
+ * @param {string} sElementId Id of HTML element.
3652
+ */
3653
+ RemoveById(sElementId: string): void;
3654
+ /**
3655
+ * Add event handlers.
3656
+ * @public
3657
+ * @param {string} sEventName The event name to handle.
3658
+ * @param {Function} fCallback The callback to call.
3659
+ * @param {Object} [oContext] The context to callback is called with.
3660
+ */
3661
+ AddListener(sEventName: string, fCallback: Function, oContext?: Object | null): void;
3662
+ /**
3663
+ * Removes event listener.
3664
+ * @public
3665
+ * @param {string} sEventName The event name to remove.
3666
+ * @param {Function} fCallback The callback to remove.
3667
+ * @param {Object} [oContext] The context to callback is called with.
3668
+ */
3669
+ RemoveListener(sEventName: string, fCallback: Function, oContext?: Object | null): void;
3670
+ /**
3671
+ * Event reporting that collection changed. Fired when item is added or deleted from collection.
3672
+ * @public
3673
+ * @event ITHit.WebDAV.Client.Upload.DropZoneCollection#OnCollectionChanged
3674
+ * @property {ITHit.WebDAV.Client.Upload.DropZoneCollection} Sender The collection instance.
3675
+ * @property {ITHit.WebDAV.Client.Upload.Controls.DropZone[]} AddedItems Added items.
3676
+ * @property {ITHit.WebDAV.Client.Upload.Controls.DropZone[]} RemovedItems Removed items.
3677
+ */
3678
+ }/**
3679
+ * List of upload inputs. Contains items of {@link ITHit.WebDAV.Client.Upload.Controls.Input} type.
3680
+ * @api
3681
+ * @class ITHit.WebDAV.Client.Upload.InputCollection
3682
+ */
3683
+ class InputCollection {
3684
+ /**
3685
+ * @api
3686
+ * @type {ITHit.WebDAV.Client.Upload.Uploader}
3687
+ */
3688
+ Uploader: ITHit.WebDAV.Client.Upload.Uploader
3689
+ /**
3690
+ * Bind HTML element as input.
3691
+ * @api
3692
+ * @example
3693
+ * &lt;!DOCTYPE html&gt;
3694
+ * &lt;html&gt;
3695
+ * &lt;head&gt;
3696
+ * &lt;script type="text/javascript"&gt;
3697
+ * var oUploader = new ITHit.WebDAV.Client.Upload.Uploader();
3698
+ * oUploader.Inputs.AddById('ithit-input');
3699
+ * &lt;/script&gt;
3700
+ * &lt;/head&gt;
3701
+ * &lt;body
3702
+ * &lt;input id="ithit-input" type="file"&gt;
3703
+ * &lt;/body&gt;
3704
+ * &lt;/html&gt;
3705
+ * @param {string} sElementId Id of HTML element.
3706
+ * @return {ITHit.WebDAV.Client.Upload.Controls.Input} Created input object.
3707
+ */
3708
+ AddById(sElementId: string): ITHit.WebDAV.Client.Upload.Controls.Input;
3709
+ /**
3710
+ * Get input object by Id.
3711
+ * @api
3712
+ * @param {string} sElementId Id of HTML element.
3713
+ * @return {ITHit.WebDAV.Client.Upload.Controls.Input | undefined} Founded input or undefined.
3714
+ */
3715
+ GetById(sElementId: string): ITHit.WebDAV.Client.Upload.Controls.Input | undefined;
3716
+ /**
3717
+ * Remove HTML element from input Controls by id.
3718
+ * @api
3719
+ * @param {string} sElementId Id of HTML element.
3720
+ */
3721
+ RemoveById(sElementId: string): void;
3722
+ /**
3723
+ * Add event handlers.
3724
+ * @public
3725
+ * @param {string} sEventName The event name to handle.
3726
+ * @param {Function} fCallback The callback to call.
3727
+ * @param {Object} [oContext] The context to callback is called with.
3728
+ */
3729
+ AddListener(sEventName: string, fCallback: Function, oContext?: Object | null): void;
3730
+ /**
3731
+ * Removes event listener.
3732
+ * @public
3733
+ * @param {string} sEventName The event name to remove.
3734
+ * @param {Function} fCallback The callback to remove.
3735
+ * @param {Object} [oContext] The context to callback is called with.
3736
+ */
3737
+ RemoveListener(sEventName: string, fCallback: Function, oContext?: Object | null): void;
3738
+ /**
3739
+ * Event reporting that collection changed. Fired when item is added or deleted from collection.
3740
+ * @public
3741
+ * @event ITHit.WebDAV.Client.Upload.InputCollection#OnCollectionChanged
3742
+ * @property {ITHit.WebDAV.Client.Upload.InputCollection} Sender The collection instance.
3743
+ * @property {ITHit.WebDAV.Client.Upload.Controls.Input[]} AddedItems Added items.
3744
+ * @property {ITHit.WebDAV.Client.Upload.Controls.Input[]} RemovedItems Removed items.
3745
+ */
3746
+ }/**
3747
+ * Create uploader instance.
3748
+ * @example
3749
+ * &lt;!DOCTYPE html&gt;
3750
+ * &lt;html lang="en"&gt;
3751
+ * &lt;head&gt;
3752
+ * &lt;title&gt;IT Hit WebDAV Uploader&lt;/title&gt;
3753
+ * &lt;script src="ITHitWebDAVClient.js" type="text/javascript"&gt;&lt;/script&gt;
3754
+ * &lt;link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"&gt;
3755
+ * &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js"&gt;&lt;/script&gt;
3756
+ * &lt;script type="text/javascript"&gt;
3757
+ * function UploaderGridView(sSelector) {
3758
+ * this.Uploader = new ITHit.WebDAV.Client.Upload.Uploader();
3759
+ * this.Uploader.DropZones.AddById('ithit-dropzone');
3760
+ * this.Uploader = oUploader;
3761
+ * this.Uploader.Queue.AddListener('OnQueueChanged', '_CollectionChange', this);
3762
+ * this.$table = $(sSelector);
3763
+ * this.rows = [];
3764
+ * };
3765
+ *
3766
+ * /&#x002A&#x002A
3767
+ * * Observes adding and deleting of UploadItem and creates and removes rows in table.
3768
+ * * @param {ITHit.WebDAV.Client.Upload.Queue#OnQueueChanged} oQueueChanged
3769
+ * &#x002A/
3770
+ * UploaderGridView.prototype._CollectionChange = function(oQueueChanged) {
3771
+ * $.each(oQueueChanged.AddedItems, function(index, value) {
3772
+ * var row = new UploaderGridRow(value);
3773
+ * this.rows.push(row);
3774
+ * this.$table.append(row.$el);
3775
+ * }.bind(this));
3776
+ *
3777
+ * $.each(oQueueChanged.RemovedItems, function(index, value) {
3778
+ * var aRows = $.grep(this.rows, function(oElem) { return value === oElem.UploadItem; });
3779
+ * var iIndex = this.rows.indexOf(aRows[0]);
3780
+ * this.rows.splice(iIndex, 1);
3781
+ * aRows[0].$el.remove();
3782
+ * }.bind(this));
3783
+ * };
3784
+ *
3785
+ * /&#x002A&#x002A
3786
+ * * Represents table row and subscribes for upload change.
3787
+ * * @param {ITHit.WebDAV.Client.Upload.oUploadItem} oUploadItem
3788
+ * &#x002A/
3789
+ * function UploaderGridRow(oUploadItem) {
3790
+ * this.$el = $('<tr></tr>');
3791
+ * this.oUploadItem = oUploadItem;
3792
+ * this.oUploadItem.AddListener('OnProgressChanged', '_OnProgress', this);
3793
+ * this.oUploadItem.AddListener('OnStateChanged', '_OnStateChange', this);
3794
+ * this._Render(oUploadItem);
3795
+ * };
3796
+ *
3797
+ *
3798
+ * /&#x002A&#x002A
3799
+ * * Creates upload details view.
3800
+ * * @param {ITHit.WebDAV.Client.Upload.oUploadItem} oUploadItem
3801
+ * &#x002A/
3802
+ * UploaderGridRow.prototype._Render = function(oUploadItem) {
3803
+ * /&#x002A&#x002A @typedef {ITHit.WebDAV.Client.Upload.Progress} oProgress &#x002A/
3804
+ * var oProgress = oUploadItem.GetProgress();
3805
+ * var columns = [
3806
+ * oUploadItem.GetName(),
3807
+ * oUploadItem.GetUrl(),
3808
+ * oUploadItem.GetSize(),
3809
+ * oProgress.UploadedBytes,
3810
+ * oProgress.Completed,
3811
+ * oProgress.ElapsedTime,
3812
+ * oProgress.RemainingTime,
3813
+ * oProgress.Speed,
3814
+ * oUploadItem.GetState()
3815
+ * ];
3816
+ *
3817
+ * var $columns = [];
3818
+ * columns.forEach(function(item) {
3819
+ * var $column = $('&lt;td&gt;&lt;/td&gt;');
3820
+ * $column.html(item);
3821
+ * $columns.push($column);
3822
+ * });
3823
+ *
3824
+ * var $actions = $('&lt;td&gt;&lt;/td&gt;');
3825
+ * this._RenderActions(oUploadItem).forEach(function(item) {
3826
+ * $actions.append(item);
3827
+ * });
3828
+ *
3829
+ * $columns.push($actions);
3830
+ * this.$el.empty();
3831
+ * this.$el.append($columns);
3832
+ * };
3833
+ *
3834
+ * /&#x002A&#x002A
3835
+ * * Creates upload actions view.
3836
+ * * @param {ITHit.WebDAV.Client.Upload.oUploadItem} oUploadItem
3837
+ * &#x002A/
3838
+ * UploaderGridRow.prototype._RenderActions = function(oUploadItem) {
3839
+ * var actions = [];
3840
+ * actions.push($('&lt;a&gt;&lt;/a&gt;').
3841
+ * html('&lt;span class="glyphicon glyphicon-play"&gt;&lt;/span&gt;').
3842
+ * attr('href', 'javascript:void(0)').
3843
+ * on('click', oUploadItem.StartAsync.bind(oUploadItem)));
3844
+ *
3845
+ * actions.push($('&lt;a&gt;&lt;/a&gt;').
3846
+ * html('&lt;span class="glyphicon glyphicon-stop"&gt;&lt;/span&gt;').
3847
+ * attr('href', 'javascript:void(0)').
3848
+ * on('click',oUploadItem.CancelAsync.bind(oUploadItem)));
3849
+ * };
3850
+ *
3851
+ * /&#x002A&#x002A
3852
+ * * Handles UploadItem state change.
3853
+ * * @param {ITHit.WebDAV.Client.Upload.UploadItem#OnStateChanged} oStateChangedEvent
3854
+ * &#x002A/
3855
+ * UploaderGridRow.prototype._OnStateChange = function(oStateChangedEvent) {
3856
+ * this._Render(oStateChangedEvent.Sender);
3857
+ * };
3858
+ *
3859
+ * /&#x002A&#x002A
3860
+ * * Handles UploadItem progress change.
3861
+ * * @param {ITHit.WebDAV.Client.Upload.UploadItem#OnProgressChanged} oProgressEvent
3862
+ * &#x002A/
3863
+ * UploaderGridRow.prototype._OnProgress = function(oProgressEvent) {
3864
+ * this._Render(oProgressEvent.Sender);
3865
+ * };
3866
+ *
3867
+ * var sUploadUrl = 'https://webdavserver/path/';
3868
+ * var oUploaderGrid = new UploaderGridView(oUploader, '.ithit-grid-uploads');
3869
+ * oUploaderGrid.Uploader.SetUploadUrl(sUploadUrl);
3870
+ * &lt;/script&gt;
3871
+ * &lt;/head&gt;
3872
+ * &lt;body id="it-hit-dropzone"&gt;
3873
+ * &lt;table class="table table-responsive ithit-grid-uploads"&gt;
3874
+ * &lt;thead&gt;
3875
+ * &lt;tr&gt;
3876
+ * &lt;th&gt;Display Name&lt;/th&gt;
3877
+ * &lt;th&gt;Download Url&lt;/th&gt;
3878
+ * &lt;th&gt;Size&lt;/th&gt;
3879
+ * &lt;th&gt;Uploaded Bytes&lt;/th&gt;
3880
+ * &lt;th&gt;Completed&lt;/th&gt;
3881
+ * &lt;th&gt;Elapsed TimeSpan&lt;/th&gt;
3882
+ * &lt;th&gt;Remaining TimeSpan&lt;/th&gt;
3883
+ * &lt;th&gt;Speed&lt;/th&gt;
3884
+ * &lt;th&gt;State&lt;/th&gt;
3885
+ * &lt;th&gt;Actions&lt;/th&gt;
3886
+ * &lt;/tr&gt;
3887
+ * &lt;/thead&gt;
3888
+ * &lt;tbody&gt;
3889
+ * &lt;/tbody&gt;
3890
+ * &lt;/table&gt;
3891
+ * &lt;/body&gt;
3892
+ * &lt;/html&gt;
3893
+ * @classdesc This class provides methods for managing file drop
3894
+ * zones, inputs and upload queue.
3895
+ * @api
3896
+ * @class ITHit.WebDAV.Client.Upload.Uploader
3897
+ * @constructs
3898
+ */
3899
+ class Uploader {
3900
+ /**
3901
+ * Collection of associated drop zones.
3902
+ * @api
3903
+ * @readonly
3904
+ * @type { ITHit.WebDAV.Client.Upload.DropZoneCollection }
3905
+ */
3906
+ readonly DropZones: ITHit.WebDAV.Client.Upload.DropZoneCollection
3907
+ /**
3908
+ * Collection of associated inputs.
3909
+ * @api
3910
+ * @readonly
3911
+ * @type { ITHit.WebDAV.Client.Upload.InputCollection }
3912
+ */
3913
+ readonly Inputs: ITHit.WebDAV.Client.Upload.InputCollection
3914
+ /**
3915
+ * Queue of uploads.
3916
+ * @api
3917
+ * @readonly
3918
+ * @type {ITHit.WebDAV.Client.Upload.Queue}
3919
+ */
3920
+ readonly Queue: ITHit.WebDAV.Client.Upload.Queue
3921
+ /**
3922
+ * Default settings for uploads.
3923
+ * @api
3924
+ * @type { ITHit.WebDAV.Client.Upload.Settings }
3925
+ */
3926
+ Settings: ITHit.WebDAV.Client.Upload.Settings
3927
+ /**
3928
+ * Set upload url for drop zones and inputs.
3929
+ * @api
3930
+ * @param {string} sUrl Url to upload.
3931
+ */
3932
+ SetUploadUrl(sUrl: string): void;
3933
+ /**
3934
+ * Get upload url for drop zones and inputs.
3935
+ * @api
3936
+ * @return {string} Upload url.
3937
+ */
3938
+ GetUploadUrl(): string;
3939
+ }
3940
+ namespace Controls{
3941
+ /**
3942
+ * @api
3943
+ * Instance of this class provides binding for HTMLElement.
3944
+ * @class ITHit.WebDAV.Client.Upload.Controls.HtmlControl
3945
+ */
3946
+ class HtmlControl {
3947
+ /**
3948
+ * Id attribute.
3949
+ * @api
3950
+ * @type {string}
3951
+ */
3952
+ Id: string
3953
+ /**
3954
+ * Associated HTML Element
3955
+ * @api
3956
+ * @type {HTMLElement}
3957
+ */
3958
+ HtmlElement: HTMLElement
3959
+ /**
3960
+ * Add event handlers.
3961
+ * @public
3962
+ * @param {string} sEventName The event name to handle.
3963
+ * @param {Function} fCallback The callback to call.
3964
+ * @param {Object} [oContext] The context to callback is called with.
3965
+ */
3966
+ AddListener(sEventName: string, fCallback: Function, oContext?: Object | null): void;
3967
+ /**
3968
+ * Removes event listener.
3969
+ * @public
3970
+ * @param {string} sEventName The event name to remove.
3971
+ * @param {Function} fCallback The callback to remove.
3972
+ * @param {Object} [oContext] The context to callback is called with.
3973
+ */
3974
+ RemoveListener(sEventName: string, fCallback: Function, oContext?: Object | null): void;
3975
+ /**
3976
+ * Event reporting that file handling finished..
3977
+ * @public
3978
+ * @event ITHit.WebDAV.Client.Upload.Controls.HtmlControl#OnFileInputHandled
3979
+ * @property {ITHit.WebDAV.Client.Upload.Controls.HtmlControl} Source The source of event.
3980
+ * @property {ITHit.WebDAV.Client.AsyncResult} AsyncResult Result.
3981
+ * @property {ITHit.WebDAV.Client.Upload.FSEntry[]} AsyncResult.Result Current uploader
3982
+ */
3983
+ }/**
3984
+ * This class provides methods for creation of {@link ITHit.WebDAV.Client.Upload.FSEntryFactory}s.
3985
+ * @public
3986
+ * @class ITHit.WebDAV.Client.Upload.Controls.FSEntryFactory
3987
+ */
3988
+ class FSEntryFactory {
3989
+ }/**
3990
+ * Instance of this class provides metadata for drop zone.
3991
+ * @api
3992
+ * @class ITHit.WebDAV.Client.Upload.Controls.DropZone
3993
+ * @extends ITHit.WebDAV.Client.Upload.Controls.HtmlControl
3994
+ */
3995
+ class DropZone extends ITHit.WebDAV.Client.Upload.Controls.HtmlControl {
3996
+ /**
3997
+ * Id attribute.
3998
+ * @api
3999
+ * @type {string}
4000
+ */
4001
+ Id: string
4002
+ /**
4003
+ * Associated HTML Element
4004
+ * @api
4005
+ * @type {HTMLElement}
4006
+ */
4007
+ HtmlElement: HTMLElement
4008
+ /**
4009
+ * Add event handlers.
4010
+ * @public
4011
+ * @param {string} sEventName The event name to handle.
4012
+ * @param {Function} fCallback The callback to call.
4013
+ * @param {Object} [oContext] The context to callback is called with.
4014
+ */
4015
+ AddListener(sEventName: string, fCallback: Function, oContext?: Object | null): void;
4016
+ /**
4017
+ * Removes event listener.
4018
+ * @public
4019
+ * @param {string} sEventName The event name to remove.
4020
+ * @param {Function} fCallback The callback to remove.
4021
+ * @param {Object} [oContext] The context to callback is called with.
4022
+ */
4023
+ RemoveListener(sEventName: string, fCallback: Function, oContext?: Object | null): void;
4024
+ /**
4025
+ * Event reporting that file handling finished..
4026
+ * @public
4027
+ * @event ITHit.WebDAV.Client.Upload.Controls.HtmlControl#OnFileInputHandled
4028
+ * @property {ITHit.WebDAV.Client.Upload.Controls.HtmlControl} Source The source of event.
4029
+ * @property {ITHit.WebDAV.Client.AsyncResult} AsyncResult Result.
4030
+ * @property {ITHit.WebDAV.Client.Upload.FSEntry[]} AsyncResult.Result Current uploader
4031
+ */
4032
+ }/**
4033
+ * Instance of this class provides metadata for input.
4034
+ * @class ITHit.WebDAV.Client.Upload.Controls.Input
4035
+ * @extends ITHit.WebDAV.Client.Upload.Controls.HtmlControl
4036
+ * @api
4037
+ */
4038
+ class Input extends ITHit.WebDAV.Client.Upload.Controls.HtmlControl {
4039
+ /**
4040
+ * Id attribute.
4041
+ * @api
4042
+ * @type {string}
4043
+ */
4044
+ Id: string
4045
+ /**
4046
+ * Associated HTML Element
4047
+ * @api
4048
+ * @type {HTMLElement}
4049
+ */
4050
+ HtmlElement: HTMLElement
4051
+ /**
4052
+ * Add event handlers.
4053
+ * @public
4054
+ * @param {string} sEventName The event name to handle.
4055
+ * @param {Function} fCallback The callback to call.
4056
+ * @param {Object} [oContext] The context to callback is called with.
4057
+ */
4058
+ AddListener(sEventName: string, fCallback: Function, oContext?: Object | null): void;
4059
+ /**
4060
+ * Removes event listener.
4061
+ * @public
4062
+ * @param {string} sEventName The event name to remove.
4063
+ * @param {Function} fCallback The callback to remove.
4064
+ * @param {Object} [oContext] The context to callback is called with.
4065
+ */
4066
+ RemoveListener(sEventName: string, fCallback: Function, oContext?: Object | null): void;
4067
+ /**
4068
+ * Event reporting that file handling finished..
4069
+ * @public
4070
+ * @event ITHit.WebDAV.Client.Upload.Controls.HtmlControl#OnFileInputHandled
4071
+ * @property {ITHit.WebDAV.Client.Upload.Controls.HtmlControl} Source The source of event.
4072
+ * @property {ITHit.WebDAV.Client.AsyncResult} AsyncResult Result.
4073
+ * @property {ITHit.WebDAV.Client.Upload.FSEntry[]} AsyncResult.Result Current uploader
4074
+ */
4075
+ }}
4076
+ namespace Groups{
4077
+ /**
4078
+ * @public
4079
+ * @class ITHit.WebDAV.Client.Upload.Groups.GroupManager
4080
+ */
4081
+ class GroupManager {
4082
+ }}}}}}