webdav.client 5.21.5815 → 5.21.5846

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (208) hide show
  1. package/Help/ClassReference/Create.html +3184 -0
  2. package/Help/ClassReference/ITHit.Environment.html +3119 -0
  3. package/Help/ClassReference/ITHit.LogLevel.html +3356 -0
  4. package/Help/ClassReference/ITHit.Logger.html +3539 -0
  5. package/Help/ClassReference/ITHit.WebDAV.Client.AsyncResult.html +3254 -0
  6. package/Help/ClassReference/ITHit.WebDAV.Client.BrowserExtension.html +3651 -0
  7. package/Help/ClassReference/ITHit.WebDAV.Client.CancellableResult.html +3420 -0
  8. package/Help/ClassReference/ITHit.WebDAV.Client.DavConstants.html +4526 -0
  9. package/Help/ClassReference/ITHit.WebDAV.Client.Depth.html +3193 -0
  10. package/Help/ClassReference/ITHit.WebDAV.Client.DocManager.html +4946 -0
  11. package/Help/ClassReference/ITHit.WebDAV.Client.Encoder.html +3164 -0
  12. package/Help/ClassReference/ITHit.WebDAV.Client.Error.html +3164 -0
  13. package/Help/ClassReference/ITHit.WebDAV.Client.Exceptions.BadRequestException.html +3260 -0
  14. package/Help/ClassReference/ITHit.WebDAV.Client.Exceptions.ConflictException.html +3260 -0
  15. package/Help/ClassReference/ITHit.WebDAV.Client.Exceptions.DependencyFailedException.html +3260 -0
  16. package/Help/ClassReference/ITHit.WebDAV.Client.Exceptions.ForbiddenException.html +3260 -0
  17. package/Help/ClassReference/ITHit.WebDAV.Client.Exceptions.Info.Error.html +3127 -0
  18. package/Help/ClassReference/ITHit.WebDAV.Client.Exceptions.Info.Multistatus.html +3078 -0
  19. package/Help/ClassReference/ITHit.WebDAV.Client.Exceptions.Info.MultistatusResponse.html +3078 -0
  20. package/Help/ClassReference/ITHit.WebDAV.Client.Exceptions.Info.PropertyMultistatus.html +3130 -0
  21. package/Help/ClassReference/ITHit.WebDAV.Client.Exceptions.Info.PropertyMultistatusResponse.html +3078 -0
  22. package/Help/ClassReference/ITHit.WebDAV.Client.Exceptions.InsufficientStorageException.html +3260 -0
  23. package/Help/ClassReference/ITHit.WebDAV.Client.Exceptions.IntegrationException.html +3070 -0
  24. package/Help/ClassReference/ITHit.WebDAV.Client.Exceptions.LockedException.html +3260 -0
  25. package/Help/ClassReference/ITHit.WebDAV.Client.Exceptions.MethodNotAllowedException.html +3260 -0
  26. package/Help/ClassReference/ITHit.WebDAV.Client.Exceptions.NotFoundException.html +3260 -0
  27. package/Help/ClassReference/ITHit.WebDAV.Client.Exceptions.NotImplementedException.html +3260 -0
  28. package/Help/ClassReference/ITHit.WebDAV.Client.Exceptions.Parsers.InsufficientStorage.html +3180 -0
  29. package/Help/ClassReference/ITHit.WebDAV.Client.Exceptions.PreconditionFailedException.html +3260 -0
  30. package/Help/ClassReference/ITHit.WebDAV.Client.Exceptions.PropertyConflictException.html +3305 -0
  31. package/Help/ClassReference/ITHit.WebDAV.Client.Exceptions.PropertyException.html +3305 -0
  32. package/Help/ClassReference/ITHit.WebDAV.Client.Exceptions.PropertyForbiddenException.html +3305 -0
  33. package/Help/ClassReference/ITHit.WebDAV.Client.Exceptions.PropertyNotFoundException.html +3305 -0
  34. package/Help/ClassReference/ITHit.WebDAV.Client.Exceptions.QuotaNotExceededException.html +3260 -0
  35. package/Help/ClassReference/ITHit.WebDAV.Client.Exceptions.SufficientDiskSpaceException.html +3260 -0
  36. package/Help/ClassReference/ITHit.WebDAV.Client.Exceptions.UnauthorizedException.html +3260 -0
  37. package/Help/ClassReference/ITHit.WebDAV.Client.Exceptions.WebDavException.html +3076 -0
  38. package/Help/ClassReference/ITHit.WebDAV.Client.Exceptions.WebDavHttpException.html +3260 -0
  39. package/Help/ClassReference/ITHit.WebDAV.Client.Features.html +3581 -0
  40. package/Help/ClassReference/ITHit.WebDAV.Client.File.html +10760 -0
  41. package/Help/ClassReference/ITHit.WebDAV.Client.Folder.html +12708 -0
  42. package/Help/ClassReference/ITHit.WebDAV.Client.GEditInfo.html +3164 -0
  43. package/Help/ClassReference/ITHit.WebDAV.Client.HierarchyItem.html +9603 -0
  44. package/Help/ClassReference/ITHit.WebDAV.Client.HttpStatus.html +5185 -0
  45. package/Help/ClassReference/ITHit.WebDAV.Client.LockInfo.html +3299 -0
  46. package/Help/ClassReference/ITHit.WebDAV.Client.LockScope.html +3131 -0
  47. package/Help/ClassReference/ITHit.WebDAV.Client.LockUriTokenPair.html +3164 -0
  48. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.CancelUpload.html +3072 -0
  49. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.CopyMove.html +3125 -0
  50. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.Delete.html +3072 -0
  51. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.ErrorResponse.html +3126 -0
  52. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.Get.GoAsync.html +3205 -0
  53. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.Get.html +3079 -0
  54. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.Head.html +3072 -0
  55. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.HttpMethod.html +3140 -0
  56. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.Lock.Go.html +3241 -0
  57. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.Lock.GoAsync.html +3259 -0
  58. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.Lock.html +3082 -0
  59. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.LockRefresh.Go.html +3241 -0
  60. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.LockRefresh.GoAsync.html +3259 -0
  61. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.LockRefresh.html +3082 -0
  62. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.Mkcol.html +3072 -0
  63. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.MultiResponse.html +3126 -0
  64. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.Options.html +3123 -0
  65. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.Propfind.html +3125 -0
  66. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.Proppatch.html +3072 -0
  67. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.Propstat.html +3108 -0
  68. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.Put.html +3072 -0
  69. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.Report.html +3136 -0
  70. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.Response.html +3126 -0
  71. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.ResponseFactory.html +3070 -0
  72. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.Search.html +3072 -0
  73. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.SingleResponse.html +3117 -0
  74. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.Undelete.html +3066 -0
  75. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.Unlock.html +3072 -0
  76. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.UpdateToVersion.html +3072 -0
  77. package/Help/ClassReference/ITHit.WebDAV.Client.Methods.VersionControl.html +3072 -0
  78. package/Help/ClassReference/ITHit.WebDAV.Client.MsOfficeEditExtensions.html +3476 -0
  79. package/Help/ClassReference/ITHit.WebDAV.Client.Multistatus.html +3164 -0
  80. package/Help/ClassReference/ITHit.WebDAV.Client.MultistatusResponse.html +3209 -0
  81. package/Help/ClassReference/ITHit.WebDAV.Client.OptionsInfo.html +3119 -0
  82. package/Help/ClassReference/ITHit.WebDAV.Client.OrderProperty.html +3330 -0
  83. package/Help/ClassReference/ITHit.WebDAV.Client.PageResults.html +3164 -0
  84. package/Help/ClassReference/ITHit.WebDAV.Client.Property.html +3387 -0
  85. package/Help/ClassReference/ITHit.WebDAV.Client.PropertyList.html +3423 -0
  86. package/Help/ClassReference/ITHit.WebDAV.Client.PropertyMultistatusResponse.html +3260 -0
  87. package/Help/ClassReference/ITHit.WebDAV.Client.PropertyName.html +3342 -0
  88. package/Help/ClassReference/ITHit.WebDAV.Client.Request.html +4035 -0
  89. package/Help/ClassReference/ITHit.WebDAV.Client.RequestProgress.html +3344 -0
  90. package/Help/ClassReference/ITHit.WebDAV.Client.ResourceType.html +3131 -0
  91. package/Help/ClassReference/ITHit.WebDAV.Client.ResumableUpload.html +3640 -0
  92. package/Help/ClassReference/ITHit.WebDAV.Client.SPSManager.html +3328 -0
  93. package/Help/ClassReference/ITHit.WebDAV.Client.SearchQuery.html +3344 -0
  94. package/Help/ClassReference/ITHit.WebDAV.Client.Source.html +3164 -0
  95. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.DocManager.MsOfficeEditExtensions.html +3066 -0
  96. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.HierarchyItems.CopyMove.html +3066 -0
  97. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.HierarchyItems.CreateFile.html +3066 -0
  98. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.HierarchyItems.CreateFolder.html +3066 -0
  99. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.HierarchyItems.Delete.html +3066 -0
  100. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.HierarchyItems.GetFolderItems.html +3066 -0
  101. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.HierarchyItems.GetHeadRequests.html +3066 -0
  102. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.HierarchyItems.GetItemByFolder.html +3066 -0
  103. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.HierarchyItems.GetItemBySession.html +3066 -0
  104. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.HierarchyItems.GetParent.html +3066 -0
  105. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.HierarchyItems.ItemExists.html +3066 -0
  106. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.HierarchyItems.MicrosoftOfficeDiscovery.html +3066 -0
  107. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.HierarchyItems.NameCheck.html +3066 -0
  108. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.HierarchyItems.Progress.html +3066 -0
  109. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.HierarchyItems.Refresh.html +3066 -0
  110. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.HierarchyItems.Search.html +3066 -0
  111. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.HierarchyItems.SupportedFeatures.html +3066 -0
  112. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.HierarchyProperties.GetProperties.html +3066 -0
  113. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.HierarchyProperties.UpdateProperties.html +3066 -0
  114. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.Locks.CheckSupport.html +3066 -0
  115. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.Locks.Etag.html +3066 -0
  116. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.Locks.GetLocks.html +3066 -0
  117. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.Locks.Lock.html +3066 -0
  118. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.Locks.RefreshLock.html +3066 -0
  119. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.Versions.GetVersions.html +3066 -0
  120. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.Versions.ManageVersions.html +3066 -0
  121. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.Versions.PutUnderVersion.html +3066 -0
  122. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.Versions.ReadContent.html +3066 -0
  123. package/Help/ClassReference/ITHit.WebDAV.Client.Tests.WebDavSession.Events.html +3066 -0
  124. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.AutoUploader.html +3128 -0
  125. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Collections.Map.html +3288 -0
  126. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Collections.Pair.html +3162 -0
  127. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.ContentWriter.html +3316 -0
  128. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Controls.DropZone.html +3170 -0
  129. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Controls.FSEntryFactory.html +3070 -0
  130. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Controls.HtmlControl.html +3160 -0
  131. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Controls.Input.html +3170 -0
  132. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.DropZoneCollection.html +3511 -0
  133. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Events.AsyncEvent.html +3260 -0
  134. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Events.BaseEvent.html +3066 -0
  135. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Events.BeforeUploadStarted.html +3400 -0
  136. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Events.Error.html +3076 -0
  137. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Events.EventName.html +3217 -0
  138. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Events.ProgressChanged.html +3076 -0
  139. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Events.QueueChanged.html +3072 -0
  140. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Events.StateChanged.html +3076 -0
  141. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Events.UploadError.html +3529 -0
  142. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Events.UploadItemsCreated.html +3516 -0
  143. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.FSEntry.html +3197 -0
  144. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.FileSpan.html +3181 -0
  145. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Groups.Group.html +3136 -0
  146. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Groups.GroupManager.html +3070 -0
  147. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.InputCollection.html +3511 -0
  148. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.ItemSettings.html +3066 -0
  149. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Path.Generator.html +3260 -0
  150. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Path.PathCache.html +3068 -0
  151. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Progress.html +3344 -0
  152. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Providers.ProgressTracker.html +3119 -0
  153. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Providers.UploadDiff.html +3161 -0
  154. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Providers.UploadProvider.html +3207 -0
  155. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Queue.html +3980 -0
  156. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.ServerItem.html +3136 -0
  157. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Settings.html +3218 -0
  158. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.State.html +3401 -0
  159. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.States.BaseState.html +3066 -0
  160. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.States.CanceledState.html +3072 -0
  161. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.States.CompletedState.html +3072 -0
  162. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.States.Factory.html +3070 -0
  163. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.States.PausedState.html +3072 -0
  164. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.States.QueuedState.html +3072 -0
  165. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.States.ResumeState.html +3072 -0
  166. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.States.SkippedState.html +3072 -0
  167. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.States.UploadingState.html +3072 -0
  168. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.UploadItem.html +6299 -0
  169. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.UploadLocation.html +3136 -0
  170. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Uploader.html +3471 -0
  171. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.UploaderSession.html +4661 -0
  172. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Utils.DavUrl.html +3154 -0
  173. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Utils.DavUrlBuilder.html +3119 -0
  174. package/Help/ClassReference/ITHit.WebDAV.Client.Upload.Utils.RepeatableAction.html +3235 -0
  175. package/Help/ClassReference/ITHit.WebDAV.Client.UploadProgressInfo.html +3254 -0
  176. package/Help/ClassReference/ITHit.WebDAV.Client.Version.html +4707 -0
  177. package/Help/ClassReference/ITHit.WebDAV.Client.WebDavRequest.html +3070 -0
  178. package/Help/ClassReference/ITHit.WebDAV.Client.WebDavResponse.html +3070 -0
  179. package/Help/ClassReference/ITHit.WebDAV.Client.WebDavSession.html +5383 -0
  180. package/Help/ClassReference/ITHit.WebDAV.Client.WebDavUtil.html +3070 -0
  181. package/Help/ClassReference/fonts/glyphicons-halflings-regular.eot +0 -0
  182. package/Help/ClassReference/fonts/glyphicons-halflings-regular.svg +229 -0
  183. package/Help/ClassReference/fonts/glyphicons-halflings-regular.ttf +0 -0
  184. package/Help/ClassReference/fonts/glyphicons-halflings-regular.woff +0 -0
  185. package/Help/ClassReference/global.html +9143 -0
  186. package/Help/ClassReference/index.html +3786 -0
  187. package/Help/ClassReference/scripts/bootstrap.min.js +7 -0
  188. package/Help/ClassReference/scripts/jquery.min.js +6 -0
  189. package/Help/ClassReference/scripts/jquery.min.map +1 -0
  190. package/Help/ClassReference/scripts/linenumber.js +29 -0
  191. package/Help/ClassReference/scripts/main.js +110 -0
  192. package/Help/ClassReference/scripts/prettify/Apache-License-2.0.txt +202 -0
  193. package/Help/ClassReference/scripts/prettify/lang-css.js +2 -0
  194. package/Help/ClassReference/scripts/prettify/prettify.js +28 -0
  195. package/Help/ClassReference/scripts/underscore-min.js +6 -0
  196. package/Help/ClassReference/scripts/underscore-min.map +1 -0
  197. package/Help/ClassReference/styles/bootstrap.min.css +7 -0
  198. package/Help/ClassReference/styles/jaguar.css +469 -0
  199. package/Help/ClassReference/styles/prettify-jsdoc.css +111 -0
  200. package/Help/ClassReference/styles/prettify-tomorrow.css +132 -0
  201. package/ITHitWebDAVClient.js +2 -2
  202. package/Plugins/ITHitEditDocumentOpener.deb +0 -0
  203. package/Plugins/ITHitEditDocumentOpener.msi +0 -0
  204. package/Plugins/ITHitEditDocumentOpener.pkg +0 -0
  205. package/Plugins/ITHitEditDocumentOpener.rpm +0 -0
  206. package/index.d.ts +3027 -0
  207. package/index.js +1 -1
  208. package/package.json +2 -2
