webdav.client 5.21.5819 → 5.21.5850

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 +4082 -0
  207. package/index.js +1 -1
  208. package/package.json +2 -2
package/index.d.ts ADDED
@@ -0,0 +1,4082 @@
1
+ // -----------------------------------------------------------------------
2
+ // IT Hit WebDAV Ajax Library v5.21.5850.0
3
+ // Copyright © 2020 IT Hit LTD. All rights reserved.
4
+ // License: https://www.webdavsystem.com/ajax/
5
+ // -----------------------------------------------------------------------
6
+
7
+ export namespace ITHit{
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{
76
+ /**
77
+ * The ITHit.WebDav.Client.Exceptions namespace provides classes that represent various WebDAV client library exceptions, erroneous server responses and HTTP errors.
78
+ * @namespace ITHit.WebDAV.Client.Exceptions
79
+ */
80
+ namespace Exceptions{
81
+ /**
82
+ * Base exception for all exceptions thrown by WebDAV client library.
83
+ * Initializes a new instance of the WebDavException class with a specified error message.
84
+ * @api
85
+ * @class ITHit.WebDAV.Client.Exceptions.WebDavException
86
+ * @extends ITHit.Exception
87
+ */
88
+ class WebDavException extends ITHit.Exception {
89
+ }/**
90
+ * Is thrown whenever and erroneous http response is received. Initializes a new instance of the WebDavHttpException
91
+ * class with a specified error message, a reference to the inner exception that is the cause of this exception,
92
+ * href of the item, multistatus response and status of the response caused the error.
93
+ * @api
94
+ * @class ITHit.WebDAV.Client.Exceptions.WebDavHttpException
95
+ * @extends ITHit.WebDAV.Client.Exceptions.WebDavException
96
+ */
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
+ }/**
123
+ * Is raised whenever property processing was unsuccessfull. Initializes a new instance of the PropertyException
124
+ * class with a specified error message, a reference to the inner exception that is the cause of this exception,
125
+ * href of the item and multistatus response caused the error.
126
+ * @api
127
+ * @class ITHit.WebDAV.Client.Exceptions.PropertyException
128
+ * @extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException
129
+ */
130
+ class PropertyException extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException {
131
+ /**
132
+ * Name of the property processing of which caused the exception.
133
+ * @api
134
+ * @type {ITHit.WebDAV.Client.PropertyName}
135
+ */
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
161
+ }/**
162
+ * Thrown when server responded with Property Not Found http response. Initializes a new instance of the
163
+ * PropertyNotFoundException class with a specified error message, a reference to the inner exception that
164
+ * is the cause of this exception, href of the item and multistatus response caused the error.
165
+ * @api
166
+ * @class ITHit.WebDAV.Client.Exceptions.PropertyNotFoundException
167
+ * @extends ITHit.WebDAV.Client.Exceptions.PropertyException
168
+ */
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
+ }/**
201
+ * Thrown when server responded with Property forbidden http response. Initializes a new instance of the
202
+ * PropertyForbiddenException class with a specified error message, a reference to the inner exception
203
+ * that is the cause of this exception, href of the item and multistatus response caused the error.
204
+ * @api
205
+ * @class ITHit.WebDAV.Client.Exceptions.PropertyForbiddenException
206
+ * @extends ITHit.WebDAV.Client.Exceptions.PropertyException
207
+ */
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
+ }/**
240
+ * Base exception for all exceptions thrown by browser extension integration.
241
+ * Initializes a new instance of the IntegrationException class with a specified error message.
242
+ * @api
243
+ * @class ITHit.WebDAV.Client.Exceptions.IntegrationException
244
+ */
245
+ class IntegrationException {
246
+ }/**
247
+ * Incorrect credentials provided or insufficient permissions to access the requested item. Initializes a new instance
248
+ * of the UnauthorizedException class with a specified error message, a reference to the inner exception that is the
249
+ * cause of this exception, href of the item and multistatus response caused the error.
250
+ * @api
251
+ * @class ITHit.WebDAV.Client.Exceptions.UnauthorizedException
252
+ * @extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException
253
+ */
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
+ }/**
280
+ * The request could not be understood by the server due to malformed syntax.
281
+ * Initializes a new instance of the BadRequestException class with a specified error message, a reference to the
282
+ * inner exception that is the cause of this exception, href of the item and multistatus response caused the error.
283
+ * @api
284
+ * @class ITHit.WebDAV.Client.Exceptions.BadRequestException
285
+ * @extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException
286
+ */
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
+ }/**
313
+ * The request could not be carried because of conflict on server.
314
+ * Initializes a new instance of the ConflictException class with a specified error message, a reference
315
+ * to the inner exception that is the cause of this exception, href of the item and multistatus response
316
+ * caused the error.
317
+ * @api
318
+ * @class ITHit.WebDAV.Client.Exceptions.ConflictException
319
+ * @extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException
320
+ */
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
+ }/**
347
+ * The item is locked. Initializes a new instance of the LockedException class with a specified error message,
348
+ * a reference to the inner exception that is the cause of this exception, href of the item and multistatus
349
+ * response caused the error.
350
+ * @api
351
+ * @class ITHit.WebDAV.Client.Exceptions.LockedException
352
+ * @extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException
353
+ */
354
+ class LockedException extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException {
355
+ /**
356
+ * Multistatus Contains {@link ITHit.WebDAV.Client.Multistatus} with elements that had errors, if multistatus information was available in response.
357
+ * @api
358
+ * @type {ITHit.WebDAV.Client.Multistatus}
359
+ */
360
+ Multistatus: ITHit.WebDAV.Client.Multistatus
361
+ /**
362
+ * Http status with wich request failed.
363
+ * @api
364
+ * @type {ITHit.WebDAV.Client.HttpStatus}
365
+ */
366
+ Status: ITHit.WebDAV.Client.HttpStatus
367
+ /**
368
+ * Uri for which request failed.
369
+ * @api
370
+ * @type {string}
371
+ */
372
+ Uri: string
373
+ /**
374
+ * Error contains IError with additional info, if error information was available in response.
375
+ * @api
376
+ * @type {ITHit.WebDAV.Client.Error}
377
+ */
378
+ Error: ITHit.WebDAV.Client.Error
379
+ }/**
380
+ * The server refused to fulfill the request. Initializes a new instance of the ForbiddenException class with
381
+ * a specified error message, a reference to the inner exception that is the cause of this exception, href of
382
+ * the item and multistatus response caused the error.
383
+ * @api
384
+ * @class ITHit.WebDAV.Client.Exceptions.ForbiddenException
385
+ * @extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException
386
+ */
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
+ }/**
413
+ * The method is not allowed. Initializes a new instance of the MethodNotAllowedException class with a specified
414
+ * error message, a reference to the inner exception that is the cause of this exception, href of the item and
415
+ * multistatus response caused the error.
416
+ * @api
417
+ * @class ITHit.WebDAV.Client.Exceptions.MethodNotAllowedException
418
+ * @extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException
419
+ */
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
+ }/**
479
+ * The item doesn't exist on the server. Initializes a new instance of the NotFoundException class with a specified
480
+ * error message, a reference to the inner exception that is the cause of this exception, href of the item and
481
+ * multistatus response caused the error.
482
+ * @api
483
+ * @class ITHit.WebDAV.Client.Exceptions.NotFoundException
484
+ * @extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException
485
+ */
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
+ }/**
512
+ * Precondition failed. Initializes a new instance of the PreconditionFailedException class with a specified error
513
+ * message, a reference to the inner exception that is the cause of this exception, href of the item and multistatus
514
+ * response with error details.
515
+ * @api
516
+ * @class ITHit.WebDAV.Client.Exceptions.PreconditionFailedException
517
+ * @extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException
518
+ */
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
+ }/**
545
+ * The method could not be performed on the resource because the requested action depended on another action
546
+ * and that action failed. Initializes a new instance of the DependencyFailedException class with a specified
547
+ * error message, a reference to the inner exception that is the cause of this exception, href of the item
548
+ * and multistatus response caused the error.
549
+ * @api
550
+ * @class ITHit.WebDAV.Client.Exceptions.DependencyFailedException
551
+ * @extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException
552
+ */
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
+ }/**
579
+ * Insufficient storage exception. Initializes a new instance of the InsufficientStorageException class with
580
+ * a specified error message, a reference to the inner exception that is the cause of this exception, href of
581
+ * the item and error response caused the error.
582
+ * @api
583
+ * @class ITHit.WebDAV.Client.Exceptions.InsufficientStorageException
584
+ * @extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException
585
+ */
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
+ }/**
612
+ * Quota not exceeded exception. Initializes a new instance of the QuotaNotExceededException class with a
613
+ * specified error message, a reference to the inner exception that is the cause of this exception, href of
614
+ * the item and error response caused the error.
615
+ * @api
616
+ * @class ITHit.WebDAV.Client.Exceptions.QuotaNotExceededException
617
+ * @extends ITHit.WebDAV.Client.Exceptions.InsufficientStorageException
618
+ */
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
+ }/**
645
+ * Sufficient disk space exception. Initializes a new instance of the SufficientDiskSpaceException class with
646
+ * a specified error message, a reference to the inner exception that is the cause of this exception, href of
647
+ * the item and error response caused the error.
648
+ * @api
649
+ * @class ITHit.WebDAV.Client.Exceptions.SufficientDiskSpaceException
650
+ * @extends ITHit.WebDAV.Client.Exceptions.InsufficientStorageException
651
+ */
652
+ class SufficientDiskSpaceException extends ITHit.WebDAV.Client.Exceptions.InsufficientStorageException {
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
+ /**
689
+ * Name of the property.
690
+ * @api
691
+ * @type {string}
692
+ */
693
+ Name: string
694
+ /**
695
+ * Namespace of the property.
696
+ * @api
697
+ * @type {string}
698
+ */
699
+ NamespaceUri: string
700
+ /**
701
+ * Returns string representation of current property name.
702
+ * @api
703
+ * @returns {string} String representation of current property name.
704
+ */
705
+ toString(): string;
706
+ }/**
707
+ * Structure that describes HTTP response's status.
708
+ * @api
709
+ * @class ITHit.WebDAV.Client.HttpStatus
710
+ */
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 {
720
+ /**
721
+ * No status defined.
722
+ * @api
723
+ * @type {ITHit.WebDAV.Client.HttpStatus}
724
+ */
725
+ static None: ITHit.WebDAV.Client.HttpStatus
726
+ None: ITHit.WebDAV.Client.HttpStatus
727
+ /**
728
+ * The request requires user authentication.
729
+ * @api
730
+ * @type {ITHit.WebDAV.Client.HttpStatus}
731
+ */
732
+ static Unauthorized: ITHit.WebDAV.Client.HttpStatus
733
+ Unauthorized: ITHit.WebDAV.Client.HttpStatus
734
+ /**
735
+ * The request has succeeded.
736
+ * @api
737
+ * @type {ITHit.WebDAV.Client.HttpStatus}
738
+ */
739
+ static OK: ITHit.WebDAV.Client.HttpStatus
740
+ OK: ITHit.WebDAV.Client.HttpStatus
741
+ /**
742
+ * The request has been fulfilled and resulted in a new resource being created.
743
+ * @api
744
+ * @type {ITHit.WebDAV.Client.HttpStatus}
745
+ */
746
+ static Created: ITHit.WebDAV.Client.HttpStatus
747
+ Created: ITHit.WebDAV.Client.HttpStatus
748
+ /**
749
+ * The server has fulfilled the request but does not need to return an entity-body, and might want to
750
+ * return updated meta information.
751
+ * @api
752
+ * @type {ITHit.WebDAV.Client.HttpStatus}
753
+ */
754
+ static NoContent: ITHit.WebDAV.Client.HttpStatus
755
+ NoContent: ITHit.WebDAV.Client.HttpStatus
756
+ /**
757
+ * The server has fulfilled the partial GET request for the resource.
758
+ * @api
759
+ * @type {ITHit.WebDAV.Client.HttpStatus}
760
+ */
761
+ static PartialContent: ITHit.WebDAV.Client.HttpStatus
762
+ PartialContent: ITHit.WebDAV.Client.HttpStatus
763
+ /**
764
+ * This status code provides status for multiple independent operations.
765
+ * @api
766
+ * @type {ITHit.WebDAV.Client.HttpStatus}
767
+ */
768
+ static MultiStatus: ITHit.WebDAV.Client.HttpStatus
769
+ MultiStatus: ITHit.WebDAV.Client.HttpStatus
770
+ /**
771
+ * This status code is used instead if 302 redirect. This is because 302 code is processed automatically
772
+ * and there is no way to process redirect to login page.
773
+ * @api
774
+ * @type {ITHit.WebDAV.Client.HttpStatus}
775
+ */
776
+ static Redirect: ITHit.WebDAV.Client.HttpStatus
777
+ Redirect: ITHit.WebDAV.Client.HttpStatus
778
+ /**
779
+ * The request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat
780
+ * the request without modifications.
781
+ * @api
782
+ * @type {ITHit.WebDAV.Client.HttpStatus}
783
+ */
784
+ static BadRequest: ITHit.WebDAV.Client.HttpStatus
785
+ BadRequest: ITHit.WebDAV.Client.HttpStatus
786
+ /**
787
+ * The server has not found anything matching the Request-URI.
788
+ * @api
789
+ * @type {ITHit.WebDAV.Client.HttpStatus}
790
+ */
791
+ static NotFound: ITHit.WebDAV.Client.HttpStatus
792
+ NotFound: ITHit.WebDAV.Client.HttpStatus
793
+ /**
794
+ * The method specified in the Request-Line is not allowed for the resource identified by the Request-URI.
795
+ * @api
796
+ * @type {ITHit.WebDAV.Client.HttpStatus}
797
+ */
798
+ static MethodNotAllowed: ITHit.WebDAV.Client.HttpStatus
799
+ MethodNotAllowed: ITHit.WebDAV.Client.HttpStatus
800
+ /**
801
+ * The precondition given in one or more of the request-header fields evaluated to false when it was tested
802
+ * on the server.
803
+ * @api
804
+ * @type {ITHit.WebDAV.Client.HttpStatus}
805
+ */
806
+ static PreconditionFailed: ITHit.WebDAV.Client.HttpStatus
807
+ PreconditionFailed: ITHit.WebDAV.Client.HttpStatus
808
+ /**
809
+ * The source or destination resource of a method is locked.
810
+ * @api
811
+ * @type {ITHit.WebDAV.Client.HttpStatus}
812
+ */
813
+ static Locked: ITHit.WebDAV.Client.HttpStatus
814
+ Locked: ITHit.WebDAV.Client.HttpStatus
815
+ /**
816
+ * The method could not be performed on the resource because the requested action depended on another
817
+ * action and that action failed.
818
+ * @api
819
+ * @type {ITHit.WebDAV.Client.HttpStatus}
820
+ */
821
+ static DependencyFailed: ITHit.WebDAV.Client.HttpStatus
822
+ DependencyFailed: ITHit.WebDAV.Client.HttpStatus
823
+ /**
824
+ * The server understood the request, but is refusing to fulfill it.
825
+ * @api
826
+ * @type {ITHit.WebDAV.Client.HttpStatus}
827
+ */
828
+ static Forbidden: ITHit.WebDAV.Client.HttpStatus
829
+ Forbidden: ITHit.WebDAV.Client.HttpStatus
830
+ /**
831
+ * The request could not be completed due to a conflict with the current state of the resource.
832
+ * @api
833
+ * @type {ITHit.WebDAV.Client.HttpStatus}
834
+ */
835
+ static Conflict: ITHit.WebDAV.Client.HttpStatus
836
+ Conflict: ITHit.WebDAV.Client.HttpStatus
837
+ /**
838
+ * The server does not support the functionality required to fulfill the request.
839
+ * @api
840
+ * @type {ITHit.WebDAV.Client.HttpStatus}
841
+ */
842
+ static NotImplemented: ITHit.WebDAV.Client.HttpStatus
843
+ NotImplemented: ITHit.WebDAV.Client.HttpStatus
844
+ /**
845
+ * The server, while acting as a gateway or proxy, received an invalid response from the upstream
846
+ * server it accessed in attempting to fulfill the request.
847
+ * @api
848
+ * @type {ITHit.WebDAV.Client.HttpStatus}
849
+ */
850
+ static BadGateway: ITHit.WebDAV.Client.HttpStatus
851
+ BadGateway: ITHit.WebDAV.Client.HttpStatus
852
+ /**
853
+ * The method could not be performed on the resource because the server is unable to store the
854
+ * representation needed to successfully complete the request.
855
+ * @api
856
+ * @type {ITHit.WebDAV.Client.HttpStatus}
857
+ */
858
+ static InsufficientStorage: ITHit.WebDAV.Client.HttpStatus
859
+ InsufficientStorage: ITHit.WebDAV.Client.HttpStatus
860
+ /**
861
+ * @api
862
+ * @type {number}
863
+ */
864
+ Code: number
865
+ /**
866
+ * @api
867
+ * @type {string}
868
+ */
869
+ Description: string
870
+ /**
871
+ * Indicates whether the current HttpStatus structure is equal to another HttpStatus structure.
872
+ * @api
873
+ * @param {ITHit.WebDAV.Client.HttpStatus} oHttpStatus HttpStatus object to compare.
874
+ * @returns {boolean} True if the current object is equal to the other parameter; otherwise, false.
875
+ */
876
+ Equals(oHttpStatus: ITHit.WebDAV.Client.HttpStatus): boolean;
877
+ /**
878
+ * Returns true if status is successful for Create operation.
879
+ * @api
880
+ * @returns {boolean} Returns true if status is successful for Create operation.
881
+ */
882
+ IsCreateOk(): boolean;
883
+ /**
884
+ * Returns true if status is successful for Delete operation.
885
+ * @api
886
+ * @returns {boolean} Returns true if status is successful for Delete operation.
887
+ */
888
+ IsDeleteOk(): boolean;
889
+ /**
890
+ * Returns true if status is successful.
891
+ * @api
892
+ * @returns {boolean} Returns true if status is successful.
893
+ */
894
+ IsOk(): boolean;
895
+ /**
896
+ * Returns true if status is successful for Copy or Move operation.
897
+ * @api
898
+ * @returns {boolean} Returns true if status is successful for Copy or Move operation.
899
+ */
900
+ IsCopyMoveOk(): boolean;
901
+ /**
902
+ * Returns true if status is successful for Get operation.
903
+ * @api
904
+ * @returns {boolean} Returns true if status is successful for Get operation.
905
+ */
906
+ IsGetOk(): boolean;
907
+ /**
908
+ * Returns true if status is successful for Put operation.
909
+ * @api
910
+ * @returns {boolean} Returns true if status is successful for Put operation.
911
+ */
912
+ IsPutOk(): boolean;
913
+ /**
914
+ * Returns true if status is successful for Unlock operation.
915
+ * @api
916
+ * @returns {boolean} Returns true if status is successful for Unlock operation.
917
+ */
918
+ IsUnlockOk(): boolean;
919
+ /**
920
+ * Returns true if status is successful for Head operation.
921
+ * @api
922
+ * @returns {boolean} Returns true if status is successful for Head operation.
923
+ */
924
+ IsHeadOk(): boolean;
925
+ /**
926
+ * Returns true if status is successful for Proppatch operation.
927
+ * @api
928
+ * @returns {boolean} Returns true if status is successful for Proppatch operation.
929
+ */
930
+ IsUpdateOk(): boolean;
931
+ /**
932
+ * Returns true if status is successful.
933
+ * @api
934
+ * @returns {boolean} Returns true if status is successful.
935
+ */
936
+ IsSuccess(): boolean;
937
+ }/**
938
+ * Initializes new string valued property.
939
+ * @api
940
+ * @classdesc Represents custom property exposed by WebDAV hierarchy items.
941
+ * @constructs
942
+ * @param {string|ITHit.WebDAV.Client.PropertyName} sName Name of the property.
943
+ * @param {string} [sValue] Property value.
944
+ * @param {string} [sNamespace] Namespace of the property.
945
+ * @throws ITHit.Exception
946
+ */
947
+ class Property {
948
+ constructor(sName: string | ITHit.WebDAV.Client.PropertyName, sValue?: string | null, sNamespace?: string | null);
949
+ /**
950
+ * Property Name.
951
+ * @api
952
+ * @type {string|ITHit.WebDAV.Client.PropertyName}
953
+ */
954
+ Name: string | ITHit.WebDAV.Client.PropertyName
955
+ /**
956
+ * Property value.
957
+ * @api
958
+ * @type {*}
959
+ */
960
+ Value: any
961
+ /**
962
+ * String value of the custom property.
963
+ * @api
964
+ * @returns {string} String value of the custom property.
965
+ */
966
+ StringValue(): string;
967
+ }/**
968
+ * Instance of this class is passed to callback function. It provides information about success or failure of
969
+ * the operation as well as you will use it to get the results of the asynchronous call.
970
+ * @api
971
+ * @class ITHit.WebDAV.Client.AsyncResult
972
+ */
973
+ class AsyncResult {
974
+ /**
975
+ * Result value. Can be any type, each method may put there appropriate object which before was returned directly.
976
+ * Null if request was unsuccessful.
977
+ * @api
978
+ * @type {*}
979
+ */
980
+ Result: any
981
+ /**
982
+ * Flag of either async request result was successful or not.
983
+ * @api
984
+ * @type {boolean}
985
+ */
986
+ IsSuccess: boolean
987
+ /**
988
+ * Error (Exception) object. Describes the type of error that occurred. Null if request was successful.
989
+ * @api
990
+ * @type {ITHit.WebDAV.Client.Exceptions.WebDavException|Error|null}
991
+ */
992
+ Error: ITHit.WebDAV.Client.Exceptions.WebDavException | Error | null
993
+ /**
994
+ * Status of HTTP response retrieved either from Result or Error objects
995
+ * @api
996
+ * @type {ITHit.WebDAV.Client.HttpStatus}
997
+ */
998
+ Status: ITHit.WebDAV.Client.HttpStatus
999
+ }/**
1000
+ * Initializes new instance of OrderProperty.
1001
+ * @api
1002
+ * @classdesc WebDAV order Property.
1003
+ * @constructs
1004
+ * @param {ITHit.WebDAV.Client.PropertyName} sProperty Property name.
1005
+ * @param {boolean} sAscending Order direction.
1006
+ */
1007
+ class OrderProperty {
1008
+ constructor(sProperty: ITHit.WebDAV.Client.PropertyName, sAscending: boolean);
1009
+ /**
1010
+ * Property name.
1011
+ * @api
1012
+ * @type {ITHit.WebDAV.Client.PropertyName}
1013
+ */
1014
+ Property: ITHit.WebDAV.Client.PropertyName
1015
+ /**
1016
+ * Order direction.
1017
+ * @api
1018
+ * @type {boolean}
1019
+ */
1020
+ Ascending: boolean
1021
+ /**
1022
+ * Returns string representation of current property name.
1023
+ * @api
1024
+ * @returns {string} String representation of current property name.
1025
+ */
1026
+ toString(): string;
1027
+ }/**
1028
+ * Enumeration of the item (Resource or Folder).
1029
+ * @api
1030
+ * @enum {string}
1031
+ * @class ITHit.WebDAV.Client.ResourceType
1032
+ */
1033
+ enum ResourceType{
1034
+ Folder = "Folder",
1035
+ File = "Resource",
1036
+ }/**
1037
+ * List of WebDAV properties.
1038
+ * @api
1039
+ * @class ITHit.WebDAV.Client.PropertyList
1040
+ * @extends Array
1041
+ */
1042
+ class PropertyList extends Array {
1043
+ /**
1044
+ * Returns true if the with the specified property name and namespace exists in property list.
1045
+ * Returns false if does not exist.
1046
+ * @api
1047
+ * @param {ITHit.WebDAV.Client.PropertyName} oPropName Property name to search for.
1048
+ * @param {boolean} [bIgnoreCase] Specifies if the search is case sensitive or case insensitive.
1049
+ * @returns {boolean}
1050
+ */
1051
+ Has(oPropName: ITHit.WebDAV.Client.PropertyName, bIgnoreCase?: boolean | null): boolean;
1052
+ /**
1053
+ * Gets property value found by property name and namespace. Returns null if property with such name does not exist.
1054
+ * @api
1055
+ * @param {ITHit.WebDAV.Client.PropertyName} oPropName Property name to search for.
1056
+ * @param {boolean} [bIgnoreCase] Specifies if the search is case sensitive or case insensitive.
1057
+ * @returns {(string|null)} String representing property value or null if property with such name does not exist.
1058
+ */
1059
+ Find(oPropName: ITHit.WebDAV.Client.PropertyName, bIgnoreCase?: boolean | null): string | null;
1060
+ }/**
1061
+ * Represents information about errors occurred in different elements.
1062
+ * @api
1063
+ * @class ITHit.WebDAV.Client.Multistatus
1064
+ */
1065
+ class Multistatus {
1066
+ /**
1067
+ * Gets the generic description, if available.
1068
+ * @api
1069
+ * @type {string}
1070
+ */
1071
+ Description: string
1072
+ /**
1073
+ * Array of the errors returned by server.
1074
+ * @api
1075
+ * @type {ITHit.WebDAV.Client.MultistatusResponse[]}
1076
+ */
1077
+ Responses: ITHit.WebDAV.Client.MultistatusResponse[]
1078
+ }/**
1079
+ * Represents error occurred in one element.
1080
+ * @api
1081
+ * @class ITHit.WebDAV.Client.MultistatusResponse
1082
+ */
1083
+ class MultistatusResponse {
1084
+ /**
1085
+ * Request href
1086
+ * @api
1087
+ * @type {string}
1088
+ */
1089
+ Href: string
1090
+ /**
1091
+ * Array of the errors returned by server.
1092
+ * @api
1093
+ * @type {string}
1094
+ */
1095
+ Description: string
1096
+ /**
1097
+ * HTTP Status of the operation.
1098
+ * @api
1099
+ * @type {ITHit.WebDAV.Client.HttpStatus}
1100
+ */
1101
+ Status: ITHit.WebDAV.Client.HttpStatus
1102
+ }/**
1103
+ * Provides means for finding which properties failed to update.
1104
+ * @api
1105
+ * @class ITHit.WebDAV.Client.PropertyMultistatusResponse
1106
+ * @extends ITHit.WebDAV.Client.MultistatusResponse
1107
+ */
1108
+ class PropertyMultistatusResponse extends ITHit.WebDAV.Client.MultistatusResponse {
1109
+ /**
1110
+ * Name of the property, if element is property. Otherwise null.
1111
+ * @api
1112
+ * @type {ITHit.WebDAV.Client.PropertyName}
1113
+ */
1114
+ PropertyName: ITHit.WebDAV.Client.PropertyName
1115
+ /**
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",
1143
+ }/**
1144
+ * Represents pair of resource uri - lock token. Is used to access locked resources.
1145
+ * @api
1146
+ * @class ITHit.WebDAV.Client.LockUriTokenPair
1147
+ */
1148
+ class LockUriTokenPair {
1149
+ /**
1150
+ * Path to the locked resource.
1151
+ * @api
1152
+ * @type {string}
1153
+ */
1154
+ Href: string
1155
+ /**
1156
+ * Lock token.
1157
+ * @api
1158
+ * @type {string}
1159
+ */
1160
+ LockToken: string
1161
+ }/**
1162
+ * Information about lock set on an item.
1163
+ * @api
1164
+ * @class ITHit.WebDAV.Client.LockInfo
1165
+ */
1166
+ class LockInfo {
1167
+ /**
1168
+ * Scope of the lock.
1169
+ * @api
1170
+ * @type {ITHit.WebDAV.Client.LockScope}
1171
+ */
1172
+ LockScope: ITHit.WebDAV.Client.LockScope
1173
+ /**
1174
+ * Whether lock is set on item's children.
1175
+ * @api
1176
+ * @type {boolean}
1177
+ */
1178
+ Deep: boolean
1179
+ /**
1180
+ * Timeout until lock expires.
1181
+ * @api
1182
+ * @type {number}
1183
+ */
1184
+ TimeOut: number
1185
+ /**
1186
+ * Owner's name.
1187
+ * @api
1188
+ * @type {string}
1189
+ */
1190
+ Owner: string
1191
+ /**
1192
+ * Lock token.
1193
+ * @api
1194
+ * @type {ITHit.WebDAV.Client.LockUriTokenPair}
1195
+ */
1196
+ LockToken: ITHit.WebDAV.Client.LockUriTokenPair
1197
+ }/**
1198
+ * Options of an item, described by supported HTTP extensions.
1199
+ * @api
1200
+ * @class ITHit.WebDAV.Client.OptionsInfo
1201
+ */
1202
+ class OptionsInfo {
1203
+ /**
1204
+ * Features supported by WebDAV server. See Features Enumeration {@link ITHit.WebDAV.Client.Features}.
1205
+ * @api
1206
+ * @type {number}
1207
+ */
1208
+ Features: number
1209
+ }/**
1210
+ * Represents features supported by WebDAV server.
1211
+ * @api
1212
+ * @enum {number}
1213
+ * @class ITHit.WebDAV.Client.Features
1214
+ */
1215
+ class Features {
1216
+ /**
1217
+ * WebDAV Class 1 compliant item.
1218
+ * Class 1 items does not support locking.
1219
+ * @api
1220
+ * @readonly
1221
+ * @type {number}
1222
+ */
1223
+ static readonly Class1: number
1224
+ readonly Class1: number
1225
+ /**
1226
+ * WebDAV Class 2 compliant item.
1227
+ * Class 2 items support locking.
1228
+ * @api
1229
+ * @readonly
1230
+ * @type {number}
1231
+ */
1232
+ static readonly Class2: number
1233
+ readonly Class2: number
1234
+ /**
1235
+ * WebDAV Class 3 compliant item.
1236
+ * @api
1237
+ * @readonly
1238
+ * @type {number}
1239
+ */
1240
+ static readonly Class3: number
1241
+ readonly Class3: number
1242
+ /**
1243
+ * WevDAV paging compliant item.
1244
+ * @api
1245
+ * @readonly
1246
+ * @type {number}
1247
+ */
1248
+ static readonly VersionControl: number
1249
+ readonly VersionControl: number
1250
+ /**
1251
+ * DeltaV version-control compliant item.
1252
+ * @api
1253
+ * @readonly
1254
+ * @type {number}
1255
+ */
1256
+ static readonly Paging: number
1257
+ readonly Paging: number
1258
+ /**
1259
+ * Checkout-in-place item support check out, check in and uncheckout operations.
1260
+ * @api
1261
+ * @readonly
1262
+ * @type {number}
1263
+ */
1264
+ static readonly CheckoutInPlace: number
1265
+ readonly CheckoutInPlace: number
1266
+ /**
1267
+ * DeltaV Version History compliant item.
1268
+ * @api
1269
+ * @readonly
1270
+ * @type {number}
1271
+ */
1272
+ static readonly VersionHistory: number
1273
+ readonly VersionHistory: number
1274
+ /**
1275
+ * DeltaV Update compliant item.
1276
+ * @api
1277
+ * @readonly
1278
+ * @type {number}
1279
+ */
1280
+ static readonly Update: number
1281
+ readonly Update: number
1282
+ /**
1283
+ * The item supports resumable upload.
1284
+ * @api
1285
+ * @readonly
1286
+ * @type {number}
1287
+ */
1288
+ static readonly ResumableUpload: number
1289
+ readonly ResumableUpload: number
1290
+ /**
1291
+ * The item supports resumable download.
1292
+ * @api
1293
+ * @readonly
1294
+ * @type {number}
1295
+ */
1296
+ static readonly ResumableDownload: number
1297
+ readonly ResumableDownload: number
1298
+ /**
1299
+ * The item supports search.
1300
+ * @api
1301
+ * @readonly
1302
+ * @type {number}
1303
+ */
1304
+ static readonly Dasl: number
1305
+ readonly Dasl: number
1306
+ /**
1307
+ * The item supports GSuite editing.
1308
+ * @api
1309
+ * @readonly
1310
+ * @type {number}
1311
+ */
1312
+ static readonly GSuite: number
1313
+ readonly GSuite: number
1314
+ }/**
1315
+ * Represents one WebDAV item (file, folder or lock-null).
1316
+ * @api
1317
+ * @class ITHit.WebDAV.Client.HierarchyItem
1318
+ */
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
+ }/**
1551
+ * The class represents set of extensions to be edited with Microsoft Office.
1552
+ * @api
1553
+ * @class ITHit.WebDAV.Client.MsOfficeEditExtensions
1554
+ * @examplecode ITHit.WebDAV.Client.Tests.DocManager.MsOfficeEditExtensions.EditRtfDocumentWithWord
1555
+ * @examplecode ITHit.WebDAV.Client.TSExamples.DocManager.MsOfficeEditExtensions.EditRtfDocumentWithWord
1556
+ */
1557
+ class MsOfficeEditExtensions {
1558
+ /**
1559
+ * Array of file extensions which are opened with Microsoft Access.
1560
+ * @api
1561
+ * @type {Array.<string>}
1562
+ */
1563
+ static Access: string[]
1564
+ Access: string[]
1565
+ /**
1566
+ * Array of file extensions which are opened with Microsoft Infopath.
1567
+ * @api
1568
+ * @type {Array.<string>}
1569
+ */
1570
+ static Infopath: string[]
1571
+ Infopath: string[]
1572
+ /**
1573
+ * Array of file extensions which are opened with Microsoft Excel.
1574
+ * @api
1575
+ * @type {Array.<string>}
1576
+ */
1577
+ static Excel: string[]
1578
+ Excel: string[]
1579
+ /**
1580
+ * Array of file extensions which are opened with Microsoft Powerpoint.
1581
+ * @api
1582
+ * @type {Array.<string>}
1583
+ */
1584
+ static Powerpoint: string[]
1585
+ Powerpoint: string[]
1586
+ /**
1587
+ * Array of file extensions which are opened with Microsoft Project.
1588
+ * @api
1589
+ * @type {Array.<string>}
1590
+ */
1591
+ static Project: string[]
1592
+ Project: string[]
1593
+ /**
1594
+ * Array of file extensions which are opened with Microsoft Publisher.
1595
+ * @api
1596
+ * @type {Array.<string>}
1597
+ */
1598
+ static Publisher: string[]
1599
+ Publisher: string[]
1600
+ /**
1601
+ * Array of file extensions which are opened with Microsoft Visio.
1602
+ * @api
1603
+ * @type {Array.<string>}
1604
+ */
1605
+ static Visio: string[]
1606
+ Visio: string[]
1607
+ /**
1608
+ * Array of file extensions which are opened with Microsoft Word.
1609
+ * @api
1610
+ * @type {Array.<string>}
1611
+ */
1612
+ static Word: string[]
1613
+ Word: string[]
1614
+ }/**
1615
+ * This class provides methods for opening documents for editing directly from server and saving back to server
1616
+ * without download and upload steps. This includes editing Microsoft Office documents as well as any other file
1617
+ * types and works on Windows, Mac OS X and Linux.
1618
+ * @api
1619
+ * @class ITHit.WebDAV.Client.DocManager
1620
+ */
1621
+ namespace DocManager{
1622
+ /**
1623
+ * Gets file names of the protocol installer depending on OS.
1624
+ * @api
1625
+ * @return {Array.<string>} An array with file names of the protocol installer.
1626
+ */
1627
+ function GetProtocolInstallFileNames(): string[];
1628
+ /**
1629
+ * Returns true if protocol application installer is supported for the OS on which this function is called, false - otherwise.
1630
+ * @api
1631
+ * @return {boolean} True if protocol application installer is supported for the OS on which this function is called.
1632
+ */
1633
+ function IsDavProtocolSupported(): boolean;
1634
+ /**
1635
+ * <p>Mounts folder in file system and opens it in default OS file manger. Requests protocol installation if folder opening protocol is not installed.</p>
1636
+ * <i class="optional">The following functionality is supported in v3 Beta and later only:</i>
1637
+ * <p>
1638
+ * This function supports both challenge-response authentication (Basic, Digest, NTLM, Kerberos) and cookies authentication.
1639
+ * If <code>'None'</code> is specified in the <code>sSearchIn</code> parameter the challenge-response authentication is used, otherwise cookies authentication is used.
1640
+ * </p>
1641
+ * @api
1642
+ * @param {string} sFolderUrl URL of the folder to open in OS file manager. Must be a full URL including the domain name.
1643
+ * @param {string} [sMountUrl] URL to mount file system to before opening the folder. Usually this is your WebDAV server root folder. If this parameter is not specified file system will be mounted to the folder in which document is located.
1644
+ * @param {function} [errorCallback] Function to call if file manager opening has failed. Typically you will request the protocol installation in this callback.
1645
+ * If not specified a default message offering protocol installation will be displayed.
1646
+ * @param {string} [reserved] Reserved for future use.
1647
+ * @param {string} [sSearchIn] <span class="optional">v3 Beta and later only.</span> Indicates cookies authentication. Allowed values are:
1648
+ * <ul>
1649
+ * <li><code>'Current'</code> - Copies cookies from web browser in which this script is running.</li>
1650
+ * <li><code>'None'</code> - do not search or copy any cookies.</li>
1651
+ * </ul>
1652
+ * Default is <code>'None'</code>.
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.
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.
1655
+ */
1656
+ function OpenFolderInOsFileManager(sFolderUrl: string, sMountUrl?: string | null, errorCallback?: Function | null, reserved?: string | null, sSearchIn?: string | null, sCookieNames?: string | null, sLoginUrl?: string | null): void;
1657
+ /**
1658
+ * Extracts extension and returns true if URL points to Microsoft Office Document.
1659
+ * @api
1660
+ * @param {string} sDocumentUrl URL of the document.
1661
+ * @return {boolean} True if URL points to Microsoft Office Document.
1662
+ */
1663
+ function IsMicrosoftOfficeDocument(sDocumentUrl: string): boolean;
1664
+ /**
1665
+ * Opens Microsoft Office document using protocol. This method does not offer protocol installation if protocol is not found. Microsoft Office must be installed on a client machine.
1666
+ * @api
1667
+ * @param {string} sDocumentUrl URL of the document to edit. This must be a Microsoft Office document. Must be a full URL including the domain name.
1668
+ */
1669
+ function MicrosoftOfficeEditDocument(sDocumentUrl: string): void;
1670
+ /**
1671
+ * <p>Opens document for editing. In case of Microsoft Office documents, it will try to use Microsoft Office protocols first.
1672
+ * If Microsoft Office protocols are not found it will use davX: protocol and prompt to install it if not found.</p>
1673
+ * <p>This function supports only challenge-response authentication (Basic, Digest, NTLM, Kerberos).
1674
+ * You can also use it to open MS Office documents from servers with MS-OFBA authentication.</p>
1675
+ * <p>This function does <b>NOT</b> support cookies authentication. If your server is using cookies authentication use the <code>DavProtocolEditDocument()</code> function instead.</p>
1676
+ * @example
1677
+ * &lt;!DOCTYPE html&gt;
1678
+ * &lt;html&gt;
1679
+ * &lt;head&gt;
1680
+ * &lt;meta charset="utf-8" /&gt;
1681
+ * &lt;script type="text/javascript" src="ITHitWebDAVClient.js" &gt;&lt;/script&gt;
1682
+ * &lt;/head&gt;
1683
+
1684
+ * &lt;body&gt;
1685
+ * &lt;script type="text/javascript"&gt;
1686
+ * function edit() {
1687
+ * ITHit.WebDAV.Client.DocManager.EditDocument("http://localhost:87654/folder/file.ext", "http://localhost:87654/", errorCallback);
1688
+ * }
1689
+ *
1690
+ * function errorCallback() {
1691
+ * var installerFilePath = "/Plugins/" + ITHit.WebDAV.Client.DocManager.GetProtocolInstallFileNames()[0];
1692
+ *
1693
+ * if (confirm("Opening this type of file requires a protocol installation. Select OK to download the protocol installer.")){
1694
+ * window.open(installerFilePath);
1695
+ * }
1696
+ * }
1697
+ * &lt;/script&gt;
1698
+ * &lt;input type="button" value="Edit Document" onclick="edit()" /&gt;
1699
+ * &lt;/body&gt;
1700
+ * &lt;/html&gt;
1701
+ * @api
1702
+ * @param {string} sDocumentUrl URL of the document to open for editing from server. Must be a full URL including the domain name. Unlike <code>DavProtocolEditDocument()</code> function, this function supports only one document URL in this parameter.
1703
+ * @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.
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.
1705
+ * If not specified a default message offering protocol installation will be displayed.
1706
+ */
1707
+ function EditDocument(sDocumentUrl: string, sMountUrl?: string | null, errorCallback?: Function | null): void;
1708
+ /**
1709
+ * Extracts extension and returns true if the document can be edited in G Suite editor or document preview generated via G Suite.
1710
+ * @api
1711
+ * @param {string} sDocumentUrl URL of the document.
1712
+ * @return {boolean} True if URL points to GSuite Editor.
1713
+ */
1714
+ function IsGSuiteDocument(sDocumentUrl: string): boolean;
1715
+ /**
1716
+ * <p>Edit MS Office document with G Suite Online Editor.</p>
1717
+ * @api
1718
+ * @param {string} sDocumentUrl URL of the document to open for editing from server. Must be a full URL including the domain name.
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.
1720
+ * @param {function} [errorCallback] Function to call if document opening failed.
1721
+ */
1722
+ function GSuiteEditDocument(sDocumentUrl: string, oContainerDomElement: any, errorCallback?: Function | null): void;
1723
+ /**
1724
+ * <p>Preview MS Office document with G Suite Online Tool.</p>
1725
+ * @api
1726
+ * @param {string} sDocumentUrl URL of the document to open for preview. Must be a full URL including the domain name.
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.
1728
+ * @param {function} [errorCallback] Function to call if document opening failed.
1729
+ */
1730
+ function GSuitePreviewDocument(sDocumentUrl: string, oContainerDomElement: any, errorCallback?: Function | null): void;
1731
+ /**
1732
+ * <p>Opens document for editing or printing using davX: protocol and prompts to install the protocol it if not found.</p>
1733
+ * <i class="optional">The following functionality is supported in v3 Beta and later only:</i>
1734
+ * <p>
1735
+ * This function supports both challenge-response authentication (Basic, Digest, NTLM, Kerberos) and cookies authentication.
1736
+ * If <code>'None'</code> is specified in the <code>sSearchIn</code> parameter the challenge-response authentication is used, otherwise cookies authentication is used.
1737
+ * </p>
1738
+ * @example
1739
+ * &lt;!DOCTYPE html&gt;
1740
+ * &lt;html&gt;
1741
+ * &lt;head&gt;
1742
+ * &lt;meta charset="utf-8" /&gt;
1743
+ * &lt;script type="text/javascript" src="ITHitWebDAVClient.js" &gt;&lt;/script&gt;
1744
+ * &lt;/head&gt;
1745
+ * &lt;body&gt;
1746
+ * &lt;script type="text/javascript"&gt;
1747
+ * function edit() {
1748
+ * ITHit.WebDAV.Client.DocManager.DavProtocolEditDocument(
1749
+ * 'http://localhost:87654/folder/file.ext', // Document URL(s)
1750
+ * 'http://localhost:87654/', // Mount URL
1751
+ * errorCallback, // Function to call if protocol app is not installed
1752
+ * null, // Reserved
1753
+ * 'Current', // Which browser to copy cookies from: 'Current', 'None'
1754
+ * '.AspNet.ApplicationCookie', // Cookie(s) to copy.
1755
+ * '/Account/Login', // URL to navigate to if any cookie from the list is not found.
1756
+ * 'Edit' // Command to execute: 'Edit', 'OpenWith', 'Print'
1757
+ * );
1758
+ * }
1759
+ *
1760
+ * function errorCallback() {
1761
+ * var installerFilePath = "/Plugins/" + ITHit.WebDAV.Client.DocManager.GetProtocolInstallFileNames()[0];
1762
+ *
1763
+ * if (confirm("Opening this type of file requires a protocol installation. Select OK to download the protocol installer.")){
1764
+ * window.open(installerFilePath);
1765
+ * }
1766
+ * }
1767
+ * &lt;/script&gt;
1768
+ * &lt;input type="button" value="Edit Document" onclick="edit()" /&gt;
1769
+ * &lt;/body&gt;
1770
+ * &lt;/html&gt;
1771
+ * @api
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.
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.
1774
+ * @param {function} [errorCallback] Function to call if document opening failed. Typically you will request the protocol installation in this callback.
1775
+ * If not specified a default message offering protocol installation will be displayed.
1776
+ * @param {string} [reserved] Reserved for future use.
1777
+ * @param {string} [sSearchIn] <span class="optional">v3 Beta and later only.</span> Indicates cookies authentication. Supported options are:
1778
+ * <ul>
1779
+ * <li><code>'Current'</code> - Copies cookies from web browser in which this script is running.</li>
1780
+ * <li><code>'None'</code> - do not search or copy any cookies.</li>
1781
+ * </ul>
1782
+ * Default is <code>'None'</code>.
1783
+ * @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.
1784
+ * @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.
1785
+ * @param {string} [sCommand] <span class="optional">v3 Beta and later only.</span> Command to use when opening the document. Supported options are:
1786
+ * <ul>
1787
+ * <li> <code>null</code> - Chooses an appropriate verb to open a document in the associated application.
1788
+ * <li> <code>'Edit'</code> - Opens a document for editing.
1789
+ * <li> <code>'Open'</code> - Opens a document in the associated application. Not applicable for some applications.
1790
+ * <li> <code>'OpenWith'</code> - Show system 'Open With' dialog to select application to be used to open a document. This option is supported on Windows only.
1791
+ * <li> <code>'Print'</code> - Prints a document. The application that prints a document is running in a minimized state and automatically closes if printing is successful. If printing fails, the application remains open. To print multiple documents, pass a list of documents as a first parameter. This option is supported on Windows only.
1792
+ * </ul>
1793
+ * Default is <code>null</code>.
1794
+ */
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 {
1797
+ /**
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
1832
+ * @param {string} mLockTokens Lock token for this file.
1833
+ * @param {ITHit.WebDAV.Client.ResumableUpload~CancelUploadAsyncCallback} fCallback Function to call when operation is completed.
1834
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
1835
+ */
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
1855
+ }/**
1856
+ * Represents a file on a WebDAV server.
1857
+ * @api
1858
+ * @class ITHit.WebDAV.Client.File
1859
+ * @extends ITHit.WebDAV.Client.HierarchyItem
1860
+ */
1861
+ namespace File{
1862
+ /**
1863
+ * Locks the item and upload to google drive.
1864
+ * @api
1865
+ * @param {ITHit.WebDAV.Client.Request} oRequest Current WebDAV session.
1866
+ * @param {string} sHref This item path on the server.
1867
+ * @returns {ITHit.WebDAV.Client.GEditInfo} Instance of GEditInfo.
1868
+ */
1869
+ function GEdit(oRequest: ITHit.WebDAV.Client.Request, sHref: string): ITHit.WebDAV.Client.GEditInfo;
1870
+ /**
1871
+ * Locks the item and upload to google drive.
1872
+ * @api
1873
+ * @param {ITHit.WebDAV.Client.Request} oRequest Current WebDAV session.
1874
+ * @param {string} sHref This item path on the server.
1875
+ * @param {ITHit.WebDAV.Client.File~GEditAsyncCallback} fCallback Function to call when operation is completed.
1876
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
1877
+ */
1878
+ function GEditAsync(oRequest: ITHit.WebDAV.Client.Request, sHref: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1879
+ /**
1880
+ * Removes the lock and update file.
1881
+ * @api
1882
+ * @param {ITHit.WebDAV.Client.Request} oRequest Current WebDAV session.
1883
+ * @param {string} sHref This item path on the server.
1884
+ * @param {string} [sLockToken] Identifies lock to be prolonged.
1885
+ * @throws ITHit.WebDAV.Client.Exceptions.PreconditionFailedException The item is not locked.
1886
+ * @throws ITHit.WebDAV.Client.Exceptions.NotFoundException The item doesn't exist on the server.
1887
+ * @throws ITHit.WebDAV.Client.Exceptions.WebDavException Unexpected error occurred.
1888
+ */
1889
+ function GUnlock(oRequest: ITHit.WebDAV.Client.Request, sHref: string, sLockToken?: string | null): void;
1890
+ /**
1891
+ * Removes the lock and update file.
1892
+ * @api
1893
+ * @param {ITHit.WebDAV.Client.Request} oRequest Current WebDAV session.
1894
+ * @param {string} sHref This item path on the server.
1895
+ * @param {string} sLockToken Identifies lock to be prolonged.
1896
+ * @param {string} sRevisionID Revision ID of google file.
1897
+ * @param {ITHit.WebDAV.Client.File~GUnlockAsyncCallback} fCallback Function to call when operation is completed.
1898
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
1899
+ */
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 {
1902
+ /**
1903
+ * Length of the file.
1904
+ * @api
1905
+ * @type {number}
1906
+ */
1907
+ ContentLength: number
1908
+ /**
1909
+ * Content type of the file.
1910
+ * @api
1911
+ * @type {string}
1912
+ */
1913
+ ContentType: string
1914
+ /**
1915
+ * ResumableUpload instance to manage partially failed uploads.
1916
+ * @api
1917
+ * @type {ITHit.WebDAV.Client.ResumableUpload}
1918
+ */
1919
+ ResumableUpload: ITHit.WebDAV.Client.ResumableUpload
1920
+ /**
1921
+ * Reads file content. To download only a part of a file you can specify 2 parameters in ReadContent call.
1922
+ * First parameter is the starting byte (zero-based) at witch to start content download, the second – amount
1923
+ * of bytes to be downloaded. The library will add Range header to the request in this case.
1924
+ * @api
1925
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.CreateFile.ReadContent
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
1929
+ * @param {number} iBytesFrom Start position to retrieve lBytesCount number of bytes from.
1930
+ * @param {number} iBytesCount Number of bytes to retrieve.
1931
+ * @param {ITHit.WebDAV.Client.File~ReadContentAsyncCallback} fCallback Function to call when operation is completed.
1932
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
1933
+ */
1934
+ ReadContentAsync(iBytesFrom: number, iBytesCount: number, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1935
+ /**
1936
+ * Writes file content.
1937
+ * @api
1938
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.CreateFile.OnlyWriteContent
1939
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.CreateFile.OnlyWriteContent
1940
+ * @param {string} sContent File content.
1941
+ * @param {string} sLockToken Lock token.
1942
+ * @param {string} sMimeType File mime-type.
1943
+ * @param {ITHit.WebDAV.Client.File~WriteContentAsyncCallback} fCallback Function to call when operation is completed.
1944
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
1945
+ */
1946
+ WriteContentAsync(sContent: string, sLockToken: string, sMimeType: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1947
+ /**
1948
+ * Retrieves item versions.
1949
+ * @examplecode ITHit.WebDAV.Client.Tests.Versions.GetVersions.GetVersions
1950
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Versions.GetVersions.GetVersions
1951
+ * @api
1952
+ * @param {ITHit.WebDAV.Client.File~GetVersionsAsyncCallback} fCallback Function to call when operation is completed.
1953
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
1954
+ */
1955
+ GetVersionsAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1956
+ /**
1957
+ * Update to version.
1958
+ * @examplecode ITHit.WebDAV.Client.Tests.Versions.ManageVersions.UpdateToVersion
1959
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Versions.ManageVersions.UpdateToVersion
1960
+ * @api
1961
+ * @param {string|ITHit.WebDAV.Client.Version} mVersion Href to file with version attribute or {@link ITHit.WebDAV.Client.Version} instance.
1962
+ * @param {ITHit.WebDAV.Client.File~UpdateToVersionAsyncCallback} fCallback Function to call when operation is completed.
1963
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
1964
+ */
1965
+ UpdateToVersionAsync(mVersion: string | ITHit.WebDAV.Client.Version, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1966
+ /**
1967
+ * Enables / disables version control for this file.
1968
+ * @api
1969
+ * @examplecode ITHit.WebDAV.Client.Tests.Versions.PutUnderVersion.EnableVersion
1970
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Versions.PutUnderVersion.EnableVersion
1971
+ * @param {boolean} bEnable True to enable version-control, false - to disable.
1972
+ * @param {string} mLockToken Lock token for this item.
1973
+ * @param {ITHit.WebDAV.Client.File~PutUnderVersionControlAsyncCallback} fCallback Function to call when operation is completed.
1974
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
1975
+ */
1976
+ PutUnderVersionControlAsync(bEnable: boolean, mLockToken: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
1977
+ /**
1978
+ * Current WebDAV session.
1979
+ * @api
1980
+ * @type {ITHit.WebDAV.Client.WebDavSession}
1981
+ */
1982
+ Session: ITHit.WebDAV.Client.WebDavSession
1983
+ /**
1984
+ * This item path on the server.
1985
+ * @api
1986
+ * @type {string}
1987
+ */
1988
+ Href: string
1989
+ /**
1990
+ * Most recent modification date.
1991
+ * @api
1992
+ * @type {Date}
1993
+ */
1994
+ LastModified: Date
1995
+ /**
1996
+ * User friendly item name.
1997
+ * @api
1998
+ * @type {string}
1999
+ */
2000
+ DisplayName: string
2001
+ /**
2002
+ * The date item was created.
2003
+ * @api
2004
+ * @type {Date}
2005
+ */
2006
+ CreationDate: Date
2007
+ /**
2008
+ * Type of the item (File or Folder).
2009
+ * @api
2010
+ * @type {string}
2011
+ * @see ITHit.WebDAV.Client.ResourceType
2012
+ */
2013
+ ResourceType: string
2014
+ /**
2015
+ * Retrieves information about supported locks. Item can support exclusive, shared locks or do not support
2016
+ * any locks. If you set exclusive lock other users will not be able to set any locks. If you set shared
2017
+ * lock other users will be able to set shared lock on the item.
2018
+ * @api
2019
+ * @examplecode ITHit.WebDAV.Client.Tests.Locks.CheckSupport.CheckLockSupport
2020
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Locks.CheckSupport.CheckLockSupport
2021
+ * @type {Array.<string>}
2022
+ * @see ITHit.WebDAV.Client.LockScope
2023
+ */
2024
+ SupportedLocks: string[]
2025
+ /**
2026
+ * List of locks applied to this item.
2027
+ * @examplecode ITHit.WebDAV.Client.Tests.Locks.GetLocks.GetList
2028
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Locks.GetLocks.GetList
2029
+ * @api
2030
+ * @type {Array.<ITHit.WebDAV.Client.LockInfo>}
2031
+ */
2032
+ ActiveLocks: ITHit.WebDAV.Client.LockInfo[]
2033
+ /**
2034
+ * List of item properties.
2035
+ * @api
2036
+ * @type {ITHit.WebDAV.Client.PropertyList}
2037
+ */
2038
+ Properties: ITHit.WebDAV.Client.PropertyList
2039
+ /**
2040
+ * Returns true if file is under version control. Otherwise false. To detect if version control could
2041
+ * be enabled for this item call GetSupportedFeaturesAsync and check for VersionControl token.
2042
+ * To enable version control call PutUnderVersionControlAsync.
2043
+ * @api
2044
+ * @returns {boolean} Boolean, if true - versions supported
2045
+ */
2046
+ /**
2047
+ * Number of bytes available for this user on server. -1 if server does not support Quota.
2048
+ * @api
2049
+ * @type {number}
2050
+ */
2051
+ AvailableBytes: number
2052
+ /**
2053
+ * Number of bytes used by this user on server. -1 if server does not support Quota.
2054
+ * @api
2055
+ * @type {number}
2056
+ */
2057
+ UsedBytes: number
2058
+ /**
2059
+ * Refreshes item loading data from server.
2060
+ * @api
2061
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.Refresh.Refresh
2062
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.Refresh.Refresh
2063
+ * @param {ITHit.WebDAV.Client.HierarchyItem~RefreshAsyncCallback} fCallback Function to call when operation is completed.
2064
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2065
+ */
2066
+ RefreshAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
2067
+ /**
2068
+ * Copies this item to destination folder.
2069
+ * @api
2070
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.CopyMove.Copy
2071
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.CopyMove.Copy
2072
+ * @param {ITHit.WebDAV.Client.Folder} oDestinationFolder Folder to move to.
2073
+ * @param {string} sDestinationName Name to assign to copied item.
2074
+ * @param {boolean} bDeep Indicates whether children of this item should be copied.
2075
+ * @param {boolean} bOverwrite Whether existing destination item shall be overwritten.
2076
+ * @param {ITHit.WebDAV.Client.LockUriTokenPair[]} [oLockTokens] Lock tokens for destination folder.
2077
+ * @param {ITHit.WebDAV.Client.HierarchyItem~CopyToAsyncCallback} fCallback Function to call when operation is completed.
2078
+ */
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;
2080
+ /**
2081
+ * Deletes this item.
2082
+ * @api
2083
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.Delete.Delete
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.
2086
+ * @param {ITHit.WebDAV.Client.HierarchyItem~DeleteAsyncCallback} fCallback Function to call when operation is completed.
2087
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2088
+ */
2089
+ DeleteAsync(oLockTokens: ITHit.WebDAV.Client.LockUriTokenPair | null, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
2090
+ /**
2091
+ * Returns names of all custom properties exposed by this item.
2092
+ * @api
2093
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyProperties.GetProperties.GetPropertyNames
2094
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyProperties.GetProperties.GetPropertyNames
2095
+ * @param {ITHit.WebDAV.Client.HierarchyItem~GetPropertyNamesAsyncCallback} fCallback Function to call when operation is completed.
2096
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2097
+ */
2098
+ GetPropertyNamesAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
2099
+ /**
2100
+ * Retrieves values of specific properties.
2101
+ * @api
2102
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyProperties.GetProperties.GetPropertyValues
2103
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyProperties.GetProperties.GetPropertyValues
2104
+ * @param {ITHit.WebDAV.Client.PropertyName[]} aNames
2105
+ * @param {ITHit.WebDAV.Client.HierarchyItem~GetPropertyValuesAsyncCallback} fCallback Function to call when operation is completed.
2106
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2107
+ */
2108
+ GetPropertyValuesAsync(aNames: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
2109
+ /**
2110
+ * Retrieves all custom properties exposed by the item.
2111
+ * @api
2112
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyProperties.GetProperties.GetAllProperties
2113
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyProperties.GetProperties.GetAllProperties
2114
+ * @param {ITHit.WebDAV.Client.HierarchyItem~GetAllPropertiesAsyncCallback} fCallback Function to call when operation is completed.
2115
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2116
+ */
2117
+ GetAllPropertiesAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
2118
+ /**
2119
+ * Retrieves parent hierarchy item of this item.
2120
+ * @api
2121
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.GetParent.GetParent
2122
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.GetParent.GetParent
2123
+ * @param {ITHit.WebDAV.Client.PropertyName[]} aProperties Additional properties requested from server. Default is empty array.
2124
+ * @param {ITHit.WebDAV.Client.HierarchyItem~GetParentAsyncCallback} fCallback Function to call when operation is completed.
2125
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2126
+ */
2127
+ GetParentAsync(aProperties: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
2128
+ /**
2129
+ * Retrieves media type independent links.
2130
+ * @api
2131
+ * @param {ITHit.WebDAV.Client.HierarchyItem~GetSourceAsyncCallback} fCallback Function to call when operation is completed.
2132
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2133
+ */
2134
+ GetSourceAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
2135
+ /**
2136
+ * Locks the item. If the lock was successfully applied, the server will return a lock token. You will pass this
2137
+ * lock token back to the server when updating and unlocking the item. The actual lock time applied by the server
2138
+ * may be different from the one requested by the client.
2139
+ * @api
2140
+ * @examplecode ITHit.WebDAV.Client.Tests.Locks.Lock.SetLock
2141
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Locks.Lock.SetLock
2142
+ * @param {string} sLockScope Scope of the lock. See LockScope Enumeration {@link ITHit.WebDAV.Client.LockScope}
2143
+ * @param {boolean} bDeep Whether to lock entire subtree.
2144
+ * @param {string} sOwner Owner of the lock.
2145
+ * @param {number} iTimeout Timeout after which lock expires. Pass -1 to request an infinite timeout.
2146
+ * @param {ITHit.WebDAV.Client.HierarchyItem~LockAsyncCallback} fCallback Function to call when operation is completed.
2147
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2148
+ */
2149
+ LockAsync(sLockScope: string, bDeep: boolean, sOwner: string, iTimeout: number, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
2150
+ /**
2151
+ * Moves this item to another location.
2152
+ * @api
2153
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.CopyMove.Move
2154
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.CopyMove.Move
2155
+ * @param {ITHit.WebDAV.Client.Folder} oDestinationFolder Folder to move to.
2156
+ * @param {string} sDestinationName Name to assign to moved item.
2157
+ * @param {boolean} bOverwrite Whether existing destination item shall be overwritten.
2158
+ * @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.
2159
+ * @param {ITHit.WebDAV.Client.HierarchyItem~MoveToAsyncCallback} fCallback Function to call when operation is completed.
2160
+ * @return {ITHit.WebDAV.Client.Request} Request object.
2161
+ */
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;
2163
+ /**
2164
+ * Prolongs the lock.
2165
+ * @api
2166
+ * @examplecode ITHit.WebDAV.Client.Tests.Locks.RefreshLock.RefreshLock
2167
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Locks.RefreshLock.RefreshLock
2168
+ * @param {string} sLockToken Identifies lock to be prolonged.
2169
+ * @param {number} iTimeout New timeout to set.
2170
+ * @param {ITHit.WebDAV.Client.HierarchyItem~RefreshLockAsyncCallback} fCallback Function to call when operation is completed.
2171
+ * @return {ITHit.WebDAV.Client.Request} Request object.
2172
+ */
2173
+ RefreshLockAsync(sLockToken: string, iTimeout: number, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
2174
+ /**
2175
+ * Gets features supported by this item, such as WebDAV class support.
2176
+ * @api
2177
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.SupportedFeatures.SupportedFeatures
2178
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.SupportedFeatures.SupportedFeatures
2179
+ * @param {ITHit.WebDAV.Client.HierarchyItem~GetSupportedFeaturesAsyncCallback} fCallback Function to call when operation is completed.
2180
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2181
+ */
2182
+ GetSupportedFeaturesAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
2183
+ /**
2184
+ * Removes the lock.
2185
+ * @api
2186
+ * @examplecode ITHit.WebDAV.Client.Tests.Locks.Lock.SetUnLock
2187
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Locks.Lock.SetUnLock
2188
+ * @param {string} sLockToken Identifies lock to be prolonged.
2189
+ * @param {ITHit.WebDAV.Client.HierarchyItem~UnlockAsyncCallback} fCallback Function to call when operation is completed.
2190
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2191
+ */
2192
+ UnlockAsync(sLockToken: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
2193
+ /**
2194
+ * Updates values of properties exposed by this item.
2195
+ * @api
2196
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyProperties.UpdateProperties.Update
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
2200
+ * @param {ITHit.WebDAV.Client.Property[]} oPropertiesToAddOrUpdate Properties to be updated.
2201
+ * @param {ITHit.WebDAV.Client.PropertyName[]} oPropertiesToDelete Names of properties to be removed from this item.
2202
+ * @param {string} [sLockToken] Lock token.
2203
+ * @param {ITHit.WebDAV.Client.HierarchyItem~UpdatePropertiesAsyncCallback} fCallback Function to call when operation is completed.
2204
+ * @returns {ITHit.WebDAV.Client.WebDavRequest|null} WebDAV request
2205
+ */
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;
2207
+ }/**
2208
+ * @classdesc Represents a search request.
2209
+ * @constructs
2210
+ * @api
2211
+ * @param {string} sSearchPhrase Search phrase.
2212
+ */
2213
+ class SearchQuery {
2214
+ constructor(sSearchPhrase: string);
2215
+ /**
2216
+ * Search phrase.
2217
+ * @api
2218
+ * @type {string}
2219
+ */
2220
+ Phrase: string
2221
+ /**
2222
+ * <p>Properties to be returned from server with each item returned in search results.</p>
2223
+ * <p>This property can be used to request any additional data required in search results, such as snippet of
2224
+ * text around the search phrase, document title, author name, etc.</p>
2225
+ * @api
2226
+ * @type {ITHit.WebDAV.Client.PropertyName[]}
2227
+ */
2228
+ SelectProperties: ITHit.WebDAV.Client.PropertyName[]
2229
+ /**
2230
+ * Enables or disables search by properties specified in <code>LikeProperties</code> list. Default is <code>true</code>.
2231
+ * @api
2232
+ * @type {boolean}
2233
+ */
2234
+ EnableLike: boolean
2235
+ /**
2236
+ * List of properties to be used in like conditions. The search phrase will be searched in the properties specilied in this list.
2237
+ * @api
2238
+ * @type {ITHit.WebDAV.Client.PropertyName[]}
2239
+ */
2240
+ LikeProperties: ITHit.WebDAV.Client.PropertyName[]
2241
+ /**
2242
+ * Enables or disables search inside file content. Default is <code>true</code>.
2243
+ * @api
2244
+ * @type {boolean}
2245
+ */
2246
+ EnableContains: boolean
2247
+ }/**
2248
+ * Array of file and folder items that correspond to the offset, number of items and sorting conditions requested from server.
2249
+ * Also contains a total number of items in this folder or in search results.
2250
+ * @api
2251
+ * @class ITHit.WebDAV.Client.PageResults
2252
+ */
2253
+ class PageResults {
2254
+ /**
2255
+ * Total number of items in the folder or in search results.
2256
+ * @api
2257
+ * @type {number}
2258
+ */
2259
+ TotalItems: number
2260
+ /**
2261
+ * Items that correspond to the requested page and sorting.
2262
+ * @api
2263
+ * @type {ITHit.WebDAV.Client.HierarchyItem[]}
2264
+ */
2265
+ Page: ITHit.WebDAV.Client.HierarchyItem[]
2266
+ }/**
2267
+ * Represents a folder in a WebDAV repository.
2268
+ * @api
2269
+ * @class ITHit.WebDAV.Client.Folder
2270
+ * @extends ITHit.WebDAV.Client.HierarchyItem
2271
+ */
2272
+ class Folder extends ITHit.WebDAV.Client.HierarchyItem {
2273
+ /**
2274
+ * Creates a new folder with a specified name as child of this folder.
2275
+ * @api
2276
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.CreateFolder.CreateFolder
2277
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.CreateFolder.CreateFolder
2278
+ * @param {string} sName Name of the new folder.
2279
+ * @param {string} [sLockTokens] Lock token for ITHit.WebDAV.Client.Folder folder.
2280
+ * @param {ITHit.WebDAV.Client.PropertyName[]} aProperties Additional properties requested from server. Default is empty array.
2281
+ * @param {ITHit.WebDAV.Client.Folder~CreateFolderAsyncCallback} fCallback Function to call when operation is completed.
2282
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2283
+ */
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;
2285
+ /**
2286
+ * Creates a new file with a specified name as a child of this folder.
2287
+ * @api
2288
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.CreateFile.CreateAndWriteContent
2289
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.CreateFile.CreateAndWriteContent
2290
+ * @param {string} sName Name of the new file.
2291
+ * @param {string} sLockTokens Lock token for current folder.
2292
+ * @param {string} sContent File content.
2293
+ * @param {ITHit.WebDAV.Client.PropertyName[]} aProperties Additional properties requested from server. Default is empty array.
2294
+ * @param {ITHit.WebDAV.Client.Folder~CreateFileAsyncCallback} fCallback Function to call when operation is completed.
2295
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2296
+ */
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;
2298
+ /**
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.
2300
+ * @api
2301
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.GetFolderItems.GetPage
2302
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.GetFolderItems.GetPage
2303
+ * @param {ITHit.WebDAV.Client.PropertyName[]} [aProperties] Additional properties requested from server. If null is specified, only default properties are returned.
2304
+ * @param {number} [nOffset] The number of items to skip before returning the remaining items.
2305
+ * @param {number} [nResults] The number of items to return.
2306
+ * @param {ITHit.WebDAV.Client.OrderProperty[]} [aOrderProperties] List of order properties.
2307
+ * @param {ITHit.WebDAV.Client.Folder~GetPageAsyncCallback} fCallback Function to call when operation is completed.
2308
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2309
+ */
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;
2311
+ /**
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.
2313
+ * @api
2314
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.GetFolderItems.GetChildren
2315
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.GetFolderItems.GetChildren
2316
+ * @param {boolean} bRecursively Indicates if all subtree of children should be return. Default is false.
2317
+ * @param {ITHit.WebDAV.Client.PropertyName[]} aProperties Additional properties requested from server. If null is specified, only default properties are returned.
2318
+ * @param {ITHit.WebDAV.Client.Folder~GetChildrenAsyncCallback} fCallback Function to call when operation is completed.
2319
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2320
+ */
2321
+ GetChildrenAsync(bRecursively: boolean, aProperties: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
2322
+ /**
2323
+ * Gets the specified folder from server.
2324
+ * @api
2325
+ * @param {string} sName Name of the folder.
2326
+ * @param {ITHit.WebDAV.Client.Folder~GetFolderAsyncCallback} fCallback Function to call when operation is completed.
2327
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2328
+ */
2329
+ GetFolderAsync(sName: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
2330
+ /**
2331
+ * Gets the specified file from server.
2332
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.GetItemByFolder.GetFile
2333
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.GetItemByFolder.GetFile
2334
+ * @api
2335
+ * @param {string} sName Name of the file.
2336
+ * @param {ITHit.WebDAV.Client.Folder~GetFileAsyncCallback} fCallback Function to call when operation is completed.
2337
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2338
+ */
2339
+ GetFileAsync(sName: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
2340
+ /**
2341
+ * Gets the specified item from server.
2342
+ * @api
2343
+ * @param {string} sName Name of the item.
2344
+ * @param {ITHit.WebDAV.Client.Folder~GetItemAsyncCallback} fCallback Function to call when operation is completed.
2345
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2346
+ */
2347
+ GetItemAsync(sName: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
2348
+ /**
2349
+ * Checks whether specified item exists in the folder.
2350
+ * @api
2351
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.ItemExists.ItemExists
2352
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.ItemExists.ItemExists
2353
+ * @param {string} sName Name of the item.
2354
+ * @param {ITHit.WebDAV.Client.Folder~ItemExistsAsyncCallback} fCallback Function to call when operation is completed.
2355
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2356
+ */
2357
+ ItemExistsAsync(sName: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
2358
+ /**
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.
2360
+ * @api
2361
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.Search.SearchByQuery
2362
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.Search.SearchByQuery
2363
+ * @param {ITHit.WebDAV.Client.SearchQuery} oSearchQuery Object with search query conditions.
2364
+ * @param {ITHit.WebDAV.Client.Folder~SearchByQueryAsyncCallback} fCallback Function to call when operation is completed.
2365
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2366
+ */
2367
+ SearchByQueryAsync(oSearchQuery: ITHit.WebDAV.Client.SearchQuery, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
2368
+ /**
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.
2370
+ * @api
2371
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.Search.GetSearchPageByQuery
2372
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.Search.GetSearchPageByQuery
2373
+ * @param {ITHit.WebDAV.Client.SearchQuery} oSearchQuery Object with search query conditions.
2374
+ * @param {number} [nOffset] The number of items to skip before returning the remaining items.
2375
+ * @param {number} [nResults] The number of items to return.
2376
+ * @param {ITHit.WebDAV.Client.Folder~GetSearchPageByQueryAsyncCallback} fCallback Function to call when operation is completed.
2377
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2378
+ */
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;
2380
+ /**
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.
2382
+ * @api
2383
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.Search.SearchByString
2384
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.Search.SearchByString
2385
+ * @param {string} sSearchQuery String of search query.
2386
+ * @param {ITHit.WebDAV.Client.PropertyName[]} [aProperties] Additional properties requested from server. If null is specified, only default properties are returned.
2387
+ * @param {ITHit.WebDAV.Client.Folder~SearchAsyncCallback} fCallback Function to call when operation is completed.
2388
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2389
+ */
2390
+ SearchAsync(sSearchQuery: string, aProperties?: ITHit.WebDAV.Client.PropertyName[] | null, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
2391
+ /**
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.
2393
+ * @api
2394
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.Search.GetSearchPageByString
2395
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.Search.GetSearchPageByString
2396
+ * @param {string} sSearchQuery String of search query.
2397
+ * @param {ITHit.WebDAV.Client.PropertyName[]} [aProperties] Additional properties requested from server. If null is specified, only default properties are returned.
2398
+ * @param {number} [nOffset] The number of items to skip before returning the remaining items.
2399
+ * @param {number} [nResults] The number of items to return.
2400
+ * @param {ITHit.WebDAV.Client.Folder~GetSearchPageAsyncCallback} fCallback Function to call when operation is completed.
2401
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2402
+ */
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;
2404
+ /**
2405
+ * Current WebDAV session.
2406
+ * @api
2407
+ * @type {ITHit.WebDAV.Client.WebDavSession}
2408
+ */
2409
+ Session: ITHit.WebDAV.Client.WebDavSession
2410
+ /**
2411
+ * This item path on the server.
2412
+ * @api
2413
+ * @type {string}
2414
+ */
2415
+ Href: string
2416
+ /**
2417
+ * Most recent modification date.
2418
+ * @api
2419
+ * @type {Date}
2420
+ */
2421
+ LastModified: Date
2422
+ /**
2423
+ * User friendly item name.
2424
+ * @api
2425
+ * @type {string}
2426
+ */
2427
+ DisplayName: string
2428
+ /**
2429
+ * The date item was created.
2430
+ * @api
2431
+ * @type {Date}
2432
+ */
2433
+ CreationDate: Date
2434
+ /**
2435
+ * Type of the item (File or Folder).
2436
+ * @api
2437
+ * @type {string}
2438
+ * @see ITHit.WebDAV.Client.ResourceType
2439
+ */
2440
+ ResourceType: string
2441
+ /**
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[]
2452
+ /**
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[]
2460
+ /**
2461
+ * List of item properties.
2462
+ * @api
2463
+ * @type {ITHit.WebDAV.Client.PropertyList}
2464
+ */
2465
+ Properties: ITHit.WebDAV.Client.PropertyList
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.
2470
+ * @api
2471
+ * @returns {boolean} Boolean, if true - versions supported
2472
+ */
2473
+ /**
2474
+ * Number of bytes available for this user on server. -1 if server does not support Quota.
2475
+ * @api
2476
+ * @type {number}
2477
+ */
2478
+ AvailableBytes: number
2479
+ /**
2480
+ * Number of bytes used by this user on server. -1 if server does not support Quota.
2481
+ * @api
2482
+ * @type {number}
2483
+ */
2484
+ UsedBytes: number
2485
+ /**
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;
2494
+ /**
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
+ */
3437
+ /**
3438
+ * @api
3439
+ * @param {string} sEventName
3440
+ * @param {function} fCallback
3441
+ * @param {object} [oContext]
3442
+ */
3443
+ AddListener(sEventName: string, fCallback: Function, oContext?: object | null): void;
3444
+ /**
3445
+ * @api
3446
+ * @param {string} sEventName
3447
+ * @param {function} fCallback
3448
+ * @param {object} [oContext]
3449
+ */
3450
+ RemoveListener(sEventName: string, fCallback: Function, oContext?: object | null): void;
3451
+ /**
3452
+ * Load File object corresponding to path.
3453
+ * @api
3454
+ * @param {string} sPath Path to the file.
3455
+ * @param {ITHit.WebDAV.Client.PropertyName[]} aProperties Additional properties requested from server. Default is empty array.
3456
+ * @param {ITHit.WebDAV.Client.WebDavSession~OpenFileAsyncCallback} fCallback Function to call when operation is completed.
3457
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
3458
+ */
3459
+ OpenFileAsync(sPath: string, aProperties: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): ITHit.WebDAV.Client.Request;
3460
+ /**
3461
+ * Returns Folder object corresponding to path.
3462
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.GetItemBySession.GetFolder
3463
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.GetItemBySession.GetFolder
3464
+ * @api
3465
+ * @param {string} sPath Path to the folder.
3466
+ * @param {ITHit.WebDAV.Client.PropertyName[]} aProperties Additional properties requested from server. Default is empty array.
3467
+ * @param {ITHit.WebDAV.Client.WebDavSession~OpenFolderAsyncCallback} fCallback Function to call when operation is completed.
3468
+ */
3469
+ OpenFolderAsync(sPath: string, aProperties: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): void;
3470
+ /**
3471
+ * Returns HierarchyItem object corresponding to path.
3472
+ * @api
3473
+ * @param {string} sPath Path to the resource.
3474
+ * @param {ITHit.WebDAV.Client.PropertyName[]} aProperties Additional properties requested from server. Default is empty array.
3475
+ * @param {ITHit.WebDAV.Client.WebDavSession~OpenItemAsyncCallback} fCallback Function to call when operation is completed.
3476
+ */
3477
+ OpenItemAsync(sPath: string, aProperties: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void | null): void;
3478
+ /**
3479
+ * Creates folder corresponding to path.
3480
+ * @api
3481
+ * @param {string} sPath Path to the resource.
3482
+ * @param {ITHit.WebDAV.Client.PropertyName[]} aProperties Additional properties requested from server. Default is empty array.
3483
+ * @param {ITHit.WebDAV.Client.WebDavSession~CreateFolderAsyncCallback} fCallback Function to call when operation is completed.
3484
+ */
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
+ }}}}}}