-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathindex.d.ts
More file actions
4415 lines (4413 loc) · 189 KB
/
index.d.ts
File metadata and controls
4415 lines (4413 loc) · 189 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// -----------------------------------------------------------------------
// IT Hit WebDAV Ajax Library v6.1.8927.0
// Copyright © 2020 IT Hit LTD. All rights reserved.
// License: https://www.webdavsystem.com/ajax/
// -----------------------------------------------------------------------
export namespace ITHit{
/**
* Base class for exceptions.
* @api
* @class ITHit.Exception
*/
class Exception {
/**
* Exception message.
* @api
* @property {String} ITHit.Exception.Message
* @type {string}
*/
Message: string
/**
* Original exception that caused this exception.
* @api
* @property {ITHit.Exception} ITHit.Exception.InnerException
* @type {ITHit.Exception}
*/
InnerException: ITHit.Exception
}/**
* Detects environment in which JavaScript is running, such as operating system and web browser.
* @api
* @class ITHit.Environment
*/
class Environment {
}/**
* Type of information being logged.
* @api
* @enum {number}
* @class ITHit.LogLevel
*/
class LogLevel {
}/**
* Provides static methods for logging.
* @api
* @class ITHit.Logger
*/
namespace Logger{
/**
* Adds log listener.
* @api
* @param {ITHit.Logger~EventHandler} fHandler Handler function.
* @param {number} iLogLevel Log level messages capturing.
*/
function AddListener(fHandler: () => void, iLogLevel: number): void;
/**
* Removes log listener.
* @api
* @param {ITHit.Logger~EventHandler} fHandler Handler function.
*/
function RemoveListener(fHandler?: () => void | null): void;
/**
* Writs a message to log with a specified log level. Default log level is {@link ITHit.LogLevel#Info}
* @api
* @param {string} sMessage Message to be logged.
* @param {number} iLogLevel Logging level.
* @throws ITHit.Exceptions.LoggerException Function was expected as log listener.
*/
function WriteMessage(sMessage: string, iLogLevel: number): void;
}class Logger {
}
namespace WebDAV{
/**
* This namespace provides classes for accessing WebDAV server items, file structure management, properties management and items locking.
* @public
* @namespace ITHit.WebDAV.Client
* @class ITHit.WebDAV.Client
*/
namespace Client{
/**
* The ITHit.WebDav.Client.Exceptions namespace provides classes that represent various WebDAV client library exceptions, erroneous server responses and HTTP errors.
* @namespace ITHit.WebDAV.Client.Exceptions
*/
namespace Exceptions{
/**
* Base exception for all exceptions thrown by WebDAV client library.
* Initializes a new instance of the WebDavException class with a specified error message.
* @api
* @class ITHit.WebDAV.Client.Exceptions.WebDavException
* @extends ITHit.Exception
*/
class WebDavException extends ITHit.Exception {
}/**
* Is thrown whenever and erroneous http response is received. Initializes a new instance of the WebDavHttpException
* class with a specified error message, a reference to the inner exception that is the cause of this exception,
* href of the item, multistatus response and status of the response caused the error.
* @api
* @class ITHit.WebDAV.Client.Exceptions.WebDavHttpException
* @extends ITHit.WebDAV.Client.Exceptions.WebDavException
*/
class WebDavHttpException extends ITHit.WebDAV.Client.Exceptions.WebDavException {
/**
* Multistatus Contains {@link ITHit.WebDAV.Client.Multistatus} with elements that had errors, if multistatus information was available in response.
* @api
* @type {ITHit.WebDAV.Client.Multistatus}
*/
Multistatus: ITHit.WebDAV.Client.Multistatus
/**
* Http status with wich request failed.
* @api
* @type {ITHit.WebDAV.Client.HttpStatus}
*/
Status: ITHit.WebDAV.Client.HttpStatus
/**
* Uri for which request failed.
* @api
* @type {string}
*/
Uri: string
/**
* Error contains IError with additional info, if error information was available in response.
* @api
* @type {ITHit.WebDAV.Client.Error}
*/
Error: ITHit.WebDAV.Client.Error
}/**
* Is raised whenever property processing was unsuccessfull. Initializes a new instance of the PropertyException
* class with a specified error message, a reference to the inner exception that is the cause of this exception,
* href of the item and multistatus response caused the error.
* @api
* @class ITHit.WebDAV.Client.Exceptions.PropertyException
* @extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException
*/
class PropertyException extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException {
/**
* Name of the property processing of which caused the exception.
* @api
* @type {ITHit.WebDAV.Client.PropertyName}
*/
PropertyName: ITHit.WebDAV.Client.PropertyName
/**
* Multistatus Contains {@link ITHit.WebDAV.Client.Multistatus} with elements that had errors, if multistatus information was available in response.
* @api
* @type {ITHit.WebDAV.Client.Multistatus}
*/
Multistatus: ITHit.WebDAV.Client.Multistatus
/**
* Http status with wich request failed.
* @api
* @type {ITHit.WebDAV.Client.HttpStatus}
*/
Status: ITHit.WebDAV.Client.HttpStatus
/**
* Uri for which request failed.
* @api
* @type {string}
*/
Uri: string
/**
* Error contains IError with additional info, if error information was available in response.
* @api
* @type {ITHit.WebDAV.Client.Error}
*/
Error: ITHit.WebDAV.Client.Error
}/**
* Thrown when server responded with Property Not Found http response. Initializes a new instance of the
* PropertyNotFoundException class with a specified error message, a reference to the inner exception that
* is the cause of this exception, href of the item and multistatus response caused the error.
* @api
* @class ITHit.WebDAV.Client.Exceptions.PropertyNotFoundException
* @extends ITHit.WebDAV.Client.Exceptions.PropertyException
*/
class PropertyNotFoundException extends ITHit.WebDAV.Client.Exceptions.PropertyException {
/**
* Name of the property processing of which caused the exception.
* @api
* @type {ITHit.WebDAV.Client.PropertyName}
*/
PropertyName: ITHit.WebDAV.Client.PropertyName
/**
* Multistatus Contains {@link ITHit.WebDAV.Client.Multistatus} with elements that had errors, if multistatus information was available in response.
* @api
* @type {ITHit.WebDAV.Client.Multistatus}
*/
Multistatus: ITHit.WebDAV.Client.Multistatus
/**
* Http status with wich request failed.
* @api
* @type {ITHit.WebDAV.Client.HttpStatus}
*/
Status: ITHit.WebDAV.Client.HttpStatus
/**
* Uri for which request failed.
* @api
* @type {string}
*/
Uri: string
/**
* Error contains IError with additional info, if error information was available in response.
* @api
* @type {ITHit.WebDAV.Client.Error}
*/
Error: ITHit.WebDAV.Client.Error
}/**
* Thrown when server responded with Property forbidden http response. Initializes a new instance of the
* PropertyForbiddenException class with a specified error message, a reference to the inner exception
* that is the cause of this exception, href of the item and multistatus response caused the error.
* @api
* @class ITHit.WebDAV.Client.Exceptions.PropertyForbiddenException
* @extends ITHit.WebDAV.Client.Exceptions.PropertyException
*/
class PropertyForbiddenException extends ITHit.WebDAV.Client.Exceptions.PropertyException {
/**
* Name of the property processing of which caused the exception.
* @api
* @type {ITHit.WebDAV.Client.PropertyName}
*/
PropertyName: ITHit.WebDAV.Client.PropertyName
/**
* Multistatus Contains {@link ITHit.WebDAV.Client.Multistatus} with elements that had errors, if multistatus information was available in response.
* @api
* @type {ITHit.WebDAV.Client.Multistatus}
*/
Multistatus: ITHit.WebDAV.Client.Multistatus
/**
* Http status with wich request failed.
* @api
* @type {ITHit.WebDAV.Client.HttpStatus}
*/
Status: ITHit.WebDAV.Client.HttpStatus
/**
* Uri for which request failed.
* @api
* @type {string}
*/
Uri: string
/**
* Error contains IError with additional info, if error information was available in response.
* @api
* @type {ITHit.WebDAV.Client.Error}
*/
Error: ITHit.WebDAV.Client.Error
}/**
* Base exception for all exceptions thrown by browser extension integration.
* Initializes a new instance of the IntegrationException class with a specified error message.
* @api
* @class ITHit.WebDAV.Client.Exceptions.IntegrationException
*/
class IntegrationException {
}/**
* Incorrect credentials provided or insufficient permissions to access the requested item. Initializes a new instance
* of the UnauthorizedException class with a specified error message, a reference to the inner exception that is the
* cause of this exception, href of the item and multistatus response caused the error.
* @api
* @class ITHit.WebDAV.Client.Exceptions.UnauthorizedException
* @extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException
*/
class UnauthorizedException extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException {
/**
* Multistatus Contains {@link ITHit.WebDAV.Client.Multistatus} with elements that had errors, if multistatus information was available in response.
* @api
* @type {ITHit.WebDAV.Client.Multistatus}
*/
Multistatus: ITHit.WebDAV.Client.Multistatus
/**
* Http status with wich request failed.
* @api
* @type {ITHit.WebDAV.Client.HttpStatus}
*/
Status: ITHit.WebDAV.Client.HttpStatus
/**
* Uri for which request failed.
* @api
* @type {string}
*/
Uri: string
/**
* Error contains IError with additional info, if error information was available in response.
* @api
* @type {ITHit.WebDAV.Client.Error}
*/
Error: ITHit.WebDAV.Client.Error
}/**
* The request could not be understood by the server due to malformed syntax.
* Initializes a new instance of the BadRequestException class with a specified error message, a reference to the
* inner exception that is the cause of this exception, href of the item and multistatus response caused the error.
* @api
* @class ITHit.WebDAV.Client.Exceptions.BadRequestException
* @extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException
*/
class BadRequestException extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException {
/**
* Multistatus Contains {@link ITHit.WebDAV.Client.Multistatus} with elements that had errors, if multistatus information was available in response.
* @api
* @type {ITHit.WebDAV.Client.Multistatus}
*/
Multistatus: ITHit.WebDAV.Client.Multistatus
/**
* Http status with wich request failed.
* @api
* @type {ITHit.WebDAV.Client.HttpStatus}
*/
Status: ITHit.WebDAV.Client.HttpStatus
/**
* Uri for which request failed.
* @api
* @type {string}
*/
Uri: string
/**
* Error contains IError with additional info, if error information was available in response.
* @api
* @type {ITHit.WebDAV.Client.Error}
*/
Error: ITHit.WebDAV.Client.Error
}/**
* The request could not be carried because of conflict on server.
* Initializes a new instance of the ConflictException class with a specified error message, a reference
* to the inner exception that is the cause of this exception, href of the item and multistatus response
* caused the error.
* @api
* @class ITHit.WebDAV.Client.Exceptions.ConflictException
* @extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException
*/
class ConflictException extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException {
/**
* Multistatus Contains {@link ITHit.WebDAV.Client.Multistatus} with elements that had errors, if multistatus information was available in response.
* @api
* @type {ITHit.WebDAV.Client.Multistatus}
*/
Multistatus: ITHit.WebDAV.Client.Multistatus
/**
* Http status with wich request failed.
* @api
* @type {ITHit.WebDAV.Client.HttpStatus}
*/
Status: ITHit.WebDAV.Client.HttpStatus
/**
* Uri for which request failed.
* @api
* @type {string}
*/
Uri: string
/**
* Error contains IError with additional info, if error information was available in response.
* @api
* @type {ITHit.WebDAV.Client.Error}
*/
Error: ITHit.WebDAV.Client.Error
}/**
* The item is locked. Initializes a new instance of the LockedException class with a specified error message,
* a reference to the inner exception that is the cause of this exception, href of the item and multistatus
* response caused the error.
* @api
* @class ITHit.WebDAV.Client.Exceptions.LockedException
* @extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException
*/
class LockedException extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException {
/**
* Multistatus Contains {@link ITHit.WebDAV.Client.Multistatus} with elements that had errors, if multistatus information was available in response.
* @api
* @type {ITHit.WebDAV.Client.Multistatus}
*/
Multistatus: ITHit.WebDAV.Client.Multistatus
/**
* Http status with wich request failed.
* @api
* @type {ITHit.WebDAV.Client.HttpStatus}
*/
Status: ITHit.WebDAV.Client.HttpStatus
/**
* Uri for which request failed.
* @api
* @type {string}
*/
Uri: string
/**
* Error contains IError with additional info, if error information was available in response.
* @api
* @type {ITHit.WebDAV.Client.Error}
*/
Error: ITHit.WebDAV.Client.Error
}/**
* The server refused to fulfill the request. Initializes a new instance of the ForbiddenException class with
* a specified error message, a reference to the inner exception that is the cause of this exception, href of
* the item and multistatus response caused the error.
* @api
* @class ITHit.WebDAV.Client.Exceptions.ForbiddenException
* @extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException
*/
class ForbiddenException extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException {
/**
* Multistatus Contains {@link ITHit.WebDAV.Client.Multistatus} with elements that had errors, if multistatus information was available in response.
* @api
* @type {ITHit.WebDAV.Client.Multistatus}
*/
Multistatus: ITHit.WebDAV.Client.Multistatus
/**
* Http status with wich request failed.
* @api
* @type {ITHit.WebDAV.Client.HttpStatus}
*/
Status: ITHit.WebDAV.Client.HttpStatus
/**
* Uri for which request failed.
* @api
* @type {string}
*/
Uri: string
/**
* Error contains IError with additional info, if error information was available in response.
* @api
* @type {ITHit.WebDAV.Client.Error}
*/
Error: ITHit.WebDAV.Client.Error
}/**
* The method is not allowed. Initializes a new instance of the MethodNotAllowedException class with a specified
* error message, a reference to the inner exception that is the cause of this exception, href of the item and
* multistatus response caused the error.
* @api
* @class ITHit.WebDAV.Client.Exceptions.MethodNotAllowedException
* @extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException
*/
class MethodNotAllowedException extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException {
/**
* Multistatus Contains {@link ITHit.WebDAV.Client.Multistatus} with elements that had errors, if multistatus information was available in response.
* @api
* @type {ITHit.WebDAV.Client.Multistatus}
*/
Multistatus: ITHit.WebDAV.Client.Multistatus
/**
* Http status with wich request failed.
* @api
* @type {ITHit.WebDAV.Client.HttpStatus}
*/
Status: ITHit.WebDAV.Client.HttpStatus
/**
* Uri for which request failed.
* @api
* @type {string}
*/
Uri: string
/**
* Error contains IError with additional info, if error information was available in response.
* @api
* @type {ITHit.WebDAV.Client.Error}
*/
Error: ITHit.WebDAV.Client.Error
}/**
* The method is not implemented. Initializes a new instance of the NotImplementedException class with a specified
* error message, a reference to the inner exception that is the cause of this exception, href of the item and
* multistatus response caused the error.
* @api
* @class ITHit.WebDAV.Client.Exceptions.NotImplementedException
* @extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException
*/
class NotImplementedException extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException {
/**
* Multistatus Contains {@link ITHit.WebDAV.Client.Multistatus} with elements that had errors, if multistatus information was available in response.
* @api
* @type {ITHit.WebDAV.Client.Multistatus}
*/
Multistatus: ITHit.WebDAV.Client.Multistatus
/**
* Http status with wich request failed.
* @api
* @type {ITHit.WebDAV.Client.HttpStatus}
*/
Status: ITHit.WebDAV.Client.HttpStatus
/**
* Uri for which request failed.
* @api
* @type {string}
*/
Uri: string
/**
* Error contains IError with additional info, if error information was available in response.
* @api
* @type {ITHit.WebDAV.Client.Error}
*/
Error: ITHit.WebDAV.Client.Error
}/**
* The item doesn't exist on the server. Initializes a new instance of the NotFoundException class with a specified
* error message, a reference to the inner exception that is the cause of this exception, href of the item and
* multistatus response caused the error.
* @api
* @class ITHit.WebDAV.Client.Exceptions.NotFoundException
* @extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException
*/
class NotFoundException extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException {
/**
* Multistatus Contains {@link ITHit.WebDAV.Client.Multistatus} with elements that had errors, if multistatus information was available in response.
* @api
* @type {ITHit.WebDAV.Client.Multistatus}
*/
Multistatus: ITHit.WebDAV.Client.Multistatus
/**
* Http status with wich request failed.
* @api
* @type {ITHit.WebDAV.Client.HttpStatus}
*/
Status: ITHit.WebDAV.Client.HttpStatus
/**
* Uri for which request failed.
* @api
* @type {string}
*/
Uri: string
/**
* Error contains IError with additional info, if error information was available in response.
* @api
* @type {ITHit.WebDAV.Client.Error}
*/
Error: ITHit.WebDAV.Client.Error
}/**
* Precondition failed. Initializes a new instance of the PreconditionFailedException class with a specified error
* message, a reference to the inner exception that is the cause of this exception, href of the item and multistatus
* response with error details.
* @api
* @class ITHit.WebDAV.Client.Exceptions.PreconditionFailedException
* @extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException
*/
class PreconditionFailedException extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException {
/**
* Multistatus Contains {@link ITHit.WebDAV.Client.Multistatus} with elements that had errors, if multistatus information was available in response.
* @api
* @type {ITHit.WebDAV.Client.Multistatus}
*/
Multistatus: ITHit.WebDAV.Client.Multistatus
/**
* Http status with wich request failed.
* @api
* @type {ITHit.WebDAV.Client.HttpStatus}
*/
Status: ITHit.WebDAV.Client.HttpStatus
/**
* Uri for which request failed.
* @api
* @type {string}
*/
Uri: string
/**
* Error contains IError with additional info, if error information was available in response.
* @api
* @type {ITHit.WebDAV.Client.Error}
*/
Error: ITHit.WebDAV.Client.Error
}/**
* The method could not be performed on the resource because the requested action depended on another action
* and that action failed. Initializes a new instance of the DependencyFailedException class with a specified
* error message, a reference to the inner exception that is the cause of this exception, href of the item
* and multistatus response caused the error.
* @api
* @class ITHit.WebDAV.Client.Exceptions.DependencyFailedException
* @extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException
*/
class DependencyFailedException extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException {
/**
* Multistatus Contains {@link ITHit.WebDAV.Client.Multistatus} with elements that had errors, if multistatus information was available in response.
* @api
* @type {ITHit.WebDAV.Client.Multistatus}
*/
Multistatus: ITHit.WebDAV.Client.Multistatus
/**
* Http status with wich request failed.
* @api
* @type {ITHit.WebDAV.Client.HttpStatus}
*/
Status: ITHit.WebDAV.Client.HttpStatus
/**
* Uri for which request failed.
* @api
* @type {string}
*/
Uri: string
/**
* Error contains IError with additional info, if error information was available in response.
* @api
* @type {ITHit.WebDAV.Client.Error}
*/
Error: ITHit.WebDAV.Client.Error
}/**
* Insufficient storage exception. Initializes a new instance of the InsufficientStorageException class with
* a specified error message, a reference to the inner exception that is the cause of this exception, href of
* the item and error response caused the error.
* @api
* @class ITHit.WebDAV.Client.Exceptions.InsufficientStorageException
* @extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException
*/
class InsufficientStorageException extends ITHit.WebDAV.Client.Exceptions.WebDavHttpException {
/**
* Multistatus Contains {@link ITHit.WebDAV.Client.Multistatus} with elements that had errors, if multistatus information was available in response.
* @api
* @type {ITHit.WebDAV.Client.Multistatus}
*/
Multistatus: ITHit.WebDAV.Client.Multistatus
/**
* Http status with wich request failed.
* @api
* @type {ITHit.WebDAV.Client.HttpStatus}
*/
Status: ITHit.WebDAV.Client.HttpStatus
/**
* Uri for which request failed.
* @api
* @type {string}
*/
Uri: string
/**
* Error contains IError with additional info, if error information was available in response.
* @api
* @type {ITHit.WebDAV.Client.Error}
*/
Error: ITHit.WebDAV.Client.Error
}/**
* Quota not exceeded exception. Initializes a new instance of the QuotaNotExceededException class with a
* specified error message, a reference to the inner exception that is the cause of this exception, href of
* the item and error response caused the error.
* @api
* @class ITHit.WebDAV.Client.Exceptions.QuotaNotExceededException
* @extends ITHit.WebDAV.Client.Exceptions.InsufficientStorageException
*/
class QuotaNotExceededException extends ITHit.WebDAV.Client.Exceptions.InsufficientStorageException {
/**
* Multistatus Contains {@link ITHit.WebDAV.Client.Multistatus} with elements that had errors, if multistatus information was available in response.
* @api
* @type {ITHit.WebDAV.Client.Multistatus}
*/
Multistatus: ITHit.WebDAV.Client.Multistatus
/**
* Http status with wich request failed.
* @api
* @type {ITHit.WebDAV.Client.HttpStatus}
*/
Status: ITHit.WebDAV.Client.HttpStatus
/**
* Uri for which request failed.
* @api
* @type {string}
*/
Uri: string
/**
* Error contains IError with additional info, if error information was available in response.
* @api
* @type {ITHit.WebDAV.Client.Error}
*/
Error: ITHit.WebDAV.Client.Error
}/**
* Sufficient disk space exception. Initializes a new instance of the SufficientDiskSpaceException class with
* a specified error message, a reference to the inner exception that is the cause of this exception, href of
* the item and error response caused the error.
* @api
* @class ITHit.WebDAV.Client.Exceptions.SufficientDiskSpaceException
* @extends ITHit.WebDAV.Client.Exceptions.InsufficientStorageException
*/
class SufficientDiskSpaceException extends ITHit.WebDAV.Client.Exceptions.InsufficientStorageException {
/**
* Multistatus Contains {@link ITHit.WebDAV.Client.Multistatus} with elements that had errors, if multistatus information was available in response.
* @api
* @type {ITHit.WebDAV.Client.Multistatus}
*/
Multistatus: ITHit.WebDAV.Client.Multistatus
/**
* Http status with wich request failed.
* @api
* @type {ITHit.WebDAV.Client.HttpStatus}
*/
Status: ITHit.WebDAV.Client.HttpStatus
/**
* Uri for which request failed.
* @api
* @type {string}
*/
Uri: string
/**
* Error contains IError with additional info, if error information was available in response.
* @api
* @type {ITHit.WebDAV.Client.Error}
*/
Error: ITHit.WebDAV.Client.Error
}}/**
* Initializes new instance of PropertyName.
* @classdesc Represents name of property.
* @constructs
* @api
* @param {string} sName Name of the property.
* @param {string} sNamespaceUri Namespace of the property.
* @throws ITHit.Exceptions.ArgumentNullException
*/
class PropertyName {
constructor(sName: string, sNamespaceUri: string);
/**
* Name of the property.
* @api
* @type {string}
*/
Name: string
/**
* Namespace of the property.
* @api
* @type {string}
*/
NamespaceUri: string
/**
* Returns string representation of current property name.
* @api
* @returns {string} String representation of current property name.
*/
toString(): string;
}/**
* Structure that describes HTTP response's status.
* @api
* @class ITHit.WebDAV.Client.HttpStatus
*/
namespace HttpStatus{
/**
* Parses HttpStatus structure from string containing status information.
* @api
* @param {string} sStatus String containing status information.
* @returns {ITHit.WebDAV.Client.HttpStatus} HttpStatus structure that describes current status.
*/
function Parse(sStatus: string): ITHit.WebDAV.Client.HttpStatus;
}class HttpStatus {
/**
* No status defined.
* @api
* @type {ITHit.WebDAV.Client.HttpStatus}
*/
static None: ITHit.WebDAV.Client.HttpStatus
None: ITHit.WebDAV.Client.HttpStatus
/**
* The request requires user authentication.
* @api
* @type {ITHit.WebDAV.Client.HttpStatus}
*/
static Unauthorized: ITHit.WebDAV.Client.HttpStatus
Unauthorized: ITHit.WebDAV.Client.HttpStatus
/**
* The request has succeeded.
* @api
* @type {ITHit.WebDAV.Client.HttpStatus}
*/
static OK: ITHit.WebDAV.Client.HttpStatus
OK: ITHit.WebDAV.Client.HttpStatus
/**
* The request has been fulfilled and resulted in a new resource being created.
* @api
* @type {ITHit.WebDAV.Client.HttpStatus}
*/
static Created: ITHit.WebDAV.Client.HttpStatus
Created: ITHit.WebDAV.Client.HttpStatus
/**
* The server has fulfilled the request but does not need to return an entity-body, and might want to
* return updated meta information.
* @api
* @type {ITHit.WebDAV.Client.HttpStatus}
*/
static NoContent: ITHit.WebDAV.Client.HttpStatus
NoContent: ITHit.WebDAV.Client.HttpStatus
/**
* The server has fulfilled the partial GET request for the resource.
* @api
* @type {ITHit.WebDAV.Client.HttpStatus}
*/
static PartialContent: ITHit.WebDAV.Client.HttpStatus
PartialContent: ITHit.WebDAV.Client.HttpStatus
/**
* This status code provides status for multiple independent operations.
* @api
* @type {ITHit.WebDAV.Client.HttpStatus}
*/
static MultiStatus: ITHit.WebDAV.Client.HttpStatus
MultiStatus: ITHit.WebDAV.Client.HttpStatus
/**
* This status code is used instead if 302 redirect. This is because 302 code is processed automatically
* and there is no way to process redirect to login page.
* @api
* @type {ITHit.WebDAV.Client.HttpStatus}
*/
static Redirect: ITHit.WebDAV.Client.HttpStatus
Redirect: ITHit.WebDAV.Client.HttpStatus
/**
* The request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat
* the request without modifications.
* @api
* @type {ITHit.WebDAV.Client.HttpStatus}
*/
static BadRequest: ITHit.WebDAV.Client.HttpStatus
BadRequest: ITHit.WebDAV.Client.HttpStatus
/**
* The server has not found anything matching the Request-URI.
* @api
* @type {ITHit.WebDAV.Client.HttpStatus}
*/
static NotFound: ITHit.WebDAV.Client.HttpStatus
NotFound: ITHit.WebDAV.Client.HttpStatus
/**
* The method specified in the Request-Line is not allowed for the resource identified by the Request-URI.
* @api
* @type {ITHit.WebDAV.Client.HttpStatus}
*/
static MethodNotAllowed: ITHit.WebDAV.Client.HttpStatus
MethodNotAllowed: ITHit.WebDAV.Client.HttpStatus
/**
* The precondition given in one or more of the request-header fields evaluated to false when it was tested
* on the server.
* @api
* @type {ITHit.WebDAV.Client.HttpStatus}
*/
static PreconditionFailed: ITHit.WebDAV.Client.HttpStatus
PreconditionFailed: ITHit.WebDAV.Client.HttpStatus
/**
* The source or destination resource of a method is locked.
* @api
* @type {ITHit.WebDAV.Client.HttpStatus}
*/
static Locked: ITHit.WebDAV.Client.HttpStatus
Locked: ITHit.WebDAV.Client.HttpStatus
/**
* The method could not be performed on the resource because the requested action depended on another
* action and that action failed.
* @api
* @type {ITHit.WebDAV.Client.HttpStatus}
*/
static DependencyFailed: ITHit.WebDAV.Client.HttpStatus
DependencyFailed: ITHit.WebDAV.Client.HttpStatus
/**
* The server understood the request, but is refusing to fulfill it.
* @api
* @type {ITHit.WebDAV.Client.HttpStatus}
*/
static Forbidden: ITHit.WebDAV.Client.HttpStatus
Forbidden: ITHit.WebDAV.Client.HttpStatus
/**
* The request could not be completed due to a conflict with the current state of the resource.
* @api
* @type {ITHit.WebDAV.Client.HttpStatus}
*/
static Conflict: ITHit.WebDAV.Client.HttpStatus
Conflict: ITHit.WebDAV.Client.HttpStatus
/**
* The server does not support the functionality required to fulfill the request.
* @api
* @type {ITHit.WebDAV.Client.HttpStatus}
*/
static NotImplemented: ITHit.WebDAV.Client.HttpStatus
NotImplemented: ITHit.WebDAV.Client.HttpStatus
/**
* The server, while acting as a gateway or proxy, received an invalid response from the upstream
* server it accessed in attempting to fulfill the request.
* @api
* @type {ITHit.WebDAV.Client.HttpStatus}
*/
static BadGateway: ITHit.WebDAV.Client.HttpStatus
BadGateway: ITHit.WebDAV.Client.HttpStatus
/**
* The method could not be performed on the resource because the server is unable to store the
* representation needed to successfully complete the request.
* @api
* @type {ITHit.WebDAV.Client.HttpStatus}
*/
static InsufficientStorage: ITHit.WebDAV.Client.HttpStatus
InsufficientStorage: ITHit.WebDAV.Client.HttpStatus
/**
* @api
* @type {number}
*/
Code: number
/**
* @api
* @type {string}
*/
Description: string
/**
* Indicates whether the current HttpStatus structure is equal to another HttpStatus structure.
* @api
* @param {ITHit.WebDAV.Client.HttpStatus} oHttpStatus HttpStatus object to compare.
* @returns {boolean} True if the current object is equal to the other parameter; otherwise, false.
*/
Equals(oHttpStatus: ITHit.WebDAV.Client.HttpStatus): boolean;
/**
* Returns true if status is successful for Create operation.
* @api
* @returns {boolean} Returns true if status is successful for Create operation.
*/
IsCreateOk(): boolean;
/**
* Returns true if status is successful for Delete operation.
* @api
* @returns {boolean} Returns true if status is successful for Delete operation.
*/
IsDeleteOk(): boolean;
/**
* Returns true if status is successful.
* @api
* @returns {boolean} Returns true if status is successful.
*/
IsOk(): boolean;
/**
* Returns true if status is successful for Copy or Move operation.
* @api
* @returns {boolean} Returns true if status is successful for Copy or Move operation.
*/
IsCopyMoveOk(): boolean;
/**
* Returns true if status is successful for Get operation.
* @api
* @returns {boolean} Returns true if status is successful for Get operation.
*/
IsGetOk(): boolean;
/**
* Returns true if status is successful for Put operation.
* @api
* @returns {boolean} Returns true if status is successful for Put operation.
*/
IsPutOk(): boolean;
/**
* Returns true if status is successful for Unlock operation.
* @api
* @returns {boolean} Returns true if status is successful for Unlock operation.
*/
IsUnlockOk(): boolean;
/**
* Returns true if status is successful for Head operation.
* @api
* @returns {boolean} Returns true if status is successful for Head operation.
*/
IsHeadOk(): boolean;
/**
* Returns true if status is successful for Proppatch operation.
* @api
* @returns {boolean} Returns true if status is successful for Proppatch operation.
*/
IsUpdateOk(): boolean;
/**
* Returns true if status is successful.
* @api
* @returns {boolean} Returns true if status is successful.
*/
IsSuccess(): boolean;
}/**
* Initializes new string valued property.
* @api
* @classdesc Represents custom property exposed by WebDAV hierarchy items.
* @constructs
* @param {string|ITHit.WebDAV.Client.PropertyName} sName Name of the property.
* @param {string} [sValue] Property value.
* @param {string} [sNamespace] Namespace of the property.
* @throws ITHit.Exception
*/
class Property {
constructor(sName: string | ITHit.WebDAV.Client.PropertyName, sValue?: string | null, sNamespace?: string | null);
/**
* Property Name.
* @api
* @type {string|ITHit.WebDAV.Client.PropertyName}
*/
Name: string | ITHit.WebDAV.Client.PropertyName
/**
* Property value.
* @api
* @type {*}
*/
Value: any
/**
* String value of the custom property.
* @api
* @returns {string} String value of the custom property.
*/
StringValue(): string;
}/**
* Instance of this class is passed to callback function. It provides information about success or failure of
* the operation as well as you will use it to get the results of the asynchronous call.
* @api
* @class ITHit.WebDAV.Client.AsyncResult
*/
class AsyncResult {
/**
* Result value. Can be any type, each method may put there appropriate object which before was returned directly.
* Null if request was unsuccessful.
* @api
* @type {*}
*/
Result: any
/**
* Flag of either async request result was successful or not.
* @api
* @type {boolean}
*/
IsSuccess: boolean
/**
* Error (Exception) object. Describes the type of error that occurred. Null if request was successful.
* @api
* @type {ITHit.WebDAV.Client.Exceptions.WebDavException|Error|null}
*/
Error: ITHit.WebDAV.Client.Exceptions.WebDavException | Error | null
/**
* Status of HTTP response retrieved either from Result or Error objects
* @api
* @type {ITHit.WebDAV.Client.HttpStatus}
*/
Status: ITHit.WebDAV.Client.HttpStatus