package/index.d.ts ADDED
@@ -0,0 +1,3027 @@
1
+ // -----------------------------------------------------------------------
2
+ // IT Hit WebDAV Ajax Library v5.21.5846.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): 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, sNamespace?: string);
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
+ class ResourceType {
1034
+ /**
1035
+ * Item is folder.
1036
+ * @api
1037
+ * @readonly
1038
+ * @type {string}
1039
+ */
1040
+ static readonly Folder: string
1041
+ readonly Folder: string
1042
+ /**
1043
+ * Item is file.
1044
+ * @api
1045
+ * @readonly
1046
+ * @type {string}
1047
+ */
1048
+ static readonly File: string
1049
+ readonly File: string
1050
+ }/**
1051
+ * List of WebDAV properties.
1052
+ * @api
1053
+ * @class ITHit.WebDAV.Client.PropertyList
1054
+ * @extends Array
1055
+ */
1056
+ class PropertyList extends Array {
1057
+ /**
1058
+ * Returns true if the with the specified property name and namespace exists in property list.
1059
+ * Returns false if does not exist.
1060
+ * @api
1061
+ * @param {ITHit.WebDAV.Client.PropertyName} oPropName Property name to search for.
1062
+ * @param {boolean} [bIgnoreCase] Specifies if the search is case sensitive or case insensitive.
1063
+ * @returns {boolean}
1064
+ */
1065
+ Has(oPropName: ITHit.WebDAV.Client.PropertyName, bIgnoreCase?: boolean): boolean;
1066
+ /**
1067
+ * Gets property value found by property name and namespace. Returns null if property with such name does not exist.
1068
+ * @api
1069
+ * @param {ITHit.WebDAV.Client.PropertyName} oPropName Property name to search for.
1070
+ * @param {boolean} [bIgnoreCase] Specifies if the search is case sensitive or case insensitive.
1071
+ * @returns {(string|null)} String representing property value or null if property with such name does not exist.
1072
+ */
1073
+ Find(oPropName: ITHit.WebDAV.Client.PropertyName, bIgnoreCase?: boolean): string | null;
1074
+ }/**
1075
+ * Represents information about errors occurred in different elements.
1076
+ * @api
1077
+ * @class ITHit.WebDAV.Client.Multistatus
1078
+ */
1079
+ class Multistatus {
1080
+ /**
1081
+ * Gets the generic description, if available.
1082
+ * @api
1083
+ * @type {string}
1084
+ */
1085
+ Description: string
1086
+ /**
1087
+ * Array of the errors returned by server.
1088
+ * @api
1089
+ * @type {ITHit.WebDAV.Client.MultistatusResponse[]}
1090
+ */
1091
+ Responses: ITHit.WebDAV.Client.MultistatusResponse[]
1092
+ }/**
1093
+ * Represents error occurred in one element.
1094
+ * @api
1095
+ * @class ITHit.WebDAV.Client.MultistatusResponse
1096
+ */
1097
+ class MultistatusResponse {
1098
+ /**
1099
+ * Request href
1100
+ * @api
1101
+ * @type {string}
1102
+ */
1103
+ Href: string
1104
+ /**
1105
+ * Array of the errors returned by server.
1106
+ * @api
1107
+ * @type {string}
1108
+ */
1109
+ Description: string
1110
+ /**
1111
+ * HTTP Status of the operation.
1112
+ * @api
1113
+ * @type {ITHit.WebDAV.Client.HttpStatus}
1114
+ */
1115
+ Status: ITHit.WebDAV.Client.HttpStatus
1116
+ }/**
1117
+ * Provides means for finding which properties failed to update.
1118
+ * @api
1119
+ * @class ITHit.WebDAV.Client.PropertyMultistatusResponse
1120
+ * @extends ITHit.WebDAV.Client.MultistatusResponse
1121
+ */
1122
+ class PropertyMultistatusResponse extends ITHit.WebDAV.Client.MultistatusResponse {
1123
+ /**
1124
+ * Name of the property, if element is property. Otherwise null.
1125
+ * @api
1126
+ * @type {ITHit.WebDAV.Client.PropertyName}
1127
+ */
1128
+ PropertyName: ITHit.WebDAV.Client.PropertyName
1129
+ /**
1130
+ * Request href
1131
+ * @api
1132
+ * @type {string}
1133
+ */
1134
+ Href: string
1135
+ /**
1136
+ * Array of the errors returned by server.
1137
+ * @api
1138
+ * @type {string}
1139
+ */
1140
+ Description: string
1141
+ /**
1142
+ * HTTP Status of the operation.
1143
+ * @api
1144
+ * @type {ITHit.WebDAV.Client.HttpStatus}
1145
+ */
1146
+ Status: ITHit.WebDAV.Client.HttpStatus
1147
+ }/**
1148
+ * Scope of the lock.
1149
+ * Represents exclusive or shared lock.
1150
+ * @api
1151
+ * @enum {string}
1152
+ * @class ITHit.WebDAV.Client.LockScope
1153
+ */
1154
+ class LockScope {
1155
+ /**
1156
+ * Exclusive lock. No one else can obtain the lock.
1157
+ * @api
1158
+ * @type {string}
1159
+ */
1160
+ static Exclusive: string
1161
+ Exclusive: string
1162
+ /**
1163
+ * Shared lock. It will be possible for another clients to get the shared locks.
1164
+ * @api
1165
+ * @type {string}
1166
+ */
1167
+ static Shared: string
1168
+ Shared: string
1169
+ }/**
1170
+ * Represents pair of resource uri - lock token. Is used to access locked resources.
1171
+ * @api
1172
+ * @class ITHit.WebDAV.Client.LockUriTokenPair
1173
+ */
1174
+ class LockUriTokenPair {
1175
+ /**
1176
+ * Path to the locked resource.
1177
+ * @api
1178
+ * @type {string}
1179
+ */
1180
+ Href: string
1181
+ /**
1182
+ * Lock token.
1183
+ * @api
1184
+ * @type {string}
1185
+ */
1186
+ LockToken: string
1187
+ }/**
1188
+ * Information about lock set on an item.
1189
+ * @api
1190
+ * @class ITHit.WebDAV.Client.LockInfo
1191
+ */
1192
+ class LockInfo {
1193
+ /**
1194
+ * Scope of the lock.
1195
+ * @api
1196
+ * @type {ITHit.WebDAV.Client.LockScope}
1197
+ */
1198
+ LockScope: ITHit.WebDAV.Client.LockScope
1199
+ /**
1200
+ * Whether lock is set on item's children.
1201
+ * @api
1202
+ * @type {boolean}
1203
+ */
1204
+ Deep: boolean
1205
+ /**
1206
+ * Timeout until lock expires.
1207
+ * @api
1208
+ * @type {number}
1209
+ */
1210
+ TimeOut: number
1211
+ /**
1212
+ * Owner's name.
1213
+ * @api
1214
+ * @type {string}
1215
+ */
1216
+ Owner: string
1217
+ /**
1218
+ * Lock token.
1219
+ * @api
1220
+ * @type {ITHit.WebDAV.Client.LockUriTokenPair}
1221
+ */
1222
+ LockToken: ITHit.WebDAV.Client.LockUriTokenPair
1223
+ }/**
1224
+ * Options of an item, described by supported HTTP extensions.
1225
+ * @api
1226
+ * @class ITHit.WebDAV.Client.OptionsInfo
1227
+ */
1228
+ class OptionsInfo {
1229
+ /**
1230
+ * Features supported by WebDAV server. See Features Enumeration {@link ITHit.WebDAV.Client.Features}.
1231
+ * @api
1232
+ * @type {number}
1233
+ */
1234
+ Features: number
1235
+ }/**
1236
+ * Represents features supported by WebDAV server.
1237
+ * @api
1238
+ * @enum {number}
1239
+ * @class ITHit.WebDAV.Client.Features
1240
+ */
1241
+ class Features {
1242
+ /**
1243
+ * WebDAV Class 1 compliant item.
1244
+ * Class 1 items does not support locking.
1245
+ * @api
1246
+ * @readonly
1247
+ * @type {number}
1248
+ */
1249
+ static readonly Class1: number
1250
+ readonly Class1: number
1251
+ /**
1252
+ * WebDAV Class 2 compliant item.
1253
+ * Class 2 items support locking.
1254
+ * @api
1255
+ * @readonly
1256
+ * @type {number}
1257
+ */
1258
+ static readonly Class2: number
1259
+ readonly Class2: number
1260
+ /**
1261
+ * WebDAV Class 3 compliant item.
1262
+ * @api
1263
+ * @readonly
1264
+ * @type {number}
1265
+ */
1266
+ static readonly Class3: number
1267
+ readonly Class3: number
1268
+ /**
1269
+ * WevDAV paging compliant item.
1270
+ * @api
1271
+ * @readonly
1272
+ * @type {number}
1273
+ */
1274
+ static readonly VersionControl: number
1275
+ readonly VersionControl: number
1276
+ /**
1277
+ * DeltaV version-control compliant item.
1278
+ * @api
1279
+ * @readonly
1280
+ * @type {number}
1281
+ */
1282
+ static readonly Paging: number
1283
+ readonly Paging: number
1284
+ /**
1285
+ * Checkout-in-place item support check out, check in and uncheckout operations.
1286
+ * @api
1287
+ * @readonly
1288
+ * @type {number}
1289
+ */
1290
+ static readonly CheckoutInPlace: number
1291
+ readonly CheckoutInPlace: number
1292
+ /**
1293
+ * DeltaV Version History compliant item.
1294
+ * @api
1295
+ * @readonly
1296
+ * @type {number}
1297
+ */
1298
+ static readonly VersionHistory: number
1299
+ readonly VersionHistory: number
1300
+ /**
1301
+ * DeltaV Update compliant item.
1302
+ * @api
1303
+ * @readonly
1304
+ * @type {number}
1305
+ */
1306
+ static readonly Update: number
1307
+ readonly Update: number
1308
+ /**
1309
+ * The item supports resumable upload.
1310
+ * @api
1311
+ * @readonly
1312
+ * @type {number}
1313
+ */
1314
+ static readonly ResumableUpload: number
1315
+ readonly ResumableUpload: number
1316
+ /**
1317
+ * The item supports resumable download.
1318
+ * @api
1319
+ * @readonly
1320
+ * @type {number}
1321
+ */
1322
+ static readonly ResumableDownload: number
1323
+ readonly ResumableDownload: number
1324
+ /**
1325
+ * The item supports search.
1326
+ * @api
1327
+ * @readonly
1328
+ * @type {number}
1329
+ */
1330
+ static readonly Dasl: number
1331
+ readonly Dasl: number
1332
+ /**
1333
+ * The item supports GSuite editing.
1334
+ * @api
1335
+ * @readonly
1336
+ * @type {number}
1337
+ */
1338
+ static readonly GSuite: number
1339
+ readonly GSuite: number
1340
+ }/**
1341
+ * Represents one WebDAV item (file, folder or lock-null).
1342
+ * @api
1343
+ * @class ITHit.WebDAV.Client.HierarchyItem
1344
+ */
1345
+ class HierarchyItem {
1346
+ /**
1347
+ * Current WebDAV session.
1348
+ * @api
1349
+ * @type {ITHit.WebDAV.Client.WebDavSession}
1350
+ */
1351
+ Session: ITHit.WebDAV.Client.WebDavSession
1352
+ /**
1353
+ * This item path on the server.
1354
+ * @api
1355
+ * @type {string}
1356
+ */
1357
+ Href: string
1358
+ /**
1359
+ * Most recent modification date.
1360
+ * @api
1361
+ * @type {Date}
1362
+ */
1363
+ LastModified: Date
1364
+ /**
1365
+ * User friendly item name.
1366
+ * @api
1367
+ * @type {string}
1368
+ */
1369
+ DisplayName: string
1370
+ /**
1371
+ * The date item was created.
1372
+ * @api
1373
+ * @type {Date}
1374
+ */
1375
+ CreationDate: Date
1376
+ /**
1377
+ * Type of the item (File or Folder).
1378
+ * @api
1379
+ * @type {string}
1380
+ * @see ITHit.WebDAV.Client.ResourceType
1381
+ */
1382
+ ResourceType: string
1383
+ /**
1384
+ * Retrieves information about supported locks. Item can support exclusive, shared locks or do not support
1385
+ * any locks. If you set exclusive lock other users will not be able to set any locks. If you set shared
1386
+ * lock other users will be able to set shared lock on the item.
1387
+ * @api
1388
+ * @examplecode ITHit.WebDAV.Client.Tests.Locks.CheckSupport.CheckLockSupport
1389
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Locks.CheckSupport.CheckLockSupport
1390
+ * @type {Array.<string>}
1391
+ * @see ITHit.WebDAV.Client.LockScope
1392
+ */
1393
+ SupportedLocks: string[]
1394
+ /**
1395
+ * List of locks applied to this item.
1396
+ * @examplecode ITHit.WebDAV.Client.Tests.Locks.GetLocks.GetList
1397
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Locks.GetLocks.GetList
1398
+ * @api
1399
+ * @type {Array.<ITHit.WebDAV.Client.LockInfo>}
1400
+ */
1401
+ ActiveLocks: ITHit.WebDAV.Client.LockInfo[]
1402
+ /**
1403
+ * List of item properties.
1404
+ * @api
1405
+ * @type {ITHit.WebDAV.Client.PropertyList}
1406
+ */
1407
+ Properties: ITHit.WebDAV.Client.PropertyList
1408
+ /**
1409
+ * Returns true if file is under version control. Otherwise false. To detect if version control could
1410
+ * be enabled for this item call GetSupportedFeaturesAsync and check for VersionControl token.
1411
+ * To enable version control call PutUnderVersionControlAsync.
1412
+ * @api
1413
+ * @returns {boolean} Boolean, if true - versions supported
1414
+ */
1415
+ /**
1416
+ * Number of bytes available for this user on server. -1 if server does not support Quota.
1417
+ * @api
1418
+ * @type {number}
1419
+ */
1420
+ AvailableBytes: number
1421
+ /**
1422
+ * Number of bytes used by this user on server. -1 if server does not support Quota.
1423
+ * @api
1424
+ * @type {number}
1425
+ */
1426
+ UsedBytes: number
1427
+ /**
1428
+ * Refreshes item loading data from server.
1429
+ * @api
1430
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.Refresh.Refresh
1431
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.Refresh.Refresh
1432
+ * @param {ITHit.WebDAV.Client.HierarchyItem~RefreshAsyncCallback} fCallback Function to call when operation is completed.
1433
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
1434
+ */
1435
+ RefreshAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
1436
+ /**
1437
+ * Copies this item to destination folder.
1438
+ * @api
1439
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.CopyMove.Copy
1440
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.CopyMove.Copy
1441
+ * @param {ITHit.WebDAV.Client.Folder} oDestinationFolder Folder to move to.
1442
+ * @param {string} sDestinationName Name to assign to copied item.
1443
+ * @param {boolean} bDeep Indicates whether children of this item should be copied.
1444
+ * @param {boolean} bOverwrite Whether existing destination item shall be overwritten.
1445
+ * @param {ITHit.WebDAV.Client.LockUriTokenPair[]} [oLockTokens] Lock tokens for destination folder.
1446
+ * @param {ITHit.WebDAV.Client.HierarchyItem~CopyToAsyncCallback} fCallback Function to call when operation is completed.
1447
+ */
1448
+ CopyToAsync(oDestinationFolder: ITHit.WebDAV.Client.Folder, sDestinationName: string, bDeep: boolean, bOverwrite: boolean, oLockTokens?: ITHit.WebDAV.Client.LockUriTokenPair[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): void;
1449
+ /**
1450
+ * Deletes this item.
1451
+ * @api
1452
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.Delete.Delete
1453
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.Delete.Delete
1454
+ * @param {ITHit.WebDAV.Client.LockUriTokenPair} oLockTokens Lock tokens for this item or any locked child item.
1455
+ * @param {ITHit.WebDAV.Client.HierarchyItem~DeleteAsyncCallback} fCallback Function to call when operation is completed.
1456
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
1457
+ */
1458
+ DeleteAsync(oLockTokens: ITHit.WebDAV.Client.LockUriTokenPair, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
1459
+ /**
1460
+ * Returns names of all custom properties exposed by this item.
1461
+ * @api
1462
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyProperties.GetProperties.GetPropertyNames
1463
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyProperties.GetProperties.GetPropertyNames
1464
+ * @param {ITHit.WebDAV.Client.HierarchyItem~GetPropertyNamesAsyncCallback} fCallback Function to call when operation is completed.
1465
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
1466
+ */
1467
+ GetPropertyNamesAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
1468
+ /**
1469
+ * Retrieves values of specific properties.
1470
+ * @api
1471
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyProperties.GetProperties.GetPropertyValues
1472
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyProperties.GetProperties.GetPropertyValues
1473
+ * @param {ITHit.WebDAV.Client.PropertyName[]} aNames
1474
+ * @param {ITHit.WebDAV.Client.HierarchyItem~GetPropertyValuesAsyncCallback} fCallback Function to call when operation is completed.
1475
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
1476
+ */
1477
+ GetPropertyValuesAsync(aNames: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
1478
+ /**
1479
+ * Retrieves all custom properties exposed by the item.
1480
+ * @api
1481
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyProperties.GetProperties.GetAllProperties
1482
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyProperties.GetProperties.GetAllProperties
1483
+ * @param {ITHit.WebDAV.Client.HierarchyItem~GetAllPropertiesAsyncCallback} fCallback Function to call when operation is completed.
1484
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
1485
+ */
1486
+ GetAllPropertiesAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
1487
+ /**
1488
+ * Retrieves parent hierarchy item of this item.
1489
+ * @api
1490
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.GetParent.GetParent
1491
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.GetParent.GetParent
1492
+ * @param {ITHit.WebDAV.Client.PropertyName[]} aProperties Additional properties requested from server. Default is empty array.
1493
+ * @param {ITHit.WebDAV.Client.HierarchyItem~GetParentAsyncCallback} fCallback Function to call when operation is completed.
1494
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
1495
+ */
1496
+ GetParentAsync(aProperties: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
1497
+ /**
1498
+ * Retrieves media type independent links.
1499
+ * @api
1500
+ * @param {ITHit.WebDAV.Client.HierarchyItem~GetSourceAsyncCallback} fCallback Function to call when operation is completed.
1501
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
1502
+ */
1503
+ GetSourceAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
1504
+ /**
1505
+ * Locks the item. If the lock was successfully applied, the server will return a lock token. You will pass this
1506
+ * lock token back to the server when updating and unlocking the item. The actual lock time applied by the server
1507
+ * may be different from the one requested by the client.
1508
+ * @api
1509
+ * @examplecode ITHit.WebDAV.Client.Tests.Locks.Lock.SetLock
1510
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Locks.Lock.SetLock
1511
+ * @param {string} sLockScope Scope of the lock. See LockScope Enumeration {@link ITHit.WebDAV.Client.LockScope}
1512
+ * @param {boolean} bDeep Whether to lock entire subtree.
1513
+ * @param {string} sOwner Owner of the lock.
1514
+ * @param {number} iTimeout Timeout after which lock expires. Pass -1 to request an infinite timeout.
1515
+ * @param {ITHit.WebDAV.Client.HierarchyItem~LockAsyncCallback} fCallback Function to call when operation is completed.
1516
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
1517
+ */
1518
+ LockAsync(sLockScope: string, bDeep: boolean, sOwner: string, iTimeout: number, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
1519
+ /**
1520
+ * Moves this item to another location.
1521
+ * @api
1522
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.CopyMove.Move
1523
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.CopyMove.Move
1524
+ * @param {ITHit.WebDAV.Client.Folder} oDestinationFolder Folder to move to.
1525
+ * @param {string} sDestinationName Name to assign to moved item.
1526
+ * @param {boolean} bOverwrite Whether existing destination item shall be overwritten.
1527
+ * @param {(string|ITHit.WebDAV.Client.LockUriTokenPair[])} oLockTokens Lock tokens for item to be moved, for destination folder or file to be overwritten that are locked.
1528
+ * @param {ITHit.WebDAV.Client.HierarchyItem~MoveToAsyncCallback} fCallback Function to call when operation is completed.
1529
+ * @return {ITHit.WebDAV.Client.Request} Request object.
1530
+ */
1531
+ MoveToAsync(oDestinationFolder: ITHit.WebDAV.Client.Folder, sDestinationName: string, bOverwrite: boolean, oLockTokens: string | ITHit.WebDAV.Client.LockUriTokenPair[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
1532
+ /**
1533
+ * Prolongs the lock.
1534
+ * @api
1535
+ * @examplecode ITHit.WebDAV.Client.Tests.Locks.RefreshLock.RefreshLock
1536
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Locks.RefreshLock.RefreshLock
1537
+ * @param {string} sLockToken Identifies lock to be prolonged.
1538
+ * @param {number} iTimeout New timeout to set.
1539
+ * @param {ITHit.WebDAV.Client.HierarchyItem~RefreshLockAsyncCallback} fCallback Function to call when operation is completed.
1540
+ * @return {ITHit.WebDAV.Client.Request} Request object.
1541
+ */
1542
+ RefreshLockAsync(sLockToken: string, iTimeout: number, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
1543
+ /**
1544
+ * Gets features supported by this item, such as WebDAV class support.
1545
+ * @api
1546
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.SupportedFeatures.SupportedFeatures
1547
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.SupportedFeatures.SupportedFeatures
1548
+ * @param {ITHit.WebDAV.Client.HierarchyItem~GetSupportedFeaturesAsyncCallback} fCallback Function to call when operation is completed.
1549
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
1550
+ */
1551
+ GetSupportedFeaturesAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
1552
+ /**
1553
+ * Removes the lock.
1554
+ * @api
1555
+ * @examplecode ITHit.WebDAV.Client.Tests.Locks.Lock.SetUnLock
1556
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Locks.Lock.SetUnLock
1557
+ * @param {string} sLockToken Identifies lock to be prolonged.
1558
+ * @param {ITHit.WebDAV.Client.HierarchyItem~UnlockAsyncCallback} fCallback Function to call when operation is completed.
1559
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
1560
+ */
1561
+ UnlockAsync(sLockToken: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
1562
+ /**
1563
+ * Updates values of properties exposed by this item.
1564
+ * @api
1565
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyProperties.UpdateProperties.Update
1566
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyProperties.UpdateProperties.Delete
1567
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyProperties.UpdateProperties.Update
1568
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyProperties.UpdateProperties.Delete
1569
+ * @param {ITHit.WebDAV.Client.Property[]} oPropertiesToAddOrUpdate Properties to be updated.
1570
+ * @param {ITHit.WebDAV.Client.PropertyName[]} oPropertiesToDelete Names of properties to be removed from this item.
1571
+ * @param {string} [sLockToken] Lock token.
1572
+ * @param {ITHit.WebDAV.Client.HierarchyItem~UpdatePropertiesAsyncCallback} fCallback Function to call when operation is completed.
1573
+ * @returns {ITHit.WebDAV.Client.WebDavRequest|null} WebDAV request
1574
+ */
1575
+ UpdatePropertiesAsync(oPropertiesToAddOrUpdate: ITHit.WebDAV.Client.Property[], oPropertiesToDelete: ITHit.WebDAV.Client.PropertyName[], sLockToken?: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.WebDavRequest | null;
1576
+ }/**
1577
+ * The class represents set of extensions to be edited with Microsoft Office.
1578
+ * @api
1579
+ * @class ITHit.WebDAV.Client.MsOfficeEditExtensions
1580
+ * @examplecode ITHit.WebDAV.Client.Tests.DocManager.MsOfficeEditExtensions.EditRtfDocumentWithWord
1581
+ * @examplecode ITHit.WebDAV.Client.TSExamples.DocManager.MsOfficeEditExtensions.EditRtfDocumentWithWord
1582
+ */
1583
+ class MsOfficeEditExtensions {
1584
+ /**
1585
+ * Array of file extensions which are opened with Microsoft Access.
1586
+ * @api
1587
+ * @type {Array.<string>}
1588
+ */
1589
+ static Access: string[]
1590
+ Access: string[]
1591
+ /**
1592
+ * Array of file extensions which are opened with Microsoft Infopath.
1593
+ * @api
1594
+ * @type {Array.<string>}
1595
+ */
1596
+ static Infopath: string[]
1597
+ Infopath: string[]
1598
+ /**
1599
+ * Array of file extensions which are opened with Microsoft Excel.
1600
+ * @api
1601
+ * @type {Array.<string>}
1602
+ */
1603
+ static Excel: string[]
1604
+ Excel: string[]
1605
+ /**
1606
+ * Array of file extensions which are opened with Microsoft Powerpoint.
1607
+ * @api
1608
+ * @type {Array.<string>}
1609
+ */
1610
+ static Powerpoint: string[]
1611
+ Powerpoint: string[]
1612
+ /**
1613
+ * Array of file extensions which are opened with Microsoft Project.
1614
+ * @api
1615
+ * @type {Array.<string>}
1616
+ */
1617
+ static Project: string[]
1618
+ Project: string[]
1619
+ /**
1620
+ * Array of file extensions which are opened with Microsoft Publisher.
1621
+ * @api
1622
+ * @type {Array.<string>}
1623
+ */
1624
+ static Publisher: string[]
1625
+ Publisher: string[]
1626
+ /**
1627
+ * Array of file extensions which are opened with Microsoft Visio.
1628
+ * @api
1629
+ * @type {Array.<string>}
1630
+ */
1631
+ static Visio: string[]
1632
+ Visio: string[]
1633
+ /**
1634
+ * Array of file extensions which are opened with Microsoft Word.
1635
+ * @api
1636
+ * @type {Array.<string>}
1637
+ */
1638
+ static Word: string[]
1639
+ Word: string[]
1640
+ }/**
1641
+ * This class provides methods for opening documents for editing directly from server and saving back to server
1642
+ * without download and upload steps. This includes editing Microsoft Office documents as well as any other file
1643
+ * types and works on Windows, Mac OS X and Linux.
1644
+ * @api
1645
+ * @class ITHit.WebDAV.Client.DocManager
1646
+ */
1647
+ namespace DocManager{
1648
+ /**
1649
+ * Gets file names of the protocol installer depending on OS.
1650
+ * @api
1651
+ * @return {Array.<string>} An array with file names of the protocol installer.
1652
+ */
1653
+ function GetProtocolInstallFileNames(): string[];
1654
+ /**
1655
+ * Returns true if protocol application installer is supported for the OS on which this function is called, false - otherwise.
1656
+ * @api
1657
+ * @return {boolean} True if protocol application installer is supported for the OS on which this function is called.
1658
+ */
1659
+ function IsDavProtocolSupported(): boolean;
1660
+ /**
1661
+ * <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>
1662
+ * <i class="optional">The following functionality is supported in v3 Beta and later only:</i>
1663
+ * <p>
1664
+ * This function supports both challenge-response authentication (Basic, Digest, NTLM, Kerberos) and cookies authentication.
1665
+ * If <code>'None'</code> is specified in the <code>sSearchIn</code> parameter the challenge-response authentication is used, otherwise cookies authentication is used.
1666
+ * </p>
1667
+ * @api
1668
+ * @param {string} sFolderUrl URL of the folder to open in OS file manager. Must be a full URL including the domain name.
1669
+ * @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.
1670
+ * @param {function} [errorCallback] Function to call if file manager opening has failed. Typically you will request the protocol installation in this callback.
1671
+ * If not specified a default message offering protocol installation will be displayed.
1672
+ * @param {string} [reserved] Reserved for future use.
1673
+ * @param {string} [sSearchIn] <span class="optional">v3 Beta and later only.</span> Indicates cookies authentication. Allowed values are:
1674
+ * <ul>
1675
+ * <li><code>'Current'</code> - Copies cookies from web browser in which this script is running.</li>
1676
+ * <li><code>'None'</code> - do not search or copy any cookies.</li>
1677
+ * </ul>
1678
+ * Default is <code>'None'</code>.
1679
+ * @param {string} [sCookieNames] <span class="optional">v3 Beta and later only.</span> Coma separated list of cookie names to search for. Microsoft Office requires persistent cookie (with expiration date), it does not support session cookies.
1680
+ * @param {string} [sLoginUrl] <span class="optional">v3 Beta and later only.</span> Login URL to redirect to in case any cookies specified in <code>sCookieNames</code> parameter are not found.
1681
+ */
1682
+ function OpenFolderInOsFileManager(sFolderUrl: string, sMountUrl?: string, errorCallback?: Function, reserved?: string, sSearchIn?: string, sCookieNames?: string, sLoginUrl?: string): void;
1683
+ /**
1684
+ * Extracts extension and returns true if URL points to Microsoft Office Document.
1685
+ * @api
1686
+ * @param {string} sDocumentUrl URL of the document.
1687
+ * @return {boolean} True if URL points to Microsoft Office Document.
1688
+ */
1689
+ function IsMicrosoftOfficeDocument(sDocumentUrl: string): boolean;
1690
+ /**
1691
+ * 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.
1692
+ * @api
1693
+ * @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.
1694
+ */
1695
+ function MicrosoftOfficeEditDocument(sDocumentUrl: string): void;
1696
+ /**
1697
+ * <p>Opens document for editing. In case of Microsoft Office documents, it will try to use Microsoft Office protocols first.
1698
+ * If Microsoft Office protocols are not found it will use davX: protocol and prompt to install it if not found.</p>
1699
+ * <p>This function supports only challenge-response authentication (Basic, Digest, NTLM, Kerberos).
1700
+ * You can also use it to open MS Office documents from servers with MS-OFBA authentication.</p>
1701
+ * <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>
1702
+ * @example
1703
+ * &lt;!DOCTYPE html&gt;
1704
+ * &lt;html&gt;
1705
+ * &lt;head&gt;
1706
+ * &lt;meta charset="utf-8" /&gt;
1707
+ * &lt;script type="text/javascript" src="ITHitWebDAVClient.js" &gt;&lt;/script&gt;
1708
+ * &lt;/head&gt;
1709
+
1710
+ * &lt;body&gt;
1711
+ * &lt;script type="text/javascript"&gt;
1712
+ * function edit() {
1713
+ * ITHit.WebDAV.Client.DocManager.EditDocument("http://localhost:87654/folder/file.ext", "http://localhost:87654/", errorCallback);
1714
+ * }
1715
+ *
1716
+ * function errorCallback() {
1717
+ * var installerFilePath = "/Plugins/" + ITHit.WebDAV.Client.DocManager.GetProtocolInstallFileNames()[0];
1718
+ *
1719
+ * if (confirm("Opening this type of file requires a protocol installation. Select OK to download the protocol installer.")){
1720
+ * window.open(installerFilePath);
1721
+ * }
1722
+ * }
1723
+ * &lt;/script&gt;
1724
+ * &lt;input type="button" value="Edit Document" onclick="edit()" /&gt;
1725
+ * &lt;/body&gt;
1726
+ * &lt;/html&gt;
1727
+ * @api
1728
+ * @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.
1729
+ * @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.
1730
+ * @param {function} [errorCallback] Function to call if document opening failed. Typically you will request the protocol installation in this callback. This callback is executed for non-Microsoft Office documents only.
1731
+ * If not specified a default message offering protocol installation will be displayed.
1732
+ */
1733
+ function EditDocument(sDocumentUrl: string, sMountUrl?: string, errorCallback?: Function): void;
1734
+ /**
1735
+ * Extracts extension and returns true if the document can be edited in G Suite editor or document preview generated via G Suite.
1736
+ * @api
1737
+ * @param {string} sDocumentUrl URL of the document.
1738
+ * @return {boolean} True if URL points to GSuite Editor.
1739
+ */
1740
+ function IsGSuiteDocument(sDocumentUrl: string): boolean;
1741
+ /**
1742
+ * <p>Edit MS Office document with G Suite Online Editor.</p>
1743
+ * @api
1744
+ * @param {string} sDocumentUrl URL of the document to open for editing from server. Must be a full URL including the domain name.
1745
+ * @param {DOM} oContainerDomElement HTML DOM element where the G Suite online editor will be loaded. If this parameter is omitted or null is passed the editor will be created in a new tab/window.
1746
+ * @param {function} [errorCallback] Function to call if document opening failed.
1747
+ */
1748
+ function GSuiteEditDocument(sDocumentUrl: string, oContainerDomElement: any, errorCallback?: Function): void;
1749
+ /**
1750
+ * <p>Preview MS Office document with G Suite Online Tool.</p>
1751
+ * @api
1752
+ * @param {string} sDocumentUrl URL of the document to open for preview. Must be a full URL including the domain name.
1753
+ * @param {DOM} oContainerDomElement HTML DOM element where the G Suite preview will be loaded. If this parameter is omitted or null is passed the preview will be created in a new tab/window.
1754
+ * @param {function} [errorCallback] Function to call if document opening failed.
1755
+ */
1756
+ function GSuitePreviewDocument(sDocumentUrl: string, oContainerDomElement: any, errorCallback?: Function): void;
1757
+ /**
1758
+ * <p>Opens document for editing or printing using davX: protocol and prompts to install the protocol it if not found.</p>
1759
+ * <i class="optional">The following functionality is supported in v3 Beta and later only:</i>
1760
+ * <p>
1761
+ * This function supports both challenge-response authentication (Basic, Digest, NTLM, Kerberos) and cookies authentication.
1762
+ * If <code>'None'</code> is specified in the <code>sSearchIn</code> parameter the challenge-response authentication is used, otherwise cookies authentication is used.
1763
+ * </p>
1764
+ * @example
1765
+ * &lt;!DOCTYPE html&gt;
1766
+ * &lt;html&gt;
1767
+ * &lt;head&gt;
1768
+ * &lt;meta charset="utf-8" /&gt;
1769
+ * &lt;script type="text/javascript" src="ITHitWebDAVClient.js" &gt;&lt;/script&gt;
1770
+ * &lt;/head&gt;
1771
+ * &lt;body&gt;
1772
+ * &lt;script type="text/javascript"&gt;
1773
+ * function edit() {
1774
+ * ITHit.WebDAV.Client.DocManager.DavProtocolEditDocument(
1775
+ * 'http://localhost:87654/folder/file.ext', // Document URL(s)
1776
+ * 'http://localhost:87654/', // Mount URL
1777
+ * errorCallback, // Function to call if protocol app is not installed
1778
+ * null, // Reserved
1779
+ * 'Current', // Which browser to copy cookies from: 'Current', 'None'
1780
+ * '.AspNet.ApplicationCookie', // Cookie(s) to copy.
1781
+ * '/Account/Login', // URL to navigate to if any cookie from the list is not found.
1782
+ * 'Edit' // Command to execute: 'Edit', 'OpenWith', 'Print'
1783
+ * );
1784
+ * }
1785
+ *
1786
+ * function errorCallback() {
1787
+ * var installerFilePath = "/Plugins/" + ITHit.WebDAV.Client.DocManager.GetProtocolInstallFileNames()[0];
1788
+ *
1789
+ * if (confirm("Opening this type of file requires a protocol installation. Select OK to download the protocol installer.")){
1790
+ * window.open(installerFilePath);
1791
+ * }
1792
+ * }
1793
+ * &lt;/script&gt;
1794
+ * &lt;input type="button" value="Edit Document" onclick="edit()" /&gt;
1795
+ * &lt;/body&gt;
1796
+ * &lt;/html&gt;
1797
+ * @api
1798
+ * @param {string} sDocumentUrls Array of document URLs to be opened for editing from server. All documents must be located under the same mount URL (specified in <code>sMountUrl</code> parameter). Must be a full URL(s) including the domain name.
1799
+ * @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.
1800
+ * @param {function} [errorCallback] Function to call if document opening failed. Typically you will request the protocol installation in this callback.
1801
+ * If not specified a default message offering protocol installation will be displayed.
1802
+ * @param {string} [reserved] Reserved for future use.
1803
+ * @param {string} [sSearchIn] <span class="optional">v3 Beta and later only.</span> Indicates cookies authentication. Supported options are:
1804
+ * <ul>
1805
+ * <li><code>'Current'</code> - Copies cookies from web browser in which this script is running.</li>
1806
+ * <li><code>'None'</code> - do not search or copy any cookies.</li>
1807
+ * </ul>
1808
+ * Default is <code>'None'</code>.
1809
+ * @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.
1810
+ * @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.
1811
+ * @param {string} [sCommand] <span class="optional">v3 Beta and later only.</span> Command to use when opening the document. Supported options are:
1812
+ * <ul>
1813
+ * <li> <code>null</code> - Chooses an appropriate verb to open a document in the associated application.
1814
+ * <li> <code>'Edit'</code> - Opens a document for editing.
1815
+ * <li> <code>'Open'</code> - Opens a document in the associated application. Not applicable for some applications.
1816
+ * <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.
1817
+ * <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.
1818
+ * </ul>
1819
+ * Default is <code>null</code>.
1820
+ */
1821
+ function DavProtocolEditDocument(sDocumentUrls: string, sMountUrl?: string, errorCallback?: Function, reserved?: string, sSearchIn?: string, sCookieNames?: string, sLoginUrl?: string, sCommand?: string): void;
1822
+ }class DocManager {
1823
+ /**
1824
+ * Collection of extensions of files which are opened with Microsoft Office.
1825
+ * @api
1826
+ * @type {ITHit.WebDAV.Client.MsOfficeEditExtensions}
1827
+ * @examplecode ITHit.WebDAV.Client.Tests.DocManager.MsOfficeEditExtensions.EditDocumentTest
1828
+ * @examplecode ITHit.WebDAV.Client.TSExamples.DocManager.MsOfficeEditExtensions.EditDocumentTest
1829
+ */
1830
+ static MsOfficeEditExtensions: ITHit.WebDAV.Client.MsOfficeEditExtensions
1831
+ MsOfficeEditExtensions: ITHit.WebDAV.Client.MsOfficeEditExtensions
1832
+ /**
1833
+ * Timeout in milliseconds to call error callback if application associated with the extension did not start.
1834
+ * Default is 3000ms.
1835
+ * Used in Chrome / Internet Explorer / Safari if protocol application is not installed AND web browser protocol warning dialog is disabled AND EditDocument() / MicrosoftOfficeEditDocument() function is called (in case of Basic/Digest/Anonymous authentication).
1836
+ * NOT used in Firefox / Edge OR if DavProtocolEditDocument() is called OR if web browser protocol warning dialog is enabled.
1837
+ * @api
1838
+ * @type {number}
1839
+ */
1840
+ static ProtocolTimeoutMs: number
1841
+ ProtocolTimeoutMs: number
1842
+ }/**
1843
+ * Provides support partial uploads and resuming broken uploads.
1844
+ * @api
1845
+ * @class ITHit.WebDAV.Client.ResumableUpload
1846
+ */
1847
+ class ResumableUpload {
1848
+ /**
1849
+ * Get amount of bytes successfully uploaded to server.
1850
+ * @api
1851
+ * @param {ITHit.WebDAV.Client.ResumableUpload~GetBytesUploadedAsyncCallback} fCallback Function to call when operation is completed.
1852
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
1853
+ */
1854
+ GetBytesUploadedAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
1855
+ /**
1856
+ * Cancels upload of the file.
1857
+ * @api
1858
+ * @param {string} mLockTokens Lock token for this file.
1859
+ * @param {ITHit.WebDAV.Client.ResumableUpload~CancelUploadAsyncCallback} fCallback Function to call when operation is completed.
1860
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
1861
+ */
1862
+ CancelUploadAsync(mLockTokens: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
1863
+ }/**
1864
+ * Information about lock set on an item.
1865
+ * @api
1866
+ * @class ITHit.WebDAV.Client.GEditInfo
1867
+ */
1868
+ class GEditInfo {
1869
+ /**
1870
+ * File ID from google drive.
1871
+ * @api
1872
+ * @type {string}
1873
+ */
1874
+ GFileID: string
1875
+ /**
1876
+ * Revision ID from google drive.
1877
+ * @api
1878
+ * @type {string}
1879
+ */
1880
+ GRevisionID: string
1881
+ }/**
1882
+ * Represents a file on a WebDAV server.
1883
+ * @api
1884
+ * @class ITHit.WebDAV.Client.File
1885
+ * @extends ITHit.WebDAV.Client.HierarchyItem
1886
+ */
1887
+ namespace File{
1888
+ /**
1889
+ * Locks the item and upload to google drive.
1890
+ * @api
1891
+ * @param {ITHit.WebDAV.Client.Request} oRequest Current WebDAV session.
1892
+ * @param {string} sHref This item path on the server.
1893
+ * @returns {ITHit.WebDAV.Client.GEditInfo} Instance of GEditInfo.
1894
+ */
1895
+ function GEdit(oRequest: ITHit.WebDAV.Client.Request, sHref: string): ITHit.WebDAV.Client.GEditInfo;
1896
+ /**
1897
+ * Locks the item and upload to google drive.
1898
+ * @api
1899
+ * @param {ITHit.WebDAV.Client.Request} oRequest Current WebDAV session.
1900
+ * @param {string} sHref This item path on the server.
1901
+ * @param {ITHit.WebDAV.Client.File~GEditAsyncCallback} fCallback Function to call when operation is completed.
1902
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
1903
+ */
1904
+ function GEditAsync(oRequest: ITHit.WebDAV.Client.Request, sHref: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
1905
+ /**
1906
+ * Removes the lock and update file.
1907
+ * @api
1908
+ * @param {ITHit.WebDAV.Client.Request} oRequest Current WebDAV session.
1909
+ * @param {string} sHref This item path on the server.
1910
+ * @param {string} [sLockToken] Identifies lock to be prolonged.
1911
+ * @throws ITHit.WebDAV.Client.Exceptions.PreconditionFailedException The item is not locked.
1912
+ * @throws ITHit.WebDAV.Client.Exceptions.NotFoundException The item doesn't exist on the server.
1913
+ * @throws ITHit.WebDAV.Client.Exceptions.WebDavException Unexpected error occurred.
1914
+ */
1915
+ function GUnlock(oRequest: ITHit.WebDAV.Client.Request, sHref: string, sLockToken?: string): void;
1916
+ /**
1917
+ * Removes the lock and update file.
1918
+ * @api
1919
+ * @param {ITHit.WebDAV.Client.Request} oRequest Current WebDAV session.
1920
+ * @param {string} sHref This item path on the server.
1921
+ * @param {string} sLockToken Identifies lock to be prolonged.
1922
+ * @param {string} sRevisionID Revision ID of google file.
1923
+ * @param {ITHit.WebDAV.Client.File~GUnlockAsyncCallback} fCallback Function to call when operation is completed.
1924
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
1925
+ */
1926
+ function GUnlockAsync(oRequest: ITHit.WebDAV.Client.Request, sHref: string, sLockToken: string, sRevisionID: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
1927
+ }class File extends ITHit.WebDAV.Client.HierarchyItem {
1928
+ /**
1929
+ * Length of the file.
1930
+ * @api
1931
+ * @type {number}
1932
+ */
1933
+ ContentLength: number
1934
+ /**
1935
+ * Content type of the file.
1936
+ * @api
1937
+ * @type {string}
1938
+ */
1939
+ ContentType: string
1940
+ /**
1941
+ * ResumableUpload instance to manage partially failed uploads.
1942
+ * @api
1943
+ * @type {ITHit.WebDAV.Client.ResumableUpload}
1944
+ */
1945
+ ResumableUpload: ITHit.WebDAV.Client.ResumableUpload
1946
+ /**
1947
+ * Reads file content. To download only a part of a file you can specify 2 parameters in ReadContent call.
1948
+ * First parameter is the starting byte (zero-based) at witch to start content download, the second – amount
1949
+ * of bytes to be downloaded. The library will add Range header to the request in this case.
1950
+ * @api
1951
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.CreateFile.ReadContent
1952
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.CreateFile.ReadContentRange
1953
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.CreateFile.ReadContent
1954
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.CreateFile.ReadContentRange
1955
+ * @param {number} iBytesFrom Start position to retrieve lBytesCount number of bytes from.
1956
+ * @param {number} iBytesCount Number of bytes to retrieve.
1957
+ * @param {ITHit.WebDAV.Client.File~ReadContentAsyncCallback} fCallback Function to call when operation is completed.
1958
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
1959
+ */
1960
+ ReadContentAsync(iBytesFrom: number, iBytesCount: number, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
1961
+ /**
1962
+ * Writes file content.
1963
+ * @api
1964
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.CreateFile.OnlyWriteContent
1965
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.CreateFile.OnlyWriteContent
1966
+ * @param {string} sContent File content.
1967
+ * @param {string} sLockToken Lock token.
1968
+ * @param {string} sMimeType File mime-type.
1969
+ * @param {ITHit.WebDAV.Client.File~WriteContentAsyncCallback} fCallback Function to call when operation is completed.
1970
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
1971
+ */
1972
+ WriteContentAsync(sContent: string, sLockToken: string, sMimeType: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
1973
+ /**
1974
+ * Retrieves item versions.
1975
+ * @examplecode ITHit.WebDAV.Client.Tests.Versions.GetVersions.GetVersions
1976
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Versions.GetVersions.GetVersions
1977
+ * @api
1978
+ * @param {ITHit.WebDAV.Client.File~GetVersionsAsyncCallback} fCallback Function to call when operation is completed.
1979
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
1980
+ */
1981
+ GetVersionsAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
1982
+ /**
1983
+ * Update to version.
1984
+ * @examplecode ITHit.WebDAV.Client.Tests.Versions.ManageVersions.UpdateToVersion
1985
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Versions.ManageVersions.UpdateToVersion
1986
+ * @api
1987
+ * @param {string|ITHit.WebDAV.Client.Version} mVersion Href to file with version attribute or {@link ITHit.WebDAV.Client.Version} instance.
1988
+ * @param {ITHit.WebDAV.Client.File~UpdateToVersionAsyncCallback} fCallback Function to call when operation is completed.
1989
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
1990
+ */
1991
+ UpdateToVersionAsync(mVersion: string | ITHit.WebDAV.Client.Version, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
1992
+ /**
1993
+ * Enables / disables version control for this file.
1994
+ * @api
1995
+ * @examplecode ITHit.WebDAV.Client.Tests.Versions.PutUnderVersion.EnableVersion
1996
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Versions.PutUnderVersion.EnableVersion
1997
+ * @param {boolean} bEnable True to enable version-control, false - to disable.
1998
+ * @param {string} mLockToken Lock token for this item.
1999
+ * @param {ITHit.WebDAV.Client.File~PutUnderVersionControlAsyncCallback} fCallback Function to call when operation is completed.
2000
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2001
+ */
2002
+ PutUnderVersionControlAsync(bEnable: boolean, mLockToken: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2003
+ /**
2004
+ * Current WebDAV session.
2005
+ * @api
2006
+ * @type {ITHit.WebDAV.Client.WebDavSession}
2007
+ */
2008
+ Session: ITHit.WebDAV.Client.WebDavSession
2009
+ /**
2010
+ * This item path on the server.
2011
+ * @api
2012
+ * @type {string}
2013
+ */
2014
+ Href: string
2015
+ /**
2016
+ * Most recent modification date.
2017
+ * @api
2018
+ * @type {Date}
2019
+ */
2020
+ LastModified: Date
2021
+ /**
2022
+ * User friendly item name.
2023
+ * @api
2024
+ * @type {string}
2025
+ */
2026
+ DisplayName: string
2027
+ /**
2028
+ * The date item was created.
2029
+ * @api
2030
+ * @type {Date}
2031
+ */
2032
+ CreationDate: Date
2033
+ /**
2034
+ * Type of the item (File or Folder).
2035
+ * @api
2036
+ * @type {string}
2037
+ * @see ITHit.WebDAV.Client.ResourceType
2038
+ */
2039
+ ResourceType: string
2040
+ /**
2041
+ * Retrieves information about supported locks. Item can support exclusive, shared locks or do not support
2042
+ * any locks. If you set exclusive lock other users will not be able to set any locks. If you set shared
2043
+ * lock other users will be able to set shared lock on the item.
2044
+ * @api
2045
+ * @examplecode ITHit.WebDAV.Client.Tests.Locks.CheckSupport.CheckLockSupport
2046
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Locks.CheckSupport.CheckLockSupport
2047
+ * @type {Array.<string>}
2048
+ * @see ITHit.WebDAV.Client.LockScope
2049
+ */
2050
+ SupportedLocks: string[]
2051
+ /**
2052
+ * List of locks applied to this item.
2053
+ * @examplecode ITHit.WebDAV.Client.Tests.Locks.GetLocks.GetList
2054
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Locks.GetLocks.GetList
2055
+ * @api
2056
+ * @type {Array.<ITHit.WebDAV.Client.LockInfo>}
2057
+ */
2058
+ ActiveLocks: ITHit.WebDAV.Client.LockInfo[]
2059
+ /**
2060
+ * List of item properties.
2061
+ * @api
2062
+ * @type {ITHit.WebDAV.Client.PropertyList}
2063
+ */
2064
+ Properties: ITHit.WebDAV.Client.PropertyList
2065
+ /**
2066
+ * Returns true if file is under version control. Otherwise false. To detect if version control could
2067
+ * be enabled for this item call GetSupportedFeaturesAsync and check for VersionControl token.
2068
+ * To enable version control call PutUnderVersionControlAsync.
2069
+ * @api
2070
+ * @returns {boolean} Boolean, if true - versions supported
2071
+ */
2072
+ /**
2073
+ * Number of bytes available for this user on server. -1 if server does not support Quota.
2074
+ * @api
2075
+ * @type {number}
2076
+ */
2077
+ AvailableBytes: number
2078
+ /**
2079
+ * Number of bytes used by this user on server. -1 if server does not support Quota.
2080
+ * @api
2081
+ * @type {number}
2082
+ */
2083
+ UsedBytes: number
2084
+ /**
2085
+ * Refreshes item loading data from server.
2086
+ * @api
2087
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.Refresh.Refresh
2088
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.Refresh.Refresh
2089
+ * @param {ITHit.WebDAV.Client.HierarchyItem~RefreshAsyncCallback} fCallback Function to call when operation is completed.
2090
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2091
+ */
2092
+ RefreshAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2093
+ /**
2094
+ * Copies this item to destination folder.
2095
+ * @api
2096
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.CopyMove.Copy
2097
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.CopyMove.Copy
2098
+ * @param {ITHit.WebDAV.Client.Folder} oDestinationFolder Folder to move to.
2099
+ * @param {string} sDestinationName Name to assign to copied item.
2100
+ * @param {boolean} bDeep Indicates whether children of this item should be copied.
2101
+ * @param {boolean} bOverwrite Whether existing destination item shall be overwritten.
2102
+ * @param {ITHit.WebDAV.Client.LockUriTokenPair[]} [oLockTokens] Lock tokens for destination folder.
2103
+ * @param {ITHit.WebDAV.Client.HierarchyItem~CopyToAsyncCallback} fCallback Function to call when operation is completed.
2104
+ */
2105
+ CopyToAsync(oDestinationFolder: ITHit.WebDAV.Client.Folder, sDestinationName: string, bDeep: boolean, bOverwrite: boolean, oLockTokens?: ITHit.WebDAV.Client.LockUriTokenPair[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): void;
2106
+ /**
2107
+ * Deletes this item.
2108
+ * @api
2109
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.Delete.Delete
2110
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.Delete.Delete
2111
+ * @param {ITHit.WebDAV.Client.LockUriTokenPair} oLockTokens Lock tokens for this item or any locked child item.
2112
+ * @param {ITHit.WebDAV.Client.HierarchyItem~DeleteAsyncCallback} fCallback Function to call when operation is completed.
2113
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2114
+ */
2115
+ DeleteAsync(oLockTokens: ITHit.WebDAV.Client.LockUriTokenPair, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2116
+ /**
2117
+ * Returns names of all custom properties exposed by this item.
2118
+ * @api
2119
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyProperties.GetProperties.GetPropertyNames
2120
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyProperties.GetProperties.GetPropertyNames
2121
+ * @param {ITHit.WebDAV.Client.HierarchyItem~GetPropertyNamesAsyncCallback} fCallback Function to call when operation is completed.
2122
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2123
+ */
2124
+ GetPropertyNamesAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2125
+ /**
2126
+ * Retrieves values of specific properties.
2127
+ * @api
2128
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyProperties.GetProperties.GetPropertyValues
2129
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyProperties.GetProperties.GetPropertyValues
2130
+ * @param {ITHit.WebDAV.Client.PropertyName[]} aNames
2131
+ * @param {ITHit.WebDAV.Client.HierarchyItem~GetPropertyValuesAsyncCallback} fCallback Function to call when operation is completed.
2132
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2133
+ */
2134
+ GetPropertyValuesAsync(aNames: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2135
+ /**
2136
+ * Retrieves all custom properties exposed by the item.
2137
+ * @api
2138
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyProperties.GetProperties.GetAllProperties
2139
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyProperties.GetProperties.GetAllProperties
2140
+ * @param {ITHit.WebDAV.Client.HierarchyItem~GetAllPropertiesAsyncCallback} fCallback Function to call when operation is completed.
2141
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2142
+ */
2143
+ GetAllPropertiesAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2144
+ /**
2145
+ * Retrieves parent hierarchy item of this item.
2146
+ * @api
2147
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.GetParent.GetParent
2148
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.GetParent.GetParent
2149
+ * @param {ITHit.WebDAV.Client.PropertyName[]} aProperties Additional properties requested from server. Default is empty array.
2150
+ * @param {ITHit.WebDAV.Client.HierarchyItem~GetParentAsyncCallback} fCallback Function to call when operation is completed.
2151
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2152
+ */
2153
+ GetParentAsync(aProperties: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2154
+ /**
2155
+ * Retrieves media type independent links.
2156
+ * @api
2157
+ * @param {ITHit.WebDAV.Client.HierarchyItem~GetSourceAsyncCallback} fCallback Function to call when operation is completed.
2158
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2159
+ */
2160
+ GetSourceAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2161
+ /**
2162
+ * Locks the item. If the lock was successfully applied, the server will return a lock token. You will pass this
2163
+ * lock token back to the server when updating and unlocking the item. The actual lock time applied by the server
2164
+ * may be different from the one requested by the client.
2165
+ * @api
2166
+ * @examplecode ITHit.WebDAV.Client.Tests.Locks.Lock.SetLock
2167
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Locks.Lock.SetLock
2168
+ * @param {string} sLockScope Scope of the lock. See LockScope Enumeration {@link ITHit.WebDAV.Client.LockScope}
2169
+ * @param {boolean} bDeep Whether to lock entire subtree.
2170
+ * @param {string} sOwner Owner of the lock.
2171
+ * @param {number} iTimeout Timeout after which lock expires. Pass -1 to request an infinite timeout.
2172
+ * @param {ITHit.WebDAV.Client.HierarchyItem~LockAsyncCallback} fCallback Function to call when operation is completed.
2173
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2174
+ */
2175
+ LockAsync(sLockScope: string, bDeep: boolean, sOwner: string, iTimeout: number, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2176
+ /**
2177
+ * Moves this item to another location.
2178
+ * @api
2179
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.CopyMove.Move
2180
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.CopyMove.Move
2181
+ * @param {ITHit.WebDAV.Client.Folder} oDestinationFolder Folder to move to.
2182
+ * @param {string} sDestinationName Name to assign to moved item.
2183
+ * @param {boolean} bOverwrite Whether existing destination item shall be overwritten.
2184
+ * @param {(string|ITHit.WebDAV.Client.LockUriTokenPair[])} oLockTokens Lock tokens for item to be moved, for destination folder or file to be overwritten that are locked.
2185
+ * @param {ITHit.WebDAV.Client.HierarchyItem~MoveToAsyncCallback} fCallback Function to call when operation is completed.
2186
+ * @return {ITHit.WebDAV.Client.Request} Request object.
2187
+ */
2188
+ MoveToAsync(oDestinationFolder: ITHit.WebDAV.Client.Folder, sDestinationName: string, bOverwrite: boolean, oLockTokens: string | ITHit.WebDAV.Client.LockUriTokenPair[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2189
+ /**
2190
+ * Prolongs the lock.
2191
+ * @api
2192
+ * @examplecode ITHit.WebDAV.Client.Tests.Locks.RefreshLock.RefreshLock
2193
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Locks.RefreshLock.RefreshLock
2194
+ * @param {string} sLockToken Identifies lock to be prolonged.
2195
+ * @param {number} iTimeout New timeout to set.
2196
+ * @param {ITHit.WebDAV.Client.HierarchyItem~RefreshLockAsyncCallback} fCallback Function to call when operation is completed.
2197
+ * @return {ITHit.WebDAV.Client.Request} Request object.
2198
+ */
2199
+ RefreshLockAsync(sLockToken: string, iTimeout: number, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2200
+ /**
2201
+ * Gets features supported by this item, such as WebDAV class support.
2202
+ * @api
2203
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.SupportedFeatures.SupportedFeatures
2204
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.SupportedFeatures.SupportedFeatures
2205
+ * @param {ITHit.WebDAV.Client.HierarchyItem~GetSupportedFeaturesAsyncCallback} fCallback Function to call when operation is completed.
2206
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2207
+ */
2208
+ GetSupportedFeaturesAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2209
+ /**
2210
+ * Removes the lock.
2211
+ * @api
2212
+ * @examplecode ITHit.WebDAV.Client.Tests.Locks.Lock.SetUnLock
2213
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Locks.Lock.SetUnLock
2214
+ * @param {string} sLockToken Identifies lock to be prolonged.
2215
+ * @param {ITHit.WebDAV.Client.HierarchyItem~UnlockAsyncCallback} fCallback Function to call when operation is completed.
2216
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2217
+ */
2218
+ UnlockAsync(sLockToken: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2219
+ /**
2220
+ * Updates values of properties exposed by this item.
2221
+ * @api
2222
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyProperties.UpdateProperties.Update
2223
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyProperties.UpdateProperties.Delete
2224
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyProperties.UpdateProperties.Update
2225
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyProperties.UpdateProperties.Delete
2226
+ * @param {ITHit.WebDAV.Client.Property[]} oPropertiesToAddOrUpdate Properties to be updated.
2227
+ * @param {ITHit.WebDAV.Client.PropertyName[]} oPropertiesToDelete Names of properties to be removed from this item.
2228
+ * @param {string} [sLockToken] Lock token.
2229
+ * @param {ITHit.WebDAV.Client.HierarchyItem~UpdatePropertiesAsyncCallback} fCallback Function to call when operation is completed.
2230
+ * @returns {ITHit.WebDAV.Client.WebDavRequest|null} WebDAV request
2231
+ */
2232
+ UpdatePropertiesAsync(oPropertiesToAddOrUpdate: ITHit.WebDAV.Client.Property[], oPropertiesToDelete: ITHit.WebDAV.Client.PropertyName[], sLockToken?: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.WebDavRequest | null;
2233
+ }/**
2234
+ * @classdesc Represents a search request.
2235
+ * @constructs
2236
+ * @api
2237
+ * @param {string} sSearchPhrase Search phrase.
2238
+ */
2239
+ class SearchQuery {
2240
+ constructor(sSearchPhrase: string);
2241
+ /**
2242
+ * Search phrase.
2243
+ * @api
2244
+ * @type {string}
2245
+ */
2246
+ Phrase: string
2247
+ /**
2248
+ * <p>Properties to be returned from server with each item returned in search results.</p>
2249
+ * <p>This property can be used to request any additional data required in search results, such as snippet of
2250
+ * text around the search phrase, document title, author name, etc.</p>
2251
+ * @api
2252
+ * @type {ITHit.WebDAV.Client.PropertyName[]}
2253
+ */
2254
+ SelectProperties: ITHit.WebDAV.Client.PropertyName[]
2255
+ /**
2256
+ * Enables or disables search by properties specified in <code>LikeProperties</code> list. Default is <code>true</code>.
2257
+ * @api
2258
+ * @type {boolean}
2259
+ */
2260
+ EnableLike: boolean
2261
+ /**
2262
+ * List of properties to be used in like conditions. The search phrase will be searched in the properties specilied in this list.
2263
+ * @api
2264
+ * @type {ITHit.WebDAV.Client.PropertyName[]}
2265
+ */
2266
+ LikeProperties: ITHit.WebDAV.Client.PropertyName[]
2267
+ /**
2268
+ * Enables or disables search inside file content. Default is <code>true</code>.
2269
+ * @api
2270
+ * @type {boolean}
2271
+ */
2272
+ EnableContains: boolean
2273
+ }/**
2274
+ * Array of file and folder items that correspond to the offset, number of items and sorting conditions requested from server.
2275
+ * Also contains a total number of items in this folder or in search results.
2276
+ * @api
2277
+ * @class ITHit.WebDAV.Client.PageResults
2278
+ */
2279
+ class PageResults {
2280
+ /**
2281
+ * Total number of items in the folder or in search results.
2282
+ * @api
2283
+ * @type {number}
2284
+ */
2285
+ TotalItems: number
2286
+ /**
2287
+ * Items that correspond to the requested page and sorting.
2288
+ * @api
2289
+ * @type {ITHit.WebDAV.Client.HierarchyItem[]}
2290
+ */
2291
+ Page: ITHit.WebDAV.Client.HierarchyItem[]
2292
+ }/**
2293
+ * Represents a folder in a WebDAV repository.
2294
+ * @api
2295
+ * @class ITHit.WebDAV.Client.Folder
2296
+ * @extends ITHit.WebDAV.Client.HierarchyItem
2297
+ */
2298
+ class Folder extends ITHit.WebDAV.Client.HierarchyItem {
2299
+ /**
2300
+ * Creates a new folder with a specified name as child of this folder.
2301
+ * @api
2302
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.CreateFolder.CreateFolder
2303
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.CreateFolder.CreateFolder
2304
+ * @param {string} sName Name of the new folder.
2305
+ * @param {string} [sLockTokens] Lock token for ITHit.WebDAV.Client.Folder folder.
2306
+ * @param {ITHit.WebDAV.Client.PropertyName[]} aProperties Additional properties requested from server. Default is empty array.
2307
+ * @param {ITHit.WebDAV.Client.Folder~CreateFolderAsyncCallback} fCallback Function to call when operation is completed.
2308
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2309
+ */
2310
+ CreateFolderAsync(sName: string, sLockTokens?: string, aProperties?: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2311
+ /**
2312
+ * Creates a new file with a specified name as a child of this folder.
2313
+ * @api
2314
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.CreateFile.CreateAndWriteContent
2315
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.CreateFile.CreateAndWriteContent
2316
+ * @param {string} sName Name of the new file.
2317
+ * @param {string} sLockTokens Lock token for current folder.
2318
+ * @param {string} sContent File content.
2319
+ * @param {ITHit.WebDAV.Client.PropertyName[]} aProperties Additional properties requested from server. Default is empty array.
2320
+ * @param {ITHit.WebDAV.Client.Folder~CreateFileAsyncCallback} fCallback Function to call when operation is completed.
2321
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2322
+ */
2323
+ CreateFileAsync(sName: string, sLockTokens: string, sContent: string, aProperties: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2324
+ /**
2325
+ * Gets specified number of children of this folder that correspond to requested offset and sorting. Use GetSupportedFeaturesAsync() function to detect if paging is supported.
2326
+ * @api
2327
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.GetFolderItems.GetPage
2328
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.GetFolderItems.GetPage
2329
+ * @param {ITHit.WebDAV.Client.PropertyName[]} [aProperties] Additional properties requested from server. If null is specified, only default properties are returned.
2330
+ * @param {number} [nOffset] The number of items to skip before returning the remaining items.
2331
+ * @param {number} [nResults] The number of items to return.
2332
+ * @param {ITHit.WebDAV.Client.OrderProperty[]} [aOrderProperties] List of order properties.
2333
+ * @param {ITHit.WebDAV.Client.Folder~GetPageAsyncCallback} fCallback Function to call when operation is completed.
2334
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2335
+ */
2336
+ GetPageAsync(aProperties?: ITHit.WebDAV.Client.PropertyName[], nOffset?: number, nResults?: number, aOrderProperties?: ITHit.WebDAV.Client.OrderProperty[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2337
+ /**
2338
+ * This method returns all items contained in the folder, which may be very large. To limit amount of items returned and get only a single results page use [GetPageAsync]{@link ITHit.WebDAV.Client.Folder#GetPageAsync} function instead.
2339
+ * @api
2340
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.GetFolderItems.GetChildren
2341
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.GetFolderItems.GetChildren
2342
+ * @param {boolean} bRecursively Indicates if all subtree of children should be return. Default is false.
2343
+ * @param {ITHit.WebDAV.Client.PropertyName[]} aProperties Additional properties requested from server. If null is specified, only default properties are returned.
2344
+ * @param {ITHit.WebDAV.Client.Folder~GetChildrenAsyncCallback} fCallback Function to call when operation is completed.
2345
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2346
+ */
2347
+ GetChildrenAsync(bRecursively: boolean, aProperties: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2348
+ /**
2349
+ * Gets the specified folder from server.
2350
+ * @api
2351
+ * @param {string} sName Name of the folder.
2352
+ * @param {ITHit.WebDAV.Client.Folder~GetFolderAsyncCallback} fCallback Function to call when operation is completed.
2353
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2354
+ */
2355
+ GetFolderAsync(sName: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2356
+ /**
2357
+ * Gets the specified file from server.
2358
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.GetItemByFolder.GetFile
2359
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.GetItemByFolder.GetFile
2360
+ * @api
2361
+ * @param {string} sName Name of the file.
2362
+ * @param {ITHit.WebDAV.Client.Folder~GetFileAsyncCallback} fCallback Function to call when operation is completed.
2363
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2364
+ */
2365
+ GetFileAsync(sName: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2366
+ /**
2367
+ * Gets the specified item from server.
2368
+ * @api
2369
+ * @param {string} sName Name of the item.
2370
+ * @param {ITHit.WebDAV.Client.Folder~GetItemAsyncCallback} fCallback Function to call when operation is completed.
2371
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2372
+ */
2373
+ GetItemAsync(sName: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2374
+ /**
2375
+ * Checks whether specified item exists in the folder.
2376
+ * @api
2377
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.ItemExists.ItemExists
2378
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.ItemExists.ItemExists
2379
+ * @param {string} sName Name of the item.
2380
+ * @param {ITHit.WebDAV.Client.Folder~ItemExistsAsyncCallback} fCallback Function to call when operation is completed.
2381
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2382
+ */
2383
+ ItemExistsAsync(sName: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2384
+ /**
2385
+ * This method returns all items found on the server, which may be very large. To limit amount of items returned and get only a single results page use [GetSearchPageByQueryAsync]{@link ITHit.WebDAV.Client.Folder#GetSearchPageByQueryAsync} function instead.
2386
+ * @api
2387
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.Search.SearchByQuery
2388
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.Search.SearchByQuery
2389
+ * @param {ITHit.WebDAV.Client.SearchQuery} oSearchQuery Object with search query conditions.
2390
+ * @param {ITHit.WebDAV.Client.Folder~SearchByQueryAsyncCallback} fCallback Function to call when operation is completed.
2391
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2392
+ */
2393
+ SearchByQueryAsync(oSearchQuery: ITHit.WebDAV.Client.SearchQuery, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2394
+ /**
2395
+ * Searches folder by query. Returns specified number of search result items that correspond to requested offset and sorting. Use GetSupportedFeaturesAsync() function to detect if paging is supported.
2396
+ * @api
2397
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.Search.GetSearchPageByQuery
2398
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.Search.GetSearchPageByQuery
2399
+ * @param {ITHit.WebDAV.Client.SearchQuery} oSearchQuery Object with search query conditions.
2400
+ * @param {number} [nOffset] The number of items to skip before returning the remaining items.
2401
+ * @param {number} [nResults] The number of items to return.
2402
+ * @param {ITHit.WebDAV.Client.Folder~GetSearchPageByQueryAsyncCallback} fCallback Function to call when operation is completed.
2403
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2404
+ */
2405
+ GetSearchPageByQueryAsync(oSearchQuery: ITHit.WebDAV.Client.SearchQuery, nOffset?: number, nResults?: number, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2406
+ /**
2407
+ * Searches folder by search string. To limit amount of items returned and get only a single results page use [GetSearchPageAsync]{@link ITHit.WebDAV.Client.Folder#GetSearchPageAsync} function instead.
2408
+ * @api
2409
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.Search.SearchByString
2410
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.Search.SearchByString
2411
+ * @param {string} sSearchQuery String of search query.
2412
+ * @param {ITHit.WebDAV.Client.PropertyName[]} [aProperties] Additional properties requested from server. If null is specified, only default properties are returned.
2413
+ * @param {ITHit.WebDAV.Client.Folder~SearchAsyncCallback} fCallback Function to call when operation is completed.
2414
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2415
+ */
2416
+ SearchAsync(sSearchQuery: string, aProperties?: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2417
+ /**
2418
+ * Searches folder by search string. Returns specified number of search result items that correspond to requested offset and sorting. Use GetSupportedFeaturesAsync() function to detect if paging is supported.
2419
+ * @api
2420
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.Search.GetSearchPageByString
2421
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.Search.GetSearchPageByString
2422
+ * @param {string} sSearchQuery String of search query.
2423
+ * @param {ITHit.WebDAV.Client.PropertyName[]} [aProperties] Additional properties requested from server. If null is specified, only default properties are returned.
2424
+ * @param {number} [nOffset] The number of items to skip before returning the remaining items.
2425
+ * @param {number} [nResults] The number of items to return.
2426
+ * @param {ITHit.WebDAV.Client.Folder~GetSearchPageAsyncCallback} fCallback Function to call when operation is completed.
2427
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2428
+ */
2429
+ GetSearchPageAsync(sSearchQuery: string, aProperties?: ITHit.WebDAV.Client.PropertyName[], nOffset?: number, nResults?: number, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2430
+ /**
2431
+ * Current WebDAV session.
2432
+ * @api
2433
+ * @type {ITHit.WebDAV.Client.WebDavSession}
2434
+ */
2435
+ Session: ITHit.WebDAV.Client.WebDavSession
2436
+ /**
2437
+ * This item path on the server.
2438
+ * @api
2439
+ * @type {string}
2440
+ */
2441
+ Href: string
2442
+ /**
2443
+ * Most recent modification date.
2444
+ * @api
2445
+ * @type {Date}
2446
+ */
2447
+ LastModified: Date
2448
+ /**
2449
+ * User friendly item name.
2450
+ * @api
2451
+ * @type {string}
2452
+ */
2453
+ DisplayName: string
2454
+ /**
2455
+ * The date item was created.
2456
+ * @api
2457
+ * @type {Date}
2458
+ */
2459
+ CreationDate: Date
2460
+ /**
2461
+ * Type of the item (File or Folder).
2462
+ * @api
2463
+ * @type {string}
2464
+ * @see ITHit.WebDAV.Client.ResourceType
2465
+ */
2466
+ ResourceType: string
2467
+ /**
2468
+ * Retrieves information about supported locks. Item can support exclusive, shared locks or do not support
2469
+ * any locks. If you set exclusive lock other users will not be able to set any locks. If you set shared
2470
+ * lock other users will be able to set shared lock on the item.
2471
+ * @api
2472
+ * @examplecode ITHit.WebDAV.Client.Tests.Locks.CheckSupport.CheckLockSupport
2473
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Locks.CheckSupport.CheckLockSupport
2474
+ * @type {Array.<string>}
2475
+ * @see ITHit.WebDAV.Client.LockScope
2476
+ */
2477
+ SupportedLocks: string[]
2478
+ /**
2479
+ * List of locks applied to this item.
2480
+ * @examplecode ITHit.WebDAV.Client.Tests.Locks.GetLocks.GetList
2481
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Locks.GetLocks.GetList
2482
+ * @api
2483
+ * @type {Array.<ITHit.WebDAV.Client.LockInfo>}
2484
+ */
2485
+ ActiveLocks: ITHit.WebDAV.Client.LockInfo[]
2486
+ /**
2487
+ * List of item properties.
2488
+ * @api
2489
+ * @type {ITHit.WebDAV.Client.PropertyList}
2490
+ */
2491
+ Properties: ITHit.WebDAV.Client.PropertyList
2492
+ /**
2493
+ * Returns true if file is under version control. Otherwise false. To detect if version control could
2494
+ * be enabled for this item call GetSupportedFeaturesAsync and check for VersionControl token.
2495
+ * To enable version control call PutUnderVersionControlAsync.
2496
+ * @api
2497
+ * @returns {boolean} Boolean, if true - versions supported
2498
+ */
2499
+ /**
2500
+ * Number of bytes available for this user on server. -1 if server does not support Quota.
2501
+ * @api
2502
+ * @type {number}
2503
+ */
2504
+ AvailableBytes: number
2505
+ /**
2506
+ * Number of bytes used by this user on server. -1 if server does not support Quota.
2507
+ * @api
2508
+ * @type {number}
2509
+ */
2510
+ UsedBytes: number
2511
+ /**
2512
+ * Refreshes item loading data from server.
2513
+ * @api
2514
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.Refresh.Refresh
2515
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.Refresh.Refresh
2516
+ * @param {ITHit.WebDAV.Client.HierarchyItem~RefreshAsyncCallback} fCallback Function to call when operation is completed.
2517
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2518
+ */
2519
+ RefreshAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2520
+ /**
2521
+ * Copies this item to destination folder.
2522
+ * @api
2523
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.CopyMove.Copy
2524
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.CopyMove.Copy
2525
+ * @param {ITHit.WebDAV.Client.Folder} oDestinationFolder Folder to move to.
2526
+ * @param {string} sDestinationName Name to assign to copied item.
2527
+ * @param {boolean} bDeep Indicates whether children of this item should be copied.
2528
+ * @param {boolean} bOverwrite Whether existing destination item shall be overwritten.
2529
+ * @param {ITHit.WebDAV.Client.LockUriTokenPair[]} [oLockTokens] Lock tokens for destination folder.
2530
+ * @param {ITHit.WebDAV.Client.HierarchyItem~CopyToAsyncCallback} fCallback Function to call when operation is completed.
2531
+ */
2532
+ CopyToAsync(oDestinationFolder: ITHit.WebDAV.Client.Folder, sDestinationName: string, bDeep: boolean, bOverwrite: boolean, oLockTokens?: ITHit.WebDAV.Client.LockUriTokenPair[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): void;
2533
+ /**
2534
+ * Deletes this item.
2535
+ * @api
2536
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.Delete.Delete
2537
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.Delete.Delete
2538
+ * @param {ITHit.WebDAV.Client.LockUriTokenPair} oLockTokens Lock tokens for this item or any locked child item.
2539
+ * @param {ITHit.WebDAV.Client.HierarchyItem~DeleteAsyncCallback} fCallback Function to call when operation is completed.
2540
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2541
+ */
2542
+ DeleteAsync(oLockTokens: ITHit.WebDAV.Client.LockUriTokenPair, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2543
+ /**
2544
+ * Returns names of all custom properties exposed by this item.
2545
+ * @api
2546
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyProperties.GetProperties.GetPropertyNames
2547
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyProperties.GetProperties.GetPropertyNames
2548
+ * @param {ITHit.WebDAV.Client.HierarchyItem~GetPropertyNamesAsyncCallback} fCallback Function to call when operation is completed.
2549
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2550
+ */
2551
+ GetPropertyNamesAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2552
+ /**
2553
+ * Retrieves values of specific properties.
2554
+ * @api
2555
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyProperties.GetProperties.GetPropertyValues
2556
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyProperties.GetProperties.GetPropertyValues
2557
+ * @param {ITHit.WebDAV.Client.PropertyName[]} aNames
2558
+ * @param {ITHit.WebDAV.Client.HierarchyItem~GetPropertyValuesAsyncCallback} fCallback Function to call when operation is completed.
2559
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2560
+ */
2561
+ GetPropertyValuesAsync(aNames: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2562
+ /**
2563
+ * Retrieves all custom properties exposed by the item.
2564
+ * @api
2565
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyProperties.GetProperties.GetAllProperties
2566
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyProperties.GetProperties.GetAllProperties
2567
+ * @param {ITHit.WebDAV.Client.HierarchyItem~GetAllPropertiesAsyncCallback} fCallback Function to call when operation is completed.
2568
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2569
+ */
2570
+ GetAllPropertiesAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2571
+ /**
2572
+ * Retrieves parent hierarchy item of this item.
2573
+ * @api
2574
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.GetParent.GetParent
2575
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.GetParent.GetParent
2576
+ * @param {ITHit.WebDAV.Client.PropertyName[]} aProperties Additional properties requested from server. Default is empty array.
2577
+ * @param {ITHit.WebDAV.Client.HierarchyItem~GetParentAsyncCallback} fCallback Function to call when operation is completed.
2578
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2579
+ */
2580
+ GetParentAsync(aProperties: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2581
+ /**
2582
+ * Retrieves media type independent links.
2583
+ * @api
2584
+ * @param {ITHit.WebDAV.Client.HierarchyItem~GetSourceAsyncCallback} fCallback Function to call when operation is completed.
2585
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2586
+ */
2587
+ GetSourceAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2588
+ /**
2589
+ * Locks the item. If the lock was successfully applied, the server will return a lock token. You will pass this
2590
+ * lock token back to the server when updating and unlocking the item. The actual lock time applied by the server
2591
+ * may be different from the one requested by the client.
2592
+ * @api
2593
+ * @examplecode ITHit.WebDAV.Client.Tests.Locks.Lock.SetLock
2594
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Locks.Lock.SetLock
2595
+ * @param {string} sLockScope Scope of the lock. See LockScope Enumeration {@link ITHit.WebDAV.Client.LockScope}
2596
+ * @param {boolean} bDeep Whether to lock entire subtree.
2597
+ * @param {string} sOwner Owner of the lock.
2598
+ * @param {number} iTimeout Timeout after which lock expires. Pass -1 to request an infinite timeout.
2599
+ * @param {ITHit.WebDAV.Client.HierarchyItem~LockAsyncCallback} fCallback Function to call when operation is completed.
2600
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2601
+ */
2602
+ LockAsync(sLockScope: string, bDeep: boolean, sOwner: string, iTimeout: number, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2603
+ /**
2604
+ * Moves this item to another location.
2605
+ * @api
2606
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.CopyMove.Move
2607
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.CopyMove.Move
2608
+ * @param {ITHit.WebDAV.Client.Folder} oDestinationFolder Folder to move to.
2609
+ * @param {string} sDestinationName Name to assign to moved item.
2610
+ * @param {boolean} bOverwrite Whether existing destination item shall be overwritten.
2611
+ * @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.
2612
+ * @param {ITHit.WebDAV.Client.HierarchyItem~MoveToAsyncCallback} fCallback Function to call when operation is completed.
2613
+ * @return {ITHit.WebDAV.Client.Request} Request object.
2614
+ */
2615
+ MoveToAsync(oDestinationFolder: ITHit.WebDAV.Client.Folder, sDestinationName: string, bOverwrite: boolean, oLockTokens: string | ITHit.WebDAV.Client.LockUriTokenPair[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2616
+ /**
2617
+ * Prolongs the lock.
2618
+ * @api
2619
+ * @examplecode ITHit.WebDAV.Client.Tests.Locks.RefreshLock.RefreshLock
2620
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Locks.RefreshLock.RefreshLock
2621
+ * @param {string} sLockToken Identifies lock to be prolonged.
2622
+ * @param {number} iTimeout New timeout to set.
2623
+ * @param {ITHit.WebDAV.Client.HierarchyItem~RefreshLockAsyncCallback} fCallback Function to call when operation is completed.
2624
+ * @return {ITHit.WebDAV.Client.Request} Request object.
2625
+ */
2626
+ RefreshLockAsync(sLockToken: string, iTimeout: number, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2627
+ /**
2628
+ * Gets features supported by this item, such as WebDAV class support.
2629
+ * @api
2630
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.SupportedFeatures.SupportedFeatures
2631
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.SupportedFeatures.SupportedFeatures
2632
+ * @param {ITHit.WebDAV.Client.HierarchyItem~GetSupportedFeaturesAsyncCallback} fCallback Function to call when operation is completed.
2633
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2634
+ */
2635
+ GetSupportedFeaturesAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2636
+ /**
2637
+ * Removes the lock.
2638
+ * @api
2639
+ * @examplecode ITHit.WebDAV.Client.Tests.Locks.Lock.SetUnLock
2640
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Locks.Lock.SetUnLock
2641
+ * @param {string} sLockToken Identifies lock to be prolonged.
2642
+ * @param {ITHit.WebDAV.Client.HierarchyItem~UnlockAsyncCallback} fCallback Function to call when operation is completed.
2643
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2644
+ */
2645
+ UnlockAsync(sLockToken: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2646
+ /**
2647
+ * Updates values of properties exposed by this item.
2648
+ * @api
2649
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyProperties.UpdateProperties.Update
2650
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyProperties.UpdateProperties.Delete
2651
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyProperties.UpdateProperties.Update
2652
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyProperties.UpdateProperties.Delete
2653
+ * @param {ITHit.WebDAV.Client.Property[]} oPropertiesToAddOrUpdate Properties to be updated.
2654
+ * @param {ITHit.WebDAV.Client.PropertyName[]} oPropertiesToDelete Names of properties to be removed from this item.
2655
+ * @param {string} [sLockToken] Lock token.
2656
+ * @param {ITHit.WebDAV.Client.HierarchyItem~UpdatePropertiesAsyncCallback} fCallback Function to call when operation is completed.
2657
+ * @returns {ITHit.WebDAV.Client.WebDavRequest|null} WebDAV request
2658
+ */
2659
+ UpdatePropertiesAsync(oPropertiesToAddOrUpdate: ITHit.WebDAV.Client.Property[], oPropertiesToDelete: ITHit.WebDAV.Client.PropertyName[], sLockToken?: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.WebDavRequest | null;
2660
+ }/**
2661
+ * Represents a version on a WebDAV server.
2662
+ * @api
2663
+ * @class ITHit.WebDAV.Client.Version
2664
+ * @extends ITHit.WebDAV.Client.File
2665
+ */
2666
+ class Version extends ITHit.WebDAV.Client.File {
2667
+ /**
2668
+ * This property contains a server-defined string that is different for each version.
2669
+ * This string is intended for display for a user.
2670
+ * @api
2671
+ * @type {string}
2672
+ */
2673
+ VersionName: string
2674
+ /**
2675
+ * @api
2676
+ * @type {string}
2677
+ */
2678
+ CreatorDisplayName: string
2679
+ /**
2680
+ * @api
2681
+ * @type {string}
2682
+ */
2683
+ Comment: string
2684
+ /**
2685
+ * Update file to current version.
2686
+ * @examplecode ITHit.WebDAV.Client.Tests.Versions.ManageVersions.UpdateToThis
2687
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Versions.ManageVersions.UpdateToThis
2688
+ * @api
2689
+ * @param {ITHit.WebDAV.Client.Version~UpdateToThisVersionAsync} fCallback Function to call when operation is completed.
2690
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2691
+ */
2692
+ UpdateToThisAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2693
+ /**
2694
+ * Read file content. To download only a part of a file you can specify 2 parameters in ReadContent call.
2695
+ * First parameter is the starting byte (zero-based) at witch to start content download, the second – amount
2696
+ * of bytes to be downloaded. The library will add Range header to the request in this case.
2697
+ * @examplecode ITHit.WebDAV.Client.Tests.Versions.ReadContent.ReadContent
2698
+ * @examplecode ITHit.WebDAV.Client.TSExamples.Versions.ReadContent.ReadContent
2699
+ * @api
2700
+ * @param {number} iBytesFrom Start position to retrieve lBytesCount number of bytes from.
2701
+ * @param {number} iBytesCount Number of bytes to retrieve.
2702
+ * @param {ITHit.WebDAV.Client.File~ReadContentAsyncCallback} fCallback Function to call when operation is completed.
2703
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2704
+ */
2705
+ ReadContentAsync(iBytesFrom: number, iBytesCount: number, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2706
+ /**
2707
+ * Writes file content.
2708
+ * @api
2709
+ * @param {string} sContent File content.
2710
+ * @param {string} sLockToken Lock token.
2711
+ * @param {string} sMimeType File mime-type.
2712
+ * @param {ITHit.WebDAV.Client.File~WriteContentAsyncCallback} fCallback Function to call when operation is completed.
2713
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2714
+ */
2715
+ WriteContentAsync(sContent: string, sLockToken: string, sMimeType: string, fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2716
+ /**
2717
+ * Refreshes item loading data from server.
2718
+ * @api
2719
+ * @param {ITHit.WebDAV.Client.HierarchyItem~RefreshAsyncCallback} fCallback Function to call when operation is completed.
2720
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2721
+ */
2722
+ RefreshAsync(fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
2723
+ /**
2724
+ * Length of the file.
2725
+ * @api
2726
+ * @type {number}
2727
+ */
2728
+ ContentLength: number
2729
+ /**
2730
+ * Content type of the file.
2731
+ * @api
2732
+ * @type {string}
2733
+ */
2734
+ ContentType: string
2735
+ /**
2736
+ * Current WebDAV session.
2737
+ * @api
2738
+ * @type {ITHit.WebDAV.Client.WebDavSession}
2739
+ */
2740
+ Session: ITHit.WebDAV.Client.WebDavSession
2741
+ /**
2742
+ * This item path on the server.
2743
+ * @api
2744
+ * @type {string}
2745
+ */
2746
+ Href: string
2747
+ /**
2748
+ * User friendly item name.
2749
+ * @api
2750
+ * @type {string}
2751
+ */
2752
+ DisplayName: string
2753
+ /**
2754
+ * The date item was created.
2755
+ * @api
2756
+ * @type {Date}
2757
+ */
2758
+ CreationDate: Date
2759
+ /**
2760
+ * List of item properties.
2761
+ * @api
2762
+ * @type {ITHit.WebDAV.Client.PropertyList}
2763
+ */
2764
+ Properties: ITHit.WebDAV.Client.PropertyList
2765
+ }/**
2766
+ * Represents information about errors occurred in different elements.
2767
+ * @api
2768
+ * @class ITHit.WebDAV.Client.Error
2769
+ */
2770
+ class Error {
2771
+ /**
2772
+ * Gets the generic description, if available.
2773
+ * @api
2774
+ * @type {string}
2775
+ */
2776
+ Description: string
2777
+ /**
2778
+ * Array of the errors returned by server.
2779
+ * @api
2780
+ * @type {ITHit.WebDAV.Client.MultistatusResponse[]}
2781
+ */
2782
+ Responses: ITHit.WebDAV.Client.MultistatusResponse[]
2783
+ }/**
2784
+ * This class represents asynchronous request to WebDAV server. The instance of this class is returned from most
2785
+ * asynchronous methods of the library. You can use it to cancel the request calling Abort() method of this class
2786
+ * as well as to show progress attaching to Progress event.
2787
+ * @api
2788
+ * @class ITHit.WebDAV.Client.WebDavRequest
2789
+ */
2790
+ class WebDavRequest {
2791
+ }/**
2792
+ * Represents a context for one or many requests.
2793
+ * @api
2794
+ * @class ITHit.WebDAV.Client.RequestProgress
2795
+ */
2796
+ class RequestProgress {
2797
+ /**
2798
+ * Progress in percents
2799
+ * @api
2800
+ * @type {number}
2801
+ */
2802
+ Percent: number
2803
+ /**
2804
+ * Count of complete operations
2805
+ * @api
2806
+ * @type {number}
2807
+ */
2808
+ CountComplete: number
2809
+ /**
2810
+ * Total operations count
2811
+ * @api
2812
+ * @type {number}
2813
+ */
2814
+ CountTotal: number
2815
+ /**
2816
+ * Count of loaded bytes
2817
+ * @api
2818
+ * @type {number}
2819
+ */
2820
+ BytesLoaded: number
2821
+ /**
2822
+ * Total bytes. This param can be changed in progress, if request has many operations (sub-requests).
2823
+ * @api
2824
+ * @type {number}
2825
+ */
2826
+ BytesTotal: number
2827
+ /**
2828
+ * Flag indicating if the resource concerned by the XMLHttpRequest ProgressEvent has a length that can be calculated.
2829
+ * @api
2830
+ * @type {boolean}
2831
+ */
2832
+ LengthComputable: boolean
2833
+ }/**
2834
+ * Represents a context for one or many requests.
2835
+ * @api
2836
+ * @fires ITHit.WebDAV.Client.Request#OnProgress
2837
+ * @fires ITHit.WebDAV.Client.Request#OnError
2838
+ * @fires ITHit.WebDAV.Client.Request#OnFinish
2839
+ * @class ITHit.WebDAV.Client.Request
2840
+ */
2841
+ class Request {
2842
+ /**
2843
+ * Progress event trigger on update information about request progress.
2844
+ * See {@link ITHit.WebDAV.Client.RequestProgress} for more information.
2845
+ * @api
2846
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.Progress.Progress
2847
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.Progress.Progress
2848
+ * @event ITHit.WebDAV.Client.Request#OnProgress
2849
+ * @property {ITHit.WebDAV.Client.RequestProgress} Progress Progress info instance
2850
+ * @property {ITHit.WebDAV.Client.Request} Request Current request
2851
+ */
2852
+ /**
2853
+ * Error event trigger when one of request operations have error.
2854
+ * Notice: This event trigger before async method callback.
2855
+ * @api
2856
+ * @event ITHit.WebDAV.Client.Request#OnError
2857
+ * @property {Error|ITHit.WebDAV.Client.Exceptions.WebDavException} Error Error object
2858
+ * @property {ITHit.WebDAV.Client.Request} Request Current request
2859
+ */
2860
+ /**
2861
+ * Finish event trigger once when all operations in requests is complete.
2862
+ * Notice: This event trigger before async method callback.
2863
+ * @api
2864
+ * @event ITHit.WebDAV.Client.Request#OnFinish
2865
+ * @property {ITHit.WebDAV.Client.Request} Request Current request
2866
+ */
2867
+ /**
2868
+ * Progress info object, auto updated on `OnProgress` event.
2869
+ * @api
2870
+ * @type {ITHit.WebDAV.Client.RequestProgress}
2871
+ */
2872
+ Progress: ITHit.WebDAV.Client.RequestProgress
2873
+ /**
2874
+ * @api
2875
+ * @param {string} sEventName
2876
+ * @param {function} fCallback
2877
+ * @param {object} [oContext]
2878
+ */
2879
+ AddListener(sEventName: string, fCallback: Function, oContext?: object): void;
2880
+ /**
2881
+ * @api
2882
+ * @param {string} sEventName
2883
+ * @param {function} fCallback
2884
+ * @param {object} [oContext]
2885
+ */
2886
+ RemoveListener(sEventName: string, fCallback: Function, oContext?: object): void;
2887
+ /**
2888
+ * Cancels asynchronous request. The Finish event and the callback function will be called immediately after this method call.
2889
+ * @api
2890
+ */
2891
+ Abort(): void;
2892
+ }/**
2893
+ * @classdesc Session for accessing WebDAV servers.
2894
+ * @example
2895
+ * &lt;!DOCTYPE html&gt;
2896
+ * &lt;html lang="en"&gt;
2897
+ * &lt;head&gt;
2898
+ * &lt;title&gt;IT Hit WebDAV Ajax Library&lt;/title&gt;
2899
+ * &lt;script src="http://www.ajaxbrowser.com/ITHitService/WebDAVAJAXLibrary/ITHitWebDAVClient.js" type="text/javascript"&gt;&lt;/script&gt;
2900
+ * &lt;script type="text/javascript"&gt;
2901
+ * var sFolderUrl = 'http://localhost:35829/';
2902
+ * var oSession = new ITHit.WebDAV.Client.WebDavSession();
2903
+ *
2904
+ * oSession.OpenFolderAsync(sFolderUrl, null, function (oFolderAsyncResult) {
2905
+ * if (!oFolderAsyncResult.IsSuccess) {
2906
+ * console.error(oFolderAsyncResult.Error);
2907
+ * return;
2908
+ * }
2909
+ *
2910
+ * /&#42;&#42; &#64;typedef {ITHit.WebDAV.Client.Folder} oFolder &#42;/
2911
+ * var oFolder = oFolderAsyncResult.Result;
2912
+ *
2913
+ * console.log(oFolder.Href);
2914
+ *
2915
+ * oFolder.GetChildrenAsync(false, null, function (oAsyncResult) {
2916
+ * if (!oAsyncResult.IsSuccess) {
2917
+ * console.error(oFolderAsyncResult.Error);
2918
+ * return;
2919
+ * }
2920
+ *
2921
+ * /&#42;&#42; &#64;typedef {ITHit.WebDAV.Client.HierarchyItem[]} aHierarchyItems &#42;/
2922
+ * var aHierarchyItems = oAsyncResult.Result;
2923
+ *
2924
+ * for (var i = 0, l = aHierarchyItems.length; i &lt; l; i++) {
2925
+ * var sSize = aHierarchyItems[i].ResourceType !== ITHit.WebDAV.Client.ResourceType.Folder ?
2926
+ * Math.round(aHierarchyItems[i].ContentLength / 1000) + ' Kb' :
2927
+ * null;
2928
+ * console.log(' [' + aHierarchyItems[i].ResourceType + '] ' + aHierarchyItems[i].DisplayName + (sSize ? ', ' + sSize : ''));
2929
+ * }
2930
+ * });
2931
+ * });
2932
+ * &lt;/script&gt;
2933
+ * &lt;/head&gt;
2934
+ * &lt;body&gt;
2935
+ * &lt;/body&gt;
2936
+ * &lt;/html&gt;
2937
+ * @api
2938
+ * @fires ITHit.WebDAV.Client.WebDavSession#OnBeforeRequestSend
2939
+ * @fires ITHit.WebDAV.Client.WebDavSession#OnResponse
2940
+ * @constructs
2941
+ */
2942
+ namespace WebDavSession{
2943
+ /**
2944
+ * Version of AJAX Library
2945
+ * @api
2946
+ */
2947
+ function Version(): void;
2948
+ /**
2949
+ * Protocol Version of AJAX Library
2950
+ * @api
2951
+ */
2952
+ function ProtocolVersion(): void;
2953
+ }class WebDavSession {
2954
+ /**
2955
+ * The OnBeforeRequestSend event is fired before request is being submitted to server and provides all
2956
+ * information that is used when creating the request such as URL, HTTP verb, headers and request body.
2957
+ * @api
2958
+ * @examplecode ITHit.WebDAV.Client.Tests.WebDavSession.Events.BeforeRequestSend
2959
+ * @examplecode ITHit.WebDAV.Client.TSExamples.WebDavSession.Events.BeforeRequestSend
2960
+ * @event ITHit.WebDAV.Client.WebDavSession#OnBeforeRequestSend
2961
+ * @property {string} Method Request method
2962
+ * @property {string} Href Request absolute path
2963
+ * @property {object} Headers Key-value object with headers
2964
+ * @property {string} Body Request Body
2965
+ */
2966
+ /**
2967
+ * The OnResponse event fires when the data is received from server. In your event handler you can update
2968
+ * any data received from server.
2969
+ * @api
2970
+ * @examplecode ITHit.WebDAV.Client.Tests.WebDavSession.Events.Response
2971
+ * @examplecode ITHit.WebDAV.Client.TSExamples.WebDavSession.Events.Response
2972
+ * @event ITHit.WebDAV.Client.WebDavSession#OnResponse
2973
+ * @property {number} Status Response status code
2974
+ * @property {string} StatusDescription Response status description
2975
+ * @property {object} Headers Key-value object with headers
2976
+ * @property {string} Body Response Body
2977
+ */
2978
+ /**
2979
+ * @api
2980
+ * @param {string} sEventName
2981
+ * @param {function} fCallback
2982
+ * @param {object} [oContext]
2983
+ */
2984
+ AddListener(sEventName: string, fCallback: Function, oContext?: object): void;
2985
+ /**
2986
+ * @api
2987
+ * @param {string} sEventName
2988
+ * @param {function} fCallback
2989
+ * @param {object} [oContext]
2990
+ */
2991
+ RemoveListener(sEventName: string, fCallback: Function, oContext?: object): void;
2992
+ /**
2993
+ * Load File object corresponding to path.
2994
+ * @api
2995
+ * @param {string} sPath Path to the file.
2996
+ * @param {ITHit.WebDAV.Client.PropertyName[]} aProperties Additional properties requested from server. Default is empty array.
2997
+ * @param {ITHit.WebDAV.Client.WebDavSession~OpenFileAsyncCallback} fCallback Function to call when operation is completed.
2998
+ * @returns {ITHit.WebDAV.Client.Request} Request object.
2999
+ */
3000
+ OpenFileAsync(sPath: string, aProperties: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): ITHit.WebDAV.Client.Request;
3001
+ /**
3002
+ * Returns Folder object corresponding to path.
3003
+ * @examplecode ITHit.WebDAV.Client.Tests.HierarchyItems.GetItemBySession.GetFolder
3004
+ * @examplecode ITHit.WebDAV.Client.TSExamples.HierarchyItems.GetItemBySession.GetFolder
3005
+ * @api
3006
+ * @param {string} sPath Path to the folder.
3007
+ * @param {ITHit.WebDAV.Client.PropertyName[]} aProperties Additional properties requested from server. Default is empty array.
3008
+ * @param {ITHit.WebDAV.Client.WebDavSession~OpenFolderAsyncCallback} fCallback Function to call when operation is completed.
3009
+ */
3010
+ OpenFolderAsync(sPath: string, aProperties: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): void;
3011
+ /**
3012
+ * Returns HierarchyItem object corresponding to path.
3013
+ * @api
3014
+ * @param {string} sPath Path to the resource.
3015
+ * @param {ITHit.WebDAV.Client.PropertyName[]} aProperties Additional properties requested from server. Default is empty array.
3016
+ * @param {ITHit.WebDAV.Client.WebDavSession~OpenItemAsyncCallback} fCallback Function to call when operation is completed.
3017
+ */
3018
+ OpenItemAsync(sPath: string, aProperties: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): void;
3019
+ /**
3020
+ * Creates folder corresponding to path.
3021
+ * @api
3022
+ * @param {string} sPath Path to the resource.
3023
+ * @param {ITHit.WebDAV.Client.PropertyName[]} aProperties Additional properties requested from server. Default is empty array.
3024
+ * @param {ITHit.WebDAV.Client.WebDavSession~CreateFolderAsyncCallback} fCallback Function to call when operation is completed.
3025
+ */
3026
+ CreateFolderAsync(sPath: string, aProperties: ITHit.WebDAV.Client.PropertyName[], fCallback?: (oResult: ITHit.WebDAV.Client.AsyncResult) => void): void;
3027
+ }}}}